@kong-ui-public/entities-shared 2.12.2 → 2.12.3-pr.1252.5bfaafa7.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 +242 -218
- package/dist/entities-shared.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +10 -0
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +10 -0
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -1
- package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts +11 -0
- package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as In, ref as R, unref as I, computed as A, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as
|
|
1
|
+
import { inject as In, ref as R, unref as I, computed as A, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as fe, normalizeClass as ue, withCtx as x, createElementBlock as S, createElementVNode as $, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as B, createVNode as N, createTextVNode as V, useCssVars as Tt, useSlots as Ge, renderSlot as Y, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as Le, onBeforeMount as Ft, withModifiers as He, onMounted as On, onUnmounted as Ln, withDirectives as he, vShow as me, withKeys as $n, Teleport as Nn } from "vue";
|
|
2
2
|
import ot from "axios";
|
|
3
3
|
import { createI18n as Bn, i18nTComponent as Rn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Kn } from "@kong/kongponents";
|
|
@@ -262,7 +262,7 @@ function tr(e, t, n, r = {
|
|
|
262
262
|
s.value = !1;
|
|
263
263
|
}
|
|
264
264
|
}, E = R(""), ee = async (m) => {
|
|
265
|
-
var v, y,
|
|
265
|
+
var v, y, L;
|
|
266
266
|
if (E.value !== m)
|
|
267
267
|
if (E.value = m || "", f.value === void 0)
|
|
268
268
|
try {
|
|
@@ -297,7 +297,7 @@ function tr(e, t, n, r = {
|
|
|
297
297
|
s.value = !1;
|
|
298
298
|
}
|
|
299
299
|
else
|
|
300
|
-
s.value = !0, d.value = "", m ? (c.value = (
|
|
300
|
+
s.value = !0, d.value = "", m ? (c.value = (L = f.value) == null ? void 0 : L.filter((F) => {
|
|
301
301
|
var j;
|
|
302
302
|
let k = !1;
|
|
303
303
|
for (const T of r.searchKeys) {
|
|
@@ -364,7 +364,7 @@ function ir(e) {
|
|
|
364
364
|
return console.warn("Failed to build valid URL:", r), "";
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Lt(e, t) {
|
|
368
368
|
const n = R(I(e)), r = R(I(t)), i = A(
|
|
369
369
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
370
370
|
), a = A(
|
|
@@ -387,7 +387,7 @@ function ar(e, t, n = "data") {
|
|
|
387
387
|
const r = I(t), { axiosInstance: i } = Ze({
|
|
388
388
|
...e.axiosRequestConfig,
|
|
389
389
|
headers: { ...(s = e.axiosRequestConfig) == null ? void 0 : s.headers, ...e.requestHeaders }
|
|
390
|
-
}), a =
|
|
390
|
+
}), a = Lt(e, r), o = R({
|
|
391
391
|
status: ve.Idle
|
|
392
392
|
});
|
|
393
393
|
return { fetcher: async (u) => {
|
|
@@ -439,10 +439,10 @@ function or() {
|
|
|
439
439
|
convertKeyToTitle: e
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const $t = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, lt = (e) => {
|
|
443
443
|
if (typeof e != "string")
|
|
444
444
|
throw new TypeError("Invalid argument expected string");
|
|
445
|
-
const t = e.match(
|
|
445
|
+
const t = e.match($t);
|
|
446
446
|
if (!t)
|
|
447
447
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
448
448
|
return t.shift(), t;
|
|
@@ -480,7 +480,7 @@ const Lt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
480
480
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
481
481
|
if (ft.indexOf(e) === -1)
|
|
482
482
|
throw new Error(`Invalid operator, expected one of ${ft.join("|")}`);
|
|
483
|
-
}, dr = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
483
|
+
}, dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && $t.test(e);
|
|
484
484
|
function fr(e) {
|
|
485
485
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
486
486
|
if (!t)
|
|
@@ -509,7 +509,7 @@ const z = {
|
|
|
509
509
|
useErrors: rr,
|
|
510
510
|
useExternalLinkCreator: ir,
|
|
511
511
|
useFetcher: ar,
|
|
512
|
-
useFetchUrlBuilder:
|
|
512
|
+
useFetchUrlBuilder: Lt,
|
|
513
513
|
useHelpers: Ot,
|
|
514
514
|
useStringHelpers: or,
|
|
515
515
|
useI18n: Qe,
|
|
@@ -542,12 +542,12 @@ const z = {
|
|
|
542
542
|
var s;
|
|
543
543
|
return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
544
544
|
});
|
|
545
|
-
return (s, u) => (h(), K(
|
|
545
|
+
return (s, u) => (h(), K(fe(e.isArrayItem ? "fieldset" : "div"), {
|
|
546
546
|
class: ue(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
547
547
|
}, {
|
|
548
548
|
default: x(() => [
|
|
549
549
|
e.isArrayItem ? (h(), S("legend", hr, [
|
|
550
|
-
|
|
550
|
+
$("b", null, O(l.value), 1)
|
|
551
551
|
])) : D("", !0),
|
|
552
552
|
(h(!0), S(le, null, ie(Object.keys(o.value), (d, c) => (h(), K(Rt, {
|
|
553
553
|
key: `${i.value}-property-${c}`,
|
|
@@ -586,7 +586,7 @@ const z = {
|
|
|
586
586
|
onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
|
|
587
587
|
}, {
|
|
588
588
|
default: x(() => [
|
|
589
|
-
|
|
589
|
+
V(O(e.item.value || I(t)("baseConfigCard.commonFields.link")), 1)
|
|
590
590
|
]),
|
|
591
591
|
_: 1
|
|
592
592
|
})
|
|
@@ -609,13 +609,13 @@ const z = {
|
|
|
609
609
|
appearance: e.status ? "success" : "neutral"
|
|
610
610
|
}, {
|
|
611
611
|
default: x(() => [
|
|
612
|
-
|
|
612
|
+
V(O(e.status ? I(t)("baseConfigCard.statusBadge.enabledLabel") : I(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
613
613
|
]),
|
|
614
614
|
_: 1
|
|
615
615
|
}, 8, ["appearance"]);
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
}), br = "#0044f4", xr = "#e0e4ea", Cr = "#3a3f51", _r = "#afb7c5", kr = "#0044f4", Ar = "1px", wr = "16px", Sr = "20px", Ir = { class: "config-card-details-row" }, Er = ["data-testid"], Tr = ["data-testid"], Fr = ["data-testid"], Or = ["data-testid"],
|
|
618
|
+
}), br = "#0044f4", xr = "#e0e4ea", Cr = "#3a3f51", _r = "#afb7c5", kr = "#0044f4", Ar = "1px", wr = "16px", Sr = "20px", Ir = { class: "config-card-details-row" }, Er = ["data-testid"], Tr = ["data-testid"], Fr = ["data-testid"], Or = ["data-testid"], Lr = { key: 1 }, $r = ["data-testid"], Nr = ["data-testid"], Br = ["data-testid"], Rr = ["data-testid"], Kr = {
|
|
619
619
|
name: "ConfigCardItem",
|
|
620
620
|
components: { JsonCardItem: Bt, StatusBadge: vr, InternalLinkItem: yr }
|
|
621
621
|
}, Mr = /* @__PURE__ */ H({
|
|
@@ -758,25 +758,25 @@ const z = {
|
|
|
758
758
|
return (b, g) => {
|
|
759
759
|
const _ = B("KLabel"), M = B("KBadge"), E = B("KCopy"), ee = B("KTooltip");
|
|
760
760
|
return h(), S("div", Ir, [
|
|
761
|
-
|
|
761
|
+
$("div", {
|
|
762
762
|
class: "config-card-details-label",
|
|
763
763
|
"data-testid": `${e.item.key}-label`
|
|
764
764
|
}, [
|
|
765
|
-
|
|
765
|
+
Y(b.$slots, "label", { item: e.item }, () => [
|
|
766
766
|
N(_, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
767
767
|
default: x(() => [
|
|
768
|
-
|
|
768
|
+
V(O(e.item.label) + " ", 1)
|
|
769
769
|
]),
|
|
770
770
|
_: 2
|
|
771
771
|
}, [
|
|
772
772
|
s.value ? {
|
|
773
773
|
name: "tooltip",
|
|
774
774
|
fn: x(() => [
|
|
775
|
-
|
|
775
|
+
$("div", {
|
|
776
776
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
777
777
|
}, [
|
|
778
|
-
|
|
779
|
-
|
|
778
|
+
Y(b.$slots, "label-tooltip", {}, () => [
|
|
779
|
+
V(O(e.item.tooltip), 1)
|
|
780
780
|
], !0)
|
|
781
781
|
], 8, Tr)
|
|
782
782
|
]),
|
|
@@ -785,15 +785,15 @@ const z = {
|
|
|
785
785
|
]), 1024)
|
|
786
786
|
], !0)
|
|
787
787
|
], 8, Er),
|
|
788
|
-
|
|
788
|
+
$("div", {
|
|
789
789
|
class: "config-card-details-value",
|
|
790
790
|
"data-testid": `${e.item.key}-property-value`
|
|
791
791
|
}, [
|
|
792
|
-
|
|
792
|
+
Y(b.$slots, e.item.key, {
|
|
793
793
|
rowValue: e.item.value
|
|
794
794
|
}, () => [
|
|
795
|
-
l.value ? (h(), S("div",
|
|
796
|
-
(h(), K(
|
|
795
|
+
l.value ? (h(), S("div", Lr, [
|
|
796
|
+
(h(), K(fe(c.value.tag), En(Tn(c.value.attrs)), {
|
|
797
797
|
default: x(() => [
|
|
798
798
|
c.value.additionalComponent === "KBadge" ? (h(), S("div", {
|
|
799
799
|
key: 0,
|
|
@@ -807,11 +807,11 @@ const z = {
|
|
|
807
807
|
"truncation-tooltip": ""
|
|
808
808
|
}, {
|
|
809
809
|
default: x(() => [
|
|
810
|
-
|
|
810
|
+
V(O(m), 1)
|
|
811
811
|
]),
|
|
812
812
|
_: 2
|
|
813
813
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
814
|
-
], 8,
|
|
814
|
+
], 8, $r)) : D("", !0),
|
|
815
815
|
c.value.additionalComponent === "KCopy" ? (h(), S("div", {
|
|
816
816
|
key: 1,
|
|
817
817
|
class: "copy-uuid-array",
|
|
@@ -834,7 +834,7 @@ const z = {
|
|
|
834
834
|
"data-testid": `${e.item.key}-badge-method-${v}`
|
|
835
835
|
}, {
|
|
836
836
|
default: x(() => [
|
|
837
|
-
|
|
837
|
+
V(O(m), 1)
|
|
838
838
|
]),
|
|
839
839
|
_: 2
|
|
840
840
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -854,7 +854,7 @@ const z = {
|
|
|
854
854
|
text: I(f) ? e.item.value : ""
|
|
855
855
|
}, {
|
|
856
856
|
default: x(() => [
|
|
857
|
-
|
|
857
|
+
$("span", {
|
|
858
858
|
ref_key: "textContent",
|
|
859
859
|
ref: p,
|
|
860
860
|
class: ue(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -923,7 +923,7 @@ const z = {
|
|
|
923
923
|
appearance: t.requestMethod
|
|
924
924
|
}, {
|
|
925
925
|
default: x(() => [
|
|
926
|
-
|
|
926
|
+
V(O(t.requestMethod), 1)
|
|
927
927
|
]),
|
|
928
928
|
_: 1
|
|
929
929
|
}, 8, ["appearance"]),
|
|
@@ -1453,13 +1453,13 @@ var tn = new Z("tag:yaml.org,2002:binary", {
|
|
|
1453
1453
|
construct: Ei,
|
|
1454
1454
|
predicate: Fi,
|
|
1455
1455
|
represent: Ti
|
|
1456
|
-
}), Oi = Object.prototype.hasOwnProperty,
|
|
1457
|
-
function
|
|
1456
|
+
}), Oi = Object.prototype.hasOwnProperty, Li = Object.prototype.toString;
|
|
1457
|
+
function $i(e) {
|
|
1458
1458
|
if (e === null)
|
|
1459
1459
|
return !0;
|
|
1460
1460
|
var t = [], n, r, i, a, o, l = e;
|
|
1461
1461
|
for (n = 0, r = l.length; n < r; n += 1) {
|
|
1462
|
-
if (i = l[n], o = !1,
|
|
1462
|
+
if (i = l[n], o = !1, Li.call(i) !== "[object Object]")
|
|
1463
1463
|
return !1;
|
|
1464
1464
|
for (a in i)
|
|
1465
1465
|
if (Oi.call(i, a))
|
|
@@ -1481,7 +1481,7 @@ function Ni(e) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
var nn = new Z("tag:yaml.org,2002:omap", {
|
|
1483
1483
|
kind: "sequence",
|
|
1484
|
-
resolve:
|
|
1484
|
+
resolve: $i,
|
|
1485
1485
|
construct: Ni
|
|
1486
1486
|
}), Bi = Object.prototype.toString;
|
|
1487
1487
|
function Ri(e) {
|
|
@@ -1542,7 +1542,7 @@ function mt(e) {
|
|
|
1542
1542
|
function ae(e) {
|
|
1543
1543
|
return e === 10 || e === 13;
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function ge(e) {
|
|
1546
1546
|
return e === 9 || e === 32;
|
|
1547
1547
|
}
|
|
1548
1548
|
function te(e) {
|
|
@@ -1652,7 +1652,7 @@ function tt(e) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
function W(e, t, n) {
|
|
1654
1654
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1655
|
-
for (;
|
|
1655
|
+
for (; ge(i); )
|
|
1656
1656
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1657
1657
|
if (t && i === 35)
|
|
1658
1658
|
do
|
|
@@ -1697,7 +1697,7 @@ function Gi(e, t, n) {
|
|
|
1697
1697
|
break;
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
l && (ce(e, a, o, !1), nt(e, e.line - s), a = o = e.position, l = !1),
|
|
1700
|
+
l && (ce(e, a, o, !1), nt(e, e.line - s), a = o = e.position, l = !1), ge(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1701
1701
|
}
|
|
1702
1702
|
return ce(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = p, !1);
|
|
1703
1703
|
}
|
|
@@ -1769,10 +1769,10 @@ function ea(e, t) {
|
|
|
1769
1769
|
d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
|
|
1770
1770
|
else
|
|
1771
1771
|
break;
|
|
1772
|
-
if (
|
|
1772
|
+
if (ge(c)) {
|
|
1773
1773
|
do
|
|
1774
1774
|
c = e.input.charCodeAt(++e.position);
|
|
1775
|
-
while (
|
|
1775
|
+
while (ge(c));
|
|
1776
1776
|
if (c === 35)
|
|
1777
1777
|
do
|
|
1778
1778
|
c = e.input.charCodeAt(++e.position);
|
|
@@ -1791,7 +1791,7 @@ function ea(e, t) {
|
|
|
1791
1791
|
`);
|
|
1792
1792
|
break;
|
|
1793
1793
|
}
|
|
1794
|
-
for (r ?
|
|
1794
|
+
for (r ? ge(c) ? (u = !0, e.result += G.repeat(`
|
|
1795
1795
|
`, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
|
|
1796
1796
|
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
|
|
1797
1797
|
`, s) : e.result += G.repeat(`
|
|
@@ -1828,7 +1828,7 @@ function ta(e, t, n) {
|
|
|
1828
1828
|
if (o = e.line, l = e.lineStart, s = e.position, !ke(e, n, on, !1, !0))
|
|
1829
1829
|
break;
|
|
1830
1830
|
if (e.line === a) {
|
|
1831
|
-
for (E = e.input.charCodeAt(e.position);
|
|
1831
|
+
for (E = e.input.charCodeAt(e.position); ge(E); )
|
|
1832
1832
|
E = e.input.charCodeAt(++e.position);
|
|
1833
1833
|
if (E === 58)
|
|
1834
1834
|
E = e.input.charCodeAt(++e.position), te(E) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (Ce(e, c, p, f, b, null, o, l, s), f = b = g = null), M = !0, _ = !1, i = !1, f = e.tag, b = e.result;
|
|
@@ -1918,7 +1918,7 @@ function aa(e) {
|
|
|
1918
1918
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !te(o); )
|
|
1919
1919
|
o = e.input.charCodeAt(++e.position);
|
|
1920
1920
|
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; ) {
|
|
1921
|
-
for (;
|
|
1921
|
+
for (; ge(o); )
|
|
1922
1922
|
o = e.input.charCodeAt(++e.position);
|
|
1923
1923
|
if (o === 35) {
|
|
1924
1924
|
do
|
|
@@ -2041,7 +2041,7 @@ function ze(e, t) {
|
|
|
2041
2041
|
return `
|
|
2042
2042
|
` + G.repeat(" ", e.indent * t);
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function La(e, t) {
|
|
2045
2045
|
var n, r, i;
|
|
2046
2046
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2047
2047
|
if (i = e.implicitTypes[n], i.resolve(t))
|
|
@@ -2067,7 +2067,7 @@ function _t(e, t, n) {
|
|
|
2067
2067
|
) : r && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn) && e !== Ye && !(t === Ke && !i) || Ct(t) && !Me(t) && e === Ye || t === Ke && i
|
|
2068
2068
|
);
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function $a(e) {
|
|
2071
2071
|
return Te(e) && e !== rt && !Me(e) && e !== ba && e !== _a && e !== Ke && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn && e !== Ye && e !== ga && e !== va && e !== pa && e !== wa && e !== xa && e !== Ca && e !== ya && e !== ha && e !== ma && e !== ka && e !== Aa;
|
|
2072
2072
|
}
|
|
2073
2073
|
function Na(e) {
|
|
@@ -2083,7 +2083,7 @@ function _n(e) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
var kn = 1, We = 2, An = 3, wn = 4, be = 5;
|
|
2085
2085
|
function Ba(e, t, n, r, i, a, o, l) {
|
|
2086
|
-
var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, g =
|
|
2086
|
+
var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, g = $a(we(e, 0)) && Na(we(e, e.length - 1));
|
|
2087
2087
|
if (t || o)
|
|
2088
2088
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2089
2089
|
if (u = we(e, s), !Te(u))
|
|
@@ -2111,7 +2111,7 @@ function Ra(e, t, n, r, i) {
|
|
|
2111
2111
|
return e.quotingType === Ee ? '"' + t + '"' : "'" + t + "'";
|
|
2112
2112
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2113
2113
|
function s(u) {
|
|
2114
|
-
return
|
|
2114
|
+
return La(e, u);
|
|
2115
2115
|
}
|
|
2116
2116
|
switch (Ba(
|
|
2117
2117
|
t,
|
|
@@ -2407,10 +2407,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2407
2407
|
item: u
|
|
2408
2408
|
}, _e({
|
|
2409
2409
|
label: x(() => [
|
|
2410
|
-
|
|
2410
|
+
Y(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2411
2411
|
]),
|
|
2412
2412
|
[u.key]: x(({ rowValue: d }) => [
|
|
2413
|
-
|
|
2413
|
+
Y(o.$slots, u.key, {
|
|
2414
2414
|
row: u,
|
|
2415
2415
|
rowValue: d
|
|
2416
2416
|
}, void 0, !0)
|
|
@@ -2420,7 +2420,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2420
2420
|
i(u) ? {
|
|
2421
2421
|
name: "label-tooltip",
|
|
2422
2422
|
fn: x(() => [
|
|
2423
|
-
|
|
2423
|
+
Y(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2424
2424
|
]),
|
|
2425
2425
|
key: "0"
|
|
2426
2426
|
} : void 0
|
|
@@ -2440,15 +2440,15 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2440
2440
|
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2441
2441
|
], 64));
|
|
2442
2442
|
}
|
|
2443
|
-
}), po = /* @__PURE__ */ re(fo, [["__scopeId", "data-v-147a2f70"]]), oe = "24px",
|
|
2443
|
+
}), po = /* @__PURE__ */ re(fo, [["__scopeId", "data-v-147a2f70"]]), oe = "24px", $e = (e, t) => {
|
|
2444
2444
|
const n = e.__vccOpts || e;
|
|
2445
2445
|
for (const [r, i] of t)
|
|
2446
2446
|
n[r] = i;
|
|
2447
2447
|
return n;
|
|
2448
|
-
}, ho = (e) => (Oe("data-v-2295e0fb"), e = e(),
|
|
2448
|
+
}, ho = (e) => (Oe("data-v-2295e0fb"), e = e(), Le(), e), mo = ["aria-hidden"], go = {
|
|
2449
2449
|
key: 0,
|
|
2450
2450
|
"data-testid": "kui-icon-svg-title"
|
|
2451
|
-
}, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */
|
|
2451
|
+
}, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ $("path", {
|
|
2452
2452
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2453
2453
|
fill: "currentColor"
|
|
2454
2454
|
}, null, -1)), vo = /* @__PURE__ */ H({
|
|
@@ -2520,7 +2520,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2520
2520
|
lineHeight: "0",
|
|
2521
2521
|
width: n.value
|
|
2522
2522
|
}));
|
|
2523
|
-
return (i, a) => (h(), K(
|
|
2523
|
+
return (i, a) => (h(), K(fe(e.as), {
|
|
2524
2524
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2525
2525
|
class: "kui-icon add-icon",
|
|
2526
2526
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -2544,10 +2544,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2544
2544
|
_: 1
|
|
2545
2545
|
}, 8, ["aria-hidden", "style"]));
|
|
2546
2546
|
}
|
|
2547
|
-
}), bo = /* @__PURE__ */
|
|
2547
|
+
}), bo = /* @__PURE__ */ $e(vo, [["__scopeId", "data-v-2295e0fb"]]), xo = (e) => (Oe("data-v-40a7f387"), e = e(), Le(), e), Co = ["aria-hidden"], _o = {
|
|
2548
2548
|
key: 0,
|
|
2549
2549
|
"data-testid": "kui-icon-svg-title"
|
|
2550
|
-
}, ko = /* @__PURE__ */ xo(() => /* @__PURE__ */
|
|
2550
|
+
}, ko = /* @__PURE__ */ xo(() => /* @__PURE__ */ $("path", {
|
|
2551
2551
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2552
2552
|
fill: "currentColor"
|
|
2553
2553
|
}, null, -1)), Ao = /* @__PURE__ */ H({
|
|
@@ -2619,7 +2619,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2619
2619
|
lineHeight: "0",
|
|
2620
2620
|
width: n.value
|
|
2621
2621
|
}));
|
|
2622
|
-
return (i, a) => (h(), K(
|
|
2622
|
+
return (i, a) => (h(), K(fe(e.as), {
|
|
2623
2623
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2624
2624
|
class: "kui-icon book-icon",
|
|
2625
2625
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2643,10 +2643,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2643
2643
|
_: 1
|
|
2644
2644
|
}, 8, ["aria-hidden", "style"]));
|
|
2645
2645
|
}
|
|
2646
|
-
}), wo = /* @__PURE__ */
|
|
2646
|
+
}), wo = /* @__PURE__ */ $e(Ao, [["__scopeId", "data-v-40a7f387"]]), So = (e) => (Oe("data-v-98c34919"), e = e(), Le(), e), Io = ["aria-hidden"], Eo = {
|
|
2647
2647
|
key: 0,
|
|
2648
2648
|
"data-testid": "kui-icon-svg-title"
|
|
2649
|
-
}, To = /* @__PURE__ */ So(() => /* @__PURE__ */
|
|
2649
|
+
}, To = /* @__PURE__ */ So(() => /* @__PURE__ */ $("path", {
|
|
2650
2650
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2651
2651
|
fill: "currentColor"
|
|
2652
2652
|
}, null, -1)), Fo = /* @__PURE__ */ H({
|
|
@@ -2718,7 +2718,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2718
2718
|
lineHeight: "0",
|
|
2719
2719
|
width: n.value
|
|
2720
2720
|
}));
|
|
2721
|
-
return (i, a) => (h(), K(
|
|
2721
|
+
return (i, a) => (h(), K(fe(e.as), {
|
|
2722
2722
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2723
2723
|
class: "kui-icon chevron-down-icon",
|
|
2724
2724
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -2742,10 +2742,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["aria-hidden", "style"]));
|
|
2744
2744
|
}
|
|
2745
|
-
}), Oo = /* @__PURE__ */
|
|
2745
|
+
}), Oo = /* @__PURE__ */ $e(Fo, [["__scopeId", "data-v-98c34919"]]), Lo = (e) => (Oe("data-v-19f4cbbe"), e = e(), Le(), e), $o = ["aria-hidden"], No = {
|
|
2746
2746
|
key: 0,
|
|
2747
2747
|
"data-testid": "kui-icon-svg-title"
|
|
2748
|
-
}, Bo = /* @__PURE__ */
|
|
2748
|
+
}, Bo = /* @__PURE__ */ Lo(() => /* @__PURE__ */ $("path", {
|
|
2749
2749
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2750
2750
|
fill: "currentColor"
|
|
2751
2751
|
}, null, -1)), Ro = /* @__PURE__ */ H({
|
|
@@ -2817,7 +2817,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2817
2817
|
lineHeight: "0",
|
|
2818
2818
|
width: n.value
|
|
2819
2819
|
}));
|
|
2820
|
-
return (i, a) => (h(), K(
|
|
2820
|
+
return (i, a) => (h(), K(fe(e.as), {
|
|
2821
2821
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2822
2822
|
class: "kui-icon close-icon",
|
|
2823
2823
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -2836,15 +2836,15 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2836
2836
|
}, [
|
|
2837
2837
|
e.title ? (h(), S("title", No, O(e.title), 1)) : D("", !0),
|
|
2838
2838
|
Bo
|
|
2839
|
-
], 8,
|
|
2839
|
+
], 8, $o))
|
|
2840
2840
|
]),
|
|
2841
2841
|
_: 1
|
|
2842
2842
|
}, 8, ["aria-hidden", "style"]));
|
|
2843
2843
|
}
|
|
2844
|
-
}), Ko = /* @__PURE__ */
|
|
2844
|
+
}), Ko = /* @__PURE__ */ $e(Ro, [["__scopeId", "data-v-19f4cbbe"]]), Mo = (e) => (Oe("data-v-13f41aa3"), e = e(), Le(), e), Do = ["aria-hidden"], jo = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
"data-testid": "kui-icon-svg-title"
|
|
2847
|
-
}, Uo = /* @__PURE__ */ Mo(() => /* @__PURE__ */
|
|
2847
|
+
}, Uo = /* @__PURE__ */ Mo(() => /* @__PURE__ */ $("path", {
|
|
2848
2848
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
2849
2849
|
fill: "currentColor"
|
|
2850
2850
|
}, null, -1)), qo = /* @__PURE__ */ H({
|
|
@@ -2916,7 +2916,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2916
2916
|
lineHeight: "0",
|
|
2917
2917
|
width: n.value
|
|
2918
2918
|
}));
|
|
2919
|
-
return (i, a) => (h(), K(
|
|
2919
|
+
return (i, a) => (h(), K(fe(e.as), {
|
|
2920
2920
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2921
2921
|
class: "kui-icon copy-icon",
|
|
2922
2922
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -2940,7 +2940,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2940
2940
|
_: 1
|
|
2941
2941
|
}, 8, ["aria-hidden", "style"]));
|
|
2942
2942
|
}
|
|
2943
|
-
}), Po = /* @__PURE__ */
|
|
2943
|
+
}), Po = /* @__PURE__ */ $e(qo, [["__scopeId", "data-v-13f41aa3"]]), Ho = {
|
|
2944
|
+
class: "config-card-title",
|
|
2945
|
+
"data-testid": "config-card-title"
|
|
2946
|
+
}, Vo = { class: "config-card-actions" }, Yo = ["href"], zo = { class: "config-card-details-section" }, Wo = /* @__PURE__ */ H({
|
|
2944
2947
|
__name: "EntityBaseConfigCard",
|
|
2945
2948
|
props: {
|
|
2946
2949
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3010,6 +3013,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3010
3013
|
type: String,
|
|
3011
3014
|
default: "",
|
|
3012
3015
|
required: !1
|
|
3016
|
+
},
|
|
3017
|
+
titleTag: {
|
|
3018
|
+
type: String,
|
|
3019
|
+
default: "h2"
|
|
3013
3020
|
}
|
|
3014
3021
|
},
|
|
3015
3022
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
@@ -3071,17 +3078,17 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3071
3078
|
var F, k, j;
|
|
3072
3079
|
if (!g.value)
|
|
3073
3080
|
return [];
|
|
3074
|
-
const y = [],
|
|
3081
|
+
const y = [], L = Object.keys(g.value).length;
|
|
3075
3082
|
for (const T in g.value) {
|
|
3076
3083
|
const w = (k = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : k.order, U = (j = c[T]) == null ? void 0 : j.order;
|
|
3077
|
-
let q =
|
|
3078
|
-
(U || U === 0) && (q = U === -1 ?
|
|
3084
|
+
let q = L;
|
|
3085
|
+
(U || U === 0) && (q = U === -1 ? L + 1 : U), w && (q = w === -1 ? L + 1 : w), y.push([T, q]);
|
|
3079
3086
|
}
|
|
3080
3087
|
return y.sort(function(T, w) {
|
|
3081
3088
|
return T[1] - w[1];
|
|
3082
3089
|
}), y.map((T) => {
|
|
3083
|
-
var
|
|
3084
|
-
const w = T[0], U = (
|
|
3090
|
+
var pe, at;
|
|
3091
|
+
const w = T[0], U = (pe = g.value) == null ? void 0 : pe[w], q = ((at = r.configSchema) == null ? void 0 : at[w]) || {}, J = c[w];
|
|
3085
3092
|
return {
|
|
3086
3093
|
key: w,
|
|
3087
3094
|
value: U,
|
|
@@ -3096,11 +3103,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3096
3103
|
var k, j;
|
|
3097
3104
|
if (!g.value || !r.pluginConfigKey)
|
|
3098
3105
|
return [];
|
|
3099
|
-
const y = g.value[r.pluginConfigKey] || {},
|
|
3106
|
+
const y = g.value[r.pluginConfigKey] || {}, L = Object.keys(y).length, F = [];
|
|
3100
3107
|
for (const T in y) {
|
|
3101
3108
|
const w = (j = (k = r.pluginConfigSchema) == null ? void 0 : k[T]) == null ? void 0 : j.order, U = y[T];
|
|
3102
|
-
let q = U != null && U !== "" ?
|
|
3103
|
-
w && (q = w === -1 ?
|
|
3109
|
+
let q = U != null && U !== "" ? L - 1 : L;
|
|
3110
|
+
w && (q = w === -1 ? L + 1 : w), F.push([T, q]);
|
|
3104
3111
|
}
|
|
3105
3112
|
return F.sort(function(T, w) {
|
|
3106
3113
|
return T[1] - w[1];
|
|
@@ -3118,19 +3125,19 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3118
3125
|
};
|
|
3119
3126
|
}).filter((T) => !T.hidden);
|
|
3120
3127
|
}), E = A(() => {
|
|
3121
|
-
var y,
|
|
3128
|
+
var y, L, F, k;
|
|
3122
3129
|
return {
|
|
3123
3130
|
basic: (y = _.value) == null ? void 0 : y.filter((j) => j.section === ne.Basic),
|
|
3124
|
-
advanced: (
|
|
3131
|
+
advanced: (L = _.value) == null ? void 0 : L.filter((j) => j.section === ne.Advanced),
|
|
3125
3132
|
plugin: (k = M.value) == null ? void 0 : k.concat((F = _.value) == null ? void 0 : F.filter((j) => j.section === ne.Plugin))
|
|
3126
3133
|
};
|
|
3127
3134
|
}), ee = A(() => {
|
|
3128
3135
|
const y = [];
|
|
3129
3136
|
return E.value.basic.length && y.push("basic"), E.value.advanced.length && y.push("advanced"), E.value.plugin.length && y.push("plugin"), y;
|
|
3130
3137
|
}), m = A(() => {
|
|
3131
|
-
var
|
|
3138
|
+
var L, F;
|
|
3132
3139
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3133
|
-
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((
|
|
3140
|
+
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((L = r.config) == null ? void 0 : L.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), y = y.replace(/{id}/gi, r.config.entityId), y;
|
|
3134
3141
|
});
|
|
3135
3142
|
return Ae(p, (y) => {
|
|
3136
3143
|
n("loading", y);
|
|
@@ -3149,23 +3156,26 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3149
3156
|
g.value && typeof g.value[F] > "u" && (g.value[F] = null);
|
|
3150
3157
|
}), n("fetch:success", y);
|
|
3151
3158
|
} catch (y) {
|
|
3152
|
-
const
|
|
3153
|
-
b.value =
|
|
3159
|
+
const L = a(y);
|
|
3160
|
+
b.value = L.startsWith("code") ? i("baseConfigCard.errors.load") : L, f.value = !0, n("fetch:error", y);
|
|
3154
3161
|
} finally {
|
|
3155
3162
|
p.value = !1;
|
|
3156
3163
|
}
|
|
3157
|
-
}), (y,
|
|
3164
|
+
}), (y, L) => {
|
|
3158
3165
|
const F = B("KLabel"), k = B("KSelect"), j = B("KButton"), T = B("KSkeleton"), w = B("KEmptyState"), U = B("KCard");
|
|
3159
|
-
return h(), K(U, {
|
|
3166
|
+
return h(), K(U, {
|
|
3167
|
+
class: "kong-ui-entity-base-config-card",
|
|
3168
|
+
"title-tag": e.titleTag
|
|
3169
|
+
}, _e({
|
|
3160
3170
|
actions: x(() => [
|
|
3161
|
-
|
|
3162
|
-
|
|
3171
|
+
$("div", Vo, [
|
|
3172
|
+
Y(y.$slots, "actions", {}, void 0, !0),
|
|
3163
3173
|
N(F, {
|
|
3164
3174
|
class: "config-format-select-label",
|
|
3165
3175
|
"data-testid": "config-format-select-label"
|
|
3166
3176
|
}, {
|
|
3167
3177
|
default: x(() => [
|
|
3168
|
-
|
|
3178
|
+
V(O(e.label), 1)
|
|
3169
3179
|
]),
|
|
3170
3180
|
_: 1
|
|
3171
3181
|
}),
|
|
@@ -3181,7 +3191,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3181
3191
|
"data-testid": "book-icon"
|
|
3182
3192
|
}, {
|
|
3183
3193
|
default: x(() => [
|
|
3184
|
-
|
|
3194
|
+
$("a", {
|
|
3185
3195
|
href: e.configCardDoc,
|
|
3186
3196
|
rel: "noopener",
|
|
3187
3197
|
target: "_blank"
|
|
@@ -3205,11 +3215,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3205
3215
|
"icon-variant": "error"
|
|
3206
3216
|
}, {
|
|
3207
3217
|
default: x(() => [
|
|
3208
|
-
|
|
3218
|
+
$("h3", null, O(b.value), 1)
|
|
3209
3219
|
]),
|
|
3210
3220
|
_: 1
|
|
3211
3221
|
})) : D("", !0),
|
|
3212
|
-
|
|
3222
|
+
$("div", zo, [
|
|
3213
3223
|
N(po, {
|
|
3214
3224
|
config: e.config,
|
|
3215
3225
|
"fetcher-url": m.value,
|
|
@@ -3220,10 +3230,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3220
3230
|
}, _e({ _: 2 }, [
|
|
3221
3231
|
ie(Object.keys(y.$slots), (q) => ({
|
|
3222
3232
|
name: q,
|
|
3223
|
-
fn: x(({ row: J, rowValue:
|
|
3224
|
-
|
|
3233
|
+
fn: x(({ row: J, rowValue: pe }) => [
|
|
3234
|
+
Y(y.$slots, q, {
|
|
3225
3235
|
row: J,
|
|
3226
|
-
rowValue:
|
|
3236
|
+
rowValue: pe
|
|
3227
3237
|
}, void 0, !0)
|
|
3228
3238
|
])
|
|
3229
3239
|
}))
|
|
@@ -3235,18 +3245,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3235
3245
|
e.hideTitle ? void 0 : {
|
|
3236
3246
|
name: "title",
|
|
3237
3247
|
fn: x(() => [
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3248
|
+
$("span", Ho, [
|
|
3249
|
+
Y(y.$slots, "title", {}, () => [
|
|
3250
|
+
V(O(I(i)("baseConfigCard.title")), 1)
|
|
3241
3251
|
], !0)
|
|
3242
3252
|
])
|
|
3243
3253
|
]),
|
|
3244
3254
|
key: "0"
|
|
3245
3255
|
}
|
|
3246
|
-
]),
|
|
3256
|
+
]), 1032, ["title-tag"]);
|
|
3247
3257
|
};
|
|
3248
3258
|
}
|
|
3249
|
-
}),
|
|
3259
|
+
}), Kl = /* @__PURE__ */ re(Wo, [["__scopeId", "data-v-7c5b607d"]]), Jo = {
|
|
3250
3260
|
class: "form-actions",
|
|
3251
3261
|
"data-testid": "form-actions"
|
|
3252
3262
|
}, Go = /* @__PURE__ */ H({
|
|
@@ -3343,13 +3353,13 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3343
3353
|
s.value = !1;
|
|
3344
3354
|
}
|
|
3345
3355
|
}), (m, v) => {
|
|
3346
|
-
const y = B("KSkeleton"),
|
|
3356
|
+
const y = B("KSkeleton"), L = B("KEmptyState"), F = B("KAlert"), k = B("KButton"), j = B("KTabs"), T = B("KSlideout"), w = B("KCard");
|
|
3347
3357
|
return h(), K(w, { class: "kong-ui-entity-base-form" }, {
|
|
3348
3358
|
default: x(() => [
|
|
3349
3359
|
s.value ? (h(), K(y, {
|
|
3350
3360
|
key: 0,
|
|
3351
3361
|
type: "form"
|
|
3352
|
-
})) : u.value ? (h(), K(
|
|
3362
|
+
})) : u.value ? (h(), K(L, {
|
|
3353
3363
|
key: 1,
|
|
3354
3364
|
"action-button-text": I(a)("baseForm.actions.back"),
|
|
3355
3365
|
"data-testid": "form-fetch-error",
|
|
@@ -3357,7 +3367,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3357
3367
|
onClickAction: g
|
|
3358
3368
|
}, {
|
|
3359
3369
|
default: x(() => [
|
|
3360
|
-
|
|
3370
|
+
$("h3", null, O(d.value), 1)
|
|
3361
3371
|
]),
|
|
3362
3372
|
_: 1
|
|
3363
3373
|
}, 8, ["action-button-text"])) : (h(), S("form", {
|
|
@@ -3366,22 +3376,22 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3366
3376
|
onReset: He(_, ["prevent"]),
|
|
3367
3377
|
onSubmit: He(M, ["prevent"])
|
|
3368
3378
|
}, [
|
|
3369
|
-
|
|
3379
|
+
Y(m.$slots, "default", {}, void 0, !0),
|
|
3370
3380
|
e.errorMessage ? (h(), K(F, {
|
|
3371
3381
|
key: 0,
|
|
3372
3382
|
appearance: "danger",
|
|
3373
3383
|
"data-testid": "form-error",
|
|
3374
3384
|
message: e.errorMessage
|
|
3375
3385
|
}, null, 8, ["message"])) : D("", !0),
|
|
3376
|
-
|
|
3377
|
-
|
|
3386
|
+
$("div", Jo, [
|
|
3387
|
+
Y(m.$slots, "form-actions", {}, () => [
|
|
3378
3388
|
N(k, {
|
|
3379
3389
|
appearance: "tertiary",
|
|
3380
3390
|
"data-testid": "form-view-configuration",
|
|
3381
3391
|
onClick: v[0] || (v[0] = (U) => b())
|
|
3382
3392
|
}, {
|
|
3383
3393
|
default: x(() => [
|
|
3384
|
-
|
|
3394
|
+
V(O(I(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3385
3395
|
]),
|
|
3386
3396
|
_: 1
|
|
3387
3397
|
}),
|
|
@@ -3392,7 +3402,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3392
3402
|
type: "reset"
|
|
3393
3403
|
}, {
|
|
3394
3404
|
default: x(() => [
|
|
3395
|
-
|
|
3405
|
+
V(O(I(a)("baseForm.actions.cancel")), 1)
|
|
3396
3406
|
]),
|
|
3397
3407
|
_: 1
|
|
3398
3408
|
}, 8, ["disabled"]),
|
|
@@ -3403,7 +3413,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3403
3413
|
type: "submit"
|
|
3404
3414
|
}, {
|
|
3405
3415
|
default: x(() => [
|
|
3406
|
-
|
|
3416
|
+
V(O(I(a)("baseForm.actions.save")), 1)
|
|
3407
3417
|
]),
|
|
3408
3418
|
_: 1
|
|
3409
3419
|
}, 8, ["disabled"])
|
|
@@ -3420,7 +3430,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3420
3430
|
onClose: v[1] || (v[1] = (U) => b())
|
|
3421
3431
|
}, {
|
|
3422
3432
|
default: x(() => [
|
|
3423
|
-
|
|
3433
|
+
$("div", null, O(I(a)("baseForm.configuration.message")), 1),
|
|
3424
3434
|
N(j, {
|
|
3425
3435
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3426
3436
|
tabs: E.value
|
|
@@ -3448,7 +3458,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3448
3458
|
});
|
|
3449
3459
|
};
|
|
3450
3460
|
}
|
|
3451
|
-
}),
|
|
3461
|
+
}), Ml = /* @__PURE__ */ re(Go, [["__scopeId", "data-v-1d932d98"]]), Zo = {
|
|
3452
3462
|
key: 0,
|
|
3453
3463
|
"data-testid": "first-col"
|
|
3454
3464
|
}, Qo = /* @__PURE__ */ H({
|
|
@@ -3498,7 +3508,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3498
3508
|
), b = A(() => i.value ? u.value > d.value : !1);
|
|
3499
3509
|
return On(() => {
|
|
3500
3510
|
l();
|
|
3501
|
-
}),
|
|
3511
|
+
}), Ln(() => {
|
|
3502
3512
|
f();
|
|
3503
3513
|
}), (g, _) => {
|
|
3504
3514
|
const M = B("KTooltip");
|
|
@@ -3514,11 +3524,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3514
3524
|
text: b.value ? c.value : ""
|
|
3515
3525
|
}, {
|
|
3516
3526
|
default: x(() => [
|
|
3517
|
-
|
|
3527
|
+
Y(g.$slots, "default", {}, void 0, !0)
|
|
3518
3528
|
]),
|
|
3519
3529
|
_: 3
|
|
3520
3530
|
}, 8, ["text"])
|
|
3521
|
-
])) :
|
|
3531
|
+
])) : Y(g.$slots, "default", { key: 1 }, void 0, !0)
|
|
3522
3532
|
], 512);
|
|
3523
3533
|
};
|
|
3524
3534
|
}
|
|
@@ -3627,6 +3637,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3627
3637
|
type: String,
|
|
3628
3638
|
default: ""
|
|
3629
3639
|
},
|
|
3640
|
+
titleTag: {
|
|
3641
|
+
type: String,
|
|
3642
|
+
default: "h2"
|
|
3643
|
+
},
|
|
3630
3644
|
/** default to false, setting to true will suppress the row click event even if "@click:row" is attached */
|
|
3631
3645
|
disableRowClick: {
|
|
3632
3646
|
type: Boolean,
|
|
@@ -3648,11 +3662,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3648
3662
|
};
|
|
3649
3663
|
}), o = A(() => n.cacheIdentifier || n.preferencesStorageKey), l = (v) => v.hasData || !!n.query, s = A(() => {
|
|
3650
3664
|
const v = [];
|
|
3651
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3652
|
-
const F = n.tableHeaders[
|
|
3665
|
+
return Object.keys(n.tableHeaders).forEach((L) => {
|
|
3666
|
+
const F = n.tableHeaders[L];
|
|
3653
3667
|
v.push({
|
|
3654
|
-
label: F.label ??
|
|
3655
|
-
key:
|
|
3668
|
+
label: F.label ?? L,
|
|
3669
|
+
key: L,
|
|
3656
3670
|
sortable: F.sortable ?? !1
|
|
3657
3671
|
});
|
|
3658
3672
|
}), n.enableEntityActions && v.push({
|
|
@@ -3694,10 +3708,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3694
3708
|
n.preferencesStorageKey && M(n.preferencesStorageKey, v);
|
|
3695
3709
|
};
|
|
3696
3710
|
return (v, y) => {
|
|
3697
|
-
const
|
|
3711
|
+
const L = B("KIcon"), F = B("KButton"), k = B("KDropdown"), j = B("KTable"), T = B("KCard");
|
|
3698
3712
|
return h(), K(T, {
|
|
3699
3713
|
class: "kong-ui-entity-base-table",
|
|
3700
|
-
title: e.title
|
|
3714
|
+
title: e.title,
|
|
3715
|
+
"title-tag": e.titleTag
|
|
3701
3716
|
}, {
|
|
3702
3717
|
default: x(() => [
|
|
3703
3718
|
N(j, {
|
|
@@ -3731,17 +3746,17 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3731
3746
|
"onUpdate:tablePreferences": m
|
|
3732
3747
|
}, _e({
|
|
3733
3748
|
toolbar: x(({ state: w }) => [
|
|
3734
|
-
|
|
3735
|
-
|
|
3749
|
+
he($("div", el, [
|
|
3750
|
+
Y(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3736
3751
|
v.$slots["toolbar-button"] ? (h(), S("div", tl, [
|
|
3737
|
-
|
|
3752
|
+
Y(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3738
3753
|
])) : D("", !0)
|
|
3739
3754
|
], 512), [
|
|
3740
|
-
[
|
|
3755
|
+
[me, l(w)]
|
|
3741
3756
|
])
|
|
3742
3757
|
]),
|
|
3743
3758
|
actions: x(({ row: w, rowKey: U, rowValue: q }) => [
|
|
3744
|
-
|
|
3759
|
+
$("div", {
|
|
3745
3760
|
class: "actions-container",
|
|
3746
3761
|
"data-testid": w.name
|
|
3747
3762
|
}, [
|
|
@@ -3750,7 +3765,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3750
3765
|
width: e.dropdownMenuWidth
|
|
3751
3766
|
}, {
|
|
3752
3767
|
items: x(() => [
|
|
3753
|
-
|
|
3768
|
+
Y(v.$slots, "actions", {
|
|
3754
3769
|
row: w,
|
|
3755
3770
|
rowKey: U,
|
|
3756
3771
|
rowValue: q
|
|
@@ -3763,7 +3778,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3763
3778
|
size: "small"
|
|
3764
3779
|
}, {
|
|
3765
3780
|
icon: x(() => [
|
|
3766
|
-
N(
|
|
3781
|
+
N(L, {
|
|
3767
3782
|
color: I(Cr),
|
|
3768
3783
|
icon: "more",
|
|
3769
3784
|
size: "16"
|
|
@@ -3780,18 +3795,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3780
3795
|
}, [
|
|
3781
3796
|
ie(e.tableHeaders, (w, U) => ({
|
|
3782
3797
|
name: U,
|
|
3783
|
-
fn: x(({ row: q, rowKey: J, rowValue:
|
|
3798
|
+
fn: x(({ row: q, rowKey: J, rowValue: pe }) => [
|
|
3784
3799
|
N(Xo, {
|
|
3785
3800
|
"key-name": String(U),
|
|
3786
3801
|
"row-el": c(q)
|
|
3787
3802
|
}, {
|
|
3788
3803
|
default: x(() => [
|
|
3789
|
-
|
|
3804
|
+
Y(v.$slots, U, {
|
|
3790
3805
|
row: q,
|
|
3791
3806
|
rowKey: J,
|
|
3792
|
-
rowValue:
|
|
3807
|
+
rowValue: pe
|
|
3793
3808
|
}, () => [
|
|
3794
|
-
|
|
3809
|
+
V(O(pe), 1)
|
|
3795
3810
|
], !0)
|
|
3796
3811
|
]),
|
|
3797
3812
|
_: 2
|
|
@@ -3808,10 +3823,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3808
3823
|
]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
|
|
3809
3824
|
]),
|
|
3810
3825
|
_: 3
|
|
3811
|
-
}, 8, ["title"]);
|
|
3826
|
+
}, 8, ["title", "title-tag"]);
|
|
3812
3827
|
};
|
|
3813
3828
|
}
|
|
3814
|
-
}),
|
|
3829
|
+
}), Dl = /* @__PURE__ */ re(rl, [["__scopeId", "data-v-99908c24"]]), il = {
|
|
3815
3830
|
key: 0,
|
|
3816
3831
|
class: "kong-ui-entity-delete-error"
|
|
3817
3832
|
}, al = {
|
|
@@ -3878,7 +3893,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3878
3893
|
e.error ? (h(), S("div", il, [
|
|
3879
3894
|
N(d, { appearance: "danger" }, {
|
|
3880
3895
|
default: x(() => [
|
|
3881
|
-
|
|
3896
|
+
V(O(e.error), 1)
|
|
3882
3897
|
]),
|
|
3883
3898
|
_: 1
|
|
3884
3899
|
})
|
|
@@ -3889,21 +3904,21 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3889
3904
|
tag: "p"
|
|
3890
3905
|
}, _e({
|
|
3891
3906
|
entityType: x(() => [
|
|
3892
|
-
|
|
3907
|
+
V(O(r.entityType), 1)
|
|
3893
3908
|
]),
|
|
3894
3909
|
_: 2
|
|
3895
3910
|
}, [
|
|
3896
3911
|
r.entityName ? {
|
|
3897
3912
|
name: "entityName",
|
|
3898
3913
|
fn: x(() => [
|
|
3899
|
-
|
|
3914
|
+
$("strong", null, O(r.entityName), 1)
|
|
3900
3915
|
]),
|
|
3901
3916
|
key: "0"
|
|
3902
3917
|
} : void 0
|
|
3903
3918
|
]), 1032, ["keypath"]),
|
|
3904
3919
|
r.description || s.$slots.description ? (h(), S("div", al, [
|
|
3905
|
-
|
|
3906
|
-
|
|
3920
|
+
Y(s.$slots, "description", {}, () => [
|
|
3921
|
+
$("p", null, O(r.description), 1)
|
|
3907
3922
|
], !0)
|
|
3908
3923
|
])) : D("", !0)
|
|
3909
3924
|
]),
|
|
@@ -3911,7 +3926,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3911
3926
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3912
3927
|
};
|
|
3913
3928
|
}
|
|
3914
|
-
}),
|
|
3929
|
+
}), jl = /* @__PURE__ */ re(ol, [["__scopeId", "data-v-4361d622"]]), ll = {
|
|
3915
3930
|
fill: "none",
|
|
3916
3931
|
height: "20",
|
|
3917
3932
|
viewBox: "0 0 20 20",
|
|
@@ -3935,15 +3950,15 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3935
3950
|
},
|
|
3936
3951
|
setup(e) {
|
|
3937
3952
|
return (t, n) => (h(), S("svg", ll, [
|
|
3938
|
-
|
|
3939
|
-
|
|
3953
|
+
$("mask", sl, [
|
|
3954
|
+
$("rect", {
|
|
3940
3955
|
fill: e.color,
|
|
3941
3956
|
height: "20",
|
|
3942
3957
|
width: "20"
|
|
3943
3958
|
}, null, 8, cl)
|
|
3944
3959
|
]),
|
|
3945
|
-
|
|
3946
|
-
|
|
3960
|
+
$("g", ul, [
|
|
3961
|
+
$("path", {
|
|
3947
3962
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3948
3963
|
fill: e.color
|
|
3949
3964
|
}, null, 8, dl)
|
|
@@ -4001,9 +4016,9 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4001
4016
|
p("");
|
|
4002
4017
|
}, b = (m) => `filter-${m}`, g = (m) => {
|
|
4003
4018
|
var v, y;
|
|
4004
|
-
return (((y = (v = r.config.schema) == null ? void 0 : v[m]) == null ? void 0 : y.values) ?? []).map((
|
|
4005
|
-
value:
|
|
4006
|
-
label:
|
|
4019
|
+
return (((y = (v = r.config.schema) == null ? void 0 : v[m]) == null ? void 0 : y.values) ?? []).map((L) => ({
|
|
4020
|
+
value: L,
|
|
4021
|
+
label: L
|
|
4007
4022
|
}));
|
|
4008
4023
|
}, _ = (m) => {
|
|
4009
4024
|
var v, y;
|
|
@@ -4016,11 +4031,11 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4016
4031
|
}, E = () => {
|
|
4017
4032
|
o.value = {}, ee(!0);
|
|
4018
4033
|
}, ee = (m = !1) => {
|
|
4019
|
-
const v = Object.keys(o.value).reduce((y,
|
|
4034
|
+
const v = Object.keys(o.value).reduce((y, L) => (o.value[L] && (y[L] = `${o.value[L]}`), y), {});
|
|
4020
4035
|
m && (a.value = !1), i("update:modelValue", new URLSearchParams(v).toString());
|
|
4021
4036
|
};
|
|
4022
4037
|
return (m, v) => {
|
|
4023
|
-
const y = B("KInput"),
|
|
4038
|
+
const y = B("KInput"), L = B("KButton"), F = B("KSelect");
|
|
4024
4039
|
return e.config.isExactMatch ? (h(), K(y, {
|
|
4025
4040
|
key: 0,
|
|
4026
4041
|
autocomplete: "off",
|
|
@@ -4034,33 +4049,33 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4034
4049
|
N(Et)
|
|
4035
4050
|
]),
|
|
4036
4051
|
after: x(() => [
|
|
4037
|
-
|
|
4052
|
+
he(N(I(Ko), {
|
|
4038
4053
|
class: "kong-ui-entity-filter-clear",
|
|
4039
4054
|
onClick: f
|
|
4040
4055
|
}, null, 512), [
|
|
4041
|
-
[
|
|
4056
|
+
[me, e.modelValue !== ""]
|
|
4042
4057
|
])
|
|
4043
4058
|
]),
|
|
4044
4059
|
_: 1
|
|
4045
4060
|
}, 8, ["model-value", "placeholder"])) : (h(), S("div", fl, [
|
|
4046
|
-
N(
|
|
4061
|
+
N(L, {
|
|
4047
4062
|
appearance: "tertiary",
|
|
4048
4063
|
"data-testid": "filter-button",
|
|
4049
4064
|
onClick: d
|
|
4050
4065
|
}, {
|
|
4051
4066
|
default: x(() => [
|
|
4052
4067
|
N(Et),
|
|
4053
|
-
|
|
4068
|
+
V(" " + O(I(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4054
4069
|
]),
|
|
4055
4070
|
_: 1
|
|
4056
4071
|
}),
|
|
4057
|
-
|
|
4072
|
+
he($("div", {
|
|
4058
4073
|
class: "kong-ui-entity-filter-backdrop",
|
|
4059
4074
|
onClick: d
|
|
4060
4075
|
}, null, 512), [
|
|
4061
|
-
[
|
|
4076
|
+
[me, a.value]
|
|
4062
4077
|
]),
|
|
4063
|
-
|
|
4078
|
+
he($("div", pl, [
|
|
4064
4079
|
(h(!0), S(le, null, ie(u.value, (k) => {
|
|
4065
4080
|
var j, T;
|
|
4066
4081
|
return h(), S("div", {
|
|
@@ -4068,24 +4083,24 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4068
4083
|
class: "kong-ui-entity-filter-menu-item",
|
|
4069
4084
|
"data-testid": k.value
|
|
4070
4085
|
}, [
|
|
4071
|
-
|
|
4086
|
+
$("span", {
|
|
4072
4087
|
class: ue(["menu-item-title", { expanded: l.value.has(k.value) }]),
|
|
4073
4088
|
role: "button",
|
|
4074
4089
|
tabindex: "0",
|
|
4075
4090
|
onClick: (w) => c(k.value),
|
|
4076
|
-
onKeydown:
|
|
4091
|
+
onKeydown: $n((w) => c(k.value), ["enter"])
|
|
4077
4092
|
}, [
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
[
|
|
4093
|
+
V(O(k.label) + " ", 1),
|
|
4094
|
+
he($("span", gl, null, 512), [
|
|
4095
|
+
[me, s.value.includes(k.value)]
|
|
4081
4096
|
]),
|
|
4082
4097
|
N(I(Oo), {
|
|
4083
4098
|
class: ue(["menu-item-expand-icon", { expanded: l.value.has(k.value) }]),
|
|
4084
4099
|
color: I(_r)
|
|
4085
4100
|
}, null, 8, ["class", "color"])
|
|
4086
4101
|
], 42, ml),
|
|
4087
|
-
|
|
4088
|
-
|
|
4102
|
+
he($("div", yl, [
|
|
4103
|
+
$("label", {
|
|
4089
4104
|
class: "menu-item-label",
|
|
4090
4105
|
for: b(k.value)
|
|
4091
4106
|
}, O(I(n)("filter.fieldLabel")), 9, vl),
|
|
@@ -4106,55 +4121,55 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4106
4121
|
type: _(k.value)
|
|
4107
4122
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4108
4123
|
], 512), [
|
|
4109
|
-
[
|
|
4124
|
+
[me, l.value.has(k.value)]
|
|
4110
4125
|
]),
|
|
4111
|
-
|
|
4112
|
-
N(
|
|
4126
|
+
he($("div", bl, [
|
|
4127
|
+
N(L, {
|
|
4113
4128
|
appearance: "tertiary",
|
|
4114
4129
|
"data-testid": "apply-filter",
|
|
4115
4130
|
size: "small",
|
|
4116
4131
|
onClick: v[0] || (v[0] = (w) => ee(!0))
|
|
4117
4132
|
}, {
|
|
4118
4133
|
default: x(() => [
|
|
4119
|
-
|
|
4134
|
+
V(O(I(n)("filter.applyButtonText")), 1)
|
|
4120
4135
|
]),
|
|
4121
4136
|
_: 1
|
|
4122
4137
|
}),
|
|
4123
|
-
N(
|
|
4138
|
+
N(L, {
|
|
4124
4139
|
appearance: "tertiary",
|
|
4125
4140
|
"data-testid": "clear-filter",
|
|
4126
4141
|
size: "small",
|
|
4127
4142
|
onClick: (w) => M(k.value)
|
|
4128
4143
|
}, {
|
|
4129
4144
|
default: x(() => [
|
|
4130
|
-
|
|
4145
|
+
V(O(I(n)("filter.clearButtonText")), 1)
|
|
4131
4146
|
]),
|
|
4132
4147
|
_: 2
|
|
4133
4148
|
}, 1032, ["onClick"])
|
|
4134
4149
|
], 512), [
|
|
4135
|
-
[
|
|
4150
|
+
[me, l.value.has(k.value)]
|
|
4136
4151
|
])
|
|
4137
4152
|
], 8, hl);
|
|
4138
4153
|
}), 128)),
|
|
4139
|
-
|
|
4140
|
-
N(
|
|
4154
|
+
$("div", xl, [
|
|
4155
|
+
N(L, {
|
|
4141
4156
|
appearance: "tertiary",
|
|
4142
4157
|
size: "small",
|
|
4143
4158
|
onClick: E
|
|
4144
4159
|
}, {
|
|
4145
4160
|
default: x(() => [
|
|
4146
|
-
|
|
4161
|
+
V(O(I(n)("filter.clearAllButtonText")), 1)
|
|
4147
4162
|
]),
|
|
4148
4163
|
_: 1
|
|
4149
4164
|
})
|
|
4150
4165
|
])
|
|
4151
4166
|
], 512), [
|
|
4152
|
-
[
|
|
4167
|
+
[me, a.value]
|
|
4153
4168
|
])
|
|
4154
4169
|
]));
|
|
4155
4170
|
};
|
|
4156
4171
|
}
|
|
4157
|
-
}),
|
|
4172
|
+
}), Ul = /* @__PURE__ */ re(Cl, [["__scopeId", "data-v-8cfadde3"]]), ql = /* @__PURE__ */ H({
|
|
4158
4173
|
__name: "EntityToggleModal",
|
|
4159
4174
|
props: {
|
|
4160
4175
|
visible: {
|
|
@@ -4220,10 +4235,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4220
4235
|
scope: "global"
|
|
4221
4236
|
}, {
|
|
4222
4237
|
entityType: x(() => [
|
|
4223
|
-
|
|
4238
|
+
V(O(e.entityType), 1)
|
|
4224
4239
|
]),
|
|
4225
4240
|
entityName: x(() => [
|
|
4226
|
-
|
|
4241
|
+
$("strong", null, O(e.entityName), 1)
|
|
4227
4242
|
]),
|
|
4228
4243
|
_: 1
|
|
4229
4244
|
}, 8, ["keypath"])
|
|
@@ -4233,7 +4248,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4233
4248
|
]);
|
|
4234
4249
|
};
|
|
4235
4250
|
}
|
|
4236
|
-
}),
|
|
4251
|
+
}), Pl = /* @__PURE__ */ H({
|
|
4237
4252
|
__name: "PermissionsWrapper",
|
|
4238
4253
|
props: {
|
|
4239
4254
|
/**
|
|
@@ -4258,21 +4273,18 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4258
4273
|
const t = e, n = R(void 0), r = A(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4259
4274
|
return Ae(() => t.authFunction, async () => {
|
|
4260
4275
|
n.value = await t.authFunction();
|
|
4261
|
-
}, { immediate: !0 }), (i, a) => r.value ?
|
|
4276
|
+
}, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
|
|
4262
4277
|
key: 0,
|
|
4263
4278
|
isAllowed: n.value
|
|
4264
4279
|
}) : D("", !0);
|
|
4265
4280
|
}
|
|
4266
4281
|
}), _l = { class: "form-section-wrapper" }, kl = {
|
|
4267
|
-
key: 0,
|
|
4268
|
-
class: "form-section-title"
|
|
4269
|
-
}, Al = {
|
|
4270
4282
|
key: 1,
|
|
4271
4283
|
class: "form-section-description"
|
|
4272
|
-
},
|
|
4284
|
+
}, Al = {
|
|
4273
4285
|
key: 2,
|
|
4274
4286
|
class: "form-section-footer"
|
|
4275
|
-
},
|
|
4287
|
+
}, wl = { class: "form-section-content" }, Sl = /* @__PURE__ */ H({
|
|
4276
4288
|
__name: "EntityFormSection",
|
|
4277
4289
|
props: {
|
|
4278
4290
|
title: {
|
|
@@ -4294,6 +4306,10 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4294
4306
|
hideInfoHeader: {
|
|
4295
4307
|
type: Boolean,
|
|
4296
4308
|
default: !1
|
|
4309
|
+
},
|
|
4310
|
+
titleTag: {
|
|
4311
|
+
type: String,
|
|
4312
|
+
default: "h2"
|
|
4297
4313
|
}
|
|
4298
4314
|
},
|
|
4299
4315
|
setup(e) {
|
|
@@ -4301,34 +4317,42 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4301
4317
|
return (n, r) => (h(), S("fieldset", {
|
|
4302
4318
|
class: ue(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4303
4319
|
}, [
|
|
4304
|
-
|
|
4320
|
+
$("div", _l, [
|
|
4305
4321
|
e.hideInfoHeader ? D("", !0) : (h(), S("div", {
|
|
4306
4322
|
key: 0,
|
|
4307
4323
|
class: ue(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4308
4324
|
}, [
|
|
4309
|
-
e.title ? (h(),
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4325
|
+
e.title ? (h(), K(fe(e.titleTag), {
|
|
4326
|
+
key: 0,
|
|
4327
|
+
class: "form-section-title"
|
|
4328
|
+
}, {
|
|
4329
|
+
default: x(() => [
|
|
4330
|
+
V(O(e.title), 1)
|
|
4331
|
+
]),
|
|
4332
|
+
_: 1
|
|
4333
|
+
})) : D("", !0),
|
|
4334
|
+
e.description || I(t).description ? (h(), S("div", kl, [
|
|
4335
|
+
Y(n.$slots, "description", {}, () => [
|
|
4336
|
+
$("p", null, O(e.description), 1)
|
|
4313
4337
|
], !0)
|
|
4314
4338
|
])) : D("", !0),
|
|
4315
|
-
I(t).footer ? (h(), S("div",
|
|
4316
|
-
|
|
4339
|
+
I(t).footer ? (h(), S("div", Al, [
|
|
4340
|
+
Y(n.$slots, "footer", {}, void 0, !0)
|
|
4317
4341
|
])) : D("", !0)
|
|
4318
4342
|
], 2)),
|
|
4319
|
-
|
|
4320
|
-
|
|
4343
|
+
$("div", wl, [
|
|
4344
|
+
Y(n.$slots, "default", {}, void 0, !0)
|
|
4321
4345
|
])
|
|
4322
4346
|
])
|
|
4323
4347
|
], 2));
|
|
4324
4348
|
}
|
|
4325
|
-
}),
|
|
4349
|
+
}), Hl = /* @__PURE__ */ re(Sl, [["__scopeId", "data-v-4bb31634"]]), Il = {
|
|
4326
4350
|
class: "kong-ui-public-entity-link",
|
|
4327
4351
|
"data-testid": "entity-link-parent"
|
|
4328
|
-
},
|
|
4352
|
+
}, El = {
|
|
4329
4353
|
key: 0,
|
|
4330
4354
|
class: "deleted-entity"
|
|
4331
|
-
},
|
|
4355
|
+
}, Tl = { key: 1 }, Fl = ["onClick"], Ol = /* @__PURE__ */ H({
|
|
4332
4356
|
__name: "EntityLink",
|
|
4333
4357
|
props: {
|
|
4334
4358
|
entityLinkData: {
|
|
@@ -4359,8 +4383,8 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4359
4383
|
};
|
|
4360
4384
|
return (c, p) => {
|
|
4361
4385
|
const f = B("KTooltip"), b = B("KExternalLink"), g = B("KClipboardProvider");
|
|
4362
|
-
return h(), S("div",
|
|
4363
|
-
l.value ? (h(), S("div",
|
|
4386
|
+
return h(), S("div", Il, [
|
|
4387
|
+
l.value ? (h(), S("div", El, O(u.value), 1)) : s.value ? s.value ? (h(), K(b, {
|
|
4364
4388
|
key: 2,
|
|
4365
4389
|
class: "entity-link",
|
|
4366
4390
|
"hide-icon": !e.newWindow,
|
|
@@ -4372,7 +4396,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4372
4396
|
text: I(r) && e.entityLinkData.label || ""
|
|
4373
4397
|
}, {
|
|
4374
4398
|
default: x(() => [
|
|
4375
|
-
|
|
4399
|
+
$("span", {
|
|
4376
4400
|
ref_key: "textContent",
|
|
4377
4401
|
ref: n,
|
|
4378
4402
|
class: "entity-link-label"
|
|
@@ -4382,7 +4406,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4382
4406
|
}, 8, ["text"])
|
|
4383
4407
|
]),
|
|
4384
4408
|
_: 1
|
|
4385
|
-
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div",
|
|
4409
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div", Tl, O(" – "))),
|
|
4386
4410
|
s.value && e.allowCopy ? (h(), K(f, {
|
|
4387
4411
|
key: o.value,
|
|
4388
4412
|
class: "copy-uuid-tooltip",
|
|
@@ -4393,7 +4417,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4393
4417
|
default: x(() => [
|
|
4394
4418
|
N(g, null, {
|
|
4395
4419
|
default: x(({ copyToClipboard: _ }) => [
|
|
4396
|
-
|
|
4420
|
+
$("span", {
|
|
4397
4421
|
class: "entity-link-copy-id",
|
|
4398
4422
|
onClick: He((M) => d(_), ["stop"])
|
|
4399
4423
|
}, [
|
|
@@ -4403,7 +4427,7 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4403
4427
|
"data-testid": "copy-id",
|
|
4404
4428
|
size: I(wr)
|
|
4405
4429
|
}, null, 8, ["color", "size"])
|
|
4406
|
-
], 8,
|
|
4430
|
+
], 8, Fl)
|
|
4407
4431
|
]),
|
|
4408
4432
|
_: 1
|
|
4409
4433
|
})
|
|
@@ -4413,36 +4437,36 @@ const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4413
4437
|
]);
|
|
4414
4438
|
};
|
|
4415
4439
|
}
|
|
4416
|
-
}),
|
|
4440
|
+
}), Vl = /* @__PURE__ */ re(Ol, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: Yl, useDeleteUrlBuilder: zl, useErrors: Wl, useExternalLinkCreator: Jl, useFetchUrlBuilder: Gl, useFetcher: Zl, useDebouncedFilter: Ql, useStringHelpers: Xl, useHelpers: es, useGatewayFeatureSupported: ts, useTruncationDetector: ns } = z;
|
|
4417
4441
|
export {
|
|
4418
4442
|
po as ConfigCardDisplay,
|
|
4419
4443
|
Rt as ConfigCardItem,
|
|
4420
4444
|
ne as ConfigurationSchemaSection,
|
|
4421
4445
|
P as ConfigurationSchemaType,
|
|
4422
|
-
|
|
4423
|
-
|
|
4446
|
+
Kl as EntityBaseConfigCard,
|
|
4447
|
+
Ml as EntityBaseForm,
|
|
4424
4448
|
jn as EntityBaseFormType,
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4449
|
+
Dl as EntityBaseTable,
|
|
4450
|
+
jl as EntityDeleteModal,
|
|
4451
|
+
Ul as EntityFilter,
|
|
4452
|
+
Hl as EntityFormSection,
|
|
4453
|
+
Vl as EntityLink,
|
|
4454
|
+
ql as EntityToggleModal,
|
|
4431
4455
|
Dn as EntityTypes,
|
|
4432
4456
|
ve as FetcherStatus,
|
|
4433
4457
|
yr as InternalLinkItem,
|
|
4434
4458
|
Kt as JsonCodeBlock,
|
|
4435
|
-
|
|
4459
|
+
Pl as PermissionsWrapper,
|
|
4436
4460
|
Sn as YamlCodeBlock,
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4461
|
+
Yl as useAxios,
|
|
4462
|
+
Ql as useDebouncedFilter,
|
|
4463
|
+
zl as useDeleteUrlBuilder,
|
|
4464
|
+
Wl as useErrors,
|
|
4465
|
+
Jl as useExternalLinkCreator,
|
|
4466
|
+
Gl as useFetchUrlBuilder,
|
|
4467
|
+
Zl as useFetcher,
|
|
4468
|
+
ts as useGatewayFeatureSupported,
|
|
4469
|
+
es as useHelpers,
|
|
4470
|
+
Xl as useStringHelpers,
|
|
4471
|
+
ns as useTruncationDetector
|
|
4448
4472
|
};
|