@kong-ui-public/entities-consumers 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-consumers.es.js +316 -320
- package/dist/entities-consumers.umd.js +9 -9
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, computed as I, openBlock as f, createBlock as D, resolveDynamicComponent as be, normalizeStyle as Ue, withCtx as h, createElementBlock as O, toDisplayString as j, createCommentVNode as z, pushScopeId as Re, popScopeId as Ve, createElementVNode as F, ref as B, watch as Ce, renderSlot as Q, unref as m, onBeforeMount as wt, resolveComponent as V, createSlots as
|
|
1
|
+
import { defineComponent as W, computed as I, openBlock as f, createBlock as D, resolveDynamicComponent as be, normalizeStyle as Ue, withCtx as h, createElementBlock as O, toDisplayString as j, createCommentVNode as z, pushScopeId as Re, popScopeId as Ve, createElementVNode as F, ref as B, watch as Ce, renderSlot as Q, unref as m, onBeforeMount as wt, resolveComponent as V, createSlots as Ne, createVNode as N, createTextVNode as J, renderList as pe, withModifiers as gt, withDirectives as xe, vShow as Ie, Fragment as fe, normalizeClass as Se, withKeys as Ir, useSlots as xt, useCssVars as yn, inject as _r, onMounted as Sr, onUnmounted as Ar, normalizeProps as $r, guardReactiveProps as Tr, mergeProps as Nr, Teleport as jr, reactive as Vt } from "vue";
|
|
2
2
|
import { useRouter as It } from "vue-router";
|
|
3
3
|
import { createI18n as hn, i18nTComponent as vn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Dt from "axios";
|
|
@@ -486,71 +486,67 @@ function aa(e, t, n, r = {
|
|
|
486
486
|
searchKeys: ["id"]
|
|
487
487
|
}) {
|
|
488
488
|
n || (n = "1000");
|
|
489
|
-
const { axiosInstance: a } = _t(e.axiosRequestConfig), { i18n: { t: i } } = it(), { debounce: o } = Pr(), l = o(async (
|
|
490
|
-
await $(
|
|
489
|
+
const { axiosInstance: a } = _t(e.axiosRequestConfig), { i18n: { t: i } } = it(), { debounce: o } = Pr(), l = o(async (R) => {
|
|
490
|
+
await $(R);
|
|
491
491
|
}, 200), s = B(!1), u = B(""), d = B(""), c = B([]), b = B([]), g = B(void 0), x = I(() => {
|
|
492
|
-
const
|
|
493
|
-
return e.app === "konnect" ?
|
|
494
|
-
}), { isValidUuid:
|
|
492
|
+
const R = `${e.apiBaseUrl}${m(t)}`;
|
|
493
|
+
return e.app === "konnect" ? R.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? R.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : R;
|
|
494
|
+
}), { isValidUuid: K } = kn(), C = async () => {
|
|
495
495
|
try {
|
|
496
496
|
s.value = !0;
|
|
497
|
-
const { data:
|
|
498
|
-
|
|
497
|
+
const { data: R } = await a.get(`${x.value}?size=${n}`);
|
|
498
|
+
R != null && R.next || (g.value = r.fetchedItemsKey in R ? R[r.fetchedItemsKey] : []), b.value = r.fetchedItemsKey in R ? R[r.fetchedItemsKey] : [], c.value = b.value;
|
|
499
499
|
} catch {
|
|
500
500
|
c.value = [], u.value = i("debouncedFilter.errors.fetch");
|
|
501
501
|
} finally {
|
|
502
502
|
s.value = !1;
|
|
503
503
|
}
|
|
504
|
-
},
|
|
504
|
+
}, L = B(""), $ = async (R) => {
|
|
505
505
|
var w, _, p;
|
|
506
|
-
if (
|
|
507
|
-
if (
|
|
506
|
+
if (L.value !== R) {
|
|
507
|
+
if (L.value = R ?? "", !R) {
|
|
508
508
|
c.value = b.value;
|
|
509
509
|
return;
|
|
510
|
-
}
|
|
511
|
-
U.value = E || "";
|
|
510
|
+
}
|
|
512
511
|
if (g.value === void 0)
|
|
513
512
|
try {
|
|
514
513
|
if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
515
|
-
|
|
516
|
-
E && (k += `/${E}`);
|
|
517
|
-
const { data: v } = await a.get(`${k}?size=${n}`);
|
|
514
|
+
const k = `${x.value}/${R}`, { data: v } = await a.get(`${k}?size=${n}`);
|
|
518
515
|
r.fetchedItemsKey in v ? c.value = v[r.fetchedItemsKey] : v != null && v[r.exactMatchKey ?? "id"] ? c.value = [v] : c.value = [];
|
|
519
|
-
} else
|
|
516
|
+
} else {
|
|
520
517
|
const k = [];
|
|
521
|
-
|
|
522
|
-
const { data: A } = await a.get(`${x.value}/${
|
|
518
|
+
K(R) && r.searchKeys.includes("id") ? k.push((async () => {
|
|
519
|
+
const { data: A } = await a.get(`${x.value}/${R}`);
|
|
523
520
|
return [A[r.fetchedItemsKey] ?? A];
|
|
524
521
|
})()) : k.push(
|
|
525
522
|
...r.searchKeys.filter((A) => A !== "id").map(async (A) => {
|
|
526
|
-
const { data:
|
|
527
|
-
return
|
|
523
|
+
const { data: U } = await a.get(`${x.value}?${A}=${R}`);
|
|
524
|
+
return U[r.fetchedItemsKey];
|
|
528
525
|
})
|
|
529
526
|
);
|
|
530
527
|
const v = await Promise.all(k), y = /* @__PURE__ */ new Set();
|
|
531
528
|
c.value = [], (w = v == null ? void 0 : v.forEach) == null || w.call(v, (A) => {
|
|
532
|
-
var
|
|
533
|
-
(
|
|
529
|
+
var U;
|
|
530
|
+
(U = A == null ? void 0 : A.forEach) == null || U.call(A, (S) => {
|
|
534
531
|
y.has(S.id) || (y.add(S.id), c.value.push(S));
|
|
535
532
|
});
|
|
536
533
|
});
|
|
537
|
-
}
|
|
538
|
-
c.value = b.value;
|
|
534
|
+
}
|
|
539
535
|
} catch (k) {
|
|
540
536
|
((_ = k == null ? void 0 : k.response) == null ? void 0 : _.status) === 404 ? d.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
|
|
541
537
|
} finally {
|
|
542
538
|
s.value = !1;
|
|
543
539
|
}
|
|
544
540
|
else
|
|
545
|
-
s.value = !0, d.value = "",
|
|
541
|
+
s.value = !0, d.value = "", c.value = (p = g.value) == null ? void 0 : p.filter((k) => {
|
|
546
542
|
var v;
|
|
547
543
|
let y = !1;
|
|
548
544
|
for (const A of r.searchKeys) {
|
|
549
|
-
const
|
|
550
|
-
|
|
545
|
+
const U = typeof k[A] == "string" ? (v = k[A]) == null ? void 0 : v.toLowerCase() : k[A];
|
|
546
|
+
U != null && U.includes(R.toLowerCase()) && (y = !0);
|
|
551
547
|
}
|
|
552
548
|
return y;
|
|
553
|
-
}), (!c.value || !c.value.length) && (d.value = i("debouncedFilter.errors.invalid"))
|
|
549
|
+
}), (!c.value || !c.value.length) && (d.value = i("debouncedFilter.errors.invalid")), s.value = !1;
|
|
554
550
|
}
|
|
555
551
|
};
|
|
556
552
|
return {
|
|
@@ -620,8 +616,8 @@ function Cn(e, t) {
|
|
|
620
616
|
const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: b } = o;
|
|
621
617
|
try {
|
|
622
618
|
let g = new URL(i.value.href);
|
|
623
|
-
return a.value && b ? (g.search = "", g = n.value.isExactMatch ? new URL(`${g.href}/${b}/`) : new URL(`${g.href}?filter[name][contains]=${b}`)) : (a.value || new URLSearchParams(b).forEach((x,
|
|
624
|
-
g.searchParams.append(
|
|
619
|
+
return a.value && b ? (g.search = "", g = n.value.isExactMatch ? new URL(`${g.href}/${b}/`) : new URL(`${g.href}?filter[name][contains]=${b}`)) : (a.value || new URLSearchParams(b).forEach((x, K) => {
|
|
620
|
+
g.searchParams.append(K, x);
|
|
625
621
|
}), d && g.searchParams.append("sort_by", d), c === "desc" && g.searchParams.append("sort_desc", "1"), g.searchParams.append("size", String(s))), u && l !== 1 && g.searchParams.append("offset", String(u)), g.href;
|
|
626
622
|
} catch (g) {
|
|
627
623
|
return console.error("RouteList(fetcher)", g), r.value;
|
|
@@ -829,7 +825,7 @@ const ne = {
|
|
|
829
825
|
return (n, r) => {
|
|
830
826
|
const a = V("KButton");
|
|
831
827
|
return f(), O("div", null, [
|
|
832
|
-
|
|
828
|
+
N(a, {
|
|
833
829
|
appearance: "tertiary",
|
|
834
830
|
class: "navigation-button",
|
|
835
831
|
onClick: r[0] || (r[0] = (i) => n.$emit("navigation-click", e.item))
|
|
@@ -864,7 +860,7 @@ const ne = {
|
|
|
864
860
|
}, 8, ["appearance"]);
|
|
865
861
|
};
|
|
866
862
|
}
|
|
867
|
-
}), xa = "#0044f4", Ia = "#e0e4ea", _a = "#afb7c5", Sa = "1px", Aa = "20px", $a = { class: "config-card-details-row" },
|
|
863
|
+
}), xa = "#0044f4", Ia = "#e0e4ea", _a = "#afb7c5", Sa = "1px", Aa = "20px", $a = { class: "config-card-details-row" }, Ta = ["data-testid"], Na = ["data-testid"], ja = ["data-testid"], Oa = ["data-testid"], Ma = { key: 1 }, qa = ["data-testid"], Fa = ["data-testid"], Ba = ["data-testid"], Ea = ["data-testid"], Ka = {
|
|
868
864
|
name: "ConfigCardItem",
|
|
869
865
|
components: { JsonCardItem: In, StatusBadge: wa, InternalLinkItem: Ca }
|
|
870
866
|
}, La = /* @__PURE__ */ W({
|
|
@@ -1015,15 +1011,15 @@ const ne = {
|
|
|
1015
1011
|
};
|
|
1016
1012
|
}
|
|
1017
1013
|
}), b = B(), { isTruncated: g } = ne.useTruncationDetector(b);
|
|
1018
|
-
return (x,
|
|
1019
|
-
const C = V("KLabel"),
|
|
1014
|
+
return (x, K) => {
|
|
1015
|
+
const C = V("KLabel"), L = V("KBadge"), $ = V("KCopy"), R = V("KTooltip");
|
|
1020
1016
|
return f(), O("div", $a, [
|
|
1021
1017
|
F("div", {
|
|
1022
1018
|
class: "config-card-details-label",
|
|
1023
1019
|
"data-testid": `${e.item.key}-label`
|
|
1024
1020
|
}, [
|
|
1025
1021
|
Q(x.$slots, "label", { item: e.item }, () => [
|
|
1026
|
-
|
|
1022
|
+
N(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ne({
|
|
1027
1023
|
default: h(() => [
|
|
1028
1024
|
J(j(e.item.label) + " ", 1)
|
|
1029
1025
|
]),
|
|
@@ -1038,13 +1034,13 @@ const ne = {
|
|
|
1038
1034
|
Q(x.$slots, "label-tooltip", {}, () => [
|
|
1039
1035
|
J(j(e.item.tooltip), 1)
|
|
1040
1036
|
], !0)
|
|
1041
|
-
], 8,
|
|
1037
|
+
], 8, Na)
|
|
1042
1038
|
]),
|
|
1043
1039
|
key: "0"
|
|
1044
1040
|
} : void 0
|
|
1045
1041
|
]), 1024)
|
|
1046
1042
|
], !0)
|
|
1047
|
-
], 8,
|
|
1043
|
+
], 8, Ta),
|
|
1048
1044
|
F("div", {
|
|
1049
1045
|
class: "config-card-details-value",
|
|
1050
1046
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1053,13 +1049,13 @@ const ne = {
|
|
|
1053
1049
|
rowValue: e.item.value
|
|
1054
1050
|
}, () => [
|
|
1055
1051
|
l.value ? (f(), O("div", Ma, [
|
|
1056
|
-
(f(), D(be(c.value.tag), $r(
|
|
1052
|
+
(f(), D(be(c.value.tag), $r(Tr(c.value.attrs)), {
|
|
1057
1053
|
default: h(() => [
|
|
1058
1054
|
c.value.additionalComponent === "KBadge" ? (f(), O("div", {
|
|
1059
1055
|
key: 0,
|
|
1060
1056
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1061
1057
|
}, [
|
|
1062
|
-
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D(
|
|
1058
|
+
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D(L, {
|
|
1063
1059
|
key: `${e.item.key}-badge-tag-${_}`,
|
|
1064
1060
|
class: "config-badge",
|
|
1065
1061
|
"data-testid": `${e.item.key}-badge-tag-${_}`,
|
|
@@ -1077,7 +1073,7 @@ const ne = {
|
|
|
1077
1073
|
class: "copy-uuid-array",
|
|
1078
1074
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1079
1075
|
}, [
|
|
1080
|
-
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D($,
|
|
1076
|
+
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D($, Nr({ ref_for: !0 }, c.value.childAttrs, {
|
|
1081
1077
|
key: `${e.item.key}-copy-uuid-${_}`,
|
|
1082
1078
|
"data-testid": `${e.item.key}-copy-uuid-${_}`,
|
|
1083
1079
|
text: w
|
|
@@ -1087,7 +1083,7 @@ const ne = {
|
|
|
1087
1083
|
class: "method-badge-array",
|
|
1088
1084
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1089
1085
|
}, [
|
|
1090
|
-
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D(
|
|
1086
|
+
(f(!0), O(fe, null, pe(e.item.value, (w, _) => (f(), D(L, {
|
|
1091
1087
|
key: `${e.item.key}-badge-method-${_}`,
|
|
1092
1088
|
appearance: Object.values(m(Or)).includes(w.toLowerCase()) ? w.toLowerCase() : "custom",
|
|
1093
1089
|
class: "config-badge",
|
|
@@ -1109,7 +1105,7 @@ const ne = {
|
|
|
1109
1105
|
"is-array-item": "",
|
|
1110
1106
|
item: w
|
|
1111
1107
|
}, null, 8, ["index", "item"]))), 128))
|
|
1112
|
-
], 8, Ea)) : (f(), D(
|
|
1108
|
+
], 8, Ea)) : (f(), D(R, {
|
|
1113
1109
|
key: 4,
|
|
1114
1110
|
text: m(g) ? e.item.value : ""
|
|
1115
1111
|
}, {
|
|
@@ -1179,7 +1175,7 @@ const ne = {
|
|
|
1179
1175
|
const o = V("KBadge"), l = V("KCodeBlock");
|
|
1180
1176
|
return f(), O("div", Ua, [
|
|
1181
1177
|
t.fetcherUrl ? (f(), O("div", Ra, [
|
|
1182
|
-
|
|
1178
|
+
N(o, {
|
|
1183
1179
|
appearance: t.requestMethod
|
|
1184
1180
|
}, {
|
|
1185
1181
|
default: h(() => [
|
|
@@ -1187,7 +1183,7 @@ const ne = {
|
|
|
1187
1183
|
]),
|
|
1188
1184
|
_: 1
|
|
1189
1185
|
}, 8, ["appearance"]),
|
|
1190
|
-
|
|
1186
|
+
N(l, {
|
|
1191
1187
|
id: "json-endpoint-codeblock",
|
|
1192
1188
|
code: t.fetcherUrl,
|
|
1193
1189
|
language: "json",
|
|
@@ -1388,7 +1384,7 @@ ht.prototype.extend = function(e) {
|
|
|
1388
1384
|
var r = Object.create(ht.prototype);
|
|
1389
1385
|
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Zt(r, "implicit"), r.compiledExplicit = Zt(r, "explicit"), r.compiledTypeMap = ii(r.compiledImplicit, r.compiledExplicit), r;
|
|
1390
1386
|
};
|
|
1391
|
-
var
|
|
1387
|
+
var Tn = ht, Nn = new ie("tag:yaml.org,2002:str", {
|
|
1392
1388
|
kind: "scalar",
|
|
1393
1389
|
construct: function(e) {
|
|
1394
1390
|
return e !== null ? e : "";
|
|
@@ -1403,9 +1399,9 @@ var Nn = ht, Tn = new ie("tag:yaml.org,2002:str", {
|
|
|
1403
1399
|
construct: function(e) {
|
|
1404
1400
|
return e !== null ? e : {};
|
|
1405
1401
|
}
|
|
1406
|
-
}), Mn = new
|
|
1402
|
+
}), Mn = new Tn({
|
|
1407
1403
|
explicit: [
|
|
1408
|
-
|
|
1404
|
+
Nn,
|
|
1409
1405
|
jn,
|
|
1410
1406
|
On
|
|
1411
1407
|
]
|
|
@@ -1675,13 +1671,13 @@ function $i(e) {
|
|
|
1675
1671
|
}
|
|
1676
1672
|
return r % 8 === 0;
|
|
1677
1673
|
}
|
|
1678
|
-
function
|
|
1674
|
+
function Ti(e) {
|
|
1679
1675
|
var t, n, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = St, o = 0, l = [];
|
|
1680
1676
|
for (t = 0; t < a; t++)
|
|
1681
1677
|
t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(t));
|
|
1682
1678
|
return n = a % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1683
1679
|
}
|
|
1684
|
-
function
|
|
1680
|
+
function Ni(e) {
|
|
1685
1681
|
var t = "", n = 0, r, a, i = e.length, o = St;
|
|
1686
1682
|
for (r = 0; r < i; r++)
|
|
1687
1683
|
r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
@@ -1693,9 +1689,9 @@ function ji(e) {
|
|
|
1693
1689
|
var Pn = new ie("tag:yaml.org,2002:binary", {
|
|
1694
1690
|
kind: "scalar",
|
|
1695
1691
|
resolve: $i,
|
|
1696
|
-
construct:
|
|
1692
|
+
construct: Ti,
|
|
1697
1693
|
predicate: ji,
|
|
1698
|
-
represent:
|
|
1694
|
+
represent: Ni
|
|
1699
1695
|
}), Oi = Object.prototype.hasOwnProperty, Mi = Object.prototype.toString;
|
|
1700
1696
|
function qi(e) {
|
|
1701
1697
|
if (e === null) return !0;
|
|
@@ -1774,7 +1770,7 @@ function Xt(e) {
|
|
|
1774
1770
|
function he(e) {
|
|
1775
1771
|
return e === 10 || e === 13;
|
|
1776
1772
|
}
|
|
1777
|
-
function
|
|
1773
|
+
function Te(e) {
|
|
1778
1774
|
return e === 9 || e === 32;
|
|
1779
1775
|
}
|
|
1780
1776
|
function de(e) {
|
|
@@ -1883,7 +1879,7 @@ function $t(e) {
|
|
|
1883
1879
|
}
|
|
1884
1880
|
function ee(e, t, n) {
|
|
1885
1881
|
for (var r = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
|
|
1886
|
-
for (;
|
|
1882
|
+
for (; Te(a); )
|
|
1887
1883
|
a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
|
|
1888
1884
|
if (t && a === 35)
|
|
1889
1885
|
do
|
|
@@ -1901,7 +1897,7 @@ function ot(e) {
|
|
|
1901
1897
|
var t = e.position, n;
|
|
1902
1898
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || de(n)));
|
|
1903
1899
|
}
|
|
1904
|
-
function
|
|
1900
|
+
function Tt(e, t) {
|
|
1905
1901
|
t === 1 ? e.result += " " : t > 1 && (e.result += te.repeat(`
|
|
1906
1902
|
`, t - 1));
|
|
1907
1903
|
}
|
|
@@ -1928,7 +1924,7 @@ function Zi(e, t, n) {
|
|
|
1928
1924
|
break;
|
|
1929
1925
|
}
|
|
1930
1926
|
}
|
|
1931
|
-
l && (_e(e, i, o, !1),
|
|
1927
|
+
l && (_e(e, i, o, !1), Tt(e, e.line - s), i = o = e.position, l = !1), Te(g) || (o = e.position + 1), g = e.input.charCodeAt(++e.position);
|
|
1932
1928
|
}
|
|
1933
1929
|
return _e(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = b, !1);
|
|
1934
1930
|
}
|
|
@@ -1942,7 +1938,7 @@ function Qi(e, t) {
|
|
|
1942
1938
|
r = e.position, e.position++, a = e.position;
|
|
1943
1939
|
else
|
|
1944
1940
|
return !0;
|
|
1945
|
-
else he(n) ? (_e(e, r, a, !0),
|
|
1941
|
+
else he(n) ? (_e(e, r, a, !0), Tt(e, ee(e, !1, t)), r = a = e.position) : e.position === e.lineStart && ot(e) ? q(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
|
|
1946
1942
|
q(e, "unexpected end of the stream within a single quoted scalar");
|
|
1947
1943
|
}
|
|
1948
1944
|
function Xi(e, t) {
|
|
@@ -1964,12 +1960,12 @@ function Xi(e, t) {
|
|
|
1964
1960
|
} else
|
|
1965
1961
|
q(e, "unknown escape sequence");
|
|
1966
1962
|
n = r = e.position;
|
|
1967
|
-
} else he(l) ? (_e(e, n, r, !0),
|
|
1963
|
+
} else he(l) ? (_e(e, n, r, !0), Tt(e, ee(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ot(e) ? q(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1968
1964
|
}
|
|
1969
1965
|
q(e, "unexpected end of the stream within a double quoted scalar");
|
|
1970
1966
|
}
|
|
1971
1967
|
function eo(e, t) {
|
|
1972
|
-
var n = !0, r, a, i, o = e.tag, l, s = e.anchor, u, d, c, b, g, x = /* @__PURE__ */ Object.create(null),
|
|
1968
|
+
var n = !0, r, a, i, o = e.tag, l, s = e.anchor, u, d, c, b, g, x = /* @__PURE__ */ Object.create(null), K, C, L, $;
|
|
1973
1969
|
if ($ = e.input.charCodeAt(e.position), $ === 91)
|
|
1974
1970
|
d = 93, g = !1, l = [];
|
|
1975
1971
|
else if ($ === 123)
|
|
@@ -1979,7 +1975,7 @@ function eo(e, t) {
|
|
|
1979
1975
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), $ = e.input.charCodeAt(++e.position); $ !== 0; ) {
|
|
1980
1976
|
if (ee(e, !0, t), $ = e.input.charCodeAt(e.position), $ === d)
|
|
1981
1977
|
return e.position++, e.tag = o, e.anchor = s, e.kind = g ? "mapping" : "sequence", e.result = l, !0;
|
|
1982
|
-
n ? $ === 44 && q(e, "expected the node content, but found ','") : q(e, "missed comma between flow collection entries"), C =
|
|
1978
|
+
n ? $ === 44 && q(e, "expected the node content, but found ','") : q(e, "missed comma between flow collection entries"), C = K = L = null, c = b = !1, $ === 63 && (u = e.input.charCodeAt(e.position + 1), de(u) && (c = b = !0, e.position++, ee(e, !0, t))), r = e.line, a = e.lineStart, i = e.position, Le(e, t, Xe, !1, !0), C = e.tag, K = e.result, ee(e, !0, t), $ = e.input.charCodeAt(e.position), (b || e.line === r) && $ === 58 && (c = !0, $ = e.input.charCodeAt(++e.position), ee(e, !0, t), Le(e, t, Xe, !1, !0), L = e.result), g ? Ke(e, l, x, C, K, L, r, a, i) : c ? l.push(Ke(e, null, x, C, K, L, r, a, i)) : l.push(K), ee(e, !0, t), $ = e.input.charCodeAt(e.position), $ === 44 ? (n = !0, $ = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1983
1979
|
}
|
|
1984
1980
|
q(e, "unexpected end of the stream within a flow collection");
|
|
1985
1981
|
}
|
|
@@ -1998,10 +1994,10 @@ function to(e, t) {
|
|
|
1998
1994
|
d === 0 ? q(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? q(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
|
|
1999
1995
|
else
|
|
2000
1996
|
break;
|
|
2001
|
-
if (
|
|
1997
|
+
if (Te(c)) {
|
|
2002
1998
|
do
|
|
2003
1999
|
c = e.input.charCodeAt(++e.position);
|
|
2004
|
-
while (
|
|
2000
|
+
while (Te(c));
|
|
2005
2001
|
if (c === 35)
|
|
2006
2002
|
do
|
|
2007
2003
|
c = e.input.charCodeAt(++e.position);
|
|
@@ -2020,7 +2016,7 @@ function to(e, t) {
|
|
|
2020
2016
|
`);
|
|
2021
2017
|
break;
|
|
2022
2018
|
}
|
|
2023
|
-
for (r ?
|
|
2019
|
+
for (r ? Te(c) ? (u = !0, e.result += te.repeat(`
|
|
2024
2020
|
`, i ? 1 + s : s)) : u ? (u = !1, e.result += te.repeat(`
|
|
2025
2021
|
`, s + 1)) : s === 0 ? i && (e.result += " ") : e.result += te.repeat(`
|
|
2026
2022
|
`, s) : e.result += te.repeat(`
|
|
@@ -2046,34 +2042,34 @@ function rn(e, t) {
|
|
|
2046
2042
|
return l ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
|
|
2047
2043
|
}
|
|
2048
2044
|
function no(e, t, n) {
|
|
2049
|
-
var r, a, i, o, l, s, u = e.tag, d = e.anchor, c = {}, b = /* @__PURE__ */ Object.create(null), g = null, x = null,
|
|
2045
|
+
var r, a, i, o, l, s, u = e.tag, d = e.anchor, c = {}, b = /* @__PURE__ */ Object.create(null), g = null, x = null, K = null, C = !1, L = !1, $;
|
|
2050
2046
|
if (e.firstTabInLine !== -1) return !1;
|
|
2051
2047
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), $ = e.input.charCodeAt(e.position); $ !== 0; ) {
|
|
2052
2048
|
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, q(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, ($ === 63 || $ === 58) && de(r))
|
|
2053
|
-
$ === 63 ? (C && (Ke(e, c, b, g, x, null, o, l, s), g = x =
|
|
2049
|
+
$ === 63 ? (C && (Ke(e, c, b, g, x, null, o, l, s), g = x = K = null), L = !0, C = !0, a = !0) : C ? (C = !1, a = !0) : q(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, $ = r;
|
|
2054
2050
|
else {
|
|
2055
2051
|
if (o = e.line, l = e.lineStart, s = e.position, !Le(e, n, Jn, !1, !0))
|
|
2056
2052
|
break;
|
|
2057
2053
|
if (e.line === i) {
|
|
2058
|
-
for ($ = e.input.charCodeAt(e.position);
|
|
2054
|
+
for ($ = e.input.charCodeAt(e.position); Te($); )
|
|
2059
2055
|
$ = e.input.charCodeAt(++e.position);
|
|
2060
2056
|
if ($ === 58)
|
|
2061
|
-
$ = e.input.charCodeAt(++e.position), de($) || q(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Ke(e, c, b, g, x, null, o, l, s), g = x =
|
|
2062
|
-
else if (
|
|
2057
|
+
$ = e.input.charCodeAt(++e.position), de($) || q(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Ke(e, c, b, g, x, null, o, l, s), g = x = K = null), L = !0, C = !1, a = !1, g = e.tag, x = e.result;
|
|
2058
|
+
else if (L)
|
|
2063
2059
|
q(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2064
2060
|
else
|
|
2065
2061
|
return e.tag = u, e.anchor = d, !0;
|
|
2066
|
-
} else if (
|
|
2062
|
+
} else if (L)
|
|
2067
2063
|
q(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2068
2064
|
else
|
|
2069
2065
|
return e.tag = u, e.anchor = d, !0;
|
|
2070
2066
|
}
|
|
2071
|
-
if ((e.line === i || e.lineIndent > t) && (C && (o = e.line, l = e.lineStart, s = e.position), Le(e, t, et, !0, a) && (C ? x = e.result :
|
|
2067
|
+
if ((e.line === i || e.lineIndent > t) && (C && (o = e.line, l = e.lineStart, s = e.position), Le(e, t, et, !0, a) && (C ? x = e.result : K = e.result), C || (Ke(e, c, b, g, x, K, o, l, s), g = x = K = null), ee(e, !0, -1), $ = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > t) && $ !== 0)
|
|
2072
2068
|
q(e, "bad indentation of a mapping entry");
|
|
2073
2069
|
else if (e.lineIndent < t)
|
|
2074
2070
|
break;
|
|
2075
2071
|
}
|
|
2076
|
-
return C && Ke(e, c, b, g, x, null, o, l, s),
|
|
2072
|
+
return C && Ke(e, c, b, g, x, null, o, l, s), L && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), L;
|
|
2077
2073
|
}
|
|
2078
2074
|
function ro(e) {
|
|
2079
2075
|
var t, n = !1, r = !1, a, i, o;
|
|
@@ -2111,11 +2107,11 @@ function io(e) {
|
|
|
2111
2107
|
return e.position === t && q(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Ae.call(e.anchorMap, n) || q(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
|
|
2112
2108
|
}
|
|
2113
2109
|
function Le(e, t, n, r, a) {
|
|
2114
|
-
var i, o, l, s = 1, u = !1, d = !1, c, b, g, x,
|
|
2110
|
+
var i, o, l, s = 1, u = !1, d = !1, c, b, g, x, K, C;
|
|
2115
2111
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = l = et === n || Wn === n, r && ee(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2116
2112
|
for (; ro(e) || ao(e); )
|
|
2117
2113
|
ee(e, !0, -1) ? (u = !0, l = i, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2118
|
-
if (l && (l = u || a), (s === 1 || et === n) && (Xe === n || Jn === n ?
|
|
2114
|
+
if (l && (l = u || a), (s === 1 || et === n) && (Xe === n || Jn === n ? K = t : K = t + 1, C = e.position - e.lineStart, s === 1 ? l && (rn(e, C) || no(e, C, K)) || eo(e, K) ? d = !0 : (o && to(e, K) || Qi(e, K) || Xi(e, K) ? d = !0 : io(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && q(e, "alias node should not have any properties")) : Zi(e, K, Xe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && rn(e, C))), e.tag === null)
|
|
2119
2115
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2120
2116
|
else if (e.tag === "?") {
|
|
2121
2117
|
for (e.result !== null && e.kind !== "scalar" && q(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, b = e.implicitTypes.length; c < b; c += 1)
|
|
@@ -2142,7 +2138,7 @@ function oo(e) {
|
|
|
2142
2138
|
for (i = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !de(o); )
|
|
2143
2139
|
o = e.input.charCodeAt(++e.position);
|
|
2144
2140
|
for (r = e.input.slice(n, e.position), a = [], r.length < 1 && q(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
2145
|
-
for (;
|
|
2141
|
+
for (; Te(o); )
|
|
2146
2142
|
o = e.input.charCodeAt(++e.position);
|
|
2147
2143
|
if (o === 35) {
|
|
2148
2144
|
do
|
|
@@ -2195,7 +2191,7 @@ function so(e, t) {
|
|
|
2195
2191
|
var uo = lo, co = so, nr = {
|
|
2196
2192
|
loadAll: uo,
|
|
2197
2193
|
load: co
|
|
2198
|
-
}, rr = Object.prototype.toString, ar = Object.prototype.hasOwnProperty,
|
|
2194
|
+
}, rr = Object.prototype.toString, ar = Object.prototype.hasOwnProperty, Nt = 65279, po = 9, Ge = 10, fo = 13, mo = 32, go = 33, yo = 34, vt = 35, ho = 37, vo = 38, bo = 39, ko = 42, ir = 44, Co = 45, nt = 58, wo = 61, xo = 62, Io = 63, _o = 64, or = 91, lr = 93, So = 96, sr = 123, Ao = 124, ur = 125, le = {};
|
|
2199
2195
|
le[0] = "\\0";
|
|
2200
2196
|
le[7] = "\\a";
|
|
2201
2197
|
le[8] = "\\b";
|
|
@@ -2228,8 +2224,8 @@ var $o = [
|
|
|
2228
2224
|
"off",
|
|
2229
2225
|
"Off",
|
|
2230
2226
|
"OFF"
|
|
2231
|
-
],
|
|
2232
|
-
function
|
|
2227
|
+
], To = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2228
|
+
function No(e, t) {
|
|
2233
2229
|
var n, r, a, i, o, l, s;
|
|
2234
2230
|
if (t === null) return {};
|
|
2235
2231
|
for (n = {}, r = Object.keys(t), a = 0, i = r.length; a < i; a += 1)
|
|
@@ -2250,7 +2246,7 @@ function jo(e) {
|
|
|
2250
2246
|
}
|
|
2251
2247
|
var Oo = 1, He = 2;
|
|
2252
2248
|
function Mo(e) {
|
|
2253
|
-
this.schema = e.schema || At, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2249
|
+
this.schema = e.schema || At, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = No(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? He : Oo, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2254
2250
|
}
|
|
2255
2251
|
function an(e, t) {
|
|
2256
2252
|
for (var n = te.repeat(" ", t), r = 0, a = -1, i = "", o, l = e.length; r < l; )
|
|
@@ -2274,10 +2270,10 @@ function rt(e) {
|
|
|
2274
2270
|
return e === mo || e === po;
|
|
2275
2271
|
}
|
|
2276
2272
|
function Je(e) {
|
|
2277
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2273
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Nt || 65536 <= e && e <= 1114111;
|
|
2278
2274
|
}
|
|
2279
2275
|
function on(e) {
|
|
2280
|
-
return Je(e) && e !==
|
|
2276
|
+
return Je(e) && e !== Nt && e !== fo && e !== Ge;
|
|
2281
2277
|
}
|
|
2282
2278
|
function ln(e, t, n) {
|
|
2283
2279
|
var r = on(e), a = r && !rt(e);
|
|
@@ -2290,7 +2286,7 @@ function ln(e, t, n) {
|
|
|
2290
2286
|
);
|
|
2291
2287
|
}
|
|
2292
2288
|
function Fo(e) {
|
|
2293
|
-
return Je(e) && e !==
|
|
2289
|
+
return Je(e) && e !== Nt && !rt(e) && e !== Co && e !== Io && e !== nt && e !== ir && e !== or && e !== lr && e !== sr && e !== ur && e !== vt && e !== vo && e !== ko && e !== go && e !== Ao && e !== wo && e !== xo && e !== bo && e !== yo && e !== ho && e !== _o && e !== So;
|
|
2294
2290
|
}
|
|
2295
2291
|
function Bo(e) {
|
|
2296
2292
|
return !rt(e) && e !== nt;
|
|
@@ -2305,12 +2301,12 @@ function cr(e) {
|
|
|
2305
2301
|
}
|
|
2306
2302
|
var dr = 1, kt = 2, pr = 3, fr = 4, Be = 5;
|
|
2307
2303
|
function Eo(e, t, n, r, a, i, o, l) {
|
|
2308
|
-
var s, u = 0, d = null, c = !1, b = !1, g = r !== -1, x = -1,
|
|
2304
|
+
var s, u = 0, d = null, c = !1, b = !1, g = r !== -1, x = -1, K = Fo(Pe(e, 0)) && Bo(Pe(e, e.length - 1));
|
|
2309
2305
|
if (t || o)
|
|
2310
2306
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2311
2307
|
if (u = Pe(e, s), !Je(u))
|
|
2312
2308
|
return Be;
|
|
2313
|
-
|
|
2309
|
+
K = K && ln(u, d, l), d = u;
|
|
2314
2310
|
}
|
|
2315
2311
|
else {
|
|
2316
2312
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
@@ -2319,17 +2315,17 @@ function Eo(e, t, n, r, a, i, o, l) {
|
|
|
2319
2315
|
s - x - 1 > r && e[x + 1] !== " ", x = s);
|
|
2320
2316
|
else if (!Je(u))
|
|
2321
2317
|
return Be;
|
|
2322
|
-
|
|
2318
|
+
K = K && ln(u, d, l), d = u;
|
|
2323
2319
|
}
|
|
2324
2320
|
b = b || g && s - x - 1 > r && e[x + 1] !== " ";
|
|
2325
2321
|
}
|
|
2326
|
-
return !c && !b ?
|
|
2322
|
+
return !c && !b ? K && !o && !a(e) ? dr : i === He ? Be : kt : n > 9 && cr(e) ? Be : o ? i === He ? Be : kt : b ? fr : pr;
|
|
2327
2323
|
}
|
|
2328
2324
|
function Ko(e, t, n, r, a) {
|
|
2329
2325
|
e.dump = function() {
|
|
2330
2326
|
if (t.length === 0)
|
|
2331
2327
|
return e.quotingType === He ? '""' : "''";
|
|
2332
|
-
if (!e.noCompatMode && ($o.indexOf(t) !== -1 ||
|
|
2328
|
+
if (!e.noCompatMode && ($o.indexOf(t) !== -1 || To.test(t)))
|
|
2333
2329
|
return e.quotingType === He ? '"' + t + '"' : "'" + t + "'";
|
|
2334
2330
|
var i = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2335
2331
|
function s(u) {
|
|
@@ -2504,7 +2500,7 @@ function jt(e, t) {
|
|
|
2504
2500
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2505
2501
|
};
|
|
2506
2502
|
}
|
|
2507
|
-
var Jo = ie, Wo =
|
|
2503
|
+
var Jo = ie, Wo = Tn, Yo = Mn, Zo = Kn, Qo = Ln, Xo = At, el = nr.load, tl = nr.loadAll, nl = Ho.dump, rl = se, al = {
|
|
2508
2504
|
binary: Pn,
|
|
2509
2505
|
float: En,
|
|
2510
2506
|
map: On,
|
|
@@ -2517,7 +2513,7 @@ var Jo = ie, Wo = Nn, Yo = Mn, Zo = Kn, Qo = Ln, Xo = At, el = nr.load, tl = nr.
|
|
|
2517
2513
|
merge: Dn,
|
|
2518
2514
|
omap: zn,
|
|
2519
2515
|
seq: jn,
|
|
2520
|
-
str:
|
|
2516
|
+
str: Nn
|
|
2521
2517
|
}, il = jt("safeLoad", "load"), ol = jt("safeLoadAll", "loadAll"), ll = jt("safeDump", "dump"), sl = {
|
|
2522
2518
|
Type: Jo,
|
|
2523
2519
|
Schema: Wo,
|
|
@@ -2623,7 +2619,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
2623
2619
|
(f(!0), O(fe, null, pe(e.propertyCollections[s], (u) => (f(), D(_n, {
|
|
2624
2620
|
key: u.key,
|
|
2625
2621
|
item: u
|
|
2626
|
-
},
|
|
2622
|
+
}, Ne({
|
|
2627
2623
|
label: h(() => [
|
|
2628
2624
|
Q(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2629
2625
|
]),
|
|
@@ -2863,10 +2859,10 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
2863
2859
|
_: 1
|
|
2864
2860
|
}, 8, ["aria-hidden", "style"]));
|
|
2865
2861
|
}
|
|
2866
|
-
}), Sl = /* @__PURE__ */ We(_l, [["__scopeId", "data-v-fbe6ddff"]]), Al = (e) => (Re("data-v-745761f6"), e = e(), Ve(), e), $l = ["aria-hidden"],
|
|
2862
|
+
}), Sl = /* @__PURE__ */ We(_l, [["__scopeId", "data-v-fbe6ddff"]]), Al = (e) => (Re("data-v-745761f6"), e = e(), Ve(), e), $l = ["aria-hidden"], Tl = {
|
|
2867
2863
|
key: 0,
|
|
2868
2864
|
"data-testid": "kui-icon-svg-title"
|
|
2869
|
-
},
|
|
2865
|
+
}, Nl = /* @__PURE__ */ Al(() => /* @__PURE__ */ F("path", {
|
|
2870
2866
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2871
2867
|
fill: "currentColor"
|
|
2872
2868
|
}, null, -1)), jl = /* @__PURE__ */ W({
|
|
@@ -2956,8 +2952,8 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
2956
2952
|
width: "100%",
|
|
2957
2953
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2958
2954
|
}, [
|
|
2959
|
-
e.title ? (f(), O("title",
|
|
2960
|
-
|
|
2955
|
+
e.title ? (f(), O("title", Tl, j(e.title), 1)) : z("", !0),
|
|
2956
|
+
Nl
|
|
2961
2957
|
], 8, $l))
|
|
2962
2958
|
]),
|
|
2963
2959
|
_: 1
|
|
@@ -3295,66 +3291,66 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3295
3291
|
// the last property displayed
|
|
3296
3292
|
section: ce.Basic
|
|
3297
3293
|
}
|
|
3298
|
-
}, g = B(!1), x = B(!1),
|
|
3294
|
+
}, g = B(!1), x = B(!1), K = B(""), C = B({}), L = I(() => {
|
|
3299
3295
|
var p, k, v;
|
|
3300
3296
|
if (!C.value)
|
|
3301
3297
|
return [];
|
|
3302
3298
|
const y = [], A = Object.keys(C.value).length;
|
|
3303
|
-
for (const
|
|
3304
|
-
const S = (k = (p = a.configSchema) == null ? void 0 : p[
|
|
3305
|
-
let
|
|
3306
|
-
(M || M === 0) && (
|
|
3299
|
+
for (const U in C.value) {
|
|
3300
|
+
const S = (k = (p = a.configSchema) == null ? void 0 : p[U]) == null ? void 0 : k.order, M = (v = b[U]) == null ? void 0 : v.order;
|
|
3301
|
+
let E = A;
|
|
3302
|
+
(M || M === 0) && (E = M === -1 ? A + 1 : M), S && (E = S === -1 ? A + 1 : S), y.push([U, E]);
|
|
3307
3303
|
}
|
|
3308
|
-
return y.sort(function(
|
|
3309
|
-
return
|
|
3310
|
-
}), y.map((
|
|
3304
|
+
return y.sort(function(U, S) {
|
|
3305
|
+
return U[1] - S[1];
|
|
3306
|
+
}), y.map((U) => {
|
|
3311
3307
|
var S, M;
|
|
3312
|
-
const
|
|
3308
|
+
const E = U[0], P = (S = C.value) == null ? void 0 : S[E], G = ((M = a.configSchema) == null ? void 0 : M[E]) || {}, oe = b[E];
|
|
3313
3309
|
return {
|
|
3314
|
-
key:
|
|
3310
|
+
key: E,
|
|
3315
3311
|
value: P,
|
|
3316
3312
|
hidden: G.hidden || !1,
|
|
3317
3313
|
type: G.type ?? ((oe == null ? void 0 : oe.type) || Z.Text),
|
|
3318
|
-
label: G.label ?? ((oe == null ? void 0 : oe.label) || l(
|
|
3314
|
+
label: G.label ?? ((oe == null ? void 0 : oe.label) || l(E)),
|
|
3319
3315
|
tooltip: G.tooltip ?? ((oe == null ? void 0 : oe.tooltip) || void 0),
|
|
3320
3316
|
section: G.section ?? ((oe == null ? void 0 : oe.section) || ce.Advanced)
|
|
3321
3317
|
};
|
|
3322
|
-
}).filter((
|
|
3318
|
+
}).filter((U) => !U.hidden && U.key !== a.pluginConfigKey);
|
|
3323
3319
|
}), $ = I(() => {
|
|
3324
3320
|
var p, k;
|
|
3325
3321
|
if (!C.value || !a.pluginConfigKey)
|
|
3326
3322
|
return [];
|
|
3327
3323
|
const v = C.value[a.pluginConfigKey] || {}, y = Object.keys(v).length, A = [];
|
|
3328
|
-
for (const
|
|
3329
|
-
const S = (k = (p = a.pluginConfigSchema) == null ? void 0 : p[
|
|
3330
|
-
let
|
|
3331
|
-
S && (
|
|
3324
|
+
for (const U in v) {
|
|
3325
|
+
const S = (k = (p = a.pluginConfigSchema) == null ? void 0 : p[U]) == null ? void 0 : k.order, M = v[U];
|
|
3326
|
+
let E = M != null && M !== "" ? y - 1 : y;
|
|
3327
|
+
S && (E = S === -1 ? y + 1 : S), A.push([U, E]);
|
|
3332
3328
|
}
|
|
3333
|
-
return A.sort(function(
|
|
3334
|
-
return
|
|
3335
|
-
}), A.map((
|
|
3329
|
+
return A.sort(function(U, S) {
|
|
3330
|
+
return U[1] - S[1];
|
|
3331
|
+
}), A.map((U) => {
|
|
3336
3332
|
var S;
|
|
3337
|
-
const M =
|
|
3333
|
+
const M = U[0], E = v[M], P = ((S = a.pluginConfigSchema) == null ? void 0 : S[M]) || {};
|
|
3338
3334
|
return {
|
|
3339
3335
|
key: M,
|
|
3340
|
-
value:
|
|
3336
|
+
value: E,
|
|
3341
3337
|
hidden: P.hidden || !1,
|
|
3342
3338
|
type: P.type ?? Z.Text,
|
|
3343
3339
|
label: P.label ?? l(M),
|
|
3344
3340
|
tooltip: P.tooltip ?? void 0,
|
|
3345
3341
|
section: ce.Plugin
|
|
3346
3342
|
};
|
|
3347
|
-
}).filter((
|
|
3348
|
-
}),
|
|
3343
|
+
}).filter((U) => !U.hidden);
|
|
3344
|
+
}), R = I(() => {
|
|
3349
3345
|
var p, k, v, y;
|
|
3350
3346
|
return {
|
|
3351
|
-
basic: (p =
|
|
3352
|
-
advanced: (k =
|
|
3353
|
-
plugin: (y = $.value) == null ? void 0 : y.concat((v =
|
|
3347
|
+
basic: (p = L.value) == null ? void 0 : p.filter((A) => A.section === ce.Basic),
|
|
3348
|
+
advanced: (k = L.value) == null ? void 0 : k.filter((A) => A.section === ce.Advanced),
|
|
3349
|
+
plugin: (y = $.value) == null ? void 0 : y.concat((v = L.value) == null ? void 0 : v.filter((A) => A.section === ce.Plugin))
|
|
3354
3350
|
};
|
|
3355
3351
|
}), w = I(() => {
|
|
3356
3352
|
const p = [];
|
|
3357
|
-
return
|
|
3353
|
+
return R.value.basic.length && p.push("basic"), R.value.advanced.length && p.push("advanced"), R.value.plugin.length && p.push("plugin"), p;
|
|
3358
3354
|
}), _ = I(() => {
|
|
3359
3355
|
var p, k;
|
|
3360
3356
|
let v = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
@@ -3378,20 +3374,20 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3378
3374
|
}), r("fetch:success", p);
|
|
3379
3375
|
} catch (p) {
|
|
3380
3376
|
const k = o(p);
|
|
3381
|
-
|
|
3377
|
+
K.value = k.startsWith("code") ? i("baseConfigCard.errors.load") : k, x.value = !0, r("fetch:error", p);
|
|
3382
3378
|
} finally {
|
|
3383
3379
|
g.value = !1;
|
|
3384
3380
|
}
|
|
3385
3381
|
}), (p, k) => {
|
|
3386
|
-
const v = V("KLabel"), y = V("KSelect"), A = V("KButton"),
|
|
3382
|
+
const v = V("KLabel"), y = V("KSelect"), A = V("KButton"), U = V("KSkeleton"), S = V("KEmptyState"), M = V("KCard");
|
|
3387
3383
|
return f(), D(M, {
|
|
3388
3384
|
class: "kong-ui-entity-base-config-card",
|
|
3389
3385
|
"title-tag": e.titleTag
|
|
3390
|
-
},
|
|
3386
|
+
}, Ne({
|
|
3391
3387
|
actions: h(() => [
|
|
3392
3388
|
F("div", Gl, [
|
|
3393
3389
|
Q(p.$slots, "actions", {}, void 0, !0),
|
|
3394
|
-
|
|
3390
|
+
N(v, {
|
|
3395
3391
|
class: "config-format-select-label",
|
|
3396
3392
|
"data-testid": "config-format-select-label"
|
|
3397
3393
|
}, {
|
|
@@ -3400,7 +3396,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3400
3396
|
]),
|
|
3401
3397
|
_: 1
|
|
3402
3398
|
}),
|
|
3403
|
-
|
|
3399
|
+
N(y, {
|
|
3404
3400
|
"data-testid": "select-config-format",
|
|
3405
3401
|
items: u,
|
|
3406
3402
|
onChange: c
|
|
@@ -3417,7 +3413,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3417
3413
|
rel: "noopener",
|
|
3418
3414
|
target: "_blank"
|
|
3419
3415
|
}, [
|
|
3420
|
-
|
|
3416
|
+
N(m(Sl), { size: m(Aa) }, null, 8, ["size"])
|
|
3421
3417
|
], 8, Hl)
|
|
3422
3418
|
]),
|
|
3423
3419
|
_: 1
|
|
@@ -3425,7 +3421,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3425
3421
|
])
|
|
3426
3422
|
]),
|
|
3427
3423
|
default: h(() => [
|
|
3428
|
-
g.value ? (f(), D(
|
|
3424
|
+
g.value ? (f(), D(U, {
|
|
3429
3425
|
key: 0,
|
|
3430
3426
|
"data-testid": "config-card-loader",
|
|
3431
3427
|
"table-columns": 2,
|
|
@@ -3436,23 +3432,23 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3436
3432
|
"icon-variant": "error"
|
|
3437
3433
|
}, {
|
|
3438
3434
|
default: h(() => [
|
|
3439
|
-
F("h3", null, j(
|
|
3435
|
+
F("h3", null, j(K.value), 1)
|
|
3440
3436
|
]),
|
|
3441
3437
|
_: 1
|
|
3442
3438
|
})) : z("", !0),
|
|
3443
3439
|
F("div", Jl, [
|
|
3444
|
-
|
|
3440
|
+
N(ml, {
|
|
3445
3441
|
config: e.config,
|
|
3446
3442
|
"fetcher-url": _.value,
|
|
3447
3443
|
format: d.value,
|
|
3448
3444
|
"prop-list-types": w.value,
|
|
3449
|
-
"property-collections":
|
|
3445
|
+
"property-collections": R.value,
|
|
3450
3446
|
record: C.value
|
|
3451
|
-
},
|
|
3452
|
-
pe(Object.keys(p.$slots), (
|
|
3453
|
-
name:
|
|
3447
|
+
}, Ne({ _: 2 }, [
|
|
3448
|
+
pe(Object.keys(p.$slots), (E) => ({
|
|
3449
|
+
name: E,
|
|
3454
3450
|
fn: h(({ row: P, rowValue: G }) => [
|
|
3455
|
-
Q(p.$slots,
|
|
3451
|
+
Q(p.$slots, E, {
|
|
3456
3452
|
row: P,
|
|
3457
3453
|
rowValue: G
|
|
3458
3454
|
}, void 0, !0)
|
|
@@ -3553,15 +3549,15 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3553
3549
|
var w, _;
|
|
3554
3550
|
let p = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3555
3551
|
return a.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((w = a.config) == null ? void 0 : w.controlPlaneId) || "") : a.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (_ = a.config) != null && _.workspace ? `/${a.config.workspace}` : "")), a.editId ? (p = p.replace(/{id}/gi, a.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
|
|
3556
|
-
}),
|
|
3552
|
+
}), K = () => {
|
|
3557
3553
|
g.value = !g.value;
|
|
3558
3554
|
}, C = () => {
|
|
3559
|
-
a.config.cancelRoute ? i.push(a.config.cancelRoute) :
|
|
3560
|
-
},
|
|
3555
|
+
a.config.cancelRoute ? i.push(a.config.cancelRoute) : L();
|
|
3556
|
+
}, L = () => {
|
|
3561
3557
|
r("cancel");
|
|
3562
3558
|
}, $ = () => {
|
|
3563
3559
|
b.value || r("submit");
|
|
3564
|
-
},
|
|
3560
|
+
}, R = B([
|
|
3565
3561
|
{
|
|
3566
3562
|
title: o("baseForm.configuration.yaml"),
|
|
3567
3563
|
hash: "#yaml"
|
|
@@ -3586,7 +3582,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3586
3582
|
u.value = !1;
|
|
3587
3583
|
}
|
|
3588
3584
|
}), (w, _) => {
|
|
3589
|
-
const p = V("KSkeleton"), k = V("KEmptyState"), v = V("KAlert"), y = V("KButton"), A = V("KTabs"),
|
|
3585
|
+
const p = V("KSkeleton"), k = V("KEmptyState"), v = V("KAlert"), y = V("KButton"), A = V("KTabs"), U = V("KSlideout");
|
|
3590
3586
|
return f(), D(be(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3591
3587
|
default: h(() => [
|
|
3592
3588
|
u.value ? (f(), D(p, {
|
|
@@ -3607,7 +3603,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3607
3603
|
key: 2,
|
|
3608
3604
|
"data-testid": "form-content",
|
|
3609
3605
|
novalidate: a.noValidate,
|
|
3610
|
-
onReset: gt(
|
|
3606
|
+
onReset: gt(L, ["prevent"]),
|
|
3611
3607
|
onSubmit: gt($, ["prevent"])
|
|
3612
3608
|
}, [
|
|
3613
3609
|
Q(w.$slots, "default", {}, void 0, !0),
|
|
@@ -3619,17 +3615,17 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3619
3615
|
}, null, 8, ["message"])) : z("", !0),
|
|
3620
3616
|
F("div", Ql, [
|
|
3621
3617
|
Q(w.$slots, "form-actions", {}, () => [
|
|
3622
|
-
|
|
3618
|
+
N(y, {
|
|
3623
3619
|
appearance: "tertiary",
|
|
3624
3620
|
"data-testid": "form-view-configuration",
|
|
3625
|
-
onClick: _[0] || (_[0] = (S) =>
|
|
3621
|
+
onClick: _[0] || (_[0] = (S) => K())
|
|
3626
3622
|
}, {
|
|
3627
3623
|
default: h(() => [
|
|
3628
3624
|
J(j(m(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3629
3625
|
]),
|
|
3630
3626
|
_: 1
|
|
3631
3627
|
}),
|
|
3632
|
-
|
|
3628
|
+
N(y, {
|
|
3633
3629
|
appearance: "secondary",
|
|
3634
3630
|
"data-testid": "form-cancel",
|
|
3635
3631
|
disabled: e.isReadonly,
|
|
@@ -3640,7 +3636,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3640
3636
|
]),
|
|
3641
3637
|
_: 1
|
|
3642
3638
|
}, 8, ["disabled"]),
|
|
3643
|
-
|
|
3639
|
+
N(y, {
|
|
3644
3640
|
appearance: "primary",
|
|
3645
3641
|
"data-testid": "form-submit",
|
|
3646
3642
|
disabled: b.value,
|
|
@@ -3654,23 +3650,23 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3654
3650
|
], !0)
|
|
3655
3651
|
])
|
|
3656
3652
|
], 40, Zl)),
|
|
3657
|
-
|
|
3653
|
+
N(U, {
|
|
3658
3654
|
"close-on-blur": !1,
|
|
3659
3655
|
"data-testid": "form-view-configuration-slideout",
|
|
3660
3656
|
"has-overlay": !1,
|
|
3661
3657
|
"offset-top": 60,
|
|
3662
3658
|
title: m(o)("baseForm.configuration.title"),
|
|
3663
3659
|
visible: g.value,
|
|
3664
|
-
onClose: _[1] || (_[1] = (S) =>
|
|
3660
|
+
onClose: _[1] || (_[1] = (S) => K())
|
|
3665
3661
|
}, {
|
|
3666
3662
|
default: h(() => [
|
|
3667
3663
|
F("div", null, j(m(o)("baseForm.configuration.message")), 1),
|
|
3668
|
-
|
|
3664
|
+
N(A, {
|
|
3669
3665
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3670
|
-
tabs:
|
|
3666
|
+
tabs: R.value
|
|
3671
3667
|
}, {
|
|
3672
3668
|
json: h(() => [
|
|
3673
|
-
|
|
3669
|
+
N(Sn, {
|
|
3674
3670
|
config: e.config,
|
|
3675
3671
|
"fetcher-url": x.value,
|
|
3676
3672
|
"json-record": a.formFields,
|
|
@@ -3678,7 +3674,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3678
3674
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3679
3675
|
]),
|
|
3680
3676
|
yaml: h(() => [
|
|
3681
|
-
|
|
3677
|
+
N(mr, {
|
|
3682
3678
|
"yaml-record": a.formFields
|
|
3683
3679
|
}, null, 8, ["yaml-record"])
|
|
3684
3680
|
]),
|
|
@@ -3716,41 +3712,41 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3716
3712
|
var C;
|
|
3717
3713
|
return ((C = n.value) == null ? void 0 : C.querySelector('[data-truncate="true"]')) || null;
|
|
3718
3714
|
}), a = I(() => {
|
|
3719
|
-
var C,
|
|
3715
|
+
var C, L;
|
|
3720
3716
|
const $ = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
|
|
3721
|
-
return $ ? ((
|
|
3717
|
+
return $ ? ((L = $[0]) == null ? void 0 : L.getAttribute("data-testid")) === t.keyName : !0;
|
|
3722
3718
|
}), i = I(() => a.value || t.tooltip);
|
|
3723
3719
|
let o;
|
|
3724
3720
|
const l = () => {
|
|
3725
3721
|
o && (o.disconnect(), o = void 0);
|
|
3726
3722
|
}, s = () => {
|
|
3727
|
-
var C,
|
|
3728
|
-
let
|
|
3723
|
+
var C, L, $;
|
|
3724
|
+
let R = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
|
|
3729
3725
|
if (n.value && "getComputedStyle" in window) {
|
|
3730
3726
|
const w = window.getComputedStyle(n.value);
|
|
3731
|
-
|
|
3727
|
+
R -= (parseFloat(w.paddingLeft) || 0) + (parseFloat(w.paddingRight) || 0);
|
|
3732
3728
|
}
|
|
3733
|
-
d.value = ((
|
|
3729
|
+
d.value = ((L = r.value) == null ? void 0 : L.getBoundingClientRect().width) || 0, c.value = R, b.value = (($ = u.value) == null ? void 0 : $.innerText) || "";
|
|
3734
3730
|
}, u = B({}), d = B(0), c = B(0), b = B(""), g = I(() => [r.value, n.value]), x = Ce(
|
|
3735
3731
|
g,
|
|
3736
3732
|
(C) => {
|
|
3737
3733
|
if (i.value && (l(), "ResizeObserver" in window && window)) {
|
|
3738
|
-
o = new ResizeObserver((
|
|
3734
|
+
o = new ResizeObserver((L) => {
|
|
3739
3735
|
window.requestAnimationFrame(() => {
|
|
3740
|
-
!Array.isArray(
|
|
3736
|
+
!Array.isArray(L) || !L.length || s();
|
|
3741
3737
|
});
|
|
3742
3738
|
});
|
|
3743
|
-
for (const
|
|
3744
|
-
|
|
3739
|
+
for (const L of C)
|
|
3740
|
+
L && o.observe(L);
|
|
3745
3741
|
}
|
|
3746
3742
|
},
|
|
3747
3743
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3748
|
-
),
|
|
3744
|
+
), K = I(() => i.value ? d.value > c.value : !1);
|
|
3749
3745
|
return Sr(() => {
|
|
3750
3746
|
s();
|
|
3751
3747
|
}), Ar(() => {
|
|
3752
3748
|
x();
|
|
3753
|
-
}), (C,
|
|
3749
|
+
}), (C, L) => {
|
|
3754
3750
|
const $ = V("KTooltip");
|
|
3755
3751
|
return f(), O("span", {
|
|
3756
3752
|
ref_key: "contentRef",
|
|
@@ -3761,10 +3757,10 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3761
3757
|
key: 0,
|
|
3762
3758
|
"data-truncate": i.value || void 0
|
|
3763
3759
|
}, [
|
|
3764
|
-
|
|
3760
|
+
N($, {
|
|
3765
3761
|
"max-width": "300",
|
|
3766
3762
|
placement: "bottom-start",
|
|
3767
|
-
text:
|
|
3763
|
+
text: K.value ? b.value : ""
|
|
3768
3764
|
}, {
|
|
3769
3765
|
default: h(() => [
|
|
3770
3766
|
Q(C.$slots, "default", {}, void 0, !0)
|
|
@@ -3942,30 +3938,30 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3942
3938
|
r("empty-state-cta-clicked"), x();
|
|
3943
3939
|
}, x = () => {
|
|
3944
3940
|
r("clear-search-input");
|
|
3945
|
-
},
|
|
3941
|
+
}, K = I(() => n.disableRowClick ? void 0 : (p, k) => {
|
|
3946
3942
|
r("click:row", k);
|
|
3947
3943
|
}), C = (p) => {
|
|
3948
3944
|
r("sort", p);
|
|
3949
|
-
}, { setTablePreferences:
|
|
3945
|
+
}, { setTablePreferences: L, getTablePreferences: $ } = Gr(), R = B($(o.value)), w = I(() => {
|
|
3950
3946
|
const p = $(o.value);
|
|
3951
3947
|
return {
|
|
3952
3948
|
...n.initialFetcherParams,
|
|
3953
3949
|
...p
|
|
3954
3950
|
};
|
|
3955
3951
|
}), _ = (p) => {
|
|
3956
|
-
|
|
3957
|
-
!("hidable" in k) || !
|
|
3958
|
-
}), o.value &&
|
|
3952
|
+
R.value = p, s.value.forEach((k) => {
|
|
3953
|
+
!("hidable" in k) || !R.value.columnVisibility || k.hidable === !1 && (R.value.columnVisibility[k.key] = !0);
|
|
3954
|
+
}), o.value && L(o.value, p);
|
|
3959
3955
|
};
|
|
3960
3956
|
return (p, k) => {
|
|
3961
|
-
const v = V("KButton"), y = V("KDropdown"), A = V("KTable"),
|
|
3962
|
-
return f(), D(
|
|
3957
|
+
const v = V("KButton"), y = V("KDropdown"), A = V("KTable"), U = V("KCard");
|
|
3958
|
+
return f(), D(U, {
|
|
3963
3959
|
class: "kong-ui-entity-base-table",
|
|
3964
3960
|
title: e.title,
|
|
3965
3961
|
"title-tag": e.titleTag
|
|
3966
3962
|
}, {
|
|
3967
3963
|
default: h(() => [
|
|
3968
|
-
|
|
3964
|
+
N(A, {
|
|
3969
3965
|
ref_key: "tableRefs",
|
|
3970
3966
|
ref: d,
|
|
3971
3967
|
"cache-identifier": o.value,
|
|
@@ -3992,12 +3988,12 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
3992
3988
|
"search-input": e.query,
|
|
3993
3989
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3994
3990
|
sortable: !e.disableSorting,
|
|
3995
|
-
"table-preferences":
|
|
3991
|
+
"table-preferences": R.value,
|
|
3996
3992
|
onEmptyStateActionClick: g,
|
|
3997
|
-
"onRow:click":
|
|
3993
|
+
"onRow:click": K.value,
|
|
3998
3994
|
onSort: k[0] || (k[0] = (S) => C(S)),
|
|
3999
3995
|
"onUpdate:tablePreferences": _
|
|
4000
|
-
},
|
|
3996
|
+
}, Ne({
|
|
4001
3997
|
toolbar: h(({ state: S }) => [
|
|
4002
3998
|
xe(F("div", as, [
|
|
4003
3999
|
Q(p.$slots, "toolbar-filter", {}, void 0, !0),
|
|
@@ -4008,12 +4004,12 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4008
4004
|
[Ie, l(S)]
|
|
4009
4005
|
])
|
|
4010
4006
|
]),
|
|
4011
|
-
actions: h(({ row: S, rowKey: M, rowValue:
|
|
4007
|
+
actions: h(({ row: S, rowKey: M, rowValue: E }) => [
|
|
4012
4008
|
F("div", {
|
|
4013
4009
|
class: "actions-container",
|
|
4014
4010
|
"data-testid": S.name
|
|
4015
4011
|
}, [
|
|
4016
|
-
|
|
4012
|
+
N(y, {
|
|
4017
4013
|
"kpop-attributes": { placement: "bottom-end" },
|
|
4018
4014
|
width: e.dropdownMenuWidth
|
|
4019
4015
|
}, {
|
|
@@ -4021,11 +4017,11 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4021
4017
|
Q(p.$slots, "actions", {
|
|
4022
4018
|
row: S,
|
|
4023
4019
|
rowKey: M,
|
|
4024
|
-
rowValue:
|
|
4020
|
+
rowValue: E
|
|
4025
4021
|
}, void 0, !0)
|
|
4026
4022
|
]),
|
|
4027
4023
|
default: h(() => [
|
|
4028
|
-
|
|
4024
|
+
N(v, {
|
|
4029
4025
|
appearance: "tertiary",
|
|
4030
4026
|
class: "actions-trigger",
|
|
4031
4027
|
"data-testid": "overflow-actions-button",
|
|
@@ -4033,7 +4029,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4033
4029
|
size: "small"
|
|
4034
4030
|
}, {
|
|
4035
4031
|
default: h(() => [
|
|
4036
|
-
|
|
4032
|
+
N(m(Pl))
|
|
4037
4033
|
]),
|
|
4038
4034
|
_: 1
|
|
4039
4035
|
})
|
|
@@ -4046,15 +4042,15 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4046
4042
|
}, [
|
|
4047
4043
|
pe(e.tableHeaders, (S, M) => ({
|
|
4048
4044
|
name: M,
|
|
4049
|
-
fn: h(({ row:
|
|
4050
|
-
|
|
4045
|
+
fn: h(({ row: E, rowKey: P, rowValue: G }) => [
|
|
4046
|
+
N(rs, {
|
|
4051
4047
|
"key-name": String(M),
|
|
4052
|
-
"row-el": c(
|
|
4048
|
+
"row-el": c(E),
|
|
4053
4049
|
tooltip: S.tooltip
|
|
4054
4050
|
}, {
|
|
4055
4051
|
default: h(() => [
|
|
4056
4052
|
Q(p.$slots, M, {
|
|
4057
|
-
row:
|
|
4053
|
+
row: E,
|
|
4058
4054
|
rowKey: P,
|
|
4059
4055
|
rowValue: G
|
|
4060
4056
|
}, () => [
|
|
@@ -4068,7 +4064,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4068
4064
|
e.query ? void 0 : {
|
|
4069
4065
|
name: "empty-state-action-icon",
|
|
4070
4066
|
fn: h(() => [
|
|
4071
|
-
|
|
4067
|
+
N(m(kl))
|
|
4072
4068
|
]),
|
|
4073
4069
|
key: "0"
|
|
4074
4070
|
}
|
|
@@ -4143,18 +4139,18 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4143
4139
|
}, {
|
|
4144
4140
|
default: h(() => [
|
|
4145
4141
|
e.error ? (f(), O("div", us, [
|
|
4146
|
-
|
|
4142
|
+
N(d, { appearance: "danger" }, {
|
|
4147
4143
|
default: h(() => [
|
|
4148
4144
|
J(j(e.error), 1)
|
|
4149
4145
|
]),
|
|
4150
4146
|
_: 1
|
|
4151
4147
|
})
|
|
4152
4148
|
])) : z("", !0),
|
|
4153
|
-
|
|
4149
|
+
N(m(n), {
|
|
4154
4150
|
class: "message",
|
|
4155
4151
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4156
4152
|
tag: "p"
|
|
4157
|
-
},
|
|
4153
|
+
}, Ne({
|
|
4158
4154
|
entityType: h(() => [
|
|
4159
4155
|
J(j(r.entityType), 1)
|
|
4160
4156
|
]),
|
|
@@ -4269,7 +4265,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4269
4265
|
a("update:modelValue", w);
|
|
4270
4266
|
}, g = () => {
|
|
4271
4267
|
b("");
|
|
4272
|
-
}, x = (w) => `filter-${w}`,
|
|
4268
|
+
}, x = (w) => `filter-${w}`, K = (w) => {
|
|
4273
4269
|
var _, p;
|
|
4274
4270
|
return (((p = (_ = r.config.schema) == null ? void 0 : _[w]) == null ? void 0 : p.values) ?? []).map((k) => ({
|
|
4275
4271
|
value: k,
|
|
@@ -4278,14 +4274,14 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4278
4274
|
}, C = (w) => {
|
|
4279
4275
|
var _, p;
|
|
4280
4276
|
return ((p = (_ = r.config.schema) == null ? void 0 : _[w]) == null ? void 0 : p.type) ?? "text";
|
|
4281
|
-
},
|
|
4277
|
+
}, L = (w) => {
|
|
4282
4278
|
o.value = {
|
|
4283
4279
|
...o.value,
|
|
4284
4280
|
[w]: ""
|
|
4285
|
-
},
|
|
4281
|
+
}, R();
|
|
4286
4282
|
}, $ = () => {
|
|
4287
|
-
o.value = {},
|
|
4288
|
-
},
|
|
4283
|
+
o.value = {}, R(!0);
|
|
4284
|
+
}, R = (w = !1) => {
|
|
4289
4285
|
const _ = Object.keys(o.value).reduce((p, k) => (o.value[k] && (p[k] = `${o.value[k]}`), p), {});
|
|
4290
4286
|
w && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
|
|
4291
4287
|
};
|
|
@@ -4301,10 +4297,10 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4301
4297
|
"onUpdate:modelValue": b
|
|
4302
4298
|
}, {
|
|
4303
4299
|
before: h(() => [
|
|
4304
|
-
|
|
4300
|
+
N(fn)
|
|
4305
4301
|
]),
|
|
4306
4302
|
after: h(() => [
|
|
4307
|
-
xe(
|
|
4303
|
+
xe(N(m(Kl), {
|
|
4308
4304
|
class: "kong-ui-entity-filter-clear",
|
|
4309
4305
|
onClick: g
|
|
4310
4306
|
}, null, 512), [
|
|
@@ -4313,13 +4309,13 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4313
4309
|
]),
|
|
4314
4310
|
_: 1
|
|
4315
4311
|
}, 8, ["model-value", "placeholder"])) : (f(), O("div", vs, [
|
|
4316
|
-
|
|
4312
|
+
N(k, {
|
|
4317
4313
|
appearance: "tertiary",
|
|
4318
4314
|
"data-testid": "filter-button",
|
|
4319
4315
|
onClick: d
|
|
4320
4316
|
}, {
|
|
4321
4317
|
default: h(() => [
|
|
4322
|
-
|
|
4318
|
+
N(fn),
|
|
4323
4319
|
J(" " + j(m(n)("filter.filterButtonText")) + " " + j(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4324
4320
|
]),
|
|
4325
4321
|
_: 1
|
|
@@ -4332,7 +4328,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4332
4328
|
]),
|
|
4333
4329
|
xe(F("div", bs, [
|
|
4334
4330
|
(f(!0), O(fe, null, pe(u.value, (y) => {
|
|
4335
|
-
var A,
|
|
4331
|
+
var A, U;
|
|
4336
4332
|
return f(), O("div", {
|
|
4337
4333
|
key: y.value,
|
|
4338
4334
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4349,7 +4345,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4349
4345
|
xe(F("span", ws, null, 512), [
|
|
4350
4346
|
[Ie, s.value.includes(y.value)]
|
|
4351
4347
|
]),
|
|
4352
|
-
|
|
4348
|
+
N(m(Ol), {
|
|
4353
4349
|
class: Se(["menu-item-expand-icon", { expanded: l.value.has(y.value) }]),
|
|
4354
4350
|
color: m(_a)
|
|
4355
4351
|
}, null, 8, ["class", "color"])
|
|
@@ -4359,12 +4355,12 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4359
4355
|
class: "menu-item-label",
|
|
4360
4356
|
for: x(y.value)
|
|
4361
4357
|
}, j(m(n)("filter.fieldLabel")), 9, Is),
|
|
4362
|
-
((
|
|
4358
|
+
((U = (A = e.config.schema) == null ? void 0 : A[y.value]) == null ? void 0 : U.type) === "select" ? (f(), D(v, {
|
|
4363
4359
|
key: 0,
|
|
4364
4360
|
id: x(y.value),
|
|
4365
4361
|
modelValue: o.value[y.value],
|
|
4366
4362
|
"onUpdate:modelValue": (S) => o.value[y.value] = S,
|
|
4367
|
-
items:
|
|
4363
|
+
items: K(y.value),
|
|
4368
4364
|
placeholder: m(n)("filter.selectPlaceholder")
|
|
4369
4365
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), D(p, {
|
|
4370
4366
|
key: 1,
|
|
@@ -4379,22 +4375,22 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4379
4375
|
[Ie, l.value.has(y.value)]
|
|
4380
4376
|
]),
|
|
4381
4377
|
xe(F("div", _s, [
|
|
4382
|
-
|
|
4378
|
+
N(k, {
|
|
4383
4379
|
appearance: "tertiary",
|
|
4384
4380
|
"data-testid": "apply-filter",
|
|
4385
4381
|
size: "small",
|
|
4386
|
-
onClick: _[0] || (_[0] = (S) =>
|
|
4382
|
+
onClick: _[0] || (_[0] = (S) => R(!0))
|
|
4387
4383
|
}, {
|
|
4388
4384
|
default: h(() => [
|
|
4389
4385
|
J(j(m(n)("filter.applyButtonText")), 1)
|
|
4390
4386
|
]),
|
|
4391
4387
|
_: 1
|
|
4392
4388
|
}),
|
|
4393
|
-
|
|
4389
|
+
N(k, {
|
|
4394
4390
|
appearance: "tertiary",
|
|
4395
4391
|
"data-testid": "clear-filter",
|
|
4396
4392
|
size: "small",
|
|
4397
|
-
onClick: (S) =>
|
|
4393
|
+
onClick: (S) => L(y.value)
|
|
4398
4394
|
}, {
|
|
4399
4395
|
default: h(() => [
|
|
4400
4396
|
J(j(m(n)("filter.clearButtonText")), 1)
|
|
@@ -4407,7 +4403,7 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4407
4403
|
], 8, ks);
|
|
4408
4404
|
}), 128)),
|
|
4409
4405
|
F("div", Ss, [
|
|
4410
|
-
|
|
4406
|
+
N(k, {
|
|
4411
4407
|
appearance: "tertiary",
|
|
4412
4408
|
size: "small",
|
|
4413
4409
|
onClick: $
|
|
@@ -4456,11 +4452,11 @@ const ul = { class: "yaml-config" }, mr = /* @__PURE__ */ W({
|
|
|
4456
4452
|
}
|
|
4457
4453
|
});
|
|
4458
4454
|
let Ze;
|
|
4459
|
-
const
|
|
4460
|
-
function
|
|
4455
|
+
const Ts = new Uint8Array(16);
|
|
4456
|
+
function Ns() {
|
|
4461
4457
|
if (!Ze && (Ze = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ze))
|
|
4462
4458
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4463
|
-
return Ze(
|
|
4459
|
+
return Ze(Ts);
|
|
4464
4460
|
}
|
|
4465
4461
|
const re = [];
|
|
4466
4462
|
for (let e = 0; e < 256; ++e)
|
|
@@ -4475,7 +4471,7 @@ function Ms(e, t, n) {
|
|
|
4475
4471
|
if (mn.randomUUID && !t && !e)
|
|
4476
4472
|
return mn.randomUUID();
|
|
4477
4473
|
e = e || {};
|
|
4478
|
-
const r = e.random || (e.rng ||
|
|
4474
|
+
const r = e.random || (e.rng || Ns)();
|
|
4479
4475
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4480
4476
|
n = n || 0;
|
|
4481
4477
|
for (let a = 0; a < 16; ++a)
|
|
@@ -4594,7 +4590,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4594
4590
|
fetchedItemsKey: "data",
|
|
4595
4591
|
searchKeys: ["username", "id"]
|
|
4596
4592
|
}
|
|
4597
|
-
), g = (M) => M, x = I(() => d.value ? n("consumers.errors.general") : ""),
|
|
4593
|
+
), g = (M) => M, x = I(() => d.value ? n("consumers.errors.general") : ""), K = B(0), C = I(() => u.value === void 0), L = I(() => b.value.map((M) => ({
|
|
4598
4594
|
label: M.username || M.customId,
|
|
4599
4595
|
value: M.id,
|
|
4600
4596
|
selected: o.value.includes(M.id),
|
|
@@ -4602,9 +4598,9 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4602
4598
|
// we need this to determine whether or not to show the description text
|
|
4603
4599
|
}))), $ = (M) => {
|
|
4604
4600
|
var P;
|
|
4605
|
-
const
|
|
4606
|
-
return
|
|
4607
|
-
},
|
|
4601
|
+
const E = C.value ? b.value.find((G) => G.id === M) : (P = u.value) == null ? void 0 : P.find((G) => G.id === M);
|
|
4602
|
+
return E ? E.username || E.custom_id : M;
|
|
4603
|
+
}, R = () => {
|
|
4608
4604
|
p.value = "", w.value = [], A.value = [], a("cancel");
|
|
4609
4605
|
}, w = B([]), _ = B(!1), p = B(""), k = async () => {
|
|
4610
4606
|
if (!o.value.length) {
|
|
@@ -4613,42 +4609,42 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4613
4609
|
}
|
|
4614
4610
|
_.value = !0, p.value = "", w.value = [], A.value = [];
|
|
4615
4611
|
try {
|
|
4616
|
-
const M = o.value.map((G) => y(G)),
|
|
4612
|
+
const M = o.value.map((G) => y(G)), E = await Promise.allSettled(M);
|
|
4617
4613
|
let P = !0;
|
|
4618
|
-
|
|
4614
|
+
E.forEach((G) => {
|
|
4619
4615
|
G.status !== "fulfilled" && (P = !1);
|
|
4620
|
-
}), P ? (w.value = [], A.value = [], a("add:success", o.value), o.value = []) : (w.value.length && a("add:partial-success", w.value), o.value = [],
|
|
4616
|
+
}), P ? (w.value = [], A.value = [], a("add:success", o.value), o.value = []) : (w.value.length && a("add:partial-success", w.value), o.value = [], U(E));
|
|
4621
4617
|
} catch {
|
|
4622
4618
|
p.value = n("consumers.errors.add"), a("error", p.value);
|
|
4623
4619
|
} finally {
|
|
4624
4620
|
_.value = !1;
|
|
4625
4621
|
}
|
|
4626
4622
|
}, v = I(() => {
|
|
4627
|
-
var
|
|
4623
|
+
var E, P, G, oe;
|
|
4628
4624
|
let M = `${r.config.apiBaseUrl}${je.list[r.config.app].forConsumerGroup}`;
|
|
4629
|
-
return r.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((
|
|
4625
|
+
return r.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((P = r.config) == null ? void 0 : P.consumerGroupId) || "") : r.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (G = r.config) != null && G.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((oe = r.config) == null ? void 0 : oe.consumerGroupId) || "")), M;
|
|
4630
4626
|
}), y = async (M) => {
|
|
4631
|
-
const
|
|
4627
|
+
const E = {
|
|
4632
4628
|
consumer: M
|
|
4633
4629
|
};
|
|
4634
4630
|
try {
|
|
4635
|
-
const P = await i.post(v.value,
|
|
4631
|
+
const P = await i.post(v.value, E);
|
|
4636
4632
|
return w.value.push(M), P;
|
|
4637
4633
|
} catch (P) {
|
|
4638
4634
|
let G = `${$(M)} - ${P.message}`;
|
|
4639
4635
|
return P.response.status === 409 && (G = `${$(M)} - ${n("consumers.errors.already_added")}`), Promise.reject(Error(G));
|
|
4640
4636
|
}
|
|
4641
|
-
}, A = B([]),
|
|
4642
|
-
A.value = M.map((
|
|
4637
|
+
}, A = B([]), U = (M) => {
|
|
4638
|
+
A.value = M.map((E) => {
|
|
4643
4639
|
var P;
|
|
4644
|
-
return (P =
|
|
4640
|
+
return (P = E.reason) == null ? void 0 : P.message;
|
|
4645
4641
|
}).filter(Boolean);
|
|
4646
4642
|
};
|
|
4647
|
-
return Ce(
|
|
4648
|
-
|
|
4643
|
+
return Ce(L, () => {
|
|
4644
|
+
K.value++;
|
|
4649
4645
|
}, { immediate: !0, deep: !0 }), Ce(() => r.visible, () => {
|
|
4650
4646
|
r.visible && c();
|
|
4651
|
-
}, { immediate: !0 }), (M,
|
|
4647
|
+
}, { immediate: !0 }), (M, E) => {
|
|
4652
4648
|
const P = V("KMultiselect"), G = V("KAlert"), oe = V("KPrompt");
|
|
4653
4649
|
return f(), D(oe, {
|
|
4654
4650
|
"action-button-disabled": _.value,
|
|
@@ -4656,19 +4652,19 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4656
4652
|
"data-testid": "add-consumer-modal",
|
|
4657
4653
|
title: m(n)("consumers.consumer_groups.add.title"),
|
|
4658
4654
|
visible: e.visible,
|
|
4659
|
-
onCancel:
|
|
4655
|
+
onCancel: R,
|
|
4660
4656
|
onProceed: k
|
|
4661
4657
|
}, {
|
|
4662
4658
|
default: h(() => [
|
|
4663
4659
|
F("div", zs, [
|
|
4664
4660
|
F("p", Gs, j(m(n)("consumers.consumer_groups.add.ctaText")), 1),
|
|
4665
|
-
|
|
4661
|
+
N(P, {
|
|
4666
4662
|
modelValue: o.value,
|
|
4667
|
-
"onUpdate:modelValue":
|
|
4663
|
+
"onUpdate:modelValue": E[0] || (E[0] = (ge) => o.value = ge),
|
|
4668
4664
|
autosuggest: "",
|
|
4669
4665
|
"data-testid": "add-consumers-multiselect",
|
|
4670
4666
|
"dropdown-footer-text": C.value ? m(n)("consumers.consumer_groups.add.footer") : void 0,
|
|
4671
|
-
items:
|
|
4667
|
+
items: L.value,
|
|
4672
4668
|
label: m(n)("consumers.consumer_groups.add.consumers_label"),
|
|
4673
4669
|
loading: m(s),
|
|
4674
4670
|
placeholder: m(n)("consumers.consumer_groups.add.consumer_placeholder"),
|
|
@@ -4684,7 +4680,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4684
4680
|
_: 1
|
|
4685
4681
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4686
4682
|
p.value || x.value || A.value.length ? (f(), O("div", Ws, [
|
|
4687
|
-
|
|
4683
|
+
N(G, { appearance: "danger" }, {
|
|
4688
4684
|
default: h(() => [
|
|
4689
4685
|
F("p", null, j(m(n)("consumers.errors.add")), 1),
|
|
4690
4686
|
A.value.length ? (f(), O("ul", Ys, [
|
|
@@ -4760,76 +4756,76 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4760
4756
|
username: { label: i("consumers.list.table_headers.username"), searchable: !0, sortable: !0, hidable: !1 },
|
|
4761
4757
|
custom_id: { label: i("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
|
|
4762
4758
|
tags: { label: i("consumers.list.table_headers.tags"), sortable: !1 }
|
|
4763
|
-
}, g = b, x = (
|
|
4764
|
-
"data-testid":
|
|
4765
|
-
}),
|
|
4759
|
+
}, g = b, x = (T) => ({
|
|
4760
|
+
"data-testid": T.username ?? T.custom_id ?? T.id
|
|
4761
|
+
}), K = I(() => {
|
|
4766
4762
|
var H, X, ue, ye;
|
|
4767
|
-
let
|
|
4768
|
-
return r.config.app === "konnect" ?
|
|
4769
|
-
}), C = B(""),
|
|
4770
|
-
const
|
|
4771
|
-
return
|
|
4772
|
-
isExactMatch:
|
|
4763
|
+
let T = `${r.config.apiBaseUrl}${je.list[r.config.app][u.value ? "forConsumerGroup" : "all"]}`;
|
|
4764
|
+
return r.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((H = r.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((X = r.config) == null ? void 0 : X.consumerGroupId) || "") : r.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ue = r.config) != null && ue.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = r.config) == null ? void 0 : ye.consumerGroupId) || "")), T;
|
|
4765
|
+
}), C = B(""), L = I(() => {
|
|
4766
|
+
const T = r.config.app === "konnect" || r.config.isExactMatch;
|
|
4767
|
+
return T ? {
|
|
4768
|
+
isExactMatch: T,
|
|
4773
4769
|
placeholder: i(`consumers.search.placeholder.${r.config.app}`)
|
|
4774
4770
|
} : {
|
|
4775
|
-
isExactMatch:
|
|
4771
|
+
isExactMatch: T,
|
|
4776
4772
|
fields: {
|
|
4777
4773
|
username: b.username,
|
|
4778
4774
|
custom_id: b.custom_id
|
|
4779
4775
|
},
|
|
4780
4776
|
schema: r.config.filterSchema
|
|
4781
4777
|
};
|
|
4782
|
-
}), $ = I(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher:
|
|
4778
|
+
}), $ = I(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: R, fetcherState: w } = Ds(r.config, K.value, $.value), _ = () => {
|
|
4783
4779
|
C.value = "";
|
|
4784
4780
|
}, p = () => {
|
|
4785
4781
|
s.value++;
|
|
4786
|
-
}, k = (
|
|
4787
|
-
const X =
|
|
4782
|
+
}, k = (T) => T ?? "-", v = B(null), y = (T, H) => {
|
|
4783
|
+
const X = T.id;
|
|
4788
4784
|
if (!H(X)) {
|
|
4789
4785
|
n("copy:error", {
|
|
4790
|
-
entity:
|
|
4786
|
+
entity: T,
|
|
4791
4787
|
field: "id",
|
|
4792
4788
|
message: i("consumers.errors.copy")
|
|
4793
4789
|
});
|
|
4794
4790
|
return;
|
|
4795
4791
|
}
|
|
4796
4792
|
n("copy:success", {
|
|
4797
|
-
entity:
|
|
4793
|
+
entity: T,
|
|
4798
4794
|
field: "id",
|
|
4799
4795
|
message: i("consumers.copy.success", { val: X })
|
|
4800
4796
|
});
|
|
4801
|
-
}, A = (
|
|
4802
|
-
const X = JSON.stringify(
|
|
4797
|
+
}, A = (T, H) => {
|
|
4798
|
+
const X = JSON.stringify(T);
|
|
4803
4799
|
if (!H(X)) {
|
|
4804
4800
|
n("copy:error", {
|
|
4805
|
-
entity:
|
|
4801
|
+
entity: T,
|
|
4806
4802
|
message: i("consumers.errors.copy")
|
|
4807
4803
|
});
|
|
4808
4804
|
return;
|
|
4809
4805
|
}
|
|
4810
4806
|
n("copy:success", {
|
|
4811
|
-
entity:
|
|
4807
|
+
entity: T,
|
|
4812
4808
|
message: i("consumers.copy.success_brief")
|
|
4813
4809
|
});
|
|
4814
|
-
},
|
|
4810
|
+
}, U = async (T) => {
|
|
4815
4811
|
var X;
|
|
4816
|
-
await ((X = r.canRetrieve) == null ? void 0 : X.call(r,
|
|
4817
|
-
}, S = (
|
|
4812
|
+
await ((X = r.canRetrieve) == null ? void 0 : X.call(r, T)) && o.push(r.config.getViewRoute(T.id));
|
|
4813
|
+
}, S = (T) => ({
|
|
4818
4814
|
label: i("consumers.actions.view"),
|
|
4819
|
-
to: r.config.getViewRoute(
|
|
4820
|
-
}), M = (
|
|
4815
|
+
to: r.config.getViewRoute(T)
|
|
4816
|
+
}), M = (T) => ({
|
|
4821
4817
|
label: i("consumers.actions.edit"),
|
|
4822
|
-
to: r.config.getEditRoute(
|
|
4823
|
-
}),
|
|
4824
|
-
|
|
4818
|
+
to: r.config.getEditRoute(T)
|
|
4819
|
+
}), E = B(void 0), P = B(!1), G = B(!1), oe = B(""), ge = Rs(r.config, K.value), lt = (T) => {
|
|
4820
|
+
E.value = T, P.value = !0;
|
|
4825
4821
|
}, gr = () => {
|
|
4826
4822
|
P.value = !1;
|
|
4827
4823
|
}, yr = async () => {
|
|
4828
|
-
var
|
|
4829
|
-
if ((
|
|
4824
|
+
var T, H, X;
|
|
4825
|
+
if ((T = E.value) != null && T.id) {
|
|
4830
4826
|
G.value = !0;
|
|
4831
4827
|
try {
|
|
4832
|
-
await l.delete(ge(
|
|
4828
|
+
await l.delete(ge(E.value.id)), G.value = !1, P.value = !1, s.value++, n("delete:success", E.value);
|
|
4833
4829
|
} catch (ue) {
|
|
4834
4830
|
oe.value = ((X = (H = ue.response) == null ? void 0 : H.data) == null ? void 0 : X.message) || ue.message || i("consumers.errors.delete"), n("error", ue);
|
|
4835
4831
|
} finally {
|
|
@@ -4840,37 +4836,37 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4840
4836
|
st.value = !0;
|
|
4841
4837
|
}, Ft = () => {
|
|
4842
4838
|
st.value = !1;
|
|
4843
|
-
}, Bt = (
|
|
4844
|
-
H || Ft(), s.value++, n("add:success",
|
|
4839
|
+
}, Bt = (T, H) => {
|
|
4840
|
+
H || Ft(), s.value++, n("add:success", T);
|
|
4845
4841
|
}, hr = () => {
|
|
4846
4842
|
u.value && qt();
|
|
4847
|
-
}, ke = B(void 0), ut = B(!1), vr = B(""), br = (
|
|
4848
|
-
ke.value =
|
|
4843
|
+
}, ke = B(void 0), ut = B(!1), vr = B(""), br = (T) => {
|
|
4844
|
+
ke.value = T, ut.value = !0;
|
|
4849
4845
|
}, Et = () => {
|
|
4850
4846
|
ut.value = !1, ke.value = void 0;
|
|
4851
4847
|
}, kr = I(() => {
|
|
4852
4848
|
var H, X, ue, ye;
|
|
4853
|
-
let
|
|
4854
|
-
return r.config.app === "konnect" ?
|
|
4849
|
+
let T = `${r.config.apiBaseUrl}${je.list[r.config.app].oneForConsumerGroup}`;
|
|
4850
|
+
return r.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((H = r.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((X = r.config) == null ? void 0 : X.consumerGroupId) || "") : r.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ue = r.config) != null && ue.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ye = r.config) == null ? void 0 : ye.consumerGroupId) || "")), T;
|
|
4855
4851
|
}), Kt = B(!1), Cr = async () => {
|
|
4856
4852
|
if (ke.value) {
|
|
4857
4853
|
Kt.value = !0;
|
|
4858
4854
|
try {
|
|
4859
|
-
const
|
|
4860
|
-
await l.delete(
|
|
4861
|
-
} catch (
|
|
4862
|
-
vr.value =
|
|
4855
|
+
const T = kr.value.replace(/{consumerId}/gi, ke.value.id);
|
|
4856
|
+
await l.delete(T), n("remove:success", ke.value), Et(), s.value++;
|
|
4857
|
+
} catch (T) {
|
|
4858
|
+
vr.value = T.message || i("consumers.errors.delete"), n("error", T);
|
|
4863
4859
|
} finally {
|
|
4864
4860
|
Kt.value = !1;
|
|
4865
4861
|
}
|
|
4866
4862
|
}
|
|
4867
4863
|
}, Lt = B(!1);
|
|
4868
|
-
Ce(w, (
|
|
4864
|
+
Ce(w, (T) => {
|
|
4869
4865
|
var H, X, ue, ye;
|
|
4870
|
-
if (Array.isArray((H =
|
|
4866
|
+
if (Array.isArray((H = T == null ? void 0 : T.response) == null ? void 0 : H.data) && (Lt.value = T.response.data.length > 0), T.status === $e.Error) {
|
|
4871
4867
|
v.value = {
|
|
4872
4868
|
title: i("consumers.errors.general")
|
|
4873
|
-
}, (ye = (ue = (X =
|
|
4869
|
+
}, (ye = (ue = (X = T.error) == null ? void 0 : X.response) == null ? void 0 : ue.data) != null && ye.message && (v.value.message = T.error.response.data.message), n("error", T.error);
|
|
4874
4870
|
return;
|
|
4875
4871
|
}
|
|
4876
4872
|
v.value = null;
|
|
@@ -4883,10 +4879,10 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4883
4879
|
});
|
|
4884
4880
|
return wt(async () => {
|
|
4885
4881
|
await r.canCreate() && (ct.value.title = u.value ? i("consumers.list.empty_state.title_for_consumer_group") : i("consumers.list.empty_state.title"), ct.value.ctaText = u.value ? i("consumers.actions.add_consumer") : i("consumers.actions.create"));
|
|
4886
|
-
}), (
|
|
4882
|
+
}), (T, H) => {
|
|
4887
4883
|
const X = V("KButton"), ue = V("KBadge"), ye = V("KTruncate"), De = V("KDropdownItem"), Rt = V("KClipboardProvider"), wr = V("KPrompt");
|
|
4888
4884
|
return f(), O("div", Xs, [
|
|
4889
|
-
|
|
4885
|
+
N(m(ss), {
|
|
4890
4886
|
"cache-identifier": e.cacheIdentifier,
|
|
4891
4887
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4892
4888
|
"disable-pagination-page-jump": "",
|
|
@@ -4894,7 +4890,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4894
4890
|
"empty-state-options": ct.value,
|
|
4895
4891
|
"enable-entity-actions": "",
|
|
4896
4892
|
"error-message": v.value,
|
|
4897
|
-
fetcher: m(
|
|
4893
|
+
fetcher: m(R),
|
|
4898
4894
|
"fetcher-cache-key": s.value,
|
|
4899
4895
|
"pagination-type": "offset",
|
|
4900
4896
|
"preferences-storage-key": d.value,
|
|
@@ -4903,7 +4899,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4903
4899
|
"table-headers": m(g),
|
|
4904
4900
|
"use-action-outside": e.useActionOutside,
|
|
4905
4901
|
onClearSearchInput: _,
|
|
4906
|
-
"onClick:row": H[3] || (H[3] = (Y) =>
|
|
4902
|
+
"onClick:row": H[3] || (H[3] = (Y) => U(Y)),
|
|
4907
4903
|
onEmptyStateCtaClicked: hr,
|
|
4908
4904
|
onSort: p
|
|
4909
4905
|
}, {
|
|
@@ -4912,7 +4908,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4912
4908
|
key: 0,
|
|
4913
4909
|
modelValue: C.value,
|
|
4914
4910
|
"onUpdate:modelValue": H[0] || (H[0] = (Y) => C.value = Y),
|
|
4915
|
-
config:
|
|
4911
|
+
config: L.value
|
|
4916
4912
|
}, null, 8, ["modelValue", "config"]))
|
|
4917
4913
|
]),
|
|
4918
4914
|
"toolbar-button": h(() => [
|
|
@@ -4920,11 +4916,11 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4920
4916
|
disabled: !e.useActionOutside,
|
|
4921
4917
|
to: "#kong-ui-app-page-header-action-button"
|
|
4922
4918
|
}, [
|
|
4923
|
-
|
|
4919
|
+
N(m(Ye), {
|
|
4924
4920
|
"auth-function": () => e.canCreate()
|
|
4925
4921
|
}, {
|
|
4926
4922
|
default: h(() => [
|
|
4927
|
-
xe(
|
|
4923
|
+
xe(N(X, {
|
|
4928
4924
|
appearance: "primary",
|
|
4929
4925
|
"data-testid": "toolbar-add-consumer",
|
|
4930
4926
|
size: "large",
|
|
@@ -4932,7 +4928,7 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4932
4928
|
onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? qt() : void 0)
|
|
4933
4929
|
}, {
|
|
4934
4930
|
default: h(() => [
|
|
4935
|
-
|
|
4931
|
+
N(m(Lr)),
|
|
4936
4932
|
J(" " + j(e.config.consumerGroupId ? m(i)("consumers.actions.add_consumer") : m(i)("consumers.list.toolbar_actions.new_consumer")), 1)
|
|
4937
4933
|
]),
|
|
4938
4934
|
_: 1
|
|
@@ -4968,9 +4964,9 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4968
4964
|
}, 1024)) : (f(), O("span", eu, "-"))
|
|
4969
4965
|
]),
|
|
4970
4966
|
actions: h(({ row: Y }) => [
|
|
4971
|
-
|
|
4967
|
+
N(Rt, null, {
|
|
4972
4968
|
default: h(({ copyToClipboard: Oe }) => [
|
|
4973
|
-
|
|
4969
|
+
N(De, {
|
|
4974
4970
|
"data-testid": "action-entity-copy-id",
|
|
4975
4971
|
onClick: (xr) => y(Y, Oe)
|
|
4976
4972
|
}, {
|
|
@@ -4982,9 +4978,9 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4982
4978
|
]),
|
|
4983
4979
|
_: 2
|
|
4984
4980
|
}, 1024),
|
|
4985
|
-
|
|
4981
|
+
N(Rt, null, {
|
|
4986
4982
|
default: h(({ copyToClipboard: Oe }) => [
|
|
4987
|
-
|
|
4983
|
+
N(De, {
|
|
4988
4984
|
"data-testid": "action-entity-copy-json",
|
|
4989
4985
|
onClick: (xr) => A(Y, Oe)
|
|
4990
4986
|
}, {
|
|
@@ -4996,11 +4992,11 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
4996
4992
|
]),
|
|
4997
4993
|
_: 2
|
|
4998
4994
|
}, 1024),
|
|
4999
|
-
|
|
4995
|
+
N(m(Ye), {
|
|
5000
4996
|
"auth-function": () => e.canRetrieve(Y)
|
|
5001
4997
|
}, {
|
|
5002
4998
|
default: h(() => [
|
|
5003
|
-
|
|
4999
|
+
N(De, {
|
|
5004
5000
|
"data-testid": "action-entity-view",
|
|
5005
5001
|
"has-divider": "",
|
|
5006
5002
|
item: S(Y.id)
|
|
@@ -5008,22 +5004,22 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
5008
5004
|
]),
|
|
5009
5005
|
_: 2
|
|
5010
5006
|
}, 1032, ["auth-function"]),
|
|
5011
|
-
|
|
5007
|
+
N(m(Ye), {
|
|
5012
5008
|
"auth-function": () => e.canEdit(Y)
|
|
5013
5009
|
}, {
|
|
5014
5010
|
default: h(() => [
|
|
5015
|
-
|
|
5011
|
+
N(De, {
|
|
5016
5012
|
"data-testid": "action-entity-edit",
|
|
5017
5013
|
item: M(Y.id)
|
|
5018
5014
|
}, null, 8, ["item"])
|
|
5019
5015
|
]),
|
|
5020
5016
|
_: 2
|
|
5021
5017
|
}, 1032, ["auth-function"]),
|
|
5022
|
-
|
|
5018
|
+
N(m(Ye), {
|
|
5023
5019
|
"auth-function": () => e.canDelete(Y)
|
|
5024
5020
|
}, {
|
|
5025
5021
|
default: h(() => [
|
|
5026
|
-
|
|
5022
|
+
N(De, {
|
|
5027
5023
|
danger: "",
|
|
5028
5024
|
"data-testid": "action-entity-delete",
|
|
5029
5025
|
"has-divider": "",
|
|
@@ -5040,11 +5036,11 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
5040
5036
|
]),
|
|
5041
5037
|
_: 1
|
|
5042
5038
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
|
|
5043
|
-
|
|
5039
|
+
N(m(ps), {
|
|
5044
5040
|
"action-button-disabled": G.value,
|
|
5045
5041
|
"data-testid": "delete-consumer-modal",
|
|
5046
5042
|
description: m(i)("consumers.delete.description"),
|
|
5047
|
-
"entity-name":
|
|
5043
|
+
"entity-name": E.value && (E.value.username || E.value.custom_id || E.value.id),
|
|
5048
5044
|
"entity-type": m(bn).Consumer,
|
|
5049
5045
|
error: oe.value,
|
|
5050
5046
|
title: m(i)("consumers.delete.title"),
|
|
@@ -5071,11 +5067,11 @@ const qs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, Bs = {
|
|
|
5071
5067
|
onProceed: Cr
|
|
5072
5068
|
}, {
|
|
5073
5069
|
default: h(() => [
|
|
5074
|
-
|
|
5070
|
+
N(m(a), {
|
|
5075
5071
|
class: "message",
|
|
5076
5072
|
keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
|
|
5077
5073
|
tag: "p"
|
|
5078
|
-
},
|
|
5074
|
+
}, Ne({
|
|
5079
5075
|
consumer: h(() => [
|
|
5080
5076
|
F("strong", null, j(ke.value.username || ke.value.custom_id || ke.value.id), 1)
|
|
5081
5077
|
]),
|
|
@@ -5165,18 +5161,18 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5165
5161
|
o.push(((v = n.config) == null ? void 0 : v.cancelRoute) || { name: "consumer-list" });
|
|
5166
5162
|
}, x = (v) => {
|
|
5167
5163
|
r("loading", v);
|
|
5168
|
-
},
|
|
5164
|
+
}, K = (v) => {
|
|
5169
5165
|
r("error", v);
|
|
5170
5166
|
}, C = (v) => {
|
|
5171
|
-
var A,
|
|
5172
|
-
d.fields.username = ((A = v == null ? void 0 : v.item) == null ? void 0 : A.username) || (v == null ? void 0 : v.username) || "", d.fields.customId = ((
|
|
5167
|
+
var A, U, S;
|
|
5168
|
+
d.fields.username = ((A = v == null ? void 0 : v.item) == null ? void 0 : A.username) || (v == null ? void 0 : v.username) || "", d.fields.customId = ((U = v == null ? void 0 : v.item) == null ? void 0 : U.custom_id) || (v == null ? void 0 : v.custom_id) || "";
|
|
5173
5169
|
const y = ((S = v == null ? void 0 : v.item) == null ? void 0 : S.tags) || (v == null ? void 0 : v.tags) || [];
|
|
5174
5170
|
d.fields.tags = (y == null ? void 0 : y.join(", ")) || "", Object.assign(c, d.fields);
|
|
5175
|
-
},
|
|
5176
|
-
var A,
|
|
5177
|
-
let y = `${(A = n.config) == null ? void 0 : A.apiBaseUrl}${je.form[(
|
|
5178
|
-
return ((S = n.config) == null ? void 0 : S.app) === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((M = n.config) == null ? void 0 : M.controlPlaneId) || "") : ((
|
|
5179
|
-
},
|
|
5171
|
+
}, L = I(() => n.consumerId ? yt.Edit : yt.Create), $ = (v) => {
|
|
5172
|
+
var A, U, S, M, E, P;
|
|
5173
|
+
let y = `${(A = n.config) == null ? void 0 : A.apiBaseUrl}${je.form[(U = n.config) == null ? void 0 : U.app][v]}`;
|
|
5174
|
+
return ((S = n.config) == null ? void 0 : S.app) === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((M = n.config) == null ? void 0 : M.controlPlaneId) || "") : ((E = n.config) == null ? void 0 : E.app) === "kongManager" && (y = y.replace(/\/{workspace}/gi, (P = n.config) != null && P.workspace ? `/${n.config.workspace}` : "")), y = y.replace(/{id}/gi, n.consumerId), y;
|
|
5175
|
+
}, R = I(() => !!d.fields.username || !!d.fields.customId), w = I(() => JSON.stringify(d.fields) !== JSON.stringify(c)), _ = I(() => {
|
|
5180
5176
|
var v, y;
|
|
5181
5177
|
return {
|
|
5182
5178
|
username: d.fields.username || null,
|
|
@@ -5188,7 +5184,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5188
5184
|
try {
|
|
5189
5185
|
d.readonly = !0;
|
|
5190
5186
|
let y;
|
|
5191
|
-
await l.post($("validate"), _.value),
|
|
5187
|
+
await l.post($("validate"), _.value), L.value === "create" ? y = await l.post($("create"), _.value) : L.value === "edit" && (y = ((v = n.config) == null ? void 0 : v.app) === "konnect" ? await l.put($("edit"), _.value) : await l.patch($("edit"), _.value)), C(y == null ? void 0 : y.data), r("update", y == null ? void 0 : y.data);
|
|
5192
5188
|
} catch (y) {
|
|
5193
5189
|
d.errorMessage = s(y), r("error", y);
|
|
5194
5190
|
} finally {
|
|
@@ -5196,10 +5192,10 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5196
5192
|
}
|
|
5197
5193
|
};
|
|
5198
5194
|
return (v, y) => {
|
|
5199
|
-
const A = V("KInput"),
|
|
5195
|
+
const A = V("KInput"), U = V("KCard");
|
|
5200
5196
|
return f(), O("div", lu, [
|
|
5201
|
-
|
|
5202
|
-
"can-submit":
|
|
5197
|
+
N(m(es), {
|
|
5198
|
+
"can-submit": R.value && w.value,
|
|
5203
5199
|
config: e.config,
|
|
5204
5200
|
"edit-id": e.consumerId,
|
|
5205
5201
|
"error-message": d.errorMessage,
|
|
@@ -5207,14 +5203,14 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5207
5203
|
"form-fields": _.value,
|
|
5208
5204
|
"is-readonly": d.readonly,
|
|
5209
5205
|
onCancel: g,
|
|
5210
|
-
"onFetch:error": y[3] || (y[3] = (S) =>
|
|
5206
|
+
"onFetch:error": y[3] || (y[3] = (S) => K(S)),
|
|
5211
5207
|
"onFetch:success": C,
|
|
5212
5208
|
onLoading: y[4] || (y[4] = (S) => x(S)),
|
|
5213
5209
|
onSubmit: p
|
|
5214
5210
|
}, {
|
|
5215
5211
|
default: h(() => [
|
|
5216
5212
|
F("div", null, [
|
|
5217
|
-
|
|
5213
|
+
N(m(Us), {
|
|
5218
5214
|
description: m(i)("consumers.form.info.description"),
|
|
5219
5215
|
"has-divider": "",
|
|
5220
5216
|
title: m(i)("consumers.form.info.title")
|
|
@@ -5227,12 +5223,12 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5227
5223
|
}, j(m(i)("consumers.form.consumer_identification.title")) + "* ", 9, su),
|
|
5228
5224
|
F("p", uu, j(m(i)("consumers.form.consumer_identification.description")), 1)
|
|
5229
5225
|
]),
|
|
5230
|
-
|
|
5226
|
+
N(U, null, {
|
|
5231
5227
|
default: h(() => [
|
|
5232
5228
|
F("fieldset", {
|
|
5233
5229
|
"aria-labelledby": `fields-group-title-${m(u)}`
|
|
5234
5230
|
}, [
|
|
5235
|
-
|
|
5231
|
+
N(A, {
|
|
5236
5232
|
modelValue: d.fields.username,
|
|
5237
5233
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => d.fields.username = S),
|
|
5238
5234
|
modelModifiers: { trim: !0 },
|
|
@@ -5248,7 +5244,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5248
5244
|
type: "text"
|
|
5249
5245
|
}, {
|
|
5250
5246
|
"label-tooltip": h(() => [
|
|
5251
|
-
|
|
5247
|
+
N(m(a), {
|
|
5252
5248
|
keypath: "consumers.fields.username.tooltip",
|
|
5253
5249
|
scope: "global"
|
|
5254
5250
|
}, {
|
|
@@ -5260,7 +5256,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5260
5256
|
]),
|
|
5261
5257
|
_: 1
|
|
5262
5258
|
}, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
5263
|
-
|
|
5259
|
+
N(A, {
|
|
5264
5260
|
modelValue: d.fields.customId,
|
|
5265
5261
|
"onUpdate:modelValue": y[1] || (y[1] = (S) => d.fields.customId = S),
|
|
5266
5262
|
modelModifiers: { trim: !0 },
|
|
@@ -5275,7 +5271,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5275
5271
|
type: "text"
|
|
5276
5272
|
}, {
|
|
5277
5273
|
"label-tooltip": h(() => [
|
|
5278
|
-
|
|
5274
|
+
N(m(a), {
|
|
5279
5275
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
5280
5276
|
scope: "global"
|
|
5281
5277
|
}, {
|
|
@@ -5291,7 +5287,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5291
5287
|
]),
|
|
5292
5288
|
_: 1
|
|
5293
5289
|
}),
|
|
5294
|
-
|
|
5290
|
+
N(A, {
|
|
5295
5291
|
modelValue: d.fields.tags,
|
|
5296
5292
|
"onUpdate:modelValue": y[2] || (y[2] = (S) => d.fields.tags = S),
|
|
5297
5293
|
modelModifiers: { trim: !0 },
|
|
@@ -5370,7 +5366,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5370
5366
|
}
|
|
5371
5367
|
});
|
|
5372
5368
|
return (o, l) => (f(), O("div", pu, [
|
|
5373
|
-
|
|
5369
|
+
N(m(Yl), {
|
|
5374
5370
|
config: e.config,
|
|
5375
5371
|
"config-card-doc": e.configCardDoc,
|
|
5376
5372
|
"config-schema": i.value,
|
|
@@ -5381,7 +5377,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5381
5377
|
onLoading: l[2] || (l[2] = (s) => o.$emit("loading", s))
|
|
5382
5378
|
}, {
|
|
5383
5379
|
"username-label-tooltip": h(() => [
|
|
5384
|
-
|
|
5380
|
+
N(m(r), {
|
|
5385
5381
|
keypath: "consumers.fields.username.tooltip",
|
|
5386
5382
|
scope: "global"
|
|
5387
5383
|
}, {
|
|
@@ -5392,7 +5388,7 @@ const lu = { class: "kong-ui-entities-consumer-form" }, su = ["id"], uu = { clas
|
|
|
5392
5388
|
})
|
|
5393
5389
|
]),
|
|
5394
5390
|
"custom_id-label-tooltip": h(() => [
|
|
5395
|
-
|
|
5391
|
+
N(m(r), {
|
|
5396
5392
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
5397
5393
|
scope: "global"
|
|
5398
5394
|
}, {
|