@kong-ui-public/entities-consumer-credentials 3.4.15 → 3.4.17
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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AddIcon as
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { useAxios as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as te, ref as y, computed as B, watch as ae, onBeforeMount as ne, resolveComponent as T, openBlock as b, createElementBlock as le, createVNode as c, unref as r, withCtx as n, createBlock as k, Teleport as ie, withDirectives as ce, createTextVNode as g, toDisplayString as u, vShow as re, createElementVNode as j, createCommentVNode as D } from "vue";
|
|
2
|
+
import { AddIcon as se } from "@kong/icons";
|
|
3
|
+
import { createI18n as oe, i18nTComponent as de } from "@kong-ui-public/i18n";
|
|
4
|
+
import { useAxios as ue, useFetcher as he, useDeleteUrlBuilder as pe, EntityTypes as ye, FetcherStatus as F, EntityBaseTable as ge, PermissionsWrapper as M, TableTags as fe, EntityDeleteModal as me } from "@kong-ui-public/entities-shared";
|
|
5
|
+
const Ce = {
|
|
6
6
|
title: "Consumer Credentials",
|
|
7
7
|
list: {
|
|
8
8
|
toolbar_actions: {
|
|
@@ -143,25 +143,25 @@ const ve = {
|
|
|
143
143
|
success: "Copied {val} to clipboard",
|
|
144
144
|
success_brief: "Successfully copied to clipboard"
|
|
145
145
|
}
|
|
146
|
-
},
|
|
147
|
-
credentials:
|
|
146
|
+
}, be = {
|
|
147
|
+
credentials: Ce
|
|
148
148
|
};
|
|
149
|
-
function
|
|
150
|
-
const l =
|
|
149
|
+
function _e() {
|
|
150
|
+
const l = oe("en-us", be);
|
|
151
151
|
return {
|
|
152
152
|
i18n: l,
|
|
153
|
-
i18nT:
|
|
153
|
+
i18nT: de(l)
|
|
154
154
|
// Translation component <i18n-t>
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
useI18n:
|
|
159
|
-
},
|
|
157
|
+
const ke = {
|
|
158
|
+
useI18n: _e
|
|
159
|
+
}, ve = {
|
|
160
160
|
list: {
|
|
161
161
|
konnect: "/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",
|
|
162
162
|
kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, we = { class: "kong-ui-entities-consumer-credentials-list" }, Ae = /* @__PURE__ */ te({
|
|
165
165
|
__name: "ConsumerCredentialList",
|
|
166
166
|
props: {
|
|
167
167
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -201,8 +201,8 @@ const Ne = {
|
|
|
201
201
|
},
|
|
202
202
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
203
203
|
setup(l, { emit: I }) {
|
|
204
|
-
var
|
|
205
|
-
const f = I, i = l, { i18n: { t: e, formatUnixTimeStamp:
|
|
204
|
+
var P;
|
|
205
|
+
const f = I, i = l, { i18n: { t: e, formatUnixTimeStamp: R } } = ke.useI18n(), { axiosInstance: U } = ue((P = i.config) == null ? void 0 : P.axiosRequestConfig), K = y(1), J = {
|
|
206
206
|
acls: {
|
|
207
207
|
group: { label: e("credentials.list.table_headers.acls.group") },
|
|
208
208
|
created_at: { label: e("credentials.list.table_headers.acls.created_at") },
|
|
@@ -242,108 +242,108 @@ const Ne = {
|
|
|
242
242
|
created_at: { label: e("credentials.list.table_headers.jwt.created_at") },
|
|
243
243
|
tags: { label: e("credentials.list.table_headers.jwt.tags") }
|
|
244
244
|
}
|
|
245
|
-
},
|
|
246
|
-
let t = `${i.config.apiBaseUrl}${
|
|
245
|
+
}, L = B(() => J[i.config.plugin]), S = B(() => {
|
|
246
|
+
let t = `${i.config.apiBaseUrl}${ve.list[i.config.app]}`;
|
|
247
247
|
return i.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "").replace(/{consumerId}/gi, i.config.consumerId || "").replace(/{plugin}/gi, i.config.plugin || "") : i.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "").replace(/{consumerId}/gi, i.config.consumerId || "").replace(/{plugin}/gi, i.config.plugin || "")), t;
|
|
248
|
-
}), { fetcher:
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
const
|
|
252
|
-
if (!
|
|
253
|
-
|
|
248
|
+
}), { fetcher: q, fetcherState: H } = he(i.config, S), V = () => {
|
|
249
|
+
K.value++;
|
|
250
|
+
}, v = y(null), x = y(!1), m = (t, s, p) => {
|
|
251
|
+
const o = s ? t[s] : JSON.stringify(t);
|
|
252
|
+
if (!p(o)) {
|
|
253
|
+
z(t, s);
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
|
-
|
|
257
|
-
},
|
|
256
|
+
W(t, s);
|
|
257
|
+
}, W = (t, s) => {
|
|
258
258
|
f("copy:success", {
|
|
259
259
|
entity: t,
|
|
260
|
-
field:
|
|
261
|
-
message:
|
|
260
|
+
field: s,
|
|
261
|
+
message: s && !["password", "key", "client_secret", "secret"].includes(s) ? e("credentials.copy.success", { val: t[s] }) : e("credentials.copy.success_brief")
|
|
262
262
|
});
|
|
263
|
-
},
|
|
263
|
+
}, z = (t, s) => {
|
|
264
264
|
f("copy:error", {
|
|
265
265
|
entity: t,
|
|
266
|
-
field:
|
|
266
|
+
field: s,
|
|
267
267
|
message: e("credentials.error.copy")
|
|
268
268
|
});
|
|
269
|
-
},
|
|
269
|
+
}, G = (t) => ({
|
|
270
270
|
label: e("credentials.actions.edit"),
|
|
271
271
|
to: i.config.getEditRoute(t)
|
|
272
|
-
}),
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
var t,
|
|
278
|
-
if ((t =
|
|
279
|
-
|
|
272
|
+
}), w = y(void 0), A = y(!1), N = y(!1), $ = y(""), Q = pe(i.config, S.value), X = B(() => ye[i.config.plugin]), Y = (t) => {
|
|
273
|
+
w.value = t, A.value = !0;
|
|
274
|
+
}, Z = () => {
|
|
275
|
+
A.value = !1;
|
|
276
|
+
}, ee = async () => {
|
|
277
|
+
var t, s, p;
|
|
278
|
+
if ((t = w.value) != null && t.id) {
|
|
279
|
+
N.value = !0;
|
|
280
280
|
try {
|
|
281
|
-
await
|
|
282
|
-
} catch (
|
|
283
|
-
|
|
281
|
+
await U.delete(Q(w.value.id)), N.value = !1, A.value = !1, K.value++, f("delete:success", w.value);
|
|
282
|
+
} catch (o) {
|
|
283
|
+
$.value = ((p = (s = o.response) == null ? void 0 : s.data) == null ? void 0 : p.message) || o.message || e("credentials.error.delete"), f("error", o);
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
N.value = !1;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
if (Array.isArray((
|
|
292
|
-
|
|
288
|
+
}, O = y(!1);
|
|
289
|
+
ae(H, (t) => {
|
|
290
|
+
var s, p, o, h;
|
|
291
|
+
if (Array.isArray((s = t == null ? void 0 : t.response) == null ? void 0 : s.data) && (O.value = t.response.data.length > 0), t.status === F.NoRecords ? x.value = !0 : x.value = !1, t.status === F.Error) {
|
|
292
|
+
v.value = {
|
|
293
293
|
title: e("credentials.error.general")
|
|
294
|
-
}, (
|
|
294
|
+
}, (h = (o = (p = t.error) == null ? void 0 : p.response) == null ? void 0 : o.data) != null && h.message && (v.value.message = t.error.response.data.message), f("error", t.error);
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
|
-
|
|
297
|
+
v.value = null;
|
|
298
298
|
});
|
|
299
|
-
const
|
|
299
|
+
const E = y({
|
|
300
300
|
ctaPath: i.config.createRoute,
|
|
301
301
|
ctaText: void 0,
|
|
302
302
|
message: "",
|
|
303
303
|
title: e("credentials.title")
|
|
304
304
|
});
|
|
305
|
-
return
|
|
306
|
-
await i.canCreate() && (
|
|
307
|
-
}), (t,
|
|
308
|
-
const
|
|
309
|
-
return
|
|
310
|
-
c(
|
|
305
|
+
return ne(async () => {
|
|
306
|
+
await i.canCreate() && (E.value.title = e(`credentials.list.empty_state.${i.config.plugin}.title`), E.value.ctaText = e(`credentials.list.empty_state.${i.config.plugin}.cta`));
|
|
307
|
+
}), (t, s) => {
|
|
308
|
+
const p = T("KButton"), o = T("KCopy"), h = T("KDropdownItem"), C = T("KClipboardProvider");
|
|
309
|
+
return b(), le("div", we, [
|
|
310
|
+
c(r(ge), {
|
|
311
311
|
"cache-identifier": l.cacheIdentifier,
|
|
312
312
|
"disable-row-click": "",
|
|
313
313
|
"disable-sorting": "",
|
|
314
|
-
"empty-state-options":
|
|
314
|
+
"empty-state-options": E.value,
|
|
315
315
|
"enable-entity-actions": "",
|
|
316
|
-
"error-message":
|
|
317
|
-
fetcher:
|
|
318
|
-
"fetcher-cache-key":
|
|
319
|
-
"hide-toolbar":
|
|
316
|
+
"error-message": v.value,
|
|
317
|
+
fetcher: r(q),
|
|
318
|
+
"fetcher-cache-key": K.value,
|
|
319
|
+
"hide-toolbar": x.value,
|
|
320
320
|
"pagination-type": "offset",
|
|
321
321
|
"preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
|
|
322
|
-
"table-headers":
|
|
323
|
-
onSort:
|
|
322
|
+
"table-headers": L.value,
|
|
323
|
+
onSort: V
|
|
324
324
|
}, {
|
|
325
325
|
"toolbar-button": n(() => [
|
|
326
|
-
(
|
|
326
|
+
(b(), k(ie, {
|
|
327
327
|
disabled: !l.useActionOutside,
|
|
328
328
|
to: "#kong-ui-app-page-header-action-button"
|
|
329
329
|
}, [
|
|
330
|
-
c(
|
|
330
|
+
c(r(M), {
|
|
331
331
|
"auth-function": () => l.canCreate()
|
|
332
332
|
}, {
|
|
333
333
|
default: n(() => [
|
|
334
|
-
|
|
334
|
+
ce(c(p, {
|
|
335
335
|
appearance: "primary",
|
|
336
336
|
"data-testid": "toolbar-add-credential",
|
|
337
337
|
size: l.useActionOutside ? "medium" : "large",
|
|
338
338
|
to: l.config.createRoute
|
|
339
339
|
}, {
|
|
340
340
|
default: n(() => [
|
|
341
|
-
c(
|
|
342
|
-
|
|
341
|
+
c(r(se)),
|
|
342
|
+
g(" " + u(r(e)(`credentials.list.toolbar_actions.${l.config.plugin}.new`)), 1)
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
345
|
}, 8, ["size", "to"]), [
|
|
346
|
-
[
|
|
346
|
+
[re, O.value]
|
|
347
347
|
])
|
|
348
348
|
]),
|
|
349
349
|
_: 1
|
|
@@ -351,171 +351,157 @@ const Ne = {
|
|
|
351
351
|
], 8, ["disabled"]))
|
|
352
352
|
]),
|
|
353
353
|
group: n(({ rowValue: a }) => [
|
|
354
|
-
|
|
354
|
+
j("b", null, u(a ?? "-"), 1)
|
|
355
355
|
]),
|
|
356
356
|
name: n(({ rowValue: a }) => [
|
|
357
|
-
|
|
357
|
+
j("b", null, u(a ?? "-"), 1)
|
|
358
358
|
]),
|
|
359
359
|
username: n(({ rowValue: a }) => [
|
|
360
|
-
|
|
360
|
+
j("span", null, u(a ?? "-"), 1)
|
|
361
361
|
]),
|
|
362
362
|
password: n(({ rowValue: a }) => [
|
|
363
|
-
c(
|
|
363
|
+
c(o, {
|
|
364
364
|
format: "redacted",
|
|
365
365
|
text: a,
|
|
366
366
|
truncate: ""
|
|
367
367
|
}, null, 8, ["text"])
|
|
368
368
|
]),
|
|
369
369
|
key: n(({ rowValue: a }) => [
|
|
370
|
-
c(
|
|
370
|
+
c(o, {
|
|
371
371
|
format: "redacted",
|
|
372
372
|
text: a,
|
|
373
373
|
truncate: ""
|
|
374
374
|
}, null, 8, ["text"])
|
|
375
375
|
]),
|
|
376
376
|
client_secret: n(({ rowValue: a }) => [
|
|
377
|
-
c(
|
|
377
|
+
c(o, {
|
|
378
378
|
format: "redacted",
|
|
379
379
|
text: a,
|
|
380
380
|
truncate: ""
|
|
381
381
|
}, null, 8, ["text"])
|
|
382
382
|
]),
|
|
383
383
|
secret: n(({ rowValue: a }) => [
|
|
384
|
-
c(
|
|
384
|
+
c(o, {
|
|
385
385
|
format: "redacted",
|
|
386
386
|
text: a,
|
|
387
387
|
truncate: ""
|
|
388
388
|
}, null, 8, ["text"])
|
|
389
389
|
]),
|
|
390
390
|
created_at: n(({ rowValue: a }) => [
|
|
391
|
-
|
|
391
|
+
g(u(r(R)(a)), 1)
|
|
392
392
|
]),
|
|
393
393
|
tags: n(({ rowValue: a }) => [
|
|
394
|
-
(
|
|
395
|
-
default: n(() => [
|
|
396
|
-
(p(!0), j(de, null, ue(a, (o) => (p(), C(D, {
|
|
397
|
-
key: o,
|
|
398
|
-
onClick: r[0] || (r[0] = he(() => {
|
|
399
|
-
}, ["stop"]))
|
|
400
|
-
}, {
|
|
401
|
-
default: n(() => [
|
|
402
|
-
y(u(o), 1)
|
|
403
|
-
]),
|
|
404
|
-
_: 2
|
|
405
|
-
}, 1024))), 128))
|
|
406
|
-
]),
|
|
407
|
-
_: 2
|
|
408
|
-
}, 1024)) : (p(), j("span", Ke, "-"))
|
|
394
|
+
c(r(fe), { tags: a }, null, 8, ["tags"])
|
|
409
395
|
]),
|
|
410
396
|
actions: n(({ row: a }) => [
|
|
411
|
-
c(
|
|
412
|
-
default: n(({ copyToClipboard:
|
|
413
|
-
c(
|
|
397
|
+
c(C, null, {
|
|
398
|
+
default: n(({ copyToClipboard: d }) => [
|
|
399
|
+
c(h, {
|
|
414
400
|
"data-testid": "action-entity-copy-id",
|
|
415
|
-
onClick: (
|
|
401
|
+
onClick: (_) => m(a, "id", d)
|
|
416
402
|
}, {
|
|
417
403
|
default: n(() => [
|
|
418
|
-
|
|
404
|
+
g(u(r(e)("credentials.actions.copy_id")), 1)
|
|
419
405
|
]),
|
|
420
406
|
_: 2
|
|
421
407
|
}, 1032, ["onClick"])
|
|
422
408
|
]),
|
|
423
409
|
_: 2
|
|
424
410
|
}, 1024),
|
|
425
|
-
l.config.plugin === "basic-auth" ? (
|
|
426
|
-
default: n(({ copyToClipboard:
|
|
427
|
-
c(
|
|
411
|
+
l.config.plugin === "basic-auth" ? (b(), k(C, { key: 0 }, {
|
|
412
|
+
default: n(({ copyToClipboard: d }) => [
|
|
413
|
+
c(h, {
|
|
428
414
|
"data-testid": "action-entity-copy-credential",
|
|
429
|
-
onClick: (
|
|
415
|
+
onClick: (_) => m(a, "password", d)
|
|
430
416
|
}, {
|
|
431
417
|
default: n(() => [
|
|
432
|
-
|
|
418
|
+
g(u(r(e)("credentials.actions.copy_credential")), 1)
|
|
433
419
|
]),
|
|
434
420
|
_: 2
|
|
435
421
|
}, 1032, ["onClick"])
|
|
436
422
|
]),
|
|
437
423
|
_: 2
|
|
438
|
-
}, 1024)) :
|
|
439
|
-
["key-auth", "key-auth-enc", "jwt"].includes(l.config.plugin) ? (
|
|
440
|
-
default: n(({ copyToClipboard:
|
|
441
|
-
c(
|
|
424
|
+
}, 1024)) : D("", !0),
|
|
425
|
+
["key-auth", "key-auth-enc", "jwt"].includes(l.config.plugin) ? (b(), k(C, { key: 1 }, {
|
|
426
|
+
default: n(({ copyToClipboard: d }) => [
|
|
427
|
+
c(h, {
|
|
442
428
|
"data-testid": "action-entity-copy-key",
|
|
443
|
-
onClick: (
|
|
429
|
+
onClick: (_) => m(a, "key", d)
|
|
444
430
|
}, {
|
|
445
431
|
default: n(() => [
|
|
446
|
-
|
|
432
|
+
g(u(r(e)("credentials.actions.copy_key")), 1)
|
|
447
433
|
]),
|
|
448
434
|
_: 2
|
|
449
435
|
}, 1032, ["onClick"])
|
|
450
436
|
]),
|
|
451
437
|
_: 2
|
|
452
|
-
}, 1024)) :
|
|
453
|
-
l.config.plugin === "oauth2" ? (
|
|
454
|
-
default: n(({ copyToClipboard:
|
|
455
|
-
c(
|
|
438
|
+
}, 1024)) : D("", !0),
|
|
439
|
+
l.config.plugin === "oauth2" ? (b(), k(C, { key: 2 }, {
|
|
440
|
+
default: n(({ copyToClipboard: d }) => [
|
|
441
|
+
c(h, {
|
|
456
442
|
"data-testid": "action-entity-copy-secret",
|
|
457
|
-
onClick: (
|
|
443
|
+
onClick: (_) => m(a, "client_secret", d)
|
|
458
444
|
}, {
|
|
459
445
|
default: n(() => [
|
|
460
|
-
|
|
446
|
+
g(u(r(e)("credentials.actions.copy_secret")), 1)
|
|
461
447
|
]),
|
|
462
448
|
_: 2
|
|
463
449
|
}, 1032, ["onClick"])
|
|
464
450
|
]),
|
|
465
451
|
_: 2
|
|
466
|
-
}, 1024)) :
|
|
467
|
-
l.config.plugin === "hmac-auth" ? (
|
|
468
|
-
default: n(({ copyToClipboard:
|
|
469
|
-
c(
|
|
452
|
+
}, 1024)) : D("", !0),
|
|
453
|
+
l.config.plugin === "hmac-auth" ? (b(), k(C, { key: 3 }, {
|
|
454
|
+
default: n(({ copyToClipboard: d }) => [
|
|
455
|
+
c(h, {
|
|
470
456
|
"data-testid": "action-entity-copy-secret",
|
|
471
|
-
onClick: (
|
|
457
|
+
onClick: (_) => m(a, "secret", d)
|
|
472
458
|
}, {
|
|
473
459
|
default: n(() => [
|
|
474
|
-
|
|
460
|
+
g(u(r(e)("credentials.actions.copy_secret")), 1)
|
|
475
461
|
]),
|
|
476
462
|
_: 2
|
|
477
463
|
}, 1032, ["onClick"])
|
|
478
464
|
]),
|
|
479
465
|
_: 2
|
|
480
|
-
}, 1024)) :
|
|
481
|
-
c(
|
|
482
|
-
default: n(({ copyToClipboard:
|
|
483
|
-
c(
|
|
466
|
+
}, 1024)) : D("", !0),
|
|
467
|
+
c(C, null, {
|
|
468
|
+
default: n(({ copyToClipboard: d }) => [
|
|
469
|
+
c(h, {
|
|
484
470
|
"data-testid": "action-entity-copy-json",
|
|
485
|
-
onClick: (
|
|
471
|
+
onClick: (_) => m(a, void 0, d)
|
|
486
472
|
}, {
|
|
487
473
|
default: n(() => [
|
|
488
|
-
|
|
474
|
+
g(u(r(e)("credentials.actions.copy_json")), 1)
|
|
489
475
|
]),
|
|
490
476
|
_: 2
|
|
491
477
|
}, 1032, ["onClick"])
|
|
492
478
|
]),
|
|
493
479
|
_: 2
|
|
494
480
|
}, 1024),
|
|
495
|
-
c(
|
|
481
|
+
c(r(M), {
|
|
496
482
|
"auth-function": () => l.canEdit(a)
|
|
497
483
|
}, {
|
|
498
484
|
default: n(() => [
|
|
499
|
-
c(
|
|
485
|
+
c(h, {
|
|
500
486
|
"data-testid": "action-entity-edit",
|
|
501
487
|
"has-divider": "",
|
|
502
|
-
item:
|
|
488
|
+
item: G(a.id)
|
|
503
489
|
}, null, 8, ["item"])
|
|
504
490
|
]),
|
|
505
491
|
_: 2
|
|
506
492
|
}, 1032, ["auth-function"]),
|
|
507
|
-
c(
|
|
493
|
+
c(r(M), {
|
|
508
494
|
"auth-function": () => l.canDelete(a)
|
|
509
495
|
}, {
|
|
510
496
|
default: n(() => [
|
|
511
|
-
c(
|
|
497
|
+
c(h, {
|
|
512
498
|
danger: "",
|
|
513
499
|
"data-testid": "action-entity-delete",
|
|
514
500
|
"has-divider": "",
|
|
515
|
-
onClick: (
|
|
501
|
+
onClick: (d) => Y(a)
|
|
516
502
|
}, {
|
|
517
503
|
default: n(() => [
|
|
518
|
-
|
|
504
|
+
g(u(r(e)("credentials.actions.delete")), 1)
|
|
519
505
|
]),
|
|
520
506
|
_: 2
|
|
521
507
|
}, 1032, ["onClick"])
|
|
@@ -525,25 +511,25 @@ const Ne = {
|
|
|
525
511
|
]),
|
|
526
512
|
_: 1
|
|
527
513
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "table-headers"]),
|
|
528
|
-
c(
|
|
529
|
-
"action-pending":
|
|
530
|
-
description:
|
|
531
|
-
"entity-type":
|
|
532
|
-
error:
|
|
533
|
-
title:
|
|
534
|
-
visible:
|
|
535
|
-
onCancel:
|
|
536
|
-
onProceed:
|
|
514
|
+
c(r(me), {
|
|
515
|
+
"action-pending": N.value,
|
|
516
|
+
description: r(e)("credentials.delete.description"),
|
|
517
|
+
"entity-type": X.value,
|
|
518
|
+
error: $.value,
|
|
519
|
+
title: r(e)(`credentials.delete.${l.config.plugin}.title`),
|
|
520
|
+
visible: A.value,
|
|
521
|
+
onCancel: Z,
|
|
522
|
+
onProceed: ee
|
|
537
523
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
|
|
538
524
|
]);
|
|
539
525
|
};
|
|
540
526
|
}
|
|
541
|
-
}),
|
|
527
|
+
}), Ne = (l, I) => {
|
|
542
528
|
const f = l.__vccOpts || l;
|
|
543
529
|
for (const [i, e] of I)
|
|
544
530
|
f[i] = e;
|
|
545
531
|
return f;
|
|
546
|
-
},
|
|
532
|
+
}, xe = /* @__PURE__ */ Ne(Ae, [["__scopeId", "data-v-ca4cbbc4"]]);
|
|
547
533
|
export {
|
|
548
|
-
|
|
534
|
+
xe as ConsumerCredentialList
|
|
549
535
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d["kong-ui-public-entities-consumer-credentials"]={},d.Vue,d.KongIcons,d["kong-ui-public-i18n"],d["kong-ui-public-entities-shared"]))})(this,function(d,e,E,D,s){"use strict";const I={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function S(){const r=D.createI18n("en-us",I);return{i18n:r,i18nT:D.i18nTComponent(r)}}const j={useI18n:S},M={list:{konnect:"/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}},$={class:"kong-ui-entities-consumer-credentials-list"},O={key:1},P=((r,w)=>{const p=r.__vccOpts||r;for(const[i,t]of w)p[i]=t;return p})(e.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getEditRoute)},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},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(r,{emit:w}){var K;const p=w,i=r,{i18n:{t,formatUnixTimeStamp:F}}=j.useI18n(),{axiosInstance:q}=s.useAxios((K=i.config)==null?void 0:K.axiosRequestConfig),N=e.ref(1),L={acls:{group:{label:t("credentials.list.table_headers.acls.group")},created_at:{label:t("credentials.list.table_headers.acls.created_at")},tags:{label:t("credentials.list.table_headers.acls.tags")}},"basic-auth":{username:{label:t("credentials.list.table_headers.basic-auth.username")},created_at:{label:t("credentials.list.table_headers.basic-auth.created_at")},tags:{label:t("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:t("credentials.list.table_headers.key-auth.key")},created_at:{label:t("credentials.list.table_headers.key-auth.created_at")},tags:{label:t("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:t("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:t("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:t("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:t("credentials.list.table_headers.oauth2.name")},client_id:{label:t("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:t("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:t("credentials.list.table_headers.oauth2.created_at")},tags:{label:t("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:t("credentials.list.table_headers.hmac-auth.username")},secret:{label:t("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:t("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:t("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:t("credentials.list.table_headers.jwt.key")},algorithm:{label:t("credentials.list.table_headers.jwt.algorithm")},created_at:{label:t("credentials.list.table_headers.jwt.created_at")},tags:{label:t("credentials.list.table_headers.jwt.tags")}}},R=e.computed(()=>L[i.config.plugin]),B=e.computed(()=>{let a=`${i.config.apiBaseUrl}${M.list[i.config.app]}`;return i.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,i.config.controlPlaneId||"").replace(/{consumerId}/gi,i.config.consumerId||"").replace(/{plugin}/gi,i.config.plugin||""):i.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,i.config.workspace?`/${i.config.workspace}`:"").replace(/{consumerId}/gi,i.config.consumerId||"").replace(/{plugin}/gi,i.config.plugin||"")),a}),{fetcher:U,fetcherState:W}=s.useFetcher(i.config,B),J=()=>{N.value++},C=e.ref(null),x=e.ref(!1),y=(a,c,u)=>{const o=c?a[c]:JSON.stringify(a);if(!u(o)){z(a,c);return}H(a,c)},H=(a,c)=>{p("copy:success",{entity:a,field:c,message:c&&!["password","key","client_secret","secret"].includes(c)?t("credentials.copy.success",{val:a[c]}):t("credentials.copy.success_brief")})},z=(a,c)=>{p("copy:error",{entity:a,field:c,message:t("credentials.error.copy")})},G=a=>({label:t("credentials.actions.edit"),to:i.config.getEditRoute(a)}),m=e.ref(void 0),b=e.ref(!1),k=e.ref(!1),V=e.ref(""),Q=s.useDeleteUrlBuilder(i.config,B.value),X=e.computed(()=>s.EntityTypes[i.config.plugin]),Y=a=>{m.value=a,b.value=!0},Z=()=>{b.value=!1},v=async()=>{var a,c,u;if((a=m.value)!=null&&a.id){k.value=!0;try{await q.delete(Q(m.value.id)),k.value=!1,b.value=!1,N.value++,p("delete:success",m.value)}catch(o){V.value=((u=(c=o.response)==null?void 0:c.data)==null?void 0:u.message)||o.message||t("credentials.error.delete"),p("error",o)}finally{k.value=!1}}},A=e.ref(!1);e.watch(W,a=>{var c,u,o,_;if(Array.isArray((c=a==null?void 0:a.response)==null?void 0:c.data)&&(A.value=a.response.data.length>0),a.status===s.FetcherStatus.NoRecords?x.value=!0:x.value=!1,a.status===s.FetcherStatus.Error){C.value={title:t("credentials.error.general")},(_=(o=(u=a.error)==null?void 0:u.response)==null?void 0:o.data)!=null&&_.message&&(C.value.message=a.error.response.data.message),p("error",a.error);return}C.value=null});const T=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:"",title:t("credentials.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(T.value.title=t(`credentials.list.empty_state.${i.config.plugin}.title`),T.value.ctaText=t(`credentials.list.empty_state.${i.config.plugin}.cta`))}),(a,c)=>{const u=e.resolveComponent("KButton"),o=e.resolveComponent("KCopy"),_=e.resolveComponent("KBadge"),ee=e.resolveComponent("KTruncate"),h=e.resolveComponent("KDropdownItem"),f=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",$,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-row-click":"","disable-sorting":"","empty-state-options":T.value,"enable-entity-actions":"","error-message":C.value,fetcher:e.unref(U),"fetcher-cache-key":N.value,"hide-toolbar":x.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":R.value,onSort:J},{"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(u,{appearance:"primary","data-testid":"toolbar-add-credential",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(E.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)(`credentials.list.toolbar_actions.${r.config.plugin}.new`)),1)]),_:1},8,["size","to"]),[[e.vShow,A.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:e.withCtx(({rowValue:n})=>[e.createElementVNode("b",null,e.toDisplayString(n??"-"),1)]),name:e.withCtx(({rowValue:n})=>[e.createElementVNode("b",null,e.toDisplayString(n??"-"),1)]),username:e.withCtx(({rowValue:n})=>[e.createElementVNode("span",null,e.toDisplayString(n??"-"),1)]),password:e.withCtx(({rowValue:n})=>[e.createVNode(o,{format:"redacted",text:n,truncate:""},null,8,["text"])]),key:e.withCtx(({rowValue:n})=>[e.createVNode(o,{format:"redacted",text:n,truncate:""},null,8,["text"])]),client_secret:e.withCtx(({rowValue:n})=>[e.createVNode(o,{format:"redacted",text:n,truncate:""},null,8,["text"])]),secret:e.withCtx(({rowValue:n})=>[e.createVNode(o,{format:"redacted",text:n,truncate:""},null,8,["text"])]),created_at:e.withCtx(({rowValue:n})=>[e.createTextVNode(e.toDisplayString(e.unref(F)(n)),1)]),tags:e.withCtx(({rowValue:n})=>[(n==null?void 0:n.length)>0?(e.openBlock(),e.createBlock(ee,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,l=>(e.openBlock(),e.createBlock(_,{key:l,onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",O,"-"))]),actions:e.withCtx(({row:n})=>[e.createVNode(f,null,{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-id",onClick:g=>y(n,"id",l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),r.config.plugin==="basic-auth"?(e.openBlock(),e.createBlock(f,{key:0},{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-credential",onClick:g=>y(n,"password",l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(r.config.plugin)?(e.openBlock(),e.createBlock(f,{key:1},{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-key",onClick:g=>y(n,"key",l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),r.config.plugin==="oauth2"?(e.openBlock(),e.createBlock(f,{key:2},{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-secret",onClick:g=>y(n,"client_secret",l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),r.config.plugin==="hmac-auth"?(e.openBlock(),e.createBlock(f,{key:3},{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-secret",onClick:g=>y(n,"secret",l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(f,null,{default:e.withCtx(({copyToClipboard:l})=>[e.createVNode(h,{"data-testid":"action-entity-copy-json",onClick:g=>y(n,void 0,l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canEdit(n)},{default:e.withCtx(()=>[e.createVNode(h,{"data-testid":"action-entity-edit","has-divider":"",item:G(n.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canDelete(n)},{default:e.withCtx(()=>[e.createVNode(h,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:l=>Y(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","table-headers"]),e.createVNode(e.unref(s.EntityDeleteModal),{"action-pending":k.value,description:e.unref(t)("credentials.delete.description"),"entity-type":X.value,error:V.value,title:e.unref(t)(`credentials.delete.${r.config.plugin}.title`),visible:b.value,onCancel:Z,onProceed:v},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-0a912907"]]);d.ConsumerCredentialList=P,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u["kong-ui-public-entities-consumer-credentials"]={},u.Vue,u.KongIcons,u["kong-ui-public-i18n"],u["kong-ui-public-entities-shared"]))})(this,function(u,e,I,V,s){"use strict";const K={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function E(){const r=V.createI18n("en-us",K);return{i18n:r,i18nT:V.i18nTComponent(r)}}const S={useI18n:E},j={list:{konnect:"/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}},M={class:"kong-ui-entities-consumer-credentials-list"},$=((r,k)=>{const h=r.__vccOpts||r;for(const[i,t]of k)h[i]=t;return h})(e.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getEditRoute)},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},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(r,{emit:k}){var B;const h=k,i=r,{i18n:{t,formatUnixTimeStamp:O}}=S.useI18n(),{axiosInstance:P}=s.useAxios((B=i.config)==null?void 0:B.axiosRequestConfig),w=e.ref(1),q={acls:{group:{label:t("credentials.list.table_headers.acls.group")},created_at:{label:t("credentials.list.table_headers.acls.created_at")},tags:{label:t("credentials.list.table_headers.acls.tags")}},"basic-auth":{username:{label:t("credentials.list.table_headers.basic-auth.username")},created_at:{label:t("credentials.list.table_headers.basic-auth.created_at")},tags:{label:t("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:t("credentials.list.table_headers.key-auth.key")},created_at:{label:t("credentials.list.table_headers.key-auth.created_at")},tags:{label:t("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:t("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:t("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:t("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:t("credentials.list.table_headers.oauth2.name")},client_id:{label:t("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:t("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:t("credentials.list.table_headers.oauth2.created_at")},tags:{label:t("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:t("credentials.list.table_headers.hmac-auth.username")},secret:{label:t("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:t("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:t("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:t("credentials.list.table_headers.jwt.key")},algorithm:{label:t("credentials.list.table_headers.jwt.algorithm")},created_at:{label:t("credentials.list.table_headers.jwt.created_at")},tags:{label:t("credentials.list.table_headers.jwt.tags")}}},F=e.computed(()=>q[i.config.plugin]),T=e.computed(()=>{let a=`${i.config.apiBaseUrl}${j.list[i.config.app]}`;return i.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,i.config.controlPlaneId||"").replace(/{consumerId}/gi,i.config.consumerId||"").replace(/{plugin}/gi,i.config.plugin||""):i.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,i.config.workspace?`/${i.config.workspace}`:"").replace(/{consumerId}/gi,i.config.consumerId||"").replace(/{plugin}/gi,i.config.plugin||"")),a}),{fetcher:R,fetcherState:L}=s.useFetcher(i.config,T),U=()=>{w.value++},C=e.ref(null),N=e.ref(!1),y=(a,c,p)=>{const l=c?a[c]:JSON.stringify(a);if(!p(l)){J(a,c);return}W(a,c)},W=(a,c)=>{h("copy:success",{entity:a,field:c,message:c&&!["password","key","client_secret","secret"].includes(c)?t("credentials.copy.success",{val:a[c]}):t("credentials.copy.success_brief")})},J=(a,c)=>{h("copy:error",{entity:a,field:c,message:t("credentials.error.copy")})},H=a=>({label:t("credentials.actions.edit"),to:i.config.getEditRoute(a)}),m=e.ref(void 0),b=e.ref(!1),_=e.ref(!1),D=e.ref(""),z=s.useDeleteUrlBuilder(i.config,T.value),G=e.computed(()=>s.EntityTypes[i.config.plugin]),Q=a=>{m.value=a,b.value=!0},X=()=>{b.value=!1},Y=async()=>{var a,c,p;if((a=m.value)!=null&&a.id){_.value=!0;try{await P.delete(z(m.value.id)),_.value=!1,b.value=!1,w.value++,h("delete:success",m.value)}catch(l){D.value=((p=(c=l.response)==null?void 0:c.data)==null?void 0:p.message)||l.message||t("credentials.error.delete"),h("error",l)}finally{_.value=!1}}},A=e.ref(!1);e.watch(L,a=>{var c,p,l,d;if(Array.isArray((c=a==null?void 0:a.response)==null?void 0:c.data)&&(A.value=a.response.data.length>0),a.status===s.FetcherStatus.NoRecords?N.value=!0:N.value=!1,a.status===s.FetcherStatus.Error){C.value={title:t("credentials.error.general")},(d=(l=(p=a.error)==null?void 0:p.response)==null?void 0:l.data)!=null&&d.message&&(C.value.message=a.error.response.data.message),h("error",a.error);return}C.value=null});const x=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:"",title:t("credentials.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(x.value.title=t(`credentials.list.empty_state.${i.config.plugin}.title`),x.value.ctaText=t(`credentials.list.empty_state.${i.config.plugin}.cta`))}),(a,c)=>{const p=e.resolveComponent("KButton"),l=e.resolveComponent("KCopy"),d=e.resolveComponent("KDropdownItem"),f=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",M,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-row-click":"","disable-sorting":"","empty-state-options":x.value,"enable-entity-actions":"","error-message":C.value,fetcher:e.unref(R),"fetcher-cache-key":w.value,"hide-toolbar":N.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":F.value,onSort:U},{"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(p,{appearance:"primary","data-testid":"toolbar-add-credential",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(I.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)(`credentials.list.toolbar_actions.${r.config.plugin}.new`)),1)]),_:1},8,["size","to"]),[[e.vShow,A.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:e.withCtx(({rowValue:n})=>[e.createElementVNode("b",null,e.toDisplayString(n??"-"),1)]),name:e.withCtx(({rowValue:n})=>[e.createElementVNode("b",null,e.toDisplayString(n??"-"),1)]),username:e.withCtx(({rowValue:n})=>[e.createElementVNode("span",null,e.toDisplayString(n??"-"),1)]),password:e.withCtx(({rowValue:n})=>[e.createVNode(l,{format:"redacted",text:n,truncate:""},null,8,["text"])]),key:e.withCtx(({rowValue:n})=>[e.createVNode(l,{format:"redacted",text:n,truncate:""},null,8,["text"])]),client_secret:e.withCtx(({rowValue:n})=>[e.createVNode(l,{format:"redacted",text:n,truncate:""},null,8,["text"])]),secret:e.withCtx(({rowValue:n})=>[e.createVNode(l,{format:"redacted",text:n,truncate:""},null,8,["text"])]),created_at:e.withCtx(({rowValue:n})=>[e.createTextVNode(e.toDisplayString(e.unref(O)(n)),1)]),tags:e.withCtx(({rowValue:n})=>[e.createVNode(e.unref(s.TableTags),{tags:n},null,8,["tags"])]),actions:e.withCtx(({row:n})=>[e.createVNode(f,null,{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-id",onClick:g=>y(n,"id",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),r.config.plugin==="basic-auth"?(e.openBlock(),e.createBlock(f,{key:0},{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-credential",onClick:g=>y(n,"password",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(r.config.plugin)?(e.openBlock(),e.createBlock(f,{key:1},{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-key",onClick:g=>y(n,"key",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),r.config.plugin==="oauth2"?(e.openBlock(),e.createBlock(f,{key:2},{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-secret",onClick:g=>y(n,"client_secret",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),r.config.plugin==="hmac-auth"?(e.openBlock(),e.createBlock(f,{key:3},{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-secret",onClick:g=>y(n,"secret",o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(f,null,{default:e.withCtx(({copyToClipboard:o})=>[e.createVNode(d,{"data-testid":"action-entity-copy-json",onClick:g=>y(n,void 0,o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canEdit(n)},{default:e.withCtx(()=>[e.createVNode(d,{"data-testid":"action-entity-edit","has-divider":"",item:H(n.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>r.canDelete(n)},{default:e.withCtx(()=>[e.createVNode(d,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:o=>Q(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","table-headers"]),e.createVNode(e.unref(s.EntityDeleteModal),{"action-pending":_.value,description:e.unref(t)("credentials.delete.description"),"entity-type":G.value,error:D.value,title:e.unref(t)(`credentials.delete.${r.config.plugin}.title`),visible:b.value,onCancel:X,onProceed:Y},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-ca4cbbc4"]]);u.ConsumerCredentialList=$,Object.defineProperty(u,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-2fde1e51]{align-items:center;border-bottom:var(--445df5cd);display:var(--36146f00);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-2fde1e51]{width:var(--41377040)}.config-card-details-row .config-card-details-label label[data-v-2fde1e51]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-2fde1e51]{width:var(--4132e48a)}.config-card-details-row .config-card-details-value .truncated[data-v-2fde1e51]{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-2fde1e51]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-2fde1e51] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-2fde1e51]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-2fde1e51]{margin-right:4px}.config-card-details-row[data-v-2fde1e51] .k-label{margin-bottom:0}.config-card-details-row[data-v-2fde1e51] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-2fde1e51] .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-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{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-consumer-credentials-list[data-v-
|
|
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-2fde1e51]{align-items:center;border-bottom:var(--445df5cd);display:var(--36146f00);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-2fde1e51]{width:var(--41377040)}.config-card-details-row .config-card-details-label label[data-v-2fde1e51]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-2fde1e51]{width:var(--4132e48a)}.config-card-details-row .config-card-details-value .truncated[data-v-2fde1e51]{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-2fde1e51]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-2fde1e51] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-2fde1e51]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-2fde1e51]{margin-right:4px}.config-card-details-row[data-v-2fde1e51] .k-label{margin-bottom:0}.config-card-details-row[data-v-2fde1e51] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-2fde1e51] .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-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{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-consumer-credentials-list[data-v-ca4cbbc4]{width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue"],"names":[],"mappings":"AAwfA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAevC,OAAO,KAAK,EAEV,uCAAuC,EACvC,mCAAmC,EACnC,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAMjB,OAAO,gDAAgD,CAAA;;IA24BrD,oHAAoH;;cAElG,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,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,iHAAiH;;;;;;;;;;;IAjCjH,oHAAoH;;cAElG,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC,KAAG,OAAO;;;;;;IAW7G,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,iHAAiH;;;;;;;;;;;;qBAhB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAzC7E,wBAmDG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumer-credentials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumer-credentials.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumer-credentials.es.js",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@kong/icons": "^1.18.
|
|
25
|
-
"@kong/kongponents": "^9.14.
|
|
24
|
+
"@kong/icons": "^1.18.2",
|
|
25
|
+
"@kong/kongponents": "^9.14.8",
|
|
26
26
|
"axios": "^1.7.7",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
|
-
"@kong-ui-public/
|
|
30
|
-
"@kong-ui-public/
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.10.3",
|
|
30
|
+
"@kong-ui-public/i18n": "^2.2.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.2",
|
|
34
|
-
"@kong/icons": "^1.18.
|
|
35
|
-
"@kong/kongponents": "9.14.
|
|
34
|
+
"@kong/icons": "^1.18.2",
|
|
35
|
+
"@kong/kongponents": "9.14.8",
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.10.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.10.3",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.2.7"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|