@kong-ui-public/entities-shared 3.41.1 → 3.41.2-pr.3042.f0eeeddbe.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.es.js +180 -180
- package/dist/entities-shared.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
- package/dist/types/composables/useDebouncedFilter.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +2 -0
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -295,14 +295,14 @@ function Ji(e, t, n, i = {
|
|
|
295
295
|
n || (n = "1000");
|
|
296
296
|
const { axiosInstance: r } = ct(e.axiosRequestConfig), { i18n: { t: o } } = Ve(), { debounce: a } = Oi(), l = a(async (w) => {
|
|
297
297
|
await k(w);
|
|
298
|
-
}, 200), s = M(!1), d = M(""), c = M(""), u = M([]),
|
|
298
|
+
}, 200), s = M(!1), d = M(""), c = M(""), u = M([]), p = M([]), f = M(void 0), h = _(() => {
|
|
299
299
|
const w = `${e.apiBaseUrl}${C(t)}`;
|
|
300
|
-
return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") :
|
|
300
|
+
return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "");
|
|
301
301
|
}), { isValidUuid: b } = en(), y = async () => {
|
|
302
302
|
try {
|
|
303
303
|
s.value = !0;
|
|
304
304
|
const { data: w } = await r.get(`${h.value}?size=${n}`);
|
|
305
|
-
w != null && w.next || (f.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []),
|
|
305
|
+
w != null && w.next || (f.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : [], u.value = p.value;
|
|
306
306
|
} catch {
|
|
307
307
|
u.value = [], d.value = o("debouncedFilter.errors.fetch");
|
|
308
308
|
} finally {
|
|
@@ -312,7 +312,7 @@ function Ji(e, t, n, i = {
|
|
|
312
312
|
var Y, J, R;
|
|
313
313
|
if ($.value !== w) {
|
|
314
314
|
if ($.value = w ?? "", !w) {
|
|
315
|
-
u.value =
|
|
315
|
+
u.value = p.value;
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
if (f.value === void 0)
|
|
@@ -327,14 +327,14 @@ function Ji(e, t, n, i = {
|
|
|
327
327
|
return [A[i.fetchedItemsKey] ?? A];
|
|
328
328
|
})()) : F.push(
|
|
329
329
|
...i.searchKeys.filter((A) => A !== "id").map(async (A) => {
|
|
330
|
-
const { data:
|
|
331
|
-
return
|
|
330
|
+
const { data: m } = await r.get(`${h.value}?${A}=${w}`);
|
|
331
|
+
return m[i.fetchedItemsKey];
|
|
332
332
|
})
|
|
333
333
|
);
|
|
334
334
|
const E = await Promise.all(F), v = /* @__PURE__ */ new Set();
|
|
335
335
|
u.value = [], (Y = E == null ? void 0 : E.forEach) == null || Y.call(E, (A) => {
|
|
336
|
-
var
|
|
337
|
-
(
|
|
336
|
+
var m;
|
|
337
|
+
(m = A == null ? void 0 : A.forEach) == null || m.call(A, (K) => {
|
|
338
338
|
v.has(K.id) || (v.add(K.id), u.value.push(K));
|
|
339
339
|
});
|
|
340
340
|
});
|
|
@@ -349,8 +349,8 @@ function Ji(e, t, n, i = {
|
|
|
349
349
|
var v;
|
|
350
350
|
let E = !1;
|
|
351
351
|
for (const A of i.searchKeys) {
|
|
352
|
-
const
|
|
353
|
-
|
|
352
|
+
const m = typeof F[A] == "string" ? (v = F[A]) == null ? void 0 : v.toLowerCase() : F[A];
|
|
353
|
+
m != null && m.includes(w.toLowerCase()) && (E = !0);
|
|
354
354
|
}
|
|
355
355
|
return E;
|
|
356
356
|
}), (!u.value || !u.value.length) && (c.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
@@ -467,8 +467,8 @@ function tn(e, t) {
|
|
|
467
467
|
const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: d, query: c } = r;
|
|
468
468
|
try {
|
|
469
469
|
let u = new URL(i.value.href);
|
|
470
|
-
return n.value && c ? (u.search = "", u = ye(e).isExactMatch ? new URL(`${u.href}/${c}`) : new URL(`${u.href}?filter[name][contains]=${c}`)) : (n.value || new URLSearchParams(c).forEach((
|
|
471
|
-
u.searchParams.append(f,
|
|
470
|
+
return n.value && c ? (u.search = "", u = ye(e).isExactMatch ? new URL(`${u.href}/${c}`) : new URL(`${u.href}?filter[name][contains]=${c}`)) : (n.value || new URLSearchParams(c).forEach((p, f) => {
|
|
471
|
+
u.searchParams.append(f, p);
|
|
472
472
|
}), s && u.searchParams.append("sort_by", s), d === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), l && o !== 1 && u.searchParams.append("offset", String(l)), u.href;
|
|
473
473
|
} catch (u) {
|
|
474
474
|
return console.error("RouteList(fetcher)", u), ye(t);
|
|
@@ -481,7 +481,7 @@ function Zi(e, t, n) {
|
|
|
481
481
|
status: he.Idle
|
|
482
482
|
}), s = async (u) => {
|
|
483
483
|
var f;
|
|
484
|
-
const
|
|
484
|
+
const p = ye(n) || "data";
|
|
485
485
|
try {
|
|
486
486
|
l.value = i.value ? { status: he.InitialLoad } : { status: he.Loading }, i.value = !1;
|
|
487
487
|
let h = a(u);
|
|
@@ -489,7 +489,7 @@ function Zi(e, t, n) {
|
|
|
489
489
|
const b = await o.get(h);
|
|
490
490
|
if (b.status >= 400)
|
|
491
491
|
throw b;
|
|
492
|
-
const y = b.data, $ =
|
|
492
|
+
const y = b.data, $ = p && p.replace(/[^\w-_]/gi, "");
|
|
493
493
|
let k;
|
|
494
494
|
y[$] ? k = Array.isArray(y[$]) ? y[$] : [y[$]] : Array.isArray(y) ? k = y : k = Object.keys(y).length ? [y] : [];
|
|
495
495
|
const w = {
|
|
@@ -609,7 +609,7 @@ function lr() {
|
|
|
609
609
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
const et =
|
|
612
|
+
const et = Symbol("schema"), sr = (e) => {
|
|
613
613
|
Wt(et, e);
|
|
614
614
|
}, cr = (e) => {
|
|
615
615
|
var r, o;
|
|
@@ -794,12 +794,12 @@ const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["da
|
|
|
794
794
|
emits: ["navigation-click"],
|
|
795
795
|
setup(e, { emit: t }) {
|
|
796
796
|
Jt((Y) => ({
|
|
797
|
-
v25a763c4:
|
|
797
|
+
v25a763c4: p.value ? "none" : `solid ${C(kr)} ${C(yr)}`,
|
|
798
798
|
v1ac90e12: u.value && d.value ? "block" : "flex",
|
|
799
799
|
v45a716ee: u.value && d.value ? "100%" : n.slim ? "50%" : "25%",
|
|
800
800
|
v45a28b38: u.value && d.value ? "100%" : n.slim ? "50%" : "75%"
|
|
801
801
|
}));
|
|
802
|
-
const n = e, i = t, r = ni(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === G.Json || n.item.type === G.JsonArray),
|
|
802
|
+
const n = e, i = t, r = ni(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === G.Json || n.item.type === G.JsonArray), p = _(() => n.item.type === G.JsonArray), f = z.useSubSchema(n.item.key), h = _(() => {
|
|
803
803
|
var Y;
|
|
804
804
|
return n.item.type ? n.item.type : (Y = f == null ? void 0 : f.value) != null && Y.encrypted ? G.Redacted : void 0;
|
|
805
805
|
}), b = _(() => {
|
|
@@ -990,10 +990,10 @@ const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["da
|
|
|
990
990
|
key: 0,
|
|
991
991
|
"data-testid": `${e.item.key}-badge-tags`
|
|
992
992
|
}, [
|
|
993
|
-
(g(!0), S(pe, null, de(e.item.value, (A,
|
|
994
|
-
key: `${e.item.key}-badge-tag-${
|
|
993
|
+
(g(!0), S(pe, null, de(e.item.value, (A, m) => (g(), B(E, {
|
|
994
|
+
key: `${e.item.key}-badge-tag-${m}`,
|
|
995
995
|
class: "config-badge",
|
|
996
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
996
|
+
"data-testid": `${e.item.key}-badge-tag-${m}`,
|
|
997
997
|
tooltip: A,
|
|
998
998
|
"truncation-tooltip": ""
|
|
999
999
|
}, {
|
|
@@ -1007,9 +1007,9 @@ const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["da
|
|
|
1007
1007
|
class: "copy-uuid-array",
|
|
1008
1008
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1009
1009
|
}, [
|
|
1010
|
-
(g(!0), S(pe, null, de(e.item.value, (A,
|
|
1011
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1012
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1010
|
+
(g(!0), S(pe, null, de(e.item.value, (A, m) => (g(), B(v, Gt({ ref_for: !0 }, b.value.childAttrs, {
|
|
1011
|
+
key: `${e.item.key}-copy-uuid-${m}`,
|
|
1012
|
+
"data-testid": `${e.item.key}-copy-uuid-${m}`,
|
|
1013
1013
|
text: A
|
|
1014
1014
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1015
1015
|
], 8, Or)) : b.value.additionalComponent === "KMethodBadge" ? (g(), S("div", {
|
|
@@ -1017,11 +1017,11 @@ const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["da
|
|
|
1017
1017
|
class: "method-badge-array",
|
|
1018
1018
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1019
1019
|
}, [
|
|
1020
|
-
(g(!0), S(pe, null, de(e.item.value, (A,
|
|
1021
|
-
key: `${e.item.key}-badge-method-${
|
|
1020
|
+
(g(!0), S(pe, null, de(e.item.value, (A, m) => (g(), B(E, {
|
|
1021
|
+
key: `${e.item.key}-badge-method-${m}`,
|
|
1022
1022
|
appearance: Object.values(C(ui)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
|
|
1023
1023
|
class: "config-badge",
|
|
1024
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1024
|
+
"data-testid": `${e.item.key}-badge-method-${m}`
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: x(() => [
|
|
1027
1027
|
q(I(A), 1)
|
|
@@ -1032,9 +1032,9 @@ const _r = { class: "config-card-details-row" }, Sr = ["data-testid"], $r = ["da
|
|
|
1032
1032
|
key: 3,
|
|
1033
1033
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1034
1034
|
}, [
|
|
1035
|
-
(g(!0), S(pe, null, de(e.item.value, (A,
|
|
1036
|
-
key: `json-array-item-${
|
|
1037
|
-
index: Number(
|
|
1035
|
+
(g(!0), S(pe, null, de(e.item.value, (A, m) => (g(), B(on, {
|
|
1036
|
+
key: `json-array-item-${m}`,
|
|
1037
|
+
index: Number(m),
|
|
1038
1038
|
"is-array-item": "",
|
|
1039
1039
|
item: A
|
|
1040
1040
|
}, null, 8, ["index", "item"]))), 128))
|
|
@@ -1566,7 +1566,7 @@ function Ca(e) {
|
|
|
1566
1566
|
return e === null ? !1 : xn.exec(e) !== null || An.exec(e) !== null;
|
|
1567
1567
|
}
|
|
1568
1568
|
function xa(e) {
|
|
1569
|
-
var t, n, i, r, o, a, l, s = 0, d = null, c, u,
|
|
1569
|
+
var t, n, i, r, o, a, l, s = 0, d = null, c, u, p;
|
|
1570
1570
|
if (t = xn.exec(e), t === null && (t = An.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1571
1571
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1572
1572
|
return new Date(Date.UTC(n, i, r));
|
|
@@ -1575,7 +1575,7 @@ function xa(e) {
|
|
|
1575
1575
|
s += "0";
|
|
1576
1576
|
s = +s;
|
|
1577
1577
|
}
|
|
1578
|
-
return t[9] && (c = +t[10], u = +(t[11] || 0), d = (c * 60 + u) * 6e4, t[9] === "-" && (d = -d)),
|
|
1578
|
+
return t[9] && (c = +t[10], u = +(t[11] || 0), d = (c * 60 + u) * 6e4, t[9] === "-" && (d = -d)), p = new Date(Date.UTC(n, i, r, o, a, l, s)), d && p.setTime(p.getTime() - d), p;
|
|
1579
1579
|
}
|
|
1580
1580
|
function Aa(e) {
|
|
1581
1581
|
return e.toISOString();
|
|
@@ -1839,7 +1839,7 @@ function pt(e, t) {
|
|
|
1839
1839
|
`, t - 1));
|
|
1840
1840
|
}
|
|
1841
1841
|
function Ja(e, t, n) {
|
|
1842
|
-
var i, r, o, a, l, s, d, c, u = e.kind,
|
|
1842
|
+
var i, r, o, a, l, s, d, c, u = e.kind, p = e.result, f;
|
|
1843
1843
|
if (f = e.input.charCodeAt(e.position), ue(f) || Te(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), ue(r) || n && Te(r)))
|
|
1844
1844
|
return !1;
|
|
1845
1845
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
|
|
@@ -1863,7 +1863,7 @@ function Ja(e, t, n) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
l && (ve(e, o, a, !1), pt(e, e.line - s), o = a = e.position, l = !1), Ce(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1865
1865
|
}
|
|
1866
|
-
return ve(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result =
|
|
1866
|
+
return ve(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
|
|
1867
1867
|
}
|
|
1868
1868
|
function Ga(e, t) {
|
|
1869
1869
|
var n, i, r;
|
|
@@ -1902,7 +1902,7 @@ function za(e, t) {
|
|
|
1902
1902
|
T(e, "unexpected end of the stream within a double quoted scalar");
|
|
1903
1903
|
}
|
|
1904
1904
|
function Qa(e, t) {
|
|
1905
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, c, u,
|
|
1905
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, c, u, p, f, h = /* @__PURE__ */ Object.create(null), b, y, $, k;
|
|
1906
1906
|
if (k = e.input.charCodeAt(e.position), k === 91)
|
|
1907
1907
|
c = 93, f = !1, l = [];
|
|
1908
1908
|
else if (k === 123)
|
|
@@ -1912,7 +1912,7 @@ function Qa(e, t) {
|
|
|
1912
1912
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
|
|
1913
1913
|
if (ee(e, !0, t), k = e.input.charCodeAt(e.position), k === c)
|
|
1914
1914
|
return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1915
|
-
n ? k === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), y = b = $ = null, u =
|
|
1915
|
+
n ? k === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), y = b = $ = null, u = p = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), ue(d) && (u = p = !0, e.position++, ee(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Fe(e, t, Me, !1, !0), y = e.tag, b = e.result, ee(e, !0, t), k = e.input.charCodeAt(e.position), (p || e.line === i) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), ee(e, !0, t), Fe(e, t, Me, !1, !0), $ = e.result), f ? Ee(e, l, h, y, b, $, i, r, o) : u ? l.push(Ee(e, null, h, y, b, $, i, r, o)) : l.push(b), ee(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1916
1916
|
}
|
|
1917
1917
|
T(e, "unexpected end of the stream within a flow collection");
|
|
1918
1918
|
}
|
|
@@ -1979,11 +1979,11 @@ function Kt(e, t) {
|
|
|
1979
1979
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1980
1980
|
}
|
|
1981
1981
|
function Xa(e, t, n) {
|
|
1982
|
-
var i, r, o, a, l, s, d = e.tag, c = e.anchor, u = {},
|
|
1982
|
+
var i, r, o, a, l, s, d = e.tag, c = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), f = null, h = null, b = null, y = !1, $ = !1, k;
|
|
1983
1983
|
if (e.firstTabInLine !== -1) return !1;
|
|
1984
1984
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
|
|
1985
1985
|
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ue(i))
|
|
1986
|
-
k === 63 ? (y && (Ee(e, u,
|
|
1986
|
+
k === 63 ? (y && (Ee(e, u, p, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
|
|
1987
1987
|
else {
|
|
1988
1988
|
if (a = e.line, l = e.lineStart, s = e.position, !Fe(e, n, In, !1, !0))
|
|
1989
1989
|
break;
|
|
@@ -1991,7 +1991,7 @@ function Xa(e, t, n) {
|
|
|
1991
1991
|
for (k = e.input.charCodeAt(e.position); Ce(k); )
|
|
1992
1992
|
k = e.input.charCodeAt(++e.position);
|
|
1993
1993
|
if (k === 58)
|
|
1994
|
-
k = e.input.charCodeAt(++e.position), ue(k) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Ee(e, u,
|
|
1994
|
+
k = e.input.charCodeAt(++e.position), ue(k) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Ee(e, u, p, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !1, r = !1, f = e.tag, h = e.result;
|
|
1995
1995
|
else if ($)
|
|
1996
1996
|
T(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1997
1997
|
else
|
|
@@ -2001,12 +2001,12 @@ function Xa(e, t, n) {
|
|
|
2001
2001
|
else
|
|
2002
2002
|
return e.tag = d, e.anchor = c, !0;
|
|
2003
2003
|
}
|
|
2004
|
-
if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, Pe, !0, r) && (y ? h = e.result : b = e.result), y || (Ee(e, u,
|
|
2004
|
+
if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, Pe, !0, r) && (y ? h = e.result : b = e.result), y || (Ee(e, u, p, f, h, b, a, l, s), f = h = b = null), ee(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
|
|
2005
2005
|
T(e, "bad indentation of a mapping entry");
|
|
2006
2006
|
else if (e.lineIndent < t)
|
|
2007
2007
|
break;
|
|
2008
2008
|
}
|
|
2009
|
-
return y && Ee(e, u,
|
|
2009
|
+
return y && Ee(e, u, p, f, h, null, a, l, s), $ && (e.tag = d, e.anchor = c, e.kind = "mapping", e.result = u), $;
|
|
2010
2010
|
}
|
|
2011
2011
|
function eo(e) {
|
|
2012
2012
|
var t, n = !1, i = !1, r, o, a;
|
|
@@ -2044,14 +2044,14 @@ function no(e) {
|
|
|
2044
2044
|
return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), be.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
|
|
2045
2045
|
}
|
|
2046
2046
|
function Fe(e, t, n, i, r) {
|
|
2047
|
-
var o, a, l, s = 1, d = !1, c = !1, u,
|
|
2047
|
+
var o, a, l, s = 1, d = !1, c = !1, u, p, f, h, b, y;
|
|
2048
2048
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Pe === n || Fn === n, i && ee(e, !0, -1) && (d = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2049
2049
|
for (; eo(e) || to(e); )
|
|
2050
2050
|
ee(e, !0, -1) ? (d = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2051
2051
|
if (l && (l = d || r), (s === 1 || Pe === n) && (Me === n || In === n ? b = t : b = t + 1, y = e.position - e.lineStart, s === 1 ? l && (Kt(e, y) || Xa(e, y, b)) || Qa(e, b) ? c = !0 : (a && Za(e, b) || Ga(e, b) || za(e, b) ? c = !0 : no(e) ? (c = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ja(e, b, Me === n) && (c = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (c = l && Kt(e, y))), e.tag === null)
|
|
2052
2052
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2053
2053
|
else if (e.tag === "?") {
|
|
2054
|
-
for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0,
|
|
2054
|
+
for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
|
|
2055
2055
|
if (h = e.implicitTypes[u], h.resolve(e.result)) {
|
|
2056
2056
|
e.result = h.construct(e.result), e.tag = h.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2057
2057
|
break;
|
|
@@ -2060,7 +2060,7 @@ function Fe(e, t, n, i, r) {
|
|
|
2060
2060
|
if (be.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2061
2061
|
h = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2062
2062
|
else
|
|
2063
|
-
for (h = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0,
|
|
2063
|
+
for (h = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, p = f.length; u < p; u += 1)
|
|
2064
2064
|
if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
|
|
2065
2065
|
h = f[u];
|
|
2066
2066
|
break;
|
|
@@ -2238,7 +2238,7 @@ function Wn(e) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
var Jn = 1, rt = 2, Gn = 3, zn = 4, $e = 5;
|
|
2240
2240
|
function Lo(e, t, n, i, r, o, a, l) {
|
|
2241
|
-
var s, d = 0, c = null, u = !1,
|
|
2241
|
+
var s, d = 0, c = null, u = !1, p = !1, f = i !== -1, h = -1, b = Oo(Oe(e, 0)) && Bo(Oe(e, e.length - 1));
|
|
2242
2242
|
if (t || a)
|
|
2243
2243
|
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
2244
2244
|
if (d = Oe(e, s), !Ke(d))
|
|
@@ -2248,18 +2248,18 @@ function Lo(e, t, n, i, r, o, a, l) {
|
|
|
2248
2248
|
else {
|
|
2249
2249
|
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
2250
2250
|
if (d = Oe(e, s), d === Le)
|
|
2251
|
-
u = !0, f && (
|
|
2251
|
+
u = !0, f && (p = p || // Foldable line = too long, and not more-indented.
|
|
2252
2252
|
s - h - 1 > i && e[h + 1] !== " ", h = s);
|
|
2253
2253
|
else if (!Ke(d))
|
|
2254
2254
|
return $e;
|
|
2255
2255
|
b = b && Pt(d, c, l), c = d;
|
|
2256
2256
|
}
|
|
2257
|
-
|
|
2257
|
+
p = p || f && s - h - 1 > i && e[h + 1] !== " ";
|
|
2258
2258
|
}
|
|
2259
|
-
return !u && !
|
|
2259
|
+
return !u && !p ? b && !a && !r(e) ? Jn : o === Re ? $e : rt : n > 9 && Wn(e) ? $e : a ? o === Re ? $e : rt : p ? zn : Gn;
|
|
2260
2260
|
}
|
|
2261
2261
|
function Ro(e, t, n, i, r) {
|
|
2262
|
-
e.dump =
|
|
2262
|
+
e.dump = function() {
|
|
2263
2263
|
if (t.length === 0)
|
|
2264
2264
|
return e.quotingType === Re ? '""' : "''";
|
|
2265
2265
|
if (!e.noCompatMode && (_o.indexOf(t) !== -1 || So.test(t)))
|
|
@@ -2291,7 +2291,7 @@ function Ro(e, t, n, i, r) {
|
|
|
2291
2291
|
default:
|
|
2292
2292
|
throw new se("impossible error: invalid scalar style");
|
|
2293
2293
|
}
|
|
2294
|
-
}
|
|
2294
|
+
}();
|
|
2295
2295
|
}
|
|
2296
2296
|
function Dt(e, t) {
|
|
2297
2297
|
var n = Wn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
@@ -2306,11 +2306,11 @@ function jt(e) {
|
|
|
2306
2306
|
` ? e.slice(0, -1) : e;
|
|
2307
2307
|
}
|
|
2308
2308
|
function Ko(e, t) {
|
|
2309
|
-
for (var n = /(\n+)([^\n]*)/g, i =
|
|
2309
|
+
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2310
2310
|
var d = e.indexOf(`
|
|
2311
2311
|
`);
|
|
2312
2312
|
return d = d !== -1 ? d : e.length, n.lastIndex = d, Ut(e.slice(0, d), t);
|
|
2313
|
-
}
|
|
2313
|
+
}(), r = e[0] === `
|
|
2314
2314
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2315
2315
|
var l = a[1], s = a[2];
|
|
2316
2316
|
o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
|
|
@@ -2351,7 +2351,7 @@ function Po(e, t, n) {
|
|
|
2351
2351
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2352
2352
|
}
|
|
2353
2353
|
function Do(e, t, n, i) {
|
|
2354
|
-
var r = "", o = e.tag, a = Object.keys(n), l, s, d, c, u,
|
|
2354
|
+
var r = "", o = e.tag, a = Object.keys(n), l, s, d, c, u, p;
|
|
2355
2355
|
if (e.sortKeys === !0)
|
|
2356
2356
|
a.sort();
|
|
2357
2357
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2359,7 +2359,7 @@ function Do(e, t, n, i) {
|
|
|
2359
2359
|
else if (e.sortKeys)
|
|
2360
2360
|
throw new se("sortKeys must be a boolean or a function");
|
|
2361
2361
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2362
|
-
|
|
2362
|
+
p = "", (!i || r !== "") && (p += it(e, t)), d = a[l], c = n[d], e.replacer && (c = e.replacer.call(n, d, c)), ge(e, t + 1, d, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += it(e, t)), ge(e, t + 1, c, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
|
|
2363
2363
|
e.tag = o, e.dump = r || "{}";
|
|
2364
2364
|
}
|
|
2365
2365
|
function Ht(e, t, n) {
|
|
@@ -2383,14 +2383,14 @@ function ge(e, t, n, i, r, o, a) {
|
|
|
2383
2383
|
e.tag = null, e.dump = n, Ht(e, n, !1) || Ht(e, n, !0);
|
|
2384
2384
|
var l = Dn.call(e.dump), s = i, d;
|
|
2385
2385
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2386
|
-
var c = l === "[object Object]" || l === "[object Array]", u,
|
|
2387
|
-
if (c && (u = e.duplicates.indexOf(n),
|
|
2386
|
+
var c = l === "[object Object]" || l === "[object Array]", u, p;
|
|
2387
|
+
if (c && (u = e.duplicates.indexOf(n), p = u !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (r = !1), p && e.usedDuplicates[u])
|
|
2388
2388
|
e.dump = "*ref_" + u;
|
|
2389
2389
|
else {
|
|
2390
|
-
if (c &&
|
|
2391
|
-
i && Object.keys(e.dump).length !== 0 ? (Do(e, t, e.dump, r),
|
|
2390
|
+
if (c && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2391
|
+
i && Object.keys(e.dump).length !== 0 ? (Do(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Po(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2392
2392
|
else if (l === "[object Array]")
|
|
2393
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? qt(e, t - 1, e.dump, r) : qt(e, t, e.dump, r),
|
|
2393
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? qt(e, t - 1, e.dump, r) : qt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Mo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2394
2394
|
else if (l === "[object String]")
|
|
2395
2395
|
e.tag !== "?" && Ro(e, e.dump, t, o, s);
|
|
2396
2396
|
else {
|
|
@@ -2522,15 +2522,15 @@ const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */
|
|
|
2522
2522
|
},
|
|
2523
2523
|
setup(e) {
|
|
2524
2524
|
const t = e, n = _(() => Ei.includes(t.entityType)), i = _(() => Ii.includes(t.entityType)), r = (c, u) => {
|
|
2525
|
-
const
|
|
2525
|
+
const p = ie;
|
|
2526
2526
|
let f = "";
|
|
2527
|
-
return typeof c == "string" ? f += `${
|
|
2528
|
-
` : f += `${
|
|
2527
|
+
return typeof c == "string" ? f += `${p}${u} = "${c}"
|
|
2528
|
+
` : f += `${p}${u} = ${String(c ?? "")}
|
|
2529
2529
|
`, f;
|
|
2530
|
-
}, o = (c, u,
|
|
2530
|
+
}, o = (c, u, p = "") => {
|
|
2531
2531
|
if (typeof c != "object")
|
|
2532
2532
|
return "Invalid object";
|
|
2533
|
-
const f = ie +
|
|
2533
|
+
const f = ie + p;
|
|
2534
2534
|
let h = "";
|
|
2535
2535
|
if (u && (h += `${f}${u} = {
|
|
2536
2536
|
`), c === null)
|
|
@@ -2544,10 +2544,10 @@ const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */
|
|
|
2544
2544
|
`;
|
|
2545
2545
|
return u ? h += `${f}}
|
|
2546
2546
|
` : h;
|
|
2547
|
-
}, a = (c, u,
|
|
2547
|
+
}, a = (c, u, p = "") => {
|
|
2548
2548
|
if (!Array.isArray(c))
|
|
2549
2549
|
return "Invalid array";
|
|
2550
|
-
const f = ie +
|
|
2550
|
+
const f = ie + p;
|
|
2551
2551
|
let h = "";
|
|
2552
2552
|
u && (c.length === 0 ? h += `${f}${u} = [` : h += `${f}${u} = [
|
|
2553
2553
|
`);
|
|
@@ -2562,8 +2562,8 @@ const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */
|
|
|
2562
2562
|
`), h;
|
|
2563
2563
|
}, l = (c) => c.replace(/\$\{/g, () => "$${"), s = (c) => {
|
|
2564
2564
|
let u = "";
|
|
2565
|
-
for (const [
|
|
2566
|
-
Array.isArray(f) ? u += a(f,
|
|
2565
|
+
for (const [p, f] of Object.entries(c))
|
|
2566
|
+
Array.isArray(f) ? u += a(f, p) : typeof f == "object" ? u += o(f, p) : u += r(f, p);
|
|
2567
2567
|
return l(u);
|
|
2568
2568
|
}, d = _(() => {
|
|
2569
2569
|
var h, b, y, $, k, w, Y;
|
|
@@ -2571,31 +2571,31 @@ const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */
|
|
|
2571
2571
|
if (u && (c.config = u), Object.keys(c).length === 0)
|
|
2572
2572
|
return "";
|
|
2573
2573
|
delete c.id;
|
|
2574
|
-
let
|
|
2574
|
+
let p = "", f = "";
|
|
2575
2575
|
if ((b = c.service) != null && b.id ? (f = "service", delete c.service) : (y = c.route) != null && y.id ? (f = "route", delete c.route) : ($ = c.consumer) != null && $.id ? (f = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (f = "consumer_group", delete c.consumer_group) : (w = c.certificate) != null && w.id ? (f = "certificate", delete c.certificate) : (Y = c.set) != null && Y.id && (f = "set", delete c.set), n.value) {
|
|
2576
2576
|
const J = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
|
|
2577
|
-
|
|
2578
|
-
`,
|
|
2577
|
+
p += `resource "konnect_event_gateway_${J}" "my_eventgateway${J.replaceAll("_", "")}" {
|
|
2578
|
+
`, p += `${ie}provider = konnect-beta
|
|
2579
2579
|
`;
|
|
2580
2580
|
} else if (t.entityType === "plugin") {
|
|
2581
2581
|
const J = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
|
|
2582
|
-
delete c.name,
|
|
2582
|
+
delete c.name, p += `resource "konnect_gateway_plugin_${J}" "my_${J}" {
|
|
2583
2583
|
`;
|
|
2584
|
-
} else i.value ? (
|
|
2585
|
-
`,
|
|
2586
|
-
`) :
|
|
2584
|
+
} else i.value ? (p += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
|
|
2585
|
+
`, p += `${ie}provider = konnect-beta
|
|
2586
|
+
`) : p += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
2587
2587
|
`;
|
|
2588
|
-
return
|
|
2589
|
-
` : f && (
|
|
2590
|
-
`,
|
|
2591
|
-
`,
|
|
2592
|
-
`),
|
|
2593
|
-
`,
|
|
2588
|
+
return p += s(c), !n.value && !i.value ? p += `${ie}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2589
|
+
` : f && (p += `${ie}${f} = {
|
|
2590
|
+
`, p += `${ie}${ie}id = konnect_gateway_${f}.my_${f}.id
|
|
2591
|
+
`, p += `${ie}}
|
|
2592
|
+
`), p += `}
|
|
2593
|
+
`, p;
|
|
2594
2594
|
});
|
|
2595
2595
|
return (c, u) => {
|
|
2596
|
-
const
|
|
2596
|
+
const p = U("KCodeBlock");
|
|
2597
2597
|
return g(), S("div", ol, [
|
|
2598
|
-
t.entityRecord ? (g(), B(
|
|
2598
|
+
t.entityRecord ? (g(), B(p, {
|
|
2599
2599
|
key: 0,
|
|
2600
2600
|
id: "terraform-codeblock",
|
|
2601
2601
|
code: d.value,
|
|
@@ -2632,11 +2632,11 @@ const al = { class: "yaml-config config-card-code-block" }, Zn = /* @__PURE__ */
|
|
|
2632
2632
|
var f, h, b, y, $;
|
|
2633
2633
|
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, k]) => k !== null && k !== "" && (Array.isArray(k) ? k.length !== 0 : !0)));
|
|
2634
2634
|
t.entityType === ke.Plugin ? ((f = c.service) != null && f.id && (c.service = c.service.id), (h = c.route) != null && h.id && (c.route = c.route.id), (b = c.consumer) != null && b.id && (c.consumer = c.consumer.id), (y = c.consumer_group) != null && y.id && (c.consumer_group = c.consumer_group.id)) : t.entityType === ke.Key && ($ = c.key_set) != null && $.id && (c.key_set = c.key_set.id);
|
|
2635
|
-
const u = t.entityType === ke.KeySet ? "key_sets" : t.entityType + "s",
|
|
2635
|
+
const u = t.entityType === ke.KeySet ? "key_sets" : t.entityType + "s", p = {
|
|
2636
2636
|
...a.value,
|
|
2637
2637
|
[u]: [c]
|
|
2638
2638
|
};
|
|
2639
|
-
return Qn.dump(
|
|
2639
|
+
return Qn.dump(p, { quotingType: '"' }).trim();
|
|
2640
2640
|
}), s = _(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), d = _(() => {
|
|
2641
2641
|
let c = "deck gateway apply -";
|
|
2642
2642
|
return t.geoApiServerUrl ? c += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (c += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
|
|
@@ -2646,9 +2646,9 @@ ${l.value}
|
|
|
2646
2646
|
'@ | ${c}`;
|
|
2647
2647
|
});
|
|
2648
2648
|
return (c, u) => {
|
|
2649
|
-
const
|
|
2649
|
+
const p = U("KSelect"), f = U("KBadge"), h = U("KCodeBlock");
|
|
2650
2650
|
return g(), S("div", ll, [
|
|
2651
|
-
N(
|
|
2651
|
+
N(p, {
|
|
2652
2652
|
modelValue: o.value,
|
|
2653
2653
|
"onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
|
|
2654
2654
|
items: r
|
|
@@ -3003,17 +3003,17 @@ ${l.value}
|
|
|
3003
3003
|
label: r("baseForm.configuration.deck"),
|
|
3004
3004
|
value: "deck"
|
|
3005
3005
|
});
|
|
3006
|
-
const u = s[0].value,
|
|
3007
|
-
|
|
3008
|
-
}, h = (
|
|
3009
|
-
localStorage.setItem(
|
|
3006
|
+
const u = s[0].value, p = M(u), f = (m) => {
|
|
3007
|
+
p.value = m == null ? void 0 : m.value, n("configFormatChange", p.value);
|
|
3008
|
+
}, h = (m, K) => {
|
|
3009
|
+
localStorage.setItem(m, K);
|
|
3010
3010
|
};
|
|
3011
|
-
xe(
|
|
3012
|
-
i.config.formatPreferenceKey && h(i.config.formatPreferenceKey,
|
|
3011
|
+
xe(p, (m) => {
|
|
3012
|
+
i.config.formatPreferenceKey && h(i.config.formatPreferenceKey, m);
|
|
3013
3013
|
}), lt(() => {
|
|
3014
3014
|
if (i.config.formatPreferenceKey) {
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3015
|
+
const m = localStorage.getItem(i.config.formatPreferenceKey);
|
|
3016
|
+
m && s.some((K) => K.value === m) ? p.value = m : p.value = u, h(i.config.formatPreferenceKey, p.value);
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
3019
3019
|
const b = {
|
|
@@ -3061,16 +3061,16 @@ ${l.value}
|
|
|
3061
3061
|
var H, V, ne;
|
|
3062
3062
|
if (!w.value)
|
|
3063
3063
|
return [];
|
|
3064
|
-
const
|
|
3064
|
+
const m = [], K = Object.keys(w.value).length;
|
|
3065
3065
|
for (const P in w.value) {
|
|
3066
3066
|
if (P === "__ui_data") continue;
|
|
3067
3067
|
const O = (V = (H = i.configSchema) == null ? void 0 : H[P]) == null ? void 0 : V.order, Z = (ne = b[P]) == null ? void 0 : ne.order;
|
|
3068
3068
|
let W = K;
|
|
3069
|
-
(Z || Z === 0) && (W = Z === -1 ? K + 1 : Z), O && (W = O === -1 ? K + 1 : O),
|
|
3069
|
+
(Z || Z === 0) && (W = Z === -1 ? K + 1 : Z), O && (W = O === -1 ? K + 1 : O), m.push([P, W]);
|
|
3070
3070
|
}
|
|
3071
|
-
return
|
|
3071
|
+
return m.sort(function(P, O) {
|
|
3072
3072
|
return P[1] - O[1];
|
|
3073
|
-
}),
|
|
3073
|
+
}), m.map((P) => {
|
|
3074
3074
|
var ht, yt;
|
|
3075
3075
|
const O = P[0], Z = (ht = w.value) == null ? void 0 : ht[O], W = ((yt = i.configSchema) == null ? void 0 : yt[O]) || {}, X = b[O];
|
|
3076
3076
|
return {
|
|
@@ -3087,9 +3087,9 @@ ${l.value}
|
|
|
3087
3087
|
var V, ne;
|
|
3088
3088
|
if (!w.value || !i.pluginConfigKey)
|
|
3089
3089
|
return [];
|
|
3090
|
-
const
|
|
3091
|
-
for (const P in
|
|
3092
|
-
const O = (ne = (V = i.pluginConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z =
|
|
3090
|
+
const m = w.value[i.pluginConfigKey] || {}, K = Object.keys(m).length, H = [];
|
|
3091
|
+
for (const P in m) {
|
|
3092
|
+
const O = (ne = (V = i.pluginConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z = m[P];
|
|
3093
3093
|
let W = Z != null && Z !== "" ? K - 1 : K;
|
|
3094
3094
|
O && (W = O === -1 ? K + 1 : O), H.push([P, W]);
|
|
3095
3095
|
}
|
|
@@ -3097,7 +3097,7 @@ ${l.value}
|
|
|
3097
3097
|
return P[1] - O[1];
|
|
3098
3098
|
}), H.map((P) => {
|
|
3099
3099
|
var X;
|
|
3100
|
-
const O = P[0], Z =
|
|
3100
|
+
const O = P[0], Z = m[O], W = ((X = i.pluginConfigSchema) == null ? void 0 : X[O]) || {};
|
|
3101
3101
|
return {
|
|
3102
3102
|
key: O,
|
|
3103
3103
|
value: Z,
|
|
@@ -3112,9 +3112,9 @@ ${l.value}
|
|
|
3112
3112
|
var V, ne;
|
|
3113
3113
|
if (!w.value || !i.policyConfigKey)
|
|
3114
3114
|
return [];
|
|
3115
|
-
const
|
|
3116
|
-
for (const P in
|
|
3117
|
-
const O = (ne = (V = i.policyConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z =
|
|
3115
|
+
const m = w.value[i.policyConfigKey] || {}, K = Object.keys(m).length, H = [];
|
|
3116
|
+
for (const P in m) {
|
|
3117
|
+
const O = (ne = (V = i.policyConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z = m[P];
|
|
3118
3118
|
let W = Z != null && Z !== "" ? K - 1 : K;
|
|
3119
3119
|
O && (W = O === -1 ? K + 1 : O), H.push([P, W]);
|
|
3120
3120
|
}
|
|
@@ -3122,7 +3122,7 @@ ${l.value}
|
|
|
3122
3122
|
return P[1] - O[1];
|
|
3123
3123
|
}), H.map((P) => {
|
|
3124
3124
|
var X;
|
|
3125
|
-
const O = P[0], Z =
|
|
3125
|
+
const O = P[0], Z = m[O], W = ((X = i.policyConfigSchema) == null ? void 0 : X[O]) || {};
|
|
3126
3126
|
return {
|
|
3127
3127
|
key: O,
|
|
3128
3128
|
value: Z,
|
|
@@ -3134,43 +3134,43 @@ ${l.value}
|
|
|
3134
3134
|
};
|
|
3135
3135
|
}).filter((P) => !P.hidden);
|
|
3136
3136
|
}), F = _(() => {
|
|
3137
|
-
var
|
|
3137
|
+
var m, K, H, V, ne, P;
|
|
3138
3138
|
return {
|
|
3139
|
-
basic: (
|
|
3139
|
+
basic: (m = Y.value) == null ? void 0 : m.filter((O) => O.section === le.Basic),
|
|
3140
3140
|
advanced: (K = Y.value) == null ? void 0 : K.filter((O) => O.section === le.Advanced),
|
|
3141
3141
|
plugin: (V = J.value) == null ? void 0 : V.concat((H = Y.value) == null ? void 0 : H.filter((O) => O.section === le.Plugin)),
|
|
3142
3142
|
policy: (P = R.value) == null ? void 0 : P.concat((ne = Y.value) == null ? void 0 : ne.filter((O) => O.section === le.Policy))
|
|
3143
3143
|
};
|
|
3144
3144
|
}), E = _(() => {
|
|
3145
|
-
const
|
|
3146
|
-
return F.value.basic.length &&
|
|
3145
|
+
const m = [];
|
|
3146
|
+
return F.value.basic.length && m.push("basic"), F.value.advanced.length && m.push("advanced"), F.value.plugin.length && m.push("plugin"), F.value.policy.length && m.push("policy"), m;
|
|
3147
3147
|
}), v = _(() => {
|
|
3148
3148
|
var K, H;
|
|
3149
|
-
let
|
|
3150
|
-
return i.config.app === "konnect"
|
|
3149
|
+
let m = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3150
|
+
return i.config.app === "konnect" && (m = m.replace(/{controlPlaneId}/gi, ((K = i.config) == null ? void 0 : K.controlPlaneId) || "")), m.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.config.entityId);
|
|
3151
3151
|
});
|
|
3152
|
-
return xe(y, (
|
|
3153
|
-
n("loading",
|
|
3152
|
+
return xe(y, (m) => {
|
|
3153
|
+
n("loading", m);
|
|
3154
3154
|
}, { immediate: !0 }), st(async () => {
|
|
3155
3155
|
$.value = !1, y.value = !0;
|
|
3156
3156
|
try {
|
|
3157
|
-
const { data:
|
|
3157
|
+
const { data: m } = await l.get(v.value);
|
|
3158
3158
|
if (i.dataKey)
|
|
3159
|
-
if (typeof
|
|
3160
|
-
w.value = { ...
|
|
3159
|
+
if (typeof m[i.dataKey] < "u")
|
|
3160
|
+
w.value = { ...m[i.dataKey] };
|
|
3161
3161
|
else
|
|
3162
3162
|
throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
3163
|
-
else i.recordResolver ? w.value = { ...i.recordResolver(
|
|
3163
|
+
else i.recordResolver ? w.value = { ...i.recordResolver(m) } : w.value = { ...m };
|
|
3164
3164
|
Object.keys(i.configSchema).filter((H) => i.configSchema[H].forceShow).forEach((H) => {
|
|
3165
3165
|
w.value && typeof w.value[H] > "u" && (w.value[H] = null);
|
|
3166
|
-
}), n("fetch:success",
|
|
3167
|
-
} catch (
|
|
3168
|
-
const K = o(
|
|
3169
|
-
k.value = K.startsWith("code") ? r("baseConfigCard.errors.load") : K, $.value = !0, n("fetch:error",
|
|
3166
|
+
}), n("fetch:success", m);
|
|
3167
|
+
} catch (m) {
|
|
3168
|
+
const K = o(m);
|
|
3169
|
+
k.value = K.startsWith("code") ? r("baseConfigCard.errors.load") : K, $.value = !0, n("fetch:error", m);
|
|
3170
3170
|
} finally {
|
|
3171
3171
|
y.value = !1;
|
|
3172
3172
|
}
|
|
3173
|
-
}), (
|
|
3173
|
+
}), (m, K) => {
|
|
3174
3174
|
const H = U("KLabel"), V = U("KSelect"), ne = U("KButton"), P = U("KSkeleton"), O = U("KEmptyState"), Z = U("KCard");
|
|
3175
3175
|
return g(), B(Z, {
|
|
3176
3176
|
class: "kong-ui-entity-base-config-card",
|
|
@@ -3178,7 +3178,7 @@ ${l.value}
|
|
|
3178
3178
|
}, Ae({
|
|
3179
3179
|
actions: x(() => [
|
|
3180
3180
|
L("div", gl, [
|
|
3181
|
-
j(
|
|
3181
|
+
j(m.$slots, "actions", {}, void 0, !0),
|
|
3182
3182
|
N(H, {
|
|
3183
3183
|
class: "config-format-select-label",
|
|
3184
3184
|
"data-testid": "config-format-select-label"
|
|
@@ -3189,8 +3189,8 @@ ${l.value}
|
|
|
3189
3189
|
_: 1
|
|
3190
3190
|
}),
|
|
3191
3191
|
N(V, {
|
|
3192
|
-
modelValue:
|
|
3193
|
-
"onUpdate:modelValue": K[0] || (K[0] = (W) =>
|
|
3192
|
+
modelValue: p.value,
|
|
3193
|
+
"onUpdate:modelValue": K[0] || (K[0] = (W) => p.value = W),
|
|
3194
3194
|
"data-testid": "select-config-format",
|
|
3195
3195
|
items: s,
|
|
3196
3196
|
onChange: f
|
|
@@ -3235,16 +3235,16 @@ ${l.value}
|
|
|
3235
3235
|
config: e.config,
|
|
3236
3236
|
"entity-type": e.entityType,
|
|
3237
3237
|
"fetcher-url": v.value,
|
|
3238
|
-
format:
|
|
3238
|
+
format: p.value,
|
|
3239
3239
|
"prop-list-types": E.value,
|
|
3240
3240
|
"property-collections": F.value,
|
|
3241
3241
|
record: w.value,
|
|
3242
3242
|
"sub-entity-type": e.subEntityType
|
|
3243
3243
|
}, Ae({ _: 2 }, [
|
|
3244
|
-
de(Object.keys(
|
|
3244
|
+
de(Object.keys(m.$slots), (W) => ({
|
|
3245
3245
|
name: W,
|
|
3246
3246
|
fn: x((X) => [
|
|
3247
|
-
j(
|
|
3247
|
+
j(m.$slots, W, Gt({ record: w.value }, X), void 0, !0)
|
|
3248
3248
|
])
|
|
3249
3249
|
}))
|
|
3250
3250
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3256,7 +3256,7 @@ ${l.value}
|
|
|
3256
3256
|
name: "title",
|
|
3257
3257
|
fn: x(() => [
|
|
3258
3258
|
L("span", ml, [
|
|
3259
|
-
j(
|
|
3259
|
+
j(m.$slots, "title", {}, () => [
|
|
3260
3260
|
q(I(C(r)("baseConfigCard.title")), 1)
|
|
3261
3261
|
], !0)
|
|
3262
3262
|
])
|
|
@@ -3266,7 +3266,7 @@ ${l.value}
|
|
|
3266
3266
|
]), 1032, ["title-tag"]);
|
|
3267
3267
|
};
|
|
3268
3268
|
}
|
|
3269
|
-
}), Ws = /* @__PURE__ */ ce(vl, [["__scopeId", "data-v-
|
|
3269
|
+
}), Ws = /* @__PURE__ */ ce(vl, [["__scopeId", "data-v-b0848300"]]), bl = {
|
|
3270
3270
|
/** Enable the new plugin form layout */
|
|
3271
3271
|
KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
|
|
3272
3272
|
}, kl = ["novalidate"], Cl = /* @__PURE__ */ Q({
|
|
@@ -3393,10 +3393,10 @@ ${l.value}
|
|
|
3393
3393
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3394
3394
|
setup(e, { expose: t, emit: n }) {
|
|
3395
3395
|
var E;
|
|
3396
|
-
const i = ot(bl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = Si(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u = _(() => !!o.editId),
|
|
3397
|
-
var A,
|
|
3396
|
+
const i = ot(bl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = Si(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u = _(() => !!o.editId), p = M(!1), f = M(""), h = _(() => o.canSubmit === !1 || o.isReadonly), b = M(!1), y = _(() => {
|
|
3397
|
+
var A, m;
|
|
3398
3398
|
let v = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3399
|
-
return o.config.app === "konnect"
|
|
3399
|
+
return o.config.app === "konnect" && (v = v.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "")), v = v.replace(/\/{workspace}/gi, (m = o.config) != null && m.workspace ? `/${o.config.workspace}` : ""), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
|
|
3400
3400
|
}), $ = () => {
|
|
3401
3401
|
b.value = !b.value;
|
|
3402
3402
|
}, k = () => {
|
|
@@ -3428,12 +3428,12 @@ ${l.value}
|
|
|
3428
3428
|
}, { immediate: !0 }), st(async () => {
|
|
3429
3429
|
if (o.editId)
|
|
3430
3430
|
try {
|
|
3431
|
-
|
|
3431
|
+
p.value = !1, c.value = !0;
|
|
3432
3432
|
const { data: v } = await d.get(y.value);
|
|
3433
3433
|
r("fetch:success", v);
|
|
3434
3434
|
} catch (v) {
|
|
3435
3435
|
const A = s(v);
|
|
3436
|
-
f.value = A.startsWith("code") ? l("baseForm.errors.edit") : A,
|
|
3436
|
+
f.value = A.startsWith("code") ? l("baseForm.errors.edit") : A, p.value = !0, r("fetch:error", v);
|
|
3437
3437
|
} finally {
|
|
3438
3438
|
c.value = !1;
|
|
3439
3439
|
}
|
|
@@ -3442,17 +3442,17 @@ ${l.value}
|
|
|
3442
3442
|
formCancel: w,
|
|
3443
3443
|
formSubmit: Y
|
|
3444
3444
|
}), (v, A) => {
|
|
3445
|
-
const
|
|
3445
|
+
const m = U("KSkeleton"), K = U("KEmptyState"), H = U("KAlert"), V = U("KButton"), ne = U("KTabs"), P = U("KSlideout");
|
|
3446
3446
|
return g(), B(qe(e.wrapperComponent), {
|
|
3447
3447
|
class: fe(["kong-ui-entity-base-form", {
|
|
3448
3448
|
"new-form-layout": C(i) && e.entityType === C(ke).Plugin
|
|
3449
3449
|
}])
|
|
3450
3450
|
}, {
|
|
3451
3451
|
default: x(() => [
|
|
3452
|
-
c.value ? (g(), B(
|
|
3452
|
+
c.value ? (g(), B(m, {
|
|
3453
3453
|
key: 0,
|
|
3454
3454
|
type: "form"
|
|
3455
|
-
})) :
|
|
3455
|
+
})) : p.value ? (g(), B(K, {
|
|
3456
3456
|
key: 1,
|
|
3457
3457
|
"action-button-text": C(l)("baseForm.actions.back"),
|
|
3458
3458
|
"data-testid": "form-fetch-error",
|
|
@@ -3587,7 +3587,7 @@ ${l.value}
|
|
|
3587
3587
|
}, 8, ["class"]);
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
|
-
}), Js = /* @__PURE__ */ ce(Cl, [["__scopeId", "data-v-
|
|
3590
|
+
}), Js = /* @__PURE__ */ ce(Cl, [["__scopeId", "data-v-acce8e51"]]), xl = ["data-truncate"], Al = /* @__PURE__ */ Q({
|
|
3591
3591
|
__name: "EntityBaseTableCell",
|
|
3592
3592
|
props: {
|
|
3593
3593
|
keyName: {
|
|
@@ -3625,8 +3625,8 @@ ${l.value}
|
|
|
3625
3625
|
const Y = window.getComputedStyle(n.value);
|
|
3626
3626
|
y -= (parseFloat(Y.paddingLeft) || 0) + (parseFloat(Y.paddingRight) || 0);
|
|
3627
3627
|
}
|
|
3628
|
-
c.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = y,
|
|
3629
|
-
}, d = M({}), c = M(0), u = M(0),
|
|
3628
|
+
c.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = y, p.value = ((w = d.value) == null ? void 0 : w.innerText) || "";
|
|
3629
|
+
}, d = M({}), c = M(0), u = M(0), p = M(""), f = _(() => [i.value, n.value]), h = xe(
|
|
3630
3630
|
f,
|
|
3631
3631
|
(y) => {
|
|
3632
3632
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3659,7 +3659,7 @@ ${l.value}
|
|
|
3659
3659
|
N(k, {
|
|
3660
3660
|
"max-width": "300",
|
|
3661
3661
|
placement: "bottom-start",
|
|
3662
|
-
text: b.value ?
|
|
3662
|
+
text: b.value ? p.value : ""
|
|
3663
3663
|
}, {
|
|
3664
3664
|
default: x(() => [
|
|
3665
3665
|
j(y.$slots, "default", {}, void 0, !0)
|
|
@@ -3834,11 +3834,11 @@ ${l.value}
|
|
|
3834
3834
|
};
|
|
3835
3835
|
}), a = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = _(() => {
|
|
3836
3836
|
const v = [];
|
|
3837
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3838
|
-
const K = n.tableHeaders[
|
|
3837
|
+
return Object.keys(n.tableHeaders).forEach((m) => {
|
|
3838
|
+
const K = n.tableHeaders[m];
|
|
3839
3839
|
v.push({
|
|
3840
|
-
label: K.label ??
|
|
3841
|
-
key:
|
|
3840
|
+
label: K.label ?? m,
|
|
3841
|
+
key: m,
|
|
3842
3842
|
sortable: K.sortable ?? !1,
|
|
3843
3843
|
hidable: K.hidable ?? !0
|
|
3844
3844
|
});
|
|
@@ -3863,7 +3863,7 @@ ${l.value}
|
|
|
3863
3863
|
overflowX: "hidden",
|
|
3864
3864
|
textOverflow: "ellipsis"
|
|
3865
3865
|
}), A;
|
|
3866
|
-
},
|
|
3866
|
+
}, p = (v) => {
|
|
3867
3867
|
k(v), i("state", v);
|
|
3868
3868
|
}, f = () => {
|
|
3869
3869
|
i("empty-state-cta-clicked"), h();
|
|
@@ -3889,14 +3889,14 @@ ${l.value}
|
|
|
3889
3889
|
...n.paginationAttributes
|
|
3890
3890
|
}));
|
|
3891
3891
|
return (v, A) => {
|
|
3892
|
-
const
|
|
3892
|
+
const m = U("KTableData"), K = U("KCard");
|
|
3893
3893
|
return g(), B(K, {
|
|
3894
3894
|
class: "kong-ui-entity-base-table",
|
|
3895
3895
|
title: e.title,
|
|
3896
3896
|
"title-tag": e.titleTag
|
|
3897
3897
|
}, {
|
|
3898
3898
|
default: x(() => [
|
|
3899
|
-
N(
|
|
3899
|
+
N(m, {
|
|
3900
3900
|
ref_key: "tableRefs",
|
|
3901
3901
|
ref: d,
|
|
3902
3902
|
"cache-identifier": a.value,
|
|
@@ -3929,7 +3929,7 @@ ${l.value}
|
|
|
3929
3929
|
onEmptyStateActionClick: f,
|
|
3930
3930
|
"onRow:click": b.value,
|
|
3931
3931
|
onSort: A[0] || (A[0] = (H) => y(H)),
|
|
3932
|
-
onState:
|
|
3932
|
+
onState: p,
|
|
3933
3933
|
"onUpdate:tablePreferences": F
|
|
3934
3934
|
}, Ae({
|
|
3935
3935
|
toolbar: x(() => [
|
|
@@ -4176,10 +4176,10 @@ ${l.value}
|
|
|
4176
4176
|
o.value = !o.value;
|
|
4177
4177
|
}, u = (R) => {
|
|
4178
4178
|
l.value.has(R) ? l.value.delete(R) : l.value.add(R);
|
|
4179
|
-
},
|
|
4179
|
+
}, p = (R) => {
|
|
4180
4180
|
r("update:modelValue", R);
|
|
4181
4181
|
}, f = () => {
|
|
4182
|
-
|
|
4182
|
+
p("");
|
|
4183
4183
|
}, h = (R) => `filter-${R}`, b = (R) => {
|
|
4184
4184
|
var F, E;
|
|
4185
4185
|
return (((E = (F = i.config.schema) == null ? void 0 : F[R]) == null ? void 0 : E.values) ?? []).map((v) => typeof v == "string" ? { value: v, label: v } : v);
|
|
@@ -4213,7 +4213,7 @@ ${l.value}
|
|
|
4213
4213
|
"data-testid": "search-input",
|
|
4214
4214
|
"model-value": e.modelValue,
|
|
4215
4215
|
placeholder: e.config.placeholder,
|
|
4216
|
-
"onUpdate:modelValue":
|
|
4216
|
+
"onUpdate:modelValue": p
|
|
4217
4217
|
}, {
|
|
4218
4218
|
before: x(() => [
|
|
4219
4219
|
N(Yt)
|
|
@@ -4248,54 +4248,54 @@ ${l.value}
|
|
|
4248
4248
|
[_e, o.value]
|
|
4249
4249
|
]),
|
|
4250
4250
|
we(L("div", Ml, [
|
|
4251
|
-
(g(!0), S(pe, null, de(d.value, (
|
|
4251
|
+
(g(!0), S(pe, null, de(d.value, (m) => {
|
|
4252
4252
|
var K, H;
|
|
4253
4253
|
return g(), S("div", {
|
|
4254
|
-
key:
|
|
4254
|
+
key: m.value,
|
|
4255
4255
|
class: "kong-ui-entity-filter-menu-item",
|
|
4256
|
-
"data-testid":
|
|
4256
|
+
"data-testid": m.value
|
|
4257
4257
|
}, [
|
|
4258
4258
|
L("span", {
|
|
4259
|
-
class: fe(["menu-item-title", { expanded: l.value.has(
|
|
4259
|
+
class: fe(["menu-item-title", { expanded: l.value.has(m.value) }]),
|
|
4260
4260
|
role: "button",
|
|
4261
4261
|
tabindex: "0",
|
|
4262
|
-
onClick: (V) => u(
|
|
4263
|
-
onKeydown: oi((V) => u(
|
|
4262
|
+
onClick: (V) => u(m.value),
|
|
4263
|
+
onKeydown: oi((V) => u(m.value), ["enter"])
|
|
4264
4264
|
}, [
|
|
4265
|
-
q(I(
|
|
4265
|
+
q(I(m.label) + " ", 1),
|
|
4266
4266
|
we(L("span", jl, null, 512), [
|
|
4267
|
-
[_e, s.value.includes(
|
|
4267
|
+
[_e, s.value.includes(m.value)]
|
|
4268
4268
|
]),
|
|
4269
4269
|
N(C(wi), {
|
|
4270
|
-
class: fe(["menu-item-expand-icon", { expanded: l.value.has(
|
|
4270
|
+
class: fe(["menu-item-expand-icon", { expanded: l.value.has(m.value) }]),
|
|
4271
4271
|
color: C(vr)
|
|
4272
4272
|
}, null, 8, ["class", "color"])
|
|
4273
4273
|
], 42, Dl),
|
|
4274
4274
|
we(L("div", Ul, [
|
|
4275
4275
|
L("label", {
|
|
4276
4276
|
class: "menu-item-label",
|
|
4277
|
-
for: h(
|
|
4277
|
+
for: h(m.value)
|
|
4278
4278
|
}, I(C(n)("filter.fieldLabel")), 9, ql),
|
|
4279
|
-
((H = (K = e.config.schema) == null ? void 0 : K[
|
|
4279
|
+
((H = (K = e.config.schema) == null ? void 0 : K[m.value]) == null ? void 0 : H.type) === "select" ? (g(), B(A, {
|
|
4280
4280
|
key: 0,
|
|
4281
|
-
id: h(
|
|
4282
|
-
modelValue: a.value[
|
|
4283
|
-
"onUpdate:modelValue": (V) => a.value[
|
|
4284
|
-
"enable-filtering": Y(
|
|
4285
|
-
"filter-function": (V) => J(
|
|
4286
|
-
items: b(
|
|
4281
|
+
id: h(m.value),
|
|
4282
|
+
modelValue: a.value[m.value],
|
|
4283
|
+
"onUpdate:modelValue": (V) => a.value[m.value] = V,
|
|
4284
|
+
"enable-filtering": Y(m.value),
|
|
4285
|
+
"filter-function": (V) => J(m.value, V),
|
|
4286
|
+
items: b(m.value),
|
|
4287
4287
|
placeholder: C(n)("filter.selectPlaceholder")
|
|
4288
4288
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), B(E, {
|
|
4289
4289
|
key: 1,
|
|
4290
|
-
id: h(
|
|
4291
|
-
modelValue: a.value[
|
|
4292
|
-
"onUpdate:modelValue": (V) => a.value[
|
|
4290
|
+
id: h(m.value),
|
|
4291
|
+
modelValue: a.value[m.value],
|
|
4292
|
+
"onUpdate:modelValue": (V) => a.value[m.value] = V,
|
|
4293
4293
|
autocomplete: "off",
|
|
4294
4294
|
placeholder: C(n)("filter.inputPlaceholder"),
|
|
4295
|
-
type: y(
|
|
4295
|
+
type: y(m.value)
|
|
4296
4296
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4297
4297
|
], 512), [
|
|
4298
|
-
[_e, l.value.has(
|
|
4298
|
+
[_e, l.value.has(m.value)]
|
|
4299
4299
|
]),
|
|
4300
4300
|
we(L("div", Hl, [
|
|
4301
4301
|
N(v, {
|
|
@@ -4313,7 +4313,7 @@ ${l.value}
|
|
|
4313
4313
|
appearance: "tertiary",
|
|
4314
4314
|
"data-testid": "clear-filter",
|
|
4315
4315
|
size: "small",
|
|
4316
|
-
onClick: (V) => $(
|
|
4316
|
+
onClick: (V) => $(m.value)
|
|
4317
4317
|
}, {
|
|
4318
4318
|
default: x(() => [
|
|
4319
4319
|
q(I(C(n)("filter.clearButtonText")), 1)
|
|
@@ -4321,7 +4321,7 @@ ${l.value}
|
|
|
4321
4321
|
_: 1
|
|
4322
4322
|
}, 8, ["onClick"])
|
|
4323
4323
|
], 512), [
|
|
4324
|
-
[_e, l.value.has(
|
|
4324
|
+
[_e, l.value.has(m.value)]
|
|
4325
4325
|
])
|
|
4326
4326
|
], 8, Pl);
|
|
4327
4327
|
}), 128)),
|
|
@@ -4391,7 +4391,7 @@ ${l.value}
|
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
4393
|
};
|
|
4394
|
-
return (u,
|
|
4394
|
+
return (u, p) => {
|
|
4395
4395
|
const f = U("KPrompt");
|
|
4396
4396
|
return g(), B(zt, { to: "body" }, [
|
|
4397
4397
|
N(f, {
|
|
@@ -4651,7 +4651,7 @@ const Zl = ["aria-labelledby"], Xl = { class: "form-section-wrapper" }, es = {
|
|
|
4651
4651
|
a.value = o;
|
|
4652
4652
|
}, 1800));
|
|
4653
4653
|
};
|
|
4654
|
-
return (u,
|
|
4654
|
+
return (u, p) => {
|
|
4655
4655
|
const f = U("KTooltip"), h = U("KExternalLink"), b = U("KClipboardProvider");
|
|
4656
4656
|
return g(), S("div", fs, [
|
|
4657
4657
|
l.value ? (g(), S("div", ps, I(d.value), 1)) : s.value ? s.value ? (g(), B(h, {
|