@kong-ui-public/entities-consumer-groups 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as X, ref as O, computed as
|
|
1
|
+
import { defineComponent as X, ref as O, computed as A, watch as xe, renderSlot as te, createCommentVNode as W, unref as h, onBeforeMount as ut, resolveComponent as P, openBlock as f, createBlock as D, createSlots as Ke, withCtx as b, createElementVNode as B, createVNode as T, createTextVNode as Q, toDisplayString as N, renderList as he, createElementBlock as j, withModifiers as Ct, withDirectives as Se, vShow as $e, Fragment as ve, normalizeClass as Me, withKeys as vr, useSlots as St, useCssVars as gn, inject as br, onMounted as kr, onUnmounted as Cr, resolveDynamicComponent as Le, normalizeStyle as ct, normalizeProps as wr, guardReactiveProps as _r, mergeProps as Ir, pushScopeId as dt, popScopeId as pt, reactive as Vt } from "vue";
|
|
2
2
|
import { useRouter as $t } from "vue-router";
|
|
3
|
-
import { createI18n as
|
|
3
|
+
import { createI18n as yn, i18nTComponent as hn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Dt from "axios";
|
|
5
5
|
import { BadgeMethodAppearances as xr } from "@kong/kongponents";
|
|
6
|
-
const
|
|
6
|
+
const Ar = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
9
9
|
name: "Name",
|
|
@@ -96,19 +96,19 @@ const Ir = {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}, Sr = {
|
|
99
|
-
consumer_groups:
|
|
99
|
+
consumer_groups: Ar
|
|
100
100
|
};
|
|
101
101
|
function $r() {
|
|
102
|
-
const e =
|
|
102
|
+
const e = yn("en-us", Sr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
|
-
i18nT:
|
|
105
|
+
i18nT: hn(e)
|
|
106
106
|
// Translation component <i18n-t>
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ft = {
|
|
110
110
|
useI18n: $r
|
|
111
|
-
}, _e = "/api/runtime_groups/{controlPlaneId}",
|
|
111
|
+
}, _e = "/api/runtime_groups/{controlPlaneId}", Ie = "/{workspace}", Te = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
114
114
|
all: `${_e}/consumer_groups`,
|
|
@@ -116,9 +116,9 @@ const ft = {
|
|
|
116
116
|
oneForConsumer: `${_e}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
117
117
|
},
|
|
118
118
|
kongManager: {
|
|
119
|
-
all: `${
|
|
120
|
-
forConsumer: `${
|
|
121
|
-
oneForConsumer: `${
|
|
119
|
+
all: `${Ie}/consumer_groups?counter=true`,
|
|
120
|
+
forConsumer: `${Ie}/consumers/{consumerId}/consumer_groups`,
|
|
121
|
+
oneForConsumer: `${Ie}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
form: {
|
|
@@ -131,16 +131,16 @@ const ft = {
|
|
|
131
131
|
getConsumers: `${_e}/consumer_groups/{id}/consumers`
|
|
132
132
|
},
|
|
133
133
|
kongManager: {
|
|
134
|
-
consumersList: `${
|
|
135
|
-
create: `${
|
|
136
|
-
edit: `${
|
|
137
|
-
addConsumer: `${
|
|
138
|
-
removeConsumer: `${
|
|
139
|
-
getConsumers: `${
|
|
134
|
+
consumersList: `${Ie}/consumers`,
|
|
135
|
+
create: `${Ie}/consumer_groups`,
|
|
136
|
+
edit: `${Ie}/consumer_groups/{id}`,
|
|
137
|
+
addConsumer: `${Ie}/consumer_groups/{id}/consumers`,
|
|
138
|
+
removeConsumer: `${Ie}/consumer_groups/{id}/consumers/{consumerId}`,
|
|
139
|
+
getConsumers: `${Ie}/consumer_groups/{id}/consumers`
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var vn = /* @__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))(vn || {}), rt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(rt || {}), Fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Fe || {}), ee = /* @__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))(ee || {}),
|
|
143
|
+
var vn = /* @__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))(vn || {}), rt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(rt || {}), Fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Fe || {}), ee = /* @__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))(ee || {}), ye = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ye || {});
|
|
144
144
|
function Tr() {
|
|
145
145
|
return {
|
|
146
146
|
getAxiosInstance: (e = {}) => {
|
|
@@ -177,7 +177,7 @@ function jr() {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const ht = "khcp-user-table-preferences", Mr = {
|
|
181
181
|
pageSize: 30,
|
|
182
182
|
sortColumnKey: void 0,
|
|
183
183
|
sortColumnOrder: void 0
|
|
@@ -192,14 +192,14 @@ function Or() {
|
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
}, n = () => {
|
|
195
|
-
const t = e(localStorage.getItem(
|
|
195
|
+
const t = e(localStorage.getItem(ht));
|
|
196
196
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
197
197
|
};
|
|
198
198
|
return {
|
|
199
199
|
setTablePreferences: (t, r) => {
|
|
200
200
|
try {
|
|
201
201
|
const a = n();
|
|
202
|
-
a.set(t, r), localStorage.setItem(
|
|
202
|
+
a.set(t, r), localStorage.setItem(ht, JSON.stringify(Object.fromEntries(a.entries())));
|
|
203
203
|
} catch (a) {
|
|
204
204
|
console.error("useTablePreferences(setTablePreferences)", a);
|
|
205
205
|
}
|
|
@@ -209,7 +209,7 @@ function Or() {
|
|
|
209
209
|
return (r == null ? void 0 : r.get(t)) || void 0 || Mr;
|
|
210
210
|
},
|
|
211
211
|
deleteAllTablePreferences: () => {
|
|
212
|
-
localStorage.removeItem(
|
|
212
|
+
localStorage.removeItem(ht);
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -313,7 +313,7 @@ const Er = {
|
|
|
313
313
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
314
314
|
confirmText: "Yes, disable"
|
|
315
315
|
}
|
|
316
|
-
},
|
|
316
|
+
}, Rr = {
|
|
317
317
|
global: Er,
|
|
318
318
|
deleteModal: Nr,
|
|
319
319
|
baseForm: Fr,
|
|
@@ -325,10 +325,10 @@ const Er = {
|
|
|
325
325
|
toggleModal: Pr
|
|
326
326
|
};
|
|
327
327
|
function jt() {
|
|
328
|
-
const e =
|
|
328
|
+
const e = yn("en-us", Rr);
|
|
329
329
|
return {
|
|
330
330
|
i18n: e,
|
|
331
|
-
i18nT:
|
|
331
|
+
i18nT: hn(e)
|
|
332
332
|
// Translation component <i18n-t>
|
|
333
333
|
};
|
|
334
334
|
}
|
|
@@ -376,70 +376,70 @@ function bn() {
|
|
|
376
376
|
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Vr(e, n, t, r = {
|
|
380
380
|
fetchedItemsKey: "data",
|
|
381
381
|
searchKeys: ["id"]
|
|
382
382
|
}) {
|
|
383
383
|
t || (t = "100");
|
|
384
384
|
const { axiosInstance: a } = Tt({
|
|
385
385
|
headers: e.requestHeaders
|
|
386
|
-
}), { i18n: { t: i } } = jt(), { debounce: o } = jr(), s = o(async (
|
|
387
|
-
await Y(
|
|
388
|
-
}, 200), l = O(!1), u = O(""), d = O(""), c = O([]),
|
|
389
|
-
let
|
|
390
|
-
e.app === "konnect" ?
|
|
391
|
-
const { isValidUuid:
|
|
386
|
+
}), { i18n: { t: i } } = jt(), { debounce: o } = jr(), s = o(async (v) => {
|
|
387
|
+
await Y(v);
|
|
388
|
+
}, 200), l = O(!1), u = O(""), d = O(""), c = O([]), m = O([]), p = O(void 0), _ = h(n);
|
|
389
|
+
let k = `${e.apiBaseUrl}${_}`;
|
|
390
|
+
e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
391
|
+
const { isValidUuid: I } = bn(), R = async () => {
|
|
392
392
|
try {
|
|
393
393
|
l.value = !0;
|
|
394
|
-
const { data:
|
|
395
|
-
|
|
394
|
+
const { data: v } = await a.get(`${k}?size=${t}`);
|
|
395
|
+
v != null && v.next || (p.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in v ? v[r.fetchedItemsKey] : [], c.value = m.value;
|
|
396
396
|
} catch {
|
|
397
397
|
c.value = [], u.value = i("debouncedFilter.errors.fetch");
|
|
398
398
|
} finally {
|
|
399
399
|
l.value = !1;
|
|
400
400
|
}
|
|
401
|
-
}, K = O(""), Y = async (
|
|
402
|
-
var
|
|
403
|
-
if (K.value !==
|
|
404
|
-
if (K.value =
|
|
401
|
+
}, K = O(""), Y = async (v) => {
|
|
402
|
+
var g, y, F;
|
|
403
|
+
if (K.value !== v)
|
|
404
|
+
if (K.value = v || "", p.value === void 0)
|
|
405
405
|
try {
|
|
406
406
|
if (l.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
407
|
-
let L =
|
|
408
|
-
|
|
409
|
-
const { data:
|
|
410
|
-
r.fetchedItemsKey in
|
|
411
|
-
} else if (
|
|
407
|
+
let L = k + "";
|
|
408
|
+
v && (L += `/${v}`);
|
|
409
|
+
const { data: x } = await a.get(`${L}?size=${t}`);
|
|
410
|
+
r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
|
|
411
|
+
} else if (v) {
|
|
412
412
|
const L = [];
|
|
413
|
-
|
|
414
|
-
const { data: E } = await a.get(`${
|
|
413
|
+
I(v) && r.searchKeys.includes("id") ? L.push((async () => {
|
|
414
|
+
const { data: E } = await a.get(`${k}/${v}`);
|
|
415
415
|
return [E[r.fetchedItemsKey] ?? E];
|
|
416
416
|
})()) : L.push(
|
|
417
417
|
...r.searchKeys.filter((E) => E !== "id").map(async (E) => {
|
|
418
|
-
const { data:
|
|
419
|
-
return
|
|
418
|
+
const { data: C } = await a.get(`${k}?${E}=${v}`);
|
|
419
|
+
return C[r.fetchedItemsKey];
|
|
420
420
|
})
|
|
421
421
|
);
|
|
422
|
-
const
|
|
423
|
-
c.value = [], (
|
|
424
|
-
var
|
|
425
|
-
(
|
|
422
|
+
const x = await Promise.all(L), z = /* @__PURE__ */ new Set();
|
|
423
|
+
c.value = [], (g = x == null ? void 0 : x.forEach) == null || g.call(x, (E) => {
|
|
424
|
+
var C;
|
|
425
|
+
(C = E == null ? void 0 : E.forEach) == null || C.call(E, (S) => {
|
|
426
426
|
z.has(S.id) || (z.add(S.id), c.value.push(S));
|
|
427
427
|
});
|
|
428
428
|
});
|
|
429
429
|
} else
|
|
430
|
-
c.value =
|
|
430
|
+
c.value = m.value;
|
|
431
431
|
} catch (L) {
|
|
432
|
-
((
|
|
432
|
+
((y = L == null ? void 0 : L.response) == null ? void 0 : y.status) === 404 ? d.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
|
|
433
433
|
} finally {
|
|
434
434
|
l.value = !1;
|
|
435
435
|
}
|
|
436
436
|
else
|
|
437
|
-
l.value = !0, d.value = "",
|
|
438
|
-
var
|
|
437
|
+
l.value = !0, d.value = "", v ? (c.value = (F = p.value) == null ? void 0 : F.filter((L) => {
|
|
438
|
+
var x;
|
|
439
439
|
let z = !1;
|
|
440
440
|
for (const E of r.searchKeys) {
|
|
441
|
-
const
|
|
442
|
-
|
|
441
|
+
const C = typeof L[E] == "string" ? (x = L[E]) == null ? void 0 : x.toLowerCase() : L[E];
|
|
442
|
+
C != null && C.includes(v.toLowerCase()) && (z = !0);
|
|
443
443
|
}
|
|
444
444
|
return z;
|
|
445
445
|
}), (!c.value || !c.value.length) && (d.value = i("debouncedFilter.errors.invalid"))) : c.value = p.value, l.value = !1;
|
|
@@ -450,12 +450,12 @@ function Rr(e, n, t, r = {
|
|
|
450
450
|
validationError: d,
|
|
451
451
|
results: c,
|
|
452
452
|
allRecords: p,
|
|
453
|
-
loadItems:
|
|
453
|
+
loadItems: R,
|
|
454
454
|
debouncedQueryChange: s
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
457
|
function Dr(e, n) {
|
|
458
|
-
const t = h(n), r =
|
|
458
|
+
const t = h(n), r = A(
|
|
459
459
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
460
460
|
);
|
|
461
461
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
@@ -502,17 +502,17 @@ function Gr(e) {
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
function kn(e, n) {
|
|
505
|
-
const t = O(h(e)), r = O(h(n)), a =
|
|
505
|
+
const t = O(h(e)), r = O(h(n)), a = A(
|
|
506
506
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
507
|
-
), i =
|
|
507
|
+
), i = A(
|
|
508
508
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
509
509
|
);
|
|
510
510
|
return (o) => {
|
|
511
|
-
const { page: s, pageSize: l, offset: u, sortColumnKey: d, sortColumnOrder: c, query:
|
|
511
|
+
const { page: s, pageSize: l, offset: u, sortColumnKey: d, sortColumnOrder: c, query: m } = o;
|
|
512
512
|
try {
|
|
513
513
|
let p = new URL(i.value.href);
|
|
514
|
-
return a.value &&
|
|
515
|
-
p.searchParams.append(
|
|
514
|
+
return a.value && m ? (p.search = "", p = t.value.isExactMatch ? new URL(`${p.href}/${m}/`) : new URL(`${p.href}?filter[name][contains]=${m}`)) : (a.value || new URLSearchParams(m).forEach((_, k) => {
|
|
515
|
+
p.searchParams.append(k, _);
|
|
516
516
|
}), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(l))), u && s !== 1 && p.searchParams.append("offset", String(u)), p.href;
|
|
517
517
|
} catch (p) {
|
|
518
518
|
return console.error("RouteList(fetcher)", p), r.value;
|
|
@@ -520,48 +520,54 @@ function kn(e, n) {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
function Hr(e, n, t = "data") {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
var r;
|
|
524
|
+
const a = h(n), { axiosInstance: i } = Tt({
|
|
525
|
+
...e.axiosRequestConfig,
|
|
526
|
+
headers: { ...(r = e.axiosRequestConfig) == null ? void 0 : r.headers, ...e.requestHeaders }
|
|
527
|
+
}), o = kn(e, a), s = O({
|
|
526
528
|
status: Fe.Idle
|
|
527
529
|
});
|
|
528
|
-
return { fetcher: async (
|
|
530
|
+
return { fetcher: async (l) => {
|
|
531
|
+
var u;
|
|
529
532
|
try {
|
|
530
|
-
|
|
531
|
-
let
|
|
532
|
-
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
533
|
+
s.value = { status: Fe.Loading };
|
|
534
|
+
let d = o(l);
|
|
535
|
+
d.includes("filter[name]") && (d = `${d}&page[size]=${l.pageSize}&page[number]=${l.page}`);
|
|
536
|
+
const c = await i.get(d);
|
|
537
|
+
if (c.status >= 400)
|
|
538
|
+
throw c;
|
|
539
|
+
const m = c.data, p = t && t.replace(/[^\w-_]/gi, "");
|
|
540
|
+
let _;
|
|
541
|
+
m[p] && Array.isArray(m[p]) ? _ = m[p] : Array.isArray(m) ? _ = m : _ = Object.keys(m).length ? [m] : [];
|
|
542
|
+
const k = {
|
|
543
|
+
data: _,
|
|
544
|
+
total: _.length,
|
|
545
|
+
...m.offset ? {
|
|
540
546
|
pagination: {
|
|
541
|
-
offset:
|
|
547
|
+
offset: m.offset
|
|
542
548
|
}
|
|
543
549
|
} : null
|
|
544
550
|
};
|
|
545
|
-
return
|
|
551
|
+
return s.value = {
|
|
546
552
|
status: Fe.Idle,
|
|
547
|
-
response:
|
|
548
|
-
},
|
|
549
|
-
} catch (
|
|
550
|
-
const
|
|
553
|
+
response: k
|
|
554
|
+
}, k;
|
|
555
|
+
} catch (d) {
|
|
556
|
+
const c = {
|
|
551
557
|
data: [],
|
|
552
558
|
total: 0
|
|
553
559
|
};
|
|
554
|
-
return
|
|
560
|
+
return l.query && (((u = d.response) == null ? void 0 : u.status) === 404 || d.status === 404) ? (s.value = {
|
|
555
561
|
status: Fe.NoResults,
|
|
556
|
-
response:
|
|
557
|
-
error:
|
|
558
|
-
},
|
|
562
|
+
response: c,
|
|
563
|
+
error: d.response ? d : { response: d }
|
|
564
|
+
}, c) : (s.value = {
|
|
559
565
|
status: Fe.Error,
|
|
560
|
-
response:
|
|
561
|
-
error:
|
|
562
|
-
},
|
|
566
|
+
response: c,
|
|
567
|
+
error: d.response ? d : { response: d }
|
|
568
|
+
}, c);
|
|
563
569
|
}
|
|
564
|
-
}, fetcherState:
|
|
570
|
+
}, fetcherState: s };
|
|
565
571
|
}
|
|
566
572
|
function Jr() {
|
|
567
573
|
const e = (t, r = "_") => t ? t.split(r).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
|
|
@@ -630,12 +636,12 @@ function ta(e) {
|
|
|
630
636
|
return xe(e, (a) => {
|
|
631
637
|
a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
|
|
632
638
|
}), {
|
|
633
|
-
isTruncated:
|
|
639
|
+
isTruncated: A(() => n.value < t.value)
|
|
634
640
|
};
|
|
635
641
|
}
|
|
636
642
|
const se = {
|
|
637
643
|
useAxios: Tt,
|
|
638
|
-
useDebouncedFilter:
|
|
644
|
+
useDebouncedFilter: Vr,
|
|
639
645
|
useDeleteUrlBuilder: Dr,
|
|
640
646
|
useErrors: zr,
|
|
641
647
|
useExternalLinkCreator: Gr,
|
|
@@ -666,10 +672,10 @@ const se = {
|
|
|
666
672
|
}
|
|
667
673
|
},
|
|
668
674
|
setup(e) {
|
|
669
|
-
const n = e, { i18n: { t } } = se.useI18n(), { convertKeyToTitle: r } = se.useStringHelpers(), a =
|
|
675
|
+
const n = e, { i18n: { t } } = se.useI18n(), { convertKeyToTitle: r } = se.useStringHelpers(), a = A(() => n.item.key ?? "json-array-item"), i = A(() => n.item.value ?? n.item), o = A(() => {
|
|
670
676
|
const l = JSON.parse(JSON.stringify(i.value));
|
|
671
677
|
return n.isArrayItem && delete l.name, l;
|
|
672
|
-
}), s =
|
|
678
|
+
}), s = A(() => {
|
|
673
679
|
var l;
|
|
674
680
|
return n.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
675
681
|
});
|
|
@@ -680,7 +686,7 @@ const se = {
|
|
|
680
686
|
e.isArrayItem ? (f(), j("legend", na, [
|
|
681
687
|
B("b", null, N(s.value), 1)
|
|
682
688
|
])) : W("", !0),
|
|
683
|
-
(f(!0), j(ve, null,
|
|
689
|
+
(f(!0), j(ve, null, he(Object.keys(o.value), (d, c) => (f(), D(In, {
|
|
684
690
|
key: `${a.value}-property-${c}`,
|
|
685
691
|
item: {
|
|
686
692
|
key: d,
|
|
@@ -746,10 +752,10 @@ const se = {
|
|
|
746
752
|
}, 8, ["appearance"]);
|
|
747
753
|
};
|
|
748
754
|
}
|
|
749
|
-
}), sa = "#0044f4", la = "#e0e4ea", ua = "#3a3f51", ca = "#afb7c5", da = "1px", pa = "20px", fa = { class: "config-card-details-row" }, ma = ["data-testid"], ga = ["data-testid"],
|
|
755
|
+
}), sa = "#0044f4", la = "#e0e4ea", ua = "#3a3f51", ca = "#afb7c5", da = "1px", pa = "20px", fa = { class: "config-card-details-row" }, ma = ["data-testid"], ga = ["data-testid"], ya = ["data-testid"], ha = ["data-testid"], va = { key: 1 }, ba = ["data-testid"], ka = ["data-testid"], Ca = ["data-testid"], wa = ["data-testid"], _a = {
|
|
750
756
|
name: "ConfigCardItem",
|
|
751
757
|
components: { JsonCardItem: _n, StatusBadge: ia, InternalLinkItem: oa }
|
|
752
|
-
},
|
|
758
|
+
}, Ia = /* @__PURE__ */ X({
|
|
753
759
|
..._a,
|
|
754
760
|
props: {
|
|
755
761
|
item: {
|
|
@@ -769,13 +775,13 @@ const se = {
|
|
|
769
775
|
},
|
|
770
776
|
emits: ["navigation-click"],
|
|
771
777
|
setup(e, { emit: n }) {
|
|
772
|
-
gn((
|
|
778
|
+
gn((_) => ({
|
|
773
779
|
"07753575": d.value ? "none" : `solid ${h(da)} ${h(la)}`,
|
|
774
780
|
"32d44ea8": u.value && s.value ? "block" : "flex",
|
|
775
781
|
"5036b738": u.value && s.value ? "100%" : t.slim ? "50%" : "25%",
|
|
776
782
|
"5038fd13": u.value && s.value ? "100%" : t.slim ? "50%" : "75%"
|
|
777
783
|
}));
|
|
778
|
-
const t = e, r = n, a = St(), { i18n: { t: i, formatUnixTimeStamp: o } } = se.useI18n(), s =
|
|
784
|
+
const t = e, r = n, a = St(), { i18n: { t: i, formatUnixTimeStamp: o } } = se.useI18n(), s = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || a["label-tooltip"])), u = A(() => t.item.type === ee.Json || t.item.type === ee.JsonArray), d = A(() => t.item.type === ee.JsonArray), c = A(() => {
|
|
779
785
|
switch (t.item.type) {
|
|
780
786
|
case ee.ID:
|
|
781
787
|
return {
|
|
@@ -845,8 +851,8 @@ const se = {
|
|
|
845
851
|
attrs: {
|
|
846
852
|
"data-testid": `${t.item.key}-internal-link`,
|
|
847
853
|
item: t.item,
|
|
848
|
-
onNavigationClick: (
|
|
849
|
-
r("navigation-click",
|
|
854
|
+
onNavigationClick: (_) => {
|
|
855
|
+
r("navigation-click", _);
|
|
850
856
|
}
|
|
851
857
|
}
|
|
852
858
|
};
|
|
@@ -885,16 +891,16 @@ const se = {
|
|
|
885
891
|
text: t.item.value
|
|
886
892
|
};
|
|
887
893
|
}
|
|
888
|
-
}),
|
|
889
|
-
return (
|
|
890
|
-
const
|
|
894
|
+
}), m = O(), { isTruncated: p } = se.useTruncationDetector(m);
|
|
895
|
+
return (_, k) => {
|
|
896
|
+
const I = P("KLabel"), R = P("KBadge"), K = P("KCopy"), Y = P("KTooltip");
|
|
891
897
|
return f(), j("div", fa, [
|
|
892
898
|
B("div", {
|
|
893
899
|
class: "config-card-details-label",
|
|
894
900
|
"data-testid": `${e.item.key}-label`
|
|
895
901
|
}, [
|
|
896
|
-
te(
|
|
897
|
-
T(
|
|
902
|
+
te(_.$slots, "label", { item: e.item }, () => [
|
|
903
|
+
T(I, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
|
|
898
904
|
default: b(() => [
|
|
899
905
|
Q(N(e.item.label) + " ", 1)
|
|
900
906
|
]),
|
|
@@ -906,7 +912,7 @@ const se = {
|
|
|
906
912
|
B("div", {
|
|
907
913
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
908
914
|
}, [
|
|
909
|
-
te(
|
|
915
|
+
te(_.$slots, "label-tooltip", {}, () => [
|
|
910
916
|
Q(N(e.item.tooltip), 1)
|
|
911
917
|
], !0)
|
|
912
918
|
], 8, ga)
|
|
@@ -920,7 +926,7 @@ const se = {
|
|
|
920
926
|
class: "config-card-details-value",
|
|
921
927
|
"data-testid": `${e.item.key}-property-value`
|
|
922
928
|
}, [
|
|
923
|
-
te(
|
|
929
|
+
te(_.$slots, e.item.key, {
|
|
924
930
|
rowValue: e.item.value
|
|
925
931
|
}, () => [
|
|
926
932
|
s.value ? (f(), j("div", va, [
|
|
@@ -930,15 +936,15 @@ const se = {
|
|
|
930
936
|
key: 0,
|
|
931
937
|
"data-testid": `${e.item.key}-badge-tags`
|
|
932
938
|
}, [
|
|
933
|
-
(f(!0), j(ve, null,
|
|
934
|
-
key: `${e.item.key}-badge-tag-${
|
|
939
|
+
(f(!0), j(ve, null, he(e.item.value, (v, g) => (f(), D(R, {
|
|
940
|
+
key: `${e.item.key}-badge-tag-${g}`,
|
|
935
941
|
class: "config-badge",
|
|
936
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
937
|
-
tooltip:
|
|
942
|
+
"data-testid": `${e.item.key}-badge-tag-${g}`,
|
|
943
|
+
tooltip: v,
|
|
938
944
|
"truncation-tooltip": ""
|
|
939
945
|
}, {
|
|
940
946
|
default: b(() => [
|
|
941
|
-
Q(N(
|
|
947
|
+
Q(N(v), 1)
|
|
942
948
|
]),
|
|
943
949
|
_: 2
|
|
944
950
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -948,24 +954,24 @@ const se = {
|
|
|
948
954
|
class: "copy-uuid-array",
|
|
949
955
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
950
956
|
}, [
|
|
951
|
-
(f(!0), j(ve, null,
|
|
952
|
-
key: `${e.item.key}-copy-uuid-${
|
|
953
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
954
|
-
text:
|
|
957
|
+
(f(!0), j(ve, null, he(e.item.value, (v, g) => (f(), D(K, Ir(c.value.childAttrs, {
|
|
958
|
+
key: `${e.item.key}-copy-uuid-${g}`,
|
|
959
|
+
"data-testid": `${e.item.key}-copy-uuid-${g}`,
|
|
960
|
+
text: v
|
|
955
961
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
956
962
|
], 8, ka)) : c.value.additionalComponent === "KMethodBadge" ? (f(), j("div", {
|
|
957
963
|
key: 2,
|
|
958
964
|
class: "method-badge-array",
|
|
959
965
|
"data-testid": `${e.item.key}-badge-methods`
|
|
960
966
|
}, [
|
|
961
|
-
(f(!0), j(ve, null,
|
|
962
|
-
key: `${e.item.key}-badge-method-${
|
|
963
|
-
appearance: Object.values(h(xr)).includes(
|
|
967
|
+
(f(!0), j(ve, null, he(e.item.value, (v, g) => (f(), D(R, {
|
|
968
|
+
key: `${e.item.key}-badge-method-${g}`,
|
|
969
|
+
appearance: Object.values(h(xr)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
964
970
|
class: "config-badge",
|
|
965
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
971
|
+
"data-testid": `${e.item.key}-badge-method-${g}`
|
|
966
972
|
}, {
|
|
967
973
|
default: b(() => [
|
|
968
|
-
Q(N(
|
|
974
|
+
Q(N(v), 1)
|
|
969
975
|
]),
|
|
970
976
|
_: 2
|
|
971
977
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -974,11 +980,11 @@ const se = {
|
|
|
974
980
|
key: 3,
|
|
975
981
|
"data-testid": `${t.item.key}-json-array-content`
|
|
976
982
|
}, [
|
|
977
|
-
(f(!0), j(ve, null,
|
|
978
|
-
key: `json-array-item-${
|
|
979
|
-
index:
|
|
983
|
+
(f(!0), j(ve, null, he(e.item.value, (v, g) => (f(), D(_n, {
|
|
984
|
+
key: `json-array-item-${g}`,
|
|
985
|
+
index: g,
|
|
980
986
|
"is-array-item": "",
|
|
981
|
-
item:
|
|
987
|
+
item: v
|
|
982
988
|
}, null, 8, ["index", "item"]))), 128))
|
|
983
989
|
], 8, wa)) : (f(), D(Y, {
|
|
984
990
|
key: 4,
|
|
@@ -987,7 +993,7 @@ const se = {
|
|
|
987
993
|
default: b(() => [
|
|
988
994
|
B("span", {
|
|
989
995
|
ref_key: "textContent",
|
|
990
|
-
ref:
|
|
996
|
+
ref: m,
|
|
991
997
|
class: Me(["attrs-data-text", { truncated: e.truncated }])
|
|
992
998
|
}, N(c.value.text), 3)
|
|
993
999
|
]),
|
|
@@ -999,13 +1005,13 @@ const se = {
|
|
|
999
1005
|
])) : (f(), j("div", {
|
|
1000
1006
|
key: 0,
|
|
1001
1007
|
"data-testid": `${e.item.key}-no-value`
|
|
1002
|
-
}, " – ", 8,
|
|
1008
|
+
}, " – ", 8, ha))
|
|
1003
1009
|
], !0)
|
|
1004
|
-
], 8,
|
|
1010
|
+
], 8, ya)
|
|
1005
1011
|
]);
|
|
1006
1012
|
};
|
|
1007
1013
|
}
|
|
1008
|
-
}),
|
|
1014
|
+
}), In = /* @__PURE__ */ be(Ia, [["__scopeId", "data-v-d056663c"]]), xa = { class: "json-config" }, Aa = {
|
|
1009
1015
|
key: 0,
|
|
1010
1016
|
class: "json-endpoint"
|
|
1011
1017
|
}, xn = /* @__PURE__ */ X({
|
|
@@ -1039,7 +1045,7 @@ const se = {
|
|
|
1039
1045
|
gn((a) => ({
|
|
1040
1046
|
"954d3eca": `${r.value}ch`
|
|
1041
1047
|
}));
|
|
1042
|
-
const n = e, t =
|
|
1048
|
+
const n = e, t = A(() => n.jsonRecord), r = A(() => {
|
|
1043
1049
|
var a;
|
|
1044
1050
|
if (!n.fetcherUrl)
|
|
1045
1051
|
return 0;
|
|
@@ -1049,7 +1055,7 @@ const se = {
|
|
|
1049
1055
|
return (a, i) => {
|
|
1050
1056
|
const o = P("KBadge"), s = P("KCodeBlock");
|
|
1051
1057
|
return f(), j("div", xa, [
|
|
1052
|
-
n.fetcherUrl ? (f(), j("div",
|
|
1058
|
+
n.fetcherUrl ? (f(), j("div", Aa, [
|
|
1053
1059
|
T(o, {
|
|
1054
1060
|
appearance: n.requestMethod
|
|
1055
1061
|
}, {
|
|
@@ -1079,14 +1085,14 @@ const se = {
|
|
|
1079
1085
|
}
|
|
1080
1086
|
});
|
|
1081
1087
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1082
|
-
function
|
|
1088
|
+
function An(e) {
|
|
1083
1089
|
return typeof e > "u" || e === null;
|
|
1084
1090
|
}
|
|
1085
1091
|
function Sa(e) {
|
|
1086
1092
|
return typeof e == "object" && e !== null;
|
|
1087
1093
|
}
|
|
1088
1094
|
function $a(e) {
|
|
1089
|
-
return Array.isArray(e) ? e :
|
|
1095
|
+
return Array.isArray(e) ? e : An(e) ? [] : [e];
|
|
1090
1096
|
}
|
|
1091
1097
|
function Ta(e, n) {
|
|
1092
1098
|
var t, r, a, i;
|
|
@@ -1104,7 +1110,7 @@ function ja(e, n) {
|
|
|
1104
1110
|
function Ma(e) {
|
|
1105
1111
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1106
1112
|
}
|
|
1107
|
-
var Oa =
|
|
1113
|
+
var Oa = An, Ea = Sa, Na = $a, Fa = ja, qa = Ma, Ka = Ta, ie = {
|
|
1108
1114
|
isNothing: Oa,
|
|
1109
1115
|
isObject: Ea,
|
|
1110
1116
|
toArray: Na,
|
|
@@ -1184,7 +1190,7 @@ var Ba = La, Ua = [
|
|
|
1184
1190
|
"sequence",
|
|
1185
1191
|
"mapping"
|
|
1186
1192
|
];
|
|
1187
|
-
function
|
|
1193
|
+
function Ra(e) {
|
|
1188
1194
|
var n = {};
|
|
1189
1195
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1190
1196
|
e[t].forEach(function(r) {
|
|
@@ -1192,7 +1198,7 @@ function Va(e) {
|
|
|
1192
1198
|
});
|
|
1193
1199
|
}), n;
|
|
1194
1200
|
}
|
|
1195
|
-
function
|
|
1201
|
+
function Va(e, n) {
|
|
1196
1202
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1197
1203
|
if (Ua.indexOf(t) === -1)
|
|
1198
1204
|
throw new fe('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
@@ -1200,10 +1206,10 @@ function Ra(e, n) {
|
|
|
1200
1206
|
return !0;
|
|
1201
1207
|
}, this.construct = n.construct || function(t) {
|
|
1202
1208
|
return t;
|
|
1203
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1209
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Ra(n.styleAliases || null), Pa.indexOf(this.kind) === -1)
|
|
1204
1210
|
throw new fe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1205
1211
|
}
|
|
1206
|
-
var le =
|
|
1212
|
+
var le = Va;
|
|
1207
1213
|
function Zt(e, n) {
|
|
1208
1214
|
var t = [];
|
|
1209
1215
|
return e[n].forEach(function(r) {
|
|
@@ -1521,7 +1527,7 @@ function uo(e) {
|
|
|
1521
1527
|
return e === null ? !1 : Bn.exec(e) !== null || Un.exec(e) !== null;
|
|
1522
1528
|
}
|
|
1523
1529
|
function co(e) {
|
|
1524
|
-
var n, t, r, a, i, o, s, l = 0, u = null, d, c,
|
|
1530
|
+
var n, t, r, a, i, o, s, l = 0, u = null, d, c, m;
|
|
1525
1531
|
if (n = Bn.exec(e), n === null && (n = Un.exec(e)), n === null)
|
|
1526
1532
|
throw new Error("Date resolve error");
|
|
1527
1533
|
if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
|
|
@@ -1531,7 +1537,7 @@ function co(e) {
|
|
|
1531
1537
|
l += "0";
|
|
1532
1538
|
l = +l;
|
|
1533
1539
|
}
|
|
1534
|
-
return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)),
|
|
1540
|
+
return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), m = new Date(Date.UTC(t, r, a, i, o, s, l)), u && m.setTime(m.getTime() - u), m;
|
|
1535
1541
|
}
|
|
1536
1542
|
function po(e) {
|
|
1537
1543
|
return e.toISOString();
|
|
@@ -1546,7 +1552,7 @@ var Pn = new le("tag:yaml.org,2002:timestamp", {
|
|
|
1546
1552
|
function fo(e) {
|
|
1547
1553
|
return e === "<<" || e === null;
|
|
1548
1554
|
}
|
|
1549
|
-
var
|
|
1555
|
+
var Rn = new le("tag:yaml.org,2002:merge", {
|
|
1550
1556
|
kind: "scalar",
|
|
1551
1557
|
resolve: fo
|
|
1552
1558
|
}), Mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1569,21 +1575,21 @@ function go(e) {
|
|
|
1569
1575
|
n % 4 === 0 && n && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(n));
|
|
1570
1576
|
return t = a % 4 * 6, t === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : t === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : t === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
1571
1577
|
}
|
|
1572
|
-
function
|
|
1578
|
+
function yo(e) {
|
|
1573
1579
|
var n = "", t = 0, r, a, i = e.length, o = Mt;
|
|
1574
1580
|
for (r = 0; r < i; r++)
|
|
1575
1581
|
r % 3 === 0 && r && (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]), t = (t << 8) + e[r];
|
|
1576
1582
|
return a = i % 3, a === 0 ? (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]) : a === 2 ? (n += o[t >> 10 & 63], n += o[t >> 4 & 63], n += o[t << 2 & 63], n += o[64]) : a === 1 && (n += o[t >> 2 & 63], n += o[t << 4 & 63], n += o[64], n += o[64]), n;
|
|
1577
1583
|
}
|
|
1578
|
-
function
|
|
1584
|
+
function ho(e) {
|
|
1579
1585
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1580
1586
|
}
|
|
1581
|
-
var
|
|
1587
|
+
var Vn = new le("tag:yaml.org,2002:binary", {
|
|
1582
1588
|
kind: "scalar",
|
|
1583
1589
|
resolve: mo,
|
|
1584
1590
|
construct: go,
|
|
1585
|
-
predicate:
|
|
1586
|
-
represent:
|
|
1591
|
+
predicate: ho,
|
|
1592
|
+
represent: yo
|
|
1587
1593
|
}), vo = Object.prototype.hasOwnProperty, bo = Object.prototype.toString;
|
|
1588
1594
|
function ko(e) {
|
|
1589
1595
|
if (e === null)
|
|
@@ -1626,7 +1632,7 @@ function _o(e) {
|
|
|
1626
1632
|
}
|
|
1627
1633
|
return !0;
|
|
1628
1634
|
}
|
|
1629
|
-
function
|
|
1635
|
+
function Io(e) {
|
|
1630
1636
|
if (e === null)
|
|
1631
1637
|
return [];
|
|
1632
1638
|
var n, t, r, a, i, o = e;
|
|
@@ -1637,9 +1643,9 @@ function Ao(e) {
|
|
|
1637
1643
|
var zn = new le("tag:yaml.org,2002:pairs", {
|
|
1638
1644
|
kind: "sequence",
|
|
1639
1645
|
resolve: _o,
|
|
1640
|
-
construct:
|
|
1646
|
+
construct: Io
|
|
1641
1647
|
}), xo = Object.prototype.hasOwnProperty;
|
|
1642
|
-
function
|
|
1648
|
+
function Ao(e) {
|
|
1643
1649
|
if (e === null)
|
|
1644
1650
|
return !0;
|
|
1645
1651
|
var n, t = e;
|
|
@@ -1653,15 +1659,15 @@ function So(e) {
|
|
|
1653
1659
|
}
|
|
1654
1660
|
var Gn = new le("tag:yaml.org,2002:set", {
|
|
1655
1661
|
kind: "mapping",
|
|
1656
|
-
resolve:
|
|
1662
|
+
resolve: Ao,
|
|
1657
1663
|
construct: So
|
|
1658
1664
|
}), Ot = Ln.extend({
|
|
1659
1665
|
implicit: [
|
|
1660
1666
|
Pn,
|
|
1661
|
-
|
|
1667
|
+
Rn
|
|
1662
1668
|
],
|
|
1663
1669
|
explicit: [
|
|
1664
|
-
|
|
1670
|
+
Vn,
|
|
1665
1671
|
Dn,
|
|
1666
1672
|
zn,
|
|
1667
1673
|
Gn
|
|
@@ -1679,7 +1685,7 @@ function qe(e) {
|
|
|
1679
1685
|
function ge(e) {
|
|
1680
1686
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1681
1687
|
}
|
|
1682
|
-
function
|
|
1688
|
+
function Ve(e) {
|
|
1683
1689
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1684
1690
|
}
|
|
1685
1691
|
function Oo(e) {
|
|
@@ -1806,18 +1812,18 @@ function Nt(e, n) {
|
|
|
1806
1812
|
`, n - 1));
|
|
1807
1813
|
}
|
|
1808
1814
|
function Ko(e, n, t) {
|
|
1809
|
-
var r, a, i, o, s, l, u, d, c = e.kind,
|
|
1810
|
-
if (p = e.input.charCodeAt(e.position), ge(p) ||
|
|
1815
|
+
var r, a, i, o, s, l, u, d, c = e.kind, m = e.result, p;
|
|
1816
|
+
if (p = e.input.charCodeAt(e.position), ge(p) || Ve(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (a = e.input.charCodeAt(e.position + 1), ge(a) || t && Ve(a)))
|
|
1811
1817
|
return !1;
|
|
1812
1818
|
for (e.kind = "scalar", e.result = "", i = o = e.position, s = !1; p !== 0; ) {
|
|
1813
1819
|
if (p === 58) {
|
|
1814
|
-
if (a = e.input.charCodeAt(e.position + 1), ge(a) || t &&
|
|
1820
|
+
if (a = e.input.charCodeAt(e.position + 1), ge(a) || t && Ve(a))
|
|
1815
1821
|
break;
|
|
1816
1822
|
} else if (p === 35) {
|
|
1817
1823
|
if (r = e.input.charCodeAt(e.position - 1), ge(r))
|
|
1818
1824
|
break;
|
|
1819
1825
|
} else {
|
|
1820
|
-
if (e.position === e.lineStart && mt(e) || t &&
|
|
1826
|
+
if (e.position === e.lineStart && mt(e) || t && Ve(p))
|
|
1821
1827
|
break;
|
|
1822
1828
|
if (we(p))
|
|
1823
1829
|
if (l = e.line, u = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1830,7 +1836,7 @@ function Ko(e, n, t) {
|
|
|
1830
1836
|
}
|
|
1831
1837
|
s && (je(e, i, o, !1), Nt(e, e.line - l), i = o = e.position, s = !1), qe(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1832
1838
|
}
|
|
1833
|
-
return je(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result =
|
|
1839
|
+
return je(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = m, !1);
|
|
1834
1840
|
}
|
|
1835
1841
|
function Lo(e, n) {
|
|
1836
1842
|
var t, r, a;
|
|
@@ -1871,7 +1877,7 @@ function Bo(e, n) {
|
|
|
1871
1877
|
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
1872
1878
|
}
|
|
1873
1879
|
function Uo(e, n) {
|
|
1874
|
-
var t = !0, r, a, i, o = e.tag, s, l = e.anchor, u, d, c,
|
|
1880
|
+
var t = !0, r, a, i, o = e.tag, s, l = e.anchor, u, d, c, m, p, _ = /* @__PURE__ */ Object.create(null), k, I, R, K;
|
|
1875
1881
|
if (K = e.input.charCodeAt(e.position), K === 91)
|
|
1876
1882
|
d = 93, p = !1, s = [];
|
|
1877
1883
|
else if (K === 123)
|
|
@@ -1881,7 +1887,7 @@ function Uo(e, n) {
|
|
|
1881
1887
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), K = e.input.charCodeAt(++e.position); K !== 0; ) {
|
|
1882
1888
|
if (oe(e, !0, n), K = e.input.charCodeAt(e.position), K === d)
|
|
1883
1889
|
return e.position++, e.tag = o, e.anchor = l, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
1884
|
-
t ? K === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"),
|
|
1890
|
+
t ? K === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), I = k = R = null, c = m = !1, K === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (c = m = !0, e.position++, oe(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, ze(e, n, at, !1, !0), I = e.tag, k = e.result, oe(e, !0, n), K = e.input.charCodeAt(e.position), (m || e.line === r) && K === 58 && (c = !0, K = e.input.charCodeAt(++e.position), oe(e, !0, n), ze(e, n, at, !1, !0), R = e.result), p ? De(e, s, _, I, k, R, r, a, i) : c ? s.push(De(e, null, _, I, k, R, r, a, i)) : s.push(k), oe(e, !0, n), K = e.input.charCodeAt(e.position), K === 44 ? (t = !0, K = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1885
1891
|
}
|
|
1886
1892
|
M(e, "unexpected end of the stream within a flow collection");
|
|
1887
1893
|
}
|
|
@@ -1948,13 +1954,13 @@ function rn(e, n) {
|
|
|
1948
1954
|
}
|
|
1949
1955
|
return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1950
1956
|
}
|
|
1951
|
-
function
|
|
1952
|
-
var r, a, i, o, s, l, u = e.tag, d = e.anchor, c = {},
|
|
1957
|
+
function Ro(e, n, t) {
|
|
1958
|
+
var r, a, i, o, s, l, u = e.tag, d = e.anchor, c = {}, m = /* @__PURE__ */ Object.create(null), p = null, _ = null, k = null, I = !1, R = !1, K;
|
|
1953
1959
|
if (e.firstTabInLine !== -1)
|
|
1954
1960
|
return !1;
|
|
1955
1961
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), K = e.input.charCodeAt(e.position); K !== 0; ) {
|
|
1956
|
-
if (!
|
|
1957
|
-
K === 63 ? (
|
|
1962
|
+
if (!I && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (K === 63 || K === 58) && ge(r))
|
|
1963
|
+
K === 63 ? (I && (De(e, c, m, p, _, null, o, s, l), p = _ = k = null), R = !0, I = !0, a = !0) : I ? (I = !1, a = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, K = r;
|
|
1958
1964
|
else {
|
|
1959
1965
|
if (o = e.line, s = e.lineStart, l = e.position, !ze(e, t, Hn, !1, !0))
|
|
1960
1966
|
break;
|
|
@@ -1962,24 +1968,24 @@ function Vo(e, n, t) {
|
|
|
1962
1968
|
for (K = e.input.charCodeAt(e.position); qe(K); )
|
|
1963
1969
|
K = e.input.charCodeAt(++e.position);
|
|
1964
1970
|
if (K === 58)
|
|
1965
|
-
K = e.input.charCodeAt(++e.position), ge(K) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"),
|
|
1966
|
-
else if (
|
|
1971
|
+
K = e.input.charCodeAt(++e.position), ge(K) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (De(e, c, m, p, _, null, o, s, l), p = _ = k = null), R = !0, I = !1, a = !1, p = e.tag, _ = e.result;
|
|
1972
|
+
else if (R)
|
|
1967
1973
|
M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1968
1974
|
else
|
|
1969
1975
|
return e.tag = u, e.anchor = d, !0;
|
|
1970
|
-
} else if (
|
|
1976
|
+
} else if (R)
|
|
1971
1977
|
M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1972
1978
|
else
|
|
1973
1979
|
return e.tag = u, e.anchor = d, !0;
|
|
1974
1980
|
}
|
|
1975
|
-
if ((e.line === i || e.lineIndent > n) && (
|
|
1981
|
+
if ((e.line === i || e.lineIndent > n) && (I && (o = e.line, s = e.lineStart, l = e.position), ze(e, n, ot, !0, a) && (I ? _ = e.result : k = e.result), I || (De(e, c, m, p, _, k, o, s, l), p = _ = k = null), oe(e, !0, -1), K = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && K !== 0)
|
|
1976
1982
|
M(e, "bad indentation of a mapping entry");
|
|
1977
1983
|
else if (e.lineIndent < n)
|
|
1978
1984
|
break;
|
|
1979
1985
|
}
|
|
1980
|
-
return
|
|
1986
|
+
return I && De(e, c, m, p, _, null, o, s, l), R && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), R;
|
|
1981
1987
|
}
|
|
1982
|
-
function
|
|
1988
|
+
function Vo(e) {
|
|
1983
1989
|
var n, t = !1, r = !1, a, i, o;
|
|
1984
1990
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1985
1991
|
return !1;
|
|
@@ -2005,7 +2011,7 @@ function Do(e) {
|
|
|
2005
2011
|
var n, t;
|
|
2006
2012
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2007
2013
|
return !1;
|
|
2008
|
-
for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ge(t) && !
|
|
2014
|
+
for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ge(t) && !Ve(t); )
|
|
2009
2015
|
t = e.input.charCodeAt(++e.position);
|
|
2010
2016
|
return e.position === n && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2011
2017
|
}
|
|
@@ -2013,33 +2019,33 @@ function zo(e) {
|
|
|
2013
2019
|
var n, t, r;
|
|
2014
2020
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2015
2021
|
return !1;
|
|
2016
|
-
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ge(r) && !
|
|
2022
|
+
for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ge(r) && !Ve(r); )
|
|
2017
2023
|
r = e.input.charCodeAt(++e.position);
|
|
2018
2024
|
return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Oe.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2019
2025
|
}
|
|
2020
2026
|
function ze(e, n, t, r, a) {
|
|
2021
|
-
var i, o, s, l = 1, u = !1, d = !1, c,
|
|
2027
|
+
var i, o, s, l = 1, u = !1, d = !1, c, m, p, _, k, I;
|
|
2022
2028
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = ot === t || Jn === t, r && oe(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2023
|
-
for (;
|
|
2029
|
+
for (; Vo(e) || Do(e); )
|
|
2024
2030
|
oe(e, !0, -1) ? (u = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2025
|
-
if (s && (s = u || a), (l === 1 || ot === t) && (at === t || Hn === t ?
|
|
2031
|
+
if (s && (s = u || a), (l === 1 || ot === t) && (at === t || Hn === t ? k = n : k = n + 1, I = e.position - e.lineStart, l === 1 ? s && (rn(e, I) || Ro(e, I, k)) || Uo(e, k) ? d = !0 : (o && Po(e, k) || Lo(e, k) || Bo(e, k) ? d = !0 : zo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : Ko(e, k, at === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && rn(e, I))), e.tag === null)
|
|
2026
2032
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2027
2033
|
else if (e.tag === "?") {
|
|
2028
|
-
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0,
|
|
2029
|
-
if (
|
|
2030
|
-
e.result =
|
|
2034
|
+
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, m = e.implicitTypes.length; c < m; c += 1)
|
|
2035
|
+
if (_ = e.implicitTypes[c], _.resolve(e.result)) {
|
|
2036
|
+
e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2031
2037
|
break;
|
|
2032
2038
|
}
|
|
2033
2039
|
} else if (e.tag !== "!") {
|
|
2034
2040
|
if (Oe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2035
|
-
|
|
2041
|
+
_ = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2036
2042
|
else
|
|
2037
|
-
for (
|
|
2043
|
+
for (_ = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, m = p.length; c < m; c += 1)
|
|
2038
2044
|
if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
|
|
2039
|
-
|
|
2045
|
+
_ = p[c];
|
|
2040
2046
|
break;
|
|
2041
2047
|
}
|
|
2042
|
-
|
|
2048
|
+
_ || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2043
2049
|
}
|
|
2044
2050
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2045
2051
|
}
|
|
@@ -2145,7 +2151,7 @@ function gi(e, n) {
|
|
|
2145
2151
|
o = r[a], s = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && rr.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[o] = s;
|
|
2146
2152
|
return t;
|
|
2147
2153
|
}
|
|
2148
|
-
function
|
|
2154
|
+
function yi(e) {
|
|
2149
2155
|
var n, t, r;
|
|
2150
2156
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2151
2157
|
t = "x", r = 2;
|
|
@@ -2157,9 +2163,9 @@ function hi(e) {
|
|
|
2157
2163
|
throw new fe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2158
2164
|
return "\\" + t + ie.repeat("0", r - n.length) + n;
|
|
2159
2165
|
}
|
|
2160
|
-
var
|
|
2166
|
+
var hi = 1, Ze = 2;
|
|
2161
2167
|
function vi(e) {
|
|
2162
|
-
this.schema = e.schema || Ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = gi(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 === '"' ? Ze :
|
|
2168
|
+
this.schema = e.schema || Ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = gi(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 === '"' ? Ze : hi, 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;
|
|
2163
2169
|
}
|
|
2164
2170
|
function an(e, n) {
|
|
2165
2171
|
for (var t = ie.repeat(" ", n), r = 0, a = -1, i = "", o, s = e.length; r < s; )
|
|
@@ -2168,7 +2174,7 @@ function an(e, n) {
|
|
|
2168
2174
|
` && (i += t), i += o;
|
|
2169
2175
|
return i;
|
|
2170
2176
|
}
|
|
2171
|
-
function
|
|
2177
|
+
function It(e, n) {
|
|
2172
2178
|
return `
|
|
2173
2179
|
` + ie.repeat(" ", e.indent * n);
|
|
2174
2180
|
}
|
|
@@ -2212,27 +2218,27 @@ function ur(e) {
|
|
|
2212
2218
|
var n = /^\n* /;
|
|
2213
2219
|
return n.test(e);
|
|
2214
2220
|
}
|
|
2215
|
-
var cr = 1, xt = 2, dr = 3, pr = 4,
|
|
2221
|
+
var cr = 1, xt = 2, dr = 3, pr = 4, Re = 5;
|
|
2216
2222
|
function wi(e, n, t, r, a, i, o, s) {
|
|
2217
|
-
var l, u = 0, d = null, c = !1,
|
|
2223
|
+
var l, u = 0, d = null, c = !1, m = !1, p = r !== -1, _ = -1, k = ki(Je(e, 0)) && Ci(Je(e, e.length - 1));
|
|
2218
2224
|
if (n || o)
|
|
2219
2225
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2220
2226
|
if (u = Je(e, l), !Qe(u))
|
|
2221
|
-
return
|
|
2222
|
-
|
|
2227
|
+
return Re;
|
|
2228
|
+
k = k && sn(u, d, s), d = u;
|
|
2223
2229
|
}
|
|
2224
2230
|
else {
|
|
2225
2231
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2226
2232
|
if (u = Je(e, l), u === Ye)
|
|
2227
|
-
c = !0, p && (
|
|
2228
|
-
l -
|
|
2233
|
+
c = !0, p && (m = m || // Foldable line = too long, and not more-indented.
|
|
2234
|
+
l - _ - 1 > r && e[_ + 1] !== " ", _ = l);
|
|
2229
2235
|
else if (!Qe(u))
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2236
|
+
return Re;
|
|
2237
|
+
k = k && sn(u, d, s), d = u;
|
|
2232
2238
|
}
|
|
2233
|
-
|
|
2239
|
+
m = m || p && l - _ - 1 > r && e[_ + 1] !== " ";
|
|
2234
2240
|
}
|
|
2235
|
-
return !c && !
|
|
2241
|
+
return !c && !m ? k && !o && !a(e) ? cr : i === Ze ? Re : xt : t > 9 && ur(e) ? Re : o ? i === Ze ? Re : xt : m ? pr : dr;
|
|
2236
2242
|
}
|
|
2237
2243
|
function _i(e, n, t, r, a) {
|
|
2238
2244
|
e.dump = function() {
|
|
@@ -2261,8 +2267,8 @@ function _i(e, n, t, r, a) {
|
|
|
2261
2267
|
case dr:
|
|
2262
2268
|
return "|" + ln(n, e.indent) + un(an(n, i));
|
|
2263
2269
|
case pr:
|
|
2264
|
-
return ">" + ln(n, e.indent) + un(an(
|
|
2265
|
-
case
|
|
2270
|
+
return ">" + ln(n, e.indent) + un(an(Ii(n, o), i));
|
|
2271
|
+
case Re:
|
|
2266
2272
|
return '"' + xi(n) + '"';
|
|
2267
2273
|
default:
|
|
2268
2274
|
throw new fe("impossible error: invalid scalar style");
|
|
@@ -2281,7 +2287,7 @@ function un(e) {
|
|
|
2281
2287
|
return e[e.length - 1] === `
|
|
2282
2288
|
` ? e.slice(0, -1) : e;
|
|
2283
2289
|
}
|
|
2284
|
-
function
|
|
2290
|
+
function Ii(e, n) {
|
|
2285
2291
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2286
2292
|
var u = e.indexOf(`
|
|
2287
2293
|
`);
|
|
@@ -2306,29 +2312,29 @@ function cn(e, n) {
|
|
|
2306
2312
|
}
|
|
2307
2313
|
function xi(e) {
|
|
2308
2314
|
for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
|
|
2309
|
-
t = Je(e, a), r = pe[t], !r && Qe(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r ||
|
|
2315
|
+
t = Je(e, a), r = pe[t], !r && Qe(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || yi(t);
|
|
2310
2316
|
return n;
|
|
2311
2317
|
}
|
|
2312
|
-
function
|
|
2318
|
+
function Ai(e, n, t) {
|
|
2313
2319
|
var r = "", a = e.tag, i, o, s;
|
|
2314
2320
|
for (i = 0, o = t.length; i < o; i += 1)
|
|
2315
|
-
s = t[i], e.replacer && (s = e.replacer.call(t, String(i), s)), (
|
|
2321
|
+
s = t[i], e.replacer && (s = e.replacer.call(t, String(i), s)), (Ae(e, n, s, !1, !1) || typeof s > "u" && Ae(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2316
2322
|
e.tag = a, e.dump = "[" + r + "]";
|
|
2317
2323
|
}
|
|
2318
2324
|
function dn(e, n, t, r) {
|
|
2319
2325
|
var a = "", i = e.tag, o, s, l;
|
|
2320
2326
|
for (o = 0, s = t.length; o < s; o += 1)
|
|
2321
|
-
l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (
|
|
2327
|
+
l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += It(e, n)), e.dump && Ye === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2322
2328
|
e.tag = i, e.dump = a || "[]";
|
|
2323
2329
|
}
|
|
2324
2330
|
function Si(e, n, t) {
|
|
2325
2331
|
var r = "", a = e.tag, i = Object.keys(t), o, s, l, u, d;
|
|
2326
2332
|
for (o = 0, s = i.length; o < s; o += 1)
|
|
2327
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = i[o], u = t[l], e.replacer && (u = e.replacer.call(t, l, u)),
|
|
2333
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = i[o], u = t[l], e.replacer && (u = e.replacer.call(t, l, u)), Ae(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ae(e, n, u, !1, !1) && (d += e.dump, r += d));
|
|
2328
2334
|
e.tag = a, e.dump = "{" + r + "}";
|
|
2329
2335
|
}
|
|
2330
2336
|
function $i(e, n, t, r) {
|
|
2331
|
-
var a = "", i = e.tag, o = Object.keys(t), s, l, u, d, c,
|
|
2337
|
+
var a = "", i = e.tag, o = Object.keys(t), s, l, u, d, c, m;
|
|
2332
2338
|
if (e.sortKeys === !0)
|
|
2333
2339
|
o.sort();
|
|
2334
2340
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2336,7 +2342,7 @@ function $i(e, n, t, r) {
|
|
|
2336
2342
|
else if (e.sortKeys)
|
|
2337
2343
|
throw new fe("sortKeys must be a boolean or a function");
|
|
2338
2344
|
for (s = 0, l = o.length; s < l; s += 1)
|
|
2339
|
-
|
|
2345
|
+
m = "", (!r || a !== "") && (m += It(e, n)), u = o[s], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), Ae(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ye === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, c && (m += It(e, n)), Ae(e, n + 1, d, !0, c) && (e.dump && Ye === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, a += m));
|
|
2340
2346
|
e.tag = i, e.dump = a || "{}";
|
|
2341
2347
|
}
|
|
2342
2348
|
function pn(e, n, t) {
|
|
@@ -2356,18 +2362,18 @@ function pn(e, n, t) {
|
|
|
2356
2362
|
}
|
|
2357
2363
|
return !1;
|
|
2358
2364
|
}
|
|
2359
|
-
function
|
|
2365
|
+
function Ae(e, n, t, r, a, i, o) {
|
|
2360
2366
|
e.tag = null, e.dump = t, pn(e, t, !1) || pn(e, t, !0);
|
|
2361
2367
|
var s = nr.call(e.dump), l = r, u;
|
|
2362
2368
|
r && (r = e.flowLevel < 0 || e.flowLevel > n);
|
|
2363
|
-
var d = s === "[object Object]" || s === "[object Array]", c,
|
|
2364
|
-
if (d && (c = e.duplicates.indexOf(t),
|
|
2369
|
+
var d = s === "[object Object]" || s === "[object Array]", c, m;
|
|
2370
|
+
if (d && (c = e.duplicates.indexOf(t), m = c !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (a = !1), m && e.usedDuplicates[c])
|
|
2365
2371
|
e.dump = "*ref_" + c;
|
|
2366
2372
|
else {
|
|
2367
|
-
if (d &&
|
|
2368
|
-
r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, a),
|
|
2373
|
+
if (d && m && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
|
|
2374
|
+
r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, a), m && (e.dump = "&ref_" + c + e.dump)) : (Si(e, n, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2369
2375
|
else if (s === "[object Array]")
|
|
2370
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? dn(e, n - 1, e.dump, a) : dn(e, n, e.dump, a),
|
|
2376
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? dn(e, n - 1, e.dump, a) : dn(e, n, e.dump, a), m && (e.dump = "&ref_" + c + e.dump)) : (Ai(e, n, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2371
2377
|
else if (s === "[object String]")
|
|
2372
2378
|
e.tag !== "?" && _i(e, e.dump, n, i, l);
|
|
2373
2379
|
else {
|
|
@@ -2383,28 +2389,28 @@ function Ie(e, n, t, r, a, i, o) {
|
|
|
2383
2389
|
}
|
|
2384
2390
|
function Ti(e, n) {
|
|
2385
2391
|
var t = [], r = [], a, i;
|
|
2386
|
-
for (
|
|
2392
|
+
for (At(e, t, r), a = 0, i = r.length; a < i; a += 1)
|
|
2387
2393
|
n.duplicates.push(t[r[a]]);
|
|
2388
2394
|
n.usedDuplicates = new Array(i);
|
|
2389
2395
|
}
|
|
2390
|
-
function
|
|
2396
|
+
function At(e, n, t) {
|
|
2391
2397
|
var r, a, i;
|
|
2392
2398
|
if (e !== null && typeof e == "object")
|
|
2393
2399
|
if (a = n.indexOf(e), a !== -1)
|
|
2394
2400
|
t.indexOf(a) === -1 && t.push(a);
|
|
2395
2401
|
else if (n.push(e), Array.isArray(e))
|
|
2396
2402
|
for (a = 0, i = e.length; a < i; a += 1)
|
|
2397
|
-
|
|
2403
|
+
At(e[a], n, t);
|
|
2398
2404
|
else
|
|
2399
2405
|
for (r = Object.keys(e), a = 0, i = r.length; a < i; a += 1)
|
|
2400
|
-
|
|
2406
|
+
At(e[r[a]], n, t);
|
|
2401
2407
|
}
|
|
2402
2408
|
function ji(e, n) {
|
|
2403
2409
|
n = n || {};
|
|
2404
2410
|
var t = new vi(n);
|
|
2405
2411
|
t.noRefs || Ti(e, t);
|
|
2406
2412
|
var r = e;
|
|
2407
|
-
return t.replacer && (r = t.replacer.call({ "": r }, "", r)),
|
|
2413
|
+
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Ae(t, 0, r, !0, !0) ? t.dump + `
|
|
2408
2414
|
` : "";
|
|
2409
2415
|
}
|
|
2410
2416
|
var Mi = ji, Oi = {
|
|
@@ -2415,8 +2421,8 @@ function qt(e, n) {
|
|
|
2415
2421
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2416
2422
|
};
|
|
2417
2423
|
}
|
|
2418
|
-
var Ei = le, Ni = $n, Fi = On, qi = Kn, Ki = Ln, Li = Ot, Bi = tr.load, Ui = tr.loadAll, Pi = Oi.dump,
|
|
2419
|
-
binary:
|
|
2424
|
+
var Ei = le, Ni = $n, Fi = On, qi = Kn, Ki = Ln, Li = Ot, Bi = tr.load, Ui = tr.loadAll, Pi = Oi.dump, Ri = fe, Vi = {
|
|
2425
|
+
binary: Vn,
|
|
2420
2426
|
float: qn,
|
|
2421
2427
|
map: Mn,
|
|
2422
2428
|
null: En,
|
|
@@ -2425,7 +2431,7 @@ var Ei = le, Ni = $n, Fi = On, qi = Kn, Ki = Ln, Li = Ot, Bi = tr.load, Ui = tr.
|
|
|
2425
2431
|
timestamp: Pn,
|
|
2426
2432
|
bool: Nn,
|
|
2427
2433
|
int: Fn,
|
|
2428
|
-
merge:
|
|
2434
|
+
merge: Rn,
|
|
2429
2435
|
omap: Dn,
|
|
2430
2436
|
seq: jn,
|
|
2431
2437
|
str: Tn
|
|
@@ -2439,8 +2445,8 @@ var Ei = le, Ni = $n, Fi = On, qi = Kn, Ki = Ln, Li = Ot, Bi = tr.load, Ui = tr.
|
|
|
2439
2445
|
load: Bi,
|
|
2440
2446
|
loadAll: Ui,
|
|
2441
2447
|
dump: Pi,
|
|
2442
|
-
YAMLException:
|
|
2443
|
-
types:
|
|
2448
|
+
YAMLException: Ri,
|
|
2449
|
+
types: Vi,
|
|
2444
2450
|
safeLoad: Di,
|
|
2445
2451
|
safeLoadAll: zi,
|
|
2446
2452
|
safeDump: Gi
|
|
@@ -2455,7 +2461,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2455
2461
|
}
|
|
2456
2462
|
},
|
|
2457
2463
|
setup(e) {
|
|
2458
|
-
const n = e, t =
|
|
2464
|
+
const n = e, t = A(() => {
|
|
2459
2465
|
const r = Object.fromEntries(Object.entries(n.yamlRecord).filter(([, a]) => a && (Array.isArray(a) ? a.length !== 0 : !0)));
|
|
2460
2466
|
return Object.keys(r).length === 0 && r.constructor === Object ? "" : Hi.dump(r).trim();
|
|
2461
2467
|
});
|
|
@@ -2517,7 +2523,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2517
2523
|
}
|
|
2518
2524
|
},
|
|
2519
2525
|
setup(e) {
|
|
2520
|
-
const n = e, t = St(), { i18n: { t: r } } = se.useI18n(), a = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), i =
|
|
2526
|
+
const n = e, t = St(), { i18n: { t: r } } = se.useI18n(), a = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), i = A(() => {
|
|
2521
2527
|
if (!n.record)
|
|
2522
2528
|
return n.record;
|
|
2523
2529
|
const o = JSON.parse(JSON.stringify(n.record));
|
|
@@ -2525,13 +2531,13 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2525
2531
|
});
|
|
2526
2532
|
return (o, s) => (f(), j(ve, null, [
|
|
2527
2533
|
e.format === "structured" ? (f(), j("div", Wi, [
|
|
2528
|
-
(f(!0), j(ve, null,
|
|
2534
|
+
(f(!0), j(ve, null, he(e.propListTypes, (l) => (f(), j("div", {
|
|
2529
2535
|
key: `config-card-details-${l}-props`,
|
|
2530
2536
|
class: Me(`config-card-details-${l}-props`),
|
|
2531
2537
|
"data-testid": `config-card-details-${l}-props`
|
|
2532
2538
|
}, [
|
|
2533
2539
|
l !== "basic" ? (f(), j("div", Zi, N(l === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
|
|
2534
|
-
(f(!0), j(ve, null,
|
|
2540
|
+
(f(!0), j(ve, null, he(e.propertyCollections[l], (u) => (f(), D(In, {
|
|
2535
2541
|
key: u.key,
|
|
2536
2542
|
item: u
|
|
2537
2543
|
}, Ke({
|
|
@@ -2632,7 +2638,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2632
2638
|
}
|
|
2633
2639
|
},
|
|
2634
2640
|
setup(e) {
|
|
2635
|
-
const n = e, t =
|
|
2641
|
+
const n = e, t = A(() => {
|
|
2636
2642
|
if (typeof n.size == "number" && n.size > 0)
|
|
2637
2643
|
return `${n.size}px`;
|
|
2638
2644
|
if (typeof n.size == "string") {
|
|
@@ -2641,7 +2647,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2641
2647
|
return `${i}px`;
|
|
2642
2648
|
}
|
|
2643
2649
|
return Ee;
|
|
2644
|
-
}), r =
|
|
2650
|
+
}), r = A(() => ({
|
|
2645
2651
|
boxSizing: "border-box",
|
|
2646
2652
|
color: n.color,
|
|
2647
2653
|
display: n.display,
|
|
@@ -2731,7 +2737,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2731
2737
|
}
|
|
2732
2738
|
},
|
|
2733
2739
|
setup(e) {
|
|
2734
|
-
const n = e, t =
|
|
2740
|
+
const n = e, t = A(() => {
|
|
2735
2741
|
if (typeof n.size == "number" && n.size > 0)
|
|
2736
2742
|
return `${n.size}px`;
|
|
2737
2743
|
if (typeof n.size == "string") {
|
|
@@ -2740,7 +2746,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2740
2746
|
return `${i}px`;
|
|
2741
2747
|
}
|
|
2742
2748
|
return Ee;
|
|
2743
|
-
}), r =
|
|
2749
|
+
}), r = A(() => ({
|
|
2744
2750
|
boxSizing: "border-box",
|
|
2745
2751
|
color: n.color,
|
|
2746
2752
|
display: n.display,
|
|
@@ -2778,7 +2784,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2778
2784
|
}, gs = /* @__PURE__ */ ps(() => /* @__PURE__ */ B("path", {
|
|
2779
2785
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2780
2786
|
fill: "currentColor"
|
|
2781
|
-
}, null, -1)),
|
|
2787
|
+
}, null, -1)), ys = /* @__PURE__ */ X({
|
|
2782
2788
|
__name: "ChevronDownIcon",
|
|
2783
2789
|
props: {
|
|
2784
2790
|
/** The accessibility text provided to screen readers */
|
|
@@ -2830,7 +2836,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2830
2836
|
}
|
|
2831
2837
|
},
|
|
2832
2838
|
setup(e) {
|
|
2833
|
-
const n = e, t =
|
|
2839
|
+
const n = e, t = A(() => {
|
|
2834
2840
|
if (typeof n.size == "number" && n.size > 0)
|
|
2835
2841
|
return `${n.size}px`;
|
|
2836
2842
|
if (typeof n.size == "string") {
|
|
@@ -2839,7 +2845,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2839
2845
|
return `${i}px`;
|
|
2840
2846
|
}
|
|
2841
2847
|
return Ee;
|
|
2842
|
-
}), r =
|
|
2848
|
+
}), r = A(() => ({
|
|
2843
2849
|
boxSizing: "border-box",
|
|
2844
2850
|
color: n.color,
|
|
2845
2851
|
display: n.display,
|
|
@@ -2871,7 +2877,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2871
2877
|
_: 1
|
|
2872
2878
|
}, 8, ["aria-hidden", "style"]));
|
|
2873
2879
|
}
|
|
2874
|
-
}),
|
|
2880
|
+
}), hs = /* @__PURE__ */ gt(ys, [["__scopeId", "data-v-98c34919"]]), vs = (e) => (dt("data-v-19f4cbbe"), e = e(), pt(), e), bs = ["aria-hidden"], ks = {
|
|
2875
2881
|
key: 0,
|
|
2876
2882
|
"data-testid": "kui-icon-svg-title"
|
|
2877
2883
|
}, Cs = /* @__PURE__ */ vs(() => /* @__PURE__ */ B("path", {
|
|
@@ -2929,7 +2935,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2929
2935
|
}
|
|
2930
2936
|
},
|
|
2931
2937
|
setup(e) {
|
|
2932
|
-
const n = e, t =
|
|
2938
|
+
const n = e, t = A(() => {
|
|
2933
2939
|
if (typeof n.size == "number" && n.size > 0)
|
|
2934
2940
|
return `${n.size}px`;
|
|
2935
2941
|
if (typeof n.size == "string") {
|
|
@@ -2938,7 +2944,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2938
2944
|
return `${i}px`;
|
|
2939
2945
|
}
|
|
2940
2946
|
return Ee;
|
|
2941
|
-
}), r =
|
|
2947
|
+
}), r = A(() => ({
|
|
2942
2948
|
boxSizing: "border-box",
|
|
2943
2949
|
color: n.color,
|
|
2944
2950
|
display: n.display,
|
|
@@ -2970,7 +2976,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2970
2976
|
_: 1
|
|
2971
2977
|
}, 8, ["aria-hidden", "style"]));
|
|
2972
2978
|
}
|
|
2973
|
-
}), _s = /* @__PURE__ */ gt(ws, [["__scopeId", "data-v-19f4cbbe"]]),
|
|
2979
|
+
}), _s = /* @__PURE__ */ gt(ws, [["__scopeId", "data-v-19f4cbbe"]]), Is = { "data-testid": "config-card-title" }, xs = { class: "config-card-actions" }, As = ["href"], Ss = { class: "config-card-details-section" }, $s = /* @__PURE__ */ X({
|
|
2974
2980
|
__name: "EntityBaseConfigCard",
|
|
2975
2981
|
props: {
|
|
2976
2982
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3061,57 +3067,57 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3061
3067
|
label: "YAML",
|
|
3062
3068
|
value: "yaml"
|
|
3063
3069
|
}
|
|
3064
|
-
], d = O("structured"), c = (
|
|
3065
|
-
d.value =
|
|
3066
|
-
},
|
|
3070
|
+
], d = O("structured"), c = (y) => {
|
|
3071
|
+
d.value = y == null ? void 0 : y.value;
|
|
3072
|
+
}, m = {
|
|
3067
3073
|
id: {
|
|
3068
3074
|
type: ee.ID,
|
|
3069
3075
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
3070
3076
|
order: 0,
|
|
3071
|
-
section:
|
|
3077
|
+
section: ye.Basic
|
|
3072
3078
|
},
|
|
3073
3079
|
name: {
|
|
3074
3080
|
order: 1,
|
|
3075
|
-
section:
|
|
3081
|
+
section: ye.Basic
|
|
3076
3082
|
},
|
|
3077
3083
|
enabled: {
|
|
3078
3084
|
type: ee.BadgeStatus,
|
|
3079
3085
|
order: 2,
|
|
3080
|
-
section:
|
|
3086
|
+
section: ye.Basic
|
|
3081
3087
|
},
|
|
3082
3088
|
updated_at: {
|
|
3083
3089
|
type: ee.Date,
|
|
3084
3090
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
3085
3091
|
order: 3,
|
|
3086
|
-
section:
|
|
3092
|
+
section: ye.Basic
|
|
3087
3093
|
},
|
|
3088
3094
|
created_at: {
|
|
3089
3095
|
type: ee.Date,
|
|
3090
3096
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
3091
3097
|
order: 4,
|
|
3092
|
-
section:
|
|
3098
|
+
section: ye.Basic
|
|
3093
3099
|
},
|
|
3094
3100
|
tags: {
|
|
3095
3101
|
type: ee.BadgeTag,
|
|
3096
3102
|
order: -1,
|
|
3097
3103
|
// the last property displayed
|
|
3098
|
-
section:
|
|
3104
|
+
section: ye.Basic
|
|
3099
3105
|
}
|
|
3100
|
-
}, p = O(!1),
|
|
3101
|
-
var
|
|
3102
|
-
if (!
|
|
3106
|
+
}, p = O(!1), _ = O(!1), k = O(""), I = O({}), R = A(() => {
|
|
3107
|
+
var y, F, L;
|
|
3108
|
+
if (!I.value)
|
|
3103
3109
|
return [];
|
|
3104
|
-
const
|
|
3105
|
-
for (const E in
|
|
3106
|
-
const
|
|
3110
|
+
const x = [], z = Object.keys(I.value).length;
|
|
3111
|
+
for (const E in I.value) {
|
|
3112
|
+
const C = (F = (y = a.configSchema) == null ? void 0 : y[E]) == null ? void 0 : F.order, S = (L = m[E]) == null ? void 0 : L.order;
|
|
3107
3113
|
let q = z;
|
|
3108
|
-
(S || S === 0) && (q = S === -1 ? z + 1 : S),
|
|
3114
|
+
(S || S === 0) && (q = S === -1 ? z + 1 : S), C && (q = C === -1 ? z + 1 : C), x.push([E, q]);
|
|
3109
3115
|
}
|
|
3110
|
-
return
|
|
3111
|
-
return E[1] -
|
|
3112
|
-
}),
|
|
3113
|
-
var
|
|
3114
|
-
const q = E[0], G = (
|
|
3116
|
+
return x.sort(function(E, C) {
|
|
3117
|
+
return E[1] - C[1];
|
|
3118
|
+
}), x.map((E) => {
|
|
3119
|
+
var C, S;
|
|
3120
|
+
const q = E[0], G = (C = I.value) == null ? void 0 : C[q], ae = ((S = a.configSchema) == null ? void 0 : S[q]) || {}, ue = m[q];
|
|
3115
3121
|
return {
|
|
3116
3122
|
key: q,
|
|
3117
3123
|
value: G,
|
|
@@ -3119,24 +3125,24 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3119
3125
|
type: ae.type ?? ((ue == null ? void 0 : ue.type) || ee.Text),
|
|
3120
3126
|
label: ae.label ?? ((ue == null ? void 0 : ue.label) || s(q)),
|
|
3121
3127
|
tooltip: ae.tooltip ?? ((ue == null ? void 0 : ue.tooltip) || void 0),
|
|
3122
|
-
section: ae.section ?? ((ue == null ? void 0 : ue.section) ||
|
|
3128
|
+
section: ae.section ?? ((ue == null ? void 0 : ue.section) || ye.Advanced)
|
|
3123
3129
|
};
|
|
3124
3130
|
}).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
|
|
3125
|
-
}), K =
|
|
3126
|
-
var
|
|
3127
|
-
if (!
|
|
3131
|
+
}), K = A(() => {
|
|
3132
|
+
var y, F;
|
|
3133
|
+
if (!I.value || !a.pluginConfigKey)
|
|
3128
3134
|
return [];
|
|
3129
|
-
const L =
|
|
3135
|
+
const L = I.value[a.pluginConfigKey] || {}, x = Object.keys(L).length, z = [];
|
|
3130
3136
|
for (const E in L) {
|
|
3131
|
-
const
|
|
3132
|
-
let q = S != null && S !== "" ?
|
|
3133
|
-
|
|
3137
|
+
const C = (F = (y = a.pluginConfigSchema) == null ? void 0 : y[E]) == null ? void 0 : F.order, S = L[E];
|
|
3138
|
+
let q = S != null && S !== "" ? x - 1 : x;
|
|
3139
|
+
C && (q = C === -1 ? x + 1 : C), z.push([E, q]);
|
|
3134
3140
|
}
|
|
3135
|
-
return z.sort(function(E,
|
|
3136
|
-
return E[1] -
|
|
3141
|
+
return z.sort(function(E, C) {
|
|
3142
|
+
return E[1] - C[1];
|
|
3137
3143
|
}), z.map((E) => {
|
|
3138
|
-
var
|
|
3139
|
-
const S = E[0], q = L[S], G = ((
|
|
3144
|
+
var C;
|
|
3145
|
+
const S = E[0], q = L[S], G = ((C = a.pluginConfigSchema) == null ? void 0 : C[S]) || {};
|
|
3140
3146
|
return {
|
|
3141
3147
|
key: S,
|
|
3142
3148
|
value: q,
|
|
@@ -3144,52 +3150,52 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3144
3150
|
type: G.type ?? ee.Text,
|
|
3145
3151
|
label: G.label ?? s(S),
|
|
3146
3152
|
tooltip: G.tooltip ?? void 0,
|
|
3147
|
-
section:
|
|
3153
|
+
section: ye.Plugin
|
|
3148
3154
|
};
|
|
3149
3155
|
}).filter((E) => !E.hidden);
|
|
3150
|
-
}), Y =
|
|
3151
|
-
var
|
|
3156
|
+
}), Y = A(() => {
|
|
3157
|
+
var y, F, L, x;
|
|
3152
3158
|
return {
|
|
3153
|
-
basic: (
|
|
3154
|
-
advanced: (F =
|
|
3155
|
-
plugin: (
|
|
3159
|
+
basic: (y = R.value) == null ? void 0 : y.filter((z) => z.section === ye.Basic),
|
|
3160
|
+
advanced: (F = R.value) == null ? void 0 : F.filter((z) => z.section === ye.Advanced),
|
|
3161
|
+
plugin: (x = K.value) == null ? void 0 : x.concat((L = R.value) == null ? void 0 : L.filter((z) => z.section === ye.Plugin))
|
|
3156
3162
|
};
|
|
3157
|
-
}),
|
|
3158
|
-
const
|
|
3159
|
-
return Y.value.basic.length &&
|
|
3160
|
-
}),
|
|
3161
|
-
var
|
|
3163
|
+
}), v = A(() => {
|
|
3164
|
+
const y = [];
|
|
3165
|
+
return Y.value.basic.length && y.push("basic"), Y.value.advanced.length && y.push("advanced"), Y.value.plugin.length && y.push("plugin"), y;
|
|
3166
|
+
}), g = A(() => {
|
|
3167
|
+
var y, F;
|
|
3162
3168
|
let L = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3163
|
-
return a.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((
|
|
3169
|
+
return a.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((y = a.config) == null ? void 0 : y.controlPlaneId) || "") : a.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, (F = a.config) != null && F.workspace ? `/${a.config.workspace}` : "")), L = L.replace(/{id}/gi, a.config.entityId), L;
|
|
3164
3170
|
});
|
|
3165
|
-
return xe(p, (
|
|
3166
|
-
r("loading",
|
|
3171
|
+
return xe(p, (y) => {
|
|
3172
|
+
r("loading", y);
|
|
3167
3173
|
}, { immediate: !0 }), ut(async () => {
|
|
3168
|
-
|
|
3174
|
+
_.value = !1, p.value = !0;
|
|
3169
3175
|
try {
|
|
3170
|
-
const { data:
|
|
3176
|
+
const { data: y } = await l.get(g.value);
|
|
3171
3177
|
if (a.dataKey)
|
|
3172
|
-
if (typeof
|
|
3173
|
-
|
|
3178
|
+
if (typeof y[a.dataKey] < "u")
|
|
3179
|
+
I.value = { ...y[a.dataKey] };
|
|
3174
3180
|
else
|
|
3175
3181
|
throw new Error(i("errors.dataKeyUndefined", { dataKey: a.dataKey }));
|
|
3176
3182
|
else
|
|
3177
|
-
|
|
3183
|
+
I.value = { ...y };
|
|
3178
3184
|
Object.keys(a.configSchema).filter((F) => a.configSchema[F].forceShow).forEach((F) => {
|
|
3179
|
-
|
|
3180
|
-
}), r("fetch:success",
|
|
3181
|
-
} catch (
|
|
3182
|
-
const F = o(
|
|
3183
|
-
|
|
3185
|
+
I.value && typeof I.value[F] > "u" && (I.value[F] = null);
|
|
3186
|
+
}), r("fetch:success", y);
|
|
3187
|
+
} catch (y) {
|
|
3188
|
+
const F = o(y);
|
|
3189
|
+
k.value = F.startsWith("code") ? i("baseConfigCard.errors.load") : F, _.value = !0, r("fetch:error", y);
|
|
3184
3190
|
} finally {
|
|
3185
3191
|
p.value = !1;
|
|
3186
3192
|
}
|
|
3187
|
-
}), (
|
|
3188
|
-
const L = P("KLabel"),
|
|
3193
|
+
}), (y, F) => {
|
|
3194
|
+
const L = P("KLabel"), x = P("KSelect"), z = P("KButton"), E = P("KSkeleton"), C = P("KEmptyState"), S = P("KCard");
|
|
3189
3195
|
return f(), D(S, { class: "kong-ui-entity-base-config-card" }, Ke({
|
|
3190
3196
|
actions: b(() => [
|
|
3191
3197
|
B("div", xs, [
|
|
3192
|
-
te(
|
|
3198
|
+
te(y.$slots, "actions", {}, void 0, !0),
|
|
3193
3199
|
T(L, {
|
|
3194
3200
|
class: "config-format-select-label",
|
|
3195
3201
|
"data-testid": "config-format-select-label"
|
|
@@ -3199,7 +3205,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3199
3205
|
]),
|
|
3200
3206
|
_: 1
|
|
3201
3207
|
}),
|
|
3202
|
-
T(
|
|
3208
|
+
T(x, {
|
|
3203
3209
|
"data-testid": "select-config-format",
|
|
3204
3210
|
items: u,
|
|
3205
3211
|
onChange: c
|
|
@@ -3217,7 +3223,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3217
3223
|
target: "_blank"
|
|
3218
3224
|
}, [
|
|
3219
3225
|
T(h(ds), { size: h(pa) }, null, 8, ["size"])
|
|
3220
|
-
], 8,
|
|
3226
|
+
], 8, As)
|
|
3221
3227
|
]),
|
|
3222
3228
|
_: 1
|
|
3223
3229
|
})) : W("", !0)
|
|
@@ -3229,29 +3235,29 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3229
3235
|
"data-testid": "config-card-loader",
|
|
3230
3236
|
"table-columns": 2,
|
|
3231
3237
|
type: "table"
|
|
3232
|
-
})) :
|
|
3238
|
+
})) : _.value ? (f(), D(C, {
|
|
3233
3239
|
key: 1,
|
|
3234
3240
|
"data-testid": "config-card-fetch-error",
|
|
3235
3241
|
"icon-variant": "error"
|
|
3236
3242
|
}, {
|
|
3237
3243
|
default: b(() => [
|
|
3238
|
-
B("h3", null, N(
|
|
3244
|
+
B("h3", null, N(k.value), 1)
|
|
3239
3245
|
]),
|
|
3240
3246
|
_: 1
|
|
3241
3247
|
})) : W("", !0),
|
|
3242
3248
|
B("div", Ss, [
|
|
3243
3249
|
T(Xi, {
|
|
3244
3250
|
config: e.config,
|
|
3245
|
-
"fetcher-url":
|
|
3251
|
+
"fetcher-url": g.value,
|
|
3246
3252
|
format: d.value,
|
|
3247
|
-
"prop-list-types":
|
|
3253
|
+
"prop-list-types": v.value,
|
|
3248
3254
|
"property-collections": Y.value,
|
|
3249
|
-
record:
|
|
3255
|
+
record: I.value
|
|
3250
3256
|
}, Ke({ _: 2 }, [
|
|
3251
|
-
|
|
3257
|
+
he(Object.keys(y.$slots), (q) => ({
|
|
3252
3258
|
name: q,
|
|
3253
3259
|
fn: b(({ row: G, rowValue: ae }) => [
|
|
3254
|
-
te(
|
|
3260
|
+
te(y.$slots, q, {
|
|
3255
3261
|
row: G,
|
|
3256
3262
|
rowValue: ae
|
|
3257
3263
|
}, void 0, !0)
|
|
@@ -3265,8 +3271,8 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3265
3271
|
e.hideTitle ? void 0 : {
|
|
3266
3272
|
name: "title",
|
|
3267
3273
|
fn: b(() => [
|
|
3268
|
-
B("div",
|
|
3269
|
-
te(
|
|
3274
|
+
B("div", Is, [
|
|
3275
|
+
te(y.$slots, "title", {}, () => [
|
|
3270
3276
|
Q(N(h(i)("baseConfigCard.title")), 1)
|
|
3271
3277
|
], !0)
|
|
3272
3278
|
])
|
|
@@ -3336,18 +3342,18 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3336
3342
|
var t;
|
|
3337
3343
|
const r = n, a = e, i = $t(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios({
|
|
3338
3344
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3339
|
-
}), u = O(!1), d = O(!1), c = O(""),
|
|
3340
|
-
var
|
|
3341
|
-
let
|
|
3342
|
-
return a.config.app === "konnect" ?
|
|
3343
|
-
}),
|
|
3345
|
+
}), u = O(!1), d = O(!1), c = O(""), m = A(() => a.canSubmit === !1 || a.isReadonly), p = O(!1), _ = A(() => {
|
|
3346
|
+
var v, g;
|
|
3347
|
+
let y = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3348
|
+
return a.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((v = a.config) == null ? void 0 : v.controlPlaneId) || "") : a.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (g = a.config) != null && g.workspace ? `/${a.config.workspace}` : "")), a.editId ? (y = y.replace(/{id}/gi, a.editId), y) : (y = y.replace(/\/{id}/gi, ""), y);
|
|
3349
|
+
}), k = () => {
|
|
3344
3350
|
p.value = !p.value;
|
|
3345
|
-
},
|
|
3346
|
-
a.config.cancelRoute ? i.push(a.config.cancelRoute) :
|
|
3347
|
-
},
|
|
3351
|
+
}, I = () => {
|
|
3352
|
+
a.config.cancelRoute ? i.push(a.config.cancelRoute) : R();
|
|
3353
|
+
}, R = () => {
|
|
3348
3354
|
r("cancel");
|
|
3349
3355
|
}, K = () => {
|
|
3350
|
-
|
|
3356
|
+
m.value || r("submit");
|
|
3351
3357
|
}, Y = O([
|
|
3352
3358
|
{
|
|
3353
3359
|
title: o("baseForm.configuration.yaml"),
|
|
@@ -3358,25 +3364,25 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3358
3364
|
hash: "#json"
|
|
3359
3365
|
}
|
|
3360
3366
|
]);
|
|
3361
|
-
return xe(() => u.value, (
|
|
3362
|
-
r("loading",
|
|
3367
|
+
return xe(() => u.value, (v) => {
|
|
3368
|
+
r("loading", v);
|
|
3363
3369
|
}, { immediate: !0 }), ut(async () => {
|
|
3364
3370
|
if (a.editId)
|
|
3365
3371
|
try {
|
|
3366
3372
|
d.value = !1, u.value = !0;
|
|
3367
|
-
const { data:
|
|
3368
|
-
r("fetch:success",
|
|
3369
|
-
} catch (
|
|
3370
|
-
const
|
|
3371
|
-
c.value =
|
|
3373
|
+
const { data: v } = await l.get(_.value);
|
|
3374
|
+
r("fetch:success", v);
|
|
3375
|
+
} catch (v) {
|
|
3376
|
+
const g = s(v);
|
|
3377
|
+
c.value = g.startsWith("code") ? o("baseForm.errors.edit") : g, d.value = !0, r("fetch:error", v);
|
|
3372
3378
|
} finally {
|
|
3373
3379
|
u.value = !1;
|
|
3374
3380
|
}
|
|
3375
|
-
}), (
|
|
3376
|
-
const
|
|
3377
|
-
return f(), D(
|
|
3381
|
+
}), (v, g) => {
|
|
3382
|
+
const y = P("KSkeleton"), F = P("KEmptyState"), L = P("KAlert"), x = P("KButton"), z = P("KTabs"), E = P("KSlideout"), C = P("KCard");
|
|
3383
|
+
return f(), D(C, { class: "kong-ui-entity-base-form" }, {
|
|
3378
3384
|
default: b(() => [
|
|
3379
|
-
u.value ? (f(), D(
|
|
3385
|
+
u.value ? (f(), D(y, {
|
|
3380
3386
|
key: 0,
|
|
3381
3387
|
type: "form"
|
|
3382
3388
|
})) : d.value ? (f(), D(F, {
|
|
@@ -3384,7 +3390,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3384
3390
|
"action-button-text": h(o)("baseForm.actions.back"),
|
|
3385
3391
|
"data-testid": "form-fetch-error",
|
|
3386
3392
|
"icon-variant": "error",
|
|
3387
|
-
onClickAction:
|
|
3393
|
+
onClickAction: I
|
|
3388
3394
|
}, {
|
|
3389
3395
|
default: b(() => [
|
|
3390
3396
|
B("h3", null, N(c.value), 1)
|
|
@@ -3393,10 +3399,10 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3393
3399
|
}, 8, ["action-button-text"])) : (f(), j("form", {
|
|
3394
3400
|
key: 2,
|
|
3395
3401
|
"data-testid": "form-content",
|
|
3396
|
-
onReset: Ct(
|
|
3402
|
+
onReset: Ct(R, ["prevent"]),
|
|
3397
3403
|
onSubmit: Ct(K, ["prevent"])
|
|
3398
3404
|
}, [
|
|
3399
|
-
te(
|
|
3405
|
+
te(v.$slots, "default", {}, void 0, !0),
|
|
3400
3406
|
e.errorMessage ? (f(), D(L, {
|
|
3401
3407
|
key: 0,
|
|
3402
3408
|
appearance: "danger",
|
|
@@ -3404,18 +3410,18 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3404
3410
|
message: e.errorMessage
|
|
3405
3411
|
}, null, 8, ["message"])) : W("", !0),
|
|
3406
3412
|
B("div", js, [
|
|
3407
|
-
te(
|
|
3408
|
-
T(
|
|
3413
|
+
te(v.$slots, "form-actions", {}, () => [
|
|
3414
|
+
T(x, {
|
|
3409
3415
|
appearance: "tertiary",
|
|
3410
3416
|
"data-testid": "form-view-configuration",
|
|
3411
|
-
onClick:
|
|
3417
|
+
onClick: g[0] || (g[0] = (S) => k())
|
|
3412
3418
|
}, {
|
|
3413
3419
|
default: b(() => [
|
|
3414
3420
|
Q(N(h(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3415
3421
|
]),
|
|
3416
3422
|
_: 1
|
|
3417
3423
|
}),
|
|
3418
|
-
T(
|
|
3424
|
+
T(x, {
|
|
3419
3425
|
appearance: "secondary",
|
|
3420
3426
|
"data-testid": "form-cancel",
|
|
3421
3427
|
disabled: e.isReadonly,
|
|
@@ -3426,10 +3432,10 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3426
3432
|
]),
|
|
3427
3433
|
_: 1
|
|
3428
3434
|
}, 8, ["disabled"]),
|
|
3429
|
-
T(
|
|
3435
|
+
T(x, {
|
|
3430
3436
|
appearance: "primary",
|
|
3431
3437
|
"data-testid": "form-submit",
|
|
3432
|
-
disabled:
|
|
3438
|
+
disabled: m.value,
|
|
3433
3439
|
type: "submit"
|
|
3434
3440
|
}, {
|
|
3435
3441
|
default: b(() => [
|
|
@@ -3447,7 +3453,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3447
3453
|
"offset-top": 60,
|
|
3448
3454
|
title: h(o)("baseForm.configuration.title"),
|
|
3449
3455
|
visible: p.value,
|
|
3450
|
-
onClose:
|
|
3456
|
+
onClose: g[1] || (g[1] = (S) => k())
|
|
3451
3457
|
}, {
|
|
3452
3458
|
default: b(() => [
|
|
3453
3459
|
B("div", null, N(h(o)("baseForm.configuration.message")), 1),
|
|
@@ -3458,7 +3464,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3458
3464
|
json: b(() => [
|
|
3459
3465
|
T(xn, {
|
|
3460
3466
|
config: e.config,
|
|
3461
|
-
"fetcher-url":
|
|
3467
|
+
"fetcher-url": _.value,
|
|
3462
3468
|
"json-record": a.formFields,
|
|
3463
3469
|
"request-method": a.editId ? "put" : "post"
|
|
3464
3470
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
@@ -3494,61 +3500,61 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3494
3500
|
}
|
|
3495
3501
|
},
|
|
3496
3502
|
setup(e) {
|
|
3497
|
-
const n = e, t =
|
|
3498
|
-
var
|
|
3499
|
-
return ((
|
|
3500
|
-
}), r =
|
|
3501
|
-
var
|
|
3502
|
-
return ((
|
|
3503
|
-
}), a =
|
|
3504
|
-
var
|
|
3505
|
-
const
|
|
3506
|
-
return
|
|
3503
|
+
const n = e, t = A(() => {
|
|
3504
|
+
var k;
|
|
3505
|
+
return ((k = n.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3506
|
+
}), r = A(() => {
|
|
3507
|
+
var k;
|
|
3508
|
+
return ((k = t.value) == null ? void 0 : k.querySelector('[data-testid="first-col"]')) || null;
|
|
3509
|
+
}), a = A(() => {
|
|
3510
|
+
var k, I;
|
|
3511
|
+
const R = (k = n.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3512
|
+
return R ? ((I = R[0]) == null ? void 0 : I.getAttribute("data-testid")) === n.keyName : !1;
|
|
3507
3513
|
});
|
|
3508
3514
|
let i;
|
|
3509
3515
|
const o = () => {
|
|
3510
3516
|
i && (i.disconnect(), i = void 0);
|
|
3511
3517
|
}, s = () => {
|
|
3512
|
-
var
|
|
3513
|
-
u.value = ((
|
|
3514
|
-
}, l = O({}), u = O(0), d = O(0), c = O(""),
|
|
3515
|
-
|
|
3516
|
-
(
|
|
3518
|
+
var k, I, R;
|
|
3519
|
+
u.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((I = t.value) == null ? void 0 : I.clientWidth) || 0, c.value = ((R = l.value) == null ? void 0 : R.innerText) || "";
|
|
3520
|
+
}, l = O({}), u = O(0), d = O(0), c = O(""), m = A(() => [r.value, t.value]), p = xe(
|
|
3521
|
+
m,
|
|
3522
|
+
(k) => {
|
|
3517
3523
|
if (a.value && (o(), "ResizeObserver" in window && window)) {
|
|
3518
|
-
i = new ResizeObserver((
|
|
3524
|
+
i = new ResizeObserver((I) => {
|
|
3519
3525
|
window.requestAnimationFrame(() => {
|
|
3520
|
-
!Array.isArray(
|
|
3526
|
+
!Array.isArray(I) || !I.length || s();
|
|
3521
3527
|
});
|
|
3522
3528
|
});
|
|
3523
|
-
for (const
|
|
3524
|
-
|
|
3529
|
+
for (const I of k)
|
|
3530
|
+
I && i.observe(I);
|
|
3525
3531
|
}
|
|
3526
3532
|
},
|
|
3527
3533
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3528
|
-
),
|
|
3534
|
+
), _ = A(() => a.value ? u.value > d.value : !1);
|
|
3529
3535
|
return kr(() => {
|
|
3530
3536
|
s();
|
|
3531
3537
|
}), Cr(() => {
|
|
3532
3538
|
p();
|
|
3533
|
-
}), (
|
|
3534
|
-
const
|
|
3539
|
+
}), (k, I) => {
|
|
3540
|
+
const R = P("KTooltip");
|
|
3535
3541
|
return f(), j("span", {
|
|
3536
3542
|
ref_key: "contentRef",
|
|
3537
3543
|
ref: l,
|
|
3538
3544
|
class: "content-wrapper"
|
|
3539
3545
|
}, [
|
|
3540
3546
|
a.value ? (f(), j("span", Es, [
|
|
3541
|
-
T(
|
|
3547
|
+
T(R, {
|
|
3542
3548
|
"max-width": "300",
|
|
3543
3549
|
placement: "bottomStart",
|
|
3544
|
-
text:
|
|
3550
|
+
text: _.value ? c.value : ""
|
|
3545
3551
|
}, {
|
|
3546
3552
|
default: b(() => [
|
|
3547
|
-
te(
|
|
3553
|
+
te(k.$slots, "default", {}, void 0, !0)
|
|
3548
3554
|
]),
|
|
3549
3555
|
_: 3
|
|
3550
3556
|
}, 8, ["text"])
|
|
3551
|
-
])) : te(
|
|
3557
|
+
])) : te(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3552
3558
|
], 512);
|
|
3553
3559
|
};
|
|
3554
3560
|
}
|
|
@@ -3665,66 +3671,66 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3665
3671
|
},
|
|
3666
3672
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3667
3673
|
setup(e, { emit: n }) {
|
|
3668
|
-
const t = e, r = n, { i18n: { t: a } } = se.useI18n(), i =
|
|
3669
|
-
var
|
|
3674
|
+
const t = e, r = n, { i18n: { t: a } } = se.useI18n(), i = A(() => {
|
|
3675
|
+
var g, y;
|
|
3670
3676
|
return typeof t.errorMessage == "string" ? {
|
|
3671
3677
|
hasError: !!t.errorMessage,
|
|
3672
3678
|
title: t.errorMessage,
|
|
3673
3679
|
message: void 0
|
|
3674
3680
|
} : {
|
|
3675
3681
|
hasError: !!t.errorMessage,
|
|
3676
|
-
title: (
|
|
3677
|
-
message: (
|
|
3682
|
+
title: (g = t.errorMessage) == null ? void 0 : g.title,
|
|
3683
|
+
message: (y = t.errorMessage) == null ? void 0 : y.message
|
|
3678
3684
|
};
|
|
3679
|
-
}), o =
|
|
3680
|
-
const
|
|
3681
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3682
|
-
const F = t.tableHeaders[
|
|
3683
|
-
|
|
3684
|
-
label: F.label ??
|
|
3685
|
-
key:
|
|
3685
|
+
}), o = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (g) => g.hasData || !!t.query, l = A(() => {
|
|
3686
|
+
const g = [];
|
|
3687
|
+
return Object.keys(t.tableHeaders).forEach((y) => {
|
|
3688
|
+
const F = t.tableHeaders[y];
|
|
3689
|
+
g.push({
|
|
3690
|
+
label: F.label ?? y,
|
|
3691
|
+
key: y,
|
|
3686
3692
|
sortable: F.sortable ?? !1
|
|
3687
3693
|
});
|
|
3688
|
-
}), t.enableEntityActions &&
|
|
3694
|
+
}), t.enableEntityActions && g.push({
|
|
3689
3695
|
key: "actions",
|
|
3690
3696
|
hideLabel: !0
|
|
3691
|
-
}),
|
|
3692
|
-
}), u = (
|
|
3693
|
-
"data-rowid":
|
|
3694
|
-
"data-testid":
|
|
3695
|
-
...t.rowAttributes(
|
|
3696
|
-
}), d = O({}), c = (
|
|
3697
|
-
var
|
|
3698
|
-
return (
|
|
3699
|
-
},
|
|
3700
|
-
const
|
|
3701
|
-
"data-testid":
|
|
3702
|
-
...t.cellAttributes(
|
|
3697
|
+
}), g;
|
|
3698
|
+
}), u = (g) => ({
|
|
3699
|
+
"data-rowid": g.id,
|
|
3700
|
+
"data-testid": g.name,
|
|
3701
|
+
...t.rowAttributes(g)
|
|
3702
|
+
}), d = O({}), c = (g) => {
|
|
3703
|
+
var y;
|
|
3704
|
+
return (y = d.value) == null ? void 0 : y.$el.querySelector(`[data-rowid="${g.id}"]`);
|
|
3705
|
+
}, m = (g) => {
|
|
3706
|
+
const y = {
|
|
3707
|
+
"data-testid": g.headerKey,
|
|
3708
|
+
...t.cellAttributes(g)
|
|
3703
3709
|
};
|
|
3704
|
-
return
|
|
3710
|
+
return g.colIndex === 0 && (y.style = {
|
|
3705
3711
|
maxWidth: "250px",
|
|
3706
3712
|
overflowX: "hidden",
|
|
3707
3713
|
textOverflow: "ellipsis"
|
|
3708
|
-
}),
|
|
3714
|
+
}), y;
|
|
3709
3715
|
}, p = () => {
|
|
3710
|
-
r("empty-state-cta-clicked"),
|
|
3711
|
-
},
|
|
3716
|
+
r("empty-state-cta-clicked"), _();
|
|
3717
|
+
}, _ = () => {
|
|
3712
3718
|
r("clear-search-input");
|
|
3713
|
-
},
|
|
3714
|
-
r("click:row",
|
|
3715
|
-
}),
|
|
3716
|
-
r("sort",
|
|
3717
|
-
}, { setTablePreferences:
|
|
3718
|
-
const
|
|
3719
|
+
}, k = A(() => t.disableRowClick ? void 0 : (g, y) => {
|
|
3720
|
+
r("click:row", y);
|
|
3721
|
+
}), I = (g) => {
|
|
3722
|
+
r("sort", g);
|
|
3723
|
+
}, { setTablePreferences: R, getTablePreferences: K } = Or(), Y = A(() => {
|
|
3724
|
+
const g = K(t.preferencesStorageKey);
|
|
3719
3725
|
return {
|
|
3720
3726
|
...t.initialFetcherParams,
|
|
3721
|
-
...
|
|
3727
|
+
...g
|
|
3722
3728
|
};
|
|
3723
|
-
}),
|
|
3724
|
-
t.preferencesStorageKey &&
|
|
3729
|
+
}), v = (g) => {
|
|
3730
|
+
t.preferencesStorageKey && R(t.preferencesStorageKey, g);
|
|
3725
3731
|
};
|
|
3726
|
-
return (
|
|
3727
|
-
const F = P("KIcon"), L = P("KButton"),
|
|
3732
|
+
return (g, y) => {
|
|
3733
|
+
const F = P("KIcon"), L = P("KButton"), x = P("KDropdown"), z = P("KTable"), E = P("KCard");
|
|
3728
3734
|
return f(), D(E, {
|
|
3729
3735
|
class: "kong-ui-entity-base-table",
|
|
3730
3736
|
title: e.title
|
|
@@ -3734,7 +3740,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3734
3740
|
ref_key: "tableRefs",
|
|
3735
3741
|
ref: d,
|
|
3736
3742
|
"cache-identifier": o.value,
|
|
3737
|
-
"cell-attrs":
|
|
3743
|
+
"cell-attrs": m,
|
|
3738
3744
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3739
3745
|
"disable-sorting": e.disableSorting,
|
|
3740
3746
|
"empty-state-action-message": e.query ? h(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
@@ -3756,32 +3762,32 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3756
3762
|
"row-attrs": u,
|
|
3757
3763
|
"search-input": e.query,
|
|
3758
3764
|
onKtableEmptyStateCtaClicked: p,
|
|
3759
|
-
"onRow:click":
|
|
3760
|
-
onSort:
|
|
3761
|
-
"onUpdate:tablePreferences":
|
|
3765
|
+
"onRow:click": k.value,
|
|
3766
|
+
onSort: y[0] || (y[0] = (C) => I(C)),
|
|
3767
|
+
"onUpdate:tablePreferences": v
|
|
3762
3768
|
}, Ke({
|
|
3763
|
-
toolbar: b(({ state:
|
|
3769
|
+
toolbar: b(({ state: C }) => [
|
|
3764
3770
|
Se(B("div", qs, [
|
|
3765
|
-
te(
|
|
3766
|
-
|
|
3767
|
-
te(
|
|
3771
|
+
te(g.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3772
|
+
g.$slots["toolbar-button"] ? (f(), j("div", Ks, [
|
|
3773
|
+
te(g.$slots, "toolbar-button", {}, void 0, !0)
|
|
3768
3774
|
])) : W("", !0)
|
|
3769
3775
|
], 512), [
|
|
3770
|
-
[$e, s(
|
|
3776
|
+
[$e, s(C)]
|
|
3771
3777
|
])
|
|
3772
3778
|
]),
|
|
3773
|
-
actions: b(({ row:
|
|
3779
|
+
actions: b(({ row: C, rowKey: S, rowValue: q }) => [
|
|
3774
3780
|
B("div", {
|
|
3775
3781
|
class: "actions-container",
|
|
3776
|
-
"data-testid":
|
|
3782
|
+
"data-testid": C.name
|
|
3777
3783
|
}, [
|
|
3778
|
-
T(
|
|
3784
|
+
T(x, {
|
|
3779
3785
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3780
3786
|
width: e.dropdownMenuWidth
|
|
3781
3787
|
}, {
|
|
3782
3788
|
items: b(() => [
|
|
3783
|
-
te(
|
|
3784
|
-
row:
|
|
3789
|
+
te(g.$slots, "actions", {
|
|
3790
|
+
row: C,
|
|
3785
3791
|
rowKey: S,
|
|
3786
3792
|
rowValue: q
|
|
3787
3793
|
}, void 0, !0)
|
|
@@ -3808,7 +3814,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3808
3814
|
]),
|
|
3809
3815
|
_: 2
|
|
3810
3816
|
}, [
|
|
3811
|
-
|
|
3817
|
+
he(e.tableHeaders, (C, S) => ({
|
|
3812
3818
|
name: S,
|
|
3813
3819
|
fn: b(({ row: q, rowKey: G, rowValue: ae }) => [
|
|
3814
3820
|
T(Fs, {
|
|
@@ -3816,7 +3822,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3816
3822
|
"row-el": c(q)
|
|
3817
3823
|
}, {
|
|
3818
3824
|
default: b(() => [
|
|
3819
|
-
te(
|
|
3825
|
+
te(g.$slots, S, {
|
|
3820
3826
|
row: q,
|
|
3821
3827
|
rowKey: G,
|
|
3822
3828
|
rowValue: ae
|
|
@@ -3844,10 +3850,10 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3844
3850
|
}), Us = /* @__PURE__ */ be(Bs, [["__scopeId", "data-v-273124cf"]]), Ps = {
|
|
3845
3851
|
key: 0,
|
|
3846
3852
|
class: "kong-ui-entity-delete-error"
|
|
3847
|
-
},
|
|
3853
|
+
}, Rs = {
|
|
3848
3854
|
key: 1,
|
|
3849
3855
|
class: "description"
|
|
3850
|
-
},
|
|
3856
|
+
}, Vs = /* @__PURE__ */ X({
|
|
3851
3857
|
__name: "EntityDeleteModal",
|
|
3852
3858
|
props: {
|
|
3853
3859
|
visible: {
|
|
@@ -3886,7 +3892,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3886
3892
|
},
|
|
3887
3893
|
emits: ["cancel", "proceed"],
|
|
3888
3894
|
setup(e, { emit: n }) {
|
|
3889
|
-
const { i18nT: t } = se.useI18n(), r = e, a = n, i =
|
|
3895
|
+
const { i18nT: t } = se.useI18n(), r = e, a = n, i = A(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
3890
3896
|
a("cancel");
|
|
3891
3897
|
}, s = () => {
|
|
3892
3898
|
a("proceed");
|
|
@@ -3931,7 +3937,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3931
3937
|
key: "0"
|
|
3932
3938
|
} : void 0
|
|
3933
3939
|
]), 1032, ["keypath"]),
|
|
3934
|
-
r.description || l.$slots.description ? (f(), j("div",
|
|
3940
|
+
r.description || l.$slots.description ? (f(), j("div", Rs, [
|
|
3935
3941
|
te(l.$slots, "description", {}, () => [
|
|
3936
3942
|
B("p", null, N(r.description), 1)
|
|
3937
3943
|
], !0)
|
|
@@ -3941,7 +3947,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3941
3947
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3942
3948
|
};
|
|
3943
3949
|
}
|
|
3944
|
-
}), Ds = /* @__PURE__ */ be(
|
|
3950
|
+
}), Ds = /* @__PURE__ */ be(Vs, [["__scopeId", "data-v-4361d622"]]), zs = {
|
|
3945
3951
|
fill: "none",
|
|
3946
3952
|
height: "20",
|
|
3947
3953
|
viewBox: "0 0 20 20",
|
|
@@ -4003,62 +4009,62 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4003
4009
|
},
|
|
4004
4010
|
emits: ["update:modelValue"],
|
|
4005
4011
|
setup(e, { emit: n }) {
|
|
4006
|
-
const { i18n: { t } } = se.useI18n(), r = e, a = n, i = O(!1), o = O({}), s = O(/* @__PURE__ */ new Set()), l =
|
|
4007
|
-
const
|
|
4008
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4009
|
-
|
|
4010
|
-
}),
|
|
4011
|
-
}), u =
|
|
4012
|
-
const
|
|
4013
|
-
return Object.keys(
|
|
4014
|
-
label:
|
|
4015
|
-
value:
|
|
4012
|
+
const { i18n: { t } } = se.useI18n(), r = e, a = n, i = O(!1), o = O({}), s = O(/* @__PURE__ */ new Set()), l = A(() => {
|
|
4013
|
+
const v = [];
|
|
4014
|
+
return new URLSearchParams(r.modelValue).forEach((g, y) => {
|
|
4015
|
+
g !== "" && v.push(y);
|
|
4016
|
+
}), v;
|
|
4017
|
+
}), u = A(() => {
|
|
4018
|
+
const v = r.config.fields;
|
|
4019
|
+
return Object.keys(v).filter((g) => v[g].searchable).map((g) => ({
|
|
4020
|
+
label: v[g].label || g,
|
|
4021
|
+
value: g,
|
|
4016
4022
|
expanded: !1
|
|
4017
4023
|
}));
|
|
4018
4024
|
});
|
|
4019
|
-
xe(() => r.modelValue, (
|
|
4020
|
-
o.value = {}, new URLSearchParams(
|
|
4021
|
-
o.value[
|
|
4025
|
+
xe(() => r.modelValue, (v) => {
|
|
4026
|
+
o.value = {}, new URLSearchParams(v).forEach((g, y) => {
|
|
4027
|
+
o.value[y] = g;
|
|
4022
4028
|
});
|
|
4023
4029
|
});
|
|
4024
4030
|
const d = () => {
|
|
4025
4031
|
i.value = !i.value;
|
|
4026
|
-
}, c = (
|
|
4027
|
-
s.value.has(
|
|
4028
|
-
},
|
|
4029
|
-
a("update:modelValue",
|
|
4032
|
+
}, c = (v) => {
|
|
4033
|
+
s.value.has(v) ? s.value.delete(v) : s.value.add(v);
|
|
4034
|
+
}, m = (v) => {
|
|
4035
|
+
a("update:modelValue", v);
|
|
4030
4036
|
}, p = () => {
|
|
4031
|
-
|
|
4032
|
-
},
|
|
4033
|
-
var
|
|
4034
|
-
return (((
|
|
4037
|
+
m("");
|
|
4038
|
+
}, _ = (v) => `filter-${v}`, k = (v) => {
|
|
4039
|
+
var g, y;
|
|
4040
|
+
return (((y = (g = r.config.schema) == null ? void 0 : g[v]) == null ? void 0 : y.values) ?? []).map((F) => ({
|
|
4035
4041
|
value: F,
|
|
4036
4042
|
label: F
|
|
4037
4043
|
}));
|
|
4038
|
-
},
|
|
4039
|
-
var
|
|
4040
|
-
return ((
|
|
4041
|
-
},
|
|
4044
|
+
}, I = (v) => {
|
|
4045
|
+
var g, y;
|
|
4046
|
+
return ((y = (g = r.config.schema) == null ? void 0 : g[v]) == null ? void 0 : y.type) ?? "text";
|
|
4047
|
+
}, R = (v) => {
|
|
4042
4048
|
o.value = {
|
|
4043
4049
|
...o.value,
|
|
4044
|
-
[
|
|
4050
|
+
[v]: ""
|
|
4045
4051
|
}, Y();
|
|
4046
4052
|
}, K = () => {
|
|
4047
4053
|
o.value = {}, Y(!0);
|
|
4048
|
-
}, Y = (
|
|
4049
|
-
const
|
|
4050
|
-
|
|
4054
|
+
}, Y = (v = !1) => {
|
|
4055
|
+
const g = Object.keys(o.value).reduce((y, F) => (o.value[F] && (y[F] = `${o.value[F]}`), y), {});
|
|
4056
|
+
v && (i.value = !1), a("update:modelValue", new URLSearchParams(g).toString());
|
|
4051
4057
|
};
|
|
4052
|
-
return (
|
|
4053
|
-
const
|
|
4054
|
-
return e.config.isExactMatch ? (f(), D(
|
|
4058
|
+
return (v, g) => {
|
|
4059
|
+
const y = P("KInput"), F = P("KButton"), L = P("KSelect");
|
|
4060
|
+
return e.config.isExactMatch ? (f(), D(y, {
|
|
4055
4061
|
key: 0,
|
|
4056
4062
|
autocomplete: "off",
|
|
4057
4063
|
class: "kong-ui-entity-filter-input",
|
|
4058
4064
|
"data-testid": "search-input",
|
|
4059
4065
|
"model-value": e.modelValue,
|
|
4060
4066
|
placeholder: e.config.placeholder,
|
|
4061
|
-
"onUpdate:modelValue":
|
|
4067
|
+
"onUpdate:modelValue": m
|
|
4062
4068
|
}, {
|
|
4063
4069
|
before: b(() => [
|
|
4064
4070
|
T(fn)
|
|
@@ -4091,59 +4097,59 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4091
4097
|
[$e, i.value]
|
|
4092
4098
|
]),
|
|
4093
4099
|
Se(B("div", Zs, [
|
|
4094
|
-
(f(!0), j(ve, null,
|
|
4100
|
+
(f(!0), j(ve, null, he(u.value, (x) => {
|
|
4095
4101
|
var z, E;
|
|
4096
4102
|
return f(), j("div", {
|
|
4097
|
-
key:
|
|
4103
|
+
key: x.value,
|
|
4098
4104
|
class: "kong-ui-entity-filter-menu-item",
|
|
4099
|
-
"data-testid":
|
|
4105
|
+
"data-testid": x.value
|
|
4100
4106
|
}, [
|
|
4101
4107
|
B("span", {
|
|
4102
|
-
class: Me(["menu-item-title", { expanded: s.value.has(
|
|
4108
|
+
class: Me(["menu-item-title", { expanded: s.value.has(x.value) }]),
|
|
4103
4109
|
role: "button",
|
|
4104
4110
|
tabindex: "0",
|
|
4105
|
-
onClick: (
|
|
4106
|
-
onKeydown: vr((
|
|
4111
|
+
onClick: (C) => c(x.value),
|
|
4112
|
+
onKeydown: vr((C) => c(x.value), ["enter"])
|
|
4107
4113
|
}, [
|
|
4108
|
-
Q(N(
|
|
4114
|
+
Q(N(x.label) + " ", 1),
|
|
4109
4115
|
Se(B("span", el, null, 512), [
|
|
4110
|
-
[$e, l.value.includes(
|
|
4116
|
+
[$e, l.value.includes(x.value)]
|
|
4111
4117
|
]),
|
|
4112
|
-
T(h(
|
|
4113
|
-
class: Me(["menu-item-expand-icon", { expanded: s.value.has(
|
|
4118
|
+
T(h(hs), {
|
|
4119
|
+
class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
|
|
4114
4120
|
color: h(ca)
|
|
4115
4121
|
}, null, 8, ["class", "color"])
|
|
4116
4122
|
], 42, Xs),
|
|
4117
4123
|
Se(B("div", tl, [
|
|
4118
4124
|
B("label", {
|
|
4119
4125
|
class: "menu-item-label",
|
|
4120
|
-
for:
|
|
4126
|
+
for: _(x.value)
|
|
4121
4127
|
}, N(h(t)("filter.fieldLabel")), 9, nl),
|
|
4122
|
-
((E = (z = e.config.schema) == null ? void 0 : z[
|
|
4128
|
+
((E = (z = e.config.schema) == null ? void 0 : z[x.value]) == null ? void 0 : E.type) === "select" ? (f(), D(L, {
|
|
4123
4129
|
key: 0,
|
|
4124
|
-
id:
|
|
4125
|
-
modelValue: o.value[
|
|
4126
|
-
"onUpdate:modelValue": (
|
|
4127
|
-
items:
|
|
4130
|
+
id: _(x.value),
|
|
4131
|
+
modelValue: o.value[x.value],
|
|
4132
|
+
"onUpdate:modelValue": (C) => o.value[x.value] = C,
|
|
4133
|
+
items: k(x.value),
|
|
4128
4134
|
placeholder: h(t)("filter.selectPlaceholder")
|
|
4129
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), D(
|
|
4135
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), D(y, {
|
|
4130
4136
|
key: 1,
|
|
4131
|
-
id:
|
|
4132
|
-
modelValue: o.value[
|
|
4133
|
-
"onUpdate:modelValue": (
|
|
4137
|
+
id: _(x.value),
|
|
4138
|
+
modelValue: o.value[x.value],
|
|
4139
|
+
"onUpdate:modelValue": (C) => o.value[x.value] = C,
|
|
4134
4140
|
autocomplete: "off",
|
|
4135
4141
|
placeholder: h(t)("filter.inputPlaceholder"),
|
|
4136
|
-
type:
|
|
4142
|
+
type: I(x.value)
|
|
4137
4143
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4138
4144
|
], 512), [
|
|
4139
|
-
[$e, s.value.has(
|
|
4145
|
+
[$e, s.value.has(x.value)]
|
|
4140
4146
|
]),
|
|
4141
4147
|
Se(B("div", rl, [
|
|
4142
4148
|
T(F, {
|
|
4143
4149
|
appearance: "tertiary",
|
|
4144
4150
|
"data-testid": "apply-filter",
|
|
4145
4151
|
size: "small",
|
|
4146
|
-
onClick:
|
|
4152
|
+
onClick: g[0] || (g[0] = (C) => Y(!0))
|
|
4147
4153
|
}, {
|
|
4148
4154
|
default: b(() => [
|
|
4149
4155
|
Q(N(h(t)("filter.applyButtonText")), 1)
|
|
@@ -4154,7 +4160,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4154
4160
|
appearance: "tertiary",
|
|
4155
4161
|
"data-testid": "clear-filter",
|
|
4156
4162
|
size: "small",
|
|
4157
|
-
onClick: (
|
|
4163
|
+
onClick: (C) => R(x.value)
|
|
4158
4164
|
}, {
|
|
4159
4165
|
default: b(() => [
|
|
4160
4166
|
Q(N(h(t)("filter.clearButtonText")), 1)
|
|
@@ -4162,7 +4168,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4162
4168
|
_: 2
|
|
4163
4169
|
}, 1032, ["onClick"])
|
|
4164
4170
|
], 512), [
|
|
4165
|
-
[$e, s.value.has(
|
|
4171
|
+
[$e, s.value.has(x.value)]
|
|
4166
4172
|
])
|
|
4167
4173
|
], 8, Qs);
|
|
4168
4174
|
}), 128)),
|
|
@@ -4206,7 +4212,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4206
4212
|
}
|
|
4207
4213
|
},
|
|
4208
4214
|
setup(e) {
|
|
4209
|
-
const n = e, t = O(void 0), r =
|
|
4215
|
+
const n = e, t = O(void 0), r = A(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
4210
4216
|
return xe(() => n.authFunction, async () => {
|
|
4211
4217
|
t.value = await n.authFunction();
|
|
4212
4218
|
}, { immediate: !0 }), (a, i) => r.value ? te(a.$slots, "default", {
|
|
@@ -4273,7 +4279,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4273
4279
|
])
|
|
4274
4280
|
], 2));
|
|
4275
4281
|
}
|
|
4276
|
-
}), mn = /* @__PURE__ */ be(pl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kt, useDeleteUrlBuilder: fl, useErrors: ml, useExternalLinkCreator: ql, useFetchUrlBuilder: Kl, useFetcher: gl, useDebouncedFilter: mr, useStringHelpers: Ll, useHelpers: Bl, useGatewayFeatureSupported: Ul, useTruncationDetector: Pl } = se,
|
|
4282
|
+
}), mn = /* @__PURE__ */ be(pl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kt, useDeleteUrlBuilder: fl, useErrors: ml, useExternalLinkCreator: ql, useFetchUrlBuilder: Kl, useFetcher: gl, useDebouncedFilter: mr, useStringHelpers: Ll, useHelpers: Bl, useGatewayFeatureSupported: Ul, useTruncationDetector: Pl } = se, yl = { class: "add-to-group-form-container" }, hl = { class: "add-to-group-cta-text" }, vl = {
|
|
4277
4283
|
key: 0,
|
|
4278
4284
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4279
4285
|
}, bl = { key: 0 }, kl = /* @__PURE__ */ X({
|
|
@@ -4302,7 +4308,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4302
4308
|
allRecords: u,
|
|
4303
4309
|
error: d,
|
|
4304
4310
|
loadItems: c,
|
|
4305
|
-
results:
|
|
4311
|
+
results: m
|
|
4306
4312
|
} = mr(
|
|
4307
4313
|
r.config,
|
|
4308
4314
|
Te.list[r.config.app].all,
|
|
@@ -4311,97 +4317,97 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4311
4317
|
fetchedItemsKey: "data",
|
|
4312
4318
|
searchKeys: ["name", "id"]
|
|
4313
4319
|
}
|
|
4314
|
-
), p =
|
|
4315
|
-
label:
|
|
4316
|
-
value:
|
|
4317
|
-
selected: o.value.includes(
|
|
4318
|
-
data:
|
|
4320
|
+
), p = A(() => d.value ? t("consumer_groups.errors.general") : ""), _ = O(0), k = A(() => u.value === void 0), I = A(() => m.value.map((C) => ({
|
|
4321
|
+
label: C.name,
|
|
4322
|
+
value: C.id,
|
|
4323
|
+
selected: o.value.includes(C.id),
|
|
4324
|
+
data: C
|
|
4319
4325
|
// we need this to determine whether or not to show the description text
|
|
4320
|
-
}))),
|
|
4326
|
+
}))), R = (C) => {
|
|
4321
4327
|
var q;
|
|
4322
|
-
const S =
|
|
4323
|
-
return S ? S.name :
|
|
4328
|
+
const S = k.value ? m.value.find((G) => G.id === C) : (q = u.value) == null ? void 0 : q.find((G) => G.id === C);
|
|
4329
|
+
return S ? S.name : C;
|
|
4324
4330
|
}, K = () => {
|
|
4325
|
-
|
|
4326
|
-
}, Y = O([]),
|
|
4331
|
+
g.value = "", Y.value = [], x.value = [], a("cancel");
|
|
4332
|
+
}, Y = O([]), v = O(!1), g = O(""), y = async () => {
|
|
4327
4333
|
if (!o.value.length) {
|
|
4328
|
-
|
|
4334
|
+
g.value = "", x.value = [], a("cancel");
|
|
4329
4335
|
return;
|
|
4330
4336
|
}
|
|
4331
|
-
|
|
4337
|
+
v.value = !0, g.value = "", Y.value = [], x.value = [];
|
|
4332
4338
|
try {
|
|
4333
|
-
const
|
|
4339
|
+
const C = o.value.map((G) => L(G)), S = await Promise.allSettled(C);
|
|
4334
4340
|
let q = !0;
|
|
4335
4341
|
S.forEach((G) => {
|
|
4336
4342
|
G.status !== "fulfilled" && (q = !1);
|
|
4337
|
-
}), q ? (Y.value = [],
|
|
4343
|
+
}), q ? (Y.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Y.value.length && a("add:partial-success", Y.value), o.value = [], z(S));
|
|
4338
4344
|
} catch {
|
|
4339
|
-
|
|
4345
|
+
g.value = t("consumer_groups.errors.add"), a("error", g.value);
|
|
4340
4346
|
} finally {
|
|
4341
|
-
|
|
4347
|
+
v.value = !1;
|
|
4342
4348
|
}
|
|
4343
|
-
}, F =
|
|
4349
|
+
}, F = A(() => {
|
|
4344
4350
|
var S, q, G, ae;
|
|
4345
|
-
let
|
|
4346
|
-
return r.config.app === "konnect" ?
|
|
4347
|
-
}), L = async (
|
|
4351
|
+
let C = `${r.config.apiBaseUrl}${Te.list[r.config.app].forConsumer}`;
|
|
4352
|
+
return r.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{consumerId}/gi, ((q = r.config) == null ? void 0 : q.consumerId) || "") : r.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (G = r.config) != null && G.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((ae = r.config) == null ? void 0 : ae.consumerId) || "")), C;
|
|
4353
|
+
}), L = async (C) => {
|
|
4348
4354
|
const S = {
|
|
4349
|
-
group:
|
|
4355
|
+
group: C
|
|
4350
4356
|
};
|
|
4351
4357
|
try {
|
|
4352
4358
|
const q = await i.post(F.value, S);
|
|
4353
|
-
return Y.value.push(
|
|
4359
|
+
return Y.value.push(C), q;
|
|
4354
4360
|
} catch (q) {
|
|
4355
|
-
let G = `${
|
|
4356
|
-
return q.response.status === 409 && (G = `${
|
|
4361
|
+
let G = `${R(C)} - ${q.message}`;
|
|
4362
|
+
return q.response.status === 409 && (G = `${R(C)} - ${t("consumer_groups.errors.already_added")}`), Promise.reject(Error(G));
|
|
4357
4363
|
}
|
|
4358
|
-
},
|
|
4359
|
-
|
|
4364
|
+
}, x = O([]), z = (C) => {
|
|
4365
|
+
x.value = C.map((S) => {
|
|
4360
4366
|
var q;
|
|
4361
4367
|
return (q = S.reason) == null ? void 0 : q.message;
|
|
4362
4368
|
}).filter(Boolean);
|
|
4363
4369
|
};
|
|
4364
|
-
return xe(
|
|
4365
|
-
|
|
4370
|
+
return xe(I, () => {
|
|
4371
|
+
_.value++;
|
|
4366
4372
|
}, { immediate: !0, deep: !0 }), xe(() => r.visible, () => {
|
|
4367
4373
|
r.visible && c();
|
|
4368
|
-
}, { immediate: !0 }), (
|
|
4374
|
+
}, { immediate: !0 }), (C, S) => {
|
|
4369
4375
|
const q = P("KMultiselect"), G = P("KAlert"), ae = P("KPrompt");
|
|
4370
4376
|
return f(), D(ae, {
|
|
4371
|
-
"action-button-disabled":
|
|
4377
|
+
"action-button-disabled": v.value,
|
|
4372
4378
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
4373
4379
|
"data-testid": "add-to-group-modal",
|
|
4374
4380
|
title: h(t)("consumer_groups.consumers.add.title"),
|
|
4375
4381
|
visible: e.visible,
|
|
4376
4382
|
onCancel: K,
|
|
4377
|
-
onProceed:
|
|
4383
|
+
onProceed: y
|
|
4378
4384
|
}, {
|
|
4379
4385
|
default: b(() => [
|
|
4380
|
-
B("div",
|
|
4381
|
-
B("p",
|
|
4386
|
+
B("div", yl, [
|
|
4387
|
+
B("p", hl, N(h(t)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4382
4388
|
T(q, {
|
|
4383
4389
|
modelValue: o.value,
|
|
4384
4390
|
"onUpdate:modelValue": S[0] || (S[0] = (ue) => o.value = ue),
|
|
4385
4391
|
autosuggest: "",
|
|
4386
4392
|
"data-testid": "add-to-groups-multiselect",
|
|
4387
|
-
"dropdown-footer-text":
|
|
4388
|
-
items:
|
|
4393
|
+
"dropdown-footer-text": k.value ? h(t)("consumer_groups.consumers.add.footer") : void 0,
|
|
4394
|
+
items: I.value,
|
|
4389
4395
|
label: h(t)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
4390
4396
|
loading: h(l),
|
|
4391
4397
|
placeholder: h(t)("consumer_groups.consumers.add.consumer_group_placeholder"),
|
|
4392
|
-
readonly:
|
|
4398
|
+
readonly: v.value,
|
|
4393
4399
|
required: "",
|
|
4394
4400
|
width: "100%",
|
|
4395
4401
|
onQueryChange: h(s)
|
|
4396
4402
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4397
|
-
|
|
4403
|
+
g.value || p.value || x.value.length ? (f(), j("div", vl, [
|
|
4398
4404
|
T(G, { appearance: "danger" }, {
|
|
4399
4405
|
default: b(() => [
|
|
4400
4406
|
B("p", null, N(h(t)("consumer_groups.errors.add")), 1),
|
|
4401
|
-
|
|
4402
|
-
(f(!0), j(ve, null,
|
|
4407
|
+
x.value.length ? (f(), j("ul", bl, [
|
|
4408
|
+
(f(!0), j(ve, null, he(x.value, (ue, Ge) => (f(), j("li", { key: Ge }, N(ue), 1))), 128))
|
|
4403
4409
|
])) : W("", !0),
|
|
4404
|
-
B("div", null, N(
|
|
4410
|
+
B("div", null, N(g.value || p.value), 1)
|
|
4405
4411
|
]),
|
|
4406
4412
|
_: 1
|
|
4407
4413
|
})
|
|
@@ -4417,7 +4423,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4417
4423
|
for (const [r, a] of n)
|
|
4418
4424
|
t[r] = a;
|
|
4419
4425
|
return t;
|
|
4420
|
-
}, Cl = /* @__PURE__ */ Lt(kl, [["__scopeId", "data-v-303b382c"]]), wl = { class: "kong-ui-entities-consumer-groups-list" }, _l = { key: 1 },
|
|
4426
|
+
}, Cl = /* @__PURE__ */ Lt(kl, [["__scopeId", "data-v-303b382c"]]), wl = { class: "kong-ui-entities-consumer-groups-list" }, _l = { key: 1 }, Il = /* @__PURE__ */ X({
|
|
4421
4427
|
__name: "ConsumerGroupList",
|
|
4422
4428
|
props: {
|
|
4423
4429
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4466,37 +4472,37 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4466
4472
|
var Pt;
|
|
4467
4473
|
const t = n, r = e, { i18nT: a, i18n: { t: i } } = ft.useI18n(), o = $t(), { axiosInstance: s } = Kt({
|
|
4468
4474
|
headers: (Pt = r.config) == null ? void 0 : Pt.requestHeaders
|
|
4469
|
-
}), l = O(1), u =
|
|
4475
|
+
}), l = O(1), u = A(() => !!r.config.consumerId), d = A(
|
|
4470
4476
|
() => u.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
|
|
4471
|
-
), c =
|
|
4477
|
+
), c = A(() => r.config.app !== "kongManager" || !!r.config.disableSorting), m = {
|
|
4472
4478
|
name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4473
4479
|
};
|
|
4474
|
-
r.config.app === "kongManager" && (
|
|
4475
|
-
const p =
|
|
4480
|
+
r.config.app === "kongManager" && (m.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), m.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4481
|
+
const p = m, _ = ($) => ({
|
|
4476
4482
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4477
|
-
}),
|
|
4483
|
+
}), k = A(() => {
|
|
4478
4484
|
var J, re, me, Ce;
|
|
4479
4485
|
let $ = `${r.config.apiBaseUrl}${Te.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
|
|
4480
4486
|
return r.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((J = r.config) == null ? void 0 : J.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (me = r.config) != null && me.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ce = r.config) == null ? void 0 : Ce.consumerId) || "")), $;
|
|
4481
|
-
}),
|
|
4487
|
+
}), I = O(""), R = A(() => {
|
|
4482
4488
|
const $ = r.config.app === "konnect" || r.config.isExactMatch;
|
|
4483
4489
|
return $ ? {
|
|
4484
4490
|
isExactMatch: $,
|
|
4485
4491
|
fields: {
|
|
4486
|
-
username:
|
|
4492
|
+
username: m.name,
|
|
4487
4493
|
id: { label: i("consumer_groups.list.table_headers.id") }
|
|
4488
4494
|
},
|
|
4489
4495
|
placeholder: i("consumer_groups.search.placeholder")
|
|
4490
4496
|
} : {
|
|
4491
4497
|
isExactMatch: $,
|
|
4492
4498
|
fields: {
|
|
4493
|
-
name:
|
|
4499
|
+
name: m.name
|
|
4494
4500
|
},
|
|
4495
4501
|
schema: r.config.filterSchema
|
|
4496
4502
|
};
|
|
4497
|
-
}), K =
|
|
4498
|
-
|
|
4499
|
-
},
|
|
4503
|
+
}), K = A(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Y, fetcherState: v } = gl(r.config, k.value, K.value), g = () => {
|
|
4504
|
+
I.value = "";
|
|
4505
|
+
}, y = () => {
|
|
4500
4506
|
l.value++;
|
|
4501
4507
|
}, F = O(null), L = ($, J) => {
|
|
4502
4508
|
const re = $.id;
|
|
@@ -4513,7 +4519,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4513
4519
|
field: "id",
|
|
4514
4520
|
message: i("consumer_groups.copy.success", { val: re })
|
|
4515
4521
|
});
|
|
4516
|
-
},
|
|
4522
|
+
}, x = ($, J) => {
|
|
4517
4523
|
const re = JSON.stringify($);
|
|
4518
4524
|
if (!J(re)) {
|
|
4519
4525
|
t("copy:error", {
|
|
@@ -4532,10 +4538,10 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4532
4538
|
}, E = ($) => ({
|
|
4533
4539
|
label: i("consumer_groups.actions.view"),
|
|
4534
4540
|
to: r.config.getViewRoute($)
|
|
4535
|
-
}),
|
|
4541
|
+
}), C = ($) => ({
|
|
4536
4542
|
label: i("consumer_groups.actions.edit"),
|
|
4537
4543
|
to: r.config.getEditRoute($)
|
|
4538
|
-
}), S = O(void 0), q = O(!1), G = O(!1), ae = O(""), ue = fl(r.config,
|
|
4544
|
+
}), S = O(void 0), q = O(!1), G = O(!1), ae = O(""), ue = fl(r.config, k.value), Ge = ($) => {
|
|
4539
4545
|
S.value = $, q.value = !0;
|
|
4540
4546
|
}, Xe = () => {
|
|
4541
4547
|
q.value = !1;
|
|
@@ -4551,28 +4557,28 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4551
4557
|
G.value = !1;
|
|
4552
4558
|
}
|
|
4553
4559
|
}
|
|
4554
|
-
}, Be = O(!1),
|
|
4560
|
+
}, Be = O(!1), w = () => {
|
|
4555
4561
|
Be.value = !0;
|
|
4556
4562
|
}, U = () => {
|
|
4557
4563
|
Be.value = !1;
|
|
4558
4564
|
}, ne = ($, J) => {
|
|
4559
4565
|
J || U(), l.value++, t("add:success", $);
|
|
4560
4566
|
}, H = () => {
|
|
4561
|
-
u.value &&
|
|
4562
|
-
},
|
|
4563
|
-
|
|
4567
|
+
u.value && w();
|
|
4568
|
+
}, V = O(void 0), ce = O(!1), ke = O(""), de = ($) => {
|
|
4569
|
+
V.value = $, ce.value = !0;
|
|
4564
4570
|
}, Ne = () => {
|
|
4565
|
-
ce.value = !1,
|
|
4566
|
-
}, tt =
|
|
4571
|
+
ce.value = !1, V.value = void 0;
|
|
4572
|
+
}, tt = A(() => {
|
|
4567
4573
|
var J, re, me, Ce;
|
|
4568
4574
|
let $ = `${r.config.apiBaseUrl}${Te.list[r.config.app].oneForConsumer}`;
|
|
4569
4575
|
return r.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((J = r.config) == null ? void 0 : J.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (me = r.config) != null && me.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((Ce = r.config) == null ? void 0 : Ce.consumerId) || "")), $;
|
|
4570
4576
|
}), Bt = O(!1), gr = async () => {
|
|
4571
|
-
if (
|
|
4577
|
+
if (V.value) {
|
|
4572
4578
|
Bt.value = !0;
|
|
4573
4579
|
try {
|
|
4574
|
-
const $ = tt.value.replace(/{consumerGroupId}/gi,
|
|
4575
|
-
await s.delete($), t("remove:success",
|
|
4580
|
+
const $ = tt.value.replace(/{consumerGroupId}/gi, V.value.id);
|
|
4581
|
+
await s.delete($), t("remove:success", V.value), Ne(), l.value++;
|
|
4576
4582
|
} catch ($) {
|
|
4577
4583
|
ke.value = $.message || i("consumer_groups.errors.delete"), t("error", $);
|
|
4578
4584
|
} finally {
|
|
@@ -4580,7 +4586,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4580
4586
|
}
|
|
4581
4587
|
}
|
|
4582
4588
|
}, Ut = O(!0);
|
|
4583
|
-
xe(
|
|
4589
|
+
xe(v, ($) => {
|
|
4584
4590
|
var J, re, me, Ce;
|
|
4585
4591
|
if (Array.isArray((J = $ == null ? void 0 : $.response) == null ? void 0 : J.data) && (Ut.value = $.response.data.length > 0), $.status === Fe.Error) {
|
|
4586
4592
|
F.value = {
|
|
@@ -4590,44 +4596,44 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4590
4596
|
}
|
|
4591
4597
|
F.value = null;
|
|
4592
4598
|
});
|
|
4593
|
-
const
|
|
4599
|
+
const yt = O({
|
|
4594
4600
|
ctaPath: u.value ? void 0 : r.config.createRoute,
|
|
4595
4601
|
ctaText: void 0,
|
|
4596
4602
|
message: `${i("consumer_groups.list.empty_state.description")}${r.config.additionMessageForEmptyState ? ` ${r.config.additionMessageForEmptyState}` : ""}`,
|
|
4597
4603
|
title: i("consumer_groups.title")
|
|
4598
4604
|
});
|
|
4599
4605
|
return ut(async () => {
|
|
4600
|
-
await r.canCreate() && (
|
|
4606
|
+
await r.canCreate() && (yt.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), yt.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
|
|
4601
4607
|
}), ($, J) => {
|
|
4602
|
-
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"), He = P("KDropdownItem"),
|
|
4608
|
+
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"), He = P("KDropdownItem"), Rt = P("KClipboardProvider"), yr = P("KPrompt");
|
|
4603
4609
|
return f(), j("div", wl, [
|
|
4604
4610
|
T(h(Us), {
|
|
4605
4611
|
"cache-identifier": e.cacheIdentifier,
|
|
4606
4612
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4607
4613
|
"disable-pagination-page-jump": "",
|
|
4608
4614
|
"disable-sorting": c.value,
|
|
4609
|
-
"empty-state-options":
|
|
4615
|
+
"empty-state-options": yt.value,
|
|
4610
4616
|
"enable-entity-actions": "",
|
|
4611
4617
|
"error-message": F.value,
|
|
4612
4618
|
fetcher: h(Y),
|
|
4613
4619
|
"fetcher-cache-key": l.value,
|
|
4614
4620
|
"pagination-type": "offset",
|
|
4615
4621
|
"preferences-storage-key": d.value,
|
|
4616
|
-
query:
|
|
4617
|
-
"row-attributes":
|
|
4622
|
+
query: I.value,
|
|
4623
|
+
"row-attributes": _,
|
|
4618
4624
|
"table-headers": h(p),
|
|
4619
4625
|
"use-action-outside": e.useActionOutside,
|
|
4620
|
-
onClearSearchInput:
|
|
4626
|
+
onClearSearchInput: g,
|
|
4621
4627
|
"onClick:row": J[3] || (J[3] = (Z) => z(Z)),
|
|
4622
4628
|
onEmptyStateCtaClicked: H,
|
|
4623
|
-
onSort:
|
|
4629
|
+
onSort: y
|
|
4624
4630
|
}, {
|
|
4625
4631
|
"toolbar-filter": b(() => [
|
|
4626
4632
|
u.value ? W("", !0) : (f(), D(h(il), {
|
|
4627
4633
|
key: 0,
|
|
4628
|
-
modelValue:
|
|
4629
|
-
"onUpdate:modelValue": J[0] || (J[0] = (Z) =>
|
|
4630
|
-
config:
|
|
4634
|
+
modelValue: I.value,
|
|
4635
|
+
"onUpdate:modelValue": J[0] || (J[0] = (Z) => I.value = Z),
|
|
4636
|
+
config: R.value
|
|
4631
4637
|
}, null, 8, ["modelValue", "config"]))
|
|
4632
4638
|
]),
|
|
4633
4639
|
"toolbar-button": b(() => [
|
|
@@ -4645,7 +4651,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4645
4651
|
icon: "plus",
|
|
4646
4652
|
size: "large",
|
|
4647
4653
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4648
|
-
onClick: J[1] || (J[1] = () => e.config.consumerId ?
|
|
4654
|
+
onClick: J[1] || (J[1] = () => e.config.consumerId ? w() : void 0)
|
|
4649
4655
|
}, {
|
|
4650
4656
|
default: b(() => [
|
|
4651
4657
|
Q(N(e.config.consumerId ? h(i)("consumer_groups.actions.add_to_group") : h(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
@@ -4670,7 +4676,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4670
4676
|
tags: b(({ rowValue: Z }) => [
|
|
4671
4677
|
(Z == null ? void 0 : Z.length) > 0 ? (f(), D(Ce, { key: 0 }, {
|
|
4672
4678
|
default: b(() => [
|
|
4673
|
-
(f(!0), j(ve, null,
|
|
4679
|
+
(f(!0), j(ve, null, he(Z, (Ue) => (f(), D(me, {
|
|
4674
4680
|
key: Ue,
|
|
4675
4681
|
onClick: J[2] || (J[2] = Ct(() => {
|
|
4676
4682
|
}, ["stop"]))
|
|
@@ -4685,11 +4691,11 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4685
4691
|
}, 1024)) : (f(), j("span", _l, "-"))
|
|
4686
4692
|
]),
|
|
4687
4693
|
actions: b(({ row: Z }) => [
|
|
4688
|
-
T(
|
|
4694
|
+
T(Rt, null, {
|
|
4689
4695
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4690
4696
|
T(He, {
|
|
4691
4697
|
"data-testid": "action-entity-copy-id",
|
|
4692
|
-
onClick: (
|
|
4698
|
+
onClick: (hr) => L(Z, Ue)
|
|
4693
4699
|
}, {
|
|
4694
4700
|
default: b(() => [
|
|
4695
4701
|
Q(N(h(i)("consumer_groups.actions.copy_id")), 1)
|
|
@@ -4699,11 +4705,11 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4699
4705
|
]),
|
|
4700
4706
|
_: 2
|
|
4701
4707
|
}, 1024),
|
|
4702
|
-
T(
|
|
4708
|
+
T(Rt, null, {
|
|
4703
4709
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4704
4710
|
T(He, {
|
|
4705
4711
|
"data-testid": "action-entity-copy-json",
|
|
4706
|
-
onClick: (
|
|
4712
|
+
onClick: (hr) => x(Z, Ue)
|
|
4707
4713
|
}, {
|
|
4708
4714
|
default: b(() => [
|
|
4709
4715
|
Q(N(h(i)("consumer_groups.actions.copy_json")), 1)
|
|
@@ -4731,7 +4737,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4731
4737
|
default: b(() => [
|
|
4732
4738
|
T(He, {
|
|
4733
4739
|
"data-testid": "action-entity-edit",
|
|
4734
|
-
item:
|
|
4740
|
+
item: C(Z.id)
|
|
4735
4741
|
}, null, 8, ["item"])
|
|
4736
4742
|
]),
|
|
4737
4743
|
_: 2
|
|
@@ -4778,7 +4784,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4778
4784
|
"onAdd:success": J[5] || (J[5] = (Z) => ne(Z)),
|
|
4779
4785
|
onCancel: U
|
|
4780
4786
|
}, null, 8, ["config", "visible"])) : W("", !0),
|
|
4781
|
-
e.config.consumerId &&
|
|
4787
|
+
e.config.consumerId && V.value ? (f(), D(yr, {
|
|
4782
4788
|
key: 1,
|
|
4783
4789
|
"action-button-appearance": "danger",
|
|
4784
4790
|
"data-testid": "exit-group-modal",
|
|
@@ -4794,7 +4800,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4794
4800
|
tag: "p"
|
|
4795
4801
|
}, Ke({
|
|
4796
4802
|
consumerGroup: b(() => [
|
|
4797
|
-
B("strong", null, N(
|
|
4803
|
+
B("strong", null, N(V.value.name || V.value.id), 1)
|
|
4798
4804
|
]),
|
|
4799
4805
|
_: 2
|
|
4800
4806
|
}, [
|
|
@@ -4813,7 +4819,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4813
4819
|
]);
|
|
4814
4820
|
};
|
|
4815
4821
|
}
|
|
4816
|
-
}),
|
|
4822
|
+
}), Rl = /* @__PURE__ */ Lt(Il, [["__scopeId", "data-v-31674321"]]), xl = { class: "kong-ui-entities-consumer-group-form" }, Al = { class: "select-item-container" }, Sl = { class: "select-item-label" }, $l = {
|
|
4817
4823
|
key: 0,
|
|
4818
4824
|
class: "select-item-description"
|
|
4819
4825
|
}, Tl = /* @__PURE__ */ X({
|
|
@@ -4835,7 +4841,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4835
4841
|
emits: ["update", "error", "loading"],
|
|
4836
4842
|
setup(e, { emit: n }) {
|
|
4837
4843
|
var Xe, et, Be;
|
|
4838
|
-
const t = e, r = n, { i18n: { t: a } } = ft.useI18n(), i = $t(), o =
|
|
4844
|
+
const t = e, r = n, { i18n: { t: a } } = ft.useI18n(), i = $t(), o = Vt({
|
|
4839
4845
|
fields: {
|
|
4840
4846
|
name: "",
|
|
4841
4847
|
tags: "",
|
|
@@ -4843,7 +4849,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4843
4849
|
},
|
|
4844
4850
|
errorMessage: "",
|
|
4845
4851
|
readonly: !1
|
|
4846
|
-
}), s =
|
|
4852
|
+
}), s = Vt({
|
|
4847
4853
|
name: "",
|
|
4848
4854
|
tags: "",
|
|
4849
4855
|
consumers: []
|
|
@@ -4852,129 +4858,129 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4852
4858
|
loading: u,
|
|
4853
4859
|
error: d,
|
|
4854
4860
|
loadItems: c,
|
|
4855
|
-
results:
|
|
4861
|
+
results: m
|
|
4856
4862
|
} = mr(t.config, (et = Te.form[(Xe = t.config) == null ? void 0 : Xe.app]) == null ? void 0 : et.consumersList, "", {
|
|
4857
4863
|
fetchedItemsKey: "data",
|
|
4858
4864
|
searchKeys: ["username", "custom_id", "id"]
|
|
4859
4865
|
}), { axiosInstance: p } = Kt({
|
|
4860
4866
|
headers: (Be = t.config) == null ? void 0 : Be.requestHeaders
|
|
4861
|
-
}), { getMessageFromError:
|
|
4862
|
-
label:
|
|
4863
|
-
value:
|
|
4864
|
-
selected: o.fields.consumers.includes(
|
|
4865
|
-
data:
|
|
4867
|
+
}), { getMessageFromError: _ } = ml(), k = A(() => m.value.map((w) => ({
|
|
4868
|
+
label: w.username || w.custom_id,
|
|
4869
|
+
value: w.id,
|
|
4870
|
+
selected: o.fields.consumers.includes(w.id),
|
|
4871
|
+
data: w
|
|
4866
4872
|
// we need this to determine whether or not to show the description text
|
|
4867
|
-
}))),
|
|
4868
|
-
var
|
|
4869
|
-
return (U = Te.form[(
|
|
4870
|
-
}),
|
|
4871
|
-
var
|
|
4872
|
-
let H = `${(
|
|
4873
|
-
return ((ke = t.config) == null ? void 0 : ke.app) === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((de = t.config) == null ? void 0 : de.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (H = H.replace(/\/{workspace}/gi, (tt = t.config) != null && tt.workspace ? `/${t.config.workspace}` : "")), H = H.replace(/{id}/gi, U || t.consumerGroupId), (
|
|
4874
|
-
},
|
|
4875
|
-
var
|
|
4876
|
-
i.push(((
|
|
4877
|
-
},
|
|
4878
|
-
r("error",
|
|
4879
|
-
}, F = (
|
|
4880
|
-
r("loading",
|
|
4881
|
-
}, L = async (
|
|
4882
|
-
var ne, H,
|
|
4883
|
-
o.fields.name = ((ne =
|
|
4884
|
-
const U = ((
|
|
4885
|
-
if (o.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in
|
|
4886
|
-
o.fields.consumers = ((ce =
|
|
4873
|
+
}))), I = A(() => {
|
|
4874
|
+
var w, U;
|
|
4875
|
+
return (U = Te.form[(w = t.config) == null ? void 0 : w.app]) == null ? void 0 : U.edit;
|
|
4876
|
+
}), R = A(() => t.consumerGroupId ? rt.Edit : rt.Create), K = A(() => !!o.fields.name && !x.value), Y = A(() => JSON.stringify(o.fields) !== JSON.stringify(s)), v = (w, U = "", ne = "") => {
|
|
4877
|
+
var V, ce, ke, de, Ne, tt;
|
|
4878
|
+
let H = `${(V = t.config) == null ? void 0 : V.apiBaseUrl}${Te.form[(ce = t.config) == null ? void 0 : ce.app][w]}`;
|
|
4879
|
+
return ((ke = t.config) == null ? void 0 : ke.app) === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((de = t.config) == null ? void 0 : de.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (H = H.replace(/\/{workspace}/gi, (tt = t.config) != null && tt.workspace ? `/${t.config.workspace}` : "")), H = H.replace(/{id}/gi, U || t.consumerGroupId), (w === "addConsumer" || w === "removeConsumer") && (H = H.replace(/{consumerId}/gi, ne)), H;
|
|
4880
|
+
}, g = () => {
|
|
4881
|
+
var w;
|
|
4882
|
+
i.push(((w = t.config) == null ? void 0 : w.cancelRoute) || { name: "consumer-group-list" });
|
|
4883
|
+
}, y = (w) => {
|
|
4884
|
+
r("error", w);
|
|
4885
|
+
}, F = (w) => {
|
|
4886
|
+
r("loading", w);
|
|
4887
|
+
}, L = async (w) => {
|
|
4888
|
+
var ne, H, V, ce, ke;
|
|
4889
|
+
o.fields.name = ((ne = w == null ? void 0 : w.item) == null ? void 0 : ne.name) || ((H = w == null ? void 0 : w.consumer_group) == null ? void 0 : H.name) || (w == null ? void 0 : w.name) || "";
|
|
4890
|
+
const U = ((V = w == null ? void 0 : w.item) == null ? void 0 : V.tags) || (w == null ? void 0 : w.consumer_group.tags) || (w == null ? void 0 : w.tags) || [];
|
|
4891
|
+
if (o.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in w)
|
|
4892
|
+
o.fields.consumers = ((ce = w == null ? void 0 : w.consumers) == null ? void 0 : ce.map((de) => de.id)) || [];
|
|
4887
4893
|
else
|
|
4888
4894
|
try {
|
|
4889
|
-
const { data: de } = await p.get(
|
|
4895
|
+
const { data: de } = await p.get(v("getConsumers"));
|
|
4890
4896
|
o.fields.consumers = "consumers" in de ? (ke = de == null ? void 0 : de.consumers) == null ? void 0 : ke.map((Ne) => Ne.id) : [];
|
|
4891
4897
|
} catch (de) {
|
|
4892
4898
|
S(de);
|
|
4893
4899
|
}
|
|
4894
4900
|
Object.assign(s, o.fields);
|
|
4895
|
-
},
|
|
4896
|
-
var
|
|
4901
|
+
}, x = A(() => /^[0-9a-zA-Z.\-_~]*$/.test(o.fields.name) ? "" : a("consumer_groups.form.validation_errors.name")), z = A(() => {
|
|
4902
|
+
var w, U;
|
|
4897
4903
|
return {
|
|
4898
4904
|
name: o.fields.name,
|
|
4899
|
-
tags: (U = (
|
|
4905
|
+
tags: (U = (w = o.fields.tags.split(",")) == null ? void 0 : w.map((ne) => String(ne || "").trim())) == null ? void 0 : U.filter((ne) => ne !== "")
|
|
4900
4906
|
};
|
|
4901
|
-
}), E = async (
|
|
4902
|
-
o.errorMessage =
|
|
4903
|
-
}, q = (
|
|
4904
|
-
Object.assign(s, o.fields), r("update", { ...o.fields, id:
|
|
4905
|
-
}, G = (
|
|
4906
|
-
const H =
|
|
4907
|
+
}), E = async (w, U = "") => await p.post(v("addConsumer", U, w), { consumer: w }), C = async (w, U = "") => await p.delete(v("removeConsumer", U, w)), S = (w) => {
|
|
4908
|
+
o.errorMessage = _(w), r("error", w);
|
|
4909
|
+
}, q = (w = t.consumerGroupId) => {
|
|
4910
|
+
Object.assign(s, o.fields), r("update", { ...o.fields, id: w });
|
|
4911
|
+
}, G = (w, U, ne = t.consumerGroupId) => {
|
|
4912
|
+
const H = w == null ? void 0 : w.find((V) => V.status !== "fulfilled");
|
|
4907
4913
|
H ? S({
|
|
4908
4914
|
code: H.status,
|
|
4909
4915
|
message: U
|
|
4910
4916
|
}) : q(ne);
|
|
4911
4917
|
}, ae = async () => {
|
|
4912
|
-
let
|
|
4918
|
+
let w = "";
|
|
4913
4919
|
try {
|
|
4914
|
-
const { data: U } = await p.post(
|
|
4915
|
-
|
|
4920
|
+
const { data: U } = await p.post(v("create"), z.value);
|
|
4921
|
+
w = "item" in U ? U.item.id : U.id;
|
|
4916
4922
|
} catch (U) {
|
|
4917
4923
|
S(U);
|
|
4918
4924
|
}
|
|
4919
|
-
if (o.fields.consumers.length > 0 &&
|
|
4925
|
+
if (o.fields.consumers.length > 0 && w)
|
|
4920
4926
|
try {
|
|
4921
|
-
const U = o.fields.consumers.map((H) => E(H,
|
|
4922
|
-
G(ne, a("consumer_groups.errors.add_consumer"),
|
|
4927
|
+
const U = o.fields.consumers.map((H) => E(H, w)), ne = await Promise.allSettled(U);
|
|
4928
|
+
G(ne, a("consumer_groups.errors.add_consumer"), w);
|
|
4923
4929
|
} catch (U) {
|
|
4924
4930
|
S(U);
|
|
4925
4931
|
}
|
|
4926
4932
|
else
|
|
4927
|
-
o.fields.consumers.length === 0 &&
|
|
4933
|
+
o.fields.consumers.length === 0 && w && q(w);
|
|
4928
4934
|
}, ue = async () => {
|
|
4929
4935
|
var ne;
|
|
4930
4936
|
try {
|
|
4931
|
-
((ne = t.config) == null ? void 0 : ne.app) === "konnect" ? await p.put(
|
|
4937
|
+
((ne = t.config) == null ? void 0 : ne.app) === "konnect" ? await p.put(v("edit"), z.value) : await p.patch(v("edit"), z.value);
|
|
4932
4938
|
} catch (H) {
|
|
4933
4939
|
S(H);
|
|
4934
4940
|
}
|
|
4935
|
-
const
|
|
4936
|
-
if (U.length === 0 &&
|
|
4941
|
+
const w = o.fields.consumers.filter((H) => !s.consumers.includes(H)), U = s.consumers.filter((H) => !o.fields.consumers.includes(H));
|
|
4942
|
+
if (U.length === 0 && w.length === 0)
|
|
4937
4943
|
q();
|
|
4938
4944
|
else {
|
|
4939
4945
|
if (U.length > 0)
|
|
4940
4946
|
try {
|
|
4941
|
-
const H = U.map((ce) =>
|
|
4942
|
-
G(
|
|
4947
|
+
const H = U.map((ce) => C(ce)), V = await Promise.allSettled(H);
|
|
4948
|
+
G(V, a("consumer_groups.errors.remove_consumer"));
|
|
4943
4949
|
} catch (H) {
|
|
4944
4950
|
S(H);
|
|
4945
4951
|
}
|
|
4946
|
-
if (
|
|
4952
|
+
if (w.length > 0)
|
|
4947
4953
|
try {
|
|
4948
|
-
const H =
|
|
4949
|
-
G(
|
|
4954
|
+
const H = w.map((ce) => E(ce)), V = await Promise.allSettled(H);
|
|
4955
|
+
G(V, a("consumer_groups.errors.add_consumer"));
|
|
4950
4956
|
} catch (H) {
|
|
4951
4957
|
S(H);
|
|
4952
4958
|
}
|
|
4953
4959
|
}
|
|
4954
4960
|
}, Ge = async () => {
|
|
4955
4961
|
try {
|
|
4956
|
-
o.readonly = !0,
|
|
4962
|
+
o.readonly = !0, R.value === rt.Create ? await ae() : await ue();
|
|
4957
4963
|
} finally {
|
|
4958
4964
|
o.readonly = !1;
|
|
4959
4965
|
}
|
|
4960
4966
|
};
|
|
4961
4967
|
return ut(async () => {
|
|
4962
4968
|
await c();
|
|
4963
|
-
}), (
|
|
4969
|
+
}), (w, U) => {
|
|
4964
4970
|
const ne = P("KInput"), H = P("KMultiselect");
|
|
4965
4971
|
return f(), j("div", xl, [
|
|
4966
4972
|
T(h(Os), {
|
|
4967
4973
|
"can-submit": K.value && Y.value,
|
|
4968
4974
|
config: e.config,
|
|
4969
4975
|
"edit-id": e.consumerGroupId,
|
|
4970
|
-
"error-message": o.errorMessage || h(d) ||
|
|
4971
|
-
"fetch-url":
|
|
4976
|
+
"error-message": o.errorMessage || h(d) || x.value,
|
|
4977
|
+
"fetch-url": I.value,
|
|
4972
4978
|
"form-fields": z.value,
|
|
4973
4979
|
"is-readonly": o.readonly,
|
|
4974
|
-
onCancel:
|
|
4975
|
-
"onFetch:error": U[3] || (U[3] = (
|
|
4980
|
+
onCancel: g,
|
|
4981
|
+
"onFetch:error": U[3] || (U[3] = (V) => y(V)),
|
|
4976
4982
|
"onFetch:success": L,
|
|
4977
|
-
onLoading: U[4] || (U[4] = (
|
|
4983
|
+
onLoading: U[4] || (U[4] = (V) => F(V)),
|
|
4978
4984
|
onSubmit: Ge
|
|
4979
4985
|
}, {
|
|
4980
4986
|
default: b(() => [
|
|
@@ -4985,7 +4991,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4985
4991
|
default: b(() => [
|
|
4986
4992
|
T(ne, {
|
|
4987
4993
|
modelValue: o.fields.name,
|
|
4988
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
4994
|
+
"onUpdate:modelValue": U[0] || (U[0] = (V) => o.fields.name = V),
|
|
4989
4995
|
modelModifiers: { trim: !0 },
|
|
4990
4996
|
autocomplete: "off",
|
|
4991
4997
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4996,7 +5002,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4996
5002
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4997
5003
|
T(ne, {
|
|
4998
5004
|
modelValue: o.fields.tags,
|
|
4999
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
5005
|
+
"onUpdate:modelValue": U[1] || (U[1] = (V) => o.fields.tags = V),
|
|
5000
5006
|
modelModifiers: { trim: !0 },
|
|
5001
5007
|
autocomplete: "off",
|
|
5002
5008
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -5020,22 +5026,22 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5020
5026
|
default: b(() => [
|
|
5021
5027
|
T(H, {
|
|
5022
5028
|
modelValue: o.fields.consumers,
|
|
5023
|
-
"onUpdate:modelValue": U[2] || (U[2] = (
|
|
5029
|
+
"onUpdate:modelValue": U[2] || (U[2] = (V) => o.fields.consumers = V),
|
|
5024
5030
|
appearance: "select",
|
|
5025
5031
|
autosuggest: "",
|
|
5026
|
-
items:
|
|
5032
|
+
items: k.value,
|
|
5027
5033
|
label: h(a)("consumer_groups.form.fields.consumers.label"),
|
|
5028
5034
|
loading: h(u),
|
|
5029
5035
|
placeholder: h(a)("consumer_groups.form.fields.consumers.placeholder"),
|
|
5030
5036
|
width: "auto",
|
|
5031
5037
|
onQueryChange: h(l)
|
|
5032
5038
|
}, {
|
|
5033
|
-
"item-template": b(({ item:
|
|
5039
|
+
"item-template": b(({ item: V }) => {
|
|
5034
5040
|
var ce, ke, de;
|
|
5035
5041
|
return [
|
|
5036
|
-
B("div",
|
|
5037
|
-
B("div", Sl, N(
|
|
5038
|
-
(ce =
|
|
5042
|
+
B("div", Al, [
|
|
5043
|
+
B("div", Sl, N(V.label), 1),
|
|
5044
|
+
(ce = V == null ? void 0 : V.data) != null && ce.username && ((ke = V == null ? void 0 : V.data) != null && ke.custom_id) ? (f(), j("div", $l, N((de = V == null ? void 0 : V.data) == null ? void 0 : de.custom_id), 1)) : W("", !0)
|
|
5039
5045
|
])
|
|
5040
5046
|
];
|
|
5041
5047
|
}),
|
|
@@ -5050,7 +5056,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5050
5056
|
]);
|
|
5051
5057
|
};
|
|
5052
5058
|
}
|
|
5053
|
-
}),
|
|
5059
|
+
}), Vl = /* @__PURE__ */ Lt(Tl, [["__scopeId", "data-v-89ee41dd"]]), jl = { class: "kong-ui-consumer-group-entity-config-card" }, Dl = /* @__PURE__ */ X({
|
|
5054
5060
|
__name: "ConsumerGroupConfigCard",
|
|
5055
5061
|
props: {
|
|
5056
5062
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5077,7 +5083,7 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5077
5083
|
},
|
|
5078
5084
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
5079
5085
|
setup(e) {
|
|
5080
|
-
const n = e, { i18n: { t } } = ft.useI18n(), r =
|
|
5086
|
+
const n = e, { i18n: { t } } = ft.useI18n(), r = A(() => Te.form[n.config.app].edit), a = O({
|
|
5081
5087
|
id: {},
|
|
5082
5088
|
name: {},
|
|
5083
5089
|
created_at: {},
|
|
@@ -5103,6 +5109,6 @@ const Ji = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5103
5109
|
});
|
|
5104
5110
|
export {
|
|
5105
5111
|
Dl as ConsumerGroupConfigCard,
|
|
5106
|
-
|
|
5107
|
-
|
|
5112
|
+
Vl as ConsumerGroupForm,
|
|
5113
|
+
Rl as ConsumerGroupList
|
|
5108
5114
|
};
|