@kong-ui-public/entities-key-sets 3.3.16 → 3.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-key-sets.es.js +468 -472
- package/dist/entities-key-sets.umd.js +7 -7
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as H, computed as x, openBlock as g, createBlock as U, resolveDynamicComponent as ye, normalizeStyle as Me, withCtx as h, createElementBlock as
|
|
1
|
+
import { defineComponent as H, computed as x, openBlock as g, createBlock as U, resolveDynamicComponent as ye, normalizeStyle as Me, withCtx as h, createElementBlock as T, toDisplayString as K, createCommentVNode as D, pushScopeId as qe, popScopeId as Fe, createElementVNode as E, ref as B, watch as Ae, renderSlot as Y, unref as b, onBeforeMount as gt, resolveComponent as R, createSlots as je, createVNode as _, createTextVNode as z, renderList as ce, withModifiers as lt, withDirectives as ve, vShow as be, Fragment as pe, normalizeClass as Ce, withKeys as ia, useSlots as yt, useCssVars as en, inject as ra, onMounted as oa, onUnmounted as la, normalizeProps as sa, guardReactiveProps as ca, mergeProps as ua, Teleport as da, reactive as Tt } from "vue";
|
|
2
2
|
import { useRouter as mt } from "vue-router";
|
|
3
3
|
import { createI18n as tn, i18nTComponent as nn } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
4
|
+
import Nt from "axios";
|
|
5
5
|
import { BadgeMethodAppearances as pa } from "@kong/kongponents";
|
|
6
|
-
const
|
|
6
|
+
const $t = "24px", fa = (e, t) => {
|
|
7
7
|
const n = e.__vccOpts || e;
|
|
8
8
|
for (const [i, a] of t)
|
|
9
9
|
n[i] = a;
|
|
10
10
|
return n;
|
|
11
|
-
}, ga = (e) => (
|
|
11
|
+
}, ga = (e) => (qe("data-v-c1f7c39c"), e = e(), Fe(), e), ya = ["aria-hidden"], ma = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
14
|
}, ha = /* @__PURE__ */ ga(() => /* @__PURE__ */ E("path", {
|
|
@@ -45,7 +45,7 @@ const jt = "24px", fa = (e, t) => {
|
|
|
45
45
|
size: {
|
|
46
46
|
type: [Number, String],
|
|
47
47
|
required: !1,
|
|
48
|
-
default:
|
|
48
|
+
default: $t,
|
|
49
49
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
50
50
|
validator: (e) => {
|
|
51
51
|
if (typeof e == "number" && e > 0)
|
|
@@ -74,7 +74,7 @@ const jt = "24px", fa = (e, t) => {
|
|
|
74
74
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
75
75
|
return `${o}px`;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return $t;
|
|
78
78
|
}), i = x(() => ({
|
|
79
79
|
boxSizing: "border-box",
|
|
80
80
|
color: t.color,
|
|
@@ -91,7 +91,7 @@ const jt = "24px", fa = (e, t) => {
|
|
|
91
91
|
style: Me(i.value)
|
|
92
92
|
}, {
|
|
93
93
|
default: h(() => [
|
|
94
|
-
(g(),
|
|
94
|
+
(g(), T("svg", {
|
|
95
95
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
96
96
|
"data-testid": "kui-icon-svg-add-icon",
|
|
97
97
|
fill: "none",
|
|
@@ -101,7 +101,7 @@ const jt = "24px", fa = (e, t) => {
|
|
|
101
101
|
width: "100%",
|
|
102
102
|
xmlns: "http://www.w3.org/2000/svg"
|
|
103
103
|
}, [
|
|
104
|
-
e.title ? (g(),
|
|
104
|
+
e.title ? (g(), T("title", ma, K(e.title), 1)) : D("", !0),
|
|
105
105
|
ha
|
|
106
106
|
], 8, ya))
|
|
107
107
|
]),
|
|
@@ -204,13 +204,13 @@ function Sa() {
|
|
|
204
204
|
getAxiosInstance: (e = {}) => {
|
|
205
205
|
try {
|
|
206
206
|
const t = ra("get-axios-instance", void 0);
|
|
207
|
-
return typeof t == "function" ? t(e) :
|
|
207
|
+
return typeof t == "function" ? t(e) : Nt.create({
|
|
208
208
|
withCredentials: !0,
|
|
209
209
|
timeout: 3e4,
|
|
210
210
|
...e
|
|
211
211
|
});
|
|
212
212
|
} catch (t) {
|
|
213
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
213
|
+
return console.warn("getAxiosInstance:", t.message || t), Nt.create({
|
|
214
214
|
withCredentials: !0,
|
|
215
215
|
timeout: 3e4,
|
|
216
216
|
...e
|
|
@@ -286,10 +286,10 @@ const _a = {
|
|
|
286
286
|
copyToClipboard: "Copied successfully!",
|
|
287
287
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
288
288
|
}
|
|
289
|
-
},
|
|
289
|
+
}, Ta = {
|
|
290
290
|
message: "Are you sure you want to delete this {entityType}?",
|
|
291
291
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
292
|
-
},
|
|
292
|
+
}, Na = {
|
|
293
293
|
actions: {
|
|
294
294
|
viewConfiguration: "View Configuration",
|
|
295
295
|
save: "Save",
|
|
@@ -305,13 +305,13 @@ const _a = {
|
|
|
305
305
|
errors: {
|
|
306
306
|
edit: "The entity could not be edited at this time."
|
|
307
307
|
}
|
|
308
|
-
},
|
|
308
|
+
}, $a = {
|
|
309
309
|
emptyState: {
|
|
310
310
|
noSearchResultsTitle: "No results found",
|
|
311
311
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
312
312
|
noSearchResultsCtaText: "Clear"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, ja = {
|
|
315
315
|
title: "Configuration",
|
|
316
316
|
actions: {
|
|
317
317
|
copy: "Copy JSON"
|
|
@@ -359,10 +359,10 @@ const _a = {
|
|
|
359
359
|
fetch: "Could not fetch available items",
|
|
360
360
|
invalid: "Please select a valid value"
|
|
361
361
|
}
|
|
362
|
-
},
|
|
362
|
+
}, qa = {
|
|
363
363
|
unexpected: "An unexpected error has occurred",
|
|
364
364
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
365
|
-
},
|
|
365
|
+
}, Fa = {
|
|
366
366
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
367
367
|
}, Ba = {
|
|
368
368
|
enable: {
|
|
@@ -377,14 +377,14 @@ const _a = {
|
|
|
377
377
|
}
|
|
378
378
|
}, Ka = {
|
|
379
379
|
global: _a,
|
|
380
|
-
deleteModal:
|
|
381
|
-
baseForm:
|
|
382
|
-
baseTable:
|
|
383
|
-
baseConfigCard:
|
|
380
|
+
deleteModal: Ta,
|
|
381
|
+
baseForm: Na,
|
|
382
|
+
baseTable: $a,
|
|
383
|
+
baseConfigCard: ja,
|
|
384
384
|
filter: Oa,
|
|
385
385
|
debouncedFilter: Ma,
|
|
386
|
-
errors:
|
|
387
|
-
validationErrors:
|
|
386
|
+
errors: qa,
|
|
387
|
+
validationErrors: Fa,
|
|
388
388
|
toggleModal: Ba
|
|
389
389
|
};
|
|
390
390
|
function Qe() {
|
|
@@ -442,71 +442,67 @@ function La(e, t, n, i = {
|
|
|
442
442
|
searchKeys: ["id"]
|
|
443
443
|
}) {
|
|
444
444
|
n || (n = "1000");
|
|
445
|
-
const { axiosInstance: a } = vt(e.axiosRequestConfig), { i18n: { t: o } } = Qe(), { debounce: r } = xa(), l = r(async (
|
|
446
|
-
await I(
|
|
445
|
+
const { axiosInstance: a } = vt(e.axiosRequestConfig), { i18n: { t: o } } = Qe(), { debounce: r } = xa(), l = r(async (w) => {
|
|
446
|
+
await I(w);
|
|
447
447
|
}, 200), s = B(!1), c = B(""), d = B(""), u = B([]), y = B([]), f = B(void 0), S = x(() => {
|
|
448
|
-
const
|
|
449
|
-
return e.app === "konnect" ?
|
|
450
|
-
}), { isValidUuid:
|
|
448
|
+
const w = `${e.apiBaseUrl}${b(t)}`;
|
|
449
|
+
return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : w;
|
|
450
|
+
}), { isValidUuid: N } = rn(), C = async () => {
|
|
451
451
|
try {
|
|
452
452
|
s.value = !0;
|
|
453
|
-
const { data:
|
|
454
|
-
|
|
453
|
+
const { data: w } = await a.get(`${S.value}?size=${n}`);
|
|
454
|
+
w != null && w.next || (f.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []), y.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : [], u.value = y.value;
|
|
455
455
|
} catch {
|
|
456
456
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
457
457
|
} finally {
|
|
458
458
|
s.value = !1;
|
|
459
459
|
}
|
|
460
|
-
}, O = B(""), I = async (
|
|
460
|
+
}, O = B(""), I = async (w) => {
|
|
461
461
|
var m, v, p;
|
|
462
|
-
if (O.value !==
|
|
463
|
-
if (
|
|
462
|
+
if (O.value !== w) {
|
|
463
|
+
if (O.value = w ?? "", !w) {
|
|
464
464
|
u.value = y.value;
|
|
465
465
|
return;
|
|
466
|
-
}
|
|
467
|
-
O.value = C || "";
|
|
466
|
+
}
|
|
468
467
|
if (f.value === void 0)
|
|
469
468
|
try {
|
|
470
469
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
471
|
-
|
|
472
|
-
C && (b += `/${C}`);
|
|
473
|
-
const { data: M } = await a.get(`${b}?size=${n}`);
|
|
470
|
+
const k = `${S.value}/${w}`, { data: M } = await a.get(`${k}?size=${n}`);
|
|
474
471
|
i.fetchedItemsKey in M ? u.value = M[i.fetchedItemsKey] : M != null && M[i.exactMatchKey ?? "id"] ? u.value = [M] : u.value = [];
|
|
475
|
-
} else
|
|
476
|
-
const
|
|
477
|
-
|
|
478
|
-
const { data:
|
|
479
|
-
return [
|
|
480
|
-
})()) :
|
|
481
|
-
...i.searchKeys.filter((
|
|
482
|
-
const { data: L } = await a.get(`${S.value}?${
|
|
472
|
+
} else {
|
|
473
|
+
const k = [];
|
|
474
|
+
N(w) && i.searchKeys.includes("id") ? k.push((async () => {
|
|
475
|
+
const { data: q } = await a.get(`${S.value}/${w}`);
|
|
476
|
+
return [q[i.fetchedItemsKey] ?? q];
|
|
477
|
+
})()) : k.push(
|
|
478
|
+
...i.searchKeys.filter((q) => q !== "id").map(async (q) => {
|
|
479
|
+
const { data: L } = await a.get(`${S.value}?${q}=${w}`);
|
|
483
480
|
return L[i.fetchedItemsKey];
|
|
484
481
|
})
|
|
485
482
|
);
|
|
486
|
-
const M = await Promise.all(
|
|
487
|
-
u.value = [], (m = M == null ? void 0 : M.forEach) == null || m.call(M, (
|
|
483
|
+
const M = await Promise.all(k), $ = /* @__PURE__ */ new Set();
|
|
484
|
+
u.value = [], (m = M == null ? void 0 : M.forEach) == null || m.call(M, (q) => {
|
|
488
485
|
var L;
|
|
489
|
-
(L =
|
|
490
|
-
|
|
486
|
+
(L = q == null ? void 0 : q.forEach) == null || L.call(q, (j) => {
|
|
487
|
+
$.has(j.id) || ($.add(j.id), u.value.push(j));
|
|
491
488
|
});
|
|
492
489
|
});
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
((v = b == null ? void 0 : b.response) == null ? void 0 : v.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
490
|
+
}
|
|
491
|
+
} catch (k) {
|
|
492
|
+
((v = k == null ? void 0 : k.response) == null ? void 0 : v.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
497
493
|
} finally {
|
|
498
494
|
s.value = !1;
|
|
499
495
|
}
|
|
500
496
|
else
|
|
501
|
-
s.value = !0, d.value = "",
|
|
497
|
+
s.value = !0, d.value = "", u.value = (p = f.value) == null ? void 0 : p.filter((k) => {
|
|
502
498
|
var M;
|
|
503
|
-
let
|
|
504
|
-
for (const
|
|
505
|
-
const L = typeof
|
|
506
|
-
L != null && L.includes(
|
|
499
|
+
let $ = !1;
|
|
500
|
+
for (const q of i.searchKeys) {
|
|
501
|
+
const L = typeof k[q] == "string" ? (M = k[q]) == null ? void 0 : M.toLowerCase() : k[q];
|
|
502
|
+
L != null && L.includes(w.toLowerCase()) && ($ = !0);
|
|
507
503
|
}
|
|
508
|
-
return
|
|
509
|
-
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))
|
|
504
|
+
return $;
|
|
505
|
+
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
510
506
|
}
|
|
511
507
|
};
|
|
512
508
|
return {
|
|
@@ -515,12 +511,12 @@ function La(e, t, n, i = {
|
|
|
515
511
|
validationError: d,
|
|
516
512
|
results: u,
|
|
517
513
|
allRecords: f,
|
|
518
|
-
loadItems:
|
|
514
|
+
loadItems: C,
|
|
519
515
|
debouncedQueryChange: l
|
|
520
516
|
};
|
|
521
517
|
}
|
|
522
518
|
function Ea(e, t) {
|
|
523
|
-
const n =
|
|
519
|
+
const n = b(t), i = x(
|
|
524
520
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
525
521
|
);
|
|
526
522
|
return i.value.search = "", (a) => `${i.value.href}/${a}`;
|
|
@@ -567,7 +563,7 @@ function Ua(e) {
|
|
|
567
563
|
}
|
|
568
564
|
}
|
|
569
565
|
function on(e, t) {
|
|
570
|
-
const n = B(
|
|
566
|
+
const n = B(b(e)), i = B(b(t)), a = x(
|
|
571
567
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
572
568
|
), o = x(
|
|
573
569
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
@@ -576,8 +572,8 @@ function on(e, t) {
|
|
|
576
572
|
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: y } = r;
|
|
577
573
|
try {
|
|
578
574
|
let f = new URL(o.value.href);
|
|
579
|
-
return a.value && y ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${y}/`) : new URL(`${f.href}?filter[name][contains]=${y}`)) : (a.value || new URLSearchParams(y).forEach((S,
|
|
580
|
-
f.searchParams.append(
|
|
575
|
+
return a.value && y ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${y}/`) : new URL(`${f.href}?filter[name][contains]=${y}`)) : (a.value || new URLSearchParams(y).forEach((S, N) => {
|
|
576
|
+
f.searchParams.append(N, S);
|
|
581
577
|
}), 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;
|
|
582
578
|
} catch (f) {
|
|
583
579
|
return console.error("RouteList(fetcher)", f), i.value;
|
|
@@ -585,7 +581,7 @@ function on(e, t) {
|
|
|
585
581
|
};
|
|
586
582
|
}
|
|
587
583
|
function Va(e, t, n = "data") {
|
|
588
|
-
const i =
|
|
584
|
+
const i = b(t), { axiosInstance: a } = vt(e.axiosRequestConfig), o = on(e, i), r = B({
|
|
589
585
|
status: xe.Idle
|
|
590
586
|
});
|
|
591
587
|
return { fetcher: async (l) => {
|
|
@@ -637,7 +633,7 @@ function Da() {
|
|
|
637
633
|
convertKeyToTitle: e
|
|
638
634
|
};
|
|
639
635
|
}
|
|
640
|
-
const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
636
|
+
const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, jt = (e) => {
|
|
641
637
|
if (typeof e != "string")
|
|
642
638
|
throw new TypeError("Invalid argument expected string");
|
|
643
639
|
const t = e.match(ln);
|
|
@@ -652,7 +648,7 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
652
648
|
return 0;
|
|
653
649
|
const [n, i] = Pa(Mt(e), Mt(t));
|
|
654
650
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
655
|
-
},
|
|
651
|
+
}, qt = (e, t) => {
|
|
656
652
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
657
653
|
const i = za(e[n] || "0", t[n] || "0");
|
|
658
654
|
if (i !== 0)
|
|
@@ -660,9 +656,9 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
660
656
|
}
|
|
661
657
|
return 0;
|
|
662
658
|
}, Ha = (e, t) => {
|
|
663
|
-
const n =
|
|
664
|
-
return r !== 0 ? r : a && o ?
|
|
665
|
-
},
|
|
659
|
+
const n = jt(e), i = jt(t), a = n.pop(), o = i.pop(), r = qt(n, i);
|
|
660
|
+
return r !== 0 ? r : a && o ? qt(a.split("."), o.split(".")) : a || o ? a ? -1 : 1 : 0;
|
|
661
|
+
}, Ft = (e, t, n) => {
|
|
666
662
|
Ja(n);
|
|
667
663
|
const i = Ha(e, t);
|
|
668
664
|
return sn[n].includes(i);
|
|
@@ -690,7 +686,7 @@ function Ya(e) {
|
|
|
690
686
|
if (!o)
|
|
691
687
|
return !1;
|
|
692
688
|
const [r, l] = o;
|
|
693
|
-
return !(r &&
|
|
689
|
+
return !(r && Ft(a, r, "<") || l && Ft(a, l, ">"));
|
|
694
690
|
}
|
|
695
691
|
function Za(e) {
|
|
696
692
|
const t = B(0), n = B(0), i = B(!1);
|
|
@@ -751,14 +747,14 @@ const X = {
|
|
|
751
747
|
class: Ce(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
752
748
|
}, {
|
|
753
749
|
default: h(() => [
|
|
754
|
-
e.isArrayItem ? (g(),
|
|
750
|
+
e.isArrayItem ? (g(), T("legend", Qa, [
|
|
755
751
|
E("b", null, K(l.value), 1)
|
|
756
752
|
])) : D("", !0),
|
|
757
|
-
(g(!0),
|
|
753
|
+
(g(!0), T(pe, null, ce(Object.keys(r.value), (d, u) => (g(), U(un, {
|
|
758
754
|
key: `${a.value}-property-${u}`,
|
|
759
755
|
item: {
|
|
760
756
|
key: d,
|
|
761
|
-
label:
|
|
757
|
+
label: b(i)(d),
|
|
762
758
|
value: r.value[d]
|
|
763
759
|
}
|
|
764
760
|
}, null, 8, ["item"]))), 128))
|
|
@@ -784,14 +780,14 @@ const X = {
|
|
|
784
780
|
const { i18n: { t } } = X.useI18n();
|
|
785
781
|
return (n, i) => {
|
|
786
782
|
const a = R("KButton");
|
|
787
|
-
return g(),
|
|
783
|
+
return g(), T("div", null, [
|
|
788
784
|
_(a, {
|
|
789
785
|
appearance: "tertiary",
|
|
790
786
|
class: "navigation-button",
|
|
791
787
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
792
788
|
}, {
|
|
793
789
|
default: h(() => [
|
|
794
|
-
z(K(e.item.value ||
|
|
790
|
+
z(K(e.item.value || b(t)("baseConfigCard.commonFields.link")), 1)
|
|
795
791
|
]),
|
|
796
792
|
_: 1
|
|
797
793
|
})
|
|
@@ -814,7 +810,7 @@ const X = {
|
|
|
814
810
|
appearance: e.status ? "success" : "neutral"
|
|
815
811
|
}, {
|
|
816
812
|
default: h(() => [
|
|
817
|
-
z(K(e.status ?
|
|
813
|
+
z(K(e.status ? b(t)("baseConfigCard.statusBadge.enabledLabel") : b(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
818
814
|
]),
|
|
819
815
|
_: 1
|
|
820
816
|
}, 8, ["appearance"]);
|
|
@@ -844,7 +840,7 @@ const X = {
|
|
|
844
840
|
emits: ["navigation-click"],
|
|
845
841
|
setup(e, { emit: t }) {
|
|
846
842
|
en((S) => ({
|
|
847
|
-
"2f5b0492": d.value ? "none" : `solid ${
|
|
843
|
+
"2f5b0492": d.value ? "none" : `solid ${b(oi)} ${b(ii)}`,
|
|
848
844
|
"5d59c22c": c.value && l.value ? "block" : "flex",
|
|
849
845
|
aa41a894: c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
850
846
|
aa3d1cde: c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
@@ -971,15 +967,15 @@ const X = {
|
|
|
971
967
|
};
|
|
972
968
|
}
|
|
973
969
|
}), y = B(), { isTruncated: f } = X.useTruncationDetector(y);
|
|
974
|
-
return (S,
|
|
975
|
-
const
|
|
976
|
-
return g(),
|
|
970
|
+
return (S, N) => {
|
|
971
|
+
const C = R("KLabel"), O = R("KBadge"), I = R("KCopy"), w = R("KTooltip");
|
|
972
|
+
return g(), T("div", si, [
|
|
977
973
|
E("div", {
|
|
978
974
|
class: "config-card-details-label",
|
|
979
975
|
"data-testid": `${e.item.key}-label`
|
|
980
976
|
}, [
|
|
981
977
|
Y(S.$slots, "label", { item: e.item }, () => [
|
|
982
|
-
_(
|
|
978
|
+
_(C, { "tooltip-attributes": { maxWidth: "500px" } }, je({
|
|
983
979
|
default: h(() => [
|
|
984
980
|
z(K(e.item.label) + " ", 1)
|
|
985
981
|
]),
|
|
@@ -1008,14 +1004,14 @@ const X = {
|
|
|
1008
1004
|
Y(S.$slots, e.item.key, {
|
|
1009
1005
|
rowValue: e.item.value
|
|
1010
1006
|
}, () => [
|
|
1011
|
-
l.value ? (g(),
|
|
1007
|
+
l.value ? (g(), T("div", fi, [
|
|
1012
1008
|
(g(), U(ye(u.value.tag), sa(ca(u.value.attrs)), {
|
|
1013
1009
|
default: h(() => [
|
|
1014
|
-
u.value.additionalComponent === "KBadge" ? (g(),
|
|
1010
|
+
u.value.additionalComponent === "KBadge" ? (g(), T("div", {
|
|
1015
1011
|
key: 0,
|
|
1016
1012
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1017
1013
|
}, [
|
|
1018
|
-
(g(!0),
|
|
1014
|
+
(g(!0), T(pe, null, ce(e.item.value, (m, v) => (g(), U(O, {
|
|
1019
1015
|
key: `${e.item.key}-badge-tag-${v}`,
|
|
1020
1016
|
class: "config-badge",
|
|
1021
1017
|
"data-testid": `${e.item.key}-badge-tag-${v}`,
|
|
@@ -1028,24 +1024,24 @@ const X = {
|
|
|
1028
1024
|
_: 2
|
|
1029
1025
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1030
1026
|
], 8, gi)) : D("", !0),
|
|
1031
|
-
u.value.additionalComponent === "KCopy" ? (g(),
|
|
1027
|
+
u.value.additionalComponent === "KCopy" ? (g(), T("div", {
|
|
1032
1028
|
key: 1,
|
|
1033
1029
|
class: "copy-uuid-array",
|
|
1034
1030
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1035
1031
|
}, [
|
|
1036
|
-
(g(!0),
|
|
1032
|
+
(g(!0), T(pe, null, ce(e.item.value, (m, v) => (g(), U(I, ua({ ref_for: !0 }, u.value.childAttrs, {
|
|
1037
1033
|
key: `${e.item.key}-copy-uuid-${v}`,
|
|
1038
1034
|
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
1039
1035
|
text: m
|
|
1040
1036
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1041
|
-
], 8, yi)) : u.value.additionalComponent === "KMethodBadge" ? (g(),
|
|
1037
|
+
], 8, yi)) : u.value.additionalComponent === "KMethodBadge" ? (g(), T("div", {
|
|
1042
1038
|
key: 2,
|
|
1043
1039
|
class: "method-badge-array",
|
|
1044
1040
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1045
1041
|
}, [
|
|
1046
|
-
(g(!0),
|
|
1042
|
+
(g(!0), T(pe, null, ce(e.item.value, (m, v) => (g(), U(O, {
|
|
1047
1043
|
key: `${e.item.key}-badge-method-${v}`,
|
|
1048
|
-
appearance: Object.values(
|
|
1044
|
+
appearance: Object.values(b(pa)).includes(m.toLowerCase()) ? m.toLowerCase() : "custom",
|
|
1049
1045
|
class: "config-badge",
|
|
1050
1046
|
"data-testid": `${e.item.key}-badge-method-${v}`
|
|
1051
1047
|
}, {
|
|
@@ -1055,19 +1051,19 @@ const X = {
|
|
|
1055
1051
|
_: 2
|
|
1056
1052
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1057
1053
|
], 8, mi)) : D("", !0),
|
|
1058
|
-
u.value.additionalComponent === "JsonCardItem" ? (g(),
|
|
1054
|
+
u.value.additionalComponent === "JsonCardItem" ? (g(), T("div", {
|
|
1059
1055
|
key: 3,
|
|
1060
1056
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1061
1057
|
}, [
|
|
1062
|
-
(g(!0),
|
|
1058
|
+
(g(!0), T(pe, null, ce(e.item.value, (m, v) => (g(), U(cn, {
|
|
1063
1059
|
key: `json-array-item-${v}`,
|
|
1064
1060
|
index: v,
|
|
1065
1061
|
"is-array-item": "",
|
|
1066
1062
|
item: m
|
|
1067
1063
|
}, null, 8, ["index", "item"]))), 128))
|
|
1068
|
-
], 8, hi)) : (g(), U(
|
|
1064
|
+
], 8, hi)) : (g(), U(w, {
|
|
1069
1065
|
key: 4,
|
|
1070
|
-
text:
|
|
1066
|
+
text: b(f) ? e.item.value : ""
|
|
1071
1067
|
}, {
|
|
1072
1068
|
default: h(() => [
|
|
1073
1069
|
E("span", {
|
|
@@ -1081,7 +1077,7 @@ const X = {
|
|
|
1081
1077
|
]),
|
|
1082
1078
|
_: 1
|
|
1083
1079
|
}, 16))
|
|
1084
|
-
])) : (g(),
|
|
1080
|
+
])) : (g(), T("div", {
|
|
1085
1081
|
key: 0,
|
|
1086
1082
|
"data-testid": `${e.item.key}-no-value`
|
|
1087
1083
|
}, " – ", 8, pi))
|
|
@@ -1133,8 +1129,8 @@ const X = {
|
|
|
1133
1129
|
});
|
|
1134
1130
|
return (a, o) => {
|
|
1135
1131
|
const r = R("KBadge"), l = R("KCodeBlock");
|
|
1136
|
-
return g(),
|
|
1137
|
-
t.fetcherUrl ? (g(),
|
|
1132
|
+
return g(), T("div", ki, [
|
|
1133
|
+
t.fetcherUrl ? (g(), T("div", Ci, [
|
|
1138
1134
|
_(r, {
|
|
1139
1135
|
appearance: t.requestMethod
|
|
1140
1136
|
}, {
|
|
@@ -1189,12 +1185,12 @@ function Ii(e, t) {
|
|
|
1189
1185
|
function Ai(e) {
|
|
1190
1186
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1191
1187
|
}
|
|
1192
|
-
var _i = pn,
|
|
1188
|
+
var _i = pn, Ti = wi, Ni = Si, $i = Ii, ji = Ai, Oi = xi, Q = {
|
|
1193
1189
|
isNothing: _i,
|
|
1194
|
-
isObject:
|
|
1195
|
-
toArray:
|
|
1196
|
-
repeat:
|
|
1197
|
-
isNegativeZero:
|
|
1190
|
+
isObject: Ti,
|
|
1191
|
+
toArray: Ni,
|
|
1192
|
+
repeat: $i,
|
|
1193
|
+
isNegativeZero: ji,
|
|
1198
1194
|
extend: Oi
|
|
1199
1195
|
};
|
|
1200
1196
|
function fn(e, t) {
|
|
@@ -1252,7 +1248,7 @@ function Mi(e, t) {
|
|
|
1252
1248
|
`;
|
|
1253
1249
|
return l.replace(/\n$/, "");
|
|
1254
1250
|
}
|
|
1255
|
-
var
|
|
1251
|
+
var qi = Mi, Fi = [
|
|
1256
1252
|
"kind",
|
|
1257
1253
|
"multi",
|
|
1258
1254
|
"resolve",
|
|
@@ -1278,7 +1274,7 @@ function Ki(e) {
|
|
|
1278
1274
|
}
|
|
1279
1275
|
function Li(e, t) {
|
|
1280
1276
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1281
|
-
if (
|
|
1277
|
+
if (Fi.indexOf(n) === -1)
|
|
1282
1278
|
throw new ie('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1283
1279
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1284
1280
|
return !0;
|
|
@@ -1616,7 +1612,7 @@ var _n = new ne("tag:yaml.org,2002:timestamp", {
|
|
|
1616
1612
|
function lr(e) {
|
|
1617
1613
|
return e === "<<" || e === null;
|
|
1618
1614
|
}
|
|
1619
|
-
var
|
|
1615
|
+
var Tn = new ne("tag:yaml.org,2002:merge", {
|
|
1620
1616
|
kind: "scalar",
|
|
1621
1617
|
resolve: lr
|
|
1622
1618
|
}), bt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1646,7 +1642,7 @@ function ur(e) {
|
|
|
1646
1642
|
function dr(e) {
|
|
1647
1643
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1648
1644
|
}
|
|
1649
|
-
var
|
|
1645
|
+
var Nn = new ne("tag:yaml.org,2002:binary", {
|
|
1650
1646
|
kind: "scalar",
|
|
1651
1647
|
resolve: sr,
|
|
1652
1648
|
construct: cr,
|
|
@@ -1671,7 +1667,7 @@ function gr(e) {
|
|
|
1671
1667
|
function yr(e) {
|
|
1672
1668
|
return e !== null ? e : [];
|
|
1673
1669
|
}
|
|
1674
|
-
var
|
|
1670
|
+
var $n = new ne("tag:yaml.org,2002:omap", {
|
|
1675
1671
|
kind: "sequence",
|
|
1676
1672
|
resolve: gr,
|
|
1677
1673
|
construct: yr
|
|
@@ -1692,7 +1688,7 @@ function vr(e) {
|
|
|
1692
1688
|
i = r[t], a = Object.keys(i), o[t] = [a[0], i[a[0]]];
|
|
1693
1689
|
return o;
|
|
1694
1690
|
}
|
|
1695
|
-
var
|
|
1691
|
+
var jn = new ne("tag:yaml.org,2002:pairs", {
|
|
1696
1692
|
kind: "sequence",
|
|
1697
1693
|
resolve: hr,
|
|
1698
1694
|
construct: vr
|
|
@@ -1715,15 +1711,15 @@ var On = new ne("tag:yaml.org,2002:set", {
|
|
|
1715
1711
|
}), kt = xn.extend({
|
|
1716
1712
|
implicit: [
|
|
1717
1713
|
_n,
|
|
1718
|
-
|
|
1714
|
+
Tn
|
|
1719
1715
|
],
|
|
1720
1716
|
explicit: [
|
|
1717
|
+
Nn,
|
|
1721
1718
|
$n,
|
|
1722
1719
|
jn,
|
|
1723
|
-
Tn,
|
|
1724
1720
|
On
|
|
1725
1721
|
]
|
|
1726
|
-
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2,
|
|
1722
|
+
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2, qn = 3, We = 4, ot = 1, wr = 2, Lt = 3, Sr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xr = /[\x85\u2028\u2029]/, Ir = /[,\[\]\{\}]/, Fn = /^(?:!|!!|![a-z\-]+!)$/i, Bn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1727
1723
|
function Et(e) {
|
|
1728
1724
|
return Object.prototype.toString.call(e);
|
|
1729
1725
|
}
|
|
@@ -1736,7 +1732,7 @@ function Ie(e) {
|
|
|
1736
1732
|
function re(e) {
|
|
1737
1733
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1738
1734
|
}
|
|
1739
|
-
function
|
|
1735
|
+
function Ne(e) {
|
|
1740
1736
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1741
1737
|
}
|
|
1742
1738
|
function Ar(e) {
|
|
@@ -1746,14 +1742,14 @@ function Ar(e) {
|
|
|
1746
1742
|
function _r(e) {
|
|
1747
1743
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1748
1744
|
}
|
|
1749
|
-
function
|
|
1745
|
+
function Tr(e) {
|
|
1750
1746
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1751
1747
|
}
|
|
1752
1748
|
function Rt(e) {
|
|
1753
1749
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1754
1750
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1755
1751
|
}
|
|
1756
|
-
function
|
|
1752
|
+
function Nr(e) {
|
|
1757
1753
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1758
1754
|
(e - 65536 >> 10) + 55296,
|
|
1759
1755
|
(e - 65536 & 1023) + 56320
|
|
@@ -1762,7 +1758,7 @@ function $r(e) {
|
|
|
1762
1758
|
var Kn = new Array(256), Ln = new Array(256);
|
|
1763
1759
|
for (var _e = 0; _e < 256; _e++)
|
|
1764
1760
|
Kn[_e] = Rt(_e) ? 1 : 0, Ln[_e] = Rt(_e);
|
|
1765
|
-
function
|
|
1761
|
+
function $r(e, t) {
|
|
1766
1762
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1767
1763
|
}
|
|
1768
1764
|
function En(e, t) {
|
|
@@ -1774,7 +1770,7 @@ function En(e, t) {
|
|
|
1774
1770
|
line: e.line,
|
|
1775
1771
|
column: e.position - e.lineStart
|
|
1776
1772
|
};
|
|
1777
|
-
return n.snippet =
|
|
1773
|
+
return n.snippet = qi(n), new ie(t, n);
|
|
1778
1774
|
}
|
|
1779
1775
|
function A(e, t) {
|
|
1780
1776
|
throw En(e, t);
|
|
@@ -1789,7 +1785,7 @@ var Ut = {
|
|
|
1789
1785
|
},
|
|
1790
1786
|
TAG: function(e, t, n) {
|
|
1791
1787
|
var i, a;
|
|
1792
|
-
n.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1],
|
|
1788
|
+
n.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1], Fn.test(i) || A(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, i) && A(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Bn.test(a) || A(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1793
1789
|
try {
|
|
1794
1790
|
a = decodeURIComponent(a);
|
|
1795
1791
|
} catch {
|
|
@@ -1813,7 +1809,7 @@ function Vt(e, t, n, i) {
|
|
|
1813
1809
|
for (Q.isObject(n) || A(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), r = 0, l = a.length; r < l; r += 1)
|
|
1814
1810
|
o = a[r], we.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1815
1811
|
}
|
|
1816
|
-
function
|
|
1812
|
+
function $e(e, t, n, i, a, o, r, l, s) {
|
|
1817
1813
|
var c, d;
|
|
1818
1814
|
if (Array.isArray(a))
|
|
1819
1815
|
for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
|
|
@@ -1861,19 +1857,19 @@ function wt(e, t) {
|
|
|
1861
1857
|
t === 1 ? e.result += " " : t > 1 && (e.result += Q.repeat(`
|
|
1862
1858
|
`, t - 1));
|
|
1863
1859
|
}
|
|
1864
|
-
function
|
|
1860
|
+
function jr(e, t, n) {
|
|
1865
1861
|
var i, a, o, r, l, s, c, d, u = e.kind, y = e.result, f;
|
|
1866
|
-
if (f = e.input.charCodeAt(e.position), re(f) ||
|
|
1862
|
+
if (f = e.input.charCodeAt(e.position), re(f) || Ne(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) && (a = e.input.charCodeAt(e.position + 1), re(a) || n && Ne(a)))
|
|
1867
1863
|
return !1;
|
|
1868
1864
|
for (e.kind = "scalar", e.result = "", o = r = e.position, l = !1; f !== 0; ) {
|
|
1869
1865
|
if (f === 58) {
|
|
1870
|
-
if (a = e.input.charCodeAt(e.position + 1), re(a) || n &&
|
|
1866
|
+
if (a = e.input.charCodeAt(e.position + 1), re(a) || n && Ne(a))
|
|
1871
1867
|
break;
|
|
1872
1868
|
} else if (f === 35) {
|
|
1873
1869
|
if (i = e.input.charCodeAt(e.position - 1), re(i))
|
|
1874
1870
|
break;
|
|
1875
1871
|
} else {
|
|
1876
|
-
if (e.position === e.lineStart && Xe(e) || n &&
|
|
1872
|
+
if (e.position === e.lineStart && Xe(e) || n && Ne(f))
|
|
1877
1873
|
break;
|
|
1878
1874
|
if (fe(f))
|
|
1879
1875
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, G(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1916,7 +1912,7 @@ function Mr(e, t) {
|
|
|
1916
1912
|
else if ((r = _r(l)) > 0) {
|
|
1917
1913
|
for (a = r, o = 0; a > 0; a--)
|
|
1918
1914
|
l = e.input.charCodeAt(++e.position), (r = Ar(l)) >= 0 ? o = (o << 4) + r : A(e, "expected hexadecimal character");
|
|
1919
|
-
e.result +=
|
|
1915
|
+
e.result += Nr(o), e.position++;
|
|
1920
1916
|
} else
|
|
1921
1917
|
A(e, "unknown escape sequence");
|
|
1922
1918
|
n = i = e.position;
|
|
@@ -1924,8 +1920,8 @@ function Mr(e, t) {
|
|
|
1924
1920
|
}
|
|
1925
1921
|
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
1926
1922
|
}
|
|
1927
|
-
function
|
|
1928
|
-
var n = !0, i, a, o, r = e.tag, l, s = e.anchor, c, d, u, y, f, S = /* @__PURE__ */ Object.create(null),
|
|
1923
|
+
function qr(e, t) {
|
|
1924
|
+
var n = !0, i, a, o, r = e.tag, l, s = e.anchor, c, d, u, y, f, S = /* @__PURE__ */ Object.create(null), N, C, O, I;
|
|
1929
1925
|
if (I = e.input.charCodeAt(e.position), I === 91)
|
|
1930
1926
|
d = 93, f = !1, l = [];
|
|
1931
1927
|
else if (I === 123)
|
|
@@ -1935,11 +1931,11 @@ function Fr(e, t) {
|
|
|
1935
1931
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), I = e.input.charCodeAt(++e.position); I !== 0; ) {
|
|
1936
1932
|
if (G(e, !0, t), I = e.input.charCodeAt(e.position), I === d)
|
|
1937
1933
|
return e.position++, e.tag = r, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1938
|
-
n ? I === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"),
|
|
1934
|
+
n ? I === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), C = N = O = null, u = y = !1, I === 63 && (c = e.input.charCodeAt(e.position + 1), re(c) && (u = y = !0, e.position++, G(e, !0, t))), i = e.line, a = e.lineStart, o = e.position, Oe(e, t, Je, !1, !0), C = e.tag, N = e.result, G(e, !0, t), I = e.input.charCodeAt(e.position), (y || e.line === i) && I === 58 && (u = !0, I = e.input.charCodeAt(++e.position), G(e, !0, t), Oe(e, t, Je, !1, !0), O = e.result), f ? $e(e, l, S, C, N, O, i, a, o) : u ? l.push($e(e, null, S, C, N, O, i, a, o)) : l.push(N), G(e, !0, t), I = e.input.charCodeAt(e.position), I === 44 ? (n = !0, I = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1939
1935
|
}
|
|
1940
1936
|
A(e, "unexpected end of the stream within a flow collection");
|
|
1941
1937
|
}
|
|
1942
|
-
function
|
|
1938
|
+
function Fr(e, t) {
|
|
1943
1939
|
var n, i, a = ot, o = !1, r = !1, l = t, s = 0, c = !1, d, u;
|
|
1944
1940
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1945
1941
|
i = !1;
|
|
@@ -1950,7 +1946,7 @@ function qr(e, t) {
|
|
|
1950
1946
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1951
1947
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1952
1948
|
ot === a ? a = u === 43 ? Lt : wr : A(e, "repeat of a chomping mode identifier");
|
|
1953
|
-
else if ((d =
|
|
1949
|
+
else if ((d = Tr(u)) >= 0)
|
|
1954
1950
|
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? A(e, "repeat of an indentation width identifier") : (l = t + d - 1, r = !0);
|
|
1955
1951
|
else
|
|
1956
1952
|
break;
|
|
@@ -1994,7 +1990,7 @@ function Dt(e, t) {
|
|
|
1994
1990
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1995
1991
|
continue;
|
|
1996
1992
|
}
|
|
1997
|
-
if (n = e.line, Oe(e, t,
|
|
1993
|
+
if (n = e.line, Oe(e, t, qn, !1, !0), o.push(e.result), G(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1998
1994
|
A(e, "bad indentation of a sequence entry");
|
|
1999
1995
|
else if (e.lineIndent < t)
|
|
2000
1996
|
break;
|
|
@@ -2002,11 +1998,11 @@ function Dt(e, t) {
|
|
|
2002
1998
|
return l ? (e.tag = i, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2003
1999
|
}
|
|
2004
2000
|
function Br(e, t, n) {
|
|
2005
|
-
var i, a, o, r, l, s, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), f = null, S = null,
|
|
2001
|
+
var i, a, o, r, l, s, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), f = null, S = null, N = null, C = !1, O = !1, I;
|
|
2006
2002
|
if (e.firstTabInLine !== -1) return !1;
|
|
2007
2003
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), I = e.input.charCodeAt(e.position); I !== 0; ) {
|
|
2008
|
-
if (!
|
|
2009
|
-
I === 63 ? (
|
|
2004
|
+
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (I === 63 || I === 58) && re(i))
|
|
2005
|
+
I === 63 ? (C && ($e(e, u, y, f, S, null, r, l, s), f = S = N = null), O = !0, C = !0, a = !0) : C ? (C = !1, a = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, I = i;
|
|
2010
2006
|
else {
|
|
2011
2007
|
if (r = e.line, l = e.lineStart, s = e.position, !Oe(e, n, Mn, !1, !0))
|
|
2012
2008
|
break;
|
|
@@ -2014,7 +2010,7 @@ function Br(e, t, n) {
|
|
|
2014
2010
|
for (I = e.input.charCodeAt(e.position); Ie(I); )
|
|
2015
2011
|
I = e.input.charCodeAt(++e.position);
|
|
2016
2012
|
if (I === 58)
|
|
2017
|
-
I = e.input.charCodeAt(++e.position), re(I) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"),
|
|
2013
|
+
I = e.input.charCodeAt(++e.position), re(I) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && ($e(e, u, y, f, S, null, r, l, s), f = S = N = null), O = !0, C = !1, a = !1, f = e.tag, S = e.result;
|
|
2018
2014
|
else if (O)
|
|
2019
2015
|
A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2020
2016
|
else
|
|
@@ -2024,12 +2020,12 @@ function Br(e, t, n) {
|
|
|
2024
2020
|
else
|
|
2025
2021
|
return e.tag = c, e.anchor = d, !0;
|
|
2026
2022
|
}
|
|
2027
|
-
if ((e.line === o || e.lineIndent > t) && (
|
|
2023
|
+
if ((e.line === o || e.lineIndent > t) && (C && (r = e.line, l = e.lineStart, s = e.position), Oe(e, t, We, !0, a) && (C ? S = e.result : N = e.result), C || ($e(e, u, y, f, S, N, r, l, s), f = S = N = null), G(e, !0, -1), I = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && I !== 0)
|
|
2028
2024
|
A(e, "bad indentation of a mapping entry");
|
|
2029
2025
|
else if (e.lineIndent < t)
|
|
2030
2026
|
break;
|
|
2031
2027
|
}
|
|
2032
|
-
return
|
|
2028
|
+
return C && $e(e, u, y, f, S, null, r, l, s), O && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), O;
|
|
2033
2029
|
}
|
|
2034
2030
|
function Kr(e) {
|
|
2035
2031
|
var t, n = !1, i = !1, a, o, r;
|
|
@@ -2041,7 +2037,7 @@ function Kr(e) {
|
|
|
2041
2037
|
e.position < e.length ? (o = e.input.slice(t, e.position), r = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
2042
2038
|
} else {
|
|
2043
2039
|
for (; r !== 0 && !re(r); )
|
|
2044
|
-
r === 33 && (i ? A(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1),
|
|
2040
|
+
r === 33 && (i ? A(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Fn.test(a) || A(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
|
|
2045
2041
|
o = e.input.slice(t, e.position), Ir.test(o) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
2046
2042
|
}
|
|
2047
2043
|
o && !Bn.test(o) && A(e, "tag name cannot contain such characters: " + o);
|
|
@@ -2055,23 +2051,23 @@ function Kr(e) {
|
|
|
2055
2051
|
function Lr(e) {
|
|
2056
2052
|
var t, n;
|
|
2057
2053
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
2058
|
-
for (e.anchor !== null && A(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) &&
|
|
2054
|
+
for (e.anchor !== null && A(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) && !Ne(n); )
|
|
2059
2055
|
n = e.input.charCodeAt(++e.position);
|
|
2060
2056
|
return e.position === t && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2061
2057
|
}
|
|
2062
2058
|
function Er(e) {
|
|
2063
2059
|
var t, n, i;
|
|
2064
2060
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2065
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !re(i) &&
|
|
2061
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !re(i) && !Ne(i); )
|
|
2066
2062
|
i = e.input.charCodeAt(++e.position);
|
|
2067
2063
|
return e.position === t && A(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), we.call(e.anchorMap, n) || A(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], G(e, !0, -1), !0;
|
|
2068
2064
|
}
|
|
2069
2065
|
function Oe(e, t, n, i, a) {
|
|
2070
|
-
var o, r, l, s = 1, c = !1, d = !1, u, y, f, S,
|
|
2071
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = We === n ||
|
|
2066
|
+
var o, r, l, s = 1, c = !1, d = !1, u, y, f, S, N, C;
|
|
2067
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = We === n || qn === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2072
2068
|
for (; Kr(e) || Lr(e); )
|
|
2073
2069
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2074
|
-
if (l && (l = c || a), (s === 1 || We === n) && (Je === n || Mn === n ?
|
|
2070
|
+
if (l && (l = c || a), (s === 1 || We === n) && (Je === n || Mn === n ? N = t : N = t + 1, C = e.position - e.lineStart, s === 1 ? l && (Dt(e, C) || Br(e, C, N)) || qr(e, N) ? d = !0 : (r && Fr(e, N) || Or(e, N) || Mr(e, N) ? d = !0 : Er(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : jr(e, N, Je === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Dt(e, C))), e.tag === null)
|
|
2075
2071
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2076
2072
|
else if (e.tag === "?") {
|
|
2077
2073
|
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
|
|
@@ -2125,7 +2121,7 @@ function Rr(e) {
|
|
|
2125
2121
|
function Rn(e, t) {
|
|
2126
2122
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2127
2123
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2128
|
-
var n = new
|
|
2124
|
+
var n = new $r(e, t), i = e.indexOf("\0");
|
|
2129
2125
|
for (i !== -1 && (n.position = i, A(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2130
2126
|
n.lineIndent += 1, n.position += 1;
|
|
2131
2127
|
for (; n.position < n.length - 1; )
|
|
@@ -2259,14 +2255,14 @@ function Yn(e) {
|
|
|
2259
2255
|
var t = /^\n* /;
|
|
2260
2256
|
return t.test(e);
|
|
2261
2257
|
}
|
|
2262
|
-
var Zn = 1, pt = 2, Gn = 3, Qn = 4,
|
|
2258
|
+
var Zn = 1, pt = 2, Gn = 3, Qn = 4, Te = 5;
|
|
2263
2259
|
function ho(e, t, n, i, a, o, r, l) {
|
|
2264
|
-
var s, c = 0, d = null, u = !1, y = !1, f = i !== -1, S = -1,
|
|
2260
|
+
var s, c = 0, d = null, u = !1, y = !1, f = i !== -1, S = -1, N = yo(Ke(e, 0)) && mo(Ke(e, e.length - 1));
|
|
2265
2261
|
if (t || r)
|
|
2266
2262
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2267
2263
|
if (c = Ke(e, s), !Ue(c))
|
|
2268
|
-
return
|
|
2269
|
-
|
|
2264
|
+
return Te;
|
|
2265
|
+
N = N && Ht(c, d, l), d = c;
|
|
2270
2266
|
}
|
|
2271
2267
|
else {
|
|
2272
2268
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
@@ -2274,12 +2270,12 @@ function ho(e, t, n, i, a, o, r, l) {
|
|
|
2274
2270
|
u = !0, f && (y = y || // Foldable line = too long, and not more-indented.
|
|
2275
2271
|
s - S - 1 > i && e[S + 1] !== " ", S = s);
|
|
2276
2272
|
else if (!Ue(c))
|
|
2277
|
-
return
|
|
2278
|
-
|
|
2273
|
+
return Te;
|
|
2274
|
+
N = N && Ht(c, d, l), d = c;
|
|
2279
2275
|
}
|
|
2280
2276
|
y = y || f && s - S - 1 > i && e[S + 1] !== " ";
|
|
2281
2277
|
}
|
|
2282
|
-
return !u && !y ?
|
|
2278
|
+
return !u && !y ? N && !r && !a(e) ? Zn : o === Re ? Te : pt : n > 9 && Yn(e) ? Te : r ? o === Re ? Te : pt : y ? Qn : Gn;
|
|
2283
2279
|
}
|
|
2284
2280
|
function vo(e, t, n, i, a) {
|
|
2285
2281
|
e.dump = function() {
|
|
@@ -2309,7 +2305,7 @@ function vo(e, t, n, i, a) {
|
|
|
2309
2305
|
return "|" + Jt(t, e.indent) + Wt(Pt(t, o));
|
|
2310
2306
|
case Qn:
|
|
2311
2307
|
return ">" + Jt(t, e.indent) + Wt(Pt(bo(t, r), o));
|
|
2312
|
-
case
|
|
2308
|
+
case Te:
|
|
2313
2309
|
return '"' + ko(t) + '"';
|
|
2314
2310
|
default:
|
|
2315
2311
|
throw new ie("impossible error: invalid scalar style");
|
|
@@ -2460,29 +2456,29 @@ function xt(e, t) {
|
|
|
2460
2456
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2461
2457
|
};
|
|
2462
2458
|
}
|
|
2463
|
-
var
|
|
2464
|
-
binary:
|
|
2459
|
+
var To = ne, No = gn, $o = vn, jo = Sn, Oo = xn, Mo = kt, qo = Un.load, Fo = Un.loadAll, Bo = _o.dump, Ko = ie, Lo = {
|
|
2460
|
+
binary: Nn,
|
|
2465
2461
|
float: wn,
|
|
2466
2462
|
map: hn,
|
|
2467
2463
|
null: bn,
|
|
2468
|
-
pairs:
|
|
2464
|
+
pairs: jn,
|
|
2469
2465
|
set: On,
|
|
2470
2466
|
timestamp: _n,
|
|
2471
2467
|
bool: kn,
|
|
2472
2468
|
int: Cn,
|
|
2473
|
-
merge:
|
|
2474
|
-
omap:
|
|
2469
|
+
merge: Tn,
|
|
2470
|
+
omap: $n,
|
|
2475
2471
|
seq: mn,
|
|
2476
2472
|
str: yn
|
|
2477
2473
|
}, Eo = xt("safeLoad", "load"), Ro = xt("safeLoadAll", "loadAll"), Uo = xt("safeDump", "dump"), Vo = {
|
|
2478
|
-
Type:
|
|
2479
|
-
Schema:
|
|
2480
|
-
FAILSAFE_SCHEMA:
|
|
2481
|
-
JSON_SCHEMA:
|
|
2474
|
+
Type: To,
|
|
2475
|
+
Schema: No,
|
|
2476
|
+
FAILSAFE_SCHEMA: $o,
|
|
2477
|
+
JSON_SCHEMA: jo,
|
|
2482
2478
|
CORE_SCHEMA: Oo,
|
|
2483
2479
|
DEFAULT_SCHEMA: Mo,
|
|
2484
|
-
load:
|
|
2485
|
-
loadAll:
|
|
2480
|
+
load: qo,
|
|
2481
|
+
loadAll: Fo,
|
|
2486
2482
|
dump: Bo,
|
|
2487
2483
|
YAMLException: Ko,
|
|
2488
2484
|
types: Lo,
|
|
@@ -2506,7 +2502,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2506
2502
|
});
|
|
2507
2503
|
return (i, a) => {
|
|
2508
2504
|
const o = R("KCodeBlock");
|
|
2509
|
-
return g(),
|
|
2505
|
+
return g(), T("div", Do, [
|
|
2510
2506
|
t.yamlRecord ? (g(), U(o, {
|
|
2511
2507
|
key: 0,
|
|
2512
2508
|
id: "yaml-codeblock",
|
|
@@ -2568,18 +2564,18 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2568
2564
|
const r = JSON.parse(JSON.stringify(t.record));
|
|
2569
2565
|
return delete r.created_at, delete r.updated_at, r;
|
|
2570
2566
|
});
|
|
2571
|
-
return (r, l) => (g(),
|
|
2572
|
-
e.format === "structured" ? (g(),
|
|
2573
|
-
(g(!0),
|
|
2567
|
+
return (r, l) => (g(), T(pe, null, [
|
|
2568
|
+
e.format === "structured" ? (g(), T("div", Po, [
|
|
2569
|
+
(g(!0), T(pe, null, ce(e.propListTypes, (s) => (g(), T("div", {
|
|
2574
2570
|
key: `config-card-details-${s}-props`,
|
|
2575
2571
|
class: Ce(`config-card-details-${s}-props`),
|
|
2576
2572
|
"data-testid": `config-card-details-${s}-props`
|
|
2577
2573
|
}, [
|
|
2578
|
-
s !== "basic" ? (g(),
|
|
2579
|
-
(g(!0),
|
|
2574
|
+
s !== "basic" ? (g(), T("div", Ho, K(s === "advanced" ? b(i)("baseConfigCard.sections.advanced") : b(i)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2575
|
+
(g(!0), T(pe, null, ce(e.propertyCollections[s], (c) => (g(), U(un, {
|
|
2580
2576
|
key: c.key,
|
|
2581
2577
|
item: c
|
|
2582
|
-
},
|
|
2578
|
+
}, je({
|
|
2583
2579
|
label: h(() => [
|
|
2584
2580
|
Y(r.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2585
2581
|
]),
|
|
@@ -2619,7 +2615,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2619
2615
|
for (const [i, a] of t)
|
|
2620
2616
|
n[i] = a;
|
|
2621
2617
|
return n;
|
|
2622
|
-
}, Yo = (e) => (
|
|
2618
|
+
}, Yo = (e) => (qe("data-v-c1f7c39c"), e = e(), Fe(), e), Zo = ["aria-hidden"], Go = {
|
|
2623
2619
|
key: 0,
|
|
2624
2620
|
"data-testid": "kui-icon-svg-title"
|
|
2625
2621
|
}, Qo = /* @__PURE__ */ Yo(() => /* @__PURE__ */ E("path", {
|
|
@@ -2702,7 +2698,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2702
2698
|
style: Me(i.value)
|
|
2703
2699
|
}, {
|
|
2704
2700
|
default: h(() => [
|
|
2705
|
-
(g(),
|
|
2701
|
+
(g(), T("svg", {
|
|
2706
2702
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2707
2703
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2708
2704
|
fill: "none",
|
|
@@ -2712,14 +2708,14 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2712
2708
|
width: "100%",
|
|
2713
2709
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2714
2710
|
}, [
|
|
2715
|
-
e.title ? (g(),
|
|
2711
|
+
e.title ? (g(), T("title", Go, K(e.title), 1)) : D("", !0),
|
|
2716
2712
|
Qo
|
|
2717
2713
|
], 8, Zo))
|
|
2718
2714
|
]),
|
|
2719
2715
|
_: 1
|
|
2720
2716
|
}, 8, ["aria-hidden", "style"]));
|
|
2721
2717
|
}
|
|
2722
|
-
}), el = /* @__PURE__ */ Ve(Xo, [["__scopeId", "data-v-c1f7c39c"]]), tl = (e) => (
|
|
2718
|
+
}), el = /* @__PURE__ */ Ve(Xo, [["__scopeId", "data-v-c1f7c39c"]]), tl = (e) => (qe("data-v-fbe6ddff"), e = e(), Fe(), e), nl = ["aria-hidden"], al = {
|
|
2723
2719
|
key: 0,
|
|
2724
2720
|
"data-testid": "kui-icon-svg-title"
|
|
2725
2721
|
}, il = /* @__PURE__ */ tl(() => /* @__PURE__ */ E("path", {
|
|
@@ -2802,7 +2798,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2802
2798
|
style: Me(i.value)
|
|
2803
2799
|
}, {
|
|
2804
2800
|
default: h(() => [
|
|
2805
|
-
(g(),
|
|
2801
|
+
(g(), T("svg", {
|
|
2806
2802
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2807
2803
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2808
2804
|
fill: "none",
|
|
@@ -2812,14 +2808,14 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2812
2808
|
width: "100%",
|
|
2813
2809
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2814
2810
|
}, [
|
|
2815
|
-
e.title ? (g(),
|
|
2811
|
+
e.title ? (g(), T("title", al, K(e.title), 1)) : D("", !0),
|
|
2816
2812
|
il
|
|
2817
2813
|
], 8, nl))
|
|
2818
2814
|
]),
|
|
2819
2815
|
_: 1
|
|
2820
2816
|
}, 8, ["aria-hidden", "style"]));
|
|
2821
2817
|
}
|
|
2822
|
-
}), ol = /* @__PURE__ */ Ve(rl, [["__scopeId", "data-v-fbe6ddff"]]), ll = (e) => (
|
|
2818
|
+
}), ol = /* @__PURE__ */ Ve(rl, [["__scopeId", "data-v-fbe6ddff"]]), ll = (e) => (qe("data-v-745761f6"), e = e(), Fe(), e), sl = ["aria-hidden"], cl = {
|
|
2823
2819
|
key: 0,
|
|
2824
2820
|
"data-testid": "kui-icon-svg-title"
|
|
2825
2821
|
}, ul = /* @__PURE__ */ ll(() => /* @__PURE__ */ E("path", {
|
|
@@ -2902,7 +2898,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2902
2898
|
style: Me(i.value)
|
|
2903
2899
|
}, {
|
|
2904
2900
|
default: h(() => [
|
|
2905
|
-
(g(),
|
|
2901
|
+
(g(), T("svg", {
|
|
2906
2902
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2907
2903
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2908
2904
|
fill: "none",
|
|
@@ -2912,14 +2908,14 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2912
2908
|
width: "100%",
|
|
2913
2909
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2914
2910
|
}, [
|
|
2915
|
-
e.title ? (g(),
|
|
2911
|
+
e.title ? (g(), T("title", cl, K(e.title), 1)) : D("", !0),
|
|
2916
2912
|
ul
|
|
2917
2913
|
], 8, sl))
|
|
2918
2914
|
]),
|
|
2919
2915
|
_: 1
|
|
2920
2916
|
}, 8, ["aria-hidden", "style"]));
|
|
2921
2917
|
}
|
|
2922
|
-
}), pl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-745761f6"]]), fl = (e) => (
|
|
2918
|
+
}), pl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-745761f6"]]), fl = (e) => (qe("data-v-863d10eb"), e = e(), Fe(), e), gl = ["aria-hidden"], yl = {
|
|
2923
2919
|
key: 0,
|
|
2924
2920
|
"data-testid": "kui-icon-svg-title"
|
|
2925
2921
|
}, ml = /* @__PURE__ */ fl(() => /* @__PURE__ */ E("path", {
|
|
@@ -3002,7 +2998,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3002
2998
|
style: Me(i.value)
|
|
3003
2999
|
}, {
|
|
3004
3000
|
default: h(() => [
|
|
3005
|
-
(g(),
|
|
3001
|
+
(g(), T("svg", {
|
|
3006
3002
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3007
3003
|
"data-testid": "kui-icon-svg-close-icon",
|
|
3008
3004
|
fill: "none",
|
|
@@ -3012,14 +3008,14 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3012
3008
|
width: "100%",
|
|
3013
3009
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3014
3010
|
}, [
|
|
3015
|
-
e.title ? (g(),
|
|
3011
|
+
e.title ? (g(), T("title", yl, K(e.title), 1)) : D("", !0),
|
|
3016
3012
|
ml
|
|
3017
3013
|
], 8, gl))
|
|
3018
3014
|
]),
|
|
3019
3015
|
_: 1
|
|
3020
3016
|
}, 8, ["aria-hidden", "style"]));
|
|
3021
3017
|
}
|
|
3022
|
-
}), vl = /* @__PURE__ */ Ve(hl, [["__scopeId", "data-v-863d10eb"]]), bl = (e) => (
|
|
3018
|
+
}), vl = /* @__PURE__ */ Ve(hl, [["__scopeId", "data-v-863d10eb"]]), bl = (e) => (qe("data-v-d9894a05"), e = e(), Fe(), e), kl = ["aria-hidden"], Cl = {
|
|
3023
3019
|
key: 0,
|
|
3024
3020
|
"data-testid": "kui-icon-svg-title"
|
|
3025
3021
|
}, wl = /* @__PURE__ */ bl(() => /* @__PURE__ */ E("path", {
|
|
@@ -3102,7 +3098,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3102
3098
|
style: Me(i.value)
|
|
3103
3099
|
}, {
|
|
3104
3100
|
default: h(() => [
|
|
3105
|
-
(g(),
|
|
3101
|
+
(g(), T("svg", {
|
|
3106
3102
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3107
3103
|
"data-testid": "kui-icon-svg-more-icon",
|
|
3108
3104
|
fill: "none",
|
|
@@ -3112,7 +3108,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3112
3108
|
width: "100%",
|
|
3113
3109
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3114
3110
|
}, [
|
|
3115
|
-
e.title ? (g(),
|
|
3111
|
+
e.title ? (g(), T("title", Cl, K(e.title), 1)) : D("", !0),
|
|
3116
3112
|
wl
|
|
3117
3113
|
], 8, kl))
|
|
3118
3114
|
]),
|
|
@@ -3122,7 +3118,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3122
3118
|
}), xl = /* @__PURE__ */ Ve(Sl, [["__scopeId", "data-v-d9894a05"]]), Il = {
|
|
3123
3119
|
class: "config-card-title",
|
|
3124
3120
|
"data-testid": "config-card-title"
|
|
3125
|
-
}, Al = { class: "config-card-actions" }, _l = ["href"],
|
|
3121
|
+
}, Al = { class: "config-card-actions" }, _l = ["href"], Tl = { class: "config-card-details-section" }, Nl = /* @__PURE__ */ H({
|
|
3126
3122
|
__name: "EntityBaseConfigCard",
|
|
3127
3123
|
props: {
|
|
3128
3124
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3251,21 +3247,21 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3251
3247
|
// the last property displayed
|
|
3252
3248
|
section: se.Basic
|
|
3253
3249
|
}
|
|
3254
|
-
}, f = B(!1), S = B(!1),
|
|
3255
|
-
var p,
|
|
3256
|
-
if (!
|
|
3250
|
+
}, f = B(!1), S = B(!1), N = B(""), C = B({}), O = x(() => {
|
|
3251
|
+
var p, k, M;
|
|
3252
|
+
if (!C.value)
|
|
3257
3253
|
return [];
|
|
3258
|
-
const
|
|
3259
|
-
for (const L in
|
|
3260
|
-
const
|
|
3261
|
-
let J =
|
|
3262
|
-
(P || P === 0) && (J = P === -1 ?
|
|
3254
|
+
const $ = [], q = Object.keys(C.value).length;
|
|
3255
|
+
for (const L in C.value) {
|
|
3256
|
+
const j = (k = (p = a.configSchema) == null ? void 0 : p[L]) == null ? void 0 : k.order, P = (M = y[L]) == null ? void 0 : M.order;
|
|
3257
|
+
let J = q;
|
|
3258
|
+
(P || P === 0) && (J = P === -1 ? q + 1 : P), j && (J = j === -1 ? q + 1 : j), $.push([L, J]);
|
|
3263
3259
|
}
|
|
3264
|
-
return
|
|
3265
|
-
return L[1] -
|
|
3266
|
-
}),
|
|
3267
|
-
var
|
|
3268
|
-
const J = L[0], oe = (
|
|
3260
|
+
return $.sort(function(L, j) {
|
|
3261
|
+
return L[1] - j[1];
|
|
3262
|
+
}), $.map((L) => {
|
|
3263
|
+
var j, P;
|
|
3264
|
+
const J = L[0], oe = (j = C.value) == null ? void 0 : j[J], le = ((P = a.configSchema) == null ? void 0 : P[J]) || {}, de = y[J];
|
|
3269
3265
|
return {
|
|
3270
3266
|
key: J,
|
|
3271
3267
|
value: oe,
|
|
@@ -3277,20 +3273,20 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3277
3273
|
};
|
|
3278
3274
|
}).filter((L) => !L.hidden && L.key !== a.pluginConfigKey);
|
|
3279
3275
|
}), I = x(() => {
|
|
3280
|
-
var p,
|
|
3281
|
-
if (!
|
|
3276
|
+
var p, k;
|
|
3277
|
+
if (!C.value || !a.pluginConfigKey)
|
|
3282
3278
|
return [];
|
|
3283
|
-
const M =
|
|
3279
|
+
const M = C.value[a.pluginConfigKey] || {}, $ = Object.keys(M).length, q = [];
|
|
3284
3280
|
for (const L in M) {
|
|
3285
|
-
const
|
|
3286
|
-
let J = P != null && P !== "" ?
|
|
3287
|
-
|
|
3281
|
+
const j = (k = (p = a.pluginConfigSchema) == null ? void 0 : p[L]) == null ? void 0 : k.order, P = M[L];
|
|
3282
|
+
let J = P != null && P !== "" ? $ - 1 : $;
|
|
3283
|
+
j && (J = j === -1 ? $ + 1 : j), q.push([L, J]);
|
|
3288
3284
|
}
|
|
3289
|
-
return
|
|
3290
|
-
return L[1] -
|
|
3291
|
-
}),
|
|
3292
|
-
var
|
|
3293
|
-
const P = L[0], J = M[P], oe = ((
|
|
3285
|
+
return q.sort(function(L, j) {
|
|
3286
|
+
return L[1] - j[1];
|
|
3287
|
+
}), q.map((L) => {
|
|
3288
|
+
var j;
|
|
3289
|
+
const P = L[0], J = M[P], oe = ((j = a.pluginConfigSchema) == null ? void 0 : j[P]) || {};
|
|
3294
3290
|
return {
|
|
3295
3291
|
key: P,
|
|
3296
3292
|
value: J,
|
|
@@ -3301,20 +3297,20 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3301
3297
|
section: se.Plugin
|
|
3302
3298
|
};
|
|
3303
3299
|
}).filter((L) => !L.hidden);
|
|
3304
|
-
}),
|
|
3305
|
-
var p,
|
|
3300
|
+
}), w = x(() => {
|
|
3301
|
+
var p, k, M, $;
|
|
3306
3302
|
return {
|
|
3307
|
-
basic: (p = O.value) == null ? void 0 : p.filter((
|
|
3308
|
-
advanced: (
|
|
3309
|
-
plugin: (
|
|
3303
|
+
basic: (p = O.value) == null ? void 0 : p.filter((q) => q.section === se.Basic),
|
|
3304
|
+
advanced: (k = O.value) == null ? void 0 : k.filter((q) => q.section === se.Advanced),
|
|
3305
|
+
plugin: ($ = I.value) == null ? void 0 : $.concat((M = O.value) == null ? void 0 : M.filter((q) => q.section === se.Plugin))
|
|
3310
3306
|
};
|
|
3311
3307
|
}), m = x(() => {
|
|
3312
3308
|
const p = [];
|
|
3313
|
-
return
|
|
3309
|
+
return w.value.basic.length && p.push("basic"), w.value.advanced.length && p.push("advanced"), w.value.plugin.length && p.push("plugin"), p;
|
|
3314
3310
|
}), v = x(() => {
|
|
3315
|
-
var p,
|
|
3311
|
+
var p, k;
|
|
3316
3312
|
let M = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3317
|
-
return a.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (
|
|
3313
|
+
return a.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (k = a.config) != null && k.workspace ? `/${a.config.workspace}` : "")), M = M.replace(/{id}/gi, a.config.entityId), M;
|
|
3318
3314
|
});
|
|
3319
3315
|
return Ae(f, (p) => {
|
|
3320
3316
|
i("loading", p);
|
|
@@ -3324,26 +3320,26 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3324
3320
|
const { data: p } = await s.get(v.value);
|
|
3325
3321
|
if (a.dataKey)
|
|
3326
3322
|
if (typeof p[a.dataKey] < "u")
|
|
3327
|
-
|
|
3323
|
+
C.value = { ...p[a.dataKey] };
|
|
3328
3324
|
else
|
|
3329
3325
|
throw new Error(o("errors.dataKeyUndefined", { dataKey: a.dataKey }));
|
|
3330
3326
|
else
|
|
3331
|
-
|
|
3332
|
-
Object.keys(a.configSchema).filter((
|
|
3333
|
-
|
|
3327
|
+
C.value = { ...p };
|
|
3328
|
+
Object.keys(a.configSchema).filter((k) => a.configSchema[k].forceShow).forEach((k) => {
|
|
3329
|
+
C.value && typeof C.value[k] > "u" && (C.value[k] = null);
|
|
3334
3330
|
}), i("fetch:success", p);
|
|
3335
3331
|
} catch (p) {
|
|
3336
|
-
const
|
|
3337
|
-
|
|
3332
|
+
const k = r(p);
|
|
3333
|
+
N.value = k.startsWith("code") ? o("baseConfigCard.errors.load") : k, S.value = !0, i("fetch:error", p);
|
|
3338
3334
|
} finally {
|
|
3339
3335
|
f.value = !1;
|
|
3340
3336
|
}
|
|
3341
|
-
}), (p,
|
|
3342
|
-
const M = R("KLabel"),
|
|
3337
|
+
}), (p, k) => {
|
|
3338
|
+
const M = R("KLabel"), $ = R("KSelect"), q = R("KButton"), L = R("KSkeleton"), j = R("KEmptyState"), P = R("KCard");
|
|
3343
3339
|
return g(), U(P, {
|
|
3344
3340
|
class: "kong-ui-entity-base-config-card",
|
|
3345
3341
|
"title-tag": e.titleTag
|
|
3346
|
-
},
|
|
3342
|
+
}, je({
|
|
3347
3343
|
actions: h(() => [
|
|
3348
3344
|
E("div", Al, [
|
|
3349
3345
|
Y(p.$slots, "actions", {}, void 0, !0),
|
|
@@ -3356,12 +3352,12 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3356
3352
|
]),
|
|
3357
3353
|
_: 1
|
|
3358
3354
|
}),
|
|
3359
|
-
_(
|
|
3355
|
+
_($, {
|
|
3360
3356
|
"data-testid": "select-config-format",
|
|
3361
3357
|
items: c,
|
|
3362
3358
|
onChange: u
|
|
3363
3359
|
}),
|
|
3364
|
-
e.configCardDoc ? (g(), U(
|
|
3360
|
+
e.configCardDoc ? (g(), U(q, {
|
|
3365
3361
|
key: 0,
|
|
3366
3362
|
appearance: "tertiary",
|
|
3367
3363
|
class: "book-icon",
|
|
@@ -3373,7 +3369,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3373
3369
|
rel: "noopener",
|
|
3374
3370
|
target: "_blank"
|
|
3375
3371
|
}, [
|
|
3376
|
-
_(
|
|
3372
|
+
_(b(ol), { size: b(li) }, null, 8, ["size"])
|
|
3377
3373
|
], 8, _l)
|
|
3378
3374
|
]),
|
|
3379
3375
|
_: 1
|
|
@@ -3386,25 +3382,25 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3386
3382
|
"data-testid": "config-card-loader",
|
|
3387
3383
|
"table-columns": 2,
|
|
3388
3384
|
type: "table"
|
|
3389
|
-
})) : S.value ? (g(), U(
|
|
3385
|
+
})) : S.value ? (g(), U(j, {
|
|
3390
3386
|
key: 1,
|
|
3391
3387
|
"data-testid": "config-card-fetch-error",
|
|
3392
3388
|
"icon-variant": "error"
|
|
3393
3389
|
}, {
|
|
3394
3390
|
default: h(() => [
|
|
3395
|
-
E("h3", null, K(
|
|
3391
|
+
E("h3", null, K(N.value), 1)
|
|
3396
3392
|
]),
|
|
3397
3393
|
_: 1
|
|
3398
3394
|
})) : D("", !0),
|
|
3399
|
-
E("div",
|
|
3395
|
+
E("div", Tl, [
|
|
3400
3396
|
_(Wo, {
|
|
3401
3397
|
config: e.config,
|
|
3402
3398
|
"fetcher-url": v.value,
|
|
3403
3399
|
format: d.value,
|
|
3404
3400
|
"prop-list-types": m.value,
|
|
3405
|
-
"property-collections":
|
|
3406
|
-
record:
|
|
3407
|
-
},
|
|
3401
|
+
"property-collections": w.value,
|
|
3402
|
+
record: C.value
|
|
3403
|
+
}, je({ _: 2 }, [
|
|
3408
3404
|
ce(Object.keys(p.$slots), (J) => ({
|
|
3409
3405
|
name: J,
|
|
3410
3406
|
fn: h(({ row: oe, rowValue: le }) => [
|
|
@@ -3424,7 +3420,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3424
3420
|
fn: h(() => [
|
|
3425
3421
|
E("span", Il, [
|
|
3426
3422
|
Y(p.$slots, "title", {}, () => [
|
|
3427
|
-
z(K(
|
|
3423
|
+
z(K(b(o)("baseConfigCard.title")), 1)
|
|
3428
3424
|
], !0)
|
|
3429
3425
|
])
|
|
3430
3426
|
]),
|
|
@@ -3433,7 +3429,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3433
3429
|
]), 1032, ["title-tag"]);
|
|
3434
3430
|
};
|
|
3435
3431
|
}
|
|
3436
|
-
}),
|
|
3432
|
+
}), $l = /* @__PURE__ */ ue(Nl, [["__scopeId", "data-v-f40a683b"]]), jl = ["novalidate"], Ol = {
|
|
3437
3433
|
class: "form-actions",
|
|
3438
3434
|
"data-testid": "form-actions"
|
|
3439
3435
|
}, Ml = /* @__PURE__ */ H({
|
|
@@ -3509,15 +3505,15 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3509
3505
|
var m, v;
|
|
3510
3506
|
let p = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3511
3507
|
return a.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((m = a.config) == null ? void 0 : m.controlPlaneId) || "") : a.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (v = a.config) != null && v.workspace ? `/${a.config.workspace}` : "")), a.editId ? (p = p.replace(/{id}/gi, a.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
|
|
3512
|
-
}),
|
|
3508
|
+
}), N = () => {
|
|
3513
3509
|
f.value = !f.value;
|
|
3514
|
-
},
|
|
3510
|
+
}, C = () => {
|
|
3515
3511
|
a.config.cancelRoute ? o.push(a.config.cancelRoute) : O();
|
|
3516
3512
|
}, O = () => {
|
|
3517
3513
|
i("cancel");
|
|
3518
3514
|
}, I = () => {
|
|
3519
3515
|
y.value || i("submit");
|
|
3520
|
-
},
|
|
3516
|
+
}, w = B([
|
|
3521
3517
|
{
|
|
3522
3518
|
title: r("baseForm.configuration.yaml"),
|
|
3523
3519
|
hash: "#yaml"
|
|
@@ -3542,24 +3538,24 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3542
3538
|
c.value = !1;
|
|
3543
3539
|
}
|
|
3544
3540
|
}), (m, v) => {
|
|
3545
|
-
const p = R("KSkeleton"),
|
|
3541
|
+
const p = R("KSkeleton"), k = R("KEmptyState"), M = R("KAlert"), $ = R("KButton"), q = R("KTabs"), L = R("KSlideout");
|
|
3546
3542
|
return g(), U(ye(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3547
3543
|
default: h(() => [
|
|
3548
3544
|
c.value ? (g(), U(p, {
|
|
3549
3545
|
key: 0,
|
|
3550
3546
|
type: "form"
|
|
3551
|
-
})) : d.value ? (g(), U(
|
|
3547
|
+
})) : d.value ? (g(), U(k, {
|
|
3552
3548
|
key: 1,
|
|
3553
|
-
"action-button-text":
|
|
3549
|
+
"action-button-text": b(r)("baseForm.actions.back"),
|
|
3554
3550
|
"data-testid": "form-fetch-error",
|
|
3555
3551
|
"icon-variant": "error",
|
|
3556
|
-
onClickAction:
|
|
3552
|
+
onClickAction: C
|
|
3557
3553
|
}, {
|
|
3558
3554
|
default: h(() => [
|
|
3559
3555
|
E("h3", null, K(u.value), 1)
|
|
3560
3556
|
]),
|
|
3561
3557
|
_: 1
|
|
3562
|
-
}, 8, ["action-button-text"])) : (g(),
|
|
3558
|
+
}, 8, ["action-button-text"])) : (g(), T("form", {
|
|
3563
3559
|
key: 2,
|
|
3564
3560
|
"data-testid": "form-content",
|
|
3565
3561
|
novalidate: a.noValidate,
|
|
@@ -3575,55 +3571,55 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3575
3571
|
}, null, 8, ["message"])) : D("", !0),
|
|
3576
3572
|
E("div", Ol, [
|
|
3577
3573
|
Y(m.$slots, "form-actions", {}, () => [
|
|
3578
|
-
_(
|
|
3574
|
+
_($, {
|
|
3579
3575
|
appearance: "tertiary",
|
|
3580
3576
|
"data-testid": "form-view-configuration",
|
|
3581
|
-
onClick: v[0] || (v[0] = (
|
|
3577
|
+
onClick: v[0] || (v[0] = (j) => N())
|
|
3582
3578
|
}, {
|
|
3583
3579
|
default: h(() => [
|
|
3584
|
-
z(K(
|
|
3580
|
+
z(K(b(r)("baseForm.actions.viewConfiguration")), 1)
|
|
3585
3581
|
]),
|
|
3586
3582
|
_: 1
|
|
3587
3583
|
}),
|
|
3588
|
-
_(
|
|
3584
|
+
_($, {
|
|
3589
3585
|
appearance: "secondary",
|
|
3590
3586
|
"data-testid": "form-cancel",
|
|
3591
3587
|
disabled: e.isReadonly,
|
|
3592
3588
|
type: "reset"
|
|
3593
3589
|
}, {
|
|
3594
3590
|
default: h(() => [
|
|
3595
|
-
z(K(
|
|
3591
|
+
z(K(b(r)("baseForm.actions.cancel")), 1)
|
|
3596
3592
|
]),
|
|
3597
3593
|
_: 1
|
|
3598
3594
|
}, 8, ["disabled"]),
|
|
3599
|
-
_(
|
|
3595
|
+
_($, {
|
|
3600
3596
|
appearance: "primary",
|
|
3601
3597
|
"data-testid": "form-submit",
|
|
3602
3598
|
disabled: y.value,
|
|
3603
3599
|
type: "submit"
|
|
3604
3600
|
}, {
|
|
3605
3601
|
default: h(() => [
|
|
3606
|
-
z(K(
|
|
3602
|
+
z(K(b(r)("baseForm.actions.save")), 1)
|
|
3607
3603
|
]),
|
|
3608
3604
|
_: 1
|
|
3609
3605
|
}, 8, ["disabled"])
|
|
3610
3606
|
], !0)
|
|
3611
3607
|
])
|
|
3612
|
-
], 40,
|
|
3608
|
+
], 40, jl)),
|
|
3613
3609
|
_(L, {
|
|
3614
3610
|
"close-on-blur": !1,
|
|
3615
3611
|
"data-testid": "form-view-configuration-slideout",
|
|
3616
3612
|
"has-overlay": !1,
|
|
3617
3613
|
"offset-top": 60,
|
|
3618
|
-
title:
|
|
3614
|
+
title: b(r)("baseForm.configuration.title"),
|
|
3619
3615
|
visible: f.value,
|
|
3620
|
-
onClose: v[1] || (v[1] = (
|
|
3616
|
+
onClose: v[1] || (v[1] = (j) => N())
|
|
3621
3617
|
}, {
|
|
3622
3618
|
default: h(() => [
|
|
3623
|
-
E("div", null, K(
|
|
3624
|
-
_(
|
|
3619
|
+
E("div", null, K(b(r)("baseForm.configuration.message")), 1),
|
|
3620
|
+
_(q, {
|
|
3625
3621
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3626
|
-
tabs:
|
|
3622
|
+
tabs: w.value
|
|
3627
3623
|
}, {
|
|
3628
3624
|
json: h(() => [
|
|
3629
3625
|
_(dn, {
|
|
@@ -3648,7 +3644,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3648
3644
|
});
|
|
3649
3645
|
};
|
|
3650
3646
|
}
|
|
3651
|
-
}),
|
|
3647
|
+
}), ql = /* @__PURE__ */ ue(Ml, [["__scopeId", "data-v-fd05df8e"]]), Fl = ["data-truncate"], Bl = /* @__PURE__ */ H({
|
|
3652
3648
|
__name: "EntityBaseTableCell",
|
|
3653
3649
|
props: {
|
|
3654
3650
|
keyName: {
|
|
@@ -3666,68 +3662,68 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3666
3662
|
},
|
|
3667
3663
|
setup(e) {
|
|
3668
3664
|
const t = e, n = x(() => {
|
|
3669
|
-
var
|
|
3670
|
-
return ((
|
|
3665
|
+
var C;
|
|
3666
|
+
return ((C = t.rowEl) == null ? void 0 : C.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3671
3667
|
}), i = x(() => {
|
|
3672
|
-
var
|
|
3673
|
-
return ((
|
|
3668
|
+
var C;
|
|
3669
|
+
return ((C = n.value) == null ? void 0 : C.querySelector('[data-truncate="true"]')) || null;
|
|
3674
3670
|
}), a = x(() => {
|
|
3675
|
-
var
|
|
3676
|
-
const I = (
|
|
3671
|
+
var C, O;
|
|
3672
|
+
const I = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
|
|
3677
3673
|
return I ? ((O = I[0]) == null ? void 0 : O.getAttribute("data-testid")) === t.keyName : !0;
|
|
3678
3674
|
}), o = x(() => a.value || t.tooltip);
|
|
3679
3675
|
let r;
|
|
3680
3676
|
const l = () => {
|
|
3681
3677
|
r && (r.disconnect(), r = void 0);
|
|
3682
3678
|
}, s = () => {
|
|
3683
|
-
var
|
|
3684
|
-
let
|
|
3679
|
+
var C, O, I;
|
|
3680
|
+
let w = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
|
|
3685
3681
|
if (n.value && "getComputedStyle" in window) {
|
|
3686
3682
|
const m = window.getComputedStyle(n.value);
|
|
3687
|
-
|
|
3683
|
+
w -= (parseFloat(m.paddingLeft) || 0) + (parseFloat(m.paddingRight) || 0);
|
|
3688
3684
|
}
|
|
3689
|
-
d.value = ((O = i.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, u.value =
|
|
3685
|
+
d.value = ((O = i.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, u.value = w, y.value = ((I = c.value) == null ? void 0 : I.innerText) || "";
|
|
3690
3686
|
}, c = B({}), d = B(0), u = B(0), y = B(""), f = x(() => [i.value, n.value]), S = Ae(
|
|
3691
3687
|
f,
|
|
3692
|
-
(
|
|
3688
|
+
(C) => {
|
|
3693
3689
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
3694
3690
|
r = new ResizeObserver((O) => {
|
|
3695
3691
|
window.requestAnimationFrame(() => {
|
|
3696
3692
|
!Array.isArray(O) || !O.length || s();
|
|
3697
3693
|
});
|
|
3698
3694
|
});
|
|
3699
|
-
for (const O of
|
|
3695
|
+
for (const O of C)
|
|
3700
3696
|
O && r.observe(O);
|
|
3701
3697
|
}
|
|
3702
3698
|
},
|
|
3703
3699
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3704
|
-
),
|
|
3700
|
+
), N = x(() => o.value ? d.value > u.value : !1);
|
|
3705
3701
|
return oa(() => {
|
|
3706
3702
|
s();
|
|
3707
3703
|
}), la(() => {
|
|
3708
3704
|
S();
|
|
3709
|
-
}), (
|
|
3705
|
+
}), (C, O) => {
|
|
3710
3706
|
const I = R("KTooltip");
|
|
3711
|
-
return g(),
|
|
3707
|
+
return g(), T("span", {
|
|
3712
3708
|
ref_key: "contentRef",
|
|
3713
3709
|
ref: c,
|
|
3714
3710
|
class: "content-wrapper"
|
|
3715
3711
|
}, [
|
|
3716
|
-
o.value ? (g(),
|
|
3712
|
+
o.value ? (g(), T("span", {
|
|
3717
3713
|
key: 0,
|
|
3718
3714
|
"data-truncate": o.value || void 0
|
|
3719
3715
|
}, [
|
|
3720
3716
|
_(I, {
|
|
3721
3717
|
"max-width": "300",
|
|
3722
3718
|
placement: "bottom-start",
|
|
3723
|
-
text:
|
|
3719
|
+
text: N.value ? y.value : ""
|
|
3724
3720
|
}, {
|
|
3725
3721
|
default: h(() => [
|
|
3726
|
-
Y(
|
|
3722
|
+
Y(C.$slots, "default", {}, void 0, !0)
|
|
3727
3723
|
]),
|
|
3728
3724
|
_: 3
|
|
3729
3725
|
}, 8, ["text"])
|
|
3730
|
-
], 8,
|
|
3726
|
+
], 8, Fl)) : Y(C.$slots, "default", { key: 1 }, void 0, !0)
|
|
3731
3727
|
], 512);
|
|
3732
3728
|
};
|
|
3733
3729
|
}
|
|
@@ -3853,7 +3849,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3853
3849
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3854
3850
|
setup(e, { emit: t }) {
|
|
3855
3851
|
const n = e, i = t, { i18n: { t: a } } = X.useI18n(), o = x(() => {
|
|
3856
|
-
var p,
|
|
3852
|
+
var p, k;
|
|
3857
3853
|
return typeof n.errorMessage == "string" ? {
|
|
3858
3854
|
hasError: !!n.errorMessage,
|
|
3859
3855
|
title: n.errorMessage,
|
|
@@ -3861,15 +3857,15 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3861
3857
|
} : {
|
|
3862
3858
|
hasError: !!n.errorMessage,
|
|
3863
3859
|
title: (p = n.errorMessage) == null ? void 0 : p.title,
|
|
3864
|
-
message: (
|
|
3860
|
+
message: (k = n.errorMessage) == null ? void 0 : k.message
|
|
3865
3861
|
};
|
|
3866
3862
|
}), r = x(() => n.cacheIdentifier || n.preferencesStorageKey), l = (p) => p.hasData || !!n.query, s = x(() => {
|
|
3867
3863
|
const p = [];
|
|
3868
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3869
|
-
const M = n.tableHeaders[
|
|
3864
|
+
return Object.keys(n.tableHeaders).forEach((k) => {
|
|
3865
|
+
const M = n.tableHeaders[k];
|
|
3870
3866
|
p.push({
|
|
3871
|
-
label: M.label ??
|
|
3872
|
-
key:
|
|
3867
|
+
label: M.label ?? k,
|
|
3868
|
+
key: k,
|
|
3873
3869
|
sortable: M.sortable ?? !1,
|
|
3874
3870
|
hidable: M.hidable ?? !0
|
|
3875
3871
|
});
|
|
@@ -3882,57 +3878,57 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3882
3878
|
"data-testid": p.name,
|
|
3883
3879
|
...n.rowAttributes(p)
|
|
3884
3880
|
}), d = B({}), u = (p) => {
|
|
3885
|
-
var
|
|
3886
|
-
return (
|
|
3881
|
+
var k;
|
|
3882
|
+
return (k = d.value) == null ? void 0 : k.$el.querySelector(`[data-rowid="${p.id}"]`);
|
|
3887
3883
|
}, y = (p) => {
|
|
3888
|
-
const
|
|
3884
|
+
const k = {
|
|
3889
3885
|
"data-testid": p.headerKey,
|
|
3890
3886
|
...n.cellAttributes(p)
|
|
3891
3887
|
};
|
|
3892
|
-
return p.colIndex === 0 && (
|
|
3888
|
+
return p.colIndex === 0 && (k.style = {
|
|
3893
3889
|
maxWidth: "250px",
|
|
3894
3890
|
overflowX: "hidden",
|
|
3895
3891
|
textOverflow: "ellipsis"
|
|
3896
|
-
}),
|
|
3892
|
+
}), k;
|
|
3897
3893
|
}, f = () => {
|
|
3898
3894
|
i("empty-state-cta-clicked"), S();
|
|
3899
3895
|
}, S = () => {
|
|
3900
3896
|
i("clear-search-input");
|
|
3901
|
-
},
|
|
3902
|
-
i("click:row",
|
|
3903
|
-
}),
|
|
3897
|
+
}, N = x(() => n.disableRowClick ? void 0 : (p, k) => {
|
|
3898
|
+
i("click:row", k);
|
|
3899
|
+
}), C = (p) => {
|
|
3904
3900
|
i("sort", p);
|
|
3905
|
-
}, { setTablePreferences: O, getTablePreferences: I } = Aa(),
|
|
3901
|
+
}, { setTablePreferences: O, getTablePreferences: I } = Aa(), w = B(I(r.value)), m = x(() => {
|
|
3906
3902
|
const p = I(r.value);
|
|
3907
3903
|
return {
|
|
3908
3904
|
...n.initialFetcherParams,
|
|
3909
3905
|
...p
|
|
3910
3906
|
};
|
|
3911
3907
|
}), v = (p) => {
|
|
3912
|
-
|
|
3913
|
-
!("hidable" in
|
|
3908
|
+
w.value = p, s.value.forEach((k) => {
|
|
3909
|
+
!("hidable" in k) || !w.value.columnVisibility || k.hidable === !1 && (w.value.columnVisibility[k.key] = !0);
|
|
3914
3910
|
}), r.value && O(r.value, p);
|
|
3915
3911
|
};
|
|
3916
|
-
return (p,
|
|
3917
|
-
const M = R("KButton"),
|
|
3912
|
+
return (p, k) => {
|
|
3913
|
+
const M = R("KButton"), $ = R("KDropdown"), q = R("KTable"), L = R("KCard");
|
|
3918
3914
|
return g(), U(L, {
|
|
3919
3915
|
class: "kong-ui-entity-base-table",
|
|
3920
3916
|
title: e.title,
|
|
3921
3917
|
"title-tag": e.titleTag
|
|
3922
3918
|
}, {
|
|
3923
3919
|
default: h(() => [
|
|
3924
|
-
_(
|
|
3920
|
+
_(q, {
|
|
3925
3921
|
ref_key: "tableRefs",
|
|
3926
3922
|
ref: d,
|
|
3927
3923
|
"cache-identifier": r.value,
|
|
3928
3924
|
"cell-attrs": y,
|
|
3929
3925
|
"client-sort": e.enableClientSort,
|
|
3930
3926
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3931
|
-
"empty-state-action-message": e.query ?
|
|
3927
|
+
"empty-state-action-message": e.query ? b(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3932
3928
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3933
3929
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3934
|
-
"empty-state-message": e.query ?
|
|
3935
|
-
"empty-state-title": e.query ?
|
|
3930
|
+
"empty-state-message": e.query ? b(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3931
|
+
"empty-state-title": e.query ? b(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3936
3932
|
error: o.value.hasError,
|
|
3937
3933
|
"error-state-message": o.value.message,
|
|
3938
3934
|
"error-state-title": o.value.title,
|
|
@@ -3948,34 +3944,34 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3948
3944
|
"search-input": e.query,
|
|
3949
3945
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3950
3946
|
sortable: !e.disableSorting,
|
|
3951
|
-
"table-preferences":
|
|
3947
|
+
"table-preferences": w.value,
|
|
3952
3948
|
onEmptyStateActionClick: f,
|
|
3953
|
-
"onRow:click":
|
|
3954
|
-
onSort:
|
|
3949
|
+
"onRow:click": N.value,
|
|
3950
|
+
onSort: k[0] || (k[0] = (j) => C(j)),
|
|
3955
3951
|
"onUpdate:tablePreferences": v
|
|
3956
|
-
},
|
|
3957
|
-
toolbar: h(({ state:
|
|
3952
|
+
}, je({
|
|
3953
|
+
toolbar: h(({ state: j }) => [
|
|
3958
3954
|
ve(E("div", Ll, [
|
|
3959
3955
|
Y(p.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3960
|
-
p.$slots["toolbar-button"] ? (g(),
|
|
3956
|
+
p.$slots["toolbar-button"] ? (g(), T("div", El, [
|
|
3961
3957
|
Y(p.$slots, "toolbar-button", {}, void 0, !0)
|
|
3962
3958
|
])) : D("", !0)
|
|
3963
3959
|
], 512), [
|
|
3964
|
-
[be, l(
|
|
3960
|
+
[be, l(j)]
|
|
3965
3961
|
])
|
|
3966
3962
|
]),
|
|
3967
|
-
actions: h(({ row:
|
|
3963
|
+
actions: h(({ row: j, rowKey: P, rowValue: J }) => [
|
|
3968
3964
|
E("div", {
|
|
3969
3965
|
class: "actions-container",
|
|
3970
|
-
"data-testid":
|
|
3966
|
+
"data-testid": j.name
|
|
3971
3967
|
}, [
|
|
3972
|
-
_(
|
|
3968
|
+
_($, {
|
|
3973
3969
|
"kpop-attributes": { placement: "bottom-end" },
|
|
3974
3970
|
width: e.dropdownMenuWidth
|
|
3975
3971
|
}, {
|
|
3976
3972
|
items: h(() => [
|
|
3977
3973
|
Y(p.$slots, "actions", {
|
|
3978
|
-
row:
|
|
3974
|
+
row: j,
|
|
3979
3975
|
rowKey: P,
|
|
3980
3976
|
rowValue: J
|
|
3981
3977
|
}, void 0, !0)
|
|
@@ -3989,7 +3985,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3989
3985
|
size: "small"
|
|
3990
3986
|
}, {
|
|
3991
3987
|
default: h(() => [
|
|
3992
|
-
_(
|
|
3988
|
+
_(b(xl))
|
|
3993
3989
|
]),
|
|
3994
3990
|
_: 1
|
|
3995
3991
|
})
|
|
@@ -4000,13 +3996,13 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4000
3996
|
]),
|
|
4001
3997
|
_: 2
|
|
4002
3998
|
}, [
|
|
4003
|
-
ce(e.tableHeaders, (
|
|
3999
|
+
ce(e.tableHeaders, (j, P) => ({
|
|
4004
4000
|
name: P,
|
|
4005
4001
|
fn: h(({ row: J, rowKey: oe, rowValue: le }) => [
|
|
4006
4002
|
_(Kl, {
|
|
4007
4003
|
"key-name": String(P),
|
|
4008
4004
|
"row-el": u(J),
|
|
4009
|
-
tooltip:
|
|
4005
|
+
tooltip: j.tooltip
|
|
4010
4006
|
}, {
|
|
4011
4007
|
default: h(() => [
|
|
4012
4008
|
Y(p.$slots, P, {
|
|
@@ -4024,7 +4020,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4024
4020
|
e.query ? void 0 : {
|
|
4025
4021
|
name: "empty-state-action-icon",
|
|
4026
4022
|
fn: h(() => [
|
|
4027
|
-
_(
|
|
4023
|
+
_(b(el))
|
|
4028
4024
|
]),
|
|
4029
4025
|
key: "0"
|
|
4030
4026
|
}
|
|
@@ -4098,7 +4094,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4098
4094
|
onProceed: l
|
|
4099
4095
|
}, {
|
|
4100
4096
|
default: h(() => [
|
|
4101
|
-
e.error ? (g(),
|
|
4097
|
+
e.error ? (g(), T("div", Dl, [
|
|
4102
4098
|
_(d, { appearance: "danger" }, {
|
|
4103
4099
|
default: h(() => [
|
|
4104
4100
|
z(K(e.error), 1)
|
|
@@ -4106,11 +4102,11 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4106
4102
|
_: 1
|
|
4107
4103
|
})
|
|
4108
4104
|
])) : D("", !0),
|
|
4109
|
-
_(
|
|
4105
|
+
_(b(n), {
|
|
4110
4106
|
class: "message",
|
|
4111
4107
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4112
4108
|
tag: "p"
|
|
4113
|
-
},
|
|
4109
|
+
}, je({
|
|
4114
4110
|
entityType: h(() => [
|
|
4115
4111
|
z(K(i.entityType), 1)
|
|
4116
4112
|
]),
|
|
@@ -4124,7 +4120,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4124
4120
|
key: "0"
|
|
4125
4121
|
} : void 0
|
|
4126
4122
|
]), 1032, ["keypath"]),
|
|
4127
|
-
i.description || s.$slots.description ? (g(),
|
|
4123
|
+
i.description || s.$slots.description ? (g(), T("div", Pl, [
|
|
4128
4124
|
Y(s.$slots, "description", {}, () => [
|
|
4129
4125
|
E("p", null, K(i.description), 1)
|
|
4130
4126
|
], !0)
|
|
@@ -4157,7 +4153,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4157
4153
|
}
|
|
4158
4154
|
},
|
|
4159
4155
|
setup(e) {
|
|
4160
|
-
return (t, n) => (g(),
|
|
4156
|
+
return (t, n) => (g(), T("svg", Jl, [
|
|
4161
4157
|
E("mask", Wl, [
|
|
4162
4158
|
E("rect", {
|
|
4163
4159
|
fill: e.color,
|
|
@@ -4225,28 +4221,28 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4225
4221
|
a("update:modelValue", m);
|
|
4226
4222
|
}, f = () => {
|
|
4227
4223
|
y("");
|
|
4228
|
-
}, S = (m) => `filter-${m}`,
|
|
4224
|
+
}, S = (m) => `filter-${m}`, N = (m) => {
|
|
4229
4225
|
var v, p;
|
|
4230
|
-
return (((p = (v = i.config.schema) == null ? void 0 : v[m]) == null ? void 0 : p.values) ?? []).map((
|
|
4231
|
-
value:
|
|
4232
|
-
label:
|
|
4226
|
+
return (((p = (v = i.config.schema) == null ? void 0 : v[m]) == null ? void 0 : p.values) ?? []).map((k) => ({
|
|
4227
|
+
value: k,
|
|
4228
|
+
label: k
|
|
4233
4229
|
}));
|
|
4234
|
-
},
|
|
4230
|
+
}, C = (m) => {
|
|
4235
4231
|
var v, p;
|
|
4236
4232
|
return ((p = (v = i.config.schema) == null ? void 0 : v[m]) == null ? void 0 : p.type) ?? "text";
|
|
4237
4233
|
}, O = (m) => {
|
|
4238
4234
|
r.value = {
|
|
4239
4235
|
...r.value,
|
|
4240
4236
|
[m]: ""
|
|
4241
|
-
},
|
|
4237
|
+
}, w();
|
|
4242
4238
|
}, I = () => {
|
|
4243
|
-
r.value = {},
|
|
4244
|
-
},
|
|
4245
|
-
const v = Object.keys(r.value).reduce((p,
|
|
4239
|
+
r.value = {}, w(!0);
|
|
4240
|
+
}, w = (m = !1) => {
|
|
4241
|
+
const v = Object.keys(r.value).reduce((p, k) => (r.value[k] && (p[k] = `${r.value[k]}`), p), {});
|
|
4246
4242
|
m && (o.value = !1), a("update:modelValue", new URLSearchParams(v).toString());
|
|
4247
4243
|
};
|
|
4248
4244
|
return (m, v) => {
|
|
4249
|
-
const p = R("KInput"),
|
|
4245
|
+
const p = R("KInput"), k = R("KButton"), M = R("KSelect");
|
|
4250
4246
|
return e.config.isExactMatch ? (g(), U(p, {
|
|
4251
4247
|
key: 0,
|
|
4252
4248
|
autocomplete: "off",
|
|
@@ -4260,7 +4256,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4260
4256
|
_(Qt)
|
|
4261
4257
|
]),
|
|
4262
4258
|
after: h(() => [
|
|
4263
|
-
ve(_(
|
|
4259
|
+
ve(_(b(vl), {
|
|
4264
4260
|
class: "kong-ui-entity-filter-clear",
|
|
4265
4261
|
onClick: f
|
|
4266
4262
|
}, null, 512), [
|
|
@@ -4268,15 +4264,15 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4268
4264
|
])
|
|
4269
4265
|
]),
|
|
4270
4266
|
_: 1
|
|
4271
|
-
}, 8, ["model-value", "placeholder"])) : (g(),
|
|
4272
|
-
_(
|
|
4267
|
+
}, 8, ["model-value", "placeholder"])) : (g(), T("div", Ql, [
|
|
4268
|
+
_(k, {
|
|
4273
4269
|
appearance: "tertiary",
|
|
4274
4270
|
"data-testid": "filter-button",
|
|
4275
4271
|
onClick: d
|
|
4276
4272
|
}, {
|
|
4277
4273
|
default: h(() => [
|
|
4278
4274
|
_(Qt),
|
|
4279
|
-
z(" " + K(
|
|
4275
|
+
z(" " + K(b(n)("filter.filterButtonText")) + " " + K(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4280
4276
|
]),
|
|
4281
4277
|
_: 1
|
|
4282
4278
|
}),
|
|
@@ -4287,89 +4283,89 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4287
4283
|
[be, o.value]
|
|
4288
4284
|
]),
|
|
4289
4285
|
ve(E("div", Xl, [
|
|
4290
|
-
(g(!0),
|
|
4291
|
-
var
|
|
4292
|
-
return g(),
|
|
4293
|
-
key:
|
|
4286
|
+
(g(!0), T(pe, null, ce(c.value, ($) => {
|
|
4287
|
+
var q, L;
|
|
4288
|
+
return g(), T("div", {
|
|
4289
|
+
key: $.value,
|
|
4294
4290
|
class: "kong-ui-entity-filter-menu-item",
|
|
4295
|
-
"data-testid":
|
|
4291
|
+
"data-testid": $.value
|
|
4296
4292
|
}, [
|
|
4297
4293
|
E("span", {
|
|
4298
|
-
class: Ce(["menu-item-title", { expanded: l.value.has(
|
|
4294
|
+
class: Ce(["menu-item-title", { expanded: l.value.has($.value) }]),
|
|
4299
4295
|
role: "button",
|
|
4300
4296
|
tabindex: "0",
|
|
4301
|
-
onClick: (
|
|
4302
|
-
onKeydown: ia((
|
|
4297
|
+
onClick: (j) => u($.value),
|
|
4298
|
+
onKeydown: ia((j) => u($.value), ["enter"])
|
|
4303
4299
|
}, [
|
|
4304
|
-
z(K(
|
|
4300
|
+
z(K($.label) + " ", 1),
|
|
4305
4301
|
ve(E("span", ns, null, 512), [
|
|
4306
|
-
[be, s.value.includes(
|
|
4302
|
+
[be, s.value.includes($.value)]
|
|
4307
4303
|
]),
|
|
4308
|
-
_(
|
|
4309
|
-
class: Ce(["menu-item-expand-icon", { expanded: l.value.has(
|
|
4310
|
-
color:
|
|
4304
|
+
_(b(pl), {
|
|
4305
|
+
class: Ce(["menu-item-expand-icon", { expanded: l.value.has($.value) }]),
|
|
4306
|
+
color: b(ri)
|
|
4311
4307
|
}, null, 8, ["class", "color"])
|
|
4312
4308
|
], 42, ts),
|
|
4313
4309
|
ve(E("div", as, [
|
|
4314
4310
|
E("label", {
|
|
4315
4311
|
class: "menu-item-label",
|
|
4316
|
-
for: S(
|
|
4317
|
-
}, K(
|
|
4318
|
-
((L = (
|
|
4312
|
+
for: S($.value)
|
|
4313
|
+
}, K(b(n)("filter.fieldLabel")), 9, is),
|
|
4314
|
+
((L = (q = e.config.schema) == null ? void 0 : q[$.value]) == null ? void 0 : L.type) === "select" ? (g(), U(M, {
|
|
4319
4315
|
key: 0,
|
|
4320
|
-
id: S(
|
|
4321
|
-
modelValue: r.value[
|
|
4322
|
-
"onUpdate:modelValue": (
|
|
4323
|
-
items:
|
|
4324
|
-
placeholder:
|
|
4316
|
+
id: S($.value),
|
|
4317
|
+
modelValue: r.value[$.value],
|
|
4318
|
+
"onUpdate:modelValue": (j) => r.value[$.value] = j,
|
|
4319
|
+
items: N($.value),
|
|
4320
|
+
placeholder: b(n)("filter.selectPlaceholder")
|
|
4325
4321
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), U(p, {
|
|
4326
4322
|
key: 1,
|
|
4327
|
-
id: S(
|
|
4328
|
-
modelValue: r.value[
|
|
4329
|
-
"onUpdate:modelValue": (
|
|
4323
|
+
id: S($.value),
|
|
4324
|
+
modelValue: r.value[$.value],
|
|
4325
|
+
"onUpdate:modelValue": (j) => r.value[$.value] = j,
|
|
4330
4326
|
autocomplete: "off",
|
|
4331
|
-
placeholder:
|
|
4332
|
-
type:
|
|
4327
|
+
placeholder: b(n)("filter.inputPlaceholder"),
|
|
4328
|
+
type: C($.value)
|
|
4333
4329
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4334
4330
|
], 512), [
|
|
4335
|
-
[be, l.value.has(
|
|
4331
|
+
[be, l.value.has($.value)]
|
|
4336
4332
|
]),
|
|
4337
4333
|
ve(E("div", rs, [
|
|
4338
|
-
_(
|
|
4334
|
+
_(k, {
|
|
4339
4335
|
appearance: "tertiary",
|
|
4340
4336
|
"data-testid": "apply-filter",
|
|
4341
4337
|
size: "small",
|
|
4342
|
-
onClick: v[0] || (v[0] = (
|
|
4338
|
+
onClick: v[0] || (v[0] = (j) => w(!0))
|
|
4343
4339
|
}, {
|
|
4344
4340
|
default: h(() => [
|
|
4345
|
-
z(K(
|
|
4341
|
+
z(K(b(n)("filter.applyButtonText")), 1)
|
|
4346
4342
|
]),
|
|
4347
4343
|
_: 1
|
|
4348
4344
|
}),
|
|
4349
|
-
_(
|
|
4345
|
+
_(k, {
|
|
4350
4346
|
appearance: "tertiary",
|
|
4351
4347
|
"data-testid": "clear-filter",
|
|
4352
4348
|
size: "small",
|
|
4353
|
-
onClick: (
|
|
4349
|
+
onClick: (j) => O($.value)
|
|
4354
4350
|
}, {
|
|
4355
4351
|
default: h(() => [
|
|
4356
|
-
z(K(
|
|
4352
|
+
z(K(b(n)("filter.clearButtonText")), 1)
|
|
4357
4353
|
]),
|
|
4358
4354
|
_: 2
|
|
4359
4355
|
}, 1032, ["onClick"])
|
|
4360
4356
|
], 512), [
|
|
4361
|
-
[be, l.value.has(
|
|
4357
|
+
[be, l.value.has($.value)]
|
|
4362
4358
|
])
|
|
4363
4359
|
], 8, es);
|
|
4364
4360
|
}), 128)),
|
|
4365
4361
|
E("div", os, [
|
|
4366
|
-
_(
|
|
4362
|
+
_(k, {
|
|
4367
4363
|
appearance: "tertiary",
|
|
4368
4364
|
size: "small",
|
|
4369
4365
|
onClick: I
|
|
4370
4366
|
}, {
|
|
4371
4367
|
default: h(() => [
|
|
4372
|
-
z(K(
|
|
4368
|
+
z(K(b(n)("filter.clearAllButtonText")), 1)
|
|
4373
4369
|
]),
|
|
4374
4370
|
_: 1
|
|
4375
4371
|
})
|
|
@@ -4476,19 +4472,19 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4476
4472
|
},
|
|
4477
4473
|
setup(e) {
|
|
4478
4474
|
const t = yt(), n = fs();
|
|
4479
|
-
return (i, a) => (g(),
|
|
4480
|
-
"aria-labelledby": e.title ?
|
|
4475
|
+
return (i, a) => (g(), T("div", {
|
|
4476
|
+
"aria-labelledby": e.title ? b(n) : void 0,
|
|
4481
4477
|
class: Ce(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4482
4478
|
role: "group"
|
|
4483
4479
|
}, [
|
|
4484
4480
|
E("div", ys, [
|
|
4485
|
-
e.hideInfoHeader ? D("", !0) : (g(),
|
|
4481
|
+
e.hideInfoHeader ? D("", !0) : (g(), T("div", {
|
|
4486
4482
|
key: 0,
|
|
4487
4483
|
class: Ce(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4488
4484
|
}, [
|
|
4489
4485
|
e.title ? (g(), U(ye(e.titleTag), {
|
|
4490
4486
|
key: 0,
|
|
4491
|
-
id:
|
|
4487
|
+
id: b(n),
|
|
4492
4488
|
class: "form-section-title"
|
|
4493
4489
|
}, {
|
|
4494
4490
|
default: h(() => [
|
|
@@ -4496,12 +4492,12 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4496
4492
|
]),
|
|
4497
4493
|
_: 1
|
|
4498
4494
|
}, 8, ["id"])) : D("", !0),
|
|
4499
|
-
e.description ||
|
|
4495
|
+
e.description || b(t).description ? (g(), T("div", ms, [
|
|
4500
4496
|
Y(i.$slots, "description", {}, () => [
|
|
4501
4497
|
E("p", null, K(e.description), 1)
|
|
4502
4498
|
], !0)
|
|
4503
4499
|
])) : D("", !0),
|
|
4504
|
-
|
|
4500
|
+
b(t).footer ? (g(), T("div", hs, [
|
|
4505
4501
|
Y(i.$slots, "footer", {}, void 0, !0)
|
|
4506
4502
|
])) : D("", !0)
|
|
4507
4503
|
], 2)),
|
|
@@ -4511,7 +4507,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4511
4507
|
])
|
|
4512
4508
|
], 10, gs));
|
|
4513
4509
|
}
|
|
4514
|
-
}), ks = /* @__PURE__ */ ue(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ea, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator:
|
|
4510
|
+
}), ks = /* @__PURE__ */ ue(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ea, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator: Fs, useFetchUrlBuilder: Bs, useFetcher: Ss, useDebouncedFilter: Ks, useStringHelpers: Ls, useHelpers: Es, useGatewayFeatureSupported: Rs, useTruncationDetector: Us, useValidators: Vs } = X, xs = { class: "kong-ui-entities-key-sets-list" }, Is = { key: 1 }, As = /* @__PURE__ */ H({
|
|
4515
4511
|
__name: "KeySetList",
|
|
4516
4512
|
props: {
|
|
4517
4513
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4565,89 +4561,89 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4565
4561
|
id: { label: a("keySets.list.table_headers.id"), sortable: !0 }
|
|
4566
4562
|
}, d = c, u = x(() => {
|
|
4567
4563
|
var V, ee;
|
|
4568
|
-
let
|
|
4569
|
-
return i.config.app === "konnect" ?
|
|
4564
|
+
let F = `${i.config.apiBaseUrl}${He.list[i.config.app]}`;
|
|
4565
|
+
return i.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((V = i.config) == null ? void 0 : V.controlPlaneId) || "") : i.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (ee = i.config) != null && ee.workspace ? `/${i.config.workspace}` : "")), F;
|
|
4570
4566
|
}), y = B(""), f = x(() => {
|
|
4571
|
-
const
|
|
4572
|
-
if (
|
|
4567
|
+
const F = i.config.app === "konnect" || i.config.isExactMatch;
|
|
4568
|
+
if (F)
|
|
4573
4569
|
return {
|
|
4574
|
-
isExactMatch:
|
|
4570
|
+
isExactMatch: F,
|
|
4575
4571
|
placeholder: a("keySets.search.placeholder")
|
|
4576
4572
|
};
|
|
4577
4573
|
const V = { name: c.name };
|
|
4578
4574
|
return {
|
|
4579
|
-
isExactMatch:
|
|
4575
|
+
isExactMatch: F,
|
|
4580
4576
|
fields: V,
|
|
4581
4577
|
schema: i.config.filterSchema
|
|
4582
4578
|
};
|
|
4583
|
-
}), { fetcher: S, fetcherState:
|
|
4579
|
+
}), { fetcher: S, fetcherState: N } = Ss(i.config, u.value), C = () => {
|
|
4584
4580
|
y.value = "";
|
|
4585
4581
|
}, O = () => {
|
|
4586
4582
|
l.value++;
|
|
4587
|
-
}, I = B(null),
|
|
4588
|
-
const ee =
|
|
4583
|
+
}, I = B(null), w = (F, V) => {
|
|
4584
|
+
const ee = F.id;
|
|
4589
4585
|
if (!V(ee)) {
|
|
4590
|
-
p(
|
|
4586
|
+
p(F, "id");
|
|
4591
4587
|
return;
|
|
4592
4588
|
}
|
|
4593
|
-
v(
|
|
4594
|
-
}, m = (
|
|
4595
|
-
const ee = JSON.stringify(
|
|
4589
|
+
v(F, "id");
|
|
4590
|
+
}, m = (F, V) => {
|
|
4591
|
+
const ee = JSON.stringify(F);
|
|
4596
4592
|
if (!V(ee)) {
|
|
4597
4593
|
n("copy:error", {
|
|
4598
|
-
entity:
|
|
4594
|
+
entity: F,
|
|
4599
4595
|
message: a("keySets.errors.copy")
|
|
4600
4596
|
});
|
|
4601
4597
|
return;
|
|
4602
4598
|
}
|
|
4603
4599
|
n("copy:success", {
|
|
4604
|
-
entity:
|
|
4600
|
+
entity: F,
|
|
4605
4601
|
message: a("keySets.copy.success_brief")
|
|
4606
4602
|
});
|
|
4607
|
-
}, v = (
|
|
4603
|
+
}, v = (F, V) => {
|
|
4608
4604
|
n("copy:success", {
|
|
4609
|
-
entity:
|
|
4605
|
+
entity: F,
|
|
4610
4606
|
field: V,
|
|
4611
|
-
message: a("keySets.copy.success", { val:
|
|
4607
|
+
message: a("keySets.copy.success", { val: F[V] })
|
|
4612
4608
|
});
|
|
4613
|
-
}, p = (
|
|
4609
|
+
}, p = (F, V) => {
|
|
4614
4610
|
n("copy:error", {
|
|
4615
|
-
entity:
|
|
4611
|
+
entity: F,
|
|
4616
4612
|
field: V,
|
|
4617
4613
|
message: a("keySets.errors.copy")
|
|
4618
4614
|
});
|
|
4619
|
-
},
|
|
4615
|
+
}, k = async (F) => {
|
|
4620
4616
|
var ee;
|
|
4621
|
-
await ((ee = i.canRetrieve) == null ? void 0 : ee.call(i,
|
|
4622
|
-
}, M = (
|
|
4617
|
+
await ((ee = i.canRetrieve) == null ? void 0 : ee.call(i, F)) && o.push(i.config.getViewRoute(F.id));
|
|
4618
|
+
}, M = (F) => ({
|
|
4623
4619
|
label: a("keySets.actions.view"),
|
|
4624
|
-
to: i.config.getViewRoute(
|
|
4625
|
-
}),
|
|
4620
|
+
to: i.config.getViewRoute(F)
|
|
4621
|
+
}), $ = (F) => ({
|
|
4626
4622
|
label: a("keySets.actions.edit"),
|
|
4627
|
-
to: i.config.getEditRoute(
|
|
4628
|
-
}),
|
|
4629
|
-
|
|
4623
|
+
to: i.config.getEditRoute(F)
|
|
4624
|
+
}), q = B(void 0), L = B(!1), j = B(!1), P = B(""), J = Cs(i.config, u.value), oe = (F) => {
|
|
4625
|
+
q.value = F, L.value = !0;
|
|
4630
4626
|
}, le = () => {
|
|
4631
4627
|
L.value = !1;
|
|
4632
4628
|
}, de = async () => {
|
|
4633
|
-
var
|
|
4634
|
-
if ((
|
|
4635
|
-
|
|
4629
|
+
var F, V, ee;
|
|
4630
|
+
if ((F = q.value) != null && F.id) {
|
|
4631
|
+
j.value = !0;
|
|
4636
4632
|
try {
|
|
4637
|
-
await r.delete(J(
|
|
4633
|
+
await r.delete(J(q.value.id)), j.value = !1, L.value = !1, l.value++, n("delete:success", q.value);
|
|
4638
4634
|
} catch (he) {
|
|
4639
4635
|
P.value = ((ee = (V = he.response) == null ? void 0 : V.data) == null ? void 0 : ee.message) || he.message || a("keySets.errors.delete"), n("error", he);
|
|
4640
4636
|
} finally {
|
|
4641
|
-
|
|
4637
|
+
j.value = !1;
|
|
4642
4638
|
}
|
|
4643
4639
|
}
|
|
4644
4640
|
}, It = B(!1);
|
|
4645
|
-
Ae(
|
|
4641
|
+
Ae(N, (F) => {
|
|
4646
4642
|
var V, ee, he, De;
|
|
4647
|
-
if (Array.isArray((V =
|
|
4643
|
+
if (Array.isArray((V = F == null ? void 0 : F.response) == null ? void 0 : V.data) && (It.value = F.response.data.length > 0), F.status === xe.Error) {
|
|
4648
4644
|
I.value = {
|
|
4649
4645
|
title: a("keySets.errors.general")
|
|
4650
|
-
}, (De = (he = (ee =
|
|
4646
|
+
}, (De = (he = (ee = F.error) == null ? void 0 : ee.response) == null ? void 0 : he.data) != null && De.message && (I.value.message = F.error.response.data.message), n("error", F.error);
|
|
4651
4647
|
return;
|
|
4652
4648
|
}
|
|
4653
4649
|
I.value = null;
|
|
@@ -4660,29 +4656,29 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4660
4656
|
});
|
|
4661
4657
|
return gt(async () => {
|
|
4662
4658
|
await i.canCreate() && (et.value.title = a("keySets.list.empty_state.title"), et.value.ctaText = a("keySets.actions.create"));
|
|
4663
|
-
}), (
|
|
4659
|
+
}), (F, V) => {
|
|
4664
4660
|
const ee = R("KButton"), he = R("KBadge"), De = R("KTruncate"), na = R("KCopy"), Be = R("KDropdownItem"), _t = R("KClipboardProvider");
|
|
4665
|
-
return g(),
|
|
4666
|
-
_(
|
|
4661
|
+
return g(), T("div", xs, [
|
|
4662
|
+
_(b(Vl), {
|
|
4667
4663
|
"cache-identifier": e.cacheIdentifier,
|
|
4668
4664
|
"disable-pagination-page-jump": "",
|
|
4669
4665
|
"disable-sorting": s.value,
|
|
4670
4666
|
"empty-state-options": et.value,
|
|
4671
4667
|
"enable-entity-actions": "",
|
|
4672
4668
|
"error-message": I.value,
|
|
4673
|
-
fetcher:
|
|
4669
|
+
fetcher: b(S),
|
|
4674
4670
|
"fetcher-cache-key": l.value,
|
|
4675
4671
|
"pagination-type": "offset",
|
|
4676
4672
|
"preferences-storage-key": "kong-ui-entities-key-sets-list",
|
|
4677
4673
|
query: y.value,
|
|
4678
|
-
"table-headers":
|
|
4674
|
+
"table-headers": b(d),
|
|
4679
4675
|
"use-action-outside": e.useActionOutside,
|
|
4680
|
-
onClearSearchInput:
|
|
4681
|
-
"onClick:row": V[2] || (V[2] = (Z) =>
|
|
4676
|
+
onClearSearchInput: C,
|
|
4677
|
+
"onClick:row": V[2] || (V[2] = (Z) => k(Z)),
|
|
4682
4678
|
onSort: O
|
|
4683
4679
|
}, {
|
|
4684
4680
|
"toolbar-filter": h(() => [
|
|
4685
|
-
_(
|
|
4681
|
+
_(b(ss), {
|
|
4686
4682
|
modelValue: y.value,
|
|
4687
4683
|
"onUpdate:modelValue": V[0] || (V[0] = (Z) => y.value = Z),
|
|
4688
4684
|
config: f.value
|
|
@@ -4693,7 +4689,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4693
4689
|
disabled: !e.useActionOutside,
|
|
4694
4690
|
to: "#kong-ui-app-page-header-action-button"
|
|
4695
4691
|
}, [
|
|
4696
|
-
_(
|
|
4692
|
+
_(b(Pe), {
|
|
4697
4693
|
"auth-function": () => e.canCreate()
|
|
4698
4694
|
}, {
|
|
4699
4695
|
default: h(() => [
|
|
@@ -4704,8 +4700,8 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4704
4700
|
to: e.config.createRoute
|
|
4705
4701
|
}, {
|
|
4706
4702
|
default: h(() => [
|
|
4707
|
-
_(
|
|
4708
|
-
z(" " + K(
|
|
4703
|
+
_(b(ba)),
|
|
4704
|
+
z(" " + K(b(a)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
4709
4705
|
]),
|
|
4710
4706
|
_: 1
|
|
4711
4707
|
}, 8, ["to"]), [
|
|
@@ -4722,7 +4718,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4722
4718
|
tags: h(({ rowValue: Z }) => [
|
|
4723
4719
|
(Z == null ? void 0 : Z.length) > 0 ? (g(), U(De, { key: 0 }, {
|
|
4724
4720
|
default: h(() => [
|
|
4725
|
-
(g(!0),
|
|
4721
|
+
(g(!0), T(pe, null, ce(Z, (Se) => (g(), U(he, {
|
|
4726
4722
|
key: Se,
|
|
4727
4723
|
onClick: V[1] || (V[1] = lt(() => {
|
|
4728
4724
|
}, ["stop"]))
|
|
@@ -4734,7 +4730,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4734
4730
|
}, 1024))), 128))
|
|
4735
4731
|
]),
|
|
4736
4732
|
_: 2
|
|
4737
|
-
}, 1024)) : (g(),
|
|
4733
|
+
}, 1024)) : (g(), T("span", Is, "-"))
|
|
4738
4734
|
]),
|
|
4739
4735
|
id: h(({ rowValue: Z }) => [
|
|
4740
4736
|
_(na, {
|
|
@@ -4747,10 +4743,10 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4747
4743
|
default: h(({ copyToClipboard: Se }) => [
|
|
4748
4744
|
_(Be, {
|
|
4749
4745
|
"data-testid": "action-entity-copy-id",
|
|
4750
|
-
onClick: (aa) =>
|
|
4746
|
+
onClick: (aa) => w(Z, Se)
|
|
4751
4747
|
}, {
|
|
4752
4748
|
default: h(() => [
|
|
4753
|
-
z(K(
|
|
4749
|
+
z(K(b(a)("keySets.actions.copy_id")), 1)
|
|
4754
4750
|
]),
|
|
4755
4751
|
_: 2
|
|
4756
4752
|
}, 1032, ["onClick"])
|
|
@@ -4764,14 +4760,14 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4764
4760
|
onClick: (aa) => m(Z, Se)
|
|
4765
4761
|
}, {
|
|
4766
4762
|
default: h(() => [
|
|
4767
|
-
z(K(
|
|
4763
|
+
z(K(b(a)("keySets.actions.copy_json")), 1)
|
|
4768
4764
|
]),
|
|
4769
4765
|
_: 2
|
|
4770
4766
|
}, 1032, ["onClick"])
|
|
4771
4767
|
]),
|
|
4772
4768
|
_: 2
|
|
4773
4769
|
}, 1024),
|
|
4774
|
-
_(
|
|
4770
|
+
_(b(Pe), {
|
|
4775
4771
|
"auth-function": () => e.canRetrieve(Z)
|
|
4776
4772
|
}, {
|
|
4777
4773
|
default: h(() => [
|
|
@@ -4783,18 +4779,18 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4783
4779
|
]),
|
|
4784
4780
|
_: 2
|
|
4785
4781
|
}, 1032, ["auth-function"]),
|
|
4786
|
-
_(
|
|
4782
|
+
_(b(Pe), {
|
|
4787
4783
|
"auth-function": () => e.canEdit(Z)
|
|
4788
4784
|
}, {
|
|
4789
4785
|
default: h(() => [
|
|
4790
4786
|
_(Be, {
|
|
4791
4787
|
"data-testid": "action-entity-edit",
|
|
4792
|
-
item:
|
|
4788
|
+
item: $(Z.id)
|
|
4793
4789
|
}, null, 8, ["item"])
|
|
4794
4790
|
]),
|
|
4795
4791
|
_: 2
|
|
4796
4792
|
}, 1032, ["auth-function"]),
|
|
4797
|
-
_(
|
|
4793
|
+
_(b(Pe), {
|
|
4798
4794
|
"auth-function": () => e.canDelete(Z)
|
|
4799
4795
|
}, {
|
|
4800
4796
|
default: h(() => [
|
|
@@ -4805,7 +4801,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4805
4801
|
onClick: (Se) => oe(Z)
|
|
4806
4802
|
}, {
|
|
4807
4803
|
default: h(() => [
|
|
4808
|
-
z(K(
|
|
4804
|
+
z(K(b(a)("keySets.actions.delete")), 1)
|
|
4809
4805
|
]),
|
|
4810
4806
|
_: 2
|
|
4811
4807
|
}, 1032, ["onClick"])
|
|
@@ -4815,13 +4811,13 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4815
4811
|
]),
|
|
4816
4812
|
_: 1
|
|
4817
4813
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4818
|
-
_(
|
|
4819
|
-
"action-pending":
|
|
4820
|
-
description:
|
|
4821
|
-
"entity-name":
|
|
4822
|
-
"entity-type":
|
|
4814
|
+
_(b(Hl), {
|
|
4815
|
+
"action-pending": j.value,
|
|
4816
|
+
description: b(a)("keySets.delete.description"),
|
|
4817
|
+
"entity-name": q.value && (q.value.name || q.value.id),
|
|
4818
|
+
"entity-type": b(an).KeySet,
|
|
4823
4819
|
error: P.value,
|
|
4824
|
-
title:
|
|
4820
|
+
title: b(a)("keySets.delete.title"),
|
|
4825
4821
|
visible: L.value,
|
|
4826
4822
|
onCancel: le,
|
|
4827
4823
|
onProceed: de
|
|
@@ -4834,7 +4830,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4834
4830
|
for (const [i, a] of t)
|
|
4835
4831
|
n[i] = a;
|
|
4836
4832
|
return n;
|
|
4837
|
-
}, Ds = /* @__PURE__ */ ta(As, [["__scopeId", "data-v-0bda6d81"]]), _s = { class: "kong-ui-entities-key-sets-form" },
|
|
4833
|
+
}, Ds = /* @__PURE__ */ ta(As, [["__scopeId", "data-v-0bda6d81"]]), _s = { class: "kong-ui-entities-key-sets-form" }, Ts = /* @__PURE__ */ H({
|
|
4838
4834
|
__name: "KeySetForm",
|
|
4839
4835
|
props: {
|
|
4840
4836
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4853,37 +4849,37 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4853
4849
|
emits: ["update", "error", "loading"],
|
|
4854
4850
|
setup(e, { emit: t }) {
|
|
4855
4851
|
var I;
|
|
4856
|
-
const n = t, i = e, a = mt(), { i18n: { t: o } } = ht.useI18n(), { getMessageFromError: r } = ws(), { axiosInstance: l } = ea((I = i.config) == null ? void 0 : I.axiosRequestConfig), s = x(() => He.form[i.config.app].edit), c = x(() => i.keySetId ? st.Edit : st.Create), d =
|
|
4852
|
+
const n = t, i = e, a = mt(), { i18n: { t: o } } = ht.useI18n(), { getMessageFromError: r } = ws(), { axiosInstance: l } = ea((I = i.config) == null ? void 0 : I.axiosRequestConfig), s = x(() => He.form[i.config.app].edit), c = x(() => i.keySetId ? st.Edit : st.Create), d = Tt({
|
|
4857
4853
|
fields: {
|
|
4858
4854
|
name: "",
|
|
4859
4855
|
tags: ""
|
|
4860
4856
|
},
|
|
4861
4857
|
isReadonly: !1,
|
|
4862
4858
|
errorMessage: ""
|
|
4863
|
-
}), u =
|
|
4859
|
+
}), u = Tt({
|
|
4864
4860
|
name: "",
|
|
4865
4861
|
tags: ""
|
|
4866
|
-
}), y = x(() => JSON.stringify(d.fields) !== JSON.stringify(u) && !!d.fields.name), f = (
|
|
4862
|
+
}), y = x(() => JSON.stringify(d.fields) !== JSON.stringify(u) && !!d.fields.name), f = (w) => {
|
|
4867
4863
|
var m;
|
|
4868
|
-
d.fields.name = (
|
|
4864
|
+
d.fields.name = (w == null ? void 0 : w.name) || "", d.fields.tags = ((m = w == null ? void 0 : w.tags) == null ? void 0 : m.join(", ")) || "", Object.assign(u, d.fields);
|
|
4869
4865
|
}, S = () => {
|
|
4870
4866
|
a.push(i.config.cancelRoute);
|
|
4871
|
-
},
|
|
4867
|
+
}, N = x(() => {
|
|
4872
4868
|
var m, v;
|
|
4873
|
-
let
|
|
4874
|
-
return i.config.app === "konnect" ?
|
|
4875
|
-
}),
|
|
4876
|
-
var
|
|
4869
|
+
let w = `${i.config.apiBaseUrl}${He.form[i.config.app][c.value]}`;
|
|
4870
|
+
return i.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((m = i.config) == null ? void 0 : m.controlPlaneId) || "") : i.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (v = i.config) != null && v.workspace ? `/${i.config.workspace}` : "")), w = w.replace(/{id}/gi, i.keySetId), w;
|
|
4871
|
+
}), C = x(() => {
|
|
4872
|
+
var w, m, v;
|
|
4877
4873
|
return {
|
|
4878
4874
|
name: d.fields.name,
|
|
4879
|
-
tags: ((v = (m = (
|
|
4875
|
+
tags: ((v = (m = (w = d.fields.tags) == null ? void 0 : w.split(",")) == null ? void 0 : m.map((p) => String(p || "").trim())) == null ? void 0 : v.filter((p) => p !== "")) || ""
|
|
4880
4876
|
};
|
|
4881
4877
|
}), O = async () => {
|
|
4882
|
-
var
|
|
4878
|
+
var w, m;
|
|
4883
4879
|
try {
|
|
4884
4880
|
d.isReadonly = !0;
|
|
4885
4881
|
let v;
|
|
4886
|
-
if (c.value === "create" ? v = await l.post(
|
|
4882
|
+
if (c.value === "create" ? v = await l.post(N.value, C.value) : c.value === "edit" && (v = ((w = i.config) == null ? void 0 : w.app) === "konnect" ? await l.put(N.value, C.value) : await l.patch(N.value, C.value)), v) {
|
|
4887
4883
|
const { data: p } = v;
|
|
4888
4884
|
d.fields.name = (p == null ? void 0 : p.name) || "", d.fields.tags = ((m = p == null ? void 0 : p.tags) == null ? void 0 : m.join(", ")) || "", Object.assign(u, d.fields), n("update", v == null ? void 0 : v.data);
|
|
4889
4885
|
}
|
|
@@ -4893,28 +4889,28 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4893
4889
|
d.isReadonly = !1;
|
|
4894
4890
|
}
|
|
4895
4891
|
};
|
|
4896
|
-
return (
|
|
4892
|
+
return (w, m) => {
|
|
4897
4893
|
const v = R("KInput");
|
|
4898
|
-
return g(),
|
|
4899
|
-
_(
|
|
4894
|
+
return g(), T("div", _s, [
|
|
4895
|
+
_(b(ql), {
|
|
4900
4896
|
"can-submit": y.value,
|
|
4901
4897
|
config: e.config,
|
|
4902
4898
|
"edit-id": e.keySetId,
|
|
4903
4899
|
"error-message": d.errorMessage,
|
|
4904
4900
|
"fetch-url": s.value,
|
|
4905
|
-
"form-fields":
|
|
4901
|
+
"form-fields": C.value,
|
|
4906
4902
|
"is-readonly": d.isReadonly,
|
|
4907
4903
|
onCancel: S,
|
|
4908
|
-
"onFetch:error": m[2] || (m[2] = (p) =>
|
|
4904
|
+
"onFetch:error": m[2] || (m[2] = (p) => w.$emit("error", p)),
|
|
4909
4905
|
"onFetch:success": f,
|
|
4910
|
-
onLoading: m[3] || (m[3] = (p) =>
|
|
4906
|
+
onLoading: m[3] || (m[3] = (p) => w.$emit("loading", p)),
|
|
4911
4907
|
onSubmit: O
|
|
4912
4908
|
}, {
|
|
4913
4909
|
default: h(() => [
|
|
4914
|
-
_(
|
|
4915
|
-
description:
|
|
4910
|
+
_(b(ks), {
|
|
4911
|
+
description: b(o)("keySets.form.sections.general.description"),
|
|
4916
4912
|
"has-divider": "",
|
|
4917
|
-
title:
|
|
4913
|
+
title: b(o)("keySets.form.sections.general.title")
|
|
4918
4914
|
}, {
|
|
4919
4915
|
default: h(() => [
|
|
4920
4916
|
_(v, {
|
|
@@ -4923,8 +4919,8 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4923
4919
|
modelModifiers: { trim: !0 },
|
|
4924
4920
|
autocomplete: "off",
|
|
4925
4921
|
"data-testid": "key-set-form-name",
|
|
4926
|
-
label:
|
|
4927
|
-
placeholder:
|
|
4922
|
+
label: b(o)("keySets.form.fields.name.label"),
|
|
4923
|
+
placeholder: b(o)("keySets.form.fields.name.placeholder"),
|
|
4928
4924
|
readonly: d.isReadonly,
|
|
4929
4925
|
type: "text"
|
|
4930
4926
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
@@ -4934,10 +4930,10 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4934
4930
|
modelModifiers: { trim: !0 },
|
|
4935
4931
|
autocomplete: "off",
|
|
4936
4932
|
"data-testid": "key-set-form-tags",
|
|
4937
|
-
help:
|
|
4938
|
-
label:
|
|
4939
|
-
"label-attributes": { info:
|
|
4940
|
-
placeholder:
|
|
4933
|
+
help: b(o)("keySets.form.fields.tags.help"),
|
|
4934
|
+
label: b(o)("keySets.form.fields.tags.label"),
|
|
4935
|
+
"label-attributes": { info: b(o)("keySets.form.fields.tags.tooltip") },
|
|
4936
|
+
placeholder: b(o)("keySets.form.fields.tags.placeholder"),
|
|
4941
4937
|
readonly: d.isReadonly,
|
|
4942
4938
|
type: "text"
|
|
4943
4939
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
@@ -4950,7 +4946,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4950
4946
|
]);
|
|
4951
4947
|
};
|
|
4952
4948
|
}
|
|
4953
|
-
}), Ps = /* @__PURE__ */ ta(
|
|
4949
|
+
}), Ps = /* @__PURE__ */ ta(Ts, [["__scopeId", "data-v-1eb23ee1"]]), Ns = { class: "kong-ui-entities-keys-entity-config-card" }, zs = /* @__PURE__ */ H({
|
|
4954
4950
|
__name: "KeySetConfigCard",
|
|
4955
4951
|
props: {
|
|
4956
4952
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4986,8 +4982,8 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4986
4982
|
tooltip: n("keySets.form.fields.tags.tooltip")
|
|
4987
4983
|
}
|
|
4988
4984
|
});
|
|
4989
|
-
return (o, r) => (g(),
|
|
4990
|
-
_(
|
|
4985
|
+
return (o, r) => (g(), T("div", Ns, [
|
|
4986
|
+
_(b($l), {
|
|
4991
4987
|
config: e.config,
|
|
4992
4988
|
"config-card-doc": e.configCardDoc,
|
|
4993
4989
|
"config-schema": a.value,
|