@kong-ui-public/entities-shared 3.33.2-pr.2665.bc08bad0f.0 → 3.33.2-pr.2665.c4241e722.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: {},
|
|
@@ -2595,8 +2595,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2595
2595
|
' | ${o}`;
|
|
2596
2596
|
});
|
|
2597
2597
|
return (o, a) => {
|
|
2598
|
-
const s =
|
|
2599
|
-
return m(), S("div",
|
|
2598
|
+
const s = D("KBadge"), l = D("KCodeBlock");
|
|
2599
|
+
return m(), S("div", Do, [
|
|
2600
2600
|
B("p", null, [
|
|
2601
2601
|
a[1] || (a[1] = U(" The ", -1)),
|
|
2602
2602
|
K(s, null, {
|
|
@@ -2693,7 +2693,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2693
2693
|
}
|
|
2694
2694
|
},
|
|
2695
2695
|
setup(e) {
|
|
2696
|
-
const t = e, n =
|
|
2696
|
+
const t = e, n = De(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = $(() => {
|
|
2697
2697
|
if (!t.record)
|
|
2698
2698
|
return t.record;
|
|
2699
2699
|
let s = t.record;
|
|
@@ -2709,16 +2709,16 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2709
2709
|
"data-testid": `config-card-details-${c}-props`
|
|
2710
2710
|
}, [
|
|
2711
2711
|
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) =>
|
|
2712
|
+
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => P(s.$slots, `config-card-item-${d.key}`, {
|
|
2713
2713
|
key: d.key,
|
|
2714
2714
|
item: d
|
|
2715
2715
|
}, () => [
|
|
2716
2716
|
K(Xt, { item: d }, Se({
|
|
2717
2717
|
label: k(() => [
|
|
2718
|
-
|
|
2718
|
+
P(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2719
2719
|
]),
|
|
2720
2720
|
[d.key]: k(({ rowValue: u }) => [
|
|
2721
|
-
|
|
2721
|
+
P(s.$slots, d.key, {
|
|
2722
2722
|
row: d,
|
|
2723
2723
|
rowValue: u
|
|
2724
2724
|
}, void 0, !0)
|
|
@@ -2728,7 +2728,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2728
2728
|
r(d) ? {
|
|
2729
2729
|
name: "label-tooltip",
|
|
2730
2730
|
fn: k(() => [
|
|
2731
|
-
|
|
2731
|
+
P(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2732
2732
|
]),
|
|
2733
2733
|
key: "0"
|
|
2734
2734
|
} : void 0
|
|
@@ -3077,14 +3077,14 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3077
3077
|
y.value = !1;
|
|
3078
3078
|
}
|
|
3079
3079
|
}), (f, v) => {
|
|
3080
|
-
const b =
|
|
3080
|
+
const b = D("KLabel"), H = D("KSelect"), J = D("KButton"), I = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
|
|
3081
3081
|
return m(), j(G, {
|
|
3082
3082
|
class: "kong-ui-entity-base-config-card",
|
|
3083
3083
|
"title-tag": e.titleTag
|
|
3084
3084
|
}, Se({
|
|
3085
3085
|
actions: k(() => [
|
|
3086
3086
|
B("div", Jo, [
|
|
3087
|
-
|
|
3087
|
+
P(f.$slots, "actions", {}, void 0, !0),
|
|
3088
3088
|
K(b, {
|
|
3089
3089
|
class: "config-format-select-label",
|
|
3090
3090
|
"data-testid": "config-format-select-label"
|
|
@@ -3151,7 +3151,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3151
3151
|
ce(Object.keys(f.$slots), (q) => ({
|
|
3152
3152
|
name: q,
|
|
3153
3153
|
fn: k((Q) => [
|
|
3154
|
-
|
|
3154
|
+
P(f.$slots, q, qt({ record: A.value }, Q), void 0, !0)
|
|
3155
3155
|
])
|
|
3156
3156
|
}))
|
|
3157
3157
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3163,7 +3163,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3163
3163
|
name: "title",
|
|
3164
3164
|
fn: k(() => [
|
|
3165
3165
|
B("span", Wo, [
|
|
3166
|
-
|
|
3166
|
+
P(f.$slots, "title", {}, () => [
|
|
3167
3167
|
U(L(T(r)("baseConfigCard.title")), 1)
|
|
3168
3168
|
], !0)
|
|
3169
3169
|
])
|
|
@@ -3344,8 +3344,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3344
3344
|
formCancel: C,
|
|
3345
3345
|
formSubmit: E
|
|
3346
3346
|
}), (w, _) => {
|
|
3347
|
-
const O =
|
|
3348
|
-
return m(), j(
|
|
3347
|
+
const O = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), H = D("KTabs"), J = D("KSlideout");
|
|
3348
|
+
return m(), j(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3349
3349
|
default: k(() => [
|
|
3350
3350
|
c.value ? (m(), j(O, {
|
|
3351
3351
|
key: 0,
|
|
@@ -3368,7 +3368,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3368
3368
|
onReset: Be(C, ["prevent"]),
|
|
3369
3369
|
onSubmit: Be(E, ["prevent"])
|
|
3370
3370
|
}, [
|
|
3371
|
-
|
|
3371
|
+
P(w.$slots, "default", {}, void 0, !0),
|
|
3372
3372
|
e.errorMessage ? (m(), j(v, {
|
|
3373
3373
|
key: 0,
|
|
3374
3374
|
appearance: "danger",
|
|
@@ -3384,7 +3384,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3384
3384
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3385
3385
|
"data-testid": "form-actions"
|
|
3386
3386
|
}, [
|
|
3387
|
-
|
|
3387
|
+
P(w.$slots, "form-actions", {}, () => [
|
|
3388
3388
|
K(b, {
|
|
3389
3389
|
appearance: "tertiary",
|
|
3390
3390
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
@@ -3461,10 +3461,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3461
3461
|
]),
|
|
3462
3462
|
deck: k(() => [
|
|
3463
3463
|
K(Wn, {
|
|
3464
|
+
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3464
3465
|
"entity-record": r.formFields,
|
|
3465
3466
|
"entity-type": e.entityType,
|
|
3466
3467
|
"geo-server-url": e.config.app === "konnect" ? e.config.geoServerUrl : void 0
|
|
3467
|
-
}, null, 8, ["entity-record", "entity-type", "geo-server-url"])
|
|
3468
|
+
}, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])
|
|
3468
3469
|
]),
|
|
3469
3470
|
_: 1
|
|
3470
3471
|
}, 8, ["tabs"])
|
|
@@ -3476,7 +3477,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3476
3477
|
});
|
|
3477
3478
|
};
|
|
3478
3479
|
}
|
|
3479
|
-
}), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-
|
|
3480
|
+
}), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-b55da9e5"]]), el = ["data-truncate"], tl = /* @__PURE__ */ z({
|
|
3480
3481
|
__name: "EntityBaseTableCell",
|
|
3481
3482
|
props: {
|
|
3482
3483
|
keyName: {
|
|
@@ -3535,7 +3536,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3535
3536
|
}), Zn(() => {
|
|
3536
3537
|
y();
|
|
3537
3538
|
}), (h, A) => {
|
|
3538
|
-
const C =
|
|
3539
|
+
const C = D("KTooltip");
|
|
3539
3540
|
return m(), S("span", {
|
|
3540
3541
|
ref_key: "contentRef",
|
|
3541
3542
|
ref: c,
|
|
@@ -3551,11 +3552,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3551
3552
|
text: x.value ? p.value : ""
|
|
3552
3553
|
}, {
|
|
3553
3554
|
default: k(() => [
|
|
3554
|
-
|
|
3555
|
+
P(h.$slots, "default", {}, void 0, !0)
|
|
3555
3556
|
]),
|
|
3556
3557
|
_: 3
|
|
3557
3558
|
}, 8, ["text"])
|
|
3558
|
-
], 8, el)) :
|
|
3559
|
+
], 8, el)) : P(h.$slots, "default", { key: 1 }, void 0, !0)
|
|
3559
3560
|
], 512);
|
|
3560
3561
|
};
|
|
3561
3562
|
}
|
|
@@ -3778,7 +3779,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3778
3779
|
...n.paginationAttributes
|
|
3779
3780
|
}));
|
|
3780
3781
|
return (f, v) => {
|
|
3781
|
-
const b =
|
|
3782
|
+
const b = D("KTableData"), H = D("KCard");
|
|
3782
3783
|
return m(), j(H, {
|
|
3783
3784
|
class: "kong-ui-entity-base-table",
|
|
3784
3785
|
title: e.title,
|
|
@@ -3823,21 +3824,21 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3823
3824
|
}, Se({
|
|
3824
3825
|
toolbar: k(() => [
|
|
3825
3826
|
B("div", il, [
|
|
3826
|
-
|
|
3827
|
+
P(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3827
3828
|
f.$slots["toolbar-button"] ? (m(), S("div", rl, [
|
|
3828
|
-
|
|
3829
|
+
P(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3829
3830
|
])) : M("", !0)
|
|
3830
3831
|
])
|
|
3831
3832
|
]),
|
|
3832
3833
|
"action-items": k(({ row: J }) => [
|
|
3833
|
-
|
|
3834
|
+
P(f.$slots, "actions", { row: J }, void 0, !0)
|
|
3834
3835
|
]),
|
|
3835
3836
|
_: 2
|
|
3836
3837
|
}, [
|
|
3837
3838
|
f.$slots["empty-state"] ? {
|
|
3838
3839
|
name: "empty-state",
|
|
3839
3840
|
fn: k(() => [
|
|
3840
|
-
|
|
3841
|
+
P(f.$slots, "empty-state", {}, void 0, !0)
|
|
3841
3842
|
]),
|
|
3842
3843
|
key: "0"
|
|
3843
3844
|
} : void 0,
|
|
@@ -3850,7 +3851,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3850
3851
|
tooltip: J.tooltip
|
|
3851
3852
|
}, {
|
|
3852
3853
|
default: k(() => [
|
|
3853
|
-
|
|
3854
|
+
P(f.$slots, I, {
|
|
3854
3855
|
row: R,
|
|
3855
3856
|
rowKey: e.rowKey,
|
|
3856
3857
|
rowValue: G
|
|
@@ -3871,7 +3872,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3871
3872
|
}
|
|
3872
3873
|
]), 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
3874
|
f.$slots["outside-actions"] && T(A) ? (m(), S("div", al, [
|
|
3874
|
-
|
|
3875
|
+
P(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3875
3876
|
])) : M("", !0)
|
|
3876
3877
|
]),
|
|
3877
3878
|
_: 3
|
|
@@ -3929,7 +3930,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3929
3930
|
r("proceed");
|
|
3930
3931
|
};
|
|
3931
3932
|
return (l, c) => {
|
|
3932
|
-
const d =
|
|
3933
|
+
const d = D("KAlert"), u = D("KPrompt");
|
|
3933
3934
|
return m(), j(u, {
|
|
3934
3935
|
"action-button-appearance": "danger",
|
|
3935
3936
|
"action-button-disabled": e.actionPending,
|
|
@@ -3969,7 +3970,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3969
3970
|
} : void 0
|
|
3970
3971
|
]), 1032, ["keypath"]),
|
|
3971
3972
|
i.description || l.$slots.description ? (m(), S("div", sl, [
|
|
3972
|
-
|
|
3973
|
+
P(l.$slots, "description", {}, () => [
|
|
3973
3974
|
B("p", null, L(i.description), 1)
|
|
3974
3975
|
], !0)
|
|
3975
3976
|
])) : M("", !0)
|
|
@@ -4094,7 +4095,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4094
4095
|
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(_);
|
|
4095
4096
|
};
|
|
4096
4097
|
return (w, _) => {
|
|
4097
|
-
const O =
|
|
4098
|
+
const O = D("KInput"), f = D("KButton"), v = D("KSelect");
|
|
4098
4099
|
return e.config.isExactMatch ? (m(), j(O, {
|
|
4099
4100
|
key: 0,
|
|
4100
4101
|
autocomplete: "off",
|
|
@@ -4281,7 +4282,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4281
4282
|
}
|
|
4282
4283
|
};
|
|
4283
4284
|
return (u, p) => {
|
|
4284
|
-
const g =
|
|
4285
|
+
const g = D("KPrompt");
|
|
4285
4286
|
return m(), j(Ht, { to: "body" }, [
|
|
4286
4287
|
K(g, {
|
|
4287
4288
|
"action-button-disabled": a.value,
|
|
@@ -4336,7 +4337,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4336
4337
|
const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4337
4338
|
return be(() => t.authFunction, async () => {
|
|
4338
4339
|
n.value = await t.authFunction();
|
|
4339
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
4340
|
+
}, { immediate: !0 }), (r, o) => i.value ? P(r.$slots, "default", {
|
|
4340
4341
|
key: 0,
|
|
4341
4342
|
isAllowed: n.value
|
|
4342
4343
|
}) : M("", !0);
|
|
@@ -4403,7 +4404,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4403
4404
|
}
|
|
4404
4405
|
},
|
|
4405
4406
|
setup(e) {
|
|
4406
|
-
const t =
|
|
4407
|
+
const t = De(), n = El();
|
|
4407
4408
|
return (i, r) => (m(), S("div", {
|
|
4408
4409
|
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4409
4410
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
@@ -4414,7 +4415,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4414
4415
|
key: 0,
|
|
4415
4416
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4416
4417
|
}, [
|
|
4417
|
-
e.title ? (m(), j(
|
|
4418
|
+
e.title ? (m(), j(Pe(e.titleTag), {
|
|
4418
4419
|
key: 0,
|
|
4419
4420
|
id: T(n),
|
|
4420
4421
|
class: "form-section-title"
|
|
@@ -4425,16 +4426,16 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4425
4426
|
_: 1
|
|
4426
4427
|
}, 8, ["id"])) : M("", !0),
|
|
4427
4428
|
e.description || T(t).description ? (m(), S("div", Ol, [
|
|
4428
|
-
|
|
4429
|
+
P(i.$slots, "description", {}, () => [
|
|
4429
4430
|
B("p", null, L(e.description), 1)
|
|
4430
4431
|
], !0)
|
|
4431
4432
|
])) : M("", !0),
|
|
4432
4433
|
T(t).footer ? (m(), S("div", Ll, [
|
|
4433
|
-
|
|
4434
|
+
P(i.$slots, "footer", {}, void 0, !0)
|
|
4434
4435
|
])) : M("", !0)
|
|
4435
4436
|
], 2)),
|
|
4436
4437
|
B("div", Bl, [
|
|
4437
|
-
|
|
4438
|
+
P(i.$slots, "default", {}, void 0, !0)
|
|
4438
4439
|
])
|
|
4439
4440
|
])
|
|
4440
4441
|
], 10, Il));
|
|
@@ -4442,7 +4443,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4442
4443
|
}), _s = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-b1f74200"]]), Kl = { class: "ff-form-section" }, Nl = { class: "header" }, Ml = {
|
|
4443
4444
|
key: 0,
|
|
4444
4445
|
class: "step"
|
|
4445
|
-
}, jl = { class: "header-content" },
|
|
4446
|
+
}, jl = { class: "header-content" }, Pl = { class: "header-title" }, Dl = {
|
|
4446
4447
|
key: 0,
|
|
4447
4448
|
class: "header-description"
|
|
4448
4449
|
}, Ul = {
|
|
@@ -4456,28 +4457,28 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4456
4457
|
description: { default: "" }
|
|
4457
4458
|
},
|
|
4458
4459
|
setup(e) {
|
|
4459
|
-
const t =
|
|
4460
|
+
const t = De();
|
|
4460
4461
|
return (n, i) => (m(), S("div", Kl, [
|
|
4461
4462
|
B("header", Nl, [
|
|
4462
4463
|
e.step != null ? (m(), S("div", Ml, L(e.step), 1)) : M("", !0),
|
|
4463
4464
|
B("div", jl, [
|
|
4464
|
-
B("h2",
|
|
4465
|
-
|
|
4465
|
+
B("h2", Pl, [
|
|
4466
|
+
P(n.$slots, "title", {}, () => [
|
|
4466
4467
|
U(L(e.title), 1)
|
|
4467
4468
|
], !0)
|
|
4468
4469
|
]),
|
|
4469
|
-
e.description || t.description ? (m(), S("div",
|
|
4470
|
-
|
|
4470
|
+
e.description || t.description ? (m(), S("div", Dl, [
|
|
4471
|
+
P(n.$slots, "description", {}, () => [
|
|
4471
4472
|
U(L(e.description), 1)
|
|
4472
4473
|
], !0)
|
|
4473
4474
|
])) : M("", !0)
|
|
4474
4475
|
]),
|
|
4475
4476
|
t.extra ? (m(), S("div", Ul, [
|
|
4476
|
-
|
|
4477
|
+
P(n.$slots, "extra", {}, void 0, !0)
|
|
4477
4478
|
])) : M("", !0)
|
|
4478
4479
|
]),
|
|
4479
4480
|
B("div", ql, [
|
|
4480
|
-
|
|
4481
|
+
P(n.$slots, "default", {}, void 0, !0)
|
|
4481
4482
|
])
|
|
4482
4483
|
]));
|
|
4483
4484
|
}
|
|
@@ -4523,7 +4524,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4523
4524
|
}, 1800));
|
|
4524
4525
|
};
|
|
4525
4526
|
return (u, p) => {
|
|
4526
|
-
const g =
|
|
4527
|
+
const g = D("KTooltip"), y = D("KExternalLink"), x = D("KClipboardProvider");
|
|
4527
4528
|
return m(), S("div", Vl, [
|
|
4528
4529
|
s.value ? (m(), S("div", Yl, L(c.value), 1)) : l.value ? l.value ? (m(), j(y, {
|
|
4529
4530
|
key: 2,
|
|
@@ -4651,23 +4652,23 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4651
4652
|
i.value = await t.canCreate();
|
|
4652
4653
|
}), nt(() => ei(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4653
4654
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
|
|
4654
|
-
const l =
|
|
4655
|
+
const l = D("KCard");
|
|
4655
4656
|
return m(), S("div", zl, [
|
|
4656
4657
|
B("div", Ql, [
|
|
4657
4658
|
a.$slots.image ? (m(), S("div", Zl, [
|
|
4658
|
-
|
|
4659
|
+
P(a.$slots, "image", {}, void 0, !0)
|
|
4659
4660
|
])) : M("", !0),
|
|
4660
4661
|
e.title || a.$slots.title ? (m(), S("div", Xl, [
|
|
4661
4662
|
B("h1", {
|
|
4662
4663
|
class: fe(o.value)
|
|
4663
4664
|
}, [
|
|
4664
|
-
|
|
4665
|
+
P(a.$slots, "title", {}, () => [
|
|
4665
4666
|
U(L(e.title), 1)
|
|
4666
4667
|
], !0)
|
|
4667
4668
|
], 2)
|
|
4668
4669
|
])) : M("", !0),
|
|
4669
4670
|
e.description || a.$slots.default ? (m(), S("div", es, [
|
|
4670
|
-
|
|
4671
|
+
P(a.$slots, "default", {}, () => [
|
|
4671
4672
|
B("p", null, L(e.description), 1)
|
|
4672
4673
|
], !0)
|
|
4673
4674
|
])) : M("", !0),
|
|
@@ -4675,17 +4676,17 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4675
4676
|
B("p", null, [
|
|
4676
4677
|
B("b", null, L(T(n)("emptyState.pricingTitle")), 1),
|
|
4677
4678
|
s[2] || (s[2] = U()),
|
|
4678
|
-
|
|
4679
|
+
P(a.$slots, "pricing", {}, () => [
|
|
4679
4680
|
U(L(e.pricing), 1)
|
|
4680
4681
|
], !0)
|
|
4681
4682
|
])
|
|
4682
4683
|
])) : M("", !0)
|
|
4683
4684
|
]),
|
|
4684
4685
|
a.$slots.message ? (m(), S("div", ns, [
|
|
4685
|
-
|
|
4686
|
+
P(a.$slots, "message", {}, void 0, !0)
|
|
4686
4687
|
])) : M("", !0),
|
|
4687
4688
|
r.value || e.learnMore || a.$slots.actions ? (m(), S("div", is, [
|
|
4688
|
-
|
|
4689
|
+
P(a.$slots, "actions", {}, () => [
|
|
4689
4690
|
r.value ? (m(), j(T(mt), {
|
|
4690
4691
|
key: 0,
|
|
4691
4692
|
appearance: "primary",
|
|
@@ -4721,7 +4722,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4721
4722
|
}, {
|
|
4722
4723
|
title: k(() => [
|
|
4723
4724
|
a.$slots[`feature-${d}-icon`] ? (m(), S("div", as, [
|
|
4724
|
-
|
|
4725
|
+
P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4725
4726
|
])) : M("", !0),
|
|
4726
4727
|
B("div", os, L(c.title), 1)
|
|
4727
4728
|
]),
|
|
@@ -4734,7 +4735,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4734
4735
|
}, 1024))), 128))
|
|
4735
4736
|
])) : M("", !0),
|
|
4736
4737
|
a.$slots.bottom ? (m(), S("div", ss, [
|
|
4737
|
-
|
|
4738
|
+
P(a.$slots, "bottom", {}, void 0, !0)
|
|
4738
4739
|
])) : M("", !0)
|
|
4739
4740
|
]);
|
|
4740
4741
|
};
|
|
@@ -4785,7 +4786,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4785
4786
|
})) : (m(), S("span", us, "-"));
|
|
4786
4787
|
};
|
|
4787
4788
|
}
|
|
4788
|
-
}), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector:
|
|
4789
|
+
}), { 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
4790
|
export {
|
|
4790
4791
|
yt as Appearances,
|
|
4791
4792
|
Yo as ConfigCardDisplay,
|
|
@@ -4829,6 +4830,6 @@ export {
|
|
|
4829
4830
|
Us as useSchemaProvider,
|
|
4830
4831
|
Ns as useStringHelpers,
|
|
4831
4832
|
qs as useTableState,
|
|
4832
|
-
|
|
4833
|
-
|
|
4833
|
+
Ps as useTruncationDetector,
|
|
4834
|
+
Ds as useValidators
|
|
4834
4835
|
};
|