@kong-ui-public/entities-shared 3.33.2-pr.2665.bc08bad0f.0 → 3.33.2-pr.2665.fce224b51.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as Pt, ref as N, computed as $, unref as T, toValue as ye, watch as be, toRef as Jn, provide as Dt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as Pe, normalizeClass as fe, withCtx as k, createElementBlock as S, createCommentVNode as M, createElementVNode as B, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as U, useCssVars as Ut, useId as Gn, useSlots as De, renderSlot as P, createSlots as Se, normalizeProps as zn, guardReactiveProps as Qn, mergeProps as qt, onMounted as nt, onBeforeMount as it, withModifiers as Be, Teleport as Ht, onUnmounted as Zn, withDirectives as xe, vShow as Ce, withKeys as Xn, warn as ei } from "vue";
|
|
2
2
|
import pt from "axios";
|
|
3
3
|
import { createI18n as ti, i18nTComponent as ni } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as ii, KButton as mt, KTruncate as ri, KBadge as ai } from "@kong/kongponents";
|
|
@@ -30,7 +30,7 @@ function mi() {
|
|
|
30
30
|
return {
|
|
31
31
|
getAxiosInstance: (e = {}) => {
|
|
32
32
|
try {
|
|
33
|
-
const t =
|
|
33
|
+
const t = Pt("get-axios-instance", void 0);
|
|
34
34
|
return typeof t == "function" ? t(e) : pt.create({
|
|
35
35
|
withCredentials: !0,
|
|
36
36
|
timeout: 3e4,
|
|
@@ -564,13 +564,13 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
564
564
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
565
565
|
if (kt.indexOf(e) === -1)
|
|
566
566
|
throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
|
|
567
|
-
},
|
|
568
|
-
function
|
|
567
|
+
}, Pi = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
|
|
568
|
+
function Di(e) {
|
|
569
569
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
570
570
|
if (!t)
|
|
571
571
|
return !0;
|
|
572
572
|
const { edition: i, version: r } = t;
|
|
573
|
-
if (!
|
|
573
|
+
if (!Pi(r))
|
|
574
574
|
return console.error("Invalid version"), !1;
|
|
575
575
|
const o = n[i];
|
|
576
576
|
if (!o)
|
|
@@ -593,11 +593,11 @@ function qi() {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
const ze = Symbol("schema"), Hi = (e) => {
|
|
596
|
-
|
|
596
|
+
Dt(ze, e);
|
|
597
597
|
}, Vi = (e) => {
|
|
598
598
|
var r, o;
|
|
599
|
-
const t =
|
|
600
|
-
return
|
|
599
|
+
const t = Pt(ze, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Jn(n == null ? void 0 : n[e]);
|
|
600
|
+
return Dt(ze, i), i;
|
|
601
601
|
};
|
|
602
602
|
function Yi(e) {
|
|
603
603
|
let t = "";
|
|
@@ -626,7 +626,7 @@ const W = {
|
|
|
626
626
|
useHelpers: Wt,
|
|
627
627
|
useStringHelpers: Ri,
|
|
628
628
|
useI18n: qe,
|
|
629
|
-
useGatewayFeatureSupported:
|
|
629
|
+
useGatewayFeatureSupported: Di,
|
|
630
630
|
useTruncationDetector: Ui,
|
|
631
631
|
useValidators: qi,
|
|
632
632
|
useSchemaProvider: Hi,
|
|
@@ -659,7 +659,7 @@ const W = {
|
|
|
659
659
|
var l;
|
|
660
660
|
return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
661
661
|
});
|
|
662
|
-
return (l, c) => (m(), j(
|
|
662
|
+
return (l, c) => (m(), j(Pe(e.isArrayItem ? "fieldset" : "div"), {
|
|
663
663
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
664
664
|
}, {
|
|
665
665
|
default: k(() => [
|
|
@@ -695,7 +695,7 @@ const W = {
|
|
|
695
695
|
setup(e) {
|
|
696
696
|
const { i18n: { t } } = W.useI18n();
|
|
697
697
|
return (n, i) => {
|
|
698
|
-
const r =
|
|
698
|
+
const r = D("KButton");
|
|
699
699
|
return m(), S("div", null, [
|
|
700
700
|
K(r, {
|
|
701
701
|
appearance: "tertiary",
|
|
@@ -721,7 +721,7 @@ const W = {
|
|
|
721
721
|
setup(e) {
|
|
722
722
|
const { i18n: { t } } = W.useI18n();
|
|
723
723
|
return (n, i) => {
|
|
724
|
-
const r =
|
|
724
|
+
const r = D("KBadge");
|
|
725
725
|
return m(), j(r, {
|
|
726
726
|
appearance: e.status ? "success" : "neutral"
|
|
727
727
|
}, {
|
|
@@ -761,7 +761,7 @@ const W = {
|
|
|
761
761
|
v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
762
762
|
v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
763
763
|
}));
|
|
764
|
-
const n = e, i = t, r = Gn(), o =
|
|
764
|
+
const n = e, i = t, r = Gn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = $(() => n.item.type === V.JsonArray), g = W.useSubSchema(n.item.key), y = $(() => {
|
|
765
765
|
var Y;
|
|
766
766
|
return n.item.type ? n.item.type : (Y = g == null ? void 0 : g.value) != null && Y.encrypted ? V.Redacted : void 0;
|
|
767
767
|
}), x = $(() => {
|
|
@@ -897,13 +897,13 @@ const W = {
|
|
|
897
897
|
}
|
|
898
898
|
}), h = N(), A = N(), { isTruncated: C } = W.useTruncationDetector(h), { isTruncated: E } = W.useTruncationDetector(A);
|
|
899
899
|
return (Y, X) => {
|
|
900
|
-
const w =
|
|
900
|
+
const w = D("KTooltip"), _ = D("KLabel"), O = D("KBadge"), f = D("KCopy");
|
|
901
901
|
return m(), S("div", ar, [
|
|
902
902
|
B("div", {
|
|
903
903
|
class: "config-card-details-label",
|
|
904
904
|
"data-testid": `${e.item.key}-label`
|
|
905
905
|
}, [
|
|
906
|
-
|
|
906
|
+
P(Y.$slots, "label", { item: e.item }, () => [
|
|
907
907
|
K(_, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
908
908
|
default: k(() => [
|
|
909
909
|
K(w, {
|
|
@@ -927,7 +927,7 @@ const W = {
|
|
|
927
927
|
B("div", {
|
|
928
928
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
929
929
|
}, [
|
|
930
|
-
|
|
930
|
+
P(Y.$slots, "label-tooltip", {}, () => [
|
|
931
931
|
U(L(e.item.tooltip), 1)
|
|
932
932
|
], !0)
|
|
933
933
|
], 8, lr)
|
|
@@ -941,11 +941,11 @@ const W = {
|
|
|
941
941
|
class: "config-card-details-value",
|
|
942
942
|
"data-testid": `${e.item.key}-property-value`
|
|
943
943
|
}, [
|
|
944
|
-
|
|
944
|
+
P(Y.$slots, e.item.key, {
|
|
945
945
|
rowValue: e.item.value
|
|
946
946
|
}, () => [
|
|
947
947
|
c.value ? (m(), S("div", ur, [
|
|
948
|
-
(m(), j(
|
|
948
|
+
(m(), j(Pe(x.value.tag), zn(Qn(x.value.attrs)), {
|
|
949
949
|
default: k(() => [
|
|
950
950
|
x.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
951
951
|
key: 0,
|
|
@@ -1066,7 +1066,7 @@ const W = {
|
|
|
1066
1066
|
return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
|
|
1067
1067
|
});
|
|
1068
1068
|
return (r, o) => {
|
|
1069
|
-
const a =
|
|
1069
|
+
const a = D("KBadge"), s = D("KCodeBlock");
|
|
1070
1070
|
return m(), S("div", hr, [
|
|
1071
1071
|
t.fetcherUrl ? (m(), S("div", vr, [
|
|
1072
1072
|
K(a, {
|
|
@@ -1335,12 +1335,12 @@ var cn = new ne("tag:yaml.org,2002:null", {
|
|
|
1335
1335
|
},
|
|
1336
1336
|
defaultStyle: "lowercase"
|
|
1337
1337
|
});
|
|
1338
|
-
function
|
|
1338
|
+
function Pr(e) {
|
|
1339
1339
|
if (e === null) return !1;
|
|
1340
1340
|
var t = e.length;
|
|
1341
1341
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Dr(e) {
|
|
1344
1344
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1345
1345
|
}
|
|
1346
1346
|
function Ur(e) {
|
|
@@ -1348,8 +1348,8 @@ function Ur(e) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
var un = new ne("tag:yaml.org,2002:bool", {
|
|
1350
1350
|
kind: "scalar",
|
|
1351
|
-
resolve:
|
|
1352
|
-
construct:
|
|
1351
|
+
resolve: Pr,
|
|
1352
|
+
construct: Dr,
|
|
1353
1353
|
predicate: Ur,
|
|
1354
1354
|
represent: {
|
|
1355
1355
|
lowercase: function(e) {
|
|
@@ -2085,9 +2085,9 @@ function ja(e, t) {
|
|
|
2085
2085
|
throw new oe("expected a single document in the stream, but found more");
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
|
-
var
|
|
2089
|
-
loadAll:
|
|
2090
|
-
load:
|
|
2088
|
+
var Pa = Ma, Da = ja, On = {
|
|
2089
|
+
loadAll: Pa,
|
|
2090
|
+
load: Da
|
|
2091
2091
|
}, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, Ua = 9, Fe = 10, qa = 13, Ha = 32, Va = 33, Ya = 34, Ze = 35, Wa = 37, Ja = 38, Ga = 39, za = 42, Rn = 44, Qa = 45, Me = 58, Za = 61, Xa = 62, eo = 63, to = 64, Kn = 91, Nn = 93, no = 96, Mn = 123, io = 124, jn = 125, re = {};
|
|
2092
2092
|
re[0] = "\\0";
|
|
2093
2093
|
re[7] = "\\a";
|
|
@@ -2192,11 +2192,11 @@ function Te(e, t) {
|
|
|
2192
2192
|
var n = e.charCodeAt(t), i;
|
|
2193
2193
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function Pn(e) {
|
|
2196
2196
|
var t = /^\n* /;
|
|
2197
2197
|
return t.test(e);
|
|
2198
2198
|
}
|
|
2199
|
-
var
|
|
2199
|
+
var Dn = 1, et = 2, Un = 3, qn = 4, Ae = 5;
|
|
2200
2200
|
function mo(e, t, n, i, r, o, a, s) {
|
|
2201
2201
|
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, y = -1, x = fo(Te(e, 0)) && po(Te(e, e.length - 1));
|
|
2202
2202
|
if (t || a)
|
|
@@ -2216,7 +2216,7 @@ function mo(e, t, n, i, r, o, a, s) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
p = p || g && l - y - 1 > i && e[y + 1] !== " ";
|
|
2218
2218
|
}
|
|
2219
|
-
return !u && !p ? x && !a && !r(e) ?
|
|
2219
|
+
return !u && !p ? x && !a && !r(e) ? Dn : o === Oe ? Ae : et : n > 9 && Pn(e) ? Ae : a ? o === Oe ? Ae : et : p ? qn : Un;
|
|
2220
2220
|
}
|
|
2221
2221
|
function yo(e, t, n, i, r) {
|
|
2222
2222
|
e.dump = function() {
|
|
@@ -2238,7 +2238,7 @@ function yo(e, t, n, i, r) {
|
|
|
2238
2238
|
e.forceQuotes && !i,
|
|
2239
2239
|
r
|
|
2240
2240
|
)) {
|
|
2241
|
-
case
|
|
2241
|
+
case Dn:
|
|
2242
2242
|
return t;
|
|
2243
2243
|
case et:
|
|
2244
2244
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
@@ -2254,7 +2254,7 @@ function yo(e, t, n, i, r) {
|
|
|
2254
2254
|
}();
|
|
2255
2255
|
}
|
|
2256
2256
|
function Lt(e, t) {
|
|
2257
|
-
var n =
|
|
2257
|
+
var n = Pn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2258
2258
|
`, r = i && (e[e.length - 2] === `
|
|
2259
2259
|
` || e === `
|
|
2260
2260
|
`), o = r ? "+" : i ? "" : "-";
|
|
@@ -2444,7 +2444,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2444
2444
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Hn.dump(i).trim();
|
|
2445
2445
|
});
|
|
2446
2446
|
return (i, r) => {
|
|
2447
|
-
const o =
|
|
2447
|
+
const o = D("KCodeBlock");
|
|
2448
2448
|
return m(), S("div", jo, [
|
|
2449
2449
|
t.entityRecord ? (m(), j(o, {
|
|
2450
2450
|
key: 0,
|
|
@@ -2456,7 +2456,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2456
2456
|
]);
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
|
-
}),
|
|
2459
|
+
}), Po = { class: "terraform-config config-card-code-block" }, ie = " ", Yn = /* @__PURE__ */ z({
|
|
2460
2460
|
__name: "TerraformCodeBlock",
|
|
2461
2461
|
props: {
|
|
2462
2462
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2551,8 +2551,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2551
2551
|
`, d;
|
|
2552
2552
|
});
|
|
2553
2553
|
return (l, c) => {
|
|
2554
|
-
const d =
|
|
2555
|
-
return m(), S("div",
|
|
2554
|
+
const d = D("KCodeBlock");
|
|
2555
|
+
return m(), S("div", Po, [
|
|
2556
2556
|
t.entityRecord ? (m(), j(d, {
|
|
2557
2557
|
key: 0,
|
|
2558
2558
|
id: "terraform-codeblock",
|
|
@@ -2563,7 +2563,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2563
2563
|
]);
|
|
2564
2564
|
};
|
|
2565
2565
|
}
|
|
2566
|
-
}),
|
|
2566
|
+
}), Do = { class: "deck-config config-card-code-block" }, Wn = /* @__PURE__ */ z({
|
|
2567
2567
|
__name: "DeckCodeBlock",
|
|
2568
2568
|
props: {
|
|
2569
2569
|
entityRecord: {},
|
|
@@ -2587,16 +2587,15 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2587
2587
|
...n.value,
|
|
2588
2588
|
[t.entityType + "s"]: [o]
|
|
2589
2589
|
};
|
|
2590
|
-
return Hn.dump(a);
|
|
2590
|
+
return Hn.dump(a).trim();
|
|
2591
2591
|
}), r = $(() => {
|
|
2592
|
-
let o = "deck
|
|
2593
|
-
return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo
|
|
2594
|
-
'${i.value}
|
|
2592
|
+
let o = "deck gateway apply -";
|
|
2593
|
+
return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo '${i.value}
|
|
2595
2594
|
' | ${o}`;
|
|
2596
2595
|
});
|
|
2597
2596
|
return (o, a) => {
|
|
2598
|
-
const s =
|
|
2599
|
-
return m(), S("div",
|
|
2597
|
+
const s = D("KBadge"), l = D("KCodeBlock");
|
|
2598
|
+
return m(), S("div", Do, [
|
|
2600
2599
|
B("p", null, [
|
|
2601
2600
|
a[1] || (a[1] = U(" The ", -1)),
|
|
2602
2601
|
K(s, null, {
|
|
@@ -2693,7 +2692,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2693
2692
|
}
|
|
2694
2693
|
},
|
|
2695
2694
|
setup(e) {
|
|
2696
|
-
const t = e, n =
|
|
2695
|
+
const t = e, n = De(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = $(() => {
|
|
2697
2696
|
if (!t.record)
|
|
2698
2697
|
return t.record;
|
|
2699
2698
|
let s = t.record;
|
|
@@ -2709,16 +2708,16 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2709
2708
|
"data-testid": `config-card-details-${c}-props`
|
|
2710
2709
|
}, [
|
|
2711
2710
|
c !== "basic" ? (m(), S("div", Ho, L(c === "advanced" ? T(i)("baseConfigCard.sections.advanced") : c === "plugin" ? T(i)("baseConfigCard.sections.plugin") : T(i)("baseConfigCard.sections.policy")), 1)) : M("", !0),
|
|
2712
|
-
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) =>
|
|
2711
|
+
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => P(s.$slots, `config-card-item-${d.key}`, {
|
|
2713
2712
|
key: d.key,
|
|
2714
2713
|
item: d
|
|
2715
2714
|
}, () => [
|
|
2716
2715
|
K(Xt, { item: d }, Se({
|
|
2717
2716
|
label: k(() => [
|
|
2718
|
-
|
|
2717
|
+
P(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2719
2718
|
]),
|
|
2720
2719
|
[d.key]: k(({ rowValue: u }) => [
|
|
2721
|
-
|
|
2720
|
+
P(s.$slots, d.key, {
|
|
2722
2721
|
row: d,
|
|
2723
2722
|
rowValue: u
|
|
2724
2723
|
}, void 0, !0)
|
|
@@ -2728,7 +2727,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2728
2727
|
r(d) ? {
|
|
2729
2728
|
name: "label-tooltip",
|
|
2730
2729
|
fn: k(() => [
|
|
2731
|
-
|
|
2730
|
+
P(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2732
2731
|
]),
|
|
2733
2732
|
key: "0"
|
|
2734
2733
|
} : void 0
|
|
@@ -3077,14 +3076,14 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3077
3076
|
y.value = !1;
|
|
3078
3077
|
}
|
|
3079
3078
|
}), (f, v) => {
|
|
3080
|
-
const b =
|
|
3079
|
+
const b = D("KLabel"), H = D("KSelect"), J = D("KButton"), I = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
|
|
3081
3080
|
return m(), j(G, {
|
|
3082
3081
|
class: "kong-ui-entity-base-config-card",
|
|
3083
3082
|
"title-tag": e.titleTag
|
|
3084
3083
|
}, Se({
|
|
3085
3084
|
actions: k(() => [
|
|
3086
3085
|
B("div", Jo, [
|
|
3087
|
-
|
|
3086
|
+
P(f.$slots, "actions", {}, void 0, !0),
|
|
3088
3087
|
K(b, {
|
|
3089
3088
|
class: "config-format-select-label",
|
|
3090
3089
|
"data-testid": "config-format-select-label"
|
|
@@ -3151,7 +3150,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3151
3150
|
ce(Object.keys(f.$slots), (q) => ({
|
|
3152
3151
|
name: q,
|
|
3153
3152
|
fn: k((Q) => [
|
|
3154
|
-
|
|
3153
|
+
P(f.$slots, q, qt({ record: A.value }, Q), void 0, !0)
|
|
3155
3154
|
])
|
|
3156
3155
|
}))
|
|
3157
3156
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3163,7 +3162,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3163
3162
|
name: "title",
|
|
3164
3163
|
fn: k(() => [
|
|
3165
3164
|
B("span", Wo, [
|
|
3166
|
-
|
|
3165
|
+
P(f.$slots, "title", {}, () => [
|
|
3167
3166
|
U(L(T(r)("baseConfigCard.title")), 1)
|
|
3168
3167
|
], !0)
|
|
3169
3168
|
])
|
|
@@ -3344,8 +3343,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3344
3343
|
formCancel: C,
|
|
3345
3344
|
formSubmit: E
|
|
3346
3345
|
}), (w, _) => {
|
|
3347
|
-
const O =
|
|
3348
|
-
return m(), j(
|
|
3346
|
+
const O = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), H = D("KTabs"), J = D("KSlideout");
|
|
3347
|
+
return m(), j(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3349
3348
|
default: k(() => [
|
|
3350
3349
|
c.value ? (m(), j(O, {
|
|
3351
3350
|
key: 0,
|
|
@@ -3368,7 +3367,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3368
3367
|
onReset: Be(C, ["prevent"]),
|
|
3369
3368
|
onSubmit: Be(E, ["prevent"])
|
|
3370
3369
|
}, [
|
|
3371
|
-
|
|
3370
|
+
P(w.$slots, "default", {}, void 0, !0),
|
|
3372
3371
|
e.errorMessage ? (m(), j(v, {
|
|
3373
3372
|
key: 0,
|
|
3374
3373
|
appearance: "danger",
|
|
@@ -3384,7 +3383,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3384
3383
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3385
3384
|
"data-testid": "form-actions"
|
|
3386
3385
|
}, [
|
|
3387
|
-
|
|
3386
|
+
P(w.$slots, "form-actions", {}, () => [
|
|
3388
3387
|
K(b, {
|
|
3389
3388
|
appearance: "tertiary",
|
|
3390
3389
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
@@ -3461,10 +3460,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3461
3460
|
]),
|
|
3462
3461
|
deck: k(() => [
|
|
3463
3462
|
K(Wn, {
|
|
3463
|
+
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3464
3464
|
"entity-record": r.formFields,
|
|
3465
3465
|
"entity-type": e.entityType,
|
|
3466
3466
|
"geo-server-url": e.config.app === "konnect" ? e.config.geoServerUrl : void 0
|
|
3467
|
-
}, null, 8, ["entity-record", "entity-type", "geo-server-url"])
|
|
3467
|
+
}, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])
|
|
3468
3468
|
]),
|
|
3469
3469
|
_: 1
|
|
3470
3470
|
}, 8, ["tabs"])
|
|
@@ -3476,7 +3476,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3476
3476
|
});
|
|
3477
3477
|
};
|
|
3478
3478
|
}
|
|
3479
|
-
}), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-
|
|
3479
|
+
}), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-b55da9e5"]]), el = ["data-truncate"], tl = /* @__PURE__ */ z({
|
|
3480
3480
|
__name: "EntityBaseTableCell",
|
|
3481
3481
|
props: {
|
|
3482
3482
|
keyName: {
|
|
@@ -3535,7 +3535,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3535
3535
|
}), Zn(() => {
|
|
3536
3536
|
y();
|
|
3537
3537
|
}), (h, A) => {
|
|
3538
|
-
const C =
|
|
3538
|
+
const C = D("KTooltip");
|
|
3539
3539
|
return m(), S("span", {
|
|
3540
3540
|
ref_key: "contentRef",
|
|
3541
3541
|
ref: c,
|
|
@@ -3551,11 +3551,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3551
3551
|
text: x.value ? p.value : ""
|
|
3552
3552
|
}, {
|
|
3553
3553
|
default: k(() => [
|
|
3554
|
-
|
|
3554
|
+
P(h.$slots, "default", {}, void 0, !0)
|
|
3555
3555
|
]),
|
|
3556
3556
|
_: 3
|
|
3557
3557
|
}, 8, ["text"])
|
|
3558
|
-
], 8, el)) :
|
|
3558
|
+
], 8, el)) : P(h.$slots, "default", { key: 1 }, void 0, !0)
|
|
3559
3559
|
], 512);
|
|
3560
3560
|
};
|
|
3561
3561
|
}
|
|
@@ -3778,7 +3778,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3778
3778
|
...n.paginationAttributes
|
|
3779
3779
|
}));
|
|
3780
3780
|
return (f, v) => {
|
|
3781
|
-
const b =
|
|
3781
|
+
const b = D("KTableData"), H = D("KCard");
|
|
3782
3782
|
return m(), j(H, {
|
|
3783
3783
|
class: "kong-ui-entity-base-table",
|
|
3784
3784
|
title: e.title,
|
|
@@ -3823,21 +3823,21 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3823
3823
|
}, Se({
|
|
3824
3824
|
toolbar: k(() => [
|
|
3825
3825
|
B("div", il, [
|
|
3826
|
-
|
|
3826
|
+
P(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3827
3827
|
f.$slots["toolbar-button"] ? (m(), S("div", rl, [
|
|
3828
|
-
|
|
3828
|
+
P(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3829
3829
|
])) : M("", !0)
|
|
3830
3830
|
])
|
|
3831
3831
|
]),
|
|
3832
3832
|
"action-items": k(({ row: J }) => [
|
|
3833
|
-
|
|
3833
|
+
P(f.$slots, "actions", { row: J }, void 0, !0)
|
|
3834
3834
|
]),
|
|
3835
3835
|
_: 2
|
|
3836
3836
|
}, [
|
|
3837
3837
|
f.$slots["empty-state"] ? {
|
|
3838
3838
|
name: "empty-state",
|
|
3839
3839
|
fn: k(() => [
|
|
3840
|
-
|
|
3840
|
+
P(f.$slots, "empty-state", {}, void 0, !0)
|
|
3841
3841
|
]),
|
|
3842
3842
|
key: "0"
|
|
3843
3843
|
} : void 0,
|
|
@@ -3850,7 +3850,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3850
3850
|
tooltip: J.tooltip
|
|
3851
3851
|
}, {
|
|
3852
3852
|
default: k(() => [
|
|
3853
|
-
|
|
3853
|
+
P(f.$slots, I, {
|
|
3854
3854
|
row: R,
|
|
3855
3855
|
rowKey: e.rowKey,
|
|
3856
3856
|
rowValue: G
|
|
@@ -3871,7 +3871,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3871
3871
|
}
|
|
3872
3872
|
]), 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"]),
|
|
3873
3873
|
f.$slots["outside-actions"] && T(A) ? (m(), S("div", al, [
|
|
3874
|
-
|
|
3874
|
+
P(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3875
3875
|
])) : M("", !0)
|
|
3876
3876
|
]),
|
|
3877
3877
|
_: 3
|
|
@@ -3929,7 +3929,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3929
3929
|
r("proceed");
|
|
3930
3930
|
};
|
|
3931
3931
|
return (l, c) => {
|
|
3932
|
-
const d =
|
|
3932
|
+
const d = D("KAlert"), u = D("KPrompt");
|
|
3933
3933
|
return m(), j(u, {
|
|
3934
3934
|
"action-button-appearance": "danger",
|
|
3935
3935
|
"action-button-disabled": e.actionPending,
|
|
@@ -3969,7 +3969,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3969
3969
|
} : void 0
|
|
3970
3970
|
]), 1032, ["keypath"]),
|
|
3971
3971
|
i.description || l.$slots.description ? (m(), S("div", sl, [
|
|
3972
|
-
|
|
3972
|
+
P(l.$slots, "description", {}, () => [
|
|
3973
3973
|
B("p", null, L(i.description), 1)
|
|
3974
3974
|
], !0)
|
|
3975
3975
|
])) : M("", !0)
|
|
@@ -4094,7 +4094,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4094
4094
|
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(_);
|
|
4095
4095
|
};
|
|
4096
4096
|
return (w, _) => {
|
|
4097
|
-
const O =
|
|
4097
|
+
const O = D("KInput"), f = D("KButton"), v = D("KSelect");
|
|
4098
4098
|
return e.config.isExactMatch ? (m(), j(O, {
|
|
4099
4099
|
key: 0,
|
|
4100
4100
|
autocomplete: "off",
|
|
@@ -4281,7 +4281,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4281
4281
|
}
|
|
4282
4282
|
};
|
|
4283
4283
|
return (u, p) => {
|
|
4284
|
-
const g =
|
|
4284
|
+
const g = D("KPrompt");
|
|
4285
4285
|
return m(), j(Ht, { to: "body" }, [
|
|
4286
4286
|
K(g, {
|
|
4287
4287
|
"action-button-disabled": a.value,
|
|
@@ -4336,7 +4336,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4336
4336
|
const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4337
4337
|
return be(() => t.authFunction, async () => {
|
|
4338
4338
|
n.value = await t.authFunction();
|
|
4339
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
4339
|
+
}, { immediate: !0 }), (r, o) => i.value ? P(r.$slots, "default", {
|
|
4340
4340
|
key: 0,
|
|
4341
4341
|
isAllowed: n.value
|
|
4342
4342
|
}) : M("", !0);
|
|
@@ -4403,7 +4403,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4403
4403
|
}
|
|
4404
4404
|
},
|
|
4405
4405
|
setup(e) {
|
|
4406
|
-
const t =
|
|
4406
|
+
const t = De(), n = El();
|
|
4407
4407
|
return (i, r) => (m(), S("div", {
|
|
4408
4408
|
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4409
4409
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
@@ -4414,7 +4414,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4414
4414
|
key: 0,
|
|
4415
4415
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4416
4416
|
}, [
|
|
4417
|
-
e.title ? (m(), j(
|
|
4417
|
+
e.title ? (m(), j(Pe(e.titleTag), {
|
|
4418
4418
|
key: 0,
|
|
4419
4419
|
id: T(n),
|
|
4420
4420
|
class: "form-section-title"
|
|
@@ -4425,16 +4425,16 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4425
4425
|
_: 1
|
|
4426
4426
|
}, 8, ["id"])) : M("", !0),
|
|
4427
4427
|
e.description || T(t).description ? (m(), S("div", Ol, [
|
|
4428
|
-
|
|
4428
|
+
P(i.$slots, "description", {}, () => [
|
|
4429
4429
|
B("p", null, L(e.description), 1)
|
|
4430
4430
|
], !0)
|
|
4431
4431
|
])) : M("", !0),
|
|
4432
4432
|
T(t).footer ? (m(), S("div", Ll, [
|
|
4433
|
-
|
|
4433
|
+
P(i.$slots, "footer", {}, void 0, !0)
|
|
4434
4434
|
])) : M("", !0)
|
|
4435
4435
|
], 2)),
|
|
4436
4436
|
B("div", Bl, [
|
|
4437
|
-
|
|
4437
|
+
P(i.$slots, "default", {}, void 0, !0)
|
|
4438
4438
|
])
|
|
4439
4439
|
])
|
|
4440
4440
|
], 10, Il));
|
|
@@ -4442,7 +4442,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4442
4442
|
}), _s = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-b1f74200"]]), Kl = { class: "ff-form-section" }, Nl = { class: "header" }, Ml = {
|
|
4443
4443
|
key: 0,
|
|
4444
4444
|
class: "step"
|
|
4445
|
-
}, jl = { class: "header-content" },
|
|
4445
|
+
}, jl = { class: "header-content" }, Pl = { class: "header-title" }, Dl = {
|
|
4446
4446
|
key: 0,
|
|
4447
4447
|
class: "header-description"
|
|
4448
4448
|
}, Ul = {
|
|
@@ -4456,28 +4456,28 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4456
4456
|
description: { default: "" }
|
|
4457
4457
|
},
|
|
4458
4458
|
setup(e) {
|
|
4459
|
-
const t =
|
|
4459
|
+
const t = De();
|
|
4460
4460
|
return (n, i) => (m(), S("div", Kl, [
|
|
4461
4461
|
B("header", Nl, [
|
|
4462
4462
|
e.step != null ? (m(), S("div", Ml, L(e.step), 1)) : M("", !0),
|
|
4463
4463
|
B("div", jl, [
|
|
4464
|
-
B("h2",
|
|
4465
|
-
|
|
4464
|
+
B("h2", Pl, [
|
|
4465
|
+
P(n.$slots, "title", {}, () => [
|
|
4466
4466
|
U(L(e.title), 1)
|
|
4467
4467
|
], !0)
|
|
4468
4468
|
]),
|
|
4469
|
-
e.description || t.description ? (m(), S("div",
|
|
4470
|
-
|
|
4469
|
+
e.description || t.description ? (m(), S("div", Dl, [
|
|
4470
|
+
P(n.$slots, "description", {}, () => [
|
|
4471
4471
|
U(L(e.description), 1)
|
|
4472
4472
|
], !0)
|
|
4473
4473
|
])) : M("", !0)
|
|
4474
4474
|
]),
|
|
4475
4475
|
t.extra ? (m(), S("div", Ul, [
|
|
4476
|
-
|
|
4476
|
+
P(n.$slots, "extra", {}, void 0, !0)
|
|
4477
4477
|
])) : M("", !0)
|
|
4478
4478
|
]),
|
|
4479
4479
|
B("div", ql, [
|
|
4480
|
-
|
|
4480
|
+
P(n.$slots, "default", {}, void 0, !0)
|
|
4481
4481
|
])
|
|
4482
4482
|
]));
|
|
4483
4483
|
}
|
|
@@ -4523,7 +4523,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4523
4523
|
}, 1800));
|
|
4524
4524
|
};
|
|
4525
4525
|
return (u, p) => {
|
|
4526
|
-
const g =
|
|
4526
|
+
const g = D("KTooltip"), y = D("KExternalLink"), x = D("KClipboardProvider");
|
|
4527
4527
|
return m(), S("div", Vl, [
|
|
4528
4528
|
s.value ? (m(), S("div", Yl, L(c.value), 1)) : l.value ? l.value ? (m(), j(y, {
|
|
4529
4529
|
key: 2,
|
|
@@ -4651,23 +4651,23 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4651
4651
|
i.value = await t.canCreate();
|
|
4652
4652
|
}), nt(() => ei(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4653
4653
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
|
|
4654
|
-
const l =
|
|
4654
|
+
const l = D("KCard");
|
|
4655
4655
|
return m(), S("div", zl, [
|
|
4656
4656
|
B("div", Ql, [
|
|
4657
4657
|
a.$slots.image ? (m(), S("div", Zl, [
|
|
4658
|
-
|
|
4658
|
+
P(a.$slots, "image", {}, void 0, !0)
|
|
4659
4659
|
])) : M("", !0),
|
|
4660
4660
|
e.title || a.$slots.title ? (m(), S("div", Xl, [
|
|
4661
4661
|
B("h1", {
|
|
4662
4662
|
class: fe(o.value)
|
|
4663
4663
|
}, [
|
|
4664
|
-
|
|
4664
|
+
P(a.$slots, "title", {}, () => [
|
|
4665
4665
|
U(L(e.title), 1)
|
|
4666
4666
|
], !0)
|
|
4667
4667
|
], 2)
|
|
4668
4668
|
])) : M("", !0),
|
|
4669
4669
|
e.description || a.$slots.default ? (m(), S("div", es, [
|
|
4670
|
-
|
|
4670
|
+
P(a.$slots, "default", {}, () => [
|
|
4671
4671
|
B("p", null, L(e.description), 1)
|
|
4672
4672
|
], !0)
|
|
4673
4673
|
])) : M("", !0),
|
|
@@ -4675,17 +4675,17 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4675
4675
|
B("p", null, [
|
|
4676
4676
|
B("b", null, L(T(n)("emptyState.pricingTitle")), 1),
|
|
4677
4677
|
s[2] || (s[2] = U()),
|
|
4678
|
-
|
|
4678
|
+
P(a.$slots, "pricing", {}, () => [
|
|
4679
4679
|
U(L(e.pricing), 1)
|
|
4680
4680
|
], !0)
|
|
4681
4681
|
])
|
|
4682
4682
|
])) : M("", !0)
|
|
4683
4683
|
]),
|
|
4684
4684
|
a.$slots.message ? (m(), S("div", ns, [
|
|
4685
|
-
|
|
4685
|
+
P(a.$slots, "message", {}, void 0, !0)
|
|
4686
4686
|
])) : M("", !0),
|
|
4687
4687
|
r.value || e.learnMore || a.$slots.actions ? (m(), S("div", is, [
|
|
4688
|
-
|
|
4688
|
+
P(a.$slots, "actions", {}, () => [
|
|
4689
4689
|
r.value ? (m(), j(T(mt), {
|
|
4690
4690
|
key: 0,
|
|
4691
4691
|
appearance: "primary",
|
|
@@ -4721,7 +4721,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4721
4721
|
}, {
|
|
4722
4722
|
title: k(() => [
|
|
4723
4723
|
a.$slots[`feature-${d}-icon`] ? (m(), S("div", as, [
|
|
4724
|
-
|
|
4724
|
+
P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4725
4725
|
])) : M("", !0),
|
|
4726
4726
|
B("div", os, L(c.title), 1)
|
|
4727
4727
|
]),
|
|
@@ -4734,7 +4734,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4734
4734
|
}, 1024))), 128))
|
|
4735
4735
|
])) : M("", !0),
|
|
4736
4736
|
a.$slots.bottom ? (m(), S("div", ss, [
|
|
4737
|
-
|
|
4737
|
+
P(a.$slots, "bottom", {}, void 0, !0)
|
|
4738
4738
|
])) : M("", !0)
|
|
4739
4739
|
]);
|
|
4740
4740
|
};
|
|
@@ -4785,7 +4785,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4785
4785
|
})) : (m(), S("span", us, "-"));
|
|
4786
4786
|
};
|
|
4787
4787
|
}
|
|
4788
|
-
}), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector:
|
|
4788
|
+
}), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector: Ps, useValidators: Ds, useSchemaProvider: Us, useTableState: qs } = W;
|
|
4789
4789
|
export {
|
|
4790
4790
|
yt as Appearances,
|
|
4791
4791
|
Yo as ConfigCardDisplay,
|
|
@@ -4829,6 +4829,6 @@ export {
|
|
|
4829
4829
|
Us as useSchemaProvider,
|
|
4830
4830
|
Ns as useStringHelpers,
|
|
4831
4831
|
qs as useTableState,
|
|
4832
|
-
|
|
4833
|
-
|
|
4832
|
+
Ps as useTruncationDetector,
|
|
4833
|
+
Ds as useValidators
|
|
4834
4834
|
};
|