@kong-ui-public/entities-consumer-credentials 3.4.30 → 3.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as 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";
1
+ import { defineComponent as Y, computed as E, ref as C, 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
2
  import { AddIcon as ne } from "@kong/icons";
3
3
  import { createI18n as le, i18nTComponent as ie } from "@kong-ui-public/i18n";
4
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";
@@ -202,7 +202,7 @@ const me = {
202
202
  emits: ["error", "copy:success", "copy:error", "delete:success"],
203
203
  setup(l, { emit: I }) {
204
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 = {
205
+ const y = I, i = l, { i18n: { t: e, formatUnixTimeStamp: O } } = me.useI18n(), { axiosInstance: P } = ce((S = i.config) == null ? void 0 : S.axiosRequestConfig), 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") },
@@ -245,9 +245,13 @@ const me = {
245
245
  }, R = E(() => F[i.config.plugin]), M = E(() => {
246
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: U, fetcherState: J } = re(i.config, M), L = () => {
248
+ }), {
249
+ fetcher: U,
250
+ fetcherState: J,
251
+ fetcherCacheKey: K
252
+ } = re({ ...i.config, cacheIdentifier: i.cacheIdentifier }, M.value), L = () => {
249
253
  K.value++;
250
- }, v = f(null), m = (t, s, h) => {
254
+ }, v = C(null), f = (t, s, h) => {
251
255
  const o = s ? t[s] : JSON.stringify(t);
252
256
  if (!h(o)) {
253
257
  H(t, s);
@@ -269,7 +273,7 @@ const me = {
269
273
  }, V = (t) => ({
270
274
  label: e("credentials.actions.edit"),
271
275
  to: i.config.getEditRoute(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) => {
276
+ }), w = C(void 0), A = C(!1), N = C(!1), $ = C(""), W = se(i.config, M.value), z = E(() => oe[i.config.plugin]), G = (t) => {
273
277
  w.value = t, A.value = !0;
274
278
  }, Q = () => {
275
279
  A.value = !1;
@@ -296,7 +300,7 @@ const me = {
296
300
  }
297
301
  v.value = null;
298
302
  });
299
- const x = f({
303
+ const x = C({
300
304
  ctaPath: i.config.createRoute,
301
305
  ctaText: void 0,
302
306
  message: "",
@@ -305,7 +309,7 @@ const me = {
305
309
  return ee(async () => {
306
310
  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
311
  }), (t, s) => {
308
- const h = T("KButton"), o = T("KCopy"), g = T("KDropdownItem"), C = T("KClipboardProvider");
312
+ const h = T("KButton"), o = T("KCopy"), g = T("KDropdownItem"), m = T("KClipboardProvider");
309
313
  return b(), te("div", be, [
310
314
  c(r(ue), {
311
315
  "cache-identifier": l.cacheIdentifier,
@@ -315,7 +319,7 @@ const me = {
315
319
  "enable-entity-actions": "",
316
320
  "error-message": v.value,
317
321
  fetcher: r(U),
318
- "fetcher-cache-key": K.value,
322
+ "fetcher-cache-key": r(K),
319
323
  "pagination-type": "offset",
320
324
  "preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
321
325
  "table-headers": R.value,
@@ -391,11 +395,11 @@ const me = {
391
395
  c(r(he), { tags: a }, null, 8, ["tags"])
392
396
  ]),
393
397
  actions: n(({ row: a }) => [
394
- c(C, null, {
398
+ c(m, null, {
395
399
  default: n(({ copyToClipboard: d }) => [
396
400
  c(g, {
397
401
  "data-testid": "action-entity-copy-id",
398
- onClick: (_) => m(a, "id", d)
402
+ onClick: (_) => f(a, "id", d)
399
403
  }, {
400
404
  default: n(() => [
401
405
  p(u(r(e)("credentials.actions.copy_id")), 1)
@@ -405,11 +409,11 @@ const me = {
405
409
  ]),
406
410
  _: 2
407
411
  }, 1024),
408
- l.config.plugin === "basic-auth" ? (b(), k(C, { key: 0 }, {
412
+ l.config.plugin === "basic-auth" ? (b(), k(m, { key: 0 }, {
409
413
  default: n(({ copyToClipboard: d }) => [
410
414
  c(g, {
411
415
  "data-testid": "action-entity-copy-credential",
412
- onClick: (_) => m(a, "password", d)
416
+ onClick: (_) => f(a, "password", d)
413
417
  }, {
414
418
  default: n(() => [
415
419
  p(u(r(e)("credentials.actions.copy_credential")), 1)
@@ -419,11 +423,11 @@ const me = {
419
423
  ]),
420
424
  _: 2
421
425
  }, 1024)) : D("", !0),
422
- ["key-auth", "key-auth-enc", "jwt"].includes(l.config.plugin) ? (b(), k(C, { key: 1 }, {
426
+ ["key-auth", "key-auth-enc", "jwt"].includes(l.config.plugin) ? (b(), k(m, { key: 1 }, {
423
427
  default: n(({ copyToClipboard: d }) => [
424
428
  c(g, {
425
429
  "data-testid": "action-entity-copy-key",
426
- onClick: (_) => m(a, "key", d)
430
+ onClick: (_) => f(a, "key", d)
427
431
  }, {
428
432
  default: n(() => [
429
433
  p(u(r(e)("credentials.actions.copy_key")), 1)
@@ -433,11 +437,11 @@ const me = {
433
437
  ]),
434
438
  _: 2
435
439
  }, 1024)) : D("", !0),
436
- l.config.plugin === "oauth2" ? (b(), k(C, { key: 2 }, {
440
+ l.config.plugin === "oauth2" ? (b(), k(m, { key: 2 }, {
437
441
  default: n(({ copyToClipboard: d }) => [
438
442
  c(g, {
439
443
  "data-testid": "action-entity-copy-secret",
440
- onClick: (_) => m(a, "client_secret", d)
444
+ onClick: (_) => f(a, "client_secret", d)
441
445
  }, {
442
446
  default: n(() => [
443
447
  p(u(r(e)("credentials.actions.copy_secret")), 1)
@@ -447,11 +451,11 @@ const me = {
447
451
  ]),
448
452
  _: 2
449
453
  }, 1024)) : D("", !0),
450
- l.config.plugin === "hmac-auth" ? (b(), k(C, { key: 3 }, {
454
+ l.config.plugin === "hmac-auth" ? (b(), k(m, { key: 3 }, {
451
455
  default: n(({ copyToClipboard: d }) => [
452
456
  c(g, {
453
457
  "data-testid": "action-entity-copy-secret",
454
- onClick: (_) => m(a, "secret", d)
458
+ onClick: (_) => f(a, "secret", d)
455
459
  }, {
456
460
  default: n(() => [
457
461
  p(u(r(e)("credentials.actions.copy_secret")), 1)
@@ -461,11 +465,11 @@ const me = {
461
465
  ]),
462
466
  _: 2
463
467
  }, 1024)) : D("", !0),
464
- c(C, null, {
468
+ c(m, null, {
465
469
  default: n(({ copyToClipboard: d }) => [
466
470
  c(g, {
467
471
  "data-testid": "action-entity-copy-json",
468
- onClick: (_) => m(a, void 0, d)
472
+ onClick: (_) => f(a, void 0, d)
469
473
  }, {
470
474
  default: n(() => [
471
475
  p(u(r(e)("credentials.actions.copy_json")), 1)
@@ -526,7 +530,7 @@ const me = {
526
530
  for (const [i, e] of I)
527
531
  y[i] = e;
528
532
  return y;
529
- }, Te = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-569f1dfe"]]);
533
+ }, Te = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-143a1d4d"]]);
530
534
  export {
531
535
  Te as ConsumerCredentialList
532
536
  };
@@ -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,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"})});
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),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,fetcherCacheKey:w}=o.useFetcher({...r.config,cacheIdentifier:r.cacheIdentifier},V.value),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":e.unref(w),"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-143a1d4d"]]);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-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
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-6f28b73b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-6f28b73b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-consumer-credentials-list[data-v-143a1d4d]{width:100%}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"ConsumerCredentialList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ConsumerCredentialList.vue"],"names":[],"mappings":"AAyeA,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;;IA23BrD,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.30",
3
+ "version": "3.4.31",
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.16",
29
+ "@kong-ui-public/entities-shared": "^3.10.17",
30
30
  "@kong-ui-public/i18n": "^2.2.10"
31
31
  },
32
32
  "devDependencies": {
@@ -36,8 +36,8 @@
36
36
  "axios": "^1.7.7",
37
37
  "vue": "^3.5.12",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/i18n": "^2.2.10",
40
- "@kong-ui-public/entities-shared": "^3.10.16"
39
+ "@kong-ui-public/entities-shared": "^3.10.17",
40
+ "@kong-ui-public/i18n": "^2.2.10"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",