@kong-ui-public/entities-shared 3.19.2 → 3.19.3-pr.2001.e73b22c4d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as Nt, ref as L, computed as T, unref as A, toValue as Ve, watch as Ae, provide as Mt, toRef as Un, defineComponent as J, openBlock as p, createBlock as M, resolveDynamicComponent as Ne, normalizeClass as
|
|
1
|
+
import { inject as Nt, ref as L, computed as T, unref as A, toValue as Ve, watch as Ae, provide as Mt, toRef as Un, defineComponent as J, openBlock as p, createBlock as M, resolveDynamicComponent as Ne, normalizeClass as ce, withCtx as k, createElementBlock as _, createElementVNode as N, toDisplayString as E, createCommentVNode as D, Fragment as le, renderList as oe, resolveComponent as U, createVNode as j, createTextVNode as q, useCssVars as jt, useSlots as Xe, renderSlot as P, createSlots as Ce, normalizeProps as Pn, guardReactiveProps as qn, mergeProps as Hn, onBeforeMount as et, withModifiers as Fe, Teleport as Dt, onMounted as Yn, onUnmounted as Vn, withDirectives as he, vShow as ge, withKeys as Wn } from "vue";
|
|
2
2
|
import ut from "axios";
|
|
3
3
|
import { createI18n as Jn, i18nTComponent as Gn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as zn, KButton as dt, KTruncate as Qn, KBadge as Zn } from "@kong/kongponents";
|
|
@@ -53,7 +53,7 @@ const Ue = "khcp-user-table-preferences", lr = {
|
|
|
53
53
|
sortColumnOrder: void 0,
|
|
54
54
|
columnVisibility: {}
|
|
55
55
|
};
|
|
56
|
-
function
|
|
56
|
+
function sr() {
|
|
57
57
|
const e = (n) => {
|
|
58
58
|
if (typeof n == "string")
|
|
59
59
|
try {
|
|
@@ -90,7 +90,7 @@ function nt(e = {}) {
|
|
|
90
90
|
axiosInstance: t(e)
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const cr = {
|
|
94
94
|
actions: {
|
|
95
95
|
copyId: "Copy ID",
|
|
96
96
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
@@ -192,7 +192,7 @@ const sr = {
|
|
|
192
192
|
confirmText: "Yes, disable"
|
|
193
193
|
}
|
|
194
194
|
}, xr = {
|
|
195
|
-
global:
|
|
195
|
+
global: cr,
|
|
196
196
|
deleteModal: ur,
|
|
197
197
|
baseForm: dr,
|
|
198
198
|
baseTable: fr,
|
|
@@ -204,7 +204,7 @@ const sr = {
|
|
|
204
204
|
validationErrors: vr,
|
|
205
205
|
toggleModal: br
|
|
206
206
|
};
|
|
207
|
-
function
|
|
207
|
+
function je() {
|
|
208
208
|
const e = Jn("en-us", xr);
|
|
209
209
|
return {
|
|
210
210
|
i18n: e,
|
|
@@ -216,9 +216,9 @@ function qt() {
|
|
|
216
216
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
217
217
|
if (o.length !== a.length) return !1;
|
|
218
218
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
219
|
-
for (const
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
219
|
+
for (const s of l) {
|
|
220
|
+
const c = o.filter((u) => u === s).length, d = a.filter((u) => u === s).length;
|
|
221
|
+
if (c !== d) return !1;
|
|
222
222
|
}
|
|
223
223
|
return !0;
|
|
224
224
|
};
|
|
@@ -227,13 +227,13 @@ function qt() {
|
|
|
227
227
|
objectsAreEqual: (o, a, l) => {
|
|
228
228
|
if (l) {
|
|
229
229
|
if (Object.keys(o).length === Object.keys(a).length)
|
|
230
|
-
for (const
|
|
231
|
-
if (Array.isArray(o[
|
|
232
|
-
if (t(o[
|
|
230
|
+
for (const s in o)
|
|
231
|
+
if (Array.isArray(o[s]) && Array.isArray(a[s])) {
|
|
232
|
+
if (t(o[s], a[s]))
|
|
233
233
|
continue;
|
|
234
234
|
return !1;
|
|
235
235
|
} else {
|
|
236
|
-
if (o[
|
|
236
|
+
if (o[s] === a[s])
|
|
237
237
|
continue;
|
|
238
238
|
return !1;
|
|
239
239
|
}
|
|
@@ -248,8 +248,8 @@ function qt() {
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
sortAlpha: (o) => (a, l) => {
|
|
251
|
-
let
|
|
252
|
-
return Array.isArray(a[o]) && (
|
|
251
|
+
let s = a[o] === void 0 || a[o] === null ? "" : a[o], c = l[o] === void 0 || l[o] === null ? "" : l[o];
|
|
252
|
+
return Array.isArray(a[o]) && (s = a[o][0]), Array.isArray(l[o]) && (c = l[o][0]), s.localeCompare(c);
|
|
253
253
|
},
|
|
254
254
|
isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
|
|
255
255
|
};
|
|
@@ -259,20 +259,20 @@ function Cr(e, t, n, r = {
|
|
|
259
259
|
searchKeys: ["id"]
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
|
-
const { axiosInstance: i } = nt(e.axiosRequestConfig), { i18n: { t: o } } =
|
|
262
|
+
const { axiosInstance: i } = nt(e.axiosRequestConfig), { i18n: { t: o } } = je(), { debounce: a } = or(), l = a(async (R) => {
|
|
263
263
|
await b(R);
|
|
264
|
-
}, 200),
|
|
264
|
+
}, 200), s = L(!1), c = L(""), d = L(""), u = L([]), m = L([]), f = L(void 0), v = T(() => {
|
|
265
265
|
const R = `${e.apiBaseUrl}${A(t)}`;
|
|
266
266
|
return e.app === "konnect" ? R.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? R.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : R;
|
|
267
267
|
}), { isValidUuid: y } = qt(), C = async () => {
|
|
268
268
|
try {
|
|
269
|
-
|
|
269
|
+
s.value = !0;
|
|
270
270
|
const { data: R } = await i.get(`${v.value}?size=${n}`);
|
|
271
271
|
R != null && R.next || (f.value = r.fetchedItemsKey in R ? R[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in R ? R[r.fetchedItemsKey] : [], u.value = m.value;
|
|
272
272
|
} catch {
|
|
273
|
-
u.value = [],
|
|
273
|
+
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
s.value = !1;
|
|
276
276
|
}
|
|
277
277
|
}, I = L(""), b = async (R) => {
|
|
278
278
|
var F, S, g;
|
|
@@ -283,7 +283,7 @@ function Cr(e, t, n, r = {
|
|
|
283
283
|
}
|
|
284
284
|
if (f.value === void 0)
|
|
285
285
|
try {
|
|
286
|
-
if (
|
|
286
|
+
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
287
287
|
const $ = `${v.value}/${R}`, { data: h } = await i.get(`${$}?size=${n}`);
|
|
288
288
|
r.fetchedItemsKey in h ? u.value = h[r.fetchedItemsKey] : h != null && h[r.exactMatchKey ?? "id"] ? u.value = [h] : u.value = [];
|
|
289
289
|
} else {
|
|
@@ -306,12 +306,12 @@ function Cr(e, t, n, r = {
|
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
} catch ($) {
|
|
309
|
-
((S = $ == null ? void 0 : $.response) == null ? void 0 : S.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [],
|
|
309
|
+
((S = $ == null ? void 0 : $.response) == null ? void 0 : S.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
310
310
|
} finally {
|
|
311
|
-
|
|
311
|
+
s.value = !1;
|
|
312
312
|
}
|
|
313
313
|
else
|
|
314
|
-
|
|
314
|
+
s.value = !0, d.value = "", u.value = (g = f.value) == null ? void 0 : g.filter(($) => {
|
|
315
315
|
var x;
|
|
316
316
|
let h = !1;
|
|
317
317
|
for (const B of r.searchKeys) {
|
|
@@ -319,12 +319,12 @@ function Cr(e, t, n, r = {
|
|
|
319
319
|
K != null && K.includes(R.toLowerCase()) && (h = !0);
|
|
320
320
|
}
|
|
321
321
|
return h;
|
|
322
|
-
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")),
|
|
322
|
+
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
return {
|
|
326
|
-
loading:
|
|
327
|
-
error:
|
|
326
|
+
loading: s,
|
|
327
|
+
error: c,
|
|
328
328
|
validationError: d,
|
|
329
329
|
results: u,
|
|
330
330
|
allRecords: f,
|
|
@@ -339,32 +339,74 @@ function kr(e, t) {
|
|
|
339
339
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
340
340
|
}
|
|
341
341
|
function Ar() {
|
|
342
|
-
const { i18n: { t: e } } =
|
|
342
|
+
const { i18n: { t: e } } = je();
|
|
343
343
|
return {
|
|
344
|
-
|
|
345
|
-
var
|
|
346
|
-
if (!
|
|
344
|
+
getErrorFieldsFromError: (r) => {
|
|
345
|
+
var a, l, s;
|
|
346
|
+
if (!r)
|
|
347
|
+
return {
|
|
348
|
+
messages: [e("errors.unexpected")],
|
|
349
|
+
fields: []
|
|
350
|
+
};
|
|
351
|
+
if (((a = r == null ? void 0 : r.response) == null ? void 0 : a.status) === 401)
|
|
352
|
+
return console.warn("getErrorFieldsFromError: User auth token is expired or missing, returning empty messages."), {
|
|
353
|
+
messages: [],
|
|
354
|
+
fields: []
|
|
355
|
+
};
|
|
356
|
+
let i = [e("errors.unexpected")];
|
|
357
|
+
const o = [];
|
|
358
|
+
if ((l = r == null ? void 0 : r.response) != null && l.data) {
|
|
359
|
+
if ((s = r.response.data.details) != null && s.length)
|
|
360
|
+
return i = [], r.response.data.details.forEach((c) => {
|
|
361
|
+
let d = e("errors.unexpected");
|
|
362
|
+
c.messages && Array.isArray(c.messages) && c.messages.length && (d = c.messages.join(", ")), c.field && o.push({ field: c.field, message: d }), i.push(`${c.field ?? ""} ${d}`);
|
|
363
|
+
}), { messages: i, fields: o };
|
|
364
|
+
if (r.response.data.message && Array.isArray(r.response.data.message))
|
|
365
|
+
return i = [], r.response.data.message.forEach((c) => {
|
|
366
|
+
if (c != null && c.constraints) {
|
|
367
|
+
const d = Object.values(c.constraints).join(", ");
|
|
368
|
+
i.push(d), c.property && o.push({ field: c.property, message: d });
|
|
369
|
+
} else c != null && c.property && (c != null && c.message) ? (o.push({ field: c.property, message: c.message }), i.push(c.message)) : i.push(c);
|
|
370
|
+
}), { messages: i, fields: o };
|
|
371
|
+
if (typeof r.response.data.message == "string" || typeof r.response.data == "string")
|
|
372
|
+
return {
|
|
373
|
+
messages: [r.response.data.message],
|
|
374
|
+
fields: []
|
|
375
|
+
};
|
|
376
|
+
if (typeof r.response.data == "object")
|
|
377
|
+
return i = [], Object.keys(r.response.data).forEach((c) => {
|
|
378
|
+
o.push({ field: c, message: r.response.data[c] }), i.push(r.response.data[c]);
|
|
379
|
+
}), { messages: i, fields: o };
|
|
380
|
+
}
|
|
381
|
+
return {
|
|
382
|
+
messages: [r.message || e("errors.unexpected")],
|
|
383
|
+
fields: []
|
|
384
|
+
};
|
|
385
|
+
},
|
|
386
|
+
getMessageFromError: (r) => {
|
|
387
|
+
var i, o, a, l;
|
|
388
|
+
if (!r)
|
|
347
389
|
return e("errors.unexpected");
|
|
348
|
-
if (((
|
|
390
|
+
if (((i = r == null ? void 0 : r.response) == null ? void 0 : i.status) === 401)
|
|
349
391
|
return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."), "";
|
|
350
|
-
if ((
|
|
351
|
-
if (
|
|
352
|
-
return
|
|
353
|
-
if ((
|
|
354
|
-
return
|
|
392
|
+
if ((o = r == null ? void 0 : r.response) != null && o.data) {
|
|
393
|
+
if (r.response.data.detail)
|
|
394
|
+
return r.response.data.detail;
|
|
395
|
+
if ((a = r.response.data.details) != null && a.length)
|
|
396
|
+
return r.response.data.details.map((s) => {
|
|
355
397
|
let c = e("errors.unexpected");
|
|
356
|
-
return
|
|
398
|
+
return s.messages && typeof s.messages == "object" && s.messages.length && (c = s.messages.join(", ")), s.field ? `${s.field} - ${c}` : c;
|
|
357
399
|
}).join("; ");
|
|
358
|
-
if (
|
|
359
|
-
const { message:
|
|
360
|
-
return Array.isArray(
|
|
400
|
+
if (r.response.data.message) {
|
|
401
|
+
const { message: s } = r.response.data;
|
|
402
|
+
return Array.isArray(s) ? (l = s[0]) != null && l.constraints ? Object.values(s[0].constraints)[0] : s[0] : s;
|
|
361
403
|
}
|
|
362
|
-
if (typeof
|
|
363
|
-
return
|
|
364
|
-
if (typeof
|
|
365
|
-
return Object.keys(
|
|
404
|
+
if (typeof r.response.data == "string")
|
|
405
|
+
return r.response.data;
|
|
406
|
+
if (typeof r.response.data == "object")
|
|
407
|
+
return Object.keys(r.response.data).map((s) => `${s} ${r.response.data[s]}`).join(", ");
|
|
366
408
|
}
|
|
367
|
-
return
|
|
409
|
+
return r.message || e("errors.unexpected");
|
|
368
410
|
}
|
|
369
411
|
};
|
|
370
412
|
}
|
|
@@ -386,12 +428,12 @@ function Ht(e, t) {
|
|
|
386
428
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
387
429
|
);
|
|
388
430
|
return (a) => {
|
|
389
|
-
const { page: l, pageSize:
|
|
431
|
+
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = a;
|
|
390
432
|
try {
|
|
391
433
|
let f = new URL(o.value.href);
|
|
392
434
|
return i.value && m ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${m}`) : new URL(`${f.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((v, y) => {
|
|
393
435
|
f.searchParams.append(y, v);
|
|
394
|
-
}), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(
|
|
436
|
+
}), 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;
|
|
395
437
|
} catch (f) {
|
|
396
438
|
return console.error("RouteList(fetcher)", f), r.value;
|
|
397
439
|
}
|
|
@@ -401,7 +443,7 @@ const pt = /* @__PURE__ */ new Map();
|
|
|
401
443
|
function _r(e, t, n) {
|
|
402
444
|
const r = L(!0), i = A(t), { axiosInstance: o } = nt(e.axiosRequestConfig), a = Ht(e, i), l = L({
|
|
403
445
|
status: de.Idle
|
|
404
|
-
}),
|
|
446
|
+
}), s = async (u) => {
|
|
405
447
|
var f;
|
|
406
448
|
const m = Ve(n) || "data";
|
|
407
449
|
try {
|
|
@@ -445,8 +487,8 @@ function _r(e, t, n) {
|
|
|
445
487
|
error: v.response ? v : { response: v }
|
|
446
488
|
}, y);
|
|
447
489
|
}
|
|
448
|
-
},
|
|
449
|
-
return { fetcher:
|
|
490
|
+
}, c = e.cacheIdentifier, d = Yt(c);
|
|
491
|
+
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
450
492
|
}
|
|
451
493
|
function Yt(e) {
|
|
452
494
|
if (e) {
|
|
@@ -526,7 +568,7 @@ function Lr(e) {
|
|
|
526
568
|
};
|
|
527
569
|
}
|
|
528
570
|
function Rr() {
|
|
529
|
-
const { i18n: { t: e } } =
|
|
571
|
+
const { i18n: { t: e } } = je();
|
|
530
572
|
return {
|
|
531
573
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
532
574
|
};
|
|
@@ -564,7 +606,7 @@ const Y = {
|
|
|
564
606
|
useFetchUrlBuilder: Ht,
|
|
565
607
|
useHelpers: qt,
|
|
566
608
|
useStringHelpers: Sr,
|
|
567
|
-
useI18n:
|
|
609
|
+
useI18n: je,
|
|
568
610
|
useGatewayFeatureSupported: Or,
|
|
569
611
|
useTruncationDetector: Lr,
|
|
570
612
|
useValidators: Rr,
|
|
@@ -574,7 +616,7 @@ const Y = {
|
|
|
574
616
|
}, Mr = {
|
|
575
617
|
key: 0,
|
|
576
618
|
class: "config-card-fieldset-title"
|
|
577
|
-
},
|
|
619
|
+
}, jr = /* @__PURE__ */ J({
|
|
578
620
|
__name: "JsonCardItem",
|
|
579
621
|
props: {
|
|
580
622
|
item: {
|
|
@@ -592,19 +634,19 @@ const Y = {
|
|
|
592
634
|
},
|
|
593
635
|
setup(e) {
|
|
594
636
|
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = T(() => t.item.key ?? "json-array-item"), o = T(() => t.item.value ?? t.item), a = T(() => {
|
|
595
|
-
const
|
|
596
|
-
return t.isArrayItem && delete
|
|
637
|
+
const s = JSON.parse(JSON.stringify(o.value));
|
|
638
|
+
return t.isArrayItem && delete s.name, s;
|
|
597
639
|
}), l = T(() => {
|
|
598
|
-
var
|
|
599
|
-
return t.isArrayItem ? (
|
|
640
|
+
var s;
|
|
641
|
+
return t.isArrayItem ? (s = o.value) != null && s.name ? r(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
600
642
|
});
|
|
601
|
-
return (
|
|
602
|
-
class:
|
|
643
|
+
return (s, c) => (p(), M(Ne(e.isArrayItem ? "fieldset" : "div"), {
|
|
644
|
+
class: ce(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
603
645
|
}, {
|
|
604
646
|
default: k(() => [
|
|
605
647
|
e.isArrayItem ? (p(), _("legend", Mr, [
|
|
606
648
|
N("b", null, E(l.value), 1)
|
|
607
|
-
])) :
|
|
649
|
+
])) : D("", !0),
|
|
608
650
|
(p(!0), _(le, null, oe(Object.keys(a.value), (d, u) => (p(), M(Gt, {
|
|
609
651
|
key: `${i.value}-property-${u}`,
|
|
610
652
|
item: {
|
|
@@ -622,7 +664,7 @@ const Y = {
|
|
|
622
664
|
for (const [r, i] of t)
|
|
623
665
|
n[r] = i;
|
|
624
666
|
return n;
|
|
625
|
-
}, Jt = /* @__PURE__ */ ae(
|
|
667
|
+
}, Jt = /* @__PURE__ */ ae(jr, [["__scopeId", "data-v-f7096c33"]]), Dr = /* @__PURE__ */ J({
|
|
626
668
|
__name: "InternalLinkItem",
|
|
627
669
|
props: {
|
|
628
670
|
item: {
|
|
@@ -636,7 +678,7 @@ const Y = {
|
|
|
636
678
|
return (n, r) => {
|
|
637
679
|
const i = U("KButton");
|
|
638
680
|
return p(), _("div", null, [
|
|
639
|
-
|
|
681
|
+
j(i, {
|
|
640
682
|
appearance: "tertiary",
|
|
641
683
|
class: "navigation-button",
|
|
642
684
|
onClick: r[0] || (r[0] = (o) => n.$emit("navigation-click", e.item))
|
|
@@ -649,7 +691,7 @@ const Y = {
|
|
|
649
691
|
]);
|
|
650
692
|
};
|
|
651
693
|
}
|
|
652
|
-
}), Ur = /* @__PURE__ */ ae(
|
|
694
|
+
}), Ur = /* @__PURE__ */ ae(Dr, [["__scopeId", "data-v-c96811e5"]]), Pr = /* @__PURE__ */ J({
|
|
653
695
|
__name: "StatusBadge",
|
|
654
696
|
props: {
|
|
655
697
|
status: {
|
|
@@ -694,13 +736,13 @@ const Y = {
|
|
|
694
736
|
},
|
|
695
737
|
emits: ["navigation-click"],
|
|
696
738
|
setup(e, { emit: t }) {
|
|
697
|
-
|
|
739
|
+
jt((b) => ({
|
|
698
740
|
"3ccdd5d2": d.value ? "none" : `solid ${A(Wr)} ${A(Hr)}`,
|
|
699
|
-
"4b1da305":
|
|
700
|
-
cd20788a:
|
|
701
|
-
cd1becd4:
|
|
741
|
+
"4b1da305": c.value && l.value ? "block" : "flex",
|
|
742
|
+
cd20788a: c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
743
|
+
cd1becd4: c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
702
744
|
}));
|
|
703
|
-
const n = e, r = t, i = Xe(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = T(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""),
|
|
745
|
+
const n = e, r = t, i = Xe(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = T(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = T(() => !!(n.item.tooltip || i["label-tooltip"])), c = T(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = T(() => n.item.type === H.JsonArray), u = Y.useSubSchema(n.item.key), m = T(() => {
|
|
704
746
|
var b;
|
|
705
747
|
return n.item.type ? n.item.type : (b = u == null ? void 0 : u.value) != null && b.encrypted ? H.Redacted : void 0;
|
|
706
748
|
}), f = T(() => {
|
|
@@ -833,9 +875,9 @@ const Y = {
|
|
|
833
875
|
"data-testid": `${e.item.key}-label`
|
|
834
876
|
}, [
|
|
835
877
|
P(b.$slots, "label", { item: e.item }, () => [
|
|
836
|
-
|
|
878
|
+
j(S, { "tooltip-attributes": { maxWidth: "500px" } }, Ce({
|
|
837
879
|
default: k(() => [
|
|
838
|
-
|
|
880
|
+
j(F, {
|
|
839
881
|
text: A(C) ? e.item.label : ""
|
|
840
882
|
}, {
|
|
841
883
|
default: k(() => [
|
|
@@ -850,7 +892,7 @@ const Y = {
|
|
|
850
892
|
]),
|
|
851
893
|
_: 2
|
|
852
894
|
}, [
|
|
853
|
-
|
|
895
|
+
s.value ? {
|
|
854
896
|
name: "tooltip",
|
|
855
897
|
fn: k(() => [
|
|
856
898
|
N("div", {
|
|
@@ -892,7 +934,7 @@ const Y = {
|
|
|
892
934
|
]),
|
|
893
935
|
_: 2
|
|
894
936
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
895
|
-
], 8, ni)) :
|
|
937
|
+
], 8, ni)) : D("", !0),
|
|
896
938
|
f.value.additionalComponent === "KCopy" ? (p(), _("div", {
|
|
897
939
|
key: 1,
|
|
898
940
|
class: "copy-uuid-array",
|
|
@@ -919,7 +961,7 @@ const Y = {
|
|
|
919
961
|
]),
|
|
920
962
|
_: 2
|
|
921
963
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
922
|
-
], 8, ii)) :
|
|
964
|
+
], 8, ii)) : D("", !0),
|
|
923
965
|
f.value.additionalComponent === "JsonCardItem" ? (p(), _("div", {
|
|
924
966
|
key: 3,
|
|
925
967
|
"data-testid": `${n.item.key}-json-array-content`
|
|
@@ -938,7 +980,7 @@ const Y = {
|
|
|
938
980
|
N("span", {
|
|
939
981
|
ref_key: "textContent",
|
|
940
982
|
ref: y,
|
|
941
|
-
class:
|
|
983
|
+
class: ce(["attrs-data-text", { truncated: e.truncated }])
|
|
942
984
|
}, E(f.value.text), 3)
|
|
943
985
|
]),
|
|
944
986
|
_: 1
|
|
@@ -955,7 +997,7 @@ const Y = {
|
|
|
955
997
|
]);
|
|
956
998
|
};
|
|
957
999
|
}
|
|
958
|
-
}), Gt = /* @__PURE__ */ ae(li, [["__scopeId", "data-v-761f7e64"]]),
|
|
1000
|
+
}), Gt = /* @__PURE__ */ ae(li, [["__scopeId", "data-v-761f7e64"]]), si = { class: "json-config config-card-code-block" }, ci = {
|
|
959
1001
|
key: 0,
|
|
960
1002
|
class: "json-endpoint"
|
|
961
1003
|
}, zt = /* @__PURE__ */ J({
|
|
@@ -986,7 +1028,7 @@ const Y = {
|
|
|
986
1028
|
}
|
|
987
1029
|
},
|
|
988
1030
|
setup(e) {
|
|
989
|
-
|
|
1031
|
+
jt((i) => ({
|
|
990
1032
|
"54aebfa2": `${r.value}ch`
|
|
991
1033
|
}));
|
|
992
1034
|
const t = e, n = T(() => t.entityRecord), r = T(() => {
|
|
@@ -998,9 +1040,9 @@ const Y = {
|
|
|
998
1040
|
});
|
|
999
1041
|
return (i, o) => {
|
|
1000
1042
|
const a = U("KBadge"), l = U("KCodeBlock");
|
|
1001
|
-
return p(), _("div",
|
|
1002
|
-
t.fetcherUrl ? (p(), _("div",
|
|
1003
|
-
|
|
1043
|
+
return p(), _("div", si, [
|
|
1044
|
+
t.fetcherUrl ? (p(), _("div", ci, [
|
|
1045
|
+
j(a, {
|
|
1004
1046
|
appearance: t.requestMethod
|
|
1005
1047
|
}, {
|
|
1006
1048
|
default: k(() => [
|
|
@@ -1008,22 +1050,22 @@ const Y = {
|
|
|
1008
1050
|
]),
|
|
1009
1051
|
_: 1
|
|
1010
1052
|
}, 8, ["appearance"]),
|
|
1011
|
-
|
|
1053
|
+
j(l, {
|
|
1012
1054
|
id: "json-endpoint-codeblock",
|
|
1013
1055
|
code: t.fetcherUrl,
|
|
1014
1056
|
language: "json",
|
|
1015
1057
|
"single-line": "",
|
|
1016
1058
|
theme: "dark"
|
|
1017
1059
|
}, null, 8, ["code"])
|
|
1018
|
-
])) :
|
|
1060
|
+
])) : D("", !0),
|
|
1019
1061
|
t.entityRecord ? (p(), M(l, {
|
|
1020
1062
|
key: 1,
|
|
1021
1063
|
id: "json-codeblock",
|
|
1022
|
-
class:
|
|
1064
|
+
class: ce({ "json-content": t.fetcherUrl }),
|
|
1023
1065
|
code: JSON.stringify(n.value, null, 2),
|
|
1024
1066
|
language: "json",
|
|
1025
1067
|
theme: "dark"
|
|
1026
|
-
}, null, 8, ["class", "code"])) :
|
|
1068
|
+
}, null, 8, ["class", "code"])) : D("", !0)
|
|
1027
1069
|
]);
|
|
1028
1070
|
};
|
|
1029
1071
|
}
|
|
@@ -1094,26 +1136,26 @@ function Ci(e, t) {
|
|
|
1094
1136
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], o, a = -1; o = n.exec(e.buffer); )
|
|
1095
1137
|
i.push(o.index), r.push(o.index + o[0].length), e.position <= o.index && a < 0 && (a = r.length - 2);
|
|
1096
1138
|
a < 0 && (a = r.length - 1);
|
|
1097
|
-
var l = "",
|
|
1098
|
-
for (
|
|
1099
|
-
|
|
1139
|
+
var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1140
|
+
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1141
|
+
c = Pe(
|
|
1100
1142
|
e.buffer,
|
|
1101
|
-
r[a -
|
|
1102
|
-
i[a -
|
|
1103
|
-
e.position - (r[a] - r[a -
|
|
1143
|
+
r[a - s],
|
|
1144
|
+
i[a - s],
|
|
1145
|
+
e.position - (r[a] - r[a - s]),
|
|
1104
1146
|
u
|
|
1105
|
-
), l = Q.repeat(" ", t.indent) + qe((e.line -
|
|
1147
|
+
), l = Q.repeat(" ", t.indent) + qe((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1106
1148
|
` + l;
|
|
1107
|
-
for (
|
|
1108
|
-
`, l += Q.repeat("-", t.indent + d + 3 +
|
|
1109
|
-
`,
|
|
1110
|
-
|
|
1149
|
+
for (c = Pe(e.buffer, r[a], i[a], e.position, u), l += Q.repeat(" ", t.indent) + qe((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1150
|
+
`, l += Q.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1151
|
+
`, s = 1; s <= t.linesAfter && !(a + s >= i.length); s++)
|
|
1152
|
+
c = Pe(
|
|
1111
1153
|
e.buffer,
|
|
1112
|
-
r[a +
|
|
1113
|
-
i[a +
|
|
1114
|
-
e.position - (r[a] - r[a +
|
|
1154
|
+
r[a + s],
|
|
1155
|
+
i[a + s],
|
|
1156
|
+
e.position - (r[a] - r[a + s]),
|
|
1115
1157
|
u
|
|
1116
|
-
), l += Q.repeat(" ", t.indent) + qe((e.line +
|
|
1158
|
+
), l += Q.repeat(" ", t.indent) + qe((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1117
1159
|
`;
|
|
1118
1160
|
return l.replace(/\n$/, "");
|
|
1119
1161
|
}
|
|
@@ -1354,14 +1396,14 @@ function Mi(e) {
|
|
|
1354
1396
|
}
|
|
1355
1397
|
return n * parseInt(t, 10);
|
|
1356
1398
|
}
|
|
1357
|
-
function
|
|
1399
|
+
function ji(e) {
|
|
1358
1400
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Q.isNegativeZero(e);
|
|
1359
1401
|
}
|
|
1360
1402
|
var ln = new X("tag:yaml.org,2002:int", {
|
|
1361
1403
|
kind: "scalar",
|
|
1362
1404
|
resolve: Ni,
|
|
1363
1405
|
construct: Mi,
|
|
1364
|
-
predicate:
|
|
1406
|
+
predicate: ji,
|
|
1365
1407
|
represent: {
|
|
1366
1408
|
binary: function(e) {
|
|
1367
1409
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1384,12 +1426,12 @@ var ln = new X("tag:yaml.org,2002:int", {
|
|
|
1384
1426
|
decimal: [10, "dec"],
|
|
1385
1427
|
hexadecimal: [16, "hex"]
|
|
1386
1428
|
}
|
|
1387
|
-
}),
|
|
1429
|
+
}), Di = new RegExp(
|
|
1388
1430
|
// 2.5e4, 2.5 and integers
|
|
1389
1431
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1390
1432
|
);
|
|
1391
1433
|
function Ui(e) {
|
|
1392
|
-
return !(e === null || !
|
|
1434
|
+
return !(e === null || !Di.test(e) || // Quick hack to not allow integers end with `_`
|
|
1393
1435
|
// Probably should update regexp & check speed
|
|
1394
1436
|
e[e.length - 1] === "_");
|
|
1395
1437
|
}
|
|
@@ -1434,21 +1476,21 @@ function Hi(e, t) {
|
|
|
1434
1476
|
function Yi(e) {
|
|
1435
1477
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Q.isNegativeZero(e));
|
|
1436
1478
|
}
|
|
1437
|
-
var
|
|
1479
|
+
var sn = new X("tag:yaml.org,2002:float", {
|
|
1438
1480
|
kind: "scalar",
|
|
1439
1481
|
resolve: Ui,
|
|
1440
1482
|
construct: Pi,
|
|
1441
1483
|
predicate: Yi,
|
|
1442
1484
|
represent: Hi,
|
|
1443
1485
|
defaultStyle: "lowercase"
|
|
1444
|
-
}),
|
|
1486
|
+
}), cn = rn.extend({
|
|
1445
1487
|
implicit: [
|
|
1446
1488
|
an,
|
|
1447
1489
|
on,
|
|
1448
1490
|
ln,
|
|
1449
|
-
|
|
1491
|
+
sn
|
|
1450
1492
|
]
|
|
1451
|
-
}), un =
|
|
1493
|
+
}), un = cn, dn = new RegExp(
|
|
1452
1494
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1453
1495
|
), fn = new RegExp(
|
|
1454
1496
|
"^([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]))?))?$"
|
|
@@ -1457,16 +1499,16 @@ function Vi(e) {
|
|
|
1457
1499
|
return e === null ? !1 : dn.exec(e) !== null || fn.exec(e) !== null;
|
|
1458
1500
|
}
|
|
1459
1501
|
function Wi(e) {
|
|
1460
|
-
var t, n, r, i, o, a, l,
|
|
1502
|
+
var t, n, r, i, o, a, l, s = 0, c = null, d, u, m;
|
|
1461
1503
|
if (t = dn.exec(e), t === null && (t = fn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1462
1504
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
1463
1505
|
return new Date(Date.UTC(n, r, i));
|
|
1464
1506
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
1465
|
-
for (
|
|
1466
|
-
|
|
1467
|
-
|
|
1507
|
+
for (s = t[7].slice(0, 3); s.length < 3; )
|
|
1508
|
+
s += "0";
|
|
1509
|
+
s = +s;
|
|
1468
1510
|
}
|
|
1469
|
-
return t[9] && (d = +t[10], u = +(t[11] || 0),
|
|
1511
|
+
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, r, i, o, a, l, s)), c && m.setTime(m.getTime() - c), m;
|
|
1470
1512
|
}
|
|
1471
1513
|
function Ji(e) {
|
|
1472
1514
|
return e.toISOString();
|
|
@@ -1562,7 +1604,7 @@ var yn = new X("tag:yaml.org,2002:pairs", {
|
|
|
1562
1604
|
resolve: aa,
|
|
1563
1605
|
construct: oa
|
|
1564
1606
|
}), la = Object.prototype.hasOwnProperty;
|
|
1565
|
-
function
|
|
1607
|
+
function sa(e) {
|
|
1566
1608
|
if (e === null) return !0;
|
|
1567
1609
|
var t, n = e;
|
|
1568
1610
|
for (t in n)
|
|
@@ -1570,13 +1612,13 @@ function ca(e) {
|
|
|
1570
1612
|
return !1;
|
|
1571
1613
|
return !0;
|
|
1572
1614
|
}
|
|
1573
|
-
function
|
|
1615
|
+
function ca(e) {
|
|
1574
1616
|
return e !== null ? e : {};
|
|
1575
1617
|
}
|
|
1576
1618
|
var vn = new X("tag:yaml.org,2002:set", {
|
|
1577
1619
|
kind: "mapping",
|
|
1578
|
-
resolve:
|
|
1579
|
-
construct:
|
|
1620
|
+
resolve: sa,
|
|
1621
|
+
construct: ca
|
|
1580
1622
|
}), it = un.extend({
|
|
1581
1623
|
implicit: [
|
|
1582
1624
|
pn,
|
|
@@ -1592,7 +1634,7 @@ var vn = new X("tag:yaml.org,2002:set", {
|
|
|
1592
1634
|
function kt(e) {
|
|
1593
1635
|
return Object.prototype.toString.call(e);
|
|
1594
1636
|
}
|
|
1595
|
-
function
|
|
1637
|
+
function se(e) {
|
|
1596
1638
|
return e === 10 || e === 13;
|
|
1597
1639
|
}
|
|
1598
1640
|
function me(e) {
|
|
@@ -1678,19 +1720,19 @@ function _t(e, t, n, r) {
|
|
|
1678
1720
|
for (Q.isObject(n) || w(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
|
|
1679
1721
|
o = i[a], pe.call(t, o) || (t[o] = n[o], r[o] = !0);
|
|
1680
1722
|
}
|
|
1681
|
-
function xe(e, t, n, r, i, o, a, l,
|
|
1682
|
-
var
|
|
1723
|
+
function xe(e, t, n, r, i, o, a, l, s) {
|
|
1724
|
+
var c, d;
|
|
1683
1725
|
if (Array.isArray(i))
|
|
1684
|
-
for (i = Array.prototype.slice.call(i),
|
|
1685
|
-
Array.isArray(i[
|
|
1726
|
+
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1727
|
+
Array.isArray(i[c]) && w(e, "nested arrays are not supported inside keys"), typeof i == "object" && kt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1686
1728
|
if (typeof i == "object" && kt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1687
1729
|
if (Array.isArray(o))
|
|
1688
|
-
for (
|
|
1689
|
-
_t(e, t, o[
|
|
1730
|
+
for (c = 0, d = o.length; c < d; c += 1)
|
|
1731
|
+
_t(e, t, o[c], n);
|
|
1690
1732
|
else
|
|
1691
1733
|
_t(e, t, o, n);
|
|
1692
1734
|
else
|
|
1693
|
-
!e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position =
|
|
1735
|
+
!e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, w(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
1694
1736
|
configurable: !0,
|
|
1695
1737
|
enumerable: !0,
|
|
1696
1738
|
writable: !0,
|
|
@@ -1710,7 +1752,7 @@ function z(e, t, n) {
|
|
|
1710
1752
|
do
|
|
1711
1753
|
i = e.input.charCodeAt(++e.position);
|
|
1712
1754
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1713
|
-
if (
|
|
1755
|
+
if (se(i))
|
|
1714
1756
|
for (at(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1715
1757
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1716
1758
|
else
|
|
@@ -1718,7 +1760,7 @@ function z(e, t, n) {
|
|
|
1718
1760
|
}
|
|
1719
1761
|
return n !== -1 && r !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), r;
|
|
1720
1762
|
}
|
|
1721
|
-
function
|
|
1763
|
+
function De(e) {
|
|
1722
1764
|
var t = e.position, n;
|
|
1723
1765
|
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 || re(n)));
|
|
1724
1766
|
}
|
|
@@ -1727,7 +1769,7 @@ function ot(e, t) {
|
|
|
1727
1769
|
`, t - 1));
|
|
1728
1770
|
}
|
|
1729
1771
|
function ba(e, t, n) {
|
|
1730
|
-
var r, i, o, a, l,
|
|
1772
|
+
var r, i, o, a, l, s, c, d, u = e.kind, m = e.result, f;
|
|
1731
1773
|
if (f = e.input.charCodeAt(e.position), re(f) || be(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), re(i) || n && be(i)))
|
|
1732
1774
|
return !1;
|
|
1733
1775
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
|
|
@@ -1738,18 +1780,18 @@ function ba(e, t, n) {
|
|
|
1738
1780
|
if (r = e.input.charCodeAt(e.position - 1), re(r))
|
|
1739
1781
|
break;
|
|
1740
1782
|
} else {
|
|
1741
|
-
if (e.position === e.lineStart &&
|
|
1783
|
+
if (e.position === e.lineStart && De(e) || n && be(f))
|
|
1742
1784
|
break;
|
|
1743
|
-
if (
|
|
1744
|
-
if (
|
|
1785
|
+
if (se(f))
|
|
1786
|
+
if (s = e.line, c = e.lineStart, d = e.lineIndent, z(e, !1, -1), e.lineIndent >= t) {
|
|
1745
1787
|
l = !0, f = e.input.charCodeAt(e.position);
|
|
1746
1788
|
continue;
|
|
1747
1789
|
} else {
|
|
1748
|
-
e.position = a, e.line =
|
|
1790
|
+
e.position = a, e.line = s, e.lineStart = c, e.lineIndent = d;
|
|
1749
1791
|
break;
|
|
1750
1792
|
}
|
|
1751
1793
|
}
|
|
1752
|
-
l && (fe(e, o, a, !1), ot(e, e.line -
|
|
1794
|
+
l && (fe(e, o, a, !1), ot(e, e.line - s), o = a = e.position, l = !1), me(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1753
1795
|
}
|
|
1754
1796
|
return fe(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1755
1797
|
}
|
|
@@ -1763,7 +1805,7 @@ function xa(e, t) {
|
|
|
1763
1805
|
r = e.position, e.position++, i = e.position;
|
|
1764
1806
|
else
|
|
1765
1807
|
return !0;
|
|
1766
|
-
else
|
|
1808
|
+
else se(n) ? (fe(e, r, i, !0), ot(e, z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && De(e) ? w(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1767
1809
|
w(e, "unexpected end of the stream within a single quoted scalar");
|
|
1768
1810
|
}
|
|
1769
1811
|
function Ca(e, t) {
|
|
@@ -1774,7 +1816,7 @@ function Ca(e, t) {
|
|
|
1774
1816
|
if (l === 34)
|
|
1775
1817
|
return fe(e, n, e.position, !0), e.position++, !0;
|
|
1776
1818
|
if (l === 92) {
|
|
1777
|
-
if (fe(e, n, e.position, !0), l = e.input.charCodeAt(++e.position),
|
|
1819
|
+
if (fe(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), se(l))
|
|
1778
1820
|
z(e, !1, t);
|
|
1779
1821
|
else if (l < 256 && An[l])
|
|
1780
1822
|
e.result += wn[l], e.position++;
|
|
@@ -1785,12 +1827,12 @@ function Ca(e, t) {
|
|
|
1785
1827
|
} else
|
|
1786
1828
|
w(e, "unknown escape sequence");
|
|
1787
1829
|
n = r = e.position;
|
|
1788
|
-
} else
|
|
1830
|
+
} else se(l) ? (fe(e, n, r, !0), ot(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && De(e) ? w(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1789
1831
|
}
|
|
1790
1832
|
w(e, "unexpected end of the stream within a double quoted scalar");
|
|
1791
1833
|
}
|
|
1792
1834
|
function ka(e, t) {
|
|
1793
|
-
var n = !0, r, i, o, a = e.tag, l,
|
|
1835
|
+
var n = !0, r, i, o, a = e.tag, l, s = e.anchor, c, d, u, m, f, v = /* @__PURE__ */ Object.create(null), y, C, I, b;
|
|
1794
1836
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1795
1837
|
d = 93, f = !1, l = [];
|
|
1796
1838
|
else if (b === 123)
|
|
@@ -1799,13 +1841,13 @@ function ka(e, t) {
|
|
|
1799
1841
|
return !1;
|
|
1800
1842
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1801
1843
|
if (z(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
|
|
1802
|
-
return e.position++, e.tag = a, e.anchor =
|
|
1803
|
-
n ? b === 44 && w(e, "expected the node content, but found ','") : w(e, "missed comma between flow collection entries"), C = y = I = null, u = m = !1, b === 63 && (
|
|
1844
|
+
return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1845
|
+
n ? b === 44 && w(e, "expected the node content, but found ','") : w(e, "missed comma between flow collection entries"), C = y = I = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), re(c) && (u = m = !0, e.position++, z(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, ke(e, t, Oe, !1, !0), C = e.tag, y = e.result, z(e, !0, t), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), z(e, !0, t), ke(e, t, Oe, !1, !0), I = e.result), f ? xe(e, l, v, C, y, I, r, i, o) : u ? l.push(xe(e, null, v, C, y, I, r, i, o)) : l.push(y), z(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1804
1846
|
}
|
|
1805
1847
|
w(e, "unexpected end of the stream within a flow collection");
|
|
1806
1848
|
}
|
|
1807
1849
|
function Aa(e, t) {
|
|
1808
|
-
var n, r, i = He, o = !1, a = !1, l = t,
|
|
1850
|
+
var n, r, i = He, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
1809
1851
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1810
1852
|
r = !1;
|
|
1811
1853
|
else if (u === 62)
|
|
@@ -1826,40 +1868,40 @@ function Aa(e, t) {
|
|
|
1826
1868
|
if (u === 35)
|
|
1827
1869
|
do
|
|
1828
1870
|
u = e.input.charCodeAt(++e.position);
|
|
1829
|
-
while (!
|
|
1871
|
+
while (!se(u) && u !== 0);
|
|
1830
1872
|
}
|
|
1831
1873
|
for (; u !== 0; ) {
|
|
1832
1874
|
for (at(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1833
1875
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1834
|
-
if (!a && e.lineIndent > l && (l = e.lineIndent),
|
|
1835
|
-
|
|
1876
|
+
if (!a && e.lineIndent > l && (l = e.lineIndent), se(u)) {
|
|
1877
|
+
s++;
|
|
1836
1878
|
continue;
|
|
1837
1879
|
}
|
|
1838
1880
|
if (e.lineIndent < l) {
|
|
1839
1881
|
i === Ct ? e.result += Q.repeat(`
|
|
1840
|
-
`, o ? 1 +
|
|
1882
|
+
`, o ? 1 + s : s) : i === He && o && (e.result += `
|
|
1841
1883
|
`);
|
|
1842
1884
|
break;
|
|
1843
1885
|
}
|
|
1844
|
-
for (r ? me(u) ? (
|
|
1845
|
-
`, o ? 1 +
|
|
1846
|
-
`,
|
|
1847
|
-
`,
|
|
1848
|
-
`, o ? 1 +
|
|
1886
|
+
for (r ? me(u) ? (c = !0, e.result += Q.repeat(`
|
|
1887
|
+
`, o ? 1 + s : s)) : c ? (c = !1, e.result += Q.repeat(`
|
|
1888
|
+
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += Q.repeat(`
|
|
1889
|
+
`, s) : e.result += Q.repeat(`
|
|
1890
|
+
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !se(u) && u !== 0; )
|
|
1849
1891
|
u = e.input.charCodeAt(++e.position);
|
|
1850
1892
|
fe(e, n, e.position, !1);
|
|
1851
1893
|
}
|
|
1852
1894
|
return !0;
|
|
1853
1895
|
}
|
|
1854
1896
|
function St(e, t) {
|
|
1855
|
-
var n, r = e.tag, i = e.anchor, o = [], a, l = !1,
|
|
1897
|
+
var n, r = e.tag, i = e.anchor, o = [], a, l = !1, s;
|
|
1856
1898
|
if (e.firstTabInLine !== -1) return !1;
|
|
1857
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o),
|
|
1899
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !re(a)))); ) {
|
|
1858
1900
|
if (l = !0, e.position++, z(e, !0, -1) && e.lineIndent <= t) {
|
|
1859
|
-
o.push(null),
|
|
1901
|
+
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1860
1902
|
continue;
|
|
1861
1903
|
}
|
|
1862
|
-
if (n = e.line, ke(e, t, xn, !1, !0), o.push(e.result), z(e, !0, -1),
|
|
1904
|
+
if (n = e.line, ke(e, t, xn, !1, !0), o.push(e.result), z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1863
1905
|
w(e, "bad indentation of a sequence entry");
|
|
1864
1906
|
else if (e.lineIndent < t)
|
|
1865
1907
|
break;
|
|
@@ -1867,34 +1909,34 @@ function St(e, t) {
|
|
|
1867
1909
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1868
1910
|
}
|
|
1869
1911
|
function wa(e, t, n) {
|
|
1870
|
-
var r, i, o, a, l,
|
|
1912
|
+
var r, i, o, a, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, v = null, y = null, C = !1, I = !1, b;
|
|
1871
1913
|
if (e.firstTabInLine !== -1) return !1;
|
|
1872
1914
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
1873
1915
|
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && re(r))
|
|
1874
|
-
b === 63 ? (C && (xe(e, u, m, f, v, null, a, l,
|
|
1916
|
+
b === 63 ? (C && (xe(e, u, m, f, v, null, a, l, s), f = v = y = null), I = !0, C = !0, i = !0) : C ? (C = !1, i = !0) : w(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
1875
1917
|
else {
|
|
1876
|
-
if (a = e.line, l = e.lineStart,
|
|
1918
|
+
if (a = e.line, l = e.lineStart, s = e.position, !ke(e, n, bn, !1, !0))
|
|
1877
1919
|
break;
|
|
1878
1920
|
if (e.line === o) {
|
|
1879
1921
|
for (b = e.input.charCodeAt(e.position); me(b); )
|
|
1880
1922
|
b = e.input.charCodeAt(++e.position);
|
|
1881
1923
|
if (b === 58)
|
|
1882
|
-
b = e.input.charCodeAt(++e.position), re(b) || w(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (xe(e, u, m, f, v, null, a, l,
|
|
1924
|
+
b = e.input.charCodeAt(++e.position), re(b) || w(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (xe(e, u, m, f, v, null, a, l, s), f = v = y = null), I = !0, C = !1, i = !1, f = e.tag, v = e.result;
|
|
1883
1925
|
else if (I)
|
|
1884
1926
|
w(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1885
1927
|
else
|
|
1886
|
-
return e.tag =
|
|
1928
|
+
return e.tag = c, e.anchor = d, !0;
|
|
1887
1929
|
} else if (I)
|
|
1888
1930
|
w(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1889
1931
|
else
|
|
1890
|
-
return e.tag =
|
|
1932
|
+
return e.tag = c, e.anchor = d, !0;
|
|
1891
1933
|
}
|
|
1892
|
-
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart,
|
|
1934
|
+
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, s = e.position), ke(e, t, Le, !0, i) && (C ? v = e.result : y = e.result), C || (xe(e, u, m, f, v, y, a, l, s), f = v = y = null), z(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0)
|
|
1893
1935
|
w(e, "bad indentation of a mapping entry");
|
|
1894
1936
|
else if (e.lineIndent < t)
|
|
1895
1937
|
break;
|
|
1896
1938
|
}
|
|
1897
|
-
return C && xe(e, u, m, f, v, null, a, l,
|
|
1939
|
+
return C && xe(e, u, m, f, v, null, a, l, s), I && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), I;
|
|
1898
1940
|
}
|
|
1899
1941
|
function _a(e) {
|
|
1900
1942
|
var t, n = !1, r = !1, i, o, a;
|
|
@@ -1932,11 +1974,11 @@ function $a(e) {
|
|
|
1932
1974
|
return e.position === t && w(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || w(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], z(e, !0, -1), !0;
|
|
1933
1975
|
}
|
|
1934
1976
|
function ke(e, t, n, r, i) {
|
|
1935
|
-
var o, a, l,
|
|
1936
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Le === n || xn === n, r && z(e, !0, -1) && (
|
|
1977
|
+
var o, a, l, s = 1, c = !1, d = !1, u, m, f, v, y, C;
|
|
1978
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Le === n || xn === n, r && z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1937
1979
|
for (; _a(e) || Sa(e); )
|
|
1938
|
-
z(e, !0, -1) ? (
|
|
1939
|
-
if (l && (l =
|
|
1980
|
+
z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1981
|
+
if (l && (l = c || i), (s === 1 || Le === n) && (Oe === n || bn === n ? y = t : y = t + 1, C = e.position - e.lineStart, s === 1 ? l && (St(e, C) || wa(e, C, y)) || ka(e, y) ? d = !0 : (a && Aa(e, y) || xa(e, y) || Ca(e, y) ? d = !0 : $a(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && w(e, "alias node should not have any properties")) : ba(e, y, Oe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && St(e, C))), e.tag === null)
|
|
1940
1982
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1941
1983
|
else if (e.tag === "?") {
|
|
1942
1984
|
for (e.result !== null && e.kind !== "scalar" && w(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -1968,17 +2010,17 @@ function Ta(e) {
|
|
|
1968
2010
|
if (a === 35) {
|
|
1969
2011
|
do
|
|
1970
2012
|
a = e.input.charCodeAt(++e.position);
|
|
1971
|
-
while (a !== 0 && !
|
|
2013
|
+
while (a !== 0 && !se(a));
|
|
1972
2014
|
break;
|
|
1973
2015
|
}
|
|
1974
|
-
if (
|
|
2016
|
+
if (se(a)) break;
|
|
1975
2017
|
for (n = e.position; a !== 0 && !re(a); )
|
|
1976
2018
|
a = e.input.charCodeAt(++e.position);
|
|
1977
2019
|
i.push(e.input.slice(n, e.position));
|
|
1978
2020
|
}
|
|
1979
2021
|
a !== 0 && at(e), pe.call(wt, r) ? wt[r](e, r, i) : Re(e, 'unknown document directive "' + r + '"');
|
|
1980
2022
|
}
|
|
1981
|
-
if (z(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, z(e, !0, -1)) : o && w(e, "directives end mark is expected"), ke(e, e.lineIndent - 1, Le, !1, !0), z(e, !0, -1), e.checkLineBreaks && fa.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 &&
|
|
2023
|
+
if (z(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, z(e, !0, -1)) : o && w(e, "directives end mark is expected"), ke(e, e.lineIndent - 1, Le, !1, !0), z(e, !0, -1), e.checkLineBreaks && fa.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 && De(e)) {
|
|
1982
2024
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
|
|
1983
2025
|
return;
|
|
1984
2026
|
}
|
|
@@ -2016,7 +2058,7 @@ function Ea(e, t) {
|
|
|
2016
2058
|
var Fa = Ia, Oa = Ea, $n = {
|
|
2017
2059
|
loadAll: Fa,
|
|
2018
2060
|
load: Oa
|
|
2019
|
-
}, Tn = Object.prototype.toString, In = Object.prototype.hasOwnProperty, lt = 65279, La = 9, Se = 10, Ra = 13, Ba = 32, Ka = 33, Na = 34, Ge = 35, Ma = 37,
|
|
2061
|
+
}, Tn = Object.prototype.toString, In = Object.prototype.hasOwnProperty, lt = 65279, La = 9, Se = 10, Ra = 13, Ba = 32, Ka = 33, Na = 34, Ge = 35, Ma = 37, ja = 38, Da = 39, Ua = 42, En = 44, Pa = 45, Be = 58, qa = 61, Ha = 62, Ya = 63, Va = 64, Fn = 91, On = 93, Wa = 96, Ln = 123, Ja = 124, Rn = 125, ee = {};
|
|
2020
2062
|
ee[0] = "\\0";
|
|
2021
2063
|
ee[7] = "\\a";
|
|
2022
2064
|
ee[8] = "\\b";
|
|
@@ -2051,10 +2093,10 @@ var Ga = [
|
|
|
2051
2093
|
"OFF"
|
|
2052
2094
|
], za = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2053
2095
|
function Qa(e, t) {
|
|
2054
|
-
var n, r, i, o, a, l,
|
|
2096
|
+
var n, r, i, o, a, l, s;
|
|
2055
2097
|
if (t === null) return {};
|
|
2056
2098
|
for (n = {}, r = Object.keys(t), i = 0, o = r.length; i < o; i += 1)
|
|
2057
|
-
a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)),
|
|
2099
|
+
a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && In.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2058
2100
|
return n;
|
|
2059
2101
|
}
|
|
2060
2102
|
function Za(e) {
|
|
@@ -2111,7 +2153,7 @@ function It(e, t, n) {
|
|
|
2111
2153
|
);
|
|
2112
2154
|
}
|
|
2113
2155
|
function no(e) {
|
|
2114
|
-
return Te(e) && e !== lt && !Ke(e) && e !== Pa && e !== Ya && e !== Be && e !== En && e !== Fn && e !== On && e !== Ln && e !== Rn && e !== Ge && e !==
|
|
2156
|
+
return Te(e) && e !== lt && !Ke(e) && e !== Pa && e !== Ya && e !== Be && e !== En && e !== Fn && e !== On && e !== Ln && e !== Rn && e !== Ge && e !== ja && e !== Ua && e !== Ka && e !== Ja && e !== qa && e !== Ha && e !== Da && e !== Na && e !== Ma && e !== Va && e !== Wa;
|
|
2115
2157
|
}
|
|
2116
2158
|
function ro(e) {
|
|
2117
2159
|
return !Ke(e) && e !== Be;
|
|
@@ -2126,23 +2168,23 @@ function Bn(e) {
|
|
|
2126
2168
|
}
|
|
2127
2169
|
var Kn = 1, Qe = 2, Nn = 3, Mn = 4, ve = 5;
|
|
2128
2170
|
function io(e, t, n, r, i, o, a, l) {
|
|
2129
|
-
var
|
|
2171
|
+
var s, c = 0, d = null, u = !1, m = !1, f = r !== -1, v = -1, y = no(we(e, 0)) && ro(we(e, e.length - 1));
|
|
2130
2172
|
if (t || a)
|
|
2131
|
-
for (
|
|
2132
|
-
if (
|
|
2173
|
+
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2174
|
+
if (c = we(e, s), !Te(c))
|
|
2133
2175
|
return ve;
|
|
2134
|
-
y = y && It(
|
|
2176
|
+
y = y && It(c, d, l), d = c;
|
|
2135
2177
|
}
|
|
2136
2178
|
else {
|
|
2137
|
-
for (
|
|
2138
|
-
if (
|
|
2179
|
+
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2180
|
+
if (c = we(e, s), c === Se)
|
|
2139
2181
|
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2140
|
-
|
|
2141
|
-
else if (!Te(
|
|
2182
|
+
s - v - 1 > r && e[v + 1] !== " ", v = s);
|
|
2183
|
+
else if (!Te(c))
|
|
2142
2184
|
return ve;
|
|
2143
|
-
y = y && It(
|
|
2185
|
+
y = y && It(c, d, l), d = c;
|
|
2144
2186
|
}
|
|
2145
|
-
m = m || f &&
|
|
2187
|
+
m = m || f && s - v - 1 > r && e[v + 1] !== " ";
|
|
2146
2188
|
}
|
|
2147
2189
|
return !u && !m ? y && !a && !i(e) ? Kn : o === $e ? ve : Qe : n > 9 && Bn(e) ? ve : a ? o === $e ? ve : Qe : m ? Mn : Nn;
|
|
2148
2190
|
}
|
|
@@ -2153,15 +2195,15 @@ function ao(e, t, n, r, i) {
|
|
|
2153
2195
|
if (!e.noCompatMode && (Ga.indexOf(t) !== -1 || za.test(t)))
|
|
2154
2196
|
return e.quotingType === $e ? '"' + t + '"' : "'" + t + "'";
|
|
2155
2197
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2156
|
-
function c
|
|
2157
|
-
return to(e,
|
|
2198
|
+
function s(c) {
|
|
2199
|
+
return to(e, c);
|
|
2158
2200
|
}
|
|
2159
2201
|
switch (io(
|
|
2160
2202
|
t,
|
|
2161
2203
|
l,
|
|
2162
2204
|
e.indent,
|
|
2163
2205
|
a,
|
|
2164
|
-
|
|
2206
|
+
s,
|
|
2165
2207
|
e.quotingType,
|
|
2166
2208
|
e.forceQuotes && !r,
|
|
2167
2209
|
i
|
|
@@ -2195,72 +2237,72 @@ function Ft(e) {
|
|
|
2195
2237
|
}
|
|
2196
2238
|
function oo(e, t) {
|
|
2197
2239
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2198
|
-
var
|
|
2240
|
+
var c = e.indexOf(`
|
|
2199
2241
|
`);
|
|
2200
|
-
return
|
|
2242
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, Ot(e.slice(0, c), t);
|
|
2201
2243
|
}(), i = e[0] === `
|
|
2202
2244
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2203
|
-
var l = a[1],
|
|
2204
|
-
o =
|
|
2205
|
-
` : "") + Ot(
|
|
2245
|
+
var l = a[1], s = a[2];
|
|
2246
|
+
o = s[0] === " ", r += l + (!i && !o && s !== "" ? `
|
|
2247
|
+
` : "") + Ot(s, t), i = o;
|
|
2206
2248
|
}
|
|
2207
2249
|
return r;
|
|
2208
2250
|
}
|
|
2209
2251
|
function Ot(e, t) {
|
|
2210
2252
|
if (e === "" || e[0] === " ") return e;
|
|
2211
|
-
for (var n = / [^ ]/g, r, i = 0, o, a = 0, l = 0,
|
|
2212
|
-
l = r.index, l - i > t && (o = a > i ? a : l,
|
|
2253
|
+
for (var n = / [^ ]/g, r, i = 0, o, a = 0, l = 0, s = ""; r = n.exec(e); )
|
|
2254
|
+
l = r.index, l - i > t && (o = a > i ? a : l, s += `
|
|
2213
2255
|
` + e.slice(i, o), i = o + 1), a = l;
|
|
2214
|
-
return
|
|
2215
|
-
`, e.length - i > t && a > i ?
|
|
2216
|
-
` + e.slice(a + 1) :
|
|
2256
|
+
return s += `
|
|
2257
|
+
`, e.length - i > t && a > i ? s += e.slice(i, a) + `
|
|
2258
|
+
` + e.slice(a + 1) : s += e.slice(i), s.slice(1);
|
|
2217
2259
|
}
|
|
2218
2260
|
function lo(e) {
|
|
2219
2261
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2220
2262
|
n = we(e, i), r = ee[n], !r && Te(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Za(n);
|
|
2221
2263
|
return t;
|
|
2222
2264
|
}
|
|
2223
|
-
function
|
|
2265
|
+
function so(e, t, n) {
|
|
2224
2266
|
var r = "", i = e.tag, o, a, l;
|
|
2225
2267
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2226
2268
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (ue(e, t, l, !1, !1) || typeof l > "u" && ue(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2227
2269
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2228
2270
|
}
|
|
2229
2271
|
function Lt(e, t, n, r) {
|
|
2230
|
-
var i = "", o = e.tag, a, l,
|
|
2272
|
+
var i = "", o = e.tag, a, l, s;
|
|
2231
2273
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2232
|
-
|
|
2274
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (ue(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ue(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ze(e, t)), e.dump && Se === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2233
2275
|
e.tag = o, e.dump = i || "[]";
|
|
2234
2276
|
}
|
|
2235
|
-
function
|
|
2236
|
-
var r = "", i = e.tag, o = Object.keys(n), a, l,
|
|
2277
|
+
function co(e, t, n) {
|
|
2278
|
+
var r = "", i = e.tag, o = Object.keys(n), a, l, s, c, d;
|
|
2237
2279
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2238
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'),
|
|
2280
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), ue(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ue(e, t, c, !1, !1) && (d += e.dump, r += d));
|
|
2239
2281
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2240
2282
|
}
|
|
2241
2283
|
function uo(e, t, n, r) {
|
|
2242
|
-
var i = "", o = e.tag, a = Object.keys(n), l,
|
|
2284
|
+
var i = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, m;
|
|
2243
2285
|
if (e.sortKeys === !0)
|
|
2244
2286
|
a.sort();
|
|
2245
2287
|
else if (typeof e.sortKeys == "function")
|
|
2246
2288
|
a.sort(e.sortKeys);
|
|
2247
2289
|
else if (e.sortKeys)
|
|
2248
2290
|
throw new ne("sortKeys must be a boolean or a function");
|
|
2249
|
-
for (l = 0,
|
|
2250
|
-
m = "", (!r || i !== "") && (m += ze(e, t)),
|
|
2291
|
+
for (l = 0, s = a.length; l < s; l += 1)
|
|
2292
|
+
m = "", (!r || i !== "") && (m += ze(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ue(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Se === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += ze(e, t)), ue(e, t + 1, d, !0, u) && (e.dump && Se === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
|
|
2251
2293
|
e.tag = o, e.dump = i || "{}";
|
|
2252
2294
|
}
|
|
2253
2295
|
function Rt(e, t, n) {
|
|
2254
|
-
var r, i, o, a, l,
|
|
2296
|
+
var r, i, o, a, l, s;
|
|
2255
2297
|
for (i = n ? e.explicitTypes : e.implicitTypes, o = 0, a = i.length; o < a; o += 1)
|
|
2256
2298
|
if (l = i[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2257
2299
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2258
|
-
if (
|
|
2259
|
-
r = l.represent(t,
|
|
2260
|
-
else if (In.call(l.represent,
|
|
2261
|
-
r = l.represent[
|
|
2300
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Tn.call(l.represent) === "[object Function]")
|
|
2301
|
+
r = l.represent(t, s);
|
|
2302
|
+
else if (In.call(l.represent, s))
|
|
2303
|
+
r = l.represent[s](t, s);
|
|
2262
2304
|
else
|
|
2263
|
-
throw new ne("!<" + l.tag + '> tag resolver accepts not "' +
|
|
2305
|
+
throw new ne("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
2264
2306
|
e.dump = r;
|
|
2265
2307
|
}
|
|
2266
2308
|
return !0;
|
|
@@ -2269,27 +2311,27 @@ function Rt(e, t, n) {
|
|
|
2269
2311
|
}
|
|
2270
2312
|
function ue(e, t, n, r, i, o, a) {
|
|
2271
2313
|
e.tag = null, e.dump = n, Rt(e, n, !1) || Rt(e, n, !0);
|
|
2272
|
-
var l = Tn.call(e.dump),
|
|
2314
|
+
var l = Tn.call(e.dump), s = r, c;
|
|
2273
2315
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2274
2316
|
var d = l === "[object Object]" || l === "[object Array]", u, m;
|
|
2275
2317
|
if (d && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[u])
|
|
2276
2318
|
e.dump = "*ref_" + u;
|
|
2277
2319
|
else {
|
|
2278
2320
|
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2279
|
-
r && Object.keys(e.dump).length !== 0 ? (uo(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2321
|
+
r && Object.keys(e.dump).length !== 0 ? (uo(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (co(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2280
2322
|
else if (l === "[object Array]")
|
|
2281
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Lt(e, t - 1, e.dump, i) : Lt(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2323
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Lt(e, t - 1, e.dump, i) : Lt(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (so(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2282
2324
|
else if (l === "[object String]")
|
|
2283
|
-
e.tag !== "?" && ao(e, e.dump, t, o,
|
|
2325
|
+
e.tag !== "?" && ao(e, e.dump, t, o, s);
|
|
2284
2326
|
else {
|
|
2285
2327
|
if (l === "[object Undefined]")
|
|
2286
2328
|
return !1;
|
|
2287
2329
|
if (e.skipInvalid) return !1;
|
|
2288
2330
|
throw new ne("unacceptable kind of an object to dump " + l);
|
|
2289
2331
|
}
|
|
2290
|
-
e.tag !== null && e.tag !== "?" && (
|
|
2332
|
+
e.tag !== null && e.tag !== "?" && (c = encodeURI(
|
|
2291
2333
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
2292
|
-
).replace(/!/g, "%21"), e.tag[0] === "!" ?
|
|
2334
|
+
).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
|
|
2293
2335
|
}
|
|
2294
2336
|
return !0;
|
|
2295
2337
|
}
|
|
@@ -2322,14 +2364,14 @@ function po(e, t) {
|
|
|
2322
2364
|
var mo = po, ho = {
|
|
2323
2365
|
dump: mo
|
|
2324
2366
|
};
|
|
2325
|
-
function
|
|
2367
|
+
function st(e, t) {
|
|
2326
2368
|
return function() {
|
|
2327
2369
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2328
2370
|
};
|
|
2329
2371
|
}
|
|
2330
|
-
var go = X, yo = Xt, vo = rn, bo =
|
|
2372
|
+
var go = X, yo = Xt, vo = rn, bo = cn, xo = un, Co = it, ko = $n.load, Ao = $n.loadAll, wo = ho.dump, _o = ne, So = {
|
|
2331
2373
|
binary: hn,
|
|
2332
|
-
float:
|
|
2374
|
+
float: sn,
|
|
2333
2375
|
map: nn,
|
|
2334
2376
|
null: an,
|
|
2335
2377
|
pairs: yn,
|
|
@@ -2341,7 +2383,7 @@ var go = X, yo = Xt, vo = rn, bo = sn, xo = un, Co = it, ko = $n.load, Ao = $n.l
|
|
|
2341
2383
|
omap: gn,
|
|
2342
2384
|
seq: tn,
|
|
2343
2385
|
str: en
|
|
2344
|
-
}, $o =
|
|
2386
|
+
}, $o = st("safeLoad", "load"), To = st("safeLoadAll", "loadAll"), Io = st("safeDump", "dump"), Eo = {
|
|
2345
2387
|
Type: go,
|
|
2346
2388
|
Schema: yo,
|
|
2347
2389
|
FAILSAFE_SCHEMA: vo,
|
|
@@ -2357,7 +2399,7 @@ var go = X, yo = Xt, vo = rn, bo = sn, xo = un, Co = it, ko = $n.load, Ao = $n.l
|
|
|
2357
2399
|
safeLoadAll: To,
|
|
2358
2400
|
safeDump: Io
|
|
2359
2401
|
};
|
|
2360
|
-
const Fo = { class: "yaml-config config-card-code-block" },
|
|
2402
|
+
const Fo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */ J({
|
|
2361
2403
|
__name: "YamlCodeBlock",
|
|
2362
2404
|
props: {
|
|
2363
2405
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2380,11 +2422,11 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2380
2422
|
code: n.value,
|
|
2381
2423
|
language: "yaml",
|
|
2382
2424
|
theme: "dark"
|
|
2383
|
-
}, null, 8, ["code"])) :
|
|
2425
|
+
}, null, 8, ["code"])) : D("", !0)
|
|
2384
2426
|
]);
|
|
2385
2427
|
};
|
|
2386
2428
|
}
|
|
2387
|
-
}), Oo = { class: "terraform-config config-card-code-block" }, te = " ",
|
|
2429
|
+
}), Oo = { class: "terraform-config config-card-code-block" }, te = " ", Dn = /* @__PURE__ */ J({
|
|
2388
2430
|
__name: "TerraformCodeBlock",
|
|
2389
2431
|
props: {
|
|
2390
2432
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2403,20 +2445,20 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2403
2445
|
}
|
|
2404
2446
|
},
|
|
2405
2447
|
setup(e) {
|
|
2406
|
-
const t = e, n = (l,
|
|
2407
|
-
const
|
|
2448
|
+
const t = e, n = (l, s) => {
|
|
2449
|
+
const c = te;
|
|
2408
2450
|
let d = "";
|
|
2409
|
-
return typeof l == "string" ? d += `${
|
|
2410
|
-
` : d += `${
|
|
2451
|
+
return typeof l == "string" ? d += `${c}${s} = "${l}"
|
|
2452
|
+
` : d += `${c}${s} = ${String(l ?? "")}
|
|
2411
2453
|
`, d;
|
|
2412
|
-
}, r = (l,
|
|
2454
|
+
}, r = (l, s, c = "") => {
|
|
2413
2455
|
if (typeof l != "object")
|
|
2414
2456
|
return "Invalid object";
|
|
2415
|
-
const d = te +
|
|
2457
|
+
const d = te + c;
|
|
2416
2458
|
let u = "";
|
|
2417
|
-
if (
|
|
2459
|
+
if (s && (u += `${d}${s} = {
|
|
2418
2460
|
`), l === null)
|
|
2419
|
-
return
|
|
2461
|
+
return s ? u += `${d}}` : u = "{}", u;
|
|
2420
2462
|
const m = Object.fromEntries(Object.entries(l).filter(([, v]) => v !== null));
|
|
2421
2463
|
let f = "";
|
|
2422
2464
|
for (const [v, y] of Object.entries(m))
|
|
@@ -2424,14 +2466,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2424
2466
|
`, f += i(y, void 0, d), f += `${d}${te}]`) : y && typeof y == "object" ? (f = `{
|
|
2425
2467
|
`, f += r(y, void 0, d), f += `${d}${te}}`) : f = String(y ?? ""), typeof y == "string" && (f = `"${f}"`), u += `${d}${te}${v} = ${f}
|
|
2426
2468
|
`;
|
|
2427
|
-
return
|
|
2469
|
+
return s ? u += `${d}}
|
|
2428
2470
|
` : u;
|
|
2429
|
-
}, i = (l,
|
|
2471
|
+
}, i = (l, s, c = "") => {
|
|
2430
2472
|
if (!Array.isArray(l))
|
|
2431
2473
|
return "Invalid array";
|
|
2432
|
-
const d = te +
|
|
2474
|
+
const d = te + c;
|
|
2433
2475
|
let u = "";
|
|
2434
|
-
|
|
2476
|
+
s && (l.length === 0 ? u += `${d}${s} = [` : u += `${d}${s} = [
|
|
2435
2477
|
`);
|
|
2436
2478
|
for (let m = 0; m < l.length; m++) {
|
|
2437
2479
|
const f = l[m];
|
|
@@ -2439,45 +2481,45 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2439
2481
|
`, u += r(f, void 0, d), u += `${d}${te}}`) : typeof f == "string" ? u += `${d}${te}"${f}"` : u += `${d}${te}${String(f ?? "")}`, m < l.length - 1 && (u += ","), u += `
|
|
2440
2482
|
`;
|
|
2441
2483
|
}
|
|
2442
|
-
return
|
|
2484
|
+
return s && (l.length === 0 ? u += `]
|
|
2443
2485
|
` : u += `${d}]
|
|
2444
2486
|
`), u;
|
|
2445
2487
|
}, o = (l) => {
|
|
2446
|
-
let
|
|
2447
|
-
for (const [
|
|
2448
|
-
Array.isArray(d) ?
|
|
2449
|
-
return
|
|
2488
|
+
let s = "";
|
|
2489
|
+
for (const [c, d] of Object.entries(l))
|
|
2490
|
+
Array.isArray(d) ? s += i(d, c) : typeof d == "object" ? s += r(d, c) : s += n(d, c);
|
|
2491
|
+
return s;
|
|
2450
2492
|
}, a = T(() => {
|
|
2451
2493
|
var u, m, f, v, y, C, I;
|
|
2452
|
-
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, b]) => b != null)),
|
|
2453
|
-
if (
|
|
2494
|
+
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, b]) => b != null)), s = t.entityRecord.config ? Object.fromEntries(Object.entries((u = t.entityRecord) == null ? void 0 : u.config).filter(([, b]) => b != null)) : void 0;
|
|
2495
|
+
if (s && (l.config = s), Object.keys(l).length === 0)
|
|
2454
2496
|
return "";
|
|
2455
2497
|
delete l.id;
|
|
2456
|
-
let
|
|
2498
|
+
let c = "", d = "";
|
|
2457
2499
|
if ((m = l.service) != null && m.id ? (d = "service", delete l.service) : (f = l.route) != null && f.id ? (d = "route", delete l.route) : (v = l.consumer) != null && v.id ? (d = "consumer", delete l.consumer) : (y = l.consumer_group) != null && y.id ? (d = "consumer_group", delete l.consumer_group) : (C = l.certificate) != null && C.id ? (d = "certificate", delete l.certificate) : (I = l.set) != null && I.id && (d = "set", delete l.set), t.entityType === "plugin") {
|
|
2458
2500
|
const b = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
|
|
2459
|
-
delete l.name,
|
|
2501
|
+
delete l.name, c += `resource "konnect_gateway_plugin_${b}" "my_${b}" {
|
|
2460
2502
|
`;
|
|
2461
2503
|
} else
|
|
2462
|
-
|
|
2504
|
+
c += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
2463
2505
|
`;
|
|
2464
|
-
return
|
|
2465
|
-
`, d && (
|
|
2466
|
-
`,
|
|
2467
|
-
`,
|
|
2468
|
-
`),
|
|
2469
|
-
`,
|
|
2506
|
+
return c += o(l), c += `${te}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2507
|
+
`, d && (c += `${te}${d} = {
|
|
2508
|
+
`, c += `${te}${te}id = konnect_gateway_${d}.my_${d}.id
|
|
2509
|
+
`, c += `${te}}
|
|
2510
|
+
`), c += `}
|
|
2511
|
+
`, c;
|
|
2470
2512
|
});
|
|
2471
|
-
return (l,
|
|
2472
|
-
const
|
|
2513
|
+
return (l, s) => {
|
|
2514
|
+
const c = U("KCodeBlock");
|
|
2473
2515
|
return p(), _("div", Oo, [
|
|
2474
|
-
t.entityRecord ? (p(), M(
|
|
2516
|
+
t.entityRecord ? (p(), M(c, {
|
|
2475
2517
|
key: 0,
|
|
2476
2518
|
id: "terraform-codeblock",
|
|
2477
2519
|
code: a.value,
|
|
2478
2520
|
language: "terraform",
|
|
2479
2521
|
theme: "dark"
|
|
2480
|
-
}, null, 8, ["code"])) :
|
|
2522
|
+
}, null, 8, ["code"])) : D("", !0)
|
|
2481
2523
|
]);
|
|
2482
2524
|
};
|
|
2483
2525
|
}
|
|
@@ -2549,59 +2591,59 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2549
2591
|
});
|
|
2550
2592
|
return (a, l) => (p(), _(le, null, [
|
|
2551
2593
|
e.format === "structured" ? (p(), _("div", Lo, [
|
|
2552
|
-
(p(!0), _(le, null, oe(e.propListTypes, (
|
|
2553
|
-
key: `config-card-details-${
|
|
2554
|
-
class:
|
|
2555
|
-
"data-testid": `config-card-details-${
|
|
2594
|
+
(p(!0), _(le, null, oe(e.propListTypes, (s) => (p(), _("div", {
|
|
2595
|
+
key: `config-card-details-${s}-props`,
|
|
2596
|
+
class: ce(`config-card-details-${s}-props`),
|
|
2597
|
+
"data-testid": `config-card-details-${s}-props`
|
|
2556
2598
|
}, [
|
|
2557
|
-
|
|
2558
|
-
(p(!0), _(le, null, oe(e.propertyCollections[
|
|
2559
|
-
key:
|
|
2560
|
-
item:
|
|
2599
|
+
s !== "basic" ? (p(), _("div", Bo, E(s === "advanced" ? A(r)("baseConfigCard.sections.advanced") : A(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2600
|
+
(p(!0), _(le, null, oe(e.propertyCollections[s], (c) => (p(), M(Gt, {
|
|
2601
|
+
key: c.key,
|
|
2602
|
+
item: c
|
|
2561
2603
|
}, Ce({
|
|
2562
2604
|
label: k(() => [
|
|
2563
|
-
P(a.$slots, `${
|
|
2605
|
+
P(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2564
2606
|
]),
|
|
2565
|
-
[
|
|
2566
|
-
P(a.$slots,
|
|
2567
|
-
row:
|
|
2607
|
+
[c.key]: k(({ rowValue: d }) => [
|
|
2608
|
+
P(a.$slots, c.key, {
|
|
2609
|
+
row: c,
|
|
2568
2610
|
rowValue: d
|
|
2569
2611
|
}, void 0, !0)
|
|
2570
2612
|
]),
|
|
2571
2613
|
_: 2
|
|
2572
2614
|
}, [
|
|
2573
|
-
i(
|
|
2615
|
+
i(c) ? {
|
|
2574
2616
|
name: "label-tooltip",
|
|
2575
2617
|
fn: k(() => [
|
|
2576
|
-
P(a.$slots, `${
|
|
2618
|
+
P(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2577
2619
|
]),
|
|
2578
2620
|
key: "0"
|
|
2579
2621
|
} : void 0
|
|
2580
2622
|
]), 1032, ["item"]))), 128))
|
|
2581
2623
|
], 10, Ro))), 128))
|
|
2582
|
-
])) :
|
|
2624
|
+
])) : D("", !0),
|
|
2583
2625
|
e.format === "json" && o.value ? (p(), M(zt, {
|
|
2584
2626
|
key: 1,
|
|
2585
2627
|
config: t.config,
|
|
2586
2628
|
"entity-record": o.value,
|
|
2587
2629
|
"fetcher-url": t.fetcherUrl,
|
|
2588
2630
|
"request-method": "get"
|
|
2589
|
-
}, null, 8, ["config", "entity-record", "fetcher-url"])) :
|
|
2590
|
-
e.format === "yaml" && o.value ? (p(), M(
|
|
2631
|
+
}, null, 8, ["config", "entity-record", "fetcher-url"])) : D("", !0),
|
|
2632
|
+
e.format === "yaml" && o.value ? (p(), M(jn, {
|
|
2591
2633
|
key: 2,
|
|
2592
2634
|
"entity-record": o.value
|
|
2593
|
-
}, null, 8, ["entity-record"])) :
|
|
2594
|
-
e.format === "terraform" && o.value ? (p(), M(
|
|
2635
|
+
}, null, 8, ["entity-record"])) : D("", !0),
|
|
2636
|
+
e.format === "terraform" && o.value ? (p(), M(Dn, {
|
|
2595
2637
|
key: 3,
|
|
2596
2638
|
"entity-record": o.value,
|
|
2597
2639
|
"entity-type": t.entityType
|
|
2598
|
-
}, null, 8, ["entity-record", "entity-type"])) :
|
|
2640
|
+
}, null, 8, ["entity-record", "entity-type"])) : D("", !0)
|
|
2599
2641
|
], 64));
|
|
2600
2642
|
}
|
|
2601
2643
|
}), No = /* @__PURE__ */ ae(Ko, [["__scopeId", "data-v-d67757a9"]]), Mo = {
|
|
2602
2644
|
class: "config-card-title",
|
|
2603
2645
|
"data-testid": "config-card-title"
|
|
2604
|
-
},
|
|
2646
|
+
}, jo = { class: "config-card-actions" }, Do = ["href"], Uo = { class: "config-card-details-section" }, Po = /* @__PURE__ */ J({
|
|
2605
2647
|
__name: "EntityBaseConfigCard",
|
|
2606
2648
|
props: {
|
|
2607
2649
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2707,7 +2749,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2707
2749
|
var S;
|
|
2708
2750
|
const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
|
|
2709
2751
|
Y.useSubSchema(r.pluginConfigKey);
|
|
2710
|
-
const { axiosInstance: l } = Y.useAxios((S = r.config) == null ? void 0 : S.axiosRequestConfig),
|
|
2752
|
+
const { axiosInstance: l } = Y.useAxios((S = r.config) == null ? void 0 : S.axiosRequestConfig), s = [
|
|
2711
2753
|
{
|
|
2712
2754
|
label: i("baseConfigCard.general.structuredFormat"),
|
|
2713
2755
|
value: "structured",
|
|
@@ -2722,12 +2764,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2722
2764
|
value: "yaml"
|
|
2723
2765
|
}
|
|
2724
2766
|
];
|
|
2725
|
-
r.config.app === "konnect" &&
|
|
2767
|
+
r.config.app === "konnect" && s.splice(2, 0, {
|
|
2726
2768
|
label: i("baseForm.configuration.terraform"),
|
|
2727
2769
|
value: "terraform"
|
|
2728
2770
|
});
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2771
|
+
const c = L("structured"), d = (g) => {
|
|
2772
|
+
c.value = g == null ? void 0 : g.value;
|
|
2731
2773
|
}, u = {
|
|
2732
2774
|
id: {
|
|
2733
2775
|
type: H.ID,
|
|
@@ -2782,8 +2824,8 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2782
2824
|
return g.sort(function(K, O) {
|
|
2783
2825
|
return K[1] - O[1];
|
|
2784
2826
|
}), g.map((K) => {
|
|
2785
|
-
var Ie,
|
|
2786
|
-
const O = K[0], W = (Ie = y.value) == null ? void 0 : Ie[O], V = ((
|
|
2827
|
+
var Ie, ct;
|
|
2828
|
+
const O = K[0], W = (Ie = y.value) == null ? void 0 : Ie[O], V = ((ct = r.configSchema) == null ? void 0 : ct[O]) || {}, G = u[O];
|
|
2787
2829
|
return {
|
|
2788
2830
|
key: O,
|
|
2789
2831
|
value: W,
|
|
@@ -2862,9 +2904,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2862
2904
|
"title-tag": e.titleTag
|
|
2863
2905
|
}, Ce({
|
|
2864
2906
|
actions: k(() => [
|
|
2865
|
-
N("div",
|
|
2907
|
+
N("div", jo, [
|
|
2866
2908
|
P(g.$slots, "actions", {}, void 0, !0),
|
|
2867
|
-
|
|
2909
|
+
j(h, {
|
|
2868
2910
|
class: "config-format-select-label",
|
|
2869
2911
|
"data-testid": "config-format-select-label"
|
|
2870
2912
|
}, {
|
|
@@ -2873,9 +2915,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2873
2915
|
]),
|
|
2874
2916
|
_: 1
|
|
2875
2917
|
}),
|
|
2876
|
-
|
|
2918
|
+
j(x, {
|
|
2877
2919
|
"data-testid": "select-config-format",
|
|
2878
|
-
items:
|
|
2920
|
+
items: s,
|
|
2879
2921
|
onChange: d
|
|
2880
2922
|
}),
|
|
2881
2923
|
e.configCardDoc ? (p(), M(B, {
|
|
@@ -2890,11 +2932,11 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2890
2932
|
rel: "noopener",
|
|
2891
2933
|
target: "_blank"
|
|
2892
2934
|
}, [
|
|
2893
|
-
|
|
2894
|
-
], 8,
|
|
2935
|
+
j(A(Ut), { size: A(Gr) }, null, 8, ["size"])
|
|
2936
|
+
], 8, Do)
|
|
2895
2937
|
]),
|
|
2896
2938
|
_: 1
|
|
2897
|
-
})) :
|
|
2939
|
+
})) : D("", !0)
|
|
2898
2940
|
])
|
|
2899
2941
|
]),
|
|
2900
2942
|
default: k(() => [
|
|
@@ -2912,14 +2954,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2912
2954
|
N("h3", null, E(v.value), 1)
|
|
2913
2955
|
]),
|
|
2914
2956
|
_: 1
|
|
2915
|
-
})) :
|
|
2957
|
+
})) : D("", !0),
|
|
2916
2958
|
N("div", Uo, [
|
|
2917
|
-
|
|
2959
|
+
j(No, {
|
|
2918
2960
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
2919
2961
|
config: e.config,
|
|
2920
2962
|
"entity-type": e.entityType,
|
|
2921
2963
|
"fetcher-url": F.value,
|
|
2922
|
-
format:
|
|
2964
|
+
format: c.value,
|
|
2923
2965
|
"prop-list-types": R.value,
|
|
2924
2966
|
"property-collections": b.value,
|
|
2925
2967
|
record: y.value
|
|
@@ -2952,7 +2994,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2952
2994
|
]), 1032, ["title-tag"]);
|
|
2953
2995
|
};
|
|
2954
2996
|
}
|
|
2955
|
-
}),
|
|
2997
|
+
}), es = /* @__PURE__ */ ae(Po, [["__scopeId", "data-v-be491a0e"]]), qo = ["novalidate"], Ho = {
|
|
2956
2998
|
class: "form-actions",
|
|
2957
2999
|
"data-testid": "form-actions"
|
|
2958
3000
|
}, Yo = /* @__PURE__ */ J({
|
|
@@ -3045,7 +3087,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3045
3087
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3046
3088
|
setup(e, { emit: t }) {
|
|
3047
3089
|
var F;
|
|
3048
|
-
const n = t, r = e, i = nr(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig),
|
|
3090
|
+
const n = t, r = e, i = nr(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig), s = L(!1), c = T(() => !!r.editId), d = L(!1), u = L(""), m = T(() => r.canSubmit === !1 || r.isReadonly), f = L(!1), v = T(() => {
|
|
3049
3091
|
var g, $;
|
|
3050
3092
|
let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3051
3093
|
return r.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, ($ = r.config) != null && $.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
|
|
@@ -3070,25 +3112,25 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3070
3112
|
return r.config.app === "konnect" && r.entityType !== tt.Other && R.value.splice(1, 0, {
|
|
3071
3113
|
title: o("baseForm.configuration.terraform"),
|
|
3072
3114
|
hash: "#terraform"
|
|
3073
|
-
}), Ae(() =>
|
|
3115
|
+
}), Ae(() => s.value, (S) => {
|
|
3074
3116
|
n("loading", S);
|
|
3075
3117
|
}, { immediate: !0 }), et(async () => {
|
|
3076
3118
|
if (r.editId)
|
|
3077
3119
|
try {
|
|
3078
|
-
d.value = !1,
|
|
3120
|
+
d.value = !1, s.value = !0;
|
|
3079
3121
|
const { data: S } = await l.get(v.value);
|
|
3080
3122
|
n("fetch:success", S);
|
|
3081
3123
|
} catch (S) {
|
|
3082
3124
|
const g = a(S);
|
|
3083
3125
|
u.value = g.startsWith("code") ? o("baseForm.errors.edit") : g, d.value = !0, n("fetch:error", S);
|
|
3084
3126
|
} finally {
|
|
3085
|
-
|
|
3127
|
+
s.value = !1;
|
|
3086
3128
|
}
|
|
3087
3129
|
}), (S, g) => {
|
|
3088
3130
|
const $ = U("KSkeleton"), h = U("KEmptyState"), x = U("KAlert"), B = U("KButton"), K = U("KTabs"), O = U("KSlideout");
|
|
3089
3131
|
return p(), M(Ne(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3090
3132
|
default: k(() => [
|
|
3091
|
-
|
|
3133
|
+
s.value ? (p(), M($, {
|
|
3092
3134
|
key: 0,
|
|
3093
3135
|
type: "form"
|
|
3094
3136
|
})) : d.value ? (p(), M(h, {
|
|
@@ -3115,16 +3157,16 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3115
3157
|
appearance: "danger",
|
|
3116
3158
|
"data-testid": "form-error",
|
|
3117
3159
|
message: e.errorMessage
|
|
3118
|
-
}, null, 8, ["message"])) :
|
|
3119
|
-
(p(), M(
|
|
3160
|
+
}, null, 8, ["message"])) : D("", !0),
|
|
3161
|
+
(p(), M(Dt, {
|
|
3120
3162
|
disabled: !e.actionTeleportTarget,
|
|
3121
3163
|
to: e.actionTeleportTarget
|
|
3122
3164
|
}, [
|
|
3123
3165
|
N("div", Ho, [
|
|
3124
3166
|
P(S.$slots, "form-actions", {}, () => [
|
|
3125
|
-
|
|
3167
|
+
j(B, {
|
|
3126
3168
|
appearance: "tertiary",
|
|
3127
|
-
"data-testid": `${e.entityType}-${
|
|
3169
|
+
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-view-configuration`,
|
|
3128
3170
|
onClick: g[0] || (g[0] = (W) => y())
|
|
3129
3171
|
}, {
|
|
3130
3172
|
default: k(() => [
|
|
@@ -3132,9 +3174,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3132
3174
|
]),
|
|
3133
3175
|
_: 1
|
|
3134
3176
|
}, 8, ["data-testid"]),
|
|
3135
|
-
|
|
3177
|
+
j(B, {
|
|
3136
3178
|
appearance: "secondary",
|
|
3137
|
-
"data-testid": `${e.entityType}-${
|
|
3179
|
+
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-cancel`,
|
|
3138
3180
|
disabled: e.isReadonly,
|
|
3139
3181
|
type: "reset",
|
|
3140
3182
|
onClick: g[1] || (g[1] = (W) => !!e.actionTeleportTarget && I())
|
|
@@ -3144,9 +3186,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3144
3186
|
]),
|
|
3145
3187
|
_: 1
|
|
3146
3188
|
}, 8, ["data-testid", "disabled"]),
|
|
3147
|
-
|
|
3189
|
+
j(B, {
|
|
3148
3190
|
appearance: "primary",
|
|
3149
|
-
"data-testid": `${e.entityType}-${
|
|
3191
|
+
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-submit`,
|
|
3150
3192
|
disabled: m.value,
|
|
3151
3193
|
type: "submit",
|
|
3152
3194
|
onClick: g[2] || (g[2] = (W) => !!e.actionTeleportTarget && b())
|
|
@@ -3160,7 +3202,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3160
3202
|
])
|
|
3161
3203
|
], 8, ["disabled", "to"]))
|
|
3162
3204
|
], 40, qo)),
|
|
3163
|
-
|
|
3205
|
+
j(O, {
|
|
3164
3206
|
"close-on-blur": !1,
|
|
3165
3207
|
"data-testid": "form-view-configuration-slideout",
|
|
3166
3208
|
"has-overlay": !1,
|
|
@@ -3171,12 +3213,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3171
3213
|
}, {
|
|
3172
3214
|
default: k(() => [
|
|
3173
3215
|
N("div", null, E(A(o)("baseForm.configuration.message")), 1),
|
|
3174
|
-
|
|
3216
|
+
j(K, {
|
|
3175
3217
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3176
3218
|
tabs: R.value
|
|
3177
3219
|
}, {
|
|
3178
3220
|
json: k(() => [
|
|
3179
|
-
|
|
3221
|
+
j(zt, {
|
|
3180
3222
|
config: e.config,
|
|
3181
3223
|
"entity-record": r.formFields,
|
|
3182
3224
|
"fetcher-url": v.value,
|
|
@@ -3184,12 +3226,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3184
3226
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3185
3227
|
]),
|
|
3186
3228
|
yaml: k(() => [
|
|
3187
|
-
|
|
3229
|
+
j(jn, {
|
|
3188
3230
|
"entity-record": r.formFields
|
|
3189
3231
|
}, null, 8, ["entity-record"])
|
|
3190
3232
|
]),
|
|
3191
3233
|
terraform: k(() => [
|
|
3192
|
-
|
|
3234
|
+
j(Dn, {
|
|
3193
3235
|
"entity-record": r.formFields,
|
|
3194
3236
|
"entity-type": e.entityType
|
|
3195
3237
|
}, null, 8, ["entity-record", "entity-type"])
|
|
@@ -3204,7 +3246,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3204
3246
|
});
|
|
3205
3247
|
};
|
|
3206
3248
|
}
|
|
3207
|
-
}),
|
|
3249
|
+
}), ts = /* @__PURE__ */ ae(Yo, [["__scopeId", "data-v-18af080f"]]), Vo = ["data-truncate"], Wo = /* @__PURE__ */ J({
|
|
3208
3250
|
__name: "EntityBaseTableCell",
|
|
3209
3251
|
props: {
|
|
3210
3252
|
keyName: {
|
|
@@ -3235,21 +3277,21 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3235
3277
|
let a;
|
|
3236
3278
|
const l = () => {
|
|
3237
3279
|
a && (a.disconnect(), a = void 0);
|
|
3238
|
-
},
|
|
3280
|
+
}, s = () => {
|
|
3239
3281
|
var I, b, R;
|
|
3240
3282
|
let C = ((I = n.value) == null ? void 0 : I.clientWidth) || 0;
|
|
3241
3283
|
if (n.value && "getComputedStyle" in window) {
|
|
3242
3284
|
const F = window.getComputedStyle(n.value);
|
|
3243
3285
|
C -= (parseFloat(F.paddingLeft) || 0) + (parseFloat(F.paddingRight) || 0);
|
|
3244
3286
|
}
|
|
3245
|
-
d.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, u.value = C, m.value = ((R =
|
|
3246
|
-
},
|
|
3287
|
+
d.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, u.value = C, m.value = ((R = c.value) == null ? void 0 : R.innerText) || "";
|
|
3288
|
+
}, c = L({}), d = L(0), u = L(0), m = L(""), f = T(() => [r.value, n.value]), v = Ae(
|
|
3247
3289
|
f,
|
|
3248
3290
|
(C) => {
|
|
3249
3291
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
3250
3292
|
a = new ResizeObserver((I) => {
|
|
3251
3293
|
window.requestAnimationFrame(() => {
|
|
3252
|
-
!Array.isArray(I) || !I.length ||
|
|
3294
|
+
!Array.isArray(I) || !I.length || s();
|
|
3253
3295
|
});
|
|
3254
3296
|
});
|
|
3255
3297
|
for (const I of C)
|
|
@@ -3259,21 +3301,21 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3259
3301
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3260
3302
|
), y = T(() => o.value ? d.value > u.value : !1);
|
|
3261
3303
|
return Yn(() => {
|
|
3262
|
-
|
|
3304
|
+
s();
|
|
3263
3305
|
}), Vn(() => {
|
|
3264
3306
|
v();
|
|
3265
3307
|
}), (C, I) => {
|
|
3266
3308
|
const b = U("KTooltip");
|
|
3267
3309
|
return p(), _("span", {
|
|
3268
3310
|
ref_key: "contentRef",
|
|
3269
|
-
ref:
|
|
3311
|
+
ref: c,
|
|
3270
3312
|
class: "content-wrapper"
|
|
3271
3313
|
}, [
|
|
3272
3314
|
o.value ? (p(), _("span", {
|
|
3273
3315
|
key: 0,
|
|
3274
3316
|
"data-truncate": o.value || void 0
|
|
3275
3317
|
}, [
|
|
3276
|
-
|
|
3318
|
+
j(b, {
|
|
3277
3319
|
"max-width": "300",
|
|
3278
3320
|
placement: "bottom-start",
|
|
3279
3321
|
text: y.value ? m.value : ""
|
|
@@ -3447,13 +3489,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3447
3489
|
key: "actions",
|
|
3448
3490
|
hideLabel: !0
|
|
3449
3491
|
}), h;
|
|
3450
|
-
}),
|
|
3492
|
+
}), s = (h) => ({
|
|
3451
3493
|
"data-rowid": h.id,
|
|
3452
3494
|
"data-testid": h.name,
|
|
3453
3495
|
...n.rowAttributes(h)
|
|
3454
|
-
}),
|
|
3496
|
+
}), c = L({}), d = (h) => {
|
|
3455
3497
|
var x;
|
|
3456
|
-
return (x =
|
|
3498
|
+
return (x = c.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${h.id}"]`);
|
|
3457
3499
|
}, u = (h) => {
|
|
3458
3500
|
const x = {
|
|
3459
3501
|
"data-testid": h.headerKey,
|
|
@@ -3474,7 +3516,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3474
3516
|
r("click:row", x);
|
|
3475
3517
|
}), C = (h) => {
|
|
3476
3518
|
r("sort", h);
|
|
3477
|
-
}, { hideTableToolbar: I, handleStateChange: b } = Y.useTableState(() => n.query), { setTablePreferences: R, getTablePreferences: F } =
|
|
3519
|
+
}, { hideTableToolbar: I, handleStateChange: b } = Y.useTableState(() => n.query), { setTablePreferences: R, getTablePreferences: F } = sr(), S = L(F(a.value, n.defaultTablePreferences)), g = T(() => {
|
|
3478
3520
|
const h = F(a.value);
|
|
3479
3521
|
return {
|
|
3480
3522
|
...n.initialFetcherParams,
|
|
@@ -3493,9 +3535,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3493
3535
|
"title-tag": e.titleTag
|
|
3494
3536
|
}, {
|
|
3495
3537
|
default: k(() => [
|
|
3496
|
-
|
|
3538
|
+
j(B, {
|
|
3497
3539
|
ref_key: "tableRefs",
|
|
3498
|
-
ref:
|
|
3540
|
+
ref: c,
|
|
3499
3541
|
"cache-identifier": a.value,
|
|
3500
3542
|
"cell-attrs": u,
|
|
3501
3543
|
"client-sort": e.enableClientSort,
|
|
@@ -3517,7 +3559,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3517
3559
|
loading: e.isLoading,
|
|
3518
3560
|
"pagination-attributes": { disablePageJump: e.disablePaginationPageJump, offset: e.paginationType === "offset" },
|
|
3519
3561
|
"resize-columns": "",
|
|
3520
|
-
"row-attrs":
|
|
3562
|
+
"row-attrs": s,
|
|
3521
3563
|
"row-key": e.rowKey,
|
|
3522
3564
|
"search-input": e.query,
|
|
3523
3565
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
@@ -3534,7 +3576,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3534
3576
|
P(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3535
3577
|
h.$slots["toolbar-button"] ? (p(), _("div", zo, [
|
|
3536
3578
|
P(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3537
|
-
])) :
|
|
3579
|
+
])) : D("", !0)
|
|
3538
3580
|
])
|
|
3539
3581
|
]),
|
|
3540
3582
|
"action-items": k(({ row: O }) => [
|
|
@@ -3552,7 +3594,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3552
3594
|
oe(e.tableHeaders, (O, W) => ({
|
|
3553
3595
|
name: W,
|
|
3554
3596
|
fn: k(({ row: V, rowValue: G }) => [
|
|
3555
|
-
|
|
3597
|
+
j(Jo, {
|
|
3556
3598
|
"key-name": String(W),
|
|
3557
3599
|
"row-el": d(V),
|
|
3558
3600
|
tooltip: O.tooltip
|
|
@@ -3573,20 +3615,20 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3573
3615
|
e.query ? void 0 : {
|
|
3574
3616
|
name: "empty-state-action-icon",
|
|
3575
3617
|
fn: k(() => [
|
|
3576
|
-
|
|
3618
|
+
j(A(Pt))
|
|
3577
3619
|
]),
|
|
3578
3620
|
key: "1"
|
|
3579
3621
|
}
|
|
3580
3622
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3581
3623
|
h.$slots["outside-actions"] && A(I) ? (p(), _("div", Qo, [
|
|
3582
3624
|
P(h.$slots, "outside-actions", {}, void 0, !0)
|
|
3583
|
-
])) :
|
|
3625
|
+
])) : D("", !0)
|
|
3584
3626
|
]),
|
|
3585
3627
|
_: 3
|
|
3586
3628
|
}, 8, ["title", "title-tag"]);
|
|
3587
3629
|
};
|
|
3588
3630
|
}
|
|
3589
|
-
}),
|
|
3631
|
+
}), ns = /* @__PURE__ */ ae(Zo, [["__scopeId", "data-v-d58db70c"]]), Xo = {
|
|
3590
3632
|
key: 0,
|
|
3591
3633
|
class: "kong-ui-entity-delete-error"
|
|
3592
3634
|
}, el = {
|
|
@@ -3636,7 +3678,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3636
3678
|
}, l = () => {
|
|
3637
3679
|
i("proceed");
|
|
3638
3680
|
};
|
|
3639
|
-
return (
|
|
3681
|
+
return (s, c) => {
|
|
3640
3682
|
const d = U("KAlert"), u = U("KPrompt");
|
|
3641
3683
|
return p(), M(u, {
|
|
3642
3684
|
"action-button-appearance": "danger",
|
|
@@ -3651,14 +3693,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3651
3693
|
}, {
|
|
3652
3694
|
default: k(() => [
|
|
3653
3695
|
e.error ? (p(), _("div", Xo, [
|
|
3654
|
-
|
|
3696
|
+
j(d, { appearance: "danger" }, {
|
|
3655
3697
|
default: k(() => [
|
|
3656
3698
|
q(E(e.error), 1)
|
|
3657
3699
|
]),
|
|
3658
3700
|
_: 1
|
|
3659
3701
|
})
|
|
3660
|
-
])) :
|
|
3661
|
-
|
|
3702
|
+
])) : D("", !0),
|
|
3703
|
+
j(A(n), {
|
|
3662
3704
|
class: "message",
|
|
3663
3705
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3664
3706
|
tag: "p"
|
|
@@ -3676,17 +3718,17 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3676
3718
|
key: "0"
|
|
3677
3719
|
} : void 0
|
|
3678
3720
|
]), 1032, ["keypath"]),
|
|
3679
|
-
r.description ||
|
|
3680
|
-
P(
|
|
3721
|
+
r.description || s.$slots.description ? (p(), _("div", el, [
|
|
3722
|
+
P(s.$slots, "description", {}, () => [
|
|
3681
3723
|
N("p", null, E(r.description), 1)
|
|
3682
3724
|
], !0)
|
|
3683
|
-
])) :
|
|
3725
|
+
])) : D("", !0)
|
|
3684
3726
|
]),
|
|
3685
3727
|
_: 3
|
|
3686
3728
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3687
3729
|
};
|
|
3688
3730
|
}
|
|
3689
|
-
}),
|
|
3731
|
+
}), rs = /* @__PURE__ */ ae(tl, [["__scopeId", "data-v-4361d622"]]), nl = {
|
|
3690
3732
|
fill: "none",
|
|
3691
3733
|
height: "20",
|
|
3692
3734
|
viewBox: "0 0 20 20",
|
|
@@ -3728,7 +3770,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3728
3770
|
}), ll = {
|
|
3729
3771
|
key: 1,
|
|
3730
3772
|
class: "kong-ui-entity-filter"
|
|
3731
|
-
},
|
|
3773
|
+
}, sl = { class: "kong-ui-entity-filter-menu" }, cl = ["data-testid"], ul = ["onClick", "onKeydown"], dl = { class: "menu-item-indicator" }, fl = { class: "menu-item-body" }, pl = ["for"], ml = { class: "menu-item-buttons" }, hl = { class: "filter-clear-button-container" }, gl = /* @__PURE__ */ J({
|
|
3732
3774
|
__name: "EntityFilter",
|
|
3733
3775
|
props: {
|
|
3734
3776
|
// filter config, either exact match or fuzzy match
|
|
@@ -3748,12 +3790,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3748
3790
|
},
|
|
3749
3791
|
emits: ["update:modelValue"],
|
|
3750
3792
|
setup(e, { emit: t }) {
|
|
3751
|
-
const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, o = L(!1), a = L({}), l = L(/* @__PURE__ */ new Set()),
|
|
3793
|
+
const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, o = L(!1), a = L({}), l = L(/* @__PURE__ */ new Set()), s = T(() => {
|
|
3752
3794
|
const F = [];
|
|
3753
3795
|
return new URLSearchParams(r.modelValue).forEach((S, g) => {
|
|
3754
3796
|
S !== "" && F.push(g);
|
|
3755
3797
|
}), F;
|
|
3756
|
-
}),
|
|
3798
|
+
}), c = T(() => {
|
|
3757
3799
|
const F = r.config.fields;
|
|
3758
3800
|
return Object.keys(F).filter((S) => {
|
|
3759
3801
|
var g;
|
|
@@ -3809,10 +3851,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3809
3851
|
"onUpdate:modelValue": m
|
|
3810
3852
|
}, {
|
|
3811
3853
|
before: k(() => [
|
|
3812
|
-
|
|
3854
|
+
j(Bt)
|
|
3813
3855
|
]),
|
|
3814
3856
|
after: k(() => [
|
|
3815
|
-
he(
|
|
3857
|
+
he(j(A(Xn), {
|
|
3816
3858
|
class: "kong-ui-entity-filter-clear",
|
|
3817
3859
|
role: "button",
|
|
3818
3860
|
tabindex: "0",
|
|
@@ -3823,14 +3865,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3823
3865
|
]),
|
|
3824
3866
|
_: 1
|
|
3825
3867
|
}, 8, ["model-value", "placeholder"])) : (p(), _("div", ll, [
|
|
3826
|
-
|
|
3868
|
+
j($, {
|
|
3827
3869
|
appearance: "tertiary",
|
|
3828
3870
|
"data-testid": "filter-button",
|
|
3829
3871
|
onClick: d
|
|
3830
3872
|
}, {
|
|
3831
3873
|
default: k(() => [
|
|
3832
|
-
|
|
3833
|
-
q(" " + E(A(n)("filter.filterButtonText")) + " " + E(
|
|
3874
|
+
j(Bt),
|
|
3875
|
+
q(" " + E(A(n)("filter.filterButtonText")) + " " + E(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3834
3876
|
]),
|
|
3835
3877
|
_: 1
|
|
3836
3878
|
}),
|
|
@@ -3840,8 +3882,8 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3840
3882
|
}, null, 512), [
|
|
3841
3883
|
[ge, o.value]
|
|
3842
3884
|
]),
|
|
3843
|
-
he(N("div",
|
|
3844
|
-
(p(!0), _(le, null, oe(
|
|
3885
|
+
he(N("div", sl, [
|
|
3886
|
+
(p(!0), _(le, null, oe(c.value, (x) => {
|
|
3845
3887
|
var B, K;
|
|
3846
3888
|
return p(), _("div", {
|
|
3847
3889
|
key: x.value,
|
|
@@ -3849,7 +3891,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3849
3891
|
"data-testid": x.value
|
|
3850
3892
|
}, [
|
|
3851
3893
|
N("span", {
|
|
3852
|
-
class:
|
|
3894
|
+
class: ce(["menu-item-title", { expanded: l.value.has(x.value) }]),
|
|
3853
3895
|
role: "button",
|
|
3854
3896
|
tabindex: "0",
|
|
3855
3897
|
onClick: (O) => u(x.value),
|
|
@@ -3857,10 +3899,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3857
3899
|
}, [
|
|
3858
3900
|
q(E(x.label) + " ", 1),
|
|
3859
3901
|
he(N("span", dl, null, 512), [
|
|
3860
|
-
[ge,
|
|
3902
|
+
[ge, s.value.includes(x.value)]
|
|
3861
3903
|
]),
|
|
3862
|
-
|
|
3863
|
-
class:
|
|
3904
|
+
j(A(er), {
|
|
3905
|
+
class: ce(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
|
|
3864
3906
|
color: A(Yr)
|
|
3865
3907
|
}, null, 8, ["class", "color"])
|
|
3866
3908
|
], 42, ul),
|
|
@@ -3889,7 +3931,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3889
3931
|
[ge, l.value.has(x.value)]
|
|
3890
3932
|
]),
|
|
3891
3933
|
he(N("div", ml, [
|
|
3892
|
-
|
|
3934
|
+
j($, {
|
|
3893
3935
|
appearance: "tertiary",
|
|
3894
3936
|
"data-testid": "apply-filter",
|
|
3895
3937
|
size: "small",
|
|
@@ -3900,7 +3942,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3900
3942
|
]),
|
|
3901
3943
|
_: 1
|
|
3902
3944
|
}),
|
|
3903
|
-
|
|
3945
|
+
j($, {
|
|
3904
3946
|
appearance: "tertiary",
|
|
3905
3947
|
"data-testid": "clear-filter",
|
|
3906
3948
|
size: "small",
|
|
@@ -3914,10 +3956,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3914
3956
|
], 512), [
|
|
3915
3957
|
[ge, l.value.has(x.value)]
|
|
3916
3958
|
])
|
|
3917
|
-
], 8,
|
|
3959
|
+
], 8, cl);
|
|
3918
3960
|
}), 128)),
|
|
3919
3961
|
N("div", hl, [
|
|
3920
|
-
|
|
3962
|
+
j($, {
|
|
3921
3963
|
appearance: "tertiary",
|
|
3922
3964
|
size: "small",
|
|
3923
3965
|
onClick: b
|
|
@@ -3934,7 +3976,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3934
3976
|
]));
|
|
3935
3977
|
};
|
|
3936
3978
|
}
|
|
3937
|
-
}),
|
|
3979
|
+
}), is = /* @__PURE__ */ ae(gl, [["__scopeId", "data-v-10fa27a5"]]), as = /* @__PURE__ */ J({
|
|
3938
3980
|
__name: "EntityToggleModal",
|
|
3939
3981
|
props: {
|
|
3940
3982
|
visible: {
|
|
@@ -3968,9 +4010,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3968
4010
|
setup(e, { emit: t }) {
|
|
3969
4011
|
const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, o = t, a = L(!1), l = T(
|
|
3970
4012
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
3971
|
-
),
|
|
4013
|
+
), s = T(
|
|
3972
4014
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
3973
|
-
),
|
|
4015
|
+
), c = () => o("cancel"), d = async () => {
|
|
3974
4016
|
if (i.onConfirm) {
|
|
3975
4017
|
a.value = !0;
|
|
3976
4018
|
try {
|
|
@@ -3984,18 +4026,18 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3984
4026
|
};
|
|
3985
4027
|
return (u, m) => {
|
|
3986
4028
|
const f = U("KPrompt");
|
|
3987
|
-
return p(), M(
|
|
3988
|
-
|
|
4029
|
+
return p(), M(Dt, { to: "body" }, [
|
|
4030
|
+
j(f, {
|
|
3989
4031
|
"action-button-disabled": a.value,
|
|
3990
|
-
"action-button-text":
|
|
4032
|
+
"action-button-text": s.value,
|
|
3991
4033
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
3992
4034
|
title: l.value,
|
|
3993
4035
|
visible: e.visible,
|
|
3994
|
-
onCancel:
|
|
4036
|
+
onCancel: c,
|
|
3995
4037
|
onProceed: d
|
|
3996
4038
|
}, {
|
|
3997
4039
|
default: k(() => [
|
|
3998
|
-
|
|
4040
|
+
j(A(r), {
|
|
3999
4041
|
keypath: `toggleModal.${i.action}.message`,
|
|
4000
4042
|
scope: "global"
|
|
4001
4043
|
}, {
|
|
@@ -4013,7 +4055,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
4013
4055
|
]);
|
|
4014
4056
|
};
|
|
4015
4057
|
}
|
|
4016
|
-
}),
|
|
4058
|
+
}), os = /* @__PURE__ */ J({
|
|
4017
4059
|
__name: "PermissionsWrapper",
|
|
4018
4060
|
props: {
|
|
4019
4061
|
/**
|
|
@@ -4041,7 +4083,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
4041
4083
|
}, { immediate: !0 }), (i, o) => r.value ? P(i.$slots, "default", {
|
|
4042
4084
|
key: 0,
|
|
4043
4085
|
isAllowed: n.value
|
|
4044
|
-
}) :
|
|
4086
|
+
}) : D("", !0);
|
|
4045
4087
|
}
|
|
4046
4088
|
});
|
|
4047
4089
|
var Z = [];
|
|
@@ -4105,13 +4147,13 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4105
4147
|
const t = Xe(), n = Cl();
|
|
4106
4148
|
return (r, i) => (p(), _("div", {
|
|
4107
4149
|
"aria-labelledby": e.title ? A(n) : void 0,
|
|
4108
|
-
class:
|
|
4150
|
+
class: ce(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4109
4151
|
role: "group"
|
|
4110
4152
|
}, [
|
|
4111
4153
|
N("div", Al, [
|
|
4112
|
-
e.hideInfoHeader ?
|
|
4154
|
+
e.hideInfoHeader ? D("", !0) : (p(), _("div", {
|
|
4113
4155
|
key: 0,
|
|
4114
|
-
class:
|
|
4156
|
+
class: ce(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4115
4157
|
}, [
|
|
4116
4158
|
e.title ? (p(), M(Ne(e.titleTag), {
|
|
4117
4159
|
key: 0,
|
|
@@ -4122,15 +4164,15 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4122
4164
|
q(E(e.title), 1)
|
|
4123
4165
|
]),
|
|
4124
4166
|
_: 1
|
|
4125
|
-
}, 8, ["id"])) :
|
|
4167
|
+
}, 8, ["id"])) : D("", !0),
|
|
4126
4168
|
e.description || A(t).description ? (p(), _("div", wl, [
|
|
4127
4169
|
P(r.$slots, "description", {}, () => [
|
|
4128
4170
|
N("p", null, E(e.description), 1)
|
|
4129
4171
|
], !0)
|
|
4130
|
-
])) :
|
|
4172
|
+
])) : D("", !0),
|
|
4131
4173
|
A(t).footer ? (p(), _("div", _l, [
|
|
4132
4174
|
P(r.$slots, "footer", {}, void 0, !0)
|
|
4133
|
-
])) :
|
|
4175
|
+
])) : D("", !0)
|
|
4134
4176
|
], 2)),
|
|
4135
4177
|
N("div", Sl, [
|
|
4136
4178
|
P(r.$slots, "default", {}, void 0, !0)
|
|
@@ -4138,7 +4180,7 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4138
4180
|
])
|
|
4139
4181
|
], 10, kl));
|
|
4140
4182
|
}
|
|
4141
|
-
}),
|
|
4183
|
+
}), ls = /* @__PURE__ */ ae($l, [["__scopeId", "data-v-b1f74200"]]), Tl = {
|
|
4142
4184
|
class: "kong-ui-public-entity-link",
|
|
4143
4185
|
"data-testid": "entity-link-parent"
|
|
4144
4186
|
}, Il = {
|
|
@@ -4168,21 +4210,21 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4168
4210
|
}
|
|
4169
4211
|
},
|
|
4170
4212
|
setup(e) {
|
|
4171
|
-
const t = e, n = L(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), o = i("global.actions.copyId"), a = L(o), l = T(() => t.entityLinkData.deleted ?? !1),
|
|
4213
|
+
const t = e, n = L(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), o = i("global.actions.copyId"), a = L(o), l = T(() => t.entityLinkData.deleted ?? !1), s = T(() => {
|
|
4172
4214
|
var u;
|
|
4173
4215
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4174
|
-
}),
|
|
4216
|
+
}), c = T(() => {
|
|
4175
4217
|
var u;
|
|
4176
|
-
return `${(u =
|
|
4218
|
+
return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4177
4219
|
}), d = async (u) => {
|
|
4178
|
-
await u(
|
|
4220
|
+
await u(s.value || "") && (a.value = i("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4179
4221
|
a.value = o;
|
|
4180
4222
|
}, 1800));
|
|
4181
4223
|
};
|
|
4182
4224
|
return (u, m) => {
|
|
4183
4225
|
const f = U("KTooltip"), v = U("KExternalLink"), y = U("KClipboardProvider");
|
|
4184
4226
|
return p(), _("div", Tl, [
|
|
4185
|
-
l.value ? (p(), _("div", Il, E(
|
|
4227
|
+
l.value ? (p(), _("div", Il, E(c.value), 1)) : s.value ? s.value ? (p(), M(v, {
|
|
4186
4228
|
key: 2,
|
|
4187
4229
|
class: "entity-link",
|
|
4188
4230
|
"hide-icon": !e.newWindow,
|
|
@@ -4190,7 +4232,7 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4190
4232
|
target: e.newWindow ? "_blank" : "_self"
|
|
4191
4233
|
}, {
|
|
4192
4234
|
default: k(() => [
|
|
4193
|
-
|
|
4235
|
+
j(f, {
|
|
4194
4236
|
text: A(r) && e.entityLinkData.label || ""
|
|
4195
4237
|
}, {
|
|
4196
4238
|
default: k(() => [
|
|
@@ -4204,8 +4246,8 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4204
4246
|
}, 8, ["text"])
|
|
4205
4247
|
]),
|
|
4206
4248
|
_: 1
|
|
4207
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4208
|
-
|
|
4249
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (p(), _("div", El, E(" – "))),
|
|
4250
|
+
s.value && e.allowCopy ? (p(), M(f, {
|
|
4209
4251
|
key: a.value,
|
|
4210
4252
|
class: "copy-uuid-tooltip",
|
|
4211
4253
|
"max-width": "160",
|
|
@@ -4213,13 +4255,13 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4213
4255
|
text: a.value
|
|
4214
4256
|
}, {
|
|
4215
4257
|
default: k(() => [
|
|
4216
|
-
|
|
4258
|
+
j(y, null, {
|
|
4217
4259
|
default: k(({ copyToClipboard: C }) => [
|
|
4218
4260
|
N("span", {
|
|
4219
4261
|
class: "entity-link-copy-id",
|
|
4220
4262
|
onClick: Fe((I) => d(C), ["stop"])
|
|
4221
4263
|
}, [
|
|
4222
|
-
|
|
4264
|
+
j(A(tr), {
|
|
4223
4265
|
class: "copy-icon",
|
|
4224
4266
|
color: A(Vr),
|
|
4225
4267
|
"data-testid": "copy-id",
|
|
@@ -4231,11 +4273,11 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4231
4273
|
})
|
|
4232
4274
|
]),
|
|
4233
4275
|
_: 1
|
|
4234
|
-
}, 8, ["text"])) :
|
|
4276
|
+
}, 8, ["text"])) : D("", !0)
|
|
4235
4277
|
]);
|
|
4236
4278
|
};
|
|
4237
4279
|
}
|
|
4238
|
-
}),
|
|
4280
|
+
}), ss = /* @__PURE__ */ ae(Ol, [["__scopeId", "data-v-6f25ab21"]]), Ll = { class: "kong-ui-public-entity-empty-state" }, Rl = { class: "entity-empty-state-content" }, Bl = {
|
|
4239
4281
|
key: 0,
|
|
4240
4282
|
class: "empty-state-image"
|
|
4241
4283
|
}, Kl = {
|
|
@@ -4247,10 +4289,10 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4247
4289
|
}, Ml = {
|
|
4248
4290
|
key: 3,
|
|
4249
4291
|
class: "entity-empty-state-pricing"
|
|
4250
|
-
},
|
|
4292
|
+
}, jl = {
|
|
4251
4293
|
key: 0,
|
|
4252
4294
|
class: "entity-empty-state-message"
|
|
4253
|
-
},
|
|
4295
|
+
}, Dl = {
|
|
4254
4296
|
key: 1,
|
|
4255
4297
|
class: "entity-empty-state-action"
|
|
4256
4298
|
}, Ul = {
|
|
@@ -4307,26 +4349,26 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4307
4349
|
return et(async () => {
|
|
4308
4350
|
r.value = await t.canCreate();
|
|
4309
4351
|
}), (a, l) => {
|
|
4310
|
-
const
|
|
4352
|
+
const s = U("KCard");
|
|
4311
4353
|
return p(), _("div", Ll, [
|
|
4312
4354
|
N("div", Rl, [
|
|
4313
4355
|
a.$slots.image ? (p(), _("div", Bl, [
|
|
4314
4356
|
P(a.$slots, "image", {}, void 0, !0)
|
|
4315
|
-
])) :
|
|
4357
|
+
])) : D("", !0),
|
|
4316
4358
|
e.title || a.$slots.title ? (p(), _("div", Kl, [
|
|
4317
4359
|
N("h1", {
|
|
4318
|
-
class:
|
|
4360
|
+
class: ce(o.value)
|
|
4319
4361
|
}, [
|
|
4320
4362
|
P(a.$slots, "title", {}, () => [
|
|
4321
4363
|
q(E(e.title), 1)
|
|
4322
4364
|
], !0)
|
|
4323
4365
|
], 2)
|
|
4324
|
-
])) :
|
|
4366
|
+
])) : D("", !0),
|
|
4325
4367
|
e.description || a.$slots.default ? (p(), _("div", Nl, [
|
|
4326
4368
|
P(a.$slots, "default", {}, () => [
|
|
4327
4369
|
N("p", null, E(e.description), 1)
|
|
4328
4370
|
], !0)
|
|
4329
|
-
])) :
|
|
4371
|
+
])) : D("", !0),
|
|
4330
4372
|
e.pricing || a.$slots.pricing ? (p(), _("div", Ml, [
|
|
4331
4373
|
N("p", null, [
|
|
4332
4374
|
N("b", null, E(A(n)("emptyState.pricingTitle")), 1),
|
|
@@ -4335,67 +4377,67 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4335
4377
|
q(E(e.pricing), 1)
|
|
4336
4378
|
], !0)
|
|
4337
4379
|
])
|
|
4338
|
-
])) :
|
|
4380
|
+
])) : D("", !0)
|
|
4339
4381
|
]),
|
|
4340
|
-
a.$slots.message ? (p(), _("div",
|
|
4382
|
+
a.$slots.message ? (p(), _("div", jl, [
|
|
4341
4383
|
P(a.$slots, "message", {}, void 0, !0)
|
|
4342
|
-
])) :
|
|
4343
|
-
i.value || e.learnMore || a.$slots.actions ? (p(), _("div",
|
|
4384
|
+
])) : D("", !0),
|
|
4385
|
+
i.value || e.learnMore || a.$slots.actions ? (p(), _("div", Dl, [
|
|
4344
4386
|
P(a.$slots, "actions", {}, () => [
|
|
4345
4387
|
i.value ? (p(), M(A(dt), {
|
|
4346
4388
|
key: 0,
|
|
4347
4389
|
appearance: "primary",
|
|
4348
4390
|
"data-testid": "entity-create-button",
|
|
4349
4391
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4350
|
-
onClick: l[0] || (l[0] = (
|
|
4392
|
+
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4351
4393
|
}, {
|
|
4352
4394
|
default: k(() => [
|
|
4353
|
-
|
|
4395
|
+
j(A(Pt)),
|
|
4354
4396
|
q(" " + E(e.actionButtonText), 1)
|
|
4355
4397
|
]),
|
|
4356
4398
|
_: 1
|
|
4357
|
-
}, 8, ["size"])) :
|
|
4399
|
+
}, 8, ["size"])) : D("", !0),
|
|
4358
4400
|
e.learnMore ? (p(), M(A(dt), {
|
|
4359
4401
|
key: 1,
|
|
4360
4402
|
appearance: "secondary",
|
|
4361
4403
|
"data-testid": "entity-learn-more-button",
|
|
4362
4404
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4363
|
-
onClick: l[1] || (l[1] = (
|
|
4405
|
+
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4364
4406
|
}, {
|
|
4365
4407
|
default: k(() => [
|
|
4366
|
-
|
|
4408
|
+
j(A(Ut), { decorative: "" }),
|
|
4367
4409
|
q(" " + E(A(n)("emptyState.learnMore")), 1)
|
|
4368
4410
|
]),
|
|
4369
4411
|
_: 1
|
|
4370
|
-
}, 8, ["size"])) :
|
|
4412
|
+
}, 8, ["size"])) : D("", !0)
|
|
4371
4413
|
], !0)
|
|
4372
|
-
])) :
|
|
4414
|
+
])) : D("", !0),
|
|
4373
4415
|
e.features.length ? (p(), _("div", Ul, [
|
|
4374
|
-
(p(!0), _(le, null, oe(e.features, (
|
|
4375
|
-
key:
|
|
4416
|
+
(p(!0), _(le, null, oe(e.features, (c, d) => (p(), M(s, {
|
|
4417
|
+
key: c,
|
|
4376
4418
|
class: "entity-empty-state-card"
|
|
4377
4419
|
}, {
|
|
4378
4420
|
title: k(() => [
|
|
4379
4421
|
a.$slots[`feature-${d}-icon`] ? (p(), _("div", Pl, [
|
|
4380
4422
|
P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4381
|
-
])) :
|
|
4382
|
-
N("div", ql, E(
|
|
4423
|
+
])) : D("", !0),
|
|
4424
|
+
N("div", ql, E(c.title), 1)
|
|
4383
4425
|
]),
|
|
4384
4426
|
default: k(() => [
|
|
4385
4427
|
N("div", {
|
|
4386
|
-
title:
|
|
4387
|
-
}, E(
|
|
4428
|
+
title: c.description
|
|
4429
|
+
}, E(c.description), 9, Hl)
|
|
4388
4430
|
]),
|
|
4389
4431
|
_: 2
|
|
4390
4432
|
}, 1024))), 128))
|
|
4391
|
-
])) :
|
|
4433
|
+
])) : D("", !0),
|
|
4392
4434
|
a.$slots.bottom ? (p(), _("div", Yl, [
|
|
4393
4435
|
P(a.$slots, "bottom", {}, void 0, !0)
|
|
4394
|
-
])) :
|
|
4436
|
+
])) : D("", !0)
|
|
4395
4437
|
]);
|
|
4396
4438
|
};
|
|
4397
4439
|
}
|
|
4398
|
-
}),
|
|
4440
|
+
}), cs = /* @__PURE__ */ ae(Vl, [["__scopeId", "data-v-48ae9c8c"]]), Wl = { key: 1 }, us = /* @__PURE__ */ J({
|
|
4399
4441
|
__name: "TableTags",
|
|
4400
4442
|
props: {
|
|
4401
4443
|
/** The tags to display in the table */
|
|
@@ -4441,46 +4483,46 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, wl = {
|
|
|
4441
4483
|
})) : (p(), _("span", Wl, "-"));
|
|
4442
4484
|
};
|
|
4443
4485
|
}
|
|
4444
|
-
}), { useAxios:
|
|
4486
|
+
}), { useAxios: ds, useDeleteUrlBuilder: fs, useErrors: ps, useExternalLinkCreator: ms, useFetchUrlBuilder: hs, useFetcher: gs, useFetcherCacheKey: ys, useDebouncedFilter: vs, useStringHelpers: bs, useHelpers: xs, useGatewayFeatureSupported: Cs, useTruncationDetector: ks, useValidators: As, useSchemaProvider: ws, useTableState: _s } = Y;
|
|
4445
4487
|
export {
|
|
4446
4488
|
ft as Appearances,
|
|
4447
4489
|
No as ConfigCardDisplay,
|
|
4448
4490
|
Gt as ConfigCardItem,
|
|
4449
4491
|
ie as ConfigurationSchemaSection,
|
|
4450
4492
|
H as ConfigurationSchemaType,
|
|
4451
|
-
|
|
4452
|
-
|
|
4493
|
+
es as EntityBaseConfigCard,
|
|
4494
|
+
ts as EntityBaseForm,
|
|
4453
4495
|
ir as EntityBaseFormType,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4496
|
+
ns as EntityBaseTable,
|
|
4497
|
+
rs as EntityDeleteModal,
|
|
4498
|
+
cs as EntityEmptyState,
|
|
4499
|
+
is as EntityFilter,
|
|
4500
|
+
ls as EntityFormSection,
|
|
4501
|
+
ss as EntityLink,
|
|
4502
|
+
as as EntityToggleModal,
|
|
4461
4503
|
rr as EntityTypes,
|
|
4462
4504
|
de as FetcherStatus,
|
|
4463
4505
|
Ur as InternalLinkItem,
|
|
4464
4506
|
zt as JsonCodeBlock,
|
|
4465
|
-
|
|
4507
|
+
os as PermissionsWrapper,
|
|
4466
4508
|
tt as SupportedEntityType,
|
|
4467
4509
|
Me as SupportedEntityTypesArray,
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4510
|
+
us as TableTags,
|
|
4511
|
+
Dn as TerraformCodeBlock,
|
|
4512
|
+
jn as YamlCodeBlock,
|
|
4513
|
+
ds as useAxios,
|
|
4514
|
+
vs as useDebouncedFilter,
|
|
4515
|
+
fs as useDeleteUrlBuilder,
|
|
4516
|
+
ps as useErrors,
|
|
4517
|
+
ms as useExternalLinkCreator,
|
|
4518
|
+
hs as useFetchUrlBuilder,
|
|
4519
|
+
gs as useFetcher,
|
|
4520
|
+
ys as useFetcherCacheKey,
|
|
4521
|
+
Cs as useGatewayFeatureSupported,
|
|
4522
|
+
xs as useHelpers,
|
|
4523
|
+
ws as useSchemaProvider,
|
|
4524
|
+
bs as useStringHelpers,
|
|
4525
|
+
_s as useTableState,
|
|
4526
|
+
ks as useTruncationDetector,
|
|
4527
|
+
As as useValidators
|
|
4486
4528
|
};
|