@kong-ui-public/entities-consumer-credentials 3.4.27 → 3.4.28

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 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 = {
1
+ import { defineComponent as Y, ref as f, computed as E, watch as Z, onBeforeMount as ee, resolveComponent as T, openBlock as b, createElementBlock as te, createVNode as c, unref as r, withCtx as n, createBlock as k, Teleport as ae, createTextVNode as p, toDisplayString as u, createElementVNode as B, createCommentVNode as D } from "vue";
2
+ import { AddIcon as ne } from "@kong/icons";
3
+ import { createI18n as le, i18nTComponent as ie } from "@kong-ui-public/i18n";
4
+ import { useAxios as ce, useFetcher as re, useDeleteUrlBuilder as se, EntityTypes as oe, FetcherStatus as de, EntityBaseTable as ue, PermissionsWrapper as j, TableTags as he, EntityDeleteModal as pe } from "@kong-ui-public/entities-shared";
5
+ const ye = {
6
6
  title: "Consumer Credentials",
7
7
  list: {
8
8
  toolbar_actions: {
@@ -143,25 +143,25 @@ const Ce = {
143
143
  success: "Copied {val} to clipboard",
144
144
  success_brief: "Successfully copied to clipboard"
145
145
  }
146
- }, be = {
147
- credentials: Ce
146
+ }, ge = {
147
+ credentials: ye
148
148
  };
149
- function _e() {
150
- const l = oe("en-us", be);
149
+ function fe() {
150
+ const l = le("en-us", ge);
151
151
  return {
152
152
  i18n: l,
153
- i18nT: de(l)
153
+ i18nT: ie(l)
154
154
  // Translation component <i18n-t>
155
155
  };
156
156
  }
157
- const ke = {
158
- useI18n: _e
159
- }, ve = {
157
+ const me = {
158
+ useI18n: fe
159
+ }, Ce = {
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
- }, we = { class: "kong-ui-entities-consumer-credentials-list" }, Ae = /* @__PURE__ */ te({
164
+ }, be = { class: "kong-ui-entities-consumer-credentials-list" }, _e = /* @__PURE__ */ Y({
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 ke = {
201
201
  },
202
202
  emits: ["error", "copy:success", "copy:error", "delete:success"],
203
203
  setup(l, { emit: I }) {
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 = {
204
+ var S;
205
+ const y = I, i = l, { i18n: { t: e, formatUnixTimeStamp: O } } = me.useI18n(), { axiosInstance: P } = ce((S = i.config) == null ? void 0 : S.axiosRequestConfig), K = f(1), F = {
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,122 +242,119 @@ const ke = {
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
- }, L = B(() => J[i.config.plugin]), S = B(() => {
246
- let t = `${i.config.apiBaseUrl}${ve.list[i.config.app]}`;
245
+ }, R = E(() => F[i.config.plugin]), M = E(() => {
246
+ let t = `${i.config.apiBaseUrl}${Ce.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: q, fetcherState: H } = he(i.config, S), V = () => {
248
+ }), { fetcher: U, fetcherState: J } = re(i.config, M), L = () => {
249
249
  K.value++;
250
- }, v = y(null), x = y(!1), m = (t, s, p) => {
250
+ }, v = f(null), m = (t, s, h) => {
251
251
  const o = s ? t[s] : JSON.stringify(t);
252
- if (!p(o)) {
253
- z(t, s);
252
+ if (!h(o)) {
253
+ H(t, s);
254
254
  return;
255
255
  }
256
- W(t, s);
257
- }, W = (t, s) => {
258
- f("copy:success", {
256
+ q(t, s);
257
+ }, q = (t, s) => {
258
+ y("copy:success", {
259
259
  entity: t,
260
260
  field: s,
261
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
- }, z = (t, s) => {
264
- f("copy:error", {
263
+ }, H = (t, s) => {
264
+ y("copy:error", {
265
265
  entity: t,
266
266
  field: s,
267
267
  message: e("credentials.error.copy")
268
268
  });
269
- }, G = (t) => ({
269
+ }, V = (t) => ({
270
270
  label: e("credentials.actions.edit"),
271
271
  to: i.config.getEditRoute(t)
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) => {
272
+ }), w = f(void 0), A = f(!1), N = f(!1), $ = f(""), W = se(i.config, M.value), z = E(() => oe[i.config.plugin]), G = (t) => {
273
273
  w.value = t, A.value = !0;
274
- }, Z = () => {
274
+ }, Q = () => {
275
275
  A.value = !1;
276
- }, ee = async () => {
277
- var t, s, p;
276
+ }, X = async () => {
277
+ var t, s, h;
278
278
  if ((t = w.value) != null && t.id) {
279
279
  N.value = !0;
280
280
  try {
281
- await U.delete(Q(w.value.id)), N.value = !1, A.value = !1, K.value++, f("delete:success", w.value);
281
+ await P.delete(W(w.value.id)), N.value = !1, A.value = !1, K.value++, y("delete:success", w.value);
282
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);
283
+ $.value = ((h = (s = o.response) == null ? void 0 : s.data) == null ? void 0 : h.message) || o.message || e("credentials.error.delete"), y("error", o);
284
284
  } finally {
285
285
  N.value = !1;
286
286
  }
287
287
  }
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) {
288
+ };
289
+ Z(J, (t) => {
290
+ var s, h, o;
291
+ if (t.status === de.Error) {
292
292
  v.value = {
293
293
  title: e("credentials.error.general")
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);
294
+ }, (o = (h = (s = t.error) == null ? void 0 : s.response) == null ? void 0 : h.data) != null && o.message && (v.value.message = t.error.response.data.message), y("error", t.error);
295
295
  return;
296
296
  }
297
297
  v.value = null;
298
298
  });
299
- const E = y({
299
+ const x = f({
300
300
  ctaPath: i.config.createRoute,
301
301
  ctaText: void 0,
302
302
  message: "",
303
303
  title: e("credentials.title")
304
304
  });
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`));
305
+ return ee(async () => {
306
+ await i.canCreate() && (x.value.title = e(`credentials.list.empty_state.${i.config.plugin}.title`), x.value.ctaText = e(`credentials.list.empty_state.${i.config.plugin}.cta`));
307
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), {
308
+ const h = T("KButton"), o = T("KCopy"), g = T("KDropdownItem"), C = T("KClipboardProvider");
309
+ return b(), te("div", be, [
310
+ c(r(ue), {
311
311
  "cache-identifier": l.cacheIdentifier,
312
312
  "disable-row-click": "",
313
313
  "disable-sorting": "",
314
- "empty-state-options": E.value,
314
+ "empty-state-options": x.value,
315
315
  "enable-entity-actions": "",
316
316
  "error-message": v.value,
317
- fetcher: r(q),
317
+ fetcher: r(U),
318
318
  "fetcher-cache-key": K.value,
319
- "hide-toolbar": x.value,
320
319
  "pagination-type": "offset",
321
320
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
322
- "table-headers": L.value,
323
- onSort: V
321
+ "table-headers": R.value,
322
+ onSort: L
324
323
  }, {
325
324
  "toolbar-button": n(() => [
326
- (b(), k(ie, {
325
+ (b(), k(ae, {
327
326
  disabled: !l.useActionOutside,
328
327
  to: "#kong-ui-app-page-header-action-button"
329
328
  }, [
330
- c(r(M), {
329
+ c(r(j), {
331
330
  "auth-function": () => l.canCreate()
332
331
  }, {
333
332
  default: n(() => [
334
- ce(c(p, {
333
+ c(h, {
335
334
  appearance: "primary",
336
335
  "data-testid": "toolbar-add-credential",
337
336
  size: l.useActionOutside ? "medium" : "large",
338
337
  to: l.config.createRoute
339
338
  }, {
340
339
  default: n(() => [
341
- c(r(se)),
342
- g(" " + u(r(e)(`credentials.list.toolbar_actions.${l.config.plugin}.new`)), 1)
340
+ c(r(ne)),
341
+ p(" " + u(r(e)(`credentials.list.toolbar_actions.${l.config.plugin}.new`)), 1)
343
342
  ]),
344
343
  _: 1
345
- }, 8, ["size", "to"]), [
346
- [re, O.value]
347
- ])
344
+ }, 8, ["size", "to"])
348
345
  ]),
349
346
  _: 1
350
347
  }, 8, ["auth-function"])
351
348
  ], 8, ["disabled"]))
352
349
  ]),
353
350
  group: n(({ rowValue: a }) => [
354
- j("b", null, u(a ?? "-"), 1)
351
+ B("b", null, u(a ?? "-"), 1)
355
352
  ]),
356
353
  name: n(({ rowValue: a }) => [
357
- j("b", null, u(a ?? "-"), 1)
354
+ B("b", null, u(a ?? "-"), 1)
358
355
  ]),
359
356
  username: n(({ rowValue: a }) => [
360
- j("span", null, u(a ?? "-"), 1)
357
+ B("span", null, u(a ?? "-"), 1)
361
358
  ]),
362
359
  password: n(({ rowValue: a }) => [
363
360
  c(o, {
@@ -388,20 +385,20 @@ const ke = {
388
385
  }, null, 8, ["text"])
389
386
  ]),
390
387
  created_at: n(({ rowValue: a }) => [
391
- g(u(r(R)(a)), 1)
388
+ p(u(r(O)(a)), 1)
392
389
  ]),
393
390
  tags: n(({ rowValue: a }) => [
394
- c(r(fe), { tags: a }, null, 8, ["tags"])
391
+ c(r(he), { tags: a }, null, 8, ["tags"])
395
392
  ]),
396
393
  actions: n(({ row: a }) => [
397
394
  c(C, null, {
398
395
  default: n(({ copyToClipboard: d }) => [
399
- c(h, {
396
+ c(g, {
400
397
  "data-testid": "action-entity-copy-id",
401
398
  onClick: (_) => m(a, "id", d)
402
399
  }, {
403
400
  default: n(() => [
404
- g(u(r(e)("credentials.actions.copy_id")), 1)
401
+ p(u(r(e)("credentials.actions.copy_id")), 1)
405
402
  ]),
406
403
  _: 2
407
404
  }, 1032, ["onClick"])
@@ -410,12 +407,12 @@ const ke = {
410
407
  }, 1024),
411
408
  l.config.plugin === "basic-auth" ? (b(), k(C, { key: 0 }, {
412
409
  default: n(({ copyToClipboard: d }) => [
413
- c(h, {
410
+ c(g, {
414
411
  "data-testid": "action-entity-copy-credential",
415
412
  onClick: (_) => m(a, "password", d)
416
413
  }, {
417
414
  default: n(() => [
418
- g(u(r(e)("credentials.actions.copy_credential")), 1)
415
+ p(u(r(e)("credentials.actions.copy_credential")), 1)
419
416
  ]),
420
417
  _: 2
421
418
  }, 1032, ["onClick"])
@@ -424,12 +421,12 @@ const ke = {
424
421
  }, 1024)) : D("", !0),
425
422
  ["key-auth", "key-auth-enc", "jwt"].includes(l.config.plugin) ? (b(), k(C, { key: 1 }, {
426
423
  default: n(({ copyToClipboard: d }) => [
427
- c(h, {
424
+ c(g, {
428
425
  "data-testid": "action-entity-copy-key",
429
426
  onClick: (_) => m(a, "key", d)
430
427
  }, {
431
428
  default: n(() => [
432
- g(u(r(e)("credentials.actions.copy_key")), 1)
429
+ p(u(r(e)("credentials.actions.copy_key")), 1)
433
430
  ]),
434
431
  _: 2
435
432
  }, 1032, ["onClick"])
@@ -438,12 +435,12 @@ const ke = {
438
435
  }, 1024)) : D("", !0),
439
436
  l.config.plugin === "oauth2" ? (b(), k(C, { key: 2 }, {
440
437
  default: n(({ copyToClipboard: d }) => [
441
- c(h, {
438
+ c(g, {
442
439
  "data-testid": "action-entity-copy-secret",
443
440
  onClick: (_) => m(a, "client_secret", d)
444
441
  }, {
445
442
  default: n(() => [
446
- g(u(r(e)("credentials.actions.copy_secret")), 1)
443
+ p(u(r(e)("credentials.actions.copy_secret")), 1)
447
444
  ]),
448
445
  _: 2
449
446
  }, 1032, ["onClick"])
@@ -452,12 +449,12 @@ const ke = {
452
449
  }, 1024)) : D("", !0),
453
450
  l.config.plugin === "hmac-auth" ? (b(), k(C, { key: 3 }, {
454
451
  default: n(({ copyToClipboard: d }) => [
455
- c(h, {
452
+ c(g, {
456
453
  "data-testid": "action-entity-copy-secret",
457
454
  onClick: (_) => m(a, "secret", d)
458
455
  }, {
459
456
  default: n(() => [
460
- g(u(r(e)("credentials.actions.copy_secret")), 1)
457
+ p(u(r(e)("credentials.actions.copy_secret")), 1)
461
458
  ]),
462
459
  _: 2
463
460
  }, 1032, ["onClick"])
@@ -466,42 +463,42 @@ const ke = {
466
463
  }, 1024)) : D("", !0),
467
464
  c(C, null, {
468
465
  default: n(({ copyToClipboard: d }) => [
469
- c(h, {
466
+ c(g, {
470
467
  "data-testid": "action-entity-copy-json",
471
468
  onClick: (_) => m(a, void 0, d)
472
469
  }, {
473
470
  default: n(() => [
474
- g(u(r(e)("credentials.actions.copy_json")), 1)
471
+ p(u(r(e)("credentials.actions.copy_json")), 1)
475
472
  ]),
476
473
  _: 2
477
474
  }, 1032, ["onClick"])
478
475
  ]),
479
476
  _: 2
480
477
  }, 1024),
481
- c(r(M), {
478
+ c(r(j), {
482
479
  "auth-function": () => l.canEdit(a)
483
480
  }, {
484
481
  default: n(() => [
485
- c(h, {
482
+ c(g, {
486
483
  "data-testid": "action-entity-edit",
487
484
  "has-divider": "",
488
- item: G(a.id)
485
+ item: V(a.id)
489
486
  }, null, 8, ["item"])
490
487
  ]),
491
488
  _: 2
492
489
  }, 1032, ["auth-function"]),
493
- c(r(M), {
490
+ c(r(j), {
494
491
  "auth-function": () => l.canDelete(a)
495
492
  }, {
496
493
  default: n(() => [
497
- c(h, {
494
+ c(g, {
498
495
  danger: "",
499
496
  "data-testid": "action-entity-delete",
500
497
  "has-divider": "",
501
- onClick: (d) => Y(a)
498
+ onClick: (d) => G(a)
502
499
  }, {
503
500
  default: n(() => [
504
- g(u(r(e)("credentials.actions.delete")), 1)
501
+ p(u(r(e)("credentials.actions.delete")), 1)
505
502
  ]),
506
503
  _: 2
507
504
  }, 1032, ["onClick"])
@@ -510,26 +507,26 @@ const ke = {
510
507
  }, 1032, ["auth-function"])
511
508
  ]),
512
509
  _: 1
513
- }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "table-headers"]),
514
- c(r(me), {
510
+ }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
511
+ c(r(pe), {
515
512
  "action-pending": N.value,
516
513
  description: r(e)("credentials.delete.description"),
517
- "entity-type": X.value,
514
+ "entity-type": z.value,
518
515
  error: $.value,
519
516
  title: r(e)(`credentials.delete.${l.config.plugin}.title`),
520
517
  visible: A.value,
521
- onCancel: Z,
522
- onProceed: ee
518
+ onCancel: Q,
519
+ onProceed: X
523
520
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
524
521
  ]);
525
522
  };
526
523
  }
527
- }), Ne = (l, I) => {
528
- const f = l.__vccOpts || l;
524
+ }), ke = (l, I) => {
525
+ const y = l.__vccOpts || l;
529
526
  for (const [i, e] of I)
530
- f[i] = e;
531
- return f;
532
- }, xe = /* @__PURE__ */ Ne(Ae, [["__scopeId", "data-v-ca4cbbc4"]]);
527
+ y[i] = e;
528
+ return y;
529
+ }, Te = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-569f1dfe"]]);
533
530
  export {
534
- xe as ConsumerCredentialList
531
+ Te as ConsumerCredentialList
535
532
  };
@@ -1 +1 @@
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"})});
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,A,x,o){"use strict";const B={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 I(){const i=x.createI18n("en-us",B);return{i18n:i,i18nT:x.i18nTComponent(i)}}const K={useI18n:I},E={list:{konnect:"/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}},j={class:"kong-ui-entities-consumer-credentials-list"},S=((i,k)=>{const p=i.__vccOpts||i;for(const[r,t]of k)p[r]=t;return p})(e.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:i=>!(!i||!["konnect","kongManager"].includes(i==null?void 0:i.app)||!i.createRoute||!i.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(i,{emit:k}){var D;const p=k,r=i,{i18n:{t,formatUnixTimeStamp:M}}=K.useI18n(),{axiosInstance:$}=o.useAxios((D=r.config)==null?void 0:D.axiosRequestConfig),w=e.ref(1),O={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")}}},P=e.computed(()=>O[r.config.plugin]),V=e.computed(()=>{let a=`${r.config.apiBaseUrl}${E.list[r.config.app]}`;return r.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,r.config.controlPlaneId||"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||""):r.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,r.config.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||"")),a}),{fetcher:q,fetcherState:F}=o.useFetcher(r.config,V),L=()=>{w.value++},C=e.ref(null),y=(a,c,u)=>{const l=c?a[c]:JSON.stringify(a);if(!u(l)){U(a,c);return}R(a,c)},R=(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")})},U=(a,c)=>{p("copy:error",{entity:a,field:c,message:t("credentials.error.copy")})},W=a=>({label:t("credentials.actions.edit"),to:r.config.getEditRoute(a)}),m=e.ref(void 0),b=e.ref(!1),_=e.ref(!1),T=e.ref(""),J=o.useDeleteUrlBuilder(r.config,V.value),H=e.computed(()=>o.EntityTypes[r.config.plugin]),z=a=>{m.value=a,b.value=!0},G=()=>{b.value=!1},Q=async()=>{var a,c,u;if((a=m.value)!=null&&a.id){_.value=!0;try{await $.delete(J(m.value.id)),_.value=!1,b.value=!1,w.value++,p("delete:success",m.value)}catch(l){T.value=((u=(c=l.response)==null?void 0:c.data)==null?void 0:u.message)||l.message||t("credentials.error.delete"),p("error",l)}finally{_.value=!1}}};e.watch(F,a=>{var c,u,l;if(a.status===o.FetcherStatus.Error){C.value={title:t("credentials.error.general")},(l=(u=(c=a.error)==null?void 0:c.response)==null?void 0:u.data)!=null&&l.message&&(C.value.message=a.error.response.data.message),p("error",a.error);return}C.value=null});const N=e.ref({ctaPath:r.config.createRoute,ctaText:void 0,message:"",title:t("credentials.title")});return e.onBeforeMount(async()=>{await r.canCreate()&&(N.value.title=t(`credentials.list.empty_state.${r.config.plugin}.title`),N.value.ctaText=t(`credentials.list.empty_state.${r.config.plugin}.cta`))}),(a,c)=>{const u=e.resolveComponent("KButton"),l=e.resolveComponent("KCopy"),h=e.resolveComponent("KDropdownItem"),g=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",j,[e.createVNode(e.unref(o.EntityBaseTable),{"cache-identifier":i.cacheIdentifier,"disable-row-click":"","disable-sorting":"","empty-state-options":N.value,"enable-entity-actions":"","error-message":C.value,fetcher:e.unref(q),"fetcher-cache-key":w.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":P.value,onSort:L},{"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!i.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(o.PermissionsWrapper),{"auth-function":()=>i.canCreate()},{default:e.withCtx(()=>[e.createVNode(u,{appearance:"primary","data-testid":"toolbar-add-credential",size:i.useActionOutside?"medium":"large",to:i.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(A.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)(`credentials.list.toolbar_actions.${i.config.plugin}.new`)),1)]),_:1},8,["size","to"])]),_: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(M)(n)),1)]),tags:e.withCtx(({rowValue:n})=>[e.createVNode(e.unref(o.TableTags),{tags:n},null,8,["tags"])]),actions:e.withCtx(({row:n})=>[e.createVNode(g,null,{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-id",onClick:f=>y(n,"id",s)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),i.config.plugin==="basic-auth"?(e.openBlock(),e.createBlock(g,{key:0},{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-credential",onClick:f=>y(n,"password",s)},{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(i.config.plugin)?(e.openBlock(),e.createBlock(g,{key:1},{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-key",onClick:f=>y(n,"key",s)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),i.config.plugin==="oauth2"?(e.openBlock(),e.createBlock(g,{key:2},{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-secret",onClick:f=>y(n,"client_secret",s)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):e.createCommentVNode("",!0),i.config.plugin==="hmac-auth"?(e.openBlock(),e.createBlock(g,{key:3},{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-secret",onClick:f=>y(n,"secret",s)},{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(g,null,{default:e.withCtx(({copyToClipboard:s})=>[e.createVNode(h,{"data-testid":"action-entity-copy-json",onClick:f=>y(n,void 0,s)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(o.PermissionsWrapper),{"auth-function":()=>i.canEdit(n)},{default:e.withCtx(()=>[e.createVNode(h,{"data-testid":"action-entity-edit","has-divider":"",item:W(n.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(o.PermissionsWrapper),{"auth-function":()=>i.canDelete(n)},{default:e.withCtx(()=>[e.createVNode(h,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:s=>z(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","table-headers"]),e.createVNode(e.unref(o.EntityDeleteModal),{"action-pending":_.value,description:e.unref(t)("credentials.delete.description"),"entity-type":H.value,error:T.value,title:e.unref(t)(`credentials.delete.${i.config.plugin}.title`),visible:b.value,onCancel:G,onProceed:Q},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-569f1dfe"]]);d.ConsumerCredentialList=S,Object.defineProperty(d,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-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
+ .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-consumer-credentials-list[data-v-569f1dfe]{width:100%}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue"],"names":[],"mappings":"AAseA,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;;IAw3BrD,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.27",
3
+ "version": "3.4.28",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-consumer-credentials.umd.js",
6
6
  "module": "./dist/entities-consumer-credentials.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.13",
29
+ "@kong-ui-public/entities-shared": "^3.10.14",
30
30
  "@kong-ui-public/i18n": "^2.2.9"
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/entities-shared": "^3.10.13",
40
- "@kong-ui-public/i18n": "^2.2.9"
39
+ "@kong-ui-public/i18n": "^2.2.9",
40
+ "@kong-ui-public/entities-shared": "^3.10.14"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",