@kong-ui-public/entities-consumer-groups 1.3.2-pr.915.fe82b84d.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as
|
|
1
|
+
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as m, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as ze, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
|
|
4
4
|
import vr from "axios";
|
|
@@ -320,39 +320,39 @@ function Kr(e, n, t, r = {
|
|
|
320
320
|
t || (t = "100");
|
|
321
321
|
const { axiosInstance: o } = At({
|
|
322
322
|
headers: e.requestHeaders
|
|
323
|
-
}), { i18n: { t: a } } = St(), { debounce: i } = wr(), s = i(async (
|
|
324
|
-
await C(
|
|
325
|
-
}, 200), l = O(!1), c = O(""), d = O(""), u = O([]),
|
|
326
|
-
let v = `${e.apiBaseUrl}${
|
|
323
|
+
}), { i18n: { t: a } } = St(), { debounce: i } = wr(), s = i(async (I) => {
|
|
324
|
+
await C(I);
|
|
325
|
+
}, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), A = y(n);
|
|
326
|
+
let v = `${e.apiBaseUrl}${A}`;
|
|
327
327
|
e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
328
328
|
const { isValidUuid: p } = pn(), S = async () => {
|
|
329
329
|
try {
|
|
330
330
|
l.value = !0;
|
|
331
|
-
const { data:
|
|
332
|
-
|
|
331
|
+
const { data: I } = await o.get(`${v}?size=${t}`);
|
|
332
|
+
I != null && I.next || (f.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = g.value;
|
|
333
333
|
} catch {
|
|
334
334
|
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
335
335
|
} finally {
|
|
336
336
|
l.value = !1;
|
|
337
337
|
}
|
|
338
|
-
}, b = O(""), C = async (
|
|
338
|
+
}, b = O(""), C = async (I) => {
|
|
339
339
|
var ne, pe, H;
|
|
340
|
-
if (b.value !==
|
|
341
|
-
if (b.value =
|
|
340
|
+
if (b.value !== I)
|
|
341
|
+
if (b.value = I || "", f.value === void 0)
|
|
342
342
|
try {
|
|
343
343
|
if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
344
344
|
let w = v + "";
|
|
345
|
-
|
|
345
|
+
I && (w += `/${I}`);
|
|
346
346
|
const { data: N } = await o.get(`${w}?size=${t}`);
|
|
347
347
|
r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
|
|
348
|
-
} else if (
|
|
348
|
+
} else if (I) {
|
|
349
349
|
const w = [];
|
|
350
|
-
p(
|
|
351
|
-
const { data: k } = await o.get(`${v}/${
|
|
350
|
+
p(I) && r.searchKeys.includes("id") ? w.push((async () => {
|
|
351
|
+
const { data: k } = await o.get(`${v}/${I}`);
|
|
352
352
|
return [k[r.fetchedItemsKey] ?? k];
|
|
353
353
|
})()) : w.push(
|
|
354
354
|
...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
|
|
355
|
-
const { data: x } = await o.get(`${v}?${k}=${
|
|
355
|
+
const { data: x } = await o.get(`${v}?${k}=${I}`);
|
|
356
356
|
return x[r.fetchedItemsKey];
|
|
357
357
|
})
|
|
358
358
|
);
|
|
@@ -364,19 +364,19 @@ function Kr(e, n, t, r = {
|
|
|
364
364
|
});
|
|
365
365
|
});
|
|
366
366
|
} else
|
|
367
|
-
u.value =
|
|
367
|
+
u.value = g.value;
|
|
368
368
|
} catch (w) {
|
|
369
369
|
((pe = w == null ? void 0 : w.response) == null ? void 0 : pe.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
|
|
370
370
|
} finally {
|
|
371
371
|
l.value = !1;
|
|
372
372
|
}
|
|
373
373
|
else
|
|
374
|
-
l.value = !0, d.value = "",
|
|
374
|
+
l.value = !0, d.value = "", I ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
|
|
375
375
|
var N;
|
|
376
376
|
let B = !1;
|
|
377
377
|
for (const k of r.searchKeys) {
|
|
378
378
|
const x = typeof w[k] == "string" ? (N = w[k]) == null ? void 0 : N.toLowerCase() : w[k];
|
|
379
|
-
x != null && x.includes(
|
|
379
|
+
x != null && x.includes(I.toLowerCase()) && (B = !0);
|
|
380
380
|
}
|
|
381
381
|
return B;
|
|
382
382
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
|
|
@@ -432,11 +432,11 @@ function fn(e, n) {
|
|
|
432
432
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
433
433
|
);
|
|
434
434
|
return (i) => {
|
|
435
|
-
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query:
|
|
435
|
+
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
|
|
436
436
|
try {
|
|
437
437
|
let f = new URL(a.value.href);
|
|
438
|
-
return o.value &&
|
|
439
|
-
f.searchParams.append(v,
|
|
438
|
+
return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((A, v) => {
|
|
439
|
+
f.searchParams.append(v, A);
|
|
440
440
|
}), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
|
|
441
441
|
} catch (f) {
|
|
442
442
|
return console.error("RouteList(fetcher)", f), r.value;
|
|
@@ -455,7 +455,7 @@ function Pr(e, n, t = "data") {
|
|
|
455
455
|
const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
456
456
|
let u;
|
|
457
457
|
c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
|
|
458
|
-
const
|
|
458
|
+
const g = {
|
|
459
459
|
data: u,
|
|
460
460
|
total: u.length,
|
|
461
461
|
...c.offset ? {
|
|
@@ -466,8 +466,8 @@ function Pr(e, n, t = "data") {
|
|
|
466
466
|
};
|
|
467
467
|
return i.value = {
|
|
468
468
|
status: Oe.Idle,
|
|
469
|
-
response:
|
|
470
|
-
},
|
|
469
|
+
response: g
|
|
470
|
+
}, g;
|
|
471
471
|
} catch (l) {
|
|
472
472
|
const c = {
|
|
473
473
|
data: [],
|
|
@@ -630,32 +630,28 @@ const ue = {
|
|
|
630
630
|
positionFixed: !0,
|
|
631
631
|
maxWidth: "500px",
|
|
632
632
|
placement: "bottomStart"
|
|
633
|
-
} : {}), c = M(() => {
|
|
634
|
-
|
|
635
|
-
return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
|
|
636
|
-
}), d = (m) => {
|
|
637
|
-
s.value = m, setTimeout(() => {
|
|
633
|
+
} : {}), c = M(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), d = (g) => {
|
|
634
|
+
s.value = g, setTimeout(() => {
|
|
638
635
|
s.value = t.tooltip;
|
|
639
636
|
}, 1800);
|
|
640
|
-
}, u = (
|
|
641
|
-
|
|
642
|
-
if (!m(t.uuid)) {
|
|
637
|
+
}, u = (g) => {
|
|
638
|
+
if (!g(t.uuid)) {
|
|
643
639
|
typeof o == "function" && o({
|
|
644
640
|
type: "error",
|
|
645
641
|
message: r("message.fail")
|
|
646
642
|
}), i.value ? d(r("message.fail")) : n("error", t.uuid);
|
|
647
643
|
return;
|
|
648
644
|
}
|
|
649
|
-
const
|
|
645
|
+
const f = t.uuid.length > Gt, A = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${t.uuid.substring(0, Gt) + (f ? "..." : "")}"`;
|
|
650
646
|
typeof o == "function" && o({
|
|
651
647
|
type: "success",
|
|
652
|
-
message: `${
|
|
648
|
+
message: `${A}${r("message.success.content")}`
|
|
653
649
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
654
650
|
};
|
|
655
|
-
return (
|
|
656
|
-
const
|
|
657
|
-
return
|
|
658
|
-
e.format !== "hidden" ? (
|
|
651
|
+
return (g, f) => {
|
|
652
|
+
const A = U("KIcon"), v = U("KClipboardProvider");
|
|
653
|
+
return m(), j("div", Zr, [
|
|
654
|
+
e.format !== "hidden" ? (m(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
659
655
|
default: h(() => [
|
|
660
656
|
R("div", {
|
|
661
657
|
class: Ke([
|
|
@@ -667,7 +663,7 @@ const ue = {
|
|
|
667
663
|
]),
|
|
668
664
|
_: 1
|
|
669
665
|
}, 16)) : G("", !0),
|
|
670
|
-
(
|
|
666
|
+
(m(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
671
667
|
default: h(() => [
|
|
672
668
|
K(v, null, {
|
|
673
669
|
default: h(({ copyToClipboard: p }) => [
|
|
@@ -677,7 +673,7 @@ const ue = {
|
|
|
677
673
|
tabindex: "0",
|
|
678
674
|
onClick: rt((S) => u(p), ["stop"])
|
|
679
675
|
}, [
|
|
680
|
-
K(
|
|
676
|
+
K(A, {
|
|
681
677
|
class: "uuid-icon",
|
|
682
678
|
color: e.iconColor,
|
|
683
679
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -700,7 +696,7 @@ const ue = {
|
|
|
700
696
|
for (const [r, o] of n)
|
|
701
697
|
t[r] = o;
|
|
702
698
|
return t;
|
|
703
|
-
}, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-
|
|
699
|
+
}, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-bfdaf6f7"]]), to = {
|
|
704
700
|
key: 0,
|
|
705
701
|
class: "config-card-fieldset-title"
|
|
706
702
|
}, no = /* @__PURE__ */ ae({
|
|
@@ -727,14 +723,14 @@ const ue = {
|
|
|
727
723
|
var l;
|
|
728
724
|
return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
729
725
|
});
|
|
730
|
-
return (l, c) => (
|
|
726
|
+
return (l, c) => (m(), V(ze(e.isArrayItem ? "fieldset" : "div"), {
|
|
731
727
|
class: Ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
732
728
|
}, {
|
|
733
729
|
default: h(() => [
|
|
734
|
-
e.isArrayItem ? (
|
|
730
|
+
e.isArrayItem ? (m(), j("legend", to, [
|
|
735
731
|
R("b", null, F(s.value), 1)
|
|
736
732
|
])) : G("", !0),
|
|
737
|
-
(
|
|
733
|
+
(m(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (m(), V(xt, {
|
|
738
734
|
key: `${o.value}-property-${u}`,
|
|
739
735
|
item: {
|
|
740
736
|
key: d,
|
|
@@ -764,7 +760,7 @@ const ue = {
|
|
|
764
760
|
const { i18n: { t: n } } = ue.useI18n();
|
|
765
761
|
return (t, r) => {
|
|
766
762
|
const o = U("KButton");
|
|
767
|
-
return
|
|
763
|
+
return m(), j("div", null, [
|
|
768
764
|
K(o, {
|
|
769
765
|
appearance: "btn-link",
|
|
770
766
|
class: "navigation-button",
|
|
@@ -790,7 +786,7 @@ const ue = {
|
|
|
790
786
|
const { i18n: { t: n } } = ue.useI18n();
|
|
791
787
|
return (t, r) => {
|
|
792
788
|
const o = U("KBadge");
|
|
793
|
-
return
|
|
789
|
+
return m(), V(o, {
|
|
794
790
|
appearance: e.status ? "success" : "neutral"
|
|
795
791
|
}, {
|
|
796
792
|
default: h(() => [
|
|
@@ -956,10 +952,10 @@ const ue = {
|
|
|
956
952
|
text: t.item.value
|
|
957
953
|
};
|
|
958
954
|
}
|
|
959
|
-
}), u = O(), { isTruncated:
|
|
960
|
-
return (f,
|
|
955
|
+
}), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
|
|
956
|
+
return (f, A) => {
|
|
961
957
|
const v = U("KLabel"), p = U("KBadge"), S = U("KMethodBadge"), b = U("KTooltip");
|
|
962
|
-
return
|
|
958
|
+
return m(), j("div", po, [
|
|
963
959
|
R("div", {
|
|
964
960
|
class: "config-card-details-label",
|
|
965
961
|
"data-testid": `${e.item.key}-label`
|
|
@@ -994,17 +990,17 @@ const ue = {
|
|
|
994
990
|
Y(f.$slots, e.item.key, {
|
|
995
991
|
rowValue: e.item.value
|
|
996
992
|
}, () => [
|
|
997
|
-
i.value ? (
|
|
998
|
-
(
|
|
993
|
+
i.value ? (m(), j("div", ho, [
|
|
994
|
+
(m(), V(ze(d.value.tag), cr(dr(d.value.attrs)), {
|
|
999
995
|
default: h(() => [
|
|
1000
|
-
d.value.additionalComponent === "KBadge" ? (
|
|
996
|
+
d.value.additionalComponent === "KBadge" ? (m(), j("div", {
|
|
1001
997
|
key: 0,
|
|
1002
998
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1003
999
|
}, [
|
|
1004
|
-
(
|
|
1005
|
-
key: `${e.item.key}-badge-tag-${
|
|
1000
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(p, {
|
|
1001
|
+
key: `${e.item.key}-badge-tag-${I}`,
|
|
1006
1002
|
class: "config-badge",
|
|
1007
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1003
|
+
"data-testid": `${e.item.key}-badge-tag-${I}`,
|
|
1008
1004
|
"truncation-tooltip": C
|
|
1009
1005
|
}, {
|
|
1010
1006
|
default: h(() => [
|
|
@@ -1013,25 +1009,25 @@ const ue = {
|
|
|
1013
1009
|
_: 2
|
|
1014
1010
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1015
1011
|
], 8, vo)) : G("", !0),
|
|
1016
|
-
d.value.additionalComponent === "CopyUuid" ? (
|
|
1012
|
+
d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
|
|
1017
1013
|
key: 1,
|
|
1018
1014
|
class: "copy-uuid-array",
|
|
1019
1015
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1020
1016
|
}, [
|
|
1021
|
-
(
|
|
1022
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1023
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1017
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(y(yn), ht(d.value.childAttrs, {
|
|
1018
|
+
key: `${e.item.key}-copy-uuid-${I}`,
|
|
1019
|
+
"data-testid": `${e.item.key}-copy-uuid-${I}`,
|
|
1024
1020
|
uuid: C
|
|
1025
1021
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1026
|
-
], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (
|
|
1022
|
+
], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
|
|
1027
1023
|
key: 2,
|
|
1028
1024
|
class: "method-badge-array",
|
|
1029
1025
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1030
1026
|
}, [
|
|
1031
|
-
(
|
|
1032
|
-
key: `${e.item.key}-badge-method-${
|
|
1027
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(S, {
|
|
1028
|
+
key: `${e.item.key}-badge-method-${I}`,
|
|
1033
1029
|
class: "config-badge",
|
|
1034
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1030
|
+
"data-testid": `${e.item.key}-badge-method-${I}`,
|
|
1035
1031
|
"is-rounded": "",
|
|
1036
1032
|
label: C,
|
|
1037
1033
|
method: y(br).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
|
|
@@ -1042,19 +1038,19 @@ const ue = {
|
|
|
1042
1038
|
_: 2
|
|
1043
1039
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1044
1040
|
], 8, Co)) : G("", !0),
|
|
1045
|
-
d.value.additionalComponent === "JsonCardItem" ? (
|
|
1041
|
+
d.value.additionalComponent === "JsonCardItem" ? (m(), j("div", {
|
|
1046
1042
|
key: 3,
|
|
1047
1043
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1048
1044
|
}, [
|
|
1049
|
-
(
|
|
1050
|
-
key: `json-array-item-${
|
|
1051
|
-
index:
|
|
1045
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(hn, {
|
|
1046
|
+
key: `json-array-item-${I}`,
|
|
1047
|
+
index: I,
|
|
1052
1048
|
"is-array-item": "",
|
|
1053
1049
|
item: C
|
|
1054
1050
|
}, null, 8, ["index", "item"]))), 128))
|
|
1055
|
-
], 8, ko)) : (
|
|
1051
|
+
], 8, ko)) : (m(), V(b, {
|
|
1056
1052
|
key: 4,
|
|
1057
|
-
label: y(
|
|
1053
|
+
label: y(g) ? e.item.value : ""
|
|
1058
1054
|
}, {
|
|
1059
1055
|
default: h(() => [
|
|
1060
1056
|
R("span", {
|
|
@@ -1068,7 +1064,7 @@ const ue = {
|
|
|
1068
1064
|
]),
|
|
1069
1065
|
_: 1
|
|
1070
1066
|
}, 16))
|
|
1071
|
-
])) : (
|
|
1067
|
+
])) : (m(), j("div", {
|
|
1072
1068
|
key: 0,
|
|
1073
1069
|
"data-testid": `${e.item.key}-no-value`
|
|
1074
1070
|
}, " – ", 8, yo))
|
|
@@ -1521,7 +1517,7 @@ function ia(e) {
|
|
|
1521
1517
|
return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
|
|
1522
1518
|
}
|
|
1523
1519
|
function sa(e) {
|
|
1524
|
-
var n, t, r, o, a, i, s, l = 0, c = null, d, u,
|
|
1520
|
+
var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
|
|
1525
1521
|
if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
|
|
1526
1522
|
throw new Error("Date resolve error");
|
|
1527
1523
|
if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
|
|
@@ -1531,7 +1527,7 @@ function sa(e) {
|
|
|
1531
1527
|
l += "0";
|
|
1532
1528
|
l = +l;
|
|
1533
1529
|
}
|
|
1534
|
-
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)),
|
|
1530
|
+
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
|
|
1535
1531
|
}
|
|
1536
1532
|
function la(e) {
|
|
1537
1533
|
return e.toISOString();
|
|
@@ -1806,7 +1802,7 @@ function jt(e, n) {
|
|
|
1806
1802
|
`, n - 1));
|
|
1807
1803
|
}
|
|
1808
1804
|
function Oa(e, n, t) {
|
|
1809
|
-
var r, o, a, i, s, l, c, d, u = e.kind,
|
|
1805
|
+
var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
|
|
1810
1806
|
if (f = e.input.charCodeAt(e.position), he(f) || Ue(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
|
|
1811
1807
|
return !1;
|
|
1812
1808
|
for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
|
|
@@ -1830,7 +1826,7 @@ function Oa(e, n, t) {
|
|
|
1830
1826
|
}
|
|
1831
1827
|
s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Fe(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1832
1828
|
}
|
|
1833
|
-
return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result =
|
|
1829
|
+
return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1834
1830
|
}
|
|
1835
1831
|
function Fa(e, n) {
|
|
1836
1832
|
var t, r, o;
|
|
@@ -1871,7 +1867,7 @@ function Ka(e, n) {
|
|
|
1871
1867
|
$(e, "unexpected end of the stream within a double quoted scalar");
|
|
1872
1868
|
}
|
|
1873
1869
|
function Na(e, n) {
|
|
1874
|
-
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u,
|
|
1870
|
+
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, A = /* @__PURE__ */ Object.create(null), v, p, S, b;
|
|
1875
1871
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1876
1872
|
d = 93, f = !1, s = [];
|
|
1877
1873
|
else if (b === 123)
|
|
@@ -1881,7 +1877,7 @@ function Na(e, n) {
|
|
|
1881
1877
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1882
1878
|
if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
|
|
1883
1879
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1884
|
-
t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u =
|
|
1880
|
+
t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = g = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = g = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (g || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? qe(e, s, A, p, v, S, r, o, a) : u ? s.push(qe(e, null, A, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1885
1881
|
}
|
|
1886
1882
|
$(e, "unexpected end of the stream within a flow collection");
|
|
1887
1883
|
}
|
|
@@ -1949,12 +1945,12 @@ function Qt(e, n) {
|
|
|
1949
1945
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1950
1946
|
}
|
|
1951
1947
|
function Pa(e, n, t) {
|
|
1952
|
-
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {},
|
|
1948
|
+
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, A = null, v = null, p = !1, S = !1, b;
|
|
1953
1949
|
if (e.firstTabInLine !== -1)
|
|
1954
1950
|
return !1;
|
|
1955
1951
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
1956
1952
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
|
|
1957
|
-
b === 63 ? (p && (qe(e, u,
|
|
1953
|
+
b === 63 ? (p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
1958
1954
|
else {
|
|
1959
1955
|
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
|
|
1960
1956
|
break;
|
|
@@ -1962,7 +1958,7 @@ function Pa(e, n, t) {
|
|
|
1962
1958
|
for (b = e.input.charCodeAt(e.position); Fe(b); )
|
|
1963
1959
|
b = e.input.charCodeAt(++e.position);
|
|
1964
1960
|
if (b === 58)
|
|
1965
|
-
b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(e, u,
|
|
1961
|
+
b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !0, p = !1, o = !1, f = e.tag, A = e.result;
|
|
1966
1962
|
else if (S)
|
|
1967
1963
|
$(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1968
1964
|
else
|
|
@@ -1972,12 +1968,12 @@ function Pa(e, n, t) {
|
|
|
1972
1968
|
else
|
|
1973
1969
|
return e.tag = c, e.anchor = d, !0;
|
|
1974
1970
|
}
|
|
1975
|
-
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ?
|
|
1971
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? A = e.result : v = e.result), p || (qe(e, u, g, f, A, v, i, s, l), f = A = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
|
|
1976
1972
|
$(e, "bad indentation of a mapping entry");
|
|
1977
1973
|
else if (e.lineIndent < n)
|
|
1978
1974
|
break;
|
|
1979
1975
|
}
|
|
1980
|
-
return p && qe(e, u,
|
|
1976
|
+
return p && qe(e, u, g, f, A, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
|
|
1981
1977
|
}
|
|
1982
1978
|
function La(e) {
|
|
1983
1979
|
var n, t = !1, r = !1, o, a, i;
|
|
@@ -2018,28 +2014,28 @@ function qa(e) {
|
|
|
2018
2014
|
return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2019
2015
|
}
|
|
2020
2016
|
function Re(e, n, t, r, o) {
|
|
2021
|
-
var a, i, s, l = 1, c = !1, d = !1, u,
|
|
2017
|
+
var a, i, s, l = 1, c = !1, d = !1, u, g, f, A, v, p;
|
|
2022
2018
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2023
2019
|
for (; La(e) || Ua(e); )
|
|
2024
2020
|
oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2025
2021
|
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Pa(e, p, v)) || Na(e, v) ? d = !0 : (i && Ba(e, v) || Fa(e, v) || Ka(e, v) ? d = !0 : qa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Oa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
|
|
2026
2022
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2027
2023
|
else if (e.tag === "?") {
|
|
2028
|
-
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0,
|
|
2029
|
-
if (
|
|
2030
|
-
e.result =
|
|
2024
|
+
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
2025
|
+
if (A = e.implicitTypes[u], A.resolve(e.result)) {
|
|
2026
|
+
e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2031
2027
|
break;
|
|
2032
2028
|
}
|
|
2033
2029
|
} else if (e.tag !== "!") {
|
|
2034
2030
|
if (je.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2035
|
-
|
|
2031
|
+
A = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2036
2032
|
else
|
|
2037
|
-
for (
|
|
2033
|
+
for (A = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
|
|
2038
2034
|
if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
|
|
2039
|
-
|
|
2035
|
+
A = f[u];
|
|
2040
2036
|
break;
|
|
2041
2037
|
}
|
|
2042
|
-
|
|
2038
|
+
A || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2043
2039
|
}
|
|
2044
2040
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2045
2041
|
}
|
|
@@ -2214,7 +2210,7 @@ function tr(e) {
|
|
|
2214
2210
|
}
|
|
2215
2211
|
var nr = 1, kt = 2, rr = 3, or = 4, Le = 5;
|
|
2216
2212
|
function vi(e, n, t, r, o, a, i, s) {
|
|
2217
|
-
var l, c = 0, d = null, u = !1,
|
|
2213
|
+
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1, v = yi(He(e, 0)) && hi(He(e, e.length - 1));
|
|
2218
2214
|
if (n || i)
|
|
2219
2215
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2220
2216
|
if (c = He(e, l), !Ze(c))
|
|
@@ -2224,15 +2220,15 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2224
2220
|
else {
|
|
2225
2221
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2226
2222
|
if (c = He(e, l), c === We)
|
|
2227
|
-
u = !0, f && (
|
|
2228
|
-
l -
|
|
2223
|
+
u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
|
|
2224
|
+
l - A - 1 > r && e[A + 1] !== " ", A = l);
|
|
2229
2225
|
else if (!Ze(c))
|
|
2230
2226
|
return Le;
|
|
2231
2227
|
v = v && tn(c, d, s), d = c;
|
|
2232
2228
|
}
|
|
2233
|
-
|
|
2229
|
+
g = g || f && l - A - 1 > r && e[A + 1] !== " ";
|
|
2234
2230
|
}
|
|
2235
|
-
return !u && !
|
|
2231
|
+
return !u && !g ? v && !i && !o(e) ? nr : a === Ye ? Le : kt : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : kt : g ? or : rr;
|
|
2236
2232
|
}
|
|
2237
2233
|
function bi(e, n, t, r, o) {
|
|
2238
2234
|
e.dump = function() {
|
|
@@ -2328,7 +2324,7 @@ function wi(e, n, t) {
|
|
|
2328
2324
|
e.tag = o, e.dump = "{" + r + "}";
|
|
2329
2325
|
}
|
|
2330
2326
|
function Ii(e, n, t, r) {
|
|
2331
|
-
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u,
|
|
2327
|
+
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
|
|
2332
2328
|
if (e.sortKeys === !0)
|
|
2333
2329
|
i.sort();
|
|
2334
2330
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2336,7 +2332,7 @@ function Ii(e, n, t, r) {
|
|
|
2336
2332
|
else if (e.sortKeys)
|
|
2337
2333
|
throw new me("sortKeys must be a boolean or a function");
|
|
2338
2334
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2339
|
-
|
|
2335
|
+
g = "", (!r || o !== "") && (g += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
|
|
2340
2336
|
e.tag = a, e.dump = o || "{}";
|
|
2341
2337
|
}
|
|
2342
2338
|
function sn(e, n, t) {
|
|
@@ -2360,14 +2356,14 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2360
2356
|
e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
|
|
2361
2357
|
var s = Jn.call(e.dump), l = r, c;
|
|
2362
2358
|
r && (r = e.flowLevel < 0 || e.flowLevel > n);
|
|
2363
|
-
var d = s === "[object Object]" || s === "[object Array]", u,
|
|
2364
|
-
if (d && (u = e.duplicates.indexOf(t),
|
|
2359
|
+
var d = s === "[object Object]" || s === "[object Array]", u, g;
|
|
2360
|
+
if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (o = !1), g && e.usedDuplicates[u])
|
|
2365
2361
|
e.dump = "*ref_" + u;
|
|
2366
2362
|
else {
|
|
2367
|
-
if (d &&
|
|
2368
|
-
r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o),
|
|
2363
|
+
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2364
|
+
r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2369
2365
|
else if (s === "[object Array]")
|
|
2370
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o),
|
|
2366
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2371
2367
|
else if (s === "[object String]")
|
|
2372
2368
|
e.tag !== "?" && bi(e, e.dump, n, a, l);
|
|
2373
2369
|
else {
|
|
@@ -2488,25 +2484,25 @@ const Di = {
|
|
|
2488
2484
|
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
|
|
2489
2485
|
}, { immediate: !0 }), (s, l) => {
|
|
2490
2486
|
const c = U("KCodeBlock");
|
|
2491
|
-
return
|
|
2492
|
-
e.format === "structured" ? (
|
|
2493
|
-
(
|
|
2487
|
+
return m(), j(ve, null, [
|
|
2488
|
+
e.format === "structured" ? (m(), j("div", Di, [
|
|
2489
|
+
(m(!0), j(ve, null, ye(e.propListTypes, (d) => (m(), j("div", {
|
|
2494
2490
|
key: `config-card-details-${d}-props`,
|
|
2495
2491
|
class: Ke(`config-card-details-${d}-props`),
|
|
2496
2492
|
"data-testid": `config-card-details-${d}-props`
|
|
2497
2493
|
}, [
|
|
2498
|
-
d !== "basic" ? (
|
|
2499
|
-
(
|
|
2494
|
+
d !== "basic" ? (m(), j("div", Hi, F(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2495
|
+
(m(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (m(), V(xt, {
|
|
2500
2496
|
key: u.key,
|
|
2501
2497
|
item: u
|
|
2502
2498
|
}, Te({
|
|
2503
2499
|
label: h(() => [
|
|
2504
2500
|
Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2505
2501
|
]),
|
|
2506
|
-
[u.key]: h(({ rowValue:
|
|
2502
|
+
[u.key]: h(({ rowValue: g }) => [
|
|
2507
2503
|
Y(s.$slots, u.key, {
|
|
2508
2504
|
row: u,
|
|
2509
|
-
rowValue:
|
|
2505
|
+
rowValue: g
|
|
2510
2506
|
}, void 0, !0)
|
|
2511
2507
|
]),
|
|
2512
2508
|
_: 2
|
|
@@ -2521,7 +2517,7 @@ const Di = {
|
|
|
2521
2517
|
]), 1032, ["item"]))), 128))
|
|
2522
2518
|
], 10, Gi))), 128))
|
|
2523
2519
|
])) : G("", !0),
|
|
2524
|
-
e.format === "json" ? (
|
|
2520
|
+
e.format === "json" ? (m(), j("div", zi, [
|
|
2525
2521
|
K(c, {
|
|
2526
2522
|
id: "config-card-codeblock",
|
|
2527
2523
|
code: a.value,
|
|
@@ -2529,7 +2525,7 @@ const Di = {
|
|
|
2529
2525
|
theme: "dark"
|
|
2530
2526
|
}, null, 8, ["code"])
|
|
2531
2527
|
])) : G("", !0),
|
|
2532
|
-
e.format === "yaml" ? (
|
|
2528
|
+
e.format === "yaml" ? (m(), j("div", Ji, [
|
|
2533
2529
|
K(c, {
|
|
2534
2530
|
id: "config-card-codeblock",
|
|
2535
2531
|
code: i.value,
|
|
@@ -2620,14 +2616,14 @@ const Di = {
|
|
|
2620
2616
|
lineHeight: "0",
|
|
2621
2617
|
width: t.value
|
|
2622
2618
|
}));
|
|
2623
|
-
return (o, a) => (
|
|
2619
|
+
return (o, a) => (m(), V(ze(e.as), {
|
|
2624
2620
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2625
2621
|
class: "kui-icon book-icon",
|
|
2626
2622
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2627
2623
|
style: mr(r.value)
|
|
2628
2624
|
}, {
|
|
2629
2625
|
default: h(() => [
|
|
2630
|
-
(
|
|
2626
|
+
(m(), j("svg", {
|
|
2631
2627
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2632
2628
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2633
2629
|
fill: "none",
|
|
@@ -2637,7 +2633,7 @@ const Di = {
|
|
|
2637
2633
|
width: "100%",
|
|
2638
2634
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2639
2635
|
}, [
|
|
2640
|
-
e.title ? (
|
|
2636
|
+
e.title ? (m(), j("title", es, F(e.title), 1)) : G("", !0),
|
|
2641
2637
|
ts
|
|
2642
2638
|
], 8, Xi))
|
|
2643
2639
|
]),
|
|
@@ -2746,7 +2742,7 @@ const Di = {
|
|
|
2746
2742
|
}
|
|
2747
2743
|
], d = O("structured"), u = (w) => {
|
|
2748
2744
|
d.value = w == null ? void 0 : w.value;
|
|
2749
|
-
},
|
|
2745
|
+
}, g = {
|
|
2750
2746
|
id: {
|
|
2751
2747
|
type: te.ID,
|
|
2752
2748
|
label: a("baseConfigCard.commonFields.id_label"),
|
|
@@ -2780,13 +2776,13 @@ const Di = {
|
|
|
2780
2776
|
// the last property displayed
|
|
2781
2777
|
section: be.Basic
|
|
2782
2778
|
}
|
|
2783
|
-
}, f = O(!1),
|
|
2779
|
+
}, f = O(!1), A = O(!1), v = O(""), p = O(), S = M(() => {
|
|
2784
2780
|
var w, N, B;
|
|
2785
2781
|
if (!p.value)
|
|
2786
2782
|
return [];
|
|
2787
2783
|
const k = [], x = Object.keys(p.value).length;
|
|
2788
2784
|
for (const T in p.value) {
|
|
2789
|
-
const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B =
|
|
2785
|
+
const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = g[T]) == null ? void 0 : B.order;
|
|
2790
2786
|
let Q = x;
|
|
2791
2787
|
(J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([T, Q]);
|
|
2792
2788
|
}
|
|
@@ -2794,7 +2790,7 @@ const Di = {
|
|
|
2794
2790
|
return T[1] - P[1];
|
|
2795
2791
|
}), k.map((T) => {
|
|
2796
2792
|
var P, J;
|
|
2797
|
-
const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie =
|
|
2793
|
+
const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
|
|
2798
2794
|
return {
|
|
2799
2795
|
key: Q,
|
|
2800
2796
|
value: X,
|
|
@@ -2837,7 +2833,7 @@ const Di = {
|
|
|
2837
2833
|
advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
|
|
2838
2834
|
plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
|
|
2839
2835
|
};
|
|
2840
|
-
}),
|
|
2836
|
+
}), I = M(() => {
|
|
2841
2837
|
const w = [];
|
|
2842
2838
|
return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
|
|
2843
2839
|
}), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
|
|
@@ -2850,7 +2846,7 @@ const Di = {
|
|
|
2850
2846
|
return xe(f, (w) => {
|
|
2851
2847
|
n("loading", w);
|
|
2852
2848
|
}, { immediate: !0 }), Qe(async () => {
|
|
2853
|
-
|
|
2849
|
+
A.value = !1, f.value = !0;
|
|
2854
2850
|
try {
|
|
2855
2851
|
const { data: w } = await l.get(pe.value);
|
|
2856
2852
|
if (r.dataKey)
|
|
@@ -2865,17 +2861,17 @@ const Di = {
|
|
|
2865
2861
|
}), n("fetch:success", w);
|
|
2866
2862
|
} catch (w) {
|
|
2867
2863
|
const N = i(w);
|
|
2868
|
-
v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N,
|
|
2864
|
+
v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, A.value = !0, n("fetch:error", w);
|
|
2869
2865
|
} finally {
|
|
2870
2866
|
f.value = !1;
|
|
2871
2867
|
}
|
|
2872
2868
|
}), (w, N) => {
|
|
2873
2869
|
const B = U("KLabel"), k = U("KSelect"), x = U("KButton"), T = U("KClipboardProvider"), P = U("KSkeleton"), J = U("KEmptyState"), Q = U("KCard");
|
|
2874
|
-
return
|
|
2870
|
+
return m(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
|
|
2875
2871
|
actions: h(() => [
|
|
2876
2872
|
R("div", as, [
|
|
2877
2873
|
Y(w.$slots, "actions", {}, void 0, !0),
|
|
2878
|
-
e.config.jsonYamlEnabled ? (
|
|
2874
|
+
e.config.jsonYamlEnabled ? (m(), V(B, {
|
|
2879
2875
|
key: 0,
|
|
2880
2876
|
class: "config-format-select-label",
|
|
2881
2877
|
"data-testid": "config-format-select-label"
|
|
@@ -2885,14 +2881,14 @@ const Di = {
|
|
|
2885
2881
|
]),
|
|
2886
2882
|
_: 1
|
|
2887
2883
|
})) : G("", !0),
|
|
2888
|
-
e.config.jsonYamlEnabled ? (
|
|
2884
|
+
e.config.jsonYamlEnabled ? (m(), V(k, {
|
|
2889
2885
|
key: 1,
|
|
2890
2886
|
appearance: "select",
|
|
2891
2887
|
"data-testid": "select-config-format",
|
|
2892
2888
|
items: c,
|
|
2893
2889
|
onChange: u
|
|
2894
2890
|
})) : G("", !0),
|
|
2895
|
-
r.config.jsonYamlEnabled && e.configCardDoc ? (
|
|
2891
|
+
r.config.jsonYamlEnabled && e.configCardDoc ? (m(), V(x, {
|
|
2896
2892
|
key: 2,
|
|
2897
2893
|
appearance: "btn-link",
|
|
2898
2894
|
class: "book-icon",
|
|
@@ -2909,9 +2905,9 @@ const Di = {
|
|
|
2909
2905
|
]),
|
|
2910
2906
|
_: 1
|
|
2911
2907
|
})) : G("", !0),
|
|
2912
|
-
e.config.jsonYamlEnabled ? G("", !0) : (
|
|
2908
|
+
e.config.jsonYamlEnabled ? G("", !0) : (m(), V(T, { key: 3 }, {
|
|
2913
2909
|
default: h(({ copyToClipboard: X }) => [
|
|
2914
|
-
!f.value && !
|
|
2910
|
+
!f.value && !A.value ? (m(), V(x, {
|
|
2915
2911
|
key: 0,
|
|
2916
2912
|
appearance: "btn-link",
|
|
2917
2913
|
"data-testid": "json-copy-button",
|
|
@@ -2928,12 +2924,12 @@ const Di = {
|
|
|
2928
2924
|
])
|
|
2929
2925
|
]),
|
|
2930
2926
|
body: h(() => [
|
|
2931
|
-
f.value ? (
|
|
2927
|
+
f.value ? (m(), V(P, {
|
|
2932
2928
|
key: 0,
|
|
2933
2929
|
"data-testid": "config-card-loader",
|
|
2934
2930
|
"table-columns": 2,
|
|
2935
2931
|
type: "table"
|
|
2936
|
-
})) :
|
|
2932
|
+
})) : A.value ? (m(), V(J, {
|
|
2937
2933
|
key: 1,
|
|
2938
2934
|
"data-testid": "config-card-fetch-error",
|
|
2939
2935
|
"is-error": ""
|
|
@@ -2943,10 +2939,10 @@ const Di = {
|
|
|
2943
2939
|
]),
|
|
2944
2940
|
_: 1
|
|
2945
2941
|
})) : G("", !0),
|
|
2946
|
-
e.config.jsonYamlEnabled ? (
|
|
2942
|
+
e.config.jsonYamlEnabled ? (m(), j("div", ss, [
|
|
2947
2943
|
K(Yi, {
|
|
2948
2944
|
format: d.value,
|
|
2949
|
-
"prop-list-types":
|
|
2945
|
+
"prop-list-types": I.value,
|
|
2950
2946
|
"property-collections": C.value,
|
|
2951
2947
|
record: p.value
|
|
2952
2948
|
}, Te({ _: 2 }, [
|
|
@@ -2960,14 +2956,14 @@ const Di = {
|
|
|
2960
2956
|
])
|
|
2961
2957
|
}))
|
|
2962
2958
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2963
|
-
])) : (
|
|
2964
|
-
(
|
|
2959
|
+
])) : (m(), j("div", ls, [
|
|
2960
|
+
(m(!0), j(ve, null, ye(I.value, (X) => (m(), j("div", {
|
|
2965
2961
|
key: `config-card-details-${X}-props`,
|
|
2966
2962
|
class: Ke(`config-card-details-${X}-props`),
|
|
2967
2963
|
"data-testid": `config-card-details-${X}-props`
|
|
2968
2964
|
}, [
|
|
2969
|
-
X !== "basic" ? (
|
|
2970
|
-
(
|
|
2965
|
+
X !== "basic" ? (m(), j("div", cs, F(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2966
|
+
(m(!0), j(ve, null, ye(C.value[X], (ee) => (m(), V(xt, {
|
|
2971
2967
|
key: ee.key,
|
|
2972
2968
|
item: ee
|
|
2973
2969
|
}, Te({
|
|
@@ -3064,15 +3060,15 @@ const Di = {
|
|
|
3064
3060
|
var t;
|
|
3065
3061
|
const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
|
|
3066
3062
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3067
|
-
}), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly),
|
|
3063
|
+
}), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), g = M(() => {
|
|
3068
3064
|
var p, S;
|
|
3069
3065
|
if (!r.editId)
|
|
3070
3066
|
return "";
|
|
3071
3067
|
let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3072
3068
|
return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
|
|
3073
3069
|
}), f = () => {
|
|
3074
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) :
|
|
3075
|
-
},
|
|
3070
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : A();
|
|
3071
|
+
}, A = () => {
|
|
3076
3072
|
n("cancel");
|
|
3077
3073
|
}, v = () => {
|
|
3078
3074
|
u.value || n("submit");
|
|
@@ -3083,7 +3079,7 @@ const Di = {
|
|
|
3083
3079
|
if (r.editId)
|
|
3084
3080
|
try {
|
|
3085
3081
|
c.value = !1, l.value = !0;
|
|
3086
|
-
const { data: p } = await s.get(
|
|
3082
|
+
const { data: p } = await s.get(g.value);
|
|
3087
3083
|
n("fetch:success", p);
|
|
3088
3084
|
} catch (p) {
|
|
3089
3085
|
const S = i(p);
|
|
@@ -3092,13 +3088,13 @@ const Di = {
|
|
|
3092
3088
|
l.value = !1;
|
|
3093
3089
|
}
|
|
3094
3090
|
}), (p, S) => {
|
|
3095
|
-
const b = U("KSkeleton"), C = U("KEmptyState"),
|
|
3096
|
-
return
|
|
3091
|
+
const b = U("KSkeleton"), C = U("KEmptyState"), I = U("KAlert"), ne = U("KButton"), pe = U("KCard");
|
|
3092
|
+
return m(), V(pe, { class: "kong-ui-entity-base-form" }, {
|
|
3097
3093
|
body: h(() => [
|
|
3098
|
-
l.value ? (
|
|
3094
|
+
l.value ? (m(), V(b, {
|
|
3099
3095
|
key: 0,
|
|
3100
3096
|
type: "form"
|
|
3101
|
-
})) : c.value ? (
|
|
3097
|
+
})) : c.value ? (m(), V(C, {
|
|
3102
3098
|
key: 1,
|
|
3103
3099
|
"cta-text": y(a)("baseForm.actions.back"),
|
|
3104
3100
|
"data-testid": "form-fetch-error",
|
|
@@ -3109,14 +3105,14 @@ const Di = {
|
|
|
3109
3105
|
R("h3", null, F(d.value), 1)
|
|
3110
3106
|
]),
|
|
3111
3107
|
_: 1
|
|
3112
|
-
}, 8, ["cta-text"])) : (
|
|
3108
|
+
}, 8, ["cta-text"])) : (m(), j("form", {
|
|
3113
3109
|
key: 2,
|
|
3114
3110
|
"data-testid": "form-content",
|
|
3115
|
-
onReset: rt(
|
|
3111
|
+
onReset: rt(A, ["prevent"]),
|
|
3116
3112
|
onSubmit: rt(v, ["prevent"])
|
|
3117
3113
|
}, [
|
|
3118
3114
|
Y(p.$slots, "default", {}, void 0, !0),
|
|
3119
|
-
e.errorMessage ? (
|
|
3115
|
+
e.errorMessage ? (m(), V(I, {
|
|
3120
3116
|
key: 0,
|
|
3121
3117
|
"alert-message": e.errorMessage,
|
|
3122
3118
|
appearance: "danger",
|
|
@@ -3187,8 +3183,8 @@ const Di = {
|
|
|
3187
3183
|
}, s = () => {
|
|
3188
3184
|
var v, p, S;
|
|
3189
3185
|
c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
|
|
3190
|
-
}, l = O({}), c = O(0), d = O(0), u = O(""),
|
|
3191
|
-
|
|
3186
|
+
}, l = O({}), c = O(0), d = O(0), u = O(""), g = M(() => [r.value, t.value]), f = xe(
|
|
3187
|
+
g,
|
|
3192
3188
|
(v) => {
|
|
3193
3189
|
if (o.value && (i(), "ResizeObserver" in window && window)) {
|
|
3194
3190
|
a = new ResizeObserver((p) => {
|
|
@@ -3201,21 +3197,21 @@ const Di = {
|
|
|
3201
3197
|
}
|
|
3202
3198
|
},
|
|
3203
3199
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3204
|
-
),
|
|
3200
|
+
), A = M(() => o.value ? c.value > d.value : !1);
|
|
3205
3201
|
return pr(() => {
|
|
3206
3202
|
s();
|
|
3207
3203
|
}), fr(() => {
|
|
3208
3204
|
f();
|
|
3209
3205
|
}), (v, p) => {
|
|
3210
3206
|
const S = U("KTooltip");
|
|
3211
|
-
return
|
|
3207
|
+
return m(), j("span", {
|
|
3212
3208
|
ref_key: "contentRef",
|
|
3213
3209
|
ref: l,
|
|
3214
3210
|
class: "content-wrapper"
|
|
3215
3211
|
}, [
|
|
3216
|
-
o.value ? (
|
|
3212
|
+
o.value ? (m(), j("span", hs, [
|
|
3217
3213
|
K(S, {
|
|
3218
|
-
label:
|
|
3214
|
+
label: A.value ? u.value : "",
|
|
3219
3215
|
"max-width": "300",
|
|
3220
3216
|
placement: "bottomStart"
|
|
3221
3217
|
}, {
|
|
@@ -3342,11 +3338,11 @@ const Di = {
|
|
|
3342
3338
|
setup(e, { emit: n }) {
|
|
3343
3339
|
const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = M(() => {
|
|
3344
3340
|
const C = [];
|
|
3345
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3346
|
-
const ne = t.tableHeaders[
|
|
3341
|
+
return Object.keys(t.tableHeaders).forEach((I) => {
|
|
3342
|
+
const ne = t.tableHeaders[I];
|
|
3347
3343
|
C.push({
|
|
3348
|
-
label: ne.label ??
|
|
3349
|
-
key:
|
|
3344
|
+
label: ne.label ?? I,
|
|
3345
|
+
key: I,
|
|
3350
3346
|
sortable: ne.sortable ?? !1
|
|
3351
3347
|
});
|
|
3352
3348
|
}), t.enableEntityActions && C.push({
|
|
@@ -3358,25 +3354,25 @@ const Di = {
|
|
|
3358
3354
|
"data-testid": C.name,
|
|
3359
3355
|
...t.rowAttributes(C)
|
|
3360
3356
|
}), l = O({}), c = (C) => {
|
|
3361
|
-
var
|
|
3362
|
-
return (
|
|
3357
|
+
var I;
|
|
3358
|
+
return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${C.id}"]`);
|
|
3363
3359
|
}, d = (C) => {
|
|
3364
|
-
const
|
|
3360
|
+
const I = {
|
|
3365
3361
|
"data-testid": C.headerKey,
|
|
3366
3362
|
...t.cellAttributes(C)
|
|
3367
3363
|
};
|
|
3368
|
-
return C.colIndex === 0 && (
|
|
3364
|
+
return C.colIndex === 0 && (I.style = {
|
|
3369
3365
|
maxWidth: "250px",
|
|
3370
3366
|
overflowX: "hidden",
|
|
3371
3367
|
textOverflow: "ellipsis"
|
|
3372
|
-
}),
|
|
3368
|
+
}), I;
|
|
3373
3369
|
}, u = () => {
|
|
3374
|
-
n("empty-state-cta-clicked"),
|
|
3375
|
-
},
|
|
3370
|
+
n("empty-state-cta-clicked"), g();
|
|
3371
|
+
}, g = () => {
|
|
3376
3372
|
n("clear-search-input");
|
|
3377
|
-
}, f = M(() => t.disableRowClick ? void 0 : (C,
|
|
3378
|
-
n("click:row",
|
|
3379
|
-
}),
|
|
3373
|
+
}, f = M(() => t.disableRowClick ? void 0 : (C, I) => {
|
|
3374
|
+
n("click:row", I);
|
|
3375
|
+
}), A = (C) => {
|
|
3380
3376
|
n("sort", C);
|
|
3381
3377
|
}, { setTablePreferences: v, getTablePreferences: p } = Ar(), S = M(() => {
|
|
3382
3378
|
const C = p(t.preferencesStorageKey);
|
|
@@ -3387,9 +3383,9 @@ const Di = {
|
|
|
3387
3383
|
}), b = (C) => {
|
|
3388
3384
|
t.preferencesStorageKey && v(t.preferencesStorageKey, C);
|
|
3389
3385
|
};
|
|
3390
|
-
return (C,
|
|
3386
|
+
return (C, I) => {
|
|
3391
3387
|
const ne = U("KIcon"), pe = U("KButton"), H = U("KDropdownMenu"), w = U("KTable"), N = U("KCard");
|
|
3392
|
-
return
|
|
3388
|
+
return m(), V(N, {
|
|
3393
3389
|
class: "kong-ui-entity-base-table",
|
|
3394
3390
|
title: e.title
|
|
3395
3391
|
}, {
|
|
@@ -3422,13 +3418,13 @@ const Di = {
|
|
|
3422
3418
|
"search-input": e.query,
|
|
3423
3419
|
onKtableEmptyStateCtaClicked: u,
|
|
3424
3420
|
"onRow:click": f.value,
|
|
3425
|
-
onSort:
|
|
3421
|
+
onSort: I[0] || (I[0] = (B) => A(B)),
|
|
3426
3422
|
"onUpdate:tablePreferences": b
|
|
3427
3423
|
}, Te({
|
|
3428
3424
|
toolbar: h(({ state: B }) => [
|
|
3429
3425
|
et(R("div", Cs, [
|
|
3430
3426
|
Y(C.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3431
|
-
C.$slots["toolbar-button"] ? (
|
|
3427
|
+
C.$slots["toolbar-button"] ? (m(), j("div", ks, [
|
|
3432
3428
|
Y(C.$slots, "toolbar-button", {}, void 0, !0)
|
|
3433
3429
|
])) : G("", !0)
|
|
3434
3430
|
], 512), [
|
|
@@ -3551,7 +3547,7 @@ const Di = {
|
|
|
3551
3547
|
};
|
|
3552
3548
|
return (s, l) => {
|
|
3553
3549
|
const c = U("KAlert"), d = U("KPrompt");
|
|
3554
|
-
return
|
|
3550
|
+
return m(), V(d, {
|
|
3555
3551
|
"action-button-text": "Yes, delete",
|
|
3556
3552
|
"action-pending": e.actionPending,
|
|
3557
3553
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -3563,7 +3559,7 @@ const Di = {
|
|
|
3563
3559
|
onProceed: i
|
|
3564
3560
|
}, {
|
|
3565
3561
|
"body-content": h(() => [
|
|
3566
|
-
e.error ? (
|
|
3562
|
+
e.error ? (m(), j("div", As, [
|
|
3567
3563
|
K(c, { appearance: "danger" }, {
|
|
3568
3564
|
alertMessage: h(() => [
|
|
3569
3565
|
Z(F(e.error), 1)
|
|
@@ -3589,7 +3585,7 @@ const Di = {
|
|
|
3589
3585
|
key: "0"
|
|
3590
3586
|
} : void 0
|
|
3591
3587
|
]), 1032, ["keypath"]),
|
|
3592
|
-
t.description || s.$slots.description ? (
|
|
3588
|
+
t.description || s.$slots.description ? (m(), j("div", Ss, [
|
|
3593
3589
|
Y(s.$slots, "description", {}, () => [
|
|
3594
3590
|
R("p", null, F(t.description), 1)
|
|
3595
3591
|
], !0)
|
|
@@ -3622,7 +3618,7 @@ const Di = {
|
|
|
3622
3618
|
}
|
|
3623
3619
|
},
|
|
3624
3620
|
setup(e) {
|
|
3625
|
-
return (n, t) => (
|
|
3621
|
+
return (n, t) => (m(), j("svg", $s, [
|
|
3626
3622
|
R("mask", Ms, [
|
|
3627
3623
|
R("rect", {
|
|
3628
3624
|
fill: e.color,
|
|
@@ -3688,7 +3684,7 @@ const Di = {
|
|
|
3688
3684
|
value: C,
|
|
3689
3685
|
label: C
|
|
3690
3686
|
}));
|
|
3691
|
-
},
|
|
3687
|
+
}, g = (p) => {
|
|
3692
3688
|
var S, b;
|
|
3693
3689
|
return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
|
|
3694
3690
|
}, f = (p) => {
|
|
@@ -3696,15 +3692,15 @@ const Di = {
|
|
|
3696
3692
|
...a.value,
|
|
3697
3693
|
[p]: ""
|
|
3698
3694
|
}, v();
|
|
3699
|
-
},
|
|
3695
|
+
}, A = () => {
|
|
3700
3696
|
a.value = {}, v(!0);
|
|
3701
3697
|
}, v = (p = !1) => {
|
|
3702
3698
|
const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
|
|
3703
3699
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3704
3700
|
};
|
|
3705
3701
|
return (p, S) => {
|
|
3706
|
-
const b = U("KInput"), C = U("KButton"),
|
|
3707
|
-
return e.config.isExactMatch ? (
|
|
3702
|
+
const b = U("KInput"), C = U("KButton"), I = U("KSelect"), ne = U("KMenuItem"), pe = U("KMenu");
|
|
3703
|
+
return e.config.isExactMatch ? (m(), V(b, {
|
|
3708
3704
|
key: 0,
|
|
3709
3705
|
autocomplete: "off",
|
|
3710
3706
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3717,7 +3713,7 @@ const Di = {
|
|
|
3717
3713
|
K(Fs)
|
|
3718
3714
|
]),
|
|
3719
3715
|
_: 1
|
|
3720
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
3716
|
+
}, 8, ["model-value", "placeholder"])) : (m(), j("div", Ks, [
|
|
3721
3717
|
K(C, {
|
|
3722
3718
|
appearance: "btn-link",
|
|
3723
3719
|
"data-testid": "filter-button",
|
|
@@ -3737,7 +3733,7 @@ const Di = {
|
|
|
3737
3733
|
]),
|
|
3738
3734
|
et(K(pe, { class: "kong-ui-entity-filter-menu" }, {
|
|
3739
3735
|
body: h(() => [
|
|
3740
|
-
(
|
|
3736
|
+
(m(!0), j(ve, null, ye(s.value, (H, w) => (m(), V(ne, {
|
|
3741
3737
|
key: H.value,
|
|
3742
3738
|
"data-testid": H.value,
|
|
3743
3739
|
expandable: "",
|
|
@@ -3759,7 +3755,7 @@ const Di = {
|
|
|
3759
3755
|
class: "menu-item-label",
|
|
3760
3756
|
for: d(H.value)
|
|
3761
3757
|
}, F(y(r)("filter.fieldLabel")), 9, Ls),
|
|
3762
|
-
((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (
|
|
3758
|
+
((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (m(), V(I, {
|
|
3763
3759
|
key: 0,
|
|
3764
3760
|
id: d(H.value),
|
|
3765
3761
|
modelValue: a.value[H.value],
|
|
@@ -3767,7 +3763,7 @@ const Di = {
|
|
|
3767
3763
|
appearance: "select",
|
|
3768
3764
|
items: u(H.value),
|
|
3769
3765
|
placeholder: y(r)("filter.selectPlaceholder")
|
|
3770
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
3766
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), V(b, {
|
|
3771
3767
|
key: 1,
|
|
3772
3768
|
id: d(H.value),
|
|
3773
3769
|
modelValue: a.value[H.value],
|
|
@@ -3775,7 +3771,7 @@ const Di = {
|
|
|
3775
3771
|
autocomplete: "off",
|
|
3776
3772
|
placeholder: y(r)("filter.inputPlaceholder"),
|
|
3777
3773
|
size: "small",
|
|
3778
|
-
type:
|
|
3774
|
+
type: g(H.value)
|
|
3779
3775
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3780
3776
|
]),
|
|
3781
3777
|
R("div", Us, [
|
|
@@ -3808,7 +3804,7 @@ const Di = {
|
|
|
3808
3804
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3809
3805
|
]),
|
|
3810
3806
|
actionButton: h(() => [
|
|
3811
|
-
K(C, { onClick:
|
|
3807
|
+
K(C, { onClick: A }, {
|
|
3812
3808
|
default: h(() => [
|
|
3813
3809
|
Z(F(y(r)("filter.clearAllButtonText")), 1)
|
|
3814
3810
|
]),
|
|
@@ -3887,21 +3883,21 @@ const Di = {
|
|
|
3887
3883
|
},
|
|
3888
3884
|
setup(e) {
|
|
3889
3885
|
const n = ut();
|
|
3890
|
-
return (t, r) => (
|
|
3886
|
+
return (t, r) => (m(), j("fieldset", {
|
|
3891
3887
|
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3892
3888
|
}, [
|
|
3893
3889
|
R("div", Vs, [
|
|
3894
|
-
e.hideInfoHeader ? G("", !0) : (
|
|
3890
|
+
e.hideInfoHeader ? G("", !0) : (m(), j("div", {
|
|
3895
3891
|
key: 0,
|
|
3896
3892
|
class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3897
3893
|
}, [
|
|
3898
|
-
e.title ? (
|
|
3899
|
-
e.description || y(n).description ? (
|
|
3894
|
+
e.title ? (m(), j("h4", Ds, F(e.title), 1)) : G("", !0),
|
|
3895
|
+
e.description || y(n).description ? (m(), j("div", Gs, [
|
|
3900
3896
|
Y(t.$slots, "description", {}, () => [
|
|
3901
3897
|
R("p", null, F(e.description), 1)
|
|
3902
3898
|
], !0)
|
|
3903
3899
|
])) : G("", !0),
|
|
3904
|
-
y(n).footer ? (
|
|
3900
|
+
y(n).footer ? (m(), j("div", Hs, [
|
|
3905
3901
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
3906
3902
|
])) : G("", !0)
|
|
3907
3903
|
], 2)),
|
|
@@ -3950,7 +3946,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3950
3946
|
fetchedItemsKey: "data",
|
|
3951
3947
|
searchKeys: ["name", "id"]
|
|
3952
3948
|
}
|
|
3953
|
-
),
|
|
3949
|
+
), g = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), A = M(() => l.value === void 0), v = M(() => u.value.map((k) => ({
|
|
3954
3950
|
label: k.name,
|
|
3955
3951
|
value: k.id,
|
|
3956
3952
|
selected: a.value.includes(k.id),
|
|
@@ -3958,16 +3954,16 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3958
3954
|
// we need this to determine whether or not to show the description text
|
|
3959
3955
|
}))), p = (k) => {
|
|
3960
3956
|
var T;
|
|
3961
|
-
const x =
|
|
3957
|
+
const x = A.value ? u.value.find((P) => P.id === k) : (T = l.value) == null ? void 0 : T.find((P) => P.id === k);
|
|
3962
3958
|
return x ? x.name : k;
|
|
3963
3959
|
}, S = () => {
|
|
3964
|
-
|
|
3965
|
-
}, b = O([]), C = O(!1),
|
|
3960
|
+
I.value = "", b.value = [], w.value = [], n("cancel");
|
|
3961
|
+
}, b = O([]), C = O(!1), I = O(""), ne = async () => {
|
|
3966
3962
|
if (!a.value.length) {
|
|
3967
|
-
|
|
3963
|
+
I.value = "", w.value = [], n("cancel");
|
|
3968
3964
|
return;
|
|
3969
3965
|
}
|
|
3970
|
-
C.value = !0,
|
|
3966
|
+
C.value = !0, I.value = "", b.value = [], w.value = [];
|
|
3971
3967
|
try {
|
|
3972
3968
|
const k = a.value.map((P) => H(P)), x = await Promise.allSettled(k);
|
|
3973
3969
|
let T = !0;
|
|
@@ -3975,7 +3971,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3975
3971
|
P.status !== "fulfilled" && (T = !1);
|
|
3976
3972
|
}), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
|
|
3977
3973
|
} catch {
|
|
3978
|
-
|
|
3974
|
+
I.value = r("consumer_groups.errors.add"), n("error", I.value);
|
|
3979
3975
|
} finally {
|
|
3980
3976
|
C.value = !1;
|
|
3981
3977
|
}
|
|
@@ -4006,7 +4002,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4006
4002
|
await d();
|
|
4007
4003
|
}), (k, x) => {
|
|
4008
4004
|
const T = U("KMultiselect"), P = U("KAlert"), J = U("KPrompt");
|
|
4009
|
-
return
|
|
4005
|
+
return m(), V(J, {
|
|
4010
4006
|
"action-pending": C.value,
|
|
4011
4007
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
4012
4008
|
"data-testid": "add-to-group-modal",
|
|
@@ -4023,7 +4019,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4023
4019
|
"onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
|
|
4024
4020
|
autosuggest: "",
|
|
4025
4021
|
"data-testid": "add-to-groups-multiselect",
|
|
4026
|
-
"dropdown-footer-text":
|
|
4022
|
+
"dropdown-footer-text": A.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
4027
4023
|
items: v.value,
|
|
4028
4024
|
label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
4029
4025
|
loading: y(s),
|
|
@@ -4033,14 +4029,14 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4033
4029
|
width: "100%",
|
|
4034
4030
|
onQueryChange: y(i)
|
|
4035
4031
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4036
|
-
|
|
4032
|
+
I.value || g.value || w.value.length ? (m(), j("div", el, [
|
|
4037
4033
|
K(P, { appearance: "danger" }, {
|
|
4038
4034
|
alertMessage: h(() => [
|
|
4039
4035
|
R("p", null, F(y(r)("consumer_groups.errors.add")), 1),
|
|
4040
|
-
w.value.length ? (
|
|
4041
|
-
(
|
|
4036
|
+
w.value.length ? (m(), j("ul", tl, [
|
|
4037
|
+
(m(!0), j(ve, null, ye(w.value, (Q, X) => (m(), j("li", { key: X }, F(Q), 1))), 128))
|
|
4042
4038
|
])) : G("", !0),
|
|
4043
|
-
R("div", null, F(
|
|
4039
|
+
R("div", null, F(I.value || g.value), 1)
|
|
4044
4040
|
]),
|
|
4045
4041
|
_: 1
|
|
4046
4042
|
})
|
|
@@ -4105,13 +4101,13 @@ const Kt = (e, n) => {
|
|
|
4105
4101
|
name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4106
4102
|
};
|
|
4107
4103
|
t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4108
|
-
const u = d,
|
|
4104
|
+
const u = d, g = (E) => ({
|
|
4109
4105
|
"data-testid": E.username ?? E.custom_id ?? E.id
|
|
4110
4106
|
}), f = M(() => {
|
|
4111
4107
|
var z, le, Ce, Ee;
|
|
4112
4108
|
let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4113
4109
|
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
|
|
4114
|
-
}),
|
|
4110
|
+
}), A = O(""), v = M(() => {
|
|
4115
4111
|
const E = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4116
4112
|
return E ? {
|
|
4117
4113
|
isExactMatch: E,
|
|
@@ -4128,8 +4124,8 @@ const Kt = (e, n) => {
|
|
|
4128
4124
|
schema: t.config.filterSchema
|
|
4129
4125
|
};
|
|
4130
4126
|
}), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = Zs(t.config, f.value, p.value), C = () => {
|
|
4131
|
-
|
|
4132
|
-
},
|
|
4127
|
+
A.value = "";
|
|
4128
|
+
}, I = () => {
|
|
4133
4129
|
s.value++;
|
|
4134
4130
|
}, ne = O(""), pe = (E, z) => {
|
|
4135
4131
|
const le = E.id;
|
|
@@ -4230,7 +4226,7 @@ const Kt = (e, n) => {
|
|
|
4230
4226
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4231
4227
|
}), (E, z) => {
|
|
4232
4228
|
const le = U("KButton"), Ce = U("KBadge"), Ee = U("KTruncate"), Ge = U("KDropdownItem"), Bt = U("KClipboardProvider"), sr = U("KPrompt");
|
|
4233
|
-
return
|
|
4229
|
+
return m(), j("div", ol, [
|
|
4234
4230
|
K(y(Is), {
|
|
4235
4231
|
"cache-identifier": e.cacheIdentifier,
|
|
4236
4232
|
"disable-pagination": l.value,
|
|
@@ -4243,19 +4239,19 @@ const Kt = (e, n) => {
|
|
|
4243
4239
|
"fetcher-cache-key": s.value,
|
|
4244
4240
|
"pagination-type": "offset",
|
|
4245
4241
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4246
|
-
query:
|
|
4247
|
-
"row-attributes":
|
|
4242
|
+
query: A.value,
|
|
4243
|
+
"row-attributes": g,
|
|
4248
4244
|
"table-headers": y(u),
|
|
4249
4245
|
onClearSearchInput: C,
|
|
4250
4246
|
"onClick:row": z[3] || (z[3] = (W) => w(W)),
|
|
4251
4247
|
onEmptyStateCtaClicked: re,
|
|
4252
|
-
onSort:
|
|
4248
|
+
onSort: I
|
|
4253
4249
|
}, {
|
|
4254
4250
|
"toolbar-filter": h(() => [
|
|
4255
|
-
l.value ? G("", !0) : (
|
|
4251
|
+
l.value ? G("", !0) : (m(), V(y(Rs), {
|
|
4256
4252
|
key: 0,
|
|
4257
|
-
modelValue:
|
|
4258
|
-
"onUpdate:modelValue": z[0] || (z[0] = (W) =>
|
|
4253
|
+
modelValue: A.value,
|
|
4254
|
+
"onUpdate:modelValue": z[0] || (z[0] = (W) => A.value = W),
|
|
4259
4255
|
config: v.value
|
|
4260
4256
|
}, null, 8, ["modelValue", "config"]))
|
|
4261
4257
|
]),
|
|
@@ -4287,9 +4283,9 @@ const Kt = (e, n) => {
|
|
|
4287
4283
|
Z(F(W ?? "-"), 1)
|
|
4288
4284
|
]),
|
|
4289
4285
|
tags: h(({ rowValue: W }) => [
|
|
4290
|
-
(W == null ? void 0 : W.length) > 0 ? (
|
|
4286
|
+
(W == null ? void 0 : W.length) > 0 ? (m(), V(Ee, { key: 0 }, {
|
|
4291
4287
|
default: h(() => [
|
|
4292
|
-
(
|
|
4288
|
+
(m(!0), j(ve, null, ye(W, (Be) => (m(), V(Ce, {
|
|
4293
4289
|
key: Be,
|
|
4294
4290
|
onClick: z[2] || (z[2] = rt(() => {
|
|
4295
4291
|
}, ["stop"]))
|
|
@@ -4301,7 +4297,7 @@ const Kt = (e, n) => {
|
|
|
4301
4297
|
}, 1024))), 128))
|
|
4302
4298
|
]),
|
|
4303
4299
|
_: 2
|
|
4304
|
-
}, 1024)) : (
|
|
4300
|
+
}, 1024)) : (m(), j("span", al, "-"))
|
|
4305
4301
|
]),
|
|
4306
4302
|
actions: h(({ row: W }) => [
|
|
4307
4303
|
K(Bt, null, {
|
|
@@ -4388,7 +4384,7 @@ const Kt = (e, n) => {
|
|
|
4388
4384
|
onCancel: X,
|
|
4389
4385
|
onProceed: ee
|
|
4390
4386
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4391
|
-
e.config.consumerId ? (
|
|
4387
|
+
e.config.consumerId ? (m(), V(rl, {
|
|
4392
4388
|
key: 0,
|
|
4393
4389
|
config: e.config,
|
|
4394
4390
|
"data-testid": "add-to-group-modal",
|
|
@@ -4397,7 +4393,7 @@ const Kt = (e, n) => {
|
|
|
4397
4393
|
"onAdd:success": z[5] || (z[5] = (W) => L(W)),
|
|
4398
4394
|
onCancel: _
|
|
4399
4395
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4400
|
-
e.config.consumerId && q.value ? (
|
|
4396
|
+
e.config.consumerId && q.value ? (m(), V(sr, {
|
|
4401
4397
|
key: 1,
|
|
4402
4398
|
"data-testid": "exit-group-modal",
|
|
4403
4399
|
"is-visible": D.value,
|
|
@@ -4476,9 +4472,9 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4476
4472
|
} = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
|
|
4477
4473
|
fetchedItemsKey: "data",
|
|
4478
4474
|
searchKeys: ["username", "custom_id", "id"]
|
|
4479
|
-
}), { axiosInstance:
|
|
4475
|
+
}), { axiosInstance: g } = Ft({
|
|
4480
4476
|
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4481
|
-
}), { getMessageFromError: f } = Ys(),
|
|
4477
|
+
}), { getMessageFromError: f } = Ys(), A = M(() => u.value.map((_) => ({
|
|
4482
4478
|
label: _.username || _.custom_id,
|
|
4483
4479
|
value: _.id,
|
|
4484
4480
|
selected: a.fields.consumers.includes(_.id),
|
|
@@ -4491,7 +4487,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4491
4487
|
var D, ge, _e, ce, Ne, De;
|
|
4492
4488
|
let q = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
|
|
4493
4489
|
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
|
|
4494
|
-
},
|
|
4490
|
+
}, I = () => {
|
|
4495
4491
|
var _;
|
|
4496
4492
|
o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
|
|
4497
4493
|
}, ne = (_) => {
|
|
@@ -4506,7 +4502,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4506
4502
|
a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4507
4503
|
else
|
|
4508
4504
|
try {
|
|
4509
|
-
const { data: ce } = await
|
|
4505
|
+
const { data: ce } = await g.get(C("getConsumers"));
|
|
4510
4506
|
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
|
|
4511
4507
|
} catch (ce) {
|
|
4512
4508
|
x(ce);
|
|
@@ -4518,7 +4514,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4518
4514
|
name: a.fields.name,
|
|
4519
4515
|
tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
|
|
4520
4516
|
};
|
|
4521
|
-
}, B = async (_, L = "") => await
|
|
4517
|
+
}, B = async (_, L = "") => await g.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await g.delete(C("removeConsumer", L, _)), x = (_) => {
|
|
4522
4518
|
a.errorMessage = f(_), n("error", _);
|
|
4523
4519
|
}, T = (_ = t.consumerGroupId) => {
|
|
4524
4520
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
|
|
@@ -4531,7 +4527,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4531
4527
|
}, J = async () => {
|
|
4532
4528
|
let _ = "";
|
|
4533
4529
|
try {
|
|
4534
|
-
const { data: L } = await
|
|
4530
|
+
const { data: L } = await g.post(C("create"), N());
|
|
4535
4531
|
_ = "item" in L ? L.item.id : L.id;
|
|
4536
4532
|
} catch (L) {
|
|
4537
4533
|
x(L);
|
|
@@ -4548,7 +4544,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4548
4544
|
}, Q = async () => {
|
|
4549
4545
|
var re;
|
|
4550
4546
|
try {
|
|
4551
|
-
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await
|
|
4547
|
+
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(C("edit"), N()) : await g.patch(C("edit"), N());
|
|
4552
4548
|
} catch (q) {
|
|
4553
4549
|
x(q);
|
|
4554
4550
|
}
|
|
@@ -4582,7 +4578,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4582
4578
|
await d();
|
|
4583
4579
|
}), (_, L) => {
|
|
4584
4580
|
const re = U("KInput"), q = U("KMultiselect");
|
|
4585
|
-
return
|
|
4581
|
+
return m(), j("div", sl, [
|
|
4586
4582
|
K(y(ys), {
|
|
4587
4583
|
"can-submit": S.value && b.value,
|
|
4588
4584
|
config: e.config,
|
|
@@ -4590,7 +4586,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4590
4586
|
"error-message": a.errorMessage || y(c) || w.value,
|
|
4591
4587
|
"fetch-url": v.value,
|
|
4592
4588
|
"is-readonly": a.readonly,
|
|
4593
|
-
onCancel:
|
|
4589
|
+
onCancel: I,
|
|
4594
4590
|
"onFetch:error": L[3] || (L[3] = (D) => ne(D)),
|
|
4595
4591
|
"onFetch:success": H,
|
|
4596
4592
|
onLoading: L[4] || (L[4] = (D) => pe(D)),
|
|
@@ -4643,7 +4639,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4643
4639
|
appearance: "select",
|
|
4644
4640
|
autosuggest: "",
|
|
4645
4641
|
"expand-selected": "",
|
|
4646
|
-
items:
|
|
4642
|
+
items: A.value,
|
|
4647
4643
|
label: y(r)("consumer_groups.form.fields.consumers.label"),
|
|
4648
4644
|
loading: y(l),
|
|
4649
4645
|
placeholder: y(r)("consumer_groups.form.fields.consumers.placeholder"),
|
|
@@ -4654,7 +4650,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4654
4650
|
var ge, _e, ce;
|
|
4655
4651
|
return [
|
|
4656
4652
|
R("div", ll, F(D.label), 1),
|
|
4657
|
-
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (
|
|
4653
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div", ul, F((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4658
4654
|
];
|
|
4659
4655
|
}),
|
|
4660
4656
|
_: 1
|
|
@@ -4705,7 +4701,7 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4705
4701
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4706
4702
|
}
|
|
4707
4703
|
});
|
|
4708
|
-
return (a, i) => (
|
|
4704
|
+
return (a, i) => (m(), j("div", dl, [
|
|
4709
4705
|
K(y(ps), {
|
|
4710
4706
|
config: e.config,
|
|
4711
4707
|
"config-card-doc": e.configCardDoc,
|