@kong-ui-public/entities-vaults 2.4.8 → 2.4.9
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-vaults.es.js +119 -116
- package/dist/entities-vaults.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oA, ref as Y, computed as U, watch as UA, renderSlot as eA, createCommentVNode as q, unref as g, useSlots as ee, onBeforeMount as se, resolveComponent as N, openBlock as u, createBlock as
|
|
1
|
+
import { defineComponent as oA, ref as Y, computed as U, watch as UA, renderSlot as eA, createCommentVNode as q, unref as g, useSlots as ee, onBeforeMount as se, resolveComponent as N, openBlock as u, createBlock as O, createSlots as wA, withCtx as d, createElementVNode as x, createTextVNode as X, toDisplayString as L, createVNode as f, createElementBlock as S, renderList as uA, Fragment as dA, normalizeClass as yA, withModifiers as zA, withDirectives as LA, vShow as KA, useCssVars as $e, inject as At, resolveDynamicComponent as JA, normalizeProps as aa, guardReactiveProps as ia, mergeProps as ne, onMounted as oa, onUnmounted as la, normalizeStyle as et, pushScopeId as tt, popScopeId as at, reactive as qA, TransitionGroup as na } from "vue";
|
|
2
2
|
import { useRouter as Ee } from "vue-router";
|
|
3
3
|
import ke from "axios";
|
|
4
4
|
import { createI18n as Be, i18nTComponent as it } from "@kong-ui-public/i18n";
|
|
@@ -278,14 +278,14 @@ function va(A, t, e, a = {
|
|
|
278
278
|
return [F[a.fetchedItemsKey] ?? F];
|
|
279
279
|
})()) : j.push(
|
|
280
280
|
...a.searchKeys.filter((F) => F !== "id").map(async (F) => {
|
|
281
|
-
const { data:
|
|
282
|
-
return
|
|
281
|
+
const { data: D } = await i.get(`${h}?${F}=${k}`);
|
|
282
|
+
return D[a.fetchedItemsKey];
|
|
283
283
|
})
|
|
284
284
|
);
|
|
285
285
|
const w = await Promise.all(j), W = /* @__PURE__ */ new Set();
|
|
286
286
|
I.value = [], (R = w == null ? void 0 : w.forEach) == null || R.call(w, (F) => {
|
|
287
|
-
var
|
|
288
|
-
(
|
|
287
|
+
var D;
|
|
288
|
+
(D = F == null ? void 0 : F.forEach) == null || D.call(F, (z) => {
|
|
289
289
|
W.has(z.id) || (W.add(z.id), I.value.push(z));
|
|
290
290
|
});
|
|
291
291
|
});
|
|
@@ -301,8 +301,8 @@ function va(A, t, e, a = {
|
|
|
301
301
|
var w;
|
|
302
302
|
let W = !1;
|
|
303
303
|
for (const F of a.searchKeys) {
|
|
304
|
-
const
|
|
305
|
-
|
|
304
|
+
const D = typeof j[F] == "string" ? (w = j[F]) == null ? void 0 : w.toLowerCase() : j[F];
|
|
305
|
+
D != null && D.includes(k.toLowerCase()) && (W = !0);
|
|
306
306
|
}
|
|
307
307
|
return W;
|
|
308
308
|
}), (!I.value || !I.value.length) && (c.value = o("debouncedFilter.errors.invalid"))) : I.value = p.value, C.value = !1;
|
|
@@ -523,7 +523,7 @@ const rA = {
|
|
|
523
523
|
for (const [a, i] of t)
|
|
524
524
|
e[a] = i;
|
|
525
525
|
return e;
|
|
526
|
-
}, Ya = (A) => (tt("data-v-13f41aa3"), A = A(), at(), A),
|
|
526
|
+
}, Ya = (A) => (tt("data-v-13f41aa3"), A = A(), at(), A), Oa = ["aria-hidden"], Da = {
|
|
527
527
|
key: 0,
|
|
528
528
|
"data-testid": "kui-icon-svg-title"
|
|
529
529
|
}, Wa = /* @__PURE__ */ Ya(() => /* @__PURE__ */ x("path", {
|
|
@@ -598,7 +598,7 @@ const rA = {
|
|
|
598
598
|
lineHeight: "0",
|
|
599
599
|
width: e.value
|
|
600
600
|
}));
|
|
601
|
-
return (i, o) => (u(),
|
|
601
|
+
return (i, o) => (u(), O(JA(A.as), {
|
|
602
602
|
"aria-hidden": A.decorative ? "true" : void 0,
|
|
603
603
|
class: "kui-icon copy-icon",
|
|
604
604
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -615,9 +615,9 @@ const rA = {
|
|
|
615
615
|
width: "100%",
|
|
616
616
|
xmlns: "http://www.w3.org/2000/svg"
|
|
617
617
|
}, [
|
|
618
|
-
A.title ? (u(), S("title",
|
|
618
|
+
A.title ? (u(), S("title", Da, L(A.title), 1)) : q("", !0),
|
|
619
619
|
Wa
|
|
620
|
-
], 8,
|
|
620
|
+
], 8, Oa))
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["aria-hidden", "style"]));
|
|
@@ -703,7 +703,7 @@ const rA = {
|
|
|
703
703
|
return (p, Q) => {
|
|
704
704
|
const h = N("KClipboardProvider");
|
|
705
705
|
return u(), S("div", za, [
|
|
706
|
-
A.format !== "hidden" ? (u(),
|
|
706
|
+
A.format !== "hidden" ? (u(), O(JA(A.idTooltip ? "KTooltip" : "div"), ne({ key: 0 }, l.value, { "data-testid": "copy-id" }), {
|
|
707
707
|
default: d(() => [
|
|
708
708
|
x("div", {
|
|
709
709
|
class: yA([
|
|
@@ -715,7 +715,7 @@ const rA = {
|
|
|
715
715
|
]),
|
|
716
716
|
_: 1
|
|
717
717
|
}, 16)) : q("", !0),
|
|
718
|
-
(u(),
|
|
718
|
+
(u(), O(JA(A.tooltip ? "KTooltip" : "div"), ne(r.value, { class: "uuid-icon-wrapper" }), {
|
|
719
719
|
default: d(() => [
|
|
720
720
|
f(h, null, {
|
|
721
721
|
default: d(({ copyToClipboard: T }) => [
|
|
@@ -774,14 +774,14 @@ const rA = {
|
|
|
774
774
|
var C;
|
|
775
775
|
return t.isArrayItem ? (C = o.value) != null && C.name ? a(o.value.name, "_") : e("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
776
776
|
});
|
|
777
|
-
return (C, r) => (u(),
|
|
777
|
+
return (C, r) => (u(), O(JA(A.isArrayItem ? "fieldset" : "div"), {
|
|
778
778
|
class: yA(A.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
779
779
|
}, {
|
|
780
780
|
default: d(() => [
|
|
781
781
|
A.isArrayItem ? (u(), S("legend", _a, [
|
|
782
782
|
x("b", null, L(n.value), 1)
|
|
783
783
|
])) : q("", !0),
|
|
784
|
-
(u(!0), S(dA, null, uA(Object.keys(l.value), (c, I) => (u(),
|
|
784
|
+
(u(!0), S(dA, null, uA(Object.keys(l.value), (c, I) => (u(), O(de, {
|
|
785
785
|
key: `${i.value}-property-${I}`,
|
|
786
786
|
item: {
|
|
787
787
|
key: c,
|
|
@@ -837,7 +837,7 @@ const rA = {
|
|
|
837
837
|
const { i18n: { t } } = rA.useI18n();
|
|
838
838
|
return (e, a) => {
|
|
839
839
|
const i = N("KBadge");
|
|
840
|
-
return u(),
|
|
840
|
+
return u(), O(i, {
|
|
841
841
|
appearance: A.status ? "success" : "neutral"
|
|
842
842
|
}, {
|
|
843
843
|
default: d(() => [
|
|
@@ -1041,13 +1041,13 @@ const rA = {
|
|
|
1041
1041
|
rowValue: A.item.value
|
|
1042
1042
|
}, () => [
|
|
1043
1043
|
n.value ? (u(), S("div", si, [
|
|
1044
|
-
(u(),
|
|
1044
|
+
(u(), O(JA(I.value.tag), aa(ia(I.value.attrs)), {
|
|
1045
1045
|
default: d(() => [
|
|
1046
1046
|
I.value.additionalComponent === "KBadge" ? (u(), S("div", {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
"data-testid": `${A.item.key}-badge-tags`
|
|
1049
1049
|
}, [
|
|
1050
|
-
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(),
|
|
1050
|
+
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(), O(v, {
|
|
1051
1051
|
key: `${A.item.key}-badge-tag-${k}`,
|
|
1052
1052
|
class: "config-badge",
|
|
1053
1053
|
"data-testid": `${A.item.key}-badge-tag-${k}`,
|
|
@@ -1065,7 +1065,7 @@ const rA = {
|
|
|
1065
1065
|
class: "copy-uuid-array",
|
|
1066
1066
|
"data-testid": `${A.item.key}-copy-uuid-array`
|
|
1067
1067
|
}, [
|
|
1068
|
-
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(),
|
|
1068
|
+
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(), O(g(Ct), ne(I.value.childAttrs, {
|
|
1069
1069
|
key: `${A.item.key}-copy-uuid-${k}`,
|
|
1070
1070
|
"data-testid": `${A.item.key}-copy-uuid-${k}`,
|
|
1071
1071
|
uuid: P
|
|
@@ -1075,7 +1075,7 @@ const rA = {
|
|
|
1075
1075
|
class: "method-badge-array",
|
|
1076
1076
|
"data-testid": `${A.item.key}-badge-methods`
|
|
1077
1077
|
}, [
|
|
1078
|
-
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(),
|
|
1078
|
+
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(), O(v, {
|
|
1079
1079
|
key: `${A.item.key}-badge-method-${k}`,
|
|
1080
1080
|
appearance: Object.values(g(ga)).includes(P.toLowerCase()) ? P.toLowerCase() : "custom",
|
|
1081
1081
|
class: "config-badge",
|
|
@@ -1091,13 +1091,13 @@ const rA = {
|
|
|
1091
1091
|
key: 3,
|
|
1092
1092
|
"data-testid": `${e.item.key}-json-array-content`
|
|
1093
1093
|
}, [
|
|
1094
|
-
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(),
|
|
1094
|
+
(u(!0), S(dA, null, uA(A.item.value, (P, k) => (u(), O(It, {
|
|
1095
1095
|
key: `json-array-item-${k}`,
|
|
1096
1096
|
index: k,
|
|
1097
1097
|
"is-array-item": "",
|
|
1098
1098
|
item: P
|
|
1099
1099
|
}, null, 8, ["index", "item"]))), 128))
|
|
1100
|
-
], 8, ci)) : (u(),
|
|
1100
|
+
], 8, ci)) : (u(), O(b, {
|
|
1101
1101
|
key: 4,
|
|
1102
1102
|
text: g(p) ? A.item.value : ""
|
|
1103
1103
|
}, {
|
|
@@ -1184,7 +1184,7 @@ const rA = {
|
|
|
1184
1184
|
theme: "dark"
|
|
1185
1185
|
}, null, 8, ["code"])
|
|
1186
1186
|
])) : q("", !0),
|
|
1187
|
-
t.jsonRecord ? (u(),
|
|
1187
|
+
t.jsonRecord ? (u(), O(C, {
|
|
1188
1188
|
key: 1,
|
|
1189
1189
|
id: "json-codeblock",
|
|
1190
1190
|
class: yA({ "json-content": t.fetcherUrl }),
|
|
@@ -1409,14 +1409,14 @@ function ji(A) {
|
|
|
1409
1409
|
function Yi() {
|
|
1410
1410
|
return null;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Oi(A) {
|
|
1413
1413
|
return A === null;
|
|
1414
1414
|
}
|
|
1415
1415
|
var ft = new CA("tag:yaml.org,2002:null", {
|
|
1416
1416
|
kind: "scalar",
|
|
1417
1417
|
resolve: ji,
|
|
1418
1418
|
construct: Yi,
|
|
1419
|
-
predicate:
|
|
1419
|
+
predicate: Oi,
|
|
1420
1420
|
represent: {
|
|
1421
1421
|
canonical: function() {
|
|
1422
1422
|
return "~";
|
|
@@ -1436,7 +1436,7 @@ var ft = new CA("tag:yaml.org,2002:null", {
|
|
|
1436
1436
|
},
|
|
1437
1437
|
defaultStyle: "lowercase"
|
|
1438
1438
|
});
|
|
1439
|
-
function
|
|
1439
|
+
function Di(A) {
|
|
1440
1440
|
if (A === null)
|
|
1441
1441
|
return !1;
|
|
1442
1442
|
var t = A.length;
|
|
@@ -1450,7 +1450,7 @@ function qi(A) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
var mt = new CA("tag:yaml.org,2002:bool", {
|
|
1452
1452
|
kind: "scalar",
|
|
1453
|
-
resolve:
|
|
1453
|
+
resolve: Di,
|
|
1454
1454
|
construct: Wi,
|
|
1455
1455
|
predicate: qi,
|
|
1456
1456
|
represent: {
|
|
@@ -2202,7 +2202,7 @@ function Yt(A, t) {
|
|
|
2202
2202
|
Yo(e);
|
|
2203
2203
|
return e.documents;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Oo(A, t, e) {
|
|
2206
2206
|
t !== null && typeof t == "object" && typeof e > "u" && (e = t, t = null);
|
|
2207
2207
|
var a = Yt(A, e);
|
|
2208
2208
|
if (typeof t != "function")
|
|
@@ -2210,7 +2210,7 @@ function Do(A, t, e) {
|
|
|
2210
2210
|
for (var i = 0, o = a.length; i < o; i += 1)
|
|
2211
2211
|
t(a[i]);
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function Do(A, t) {
|
|
2214
2214
|
var e = Yt(A, t);
|
|
2215
2215
|
if (e.length !== 0) {
|
|
2216
2216
|
if (e.length === 1)
|
|
@@ -2218,10 +2218,10 @@ function Oo(A, t) {
|
|
|
2218
2218
|
throw new QA("expected a single document in the stream, but found more");
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
var Wo =
|
|
2221
|
+
var Wo = Oo, qo = Do, Ot = {
|
|
2222
2222
|
loadAll: Wo,
|
|
2223
2223
|
load: qo
|
|
2224
|
-
},
|
|
2224
|
+
}, Dt = Object.prototype.toString, Wt = Object.prototype.hasOwnProperty, ve = 65279, Po = 9, YA = 10, Ho = 13, zo = 32, Go = 33, Zo = 34, re = 35, Xo = 37, _o = 38, $o = 39, Al = 42, qt = 44, el = 45, _A = 58, tl = 61, al = 62, il = 63, ol = 64, Pt = 91, Ht = 93, ll = 96, zt = 123, nl = 124, Gt = 125, IA = {};
|
|
2225
2225
|
IA[0] = "\\0";
|
|
2226
2226
|
IA[7] = "\\a";
|
|
2227
2227
|
IA[8] = "\\b";
|
|
@@ -2275,11 +2275,11 @@ function Il(A) {
|
|
|
2275
2275
|
throw new QA("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2276
2276
|
return "\\" + e + gA.repeat("0", a - t.length) + t;
|
|
2277
2277
|
}
|
|
2278
|
-
var Ql = 1,
|
|
2278
|
+
var Ql = 1, OA = 2;
|
|
2279
2279
|
function sl(A) {
|
|
2280
|
-
this.schema = A.schema || fe, this.indent = Math.max(1, A.indent || 2), this.noArrayIndent = A.noArrayIndent || !1, this.skipInvalid = A.skipInvalid || !1, this.flowLevel = gA.isNothing(A.flowLevel) ? -1 : A.flowLevel, this.styleMap = Cl(this.schema, A.styles || null), this.sortKeys = A.sortKeys || !1, this.lineWidth = A.lineWidth || 80, this.noRefs = A.noRefs || !1, this.noCompatMode = A.noCompatMode || !1, this.condenseFlow = A.condenseFlow || !1, this.quotingType = A.quotingType === '"' ?
|
|
2280
|
+
this.schema = A.schema || fe, this.indent = Math.max(1, A.indent || 2), this.noArrayIndent = A.noArrayIndent || !1, this.skipInvalid = A.skipInvalid || !1, this.flowLevel = gA.isNothing(A.flowLevel) ? -1 : A.flowLevel, this.styleMap = Cl(this.schema, A.styles || null), this.sortKeys = A.sortKeys || !1, this.lineWidth = A.lineWidth || 80, this.noRefs = A.noRefs || !1, this.noCompatMode = A.noCompatMode || !1, this.condenseFlow = A.condenseFlow || !1, this.quotingType = A.quotingType === '"' ? OA : Ql, this.forceQuotes = A.forceQuotes || !1, this.replacer = typeof A.replacer == "function" ? A.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function Oe(A, t) {
|
|
2283
2283
|
for (var e = gA.repeat(" ", t), a = 0, i = -1, o = "", l, n = A.length; a < n; )
|
|
2284
2284
|
i = A.indexOf(`
|
|
2285
2285
|
`, a), i === -1 ? (l = A.slice(a), a = n) : (l = A.slice(a, i + 1), a = i + 1), l.length && l !== `
|
|
@@ -2300,24 +2300,24 @@ function El(A, t) {
|
|
|
2300
2300
|
function $A(A) {
|
|
2301
2301
|
return A === zo || A === Po;
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function DA(A) {
|
|
2304
2304
|
return 32 <= A && A <= 126 || 161 <= A && A <= 55295 && A !== 8232 && A !== 8233 || 57344 <= A && A <= 65533 && A !== ve || 65536 <= A && A <= 1114111;
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return
|
|
2306
|
+
function De(A) {
|
|
2307
|
+
return DA(A) && A !== ve && A !== Ho && A !== YA;
|
|
2308
2308
|
}
|
|
2309
2309
|
function We(A, t, e) {
|
|
2310
|
-
var a =
|
|
2310
|
+
var a = De(A), i = a && !$A(A);
|
|
2311
2311
|
return (
|
|
2312
2312
|
// ns-plain-safe
|
|
2313
2313
|
(e ? (
|
|
2314
2314
|
// c = flow-in
|
|
2315
2315
|
a
|
|
2316
|
-
) : a && A !== qt && A !== Pt && A !== Ht && A !== zt && A !== Gt) && A !== re && !(t === _A && !i) ||
|
|
2316
|
+
) : a && A !== qt && A !== Pt && A !== Ht && A !== zt && A !== Gt) && A !== re && !(t === _A && !i) || De(t) && !$A(t) && A === re || t === _A && i
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
2319
2319
|
function Bl(A) {
|
|
2320
|
-
return
|
|
2320
|
+
return DA(A) && A !== ve && !$A(A) && A !== el && A !== il && A !== _A && A !== qt && A !== Pt && A !== Ht && A !== zt && A !== Gt && A !== re && A !== _o && A !== Al && A !== Go && A !== nl && A !== tl && A !== al && A !== $o && A !== Zo && A !== Xo && A !== ol && A !== ll;
|
|
2321
2321
|
}
|
|
2322
2322
|
function ul(A) {
|
|
2323
2323
|
return !$A(A) && A !== _A;
|
|
@@ -2335,7 +2335,7 @@ function cl(A, t, e, a, i, o, l, n) {
|
|
|
2335
2335
|
var C, r = 0, c = null, I = !1, m = !1, p = a !== -1, Q = -1, h = Bl(MA(A, 0)) && ul(MA(A, A.length - 1));
|
|
2336
2336
|
if (t || l)
|
|
2337
2337
|
for (C = 0; C < A.length; r >= 65536 ? C += 2 : C++) {
|
|
2338
|
-
if (r = MA(A, C), !
|
|
2338
|
+
if (r = MA(A, C), !DA(r))
|
|
2339
2339
|
return RA;
|
|
2340
2340
|
h = h && We(r, c, n), c = r;
|
|
2341
2341
|
}
|
|
@@ -2344,20 +2344,20 @@ function cl(A, t, e, a, i, o, l, n) {
|
|
|
2344
2344
|
if (r = MA(A, C), r === YA)
|
|
2345
2345
|
I = !0, p && (m = m || // Foldable line = too long, and not more-indented.
|
|
2346
2346
|
C - Q - 1 > a && A[Q + 1] !== " ", Q = C);
|
|
2347
|
-
else if (!
|
|
2347
|
+
else if (!DA(r))
|
|
2348
2348
|
return RA;
|
|
2349
2349
|
h = h && We(r, c, n), c = r;
|
|
2350
2350
|
}
|
|
2351
2351
|
m = m || p && C - Q - 1 > a && A[Q + 1] !== " ";
|
|
2352
2352
|
}
|
|
2353
|
-
return !I && !m ? h && !l && !i(A) ? Xt : o ===
|
|
2353
|
+
return !I && !m ? h && !l && !i(A) ? Xt : o === OA ? RA : Ie : e > 9 && Zt(A) ? RA : l ? o === OA ? RA : Ie : m ? $t : _t;
|
|
2354
2354
|
}
|
|
2355
2355
|
function dl(A, t, e, a, i) {
|
|
2356
2356
|
A.dump = function() {
|
|
2357
2357
|
if (t.length === 0)
|
|
2358
|
-
return A.quotingType ===
|
|
2358
|
+
return A.quotingType === OA ? '""' : "''";
|
|
2359
2359
|
if (!A.noCompatMode && (gl.indexOf(t) !== -1 || rl.test(t)))
|
|
2360
|
-
return A.quotingType ===
|
|
2360
|
+
return A.quotingType === OA ? '"' + t + '"' : "'" + t + "'";
|
|
2361
2361
|
var o = A.indent * Math.max(1, e), l = A.lineWidth === -1 ? -1 : Math.max(Math.min(A.lineWidth, 40), A.lineWidth - o), n = a || A.flowLevel > -1 && e >= A.flowLevel;
|
|
2362
2362
|
function C(r) {
|
|
2363
2363
|
return El(A, r);
|
|
@@ -2377,9 +2377,9 @@ function dl(A, t, e, a, i) {
|
|
|
2377
2377
|
case Ie:
|
|
2378
2378
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2379
2379
|
case _t:
|
|
2380
|
-
return "|" + qe(t, A.indent) + Pe(
|
|
2380
|
+
return "|" + qe(t, A.indent) + Pe(Oe(t, o));
|
|
2381
2381
|
case $t:
|
|
2382
|
-
return ">" + qe(t, A.indent) + Pe(
|
|
2382
|
+
return ">" + qe(t, A.indent) + Pe(Oe(pl(t, l), o));
|
|
2383
2383
|
case RA:
|
|
2384
2384
|
return '"' + fl(t) + '"';
|
|
2385
2385
|
default:
|
|
@@ -2424,7 +2424,7 @@ function He(A, t) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
function fl(A) {
|
|
2426
2426
|
for (var t = "", e = 0, a, i = 0; i < A.length; e >= 65536 ? i += 2 : i++)
|
|
2427
|
-
e = MA(A, i), a = IA[e], !a &&
|
|
2427
|
+
e = MA(A, i), a = IA[e], !a && DA(e) ? (t += A[i], e >= 65536 && (t += A[i + 1])) : t += a || Il(e);
|
|
2428
2428
|
return t;
|
|
2429
2429
|
}
|
|
2430
2430
|
function ml(A, t, e) {
|
|
@@ -2462,7 +2462,7 @@ function Ge(A, t, e) {
|
|
|
2462
2462
|
for (i = e ? A.explicitTypes : A.implicitTypes, o = 0, l = i.length; o < l; o += 1)
|
|
2463
2463
|
if (n = i[o], (n.instanceOf || n.predicate) && (!n.instanceOf || typeof t == "object" && t instanceof n.instanceOf) && (!n.predicate || n.predicate(t))) {
|
|
2464
2464
|
if (e ? n.multi && n.representName ? A.tag = n.representName(t) : A.tag = n.tag : A.tag = "?", n.represent) {
|
|
2465
|
-
if (C = A.styleMap[n.tag] || n.defaultStyle,
|
|
2465
|
+
if (C = A.styleMap[n.tag] || n.defaultStyle, Dt.call(n.represent) === "[object Function]")
|
|
2466
2466
|
a = n.represent(t, C);
|
|
2467
2467
|
else if (Wt.call(n.represent, C))
|
|
2468
2468
|
a = n.represent[C](t, C);
|
|
@@ -2476,7 +2476,7 @@ function Ge(A, t, e) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
function hA(A, t, e, a, i, o, l) {
|
|
2478
2478
|
A.tag = null, A.dump = e, Ge(A, e, !1) || Ge(A, e, !0);
|
|
2479
|
-
var n =
|
|
2479
|
+
var n = Dt.call(A.dump), C = a, r;
|
|
2480
2480
|
a && (a = A.flowLevel < 0 || A.flowLevel > t);
|
|
2481
2481
|
var c = n === "[object Object]" || n === "[object Array]", I, m;
|
|
2482
2482
|
if (c && (I = A.duplicates.indexOf(e), m = I !== -1), (A.tag !== null && A.tag !== "?" || m || A.indent !== 2 && t > 0) && (i = !1), m && A.usedDuplicates[I])
|
|
@@ -2533,7 +2533,7 @@ function ye(A, t) {
|
|
|
2533
2533
|
throw new Error("Function yaml." + A + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2534
2534
|
};
|
|
2535
2535
|
}
|
|
2536
|
-
var Sl = CA, Jl = Bt, Ul = pt, Tl = yt, Vl = bt, Rl = fe, Fl =
|
|
2536
|
+
var Sl = CA, Jl = Bt, Ul = pt, Tl = yt, Vl = bt, Rl = fe, Fl = Ot.load, xl = Ot.loadAll, Nl = wl.dump, Ml = QA, Ll = {
|
|
2537
2537
|
binary: Ut,
|
|
2538
2538
|
float: vt,
|
|
2539
2539
|
map: dt,
|
|
@@ -2547,7 +2547,7 @@ var Sl = CA, Jl = Bt, Ul = pt, Tl = yt, Vl = bt, Rl = fe, Fl = Dt.load, xl = Dt.
|
|
|
2547
2547
|
omap: Tt,
|
|
2548
2548
|
seq: ct,
|
|
2549
2549
|
str: ut
|
|
2550
|
-
}, Kl = ye("safeLoad", "load"), jl = ye("safeLoadAll", "loadAll"), Yl = ye("safeDump", "dump"),
|
|
2550
|
+
}, Kl = ye("safeLoad", "load"), jl = ye("safeLoadAll", "loadAll"), Yl = ye("safeDump", "dump"), Ol = {
|
|
2551
2551
|
Type: Sl,
|
|
2552
2552
|
Schema: Jl,
|
|
2553
2553
|
FAILSAFE_SCHEMA: Ul,
|
|
@@ -2563,7 +2563,7 @@ var Sl = CA, Jl = Bt, Ul = pt, Tl = yt, Vl = bt, Rl = fe, Fl = Dt.load, xl = Dt.
|
|
|
2563
2563
|
safeLoadAll: jl,
|
|
2564
2564
|
safeDump: Yl
|
|
2565
2565
|
};
|
|
2566
|
-
const
|
|
2566
|
+
const Dl = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
2567
2567
|
__name: "YamlCodeBlock",
|
|
2568
2568
|
props: {
|
|
2569
2569
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2573,14 +2573,17 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2573
2573
|
}
|
|
2574
2574
|
},
|
|
2575
2575
|
setup(A) {
|
|
2576
|
-
const t = A, e = U(() =>
|
|
2576
|
+
const t = A, e = U(() => {
|
|
2577
|
+
const a = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2578
|
+
return Object.keys(a).length === 0 && a.constructor === Object ? "" : Ol.dump(a).trim();
|
|
2579
|
+
});
|
|
2577
2580
|
return (a, i) => {
|
|
2578
2581
|
const o = N("KCodeBlock");
|
|
2579
|
-
return u(), S("div",
|
|
2580
|
-
t.yamlRecord ? (u(),
|
|
2582
|
+
return u(), S("div", Dl, [
|
|
2583
|
+
t.yamlRecord ? (u(), O(o, {
|
|
2581
2584
|
key: 0,
|
|
2582
2585
|
id: "yaml-codeblock",
|
|
2583
|
-
code:
|
|
2586
|
+
code: e.value,
|
|
2584
2587
|
language: "yaml",
|
|
2585
2588
|
theme: "dark"
|
|
2586
2589
|
}, null, 8, ["code"])) : q("", !0)
|
|
@@ -2646,7 +2649,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2646
2649
|
"data-testid": `config-card-details-${C}-props`
|
|
2647
2650
|
}, [
|
|
2648
2651
|
C !== "basic" ? (u(), S("div", Pl, L(C === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
|
|
2649
|
-
(u(!0), S(dA, null, uA(A.propertyCollections[C], (r) => (u(),
|
|
2652
|
+
(u(!0), S(dA, null, uA(A.propertyCollections[C], (r) => (u(), O(de, {
|
|
2650
2653
|
key: r.key,
|
|
2651
2654
|
item: r
|
|
2652
2655
|
}, wA({
|
|
@@ -2671,14 +2674,14 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2671
2674
|
]), 1032, ["item"]))), 128))
|
|
2672
2675
|
], 10, ql))), 128))
|
|
2673
2676
|
])) : q("", !0),
|
|
2674
|
-
A.format === "json" && t.record ? (u(),
|
|
2677
|
+
A.format === "json" && t.record ? (u(), O(Qt, {
|
|
2675
2678
|
key: 1,
|
|
2676
2679
|
config: t.config,
|
|
2677
2680
|
"fetcher-url": t.fetcherUrl,
|
|
2678
2681
|
"json-record": o.value,
|
|
2679
2682
|
"request-method": "get"
|
|
2680
2683
|
}, null, 8, ["config", "fetcher-url", "json-record"])) : q("", !0),
|
|
2681
|
-
A.format === "yaml" && t.record ? (u(),
|
|
2684
|
+
A.format === "yaml" && t.record ? (u(), O(Aa, {
|
|
2682
2685
|
key: 2,
|
|
2683
2686
|
"yaml-record": o.value
|
|
2684
2687
|
}, null, 8, ["yaml-record"])) : q("", !0)
|
|
@@ -2764,7 +2767,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2764
2767
|
lineHeight: "0",
|
|
2765
2768
|
width: e.value
|
|
2766
2769
|
}));
|
|
2767
|
-
return (i, o) => (u(),
|
|
2770
|
+
return (i, o) => (u(), O(JA(A.as), {
|
|
2768
2771
|
"aria-hidden": A.decorative ? "true" : void 0,
|
|
2769
2772
|
class: "kui-icon book-icon",
|
|
2770
2773
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2928,15 +2931,15 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2928
2931
|
var w, W, F;
|
|
2929
2932
|
if (!v.value)
|
|
2930
2933
|
return [];
|
|
2931
|
-
const
|
|
2934
|
+
const D = [], z = Object.keys(v.value).length;
|
|
2932
2935
|
for (const G in v.value) {
|
|
2933
2936
|
const $ = (W = (w = i.configSchema) == null ? void 0 : w[G]) == null ? void 0 : W.order, Z = (F = p[G]) == null ? void 0 : F.order;
|
|
2934
2937
|
let AA = z;
|
|
2935
|
-
(Z || Z === 0) && (AA = Z === -1 ? z + 1 : Z), $ && (AA = $ === -1 ? z + 1 : $),
|
|
2938
|
+
(Z || Z === 0) && (AA = Z === -1 ? z + 1 : Z), $ && (AA = $ === -1 ? z + 1 : $), D.push([G, AA]);
|
|
2936
2939
|
}
|
|
2937
|
-
return
|
|
2940
|
+
return D.sort(function(G, $) {
|
|
2938
2941
|
return G[1] - $[1];
|
|
2939
|
-
}),
|
|
2942
|
+
}), D.map((G) => {
|
|
2940
2943
|
var $, Z;
|
|
2941
2944
|
const AA = G[0], iA = ($ = v.value) == null ? void 0 : $[AA], J = ((Z = i.configSchema) == null ? void 0 : Z[AA]) || {}, B = p[AA];
|
|
2942
2945
|
return {
|
|
@@ -2953,11 +2956,11 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2953
2956
|
var w, W;
|
|
2954
2957
|
if (!v.value || !i.pluginConfigKey)
|
|
2955
2958
|
return [];
|
|
2956
|
-
const F = v.value[i.pluginConfigKey] || {},
|
|
2959
|
+
const F = v.value[i.pluginConfigKey] || {}, D = Object.keys(F).length, z = [];
|
|
2957
2960
|
for (const G in F) {
|
|
2958
2961
|
const $ = (W = (w = i.pluginConfigSchema) == null ? void 0 : w[G]) == null ? void 0 : W.order, Z = F[G];
|
|
2959
|
-
let AA = Z != null && Z !== "" ?
|
|
2960
|
-
$ && (AA = $ === -1 ?
|
|
2962
|
+
let AA = Z != null && Z !== "" ? D - 1 : D;
|
|
2963
|
+
$ && (AA = $ === -1 ? D + 1 : $), z.push([G, AA]);
|
|
2961
2964
|
}
|
|
2962
2965
|
return z.sort(function(G, $) {
|
|
2963
2966
|
return G[1] - $[1];
|
|
@@ -2975,11 +2978,11 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
2975
2978
|
};
|
|
2976
2979
|
}).filter((G) => !G.hidden);
|
|
2977
2980
|
}), k = U(() => {
|
|
2978
|
-
var w, W, F,
|
|
2981
|
+
var w, W, F, D;
|
|
2979
2982
|
return {
|
|
2980
2983
|
basic: (w = b.value) == null ? void 0 : w.filter((z) => z.section === EA.Basic),
|
|
2981
2984
|
advanced: (W = b.value) == null ? void 0 : W.filter((z) => z.section === EA.Advanced),
|
|
2982
|
-
plugin: (
|
|
2985
|
+
plugin: (D = P.value) == null ? void 0 : D.concat((F = b.value) == null ? void 0 : F.filter((z) => z.section === EA.Plugin))
|
|
2983
2986
|
};
|
|
2984
2987
|
}), R = U(() => {
|
|
2985
2988
|
const w = [];
|
|
@@ -3014,12 +3017,12 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3014
3017
|
Q.value = !1;
|
|
3015
3018
|
}
|
|
3016
3019
|
}), (w, W) => {
|
|
3017
|
-
const F = N("KLabel"),
|
|
3018
|
-
return u(),
|
|
3020
|
+
const F = N("KLabel"), D = N("KSelect"), z = N("KButton"), G = N("KClipboardProvider"), $ = N("KSkeleton"), Z = N("KEmptyState"), AA = N("KCard");
|
|
3021
|
+
return u(), O(AA, { class: "kong-ui-entity-base-config-card" }, wA({
|
|
3019
3022
|
actions: d(() => [
|
|
3020
3023
|
x("div", an, [
|
|
3021
3024
|
eA(w.$slots, "actions", {}, void 0, !0),
|
|
3022
|
-
A.config.jsonYamlEnabled ? (u(),
|
|
3025
|
+
A.config.jsonYamlEnabled ? (u(), O(F, {
|
|
3023
3026
|
key: 0,
|
|
3024
3027
|
class: "config-format-select-label",
|
|
3025
3028
|
"data-testid": "config-format-select-label"
|
|
@@ -3029,13 +3032,13 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3029
3032
|
]),
|
|
3030
3033
|
_: 1
|
|
3031
3034
|
})) : q("", !0),
|
|
3032
|
-
A.config.jsonYamlEnabled ? (u(), D
|
|
3035
|
+
A.config.jsonYamlEnabled ? (u(), O(D, {
|
|
3033
3036
|
key: 1,
|
|
3034
3037
|
"data-testid": "select-config-format",
|
|
3035
3038
|
items: c,
|
|
3036
3039
|
onChange: m
|
|
3037
3040
|
})) : q("", !0),
|
|
3038
|
-
i.config.jsonYamlEnabled && A.configCardDoc ? (u(),
|
|
3041
|
+
i.config.jsonYamlEnabled && A.configCardDoc ? (u(), O(z, {
|
|
3039
3042
|
key: 2,
|
|
3040
3043
|
appearance: "tertiary",
|
|
3041
3044
|
class: "book-icon",
|
|
@@ -3052,9 +3055,9 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3052
3055
|
]),
|
|
3053
3056
|
_: 1
|
|
3054
3057
|
})) : q("", !0),
|
|
3055
|
-
A.config.jsonYamlEnabled ? q("", !0) : (u(),
|
|
3058
|
+
A.config.jsonYamlEnabled ? q("", !0) : (u(), O(G, { key: 3 }, {
|
|
3056
3059
|
default: d(({ copyToClipboard: iA }) => [
|
|
3057
|
-
!Q.value && !h.value ? (u(),
|
|
3060
|
+
!Q.value && !h.value ? (u(), O(z, {
|
|
3058
3061
|
key: 0,
|
|
3059
3062
|
appearance: "tertiary",
|
|
3060
3063
|
"data-testid": "json-copy-button",
|
|
@@ -3071,12 +3074,12 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3071
3074
|
])
|
|
3072
3075
|
]),
|
|
3073
3076
|
default: d(() => [
|
|
3074
|
-
Q.value ? (u(),
|
|
3077
|
+
Q.value ? (u(), O($, {
|
|
3075
3078
|
key: 0,
|
|
3076
3079
|
"data-testid": "config-card-loader",
|
|
3077
3080
|
"table-columns": 2,
|
|
3078
3081
|
type: "table"
|
|
3079
|
-
})) : h.value ? (u(),
|
|
3082
|
+
})) : h.value ? (u(), O(Z, {
|
|
3080
3083
|
key: 1,
|
|
3081
3084
|
"data-testid": "config-card-fetch-error",
|
|
3082
3085
|
"is-error": ""
|
|
@@ -3112,7 +3115,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3112
3115
|
"data-testid": `config-card-details-${iA}-props`
|
|
3113
3116
|
}, [
|
|
3114
3117
|
iA !== "basic" ? (u(), S("div", rn, L(iA === "advanced" ? g(l)("baseConfigCard.sections.advanced") : g(l)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
|
|
3115
|
-
(u(!0), S(dA, null, uA(k.value[iA], (J) => (u(),
|
|
3118
|
+
(u(!0), S(dA, null, uA(k.value[iA], (J) => (u(), O(de, {
|
|
3116
3119
|
key: J.key,
|
|
3117
3120
|
item: J
|
|
3118
3121
|
}, wA({
|
|
@@ -3251,13 +3254,13 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3251
3254
|
r.value = !1;
|
|
3252
3255
|
}
|
|
3253
3256
|
}), (k, R) => {
|
|
3254
|
-
const K = N("KSkeleton"), _ = N("KEmptyState"), j = N("KAlert"), w = N("KButton"), W = N("KTabs"), F = N("KSlideout"),
|
|
3255
|
-
return u(), D
|
|
3257
|
+
const K = N("KSkeleton"), _ = N("KEmptyState"), j = N("KAlert"), w = N("KButton"), W = N("KTabs"), F = N("KSlideout"), D = N("KCard");
|
|
3258
|
+
return u(), O(D, { class: "kong-ui-entity-base-form" }, {
|
|
3256
3259
|
default: d(() => [
|
|
3257
|
-
r.value ? (u(),
|
|
3260
|
+
r.value ? (u(), O(K, {
|
|
3258
3261
|
key: 0,
|
|
3259
3262
|
type: "form"
|
|
3260
|
-
})) : c.value ? (u(),
|
|
3263
|
+
})) : c.value ? (u(), O(_, {
|
|
3261
3264
|
key: 1,
|
|
3262
3265
|
"cta-text": g(l)("baseForm.actions.back"),
|
|
3263
3266
|
"data-testid": "form-fetch-error",
|
|
@@ -3275,7 +3278,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3275
3278
|
onSubmit: zA(b, ["prevent"])
|
|
3276
3279
|
}, [
|
|
3277
3280
|
eA(k.$slots, "default", {}, void 0, !0),
|
|
3278
|
-
A.errorMessage ? (u(),
|
|
3281
|
+
A.errorMessage ? (u(), O(j, {
|
|
3279
3282
|
key: 0,
|
|
3280
3283
|
"alert-message": A.errorMessage,
|
|
3281
3284
|
appearance: "danger",
|
|
@@ -3605,7 +3608,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3605
3608
|
};
|
|
3606
3609
|
return (R, K) => {
|
|
3607
3610
|
const _ = N("KIcon"), j = N("KButton"), w = N("KDropdown"), W = N("KTable"), F = N("KCard");
|
|
3608
|
-
return u(),
|
|
3611
|
+
return u(), O(F, {
|
|
3609
3612
|
class: "kong-ui-entity-base-table",
|
|
3610
3613
|
title: A.title
|
|
3611
3614
|
}, {
|
|
@@ -3639,23 +3642,23 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3639
3642
|
"search-input": A.query,
|
|
3640
3643
|
onKtableEmptyStateCtaClicked: p,
|
|
3641
3644
|
"onRow:click": h.value,
|
|
3642
|
-
onSort: K[0] || (K[0] = (
|
|
3645
|
+
onSort: K[0] || (K[0] = (D) => T(D)),
|
|
3643
3646
|
"onUpdate:tablePreferences": k
|
|
3644
3647
|
}, wA({
|
|
3645
|
-
toolbar: d(({ state:
|
|
3648
|
+
toolbar: d(({ state: D }) => [
|
|
3646
3649
|
LA(x("div", pn, [
|
|
3647
3650
|
eA(R.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3648
3651
|
R.$slots["toolbar-button"] ? (u(), S("div", fn, [
|
|
3649
3652
|
eA(R.$slots, "toolbar-button", {}, void 0, !0)
|
|
3650
3653
|
])) : q("", !0)
|
|
3651
3654
|
], 512), [
|
|
3652
|
-
[KA, n(
|
|
3655
|
+
[KA, n(D)]
|
|
3653
3656
|
])
|
|
3654
3657
|
]),
|
|
3655
|
-
actions: d(({ row:
|
|
3658
|
+
actions: d(({ row: D, rowKey: z, rowValue: G }) => [
|
|
3656
3659
|
x("div", {
|
|
3657
3660
|
class: "actions-container",
|
|
3658
|
-
"data-testid":
|
|
3661
|
+
"data-testid": D.name
|
|
3659
3662
|
}, [
|
|
3660
3663
|
f(w, {
|
|
3661
3664
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
@@ -3663,7 +3666,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3663
3666
|
}, {
|
|
3664
3667
|
items: d(() => [
|
|
3665
3668
|
eA(R.$slots, "actions", {
|
|
3666
|
-
row:
|
|
3669
|
+
row: D,
|
|
3667
3670
|
rowKey: z,
|
|
3668
3671
|
rowValue: G
|
|
3669
3672
|
}, void 0, !0)
|
|
@@ -3690,7 +3693,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3690
3693
|
]),
|
|
3691
3694
|
_: 2
|
|
3692
3695
|
}, [
|
|
3693
|
-
uA(A.tableHeaders, (
|
|
3696
|
+
uA(A.tableHeaders, (D, z) => ({
|
|
3694
3697
|
name: z,
|
|
3695
3698
|
fn: d(({ row: G, rowKey: $, rowValue: Z }) => [
|
|
3696
3699
|
f(dn, {
|
|
@@ -3768,7 +3771,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3768
3771
|
};
|
|
3769
3772
|
return (C, r) => {
|
|
3770
3773
|
const c = N("KAlert"), I = N("KPrompt");
|
|
3771
|
-
return u(),
|
|
3774
|
+
return u(), O(I, {
|
|
3772
3775
|
"action-button-appearance": "danger",
|
|
3773
3776
|
"action-button-disabled": A.actionPending,
|
|
3774
3777
|
"action-button-text": "Yes, delete",
|
|
@@ -3921,7 +3924,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3921
3924
|
};
|
|
3922
3925
|
return (v, b) => {
|
|
3923
3926
|
const P = N("KInput"), k = N("KButton"), R = N("KSelect"), K = N("KMenuItem"), _ = N("KMenu");
|
|
3924
|
-
return A.config.isExactMatch ? (u(),
|
|
3927
|
+
return A.config.isExactMatch ? (u(), O(P, {
|
|
3925
3928
|
key: 0,
|
|
3926
3929
|
autocomplete: "off",
|
|
3927
3930
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3954,7 +3957,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3954
3957
|
]),
|
|
3955
3958
|
LA(f(_, { class: "kong-ui-entity-filter-menu" }, {
|
|
3956
3959
|
body: d(() => [
|
|
3957
|
-
(u(!0), S(dA, null, uA(C.value, (j, w) => (u(),
|
|
3960
|
+
(u(!0), S(dA, null, uA(C.value, (j, w) => (u(), O(K, {
|
|
3958
3961
|
key: j.value,
|
|
3959
3962
|
"data-testid": j.value,
|
|
3960
3963
|
expandable: "",
|
|
@@ -3976,18 +3979,18 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3976
3979
|
class: "menu-item-label",
|
|
3977
3980
|
for: I(j.value)
|
|
3978
3981
|
}, L(g(e)("filter.fieldLabel")), 9, Mn),
|
|
3979
|
-
((F = (W = A.config.schema) == null ? void 0 : W[j.value]) == null ? void 0 : F.type) === "select" ? (u(),
|
|
3982
|
+
((F = (W = A.config.schema) == null ? void 0 : W[j.value]) == null ? void 0 : F.type) === "select" ? (u(), O(R, {
|
|
3980
3983
|
key: 0,
|
|
3981
3984
|
id: I(j.value),
|
|
3982
3985
|
modelValue: l.value[j.value],
|
|
3983
|
-
"onUpdate:modelValue": (
|
|
3986
|
+
"onUpdate:modelValue": (D) => l.value[j.value] = D,
|
|
3984
3987
|
items: m(j.value),
|
|
3985
3988
|
placeholder: g(e)("filter.selectPlaceholder")
|
|
3986
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (u(),
|
|
3989
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (u(), O(P, {
|
|
3987
3990
|
key: 1,
|
|
3988
3991
|
id: I(j.value),
|
|
3989
3992
|
modelValue: l.value[j.value],
|
|
3990
|
-
"onUpdate:modelValue": (
|
|
3993
|
+
"onUpdate:modelValue": (D) => l.value[j.value] = D,
|
|
3991
3994
|
autocomplete: "off",
|
|
3992
3995
|
placeholder: g(e)("filter.inputPlaceholder"),
|
|
3993
3996
|
type: p(j.value)
|
|
@@ -3998,7 +4001,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
3998
4001
|
appearance: "tertiary",
|
|
3999
4002
|
"data-testid": "apply-filter",
|
|
4000
4003
|
size: "small",
|
|
4001
|
-
onClick: b[0] || (b[0] = (
|
|
4004
|
+
onClick: b[0] || (b[0] = (D) => T(!0))
|
|
4002
4005
|
}, {
|
|
4003
4006
|
default: d(() => [
|
|
4004
4007
|
X(L(g(e)("filter.applyButtonText")), 1)
|
|
@@ -4009,7 +4012,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
4009
4012
|
appearance: "tertiary",
|
|
4010
4013
|
"data-testid": "clear-filter",
|
|
4011
4014
|
size: "small",
|
|
4012
|
-
onClick: (
|
|
4015
|
+
onClick: (D) => Q(j.value)
|
|
4013
4016
|
}, {
|
|
4014
4017
|
default: d(() => [
|
|
4015
4018
|
X(L(g(e)("filter.clearButtonText")), 1)
|
|
@@ -4073,7 +4076,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
4073
4076
|
isAllowed: e.value
|
|
4074
4077
|
}) : q("", !0);
|
|
4075
4078
|
}
|
|
4076
|
-
}),
|
|
4079
|
+
}), On = { class: "form-section-wrapper" }, Dn = {
|
|
4077
4080
|
key: 0,
|
|
4078
4081
|
class: "form-section-title"
|
|
4079
4082
|
}, Wn = {
|
|
@@ -4111,12 +4114,12 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
4111
4114
|
return (e, a) => (u(), S("fieldset", {
|
|
4112
4115
|
class: yA(["kong-ui-entity-form-section", { "has-divider": A.hasDivider }])
|
|
4113
4116
|
}, [
|
|
4114
|
-
x("div",
|
|
4117
|
+
x("div", On, [
|
|
4115
4118
|
A.hideInfoHeader ? q("", !0) : (u(), S("div", {
|
|
4116
4119
|
key: 0,
|
|
4117
4120
|
class: yA(["form-section-info", { sticky: A.stickyInfoHeader }])
|
|
4118
4121
|
}, [
|
|
4119
|
-
A.title ? (u(), S("h4",
|
|
4122
|
+
A.title ? (u(), S("h4", Dn, L(A.title), 1)) : q("", !0),
|
|
4120
4123
|
A.description || g(t).description ? (u(), S("div", Wn, [
|
|
4121
4124
|
eA(e.$slots, "description", {}, () => [
|
|
4122
4125
|
x("p", null, L(A.description), 1)
|
|
@@ -4132,7 +4135,7 @@ const Ol = { class: "yaml-config" }, Aa = /* @__PURE__ */ oA({
|
|
|
4132
4135
|
])
|
|
4133
4136
|
], 2));
|
|
4134
4137
|
}
|
|
4135
|
-
}), _e = /* @__PURE__ */ fA(Hn, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ea, useDeleteUrlBuilder: zn, useErrors: Gn, useExternalLinkCreator: Kg, useFetchUrlBuilder: jg, useFetcher: Zn, useDebouncedFilter: Yg, useStringHelpers:
|
|
4138
|
+
}), _e = /* @__PURE__ */ fA(Hn, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ea, useDeleteUrlBuilder: zn, useErrors: Gn, useExternalLinkCreator: Kg, useFetchUrlBuilder: jg, useFetcher: Zn, useDebouncedFilter: Yg, useStringHelpers: Og, useHelpers: Dg, useGatewayFeatureSupported: Xn, useTruncationDetector: Wg } = rA, _n = {
|
|
4136
4139
|
create: "New Vault",
|
|
4137
4140
|
copy_id: "Copy ID",
|
|
4138
4141
|
copy_json: "Copy JSON",
|
|
@@ -4544,7 +4547,7 @@ const be = {
|
|
|
4544
4547
|
}), _ = (J) => ({
|
|
4545
4548
|
label: i("actions.edit"),
|
|
4546
4549
|
to: a.config.getEditRoute(J)
|
|
4547
|
-
}), j = Y(void 0), w = Y(!1), W = Y(!1), F = Y(""),
|
|
4550
|
+
}), j = Y(void 0), w = Y(!1), W = Y(!1), F = Y(""), D = zn(a.config, c.value), z = (J) => {
|
|
4548
4551
|
j.value = J, w.value = !0;
|
|
4549
4552
|
}, G = () => {
|
|
4550
4553
|
w.value = !1;
|
|
@@ -4553,7 +4556,7 @@ const be = {
|
|
|
4553
4556
|
if ((J = j.value) != null && J.id) {
|
|
4554
4557
|
W.value = !0;
|
|
4555
4558
|
try {
|
|
4556
|
-
await l.delete(
|
|
4559
|
+
await l.delete(D(j.value.id)), W.value = !1, w.value = !1, p.value++, e("delete:success", j.value);
|
|
4557
4560
|
} catch (M) {
|
|
4558
4561
|
F.value = ((s = (B = M.response) == null ? void 0 : B.data) == null ? void 0 : s.message) || M.message || i("errors.delete"), e("error", M);
|
|
4559
4562
|
} finally {
|
|
@@ -4608,7 +4611,7 @@ const be = {
|
|
|
4608
4611
|
}, null, 8, ["modelValue", "config"])
|
|
4609
4612
|
]),
|
|
4610
4613
|
"toolbar-button": d(() => [
|
|
4611
|
-
(u(),
|
|
4614
|
+
(u(), O(JA(A.useActionOutside ? "Teleport" : "div"), {
|
|
4612
4615
|
to: A.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
4613
4616
|
}, {
|
|
4614
4617
|
default: d(() => [
|
|
@@ -4648,9 +4651,9 @@ const be = {
|
|
|
4648
4651
|
x("div", rg, L(H ?? "-"), 1)
|
|
4649
4652
|
]),
|
|
4650
4653
|
tags: d(({ rowValue: H }) => [
|
|
4651
|
-
(H == null ? void 0 : H.length) > 0 ? (u(),
|
|
4654
|
+
(H == null ? void 0 : H.length) > 0 ? (u(), O(cA, { key: 0 }, {
|
|
4652
4655
|
default: d(() => [
|
|
4653
|
-
(u(!0), S(dA, null, uA(H, (tA) => (u(),
|
|
4656
|
+
(u(!0), S(dA, null, uA(H, (tA) => (u(), O(M, {
|
|
4654
4657
|
key: tA,
|
|
4655
4658
|
onClick: B[1] || (B[1] = zA(() => {
|
|
4656
4659
|
}, ["stop"]))
|
|
@@ -4907,7 +4910,7 @@ const ug = { class: "kong-ui-entities-vault-form" }, cg = { class: "vault-form-p
|
|
|
4907
4910
|
a("loading", B);
|
|
4908
4911
|
}, W = (B) => {
|
|
4909
4912
|
a("error", B);
|
|
4910
|
-
}, F = (B) => new URL((/* @__PURE__ */ Object.assign({ "../assets/images/provider-icons/aws.svg": Qg, "../assets/images/provider-icons/azure.svg": sg, "../assets/images/provider-icons/gcp.svg": Eg, "../assets/images/provider-icons/hcv.svg": Bg }))[`../assets/images/provider-icons/${B}.svg`], import.meta.url).href,
|
|
4913
|
+
}, F = (B) => new URL((/* @__PURE__ */ Object.assign({ "../assets/images/provider-icons/aws.svg": Qg, "../assets/images/provider-icons/azure.svg": sg, "../assets/images/provider-icons/gcp.svg": Eg, "../assets/images/provider-icons/hcv.svg": Bg }))[`../assets/images/provider-icons/${B}.svg`], import.meta.url).href, D = (B) => {
|
|
4911
4914
|
var cA, pA, sA, H, tA;
|
|
4912
4915
|
r.fields.prefix = ((cA = B == null ? void 0 : B.item) == null ? void 0 : cA.prefix) || (B == null ? void 0 : B.prefix) || "", r.fields.description = ((pA = B == null ? void 0 : B.item) == null ? void 0 : pA.description) || (B == null ? void 0 : B.description) || "";
|
|
4913
4916
|
const s = ((sA = B == null ? void 0 : B.item) == null ? void 0 : sA.tags) || (B == null ? void 0 : B.tags) || [];
|
|
@@ -4983,7 +4986,7 @@ const ug = { class: "kong-ui-entities-vault-form" }, cg = { class: "vault-form-p
|
|
|
4983
4986
|
try {
|
|
4984
4987
|
r.isReadonly = !0;
|
|
4985
4988
|
let s;
|
|
4986
|
-
k.value === "create" ? s = await n.post(Z.value, AA.value) : k.value === "edit" && (s = ((B = e.config) == null ? void 0 : B.app) === "konnect" ? await n.put(Z.value, AA.value) : await n.patch(Z.value, AA.value)),
|
|
4989
|
+
k.value === "create" ? s = await n.post(Z.value, AA.value) : k.value === "edit" && (s = ((B = e.config) == null ? void 0 : B.app) === "konnect" ? await n.put(Z.value, AA.value) : await n.patch(Z.value, AA.value)), D(s == null ? void 0 : s.data), a("update", s == null ? void 0 : s.data);
|
|
4987
4990
|
} catch (s) {
|
|
4988
4991
|
r.errorMessage = C(s), a("error", s);
|
|
4989
4992
|
} finally {
|
|
@@ -5003,7 +5006,7 @@ const ug = { class: "kong-ui-entities-vault-form" }, cg = { class: "vault-form-p
|
|
|
5003
5006
|
"is-readonly": r.isReadonly,
|
|
5004
5007
|
onCancel: j,
|
|
5005
5008
|
"onFetch:error": W,
|
|
5006
|
-
"onFetch:success":
|
|
5009
|
+
"onFetch:success": D,
|
|
5007
5010
|
onLoading: w,
|
|
5008
5011
|
onSubmit: iA
|
|
5009
5012
|
}, {
|
|
@@ -5157,7 +5160,7 @@ const ug = { class: "kong-ui-entities-vault-form" }, cg = { class: "vault-form-p
|
|
|
5157
5160
|
]),
|
|
5158
5161
|
_: 1
|
|
5159
5162
|
}, 8, ["disabled", "text"]),
|
|
5160
|
-
A.config.azureVaultProviderAvailable ? (u(),
|
|
5163
|
+
A.config.azureVaultProviderAvailable ? (u(), O(H, {
|
|
5161
5164
|
key: 0,
|
|
5162
5165
|
disabled: g(_),
|
|
5163
5166
|
placement: "top",
|
|
@@ -5496,7 +5499,7 @@ const ug = { class: "kong-ui-entities-vault-form" }, cg = { class: "vault-form-p
|
|
|
5496
5499
|
}, null, 8, ["modelValue", "is-readonly", "label"])
|
|
5497
5500
|
])) : q("", !0),
|
|
5498
5501
|
A.config.ttl ? (u(), S("div", kg, [
|
|
5499
|
-
p.value ? (u(),
|
|
5502
|
+
p.value ? (u(), O(WA, {
|
|
5500
5503
|
key: 0,
|
|
5501
5504
|
class: "advanced-fields-collapse",
|
|
5502
5505
|
"data-testid": "advanced-fields-collapse",
|