@kong-ui-public/entities-vaults 1.2.10 → 1.2.11
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.
|
@@ -652,10 +652,10 @@ const nU = {
|
|
|
652
652
|
setup(U, { emit: l }) {
|
|
653
653
|
const F = U;
|
|
654
654
|
Ll((o) => ({
|
|
655
|
-
"
|
|
656
|
-
"
|
|
657
|
-
"
|
|
658
|
-
"
|
|
655
|
+
"77b12766": r.value ? "none" : `solid ${i(Xe)} ${i(Ie)}`,
|
|
656
|
+
"500c4499": a.value && n.value ? "block" : "flex",
|
|
657
|
+
"132371a7": a.value && n.value ? "100%" : F.slim ? "50%" : "25%",
|
|
658
|
+
"1325b782": a.value && n.value ? "100%" : F.slim ? "50%" : "75%"
|
|
659
659
|
}));
|
|
660
660
|
const t = qU(), { i18n: { t: e, formatUnixTimeStamp: Q } } = nU.useI18n(), n = f(() => F.item.value !== void 0 && F.item.value !== null && F.item.value !== ""), d = f(() => !!(F.item.tooltip || t["label-tooltip"])), a = f(() => F.item.type === $.Json || F.item.type === $.JsonArray), r = f(() => F.item.type === $.JsonArray), V = f(() => {
|
|
661
661
|
switch (F.item.type) {
|
|
@@ -776,7 +776,7 @@ const nU = {
|
|
|
776
776
|
};
|
|
777
777
|
default:
|
|
778
778
|
return {
|
|
779
|
-
tag: "
|
|
779
|
+
tag: "KTooltip",
|
|
780
780
|
attrs: {
|
|
781
781
|
"data-testid": `${F.item.key}-plain-text`
|
|
782
782
|
},
|
|
@@ -904,7 +904,7 @@ const nU = {
|
|
|
904
904
|
]);
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
|
-
}), cF = /* @__PURE__ */ ZU(tt, [["__scopeId", "data-v-
|
|
907
|
+
}), cF = /* @__PURE__ */ ZU(tt, [["__scopeId", "data-v-9465176b"]]);
|
|
908
908
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
909
909
|
function el(U) {
|
|
910
910
|
return typeof U > "u" || U === null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(A,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","axios","@kong-ui-public/i18n","@kong/kongponents"],t):(A=typeof globalThis<"u"?globalThis:A||self,t(A["kong-ui-public-entities-vaults"]={},A.Vue,A.VueRouter,A.axios,A["kong-ui-public-i18n"],A.Kongponents))})(this,function(A,t,fU,Ze,sU,pe){"use strict";var PU=(U=>(U.GatewayService="service",U.Route="route",U.Consumer="consumer",U.ConsumerGroup="consumer group",U.Plugin="plugin",U.Upstream="upstream",U.Certificate="certificate",U.CACertificate="ca certificate",U.SNI="SNI",U.Key="key",U.KeySet="key set",U.Vault="vault",U.Application="application",U.Developer="developer",U.acls="ACL Credential",U["basic-auth"]="Basic Auth Credential",U["key-auth"]="Key Auth Credential",U["key-auth-enc"]="Key Auth Encrypted Credential",U.oauth2="OAuth 2.0 Credential",U["hmac-auth"]="HMAC Credential",U.jwt="JWT Credential",U.Target="target",U.Policy="policy",U))(PU||{}),SU=(U=>(U.Edit="edit",U.Create="create",U))(SU||{}),oU=(U=>(U[U.Loading=0]="Loading",U[U.Idle=1]="Idle",U[U.NoResults=2]="NoResults",U[U.Error=3]="Error",U))(oU||{}),G=(U=>(U.ID="id",U.IdArray="id-array",U.Text="plain-text",U.Date="date",U.Redacted="redacted",U.RedactedArray="redacted-array",U.Json="json",U.JsonArray="json-array",U.BadgeTag="badge-tag",U.BadgeStatus="badge-status",U.BadgeMethod="badge-method",U.LinkInternal="link-internal",U.LinkExternal="link-external",U))(G||{}),q=(U=>(U.Basic="basic",U.Advanced="advanced",U.Plugin="plugin",U))(q||{});function bU(U={}){return{axiosInstance:Ze.create({withCredentials:!0,timeout:3e4,...U})}}function ke(){return{debounce:(U,l)=>{let e;return(...n)=>{clearTimeout(e),e=window==null?void 0:window.setTimeout(()=>{U(...n)},l)}}}}const yU="khcp-user-table-preferences",Se={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function We(){const U=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(n){console.error("useTablePreferences(tryParseJson)",n);return}},l=()=>{const e=U(localStorage.getItem(yU));return!e||!Object.keys(e).length?new Map:new Map(Object.entries(e))};return{setTablePreferences:(e,n)=>{try{const F=l();F.set(e,n),localStorage.setItem(yU,JSON.stringify(Object.fromEntries(F.entries())))}catch(F){console.error("useTablePreferences(setTablePreferences)",F)}},getTablePreferences:e=>{const n=l();return(n==null?void 0:n.get(e))||void 0||Se},deleteAllTablePreferences:()=>{localStorage.removeItem(yU)}}}const ue={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},me={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},Te={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},De={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Ce={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},he={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Me={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},fe={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},be={deleteModal:ue,baseForm:me,baseTable:Te,baseConfigCard:De,filter:Ce,debouncedFilter:he,errors:Me,toggleModal:fe};function EU(){const U=sU.createI18n("en-us",be);return{i18n:U,i18nT:sU.i18nTComponent(U)}}function ye(U,l,e,n={fetchedItemsKey:"data",searchKeys:["id"]}){e||(e="100");const{axiosInstance:F}=bU({headers:U.requestHeaders}),{i18n:{t:Q}}=EU(),{debounce:a}=ke(),o=a(async Z=>{await u(Z)},200),d=t.ref(!1),V=t.ref(""),i=t.ref(""),R=t.ref([]),J=t.ref(void 0),r=t.unref(l);let W=`${U.apiBaseUrl}${r}`;U.app==="konnect"?W=W.replace(/{controlPlaneId}/gi,(U==null?void 0:U.controlPlaneId)||""):U.app==="kongManager"&&(W=W.replace(/\/{workspace}/gi,U!=null&&U.workspace?`/${U.workspace}`:""));const S=async()=>{try{d.value=!0;const{data:Z}=await F.get(`${W}?size=${e}`);Z!=null&&Z.next||(J.value=n.fetchedItemsKey in Z?Z[n.fetchedItemsKey]:[]),R.value=n.fetchedItemsKey in Z?Z[n.fetchedItemsKey]:[]}catch{R.value=[],V.value=Q("debouncedFilter.errors.fetch")}finally{d.value=!1}},s=t.ref(""),u=async Z=>{var p,C;if(s.value!==Z)if(s.value=Z||"",J.value===void 0)try{d.value=!0,V.value="",i.value="";let E=W+"";Z&&(E+=`/${Z}`);const{data:j}=await F.get(`${E}?size=${e}`);n.fetchedItemsKey in j?R.value=j[n.fetchedItemsKey]:j!=null&&j.id?R.value=[j]:R.value=[]}catch(E){((p=E==null?void 0:E.response)==null?void 0:p.status)===404?i.value=Q("debouncedFilter.errors.invalid"):(R.value=[],V.value=Q("debouncedFilter.errors.fetch"))}finally{d.value=!1}else d.value=!0,i.value="",Z?(R.value=(C=J.value)==null?void 0:C.filter(E=>{var j;let y=!1;for(const m of n.searchKeys){const f=typeof E[m]=="string"?(j=E[m])==null?void 0:j.toLowerCase():E[m];f!=null&&f.includes(Z.toLowerCase())&&(y=!0)}return y}),(!R.value||!R.value.length)&&(i.value=Q("debouncedFilter.errors.invalid"))):R.value=J.value,d.value=!1};return{loading:d,error:V,validationError:i,results:R,allRecords:J,loadItems:S,debouncedQueryChange:o}}function Ee(U,l){const e=t.unref(l),n=t.computed(()=>U.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${e}`):new URL(e));return n.value.search="",F=>`${n.value.href}/${F}`}function ge(){const{i18n:{t:U}}=EU();return{getMessageFromError:l=>{var e,n,F;if(!l)return U("errors.unexpected");if((e=l==null?void 0:l.response)!=null&&e.data){if(l.response.data.detail)return l.response.data.detail;if((n=l.response.data.details)!=null&&n.length)return l.response.data.details.map(Q=>{let a=U("errors.unexpected");return Q.messages&&typeof Q.messages=="object"&&Q.messages.length&&(a=Q.messages.join(", ")),Q.field?`${Q.field} - ${a}`:a}).join("; ");if(l.response.data.message){const{message:Q}=l.response.data;return Array.isArray(Q)?(F=Q[0])!=null&&F.constraints?Object.values(Q[0].constraints)[0]:Q[0]:Q}if(typeof l.response.data=="string")return l.response.data;if(typeof l.response.data=="object")return Object.keys(l.response.data).map(Q=>`${Q} ${l.response.data[Q]}`).join(", ")}return l.message||U("errors.unexpected")}}}function qU(U,l){const e=t.ref(t.unref(U)),n=t.ref(t.unref(l)),F=t.computed(()=>!!(e.value.app==="konnect"||e.value.isExactMatch)),Q=t.computed(()=>n.value.startsWith("/")?new URL(`${window.location.origin}${n.value}`):new URL(n.value));return a=>{const{page:o,pageSize:d,offset:V,sortColumnKey:i,sortColumnOrder:R,query:J}=a;try{let r=new URL(Q.value.href);return F.value&&J?(r.search="",r=new URL(`${r.href}/${J}/`)):(F.value||new URLSearchParams(J).forEach((W,S)=>{r.searchParams.append(S,W)}),i&&r.searchParams.append("sort_by",i),R==="desc"&&r.searchParams.append("sort_desc","1"),r.searchParams.append("size",String(d))),V&&o!==1&&r.searchParams.append("offset",String(V)),r.href}catch(r){return console.error("RouteList(fetcher)",r),n.value}}}function xe(U,l,e="data"){const n=t.unref(l),{axiosInstance:F}=bU({headers:U.requestHeaders}),Q=qU(U,n),a=t.ref({status:oU.Idle});return{fetcher:async o=>{try{a.value={status:oU.Loading};const d=Q(o),{data:V}=await F.get(d),i=e&&e.replace(/[^\w-_]/gi,"");let R;V[i]&&Array.isArray(V[i])?R=V[i]:R=Object.keys(V).length?[V]:[];const J={data:R,total:R.length,...V.offset?{pagination:{offset:V.offset}}:null};return a.value={status:oU.Idle,response:J},J}catch(d){const V={data:[],total:0};return o.query&&d.response.status===404?(a.value={status:oU.NoResults,response:V,error:d},V):(a.value={status:oU.Error,response:V,error:d},V)}},fetcherState:a}}function je(){return{getPropValue:(U,l)=>(l==null?void 0:l[U])??void 0}}function ze(){return{convertKeyToTitle:(U,l="_")=>U?U.split(l).map(e=>e.toLowerCase()==="id"?e.toUpperCase():e.charAt(0).toUpperCase()+e.substring(1)).join(" "):""}}const $U=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Ut=U=>{if(typeof U!="string")throw new TypeError("Invalid argument expected string");const l=U.match($U);if(!l)throw new Error(`Invalid argument not valid semver ('${U}' received)`);return l.shift(),l},tt=U=>U==="*"||U==="x"||U==="X",et=U=>{const l=parseInt(U,10);return isNaN(l)?U:l},Ye=(U,l)=>typeof U!=typeof l?[String(U),String(l)]:[U,l],we=(U,l)=>{if(tt(U)||tt(l))return 0;const[e,n]=Ye(et(U),et(l));return e>n?1:e<n?-1:0},lt=(U,l)=>{for(let e=0;e<Math.max(U.length,l.length);e++){const n=we(U[e]||"0",l[e]||"0");if(n!==0)return n}return 0},Ge=(U,l)=>{const e=Ut(U),n=Ut(l),F=e.pop(),Q=n.pop(),a=lt(e,n);return a!==0?a:F&&Q?lt(F.split("."),Q.split(".")):F||Q?F?-1:1:0},Ft=(U,l,e)=>{Ie(e);const n=Ge(U,l);return nt[e].includes(n)},nt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Qt=Object.keys(nt),Ie=U=>{if(typeof U!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof U}`);if(Qt.indexOf(U)===-1)throw new Error(`Invalid operator, expected one of ${Qt.join("|")}`)},Oe=U=>typeof U=="string"&&/^[v\d]/.test(U)&&$U.test(U);function Xe(U){const{gatewayInfo:l,supportedRange:e}=U;if(!l)return!0;const{edition:n,version:F}=l;if(!Oe(F))return console.error("Invalid version"),!1;const Q=e[n];if(!Q)return!1;const[a,o]=Q;return!(a&&Ft(F,a,"<")||o&&Ft(F,o,">"))}function Le(U){const l=t.ref(0),e=t.ref(0),n=t.ref(!1);return t.watch(U,F=>{F&&!n.value&&(l.value=F.offsetWidth,e.value=F.scrollWidth,n.value=!0)}),{isTruncated:t.computed(()=>l.value<e.value)}}const H={useAxios:bU,useDebouncedFilter:ye,useDeleteUrlBuilder:Ee,useErrors:ge,useFetcher:xe,useFetchUrlBuilder:qU,useHelpers:je,useStringHelpers:ze,useI18n:EU,useGatewayFeatureSupported:Xe,useTruncationDetector:Le},He={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},Ke="Copy to clipboard",ve={message:He,iconTitle:Ke},Ae="kong-ui-copy-uuid-notify",_e={class:"kong-ui-copy-uuid"},Pe=["onClick"],at=15,qe=t.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:U=>["uuid","hidden","redacted","deleted"].includes(U)}},emits:["success","error"],setup(U,{emit:l}){const e=U,{t:n}=sU.createI18n("en-us",ve),F=e.notify||t.inject(Ae,()=>{}),Q=t.computed(()=>e.idTooltip?{label:e.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:e.uuid}),a=t.computed(()=>!!(e.tooltip&&e.successTooltip)),o=t.ref(e.tooltip),d=t.computed(()=>e.tooltip?{label:o.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),V=t.computed(()=>e.format==="redacted"?"*****":e.format==="deleted"?`*${e.uuid.substring(0,5)}`:e.uuid),i=J=>{o.value=J,setTimeout(()=>{o.value=e.tooltip},1800)},R=J=>{if(!J(e.uuid)){typeof F=="function"&&F({type:"error",message:n("message.fail")}),a.value?i(n("message.fail")):l("error",e.uuid);return}const r=e.uuid.length>at,W=e.format==="hidden"||e.format==="redacted"?n("message.success.prefix"):`"${e.uuid.substring(0,at)+(r?"...":"")}"`;typeof F=="function"&&F({type:"success",message:`${W}${n("message.success.content")}`}),a.value?i(e.successTooltip):l("success",e.uuid)};return(J,r)=>{const W=t.resolveComponent("KIcon"),S=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",_e,[U.format!=="hidden"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.idTooltip?"KTooltip":"div"),t.mergeProps({key:0},Q.value,{"data-testid":"copy-id"}),{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["uuid-container",U.truncated?"truncated-uuid":null,U.useMono?"mono":null])},t.toDisplayString(V.value),3)]),_:1},16)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.tooltip?"KTooltip":"div"),t.mergeProps(d.value,{class:"uuid-icon-wrapper"}),{default:t.withCtx(()=>[t.createVNode(S,null,{default:t.withCtx(({copyToClipboard:s})=>[t.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:t.withModifiers(u=>R(s),["stop"])},[t.createVNode(W,{class:"uuid-icon",color:U.iconColor,"hide-title":!!U.tooltip||void 0,icon:"copy",size:"16",title:t.unref(n)("iconTitle")},null,8,["color","hide-title","title"])],8,Pe)]),_:1})]),_:1},16))])}}}),$e=(U,l)=>{const e=U.__vccOpts||U;for(const[n,F]of l)e[n]=F;return e},dt=$e(qe,[["__scopeId","data-v-bfdaf6f7"]]),Ul={key:0,class:"config-card-fieldset-title"},tl=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(U){const l=U,{i18n:{t:e}}=H.useI18n(),{convertKeyToTitle:n}=H.useStringHelpers(),F=t.computed(()=>l.item.key??"json-array-item"),Q=t.computed(()=>l.item.value??l.item),a=t.computed(()=>{const d=JSON.parse(JSON.stringify(Q.value));return l.isArrayItem&&delete d.name,d}),o=t.computed(()=>{var d;return l.isArrayItem?(d=Q.value)!=null&&d.name?n(Q.value.name,"_"):e("baseConfigCard.general.entryTitle",{index:l.index}):""});return(d,V)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(U.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[U.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Ul,[t.createElementVNode("b",null,t.toDisplayString(o.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(i,R)=>(t.openBlock(),t.createBlock(gU,{key:`${F.value}-property-${R}`,item:{key:i,label:t.unref(n)(i),value:a.value[i]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),lU=(U,l)=>{const e=U.__vccOpts||U;for(const[n,F]of l)e[n]=F;return e},ot=lU(tl,[["__scopeId","data-v-68ca83ec"]]),el=lU(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(U){const{i18n:{t:l}}=H.useI18n();return(e,n)=>{const F=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(F,{appearance:"btn-link",class:"navigation-button",onClick:n[0]||(n[0]=Q=>e.$emit("navigation-click",U.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.item.value||t.unref(l)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-7410504d"]]),ll=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(U){const{i18n:{t:l}}=H.useI18n();return(e,n)=>{const F=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(F,{appearance:U.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.status?t.unref(l)("baseConfigCard.statusBadge.enabledLabel"):t.unref(l)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Fl="#0044f4",nl="#e0e4ea",Ql="#3a3f51",al="1px",dl="20px",ol={class:"config-card-details-row"},rl=["data-testid"],il=["data-testid"],Vl=["data-testid"],Rl=["data-testid"],cl={key:1},Bl=["data-testid"],sl=["data-testid"],Nl=["data-testid"],Jl=["data-testid"],Zl={name:"ConfigCardItem",components:{CopyUuid:dt,JsonCardItem:ot,StatusBadge:ll,InternalLinkItem:el}},pl=t.defineComponent({...Zl,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(U,{emit:l}){const e=U;t.useCssVars(r=>({"11ca2174":V.value?"none":`solid ${t.unref(al)} ${t.unref(nl)}`,"57a0f6a7":d.value&&a.value?"block":"flex","66118e4e":d.value&&a.value?"100%":e.slim?"50%":"25%","660d0298":d.value&&a.value?"100%":e.slim?"50%":"75%"}));const n=t.useSlots(),{i18n:{t:F,formatUnixTimeStamp:Q}}=H.useI18n(),a=t.computed(()=>e.item.value!==void 0&&e.item.value!==null&&e.item.value!==""),o=t.computed(()=>!!(e.item.tooltip||n["label-tooltip"])),d=t.computed(()=>e.item.type===G.Json||e.item.type===G.JsonArray),V=t.computed(()=>e.item.type===G.JsonArray),i=t.computed(()=>{switch(e.item.type){case G.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${e.item.key}-copy-uuid`,"success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,uuid:e.item.value,notify:()=>{}}};case G.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,notify:()=>{}}};case G.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${e.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,uuid:e.item.value,notify:()=>{}}};case G.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,notify:()=>{}}};case G.Date:return{tag:"div",attrs:{"data-testid":`${e.item.key}-date`},text:Q(e.item.value)};case G.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${e.item.key}-badge-status`,status:e.item.value}};case G.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case G.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case G.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${e.item.key}-internal-link`,item:e.item,onNavigationClick:r=>{l("navigation-click",r)}}};case G.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${e.item.key}-external-link`,href:e.item.value},text:e.item.value};case G.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${e.item.key}-json-content`,item:e.item}};case G.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${e.item.key}-json-array-content`,item:e.item}};default:return{tag:"div",attrs:{"data-testid":`${e.item.key}-plain-text`},text:e.item.value}}}),R=t.ref(),{isTruncated:J}=H.useTruncationDetector(R);return(r,W)=>{const S=t.resolveComponent("KLabel"),s=t.resolveComponent("KBadge"),u=t.resolveComponent("KMethodBadge"),Z=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",ol,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${U.item.key}-label`},[t.renderSlot(r.$slots,"label",{item:U.item},()=>[t.createVNode(S,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.item.label)+" ",1)]),_:2},[o.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${U.item.key}-label-tooltip`},[t.renderSlot(r.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(U.item.tooltip),1)],!0)],8,il)]),key:"0"}:void 0]),1024)],!0)],8,rl),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${U.item.key}-property-value`},[t.renderSlot(r.$slots,U.item.key,{rowValue:U.item.value},()=>[a.value?(t.openBlock(),t.createElementBlock("div",cl,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value.tag),t.normalizeProps(t.guardReactiveProps(i.value.attrs)),{default:t.withCtx(()=>[i.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${U.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(s,{key:`${U.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${U.item.key}-badge-tag-${C}`,"truncation-tooltip":p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p),1)]),_:2},1032,["data-testid","truncation-tooltip"]))),128))],8,Bl)):t.createCommentVNode("",!0),i.value.additionalComponent==="CopyUuid"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${U.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(t.unref(dt),t.mergeProps(i.value.childAttrs,{key:`${U.item.key}-copy-uuid-${C}`,"data-testid":`${U.item.key}-copy-uuid-${C}`,uuid:p}),null,16,["data-testid","uuid"]))),128))],8,sl)):i.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${U.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(u,{key:`${U.item.key}-badge-method-${C}`,class:"config-badge","data-testid":`${U.item.key}-badge-method-${C}`,"is-rounded":"",label:p,method:t.unref(pe.MethodsArray).includes(p.toLowerCase())?p.toLowerCase():"custom"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p),1)]),_:2},1032,["data-testid","label","method"]))),128))],8,Nl)):t.createCommentVNode("",!0),i.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${e.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(ot,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:p},null,8,["index","item"]))),128))],8,Jl)):(t.openBlock(),t.createBlock(Z,{key:4,label:t.unref(J)&&U.item.value},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:R,class:t.normalizeClass(["attrs-data-text",{truncated:U.truncated}])},t.toDisplayString(i.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${U.item.key}-no-value`}," – ",8,Rl))],!0)],8,Vl)])}}}),gU=lU(pl,[["__scopeId","data-v-f68d4fa1"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function rt(U){return typeof U>"u"||U===null}function kl(U){return typeof U=="object"&&U!==null}function Sl(U){return Array.isArray(U)?U:rt(U)?[]:[U]}function Wl(U,l){var e,n,F,Q;if(l)for(Q=Object.keys(l),e=0,n=Q.length;e<n;e+=1)F=Q[e],U[F]=l[F];return U}function ul(U,l){var e="",n;for(n=0;n<l;n+=1)e+=U;return e}function ml(U){return U===0&&Number.NEGATIVE_INFINITY===1/U}var Tl=rt,Dl=kl,Cl=Sl,hl=ul,Ml=ml,fl=Wl,L={isNothing:Tl,isObject:Dl,toArray:Cl,repeat:hl,isNegativeZero:Ml,extend:fl};function it(U,l){var e="",n=U.reason||"(unknown reason)";return U.mark?(U.mark.name&&(e+='in "'+U.mark.name+'" '),e+="("+(U.mark.line+1)+":"+(U.mark.column+1)+")",!l&&U.mark.snippet&&(e+=`
|
|
1
|
+
(function(A,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","axios","@kong-ui-public/i18n","@kong/kongponents"],t):(A=typeof globalThis<"u"?globalThis:A||self,t(A["kong-ui-public-entities-vaults"]={},A.Vue,A.VueRouter,A.axios,A["kong-ui-public-i18n"],A.Kongponents))})(this,function(A,t,fU,Ze,sU,pe){"use strict";var PU=(U=>(U.GatewayService="service",U.Route="route",U.Consumer="consumer",U.ConsumerGroup="consumer group",U.Plugin="plugin",U.Upstream="upstream",U.Certificate="certificate",U.CACertificate="ca certificate",U.SNI="SNI",U.Key="key",U.KeySet="key set",U.Vault="vault",U.Application="application",U.Developer="developer",U.acls="ACL Credential",U["basic-auth"]="Basic Auth Credential",U["key-auth"]="Key Auth Credential",U["key-auth-enc"]="Key Auth Encrypted Credential",U.oauth2="OAuth 2.0 Credential",U["hmac-auth"]="HMAC Credential",U.jwt="JWT Credential",U.Target="target",U.Policy="policy",U))(PU||{}),SU=(U=>(U.Edit="edit",U.Create="create",U))(SU||{}),oU=(U=>(U[U.Loading=0]="Loading",U[U.Idle=1]="Idle",U[U.NoResults=2]="NoResults",U[U.Error=3]="Error",U))(oU||{}),G=(U=>(U.ID="id",U.IdArray="id-array",U.Text="plain-text",U.Date="date",U.Redacted="redacted",U.RedactedArray="redacted-array",U.Json="json",U.JsonArray="json-array",U.BadgeTag="badge-tag",U.BadgeStatus="badge-status",U.BadgeMethod="badge-method",U.LinkInternal="link-internal",U.LinkExternal="link-external",U))(G||{}),q=(U=>(U.Basic="basic",U.Advanced="advanced",U.Plugin="plugin",U))(q||{});function bU(U={}){return{axiosInstance:Ze.create({withCredentials:!0,timeout:3e4,...U})}}function ke(){return{debounce:(U,l)=>{let e;return(...n)=>{clearTimeout(e),e=window==null?void 0:window.setTimeout(()=>{U(...n)},l)}}}}const yU="khcp-user-table-preferences",Se={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function We(){const U=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(n){console.error("useTablePreferences(tryParseJson)",n);return}},l=()=>{const e=U(localStorage.getItem(yU));return!e||!Object.keys(e).length?new Map:new Map(Object.entries(e))};return{setTablePreferences:(e,n)=>{try{const F=l();F.set(e,n),localStorage.setItem(yU,JSON.stringify(Object.fromEntries(F.entries())))}catch(F){console.error("useTablePreferences(setTablePreferences)",F)}},getTablePreferences:e=>{const n=l();return(n==null?void 0:n.get(e))||void 0||Se},deleteAllTablePreferences:()=>{localStorage.removeItem(yU)}}}const ue={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},me={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},Te={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},De={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Ce={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},he={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Me={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},fe={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},be={deleteModal:ue,baseForm:me,baseTable:Te,baseConfigCard:De,filter:Ce,debouncedFilter:he,errors:Me,toggleModal:fe};function EU(){const U=sU.createI18n("en-us",be);return{i18n:U,i18nT:sU.i18nTComponent(U)}}function ye(U,l,e,n={fetchedItemsKey:"data",searchKeys:["id"]}){e||(e="100");const{axiosInstance:F}=bU({headers:U.requestHeaders}),{i18n:{t:Q}}=EU(),{debounce:a}=ke(),o=a(async Z=>{await u(Z)},200),d=t.ref(!1),V=t.ref(""),i=t.ref(""),R=t.ref([]),J=t.ref(void 0),r=t.unref(l);let W=`${U.apiBaseUrl}${r}`;U.app==="konnect"?W=W.replace(/{controlPlaneId}/gi,(U==null?void 0:U.controlPlaneId)||""):U.app==="kongManager"&&(W=W.replace(/\/{workspace}/gi,U!=null&&U.workspace?`/${U.workspace}`:""));const S=async()=>{try{d.value=!0;const{data:Z}=await F.get(`${W}?size=${e}`);Z!=null&&Z.next||(J.value=n.fetchedItemsKey in Z?Z[n.fetchedItemsKey]:[]),R.value=n.fetchedItemsKey in Z?Z[n.fetchedItemsKey]:[]}catch{R.value=[],V.value=Q("debouncedFilter.errors.fetch")}finally{d.value=!1}},s=t.ref(""),u=async Z=>{var p,C;if(s.value!==Z)if(s.value=Z||"",J.value===void 0)try{d.value=!0,V.value="",i.value="";let E=W+"";Z&&(E+=`/${Z}`);const{data:j}=await F.get(`${E}?size=${e}`);n.fetchedItemsKey in j?R.value=j[n.fetchedItemsKey]:j!=null&&j.id?R.value=[j]:R.value=[]}catch(E){((p=E==null?void 0:E.response)==null?void 0:p.status)===404?i.value=Q("debouncedFilter.errors.invalid"):(R.value=[],V.value=Q("debouncedFilter.errors.fetch"))}finally{d.value=!1}else d.value=!0,i.value="",Z?(R.value=(C=J.value)==null?void 0:C.filter(E=>{var j;let y=!1;for(const m of n.searchKeys){const f=typeof E[m]=="string"?(j=E[m])==null?void 0:j.toLowerCase():E[m];f!=null&&f.includes(Z.toLowerCase())&&(y=!0)}return y}),(!R.value||!R.value.length)&&(i.value=Q("debouncedFilter.errors.invalid"))):R.value=J.value,d.value=!1};return{loading:d,error:V,validationError:i,results:R,allRecords:J,loadItems:S,debouncedQueryChange:o}}function Ee(U,l){const e=t.unref(l),n=t.computed(()=>U.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${e}`):new URL(e));return n.value.search="",F=>`${n.value.href}/${F}`}function ge(){const{i18n:{t:U}}=EU();return{getMessageFromError:l=>{var e,n,F;if(!l)return U("errors.unexpected");if((e=l==null?void 0:l.response)!=null&&e.data){if(l.response.data.detail)return l.response.data.detail;if((n=l.response.data.details)!=null&&n.length)return l.response.data.details.map(Q=>{let a=U("errors.unexpected");return Q.messages&&typeof Q.messages=="object"&&Q.messages.length&&(a=Q.messages.join(", ")),Q.field?`${Q.field} - ${a}`:a}).join("; ");if(l.response.data.message){const{message:Q}=l.response.data;return Array.isArray(Q)?(F=Q[0])!=null&&F.constraints?Object.values(Q[0].constraints)[0]:Q[0]:Q}if(typeof l.response.data=="string")return l.response.data;if(typeof l.response.data=="object")return Object.keys(l.response.data).map(Q=>`${Q} ${l.response.data[Q]}`).join(", ")}return l.message||U("errors.unexpected")}}}function qU(U,l){const e=t.ref(t.unref(U)),n=t.ref(t.unref(l)),F=t.computed(()=>!!(e.value.app==="konnect"||e.value.isExactMatch)),Q=t.computed(()=>n.value.startsWith("/")?new URL(`${window.location.origin}${n.value}`):new URL(n.value));return a=>{const{page:o,pageSize:d,offset:V,sortColumnKey:i,sortColumnOrder:R,query:J}=a;try{let r=new URL(Q.value.href);return F.value&&J?(r.search="",r=new URL(`${r.href}/${J}/`)):(F.value||new URLSearchParams(J).forEach((W,S)=>{r.searchParams.append(S,W)}),i&&r.searchParams.append("sort_by",i),R==="desc"&&r.searchParams.append("sort_desc","1"),r.searchParams.append("size",String(d))),V&&o!==1&&r.searchParams.append("offset",String(V)),r.href}catch(r){return console.error("RouteList(fetcher)",r),n.value}}}function xe(U,l,e="data"){const n=t.unref(l),{axiosInstance:F}=bU({headers:U.requestHeaders}),Q=qU(U,n),a=t.ref({status:oU.Idle});return{fetcher:async o=>{try{a.value={status:oU.Loading};const d=Q(o),{data:V}=await F.get(d),i=e&&e.replace(/[^\w-_]/gi,"");let R;V[i]&&Array.isArray(V[i])?R=V[i]:R=Object.keys(V).length?[V]:[];const J={data:R,total:R.length,...V.offset?{pagination:{offset:V.offset}}:null};return a.value={status:oU.Idle,response:J},J}catch(d){const V={data:[],total:0};return o.query&&d.response.status===404?(a.value={status:oU.NoResults,response:V,error:d},V):(a.value={status:oU.Error,response:V,error:d},V)}},fetcherState:a}}function je(){return{getPropValue:(U,l)=>(l==null?void 0:l[U])??void 0}}function ze(){return{convertKeyToTitle:(U,l="_")=>U?U.split(l).map(e=>e.toLowerCase()==="id"?e.toUpperCase():e.charAt(0).toUpperCase()+e.substring(1)).join(" "):""}}const $U=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Ut=U=>{if(typeof U!="string")throw new TypeError("Invalid argument expected string");const l=U.match($U);if(!l)throw new Error(`Invalid argument not valid semver ('${U}' received)`);return l.shift(),l},tt=U=>U==="*"||U==="x"||U==="X",et=U=>{const l=parseInt(U,10);return isNaN(l)?U:l},Ye=(U,l)=>typeof U!=typeof l?[String(U),String(l)]:[U,l],we=(U,l)=>{if(tt(U)||tt(l))return 0;const[e,n]=Ye(et(U),et(l));return e>n?1:e<n?-1:0},lt=(U,l)=>{for(let e=0;e<Math.max(U.length,l.length);e++){const n=we(U[e]||"0",l[e]||"0");if(n!==0)return n}return 0},Ge=(U,l)=>{const e=Ut(U),n=Ut(l),F=e.pop(),Q=n.pop(),a=lt(e,n);return a!==0?a:F&&Q?lt(F.split("."),Q.split(".")):F||Q?F?-1:1:0},Ft=(U,l,e)=>{Ie(e);const n=Ge(U,l);return nt[e].includes(n)},nt={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Qt=Object.keys(nt),Ie=U=>{if(typeof U!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof U}`);if(Qt.indexOf(U)===-1)throw new Error(`Invalid operator, expected one of ${Qt.join("|")}`)},Oe=U=>typeof U=="string"&&/^[v\d]/.test(U)&&$U.test(U);function Xe(U){const{gatewayInfo:l,supportedRange:e}=U;if(!l)return!0;const{edition:n,version:F}=l;if(!Oe(F))return console.error("Invalid version"),!1;const Q=e[n];if(!Q)return!1;const[a,o]=Q;return!(a&&Ft(F,a,"<")||o&&Ft(F,o,">"))}function Le(U){const l=t.ref(0),e=t.ref(0),n=t.ref(!1);return t.watch(U,F=>{F&&!n.value&&(l.value=F.offsetWidth,e.value=F.scrollWidth,n.value=!0)}),{isTruncated:t.computed(()=>l.value<e.value)}}const H={useAxios:bU,useDebouncedFilter:ye,useDeleteUrlBuilder:Ee,useErrors:ge,useFetcher:xe,useFetchUrlBuilder:qU,useHelpers:je,useStringHelpers:ze,useI18n:EU,useGatewayFeatureSupported:Xe,useTruncationDetector:Le},He={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},Ke="Copy to clipboard",ve={message:He,iconTitle:Ke},Ae="kong-ui-copy-uuid-notify",_e={class:"kong-ui-copy-uuid"},Pe=["onClick"],at=15,qe=t.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:U=>["uuid","hidden","redacted","deleted"].includes(U)}},emits:["success","error"],setup(U,{emit:l}){const e=U,{t:n}=sU.createI18n("en-us",ve),F=e.notify||t.inject(Ae,()=>{}),Q=t.computed(()=>e.idTooltip?{label:e.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:e.uuid}),a=t.computed(()=>!!(e.tooltip&&e.successTooltip)),o=t.ref(e.tooltip),d=t.computed(()=>e.tooltip?{label:o.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),V=t.computed(()=>e.format==="redacted"?"*****":e.format==="deleted"?`*${e.uuid.substring(0,5)}`:e.uuid),i=J=>{o.value=J,setTimeout(()=>{o.value=e.tooltip},1800)},R=J=>{if(!J(e.uuid)){typeof F=="function"&&F({type:"error",message:n("message.fail")}),a.value?i(n("message.fail")):l("error",e.uuid);return}const r=e.uuid.length>at,W=e.format==="hidden"||e.format==="redacted"?n("message.success.prefix"):`"${e.uuid.substring(0,at)+(r?"...":"")}"`;typeof F=="function"&&F({type:"success",message:`${W}${n("message.success.content")}`}),a.value?i(e.successTooltip):l("success",e.uuid)};return(J,r)=>{const W=t.resolveComponent("KIcon"),S=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",_e,[U.format!=="hidden"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.idTooltip?"KTooltip":"div"),t.mergeProps({key:0},Q.value,{"data-testid":"copy-id"}),{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["uuid-container",U.truncated?"truncated-uuid":null,U.useMono?"mono":null])},t.toDisplayString(V.value),3)]),_:1},16)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.tooltip?"KTooltip":"div"),t.mergeProps(d.value,{class:"uuid-icon-wrapper"}),{default:t.withCtx(()=>[t.createVNode(S,null,{default:t.withCtx(({copyToClipboard:s})=>[t.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:t.withModifiers(u=>R(s),["stop"])},[t.createVNode(W,{class:"uuid-icon",color:U.iconColor,"hide-title":!!U.tooltip||void 0,icon:"copy",size:"16",title:t.unref(n)("iconTitle")},null,8,["color","hide-title","title"])],8,Pe)]),_:1})]),_:1},16))])}}}),$e=(U,l)=>{const e=U.__vccOpts||U;for(const[n,F]of l)e[n]=F;return e},dt=$e(qe,[["__scopeId","data-v-bfdaf6f7"]]),Ul={key:0,class:"config-card-fieldset-title"},tl=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(U){const l=U,{i18n:{t:e}}=H.useI18n(),{convertKeyToTitle:n}=H.useStringHelpers(),F=t.computed(()=>l.item.key??"json-array-item"),Q=t.computed(()=>l.item.value??l.item),a=t.computed(()=>{const d=JSON.parse(JSON.stringify(Q.value));return l.isArrayItem&&delete d.name,d}),o=t.computed(()=>{var d;return l.isArrayItem?(d=Q.value)!=null&&d.name?n(Q.value.name,"_"):e("baseConfigCard.general.entryTitle",{index:l.index}):""});return(d,V)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(U.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[U.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Ul,[t.createElementVNode("b",null,t.toDisplayString(o.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(i,R)=>(t.openBlock(),t.createBlock(gU,{key:`${F.value}-property-${R}`,item:{key:i,label:t.unref(n)(i),value:a.value[i]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),lU=(U,l)=>{const e=U.__vccOpts||U;for(const[n,F]of l)e[n]=F;return e},ot=lU(tl,[["__scopeId","data-v-68ca83ec"]]),el=lU(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(U){const{i18n:{t:l}}=H.useI18n();return(e,n)=>{const F=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(F,{appearance:"btn-link",class:"navigation-button",onClick:n[0]||(n[0]=Q=>e.$emit("navigation-click",U.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.item.value||t.unref(l)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-7410504d"]]),ll=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(U){const{i18n:{t:l}}=H.useI18n();return(e,n)=>{const F=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(F,{appearance:U.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.status?t.unref(l)("baseConfigCard.statusBadge.enabledLabel"):t.unref(l)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Fl="#0044f4",nl="#e0e4ea",Ql="#3a3f51",al="1px",dl="20px",ol={class:"config-card-details-row"},rl=["data-testid"],il=["data-testid"],Vl=["data-testid"],Rl=["data-testid"],cl={key:1},Bl=["data-testid"],sl=["data-testid"],Nl=["data-testid"],Jl=["data-testid"],Zl={name:"ConfigCardItem",components:{CopyUuid:dt,JsonCardItem:ot,StatusBadge:ll,InternalLinkItem:el}},pl=t.defineComponent({...Zl,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(U,{emit:l}){const e=U;t.useCssVars(r=>({"77b12766":V.value?"none":`solid ${t.unref(al)} ${t.unref(nl)}`,"500c4499":d.value&&a.value?"block":"flex","132371a7":d.value&&a.value?"100%":e.slim?"50%":"25%","1325b782":d.value&&a.value?"100%":e.slim?"50%":"75%"}));const n=t.useSlots(),{i18n:{t:F,formatUnixTimeStamp:Q}}=H.useI18n(),a=t.computed(()=>e.item.value!==void 0&&e.item.value!==null&&e.item.value!==""),o=t.computed(()=>!!(e.item.tooltip||n["label-tooltip"])),d=t.computed(()=>e.item.type===G.Json||e.item.type===G.JsonArray),V=t.computed(()=>e.item.type===G.JsonArray),i=t.computed(()=>{switch(e.item.type){case G.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${e.item.key}-copy-uuid`,"success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,uuid:e.item.value,notify:()=>{}}};case G.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,notify:()=>{}}};case G.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${e.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,uuid:e.item.value,notify:()=>{}}};case G.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":F("baseConfigCard.copy.success"),tooltip:F("baseConfigCard.copy.tooltip",{label:e.item.label}),truncated:!1,notify:()=>{}}};case G.Date:return{tag:"div",attrs:{"data-testid":`${e.item.key}-date`},text:Q(e.item.value)};case G.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${e.item.key}-badge-status`,status:e.item.value}};case G.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case G.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case G.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${e.item.key}-internal-link`,item:e.item,onNavigationClick:r=>{l("navigation-click",r)}}};case G.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${e.item.key}-external-link`,href:e.item.value},text:e.item.value};case G.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${e.item.key}-json-content`,item:e.item}};case G.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${e.item.key}-json-array-content`,item:e.item}};default:return{tag:"KTooltip",attrs:{"data-testid":`${e.item.key}-plain-text`},text:e.item.value}}}),R=t.ref(),{isTruncated:J}=H.useTruncationDetector(R);return(r,W)=>{const S=t.resolveComponent("KLabel"),s=t.resolveComponent("KBadge"),u=t.resolveComponent("KMethodBadge"),Z=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("div",ol,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${U.item.key}-label`},[t.renderSlot(r.$slots,"label",{item:U.item},()=>[t.createVNode(S,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.item.label)+" ",1)]),_:2},[o.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${U.item.key}-label-tooltip`},[t.renderSlot(r.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(U.item.tooltip),1)],!0)],8,il)]),key:"0"}:void 0]),1024)],!0)],8,rl),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${U.item.key}-property-value`},[t.renderSlot(r.$slots,U.item.key,{rowValue:U.item.value},()=>[a.value?(t.openBlock(),t.createElementBlock("div",cl,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value.tag),t.normalizeProps(t.guardReactiveProps(i.value.attrs)),{default:t.withCtx(()=>[i.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${U.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(s,{key:`${U.item.key}-badge-tag-${C}`,class:"config-badge","data-testid":`${U.item.key}-badge-tag-${C}`,"truncation-tooltip":p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p),1)]),_:2},1032,["data-testid","truncation-tooltip"]))),128))],8,Bl)):t.createCommentVNode("",!0),i.value.additionalComponent==="CopyUuid"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${U.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(t.unref(dt),t.mergeProps(i.value.childAttrs,{key:`${U.item.key}-copy-uuid-${C}`,"data-testid":`${U.item.key}-copy-uuid-${C}`,uuid:p}),null,16,["data-testid","uuid"]))),128))],8,sl)):i.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${U.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(u,{key:`${U.item.key}-badge-method-${C}`,class:"config-badge","data-testid":`${U.item.key}-badge-method-${C}`,"is-rounded":"",label:p,method:t.unref(pe.MethodsArray).includes(p.toLowerCase())?p.toLowerCase():"custom"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p),1)]),_:2},1032,["data-testid","label","method"]))),128))],8,Nl)):t.createCommentVNode("",!0),i.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${e.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.item.value,(p,C)=>(t.openBlock(),t.createBlock(ot,{key:`json-array-item-${C}`,index:C,"is-array-item":"",item:p},null,8,["index","item"]))),128))],8,Jl)):(t.openBlock(),t.createBlock(Z,{key:4,label:t.unref(J)&&U.item.value},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:R,class:t.normalizeClass(["attrs-data-text",{truncated:U.truncated}])},t.toDisplayString(i.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${U.item.key}-no-value`}," – ",8,Rl))],!0)],8,Vl)])}}}),gU=lU(pl,[["__scopeId","data-v-9465176b"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function rt(U){return typeof U>"u"||U===null}function kl(U){return typeof U=="object"&&U!==null}function Sl(U){return Array.isArray(U)?U:rt(U)?[]:[U]}function Wl(U,l){var e,n,F,Q;if(l)for(Q=Object.keys(l),e=0,n=Q.length;e<n;e+=1)F=Q[e],U[F]=l[F];return U}function ul(U,l){var e="",n;for(n=0;n<l;n+=1)e+=U;return e}function ml(U){return U===0&&Number.NEGATIVE_INFINITY===1/U}var Tl=rt,Dl=kl,Cl=Sl,hl=ul,Ml=ml,fl=Wl,L={isNothing:Tl,isObject:Dl,toArray:Cl,repeat:hl,isNegativeZero:Ml,extend:fl};function it(U,l){var e="",n=U.reason||"(unknown reason)";return U.mark?(U.mark.name&&(e+='in "'+U.mark.name+'" '),e+="("+(U.mark.line+1)+":"+(U.mark.column+1)+")",!l&&U.mark.snippet&&(e+=`
|
|
2
2
|
|
|
3
3
|
`+U.mark.snippet),n+" "+e):n}function NU(U,l){Error.call(this),this.name="YAMLException",this.reason=U,this.mark=l,this.message=it(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}NU.prototype=Object.create(Error.prototype),NU.prototype.constructor=NU,NU.prototype.toString=function(U){return this.name+": "+it(this,U)};var _=NU;function xU(U,l,e,n,F){var Q="",a="",o=Math.floor(F/2)-1;return n-l>o&&(Q=" ... ",l=n-o+Q.length),e-n>o&&(a=" ...",e=n+o-a.length),{str:Q+U.slice(l,e).replace(/\t/g,"→")+a,pos:n-l+Q.length}}function jU(U,l){return L.repeat(" ",l-U.length)+U}function bl(U,l){if(l=Object.create(l||null),!U.buffer)return null;l.maxLength||(l.maxLength=79),typeof l.indent!="number"&&(l.indent=1),typeof l.linesBefore!="number"&&(l.linesBefore=3),typeof l.linesAfter!="number"&&(l.linesAfter=2);for(var e=/\r?\n|\r|\0/g,n=[0],F=[],Q,a=-1;Q=e.exec(U.buffer);)F.push(Q.index),n.push(Q.index+Q[0].length),U.position<=Q.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",d,V,i=Math.min(U.line+l.linesAfter,F.length).toString().length,R=l.maxLength-(l.indent+i+3);for(d=1;d<=l.linesBefore&&!(a-d<0);d++)V=xU(U.buffer,n[a-d],F[a-d],U.position-(n[a]-n[a-d]),R),o=L.repeat(" ",l.indent)+jU((U.line-d+1).toString(),i)+" | "+V.str+`
|
|
4
4
|
`+o;for(V=xU(U.buffer,n[a],F[a],U.position,R),o+=L.repeat(" ",l.indent)+jU((U.line+1).toString(),i)+" | "+V.str+`
|
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-7410504d] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-bfdaf6f7]{display:flex}.kong-ui-copy-uuid .uuid-container[data-v-bfdaf6f7]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-bfdaf6f7]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-bfdaf6f7]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-bfdaf6f7]{display:flex}.config-card-details-row[data-v-
|
|
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-7410504d] .k-button.navigation-button{font-size:14px;font-weight:400}.kong-ui-copy-uuid[data-v-bfdaf6f7]{display:flex}.kong-ui-copy-uuid .uuid-container[data-v-bfdaf6f7]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-bfdaf6f7]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-bfdaf6f7]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-bfdaf6f7]{display:flex}.config-card-details-row[data-v-9465176b]{border-bottom:var(--77b12766);display:var(--500c4499);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-9465176b]{width:var(--132371a7)}.config-card-details-row .config-card-details-label label[data-v-9465176b]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-9465176b]{width:var(--1325b782)}.config-card-details-row .config-card-details-value .truncated[data-v-9465176b]{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-9465176b]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-9465176b] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-9465176b]{display:flex}.config-card-details-row .config-badge[data-v-9465176b]{margin-right:4px}.config-card-details-row[data-v-9465176b] .k-input-label{margin-bottom:0}.config-card-details-row[data-v-9465176b] .k-input-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-9465176b] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-6c45e9e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-64349aa2]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-64349aa2]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-64349aa2]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-64349aa2]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-44a90aae]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-44a90aae]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-44a90aae] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-f8a220e9] [role=button]{display:inline}.kong-ui-entity-base-table .toolbar-container[data-v-6bf92df6]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-6bf92df6]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6]{float:right}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-6bf92df6]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-745f38c0]{width:100%}.kong-ui-entity-filter[data-v-745f38c0]{display:flex;position:relative}.kong-ui-entity-filter[data-v-745f38c0] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-745f38c0] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-745f38c0]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-745f38c0]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-745f38c0]{align-items:center;display:flex}.menu-item-indicator[data-v-745f38c0]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-745f38c0]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-745f38c0] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-745f38c0] .k-input-wrapper{width:100%}.menu-item-body[data-v-745f38c0] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-745f38c0] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-745f38c0]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-745f38c0]{display:flex;justify-content:space-between;margin:10px 0 6px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{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-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{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-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] 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-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-entities-vaults-list[data-v-1e2b4f94]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-1e2b4f94]{width:300px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-1e2b4f94]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-6d182815]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-6d182815]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-6d182815]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-6d182815]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-6d182815],.kong-ui-entities-vault-form .vault-form-textarea[data-v-6d182815]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-6d182815]{column-gap:12px;display:grid;grid-template-columns:1fr 1fr 1fr;row-gap:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .k-radio-label[data-v-6d182815]{margin-top:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-6d182815] .k-radio label{box-sizing:border-box}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-6d182815] .k-radio{box-sizing:border-box;height:100%;width:100%}.kong-ui-entities-vault-form .vault-form-config-fields-container>*[data-v-6d182815]:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container div>*[data-v-6d182815]:not(:first-child){margin-top:24px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-vaults",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-vaults.umd.js",
|
|
6
6
|
"module": "./dist/entities-vaults.es.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"errorLimit": "700KB"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@kong-ui-public/entities-shared": "^1.6.
|
|
52
|
+
"@kong-ui-public/entities-shared": "^1.6.8"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"dev": "cross-env USE_SANDBOX=true vite",
|