@kong-ui-public/entities-shared 3.60.2 → 3.61.0
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 +3 -3
- package/dist/entities-shared.es.js +260 -249
- package/dist/style.css +1 -1
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +12 -1
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as be, resolveComponent as Z, openBlock as m, createBlock as j, createSlots as Ue, withCtx as I, createVNode as V, unref as v, normalizeClass as Se, createElementBlock as F, normalizeStyle as ui, resolveDynamicComponent as ze, createCommentVNode as
|
|
1
|
+
import { defineComponent as be, resolveComponent as Z, openBlock as m, createBlock as j, createSlots as Ue, withCtx as I, createVNode as V, unref as v, normalizeClass as Se, createElementBlock as F, normalizeStyle as ui, resolveDynamicComponent as ze, createCommentVNode as W, createElementVNode as Q, toDisplayString as N, Fragment as Te, renderList as xe, computed as q, createTextVNode as oe, useId as di, useSlots as mt, ref as re, renderSlot as ce, normalizeProps as fi, guardReactiveProps as pi, mergeProps as tt, useCssVars as xn, watch as Me, inject as Bn, watchEffect as mi, onMounted as yt, onBeforeMount as Ht, withModifiers as Ze, Teleport as Kn, onUnmounted as yi, withDirectives as Ve, vShow as Ye, withKeys as Ln, warn as gi, useTemplateRef as hi, onBeforeUnmount as vi } from "vue";
|
|
2
2
|
import { CloseIcon as Fn, LanguageShellIcon as Wt, LanguageBashIcon as Jt, InfoIcon as Mn, BookIcon as Nn, AddIcon as Pn, FilterIcon as Xt, ChevronDownIcon as bi, CopyIcon as qn, VisibilityOffIcon as ki, VisibilityIcon as Ci } from "@kong/icons";
|
|
3
3
|
import { createReusableTemplate as Ai } from "@vueuse/core";
|
|
4
4
|
import { c as de, _ as $e, S as Si, C as ve, a as et, b as je, E as Ti, I as $i, d as gt, D as wi, e as _i, f as Ei, g as Ie, P as Ii, h as Oi } from "./_plugin-vue_export-helper-U0Lgy2iX.js";
|
|
5
|
-
import { F as
|
|
5
|
+
import { F as Fa, i as Ma, j as Na } from "./_plugin-vue_export-helper-U0Lgy2iX.js";
|
|
6
6
|
import { BadgeMethodAppearances as Ri, KExternalLink as xi, KButton as Qt, KTruncate as Bi, KBadge as Ki } from "@kong/kongponents";
|
|
7
7
|
import { createHighlighterCoreSync as Li } from "@shikijs/core";
|
|
8
8
|
import { createJavaScriptRegexEngine as Fi } from "@shikijs/engine-javascript";
|
|
@@ -15,7 +15,7 @@ import Ui from "@shikijs/themes/material-theme-darker";
|
|
|
15
15
|
import ji from "@shikijs/themes/catppuccin-latte";
|
|
16
16
|
import { useRouter as zi } from "vue-router";
|
|
17
17
|
var Hi = /* @__PURE__ */ ((t) => (t.GatewayService = "service", t.Route = "route", t.Consumer = "consumer", t.ConsumerGroup = "consumer group", t.Plugin = "plugin", t.Upstream = "upstream", t.Certificate = "certificate", t.CACertificate = "ca certificate", t.SNI = "SNI", t.Key = "key", t.KeySet = "key set", t.Vault = "vault", t.Application = "application", t.Developer = "developer", t.acls = "ACL Credential", t["basic-auth"] = "Basic Auth Credential", t["key-auth"] = "Key Auth Credential", t["key-auth-enc"] = "Key Auth Encrypted Credential", t.oauth2 = "OAuth 2.0 Credential", t["hmac-auth"] = "HMAC Credential", t.jwt = "JWT Credential", t.Target = "target", t.Policy = "policy", t.Secret = "secret", t.RedisConfiguration = "redis configuration", t))(Hi || {}), Vi = /* @__PURE__ */ ((t) => (t.Edit = "edit", t.Create = "create", t))(Vi || {});
|
|
18
|
-
const
|
|
18
|
+
const Dl = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
19
19
|
"primary",
|
|
20
20
|
"secondary"
|
|
21
21
|
], Yi = "#ecfcff", Gi = "#f1f0ff", Wi = "#f9fafb", Ji = "#ecfffb", Xi = "#6f28ff", Qi = "#3a3f51", en = "#00abd2", Zi = "#6f28ff", eo = "#0044f4", to = "#6c7489", no = "#3a3f51", io = "#afb7c5", oo = "#0044f4", tn = "#007d60", ro = "16px", Qe = "20px", lo = "24px", nn = "8px", on = "12px", ao = {
|
|
@@ -68,7 +68,7 @@ const ql = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
|
68
68
|
}, Ue({
|
|
69
69
|
title: I(() => [
|
|
70
70
|
Q("span", ao, N(t.title), 1),
|
|
71
|
-
t.subtitle ? (m(), F("div", co, N(t.subtitle), 1)) :
|
|
71
|
+
t.subtitle ? (m(), F("div", co, N(t.subtitle), 1)) : W("", !0)
|
|
72
72
|
]),
|
|
73
73
|
default: I(() => [
|
|
74
74
|
V(v(i), null, {
|
|
@@ -90,10 +90,10 @@ const ql = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
|
90
90
|
decorative: "",
|
|
91
91
|
size: `var(--kui-icon-size-50, ${v(lo)})`
|
|
92
92
|
}, null, 8, ["color", "size"]))
|
|
93
|
-
], 4)) :
|
|
93
|
+
], 4)) : W("", !0),
|
|
94
94
|
Q("div", so, [
|
|
95
95
|
Q("div", uo, N(s.title), 1),
|
|
96
|
-
s.description ? (m(), F("div", fo, N(s.description), 1)) :
|
|
96
|
+
s.description ? (m(), F("div", fo, N(s.description), 1)) : W("", !0)
|
|
97
97
|
])
|
|
98
98
|
]),
|
|
99
99
|
_: 2
|
|
@@ -166,7 +166,7 @@ const ql = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), Ul = /* @__PURE__ */ $e(ho, [["__scopeId", "data-v-c6e9949b"]]), vo = {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "config-card-fieldset-title"
|
|
172
172
|
}, bo = /* @__PURE__ */ be({
|
|
@@ -196,7 +196,7 @@ const ql = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
|
196
196
|
default: I(() => [
|
|
197
197
|
t.isArrayItem ? (m(), F("legend", vo, [
|
|
198
198
|
Q("b", null, N(u.value), 1)
|
|
199
|
-
])) :
|
|
199
|
+
])) : W("", !0),
|
|
200
200
|
(m(!0), F(Te, null, xe(Object.keys(l.value), (s, g) => (m(), j(Un, {
|
|
201
201
|
key: `${r.value}-property-${g}`,
|
|
202
202
|
item: {
|
|
@@ -496,10 +496,10 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
496
496
|
key: 0,
|
|
497
497
|
"data-testid": `${t.item.key}-badge-tags`
|
|
498
498
|
}, [
|
|
499
|
-
(m(!0), F(Te, null, xe(t.item.value, (ne,
|
|
500
|
-
key: `${t.item.key}-badge-tag-${
|
|
499
|
+
(m(!0), F(Te, null, xe(t.item.value, (ne, J) => (m(), j(Y, {
|
|
500
|
+
key: `${t.item.key}-badge-tag-${J}`,
|
|
501
501
|
class: "config-badge",
|
|
502
|
-
"data-testid": `${t.item.key}-badge-tag-${
|
|
502
|
+
"data-testid": `${t.item.key}-badge-tag-${J}`,
|
|
503
503
|
tooltip: ne,
|
|
504
504
|
"truncation-tooltip": ""
|
|
505
505
|
}, {
|
|
@@ -513,9 +513,9 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
513
513
|
class: "copy-uuid-array",
|
|
514
514
|
"data-testid": `${t.item.key}-copy-uuid-array`
|
|
515
515
|
}, [
|
|
516
|
-
(m(!0), F(Te, null, xe(t.item.value, (ne,
|
|
517
|
-
key: `${t.item.key}-copy-uuid-${
|
|
518
|
-
"data-testid": `${t.item.key}-copy-uuid-${
|
|
516
|
+
(m(!0), F(Te, null, xe(t.item.value, (ne, J) => (m(), j(L, tt({ ref_for: !0 }, S.value.childAttrs, {
|
|
517
|
+
key: `${t.item.key}-copy-uuid-${J}`,
|
|
518
|
+
"data-testid": `${t.item.key}-copy-uuid-${J}`,
|
|
519
519
|
text: ne
|
|
520
520
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
521
521
|
], 8, Ro)) : S.value.additionalComponent === "KMethodBadge" ? (m(), F("div", {
|
|
@@ -523,11 +523,11 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
523
523
|
class: "method-badge-array",
|
|
524
524
|
"data-testid": `${t.item.key}-badge-methods`
|
|
525
525
|
}, [
|
|
526
|
-
(m(!0), F(Te, null, xe(t.item.value, (ne,
|
|
527
|
-
key: `${t.item.key}-badge-method-${
|
|
526
|
+
(m(!0), F(Te, null, xe(t.item.value, (ne, J) => (m(), j(Y, {
|
|
527
|
+
key: `${t.item.key}-badge-method-${J}`,
|
|
528
528
|
appearance: Object.values(v(Ri)).includes(ne.toLowerCase()) ? ne.toLowerCase() : "custom",
|
|
529
529
|
class: "config-badge",
|
|
530
|
-
"data-testid": `${t.item.key}-badge-method-${
|
|
530
|
+
"data-testid": `${t.item.key}-badge-method-${J}`
|
|
531
531
|
}, {
|
|
532
532
|
default: I(() => [
|
|
533
533
|
oe(N(ne), 1)
|
|
@@ -538,9 +538,9 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
538
538
|
key: 3,
|
|
539
539
|
"data-testid": `${i.item.key}-json-array-content`
|
|
540
540
|
}, [
|
|
541
|
-
(m(!0), F(Te, null, xe(t.item.value, (ne,
|
|
542
|
-
key: `json-array-item-${
|
|
543
|
-
index: Number(
|
|
541
|
+
(m(!0), F(Te, null, xe(t.item.value, (ne, J) => (m(), j(Dn, {
|
|
542
|
+
key: `json-array-item-${J}`,
|
|
543
|
+
index: Number(J),
|
|
544
544
|
"is-array-item": "",
|
|
545
545
|
item: ne
|
|
546
546
|
}, null, 8, ["index", "item"]))), 128))
|
|
@@ -632,7 +632,7 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
632
632
|
"single-line": "",
|
|
633
633
|
theme: "dark"
|
|
634
634
|
}, null, 8, ["code", "max-height"])
|
|
635
|
-
])) :
|
|
635
|
+
])) : W("", !0),
|
|
636
636
|
t.entityRecord ? (m(), j(u, {
|
|
637
637
|
key: 1,
|
|
638
638
|
id: "json-codeblock",
|
|
@@ -644,7 +644,7 @@ const $o = ["data-testid"], wo = ["data-testid"], _o = ["data-testid"], Eo = ["d
|
|
|
644
644
|
"max-height": v(et),
|
|
645
645
|
theme: "dark",
|
|
646
646
|
onCodeBlockRender: v(Ge)
|
|
647
|
-
}, null, 8, ["class", "code", "copy-code", "max-height", "onCodeBlockRender"])) :
|
|
647
|
+
}, null, 8, ["class", "code", "copy-code", "max-height", "onCodeBlockRender"])) : W("", !0)
|
|
648
648
|
]);
|
|
649
649
|
};
|
|
650
650
|
}
|
|
@@ -1446,7 +1446,7 @@ function qo() {
|
|
|
1446
1446
|
(e - 65536 & 1023) + 56320
|
|
1447
1447
|
);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function J(e, f, b) {
|
|
1450
1450
|
f === "__proto__" ? Object.defineProperty(e, f, {
|
|
1451
1451
|
configurable: !0,
|
|
1452
1452
|
enumerable: !0,
|
|
@@ -1561,7 +1561,7 @@ function qo() {
|
|
|
1561
1561
|
const h = Object.keys(b);
|
|
1562
1562
|
for (let x = 0, n = h.length; x < n; x += 1) {
|
|
1563
1563
|
const p = h[x];
|
|
1564
|
-
e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && P(e, "merge keys exceeded maxTotalMergeKeys (" + e.maxTotalMergeKeys + ")"), r.call(f, p) || (
|
|
1564
|
+
e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && P(e, "merge keys exceeded maxTotalMergeKeys (" + e.maxTotalMergeKeys + ")"), r.call(f, p) || (J(f, p, b[p]), A[p] = !0);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
function Ke(e, f, b, A, h, x, n, p, w) {
|
|
@@ -1577,7 +1577,7 @@ function qo() {
|
|
|
1577
1577
|
else
|
|
1578
1578
|
Fe(e, f, x, b);
|
|
1579
1579
|
else
|
|
1580
|
-
!e.json && !r.call(b, h) && r.call(f, h) && (e.line = n || e.line, e.lineStart = p || e.lineStart, e.position = w || e.position, P(e, "duplicated mapping key")),
|
|
1580
|
+
!e.json && !r.call(b, h) && r.call(f, h) && (e.line = n || e.line, e.lineStart = p || e.lineStart, e.position = w || e.position, P(e, "duplicated mapping key")), J(f, h, x), delete b[h];
|
|
1581
1581
|
return f;
|
|
1582
1582
|
}
|
|
1583
1583
|
function _e(e) {
|
|
@@ -1974,7 +1974,7 @@ var jt = {}, En;
|
|
|
1974
1974
|
function Do() {
|
|
1975
1975
|
if (En) return jt;
|
|
1976
1976
|
En = 1;
|
|
1977
|
-
const t = nt(), o = it(), i = Vt(), d = Object.prototype.toString, r = Object.prototype.hasOwnProperty, c = 65279, l = 9, u = 10, y = 13, a = 32, s = 33, g = 34, O = 35, B = 37, le = 38, S = 39, R = 42, G = 44, $ = 45, E = 58, M = 61, ee = 62, ye = 63, z = 64, Y = 91, L = 93, ne = 96,
|
|
1977
|
+
const t = nt(), o = it(), i = Vt(), d = Object.prototype.toString, r = Object.prototype.hasOwnProperty, c = 65279, l = 9, u = 10, y = 13, a = 32, s = 33, g = 34, O = 35, B = 37, le = 38, S = 39, R = 42, G = 44, $ = 45, E = 58, M = 61, ee = 62, ye = 63, z = 64, Y = 91, L = 93, ne = 96, J = 123, H = 124, me = 125, ge = {};
|
|
1978
1978
|
ge[0] = "\\0", ge[7] = "\\a", ge[8] = "\\b", ge[9] = "\\t", ge[10] = "\\n", ge[11] = "\\v", ge[12] = "\\f", ge[13] = "\\r", ge[27] = "\\e", ge[34] = '\\"', ge[92] = "\\\\", ge[133] = "\\N", ge[160] = "\\_", ge[8232] = "\\L", ge[8233] = "\\P";
|
|
1979
1979
|
const Be = [
|
|
1980
1980
|
"y",
|
|
@@ -2060,7 +2060,7 @@ function Do() {
|
|
|
2060
2060
|
return (
|
|
2061
2061
|
// ns-plain-safe
|
|
2062
2062
|
(w ? k : k && // - c-flow-indicator
|
|
2063
|
-
n !== G && n !== Y && n !== L && n !==
|
|
2063
|
+
n !== G && n !== Y && n !== L && n !== J && n !== me) && // ns-plain-char
|
|
2064
2064
|
n !== O && // false on '#'
|
|
2065
2065
|
!(p === E && !C) || // false on ': '
|
|
2066
2066
|
Ke(p) && !fe(p) && n === O || // change to true on '[^ ]#'
|
|
@@ -2071,7 +2071,7 @@ function Do() {
|
|
|
2071
2071
|
return Fe(n) && n !== c && !fe(n) && // - s-white
|
|
2072
2072
|
// - (c-indicator ::=
|
|
2073
2073
|
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
2074
|
-
n !== $ && n !== ye && n !== E && n !== G && n !== Y && n !== L && n !==
|
|
2074
|
+
n !== $ && n !== ye && n !== E && n !== G && n !== Y && n !== L && n !== J && n !== me && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
2075
2075
|
n !== O && n !== le && n !== R && n !== s && n !== H && n !== M && n !== ee && n !== S && n !== g && // | “%” | “@” | “`”)
|
|
2076
2076
|
n !== B && n !== z && n !== ne;
|
|
2077
2077
|
}
|
|
@@ -2356,20 +2356,20 @@ function Uo() {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
var jo = Uo();
|
|
2358
2358
|
const Yt = /* @__PURE__ */ No(jo), {
|
|
2359
|
-
Type:
|
|
2360
|
-
Schema:
|
|
2361
|
-
FAILSAFE_SCHEMA:
|
|
2362
|
-
JSON_SCHEMA:
|
|
2363
|
-
CORE_SCHEMA:
|
|
2364
|
-
DEFAULT_SCHEMA:
|
|
2365
|
-
load:
|
|
2366
|
-
loadAll:
|
|
2367
|
-
dump:
|
|
2368
|
-
YAMLException:
|
|
2369
|
-
types:
|
|
2370
|
-
safeLoad:
|
|
2371
|
-
safeLoadAll:
|
|
2372
|
-
safeDump:
|
|
2359
|
+
Type: jl,
|
|
2360
|
+
Schema: zl,
|
|
2361
|
+
FAILSAFE_SCHEMA: Hl,
|
|
2362
|
+
JSON_SCHEMA: Vl,
|
|
2363
|
+
CORE_SCHEMA: Yl,
|
|
2364
|
+
DEFAULT_SCHEMA: Gl,
|
|
2365
|
+
load: Wl,
|
|
2366
|
+
loadAll: Jl,
|
|
2367
|
+
dump: Xl,
|
|
2368
|
+
YAMLException: Ql,
|
|
2369
|
+
types: Zl,
|
|
2370
|
+
safeLoad: ea,
|
|
2371
|
+
safeLoadAll: ta,
|
|
2372
|
+
safeDump: na
|
|
2373
2373
|
} = Yt, zo = /* @__PURE__ */ be({
|
|
2374
2374
|
__name: "DeckCallout",
|
|
2375
2375
|
emits: ["click-cta", "dismiss"],
|
|
@@ -2447,7 +2447,7 @@ const Yt = /* @__PURE__ */ No(jo), {
|
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
onClickCta: s[0] || (s[0] = (O) => a.$emit("deck-callout:click-cta")),
|
|
2449
2449
|
onDismiss: s[1] || (s[1] = (O) => y())
|
|
2450
|
-
})) :
|
|
2450
|
+
})) : W("", !0),
|
|
2451
2451
|
Q("div", tt({ class: "yaml-config config-card-code-block" }, a.$attrs), [
|
|
2452
2452
|
i.entityRecord ? (m(), j(g, {
|
|
2453
2453
|
key: 0,
|
|
@@ -2459,7 +2459,7 @@ const Yt = /* @__PURE__ */ No(jo), {
|
|
|
2459
2459
|
"max-height": v(et),
|
|
2460
2460
|
theme: "dark",
|
|
2461
2461
|
onCodeBlockRender: v(Ge)
|
|
2462
|
-
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) :
|
|
2462
|
+
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) : W("", !0)
|
|
2463
2463
|
], 16)
|
|
2464
2464
|
], 64);
|
|
2465
2465
|
};
|
|
@@ -2594,7 +2594,7 @@ ${$}${On}`;
|
|
|
2594
2594
|
"max-height": v(et),
|
|
2595
2595
|
theme: "dark",
|
|
2596
2596
|
onCodeBlockRender: v(Ge)
|
|
2597
|
-
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) :
|
|
2597
|
+
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) : W("", !0)
|
|
2598
2598
|
]);
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
@@ -2680,7 +2680,7 @@ ${$}${On}`;
|
|
|
2680
2680
|
key: 0,
|
|
2681
2681
|
appearance: "danger",
|
|
2682
2682
|
message: y.value
|
|
2683
|
-
}, null, 8, ["message"])) :
|
|
2683
|
+
}, null, 8, ["message"])) : W("", !0)
|
|
2684
2684
|
]),
|
|
2685
2685
|
_: 1
|
|
2686
2686
|
}, 8, ["title", "visible"]);
|
|
@@ -2759,7 +2759,7 @@ ${S.value}
|
|
|
2759
2759
|
_: 1
|
|
2760
2760
|
}, 8, ["modelValue"]),
|
|
2761
2761
|
Q("div", Wo, N(v(c)("deckCodeBlock.steps.step_1")), 1),
|
|
2762
|
-
t.isCustomizing ?
|
|
2762
|
+
t.isCustomizing ? W("", !0) : (m(), j(v(r), {
|
|
2763
2763
|
key: 0,
|
|
2764
2764
|
"data-testid": `deck-hint-${t.app}`,
|
|
2765
2765
|
keypath: `deckCodeBlock.hint.${t.app}`,
|
|
@@ -2799,7 +2799,7 @@ ${S.value}
|
|
|
2799
2799
|
"single-line": "",
|
|
2800
2800
|
theme: t.isCustomizing ? "light" : "dark",
|
|
2801
2801
|
onCodeBlockRender: v(Ge)
|
|
2802
|
-
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) :
|
|
2802
|
+
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) : W("", !0),
|
|
2803
2803
|
l.value ? (m(), j(z, {
|
|
2804
2804
|
key: 2,
|
|
2805
2805
|
class: "copy-konnect-pat-alert"
|
|
@@ -2820,7 +2820,7 @@ ${S.value}
|
|
|
2820
2820
|
_: 1
|
|
2821
2821
|
}),
|
|
2822
2822
|
Q("div", null, N(v(c)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2823
|
-
])) :
|
|
2823
|
+
])) : W("", !0),
|
|
2824
2824
|
Q("div", Xo, N(v(c)("deckCodeBlock.steps.step_2")), 1),
|
|
2825
2825
|
i.entityRecord && !i.isCustomizing ? (m(), j(ye, {
|
|
2826
2826
|
key: 4,
|
|
@@ -2849,7 +2849,7 @@ ${S.value}
|
|
|
2849
2849
|
]),
|
|
2850
2850
|
_: 1
|
|
2851
2851
|
})
|
|
2852
|
-
], 64)) :
|
|
2852
|
+
], 64)) : W("", !0)
|
|
2853
2853
|
], 16),
|
|
2854
2854
|
i.isCustomizing && i.generateKonnectPat ? (m(), j(Go, {
|
|
2855
2855
|
key: 0,
|
|
@@ -2857,7 +2857,7 @@ ${S.value}
|
|
|
2857
2857
|
visible: a.value,
|
|
2858
2858
|
onDismiss: E[3] || (E[3] = (L) => a.value = !1),
|
|
2859
2859
|
onGenerated: G
|
|
2860
|
-
}, null, 8, ["generate-konnect-pat", "visible"])) :
|
|
2860
|
+
}, null, 8, ["generate-konnect-pat", "visible"])) : W("", !0)
|
|
2861
2861
|
], 64);
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
@@ -2894,7 +2894,7 @@ ${S.value}
|
|
|
2894
2894
|
"kong-admin-api-url": o.app === "kongManager" ? o.kongAdminApiUrl : void 0,
|
|
2895
2895
|
"unredacted-record": o.unredactedRecord,
|
|
2896
2896
|
workspace: o.workspace || void 0
|
|
2897
|
-
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) :
|
|
2897
|
+
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) : W("", !0),
|
|
2898
2898
|
o.entityRecord ? (m(), j(l, {
|
|
2899
2899
|
key: 1,
|
|
2900
2900
|
"action-button-appearance": "tertiary",
|
|
@@ -2921,7 +2921,7 @@ ${S.value}
|
|
|
2921
2921
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "generate-konnect-pat", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])
|
|
2922
2922
|
]),
|
|
2923
2923
|
_: 1
|
|
2924
|
-
}, 8, ["action-button-text", "title", "visible"])) :
|
|
2924
|
+
}, 8, ["action-button-text", "title", "visible"])) : W("", !0)
|
|
2925
2925
|
], 64);
|
|
2926
2926
|
};
|
|
2927
2927
|
}
|
|
@@ -3040,7 +3040,7 @@ ${S.value}
|
|
|
3040
3040
|
class: Se(`config-card-details-${le}-props`),
|
|
3041
3041
|
"data-testid": `config-card-details-${le}-props`
|
|
3042
3042
|
}, [
|
|
3043
|
-
le !== "basic" ? (m(), F("div", nr, N(le === "advanced" ? v(d)("baseConfigCard.sections.advanced") : le === "plugin" ? v(d)("baseConfigCard.sections.plugin") : v(d)("baseConfigCard.sections.policy")), 1)) :
|
|
3043
|
+
le !== "basic" ? (m(), F("div", nr, N(le === "advanced" ? v(d)("baseConfigCard.sections.advanced") : le === "plugin" ? v(d)("baseConfigCard.sections.plugin") : v(d)("baseConfigCard.sections.policy")), 1)) : W("", !0),
|
|
3044
3044
|
(m(!0), F(Te, null, xe(t.propertyCollections[le], (S) => ce(O.$slots, `config-card-item-${S.key}`, { row: S }, () => [
|
|
3045
3045
|
(m(), j(Un, {
|
|
3046
3046
|
key: S.key,
|
|
@@ -3067,7 +3067,7 @@ ${S.value}
|
|
|
3067
3067
|
]), 1032, ["item"]))
|
|
3068
3068
|
], !0)), 256))
|
|
3069
3069
|
], 10, tr))), 128))
|
|
3070
|
-
])) :
|
|
3070
|
+
])) : W("", !0),
|
|
3071
3071
|
t.format === "json" && l.value ? (m(), j(jn, {
|
|
3072
3072
|
key: 1,
|
|
3073
3073
|
config: o.config,
|
|
@@ -3075,21 +3075,21 @@ ${S.value}
|
|
|
3075
3075
|
"fetcher-url": y.value,
|
|
3076
3076
|
"request-method": "get",
|
|
3077
3077
|
"unredacted-record": u.value
|
|
3078
|
-
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) :
|
|
3078
|
+
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) : W("", !0),
|
|
3079
3079
|
t.format === "yaml" && l.value ? (m(), j(ai, {
|
|
3080
3080
|
key: 2,
|
|
3081
3081
|
"deck-callout-preference-key": v(a) ? v(g) : void 0,
|
|
3082
3082
|
"entity-record": l.value,
|
|
3083
3083
|
"unredacted-record": u.value,
|
|
3084
3084
|
"onDeckCallout:clickCta": B[0] || (B[0] = (le) => O.$emit("request-deck-format"))
|
|
3085
|
-
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) :
|
|
3085
|
+
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) : W("", !0),
|
|
3086
3086
|
t.format === "terraform" && l.value ? (m(), j(ci, {
|
|
3087
3087
|
key: 3,
|
|
3088
3088
|
"entity-record": l.value,
|
|
3089
3089
|
"entity-type": o.entityType,
|
|
3090
3090
|
"sub-entity-type": o.subEntityType,
|
|
3091
3091
|
"unredacted-record": u.value
|
|
3092
|
-
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) :
|
|
3092
|
+
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) : W("", !0),
|
|
3093
3093
|
t.format === "deck" && l.value ? (m(), j(si, {
|
|
3094
3094
|
key: 4,
|
|
3095
3095
|
app: t.config.app,
|
|
@@ -3103,7 +3103,7 @@ ${S.value}
|
|
|
3103
3103
|
"unredacted-record": u.value,
|
|
3104
3104
|
workspace: t.config.workspace || void 0,
|
|
3105
3105
|
onCustomizationClose: B[1] || (B[1] = (le) => O.$emit("deck-customization:close"))
|
|
3106
|
-
}, 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"])) :
|
|
3106
|
+
}, 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"])) : W("", !0)
|
|
3107
3107
|
], 64));
|
|
3108
3108
|
}
|
|
3109
3109
|
}), or = /* @__PURE__ */ $e(ir, [["__scopeId", "data-v-83075649"]]), rr = {
|
|
@@ -3354,13 +3354,13 @@ ${S.value}
|
|
|
3354
3354
|
}, G = re(!1), $ = re(!1), E = re(""), M = re({}), ee = re(null), ye = q(() => {
|
|
3355
3355
|
if (!(!d.codeBlockRecordResolver || ee.value == null))
|
|
3356
3356
|
return d.codeBlockRecordResolver(ee.value);
|
|
3357
|
-
}), z = re(!1), { redactByConfigSchema: Y, redactByApiSchema: L, isObjectRecord: ne, getApiSchemaField:
|
|
3357
|
+
}), z = re(!1), { redactByConfigSchema: Y, redactByApiSchema: L, isObjectRecord: ne, getApiSchemaField: J } = de.useHelpers(), H = q(() => {
|
|
3358
3358
|
const K = ye.value || M.value;
|
|
3359
3359
|
let ie = K;
|
|
3360
3360
|
if (ne(K) && Array.isArray(u?.value?.fields)) {
|
|
3361
3361
|
const ue = {};
|
|
3362
3362
|
for (const ae in K) {
|
|
3363
|
-
const se =
|
|
3363
|
+
const se = J(u?.value?.fields, ae);
|
|
3364
3364
|
ue[ae] = se ? L(K[ae], se) : K[ae];
|
|
3365
3365
|
}
|
|
3366
3366
|
ie = ue;
|
|
@@ -3493,7 +3493,7 @@ ${S.value}
|
|
|
3493
3493
|
placement: "top"
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
|
-
}, null, 8, ["modelValue", "label", "label-attributes"])) :
|
|
3496
|
+
}, null, 8, ["modelValue", "label", "label-attributes"])) : W("", !0),
|
|
3497
3497
|
Q("div", ar, [
|
|
3498
3498
|
V(ae, {
|
|
3499
3499
|
class: "config-format-select-label",
|
|
@@ -3523,7 +3523,7 @@ ${S.value}
|
|
|
3523
3523
|
oe(N(v(r)("baseConfigCard.actions.deck_customize")), 1)
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 1
|
|
3526
|
-
})) :
|
|
3526
|
+
})) : W("", !0),
|
|
3527
3527
|
t.configCardDoc ? (m(), j(he, {
|
|
3528
3528
|
key: 2,
|
|
3529
3529
|
appearance: "tertiary",
|
|
@@ -3542,7 +3542,7 @@ ${S.value}
|
|
|
3542
3542
|
], 8, cr)
|
|
3543
3543
|
]),
|
|
3544
3544
|
_: 1
|
|
3545
|
-
})) :
|
|
3545
|
+
})) : W("", !0)
|
|
3546
3546
|
])
|
|
3547
3547
|
]),
|
|
3548
3548
|
default: I(() => [
|
|
@@ -3603,7 +3603,7 @@ ${S.value}
|
|
|
3603
3603
|
]), 1032, ["title-tag"]);
|
|
3604
3604
|
};
|
|
3605
3605
|
}
|
|
3606
|
-
}),
|
|
3606
|
+
}), ia = /* @__PURE__ */ $e(ur, [["__scopeId", "data-v-9d8e57f1"]]), dr = ["novalidate"], fr = {
|
|
3607
3607
|
key: 0,
|
|
3608
3608
|
class: "button-customize-deck-wrapper"
|
|
3609
3609
|
}, pr = /* @__PURE__ */ be({
|
|
@@ -3764,8 +3764,8 @@ ${S.value}
|
|
|
3764
3764
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3765
3765
|
setup(t, { expose: o, emit: i }) {
|
|
3766
3766
|
const d = Bn(Ii, re(!1)), r = i, c = t, l = zi(), { i18n: { t: u } } = de.useI18n(), { getMessageFromError: y } = de.useErrors(), { axiosInstance: a } = de.useAxios(c.config?.axiosRequestConfig), s = re(!1), g = q(() => !!c.editId), O = re(!1), B = re(""), le = q(() => c.canSubmit === !1 || c.isReadonly), S = re(!1), R = q(() => {
|
|
3767
|
-
let
|
|
3768
|
-
return c.config.app === "konnect" && (
|
|
3767
|
+
let J = `${c.config.apiBaseUrl}${c.fetchUrl}`;
|
|
3768
|
+
return c.config.app === "konnect" && (J = J.replace(/{controlPlaneId}/gi, c.config?.controlPlaneId || "")), J = J.replace(/\/{workspace}/gi, c.config?.workspace ? `/${c.config.workspace}` : ""), c.editId ? (J = J.replace(/{id}/gi, c.editId), J) : (J = J.replace(/\/{id}/gi, ""), J);
|
|
3769
3769
|
}), G = re(!1), {
|
|
3770
3770
|
isDeckEnabled: $,
|
|
3771
3771
|
deckCustomizationOptions: E,
|
|
@@ -3782,7 +3782,7 @@ ${S.value}
|
|
|
3782
3782
|
}, Y = () => {
|
|
3783
3783
|
le.value || r("submit");
|
|
3784
3784
|
}, L = q(() => {
|
|
3785
|
-
const
|
|
3785
|
+
const J = [
|
|
3786
3786
|
{
|
|
3787
3787
|
title: u("baseForm.configuration.json"),
|
|
3788
3788
|
hash: "#json"
|
|
@@ -3792,29 +3792,29 @@ ${S.value}
|
|
|
3792
3792
|
hash: "#yaml"
|
|
3793
3793
|
}
|
|
3794
3794
|
];
|
|
3795
|
-
c.config.app === "konnect" && c.entityType !== je.Other &&
|
|
3795
|
+
c.config.app === "konnect" && c.entityType !== je.Other && J.splice(1, 0, {
|
|
3796
3796
|
title: u("baseForm.configuration.terraform"),
|
|
3797
3797
|
hash: "#terraform"
|
|
3798
|
-
}), $.value &&
|
|
3798
|
+
}), $.value && J.push({
|
|
3799
3799
|
title: u("baseForm.configuration.deck"),
|
|
3800
3800
|
hash: "#deck"
|
|
3801
3801
|
});
|
|
3802
3802
|
const H = new Set(c.tabsToHide.map((me) => `#${me}`));
|
|
3803
|
-
return
|
|
3803
|
+
return J.filter((me) => !H.has(me.hash));
|
|
3804
3804
|
}), ne = re(L.value[0]?.hash);
|
|
3805
|
-
return Me(L, (
|
|
3806
|
-
|
|
3807
|
-
}), Me(() => s.value, (
|
|
3808
|
-
r("loading",
|
|
3805
|
+
return Me(L, (J) => {
|
|
3806
|
+
J.some((H) => H.hash === ne.value) || (ne.value = J[0]?.hash);
|
|
3807
|
+
}), Me(() => s.value, (J) => {
|
|
3808
|
+
r("loading", J);
|
|
3809
3809
|
}, { immediate: !0 }), Ht(async () => {
|
|
3810
3810
|
if (c.editId)
|
|
3811
3811
|
try {
|
|
3812
3812
|
O.value = !1, s.value = !0;
|
|
3813
|
-
const { data:
|
|
3814
|
-
r("fetch:success",
|
|
3815
|
-
} catch (
|
|
3816
|
-
const H = y(
|
|
3817
|
-
B.value = H.startsWith("code") ? u("baseForm.errors.edit") : H, O.value = !0, r("fetch:error",
|
|
3813
|
+
const { data: J } = await a.get(R.value);
|
|
3814
|
+
r("fetch:success", J);
|
|
3815
|
+
} catch (J) {
|
|
3816
|
+
const H = y(J);
|
|
3817
|
+
B.value = H.startsWith("code") ? u("baseForm.errors.edit") : H, O.value = !0, r("fetch:error", J);
|
|
3818
3818
|
} finally {
|
|
3819
3819
|
s.value = !1;
|
|
3820
3820
|
}
|
|
@@ -3822,7 +3822,7 @@ ${S.value}
|
|
|
3822
3822
|
viewConfig: ee,
|
|
3823
3823
|
formCancel: z,
|
|
3824
3824
|
formSubmit: Y
|
|
3825
|
-
}), (
|
|
3825
|
+
}), (J, H) => {
|
|
3826
3826
|
const me = Z("KSkeleton"), ge = Z("KEmptyState"), Be = Z("KAlert"), P = Z("KButton"), Le = Z("KTabs"), Re = Z("KSlideout");
|
|
3827
3827
|
return m(), j(ze(t.wrapperComponent), {
|
|
3828
3828
|
class: Se(["kong-ui-entity-base-form", {
|
|
@@ -3851,15 +3851,15 @@ ${S.value}
|
|
|
3851
3851
|
onReset: Ze(z, ["prevent"]),
|
|
3852
3852
|
onSubmit: Ze(Y, ["prevent"])
|
|
3853
3853
|
}, [
|
|
3854
|
-
ce(
|
|
3854
|
+
ce(J.$slots, "default", {}, void 0, !0),
|
|
3855
3855
|
t.errorMessage ? (m(), j(Be, {
|
|
3856
3856
|
key: 0,
|
|
3857
3857
|
appearance: "danger",
|
|
3858
3858
|
class: "form-error",
|
|
3859
3859
|
"data-testid": "form-error",
|
|
3860
3860
|
message: t.errorMessage
|
|
3861
|
-
}, null, 8, ["message"])) :
|
|
3862
|
-
t.hideActions ?
|
|
3861
|
+
}, null, 8, ["message"])) : W("", !0),
|
|
3862
|
+
t.hideActions ? W("", !0) : (m(), j(Kn, {
|
|
3863
3863
|
key: 1,
|
|
3864
3864
|
disabled: !t.actionTeleportTarget,
|
|
3865
3865
|
to: t.actionTeleportTarget
|
|
@@ -3868,7 +3868,7 @@ ${S.value}
|
|
|
3868
3868
|
class: Se(["form-actions", { "form-actions-reverted": t.alignActionButtonToLeft }]),
|
|
3869
3869
|
"data-testid": "form-actions"
|
|
3870
3870
|
}, [
|
|
3871
|
-
ce(
|
|
3871
|
+
ce(J.$slots, "form-actions", {}, () => [
|
|
3872
3872
|
V(P, {
|
|
3873
3873
|
appearance: "tertiary",
|
|
3874
3874
|
"data-testid": `${t.entityType}-${g.value ? "edit" : "create"}-form-view-configuration`,
|
|
@@ -3918,7 +3918,7 @@ ${S.value}
|
|
|
3918
3918
|
}, {
|
|
3919
3919
|
default: I(() => [
|
|
3920
3920
|
Q("div", null, [
|
|
3921
|
-
ce(
|
|
3921
|
+
ce(J.$slots, "configuration-slideout-message", {}, () => [
|
|
3922
3922
|
oe(N(v(u)("baseForm.configuration.message")), 1)
|
|
3923
3923
|
], !0)
|
|
3924
3924
|
]),
|
|
@@ -3963,7 +3963,7 @@ ${S.value}
|
|
|
3963
3963
|
]),
|
|
3964
3964
|
_: 1
|
|
3965
3965
|
})
|
|
3966
|
-
])) :
|
|
3966
|
+
])) : W("", !0),
|
|
3967
3967
|
V(si, {
|
|
3968
3968
|
app: t.config.app,
|
|
3969
3969
|
"control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
|
|
@@ -3987,7 +3987,7 @@ ${S.value}
|
|
|
3987
3987
|
}, 8, ["class"]);
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
|
-
}),
|
|
3990
|
+
}), oa = /* @__PURE__ */ $e(pr, [["__scopeId", "data-v-b3590221"]]), mr = ["data-truncate"], yr = /* @__PURE__ */ be({
|
|
3991
3991
|
__name: "EntityBaseTableCell",
|
|
3992
3992
|
props: {
|
|
3993
3993
|
keyName: {
|
|
@@ -4223,11 +4223,11 @@ ${S.value}
|
|
|
4223
4223
|
message: i.errorMessage?.message
|
|
4224
4224
|
}), l = q(() => i.cacheIdentifier || i.preferencesStorageKey), u = q(() => {
|
|
4225
4225
|
const L = [];
|
|
4226
|
-
return Object.keys(i.tableHeaders).forEach((
|
|
4227
|
-
const H = i.tableHeaders[
|
|
4226
|
+
return Object.keys(i.tableHeaders).forEach((J) => {
|
|
4227
|
+
const H = i.tableHeaders[J];
|
|
4228
4228
|
L.push({
|
|
4229
|
-
label: H.label ??
|
|
4230
|
-
key:
|
|
4229
|
+
label: H.label ?? J,
|
|
4230
|
+
key: J,
|
|
4231
4231
|
sortable: H.sortable ?? !1,
|
|
4232
4232
|
hidable: H.hidable ?? !0
|
|
4233
4233
|
});
|
|
@@ -4275,14 +4275,14 @@ ${S.value}
|
|
|
4275
4275
|
...i.paginationAttributes
|
|
4276
4276
|
}));
|
|
4277
4277
|
return (L, ne) => {
|
|
4278
|
-
const
|
|
4278
|
+
const J = Z("KTableData"), H = Z("KCard");
|
|
4279
4279
|
return m(), j(H, {
|
|
4280
4280
|
class: "kong-ui-entity-base-table",
|
|
4281
4281
|
title: t.title,
|
|
4282
4282
|
"title-tag": t.titleTag
|
|
4283
4283
|
}, {
|
|
4284
4284
|
default: I(() => [
|
|
4285
|
-
V(
|
|
4285
|
+
V(J, {
|
|
4286
4286
|
ref_key: "tableRefs",
|
|
4287
4287
|
ref: a,
|
|
4288
4288
|
"cache-identifier": l.value,
|
|
@@ -4323,7 +4323,7 @@ ${S.value}
|
|
|
4323
4323
|
ce(L.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4324
4324
|
L.$slots["toolbar-button"] ? (m(), F("div", vr, [
|
|
4325
4325
|
ce(L.$slots, "toolbar-button", {}, void 0, !0)
|
|
4326
|
-
])) :
|
|
4326
|
+
])) : W("", !0)
|
|
4327
4327
|
])
|
|
4328
4328
|
]),
|
|
4329
4329
|
"action-items": I(({ row: me }) => [
|
|
@@ -4369,19 +4369,22 @@ ${S.value}
|
|
|
4369
4369
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
4370
4370
|
L.$slots["outside-actions"] && v(G) ? (m(), F("div", br, [
|
|
4371
4371
|
ce(L.$slots, "outside-actions", {}, void 0, !0)
|
|
4372
|
-
])) :
|
|
4372
|
+
])) : W("", !0)
|
|
4373
4373
|
]),
|
|
4374
4374
|
_: 3
|
|
4375
4375
|
}, 8, ["title", "title-tag"]);
|
|
4376
4376
|
};
|
|
4377
4377
|
}
|
|
4378
|
-
}),
|
|
4378
|
+
}), ra = /* @__PURE__ */ $e(kr, [["__scopeId", "data-v-09e101d4"]]), Cr = {
|
|
4379
4379
|
key: 0,
|
|
4380
4380
|
class: "kong-ui-entity-delete-error"
|
|
4381
4381
|
}, Ar = {
|
|
4382
4382
|
key: 1,
|
|
4383
4383
|
class: "description"
|
|
4384
|
-
}, Sr =
|
|
4384
|
+
}, Sr = {
|
|
4385
|
+
key: 2,
|
|
4386
|
+
class: "extra"
|
|
4387
|
+
}, Tr = /* @__PURE__ */ be({
|
|
4385
4388
|
__name: "EntityDeleteModal",
|
|
4386
4389
|
props: {
|
|
4387
4390
|
visible: {
|
|
@@ -4416,6 +4419,11 @@ ${S.value}
|
|
|
4416
4419
|
type: Boolean,
|
|
4417
4420
|
default: !1
|
|
4418
4421
|
},
|
|
4422
|
+
// Disables the confirm button regardless of `actionPending` or the confirmation text, e.g. while a required checkbox is unchecked
|
|
4423
|
+
confirmDisabled: {
|
|
4424
|
+
type: Boolean,
|
|
4425
|
+
default: !1
|
|
4426
|
+
},
|
|
4419
4427
|
error: {
|
|
4420
4428
|
type: String,
|
|
4421
4429
|
default: ""
|
|
@@ -4443,7 +4451,7 @@ ${S.value}
|
|
|
4443
4451
|
const g = Z("KAlert"), O = Z("KPrompt");
|
|
4444
4452
|
return m(), j(O, {
|
|
4445
4453
|
"action-button-appearance": "danger",
|
|
4446
|
-
"action-button-disabled": t.actionPending,
|
|
4454
|
+
"action-button-disabled": t.actionPending || t.confirmDisabled,
|
|
4447
4455
|
"action-button-text": "Yes, delete",
|
|
4448
4456
|
class: Se(["kong-ui-entity-delete-modal", { "kong-ui-entity-delete-modal-stacked-copy": t.stackedCopy }]),
|
|
4449
4457
|
"confirmation-prompt": t.confirmationPrompt || void 0,
|
|
@@ -4465,7 +4473,7 @@ ${S.value}
|
|
|
4465
4473
|
]),
|
|
4466
4474
|
_: 1
|
|
4467
4475
|
})
|
|
4468
|
-
])) :
|
|
4476
|
+
])) : W("", !0),
|
|
4469
4477
|
ce(a.$slots, "message", {}, () => [
|
|
4470
4478
|
V(v(i), {
|
|
4471
4479
|
class: "message",
|
|
@@ -4490,17 +4498,20 @@ ${S.value}
|
|
|
4490
4498
|
ce(a.$slots, "description", {}, () => [
|
|
4491
4499
|
Q("p", null, N(d.description), 1)
|
|
4492
4500
|
], !0)
|
|
4493
|
-
])) :
|
|
4501
|
+
])) : W("", !0),
|
|
4502
|
+
a.$slots.extra ? (m(), F("div", Sr, [
|
|
4503
|
+
ce(a.$slots, "extra", {}, void 0, !0)
|
|
4504
|
+
])) : W("", !0)
|
|
4494
4505
|
], 2)
|
|
4495
4506
|
]),
|
|
4496
4507
|
_: 3
|
|
4497
4508
|
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
4498
4509
|
};
|
|
4499
4510
|
}
|
|
4500
|
-
}),
|
|
4511
|
+
}), la = /* @__PURE__ */ $e(Tr, [["__scopeId", "data-v-9cfe55b5"]]), $r = {
|
|
4501
4512
|
key: 1,
|
|
4502
4513
|
class: "kong-ui-entity-filter"
|
|
4503
|
-
},
|
|
4514
|
+
}, wr = { class: "kong-ui-entity-filter-menu" }, _r = ["data-testid"], Er = ["onClick", "onKeydown"], Ir = { class: "menu-item-indicator" }, Or = { class: "menu-item-body" }, Rr = ["for"], xr = { class: "menu-item-buttons" }, Br = { class: "filter-clear-button-container" }, Kr = /* @__PURE__ */ be({
|
|
4504
4515
|
__name: "EntityFilter",
|
|
4505
4516
|
props: {
|
|
4506
4517
|
// filter config, either exact match or fuzzy match
|
|
@@ -4563,7 +4574,7 @@ ${S.value}
|
|
|
4563
4574
|
l.value[z] = Y ? Y.custom ? String(Y.label) : String(Y.value) : "";
|
|
4564
4575
|
};
|
|
4565
4576
|
return (z, Y) => {
|
|
4566
|
-
const L = Z("KInput"), ne = Z("KButton"),
|
|
4577
|
+
const L = Z("KInput"), ne = Z("KButton"), J = Z("KSelect");
|
|
4567
4578
|
return t.config.isExactMatch ? (m(), j(L, {
|
|
4568
4579
|
key: 0,
|
|
4569
4580
|
autocomplete: "off",
|
|
@@ -4587,7 +4598,7 @@ ${S.value}
|
|
|
4587
4598
|
])
|
|
4588
4599
|
]),
|
|
4589
4600
|
_: 1
|
|
4590
|
-
}, 8, ["model-value", "placeholder"])) : (m(), F("div",
|
|
4601
|
+
}, 8, ["model-value", "placeholder"])) : (m(), F("div", $r, [
|
|
4591
4602
|
V(ne, {
|
|
4592
4603
|
appearance: "tertiary",
|
|
4593
4604
|
"data-testid": "filter-button",
|
|
@@ -4605,7 +4616,7 @@ ${S.value}
|
|
|
4605
4616
|
}, null, 512), [
|
|
4606
4617
|
[Ye, c.value]
|
|
4607
4618
|
]),
|
|
4608
|
-
Ve(Q("div",
|
|
4619
|
+
Ve(Q("div", wr, [
|
|
4609
4620
|
(m(!0), F(Te, null, xe(a.value, (H) => (m(), F("div", {
|
|
4610
4621
|
key: H.value,
|
|
4611
4622
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4619,20 +4630,20 @@ ${S.value}
|
|
|
4619
4630
|
onKeydown: Ln((me) => g(H.value), ["enter"])
|
|
4620
4631
|
}, [
|
|
4621
4632
|
oe(N(H.label) + " ", 1),
|
|
4622
|
-
Ve(Q("span",
|
|
4633
|
+
Ve(Q("span", Ir, null, 512), [
|
|
4623
4634
|
[Ye, y.value.includes(H.value)]
|
|
4624
4635
|
]),
|
|
4625
4636
|
V(v(bi), {
|
|
4626
4637
|
class: Se(["menu-item-expand-icon", { expanded: u.value.has(H.value) }]),
|
|
4627
4638
|
color: `var(--kui-color-text-neutral-weak, ${v(io)})`
|
|
4628
4639
|
}, null, 8, ["class", "color"])
|
|
4629
|
-
], 42,
|
|
4630
|
-
Ve(Q("div",
|
|
4640
|
+
], 42, Er),
|
|
4641
|
+
Ve(Q("div", Or, [
|
|
4631
4642
|
Q("label", {
|
|
4632
4643
|
class: "menu-item-label",
|
|
4633
4644
|
for: le(H.value)
|
|
4634
|
-
}, N(v(i)("filter.fieldLabel")), 9,
|
|
4635
|
-
t.config.schema?.[H.value]?.type === "select" ? (m(), j(
|
|
4645
|
+
}, N(v(i)("filter.fieldLabel")), 9, Rr),
|
|
4646
|
+
t.config.schema?.[H.value]?.type === "select" ? (m(), j(J, {
|
|
4636
4647
|
key: 0,
|
|
4637
4648
|
id: le(H.value),
|
|
4638
4649
|
"enable-filtering": M(H.value),
|
|
@@ -4654,7 +4665,7 @@ ${S.value}
|
|
|
4654
4665
|
], 512), [
|
|
4655
4666
|
[Ye, u.value.has(H.value)]
|
|
4656
4667
|
]),
|
|
4657
|
-
Ve(Q("div",
|
|
4668
|
+
Ve(Q("div", xr, [
|
|
4658
4669
|
V(ne, {
|
|
4659
4670
|
appearance: "tertiary",
|
|
4660
4671
|
"data-testid": "apply-filter",
|
|
@@ -4680,8 +4691,8 @@ ${S.value}
|
|
|
4680
4691
|
], 512), [
|
|
4681
4692
|
[Ye, u.value.has(H.value)]
|
|
4682
4693
|
])
|
|
4683
|
-
], 8,
|
|
4684
|
-
Q("div",
|
|
4694
|
+
], 8, _r))), 128)),
|
|
4695
|
+
Q("div", Br, [
|
|
4685
4696
|
V(ne, {
|
|
4686
4697
|
appearance: "tertiary",
|
|
4687
4698
|
size: "small",
|
|
@@ -4699,7 +4710,7 @@ ${S.value}
|
|
|
4699
4710
|
]));
|
|
4700
4711
|
};
|
|
4701
4712
|
}
|
|
4702
|
-
}),
|
|
4713
|
+
}), aa = /* @__PURE__ */ $e(Kr, [["__scopeId", "data-v-10015be6"]]), ca = /* @__PURE__ */ be({
|
|
4703
4714
|
__name: "EntityToggleModal",
|
|
4704
4715
|
props: {
|
|
4705
4716
|
visible: {
|
|
@@ -4778,7 +4789,7 @@ ${S.value}
|
|
|
4778
4789
|
]);
|
|
4779
4790
|
};
|
|
4780
4791
|
}
|
|
4781
|
-
}),
|
|
4792
|
+
}), sa = /* @__PURE__ */ be({
|
|
4782
4793
|
__name: "PermissionsWrapper",
|
|
4783
4794
|
props: {
|
|
4784
4795
|
/**
|
|
@@ -4806,35 +4817,35 @@ ${S.value}
|
|
|
4806
4817
|
}, { immediate: !0 }), (r, c) => d.value ? ce(r.$slots, "default", {
|
|
4807
4818
|
key: 0,
|
|
4808
4819
|
isAllowed: i.value
|
|
4809
|
-
}) :
|
|
4820
|
+
}) : W("", !0);
|
|
4810
4821
|
}
|
|
4811
4822
|
}), we = [];
|
|
4812
4823
|
for (let t = 0; t < 256; ++t)
|
|
4813
4824
|
we.push((t + 256).toString(16).slice(1));
|
|
4814
|
-
function
|
|
4825
|
+
function Lr(t, o = 0) {
|
|
4815
4826
|
return (we[t[o + 0]] + we[t[o + 1]] + we[t[o + 2]] + we[t[o + 3]] + "-" + we[t[o + 4]] + we[t[o + 5]] + "-" + we[t[o + 6]] + we[t[o + 7]] + "-" + we[t[o + 8]] + we[t[o + 9]] + "-" + we[t[o + 10]] + we[t[o + 11]] + we[t[o + 12]] + we[t[o + 13]] + we[t[o + 14]] + we[t[o + 15]]).toLowerCase();
|
|
4816
4827
|
}
|
|
4817
|
-
const
|
|
4818
|
-
function
|
|
4819
|
-
return crypto.getRandomValues(
|
|
4820
|
-
}
|
|
4821
|
-
function Mr(t, o, i) {
|
|
4822
|
-
return crypto.randomUUID ? crypto.randomUUID() : Nr(t);
|
|
4828
|
+
const Fr = new Uint8Array(16);
|
|
4829
|
+
function Mr() {
|
|
4830
|
+
return crypto.getRandomValues(Fr);
|
|
4823
4831
|
}
|
|
4824
4832
|
function Nr(t, o, i) {
|
|
4833
|
+
return crypto.randomUUID ? crypto.randomUUID() : Pr(t);
|
|
4834
|
+
}
|
|
4835
|
+
function Pr(t, o, i) {
|
|
4825
4836
|
t = t || {};
|
|
4826
|
-
const d = t.random ?? t.rng?.() ??
|
|
4837
|
+
const d = t.random ?? t.rng?.() ?? Mr();
|
|
4827
4838
|
if (d.length < 16)
|
|
4828
4839
|
throw new Error("Random bytes length must be >= 16");
|
|
4829
|
-
return d[6] = d[6] & 15 | 64, d[8] = d[8] & 63 | 128,
|
|
4840
|
+
return d[6] = d[6] & 15 | 64, d[8] = d[8] & 63 | 128, Lr(d);
|
|
4830
4841
|
}
|
|
4831
|
-
const
|
|
4842
|
+
const qr = ["aria-labelledby"], Dr = { class: "form-section-wrapper" }, Ur = {
|
|
4832
4843
|
key: 1,
|
|
4833
4844
|
class: "form-section-description"
|
|
4834
|
-
},
|
|
4845
|
+
}, jr = {
|
|
4835
4846
|
key: 2,
|
|
4836
4847
|
class: "form-section-footer"
|
|
4837
|
-
},
|
|
4848
|
+
}, zr = { class: "form-section-content" }, Hr = /* @__PURE__ */ be({
|
|
4838
4849
|
__name: "EntityFormSection",
|
|
4839
4850
|
props: {
|
|
4840
4851
|
title: {
|
|
@@ -4863,14 +4874,14 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
4863
4874
|
}
|
|
4864
4875
|
},
|
|
4865
4876
|
setup(t) {
|
|
4866
|
-
const o = mt(), i =
|
|
4877
|
+
const o = mt(), i = Nr();
|
|
4867
4878
|
return (d, r) => (m(), F("div", {
|
|
4868
4879
|
"aria-labelledby": t.title ? v(i) : void 0,
|
|
4869
4880
|
class: Se(["kong-ui-entity-form-section", { "has-divider": t.hasDivider }]),
|
|
4870
4881
|
role: "group"
|
|
4871
4882
|
}, [
|
|
4872
|
-
Q("div",
|
|
4873
|
-
t.hideInfoHeader ?
|
|
4883
|
+
Q("div", Dr, [
|
|
4884
|
+
t.hideInfoHeader ? W("", !0) : (m(), F("div", {
|
|
4874
4885
|
key: 0,
|
|
4875
4886
|
class: Se(["form-section-info", { sticky: t.stickyInfoHeader }])
|
|
4876
4887
|
}, [
|
|
@@ -4883,41 +4894,41 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
4883
4894
|
oe(N(t.title), 1)
|
|
4884
4895
|
]),
|
|
4885
4896
|
_: 1
|
|
4886
|
-
}, 8, ["id"])) :
|
|
4887
|
-
t.description || v(o).description ? (m(), F("div",
|
|
4897
|
+
}, 8, ["id"])) : W("", !0),
|
|
4898
|
+
t.description || v(o).description ? (m(), F("div", Ur, [
|
|
4888
4899
|
ce(d.$slots, "description", {}, () => [
|
|
4889
4900
|
Q("p", null, N(t.description), 1)
|
|
4890
4901
|
], !0)
|
|
4891
|
-
])) :
|
|
4892
|
-
v(o).footer ? (m(), F("div",
|
|
4902
|
+
])) : W("", !0),
|
|
4903
|
+
v(o).footer ? (m(), F("div", jr, [
|
|
4893
4904
|
ce(d.$slots, "footer", {}, void 0, !0)
|
|
4894
|
-
])) :
|
|
4905
|
+
])) : W("", !0)
|
|
4895
4906
|
], 2)),
|
|
4896
|
-
Q("div",
|
|
4907
|
+
Q("div", zr, [
|
|
4897
4908
|
ce(d.$slots, "default", {}, void 0, !0)
|
|
4898
4909
|
])
|
|
4899
4910
|
])
|
|
4900
|
-
], 10,
|
|
4911
|
+
], 10, qr));
|
|
4901
4912
|
}
|
|
4902
|
-
}),
|
|
4913
|
+
}), ua = /* @__PURE__ */ $e(Hr, [["__scopeId", "data-v-ccd29028"]]), Vr = { class: "header" }, Yr = {
|
|
4903
4914
|
key: 0,
|
|
4904
4915
|
class: "step",
|
|
4905
4916
|
"data-testid": "form-block-step"
|
|
4906
|
-
},
|
|
4917
|
+
}, Gr = { class: "header-content" }, Wr = {
|
|
4907
4918
|
class: "header-title",
|
|
4908
4919
|
"data-testid": "header-title"
|
|
4909
|
-
},
|
|
4920
|
+
}, Jr = {
|
|
4910
4921
|
key: 0,
|
|
4911
4922
|
class: "header-description",
|
|
4912
4923
|
"data-testid": "header-description"
|
|
4913
|
-
},
|
|
4924
|
+
}, Xr = {
|
|
4914
4925
|
key: 1,
|
|
4915
4926
|
class: "header-extra",
|
|
4916
4927
|
"data-testid": "header-extra"
|
|
4917
|
-
},
|
|
4928
|
+
}, Qr = {
|
|
4918
4929
|
class: "content",
|
|
4919
4930
|
"data-testid": "form-block-content"
|
|
4920
|
-
},
|
|
4931
|
+
}, Zr = /* @__PURE__ */ be({
|
|
4921
4932
|
__name: "EntityFormBlock",
|
|
4922
4933
|
props: {
|
|
4923
4934
|
step: { default: () => {
|
|
@@ -4932,40 +4943,40 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
4932
4943
|
stepped: t.step !== void 0 || o.step
|
|
4933
4944
|
}])
|
|
4934
4945
|
}, [
|
|
4935
|
-
Q("header",
|
|
4936
|
-
t.step !== void 0 || o.step ? (m(), F("div",
|
|
4946
|
+
Q("header", Vr, [
|
|
4947
|
+
t.step !== void 0 || o.step ? (m(), F("div", Yr, [
|
|
4937
4948
|
ce(i.$slots, "step", {}, () => [
|
|
4938
4949
|
oe(N(t.step), 1)
|
|
4939
4950
|
], !0)
|
|
4940
|
-
])) :
|
|
4941
|
-
Q("div",
|
|
4942
|
-
Q("h2",
|
|
4951
|
+
])) : W("", !0),
|
|
4952
|
+
Q("div", Gr, [
|
|
4953
|
+
Q("h2", Wr, [
|
|
4943
4954
|
ce(i.$slots, "title", {}, () => [
|
|
4944
4955
|
oe(N(t.title), 1)
|
|
4945
4956
|
], !0)
|
|
4946
4957
|
]),
|
|
4947
|
-
t.description || o.description ? (m(), F("div",
|
|
4958
|
+
t.description || o.description ? (m(), F("div", Jr, [
|
|
4948
4959
|
ce(i.$slots, "description", {}, () => [
|
|
4949
4960
|
oe(N(t.description), 1)
|
|
4950
4961
|
], !0)
|
|
4951
|
-
])) :
|
|
4962
|
+
])) : W("", !0)
|
|
4952
4963
|
]),
|
|
4953
|
-
o.extra ? (m(), F("div",
|
|
4964
|
+
o.extra ? (m(), F("div", Xr, [
|
|
4954
4965
|
ce(i.$slots, "extra", {}, void 0, !0)
|
|
4955
|
-
])) :
|
|
4966
|
+
])) : W("", !0)
|
|
4956
4967
|
]),
|
|
4957
|
-
Q("div",
|
|
4968
|
+
Q("div", Qr, [
|
|
4958
4969
|
ce(i.$slots, "default", {}, void 0, !0)
|
|
4959
4970
|
])
|
|
4960
4971
|
], 2));
|
|
4961
4972
|
}
|
|
4962
|
-
}),
|
|
4973
|
+
}), da = /* @__PURE__ */ $e(Zr, [["__scopeId", "data-v-7dd2f21d"]]), el = {
|
|
4963
4974
|
class: "kong-ui-public-entity-link",
|
|
4964
4975
|
"data-testid": "entity-link-parent"
|
|
4965
|
-
},
|
|
4976
|
+
}, tl = {
|
|
4966
4977
|
key: 0,
|
|
4967
4978
|
class: "deleted-entity"
|
|
4968
|
-
},
|
|
4979
|
+
}, nl = { key: 1 }, il = ["onClick"], ol = /* @__PURE__ */ be({
|
|
4969
4980
|
__name: "EntityLink",
|
|
4970
4981
|
props: {
|
|
4971
4982
|
entityLinkData: {
|
|
@@ -4996,8 +5007,8 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
4996
5007
|
};
|
|
4997
5008
|
return (g, O) => {
|
|
4998
5009
|
const B = Z("KTooltip"), le = Z("KExternalLink"), S = Z("KClipboardProvider");
|
|
4999
|
-
return m(), F("div",
|
|
5000
|
-
u.value ? (m(), F("div",
|
|
5010
|
+
return m(), F("div", el, [
|
|
5011
|
+
u.value ? (m(), F("div", tl, N(a.value), 1)) : y.value ? y.value ? (m(), j(le, {
|
|
5001
5012
|
key: 2,
|
|
5002
5013
|
class: "entity-link",
|
|
5003
5014
|
"hide-icon": !t.newWindow,
|
|
@@ -5019,7 +5030,7 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
5019
5030
|
}, 8, ["text"])
|
|
5020
5031
|
]),
|
|
5021
5032
|
_: 1
|
|
5022
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
5033
|
+
}, 8, ["hide-icon", "href", "target"])) : W("", !0) : (m(), F("div", nl, N(" – "))),
|
|
5023
5034
|
y.value && t.allowCopy ? (m(), j(B, {
|
|
5024
5035
|
key: l.value,
|
|
5025
5036
|
class: "copy-uuid-tooltip",
|
|
@@ -5040,44 +5051,44 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
5040
5051
|
"data-testid": "copy-id",
|
|
5041
5052
|
size: `var(--kui-icon-size-30, ${v(ro)})`
|
|
5042
5053
|
}, null, 8, ["color", "size"])
|
|
5043
|
-
], 8,
|
|
5054
|
+
], 8, il)
|
|
5044
5055
|
]),
|
|
5045
5056
|
_: 1
|
|
5046
5057
|
})
|
|
5047
5058
|
]),
|
|
5048
5059
|
_: 1
|
|
5049
|
-
}, 8, ["text"])) :
|
|
5060
|
+
}, 8, ["text"])) : W("", !0)
|
|
5050
5061
|
]);
|
|
5051
5062
|
};
|
|
5052
5063
|
}
|
|
5053
|
-
}),
|
|
5064
|
+
}), fa = /* @__PURE__ */ $e(ol, [["__scopeId", "data-v-6668aea9"]]), rl = { class: "kong-ui-public-entity-empty-state" }, ll = { class: "entity-empty-state-content" }, al = {
|
|
5054
5065
|
key: 0,
|
|
5055
5066
|
class: "empty-state-image"
|
|
5056
|
-
},
|
|
5067
|
+
}, cl = {
|
|
5057
5068
|
key: 1,
|
|
5058
5069
|
class: "entity-empty-state-title"
|
|
5059
|
-
},
|
|
5070
|
+
}, sl = {
|
|
5060
5071
|
key: 2,
|
|
5061
5072
|
class: "entity-empty-state-description"
|
|
5062
|
-
},
|
|
5073
|
+
}, ul = {
|
|
5063
5074
|
key: 3,
|
|
5064
5075
|
class: "entity-empty-state-pricing"
|
|
5065
|
-
},
|
|
5076
|
+
}, dl = {
|
|
5066
5077
|
key: 0,
|
|
5067
5078
|
class: "entity-empty-state-message"
|
|
5068
|
-
},
|
|
5079
|
+
}, fl = {
|
|
5069
5080
|
key: 1,
|
|
5070
5081
|
class: "entity-empty-state-action"
|
|
5071
|
-
},
|
|
5082
|
+
}, pl = {
|
|
5072
5083
|
key: 2,
|
|
5073
5084
|
class: "entity-empty-state-card-container"
|
|
5074
|
-
},
|
|
5085
|
+
}, ml = {
|
|
5075
5086
|
key: 0,
|
|
5076
5087
|
class: "feature-icon"
|
|
5077
|
-
},
|
|
5088
|
+
}, yl = { class: "card-header" }, gl = ["title"], hl = {
|
|
5078
5089
|
key: 3,
|
|
5079
5090
|
class: "entity-empty-state-bottom-container"
|
|
5080
|
-
},
|
|
5091
|
+
}, vl = /* @__PURE__ */ be({
|
|
5081
5092
|
__name: "EntityEmptyState",
|
|
5082
5093
|
props: {
|
|
5083
5094
|
appearance: {
|
|
@@ -5124,12 +5135,12 @@ const Pr = ["aria-labelledby"], qr = { class: "form-section-wrapper" }, Dr = {
|
|
|
5124
5135
|
}), yt(() => gi(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
5125
5136
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) => {
|
|
5126
5137
|
const y = Z("KCard");
|
|
5127
|
-
return m(), F("div",
|
|
5128
|
-
Q("div",
|
|
5129
|
-
l.$slots.image ? (m(), F("div",
|
|
5138
|
+
return m(), F("div", rl, [
|
|
5139
|
+
Q("div", ll, [
|
|
5140
|
+
l.$slots.image ? (m(), F("div", al, [
|
|
5130
5141
|
ce(l.$slots, "image", {}, void 0, !0)
|
|
5131
|
-
])) :
|
|
5132
|
-
t.title || l.$slots.title ? (m(), F("div",
|
|
5142
|
+
])) : W("", !0),
|
|
5143
|
+
t.title || l.$slots.title ? (m(), F("div", cl, [
|
|
5133
5144
|
Q("h1", {
|
|
5134
5145
|
class: Se(c.value)
|
|
5135
5146
|
}, [
|
|
@@ -5137,13 +5148,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5137
5148
|
oe(N(t.title), 1)
|
|
5138
5149
|
], !0)
|
|
5139
5150
|
], 2)
|
|
5140
|
-
])) :
|
|
5141
|
-
t.description || l.$slots.default ? (m(), F("div",
|
|
5151
|
+
])) : W("", !0),
|
|
5152
|
+
t.description || l.$slots.default ? (m(), F("div", sl, [
|
|
5142
5153
|
ce(l.$slots, "default", {}, () => [
|
|
5143
5154
|
Q("p", null, N(t.description), 1)
|
|
5144
5155
|
], !0)
|
|
5145
|
-
])) :
|
|
5146
|
-
t.pricing || l.$slots.pricing ? (m(), F("div",
|
|
5156
|
+
])) : W("", !0),
|
|
5157
|
+
t.pricing || l.$slots.pricing ? (m(), F("div", ul, [
|
|
5147
5158
|
Q("p", null, [
|
|
5148
5159
|
Q("b", null, N(v(i)("emptyState.pricingTitle")), 1),
|
|
5149
5160
|
u[2] || (u[2] = oe()),
|
|
@@ -5151,12 +5162,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5151
5162
|
oe(N(t.pricing), 1)
|
|
5152
5163
|
], !0)
|
|
5153
5164
|
])
|
|
5154
|
-
])) :
|
|
5165
|
+
])) : W("", !0)
|
|
5155
5166
|
]),
|
|
5156
|
-
l.$slots.message ? (m(), F("div",
|
|
5167
|
+
l.$slots.message ? (m(), F("div", dl, [
|
|
5157
5168
|
ce(l.$slots, "message", {}, void 0, !0)
|
|
5158
|
-
])) :
|
|
5159
|
-
r.value || t.learnMore || l.$slots.actions ? (m(), F("div",
|
|
5169
|
+
])) : W("", !0),
|
|
5170
|
+
r.value || t.learnMore || l.$slots.actions ? (m(), F("div", fl, [
|
|
5160
5171
|
ce(l.$slots, "actions", {}, () => [
|
|
5161
5172
|
r.value ? (m(), j(v(Qt), {
|
|
5162
5173
|
key: 0,
|
|
@@ -5170,7 +5181,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5170
5181
|
oe(" " + N(t.actionButtonText), 1)
|
|
5171
5182
|
]),
|
|
5172
5183
|
_: 1
|
|
5173
|
-
}, 8, ["size"])) :
|
|
5184
|
+
}, 8, ["size"])) : W("", !0),
|
|
5174
5185
|
t.learnMore ? (m(), j(v(Qt), {
|
|
5175
5186
|
key: 1,
|
|
5176
5187
|
appearance: "secondary",
|
|
@@ -5183,43 +5194,43 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5183
5194
|
oe(" " + N(v(i)("emptyState.learnMore")), 1)
|
|
5184
5195
|
]),
|
|
5185
5196
|
_: 1
|
|
5186
|
-
}, 8, ["size"])) :
|
|
5197
|
+
}, 8, ["size"])) : W("", !0)
|
|
5187
5198
|
], !0)
|
|
5188
|
-
])) :
|
|
5189
|
-
t.features.length ? (m(), F("div",
|
|
5199
|
+
])) : W("", !0),
|
|
5200
|
+
t.features.length ? (m(), F("div", pl, [
|
|
5190
5201
|
(m(!0), F(Te, null, xe(t.features, (a, s) => (m(), j(y, {
|
|
5191
5202
|
key: `feature-${s}-card`,
|
|
5192
5203
|
class: "entity-empty-state-card"
|
|
5193
5204
|
}, {
|
|
5194
5205
|
title: I(() => [
|
|
5195
|
-
l.$slots[`feature-${s}-icon`] ? (m(), F("div",
|
|
5206
|
+
l.$slots[`feature-${s}-icon`] ? (m(), F("div", ml, [
|
|
5196
5207
|
ce(l.$slots, `feature-${s}-icon`, {}, void 0, !0)
|
|
5197
|
-
])) :
|
|
5198
|
-
Q("div",
|
|
5208
|
+
])) : W("", !0),
|
|
5209
|
+
Q("div", yl, N(a.title), 1)
|
|
5199
5210
|
]),
|
|
5200
5211
|
default: I(() => [
|
|
5201
5212
|
Q("div", {
|
|
5202
5213
|
title: a.description
|
|
5203
|
-
}, N(a.description), 9,
|
|
5214
|
+
}, N(a.description), 9, gl)
|
|
5204
5215
|
]),
|
|
5205
5216
|
_: 2
|
|
5206
5217
|
}, 1024))), 128))
|
|
5207
|
-
])) :
|
|
5208
|
-
l.$slots.bottom ? (m(), F("div",
|
|
5218
|
+
])) : W("", !0),
|
|
5219
|
+
l.$slots.bottom ? (m(), F("div", hl, [
|
|
5209
5220
|
ce(l.$slots, "bottom", {}, void 0, !0)
|
|
5210
|
-
])) :
|
|
5221
|
+
])) : W("", !0)
|
|
5211
5222
|
]);
|
|
5212
5223
|
};
|
|
5213
5224
|
}
|
|
5214
|
-
}),
|
|
5225
|
+
}), pa = /* @__PURE__ */ $e(vl, [["__scopeId", "data-v-0b2e9081"]]), bl = {
|
|
5215
5226
|
key: 0,
|
|
5216
5227
|
class: "sensitive-input-error-message",
|
|
5217
5228
|
"data-testid": "sensitive-input-error-message"
|
|
5218
|
-
},
|
|
5229
|
+
}, kl = { class: "sensitive-input-textarea-actions" }, Cl = {
|
|
5219
5230
|
key: 2,
|
|
5220
5231
|
class: "sensitive-input-hint",
|
|
5221
5232
|
"data-testid": "sensitive-input-hint"
|
|
5222
|
-
},
|
|
5233
|
+
}, Al = { class: "sensitive-input-hint-text" }, Sl = "••••••••••••••", Tl = /* @__PURE__ */ be({
|
|
5223
5234
|
__name: "SensitiveInput",
|
|
5224
5235
|
props: {
|
|
5225
5236
|
modelValue: { default: "" },
|
|
@@ -5243,7 +5254,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5243
5254
|
xn((Y) => ({
|
|
5244
5255
|
v41f8c11f: ye.value
|
|
5245
5256
|
}));
|
|
5246
|
-
const d = i, { i18n: { t: r } } = de.useI18n(), c = re(t.mode === "edit" ? "masked" : "editing"), l = re(!1), u = re(!1), y = q(() => c.value === "masked"), a =
|
|
5257
|
+
const d = i, { i18n: { t: r } } = de.useI18n(), c = re(t.mode === "edit" ? "masked" : "editing"), l = re(!1), u = re(!1), y = q(() => c.value === "masked"), a = Sl, s = q(() => t.placeholder ?? r("sensitiveInput.placeholder")), g = q(() => t.labels?.rotateLabel ?? r("sensitiveInput.rotateKey")), O = q(() => t.labels?.generateLabel ?? r("sensitiveInput.generateKey")), B = q(() => t.labels?.hintLabel ?? r("sensitiveInput.oneTimeHint")), le = q(() => y.value || l.value ? "text" : "password");
|
|
5247
5258
|
Me(() => t.showOneTimeHint, (Y) => {
|
|
5248
5259
|
Y && (l.value = !0);
|
|
5249
5260
|
}, { immediate: !0 });
|
|
@@ -5282,7 +5293,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5282
5293
|
}), vi(() => {
|
|
5283
5294
|
M?.disconnect(), ee !== void 0 && window.cancelAnimationFrame(ee);
|
|
5284
5295
|
}), (Y, L) => {
|
|
5285
|
-
const ne = Z("KButton"),
|
|
5296
|
+
const ne = Z("KButton"), J = Z("KInput"), H = Z("KTextArea"), me = Z("KClipboardProvider");
|
|
5286
5297
|
return m(), F("div", {
|
|
5287
5298
|
ref_key: "rootElement",
|
|
5288
5299
|
ref: E,
|
|
@@ -5305,8 +5316,8 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5305
5316
|
resizable: "",
|
|
5306
5317
|
"onUpdate:modelValue": S
|
|
5307
5318
|
}, null, 8, ["disabled", "error", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required"]),
|
|
5308
|
-
t.error && t.errorMessage ? (m(), F("p",
|
|
5309
|
-
Q("div",
|
|
5319
|
+
t.error && t.errorMessage ? (m(), F("p", bl, N(t.errorMessage), 1)) : W("", !0),
|
|
5320
|
+
Q("div", kl, [
|
|
5310
5321
|
y.value ? (m(), j(ne, {
|
|
5311
5322
|
key: 0,
|
|
5312
5323
|
appearance: "tertiary",
|
|
@@ -5332,9 +5343,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5332
5343
|
oe(N(O.value), 1)
|
|
5333
5344
|
]),
|
|
5334
5345
|
_: 1
|
|
5335
|
-
}, 8, ["disabled"])) :
|
|
5346
|
+
}, 8, ["disabled"])) : W("", !0)
|
|
5336
5347
|
])
|
|
5337
|
-
], 64)) : (m(), j(
|
|
5348
|
+
], 64)) : (m(), j(J, {
|
|
5338
5349
|
key: 0,
|
|
5339
5350
|
autocomplete: "off",
|
|
5340
5351
|
"data-testid": "sensitive-input",
|
|
@@ -5378,7 +5389,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5378
5389
|
oe(N(O.value), 1)
|
|
5379
5390
|
]),
|
|
5380
5391
|
_: 1
|
|
5381
|
-
}, 8, ["disabled"])) :
|
|
5392
|
+
}, 8, ["disabled"])) : W("", !0),
|
|
5382
5393
|
(m(), j(ze(l.value ? v(ki) : v(Ci)), {
|
|
5383
5394
|
"aria-label": l.value ? v(r)("sensitiveInput.hideKey") : v(r)("sensitiveInput.showKey"),
|
|
5384
5395
|
class: "sensitive-input-toggle",
|
|
@@ -5394,13 +5405,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5394
5405
|
]),
|
|
5395
5406
|
_: 1
|
|
5396
5407
|
}, 8, ["disabled", "error", "error-message", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required", "type"])),
|
|
5397
|
-
t.showOneTimeHint ? (m(), F("div",
|
|
5408
|
+
t.showOneTimeHint ? (m(), F("div", Cl, [
|
|
5398
5409
|
V(v(Mn), {
|
|
5399
5410
|
class: "sensitive-input-hint-icon",
|
|
5400
5411
|
color: `var(--kui-color-text-info, ${v(eo)})`,
|
|
5401
5412
|
size: `var(--kui-icon-size-40, ${v(Qe)})`
|
|
5402
5413
|
}, null, 8, ["color", "size"]),
|
|
5403
|
-
Q("span",
|
|
5414
|
+
Q("span", Al, N(B.value), 1),
|
|
5404
5415
|
V(me, null, {
|
|
5405
5416
|
default: I(({ copyToClipboard: ge }) => [
|
|
5406
5417
|
V(ne, {
|
|
@@ -5422,12 +5433,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5422
5433
|
]),
|
|
5423
5434
|
_: 1
|
|
5424
5435
|
})
|
|
5425
|
-
])) :
|
|
5436
|
+
])) : W("", !0),
|
|
5426
5437
|
ce(Y.$slots, "alert", {}, void 0, !0)
|
|
5427
5438
|
], 512);
|
|
5428
5439
|
};
|
|
5429
5440
|
}
|
|
5430
|
-
}),
|
|
5441
|
+
}), ma = /* @__PURE__ */ $e(Tl, [["__scopeId", "data-v-ae0726c4"]]), $l = { key: 1 }, ya = /* @__PURE__ */ be({
|
|
5431
5442
|
__name: "TableTags",
|
|
5432
5443
|
props: {
|
|
5433
5444
|
/** The tags to display in the table */
|
|
@@ -5468,12 +5479,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, u) =>
|
|
|
5468
5479
|
}, 1032, ["max-width"]))), 128))
|
|
5469
5480
|
]),
|
|
5470
5481
|
_: 1
|
|
5471
|
-
})) : (m(), F("span",
|
|
5482
|
+
})) : (m(), F("span", $l, "-"));
|
|
5472
5483
|
}
|
|
5473
|
-
}), { useAxios:
|
|
5484
|
+
}), { useAxios: ga, useDeleteUrlBuilder: ha, useBaseEntityDeckOptions: va, useBaseFormDeckOptions: ba, useErrors: ka, useExternalLinkCreator: Ca, useFetchUrlBuilder: Aa, useFetcher: Sa, useFetcherCacheKey: Ta, useDebouncedFilter: $a, useStringHelpers: wa, useHelpers: _a, useGatewayFeatureSupported: Ea, useTruncationDetector: Ia, useValidators: Oa, useSchema: Ra, useSchemaProvider: xa, useTableState: Ba } = de;
|
|
5474
5485
|
export {
|
|
5475
5486
|
Zt as Appearances,
|
|
5476
|
-
|
|
5487
|
+
Dl as BASE_FORM_CONFIG_TABS,
|
|
5477
5488
|
et as CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT,
|
|
5478
5489
|
Ei as CONFIG_CARD_FORMATS,
|
|
5479
5490
|
or as ConfigCardDisplay,
|
|
@@ -5483,53 +5494,53 @@ export {
|
|
|
5483
5494
|
wi as DECK_COMMAND_EDITOR_KEY,
|
|
5484
5495
|
_i as DECK_COMMAND_EDITOR_MISSING_WARNING,
|
|
5485
5496
|
si as DeckCodeBlock,
|
|
5486
|
-
|
|
5487
|
-
|
|
5497
|
+
ia as EntityBaseConfigCard,
|
|
5498
|
+
oa as EntityBaseForm,
|
|
5488
5499
|
Vi as EntityBaseFormType,
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5500
|
+
ra as EntityBaseTable,
|
|
5501
|
+
la as EntityDeleteModal,
|
|
5502
|
+
pa as EntityEmptyState,
|
|
5503
|
+
aa as EntityFilter,
|
|
5504
|
+
da as EntityFormBlock,
|
|
5505
|
+
ua as EntityFormSection,
|
|
5506
|
+
fa as EntityLink,
|
|
5507
|
+
ca as EntityToggleModal,
|
|
5497
5508
|
Hi as EntityTypes,
|
|
5498
5509
|
Ti as EventGatewayTypesArray,
|
|
5499
|
-
|
|
5510
|
+
Fa as FetcherStatus,
|
|
5500
5511
|
Go as GeneratePatModal,
|
|
5501
5512
|
$i as IdentityTypesArray,
|
|
5502
5513
|
Co as InternalLinkItem,
|
|
5503
5514
|
jn as JsonCodeBlock,
|
|
5504
|
-
|
|
5515
|
+
Ul as OnboardingCard,
|
|
5505
5516
|
Ii as PLUGIN_FORM_LAYOUT_STATE,
|
|
5506
|
-
|
|
5517
|
+
sa as PermissionsWrapper,
|
|
5507
5518
|
Si as SHIKI_MAX_HIGHLIGHT_LENGTH,
|
|
5508
|
-
|
|
5509
|
-
|
|
5519
|
+
ma as SensitiveInput,
|
|
5520
|
+
Ma as SupportedEntityDeckArray,
|
|
5510
5521
|
je as SupportedEntityType,
|
|
5511
5522
|
gt as SupportedEntityTypesArray,
|
|
5512
|
-
|
|
5523
|
+
ya as TableTags,
|
|
5513
5524
|
ci as TerraformCodeBlock,
|
|
5514
5525
|
ai as YamlCodeBlock,
|
|
5515
5526
|
Ge as highlightCodeBlock,
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5527
|
+
Na as isSupportedDeckEntityType,
|
|
5528
|
+
ga as useAxios,
|
|
5529
|
+
va as useBaseEntityDeckOptions,
|
|
5530
|
+
ba as useBaseFormDeckOptions,
|
|
5531
|
+
$a as useDebouncedFilter,
|
|
5532
|
+
ha as useDeleteUrlBuilder,
|
|
5533
|
+
ka as useErrors,
|
|
5534
|
+
Ca as useExternalLinkCreator,
|
|
5535
|
+
Aa as useFetchUrlBuilder,
|
|
5536
|
+
Sa as useFetcher,
|
|
5537
|
+
Ta as useFetcherCacheKey,
|
|
5538
|
+
Ea as useGatewayFeatureSupported,
|
|
5539
|
+
_a as useHelpers,
|
|
5540
|
+
Ra as useSchema,
|
|
5541
|
+
xa as useSchemaProvider,
|
|
5542
|
+
wa as useStringHelpers,
|
|
5543
|
+
Ba as useTableState,
|
|
5544
|
+
Ia as useTruncationDetector,
|
|
5545
|
+
Oa as useValidators
|
|
5535
5546
|
};
|