@kong-ui-public/entities-shared 2.7.6 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
1
|
+
import { inject as Mt, ref as B, unref as S, computed as w, watch as Se, defineComponent as z, resolveComponent as O, openBlock as p, createElementBlock as _, createBlock as F, resolveDynamicComponent as pe, mergeProps as Je, withCtx as v, createElementVNode as L, normalizeClass as he, toDisplayString as E, createCommentVNode as M, createVNode as N, withModifiers as Ne, normalizeStyle as De, pushScopeId as Ue, popScopeId as Pe, Fragment as ce, renderList as le, createTextVNode as W, useCssVars as Rt, useSlots as qe, renderSlot as Y, createSlots as ge, normalizeProps as Mn, guardReactiveProps as Rn, onBeforeMount as Kt, onMounted as Kn, onUnmounted as jn, withDirectives as Ie, vShow as Ee, Teleport as Dn } from "vue";
|
|
2
|
+
import dt from "axios";
|
|
3
|
+
import { createI18n as jt, i18nTComponent as Un } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Pn } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as qn } from "vue-router";
|
|
6
6
|
var Hn = /* @__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))(Hn || {}), Yn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Yn || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ce || {}), 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 || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ae || {});
|
|
@@ -8,14 +8,14 @@ function Vn() {
|
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
10
10
|
try {
|
|
11
|
-
const t =
|
|
12
|
-
return typeof t == "function" ? t(e) :
|
|
11
|
+
const t = Mt("get-axios-instance", void 0);
|
|
12
|
+
return typeof t == "function" ? t(e) : dt.create({
|
|
13
13
|
withCredentials: !0,
|
|
14
14
|
timeout: 3e4,
|
|
15
15
|
...e
|
|
16
16
|
});
|
|
17
17
|
} catch (t) {
|
|
18
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
18
|
+
return console.warn("getAxiosInstance:", t.message || t), dt.create({
|
|
19
19
|
withCredentials: !0,
|
|
20
20
|
timeout: 3e4,
|
|
21
21
|
...e
|
|
@@ -40,7 +40,7 @@ function zn() {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Ye = "khcp-user-table-preferences", Wn = {
|
|
44
44
|
pageSize: 30,
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0
|
|
@@ -55,14 +55,14 @@ function Jn() {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
}, t = () => {
|
|
58
|
-
const n = e(localStorage.getItem(
|
|
58
|
+
const n = e(localStorage.getItem(Ye));
|
|
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, i) => {
|
|
63
63
|
try {
|
|
64
64
|
const r = t();
|
|
65
|
-
r.set(n, i), localStorage.setItem(
|
|
65
|
+
r.set(n, i), localStorage.setItem(Ye, JSON.stringify(Object.fromEntries(r.entries())));
|
|
66
66
|
} catch (r) {
|
|
67
67
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ function Jn() {
|
|
|
72
72
|
return (i == null ? void 0 : i.get(n)) || void 0 || Wn;
|
|
73
73
|
},
|
|
74
74
|
deleteAllTablePreferences: () => {
|
|
75
|
-
localStorage.removeItem(
|
|
75
|
+
localStorage.removeItem(Ye);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -188,14 +188,14 @@ const Gn = {
|
|
|
188
188
|
toggleModal: ri
|
|
189
189
|
};
|
|
190
190
|
function nt() {
|
|
191
|
-
const e =
|
|
191
|
+
const e = jt("en-us", oi);
|
|
192
192
|
return {
|
|
193
193
|
i18n: e,
|
|
194
194
|
i18nT: Un(e)
|
|
195
195
|
// Translation component <i18n-t>
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Dt() {
|
|
199
199
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
200
200
|
if (o.length !== a.length)
|
|
201
201
|
return !1;
|
|
@@ -246,65 +246,65 @@ function ai(e, t, n, i = {
|
|
|
246
246
|
n || (n = "100");
|
|
247
247
|
const { axiosInstance: r } = tt({
|
|
248
248
|
headers: e.requestHeaders
|
|
249
|
-
}), { i18n: { t: o } } = nt(), { debounce: a } = zn(), l = a(async (
|
|
250
|
-
await
|
|
251
|
-
}, 200), s = B(!1), c = B(""), d = B(""), u = B([]),
|
|
252
|
-
let
|
|
253
|
-
e.app === "konnect" ?
|
|
254
|
-
const { isValidUuid:
|
|
249
|
+
}), { i18n: { t: o } } = nt(), { debounce: a } = zn(), l = a(async (g) => {
|
|
250
|
+
await I(g);
|
|
251
|
+
}, 200), s = B(!1), c = B(""), d = B(""), u = B([]), m = B([]), f = B(void 0), x = S(t);
|
|
252
|
+
let y = `${e.apiBaseUrl}${x}`;
|
|
253
|
+
e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
254
|
+
const { isValidUuid: b } = Dt(), $ = async () => {
|
|
255
255
|
try {
|
|
256
256
|
s.value = !0;
|
|
257
|
-
const { data:
|
|
258
|
-
|
|
257
|
+
const { data: g } = await r.get(`${y}?size=${n}`);
|
|
258
|
+
g != null && g.next || (f.value = i.fetchedItemsKey in g ? g[i.fetchedItemsKey] : []), m.value = i.fetchedItemsKey in g ? g[i.fetchedItemsKey] : [], u.value = m.value;
|
|
259
259
|
} catch {
|
|
260
260
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
261
261
|
} finally {
|
|
262
262
|
s.value = !1;
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
var
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
264
|
+
}, C = B(""), I = async (g) => {
|
|
265
|
+
var k, D, re;
|
|
266
|
+
if (C.value !== g)
|
|
267
|
+
if (C.value = g || "", f.value === void 0)
|
|
268
268
|
try {
|
|
269
269
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
270
|
-
let
|
|
271
|
-
|
|
272
|
-
const { data:
|
|
273
|
-
i.fetchedItemsKey in
|
|
274
|
-
} else if (
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const { data:
|
|
278
|
-
return [
|
|
279
|
-
})()) :
|
|
280
|
-
...i.searchKeys.filter((
|
|
281
|
-
const { data:
|
|
282
|
-
return
|
|
270
|
+
let q = y + "";
|
|
271
|
+
g && (q += `/${g}`);
|
|
272
|
+
const { data: h } = await r.get(`${q}?size=${n}`);
|
|
273
|
+
i.fetchedItemsKey in h ? u.value = h[i.fetchedItemsKey] : h != null && h.id ? u.value = [h] : u.value = [];
|
|
274
|
+
} else if (g) {
|
|
275
|
+
const q = [];
|
|
276
|
+
b(g) && i.searchKeys.includes("id") ? q.push((async () => {
|
|
277
|
+
const { data: T } = await r.get(`${y}/${g}`);
|
|
278
|
+
return [T[i.fetchedItemsKey] ?? T];
|
|
279
|
+
})()) : q.push(
|
|
280
|
+
...i.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
281
|
+
const { data: R } = await r.get(`${y}?${T}=${g}`);
|
|
282
|
+
return R[i.fetchedItemsKey];
|
|
283
283
|
})
|
|
284
284
|
);
|
|
285
|
-
const
|
|
286
|
-
u.value = [], (
|
|
287
|
-
var
|
|
288
|
-
(
|
|
289
|
-
j.has(
|
|
285
|
+
const h = await Promise.all(q), j = /* @__PURE__ */ new Set();
|
|
286
|
+
u.value = [], (k = h == null ? void 0 : h.forEach) == null || k.call(h, (T) => {
|
|
287
|
+
var R;
|
|
288
|
+
(R = T == null ? void 0 : T.forEach) == null || R.call(T, (K) => {
|
|
289
|
+
j.has(K.id) || (j.add(K.id), u.value.push(K));
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
} else
|
|
293
|
-
u.value =
|
|
294
|
-
} catch (
|
|
295
|
-
((D =
|
|
293
|
+
u.value = m.value;
|
|
294
|
+
} catch (q) {
|
|
295
|
+
((D = q == null ? void 0 : q.response) == null ? void 0 : D.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
296
296
|
} finally {
|
|
297
297
|
s.value = !1;
|
|
298
298
|
}
|
|
299
299
|
else
|
|
300
|
-
s.value = !0, d.value = "",
|
|
300
|
+
s.value = !0, d.value = "", g ? (u.value = (re = f.value) == null ? void 0 : re.filter((q) => {
|
|
301
301
|
var j;
|
|
302
|
-
let
|
|
303
|
-
for (const
|
|
304
|
-
const
|
|
305
|
-
|
|
302
|
+
let h = !1;
|
|
303
|
+
for (const T of i.searchKeys) {
|
|
304
|
+
const R = typeof q[T] == "string" ? (j = q[T]) == null ? void 0 : j.toLowerCase() : q[T];
|
|
305
|
+
R != null && R.includes(g.toLowerCase()) && (h = !0);
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return h;
|
|
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,7 +313,7 @@ function ai(e, t, n, i = {
|
|
|
313
313
|
validationError: d,
|
|
314
314
|
results: u,
|
|
315
315
|
allRecords: f,
|
|
316
|
-
loadItems:
|
|
316
|
+
loadItems: $,
|
|
317
317
|
debouncedQueryChange: l
|
|
318
318
|
};
|
|
319
319
|
}
|
|
@@ -364,18 +364,18 @@ function ci(e) {
|
|
|
364
364
|
return console.warn("Failed to build valid URL:", i), "";
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Ut(e, t) {
|
|
368
368
|
const n = B(S(e)), i = B(S(t)), r = w(
|
|
369
369
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
370
370
|
), o = w(
|
|
371
371
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
372
372
|
);
|
|
373
373
|
return (a) => {
|
|
374
|
-
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query:
|
|
374
|
+
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = a;
|
|
375
375
|
try {
|
|
376
376
|
let f = new URL(o.value.href);
|
|
377
|
-
return r.value &&
|
|
378
|
-
f.searchParams.append(
|
|
377
|
+
return r.value && m ? (f.search = "", f = n.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${m}`) : new URL(`${f.href}/${m}/`)) : (r.value || new URLSearchParams(m).forEach((x, y) => {
|
|
378
|
+
f.searchParams.append(y, x);
|
|
379
379
|
}), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), c && l !== 1 && f.searchParams.append("offset", String(c)), f.href;
|
|
380
380
|
} catch (f) {
|
|
381
381
|
return console.error("RouteList(fetcher)", f), i.value;
|
|
@@ -385,7 +385,7 @@ function Dt(e, t) {
|
|
|
385
385
|
function ui(e, t, n = "data") {
|
|
386
386
|
const i = S(t), { axiosInstance: r } = tt({
|
|
387
387
|
headers: e.requestHeaders
|
|
388
|
-
}), o =
|
|
388
|
+
}), o = Ut(e, i), a = B({
|
|
389
389
|
status: Ce.Idle
|
|
390
390
|
});
|
|
391
391
|
return { fetcher: async (s) => {
|
|
@@ -394,11 +394,11 @@ function ui(e, t, n = "data") {
|
|
|
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 r.get(c), u = n && n.replace(/[^\w-_]/gi, "");
|
|
397
|
-
let
|
|
398
|
-
d[u] && Array.isArray(d[u]) ?
|
|
397
|
+
let m;
|
|
398
|
+
d[u] && Array.isArray(d[u]) ? m = d[u] : Array.isArray(d) ? m = d : m = Object.keys(d).length ? [d] : [];
|
|
399
399
|
const f = {
|
|
400
|
-
data:
|
|
401
|
-
total:
|
|
400
|
+
data: m,
|
|
401
|
+
total: m.length,
|
|
402
402
|
...d.offset ? {
|
|
403
403
|
pagination: {
|
|
404
404
|
offset: d.offset
|
|
@@ -433,22 +433,22 @@ function di() {
|
|
|
433
433
|
convertKeyToTitle: e
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
const
|
|
436
|
+
const Pt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ft = (e) => {
|
|
437
437
|
if (typeof e != "string")
|
|
438
438
|
throw new TypeError("Invalid argument expected string");
|
|
439
|
-
const t = e.match(
|
|
439
|
+
const t = e.match(Pt);
|
|
440
440
|
if (!t)
|
|
441
441
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
442
442
|
return t.shift(), t;
|
|
443
|
-
},
|
|
443
|
+
}, pt = (e) => e === "*" || e === "x" || e === "X", ht = (e) => {
|
|
444
444
|
const t = parseInt(e, 10);
|
|
445
445
|
return isNaN(t) ? e : t;
|
|
446
446
|
}, fi = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], pi = (e, t) => {
|
|
447
|
-
if (
|
|
447
|
+
if (pt(e) || pt(t))
|
|
448
448
|
return 0;
|
|
449
|
-
const [n, i] = fi(
|
|
449
|
+
const [n, i] = fi(ht(e), ht(t));
|
|
450
450
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
451
|
-
},
|
|
451
|
+
}, mt = (e, t) => {
|
|
452
452
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
453
453
|
const i = pi(e[n] || "0", t[n] || "0");
|
|
454
454
|
if (i !== 0)
|
|
@@ -456,25 +456,25 @@ const Ut = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
456
456
|
}
|
|
457
457
|
return 0;
|
|
458
458
|
}, hi = (e, t) => {
|
|
459
|
-
const n =
|
|
460
|
-
return a !== 0 ? a : r && o ?
|
|
461
|
-
},
|
|
459
|
+
const n = ft(e), i = ft(t), r = n.pop(), o = i.pop(), a = mt(n, i);
|
|
460
|
+
return a !== 0 ? a : r && o ? mt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
461
|
+
}, gt = (e, t, n) => {
|
|
462
462
|
mi(n);
|
|
463
463
|
const i = hi(e, t);
|
|
464
|
-
return
|
|
465
|
-
},
|
|
464
|
+
return qt[n].includes(i);
|
|
465
|
+
}, qt = {
|
|
466
466
|
">": [1],
|
|
467
467
|
">=": [0, 1],
|
|
468
468
|
"=": [0],
|
|
469
469
|
"<=": [-1, 0],
|
|
470
470
|
"<": [-1],
|
|
471
471
|
"!=": [-1, 1]
|
|
472
|
-
},
|
|
472
|
+
}, yt = Object.keys(qt), mi = (e) => {
|
|
473
473
|
if (typeof e != "string")
|
|
474
474
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
475
|
-
if (
|
|
476
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
477
|
-
}, gi = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
475
|
+
if (yt.indexOf(e) === -1)
|
|
476
|
+
throw new Error(`Invalid operator, expected one of ${yt.join("|")}`);
|
|
477
|
+
}, gi = (e) => typeof e == "string" && /^[v\d]/.test(e) && Pt.test(e);
|
|
478
478
|
function yi(e) {
|
|
479
479
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
480
480
|
if (!t)
|
|
@@ -486,11 +486,11 @@ function yi(e) {
|
|
|
486
486
|
if (!o)
|
|
487
487
|
return !1;
|
|
488
488
|
const [a, l] = o;
|
|
489
|
-
return !(a &&
|
|
489
|
+
return !(a && gt(r, a, "<") || l && gt(r, l, ">"));
|
|
490
490
|
}
|
|
491
491
|
function vi(e) {
|
|
492
492
|
const t = B(0), n = B(0), i = B(!1);
|
|
493
|
-
return
|
|
493
|
+
return Se(e, (o) => {
|
|
494
494
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
495
495
|
}), {
|
|
496
496
|
isTruncated: w(() => t.value < n.value)
|
|
@@ -503,8 +503,8 @@ const J = {
|
|
|
503
503
|
useErrors: si,
|
|
504
504
|
useExternalLinkCreator: ci,
|
|
505
505
|
useFetcher: ui,
|
|
506
|
-
useFetchUrlBuilder:
|
|
507
|
-
useHelpers:
|
|
506
|
+
useFetchUrlBuilder: Ut,
|
|
507
|
+
useHelpers: Dt,
|
|
508
508
|
useStringHelpers: di,
|
|
509
509
|
useI18n: nt,
|
|
510
510
|
useGatewayFeatureSupported: yi,
|
|
@@ -518,18 +518,18 @@ const J = {
|
|
|
518
518
|
}, Ci = "Copy to clipboard", xi = {
|
|
519
519
|
message: bi,
|
|
520
520
|
iconTitle: Ci
|
|
521
|
-
},
|
|
521
|
+
}, ki = "kong-ui-copy-uuid-notify", vt = "24px", _i = (e, t) => {
|
|
522
522
|
const n = e.__vccOpts || e;
|
|
523
523
|
for (const [i, r] of t)
|
|
524
524
|
n[i] = r;
|
|
525
525
|
return n;
|
|
526
|
-
}, Ai = (e) => (
|
|
526
|
+
}, Ai = (e) => (Ue("data-v-13f41aa3"), e = e(), Pe(), e), wi = ["aria-hidden"], Si = {
|
|
527
527
|
key: 0,
|
|
528
528
|
"data-testid": "kui-icon-svg-title"
|
|
529
|
-
}, Ii = /* @__PURE__ */ Ai(() => /* @__PURE__ */
|
|
529
|
+
}, Ii = /* @__PURE__ */ Ai(() => /* @__PURE__ */ L("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)), Ei = /* @__PURE__ */
|
|
532
|
+
}, null, -1)), Ei = /* @__PURE__ */ z({
|
|
533
533
|
__name: "CopyIcon",
|
|
534
534
|
props: {
|
|
535
535
|
/** The accessibility text provided to screen readers */
|
|
@@ -560,7 +560,7 @@ const J = {
|
|
|
560
560
|
size: {
|
|
561
561
|
type: [Number, String],
|
|
562
562
|
required: !1,
|
|
563
|
-
default:
|
|
563
|
+
default: vt,
|
|
564
564
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
565
565
|
validator: (e) => {
|
|
566
566
|
if (typeof e == "number" && e > 0)
|
|
@@ -589,7 +589,7 @@ const J = {
|
|
|
589
589
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
590
590
|
return `${o}px`;
|
|
591
591
|
}
|
|
592
|
-
return
|
|
592
|
+
return vt;
|
|
593
593
|
}), i = w(() => ({
|
|
594
594
|
boxSizing: "border-box",
|
|
595
595
|
color: t.color,
|
|
@@ -598,14 +598,14 @@ const J = {
|
|
|
598
598
|
lineHeight: "0",
|
|
599
599
|
width: n.value
|
|
600
600
|
}));
|
|
601
|
-
return (r, o) => (p(), F(
|
|
601
|
+
return (r, o) => (p(), F(pe(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: De(i.value)
|
|
606
606
|
}, {
|
|
607
|
-
default:
|
|
608
|
-
(p(),
|
|
607
|
+
default: v(() => [
|
|
608
|
+
(p(), _("svg", {
|
|
609
609
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
610
610
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
611
611
|
fill: "none",
|
|
@@ -615,14 +615,14 @@ const J = {
|
|
|
615
615
|
width: "100%",
|
|
616
616
|
xmlns: "http://www.w3.org/2000/svg"
|
|
617
617
|
}, [
|
|
618
|
-
e.title ? (p(),
|
|
618
|
+
e.title ? (p(), _("title", Si, E(e.title), 1)) : M("", !0),
|
|
619
619
|
Ii
|
|
620
620
|
], 8, wi))
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["aria-hidden", "style"]));
|
|
624
624
|
}
|
|
625
|
-
}), Ti = /* @__PURE__ */
|
|
625
|
+
}), Ti = /* @__PURE__ */ _i(Ei, [["__scopeId", "data-v-13f41aa3"]]), Fi = "16px", $i = { class: "kong-ui-copy-uuid" }, Oi = ["onClick"], bt = 15, Li = /* @__PURE__ */ z({
|
|
626
626
|
__name: "CopyUuid",
|
|
627
627
|
props: {
|
|
628
628
|
uuid: {
|
|
@@ -666,7 +666,7 @@ const J = {
|
|
|
666
666
|
},
|
|
667
667
|
emits: ["success", "error"],
|
|
668
668
|
setup(e, { emit: t }) {
|
|
669
|
-
const { t: n } =
|
|
669
|
+
const { t: n } = jt("en-us", xi), i = e, r = t, o = i.notify || Mt(ki, () => {
|
|
670
670
|
}), a = w(() => i.idTooltip ? {
|
|
671
671
|
label: i.idTooltip,
|
|
672
672
|
positionFixed: !0,
|
|
@@ -685,8 +685,8 @@ const J = {
|
|
|
685
685
|
s.value = f, setTimeout(() => {
|
|
686
686
|
s.value = i.tooltip;
|
|
687
687
|
}, 1800);
|
|
688
|
-
},
|
|
689
|
-
var
|
|
688
|
+
}, m = (f) => {
|
|
689
|
+
var x, y;
|
|
690
690
|
if (!f(i.uuid)) {
|
|
691
691
|
typeof o == "function" && o({
|
|
692
692
|
type: "error",
|
|
@@ -694,45 +694,45 @@ const J = {
|
|
|
694
694
|
}), l.value ? u(n("message.fail")) : r("error", i.uuid);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const b = ((x = i.uuid) == null ? void 0 : x.length) > bt, $ = i.format === "hidden" || i.format === "redacted" ? n("message.success.prefix") : `"${((y = i.uuid) == null ? void 0 : y.substring(0, bt)) + (b ? "..." : "")}"`;
|
|
698
698
|
typeof o == "function" && o({
|
|
699
699
|
type: "success",
|
|
700
|
-
message: `${
|
|
700
|
+
message: `${$}${n("message.success.content")}`
|
|
701
701
|
}), l.value ? u(i.successTooltip) : r("success", i.uuid);
|
|
702
702
|
};
|
|
703
|
-
return (f,
|
|
704
|
-
const
|
|
705
|
-
return p(),
|
|
706
|
-
e.format !== "hidden" ? (p(), F(
|
|
707
|
-
default:
|
|
708
|
-
|
|
709
|
-
class:
|
|
703
|
+
return (f, x) => {
|
|
704
|
+
const y = O("KClipboardProvider");
|
|
705
|
+
return p(), _("div", $i, [
|
|
706
|
+
e.format !== "hidden" ? (p(), F(pe(e.idTooltip ? "KTooltip" : "div"), Je({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
707
|
+
default: v(() => [
|
|
708
|
+
L("div", {
|
|
709
|
+
class: he([
|
|
710
710
|
"uuid-container",
|
|
711
711
|
e.truncated ? "truncated-uuid" : null,
|
|
712
712
|
e.useMono ? "mono" : null
|
|
713
713
|
])
|
|
714
|
-
},
|
|
714
|
+
}, E(d.value), 3)
|
|
715
715
|
]),
|
|
716
716
|
_: 1
|
|
717
|
-
}, 16)) :
|
|
718
|
-
(p(), F(
|
|
719
|
-
default:
|
|
720
|
-
|
|
721
|
-
default:
|
|
722
|
-
|
|
717
|
+
}, 16)) : M("", !0),
|
|
718
|
+
(p(), F(pe(e.tooltip ? "KTooltip" : "div"), Je(c.value, { class: "uuid-icon-wrapper" }), {
|
|
719
|
+
default: v(() => [
|
|
720
|
+
N(y, null, {
|
|
721
|
+
default: v(({ copyToClipboard: b }) => [
|
|
722
|
+
L("span", {
|
|
723
723
|
"data-testid": "copy-to-clipboard",
|
|
724
724
|
role: "button",
|
|
725
725
|
tabindex: "0",
|
|
726
|
-
onClick:
|
|
726
|
+
onClick: Ne(($) => m(b), ["stop"])
|
|
727
727
|
}, [
|
|
728
|
-
|
|
728
|
+
N(S(Ti), {
|
|
729
729
|
class: "uuid-icon",
|
|
730
730
|
color: e.iconColor,
|
|
731
731
|
decorative: !!e.tooltip,
|
|
732
732
|
size: S(Fi),
|
|
733
733
|
title: S(n)("iconTitle")
|
|
734
734
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
735
|
-
], 8,
|
|
735
|
+
], 8, Oi)
|
|
736
736
|
]),
|
|
737
737
|
_: 1
|
|
738
738
|
})
|
|
@@ -747,10 +747,10 @@ const J = {
|
|
|
747
747
|
for (const [i, r] of t)
|
|
748
748
|
n[i] = r;
|
|
749
749
|
return n;
|
|
750
|
-
},
|
|
750
|
+
}, Ht = /* @__PURE__ */ Ni(Li, [["__scopeId", "data-v-0c07874b"]]), Bi = {
|
|
751
751
|
key: 0,
|
|
752
752
|
class: "config-card-fieldset-title"
|
|
753
|
-
}, Mi = /* @__PURE__ */
|
|
753
|
+
}, Mi = /* @__PURE__ */ z({
|
|
754
754
|
__name: "JsonCardItem",
|
|
755
755
|
props: {
|
|
756
756
|
item: {
|
|
@@ -774,14 +774,14 @@ const J = {
|
|
|
774
774
|
var s;
|
|
775
775
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
776
776
|
});
|
|
777
|
-
return (s, c) => (p(), F(
|
|
778
|
-
class:
|
|
777
|
+
return (s, c) => (p(), F(pe(e.isArrayItem ? "fieldset" : "div"), {
|
|
778
|
+
class: he(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
781
|
-
e.isArrayItem ? (p(),
|
|
782
|
-
|
|
783
|
-
])) :
|
|
784
|
-
(p(!0),
|
|
780
|
+
default: v(() => [
|
|
781
|
+
e.isArrayItem ? (p(), _("legend", Bi, [
|
|
782
|
+
L("b", null, E(l.value), 1)
|
|
783
|
+
])) : M("", !0),
|
|
784
|
+
(p(!0), _(ce, null, le(Object.keys(a.value), (d, u) => (p(), F(it, {
|
|
785
785
|
key: `${r.value}-property-${u}`,
|
|
786
786
|
item: {
|
|
787
787
|
key: d,
|
|
@@ -798,7 +798,7 @@ const J = {
|
|
|
798
798
|
for (const [i, r] of t)
|
|
799
799
|
n[i] = r;
|
|
800
800
|
return n;
|
|
801
|
-
},
|
|
801
|
+
}, Yt = /* @__PURE__ */ se(Mi, [["__scopeId", "data-v-68ca83ec"]]), Ri = /* @__PURE__ */ z({
|
|
802
802
|
__name: "InternalLinkItem",
|
|
803
803
|
props: {
|
|
804
804
|
item: {
|
|
@@ -810,22 +810,22 @@ const J = {
|
|
|
810
810
|
setup(e) {
|
|
811
811
|
const { i18n: { t } } = J.useI18n();
|
|
812
812
|
return (n, i) => {
|
|
813
|
-
const r =
|
|
814
|
-
return p(),
|
|
815
|
-
|
|
813
|
+
const r = O("KButton");
|
|
814
|
+
return p(), _("div", null, [
|
|
815
|
+
N(r, {
|
|
816
816
|
appearance: "tertiary",
|
|
817
817
|
class: "navigation-button",
|
|
818
818
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
819
819
|
}, {
|
|
820
|
-
default:
|
|
821
|
-
|
|
820
|
+
default: v(() => [
|
|
821
|
+
W(E(e.item.value || S(t)("baseConfigCard.commonFields.link")), 1)
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
})
|
|
825
825
|
]);
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
}), Ki = /* @__PURE__ */ se(Ri, [["__scopeId", "data-v-c96811e5"]]), ji = /* @__PURE__ */
|
|
828
|
+
}), Ki = /* @__PURE__ */ se(Ri, [["__scopeId", "data-v-c96811e5"]]), ji = /* @__PURE__ */ z({
|
|
829
829
|
__name: "StatusBadge",
|
|
830
830
|
props: {
|
|
831
831
|
status: {
|
|
@@ -836,12 +836,12 @@ const J = {
|
|
|
836
836
|
setup(e) {
|
|
837
837
|
const { i18n: { t } } = J.useI18n();
|
|
838
838
|
return (n, i) => {
|
|
839
|
-
const r =
|
|
839
|
+
const r = O("KBadge");
|
|
840
840
|
return p(), F(r, {
|
|
841
841
|
appearance: e.status ? "success" : "neutral"
|
|
842
842
|
}, {
|
|
843
|
-
default:
|
|
844
|
-
|
|
843
|
+
default: v(() => [
|
|
844
|
+
W(E(e.status ? S(t)("baseConfigCard.statusBadge.enabledLabel") : S(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
845
845
|
]),
|
|
846
846
|
_: 1
|
|
847
847
|
}, 8, ["appearance"]);
|
|
@@ -849,8 +849,8 @@ const J = {
|
|
|
849
849
|
}
|
|
850
850
|
}), Di = "#0044f4", Ui = "#e0e4ea", Pi = "#3a3f51", qi = "#0044f4", Hi = "1px", Yi = "16px", Vi = "20px", zi = { class: "config-card-details-row" }, Wi = ["data-testid"], Ji = ["data-testid"], Gi = ["data-testid"], Zi = ["data-testid"], Qi = { key: 1 }, Xi = ["data-testid"], er = ["data-testid"], tr = ["data-testid"], nr = ["data-testid"], ir = {
|
|
851
851
|
name: "ConfigCardItem",
|
|
852
|
-
components: { CopyUuid:
|
|
853
|
-
}, rr = /* @__PURE__ */
|
|
852
|
+
components: { CopyUuid: Ht, JsonCardItem: Yt, StatusBadge: ji, InternalLinkItem: Ki }
|
|
853
|
+
}, rr = /* @__PURE__ */ z({
|
|
854
854
|
...ir,
|
|
855
855
|
props: {
|
|
856
856
|
item: {
|
|
@@ -870,13 +870,13 @@ const J = {
|
|
|
870
870
|
},
|
|
871
871
|
emits: ["navigation-click"],
|
|
872
872
|
setup(e, { emit: t }) {
|
|
873
|
-
|
|
873
|
+
Rt((x) => ({
|
|
874
874
|
"5ae2770e": d.value ? "none" : `solid ${S(Hi)} ${S(Ui)}`,
|
|
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, i = t, r =
|
|
879
|
+
const n = e, i = t, r = qe(), { i18n: { t: o, formatUnixTimeStamp: a } } = J.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = w(() => !!(n.item.tooltip || r["label-tooltip"])), c = w(() => n.item.type === V.Json || n.item.type === V.JsonArray), d = w(() => n.item.type === V.JsonArray), u = w(() => {
|
|
880
880
|
switch (n.item.type) {
|
|
881
881
|
case V.ID:
|
|
882
882
|
return {
|
|
@@ -962,8 +962,8 @@ const J = {
|
|
|
962
962
|
attrs: {
|
|
963
963
|
"data-testid": `${n.item.key}-internal-link`,
|
|
964
964
|
item: n.item,
|
|
965
|
-
onNavigationClick: (
|
|
966
|
-
i("navigation-click",
|
|
965
|
+
onNavigationClick: (x) => {
|
|
966
|
+
i("navigation-click", x);
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
};
|
|
@@ -1002,29 +1002,29 @@ const J = {
|
|
|
1002
1002
|
text: n.item.value
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}),
|
|
1006
|
-
return (
|
|
1007
|
-
const
|
|
1008
|
-
return p(),
|
|
1009
|
-
|
|
1005
|
+
}), m = B(), { isTruncated: f } = J.useTruncationDetector(m);
|
|
1006
|
+
return (x, y) => {
|
|
1007
|
+
const b = O("KLabel"), $ = O("KBadge"), C = O("KTooltip");
|
|
1008
|
+
return p(), _("div", zi, [
|
|
1009
|
+
L("div", {
|
|
1010
1010
|
class: "config-card-details-label",
|
|
1011
1011
|
"data-testid": `${e.item.key}-label`
|
|
1012
1012
|
}, [
|
|
1013
|
-
Y(
|
|
1014
|
-
|
|
1015
|
-
default:
|
|
1016
|
-
|
|
1013
|
+
Y(x.$slots, "label", { item: e.item }, () => [
|
|
1014
|
+
N(b, { "tooltip-attributes": { maxWidth: "500px" } }, ge({
|
|
1015
|
+
default: v(() => [
|
|
1016
|
+
W(E(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
|
+
L("div", {
|
|
1024
1024
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1025
1025
|
}, [
|
|
1026
|
-
Y(
|
|
1027
|
-
|
|
1026
|
+
Y(x.$slots, "label-tooltip", {}, () => [
|
|
1027
|
+
W(E(e.item.tooltip), 1)
|
|
1028
1028
|
], !0)
|
|
1029
1029
|
], 8, Ji)
|
|
1030
1030
|
]),
|
|
@@ -1033,87 +1033,87 @@ const J = {
|
|
|
1033
1033
|
]), 1024)
|
|
1034
1034
|
], !0)
|
|
1035
1035
|
], 8, Wi),
|
|
1036
|
-
|
|
1036
|
+
L("div", {
|
|
1037
1037
|
class: "config-card-details-value",
|
|
1038
1038
|
"data-testid": `${e.item.key}-property-value`
|
|
1039
1039
|
}, [
|
|
1040
|
-
Y(
|
|
1040
|
+
Y(x.$slots, e.item.key, {
|
|
1041
1041
|
rowValue: e.item.value
|
|
1042
1042
|
}, () => [
|
|
1043
|
-
l.value ? (p(),
|
|
1044
|
-
(p(), F(
|
|
1045
|
-
default:
|
|
1046
|
-
u.value.additionalComponent === "KBadge" ? (p(),
|
|
1043
|
+
l.value ? (p(), _("div", Qi, [
|
|
1044
|
+
(p(), F(pe(u.value.tag), Mn(Rn(u.value.attrs)), {
|
|
1045
|
+
default: v(() => [
|
|
1046
|
+
u.value.additionalComponent === "KBadge" ? (p(), _("div", {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1049
1049
|
}, [
|
|
1050
|
-
(p(!0),
|
|
1051
|
-
key: `${e.item.key}-badge-tag-${
|
|
1050
|
+
(p(!0), _(ce, null, le(e.item.value, (I, g) => (p(), F($, {
|
|
1051
|
+
key: `${e.item.key}-badge-tag-${g}`,
|
|
1052
1052
|
class: "config-badge",
|
|
1053
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1054
|
-
tooltip:
|
|
1053
|
+
"data-testid": `${e.item.key}-badge-tag-${g}`,
|
|
1054
|
+
tooltip: I,
|
|
1055
1055
|
"truncation-tooltip": ""
|
|
1056
1056
|
}, {
|
|
1057
|
-
default:
|
|
1058
|
-
|
|
1057
|
+
default: v(() => [
|
|
1058
|
+
W(E(I), 1)
|
|
1059
1059
|
]),
|
|
1060
1060
|
_: 2
|
|
1061
1061
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1062
|
-
], 8, Xi)) :
|
|
1063
|
-
u.value.additionalComponent === "CopyUuid" ? (p(),
|
|
1062
|
+
], 8, Xi)) : M("", !0),
|
|
1063
|
+
u.value.additionalComponent === "CopyUuid" ? (p(), _("div", {
|
|
1064
1064
|
key: 1,
|
|
1065
1065
|
class: "copy-uuid-array",
|
|
1066
1066
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1067
1067
|
}, [
|
|
1068
|
-
(p(!0),
|
|
1069
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1070
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1071
|
-
uuid:
|
|
1068
|
+
(p(!0), _(ce, null, le(e.item.value, (I, g) => (p(), F(S(Ht), Je(u.value.childAttrs, {
|
|
1069
|
+
key: `${e.item.key}-copy-uuid-${g}`,
|
|
1070
|
+
"data-testid": `${e.item.key}-copy-uuid-${g}`,
|
|
1071
|
+
uuid: I
|
|
1072
1072
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1073
|
-
], 8, er)) : u.value.additionalComponent === "KMethodBadge" ? (p(),
|
|
1073
|
+
], 8, er)) : u.value.additionalComponent === "KMethodBadge" ? (p(), _("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),
|
|
1079
|
-
key: `${e.item.key}-badge-method-${
|
|
1080
|
-
appearance: Object.values(S(Pn)).includes(
|
|
1078
|
+
(p(!0), _(ce, null, le(e.item.value, (I, g) => (p(), F($, {
|
|
1079
|
+
key: `${e.item.key}-badge-method-${g}`,
|
|
1080
|
+
appearance: Object.values(S(Pn)).includes(I.toLowerCase()) ? I.toLowerCase() : "custom",
|
|
1081
1081
|
class: "config-badge",
|
|
1082
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1082
|
+
"data-testid": `${e.item.key}-badge-method-${g}`
|
|
1083
1083
|
}, {
|
|
1084
|
-
default:
|
|
1085
|
-
|
|
1084
|
+
default: v(() => [
|
|
1085
|
+
W(E(I), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 2
|
|
1088
1088
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1089
|
-
], 8, tr)) :
|
|
1090
|
-
u.value.additionalComponent === "JsonCardItem" ? (p(),
|
|
1089
|
+
], 8, tr)) : M("", !0),
|
|
1090
|
+
u.value.additionalComponent === "JsonCardItem" ? (p(), _("div", {
|
|
1091
1091
|
key: 3,
|
|
1092
1092
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1093
1093
|
}, [
|
|
1094
|
-
(p(!0),
|
|
1095
|
-
key: `json-array-item-${
|
|
1096
|
-
index:
|
|
1094
|
+
(p(!0), _(ce, null, le(e.item.value, (I, g) => (p(), F(Yt, {
|
|
1095
|
+
key: `json-array-item-${g}`,
|
|
1096
|
+
index: g,
|
|
1097
1097
|
"is-array-item": "",
|
|
1098
|
-
item:
|
|
1098
|
+
item: I
|
|
1099
1099
|
}, null, 8, ["index", "item"]))), 128))
|
|
1100
|
-
], 8, nr)) : (p(), F(
|
|
1100
|
+
], 8, nr)) : (p(), F(C, {
|
|
1101
1101
|
key: 4,
|
|
1102
1102
|
text: S(f) ? e.item.value : ""
|
|
1103
1103
|
}, {
|
|
1104
|
-
default:
|
|
1105
|
-
|
|
1104
|
+
default: v(() => [
|
|
1105
|
+
L("span", {
|
|
1106
1106
|
ref_key: "textContent",
|
|
1107
|
-
ref:
|
|
1108
|
-
class:
|
|
1109
|
-
},
|
|
1107
|
+
ref: m,
|
|
1108
|
+
class: he(["attrs-data-text", { truncated: e.truncated }])
|
|
1109
|
+
}, E(u.value.text), 3)
|
|
1110
1110
|
]),
|
|
1111
1111
|
_: 1
|
|
1112
1112
|
}, 8, ["text"]))
|
|
1113
1113
|
]),
|
|
1114
1114
|
_: 1
|
|
1115
1115
|
}, 16))
|
|
1116
|
-
])) : (p(),
|
|
1116
|
+
])) : (p(), _("div", {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
"data-testid": `${e.item.key}-no-value`
|
|
1119
1119
|
}, " – ", 8, Zi))
|
|
@@ -1125,7 +1125,7 @@ const J = {
|
|
|
1125
1125
|
}), it = /* @__PURE__ */ se(rr, [["__scopeId", "data-v-f65fc52c"]]), or = { class: "json-config" }, ar = {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: "json-endpoint"
|
|
1128
|
-
},
|
|
1128
|
+
}, Vt = /* @__PURE__ */ z({
|
|
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. */
|
|
@@ -1153,7 +1153,7 @@ const J = {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
},
|
|
1155
1155
|
setup(e) {
|
|
1156
|
-
|
|
1156
|
+
Rt((r) => ({
|
|
1157
1157
|
"2d178975": `${i.value}ch`
|
|
1158
1158
|
}));
|
|
1159
1159
|
const t = e, n = w(() => t.jsonRecord), i = w(() => {
|
|
@@ -1165,46 +1165,46 @@ const J = {
|
|
|
1165
1165
|
});
|
|
1166
1166
|
return (r, o) => {
|
|
1167
1167
|
var s;
|
|
1168
|
-
const a =
|
|
1169
|
-
return p(),
|
|
1170
|
-
t.fetcherUrl && ((s = t.config) != null && s.jsonYamlFormsEnabled) ? (p(),
|
|
1171
|
-
|
|
1168
|
+
const a = O("KBadge"), l = O("KCodeBlock");
|
|
1169
|
+
return p(), _("div", or, [
|
|
1170
|
+
t.fetcherUrl && ((s = t.config) != null && s.jsonYamlFormsEnabled) ? (p(), _("div", ar, [
|
|
1171
|
+
N(a, {
|
|
1172
1172
|
appearance: t.requestMethod
|
|
1173
1173
|
}, {
|
|
1174
|
-
default:
|
|
1175
|
-
|
|
1174
|
+
default: v(() => [
|
|
1175
|
+
W(E(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": "",
|
|
1183
1183
|
language: "json",
|
|
1184
1184
|
theme: "dark"
|
|
1185
1185
|
}, null, 8, ["code"])
|
|
1186
|
-
])) :
|
|
1186
|
+
])) : M("", !0),
|
|
1187
1187
|
t.jsonRecord ? (p(), F(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"
|
|
1194
|
-
}, null, 8, ["class", "code"])) :
|
|
1194
|
+
}, null, 8, ["class", "code"])) : M("", !0)
|
|
1195
1195
|
]);
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
});
|
|
1199
1199
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1200
|
-
function
|
|
1200
|
+
function zt(e) {
|
|
1201
1201
|
return typeof e > "u" || e === null;
|
|
1202
1202
|
}
|
|
1203
1203
|
function lr(e) {
|
|
1204
1204
|
return typeof e == "object" && e !== null;
|
|
1205
1205
|
}
|
|
1206
1206
|
function sr(e) {
|
|
1207
|
-
return Array.isArray(e) ? e :
|
|
1207
|
+
return Array.isArray(e) ? e : zt(e) ? [] : [e];
|
|
1208
1208
|
}
|
|
1209
1209
|
function cr(e, t) {
|
|
1210
1210
|
var n, i, r, o;
|
|
@@ -1222,7 +1222,7 @@ function ur(e, t) {
|
|
|
1222
1222
|
function dr(e) {
|
|
1223
1223
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1224
1224
|
}
|
|
1225
|
-
var fr =
|
|
1225
|
+
var fr = zt, pr = lr, hr = sr, mr = ur, gr = dr, yr = cr, Q = {
|
|
1226
1226
|
isNothing: fr,
|
|
1227
1227
|
isObject: pr,
|
|
1228
1228
|
toArray: hr,
|
|
@@ -1230,22 +1230,22 @@ var fr = Vt, pr = lr, hr = sr, mr = ur, gr = dr, yr = cr, Q = {
|
|
|
1230
1230
|
isNegativeZero: gr,
|
|
1231
1231
|
extend: yr
|
|
1232
1232
|
};
|
|
1233
|
-
function
|
|
1233
|
+
function Wt(e, t) {
|
|
1234
1234
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1235
1235
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
1236
1236
|
|
|
1237
1237
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1239
|
+
function Fe(e, t) {
|
|
1240
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Wt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1241
1241
|
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
return this.name + ": " +
|
|
1242
|
+
Fe.prototype = Object.create(Error.prototype);
|
|
1243
|
+
Fe.prototype.constructor = Fe;
|
|
1244
|
+
Fe.prototype.toString = function(t) {
|
|
1245
|
+
return this.name + ": " + Wt(this, t);
|
|
1246
1246
|
};
|
|
1247
|
-
var ie =
|
|
1248
|
-
function
|
|
1247
|
+
var ie = Fe;
|
|
1248
|
+
function Ve(e, t, n, i, r) {
|
|
1249
1249
|
var o = "", a = "", l = Math.floor(r / 2) - 1;
|
|
1250
1250
|
return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
|
|
1251
1251
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1253,7 +1253,7 @@ function qe(e, t, n, i, r) {
|
|
|
1253
1253
|
// relative position
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function ze(e, t) {
|
|
1257
1257
|
return Q.repeat(" ", t - e.length) + e;
|
|
1258
1258
|
}
|
|
1259
1259
|
function vr(e, t) {
|
|
@@ -1265,24 +1265,24 @@ function vr(e, t) {
|
|
|
1265
1265
|
a < 0 && (a = i.length - 1);
|
|
1266
1266
|
var l = "", s, c, d = Math.min(e.line + t.linesAfter, r.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 = Ve(
|
|
1269
1269
|
e.buffer,
|
|
1270
1270
|
i[a - s],
|
|
1271
1271
|
r[a - s],
|
|
1272
1272
|
e.position - (i[a] - i[a - s]),
|
|
1273
1273
|
u
|
|
1274
|
-
), l = Q.repeat(" ", t.indent) +
|
|
1274
|
+
), l = Q.repeat(" ", t.indent) + ze((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1275
1275
|
` + l;
|
|
1276
|
-
for (c =
|
|
1276
|
+
for (c = Ve(e.buffer, i[a], r[a], e.position, u), l += Q.repeat(" ", t.indent) + ze((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1277
1277
|
`, l += Q.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1278
1278
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
1279
|
-
c =
|
|
1279
|
+
c = Ve(
|
|
1280
1280
|
e.buffer,
|
|
1281
1281
|
i[a + s],
|
|
1282
1282
|
r[a + s],
|
|
1283
1283
|
e.position - (i[a] - i[a + s]),
|
|
1284
1284
|
u
|
|
1285
|
-
), l += Q.repeat(" ", t.indent) +
|
|
1285
|
+
), l += Q.repeat(" ", t.indent) + ze((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1286
1286
|
`;
|
|
1287
1287
|
return l.replace(/\n$/, "");
|
|
1288
1288
|
}
|
|
@@ -1302,7 +1302,7 @@ var br = vr, Cr = [
|
|
|
1302
1302
|
"sequence",
|
|
1303
1303
|
"mapping"
|
|
1304
1304
|
];
|
|
1305
|
-
function
|
|
1305
|
+
function kr(e) {
|
|
1306
1306
|
var t = {};
|
|
1307
1307
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1308
1308
|
e[n].forEach(function(i) {
|
|
@@ -1310,7 +1310,7 @@ function _r(e) {
|
|
|
1310
1310
|
});
|
|
1311
1311
|
}), t;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function _r(e, t) {
|
|
1314
1314
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1315
1315
|
if (Cr.indexOf(n) === -1)
|
|
1316
1316
|
throw new ie('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
@@ -1318,11 +1318,11 @@ function kr(e, t) {
|
|
|
1318
1318
|
return !0;
|
|
1319
1319
|
}, this.construct = t.construct || function(n) {
|
|
1320
1320
|
return n;
|
|
1321
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1321
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = kr(t.styleAliases || null), xr.indexOf(this.kind) === -1)
|
|
1322
1322
|
throw new ie('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1323
1323
|
}
|
|
1324
|
-
var ee =
|
|
1325
|
-
function
|
|
1324
|
+
var ee = _r;
|
|
1325
|
+
function Ct(e, t) {
|
|
1326
1326
|
var n = [];
|
|
1327
1327
|
return e[t].forEach(function(i) {
|
|
1328
1328
|
var r = n.length;
|
|
@@ -1351,10 +1351,10 @@ function Ar() {
|
|
|
1351
1351
|
arguments[t].forEach(i);
|
|
1352
1352
|
return e;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Ge(e) {
|
|
1355
1355
|
return this.extend(e);
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
Ge.prototype.extend = function(t) {
|
|
1358
1358
|
var n = [], i = [];
|
|
1359
1359
|
if (t instanceof ee)
|
|
1360
1360
|
i.push(t);
|
|
@@ -1375,29 +1375,29 @@ ze.prototype.extend = function(t) {
|
|
|
1375
1375
|
if (!(o instanceof ee))
|
|
1376
1376
|
throw new ie("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1377
1377
|
});
|
|
1378
|
-
var r = Object.create(
|
|
1379
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit =
|
|
1378
|
+
var r = Object.create(Ge.prototype);
|
|
1379
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = Ct(r, "implicit"), r.compiledExplicit = Ct(r, "explicit"), r.compiledTypeMap = Ar(r.compiledImplicit, r.compiledExplicit), r;
|
|
1380
1380
|
};
|
|
1381
|
-
var
|
|
1381
|
+
var Jt = Ge, Gt = new ee("tag:yaml.org,2002:str", {
|
|
1382
1382
|
kind: "scalar",
|
|
1383
1383
|
construct: function(e) {
|
|
1384
1384
|
return e !== null ? e : "";
|
|
1385
1385
|
}
|
|
1386
|
-
}),
|
|
1386
|
+
}), Zt = new ee("tag:yaml.org,2002:seq", {
|
|
1387
1387
|
kind: "sequence",
|
|
1388
1388
|
construct: function(e) {
|
|
1389
1389
|
return e !== null ? e : [];
|
|
1390
1390
|
}
|
|
1391
|
-
}),
|
|
1391
|
+
}), Qt = new ee("tag:yaml.org,2002:map", {
|
|
1392
1392
|
kind: "mapping",
|
|
1393
1393
|
construct: function(e) {
|
|
1394
1394
|
return e !== null ? e : {};
|
|
1395
1395
|
}
|
|
1396
|
-
}),
|
|
1396
|
+
}), Xt = new Jt({
|
|
1397
1397
|
explicit: [
|
|
1398
|
-
Jt,
|
|
1399
1398
|
Gt,
|
|
1400
|
-
Zt
|
|
1399
|
+
Zt,
|
|
1400
|
+
Qt
|
|
1401
1401
|
]
|
|
1402
1402
|
});
|
|
1403
1403
|
function wr(e) {
|
|
@@ -1412,7 +1412,7 @@ function Sr() {
|
|
|
1412
1412
|
function Ir(e) {
|
|
1413
1413
|
return e === null;
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1415
|
+
var en = new ee("tag:yaml.org,2002:null", {
|
|
1416
1416
|
kind: "scalar",
|
|
1417
1417
|
resolve: wr,
|
|
1418
1418
|
construct: Sr,
|
|
@@ -1448,7 +1448,7 @@ function Tr(e) {
|
|
|
1448
1448
|
function Fr(e) {
|
|
1449
1449
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1450
1450
|
}
|
|
1451
|
-
var
|
|
1451
|
+
var tn = new ee("tag:yaml.org,2002:bool", {
|
|
1452
1452
|
kind: "scalar",
|
|
1453
1453
|
resolve: Er,
|
|
1454
1454
|
construct: Tr,
|
|
@@ -1466,10 +1466,10 @@ var en = new ee("tag:yaml.org,2002:bool", {
|
|
|
1466
1466
|
},
|
|
1467
1467
|
defaultStyle: "lowercase"
|
|
1468
1468
|
});
|
|
1469
|
-
function
|
|
1469
|
+
function $r(e) {
|
|
1470
1470
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Or(e) {
|
|
1473
1473
|
return 48 <= e && e <= 55;
|
|
1474
1474
|
}
|
|
1475
1475
|
function Lr(e) {
|
|
@@ -1496,7 +1496,7 @@ function Nr(e) {
|
|
|
1496
1496
|
if (r === "x") {
|
|
1497
1497
|
for (n++; n < t; n++)
|
|
1498
1498
|
if (r = e[n], r !== "_") {
|
|
1499
|
-
if (
|
|
1499
|
+
if (!$r(e.charCodeAt(n)))
|
|
1500
1500
|
return !1;
|
|
1501
1501
|
i = !0;
|
|
1502
1502
|
}
|
|
@@ -1505,7 +1505,7 @@ function Nr(e) {
|
|
|
1505
1505
|
if (r === "o") {
|
|
1506
1506
|
for (n++; n < t; n++)
|
|
1507
1507
|
if (r = e[n], r !== "_") {
|
|
1508
|
-
if (
|
|
1508
|
+
if (!Or(e.charCodeAt(n)))
|
|
1509
1509
|
return !1;
|
|
1510
1510
|
i = !0;
|
|
1511
1511
|
}
|
|
@@ -1539,7 +1539,7 @@ function Br(e) {
|
|
|
1539
1539
|
function Mr(e) {
|
|
1540
1540
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Q.isNegativeZero(e);
|
|
1541
1541
|
}
|
|
1542
|
-
var
|
|
1542
|
+
var nn = new ee("tag:yaml.org,2002:int", {
|
|
1543
1543
|
kind: "scalar",
|
|
1544
1544
|
resolve: Nr,
|
|
1545
1545
|
construct: Br,
|
|
@@ -1616,31 +1616,31 @@ function Ur(e, t) {
|
|
|
1616
1616
|
function Pr(e) {
|
|
1617
1617
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Q.isNegativeZero(e));
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1619
|
+
var rn = new ee("tag:yaml.org,2002:float", {
|
|
1620
1620
|
kind: "scalar",
|
|
1621
1621
|
resolve: Kr,
|
|
1622
1622
|
construct: jr,
|
|
1623
1623
|
predicate: Pr,
|
|
1624
1624
|
represent: Ur,
|
|
1625
1625
|
defaultStyle: "lowercase"
|
|
1626
|
-
}),
|
|
1626
|
+
}), on = Xt.extend({
|
|
1627
1627
|
implicit: [
|
|
1628
|
-
Xt,
|
|
1629
1628
|
en,
|
|
1630
1629
|
tn,
|
|
1631
|
-
nn
|
|
1630
|
+
nn,
|
|
1631
|
+
rn
|
|
1632
1632
|
]
|
|
1633
|
-
}),
|
|
1633
|
+
}), an = on, ln = new RegExp(
|
|
1634
1634
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1635
|
-
),
|
|
1635
|
+
), sn = new RegExp(
|
|
1636
1636
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1637
1637
|
);
|
|
1638
1638
|
function qr(e) {
|
|
1639
|
-
return e === null ? !1 :
|
|
1639
|
+
return e === null ? !1 : ln.exec(e) !== null || sn.exec(e) !== null;
|
|
1640
1640
|
}
|
|
1641
1641
|
function Hr(e) {
|
|
1642
|
-
var t, n, i, r, o, a, l, s = 0, c = null, d, u,
|
|
1643
|
-
if (t =
|
|
1642
|
+
var t, n, i, r, o, a, l, s = 0, c = null, d, u, m;
|
|
1643
|
+
if (t = ln.exec(e), t === null && (t = sn.exec(e)), t === null)
|
|
1644
1644
|
throw new Error("Date resolve error");
|
|
1645
1645
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1646
1646
|
return new Date(Date.UTC(n, i, r));
|
|
@@ -1649,12 +1649,12 @@ function Hr(e) {
|
|
|
1649
1649
|
s += "0";
|
|
1650
1650
|
s = +s;
|
|
1651
1651
|
}
|
|
1652
|
-
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)),
|
|
1652
|
+
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), m = new Date(Date.UTC(n, i, r, o, a, l, s)), c && m.setTime(m.getTime() - c), m;
|
|
1653
1653
|
}
|
|
1654
1654
|
function Yr(e) {
|
|
1655
1655
|
return e.toISOString();
|
|
1656
1656
|
}
|
|
1657
|
-
var
|
|
1657
|
+
var cn = new ee("tag:yaml.org,2002:timestamp", {
|
|
1658
1658
|
kind: "scalar",
|
|
1659
1659
|
resolve: qr,
|
|
1660
1660
|
construct: Hr,
|
|
@@ -1664,7 +1664,7 @@ var sn = new ee("tag:yaml.org,2002:timestamp", {
|
|
|
1664
1664
|
function Vr(e) {
|
|
1665
1665
|
return e === "<<" || e === null;
|
|
1666
1666
|
}
|
|
1667
|
-
var
|
|
1667
|
+
var un = new ee("tag:yaml.org,2002:merge", {
|
|
1668
1668
|
kind: "scalar",
|
|
1669
1669
|
resolve: Vr
|
|
1670
1670
|
}), rt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1696,7 +1696,7 @@ function Jr(e) {
|
|
|
1696
1696
|
function Gr(e) {
|
|
1697
1697
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1698
1698
|
}
|
|
1699
|
-
var
|
|
1699
|
+
var dn = new ee("tag:yaml.org,2002:binary", {
|
|
1700
1700
|
kind: "scalar",
|
|
1701
1701
|
resolve: zr,
|
|
1702
1702
|
construct: Wr,
|
|
@@ -1728,7 +1728,7 @@ function Xr(e) {
|
|
|
1728
1728
|
function eo(e) {
|
|
1729
1729
|
return e !== null ? e : [];
|
|
1730
1730
|
}
|
|
1731
|
-
var
|
|
1731
|
+
var fn = new ee("tag:yaml.org,2002:omap", {
|
|
1732
1732
|
kind: "sequence",
|
|
1733
1733
|
resolve: Xr,
|
|
1734
1734
|
construct: eo
|
|
@@ -1752,7 +1752,7 @@ function io(e) {
|
|
|
1752
1752
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1753
1753
|
return o;
|
|
1754
1754
|
}
|
|
1755
|
-
var
|
|
1755
|
+
var pn = new ee("tag:yaml.org,2002:pairs", {
|
|
1756
1756
|
kind: "sequence",
|
|
1757
1757
|
resolve: no,
|
|
1758
1758
|
construct: io
|
|
@@ -1769,35 +1769,35 @@ function oo(e) {
|
|
|
1769
1769
|
function ao(e) {
|
|
1770
1770
|
return e !== null ? e : {};
|
|
1771
1771
|
}
|
|
1772
|
-
var
|
|
1772
|
+
var hn = new ee("tag:yaml.org,2002:set", {
|
|
1773
1773
|
kind: "mapping",
|
|
1774
1774
|
resolve: oo,
|
|
1775
1775
|
construct: ao
|
|
1776
|
-
}), ot =
|
|
1776
|
+
}), ot = an.extend({
|
|
1777
1777
|
implicit: [
|
|
1778
|
-
|
|
1779
|
-
|
|
1778
|
+
cn,
|
|
1779
|
+
un
|
|
1780
1780
|
],
|
|
1781
1781
|
explicit: [
|
|
1782
|
-
un,
|
|
1783
1782
|
dn,
|
|
1784
1783
|
fn,
|
|
1785
|
-
pn
|
|
1784
|
+
pn,
|
|
1785
|
+
hn
|
|
1786
1786
|
]
|
|
1787
|
-
}),
|
|
1788
|
-
function
|
|
1787
|
+
}), me = Object.prototype.hasOwnProperty, Be = 1, mn = 2, gn = 3, Me = 4, We = 1, lo = 2, xt = 3, so = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, co = /[\x85\u2028\u2029]/, uo = /[,\[\]\{\}]/, yn = /^(?:!|!!|![a-z\-]+!)$/i, vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1788
|
+
function kt(e) {
|
|
1789
1789
|
return Object.prototype.toString.call(e);
|
|
1790
1790
|
}
|
|
1791
1791
|
function ue(e) {
|
|
1792
1792
|
return e === 10 || e === 13;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function ye(e) {
|
|
1795
1795
|
return e === 9 || e === 32;
|
|
1796
1796
|
}
|
|
1797
1797
|
function oe(e) {
|
|
1798
1798
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function ke(e) {
|
|
1801
1801
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1802
1802
|
}
|
|
1803
1803
|
function fo(e) {
|
|
@@ -1820,13 +1820,13 @@ function mo(e) {
|
|
|
1820
1820
|
(e - 65536 & 1023) + 56320
|
|
1821
1821
|
);
|
|
1822
1822
|
}
|
|
1823
|
-
var
|
|
1823
|
+
var bn = new Array(256), Cn = new Array(256);
|
|
1824
1824
|
for (var be = 0; be < 256; be++)
|
|
1825
|
-
|
|
1825
|
+
bn[be] = _t(be) ? 1 : 0, Cn[be] = _t(be);
|
|
1826
1826
|
function go(e, t) {
|
|
1827
1827
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function xn(e, t) {
|
|
1830
1830
|
var n = {
|
|
1831
1831
|
name: e.filename,
|
|
1832
1832
|
buffer: e.input.slice(0, -1),
|
|
@@ -1837,24 +1837,24 @@ function Cn(e, t) {
|
|
|
1837
1837
|
};
|
|
1838
1838
|
return n.snippet = br(n), new ie(t, n);
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1841
|
-
throw
|
|
1840
|
+
function A(e, t) {
|
|
1841
|
+
throw xn(e, t);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1844
|
-
e.onWarning && e.onWarning.call(null,
|
|
1843
|
+
function Re(e, t) {
|
|
1844
|
+
e.onWarning && e.onWarning.call(null, xn(e, t));
|
|
1845
1845
|
}
|
|
1846
|
-
var
|
|
1846
|
+
var At = {
|
|
1847
1847
|
YAML: function(t, n, i) {
|
|
1848
1848
|
var r, o, a;
|
|
1849
|
-
t.version !== null &&
|
|
1849
|
+
t.version !== null && A(t, "duplication of %YAML directive"), i.length !== 1 && A(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && A(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && A(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Re(t, "unsupported YAML version of the document");
|
|
1850
1850
|
},
|
|
1851
1851
|
TAG: function(t, n, i) {
|
|
1852
1852
|
var r, o;
|
|
1853
|
-
i.length !== 2 &&
|
|
1853
|
+
i.length !== 2 && A(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], yn.test(r) || A(t, "ill-formed tag handle (first argument) of the TAG directive"), me.call(t.tagMap, r) && A(t, 'there is a previously declared suffix for "' + r + '" tag handle'), vn.test(o) || A(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1854
1854
|
try {
|
|
1855
1855
|
o = decodeURIComponent(o);
|
|
1856
1856
|
} catch {
|
|
1857
|
-
|
|
1857
|
+
A(t, "tag prefix is malformed: " + o);
|
|
1858
1858
|
}
|
|
1859
1859
|
t.tagMap[r] = o;
|
|
1860
1860
|
}
|
|
@@ -1864,30 +1864,30 @@ function fe(e, t, n, i) {
|
|
|
1864
1864
|
if (t < n) {
|
|
1865
1865
|
if (l = e.input.slice(t, n), i)
|
|
1866
1866
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1867
|
-
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 ||
|
|
1867
|
+
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || A(e, "expected valid JSON character");
|
|
1868
1868
|
else
|
|
1869
|
-
so.test(l) &&
|
|
1869
|
+
so.test(l) && A(e, "the stream contains non-printable characters");
|
|
1870
1870
|
e.result += l;
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function wt(e, t, n, i) {
|
|
1874
1874
|
var r, o, a, l;
|
|
1875
|
-
for (Q.isObject(n) ||
|
|
1876
|
-
o = r[a],
|
|
1875
|
+
for (Q.isObject(n) || A(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1876
|
+
o = r[a], me.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function _e(e, t, n, i, r, o, a, l, s) {
|
|
1879
1879
|
var c, d;
|
|
1880
1880
|
if (Array.isArray(r))
|
|
1881
1881
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
1882
|
-
Array.isArray(r[c]) &&
|
|
1883
|
-
if (typeof r == "object" &&
|
|
1882
|
+
Array.isArray(r[c]) && A(e, "nested arrays are not supported inside keys"), typeof r == "object" && kt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
|
|
1883
|
+
if (typeof r == "object" && kt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1884
1884
|
if (Array.isArray(o))
|
|
1885
1885
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
1886
|
-
|
|
1886
|
+
wt(e, t, o[c], n);
|
|
1887
1887
|
else
|
|
1888
|
-
|
|
1888
|
+
wt(e, t, o, n);
|
|
1889
1889
|
else
|
|
1890
|
-
!e.json && !
|
|
1890
|
+
!e.json && !me.call(n, r) && me.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, A(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1891
1891
|
configurable: !0,
|
|
1892
1892
|
enumerable: !0,
|
|
1893
1893
|
writable: !0,
|
|
@@ -1897,11 +1897,11 @@ function ke(e, t, n, i, r, o, a, l, s) {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
function at(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++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1901
1901
|
}
|
|
1902
1902
|
function G(e, t, n) {
|
|
1903
1903
|
for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1904
|
-
for (;
|
|
1904
|
+
for (; ye(r); )
|
|
1905
1905
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1906
1906
|
if (t && r === 35)
|
|
1907
1907
|
do
|
|
@@ -1913,9 +1913,9 @@ function G(e, t, n) {
|
|
|
1913
1913
|
else
|
|
1914
1914
|
break;
|
|
1915
1915
|
}
|
|
1916
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
1916
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), i;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function He(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 || oe(n)));
|
|
1921
1921
|
}
|
|
@@ -1924,18 +1924,18 @@ function lt(e, t) {
|
|
|
1924
1924
|
`, t - 1));
|
|
1925
1925
|
}
|
|
1926
1926
|
function yo(e, t, n) {
|
|
1927
|
-
var i, r, o, a, l, s, c, d, u = e.kind,
|
|
1928
|
-
if (f = e.input.charCodeAt(e.position), oe(f) ||
|
|
1927
|
+
var i, r, o, a, l, s, c, d, u = e.kind, m = e.result, f;
|
|
1928
|
+
if (f = e.input.charCodeAt(e.position), oe(f) || ke(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) && (r = e.input.charCodeAt(e.position + 1), oe(r) || n && ke(r)))
|
|
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 (r = e.input.charCodeAt(e.position + 1), oe(r) || n &&
|
|
1932
|
+
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n && ke(r))
|
|
1933
1933
|
break;
|
|
1934
1934
|
} else if (f === 35) {
|
|
1935
1935
|
if (i = e.input.charCodeAt(e.position - 1), oe(i))
|
|
1936
1936
|
break;
|
|
1937
1937
|
} else {
|
|
1938
|
-
if (e.position === e.lineStart &&
|
|
1938
|
+
if (e.position === e.lineStart && He(e) || n && ke(f))
|
|
1939
1939
|
break;
|
|
1940
1940
|
if (ue(f))
|
|
1941
1941
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, G(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1946,9 +1946,9 @@ function yo(e, t, n) {
|
|
|
1946
1946
|
break;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
l && (fe(e, o, a, !1), lt(e, e.line - s), o = a = e.position, l = !1),
|
|
1949
|
+
l && (fe(e, o, a, !1), lt(e, e.line - s), o = a = e.position, l = !1), ye(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1950
1950
|
}
|
|
1951
|
-
return fe(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result =
|
|
1951
|
+
return fe(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1952
1952
|
}
|
|
1953
1953
|
function vo(e, t) {
|
|
1954
1954
|
var n, i, r;
|
|
@@ -1961,8 +1961,8 @@ function vo(e, t) {
|
|
|
1961
1961
|
else
|
|
1962
1962
|
return !0;
|
|
1963
1963
|
else
|
|
1964
|
-
ue(n) ? (fe(e, i, r, !0), lt(e, G(e, !1, t)), i = r = e.position) : e.position === e.lineStart &&
|
|
1965
|
-
|
|
1964
|
+
ue(n) ? (fe(e, i, r, !0), lt(e, G(e, !1, t)), i = r = e.position) : e.position === e.lineStart && He(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1965
|
+
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
1966
1966
|
}
|
|
1967
1967
|
function bo(e, t) {
|
|
1968
1968
|
var n, i, r, o, a, l;
|
|
@@ -1974,37 +1974,37 @@ function bo(e, t) {
|
|
|
1974
1974
|
if (l === 92) {
|
|
1975
1975
|
if (fe(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ue(l))
|
|
1976
1976
|
G(e, !1, t);
|
|
1977
|
-
else if (l < 256 &&
|
|
1978
|
-
e.result +=
|
|
1977
|
+
else if (l < 256 && bn[l])
|
|
1978
|
+
e.result += Cn[l], e.position++;
|
|
1979
1979
|
else if ((a = po(l)) > 0) {
|
|
1980
1980
|
for (r = a, o = 0; r > 0; r--)
|
|
1981
|
-
l = e.input.charCodeAt(++e.position), (a = fo(l)) >= 0 ? o = (o << 4) + a :
|
|
1981
|
+
l = e.input.charCodeAt(++e.position), (a = fo(l)) >= 0 ? o = (o << 4) + a : A(e, "expected hexadecimal character");
|
|
1982
1982
|
e.result += mo(o), e.position++;
|
|
1983
1983
|
} else
|
|
1984
|
-
|
|
1984
|
+
A(e, "unknown escape sequence");
|
|
1985
1985
|
n = i = e.position;
|
|
1986
1986
|
} else
|
|
1987
|
-
ue(l) ? (fe(e, n, i, !0), lt(e, G(e, !1, t)), n = i = e.position) : e.position === e.lineStart &&
|
|
1987
|
+
ue(l) ? (fe(e, n, i, !0), lt(e, G(e, !1, t)), n = i = e.position) : e.position === e.lineStart && He(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
1990
1990
|
}
|
|
1991
1991
|
function Co(e, t) {
|
|
1992
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u,
|
|
1993
|
-
if (
|
|
1992
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, m, f, x = /* @__PURE__ */ Object.create(null), y, b, $, C;
|
|
1993
|
+
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
1994
1994
|
d = 93, f = !1, l = [];
|
|
1995
|
-
else if (
|
|
1995
|
+
else if (C === 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 (G(e, !0, t),
|
|
1999
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), C = e.input.charCodeAt(++e.position); C !== 0; ) {
|
|
2000
|
+
if (G(e, !0, t), C = e.input.charCodeAt(e.position), C === 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 ? C === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), b = y = $ = null, u = m = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), oe(c) && (u = m = !0, e.position++, G(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ae(e, t, Be, !1, !0), b = e.tag, y = e.result, G(e, !0, t), C = e.input.charCodeAt(e.position), (m || e.line === i) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), G(e, !0, t), Ae(e, t, Be, !1, !0), $ = e.result), f ? _e(e, l, x, b, y, $, i, r, o) : u ? l.push(_e(e, null, x, b, y, $, i, r, o)) : l.push(y), G(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
|
|
2003
2003
|
}
|
|
2004
|
-
|
|
2004
|
+
A(e, "unexpected end of the stream within a flow collection");
|
|
2005
2005
|
}
|
|
2006
2006
|
function xo(e, t) {
|
|
2007
|
-
var n, i, r =
|
|
2007
|
+
var n, i, r = We, 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
|
i = !1;
|
|
2010
2010
|
else if (u === 62)
|
|
@@ -2013,15 +2013,15 @@ function xo(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
|
+
We === r ? r = u === 43 ? xt : lo : A(e, "repeat of a chomping mode identifier");
|
|
2017
2017
|
else if ((d = ho(u)) >= 0)
|
|
2018
|
-
d === 0 ?
|
|
2018
|
+
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? A(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
2019
2019
|
else
|
|
2020
2020
|
break;
|
|
2021
|
-
if (
|
|
2021
|
+
if (ye(u)) {
|
|
2022
2022
|
do
|
|
2023
2023
|
u = e.input.charCodeAt(++e.position);
|
|
2024
|
-
while (
|
|
2024
|
+
while (ye(u));
|
|
2025
2025
|
if (u === 35)
|
|
2026
2026
|
do
|
|
2027
2027
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -2035,12 +2035,12 @@ function xo(e, t) {
|
|
|
2035
2035
|
continue;
|
|
2036
2036
|
}
|
|
2037
2037
|
if (e.lineIndent < l) {
|
|
2038
|
-
r ===
|
|
2039
|
-
`, o ? 1 + s : s) : r ===
|
|
2038
|
+
r === xt ? e.result += Q.repeat(`
|
|
2039
|
+
`, o ? 1 + s : s) : r === We && o && (e.result += `
|
|
2040
2040
|
`);
|
|
2041
2041
|
break;
|
|
2042
2042
|
}
|
|
2043
|
-
for (i ?
|
|
2043
|
+
for (i ? ye(u) ? (c = !0, e.result += Q.repeat(`
|
|
2044
2044
|
`, o ? 1 + s : s)) : c ? (c = !1, e.result += Q.repeat(`
|
|
2045
2045
|
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += Q.repeat(`
|
|
2046
2046
|
`, s) : e.result += Q.repeat(`
|
|
@@ -2050,114 +2050,114 @@ function xo(e, t) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
return !0;
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function St(e, t) {
|
|
2054
2054
|
var n, i = e.tag, r = 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, A(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !oe(a)))); ) {
|
|
2058
2058
|
if (l = !0, e.position++, G(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, Ae(e, t,
|
|
2063
|
-
|
|
2062
|
+
if (n = e.line, Ae(e, t, gn, !1, !0), o.push(e.result), G(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
2063
|
+
A(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 = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2070
|
-
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {},
|
|
2069
|
+
function ko(e, t, n) {
|
|
2070
|
+
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, x = null, y = null, b = !1, $ = !1, C;
|
|
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), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
2074
|
+
if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && oe(i))
|
|
2075
|
+
C === 63 ? (b && (_e(e, u, m, f, x, null, a, l, s), f = x = y = null), $ = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
|
|
2076
2076
|
else {
|
|
2077
|
-
if (a = e.line, l = e.lineStart, s = e.position, !Ae(e, n,
|
|
2077
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Ae(e, n, mn, !1, !0))
|
|
2078
2078
|
break;
|
|
2079
2079
|
if (e.line === o) {
|
|
2080
|
-
for (
|
|
2081
|
-
|
|
2082
|
-
if (
|
|
2083
|
-
|
|
2084
|
-
else if (
|
|
2085
|
-
|
|
2080
|
+
for (C = e.input.charCodeAt(e.position); ye(C); )
|
|
2081
|
+
C = e.input.charCodeAt(++e.position);
|
|
2082
|
+
if (C === 58)
|
|
2083
|
+
C = e.input.charCodeAt(++e.position), oe(C) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (_e(e, u, m, f, x, null, a, l, s), f = x = y = null), $ = !0, b = !1, r = !1, f = e.tag, x = e.result;
|
|
2084
|
+
else if ($)
|
|
2085
|
+
A(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 ($)
|
|
2089
|
+
A(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) && (b && (a = e.line, l = e.lineStart, s = e.position), Ae(e, t, Me, !0, r) && (b ? x = e.result : y = e.result), b || (_e(e, u, m, f, x, y, a, l, s), f = x = y = null), G(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
|
|
2094
|
+
A(e, "bad indentation of a mapping entry");
|
|
2095
2095
|
else if (e.lineIndent < t)
|
|
2096
2096
|
break;
|
|
2097
2097
|
}
|
|
2098
|
-
return
|
|
2098
|
+
return b && _e(e, u, m, f, x, null, a, l, s), $ && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), $;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function _o(e) {
|
|
2101
2101
|
var t, n = !1, i = !1, r, 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 && A(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
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)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
2109
2109
|
} else {
|
|
2110
2110
|
for (; a !== 0 && !oe(a); )
|
|
2111
|
-
a === 33 && (i ?
|
|
2112
|
-
o = e.input.slice(t, e.position), uo.test(o) &&
|
|
2111
|
+
a === 33 && (i ? A(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), yn.test(r) || A(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
2112
|
+
o = e.input.slice(t, e.position), uo.test(o) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
2113
2113
|
}
|
|
2114
|
-
o && !
|
|
2114
|
+
o && !vn.test(o) && A(e, "tag name cannot contain such characters: " + o);
|
|
2115
2115
|
try {
|
|
2116
2116
|
o = decodeURIComponent(o);
|
|
2117
2117
|
} catch {
|
|
2118
|
-
|
|
2118
|
+
A(e, "tag name is malformed: " + o);
|
|
2119
2119
|
}
|
|
2120
|
-
return n ? e.tag = o :
|
|
2120
|
+
return n ? e.tag = o : me.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : A(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2121
2121
|
}
|
|
2122
2122
|
function Ao(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 && A(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !ke(n); )
|
|
2127
2127
|
n = e.input.charCodeAt(++e.position);
|
|
2128
|
-
return e.position === t &&
|
|
2128
|
+
return e.position === t && A(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 wo(e) {
|
|
2131
2131
|
var t, n, i;
|
|
2132
2132
|
if (i = e.input.charCodeAt(e.position), i !== 42)
|
|
2133
2133
|
return !1;
|
|
2134
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !
|
|
2134
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !ke(i); )
|
|
2135
2135
|
i = e.input.charCodeAt(++e.position);
|
|
2136
|
-
return e.position === t &&
|
|
2136
|
+
return e.position === t && A(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), me.call(e.anchorMap, n) || A(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], G(e, !0, -1), !0;
|
|
2137
2137
|
}
|
|
2138
2138
|
function Ae(e, t, n, i, r) {
|
|
2139
|
-
var o, a, l, s = 1, c = !1, d = !1, u,
|
|
2140
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l =
|
|
2141
|
-
for (;
|
|
2139
|
+
var o, a, l, s = 1, c = !1, d = !1, u, m, f, x, y, b;
|
|
2140
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Me === n || gn === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2141
|
+
for (; _o(e) || Ao(e); )
|
|
2142
2142
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2143
|
-
if (l && (l = c || r), (s === 1 ||
|
|
2143
|
+
if (l && (l = c || r), (s === 1 || Me === n) && (Be === n || mn === n ? y = t : y = t + 1, b = e.position - e.lineStart, s === 1 ? l && (St(e, b) || ko(e, b, y)) || Co(e, y) ? d = !0 : (a && xo(e, y) || vo(e, y) || bo(e, y) ? d = !0 : wo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : yo(e, y, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && St(e, b))), 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" &&
|
|
2147
|
-
if (
|
|
2148
|
-
e.result =
|
|
2146
|
+
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
2147
|
+
if (x = e.implicitTypes[u], x.resolve(e.result)) {
|
|
2148
|
+
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2149
2149
|
break;
|
|
2150
2150
|
}
|
|
2151
2151
|
} else if (e.tag !== "!") {
|
|
2152
|
-
if (
|
|
2153
|
-
|
|
2152
|
+
if (me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2153
|
+
x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2154
2154
|
else
|
|
2155
|
-
for (
|
|
2155
|
+
for (x = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
|
|
2156
2156
|
if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
|
|
2157
|
-
|
|
2157
|
+
x = f[u];
|
|
2158
2158
|
break;
|
|
2159
2159
|
}
|
|
2160
|
-
|
|
2160
|
+
x || A(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && A(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)) : A(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 So(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 && (G(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 && !oe(a); )
|
|
2168
2168
|
a = e.input.charCodeAt(++e.position);
|
|
2169
|
-
for (i = e.input.slice(n, e.position), r = [], i.length < 1 &&
|
|
2170
|
-
for (;
|
|
2169
|
+
for (i = e.input.slice(n, e.position), r = [], i.length < 1 && A(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
2170
|
+
for (; ye(a); )
|
|
2171
2171
|
a = e.input.charCodeAt(++e.position);
|
|
2172
2172
|
if (a === 35) {
|
|
2173
2173
|
do
|
|
@@ -2181,22 +2181,22 @@ function So(e) {
|
|
|
2181
2181
|
a = e.input.charCodeAt(++e.position);
|
|
2182
2182
|
r.push(e.input.slice(n, e.position));
|
|
2183
2183
|
}
|
|
2184
|
-
a !== 0 && at(e),
|
|
2184
|
+
a !== 0 && at(e), me.call(At, i) ? At[i](e, i, r) : Re(e, 'unknown document directive "' + i + '"');
|
|
2185
2185
|
}
|
|
2186
|
-
if (G(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, G(e, !0, -1)) : o &&
|
|
2186
|
+
if (G(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, G(e, !0, -1)) : o && A(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Me, !1, !0), G(e, !0, -1), e.checkLineBreaks && co.test(e.input.slice(t, e.position)) && Re(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && He(e)) {
|
|
2187
2187
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, G(e, !0, -1));
|
|
2188
2188
|
return;
|
|
2189
2189
|
}
|
|
2190
2190
|
if (e.position < e.length - 1)
|
|
2191
|
-
|
|
2191
|
+
A(e, "end of the stream or a document separator is expected");
|
|
2192
2192
|
else
|
|
2193
2193
|
return;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function kn(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 go(e, t), i = e.indexOf("\0");
|
|
2199
|
-
for (i !== -1 && (n.position = i,
|
|
2199
|
+
for (i !== -1 && (n.position = i, A(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
|
So(n);
|
|
@@ -2204,14 +2204,14 @@ function xn(e, t) {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
function Io(e, t, n) {
|
|
2206
2206
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2207
|
-
var i =
|
|
2207
|
+
var i = kn(e, n);
|
|
2208
2208
|
if (typeof t != "function")
|
|
2209
2209
|
return i;
|
|
2210
2210
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2211
2211
|
t(i[r]);
|
|
2212
2212
|
}
|
|
2213
2213
|
function Eo(e, t) {
|
|
2214
|
-
var n =
|
|
2214
|
+
var n = kn(e, t);
|
|
2215
2215
|
if (n.length !== 0) {
|
|
2216
2216
|
if (n.length === 1)
|
|
2217
2217
|
return n[0];
|
|
@@ -2221,7 +2221,7 @@ function Eo(e, t) {
|
|
|
2221
2221
|
var To = Io, Fo = Eo, _n = {
|
|
2222
2222
|
loadAll: To,
|
|
2223
2223
|
load: Fo
|
|
2224
|
-
},
|
|
2224
|
+
}, An = Object.prototype.toString, wn = Object.prototype.hasOwnProperty, st = 65279, $o = 9, $e = 10, Oo = 13, Lo = 32, No = 33, Bo = 34, Ze = 35, Mo = 37, Ro = 38, Ko = 39, jo = 42, Sn = 44, Do = 45, Ke = 58, Uo = 61, Po = 62, qo = 63, Ho = 64, In = 91, En = 93, Yo = 96, Tn = 123, Vo = 124, Fn = 125, ne = {};
|
|
2225
2225
|
ne[0] = "\\0";
|
|
2226
2226
|
ne[7] = "\\a";
|
|
2227
2227
|
ne[8] = "\\b";
|
|
@@ -2260,7 +2260,7 @@ function Jo(e, t) {
|
|
|
2260
2260
|
if (t === null)
|
|
2261
2261
|
return {};
|
|
2262
2262
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2263
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2263
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && wn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2264
2264
|
return n;
|
|
2265
2265
|
}
|
|
2266
2266
|
function Go(e) {
|
|
@@ -2275,18 +2275,18 @@ function Go(e) {
|
|
|
2275
2275
|
throw new ie("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2276
2276
|
return "\\" + n + Q.repeat("0", i - t.length) + t;
|
|
2277
2277
|
}
|
|
2278
|
-
var Zo = 1,
|
|
2278
|
+
var Zo = 1, Oe = 2;
|
|
2279
2279
|
function Qo(e) {
|
|
2280
|
-
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Jo(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 === '"' ?
|
|
2280
|
+
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Jo(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 === '"' ? Oe : Zo, 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
|
-
function
|
|
2282
|
+
function It(e, t) {
|
|
2283
2283
|
for (var n = Q.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
2284
2284
|
r = e.indexOf(`
|
|
2285
2285
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
2286
2286
|
` && (o += n), o += a;
|
|
2287
2287
|
return o;
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function Qe(e, t) {
|
|
2290
2290
|
return `
|
|
2291
2291
|
` + Q.repeat(" ", e.indent * t);
|
|
2292
2292
|
}
|
|
@@ -2297,67 +2297,67 @@ function Xo(e, t) {
|
|
|
2297
2297
|
return !0;
|
|
2298
2298
|
return !1;
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
return e === Lo || e ===
|
|
2300
|
+
function je(e) {
|
|
2301
|
+
return e === Lo || e === $o;
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function Le(e) {
|
|
2304
2304
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== st || 65536 <= e && e <= 1114111;
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return
|
|
2306
|
+
function Et(e) {
|
|
2307
|
+
return Le(e) && e !== st && e !== Oo && e !== $e;
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
var i =
|
|
2309
|
+
function Tt(e, t, n) {
|
|
2310
|
+
var i = Et(e), r = i && !je(e);
|
|
2311
2311
|
return (
|
|
2312
2312
|
// ns-plain-safe
|
|
2313
2313
|
(n ? (
|
|
2314
2314
|
// c = flow-in
|
|
2315
2315
|
i
|
|
2316
|
-
) : i && e !==
|
|
2316
|
+
) : i && e !== Sn && e !== In && e !== En && e !== Tn && e !== Fn) && e !== Ze && !(t === Ke && !r) || Et(t) && !je(t) && e === Ze || t === Ke && r
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
2319
2319
|
function ea(e) {
|
|
2320
|
-
return
|
|
2320
|
+
return Le(e) && e !== st && !je(e) && e !== Do && e !== qo && e !== Ke && e !== Sn && e !== In && e !== En && e !== Tn && e !== Fn && e !== Ze && e !== Ro && e !== jo && e !== No && e !== Vo && e !== Uo && e !== Po && e !== Ko && e !== Bo && e !== Mo && e !== Ho && e !== Yo;
|
|
2321
2321
|
}
|
|
2322
2322
|
function ta(e) {
|
|
2323
|
-
return !
|
|
2323
|
+
return !je(e) && e !== Ke;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Te(e, t) {
|
|
2326
2326
|
var n = e.charCodeAt(t), i;
|
|
2327
2327
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function $n(e) {
|
|
2330
2330
|
var t = /^\n* /;
|
|
2331
2331
|
return t.test(e);
|
|
2332
2332
|
}
|
|
2333
|
-
var On = 1,
|
|
2333
|
+
var On = 1, Xe = 2, Ln = 3, Nn = 4, xe = 5;
|
|
2334
2334
|
function na(e, t, n, i, r, o, a, l) {
|
|
2335
|
-
var s, c = 0, d = null, u = !1,
|
|
2335
|
+
var s, c = 0, d = null, u = !1, m = !1, f = i !== -1, x = -1, y = ea(Te(e, 0)) && ta(Te(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 =
|
|
2338
|
+
if (c = Te(e, s), !Le(c))
|
|
2339
2339
|
return xe;
|
|
2340
|
-
|
|
2340
|
+
y = y && Tt(c, d, l), d = c;
|
|
2341
2341
|
}
|
|
2342
2342
|
else {
|
|
2343
2343
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2344
|
-
if (c =
|
|
2345
|
-
u = !0, f && (
|
|
2346
|
-
s -
|
|
2347
|
-
else if (!
|
|
2344
|
+
if (c = Te(e, s), c === $e)
|
|
2345
|
+
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2346
|
+
s - x - 1 > i && e[x + 1] !== " ", x = s);
|
|
2347
|
+
else if (!Le(c))
|
|
2348
2348
|
return xe;
|
|
2349
|
-
|
|
2349
|
+
y = y && Tt(c, d, l), d = c;
|
|
2350
2350
|
}
|
|
2351
|
-
|
|
2351
|
+
m = m || f && s - x - 1 > i && e[x + 1] !== " ";
|
|
2352
2352
|
}
|
|
2353
|
-
return !u && !
|
|
2353
|
+
return !u && !m ? y && !a && !r(e) ? On : o === Oe ? xe : Xe : n > 9 && $n(e) ? xe : a ? o === Oe ? xe : Xe : m ? Nn : Ln;
|
|
2354
2354
|
}
|
|
2355
2355
|
function ia(e, t, n, i, r) {
|
|
2356
2356
|
e.dump = function() {
|
|
2357
2357
|
if (t.length === 0)
|
|
2358
|
-
return e.quotingType ===
|
|
2358
|
+
return e.quotingType === Oe ? '""' : "''";
|
|
2359
2359
|
if (!e.noCompatMode && (zo.indexOf(t) !== -1 || Wo.test(t)))
|
|
2360
|
-
return e.quotingType ===
|
|
2360
|
+
return e.quotingType === Oe ? '"' + 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 = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2362
2362
|
function s(c) {
|
|
2363
2363
|
return Xo(e, c);
|
|
@@ -2374,12 +2374,12 @@ function ia(e, t, n, i, r) {
|
|
|
2374
2374
|
)) {
|
|
2375
2375
|
case On:
|
|
2376
2376
|
return t;
|
|
2377
|
-
case
|
|
2377
|
+
case Xe:
|
|
2378
2378
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2379
|
-
case $n:
|
|
2380
|
-
return "|" + Tt(t, e.indent) + Ft(St(t, o));
|
|
2381
2379
|
case Ln:
|
|
2382
|
-
return "
|
|
2380
|
+
return "|" + Ft(t, e.indent) + $t(It(t, o));
|
|
2381
|
+
case Nn:
|
|
2382
|
+
return ">" + Ft(t, e.indent) + $t(It(ra(t, a), o));
|
|
2383
2383
|
case xe:
|
|
2384
2384
|
return '"' + oa(t) + '"';
|
|
2385
2385
|
default:
|
|
@@ -2387,15 +2387,15 @@ function ia(e, t, n, i, r) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}();
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2391
|
-
var n =
|
|
2390
|
+
function Ft(e, t) {
|
|
2391
|
+
var n = $n(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2392
2392
|
`, r = i && (e[e.length - 2] === `
|
|
2393
2393
|
` || e === `
|
|
2394
2394
|
`), o = r ? "+" : i ? "" : "-";
|
|
2395
2395
|
return n + o + `
|
|
2396
2396
|
`;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function $t(e) {
|
|
2399
2399
|
return e[e.length - 1] === `
|
|
2400
2400
|
` ? e.slice(0, -1) : e;
|
|
2401
2401
|
}
|
|
@@ -2424,7 +2424,7 @@ function Ot(e, t) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
function oa(e) {
|
|
2426
2426
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2427
|
-
n =
|
|
2427
|
+
n = Te(e, r), i = ne[n], !i && Le(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Go(n);
|
|
2428
2428
|
return t;
|
|
2429
2429
|
}
|
|
2430
2430
|
function aa(e, t, n) {
|
|
@@ -2433,10 +2433,10 @@ function aa(e, t, n) {
|
|
|
2433
2433
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (de(e, t, l, !1, !1) || typeof l > "u" && de(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2434
2434
|
e.tag = r, e.dump = "[" + i + "]";
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2436
|
+
function Lt(e, t, n, i) {
|
|
2437
2437
|
var r = "", 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)), (de(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && de(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2439
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (de(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && de(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Qe(e, t)), e.dump && $e === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2440
2440
|
e.tag = o, e.dump = r || "[]";
|
|
2441
2441
|
}
|
|
2442
2442
|
function la(e, t, n) {
|
|
@@ -2446,7 +2446,7 @@ function la(e, t, n) {
|
|
|
2446
2446
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2447
2447
|
}
|
|
2448
2448
|
function sa(e, t, n, i) {
|
|
2449
|
-
var r = "", o = e.tag, a = Object.keys(n), l, s, c, d, u,
|
|
2449
|
+
var r = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, m;
|
|
2450
2450
|
if (e.sortKeys === !0)
|
|
2451
2451
|
a.sort();
|
|
2452
2452
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2454,17 +2454,17 @@ function sa(e, t, n, i) {
|
|
|
2454
2454
|
else if (e.sortKeys)
|
|
2455
2455
|
throw new ie("sortKeys must be a boolean or a function");
|
|
2456
2456
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2457
|
-
|
|
2457
|
+
m = "", (!i || r !== "") && (m += Qe(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), de(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && $e === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Qe(e, t)), de(e, t + 1, d, !0, u) && (e.dump && $e === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, r += m));
|
|
2458
2458
|
e.tag = o, e.dump = r || "{}";
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function Nt(e, t, n) {
|
|
2461
2461
|
var i, r, o, a, l, s;
|
|
2462
2462
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2463
2463
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2464
2464
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2465
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2465
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, An.call(l.represent) === "[object Function]")
|
|
2466
2466
|
i = l.represent(t, s);
|
|
2467
|
-
else if (
|
|
2467
|
+
else if (wn.call(l.represent, s))
|
|
2468
2468
|
i = l.represent[s](t, s);
|
|
2469
2469
|
else
|
|
2470
2470
|
throw new ie("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2475,17 +2475,17 @@ function Lt(e, t, n) {
|
|
|
2475
2475
|
return !1;
|
|
2476
2476
|
}
|
|
2477
2477
|
function de(e, t, n, i, r, o, a) {
|
|
2478
|
-
e.tag = null, e.dump = n,
|
|
2479
|
-
var l =
|
|
2478
|
+
e.tag = null, e.dump = n, Nt(e, n, !1) || Nt(e, n, !0);
|
|
2479
|
+
var l = An.call(e.dump), s = i, c;
|
|
2480
2480
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2481
|
-
var d = l === "[object Object]" || l === "[object Array]", u,
|
|
2482
|
-
if (d && (u = e.duplicates.indexOf(n),
|
|
2481
|
+
var d = l === "[object Object]" || l === "[object Array]", u, m;
|
|
2482
|
+
if (d && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (r = !1), m && e.usedDuplicates[u])
|
|
2483
2483
|
e.dump = "*ref_" + u;
|
|
2484
2484
|
else {
|
|
2485
|
-
if (d &&
|
|
2486
|
-
i && Object.keys(e.dump).length !== 0 ? (sa(e, t, e.dump, r),
|
|
2485
|
+
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2486
|
+
i && Object.keys(e.dump).length !== 0 ? (sa(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (la(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2487
2487
|
else if (l === "[object Array]")
|
|
2488
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2488
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Lt(e, t - 1, e.dump, r) : Lt(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (aa(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2489
2489
|
else if (l === "[object String]")
|
|
2490
2490
|
e.tag !== "?" && ia(e, e.dump, t, o, s);
|
|
2491
2491
|
else {
|
|
@@ -2503,21 +2503,21 @@ function de(e, t, n, i, r, o, a) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
function ca(e, t) {
|
|
2505
2505
|
var n = [], i = [], r, o;
|
|
2506
|
-
for (
|
|
2506
|
+
for (et(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2507
2507
|
t.duplicates.push(n[i[r]]);
|
|
2508
2508
|
t.usedDuplicates = new Array(o);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function et(e, t, n) {
|
|
2511
2511
|
var i, r, o;
|
|
2512
2512
|
if (e !== null && typeof e == "object")
|
|
2513
2513
|
if (r = t.indexOf(e), r !== -1)
|
|
2514
2514
|
n.indexOf(r) === -1 && n.push(r);
|
|
2515
2515
|
else if (t.push(e), Array.isArray(e))
|
|
2516
2516
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2517
|
-
|
|
2517
|
+
et(e[r], t, n);
|
|
2518
2518
|
else
|
|
2519
2519
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2520
|
-
|
|
2520
|
+
et(e[i[r]], t, n);
|
|
2521
2521
|
}
|
|
2522
2522
|
function ua(e, t) {
|
|
2523
2523
|
t = t || {};
|
|
@@ -2535,20 +2535,20 @@ function ct(e, t) {
|
|
|
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 pa = ee, ha =
|
|
2539
|
-
binary:
|
|
2540
|
-
float:
|
|
2541
|
-
map:
|
|
2542
|
-
null:
|
|
2543
|
-
pairs:
|
|
2544
|
-
set:
|
|
2545
|
-
timestamp:
|
|
2546
|
-
bool:
|
|
2547
|
-
int:
|
|
2548
|
-
merge:
|
|
2549
|
-
omap:
|
|
2550
|
-
seq:
|
|
2551
|
-
str:
|
|
2538
|
+
var pa = ee, ha = Jt, ma = Xt, ga = on, ya = an, va = ot, ba = _n.load, Ca = _n.loadAll, xa = fa.dump, ka = ie, _a = {
|
|
2539
|
+
binary: dn,
|
|
2540
|
+
float: rn,
|
|
2541
|
+
map: Qt,
|
|
2542
|
+
null: en,
|
|
2543
|
+
pairs: pn,
|
|
2544
|
+
set: hn,
|
|
2545
|
+
timestamp: cn,
|
|
2546
|
+
bool: tn,
|
|
2547
|
+
int: nn,
|
|
2548
|
+
merge: un,
|
|
2549
|
+
omap: fn,
|
|
2550
|
+
seq: Zt,
|
|
2551
|
+
str: Gt
|
|
2552
2552
|
}, Aa = ct("safeLoad", "load"), wa = ct("safeLoadAll", "loadAll"), Sa = ct("safeDump", "dump"), Ia = {
|
|
2553
2553
|
Type: pa,
|
|
2554
2554
|
Schema: ha,
|
|
@@ -2559,13 +2559,13 @@ var pa = ee, ha = Wt, ma = Qt, ga = rn, ya = on, va = ot, ba = _n.load, Ca = _n.
|
|
|
2559
2559
|
load: ba,
|
|
2560
2560
|
loadAll: Ca,
|
|
2561
2561
|
dump: xa,
|
|
2562
|
-
YAMLException:
|
|
2563
|
-
types:
|
|
2562
|
+
YAMLException: ka,
|
|
2563
|
+
types: _a,
|
|
2564
2564
|
safeLoad: Aa,
|
|
2565
2565
|
safeLoadAll: wa,
|
|
2566
2566
|
safeDump: Sa
|
|
2567
2567
|
};
|
|
2568
|
-
const Ea = { class: "yaml-config" },
|
|
2568
|
+
const Ea = { class: "yaml-config" }, Bn = /* @__PURE__ */ z({
|
|
2569
2569
|
__name: "YamlCodeBlock",
|
|
2570
2570
|
props: {
|
|
2571
2571
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2580,25 +2580,25 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2580
2580
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Ia.dump(i).trim();
|
|
2581
2581
|
});
|
|
2582
2582
|
return (i, r) => {
|
|
2583
|
-
const o =
|
|
2584
|
-
return p(),
|
|
2583
|
+
const o = O("KCodeBlock");
|
|
2584
|
+
return p(), _("div", Ea, [
|
|
2585
2585
|
t.yamlRecord ? (p(), F(o, {
|
|
2586
2586
|
key: 0,
|
|
2587
2587
|
id: "yaml-codeblock",
|
|
2588
2588
|
code: n.value,
|
|
2589
2589
|
language: "yaml",
|
|
2590
2590
|
theme: "dark"
|
|
2591
|
-
}, null, 8, ["code"])) :
|
|
2591
|
+
}, null, 8, ["code"])) : M("", !0)
|
|
2592
2592
|
]);
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
2595
|
}), Ta = {
|
|
2596
2596
|
key: 0,
|
|
2597
2597
|
class: "config-card-display-form"
|
|
2598
|
-
}, Fa = ["data-testid"],
|
|
2598
|
+
}, Fa = ["data-testid"], $a = {
|
|
2599
2599
|
key: 0,
|
|
2600
2600
|
class: "config-card-prop-section-title"
|
|
2601
|
-
},
|
|
2601
|
+
}, Oa = /* @__PURE__ */ z({
|
|
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,28 +2637,28 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2637
2637
|
}
|
|
2638
2638
|
},
|
|
2639
2639
|
setup(e) {
|
|
2640
|
-
const t = e, n =
|
|
2640
|
+
const t = e, n = qe(), { i18n: { t: i } } = J.useI18n(), r = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = w(() => {
|
|
2641
2641
|
if (!t.record)
|
|
2642
2642
|
return t.record;
|
|
2643
2643
|
const a = JSON.parse(JSON.stringify(t.record));
|
|
2644
2644
|
return delete a.created_at, delete a.updated_at, a;
|
|
2645
2645
|
});
|
|
2646
|
-
return (a, l) => (p(),
|
|
2647
|
-
e.format === "structured" ? (p(),
|
|
2648
|
-
(p(!0),
|
|
2646
|
+
return (a, l) => (p(), _(ce, null, [
|
|
2647
|
+
e.format === "structured" ? (p(), _("div", Ta, [
|
|
2648
|
+
(p(!0), _(ce, null, le(e.propListTypes, (s) => (p(), _("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(),
|
|
2654
|
-
(p(!0),
|
|
2653
|
+
s !== "basic" ? (p(), _("div", $a, E(s === "advanced" ? S(i)("baseConfigCard.sections.advanced") : S(i)("baseConfigCard.sections.plugin")), 1)) : M("", !0),
|
|
2654
|
+
(p(!0), _(ce, null, le(e.propertyCollections[s], (c) => (p(), F(it, {
|
|
2655
2655
|
key: c.key,
|
|
2656
2656
|
item: c
|
|
2657
|
-
},
|
|
2658
|
-
label:
|
|
2657
|
+
}, ge({
|
|
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,39 +2668,39 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2668
2668
|
}, [
|
|
2669
2669
|
r(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"
|
|
2675
2675
|
} : void 0
|
|
2676
2676
|
]), 1032, ["item"]))), 128))
|
|
2677
2677
|
], 10, Fa))), 128))
|
|
2678
|
-
])) :
|
|
2679
|
-
e.format === "json" && t.record ? (p(), F(
|
|
2678
|
+
])) : M("", !0),
|
|
2679
|
+
e.format === "json" && t.record ? (p(), F(Vt, {
|
|
2680
2680
|
key: 1,
|
|
2681
2681
|
config: t.config,
|
|
2682
2682
|
"fetcher-url": t.fetcherUrl,
|
|
2683
2683
|
"json-record": o.value,
|
|
2684
2684
|
"request-method": "get"
|
|
2685
|
-
}, null, 8, ["config", "fetcher-url", "json-record"])) :
|
|
2686
|
-
e.format === "yaml" && t.record ? (p(), F(
|
|
2685
|
+
}, null, 8, ["config", "fetcher-url", "json-record"])) : M("", !0),
|
|
2686
|
+
e.format === "yaml" && t.record ? (p(), F(Bn, {
|
|
2687
2687
|
key: 2,
|
|
2688
2688
|
"yaml-record": o.value
|
|
2689
|
-
}, null, 8, ["yaml-record"])) :
|
|
2689
|
+
}, null, 8, ["yaml-record"])) : M("", !0)
|
|
2690
2690
|
], 64));
|
|
2691
2691
|
}
|
|
2692
|
-
}), La = /* @__PURE__ */ se(
|
|
2692
|
+
}), La = /* @__PURE__ */ se(Oa, [["__scopeId", "data-v-2b74ac63"]]), we = "24px", ut = (e, t) => {
|
|
2693
2693
|
const n = e.__vccOpts || e;
|
|
2694
2694
|
for (const [i, r] of t)
|
|
2695
2695
|
n[i] = r;
|
|
2696
2696
|
return n;
|
|
2697
|
-
}, Na = (e) => (
|
|
2697
|
+
}, Na = (e) => (Ue("data-v-40a7f387"), e = e(), Pe(), e), Ba = ["aria-hidden"], Ma = {
|
|
2698
2698
|
key: 0,
|
|
2699
2699
|
"data-testid": "kui-icon-svg-title"
|
|
2700
|
-
}, Ra = /* @__PURE__ */ Na(() => /* @__PURE__ */
|
|
2700
|
+
}, Ra = /* @__PURE__ */ Na(() => /* @__PURE__ */ L("path", {
|
|
2701
2701
|
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
2702
|
fill: "currentColor"
|
|
2703
|
-
}, null, -1)), Ka = /* @__PURE__ */
|
|
2703
|
+
}, null, -1)), Ka = /* @__PURE__ */ z({
|
|
2704
2704
|
__name: "BookIcon",
|
|
2705
2705
|
props: {
|
|
2706
2706
|
/** The accessibility text provided to screen readers */
|
|
@@ -2731,7 +2731,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2731
2731
|
size: {
|
|
2732
2732
|
type: [Number, String],
|
|
2733
2733
|
required: !1,
|
|
2734
|
-
default:
|
|
2734
|
+
default: we,
|
|
2735
2735
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2736
2736
|
validator: (e) => {
|
|
2737
2737
|
if (typeof e == "number" && e > 0)
|
|
@@ -2760,7 +2760,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2760
2760
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2761
2761
|
return `${o}px`;
|
|
2762
2762
|
}
|
|
2763
|
-
return
|
|
2763
|
+
return we;
|
|
2764
2764
|
}), i = w(() => ({
|
|
2765
2765
|
boxSizing: "border-box",
|
|
2766
2766
|
color: t.color,
|
|
@@ -2769,14 +2769,14 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2769
2769
|
lineHeight: "0",
|
|
2770
2770
|
width: n.value
|
|
2771
2771
|
}));
|
|
2772
|
-
return (r, o) => (p(), F(
|
|
2772
|
+
return (r, o) => (p(), F(pe(e.as), {
|
|
2773
2773
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2774
2774
|
class: "kui-icon book-icon",
|
|
2775
2775
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2776
|
-
style:
|
|
2776
|
+
style: De(i.value)
|
|
2777
2777
|
}, {
|
|
2778
|
-
default:
|
|
2779
|
-
(p(),
|
|
2778
|
+
default: v(() => [
|
|
2779
|
+
(p(), _("svg", {
|
|
2780
2780
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2781
2781
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2782
2782
|
fill: "none",
|
|
@@ -2786,20 +2786,119 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2786
2786
|
width: "100%",
|
|
2787
2787
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2788
2788
|
}, [
|
|
2789
|
-
e.title ? (p(),
|
|
2789
|
+
e.title ? (p(), _("title", Ma, E(e.title), 1)) : M("", !0),
|
|
2790
2790
|
Ra
|
|
2791
2791
|
], 8, Ba))
|
|
2792
2792
|
]),
|
|
2793
2793
|
_: 1
|
|
2794
2794
|
}, 8, ["aria-hidden", "style"]));
|
|
2795
2795
|
}
|
|
2796
|
-
}), ja = /* @__PURE__ */
|
|
2796
|
+
}), ja = /* @__PURE__ */ ut(Ka, [["__scopeId", "data-v-40a7f387"]]), Da = (e) => (Ue("data-v-19f4cbbe"), e = e(), Pe(), e), Ua = ["aria-hidden"], Pa = {
|
|
2797
|
+
key: 0,
|
|
2798
|
+
"data-testid": "kui-icon-svg-title"
|
|
2799
|
+
}, qa = /* @__PURE__ */ Da(() => /* @__PURE__ */ L("path", {
|
|
2800
|
+
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
|
+
fill: "currentColor"
|
|
2802
|
+
}, null, -1)), Ha = /* @__PURE__ */ z({
|
|
2803
|
+
__name: "CloseIcon",
|
|
2804
|
+
props: {
|
|
2805
|
+
/** The accessibility text provided to screen readers */
|
|
2806
|
+
title: {
|
|
2807
|
+
type: String,
|
|
2808
|
+
required: !1,
|
|
2809
|
+
default: ""
|
|
2810
|
+
},
|
|
2811
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
2812
|
+
color: {
|
|
2813
|
+
type: String,
|
|
2814
|
+
required: !1,
|
|
2815
|
+
default: "currentColor"
|
|
2816
|
+
},
|
|
2817
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
2818
|
+
display: {
|
|
2819
|
+
type: String,
|
|
2820
|
+
required: !1,
|
|
2821
|
+
default: "block"
|
|
2822
|
+
},
|
|
2823
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
2824
|
+
decorative: {
|
|
2825
|
+
type: Boolean,
|
|
2826
|
+
required: !1,
|
|
2827
|
+
default: !1
|
|
2828
|
+
},
|
|
2829
|
+
/** The icon size */
|
|
2830
|
+
size: {
|
|
2831
|
+
type: [Number, String],
|
|
2832
|
+
required: !1,
|
|
2833
|
+
default: we,
|
|
2834
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2835
|
+
validator: (e) => {
|
|
2836
|
+
if (typeof e == "number" && e > 0)
|
|
2837
|
+
return !0;
|
|
2838
|
+
if (typeof e == "string") {
|
|
2839
|
+
const t = String(e).replace(/px/gi, ""), n = Number(t);
|
|
2840
|
+
if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
|
|
2841
|
+
return !0;
|
|
2842
|
+
}
|
|
2843
|
+
return !1;
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
2847
|
+
as: {
|
|
2848
|
+
type: String,
|
|
2849
|
+
required: !1,
|
|
2850
|
+
default: "span"
|
|
2851
|
+
}
|
|
2852
|
+
},
|
|
2853
|
+
setup(e) {
|
|
2854
|
+
const t = e, n = w(() => {
|
|
2855
|
+
if (typeof t.size == "number" && t.size > 0)
|
|
2856
|
+
return `${t.size}px`;
|
|
2857
|
+
if (typeof t.size == "string") {
|
|
2858
|
+
const r = String(t.size).replace(/px/gi, ""), o = Number(r);
|
|
2859
|
+
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2860
|
+
return `${o}px`;
|
|
2861
|
+
}
|
|
2862
|
+
return we;
|
|
2863
|
+
}), i = w(() => ({
|
|
2864
|
+
boxSizing: "border-box",
|
|
2865
|
+
color: t.color,
|
|
2866
|
+
display: t.display,
|
|
2867
|
+
height: n.value,
|
|
2868
|
+
lineHeight: "0",
|
|
2869
|
+
width: n.value
|
|
2870
|
+
}));
|
|
2871
|
+
return (r, o) => (p(), F(pe(e.as), {
|
|
2872
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2873
|
+
class: "kui-icon close-icon",
|
|
2874
|
+
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2875
|
+
style: De(i.value)
|
|
2876
|
+
}, {
|
|
2877
|
+
default: v(() => [
|
|
2878
|
+
(p(), _("svg", {
|
|
2879
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2880
|
+
"data-testid": "kui-icon-svg-close-icon",
|
|
2881
|
+
fill: "none",
|
|
2882
|
+
height: "100%",
|
|
2883
|
+
role: "img",
|
|
2884
|
+
viewBox: "0 0 24 24",
|
|
2885
|
+
width: "100%",
|
|
2886
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2887
|
+
}, [
|
|
2888
|
+
e.title ? (p(), _("title", Pa, E(e.title), 1)) : M("", !0),
|
|
2889
|
+
qa
|
|
2890
|
+
], 8, Ua))
|
|
2891
|
+
]),
|
|
2892
|
+
_: 1
|
|
2893
|
+
}, 8, ["aria-hidden", "style"]));
|
|
2894
|
+
}
|
|
2895
|
+
}), Ya = /* @__PURE__ */ ut(Ha, [["__scopeId", "data-v-19f4cbbe"]]), Va = (e) => (Ue("data-v-13f41aa3"), e = e(), Pe(), e), za = ["aria-hidden"], Wa = {
|
|
2797
2896
|
key: 0,
|
|
2798
2897
|
"data-testid": "kui-icon-svg-title"
|
|
2799
|
-
},
|
|
2898
|
+
}, Ja = /* @__PURE__ */ Va(() => /* @__PURE__ */ L("path", {
|
|
2800
2899
|
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",
|
|
2801
2900
|
fill: "currentColor"
|
|
2802
|
-
}, null, -1)),
|
|
2901
|
+
}, null, -1)), Ga = /* @__PURE__ */ z({
|
|
2803
2902
|
__name: "CopyIcon",
|
|
2804
2903
|
props: {
|
|
2805
2904
|
/** The accessibility text provided to screen readers */
|
|
@@ -2830,7 +2929,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2830
2929
|
size: {
|
|
2831
2930
|
type: [Number, String],
|
|
2832
2931
|
required: !1,
|
|
2833
|
-
default:
|
|
2932
|
+
default: we,
|
|
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)
|
|
@@ -2859,7 +2958,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2859
2958
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2860
2959
|
return `${o}px`;
|
|
2861
2960
|
}
|
|
2862
|
-
return
|
|
2961
|
+
return we;
|
|
2863
2962
|
}), i = w(() => ({
|
|
2864
2963
|
boxSizing: "border-box",
|
|
2865
2964
|
color: t.color,
|
|
@@ -2868,14 +2967,14 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2868
2967
|
lineHeight: "0",
|
|
2869
2968
|
width: n.value
|
|
2870
2969
|
}));
|
|
2871
|
-
return (r, o) => (p(), F(
|
|
2970
|
+
return (r, o) => (p(), F(pe(e.as), {
|
|
2872
2971
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2873
2972
|
class: "kui-icon copy-icon",
|
|
2874
2973
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2875
|
-
style:
|
|
2974
|
+
style: De(i.value)
|
|
2876
2975
|
}, {
|
|
2877
|
-
default:
|
|
2878
|
-
(p(),
|
|
2976
|
+
default: v(() => [
|
|
2977
|
+
(p(), _("svg", {
|
|
2879
2978
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2880
2979
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
2881
2980
|
fill: "none",
|
|
@@ -2885,23 +2984,23 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2885
2984
|
width: "100%",
|
|
2886
2985
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2887
2986
|
}, [
|
|
2888
|
-
e.title ? (p(),
|
|
2889
|
-
|
|
2890
|
-
], 8,
|
|
2987
|
+
e.title ? (p(), _("title", Wa, E(e.title), 1)) : M("", !0),
|
|
2988
|
+
Ja
|
|
2989
|
+
], 8, za))
|
|
2891
2990
|
]),
|
|
2892
2991
|
_: 1
|
|
2893
2992
|
}, 8, ["aria-hidden", "style"]));
|
|
2894
2993
|
}
|
|
2895
|
-
}),
|
|
2994
|
+
}), Za = /* @__PURE__ */ ut(Ga, [["__scopeId", "data-v-13f41aa3"]]), Qa = { "data-testid": "config-card-title" }, Xa = { class: "config-card-actions" }, el = ["href"], tl = {
|
|
2896
2995
|
key: 2,
|
|
2897
2996
|
class: "config-card-details-section"
|
|
2898
|
-
},
|
|
2997
|
+
}, nl = {
|
|
2899
2998
|
key: 3,
|
|
2900
2999
|
class: "config-card-details-section"
|
|
2901
|
-
},
|
|
3000
|
+
}, il = ["data-testid"], rl = {
|
|
2902
3001
|
key: 0,
|
|
2903
3002
|
class: "config-card-prop-section-title"
|
|
2904
|
-
},
|
|
3003
|
+
}, ol = /* @__PURE__ */ z({
|
|
2905
3004
|
__name: "EntityBaseConfigCard",
|
|
2906
3005
|
props: {
|
|
2907
3006
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2975,9 +3074,9 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2975
3074
|
},
|
|
2976
3075
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2977
3076
|
setup(e, { emit: t }) {
|
|
2978
|
-
var
|
|
2979
|
-
const n = t, i = e, r =
|
|
2980
|
-
headers: (
|
|
3077
|
+
var q;
|
|
3078
|
+
const n = t, i = e, r = qe(), { i18n: { t: o } } = J.useI18n(), { getMessageFromError: a } = J.useErrors(), { convertKeyToTitle: l } = J.useStringHelpers(), { axiosInstance: s } = J.useAxios({
|
|
3079
|
+
headers: (q = i.config) == null ? void 0 : q.requestHeaders
|
|
2981
3080
|
}), c = [
|
|
2982
3081
|
{
|
|
2983
3082
|
label: o("baseConfigCard.general.structuredFormat"),
|
|
@@ -2992,9 +3091,9 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
2992
3091
|
label: "YAML",
|
|
2993
3092
|
value: "yaml"
|
|
2994
3093
|
}
|
|
2995
|
-
], d = B("structured"), u = (
|
|
2996
|
-
d.value =
|
|
2997
|
-
},
|
|
3094
|
+
], d = B("structured"), u = (h) => {
|
|
3095
|
+
d.value = h == null ? void 0 : h.value;
|
|
3096
|
+
}, m = {
|
|
2998
3097
|
id: {
|
|
2999
3098
|
type: V.ID,
|
|
3000
3099
|
label: o("baseConfigCard.commonFields.id_label"),
|
|
@@ -3028,21 +3127,21 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3028
3127
|
// the last property displayed
|
|
3029
3128
|
section: ae.Basic
|
|
3030
3129
|
}
|
|
3031
|
-
}, f = B(!1),
|
|
3032
|
-
var
|
|
3033
|
-
if (!
|
|
3130
|
+
}, f = B(!1), x = B(!1), y = B(""), b = B({}), $ = w(() => {
|
|
3131
|
+
var T, R, K;
|
|
3132
|
+
if (!b.value)
|
|
3034
3133
|
return [];
|
|
3035
|
-
const
|
|
3036
|
-
for (const U in
|
|
3037
|
-
const H = (
|
|
3134
|
+
const h = [], j = Object.keys(b.value).length;
|
|
3135
|
+
for (const U in b.value) {
|
|
3136
|
+
const H = (R = (T = i.configSchema) == null ? void 0 : T[U]) == null ? void 0 : R.order, X = (K = m[U]) == null ? void 0 : K.order;
|
|
3038
3137
|
let Z = j;
|
|
3039
|
-
(X || X === 0) && (Z = X === -1 ? j + 1 : X), H && (Z = H === -1 ? j + 1 : H),
|
|
3138
|
+
(X || X === 0) && (Z = X === -1 ? j + 1 : X), H && (Z = H === -1 ? j + 1 : H), h.push([U, Z]);
|
|
3040
3139
|
}
|
|
3041
|
-
return
|
|
3140
|
+
return h.sort(function(U, H) {
|
|
3042
3141
|
return U[1] - H[1];
|
|
3043
|
-
}),
|
|
3142
|
+
}), h.map((U) => {
|
|
3044
3143
|
var te, ve;
|
|
3045
|
-
const H = U[0], X = (te =
|
|
3144
|
+
const H = U[0], X = (te = b.value) == null ? void 0 : te[H], Z = ((ve = i.configSchema) == null ? void 0 : ve[H]) || {}, P = m[H];
|
|
3046
3145
|
return {
|
|
3047
3146
|
key: H,
|
|
3048
3147
|
value: X,
|
|
@@ -3053,21 +3152,21 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3053
3152
|
section: Z.section ?? ((P == null ? void 0 : P.section) || ae.Advanced)
|
|
3054
3153
|
};
|
|
3055
3154
|
}).filter((U) => !U.hidden && U.key !== i.pluginConfigKey);
|
|
3056
|
-
}),
|
|
3057
|
-
var
|
|
3058
|
-
if (!
|
|
3155
|
+
}), C = w(() => {
|
|
3156
|
+
var R, K;
|
|
3157
|
+
if (!b.value || !i.pluginConfigKey)
|
|
3059
3158
|
return [];
|
|
3060
|
-
const
|
|
3061
|
-
for (const U in
|
|
3062
|
-
const H = (
|
|
3159
|
+
const h = b.value[i.pluginConfigKey] || {}, j = Object.keys(h).length, T = [];
|
|
3160
|
+
for (const U in h) {
|
|
3161
|
+
const H = (K = (R = i.pluginConfigSchema) == null ? void 0 : R[U]) == null ? void 0 : K.order, X = h[U];
|
|
3063
3162
|
let Z = X != null && X !== "" ? j - 1 : j;
|
|
3064
|
-
H && (Z = H === -1 ? j + 1 : H),
|
|
3163
|
+
H && (Z = H === -1 ? j + 1 : H), T.push([U, Z]);
|
|
3065
3164
|
}
|
|
3066
|
-
return
|
|
3165
|
+
return T.sort(function(U, H) {
|
|
3067
3166
|
return U[1] - H[1];
|
|
3068
|
-
}),
|
|
3167
|
+
}), T.map((U) => {
|
|
3069
3168
|
var P;
|
|
3070
|
-
const H = U[0], X =
|
|
3169
|
+
const H = U[0], X = h[H], Z = ((P = i.pluginConfigSchema) == null ? void 0 : P[H]) || {};
|
|
3071
3170
|
return {
|
|
3072
3171
|
key: H,
|
|
3073
3172
|
value: X,
|
|
@@ -3078,178 +3177,178 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3078
3177
|
section: ae.Plugin
|
|
3079
3178
|
};
|
|
3080
3179
|
}).filter((U) => !U.hidden);
|
|
3081
|
-
}),
|
|
3082
|
-
var
|
|
3180
|
+
}), I = w(() => {
|
|
3181
|
+
var h, j, T, R;
|
|
3083
3182
|
return {
|
|
3084
|
-
basic: (
|
|
3085
|
-
advanced: (j =
|
|
3086
|
-
plugin: (
|
|
3183
|
+
basic: (h = $.value) == null ? void 0 : h.filter((K) => K.section === ae.Basic),
|
|
3184
|
+
advanced: (j = $.value) == null ? void 0 : j.filter((K) => K.section === ae.Advanced),
|
|
3185
|
+
plugin: (R = C.value) == null ? void 0 : R.concat((T = $.value) == null ? void 0 : T.filter((K) => K.section === ae.Plugin))
|
|
3087
3186
|
};
|
|
3088
|
-
}),
|
|
3089
|
-
const
|
|
3090
|
-
return
|
|
3091
|
-
}),
|
|
3092
|
-
var j,
|
|
3093
|
-
let
|
|
3094
|
-
return i.config.app === "konnect" ?
|
|
3095
|
-
}), re = (
|
|
3096
|
-
|
|
3187
|
+
}), g = w(() => {
|
|
3188
|
+
const h = [];
|
|
3189
|
+
return I.value.basic.length && h.push("basic"), I.value.advanced.length && h.push("advanced"), I.value.plugin.length && h.push("plugin"), h;
|
|
3190
|
+
}), k = (h) => !!(h.tooltip || r[`${h.key}-label-tooltip`]), D = w(() => {
|
|
3191
|
+
var j, T;
|
|
3192
|
+
let h = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3193
|
+
return i.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((j = i.config) == null ? void 0 : j.controlPlaneId) || "") : i.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), h = h.replace(/{id}/gi, i.config.entityId), h;
|
|
3194
|
+
}), re = (h) => {
|
|
3195
|
+
b.value && h(JSON.stringify(b.value)) ? n("copy:success", b.value) : n("copy:error");
|
|
3097
3196
|
};
|
|
3098
|
-
return
|
|
3099
|
-
n("loading",
|
|
3100
|
-
}, { immediate: !0 }),
|
|
3101
|
-
|
|
3197
|
+
return Se(f, (h) => {
|
|
3198
|
+
n("loading", h);
|
|
3199
|
+
}, { immediate: !0 }), Kt(async () => {
|
|
3200
|
+
x.value = !1, f.value = !0;
|
|
3102
3201
|
try {
|
|
3103
|
-
const { data:
|
|
3202
|
+
const { data: h } = await s.get(D.value);
|
|
3104
3203
|
if (i.dataKey)
|
|
3105
|
-
if (typeof
|
|
3106
|
-
|
|
3204
|
+
if (typeof h[i.dataKey] < "u")
|
|
3205
|
+
b.value = { ...h[i.dataKey] };
|
|
3107
3206
|
else
|
|
3108
3207
|
throw new Error(o("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
3109
3208
|
else
|
|
3110
|
-
|
|
3111
|
-
Object.keys(i.configSchema).filter((
|
|
3112
|
-
|
|
3113
|
-
}), n("fetch:success",
|
|
3114
|
-
} catch (
|
|
3115
|
-
const j = a(
|
|
3116
|
-
|
|
3209
|
+
b.value = { ...h };
|
|
3210
|
+
Object.keys(i.configSchema).filter((T) => i.configSchema[T].forceShow).forEach((T) => {
|
|
3211
|
+
b.value && typeof b.value[T] > "u" && (b.value[T] = null);
|
|
3212
|
+
}), n("fetch:success", h);
|
|
3213
|
+
} catch (h) {
|
|
3214
|
+
const j = a(h);
|
|
3215
|
+
y.value = j.startsWith("code") ? o("baseConfigCard.errors.load") : j, x.value = !0, n("fetch:error", h);
|
|
3117
3216
|
} finally {
|
|
3118
3217
|
f.value = !1;
|
|
3119
3218
|
}
|
|
3120
|
-
}), (
|
|
3121
|
-
const
|
|
3122
|
-
return p(), F(Z, { class: "kong-ui-entity-base-config-card" },
|
|
3123
|
-
actions:
|
|
3124
|
-
|
|
3125
|
-
Y(
|
|
3126
|
-
e.config.jsonYamlEnabled ? (p(), F(
|
|
3219
|
+
}), (h, j) => {
|
|
3220
|
+
const T = O("KLabel"), R = O("KSelect"), K = O("KButton"), U = O("KClipboardProvider"), H = O("KSkeleton"), X = O("KEmptyState"), Z = O("KCard");
|
|
3221
|
+
return p(), F(Z, { class: "kong-ui-entity-base-config-card" }, ge({
|
|
3222
|
+
actions: v(() => [
|
|
3223
|
+
L("div", Xa, [
|
|
3224
|
+
Y(h.$slots, "actions", {}, void 0, !0),
|
|
3225
|
+
e.config.jsonYamlEnabled ? (p(), F(T, {
|
|
3127
3226
|
key: 0,
|
|
3128
3227
|
class: "config-format-select-label",
|
|
3129
3228
|
"data-testid": "config-format-select-label"
|
|
3130
3229
|
}, {
|
|
3131
|
-
default:
|
|
3132
|
-
|
|
3230
|
+
default: v(() => [
|
|
3231
|
+
W(E(e.label), 1)
|
|
3133
3232
|
]),
|
|
3134
3233
|
_: 1
|
|
3135
|
-
})) :
|
|
3136
|
-
e.config.jsonYamlEnabled ? (p(), F(
|
|
3234
|
+
})) : M("", !0),
|
|
3235
|
+
e.config.jsonYamlEnabled ? (p(), F(R, {
|
|
3137
3236
|
key: 1,
|
|
3138
3237
|
"data-testid": "select-config-format",
|
|
3139
3238
|
items: c,
|
|
3140
3239
|
onChange: u
|
|
3141
|
-
})) :
|
|
3142
|
-
i.config.jsonYamlEnabled && e.configCardDoc ? (p(), F(
|
|
3240
|
+
})) : M("", !0),
|
|
3241
|
+
i.config.jsonYamlEnabled && e.configCardDoc ? (p(), F(K, {
|
|
3143
3242
|
key: 2,
|
|
3144
3243
|
appearance: "tertiary",
|
|
3145
3244
|
class: "book-icon",
|
|
3146
3245
|
"data-testid": "book-icon"
|
|
3147
3246
|
}, {
|
|
3148
|
-
default:
|
|
3149
|
-
|
|
3247
|
+
default: v(() => [
|
|
3248
|
+
L("a", {
|
|
3150
3249
|
href: e.configCardDoc,
|
|
3151
3250
|
rel: "noopener",
|
|
3152
3251
|
target: "_blank"
|
|
3153
3252
|
}, [
|
|
3154
|
-
|
|
3155
|
-
], 8,
|
|
3253
|
+
N(S(ja), { size: S(Vi) }, null, 8, ["size"])
|
|
3254
|
+
], 8, el)
|
|
3156
3255
|
]),
|
|
3157
3256
|
_: 1
|
|
3158
|
-
})) :
|
|
3159
|
-
e.config.jsonYamlEnabled ?
|
|
3160
|
-
default:
|
|
3161
|
-
!f.value && !
|
|
3257
|
+
})) : M("", !0),
|
|
3258
|
+
e.config.jsonYamlEnabled ? M("", !0) : (p(), F(U, { key: 3 }, {
|
|
3259
|
+
default: v(({ copyToClipboard: P }) => [
|
|
3260
|
+
!f.value && !x.value ? (p(), F(K, {
|
|
3162
3261
|
key: 0,
|
|
3163
3262
|
appearance: "tertiary",
|
|
3164
3263
|
"data-testid": "json-copy-button",
|
|
3165
3264
|
onClick: (te) => re(P)
|
|
3166
3265
|
}, {
|
|
3167
|
-
default:
|
|
3168
|
-
|
|
3266
|
+
default: v(() => [
|
|
3267
|
+
W(E(S(o)("baseConfigCard.actions.copy")), 1)
|
|
3169
3268
|
]),
|
|
3170
3269
|
_: 2
|
|
3171
|
-
}, 1032, ["onClick"])) :
|
|
3270
|
+
}, 1032, ["onClick"])) : M("", !0)
|
|
3172
3271
|
]),
|
|
3173
3272
|
_: 1
|
|
3174
3273
|
}))
|
|
3175
3274
|
])
|
|
3176
3275
|
]),
|
|
3177
|
-
default:
|
|
3276
|
+
default: v(() => [
|
|
3178
3277
|
f.value ? (p(), F(H, {
|
|
3179
3278
|
key: 0,
|
|
3180
3279
|
"data-testid": "config-card-loader",
|
|
3181
3280
|
"table-columns": 2,
|
|
3182
3281
|
type: "table"
|
|
3183
|
-
})) :
|
|
3282
|
+
})) : x.value ? (p(), F(X, {
|
|
3184
3283
|
key: 1,
|
|
3185
3284
|
"data-testid": "config-card-fetch-error",
|
|
3186
3285
|
"is-error": ""
|
|
3187
3286
|
}, {
|
|
3188
|
-
message:
|
|
3189
|
-
|
|
3287
|
+
message: v(() => [
|
|
3288
|
+
L("h3", null, E(y.value), 1)
|
|
3190
3289
|
]),
|
|
3191
3290
|
_: 1
|
|
3192
|
-
})) :
|
|
3193
|
-
e.config.jsonYamlEnabled ? (p(),
|
|
3194
|
-
|
|
3291
|
+
})) : M("", !0),
|
|
3292
|
+
e.config.jsonYamlEnabled ? (p(), _("div", tl, [
|
|
3293
|
+
N(La, {
|
|
3195
3294
|
config: e.config,
|
|
3196
3295
|
"fetcher-url": D.value,
|
|
3197
3296
|
format: d.value,
|
|
3198
|
-
"prop-list-types":
|
|
3199
|
-
"property-collections":
|
|
3200
|
-
record:
|
|
3201
|
-
},
|
|
3202
|
-
le(Object.keys(
|
|
3297
|
+
"prop-list-types": g.value,
|
|
3298
|
+
"property-collections": I.value,
|
|
3299
|
+
record: b.value
|
|
3300
|
+
}, ge({ _: 2 }, [
|
|
3301
|
+
le(Object.keys(h.$slots), (P) => ({
|
|
3203
3302
|
name: P,
|
|
3204
|
-
fn:
|
|
3205
|
-
Y(
|
|
3303
|
+
fn: v(({ row: te, rowValue: ve }) => [
|
|
3304
|
+
Y(h.$slots, P, {
|
|
3206
3305
|
row: te,
|
|
3207
3306
|
rowValue: ve
|
|
3208
3307
|
}, void 0, !0)
|
|
3209
3308
|
])
|
|
3210
3309
|
}))
|
|
3211
3310
|
]), 1032, ["config", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
3212
|
-
])) : (p(),
|
|
3213
|
-
(p(!0),
|
|
3311
|
+
])) : (p(), _("div", nl, [
|
|
3312
|
+
(p(!0), _(ce, null, le(g.value, (P) => (p(), _("div", {
|
|
3214
3313
|
key: `config-card-details-${P}-props`,
|
|
3215
|
-
class:
|
|
3314
|
+
class: he(`config-card-details-${P}-props`),
|
|
3216
3315
|
"data-testid": `config-card-details-${P}-props`
|
|
3217
3316
|
}, [
|
|
3218
|
-
P !== "basic" ? (p(),
|
|
3219
|
-
(p(!0),
|
|
3317
|
+
P !== "basic" ? (p(), _("div", rl, E(P === "advanced" ? S(o)("baseConfigCard.sections.advanced") : S(o)("baseConfigCard.sections.plugin")), 1)) : M("", !0),
|
|
3318
|
+
(p(!0), _(ce, null, le(I.value[P], (te) => (p(), F(it, {
|
|
3220
3319
|
key: te.key,
|
|
3221
3320
|
item: te
|
|
3222
|
-
},
|
|
3223
|
-
label:
|
|
3224
|
-
Y(
|
|
3321
|
+
}, ge({
|
|
3322
|
+
label: v(() => [
|
|
3323
|
+
Y(h.$slots, `${te.key}-label`, { row: te }, void 0, !0)
|
|
3225
3324
|
]),
|
|
3226
|
-
[te.key]:
|
|
3227
|
-
Y(
|
|
3325
|
+
[te.key]: v(({ rowValue: ve }) => [
|
|
3326
|
+
Y(h.$slots, te.key, {
|
|
3228
3327
|
row: te,
|
|
3229
3328
|
rowValue: ve
|
|
3230
3329
|
}, void 0, !0)
|
|
3231
3330
|
]),
|
|
3232
3331
|
_: 2
|
|
3233
3332
|
}, [
|
|
3234
|
-
|
|
3333
|
+
k(te) ? {
|
|
3235
3334
|
name: "label-tooltip",
|
|
3236
|
-
fn:
|
|
3237
|
-
Y(
|
|
3335
|
+
fn: v(() => [
|
|
3336
|
+
Y(h.$slots, `${te.key}-label-tooltip`, { row: te }, void 0, !0)
|
|
3238
3337
|
]),
|
|
3239
3338
|
key: "0"
|
|
3240
3339
|
} : void 0
|
|
3241
3340
|
]), 1032, ["item"]))), 128))
|
|
3242
|
-
], 10,
|
|
3341
|
+
], 10, il))), 128))
|
|
3243
3342
|
]))
|
|
3244
3343
|
]),
|
|
3245
3344
|
_: 2
|
|
3246
3345
|
}, [
|
|
3247
3346
|
e.hideTitle ? void 0 : {
|
|
3248
3347
|
name: "title",
|
|
3249
|
-
fn:
|
|
3250
|
-
|
|
3251
|
-
Y(
|
|
3252
|
-
|
|
3348
|
+
fn: v(() => [
|
|
3349
|
+
L("div", Qa, [
|
|
3350
|
+
Y(h.$slots, "title", {}, () => [
|
|
3351
|
+
W(E(S(o)("baseConfigCard.title")), 1)
|
|
3253
3352
|
], !0)
|
|
3254
3353
|
])
|
|
3255
3354
|
]),
|
|
@@ -3258,10 +3357,10 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3258
3357
|
]), 1024);
|
|
3259
3358
|
};
|
|
3260
3359
|
}
|
|
3261
|
-
}),
|
|
3360
|
+
}), Wl = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-3fd4a3a4"]]), al = {
|
|
3262
3361
|
class: "form-actions",
|
|
3263
3362
|
"data-testid": "form-actions"
|
|
3264
|
-
},
|
|
3363
|
+
}, ll = { key: 0 }, sl = /* @__PURE__ */ z({
|
|
3265
3364
|
__name: "EntityBaseForm",
|
|
3266
3365
|
props: {
|
|
3267
3366
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3315,22 +3414,22 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3315
3414
|
},
|
|
3316
3415
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3317
3416
|
setup(e, { emit: t }) {
|
|
3318
|
-
var
|
|
3417
|
+
var I;
|
|
3319
3418
|
const n = t, i = e, r = qn(), { i18n: { t: o } } = J.useI18n(), { getMessageFromError: a } = J.useErrors(), { axiosInstance: l } = J.useAxios({
|
|
3320
|
-
headers: (
|
|
3321
|
-
}), s = B(!1), c = B(!1), d = B(""), u = w(() => i.canSubmit === !1 || i.isReadonly),
|
|
3322
|
-
var
|
|
3323
|
-
let
|
|
3324
|
-
return i.config.app === "konnect" ?
|
|
3325
|
-
}),
|
|
3326
|
-
|
|
3327
|
-
},
|
|
3328
|
-
i.config.cancelRoute ? r.push(i.config.cancelRoute) :
|
|
3329
|
-
},
|
|
3419
|
+
headers: (I = i.config) == null ? void 0 : I.requestHeaders
|
|
3420
|
+
}), s = B(!1), c = B(!1), d = B(""), u = w(() => i.canSubmit === !1 || i.isReadonly), m = B(!1), f = w(() => {
|
|
3421
|
+
var k, D;
|
|
3422
|
+
let g = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3423
|
+
return i.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((k = i.config) == null ? void 0 : k.controlPlaneId) || "") : i.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (D = i.config) != null && D.workspace ? `/${i.config.workspace}` : "")), i.editId ? (g = g.replace(/{id}/gi, i.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
|
|
3424
|
+
}), x = () => {
|
|
3425
|
+
m.value = !m.value;
|
|
3426
|
+
}, y = () => {
|
|
3427
|
+
i.config.cancelRoute ? r.push(i.config.cancelRoute) : b();
|
|
3428
|
+
}, b = () => {
|
|
3330
3429
|
n("cancel");
|
|
3331
|
-
},
|
|
3430
|
+
}, $ = () => {
|
|
3332
3431
|
u.value || n("submit");
|
|
3333
|
-
},
|
|
3432
|
+
}, C = B([
|
|
3334
3433
|
{
|
|
3335
3434
|
title: o("baseForm.configuration.yaml"),
|
|
3336
3435
|
hash: "#yaml"
|
|
@@ -3340,24 +3439,24 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3340
3439
|
hash: "#json"
|
|
3341
3440
|
}
|
|
3342
3441
|
]);
|
|
3343
|
-
return
|
|
3344
|
-
n("loading",
|
|
3345
|
-
}, { immediate: !0 }),
|
|
3442
|
+
return Se(() => s.value, (g) => {
|
|
3443
|
+
n("loading", g);
|
|
3444
|
+
}, { immediate: !0 }), Kt(async () => {
|
|
3346
3445
|
if (i.editId)
|
|
3347
3446
|
try {
|
|
3348
3447
|
c.value = !1, s.value = !0;
|
|
3349
|
-
const { data:
|
|
3350
|
-
n("fetch:success",
|
|
3351
|
-
} catch (
|
|
3352
|
-
const
|
|
3353
|
-
d.value =
|
|
3448
|
+
const { data: g } = await l.get(f.value);
|
|
3449
|
+
n("fetch:success", g);
|
|
3450
|
+
} catch (g) {
|
|
3451
|
+
const k = a(g);
|
|
3452
|
+
d.value = k.startsWith("code") ? o("baseForm.errors.edit") : k, c.value = !0, n("fetch:error", g);
|
|
3354
3453
|
} finally {
|
|
3355
3454
|
s.value = !1;
|
|
3356
3455
|
}
|
|
3357
|
-
}), (
|
|
3358
|
-
const D =
|
|
3359
|
-
return p(), F(
|
|
3360
|
-
default:
|
|
3456
|
+
}), (g, k) => {
|
|
3457
|
+
const D = O("KSkeleton"), re = O("KEmptyState"), q = O("KAlert"), h = O("KButton"), j = O("KTabs"), T = O("KSlideout"), R = O("KCard");
|
|
3458
|
+
return p(), F(R, { class: "kong-ui-entity-base-form" }, {
|
|
3459
|
+
default: v(() => [
|
|
3361
3460
|
s.value ? (p(), F(D, {
|
|
3362
3461
|
key: 0,
|
|
3363
3462
|
type: "form"
|
|
@@ -3365,90 +3464,90 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3365
3464
|
key: 1,
|
|
3366
3465
|
"cta-text": S(o)("baseForm.actions.back"),
|
|
3367
3466
|
"data-testid": "form-fetch-error",
|
|
3368
|
-
"handle-click":
|
|
3467
|
+
"handle-click": y,
|
|
3369
3468
|
"is-error": !0
|
|
3370
3469
|
}, {
|
|
3371
|
-
message:
|
|
3372
|
-
|
|
3470
|
+
message: v(() => [
|
|
3471
|
+
L("h3", null, E(d.value), 1)
|
|
3373
3472
|
]),
|
|
3374
3473
|
_: 1
|
|
3375
|
-
}, 8, ["cta-text"])) : (p(),
|
|
3474
|
+
}, 8, ["cta-text"])) : (p(), _("form", {
|
|
3376
3475
|
key: 2,
|
|
3377
3476
|
"data-testid": "form-content",
|
|
3378
|
-
onReset:
|
|
3379
|
-
onSubmit:
|
|
3477
|
+
onReset: Ne(b, ["prevent"]),
|
|
3478
|
+
onSubmit: Ne($, ["prevent"])
|
|
3380
3479
|
}, [
|
|
3381
|
-
Y(
|
|
3382
|
-
e.errorMessage ? (p(), F(
|
|
3480
|
+
Y(g.$slots, "default", {}, void 0, !0),
|
|
3481
|
+
e.errorMessage ? (p(), F(q, {
|
|
3383
3482
|
key: 0,
|
|
3384
3483
|
"alert-message": e.errorMessage,
|
|
3385
3484
|
appearance: "danger",
|
|
3386
3485
|
"data-testid": "form-error"
|
|
3387
|
-
}, null, 8, ["alert-message"])) :
|
|
3388
|
-
|
|
3389
|
-
Y(
|
|
3390
|
-
e.config.jsonYamlFormsEnabled ? (p(),
|
|
3391
|
-
|
|
3486
|
+
}, null, 8, ["alert-message"])) : M("", !0),
|
|
3487
|
+
L("div", al, [
|
|
3488
|
+
Y(g.$slots, "form-actions", {}, () => [
|
|
3489
|
+
e.config.jsonYamlFormsEnabled ? (p(), _("div", ll, [
|
|
3490
|
+
N(h, {
|
|
3392
3491
|
appearance: "tertiary",
|
|
3393
3492
|
"data-testid": "form-view-configuration",
|
|
3394
|
-
onClick:
|
|
3493
|
+
onClick: k[0] || (k[0] = (K) => x())
|
|
3395
3494
|
}, {
|
|
3396
|
-
default:
|
|
3397
|
-
|
|
3495
|
+
default: v(() => [
|
|
3496
|
+
W(E(S(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3398
3497
|
]),
|
|
3399
3498
|
_: 1
|
|
3400
3499
|
})
|
|
3401
|
-
])) :
|
|
3402
|
-
|
|
3500
|
+
])) : M("", !0),
|
|
3501
|
+
N(h, {
|
|
3403
3502
|
appearance: "secondary",
|
|
3404
3503
|
"data-testid": "form-cancel",
|
|
3405
3504
|
disabled: e.isReadonly,
|
|
3406
3505
|
type: "reset"
|
|
3407
3506
|
}, {
|
|
3408
|
-
default:
|
|
3409
|
-
|
|
3507
|
+
default: v(() => [
|
|
3508
|
+
W(E(S(o)("baseForm.actions.cancel")), 1)
|
|
3410
3509
|
]),
|
|
3411
3510
|
_: 1
|
|
3412
3511
|
}, 8, ["disabled"]),
|
|
3413
|
-
|
|
3512
|
+
N(h, {
|
|
3414
3513
|
appearance: "primary",
|
|
3415
3514
|
"data-testid": "form-submit",
|
|
3416
3515
|
disabled: u.value,
|
|
3417
3516
|
type: "submit"
|
|
3418
3517
|
}, {
|
|
3419
|
-
default:
|
|
3420
|
-
|
|
3518
|
+
default: v(() => [
|
|
3519
|
+
W(E(S(o)("baseForm.actions.save")), 1)
|
|
3421
3520
|
]),
|
|
3422
3521
|
_: 1
|
|
3423
3522
|
}, 8, ["disabled"])
|
|
3424
3523
|
], !0)
|
|
3425
3524
|
])
|
|
3426
3525
|
], 32)),
|
|
3427
|
-
|
|
3526
|
+
N(T, {
|
|
3428
3527
|
"close-on-blur": !1,
|
|
3429
3528
|
"data-testid": "form-view-configuration-slideout",
|
|
3430
3529
|
"has-overlay": !1,
|
|
3431
3530
|
"offset-top": 60,
|
|
3432
3531
|
title: S(o)("baseForm.configuration.title"),
|
|
3433
|
-
visible:
|
|
3434
|
-
onClose:
|
|
3532
|
+
visible: m.value,
|
|
3533
|
+
onClose: k[1] || (k[1] = (K) => x())
|
|
3435
3534
|
}, {
|
|
3436
|
-
default:
|
|
3437
|
-
|
|
3438
|
-
|
|
3535
|
+
default: v(() => [
|
|
3536
|
+
L("div", null, E(S(o)("baseForm.configuration.message")), 1),
|
|
3537
|
+
N(j, {
|
|
3439
3538
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3440
|
-
tabs:
|
|
3539
|
+
tabs: C.value
|
|
3441
3540
|
}, {
|
|
3442
|
-
json:
|
|
3443
|
-
|
|
3541
|
+
json: v(() => [
|
|
3542
|
+
N(Vt, {
|
|
3444
3543
|
config: e.config,
|
|
3445
3544
|
"fetcher-url": f.value,
|
|
3446
3545
|
"json-record": i.formFields,
|
|
3447
3546
|
"request-method": i.editId ? "put" : "post"
|
|
3448
3547
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3449
3548
|
]),
|
|
3450
|
-
yaml:
|
|
3451
|
-
|
|
3549
|
+
yaml: v(() => [
|
|
3550
|
+
N(Bn, {
|
|
3452
3551
|
"yaml-record": i.formFields
|
|
3453
3552
|
}, null, 8, ["yaml-record"])
|
|
3454
3553
|
]),
|
|
@@ -3462,10 +3561,10 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3462
3561
|
});
|
|
3463
3562
|
};
|
|
3464
3563
|
}
|
|
3465
|
-
}),
|
|
3564
|
+
}), Jl = /* @__PURE__ */ se(sl, [["__scopeId", "data-v-2e2d1350"]]), cl = {
|
|
3466
3565
|
key: 0,
|
|
3467
3566
|
"data-testid": "first-col"
|
|
3468
|
-
},
|
|
3567
|
+
}, ul = /* @__PURE__ */ z({
|
|
3469
3568
|
__name: "EntityBaseTableCell",
|
|
3470
3569
|
props: {
|
|
3471
3570
|
keyName: {
|
|
@@ -3479,67 +3578,67 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3479
3578
|
},
|
|
3480
3579
|
setup(e) {
|
|
3481
3580
|
const t = e, n = w(() => {
|
|
3482
|
-
var
|
|
3483
|
-
return ((
|
|
3581
|
+
var y;
|
|
3582
|
+
return ((y = t.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3484
3583
|
}), i = w(() => {
|
|
3485
|
-
var
|
|
3486
|
-
return ((
|
|
3584
|
+
var y;
|
|
3585
|
+
return ((y = n.value) == null ? void 0 : y.querySelector('[data-testid="first-col"]')) || null;
|
|
3487
3586
|
}), r = w(() => {
|
|
3488
|
-
var
|
|
3489
|
-
const
|
|
3490
|
-
return
|
|
3587
|
+
var b, $;
|
|
3588
|
+
const y = (b = t.rowEl) == null ? void 0 : b.querySelectorAll("td");
|
|
3589
|
+
return y ? (($ = y[0]) == null ? void 0 : $.getAttribute("data-testid")) === t.keyName : !1;
|
|
3491
3590
|
});
|
|
3492
3591
|
let o;
|
|
3493
3592
|
const a = () => {
|
|
3494
3593
|
o && (o.disconnect(), o = void 0);
|
|
3495
3594
|
}, l = () => {
|
|
3496
|
-
var
|
|
3497
|
-
c.value = ((
|
|
3498
|
-
}, s = B({}), c = B(0), d = B(0), u = B(""),
|
|
3499
|
-
|
|
3500
|
-
(
|
|
3595
|
+
var y, b, $;
|
|
3596
|
+
c.value = ((y = i.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, d.value = ((b = n.value) == null ? void 0 : b.clientWidth) || 0, u.value = (($ = s.value) == null ? void 0 : $.innerText) || "";
|
|
3597
|
+
}, s = B({}), c = B(0), d = B(0), u = B(""), m = w(() => [i.value, n.value]), f = Se(
|
|
3598
|
+
m,
|
|
3599
|
+
(y) => {
|
|
3501
3600
|
if (r.value && (a(), "ResizeObserver" in window && window)) {
|
|
3502
|
-
o = new ResizeObserver((
|
|
3601
|
+
o = new ResizeObserver((b) => {
|
|
3503
3602
|
window.requestAnimationFrame(() => {
|
|
3504
|
-
!Array.isArray(
|
|
3603
|
+
!Array.isArray(b) || !b.length || l();
|
|
3505
3604
|
});
|
|
3506
3605
|
});
|
|
3507
|
-
for (const
|
|
3508
|
-
|
|
3606
|
+
for (const b of y)
|
|
3607
|
+
b && o.observe(b);
|
|
3509
3608
|
}
|
|
3510
3609
|
},
|
|
3511
3610
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3512
|
-
),
|
|
3611
|
+
), x = w(() => r.value ? c.value > d.value : !1);
|
|
3513
3612
|
return Kn(() => {
|
|
3514
3613
|
l();
|
|
3515
3614
|
}), jn(() => {
|
|
3516
3615
|
f();
|
|
3517
|
-
}), (
|
|
3518
|
-
const
|
|
3519
|
-
return p(),
|
|
3616
|
+
}), (y, b) => {
|
|
3617
|
+
const $ = O("KTooltip");
|
|
3618
|
+
return p(), _("span", {
|
|
3520
3619
|
ref_key: "contentRef",
|
|
3521
3620
|
ref: s,
|
|
3522
3621
|
class: "content-wrapper"
|
|
3523
3622
|
}, [
|
|
3524
|
-
r.value ? (p(),
|
|
3525
|
-
|
|
3623
|
+
r.value ? (p(), _("span", cl, [
|
|
3624
|
+
N($, {
|
|
3526
3625
|
"max-width": "300",
|
|
3527
3626
|
placement: "bottomStart",
|
|
3528
|
-
text:
|
|
3627
|
+
text: x.value ? u.value : ""
|
|
3529
3628
|
}, {
|
|
3530
|
-
default:
|
|
3531
|
-
Y(
|
|
3629
|
+
default: v(() => [
|
|
3630
|
+
Y(y.$slots, "default", {}, void 0, !0)
|
|
3532
3631
|
]),
|
|
3533
3632
|
_: 3
|
|
3534
3633
|
}, 8, ["text"])
|
|
3535
|
-
])) : Y(
|
|
3634
|
+
])) : Y(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
3536
3635
|
], 512);
|
|
3537
3636
|
};
|
|
3538
3637
|
}
|
|
3539
|
-
}),
|
|
3638
|
+
}), dl = /* @__PURE__ */ se(ul, [["__scopeId", "data-v-c4379fd4"]]), fl = { class: "toolbar-container" }, pl = {
|
|
3540
3639
|
key: 0,
|
|
3541
3640
|
class: "toolbar-button-container"
|
|
3542
|
-
},
|
|
3641
|
+
}, hl = ["data-testid"], ml = /* @__PURE__ */ z({
|
|
3543
3642
|
__name: "EntityBaseTable",
|
|
3544
3643
|
props: {
|
|
3545
3644
|
// table header configuration
|
|
@@ -3650,75 +3749,75 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3650
3749
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3651
3750
|
setup(e, { emit: t }) {
|
|
3652
3751
|
const n = e, i = t, { i18n: { t: r } } = J.useI18n(), o = w(() => {
|
|
3653
|
-
var
|
|
3752
|
+
var k, D;
|
|
3654
3753
|
return typeof n.errorMessage == "string" ? {
|
|
3655
3754
|
hasError: !!n.errorMessage,
|
|
3656
3755
|
title: n.errorMessage,
|
|
3657
3756
|
message: void 0
|
|
3658
3757
|
} : {
|
|
3659
3758
|
hasError: !!n.errorMessage,
|
|
3660
|
-
title: (
|
|
3759
|
+
title: (k = n.errorMessage) == null ? void 0 : k.title,
|
|
3661
3760
|
message: (D = n.errorMessage) == null ? void 0 : D.message
|
|
3662
3761
|
};
|
|
3663
|
-
}), a = w(() => n.cacheIdentifier || n.preferencesStorageKey), l = (
|
|
3664
|
-
const
|
|
3762
|
+
}), a = w(() => n.cacheIdentifier || n.preferencesStorageKey), l = (k) => k.hasData || !!n.query, s = w(() => {
|
|
3763
|
+
const k = [];
|
|
3665
3764
|
return Object.keys(n.tableHeaders).forEach((re) => {
|
|
3666
|
-
const
|
|
3667
|
-
|
|
3668
|
-
label:
|
|
3765
|
+
const q = n.tableHeaders[re];
|
|
3766
|
+
k.push({
|
|
3767
|
+
label: q.label ?? re,
|
|
3669
3768
|
key: re,
|
|
3670
|
-
sortable:
|
|
3769
|
+
sortable: q.sortable ?? !1
|
|
3671
3770
|
});
|
|
3672
|
-
}), n.enableEntityActions &&
|
|
3771
|
+
}), n.enableEntityActions && k.push({
|
|
3673
3772
|
key: "actions",
|
|
3674
3773
|
hideLabel: !0
|
|
3675
|
-
}),
|
|
3676
|
-
}), c = (
|
|
3677
|
-
"data-rowid":
|
|
3678
|
-
"data-testid":
|
|
3679
|
-
...n.rowAttributes(
|
|
3680
|
-
}), d = B({}), u = (
|
|
3774
|
+
}), k;
|
|
3775
|
+
}), c = (k) => ({
|
|
3776
|
+
"data-rowid": k.id,
|
|
3777
|
+
"data-testid": k.name,
|
|
3778
|
+
...n.rowAttributes(k)
|
|
3779
|
+
}), d = B({}), u = (k) => {
|
|
3681
3780
|
var D;
|
|
3682
|
-
return (D = d.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${
|
|
3683
|
-
},
|
|
3781
|
+
return (D = d.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${k.id}"]`);
|
|
3782
|
+
}, m = (k) => {
|
|
3684
3783
|
const D = {
|
|
3685
|
-
"data-testid":
|
|
3686
|
-
...n.cellAttributes(
|
|
3784
|
+
"data-testid": k.headerKey,
|
|
3785
|
+
...n.cellAttributes(k)
|
|
3687
3786
|
};
|
|
3688
|
-
return
|
|
3787
|
+
return k.colIndex === 0 && (D.style = {
|
|
3689
3788
|
maxWidth: "250px",
|
|
3690
3789
|
overflowX: "hidden",
|
|
3691
3790
|
textOverflow: "ellipsis"
|
|
3692
3791
|
}), D;
|
|
3693
3792
|
}, f = () => {
|
|
3694
|
-
i("empty-state-cta-clicked"),
|
|
3695
|
-
},
|
|
3793
|
+
i("empty-state-cta-clicked"), x();
|
|
3794
|
+
}, x = () => {
|
|
3696
3795
|
i("clear-search-input");
|
|
3697
|
-
},
|
|
3796
|
+
}, y = w(() => n.disableRowClick ? void 0 : (k, D) => {
|
|
3698
3797
|
i("click:row", D);
|
|
3699
|
-
}),
|
|
3700
|
-
i("sort",
|
|
3701
|
-
}, { setTablePreferences:
|
|
3702
|
-
const
|
|
3798
|
+
}), b = (k) => {
|
|
3799
|
+
i("sort", k);
|
|
3800
|
+
}, { setTablePreferences: $, getTablePreferences: C } = Jn(), I = w(() => {
|
|
3801
|
+
const k = C(n.preferencesStorageKey);
|
|
3703
3802
|
return {
|
|
3704
3803
|
...n.initialFetcherParams,
|
|
3705
|
-
...
|
|
3804
|
+
...k
|
|
3706
3805
|
};
|
|
3707
|
-
}),
|
|
3708
|
-
n.preferencesStorageKey &&
|
|
3806
|
+
}), g = (k) => {
|
|
3807
|
+
n.preferencesStorageKey && $(n.preferencesStorageKey, k);
|
|
3709
3808
|
};
|
|
3710
|
-
return (
|
|
3711
|
-
const re =
|
|
3712
|
-
return p(), F(
|
|
3809
|
+
return (k, D) => {
|
|
3810
|
+
const re = O("KIcon"), q = O("KButton"), h = O("KDropdown"), j = O("KTable"), T = O("KCard");
|
|
3811
|
+
return p(), F(T, {
|
|
3713
3812
|
class: "kong-ui-entity-base-table",
|
|
3714
3813
|
title: e.title
|
|
3715
3814
|
}, {
|
|
3716
|
-
default:
|
|
3717
|
-
|
|
3815
|
+
default: v(() => [
|
|
3816
|
+
N(j, {
|
|
3718
3817
|
ref_key: "tableRefs",
|
|
3719
3818
|
ref: d,
|
|
3720
3819
|
"cache-identifier": a.value,
|
|
3721
|
-
"cell-attrs":
|
|
3820
|
+
"cell-attrs": m,
|
|
3722
3821
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3723
3822
|
"disable-sorting": e.disableSorting,
|
|
3724
3823
|
"empty-state-action-button-icon": e.query ? "" : "plus",
|
|
@@ -3736,50 +3835,50 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3736
3835
|
"has-error": o.value.hasError,
|
|
3737
3836
|
headers: s.value,
|
|
3738
3837
|
"hide-pagination-when-optional": "",
|
|
3739
|
-
"initial-fetcher-params":
|
|
3838
|
+
"initial-fetcher-params": I.value,
|
|
3740
3839
|
"is-loading": e.isLoading,
|
|
3741
3840
|
"pagination-type": e.paginationType,
|
|
3742
3841
|
"row-attrs": c,
|
|
3743
3842
|
"search-input": e.query,
|
|
3744
3843
|
onKtableEmptyStateCtaClicked: f,
|
|
3745
|
-
"onRow:click":
|
|
3746
|
-
onSort: D[0] || (D[0] = (
|
|
3747
|
-
"onUpdate:tablePreferences":
|
|
3748
|
-
},
|
|
3749
|
-
toolbar:
|
|
3750
|
-
|
|
3751
|
-
Y(
|
|
3752
|
-
|
|
3753
|
-
Y(
|
|
3754
|
-
])) :
|
|
3844
|
+
"onRow:click": y.value,
|
|
3845
|
+
onSort: D[0] || (D[0] = (R) => b(R)),
|
|
3846
|
+
"onUpdate:tablePreferences": g
|
|
3847
|
+
}, ge({
|
|
3848
|
+
toolbar: v(({ state: R }) => [
|
|
3849
|
+
Ie(L("div", fl, [
|
|
3850
|
+
Y(k.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3851
|
+
k.$slots["toolbar-button"] ? (p(), _("div", pl, [
|
|
3852
|
+
Y(k.$slots, "toolbar-button", {}, void 0, !0)
|
|
3853
|
+
])) : M("", !0)
|
|
3755
3854
|
], 512), [
|
|
3756
|
-
[
|
|
3855
|
+
[Ee, l(R)]
|
|
3757
3856
|
])
|
|
3758
3857
|
]),
|
|
3759
|
-
actions:
|
|
3760
|
-
|
|
3858
|
+
actions: v(({ row: R, rowKey: K, rowValue: U }) => [
|
|
3859
|
+
L("div", {
|
|
3761
3860
|
class: "actions-container",
|
|
3762
|
-
"data-testid":
|
|
3861
|
+
"data-testid": R.name
|
|
3763
3862
|
}, [
|
|
3764
|
-
|
|
3863
|
+
N(h, {
|
|
3765
3864
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3766
3865
|
width: e.dropdownMenuWidth
|
|
3767
3866
|
}, {
|
|
3768
|
-
items:
|
|
3769
|
-
Y(
|
|
3770
|
-
row:
|
|
3771
|
-
rowKey:
|
|
3867
|
+
items: v(() => [
|
|
3868
|
+
Y(k.$slots, "actions", {
|
|
3869
|
+
row: R,
|
|
3870
|
+
rowKey: K,
|
|
3772
3871
|
rowValue: U
|
|
3773
3872
|
}, void 0, !0)
|
|
3774
3873
|
]),
|
|
3775
|
-
default:
|
|
3776
|
-
|
|
3874
|
+
default: v(() => [
|
|
3875
|
+
N(q, {
|
|
3777
3876
|
class: "actions-trigger",
|
|
3778
3877
|
"data-testid": "overflow-actions-button",
|
|
3779
3878
|
size: "small"
|
|
3780
3879
|
}, {
|
|
3781
|
-
icon:
|
|
3782
|
-
|
|
3880
|
+
icon: v(() => [
|
|
3881
|
+
N(re, {
|
|
3783
3882
|
color: S(Pi),
|
|
3784
3883
|
icon: "more",
|
|
3785
3884
|
size: "16"
|
|
@@ -3790,24 +3889,24 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3790
3889
|
]),
|
|
3791
3890
|
_: 2
|
|
3792
3891
|
}, 1032, ["width"])
|
|
3793
|
-
], 8,
|
|
3892
|
+
], 8, hl)
|
|
3794
3893
|
]),
|
|
3795
3894
|
_: 2
|
|
3796
3895
|
}, [
|
|
3797
|
-
le(e.tableHeaders, (
|
|
3798
|
-
name:
|
|
3799
|
-
fn:
|
|
3800
|
-
|
|
3801
|
-
"key-name": String(
|
|
3896
|
+
le(e.tableHeaders, (R, K) => ({
|
|
3897
|
+
name: K,
|
|
3898
|
+
fn: v(({ row: U, rowKey: H, rowValue: X }) => [
|
|
3899
|
+
N(dl, {
|
|
3900
|
+
"key-name": String(K),
|
|
3802
3901
|
"row-el": u(U)
|
|
3803
3902
|
}, {
|
|
3804
|
-
default:
|
|
3805
|
-
Y(
|
|
3903
|
+
default: v(() => [
|
|
3904
|
+
Y(k.$slots, K, {
|
|
3806
3905
|
row: U,
|
|
3807
3906
|
rowKey: H,
|
|
3808
3907
|
rowValue: X
|
|
3809
3908
|
}, () => [
|
|
3810
|
-
|
|
3909
|
+
W(E(X), 1)
|
|
3811
3910
|
], !0)
|
|
3812
3911
|
]),
|
|
3813
3912
|
_: 2
|
|
@@ -3820,13 +3919,13 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3820
3919
|
}, 8, ["title"]);
|
|
3821
3920
|
};
|
|
3822
3921
|
}
|
|
3823
|
-
}),
|
|
3922
|
+
}), Gl = /* @__PURE__ */ se(ml, [["__scopeId", "data-v-ecfaa7cf"]]), gl = {
|
|
3824
3923
|
key: 0,
|
|
3825
3924
|
class: "kong-ui-entity-delete-error"
|
|
3826
|
-
},
|
|
3925
|
+
}, yl = {
|
|
3827
3926
|
key: 1,
|
|
3828
3927
|
class: "description"
|
|
3829
|
-
},
|
|
3928
|
+
}, vl = /* @__PURE__ */ z({
|
|
3830
3929
|
__name: "EntityDeleteModal",
|
|
3831
3930
|
props: {
|
|
3832
3931
|
visible: {
|
|
@@ -3871,7 +3970,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3871
3970
|
r("proceed");
|
|
3872
3971
|
};
|
|
3873
3972
|
return (s, c) => {
|
|
3874
|
-
const d =
|
|
3973
|
+
const d = O("KAlert"), u = O("KPrompt");
|
|
3875
3974
|
return p(), F(u, {
|
|
3876
3975
|
"action-button-appearance": "danger",
|
|
3877
3976
|
"action-button-disabled": e.actionPending,
|
|
@@ -3883,50 +3982,50 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3883
3982
|
onCancel: a,
|
|
3884
3983
|
onProceed: l
|
|
3885
3984
|
}, {
|
|
3886
|
-
default:
|
|
3887
|
-
e.error ? (p(),
|
|
3888
|
-
|
|
3889
|
-
alertMessage:
|
|
3890
|
-
|
|
3985
|
+
default: v(() => [
|
|
3986
|
+
e.error ? (p(), _("div", gl, [
|
|
3987
|
+
N(d, { appearance: "danger" }, {
|
|
3988
|
+
alertMessage: v(() => [
|
|
3989
|
+
W(E(e.error), 1)
|
|
3891
3990
|
]),
|
|
3892
3991
|
_: 1
|
|
3893
3992
|
})
|
|
3894
|
-
])) :
|
|
3895
|
-
|
|
3993
|
+
])) : M("", !0),
|
|
3994
|
+
N(S(n), {
|
|
3896
3995
|
class: "message",
|
|
3897
3996
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3898
3997
|
tag: "p"
|
|
3899
|
-
},
|
|
3900
|
-
entityType:
|
|
3901
|
-
|
|
3998
|
+
}, ge({
|
|
3999
|
+
entityType: v(() => [
|
|
4000
|
+
W(E(i.entityType), 1)
|
|
3902
4001
|
]),
|
|
3903
4002
|
_: 2
|
|
3904
4003
|
}, [
|
|
3905
4004
|
i.entityName ? {
|
|
3906
4005
|
name: "entityName",
|
|
3907
|
-
fn:
|
|
3908
|
-
|
|
4006
|
+
fn: v(() => [
|
|
4007
|
+
L("strong", null, E(i.entityName), 1)
|
|
3909
4008
|
]),
|
|
3910
4009
|
key: "0"
|
|
3911
4010
|
} : void 0
|
|
3912
4011
|
]), 1032, ["keypath"]),
|
|
3913
|
-
i.description || s.$slots.description ? (p(),
|
|
4012
|
+
i.description || s.$slots.description ? (p(), _("div", yl, [
|
|
3914
4013
|
Y(s.$slots, "description", {}, () => [
|
|
3915
|
-
|
|
4014
|
+
L("p", null, E(i.description), 1)
|
|
3916
4015
|
], !0)
|
|
3917
|
-
])) :
|
|
4016
|
+
])) : M("", !0)
|
|
3918
4017
|
]),
|
|
3919
4018
|
_: 3
|
|
3920
4019
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3921
4020
|
};
|
|
3922
4021
|
}
|
|
3923
|
-
}),
|
|
4022
|
+
}), Zl = /* @__PURE__ */ se(vl, [["__scopeId", "data-v-efe8f34b"]]), bl = {
|
|
3924
4023
|
fill: "none",
|
|
3925
4024
|
height: "20",
|
|
3926
4025
|
viewBox: "0 0 20 20",
|
|
3927
4026
|
width: "20",
|
|
3928
4027
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3929
|
-
},
|
|
4028
|
+
}, Cl = {
|
|
3930
4029
|
id: "mask0_180_20349",
|
|
3931
4030
|
height: "20",
|
|
3932
4031
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3934,7 +4033,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3934
4033
|
width: "20",
|
|
3935
4034
|
x: "0",
|
|
3936
4035
|
y: "0"
|
|
3937
|
-
},
|
|
4036
|
+
}, xl = ["fill"], kl = { mask: "url(#mask0_180_20349)" }, _l = ["fill"], Bt = /* @__PURE__ */ z({
|
|
3938
4037
|
__name: "IconFilter",
|
|
3939
4038
|
props: {
|
|
3940
4039
|
color: {
|
|
@@ -3943,26 +4042,26 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3943
4042
|
}
|
|
3944
4043
|
},
|
|
3945
4044
|
setup(e) {
|
|
3946
|
-
return (t, n) => (p(),
|
|
3947
|
-
|
|
3948
|
-
|
|
4045
|
+
return (t, n) => (p(), _("svg", bl, [
|
|
4046
|
+
L("mask", Cl, [
|
|
4047
|
+
L("rect", {
|
|
3949
4048
|
fill: e.color,
|
|
3950
4049
|
height: "20",
|
|
3951
4050
|
width: "20"
|
|
3952
|
-
}, null, 8,
|
|
4051
|
+
}, null, 8, xl)
|
|
3953
4052
|
]),
|
|
3954
|
-
|
|
3955
|
-
|
|
4053
|
+
L("g", kl, [
|
|
4054
|
+
L("path", {
|
|
3956
4055
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3957
4056
|
fill: e.color
|
|
3958
|
-
}, null, 8,
|
|
4057
|
+
}, null, 8, _l)
|
|
3959
4058
|
])
|
|
3960
4059
|
]));
|
|
3961
4060
|
}
|
|
3962
|
-
}),
|
|
4061
|
+
}), Al = {
|
|
3963
4062
|
key: 1,
|
|
3964
4063
|
class: "kong-ui-entity-filter"
|
|
3965
|
-
},
|
|
4064
|
+
}, wl = { class: "menu-item-title" }, Sl = { class: "menu-item-indicator" }, Il = { class: "menu-item-body" }, El = ["for"], Tl = { class: "menu-item-buttons" }, Fl = { class: "filter-clear-button-container" }, $l = /* @__PURE__ */ z({
|
|
3966
4065
|
__name: "EntityFilter",
|
|
3967
4066
|
props: {
|
|
3968
4067
|
// filter config, either exact match or fuzzy match
|
|
@@ -3983,49 +4082,51 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
3983
4082
|
emits: ["update:modelValue"],
|
|
3984
4083
|
setup(e, { emit: t }) {
|
|
3985
4084
|
const { i18n: { t: n } } = J.useI18n(), i = e, r = t, o = B(!1), a = B({}), l = w(() => {
|
|
3986
|
-
const
|
|
3987
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3988
|
-
|
|
3989
|
-
}),
|
|
4085
|
+
const C = [];
|
|
4086
|
+
return new URLSearchParams(i.modelValue).forEach((I, g) => {
|
|
4087
|
+
I !== "" && C.push(g);
|
|
4088
|
+
}), C;
|
|
3990
4089
|
}), s = w(() => {
|
|
3991
|
-
const
|
|
3992
|
-
return Object.keys(
|
|
3993
|
-
label:
|
|
3994
|
-
value:
|
|
4090
|
+
const C = i.config.fields;
|
|
4091
|
+
return Object.keys(C).filter((I) => C[I].searchable).map((I) => ({
|
|
4092
|
+
label: C[I].label || I,
|
|
4093
|
+
value: I
|
|
3995
4094
|
}));
|
|
3996
4095
|
});
|
|
3997
|
-
|
|
3998
|
-
a.value = {}, new URLSearchParams(
|
|
3999
|
-
a.value[
|
|
4096
|
+
Se(() => i.modelValue, (C) => {
|
|
4097
|
+
a.value = {}, new URLSearchParams(C).forEach((I, g) => {
|
|
4098
|
+
a.value[g] = I;
|
|
4000
4099
|
});
|
|
4001
4100
|
});
|
|
4002
4101
|
const c = () => {
|
|
4003
4102
|
o.value = !o.value;
|
|
4004
|
-
}, d = (
|
|
4005
|
-
r("update:modelValue",
|
|
4006
|
-
}, u = (
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4103
|
+
}, d = (C) => {
|
|
4104
|
+
r("update:modelValue", C);
|
|
4105
|
+
}, u = () => {
|
|
4106
|
+
d("");
|
|
4107
|
+
}, m = (C) => `filter-${C}`, f = (C) => {
|
|
4108
|
+
var I, g;
|
|
4109
|
+
return (((g = (I = i.config.schema) == null ? void 0 : I[C]) == null ? void 0 : g.values) ?? []).map((k) => ({
|
|
4110
|
+
value: k,
|
|
4111
|
+
label: k
|
|
4011
4112
|
}));
|
|
4012
|
-
},
|
|
4013
|
-
var
|
|
4014
|
-
return ((
|
|
4015
|
-
},
|
|
4113
|
+
}, x = (C) => {
|
|
4114
|
+
var I, g;
|
|
4115
|
+
return ((g = (I = i.config.schema) == null ? void 0 : I[C]) == null ? void 0 : g.type) ?? "text";
|
|
4116
|
+
}, y = (C) => {
|
|
4016
4117
|
a.value = {
|
|
4017
4118
|
...a.value,
|
|
4018
|
-
[
|
|
4019
|
-
},
|
|
4020
|
-
},
|
|
4021
|
-
a.value = {},
|
|
4022
|
-
},
|
|
4023
|
-
const
|
|
4024
|
-
|
|
4119
|
+
[C]: ""
|
|
4120
|
+
}, $();
|
|
4121
|
+
}, b = () => {
|
|
4122
|
+
a.value = {}, $(!0);
|
|
4123
|
+
}, $ = (C = !1) => {
|
|
4124
|
+
const I = Object.keys(a.value).reduce((g, k) => (a.value[k] && (g[k] = `${a.value[k]}`), g), {});
|
|
4125
|
+
C && (o.value = !1), r("update:modelValue", new URLSearchParams(I).toString());
|
|
4025
4126
|
};
|
|
4026
|
-
return (
|
|
4027
|
-
const
|
|
4028
|
-
return e.config.isExactMatch ? (p(), F(
|
|
4127
|
+
return (C, I) => {
|
|
4128
|
+
const g = O("KInput"), k = O("KButton"), D = O("KSelect"), re = O("KMenuItem"), q = O("KMenu");
|
|
4129
|
+
return e.config.isExactMatch ? (p(), F(g, {
|
|
4029
4130
|
key: 0,
|
|
4030
4131
|
autocomplete: "off",
|
|
4031
4132
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4034,89 +4135,97 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4034
4135
|
placeholder: e.config.placeholder,
|
|
4035
4136
|
"onUpdate:modelValue": d
|
|
4036
4137
|
}, {
|
|
4037
|
-
before:
|
|
4038
|
-
|
|
4138
|
+
before: v(() => [
|
|
4139
|
+
N(Bt)
|
|
4140
|
+
]),
|
|
4141
|
+
after: v(() => [
|
|
4142
|
+
Ie(N(S(Ya), {
|
|
4143
|
+
class: "kong-ui-entity-filter-clear",
|
|
4144
|
+
onClick: u
|
|
4145
|
+
}, null, 512), [
|
|
4146
|
+
[Ee, e.modelValue !== ""]
|
|
4147
|
+
])
|
|
4039
4148
|
]),
|
|
4040
4149
|
_: 1
|
|
4041
|
-
}, 8, ["model-value", "placeholder"])) : (p(),
|
|
4042
|
-
|
|
4150
|
+
}, 8, ["model-value", "placeholder"])) : (p(), _("div", Al, [
|
|
4151
|
+
N(k, {
|
|
4043
4152
|
appearance: "tertiary",
|
|
4044
4153
|
"data-testid": "filter-button",
|
|
4045
4154
|
onClick: c
|
|
4046
4155
|
}, {
|
|
4047
|
-
default:
|
|
4048
|
-
|
|
4049
|
-
|
|
4156
|
+
default: v(() => [
|
|
4157
|
+
N(Bt),
|
|
4158
|
+
W(" " + E(S(n)("filter.filterButtonText")) + " " + E(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4050
4159
|
]),
|
|
4051
4160
|
_: 1
|
|
4052
4161
|
}),
|
|
4053
|
-
|
|
4162
|
+
Ie(L("div", {
|
|
4054
4163
|
class: "kong-ui-entity-filter-backdrop",
|
|
4055
4164
|
onClick: c
|
|
4056
4165
|
}, null, 512), [
|
|
4057
|
-
[
|
|
4166
|
+
[Ee, o.value]
|
|
4058
4167
|
]),
|
|
4059
|
-
|
|
4060
|
-
body:
|
|
4061
|
-
(p(!0),
|
|
4062
|
-
key:
|
|
4063
|
-
"data-testid":
|
|
4168
|
+
Ie(N(q, { class: "kong-ui-entity-filter-menu" }, {
|
|
4169
|
+
body: v(() => [
|
|
4170
|
+
(p(!0), _(ce, null, le(s.value, (h, j) => (p(), F(re, {
|
|
4171
|
+
key: h.value,
|
|
4172
|
+
"data-testid": h.value,
|
|
4064
4173
|
expandable: "",
|
|
4065
|
-
"last-menu-item":
|
|
4174
|
+
"last-menu-item": j === s.value.length - 1
|
|
4066
4175
|
}, {
|
|
4067
|
-
itemTitle:
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
[
|
|
4176
|
+
itemTitle: v(() => [
|
|
4177
|
+
L("span", wl, [
|
|
4178
|
+
W(E(h.label) + " ", 1),
|
|
4179
|
+
Ie(L("span", Sl, null, 512), [
|
|
4180
|
+
[Ee, l.value.includes(h.value)]
|
|
4072
4181
|
])
|
|
4073
4182
|
])
|
|
4074
4183
|
]),
|
|
4075
|
-
itemBody:
|
|
4076
|
-
var
|
|
4184
|
+
itemBody: v(() => {
|
|
4185
|
+
var T, R;
|
|
4077
4186
|
return [
|
|
4078
|
-
|
|
4079
|
-
|
|
4187
|
+
L("div", Il, [
|
|
4188
|
+
L("label", {
|
|
4080
4189
|
class: "menu-item-label",
|
|
4081
|
-
for:
|
|
4082
|
-
},
|
|
4083
|
-
((
|
|
4190
|
+
for: m(h.value)
|
|
4191
|
+
}, E(S(n)("filter.fieldLabel")), 9, El),
|
|
4192
|
+
((R = (T = e.config.schema) == null ? void 0 : T[h.value]) == null ? void 0 : R.type) === "select" ? (p(), F(D, {
|
|
4084
4193
|
key: 0,
|
|
4085
|
-
id:
|
|
4086
|
-
modelValue: a.value[
|
|
4087
|
-
"onUpdate:modelValue": (
|
|
4088
|
-
items: h
|
|
4194
|
+
id: m(h.value),
|
|
4195
|
+
modelValue: a.value[h.value],
|
|
4196
|
+
"onUpdate:modelValue": (K) => a.value[h.value] = K,
|
|
4197
|
+
items: f(h.value),
|
|
4089
4198
|
placeholder: S(n)("filter.selectPlaceholder")
|
|
4090
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), F(
|
|
4199
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), F(g, {
|
|
4091
4200
|
key: 1,
|
|
4092
|
-
id:
|
|
4093
|
-
modelValue: a.value[
|
|
4094
|
-
"onUpdate:modelValue": (
|
|
4201
|
+
id: m(h.value),
|
|
4202
|
+
modelValue: a.value[h.value],
|
|
4203
|
+
"onUpdate:modelValue": (K) => a.value[h.value] = K,
|
|
4095
4204
|
autocomplete: "off",
|
|
4096
4205
|
placeholder: S(n)("filter.inputPlaceholder"),
|
|
4097
|
-
type:
|
|
4206
|
+
type: x(h.value)
|
|
4098
4207
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4099
4208
|
]),
|
|
4100
|
-
|
|
4101
|
-
|
|
4209
|
+
L("div", Tl, [
|
|
4210
|
+
N(k, {
|
|
4102
4211
|
appearance: "tertiary",
|
|
4103
4212
|
"data-testid": "apply-filter",
|
|
4104
4213
|
size: "small",
|
|
4105
|
-
onClick:
|
|
4214
|
+
onClick: I[0] || (I[0] = (K) => $(!0))
|
|
4106
4215
|
}, {
|
|
4107
|
-
default:
|
|
4108
|
-
|
|
4216
|
+
default: v(() => [
|
|
4217
|
+
W(E(S(n)("filter.applyButtonText")), 1)
|
|
4109
4218
|
]),
|
|
4110
4219
|
_: 1
|
|
4111
4220
|
}),
|
|
4112
|
-
|
|
4221
|
+
N(k, {
|
|
4113
4222
|
appearance: "tertiary",
|
|
4114
4223
|
"data-testid": "clear-filter",
|
|
4115
4224
|
size: "small",
|
|
4116
|
-
onClick: (
|
|
4225
|
+
onClick: (K) => y(h.value)
|
|
4117
4226
|
}, {
|
|
4118
|
-
default:
|
|
4119
|
-
|
|
4227
|
+
default: v(() => [
|
|
4228
|
+
W(E(S(n)("filter.clearButtonText")), 1)
|
|
4120
4229
|
]),
|
|
4121
4230
|
_: 2
|
|
4122
4231
|
}, 1032, ["onClick"])
|
|
@@ -4126,15 +4235,15 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4126
4235
|
_: 2
|
|
4127
4236
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4128
4237
|
]),
|
|
4129
|
-
actionButton:
|
|
4130
|
-
|
|
4131
|
-
|
|
4238
|
+
actionButton: v(() => [
|
|
4239
|
+
L("div", Fl, [
|
|
4240
|
+
N(k, {
|
|
4132
4241
|
appearance: "tertiary",
|
|
4133
4242
|
size: "small",
|
|
4134
|
-
onClick:
|
|
4243
|
+
onClick: b
|
|
4135
4244
|
}, {
|
|
4136
|
-
default:
|
|
4137
|
-
|
|
4245
|
+
default: v(() => [
|
|
4246
|
+
W(E(S(n)("filter.clearAllButtonText")), 1)
|
|
4138
4247
|
]),
|
|
4139
4248
|
_: 1
|
|
4140
4249
|
})
|
|
@@ -4142,12 +4251,12 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4142
4251
|
]),
|
|
4143
4252
|
_: 1
|
|
4144
4253
|
}, 512), [
|
|
4145
|
-
[
|
|
4254
|
+
[Ee, o.value]
|
|
4146
4255
|
])
|
|
4147
4256
|
]));
|
|
4148
4257
|
};
|
|
4149
4258
|
}
|
|
4150
|
-
}),
|
|
4259
|
+
}), Ql = /* @__PURE__ */ se($l, [["__scopeId", "data-v-206cc415"]]), Xl = /* @__PURE__ */ z({
|
|
4151
4260
|
__name: "EntityToggleModal",
|
|
4152
4261
|
props: {
|
|
4153
4262
|
visible: {
|
|
@@ -4195,10 +4304,10 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4195
4304
|
}
|
|
4196
4305
|
}
|
|
4197
4306
|
};
|
|
4198
|
-
return (u,
|
|
4199
|
-
const f =
|
|
4307
|
+
return (u, m) => {
|
|
4308
|
+
const f = O("KPrompt");
|
|
4200
4309
|
return p(), F(Dn, { to: "body" }, [
|
|
4201
|
-
|
|
4310
|
+
N(f, {
|
|
4202
4311
|
"action-button-disabled": a.value,
|
|
4203
4312
|
"action-button-text": s.value,
|
|
4204
4313
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4207,16 +4316,16 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4207
4316
|
onCancel: c,
|
|
4208
4317
|
onProceed: d
|
|
4209
4318
|
}, {
|
|
4210
|
-
default:
|
|
4211
|
-
|
|
4319
|
+
default: v(() => [
|
|
4320
|
+
N(S(i), {
|
|
4212
4321
|
keypath: `toggleModal.${r.action}.message`,
|
|
4213
4322
|
scope: "global"
|
|
4214
4323
|
}, {
|
|
4215
|
-
entityType:
|
|
4216
|
-
|
|
4324
|
+
entityType: v(() => [
|
|
4325
|
+
W(E(e.entityType), 1)
|
|
4217
4326
|
]),
|
|
4218
|
-
entityName:
|
|
4219
|
-
|
|
4327
|
+
entityName: v(() => [
|
|
4328
|
+
L("strong", null, E(e.entityName), 1)
|
|
4220
4329
|
]),
|
|
4221
4330
|
_: 1
|
|
4222
4331
|
}, 8, ["keypath"])
|
|
@@ -4226,7 +4335,7 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4226
4335
|
]);
|
|
4227
4336
|
};
|
|
4228
4337
|
}
|
|
4229
|
-
}),
|
|
4338
|
+
}), es = /* @__PURE__ */ z({
|
|
4230
4339
|
__name: "PermissionsWrapper",
|
|
4231
4340
|
props: {
|
|
4232
4341
|
/**
|
|
@@ -4249,23 +4358,23 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4249
4358
|
},
|
|
4250
4359
|
setup(e) {
|
|
4251
4360
|
const t = e, n = B(void 0), i = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4252
|
-
return
|
|
4361
|
+
return Se(() => t.authFunction, async () => {
|
|
4253
4362
|
n.value = await t.authFunction();
|
|
4254
4363
|
}, { immediate: !0 }), (r, o) => i.value ? Y(r.$slots, "default", {
|
|
4255
4364
|
key: 0,
|
|
4256
4365
|
isAllowed: n.value
|
|
4257
|
-
}) :
|
|
4366
|
+
}) : M("", !0);
|
|
4258
4367
|
}
|
|
4259
|
-
}),
|
|
4368
|
+
}), Ol = { class: "form-section-wrapper" }, Ll = {
|
|
4260
4369
|
key: 0,
|
|
4261
4370
|
class: "form-section-title"
|
|
4262
|
-
},
|
|
4371
|
+
}, Nl = {
|
|
4263
4372
|
key: 1,
|
|
4264
4373
|
class: "form-section-description"
|
|
4265
|
-
},
|
|
4374
|
+
}, Bl = {
|
|
4266
4375
|
key: 2,
|
|
4267
4376
|
class: "form-section-footer"
|
|
4268
|
-
},
|
|
4377
|
+
}, Ml = { class: "form-section-content" }, Rl = /* @__PURE__ */ z({
|
|
4269
4378
|
__name: "EntityFormSection",
|
|
4270
4379
|
props: {
|
|
4271
4380
|
title: {
|
|
@@ -4290,38 +4399,38 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4290
4399
|
}
|
|
4291
4400
|
},
|
|
4292
4401
|
setup(e) {
|
|
4293
|
-
const t =
|
|
4294
|
-
return (n, i) => (p(),
|
|
4295
|
-
class:
|
|
4402
|
+
const t = qe();
|
|
4403
|
+
return (n, i) => (p(), _("fieldset", {
|
|
4404
|
+
class: he(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4296
4405
|
}, [
|
|
4297
|
-
|
|
4298
|
-
e.hideInfoHeader ?
|
|
4406
|
+
L("div", Ol, [
|
|
4407
|
+
e.hideInfoHeader ? M("", !0) : (p(), _("div", {
|
|
4299
4408
|
key: 0,
|
|
4300
|
-
class:
|
|
4409
|
+
class: he(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4301
4410
|
}, [
|
|
4302
|
-
e.title ? (p(),
|
|
4303
|
-
e.description || S(t).description ? (p(),
|
|
4411
|
+
e.title ? (p(), _("h4", Ll, E(e.title), 1)) : M("", !0),
|
|
4412
|
+
e.description || S(t).description ? (p(), _("div", Nl, [
|
|
4304
4413
|
Y(n.$slots, "description", {}, () => [
|
|
4305
|
-
|
|
4414
|
+
L("p", null, E(e.description), 1)
|
|
4306
4415
|
], !0)
|
|
4307
|
-
])) :
|
|
4308
|
-
S(t).footer ? (p(),
|
|
4416
|
+
])) : M("", !0),
|
|
4417
|
+
S(t).footer ? (p(), _("div", Bl, [
|
|
4309
4418
|
Y(n.$slots, "footer", {}, void 0, !0)
|
|
4310
|
-
])) :
|
|
4419
|
+
])) : M("", !0)
|
|
4311
4420
|
], 2)),
|
|
4312
|
-
|
|
4421
|
+
L("div", Ml, [
|
|
4313
4422
|
Y(n.$slots, "default", {}, void 0, !0)
|
|
4314
4423
|
])
|
|
4315
4424
|
])
|
|
4316
4425
|
], 2));
|
|
4317
4426
|
}
|
|
4318
|
-
}),
|
|
4427
|
+
}), ts = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-3565daa7"]]), Kl = {
|
|
4319
4428
|
class: "kong-ui-public-entity-link",
|
|
4320
4429
|
"data-testid": "entity-link-parent"
|
|
4321
|
-
},
|
|
4430
|
+
}, jl = {
|
|
4322
4431
|
key: 0,
|
|
4323
4432
|
class: "deleted-entity"
|
|
4324
|
-
},
|
|
4433
|
+
}, Dl = { key: 1 }, Ul = ["onClick"], Pl = /* @__PURE__ */ z({
|
|
4325
4434
|
__name: "EntityLink",
|
|
4326
4435
|
props: {
|
|
4327
4436
|
entityLinkData: {
|
|
@@ -4350,32 +4459,32 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4350
4459
|
a.value = o;
|
|
4351
4460
|
}, 1800));
|
|
4352
4461
|
};
|
|
4353
|
-
return (u,
|
|
4354
|
-
const f =
|
|
4355
|
-
return p(),
|
|
4356
|
-
l.value ? (p(),
|
|
4462
|
+
return (u, m) => {
|
|
4463
|
+
const f = O("KTooltip"), x = O("KExternalLink"), y = O("KClipboardProvider");
|
|
4464
|
+
return p(), _("div", Kl, [
|
|
4465
|
+
l.value ? (p(), _("div", jl, E(c.value), 1)) : s.value ? s.value ? (p(), F(x, {
|
|
4357
4466
|
key: 2,
|
|
4358
4467
|
class: "entity-link",
|
|
4359
4468
|
"hide-icon": !e.newWindow,
|
|
4360
4469
|
href: e.externalLink,
|
|
4361
4470
|
target: e.newWindow ? "_blank" : "_self"
|
|
4362
4471
|
}, {
|
|
4363
|
-
default:
|
|
4364
|
-
|
|
4472
|
+
default: v(() => [
|
|
4473
|
+
N(f, {
|
|
4365
4474
|
text: S(i) && e.entityLinkData.label || ""
|
|
4366
4475
|
}, {
|
|
4367
|
-
default:
|
|
4368
|
-
|
|
4476
|
+
default: v(() => [
|
|
4477
|
+
L("span", {
|
|
4369
4478
|
ref_key: "textContent",
|
|
4370
4479
|
ref: n,
|
|
4371
4480
|
class: "entity-link-label"
|
|
4372
|
-
},
|
|
4481
|
+
}, E(e.entityLinkData.label), 513)
|
|
4373
4482
|
]),
|
|
4374
4483
|
_: 1
|
|
4375
4484
|
}, 8, ["text"])
|
|
4376
4485
|
]),
|
|
4377
4486
|
_: 1
|
|
4378
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4487
|
+
}, 8, ["hide-icon", "href", "target"])) : M("", !0) : (p(), _("div", Dl, E(" – "))),
|
|
4379
4488
|
s.value && e.allowCopy ? (p(), F(f, {
|
|
4380
4489
|
key: a.value,
|
|
4381
4490
|
class: "copy-uuid-tooltip",
|
|
@@ -4383,59 +4492,59 @@ const Ea = { class: "yaml-config" }, Nn = /* @__PURE__ */ W({
|
|
|
4383
4492
|
placement: "bottomEnd",
|
|
4384
4493
|
text: a.value
|
|
4385
4494
|
}, {
|
|
4386
|
-
default:
|
|
4387
|
-
|
|
4388
|
-
default:
|
|
4389
|
-
|
|
4495
|
+
default: v(() => [
|
|
4496
|
+
N(y, null, {
|
|
4497
|
+
default: v(({ copyToClipboard: b }) => [
|
|
4498
|
+
L("span", {
|
|
4390
4499
|
class: "entity-link-copy-id",
|
|
4391
|
-
onClick:
|
|
4500
|
+
onClick: Ne(($) => d(b), ["stop"])
|
|
4392
4501
|
}, [
|
|
4393
|
-
|
|
4502
|
+
N(S(Za), {
|
|
4394
4503
|
class: "copy-icon",
|
|
4395
4504
|
color: S(qi),
|
|
4396
4505
|
"data-testid": "copy-id",
|
|
4397
4506
|
size: S(Yi)
|
|
4398
4507
|
}, null, 8, ["color", "size"])
|
|
4399
|
-
], 8,
|
|
4508
|
+
], 8, Ul)
|
|
4400
4509
|
]),
|
|
4401
4510
|
_: 1
|
|
4402
4511
|
})
|
|
4403
4512
|
]),
|
|
4404
4513
|
_: 1
|
|
4405
|
-
}, 8, ["text"])) :
|
|
4514
|
+
}, 8, ["text"])) : M("", !0)
|
|
4406
4515
|
]);
|
|
4407
4516
|
};
|
|
4408
4517
|
}
|
|
4409
|
-
}),
|
|
4518
|
+
}), ns = /* @__PURE__ */ se(Pl, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: is, useDeleteUrlBuilder: rs, useErrors: os, useExternalLinkCreator: as, useFetchUrlBuilder: ls, useFetcher: ss, useDebouncedFilter: cs, useStringHelpers: us, useHelpers: ds, useGatewayFeatureSupported: fs, useTruncationDetector: ps } = J;
|
|
4410
4519
|
export {
|
|
4411
4520
|
La as ConfigCardDisplay,
|
|
4412
4521
|
it as ConfigCardItem,
|
|
4413
4522
|
ae as ConfigurationSchemaSection,
|
|
4414
4523
|
V as ConfigurationSchemaType,
|
|
4415
|
-
|
|
4416
|
-
|
|
4524
|
+
Wl as EntityBaseConfigCard,
|
|
4525
|
+
Jl as EntityBaseForm,
|
|
4417
4526
|
Yn as EntityBaseFormType,
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4527
|
+
Gl as EntityBaseTable,
|
|
4528
|
+
Zl as EntityDeleteModal,
|
|
4529
|
+
Ql as EntityFilter,
|
|
4530
|
+
ts as EntityFormSection,
|
|
4531
|
+
ns as EntityLink,
|
|
4532
|
+
Xl as EntityToggleModal,
|
|
4424
4533
|
Hn as EntityTypes,
|
|
4425
4534
|
Ce as FetcherStatus,
|
|
4426
4535
|
Ki as InternalLinkItem,
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4536
|
+
Vt as JsonCodeBlock,
|
|
4537
|
+
es as PermissionsWrapper,
|
|
4538
|
+
Bn as YamlCodeBlock,
|
|
4539
|
+
is as useAxios,
|
|
4540
|
+
cs as useDebouncedFilter,
|
|
4541
|
+
rs as useDeleteUrlBuilder,
|
|
4542
|
+
os as useErrors,
|
|
4543
|
+
as as useExternalLinkCreator,
|
|
4544
|
+
ls as useFetchUrlBuilder,
|
|
4545
|
+
ss as useFetcher,
|
|
4546
|
+
fs as useGatewayFeatureSupported,
|
|
4547
|
+
ds as useHelpers,
|
|
4548
|
+
us as useStringHelpers,
|
|
4549
|
+
ps as useTruncationDetector
|
|
4441
4550
|
};
|