@kong-ui-public/entities-consumer-groups 2.1.4 → 2.1.5-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-consumer-groups.es.js +192 -192
- package/dist/entities-consumer-groups.umd.js +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as E, computed as
|
|
1
|
+
import { defineComponent as ae, ref as E, computed as $, watch as Ae, renderSlot as Z, createCommentVNode as H, unref as y, useSlots as lt, onBeforeMount as ut, resolveComponent as L, openBlock as m, createBlock as U, createSlots as $e, withCtx as v, createElementVNode as V, createTextVNode as Q, toDisplayString as O, createVNode as F, createElementBlock as M, renderList as he, Fragment as be, normalizeClass as Fe, withModifiers as nt, withDirectives as Je, vShow as Ye, useCssVars as gr, resolveDynamicComponent as Ue, normalizeProps as yr, guardReactiveProps as hr, mergeProps as ht, onMounted as vr, onUnmounted as br, normalizeStyle as fn, inject as Cr, pushScopeId as mn, popScopeId as gn, Teleport as kr, reactive as Lt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as yn } from "@kong-ui-public/i18n";
|
|
4
4
|
import _r from "axios";
|
|
@@ -108,7 +108,7 @@ function Sr() {
|
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
110
|
useI18n: Sr
|
|
111
|
-
}, Se = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}",
|
|
111
|
+
}, Se = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", Me = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
114
114
|
all: `${Se}/consumer_groups`,
|
|
@@ -140,7 +140,7 @@ const ct = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var hn = /* @__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))(hn || {}), tt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(tt || {}),
|
|
143
|
+
var hn = /* @__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))(hn || {}), tt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(tt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), ne = /* @__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))(ne || {}), Ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(Ce || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
146
|
axiosInstance: _r.create({
|
|
@@ -427,7 +427,7 @@ function Pr(e, n, t, r = {
|
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
429
|
function Vr(e, n) {
|
|
430
|
-
const t = y(n), r =
|
|
430
|
+
const t = y(n), r = $(
|
|
431
431
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
432
432
|
);
|
|
433
433
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
@@ -472,9 +472,9 @@ function Rr(e) {
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
function bn(e, n) {
|
|
475
|
-
const t = E(y(e)), r = E(y(n)), a =
|
|
475
|
+
const t = E(y(e)), r = E(y(n)), a = $(
|
|
476
476
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
477
|
-
), o =
|
|
477
|
+
), o = $(
|
|
478
478
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
479
479
|
);
|
|
480
480
|
return (i) => {
|
|
@@ -493,11 +493,11 @@ function Dr(e, n, t = "data") {
|
|
|
493
493
|
const r = y(n), { axiosInstance: a } = At({
|
|
494
494
|
headers: e.requestHeaders
|
|
495
495
|
}), o = bn(e, r), i = E({
|
|
496
|
-
status:
|
|
496
|
+
status: Oe.Idle
|
|
497
497
|
});
|
|
498
498
|
return { fetcher: async (s) => {
|
|
499
499
|
try {
|
|
500
|
-
i.value = { status:
|
|
500
|
+
i.value = { status: Oe.Loading };
|
|
501
501
|
const l = o(s), { data: c } = await a.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
502
502
|
let u;
|
|
503
503
|
c[d] && Array.isArray(c[d]) ? u = c[d] : Array.isArray(c) ? u = c : u = Object.keys(c).length ? [c] : [];
|
|
@@ -511,7 +511,7 @@ function Dr(e, n, t = "data") {
|
|
|
511
511
|
} : null
|
|
512
512
|
};
|
|
513
513
|
return i.value = {
|
|
514
|
-
status:
|
|
514
|
+
status: Oe.Idle,
|
|
515
515
|
response: g
|
|
516
516
|
}, g;
|
|
517
517
|
} catch (l) {
|
|
@@ -520,11 +520,11 @@ function Dr(e, n, t = "data") {
|
|
|
520
520
|
total: 0
|
|
521
521
|
};
|
|
522
522
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
523
|
-
status:
|
|
523
|
+
status: Oe.NoResults,
|
|
524
524
|
response: c,
|
|
525
525
|
error: l
|
|
526
526
|
}, c) : (i.value = {
|
|
527
|
-
status:
|
|
527
|
+
status: Oe.Error,
|
|
528
528
|
response: c,
|
|
529
529
|
error: l
|
|
530
530
|
}, c);
|
|
@@ -598,7 +598,7 @@ function Qr(e) {
|
|
|
598
598
|
return Ae(e, (a) => {
|
|
599
599
|
a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
|
|
600
600
|
}), {
|
|
601
|
-
isTruncated:
|
|
601
|
+
isTruncated: $(() => n.value < t.value)
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
const ce = {
|
|
@@ -686,7 +686,7 @@ const ce = {
|
|
|
686
686
|
}
|
|
687
687
|
},
|
|
688
688
|
setup(e) {
|
|
689
|
-
const n = e, t =
|
|
689
|
+
const n = e, t = $(() => {
|
|
690
690
|
if (typeof n.size == "number" && n.size > 0)
|
|
691
691
|
return `${n.size}px`;
|
|
692
692
|
if (typeof n.size == "string") {
|
|
@@ -695,7 +695,7 @@ const ce = {
|
|
|
695
695
|
return `${o}px`;
|
|
696
696
|
}
|
|
697
697
|
return Ht;
|
|
698
|
-
}), r =
|
|
698
|
+
}), r = $(() => ({
|
|
699
699
|
boxSizing: "border-box",
|
|
700
700
|
color: n.color,
|
|
701
701
|
display: n.display,
|
|
@@ -703,7 +703,7 @@ const ce = {
|
|
|
703
703
|
lineHeight: "0",
|
|
704
704
|
width: t.value
|
|
705
705
|
}));
|
|
706
|
-
return (a, o) => (m(), U(
|
|
706
|
+
return (a, o) => (m(), U(Ue(e.as), {
|
|
707
707
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
708
708
|
class: "kui-icon copy-icon",
|
|
709
709
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -772,18 +772,18 @@ const ce = {
|
|
|
772
772
|
emits: ["success", "error"],
|
|
773
773
|
setup(e, { emit: n }) {
|
|
774
774
|
const t = e, { t: r } = It("en-us", ta), a = t.notify || Cr(na, () => {
|
|
775
|
-
}), o =
|
|
775
|
+
}), o = $(() => t.idTooltip ? {
|
|
776
776
|
label: t.idTooltip,
|
|
777
777
|
positionFixed: !0,
|
|
778
778
|
placement: "bottomStart"
|
|
779
779
|
} : {
|
|
780
780
|
title: t.uuid
|
|
781
|
-
}), i =
|
|
781
|
+
}), i = $(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = $(() => t.tooltip ? {
|
|
782
782
|
label: s.value,
|
|
783
783
|
positionFixed: !0,
|
|
784
784
|
maxWidth: "500px",
|
|
785
785
|
placement: "bottomStart"
|
|
786
|
-
} : {}), c =
|
|
786
|
+
} : {}), c = $(() => {
|
|
787
787
|
var g;
|
|
788
788
|
return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(g = t.uuid) == null ? void 0 : g.substring(0, 5)}` : t.uuid;
|
|
789
789
|
}), d = (g) => {
|
|
@@ -808,10 +808,10 @@ const ce = {
|
|
|
808
808
|
return (g, f) => {
|
|
809
809
|
const I = L("KClipboardProvider");
|
|
810
810
|
return m(), M("div", da, [
|
|
811
|
-
e.format !== "hidden" ? (m(), U(
|
|
811
|
+
e.format !== "hidden" ? (m(), U(Ue(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
812
812
|
default: v(() => [
|
|
813
813
|
V("div", {
|
|
814
|
-
class:
|
|
814
|
+
class: Fe([
|
|
815
815
|
"uuid-container",
|
|
816
816
|
e.truncated ? "truncated-uuid" : null,
|
|
817
817
|
e.useMono ? "mono" : null
|
|
@@ -820,7 +820,7 @@ const ce = {
|
|
|
820
820
|
]),
|
|
821
821
|
_: 1
|
|
822
822
|
}, 16)) : H("", !0),
|
|
823
|
-
(m(), U(
|
|
823
|
+
(m(), U(Ue(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
824
824
|
default: v(() => [
|
|
825
825
|
F(I, null, {
|
|
826
826
|
default: v(({ copyToClipboard: b }) => [
|
|
@@ -872,15 +872,15 @@ const ce = {
|
|
|
872
872
|
}
|
|
873
873
|
},
|
|
874
874
|
setup(e) {
|
|
875
|
-
const n = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle: r } = ce.useStringHelpers(), a =
|
|
875
|
+
const n = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle: r } = ce.useStringHelpers(), a = $(() => n.item.key ?? "json-array-item"), o = $(() => n.item.value ?? n.item), i = $(() => {
|
|
876
876
|
const l = JSON.parse(JSON.stringify(o.value));
|
|
877
877
|
return n.isArrayItem && delete l.name, l;
|
|
878
|
-
}), s =
|
|
878
|
+
}), s = $(() => {
|
|
879
879
|
var l;
|
|
880
880
|
return n.isArrayItem ? (l = o.value) != null && l.name ? r(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
881
881
|
});
|
|
882
|
-
return (l, c) => (m(), U(
|
|
883
|
-
class:
|
|
882
|
+
return (l, c) => (m(), U(Ue(e.isArrayItem ? "fieldset" : "div"), {
|
|
883
|
+
class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
884
884
|
}, {
|
|
885
885
|
default: v(() => [
|
|
886
886
|
e.isArrayItem ? (m(), M("legend", ga, [
|
|
@@ -982,7 +982,7 @@ const ce = {
|
|
|
982
982
|
"1957f153": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
983
983
|
"195a372e": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
984
984
|
}));
|
|
985
|
-
const r = lt(), { i18n: { t: a, formatUnixTimeStamp: o } } = ce.useI18n(), i =
|
|
985
|
+
const r = lt(), { i18n: { t: a, formatUnixTimeStamp: o } } = ce.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || r["label-tooltip"])), l = $(() => t.item.type === ne.Json || t.item.type === ne.JsonArray), c = $(() => t.item.type === ne.JsonArray), d = $(() => {
|
|
986
986
|
switch (t.item.type) {
|
|
987
987
|
case ne.ID:
|
|
988
988
|
return {
|
|
@@ -1117,7 +1117,7 @@ const ce = {
|
|
|
1117
1117
|
"data-testid": `${e.item.key}-label`
|
|
1118
1118
|
}, [
|
|
1119
1119
|
Z(f.$slots, "label", { item: e.item }, () => [
|
|
1120
|
-
F(b, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
1120
|
+
F(b, { "tooltip-attributes": { maxWidth: "500px" } }, $e({
|
|
1121
1121
|
default: v(() => [
|
|
1122
1122
|
Q(O(e.item.label) + " ", 1)
|
|
1123
1123
|
]),
|
|
@@ -1147,7 +1147,7 @@ const ce = {
|
|
|
1147
1147
|
rowValue: e.item.value
|
|
1148
1148
|
}, () => [
|
|
1149
1149
|
i.value ? (m(), M("div", Ma, [
|
|
1150
|
-
(m(), U(
|
|
1150
|
+
(m(), U(Ue(d.value.tag), yr(hr(d.value.attrs)), {
|
|
1151
1151
|
default: v(() => [
|
|
1152
1152
|
d.value.additionalComponent === "KBadge" ? (m(), M("div", {
|
|
1153
1153
|
key: 0,
|
|
@@ -1212,7 +1212,7 @@ const ce = {
|
|
|
1212
1212
|
V("span", {
|
|
1213
1213
|
ref_key: "textContent",
|
|
1214
1214
|
ref: u,
|
|
1215
|
-
class:
|
|
1215
|
+
class: Fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1216
1216
|
}, O(d.value.text), 3)
|
|
1217
1217
|
]),
|
|
1218
1218
|
_: 1
|
|
@@ -1818,20 +1818,20 @@ var Dn = new pe("tag:yaml.org,2002:set", {
|
|
|
1818
1818
|
Rn,
|
|
1819
1819
|
Dn
|
|
1820
1820
|
]
|
|
1821
|
-
}),
|
|
1821
|
+
}), Ee = Object.prototype.hasOwnProperty, rt = 1, Gn = 2, Hn = 3, at = 4, yt = 1, qo = 2, Yt = 3, Lo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Po = /[\x85\u2028\u2029]/, Vo = /[,\[\]\{\}]/, zn = /^(?:!|!!|![a-z\-]+!)$/i, Jn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1822
1822
|
function Wt(e) {
|
|
1823
1823
|
return Object.prototype.toString.call(e);
|
|
1824
1824
|
}
|
|
1825
1825
|
function Ie(e) {
|
|
1826
1826
|
return e === 10 || e === 13;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function Ke(e) {
|
|
1829
1829
|
return e === 9 || e === 32;
|
|
1830
1830
|
}
|
|
1831
1831
|
function ve(e) {
|
|
1832
1832
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function Pe(e) {
|
|
1835
1835
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1836
1836
|
}
|
|
1837
1837
|
function Uo(e) {
|
|
@@ -1855,8 +1855,8 @@ function Go(e) {
|
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
1857
|
var Yn = new Array(256), Wn = new Array(256);
|
|
1858
|
-
for (var
|
|
1859
|
-
Yn[
|
|
1858
|
+
for (var qe = 0; qe < 256; qe++)
|
|
1859
|
+
Yn[qe] = Zt(qe) ? 1 : 0, Wn[qe] = Zt(qe);
|
|
1860
1860
|
function Ho(e, n) {
|
|
1861
1861
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, 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 = [];
|
|
1862
1862
|
}
|
|
@@ -1884,7 +1884,7 @@ var Qt = {
|
|
|
1884
1884
|
},
|
|
1885
1885
|
TAG: function(e, n, t) {
|
|
1886
1886
|
var r, a;
|
|
1887
|
-
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1], zn.test(r) || j(e, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
1887
|
+
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1], zn.test(r) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), Ee.call(e.tagMap, r) && j(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Jn.test(a) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1888
1888
|
try {
|
|
1889
1889
|
a = decodeURIComponent(a);
|
|
1890
1890
|
} catch {
|
|
@@ -1893,7 +1893,7 @@ var Qt = {
|
|
|
1893
1893
|
e.tagMap[r] = a;
|
|
1894
1894
|
}
|
|
1895
1895
|
};
|
|
1896
|
-
function
|
|
1896
|
+
function je(e, n, t, r) {
|
|
1897
1897
|
var a, o, i, s;
|
|
1898
1898
|
if (n < t) {
|
|
1899
1899
|
if (s = e.input.slice(n, t), r)
|
|
@@ -1907,9 +1907,9 @@ function Ee(e, n, t, r) {
|
|
|
1907
1907
|
function Xt(e, n, t, r) {
|
|
1908
1908
|
var a, o, i, s;
|
|
1909
1909
|
for (ue.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), i = 0, s = a.length; i < s; i += 1)
|
|
1910
|
-
o = a[i],
|
|
1910
|
+
o = a[i], Ee.call(n, o) || (n[o] = t[o], r[o] = !0);
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function Ve(e, n, t, r, a, o, i, s, l) {
|
|
1913
1913
|
var c, d;
|
|
1914
1914
|
if (Array.isArray(a))
|
|
1915
1915
|
for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
|
|
@@ -1921,7 +1921,7 @@ function Ue(e, n, t, r, a, o, i, s, l) {
|
|
|
1921
1921
|
else
|
|
1922
1922
|
Xt(e, n, o, t);
|
|
1923
1923
|
else
|
|
1924
|
-
!e.json && !
|
|
1924
|
+
!e.json && !Ee.call(t, a) && Ee.call(n, a) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(n, a, {
|
|
1925
1925
|
configurable: !0,
|
|
1926
1926
|
enumerable: !0,
|
|
1927
1927
|
writable: !0,
|
|
@@ -1935,7 +1935,7 @@ function Mt(e) {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
function ie(e, n, t) {
|
|
1937
1937
|
for (var r = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
|
|
1938
|
-
for (;
|
|
1938
|
+
for (; Ke(a); )
|
|
1939
1939
|
a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
|
|
1940
1940
|
if (n && a === 35)
|
|
1941
1941
|
do
|
|
@@ -1959,17 +1959,17 @@ function jt(e, n) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
function zo(e, n, t) {
|
|
1961
1961
|
var r, a, o, i, s, l, c, d, u = e.kind, g = e.result, f;
|
|
1962
|
-
if (f = e.input.charCodeAt(e.position), ve(f) ||
|
|
1962
|
+
if (f = e.input.charCodeAt(e.position), ve(f) || Pe(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) && (a = e.input.charCodeAt(e.position + 1), ve(a) || t && Pe(a)))
|
|
1963
1963
|
return !1;
|
|
1964
1964
|
for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
|
|
1965
1965
|
if (f === 58) {
|
|
1966
|
-
if (a = e.input.charCodeAt(e.position + 1), ve(a) || t &&
|
|
1966
|
+
if (a = e.input.charCodeAt(e.position + 1), ve(a) || t && Pe(a))
|
|
1967
1967
|
break;
|
|
1968
1968
|
} else if (f === 35) {
|
|
1969
1969
|
if (r = e.input.charCodeAt(e.position - 1), ve(r))
|
|
1970
1970
|
break;
|
|
1971
1971
|
} else {
|
|
1972
|
-
if (e.position === e.lineStart && dt(e) || t &&
|
|
1972
|
+
if (e.position === e.lineStart && dt(e) || t && Pe(f))
|
|
1973
1973
|
break;
|
|
1974
1974
|
if (Ie(f))
|
|
1975
1975
|
if (l = e.line, c = e.lineStart, d = e.lineIndent, ie(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1980,9 +1980,9 @@ function zo(e, n, t) {
|
|
|
1980
1980
|
break;
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
|
-
s && (
|
|
1983
|
+
s && (je(e, o, i, !1), jt(e, e.line - l), o = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1984
1984
|
}
|
|
1985
|
-
return
|
|
1985
|
+
return je(e, o, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1986
1986
|
}
|
|
1987
1987
|
function Jo(e, n) {
|
|
1988
1988
|
var t, r, a;
|
|
@@ -1990,12 +1990,12 @@ function Jo(e, n) {
|
|
|
1990
1990
|
return !1;
|
|
1991
1991
|
for (e.kind = "scalar", e.result = "", e.position++, r = a = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1992
1992
|
if (t === 39)
|
|
1993
|
-
if (
|
|
1993
|
+
if (je(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1994
1994
|
r = e.position, e.position++, a = e.position;
|
|
1995
1995
|
else
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
else
|
|
1998
|
-
Ie(t) ? (
|
|
1998
|
+
Ie(t) ? (je(e, r, a, !0), jt(e, ie(e, !1, n)), r = a = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
|
|
1999
1999
|
j(e, "unexpected end of the stream within a single quoted scalar");
|
|
2000
2000
|
}
|
|
2001
2001
|
function Yo(e, n) {
|
|
@@ -2004,9 +2004,9 @@ function Yo(e, n) {
|
|
|
2004
2004
|
return !1;
|
|
2005
2005
|
for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2006
2006
|
if (s === 34)
|
|
2007
|
-
return
|
|
2007
|
+
return je(e, t, e.position, !0), e.position++, !0;
|
|
2008
2008
|
if (s === 92) {
|
|
2009
|
-
if (
|
|
2009
|
+
if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), Ie(s))
|
|
2010
2010
|
ie(e, !1, n);
|
|
2011
2011
|
else if (s < 256 && Yn[s])
|
|
2012
2012
|
e.result += Wn[s], e.position++;
|
|
@@ -2018,7 +2018,7 @@ function Yo(e, n) {
|
|
|
2018
2018
|
j(e, "unknown escape sequence");
|
|
2019
2019
|
t = r = e.position;
|
|
2020
2020
|
} else
|
|
2021
|
-
Ie(s) ? (
|
|
2021
|
+
Ie(s) ? (je(e, t, r, !0), jt(e, ie(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
2022
2022
|
}
|
|
2023
2023
|
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
2024
2024
|
}
|
|
@@ -2033,7 +2033,7 @@ function Wo(e, n) {
|
|
|
2033
2033
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), k = e.input.charCodeAt(++e.position); k !== 0; ) {
|
|
2034
2034
|
if (ie(e, !0, n), k = e.input.charCodeAt(e.position), k === d)
|
|
2035
2035
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2036
|
-
t ? k === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = g = !1, k === 63 && (c = e.input.charCodeAt(e.position + 1), ve(c) && (u = g = !0, e.position++, ie(e, !0, n))), r = e.line, a = e.lineStart, o = e.position,
|
|
2036
|
+
t ? k === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = g = !1, k === 63 && (c = e.input.charCodeAt(e.position + 1), ve(c) && (u = g = !0, e.position++, ie(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Re(e, n, rt, !1, !0), p = e.tag, b = e.result, ie(e, !0, n), k = e.input.charCodeAt(e.position), (g || e.line === r) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), ie(e, !0, n), Re(e, n, rt, !1, !0), A = e.result), f ? Ve(e, s, I, p, b, A, r, a, o) : u ? s.push(Ve(e, null, I, p, b, A, r, a, o)) : s.push(b), ie(e, !0, n), k = e.input.charCodeAt(e.position), k === 44 ? (t = !0, k = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2037
2037
|
}
|
|
2038
2038
|
j(e, "unexpected end of the stream within a flow collection");
|
|
2039
2039
|
}
|
|
@@ -2052,10 +2052,10 @@ function Zo(e, n) {
|
|
|
2052
2052
|
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);
|
|
2053
2053
|
else
|
|
2054
2054
|
break;
|
|
2055
|
-
if (
|
|
2055
|
+
if (Ke(u)) {
|
|
2056
2056
|
do
|
|
2057
2057
|
u = e.input.charCodeAt(++e.position);
|
|
2058
|
-
while (
|
|
2058
|
+
while (Ke(u));
|
|
2059
2059
|
if (u === 35)
|
|
2060
2060
|
do
|
|
2061
2061
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -2074,13 +2074,13 @@ function Zo(e, n) {
|
|
|
2074
2074
|
`);
|
|
2075
2075
|
break;
|
|
2076
2076
|
}
|
|
2077
|
-
for (r ?
|
|
2077
|
+
for (r ? Ke(u) ? (c = !0, e.result += ue.repeat(`
|
|
2078
2078
|
`, o ? 1 + l : l)) : c ? (c = !1, e.result += ue.repeat(`
|
|
2079
2079
|
`, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += ue.repeat(`
|
|
2080
2080
|
`, l) : e.result += ue.repeat(`
|
|
2081
2081
|
`, o ? 1 + l : l), o = !0, i = !0, l = 0, t = e.position; !Ie(u) && u !== 0; )
|
|
2082
2082
|
u = e.input.charCodeAt(++e.position);
|
|
2083
|
-
|
|
2083
|
+
je(e, t, e.position, !1);
|
|
2084
2084
|
}
|
|
2085
2085
|
return !0;
|
|
2086
2086
|
}
|
|
@@ -2093,7 +2093,7 @@ function en(e, n) {
|
|
|
2093
2093
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
2094
2094
|
continue;
|
|
2095
2095
|
}
|
|
2096
|
-
if (t = e.line,
|
|
2096
|
+
if (t = e.line, Re(e, n, Hn, !1, !0), o.push(e.result), ie(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
2097
2097
|
j(e, "bad indentation of a sequence entry");
|
|
2098
2098
|
else if (e.lineIndent < n)
|
|
2099
2099
|
break;
|
|
@@ -2106,15 +2106,15 @@ function Qo(e, n, t) {
|
|
|
2106
2106
|
return !1;
|
|
2107
2107
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
|
|
2108
2108
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ve(r))
|
|
2109
|
-
k === 63 ? (p && (
|
|
2109
|
+
k === 63 ? (p && (Ve(e, u, g, f, I, null, i, s, l), f = I = b = null), A = !0, p = !0, a = !0) : p ? (p = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
|
|
2110
2110
|
else {
|
|
2111
|
-
if (i = e.line, s = e.lineStart, l = e.position, !
|
|
2111
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Gn, !1, !0))
|
|
2112
2112
|
break;
|
|
2113
2113
|
if (e.line === o) {
|
|
2114
|
-
for (k = e.input.charCodeAt(e.position);
|
|
2114
|
+
for (k = e.input.charCodeAt(e.position); Ke(k); )
|
|
2115
2115
|
k = e.input.charCodeAt(++e.position);
|
|
2116
2116
|
if (k === 58)
|
|
2117
|
-
k = e.input.charCodeAt(++e.position), ve(k) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (
|
|
2117
|
+
k = e.input.charCodeAt(++e.position), ve(k) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ve(e, u, g, f, I, null, i, s, l), f = I = b = null), A = !0, p = !1, a = !1, f = e.tag, I = e.result;
|
|
2118
2118
|
else if (A)
|
|
2119
2119
|
j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2120
2120
|
else
|
|
@@ -2124,12 +2124,12 @@ function Qo(e, n, t) {
|
|
|
2124
2124
|
else
|
|
2125
2125
|
return e.tag = c, e.anchor = d, !0;
|
|
2126
2126
|
}
|
|
2127
|
-
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position),
|
|
2127
|
+
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, a) && (p ? I = e.result : b = e.result), p || (Ve(e, u, g, f, I, b, i, s, l), f = I = b = null), ie(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && k !== 0)
|
|
2128
2128
|
j(e, "bad indentation of a mapping entry");
|
|
2129
2129
|
else if (e.lineIndent < n)
|
|
2130
2130
|
break;
|
|
2131
2131
|
}
|
|
2132
|
-
return p &&
|
|
2132
|
+
return p && Ve(e, u, g, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
|
|
2133
2133
|
}
|
|
2134
2134
|
function Xo(e) {
|
|
2135
2135
|
var n, t = !1, r = !1, a, o, i;
|
|
@@ -2151,13 +2151,13 @@ function Xo(e) {
|
|
|
2151
2151
|
} catch {
|
|
2152
2152
|
j(e, "tag name is malformed: " + o);
|
|
2153
2153
|
}
|
|
2154
|
-
return t ? e.tag = o :
|
|
2154
|
+
return t ? e.tag = o : Ee.call(e.tagMap, a) ? e.tag = e.tagMap[a] + o : a === "!" ? e.tag = "!" + o : a === "!!" ? e.tag = "tag:yaml.org,2002:" + o : j(e, 'undeclared tag handle "' + a + '"'), !0;
|
|
2155
2155
|
}
|
|
2156
2156
|
function ei(e) {
|
|
2157
2157
|
var n, t;
|
|
2158
2158
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2159
2159
|
return !1;
|
|
2160
|
-
for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ve(t) && !
|
|
2160
|
+
for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ve(t) && !Pe(t); )
|
|
2161
2161
|
t = e.input.charCodeAt(++e.position);
|
|
2162
2162
|
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;
|
|
2163
2163
|
}
|
|
@@ -2165,11 +2165,11 @@ function ti(e) {
|
|
|
2165
2165
|
var n, t, r;
|
|
2166
2166
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2167
2167
|
return !1;
|
|
2168
|
-
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ve(r) && !
|
|
2168
|
+
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ve(r) && !Pe(r); )
|
|
2169
2169
|
r = e.input.charCodeAt(++e.position);
|
|
2170
|
-
return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position),
|
|
2170
|
+
return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ee.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ie(e, !0, -1), !0;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Re(e, n, t, r, a) {
|
|
2173
2173
|
var o, i, s, l = 1, c = !1, d = !1, u, g, f, I, b, p;
|
|
2174
2174
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = at === t || Hn === t, r && ie(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2175
2175
|
for (; Xo(e) || ei(e); )
|
|
@@ -2183,7 +2183,7 @@ function De(e, n, t, r, a) {
|
|
|
2183
2183
|
break;
|
|
2184
2184
|
}
|
|
2185
2185
|
} else if (e.tag !== "!") {
|
|
2186
|
-
if (
|
|
2186
|
+
if (Ee.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2187
2187
|
I = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2188
2188
|
else
|
|
2189
2189
|
for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
|
|
@@ -2201,7 +2201,7 @@ function ni(e) {
|
|
|
2201
2201
|
for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ve(i); )
|
|
2202
2202
|
i = e.input.charCodeAt(++e.position);
|
|
2203
2203
|
for (r = e.input.slice(t, e.position), a = [], r.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
2204
|
-
for (;
|
|
2204
|
+
for (; Ke(i); )
|
|
2205
2205
|
i = e.input.charCodeAt(++e.position);
|
|
2206
2206
|
if (i === 35) {
|
|
2207
2207
|
do
|
|
@@ -2215,9 +2215,9 @@ function ni(e) {
|
|
|
2215
2215
|
i = e.input.charCodeAt(++e.position);
|
|
2216
2216
|
a.push(e.input.slice(t, e.position));
|
|
2217
2217
|
}
|
|
2218
|
-
i !== 0 && Mt(e),
|
|
2218
|
+
i !== 0 && Mt(e), Ee.call(Qt, r) ? Qt[r](e, r, a) : ot(e, 'unknown document directive "' + r + '"');
|
|
2219
2219
|
}
|
|
2220
|
-
if (ie(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, ie(e, !0, -1)) : o && j(e, "directives end mark is expected"),
|
|
2220
|
+
if (ie(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, ie(e, !0, -1)) : o && j(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), ie(e, !0, -1), e.checkLineBreaks && Po.test(e.input.slice(n, e.position)) && ot(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
2221
2221
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ie(e, !0, -1));
|
|
2222
2222
|
return;
|
|
2223
2223
|
}
|
|
@@ -2364,13 +2364,13 @@ function sr(e) {
|
|
|
2364
2364
|
var n = /^\n* /;
|
|
2365
2365
|
return n.test(e);
|
|
2366
2366
|
}
|
|
2367
|
-
var lr = 1, kt = 2, ur = 3, cr = 4,
|
|
2367
|
+
var lr = 1, kt = 2, ur = 3, cr = 4, Le = 5;
|
|
2368
2368
|
function Ei(e, n, t, r, a, o, i, s) {
|
|
2369
2369
|
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, I = -1, b = Mi(ze(e, 0)) && ji(ze(e, e.length - 1));
|
|
2370
2370
|
if (n || i)
|
|
2371
2371
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2372
2372
|
if (c = ze(e, l), !Xe(c))
|
|
2373
|
-
return
|
|
2373
|
+
return Le;
|
|
2374
2374
|
b = b && rn(c, d, s), d = c;
|
|
2375
2375
|
}
|
|
2376
2376
|
else {
|
|
@@ -2379,12 +2379,12 @@ function Ei(e, n, t, r, a, o, i, s) {
|
|
|
2379
2379
|
u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
|
|
2380
2380
|
l - I - 1 > r && e[I + 1] !== " ", I = l);
|
|
2381
2381
|
else if (!Xe(c))
|
|
2382
|
-
return
|
|
2382
|
+
return Le;
|
|
2383
2383
|
b = b && rn(c, d, s), d = c;
|
|
2384
2384
|
}
|
|
2385
2385
|
g = g || f && l - I - 1 > r && e[I + 1] !== " ";
|
|
2386
2386
|
}
|
|
2387
|
-
return !u && !g ? b && !i && !a(e) ? lr : o === Qe ?
|
|
2387
|
+
return !u && !g ? b && !i && !a(e) ? lr : o === Qe ? Le : kt : t > 9 && sr(e) ? Le : i ? o === Qe ? Le : kt : g ? cr : ur;
|
|
2388
2388
|
}
|
|
2389
2389
|
function Oi(e, n, t, r, a) {
|
|
2390
2390
|
e.dump = function() {
|
|
@@ -2414,7 +2414,7 @@ function Oi(e, n, t, r, a) {
|
|
|
2414
2414
|
return "|" + an(n, e.indent) + on(tn(n, o));
|
|
2415
2415
|
case cr:
|
|
2416
2416
|
return ">" + an(n, e.indent) + on(tn(Ki(n, i), o));
|
|
2417
|
-
case
|
|
2417
|
+
case Le:
|
|
2418
2418
|
return '"' + Fi(n) + '"';
|
|
2419
2419
|
default:
|
|
2420
2420
|
throw new me("impossible error: invalid scalar style");
|
|
@@ -2647,14 +2647,14 @@ const as = {
|
|
|
2647
2647
|
e.format === "structured" ? (m(), M("div", as, [
|
|
2648
2648
|
(m(!0), M(be, null, he(e.propListTypes, (d) => (m(), M("div", {
|
|
2649
2649
|
key: `config-card-details-${d}-props`,
|
|
2650
|
-
class:
|
|
2650
|
+
class: Fe(`config-card-details-${d}-props`),
|
|
2651
2651
|
"data-testid": `config-card-details-${d}-props`
|
|
2652
2652
|
}, [
|
|
2653
2653
|
d !== "basic" ? (m(), M("div", is, O(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2654
2654
|
(m(!0), M(be, null, he(e.propertyCollections[d], (u) => (m(), U(xt, {
|
|
2655
2655
|
key: u.key,
|
|
2656
2656
|
item: u
|
|
2657
|
-
},
|
|
2657
|
+
}, $e({
|
|
2658
2658
|
label: v(() => [
|
|
2659
2659
|
Z(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2660
2660
|
]),
|
|
@@ -2758,7 +2758,7 @@ const as = {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
},
|
|
2760
2760
|
setup(e) {
|
|
2761
|
-
const n = e, t =
|
|
2761
|
+
const n = e, t = $(() => {
|
|
2762
2762
|
if (typeof n.size == "number" && n.size > 0)
|
|
2763
2763
|
return `${n.size}px`;
|
|
2764
2764
|
if (typeof n.size == "string") {
|
|
@@ -2767,7 +2767,7 @@ const as = {
|
|
|
2767
2767
|
return `${o}px`;
|
|
2768
2768
|
}
|
|
2769
2769
|
return cn;
|
|
2770
|
-
}), r =
|
|
2770
|
+
}), r = $(() => ({
|
|
2771
2771
|
boxSizing: "border-box",
|
|
2772
2772
|
color: n.color,
|
|
2773
2773
|
display: n.display,
|
|
@@ -2775,7 +2775,7 @@ const as = {
|
|
|
2775
2775
|
lineHeight: "0",
|
|
2776
2776
|
width: t.value
|
|
2777
2777
|
}));
|
|
2778
|
-
return (a, o) => (m(), U(
|
|
2778
|
+
return (a, o) => (m(), U(Ue(e.as), {
|
|
2779
2779
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2780
2780
|
class: "kui-icon book-icon",
|
|
2781
2781
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2935,7 +2935,7 @@ const as = {
|
|
|
2935
2935
|
// the last property displayed
|
|
2936
2936
|
section: Ce.Basic
|
|
2937
2937
|
}
|
|
2938
|
-
}, f = E(!1), I = E(!1), b = E(""), p = E(), A =
|
|
2938
|
+
}, f = E(!1), I = E(!1), b = E(""), p = E(), A = $(() => {
|
|
2939
2939
|
var w, N, R;
|
|
2940
2940
|
if (!p.value)
|
|
2941
2941
|
return [];
|
|
@@ -2960,7 +2960,7 @@ const as = {
|
|
|
2960
2960
|
section: te.section ?? ((le == null ? void 0 : le.section) || Ce.Advanced)
|
|
2961
2961
|
};
|
|
2962
2962
|
}).filter((x) => !x.hidden && x.key !== r.pluginConfigKey);
|
|
2963
|
-
}), k =
|
|
2963
|
+
}), k = $(() => {
|
|
2964
2964
|
var w, N;
|
|
2965
2965
|
if (!p.value || !r.pluginConfigKey)
|
|
2966
2966
|
return [];
|
|
@@ -2985,17 +2985,17 @@ const as = {
|
|
|
2985
2985
|
section: Ce.Plugin
|
|
2986
2986
|
};
|
|
2987
2987
|
}).filter((x) => !x.hidden);
|
|
2988
|
-
}), K =
|
|
2988
|
+
}), K = $(() => {
|
|
2989
2989
|
var w, N, R, C;
|
|
2990
2990
|
return {
|
|
2991
2991
|
basic: (w = A.value) == null ? void 0 : w.filter((S) => S.section === Ce.Basic),
|
|
2992
2992
|
advanced: (N = A.value) == null ? void 0 : N.filter((S) => S.section === Ce.Advanced),
|
|
2993
2993
|
plugin: (C = k.value) == null ? void 0 : C.concat((R = A.value) == null ? void 0 : R.filter((S) => S.section === Ce.Plugin))
|
|
2994
2994
|
};
|
|
2995
|
-
}), h =
|
|
2995
|
+
}), h = $(() => {
|
|
2996
2996
|
const w = [];
|
|
2997
2997
|
return K.value.basic.length && w.push("basic"), K.value.advanced.length && w.push("advanced"), K.value.plugin.length && w.push("plugin"), w;
|
|
2998
|
-
}), D = (w) => !!(w.tooltip || a[`${w.key}-label-tooltip`]), se =
|
|
2998
|
+
}), D = (w) => !!(w.tooltip || a[`${w.key}-label-tooltip`]), se = $(() => {
|
|
2999
2999
|
var w, N;
|
|
3000
3000
|
let R = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3001
3001
|
return r.config.app === "konnect" ? R = R.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (R = R.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), R = R.replace(/{id}/gi, r.config.entityId), R;
|
|
@@ -3026,7 +3026,7 @@ const as = {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
}), (w, N) => {
|
|
3028
3028
|
const R = L("KLabel"), C = L("KSelect"), S = L("KButton"), x = L("KClipboardProvider"), q = L("KSkeleton"), J = L("KEmptyState"), X = L("KCard");
|
|
3029
|
-
return m(), U(X, { class: "kong-ui-entity-base-config-card" },
|
|
3029
|
+
return m(), U(X, { class: "kong-ui-entity-base-config-card" }, $e({
|
|
3030
3030
|
actions: v(() => [
|
|
3031
3031
|
V("div", bs, [
|
|
3032
3032
|
Z(w.$slots, "actions", {}, void 0, !0),
|
|
@@ -3104,7 +3104,7 @@ const as = {
|
|
|
3104
3104
|
"prop-list-types": h.value,
|
|
3105
3105
|
"property-collections": K.value,
|
|
3106
3106
|
record: p.value
|
|
3107
|
-
},
|
|
3107
|
+
}, $e({ _: 2 }, [
|
|
3108
3108
|
he(Object.keys(w.$slots), (ee) => ({
|
|
3109
3109
|
name: ee,
|
|
3110
3110
|
fn: v(({ row: te, rowValue: le }) => [
|
|
@@ -3118,14 +3118,14 @@ const as = {
|
|
|
3118
3118
|
])) : (m(), M("div", _s, [
|
|
3119
3119
|
(m(!0), M(be, null, he(h.value, (ee) => (m(), M("div", {
|
|
3120
3120
|
key: `config-card-details-${ee}-props`,
|
|
3121
|
-
class:
|
|
3121
|
+
class: Fe(`config-card-details-${ee}-props`),
|
|
3122
3122
|
"data-testid": `config-card-details-${ee}-props`
|
|
3123
3123
|
}, [
|
|
3124
3124
|
ee !== "basic" ? (m(), M("div", Is, O(ee === "advanced" ? y(o)("baseConfigCard.sections.advanced") : y(o)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
3125
3125
|
(m(!0), M(be, null, he(K.value[ee], (te) => (m(), U(xt, {
|
|
3126
3126
|
key: te.key,
|
|
3127
3127
|
item: te
|
|
3128
|
-
},
|
|
3128
|
+
}, $e({
|
|
3129
3129
|
label: v(() => [
|
|
3130
3130
|
Z(w.$slots, `${te.key}-label`, { row: te }, void 0, !0)
|
|
3131
3131
|
]),
|
|
@@ -3219,7 +3219,7 @@ const as = {
|
|
|
3219
3219
|
var t;
|
|
3220
3220
|
const r = e, a = wt(), { i18n: { t: o } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { axiosInstance: s } = ce.useAxios({
|
|
3221
3221
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3222
|
-
}), l = E(!1), c = E(!1), d = E(""), u =
|
|
3222
|
+
}), l = E(!1), c = E(!1), d = E(""), u = $(() => r.canSubmit === !1 || r.isReadonly), g = $(() => {
|
|
3223
3223
|
var p, A;
|
|
3224
3224
|
if (!r.editId)
|
|
3225
3225
|
return "";
|
|
@@ -3325,13 +3325,13 @@ const as = {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
},
|
|
3327
3327
|
setup(e) {
|
|
3328
|
-
const n = e, t =
|
|
3328
|
+
const n = e, t = $(() => {
|
|
3329
3329
|
var b;
|
|
3330
3330
|
return ((b = n.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3331
|
-
}), r =
|
|
3331
|
+
}), r = $(() => {
|
|
3332
3332
|
var b;
|
|
3333
3333
|
return ((b = t.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
|
|
3334
|
-
}), a =
|
|
3334
|
+
}), a = $(() => {
|
|
3335
3335
|
var b, p;
|
|
3336
3336
|
const A = (b = n.rowEl) == null ? void 0 : b.querySelectorAll("td");
|
|
3337
3337
|
return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
@@ -3342,7 +3342,7 @@ const as = {
|
|
|
3342
3342
|
}, s = () => {
|
|
3343
3343
|
var b, p, A;
|
|
3344
3344
|
c.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
|
|
3345
|
-
}, l = E({}), c = E(0), d = E(0), u = E(""), g =
|
|
3345
|
+
}, l = E({}), c = E(0), d = E(0), u = E(""), g = $(() => [r.value, t.value]), f = Ae(
|
|
3346
3346
|
g,
|
|
3347
3347
|
(b) => {
|
|
3348
3348
|
if (a.value && (i(), "ResizeObserver" in window && window)) {
|
|
@@ -3356,7 +3356,7 @@ const as = {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
},
|
|
3358
3358
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3359
|
-
), I =
|
|
3359
|
+
), I = $(() => a.value ? c.value > d.value : !1);
|
|
3360
3360
|
return vr(() => {
|
|
3361
3361
|
s();
|
|
3362
3362
|
}), br(() => {
|
|
@@ -3496,7 +3496,7 @@ const as = {
|
|
|
3496
3496
|
},
|
|
3497
3497
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3498
3498
|
setup(e, { emit: n }) {
|
|
3499
|
-
const t = e, { i18n: { t: r } } = ce.useI18n(), a =
|
|
3499
|
+
const t = e, { i18n: { t: r } } = ce.useI18n(), a = $(() => {
|
|
3500
3500
|
var h, D;
|
|
3501
3501
|
return typeof t.errorMessage == "string" ? {
|
|
3502
3502
|
hasError: !!t.errorMessage,
|
|
@@ -3507,7 +3507,7 @@ const as = {
|
|
|
3507
3507
|
title: (h = t.errorMessage) == null ? void 0 : h.title,
|
|
3508
3508
|
message: (D = t.errorMessage) == null ? void 0 : D.message
|
|
3509
3509
|
};
|
|
3510
|
-
}), o =
|
|
3510
|
+
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (h) => h.hasData || !!t.query, s = $(() => {
|
|
3511
3511
|
const h = [];
|
|
3512
3512
|
return Object.keys(t.tableHeaders).forEach((D) => {
|
|
3513
3513
|
const se = t.tableHeaders[D];
|
|
@@ -3541,11 +3541,11 @@ const as = {
|
|
|
3541
3541
|
n("empty-state-cta-clicked"), f();
|
|
3542
3542
|
}, f = () => {
|
|
3543
3543
|
n("clear-search-input");
|
|
3544
|
-
}, I =
|
|
3544
|
+
}, I = $(() => t.disableRowClick ? void 0 : (h, D) => {
|
|
3545
3545
|
n("click:row", D);
|
|
3546
3546
|
}), b = (h) => {
|
|
3547
3547
|
n("sort", h);
|
|
3548
|
-
}, { setTablePreferences: p, getTablePreferences: A } = $r(), k =
|
|
3548
|
+
}, { setTablePreferences: p, getTablePreferences: A } = $r(), k = $(() => {
|
|
3549
3549
|
const h = A(t.preferencesStorageKey);
|
|
3550
3550
|
return {
|
|
3551
3551
|
...t.initialFetcherParams,
|
|
@@ -3592,7 +3592,7 @@ const as = {
|
|
|
3592
3592
|
"onRow:click": I.value,
|
|
3593
3593
|
onSort: D[0] || (D[0] = (C) => b(C)),
|
|
3594
3594
|
"onUpdate:tablePreferences": K
|
|
3595
|
-
},
|
|
3595
|
+
}, $e({
|
|
3596
3596
|
toolbar: v(({ state: C }) => [
|
|
3597
3597
|
Je(V("div", Ks, [
|
|
3598
3598
|
Z(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
@@ -3712,7 +3712,7 @@ const as = {
|
|
|
3712
3712
|
},
|
|
3713
3713
|
emits: ["cancel", "proceed"],
|
|
3714
3714
|
setup(e, { emit: n }) {
|
|
3715
|
-
const t = e, { i18nT: r } = ce.useI18n(), a =
|
|
3715
|
+
const t = e, { i18nT: r } = ce.useI18n(), a = $(() => t.needConfirm ? t.entityName : ""), o = () => {
|
|
3716
3716
|
n("cancel");
|
|
3717
3717
|
}, i = () => {
|
|
3718
3718
|
n("proceed");
|
|
@@ -3743,7 +3743,7 @@ const as = {
|
|
|
3743
3743
|
class: "message",
|
|
3744
3744
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3745
3745
|
tag: "p"
|
|
3746
|
-
},
|
|
3746
|
+
}, $e({
|
|
3747
3747
|
entityType: v(() => [
|
|
3748
3748
|
Q(O(t.entityType), 1)
|
|
3749
3749
|
]),
|
|
@@ -3829,12 +3829,12 @@ const as = {
|
|
|
3829
3829
|
},
|
|
3830
3830
|
emits: ["update:modelValue"],
|
|
3831
3831
|
setup(e, { emit: n }) {
|
|
3832
|
-
const t = e, { i18n: { t: r } } = ce.useI18n(), a = E(!1), o = E({}), i =
|
|
3832
|
+
const t = e, { i18n: { t: r } } = ce.useI18n(), a = E(!1), o = E({}), i = $(() => {
|
|
3833
3833
|
const p = [];
|
|
3834
3834
|
return new URLSearchParams(t.modelValue).forEach((A, k) => {
|
|
3835
3835
|
A !== "" && p.push(k);
|
|
3836
3836
|
}), p;
|
|
3837
|
-
}), s =
|
|
3837
|
+
}), s = $(() => {
|
|
3838
3838
|
const p = t.config.fields;
|
|
3839
3839
|
return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
|
|
3840
3840
|
label: p[A].label || A,
|
|
@@ -4017,7 +4017,7 @@ const as = {
|
|
|
4017
4017
|
}
|
|
4018
4018
|
},
|
|
4019
4019
|
setup(e) {
|
|
4020
|
-
const n = e, t = E(void 0), r =
|
|
4020
|
+
const n = e, t = E(void 0), r = $(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
4021
4021
|
return Ae(() => n.authFunction, async () => {
|
|
4022
4022
|
t.value = await n.authFunction();
|
|
4023
4023
|
}, { immediate: !0 }), (a, o) => r.value ? Z(a.$slots, "default", {
|
|
@@ -4061,12 +4061,12 @@ const as = {
|
|
|
4061
4061
|
setup(e) {
|
|
4062
4062
|
const n = lt();
|
|
4063
4063
|
return (t, r) => (m(), M("fieldset", {
|
|
4064
|
-
class:
|
|
4064
|
+
class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4065
4065
|
}, [
|
|
4066
4066
|
V("div", rl, [
|
|
4067
4067
|
e.hideInfoHeader ? H("", !0) : (m(), M("div", {
|
|
4068
4068
|
key: 0,
|
|
4069
|
-
class:
|
|
4069
|
+
class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4070
4070
|
}, [
|
|
4071
4071
|
e.title ? (m(), M("h4", al, O(e.title), 1)) : H("", !0),
|
|
4072
4072
|
e.description || y(n).description ? (m(), M("div", ol, [
|
|
@@ -4117,13 +4117,13 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4117
4117
|
results: u
|
|
4118
4118
|
} = dr(
|
|
4119
4119
|
t.config,
|
|
4120
|
-
|
|
4120
|
+
Me.list[t.config.app].all,
|
|
4121
4121
|
"",
|
|
4122
4122
|
{
|
|
4123
4123
|
fetchedItemsKey: "data",
|
|
4124
4124
|
searchKeys: ["name", "id"]
|
|
4125
4125
|
}
|
|
4126
|
-
), g =
|
|
4126
|
+
), g = $(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = $(() => l.value === void 0), b = $(() => u.value.map((C) => ({
|
|
4127
4127
|
label: C.name,
|
|
4128
4128
|
value: C.id,
|
|
4129
4129
|
selected: o.value.includes(C.id),
|
|
@@ -4152,9 +4152,9 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4152
4152
|
} finally {
|
|
4153
4153
|
K.value = !1;
|
|
4154
4154
|
}
|
|
4155
|
-
}, se =
|
|
4155
|
+
}, se = $(() => {
|
|
4156
4156
|
var S, x, q, J;
|
|
4157
|
-
let C = `${t.config.apiBaseUrl}${
|
|
4157
|
+
let C = `${t.config.apiBaseUrl}${Me.list[t.config.app].forConsumer}`;
|
|
4158
4158
|
return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{consumerId}/gi, ((x = t.config) == null ? void 0 : x.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (q = t.config) != null && q.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
|
|
4159
4159
|
}), Y = async (C) => {
|
|
4160
4160
|
const S = {
|
|
@@ -4279,80 +4279,80 @@ const Ft = (e, n) => {
|
|
|
4279
4279
|
var Bt;
|
|
4280
4280
|
const t = e, { i18nT: r, i18n: { t: a } } = ct.useI18n(), o = wt(), { axiosInstance: i } = Kt({
|
|
4281
4281
|
headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
|
|
4282
|
-
}), s = E(1), l =
|
|
4282
|
+
}), s = E(1), l = $(() => !!t.config.consumerId), c = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4283
4283
|
name: { label: a("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4284
4284
|
};
|
|
4285
4285
|
t.config.app === "kongManager" && (d.consumers_count = { label: a("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: a("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4286
|
-
const u = d, g = (
|
|
4287
|
-
"data-testid":
|
|
4288
|
-
}), f =
|
|
4286
|
+
const u = d, g = (T) => ({
|
|
4287
|
+
"data-testid": T.username ?? T.custom_id ?? T.id
|
|
4288
|
+
}), f = $(() => {
|
|
4289
4289
|
var z, re, ye, we;
|
|
4290
|
-
let
|
|
4291
|
-
return t.config.app === "konnect" ?
|
|
4292
|
-
}), I = E(""), b =
|
|
4293
|
-
const
|
|
4294
|
-
return
|
|
4295
|
-
isExactMatch:
|
|
4290
|
+
let T = `${t.config.apiBaseUrl}${Me.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4291
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = t.config) == null ? void 0 : re.consumerId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ye = t.config) != null && ye.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((we = t.config) == null ? void 0 : we.consumerId) || "")), T;
|
|
4292
|
+
}), I = E(""), b = $(() => {
|
|
4293
|
+
const T = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4294
|
+
return T ? {
|
|
4295
|
+
isExactMatch: T,
|
|
4296
4296
|
fields: {
|
|
4297
4297
|
username: d.name,
|
|
4298
4298
|
id: { label: a("consumer_groups.list.table_headers.id") }
|
|
4299
4299
|
},
|
|
4300
4300
|
placeholder: a("consumer_groups.search.placeholder")
|
|
4301
4301
|
} : {
|
|
4302
|
-
isExactMatch:
|
|
4302
|
+
isExactMatch: T,
|
|
4303
4303
|
fields: {
|
|
4304
4304
|
name: d.name
|
|
4305
4305
|
},
|
|
4306
4306
|
schema: t.config.filterSchema
|
|
4307
4307
|
};
|
|
4308
|
-
}), p =
|
|
4308
|
+
}), p = $(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: k } = dl(t.config, f.value, p.value), K = () => {
|
|
4309
4309
|
I.value = "";
|
|
4310
4310
|
}, h = () => {
|
|
4311
4311
|
s.value++;
|
|
4312
|
-
}, D = E(null), se = (
|
|
4313
|
-
const re =
|
|
4312
|
+
}, D = E(null), se = (T, z) => {
|
|
4313
|
+
const re = T.id;
|
|
4314
4314
|
if (!z(re)) {
|
|
4315
4315
|
n("copy:error", {
|
|
4316
|
-
entity:
|
|
4316
|
+
entity: T,
|
|
4317
4317
|
field: "id",
|
|
4318
4318
|
message: a("consumer_groups.errors.copy")
|
|
4319
4319
|
});
|
|
4320
4320
|
return;
|
|
4321
4321
|
}
|
|
4322
4322
|
n("copy:success", {
|
|
4323
|
-
entity:
|
|
4323
|
+
entity: T,
|
|
4324
4324
|
field: "id",
|
|
4325
4325
|
message: a("consumer_groups.copy.success", { val: re })
|
|
4326
4326
|
});
|
|
4327
|
-
}, Y = (
|
|
4328
|
-
const re = JSON.stringify(
|
|
4327
|
+
}, Y = (T, z) => {
|
|
4328
|
+
const re = JSON.stringify(T);
|
|
4329
4329
|
if (!z(re)) {
|
|
4330
4330
|
n("copy:error", {
|
|
4331
|
-
entity:
|
|
4331
|
+
entity: T,
|
|
4332
4332
|
message: a("consumer_groups.errors.copy")
|
|
4333
4333
|
});
|
|
4334
4334
|
return;
|
|
4335
4335
|
}
|
|
4336
4336
|
n("copy:success", {
|
|
4337
|
-
entity:
|
|
4337
|
+
entity: T,
|
|
4338
4338
|
message: a("consumer_groups.copy.success_brief")
|
|
4339
4339
|
});
|
|
4340
|
-
}, w = async (
|
|
4340
|
+
}, w = async (T) => {
|
|
4341
4341
|
var re;
|
|
4342
|
-
await ((re = t.canRetrieve) == null ? void 0 : re.call(t,
|
|
4343
|
-
}, N = (
|
|
4342
|
+
await ((re = t.canRetrieve) == null ? void 0 : re.call(t, T)) && o.push(t.config.getViewRoute(T.id));
|
|
4343
|
+
}, N = (T) => ({
|
|
4344
4344
|
label: a("consumer_groups.actions.view"),
|
|
4345
|
-
to: t.config.getViewRoute(
|
|
4346
|
-
}), R = (
|
|
4345
|
+
to: t.config.getViewRoute(T)
|
|
4346
|
+
}), R = (T) => ({
|
|
4347
4347
|
label: a("consumer_groups.actions.edit"),
|
|
4348
|
-
to: t.config.getEditRoute(
|
|
4349
|
-
}), C = E(void 0), S = E(!1), x = E(!1), q = E(""), J = ul(t.config, f.value), X = (
|
|
4350
|
-
C.value =
|
|
4348
|
+
to: t.config.getEditRoute(T)
|
|
4349
|
+
}), C = E(void 0), S = E(!1), x = E(!1), q = E(""), J = ul(t.config, f.value), X = (T) => {
|
|
4350
|
+
C.value = T, S.value = !0;
|
|
4351
4351
|
}, ee = () => {
|
|
4352
4352
|
S.value = !1;
|
|
4353
4353
|
}, te = async () => {
|
|
4354
|
-
var
|
|
4355
|
-
if ((
|
|
4354
|
+
var T, z, re;
|
|
4355
|
+
if ((T = C.value) != null && T.id) {
|
|
4356
4356
|
x.value = !0;
|
|
4357
4357
|
try {
|
|
4358
4358
|
await i.delete(J(C.value.id)), x.value = !1, S.value = !1, s.value++, n("delete:success", C.value);
|
|
@@ -4362,41 +4362,41 @@ const Ft = (e, n) => {
|
|
|
4362
4362
|
x.value = !1;
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
|
-
}, le = E(!1),
|
|
4365
|
+
}, le = E(!1), De = () => {
|
|
4366
4366
|
le.value = !0;
|
|
4367
4367
|
}, _ = () => {
|
|
4368
4368
|
le.value = !1;
|
|
4369
|
-
}, B = (
|
|
4370
|
-
z || _(), s.value++, n("add:success",
|
|
4369
|
+
}, B = (T, z) => {
|
|
4370
|
+
z || _(), s.value++, n("add:success", T);
|
|
4371
4371
|
}, oe = () => {
|
|
4372
|
-
l.value &&
|
|
4373
|
-
}, P = E(void 0), G = E(!1), ge = E(""), _e = (
|
|
4374
|
-
P.value =
|
|
4372
|
+
l.value && De();
|
|
4373
|
+
}, P = E(void 0), G = E(!1), ge = E(""), _e = (T) => {
|
|
4374
|
+
P.value = T, G.value = !0;
|
|
4375
4375
|
}, de = () => {
|
|
4376
4376
|
G.value = !1, P.value = void 0;
|
|
4377
|
-
},
|
|
4377
|
+
}, Ne = $(() => {
|
|
4378
4378
|
var z, re, ye, we;
|
|
4379
|
-
let
|
|
4380
|
-
return t.config.app === "konnect" ?
|
|
4381
|
-
}),
|
|
4379
|
+
let T = `${t.config.apiBaseUrl}${Me.list[t.config.app].oneForConsumer}`;
|
|
4380
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = t.config) == null ? void 0 : re.consumerId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ye = t.config) != null && ye.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((we = t.config) == null ? void 0 : we.consumerId) || "")), T;
|
|
4381
|
+
}), Ge = E(!1), pr = async () => {
|
|
4382
4382
|
if (P.value) {
|
|
4383
|
-
|
|
4383
|
+
Ge.value = !0;
|
|
4384
4384
|
try {
|
|
4385
|
-
const
|
|
4386
|
-
await i.delete(
|
|
4387
|
-
} catch (
|
|
4388
|
-
ge.value =
|
|
4385
|
+
const T = Ne.value.replace(/{consumerGroupId}/gi, P.value.id);
|
|
4386
|
+
await i.delete(T), n("remove:success", P.value), de(), s.value++;
|
|
4387
|
+
} catch (T) {
|
|
4388
|
+
ge.value = T.message || a("consumer_groups.errors.delete"), n("error", T);
|
|
4389
4389
|
} finally {
|
|
4390
|
-
|
|
4390
|
+
Ge.value = !1;
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
4393
|
}, Nt = E(!0);
|
|
4394
|
-
Ae(k, (
|
|
4395
|
-
var z, re, ye, we
|
|
4396
|
-
if (((
|
|
4394
|
+
Ae(k, (T) => {
|
|
4395
|
+
var z, re, ye, we;
|
|
4396
|
+
if (Array.isArray((z = T == null ? void 0 : T.response) == null ? void 0 : z.data) && (Nt.value = T.response.data.length > 0), T.status === Oe.Error) {
|
|
4397
4397
|
D.value = {
|
|
4398
4398
|
title: a("consumer_groups.errors.general")
|
|
4399
|
-
}, (
|
|
4399
|
+
}, (we = (ye = (re = T.error) == null ? void 0 : re.response) == null ? void 0 : ye.data) != null && we.message && (D.value.message = T.error.response.data.message), n("error", T.error);
|
|
4400
4400
|
return;
|
|
4401
4401
|
}
|
|
4402
4402
|
D.value = null;
|
|
@@ -4409,8 +4409,8 @@ const Ft = (e, n) => {
|
|
|
4409
4409
|
});
|
|
4410
4410
|
return ut(async () => {
|
|
4411
4411
|
await t.canCreate() && (pt.value.title = l.value ? a("consumer_groups.list.empty_state.title_for_consumer") : a("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? a("consumer_groups.actions.add_to_group") : a("consumer_groups.actions.create"));
|
|
4412
|
-
}), (
|
|
4413
|
-
const re = L("KButton"), ye = L("KBadge"), we = L("KTruncate"),
|
|
4412
|
+
}), (T, z) => {
|
|
4413
|
+
const re = L("KButton"), ye = L("KBadge"), we = L("KTruncate"), He = L("KDropdownItem"), qt = L("KClipboardProvider"), fr = L("KPrompt");
|
|
4414
4414
|
return m(), M("div", vl, [
|
|
4415
4415
|
F(y(qs), {
|
|
4416
4416
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4455,7 +4455,7 @@ const Ft = (e, n) => {
|
|
|
4455
4455
|
"data-testid": "toolbar-add-consumer-group",
|
|
4456
4456
|
icon: "plus",
|
|
4457
4457
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4458
|
-
onClick: z[1] || (z[1] = () => e.config.consumerId ?
|
|
4458
|
+
onClick: z[1] || (z[1] = () => e.config.consumerId ? De() : void 0)
|
|
4459
4459
|
}, {
|
|
4460
4460
|
default: v(() => [
|
|
4461
4461
|
Q(O(e.config.consumerId ? y(a)("consumer_groups.actions.add_to_group") : y(a)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
@@ -4478,13 +4478,13 @@ const Ft = (e, n) => {
|
|
|
4478
4478
|
tags: v(({ rowValue: W }) => [
|
|
4479
4479
|
(W == null ? void 0 : W.length) > 0 ? (m(), U(we, { key: 0 }, {
|
|
4480
4480
|
default: v(() => [
|
|
4481
|
-
(m(!0), M(be, null, he(W, (
|
|
4482
|
-
key:
|
|
4481
|
+
(m(!0), M(be, null, he(W, (Be) => (m(), U(ye, {
|
|
4482
|
+
key: Be,
|
|
4483
4483
|
onClick: z[2] || (z[2] = nt(() => {
|
|
4484
4484
|
}, ["stop"]))
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: v(() => [
|
|
4487
|
-
Q(O(
|
|
4487
|
+
Q(O(Be), 1)
|
|
4488
4488
|
]),
|
|
4489
4489
|
_: 2
|
|
4490
4490
|
}, 1024))), 128))
|
|
@@ -4494,10 +4494,10 @@ const Ft = (e, n) => {
|
|
|
4494
4494
|
]),
|
|
4495
4495
|
actions: v(({ row: W }) => [
|
|
4496
4496
|
F(qt, null, {
|
|
4497
|
-
default: v(({ copyToClipboard:
|
|
4498
|
-
F(
|
|
4497
|
+
default: v(({ copyToClipboard: Be }) => [
|
|
4498
|
+
F(He, {
|
|
4499
4499
|
"data-testid": "action-entity-copy-id",
|
|
4500
|
-
onClick: (mr) => se(W,
|
|
4500
|
+
onClick: (mr) => se(W, Be)
|
|
4501
4501
|
}, {
|
|
4502
4502
|
default: v(() => [
|
|
4503
4503
|
Q(O(y(a)("consumer_groups.actions.copy_id")), 1)
|
|
@@ -4508,10 +4508,10 @@ const Ft = (e, n) => {
|
|
|
4508
4508
|
_: 2
|
|
4509
4509
|
}, 1024),
|
|
4510
4510
|
F(qt, null, {
|
|
4511
|
-
default: v(({ copyToClipboard:
|
|
4512
|
-
F(
|
|
4511
|
+
default: v(({ copyToClipboard: Be }) => [
|
|
4512
|
+
F(He, {
|
|
4513
4513
|
"data-testid": "action-entity-copy-json",
|
|
4514
|
-
onClick: (mr) => Y(W,
|
|
4514
|
+
onClick: (mr) => Y(W, Be)
|
|
4515
4515
|
}, {
|
|
4516
4516
|
default: v(() => [
|
|
4517
4517
|
Q(O(y(a)("consumer_groups.actions.copy_json")), 1)
|
|
@@ -4525,7 +4525,7 @@ const Ft = (e, n) => {
|
|
|
4525
4525
|
"auth-function": () => e.canRetrieve(W)
|
|
4526
4526
|
}, {
|
|
4527
4527
|
default: v(() => [
|
|
4528
|
-
F(
|
|
4528
|
+
F(He, {
|
|
4529
4529
|
"data-testid": "action-entity-view",
|
|
4530
4530
|
"has-divider": "",
|
|
4531
4531
|
item: N(W.id)
|
|
@@ -4537,7 +4537,7 @@ const Ft = (e, n) => {
|
|
|
4537
4537
|
"auth-function": () => e.canEdit(W)
|
|
4538
4538
|
}, {
|
|
4539
4539
|
default: v(() => [
|
|
4540
|
-
F(
|
|
4540
|
+
F(He, {
|
|
4541
4541
|
"data-testid": "action-entity-edit",
|
|
4542
4542
|
item: R(W.id)
|
|
4543
4543
|
}, null, 8, ["item"])
|
|
@@ -4548,7 +4548,7 @@ const Ft = (e, n) => {
|
|
|
4548
4548
|
"auth-function": () => e.canDelete(W)
|
|
4549
4549
|
}, {
|
|
4550
4550
|
default: v(() => [
|
|
4551
|
-
F(
|
|
4551
|
+
F(He, {
|
|
4552
4552
|
danger: "",
|
|
4553
4553
|
"data-testid": "action-entity-delete",
|
|
4554
4554
|
"has-divider": "",
|
|
@@ -4600,7 +4600,7 @@ const Ft = (e, n) => {
|
|
|
4600
4600
|
class: "exit-modal-message",
|
|
4601
4601
|
keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
|
|
4602
4602
|
tag: "p"
|
|
4603
|
-
},
|
|
4603
|
+
}, $e({
|
|
4604
4604
|
consumerGroup: v(() => [
|
|
4605
4605
|
V("strong", null, O(P.value.name || P.value.id), 1)
|
|
4606
4606
|
]),
|
|
@@ -4622,7 +4622,7 @@ const Ft = (e, n) => {
|
|
|
4622
4622
|
};
|
|
4623
4623
|
}
|
|
4624
4624
|
});
|
|
4625
|
-
const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-
|
|
4625
|
+
const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { class: "kong-ui-entities-consumer-group-form" }, _l = { class: "select-item-label" }, wl = {
|
|
4626
4626
|
key: 0,
|
|
4627
4627
|
class: "select-item-desc"
|
|
4628
4628
|
}, Il = /* @__PURE__ */ ae({
|
|
@@ -4643,7 +4643,7 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-d88fbfa2"]]), kl = { cl
|
|
|
4643
4643
|
},
|
|
4644
4644
|
emits: ["update", "error", "loading"],
|
|
4645
4645
|
setup(e, { emit: n }) {
|
|
4646
|
-
var te, le,
|
|
4646
|
+
var te, le, De;
|
|
4647
4647
|
const t = e, { i18n: { t: r } } = ct.useI18n(), a = wt(), o = Lt({
|
|
4648
4648
|
fields: {
|
|
4649
4649
|
name: "",
|
|
@@ -4662,24 +4662,24 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-d88fbfa2"]]), kl = { cl
|
|
|
4662
4662
|
error: c,
|
|
4663
4663
|
loadItems: d,
|
|
4664
4664
|
results: u
|
|
4665
|
-
} = dr(t.config, (le =
|
|
4665
|
+
} = dr(t.config, (le = Me.form[(te = t.config) == null ? void 0 : te.app]) == null ? void 0 : le.consumersList, "", {
|
|
4666
4666
|
fetchedItemsKey: "data",
|
|
4667
4667
|
searchKeys: ["username", "custom_id", "id"]
|
|
4668
4668
|
}), { axiosInstance: g } = Kt({
|
|
4669
|
-
headers: (
|
|
4670
|
-
}), { getMessageFromError: f } = cl(), I =
|
|
4669
|
+
headers: (De = t.config) == null ? void 0 : De.requestHeaders
|
|
4670
|
+
}), { getMessageFromError: f } = cl(), I = $(() => u.value.map((_) => ({
|
|
4671
4671
|
label: _.username || _.custom_id,
|
|
4672
4672
|
value: _.id,
|
|
4673
4673
|
selected: o.fields.consumers.includes(_.id),
|
|
4674
4674
|
data: _
|
|
4675
4675
|
// we need this to determine whether or not to show the description text
|
|
4676
|
-
}))), b =
|
|
4676
|
+
}))), b = $(() => {
|
|
4677
4677
|
var _, B;
|
|
4678
|
-
return (B =
|
|
4679
|
-
}), p =
|
|
4680
|
-
var G, ge, _e, de,
|
|
4681
|
-
let P = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${
|
|
4682
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((de = t.config) == null ? void 0 : de.controlPlaneId) || "") : ((
|
|
4678
|
+
return (B = Me.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : B.edit;
|
|
4679
|
+
}), p = $(() => t.consumerGroupId ? tt.Edit : tt.Create), A = $(() => !!o.fields.name && !w.value), k = $(() => JSON.stringify(o.fields) !== JSON.stringify(i)), K = (_, B = "", oe = "") => {
|
|
4680
|
+
var G, ge, _e, de, Ne, Ge;
|
|
4681
|
+
let P = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${Me.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
|
|
4682
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((de = t.config) == null ? void 0 : de.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (Ge = t.config) != null && Ge.workspace ? `/${t.config.workspace}` : "")), P = P.replace(/{id}/gi, B || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (P = P.replace(/{consumerId}/gi, oe)), P;
|
|
4683
4683
|
}, h = () => {
|
|
4684
4684
|
var _;
|
|
4685
4685
|
a.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
|
|
@@ -4696,12 +4696,12 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-d88fbfa2"]]), kl = { cl
|
|
|
4696
4696
|
else
|
|
4697
4697
|
try {
|
|
4698
4698
|
const { data: de } = await g.get(K("getConsumers"));
|
|
4699
|
-
o.fields.consumers = "consumers" in de ? (_e = de == null ? void 0 : de.consumers) == null ? void 0 : _e.map((
|
|
4699
|
+
o.fields.consumers = "consumers" in de ? (_e = de == null ? void 0 : de.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
|
|
4700
4700
|
} catch (de) {
|
|
4701
4701
|
S(de);
|
|
4702
4702
|
}
|
|
4703
4703
|
Object.assign(i, o.fields);
|
|
4704
|
-
}, w =
|
|
4704
|
+
}, w = $(() => /^[0-9a-zA-Z.\-_~]*$/.test(o.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
|
|
4705
4705
|
var _, B;
|
|
4706
4706
|
return {
|
|
4707
4707
|
name: o.fields.name,
|
|
@@ -4885,7 +4885,7 @@ const ql = /* @__PURE__ */ Ft(Il, [["__scopeId", "data-v-102d40d2"]]), Al = { cl
|
|
|
4885
4885
|
},
|
|
4886
4886
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4887
4887
|
setup(e) {
|
|
4888
|
-
const n = e, { i18n: { t } } = ct.useI18n(), r =
|
|
4888
|
+
const n = e, { i18n: { t } } = ct.useI18n(), r = $(() => Me.form[n.config.app].edit), a = E({
|
|
4889
4889
|
id: {},
|
|
4890
4890
|
name: {},
|
|
4891
4891
|
created_at: {},
|