@kong-ui-public/entities-consumer-groups 2.1.8-pr.985.da712cf1.0 → 2.1.8
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 +413 -416
- package/dist/entities-consumer-groups.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
2
|
-
import { useRouter 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 kr, pushScopeId as mn, popScopeId as gn, Teleport as Cr, reactive as Lt } from "vue";
|
|
2
|
+
import { useRouter as _t } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as yn } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import wr from "axios";
|
|
5
|
+
import { MethodsArray as _r } from "@kong/kongponents";
|
|
6
6
|
const Ir = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
@@ -98,7 +98,7 @@ const Ir = {
|
|
|
98
98
|
}, Ar = {
|
|
99
99
|
consumer_groups: Ir
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function xr() {
|
|
102
102
|
const e = It("en-us", Ar);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
@@ -107,50 +107,50 @@ function Sr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
111
|
-
},
|
|
110
|
+
useI18n: xr
|
|
111
|
+
}, xe = "/api/runtime_groups/{controlPlaneId}", Se = "/{workspace}", Me = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
114
|
-
all: `${
|
|
115
|
-
forConsumer: `${Se}/consumers/{consumerId}/consumer_groups`,
|
|
116
|
-
oneForConsumer: `${Se}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
117
|
-
},
|
|
118
|
-
kongManager: {
|
|
119
|
-
all: `${xe}/consumer_groups?counter=true`,
|
|
114
|
+
all: `${xe}/consumer_groups`,
|
|
120
115
|
forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
|
|
121
116
|
oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
117
|
+
},
|
|
118
|
+
kongManager: {
|
|
119
|
+
all: `${Se}/consumer_groups?counter=true`,
|
|
120
|
+
forConsumer: `${Se}/consumers/{consumerId}/consumer_groups`,
|
|
121
|
+
oneForConsumer: `${Se}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
form: {
|
|
125
125
|
konnect: {
|
|
126
|
-
consumersList: `${Se}/consumers`,
|
|
127
|
-
create: `${Se}/consumer_groups`,
|
|
128
|
-
edit: `${Se}/consumer_groups/{id}`,
|
|
129
|
-
addConsumer: `${Se}/consumer_groups/{id}/consumers`,
|
|
130
|
-
removeConsumer: `${Se}/consumer_groups/{id}/consumers/{consumerId}`,
|
|
131
|
-
getConsumers: `${Se}/consumer_groups/{id}/consumers`
|
|
132
|
-
},
|
|
133
|
-
kongManager: {
|
|
134
126
|
consumersList: `${xe}/consumers`,
|
|
135
127
|
create: `${xe}/consumer_groups`,
|
|
136
128
|
edit: `${xe}/consumer_groups/{id}`,
|
|
137
129
|
addConsumer: `${xe}/consumer_groups/{id}/consumers`,
|
|
138
130
|
removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
|
|
139
131
|
getConsumers: `${xe}/consumer_groups/{id}/consumers`
|
|
132
|
+
},
|
|
133
|
+
kongManager: {
|
|
134
|
+
consumersList: `${Se}/consumers`,
|
|
135
|
+
create: `${Se}/consumer_groups`,
|
|
136
|
+
edit: `${Se}/consumer_groups/{id}`,
|
|
137
|
+
addConsumer: `${Se}/consumer_groups/{id}/consumers`,
|
|
138
|
+
removeConsumer: `${Se}/consumer_groups/{id}/consumers/{consumerId}`,
|
|
139
|
+
getConsumers: `${Se}/consumer_groups/{id}/consumers`
|
|
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 || {}), 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 || {}),
|
|
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 || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ke || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
|
-
axiosInstance:
|
|
146
|
+
axiosInstance: wr.create({
|
|
147
147
|
withCredentials: !0,
|
|
148
148
|
timeout: 3e4,
|
|
149
149
|
...e
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Sr() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -296,7 +296,7 @@ const Mr = {
|
|
|
296
296
|
errors: Br,
|
|
297
297
|
toggleModal: qr
|
|
298
298
|
};
|
|
299
|
-
function
|
|
299
|
+
function xt() {
|
|
300
300
|
const e = It("en-us", Lr);
|
|
301
301
|
return {
|
|
302
302
|
i18n: e,
|
|
@@ -355,47 +355,47 @@ function Pr(e, n, t, r = {
|
|
|
355
355
|
t || (t = "100");
|
|
356
356
|
const { axiosInstance: a } = At({
|
|
357
357
|
headers: e.requestHeaders
|
|
358
|
-
}), { i18n: { t: o } } =
|
|
359
|
-
await K(
|
|
358
|
+
}), { i18n: { t: o } } = xt(), { debounce: i } = Sr(), s = i(async (h) => {
|
|
359
|
+
await K(h);
|
|
360
360
|
}, 200), l = E(!1), c = E(""), d = E(""), u = E([]), g = E([]), f = E(void 0), I = y(n);
|
|
361
361
|
let b = `${e.apiBaseUrl}${I}`;
|
|
362
362
|
e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
363
363
|
const { isValidUuid: p } = vn(), A = async () => {
|
|
364
364
|
try {
|
|
365
365
|
l.value = !0;
|
|
366
|
-
const { data:
|
|
367
|
-
|
|
366
|
+
const { data: h } = await a.get(`${b}?size=${t}`);
|
|
367
|
+
h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], u.value = g.value;
|
|
368
368
|
} catch {
|
|
369
369
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
370
370
|
} finally {
|
|
371
371
|
l.value = !1;
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, C = E(""), K = async (h) => {
|
|
374
374
|
var D, se, Y;
|
|
375
|
-
if (
|
|
376
|
-
if (
|
|
375
|
+
if (C.value !== h)
|
|
376
|
+
if (C.value = h || "", f.value === void 0)
|
|
377
377
|
try {
|
|
378
378
|
if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
379
379
|
let _ = b + "";
|
|
380
|
-
|
|
380
|
+
h && (_ += `/${h}`);
|
|
381
381
|
const { data: N } = await a.get(`${_}?size=${t}`);
|
|
382
382
|
r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
|
|
383
|
-
} else if (
|
|
383
|
+
} else if (h) {
|
|
384
384
|
const _ = [];
|
|
385
|
-
p(
|
|
386
|
-
const { data:
|
|
387
|
-
return [
|
|
385
|
+
p(h) && r.searchKeys.includes("id") ? _.push((async () => {
|
|
386
|
+
const { data: k } = await a.get(`${b}/${h}`);
|
|
387
|
+
return [k[r.fetchedItemsKey] ?? k];
|
|
388
388
|
})()) : _.push(
|
|
389
|
-
...r.searchKeys.filter((
|
|
390
|
-
const { data:
|
|
391
|
-
return
|
|
389
|
+
...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
|
|
390
|
+
const { data: x } = await a.get(`${b}?${k}=${h}`);
|
|
391
|
+
return x[r.fetchedItemsKey];
|
|
392
392
|
})
|
|
393
393
|
);
|
|
394
394
|
const N = await Promise.all(_), R = /* @__PURE__ */ new Set();
|
|
395
|
-
u.value = [], (D = N == null ? void 0 : N.forEach) == null || D.call(N, (
|
|
396
|
-
var
|
|
397
|
-
(
|
|
398
|
-
R.has(
|
|
395
|
+
u.value = [], (D = N == null ? void 0 : N.forEach) == null || D.call(N, (k) => {
|
|
396
|
+
var x;
|
|
397
|
+
(x = k == null ? void 0 : k.forEach) == null || x.call(k, (S) => {
|
|
398
|
+
R.has(S.id) || (R.add(S.id), u.value.push(S));
|
|
399
399
|
});
|
|
400
400
|
});
|
|
401
401
|
} else
|
|
@@ -406,12 +406,12 @@ function Pr(e, n, t, r = {
|
|
|
406
406
|
l.value = !1;
|
|
407
407
|
}
|
|
408
408
|
else
|
|
409
|
-
l.value = !0, d.value = "",
|
|
409
|
+
l.value = !0, d.value = "", h ? (u.value = (Y = f.value) == null ? void 0 : Y.filter((_) => {
|
|
410
410
|
var N;
|
|
411
411
|
let R = !1;
|
|
412
|
-
for (const
|
|
413
|
-
const
|
|
414
|
-
|
|
412
|
+
for (const k of r.searchKeys) {
|
|
413
|
+
const x = typeof _[k] == "string" ? (N = _[k]) == null ? void 0 : N.toLowerCase() : _[k];
|
|
414
|
+
x != null && x.includes(h.toLowerCase()) && (R = !0);
|
|
415
415
|
}
|
|
416
416
|
return R;
|
|
417
417
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
|
|
@@ -433,7 +433,7 @@ function Vr(e, n) {
|
|
|
433
433
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
434
434
|
}
|
|
435
435
|
function Ur() {
|
|
436
|
-
const { i18n: { t: e } } =
|
|
436
|
+
const { i18n: { t: e } } = xt();
|
|
437
437
|
return {
|
|
438
438
|
getMessageFromError: (n) => {
|
|
439
439
|
var t, r, a;
|
|
@@ -538,10 +538,10 @@ function Gr() {
|
|
|
538
538
|
convertKeyToTitle: e
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const kn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Pt = (e) => {
|
|
542
542
|
if (typeof e != "string")
|
|
543
543
|
throw new TypeError("Invalid argument expected string");
|
|
544
|
-
const n = e.match(
|
|
544
|
+
const n = e.match(kn);
|
|
545
545
|
if (!n)
|
|
546
546
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
547
547
|
return n.shift(), n;
|
|
@@ -566,20 +566,20 @@ const Cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
566
566
|
}, Dt = (e, n, t) => {
|
|
567
567
|
Yr(t);
|
|
568
568
|
const r = Jr(e, n);
|
|
569
|
-
return
|
|
570
|
-
},
|
|
569
|
+
return Cn[t].includes(r);
|
|
570
|
+
}, Cn = {
|
|
571
571
|
">": [1],
|
|
572
572
|
">=": [0, 1],
|
|
573
573
|
"=": [0],
|
|
574
574
|
"<=": [-1, 0],
|
|
575
575
|
"<": [-1],
|
|
576
576
|
"!=": [-1, 1]
|
|
577
|
-
}, Gt = Object.keys(
|
|
577
|
+
}, Gt = Object.keys(Cn), Yr = (e) => {
|
|
578
578
|
if (typeof e != "string")
|
|
579
579
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
580
580
|
if (Gt.indexOf(e) === -1)
|
|
581
581
|
throw new Error(`Invalid operator, expected one of ${Gt.join("|")}`);
|
|
582
|
-
}, Wr = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
582
|
+
}, Wr = (e) => typeof e == "string" && /^[v\d]/.test(e) && kn.test(e);
|
|
583
583
|
function Zr(e) {
|
|
584
584
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
585
585
|
if (!n)
|
|
@@ -611,7 +611,7 @@ const ce = {
|
|
|
611
611
|
useFetchUrlBuilder: bn,
|
|
612
612
|
useHelpers: vn,
|
|
613
613
|
useStringHelpers: Gr,
|
|
614
|
-
useI18n:
|
|
614
|
+
useI18n: xt,
|
|
615
615
|
useGatewayFeatureSupported: Zr,
|
|
616
616
|
useTruncationDetector: Qr
|
|
617
617
|
}, Xr = {
|
|
@@ -628,7 +628,7 @@ const ce = {
|
|
|
628
628
|
for (const [r, a] of n)
|
|
629
629
|
t[r] = a;
|
|
630
630
|
return t;
|
|
631
|
-
}, aa = (e) => (mn("data-v-
|
|
631
|
+
}, aa = (e) => (mn("data-v-641e0aee"), e = e(), gn(), e), oa = ["aria-hidden"], ia = {
|
|
632
632
|
key: 0,
|
|
633
633
|
"data-testid": "kui-icon-svg-title"
|
|
634
634
|
}, sa = /* @__PURE__ */ aa(() => /* @__PURE__ */ V("path", {
|
|
@@ -727,7 +727,7 @@ const ce = {
|
|
|
727
727
|
_: 1
|
|
728
728
|
}, 8, ["aria-hidden", "style"]));
|
|
729
729
|
}
|
|
730
|
-
}), ua = /* @__PURE__ */ ra(la, [["__scopeId", "data-v-
|
|
730
|
+
}), ua = /* @__PURE__ */ ra(la, [["__scopeId", "data-v-641e0aee"]]), ca = "16px", da = { class: "kong-ui-copy-uuid" }, pa = ["onClick"], zt = 15, fa = /* @__PURE__ */ ae({
|
|
731
731
|
__name: "CopyUuid",
|
|
732
732
|
props: {
|
|
733
733
|
uuid: {
|
|
@@ -771,7 +771,7 @@ const ce = {
|
|
|
771
771
|
},
|
|
772
772
|
emits: ["success", "error"],
|
|
773
773
|
setup(e, { emit: n }) {
|
|
774
|
-
const t = e, { t: r } = It("en-us", ta), a = t.notify ||
|
|
774
|
+
const t = e, { t: r } = It("en-us", ta), a = t.notify || kr(na, () => {
|
|
775
775
|
}), o = $(() => t.idTooltip ? {
|
|
776
776
|
label: t.idTooltip,
|
|
777
777
|
positionFixed: !0,
|
|
@@ -852,7 +852,7 @@ const ce = {
|
|
|
852
852
|
for (const [r, a] of n)
|
|
853
853
|
t[r] = a;
|
|
854
854
|
return t;
|
|
855
|
-
},
|
|
855
|
+
}, wn = /* @__PURE__ */ ma(fa, [["__scopeId", "data-v-0c07874b"]]), ga = {
|
|
856
856
|
key: 0,
|
|
857
857
|
class: "config-card-fieldset-title"
|
|
858
858
|
}, ya = /* @__PURE__ */ ae({
|
|
@@ -886,7 +886,7 @@ const ce = {
|
|
|
886
886
|
e.isArrayItem ? (m(), M("legend", ga, [
|
|
887
887
|
V("b", null, O(s.value), 1)
|
|
888
888
|
])) : H("", !0),
|
|
889
|
-
(m(!0), M(be, null, he(Object.keys(i.value), (d, u) => (m(), U(
|
|
889
|
+
(m(!0), M(be, null, he(Object.keys(i.value), (d, u) => (m(), U(St, {
|
|
890
890
|
key: `${a.value}-property-${u}`,
|
|
891
891
|
item: {
|
|
892
892
|
key: d,
|
|
@@ -898,12 +898,12 @@ const ce = {
|
|
|
898
898
|
_: 1
|
|
899
899
|
}, 8, ["class"]));
|
|
900
900
|
}
|
|
901
|
-
}),
|
|
901
|
+
}), Ce = (e, n) => {
|
|
902
902
|
const t = e.__vccOpts || e;
|
|
903
903
|
for (const [r, a] of n)
|
|
904
904
|
t[r] = a;
|
|
905
905
|
return t;
|
|
906
|
-
},
|
|
906
|
+
}, _n = /* @__PURE__ */ Ce(ya, [["__scopeId", "data-v-68ca83ec"]]), ha = /* @__PURE__ */ ae({
|
|
907
907
|
__name: "InternalLinkItem",
|
|
908
908
|
props: {
|
|
909
909
|
item: {
|
|
@@ -930,7 +930,7 @@ const ce = {
|
|
|
930
930
|
]);
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
|
-
}), va = /* @__PURE__ */
|
|
933
|
+
}), va = /* @__PURE__ */ Ce(ha, [["__scopeId", "data-v-c96811e5"]]), ba = /* @__PURE__ */ ae({
|
|
934
934
|
__name: "StatusBadge",
|
|
935
935
|
props: {
|
|
936
936
|
status: {
|
|
@@ -952,9 +952,9 @@ const ce = {
|
|
|
952
952
|
}, 8, ["appearance"]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), ka = "#0044f4", Ca = "#e0e4ea", wa = "#3a3f51", _a = "1px", Ia = "20px", Aa = { class: "config-card-details-row" }, xa = ["data-testid"], Sa = ["data-testid"], Ta = ["data-testid"], $a = ["data-testid"], Ma = { key: 1 }, ja = ["data-testid"], Ea = ["data-testid"], Oa = ["data-testid"], Ka = ["data-testid"], Fa = {
|
|
956
956
|
name: "ConfigCardItem",
|
|
957
|
-
components: { CopyUuid:
|
|
957
|
+
components: { CopyUuid: wn, JsonCardItem: _n, StatusBadge: ba, InternalLinkItem: va }
|
|
958
958
|
}, Na = /* @__PURE__ */ ae({
|
|
959
959
|
...Fa,
|
|
960
960
|
props: {
|
|
@@ -977,10 +977,10 @@ const ce = {
|
|
|
977
977
|
setup(e, { emit: n }) {
|
|
978
978
|
const t = e;
|
|
979
979
|
gr((f) => ({
|
|
980
|
-
"
|
|
981
|
-
"
|
|
982
|
-
"
|
|
983
|
-
"
|
|
980
|
+
"23f3018c": c.value ? "none" : `solid ${y(_a)} ${y(Ca)}`,
|
|
981
|
+
"3815ec6d": l.value && i.value ? "block" : "flex",
|
|
982
|
+
"1957f153": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
983
|
+
"195a372e": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
984
984
|
}));
|
|
985
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) {
|
|
@@ -1110,7 +1110,7 @@ const ce = {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}), u = E(), { isTruncated: g } = ce.useTruncationDetector(u);
|
|
1112
1112
|
return (f, I) => {
|
|
1113
|
-
const b = L("KLabel"), p = L("KBadge"), A = L("KTooltip");
|
|
1113
|
+
const b = L("KLabel"), p = L("KBadge"), A = L("KMethodBadge"), C = L("KTooltip");
|
|
1114
1114
|
return m(), M("div", Aa, [
|
|
1115
1115
|
V("div", {
|
|
1116
1116
|
class: "config-card-details-label",
|
|
@@ -1132,13 +1132,13 @@ const ce = {
|
|
|
1132
1132
|
Z(f.$slots, "label-tooltip", {}, () => [
|
|
1133
1133
|
Q(O(e.item.tooltip), 1)
|
|
1134
1134
|
], !0)
|
|
1135
|
-
], 8,
|
|
1135
|
+
], 8, Sa)
|
|
1136
1136
|
]),
|
|
1137
1137
|
key: "0"
|
|
1138
1138
|
} : void 0
|
|
1139
1139
|
]), 1024)
|
|
1140
1140
|
], !0)
|
|
1141
|
-
], 8,
|
|
1141
|
+
], 8, xa),
|
|
1142
1142
|
V("div", {
|
|
1143
1143
|
class: "config-card-details-value",
|
|
1144
1144
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1153,57 +1153,58 @@ const ce = {
|
|
|
1153
1153
|
key: 0,
|
|
1154
1154
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1155
1155
|
}, [
|
|
1156
|
-
(m(!0), M(be, null, he(e.item.value, (
|
|
1157
|
-
key: `${e.item.key}-badge-tag-${
|
|
1156
|
+
(m(!0), M(be, null, he(e.item.value, (K, h) => (m(), U(p, {
|
|
1157
|
+
key: `${e.item.key}-badge-tag-${h}`,
|
|
1158
1158
|
class: "config-badge",
|
|
1159
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1160
|
-
tooltip:
|
|
1161
|
-
"truncation-tooltip": ""
|
|
1159
|
+
"data-testid": `${e.item.key}-badge-tag-${h}`,
|
|
1160
|
+
"truncation-tooltip": K
|
|
1162
1161
|
}, {
|
|
1163
1162
|
default: v(() => [
|
|
1164
|
-
Q(O(
|
|
1163
|
+
Q(O(K), 1)
|
|
1165
1164
|
]),
|
|
1166
1165
|
_: 2
|
|
1167
|
-
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1166
|
+
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1168
1167
|
], 8, ja)) : H("", !0),
|
|
1169
1168
|
d.value.additionalComponent === "CopyUuid" ? (m(), M("div", {
|
|
1170
1169
|
key: 1,
|
|
1171
1170
|
class: "copy-uuid-array",
|
|
1172
1171
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1173
1172
|
}, [
|
|
1174
|
-
(m(!0), M(be, null, he(e.item.value, (
|
|
1175
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1176
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1177
|
-
uuid:
|
|
1173
|
+
(m(!0), M(be, null, he(e.item.value, (K, h) => (m(), U(y(wn), ht(d.value.childAttrs, {
|
|
1174
|
+
key: `${e.item.key}-copy-uuid-${h}`,
|
|
1175
|
+
"data-testid": `${e.item.key}-copy-uuid-${h}`,
|
|
1176
|
+
uuid: K
|
|
1178
1177
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1179
1178
|
], 8, Ea)) : d.value.additionalComponent === "KMethodBadge" ? (m(), M("div", {
|
|
1180
1179
|
key: 2,
|
|
1181
1180
|
class: "method-badge-array",
|
|
1182
1181
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1183
1182
|
}, [
|
|
1184
|
-
(m(!0), M(be, null, he(e.item.value, (
|
|
1185
|
-
key: `${e.item.key}-badge-method-${
|
|
1186
|
-
appearance: Object.values(y(wr)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
1183
|
+
(m(!0), M(be, null, he(e.item.value, (K, h) => (m(), U(A, {
|
|
1184
|
+
key: `${e.item.key}-badge-method-${h}`,
|
|
1187
1185
|
class: "config-badge",
|
|
1188
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1186
|
+
"data-testid": `${e.item.key}-badge-method-${h}`,
|
|
1187
|
+
"is-rounded": "",
|
|
1188
|
+
label: K,
|
|
1189
|
+
method: y(_r).includes(K.toLowerCase()) ? K.toLowerCase() : "custom"
|
|
1189
1190
|
}, {
|
|
1190
1191
|
default: v(() => [
|
|
1191
|
-
Q(O(
|
|
1192
|
+
Q(O(K), 1)
|
|
1192
1193
|
]),
|
|
1193
1194
|
_: 2
|
|
1194
|
-
}, 1032, ["
|
|
1195
|
+
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1195
1196
|
], 8, Oa)) : H("", !0),
|
|
1196
1197
|
d.value.additionalComponent === "JsonCardItem" ? (m(), M("div", {
|
|
1197
1198
|
key: 3,
|
|
1198
1199
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1199
1200
|
}, [
|
|
1200
|
-
(m(!0), M(be, null, he(e.item.value, (
|
|
1201
|
-
key: `json-array-item-${
|
|
1202
|
-
index:
|
|
1201
|
+
(m(!0), M(be, null, he(e.item.value, (K, h) => (m(), U(_n, {
|
|
1202
|
+
key: `json-array-item-${h}`,
|
|
1203
|
+
index: h,
|
|
1203
1204
|
"is-array-item": "",
|
|
1204
|
-
item:
|
|
1205
|
+
item: K
|
|
1205
1206
|
}, null, 8, ["index", "item"]))), 128))
|
|
1206
|
-
], 8, Ka)) : (m(), U(
|
|
1207
|
+
], 8, Ka)) : (m(), U(C, {
|
|
1207
1208
|
key: 4,
|
|
1208
1209
|
label: y(g) ? e.item.value : ""
|
|
1209
1210
|
}, {
|
|
@@ -1228,7 +1229,7 @@ const ce = {
|
|
|
1228
1229
|
]);
|
|
1229
1230
|
};
|
|
1230
1231
|
}
|
|
1231
|
-
}),
|
|
1232
|
+
}), St = /* @__PURE__ */ Ce(Na, [["__scopeId", "data-v-e851fc7c"]]);
|
|
1232
1233
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1233
1234
|
function In(e) {
|
|
1234
1235
|
return typeof e > "u" || e === null;
|
|
@@ -1411,7 +1412,7 @@ vt.prototype.extend = function(e) {
|
|
|
1411
1412
|
var r = Object.create(vt.prototype);
|
|
1412
1413
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Jt(r, "implicit"), r.compiledExplicit = Jt(r, "explicit"), r.compiledTypeMap = eo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1413
1414
|
};
|
|
1414
|
-
var
|
|
1415
|
+
var xn = vt, Sn = new pe("tag:yaml.org,2002:str", {
|
|
1415
1416
|
kind: "scalar",
|
|
1416
1417
|
construct: function(e) {
|
|
1417
1418
|
return e !== null ? e : "";
|
|
@@ -1426,9 +1427,9 @@ var Sn = vt, xn = new pe("tag:yaml.org,2002:str", {
|
|
|
1426
1427
|
construct: function(e) {
|
|
1427
1428
|
return e !== null ? e : {};
|
|
1428
1429
|
}
|
|
1429
|
-
}), Mn = new
|
|
1430
|
+
}), Mn = new xn({
|
|
1430
1431
|
explicit: [
|
|
1431
|
-
|
|
1432
|
+
Sn,
|
|
1432
1433
|
Tn,
|
|
1433
1434
|
$n
|
|
1434
1435
|
]
|
|
@@ -1668,10 +1669,10 @@ var Kn = new pe("tag:yaml.org,2002:float", {
|
|
|
1668
1669
|
), qn = new RegExp(
|
|
1669
1670
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1670
1671
|
);
|
|
1671
|
-
function
|
|
1672
|
+
function ko(e) {
|
|
1672
1673
|
return e === null ? !1 : Bn.exec(e) !== null || qn.exec(e) !== null;
|
|
1673
1674
|
}
|
|
1674
|
-
function
|
|
1675
|
+
function Co(e) {
|
|
1675
1676
|
var n, t, r, a, o, i, s, l = 0, c = null, d, u, g;
|
|
1676
1677
|
if (n = Bn.exec(e), n === null && (n = qn.exec(e)), n === null)
|
|
1677
1678
|
throw new Error("Date resolve error");
|
|
@@ -1684,22 +1685,22 @@ function ko(e) {
|
|
|
1684
1685
|
}
|
|
1685
1686
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, a, o, i, s, l)), c && g.setTime(g.getTime() - c), g;
|
|
1686
1687
|
}
|
|
1687
|
-
function
|
|
1688
|
+
function wo(e) {
|
|
1688
1689
|
return e.toISOString();
|
|
1689
1690
|
}
|
|
1690
1691
|
var Ln = new pe("tag:yaml.org,2002:timestamp", {
|
|
1691
1692
|
kind: "scalar",
|
|
1692
|
-
resolve:
|
|
1693
|
-
construct:
|
|
1693
|
+
resolve: ko,
|
|
1694
|
+
construct: Co,
|
|
1694
1695
|
instanceOf: Date,
|
|
1695
|
-
represent:
|
|
1696
|
+
represent: wo
|
|
1696
1697
|
});
|
|
1697
|
-
function
|
|
1698
|
+
function _o(e) {
|
|
1698
1699
|
return e === "<<" || e === null;
|
|
1699
1700
|
}
|
|
1700
1701
|
var Pn = new pe("tag:yaml.org,2002:merge", {
|
|
1701
1702
|
kind: "scalar",
|
|
1702
|
-
resolve:
|
|
1703
|
+
resolve: _o
|
|
1703
1704
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1704
1705
|
\r`;
|
|
1705
1706
|
function Io(e) {
|
|
@@ -1720,21 +1721,21 @@ function Ao(e) {
|
|
|
1720
1721
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | o.indexOf(r.charAt(n));
|
|
1721
1722
|
return t = a % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1722
1723
|
}
|
|
1723
|
-
function
|
|
1724
|
+
function xo(e) {
|
|
1724
1725
|
var n = "", t = 0, r, a, o = e.length, i = Tt;
|
|
1725
1726
|
for (r = 0; r < o; r++)
|
|
1726
1727
|
r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
|
|
1727
1728
|
return a = o % 3, a === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : a === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : a === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
1728
1729
|
}
|
|
1729
|
-
function
|
|
1730
|
+
function So(e) {
|
|
1730
1731
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1731
1732
|
}
|
|
1732
1733
|
var Vn = new pe("tag:yaml.org,2002:binary", {
|
|
1733
1734
|
kind: "scalar",
|
|
1734
1735
|
resolve: Io,
|
|
1735
1736
|
construct: Ao,
|
|
1736
|
-
predicate:
|
|
1737
|
-
represent:
|
|
1737
|
+
predicate: So,
|
|
1738
|
+
represent: xo
|
|
1738
1739
|
}), To = Object.prototype.hasOwnProperty, $o = Object.prototype.toString;
|
|
1739
1740
|
function Mo(e) {
|
|
1740
1741
|
if (e === null)
|
|
@@ -2022,17 +2023,17 @@ function Yo(e, n) {
|
|
|
2022
2023
|
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
2023
2024
|
}
|
|
2024
2025
|
function Wo(e, n) {
|
|
2025
|
-
var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), b, p, A,
|
|
2026
|
-
if (
|
|
2026
|
+
var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), b, p, A, C;
|
|
2027
|
+
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
2027
2028
|
d = 93, f = !1, s = [];
|
|
2028
|
-
else if (
|
|
2029
|
+
else if (C === 123)
|
|
2029
2030
|
d = 125, f = !0, s = {};
|
|
2030
2031
|
else
|
|
2031
2032
|
return !1;
|
|
2032
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s),
|
|
2033
|
-
if (ie(e, !0, n),
|
|
2033
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), C = e.input.charCodeAt(++e.position); C !== 0; ) {
|
|
2034
|
+
if (ie(e, !0, n), C = e.input.charCodeAt(e.position), C === d)
|
|
2034
2035
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2035
|
-
t ?
|
|
2036
|
+
t ? C === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = g = !1, C === 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), C = e.input.charCodeAt(e.position), (g || e.line === r) && C === 58 && (u = !0, C = 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), C = e.input.charCodeAt(e.position), C === 44 ? (t = !0, C = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2036
2037
|
}
|
|
2037
2038
|
j(e, "unexpected end of the stream within a flow collection");
|
|
2038
2039
|
}
|
|
@@ -2100,20 +2101,20 @@ function en(e, n) {
|
|
|
2100
2101
|
return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2101
2102
|
}
|
|
2102
2103
|
function Qo(e, n, t) {
|
|
2103
|
-
var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, b = null, p = !1, A = !1,
|
|
2104
|
+
var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, b = null, p = !1, A = !1, C;
|
|
2104
2105
|
if (e.firstTabInLine !== -1)
|
|
2105
2106
|
return !1;
|
|
2106
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u),
|
|
2107
|
-
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, (
|
|
2108
|
-
|
|
2107
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
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, (C === 63 || C === 58) && ve(r))
|
|
2109
|
+
C === 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, C = r;
|
|
2109
2110
|
else {
|
|
2110
2111
|
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Gn, !1, !0))
|
|
2111
2112
|
break;
|
|
2112
2113
|
if (e.line === o) {
|
|
2113
|
-
for (
|
|
2114
|
-
|
|
2115
|
-
if (
|
|
2116
|
-
|
|
2114
|
+
for (C = e.input.charCodeAt(e.position); Ke(C); )
|
|
2115
|
+
C = e.input.charCodeAt(++e.position);
|
|
2116
|
+
if (C === 58)
|
|
2117
|
+
C = e.input.charCodeAt(++e.position), ve(C) || 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;
|
|
2117
2118
|
else if (A)
|
|
2118
2119
|
j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2119
2120
|
else
|
|
@@ -2123,7 +2124,7 @@ function Qo(e, n, t) {
|
|
|
2123
2124
|
else
|
|
2124
2125
|
return e.tag = c, e.anchor = d, !0;
|
|
2125
2126
|
}
|
|
2126
|
-
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),
|
|
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), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && C !== 0)
|
|
2127
2128
|
j(e, "bad indentation of a mapping entry");
|
|
2128
2129
|
else if (e.lineIndent < n)
|
|
2129
2130
|
break;
|
|
@@ -2254,7 +2255,7 @@ function ai(e, n) {
|
|
|
2254
2255
|
var oi = ri, ii = ai, Xn = {
|
|
2255
2256
|
loadAll: oi,
|
|
2256
2257
|
load: ii
|
|
2257
|
-
}, er = Object.prototype.toString, tr = Object.prototype.hasOwnProperty, Et = 65279, si = 9, Ze = 10, li = 13, ui = 32, ci = 33, di = 34, bt = 35, pi = 37, fi = 38, mi = 39, gi = 42, nr = 44, yi = 45, it = 58, hi = 61, vi = 62, bi = 63,
|
|
2258
|
+
}, er = Object.prototype.toString, tr = Object.prototype.hasOwnProperty, Et = 65279, si = 9, Ze = 10, li = 13, ui = 32, ci = 33, di = 34, bt = 35, pi = 37, fi = 38, mi = 39, gi = 42, nr = 44, yi = 45, it = 58, hi = 61, vi = 62, bi = 63, ki = 64, rr = 91, ar = 93, Ci = 96, or = 123, wi = 124, ir = 125, fe = {};
|
|
2258
2259
|
fe[0] = "\\0";
|
|
2259
2260
|
fe[7] = "\\a";
|
|
2260
2261
|
fe[8] = "\\b";
|
|
@@ -2270,7 +2271,7 @@ fe[133] = "\\N";
|
|
|
2270
2271
|
fe[160] = "\\_";
|
|
2271
2272
|
fe[8232] = "\\L";
|
|
2272
2273
|
fe[8233] = "\\P";
|
|
2273
|
-
var
|
|
2274
|
+
var _i = [
|
|
2274
2275
|
"y",
|
|
2275
2276
|
"Y",
|
|
2276
2277
|
"yes",
|
|
@@ -2296,7 +2297,7 @@ function Ai(e, n) {
|
|
|
2296
2297
|
i = r[a], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && tr.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
|
|
2297
2298
|
return t;
|
|
2298
2299
|
}
|
|
2299
|
-
function
|
|
2300
|
+
function xi(e) {
|
|
2300
2301
|
var n, t, r;
|
|
2301
2302
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2302
2303
|
t = "x", r = 2;
|
|
@@ -2308,9 +2309,9 @@ function Si(e) {
|
|
|
2308
2309
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2309
2310
|
return "\\" + t + ue.repeat("0", r - n.length) + n;
|
|
2310
2311
|
}
|
|
2311
|
-
var
|
|
2312
|
+
var Si = 1, Qe = 2;
|
|
2312
2313
|
function Ti(e) {
|
|
2313
|
-
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ue.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ai(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Qe :
|
|
2314
|
+
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ue.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ai(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Qe : Si, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2314
2315
|
}
|
|
2315
2316
|
function tn(e, n) {
|
|
2316
2317
|
for (var t = ue.repeat(" ", n), r = 0, a = -1, o = "", i, s = e.length; r < s; )
|
|
@@ -2319,7 +2320,7 @@ function tn(e, n) {
|
|
|
2319
2320
|
` && (o += t), o += i;
|
|
2320
2321
|
return o;
|
|
2321
2322
|
}
|
|
2322
|
-
function
|
|
2323
|
+
function kt(e, n) {
|
|
2323
2324
|
return `
|
|
2324
2325
|
` + ue.repeat(" ", e.indent * n);
|
|
2325
2326
|
}
|
|
@@ -2350,7 +2351,7 @@ function rn(e, n, t) {
|
|
|
2350
2351
|
);
|
|
2351
2352
|
}
|
|
2352
2353
|
function Mi(e) {
|
|
2353
|
-
return Xe(e) && e !== Et && !st(e) && e !== yi && e !== bi && e !== it && e !== nr && e !== rr && e !== ar && e !== or && e !== ir && e !== bt && e !== fi && e !== gi && e !== ci && e !==
|
|
2354
|
+
return Xe(e) && e !== Et && !st(e) && e !== yi && e !== bi && e !== it && e !== nr && e !== rr && e !== ar && e !== or && e !== ir && e !== bt && e !== fi && e !== gi && e !== ci && e !== wi && e !== hi && e !== vi && e !== mi && e !== di && e !== pi && e !== ki && e !== Ci;
|
|
2354
2355
|
}
|
|
2355
2356
|
function ji(e) {
|
|
2356
2357
|
return !st(e) && e !== it;
|
|
@@ -2363,7 +2364,7 @@ function sr(e) {
|
|
|
2363
2364
|
var n = /^\n* /;
|
|
2364
2365
|
return n.test(e);
|
|
2365
2366
|
}
|
|
2366
|
-
var lr = 1,
|
|
2367
|
+
var lr = 1, Ct = 2, ur = 3, cr = 4, Le = 5;
|
|
2367
2368
|
function Ei(e, n, t, r, a, o, i, s) {
|
|
2368
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));
|
|
2369
2370
|
if (n || i)
|
|
@@ -2383,13 +2384,13 @@ function Ei(e, n, t, r, a, o, i, s) {
|
|
|
2383
2384
|
}
|
|
2384
2385
|
g = g || f && l - I - 1 > r && e[I + 1] !== " ";
|
|
2385
2386
|
}
|
|
2386
|
-
return !u && !g ? b && !i && !a(e) ? lr : o === Qe ? Le :
|
|
2387
|
+
return !u && !g ? b && !i && !a(e) ? lr : o === Qe ? Le : Ct : t > 9 && sr(e) ? Le : i ? o === Qe ? Le : Ct : g ? cr : ur;
|
|
2387
2388
|
}
|
|
2388
2389
|
function Oi(e, n, t, r, a) {
|
|
2389
2390
|
e.dump = function() {
|
|
2390
2391
|
if (n.length === 0)
|
|
2391
2392
|
return e.quotingType === Qe ? '""' : "''";
|
|
2392
|
-
if (!e.noCompatMode && (
|
|
2393
|
+
if (!e.noCompatMode && (_i.indexOf(n) !== -1 || Ii.test(n)))
|
|
2393
2394
|
return e.quotingType === Qe ? '"' + n + '"' : "'" + n + "'";
|
|
2394
2395
|
var o = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = r || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2395
2396
|
function l(c) {
|
|
@@ -2407,7 +2408,7 @@ function Oi(e, n, t, r, a) {
|
|
|
2407
2408
|
)) {
|
|
2408
2409
|
case lr:
|
|
2409
2410
|
return n;
|
|
2410
|
-
case
|
|
2411
|
+
case Ct:
|
|
2411
2412
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2412
2413
|
case ur:
|
|
2413
2414
|
return "|" + an(n, e.indent) + on(tn(n, o));
|
|
@@ -2457,7 +2458,7 @@ function sn(e, n) {
|
|
|
2457
2458
|
}
|
|
2458
2459
|
function Fi(e) {
|
|
2459
2460
|
for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
|
|
2460
|
-
t = ze(e, a), r = fe[t], !r && Xe(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r ||
|
|
2461
|
+
t = ze(e, a), r = fe[t], !r && Xe(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || xi(t);
|
|
2461
2462
|
return n;
|
|
2462
2463
|
}
|
|
2463
2464
|
function Ni(e, n, t) {
|
|
@@ -2469,7 +2470,7 @@ function Ni(e, n, t) {
|
|
|
2469
2470
|
function ln(e, n, t, r) {
|
|
2470
2471
|
var a = "", o = e.tag, i, s, l;
|
|
2471
2472
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2472
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Te(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Te(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a +=
|
|
2473
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Te(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Te(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += kt(e, n)), e.dump && Ze === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2473
2474
|
e.tag = o, e.dump = a || "[]";
|
|
2474
2475
|
}
|
|
2475
2476
|
function Bi(e, n, t) {
|
|
@@ -2487,7 +2488,7 @@ function qi(e, n, t, r) {
|
|
|
2487
2488
|
else if (e.sortKeys)
|
|
2488
2489
|
throw new me("sortKeys must be a boolean or a function");
|
|
2489
2490
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2490
|
-
g = "", (!r || a !== "") && (g +=
|
|
2491
|
+
g = "", (!r || a !== "") && (g += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Te(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ze === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += kt(e, n)), Te(e, n + 1, d, !0, u) && (e.dump && Ze === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, a += g));
|
|
2491
2492
|
e.tag = o, e.dump = a || "{}";
|
|
2492
2493
|
}
|
|
2493
2494
|
function un(e, n, t) {
|
|
@@ -2534,21 +2535,21 @@ function Te(e, n, t, r, a, o, i) {
|
|
|
2534
2535
|
}
|
|
2535
2536
|
function Li(e, n) {
|
|
2536
2537
|
var t = [], r = [], a, o;
|
|
2537
|
-
for (
|
|
2538
|
+
for (wt(e, t, r), a = 0, o = r.length; a < o; a += 1)
|
|
2538
2539
|
n.duplicates.push(t[r[a]]);
|
|
2539
2540
|
n.usedDuplicates = new Array(o);
|
|
2540
2541
|
}
|
|
2541
|
-
function
|
|
2542
|
+
function wt(e, n, t) {
|
|
2542
2543
|
var r, a, o;
|
|
2543
2544
|
if (e !== null && typeof e == "object")
|
|
2544
2545
|
if (a = n.indexOf(e), a !== -1)
|
|
2545
2546
|
t.indexOf(a) === -1 && t.push(a);
|
|
2546
2547
|
else if (n.push(e), Array.isArray(e))
|
|
2547
2548
|
for (a = 0, o = e.length; a < o; a += 1)
|
|
2548
|
-
|
|
2549
|
+
wt(e[a], n, t);
|
|
2549
2550
|
else
|
|
2550
2551
|
for (r = Object.keys(e), a = 0, o = r.length; a < o; a += 1)
|
|
2551
|
-
|
|
2552
|
+
wt(e[r[a]], n, t);
|
|
2552
2553
|
}
|
|
2553
2554
|
function Pi(e, n) {
|
|
2554
2555
|
n = n || {};
|
|
@@ -2566,7 +2567,7 @@ function Ot(e, n) {
|
|
|
2566
2567
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2567
2568
|
};
|
|
2568
2569
|
}
|
|
2569
|
-
var Ri = pe, Di =
|
|
2570
|
+
var Ri = pe, Di = xn, Gi = Mn, Hi = Fn, zi = Nn, Ji = $t, Yi = Xn.load, Wi = Xn.loadAll, Zi = Ui.dump, Qi = me, Xi = {
|
|
2570
2571
|
binary: Vn,
|
|
2571
2572
|
float: Kn,
|
|
2572
2573
|
map: $n,
|
|
@@ -2579,7 +2580,7 @@ var Ri = pe, Di = Sn, Gi = Mn, Hi = Fn, zi = Nn, Ji = $t, Yi = Xn.load, Wi = Xn.
|
|
|
2579
2580
|
merge: Pn,
|
|
2580
2581
|
omap: Un,
|
|
2581
2582
|
seq: Tn,
|
|
2582
|
-
str:
|
|
2583
|
+
str: Sn
|
|
2583
2584
|
}, es = Ot("safeLoad", "load"), ts = Ot("safeLoadAll", "loadAll"), ns = Ot("safeDump", "dump"), rs = {
|
|
2584
2585
|
Type: Ri,
|
|
2585
2586
|
Schema: Di,
|
|
@@ -2650,7 +2651,7 @@ const as = {
|
|
|
2650
2651
|
"data-testid": `config-card-details-${d}-props`
|
|
2651
2652
|
}, [
|
|
2652
2653
|
d !== "basic" ? (m(), M("div", is, O(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2653
|
-
(m(!0), M(be, null, he(e.propertyCollections[d], (u) => (m(), U(
|
|
2654
|
+
(m(!0), M(be, null, he(e.propertyCollections[d], (u) => (m(), U(St, {
|
|
2654
2655
|
key: u.key,
|
|
2655
2656
|
item: u
|
|
2656
2657
|
}, $e({
|
|
@@ -2694,12 +2695,12 @@ const as = {
|
|
|
2694
2695
|
], 64);
|
|
2695
2696
|
};
|
|
2696
2697
|
}
|
|
2697
|
-
}), cs = /* @__PURE__ */
|
|
2698
|
+
}), cs = /* @__PURE__ */ Ce(us, [["__scopeId", "data-v-c914c7e4"]]), cn = "24px", ds = (e, n) => {
|
|
2698
2699
|
const t = e.__vccOpts || e;
|
|
2699
2700
|
for (const [r, a] of n)
|
|
2700
2701
|
t[r] = a;
|
|
2701
2702
|
return t;
|
|
2702
|
-
}, ps = (e) => (mn("data-v-
|
|
2703
|
+
}, ps = (e) => (mn("data-v-a53b73fd"), e = e(), gn(), e), fs = ["aria-hidden"], ms = {
|
|
2703
2704
|
key: 0,
|
|
2704
2705
|
"data-testid": "kui-icon-svg-title"
|
|
2705
2706
|
}, gs = /* @__PURE__ */ ps(() => /* @__PURE__ */ V("path", {
|
|
@@ -2798,13 +2799,13 @@ const as = {
|
|
|
2798
2799
|
_: 1
|
|
2799
2800
|
}, 8, ["aria-hidden", "style"]));
|
|
2800
2801
|
}
|
|
2801
|
-
}), hs = /* @__PURE__ */ ds(ys, [["__scopeId", "data-v-
|
|
2802
|
+
}), hs = /* @__PURE__ */ ds(ys, [["__scopeId", "data-v-a53b73fd"]]), vs = { "data-testid": "config-card-title" }, bs = { class: "config-card-actions" }, ks = ["href"], Cs = {
|
|
2802
2803
|
key: 2,
|
|
2803
2804
|
class: "config-card-details-section"
|
|
2804
|
-
},
|
|
2805
|
+
}, ws = {
|
|
2805
2806
|
key: 3,
|
|
2806
2807
|
class: "config-card-details-section"
|
|
2807
|
-
},
|
|
2808
|
+
}, _s = ["data-testid"], Is = {
|
|
2808
2809
|
key: 0,
|
|
2809
2810
|
class: "config-card-prop-section-title"
|
|
2810
2811
|
}, As = /* @__PURE__ */ ae({
|
|
@@ -2905,50 +2906,50 @@ const as = {
|
|
|
2905
2906
|
type: ne.ID,
|
|
2906
2907
|
label: o("baseConfigCard.commonFields.id_label"),
|
|
2907
2908
|
order: 0,
|
|
2908
|
-
section:
|
|
2909
|
+
section: ke.Basic
|
|
2909
2910
|
},
|
|
2910
2911
|
name: {
|
|
2911
2912
|
order: 1,
|
|
2912
|
-
section:
|
|
2913
|
+
section: ke.Basic
|
|
2913
2914
|
},
|
|
2914
2915
|
enabled: {
|
|
2915
2916
|
type: ne.BadgeStatus,
|
|
2916
2917
|
order: 2,
|
|
2917
|
-
section:
|
|
2918
|
+
section: ke.Basic
|
|
2918
2919
|
},
|
|
2919
2920
|
updated_at: {
|
|
2920
2921
|
type: ne.Date,
|
|
2921
2922
|
label: o("baseConfigCard.commonFields.updated_at_label"),
|
|
2922
2923
|
order: 3,
|
|
2923
|
-
section:
|
|
2924
|
+
section: ke.Basic
|
|
2924
2925
|
},
|
|
2925
2926
|
created_at: {
|
|
2926
2927
|
type: ne.Date,
|
|
2927
2928
|
label: o("baseConfigCard.commonFields.created_at_label"),
|
|
2928
2929
|
order: 4,
|
|
2929
|
-
section:
|
|
2930
|
+
section: ke.Basic
|
|
2930
2931
|
},
|
|
2931
2932
|
tags: {
|
|
2932
2933
|
type: ne.BadgeTag,
|
|
2933
2934
|
order: -1,
|
|
2934
2935
|
// the last property displayed
|
|
2935
|
-
section:
|
|
2936
|
+
section: ke.Basic
|
|
2936
2937
|
}
|
|
2937
2938
|
}, f = E(!1), I = E(!1), b = E(""), p = E(), A = $(() => {
|
|
2938
2939
|
var _, N, R;
|
|
2939
2940
|
if (!p.value)
|
|
2940
2941
|
return [];
|
|
2941
|
-
const
|
|
2942
|
-
for (const
|
|
2943
|
-
const q = (N = (_ = r.configSchema) == null ? void 0 : _[
|
|
2944
|
-
let X =
|
|
2945
|
-
(J || J === 0) && (X = J === -1 ?
|
|
2942
|
+
const k = [], x = Object.keys(p.value).length;
|
|
2943
|
+
for (const S in p.value) {
|
|
2944
|
+
const q = (N = (_ = r.configSchema) == null ? void 0 : _[S]) == null ? void 0 : N.order, J = (R = g[S]) == null ? void 0 : R.order;
|
|
2945
|
+
let X = x;
|
|
2946
|
+
(J || J === 0) && (X = J === -1 ? x + 1 : J), q && (X = q === -1 ? x + 1 : q), k.push([S, X]);
|
|
2946
2947
|
}
|
|
2947
|
-
return
|
|
2948
|
-
return
|
|
2949
|
-
}),
|
|
2948
|
+
return k.sort(function(S, q) {
|
|
2949
|
+
return S[1] - q[1];
|
|
2950
|
+
}), k.map((S) => {
|
|
2950
2951
|
var q, J;
|
|
2951
|
-
const X =
|
|
2952
|
+
const X = S[0], ee = (q = p.value) == null ? void 0 : q[X], te = ((J = r.configSchema) == null ? void 0 : J[X]) || {}, le = g[X];
|
|
2952
2953
|
return {
|
|
2953
2954
|
key: X,
|
|
2954
2955
|
value: ee,
|
|
@@ -2956,24 +2957,24 @@ const as = {
|
|
|
2956
2957
|
type: te.type ?? ((le == null ? void 0 : le.type) || ne.Text),
|
|
2957
2958
|
label: te.label ?? ((le == null ? void 0 : le.label) || s(X)),
|
|
2958
2959
|
tooltip: te.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
|
|
2959
|
-
section: te.section ?? ((le == null ? void 0 : le.section) ||
|
|
2960
|
+
section: te.section ?? ((le == null ? void 0 : le.section) || ke.Advanced)
|
|
2960
2961
|
};
|
|
2961
|
-
}).filter((
|
|
2962
|
-
}),
|
|
2962
|
+
}).filter((S) => !S.hidden && S.key !== r.pluginConfigKey);
|
|
2963
|
+
}), C = $(() => {
|
|
2963
2964
|
var _, N;
|
|
2964
2965
|
if (!p.value || !r.pluginConfigKey)
|
|
2965
2966
|
return [];
|
|
2966
|
-
const R = p.value[r.pluginConfigKey] || {},
|
|
2967
|
-
for (const
|
|
2968
|
-
const q = (N = (_ = r.pluginConfigSchema) == null ? void 0 : _[
|
|
2969
|
-
let X = J != null && J !== "" ?
|
|
2970
|
-
q && (X = q === -1 ?
|
|
2967
|
+
const R = p.value[r.pluginConfigKey] || {}, k = Object.keys(R).length, x = [];
|
|
2968
|
+
for (const S in R) {
|
|
2969
|
+
const q = (N = (_ = r.pluginConfigSchema) == null ? void 0 : _[S]) == null ? void 0 : N.order, J = R[S];
|
|
2970
|
+
let X = J != null && J !== "" ? k - 1 : k;
|
|
2971
|
+
q && (X = q === -1 ? k + 1 : q), x.push([S, X]);
|
|
2971
2972
|
}
|
|
2972
|
-
return
|
|
2973
|
-
return
|
|
2974
|
-
}),
|
|
2973
|
+
return x.sort(function(S, q) {
|
|
2974
|
+
return S[1] - q[1];
|
|
2975
|
+
}), x.map((S) => {
|
|
2975
2976
|
var q;
|
|
2976
|
-
const J =
|
|
2977
|
+
const J = S[0], X = R[J], ee = ((q = r.pluginConfigSchema) == null ? void 0 : q[J]) || {};
|
|
2977
2978
|
return {
|
|
2978
2979
|
key: J,
|
|
2979
2980
|
value: X,
|
|
@@ -2981,17 +2982,17 @@ const as = {
|
|
|
2981
2982
|
type: ee.type ?? ne.Text,
|
|
2982
2983
|
label: ee.label ?? s(J),
|
|
2983
2984
|
tooltip: ee.tooltip ?? void 0,
|
|
2984
|
-
section:
|
|
2985
|
+
section: ke.Plugin
|
|
2985
2986
|
};
|
|
2986
|
-
}).filter((
|
|
2987
|
+
}).filter((S) => !S.hidden);
|
|
2987
2988
|
}), K = $(() => {
|
|
2988
|
-
var _, N, R,
|
|
2989
|
+
var _, N, R, k;
|
|
2989
2990
|
return {
|
|
2990
|
-
basic: (_ = A.value) == null ? void 0 : _.filter((
|
|
2991
|
-
advanced: (N = A.value) == null ? void 0 : N.filter((
|
|
2992
|
-
plugin: (
|
|
2991
|
+
basic: (_ = A.value) == null ? void 0 : _.filter((x) => x.section === ke.Basic),
|
|
2992
|
+
advanced: (N = A.value) == null ? void 0 : N.filter((x) => x.section === ke.Advanced),
|
|
2993
|
+
plugin: (k = C.value) == null ? void 0 : k.concat((R = A.value) == null ? void 0 : R.filter((x) => x.section === ke.Plugin))
|
|
2993
2994
|
};
|
|
2994
|
-
}),
|
|
2995
|
+
}), h = $(() => {
|
|
2995
2996
|
const _ = [];
|
|
2996
2997
|
return K.value.basic.length && _.push("basic"), K.value.advanced.length && _.push("advanced"), K.value.plugin.length && _.push("plugin"), _;
|
|
2997
2998
|
}), D = (_) => !!(_.tooltip || a[`${_.key}-label-tooltip`]), se = $(() => {
|
|
@@ -3024,7 +3025,7 @@ const as = {
|
|
|
3024
3025
|
f.value = !1;
|
|
3025
3026
|
}
|
|
3026
3027
|
}), (_, N) => {
|
|
3027
|
-
const R = L("KLabel"),
|
|
3028
|
+
const R = L("KLabel"), k = L("KSelect"), x = L("KButton"), S = L("KClipboardProvider"), q = L("KSkeleton"), J = L("KEmptyState"), X = L("KCard");
|
|
3028
3029
|
return m(), U(X, { class: "kong-ui-entity-base-config-card" }, $e({
|
|
3029
3030
|
actions: v(() => [
|
|
3030
3031
|
V("div", bs, [
|
|
@@ -3039,14 +3040,14 @@ const as = {
|
|
|
3039
3040
|
]),
|
|
3040
3041
|
_: 1
|
|
3041
3042
|
})) : H("", !0),
|
|
3042
|
-
e.config.jsonYamlEnabled ? (m(), U(
|
|
3043
|
+
e.config.jsonYamlEnabled ? (m(), U(k, {
|
|
3043
3044
|
key: 1,
|
|
3044
3045
|
appearance: "select",
|
|
3045
3046
|
"data-testid": "select-config-format",
|
|
3046
3047
|
items: c,
|
|
3047
3048
|
onChange: u
|
|
3048
3049
|
})) : H("", !0),
|
|
3049
|
-
r.config.jsonYamlEnabled && e.configCardDoc ? (m(), U(
|
|
3050
|
+
r.config.jsonYamlEnabled && e.configCardDoc ? (m(), U(x, {
|
|
3050
3051
|
key: 2,
|
|
3051
3052
|
appearance: "tertiary",
|
|
3052
3053
|
class: "book-icon",
|
|
@@ -3059,13 +3060,13 @@ const as = {
|
|
|
3059
3060
|
target: "_blank"
|
|
3060
3061
|
}, [
|
|
3061
3062
|
F(y(hs), { size: y(Ia) }, null, 8, ["size"])
|
|
3062
|
-
], 8,
|
|
3063
|
+
], 8, ks)
|
|
3063
3064
|
]),
|
|
3064
3065
|
_: 1
|
|
3065
3066
|
})) : H("", !0),
|
|
3066
|
-
e.config.jsonYamlEnabled ? H("", !0) : (m(), U(
|
|
3067
|
+
e.config.jsonYamlEnabled ? H("", !0) : (m(), U(S, { key: 3 }, {
|
|
3067
3068
|
default: v(({ copyToClipboard: ee }) => [
|
|
3068
|
-
!f.value && !I.value ? (m(), U(
|
|
3069
|
+
!f.value && !I.value ? (m(), U(x, {
|
|
3069
3070
|
key: 0,
|
|
3070
3071
|
appearance: "tertiary",
|
|
3071
3072
|
"data-testid": "json-copy-button",
|
|
@@ -3097,10 +3098,10 @@ const as = {
|
|
|
3097
3098
|
]),
|
|
3098
3099
|
_: 1
|
|
3099
3100
|
})) : H("", !0),
|
|
3100
|
-
e.config.jsonYamlEnabled ? (m(), M("div",
|
|
3101
|
+
e.config.jsonYamlEnabled ? (m(), M("div", Cs, [
|
|
3101
3102
|
F(cs, {
|
|
3102
3103
|
format: d.value,
|
|
3103
|
-
"prop-list-types":
|
|
3104
|
+
"prop-list-types": h.value,
|
|
3104
3105
|
"property-collections": K.value,
|
|
3105
3106
|
record: p.value
|
|
3106
3107
|
}, $e({ _: 2 }, [
|
|
@@ -3114,14 +3115,14 @@ const as = {
|
|
|
3114
3115
|
])
|
|
3115
3116
|
}))
|
|
3116
3117
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
3117
|
-
])) : (m(), M("div",
|
|
3118
|
-
(m(!0), M(be, null, he(
|
|
3118
|
+
])) : (m(), M("div", ws, [
|
|
3119
|
+
(m(!0), M(be, null, he(h.value, (ee) => (m(), M("div", {
|
|
3119
3120
|
key: `config-card-details-${ee}-props`,
|
|
3120
3121
|
class: Fe(`config-card-details-${ee}-props`),
|
|
3121
3122
|
"data-testid": `config-card-details-${ee}-props`
|
|
3122
3123
|
}, [
|
|
3123
3124
|
ee !== "basic" ? (m(), M("div", Is, O(ee === "advanced" ? y(o)("baseConfigCard.sections.advanced") : y(o)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
3124
|
-
(m(!0), M(be, null, he(K.value[ee], (te) => (m(), U(
|
|
3125
|
+
(m(!0), M(be, null, he(K.value[ee], (te) => (m(), U(St, {
|
|
3125
3126
|
key: te.key,
|
|
3126
3127
|
item: te
|
|
3127
3128
|
}, $e({
|
|
@@ -3144,7 +3145,7 @@ const as = {
|
|
|
3144
3145
|
key: "0"
|
|
3145
3146
|
} : void 0
|
|
3146
3147
|
]), 1032, ["item"]))), 128))
|
|
3147
|
-
], 10,
|
|
3148
|
+
], 10, _s))), 128))
|
|
3148
3149
|
]))
|
|
3149
3150
|
]),
|
|
3150
3151
|
_: 2
|
|
@@ -3163,7 +3164,7 @@ const as = {
|
|
|
3163
3164
|
]), 1024);
|
|
3164
3165
|
};
|
|
3165
3166
|
}
|
|
3166
|
-
}),
|
|
3167
|
+
}), xs = /* @__PURE__ */ Ce(As, [["__scopeId", "data-v-bea4df63"]]), Ss = ["onReset", "onSubmit"], Ts = {
|
|
3167
3168
|
class: "form-actions",
|
|
3168
3169
|
"data-testid": "form-actions"
|
|
3169
3170
|
}, $s = /* @__PURE__ */ ae({
|
|
@@ -3216,14 +3217,14 @@ const as = {
|
|
|
3216
3217
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3217
3218
|
setup(e, { emit: n }) {
|
|
3218
3219
|
var t;
|
|
3219
|
-
const r = e, a =
|
|
3220
|
+
const r = e, a = _t(), { i18n: { t: o } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { axiosInstance: s } = ce.useAxios({
|
|
3220
3221
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3221
3222
|
}), l = E(!1), c = E(!1), d = E(""), u = $(() => r.canSubmit === !1 || r.isReadonly), g = $(() => {
|
|
3222
3223
|
var p, A;
|
|
3223
3224
|
if (!r.editId)
|
|
3224
3225
|
return "";
|
|
3225
|
-
let
|
|
3226
|
-
return r.config.app === "konnect" ?
|
|
3226
|
+
let C = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3227
|
+
return r.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), C = C.replace(/{id}/gi, r.editId), C;
|
|
3227
3228
|
}), f = () => {
|
|
3228
3229
|
r.config.cancelRoute ? a.push(r.config.cancelRoute) : I();
|
|
3229
3230
|
}, I = () => {
|
|
@@ -3246,10 +3247,10 @@ const as = {
|
|
|
3246
3247
|
l.value = !1;
|
|
3247
3248
|
}
|
|
3248
3249
|
}), (p, A) => {
|
|
3249
|
-
const
|
|
3250
|
+
const C = L("KSkeleton"), K = L("KEmptyState"), h = L("KAlert"), D = L("KButton"), se = L("KCard");
|
|
3250
3251
|
return m(), U(se, { class: "kong-ui-entity-base-form" }, {
|
|
3251
3252
|
default: v(() => [
|
|
3252
|
-
l.value ? (m(), U(
|
|
3253
|
+
l.value ? (m(), U(C, {
|
|
3253
3254
|
key: 0,
|
|
3254
3255
|
type: "form"
|
|
3255
3256
|
})) : c.value ? (m(), U(K, {
|
|
@@ -3270,7 +3271,7 @@ const as = {
|
|
|
3270
3271
|
onSubmit: nt(b, ["prevent"])
|
|
3271
3272
|
}, [
|
|
3272
3273
|
Z(p.$slots, "default", {}, void 0, !0),
|
|
3273
|
-
e.errorMessage ? (m(), U(
|
|
3274
|
+
e.errorMessage ? (m(), U(h, {
|
|
3274
3275
|
key: 0,
|
|
3275
3276
|
"alert-message": e.errorMessage,
|
|
3276
3277
|
appearance: "danger",
|
|
@@ -3302,13 +3303,13 @@ const as = {
|
|
|
3302
3303
|
}, 8, ["disabled"])
|
|
3303
3304
|
], !0)
|
|
3304
3305
|
])
|
|
3305
|
-
], 40,
|
|
3306
|
+
], 40, Ss))
|
|
3306
3307
|
]),
|
|
3307
3308
|
_: 3
|
|
3308
3309
|
});
|
|
3309
3310
|
};
|
|
3310
3311
|
}
|
|
3311
|
-
}), Ms = /* @__PURE__ */
|
|
3312
|
+
}), Ms = /* @__PURE__ */ Ce($s, [["__scopeId", "data-v-448d8512"]]), js = {
|
|
3312
3313
|
key: 0,
|
|
3313
3314
|
"data-testid": "first-col"
|
|
3314
3315
|
}, Es = /* @__PURE__ */ ae({
|
|
@@ -3382,7 +3383,7 @@ const as = {
|
|
|
3382
3383
|
], 512);
|
|
3383
3384
|
};
|
|
3384
3385
|
}
|
|
3385
|
-
}), Os = /* @__PURE__ */
|
|
3386
|
+
}), Os = /* @__PURE__ */ Ce(Es, [["__scopeId", "data-v-e42a20c9"]]), Ks = { class: "toolbar-container" }, Fs = {
|
|
3386
3387
|
key: 0,
|
|
3387
3388
|
class: "toolbar-button-container"
|
|
3388
3389
|
}, Ns = ["data-testid"], Bs = /* @__PURE__ */ ae({
|
|
@@ -3496,42 +3497,42 @@ const as = {
|
|
|
3496
3497
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3497
3498
|
setup(e, { emit: n }) {
|
|
3498
3499
|
const t = e, { i18n: { t: r } } = ce.useI18n(), a = $(() => {
|
|
3499
|
-
var
|
|
3500
|
+
var h, D;
|
|
3500
3501
|
return typeof t.errorMessage == "string" ? {
|
|
3501
3502
|
hasError: !!t.errorMessage,
|
|
3502
3503
|
title: t.errorMessage,
|
|
3503
3504
|
message: void 0
|
|
3504
3505
|
} : {
|
|
3505
3506
|
hasError: !!t.errorMessage,
|
|
3506
|
-
title: (
|
|
3507
|
+
title: (h = t.errorMessage) == null ? void 0 : h.title,
|
|
3507
3508
|
message: (D = t.errorMessage) == null ? void 0 : D.message
|
|
3508
3509
|
};
|
|
3509
|
-
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (
|
|
3510
|
-
const
|
|
3510
|
+
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (h) => h.hasData || !!t.query, s = $(() => {
|
|
3511
|
+
const h = [];
|
|
3511
3512
|
return Object.keys(t.tableHeaders).forEach((D) => {
|
|
3512
3513
|
const se = t.tableHeaders[D];
|
|
3513
|
-
|
|
3514
|
+
h.push({
|
|
3514
3515
|
label: se.label ?? D,
|
|
3515
3516
|
key: D,
|
|
3516
3517
|
sortable: se.sortable ?? !1
|
|
3517
3518
|
});
|
|
3518
|
-
}), t.enableEntityActions &&
|
|
3519
|
+
}), t.enableEntityActions && h.push({
|
|
3519
3520
|
key: "actions",
|
|
3520
3521
|
hideLabel: !0
|
|
3521
|
-
}),
|
|
3522
|
-
}), l = (
|
|
3523
|
-
"data-rowid":
|
|
3524
|
-
"data-testid":
|
|
3525
|
-
...t.rowAttributes(
|
|
3526
|
-
}), c = E({}), d = (
|
|
3522
|
+
}), h;
|
|
3523
|
+
}), l = (h) => ({
|
|
3524
|
+
"data-rowid": h.id,
|
|
3525
|
+
"data-testid": h.name,
|
|
3526
|
+
...t.rowAttributes(h)
|
|
3527
|
+
}), c = E({}), d = (h) => {
|
|
3527
3528
|
var D;
|
|
3528
|
-
return (D = c.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${
|
|
3529
|
-
}, u = (
|
|
3529
|
+
return (D = c.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${h.id}"]`);
|
|
3530
|
+
}, u = (h) => {
|
|
3530
3531
|
const D = {
|
|
3531
|
-
"data-testid":
|
|
3532
|
-
...t.cellAttributes(
|
|
3532
|
+
"data-testid": h.headerKey,
|
|
3533
|
+
...t.cellAttributes(h)
|
|
3533
3534
|
};
|
|
3534
|
-
return
|
|
3535
|
+
return h.colIndex === 0 && (D.style = {
|
|
3535
3536
|
maxWidth: "250px",
|
|
3536
3537
|
overflowX: "hidden",
|
|
3537
3538
|
textOverflow: "ellipsis"
|
|
@@ -3540,20 +3541,20 @@ const as = {
|
|
|
3540
3541
|
n("empty-state-cta-clicked"), f();
|
|
3541
3542
|
}, f = () => {
|
|
3542
3543
|
n("clear-search-input");
|
|
3543
|
-
}, I = $(() => t.disableRowClick ? void 0 : (
|
|
3544
|
+
}, I = $(() => t.disableRowClick ? void 0 : (h, D) => {
|
|
3544
3545
|
n("click:row", D);
|
|
3545
|
-
}), b = (
|
|
3546
|
-
n("sort",
|
|
3547
|
-
}, { setTablePreferences: p, getTablePreferences: A } = $r(),
|
|
3548
|
-
const
|
|
3546
|
+
}), b = (h) => {
|
|
3547
|
+
n("sort", h);
|
|
3548
|
+
}, { setTablePreferences: p, getTablePreferences: A } = $r(), C = $(() => {
|
|
3549
|
+
const h = A(t.preferencesStorageKey);
|
|
3549
3550
|
return {
|
|
3550
3551
|
...t.initialFetcherParams,
|
|
3551
|
-
...
|
|
3552
|
+
...h
|
|
3552
3553
|
};
|
|
3553
|
-
}), K = (
|
|
3554
|
-
t.preferencesStorageKey && p(t.preferencesStorageKey,
|
|
3554
|
+
}), K = (h) => {
|
|
3555
|
+
t.preferencesStorageKey && p(t.preferencesStorageKey, h);
|
|
3555
3556
|
};
|
|
3556
|
-
return (
|
|
3557
|
+
return (h, D) => {
|
|
3557
3558
|
const se = L("KIcon"), Y = L("KButton"), _ = L("KDropdown"), N = L("KTable"), R = L("KCard");
|
|
3558
3559
|
return m(), U(R, {
|
|
3559
3560
|
class: "kong-ui-entity-base-table",
|
|
@@ -3582,40 +3583,40 @@ const as = {
|
|
|
3582
3583
|
"has-error": a.value.hasError,
|
|
3583
3584
|
headers: s.value,
|
|
3584
3585
|
"hide-pagination-when-optional": "",
|
|
3585
|
-
"initial-fetcher-params":
|
|
3586
|
+
"initial-fetcher-params": C.value,
|
|
3586
3587
|
"is-loading": e.isLoading,
|
|
3587
3588
|
"pagination-type": e.paginationType,
|
|
3588
3589
|
"row-attrs": l,
|
|
3589
3590
|
"search-input": e.query,
|
|
3590
3591
|
onKtableEmptyStateCtaClicked: g,
|
|
3591
3592
|
"onRow:click": I.value,
|
|
3592
|
-
onSort: D[0] || (D[0] = (
|
|
3593
|
+
onSort: D[0] || (D[0] = (k) => b(k)),
|
|
3593
3594
|
"onUpdate:tablePreferences": K
|
|
3594
3595
|
}, $e({
|
|
3595
|
-
toolbar: v(({ state:
|
|
3596
|
+
toolbar: v(({ state: k }) => [
|
|
3596
3597
|
Je(V("div", Ks, [
|
|
3597
|
-
Z(
|
|
3598
|
-
|
|
3599
|
-
Z(
|
|
3598
|
+
Z(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3599
|
+
h.$slots["toolbar-button"] ? (m(), M("div", Fs, [
|
|
3600
|
+
Z(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3600
3601
|
])) : H("", !0)
|
|
3601
3602
|
], 512), [
|
|
3602
|
-
[Ye, i(
|
|
3603
|
+
[Ye, i(k)]
|
|
3603
3604
|
])
|
|
3604
3605
|
]),
|
|
3605
|
-
actions: v(({ row:
|
|
3606
|
+
actions: v(({ row: k, rowKey: x, rowValue: S }) => [
|
|
3606
3607
|
V("div", {
|
|
3607
3608
|
class: "actions-container",
|
|
3608
|
-
"data-testid":
|
|
3609
|
+
"data-testid": k.name
|
|
3609
3610
|
}, [
|
|
3610
3611
|
F(_, {
|
|
3611
3612
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3612
3613
|
width: e.dropdownMenuWidth
|
|
3613
3614
|
}, {
|
|
3614
3615
|
items: v(() => [
|
|
3615
|
-
Z(
|
|
3616
|
-
row:
|
|
3617
|
-
rowKey:
|
|
3618
|
-
rowValue:
|
|
3616
|
+
Z(h.$slots, "actions", {
|
|
3617
|
+
row: k,
|
|
3618
|
+
rowKey: x,
|
|
3619
|
+
rowValue: S
|
|
3619
3620
|
}, void 0, !0)
|
|
3620
3621
|
]),
|
|
3621
3622
|
default: v(() => [
|
|
@@ -3626,7 +3627,7 @@ const as = {
|
|
|
3626
3627
|
}, {
|
|
3627
3628
|
icon: v(() => [
|
|
3628
3629
|
F(se, {
|
|
3629
|
-
color: y(
|
|
3630
|
+
color: y(wa),
|
|
3630
3631
|
icon: "more",
|
|
3631
3632
|
size: "16"
|
|
3632
3633
|
}, null, 8, ["color"])
|
|
@@ -3640,16 +3641,16 @@ const as = {
|
|
|
3640
3641
|
]),
|
|
3641
3642
|
_: 2
|
|
3642
3643
|
}, [
|
|
3643
|
-
he(e.tableHeaders, (
|
|
3644
|
-
name:
|
|
3645
|
-
fn: v(({ row:
|
|
3644
|
+
he(e.tableHeaders, (k, x) => ({
|
|
3645
|
+
name: x,
|
|
3646
|
+
fn: v(({ row: S, rowKey: q, rowValue: J }) => [
|
|
3646
3647
|
F(Os, {
|
|
3647
|
-
"key-name": String(
|
|
3648
|
-
"row-el": d(
|
|
3648
|
+
"key-name": String(x),
|
|
3649
|
+
"row-el": d(S)
|
|
3649
3650
|
}, {
|
|
3650
3651
|
default: v(() => [
|
|
3651
|
-
Z(
|
|
3652
|
-
row:
|
|
3652
|
+
Z(h.$slots, x, {
|
|
3653
|
+
row: S,
|
|
3653
3654
|
rowKey: q,
|
|
3654
3655
|
rowValue: J
|
|
3655
3656
|
}, () => [
|
|
@@ -3666,7 +3667,7 @@ const as = {
|
|
|
3666
3667
|
}, 8, ["title"]);
|
|
3667
3668
|
};
|
|
3668
3669
|
}
|
|
3669
|
-
}), qs = /* @__PURE__ */
|
|
3670
|
+
}), qs = /* @__PURE__ */ Ce(Bs, [["__scopeId", "data-v-57b5a97b"]]), Ls = {
|
|
3670
3671
|
key: 0,
|
|
3671
3672
|
class: "kong-ui-entity-delete-error"
|
|
3672
3673
|
}, Ps = {
|
|
@@ -3766,7 +3767,7 @@ const as = {
|
|
|
3766
3767
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3767
3768
|
};
|
|
3768
3769
|
}
|
|
3769
|
-
}), Us = /* @__PURE__ */
|
|
3770
|
+
}), Us = /* @__PURE__ */ Ce(Vs, [["__scopeId", "data-v-1c9a2a07"]]), Rs = {
|
|
3770
3771
|
fill: "none",
|
|
3771
3772
|
height: "20",
|
|
3772
3773
|
viewBox: "0 0 20 20",
|
|
@@ -3785,7 +3786,7 @@ const as = {
|
|
|
3785
3786
|
props: {
|
|
3786
3787
|
color: {
|
|
3787
3788
|
type: String,
|
|
3788
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3789
|
+
default: `var(--kong-ui-entity-filter-color, ${ka})`
|
|
3789
3790
|
}
|
|
3790
3791
|
},
|
|
3791
3792
|
setup(e) {
|
|
@@ -3830,8 +3831,8 @@ const as = {
|
|
|
3830
3831
|
setup(e, { emit: n }) {
|
|
3831
3832
|
const t = e, { i18n: { t: r } } = ce.useI18n(), a = E(!1), o = E({}), i = $(() => {
|
|
3832
3833
|
const p = [];
|
|
3833
|
-
return new URLSearchParams(t.modelValue).forEach((A,
|
|
3834
|
-
A !== "" && p.push(
|
|
3834
|
+
return new URLSearchParams(t.modelValue).forEach((A, C) => {
|
|
3835
|
+
A !== "" && p.push(C);
|
|
3835
3836
|
}), p;
|
|
3836
3837
|
}), s = $(() => {
|
|
3837
3838
|
const p = t.config.fields;
|
|
@@ -3841,8 +3842,8 @@ const as = {
|
|
|
3841
3842
|
}));
|
|
3842
3843
|
});
|
|
3843
3844
|
Ae(() => t.modelValue, (p) => {
|
|
3844
|
-
o.value = {}, new URLSearchParams(p).forEach((A,
|
|
3845
|
-
o.value[
|
|
3845
|
+
o.value = {}, new URLSearchParams(p).forEach((A, C) => {
|
|
3846
|
+
o.value[C] = A;
|
|
3846
3847
|
});
|
|
3847
3848
|
});
|
|
3848
3849
|
const l = () => {
|
|
@@ -3850,14 +3851,14 @@ const as = {
|
|
|
3850
3851
|
}, c = (p) => {
|
|
3851
3852
|
n("update:modelValue", p);
|
|
3852
3853
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3853
|
-
var A,
|
|
3854
|
-
return (((
|
|
3854
|
+
var A, C;
|
|
3855
|
+
return (((C = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : C.values) ?? []).map((K) => ({
|
|
3855
3856
|
value: K,
|
|
3856
3857
|
label: K
|
|
3857
3858
|
}));
|
|
3858
3859
|
}, g = (p) => {
|
|
3859
|
-
var A,
|
|
3860
|
-
return ((
|
|
3860
|
+
var A, C;
|
|
3861
|
+
return ((C = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : C.type) ?? "text";
|
|
3861
3862
|
}, f = (p) => {
|
|
3862
3863
|
o.value = {
|
|
3863
3864
|
...o.value,
|
|
@@ -3866,12 +3867,12 @@ const as = {
|
|
|
3866
3867
|
}, I = () => {
|
|
3867
3868
|
o.value = {}, b(!0);
|
|
3868
3869
|
}, b = (p = !1) => {
|
|
3869
|
-
const A = Object.keys(o.value).reduce((
|
|
3870
|
+
const A = Object.keys(o.value).reduce((C, K) => (o.value[K] && (C[K] = `${o.value[K]}`), C), {});
|
|
3870
3871
|
p && (a.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
|
|
3871
3872
|
};
|
|
3872
3873
|
return (p, A) => {
|
|
3873
|
-
const
|
|
3874
|
-
return e.config.isExactMatch ? (m(), U(
|
|
3874
|
+
const C = L("KInput"), K = L("KButton"), h = L("KSelect"), D = L("KMenuItem"), se = L("KMenu");
|
|
3875
|
+
return e.config.isExactMatch ? (m(), U(C, {
|
|
3875
3876
|
key: 0,
|
|
3876
3877
|
autocomplete: "off",
|
|
3877
3878
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3926,19 +3927,19 @@ const as = {
|
|
|
3926
3927
|
class: "menu-item-label",
|
|
3927
3928
|
for: d(Y.value)
|
|
3928
3929
|
}, O(y(r)("filter.fieldLabel")), 9, Qs),
|
|
3929
|
-
((R = (N = e.config.schema) == null ? void 0 : N[Y.value]) == null ? void 0 : R.type) === "select" ? (m(), U(
|
|
3930
|
+
((R = (N = e.config.schema) == null ? void 0 : N[Y.value]) == null ? void 0 : R.type) === "select" ? (m(), U(h, {
|
|
3930
3931
|
key: 0,
|
|
3931
3932
|
id: d(Y.value),
|
|
3932
3933
|
modelValue: o.value[Y.value],
|
|
3933
|
-
"onUpdate:modelValue": (
|
|
3934
|
+
"onUpdate:modelValue": (k) => o.value[Y.value] = k,
|
|
3934
3935
|
appearance: "select",
|
|
3935
3936
|
items: u(Y.value),
|
|
3936
3937
|
placeholder: y(r)("filter.selectPlaceholder")
|
|
3937
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), U(
|
|
3938
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), U(C, {
|
|
3938
3939
|
key: 1,
|
|
3939
3940
|
id: d(Y.value),
|
|
3940
3941
|
modelValue: o.value[Y.value],
|
|
3941
|
-
"onUpdate:modelValue": (
|
|
3942
|
+
"onUpdate:modelValue": (k) => o.value[Y.value] = k,
|
|
3942
3943
|
autocomplete: "off",
|
|
3943
3944
|
placeholder: y(r)("filter.inputPlaceholder"),
|
|
3944
3945
|
type: g(Y.value)
|
|
@@ -3949,7 +3950,7 @@ const as = {
|
|
|
3949
3950
|
appearance: "tertiary",
|
|
3950
3951
|
"data-testid": "apply-filter",
|
|
3951
3952
|
size: "small",
|
|
3952
|
-
onClick: A[0] || (A[0] = (
|
|
3953
|
+
onClick: A[0] || (A[0] = (k) => b(!0))
|
|
3953
3954
|
}, {
|
|
3954
3955
|
default: v(() => [
|
|
3955
3956
|
Q(O(y(r)("filter.applyButtonText")), 1)
|
|
@@ -3960,7 +3961,7 @@ const as = {
|
|
|
3960
3961
|
appearance: "tertiary",
|
|
3961
3962
|
"data-testid": "clear-filter",
|
|
3962
3963
|
size: "small",
|
|
3963
|
-
onClick: (
|
|
3964
|
+
onClick: (k) => f(Y.value)
|
|
3964
3965
|
}, {
|
|
3965
3966
|
default: v(() => [
|
|
3966
3967
|
Q(O(y(r)("filter.clearButtonText")), 1)
|
|
@@ -3994,7 +3995,7 @@ const as = {
|
|
|
3994
3995
|
]));
|
|
3995
3996
|
};
|
|
3996
3997
|
}
|
|
3997
|
-
}), nl = /* @__PURE__ */
|
|
3998
|
+
}), nl = /* @__PURE__ */ Ce(tl, [["__scopeId", "data-v-15962ee2"]]), et = /* @__PURE__ */ ae({
|
|
3998
3999
|
__name: "PermissionsWrapper",
|
|
3999
4000
|
props: {
|
|
4000
4001
|
/**
|
|
@@ -4083,8 +4084,7 @@ const as = {
|
|
|
4083
4084
|
])
|
|
4084
4085
|
], 2));
|
|
4085
4086
|
}
|
|
4086
|
-
}), pn = /* @__PURE__ */
|
|
4087
|
-
const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group-cta-text" }, ml = {
|
|
4087
|
+
}), pn = /* @__PURE__ */ Ce(ll, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator: jl, useFetchUrlBuilder: El, useFetcher: dl, useDebouncedFilter: dr, useStringHelpers: Ol, useHelpers: Kl, useGatewayFeatureSupported: Fl, useTruncationDetector: Nl } = ce, pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group-cta-text" }, ml = {
|
|
4088
4088
|
key: 0,
|
|
4089
4089
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4090
4090
|
}, gl = { key: 0 }, yl = /* @__PURE__ */ ae({
|
|
@@ -4122,62 +4122,62 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4122
4122
|
fetchedItemsKey: "data",
|
|
4123
4123
|
searchKeys: ["name", "id"]
|
|
4124
4124
|
}
|
|
4125
|
-
), g = $(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = $(() => l.value === void 0), b = $(() => u.value.map((
|
|
4126
|
-
label:
|
|
4127
|
-
value:
|
|
4128
|
-
selected: o.value.includes(
|
|
4129
|
-
data:
|
|
4125
|
+
), g = $(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = $(() => l.value === void 0), b = $(() => u.value.map((k) => ({
|
|
4126
|
+
label: k.name,
|
|
4127
|
+
value: k.id,
|
|
4128
|
+
selected: o.value.includes(k.id),
|
|
4129
|
+
data: k
|
|
4130
4130
|
// we need this to determine whether or not to show the description text
|
|
4131
|
-
}))), p = (
|
|
4132
|
-
var
|
|
4133
|
-
const
|
|
4134
|
-
return
|
|
4131
|
+
}))), p = (k) => {
|
|
4132
|
+
var S;
|
|
4133
|
+
const x = I.value ? u.value.find((q) => q.id === k) : (S = l.value) == null ? void 0 : S.find((q) => q.id === k);
|
|
4134
|
+
return x ? x.name : k;
|
|
4135
4135
|
}, A = () => {
|
|
4136
|
-
|
|
4137
|
-
},
|
|
4136
|
+
h.value = "", C.value = [], _.value = [], n("cancel");
|
|
4137
|
+
}, C = E([]), K = E(!1), h = E(""), D = async () => {
|
|
4138
4138
|
if (!o.value.length) {
|
|
4139
|
-
|
|
4139
|
+
h.value = "", _.value = [], n("cancel");
|
|
4140
4140
|
return;
|
|
4141
4141
|
}
|
|
4142
|
-
K.value = !0,
|
|
4142
|
+
K.value = !0, h.value = "", C.value = [], _.value = [];
|
|
4143
4143
|
try {
|
|
4144
|
-
const
|
|
4145
|
-
let
|
|
4146
|
-
|
|
4147
|
-
q.status !== "fulfilled" && (
|
|
4148
|
-
}),
|
|
4144
|
+
const k = o.value.map((q) => Y(q)), x = await Promise.allSettled(k);
|
|
4145
|
+
let S = !0;
|
|
4146
|
+
x.forEach((q) => {
|
|
4147
|
+
q.status !== "fulfilled" && (S = !1);
|
|
4148
|
+
}), S ? (C.value = [], _.value = [], n("add:success", o.value), o.value = []) : (C.value.length && n("add:partial-success", C.value), o.value = [], N(x));
|
|
4149
4149
|
} catch {
|
|
4150
|
-
|
|
4150
|
+
h.value = r("consumer_groups.errors.add"), n("error", h.value);
|
|
4151
4151
|
} finally {
|
|
4152
4152
|
K.value = !1;
|
|
4153
4153
|
}
|
|
4154
4154
|
}, se = $(() => {
|
|
4155
|
-
var
|
|
4156
|
-
let
|
|
4157
|
-
return t.config.app === "konnect" ?
|
|
4158
|
-
}), Y = async (
|
|
4159
|
-
const
|
|
4160
|
-
group:
|
|
4155
|
+
var x, S, q, J;
|
|
4156
|
+
let k = `${t.config.apiBaseUrl}${Me.list[t.config.app].forConsumer}`;
|
|
4157
|
+
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((S = t.config) == null ? void 0 : S.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (q = t.config) != null && q.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
|
|
4158
|
+
}), Y = async (k) => {
|
|
4159
|
+
const x = {
|
|
4160
|
+
group: k
|
|
4161
4161
|
};
|
|
4162
4162
|
try {
|
|
4163
|
-
const
|
|
4164
|
-
return
|
|
4165
|
-
} catch (
|
|
4166
|
-
let q = `${p(
|
|
4167
|
-
return
|
|
4163
|
+
const S = await a.post(se.value, x);
|
|
4164
|
+
return C.value.push(k), S;
|
|
4165
|
+
} catch (S) {
|
|
4166
|
+
let q = `${p(k)} - ${S.message}`;
|
|
4167
|
+
return S.response.status === 409 && (q = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(q));
|
|
4168
4168
|
}
|
|
4169
|
-
}, _ = E([]), N = (
|
|
4170
|
-
_.value =
|
|
4171
|
-
var
|
|
4172
|
-
return (
|
|
4169
|
+
}, _ = E([]), N = (k) => {
|
|
4170
|
+
_.value = k.map((x) => {
|
|
4171
|
+
var S;
|
|
4172
|
+
return (S = x.reason) == null ? void 0 : S.message;
|
|
4173
4173
|
}).filter(Boolean);
|
|
4174
4174
|
};
|
|
4175
4175
|
return Ae(b, () => {
|
|
4176
4176
|
f.value++;
|
|
4177
4177
|
}, { immediate: !0, deep: !0 }), Ae(() => t.visible, () => {
|
|
4178
4178
|
t.visible && d();
|
|
4179
|
-
}, { immediate: !0 }), (
|
|
4180
|
-
const
|
|
4179
|
+
}, { immediate: !0 }), (k, x) => {
|
|
4180
|
+
const S = L("KMultiselect"), q = L("KAlert"), J = L("KPrompt");
|
|
4181
4181
|
return m(), U(J, {
|
|
4182
4182
|
"action-pending": K.value,
|
|
4183
4183
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
@@ -4190,9 +4190,9 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4190
4190
|
"body-content": v(() => [
|
|
4191
4191
|
V("div", pl, [
|
|
4192
4192
|
V("p", fl, O(y(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4193
|
-
F(
|
|
4193
|
+
F(S, {
|
|
4194
4194
|
modelValue: o.value,
|
|
4195
|
-
"onUpdate:modelValue":
|
|
4195
|
+
"onUpdate:modelValue": x[0] || (x[0] = (X) => o.value = X),
|
|
4196
4196
|
autosuggest: "",
|
|
4197
4197
|
"data-testid": "add-to-groups-multiselect",
|
|
4198
4198
|
"dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
@@ -4205,14 +4205,14 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4205
4205
|
width: "100%",
|
|
4206
4206
|
onQueryChange: y(i)
|
|
4207
4207
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4208
|
-
|
|
4208
|
+
h.value || g.value || _.value.length ? (m(), M("div", ml, [
|
|
4209
4209
|
F(q, { appearance: "danger" }, {
|
|
4210
4210
|
alertMessage: v(() => [
|
|
4211
4211
|
V("p", null, O(y(r)("consumer_groups.errors.add")), 1),
|
|
4212
4212
|
_.value.length ? (m(), M("ul", gl, [
|
|
4213
4213
|
(m(!0), M(be, null, he(_.value, (X, ee) => (m(), M("li", { key: ee }, O(X), 1))), 128))
|
|
4214
4214
|
])) : H("", !0),
|
|
4215
|
-
V("div", null, O(
|
|
4215
|
+
V("div", null, O(h.value || g.value), 1)
|
|
4216
4216
|
]),
|
|
4217
4217
|
_: 1
|
|
4218
4218
|
})
|
|
@@ -4223,13 +4223,12 @@ const pl = { class: "add-to-group-form-container" }, fl = { class: "add-to-group
|
|
|
4223
4223
|
}, 8, ["action-pending", "is-visible", "title"]);
|
|
4224
4224
|
};
|
|
4225
4225
|
}
|
|
4226
|
-
})
|
|
4227
|
-
const Ft = (e, n) => {
|
|
4226
|
+
}), Ft = (e, n) => {
|
|
4228
4227
|
const t = e.__vccOpts || e;
|
|
4229
4228
|
for (const [r, a] of n)
|
|
4230
4229
|
t[r] = a;
|
|
4231
4230
|
return t;
|
|
4232
|
-
}, hl = /* @__PURE__ */ Ft(yl, [["__scopeId", "data-v-3808b4c0"]]), vl = { class: "kong-ui-entities-consumer-groups-list" }, bl = { key: 1 },
|
|
4231
|
+
}, hl = /* @__PURE__ */ Ft(yl, [["__scopeId", "data-v-3808b4c0"]]), vl = { class: "kong-ui-entities-consumer-groups-list" }, bl = { key: 1 }, kl = /* @__PURE__ */ ae({
|
|
4233
4232
|
__name: "ConsumerGroupList",
|
|
4234
4233
|
props: {
|
|
4235
4234
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4276,7 +4275,7 @@ const Ft = (e, n) => {
|
|
|
4276
4275
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4277
4276
|
setup(e, { emit: n }) {
|
|
4278
4277
|
var Bt;
|
|
4279
|
-
const t = e, { i18nT: r, i18n: { t: a } } = ct.useI18n(), o =
|
|
4278
|
+
const t = e, { i18nT: r, i18n: { t: a } } = ct.useI18n(), o = _t(), { axiosInstance: i } = Kt({
|
|
4280
4279
|
headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
|
|
4281
4280
|
}), s = E(1), l = $(() => !!t.config.consumerId), c = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4282
4281
|
name: { label: a("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
@@ -4285,9 +4284,9 @@ const Ft = (e, n) => {
|
|
|
4285
4284
|
const u = d, g = (T) => ({
|
|
4286
4285
|
"data-testid": T.username ?? T.custom_id ?? T.id
|
|
4287
4286
|
}), f = $(() => {
|
|
4288
|
-
var z, re, ye,
|
|
4287
|
+
var z, re, ye, _e;
|
|
4289
4288
|
let T = `${t.config.apiBaseUrl}${Me.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4290
|
-
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, ((
|
|
4289
|
+
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, ((_e = t.config) == null ? void 0 : _e.consumerId) || "")), T;
|
|
4291
4290
|
}), I = E(""), b = $(() => {
|
|
4292
4291
|
const T = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4293
4292
|
return T ? {
|
|
@@ -4304,9 +4303,9 @@ const Ft = (e, n) => {
|
|
|
4304
4303
|
},
|
|
4305
4304
|
schema: t.config.filterSchema
|
|
4306
4305
|
};
|
|
4307
|
-
}), p = $(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState:
|
|
4306
|
+
}), p = $(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: C } = dl(t.config, f.value, p.value), K = () => {
|
|
4308
4307
|
I.value = "";
|
|
4309
|
-
},
|
|
4308
|
+
}, h = () => {
|
|
4310
4309
|
s.value++;
|
|
4311
4310
|
}, D = E(null), se = (T, z) => {
|
|
4312
4311
|
const re = T.id;
|
|
@@ -4345,38 +4344,38 @@ const Ft = (e, n) => {
|
|
|
4345
4344
|
}), R = (T) => ({
|
|
4346
4345
|
label: a("consumer_groups.actions.edit"),
|
|
4347
4346
|
to: t.config.getEditRoute(T)
|
|
4348
|
-
}),
|
|
4349
|
-
|
|
4347
|
+
}), k = E(void 0), x = E(!1), S = E(!1), q = E(""), J = ul(t.config, f.value), X = (T) => {
|
|
4348
|
+
k.value = T, x.value = !0;
|
|
4350
4349
|
}, ee = () => {
|
|
4351
|
-
|
|
4350
|
+
x.value = !1;
|
|
4352
4351
|
}, te = async () => {
|
|
4353
4352
|
var T, z, re;
|
|
4354
|
-
if ((T =
|
|
4355
|
-
|
|
4353
|
+
if ((T = k.value) != null && T.id) {
|
|
4354
|
+
S.value = !0;
|
|
4356
4355
|
try {
|
|
4357
|
-
await i.delete(J(
|
|
4356
|
+
await i.delete(J(k.value.id)), S.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
|
|
4358
4357
|
} catch (ye) {
|
|
4359
4358
|
q.value = ((re = (z = ye.response) == null ? void 0 : z.data) == null ? void 0 : re.message) || ye.message || a("consumer_groups.errors.delete"), n("error", ye);
|
|
4360
4359
|
} finally {
|
|
4361
|
-
|
|
4360
|
+
S.value = !1;
|
|
4362
4361
|
}
|
|
4363
4362
|
}
|
|
4364
4363
|
}, le = E(!1), De = () => {
|
|
4365
4364
|
le.value = !0;
|
|
4366
|
-
},
|
|
4365
|
+
}, w = () => {
|
|
4367
4366
|
le.value = !1;
|
|
4368
4367
|
}, B = (T, z) => {
|
|
4369
|
-
z ||
|
|
4368
|
+
z || w(), s.value++, n("add:success", T);
|
|
4370
4369
|
}, oe = () => {
|
|
4371
4370
|
l.value && De();
|
|
4372
|
-
}, P = E(void 0), G = E(!1), ge = E(""),
|
|
4371
|
+
}, P = E(void 0), G = E(!1), ge = E(""), we = (T) => {
|
|
4373
4372
|
P.value = T, G.value = !0;
|
|
4374
4373
|
}, de = () => {
|
|
4375
4374
|
G.value = !1, P.value = void 0;
|
|
4376
4375
|
}, Ne = $(() => {
|
|
4377
|
-
var z, re, ye,
|
|
4376
|
+
var z, re, ye, _e;
|
|
4378
4377
|
let T = `${t.config.apiBaseUrl}${Me.list[t.config.app].oneForConsumer}`;
|
|
4379
|
-
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, ((
|
|
4378
|
+
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, ((_e = t.config) == null ? void 0 : _e.consumerId) || "")), T;
|
|
4380
4379
|
}), Ge = E(!1), pr = async () => {
|
|
4381
4380
|
if (P.value) {
|
|
4382
4381
|
Ge.value = !0;
|
|
@@ -4390,12 +4389,12 @@ const Ft = (e, n) => {
|
|
|
4390
4389
|
}
|
|
4391
4390
|
}
|
|
4392
4391
|
}, Nt = E(!0);
|
|
4393
|
-
Ae(
|
|
4394
|
-
var z, re, ye,
|
|
4392
|
+
Ae(C, (T) => {
|
|
4393
|
+
var z, re, ye, _e;
|
|
4395
4394
|
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) {
|
|
4396
4395
|
D.value = {
|
|
4397
4396
|
title: a("consumer_groups.errors.general")
|
|
4398
|
-
}, (
|
|
4397
|
+
}, (_e = (ye = (re = T.error) == null ? void 0 : re.response) == null ? void 0 : ye.data) != null && _e.message && (D.value.message = T.error.response.data.message), n("error", T.error);
|
|
4399
4398
|
return;
|
|
4400
4399
|
}
|
|
4401
4400
|
D.value = null;
|
|
@@ -4409,7 +4408,7 @@ const Ft = (e, n) => {
|
|
|
4409
4408
|
return ut(async () => {
|
|
4410
4409
|
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"));
|
|
4411
4410
|
}), (T, z) => {
|
|
4412
|
-
const re = L("KButton"), ye = L("KBadge"),
|
|
4411
|
+
const re = L("KButton"), ye = L("KBadge"), _e = L("KTruncate"), He = L("KDropdownItem"), qt = L("KClipboardProvider"), fr = L("KPrompt");
|
|
4413
4412
|
return m(), M("div", vl, [
|
|
4414
4413
|
F(y(qs), {
|
|
4415
4414
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4430,7 +4429,7 @@ const Ft = (e, n) => {
|
|
|
4430
4429
|
onClearSearchInput: K,
|
|
4431
4430
|
"onClick:row": z[3] || (z[3] = (W) => _(W)),
|
|
4432
4431
|
onEmptyStateCtaClicked: oe,
|
|
4433
|
-
onSort:
|
|
4432
|
+
onSort: h
|
|
4434
4433
|
}, {
|
|
4435
4434
|
"toolbar-filter": v(() => [
|
|
4436
4435
|
l.value ? H("", !0) : (m(), U(y(nl), {
|
|
@@ -4441,7 +4440,7 @@ const Ft = (e, n) => {
|
|
|
4441
4440
|
}, null, 8, ["modelValue", "config"]))
|
|
4442
4441
|
]),
|
|
4443
4442
|
"toolbar-button": v(() => [
|
|
4444
|
-
(m(), U(
|
|
4443
|
+
(m(), U(Cr, {
|
|
4445
4444
|
disabled: !e.useActionOutside,
|
|
4446
4445
|
to: "#kong-ui-app-page-header-action-button"
|
|
4447
4446
|
}, [
|
|
@@ -4475,7 +4474,7 @@ const Ft = (e, n) => {
|
|
|
4475
4474
|
Q(O(W ?? "-"), 1)
|
|
4476
4475
|
]),
|
|
4477
4476
|
tags: v(({ rowValue: W }) => [
|
|
4478
|
-
(W == null ? void 0 : W.length) > 0 ? (m(), U(
|
|
4477
|
+
(W == null ? void 0 : W.length) > 0 ? (m(), U(_e, { key: 0 }, {
|
|
4479
4478
|
default: v(() => [
|
|
4480
4479
|
(m(!0), M(be, null, he(W, (Be) => (m(), U(ye, {
|
|
4481
4480
|
key: Be,
|
|
@@ -4551,7 +4550,7 @@ const Ft = (e, n) => {
|
|
|
4551
4550
|
danger: "",
|
|
4552
4551
|
"data-testid": "action-entity-delete",
|
|
4553
4552
|
"has-divider": "",
|
|
4554
|
-
onClick: () => e.config.consumerId ?
|
|
4553
|
+
onClick: () => e.config.consumerId ? we(W) : X(W)
|
|
4555
4554
|
}, {
|
|
4556
4555
|
default: v(() => [
|
|
4557
4556
|
Q(O(e.config.consumerId ? y(a)("consumer_groups.actions.exit") : y(a)("consumer_groups.actions.delete")), 1)
|
|
@@ -4565,14 +4564,14 @@ const Ft = (e, n) => {
|
|
|
4565
4564
|
_: 1
|
|
4566
4565
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4567
4566
|
F(y(Us), {
|
|
4568
|
-
"action-pending":
|
|
4567
|
+
"action-pending": S.value,
|
|
4569
4568
|
"data-testid": "delete-consumer-group-modal",
|
|
4570
4569
|
description: y(a)("consumer_groups.delete.description"),
|
|
4571
|
-
"entity-name":
|
|
4570
|
+
"entity-name": k.value && (k.value.name || k.value.id),
|
|
4572
4571
|
"entity-type": y(hn).ConsumerGroup,
|
|
4573
4572
|
error: q.value,
|
|
4574
4573
|
title: y(a)("consumer_groups.delete.title"),
|
|
4575
|
-
visible:
|
|
4574
|
+
visible: x.value,
|
|
4576
4575
|
onCancel: ee,
|
|
4577
4576
|
onProceed: te
|
|
4578
4577
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
@@ -4583,7 +4582,7 @@ const Ft = (e, n) => {
|
|
|
4583
4582
|
visible: le.value,
|
|
4584
4583
|
"onAdd:partialSuccess": z[4] || (z[4] = (W) => B(W, !0)),
|
|
4585
4584
|
"onAdd:success": z[5] || (z[5] = (W) => B(W)),
|
|
4586
|
-
onCancel:
|
|
4585
|
+
onCancel: w
|
|
4587
4586
|
}, null, 8, ["config", "visible"])) : H("", !0),
|
|
4588
4587
|
e.config.consumerId && P.value ? (m(), U(fr, {
|
|
4589
4588
|
key: 1,
|
|
@@ -4620,8 +4619,7 @@ const Ft = (e, n) => {
|
|
|
4620
4619
|
]);
|
|
4621
4620
|
};
|
|
4622
4621
|
}
|
|
4623
|
-
})
|
|
4624
|
-
const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { class: "kong-ui-entities-consumer-group-form" }, _l = { class: "select-item-label" }, wl = {
|
|
4622
|
+
}), Bl = /* @__PURE__ */ Ft(kl, [["__scopeId", "data-v-12149d54"]]), Cl = { class: "kong-ui-entities-consumer-group-form" }, wl = { class: "select-item-label" }, _l = {
|
|
4625
4623
|
key: 0,
|
|
4626
4624
|
class: "select-item-desc"
|
|
4627
4625
|
}, Il = /* @__PURE__ */ ae({
|
|
@@ -4643,7 +4641,7 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { cl
|
|
|
4643
4641
|
emits: ["update", "error", "loading"],
|
|
4644
4642
|
setup(e, { emit: n }) {
|
|
4645
4643
|
var te, le, De;
|
|
4646
|
-
const t = e, { i18n: { t: r } } = ct.useI18n(), a =
|
|
4644
|
+
const t = e, { i18n: { t: r } } = ct.useI18n(), a = _t(), o = Lt({
|
|
4647
4645
|
fields: {
|
|
4648
4646
|
name: "",
|
|
4649
4647
|
tags: "",
|
|
@@ -4666,97 +4664,97 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { cl
|
|
|
4666
4664
|
searchKeys: ["username", "custom_id", "id"]
|
|
4667
4665
|
}), { axiosInstance: g } = Kt({
|
|
4668
4666
|
headers: (De = t.config) == null ? void 0 : De.requestHeaders
|
|
4669
|
-
}), { getMessageFromError: f } = cl(), I = $(() => u.value.map((
|
|
4670
|
-
label:
|
|
4671
|
-
value:
|
|
4672
|
-
selected: o.fields.consumers.includes(
|
|
4673
|
-
data:
|
|
4667
|
+
}), { getMessageFromError: f } = cl(), I = $(() => u.value.map((w) => ({
|
|
4668
|
+
label: w.username || w.custom_id,
|
|
4669
|
+
value: w.id,
|
|
4670
|
+
selected: o.fields.consumers.includes(w.id),
|
|
4671
|
+
data: w
|
|
4674
4672
|
// we need this to determine whether or not to show the description text
|
|
4675
4673
|
}))), b = $(() => {
|
|
4676
|
-
var
|
|
4677
|
-
return (B = Me.form[(
|
|
4678
|
-
}), p = $(() => t.consumerGroupId ? tt.Edit : tt.Create), A = $(() => !!o.fields.name && !_.value),
|
|
4679
|
-
var G, ge,
|
|
4680
|
-
let P = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${Me.form[(ge = t.config) == null ? void 0 : ge.app][
|
|
4681
|
-
return ((
|
|
4682
|
-
},
|
|
4683
|
-
var
|
|
4684
|
-
a.push(((
|
|
4685
|
-
}, D = (
|
|
4686
|
-
n("error",
|
|
4687
|
-
}, se = (
|
|
4688
|
-
n("loading",
|
|
4689
|
-
}, Y = async (
|
|
4690
|
-
var oe, P, G, ge,
|
|
4691
|
-
o.fields.name = ((oe =
|
|
4692
|
-
const B = ((G =
|
|
4693
|
-
if (o.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in
|
|
4694
|
-
o.fields.consumers = ((ge =
|
|
4674
|
+
var w, B;
|
|
4675
|
+
return (B = Me.form[(w = t.config) == null ? void 0 : w.app]) == null ? void 0 : B.edit;
|
|
4676
|
+
}), p = $(() => t.consumerGroupId ? tt.Edit : tt.Create), A = $(() => !!o.fields.name && !_.value), C = $(() => JSON.stringify(o.fields) !== JSON.stringify(i)), K = (w, B = "", oe = "") => {
|
|
4677
|
+
var G, ge, we, de, Ne, Ge;
|
|
4678
|
+
let P = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${Me.form[(ge = t.config) == null ? void 0 : ge.app][w]}`;
|
|
4679
|
+
return ((we = t.config) == null ? void 0 : we.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), (w === "addConsumer" || w === "removeConsumer") && (P = P.replace(/{consumerId}/gi, oe)), P;
|
|
4680
|
+
}, h = () => {
|
|
4681
|
+
var w;
|
|
4682
|
+
a.push(((w = t.config) == null ? void 0 : w.cancelRoute) || { name: "consumer-group-list" });
|
|
4683
|
+
}, D = (w) => {
|
|
4684
|
+
n("error", w);
|
|
4685
|
+
}, se = (w) => {
|
|
4686
|
+
n("loading", w);
|
|
4687
|
+
}, Y = async (w) => {
|
|
4688
|
+
var oe, P, G, ge, we;
|
|
4689
|
+
o.fields.name = ((oe = w == null ? void 0 : w.item) == null ? void 0 : oe.name) || ((P = w == null ? void 0 : w.consumer_group) == null ? void 0 : P.name) || (w == null ? void 0 : w.name) || "";
|
|
4690
|
+
const B = ((G = w == null ? void 0 : w.item) == null ? void 0 : G.tags) || (w == null ? void 0 : w.consumer_group.tags) || (w == null ? void 0 : w.tags) || [];
|
|
4691
|
+
if (o.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in w)
|
|
4692
|
+
o.fields.consumers = ((ge = w == null ? void 0 : w.consumers) == null ? void 0 : ge.map((de) => de.id)) || [];
|
|
4695
4693
|
else
|
|
4696
4694
|
try {
|
|
4697
4695
|
const { data: de } = await g.get(K("getConsumers"));
|
|
4698
|
-
o.fields.consumers = "consumers" in de ? (
|
|
4696
|
+
o.fields.consumers = "consumers" in de ? (we = de == null ? void 0 : de.consumers) == null ? void 0 : we.map((Ne) => Ne.id) : [];
|
|
4699
4697
|
} catch (de) {
|
|
4700
|
-
|
|
4698
|
+
x(de);
|
|
4701
4699
|
}
|
|
4702
4700
|
Object.assign(i, o.fields);
|
|
4703
4701
|
}, _ = $(() => /^[0-9a-zA-Z.\-_~]*$/.test(o.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
|
|
4704
|
-
var
|
|
4702
|
+
var w, B;
|
|
4705
4703
|
return {
|
|
4706
4704
|
name: o.fields.name,
|
|
4707
|
-
tags: (B = (
|
|
4705
|
+
tags: (B = (w = o.fields.tags.split(",")) == null ? void 0 : w.map((oe) => String(oe || "").trim())) == null ? void 0 : B.filter((oe) => oe !== "")
|
|
4708
4706
|
};
|
|
4709
|
-
}, R = async (
|
|
4710
|
-
o.errorMessage = f(
|
|
4711
|
-
},
|
|
4712
|
-
Object.assign(i, o.fields), n("update", { ...o.fields, id:
|
|
4713
|
-
}, q = (
|
|
4714
|
-
const P =
|
|
4715
|
-
P ?
|
|
4707
|
+
}, R = async (w, B = "") => await g.post(K("addConsumer", B, w), { consumer: w }), k = async (w, B = "") => await g.delete(K("removeConsumer", B, w)), x = (w) => {
|
|
4708
|
+
o.errorMessage = f(w), n("error", w);
|
|
4709
|
+
}, S = (w = t.consumerGroupId) => {
|
|
4710
|
+
Object.assign(i, o.fields), n("update", { ...o.fields, id: w });
|
|
4711
|
+
}, q = (w, B, oe = t.consumerGroupId) => {
|
|
4712
|
+
const P = w == null ? void 0 : w.find((G) => G.status !== "fulfilled");
|
|
4713
|
+
P ? x({
|
|
4716
4714
|
code: P.status,
|
|
4717
4715
|
message: B
|
|
4718
|
-
}) :
|
|
4716
|
+
}) : S(oe);
|
|
4719
4717
|
}, J = async () => {
|
|
4720
|
-
let
|
|
4718
|
+
let w = "";
|
|
4721
4719
|
try {
|
|
4722
4720
|
const { data: B } = await g.post(K("create"), N());
|
|
4723
|
-
|
|
4721
|
+
w = "item" in B ? B.item.id : B.id;
|
|
4724
4722
|
} catch (B) {
|
|
4725
|
-
|
|
4723
|
+
x(B);
|
|
4726
4724
|
}
|
|
4727
|
-
if (o.fields.consumers.length > 0 &&
|
|
4725
|
+
if (o.fields.consumers.length > 0 && w)
|
|
4728
4726
|
try {
|
|
4729
|
-
const B = o.fields.consumers.map((P) => R(P,
|
|
4730
|
-
q(oe, r("consumer_groups.errors.add_consumer"),
|
|
4727
|
+
const B = o.fields.consumers.map((P) => R(P, w)), oe = await Promise.allSettled(B);
|
|
4728
|
+
q(oe, r("consumer_groups.errors.add_consumer"), w);
|
|
4731
4729
|
} catch (B) {
|
|
4732
|
-
|
|
4730
|
+
x(B);
|
|
4733
4731
|
}
|
|
4734
4732
|
else
|
|
4735
|
-
o.fields.consumers.length === 0 &&
|
|
4733
|
+
o.fields.consumers.length === 0 && w && S(w);
|
|
4736
4734
|
}, X = async () => {
|
|
4737
4735
|
var oe;
|
|
4738
4736
|
try {
|
|
4739
4737
|
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await g.put(K("edit"), N()) : await g.patch(K("edit"), N());
|
|
4740
4738
|
} catch (P) {
|
|
4741
|
-
|
|
4739
|
+
x(P);
|
|
4742
4740
|
}
|
|
4743
|
-
const
|
|
4744
|
-
if (B.length === 0 &&
|
|
4745
|
-
|
|
4741
|
+
const w = o.fields.consumers.filter((P) => !i.consumers.includes(P)), B = i.consumers.filter((P) => !o.fields.consumers.includes(P));
|
|
4742
|
+
if (B.length === 0 && w.length === 0)
|
|
4743
|
+
S();
|
|
4746
4744
|
else {
|
|
4747
4745
|
if (B.length > 0)
|
|
4748
4746
|
try {
|
|
4749
|
-
const P = B.map((ge) =>
|
|
4747
|
+
const P = B.map((ge) => k(ge)), G = await Promise.allSettled(P);
|
|
4750
4748
|
q(G, r("consumer_groups.errors.remove_consumer"));
|
|
4751
4749
|
} catch (P) {
|
|
4752
|
-
|
|
4750
|
+
x(P);
|
|
4753
4751
|
}
|
|
4754
|
-
if (
|
|
4752
|
+
if (w.length > 0)
|
|
4755
4753
|
try {
|
|
4756
|
-
const P =
|
|
4754
|
+
const P = w.map((ge) => R(ge)), G = await Promise.allSettled(P);
|
|
4757
4755
|
q(G, r("consumer_groups.errors.add_consumer"));
|
|
4758
4756
|
} catch (P) {
|
|
4759
|
-
|
|
4757
|
+
x(P);
|
|
4760
4758
|
}
|
|
4761
4759
|
}
|
|
4762
4760
|
}, ee = async () => {
|
|
@@ -4768,17 +4766,17 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { cl
|
|
|
4768
4766
|
};
|
|
4769
4767
|
return ut(async () => {
|
|
4770
4768
|
await d();
|
|
4771
|
-
}), (
|
|
4769
|
+
}), (w, B) => {
|
|
4772
4770
|
const oe = L("KInput"), P = L("KMultiselect");
|
|
4773
|
-
return m(), M("div",
|
|
4771
|
+
return m(), M("div", Cl, [
|
|
4774
4772
|
F(y(Ms), {
|
|
4775
|
-
"can-submit": A.value &&
|
|
4773
|
+
"can-submit": A.value && C.value,
|
|
4776
4774
|
config: e.config,
|
|
4777
4775
|
"edit-id": e.consumerGroupId,
|
|
4778
4776
|
"error-message": o.errorMessage || y(c) || _.value,
|
|
4779
4777
|
"fetch-url": b.value,
|
|
4780
4778
|
"is-readonly": o.readonly,
|
|
4781
|
-
onCancel:
|
|
4779
|
+
onCancel: h,
|
|
4782
4780
|
"onFetch:error": B[3] || (B[3] = (G) => D(G)),
|
|
4783
4781
|
"onFetch:success": Y,
|
|
4784
4782
|
onLoading: B[4] || (B[4] = (G) => se(G)),
|
|
@@ -4839,10 +4837,10 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { cl
|
|
|
4839
4837
|
onQueryChange: y(s)
|
|
4840
4838
|
}, {
|
|
4841
4839
|
"item-template": v(({ item: G }) => {
|
|
4842
|
-
var ge,
|
|
4840
|
+
var ge, we, de;
|
|
4843
4841
|
return [
|
|
4844
|
-
V("div",
|
|
4845
|
-
(ge = G == null ? void 0 : G.data) != null && ge.username && ((
|
|
4842
|
+
V("div", wl, O(G.label), 1),
|
|
4843
|
+
(ge = G == null ? void 0 : G.data) != null && ge.username && ((we = G == null ? void 0 : G.data) != null && we.custom_id) ? (m(), M("div", _l, O((de = G == null ? void 0 : G.data) == null ? void 0 : de.custom_id), 1)) : H("", !0)
|
|
4846
4844
|
];
|
|
4847
4845
|
}),
|
|
4848
4846
|
_: 1
|
|
@@ -4856,8 +4854,7 @@ const Bl = /* @__PURE__ */ Ft(Cl, [["__scopeId", "data-v-12149d54"]]), kl = { cl
|
|
|
4856
4854
|
]);
|
|
4857
4855
|
};
|
|
4858
4856
|
}
|
|
4859
|
-
})
|
|
4860
|
-
const ql = /* @__PURE__ */ Ft(Il, [["__scopeId", "data-v-102d40d2"]]), Al = { class: "kong-ui-consumer-group-entity-config-card" }, Ll = /* @__PURE__ */ ae({
|
|
4857
|
+
}), ql = /* @__PURE__ */ Ft(Il, [["__scopeId", "data-v-102d40d2"]]), Al = { class: "kong-ui-consumer-group-entity-config-card" }, Ll = /* @__PURE__ */ ae({
|
|
4861
4858
|
__name: "ConsumerGroupConfigCard",
|
|
4862
4859
|
props: {
|
|
4863
4860
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4894,7 +4891,7 @@ const ql = /* @__PURE__ */ Ft(Il, [["__scopeId", "data-v-102d40d2"]]), Al = { cl
|
|
|
4894
4891
|
}
|
|
4895
4892
|
});
|
|
4896
4893
|
return (o, i) => (m(), M("div", Al, [
|
|
4897
|
-
F(y(
|
|
4894
|
+
F(y(xs), {
|
|
4898
4895
|
config: e.config,
|
|
4899
4896
|
"config-card-doc": e.configCardDoc,
|
|
4900
4897
|
"config-schema": a.value,
|