@kong-ui-public/entities-shared 3.70.1 → 3.70.2
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-shared.cjs.js +1 -1
- package/dist/entities-shared.es.js +153 -153
- package/package.json +6 -6
|
@@ -5,7 +5,7 @@ ${u}`}const y=me(t.buffer,r[s],i[s],t.position,c);u+=`${" ".repeat(o.indent)}${g
|
|
|
5
5
|
`}return u.replace(/\n$/,"")}function Ue(t,n){let o="";return t.mark?(t.mark.name&&(o+=`in "${t.mark.name}" `),o+=`(${t.mark.line+1}:${t.mark.column+1})`,!n&&t.mark.snippet&&(o+=`
|
|
6
6
|
|
|
7
7
|
${t.mark.snippet}`),`${t.reason} ${o}`):t.reason}var Mo=class at extends Error{reason;mark;constructor(n,o){super(),this.name="YAMLException",this.reason=n,this.mark=o,this.message=Ue(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(n){return`${this.name}: ${Ue(this,n)}`}static throwAt(n,o,a,r=""){let i=0,l=0;for(let u=0;u<o;u++){const f=n.charCodeAt(u);f===10?(i++,l=u+1):f===13&&(i++,n.charCodeAt(u+1)===10&&u++,l=u+1)}const s={name:r,buffer:n,position:o,line:i,column:o-l};throw s.snippet=Po(s),new at(a,s)}},L={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},te={BLOCK:1,FLOW:2};function qe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
8
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Uo=new Array(256),qo=new Array(256);for(let t=0;t<256;t++)Uo[t]=qe(t)?1:0,qo[t]=qe(t);Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function ye(t){return encodeURI(t).replace(/!/g,"%21")}function rt(t){let n=t;return n.charCodeAt(0)===33?(n=n.slice(1),`!${ye(n)}`):n.slice(0,18)==="tag:yaml.org,2002:"?`!!${ye(n.slice(18))}`:`!<${ye(n)}>`}var X=Symbol("INVALID");function zo(t){const n=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(i=>i!==void 0)),o=t.implicitScalarTags,a=t.tags.filter(i=>!(i.nodeKind==="scalar"&&i.implicit)&&!n.has(i)),r=t.tags.filter(i=>n.has(i));return[...o.map(i=>({tag:i,implicitTag:!0})),...a.map(i=>({tag:i,implicitTag:!1})),...r.map(i=>({tag:i,implicitTag:!0}))]}function jo(t,n){for(let o=0,a=t.representTypes.length;o<a;o+=1){const{tag:r,implicitTag:i}=t.representTypes[o];if(r.identify(n)){let l;return r.matchByTagPrefix?l=r.representTagName(n):l=r.tagName,{tag:r,tagName:l,implicitTag:i}}}return null}function ae(t,n){if(!t.noRefs&&n!==null&&typeof n=="object"){const f=t.refs.get(n);if(f)return f.anchor===void 0&&(f.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:f.anchor}}const o=jo(t,n);if(!o){if(n===void 0||t.skipInvalid)return X;throw new Mo(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`)}const{tag:a,tagName:r,implicitTag:i}=o,l=i?r:rt(r);if(a.nodeKind==="scalar")return{kind:"scalar",tag:l,tagged:!i,style:L.PLAIN,value:a.represent(n)};if(a.nodeKind==="sequence"){const f=a.represent(n),c={kind:"sequence",tag:l,tagged:!i,style:te.BLOCK,items:[]};t.noRefs||t.refs.set(n,c);for(let y=0,v=f.length;y<v;y+=1){let C=ae(t,f[y]);C===X&&f[y]===void 0&&(C=ae(t,null)),C!==X&&c.items.push(C)}return c}const s=a.represent(n),u={kind:"mapping",tag:l,tagged:!i,style:te.BLOCK,items:[]};t.noRefs||t.refs.set(n,u);for(const[f,c]of s){const y=ae(t,f);if(y===X)continue;const v=ae(t,c);v!==X&&u.items.push({key:y,value:v})}return u}function Go(t,n,o={}){const a=ae({representTypes:zo(n),noRefs:o.noRefs??!1,skipInvalid:o.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:a===X?null:a,directives:[]}]}var Ho=Symbol("visit:break"),it=Symbol("visit:skip");function re(t,n,o){const a=n(t,o);if(a===Ho)return!0;if(a===it)return!1;const r=o.depth+1;switch(t.kind){case"sequence":for(const i of t.items)if(re(i,n,{depth:r,parent:t,isKey:!1}))return!0;break;case"mapping":for(const{key:i,value:l}of t.items)if(re(i,n,{depth:r,parent:t,isKey:!0})||re(l,n,{depth:r,parent:t,isKey:!1}))return!0;break}return!1}function ze(t,n){for(const o of t)if(o.contents&&re(o.contents,n,{depth:0,parent:null,isKey:!1}))return}function de(t,n){return(t&1<<n)!==0}var je={applyQuoteFlowKeysOption:Yo,doubleQuoteForInvisibles:Wo,doubleQuoteWhitespaceOnly:Jo,applyForceQuotesOption:Qo,tryLongOrMultilineAsBlock:Xo,quoteInvalidPlain:Zo,fallbackToDoubleQuoted:ea};function lt(t){return t.presenterOptions.quoteStyle==="single"&&de(t.allowedStylesMask,L.SINGLE_QUOTED)?L.SINGLE_QUOTED:L.DOUBLE_QUOTED}function Yo(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==L.PLAIN||(t.style=L.DOUBLE_QUOTED))}function Wo(t){t.style===L.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=L.DOUBLE_QUOTED)}function Jo(t){t.style===L.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=L.DOUBLE_QUOTED)}function Qo(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==L.PLAIN||(t.style=t.node.value.includes(`
|
|
8
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Uo=new Array(256),qo=new Array(256);for(let t=0;t<256;t++)Uo[t]=qe(t)?1:0,qo[t]=qe(t);Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function ye(t){return encodeURI(t).replace(/!/g,"%21")}function rt(t){let n=t;return n.charCodeAt(0)===33?(n=n.slice(1),`!${ye(n)}`):n.slice(0,18)==="tag:yaml.org,2002:"?`!!${ye(n.slice(18))}`:`!<${ye(n)}>`}var X=Symbol("INVALID");function zo(t){const n=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(i=>i!==void 0)),o=t.implicitScalarTags,a=t.tags.filter(i=>!(i.nodeKind==="scalar"&&i.implicit)&&!n.has(i)),r=t.tags.filter(i=>n.has(i));return[...o.map(i=>({tag:i,implicitTag:!0})),...a.map(i=>({tag:i,implicitTag:!1})),...r.map(i=>({tag:i,implicitTag:!0}))]}function jo(t,n){for(let o=0,a=t.representTypes.length;o<a;o+=1){const{tag:r,implicitTag:i}=t.representTypes[o];if(r.identify(n)){let l;return r.matchByTagPrefix?l=r.representTagName(n):l=r.tagName,{tag:r,tagName:l,implicitTag:i}}}return null}function ae(t,n){if(!t.noRefs&&n!==null&&typeof n=="object"){const f=t.refs.get(n);if(f)return f.anchor===void 0&&(f.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:f.anchor}}const o=jo(t,n);if(!o){if(n===void 0||t.skipInvalid)return X;throw new Mo(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`)}const{tag:a,tagName:r,implicitTag:i}=o,l=i?r:rt(r);if(a.nodeKind==="scalar")return{kind:"scalar",tag:l,tagged:!i,style:L.PLAIN,value:a.represent(n)};if(a.nodeKind==="sequence"){const f=a.represent(n),c={kind:"sequence",tag:l,tagged:!i,style:te.BLOCK,items:[]};t.noRefs||t.refs.set(n,c);for(let y=0,v=f.length;y<v;y+=1){let C=ae(t,f[y]);C===X&&f[y]===void 0&&(C=ae(t,null)),C!==X&&c.items.push(C)}return c}const s=a.represent(n),u={kind:"mapping",tag:l,tagged:!i,style:te.BLOCK,items:[]};t.noRefs||t.refs.set(n,u);for(const[f,c]of s){const y=ae(t,f);if(y===X)continue;const v=ae(t,c);v!==X&&u.items.push({key:y,value:v})}return u}function Go(t,n,o={}){const a=ae({representTypes:zo(n),noRefs:o.noRefs??!1,skipInvalid:o.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:a===X?null:a,directives:[]}]}var Ho=Symbol("visit:break"),it=Symbol("visit:skip");function re(t,n,o){const a=n(t,o);if(a===Ho)return!0;if(a===it)return!1;const r=o.depth+1;switch(t.kind){case"sequence":for(const i of t.items)if(re(i,n,{depth:r,parent:t,isKey:!1}))return!0;break;case"mapping":for(const{key:i,value:l}of t.items)if(re(i,n,{depth:r,parent:t,isKey:!0})||re(l,n,{depth:r,parent:t,isKey:!1}))return!0;break}return!1}function ze(t,n){for(const o of t)if(o.contents&&re(o.contents,n,{depth:0,parent:null,isKey:!1}))return}function de(t,n){return(t&1<<n)!==0}var je={applyQuoteFlowKeysOption:Yo,doubleQuoteForInvisibles:Wo,doubleQuoteWhitespaceOnly:Jo,applyForceQuotesOption:Qo,tryLongOrMultilineAsBlock:Xo,quoteInvalidPlain:Zo,fallbackToDoubleQuoted:ea};function lt(t){return t.presenterOptions.quoteStyle==="single"&&de(t.allowedStylesMask,L.SINGLE_QUOTED)?L.SINGLE_QUOTED:L.DOUBLE_QUOTED}function Yo(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==L.PLAIN||(t.style=L.DOUBLE_QUOTED))}function Wo(t){t.style===L.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=L.DOUBLE_QUOTED)}function Jo(t){t.style===L.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=L.DOUBLE_QUOTED)}function Qo(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==L.PLAIN||t.node.tag===t.presenterOptions.schema.defaultScalarTag.tagName&&(t.style=t.node.value.includes(`
|
|
9
9
|
`)?L.DOUBLE_QUOTED:lt(t)))}function Xo(t){if(t.style!==L.PLAIN||t.isKey)return;const n=t.node.value,o=n.indexOf(`
|
|
10
10
|
`)!==-1;if(!de(t.allowedStylesMask,L.LITERAL_BLOCK)){o&&(t.style=L.DOUBLE_QUOTED);return}const a=t.presenterOptions.lineWidth;if(a===-1){o&&(t.style=L.LITERAL_BLOCK);return}const r=Math.max(Math.min(a,40),a-t.shiftOfContent);let i=0,l=!1;for(;i<=n.length;){let s=n.length;const u=n.indexOf(`
|
|
11
11
|
`,i);u!==-1&&(s=u);const f=n.slice(i,s);if(f.length>r&&f[0]!==" "&&/ [^ \t]/.test(f)&&(l=!0),u===-1)break;i=u+1}l?t.style=L.FOLDED_BLOCK:o&&(t.style=L.LITERAL_BLOCK)}function Zo(t){t.style===L.PLAIN&&!de(t.allowedStylesMask,L.PLAIN)&&(t.style=lt(t))}function ea(t){de(t.allowedStylesMask,t.style)||(t.style=L.DOUBLE_QUOTED)}function ne(t,n){return t|1<<n}var ta="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",na="[\\n\\r]",oa="\\uFEFF",Oe="[ \\t]",st=`(?:(?!(?:${na}|${oa}))${ta})`,ue=`(?:(?!${Oe})${st})`,ct="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",dt="[-?:,\\[\\]{}#&*!|>'\"%@`]",aa="[,\\[\\]{}]",be=ue,Se=`(?:(?!${aa})${ue})`,ra=`(?:(?:(?!${dt})${ue})|[?:-](?=${be}))`,ia=`(?:(?:(?!${dt})${ue})|[?:-](?=${Se}))`,ut=`(?:(?:(?![:#])${be})|:(?=${be}))#*`,ft=`(?:(?:(?![:#])${Se})|:(?=${Se}))#*`,pt=`(?:${Oe}*${ut})*`,mt=`(?:${Oe}*${ft})*`,gt=`${ra}#*${pt}`,yt=`${ia}#*${mt}`,la=gt,sa=yt,ca=`\\n+${ut}${pt}`,da=`\\n+${ft}${mt}`,ua=`${gt}(?:${ca})*`,fa=`${yt}(?:${da})*`,pa=new RegExp(`^(?:${ua})$`,"u"),ma=new RegExp(`^(?:${fa})$`,"u"),ga=new RegExp(`^(?:${la})$`,"u"),ya=new RegExp(`^(?:${sa})$`,"u"),va=new RegExp(`^(?:${ct})*$`,"u"),ka=new RegExp(`^(?:${ct}|\\n)*$`,"u"),ha=new RegExp(`^(?:${st}|\\n)*$`,"u"),Ca=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,xe=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function ba(t){const n=t.node.value;if(n!==""){if(!(t.isKey?t.flowOnly?ya:ga:t.flowOnly?ma:pa).test(n)||t.shiftOfFirstLine===0&&Ca.test(n))return!1;if(t.shiftOfContent===0){const a=n.indexOf(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, resolveComponent as R, openBlock as c, createBlock as
|
|
1
|
+
import { defineComponent as Z, resolveComponent as R, openBlock as c, createBlock as $, createSlots as pe, withCtx as m, createVNode as E, unref as u, normalizeClass as ie, createElementBlock as k, normalizeStyle as gn, resolveDynamicComponent as he, createCommentVNode as L, createElementVNode as F, toDisplayString as C, Fragment as re, renderList as de, computed as S, createTextVNode as P, useId as yn, useSlots as we, inject as tt, ref as D, renderSlot as U, normalizeProps as vn, guardReactiveProps as hn, mergeProps as _e, useCssVars as Et, watch as me, watchEffect as bn, onMounted as Be, provide as kn, onBeforeMount as nt, withModifiers as Ne, Teleport as Ot, onUnmounted as Cn, withDirectives as Se, vShow as $e, withKeys as At, shallowRef as Sn, onBeforeUnmount as Nt, warn as $n, useTemplateRef as Tn } from "vue";
|
|
2
2
|
import { CloseIcon as Lt, LanguageShellIcon as st, LanguageBashIcon as ct, InfoIcon as Bt, BookIcon as Ft, AddIcon as Rt, FilterIcon as ut, ChevronDownIcon as In, CopyIcon as wt, VisibilityOffIcon as _n, VisibilityIcon as En } from "@kong/icons";
|
|
3
3
|
import { createReusableTemplate as On } from "@vueuse/core";
|
|
4
4
|
import { c as j, _ as oe, S as An, C as X, a as Kt, g as Nn, b as Le, d as Ce, E as Ln, I as Bn, e as Ke, D as Fn, f as Rn, h as wn, i as se, P as Kn, j as xn, n as Pn } from "./_plugin-vue_export-helper-ekMaqAP6.js";
|
|
@@ -30,7 +30,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
30
30
|
}, ba = { class: "onboarding-item-content" }, ka = { class: "onboarding-item-title" }, Ca = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "onboarding-item-description"
|
|
33
|
-
},
|
|
33
|
+
}, Sa = { class: "onboarding-items-grid" }, $a = ["data-testid", "href"], Ta = ["data-testid", "onClick"], Ia = ["data-testid"], _a = /* @__PURE__ */ Z({
|
|
34
34
|
__name: "OnboardingCard",
|
|
35
35
|
props: {
|
|
36
36
|
title: {},
|
|
@@ -64,7 +64,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
64
64
|
};
|
|
65
65
|
return (r, o) => {
|
|
66
66
|
const l = R("KButton"), d = R("KCard"), f = R("router-link");
|
|
67
|
-
return c(),
|
|
67
|
+
return c(), $(d, {
|
|
68
68
|
class: "kong-ui-onboarding-card",
|
|
69
69
|
"data-testid": "onboarding-card"
|
|
70
70
|
}, pe({
|
|
@@ -87,7 +87,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
87
87
|
borderColor: i[s.appearance ?? "success"].border
|
|
88
88
|
})
|
|
89
89
|
}, [
|
|
90
|
-
(c(),
|
|
90
|
+
(c(), $(he(s.icon), {
|
|
91
91
|
color: i[s.appearance ?? "success"].foreground,
|
|
92
92
|
decorative: "",
|
|
93
93
|
size: `var(--kui-icon-size-50, ${u(ya)})`
|
|
@@ -97,7 +97,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
97
97
|
F("div", ka, C(s.title), 1),
|
|
98
98
|
s.description ? (c(), k("div", Ca, C(s.description), 1)) : L("", !0)
|
|
99
99
|
]),
|
|
100
|
-
s.appendIcon ? (c(),
|
|
100
|
+
s.appendIcon ? (c(), $(he(s.appendIcon), {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "onboarding-item-append-icon",
|
|
103
103
|
color: `var(--kui-icon-color-neutral, ${u(ga)})`,
|
|
@@ -110,9 +110,9 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
}),
|
|
113
|
-
F("div",
|
|
113
|
+
F("div", Sa, [
|
|
114
114
|
(c(!0), k(re, null, de(e.items, (s, v) => (c(), k(re, { key: v }, [
|
|
115
|
-
s.to ? (c(),
|
|
115
|
+
s.to ? (c(), $(f, {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "onboarding-item-wrapper",
|
|
118
118
|
"data-testid": `onboarding-item-${v}`,
|
|
@@ -131,7 +131,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
131
131
|
target: "_blank"
|
|
132
132
|
}, [
|
|
133
133
|
E(u(a), { item: s }, null, 8, ["item"])
|
|
134
|
-
], 8,
|
|
134
|
+
], 8, $a)) : s.onClick ? (c(), k("button", {
|
|
135
135
|
key: 2,
|
|
136
136
|
class: "onboarding-item-wrapper",
|
|
137
137
|
"data-testid": `onboarding-item-${v}`,
|
|
@@ -197,18 +197,18 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
197
197
|
setup(e) {
|
|
198
198
|
const t = e, { i18n: { t: n } } = j.useI18n(), { convertKeyToTitle: a } = j.useStringHelpers();
|
|
199
199
|
t.isArrayItem && j.useSubSchema(String(t.index));
|
|
200
|
-
const i =
|
|
200
|
+
const i = S(() => t.item.key ?? "json-array-item"), r = S(() => t.item.value ?? t.item), o = S(() => {
|
|
201
201
|
const d = JSON.parse(JSON.stringify(r.value));
|
|
202
202
|
return t.isArrayItem && delete d.name, d;
|
|
203
|
-
}), l =
|
|
204
|
-
return (d, f) => (c(),
|
|
203
|
+
}), l = S(() => t.isArrayItem ? r.value?.name ? a(r.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "");
|
|
204
|
+
return (d, f) => (c(), $(he(e.isArrayItem ? "fieldset" : "div"), {
|
|
205
205
|
class: ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
206
206
|
}, {
|
|
207
207
|
default: m(() => [
|
|
208
208
|
e.isArrayItem ? (c(), k("legend", Ea, [
|
|
209
209
|
F("b", null, C(l.value), 1)
|
|
210
210
|
])) : L("", !0),
|
|
211
|
-
(c(!0), k(re, null, de(Object.keys(o.value), (s, v) => (c(),
|
|
211
|
+
(c(!0), k(re, null, de(Object.keys(o.value), (s, v) => (c(), $(Dt, {
|
|
212
212
|
key: `${i.value}-property-${v}`,
|
|
213
213
|
item: {
|
|
214
214
|
key: s,
|
|
@@ -237,7 +237,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
237
237
|
return (n, a) => {
|
|
238
238
|
const i = R("router-link"), r = R("KButton"), o = R("KSkeleton");
|
|
239
239
|
return c(), k("div", null, [
|
|
240
|
-
e.item.to ? (c(),
|
|
240
|
+
e.item.to ? (c(), $(i, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "navigation-link",
|
|
243
243
|
to: e.item.to
|
|
@@ -246,7 +246,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
246
246
|
P(C(e.item.value || u(t)("baseConfigCard.commonFields.link")), 1)
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
|
-
}, 8, ["to"])) : (c(),
|
|
249
|
+
}, 8, ["to"])) : (c(), $(r, {
|
|
250
250
|
key: 1,
|
|
251
251
|
appearance: "tertiary",
|
|
252
252
|
class: "navigation-button",
|
|
@@ -257,7 +257,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
259
|
})),
|
|
260
|
-
e.item.subtitleLoading ? (c(),
|
|
260
|
+
e.item.subtitleLoading ? (c(), $(o, {
|
|
261
261
|
key: 2,
|
|
262
262
|
"data-testid": "navigation-subtitle-loader",
|
|
263
263
|
type: "spinner"
|
|
@@ -277,7 +277,7 @@ const ss = ["json", "yaml", "terraform", "deck"], ft = [
|
|
|
277
277
|
const { i18n: { t } } = j.useI18n();
|
|
278
278
|
return (n, a) => {
|
|
279
279
|
const i = R("KBadge");
|
|
280
|
-
return c(),
|
|
280
|
+
return c(), $(i, {
|
|
281
281
|
appearance: e.status ? "success" : "neutral"
|
|
282
282
|
}, {
|
|
283
283
|
default: m(() => [
|
|
@@ -335,7 +335,7 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
335
335
|
},
|
|
336
336
|
emits: ["navigation-click"],
|
|
337
337
|
setup(e, { emit: t }) {
|
|
338
|
-
const n = e, a = t, i = yn(), r = we(), { i18n: { t: o, formatIsoDate: l, formatUnixTimeStamp: d } } = j.useI18n(), f =
|
|
338
|
+
const n = e, a = t, i = yn(), r = we(), { i18n: { t: o, formatIsoDate: l, formatUnixTimeStamp: d } } = j.useI18n(), f = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = S(() => !!(n.item.tooltip || r["label-tooltip"])), v = S(() => n.item.type === X.Json || n.item.type === X.JsonArray), h = S(() => n.item.type === X.JsonArray), I = j.useSubSchema(n.item.key), { redactByApiSchema: x } = j.useHelpers(), g = tt(Kt, D(!1)), y = S(() => g.value ? "default" : "redacted"), B = S(() => n.item.type ? n.item.type : I?.value?.encrypted ? X.Redacted : void 0), p = S(() => {
|
|
339
339
|
switch (B.value) {
|
|
340
340
|
case X.ID:
|
|
341
341
|
return {
|
|
@@ -532,13 +532,13 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
532
532
|
rowValue: e.item.value
|
|
533
533
|
}, () => [
|
|
534
534
|
f.value ? (c(), k("div", Da, [
|
|
535
|
-
(c(),
|
|
535
|
+
(c(), $(he(p.value.tag), vn(hn(p.value.attrs)), {
|
|
536
536
|
default: m(() => [
|
|
537
537
|
p.value.additionalComponent === "KBadge" ? (c(), k("div", {
|
|
538
538
|
key: 0,
|
|
539
539
|
"data-testid": `${e.item.key}-badge-tags`
|
|
540
540
|
}, [
|
|
541
|
-
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(),
|
|
541
|
+
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(), $(K, {
|
|
542
542
|
key: `${e.item.key}-badge-tag-${ee}`,
|
|
543
543
|
class: "config-badge",
|
|
544
544
|
"data-testid": `${e.item.key}-badge-tag-${ee}`,
|
|
@@ -555,7 +555,7 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
555
555
|
class: "copy-uuid-array",
|
|
556
556
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
557
557
|
}, [
|
|
558
|
-
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(),
|
|
558
|
+
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(), $(N, _e({ ref_for: !0 }, p.value.childAttrs, {
|
|
559
559
|
key: `${e.item.key}-copy-uuid-${ee}`,
|
|
560
560
|
"data-testid": `${e.item.key}-copy-uuid-${ee}`,
|
|
561
561
|
text: V
|
|
@@ -565,7 +565,7 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
565
565
|
class: "method-badge-array",
|
|
566
566
|
"data-testid": `${e.item.key}-badge-methods`
|
|
567
567
|
}, [
|
|
568
|
-
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(),
|
|
568
|
+
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(), $(K, {
|
|
569
569
|
key: `${e.item.key}-badge-method-${ee}`,
|
|
570
570
|
appearance: Object.values(u(Dn)).includes(V.toLowerCase()) ? V.toLowerCase() : "custom",
|
|
571
571
|
class: "config-badge",
|
|
@@ -580,13 +580,13 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
580
580
|
key: 3,
|
|
581
581
|
"data-testid": `${n.item.key}-json-array-content`
|
|
582
582
|
}, [
|
|
583
|
-
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(),
|
|
583
|
+
(c(!0), k(re, null, de(e.item.value, (V, ee) => (c(), $(Pt, {
|
|
584
584
|
key: `json-array-item-${ee}`,
|
|
585
585
|
index: Number(ee),
|
|
586
586
|
"is-array-item": "",
|
|
587
587
|
item: V
|
|
588
588
|
}, null, 8, ["index", "item"]))), 128))
|
|
589
|
-
], 8, ja)) : (c(),
|
|
589
|
+
], 8, ja)) : (c(), $(q, {
|
|
590
590
|
key: 4,
|
|
591
591
|
text: u(Q) ? e.item.value : ""
|
|
592
592
|
}, {
|
|
@@ -650,7 +650,7 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
650
650
|
Et((i) => ({
|
|
651
651
|
v06a68197: `${a.value}ch`
|
|
652
652
|
}));
|
|
653
|
-
const t = e, n =
|
|
653
|
+
const t = e, n = S(() => t.entityRecord), a = S(() => {
|
|
654
654
|
if (!t.fetcherUrl)
|
|
655
655
|
return 0;
|
|
656
656
|
const i = t.fetcherUrl?.split("/");
|
|
@@ -675,7 +675,7 @@ const wa = ["data-testid"], Ka = ["data-testid"], xa = ["data-testid"], Pa = ["d
|
|
|
675
675
|
theme: "dark"
|
|
676
676
|
}, null, 8, ["code", "max-height"])
|
|
677
677
|
])) : L("", !0),
|
|
678
|
-
e.entityRecord ? (c(),
|
|
678
|
+
e.entityRecord ? (c(), $(l, {
|
|
679
679
|
key: 1,
|
|
680
680
|
id: "json-codeblock",
|
|
681
681
|
class: ie({ "json-content": e.fetcherUrl }),
|
|
@@ -916,15 +916,15 @@ var He = ce("tag:yaml.org,2002:int", {
|
|
|
916
916
|
resolve: ki,
|
|
917
917
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
918
918
|
represent: (e) => e.toString(10)
|
|
919
|
-
}), Ci = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),
|
|
920
|
-
function
|
|
919
|
+
}), Ci = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Si = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
920
|
+
function $i(e) {
|
|
921
921
|
if (!Ci.test(e)) return J;
|
|
922
922
|
let t = e.toLowerCase();
|
|
923
923
|
const n = t[0] === "-" ? -1 : 1;
|
|
924
924
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
925
925
|
if (t === ".nan") return NaN;
|
|
926
926
|
const a = n * parseFloat(t);
|
|
927
|
-
return Number.isFinite(a) ||
|
|
927
|
+
return Number.isFinite(a) || Si.test(e) ? a : J;
|
|
928
928
|
}
|
|
929
929
|
function Ti(e) {
|
|
930
930
|
if (isNaN(e)) return ".nan";
|
|
@@ -942,7 +942,7 @@ var qt = ce("tag:yaml.org,2002:float", {
|
|
|
942
942
|
".",
|
|
943
943
|
..."0123456789"
|
|
944
944
|
],
|
|
945
|
-
resolve:
|
|
945
|
+
resolve: $i,
|
|
946
946
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
947
947
|
represent: Ti
|
|
948
948
|
}), Ii = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), _i = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
@@ -1683,7 +1683,7 @@ function Ct(e, t) {
|
|
|
1683
1683
|
function Ue(e, t) {
|
|
1684
1684
|
return (e & 1 << t) !== 0;
|
|
1685
1685
|
}
|
|
1686
|
-
var
|
|
1686
|
+
var St = {
|
|
1687
1687
|
applyQuoteFlowKeysOption: cr,
|
|
1688
1688
|
doubleQuoteForInvisibles: ur,
|
|
1689
1689
|
doubleQuoteWhitespaceOnly: dr,
|
|
@@ -1705,7 +1705,7 @@ function dr(e) {
|
|
|
1705
1705
|
e.style === W.PLAIN && /^\s+$/.test(e.node.value) && (e.style = W.DOUBLE_QUOTED);
|
|
1706
1706
|
}
|
|
1707
1707
|
function fr(e) {
|
|
1708
|
-
e.presenterOptions.forceQuotes && (e.isKey || e.style !== W.PLAIN || (e.style = e.node.value.includes(`
|
|
1708
|
+
e.presenterOptions.forceQuotes && (e.isKey || e.style !== W.PLAIN || e.node.tag === e.presenterOptions.schema.defaultScalarTag.tagName && (e.style = e.node.value.includes(`
|
|
1709
1709
|
`) ? W.DOUBLE_QUOTED : Wt(e)));
|
|
1710
1710
|
}
|
|
1711
1711
|
function pr(e) {
|
|
@@ -1743,7 +1743,7 @@ function gr(e) {
|
|
|
1743
1743
|
function Ee(e, t) {
|
|
1744
1744
|
return e | 1 << t;
|
|
1745
1745
|
}
|
|
1746
|
-
var yr = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", vr = "[\\n\\r]", hr = "\\uFEFF", rt = "[ \\t]", Ht = `(?:(?!(?:${vr}|${hr}))${yr})`, Me = `(?:(?!${rt})${Ht})`, Gt = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", Jt = "[-?:,\\[\\]{}#&*!|>'\"%@`]", br = "[,\\[\\]{}]", Je = Me, Qe = `(?:(?!${br})${Me})`, kr = `(?:(?:(?!${Jt})${Me})|[?:-](?=${Je}))`, Cr = `(?:(?:(?!${Jt})${Me})|[?:-](?=${Qe}))`, Qt = `(?:(?:(?![:#])${Je})|:(?=${Je}))#*`, Xt = `(?:(?:(?![:#])${Qe})|:(?=${Qe}))#*`, Zt = `(?:${rt}*${Qt})*`, en = `(?:${rt}*${Xt})*`, tn = `${kr}#*${Zt}`, nn = `${Cr}#*${en}`,
|
|
1746
|
+
var yr = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", vr = "[\\n\\r]", hr = "\\uFEFF", rt = "[ \\t]", Ht = `(?:(?!(?:${vr}|${hr}))${yr})`, Me = `(?:(?!${rt})${Ht})`, Gt = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", Jt = "[-?:,\\[\\]{}#&*!|>'\"%@`]", br = "[,\\[\\]{}]", Je = Me, Qe = `(?:(?!${br})${Me})`, kr = `(?:(?:(?!${Jt})${Me})|[?:-](?=${Je}))`, Cr = `(?:(?:(?!${Jt})${Me})|[?:-](?=${Qe}))`, Qt = `(?:(?:(?![:#])${Je})|:(?=${Je}))#*`, Xt = `(?:(?:(?![:#])${Qe})|:(?=${Qe}))#*`, Zt = `(?:${rt}*${Qt})*`, en = `(?:${rt}*${Xt})*`, tn = `${kr}#*${Zt}`, nn = `${Cr}#*${en}`, Sr = tn, $r = nn, Tr = `\\n+${Qt}${Zt}`, Ir = `\\n+${Xt}${en}`, _r = `${tn}(?:${Tr})*`, Er = `${nn}(?:${Ir})*`, Or = new RegExp(`^(?:${_r})$`, "u"), Ar = new RegExp(`^(?:${Er})$`, "u"), Nr = new RegExp(`^(?:${Sr})$`, "u"), Lr = new RegExp(`^(?:${$r})$`, "u"), Br = new RegExp(`^(?:${Gt})*$`, "u"), Fr = new RegExp(`^(?:${Gt}|\\n)*$`, "u"), Rr = new RegExp(`^(?:${Ht}|\\n)*$`, "u"), wr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/, ot = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;
|
|
1747
1747
|
function Kr(e) {
|
|
1748
1748
|
const t = e.node.value;
|
|
1749
1749
|
if (t !== "") {
|
|
@@ -1858,7 +1858,7 @@ function ln(e) {
|
|
|
1858
1858
|
function Xe(e) {
|
|
1859
1859
|
return e === " " || e === " ";
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function $t(e, t) {
|
|
1862
1862
|
if (e === "" || Xe(e[0])) return e;
|
|
1863
1863
|
const n = / [^ \t]/g;
|
|
1864
1864
|
let a, i = 0, r, o = 0, l = 0, d = "";
|
|
@@ -1874,12 +1874,12 @@ function Wr(e, t) {
|
|
|
1874
1874
|
let a = e.indexOf(`
|
|
1875
1875
|
`);
|
|
1876
1876
|
a === -1 && (a = e.length), n.lastIndex = a;
|
|
1877
|
-
let i =
|
|
1877
|
+
let i = $t(e.slice(0, a), t), r = e[0] === `
|
|
1878
1878
|
` || Xe(e[0]), o, l;
|
|
1879
1879
|
for (; l = n.exec(e); ) {
|
|
1880
1880
|
const d = l[1], f = l[2];
|
|
1881
1881
|
o = f !== "" && Xe(f[0]), i += d + (!r && !o && f !== "" ? `
|
|
1882
|
-
` : "") +
|
|
1882
|
+
` : "") + $t(f, t), r = o;
|
|
1883
1883
|
}
|
|
1884
1884
|
return i;
|
|
1885
1885
|
}
|
|
@@ -1935,7 +1935,7 @@ var Re = 10, lt = {
|
|
|
1935
1935
|
quoteFlowKeys: !1,
|
|
1936
1936
|
quoteStyle: "single",
|
|
1937
1937
|
forceQuotes: !1,
|
|
1938
|
-
scalarStyleRules: Object.keys(
|
|
1938
|
+
scalarStyleRules: Object.keys(St).map((e) => Reflect.get(St, e)),
|
|
1939
1939
|
tagBeforeAnchor: !1
|
|
1940
1940
|
};
|
|
1941
1941
|
function Qr(e) {
|
|
@@ -2156,7 +2156,7 @@ const so = /* @__PURE__ */ Z({
|
|
|
2156
2156
|
const { i18n: { t }, i18nT: n } = j.useI18n();
|
|
2157
2157
|
return (a, i) => {
|
|
2158
2158
|
const r = R("KAlert");
|
|
2159
|
-
return c(),
|
|
2159
|
+
return c(), $(r, {
|
|
2160
2160
|
class: "deck-callout",
|
|
2161
2161
|
dismissible: "",
|
|
2162
2162
|
onDismiss: i[1] || (i[1] = (o) => a.$emit("dismiss"))
|
|
@@ -2206,7 +2206,7 @@ const so = /* @__PURE__ */ Z({
|
|
|
2206
2206
|
const n = e, a = t, i = D("visible"), r = (f) => {
|
|
2207
2207
|
const s = Object.fromEntries(Object.entries(f).filter(([, v]) => v !== null && v !== "" && (Array.isArray(v) ? v.length !== 0 : !0)));
|
|
2208
2208
|
return Object.keys(s).length === 0 && s.constructor === Object ? "" : sn(s).trim();
|
|
2209
|
-
}, o =
|
|
2209
|
+
}, o = S(() => r(n.entityRecord)), l = S(() => r(n.unredactedRecord || n.entityRecord));
|
|
2210
2210
|
me(() => n.deckCalloutPreferenceKey, (f) => {
|
|
2211
2211
|
if (f) {
|
|
2212
2212
|
const s = localStorage.getItem(f);
|
|
@@ -2222,13 +2222,13 @@ const so = /* @__PURE__ */ Z({
|
|
|
2222
2222
|
return (f, s) => {
|
|
2223
2223
|
const v = R("KCodeBlock");
|
|
2224
2224
|
return c(), k(re, null, [
|
|
2225
|
-
n.deckCalloutPreferenceKey && i.value === "visible" ? (c(),
|
|
2225
|
+
n.deckCalloutPreferenceKey && i.value === "visible" ? (c(), $(co, {
|
|
2226
2226
|
key: 0,
|
|
2227
2227
|
onClickCta: s[0] || (s[0] = (h) => f.$emit("deck-callout:click-cta")),
|
|
2228
2228
|
onDismiss: s[1] || (s[1] = (h) => d())
|
|
2229
2229
|
})) : L("", !0),
|
|
2230
2230
|
F("div", _e({ class: "yaml-config config-card-code-block" }, f.$attrs), [
|
|
2231
|
-
n.entityRecord ? (c(),
|
|
2231
|
+
n.entityRecord ? (c(), $(v, {
|
|
2232
2232
|
key: 0,
|
|
2233
2233
|
id: "yaml-codeblock",
|
|
2234
2234
|
code: o.value,
|
|
@@ -2272,13 +2272,13 @@ const so = /* @__PURE__ */ Z({
|
|
|
2272
2272
|
}
|
|
2273
2273
|
},
|
|
2274
2274
|
setup(e) {
|
|
2275
|
-
const t = e, n =
|
|
2275
|
+
const t = e, n = S(() => {
|
|
2276
2276
|
const g = t.entityRecord;
|
|
2277
2277
|
if (!g || typeof g != "object")
|
|
2278
2278
|
return !1;
|
|
2279
2279
|
const y = g.config;
|
|
2280
2280
|
return !y || typeof y != "object" ? !1 : typeof y.managed_cache < "u" || typeof y.capacity_config < "u";
|
|
2281
|
-
}), a =
|
|
2281
|
+
}), a = S(() => typeof t.entityType == "string" && t.entityType.length > 0 ? t.entityType : n.value ? We : Ce.Partial), i = S(() => Ln.includes(a.value)), r = S(() => Bn.includes(a.value)), o = (g, y) => {
|
|
2282
2282
|
if (g.includes(`
|
|
2283
2283
|
`)) {
|
|
2284
2284
|
const p = y + ae, b = g.split(`
|
|
@@ -2359,11 +2359,11 @@ ${p}${It}`;
|
|
|
2359
2359
|
`, p += `${ae}}
|
|
2360
2360
|
`), p += `}
|
|
2361
2361
|
`, p;
|
|
2362
|
-
}, I =
|
|
2362
|
+
}, I = S(() => h(t.entityRecord)), x = S(() => h(t.unredactedRecord || t.entityRecord));
|
|
2363
2363
|
return (g, y) => {
|
|
2364
2364
|
const B = R("KCodeBlock");
|
|
2365
2365
|
return c(), k("div", uo, [
|
|
2366
|
-
t.entityRecord ? (c(),
|
|
2366
|
+
t.entityRecord ? (c(), $(B, {
|
|
2367
2367
|
key: 0,
|
|
2368
2368
|
id: "terraform-codeblock",
|
|
2369
2369
|
code: I.value,
|
|
@@ -2409,7 +2409,7 @@ ${p}${It}`;
|
|
|
2409
2409
|
};
|
|
2410
2410
|
return (h, I) => {
|
|
2411
2411
|
const x = R("KInput"), g = R("KSelect"), y = R("KAlert"), B = R("KButton"), p = R("KModal");
|
|
2412
|
-
return c(),
|
|
2412
|
+
return c(), $(p, {
|
|
2413
2413
|
class: "generate-pat-modal",
|
|
2414
2414
|
"max-width": "640px",
|
|
2415
2415
|
title: u(i)("generatePatModal.title"),
|
|
@@ -2455,7 +2455,7 @@ ${p}${It}`;
|
|
|
2455
2455
|
placeholder: u(i)("generatePatModal.fields.expiresAt.placeholder"),
|
|
2456
2456
|
required: ""
|
|
2457
2457
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
2458
|
-
d.value ? (c(),
|
|
2458
|
+
d.value ? (c(), $(y, {
|
|
2459
2459
|
key: 0,
|
|
2460
2460
|
appearance: "danger",
|
|
2461
2461
|
message: d.value
|
|
@@ -2488,7 +2488,7 @@ ${p}${It}`;
|
|
|
2488
2488
|
const { i18n: a, i18nT: i } = j.useI18n(), { t: r } = a, o = D(""), l = D(""), d = D(""), f = D(!1), s = [
|
|
2489
2489
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2490
2490
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
2491
|
-
], v = D(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), h =
|
|
2491
|
+
], v = D(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), h = S(() => {
|
|
2492
2492
|
const p = {
|
|
2493
2493
|
_format_version: "3.0"
|
|
2494
2494
|
};
|
|
@@ -2503,7 +2503,7 @@ ${p}${It}`;
|
|
|
2503
2503
|
[M]: [b]
|
|
2504
2504
|
};
|
|
2505
2505
|
return sn(w, { quoteStyle: "double" }).trim();
|
|
2506
|
-
}, x =
|
|
2506
|
+
}, x = S(() => I(n.entityRecord)), g = S(() => I(n.unredactedRecord || n.entityRecord)), y = S(() => v.value === "bash" ? `export DECK_KONNECT_TOKEN='${o.value || "YOUR_KONNECT_PAT"}'` : `$env:DECK_KONNECT_TOKEN = "${o.value || "YOUR_KONNECT_PAT"}"`);
|
|
2507
2507
|
function B(p) {
|
|
2508
2508
|
o.value = p, f.value = !1;
|
|
2509
2509
|
}
|
|
@@ -2528,17 +2528,17 @@ ${g.value}
|
|
|
2528
2528
|
items: s
|
|
2529
2529
|
}, {
|
|
2530
2530
|
"item-template": m(({ item: q }) => [
|
|
2531
|
-
q.value === "powershell" ? (c(),
|
|
2531
|
+
q.value === "powershell" ? (c(), $(u(st), { key: 0 })) : (c(), $(u(ct), { key: 1 })),
|
|
2532
2532
|
P(" " + C(q.label), 1)
|
|
2533
2533
|
]),
|
|
2534
2534
|
"selected-item-template": m(({ item: q }) => [
|
|
2535
|
-
q.value === "powershell" ? (c(),
|
|
2535
|
+
q.value === "powershell" ? (c(), $(u(st), { key: 0 })) : (c(), $(u(ct), { key: 1 })),
|
|
2536
2536
|
P(" " + C(q.label), 1)
|
|
2537
2537
|
]),
|
|
2538
2538
|
_: 1
|
|
2539
2539
|
}, 8, ["modelValue"]),
|
|
2540
2540
|
F("div", mo, C(u(r)("deckCodeBlock.steps.step_1")), 1),
|
|
2541
|
-
e.isCustomizing ? L("", !0) : (c(),
|
|
2541
|
+
e.isCustomizing ? L("", !0) : (c(), $(u(i), {
|
|
2542
2542
|
key: 0,
|
|
2543
2543
|
"data-testid": `deck-hint-${e.app}`,
|
|
2544
2544
|
keypath: `deckCodeBlock.hint.${e.app}`,
|
|
@@ -2569,7 +2569,7 @@ ${g.value}
|
|
|
2569
2569
|
key: "0"
|
|
2570
2570
|
} : void 0
|
|
2571
2571
|
]), 1032, ["data-testid", "keypath"])),
|
|
2572
|
-
e.app === "konnect" ? (c(),
|
|
2572
|
+
e.app === "konnect" ? (c(), $(Q, {
|
|
2573
2573
|
key: 1,
|
|
2574
2574
|
id: "deck-env-codeblock",
|
|
2575
2575
|
class: ie({ customization: n.isCustomizing }),
|
|
@@ -2579,7 +2579,7 @@ ${g.value}
|
|
|
2579
2579
|
theme: e.isCustomizing ? "light" : "dark",
|
|
2580
2580
|
onCodeBlockRender: u(Te)
|
|
2581
2581
|
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) : L("", !0),
|
|
2582
|
-
o.value ? (c(),
|
|
2582
|
+
o.value ? (c(), $(_, {
|
|
2583
2583
|
key: 2,
|
|
2584
2584
|
class: "copy-konnect-pat-alert"
|
|
2585
2585
|
}, {
|
|
@@ -2601,7 +2601,7 @@ ${g.value}
|
|
|
2601
2601
|
F("div", null, C(u(r)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2602
2602
|
])) : L("", !0),
|
|
2603
2603
|
F("div", yo, C(u(r)("deckCodeBlock.steps.step_2")), 1),
|
|
2604
|
-
n.entityRecord && !n.isCustomizing ? (c(),
|
|
2604
|
+
n.entityRecord && !n.isCustomizing ? (c(), $(Q, {
|
|
2605
2605
|
key: 4,
|
|
2606
2606
|
id: "deck-codeblock",
|
|
2607
2607
|
class: ie({ customization: n.isCustomizing }),
|
|
@@ -2614,7 +2614,7 @@ ${g.value}
|
|
|
2614
2614
|
onCodeBlockRender: u(Te)
|
|
2615
2615
|
}, null, 8, ["class", "code", "copy-code", "language", "max-height", "theme", "onCodeBlockRender"])) : n.entityRecord && n.isCustomizing && u(t) ? (c(), k(re, { key: 5 }, [
|
|
2616
2616
|
F("div", vo, C(u(r)("deckCodeBlock.customization.secret_advise")), 1),
|
|
2617
|
-
(c(),
|
|
2617
|
+
(c(), $(he(u(t)), {
|
|
2618
2618
|
modelValue: d.value,
|
|
2619
2619
|
"onUpdate:modelValue": b[2] || (b[2] = (q) => d.value = q),
|
|
2620
2620
|
language: v.value
|
|
@@ -2630,7 +2630,7 @@ ${g.value}
|
|
|
2630
2630
|
})
|
|
2631
2631
|
], 64)) : L("", !0)
|
|
2632
2632
|
], 16),
|
|
2633
|
-
n.isCustomizing && n.generateKonnectPat ? (c(),
|
|
2633
|
+
n.isCustomizing && n.generateKonnectPat ? (c(), $(po, {
|
|
2634
2634
|
key: 0,
|
|
2635
2635
|
"generate-konnect-pat": n.generateKonnectPat,
|
|
2636
2636
|
visible: f.value,
|
|
@@ -2657,14 +2657,14 @@ ${g.value}
|
|
|
2657
2657
|
},
|
|
2658
2658
|
emits: ["customization-close"],
|
|
2659
2659
|
setup(e) {
|
|
2660
|
-
const t = e, { i18n: { t: n } } = j.useI18n(), a =
|
|
2660
|
+
const t = e, { i18n: { t: n } } = j.useI18n(), a = S(() => {
|
|
2661
2661
|
if (t.app === "konnect" && t.customizationOptions && typeof t.customizationOptions != "boolean")
|
|
2662
2662
|
return t.customizationOptions.generateKonnectPat;
|
|
2663
2663
|
});
|
|
2664
2664
|
return (i, r) => {
|
|
2665
2665
|
const o = R("KModal");
|
|
2666
2666
|
return c(), k(re, null, [
|
|
2667
|
-
t.entityRecord ? (c(),
|
|
2667
|
+
t.entityRecord ? (c(), $(_t, _e({ key: 0 }, i.$attrs, {
|
|
2668
2668
|
app: t.app,
|
|
2669
2669
|
"control-plane-name": t.app === "konnect" ? t.controlPlaneName : void 0,
|
|
2670
2670
|
"entity-record": t.entityRecord,
|
|
@@ -2674,7 +2674,7 @@ ${g.value}
|
|
|
2674
2674
|
"unredacted-record": t.unredactedRecord,
|
|
2675
2675
|
workspace: t.workspace || void 0
|
|
2676
2676
|
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) : L("", !0),
|
|
2677
|
-
t.entityRecord ? (c(),
|
|
2677
|
+
t.entityRecord ? (c(), $(o, {
|
|
2678
2678
|
key: 1,
|
|
2679
2679
|
"action-button-appearance": "tertiary",
|
|
2680
2680
|
"action-button-text": u(n)("baseConfigCard.actions.deck_customize_cancel"),
|
|
@@ -2710,7 +2710,7 @@ ${g.value}
|
|
|
2710
2710
|
}, ko = ["data-testid"], Co = {
|
|
2711
2711
|
key: 0,
|
|
2712
2712
|
class: "config-card-prop-section-title"
|
|
2713
|
-
},
|
|
2713
|
+
}, So = /* @__PURE__ */ Z({
|
|
2714
2714
|
__name: "ConfigCardDisplay",
|
|
2715
2715
|
props: {
|
|
2716
2716
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2800,11 +2800,11 @@ ${g.value}
|
|
|
2800
2800
|
return;
|
|
2801
2801
|
let I = JSON.parse(JSON.stringify(h));
|
|
2802
2802
|
return t.codeBlockRecordFormatter && (I = t.codeBlockRecordFormatter(I, t.format)), t.preserveCodeBlockTimestamps || (delete I.created_at, delete I.updated_at), I;
|
|
2803
|
-
}, o =
|
|
2803
|
+
}, o = S(
|
|
2804
2804
|
() => r(t.codeBlockRecordRedacted || t.codeBlockRecord || t.record)
|
|
2805
|
-
), l =
|
|
2805
|
+
), l = S(
|
|
2806
2806
|
() => r(t.codeBlockRecord || t.record)
|
|
2807
|
-
), d =
|
|
2807
|
+
), d = S(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, "")), {
|
|
2808
2808
|
isDeckEnabled: f,
|
|
2809
2809
|
deckCustomizationOptions: s,
|
|
2810
2810
|
deckCalloutPreferenceKey: v
|
|
@@ -2821,7 +2821,7 @@ ${g.value}
|
|
|
2821
2821
|
}, [
|
|
2822
2822
|
x !== "basic" ? (c(), k("div", Co, C(x === "advanced" ? u(a)("baseConfigCard.sections.advanced") : x === "plugin" ? u(a)("baseConfigCard.sections.plugin") : u(a)("baseConfigCard.sections.policy")), 1)) : L("", !0),
|
|
2823
2823
|
(c(!0), k(re, null, de(e.propertyCollections[x], (g) => U(h.$slots, `config-card-item-${g.key}`, { row: g }, () => [
|
|
2824
|
-
(c(),
|
|
2824
|
+
(c(), $(Dt, {
|
|
2825
2825
|
key: g.key,
|
|
2826
2826
|
item: g
|
|
2827
2827
|
}, pe({
|
|
@@ -2847,7 +2847,7 @@ ${g.value}
|
|
|
2847
2847
|
], !0)), 256))
|
|
2848
2848
|
], 10, ko))), 128))
|
|
2849
2849
|
])) : L("", !0),
|
|
2850
|
-
e.format === "json" && o.value ? (c(),
|
|
2850
|
+
e.format === "json" && o.value ? (c(), $(Ut, {
|
|
2851
2851
|
key: 1,
|
|
2852
2852
|
config: t.config,
|
|
2853
2853
|
"entity-record": o.value,
|
|
@@ -2855,21 +2855,21 @@ ${g.value}
|
|
|
2855
2855
|
"request-method": "get",
|
|
2856
2856
|
"unredacted-record": l.value
|
|
2857
2857
|
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) : L("", !0),
|
|
2858
|
-
e.format === "yaml" && o.value ? (c(),
|
|
2858
|
+
e.format === "yaml" && o.value ? (c(), $(cn, {
|
|
2859
2859
|
key: 2,
|
|
2860
2860
|
"deck-callout-preference-key": u(f) ? u(v) : void 0,
|
|
2861
2861
|
"entity-record": o.value,
|
|
2862
2862
|
"unredacted-record": l.value,
|
|
2863
2863
|
"onDeckCallout:clickCta": I[0] || (I[0] = (x) => h.$emit("request-deck-format"))
|
|
2864
2864
|
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) : L("", !0),
|
|
2865
|
-
e.format === "terraform" && o.value ? (c(),
|
|
2865
|
+
e.format === "terraform" && o.value ? (c(), $(un, {
|
|
2866
2866
|
key: 3,
|
|
2867
2867
|
"entity-record": o.value,
|
|
2868
2868
|
"entity-type": t.entityType,
|
|
2869
2869
|
"sub-entity-type": t.subEntityType,
|
|
2870
2870
|
"unredacted-record": l.value
|
|
2871
2871
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) : L("", !0),
|
|
2872
|
-
e.format === "deck" && o.value ? (c(),
|
|
2872
|
+
e.format === "deck" && o.value ? (c(), $(dn, {
|
|
2873
2873
|
key: 4,
|
|
2874
2874
|
app: e.config.app,
|
|
2875
2875
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
@@ -2885,7 +2885,7 @@ ${g.value}
|
|
|
2885
2885
|
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) : L("", !0)
|
|
2886
2886
|
], 64));
|
|
2887
2887
|
}
|
|
2888
|
-
}),
|
|
2888
|
+
}), $o = /* @__PURE__ */ oe(So, [["__scopeId", "data-v-83075649"]]), To = {
|
|
2889
2889
|
class: "config-card-title",
|
|
2890
2890
|
"data-testid": "config-card-title"
|
|
2891
2891
|
}, Io = { class: "config-card-actions" }, _o = { class: "row" }, Eo = ["href"], Oo = {
|
|
@@ -3045,7 +3045,7 @@ ${g.value}
|
|
|
3045
3045
|
} = j.useBaseEntityDeckOptions(
|
|
3046
3046
|
() => a.config,
|
|
3047
3047
|
() => a.entityType
|
|
3048
|
-
), I =
|
|
3048
|
+
), I = S(() => {
|
|
3049
3049
|
const T = [
|
|
3050
3050
|
{
|
|
3051
3051
|
label: i("baseConfigCard.general.structuredFormat"),
|
|
@@ -3135,12 +3135,12 @@ ${g.value}
|
|
|
3135
3135
|
// the last property displayed
|
|
3136
3136
|
section: se.Basic
|
|
3137
3137
|
}
|
|
3138
|
-
}, p = D(!1), b = D(!1), M = D(""), w = D({}), Q = D(null), _ =
|
|
3138
|
+
}, p = D(!1), b = D(!1), M = D(""), w = D({}), Q = D(null), _ = S(() => {
|
|
3139
3139
|
if (!(!a.codeBlockRecordResolver || Q.value == null))
|
|
3140
3140
|
return a.codeBlockRecordResolver(Q.value);
|
|
3141
3141
|
}), O = D(!1);
|
|
3142
3142
|
kn(Kt, O);
|
|
3143
|
-
const { redactByConfigSchema: q, redactByApiSchema: A, isObjectRecord: K, getApiSchemaField: N } = j.useHelpers(), V =
|
|
3143
|
+
const { redactByConfigSchema: q, redactByApiSchema: A, isObjectRecord: K, getApiSchemaField: N } = j.useHelpers(), V = S(() => {
|
|
3144
3144
|
const T = _.value || w.value;
|
|
3145
3145
|
let z = T;
|
|
3146
3146
|
if (K(T) && Array.isArray(l?.value?.fields)) {
|
|
@@ -3152,7 +3152,7 @@ ${g.value}
|
|
|
3152
3152
|
z = H;
|
|
3153
3153
|
}
|
|
3154
3154
|
return z = q(z, a.configSchema), a.codeBlockRecordResolver ? a.codeBlockRecordResolver(z) : z;
|
|
3155
|
-
}), ee =
|
|
3155
|
+
}), ee = S(() => {
|
|
3156
3156
|
if (!w.value)
|
|
3157
3157
|
return [];
|
|
3158
3158
|
const T = [], z = Object.keys(w.value).length;
|
|
@@ -3176,7 +3176,7 @@ ${g.value}
|
|
|
3176
3176
|
section: te.section ?? (ne?.section || se.Advanced)
|
|
3177
3177
|
};
|
|
3178
3178
|
}).filter((H) => !H.hidden && H.key !== a.pluginConfigKey);
|
|
3179
|
-
}), be =
|
|
3179
|
+
}), be = S(() => {
|
|
3180
3180
|
if (!w.value || !a.pluginConfigKey)
|
|
3181
3181
|
return [];
|
|
3182
3182
|
const T = w.value[a.pluginConfigKey] || {}, z = Object.keys(T).length, H = [];
|
|
@@ -3199,7 +3199,7 @@ ${g.value}
|
|
|
3199
3199
|
section: se.Plugin
|
|
3200
3200
|
};
|
|
3201
3201
|
}).filter((Y) => !Y.hidden);
|
|
3202
|
-
}), ge =
|
|
3202
|
+
}), ge = S(() => {
|
|
3203
3203
|
if (!w.value || !a.policyConfigKey)
|
|
3204
3204
|
return [];
|
|
3205
3205
|
const T = w.value[a.policyConfigKey] || {}, z = Object.keys(T).length, H = [];
|
|
@@ -3222,15 +3222,15 @@ ${g.value}
|
|
|
3222
3222
|
section: se.Policy
|
|
3223
3223
|
};
|
|
3224
3224
|
}).filter((Y) => !Y.hidden);
|
|
3225
|
-
}), fe =
|
|
3225
|
+
}), fe = S(() => ({
|
|
3226
3226
|
basic: ee.value?.filter((T) => T.section === se.Basic),
|
|
3227
3227
|
advanced: ee.value?.filter((T) => T.section === se.Advanced),
|
|
3228
3228
|
plugin: be.value?.concat(ee.value?.filter((T) => T.section === se.Plugin)),
|
|
3229
3229
|
policy: ge.value?.concat(ee.value?.filter((T) => T.section === se.Policy))
|
|
3230
|
-
})), qe =
|
|
3230
|
+
})), qe = S(() => {
|
|
3231
3231
|
const T = [];
|
|
3232
3232
|
return fe.value.basic.length && T.push("basic"), fe.value.advanced.length && T.push("advanced"), fe.value.plugin.length && T.push("plugin"), fe.value.policy.length && T.push("policy"), T;
|
|
3233
|
-
}), ue =
|
|
3233
|
+
}), ue = S(() => {
|
|
3234
3234
|
let T = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3235
3235
|
return a.config.app === "konnect" && (T = T.replace(/{controlPlaneId}/gi, a.config?.controlPlaneId || "")), T.replace(/\/{workspace}/gi, a.config?.workspace ? `/${a.config.workspace}` : "").replace(/{id}/gi, a.config.entityId);
|
|
3236
3236
|
});
|
|
@@ -3258,7 +3258,7 @@ ${g.value}
|
|
|
3258
3258
|
}
|
|
3259
3259
|
}), (T, z) => {
|
|
3260
3260
|
const H = R("KCheckbox"), Y = R("KLabel"), G = R("KSelect"), te = R("KButton"), ne = R("KSkeleton"), fn = R("KEmptyState"), pn = R("KCard");
|
|
3261
|
-
return c(),
|
|
3261
|
+
return c(), $(pn, {
|
|
3262
3262
|
class: "kong-ui-entity-base-config-card",
|
|
3263
3263
|
"title-tag": e.titleTag
|
|
3264
3264
|
}, pe({
|
|
@@ -3297,7 +3297,7 @@ ${g.value}
|
|
|
3297
3297
|
onChange: g
|
|
3298
3298
|
}, null, 8, ["modelValue", "items"])
|
|
3299
3299
|
]),
|
|
3300
|
-
x.value === "deck" && u(h) ? (c(),
|
|
3300
|
+
x.value === "deck" && u(h) ? (c(), $(te, {
|
|
3301
3301
|
key: 0,
|
|
3302
3302
|
appearance: "secondary",
|
|
3303
3303
|
class: "button-customize-deck",
|
|
@@ -3309,7 +3309,7 @@ ${g.value}
|
|
|
3309
3309
|
]),
|
|
3310
3310
|
_: 1
|
|
3311
3311
|
})) : L("", !0),
|
|
3312
|
-
e.configCardDoc ? (c(),
|
|
3312
|
+
e.configCardDoc ? (c(), $(te, {
|
|
3313
3313
|
key: 1,
|
|
3314
3314
|
appearance: "tertiary",
|
|
3315
3315
|
class: "book-icon",
|
|
@@ -3331,12 +3331,12 @@ ${g.value}
|
|
|
3331
3331
|
])
|
|
3332
3332
|
]),
|
|
3333
3333
|
default: m(() => [
|
|
3334
|
-
p.value ? (c(),
|
|
3334
|
+
p.value ? (c(), $(ne, {
|
|
3335
3335
|
key: 0,
|
|
3336
3336
|
"data-testid": "config-card-loader",
|
|
3337
3337
|
"table-columns": 2,
|
|
3338
3338
|
type: "table"
|
|
3339
|
-
})) : b.value ? (c(),
|
|
3339
|
+
})) : b.value ? (c(), $(fn, {
|
|
3340
3340
|
key: 1,
|
|
3341
3341
|
"data-testid": "config-card-fetch-error",
|
|
3342
3342
|
"icon-variant": "error"
|
|
@@ -3346,7 +3346,7 @@ ${g.value}
|
|
|
3346
3346
|
]),
|
|
3347
3347
|
_: 1
|
|
3348
3348
|
})) : (c(), k("div", Oo, [
|
|
3349
|
-
E(
|
|
3349
|
+
E($o, {
|
|
3350
3350
|
"code-block-record": _.value,
|
|
3351
3351
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3352
3352
|
"code-block-record-redacted": O.value ? void 0 : V.value,
|
|
@@ -3548,7 +3548,7 @@ ${g.value}
|
|
|
3548
3548
|
},
|
|
3549
3549
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3550
3550
|
setup(e, { expose: t, emit: n }) {
|
|
3551
|
-
const a = tt(Kn, D(!1)), i = n, r = e, o = Zn(), { i18n: { t: l } } = j.useI18n(), { getMessageFromError: d } = j.useErrors(), { axiosInstance: f } = j.useAxios(r.config?.axiosRequestConfig), s = D(!1), v =
|
|
3551
|
+
const a = tt(Kn, D(!1)), i = n, r = e, o = Zn(), { i18n: { t: l } } = j.useI18n(), { getMessageFromError: d } = j.useErrors(), { axiosInstance: f } = j.useAxios(r.config?.axiosRequestConfig), s = D(!1), v = S(() => !!r.editId), h = D(!1), I = D(""), x = S(() => r.canSubmit === !1 || r.isReadonly), g = D(!1), y = S(() => {
|
|
3552
3552
|
let K = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3553
3553
|
return r.config.app === "konnect" && (K = K.replace(/{controlPlaneId}/gi, r.config?.controlPlaneId || "")), K = K.replace(/\/{workspace}/gi, r.config?.workspace ? `/${r.config.workspace}` : ""), r.editId ? (K = K.replace(/{id}/gi, r.editId), K) : (K = K.replace(/\/{id}/gi, ""), K);
|
|
3554
3554
|
}), B = D(!1), {
|
|
@@ -3566,7 +3566,7 @@ ${g.value}
|
|
|
3566
3566
|
i("cancel");
|
|
3567
3567
|
}, O = () => {
|
|
3568
3568
|
x.value || i("submit");
|
|
3569
|
-
}, q =
|
|
3569
|
+
}, q = S(() => {
|
|
3570
3570
|
const K = [
|
|
3571
3571
|
{
|
|
3572
3572
|
title: l("baseForm.configuration.json"),
|
|
@@ -3609,16 +3609,16 @@ ${g.value}
|
|
|
3609
3609
|
formSubmit: O
|
|
3610
3610
|
}), (K, N) => {
|
|
3611
3611
|
const V = R("KSkeleton"), ee = R("KEmptyState"), be = R("KAlert"), ge = R("KButton"), fe = R("KTabs"), qe = R("KSlideout");
|
|
3612
|
-
return c(),
|
|
3612
|
+
return c(), $(he(e.wrapperComponent), {
|
|
3613
3613
|
class: ie(["kong-ui-entity-base-form", {
|
|
3614
3614
|
"new-form-layout": u(a) && e.entityType === u(Ce).Plugin
|
|
3615
3615
|
}])
|
|
3616
3616
|
}, {
|
|
3617
3617
|
default: m(() => [
|
|
3618
|
-
s.value ? (c(),
|
|
3618
|
+
s.value ? (c(), $(V, {
|
|
3619
3619
|
key: 0,
|
|
3620
3620
|
type: "form"
|
|
3621
|
-
})) : h.value ? (c(),
|
|
3621
|
+
})) : h.value ? (c(), $(ee, {
|
|
3622
3622
|
key: 1,
|
|
3623
3623
|
"action-button-text": u(l)("baseForm.actions.back"),
|
|
3624
3624
|
"data-testid": "form-fetch-error",
|
|
@@ -3637,14 +3637,14 @@ ${g.value}
|
|
|
3637
3637
|
onSubmit: Ne(O, ["prevent"])
|
|
3638
3638
|
}, [
|
|
3639
3639
|
U(K.$slots, "default", {}, void 0, !0),
|
|
3640
|
-
e.errorMessage ? (c(),
|
|
3640
|
+
e.errorMessage ? (c(), $(be, {
|
|
3641
3641
|
key: 0,
|
|
3642
3642
|
appearance: "danger",
|
|
3643
3643
|
class: "form-error",
|
|
3644
3644
|
"data-testid": "form-error",
|
|
3645
3645
|
message: e.errorMessage
|
|
3646
3646
|
}, null, 8, ["message"])) : L("", !0),
|
|
3647
|
-
e.hideActions ? L("", !0) : (c(),
|
|
3647
|
+
e.hideActions ? L("", !0) : (c(), $(Ot, {
|
|
3648
3648
|
key: 1,
|
|
3649
3649
|
disabled: !e.actionTeleportTarget,
|
|
3650
3650
|
to: e.actionTeleportTarget
|
|
@@ -3789,10 +3789,10 @@ ${g.value}
|
|
|
3789
3789
|
}
|
|
3790
3790
|
},
|
|
3791
3791
|
setup(e) {
|
|
3792
|
-
const t = e, n =
|
|
3792
|
+
const t = e, n = S(() => t.rowEl?.querySelector(`[data-testid="${t.keyName}"]`) || null), a = S(() => n.value?.querySelector('[data-truncate="true"]') || null), i = S(() => {
|
|
3793
3793
|
const y = t.rowEl?.querySelectorAll("td");
|
|
3794
3794
|
return y ? y[0]?.getAttribute("data-testid") === t.keyName : !0;
|
|
3795
|
-
}), r =
|
|
3795
|
+
}), r = S(() => i.value || t.tooltip);
|
|
3796
3796
|
let o;
|
|
3797
3797
|
const l = () => {
|
|
3798
3798
|
o && (o.disconnect(), o = void 0);
|
|
@@ -3803,7 +3803,7 @@ ${g.value}
|
|
|
3803
3803
|
y -= (parseFloat(B.paddingLeft) || 0) + (parseFloat(B.paddingRight) || 0);
|
|
3804
3804
|
}
|
|
3805
3805
|
s.value = a.value?.getBoundingClientRect().width || 0, v.value = y, h.value = f.value?.innerText || "";
|
|
3806
|
-
}, f = D({}), s = D(0), v = D(0), h = D(""), I =
|
|
3806
|
+
}, f = D({}), s = D(0), v = D(0), h = D(""), I = S(() => [a.value, n.value]), x = me(
|
|
3807
3807
|
I,
|
|
3808
3808
|
(y) => {
|
|
3809
3809
|
if (r.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3817,7 +3817,7 @@ ${g.value}
|
|
|
3817
3817
|
}
|
|
3818
3818
|
},
|
|
3819
3819
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3820
|
-
), g =
|
|
3820
|
+
), g = S(() => r.value ? s.value > v.value : !1);
|
|
3821
3821
|
return Be(() => {
|
|
3822
3822
|
d();
|
|
3823
3823
|
}), Cn(() => {
|
|
@@ -3998,7 +3998,7 @@ ${g.value}
|
|
|
3998
3998
|
},
|
|
3999
3999
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
4000
4000
|
setup(e, { emit: t }) {
|
|
4001
|
-
const n = e, a = t, { i18n: { t: i } } = j.useI18n(), r =
|
|
4001
|
+
const n = e, a = t, { i18n: { t: i } } = j.useI18n(), r = S(() => typeof n.errorMessage == "string" ? {
|
|
4002
4002
|
hasError: !!n.errorMessage,
|
|
4003
4003
|
title: n.errorMessage,
|
|
4004
4004
|
message: void 0
|
|
@@ -4006,7 +4006,7 @@ ${g.value}
|
|
|
4006
4006
|
hasError: !!n.errorMessage,
|
|
4007
4007
|
title: n.errorMessage?.title,
|
|
4008
4008
|
message: n.errorMessage?.message
|
|
4009
|
-
}), o =
|
|
4009
|
+
}), o = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = S(() => {
|
|
4010
4010
|
const A = [];
|
|
4011
4011
|
return Object.keys(n.tableHeaders).forEach((N) => {
|
|
4012
4012
|
const V = n.tableHeaders[N];
|
|
@@ -4040,7 +4040,7 @@ ${g.value}
|
|
|
4040
4040
|
a("empty-state-cta-clicked"), x();
|
|
4041
4041
|
}, x = () => {
|
|
4042
4042
|
a("clear-search-input");
|
|
4043
|
-
}, g =
|
|
4043
|
+
}, g = S(() => n.disableRowClick ? void 0 : (A, K) => {
|
|
4044
4044
|
a("click:row", K);
|
|
4045
4045
|
}), y = (A) => {
|
|
4046
4046
|
a("sort", A);
|
|
@@ -4051,7 +4051,7 @@ ${g.value}
|
|
|
4051
4051
|
...A,
|
|
4052
4052
|
...K ? { columnVisibility: { ...K, ...A.columnVisibility } } : {}
|
|
4053
4053
|
};
|
|
4054
|
-
})()), _ =
|
|
4054
|
+
})()), _ = S(() => {
|
|
4055
4055
|
const A = M(o.value);
|
|
4056
4056
|
return {
|
|
4057
4057
|
...n.initialFetcherParams,
|
|
@@ -4061,14 +4061,14 @@ ${g.value}
|
|
|
4061
4061
|
Q.value = A, l.value.forEach((K) => {
|
|
4062
4062
|
!("hidable" in K) || !Q.value.columnVisibility || K.hidable === !1 && (Q.value.columnVisibility[K.key] = !0);
|
|
4063
4063
|
}), o.value && b(o.value, A);
|
|
4064
|
-
}, q =
|
|
4064
|
+
}, q = S(() => ({
|
|
4065
4065
|
disablePageJump: n.disablePaginationPageJump,
|
|
4066
4066
|
offset: n.paginationType === "offset",
|
|
4067
4067
|
...n.paginationAttributes
|
|
4068
4068
|
}));
|
|
4069
4069
|
return (A, K) => {
|
|
4070
4070
|
const N = R("KTableData"), V = R("KCard");
|
|
4071
|
-
return c(),
|
|
4071
|
+
return c(), $(V, {
|
|
4072
4072
|
class: "kong-ui-entity-base-table",
|
|
4073
4073
|
title: e.title,
|
|
4074
4074
|
"title-tag": e.titleTag
|
|
@@ -4232,16 +4232,16 @@ ${g.value}
|
|
|
4232
4232
|
},
|
|
4233
4233
|
emits: ["cancel", "proceed"],
|
|
4234
4234
|
setup(e, { emit: t }) {
|
|
4235
|
-
const { i18nT: n } = j.useI18n(), a = e, i = t, r =
|
|
4235
|
+
const { i18nT: n } = j.useI18n(), a = e, i = t, r = S(
|
|
4236
4236
|
() => a.entityTypeDisplay.trim() !== "" ? a.entityTypeDisplay : a.entityType
|
|
4237
|
-
), o =
|
|
4237
|
+
), o = S(() => a.needConfirm ? a.entityName : ""), l = () => {
|
|
4238
4238
|
i("cancel");
|
|
4239
4239
|
}, d = () => {
|
|
4240
4240
|
i("proceed");
|
|
4241
4241
|
};
|
|
4242
4242
|
return (f, s) => {
|
|
4243
4243
|
const v = R("KAlert"), h = R("KPrompt");
|
|
4244
|
-
return c(),
|
|
4244
|
+
return c(), $(h, {
|
|
4245
4245
|
"action-button-appearance": "danger",
|
|
4246
4246
|
"action-button-disabled": e.actionPending || e.confirmDisabled,
|
|
4247
4247
|
"action-button-text": "Yes, delete",
|
|
@@ -4323,12 +4323,12 @@ ${g.value}
|
|
|
4323
4323
|
},
|
|
4324
4324
|
emits: ["update:modelValue"],
|
|
4325
4325
|
setup(e, { emit: t }) {
|
|
4326
|
-
const { i18n: { t: n } } = j.useI18n(), a = e, i = t, r = D(!1), o = D({}), l = D(/* @__PURE__ */ new Set()), d =
|
|
4326
|
+
const { i18n: { t: n } } = j.useI18n(), a = e, i = t, r = D(!1), o = D({}), l = D(/* @__PURE__ */ new Set()), d = S(() => {
|
|
4327
4327
|
const _ = [];
|
|
4328
4328
|
return new URLSearchParams(a.modelValue).forEach((O, q) => {
|
|
4329
4329
|
O !== "" && _.push(q);
|
|
4330
4330
|
}), _;
|
|
4331
|
-
}), f =
|
|
4331
|
+
}), f = S(() => {
|
|
4332
4332
|
const _ = a.config.fields;
|
|
4333
4333
|
return Object.keys(_).filter((O) => _?.[O]?.searchable).map((O) => ({
|
|
4334
4334
|
label: _[O].label || O,
|
|
@@ -4367,7 +4367,7 @@ ${g.value}
|
|
|
4367
4367
|
};
|
|
4368
4368
|
return (_, O) => {
|
|
4369
4369
|
const q = R("KInput"), A = R("KButton"), K = R("KSelect");
|
|
4370
|
-
return e.config.isExactMatch ? (c(),
|
|
4370
|
+
return e.config.isExactMatch ? (c(), $(q, {
|
|
4371
4371
|
key: 0,
|
|
4372
4372
|
autocomplete: "off",
|
|
4373
4373
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4380,13 +4380,13 @@ ${g.value}
|
|
|
4380
4380
|
E(u(ut), { decorative: "" })
|
|
4381
4381
|
]),
|
|
4382
4382
|
after: m(() => [
|
|
4383
|
-
|
|
4383
|
+
Se(E(u(Lt), {
|
|
4384
4384
|
class: "kong-ui-entity-filter-clear",
|
|
4385
4385
|
role: "button",
|
|
4386
4386
|
tabindex: "0",
|
|
4387
4387
|
onClick: I
|
|
4388
4388
|
}, null, 512), [
|
|
4389
|
-
[
|
|
4389
|
+
[$e, e.modelValue !== ""]
|
|
4390
4390
|
])
|
|
4391
4391
|
]),
|
|
4392
4392
|
_: 1
|
|
@@ -4402,13 +4402,13 @@ ${g.value}
|
|
|
4402
4402
|
]),
|
|
4403
4403
|
_: 1
|
|
4404
4404
|
}),
|
|
4405
|
-
|
|
4405
|
+
Se(F("div", {
|
|
4406
4406
|
class: "kong-ui-entity-filter-backdrop",
|
|
4407
4407
|
onClick: s
|
|
4408
4408
|
}, null, 512), [
|
|
4409
|
-
[
|
|
4409
|
+
[$e, r.value]
|
|
4410
4410
|
]),
|
|
4411
|
-
|
|
4411
|
+
Se(F("div", Vo, [
|
|
4412
4412
|
(c(!0), k(re, null, de(f.value, (N) => (c(), k("div", {
|
|
4413
4413
|
key: N.value,
|
|
4414
4414
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4422,20 +4422,20 @@ ${g.value}
|
|
|
4422
4422
|
onKeydown: At((V) => v(N.value), ["enter"])
|
|
4423
4423
|
}, [
|
|
4424
4424
|
P(C(N.label) + " ", 1),
|
|
4425
|
-
|
|
4426
|
-
[
|
|
4425
|
+
Se(F("span", Ho, null, 512), [
|
|
4426
|
+
[$e, d.value.includes(N.value)]
|
|
4427
4427
|
]),
|
|
4428
4428
|
E(u(In), {
|
|
4429
4429
|
class: ie(["menu-item-expand-icon", { expanded: l.value.has(N.value) }]),
|
|
4430
4430
|
color: `var(--kui-color-text-neutral-weak, ${u(pa)})`
|
|
4431
4431
|
}, null, 8, ["class", "color"])
|
|
4432
4432
|
], 42, Wo),
|
|
4433
|
-
|
|
4433
|
+
Se(F("div", Go, [
|
|
4434
4434
|
F("label", {
|
|
4435
4435
|
class: "menu-item-label",
|
|
4436
4436
|
for: x(N.value)
|
|
4437
4437
|
}, C(u(n)("filter.fieldLabel")), 9, Jo),
|
|
4438
|
-
e.config.schema?.[N.value]?.type === "select" ? (c(),
|
|
4438
|
+
e.config.schema?.[N.value]?.type === "select" ? (c(), $(K, {
|
|
4439
4439
|
key: 0,
|
|
4440
4440
|
id: x(N.value),
|
|
4441
4441
|
"enable-filtering": M(N.value),
|
|
@@ -4445,7 +4445,7 @@ ${g.value}
|
|
|
4445
4445
|
"model-value": o.value[N.value],
|
|
4446
4446
|
placeholder: u(n)("filter.selectPlaceholder"),
|
|
4447
4447
|
onChange: (V) => Q(N.value, V)
|
|
4448
|
-
}, null, 8, ["id", "enable-filtering", "enable-item-creation", "filter-function", "items", "model-value", "placeholder", "onChange"])) : (c(),
|
|
4448
|
+
}, null, 8, ["id", "enable-filtering", "enable-item-creation", "filter-function", "items", "model-value", "placeholder", "onChange"])) : (c(), $(q, {
|
|
4449
4449
|
key: 1,
|
|
4450
4450
|
id: x(N.value),
|
|
4451
4451
|
modelValue: o.value[N.value],
|
|
@@ -4455,9 +4455,9 @@ ${g.value}
|
|
|
4455
4455
|
type: y(N.value)
|
|
4456
4456
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4457
4457
|
], 512), [
|
|
4458
|
-
[
|
|
4458
|
+
[$e, l.value.has(N.value)]
|
|
4459
4459
|
]),
|
|
4460
|
-
|
|
4460
|
+
Se(F("div", Qo, [
|
|
4461
4461
|
E(A, {
|
|
4462
4462
|
appearance: "tertiary",
|
|
4463
4463
|
"data-testid": "apply-filter",
|
|
@@ -4481,7 +4481,7 @@ ${g.value}
|
|
|
4481
4481
|
_: 1
|
|
4482
4482
|
}, 8, ["onClick"])
|
|
4483
4483
|
], 512), [
|
|
4484
|
-
[
|
|
4484
|
+
[$e, l.value.has(N.value)]
|
|
4485
4485
|
])
|
|
4486
4486
|
], 8, Yo))), 128)),
|
|
4487
4487
|
F("div", Xo, [
|
|
@@ -4497,7 +4497,7 @@ ${g.value}
|
|
|
4497
4497
|
})
|
|
4498
4498
|
])
|
|
4499
4499
|
], 512), [
|
|
4500
|
-
[
|
|
4500
|
+
[$e, r.value]
|
|
4501
4501
|
])
|
|
4502
4502
|
]));
|
|
4503
4503
|
};
|
|
@@ -4534,9 +4534,9 @@ ${g.value}
|
|
|
4534
4534
|
},
|
|
4535
4535
|
emits: ["cancel", "proceed"],
|
|
4536
4536
|
setup(e, { emit: t }) {
|
|
4537
|
-
const { i18n: { t: n }, i18nT: a } = j.useI18n(), i = e, r = t, o = D(!1), l =
|
|
4537
|
+
const { i18n: { t: n }, i18nT: a } = j.useI18n(), i = e, r = t, o = D(!1), l = S(
|
|
4538
4538
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4539
|
-
), d =
|
|
4539
|
+
), d = S(
|
|
4540
4540
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4541
4541
|
), f = () => r("cancel"), s = async () => {
|
|
4542
4542
|
if (i.onConfirm) {
|
|
@@ -4552,7 +4552,7 @@ ${g.value}
|
|
|
4552
4552
|
};
|
|
4553
4553
|
return (v, h) => {
|
|
4554
4554
|
const I = R("KPrompt");
|
|
4555
|
-
return c(),
|
|
4555
|
+
return c(), $(Ot, { to: "body" }, [
|
|
4556
4556
|
E(I, {
|
|
4557
4557
|
"action-button-disabled": o.value,
|
|
4558
4558
|
"action-button-text": d.value,
|
|
@@ -4603,7 +4603,7 @@ ${g.value}
|
|
|
4603
4603
|
}
|
|
4604
4604
|
},
|
|
4605
4605
|
setup(e) {
|
|
4606
|
-
const t = e, n = D(void 0), a =
|
|
4606
|
+
const t = e, n = D(void 0), a = S(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4607
4607
|
return me(() => t.authFunction, async () => {
|
|
4608
4608
|
n.value = await t.authFunction();
|
|
4609
4609
|
}, { immediate: !0 }), (i, r) => a.value ? U(i.$slots, "default", { isAllowed: n.value }, void 0, void 0, 0) : L("", !0);
|
|
@@ -4674,7 +4674,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4674
4674
|
key: 0,
|
|
4675
4675
|
class: ie(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4676
4676
|
}, [
|
|
4677
|
-
e.title ? (c(),
|
|
4677
|
+
e.title ? (c(), $(he(e.titleTag), {
|
|
4678
4678
|
key: 0,
|
|
4679
4679
|
id: u(n),
|
|
4680
4680
|
class: "form-section-title"
|
|
@@ -4765,7 +4765,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4765
4765
|
}, kl = {
|
|
4766
4766
|
key: 0,
|
|
4767
4767
|
class: "deleted-entity"
|
|
4768
|
-
}, Cl = { key: 1 },
|
|
4768
|
+
}, Cl = { key: 1 }, Sl = ["onClick"], $l = /* @__PURE__ */ Z({
|
|
4769
4769
|
__name: "EntityLink",
|
|
4770
4770
|
props: {
|
|
4771
4771
|
entityLinkData: {
|
|
@@ -4789,7 +4789,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
},
|
|
4791
4791
|
setup(e) {
|
|
4792
|
-
const t = e, n = D(), { isTruncated: a } = j.useTruncationDetector(n), { i18n: { t: i } } = j.useI18n(), r =
|
|
4792
|
+
const t = e, n = D(), { isTruncated: a } = j.useTruncationDetector(n), { i18n: { t: i } } = j.useI18n(), r = Sn("body"), o = () => {
|
|
4793
4793
|
const I = document.fullscreenElement;
|
|
4794
4794
|
r.value = I instanceof HTMLElement ? I : "body";
|
|
4795
4795
|
};
|
|
@@ -4798,7 +4798,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4798
4798
|
}), Nt(() => {
|
|
4799
4799
|
document.removeEventListener("fullscreenchange", o);
|
|
4800
4800
|
});
|
|
4801
|
-
const l = i("global.actions.copyId"), d = D(l), f =
|
|
4801
|
+
const l = i("global.actions.copyId"), d = D(l), f = S(() => t.entityLinkData.deleted ?? !1), s = S(() => t.entityLinkData.id?.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), v = S(() => `${s.value?.toString().slice(0, 5)} (deleted)`), h = async (I) => {
|
|
4802
4802
|
await I(s.value || "") && (d.value = i("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4803
4803
|
d.value = l;
|
|
4804
4804
|
}, 1800));
|
|
@@ -4806,7 +4806,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4806
4806
|
return (I, x) => {
|
|
4807
4807
|
const g = R("KTooltip"), y = R("KExternalLink"), B = R("KClipboardProvider");
|
|
4808
4808
|
return c(), k("div", bl, [
|
|
4809
|
-
f.value ? (c(), k("div", kl, C(v.value), 1)) : s.value ? s.value ? (c(),
|
|
4809
|
+
f.value ? (c(), k("div", kl, C(v.value), 1)) : s.value ? s.value ? (c(), $(y, {
|
|
4810
4810
|
key: 2,
|
|
4811
4811
|
class: "entity-link",
|
|
4812
4812
|
"hide-icon": !e.newWindow,
|
|
@@ -4830,7 +4830,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4830
4830
|
]),
|
|
4831
4831
|
_: 1
|
|
4832
4832
|
}, 8, ["hide-icon", "href", "target"])) : L("", !0) : (c(), k("div", Cl, C(" – "))),
|
|
4833
|
-
s.value && e.allowCopy ? (c(),
|
|
4833
|
+
s.value && e.allowCopy ? (c(), $(g, {
|
|
4834
4834
|
key: d.value,
|
|
4835
4835
|
class: "copy-uuid-tooltip",
|
|
4836
4836
|
"max-width": "160",
|
|
@@ -4850,7 +4850,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4850
4850
|
"data-testid": "copy-id",
|
|
4851
4851
|
size: `var(--kui-icon-size-30, ${u(xt)})`
|
|
4852
4852
|
}, null, 8, ["color", "size"])
|
|
4853
|
-
], 8,
|
|
4853
|
+
], 8, Sl)
|
|
4854
4854
|
]),
|
|
4855
4855
|
_: 1
|
|
4856
4856
|
})
|
|
@@ -4860,7 +4860,7 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4860
4860
|
]);
|
|
4861
4861
|
};
|
|
4862
4862
|
}
|
|
4863
|
-
}), bs = /* @__PURE__ */ oe(
|
|
4863
|
+
}), bs = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-28214aed"]]), Tl = { class: "kong-ui-public-entity-empty-state" }, Il = { class: "entity-empty-state-content" }, _l = {
|
|
4864
4864
|
key: 0,
|
|
4865
4865
|
class: "empty-state-image"
|
|
4866
4866
|
}, El = {
|
|
@@ -4928,10 +4928,10 @@ const rl = ["aria-labelledby"], ol = { class: "form-section-wrapper" }, ll = {
|
|
|
4928
4928
|
},
|
|
4929
4929
|
emits: ["click:create", "click:learn-more"],
|
|
4930
4930
|
setup(e) {
|
|
4931
|
-
const t = e, { i18n: { t: n } } = j.useI18n(), a = D(!1), i =
|
|
4931
|
+
const t = e, { i18n: { t: n } } = j.useI18n(), a = D(!1), i = S(() => a.value && !!t.actionButtonText), r = S(() => ft.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4932
4932
|
return nt(async () => {
|
|
4933
4933
|
a.value = await t.canCreate();
|
|
4934
|
-
}), Be(() =>
|
|
4934
|
+
}), Be(() => $n(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4935
4935
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) => {
|
|
4936
4936
|
const d = R("KCard");
|
|
4937
4937
|
return c(), k("div", Tl, [
|
|
@@ -4968,7 +4968,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4968
4968
|
])) : L("", !0),
|
|
4969
4969
|
i.value || e.learnMore || o.$slots.actions ? (c(), k("div", Ll, [
|
|
4970
4970
|
U(o.$slots, "actions", {}, () => [
|
|
4971
|
-
i.value ? (c(),
|
|
4971
|
+
i.value ? (c(), $(u(dt), {
|
|
4972
4972
|
key: 0,
|
|
4973
4973
|
appearance: "primary",
|
|
4974
4974
|
"data-testid": "entity-create-button",
|
|
@@ -4981,7 +4981,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4981
4981
|
]),
|
|
4982
4982
|
_: 1
|
|
4983
4983
|
}, 8, ["size"])) : L("", !0),
|
|
4984
|
-
e.learnMore ? (c(),
|
|
4984
|
+
e.learnMore ? (c(), $(u(dt), {
|
|
4985
4985
|
key: 1,
|
|
4986
4986
|
appearance: "secondary",
|
|
4987
4987
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4997,7 +4997,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4997
4997
|
], !0)
|
|
4998
4998
|
])) : L("", !0),
|
|
4999
4999
|
e.features.length ? (c(), k("div", Bl, [
|
|
5000
|
-
(c(!0), k(re, null, de(e.features, (f, s) => (c(),
|
|
5000
|
+
(c(!0), k(re, null, de(e.features, (f, s) => (c(), $(d, {
|
|
5001
5001
|
key: `feature-${s}-card`,
|
|
5002
5002
|
class: "entity-empty-state-card"
|
|
5003
5003
|
}, {
|
|
@@ -5055,7 +5055,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5055
5055
|
Et((O) => ({
|
|
5056
5056
|
v673e9b78: Q.value
|
|
5057
5057
|
}));
|
|
5058
|
-
const a = n, { i18n: { t: i } } = j.useI18n(), r = D(e.mode === "edit" ? "masked" : "editing"), o = D(!1), l = D(!1), d =
|
|
5058
|
+
const a = n, { i18n: { t: i } } = j.useI18n(), r = D(e.mode === "edit" ? "masked" : "editing"), o = D(!1), l = D(!1), d = S(() => r.value === "masked"), f = ql, s = S(() => e.placeholder ?? i("sensitiveInput.placeholder")), v = S(() => e.labels?.rotateLabel ?? i("sensitiveInput.rotateKey")), h = S(() => e.labels?.generateLabel ?? i("sensitiveInput.generateKey")), I = S(() => e.labels?.hintLabel ?? i("sensitiveInput.oneTimeHint")), x = S(() => d.value || o.value ? "text" : "password");
|
|
5059
5059
|
me(() => e.showOneTimeHint, (O) => {
|
|
5060
5060
|
O && (o.value = !0);
|
|
5061
5061
|
}, { immediate: !0 });
|
|
@@ -5127,7 +5127,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5127
5127
|
]), 1032, ["autocomplete", "disabled", "error", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required"]),
|
|
5128
5128
|
e.error && e.errorMessage ? (c(), k("p", Pl, C(e.errorMessage), 1)) : L("", !0),
|
|
5129
5129
|
F("div", Dl, [
|
|
5130
|
-
d.value ? (c(),
|
|
5130
|
+
d.value ? (c(), $(A, {
|
|
5131
5131
|
key: 0,
|
|
5132
5132
|
appearance: "tertiary",
|
|
5133
5133
|
class: "sensitive-input-action",
|
|
@@ -5139,7 +5139,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5139
5139
|
P(C(v.value), 1)
|
|
5140
5140
|
]),
|
|
5141
5141
|
_: 1
|
|
5142
|
-
})) : e.generator ? (c(),
|
|
5142
|
+
})) : e.generator ? (c(), $(A, {
|
|
5143
5143
|
key: 1,
|
|
5144
5144
|
appearance: "tertiary",
|
|
5145
5145
|
class: "sensitive-input-action",
|
|
@@ -5154,7 +5154,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5154
5154
|
_: 1
|
|
5155
5155
|
}, 8, ["disabled"])) : L("", !0)
|
|
5156
5156
|
])
|
|
5157
|
-
], 64)) : (c(),
|
|
5157
|
+
], 64)) : (c(), $(he(e.useSecretInput ? u(ea) : u(Mn)), _e({
|
|
5158
5158
|
key: 0,
|
|
5159
5159
|
autocomplete: e.autocomplete,
|
|
5160
5160
|
"data-testid": "sensitive-input",
|
|
@@ -5170,7 +5170,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5170
5170
|
required: e.required
|
|
5171
5171
|
}, e.useSecretInput ? { masked: !o.value, showMaskToggle: !1 } : { type: x.value }, { "onUpdate:modelValue": g }), pe({
|
|
5172
5172
|
after: m(() => [
|
|
5173
|
-
d.value ? (c(),
|
|
5173
|
+
d.value ? (c(), $(A, {
|
|
5174
5174
|
key: 0,
|
|
5175
5175
|
appearance: "tertiary",
|
|
5176
5176
|
class: "sensitive-input-action",
|
|
@@ -5183,7 +5183,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5183
5183
|
]),
|
|
5184
5184
|
_: 1
|
|
5185
5185
|
})) : (c(), k(re, { key: 1 }, [
|
|
5186
|
-
e.generator ? (c(),
|
|
5186
|
+
e.generator ? (c(), $(A, {
|
|
5187
5187
|
key: 0,
|
|
5188
5188
|
appearance: "tertiary",
|
|
5189
5189
|
class: "sensitive-input-action",
|
|
@@ -5197,7 +5197,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5197
5197
|
]),
|
|
5198
5198
|
_: 1
|
|
5199
5199
|
}, 8, ["disabled"])) : L("", !0),
|
|
5200
|
-
(c(),
|
|
5200
|
+
(c(), $(he(o.value ? u(_n) : u(En)), {
|
|
5201
5201
|
"aria-label": o.value ? u(i)("sensitiveInput.hideKey") : u(i)("sensitiveInput.showKey"),
|
|
5202
5202
|
class: "sensitive-input-toggle",
|
|
5203
5203
|
color: "currentColor",
|
|
@@ -5253,7 +5253,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5253
5253
|
], 512);
|
|
5254
5254
|
};
|
|
5255
5255
|
}
|
|
5256
|
-
}), Cs = /* @__PURE__ */ oe(jl, [["__scopeId", "data-v-f64f729c"]]), zl = { key: 1 },
|
|
5256
|
+
}), Cs = /* @__PURE__ */ oe(jl, [["__scopeId", "data-v-f64f729c"]]), zl = { key: 1 }, Ss = /* @__PURE__ */ Z({
|
|
5257
5257
|
__name: "TableTags",
|
|
5258
5258
|
props: {
|
|
5259
5259
|
/** The tags to display in the table */
|
|
@@ -5267,7 +5267,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5267
5267
|
}
|
|
5268
5268
|
},
|
|
5269
5269
|
setup(e) {
|
|
5270
|
-
const t = e, n =
|
|
5270
|
+
const t = e, n = S(() => {
|
|
5271
5271
|
if (Array.isArray(t.tags))
|
|
5272
5272
|
return t.tags;
|
|
5273
5273
|
if (typeof t.tags == "string")
|
|
@@ -5279,9 +5279,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5279
5279
|
}
|
|
5280
5280
|
return [];
|
|
5281
5281
|
});
|
|
5282
|
-
return (a, i) => n.value?.length > 0 ? (c(),
|
|
5282
|
+
return (a, i) => n.value?.length > 0 ? (c(), $(u(qn), { key: 0 }, {
|
|
5283
5283
|
default: m(() => [
|
|
5284
|
-
(c(!0), k(re, null, de(n.value, (r) => (c(),
|
|
5284
|
+
(c(!0), k(re, null, de(n.value, (r) => (c(), $(u(jn), {
|
|
5285
5285
|
key: r,
|
|
5286
5286
|
"max-width": e.tagMaxWidth,
|
|
5287
5287
|
onClick: i[0] || (i[0] = Ne(() => {
|
|
@@ -5296,14 +5296,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
5296
5296
|
_: 1
|
|
5297
5297
|
})) : (c(), k("span", zl, "-"));
|
|
5298
5298
|
}
|
|
5299
|
-
}), { useAxios:
|
|
5299
|
+
}), { useAxios: $s, useDeleteUrlBuilder: Ts, useBaseEntityDeckOptions: Is, useBaseFormDeckOptions: _s, useErrors: Es, useExternalLinkCreator: Os, useFetchUrlBuilder: As, useFetcher: Ns, useFetcherCacheKey: Ls, useDebouncedFilter: Bs, useStringHelpers: Fs, useHelpers: Rs, useGatewayFeatureSupported: ws, useTruncationDetector: Ks, useValidators: xs, useSchema: Ps, useSchemaProvider: Ds, useTableState: Us, useManagedByEnabled: Ms, useManagedByColumn: qs } = j;
|
|
5300
5300
|
export {
|
|
5301
5301
|
ft as Appearances,
|
|
5302
5302
|
ss as BASE_FORM_CONFIG_TABS,
|
|
5303
5303
|
Le as CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT,
|
|
5304
5304
|
wn as CONFIG_CARD_FORMATS,
|
|
5305
5305
|
Kt as CONFIG_CARD_SHOW_SENSITIVE_FIELDS,
|
|
5306
|
-
|
|
5306
|
+
$o as ConfigCardDisplay,
|
|
5307
5307
|
Dt as ConfigCardItem,
|
|
5308
5308
|
se as ConfigurationSchemaSection,
|
|
5309
5309
|
X as ConfigurationSchemaType,
|
|
@@ -5337,14 +5337,14 @@ export {
|
|
|
5337
5337
|
Ws as SupportedEntityDeckArray,
|
|
5338
5338
|
Ce as SupportedEntityType,
|
|
5339
5339
|
Ke as SupportedEntityTypesArray,
|
|
5340
|
-
|
|
5340
|
+
Ss as TableTags,
|
|
5341
5341
|
un as TerraformCodeBlock,
|
|
5342
5342
|
cn as YamlCodeBlock,
|
|
5343
5343
|
Hs as getManagedByFieldLabel,
|
|
5344
5344
|
Nn as getManagedByLabel,
|
|
5345
5345
|
Te as highlightCodeBlock,
|
|
5346
5346
|
Gs as isSupportedDeckEntityType,
|
|
5347
|
-
|
|
5347
|
+
$s as useAxios,
|
|
5348
5348
|
Is as useBaseEntityDeckOptions,
|
|
5349
5349
|
_s as useBaseFormDeckOptions,
|
|
5350
5350
|
Bs as useDebouncedFilter,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-shared",
|
|
3
|
-
"version": "3.70.
|
|
3
|
+
"version": "3.70.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-shared.umd.js",
|
|
6
6
|
"module": "./dist/entities-shared.es.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
30
|
-
"@kong-ui-public/misc-widgets": "^2.6.
|
|
31
|
-
"@kong-ui-public/monaco-editor": "^0.26.
|
|
30
|
+
"@kong-ui-public/misc-widgets": "^2.6.6",
|
|
31
|
+
"@kong-ui-public/monaco-editor": "^0.26.6",
|
|
32
32
|
"@kong/icons": "^1.58.0",
|
|
33
33
|
"@kong/kongponents": "^9.64.0",
|
|
34
34
|
"@shikijs/core": "^4.2.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
47
|
-
"@kong-ui-public/misc-widgets": "^2.6.
|
|
48
|
-
"@kong-ui-public/monaco-editor": "^0.26.
|
|
47
|
+
"@kong-ui-public/misc-widgets": "^2.6.6",
|
|
48
|
+
"@kong-ui-public/monaco-editor": "^0.26.6",
|
|
49
49
|
"@kong/design-tokens": "3.3.1",
|
|
50
50
|
"@kong/icons": "^1.62.1",
|
|
51
51
|
"@kong/kongponents": "9.64.23",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"axios": "^1.20.0",
|
|
58
58
|
"monaco-editor": "^0.55.1",
|
|
59
59
|
"shiki": "^4.4.3",
|
|
60
|
-
"vue": "^3.5.
|
|
60
|
+
"vue": "^3.5.43",
|
|
61
61
|
"vue-router": "^5.3.1"
|
|
62
62
|
},
|
|
63
63
|
"repository": {
|