@kong-ui-public/entities-keys 3.5.55 → 3.5.56

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 +1 @@
1
- (function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_["kong-ui-public-entities-keys"]={},_.Vue,_.VueRouter,_.KongIcons,_["kong-ui-public-i18n"],_["kong-ui-public-entities-shared"]))})(this,function(_,e,v,oe,ee,s){"use strict";const le={keys:{title:"Keys",list:{toolbar_actions:{new_key:"New Key"},table_headers:{name:"Name",key_id:"Key ID",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key",description:"A Key object holds a representation of asymmetric keys in various formats."}},actions:{create:"New Key",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},delete:{title:"Delete a Key",description:"This action cannot be reversed so make sure to check the key usage before deleting."},errors:{general:"Keys could not be retrieved",delete:"The key could not be deleted at this time.",copy:"Failed to copy to clipboard",key_sets:{fetch:"Could not fetch available key sets",invalid:"Please select a valid key set ID"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key."},keys:{title:"Asymmetric Keys",description:"Choose the preferred format for this asymmetric key. Currently only support PEM and JWK format."}},fields:{id:{label:"Key ID",placeholder:"Enter a key ID",tooltip:"An identifier for a key",help:"If using JWK, need to match with the jwk.kid field"},name:{label:"Name",placeholder:"Enter a unique name for this key",tooltip:"The name to associate with the given key"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},key_set:{label:"Key Set",placeholder:"Select a key set to add into",footer:"Search by exact ID to find key sets not included in the list"},key_format:{label:"Key Format",options:{jwk:"JWK",pem:"PEM"}},jwk:{label:"JWK",placeholder:"Enter a JWK",tooltip:"A JSON Web key represented as a string"},kid:{label:"Key ID",tooltip:"A unique identifier for a key."},set:{label:"Key Set",tooltip:"The id (an UUID) of the key-set with which to associate the key."},private_key:{label:"Private Key",placeholder:"Enter a private key"},public_key:{label:"Public Key",placeholder:"Enter a public key"}}}}};function ie(){const a=ee.createI18n("en-us",le);return{i18n:a,i18nT:ee.i18nTComponent(a)}}const z={useI18n:ie},N="/v2/control-planes/{controlPlaneId}/core-entities",E="/{workspace}",B={list:{konnect:{all:`${N}/keys`,forKeySet:`${N}/key-sets/{keySetId}/keys`},kongManager:{all:`${E}/keys`,forKeySet:`${E}/key-sets/{keySetId}/keys`}},form:{konnect:{create:{all:`${N}/keys`,forKeySet:`${N}/key-sets/{keySetId}/keys`},edit:{all:`${N}/keys/{id}`,forKeySet:`${N}/key-sets/{keySetId}/keys/{id}`},keySets:`${N}/key-sets`,getKeySet:`${N}/key-sets/{keySetId}`},kongManager:{create:{all:`${E}/keys`,forKeySet:`${E}/key-sets/{keySetId}/keys`},edit:{all:`${E}/keys/{id}`,forKeySet:`${E}/key-sets/{keySetId}/keys/{id}`},keySets:`${E}/key-sets`,getKeySet:`${E}/key-sets/{keySetId}`}}},ae={class:"kong-ui-entities-keys-list"},re=e.defineComponent({__name:"KeyList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(a,{emit:$}){var W;const b=$,l=a,{i18n:{t:y}}=z.useI18n(),d=v.useRouter(),{axiosInstance:w}=s.useAxios((W=l.config)==null?void 0:W.axiosRequestConfig),x=e.ref(1),M=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),S={name:{label:y("keys.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},kid:{label:y("keys.list.table_headers.key_id"),sortable:!0},tags:{label:y("keys.list.table_headers.tags")},id:{label:y("keys.list.table_headers.id"),sortable:!0}},o=S,h=e.computed(()=>{var i,f,p,u;let t=`${l.config.apiBaseUrl}${B.list[l.config.app][l.config.keySetId?"forKeySet":"all"]}`;return l.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((i=l.config)==null?void 0:i.controlPlaneId)||"").replace(/{keySetId}/gi,((f=l.config)==null?void 0:f.keySetId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(p=l.config)!=null&&p.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,((u=l.config)==null?void 0:u.keySetId)||"")),t}),V=e.ref(""),j=e.computed(()=>{const t=l.config.app==="konnect"||l.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:y("keys.search.placeholder")};const i={name:S.name};return{isExactMatch:t,fields:i,schema:l.config.filterSchema}}),{fetcher:R,fetcherState:A}=s.useFetcher(l.config,h.value),q=()=>{V.value=""},D=()=>{x.value++},c=e.ref(null),m=e.ref(!1),I=(t,i)=>{const f=t.id;if(!i(f)){k(t,"id");return}C(t,"id")},g=(t,i)=>{const f=JSON.stringify(t);if(!i(f)){b("copy:error",{entity:t,message:y("keys.errors.copy")});return}b("copy:success",{entity:t,message:y("keys.copy.success_brief")})},C=(t,i)=>{b("copy:success",{entity:t,field:i,message:y("keys.copy.success",{val:t[i]})})},k=(t,i)=>{b("copy:error",{entity:t,field:i,message:y("keys.errors.copy")})},L=async t=>{var f;await((f=l.canRetrieve)==null?void 0:f.call(l,t))&&d.push(l.config.getViewRoute(t.id))},G=t=>({label:y("keys.actions.view"),to:l.config.getViewRoute(t)}),H=t=>({label:y("keys.actions.edit"),to:l.config.getEditRoute(t)}),K=e.ref(void 0),T=e.ref(!1),F=e.ref(!1),P=e.ref(""),X=s.useDeleteUrlBuilder(l.config,h.value),Y=t=>{K.value=t,T.value=!0},Z=()=>{T.value=!1},U=async()=>{var t,i,f;if((t=K.value)!=null&&t.id){F.value=!0;try{await w.delete(X(K.value.id)),F.value=!1,T.value=!1,x.value++,b("delete:success",K.value)}catch(p){P.value=((f=(i=p.response)==null?void 0:i.data)==null?void 0:f.message)||p.message||y("keys.errors.delete"),b("error",p)}finally{F.value=!1}}},O=e.ref(!1);e.watch(A,t=>{var i,f,p,u;if(Array.isArray((i=t==null?void 0:t.response)==null?void 0:i.data)&&(O.value=t.response.data.length>0),t.status===s.FetcherStatus.NoRecords?m.value=!0:m.value=!1,t.status===s.FetcherStatus.Error){c.value={title:y("keys.errors.general")},(u=(p=(f=t.error)==null?void 0:f.response)==null?void 0:p.data)!=null&&u.message&&(c.value.message=t.error.response.data.message),b("error",t.error);return}c.value=null});const J=e.ref({ctaPath:l.config.createRoute,ctaText:void 0,message:`${y("keys.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:y("keys.title")});return e.onBeforeMount(async()=>{await l.canCreate()&&(J.value.title=y("keys.list.empty_state.title"),J.value.ctaText=y("keys.actions.create"))}),(t,i)=>{const f=e.resolveComponent("KButton"),p=e.resolveComponent("KCopy"),u=e.resolveComponent("KDropdownItem"),n=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":M.value,"empty-state-options":J.value,"enable-entity-actions":"","error-message":c.value,fetcher:e.unref(R),"fetcher-cache-key":x.value,"hide-toolbar":m.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:V.value,"table-headers":e.unref(o),onClearSearchInput:q,"onClick:row":i[1]||(i[1]=r=>L(r)),onSort:D},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(s.EntityFilter),{modelValue:V.value,"onUpdate:modelValue":i[0]||(i[0]=r=>V.value=r),config:j.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(f,{appearance:"primary","data-testid":"toolbar-add-key",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(oe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("keys.list.toolbar_actions.new_key")),1)]),_:1},8,["size","to"]),[[e.vShow,O.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:r})=>[e.createElementVNode("b",null,e.toDisplayString(r??"-"),1)]),kid:e.withCtx(({rowValue:r})=>[e.createVNode(p,{text:r},null,8,["text"])]),tags:e.withCtx(({rowValue:r})=>[e.createVNode(e.unref(s.TableTags),{tags:r},null,8,["tags"])]),id:e.withCtx(({rowValue:r})=>[e.createVNode(p,{text:r,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:r})=>[e.createVNode(n,null,{default:e.withCtx(({copyToClipboard:Q})=>[e.createVNode(u,{"data-testid":"action-entity-copy-id",onClick:he=>I(r,Q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(n,null,{default:e.withCtx(({copyToClipboard:Q})=>[e.createVNode(u,{"data-testid":"action-entity-copy-json",onClick:he=>g(r,Q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(r)},{default:e.withCtx(()=>[e.createVNode(u,{"data-testid":"action-entity-view","has-divider":"",item:G(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canEdit(r)},{default:e.withCtx(()=>[e.createVNode(u,{"data-testid":"action-entity-edit",item:H(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canDelete(r)},{default:e.withCtx(()=>[e.createVNode(u,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:Q=>Y(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers"]),e.createVNode(e.unref(s.EntityDeleteModal),{"action-pending":F.value,description:e.unref(y)("keys.delete.description"),"entity-name":K.value&&(K.value.name||K.value.id),"entity-type":e.unref(s.EntityTypes).Key,error:P.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:T.value,onCancel:Z,onProceed:U},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(a,$)=>{const b=a.__vccOpts||a;for(const[l,y]of $)b[l]=y;return b},se=te(re,[["__scopeId","data-v-22a4f9c4"]]),ne={class:"kong-ui-entities-keys-form"},ce={"data-testid":"no-search-results"},de={class:"select-item-container"},fe={class:"select-item-label"},ye={class:"select-item-description"},pe={key:0,class:"invalid-key-set-message","data-testid":"invalid-key-set-message"},ke={"data-testid":"key-format-container"},me=te(e.defineComponent({__name:"KeyForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},keyId:{type:String,required:!1,default:""},keySetId:{type:String,required:!1,default:null},fixedKeySetId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(a,{emit:$}){var W;const b=$,l=a,y=v.useRouter(),{i18n:{t:d}}=z.useI18n(),{getMessageFromError:w}=s.useErrors(),{axiosInstance:x}=s.useAxios((W=l.config)==null?void 0:W.axiosRequestConfig),M=e.computed(()=>l.keySetId?B.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):B.form[l.config.app].edit.all),S=e.computed(()=>l.keyId?s.EntityBaseFormType.Edit:s.EntityBaseFormType.Create),o=e.reactive({fields:{name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""},isReadonly:!1,errorMessage:""}),h=e.reactive({name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""}),V=[{label:d("keys.form.fields.key_format.options.jwk"),value:"jwk"},{label:d("keys.form.fields.key_format.options.pem"),value:"pem"}],j=e.computed(()=>o.isReadonly||S.value===s.EntityBaseFormType.Create&&!!l.fixedKeySetId),R=e.computed(()=>!j.value);e.watch(()=>l.fixedKeySetId,t=>{S.value===s.EntityBaseFormType.Create&&(o.fields.key_set=t)},{immediate:!0});const A=e.computed(()=>JSON.stringify(o.fields)!==JSON.stringify(h)&&!!o.fields.key_id&&!!o.fields.key_format&&(o.fields.key_format==="jwk"&&!!o.fields.jwk||o.fields.key_format==="pem"&&!!o.fields.private_key&&!!o.fields.public_key)),q=t=>{var i,f,p,u;o.fields.key_id=(t==null?void 0:t.kid)||"",o.fields.name=(t==null?void 0:t.name)||"",o.fields.tags=((i=t==null?void 0:t.tags)==null?void 0:i.join(", "))||"",o.fields.key_set=((f=t==null?void 0:t.set)==null?void 0:f.id)||"",o.fields.key_format=t!=null&&t.pem?"pem":"jwk",o.fields.jwk=(t==null?void 0:t.jwk)||"",o.fields.private_key=((p=t==null?void 0:t.pem)==null?void 0:p.private_key)||"",o.fields.public_key=((u=t==null?void 0:t.pem)==null?void 0:u.public_key)||"",Object.assign(h,o.fields)},D=()=>{y.push(l.config.cancelRoute)},c=e.computed(()=>{var i,f;let t=`${l.config.apiBaseUrl}${B.form[l.config.app][S.value][l.keySetId?"forKeySet":"all"]}`;return l.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((i=l.config)==null?void 0:i.controlPlaneId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(f=l.config)!=null&&f.workspace?`/${l.config.workspace}`:"")),t=t.replace(/{id}/gi,l.keyId).replace(/{keySetId}/gi,l.keySetId||""),t}),m=e.computed(()=>{var t,i,f;return{kid:o.fields.key_id,name:o.fields.name||null,tags:((f=(i=(t=o.fields.tags)==null?void 0:t.split(","))==null?void 0:i.map(p=>String(p||"").trim()))==null?void 0:f.filter(p=>p!==""))||[],set:o.fields.key_set?{id:o.fields.key_set}:null,jwk:o.fields.key_format==="jwk"?o.fields.jwk:null,pem:o.fields.key_format==="pem"?{private_key:o.fields.private_key,public_key:o.fields.public_key}:null}}),I=async()=>{var t,i,f,p,u;try{o.isReadonly=!0;let n;if(S.value==="create"?n=await x.post(c.value,m.value):S.value==="edit"&&(n=((t=l.config)==null?void 0:t.app)==="konnect"?await x.put(c.value,m.value):await x.patch(c.value,m.value)),n){const{data:r}=n;o.fields.key_id=(r==null?void 0:r.kid)||"",o.fields.name=(r==null?void 0:r.name)||"",o.fields.tags=((i=r==null?void 0:r.tags)==null?void 0:i.join(", "))||"",o.fields.key_set=((f=r==null?void 0:r.set)==null?void 0:f.id)||"",o.fields.key_format=r!=null&&r.pem?"pem":"jwk",o.fields.jwk=(r==null?void 0:r.jwk)||"",o.fields.private_key=((p=r==null?void 0:r.pem)==null?void 0:p.private_key)||"",o.fields.public_key=((u=r==null?void 0:r.pem)==null?void 0:u.public_key)||"",Object.assign(h,o.fields),b("update",n==null?void 0:n.data)}}catch(n){o.errorMessage=w(n),b("error",n)}finally{o.isReadonly=!1}},{debouncedQueryChange:g,loading:C,allRecords:k,error:L,validationError:G,loadItems:H,results:K}=s.useDebouncedFilter(l.config,B.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),T=t=>{(!t||t!==o.fields.key_set&&t!==h.key_set)&&g(t)},F=e.computed(()=>L.value?d("keys.errors.key_sets.fetch"):""),P=e.computed(()=>G.value?d("keys.errors.key_sets.invalid"):""),X=e.ref(0),Y=e.computed(()=>k.value===void 0),Z=e.computed(()=>{if(Y.value)return l.config.app==="konnect"?d("keys.form.fields.key_set.footer"):void 0}),U=e.ref(new Set),O=e.computed(()=>Array.from(U.value).map(i=>({name:i.name||"",label:"",value:i.id,selected:o.fields.key_set===i.id}))),J=t=>{U.value.clear();let i;for(i of t)U.value.add(i)};return e.watch(K,t=>{J(t)},{immediate:!0,deep:!0}),e.watch(O,()=>{X.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await H()}),(t,i)=>{const f=e.resolveComponent("KInput"),p=e.resolveComponent("KSelect"),u=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(e.unref(s.EntityBaseForm),{"can-submit":A.value,config:a.config,"edit-id":a.keyId,"entity-type":e.unref(s.SupportedEntityType).Key,"error-message":o.errorMessage||F.value,"fetch-url":M.value,"form-fields":m.value,"is-readonly":o.isReadonly,onCancel:D,"onFetch:error":i[8]||(i[8]=n=>t.$emit("error",n)),"onFetch:success":q,onLoading:i[9]||(i[9]=n=>t.$emit("loading",n)),onSubmit:I},{default:e.withCtx(()=>[e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(d)("keys.form.sections.general.description"),title:e.unref(d)("keys.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.fields.key_id,"onUpdate:modelValue":i[0]||(i[0]=n=>o.fields.key_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-id",help:e.unref(d)("keys.form.fields.id.help"),label:e.unref(d)("keys.form.fields.id.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.id.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.id.placeholder"),readonly:o.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(f,{modelValue:o.fields.name,"onUpdate:modelValue":i[1]||(i[1]=n=>o.fields.name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-name",label:e.unref(d)("keys.form.fields.name.label"),placeholder:e.unref(d)("keys.form.fields.name.placeholder"),readonly:o.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(p,{modelValue:o.fields.key_set,"onUpdate:modelValue":i[2]||(i[2]=n=>o.fields.key_set=n),clearable:R.value,"data-testid":"key-form-key-set","dropdown-footer-text":Z.value,"enable-filtering":"","filter-function":()=>!0,items:O.value,label:e.unref(d)("keys.form.fields.key_set.label"),loading:e.unref(C),placeholder:e.unref(d)("keys.form.fields.key_set.placeholder"),readonly:j.value,width:"100%",onQueryChange:T},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("keys.actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ce,e.toDisplayString(e.unref(d)("keys.search.no_results")),1)]),"selected-item-template":e.withCtx(({item:n})=>[e.createElementVNode("div",null,e.toDisplayString(n.name),1)]),"item-template":e.withCtx(({item:n})=>[e.createElementVNode("div",de,[e.createElementVNode("div",fe,e.toDisplayString(n.name),1),e.createElementVNode("div",ye,e.toDisplayString(n.value),1)])]),_:1},8,["modelValue","clearable","dropdown-footer-text","items","label","loading","placeholder","readonly"]),P.value?(e.openBlock(),e.createElementBlock("p",pe,e.toDisplayString(P.value),1)):e.createCommentVNode("",!0),e.createVNode(f,{modelValue:o.fields.tags,"onUpdate:modelValue":i[3]||(i[3]=n=>o.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-tags",help:e.unref(d)("keys.form.fields.tags.help"),label:e.unref(d)("keys.form.fields.tags.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.tags.placeholder"),readonly:o.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(d)("keys.form.sections.keys.description"),"has-divider":"",title:e.unref(d)("keys.form.sections.keys.title")},{default:e.withCtx(()=>[e.createElementVNode("div",ke,[e.createVNode(p,{modelValue:o.fields.key_format,"onUpdate:modelValue":i[4]||(i[4]=n=>o.fields.key_format=n),"data-testid":"key-form-key-format",items:V,label:e.unref(d)("keys.form.fields.key_format.label"),readonly:o.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"])]),o.fields.key_format==="jwk"?(e.openBlock(),e.createBlock(u,{key:0,modelValue:o.fields.jwk,"onUpdate:modelValue":i[5]||(i[5]=n=>o.fields.jwk=n),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-jwk",label:e.unref(d)("keys.form.fields.jwk.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.jwk.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.jwk.placeholder"),readonly:o.isReadonly,required:""},null,8,["modelValue","label","label-attributes","placeholder","readonly"])):e.createCommentVNode("",!0),o.fields.key_format==="pem"?(e.openBlock(),e.createBlock(u,{key:1,modelValue:o.fields.private_key,"onUpdate:modelValue":i[6]||(i[6]=n=>o.fields.private_key=n),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-private-key",label:e.unref(d)("keys.form.fields.private_key.label"),placeholder:e.unref(d)("keys.form.fields.private_key.placeholder"),readonly:o.isReadonly,required:""},null,8,["modelValue","label","placeholder","readonly"])):e.createCommentVNode("",!0),o.fields.key_format==="pem"?(e.openBlock(),e.createBlock(u,{key:2,modelValue:o.fields.public_key,"onUpdate:modelValue":i[7]||(i[7]=n=>o.fields.public_key=n),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-public-key",label:e.unref(d)("keys.form.fields.public_key.label"),placeholder:e.unref(d)("keys.form.fields.public_key.placeholder"),readonly:o.isReadonly,required:""},null,8,["modelValue","label","placeholder","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-9d0b1ebc"]]),ue={class:"kong-ui-entities-keys-entity-config-card"},ge={key:2},be=e.defineComponent({__name:"KeyConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},keySetId:{type:String,default:null}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(a,{emit:$}){var D;const b=$,l=a,{axiosInstance:y}=s.useAxios((D=l.config)==null?void 0:D.axiosRequestConfig),{convertKeyToTitle:d}=s.useStringHelpers(),{i18n:{t:w}}=z.useI18n(),x=e.computed(()=>l.keySetId?`${B.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):B.form[l.config.app].edit.all),M=e.computed(()=>{var c;return(c=B.form[l.config.app])==null?void 0:c.getKeySet}),S=e.ref(),o=e.ref({}),h=e.ref(l.keySetId||""),V=e.ref(""),j=e.ref(!1),R=async c=>{var m;S.value=c,h.value=(m=c==null?void 0:c.set)==null?void 0:m.id,b("fetch:success",c),A(c)};e.watch(h,async()=>{var m,I;if(!h.value)return;let c=`${l.config.apiBaseUrl}${M.value}`;l.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((m=l.config)==null?void 0:m.controlPlaneId)||"").replace(/{keySetId}/gi,h.value||""):l.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(I=l.config)!=null&&I.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,h.value||""));try{j.value=!0;const{data:g}=await y.get(c,{validateStatus:C=>C===404||C>=200&&C<300});V.value=(g==null?void 0:g.name)||(g==null?void 0:g.id)}catch(g){b("fetch:error",g)}finally{j.value=!1}},{immediate:!0});const A=c=>{var m,I;try{if(c.jwk){const g=JSON.parse(c.jwk);Object.keys(g).forEach(C=>{o.value={...o.value,[`jwk.${C}`]:g[C]}})}else o.value={"pem.public_key":(m=c==null?void 0:c.pem)==null?void 0:m.public_key,"pem.private_key":(I=c==null?void 0:c.pem)==null?void 0:I.private_key}}catch(g){b("fetch:error",g)}return o},q=e.ref({id:{},name:{tooltip:w("keys.form.fields.name.tooltip")},last_updated:{},created:{},set:{label:w("keys.form.fields.set.label"),section:s.ConfigurationSchemaSection.Basic,tooltip:w("keys.form.fields.set.tooltip"),order:5},kid:{label:w("keys.form.fields.kid.label"),section:s.ConfigurationSchemaSection.Basic,tooltip:w("keys.form.fields.kid.tooltip")},tags:{tooltip:w("keys.form.fields.tags.tooltip")},jwk:{label:w("keys.form.fields.jwk.label"),type:s.ConfigurationSchemaType.Json},pem:{section:s.ConfigurationSchemaSection.Advanced,label:w("keys.form.fields.key_format.options.pem"),type:s.ConfigurationSchemaType.Json}});return(c,m)=>{var g,C;const I=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(e.unref(s.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":q.value,"entity-type":e.unref(s.SupportedEntityType).Key,"fetch-url":x.value,"hide-title":a.hideTitle,"onFetch:error":m[0]||(m[0]=k=>c.$emit("fetch:error",k)),"onFetch:success":R,onLoading:m[1]||(m[1]=k=>c.$emit("loading",k))},e.createSlots({set:e.withCtx(({row:k})=>[j.value?(e.openBlock(),e.createBlock(I,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):k.value&&k.value.id===h.value&&V.value?(e.openBlock(),e.createBlock(e.unref(s.InternalLinkItem),{key:1,item:{key:k.value.id,value:V.value,type:e.unref(s.ConfigurationSchemaType).LinkInternal},onClick:L=>c.$emit("navigation-click",k.value.id,"key-sets")},null,8,["item","onClick"])):(e.openBlock(),e.createElementBlock("div",ge,e.toDisplayString("–")))]),_:2},[(g=S.value)!=null&&g.jwk?{name:"jwk",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(o.value),k=>(e.openBlock(),e.createBlock(e.unref(s.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(d)(k),value:o.value[k]}},null,8,["data-testid","item"]))),128))]),key:"0"}:void 0,(C=S.value)!=null&&C.pem?{name:"pem",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(o.value),k=>(e.openBlock(),e.createBlock(e.unref(s.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(d)(k),value:o.value[k]}},null,8,["data-testid","item"]))),128))]),key:"1"}:void 0]),1032,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});_.KeyConfigCard=be,_.KeyForm=me,_.KeyList=se,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-keys"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-i18n"],w["kong-ui-public-entities-shared"]))})(this,function(w,e,Z,te,v,s){"use strict";const oe={keys:{title:"Keys",list:{toolbar_actions:{new_key:"New Key"},table_headers:{name:"Name",key_id:"Key ID",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key",description:"A Key object holds a representation of asymmetric keys in various formats."}},actions:{create:"New Key",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},delete:{title:"Delete a Key",description:"This action cannot be reversed so make sure to check the key usage before deleting."},errors:{general:"Keys could not be retrieved",delete:"The key could not be deleted at this time.",copy:"Failed to copy to clipboard",key_sets:{fetch:"Could not fetch available key sets",invalid:"Please select a valid key set ID"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key."},keys:{title:"Asymmetric Keys",description:"Choose the preferred format for this asymmetric key. Currently only support PEM and JWK format."}},fields:{id:{label:"Key ID",placeholder:"Enter a key ID",tooltip:"An identifier for a key",help:"If using JWK, need to match with the jwk.kid field"},name:{label:"Name",placeholder:"Enter a unique name for this key",tooltip:"The name to associate with the given key"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."},key_set:{label:"Key Set",placeholder:"Select a key set to add into",footer:"Search by exact ID to find key sets not included in the list"},key_format:{label:"Key Format",options:{jwk:"JWK",pem:"PEM"}},jwk:{label:"JWK",placeholder:"Enter a JWK",tooltip:"A JSON Web key represented as a string"},kid:{label:"Key ID",tooltip:"A unique identifier for a key."},set:{label:"Key Set",tooltip:"The id (an UUID) of the key-set with which to associate the key."},private_key:{label:"Private Key",placeholder:"Enter a private key"},public_key:{label:"Public Key",placeholder:"Enter a public key"}}}}};function le(){const i=v.createI18n("en-us",oe);return{i18n:i,i18nT:v.i18nTComponent(i)}}const z={useI18n:le},B="/v2/control-planes/{controlPlaneId}/core-entities",j="/{workspace}",$={list:{konnect:{all:`${B}/keys`,forKeySet:`${B}/key-sets/{keySetId}/keys`},kongManager:{all:`${j}/keys`,forKeySet:`${j}/key-sets/{keySetId}/keys`}},form:{konnect:{create:{all:`${B}/keys`,forKeySet:`${B}/key-sets/{keySetId}/keys`},edit:{all:`${B}/keys/{id}`,forKeySet:`${B}/key-sets/{keySetId}/keys/{id}`},keySets:`${B}/key-sets`,getKeySet:`${B}/key-sets/{keySetId}`},kongManager:{create:{all:`${j}/keys`,forKeySet:`${j}/key-sets/{keySetId}/keys`},edit:{all:`${j}/keys/{id}`,forKeySet:`${j}/key-sets/{keySetId}/keys/{id}`},keySets:`${j}/key-sets`,getKeySet:`${j}/key-sets/{keySetId}`}}},ie={class:"kong-ui-entities-keys-list"},ae=e.defineComponent({__name:"KeyList",props:{config:{type:Object,required:!0,validator:i=>!(!i||!["konnect","kongManager"].includes(i==null?void 0:i.app)||!i.createRoute||!i.getViewRoute||!i.getEditRoute||i.app==="kongManager"&&!i.isExactMatch&&!i.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(i,{emit:T}){var J;const h=T,l=i,{i18n:{t:y}}=z.useI18n(),d=Z.useRouter(),{axiosInstance:I}=s.useAxios((J=l.config)==null?void 0:J.axiosRequestConfig),E=e.ref(1),A=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),V={name:{label:y("keys.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},kid:{label:y("keys.list.table_headers.key_id"),sortable:!0},tags:{label:y("keys.list.table_headers.tags")},id:{label:y("keys.list.table_headers.id"),sortable:!0}},t=V,C=e.computed(()=>{var p,o,a,u;let n=`${l.config.apiBaseUrl}${$.list[l.config.app][l.config.keySetId?"forKeySet":"all"]}`;return l.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((p=l.config)==null?void 0:p.controlPlaneId)||"").replace(/{keySetId}/gi,((o=l.config)==null?void 0:o.keySetId)||""):l.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(a=l.config)!=null&&a.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,((u=l.config)==null?void 0:u.keySetId)||"")),n}),K=e.ref(""),D=e.computed(()=>{const n=l.config.app==="konnect"||l.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:y("keys.search.placeholder")};const p={name:V.name};return{isExactMatch:n,fields:p,schema:l.config.filterSchema}}),{fetcher:P,fetcherState:U}=s.useFetcher(l.config,C.value),O=()=>{K.value=""},F=()=>{E.value++},c=e.ref(null),g=(n,p)=>{const o=n.id;if(!p(o)){S(n,"id");return}b(n,"id")},x=(n,p)=>{const o=JSON.stringify(n);if(!p(o)){h("copy:error",{entity:n,message:y("keys.errors.copy")});return}h("copy:success",{entity:n,message:y("keys.copy.success_brief")})},b=(n,p)=>{h("copy:success",{entity:n,field:p,message:y("keys.copy.success",{val:n[p]})})},S=(n,p)=>{h("copy:error",{entity:n,field:p,message:y("keys.errors.copy")})},m=async n=>{var o;await((o=l.canRetrieve)==null?void 0:o.call(l,n))&&d.push(l.config.getViewRoute(n.id))},W=n=>({label:y("keys.actions.view"),to:l.config.getViewRoute(n)}),G=n=>({label:y("keys.actions.edit"),to:l.config.getEditRoute(n)}),N=e.ref(void 0),R=e.ref(!1),q=e.ref(!1),L=e.ref(""),Q=s.useDeleteUrlBuilder(l.config,C.value),H=n=>{N.value=n,R.value=!0},X=()=>{R.value=!1},Y=async()=>{var n,p,o;if((n=N.value)!=null&&n.id){q.value=!0;try{await I.delete(Q(N.value.id)),q.value=!1,R.value=!1,E.value++,h("delete:success",N.value)}catch(a){L.value=((o=(p=a.response)==null?void 0:p.data)==null?void 0:o.message)||a.message||y("keys.errors.delete"),h("error",a)}finally{q.value=!1}}};e.watch(U,n=>{var p,o,a;if(n.status===s.FetcherStatus.Error){c.value={title:y("keys.errors.general")},(a=(o=(p=n.error)==null?void 0:p.response)==null?void 0:o.data)!=null&&a.message&&(c.value.message=n.error.response.data.message),h("error",n.error);return}c.value=null});const M=e.ref({ctaPath:l.config.createRoute,ctaText:void 0,message:`${y("keys.list.empty_state.description")}${l.config.additionMessageForEmptyState?` ${l.config.additionMessageForEmptyState}`:""}`,title:y("keys.title")});return e.onBeforeMount(async()=>{await l.canCreate()&&(M.value.title=y("keys.list.empty_state.title"),M.value.ctaText=y("keys.actions.create"))}),(n,p)=>{const o=e.resolveComponent("KButton"),a=e.resolveComponent("KCopy"),u=e.resolveComponent("KDropdownItem"),_=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":i.cacheIdentifier,"disable-sorting":A.value,"empty-state-options":M.value,"enable-entity-actions":"","error-message":c.value,fetcher:e.unref(P),"fetcher-cache-key":E.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:K.value,"table-headers":e.unref(t),onClearSearchInput:O,"onClick:row":p[1]||(p[1]=f=>m(f)),onSort:F},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(s.EntityFilter),{modelValue:K.value,"onUpdate:modelValue":p[0]||(p[0]=f=>K.value=f),config:D.value},null,8,["modelValue","config"])]),"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(s.PermissionsWrapper),{"auth-function":()=>i.canCreate()},{default:e.withCtx(()=>[e.createVNode(o,{appearance:"primary","data-testid":"toolbar-add-key",size:i.useActionOutside?"medium":"large",to:i.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(te.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("keys.list.toolbar_actions.new_key")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:f})=>[e.createElementVNode("b",null,e.toDisplayString(f??"-"),1)]),kid:e.withCtx(({rowValue:f})=>[e.createVNode(a,{text:f},null,8,["text"])]),tags:e.withCtx(({rowValue:f})=>[e.createVNode(e.unref(s.TableTags),{tags:f},null,8,["tags"])]),id:e.withCtx(({rowValue:f})=>[e.createVNode(a,{text:f,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:f})=>[e.createVNode(_,null,{default:e.withCtx(({copyToClipboard:r})=>[e.createVNode(u,{"data-testid":"action-entity-copy-id",onClick:k=>g(f,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(_,null,{default:e.withCtx(({copyToClipboard:r})=>[e.createVNode(u,{"data-testid":"action-entity-copy-json",onClick:k=>x(f,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>i.canRetrieve(f)},{default:e.withCtx(()=>[e.createVNode(u,{"data-testid":"action-entity-view","has-divider":"",item:W(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>i.canEdit(f)},{default:e.withCtx(()=>[e.createVNode(u,{"data-testid":"action-entity-edit",item:G(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>i.canDelete(f)},{default:e.withCtx(()=>[e.createVNode(u,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:r=>H(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(s.EntityDeleteModal),{"action-pending":q.value,description:e.unref(y)("keys.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(s.EntityTypes).Key,error:L.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:R.value,onCancel:X,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ee=(i,T)=>{const h=i.__vccOpts||i;for(const[l,y]of T)h[l]=y;return h},ne=ee(ae,[["__scopeId","data-v-71a855ae"]]),re={class:"kong-ui-entities-keys-form"},se={"data-testid":"no-search-results"},ce={class:"select-item-container"},de={class:"select-item-label"},fe={class:"select-item-description"},ye={key:0,class:"invalid-key-set-message","data-testid":"invalid-key-set-message"},pe={"data-testid":"key-format-container"},ke=ee(e.defineComponent({__name:"KeyForm",props:{config:{type:Object,required:!0,validator:i=>!(!i||!["konnect","kongManager"].includes(i==null?void 0:i.app)||i.app==="konnect"&&!i.controlPlaneId||i.app==="kongManager"&&typeof i.workspace!="string"||!i.cancelRoute)},keyId:{type:String,required:!1,default:""},keySetId:{type:String,required:!1,default:null},fixedKeySetId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(i,{emit:T}){var p;const h=T,l=i,y=Z.useRouter(),{i18n:{t:d}}=z.useI18n(),{getMessageFromError:I}=s.useErrors(),{axiosInstance:E}=s.useAxios((p=l.config)==null?void 0:p.axiosRequestConfig),A=e.computed(()=>l.keySetId?$.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):$.form[l.config.app].edit.all),V=e.computed(()=>l.keyId?s.EntityBaseFormType.Edit:s.EntityBaseFormType.Create),t=e.reactive({fields:{name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""},isReadonly:!1,errorMessage:""}),C=e.reactive({name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""}),K=[{label:d("keys.form.fields.key_format.options.jwk"),value:"jwk"},{label:d("keys.form.fields.key_format.options.pem"),value:"pem"}],D=e.computed(()=>t.isReadonly||V.value===s.EntityBaseFormType.Create&&!!l.fixedKeySetId),P=e.computed(()=>!D.value);e.watch(()=>l.fixedKeySetId,o=>{V.value===s.EntityBaseFormType.Create&&(t.fields.key_set=o)},{immediate:!0});const U=e.computed(()=>JSON.stringify(t.fields)!==JSON.stringify(C)&&!!t.fields.key_id&&!!t.fields.key_format&&(t.fields.key_format==="jwk"&&!!t.fields.jwk||t.fields.key_format==="pem"&&!!t.fields.private_key&&!!t.fields.public_key)),O=o=>{var a,u,_,f;t.fields.key_id=(o==null?void 0:o.kid)||"",t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((a=o==null?void 0:o.tags)==null?void 0:a.join(", "))||"",t.fields.key_set=((u=o==null?void 0:o.set)==null?void 0:u.id)||"",t.fields.key_format=o!=null&&o.pem?"pem":"jwk",t.fields.jwk=(o==null?void 0:o.jwk)||"",t.fields.private_key=((_=o==null?void 0:o.pem)==null?void 0:_.private_key)||"",t.fields.public_key=((f=o==null?void 0:o.pem)==null?void 0:f.public_key)||"",Object.assign(C,t.fields)},F=()=>{y.push(l.config.cancelRoute)},c=e.computed(()=>{var a,u;let o=`${l.config.apiBaseUrl}${$.form[l.config.app][V.value][l.keySetId?"forKeySet":"all"]}`;return l.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((a=l.config)==null?void 0:a.controlPlaneId)||""):l.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(u=l.config)!=null&&u.workspace?`/${l.config.workspace}`:"")),o=o.replace(/{id}/gi,l.keyId).replace(/{keySetId}/gi,l.keySetId||""),o}),g=e.computed(()=>{var o,a,u;return{kid:t.fields.key_id,name:t.fields.name||null,tags:((u=(a=(o=t.fields.tags)==null?void 0:o.split(","))==null?void 0:a.map(_=>String(_||"").trim()))==null?void 0:u.filter(_=>_!==""))||[],set:t.fields.key_set?{id:t.fields.key_set}:null,jwk:t.fields.key_format==="jwk"?t.fields.jwk:null,pem:t.fields.key_format==="pem"?{private_key:t.fields.private_key,public_key:t.fields.public_key}:null}}),x=async()=>{var o,a,u,_,f;try{t.isReadonly=!0;let r;if(V.value==="create"?r=await E.post(c.value,g.value):V.value==="edit"&&(r=((o=l.config)==null?void 0:o.app)==="konnect"?await E.put(c.value,g.value):await E.patch(c.value,g.value)),r){const{data:k}=r;t.fields.key_id=(k==null?void 0:k.kid)||"",t.fields.name=(k==null?void 0:k.name)||"",t.fields.tags=((a=k==null?void 0:k.tags)==null?void 0:a.join(", "))||"",t.fields.key_set=((u=k==null?void 0:k.set)==null?void 0:u.id)||"",t.fields.key_format=k!=null&&k.pem?"pem":"jwk",t.fields.jwk=(k==null?void 0:k.jwk)||"",t.fields.private_key=((_=k==null?void 0:k.pem)==null?void 0:_.private_key)||"",t.fields.public_key=((f=k==null?void 0:k.pem)==null?void 0:f.public_key)||"",Object.assign(C,t.fields),h("update",r==null?void 0:r.data)}}catch(r){t.errorMessage=I(r),h("error",r)}finally{t.isReadonly=!1}},{debouncedQueryChange:b,loading:S,allRecords:m,error:W,validationError:G,loadItems:N,results:R}=s.useDebouncedFilter(l.config,$.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),q=o=>{(!o||o!==t.fields.key_set&&o!==C.key_set)&&b(o)},L=e.computed(()=>W.value?d("keys.errors.key_sets.fetch"):""),Q=e.computed(()=>G.value?d("keys.errors.key_sets.invalid"):""),H=e.ref(0),X=e.computed(()=>m.value===void 0),Y=e.computed(()=>{if(X.value)return l.config.app==="konnect"?d("keys.form.fields.key_set.footer"):void 0}),M=e.ref(new Set),J=e.computed(()=>Array.from(M.value).map(a=>({name:a.name||"",label:"",value:a.id,selected:t.fields.key_set===a.id}))),n=o=>{M.value.clear();let a;for(a of o)M.value.add(a)};return e.watch(R,o=>{n(o)},{immediate:!0,deep:!0}),e.watch(J,()=>{H.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await N()}),(o,a)=>{const u=e.resolveComponent("KInput"),_=e.resolveComponent("KSelect"),f=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",re,[e.createVNode(e.unref(s.EntityBaseForm),{"can-submit":U.value,config:i.config,"edit-id":i.keyId,"entity-type":e.unref(s.SupportedEntityType).Key,"error-message":t.errorMessage||L.value,"fetch-url":A.value,"form-fields":g.value,"is-readonly":t.isReadonly,onCancel:F,"onFetch:error":a[8]||(a[8]=r=>o.$emit("error",r)),"onFetch:success":O,onLoading:a[9]||(a[9]=r=>o.$emit("loading",r)),onSubmit:x},{default:e.withCtx(()=>[e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(d)("keys.form.sections.general.description"),title:e.unref(d)("keys.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:t.fields.key_id,"onUpdate:modelValue":a[0]||(a[0]=r=>t.fields.key_id=r),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-id",help:e.unref(d)("keys.form.fields.id.help"),label:e.unref(d)("keys.form.fields.id.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.id.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.id.placeholder"),readonly:t.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(u,{modelValue:t.fields.name,"onUpdate:modelValue":a[1]||(a[1]=r=>t.fields.name=r),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-name",label:e.unref(d)("keys.form.fields.name.label"),placeholder:e.unref(d)("keys.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(_,{modelValue:t.fields.key_set,"onUpdate:modelValue":a[2]||(a[2]=r=>t.fields.key_set=r),clearable:P.value,"data-testid":"key-form-key-set","dropdown-footer-text":Y.value,"enable-filtering":"","filter-function":()=>!0,items:J.value,label:e.unref(d)("keys.form.fields.key_set.label"),loading:e.unref(S),placeholder:e.unref(d)("keys.form.fields.key_set.placeholder"),readonly:D.value,width:"100%",onQueryChange:q},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("keys.actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",se,e.toDisplayString(e.unref(d)("keys.search.no_results")),1)]),"selected-item-template":e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(r.name),1)]),"item-template":e.withCtx(({item:r})=>[e.createElementVNode("div",ce,[e.createElementVNode("div",de,e.toDisplayString(r.name),1),e.createElementVNode("div",fe,e.toDisplayString(r.value),1)])]),_:1},8,["modelValue","clearable","dropdown-footer-text","items","label","loading","placeholder","readonly"]),Q.value?(e.openBlock(),e.createElementBlock("p",ye,e.toDisplayString(Q.value),1)):e.createCommentVNode("",!0),e.createVNode(u,{modelValue:t.fields.tags,"onUpdate:modelValue":a[3]||(a[3]=r=>t.fields.tags=r),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-tags",help:e.unref(d)("keys.form.fields.tags.help"),label:e.unref(d)("keys.form.fields.tags.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(d)("keys.form.sections.keys.description"),"has-divider":"",title:e.unref(d)("keys.form.sections.keys.title")},{default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.createVNode(_,{modelValue:t.fields.key_format,"onUpdate:modelValue":a[4]||(a[4]=r=>t.fields.key_format=r),"data-testid":"key-form-key-format",items:K,label:e.unref(d)("keys.form.fields.key_format.label"),readonly:t.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"])]),t.fields.key_format==="jwk"?(e.openBlock(),e.createBlock(f,{key:0,modelValue:t.fields.jwk,"onUpdate:modelValue":a[5]||(a[5]=r=>t.fields.jwk=r),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-jwk",label:e.unref(d)("keys.form.fields.jwk.label"),"label-attributes":{info:e.unref(d)("keys.form.fields.jwk.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("keys.form.fields.jwk.placeholder"),readonly:t.isReadonly,required:""},null,8,["modelValue","label","label-attributes","placeholder","readonly"])):e.createCommentVNode("",!0),t.fields.key_format==="pem"?(e.openBlock(),e.createBlock(f,{key:1,modelValue:t.fields.private_key,"onUpdate:modelValue":a[6]||(a[6]=r=>t.fields.private_key=r),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-private-key",label:e.unref(d)("keys.form.fields.private_key.label"),placeholder:e.unref(d)("keys.form.fields.private_key.placeholder"),readonly:t.isReadonly,required:""},null,8,["modelValue","label","placeholder","readonly"])):e.createCommentVNode("",!0),t.fields.key_format==="pem"?(e.openBlock(),e.createBlock(f,{key:2,modelValue:t.fields.public_key,"onUpdate:modelValue":a[7]||(a[7]=r=>t.fields.public_key=r),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-public-key",label:e.unref(d)("keys.form.fields.public_key.label"),placeholder:e.unref(d)("keys.form.fields.public_key.placeholder"),readonly:t.isReadonly,required:""},null,8,["modelValue","label","placeholder","readonly"])):e.createCommentVNode("",!0)]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-9d0b1ebc"]]),me={class:"kong-ui-entities-keys-entity-config-card"},ue={key:2},ge=e.defineComponent({__name:"KeyConfigCard",props:{config:{type:Object,required:!0,validator:i=>!(!i||!["konnect","kongManager"].includes(i==null?void 0:i.app)||i.app==="konnect"&&!i.controlPlaneId||i.app==="kongManager"&&typeof i.workspace!="string"||!i.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},keySetId:{type:String,default:null}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(i,{emit:T}){var F;const h=T,l=i,{axiosInstance:y}=s.useAxios((F=l.config)==null?void 0:F.axiosRequestConfig),{convertKeyToTitle:d}=s.useStringHelpers(),{i18n:{t:I}}=z.useI18n(),E=e.computed(()=>l.keySetId?`${$.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):$.form[l.config.app].edit.all),A=e.computed(()=>{var c;return(c=$.form[l.config.app])==null?void 0:c.getKeySet}),V=e.ref(),t=e.ref({}),C=e.ref(l.keySetId||""),K=e.ref(""),D=e.ref(!1),P=async c=>{var g;V.value=c,C.value=(g=c==null?void 0:c.set)==null?void 0:g.id,h("fetch:success",c),U(c)};e.watch(C,async()=>{var g,x;if(!C.value)return;let c=`${l.config.apiBaseUrl}${A.value}`;l.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((g=l.config)==null?void 0:g.controlPlaneId)||"").replace(/{keySetId}/gi,C.value||""):l.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(x=l.config)!=null&&x.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,C.value||""));try{D.value=!0;const{data:b}=await y.get(c,{validateStatus:S=>S===404||S>=200&&S<300});K.value=(b==null?void 0:b.name)||(b==null?void 0:b.id)}catch(b){h("fetch:error",b)}finally{D.value=!1}},{immediate:!0});const U=c=>{var g,x;try{if(c.jwk){const b=JSON.parse(c.jwk);Object.keys(b).forEach(S=>{t.value={...t.value,[`jwk.${S}`]:b[S]}})}else t.value={"pem.public_key":(g=c==null?void 0:c.pem)==null?void 0:g.public_key,"pem.private_key":(x=c==null?void 0:c.pem)==null?void 0:x.private_key}}catch(b){h("fetch:error",b)}return t},O=e.ref({id:{},name:{tooltip:I("keys.form.fields.name.tooltip")},last_updated:{},created:{},set:{label:I("keys.form.fields.set.label"),section:s.ConfigurationSchemaSection.Basic,tooltip:I("keys.form.fields.set.tooltip"),order:5},kid:{label:I("keys.form.fields.kid.label"),section:s.ConfigurationSchemaSection.Basic,tooltip:I("keys.form.fields.kid.tooltip")},tags:{tooltip:I("keys.form.fields.tags.tooltip")},jwk:{label:I("keys.form.fields.jwk.label"),type:s.ConfigurationSchemaType.Json},pem:{section:s.ConfigurationSchemaSection.Advanced,label:I("keys.form.fields.key_format.options.pem"),type:s.ConfigurationSchemaType.Json}});return(c,g)=>{var b,S;const x=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",me,[e.createVNode(e.unref(s.EntityBaseConfigCard),{config:i.config,"config-card-doc":i.configCardDoc,"config-schema":O.value,"entity-type":e.unref(s.SupportedEntityType).Key,"fetch-url":E.value,"hide-title":i.hideTitle,"onFetch:error":g[0]||(g[0]=m=>c.$emit("fetch:error",m)),"onFetch:success":P,onLoading:g[1]||(g[1]=m=>c.$emit("loading",m))},e.createSlots({set:e.withCtx(({row:m})=>[D.value?(e.openBlock(),e.createBlock(x,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):m.value&&m.value.id===C.value&&K.value?(e.openBlock(),e.createBlock(e.unref(s.InternalLinkItem),{key:1,item:{key:m.value.id,value:K.value,type:e.unref(s.ConfigurationSchemaType).LinkInternal},onClick:W=>c.$emit("navigation-click",m.value.id,"key-sets")},null,8,["item","onClick"])):(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString("–")))]),_:2},[(b=V.value)!=null&&b.jwk?{name:"jwk",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(t.value),m=>(e.openBlock(),e.createBlock(e.unref(s.ConfigCardItem),{key:m,"data-testid":`${m}`,item:{key:m,label:e.unref(d)(m),value:t.value[m]}},null,8,["data-testid","item"]))),128))]),key:"0"}:void 0,(S=V.value)!=null&&S.pem?{name:"pem",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(t.value),m=>(e.openBlock(),e.createBlock(e.unref(s.ConfigCardItem),{key:m,"data-testid":`${m}`,item:{key:m,label:e.unref(d)(m),value:t.value[m]}},null,8,["data-testid","item"]))),128))]),key:"1"}:void 0]),1032,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}});w.KeyConfigCard=ge,w.KeyForm=ke,w.KeyList=ne,Object.defineProperty(w,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-keys-list[data-v-22a4f9c4]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-22a4f9c4]{margin-right:12px}.kong-ui-entities-keys-form[data-v-9d0b1ebc],.kong-ui-entities-keys-form .key-form-textarea[data-v-9d0b1ebc]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-9d0b1ebc]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-9d0b1ebc] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-9d0b1ebc]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-9d0b1ebc]{color:#6c7489;font-size:12px}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-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-keys-list[data-v-71a855ae]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-71a855ae]{margin-right:12px}.kong-ui-entities-keys-form[data-v-9d0b1ebc],.kong-ui-entities-keys-form .key-form-textarea[data-v-9d0b1ebc]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-9d0b1ebc]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-9d0b1ebc] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-9d0b1ebc]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-9d0b1ebc]{color:#6c7489;font-size:12px}
@@ -1 +1 @@
1
- {"version":3,"file":"KeyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyList.vue"],"names":[],"mappings":"AAweA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBvC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IAkzBrD,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAhD7E,wBA0DG"}
1
+ {"version":3,"file":"KeyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyList.vue"],"names":[],"mappings":"AAudA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBvC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IAgyBrD,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAhD7E,wBA0DG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-keys",
3
- "version": "3.5.55",
3
+ "version": "3.5.56",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-keys.umd.js",
6
6
  "module": "./dist/entities-keys.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.7.7",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/i18n": "^2.2.9",
30
- "@kong-ui-public/entities-shared": "^3.10.13"
29
+ "@kong-ui-public/entities-shared": "^3.10.14",
30
+ "@kong-ui-public/i18n": "^2.2.9"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.17.2",
@@ -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.9",
40
- "@kong-ui-public/entities-shared": "^3.10.13"
39
+ "@kong-ui-public/entities-shared": "^3.10.14",
40
+ "@kong-ui-public/i18n": "^2.2.9"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",