@kong-ui-public/entities-consumer-groups 3.5.57 → 3.5.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ye, ref as k, computed as I, watch as Ie, resolveComponent as
|
|
1
|
+
import { defineComponent as ye, ref as k, computed as I, watch as Ie, resolveComponent as j, openBlock as P, createBlock as ge, unref as r, withCtx as y, createElementVNode as q, toDisplayString as G, createVNode as f, createElementBlock as J, Fragment as De, renderList as Ke, createCommentVNode as te, onBeforeMount as Ge, Teleport as Ue, createTextVNode as pe, createSlots as Be, reactive as xe } from "vue";
|
|
2
2
|
import { useRouter as Ae } from "vue-router";
|
|
3
3
|
import { AddIcon as Re } from "@kong/icons";
|
|
4
4
|
import { createI18n as qe, i18nTComponent as Ne } from "@kong-ui-public/i18n";
|
|
@@ -105,7 +105,7 @@ function so() {
|
|
|
105
105
|
}
|
|
106
106
|
const he = {
|
|
107
107
|
useI18n: so
|
|
108
|
-
}, B = "/v2/control-planes/{controlPlaneId}/core-entities", R = "/{workspace}",
|
|
108
|
+
}, B = "/v2/control-planes/{controlPlaneId}/core-entities", R = "/{workspace}", H = {
|
|
109
109
|
list: {
|
|
110
110
|
konnect: {
|
|
111
111
|
all: `${B}/consumer_groups`,
|
|
@@ -159,80 +159,80 @@ const he = {
|
|
|
159
159
|
},
|
|
160
160
|
emits: ["cancel", "add:success", "add:partial-success", "error"],
|
|
161
161
|
setup(e, { emit: N }) {
|
|
162
|
-
var
|
|
163
|
-
const { i18n: { t: u } } = he.useI18n(), t = e, g = N, { axiosInstance: l } = we((
|
|
162
|
+
var O;
|
|
163
|
+
const { i18n: { t: u } } = he.useI18n(), t = e, g = N, { axiosInstance: l } = we((O = t.config) == null ? void 0 : O.axiosRequestConfig), n = k([]), {
|
|
164
164
|
debouncedQueryChange: E,
|
|
165
|
-
loading:
|
|
166
|
-
allRecords:
|
|
165
|
+
loading: se,
|
|
166
|
+
allRecords: D,
|
|
167
167
|
error: re,
|
|
168
168
|
loadItems: ne,
|
|
169
|
-
results:
|
|
169
|
+
results: z
|
|
170
170
|
} = Se(
|
|
171
171
|
t.config,
|
|
172
|
-
|
|
172
|
+
H.list[t.config.app].forModal,
|
|
173
173
|
"",
|
|
174
174
|
{
|
|
175
175
|
fetchedItemsKey: "data",
|
|
176
176
|
searchKeys: ["name", "id"]
|
|
177
177
|
}
|
|
178
|
-
),
|
|
178
|
+
), M = I(() => re.value ? u("consumer_groups.errors.general") : ""), ae = k(0), A = I(() => D.value === void 0), X = I(() => z.value.map((m) => ({
|
|
179
179
|
label: m.name,
|
|
180
180
|
value: m.id,
|
|
181
181
|
selected: n.value.includes(m.id),
|
|
182
182
|
data: m
|
|
183
183
|
// we need this to determine whether or not to show the description text
|
|
184
|
-
}))),
|
|
184
|
+
}))), Y = (m) => {
|
|
185
185
|
var d;
|
|
186
|
-
const v =
|
|
186
|
+
const v = A.value ? z.value.find((h) => h.id === m) : (d = D.value) == null ? void 0 : d.find((h) => h.id === m);
|
|
187
187
|
return v ? v.name : m;
|
|
188
188
|
}, ue = () => {
|
|
189
|
-
x.value = "", K.value = [],
|
|
190
|
-
}, K = k([]),
|
|
189
|
+
x.value = "", K.value = [], V.value = [], g("cancel");
|
|
190
|
+
}, K = k([]), T = k(!1), x = k(""), ie = async () => {
|
|
191
191
|
if (!n.value.length) {
|
|
192
|
-
x.value = "",
|
|
192
|
+
x.value = "", V.value = [], g("cancel");
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
T.value = !0, x.value = "", K.value = [], V.value = [];
|
|
196
196
|
try {
|
|
197
197
|
const m = n.value.map((h) => le(h)), v = await Promise.allSettled(m);
|
|
198
198
|
let d = !0;
|
|
199
199
|
v.forEach((h) => {
|
|
200
200
|
h.status !== "fulfilled" && (d = !1);
|
|
201
|
-
}), d ? (K.value = [],
|
|
201
|
+
}), d ? (K.value = [], V.value = [], g("add:success", n.value), n.value = []) : (K.value.length && g("add:partial-success", K.value), n.value = [], Z(v));
|
|
202
202
|
} catch {
|
|
203
203
|
x.value = u("consumer_groups.errors.add"), g("error", x.value);
|
|
204
204
|
} finally {
|
|
205
|
-
|
|
205
|
+
T.value = !1;
|
|
206
206
|
}
|
|
207
|
-
},
|
|
208
|
-
var v, d, h,
|
|
209
|
-
let m = `${t.config.apiBaseUrl}${
|
|
210
|
-
return t.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{consumerId}/gi, ((d = t.config) == null ? void 0 : d.consumerId) || "") : t.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (h = t.config) != null && h.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((
|
|
207
|
+
}, L = I(() => {
|
|
208
|
+
var v, d, h, F;
|
|
209
|
+
let m = `${t.config.apiBaseUrl}${H.list[t.config.app].forConsumer}`;
|
|
210
|
+
return t.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{consumerId}/gi, ((d = t.config) == null ? void 0 : d.consumerId) || "") : t.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (h = t.config) != null && h.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((F = t.config) == null ? void 0 : F.consumerId) || "")), m;
|
|
211
211
|
}), le = async (m) => {
|
|
212
212
|
const v = {
|
|
213
213
|
group: m
|
|
214
214
|
};
|
|
215
215
|
try {
|
|
216
|
-
const d = await l.post(
|
|
216
|
+
const d = await l.post(L.value, v);
|
|
217
217
|
return K.value.push(m), d;
|
|
218
218
|
} catch (d) {
|
|
219
|
-
let h = `${
|
|
220
|
-
return d.response.status === 409 && (h = `${
|
|
219
|
+
let h = `${Y(m)} - ${d.message}`;
|
|
220
|
+
return d.response.status === 409 && (h = `${Y(m)} - ${u("consumer_groups.errors.already_added")}`), Promise.reject(Error(h));
|
|
221
221
|
}
|
|
222
|
-
},
|
|
223
|
-
|
|
222
|
+
}, V = k([]), Z = (m) => {
|
|
223
|
+
V.value = m.map((v) => {
|
|
224
224
|
var d;
|
|
225
225
|
return (d = v.reason) == null ? void 0 : d.message;
|
|
226
226
|
}).filter(Boolean);
|
|
227
227
|
};
|
|
228
|
-
return Ie(
|
|
228
|
+
return Ie(X, () => {
|
|
229
229
|
ae.value++;
|
|
230
230
|
}, { immediate: !0, deep: !0 }), Ie(() => t.visible, () => {
|
|
231
231
|
t.visible && ne();
|
|
232
232
|
}, { immediate: !0 }), (m, v) => {
|
|
233
|
-
const d =
|
|
234
|
-
return
|
|
235
|
-
"action-button-disabled":
|
|
233
|
+
const d = j("KMultiselect"), h = j("KAlert"), F = j("KPrompt");
|
|
234
|
+
return P(), ge(F, {
|
|
235
|
+
"action-button-disabled": T.value,
|
|
236
236
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
237
237
|
"data-testid": "add-to-group-modal",
|
|
238
238
|
title: r(u)("consumer_groups.consumers.add.title"),
|
|
@@ -242,34 +242,34 @@ const he = {
|
|
|
242
242
|
}, {
|
|
243
243
|
default: y(() => [
|
|
244
244
|
q("div", ro, [
|
|
245
|
-
q("p", no,
|
|
245
|
+
q("p", no, G(r(u)("consumer_groups.consumers.add.ctaText")), 1),
|
|
246
246
|
f(d, {
|
|
247
247
|
modelValue: n.value,
|
|
248
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
248
|
+
"onUpdate:modelValue": v[0] || (v[0] = (W) => n.value = W),
|
|
249
249
|
autosuggest: "",
|
|
250
250
|
"data-testid": "add-to-groups-multiselect",
|
|
251
|
-
"dropdown-footer-text":
|
|
252
|
-
items:
|
|
251
|
+
"dropdown-footer-text": A.value ? r(u)("consumer_groups.consumers.add.footer") : void 0,
|
|
252
|
+
items: X.value,
|
|
253
253
|
label: r(u)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
254
|
-
loading: r(
|
|
254
|
+
loading: r(se),
|
|
255
255
|
placeholder: r(u)("consumer_groups.consumers.add.consumer_group_placeholder"),
|
|
256
|
-
readonly:
|
|
256
|
+
readonly: T.value,
|
|
257
257
|
required: "",
|
|
258
258
|
width: "100%",
|
|
259
259
|
onQueryChange: r(E)
|
|
260
260
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
261
|
-
x.value ||
|
|
261
|
+
x.value || M.value || V.value.length ? (P(), J("div", ao, [
|
|
262
262
|
f(h, { appearance: "danger" }, {
|
|
263
263
|
default: y(() => [
|
|
264
|
-
q("p", null,
|
|
265
|
-
|
|
266
|
-
(
|
|
267
|
-
])) :
|
|
268
|
-
q("div", null,
|
|
264
|
+
q("p", null, G(r(u)("consumer_groups.errors.add")), 1),
|
|
265
|
+
V.value.length ? (P(), J("ul", uo, [
|
|
266
|
+
(P(!0), J(De, null, Ke(V.value, (W, ce) => (P(), J("li", { key: ce }, G(W), 1))), 128))
|
|
267
|
+
])) : te("", !0),
|
|
268
|
+
q("div", null, G(x.value || M.value), 1)
|
|
269
269
|
]),
|
|
270
270
|
_: 1
|
|
271
271
|
})
|
|
272
|
-
])) :
|
|
272
|
+
])) : te("", !0)
|
|
273
273
|
])
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
@@ -328,40 +328,44 @@ const he = {
|
|
|
328
328
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
329
329
|
setup(e, { emit: N }) {
|
|
330
330
|
var Ee;
|
|
331
|
-
const u = N, t = e, { i18nT: g, i18n: { t: l } } = he.useI18n(), n = Ae(), { axiosInstance: E } = we((Ee = t.config) == null ? void 0 : Ee.axiosRequestConfig),
|
|
332
|
-
() => G.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
|
|
333
|
-
), ne = I(() => t.config.app !== "kongManager" || !!t.config.disableSorting), F = {
|
|
331
|
+
const u = N, t = e, { i18nT: g, i18n: { t: l } } = he.useI18n(), n = Ae(), { axiosInstance: E } = we((Ee = t.config) == null ? void 0 : Ee.axiosRequestConfig), se = I(() => t.config.app !== "kongManager" || !!t.config.disableSorting), D = {
|
|
334
332
|
// the Name column is non-hidable
|
|
335
333
|
name: { label: l("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
|
|
336
334
|
};
|
|
337
|
-
t.config.app === "kongManager" && (
|
|
338
|
-
const
|
|
335
|
+
t.config.app === "kongManager" && (D.consumers_count = { label: l("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), D.tags = { label: l("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
336
|
+
const re = D, ne = (s) => ({
|
|
339
337
|
"data-testid": s.username ?? s.custom_id ?? s.id
|
|
340
|
-
}),
|
|
341
|
-
var p, b, w,
|
|
342
|
-
let s = `${t.config.apiBaseUrl}${
|
|
343
|
-
return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((p = t.config) == null ? void 0 : p.controlPlaneId) || "").replace(/{consumerId}/gi, ((b = t.config) == null ? void 0 : b.consumerId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (w = t.config) != null && w.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((
|
|
344
|
-
}),
|
|
338
|
+
}), z = I(() => {
|
|
339
|
+
var p, b, w, Q;
|
|
340
|
+
let s = `${t.config.apiBaseUrl}${H.list[t.config.app][A.value ? "forConsumer" : "all"]}`;
|
|
341
|
+
return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((p = t.config) == null ? void 0 : p.controlPlaneId) || "").replace(/{consumerId}/gi, ((b = t.config) == null ? void 0 : b.consumerId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (w = t.config) != null && w.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Q = t.config) == null ? void 0 : Q.consumerId) || "")), s;
|
|
342
|
+
}), M = k(""), ae = I(() => {
|
|
345
343
|
const s = t.config.app === "konnect" || t.config.isExactMatch;
|
|
346
344
|
return s ? {
|
|
347
345
|
isExactMatch: s,
|
|
348
346
|
fields: {
|
|
349
|
-
username:
|
|
347
|
+
username: D.name,
|
|
350
348
|
id: { label: l("consumer_groups.list.table_headers.id") }
|
|
351
349
|
},
|
|
352
350
|
placeholder: l("consumer_groups.search.placeholder")
|
|
353
351
|
} : {
|
|
354
352
|
isExactMatch: s,
|
|
355
353
|
fields: {
|
|
356
|
-
name:
|
|
354
|
+
name: D.name
|
|
357
355
|
},
|
|
358
356
|
schema: t.config.filterSchema
|
|
359
357
|
};
|
|
360
|
-
}),
|
|
361
|
-
|
|
358
|
+
}), A = I(() => !!t.config.consumerId), X = I(
|
|
359
|
+
() => A.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
|
|
360
|
+
), Y = I(() => t.config.app === "konnect" && M.value ? "consumer_group" : A.value && !t.config.paginatedEndpoint ? "consumer_groups" : void 0), {
|
|
361
|
+
fetcher: ue,
|
|
362
|
+
fetcherState: K,
|
|
363
|
+
fetcherCacheKey: T
|
|
364
|
+
} = Oe({ ...t.config, cacheIdentifier: t.cacheIdentifier }, z.value, Y), x = () => {
|
|
365
|
+
M.value = "";
|
|
362
366
|
}, ie = () => {
|
|
363
|
-
|
|
364
|
-
},
|
|
367
|
+
T.value++;
|
|
368
|
+
}, L = k(null), le = (s, p) => {
|
|
365
369
|
const b = s.id;
|
|
366
370
|
if (!p(b)) {
|
|
367
371
|
u("copy:error", {
|
|
@@ -376,7 +380,7 @@ const he = {
|
|
|
376
380
|
field: "id",
|
|
377
381
|
message: l("consumer_groups.copy.success", { val: b })
|
|
378
382
|
});
|
|
379
|
-
},
|
|
383
|
+
}, V = (s, p) => {
|
|
380
384
|
const b = JSON.stringify(s);
|
|
381
385
|
if (!p(b)) {
|
|
382
386
|
u("copy:error", {
|
|
@@ -389,16 +393,16 @@ const he = {
|
|
|
389
393
|
entity: s,
|
|
390
394
|
message: l("consumer_groups.copy.success_brief")
|
|
391
395
|
});
|
|
392
|
-
},
|
|
396
|
+
}, Z = async (s) => {
|
|
393
397
|
var b;
|
|
394
398
|
await ((b = t.canRetrieve) == null ? void 0 : b.call(t, s)) && n.push(t.config.getViewRoute(s.id));
|
|
395
|
-
},
|
|
399
|
+
}, O = (s) => ({
|
|
396
400
|
label: l("consumer_groups.actions.view"),
|
|
397
401
|
to: t.config.getViewRoute(s)
|
|
398
402
|
}), m = (s) => ({
|
|
399
403
|
label: l("consumer_groups.actions.edit"),
|
|
400
404
|
to: t.config.getEditRoute(s)
|
|
401
|
-
}), v = k(void 0), d = k(!1), h = k(!1),
|
|
405
|
+
}), v = k(void 0), d = k(!1), h = k(!1), F = k(""), W = je(t.config, z.value), ce = (s) => {
|
|
402
406
|
v.value = s, d.value = !0;
|
|
403
407
|
}, _e = () => {
|
|
404
408
|
d.value = !1;
|
|
@@ -407,92 +411,92 @@ const he = {
|
|
|
407
411
|
if ((s = v.value) != null && s.id) {
|
|
408
412
|
h.value = !0;
|
|
409
413
|
try {
|
|
410
|
-
await E.delete(
|
|
414
|
+
await E.delete(W(v.value.id)), h.value = !1, d.value = !1, T.value++, u("delete:success", v.value);
|
|
411
415
|
} catch (w) {
|
|
412
|
-
|
|
416
|
+
F.value = ((b = (p = w.response) == null ? void 0 : p.data) == null ? void 0 : b.message) || w.message || l("consumer_groups.errors.delete"), u("error", w);
|
|
413
417
|
} finally {
|
|
414
418
|
h.value = !1;
|
|
415
419
|
}
|
|
416
420
|
}
|
|
417
|
-
},
|
|
418
|
-
|
|
421
|
+
}, ee = k(!1), de = () => {
|
|
422
|
+
ee.value = !0;
|
|
419
423
|
}, o = () => {
|
|
420
|
-
|
|
424
|
+
ee.value = !1;
|
|
421
425
|
}, a = (s, p) => {
|
|
422
|
-
p || o(),
|
|
426
|
+
p || o(), T.value++, u("add:success", s);
|
|
423
427
|
}, C = () => {
|
|
424
|
-
|
|
425
|
-
}, i = k(void 0), c = k(!1),
|
|
428
|
+
A.value && de();
|
|
429
|
+
}, i = k(void 0), c = k(!1), S = k(""), U = (s) => {
|
|
426
430
|
i.value = s, c.value = !0;
|
|
427
431
|
}, $ = () => {
|
|
428
432
|
c.value = !1, i.value = void 0;
|
|
429
|
-
},
|
|
430
|
-
var p, b, w,
|
|
431
|
-
let s = `${t.config.apiBaseUrl}${
|
|
432
|
-
return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((p = t.config) == null ? void 0 : p.controlPlaneId) || "").replace(/{consumerId}/gi, ((b = t.config) == null ? void 0 : b.consumerId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (w = t.config) != null && w.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((
|
|
433
|
+
}, oe = I(() => {
|
|
434
|
+
var p, b, w, Q;
|
|
435
|
+
let s = `${t.config.apiBaseUrl}${H.list[t.config.app].oneForConsumer}`;
|
|
436
|
+
return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((p = t.config) == null ? void 0 : p.controlPlaneId) || "").replace(/{consumerId}/gi, ((b = t.config) == null ? void 0 : b.consumerId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (w = t.config) != null && w.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Q = t.config) == null ? void 0 : Q.consumerId) || "")), s;
|
|
433
437
|
}), me = k(!1), Te = async () => {
|
|
434
438
|
if (i.value) {
|
|
435
439
|
me.value = !0;
|
|
436
440
|
try {
|
|
437
|
-
const s =
|
|
438
|
-
await E.delete(s), u("remove:success", i.value), $(),
|
|
441
|
+
const s = oe.value.replace(/{consumerGroupId}/gi, i.value.id);
|
|
442
|
+
await E.delete(s), u("remove:success", i.value), $(), T.value++;
|
|
439
443
|
} catch (s) {
|
|
440
|
-
|
|
444
|
+
S.value = s.message || l("consumer_groups.errors.delete"), u("error", s);
|
|
441
445
|
} finally {
|
|
442
446
|
me.value = !1;
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
449
|
};
|
|
446
|
-
Ie(
|
|
450
|
+
Ie(K, (s) => {
|
|
447
451
|
var p, b, w;
|
|
448
452
|
if (s.status === Le.Error) {
|
|
449
|
-
|
|
453
|
+
L.value = {
|
|
450
454
|
title: l("consumer_groups.errors.general")
|
|
451
|
-
}, (w = (b = (p = s.error) == null ? void 0 : p.response) == null ? void 0 : b.data) != null && w.message && (
|
|
455
|
+
}, (w = (b = (p = s.error) == null ? void 0 : p.response) == null ? void 0 : b.data) != null && w.message && (L.value.message = s.error.response.data.message), u("error", s.error);
|
|
452
456
|
return;
|
|
453
457
|
}
|
|
454
|
-
|
|
458
|
+
L.value = null;
|
|
455
459
|
});
|
|
456
460
|
const be = k({
|
|
457
|
-
ctaPath:
|
|
461
|
+
ctaPath: A.value ? void 0 : t.config.createRoute,
|
|
458
462
|
ctaText: void 0,
|
|
459
463
|
message: `${l("consumer_groups.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
|
|
460
464
|
title: l("consumer_groups.title")
|
|
461
465
|
});
|
|
462
466
|
return Ge(async () => {
|
|
463
|
-
await t.canCreate() && (be.value.title =
|
|
467
|
+
await t.canCreate() && (be.value.title = A.value ? l("consumer_groups.list.empty_state.title_for_consumer") : l("consumer_groups.list.empty_state.title"), be.value.ctaText = A.value ? l("consumer_groups.actions.add_to_group") : l("consumer_groups.actions.create"));
|
|
464
468
|
}), (s, p) => {
|
|
465
|
-
const b =
|
|
466
|
-
return
|
|
469
|
+
const b = j("KButton"), w = j("KDropdownItem"), Q = j("KClipboardProvider"), Ve = j("KPrompt");
|
|
470
|
+
return P(), J("div", co, [
|
|
467
471
|
f(r(Qe), {
|
|
468
472
|
"cache-identifier": e.cacheIdentifier,
|
|
469
|
-
"disable-pagination":
|
|
470
|
-
"disable-sorting":
|
|
473
|
+
"disable-pagination": A.value && !e.config.paginatedEndpoint,
|
|
474
|
+
"disable-sorting": se.value,
|
|
471
475
|
"empty-state-options": be.value,
|
|
472
476
|
"enable-entity-actions": "",
|
|
473
|
-
"error-message":
|
|
474
|
-
fetcher: r(
|
|
475
|
-
"fetcher-cache-key":
|
|
477
|
+
"error-message": L.value,
|
|
478
|
+
fetcher: r(ue),
|
|
479
|
+
"fetcher-cache-key": r(T),
|
|
476
480
|
"pagination-type": "offset",
|
|
477
|
-
"preferences-storage-key":
|
|
478
|
-
query:
|
|
479
|
-
"row-attributes":
|
|
480
|
-
"table-headers": r(
|
|
481
|
+
"preferences-storage-key": X.value,
|
|
482
|
+
query: M.value,
|
|
483
|
+
"row-attributes": ne,
|
|
484
|
+
"table-headers": r(re),
|
|
481
485
|
onClearSearchInput: x,
|
|
482
|
-
"onClick:row": p[2] || (p[2] = (_) =>
|
|
486
|
+
"onClick:row": p[2] || (p[2] = (_) => Z(_)),
|
|
483
487
|
onEmptyStateCtaClicked: C,
|
|
484
488
|
onSort: ie
|
|
485
489
|
}, {
|
|
486
490
|
"toolbar-filter": y(() => [
|
|
487
|
-
|
|
491
|
+
A.value ? te("", !0) : (P(), ge(r(Je), {
|
|
488
492
|
key: 0,
|
|
489
|
-
modelValue:
|
|
490
|
-
"onUpdate:modelValue": p[0] || (p[0] = (_) =>
|
|
491
|
-
config:
|
|
493
|
+
modelValue: M.value,
|
|
494
|
+
"onUpdate:modelValue": p[0] || (p[0] = (_) => M.value = _),
|
|
495
|
+
config: ae.value
|
|
492
496
|
}, null, 8, ["modelValue", "config"]))
|
|
493
497
|
]),
|
|
494
498
|
"toolbar-button": y(() => [
|
|
495
|
-
(
|
|
499
|
+
(P(), ge(Ue, {
|
|
496
500
|
disabled: !e.useActionOutside,
|
|
497
501
|
to: "#kong-ui-app-page-header-action-button"
|
|
498
502
|
}, [
|
|
@@ -509,7 +513,7 @@ const he = {
|
|
|
509
513
|
}, {
|
|
510
514
|
default: y(() => [
|
|
511
515
|
f(r(Re)),
|
|
512
|
-
pe(" " +
|
|
516
|
+
pe(" " + G(e.config.consumerId ? r(l)("consumer_groups.actions.add_to_group") : r(l)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
513
517
|
]),
|
|
514
518
|
_: 1
|
|
515
519
|
}, 8, ["size", "to"])
|
|
@@ -519,37 +523,37 @@ const he = {
|
|
|
519
523
|
], 8, ["disabled"]))
|
|
520
524
|
]),
|
|
521
525
|
name: y(({ rowValue: _ }) => [
|
|
522
|
-
q("b", null,
|
|
526
|
+
q("b", null, G(_ ?? "-"), 1)
|
|
523
527
|
]),
|
|
524
528
|
consumers_count: y(({ rowValue: _ }) => [
|
|
525
|
-
pe(
|
|
529
|
+
pe(G(_ ?? "-"), 1)
|
|
526
530
|
]),
|
|
527
531
|
tags: y(({ rowValue: _ }) => [
|
|
528
532
|
f(r(He), { tags: _ }, null, 8, ["tags"])
|
|
529
533
|
]),
|
|
530
534
|
actions: y(({ row: _ }) => [
|
|
531
|
-
f(
|
|
535
|
+
f(Q, null, {
|
|
532
536
|
default: y(({ copyToClipboard: Ce }) => [
|
|
533
537
|
f(w, {
|
|
534
538
|
"data-testid": "action-entity-copy-id",
|
|
535
539
|
onClick: (Fe) => le(_, Ce)
|
|
536
540
|
}, {
|
|
537
541
|
default: y(() => [
|
|
538
|
-
pe(
|
|
542
|
+
pe(G(r(l)("consumer_groups.actions.copy_id")), 1)
|
|
539
543
|
]),
|
|
540
544
|
_: 2
|
|
541
545
|
}, 1032, ["onClick"])
|
|
542
546
|
]),
|
|
543
547
|
_: 2
|
|
544
548
|
}, 1024),
|
|
545
|
-
f(
|
|
549
|
+
f(Q, null, {
|
|
546
550
|
default: y(({ copyToClipboard: Ce }) => [
|
|
547
551
|
f(w, {
|
|
548
552
|
"data-testid": "action-entity-copy-json",
|
|
549
|
-
onClick: (Fe) =>
|
|
553
|
+
onClick: (Fe) => V(_, Ce)
|
|
550
554
|
}, {
|
|
551
555
|
default: y(() => [
|
|
552
|
-
pe(
|
|
556
|
+
pe(G(r(l)("consumer_groups.actions.copy_json")), 1)
|
|
553
557
|
]),
|
|
554
558
|
_: 2
|
|
555
559
|
}, 1032, ["onClick"])
|
|
@@ -563,7 +567,7 @@ const he = {
|
|
|
563
567
|
f(w, {
|
|
564
568
|
"data-testid": "action-entity-view",
|
|
565
569
|
"has-divider": "",
|
|
566
|
-
item:
|
|
570
|
+
item: O(_.id)
|
|
567
571
|
}, null, 8, ["item"])
|
|
568
572
|
]),
|
|
569
573
|
_: 2
|
|
@@ -590,7 +594,7 @@ const he = {
|
|
|
590
594
|
onClick: () => e.config.consumerId ? U(_) : ce(_)
|
|
591
595
|
}, {
|
|
592
596
|
default: y(() => [
|
|
593
|
-
pe(
|
|
597
|
+
pe(G(e.config.consumerId ? r(l)("consumer_groups.actions.exit") : r(l)("consumer_groups.actions.delete")), 1)
|
|
594
598
|
]),
|
|
595
599
|
_: 2
|
|
596
600
|
}, 1032, ["onClick"])
|
|
@@ -606,22 +610,22 @@ const he = {
|
|
|
606
610
|
description: r(l)("consumer_groups.delete.description"),
|
|
607
611
|
"entity-name": v.value && (v.value.name || v.value.id),
|
|
608
612
|
"entity-type": r(We).ConsumerGroup,
|
|
609
|
-
error:
|
|
613
|
+
error: F.value,
|
|
610
614
|
title: r(l)("consumer_groups.delete.title"),
|
|
611
615
|
visible: d.value,
|
|
612
616
|
onCancel: _e,
|
|
613
617
|
onProceed: fe
|
|
614
618
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
615
|
-
e.config.consumerId ? (
|
|
619
|
+
e.config.consumerId ? (P(), ge(lo, {
|
|
616
620
|
key: 0,
|
|
617
621
|
config: e.config,
|
|
618
622
|
"data-testid": "add-to-group-modal",
|
|
619
|
-
visible:
|
|
623
|
+
visible: ee.value,
|
|
620
624
|
"onAdd:partialSuccess": p[3] || (p[3] = (_) => a(_, !0)),
|
|
621
625
|
"onAdd:success": p[4] || (p[4] = (_) => a(_)),
|
|
622
626
|
onCancel: o
|
|
623
|
-
}, null, 8, ["config", "visible"])) :
|
|
624
|
-
e.config.consumerId && i.value ? (
|
|
627
|
+
}, null, 8, ["config", "visible"])) : te("", !0),
|
|
628
|
+
e.config.consumerId && i.value ? (P(), ge(Ve, {
|
|
625
629
|
key: 1,
|
|
626
630
|
"action-button-appearance": "danger",
|
|
627
631
|
"data-testid": "exit-group-modal",
|
|
@@ -637,26 +641,26 @@ const he = {
|
|
|
637
641
|
tag: "p"
|
|
638
642
|
}, Be({
|
|
639
643
|
consumerGroup: y(() => [
|
|
640
|
-
q("strong", null,
|
|
644
|
+
q("strong", null, G(i.value.name || i.value.id), 1)
|
|
641
645
|
]),
|
|
642
646
|
_: 2
|
|
643
647
|
}, [
|
|
644
648
|
e.config.consumerUsername ? {
|
|
645
649
|
name: "consumer",
|
|
646
650
|
fn: y(() => [
|
|
647
|
-
q("strong", null,
|
|
651
|
+
q("strong", null, G(e.config.consumerUsername), 1)
|
|
648
652
|
]),
|
|
649
653
|
key: "0"
|
|
650
654
|
} : void 0
|
|
651
655
|
]), 1032, ["keypath"]),
|
|
652
|
-
q("p", null,
|
|
656
|
+
q("p", null, G(r(l)("consumer_groups.consumers.exit.description")), 1)
|
|
653
657
|
]),
|
|
654
658
|
_: 1
|
|
655
|
-
}, 8, ["title", "visible"])) :
|
|
659
|
+
}, 8, ["title", "visible"])) : te("", !0)
|
|
656
660
|
]);
|
|
657
661
|
};
|
|
658
662
|
}
|
|
659
|
-
}), wo = /* @__PURE__ */ $e(mo, [["__scopeId", "data-v-
|
|
663
|
+
}), wo = /* @__PURE__ */ $e(mo, [["__scopeId", "data-v-200ea83e"]]), po = { class: "kong-ui-entities-consumer-group-form" }, go = { class: "select-item-container" }, fo = { class: "select-item-label" }, vo = {
|
|
660
664
|
key: 0,
|
|
661
665
|
class: "select-item-description"
|
|
662
666
|
}, yo = /* @__PURE__ */ ye({
|
|
@@ -677,7 +681,7 @@ const he = {
|
|
|
677
681
|
},
|
|
678
682
|
emits: ["update", "error", "loading"],
|
|
679
683
|
setup(e, { emit: N }) {
|
|
680
|
-
var fe,
|
|
684
|
+
var fe, ee, de;
|
|
681
685
|
const u = e, t = N, { i18n: { t: g } } = he.useI18n(), l = Ae(), n = xe({
|
|
682
686
|
fields: {
|
|
683
687
|
name: "",
|
|
@@ -691,68 +695,68 @@ const he = {
|
|
|
691
695
|
tags: "",
|
|
692
696
|
consumers: []
|
|
693
697
|
}), {
|
|
694
|
-
debouncedQueryChange:
|
|
695
|
-
loading:
|
|
698
|
+
debouncedQueryChange: se,
|
|
699
|
+
loading: D,
|
|
696
700
|
error: re,
|
|
697
701
|
loadItems: ne,
|
|
698
|
-
results:
|
|
699
|
-
} = Se(u.config, (
|
|
702
|
+
results: z
|
|
703
|
+
} = Se(u.config, (ee = H.form[(fe = u.config) == null ? void 0 : fe.app]) == null ? void 0 : ee.consumersList, "", {
|
|
700
704
|
fetchedItemsKey: "data",
|
|
701
705
|
searchKeys: ["username", "custom_id", "id"]
|
|
702
|
-
}), { axiosInstance:
|
|
706
|
+
}), { axiosInstance: M } = we((de = u.config) == null ? void 0 : de.axiosRequestConfig), { getMessageFromError: ae } = Xe(), A = Ye(), X = I(() => z.value.map((o) => ({
|
|
703
707
|
label: o.username || o.custom_id,
|
|
704
708
|
value: o.id,
|
|
705
709
|
selected: n.fields.consumers.includes(o.id),
|
|
706
710
|
data: o
|
|
707
711
|
// we need this to determine whether or not to show the description text
|
|
708
|
-
}))),
|
|
712
|
+
}))), Y = I(() => {
|
|
709
713
|
var o, a;
|
|
710
|
-
return (a =
|
|
711
|
-
}), ue = I(() => u.consumerGroupId ? ke.Edit : ke.Create), K = I(() => !!n.fields.name && !
|
|
712
|
-
var c,
|
|
713
|
-
let i = `${(c = u.config) == null ? void 0 : c.apiBaseUrl}${
|
|
714
|
-
return ((U = u.config) == null ? void 0 : U.app) === "konnect" ? i = i.replace(/{controlPlaneId}/gi, (($ = u.config) == null ? void 0 : $.controlPlaneId) || "") : ((
|
|
714
|
+
return (a = H.form[(o = u.config) == null ? void 0 : o.app]) == null ? void 0 : a.edit;
|
|
715
|
+
}), ue = I(() => u.consumerGroupId ? ke.Edit : ke.Create), K = I(() => !!n.fields.name && !Z.value), T = I(() => JSON.stringify(n.fields) !== JSON.stringify(E)), x = (o, a = "", C = "") => {
|
|
716
|
+
var c, S, U, $, oe, me;
|
|
717
|
+
let i = `${(c = u.config) == null ? void 0 : c.apiBaseUrl}${H.form[(S = u.config) == null ? void 0 : S.app][o]}`;
|
|
718
|
+
return ((U = u.config) == null ? void 0 : U.app) === "konnect" ? i = i.replace(/{controlPlaneId}/gi, (($ = u.config) == null ? void 0 : $.controlPlaneId) || "") : ((oe = u.config) == null ? void 0 : oe.app) === "kongManager" && (i = i.replace(/\/{workspace}/gi, (me = u.config) != null && me.workspace ? `/${u.config.workspace}` : "")), i = i.replace(/{id}/gi, a || u.consumerGroupId), (o === "addConsumer" || o === "removeConsumer") && (i = i.replace(/{consumerId}/gi, C)), i;
|
|
715
719
|
}, ie = () => {
|
|
716
720
|
var o;
|
|
717
721
|
l.push(((o = u.config) == null ? void 0 : o.cancelRoute) || { name: "consumer-group-list" });
|
|
718
|
-
},
|
|
722
|
+
}, L = (o) => {
|
|
719
723
|
t("error", o);
|
|
720
724
|
}, le = (o) => {
|
|
721
725
|
t("loading", o);
|
|
722
|
-
},
|
|
723
|
-
var C, i, c,
|
|
726
|
+
}, V = async (o) => {
|
|
727
|
+
var C, i, c, S, U;
|
|
724
728
|
n.fields.name = ((C = o == null ? void 0 : o.item) == null ? void 0 : C.name) || ((i = o == null ? void 0 : o.consumer_group) == null ? void 0 : i.name) || (o == null ? void 0 : o.name) || "";
|
|
725
729
|
const a = ((c = o == null ? void 0 : o.item) == null ? void 0 : c.tags) || (o == null ? void 0 : o.consumer_group.tags) || (o == null ? void 0 : o.tags) || [];
|
|
726
730
|
if (n.fields.tags = (a == null ? void 0 : a.join(", ")) || "", "consumers" in o)
|
|
727
|
-
n.fields.consumers = ((
|
|
731
|
+
n.fields.consumers = ((S = o == null ? void 0 : o.consumers) == null ? void 0 : S.map(($) => $.id)) || [];
|
|
728
732
|
else
|
|
729
733
|
try {
|
|
730
|
-
const { data: $ } = await
|
|
731
|
-
n.fields.consumers = "consumers" in $ ? (U = $ == null ? void 0 : $.consumers) == null ? void 0 : U.map((
|
|
734
|
+
const { data: $ } = await M.get(x("getConsumers"));
|
|
735
|
+
n.fields.consumers = "consumers" in $ ? (U = $ == null ? void 0 : $.consumers) == null ? void 0 : U.map((oe) => oe.id) : [];
|
|
732
736
|
} catch ($) {
|
|
733
737
|
d($);
|
|
734
738
|
}
|
|
735
739
|
Object.assign(E, n.fields);
|
|
736
|
-
},
|
|
740
|
+
}, Z = I(() => A.utf8Name(n.fields.name)), O = I(() => {
|
|
737
741
|
var o, a;
|
|
738
742
|
return {
|
|
739
743
|
name: n.fields.name,
|
|
740
744
|
tags: (a = (o = n.fields.tags.split(",")) == null ? void 0 : o.map((C) => String(C || "").trim())) == null ? void 0 : a.filter((C) => C !== "")
|
|
741
745
|
};
|
|
742
|
-
}), m = async (o, a = "") => await
|
|
746
|
+
}), m = async (o, a = "") => await M.post(x("addConsumer", a, o), { consumer: o }), v = async (o, a = "") => await M.delete(x("removeConsumer", a, o)), d = (o) => {
|
|
743
747
|
n.errorMessage = ae(o), t("error", o);
|
|
744
748
|
}, h = (o = u.consumerGroupId) => {
|
|
745
749
|
Object.assign(E, n.fields), t("update", { ...n.fields, id: o });
|
|
746
|
-
},
|
|
750
|
+
}, F = (o, a, C = u.consumerGroupId) => {
|
|
747
751
|
const i = o == null ? void 0 : o.find((c) => c.status !== "fulfilled");
|
|
748
752
|
i ? d({
|
|
749
753
|
code: i.status,
|
|
750
754
|
message: a
|
|
751
755
|
}) : h(C);
|
|
752
|
-
},
|
|
756
|
+
}, W = async () => {
|
|
753
757
|
let o = "";
|
|
754
758
|
try {
|
|
755
|
-
const { data: a } = await
|
|
759
|
+
const { data: a } = await M.post(x("create"), O.value);
|
|
756
760
|
o = "item" in a ? a.item.id : a.id;
|
|
757
761
|
} catch (a) {
|
|
758
762
|
d(a);
|
|
@@ -760,7 +764,7 @@ const he = {
|
|
|
760
764
|
if (n.fields.consumers.length > 0 && o)
|
|
761
765
|
try {
|
|
762
766
|
const a = n.fields.consumers.map((i) => m(i, o)), C = await Promise.allSettled(a);
|
|
763
|
-
|
|
767
|
+
F(C, g("consumer_groups.errors.add_consumer"), o);
|
|
764
768
|
} catch (a) {
|
|
765
769
|
d(a);
|
|
766
770
|
}
|
|
@@ -768,7 +772,7 @@ const he = {
|
|
|
768
772
|
}, ce = async () => {
|
|
769
773
|
var C;
|
|
770
774
|
try {
|
|
771
|
-
((C = u.config) == null ? void 0 : C.app) === "konnect" ? await
|
|
775
|
+
((C = u.config) == null ? void 0 : C.app) === "konnect" ? await M.put(x("edit"), O.value) : await M.patch(x("edit"), O.value);
|
|
772
776
|
} catch (i) {
|
|
773
777
|
d(i);
|
|
774
778
|
}
|
|
@@ -778,22 +782,22 @@ const he = {
|
|
|
778
782
|
else {
|
|
779
783
|
if (a.length > 0)
|
|
780
784
|
try {
|
|
781
|
-
const i = a.map((
|
|
782
|
-
|
|
785
|
+
const i = a.map((S) => v(S)), c = await Promise.allSettled(i);
|
|
786
|
+
F(c, g("consumer_groups.errors.remove_consumer"));
|
|
783
787
|
} catch (i) {
|
|
784
788
|
d(i);
|
|
785
789
|
}
|
|
786
790
|
if (o.length > 0)
|
|
787
791
|
try {
|
|
788
|
-
const i = o.map((
|
|
789
|
-
|
|
792
|
+
const i = o.map((S) => m(S)), c = await Promise.allSettled(i);
|
|
793
|
+
F(c, g("consumer_groups.errors.add_consumer"));
|
|
790
794
|
} catch (i) {
|
|
791
795
|
d(i);
|
|
792
796
|
}
|
|
793
797
|
}
|
|
794
798
|
}, _e = async () => {
|
|
795
799
|
try {
|
|
796
|
-
n.readonly = !0, ue.value === ke.Create ? await
|
|
800
|
+
n.readonly = !0, ue.value === ke.Create ? await W() : await ce();
|
|
797
801
|
} finally {
|
|
798
802
|
n.readonly = !1;
|
|
799
803
|
}
|
|
@@ -801,20 +805,20 @@ const he = {
|
|
|
801
805
|
return Ge(async () => {
|
|
802
806
|
await ne();
|
|
803
807
|
}), (o, a) => {
|
|
804
|
-
const C =
|
|
805
|
-
return
|
|
808
|
+
const C = j("KInput"), i = j("KMultiselect");
|
|
809
|
+
return P(), J("div", po, [
|
|
806
810
|
f(r(Ze), {
|
|
807
|
-
"can-submit": K.value &&
|
|
811
|
+
"can-submit": K.value && T.value,
|
|
808
812
|
config: e.config,
|
|
809
813
|
"edit-id": e.consumerGroupId,
|
|
810
814
|
"entity-type": r(Pe).ConsumerGroup,
|
|
811
|
-
"error-message": n.errorMessage || r(re) ||
|
|
812
|
-
"fetch-url":
|
|
813
|
-
"form-fields":
|
|
815
|
+
"error-message": n.errorMessage || r(re) || Z.value,
|
|
816
|
+
"fetch-url": Y.value,
|
|
817
|
+
"form-fields": O.value,
|
|
814
818
|
"is-readonly": n.readonly,
|
|
815
819
|
onCancel: ie,
|
|
816
|
-
"onFetch:error": a[3] || (a[3] = (c) =>
|
|
817
|
-
"onFetch:success":
|
|
820
|
+
"onFetch:error": a[3] || (a[3] = (c) => L(c)),
|
|
821
|
+
"onFetch:success": V,
|
|
818
822
|
onLoading: a[4] || (a[4] = (c) => le(c)),
|
|
819
823
|
onSubmit: _e
|
|
820
824
|
}, {
|
|
@@ -864,19 +868,19 @@ const he = {
|
|
|
864
868
|
"onUpdate:modelValue": a[2] || (a[2] = (c) => n.fields.consumers = c),
|
|
865
869
|
appearance: "select",
|
|
866
870
|
autosuggest: "",
|
|
867
|
-
items:
|
|
871
|
+
items: X.value,
|
|
868
872
|
label: r(g)("consumer_groups.form.fields.consumers.label"),
|
|
869
|
-
loading: r(
|
|
873
|
+
loading: r(D),
|
|
870
874
|
placeholder: r(g)("consumer_groups.form.fields.consumers.placeholder"),
|
|
871
875
|
width: "auto",
|
|
872
|
-
onQueryChange: r(
|
|
876
|
+
onQueryChange: r(se)
|
|
873
877
|
}, {
|
|
874
878
|
"item-template": y(({ item: c }) => {
|
|
875
|
-
var
|
|
879
|
+
var S, U, $;
|
|
876
880
|
return [
|
|
877
881
|
q("div", go, [
|
|
878
|
-
q("div", fo,
|
|
879
|
-
(
|
|
882
|
+
q("div", fo, G(c.label), 1),
|
|
883
|
+
(S = c == null ? void 0 : c.data) != null && S.username && ((U = c == null ? void 0 : c.data) != null && U.custom_id) ? (P(), J("div", vo, G(($ = c == null ? void 0 : c.data) == null ? void 0 : $.custom_id), 1)) : te("", !0)
|
|
880
884
|
])
|
|
881
885
|
];
|
|
882
886
|
}),
|
|
@@ -918,7 +922,7 @@ const he = {
|
|
|
918
922
|
},
|
|
919
923
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
920
924
|
setup(e) {
|
|
921
|
-
const N = e, { i18n: { t: u } } = he.useI18n(), t = I(() =>
|
|
925
|
+
const N = e, { i18n: { t: u } } = he.useI18n(), t = I(() => H.form[N.config.app].edit), g = k({
|
|
922
926
|
id: {},
|
|
923
927
|
name: {},
|
|
924
928
|
created_at: {},
|
|
@@ -927,7 +931,7 @@ const he = {
|
|
|
927
931
|
tooltip: u("consumer_groups.form.fields.tags.tooltip")
|
|
928
932
|
}
|
|
929
933
|
});
|
|
930
|
-
return (l, n) => (
|
|
934
|
+
return (l, n) => (P(), J("div", ho, [
|
|
931
935
|
f(r(eo), {
|
|
932
936
|
config: e.config,
|
|
933
937
|
"config-card-doc": e.configCardDoc,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N["kong-ui-public-entities-consumer-groups"]={},N.Vue,N.VueRouter,N.KongIcons,N["kong-ui-public-i18n"],N["kong-ui-public-entities-shared"]))})(this,function(N,e,de,fe,me,f){"use strict";const ge={consumer_groups:{list:{table_headers:{name:"Name",consumers_count:"Consumers",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer Group",description:"Use consumer groups to manage custom rate limiting configuration for subsets of consumers.",title_for_consumer:"Add to a Consumer Group"},toolbar_actions:{new_consumer_group:"New Consumer Group"}},title:"Consumer Groups",search:{placeholder:"Filter by exact name or ID"},actions:{add_to_group:"Add to Consumer Group",create:"New Consumer Group",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",exit:"Exit",view:"View Details"},delete:{title:"Delete a Consumer Group",description:"Deleting this group will remove this group from all plugins and its rate limit configuration. This action cannot be reversed."},consumers:{add:{title:"Add To Consumer Groups",ctaText:"Add this consumer to consumer groups",consumer_groups_label:"Consumer Groups",consumer_group_placeholder:"Add to consumer groups",footer:"Search by exact name or ID to find consumer groups not included in the list"},exit:{title:"Exit from a Consumer Group",confirmation:"Are you sure you want to remove consumer {consumer} from consumer group {consumerGroup}?",confirmationNoUsername:"Are you sure you want this consumer to exit from consumer group {consumerGroup}?",description:"Exiting from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumer Groups could not be retrieved",delete:"The consumer group could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"The consumer could not be added to some groups at this time.",already_added:"The consumer is already in this consumer group",add_consumer:"An unexpected error occurred while adding consumers. Please try again.",remove_consumer:"An unexpected error occurred while removing consumers. Please try again."},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{general_info:{title:"General Information",description:"General information will help identify and manage this consumer group."},consumers:{title:"Consumers",description:"Add or remove consumers from this group"},fields:{name:{label:"Name",placeholder:"Enter a unique name for this consumer group "},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},consumers:{label:"Consumers",placeholder:"Select one or more consumers"}}}}};function ye(){const o=me.createI18n("en-us",ge);return{i18n:o,i18nT:me.i18nTComponent(o)}}const se={useI18n:ye},G="/v2/control-planes/{controlPlaneId}/core-entities",T="/{workspace}",R={list:{konnect:{all:`${G}/consumer_groups`,forModal:`${G}/consumer_groups`,forConsumer:`${G}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${G}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`},kongManager:{all:`${T}/consumer_groups?counter=true`,forModal:`${T}/consumer_groups`,forConsumer:`${T}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${T}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`}},form:{konnect:{consumersList:`${G}/consumers`,create:`${G}/consumer_groups`,edit:`${G}/consumer_groups/{id}`,addConsumer:`${G}/consumer_groups/{id}/consumers`,removeConsumer:`${G}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${G}/consumer_groups/{id}/consumers`},kongManager:{consumersList:`${T}/consumers`,create:`${T}/consumer_groups`,edit:`${T}/consumer_groups/{id}`,addConsumer:`${T}/consumer_groups/{id}/consumers`,removeConsumer:`${T}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${T}/consumer_groups/{id}/consumers`}}},he={class:"add-to-group-form-container"},_e={class:"add-to-group-cta-text"},Ce={key:0,class:"kong-ui-entity-add-to-groups-error"},be={key:0},ke=e.defineComponent({__name:"AddToGroupModal",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.consumerId)},visible:{type:Boolean,required:!0,default:!1}},emits:["cancel","add:success","add:partial-success","error"],setup(o,{emit:S}){var U;const{i18n:{t:c}}=se.useI18n(),r=o,g=S,{axiosInstance:i}=f.useAxios((U=r.config)==null?void 0:U.axiosRequestConfig),s=e.ref([]),{debouncedQueryChange:x,loading:K,allRecords:V,error:X,loadItems:Y,results:D}=f.useDebouncedFilter(r.config,R.list[r.config.app].forModal,"",{fetchedItemsKey:"data",searchKeys:["name","id"]}),B=e.computed(()=>X.value?c("consumer_groups.errors.general"):""),Z=e.ref(0),L=e.computed(()=>V.value===void 0),A=e.computed(()=>D.value.map(m=>({label:m.name,value:m.id,selected:s.value.includes(m.id),data:m}))),J=m=>{var d;const y=L.value?D.value.find(h=>h.id===m):(d=V.value)==null?void 0:d.find(h=>h.id===m);return y?y.name:m},v=()=>{I.value="",P.value=[],$.value=[],g("cancel")},P=e.ref([]),q=e.ref(!1),I=e.ref(""),ee=async()=>{if(!s.value.length){I.value="",$.value=[],g("cancel");return}q.value=!0,I.value="",P.value=[],$.value=[];try{const m=s.value.map(h=>oe(h)),y=await Promise.allSettled(m);let d=!0;y.forEach(h=>{h.status!=="fulfilled"&&(d=!1)}),d?(P.value=[],$.value=[],g("add:success",s.value),s.value=[]):(P.value.length&&g("add:partial-success",P.value),s.value=[],W(y))}catch{I.value=c("consumer_groups.errors.add"),g("error",I.value)}finally{q.value=!1}},O=e.computed(()=>{var y,d,h,M;let m=`${r.config.apiBaseUrl}${R.list[r.config.app].forConsumer}`;return r.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((y=r.config)==null?void 0:y.controlPlaneId)||"").replace(/{consumerId}/gi,((d=r.config)==null?void 0:d.consumerId)||""):r.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(h=r.config)!=null&&h.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((M=r.config)==null?void 0:M.consumerId)||"")),m}),oe=async m=>{const y={group:m};try{const d=await i.post(O.value,y);return P.value.push(m),d}catch(d){let h=`${J(m)} - ${d.message}`;return d.response.status===409&&(h=`${J(m)} - ${c("consumer_groups.errors.already_added")}`),Promise.reject(Error(h))}},$=e.ref([]),W=m=>{$.value=m.map(y=>{var d;return(d=y.reason)==null?void 0:d.message}).filter(Boolean)};return e.watch(A,()=>{Z.value++},{immediate:!0,deep:!0}),e.watch(()=>r.visible,()=>{r.visible&&Y()},{immediate:!0}),(m,y)=>{const d=e.resolveComponent("KMultiselect"),h=e.resolveComponent("KAlert"),M=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(M,{"action-button-disabled":q.value,class:"kong-ui-entities-add-to-groups-modal","data-testid":"add-to-group-modal",title:e.unref(c)("consumer_groups.consumers.add.title"),visible:o.visible,onCancel:v,onProceed:ee},{default:e.withCtx(()=>[e.createElementVNode("div",he,[e.createElementVNode("p",_e,e.toDisplayString(e.unref(c)("consumer_groups.consumers.add.ctaText")),1),e.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=Q=>s.value=Q),autosuggest:"","data-testid":"add-to-groups-multiselect","dropdown-footer-text":L.value?e.unref(c)("consumer_groups.consumers.add.footer"):void 0,items:A.value,label:e.unref(c)("consumer_groups.consumers.add.consumer_groups_label"),loading:e.unref(K),placeholder:e.unref(c)("consumer_groups.consumers.add.consumer_group_placeholder"),readonly:q.value,required:"",width:"100%",onQueryChange:e.unref(x)},null,8,["modelValue","dropdown-footer-text","items","label","loading","placeholder","readonly","onQueryChange"]),I.value||B.value||$.value.length?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(h,{appearance:"danger"},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("consumer_groups.errors.add")),1),$.value.length?(e.openBlock(),e.createElementBlock("ul",be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(Q,te)=>(e.openBlock(),e.createElementBlock("li",{key:te},e.toDisplayString(Q),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(I.value||B.value),1)]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["action-button-disabled","title","visible"])}}}),ce=(o,S)=>{const c=o.__vccOpts||o;for(const[r,g]of S)c[r]=g;return c},we=ce(ke,[["__scopeId","data-v-4260ce03"]]),xe={class:"kong-ui-entities-consumer-groups-list"},Ie=ce(e.defineComponent({__name:"ConsumerGroupList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","add:success","remove:success"],setup(o,{emit:S}){var pe;const c=S,r=o,{i18nT:g,i18n:{t:i}}=se.useI18n(),s=de.useRouter(),{axiosInstance:x}=f.useAxios((pe=r.config)==null?void 0:pe.axiosRequestConfig),K=e.ref(1),V=e.computed(()=>!!r.config.consumerId),X=e.computed(()=>V.value?"kong-ui-entities-consumer-groups-list-in-consumer-page":"kong-ui-entities-consumer-groups-list"),Y=e.computed(()=>r.config.app!=="kongManager"||!!r.config.disableSorting),D={name:{label:i("consumer_groups.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1}};r.config.app==="kongManager"&&(D.consumers_count={label:i("consumer_groups.list.table_headers.consumers_count"),searchable:!1,sortable:!1}),D.tags={label:i("consumer_groups.list.table_headers.tags"),sortable:!1};const B=D,Z=n=>({"data-testid":n.username??n.custom_id??n.id}),L=e.computed(()=>{var p,C,k,j;let n=`${r.config.apiBaseUrl}${R.list[r.config.app][V.value?"forConsumer":"all"]}`;return r.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((p=r.config)==null?void 0:p.controlPlaneId)||"").replace(/{consumerId}/gi,((C=r.config)==null?void 0:C.consumerId)||""):r.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(k=r.config)!=null&&k.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((j=r.config)==null?void 0:j.consumerId)||"")),n}),A=e.ref(""),J=e.computed(()=>{const n=r.config.app==="konnect"||r.config.isExactMatch;return n?{isExactMatch:n,fields:{username:D.name,id:{label:i("consumer_groups.list.table_headers.id")}},placeholder:i("consumer_groups.search.placeholder")}:{isExactMatch:n,fields:{name:D.name},schema:r.config.filterSchema}}),v=e.computed(()=>r.config.app==="konnect"&&A.value?"consumer_group":V.value&&!r.config.paginatedEndpoint?"consumer_groups":void 0),{fetcher:P,fetcherState:q}=f.useFetcher(r.config,L.value,v),I=()=>{A.value=""},ee=()=>{K.value++},O=e.ref(null),oe=(n,p)=>{const C=n.id;if(!p(C)){c("copy:error",{entity:n,field:"id",message:i("consumer_groups.errors.copy")});return}c("copy:success",{entity:n,field:"id",message:i("consumer_groups.copy.success",{val:C})})},$=(n,p)=>{const C=JSON.stringify(n);if(!p(C)){c("copy:error",{entity:n,message:i("consumer_groups.errors.copy")});return}c("copy:success",{entity:n,message:i("consumer_groups.copy.success_brief")})},W=async n=>{var C;await((C=r.canRetrieve)==null?void 0:C.call(r,n))&&s.push(r.config.getViewRoute(n.id))},U=n=>({label:i("consumer_groups.actions.view"),to:r.config.getViewRoute(n)}),m=n=>({label:i("consumer_groups.actions.edit"),to:r.config.getEditRoute(n)}),y=e.ref(void 0),d=e.ref(!1),h=e.ref(!1),M=e.ref(""),Q=f.useDeleteUrlBuilder(r.config,L.value),te=n=>{y.value=n,d.value=!0},le=()=>{d.value=!1},ae=async()=>{var n,p,C;if((n=y.value)!=null&&n.id){h.value=!0;try{await x.delete(Q(y.value.id)),h.value=!1,d.value=!1,K.value++,c("delete:success",y.value)}catch(k){M.value=((C=(p=k.response)==null?void 0:p.data)==null?void 0:C.message)||k.message||i("consumer_groups.errors.delete"),c("error",k)}finally{h.value=!1}}},H=e.ref(!1),re=()=>{H.value=!0},t=()=>{H.value=!1},a=(n,p)=>{p||t(),K.value++,c("add:success",n)},b=()=>{V.value&&re()},l=e.ref(void 0),u=e.ref(!1),E=e.ref(""),F=n=>{l.value=n,u.value=!0},w=()=>{u.value=!1,l.value=void 0},z=e.computed(()=>{var p,C,k,j;let n=`${r.config.apiBaseUrl}${R.list[r.config.app].oneForConsumer}`;return r.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((p=r.config)==null?void 0:p.controlPlaneId)||"").replace(/{consumerId}/gi,((C=r.config)==null?void 0:C.consumerId)||""):r.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(k=r.config)!=null&&k.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((j=r.config)==null?void 0:j.consumerId)||"")),n}),ne=e.ref(!1),Te=async()=>{if(l.value){ne.value=!0;try{const n=z.value.replace(/{consumerGroupId}/gi,l.value.id);await x.delete(n),c("remove:success",l.value),w(),K.value++}catch(n){E.value=n.message||i("consumer_groups.errors.delete"),c("error",n)}finally{ne.value=!1}}};e.watch(q,n=>{var p,C,k;if(n.status===f.FetcherStatus.Error){O.value={title:i("consumer_groups.errors.general")},(k=(C=(p=n.error)==null?void 0:p.response)==null?void 0:C.data)!=null&&k.message&&(O.value.message=n.error.response.data.message),c("error",n.error);return}O.value=null});const ie=e.ref({ctaPath:V.value?void 0:r.config.createRoute,ctaText:void 0,message:`${i("consumer_groups.list.empty_state.description")}${r.config.additionMessageForEmptyState?` ${r.config.additionMessageForEmptyState}`:""}`,title:i("consumer_groups.title")});return e.onBeforeMount(async()=>{await r.canCreate()&&(ie.value.title=V.value?i("consumer_groups.list.empty_state.title_for_consumer"):i("consumer_groups.list.empty_state.title"),ie.value.ctaText=V.value?i("consumer_groups.actions.add_to_group"):i("consumer_groups.actions.create"))}),(n,p)=>{const C=e.resolveComponent("KButton"),k=e.resolveComponent("KDropdownItem"),j=e.resolveComponent("KClipboardProvider"),De=e.resolveComponent("KPrompt");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(f.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-pagination":V.value&&!o.config.paginatedEndpoint,"disable-sorting":Y.value,"empty-state-options":ie.value,"enable-entity-actions":"","error-message":O.value,fetcher:e.unref(P),"fetcher-cache-key":K.value,"pagination-type":"offset","preferences-storage-key":X.value,query:A.value,"row-attributes":Z,"table-headers":e.unref(B),onClearSearchInput:I,"onClick:row":p[2]||(p[2]=_=>W(_)),onEmptyStateCtaClicked:b,onSort:ee},{"toolbar-filter":e.withCtx(()=>[V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(f.EntityFilter),{key:0,modelValue:A.value,"onUpdate:modelValue":p[0]||(p[0]=_=>A.value=_),config:J.value},null,8,["modelValue","config"]))]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(C,{appearance:"primary","data-testid":"toolbar-add-consumer-group",size:o.useActionOutside?"medium":"large",to:o.config.consumerId?void 0:o.config.createRoute,onClick:p[1]||(p[1]=()=>o.config.consumerId?re():void 0)},{default:e.withCtx(()=>[e.createVNode(e.unref(fe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(o.config.consumerId?e.unref(i)("consumer_groups.actions.add_to_group"):e.unref(i)("consumer_groups.list.toolbar_actions.new_consumer_group")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:_})=>[e.createElementVNode("b",null,e.toDisplayString(_??"-"),1)]),consumers_count:e.withCtx(({rowValue:_})=>[e.createTextVNode(e.toDisplayString(_??"-"),1)]),tags:e.withCtx(({rowValue:_})=>[e.createVNode(e.unref(f.TableTags),{tags:_},null,8,["tags"])]),actions:e.withCtx(({row:_})=>[e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:ue})=>[e.createVNode(k,{"data-testid":"action-entity-copy-id",onClick:Ae=>oe(_,ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("consumer_groups.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(j,null,{default:e.withCtx(({copyToClipboard:ue})=>[e.createVNode(k,{"data-testid":"action-entity-copy-json",onClick:Ae=>$(_,ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("consumer_groups.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(_)},{default:e.withCtx(()=>[e.createVNode(k,{"data-testid":"action-entity-view","has-divider":"",item:U(_.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canEdit(_)},{default:e.withCtx(()=>[e.createVNode(k,{"data-testid":"action-entity-edit",item:m(_.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canDelete(_)},{default:e.withCtx(()=>[e.createVNode(k,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:()=>o.config.consumerId?F(_):te(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.config.consumerId?e.unref(i)("consumer_groups.actions.exit"):e.unref(i)("consumer_groups.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-pagination","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","preferences-storage-key","query","table-headers"]),e.createVNode(e.unref(f.EntityDeleteModal),{"action-pending":h.value,"data-testid":"delete-consumer-group-modal",description:e.unref(i)("consumer_groups.delete.description"),"entity-name":y.value&&(y.value.name||y.value.id),"entity-type":e.unref(f.EntityTypes).ConsumerGroup,error:M.value,title:e.unref(i)("consumer_groups.delete.title"),visible:d.value,onCancel:le,onProceed:ae},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"]),o.config.consumerId?(e.openBlock(),e.createBlock(we,{key:0,config:o.config,"data-testid":"add-to-group-modal",visible:H.value,"onAdd:partialSuccess":p[3]||(p[3]=_=>a(_,!0)),"onAdd:success":p[4]||(p[4]=_=>a(_)),onCancel:t},null,8,["config","visible"])):e.createCommentVNode("",!0),o.config.consumerId&&l.value?(e.openBlock(),e.createBlock(De,{key:1,"action-button-appearance":"danger","data-testid":"exit-group-modal",title:e.unref(i)("consumer_groups.consumers.exit.title"),visible:u.value,onCancel:w,onProceed:Te},{default:e.withCtx(()=>[e.createVNode(e.unref(g),{class:"exit-modal-message",keypath:o.config.consumerUsername?"consumer_groups.consumers.exit.confirmation":"consumer_groups.consumers.exit.confirmationNoUsername",tag:"p"},e.createSlots({consumerGroup:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(l.value.name||l.value.id),1)]),_:2},[o.config.consumerUsername?{name:"consumer",fn:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(o.config.consumerUsername),1)]),key:"0"}:void 0]),1032,["keypath"]),e.createElementVNode("p",null,e.toDisplayString(e.unref(i)("consumer_groups.consumers.exit.description")),1)]),_:1},8,["title","visible"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-7f3c37dc"]]),Ve={class:"kong-ui-entities-consumer-group-form"},Ee={class:"select-item-container"},Ne={class:"select-item-label"},$e={key:0,class:"select-item-description"},Be=ce(e.defineComponent({__name:"ConsumerGroupForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},consumerGroupId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:S}){var ae,H,re;const c=o,r=S,{i18n:{t:g}}=se.useI18n(),i=de.useRouter(),s=e.reactive({fields:{name:"",tags:"",consumers:[]},errorMessage:"",readonly:!1}),x=e.reactive({name:"",tags:"",consumers:[]}),{debouncedQueryChange:K,loading:V,error:X,loadItems:Y,results:D}=f.useDebouncedFilter(c.config,(H=R.form[(ae=c.config)==null?void 0:ae.app])==null?void 0:H.consumersList,"",{fetchedItemsKey:"data",searchKeys:["username","custom_id","id"]}),{axiosInstance:B}=f.useAxios((re=c.config)==null?void 0:re.axiosRequestConfig),{getMessageFromError:Z}=f.useErrors(),L=f.useValidators(),A=e.computed(()=>D.value.map(t=>({label:t.username||t.custom_id,value:t.id,selected:s.fields.consumers.includes(t.id),data:t}))),J=e.computed(()=>{var t,a;return(a=R.form[(t=c.config)==null?void 0:t.app])==null?void 0:a.edit}),v=e.computed(()=>c.consumerGroupId?f.EntityBaseFormType.Edit:f.EntityBaseFormType.Create),P=e.computed(()=>!!s.fields.name&&!W.value),q=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(x)),I=(t,a="",b="")=>{var u,E,F,w,z,ne;let l=`${(u=c.config)==null?void 0:u.apiBaseUrl}${R.form[(E=c.config)==null?void 0:E.app][t]}`;return((F=c.config)==null?void 0:F.app)==="konnect"?l=l.replace(/{controlPlaneId}/gi,((w=c.config)==null?void 0:w.controlPlaneId)||""):((z=c.config)==null?void 0:z.app)==="kongManager"&&(l=l.replace(/\/{workspace}/gi,(ne=c.config)!=null&&ne.workspace?`/${c.config.workspace}`:"")),l=l.replace(/{id}/gi,a||c.consumerGroupId),(t==="addConsumer"||t==="removeConsumer")&&(l=l.replace(/{consumerId}/gi,b)),l},ee=()=>{var t;i.push(((t=c.config)==null?void 0:t.cancelRoute)||{name:"consumer-group-list"})},O=t=>{r("error",t)},oe=t=>{r("loading",t)},$=async t=>{var b,l,u,E,F;s.fields.name=((b=t==null?void 0:t.item)==null?void 0:b.name)||((l=t==null?void 0:t.consumer_group)==null?void 0:l.name)||(t==null?void 0:t.name)||"";const a=((u=t==null?void 0:t.item)==null?void 0:u.tags)||(t==null?void 0:t.consumer_group.tags)||(t==null?void 0:t.tags)||[];if(s.fields.tags=(a==null?void 0:a.join(", "))||"","consumers"in t)s.fields.consumers=((E=t==null?void 0:t.consumers)==null?void 0:E.map(w=>w.id))||[];else try{const{data:w}=await B.get(I("getConsumers"));s.fields.consumers="consumers"in w?(F=w==null?void 0:w.consumers)==null?void 0:F.map(z=>z.id):[]}catch(w){d(w)}Object.assign(x,s.fields)},W=e.computed(()=>L.utf8Name(s.fields.name)),U=e.computed(()=>{var t,a;return{name:s.fields.name,tags:(a=(t=s.fields.tags.split(","))==null?void 0:t.map(b=>String(b||"").trim()))==null?void 0:a.filter(b=>b!=="")}}),m=async(t,a="")=>await B.post(I("addConsumer",a,t),{consumer:t}),y=async(t,a="")=>await B.delete(I("removeConsumer",a,t)),d=t=>{s.errorMessage=Z(t),r("error",t)},h=(t=c.consumerGroupId)=>{Object.assign(x,s.fields),r("update",{...s.fields,id:t})},M=(t,a,b=c.consumerGroupId)=>{const l=t==null?void 0:t.find(u=>u.status!=="fulfilled");l?d({code:l.status,message:a}):h(b)},Q=async()=>{let t="";try{const{data:a}=await B.post(I("create"),U.value);t="item"in a?a.item.id:a.id}catch(a){d(a)}if(s.fields.consumers.length>0&&t)try{const a=s.fields.consumers.map(l=>m(l,t)),b=await Promise.allSettled(a);M(b,g("consumer_groups.errors.add_consumer"),t)}catch(a){d(a)}else s.fields.consumers.length===0&&t&&h(t)},te=async()=>{var b;try{((b=c.config)==null?void 0:b.app)==="konnect"?await B.put(I("edit"),U.value):await B.patch(I("edit"),U.value)}catch(l){d(l)}const t=s.fields.consumers.filter(l=>!x.consumers.includes(l)),a=x.consumers.filter(l=>!s.fields.consumers.includes(l));if(a.length===0&&t.length===0)h();else{if(a.length>0)try{const l=a.map(E=>y(E)),u=await Promise.allSettled(l);M(u,g("consumer_groups.errors.remove_consumer"))}catch(l){d(l)}if(t.length>0)try{const l=t.map(E=>m(E)),u=await Promise.allSettled(l);M(u,g("consumer_groups.errors.add_consumer"))}catch(l){d(l)}}},le=async()=>{try{s.readonly=!0,v.value===f.EntityBaseFormType.Create?await Q():await te()}finally{s.readonly=!1}};return e.onBeforeMount(async()=>{await Y()}),(t,a)=>{const b=e.resolveComponent("KInput"),l=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(e.unref(f.EntityBaseForm),{"can-submit":P.value&&q.value,config:o.config,"edit-id":o.consumerGroupId,"entity-type":e.unref(f.SupportedEntityType).ConsumerGroup,"error-message":s.errorMessage||e.unref(X)||W.value,"fetch-url":J.value,"form-fields":U.value,"is-readonly":s.readonly,onCancel:ee,"onFetch:error":a[3]||(a[3]=u=>O(u)),"onFetch:success":$,onLoading:a[4]||(a[4]=u=>oe(u)),onSubmit:le},{default:e.withCtx(()=>[e.createVNode(e.unref(f.EntityFormSection),{description:e.unref(g)("consumer_groups.form.general_info.description"),title:e.unref(g)("consumer_groups.form.general_info.title")},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:s.fields.name,"onUpdate:modelValue":a[0]||(a[0]=u=>s.fields.name=u),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"consumer-group-form-name",label:e.unref(g)("consumer_groups.form.fields.name.label"),placeholder:e.unref(g)("consumer_groups.form.fields.name.placeholder"),required:"",type:"text"},null,8,["modelValue","label","placeholder"]),e.createVNode(b,{modelValue:s.fields.tags,"onUpdate:modelValue":a[1]||(a[1]=u=>s.fields.tags=u),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"consumer-group-form-tags",help:e.unref(g)("consumer_groups.form.fields.tags.help"),label:e.unref(g)("consumer_groups.form.fields.tags.label"),"label-attributes":{info:e.unref(g)("consumer_groups.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(g)("consumer_groups.form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{description:e.unref(g)("consumer_groups.form.consumers.description"),"has-divider":"",title:e.unref(g)("consumer_groups.form.consumers.title")},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:s.fields.consumers,"onUpdate:modelValue":a[2]||(a[2]=u=>s.fields.consumers=u),appearance:"select",autosuggest:"",items:A.value,label:e.unref(g)("consumer_groups.form.fields.consumers.label"),loading:e.unref(V),placeholder:e.unref(g)("consumer_groups.form.fields.consumers.placeholder"),width:"auto",onQueryChange:e.unref(K)},{"item-template":e.withCtx(({item:u})=>{var E,F,w;return[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ne,e.toDisplayString(u.label),1),(E=u==null?void 0:u.data)!=null&&E.username&&((F=u==null?void 0:u.data)!=null&&F.custom_id)?(e.openBlock(),e.createElementBlock("div",$e,e.toDisplayString((w=u==null?void 0:u.data)==null?void 0:w.custom_id),1)):e.createCommentVNode("",!0)])]}),_:1},8,["modelValue","items","label","loading","placeholder","onQueryChange"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-dfa56d62"]]),Me={class:"kong-ui-consumer-group-entity-config-card"},Ge=e.defineComponent({__name:"ConsumerGroupConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const S=o,{i18n:{t:c}}=se.useI18n(),r=e.computed(()=>R.form[S.config.app].edit),g=e.ref({id:{},name:{},created_at:{},updated_at:{},tags:{tooltip:c("consumer_groups.form.fields.tags.tooltip")}});return(i,s)=>(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(f.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":g.value,"data-key":"consumer_group","entity-type":e.unref(f.SupportedEntityType).ConsumerGroup,"fetch-url":r.value,"hide-title":o.hideTitle,"onFetch:error":s[0]||(s[0]=x=>i.$emit("fetch:error",x)),"onFetch:success":s[1]||(s[1]=x=>i.$emit("fetch:success",x)),onLoading:s[2]||(s[2]=x=>i.$emit("loading",x))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});N.ConsumerGroupConfigCard=Ge,N.ConsumerGroupForm=Be,N.ConsumerGroupList=Ie,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function($,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):($=typeof globalThis<"u"?globalThis:$||self,e($["kong-ui-public-entities-consumer-groups"]={},$.Vue,$.VueRouter,$.KongIcons,$["kong-ui-public-i18n"],$["kong-ui-public-entities-shared"]))})(this,function($,e,de,fe,me,f){"use strict";const ge={consumer_groups:{list:{table_headers:{name:"Name",consumers_count:"Consumers",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Consumer Group",description:"Use consumer groups to manage custom rate limiting configuration for subsets of consumers.",title_for_consumer:"Add to a Consumer Group"},toolbar_actions:{new_consumer_group:"New Consumer Group"}},title:"Consumer Groups",search:{placeholder:"Filter by exact name or ID"},actions:{add_to_group:"Add to Consumer Group",create:"New Consumer Group",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",exit:"Exit",view:"View Details"},delete:{title:"Delete a Consumer Group",description:"Deleting this group will remove this group from all plugins and its rate limit configuration. This action cannot be reversed."},consumers:{add:{title:"Add To Consumer Groups",ctaText:"Add this consumer to consumer groups",consumer_groups_label:"Consumer Groups",consumer_group_placeholder:"Add to consumer groups",footer:"Search by exact name or ID to find consumer groups not included in the list"},exit:{title:"Exit from a Consumer Group",confirmation:"Are you sure you want to remove consumer {consumer} from consumer group {consumerGroup}?",confirmationNoUsername:"Are you sure you want this consumer to exit from consumer group {consumerGroup}?",description:"Exiting from the group could change the rate limit policy applied to this consumer."}},errors:{general:"Consumer Groups could not be retrieved",delete:"The consumer group could not be deleted at this time.",copy:"Failed to copy to clipboard",add:"The consumer could not be added to some groups at this time.",already_added:"The consumer is already in this consumer group",add_consumer:"An unexpected error occurred while adding consumers. Please try again.",remove_consumer:"An unexpected error occurred while removing consumers. Please try again."},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{general_info:{title:"General Information",description:"General information will help identify and manage this consumer group."},consumers:{title:"Consumers",description:"Add or remove consumers from this group"},fields:{name:{label:"Name",placeholder:"Enter a unique name for this consumer group "},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},consumers:{label:"Consumers",placeholder:"Select one or more consumers"}}}}};function ye(){const o=me.createI18n("en-us",ge);return{i18n:o,i18nT:me.i18nTComponent(o)}}const se={useI18n:ye},T="/v2/control-planes/{controlPlaneId}/core-entities",D="/{workspace}",U={list:{konnect:{all:`${T}/consumer_groups`,forModal:`${T}/consumer_groups`,forConsumer:`${T}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${T}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`},kongManager:{all:`${D}/consumer_groups?counter=true`,forModal:`${D}/consumer_groups`,forConsumer:`${D}/consumers/{consumerId}/consumer_groups`,oneForConsumer:`${D}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`}},form:{konnect:{consumersList:`${T}/consumers`,create:`${T}/consumer_groups`,edit:`${T}/consumer_groups/{id}`,addConsumer:`${T}/consumer_groups/{id}/consumers`,removeConsumer:`${T}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${T}/consumer_groups/{id}/consumers`},kongManager:{consumersList:`${D}/consumers`,create:`${D}/consumer_groups`,edit:`${D}/consumer_groups/{id}`,addConsumer:`${D}/consumer_groups/{id}/consumers`,removeConsumer:`${D}/consumer_groups/{id}/consumers/{consumerId}`,getConsumers:`${D}/consumer_groups/{id}/consumers`}}},he={class:"add-to-group-form-container"},_e={class:"add-to-group-cta-text"},Ce={key:0,class:"kong-ui-entity-add-to-groups-error"},be={key:0},ke=e.defineComponent({__name:"AddToGroupModal",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.consumerId)},visible:{type:Boolean,required:!0,default:!1}},emits:["cancel","add:success","add:partial-success","error"],setup(o,{emit:S}){var K;const{i18n:{t:c}}=se.useI18n(),r=o,g=S,{axiosInstance:l}=f.useAxios((K=r.config)==null?void 0:K.axiosRequestConfig),s=e.ref([]),{debouncedQueryChange:I,loading:z,allRecords:A,error:X,loadItems:Y,results:O}=f.useDebouncedFilter(r.config,U.list[r.config.app].forModal,"",{fetchedItemsKey:"data",searchKeys:["name","id"]}),V=e.computed(()=>X.value?c("consumer_groups.errors.general"):""),Z=e.ref(0),E=e.computed(()=>A.value===void 0),L=e.computed(()=>O.value.map(m=>({label:m.name,value:m.id,selected:s.value.includes(m.id),data:m}))),Q=m=>{var d;const y=E.value?O.value.find(h=>h.id===m):(d=A.value)==null?void 0:d.find(h=>h.id===m);return y?y.name:m},v=()=>{x.value="",P.value=[],M.value=[],g("cancel")},P=e.ref([]),B=e.ref(!1),x=e.ref(""),ee=async()=>{if(!s.value.length){x.value="",M.value=[],g("cancel");return}B.value=!0,x.value="",P.value=[],M.value=[];try{const m=s.value.map(h=>oe(h)),y=await Promise.allSettled(m);let d=!0;y.forEach(h=>{h.status!=="fulfilled"&&(d=!1)}),d?(P.value=[],M.value=[],g("add:success",s.value),s.value=[]):(P.value.length&&g("add:partial-success",P.value),s.value=[],J(y))}catch{x.value=c("consumer_groups.errors.add"),g("error",x.value)}finally{B.value=!1}},R=e.computed(()=>{var y,d,h,G;let m=`${r.config.apiBaseUrl}${U.list[r.config.app].forConsumer}`;return r.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((y=r.config)==null?void 0:y.controlPlaneId)||"").replace(/{consumerId}/gi,((d=r.config)==null?void 0:d.consumerId)||""):r.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(h=r.config)!=null&&h.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((G=r.config)==null?void 0:G.consumerId)||"")),m}),oe=async m=>{const y={group:m};try{const d=await l.post(R.value,y);return P.value.push(m),d}catch(d){let h=`${Q(m)} - ${d.message}`;return d.response.status===409&&(h=`${Q(m)} - ${c("consumer_groups.errors.already_added")}`),Promise.reject(Error(h))}},M=e.ref([]),J=m=>{M.value=m.map(y=>{var d;return(d=y.reason)==null?void 0:d.message}).filter(Boolean)};return e.watch(L,()=>{Z.value++},{immediate:!0,deep:!0}),e.watch(()=>r.visible,()=>{r.visible&&Y()},{immediate:!0}),(m,y)=>{const d=e.resolveComponent("KMultiselect"),h=e.resolveComponent("KAlert"),G=e.resolveComponent("KPrompt");return e.openBlock(),e.createBlock(G,{"action-button-disabled":B.value,class:"kong-ui-entities-add-to-groups-modal","data-testid":"add-to-group-modal",title:e.unref(c)("consumer_groups.consumers.add.title"),visible:o.visible,onCancel:v,onProceed:ee},{default:e.withCtx(()=>[e.createElementVNode("div",he,[e.createElementVNode("p",_e,e.toDisplayString(e.unref(c)("consumer_groups.consumers.add.ctaText")),1),e.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=j=>s.value=j),autosuggest:"","data-testid":"add-to-groups-multiselect","dropdown-footer-text":E.value?e.unref(c)("consumer_groups.consumers.add.footer"):void 0,items:L.value,label:e.unref(c)("consumer_groups.consumers.add.consumer_groups_label"),loading:e.unref(z),placeholder:e.unref(c)("consumer_groups.consumers.add.consumer_group_placeholder"),readonly:B.value,required:"",width:"100%",onQueryChange:e.unref(I)},null,8,["modelValue","dropdown-footer-text","items","label","loading","placeholder","readonly","onQueryChange"]),x.value||V.value||M.value.length?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(h,{appearance:"danger"},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("consumer_groups.errors.add")),1),M.value.length?(e.openBlock(),e.createElementBlock("ul",be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(j,te)=>(e.openBlock(),e.createElementBlock("li",{key:te},e.toDisplayString(j),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(x.value||V.value),1)]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["action-button-disabled","title","visible"])}}}),ce=(o,S)=>{const c=o.__vccOpts||o;for(const[r,g]of S)c[r]=g;return c},we=ce(ke,[["__scopeId","data-v-4260ce03"]]),Ie={class:"kong-ui-entities-consumer-groups-list"},xe=ce(e.defineComponent({__name:"ConsumerGroupList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","add:success","remove:success"],setup(o,{emit:S}){var pe;const c=S,r=o,{i18nT:g,i18n:{t:l}}=se.useI18n(),s=de.useRouter(),{axiosInstance:I}=f.useAxios((pe=r.config)==null?void 0:pe.axiosRequestConfig),z=e.computed(()=>r.config.app!=="kongManager"||!!r.config.disableSorting),A={name:{label:l("consumer_groups.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1}};r.config.app==="kongManager"&&(A.consumers_count={label:l("consumer_groups.list.table_headers.consumers_count"),searchable:!1,sortable:!1}),A.tags={label:l("consumer_groups.list.table_headers.tags"),sortable:!1};const X=A,Y=n=>({"data-testid":n.username??n.custom_id??n.id}),O=e.computed(()=>{var p,C,k,q;let n=`${r.config.apiBaseUrl}${U.list[r.config.app][E.value?"forConsumer":"all"]}`;return r.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((p=r.config)==null?void 0:p.controlPlaneId)||"").replace(/{consumerId}/gi,((C=r.config)==null?void 0:C.consumerId)||""):r.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(k=r.config)!=null&&k.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((q=r.config)==null?void 0:q.consumerId)||"")),n}),V=e.ref(""),Z=e.computed(()=>{const n=r.config.app==="konnect"||r.config.isExactMatch;return n?{isExactMatch:n,fields:{username:A.name,id:{label:l("consumer_groups.list.table_headers.id")}},placeholder:l("consumer_groups.search.placeholder")}:{isExactMatch:n,fields:{name:A.name},schema:r.config.filterSchema}}),E=e.computed(()=>!!r.config.consumerId),L=e.computed(()=>E.value?"kong-ui-entities-consumer-groups-list-in-consumer-page":"kong-ui-entities-consumer-groups-list"),Q=e.computed(()=>r.config.app==="konnect"&&V.value?"consumer_group":E.value&&!r.config.paginatedEndpoint?"consumer_groups":void 0),{fetcher:v,fetcherState:P,fetcherCacheKey:B}=f.useFetcher({...r.config,cacheIdentifier:r.cacheIdentifier},O.value,Q),x=()=>{V.value=""},ee=()=>{B.value++},R=e.ref(null),oe=(n,p)=>{const C=n.id;if(!p(C)){c("copy:error",{entity:n,field:"id",message:l("consumer_groups.errors.copy")});return}c("copy:success",{entity:n,field:"id",message:l("consumer_groups.copy.success",{val:C})})},M=(n,p)=>{const C=JSON.stringify(n);if(!p(C)){c("copy:error",{entity:n,message:l("consumer_groups.errors.copy")});return}c("copy:success",{entity:n,message:l("consumer_groups.copy.success_brief")})},J=async n=>{var C;await((C=r.canRetrieve)==null?void 0:C.call(r,n))&&s.push(r.config.getViewRoute(n.id))},K=n=>({label:l("consumer_groups.actions.view"),to:r.config.getViewRoute(n)}),m=n=>({label:l("consumer_groups.actions.edit"),to:r.config.getEditRoute(n)}),y=e.ref(void 0),d=e.ref(!1),h=e.ref(!1),G=e.ref(""),j=f.useDeleteUrlBuilder(r.config,O.value),te=n=>{y.value=n,d.value=!0},ie=()=>{d.value=!1},ae=async()=>{var n,p,C;if((n=y.value)!=null&&n.id){h.value=!0;try{await I.delete(j(y.value.id)),h.value=!1,d.value=!1,B.value++,c("delete:success",y.value)}catch(k){G.value=((C=(p=k.response)==null?void 0:p.data)==null?void 0:C.message)||k.message||l("consumer_groups.errors.delete"),c("error",k)}finally{h.value=!1}}},W=e.ref(!1),re=()=>{W.value=!0},t=()=>{W.value=!1},a=(n,p)=>{p||t(),B.value++,c("add:success",n)},b=()=>{E.value&&re()},i=e.ref(void 0),u=e.ref(!1),N=e.ref(""),F=n=>{i.value=n,u.value=!0},w=()=>{u.value=!1,i.value=void 0},H=e.computed(()=>{var p,C,k,q;let n=`${r.config.apiBaseUrl}${U.list[r.config.app].oneForConsumer}`;return r.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((p=r.config)==null?void 0:p.controlPlaneId)||"").replace(/{consumerId}/gi,((C=r.config)==null?void 0:C.consumerId)||""):r.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(k=r.config)!=null&&k.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,((q=r.config)==null?void 0:q.consumerId)||"")),n}),ne=e.ref(!1),Te=async()=>{if(i.value){ne.value=!0;try{const n=H.value.replace(/{consumerGroupId}/gi,i.value.id);await I.delete(n),c("remove:success",i.value),w(),B.value++}catch(n){N.value=n.message||l("consumer_groups.errors.delete"),c("error",n)}finally{ne.value=!1}}};e.watch(P,n=>{var p,C,k;if(n.status===f.FetcherStatus.Error){R.value={title:l("consumer_groups.errors.general")},(k=(C=(p=n.error)==null?void 0:p.response)==null?void 0:C.data)!=null&&k.message&&(R.value.message=n.error.response.data.message),c("error",n.error);return}R.value=null});const le=e.ref({ctaPath:E.value?void 0:r.config.createRoute,ctaText:void 0,message:`${l("consumer_groups.list.empty_state.description")}${r.config.additionMessageForEmptyState?` ${r.config.additionMessageForEmptyState}`:""}`,title:l("consumer_groups.title")});return e.onBeforeMount(async()=>{await r.canCreate()&&(le.value.title=E.value?l("consumer_groups.list.empty_state.title_for_consumer"):l("consumer_groups.list.empty_state.title"),le.value.ctaText=E.value?l("consumer_groups.actions.add_to_group"):l("consumer_groups.actions.create"))}),(n,p)=>{const C=e.resolveComponent("KButton"),k=e.resolveComponent("KDropdownItem"),q=e.resolveComponent("KClipboardProvider"),De=e.resolveComponent("KPrompt");return e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(e.unref(f.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-pagination":E.value&&!o.config.paginatedEndpoint,"disable-sorting":z.value,"empty-state-options":le.value,"enable-entity-actions":"","error-message":R.value,fetcher:e.unref(v),"fetcher-cache-key":e.unref(B),"pagination-type":"offset","preferences-storage-key":L.value,query:V.value,"row-attributes":Y,"table-headers":e.unref(X),onClearSearchInput:x,"onClick:row":p[2]||(p[2]=_=>J(_)),onEmptyStateCtaClicked:b,onSort:ee},{"toolbar-filter":e.withCtx(()=>[E.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(f.EntityFilter),{key:0,modelValue:V.value,"onUpdate:modelValue":p[0]||(p[0]=_=>V.value=_),config:Z.value},null,8,["modelValue","config"]))]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(C,{appearance:"primary","data-testid":"toolbar-add-consumer-group",size:o.useActionOutside?"medium":"large",to:o.config.consumerId?void 0:o.config.createRoute,onClick:p[1]||(p[1]=()=>o.config.consumerId?re():void 0)},{default:e.withCtx(()=>[e.createVNode(e.unref(fe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(o.config.consumerId?e.unref(l)("consumer_groups.actions.add_to_group"):e.unref(l)("consumer_groups.list.toolbar_actions.new_consumer_group")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:_})=>[e.createElementVNode("b",null,e.toDisplayString(_??"-"),1)]),consumers_count:e.withCtx(({rowValue:_})=>[e.createTextVNode(e.toDisplayString(_??"-"),1)]),tags:e.withCtx(({rowValue:_})=>[e.createVNode(e.unref(f.TableTags),{tags:_},null,8,["tags"])]),actions:e.withCtx(({row:_})=>[e.createVNode(q,null,{default:e.withCtx(({copyToClipboard:ue})=>[e.createVNode(k,{"data-testid":"action-entity-copy-id",onClick:Ae=>oe(_,ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("consumer_groups.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(q,null,{default:e.withCtx(({copyToClipboard:ue})=>[e.createVNode(k,{"data-testid":"action-entity-copy-json",onClick:Ae=>M(_,ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("consumer_groups.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(_)},{default:e.withCtx(()=>[e.createVNode(k,{"data-testid":"action-entity-view","has-divider":"",item:K(_.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canEdit(_)},{default:e.withCtx(()=>[e.createVNode(k,{"data-testid":"action-entity-edit",item:m(_.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>o.canDelete(_)},{default:e.withCtx(()=>[e.createVNode(k,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:()=>o.config.consumerId?F(_):te(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.config.consumerId?e.unref(l)("consumer_groups.actions.exit"):e.unref(l)("consumer_groups.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-pagination","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","preferences-storage-key","query","table-headers"]),e.createVNode(e.unref(f.EntityDeleteModal),{"action-pending":h.value,"data-testid":"delete-consumer-group-modal",description:e.unref(l)("consumer_groups.delete.description"),"entity-name":y.value&&(y.value.name||y.value.id),"entity-type":e.unref(f.EntityTypes).ConsumerGroup,error:G.value,title:e.unref(l)("consumer_groups.delete.title"),visible:d.value,onCancel:ie,onProceed:ae},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"]),o.config.consumerId?(e.openBlock(),e.createBlock(we,{key:0,config:o.config,"data-testid":"add-to-group-modal",visible:W.value,"onAdd:partialSuccess":p[3]||(p[3]=_=>a(_,!0)),"onAdd:success":p[4]||(p[4]=_=>a(_)),onCancel:t},null,8,["config","visible"])):e.createCommentVNode("",!0),o.config.consumerId&&i.value?(e.openBlock(),e.createBlock(De,{key:1,"action-button-appearance":"danger","data-testid":"exit-group-modal",title:e.unref(l)("consumer_groups.consumers.exit.title"),visible:u.value,onCancel:w,onProceed:Te},{default:e.withCtx(()=>[e.createVNode(e.unref(g),{class:"exit-modal-message",keypath:o.config.consumerUsername?"consumer_groups.consumers.exit.confirmation":"consumer_groups.consumers.exit.confirmationNoUsername",tag:"p"},e.createSlots({consumerGroup:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(i.value.name||i.value.id),1)]),_:2},[o.config.consumerUsername?{name:"consumer",fn:e.withCtx(()=>[e.createElementVNode("strong",null,e.toDisplayString(o.config.consumerUsername),1)]),key:"0"}:void 0]),1032,["keypath"]),e.createElementVNode("p",null,e.toDisplayString(e.unref(l)("consumer_groups.consumers.exit.description")),1)]),_:1},8,["title","visible"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-200ea83e"]]),Ve={class:"kong-ui-entities-consumer-group-form"},Ee={class:"select-item-container"},Ne={class:"select-item-label"},$e={key:0,class:"select-item-description"},Be=ce(e.defineComponent({__name:"ConsumerGroupForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},consumerGroupId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:S}){var ae,W,re;const c=o,r=S,{i18n:{t:g}}=se.useI18n(),l=de.useRouter(),s=e.reactive({fields:{name:"",tags:"",consumers:[]},errorMessage:"",readonly:!1}),I=e.reactive({name:"",tags:"",consumers:[]}),{debouncedQueryChange:z,loading:A,error:X,loadItems:Y,results:O}=f.useDebouncedFilter(c.config,(W=U.form[(ae=c.config)==null?void 0:ae.app])==null?void 0:W.consumersList,"",{fetchedItemsKey:"data",searchKeys:["username","custom_id","id"]}),{axiosInstance:V}=f.useAxios((re=c.config)==null?void 0:re.axiosRequestConfig),{getMessageFromError:Z}=f.useErrors(),E=f.useValidators(),L=e.computed(()=>O.value.map(t=>({label:t.username||t.custom_id,value:t.id,selected:s.fields.consumers.includes(t.id),data:t}))),Q=e.computed(()=>{var t,a;return(a=U.form[(t=c.config)==null?void 0:t.app])==null?void 0:a.edit}),v=e.computed(()=>c.consumerGroupId?f.EntityBaseFormType.Edit:f.EntityBaseFormType.Create),P=e.computed(()=>!!s.fields.name&&!J.value),B=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(I)),x=(t,a="",b="")=>{var u,N,F,w,H,ne;let i=`${(u=c.config)==null?void 0:u.apiBaseUrl}${U.form[(N=c.config)==null?void 0:N.app][t]}`;return((F=c.config)==null?void 0:F.app)==="konnect"?i=i.replace(/{controlPlaneId}/gi,((w=c.config)==null?void 0:w.controlPlaneId)||""):((H=c.config)==null?void 0:H.app)==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(ne=c.config)!=null&&ne.workspace?`/${c.config.workspace}`:"")),i=i.replace(/{id}/gi,a||c.consumerGroupId),(t==="addConsumer"||t==="removeConsumer")&&(i=i.replace(/{consumerId}/gi,b)),i},ee=()=>{var t;l.push(((t=c.config)==null?void 0:t.cancelRoute)||{name:"consumer-group-list"})},R=t=>{r("error",t)},oe=t=>{r("loading",t)},M=async t=>{var b,i,u,N,F;s.fields.name=((b=t==null?void 0:t.item)==null?void 0:b.name)||((i=t==null?void 0:t.consumer_group)==null?void 0:i.name)||(t==null?void 0:t.name)||"";const a=((u=t==null?void 0:t.item)==null?void 0:u.tags)||(t==null?void 0:t.consumer_group.tags)||(t==null?void 0:t.tags)||[];if(s.fields.tags=(a==null?void 0:a.join(", "))||"","consumers"in t)s.fields.consumers=((N=t==null?void 0:t.consumers)==null?void 0:N.map(w=>w.id))||[];else try{const{data:w}=await V.get(x("getConsumers"));s.fields.consumers="consumers"in w?(F=w==null?void 0:w.consumers)==null?void 0:F.map(H=>H.id):[]}catch(w){d(w)}Object.assign(I,s.fields)},J=e.computed(()=>E.utf8Name(s.fields.name)),K=e.computed(()=>{var t,a;return{name:s.fields.name,tags:(a=(t=s.fields.tags.split(","))==null?void 0:t.map(b=>String(b||"").trim()))==null?void 0:a.filter(b=>b!=="")}}),m=async(t,a="")=>await V.post(x("addConsumer",a,t),{consumer:t}),y=async(t,a="")=>await V.delete(x("removeConsumer",a,t)),d=t=>{s.errorMessage=Z(t),r("error",t)},h=(t=c.consumerGroupId)=>{Object.assign(I,s.fields),r("update",{...s.fields,id:t})},G=(t,a,b=c.consumerGroupId)=>{const i=t==null?void 0:t.find(u=>u.status!=="fulfilled");i?d({code:i.status,message:a}):h(b)},j=async()=>{let t="";try{const{data:a}=await V.post(x("create"),K.value);t="item"in a?a.item.id:a.id}catch(a){d(a)}if(s.fields.consumers.length>0&&t)try{const a=s.fields.consumers.map(i=>m(i,t)),b=await Promise.allSettled(a);G(b,g("consumer_groups.errors.add_consumer"),t)}catch(a){d(a)}else s.fields.consumers.length===0&&t&&h(t)},te=async()=>{var b;try{((b=c.config)==null?void 0:b.app)==="konnect"?await V.put(x("edit"),K.value):await V.patch(x("edit"),K.value)}catch(i){d(i)}const t=s.fields.consumers.filter(i=>!I.consumers.includes(i)),a=I.consumers.filter(i=>!s.fields.consumers.includes(i));if(a.length===0&&t.length===0)h();else{if(a.length>0)try{const i=a.map(N=>y(N)),u=await Promise.allSettled(i);G(u,g("consumer_groups.errors.remove_consumer"))}catch(i){d(i)}if(t.length>0)try{const i=t.map(N=>m(N)),u=await Promise.allSettled(i);G(u,g("consumer_groups.errors.add_consumer"))}catch(i){d(i)}}},ie=async()=>{try{s.readonly=!0,v.value===f.EntityBaseFormType.Create?await j():await te()}finally{s.readonly=!1}};return e.onBeforeMount(async()=>{await Y()}),(t,a)=>{const b=e.resolveComponent("KInput"),i=e.resolveComponent("KMultiselect");return e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(e.unref(f.EntityBaseForm),{"can-submit":P.value&&B.value,config:o.config,"edit-id":o.consumerGroupId,"entity-type":e.unref(f.SupportedEntityType).ConsumerGroup,"error-message":s.errorMessage||e.unref(X)||J.value,"fetch-url":Q.value,"form-fields":K.value,"is-readonly":s.readonly,onCancel:ee,"onFetch:error":a[3]||(a[3]=u=>R(u)),"onFetch:success":M,onLoading:a[4]||(a[4]=u=>oe(u)),onSubmit:ie},{default:e.withCtx(()=>[e.createVNode(e.unref(f.EntityFormSection),{description:e.unref(g)("consumer_groups.form.general_info.description"),title:e.unref(g)("consumer_groups.form.general_info.title")},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:s.fields.name,"onUpdate:modelValue":a[0]||(a[0]=u=>s.fields.name=u),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"consumer-group-form-name",label:e.unref(g)("consumer_groups.form.fields.name.label"),placeholder:e.unref(g)("consumer_groups.form.fields.name.placeholder"),required:"",type:"text"},null,8,["modelValue","label","placeholder"]),e.createVNode(b,{modelValue:s.fields.tags,"onUpdate:modelValue":a[1]||(a[1]=u=>s.fields.tags=u),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"consumer-group-form-tags",help:e.unref(g)("consumer_groups.form.fields.tags.help"),label:e.unref(g)("consumer_groups.form.fields.tags.label"),"label-attributes":{info:e.unref(g)("consumer_groups.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(g)("consumer_groups.form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{description:e.unref(g)("consumer_groups.form.consumers.description"),"has-divider":"",title:e.unref(g)("consumer_groups.form.consumers.title")},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:s.fields.consumers,"onUpdate:modelValue":a[2]||(a[2]=u=>s.fields.consumers=u),appearance:"select",autosuggest:"",items:L.value,label:e.unref(g)("consumer_groups.form.fields.consumers.label"),loading:e.unref(A),placeholder:e.unref(g)("consumer_groups.form.fields.consumers.placeholder"),width:"auto",onQueryChange:e.unref(z)},{"item-template":e.withCtx(({item:u})=>{var N,F,w;return[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ne,e.toDisplayString(u.label),1),(N=u==null?void 0:u.data)!=null&&N.username&&((F=u==null?void 0:u.data)!=null&&F.custom_id)?(e.openBlock(),e.createElementBlock("div",$e,e.toDisplayString((w=u==null?void 0:u.data)==null?void 0:w.custom_id),1)):e.createCommentVNode("",!0)])]}),_:1},8,["modelValue","items","label","loading","placeholder","onQueryChange"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-dfa56d62"]]),Me={class:"kong-ui-consumer-group-entity-config-card"},Ge=e.defineComponent({__name:"ConsumerGroupConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const S=o,{i18n:{t:c}}=se.useI18n(),r=e.computed(()=>U.form[S.config.app].edit),g=e.ref({id:{},name:{},created_at:{},updated_at:{},tags:{tooltip:c("consumer_groups.form.fields.tags.tooltip")}});return(l,s)=>(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(f.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":g.value,"data-key":"consumer_group","entity-type":e.unref(f.SupportedEntityType).ConsumerGroup,"fetch-url":r.value,"hide-title":o.hideTitle,"onFetch:error":s[0]||(s[0]=I=>l.$emit("fetch:error",I)),"onFetch:success":s[1]||(s[1]=I=>l.$emit("fetch:success",I)),onLoading:s[2]||(s[2]=I=>l.$emit("loading",I))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});$.ConsumerGroupConfigCard=Ge,$.ConsumerGroupForm=Be,$.ConsumerGroupList=xe,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499e74da]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-499e74da]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-add-to-groups-modal .add-to-group-cta-text[data-v-4260ce03]{margin-top:0}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container[data-v-4260ce03]{margin-bottom:20px}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container .kong-ui-entity-add-to-groups-error[data-v-4260ce03]{margin-top:16px}.kong-ui-entities-consumer-groups-list[data-v-7f3c37dc]{width:100%}.kong-ui-entities-consumer-groups-list .kong-ui-entity-filter-input[data-v-7f3c37dc]{margin-right:12px}.kong-ui-entities-consumer-groups-list .exit-modal-message[data-v-7f3c37dc]{margin-top:0}.kong-ui-entities-consumer-group-form[data-v-dfa56d62]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-group-form[data-v-dfa56d62] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-group-form .select-item-container .select-item-label[data-v-dfa56d62]{font-weight:600}.kong-ui-entities-consumer-group-form .select-item-container .select-item-description[data-v-dfa56d62]{color:#6c7489;font-size:12px}
|
|
1
|
+
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-6f28b73b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-6f28b73b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-add-to-groups-modal .add-to-group-cta-text[data-v-4260ce03]{margin-top:0}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container[data-v-4260ce03]{margin-bottom:20px}.kong-ui-entities-add-to-groups-modal .add-to-group-form-container .kong-ui-entity-add-to-groups-error[data-v-4260ce03]{margin-top:16px}.kong-ui-entities-consumer-groups-list[data-v-200ea83e]{width:100%}.kong-ui-entities-consumer-groups-list .kong-ui-entity-filter-input[data-v-200ea83e]{margin-right:12px}.kong-ui-entities-consumer-groups-list .exit-modal-message[data-v-200ea83e]{margin-top:0}.kong-ui-entities-consumer-group-form[data-v-dfa56d62]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-consumer-group-form[data-v-dfa56d62] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-consumer-group-form .select-item-container .select-item-label[data-v-dfa56d62]{font-weight:600}.kong-ui-entities-consumer-group-form .select-item-container .select-item-description[data-v-dfa56d62]{color:#6c7489;font-size:12px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumerGroupList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerGroupList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsumerGroupList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerGroupList.vue"],"names":[],"mappings":"AAwmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBvC,OAAO,KAAK,EACV,kCAAkC,EAClC,8BAA8B,EAC9B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAQjB,OAAO,gDAAgD,CAAA;;IAuhCrD,oHAAoH;;cAElG,QAAQ,CAAC,8BAA8B,GAAG,kCAAkC,CAAC;;4BAEzE,8BAA8B,GAAG,kCAAkC,KAAG,OAAO;;;;;;IAYnG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,8BAA8B,GAAG,kCAAkC,CAAC;;4BAEzE,8BAA8B,GAAG,kCAAkC,KAAG,OAAO;;;;;;IAYnG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAlD7E,wBA4DG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumer-groups",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.58",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumer-groups.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumer-groups.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.10.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.10.17",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.2.10"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/
|
|
40
|
-
"@kong-ui-public/
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.10.17",
|
|
40
|
+
"@kong-ui-public/i18n": "^2.2.10"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|