@kong-ui-public/entities-consumers 2.2.0 → 2.2.1-pr.970.67d051a1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-consumers.es.js +106 -106
- package/dist/entities-consumers.umd.js +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as
|
|
1
|
+
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as Ce, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as M, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as Ca, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as gt } from "vue-router";
|
|
3
3
|
import { createI18n as yt, i18nTComponent as pn } from "@kong-ui-public/i18n";
|
|
4
4
|
import ka from "axios";
|
|
@@ -108,7 +108,7 @@ function Aa() {
|
|
|
108
108
|
}
|
|
109
109
|
const Ze = {
|
|
110
110
|
useI18n: Aa
|
|
111
|
-
}, nt = "/api/runtime_groups/{controlPlaneId}",
|
|
111
|
+
}, nt = "/api/runtime_groups/{controlPlaneId}", Te = "/{workspace}", Se = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
114
114
|
all: "/v2/control-planes/{controlPlaneId}/core-entities/consumers",
|
|
@@ -116,9 +116,9 @@ const Ze = {
|
|
|
116
116
|
oneForConsumerGroup: "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers/{consumerId}"
|
|
117
117
|
},
|
|
118
118
|
kongManager: {
|
|
119
|
-
all: `${
|
|
120
|
-
forConsumerGroup: `${
|
|
121
|
-
oneForConsumerGroup: `${
|
|
119
|
+
all: `${Te}/consumers`,
|
|
120
|
+
forConsumerGroup: `${Te}/consumer_groups/{consumerGroupId}/consumers`,
|
|
121
|
+
oneForConsumerGroup: `${Te}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
form: {
|
|
@@ -128,13 +128,13 @@ const Ze = {
|
|
|
128
128
|
edit: `${nt}/consumers/{id}`
|
|
129
129
|
},
|
|
130
130
|
kongManager: {
|
|
131
|
-
validate: `${
|
|
132
|
-
create: `${
|
|
133
|
-
edit: `${
|
|
131
|
+
validate: `${Te}/schemas/consumers/validate`,
|
|
132
|
+
create: `${Te}/consumers`,
|
|
133
|
+
edit: `${Te}/consumers/{id}`
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
var fn = /* @__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))(fn || {}), lt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(lt || {}),
|
|
137
|
+
var fn = /* @__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))(fn || {}), lt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(lt || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), X = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(X || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
138
138
|
function ht(e = {}) {
|
|
139
139
|
return {
|
|
140
140
|
axiosInstance: ka.create({
|
|
@@ -487,11 +487,11 @@ function Ua(e, n, t = "data") {
|
|
|
487
487
|
const a = g(n), { axiosInstance: r } = ht({
|
|
488
488
|
headers: e.requestHeaders
|
|
489
489
|
}), o = gn(e, a), i = O({
|
|
490
|
-
status:
|
|
490
|
+
status: _e.Idle
|
|
491
491
|
});
|
|
492
492
|
return { fetcher: async (s) => {
|
|
493
493
|
try {
|
|
494
|
-
i.value = { status:
|
|
494
|
+
i.value = { status: _e.Loading };
|
|
495
495
|
const l = o(s), { data: u } = await r.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
496
496
|
let c;
|
|
497
497
|
u[d] && Array.isArray(u[d]) ? c = u[d] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
|
|
@@ -505,7 +505,7 @@ function Ua(e, n, t = "data") {
|
|
|
505
505
|
} : null
|
|
506
506
|
};
|
|
507
507
|
return i.value = {
|
|
508
|
-
status:
|
|
508
|
+
status: _e.Idle,
|
|
509
509
|
response: h
|
|
510
510
|
}, h;
|
|
511
511
|
} catch (l) {
|
|
@@ -514,11 +514,11 @@ function Ua(e, n, t = "data") {
|
|
|
514
514
|
total: 0
|
|
515
515
|
};
|
|
516
516
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
517
|
-
status:
|
|
517
|
+
status: _e.NoResults,
|
|
518
518
|
response: u,
|
|
519
519
|
error: l
|
|
520
520
|
}, u) : (i.value = {
|
|
521
|
-
status:
|
|
521
|
+
status: _e.Error,
|
|
522
522
|
response: u,
|
|
523
523
|
error: l
|
|
524
524
|
}, u);
|
|
@@ -697,7 +697,7 @@ const re = {
|
|
|
697
697
|
lineHeight: "0",
|
|
698
698
|
width: t.value
|
|
699
699
|
}));
|
|
700
|
-
return (r, o) => (m(), R(
|
|
700
|
+
return (r, o) => (m(), R(Ee(e.as), {
|
|
701
701
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
702
702
|
class: "kui-icon copy-icon",
|
|
703
703
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -802,10 +802,10 @@ const re = {
|
|
|
802
802
|
return (h, f) => {
|
|
803
803
|
const A = P("KClipboardProvider");
|
|
804
804
|
return m(), T("div", cr, [
|
|
805
|
-
e.format !== "hidden" ? (m(), R(
|
|
805
|
+
e.format !== "hidden" ? (m(), R(Ee(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
806
806
|
default: y(() => [
|
|
807
807
|
K("div", {
|
|
808
|
-
class:
|
|
808
|
+
class: Ae([
|
|
809
809
|
"uuid-container",
|
|
810
810
|
e.truncated ? "truncated-uuid" : null,
|
|
811
811
|
e.useMono ? "mono" : null
|
|
@@ -814,7 +814,7 @@ const re = {
|
|
|
814
814
|
]),
|
|
815
815
|
_: 1
|
|
816
816
|
}, 16)) : G("", !0),
|
|
817
|
-
(m(), R(
|
|
817
|
+
(m(), R(Ee(e.tooltip ? "KTooltip" : "div"), st(l.value, { class: "uuid-icon-wrapper" }), {
|
|
818
818
|
default: y(() => [
|
|
819
819
|
F(A, null, {
|
|
820
820
|
default: y(({ copyToClipboard: C }) => [
|
|
@@ -873,8 +873,8 @@ const re = {
|
|
|
873
873
|
var l;
|
|
874
874
|
return n.isArrayItem ? (l = o.value) != null && l.name ? a(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
875
875
|
});
|
|
876
|
-
return (l, u) => (m(), R(
|
|
877
|
-
class:
|
|
876
|
+
return (l, u) => (m(), R(Ee(e.isArrayItem ? "fieldset" : "div"), {
|
|
877
|
+
class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
878
878
|
}, {
|
|
879
879
|
default: y(() => [
|
|
880
880
|
e.isArrayItem ? (m(), T("legend", mr, [
|
|
@@ -1111,7 +1111,7 @@ const re = {
|
|
|
1111
1111
|
"data-testid": `${e.item.key}-label`
|
|
1112
1112
|
}, [
|
|
1113
1113
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
1114
|
-
F(C, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
1114
|
+
F(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ce({
|
|
1115
1115
|
default: y(() => [
|
|
1116
1116
|
W(M(e.item.label) + " ", 1)
|
|
1117
1117
|
]),
|
|
@@ -1141,7 +1141,7 @@ const re = {
|
|
|
1141
1141
|
rowValue: e.item.value
|
|
1142
1142
|
}, () => [
|
|
1143
1143
|
i.value ? (m(), T("div", $r, [
|
|
1144
|
-
(m(), R(
|
|
1144
|
+
(m(), R(Ee(d.value.tag), ga(ya(d.value.attrs)), {
|
|
1145
1145
|
default: y(() => [
|
|
1146
1146
|
d.value.additionalComponent === "KBadge" ? (m(), T("div", {
|
|
1147
1147
|
key: 0,
|
|
@@ -1206,7 +1206,7 @@ const re = {
|
|
|
1206
1206
|
K("span", {
|
|
1207
1207
|
ref_key: "textContent",
|
|
1208
1208
|
ref: c,
|
|
1209
|
-
class:
|
|
1209
|
+
class: Ae(["attrs-data-text", { truncated: e.truncated }])
|
|
1210
1210
|
}, M(d.value.text), 3)
|
|
1211
1211
|
]),
|
|
1212
1212
|
_: 1
|
|
@@ -1812,20 +1812,20 @@ var Pn = new oe("tag:yaml.org,2002:set", {
|
|
|
1812
1812
|
Ln,
|
|
1813
1813
|
Pn
|
|
1814
1814
|
]
|
|
1815
|
-
}),
|
|
1815
|
+
}), we = Object.prototype.hasOwnProperty, Ge = 1, Vn = 2, Rn = 3, He = 4, it = 1, Bo = 2, Ht = 3, qo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lo = /[\x85\u2028\u2029]/, Po = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Dn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1816
1816
|
function zt(e) {
|
|
1817
1817
|
return Object.prototype.toString.call(e);
|
|
1818
1818
|
}
|
|
1819
1819
|
function ye(e) {
|
|
1820
1820
|
return e === 10 || e === 13;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Ie(e) {
|
|
1823
1823
|
return e === 9 || e === 32;
|
|
1824
1824
|
}
|
|
1825
1825
|
function pe(e) {
|
|
1826
1826
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function je(e) {
|
|
1829
1829
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1830
1830
|
}
|
|
1831
1831
|
function Vo(e) {
|
|
@@ -1849,8 +1849,8 @@ function Do(e) {
|
|
|
1849
1849
|
);
|
|
1850
1850
|
}
|
|
1851
1851
|
var Gn = new Array(256), Hn = new Array(256);
|
|
1852
|
-
for (var
|
|
1853
|
-
Gn[
|
|
1852
|
+
for (var $e = 0; $e < 256; $e++)
|
|
1853
|
+
Gn[$e] = Jt($e) ? 1 : 0, Hn[$e] = Jt($e);
|
|
1854
1854
|
function Go(e, n) {
|
|
1855
1855
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || kt, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
|
|
1856
1856
|
}
|
|
@@ -1878,7 +1878,7 @@ var Yt = {
|
|
|
1878
1878
|
},
|
|
1879
1879
|
TAG: function(e, n, t) {
|
|
1880
1880
|
var a, r;
|
|
1881
|
-
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || j(e, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
1881
|
+
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && j(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Dn.test(r) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1882
1882
|
try {
|
|
1883
1883
|
r = decodeURIComponent(r);
|
|
1884
1884
|
} catch {
|
|
@@ -1887,7 +1887,7 @@ var Yt = {
|
|
|
1887
1887
|
e.tagMap[a] = r;
|
|
1888
1888
|
}
|
|
1889
1889
|
};
|
|
1890
|
-
function
|
|
1890
|
+
function ke(e, n, t, a) {
|
|
1891
1891
|
var r, o, i, s;
|
|
1892
1892
|
if (n < t) {
|
|
1893
1893
|
if (s = e.input.slice(n, t), a)
|
|
@@ -1901,9 +1901,9 @@ function we(e, n, t, a) {
|
|
|
1901
1901
|
function Wt(e, n, t, a) {
|
|
1902
1902
|
var r, o, i, s;
|
|
1903
1903
|
for (ae.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, s = r.length; i < s; i += 1)
|
|
1904
|
-
o = r[i],
|
|
1904
|
+
o = r[i], we.call(n, o) || (n[o] = t[o], a[o] = !0);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function Oe(e, n, t, a, r, o, i, s, l) {
|
|
1907
1907
|
var u, d;
|
|
1908
1908
|
if (Array.isArray(r))
|
|
1909
1909
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
@@ -1915,7 +1915,7 @@ function Ee(e, n, t, a, r, o, i, s, l) {
|
|
|
1915
1915
|
else
|
|
1916
1916
|
Wt(e, n, o, t);
|
|
1917
1917
|
else
|
|
1918
|
-
!e.json && !
|
|
1918
|
+
!e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
|
|
1919
1919
|
configurable: !0,
|
|
1920
1920
|
enumerable: !0,
|
|
1921
1921
|
writable: !0,
|
|
@@ -1929,7 +1929,7 @@ function wt(e) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
function ne(e, n, t) {
|
|
1931
1931
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1932
|
-
for (;
|
|
1932
|
+
for (; Ie(r); )
|
|
1933
1933
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1934
1934
|
if (n && r === 35)
|
|
1935
1935
|
do
|
|
@@ -1953,17 +1953,17 @@ function _t(e, n) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
function Ho(e, n, t) {
|
|
1955
1955
|
var a, r, o, i, s, l, u, d, c = e.kind, h = e.result, f;
|
|
1956
|
-
if (f = e.input.charCodeAt(e.position), pe(f) ||
|
|
1956
|
+
if (f = e.input.charCodeAt(e.position), pe(f) || je(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r)))
|
|
1957
1957
|
return !1;
|
|
1958
1958
|
for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
|
|
1959
1959
|
if (f === 58) {
|
|
1960
|
-
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t &&
|
|
1960
|
+
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r))
|
|
1961
1961
|
break;
|
|
1962
1962
|
} else if (f === 35) {
|
|
1963
1963
|
if (a = e.input.charCodeAt(e.position - 1), pe(a))
|
|
1964
1964
|
break;
|
|
1965
1965
|
} else {
|
|
1966
|
-
if (e.position === e.lineStart && Qe(e) || t &&
|
|
1966
|
+
if (e.position === e.lineStart && Qe(e) || t && je(f))
|
|
1967
1967
|
break;
|
|
1968
1968
|
if (ye(f))
|
|
1969
1969
|
if (l = e.line, u = e.lineStart, d = e.lineIndent, ne(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1974,9 +1974,9 @@ function Ho(e, n, t) {
|
|
|
1974
1974
|
break;
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
s && (
|
|
1977
|
+
s && (ke(e, o, i, !1), _t(e, e.line - l), o = i = e.position, s = !1), Ie(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1978
1978
|
}
|
|
1979
|
-
return
|
|
1979
|
+
return ke(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
|
|
1980
1980
|
}
|
|
1981
1981
|
function zo(e, n) {
|
|
1982
1982
|
var t, a, r;
|
|
@@ -1984,12 +1984,12 @@ function zo(e, n) {
|
|
|
1984
1984
|
return !1;
|
|
1985
1985
|
for (e.kind = "scalar", e.result = "", e.position++, a = r = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1986
1986
|
if (t === 39)
|
|
1987
|
-
if (
|
|
1987
|
+
if (ke(e, a, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1988
1988
|
a = e.position, e.position++, r = e.position;
|
|
1989
1989
|
else
|
|
1990
1990
|
return !0;
|
|
1991
1991
|
else
|
|
1992
|
-
ye(t) ? (
|
|
1992
|
+
ye(t) ? (ke(e, a, r, !0), _t(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1993
1993
|
j(e, "unexpected end of the stream within a single quoted scalar");
|
|
1994
1994
|
}
|
|
1995
1995
|
function Jo(e, n) {
|
|
@@ -1998,9 +1998,9 @@ function Jo(e, n) {
|
|
|
1998
1998
|
return !1;
|
|
1999
1999
|
for (e.kind = "scalar", e.result = "", e.position++, t = a = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2000
2000
|
if (s === 34)
|
|
2001
|
-
return
|
|
2001
|
+
return ke(e, t, e.position, !0), e.position++, !0;
|
|
2002
2002
|
if (s === 92) {
|
|
2003
|
-
if (
|
|
2003
|
+
if (ke(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), ye(s))
|
|
2004
2004
|
ne(e, !1, n);
|
|
2005
2005
|
else if (s < 256 && Gn[s])
|
|
2006
2006
|
e.result += Hn[s], e.position++;
|
|
@@ -2012,7 +2012,7 @@ function Jo(e, n) {
|
|
|
2012
2012
|
j(e, "unknown escape sequence");
|
|
2013
2013
|
t = a = e.position;
|
|
2014
2014
|
} else
|
|
2015
|
-
ye(s) ? (
|
|
2015
|
+
ye(s) ? (ke(e, t, a, !0), _t(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
2016
2016
|
}
|
|
2017
2017
|
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
2018
2018
|
}
|
|
@@ -2027,7 +2027,7 @@ function Yo(e, n) {
|
|
|
2027
2027
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
|
|
2028
2028
|
if (ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === d)
|
|
2029
2029
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2030
|
-
t ? _ === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = C = S = null, c = h = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position,
|
|
2030
|
+
t ? _ === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = C = S = null, c = h = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, C = e.result, ne(e, !0, n), _ = e.input.charCodeAt(e.position), (h || e.line === a) && _ === 58 && (c = !0, _ = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, C, S, a, r, o) : c ? s.push(Oe(e, null, A, p, C, S, a, r, o)) : s.push(C), ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === 44 ? (t = !0, _ = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2031
2031
|
}
|
|
2032
2032
|
j(e, "unexpected end of the stream within a flow collection");
|
|
2033
2033
|
}
|
|
@@ -2046,10 +2046,10 @@ function Wo(e, n) {
|
|
|
2046
2046
|
d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
2047
2047
|
else
|
|
2048
2048
|
break;
|
|
2049
|
-
if (
|
|
2049
|
+
if (Ie(c)) {
|
|
2050
2050
|
do
|
|
2051
2051
|
c = e.input.charCodeAt(++e.position);
|
|
2052
|
-
while (
|
|
2052
|
+
while (Ie(c));
|
|
2053
2053
|
if (c === 35)
|
|
2054
2054
|
do
|
|
2055
2055
|
c = e.input.charCodeAt(++e.position);
|
|
@@ -2068,13 +2068,13 @@ function Wo(e, n) {
|
|
|
2068
2068
|
`);
|
|
2069
2069
|
break;
|
|
2070
2070
|
}
|
|
2071
|
-
for (a ?
|
|
2071
|
+
for (a ? Ie(c) ? (u = !0, e.result += ae.repeat(`
|
|
2072
2072
|
`, o ? 1 + l : l)) : u ? (u = !1, e.result += ae.repeat(`
|
|
2073
2073
|
`, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += ae.repeat(`
|
|
2074
2074
|
`, l) : e.result += ae.repeat(`
|
|
2075
2075
|
`, o ? 1 + l : l), o = !0, i = !0, l = 0, t = e.position; !ye(c) && c !== 0; )
|
|
2076
2076
|
c = e.input.charCodeAt(++e.position);
|
|
2077
|
-
|
|
2077
|
+
ke(e, t, e.position, !1);
|
|
2078
2078
|
}
|
|
2079
2079
|
return !0;
|
|
2080
2080
|
}
|
|
@@ -2087,7 +2087,7 @@ function Zt(e, n) {
|
|
|
2087
2087
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
2088
2088
|
continue;
|
|
2089
2089
|
}
|
|
2090
|
-
if (t = e.line,
|
|
2090
|
+
if (t = e.line, Fe(e, n, Rn, !1, !0), o.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
2091
2091
|
j(e, "bad indentation of a sequence entry");
|
|
2092
2092
|
else if (e.lineIndent < n)
|
|
2093
2093
|
break;
|
|
@@ -2100,15 +2100,15 @@ function Zo(e, n, t) {
|
|
|
2100
2100
|
return !1;
|
|
2101
2101
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
|
|
2102
2102
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (_ === 63 || _ === 58) && pe(a))
|
|
2103
|
-
_ === 63 ? (p && (
|
|
2103
|
+
_ === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = a;
|
|
2104
2104
|
else {
|
|
2105
|
-
if (i = e.line, s = e.lineStart, l = e.position, !
|
|
2105
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Vn, !1, !0))
|
|
2106
2106
|
break;
|
|
2107
2107
|
if (e.line === o) {
|
|
2108
|
-
for (_ = e.input.charCodeAt(e.position);
|
|
2108
|
+
for (_ = e.input.charCodeAt(e.position); Ie(_); )
|
|
2109
2109
|
_ = e.input.charCodeAt(++e.position);
|
|
2110
2110
|
if (_ === 58)
|
|
2111
|
-
_ = e.input.charCodeAt(++e.position), pe(_) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (
|
|
2111
|
+
_ = e.input.charCodeAt(++e.position), pe(_) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
|
|
2112
2112
|
else if (S)
|
|
2113
2113
|
j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2114
2114
|
else
|
|
@@ -2118,12 +2118,12 @@ function Zo(e, n, t) {
|
|
|
2118
2118
|
else
|
|
2119
2119
|
return e.tag = u, e.anchor = d, !0;
|
|
2120
2120
|
}
|
|
2121
|
-
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position),
|
|
2121
|
+
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : C = e.result), p || (Oe(e, c, h, f, A, C, i, s, l), f = A = C = null), ne(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && _ !== 0)
|
|
2122
2122
|
j(e, "bad indentation of a mapping entry");
|
|
2123
2123
|
else if (e.lineIndent < n)
|
|
2124
2124
|
break;
|
|
2125
2125
|
}
|
|
2126
|
-
return p &&
|
|
2126
|
+
return p && Oe(e, c, h, f, A, null, i, s, l), S && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), S;
|
|
2127
2127
|
}
|
|
2128
2128
|
function Qo(e) {
|
|
2129
2129
|
var n, t = !1, a = !1, r, o, i;
|
|
@@ -2145,13 +2145,13 @@ function Qo(e) {
|
|
|
2145
2145
|
} catch {
|
|
2146
2146
|
j(e, "tag name is malformed: " + o);
|
|
2147
2147
|
}
|
|
2148
|
-
return t ? e.tag = o :
|
|
2148
|
+
return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : j(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2149
2149
|
}
|
|
2150
2150
|
function Xo(e) {
|
|
2151
2151
|
var n, t;
|
|
2152
2152
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2153
2153
|
return !1;
|
|
2154
|
-
for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !
|
|
2154
|
+
for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !je(t); )
|
|
2155
2155
|
t = e.input.charCodeAt(++e.position);
|
|
2156
2156
|
return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2157
2157
|
}
|
|
@@ -2159,11 +2159,11 @@ function ei(e) {
|
|
|
2159
2159
|
var n, t, a;
|
|
2160
2160
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2161
2161
|
return !1;
|
|
2162
|
-
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !
|
|
2162
|
+
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !je(a); )
|
|
2163
2163
|
a = e.input.charCodeAt(++e.position);
|
|
2164
|
-
return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position),
|
|
2164
|
+
return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function Fe(e, n, t, a, r) {
|
|
2167
2167
|
var o, i, s, l = 1, u = !1, d = !1, c, h, f, A, C, p;
|
|
2168
2168
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Rn === t, a && ne(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2169
2169
|
for (; Qo(e) || Xo(e); )
|
|
@@ -2177,7 +2177,7 @@ function Ke(e, n, t, a, r) {
|
|
|
2177
2177
|
break;
|
|
2178
2178
|
}
|
|
2179
2179
|
} else if (e.tag !== "!") {
|
|
2180
|
-
if (
|
|
2180
|
+
if (we.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2181
2181
|
A = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2182
2182
|
else
|
|
2183
2183
|
for (A = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
|
|
@@ -2195,7 +2195,7 @@ function ti(e) {
|
|
|
2195
2195
|
for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i); )
|
|
2196
2196
|
i = e.input.charCodeAt(++e.position);
|
|
2197
2197
|
for (a = e.input.slice(t, e.position), r = [], a.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
2198
|
-
for (;
|
|
2198
|
+
for (; Ie(i); )
|
|
2199
2199
|
i = e.input.charCodeAt(++e.position);
|
|
2200
2200
|
if (i === 35) {
|
|
2201
2201
|
do
|
|
@@ -2209,9 +2209,9 @@ function ti(e) {
|
|
|
2209
2209
|
i = e.input.charCodeAt(++e.position);
|
|
2210
2210
|
r.push(e.input.slice(t, e.position));
|
|
2211
2211
|
}
|
|
2212
|
-
i !== 0 && wt(e),
|
|
2212
|
+
i !== 0 && wt(e), we.call(Yt, a) ? Yt[a](e, a, r) : ze(e, 'unknown document directive "' + a + '"');
|
|
2213
2213
|
}
|
|
2214
|
-
if (ne(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ne(e, !0, -1)) : o && j(e, "directives end mark is expected"),
|
|
2214
|
+
if (ne(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ne(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
|
|
2215
2215
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
|
|
2216
2216
|
return;
|
|
2217
2217
|
}
|
|
@@ -2358,13 +2358,13 @@ function aa(e) {
|
|
|
2358
2358
|
var n = /^\n* /;
|
|
2359
2359
|
return n.test(e);
|
|
2360
2360
|
}
|
|
2361
|
-
var ra = 1, pt = 2, oa = 3, ia = 4,
|
|
2361
|
+
var ra = 1, pt = 2, oa = 3, ia = 4, Me = 5;
|
|
2362
2362
|
function ji(e, n, t, a, r, o, i, s) {
|
|
2363
2363
|
var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, C = $i(Ne(e, 0)) && Mi(Ne(e, e.length - 1));
|
|
2364
2364
|
if (n || i)
|
|
2365
2365
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2366
2366
|
if (u = Ne(e, l), !Re(u))
|
|
2367
|
-
return
|
|
2367
|
+
return Me;
|
|
2368
2368
|
C = C && en(u, d, s), d = u;
|
|
2369
2369
|
}
|
|
2370
2370
|
else {
|
|
@@ -2373,12 +2373,12 @@ function ji(e, n, t, a, r, o, i, s) {
|
|
|
2373
2373
|
c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2374
2374
|
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2375
2375
|
else if (!Re(u))
|
|
2376
|
-
return
|
|
2376
|
+
return Me;
|
|
2377
2377
|
C = C && en(u, d, s), d = u;
|
|
2378
2378
|
}
|
|
2379
2379
|
h = h || f && l - A - 1 > a && e[A + 1] !== " ";
|
|
2380
2380
|
}
|
|
2381
|
-
return !c && !h ? C && !i && !r(e) ? ra : o === Ve ?
|
|
2381
|
+
return !c && !h ? C && !i && !r(e) ? ra : o === Ve ? Me : pt : t > 9 && aa(e) ? Me : i ? o === Ve ? Me : pt : h ? ia : oa;
|
|
2382
2382
|
}
|
|
2383
2383
|
function Oi(e, n, t, a, r) {
|
|
2384
2384
|
e.dump = function() {
|
|
@@ -2408,7 +2408,7 @@ function Oi(e, n, t, a, r) {
|
|
|
2408
2408
|
return "|" + tn(n, e.indent) + nn(Qt(n, o));
|
|
2409
2409
|
case ia:
|
|
2410
2410
|
return ">" + tn(n, e.indent) + nn(Qt(Ei(n, i), o));
|
|
2411
|
-
case
|
|
2411
|
+
case Me:
|
|
2412
2412
|
return '"' + Fi(n) + '"';
|
|
2413
2413
|
default:
|
|
2414
2414
|
throw new se("impossible error: invalid scalar style");
|
|
@@ -2641,14 +2641,14 @@ const as = {
|
|
|
2641
2641
|
e.format === "structured" ? (m(), T("div", as, [
|
|
2642
2642
|
(m(!0), T(fe, null, de(e.propListTypes, (d) => (m(), T("div", {
|
|
2643
2643
|
key: `config-card-details-${d}-props`,
|
|
2644
|
-
class:
|
|
2644
|
+
class: Ae(`config-card-details-${d}-props`),
|
|
2645
2645
|
"data-testid": `config-card-details-${d}-props`
|
|
2646
2646
|
}, [
|
|
2647
2647
|
d !== "basic" ? (m(), T("div", os, M(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2648
2648
|
(m(!0), T(fe, null, de(e.propertyCollections[d], (c) => (m(), R(bt, {
|
|
2649
2649
|
key: c.key,
|
|
2650
2650
|
item: c
|
|
2651
|
-
},
|
|
2651
|
+
}, Ce({
|
|
2652
2652
|
label: y(() => [
|
|
2653
2653
|
Y(s.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2654
2654
|
]),
|
|
@@ -2769,7 +2769,7 @@ const as = {
|
|
|
2769
2769
|
lineHeight: "0",
|
|
2770
2770
|
width: t.value
|
|
2771
2771
|
}));
|
|
2772
|
-
return (r, o) => (m(), R(
|
|
2772
|
+
return (r, o) => (m(), R(Ee(e.as), {
|
|
2773
2773
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2774
2774
|
class: "kui-icon book-icon",
|
|
2775
2775
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -3020,7 +3020,7 @@ const as = {
|
|
|
3020
3020
|
}
|
|
3021
3021
|
}), (b, k) => {
|
|
3022
3022
|
const V = P("KLabel"), B = P("KSelect"), I = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
|
|
3023
|
-
return m(), R(Z, { class: "kong-ui-entity-base-config-card" },
|
|
3023
|
+
return m(), R(Z, { class: "kong-ui-entity-base-config-card" }, Ce({
|
|
3024
3024
|
actions: y(() => [
|
|
3025
3025
|
K("div", vs, [
|
|
3026
3026
|
Y(b.$slots, "actions", {}, void 0, !0),
|
|
@@ -3098,7 +3098,7 @@ const as = {
|
|
|
3098
3098
|
"prop-list-types": v.value,
|
|
3099
3099
|
"property-collections": q.value,
|
|
3100
3100
|
record: p.value
|
|
3101
|
-
},
|
|
3101
|
+
}, Ce({ _: 2 }, [
|
|
3102
3102
|
de(Object.keys(b.$slots), (z) => ({
|
|
3103
3103
|
name: z,
|
|
3104
3104
|
fn: y(({ row: Q, rowValue: le }) => [
|
|
@@ -3112,14 +3112,14 @@ const as = {
|
|
|
3112
3112
|
])) : (m(), T("div", ks, [
|
|
3113
3113
|
(m(!0), T(fe, null, de(v.value, (z) => (m(), T("div", {
|
|
3114
3114
|
key: `config-card-details-${z}-props`,
|
|
3115
|
-
class:
|
|
3115
|
+
class: Ae(`config-card-details-${z}-props`),
|
|
3116
3116
|
"data-testid": `config-card-details-${z}-props`
|
|
3117
3117
|
}, [
|
|
3118
3118
|
z !== "basic" ? (m(), T("div", _s, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
3119
3119
|
(m(!0), T(fe, null, de(q.value[z], (Q) => (m(), R(bt, {
|
|
3120
3120
|
key: Q.key,
|
|
3121
3121
|
item: Q
|
|
3122
|
-
},
|
|
3122
|
+
}, Ce({
|
|
3123
3123
|
label: y(() => [
|
|
3124
3124
|
Y(b.$slots, `${Q.key}-label`, { row: Q }, void 0, !0)
|
|
3125
3125
|
]),
|
|
@@ -3586,7 +3586,7 @@ const as = {
|
|
|
3586
3586
|
"onRow:click": A.value,
|
|
3587
3587
|
onSort: w[0] || (w[0] = (B) => C(B)),
|
|
3588
3588
|
"onUpdate:tablePreferences": q
|
|
3589
|
-
},
|
|
3589
|
+
}, Ce({
|
|
3590
3590
|
toolbar: y(({ state: B }) => [
|
|
3591
3591
|
Be(K("div", Es, [
|
|
3592
3592
|
Y(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
@@ -3737,7 +3737,7 @@ const as = {
|
|
|
3737
3737
|
class: "message",
|
|
3738
3738
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3739
3739
|
tag: "p"
|
|
3740
|
-
},
|
|
3740
|
+
}, Ce({
|
|
3741
3741
|
entityType: y(() => [
|
|
3742
3742
|
W(M(t.entityType), 1)
|
|
3743
3743
|
]),
|
|
@@ -4055,12 +4055,12 @@ const as = {
|
|
|
4055
4055
|
setup(e) {
|
|
4056
4056
|
const n = We();
|
|
4057
4057
|
return (t, a) => (m(), T("fieldset", {
|
|
4058
|
-
class:
|
|
4058
|
+
class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4059
4059
|
}, [
|
|
4060
4060
|
K("div", nl, [
|
|
4061
4061
|
e.hideInfoHeader ? G("", !0) : (m(), T("div", {
|
|
4062
4062
|
key: 0,
|
|
4063
|
-
class:
|
|
4063
|
+
class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4064
4064
|
}, [
|
|
4065
4065
|
e.title ? (m(), T("h4", al, M(e.title), 1)) : G("", !0),
|
|
4066
4066
|
e.description || g(n).description ? (m(), T("div", rl, [
|
|
@@ -4114,7 +4114,7 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4114
4114
|
results: c
|
|
4115
4115
|
} = pl(
|
|
4116
4116
|
t.config,
|
|
4117
|
-
|
|
4117
|
+
Se.list[t.config.app].all,
|
|
4118
4118
|
"",
|
|
4119
4119
|
{
|
|
4120
4120
|
fetchedItemsKey: "data",
|
|
@@ -4151,7 +4151,7 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4151
4151
|
}
|
|
4152
4152
|
}, U = $(() => {
|
|
4153
4153
|
var E, L, D, Z;
|
|
4154
|
-
let I = `${t.config.apiBaseUrl}${
|
|
4154
|
+
let I = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
|
|
4155
4155
|
return t.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), I;
|
|
4156
4156
|
}), b = async (I) => {
|
|
4157
4157
|
const E = {
|
|
@@ -4290,7 +4290,7 @@ const xt = (e, n) => {
|
|
|
4290
4290
|
"data-testid": x.username ?? x.custom_id ?? x.id
|
|
4291
4291
|
}), f = $(() => {
|
|
4292
4292
|
var H, ee, ue, ge;
|
|
4293
|
-
let x = `${t.config.apiBaseUrl}${
|
|
4293
|
+
let x = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
|
|
4294
4294
|
return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ee = t.config) == null ? void 0 : ee.consumerGroupId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ue = t.config) != null && ue.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ge = t.config) == null ? void 0 : ge.consumerGroupId) || "")), x;
|
|
4295
4295
|
}), A = O(""), C = $(() => {
|
|
4296
4296
|
const x = t.config.app === "konnect" || t.config.isExactMatch;
|
|
@@ -4376,7 +4376,7 @@ const xt = (e, n) => {
|
|
|
4376
4376
|
et.value = !1, ve.value = void 0;
|
|
4377
4377
|
}, ca = $(() => {
|
|
4378
4378
|
var H, ee, ue, ge;
|
|
4379
|
-
let x = `${t.config.apiBaseUrl}${
|
|
4379
|
+
let x = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
|
|
4380
4380
|
return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ee = t.config) == null ? void 0 : ee.consumerGroupId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ue = t.config) != null && ue.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ge = t.config) == null ? void 0 : ge.consumerGroupId) || "")), x;
|
|
4381
4381
|
}), Ot = O(!1), da = async () => {
|
|
4382
4382
|
if (ve.value) {
|
|
@@ -4392,11 +4392,11 @@ const xt = (e, n) => {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
}, Et = O(!0);
|
|
4394
4394
|
he(_, (x) => {
|
|
4395
|
-
var H, ee, ue, ge
|
|
4396
|
-
if (((
|
|
4395
|
+
var H, ee, ue, ge;
|
|
4396
|
+
if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Et.value = x.response.data.length > 0), x.status === _e.Error) {
|
|
4397
4397
|
N.value = {
|
|
4398
4398
|
title: r("consumers.errors.general")
|
|
4399
|
-
}, (
|
|
4399
|
+
}, (ge = (ue = (ee = x.error) == null ? void 0 : ee.response) == null ? void 0 : ue.data) != null && ge.message && (N.value.message = x.error.response.data.message), n("error", x.error);
|
|
4400
4400
|
return;
|
|
4401
4401
|
}
|
|
4402
4402
|
N.value = null;
|
|
@@ -4410,7 +4410,7 @@ const xt = (e, n) => {
|
|
|
4410
4410
|
return mt(async () => {
|
|
4411
4411
|
await t.canCreate() && (tt.value.title = l.value ? r("consumers.list.empty_state.title_for_consumer_group") : r("consumers.list.empty_state.title"), tt.value.ctaText = l.value ? r("consumers.actions.add_consumer") : r("consumers.actions.create"));
|
|
4412
4412
|
}), (x, H) => {
|
|
4413
|
-
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"),
|
|
4413
|
+
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"), Ke = P("KDropdownItem"), Kt = P("KClipboardProvider"), pa = P("KPrompt");
|
|
4414
4414
|
return m(), T("div", kl, [
|
|
4415
4415
|
F(g(Bs), {
|
|
4416
4416
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4478,13 +4478,13 @@ const xt = (e, n) => {
|
|
|
4478
4478
|
tags: y(({ rowValue: J }) => [
|
|
4479
4479
|
J && J.length > 0 ? (m(), R(ge, { key: 0 }, {
|
|
4480
4480
|
default: y(() => [
|
|
4481
|
-
(m(!0), T(fe, null, de(J, (
|
|
4482
|
-
key:
|
|
4481
|
+
(m(!0), T(fe, null, de(J, (xe) => (m(), R(ue, {
|
|
4482
|
+
key: xe,
|
|
4483
4483
|
onClick: H[2] || (H[2] = De(() => {
|
|
4484
4484
|
}, ["stop"]))
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: y(() => [
|
|
4487
|
-
W(M(
|
|
4487
|
+
W(M(xe), 1)
|
|
4488
4488
|
]),
|
|
4489
4489
|
_: 2
|
|
4490
4490
|
}, 1024))), 128))
|
|
@@ -4494,10 +4494,10 @@ const xt = (e, n) => {
|
|
|
4494
4494
|
]),
|
|
4495
4495
|
actions: y(({ row: J }) => [
|
|
4496
4496
|
F(Kt, null, {
|
|
4497
|
-
default: y(({ copyToClipboard:
|
|
4498
|
-
F(
|
|
4497
|
+
default: y(({ copyToClipboard: xe }) => [
|
|
4498
|
+
F(Ke, {
|
|
4499
4499
|
"data-testid": "action-entity-copy-id",
|
|
4500
|
-
onClick: (fa) => U(J,
|
|
4500
|
+
onClick: (fa) => U(J, xe)
|
|
4501
4501
|
}, {
|
|
4502
4502
|
default: y(() => [
|
|
4503
4503
|
W(M(g(r)("consumers.actions.copy_id")), 1)
|
|
@@ -4508,10 +4508,10 @@ const xt = (e, n) => {
|
|
|
4508
4508
|
_: 2
|
|
4509
4509
|
}, 1024),
|
|
4510
4510
|
F(Kt, null, {
|
|
4511
|
-
default: y(({ copyToClipboard:
|
|
4512
|
-
F(
|
|
4511
|
+
default: y(({ copyToClipboard: xe }) => [
|
|
4512
|
+
F(Ke, {
|
|
4513
4513
|
"data-testid": "action-entity-copy-json",
|
|
4514
|
-
onClick: (fa) => b(J,
|
|
4514
|
+
onClick: (fa) => b(J, xe)
|
|
4515
4515
|
}, {
|
|
4516
4516
|
default: y(() => [
|
|
4517
4517
|
W(M(g(r)("consumers.actions.copy_json")), 1)
|
|
@@ -4525,7 +4525,7 @@ const xt = (e, n) => {
|
|
|
4525
4525
|
"auth-function": () => e.canRetrieve(J)
|
|
4526
4526
|
}, {
|
|
4527
4527
|
default: y(() => [
|
|
4528
|
-
F(
|
|
4528
|
+
F(Ke, {
|
|
4529
4529
|
"data-testid": "action-entity-view",
|
|
4530
4530
|
"has-divider": "",
|
|
4531
4531
|
item: V(J.id)
|
|
@@ -4537,7 +4537,7 @@ const xt = (e, n) => {
|
|
|
4537
4537
|
"auth-function": () => e.canEdit(J)
|
|
4538
4538
|
}, {
|
|
4539
4539
|
default: y(() => [
|
|
4540
|
-
F(
|
|
4540
|
+
F(Ke, {
|
|
4541
4541
|
"data-testid": "action-entity-edit",
|
|
4542
4542
|
item: B(J.id)
|
|
4543
4543
|
}, null, 8, ["item"])
|
|
@@ -4548,7 +4548,7 @@ const xt = (e, n) => {
|
|
|
4548
4548
|
"auth-function": () => e.canDelete(J)
|
|
4549
4549
|
}, {
|
|
4550
4550
|
default: y(() => [
|
|
4551
|
-
F(
|
|
4551
|
+
F(Ke, {
|
|
4552
4552
|
danger: "",
|
|
4553
4553
|
"data-testid": "action-entity-delete",
|
|
4554
4554
|
"has-divider": "",
|
|
@@ -4600,7 +4600,7 @@ const xt = (e, n) => {
|
|
|
4600
4600
|
class: "message",
|
|
4601
4601
|
keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
|
|
4602
4602
|
tag: "p"
|
|
4603
|
-
},
|
|
4603
|
+
}, Ce({
|
|
4604
4604
|
consumer: y(() => [
|
|
4605
4605
|
K("strong", null, M(ve.value.username || ve.value.custom_id || ve.value.id), 1)
|
|
4606
4606
|
]),
|
|
@@ -4622,7 +4622,7 @@ const xt = (e, n) => {
|
|
|
4622
4622
|
};
|
|
4623
4623
|
}
|
|
4624
4624
|
});
|
|
4625
|
-
const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-
|
|
4625
|
+
const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { class: "kong-ui-entities-consumer-form" }, Al = { class: "fields-group-title" }, Sl = { class: "fields-group-text" }, xl = /* @__PURE__ */ te({
|
|
4626
4626
|
__name: "ConsumerForm",
|
|
4627
4627
|
props: {
|
|
4628
4628
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4657,7 +4657,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-c7e09c5e"]]), Il = { cl
|
|
|
4657
4657
|
tags: ""
|
|
4658
4658
|
}), d = $(() => {
|
|
4659
4659
|
var w, N;
|
|
4660
|
-
return (N =
|
|
4660
|
+
return (N = Se.form[(w = t.config) == null ? void 0 : w.app]) == null ? void 0 : N.edit;
|
|
4661
4661
|
}), c = () => {
|
|
4662
4662
|
var w;
|
|
4663
4663
|
o.push(((w = t.config) == null ? void 0 : w.cancelRoute) || { name: "consumer-list" });
|
|
@@ -4672,7 +4672,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-c7e09c5e"]]), Il = { cl
|
|
|
4672
4672
|
l.fields.tags = (N == null ? void 0 : N.join(", ")) || "", Object.assign(u, l.fields);
|
|
4673
4673
|
}, C = $(() => t.consumerId ? lt.Edit : lt.Create), p = (w) => {
|
|
4674
4674
|
var U, b, k, V, B, I;
|
|
4675
|
-
let N = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${
|
|
4675
|
+
let N = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][w]}`;
|
|
4676
4676
|
return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
|
|
4677
4677
|
}, S = $(() => !!l.fields.username || !!l.fields.customId), _ = $(() => JSON.stringify(l.fields) !== JSON.stringify(u)), q = async () => {
|
|
4678
4678
|
var w, N, U;
|
|
@@ -4833,7 +4833,7 @@ const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-335659fc"]]), Tl = { cl
|
|
|
4833
4833
|
},
|
|
4834
4834
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4835
4835
|
setup(e) {
|
|
4836
|
-
const n = e, { i18n: { t }, i18nT: a } = Ze.useI18n(), r = $(() =>
|
|
4836
|
+
const n = e, { i18n: { t }, i18nT: a } = Ze.useI18n(), r = $(() => Se.form[n.config.app].edit), o = O({
|
|
4837
4837
|
id: {},
|
|
4838
4838
|
username: {
|
|
4839
4839
|
section: ce.Basic,
|