@kong-ui-public/entities-keys 3.5.67 → 3.5.68
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.
package/dist/entities-keys.es.js
CHANGED
|
@@ -789,7 +789,7 @@ const ke = {
|
|
|
789
789
|
]);
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
}), ct = /* @__PURE__ */ Ie(tt, [["__scopeId", "data-v-
|
|
792
|
+
}), ct = /* @__PURE__ */ Ie(tt, [["__scopeId", "data-v-d5413ac4"]]), lt = { class: "kong-ui-entities-keys-entity-config-card" }, it = { key: 2 }, yt = /* @__PURE__ */ fe({
|
|
793
793
|
__name: "KeyConfigCard",
|
|
794
794
|
props: {
|
|
795
795
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1 +1 @@
|
|
|
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},E="/v2/control-planes/{controlPlaneId}/core-entities",N="/{workspace}",B={list:{konnect:{all:`${E}/keys`,forKeySet:`${E}/key-sets/{keySetId}/keys`},kongManager:{all:`${N}/keys`,forKeySet:`${N}/key-sets/{keySetId}/keys`}},form:{konnect:{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}`},kongManager:{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}`}}},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:$}){var J;const h=$,l=i,{i18n:{t:y}}=z.useI18n(),d=Z.useRouter(),{axiosInstance:I}=s.useAxios((J=l.config)==null?void 0:J.axiosRequestConfig),D=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),R={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}},V=R,t=e.computed(()=>{var p,o,a,u;let n=`${l.config.apiBaseUrl}${B.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}),_=e.ref(""),T=e.computed(()=>{const n=l.config.app==="konnect"||l.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:y("keys.search.placeholder")};const p={name:R.name};return{isExactMatch:n,fields:p,schema:l.config.filterSchema}}),{fetcher:j,fetcherState:U,fetcherCacheKey:M}=s.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},t.value),O=()=>{_.value=""},q=()=>{M.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)}),K=e.ref(void 0),A=e.ref(!1),P=e.ref(!1),L=e.ref(""),Q=s.useDeleteUrlBuilder(l.config,t.value),H=n=>{K.value=n,A.value=!0},X=()=>{A.value=!1},Y=async()=>{var n,p,o;if((n=K.value)!=null&&n.id){P.value=!0;try{await I.delete(Q(K.value.id)),P.value=!1,A.value=!1,M.value++,h("delete:success",K.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{P.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 F=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()&&(F.value.title=y("keys.list.empty_state.title"),F.value.ctaText=y("keys.actions.create"))}),(n,p)=>{const o=e.resolveComponent("KButton"),a=e.resolveComponent("KCopy"),u=e.resolveComponent("KDropdownItem"),C=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":i.cacheIdentifier,"disable-sorting":D.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":c.value,fetcher:e.unref(j),"fetcher-cache-key":e.unref(M),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:_.value,"table-headers":e.unref(V),onClearSearchInput:O,"onClick:row":p[1]||(p[1]=f=>m(f)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(s.EntityFilter),{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=f=>_.value=f),config:T.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(C,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(C,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":P.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:L.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:A.value,onCancel:X,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ee=(i,$)=>{const h=i.__vccOpts||i;for(const[l,y]of $)h[l]=y;return h},ne=ee(ae,[["__scopeId","data-v-78f37f9c"]]),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:$}){var p;const h=$,l=i,y=Z.useRouter(),{i18n:{t:d}}=z.useI18n(),{getMessageFromError:I}=s.useErrors(),{axiosInstance:D}=s.useAxios((p=l.config)==null?void 0:p.axiosRequestConfig),R=e.computed(()=>l.keySetId?B.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):B.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:""}),_=e.reactive({name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""}),T=[{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(()=>t.isReadonly||V.value===s.EntityBaseFormType.Create&&!!l.fixedKeySetId),U=e.computed(()=>!j.value);e.watch(()=>l.fixedKeySetId,o=>{V.value===s.EntityBaseFormType.Create&&(t.fields.key_set=o)},{immediate:!0});const M=e.computed(()=>JSON.stringify(t.fields)!==JSON.stringify(_)&&!!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,C,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=((C=o==null?void 0:o.pem)==null?void 0:C.private_key)||"",t.fields.public_key=((f=o==null?void 0:o.pem)==null?void 0:f.public_key)||"",Object.assign(_,t.fields)},q=()=>{y.push(l.config.cancelRoute)},c=e.computed(()=>{var a,u;let o=`${l.config.apiBaseUrl}${B.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(C=>String(C||"").trim()))==null?void 0:u.filter(C=>C!==""))||[],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,C,f;try{t.isReadonly=!0;let r;if(V.value==="create"?r=await D.post(c.value,g.value):V.value==="edit"&&(r=((o=l.config)==null?void 0:o.app)==="konnect"?await D.put(c.value,g.value):await D.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=((C=k==null?void 0:k.pem)==null?void 0:C.private_key)||"",t.fields.public_key=((f=k==null?void 0:k.pem)==null?void 0:f.public_key)||"",Object.assign(_,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:K,results:A}=s.useDebouncedFilter(l.config,B.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),P=o=>{(!o||o!==t.fields.key_set&&o!==_.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}),F=e.ref(new Set),J=e.computed(()=>Array.from(F.value).map(a=>({name:a.name||"",label:"",value:a.id,selected:t.fields.key_set===a.id}))),n=o=>{F.value.clear();let a;for(a of o)F.value.add(a)};return e.watch(A,o=>{n(o)},{immediate:!0,deep:!0}),e.watch(J,()=>{H.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await K()}),(o,a)=>{const u=e.resolveComponent("KInput"),C=e.resolveComponent("KSelect"),f=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",re,[e.createVNode(e.unref(s.EntityBaseForm),{"can-submit":M.value,config:i.config,"edit-id":i.keyId,"entity-type":e.unref(s.SupportedEntityType).Key,"error-message":t.errorMessage||L.value,"fetch-url":R.value,"form-fields":g.value,"is-readonly":t.isReadonly,onCancel:q,"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(C,{modelValue:t.fields.key_set,"onUpdate:modelValue":a[2]||(a[2]=r=>t.fields.key_set=r),clearable:U.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:j.value,width:"100%",onQueryChange:P},{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(C,{modelValue:t.fields.key_format,"onUpdate:modelValue":a[4]||(a[4]=r=>t.fields.key_format=r),"data-testid":"key-form-key-format",items:T,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:$}){var q;const h=$,l=i,{axiosInstance:y}=s.useAxios((q=l.config)==null?void 0:q.axiosRequestConfig),{convertKeyToTitle:d}=s.useStringHelpers(),{i18n:{t:I}}=z.useI18n(),D=e.computed(()=>l.keySetId?`${B.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):B.form[l.config.app].edit.all),R=e.computed(()=>{var c;return(c=B.form[l.config.app])==null?void 0:c.getKeySet}),V=e.ref(),t=e.ref({}),_=e.ref(l.keySetId||""),T=e.ref(""),j=e.ref(!1),U=async c=>{var g;V.value=c,_.value=(g=c==null?void 0:c.set)==null?void 0:g.id,h("fetch:success",c),M(c)};e.watch(_,async()=>{var g,x;if(!_.value)return;let c=`${l.config.apiBaseUrl}${R.value}`;l.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((g=l.config)==null?void 0:g.controlPlaneId)||"").replace(/{keySetId}/gi,_.value||""):l.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(x=l.config)!=null&&x.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,_.value||""));try{j.value=!0;const{data:b}=await y.get(c,{validateStatus:S=>S===404||S>=200&&S<300});T.value=(b==null?void 0:b.name)||(b==null?void 0:b.id)}catch(b){h("fetch:error",b)}finally{j.value=!1}},{immediate:!0});const M=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":D.value,"hide-title":i.hideTitle,"onFetch:error":g[0]||(g[0]=m=>c.$emit("fetch:error",m)),"onFetch:success":U,onLoading:g[1]||(g[1]=m=>c.$emit("loading",m))},e.createSlots({set:e.withCtx(({row:m})=>[j.value?(e.openBlock(),e.createBlock(x,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):m.value&&m.value.id===_.value&&T.value?(e.openBlock(),e.createBlock(e.unref(s.InternalLinkItem),{key:1,item:{key:m.value.id,value:T.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"})});
|
|
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},E="/v2/control-planes/{controlPlaneId}/core-entities",N="/{workspace}",B={list:{konnect:{all:`${E}/keys`,forKeySet:`${E}/key-sets/{keySetId}/keys`},kongManager:{all:`${N}/keys`,forKeySet:`${N}/key-sets/{keySetId}/keys`}},form:{konnect:{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}`},kongManager:{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}`}}},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:$}){var J;const h=$,l=i,{i18n:{t:y}}=z.useI18n(),d=Z.useRouter(),{axiosInstance:I}=s.useAxios((J=l.config)==null?void 0:J.axiosRequestConfig),D=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),R={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}},V=R,t=e.computed(()=>{var p,o,a,u;let n=`${l.config.apiBaseUrl}${B.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}),_=e.ref(""),T=e.computed(()=>{const n=l.config.app==="konnect"||l.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:y("keys.search.placeholder")};const p={name:R.name};return{isExactMatch:n,fields:p,schema:l.config.filterSchema}}),{fetcher:j,fetcherState:U,fetcherCacheKey:M}=s.useFetcher({...l.config,cacheIdentifier:l.cacheIdentifier},t.value),O=()=>{_.value=""},q=()=>{M.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)}),K=e.ref(void 0),A=e.ref(!1),P=e.ref(!1),L=e.ref(""),Q=s.useDeleteUrlBuilder(l.config,t.value),H=n=>{K.value=n,A.value=!0},X=()=>{A.value=!1},Y=async()=>{var n,p,o;if((n=K.value)!=null&&n.id){P.value=!0;try{await I.delete(Q(K.value.id)),P.value=!1,A.value=!1,M.value++,h("delete:success",K.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{P.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 F=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()&&(F.value.title=y("keys.list.empty_state.title"),F.value.ctaText=y("keys.actions.create"))}),(n,p)=>{const o=e.resolveComponent("KButton"),a=e.resolveComponent("KCopy"),u=e.resolveComponent("KDropdownItem"),C=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":i.cacheIdentifier,"disable-sorting":D.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":c.value,fetcher:e.unref(j),"fetcher-cache-key":e.unref(M),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:_.value,"table-headers":e.unref(V),onClearSearchInput:O,"onClick:row":p[1]||(p[1]=f=>m(f)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(s.EntityFilter),{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=f=>_.value=f),config:T.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(C,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(C,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":P.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:L.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:A.value,onCancel:X,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ee=(i,$)=>{const h=i.__vccOpts||i;for(const[l,y]of $)h[l]=y;return h},ne=ee(ae,[["__scopeId","data-v-78f37f9c"]]),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:$}){var p;const h=$,l=i,y=Z.useRouter(),{i18n:{t:d}}=z.useI18n(),{getMessageFromError:I}=s.useErrors(),{axiosInstance:D}=s.useAxios((p=l.config)==null?void 0:p.axiosRequestConfig),R=e.computed(()=>l.keySetId?B.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):B.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:""}),_=e.reactive({name:"",tags:"",key_id:"",key_format:"jwk",key_set:"",jwk:"",private_key:"",public_key:""}),T=[{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(()=>t.isReadonly||V.value===s.EntityBaseFormType.Create&&!!l.fixedKeySetId),U=e.computed(()=>!j.value);e.watch(()=>l.fixedKeySetId,o=>{V.value===s.EntityBaseFormType.Create&&(t.fields.key_set=o)},{immediate:!0});const M=e.computed(()=>JSON.stringify(t.fields)!==JSON.stringify(_)&&!!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,C,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=((C=o==null?void 0:o.pem)==null?void 0:C.private_key)||"",t.fields.public_key=((f=o==null?void 0:o.pem)==null?void 0:f.public_key)||"",Object.assign(_,t.fields)},q=()=>{y.push(l.config.cancelRoute)},c=e.computed(()=>{var a,u;let o=`${l.config.apiBaseUrl}${B.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(C=>String(C||"").trim()))==null?void 0:u.filter(C=>C!==""))||[],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,C,f;try{t.isReadonly=!0;let r;if(V.value==="create"?r=await D.post(c.value,g.value):V.value==="edit"&&(r=((o=l.config)==null?void 0:o.app)==="konnect"?await D.put(c.value,g.value):await D.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=((C=k==null?void 0:k.pem)==null?void 0:C.private_key)||"",t.fields.public_key=((f=k==null?void 0:k.pem)==null?void 0:f.public_key)||"",Object.assign(_,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:K,results:A}=s.useDebouncedFilter(l.config,B.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),P=o=>{(!o||o!==t.fields.key_set&&o!==_.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}),F=e.ref(new Set),J=e.computed(()=>Array.from(F.value).map(a=>({name:a.name||"",label:"",value:a.id,selected:t.fields.key_set===a.id}))),n=o=>{F.value.clear();let a;for(a of o)F.value.add(a)};return e.watch(A,o=>{n(o)},{immediate:!0,deep:!0}),e.watch(J,()=>{H.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await K()}),(o,a)=>{const u=e.resolveComponent("KInput"),C=e.resolveComponent("KSelect"),f=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",re,[e.createVNode(e.unref(s.EntityBaseForm),{"can-submit":M.value,config:i.config,"edit-id":i.keyId,"entity-type":e.unref(s.SupportedEntityType).Key,"error-message":t.errorMessage||L.value,"fetch-url":R.value,"form-fields":g.value,"is-readonly":t.isReadonly,onCancel:q,"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(C,{modelValue:t.fields.key_set,"onUpdate:modelValue":a[2]||(a[2]=r=>t.fields.key_set=r),clearable:U.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:j.value,width:"100%",onQueryChange:P},{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(C,{modelValue:t.fields.key_format,"onUpdate:modelValue":a[4]||(a[4]=r=>t.fields.key_format=r),"data-testid":"key-form-key-format",items:T,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-d5413ac4"]]),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:$}){var q;const h=$,l=i,{axiosInstance:y}=s.useAxios((q=l.config)==null?void 0:q.axiosRequestConfig),{convertKeyToTitle:d}=s.useStringHelpers(),{i18n:{t:I}}=z.useI18n(),D=e.computed(()=>l.keySetId?`${B.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):B.form[l.config.app].edit.all),R=e.computed(()=>{var c;return(c=B.form[l.config.app])==null?void 0:c.getKeySet}),V=e.ref(),t=e.ref({}),_=e.ref(l.keySetId||""),T=e.ref(""),j=e.ref(!1),U=async c=>{var g;V.value=c,_.value=(g=c==null?void 0:c.set)==null?void 0:g.id,h("fetch:success",c),M(c)};e.watch(_,async()=>{var g,x;if(!_.value)return;let c=`${l.config.apiBaseUrl}${R.value}`;l.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((g=l.config)==null?void 0:g.controlPlaneId)||"").replace(/{keySetId}/gi,_.value||""):l.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(x=l.config)!=null&&x.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,_.value||""));try{j.value=!0;const{data:b}=await y.get(c,{validateStatus:S=>S===404||S>=200&&S<300});T.value=(b==null?void 0:b.name)||(b==null?void 0:b.id)}catch(b){h("fetch:error",b)}finally{j.value=!1}},{immediate:!0});const M=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":D.value,"hide-title":i.hideTitle,"onFetch:error":g[0]||(g[0]=m=>c.$emit("fetch:error",m)),"onFetch:success":U,onLoading:g[1]||(g[1]=m=>c.$emit("loading",m))},e.createSlots({set:e.withCtx(({row:m})=>[j.value?(e.openBlock(),e.createBlock(x,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):m.value&&m.value.id===_.value&&T.value?(e.openBlock(),e.createBlock(e.unref(s.InternalLinkItem),{key:1,item:{key:m.value.id,value:T.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-0998625e]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-0998625e]{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-public-entity-empty-state[data-v-6f342249]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:32px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6f342249]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6f342249]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6f342249]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-6f342249]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6f342249]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6f342249]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6f342249]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6f342249]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6f342249] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-entities-keys-list[data-v-78f37f9c]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-78f37f9c]{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-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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-0998625e]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-0998625e]{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-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{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-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-6f342249]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:32px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6f342249]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6f342249]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6f342249]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-6f342249]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6f342249]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-6f342249],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6f342249]{margin:6px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6f342249]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6f342249]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6f342249]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6f342249] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6f342249] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-entities-keys-list[data-v-78f37f9c]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-78f37f9c]{margin-right:12px}.kong-ui-entities-keys-form[data-v-d5413ac4],.kong-ui-entities-keys-form .key-form-textarea[data-v-d5413ac4]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-d5413ac4]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-d5413ac4] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-d5413ac4]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-d5413ac4]{color:#6c7489;font-size:12px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyForm.vue"],"names":[],"mappings":"AAmgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EAIzB,MAAM,UAAU,CAAA;AAYjB,OAAO,gDAAgD,CAAA;;IAopBrD,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;IAQ/E,yFAAyF;;;;;;IAMzF,8FAA8F;;cAE5E,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;IAIzC,+EAA+E;;;;;;;;;;;IAxB/E,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;IAQ/E,yFAAyF;;;;;;IAMzF,8FAA8F;;cAE5E,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;IAIzC,+EAA+E;;;;;;;;;;;;;;;AAnCjF,wBA0CG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-keys",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-keys.umd.js",
|
|
6
6
|
"module": "./dist/entities-keys.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.14.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.14.3",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.2.10"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/
|
|
40
|
-
"@kong-ui-public/
|
|
39
|
+
"@kong-ui-public/i18n": "^2.2.10",
|
|
40
|
+
"@kong-ui-public/entities-shared": "^3.14.3"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|