@kong-ui-public/entities-shared 3.3.11 → 3.3.12-pr.1475.99d1e6ea.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 +220 -218
- package/dist/entities-shared.umd.js +6 -6
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -1
- package/dist/types/types/base.d.ts +2 -5
- package/dist/types/types/base.d.ts.map +1 -1
- package/dist/types/types/entity-base-table.d.ts +1 -0
- package/dist/types/types/entity-base-table.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as $n, ref as R, unref as T, computed as k, watch as Ae, defineComponent as P, openBlock as m, createBlock as M, resolveDynamicComponent as se, normalizeClass as fe, withCtx as b, createElementBlock as
|
|
1
|
+
import { inject as $n, ref as R, unref as T, computed as k, watch as Ae, defineComponent as P, openBlock as m, createBlock as M, resolveDynamicComponent as se, normalizeClass as fe, withCtx as b, createElementBlock as I, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as ce, renderList as oe, resolveComponent as K, createVNode as B, createTextVNode as V, useCssVars as Ot, useSlots as Xe, renderSlot as z, createSlots as _e, normalizeProps as Fn, guardReactiveProps as On, mergeProps as Ln, normalizeStyle as Se, pushScopeId as Ie, popScopeId as Ee, onBeforeMount as Lt, withModifiers as Ye, onMounted as Nn, onUnmounted as Bn, withDirectives as me, vShow as ge, withKeys as Rn, Teleport as Mn } from "vue";
|
|
2
2
|
import st from "axios";
|
|
3
3
|
import { createI18n as Kn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Un } from "@kong/kongponents";
|
|
@@ -250,7 +250,7 @@ function ar(e, t, n, r = {
|
|
|
250
250
|
}) {
|
|
251
251
|
n || (n = "1000");
|
|
252
252
|
const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (h) => {
|
|
253
|
-
await
|
|
253
|
+
await W(h);
|
|
254
254
|
}, 200), s = R(!1), u = R(""), d = R(""), c = R([]), g = R([]), p = R(void 0), y = T(t);
|
|
255
255
|
let v = `${e.apiBaseUrl}${y}`;
|
|
256
256
|
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}` : ""));
|
|
@@ -264,8 +264,8 @@ function ar(e, t, n, r = {
|
|
|
264
264
|
} finally {
|
|
265
265
|
s.value = !1;
|
|
266
266
|
}
|
|
267
|
-
}, w = R(""),
|
|
268
|
-
var
|
|
267
|
+
}, w = R(""), W = async (h) => {
|
|
268
|
+
var E, f, A;
|
|
269
269
|
if (w.value !== h)
|
|
270
270
|
if (w.value = h || "", p.value === void 0)
|
|
271
271
|
try {
|
|
@@ -281,14 +281,14 @@ function ar(e, t, n, r = {
|
|
|
281
281
|
return [$[r.fetchedItemsKey] ?? $];
|
|
282
282
|
})()) : F.push(
|
|
283
283
|
...r.searchKeys.filter(($) => $ !== "id").map(async ($) => {
|
|
284
|
-
const { data:
|
|
285
|
-
return
|
|
284
|
+
const { data: S } = await i.get(`${v}?${$}=${h}`);
|
|
285
|
+
return S[r.fetchedItemsKey];
|
|
286
286
|
})
|
|
287
287
|
);
|
|
288
288
|
const x = await Promise.all(F), U = /* @__PURE__ */ new Set();
|
|
289
|
-
c.value = [], (
|
|
290
|
-
var
|
|
291
|
-
(
|
|
289
|
+
c.value = [], (E = x == null ? void 0 : x.forEach) == null || E.call(x, ($) => {
|
|
290
|
+
var S;
|
|
291
|
+
(S = $ == null ? void 0 : $.forEach) == null || S.call($, (q) => {
|
|
292
292
|
U.has(q.id) || (U.add(q.id), c.value.push(q));
|
|
293
293
|
});
|
|
294
294
|
});
|
|
@@ -300,12 +300,12 @@ function ar(e, t, n, r = {
|
|
|
300
300
|
s.value = !1;
|
|
301
301
|
}
|
|
302
302
|
else
|
|
303
|
-
s.value = !0, d.value = "", h ? (c.value = (
|
|
303
|
+
s.value = !0, d.value = "", h ? (c.value = (A = p.value) == null ? void 0 : A.filter((F) => {
|
|
304
304
|
var U;
|
|
305
305
|
let x = !1;
|
|
306
306
|
for (const $ of r.searchKeys) {
|
|
307
|
-
const
|
|
308
|
-
|
|
307
|
+
const S = typeof F[$] == "string" ? (U = F[$]) == null ? void 0 : U.toLowerCase() : F[$];
|
|
308
|
+
S != null && S.includes(h.toLowerCase()) && (x = !0);
|
|
309
309
|
}
|
|
310
310
|
return x;
|
|
311
311
|
}), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = p.value, s.value = !1;
|
|
@@ -552,10 +552,10 @@ const Y = {
|
|
|
552
552
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
553
553
|
}, {
|
|
554
554
|
default: b(() => [
|
|
555
|
-
e.isArrayItem ? (m(),
|
|
555
|
+
e.isArrayItem ? (m(), I("legend", br, [
|
|
556
556
|
L("b", null, O(l.value), 1)
|
|
557
557
|
])) : D("", !0),
|
|
558
|
-
(m(!0),
|
|
558
|
+
(m(!0), I(ce, null, oe(Object.keys(o.value), (d, c) => (m(), M(Dt, {
|
|
559
559
|
key: `${i.value}-property-${c}`,
|
|
560
560
|
item: {
|
|
561
561
|
key: d,
|
|
@@ -585,7 +585,7 @@ const Y = {
|
|
|
585
585
|
const { i18n: { t } } = Y.useI18n();
|
|
586
586
|
return (n, r) => {
|
|
587
587
|
const i = K("KButton");
|
|
588
|
-
return m(),
|
|
588
|
+
return m(), I("div", null, [
|
|
589
589
|
B(i, {
|
|
590
590
|
appearance: "tertiary",
|
|
591
591
|
class: "navigation-button",
|
|
@@ -762,8 +762,8 @@ const Y = {
|
|
|
762
762
|
}
|
|
763
763
|
}), g = R(), { isTruncated: p } = Y.useTruncationDetector(g);
|
|
764
764
|
return (y, v) => {
|
|
765
|
-
const _ = K("KLabel"), N = K("KBadge"), w = K("KCopy"),
|
|
766
|
-
return m(),
|
|
765
|
+
const _ = K("KLabel"), N = K("KBadge"), w = K("KCopy"), W = K("KTooltip");
|
|
766
|
+
return m(), I("div", Fr, [
|
|
767
767
|
L("div", {
|
|
768
768
|
class: "config-card-details-label",
|
|
769
769
|
"data-testid": `${e.item.key}-label`
|
|
@@ -798,17 +798,17 @@ const Y = {
|
|
|
798
798
|
z(y.$slots, e.item.key, {
|
|
799
799
|
rowValue: e.item.value
|
|
800
800
|
}, () => [
|
|
801
|
-
l.value ? (m(),
|
|
801
|
+
l.value ? (m(), I("div", Rr, [
|
|
802
802
|
(m(), M(se(c.value.tag), Fn(On(c.value.attrs)), {
|
|
803
803
|
default: b(() => [
|
|
804
|
-
c.value.additionalComponent === "KBadge" ? (m(),
|
|
804
|
+
c.value.additionalComponent === "KBadge" ? (m(), I("div", {
|
|
805
805
|
key: 0,
|
|
806
806
|
"data-testid": `${e.item.key}-badge-tags`
|
|
807
807
|
}, [
|
|
808
|
-
(m(!0),
|
|
809
|
-
key: `${e.item.key}-badge-tag-${
|
|
808
|
+
(m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(N, {
|
|
809
|
+
key: `${e.item.key}-badge-tag-${E}`,
|
|
810
810
|
class: "config-badge",
|
|
811
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
811
|
+
"data-testid": `${e.item.key}-badge-tag-${E}`,
|
|
812
812
|
tooltip: h,
|
|
813
813
|
"truncation-tooltip": ""
|
|
814
814
|
}, {
|
|
@@ -818,26 +818,26 @@ const Y = {
|
|
|
818
818
|
_: 2
|
|
819
819
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
820
820
|
], 8, Mr)) : D("", !0),
|
|
821
|
-
c.value.additionalComponent === "KCopy" ? (m(),
|
|
821
|
+
c.value.additionalComponent === "KCopy" ? (m(), I("div", {
|
|
822
822
|
key: 1,
|
|
823
823
|
class: "copy-uuid-array",
|
|
824
824
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
825
825
|
}, [
|
|
826
|
-
(m(!0),
|
|
827
|
-
key: `${e.item.key}-copy-uuid-${
|
|
828
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
826
|
+
(m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(w, Ln({ ref_for: !0 }, c.value.childAttrs, {
|
|
827
|
+
key: `${e.item.key}-copy-uuid-${E}`,
|
|
828
|
+
"data-testid": `${e.item.key}-copy-uuid-${E}`,
|
|
829
829
|
text: h
|
|
830
830
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
831
|
-
], 8, Kr)) : c.value.additionalComponent === "KMethodBadge" ? (m(),
|
|
831
|
+
], 8, Kr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), I("div", {
|
|
832
832
|
key: 2,
|
|
833
833
|
class: "method-badge-array",
|
|
834
834
|
"data-testid": `${e.item.key}-badge-methods`
|
|
835
835
|
}, [
|
|
836
|
-
(m(!0),
|
|
837
|
-
key: `${e.item.key}-badge-method-${
|
|
836
|
+
(m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(N, {
|
|
837
|
+
key: `${e.item.key}-badge-method-${E}`,
|
|
838
838
|
appearance: Object.values(T(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
839
839
|
class: "config-badge",
|
|
840
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
840
|
+
"data-testid": `${e.item.key}-badge-method-${E}`
|
|
841
841
|
}, {
|
|
842
842
|
default: b(() => [
|
|
843
843
|
V(O(h), 1)
|
|
@@ -845,17 +845,17 @@ const Y = {
|
|
|
845
845
|
_: 2
|
|
846
846
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
847
847
|
], 8, Dr)) : D("", !0),
|
|
848
|
-
c.value.additionalComponent === "JsonCardItem" ? (m(),
|
|
848
|
+
c.value.additionalComponent === "JsonCardItem" ? (m(), I("div", {
|
|
849
849
|
key: 3,
|
|
850
850
|
"data-testid": `${n.item.key}-json-array-content`
|
|
851
851
|
}, [
|
|
852
|
-
(m(!0),
|
|
853
|
-
key: `json-array-item-${
|
|
854
|
-
index:
|
|
852
|
+
(m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(Kt, {
|
|
853
|
+
key: `json-array-item-${E}`,
|
|
854
|
+
index: E,
|
|
855
855
|
"is-array-item": "",
|
|
856
856
|
item: h
|
|
857
857
|
}, null, 8, ["index", "item"]))), 128))
|
|
858
|
-
], 8, Ur)) : (m(), M(
|
|
858
|
+
], 8, Ur)) : (m(), M(W, {
|
|
859
859
|
key: 4,
|
|
860
860
|
text: T(p) ? e.item.value : ""
|
|
861
861
|
}, {
|
|
@@ -871,7 +871,7 @@ const Y = {
|
|
|
871
871
|
]),
|
|
872
872
|
_: 1
|
|
873
873
|
}, 16))
|
|
874
|
-
])) : (m(),
|
|
874
|
+
])) : (m(), I("div", {
|
|
875
875
|
key: 0,
|
|
876
876
|
"data-testid": `${e.item.key}-no-value`
|
|
877
877
|
}, " – ", 8, Br))
|
|
@@ -923,8 +923,8 @@ const Y = {
|
|
|
923
923
|
});
|
|
924
924
|
return (i, a) => {
|
|
925
925
|
const o = K("KBadge"), l = K("KCodeBlock");
|
|
926
|
-
return m(),
|
|
927
|
-
t.fetcherUrl ? (m(),
|
|
926
|
+
return m(), I("div", Pr, [
|
|
927
|
+
t.fetcherUrl ? (m(), I("div", Hr, [
|
|
928
928
|
B(o, {
|
|
929
929
|
appearance: t.requestMethod
|
|
930
930
|
}, {
|
|
@@ -979,7 +979,7 @@ function Wr(e, t) {
|
|
|
979
979
|
function Jr(e) {
|
|
980
980
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
981
981
|
}
|
|
982
|
-
var Gr = jt, Zr = Vr, Qr = zr, Xr = Wr, ei = Jr, ti = Yr,
|
|
982
|
+
var Gr = jt, Zr = Vr, Qr = zr, Xr = Wr, ei = Jr, ti = Yr, Z = {
|
|
983
983
|
isNothing: Gr,
|
|
984
984
|
isObject: Zr,
|
|
985
985
|
toArray: Qr,
|
|
@@ -1011,7 +1011,7 @@ function He(e, t, n, r, i) {
|
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
function Ve(e, t) {
|
|
1014
|
-
return
|
|
1014
|
+
return Z.repeat(" ", t - e.length) + e;
|
|
1015
1015
|
}
|
|
1016
1016
|
function ni(e, t) {
|
|
1017
1017
|
if (t = Object.create(t || null), !e.buffer)
|
|
@@ -1028,10 +1028,10 @@ function ni(e, t) {
|
|
|
1028
1028
|
i[o - s],
|
|
1029
1029
|
e.position - (r[o] - r[o - s]),
|
|
1030
1030
|
c
|
|
1031
|
-
), l =
|
|
1031
|
+
), l = Z.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
|
|
1032
1032
|
` + l;
|
|
1033
|
-
for (u = He(e.buffer, r[o], i[o], e.position, c), l +=
|
|
1034
|
-
`, l +=
|
|
1033
|
+
for (u = He(e.buffer, r[o], i[o], e.position, c), l += Z.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
|
|
1034
|
+
`, l += Z.repeat("-", t.indent + d + 3 + u.pos) + `^
|
|
1035
1035
|
`, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
|
|
1036
1036
|
u = He(
|
|
1037
1037
|
e.buffer,
|
|
@@ -1039,7 +1039,7 @@ function ni(e, t) {
|
|
|
1039
1039
|
i[o + s],
|
|
1040
1040
|
e.position - (r[o] - r[o + s]),
|
|
1041
1041
|
c
|
|
1042
|
-
), l +=
|
|
1042
|
+
), l += Z.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
|
|
1043
1043
|
`;
|
|
1044
1044
|
return l.replace(/\n$/, "");
|
|
1045
1045
|
}
|
|
@@ -1294,7 +1294,7 @@ function bi(e) {
|
|
|
1294
1294
|
return n * parseInt(t, 10);
|
|
1295
1295
|
}
|
|
1296
1296
|
function xi(e) {
|
|
1297
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1297
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Z.isNegativeZero(e);
|
|
1298
1298
|
}
|
|
1299
1299
|
var Gt = new X("tag:yaml.org,2002:int", {
|
|
1300
1300
|
kind: "scalar",
|
|
@@ -1366,12 +1366,12 @@ function Ai(e, t) {
|
|
|
1366
1366
|
case "camelcase":
|
|
1367
1367
|
return "-.Inf";
|
|
1368
1368
|
}
|
|
1369
|
-
else if (
|
|
1369
|
+
else if (Z.isNegativeZero(e))
|
|
1370
1370
|
return "-0.0";
|
|
1371
1371
|
return n = e.toString(10), wi.test(n) ? n.replace("e", ".e") : n;
|
|
1372
1372
|
}
|
|
1373
1373
|
function Si(e) {
|
|
1374
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1374
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Z.isNegativeZero(e));
|
|
1375
1375
|
}
|
|
1376
1376
|
var Zt = new X("tag:yaml.org,2002:float", {
|
|
1377
1377
|
kind: "scalar",
|
|
@@ -1629,7 +1629,7 @@ function de(e, t, n, r) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
function xt(e, t, n, r) {
|
|
1631
1631
|
var i, a, o, l;
|
|
1632
|
-
for (
|
|
1632
|
+
for (Z.isObject(n) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1)
|
|
1633
1633
|
a = i[o], pe.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
1634
1634
|
}
|
|
1635
1635
|
function ke(e, t, n, r, i, a, o, l, s) {
|
|
@@ -1656,7 +1656,7 @@ function rt(e) {
|
|
|
1656
1656
|
var t;
|
|
1657
1657
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function J(e, t, n) {
|
|
1660
1660
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1661
1661
|
for (; ye(i); )
|
|
1662
1662
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
@@ -1677,7 +1677,7 @@ function qe(e) {
|
|
|
1677
1677
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ne(n)));
|
|
1678
1678
|
}
|
|
1679
1679
|
function it(e, t) {
|
|
1680
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1680
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += Z.repeat(`
|
|
1681
1681
|
`, t - 1));
|
|
1682
1682
|
}
|
|
1683
1683
|
function ea(e, t, n) {
|
|
@@ -1695,7 +1695,7 @@ function ea(e, t, n) {
|
|
|
1695
1695
|
if (e.position === e.lineStart && qe(e) || n && Ce(p))
|
|
1696
1696
|
break;
|
|
1697
1697
|
if (le(p))
|
|
1698
|
-
if (s = e.line, u = e.lineStart, d = e.lineIndent,
|
|
1698
|
+
if (s = e.line, u = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
|
|
1699
1699
|
l = !0, p = e.input.charCodeAt(e.position);
|
|
1700
1700
|
continue;
|
|
1701
1701
|
} else {
|
|
@@ -1718,7 +1718,7 @@ function ta(e, t) {
|
|
|
1718
1718
|
else
|
|
1719
1719
|
return !0;
|
|
1720
1720
|
else
|
|
1721
|
-
le(n) ? (de(e, r, i, !0), it(e,
|
|
1721
|
+
le(n) ? (de(e, r, i, !0), it(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1722
1722
|
C(e, "unexpected end of the stream within a single quoted scalar");
|
|
1723
1723
|
}
|
|
1724
1724
|
function na(e, t) {
|
|
@@ -1730,7 +1730,7 @@ function na(e, t) {
|
|
|
1730
1730
|
return de(e, n, e.position, !0), e.position++, !0;
|
|
1731
1731
|
if (l === 92) {
|
|
1732
1732
|
if (de(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), le(l))
|
|
1733
|
-
|
|
1733
|
+
J(e, !1, t);
|
|
1734
1734
|
else if (l < 256 && pn[l])
|
|
1735
1735
|
e.result += hn[l], e.position++;
|
|
1736
1736
|
else if ((o = Gi(l)) > 0) {
|
|
@@ -1741,7 +1741,7 @@ function na(e, t) {
|
|
|
1741
1741
|
C(e, "unknown escape sequence");
|
|
1742
1742
|
n = r = e.position;
|
|
1743
1743
|
} else
|
|
1744
|
-
le(l) ? (de(e, n, r, !0), it(e,
|
|
1744
|
+
le(l) ? (de(e, n, r, !0), it(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1745
1745
|
}
|
|
1746
1746
|
C(e, "unexpected end of the stream within a double quoted scalar");
|
|
1747
1747
|
}
|
|
@@ -1754,9 +1754,9 @@ function ra(e, t) {
|
|
|
1754
1754
|
else
|
|
1755
1755
|
return !1;
|
|
1756
1756
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), w = e.input.charCodeAt(++e.position); w !== 0; ) {
|
|
1757
|
-
if (
|
|
1757
|
+
if (J(e, !0, t), w = e.input.charCodeAt(e.position), w === d)
|
|
1758
1758
|
return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1759
|
-
n ? w === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = v = N = null, c = g = !1, w === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = g = !0, e.position++,
|
|
1759
|
+
n ? w === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = v = N = null, c = g = !1, w === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = g = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Re, !1, !0), _ = e.tag, v = e.result, J(e, !0, t), w = e.input.charCodeAt(e.position), (g || e.line === r) && w === 58 && (c = !0, w = e.input.charCodeAt(++e.position), J(e, !0, t), we(e, t, Re, !1, !0), N = e.result), p ? ke(e, l, y, _, v, N, r, i, a) : c ? l.push(ke(e, null, y, _, v, N, r, i, a)) : l.push(v), J(e, !0, t), w = e.input.charCodeAt(e.position), w === 44 ? (n = !0, w = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
C(e, "unexpected end of the stream within a flow collection");
|
|
1762
1762
|
}
|
|
@@ -1792,15 +1792,15 @@ function ia(e, t) {
|
|
|
1792
1792
|
continue;
|
|
1793
1793
|
}
|
|
1794
1794
|
if (e.lineIndent < l) {
|
|
1795
|
-
i === gt ? e.result +=
|
|
1795
|
+
i === gt ? e.result += Z.repeat(`
|
|
1796
1796
|
`, a ? 1 + s : s) : i === ze && a && (e.result += `
|
|
1797
1797
|
`);
|
|
1798
1798
|
break;
|
|
1799
1799
|
}
|
|
1800
|
-
for (r ? ye(c) ? (u = !0, e.result +=
|
|
1801
|
-
`, a ? 1 + s : s)) : u ? (u = !1, e.result +=
|
|
1802
|
-
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result +=
|
|
1803
|
-
`, s) : e.result +=
|
|
1800
|
+
for (r ? ye(c) ? (u = !0, e.result += Z.repeat(`
|
|
1801
|
+
`, a ? 1 + s : s)) : u ? (u = !1, e.result += Z.repeat(`
|
|
1802
|
+
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += Z.repeat(`
|
|
1803
|
+
`, s) : e.result += Z.repeat(`
|
|
1804
1804
|
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !le(c) && c !== 0; )
|
|
1805
1805
|
c = e.input.charCodeAt(++e.position);
|
|
1806
1806
|
de(e, n, e.position, !1);
|
|
@@ -1812,11 +1812,11 @@ function Ct(e, t) {
|
|
|
1812
1812
|
if (e.firstTabInLine !== -1)
|
|
1813
1813
|
return !1;
|
|
1814
1814
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
|
|
1815
|
-
if (l = !0, e.position++,
|
|
1815
|
+
if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
|
|
1816
1816
|
a.push(null), s = e.input.charCodeAt(e.position);
|
|
1817
1817
|
continue;
|
|
1818
1818
|
}
|
|
1819
|
-
if (n = e.line, we(e, t, un, !1, !0), a.push(e.result),
|
|
1819
|
+
if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1820
1820
|
C(e, "bad indentation of a sequence entry");
|
|
1821
1821
|
else if (e.lineIndent < t)
|
|
1822
1822
|
break;
|
|
@@ -1847,7 +1847,7 @@ function aa(e, t, n) {
|
|
|
1847
1847
|
else
|
|
1848
1848
|
return e.tag = u, e.anchor = d, !0;
|
|
1849
1849
|
}
|
|
1850
|
-
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (ke(e, c, g, p, y, v, o, l, s), p = y = v = null),
|
|
1850
|
+
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (ke(e, c, g, p, y, v, o, l, s), p = y = v = null), J(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && w !== 0)
|
|
1851
1851
|
C(e, "bad indentation of a mapping entry");
|
|
1852
1852
|
else if (e.lineIndent < t)
|
|
1853
1853
|
break;
|
|
@@ -1890,13 +1890,13 @@ function sa(e) {
|
|
|
1890
1890
|
return !1;
|
|
1891
1891
|
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
|
|
1892
1892
|
r = e.input.charCodeAt(++e.position);
|
|
1893
|
-
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n],
|
|
1893
|
+
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
|
|
1894
1894
|
}
|
|
1895
1895
|
function we(e, t, n, r, i) {
|
|
1896
1896
|
var a, o, l, s = 1, u = !1, d = !1, c, g, p, y, v, _;
|
|
1897
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || un === n, r &&
|
|
1897
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || un === n, r && J(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1898
1898
|
for (; oa(e) || la(e); )
|
|
1899
|
-
|
|
1899
|
+
J(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1900
1900
|
if (l && (l = u || i), (s === 1 || Me === n) && (Re === n || cn === n ? v = t : v = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || aa(e, _, v)) || ra(e, v) ? d = !0 : (o && ia(e, v) || ta(e, v) || na(e, v) ? d = !0 : sa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ea(e, v, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
|
|
1901
1901
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1902
1902
|
else if (e.tag === "?") {
|
|
@@ -1920,7 +1920,7 @@ function we(e, t, n, r, i) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
function ca(e) {
|
|
1922
1922
|
var t = e.position, n, r, i, a = !1, o;
|
|
1923
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1923
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1924
1924
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
|
|
1925
1925
|
o = e.input.charCodeAt(++e.position);
|
|
1926
1926
|
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
@@ -1940,8 +1940,8 @@ function ca(e) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
o !== 0 && rt(e), pe.call(bt, r) ? bt[r](e, r, i) : Ke(e, 'unknown document directive "' + r + '"');
|
|
1942
1942
|
}
|
|
1943
|
-
if (
|
|
1944
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1943
|
+
if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Me, !1, !0), J(e, !0, -1), e.checkLineBreaks && Yi.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
1944
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
1947
|
if (e.position < e.length - 1)
|
|
@@ -2030,14 +2030,14 @@ function La(e) {
|
|
|
2030
2030
|
n = "U", r = 8;
|
|
2031
2031
|
else
|
|
2032
2032
|
throw new te("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2033
|
-
return "\\" + n +
|
|
2033
|
+
return "\\" + n + Z.repeat("0", r - t.length) + t;
|
|
2034
2034
|
}
|
|
2035
2035
|
var Na = 1, Le = 2;
|
|
2036
2036
|
function Ba(e) {
|
|
2037
|
-
this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
2037
|
+
this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Oa(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Le : Na, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2038
2038
|
}
|
|
2039
2039
|
function kt(e, t) {
|
|
2040
|
-
for (var n =
|
|
2040
|
+
for (var n = Z.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
|
|
2041
2041
|
i = e.indexOf(`
|
|
2042
2042
|
`, r), i === -1 ? (o = e.slice(r), r = l) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== `
|
|
2043
2043
|
` && (a += n), a += o;
|
|
@@ -2045,7 +2045,7 @@ function kt(e, t) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
function Ge(e, t) {
|
|
2047
2047
|
return `
|
|
2048
|
-
` +
|
|
2048
|
+
` + Z.repeat(" ", e.indent * t);
|
|
2049
2049
|
}
|
|
2050
2050
|
function Ra(e, t) {
|
|
2051
2051
|
var n, r, i;
|
|
@@ -2338,7 +2338,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2338
2338
|
});
|
|
2339
2339
|
return (r, i) => {
|
|
2340
2340
|
const a = K("KCodeBlock");
|
|
2341
|
-
return m(),
|
|
2341
|
+
return m(), I("div", fo, [
|
|
2342
2342
|
t.yamlRecord ? (m(), M(a, {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
id: "yaml-codeblock",
|
|
@@ -2400,15 +2400,15 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2400
2400
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2401
2401
|
return delete o.created_at, delete o.updated_at, o;
|
|
2402
2402
|
});
|
|
2403
|
-
return (o, l) => (m(),
|
|
2404
|
-
e.format === "structured" ? (m(),
|
|
2405
|
-
(m(!0),
|
|
2403
|
+
return (o, l) => (m(), I(ce, null, [
|
|
2404
|
+
e.format === "structured" ? (m(), I("div", po, [
|
|
2405
|
+
(m(!0), I(ce, null, oe(e.propListTypes, (s) => (m(), I("div", {
|
|
2406
2406
|
key: `config-card-details-${s}-props`,
|
|
2407
2407
|
class: fe(`config-card-details-${s}-props`),
|
|
2408
2408
|
"data-testid": `config-card-details-${s}-props`
|
|
2409
2409
|
}, [
|
|
2410
|
-
s !== "basic" ? (m(),
|
|
2411
|
-
(m(!0),
|
|
2410
|
+
s !== "basic" ? (m(), I("div", mo, O(s === "advanced" ? T(r)("baseConfigCard.sections.advanced") : T(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2411
|
+
(m(!0), I(ce, null, oe(e.propertyCollections[s], (u) => (m(), M(Dt, {
|
|
2412
2412
|
key: u.key,
|
|
2413
2413
|
item: u
|
|
2414
2414
|
}, _e({
|
|
@@ -2533,7 +2533,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2533
2533
|
style: Se(r.value)
|
|
2534
2534
|
}, {
|
|
2535
2535
|
default: b(() => [
|
|
2536
|
-
(m(),
|
|
2536
|
+
(m(), I("svg", {
|
|
2537
2537
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2538
2538
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2539
2539
|
fill: "none",
|
|
@@ -2543,7 +2543,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2543
2543
|
width: "100%",
|
|
2544
2544
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2545
2545
|
}, [
|
|
2546
|
-
e.title ? (m(),
|
|
2546
|
+
e.title ? (m(), I("title", xo, O(e.title), 1)) : D("", !0),
|
|
2547
2547
|
Co
|
|
2548
2548
|
], 8, bo))
|
|
2549
2549
|
]),
|
|
@@ -2632,7 +2632,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2632
2632
|
style: Se(r.value)
|
|
2633
2633
|
}, {
|
|
2634
2634
|
default: b(() => [
|
|
2635
|
-
(m(),
|
|
2635
|
+
(m(), I("svg", {
|
|
2636
2636
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2637
2637
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2638
2638
|
fill: "none",
|
|
@@ -2642,7 +2642,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2642
2642
|
width: "100%",
|
|
2643
2643
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2644
2644
|
}, [
|
|
2645
|
-
e.title ? (m(),
|
|
2645
|
+
e.title ? (m(), I("title", So, O(e.title), 1)) : D("", !0),
|
|
2646
2646
|
Io
|
|
2647
2647
|
], 8, Ao))
|
|
2648
2648
|
]),
|
|
@@ -2731,7 +2731,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2731
2731
|
style: Se(r.value)
|
|
2732
2732
|
}, {
|
|
2733
2733
|
default: b(() => [
|
|
2734
|
-
(m(),
|
|
2734
|
+
(m(), I("svg", {
|
|
2735
2735
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2736
2736
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2737
2737
|
fill: "none",
|
|
@@ -2741,7 +2741,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2741
2741
|
width: "100%",
|
|
2742
2742
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2743
2743
|
}, [
|
|
2744
|
-
e.title ? (m(),
|
|
2744
|
+
e.title ? (m(), I("title", Oo, O(e.title), 1)) : D("", !0),
|
|
2745
2745
|
Lo
|
|
2746
2746
|
], 8, Fo))
|
|
2747
2747
|
]),
|
|
@@ -2830,7 +2830,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2830
2830
|
style: Se(r.value)
|
|
2831
2831
|
}, {
|
|
2832
2832
|
default: b(() => [
|
|
2833
|
-
(m(),
|
|
2833
|
+
(m(), I("svg", {
|
|
2834
2834
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2835
2835
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2836
2836
|
fill: "none",
|
|
@@ -2840,7 +2840,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2840
2840
|
width: "100%",
|
|
2841
2841
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2842
2842
|
}, [
|
|
2843
|
-
e.title ? (m(),
|
|
2843
|
+
e.title ? (m(), I("title", Ko, O(e.title), 1)) : D("", !0),
|
|
2844
2844
|
Do
|
|
2845
2845
|
], 8, Mo))
|
|
2846
2846
|
]),
|
|
@@ -2929,7 +2929,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2929
2929
|
style: Se(r.value)
|
|
2930
2930
|
}, {
|
|
2931
2931
|
default: b(() => [
|
|
2932
|
-
(m(),
|
|
2932
|
+
(m(), I("svg", {
|
|
2933
2933
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2934
2934
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
2935
2935
|
fill: "none",
|
|
@@ -2939,7 +2939,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
2939
2939
|
width: "100%",
|
|
2940
2940
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2941
2941
|
}, [
|
|
2942
|
-
e.title ? (m(),
|
|
2942
|
+
e.title ? (m(), I("title", Ho, O(e.title), 1)) : D("", !0),
|
|
2943
2943
|
Vo
|
|
2944
2944
|
], 8, Po))
|
|
2945
2945
|
]),
|
|
@@ -3028,7 +3028,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3028
3028
|
style: Se(r.value)
|
|
3029
3029
|
}, {
|
|
3030
3030
|
default: b(() => [
|
|
3031
|
-
(m(),
|
|
3031
|
+
(m(), I("svg", {
|
|
3032
3032
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3033
3033
|
"data-testid": "kui-icon-svg-more-icon",
|
|
3034
3034
|
fill: "none",
|
|
@@ -3038,7 +3038,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3038
3038
|
width: "100%",
|
|
3039
3039
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3040
3040
|
}, [
|
|
3041
|
-
e.title ? (m(),
|
|
3041
|
+
e.title ? (m(), I("title", Go, O(e.title), 1)) : D("", !0),
|
|
3042
3042
|
Zo
|
|
3043
3043
|
], 8, Jo))
|
|
3044
3044
|
]),
|
|
@@ -3126,8 +3126,8 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3126
3126
|
},
|
|
3127
3127
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
3128
3128
|
setup(e, { emit: t }) {
|
|
3129
|
-
var
|
|
3130
|
-
const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { convertKeyToTitle: o } = Y.useStringHelpers(), { axiosInstance: l } = Y.useAxios((
|
|
3129
|
+
var E;
|
|
3130
|
+
const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { convertKeyToTitle: o } = Y.useStringHelpers(), { axiosInstance: l } = Y.useAxios((E = r.config) == null ? void 0 : E.axiosRequestConfig), s = [
|
|
3131
3131
|
{
|
|
3132
3132
|
label: i("baseConfigCard.general.structuredFormat"),
|
|
3133
3133
|
value: "structured",
|
|
@@ -3181,66 +3181,66 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3181
3181
|
var F, x, U;
|
|
3182
3182
|
if (!v.value)
|
|
3183
3183
|
return [];
|
|
3184
|
-
const f = [],
|
|
3184
|
+
const f = [], A = Object.keys(v.value).length;
|
|
3185
3185
|
for (const $ in v.value) {
|
|
3186
|
-
const
|
|
3187
|
-
let j =
|
|
3188
|
-
(q || q === 0) && (j = q === -1 ?
|
|
3186
|
+
const S = (x = (F = r.configSchema) == null ? void 0 : F[$]) == null ? void 0 : x.order, q = (U = c[$]) == null ? void 0 : U.order;
|
|
3187
|
+
let j = A;
|
|
3188
|
+
(q || q === 0) && (j = q === -1 ? A + 1 : q), S && (j = S === -1 ? A + 1 : S), f.push([$, j]);
|
|
3189
3189
|
}
|
|
3190
|
-
return f.sort(function($,
|
|
3191
|
-
return $[1] -
|
|
3190
|
+
return f.sort(function($, S) {
|
|
3191
|
+
return $[1] - S[1];
|
|
3192
3192
|
}), f.map(($) => {
|
|
3193
3193
|
var he, lt;
|
|
3194
|
-
const
|
|
3194
|
+
const S = $[0], q = (he = v.value) == null ? void 0 : he[S], j = ((lt = r.configSchema) == null ? void 0 : lt[S]) || {}, G = c[S];
|
|
3195
3195
|
return {
|
|
3196
|
-
key:
|
|
3196
|
+
key: S,
|
|
3197
3197
|
value: q,
|
|
3198
3198
|
hidden: j.hidden || !1,
|
|
3199
|
-
type: j.type ?? ((
|
|
3200
|
-
label: j.label ?? ((
|
|
3201
|
-
tooltip: j.tooltip ?? ((
|
|
3202
|
-
section: j.section ?? ((
|
|
3199
|
+
type: j.type ?? ((G == null ? void 0 : G.type) || H.Text),
|
|
3200
|
+
label: j.label ?? ((G == null ? void 0 : G.label) || o(S)),
|
|
3201
|
+
tooltip: j.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
|
|
3202
|
+
section: j.section ?? ((G == null ? void 0 : G.section) || re.Advanced)
|
|
3203
3203
|
};
|
|
3204
3204
|
}).filter(($) => !$.hidden && $.key !== r.pluginConfigKey);
|
|
3205
3205
|
}), N = k(() => {
|
|
3206
3206
|
var x, U;
|
|
3207
3207
|
if (!v.value || !r.pluginConfigKey)
|
|
3208
3208
|
return [];
|
|
3209
|
-
const f = v.value[r.pluginConfigKey] || {},
|
|
3209
|
+
const f = v.value[r.pluginConfigKey] || {}, A = Object.keys(f).length, F = [];
|
|
3210
3210
|
for (const $ in f) {
|
|
3211
|
-
const
|
|
3212
|
-
let j = q != null && q !== "" ?
|
|
3213
|
-
|
|
3211
|
+
const S = (U = (x = r.pluginConfigSchema) == null ? void 0 : x[$]) == null ? void 0 : U.order, q = f[$];
|
|
3212
|
+
let j = q != null && q !== "" ? A - 1 : A;
|
|
3213
|
+
S && (j = S === -1 ? A + 1 : S), F.push([$, j]);
|
|
3214
3214
|
}
|
|
3215
|
-
return F.sort(function($,
|
|
3216
|
-
return $[1] -
|
|
3215
|
+
return F.sort(function($, S) {
|
|
3216
|
+
return $[1] - S[1];
|
|
3217
3217
|
}), F.map(($) => {
|
|
3218
|
-
var
|
|
3219
|
-
const
|
|
3218
|
+
var G;
|
|
3219
|
+
const S = $[0], q = f[S], j = ((G = r.pluginConfigSchema) == null ? void 0 : G[S]) || {};
|
|
3220
3220
|
return {
|
|
3221
|
-
key:
|
|
3221
|
+
key: S,
|
|
3222
3222
|
value: q,
|
|
3223
3223
|
hidden: j.hidden || !1,
|
|
3224
3224
|
type: j.type ?? H.Text,
|
|
3225
|
-
label: j.label ?? o(
|
|
3225
|
+
label: j.label ?? o(S),
|
|
3226
3226
|
tooltip: j.tooltip ?? void 0,
|
|
3227
3227
|
section: re.Plugin
|
|
3228
3228
|
};
|
|
3229
3229
|
}).filter(($) => !$.hidden);
|
|
3230
3230
|
}), w = k(() => {
|
|
3231
|
-
var f,
|
|
3231
|
+
var f, A, F, x;
|
|
3232
3232
|
return {
|
|
3233
3233
|
basic: (f = _.value) == null ? void 0 : f.filter((U) => U.section === re.Basic),
|
|
3234
|
-
advanced: (
|
|
3234
|
+
advanced: (A = _.value) == null ? void 0 : A.filter((U) => U.section === re.Advanced),
|
|
3235
3235
|
plugin: (x = N.value) == null ? void 0 : x.concat((F = _.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
|
|
3236
3236
|
};
|
|
3237
|
-
}),
|
|
3237
|
+
}), W = k(() => {
|
|
3238
3238
|
const f = [];
|
|
3239
3239
|
return w.value.basic.length && f.push("basic"), w.value.advanced.length && f.push("advanced"), w.value.plugin.length && f.push("plugin"), f;
|
|
3240
3240
|
}), h = k(() => {
|
|
3241
|
-
var
|
|
3241
|
+
var A, F;
|
|
3242
3242
|
let f = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3243
|
-
return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((
|
|
3243
|
+
return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
|
|
3244
3244
|
});
|
|
3245
3245
|
return Ae(g, (f) => {
|
|
3246
3246
|
n("loading", f);
|
|
@@ -3259,13 +3259,13 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3259
3259
|
v.value && typeof v.value[F] > "u" && (v.value[F] = null);
|
|
3260
3260
|
}), n("fetch:success", f);
|
|
3261
3261
|
} catch (f) {
|
|
3262
|
-
const
|
|
3263
|
-
y.value =
|
|
3262
|
+
const A = a(f);
|
|
3263
|
+
y.value = A.startsWith("code") ? i("baseConfigCard.errors.load") : A, p.value = !0, n("fetch:error", f);
|
|
3264
3264
|
} finally {
|
|
3265
3265
|
g.value = !1;
|
|
3266
3266
|
}
|
|
3267
|
-
}), (f,
|
|
3268
|
-
const F = K("KLabel"), x = K("KSelect"), U = K("KButton"), $ = K("KSkeleton"),
|
|
3267
|
+
}), (f, A) => {
|
|
3268
|
+
const F = K("KLabel"), x = K("KSelect"), U = K("KButton"), $ = K("KSkeleton"), S = K("KEmptyState"), q = K("KCard");
|
|
3269
3269
|
return m(), M(q, {
|
|
3270
3270
|
class: "kong-ui-entity-base-config-card",
|
|
3271
3271
|
"title-tag": e.titleTag
|
|
@@ -3312,7 +3312,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3312
3312
|
"data-testid": "config-card-loader",
|
|
3313
3313
|
"table-columns": 2,
|
|
3314
3314
|
type: "table"
|
|
3315
|
-
})) : p.value ? (m(), M(
|
|
3315
|
+
})) : p.value ? (m(), M(S, {
|
|
3316
3316
|
key: 1,
|
|
3317
3317
|
"data-testid": "config-card-fetch-error",
|
|
3318
3318
|
"icon-variant": "error"
|
|
@@ -3327,15 +3327,15 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3327
3327
|
config: e.config,
|
|
3328
3328
|
"fetcher-url": h.value,
|
|
3329
3329
|
format: u.value,
|
|
3330
|
-
"prop-list-types":
|
|
3330
|
+
"prop-list-types": W.value,
|
|
3331
3331
|
"property-collections": w.value,
|
|
3332
3332
|
record: v.value
|
|
3333
3333
|
}, _e({ _: 2 }, [
|
|
3334
3334
|
oe(Object.keys(f.$slots), (j) => ({
|
|
3335
3335
|
name: j,
|
|
3336
|
-
fn: b(({ row:
|
|
3336
|
+
fn: b(({ row: G, rowValue: he }) => [
|
|
3337
3337
|
z(f.$slots, j, {
|
|
3338
|
-
row:
|
|
3338
|
+
row: G,
|
|
3339
3339
|
rowValue: he
|
|
3340
3340
|
}, void 0, !0)
|
|
3341
3341
|
])
|
|
@@ -3430,11 +3430,11 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3430
3430
|
},
|
|
3431
3431
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3432
3432
|
setup(e, { emit: t }) {
|
|
3433
|
-
var
|
|
3434
|
-
const n = t, r = e, i = jn(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((
|
|
3435
|
-
var
|
|
3433
|
+
var W;
|
|
3434
|
+
const n = t, r = e, i = jn(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((W = r.config) == null ? void 0 : W.axiosRequestConfig), s = R(!1), u = R(!1), d = R(""), c = k(() => r.canSubmit === !1 || r.isReadonly), g = R(!1), p = k(() => {
|
|
3435
|
+
var E, f;
|
|
3436
3436
|
let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3437
|
-
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((
|
|
3437
|
+
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
3438
3438
|
}), y = () => {
|
|
3439
3439
|
g.value = !g.value;
|
|
3440
3440
|
}, v = () => {
|
|
@@ -3462,19 +3462,19 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3462
3462
|
const { data: h } = await l.get(p.value);
|
|
3463
3463
|
n("fetch:success", h);
|
|
3464
3464
|
} catch (h) {
|
|
3465
|
-
const
|
|
3466
|
-
d.value =
|
|
3465
|
+
const E = o(h);
|
|
3466
|
+
d.value = E.startsWith("code") ? a("baseForm.errors.edit") : E, u.value = !0, n("fetch:error", h);
|
|
3467
3467
|
} finally {
|
|
3468
3468
|
s.value = !1;
|
|
3469
3469
|
}
|
|
3470
|
-
}), (h,
|
|
3471
|
-
const f = K("KSkeleton"),
|
|
3470
|
+
}), (h, E) => {
|
|
3471
|
+
const f = K("KSkeleton"), A = K("KEmptyState"), F = K("KAlert"), x = K("KButton"), U = K("KTabs"), $ = K("KSlideout");
|
|
3472
3472
|
return m(), M(se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3473
3473
|
default: b(() => [
|
|
3474
3474
|
s.value ? (m(), M(f, {
|
|
3475
3475
|
key: 0,
|
|
3476
3476
|
type: "form"
|
|
3477
|
-
})) : u.value ? (m(), M(
|
|
3477
|
+
})) : u.value ? (m(), M(A, {
|
|
3478
3478
|
key: 1,
|
|
3479
3479
|
"action-button-text": T(a)("baseForm.actions.back"),
|
|
3480
3480
|
"data-testid": "form-fetch-error",
|
|
@@ -3485,7 +3485,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3485
3485
|
L("h3", null, O(d.value), 1)
|
|
3486
3486
|
]),
|
|
3487
3487
|
_: 1
|
|
3488
|
-
}, 8, ["action-button-text"])) : (m(),
|
|
3488
|
+
}, 8, ["action-button-text"])) : (m(), I("form", {
|
|
3489
3489
|
key: 2,
|
|
3490
3490
|
"data-testid": "form-content",
|
|
3491
3491
|
novalidate: r.noValidate,
|
|
@@ -3504,7 +3504,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3504
3504
|
B(x, {
|
|
3505
3505
|
appearance: "tertiary",
|
|
3506
3506
|
"data-testid": "form-view-configuration",
|
|
3507
|
-
onClick:
|
|
3507
|
+
onClick: E[0] || (E[0] = (S) => y())
|
|
3508
3508
|
}, {
|
|
3509
3509
|
default: b(() => [
|
|
3510
3510
|
V(O(T(a)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -3543,7 +3543,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3543
3543
|
"offset-top": 60,
|
|
3544
3544
|
title: T(a)("baseForm.configuration.title"),
|
|
3545
3545
|
visible: g.value,
|
|
3546
|
-
onClose:
|
|
3546
|
+
onClose: E[1] || (E[1] = (S) => y())
|
|
3547
3547
|
}, {
|
|
3548
3548
|
default: b(() => [
|
|
3549
3549
|
L("div", null, O(T(a)("baseForm.configuration.message")), 1),
|
|
@@ -3606,13 +3606,13 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3606
3606
|
const l = () => {
|
|
3607
3607
|
o && (o.disconnect(), o = void 0);
|
|
3608
3608
|
}, s = () => {
|
|
3609
|
-
var N, w,
|
|
3609
|
+
var N, w, W;
|
|
3610
3610
|
let _ = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
|
|
3611
3611
|
if (n.value && "getComputedStyle" in window) {
|
|
3612
3612
|
const h = window.getComputedStyle(n.value);
|
|
3613
3613
|
_ -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
|
|
3614
3614
|
}
|
|
3615
|
-
d.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, c.value = _, g.value = ((
|
|
3615
|
+
d.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, c.value = _, g.value = ((W = u.value) == null ? void 0 : W.innerText) || "";
|
|
3616
3616
|
}, u = R({}), d = R(0), c = R(0), g = R(""), p = k(() => [r.value, n.value]), y = Ae(
|
|
3617
3617
|
p,
|
|
3618
3618
|
(_) => {
|
|
@@ -3634,12 +3634,12 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3634
3634
|
y();
|
|
3635
3635
|
}), (_, N) => {
|
|
3636
3636
|
const w = K("KTooltip");
|
|
3637
|
-
return m(),
|
|
3637
|
+
return m(), I("span", {
|
|
3638
3638
|
ref_key: "contentRef",
|
|
3639
3639
|
ref: u,
|
|
3640
3640
|
class: "content-wrapper"
|
|
3641
3641
|
}, [
|
|
3642
|
-
a.value ? (m(),
|
|
3642
|
+
a.value ? (m(), I("span", {
|
|
3643
3643
|
key: 0,
|
|
3644
3644
|
"data-truncate": a.value || void 0
|
|
3645
3645
|
}, [
|
|
@@ -3779,7 +3779,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3779
3779
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3780
3780
|
setup(e, { emit: t }) {
|
|
3781
3781
|
const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), a = k(() => {
|
|
3782
|
-
var f,
|
|
3782
|
+
var f, A;
|
|
3783
3783
|
return typeof n.errorMessage == "string" ? {
|
|
3784
3784
|
hasError: !!n.errorMessage,
|
|
3785
3785
|
title: n.errorMessage,
|
|
@@ -3787,7 +3787,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3787
3787
|
} : {
|
|
3788
3788
|
hasError: !!n.errorMessage,
|
|
3789
3789
|
title: (f = n.errorMessage) == null ? void 0 : f.title,
|
|
3790
|
-
message: (
|
|
3790
|
+
message: (A = n.errorMessage) == null ? void 0 : A.message
|
|
3791
3791
|
};
|
|
3792
3792
|
}), o = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = k(() => {
|
|
3793
3793
|
const f = [];
|
|
@@ -3797,7 +3797,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3797
3797
|
label: x.label ?? F,
|
|
3798
3798
|
key: F,
|
|
3799
3799
|
sortable: x.sortable ?? !1,
|
|
3800
|
-
hidable: !0
|
|
3800
|
+
hidable: x.hidable ?? !0
|
|
3801
3801
|
});
|
|
3802
3802
|
}), n.enableEntityActions && f.push({
|
|
3803
3803
|
key: "actions",
|
|
@@ -3808,36 +3808,38 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3808
3808
|
"data-testid": f.name,
|
|
3809
3809
|
...n.rowAttributes(f)
|
|
3810
3810
|
}), d = R({}), c = (f) => {
|
|
3811
|
-
var
|
|
3812
|
-
return (
|
|
3811
|
+
var A;
|
|
3812
|
+
return (A = d.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${f.id}"]`);
|
|
3813
3813
|
}, g = (f) => {
|
|
3814
|
-
const
|
|
3814
|
+
const A = {
|
|
3815
3815
|
"data-testid": f.headerKey,
|
|
3816
3816
|
...n.cellAttributes(f)
|
|
3817
3817
|
};
|
|
3818
|
-
return f.colIndex === 0 && (
|
|
3818
|
+
return f.colIndex === 0 && (A.style = {
|
|
3819
3819
|
maxWidth: "250px",
|
|
3820
3820
|
overflowX: "hidden",
|
|
3821
3821
|
textOverflow: "ellipsis"
|
|
3822
|
-
}),
|
|
3822
|
+
}), A;
|
|
3823
3823
|
}, p = () => {
|
|
3824
3824
|
r("empty-state-cta-clicked"), y();
|
|
3825
3825
|
}, y = () => {
|
|
3826
3826
|
r("clear-search-input");
|
|
3827
|
-
}, v = k(() => n.disableRowClick ? void 0 : (f,
|
|
3828
|
-
r("click:row",
|
|
3827
|
+
}, v = k(() => n.disableRowClick ? void 0 : (f, A) => {
|
|
3828
|
+
r("click:row", A);
|
|
3829
3829
|
}), _ = (f) => {
|
|
3830
3830
|
r("sort", f);
|
|
3831
|
-
}, { setTablePreferences: N, getTablePreferences: w } = Yn(),
|
|
3831
|
+
}, { setTablePreferences: N, getTablePreferences: w } = Yn(), W = R(w(o.value)), h = k(() => {
|
|
3832
3832
|
const f = w(o.value);
|
|
3833
3833
|
return {
|
|
3834
3834
|
...n.initialFetcherParams,
|
|
3835
3835
|
...f
|
|
3836
3836
|
};
|
|
3837
|
-
}),
|
|
3838
|
-
|
|
3837
|
+
}), E = (f) => {
|
|
3838
|
+
W.value = f, s.value.forEach((A) => {
|
|
3839
|
+
!("hidable" in A) || !W.value.columnVisibility || A.hidable === !1 && (W.value.columnVisibility[A.key] = !0);
|
|
3840
|
+
}), o.value && N(o.value, f);
|
|
3839
3841
|
};
|
|
3840
|
-
return (f,
|
|
3842
|
+
return (f, A) => {
|
|
3841
3843
|
const F = K("KButton"), x = K("KDropdown"), U = K("KTable"), $ = K("KCard");
|
|
3842
3844
|
return m(), M($, {
|
|
3843
3845
|
class: "kong-ui-entity-base-table",
|
|
@@ -3872,26 +3874,26 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3872
3874
|
"search-input": e.query,
|
|
3873
3875
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3874
3876
|
sortable: !e.disableSorting,
|
|
3875
|
-
"table-preferences":
|
|
3877
|
+
"table-preferences": W.value,
|
|
3876
3878
|
onEmptyStateActionClick: p,
|
|
3877
3879
|
"onRow:click": v.value,
|
|
3878
|
-
onSort:
|
|
3879
|
-
"onUpdate:tablePreferences":
|
|
3880
|
+
onSort: A[0] || (A[0] = (S) => _(S)),
|
|
3881
|
+
"onUpdate:tablePreferences": E
|
|
3880
3882
|
}, _e({
|
|
3881
|
-
toolbar: b(({ state:
|
|
3883
|
+
toolbar: b(({ state: S }) => [
|
|
3882
3884
|
me(L("div", dl, [
|
|
3883
3885
|
z(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3884
|
-
f.$slots["toolbar-button"] ? (m(),
|
|
3886
|
+
f.$slots["toolbar-button"] ? (m(), I("div", fl, [
|
|
3885
3887
|
z(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3886
3888
|
])) : D("", !0)
|
|
3887
3889
|
], 512), [
|
|
3888
|
-
[ge, l(
|
|
3890
|
+
[ge, l(S)]
|
|
3889
3891
|
])
|
|
3890
3892
|
]),
|
|
3891
|
-
actions: b(({ row:
|
|
3893
|
+
actions: b(({ row: S, rowKey: q, rowValue: j }) => [
|
|
3892
3894
|
L("div", {
|
|
3893
3895
|
class: "actions-container",
|
|
3894
|
-
"data-testid":
|
|
3896
|
+
"data-testid": S.name
|
|
3895
3897
|
}, [
|
|
3896
3898
|
B(x, {
|
|
3897
3899
|
"kpop-attributes": { placement: "bottom-end" },
|
|
@@ -3899,7 +3901,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3899
3901
|
}, {
|
|
3900
3902
|
items: b(() => [
|
|
3901
3903
|
z(f.$slots, "actions", {
|
|
3902
|
-
row:
|
|
3904
|
+
row: S,
|
|
3903
3905
|
rowKey: q,
|
|
3904
3906
|
rowValue: j
|
|
3905
3907
|
}, void 0, !0)
|
|
@@ -3924,18 +3926,18 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3924
3926
|
]),
|
|
3925
3927
|
_: 2
|
|
3926
3928
|
}, [
|
|
3927
|
-
oe(e.tableHeaders, (
|
|
3929
|
+
oe(e.tableHeaders, (S, q) => ({
|
|
3928
3930
|
name: q,
|
|
3929
|
-
fn: b(({ row: j, rowKey:
|
|
3931
|
+
fn: b(({ row: j, rowKey: G, rowValue: he }) => [
|
|
3930
3932
|
B(ul, {
|
|
3931
3933
|
"key-name": String(q),
|
|
3932
3934
|
"row-el": c(j),
|
|
3933
|
-
tooltip:
|
|
3935
|
+
tooltip: S.tooltip
|
|
3934
3936
|
}, {
|
|
3935
3937
|
default: b(() => [
|
|
3936
3938
|
z(f.$slots, q, {
|
|
3937
3939
|
row: j,
|
|
3938
|
-
rowKey:
|
|
3940
|
+
rowKey: G,
|
|
3939
3941
|
rowValue: he
|
|
3940
3942
|
}, () => [
|
|
3941
3943
|
V(O(he), 1)
|
|
@@ -3958,7 +3960,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
3958
3960
|
}, 8, ["title", "title-tag"]);
|
|
3959
3961
|
};
|
|
3960
3962
|
}
|
|
3961
|
-
}), ns = /* @__PURE__ */ ae(hl, [["__scopeId", "data-v-
|
|
3963
|
+
}), ns = /* @__PURE__ */ ae(hl, [["__scopeId", "data-v-71b4425a"]]), ml = {
|
|
3962
3964
|
key: 0,
|
|
3963
3965
|
class: "kong-ui-entity-delete-error"
|
|
3964
3966
|
}, gl = {
|
|
@@ -4022,7 +4024,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4022
4024
|
onProceed: l
|
|
4023
4025
|
}, {
|
|
4024
4026
|
default: b(() => [
|
|
4025
|
-
e.error ? (m(),
|
|
4027
|
+
e.error ? (m(), I("div", ml, [
|
|
4026
4028
|
B(d, { appearance: "danger" }, {
|
|
4027
4029
|
default: b(() => [
|
|
4028
4030
|
V(O(e.error), 1)
|
|
@@ -4048,7 +4050,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4048
4050
|
key: "0"
|
|
4049
4051
|
} : void 0
|
|
4050
4052
|
]), 1032, ["keypath"]),
|
|
4051
|
-
r.description || s.$slots.description ? (m(),
|
|
4053
|
+
r.description || s.$slots.description ? (m(), I("div", gl, [
|
|
4052
4054
|
z(s.$slots, "description", {}, () => [
|
|
4053
4055
|
L("p", null, O(r.description), 1)
|
|
4054
4056
|
], !0)
|
|
@@ -4081,7 +4083,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4081
4083
|
}
|
|
4082
4084
|
},
|
|
4083
4085
|
setup(e) {
|
|
4084
|
-
return (t, n) => (m(),
|
|
4086
|
+
return (t, n) => (m(), I("svg", vl, [
|
|
4085
4087
|
L("mask", bl, [
|
|
4086
4088
|
L("rect", {
|
|
4087
4089
|
fill: e.color,
|
|
@@ -4122,23 +4124,23 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4122
4124
|
setup(e, { emit: t }) {
|
|
4123
4125
|
const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
|
|
4124
4126
|
const h = [];
|
|
4125
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4126
|
-
|
|
4127
|
+
return new URLSearchParams(r.modelValue).forEach((E, f) => {
|
|
4128
|
+
E !== "" && h.push(f);
|
|
4127
4129
|
}), h;
|
|
4128
4130
|
}), u = k(() => {
|
|
4129
4131
|
const h = r.config.fields;
|
|
4130
|
-
return Object.keys(h).filter((
|
|
4132
|
+
return Object.keys(h).filter((E) => {
|
|
4131
4133
|
var f;
|
|
4132
|
-
return (f = h == null ? void 0 : h[
|
|
4133
|
-
}).map((
|
|
4134
|
-
label: h[
|
|
4135
|
-
value:
|
|
4134
|
+
return (f = h == null ? void 0 : h[E]) == null ? void 0 : f.searchable;
|
|
4135
|
+
}).map((E) => ({
|
|
4136
|
+
label: h[E].label || E,
|
|
4137
|
+
value: E,
|
|
4136
4138
|
expanded: !1
|
|
4137
4139
|
}));
|
|
4138
4140
|
});
|
|
4139
4141
|
Ae(() => r.modelValue, (h) => {
|
|
4140
|
-
o.value = {}, new URLSearchParams(h).forEach((
|
|
4141
|
-
o.value[f] =
|
|
4142
|
+
o.value = {}, new URLSearchParams(h).forEach((E, f) => {
|
|
4143
|
+
o.value[f] = E;
|
|
4142
4144
|
});
|
|
4143
4145
|
});
|
|
4144
4146
|
const d = () => {
|
|
@@ -4150,27 +4152,27 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4150
4152
|
}, p = () => {
|
|
4151
4153
|
g("");
|
|
4152
4154
|
}, y = (h) => `filter-${h}`, v = (h) => {
|
|
4153
|
-
var
|
|
4154
|
-
return (((f = (
|
|
4155
|
-
value:
|
|
4156
|
-
label:
|
|
4155
|
+
var E, f;
|
|
4156
|
+
return (((f = (E = r.config.schema) == null ? void 0 : E[h]) == null ? void 0 : f.values) ?? []).map((A) => ({
|
|
4157
|
+
value: A,
|
|
4158
|
+
label: A
|
|
4157
4159
|
}));
|
|
4158
4160
|
}, _ = (h) => {
|
|
4159
|
-
var
|
|
4160
|
-
return ((f = (
|
|
4161
|
+
var E, f;
|
|
4162
|
+
return ((f = (E = r.config.schema) == null ? void 0 : E[h]) == null ? void 0 : f.type) ?? "text";
|
|
4161
4163
|
}, N = (h) => {
|
|
4162
4164
|
o.value = {
|
|
4163
4165
|
...o.value,
|
|
4164
4166
|
[h]: ""
|
|
4165
|
-
},
|
|
4167
|
+
}, W();
|
|
4166
4168
|
}, w = () => {
|
|
4167
|
-
o.value = {},
|
|
4168
|
-
},
|
|
4169
|
-
const
|
|
4170
|
-
h && (a.value = !1), i("update:modelValue", new URLSearchParams(
|
|
4169
|
+
o.value = {}, W(!0);
|
|
4170
|
+
}, W = (h = !1) => {
|
|
4171
|
+
const E = Object.keys(o.value).reduce((f, A) => (o.value[A] && (f[A] = `${o.value[A]}`), f), {});
|
|
4172
|
+
h && (a.value = !1), i("update:modelValue", new URLSearchParams(E).toString());
|
|
4171
4173
|
};
|
|
4172
|
-
return (h,
|
|
4173
|
-
const f = K("KInput"),
|
|
4174
|
+
return (h, E) => {
|
|
4175
|
+
const f = K("KInput"), A = K("KButton"), F = K("KSelect");
|
|
4174
4176
|
return e.config.isExactMatch ? (m(), M(f, {
|
|
4175
4177
|
key: 0,
|
|
4176
4178
|
autocomplete: "off",
|
|
@@ -4192,8 +4194,8 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4192
4194
|
])
|
|
4193
4195
|
]),
|
|
4194
4196
|
_: 1
|
|
4195
|
-
}, 8, ["model-value", "placeholder"])) : (m(),
|
|
4196
|
-
B(
|
|
4197
|
+
}, 8, ["model-value", "placeholder"])) : (m(), I("div", _l, [
|
|
4198
|
+
B(A, {
|
|
4197
4199
|
appearance: "tertiary",
|
|
4198
4200
|
"data-testid": "filter-button",
|
|
4199
4201
|
onClick: d
|
|
@@ -4211,9 +4213,9 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4211
4213
|
[ge, a.value]
|
|
4212
4214
|
]),
|
|
4213
4215
|
me(L("div", wl, [
|
|
4214
|
-
(m(!0),
|
|
4216
|
+
(m(!0), I(ce, null, oe(u.value, (x) => {
|
|
4215
4217
|
var U, $;
|
|
4216
|
-
return m(),
|
|
4218
|
+
return m(), I("div", {
|
|
4217
4219
|
key: x.value,
|
|
4218
4220
|
class: "kong-ui-entity-filter-menu-item",
|
|
4219
4221
|
"data-testid": x.value
|
|
@@ -4222,8 +4224,8 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4222
4224
|
class: fe(["menu-item-title", { expanded: l.value.has(x.value) }]),
|
|
4223
4225
|
role: "button",
|
|
4224
4226
|
tabindex: "0",
|
|
4225
|
-
onClick: (
|
|
4226
|
-
onKeydown: Rn((
|
|
4227
|
+
onClick: (S) => c(x.value),
|
|
4228
|
+
onKeydown: Rn((S) => c(x.value), ["enter"])
|
|
4227
4229
|
}, [
|
|
4228
4230
|
V(O(x.label) + " ", 1),
|
|
4229
4231
|
me(L("span", Il, null, 512), [
|
|
@@ -4243,14 +4245,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4243
4245
|
key: 0,
|
|
4244
4246
|
id: y(x.value),
|
|
4245
4247
|
modelValue: o.value[x.value],
|
|
4246
|
-
"onUpdate:modelValue": (
|
|
4248
|
+
"onUpdate:modelValue": (S) => o.value[x.value] = S,
|
|
4247
4249
|
items: v(x.value),
|
|
4248
4250
|
placeholder: T(n)("filter.selectPlaceholder")
|
|
4249
4251
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(f, {
|
|
4250
4252
|
key: 1,
|
|
4251
4253
|
id: y(x.value),
|
|
4252
4254
|
modelValue: o.value[x.value],
|
|
4253
|
-
"onUpdate:modelValue": (
|
|
4255
|
+
"onUpdate:modelValue": (S) => o.value[x.value] = S,
|
|
4254
4256
|
autocomplete: "off",
|
|
4255
4257
|
placeholder: T(n)("filter.inputPlaceholder"),
|
|
4256
4258
|
type: _(x.value)
|
|
@@ -4259,22 +4261,22 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4259
4261
|
[ge, l.value.has(x.value)]
|
|
4260
4262
|
]),
|
|
4261
4263
|
me(L("div", $l, [
|
|
4262
|
-
B(
|
|
4264
|
+
B(A, {
|
|
4263
4265
|
appearance: "tertiary",
|
|
4264
4266
|
"data-testid": "apply-filter",
|
|
4265
4267
|
size: "small",
|
|
4266
|
-
onClick:
|
|
4268
|
+
onClick: E[0] || (E[0] = (S) => W(!0))
|
|
4267
4269
|
}, {
|
|
4268
4270
|
default: b(() => [
|
|
4269
4271
|
V(O(T(n)("filter.applyButtonText")), 1)
|
|
4270
4272
|
]),
|
|
4271
4273
|
_: 1
|
|
4272
4274
|
}),
|
|
4273
|
-
B(
|
|
4275
|
+
B(A, {
|
|
4274
4276
|
appearance: "tertiary",
|
|
4275
4277
|
"data-testid": "clear-filter",
|
|
4276
4278
|
size: "small",
|
|
4277
|
-
onClick: (
|
|
4279
|
+
onClick: (S) => N(x.value)
|
|
4278
4280
|
}, {
|
|
4279
4281
|
default: b(() => [
|
|
4280
4282
|
V(O(T(n)("filter.clearButtonText")), 1)
|
|
@@ -4287,7 +4289,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
|
4287
4289
|
], 8, Al);
|
|
4288
4290
|
}), 128)),
|
|
4289
4291
|
L("div", Fl, [
|
|
4290
|
-
B(
|
|
4292
|
+
B(A, {
|
|
4291
4293
|
appearance: "tertiary",
|
|
4292
4294
|
size: "small",
|
|
4293
4295
|
onClick: w
|
|
@@ -4479,13 +4481,13 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4479
4481
|
},
|
|
4480
4482
|
setup(e) {
|
|
4481
4483
|
const t = Xe(), n = Ml();
|
|
4482
|
-
return (r, i) => (m(),
|
|
4484
|
+
return (r, i) => (m(), I("div", {
|
|
4483
4485
|
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4484
4486
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4485
4487
|
role: "group"
|
|
4486
4488
|
}, [
|
|
4487
4489
|
L("div", Dl, [
|
|
4488
|
-
e.hideInfoHeader ? D("", !0) : (m(),
|
|
4490
|
+
e.hideInfoHeader ? D("", !0) : (m(), I("div", {
|
|
4489
4491
|
key: 0,
|
|
4490
4492
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4491
4493
|
}, [
|
|
@@ -4499,12 +4501,12 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4499
4501
|
]),
|
|
4500
4502
|
_: 1
|
|
4501
4503
|
}, 8, ["id"])) : D("", !0),
|
|
4502
|
-
e.description || T(t).description ? (m(),
|
|
4504
|
+
e.description || T(t).description ? (m(), I("div", Ul, [
|
|
4503
4505
|
z(r.$slots, "description", {}, () => [
|
|
4504
4506
|
L("p", null, O(e.description), 1)
|
|
4505
4507
|
], !0)
|
|
4506
4508
|
])) : D("", !0),
|
|
4507
|
-
T(t).footer ? (m(),
|
|
4509
|
+
T(t).footer ? (m(), I("div", jl, [
|
|
4508
4510
|
z(r.$slots, "footer", {}, void 0, !0)
|
|
4509
4511
|
])) : D("", !0)
|
|
4510
4512
|
], 2)),
|
|
@@ -4557,8 +4559,8 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4557
4559
|
};
|
|
4558
4560
|
return (c, g) => {
|
|
4559
4561
|
const p = K("KTooltip"), y = K("KExternalLink"), v = K("KClipboardProvider");
|
|
4560
|
-
return m(),
|
|
4561
|
-
l.value ? (m(),
|
|
4562
|
+
return m(), I("div", Hl, [
|
|
4563
|
+
l.value ? (m(), I("div", Vl, O(u.value), 1)) : s.value ? s.value ? (m(), M(y, {
|
|
4562
4564
|
key: 2,
|
|
4563
4565
|
class: "entity-link",
|
|
4564
4566
|
"hide-icon": !e.newWindow,
|
|
@@ -4580,7 +4582,7 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
|
4580
4582
|
}, 8, ["text"])
|
|
4581
4583
|
]),
|
|
4582
4584
|
_: 1
|
|
4583
|
-
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(),
|
|
4585
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), I("div", zl, O(" – "))),
|
|
4584
4586
|
s.value && e.allowCopy ? (m(), M(p, {
|
|
4585
4587
|
key: o.value,
|
|
4586
4588
|
class: "copy-uuid-tooltip",
|