@kong-ui-public/entities-key-sets 1.2.3 → 1.2.4
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-key-sets.es.js +84 -85
- package/dist/entities-key-sets.umd.js +29 -29
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, ref as
|
|
1
|
+
import { defineComponent as te, ref as F, computed as A, watch as Ie, renderSlot as z, createCommentVNode as V, unref as C, useSlots as Ye, onBeforeMount as lt, resolveComponent as O, openBlock as g, createBlock as E, createSlots as Ce, withCtx as v, createElementVNode as B, createTextVNode as Y, toDisplayString as j, createVNode as _, createElementBlock as x, renderList as ue, Fragment as pe, normalizeClass as Se, withModifiers as Pe, withDirectives as Le, vShow as qe, useCssVars as Vn, resolveDynamicComponent as Me, normalizeProps as zn, guardReactiveProps as Hn, mergeProps as et, onMounted as Yn, onUnmounted as Jn, normalizeStyle as Wn, inject as Gn, pushScopeId as Zn, popScopeId as Qn, reactive as Ct } from "vue";
|
|
2
2
|
import { useRouter as st } from "vue-router";
|
|
3
3
|
import { createI18n as ct, i18nTComponent as zt } from "@kong-ui-public/i18n";
|
|
4
4
|
import Xn from "axios";
|
|
@@ -258,7 +258,7 @@ function ga(e, n, t, a = {
|
|
|
258
258
|
headers: e.requestHeaders
|
|
259
259
|
}), { i18n: { t: o } } = pt(), { debounce: r } = ia(), l = r(async (f) => {
|
|
260
260
|
await y(f);
|
|
261
|
-
}, 200), s =
|
|
261
|
+
}, 200), s = F(!1), c = F(""), d = F(""), u = F([]), h = F(void 0), m = C(n);
|
|
262
262
|
let b = `${e.apiBaseUrl}${m}`;
|
|
263
263
|
e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
264
264
|
const k = async () => {
|
|
@@ -271,7 +271,7 @@ function ga(e, n, t, a = {
|
|
|
271
271
|
} finally {
|
|
272
272
|
s.value = !1;
|
|
273
273
|
}
|
|
274
|
-
}, p =
|
|
274
|
+
}, p = F(""), y = async (f) => {
|
|
275
275
|
var S, M;
|
|
276
276
|
if (p.value !== f)
|
|
277
277
|
if (p.value = f || "", h.value === void 0)
|
|
@@ -342,7 +342,7 @@ function va() {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
function Yt(e, n) {
|
|
345
|
-
const t =
|
|
345
|
+
const t = F(C(e)), a = F(C(n)), i = A(
|
|
346
346
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
347
347
|
), o = A(
|
|
348
348
|
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
@@ -362,7 +362,7 @@ function Yt(e, n) {
|
|
|
362
362
|
function ba(e, n, t = "data") {
|
|
363
363
|
const a = C(n), { axiosInstance: i } = dt({
|
|
364
364
|
headers: e.requestHeaders
|
|
365
|
-
}), o = Yt(e, a), r =
|
|
365
|
+
}), o = Yt(e, a), r = F({
|
|
366
366
|
status: ke.Idle
|
|
367
367
|
});
|
|
368
368
|
return { fetcher: async (l) => {
|
|
@@ -486,7 +486,7 @@ const ie = {
|
|
|
486
486
|
}, Oa = "Copy to clipboard", $a = {
|
|
487
487
|
message: Ta,
|
|
488
488
|
iconTitle: Oa
|
|
489
|
-
}, ja = "kong-ui-copy-uuid-notify", Ma = { class: "kong-ui-copy-uuid" },
|
|
489
|
+
}, ja = "kong-ui-copy-uuid-notify", Ma = { class: "kong-ui-copy-uuid" }, Fa = ["onClick"], Tt = 15, Ea = /* @__PURE__ */ te({
|
|
490
490
|
__name: "CopyUuid",
|
|
491
491
|
props: {
|
|
492
492
|
uuid: {
|
|
@@ -537,7 +537,7 @@ const ie = {
|
|
|
537
537
|
placement: "bottomStart"
|
|
538
538
|
} : {
|
|
539
539
|
title: t.uuid
|
|
540
|
-
}), r = A(() => !!(t.tooltip && t.successTooltip)), l =
|
|
540
|
+
}), r = A(() => !!(t.tooltip && t.successTooltip)), l = F(t.tooltip), s = A(() => t.tooltip ? {
|
|
541
541
|
label: l.value,
|
|
542
542
|
positionFixed: !0,
|
|
543
543
|
maxWidth: "500px",
|
|
@@ -563,7 +563,7 @@ const ie = {
|
|
|
563
563
|
return (h, m) => {
|
|
564
564
|
const b = O("KIcon"), k = O("KClipboardProvider");
|
|
565
565
|
return g(), x("div", Ma, [
|
|
566
|
-
e.format !== "hidden" ? (g(),
|
|
566
|
+
e.format !== "hidden" ? (g(), E(Me(e.idTooltip ? "KTooltip" : "div"), et({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
567
567
|
default: v(() => [
|
|
568
568
|
B("div", {
|
|
569
569
|
class: Se([
|
|
@@ -575,7 +575,7 @@ const ie = {
|
|
|
575
575
|
]),
|
|
576
576
|
_: 1
|
|
577
577
|
}, 16)) : V("", !0),
|
|
578
|
-
(g(),
|
|
578
|
+
(g(), E(Me(e.tooltip ? "KTooltip" : "div"), et(s.value, { class: "uuid-icon-wrapper" }), {
|
|
579
579
|
default: v(() => [
|
|
580
580
|
_(k, null, {
|
|
581
581
|
default: v(({ copyToClipboard: p }) => [
|
|
@@ -593,7 +593,7 @@ const ie = {
|
|
|
593
593
|
size: "16",
|
|
594
594
|
title: C(a)("iconTitle")
|
|
595
595
|
}, null, 8, ["color", "hide-title", "title"])
|
|
596
|
-
], 8,
|
|
596
|
+
], 8, Fa)
|
|
597
597
|
]),
|
|
598
598
|
_: 1
|
|
599
599
|
})
|
|
@@ -608,7 +608,7 @@ const ie = {
|
|
|
608
608
|
for (const [a, i] of n)
|
|
609
609
|
t[a] = i;
|
|
610
610
|
return t;
|
|
611
|
-
}, Gt = /* @__PURE__ */ Ka(
|
|
611
|
+
}, Gt = /* @__PURE__ */ Ka(Ea, [["__scopeId", "data-v-bfdaf6f7"]]), Ba = {
|
|
612
612
|
key: 0,
|
|
613
613
|
class: "config-card-fieldset-title"
|
|
614
614
|
}, Na = /* @__PURE__ */ te({
|
|
@@ -635,14 +635,14 @@ const ie = {
|
|
|
635
635
|
var s;
|
|
636
636
|
return n.isArrayItem ? (s = o.value) != null && s.name ? a(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
637
637
|
});
|
|
638
|
-
return (s, c) => (g(),
|
|
638
|
+
return (s, c) => (g(), E(Me(e.isArrayItem ? "fieldset" : "div"), {
|
|
639
639
|
class: Se(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
640
640
|
}, {
|
|
641
641
|
default: v(() => [
|
|
642
642
|
e.isArrayItem ? (g(), x("legend", Ba, [
|
|
643
643
|
B("b", null, j(l.value), 1)
|
|
644
644
|
])) : V("", !0),
|
|
645
|
-
(g(!0), x(pe, null, ue(Object.keys(r.value), (d, u) => (g(),
|
|
645
|
+
(g(!0), x(pe, null, ue(Object.keys(r.value), (d, u) => (g(), E(ft, {
|
|
646
646
|
key: `${i.value}-property-${u}`,
|
|
647
647
|
item: {
|
|
648
648
|
key: d,
|
|
@@ -698,7 +698,7 @@ const ie = {
|
|
|
698
698
|
const { i18n: { t: n } } = ie.useI18n();
|
|
699
699
|
return (t, a) => {
|
|
700
700
|
const i = O("KBadge");
|
|
701
|
-
return g(),
|
|
701
|
+
return g(), E(i, {
|
|
702
702
|
appearance: e.status ? "success" : "neutral"
|
|
703
703
|
}, {
|
|
704
704
|
default: v(() => [
|
|
@@ -903,13 +903,13 @@ const ie = {
|
|
|
903
903
|
rowValue: e.item.value
|
|
904
904
|
}, () => [
|
|
905
905
|
r.value ? (g(), x("div", Za, [
|
|
906
|
-
(g(),
|
|
906
|
+
(g(), E(Me(d.value.tag), zn(Hn(d.value.attrs)), {
|
|
907
907
|
default: v(() => [
|
|
908
908
|
d.value.additionalComponent === "KBadge" ? (g(), x("div", {
|
|
909
909
|
key: 0,
|
|
910
910
|
"data-testid": `${e.item.key}-badge-tags`
|
|
911
911
|
}, [
|
|
912
|
-
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(),
|
|
912
|
+
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(), E(b, {
|
|
913
913
|
key: `${e.item.key}-badge-tag-${y}`,
|
|
914
914
|
class: "config-badge",
|
|
915
915
|
"data-testid": `${e.item.key}-badge-tag-${y}`,
|
|
@@ -926,7 +926,7 @@ const ie = {
|
|
|
926
926
|
class: "copy-uuid-array",
|
|
927
927
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
928
928
|
}, [
|
|
929
|
-
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(),
|
|
929
|
+
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(), E(C(Gt), et(d.value.childAttrs, {
|
|
930
930
|
key: `${e.item.key}-copy-uuid-${y}`,
|
|
931
931
|
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
932
932
|
uuid: p
|
|
@@ -936,7 +936,7 @@ const ie = {
|
|
|
936
936
|
class: "method-badge-array",
|
|
937
937
|
"data-testid": `${e.item.key}-badge-methods`
|
|
938
938
|
}, [
|
|
939
|
-
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(),
|
|
939
|
+
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(), E(k, {
|
|
940
940
|
key: `${e.item.key}-badge-method-${y}`,
|
|
941
941
|
class: "config-badge",
|
|
942
942
|
"data-testid": `${e.item.key}-badge-method-${y}`,
|
|
@@ -954,7 +954,7 @@ const ie = {
|
|
|
954
954
|
key: 3,
|
|
955
955
|
"data-testid": `${t.item.key}-json-array-content`
|
|
956
956
|
}, [
|
|
957
|
-
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(),
|
|
957
|
+
(g(!0), x(pe, null, ue(e.item.value, (p, y) => (g(), E(Zt, {
|
|
958
958
|
key: `json-array-item-${y}`,
|
|
959
959
|
index: y,
|
|
960
960
|
"is-array-item": "",
|
|
@@ -1018,15 +1018,15 @@ function Xt(e, n) {
|
|
|
1018
1018
|
|
|
1019
1019
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Fe(e, n) {
|
|
1022
1022
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Xt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1024
|
+
Fe.prototype = Object.create(Error.prototype);
|
|
1025
|
+
Fe.prototype.constructor = Fe;
|
|
1026
|
+
Fe.prototype.toString = function(e) {
|
|
1027
1027
|
return this.name + ": " + Xt(this, e);
|
|
1028
1028
|
};
|
|
1029
|
-
var se =
|
|
1029
|
+
var se = Fe;
|
|
1030
1030
|
function Ze(e, n, t, a, i) {
|
|
1031
1031
|
var o = "", r = "", l = Math.floor(i / 2) - 1;
|
|
1032
1032
|
return a - n > l && (o = " ... ", n = a - l + o.length), t - a > l && (r = " ...", t = a + l - r.length), {
|
|
@@ -1304,7 +1304,7 @@ function Mi(e) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
return !(!a || i === "_");
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Fi(e) {
|
|
1308
1308
|
var n = e, t = 1, a;
|
|
1309
1309
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
|
|
1310
1310
|
return 0;
|
|
@@ -1318,14 +1318,14 @@ function Ei(e) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
return t * parseInt(n, 10);
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Ei(e) {
|
|
1322
1322
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
|
|
1323
1323
|
}
|
|
1324
1324
|
var sn = new re("tag:yaml.org,2002:int", {
|
|
1325
1325
|
kind: "scalar",
|
|
1326
1326
|
resolve: Mi,
|
|
1327
|
-
construct:
|
|
1328
|
-
predicate:
|
|
1327
|
+
construct: Fi,
|
|
1328
|
+
predicate: Ei,
|
|
1329
1329
|
represent: {
|
|
1330
1330
|
binary: function(e) {
|
|
1331
1331
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1625,7 +1625,7 @@ function I(e, n) {
|
|
|
1625
1625
|
function Ve(e, n) {
|
|
1626
1626
|
e.onWarning && e.onWarning.call(null, An(e, n));
|
|
1627
1627
|
}
|
|
1628
|
-
var
|
|
1628
|
+
var Ft = {
|
|
1629
1629
|
YAML: function(e, n, t) {
|
|
1630
1630
|
var a, i, o;
|
|
1631
1631
|
e.version !== null && I(e, "duplication of %YAML directive"), t.length !== 1 && I(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && I(e, "ill-formed argument of the YAML directive"), i = parseInt(a[1], 10), o = parseInt(a[2], 10), i !== 1 && I(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Ve(e, "unsupported YAML version of the document");
|
|
@@ -1652,7 +1652,7 @@ function he(e, n, t, a) {
|
|
|
1652
1652
|
e.result += l;
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function Et(e, n, t, a) {
|
|
1656
1656
|
var i, o, r, l;
|
|
1657
1657
|
for (ee.isObject(t) || I(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), r = 0, l = i.length; r < l; r += 1)
|
|
1658
1658
|
o = i[r], ve.call(n, o) || (n[o] = t[o], a[o] = !0);
|
|
@@ -1665,9 +1665,9 @@ function Te(e, n, t, a, i, o, r, l, s) {
|
|
|
1665
1665
|
if (typeof i == "object" && jt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
|
|
1666
1666
|
if (Array.isArray(o))
|
|
1667
1667
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
1668
|
-
|
|
1668
|
+
Et(e, n, o[c], t);
|
|
1669
1669
|
else
|
|
1670
|
-
|
|
1670
|
+
Et(e, n, o, t);
|
|
1671
1671
|
else
|
|
1672
1672
|
!e.json && !ve.call(t, i) && ve.call(n, i) && (e.line = r || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(n, i, {
|
|
1673
1673
|
configurable: !0,
|
|
@@ -1963,7 +1963,7 @@ function Sr(e) {
|
|
|
1963
1963
|
r = e.input.charCodeAt(++e.position);
|
|
1964
1964
|
i.push(e.input.slice(t, e.position));
|
|
1965
1965
|
}
|
|
1966
|
-
r !== 0 && gt(e), ve.call(
|
|
1966
|
+
r !== 0 && gt(e), ve.call(Ft, a) ? Ft[a](e, a, i) : Ve(e, 'unknown document directive "' + a + '"');
|
|
1967
1967
|
}
|
|
1968
1968
|
if (Q(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, Q(e, !0, -1)) : o && I(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, De, !1, !0), Q(e, !0, -1), e.checkLineBreaks && lr.test(e.input.slice(n, e.position)) && Ve(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Je(e)) {
|
|
1969
1969
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Q(e, !0, -1));
|
|
@@ -2003,7 +2003,7 @@ function xr(e, n) {
|
|
|
2003
2003
|
var Ar = Ir, _r = xr, Tn = {
|
|
2004
2004
|
loadAll: Ar,
|
|
2005
2005
|
load: _r
|
|
2006
|
-
}, On = Object.prototype.toString, $n = Object.prototype.hasOwnProperty, vt = 65279, Tr = 9,
|
|
2006
|
+
}, On = Object.prototype.toString, $n = Object.prototype.hasOwnProperty, vt = 65279, Tr = 9, Ee = 10, Or = 13, $r = 32, jr = 33, Mr = 34, at = 35, Fr = 37, Er = 38, Kr = 39, Br = 42, jn = 44, Nr = 45, ze = 58, Lr = 61, qr = 62, Pr = 63, Ur = 64, Mn = 91, Fn = 93, Rr = 96, En = 123, Dr = 124, Kn = 125, oe = {};
|
|
2007
2007
|
oe[0] = "\\0";
|
|
2008
2008
|
oe[7] = "\\a";
|
|
2009
2009
|
oe[8] = "\\b";
|
|
@@ -2086,7 +2086,7 @@ function Be(e) {
|
|
|
2086
2086
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== vt || 65536 <= e && e <= 1114111;
|
|
2087
2087
|
}
|
|
2088
2088
|
function Nt(e) {
|
|
2089
|
-
return Be(e) && e !== vt && e !== Or && e !==
|
|
2089
|
+
return Be(e) && e !== vt && e !== Or && e !== Ee;
|
|
2090
2090
|
}
|
|
2091
2091
|
function Lt(e, n, t) {
|
|
2092
2092
|
var a = Nt(e), i = a && !He(e);
|
|
@@ -2095,11 +2095,11 @@ function Lt(e, n, t) {
|
|
|
2095
2095
|
(t ? (
|
|
2096
2096
|
// c = flow-in
|
|
2097
2097
|
a
|
|
2098
|
-
) : a && e !== jn && e !== Mn && e !==
|
|
2098
|
+
) : a && e !== jn && e !== Mn && e !== Fn && e !== En && e !== Kn) && e !== at && !(n === ze && !i) || Nt(n) && !He(n) && e === at || n === ze && i
|
|
2099
2099
|
);
|
|
2100
2100
|
}
|
|
2101
2101
|
function Zr(e) {
|
|
2102
|
-
return Be(e) && e !== vt && !He(e) && e !== Nr && e !== Pr && e !== ze && e !== jn && e !== Mn && e !==
|
|
2102
|
+
return Be(e) && e !== vt && !He(e) && e !== Nr && e !== Pr && e !== ze && e !== jn && e !== Mn && e !== Fn && e !== En && e !== Kn && e !== at && e !== Er && e !== Br && e !== jr && e !== Dr && e !== Lr && e !== qr && e !== Kr && e !== Mr && e !== Fr && e !== Ur && e !== Rr;
|
|
2103
2103
|
}
|
|
2104
2104
|
function Qr(e) {
|
|
2105
2105
|
return !He(e) && e !== ze;
|
|
@@ -2123,7 +2123,7 @@ function Xr(e, n, t, a, i, o, r, l) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
else {
|
|
2125
2125
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2126
|
-
if (c = je(e, s), c ===
|
|
2126
|
+
if (c = je(e, s), c === Ee)
|
|
2127
2127
|
u = !0, m && (h = h || // Foldable line = too long, and not more-indented.
|
|
2128
2128
|
s - b - 1 > a && e[b + 1] !== " ", b = s);
|
|
2129
2129
|
else if (!Be(c))
|
|
@@ -2218,7 +2218,7 @@ function ao(e, n, t) {
|
|
|
2218
2218
|
function Rt(e, n, t, a) {
|
|
2219
2219
|
var i = "", o = e.tag, r, l, s;
|
|
2220
2220
|
for (r = 0, l = t.length; r < l; r += 1)
|
|
2221
|
-
s = t[r], e.replacer && (s = e.replacer.call(t, String(r), s)), (ge(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && ge(e, n + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += it(e, n)), e.dump &&
|
|
2221
|
+
s = t[r], e.replacer && (s = e.replacer.call(t, String(r), s)), (ge(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && ge(e, n + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += it(e, n)), e.dump && Ee === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2222
2222
|
e.tag = o, e.dump = i || "[]";
|
|
2223
2223
|
}
|
|
2224
2224
|
function io(e, n, t) {
|
|
@@ -2236,7 +2236,7 @@ function ro(e, n, t, a) {
|
|
|
2236
2236
|
else if (e.sortKeys)
|
|
2237
2237
|
throw new se("sortKeys must be a boolean or a function");
|
|
2238
2238
|
for (l = 0, s = r.length; l < s; l += 1)
|
|
2239
|
-
h = "", (!a || i !== "") && (h += it(e, n)), c = r[l], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), ge(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump &&
|
|
2239
|
+
h = "", (!a || i !== "") && (h += it(e, n)), c = r[l], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), ge(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ee === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, u && (h += it(e, n)), ge(e, n + 1, d, !0, u) && (e.dump && Ee === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
|
|
2240
2240
|
e.tag = o, e.dump = i || "{}";
|
|
2241
2241
|
}
|
|
2242
2242
|
function Dt(e, n, t) {
|
|
@@ -2383,7 +2383,7 @@ const Ao = {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
},
|
|
2385
2385
|
setup(e) {
|
|
2386
|
-
const n = e, t = Ye(), { i18n: { t: a } } = ie.useI18n(), i = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), o =
|
|
2386
|
+
const n = e, t = Ye(), { i18n: { t: a } } = ie.useI18n(), i = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), o = F(""), r = F("");
|
|
2387
2387
|
return Ie(() => n.format, (l) => {
|
|
2388
2388
|
l === "json" ? o.value = JSON.stringify(n.record, null, 2) : l === "yaml" && (r.value = xo.dump(n.record));
|
|
2389
2389
|
}, { immediate: !0 }), (l, s) => {
|
|
@@ -2396,7 +2396,7 @@ const Ao = {
|
|
|
2396
2396
|
"data-testid": `config-card-details-${d}-props`
|
|
2397
2397
|
}, [
|
|
2398
2398
|
d !== "basic" ? (g(), x("div", To, j(d === "advanced" ? C(a)("baseConfigCard.sections.advanced") : C(a)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
2399
|
-
(g(!0), x(pe, null, ue(e.propertyCollections[d], (u) => (g(),
|
|
2399
|
+
(g(!0), x(pe, null, ue(e.propertyCollections[d], (u) => (g(), E(ft, {
|
|
2400
2400
|
key: u.key,
|
|
2401
2401
|
item: u
|
|
2402
2402
|
}, Ce({
|
|
@@ -2434,22 +2434,21 @@ const Ao = {
|
|
|
2434
2434
|
id: "config-card-codeblock",
|
|
2435
2435
|
code: r.value,
|
|
2436
2436
|
language: "yaml",
|
|
2437
|
-
"show-line-number-links": !0,
|
|
2438
2437
|
theme: "dark"
|
|
2439
2438
|
}, null, 8, ["code"])
|
|
2440
2439
|
])) : V("", !0)
|
|
2441
2440
|
], 64);
|
|
2442
2441
|
};
|
|
2443
2442
|
}
|
|
2444
|
-
}), Mo = /* @__PURE__ */ fe(jo, [["__scopeId", "data-v-
|
|
2443
|
+
}), Mo = /* @__PURE__ */ fe(jo, [["__scopeId", "data-v-6c45e9e4"]]), Vt = "24px", Fo = (e, n) => {
|
|
2445
2444
|
const t = e.__vccOpts || e;
|
|
2446
2445
|
for (const [a, i] of n)
|
|
2447
2446
|
t[a] = i;
|
|
2448
2447
|
return t;
|
|
2449
|
-
},
|
|
2448
|
+
}, Eo = (e) => (Zn("data-v-de77c523"), e = e(), Qn(), e), Ko = ["aria-hidden"], Bo = {
|
|
2450
2449
|
key: 0,
|
|
2451
2450
|
"data-testid": "kui-icon-svg-title"
|
|
2452
|
-
}, No = /* @__PURE__ */
|
|
2451
|
+
}, No = /* @__PURE__ */ Eo(() => /* @__PURE__ */ B("path", {
|
|
2453
2452
|
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",
|
|
2454
2453
|
fill: "currentColor"
|
|
2455
2454
|
}, null, -1)), Lo = /* @__PURE__ */ te({
|
|
@@ -2521,7 +2520,7 @@ const Ao = {
|
|
|
2521
2520
|
lineHeight: "0",
|
|
2522
2521
|
width: t.value
|
|
2523
2522
|
}));
|
|
2524
|
-
return (i, o) => (g(),
|
|
2523
|
+
return (i, o) => (g(), E(Me(e.as), {
|
|
2525
2524
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2526
2525
|
class: "kui-icon book-icon",
|
|
2527
2526
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2545,7 +2544,7 @@ const Ao = {
|
|
|
2545
2544
|
_: 1
|
|
2546
2545
|
}, 8, ["aria-hidden", "style"]));
|
|
2547
2546
|
}
|
|
2548
|
-
}), qo = /* @__PURE__ */
|
|
2547
|
+
}), qo = /* @__PURE__ */ Fo(Lo, [["__scopeId", "data-v-de77c523"]]), Po = { "data-testid": "config-card-title" }, Uo = { class: "config-card-actions" }, Ro = ["href"], Do = {
|
|
2549
2548
|
key: 2,
|
|
2550
2549
|
class: "config-card-details-section"
|
|
2551
2550
|
}, Vo = {
|
|
@@ -2645,7 +2644,7 @@ const Ao = {
|
|
|
2645
2644
|
label: "YAML",
|
|
2646
2645
|
value: "yaml"
|
|
2647
2646
|
}
|
|
2648
|
-
], d =
|
|
2647
|
+
], d = F("structured"), u = (w) => {
|
|
2649
2648
|
d.value = w == null ? void 0 : w.value;
|
|
2650
2649
|
}, h = {
|
|
2651
2650
|
id: {
|
|
@@ -2681,7 +2680,7 @@ const Ao = {
|
|
|
2681
2680
|
// the last property displayed
|
|
2682
2681
|
section: de.Basic
|
|
2683
2682
|
}
|
|
2684
|
-
}, m =
|
|
2683
|
+
}, m = F(!1), b = F(!1), k = F(""), p = F(), y = A(() => {
|
|
2685
2684
|
var w, N, $;
|
|
2686
2685
|
if (!p.value)
|
|
2687
2686
|
return [];
|
|
@@ -2772,11 +2771,11 @@ const Ao = {
|
|
|
2772
2771
|
}
|
|
2773
2772
|
}), (w, N) => {
|
|
2774
2773
|
const $ = O("KLabel"), L = O("KSelect"), D = O("KButton"), P = O("KClipboardProvider"), H = O("KSkeleton"), X = O("KEmptyState"), ne = O("KCard");
|
|
2775
|
-
return g(),
|
|
2774
|
+
return g(), E(ne, { class: "kong-ui-entity-base-config-card" }, Ce({
|
|
2776
2775
|
actions: v(() => [
|
|
2777
2776
|
B("div", Uo, [
|
|
2778
2777
|
z(w.$slots, "actions", {}, void 0, !0),
|
|
2779
|
-
e.config.jsonYamlEnabled ? (g(),
|
|
2778
|
+
e.config.jsonYamlEnabled ? (g(), E($, {
|
|
2780
2779
|
key: 0,
|
|
2781
2780
|
class: "config-format-select-label",
|
|
2782
2781
|
"data-testid": "config-format-select-label"
|
|
@@ -2786,14 +2785,14 @@ const Ao = {
|
|
|
2786
2785
|
]),
|
|
2787
2786
|
_: 1
|
|
2788
2787
|
})) : V("", !0),
|
|
2789
|
-
e.config.jsonYamlEnabled ? (g(),
|
|
2788
|
+
e.config.jsonYamlEnabled ? (g(), E(L, {
|
|
2790
2789
|
key: 1,
|
|
2791
2790
|
appearance: "select",
|
|
2792
2791
|
"data-testid": "select-config-format",
|
|
2793
2792
|
items: c,
|
|
2794
2793
|
onChange: u
|
|
2795
2794
|
})) : V("", !0),
|
|
2796
|
-
a.config.jsonYamlEnabled && e.configCardDoc ? (g(),
|
|
2795
|
+
a.config.jsonYamlEnabled && e.configCardDoc ? (g(), E(D, {
|
|
2797
2796
|
key: 2,
|
|
2798
2797
|
appearance: "btn-link",
|
|
2799
2798
|
class: "book-icon",
|
|
@@ -2810,9 +2809,9 @@ const Ao = {
|
|
|
2810
2809
|
]),
|
|
2811
2810
|
_: 1
|
|
2812
2811
|
})) : V("", !0),
|
|
2813
|
-
e.config.jsonYamlEnabled ? V("", !0) : (g(),
|
|
2812
|
+
e.config.jsonYamlEnabled ? V("", !0) : (g(), E(P, { key: 3 }, {
|
|
2814
2813
|
default: v(({ copyToClipboard: Z }) => [
|
|
2815
|
-
!m.value && !b.value ? (g(),
|
|
2814
|
+
!m.value && !b.value ? (g(), E(D, {
|
|
2816
2815
|
key: 0,
|
|
2817
2816
|
appearance: "btn-link",
|
|
2818
2817
|
"data-testid": "json-copy-button",
|
|
@@ -2829,12 +2828,12 @@ const Ao = {
|
|
|
2829
2828
|
])
|
|
2830
2829
|
]),
|
|
2831
2830
|
body: v(() => [
|
|
2832
|
-
m.value ? (g(),
|
|
2831
|
+
m.value ? (g(), E(H, {
|
|
2833
2832
|
key: 0,
|
|
2834
2833
|
"data-testid": "config-card-loader",
|
|
2835
2834
|
"table-columns": 2,
|
|
2836
2835
|
type: "table"
|
|
2837
|
-
})) : b.value ? (g(),
|
|
2836
|
+
})) : b.value ? (g(), E(X, {
|
|
2838
2837
|
key: 1,
|
|
2839
2838
|
"data-testid": "config-card-fetch-error",
|
|
2840
2839
|
"is-error": ""
|
|
@@ -2868,7 +2867,7 @@ const Ao = {
|
|
|
2868
2867
|
"data-testid": `config-card-details-${Z}-props`
|
|
2869
2868
|
}, [
|
|
2870
2869
|
Z !== "basic" ? (g(), x("div", Ho, j(Z === "advanced" ? C(o)("baseConfigCard.sections.advanced") : C(o)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
2871
|
-
(g(!0), x(pe, null, ue(S.value[Z], (J) => (g(),
|
|
2870
|
+
(g(!0), x(pe, null, ue(S.value[Z], (J) => (g(), E(ft, {
|
|
2872
2871
|
key: J.key,
|
|
2873
2872
|
item: J
|
|
2874
2873
|
}, Ce({
|
|
@@ -2965,7 +2964,7 @@ const Ao = {
|
|
|
2965
2964
|
var t;
|
|
2966
2965
|
const a = e, i = st(), { i18n: { t: o } } = ie.useI18n(), { getMessageFromError: r } = ie.useErrors(), { axiosInstance: l } = ie.useAxios({
|
|
2967
2966
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
2968
|
-
}), s =
|
|
2967
|
+
}), s = F(!1), c = F(!1), d = F(""), u = A(() => a.canSubmit === !1 || a.isReadonly), h = A(() => {
|
|
2969
2968
|
var p, y;
|
|
2970
2969
|
if (!a.editId)
|
|
2971
2970
|
return "";
|
|
@@ -2994,12 +2993,12 @@ const Ao = {
|
|
|
2994
2993
|
}
|
|
2995
2994
|
}), (p, y) => {
|
|
2996
2995
|
const f = O("KSkeleton"), S = O("KEmptyState"), M = O("KAlert"), q = O("KButton"), R = O("KCard");
|
|
2997
|
-
return g(),
|
|
2996
|
+
return g(), E(R, { class: "kong-ui-entity-base-form" }, {
|
|
2998
2997
|
body: v(() => [
|
|
2999
|
-
s.value ? (g(),
|
|
2998
|
+
s.value ? (g(), E(f, {
|
|
3000
2999
|
key: 0,
|
|
3001
3000
|
type: "form"
|
|
3002
|
-
})) : c.value ? (g(),
|
|
3001
|
+
})) : c.value ? (g(), E(S, {
|
|
3003
3002
|
key: 1,
|
|
3004
3003
|
"cta-text": C(o)("baseForm.actions.back"),
|
|
3005
3004
|
"data-testid": "form-fetch-error",
|
|
@@ -3017,7 +3016,7 @@ const Ao = {
|
|
|
3017
3016
|
onSubmit: Pe(k, ["prevent"])
|
|
3018
3017
|
}, [
|
|
3019
3018
|
z(p.$slots, "default", {}, void 0, !0),
|
|
3020
|
-
e.errorMessage ? (g(),
|
|
3019
|
+
e.errorMessage ? (g(), E(M, {
|
|
3021
3020
|
key: 0,
|
|
3022
3021
|
"alert-message": e.errorMessage,
|
|
3023
3022
|
appearance: "danger",
|
|
@@ -3085,7 +3084,7 @@ const Ao = {
|
|
|
3085
3084
|
}, l = () => {
|
|
3086
3085
|
var k, p, y;
|
|
3087
3086
|
c.value = ((k = a.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((y = s.value) == null ? void 0 : y.innerText) || "";
|
|
3088
|
-
}, s =
|
|
3087
|
+
}, s = F({}), c = F(0), d = F(0), u = F(""), h = A(() => [a.value, t.value]), m = Ie(
|
|
3089
3088
|
h,
|
|
3090
3089
|
(k) => {
|
|
3091
3090
|
if (i.value && (r(), "ResizeObserver" in window && window)) {
|
|
@@ -3256,7 +3255,7 @@ const Ao = {
|
|
|
3256
3255
|
"data-rowid": S.id,
|
|
3257
3256
|
"data-testid": S.name,
|
|
3258
3257
|
...t.rowAttributes(S)
|
|
3259
|
-
}), s =
|
|
3258
|
+
}), s = F({}), c = (S) => {
|
|
3260
3259
|
var M;
|
|
3261
3260
|
return (M = s.value) == null ? void 0 : M.$el.querySelector(`[data-rowid="${S.id}"]`);
|
|
3262
3261
|
}, d = (S) => {
|
|
@@ -3288,7 +3287,7 @@ const Ao = {
|
|
|
3288
3287
|
};
|
|
3289
3288
|
return (S, M) => {
|
|
3290
3289
|
const q = O("KIcon"), R = O("KButton"), K = O("KDropdownMenu"), w = O("KTable"), N = O("KCard");
|
|
3291
|
-
return g(),
|
|
3290
|
+
return g(), E(N, {
|
|
3292
3291
|
class: "kong-ui-entity-base-table",
|
|
3293
3292
|
title: e.title
|
|
3294
3293
|
}, {
|
|
@@ -3450,7 +3449,7 @@ const Ao = {
|
|
|
3450
3449
|
};
|
|
3451
3450
|
return (l, s) => {
|
|
3452
3451
|
const c = O("KAlert"), d = O("KPrompt");
|
|
3453
|
-
return g(),
|
|
3452
|
+
return g(), E(d, {
|
|
3454
3453
|
"action-button-text": "Yes, delete",
|
|
3455
3454
|
"action-pending": e.actionPending,
|
|
3456
3455
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -3560,7 +3559,7 @@ const Ao = {
|
|
|
3560
3559
|
},
|
|
3561
3560
|
emits: ["update:modelValue"],
|
|
3562
3561
|
setup(e, { emit: n }) {
|
|
3563
|
-
const t = e, { i18n: { t: a } } = ie.useI18n(), i =
|
|
3562
|
+
const t = e, { i18n: { t: a } } = ie.useI18n(), i = F(!1), o = F({}), r = A(() => {
|
|
3564
3563
|
const p = [];
|
|
3565
3564
|
return new URLSearchParams(t.modelValue).forEach((y, f) => {
|
|
3566
3565
|
y !== "" && p.push(f);
|
|
@@ -3603,7 +3602,7 @@ const Ao = {
|
|
|
3603
3602
|
};
|
|
3604
3603
|
return (p, y) => {
|
|
3605
3604
|
const f = O("KInput"), S = O("KButton"), M = O("KSelect"), q = O("KMenuItem"), R = O("KMenu");
|
|
3606
|
-
return e.config.isExactMatch ? (g(),
|
|
3605
|
+
return e.config.isExactMatch ? (g(), E(f, {
|
|
3607
3606
|
key: 0,
|
|
3608
3607
|
autocomplete: "off",
|
|
3609
3608
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3636,7 +3635,7 @@ const Ao = {
|
|
|
3636
3635
|
]),
|
|
3637
3636
|
Le(_(R, { class: "kong-ui-entity-filter-menu" }, {
|
|
3638
3637
|
body: v(() => [
|
|
3639
|
-
(g(!0), x(pe, null, ue(l.value, (K, w) => (g(),
|
|
3638
|
+
(g(!0), x(pe, null, ue(l.value, (K, w) => (g(), E(q, {
|
|
3640
3639
|
key: K.value,
|
|
3641
3640
|
"data-testid": K.value,
|
|
3642
3641
|
expandable: "",
|
|
@@ -3658,7 +3657,7 @@ const Ao = {
|
|
|
3658
3657
|
class: "menu-item-label",
|
|
3659
3658
|
for: d(K.value)
|
|
3660
3659
|
}, j(C(a)("filter.fieldLabel")), 9, Cl),
|
|
3661
|
-
(($ = (N = e.config.schema) == null ? void 0 : N[K.value]) == null ? void 0 : $.type) === "select" ? (g(),
|
|
3660
|
+
(($ = (N = e.config.schema) == null ? void 0 : N[K.value]) == null ? void 0 : $.type) === "select" ? (g(), E(M, {
|
|
3662
3661
|
key: 0,
|
|
3663
3662
|
id: d(K.value),
|
|
3664
3663
|
modelValue: o.value[K.value],
|
|
@@ -3666,7 +3665,7 @@ const Ao = {
|
|
|
3666
3665
|
appearance: "select",
|
|
3667
3666
|
items: u(K.value),
|
|
3668
3667
|
placeholder: C(a)("filter.selectPlaceholder")
|
|
3669
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(),
|
|
3668
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), E(f, {
|
|
3670
3669
|
key: 1,
|
|
3671
3670
|
id: d(K.value),
|
|
3672
3671
|
modelValue: o.value[K.value],
|
|
@@ -3743,7 +3742,7 @@ const Ao = {
|
|
|
3743
3742
|
}
|
|
3744
3743
|
},
|
|
3745
3744
|
setup(e) {
|
|
3746
|
-
const n = e, t =
|
|
3745
|
+
const n = e, t = F(void 0), a = A(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
3747
3746
|
return Ie(() => n.authFunction, async () => {
|
|
3748
3747
|
t.value = await n.authFunction();
|
|
3749
3748
|
}, { immediate: !0 }), (i, o) => a.value ? z(i.$slots, "default", {
|
|
@@ -3810,7 +3809,7 @@ const Ao = {
|
|
|
3810
3809
|
])
|
|
3811
3810
|
], 2));
|
|
3812
3811
|
}
|
|
3813
|
-
}), jl = /* @__PURE__ */ fe($l, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Pn, useDeleteUrlBuilder: Ml, useErrors:
|
|
3812
|
+
}), jl = /* @__PURE__ */ fe($l, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Pn, useDeleteUrlBuilder: Ml, useErrors: Fl, useFetchUrlBuilder: Hl, useFetcher: El, useDebouncedFilter: Yl, useStringHelpers: Jl, useHelpers: Wl, useGatewayFeatureSupported: Gl } = ie;
|
|
3814
3813
|
const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /* @__PURE__ */ te({
|
|
3815
3814
|
__name: "KeySetList",
|
|
3816
3815
|
props: {
|
|
@@ -3855,7 +3854,7 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
3855
3854
|
var le;
|
|
3856
3855
|
const t = e, { i18n: { t: a } } = ut.useI18n(), i = st(), { axiosInstance: o } = Pn({
|
|
3857
3856
|
headers: (le = t.config) == null ? void 0 : le.requestHeaders
|
|
3858
|
-
}), r =
|
|
3857
|
+
}), r = F(1), l = A(() => t.config.app !== "kongManager" || !!t.config.disableSorting), s = {
|
|
3859
3858
|
name: { label: a("keySets.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
3860
3859
|
tags: { label: a("keySets.list.table_headers.tags") },
|
|
3861
3860
|
id: { label: a("keySets.list.table_headers.id"), sortable: !0 }
|
|
@@ -3863,7 +3862,7 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
3863
3862
|
var U, ae;
|
|
3864
3863
|
let T = `${t.config.apiBaseUrl}${Ue.list[t.config.app]}`;
|
|
3865
3864
|
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((U = t.config) == null ? void 0 : U.controlPlaneId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ae = t.config) != null && ae.workspace ? `/${t.config.workspace}` : "")), T;
|
|
3866
|
-
}), u =
|
|
3865
|
+
}), u = F(""), h = A(() => {
|
|
3867
3866
|
const T = t.config.app === "konnect" || t.config.isExactMatch;
|
|
3868
3867
|
if (T)
|
|
3869
3868
|
return {
|
|
@@ -3876,11 +3875,11 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
3876
3875
|
fields: U,
|
|
3877
3876
|
schema: t.config.filterSchema
|
|
3878
3877
|
};
|
|
3879
|
-
}), { fetcher: m, fetcherState: b } =
|
|
3878
|
+
}), { fetcher: m, fetcherState: b } = El(t.config, d.value), k = () => {
|
|
3880
3879
|
u.value = "";
|
|
3881
3880
|
}, p = () => {
|
|
3882
3881
|
r.value++;
|
|
3883
|
-
}, y =
|
|
3882
|
+
}, y = F(""), f = (T, U) => {
|
|
3884
3883
|
const ae = T.id;
|
|
3885
3884
|
if (!U(ae)) {
|
|
3886
3885
|
R(T, "id");
|
|
@@ -3924,7 +3923,7 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
3924
3923
|
}), N = (T) => ({
|
|
3925
3924
|
label: a("keySets.actions.edit"),
|
|
3926
3925
|
to: t.config.getEditRoute(T)
|
|
3927
|
-
}), $ =
|
|
3926
|
+
}), $ = F(void 0), L = F(!1), D = F(!1), P = F(""), H = Ml(t.config, d.value), X = (T) => {
|
|
3928
3927
|
$.value = T, L.value = !0;
|
|
3929
3928
|
}, ne = () => {
|
|
3930
3929
|
L.value = !1;
|
|
@@ -3948,7 +3947,7 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
3948
3947
|
}
|
|
3949
3948
|
y.value = "";
|
|
3950
3949
|
});
|
|
3951
|
-
const J =
|
|
3950
|
+
const J = F({
|
|
3952
3951
|
ctaPath: t.config.createRoute,
|
|
3953
3952
|
ctaText: void 0,
|
|
3954
3953
|
message: a("keySets.list.empty_state.description"),
|
|
@@ -4007,9 +4006,9 @@ const Kl = { class: "kong-ui-entities-key-sets-list" }, Bl = { key: 1 }, Nl = /*
|
|
|
4007
4006
|
B("b", null, j(G ?? "-"), 1)
|
|
4008
4007
|
]),
|
|
4009
4008
|
tags: v(({ rowValue: G }) => [
|
|
4010
|
-
(G == null ? void 0 : G.length) > 0 ? (g(),
|
|
4009
|
+
(G == null ? void 0 : G.length) > 0 ? (g(), E(Rn, { key: 0 }, {
|
|
4011
4010
|
default: v(() => [
|
|
4012
|
-
(g(!0), x(pe, null, ue(G, (me) => (g(),
|
|
4011
|
+
(g(!0), x(pe, null, ue(G, (me) => (g(), E(be, {
|
|
4013
4012
|
key: me,
|
|
4014
4013
|
onClick: U[1] || (U[1] = Pe(() => {
|
|
4015
4014
|
}, ["stop"]))
|
|
@@ -4142,7 +4141,7 @@ const Un = (e, n) => {
|
|
|
4142
4141
|
emits: ["update", "error", "loading"],
|
|
4143
4142
|
setup(e, { emit: n }) {
|
|
4144
4143
|
var p;
|
|
4145
|
-
const t = e, a = st(), { i18n: { t: i } } = ut.useI18n(), { getMessageFromError: o } =
|
|
4144
|
+
const t = e, a = st(), { i18n: { t: i } } = ut.useI18n(), { getMessageFromError: o } = Fl(), { axiosInstance: r } = Pn({
|
|
4146
4145
|
headers: (p = t.config) == null ? void 0 : p.requestHeaders
|
|
4147
4146
|
}), l = A(() => Ue.form[t.config.app].edit), s = A(() => t.keySetId ? tt.Edit : tt.Create), c = Ct({
|
|
4148
4147
|
fields: {
|
|
@@ -4266,7 +4265,7 @@ const Ql = /* @__PURE__ */ Un(ql, [["__scopeId", "data-v-29df09d7"]]), Pl = { cl
|
|
|
4266
4265
|
},
|
|
4267
4266
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4268
4267
|
setup(e) {
|
|
4269
|
-
const n = e, { i18n: { t } } = ut.useI18n(), a = A(() => Ue.form[n.config.app].edit), i =
|
|
4268
|
+
const n = e, { i18n: { t } } = ut.useI18n(), a = A(() => Ue.form[n.config.app].edit), i = F({
|
|
4270
4269
|
id: {},
|
|
4271
4270
|
name: {},
|
|
4272
4271
|
last_updated: {},
|