@kong-ui-public/entities-keys 3.5.33 → 3.5.34
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 +235 -253
- package/dist/entities-keys.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/KeyConfigCard.vue.d.ts +0 -17
- package/dist/types/components/KeyConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/KeyForm.vue.d.ts +0 -17
- package/dist/types/components/KeyForm.vue.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(C,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):(C=typeof globalThis<"u"?globalThis:C||self,e(C["kong-ui-public-entities-keys"]={},C.Vue,C.VueRouter,C.KongIcons,C["kong-ui-public-i18n"],C["kong-ui-public-entities-shared"]))})(this,function(C,e,ee,ie,te,r){"use strict";const ae={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 re(){const a=te.createI18n("en-us",ae);return{i18n:a,i18nT:te.i18nTComponent(a)}}const G={useI18n:re},E="/v2/control-planes/{controlPlaneId}/core-entities",N="/{workspace}",j={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}`}}},ne={class:"kong-ui-entities-keys-list"},se={key:1},ce=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:T}){var Q;const b=T,l=a,{i18n:{t:y}}=G.useI18n(),c=ee.useRouter(),{axiosInstance:S}=r.useAxios((Q=l.config)==null?void 0:Q.axiosRequestConfig),K=e.ref(1),A=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),I={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=I,_=e.computed(()=>{var i,d,p,h;let t=`${l.config.apiBaseUrl}${j.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,((d=l.config)==null?void 0:d.keySetId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(p=l.config)!=null&&p.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,((h=l.config)==null?void 0:h.keySetId)||"")),t}),x=e.ref(""),$=e.computed(()=>{const t=l.config.app==="konnect"||l.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:y("keys.search.placeholder")};const i={name:I.name};return{isExactMatch:t,fields:i,schema:l.config.filterSchema}}),{fetcher:q,fetcherState:P}=r.useFetcher(l.config,_.value),U=()=>{x.value=""},F=()=>{K.value++},n=e.ref(null),u=e.ref(!1),V=(t,i)=>{const d=t.id;if(!i(d)){k(t,"id");return}w(t,"id")},g=(t,i)=>{const d=JSON.stringify(t);if(!i(d)){b("copy:error",{entity:t,message:y("keys.errors.copy")});return}b("copy:success",{entity:t,message:y("keys.copy.success_brief")})},w=(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")})},z=async t=>{var d;await((d=l.canRetrieve)==null?void 0:d.call(l,t))&&c.push(l.config.getViewRoute(t.id))},H=t=>({label:y("keys.actions.view"),to:l.config.getViewRoute(t)}),X=t=>({label:y("keys.actions.edit"),to:l.config.getEditRoute(t)}),B=e.ref(void 0),M=e.ref(!1),R=e.ref(!1),O=e.ref(""),Y=r.useDeleteUrlBuilder(l.config,_.value),Z=t=>{B.value=t,M.value=!0},v=()=>{M.value=!1},J=async()=>{var t,i,d;if((t=B.value)!=null&&t.id){R.value=!0;try{await S.delete(Y(B.value.id)),R.value=!1,M.value=!1,K.value++,b("delete:success",B.value)}catch(p){O.value=((d=(i=p.response)==null?void 0:i.data)==null?void 0:d.message)||p.message||y("keys.errors.delete"),b("error",p)}finally{R.value=!1}}},W=e.ref(!1);e.watch(P,t=>{var i,d,p,h;if(Array.isArray((i=t==null?void 0:t.response)==null?void 0:i.data)&&(W.value=t.response.data.length>0),t.status===r.FetcherStatus.NoRecords?u.value=!0:u.value=!1,t.status===r.FetcherStatus.Error){n.value={title:y("keys.errors.general")},(h=(p=(d=t.error)==null?void 0:d.response)==null?void 0:p.data)!=null&&h.message&&(n.value.message=t.error.response.data.message),b("error",t.error);return}n.value=null});const L=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()&&(L.value.title=y("keys.list.empty_state.title"),L.value.ctaText=y("keys.actions.create"))}),(t,i)=>{const d=e.resolveComponent("KButton"),p=e.resolveComponent("KCopy"),h=e.resolveComponent("KBadge"),s=e.resolveComponent("KTruncate"),f=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(e.unref(r.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":A.value,"empty-state-options":L.value,"enable-entity-actions":"","error-message":n.value,fetcher:e.unref(q),"fetcher-cache-key":K.value,"hide-toolbar":u.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:x.value,"table-headers":e.unref(o),onClearSearchInput:U,"onClick:row":i[2]||(i[2]=m=>z(m)),onSort:F},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(r.EntityFilter),{modelValue:x.value,"onUpdate:modelValue":i[0]||(i[0]=m=>x.value=m),config:$.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(r.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(d,{appearance:"primary","data-testid":"toolbar-add-key",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ie.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("keys.list.toolbar_actions.new_key")),1)]),_:1},8,["size","to"]),[[e.vShow,W.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:m})=>[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)]),kid:e.withCtx(({rowValue:m})=>[e.createVNode(p,{text:m},null,8,["text"])]),tags:e.withCtx(({rowValue:m})=>[(m==null?void 0:m.length)>0?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,D=>(e.openBlock(),e.createBlock(h,{key:D,onClick:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",se,"-"))]),id:e.withCtx(({rowValue:m})=>[e.createVNode(p,{text:m,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:m})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:D})=>[e.createVNode(f,{"data-testid":"action-entity-copy-id",onClick:we=>V(m,D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:D})=>[e.createVNode(f,{"data-testid":"action-entity-copy-json",onClick:we=>g(m,D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(r.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(m)},{default:e.withCtx(()=>[e.createVNode(f,{"data-testid":"action-entity-view","has-divider":"",item:H(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(r.PermissionsWrapper),{"auth-function":()=>a.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(f,{"data-testid":"action-entity-edit",item:X(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(r.PermissionsWrapper),{"auth-function":()=>a.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(f,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:D=>Z(m)},{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(r.EntityDeleteModal),{"action-pending":R.value,description:e.unref(y)("keys.delete.description"),"entity-name":B.value&&(B.value.name||B.value.id),"entity-type":e.unref(r.EntityTypes).Key,error:O.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:M.value,onCancel:v,onProceed:J},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),oe=(a,T)=>{const b=a.__vccOpts||a;for(const[l,y]of T)b[l]=y;return b},de=oe(ce,[["__scopeId","data-v-a99a46e1"]]),fe={class:"kong-ui-entities-keys-form"},ye={"data-testid":"no-search-results"},pe={class:"select-item-container"},ke={class:"select-item-label"},me={class:"select-item-description"},ue={key:0,class:"invalid-key-set-message","data-testid":"invalid-key-set-message"},ge={"data-testid":"key-format-container"},be=oe(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:""},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","loading"],setup(a,{emit:T}){var Q;const b=T,l=a,y=ee.useRouter(),{i18n:{t:c}}=G.useI18n(),{getMessageFromError:S}=r.useErrors(),{axiosInstance:K}=r.useAxios((Q=l.config)==null?void 0:Q.axiosRequestConfig),A=e.computed(()=>l.keySetId?j.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):j.form[l.config.app].edit.all),I=e.computed(()=>l.keyId?r.EntityBaseFormType.Edit:r.EntityBaseFormType.Create),o=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:""}),x=[{label:c("keys.form.fields.key_format.options.jwk"),value:"jwk"},{label:c("keys.form.fields.key_format.options.pem"),value:"pem"}],$=e.computed(()=>o.isReadonly||I.value===r.EntityBaseFormType.Create&&!!l.fixedKeySetId),q=e.computed(()=>!$.value);e.watch(()=>l.fixedKeySetId,t=>{I.value===r.EntityBaseFormType.Create&&(o.fields.key_set=t)},{immediate:!0});const P=e.computed(()=>JSON.stringify(o.fields)!==JSON.stringify(_)&&!!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)),U=t=>{var i,d,p,h;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=((d=t==null?void 0:t.set)==null?void 0:d.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=((h=t==null?void 0:t.pem)==null?void 0:h.public_key)||"",Object.assign(_,o.fields)},F=()=>{y.push(l.config.cancelRoute)},n=e.computed(()=>{var i,d;let t=`${l.config.apiBaseUrl}${j.form[l.config.app][I.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,(d=l.config)!=null&&d.workspace?`/${l.config.workspace}`:"")),t=t.replace(/{id}/gi,l.keyId).replace(/{keySetId}/gi,l.keySetId||""),t}),u=e.computed(()=>{var t,i,d;return{kid:o.fields.key_id,name:o.fields.name||null,tags:((d=(i=(t=o.fields.tags)==null?void 0:t.split(","))==null?void 0:i.map(p=>String(p||"").trim()))==null?void 0:d.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}}),V=async()=>{var t,i,d,p,h;try{o.isReadonly=!0;let s;if(I.value==="create"?s=await K.post(n.value,u.value):I.value==="edit"&&(s=((t=l.config)==null?void 0:t.app)==="konnect"?await K.put(n.value,u.value):await K.patch(n.value,u.value)),s){const{data:f}=s;o.fields.key_id=(f==null?void 0:f.kid)||"",o.fields.name=(f==null?void 0:f.name)||"",o.fields.tags=((i=f==null?void 0:f.tags)==null?void 0:i.join(", "))||"",o.fields.key_set=((d=f==null?void 0:f.set)==null?void 0:d.id)||"",o.fields.key_format=f!=null&&f.pem?"pem":"jwk",o.fields.jwk=(f==null?void 0:f.jwk)||"",o.fields.private_key=((p=f==null?void 0:f.pem)==null?void 0:p.private_key)||"",o.fields.public_key=((h=f==null?void 0:f.pem)==null?void 0:h.public_key)||"",Object.assign(_,o.fields),b("update",s==null?void 0:s.data)}}catch(s){o.errorMessage=S(s),b("error",s)}finally{o.isReadonly=!1}},{debouncedQueryChange:g,loading:w,allRecords:k,error:z,validationError:H,loadItems:X,results:B}=r.useDebouncedFilter(l.config,j.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),M=t=>{(!t||t!==o.fields.key_set&&t!==_.key_set)&&g(t)},R=e.computed(()=>z.value?c("keys.errors.key_sets.fetch"):""),O=e.computed(()=>H.value?c("keys.errors.key_sets.invalid"):""),Y=e.ref(0),Z=e.computed(()=>k.value===void 0),v=e.computed(()=>{if(Z.value)return l.config.app==="konnect"?c("keys.form.fields.key_set.footer"):void 0}),J=e.ref(new Set),W=e.computed(()=>Array.from(J.value).map(i=>({name:i.name||"",label:"",value:i.id,selected:o.fields.key_set===i.id}))),L=t=>{J.value.clear();let i;for(i of t)J.value.add(i)};return e.watch(B,t=>{L(t)},{immediate:!0,deep:!0}),e.watch(W,()=>{Y.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await X()}),(t,i)=>{const d=e.resolveComponent("KInput"),p=e.resolveComponent("KSelect"),h=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(r.EntityBaseForm),{"can-submit":P.value,config:a.config,"edit-id":a.keyId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(r.SupportedEntityType).Key,"error-message":o.errorMessage||R.value,"fetch-url":A.value,"form-fields":u.value,"is-readonly":o.isReadonly,onCancel:F,"onFetch:error":i[8]||(i[8]=s=>t.$emit("error",s)),"onFetch:success":U,onLoading:i[9]||(i[9]=s=>t.$emit("loading",s)),onSubmit:V},{default:e.withCtx(()=>[e.createVNode(e.unref(r.EntityFormSection),{description:e.unref(c)("keys.form.sections.general.description"),title:e.unref(c)("keys.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.fields.key_id,"onUpdate:modelValue":i[0]||(i[0]=s=>o.fields.key_id=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-id",help:e.unref(c)("keys.form.fields.id.help"),label:e.unref(c)("keys.form.fields.id.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.id.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("keys.form.fields.id.placeholder"),readonly:o.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(d,{modelValue:o.fields.name,"onUpdate:modelValue":i[1]||(i[1]=s=>o.fields.name=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-name",label:e.unref(c)("keys.form.fields.name.label"),placeholder:e.unref(c)("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]=s=>o.fields.key_set=s),clearable:q.value,"data-testid":"key-form-key-set","dropdown-footer-text":v.value,"enable-filtering":"","filter-function":()=>!0,items:W.value,label:e.unref(c)("keys.form.fields.key_set.label"),loading:e.unref(w),placeholder:e.unref(c)("keys.form.fields.key_set.placeholder"),readonly:$.value,width:"100%",onQueryChange:M},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("keys.actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ye,e.toDisplayString(e.unref(c)("keys.search.no_results")),1)]),"selected-item-template":e.withCtx(({item:s})=>[e.createElementVNode("div",null,e.toDisplayString(s.name),1)]),"item-template":e.withCtx(({item:s})=>[e.createElementVNode("div",pe,[e.createElementVNode("div",ke,e.toDisplayString(s.name),1),e.createElementVNode("div",me,e.toDisplayString(s.value),1)])]),_:1},8,["modelValue","clearable","dropdown-footer-text","items","label","loading","placeholder","readonly"]),O.value?(e.openBlock(),e.createElementBlock("p",ue,e.toDisplayString(O.value),1)):e.createCommentVNode("",!0),e.createVNode(d,{modelValue:o.fields.tags,"onUpdate:modelValue":i[3]||(i[3]=s=>o.fields.tags=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-tags",help:e.unref(c)("keys.form.fields.tags.help"),label:e.unref(c)("keys.form.fields.tags.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("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(r.EntityFormSection),{description:e.unref(c)("keys.form.sections.keys.description"),"has-divider":"",title:e.unref(c)("keys.form.sections.keys.title")},{default:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createVNode(p,{modelValue:o.fields.key_format,"onUpdate:modelValue":i[4]||(i[4]=s=>o.fields.key_format=s),"data-testid":"key-form-key-format",items:x,label:e.unref(c)("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(h,{key:0,modelValue:o.fields.jwk,"onUpdate:modelValue":i[5]||(i[5]=s=>o.fields.jwk=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-jwk",label:e.unref(c)("keys.form.fields.jwk.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.jwk.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("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(h,{key:1,modelValue:o.fields.private_key,"onUpdate:modelValue":i[6]||(i[6]=s=>o.fields.private_key=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-private-key",label:e.unref(c)("keys.form.fields.private_key.label"),placeholder:e.unref(c)("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(h,{key:2,modelValue:o.fields.public_key,"onUpdate:modelValue":i[7]||(i[7]=s=>o.fields.public_key=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-public-key",label:e.unref(c)("keys.form.fields.public_key.label"),placeholder:e.unref(c)("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","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-c9e601fc"]]),he={class:"kong-ui-entities-keys-entity-config-card"},_e={key:2},Ce=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},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(a,{emit:T}){var F;const b=T,l=a,{axiosInstance:y}=r.useAxios((F=l.config)==null?void 0:F.axiosRequestConfig),{convertKeyToTitle:c}=r.useStringHelpers(),{i18n:{t:S}}=G.useI18n(),K=e.computed(()=>l.keySetId?`${j.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):j.form[l.config.app].edit.all),A=e.computed(()=>{var n;return(n=j.form[l.config.app])==null?void 0:n.getKeySet}),I=e.ref(),o=e.ref({}),_=e.ref(l.keySetId||""),x=e.ref(""),$=e.ref(!1),q=async n=>{var u;I.value=n,_.value=(u=n==null?void 0:n.set)==null?void 0:u.id,b("fetch:success",n),P(n)};e.watch(_,async()=>{var u,V;if(!_.value)return;let n=`${l.config.apiBaseUrl}${A.value}`;l.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((u=l.config)==null?void 0:u.controlPlaneId)||"").replace(/{keySetId}/gi,_.value||""):l.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(V=l.config)!=null&&V.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,_.value||""));try{$.value=!0;const{data:g}=await y.get(n,{validateStatus:w=>w===404||w>=200&&w<300});x.value=(g==null?void 0:g.name)||(g==null?void 0:g.id)}catch(g){b("fetch:error",g)}finally{$.value=!1}},{immediate:!0});const P=n=>{var u,V;try{if(n.jwk){const g=JSON.parse(n.jwk);Object.keys(g).forEach(w=>{o.value={...o.value,[`jwk.${w}`]:g[w]}})}else o.value={"pem.public_key":(u=n==null?void 0:n.pem)==null?void 0:u.public_key,"pem.private_key":(V=n==null?void 0:n.pem)==null?void 0:V.private_key}}catch(g){b("fetch:error",g)}return o},U=e.ref({id:{},name:{tooltip:S("keys.form.fields.name.tooltip")},last_updated:{},created:{},set:{label:S("keys.form.fields.set.label"),section:r.ConfigurationSchemaSection.Basic,tooltip:S("keys.form.fields.set.tooltip"),order:5},kid:{label:S("keys.form.fields.kid.label"),section:r.ConfigurationSchemaSection.Basic,tooltip:S("keys.form.fields.kid.tooltip")},tags:{tooltip:S("keys.form.fields.tags.tooltip")},jwk:{label:S("keys.form.fields.jwk.label"),type:r.ConfigurationSchemaType.Json},pem:{section:r.ConfigurationSchemaSection.Advanced,label:S("keys.form.fields.key_format.options.pem"),type:r.ConfigurationSchemaType.Json}});return(n,u)=>{var g,w;const V=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(r.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":U.value,"enable-terraform":a.enableTerraform,"entity-type":e.unref(r.SupportedEntityType).Key,"fetch-url":K.value,"hide-title":a.hideTitle,"onFetch:error":u[0]||(u[0]=k=>n.$emit("fetch:error",k)),"onFetch:success":q,onLoading:u[1]||(u[1]=k=>n.$emit("loading",k))},e.createSlots({set:e.withCtx(({row:k})=>[$.value?(e.openBlock(),e.createBlock(V,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):k.value&&k.value.id===_.value&&x.value?(e.openBlock(),e.createBlock(e.unref(r.InternalLinkItem),{key:1,item:{key:k.value.id,value:x.value,type:e.unref(r.ConfigurationSchemaType).LinkInternal},onClick:z=>n.$emit("navigation-click",k.value.id,"key-sets")},null,8,["item","onClick"])):(e.openBlock(),e.createElementBlock("div",_e,e.toDisplayString("–")))]),_:2},[(g=I.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(r.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(c)(k),value:o.value[k]}},null,8,["data-testid","item"]))),128))]),key:"0"}:void 0,(w=I.value)!=null&&w.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(r.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(c)(k),value:o.value[k]}},null,8,["data-testid","item"]))),128))]),key:"1"}:void 0]),1032,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])])}}});C.KeyConfigCard=Ce,C.KeyForm=be,C.KeyList=de,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(C,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):(C=typeof globalThis<"u"?globalThis:C||self,e(C["kong-ui-public-entities-keys"]={},C.Vue,C.VueRouter,C.KongIcons,C["kong-ui-public-i18n"],C["kong-ui-public-entities-shared"]))})(this,function(C,e,ee,ie,te,n){"use strict";const ae={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 ne(){const a=te.createI18n("en-us",ae);return{i18n:a,i18nT:te.i18nTComponent(a)}}const G={useI18n:ne},E="/v2/control-planes/{controlPlaneId}/core-entities",N="/{workspace}",j={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}`}}},re={class:"kong-ui-entities-keys-list"},se={key:1},ce=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:D}){var Q;const b=D,l=a,{i18n:{t:y}}=G.useI18n(),c=ee.useRouter(),{axiosInstance:S}=n.useAxios((Q=l.config)==null?void 0:Q.axiosRequestConfig),K=e.ref(1),A=e.computed(()=>l.config.app!=="kongManager"||!!l.config.disableSorting),I={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=I,_=e.computed(()=>{var i,d,p,h;let t=`${l.config.apiBaseUrl}${j.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,((d=l.config)==null?void 0:d.keySetId)||""):l.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(p=l.config)!=null&&p.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,((h=l.config)==null?void 0:h.keySetId)||"")),t}),x=e.ref(""),$=e.computed(()=>{const t=l.config.app==="konnect"||l.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:y("keys.search.placeholder")};const i={name:I.name};return{isExactMatch:t,fields:i,schema:l.config.filterSchema}}),{fetcher:q,fetcherState:P}=n.useFetcher(l.config,_.value),U=()=>{x.value=""},F=()=>{K.value++},r=e.ref(null),u=e.ref(!1),V=(t,i)=>{const d=t.id;if(!i(d)){k(t,"id");return}w(t,"id")},g=(t,i)=>{const d=JSON.stringify(t);if(!i(d)){b("copy:error",{entity:t,message:y("keys.errors.copy")});return}b("copy:success",{entity:t,message:y("keys.copy.success_brief")})},w=(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")})},z=async t=>{var d;await((d=l.canRetrieve)==null?void 0:d.call(l,t))&&c.push(l.config.getViewRoute(t.id))},H=t=>({label:y("keys.actions.view"),to:l.config.getViewRoute(t)}),X=t=>({label:y("keys.actions.edit"),to:l.config.getEditRoute(t)}),B=e.ref(void 0),M=e.ref(!1),R=e.ref(!1),O=e.ref(""),Y=n.useDeleteUrlBuilder(l.config,_.value),Z=t=>{B.value=t,M.value=!0},v=()=>{M.value=!1},J=async()=>{var t,i,d;if((t=B.value)!=null&&t.id){R.value=!0;try{await S.delete(Y(B.value.id)),R.value=!1,M.value=!1,K.value++,b("delete:success",B.value)}catch(p){O.value=((d=(i=p.response)==null?void 0:i.data)==null?void 0:d.message)||p.message||y("keys.errors.delete"),b("error",p)}finally{R.value=!1}}},W=e.ref(!1);e.watch(P,t=>{var i,d,p,h;if(Array.isArray((i=t==null?void 0:t.response)==null?void 0:i.data)&&(W.value=t.response.data.length>0),t.status===n.FetcherStatus.NoRecords?u.value=!0:u.value=!1,t.status===n.FetcherStatus.Error){r.value={title:y("keys.errors.general")},(h=(p=(d=t.error)==null?void 0:d.response)==null?void 0:p.data)!=null&&h.message&&(r.value.message=t.error.response.data.message),b("error",t.error);return}r.value=null});const L=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()&&(L.value.title=y("keys.list.empty_state.title"),L.value.ctaText=y("keys.actions.create"))}),(t,i)=>{const d=e.resolveComponent("KButton"),p=e.resolveComponent("KCopy"),h=e.resolveComponent("KBadge"),s=e.resolveComponent("KTruncate"),f=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",re,[e.createVNode(e.unref(n.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-sorting":A.value,"empty-state-options":L.value,"enable-entity-actions":"","error-message":r.value,fetcher:e.unref(q),"fetcher-cache-key":K.value,"hide-toolbar":u.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-keys-list",query:x.value,"table-headers":e.unref(o),onClearSearchInput:U,"onClick:row":i[2]||(i[2]=m=>z(m)),onSort:F},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(n.EntityFilter),{modelValue:x.value,"onUpdate:modelValue":i[0]||(i[0]=m=>x.value=m),config:$.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(n.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(d,{appearance:"primary","data-testid":"toolbar-add-key",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ie.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(y)("keys.list.toolbar_actions.new_key")),1)]),_:1},8,["size","to"]),[[e.vShow,W.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:m})=>[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)]),kid:e.withCtx(({rowValue:m})=>[e.createVNode(p,{text:m},null,8,["text"])]),tags:e.withCtx(({rowValue:m})=>[(m==null?void 0:m.length)>0?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,T=>(e.openBlock(),e.createBlock(h,{key:T,onClick:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",se,"-"))]),id:e.withCtx(({rowValue:m})=>[e.createVNode(p,{text:m,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:m})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:T})=>[e.createVNode(f,{"data-testid":"action-entity-copy-id",onClick:we=>V(m,T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:T})=>[e.createVNode(f,{"data-testid":"action-entity-copy-json",onClick:we=>g(m,T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)("keys.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(n.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(m)},{default:e.withCtx(()=>[e.createVNode(f,{"data-testid":"action-entity-view","has-divider":"",item:H(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(n.PermissionsWrapper),{"auth-function":()=>a.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(f,{"data-testid":"action-entity-edit",item:X(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(n.PermissionsWrapper),{"auth-function":()=>a.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(f,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:T=>Z(m)},{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(n.EntityDeleteModal),{"action-pending":R.value,description:e.unref(y)("keys.delete.description"),"entity-name":B.value&&(B.value.name||B.value.id),"entity-type":e.unref(n.EntityTypes).Key,error:O.value,"need-confirm":!1,title:e.unref(y)("keys.delete.title"),visible:M.value,onCancel:v,onProceed:J},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),oe=(a,D)=>{const b=a.__vccOpts||a;for(const[l,y]of D)b[l]=y;return b},de=oe(ce,[["__scopeId","data-v-a99a46e1"]]),fe={class:"kong-ui-entities-keys-form"},ye={"data-testid":"no-search-results"},pe={class:"select-item-container"},ke={class:"select-item-label"},me={class:"select-item-description"},ue={key:0,class:"invalid-key-set-message","data-testid":"invalid-key-set-message"},ge={"data-testid":"key-format-container"},be=oe(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:D}){var Q;const b=D,l=a,y=ee.useRouter(),{i18n:{t:c}}=G.useI18n(),{getMessageFromError:S}=n.useErrors(),{axiosInstance:K}=n.useAxios((Q=l.config)==null?void 0:Q.axiosRequestConfig),A=e.computed(()=>l.keySetId?j.form[l.config.app].edit.forKeySet.replace(/{keySetId}/gi,l.keySetId):j.form[l.config.app].edit.all),I=e.computed(()=>l.keyId?n.EntityBaseFormType.Edit:n.EntityBaseFormType.Create),o=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:""}),x=[{label:c("keys.form.fields.key_format.options.jwk"),value:"jwk"},{label:c("keys.form.fields.key_format.options.pem"),value:"pem"}],$=e.computed(()=>o.isReadonly||I.value===n.EntityBaseFormType.Create&&!!l.fixedKeySetId),q=e.computed(()=>!$.value);e.watch(()=>l.fixedKeySetId,t=>{I.value===n.EntityBaseFormType.Create&&(o.fields.key_set=t)},{immediate:!0});const P=e.computed(()=>JSON.stringify(o.fields)!==JSON.stringify(_)&&!!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)),U=t=>{var i,d,p,h;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=((d=t==null?void 0:t.set)==null?void 0:d.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=((h=t==null?void 0:t.pem)==null?void 0:h.public_key)||"",Object.assign(_,o.fields)},F=()=>{y.push(l.config.cancelRoute)},r=e.computed(()=>{var i,d;let t=`${l.config.apiBaseUrl}${j.form[l.config.app][I.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,(d=l.config)!=null&&d.workspace?`/${l.config.workspace}`:"")),t=t.replace(/{id}/gi,l.keyId).replace(/{keySetId}/gi,l.keySetId||""),t}),u=e.computed(()=>{var t,i,d;return{kid:o.fields.key_id,name:o.fields.name||null,tags:((d=(i=(t=o.fields.tags)==null?void 0:t.split(","))==null?void 0:i.map(p=>String(p||"").trim()))==null?void 0:d.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}}),V=async()=>{var t,i,d,p,h;try{o.isReadonly=!0;let s;if(I.value==="create"?s=await K.post(r.value,u.value):I.value==="edit"&&(s=((t=l.config)==null?void 0:t.app)==="konnect"?await K.put(r.value,u.value):await K.patch(r.value,u.value)),s){const{data:f}=s;o.fields.key_id=(f==null?void 0:f.kid)||"",o.fields.name=(f==null?void 0:f.name)||"",o.fields.tags=((i=f==null?void 0:f.tags)==null?void 0:i.join(", "))||"",o.fields.key_set=((d=f==null?void 0:f.set)==null?void 0:d.id)||"",o.fields.key_format=f!=null&&f.pem?"pem":"jwk",o.fields.jwk=(f==null?void 0:f.jwk)||"",o.fields.private_key=((p=f==null?void 0:f.pem)==null?void 0:p.private_key)||"",o.fields.public_key=((h=f==null?void 0:f.pem)==null?void 0:h.public_key)||"",Object.assign(_,o.fields),b("update",s==null?void 0:s.data)}}catch(s){o.errorMessage=S(s),b("error",s)}finally{o.isReadonly=!1}},{debouncedQueryChange:g,loading:w,allRecords:k,error:z,validationError:H,loadItems:X,results:B}=n.useDebouncedFilter(l.config,j.form[l.config.app].keySets,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),M=t=>{(!t||t!==o.fields.key_set&&t!==_.key_set)&&g(t)},R=e.computed(()=>z.value?c("keys.errors.key_sets.fetch"):""),O=e.computed(()=>H.value?c("keys.errors.key_sets.invalid"):""),Y=e.ref(0),Z=e.computed(()=>k.value===void 0),v=e.computed(()=>{if(Z.value)return l.config.app==="konnect"?c("keys.form.fields.key_set.footer"):void 0}),J=e.ref(new Set),W=e.computed(()=>Array.from(J.value).map(i=>({name:i.name||"",label:"",value:i.id,selected:o.fields.key_set===i.id}))),L=t=>{J.value.clear();let i;for(i of t)J.value.add(i)};return e.watch(B,t=>{L(t)},{immediate:!0,deep:!0}),e.watch(W,()=>{Y.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await X()}),(t,i)=>{const d=e.resolveComponent("KInput"),p=e.resolveComponent("KSelect"),h=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(n.EntityBaseForm),{"can-submit":P.value,config:a.config,"edit-id":a.keyId,"entity-type":e.unref(n.SupportedEntityType).Key,"error-message":o.errorMessage||R.value,"fetch-url":A.value,"form-fields":u.value,"is-readonly":o.isReadonly,onCancel:F,"onFetch:error":i[8]||(i[8]=s=>t.$emit("error",s)),"onFetch:success":U,onLoading:i[9]||(i[9]=s=>t.$emit("loading",s)),onSubmit:V},{default:e.withCtx(()=>[e.createVNode(e.unref(n.EntityFormSection),{description:e.unref(c)("keys.form.sections.general.description"),title:e.unref(c)("keys.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.fields.key_id,"onUpdate:modelValue":i[0]||(i[0]=s=>o.fields.key_id=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-id",help:e.unref(c)("keys.form.fields.id.help"),label:e.unref(c)("keys.form.fields.id.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.id.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("keys.form.fields.id.placeholder"),readonly:o.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(d,{modelValue:o.fields.name,"onUpdate:modelValue":i[1]||(i[1]=s=>o.fields.name=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-name",label:e.unref(c)("keys.form.fields.name.label"),placeholder:e.unref(c)("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]=s=>o.fields.key_set=s),clearable:q.value,"data-testid":"key-form-key-set","dropdown-footer-text":v.value,"enable-filtering":"","filter-function":()=>!0,items:W.value,label:e.unref(c)("keys.form.fields.key_set.label"),loading:e.unref(w),placeholder:e.unref(c)("keys.form.fields.key_set.placeholder"),readonly:$.value,width:"100%",onQueryChange:M},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("keys.actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ye,e.toDisplayString(e.unref(c)("keys.search.no_results")),1)]),"selected-item-template":e.withCtx(({item:s})=>[e.createElementVNode("div",null,e.toDisplayString(s.name),1)]),"item-template":e.withCtx(({item:s})=>[e.createElementVNode("div",pe,[e.createElementVNode("div",ke,e.toDisplayString(s.name),1),e.createElementVNode("div",me,e.toDisplayString(s.value),1)])]),_:1},8,["modelValue","clearable","dropdown-footer-text","items","label","loading","placeholder","readonly"]),O.value?(e.openBlock(),e.createElementBlock("p",ue,e.toDisplayString(O.value),1)):e.createCommentVNode("",!0),e.createVNode(d,{modelValue:o.fields.tags,"onUpdate:modelValue":i[3]||(i[3]=s=>o.fields.tags=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-form-tags",help:e.unref(c)("keys.form.fields.tags.help"),label:e.unref(c)("keys.form.fields.tags.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("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(n.EntityFormSection),{description:e.unref(c)("keys.form.sections.keys.description"),"has-divider":"",title:e.unref(c)("keys.form.sections.keys.title")},{default:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createVNode(p,{modelValue:o.fields.key_format,"onUpdate:modelValue":i[4]||(i[4]=s=>o.fields.key_format=s),"data-testid":"key-form-key-format",items:x,label:e.unref(c)("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(h,{key:0,modelValue:o.fields.jwk,"onUpdate:modelValue":i[5]||(i[5]=s=>o.fields.jwk=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-jwk",label:e.unref(c)("keys.form.fields.jwk.label"),"label-attributes":{info:e.unref(c)("keys.form.fields.jwk.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("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(h,{key:1,modelValue:o.fields.private_key,"onUpdate:modelValue":i[6]||(i[6]=s=>o.fields.private_key=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-private-key",label:e.unref(c)("keys.form.fields.private_key.label"),placeholder:e.unref(c)("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(h,{key:2,modelValue:o.fields.public_key,"onUpdate:modelValue":i[7]||(i[7]=s=>o.fields.public_key=s),modelModifiers:{trim:!0},class:"key-form-textarea","data-testid":"key-form-public-key",label:e.unref(c)("keys.form.fields.public_key.label"),placeholder:e.unref(c)("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"]]),he={class:"kong-ui-entities-keys-entity-config-card"},_e={key:2},Ce=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:D}){var F;const b=D,l=a,{axiosInstance:y}=n.useAxios((F=l.config)==null?void 0:F.axiosRequestConfig),{convertKeyToTitle:c}=n.useStringHelpers(),{i18n:{t:S}}=G.useI18n(),K=e.computed(()=>l.keySetId?`${j.form[l.config.app].edit.forKeySet}`.replace(/{keySetId}/gi,l.keySetId):j.form[l.config.app].edit.all),A=e.computed(()=>{var r;return(r=j.form[l.config.app])==null?void 0:r.getKeySet}),I=e.ref(),o=e.ref({}),_=e.ref(l.keySetId||""),x=e.ref(""),$=e.ref(!1),q=async r=>{var u;I.value=r,_.value=(u=r==null?void 0:r.set)==null?void 0:u.id,b("fetch:success",r),P(r)};e.watch(_,async()=>{var u,V;if(!_.value)return;let r=`${l.config.apiBaseUrl}${A.value}`;l.config.app==="konnect"?r=r.replace(/{controlPlaneId}/gi,((u=l.config)==null?void 0:u.controlPlaneId)||"").replace(/{keySetId}/gi,_.value||""):l.config.app==="kongManager"&&(r=r.replace(/\/{workspace}/gi,(V=l.config)!=null&&V.workspace?`/${l.config.workspace}`:"").replace(/{keySetId}/gi,_.value||""));try{$.value=!0;const{data:g}=await y.get(r,{validateStatus:w=>w===404||w>=200&&w<300});x.value=(g==null?void 0:g.name)||(g==null?void 0:g.id)}catch(g){b("fetch:error",g)}finally{$.value=!1}},{immediate:!0});const P=r=>{var u,V;try{if(r.jwk){const g=JSON.parse(r.jwk);Object.keys(g).forEach(w=>{o.value={...o.value,[`jwk.${w}`]:g[w]}})}else o.value={"pem.public_key":(u=r==null?void 0:r.pem)==null?void 0:u.public_key,"pem.private_key":(V=r==null?void 0:r.pem)==null?void 0:V.private_key}}catch(g){b("fetch:error",g)}return o},U=e.ref({id:{},name:{tooltip:S("keys.form.fields.name.tooltip")},last_updated:{},created:{},set:{label:S("keys.form.fields.set.label"),section:n.ConfigurationSchemaSection.Basic,tooltip:S("keys.form.fields.set.tooltip"),order:5},kid:{label:S("keys.form.fields.kid.label"),section:n.ConfigurationSchemaSection.Basic,tooltip:S("keys.form.fields.kid.tooltip")},tags:{tooltip:S("keys.form.fields.tags.tooltip")},jwk:{label:S("keys.form.fields.jwk.label"),type:n.ConfigurationSchemaType.Json},pem:{section:n.ConfigurationSchemaSection.Advanced,label:S("keys.form.fields.key_format.options.pem"),type:n.ConfigurationSchemaType.Json}});return(r,u)=>{var g,w;const V=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(n.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":U.value,"entity-type":e.unref(n.SupportedEntityType).Key,"fetch-url":K.value,"hide-title":a.hideTitle,"onFetch:error":u[0]||(u[0]=k=>r.$emit("fetch:error",k)),"onFetch:success":q,onLoading:u[1]||(u[1]=k=>r.$emit("loading",k))},e.createSlots({set:e.withCtx(({row:k})=>[$.value?(e.openBlock(),e.createBlock(V,{key:0,"data-testid":"key-set-name-loader",type:"spinner"})):k.value&&k.value.id===_.value&&x.value?(e.openBlock(),e.createBlock(e.unref(n.InternalLinkItem),{key:1,item:{key:k.value.id,value:x.value,type:e.unref(n.ConfigurationSchemaType).LinkInternal},onClick:z=>r.$emit("navigation-click",k.value.id,"key-sets")},null,8,["item","onClick"])):(e.openBlock(),e.createElementBlock("div",_e,e.toDisplayString("–")))]),_:2},[(g=I.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(n.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(c)(k),value:o.value[k]}},null,8,["data-testid","item"]))),128))]),key:"0"}:void 0,(w=I.value)!=null&&w.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(n.ConfigCardItem),{key:k,"data-testid":`${k}`,item:{key:k,label:e.unref(c)(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"])])}}});C.KeyConfigCard=Ce,C.KeyForm=be,C.KeyList=de,Object.defineProperty(C,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-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{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-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .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-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .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-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .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-94d27e50] .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-a99a46e1]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-a99a46e1]{margin-right:12px}.kong-ui-entities-keys-form[data-v-c9e601fc],.kong-ui-entities-keys-form .key-form-textarea[data-v-c9e601fc]{width:100%}.kong-ui-entities-keys-form .invalid-key-set-message[data-v-c9e601fc]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}.kong-ui-entities-keys-form[data-v-c9e601fc] .k-select .custom-selected-item{left:0}.kong-ui-entities-keys-form .select-item-container .select-item-label[data-v-c9e601fc]{font-weight:600}.kong-ui-entities-keys-form .select-item-container .select-item-description[data-v-c9e601fc]{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-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{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-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .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-d957ab89]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-d957ab89]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-d957ab89]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-d957ab89] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-d957ab89]{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-a99a46e1]{width:100%}.kong-ui-entities-keys-list .kong-ui-entity-filter-input[data-v-a99a46e1]{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}
|
|
@@ -31,14 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: PropType<string | null>;
|
|
32
32
|
default: null;
|
|
33
33
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Enable display of Terraform code
|
|
36
|
-
* Guarded by FF: khcp-12445-terraform-config-details
|
|
37
|
-
*/
|
|
38
|
-
enableTerraform: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
34
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
35
|
loading: (isLoading: boolean) => void;
|
|
44
36
|
"fetch:error": (error: AxiosError<unknown, any>) => void;
|
|
@@ -73,14 +65,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
65
|
type: PropType<string | null>;
|
|
74
66
|
default: null;
|
|
75
67
|
};
|
|
76
|
-
/**
|
|
77
|
-
* Enable display of Terraform code
|
|
78
|
-
* Guarded by FF: khcp-12445-terraform-config-details
|
|
79
|
-
*/
|
|
80
|
-
enableTerraform: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
68
|
}>> & {
|
|
85
69
|
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
86
70
|
"onFetch:success"?: ((data: Record<string, any>) => any) | undefined;
|
|
@@ -88,7 +72,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
72
|
"onNavigation-click"?: ((id: string, entityType: string) => any) | undefined;
|
|
89
73
|
}, {
|
|
90
74
|
keySetId: string | null;
|
|
91
|
-
enableTerraform: boolean;
|
|
92
75
|
configCardDoc: string;
|
|
93
76
|
hideTitle: boolean;
|
|
94
77
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyConfigCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeyConfigCard.vue"],"names":[],"mappings":"AAkRA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAA0B,MAAM,UAAU,CAAA;AAa1G,OAAO,gDAAgD,CAAA;;IAmdrD,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF;;OAEG;;;;;;IAMH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;;IA/BzC,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF;;OAEG;;;;;;IAMH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;;;;;;AAtC3C,wBA0CG"}
|
|
@@ -27,14 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
required: false;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* Enable display of Terraform code
|
|
32
|
-
* Guarded by FF: khcp-12445-terraform-config-details
|
|
33
|
-
*/
|
|
34
|
-
enableTerraform: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
31
|
update: (data: Record<string, any>) => void;
|
|
40
32
|
error: (error: AxiosError<unknown, any>) => void;
|
|
@@ -64,14 +56,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
56
|
required: false;
|
|
65
57
|
default: string;
|
|
66
58
|
};
|
|
67
|
-
/**
|
|
68
|
-
* Enable display of Terraform code
|
|
69
|
-
* Guarded by FF: khcp-12445-terraform-config-details
|
|
70
|
-
*/
|
|
71
|
-
enableTerraform: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
59
|
}>> & {
|
|
76
60
|
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
77
61
|
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
@@ -80,7 +64,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
64
|
keyId: string;
|
|
81
65
|
keySetId: string | null;
|
|
82
66
|
fixedKeySetId: string;
|
|
83
|
-
enableTerraform: boolean;
|
|
84
67
|
}, {}>;
|
|
85
68
|
export default _default;
|
|
86
69
|
//# sourceMappingURL=KeyForm.vue.d.ts.map
|
|
@@ -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":"AAkgBA,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;;IAwoBrD,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;;;;;;;;;;;;;;;AA/BjF,wBAsCG"}
|
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.34",
|
|
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.6.8",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.3.3",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.9.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.9.19",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.2.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.4.38",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.9.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.9.19",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.2.3"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|