@kong-ui-public/entities-shared 3.34.2-pr.2726.648af5c39.0 → 3.34.2-pr.2726.86cbff533.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as qt, ref as M, computed as $, unref as A, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as N, openBlock as g, resolveDynamicComponent as De, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as P, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as
|
|
1
|
+
import { inject as qt, ref as M, computed as $, unref as A, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as N, openBlock as g, resolveDynamicComponent as De, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as P, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
|
|
2
2
|
import mt from "axios";
|
|
3
3
|
import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as gt, KTruncate as li, KBadge as si } from "@kong/kongponents";
|
|
@@ -6,8 +6,8 @@ import { createdBundledHighlighter as ci, createSingletonShorthands as ui } from
|
|
|
6
6
|
import { createJavaScriptRegexEngine as di } from "@shikijs/engine-javascript";
|
|
7
7
|
import { BookIcon as Jt, LanguageShellIcon as ht, LanguageBashIcon as yt, AddIcon as Gt, CloseIcon as fi, ChevronDownIcon as pi, CopyIcon as mi } from "@kong/icons";
|
|
8
8
|
import { useRouter as gi } from "vue-router";
|
|
9
|
-
var hi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(hi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}),
|
|
10
|
-
const qe = Object.values(
|
|
9
|
+
var hi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(hi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), $e = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))($e || {});
|
|
10
|
+
const qe = Object.values($e), vi = [
|
|
11
11
|
"ca_certificate",
|
|
12
12
|
"certificate",
|
|
13
13
|
"consumer",
|
|
@@ -935,7 +935,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
935
935
|
"data-testid": `${e.item.key}-label`
|
|
936
936
|
}, [
|
|
937
937
|
U(j.$slots, "label", { item: e.item }, () => [
|
|
938
|
-
K(w, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
938
|
+
K(w, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
939
939
|
default: _(() => [
|
|
940
940
|
K(S, {
|
|
941
941
|
text: A(x) ? e.item.label : ""
|
|
@@ -1702,7 +1702,7 @@ function ve(e) {
|
|
|
1702
1702
|
function se(e) {
|
|
1703
1703
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function we(e) {
|
|
1706
1706
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1707
1707
|
}
|
|
1708
1708
|
function Ba(e) {
|
|
@@ -1734,8 +1734,8 @@ function In(e, t, n) {
|
|
|
1734
1734
|
}) : e[t] = n;
|
|
1735
1735
|
}
|
|
1736
1736
|
var Fn = new Array(256), On = new Array(256);
|
|
1737
|
-
for (var
|
|
1738
|
-
Fn[
|
|
1737
|
+
for (var Ae = 0; Ae < 256; Ae++)
|
|
1738
|
+
Fn[Ae] = Et(Ae) ? 1 : 0, On[Ae] = Et(Ae);
|
|
1739
1739
|
function Na(e, t) {
|
|
1740
1740
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || lt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1741
1741
|
}
|
|
@@ -1787,7 +1787,7 @@ function Ft(e, t, n, i) {
|
|
|
1787
1787
|
for (ee.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1788
1788
|
o = r[a], ye.call(t, o) || (In(t, o, n[o]), i[o] = !0);
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function Se(e, t, n, i, r, o, a, l, s) {
|
|
1791
1791
|
var c, d;
|
|
1792
1792
|
if (Array.isArray(r))
|
|
1793
1793
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
@@ -1832,17 +1832,17 @@ function ct(e, t) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
function Ma(e, t, n) {
|
|
1834
1834
|
var i, r, o, a, l, s, c, d, u = e.kind, p = e.result, m;
|
|
1835
|
-
if (m = e.input.charCodeAt(e.position), se(m) ||
|
|
1835
|
+
if (m = e.input.charCodeAt(e.position), se(m) || we(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), se(r) || n && we(r)))
|
|
1836
1836
|
return !1;
|
|
1837
1837
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; m !== 0; ) {
|
|
1838
1838
|
if (m === 58) {
|
|
1839
|
-
if (r = e.input.charCodeAt(e.position + 1), se(r) || n &&
|
|
1839
|
+
if (r = e.input.charCodeAt(e.position + 1), se(r) || n && we(r))
|
|
1840
1840
|
break;
|
|
1841
1841
|
} else if (m === 35) {
|
|
1842
1842
|
if (i = e.input.charCodeAt(e.position - 1), se(i))
|
|
1843
1843
|
break;
|
|
1844
1844
|
} else {
|
|
1845
|
-
if (e.position === e.lineStart && Ve(e) || n &&
|
|
1845
|
+
if (e.position === e.lineStart && Ve(e) || n && we(m))
|
|
1846
1846
|
break;
|
|
1847
1847
|
if (de(m))
|
|
1848
1848
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1904,7 +1904,7 @@ function Da(e, t) {
|
|
|
1904
1904
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
|
|
1905
1905
|
if (Z(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
|
|
1906
1906
|
return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
|
|
1907
|
-
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = h = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, h = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ?
|
|
1907
|
+
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = h = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, h = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ? Se(e, l, y, k, h, C, i, r, o) : u ? l.push(Se(e, null, y, k, h, C, i, r, o)) : l.push(h), Z(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1908
1908
|
}
|
|
1909
1909
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1910
1910
|
}
|
|
@@ -1975,7 +1975,7 @@ function qa(e, t, n) {
|
|
|
1975
1975
|
if (e.firstTabInLine !== -1) return !1;
|
|
1976
1976
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
|
|
1977
1977
|
if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && se(i))
|
|
1978
|
-
x === 63 ? (k && (
|
|
1978
|
+
x === 63 ? (k && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !0, r = !0) : k ? (k = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
|
|
1979
1979
|
else {
|
|
1980
1980
|
if (a = e.line, l = e.lineStart, s = e.position, !Ee(e, n, Sn, !1, !0))
|
|
1981
1981
|
break;
|
|
@@ -1983,7 +1983,7 @@ function qa(e, t, n) {
|
|
|
1983
1983
|
for (x = e.input.charCodeAt(e.position); ve(x); )
|
|
1984
1984
|
x = e.input.charCodeAt(++e.position);
|
|
1985
1985
|
if (x === 58)
|
|
1986
|
-
x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (
|
|
1986
|
+
x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !1, r = !1, m = e.tag, y = e.result;
|
|
1987
1987
|
else if (C)
|
|
1988
1988
|
I(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1989
1989
|
else
|
|
@@ -1993,12 +1993,12 @@ function qa(e, t, n) {
|
|
|
1993
1993
|
else
|
|
1994
1994
|
return e.tag = c, e.anchor = d, !0;
|
|
1995
1995
|
}
|
|
1996
|
-
if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : h = e.result), k || (
|
|
1996
|
+
if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : h = e.result), k || (Se(e, u, p, m, y, h, a, l, s), m = y = h = null), Z(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
|
|
1997
1997
|
I(e, "bad indentation of a mapping entry");
|
|
1998
1998
|
else if (e.lineIndent < t)
|
|
1999
1999
|
break;
|
|
2000
2000
|
}
|
|
2001
|
-
return k &&
|
|
2001
|
+
return k && Se(e, u, p, m, y, null, a, l, s), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
|
|
2002
2002
|
}
|
|
2003
2003
|
function Ha(e) {
|
|
2004
2004
|
var t, n = !1, i = !1, r, o, a;
|
|
@@ -2024,14 +2024,14 @@ function Ha(e) {
|
|
|
2024
2024
|
function Va(e) {
|
|
2025
2025
|
var t, n;
|
|
2026
2026
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
2027
|
-
for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !
|
|
2027
|
+
for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !we(n); )
|
|
2028
2028
|
n = e.input.charCodeAt(++e.position);
|
|
2029
2029
|
return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2030
2030
|
}
|
|
2031
2031
|
function Ya(e) {
|
|
2032
2032
|
var t, n, i;
|
|
2033
2033
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2034
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !
|
|
2034
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !we(i); )
|
|
2035
2035
|
i = e.input.charCodeAt(++e.position);
|
|
2036
2036
|
return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
|
|
2037
2037
|
}
|
|
@@ -2228,13 +2228,13 @@ function qn(e) {
|
|
|
2228
2228
|
var t = /^\n* /;
|
|
2229
2229
|
return t.test(e);
|
|
2230
2230
|
}
|
|
2231
|
-
var Hn = 1, tt = 2, Vn = 3, Yn = 4,
|
|
2231
|
+
var Hn = 1, tt = 2, Vn = 3, Yn = 4, _e = 5;
|
|
2232
2232
|
function _o(e, t, n, i, r, o, a, l) {
|
|
2233
2233
|
var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1, h = xo(Ie(e, 0)) && Ao(Ie(e, e.length - 1));
|
|
2234
2234
|
if (t || a)
|
|
2235
2235
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2236
2236
|
if (c = Ie(e, s), !Le(c))
|
|
2237
|
-
return
|
|
2237
|
+
return _e;
|
|
2238
2238
|
h = h && Rt(c, d, l), d = c;
|
|
2239
2239
|
}
|
|
2240
2240
|
else {
|
|
@@ -2243,12 +2243,12 @@ function _o(e, t, n, i, r, o, a, l) {
|
|
|
2243
2243
|
u = !0, m && (p = p || // Foldable line = too long, and not more-indented.
|
|
2244
2244
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2245
2245
|
else if (!Le(c))
|
|
2246
|
-
return
|
|
2246
|
+
return _e;
|
|
2247
2247
|
h = h && Rt(c, d, l), d = c;
|
|
2248
2248
|
}
|
|
2249
2249
|
p = p || m && s - y - 1 > i && e[y + 1] !== " ";
|
|
2250
2250
|
}
|
|
2251
|
-
return !u && !p ? h && !a && !r(e) ? Hn : o === Be ?
|
|
2251
|
+
return !u && !p ? h && !a && !r(e) ? Hn : o === Be ? _e : tt : n > 9 && qn(e) ? _e : a ? o === Be ? _e : tt : p ? Yn : Vn;
|
|
2252
2252
|
}
|
|
2253
2253
|
function wo(e, t, n, i, r) {
|
|
2254
2254
|
e.dump = function() {
|
|
@@ -2278,7 +2278,7 @@ function wo(e, t, n, i, r) {
|
|
|
2278
2278
|
return "|" + Kt(t, e.indent) + Nt(Bt(t, o));
|
|
2279
2279
|
case Yn:
|
|
2280
2280
|
return ">" + Kt(t, e.indent) + Nt(Bt(So(t, a), o));
|
|
2281
|
-
case
|
|
2281
|
+
case _e:
|
|
2282
2282
|
return '"' + $o(t) + '"';
|
|
2283
2283
|
default:
|
|
2284
2284
|
throw new oe("impossible error: invalid scalar style");
|
|
@@ -2681,7 +2681,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2681
2681
|
key: d.key,
|
|
2682
2682
|
item: d
|
|
2683
2683
|
}, () => [
|
|
2684
|
-
K(nn, { item: d },
|
|
2684
|
+
K(nn, { item: d }, ke({
|
|
2685
2685
|
label: _(() => [
|
|
2686
2686
|
U(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2687
2687
|
]),
|
|
@@ -3042,7 +3042,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3042
3042
|
return g(), N(G, {
|
|
3043
3043
|
class: "kong-ui-entity-base-config-card",
|
|
3044
3044
|
"title-tag": e.titleTag
|
|
3045
|
-
},
|
|
3045
|
+
}, ke({
|
|
3046
3046
|
actions: _(() => [
|
|
3047
3047
|
L("div", il, [
|
|
3048
3048
|
U(f.$slots, "actions", {}, void 0, !0),
|
|
@@ -3108,7 +3108,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3108
3108
|
"property-collections": X.value,
|
|
3109
3109
|
record: C.value,
|
|
3110
3110
|
"sub-entity-type": e.subEntityType
|
|
3111
|
-
},
|
|
3111
|
+
}, ke({ _: 2 }, [
|
|
3112
3112
|
ce(Object.keys(f.$slots), (H) => ({
|
|
3113
3113
|
name: H,
|
|
3114
3114
|
fn: _((Q) => [
|
|
@@ -3159,8 +3159,8 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3159
3159
|
}), l = $(() => {
|
|
3160
3160
|
var m, y, h, k, C;
|
|
3161
3161
|
const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
|
|
3162
|
-
t.entityType ===
|
|
3163
|
-
const u = t.entityType ===
|
|
3162
|
+
t.entityType === $e.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (h = d.consumer) != null && h.id && (d.consumer = d.consumer.id), (k = d.consumer_group) != null && k.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === $e.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
|
|
3163
|
+
const u = t.entityType === $e.KeySet ? "key_sets" : t.entityType + "s", p = {
|
|
3164
3164
|
...a.value,
|
|
3165
3165
|
[u]: [d]
|
|
3166
3166
|
};
|
|
@@ -3194,15 +3194,7 @@ ${l.value}
|
|
|
3194
3194
|
L("p", null, [
|
|
3195
3195
|
K(A(i), {
|
|
3196
3196
|
keypath: `deckCodeBlock.hint.${e.app}`
|
|
3197
|
-
}, {
|
|
3198
|
-
token: _(() => [
|
|
3199
|
-
K(m, null, {
|
|
3200
|
-
default: _(() => [...u[1] || (u[1] = [
|
|
3201
|
-
q("DECK_KONNECT_TOKEN", -1)
|
|
3202
|
-
])]),
|
|
3203
|
-
_: 1
|
|
3204
|
-
})
|
|
3205
|
-
]),
|
|
3197
|
+
}, ke({
|
|
3206
3198
|
link: _(() => [
|
|
3207
3199
|
K(A(oi), {
|
|
3208
3200
|
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
@@ -3213,8 +3205,21 @@ ${l.value}
|
|
|
3213
3205
|
_: 1
|
|
3214
3206
|
}, 8, ["href"])
|
|
3215
3207
|
]),
|
|
3216
|
-
_:
|
|
3217
|
-
},
|
|
3208
|
+
_: 2
|
|
3209
|
+
}, [
|
|
3210
|
+
e.app === "konnect" ? {
|
|
3211
|
+
name: "token",
|
|
3212
|
+
fn: _(() => [
|
|
3213
|
+
K(m, null, {
|
|
3214
|
+
default: _(() => [...u[1] || (u[1] = [
|
|
3215
|
+
q("DECK_KONNECT_TOKEN", -1)
|
|
3216
|
+
])]),
|
|
3217
|
+
_: 1
|
|
3218
|
+
})
|
|
3219
|
+
]),
|
|
3220
|
+
key: "0"
|
|
3221
|
+
} : void 0
|
|
3222
|
+
]), 1032, ["keypath"])
|
|
3218
3223
|
]),
|
|
3219
3224
|
e.app === "konnect" ? (g(), N(y, {
|
|
3220
3225
|
key: 0,
|
|
@@ -3236,7 +3241,7 @@ ${l.value}
|
|
|
3236
3241
|
]);
|
|
3237
3242
|
};
|
|
3238
3243
|
}
|
|
3239
|
-
}), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-
|
|
3244
|
+
}), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-bae91adb"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
|
|
3240
3245
|
__name: "EntityBaseForm",
|
|
3241
3246
|
props: {
|
|
3242
3247
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3382,7 +3387,7 @@ ${l.value}
|
|
|
3382
3387
|
hash: "#yaml"
|
|
3383
3388
|
}
|
|
3384
3389
|
]);
|
|
3385
|
-
return r.config.app === "konnect" && r.entityType !==
|
|
3390
|
+
return r.config.app === "konnect" && r.entityType !== $e.Other && j.value.splice(1, 0, {
|
|
3386
3391
|
title: a("baseForm.configuration.terraform"),
|
|
3387
3392
|
hash: "#terraform"
|
|
3388
3393
|
}), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) && j.value.push({
|
|
@@ -3887,7 +3892,7 @@ ${l.value}
|
|
|
3887
3892
|
onSort: v[0] || (v[0] = (J) => k(J)),
|
|
3888
3893
|
onState: p,
|
|
3889
3894
|
"onUpdate:tablePreferences": w
|
|
3890
|
-
},
|
|
3895
|
+
}, ke({
|
|
3891
3896
|
toolbar: _(() => [
|
|
3892
3897
|
L("div", gl, [
|
|
3893
3898
|
U(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
@@ -4021,7 +4026,7 @@ ${l.value}
|
|
|
4021
4026
|
class: "message",
|
|
4022
4027
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4023
4028
|
tag: "p"
|
|
4024
|
-
},
|
|
4029
|
+
}, ke({
|
|
4025
4030
|
entityType: _(() => [
|
|
4026
4031
|
q(O(i.entityType), 1)
|
|
4027
4032
|
]),
|
|
@@ -4175,13 +4180,13 @@ ${l.value}
|
|
|
4175
4180
|
K(Dt)
|
|
4176
4181
|
]),
|
|
4177
4182
|
after: _(() => [
|
|
4178
|
-
|
|
4183
|
+
Ce(K(A(fi), {
|
|
4179
4184
|
class: "kong-ui-entity-filter-clear",
|
|
4180
4185
|
role: "button",
|
|
4181
4186
|
tabindex: "0",
|
|
4182
4187
|
onClick: m
|
|
4183
4188
|
}, null, 512), [
|
|
4184
|
-
[
|
|
4189
|
+
[xe, e.modelValue !== ""]
|
|
4185
4190
|
])
|
|
4186
4191
|
]),
|
|
4187
4192
|
_: 1
|
|
@@ -4197,13 +4202,13 @@ ${l.value}
|
|
|
4197
4202
|
]),
|
|
4198
4203
|
_: 1
|
|
4199
4204
|
}),
|
|
4200
|
-
|
|
4205
|
+
Ce(L("div", {
|
|
4201
4206
|
class: "kong-ui-entity-filter-backdrop",
|
|
4202
4207
|
onClick: d
|
|
4203
4208
|
}, null, 512), [
|
|
4204
|
-
[
|
|
4209
|
+
[xe, o.value]
|
|
4205
4210
|
]),
|
|
4206
|
-
|
|
4211
|
+
Ce(L("div", Tl, [
|
|
4207
4212
|
(g(!0), T(ue, null, ce(c.value, (b) => {
|
|
4208
4213
|
var V, J;
|
|
4209
4214
|
return g(), T("div", {
|
|
@@ -4219,15 +4224,15 @@ ${l.value}
|
|
|
4219
4224
|
onKeydown: ti((E) => u(b.value), ["enter"])
|
|
4220
4225
|
}, [
|
|
4221
4226
|
q(O(b.label) + " ", 1),
|
|
4222
|
-
|
|
4223
|
-
[
|
|
4227
|
+
Ce(L("span", Fl, null, 512), [
|
|
4228
|
+
[xe, s.value.includes(b.value)]
|
|
4224
4229
|
]),
|
|
4225
4230
|
K(A(pi), {
|
|
4226
4231
|
class: fe(["menu-item-expand-icon", { expanded: l.value.has(b.value) }]),
|
|
4227
4232
|
color: A(sr)
|
|
4228
4233
|
}, null, 8, ["class", "color"])
|
|
4229
4234
|
], 42, Il),
|
|
4230
|
-
|
|
4235
|
+
Ce(L("div", Ol, [
|
|
4231
4236
|
L("label", {
|
|
4232
4237
|
class: "menu-item-label",
|
|
4233
4238
|
for: y(b.value)
|
|
@@ -4251,9 +4256,9 @@ ${l.value}
|
|
|
4251
4256
|
type: k(b.value)
|
|
4252
4257
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4253
4258
|
], 512), [
|
|
4254
|
-
[
|
|
4259
|
+
[xe, l.value.has(b.value)]
|
|
4255
4260
|
]),
|
|
4256
|
-
|
|
4261
|
+
Ce(L("div", Ll, [
|
|
4257
4262
|
K(f, {
|
|
4258
4263
|
appearance: "tertiary",
|
|
4259
4264
|
"data-testid": "apply-filter",
|
|
@@ -4277,7 +4282,7 @@ ${l.value}
|
|
|
4277
4282
|
_: 1
|
|
4278
4283
|
}, 8, ["onClick"])
|
|
4279
4284
|
], 512), [
|
|
4280
|
-
[
|
|
4285
|
+
[xe, l.value.has(b.value)]
|
|
4281
4286
|
])
|
|
4282
4287
|
], 8, El);
|
|
4283
4288
|
}), 128)),
|
|
@@ -4294,7 +4299,7 @@ ${l.value}
|
|
|
4294
4299
|
})
|
|
4295
4300
|
])
|
|
4296
4301
|
], 512), [
|
|
4297
|
-
[
|
|
4302
|
+
[xe, o.value]
|
|
4298
4303
|
])
|
|
4299
4304
|
]));
|
|
4300
4305
|
};
|
|
@@ -4879,7 +4884,7 @@ export {
|
|
|
4879
4884
|
rn as JsonCodeBlock,
|
|
4880
4885
|
Ns as PermissionsWrapper,
|
|
4881
4886
|
vi as SupportedEntityDeckArray,
|
|
4882
|
-
|
|
4887
|
+
$e as SupportedEntityType,
|
|
4883
4888
|
qe as SupportedEntityTypesArray,
|
|
4884
4889
|
Us as TableTags,
|
|
4885
4890
|
Gn as TerraformCodeBlock,
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
${c.value}
|
|
57
57
|
' | ${f}`:`@'
|
|
58
58
|
${c.value}
|
|
59
|
-
'@ | ${f}`});return(f,u)=>{const m=t.resolveComponent("KSelect"),h=t.resolveComponent("KBadge"),y=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Zi,[t.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),items:i},{"item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),"selected-item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),_:1},8,["modelValue"]),t.createElementVNode("p",null,[t.createVNode(t.unref(o),{keypath:`deckCodeBlock.hint.${e.app}`},{token:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),link:t.withCtx(()=>[t.createVNode(t.unref(oe.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:1},8,["keypath"])]),e.app==="konnect"?(t.openBlock(),t.createBlock(y,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(y,{key:1,id:"deck-codeblock",code:d.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-a014ea37"]]),Xi=["novalidate"],ea=W(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ue.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var j;const o=r,i=e,l=En.useRouter(),{i18n:{t:a}}=V.useI18n(),{getMessageFromError:c}=V.useErrors(),{axiosInstance:s}=V.useAxios((j=i.config)==null?void 0:j.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!i.editId),u=t.ref(!1),m=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),y=t.ref(!1),g=t.computed(()=>{var S,T;let A=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?A=A.replace(/{controlPlaneId}/gi,((S=i.config)==null?void 0:S.controlPlaneId)||""):i.config.app==="kongManager"&&(A=A.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),i.editId?(A=A.replace(/{id}/gi,i.editId),A):(A=A.replace(/\/{id}/gi,""),A)}),b=()=>{y.value=!y.value},x=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):w()},w=()=>{o("cancel")},$=()=>{h.value||o("submit")},I=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);return i.config.app==="konnect"&&i.entityType!==ne.Other&&I.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"}),i.config.app==="konnect"&&i.config.enableDeckTab&&Ze.includes(i.entityType)&&I.value.push({title:a("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,A=>{o("loading",A)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,d.value=!0;const{data:A}=await s.get(g.value);o("fetch:success",A)}catch(A){const S=c(A);m.value=S.startsWith("code")?a("baseForm.errors.edit"):S,u.value=!0,o("fetch:error",A)}finally{d.value=!1}}),n({viewConfig:b,formCancel:w,formSubmit:$}),(A,S)=>{const T=t.resolveComponent("KSkeleton"),p=t.resolveComponent("KEmptyState"),k=t.resolveComponent("KAlert"),C=t.resolveComponent("KButton"),L=t.resolveComponent("KTabs"),D=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(T,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(p,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:x},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers($,["prevent"])},[t.renderSlot(A.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(k,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(A.$slots,"form-actions",{},()=>[t.createVNode(C,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:S[0]||(S[0]=E=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(C,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:S[1]||(S[1]=E=>!!e.actionTeleportTarget&&w())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(C,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:S[2]||(S[2]=E=>!!e.actionTeleportTarget&&$())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,Xi)),t.createVNode(D,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:y.value,onClose:S[4]||(S[4]=E=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(L,{"data-testid":"form-view-configuration-slideout-tabs",tabs:I.value,onChange:S[3]||(S[3]=E=>o("codeBlockTabChange",E.replace("#","")))},{json:t.withCtx(()=>[t.createVNode($e,{config:e.config,"entity-record":i.formFields,"fetcher-url":g.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(qe,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(He,{"entity-record":i.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(xn,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":i.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.kongAdminApiUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:1},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-f38ef70b"]]),ta=["data-truncate"],na=W(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var b;return((b=n.rowEl)==null?void 0:b.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var b;return((b=r.value)==null?void 0:b.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var x,w;const b=(x=n.rowEl)==null?void 0:x.querySelectorAll("td");return b?((w=b[0])==null?void 0:w.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var x,w,$;let b=((x=r.value)==null?void 0:x.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const I=window.getComputedStyle(r.value);b-=(parseFloat(I.paddingLeft)||0)+(parseFloat(I.paddingRight)||0)}f.value=((w=o.value)==null?void 0:w.getBoundingClientRect().width)||0,u.value=b,m.value=(($=d.value)==null?void 0:$.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),h=t.computed(()=>[o.value,r.value]),y=t.watch(h,b=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(x=>{window.requestAnimationFrame(()=>{!Array.isArray(x)||!x.length||s()})});for(const x of b)x&&a.observe(x)}},{immediate:!0,flush:"post",deep:!0}),g=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(b,x)=>{const w=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(w,{"max-width":"300",placement:"bottom-start",text:g.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,ta)):t.renderSlot(b.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),ra={class:"toolbar-container"},oa={key:0,class:"toolbar-button-container"},ia={key:0,class:"hidden"},aa=W(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=V.useI18n(),l=t.computed(()=>{var p,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(C=>{const L=r.tableHeaders[C];p.push({label:L.label??C,key:C,sortable:L.sortable??!1,hidable:L.hidable??!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),s=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),d=t.ref({}),f=p=>{var k;return(k=d.value)==null?void 0:k.$el.querySelector(`[data-rowid="${p.id}"]`)},u=p=>{const k={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=p=>{w(p),o("state",p)},h=()=>{o("empty-state-cta-clicked"),y()},y=()=>{o("clear-search-input")},g=t.computed(()=>r.disableRowClick?void 0:(p,k)=>{o("click:row",k)}),b=p=>{o("sort",p)},{hideTableToolbar:x,handleStateChange:w}=V.useTableState(()=>r.query),{setTablePreferences:$,getTablePreferences:I}=In(),j=t.ref(I(a.value,r.defaultTablePreferences)),A=t.computed(()=>{const p=I(a.value);return{...r.initialFetcherParams,...p}}),S=p=>{j.value=p,c.value.forEach(k=>{!("hidable"in k)||!j.value.columnVisibility||k.hidable===!1&&(j.value.columnVisibility[k.key]=!0)}),a.value&&$(a.value,p)},T=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(p,k)=>{const C=t.resolveComponent("KTableData"),L=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(L,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(C,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(x),"initial-fetcher-params":A.value,loading:e.isLoading,"pagination-attributes":T.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":j.value,onEmptyStateActionClick:h,"onRow:click":g.value,onSort:k[0]||(k[0]=D=>b(D)),onState:m,"onUpdate:tablePreferences":S},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",ra,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",oa,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:D})=>[t.renderSlot(p.$slots,"actions",{row:D},void 0,!0)]),_:2},[p.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(D,E)=>({name:E,fn:t.withCtx(({row:N,rowValue:R})=>[t.createVNode(na,{"key-name":String(E),"row-el":f(N),tooltip:D.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,E,{row:N,rowKey:e.rowKey,rowValue:R},()=>[t.createTextVNode(t.toDisplayString(R),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),p.$slots["outside-actions"]&&t.unref(x)?(t.openBlock(),t.createElementBlock("div",ia,[t.renderSlot(p.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-44153100"]]),la={key:0,class:"kong-ui-entity-delete-error"},ca={key:1,class:"description"},sa=W(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=V.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",la,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),da={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ua={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},fa=["fill"],pa={mask:"url(#mask0_180_20349)"},ma=["fill"],wn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Xn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",da,[t.createElementVNode("mask",ua,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,fa)]),t.createElementVNode("g",pa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ma)])]))}}),ha={key:1,class:"kong-ui-entity-filter"},ga={class:"kong-ui-entity-filter-menu"},ya=["data-testid"],ka=["onClick","onKeydown"],Ca={class:"menu-item-indicator"},ba={class:"menu-item-body"},xa=["for"],wa={class:"menu-item-buttons"},Sa={class:"filter-clear-button-container"},Aa=W(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=V.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const A=[];return new URLSearchParams(o.modelValue).forEach((S,T)=>{S!==""&&A.push(T)}),A}),d=t.computed(()=>{const A=o.config.fields;return Object.keys(A).filter(S=>{var T;return(T=A==null?void 0:A[S])==null?void 0:T.searchable}).map(S=>({label:A[S].label||S,value:S,expanded:!1}))});t.watch(()=>o.modelValue,A=>{a.value={},new URLSearchParams(A).forEach((S,T)=>{a.value[T]=S})});const f=()=>{l.value=!l.value},u=A=>{c.value.has(A)?c.value.delete(A):c.value.add(A)},m=A=>{i("update:modelValue",A)},h=()=>{m("")},y=A=>`filter-${A}`,g=A=>{var S,T;return(((T=(S=o.config.schema)==null?void 0:S[A])==null?void 0:T.values)??[]).map(p=>typeof p=="string"?{value:p,label:p}:p)},b=A=>{var S,T;return((T=(S=o.config.schema)==null?void 0:S[A])==null?void 0:T.type)??"text"},x=A=>{a.value={...a.value,[A]:""},$()},w=()=>{a.value={},$(!0)},$=(A=!1)=>{const S=Object.keys(a.value).reduce((T,p)=>(a.value[p]&&(T[p]=`${a.value[p]}`),T),{});A&&(l.value=!1),i("update:modelValue",new URLSearchParams(S).toString())},I=A=>{var S,T;return!!((T=(S=o.config.schema)==null?void 0:S[A])!=null&&T.filterFunction)},j=(A,S)=>{var p;const T=(p=o.config.schema)==null?void 0:p[A];return(T==null?void 0:T.filterFunction)===void 0?!0:T.filterFunction(S)};return(A,S)=>{const T=t.resolveComponent("KInput"),p=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(T,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(wn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(G.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:h},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ha,[t.createVNode(p,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(wn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ga,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,C=>{var L,D;return t.openBlock(),t.createElementBlock("div",{key:C.value,class:"kong-ui-entity-filter-menu-item","data-testid":C.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(C.value)}]),role:"button",tabindex:"0",onClick:E=>u(C.value),onKeydown:t.withKeys(E=>u(C.value),["enter"])},[t.createTextVNode(t.toDisplayString(C.label)+" ",1),t.withDirectives(t.createElementVNode("span",Ca,null,512),[[t.vShow,s.value.includes(C.value)]]),t.createVNode(t.unref(G.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(C.value)}]),color:t.unref(tr)},null,8,["class","color"])],42,ka),t.withDirectives(t.createElementVNode("div",ba,[t.createElementVNode("label",{class:"menu-item-label",for:y(C.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,xa),((D=(L=e.config.schema)==null?void 0:L[C.value])==null?void 0:D.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:y(C.value),modelValue:a.value[C.value],"onUpdate:modelValue":E=>a.value[C.value]=E,"enable-filtering":I(C.value),"filter-function":E=>j(C.value,E),items:g(C.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(T,{key:1,id:y(C.value),modelValue:a.value[C.value],"onUpdate:modelValue":E=>a.value[C.value]=E,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:b(C.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(C.value)]]),t.withDirectives(t.createElementVNode("div",wa,[t.createVNode(p,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=E=>$(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(p,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:E=>x(C.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(C.value)]])],8,ya)}),128)),t.createElementVNode("div",Sa,[t.createVNode(p,{appearance:"tertiary",size:"small",onClick:w},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ba=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=V.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const h=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(h,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),_a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),q=[];for(let e=0;e<256;++e)q.push((e+256).toString(16).slice(1));function Ea(e,n=0){return(q[e[n+0]]+q[e[n+1]]+q[e[n+2]]+q[e[n+3]]+"-"+q[e[n+4]]+q[e[n+5]]+"-"+q[e[n+6]]+q[e[n+7]]+"-"+q[e[n+8]]+q[e[n+9]]+"-"+q[e[n+10]]+q[e[n+11]]+q[e[n+12]]+q[e[n+13]]+q[e[n+14]]+q[e[n+15]]).toLowerCase()}let Ye;const Ta=new Uint8Array(16);function $a(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye(Ta)}const Sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Na(e,n,r){var i;if(Sn.randomUUID&&!e)return Sn.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??$a();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ea(o)}const Ia=["aria-labelledby"],Fa={class:"form-section-wrapper"},Oa={key:1,class:"form-section-description"},La={key:2,class:"form-section-footer"},Va={class:"form-section-content"},Da=W(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Na();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Fa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",La,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Va,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,Ia))}}),[["__scopeId","data-v-b1f74200"]]),Ra={class:"ff-form-section"},Ka={class:"header"},Ma={key:0,class:"step"},va={class:"header-content"},ja={class:"header-title"},Pa={key:0,class:"header-description"},Ua={key:1,class:"header-extra"},qa={class:"content"},Ha=W(t.defineComponent({__name:"EntityFormBlock",props:{step:{},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",Ra,[t.createElementVNode("header",Ka,[e.step!=null?(t.openBlock(),t.createElementBlock("div",Ma,t.toDisplayString(e.step),1)):t.createCommentVNode("",!0),t.createElementVNode("div",va,[t.createElementVNode("h2",ja,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cb6d2e95"]]),Ya={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Wa={key:0,class:"deleted-entity"},za={key:1},Ja=["onClick"],Ga=W(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=V.useTruncationDetector(r),{i18n:{t:i}}=V.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const h=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),g=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ya,[c.value?(t.openBlock(),t.createElementBlock("div",Wa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(h,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(h,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(g,null,{default:t.withCtx(({copyToClipboard:b})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(x=>f(b),["stop"])},[t.createVNode(t.unref(G.CopyIcon),{class:"copy-icon",color:t.unref(nr),"data-testid":"copy-id",size:t.unref(or)},null,8,["color","size"])],8,Ja)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Qa={class:"kong-ui-public-entity-empty-state"},Za={class:"entity-empty-state-content"},Xa={key:0,class:"empty-state-image"},el={key:1,class:"entity-empty-state-title"},tl={key:2,class:"entity-empty-state-description"},nl={key:3,class:"entity-empty-state-pricing"},rl={key:0,class:"entity-empty-state-message"},ol={key:1,class:"entity-empty-state-action"},il={key:2,class:"entity-empty-state-card-container"},al={key:0,class:"feature-icon"},ll={class:"card-header"},cl=["title"],sl={key:3,class:"entity-empty-state-bottom-container"},dl=W(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ae.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=V.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ae.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
59
|
+
'@ | ${f}`});return(f,u)=>{const m=t.resolveComponent("KSelect"),h=t.resolveComponent("KBadge"),y=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Zi,[t.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),items:i},{"item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),"selected-item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),_:1},8,["modelValue"]),t.createElementVNode("p",null,[t.createVNode(t.unref(o),{keypath:`deckCodeBlock.hint.${e.app}`},t.createSlots({link:t.withCtx(()=>[t.createVNode(t.unref(oe.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[e.app==="konnect"?{name:"token",fn:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["keypath"])]),e.app==="konnect"?(t.openBlock(),t.createBlock(y,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(y,{key:1,id:"deck-codeblock",code:d.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-bae91adb"]]),Xi=["novalidate"],ea=W(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ue.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var j;const o=r,i=e,l=En.useRouter(),{i18n:{t:a}}=V.useI18n(),{getMessageFromError:c}=V.useErrors(),{axiosInstance:s}=V.useAxios((j=i.config)==null?void 0:j.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!i.editId),u=t.ref(!1),m=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),y=t.ref(!1),g=t.computed(()=>{var S,T;let A=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?A=A.replace(/{controlPlaneId}/gi,((S=i.config)==null?void 0:S.controlPlaneId)||""):i.config.app==="kongManager"&&(A=A.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),i.editId?(A=A.replace(/{id}/gi,i.editId),A):(A=A.replace(/\/{id}/gi,""),A)}),b=()=>{y.value=!y.value},x=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):w()},w=()=>{o("cancel")},$=()=>{h.value||o("submit")},I=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);return i.config.app==="konnect"&&i.entityType!==ne.Other&&I.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"}),i.config.app==="konnect"&&i.config.enableDeckTab&&Ze.includes(i.entityType)&&I.value.push({title:a("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,A=>{o("loading",A)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,d.value=!0;const{data:A}=await s.get(g.value);o("fetch:success",A)}catch(A){const S=c(A);m.value=S.startsWith("code")?a("baseForm.errors.edit"):S,u.value=!0,o("fetch:error",A)}finally{d.value=!1}}),n({viewConfig:b,formCancel:w,formSubmit:$}),(A,S)=>{const T=t.resolveComponent("KSkeleton"),p=t.resolveComponent("KEmptyState"),k=t.resolveComponent("KAlert"),C=t.resolveComponent("KButton"),L=t.resolveComponent("KTabs"),D=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(T,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(p,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:x},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers($,["prevent"])},[t.renderSlot(A.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(k,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(A.$slots,"form-actions",{},()=>[t.createVNode(C,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:S[0]||(S[0]=E=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(C,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:S[1]||(S[1]=E=>!!e.actionTeleportTarget&&w())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(C,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:S[2]||(S[2]=E=>!!e.actionTeleportTarget&&$())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,Xi)),t.createVNode(D,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:y.value,onClose:S[4]||(S[4]=E=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(L,{"data-testid":"form-view-configuration-slideout-tabs",tabs:I.value,onChange:S[3]||(S[3]=E=>o("codeBlockTabChange",E.replace("#","")))},{json:t.withCtx(()=>[t.createVNode($e,{config:e.config,"entity-record":i.formFields,"fetcher-url":g.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(qe,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(He,{"entity-record":i.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(xn,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":i.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.kongAdminApiUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:1},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-f38ef70b"]]),ta=["data-truncate"],na=W(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var b;return((b=n.rowEl)==null?void 0:b.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var b;return((b=r.value)==null?void 0:b.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var x,w;const b=(x=n.rowEl)==null?void 0:x.querySelectorAll("td");return b?((w=b[0])==null?void 0:w.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var x,w,$;let b=((x=r.value)==null?void 0:x.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const I=window.getComputedStyle(r.value);b-=(parseFloat(I.paddingLeft)||0)+(parseFloat(I.paddingRight)||0)}f.value=((w=o.value)==null?void 0:w.getBoundingClientRect().width)||0,u.value=b,m.value=(($=d.value)==null?void 0:$.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),h=t.computed(()=>[o.value,r.value]),y=t.watch(h,b=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(x=>{window.requestAnimationFrame(()=>{!Array.isArray(x)||!x.length||s()})});for(const x of b)x&&a.observe(x)}},{immediate:!0,flush:"post",deep:!0}),g=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(b,x)=>{const w=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(w,{"max-width":"300",placement:"bottom-start",text:g.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,ta)):t.renderSlot(b.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),ra={class:"toolbar-container"},oa={key:0,class:"toolbar-button-container"},ia={key:0,class:"hidden"},aa=W(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=V.useI18n(),l=t.computed(()=>{var p,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(C=>{const L=r.tableHeaders[C];p.push({label:L.label??C,key:C,sortable:L.sortable??!1,hidable:L.hidable??!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),s=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),d=t.ref({}),f=p=>{var k;return(k=d.value)==null?void 0:k.$el.querySelector(`[data-rowid="${p.id}"]`)},u=p=>{const k={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=p=>{w(p),o("state",p)},h=()=>{o("empty-state-cta-clicked"),y()},y=()=>{o("clear-search-input")},g=t.computed(()=>r.disableRowClick?void 0:(p,k)=>{o("click:row",k)}),b=p=>{o("sort",p)},{hideTableToolbar:x,handleStateChange:w}=V.useTableState(()=>r.query),{setTablePreferences:$,getTablePreferences:I}=In(),j=t.ref(I(a.value,r.defaultTablePreferences)),A=t.computed(()=>{const p=I(a.value);return{...r.initialFetcherParams,...p}}),S=p=>{j.value=p,c.value.forEach(k=>{!("hidable"in k)||!j.value.columnVisibility||k.hidable===!1&&(j.value.columnVisibility[k.key]=!0)}),a.value&&$(a.value,p)},T=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(p,k)=>{const C=t.resolveComponent("KTableData"),L=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(L,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(C,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(x),"initial-fetcher-params":A.value,loading:e.isLoading,"pagination-attributes":T.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":j.value,onEmptyStateActionClick:h,"onRow:click":g.value,onSort:k[0]||(k[0]=D=>b(D)),onState:m,"onUpdate:tablePreferences":S},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",ra,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",oa,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:D})=>[t.renderSlot(p.$slots,"actions",{row:D},void 0,!0)]),_:2},[p.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(D,E)=>({name:E,fn:t.withCtx(({row:N,rowValue:R})=>[t.createVNode(na,{"key-name":String(E),"row-el":f(N),tooltip:D.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,E,{row:N,rowKey:e.rowKey,rowValue:R},()=>[t.createTextVNode(t.toDisplayString(R),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),p.$slots["outside-actions"]&&t.unref(x)?(t.openBlock(),t.createElementBlock("div",ia,[t.renderSlot(p.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-44153100"]]),la={key:0,class:"kong-ui-entity-delete-error"},ca={key:1,class:"description"},sa=W(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=V.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",la,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),da={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ua={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},fa=["fill"],pa={mask:"url(#mask0_180_20349)"},ma=["fill"],wn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Xn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",da,[t.createElementVNode("mask",ua,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,fa)]),t.createElementVNode("g",pa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ma)])]))}}),ha={key:1,class:"kong-ui-entity-filter"},ga={class:"kong-ui-entity-filter-menu"},ya=["data-testid"],ka=["onClick","onKeydown"],Ca={class:"menu-item-indicator"},ba={class:"menu-item-body"},xa=["for"],wa={class:"menu-item-buttons"},Sa={class:"filter-clear-button-container"},Aa=W(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=V.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const A=[];return new URLSearchParams(o.modelValue).forEach((S,T)=>{S!==""&&A.push(T)}),A}),d=t.computed(()=>{const A=o.config.fields;return Object.keys(A).filter(S=>{var T;return(T=A==null?void 0:A[S])==null?void 0:T.searchable}).map(S=>({label:A[S].label||S,value:S,expanded:!1}))});t.watch(()=>o.modelValue,A=>{a.value={},new URLSearchParams(A).forEach((S,T)=>{a.value[T]=S})});const f=()=>{l.value=!l.value},u=A=>{c.value.has(A)?c.value.delete(A):c.value.add(A)},m=A=>{i("update:modelValue",A)},h=()=>{m("")},y=A=>`filter-${A}`,g=A=>{var S,T;return(((T=(S=o.config.schema)==null?void 0:S[A])==null?void 0:T.values)??[]).map(p=>typeof p=="string"?{value:p,label:p}:p)},b=A=>{var S,T;return((T=(S=o.config.schema)==null?void 0:S[A])==null?void 0:T.type)??"text"},x=A=>{a.value={...a.value,[A]:""},$()},w=()=>{a.value={},$(!0)},$=(A=!1)=>{const S=Object.keys(a.value).reduce((T,p)=>(a.value[p]&&(T[p]=`${a.value[p]}`),T),{});A&&(l.value=!1),i("update:modelValue",new URLSearchParams(S).toString())},I=A=>{var S,T;return!!((T=(S=o.config.schema)==null?void 0:S[A])!=null&&T.filterFunction)},j=(A,S)=>{var p;const T=(p=o.config.schema)==null?void 0:p[A];return(T==null?void 0:T.filterFunction)===void 0?!0:T.filterFunction(S)};return(A,S)=>{const T=t.resolveComponent("KInput"),p=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(T,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(wn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(G.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:h},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ha,[t.createVNode(p,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(wn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ga,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,C=>{var L,D;return t.openBlock(),t.createElementBlock("div",{key:C.value,class:"kong-ui-entity-filter-menu-item","data-testid":C.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(C.value)}]),role:"button",tabindex:"0",onClick:E=>u(C.value),onKeydown:t.withKeys(E=>u(C.value),["enter"])},[t.createTextVNode(t.toDisplayString(C.label)+" ",1),t.withDirectives(t.createElementVNode("span",Ca,null,512),[[t.vShow,s.value.includes(C.value)]]),t.createVNode(t.unref(G.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(C.value)}]),color:t.unref(tr)},null,8,["class","color"])],42,ka),t.withDirectives(t.createElementVNode("div",ba,[t.createElementVNode("label",{class:"menu-item-label",for:y(C.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,xa),((D=(L=e.config.schema)==null?void 0:L[C.value])==null?void 0:D.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:y(C.value),modelValue:a.value[C.value],"onUpdate:modelValue":E=>a.value[C.value]=E,"enable-filtering":I(C.value),"filter-function":E=>j(C.value,E),items:g(C.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(T,{key:1,id:y(C.value),modelValue:a.value[C.value],"onUpdate:modelValue":E=>a.value[C.value]=E,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:b(C.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(C.value)]]),t.withDirectives(t.createElementVNode("div",wa,[t.createVNode(p,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:S[0]||(S[0]=E=>$(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(p,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:E=>x(C.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(C.value)]])],8,ya)}),128)),t.createElementVNode("div",Sa,[t.createVNode(p,{appearance:"tertiary",size:"small",onClick:w},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ba=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=V.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const h=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(h,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),_a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),q=[];for(let e=0;e<256;++e)q.push((e+256).toString(16).slice(1));function Ea(e,n=0){return(q[e[n+0]]+q[e[n+1]]+q[e[n+2]]+q[e[n+3]]+"-"+q[e[n+4]]+q[e[n+5]]+"-"+q[e[n+6]]+q[e[n+7]]+"-"+q[e[n+8]]+q[e[n+9]]+"-"+q[e[n+10]]+q[e[n+11]]+q[e[n+12]]+q[e[n+13]]+q[e[n+14]]+q[e[n+15]]).toLowerCase()}let Ye;const Ta=new Uint8Array(16);function $a(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye(Ta)}const Sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Na(e,n,r){var i;if(Sn.randomUUID&&!e)return Sn.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??$a();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ea(o)}const Ia=["aria-labelledby"],Fa={class:"form-section-wrapper"},Oa={key:1,class:"form-section-description"},La={key:2,class:"form-section-footer"},Va={class:"form-section-content"},Da=W(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Na();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Fa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",La,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Va,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,Ia))}}),[["__scopeId","data-v-b1f74200"]]),Ra={class:"ff-form-section"},Ka={class:"header"},Ma={key:0,class:"step"},va={class:"header-content"},ja={class:"header-title"},Pa={key:0,class:"header-description"},Ua={key:1,class:"header-extra"},qa={class:"content"},Ha=W(t.defineComponent({__name:"EntityFormBlock",props:{step:{},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",Ra,[t.createElementVNode("header",Ka,[e.step!=null?(t.openBlock(),t.createElementBlock("div",Ma,t.toDisplayString(e.step),1)):t.createCommentVNode("",!0),t.createElementVNode("div",va,[t.createElementVNode("h2",ja,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cb6d2e95"]]),Ya={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Wa={key:0,class:"deleted-entity"},za={key:1},Ja=["onClick"],Ga=W(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=V.useTruncationDetector(r),{i18n:{t:i}}=V.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const h=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),g=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ya,[c.value?(t.openBlock(),t.createElementBlock("div",Wa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(h,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(h,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(g,null,{default:t.withCtx(({copyToClipboard:b})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(x=>f(b),["stop"])},[t.createVNode(t.unref(G.CopyIcon),{class:"copy-icon",color:t.unref(nr),"data-testid":"copy-id",size:t.unref(or)},null,8,["color","size"])],8,Ja)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Qa={class:"kong-ui-public-entity-empty-state"},Za={class:"entity-empty-state-content"},Xa={key:0,class:"empty-state-image"},el={key:1,class:"entity-empty-state-title"},tl={key:2,class:"entity-empty-state-description"},nl={key:3,class:"entity-empty-state-pricing"},rl={key:0,class:"entity-empty-state-message"},ol={key:1,class:"entity-empty-state-action"},il={key:2,class:"entity-empty-state-card-container"},al={key:0,class:"feature-icon"},ll={class:"card-header"},cl=["title"],sl={key:3,class:"entity-empty-state-bottom-container"},dl=W(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ae.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=V.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ae.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
60
60
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)),(a,c)=>{const s=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Qa,[t.createElementVNode("div",Za,[a.$slots.image?(t.openBlock(),t.createElementBlock("div",Xa,[t.renderSlot(a.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||a.$slots.title?(t.openBlock(),t.createElementBlock("div",el,[t.createElementVNode("h1",{class:t.normalizeClass(l.value)},[t.renderSlot(a.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)],2)])):t.createCommentVNode("",!0),e.description||a.$slots.default?(t.openBlock(),t.createElementBlock("div",tl,[t.renderSlot(a.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||a.$slots.pricing?(t.openBlock(),t.createElementBlock("div",nl,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),c[2]||(c[2]=t.createTextVNode()),t.renderSlot(a.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),a.$slots.message?(t.openBlock(),t.createElementBlock("div",rl,[t.renderSlot(a.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),i.value||e.learnMore||a.$slots.actions?(t.openBlock(),t.createElementBlock("div",ol,[t.renderSlot(a.$slots,"actions",{},()=>[i.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[0]||(c[0]=d=>a.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1},8,["size"])):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[1]||(c[1]=d=>a.$emit("click:learn-more"))},{default:t.withCtx(()=>[t.createVNode(t.unref(G.BookIcon),{decorative:""}),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("emptyState.learnMore")),1)]),_:1},8,["size"])):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),e.features.length?(t.openBlock(),t.createElementBlock("div",il,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(d,f)=>(t.openBlock(),t.createBlock(s,{key:d,class:"entity-empty-state-card"},{title:t.withCtx(()=>[a.$slots[`feature-${f}-icon`]?(t.openBlock(),t.createElementBlock("div",al,[t.renderSlot(a.$slots,`feature-${f}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ll,t.toDisplayString(d.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:d.description},t.toDisplayString(d.description),9,cl)]),_:2},1024))),128))])):t.createCommentVNode("",!0),a.$slots.bottom?(t.openBlock(),t.createElementBlock("div",sl,[t.renderSlot(a.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-645aae54"]]),ul={key:1},fl=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(e){const n=e,r=t.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const o=JSON.parse(n.tags);return Array.isArray(o)?o:[]}catch{return[]}return[]});return(o,i)=>{var l;return((l=r.value)==null?void 0:l.length)>0?(t.openBlock(),t.createBlock(t.unref(oe.KTruncate),{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,a=>(t.openBlock(),t.createBlock(t.unref(oe.KBadge),{key:a,"max-width":e.tagMaxWidth,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(t.openBlock(),t.createElementBlock("span",ul,"-"))}}}),{useAxios:pl,useDeleteUrlBuilder:ml,useErrors:hl,useExternalLinkCreator:gl,useFetchUrlBuilder:yl,useFetcher:kl,useFetcherCacheKey:Cl,useDebouncedFilter:bl,useStringHelpers:xl,useHelpers:wl,useGatewayFeatureSupported:Sl,useTruncationDetector:Al,useValidators:Bl,useSchemaProvider:_l,useTableState:El}=V;B.Appearances=Ae,B.ConfigCardDisplay=bn,B.ConfigCardItem=Te,B.ConfigurationSchemaSection=H,B.ConfigurationSchemaType=O,B.DeckCodeBlock=xn,B.EntityBaseConfigCard=Qi,B.EntityBaseForm=ea,B.EntityBaseFormType=Qe,B.EntityBaseTable=aa,B.EntityDeleteModal=sa,B.EntityEmptyState=dl,B.EntityFilter=Aa,B.EntityFormBlock=Ha,B.EntityFormSection=Da,B.EntityLink=Ga,B.EntityToggleModal=Ba,B.EntityTypes=Ge,B.EventGatewayTypesArray=Xe,B.FetcherStatus=Z,B.IdentityTypesArray=et,B.InternalLinkItem=mt,B.JsonCodeBlock=$e,B.PermissionsWrapper=_a,B.SupportedEntityDeckArray=Ze,B.SupportedEntityType=ne,B.SupportedEntityTypesArray=ue,B.TableTags=fl,B.TerraformCodeBlock=He,B.YamlCodeBlock=qe,B.useAxios=pl,B.useDebouncedFilter=bl,B.useDeleteUrlBuilder=ml,B.useErrors=hl,B.useExternalLinkCreator=gl,B.useFetchUrlBuilder=yl,B.useFetcher=kl,B.useFetcherCacheKey=Cl,B.useGatewayFeatureSupported=Sl,B.useHelpers=wl,B.useSchemaProvider=_l,B.useStringHelpers=xl,B.useTableState=El,B.useTruncationDetector=Al,B.useValidators=Bl,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-a014ea37]{margin-bottom:16px}.deck-config .k-code-block[data-v-a014ea37]{margin-top:12px}.kong-ui-entity-base-form[data-v-f38ef70b]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-f38ef70b] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-f38ef70b] .slideout-content{overflow-y:unset!important}.form-actions[data-v-f38ef70b]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-f38ef70b] .k-button:last-of-type,.form-actions[data-v-f38ef70b] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-f38ef70b]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}
|
|
1
|
+
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-bae91adb]{margin-bottom:16px}.deck-config .k-code-block[data-v-bae91adb]{margin-top:12px}.kong-ui-entity-base-form[data-v-f38ef70b]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-f38ef70b] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-f38ef70b] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-f38ef70b] .slideout-content{overflow-y:unset!important}.form-actions[data-v-f38ef70b]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-f38ef70b] .k-button:last-of-type,.form-actions[data-v-f38ef70b] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-f38ef70b]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/common/DeckCodeBlock.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,GAAG,aAAa,CAAA;IAC9B,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,UAAU,EAAE,mBAAmB,CAAA;IAC/B,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;
|
|
1
|
+
{"version":3,"file":"DeckCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/common/DeckCodeBlock.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,GAAG,aAAa,CAAA;IAC9B,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,UAAU,EAAE,mBAAmB,CAAA;IAC/B,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AAgVF,wBAIG"}
|
package/package.json
CHANGED