@kong-ui-public/entities-plugins 8.8.2 → 8.8.3
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-plugins.es.js +232 -232
- package/dist/entities-plugins.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -6,7 +6,7 @@ var Ic = (e, t, n) => t in e ? kc(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var xe = (e, t, n) => Ic(e, typeof t != "symbol" ? t + "" : t, n), Oc = (e, t, n) => t.has(e) || vr("Cannot " + n);
|
|
7
7
|
var yr = (e, t, n) => t.has(e) ? vr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
8
8
|
var vi = (e, t, n) => (Oc(e, t, "access private method"), n);
|
|
9
|
-
import { defineComponent as ue, useCssVars as es, computed as
|
|
9
|
+
import { defineComponent as ue, useCssVars as es, computed as T, resolveComponent as K, openBlock as g, createElementBlock as k, createVNode as j, withCtx as b, createTextVNode as le, toDisplayString as P, createCommentVNode as X, createBlock as N, normalizeClass as ye, ref as z, Teleport as Ra, unref as v, createElementVNode as y, watch as Xe, renderSlot as Me, toValue as Bc, onBeforeMount as Wt, createSlots as gt, renderList as fe, resolveDynamicComponent as ke, withModifiers as Xt, withDirectives as Ue, vShow as Ut, Fragment as pe, withKeys as Mc, inject as ts, useSlots as Un, onMounted as Ln, onUnmounted as xa, normalizeStyle as vt, normalizeProps as ns, guardReactiveProps as is, mergeProps as kt, pushScopeId as Ze, popScopeId as Qe, provide as li, nextTick as Qn, toRefs as Gi, isRef as as, Transition as Sc, resolveDirective as Pi, vModelText as ln, vModelCheckbox as Rc, vModelSelect as rs, vModelDynamic as xc, vModelRadio as Tc, reactive as Fn, mergeModels as br, useModel as jc } from "vue";
|
|
10
10
|
import wr from "axios";
|
|
11
11
|
import { createI18n as Nn, i18nTComponent as os } from "@kong-ui-public/i18n";
|
|
12
12
|
import { BadgeMethodAppearances as Uc } from "@kong/kongponents";
|
|
@@ -260,7 +260,7 @@ function Wc(e, t, n, i = {
|
|
|
260
260
|
n || (n = "1000");
|
|
261
261
|
const { axiosInstance: a } = ja(e.axiosRequestConfig), { i18n: { t: r } } = Yi(), { debounce: o } = Gc(), s = o(async (B) => {
|
|
262
262
|
await R(B);
|
|
263
|
-
}, 200), l = z(!1), u = z(""), c = z(""), p = z([]), A = z([]), m = z(void 0), w =
|
|
263
|
+
}, 200), l = z(!1), u = z(""), c = z(""), p = z([]), A = z([]), m = z(void 0), w = T(() => {
|
|
264
264
|
const B = `${e.apiBaseUrl}${v(t)}`;
|
|
265
265
|
return e.app === "konnect" ? B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : B;
|
|
266
266
|
}), { isValidUuid: C } = ss(), E = async () => {
|
|
@@ -288,18 +288,18 @@ function Wc(e, t, n, i = {
|
|
|
288
288
|
} else {
|
|
289
289
|
const I = [];
|
|
290
290
|
C(B) && i.searchKeys.includes("id") ? I.push((async () => {
|
|
291
|
-
const { data:
|
|
292
|
-
return [
|
|
291
|
+
const { data: x } = await a.get(`${w.value}/${B}`);
|
|
292
|
+
return [x[i.fetchedItemsKey] ?? x];
|
|
293
293
|
})()) : I.push(
|
|
294
|
-
...i.searchKeys.filter((
|
|
295
|
-
const { data: G } = await a.get(`${w.value}?${
|
|
294
|
+
...i.searchKeys.filter((x) => x !== "id").map(async (x) => {
|
|
295
|
+
const { data: G } = await a.get(`${w.value}?${x}=${B}`);
|
|
296
296
|
return G[i.fetchedItemsKey];
|
|
297
297
|
})
|
|
298
298
|
);
|
|
299
299
|
const M = await Promise.all(I), H = /* @__PURE__ */ new Set();
|
|
300
|
-
p.value = [], (O = M == null ? void 0 : M.forEach) == null || O.call(M, (
|
|
300
|
+
p.value = [], (O = M == null ? void 0 : M.forEach) == null || O.call(M, (x) => {
|
|
301
301
|
var G;
|
|
302
|
-
(G =
|
|
302
|
+
(G = x == null ? void 0 : x.forEach) == null || G.call(x, (V) => {
|
|
303
303
|
H.has(V.id) || (H.add(V.id), p.value.push(V));
|
|
304
304
|
});
|
|
305
305
|
});
|
|
@@ -313,8 +313,8 @@ function Wc(e, t, n, i = {
|
|
|
313
313
|
l.value = !0, c.value = "", p.value = (f = m.value) == null ? void 0 : f.filter((I) => {
|
|
314
314
|
var M;
|
|
315
315
|
let H = !1;
|
|
316
|
-
for (const
|
|
317
|
-
const G = typeof I[
|
|
316
|
+
for (const x of i.searchKeys) {
|
|
317
|
+
const G = typeof I[x] == "string" ? (M = I[x]) == null ? void 0 : M.toLowerCase() : I[x];
|
|
318
318
|
G != null && G.includes(B.toLowerCase()) && (H = !0);
|
|
319
319
|
}
|
|
320
320
|
return H;
|
|
@@ -332,7 +332,7 @@ function Wc(e, t, n, i = {
|
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
334
|
function _c(e, t) {
|
|
335
|
-
const n = v(t), i =
|
|
335
|
+
const n = v(t), i = T(
|
|
336
336
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
337
337
|
);
|
|
338
338
|
return i.value.search = "", (a) => `${i.value.href}/${a}`;
|
|
@@ -379,9 +379,9 @@ function eu(e) {
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
function ls(e, t) {
|
|
382
|
-
const n = z(v(e)), i = z(v(t)), a =
|
|
382
|
+
const n = z(v(e)), i = z(v(t)), a = T(
|
|
383
383
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
384
|
-
), r =
|
|
384
|
+
), r = T(
|
|
385
385
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
386
386
|
);
|
|
387
387
|
return (o) => {
|
|
@@ -510,7 +510,7 @@ function cu(e) {
|
|
|
510
510
|
return Xe(e, (a) => {
|
|
511
511
|
a && !i.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, i.value = !0);
|
|
512
512
|
}), {
|
|
513
|
-
isTruncated:
|
|
513
|
+
isTruncated: T(() => t.value < n.value)
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
516
|
function uu() {
|
|
@@ -553,10 +553,10 @@ const Ke = {
|
|
|
553
553
|
}
|
|
554
554
|
},
|
|
555
555
|
setup(e) {
|
|
556
|
-
const t = e, { i18n: { t: n } } = Ke.useI18n(), { convertKeyToTitle: i } = Ke.useStringHelpers(), a =
|
|
556
|
+
const t = e, { i18n: { t: n } } = Ke.useI18n(), { convertKeyToTitle: i } = Ke.useStringHelpers(), a = T(() => t.item.key ?? "json-array-item"), r = T(() => t.item.value ?? t.item), o = T(() => {
|
|
557
557
|
const l = JSON.parse(JSON.stringify(r.value));
|
|
558
558
|
return t.isArrayItem && delete l.name, l;
|
|
559
|
-
}), s =
|
|
559
|
+
}), s = T(() => {
|
|
560
560
|
var l;
|
|
561
561
|
return t.isArrayItem ? (l = r.value) != null && l.name ? i(r.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
562
562
|
});
|
|
@@ -662,7 +662,7 @@ const Ke = {
|
|
|
662
662
|
aa41a894: u.value && s.value ? "100%" : n.slim ? "50%" : "25%",
|
|
663
663
|
aa3d1cde: u.value && s.value ? "100%" : n.slim ? "50%" : "75%"
|
|
664
664
|
}));
|
|
665
|
-
const n = e, i = t, a = Un(), { i18n: { t: r, formatUnixTimeStamp: o } } = Ke.useI18n(), s =
|
|
665
|
+
const n = e, i = t, a = Un(), { i18n: { t: r, formatUnixTimeStamp: o } } = Ke.useI18n(), s = T(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), l = T(() => !!(n.item.tooltip || a["label-tooltip"])), u = T(() => n.item.type === me.Json || n.item.type === me.JsonArray), c = T(() => n.item.type === me.JsonArray), p = T(() => {
|
|
666
666
|
switch (n.item.type) {
|
|
667
667
|
case me.ID:
|
|
668
668
|
return {
|
|
@@ -937,7 +937,7 @@ const Ke = {
|
|
|
937
937
|
es((a) => ({
|
|
938
938
|
"454fa8c4": `${i.value}ch`
|
|
939
939
|
}));
|
|
940
|
-
const t = e, n =
|
|
940
|
+
const t = e, n = T(() => t.entityRecord), i = T(() => {
|
|
941
941
|
var a;
|
|
942
942
|
if (!t.fetcherUrl)
|
|
943
943
|
return 0;
|
|
@@ -2313,7 +2313,7 @@ const eg = { class: "yaml-config" }, Va = /* @__PURE__ */ ue({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
},
|
|
2315
2315
|
setup(e) {
|
|
2316
|
-
const t = e, n =
|
|
2316
|
+
const t = e, n = T(() => {
|
|
2317
2317
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, a]) => a !== null && a !== "" && (Array.isArray(a) ? a.length !== 0 : !0)));
|
|
2318
2318
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : $p.dump(i).trim();
|
|
2319
2319
|
});
|
|
@@ -2388,7 +2388,7 @@ ${c}${l} = [
|
|
|
2388
2388
|
for (const [u, c] of Object.entries(s))
|
|
2389
2389
|
Array.isArray(c) ? l += a(c, u) : typeof c == "object" ? l += i(c, u) : l += n(c, u);
|
|
2390
2390
|
return l;
|
|
2391
|
-
}, o =
|
|
2391
|
+
}, o = T(() => {
|
|
2392
2392
|
var s, l, u, c, p, A, m;
|
|
2393
2393
|
const w = Object.fromEntries(Object.entries(t.entityRecord).filter(([, R]) => R != null)), C = t.entityRecord.config ? Object.fromEntries(Object.entries((s = t.entityRecord) == null ? void 0 : s.config).filter(([, R]) => R != null)) : void 0;
|
|
2394
2394
|
if (C && (w.config = C), Object.keys(w).length === 0)
|
|
@@ -2472,7 +2472,7 @@ ${nt}${S} = {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
},
|
|
2474
2474
|
setup(e) {
|
|
2475
|
-
const t = e, n = Un(), { i18n: { t: i } } = Ke.useI18n(), a = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), r =
|
|
2475
|
+
const t = e, n = Un(), { i18n: { t: i } } = Ke.useI18n(), a = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), r = T(() => {
|
|
2476
2476
|
if (!t.record)
|
|
2477
2477
|
return t.record;
|
|
2478
2478
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
@@ -2592,7 +2592,7 @@ ${nt}${S} = {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
2594
2594
|
setup(e) {
|
|
2595
|
-
const t = e, n =
|
|
2595
|
+
const t = e, n = T(() => {
|
|
2596
2596
|
if (typeof t.size == "number" && t.size > 0)
|
|
2597
2597
|
return `${t.size}px`;
|
|
2598
2598
|
if (typeof t.size == "string") {
|
|
@@ -2601,7 +2601,7 @@ ${nt}${S} = {
|
|
|
2601
2601
|
return `${r}px`;
|
|
2602
2602
|
}
|
|
2603
2603
|
return St;
|
|
2604
|
-
}), i =
|
|
2604
|
+
}), i = T(() => ({
|
|
2605
2605
|
boxSizing: "border-box",
|
|
2606
2606
|
color: t.color,
|
|
2607
2607
|
display: t.display,
|
|
@@ -2692,7 +2692,7 @@ ${nt}${S} = {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
},
|
|
2694
2694
|
setup(e) {
|
|
2695
|
-
const t = e, n =
|
|
2695
|
+
const t = e, n = T(() => {
|
|
2696
2696
|
if (typeof t.size == "number" && t.size > 0)
|
|
2697
2697
|
return `${t.size}px`;
|
|
2698
2698
|
if (typeof t.size == "string") {
|
|
@@ -2701,7 +2701,7 @@ ${nt}${S} = {
|
|
|
2701
2701
|
return `${r}px`;
|
|
2702
2702
|
}
|
|
2703
2703
|
return St;
|
|
2704
|
-
}), i =
|
|
2704
|
+
}), i = T(() => ({
|
|
2705
2705
|
boxSizing: "border-box",
|
|
2706
2706
|
color: t.color,
|
|
2707
2707
|
display: t.display,
|
|
@@ -2792,7 +2792,7 @@ ${nt}${S} = {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
},
|
|
2794
2794
|
setup(e) {
|
|
2795
|
-
const t = e, n =
|
|
2795
|
+
const t = e, n = T(() => {
|
|
2796
2796
|
if (typeof t.size == "number" && t.size > 0)
|
|
2797
2797
|
return `${t.size}px`;
|
|
2798
2798
|
if (typeof t.size == "string") {
|
|
@@ -2801,7 +2801,7 @@ ${nt}${S} = {
|
|
|
2801
2801
|
return `${r}px`;
|
|
2802
2802
|
}
|
|
2803
2803
|
return St;
|
|
2804
|
-
}), i =
|
|
2804
|
+
}), i = T(() => ({
|
|
2805
2805
|
boxSizing: "border-box",
|
|
2806
2806
|
color: t.color,
|
|
2807
2807
|
display: t.display,
|
|
@@ -2892,7 +2892,7 @@ ${nt}${S} = {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
},
|
|
2894
2894
|
setup(e) {
|
|
2895
|
-
const t = e, n =
|
|
2895
|
+
const t = e, n = T(() => {
|
|
2896
2896
|
if (typeof t.size == "number" && t.size > 0)
|
|
2897
2897
|
return `${t.size}px`;
|
|
2898
2898
|
if (typeof t.size == "string") {
|
|
@@ -2901,7 +2901,7 @@ ${nt}${S} = {
|
|
|
2901
2901
|
return `${r}px`;
|
|
2902
2902
|
}
|
|
2903
2903
|
return St;
|
|
2904
|
-
}), i =
|
|
2904
|
+
}), i = T(() => ({
|
|
2905
2905
|
boxSizing: "border-box",
|
|
2906
2906
|
color: t.color,
|
|
2907
2907
|
display: t.display,
|
|
@@ -2992,7 +2992,7 @@ ${nt}${S} = {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
},
|
|
2994
2994
|
setup(e) {
|
|
2995
|
-
const t = e, n =
|
|
2995
|
+
const t = e, n = T(() => {
|
|
2996
2996
|
if (typeof t.size == "number" && t.size > 0)
|
|
2997
2997
|
return `${t.size}px`;
|
|
2998
2998
|
if (typeof t.size == "string") {
|
|
@@ -3001,7 +3001,7 @@ ${nt}${S} = {
|
|
|
3001
3001
|
return `${r}px`;
|
|
3002
3002
|
}
|
|
3003
3003
|
return St;
|
|
3004
|
-
}), i =
|
|
3004
|
+
}), i = T(() => ({
|
|
3005
3005
|
boxSizing: "border-box",
|
|
3006
3006
|
color: t.color,
|
|
3007
3007
|
display: t.display,
|
|
@@ -3187,15 +3187,15 @@ ${nt}${S} = {
|
|
|
3187
3187
|
// the last property displayed
|
|
3188
3188
|
section: ze.Basic
|
|
3189
3189
|
}
|
|
3190
|
-
}, m = z(!1), w = z(!1), C = z(""), E = z({}), S =
|
|
3190
|
+
}, m = z(!1), w = z(!1), C = z(""), E = z({}), S = T(() => {
|
|
3191
3191
|
var f, I, M;
|
|
3192
3192
|
if (!E.value)
|
|
3193
3193
|
return [];
|
|
3194
|
-
const H = [],
|
|
3194
|
+
const H = [], x = Object.keys(E.value).length;
|
|
3195
3195
|
for (const G in E.value) {
|
|
3196
3196
|
const V = (I = (f = a.configSchema) == null ? void 0 : f[G]) == null ? void 0 : I.order, W = (M = A[G]) == null ? void 0 : M.order;
|
|
3197
|
-
let ie =
|
|
3198
|
-
(W || W === 0) && (ie = W === -1 ?
|
|
3197
|
+
let ie = x;
|
|
3198
|
+
(W || W === 0) && (ie = W === -1 ? x + 1 : W), V && (ie = V === -1 ? x + 1 : V), H.push([G, ie]);
|
|
3199
3199
|
}
|
|
3200
3200
|
return H.sort(function(G, V) {
|
|
3201
3201
|
return G[1] - V[1];
|
|
@@ -3212,19 +3212,19 @@ ${nt}${S} = {
|
|
|
3212
3212
|
section: te.section ?? ((F == null ? void 0 : F.section) || ze.Advanced)
|
|
3213
3213
|
};
|
|
3214
3214
|
}).filter((G) => !G.hidden && G.key !== a.pluginConfigKey);
|
|
3215
|
-
}), R =
|
|
3215
|
+
}), R = T(() => {
|
|
3216
3216
|
var f, I;
|
|
3217
3217
|
if (!E.value || !a.pluginConfigKey)
|
|
3218
3218
|
return [];
|
|
3219
|
-
const M = E.value[a.pluginConfigKey] || {}, H = Object.keys(M).length,
|
|
3219
|
+
const M = E.value[a.pluginConfigKey] || {}, H = Object.keys(M).length, x = [];
|
|
3220
3220
|
for (const G in M) {
|
|
3221
3221
|
const V = (I = (f = a.pluginConfigSchema) == null ? void 0 : f[G]) == null ? void 0 : I.order, W = M[G];
|
|
3222
3222
|
let ie = W != null && W !== "" ? H - 1 : H;
|
|
3223
|
-
V && (ie = V === -1 ? H + 1 : V),
|
|
3223
|
+
V && (ie = V === -1 ? H + 1 : V), x.push([G, ie]);
|
|
3224
3224
|
}
|
|
3225
|
-
return
|
|
3225
|
+
return x.sort(function(G, V) {
|
|
3226
3226
|
return G[1] - V[1];
|
|
3227
|
-
}),
|
|
3227
|
+
}), x.map((G) => {
|
|
3228
3228
|
var V;
|
|
3229
3229
|
const W = G[0], ie = M[W], oe = ((V = a.pluginConfigSchema) == null ? void 0 : V[W]) || {};
|
|
3230
3230
|
return {
|
|
@@ -3237,17 +3237,17 @@ ${nt}${S} = {
|
|
|
3237
3237
|
section: ze.Plugin
|
|
3238
3238
|
};
|
|
3239
3239
|
}).filter((G) => !G.hidden);
|
|
3240
|
-
}), B =
|
|
3240
|
+
}), B = T(() => {
|
|
3241
3241
|
var f, I, M, H;
|
|
3242
3242
|
return {
|
|
3243
|
-
basic: (f = S.value) == null ? void 0 : f.filter((
|
|
3244
|
-
advanced: (I = S.value) == null ? void 0 : I.filter((
|
|
3245
|
-
plugin: (H = R.value) == null ? void 0 : H.concat((M = S.value) == null ? void 0 : M.filter((
|
|
3243
|
+
basic: (f = S.value) == null ? void 0 : f.filter((x) => x.section === ze.Basic),
|
|
3244
|
+
advanced: (I = S.value) == null ? void 0 : I.filter((x) => x.section === ze.Advanced),
|
|
3245
|
+
plugin: (H = R.value) == null ? void 0 : H.concat((M = S.value) == null ? void 0 : M.filter((x) => x.section === ze.Plugin))
|
|
3246
3246
|
};
|
|
3247
|
-
}), O =
|
|
3247
|
+
}), O = T(() => {
|
|
3248
3248
|
const f = [];
|
|
3249
3249
|
return B.value.basic.length && f.push("basic"), B.value.advanced.length && f.push("advanced"), B.value.plugin.length && f.push("plugin"), f;
|
|
3250
|
-
}), h =
|
|
3250
|
+
}), h = T(() => {
|
|
3251
3251
|
var f, I;
|
|
3252
3252
|
let M = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3253
3253
|
return a.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((f = a.config) == null ? void 0 : f.controlPlaneId) || "") : a.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (I = a.config) != null && I.workspace ? `/${a.config.workspace}` : "")), M = M.replace(/{id}/gi, a.config.entityId), M;
|
|
@@ -3275,7 +3275,7 @@ ${nt}${S} = {
|
|
|
3275
3275
|
m.value = !1;
|
|
3276
3276
|
}
|
|
3277
3277
|
}), (f, I) => {
|
|
3278
|
-
const M = K("KLabel"), H = K("KSelect"),
|
|
3278
|
+
const M = K("KLabel"), H = K("KSelect"), x = K("KButton"), G = K("KSkeleton"), V = K("KEmptyState"), W = K("KCard");
|
|
3279
3279
|
return g(), N(W, {
|
|
3280
3280
|
class: "kong-ui-entity-base-config-card",
|
|
3281
3281
|
"title-tag": e.titleTag
|
|
@@ -3297,7 +3297,7 @@ ${nt}${S} = {
|
|
|
3297
3297
|
items: u,
|
|
3298
3298
|
onChange: p
|
|
3299
3299
|
}),
|
|
3300
|
-
e.configCardDoc ? (g(), N(
|
|
3300
|
+
e.configCardDoc ? (g(), N(x, {
|
|
3301
3301
|
key: 0,
|
|
3302
3302
|
appearance: "tertiary",
|
|
3303
3303
|
class: "book-icon",
|
|
@@ -3458,7 +3458,7 @@ ${nt}${S} = {
|
|
|
3458
3458
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3459
3459
|
setup(e, { emit: t }) {
|
|
3460
3460
|
var n;
|
|
3461
|
-
const i = t, a = e, r = ci(), { i18n: { t: o } } = Ke.useI18n(), { getMessageFromError: s } = Ke.useErrors(), { axiosInstance: l } = Ke.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = z(!1), c = z(!1), p = z(""), A =
|
|
3461
|
+
const i = t, a = e, r = ci(), { i18n: { t: o } } = Ke.useI18n(), { getMessageFromError: s } = Ke.useErrors(), { axiosInstance: l } = Ke.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = z(!1), c = z(!1), p = z(""), A = T(() => a.canSubmit === !1 || a.isReadonly), m = z(!1), w = T(() => {
|
|
3462
3462
|
var O, h;
|
|
3463
3463
|
let f = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3464
3464
|
return a.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((O = a.config) == null ? void 0 : O.controlPlaneId) || "") : a.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (h = a.config) != null && h.workspace ? `/${a.config.workspace}` : "")), a.editId ? (f = f.replace(/{id}/gi, a.editId), f) : (f = f.replace(/\/{id}/gi, ""), f);
|
|
@@ -3498,7 +3498,7 @@ ${nt}${S} = {
|
|
|
3498
3498
|
u.value = !1;
|
|
3499
3499
|
}
|
|
3500
3500
|
}), (O, h) => {
|
|
3501
|
-
const f = K("KSkeleton"), I = K("KEmptyState"), M = K("KAlert"), H = K("KButton"),
|
|
3501
|
+
const f = K("KSkeleton"), I = K("KEmptyState"), M = K("KAlert"), H = K("KButton"), x = K("KTabs"), G = K("KSlideout");
|
|
3502
3502
|
return g(), N(ke(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3503
3503
|
default: b(() => [
|
|
3504
3504
|
u.value ? (g(), N(f, {
|
|
@@ -3577,7 +3577,7 @@ ${nt}${S} = {
|
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: b(() => [
|
|
3579
3579
|
y("div", null, P(v(o)("baseForm.configuration.message")), 1),
|
|
3580
|
-
j(
|
|
3580
|
+
j(x, {
|
|
3581
3581
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3582
3582
|
tabs: B.value
|
|
3583
3583
|
}, {
|
|
@@ -3627,17 +3627,17 @@ ${nt}${S} = {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
},
|
|
3629
3629
|
setup(e) {
|
|
3630
|
-
const t = e, n =
|
|
3630
|
+
const t = e, n = T(() => {
|
|
3631
3631
|
var E;
|
|
3632
3632
|
return ((E = t.rowEl) == null ? void 0 : E.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3633
|
-
}), i =
|
|
3633
|
+
}), i = T(() => {
|
|
3634
3634
|
var E;
|
|
3635
3635
|
return ((E = n.value) == null ? void 0 : E.querySelector('[data-truncate="true"]')) || null;
|
|
3636
|
-
}), a =
|
|
3636
|
+
}), a = T(() => {
|
|
3637
3637
|
var E, S;
|
|
3638
3638
|
const R = (E = t.rowEl) == null ? void 0 : E.querySelectorAll("td");
|
|
3639
3639
|
return R ? ((S = R[0]) == null ? void 0 : S.getAttribute("data-testid")) === t.keyName : !0;
|
|
3640
|
-
}), r =
|
|
3640
|
+
}), r = T(() => a.value || t.tooltip);
|
|
3641
3641
|
let o;
|
|
3642
3642
|
const s = () => {
|
|
3643
3643
|
o && (o.disconnect(), o = void 0);
|
|
@@ -3649,7 +3649,7 @@ ${nt}${S} = {
|
|
|
3649
3649
|
B -= (parseFloat(O.paddingLeft) || 0) + (parseFloat(O.paddingRight) || 0);
|
|
3650
3650
|
}
|
|
3651
3651
|
c.value = ((S = i.value) == null ? void 0 : S.getBoundingClientRect().width) || 0, p.value = B, A.value = ((R = u.value) == null ? void 0 : R.innerText) || "";
|
|
3652
|
-
}, u = z({}), c = z(0), p = z(0), A = z(""), m =
|
|
3652
|
+
}, u = z({}), c = z(0), p = z(0), A = z(""), m = T(() => [i.value, n.value]), w = Xe(
|
|
3653
3653
|
m,
|
|
3654
3654
|
(E) => {
|
|
3655
3655
|
if (r.value && (s(), "ResizeObserver" in window && window)) {
|
|
@@ -3663,7 +3663,7 @@ ${nt}${S} = {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
},
|
|
3665
3665
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3666
|
-
), C =
|
|
3666
|
+
), C = T(() => r.value ? c.value > p.value : !1);
|
|
3667
3667
|
return Ln(() => {
|
|
3668
3668
|
l();
|
|
3669
3669
|
}), xa(() => {
|
|
@@ -3814,7 +3814,7 @@ ${nt}${S} = {
|
|
|
3814
3814
|
},
|
|
3815
3815
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3816
3816
|
setup(e, { emit: t }) {
|
|
3817
|
-
const n = e, i = t, { i18n: { t: a } } = Ke.useI18n(), r =
|
|
3817
|
+
const n = e, i = t, { i18n: { t: a } } = Ke.useI18n(), r = T(() => {
|
|
3818
3818
|
var f, I;
|
|
3819
3819
|
return typeof n.errorMessage == "string" ? {
|
|
3820
3820
|
hasError: !!n.errorMessage,
|
|
@@ -3825,7 +3825,7 @@ ${nt}${S} = {
|
|
|
3825
3825
|
title: (f = n.errorMessage) == null ? void 0 : f.title,
|
|
3826
3826
|
message: (I = n.errorMessage) == null ? void 0 : I.message
|
|
3827
3827
|
};
|
|
3828
|
-
}), o =
|
|
3828
|
+
}), o = T(() => n.cacheIdentifier || n.preferencesStorageKey), s = (f) => f.hasData || !!n.query, l = T(() => {
|
|
3829
3829
|
const f = [];
|
|
3830
3830
|
return Object.keys(n.tableHeaders).forEach((I) => {
|
|
3831
3831
|
const M = n.tableHeaders[I];
|
|
@@ -3860,11 +3860,11 @@ ${nt}${S} = {
|
|
|
3860
3860
|
i("empty-state-cta-clicked"), w();
|
|
3861
3861
|
}, w = () => {
|
|
3862
3862
|
i("clear-search-input");
|
|
3863
|
-
}, C =
|
|
3863
|
+
}, C = T(() => n.disableRowClick ? void 0 : (f, I) => {
|
|
3864
3864
|
i("click:row", I);
|
|
3865
3865
|
}), E = (f) => {
|
|
3866
3866
|
i("sort", f);
|
|
3867
|
-
}, { setTablePreferences: S, getTablePreferences: R } = Dc(), B = z(R(o.value)), O =
|
|
3867
|
+
}, { setTablePreferences: S, getTablePreferences: R } = Dc(), B = z(R(o.value)), O = T(() => {
|
|
3868
3868
|
const f = R(o.value);
|
|
3869
3869
|
return {
|
|
3870
3870
|
...n.initialFetcherParams,
|
|
@@ -3876,14 +3876,14 @@ ${nt}${S} = {
|
|
|
3876
3876
|
}), o.value && S(o.value, f);
|
|
3877
3877
|
};
|
|
3878
3878
|
return (f, I) => {
|
|
3879
|
-
const M = K("KButton"), H = K("KDropdown"),
|
|
3879
|
+
const M = K("KButton"), H = K("KDropdown"), x = K("KTable"), G = K("KCard");
|
|
3880
3880
|
return g(), N(G, {
|
|
3881
3881
|
class: "kong-ui-entity-base-table",
|
|
3882
3882
|
title: e.title,
|
|
3883
3883
|
"title-tag": e.titleTag
|
|
3884
3884
|
}, {
|
|
3885
3885
|
default: b(() => [
|
|
3886
|
-
j(
|
|
3886
|
+
j(x, {
|
|
3887
3887
|
ref_key: "tableRefs",
|
|
3888
3888
|
ref: c,
|
|
3889
3889
|
"cache-identifier": o.value,
|
|
@@ -4041,7 +4041,7 @@ ${nt}${S} = {
|
|
|
4041
4041
|
},
|
|
4042
4042
|
emits: ["cancel", "proceed"],
|
|
4043
4043
|
setup(e, { emit: t }) {
|
|
4044
|
-
const { i18nT: n } = Ke.useI18n(), i = e, a = t, r =
|
|
4044
|
+
const { i18nT: n } = Ke.useI18n(), i = e, a = t, r = T(() => i.needConfirm ? i.entityName : ""), o = () => {
|
|
4045
4045
|
a("cancel");
|
|
4046
4046
|
}, s = () => {
|
|
4047
4047
|
a("proceed");
|
|
@@ -4158,12 +4158,12 @@ ${nt}${S} = {
|
|
|
4158
4158
|
},
|
|
4159
4159
|
emits: ["update:modelValue"],
|
|
4160
4160
|
setup(e, { emit: t }) {
|
|
4161
|
-
const { i18n: { t: n } } = Ke.useI18n(), i = e, a = t, r = z(!1), o = z({}), s = z(/* @__PURE__ */ new Set()), l =
|
|
4161
|
+
const { i18n: { t: n } } = Ke.useI18n(), i = e, a = t, r = z(!1), o = z({}), s = z(/* @__PURE__ */ new Set()), l = T(() => {
|
|
4162
4162
|
const O = [];
|
|
4163
4163
|
return new URLSearchParams(i.modelValue).forEach((h, f) => {
|
|
4164
4164
|
h !== "" && O.push(f);
|
|
4165
4165
|
}), O;
|
|
4166
|
-
}), u =
|
|
4166
|
+
}), u = T(() => {
|
|
4167
4167
|
const O = i.config.fields;
|
|
4168
4168
|
return Object.keys(O).filter((h) => {
|
|
4169
4169
|
var f;
|
|
@@ -4250,7 +4250,7 @@ ${nt}${S} = {
|
|
|
4250
4250
|
]),
|
|
4251
4251
|
Ue(y("div", uA, [
|
|
4252
4252
|
(g(!0), k(pe, null, fe(u.value, (H) => {
|
|
4253
|
-
var
|
|
4253
|
+
var x, G;
|
|
4254
4254
|
return g(), k("div", {
|
|
4255
4255
|
key: H.value,
|
|
4256
4256
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4277,7 +4277,7 @@ ${nt}${S} = {
|
|
|
4277
4277
|
class: "menu-item-label",
|
|
4278
4278
|
for: w(H.value)
|
|
4279
4279
|
}, P(v(n)("filter.fieldLabel")), 9, fA),
|
|
4280
|
-
((G = (
|
|
4280
|
+
((G = (x = e.config.schema) == null ? void 0 : x[H.value]) == null ? void 0 : G.type) === "select" ? (g(), N(M, {
|
|
4281
4281
|
key: 0,
|
|
4282
4282
|
id: w(H.value),
|
|
4283
4283
|
modelValue: o.value[H.value],
|
|
@@ -4374,9 +4374,9 @@ ${nt}${S} = {
|
|
|
4374
4374
|
},
|
|
4375
4375
|
emits: ["cancel", "proceed"],
|
|
4376
4376
|
setup(e, { emit: t }) {
|
|
4377
|
-
const { i18n: { t: n }, i18nT: i } = Ke.useI18n(), a = e, r = t, o = z(!1), s =
|
|
4377
|
+
const { i18n: { t: n }, i18nT: i } = Ke.useI18n(), a = e, r = t, o = z(!1), s = T(
|
|
4378
4378
|
() => a.action === "enable" ? n("toggleModal.enable.title", { entityType: a.entityType }) : n("toggleModal.disable.title", { entityType: a.entityType })
|
|
4379
|
-
), l =
|
|
4379
|
+
), l = T(
|
|
4380
4380
|
() => a.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4381
4381
|
), u = () => r("cancel"), c = async () => {
|
|
4382
4382
|
if (a.onConfirm) {
|
|
@@ -4443,7 +4443,7 @@ ${nt}${S} = {
|
|
|
4443
4443
|
}
|
|
4444
4444
|
},
|
|
4445
4445
|
setup(e) {
|
|
4446
|
-
const t = e, n = z(void 0), i =
|
|
4446
|
+
const t = e, n = z(void 0), i = T(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4447
4447
|
return Xe(() => t.authFunction, async () => {
|
|
4448
4448
|
n.value = await t.authFunction();
|
|
4449
4449
|
}, { immediate: !0 }), (a, r) => i.value ? Me(a.$slots, "default", {
|
|
@@ -9708,7 +9708,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9708
9708
|
}
|
|
9709
9709
|
},
|
|
9710
9710
|
setup(e) {
|
|
9711
|
-
const t = e, n =
|
|
9711
|
+
const t = e, n = T(() => {
|
|
9712
9712
|
if (typeof t.size == "number" && t.size > 0)
|
|
9713
9713
|
return `${t.size}px`;
|
|
9714
9714
|
if (typeof t.size == "string") {
|
|
@@ -9717,7 +9717,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9717
9717
|
return `${r}px`;
|
|
9718
9718
|
}
|
|
9719
9719
|
return jn;
|
|
9720
|
-
}), i =
|
|
9720
|
+
}), i = T(() => ({
|
|
9721
9721
|
boxSizing: "border-box",
|
|
9722
9722
|
color: t.color,
|
|
9723
9723
|
display: t.display,
|
|
@@ -9808,7 +9808,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9808
9808
|
}
|
|
9809
9809
|
},
|
|
9810
9810
|
setup(e) {
|
|
9811
|
-
const t = e, n =
|
|
9811
|
+
const t = e, n = T(() => {
|
|
9812
9812
|
if (typeof t.size == "number" && t.size > 0)
|
|
9813
9813
|
return `${t.size}px`;
|
|
9814
9814
|
if (typeof t.size == "string") {
|
|
@@ -9817,7 +9817,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9817
9817
|
return `${r}px`;
|
|
9818
9818
|
}
|
|
9819
9819
|
return jn;
|
|
9820
|
-
}), i =
|
|
9820
|
+
}), i = T(() => ({
|
|
9821
9821
|
boxSizing: "border-box",
|
|
9822
9822
|
color: t.color,
|
|
9823
9823
|
display: t.display,
|
|
@@ -9908,7 +9908,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9908
9908
|
}
|
|
9909
9909
|
},
|
|
9910
9910
|
setup(e) {
|
|
9911
|
-
const t = e, n =
|
|
9911
|
+
const t = e, n = T(() => {
|
|
9912
9912
|
if (typeof t.size == "number" && t.size > 0)
|
|
9913
9913
|
return `${t.size}px`;
|
|
9914
9914
|
if (typeof t.size == "string") {
|
|
@@ -9917,7 +9917,7 @@ const O0 = /* @__PURE__ */ Re(E0, [["render", I0], ["__scopeId", "data-v-6f4089b
|
|
|
9917
9917
|
return `${r}px`;
|
|
9918
9918
|
}
|
|
9919
9919
|
return jn;
|
|
9920
|
-
}), i =
|
|
9920
|
+
}), i = T(() => ({
|
|
9921
9921
|
boxSizing: "border-box",
|
|
9922
9922
|
color: t.color,
|
|
9923
9923
|
display: t.display,
|
|
@@ -10211,7 +10211,7 @@ function sw(e, t, n, i, a, r) {
|
|
|
10211
10211
|
}
|
|
10212
10212
|
const tc = /* @__PURE__ */ Re(nw, [["render", sw], ["__scopeId", "data-v-dd2fda9e"]]);
|
|
10213
10213
|
function lw(e) {
|
|
10214
|
-
const t = z([]), n = z(null), i = (C) => pn(C) ? An[C] != null ? An[C] : (console.warn(`'${C}' is not a validator function!`), null) : C, a =
|
|
10214
|
+
const t = z([]), n = z(null), i = (C) => pn(C) ? An[C] != null ? An[C] : (console.warn(`'${C}' is not a validator function!`), null) : C, a = T({
|
|
10215
10215
|
get() {
|
|
10216
10216
|
var C, E;
|
|
10217
10217
|
let S;
|
|
@@ -10236,8 +10236,8 @@ function lw(e) {
|
|
|
10236
10236
|
B.push(f(a.value, e.schema, (I = e.model) == null ? void 0 : I.value));
|
|
10237
10237
|
else {
|
|
10238
10238
|
const H = f(a.value, e.schema, (M = e.model) == null ? void 0 : M.value);
|
|
10239
|
-
H && je(H.then) ? H.then((
|
|
10240
|
-
|
|
10239
|
+
H && je(H.then) ? H.then((x) => {
|
|
10240
|
+
x && (t.value = t.value.concat(x));
|
|
10241
10241
|
const G = t.value.length === 0;
|
|
10242
10242
|
e.emitValidated && e.emitValidated({ isValid: G, errors: t.value, field: e.schema });
|
|
10243
10243
|
}) : H && (B = B.concat(H));
|
|
@@ -10349,7 +10349,7 @@ const $i = {
|
|
|
10349
10349
|
t({
|
|
10350
10350
|
clearValidationErrors: u
|
|
10351
10351
|
});
|
|
10352
|
-
const p =
|
|
10352
|
+
const p = T(() => {
|
|
10353
10353
|
var B;
|
|
10354
10354
|
const O = (B = i.schema) == null ? void 0 : B.inputType.toLowerCase();
|
|
10355
10355
|
return O === "string" ? "text" : O === "datetime" ? "datetime-local" : O || "text";
|
|
@@ -12864,7 +12864,7 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
12864
12864
|
setup(e) {
|
|
12865
12865
|
var t;
|
|
12866
12866
|
li(ht, (t = Un()) == null ? void 0 : t[Qt]);
|
|
12867
|
-
const { t: n, te: i } = Nn("en-us", ea), a = e, r =
|
|
12867
|
+
const { t: n, te: i } = Nn("en-us", ea), a = e, r = T(() => a.formModel.id && a.isEditing || !a.isEditing), o = T(() => {
|
|
12868
12868
|
const s = a.formSchema;
|
|
12869
12869
|
return s.fields.map((l) => {
|
|
12870
12870
|
const u = `post-function.${l.model}`;
|
|
@@ -12907,7 +12907,7 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
12907
12907
|
setup(e) {
|
|
12908
12908
|
var t;
|
|
12909
12909
|
li(ht, (t = Un()) == null ? void 0 : t[Qt]);
|
|
12910
|
-
const { t: n, te: i } = Nn("en-us", ea), a = e, r =
|
|
12910
|
+
const { t: n, te: i } = Nn("en-us", ea), a = e, r = T(() => a.formModel.id && a.isEditing || !a.isEditing), o = T(() => {
|
|
12911
12911
|
const s = a.formSchema;
|
|
12912
12912
|
return s.fields.map((l) => {
|
|
12913
12913
|
const u = `exit-transformer.${l.model}`;
|
|
@@ -13044,14 +13044,14 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
13044
13044
|
setup(e) {
|
|
13045
13045
|
var t;
|
|
13046
13046
|
li(ht, (t = Un()) == null ? void 0 : t[Qt]);
|
|
13047
|
-
const n = e, i = z("zeroSsl"), a = z("shm"), r =
|
|
13047
|
+
const n = e, i = z("zeroSsl"), a = z("shm"), r = T(() => {
|
|
13048
13048
|
var f;
|
|
13049
13049
|
const I = {};
|
|
13050
13050
|
if ((f = n.formSchema) != null && f.fields)
|
|
13051
13051
|
for (const M of n.formSchema.fields)
|
|
13052
13052
|
I[M.model] = M;
|
|
13053
13053
|
return I;
|
|
13054
|
-
}), o =
|
|
13054
|
+
}), o = T(() => {
|
|
13055
13055
|
var f;
|
|
13056
13056
|
const I = Lt(jk);
|
|
13057
13057
|
for (const M of I.fields) {
|
|
@@ -13059,7 +13059,7 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
13059
13059
|
M.help === void 0 && typeof H == "string" && (M.help = H);
|
|
13060
13060
|
}
|
|
13061
13061
|
return I;
|
|
13062
|
-
}), s =
|
|
13062
|
+
}), s = T(() => {
|
|
13063
13063
|
var f;
|
|
13064
13064
|
const I = Lt(Uk);
|
|
13065
13065
|
for (const M of I.fields) {
|
|
@@ -13067,7 +13067,7 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
13067
13067
|
M.help === void 0 && typeof H == "string" && (M.help = H);
|
|
13068
13068
|
}
|
|
13069
13069
|
return I;
|
|
13070
|
-
}), l =
|
|
13070
|
+
}), l = T(() => {
|
|
13071
13071
|
var f;
|
|
13072
13072
|
const I = Lt(Lk);
|
|
13073
13073
|
for (const M of I.fields) {
|
|
@@ -13075,25 +13075,25 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
13075
13075
|
M.help === void 0 && typeof H == "string" && (M.help = H);
|
|
13076
13076
|
}
|
|
13077
13077
|
return I;
|
|
13078
|
-
}), u =
|
|
13078
|
+
}), u = T(() => ({
|
|
13079
13079
|
fields: n.formSchema.fields.filter((f) => !f.model.startsWith("config") && f.model !== "tags")
|
|
13080
|
-
})), c =
|
|
13080
|
+
})), c = T(() => ({
|
|
13081
13081
|
fields: o.value.fields.filter(
|
|
13082
13082
|
(f) => !s.value.fields.some((I) => I.model === f.model) && !l.value.fields.some((I) => I.model === f.model)
|
|
13083
13083
|
)
|
|
13084
|
-
})), p =
|
|
13084
|
+
})), p = T(() => ({
|
|
13085
13085
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage") && !f.model.startsWith("config-storage_config-consul") && !f.model.startsWith("config-storage_config-redis") && !f.model.startsWith("config-storage_config-shm") && !f.model.startsWith("config-storage_config-vault"))
|
|
13086
|
-
})), A =
|
|
13086
|
+
})), A = T(() => ({
|
|
13087
13087
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-consul"))
|
|
13088
|
-
})), m =
|
|
13088
|
+
})), m = T(() => ({
|
|
13089
13089
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-redis"))
|
|
13090
|
-
})), w =
|
|
13090
|
+
})), w = T(() => ({
|
|
13091
13091
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-shm"))
|
|
13092
|
-
})), C =
|
|
13092
|
+
})), C = T(() => ({
|
|
13093
13093
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-vault"))
|
|
13094
|
-
})), E =
|
|
13094
|
+
})), E = T(() => ({
|
|
13095
13095
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config") && !c.value.fields.filter((I) => I.model === f.model).length && !p.value.fields.filter((I) => I.model === f.model).length || f.model === "tags")
|
|
13096
|
-
})), S =
|
|
13096
|
+
})), S = T(() => n.formModel.id && n.isEditing || !n.isEditing), R = [
|
|
13097
13097
|
{
|
|
13098
13098
|
hash: "#general",
|
|
13099
13099
|
title: "General"
|
|
@@ -13238,7 +13238,7 @@ const Mk = /* @__PURE__ */ Re(gk, [["render", Bk], ["__scopeId", "data-v-bb72c68
|
|
|
13238
13238
|
]);
|
|
13239
13239
|
};
|
|
13240
13240
|
}
|
|
13241
|
-
}), Zk = /* @__PURE__ */ Re(Jk, [["__scopeId", "data-v-bb5a3a33"]]), gc = (e) => (Ze("data-v-
|
|
13241
|
+
}), Zk = /* @__PURE__ */ Re(Jk, [["__scopeId", "data-v-bb5a3a33"]]), gc = (e) => (Ze("data-v-3840f6a9"), e = e(), Qe(), e), Qk = { class: "rla-form-basic-fields" }, Wk = { class: "rla-form-request-limits-subtitle" }, _k = { class: "rla-form-request-limits-content" }, $k = { class: "rla-form-window-type" }, eI = ["innerHTML"], tI = { class: "rla-form-window-type-radios" }, nI = { class: "rla-form-request-limits-items" }, iI = { class: "rla-form-request-limits-row" }, aI = ["id"], rI = { class: "rla-form-request-limits-actions" }, oI = {
|
|
13242
13242
|
key: 0,
|
|
13243
13243
|
class: "rla-form-request-limits-examples"
|
|
13244
13244
|
}, sI = { class: "rla-form-request-limits-examples-badges" }, lI = /* @__PURE__ */ gc(() => /* @__PURE__ */ y("br", null, null, -1)), cI = ["innerHTML"], uI = {
|
|
@@ -13314,15 +13314,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13314
13314
|
]
|
|
13315
13315
|
}, i = /* @__PURE__ */ new Set([
|
|
13316
13316
|
"selectionGroup",
|
|
13317
|
-
...["identifier", "limit", "window_size", "error_code", "error_message"].map((
|
|
13318
|
-
]), a = (
|
|
13319
|
-
var
|
|
13320
|
-
const V = (G = (
|
|
13317
|
+
...["identifier", "limit", "window_size", "error_code", "error_message"].map((x) => `config-${x}`)
|
|
13318
|
+
]), a = (x) => x === void 0 ? !1 : i.has(x), { t: r } = Nn("en-us", ea), o = e, s = T(() => {
|
|
13319
|
+
var x, G;
|
|
13320
|
+
const V = (G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.find((W) => W.type === "selectionGroup" && W.model === "selectionGroup");
|
|
13321
13321
|
if (V)
|
|
13322
13322
|
return { fields: [V] };
|
|
13323
|
-
}), l =
|
|
13324
|
-
var
|
|
13325
|
-
const V = ((G = (
|
|
13323
|
+
}), l = T(() => {
|
|
13324
|
+
var x, G;
|
|
13325
|
+
const V = ((G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.filter((F) => !a(F.model))) ?? [], W = [], ie = [], oe = [];
|
|
13326
13326
|
let te = !1;
|
|
13327
13327
|
for (const F of V) {
|
|
13328
13328
|
const J = F.model;
|
|
@@ -13339,32 +13339,32 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13339
13339
|
redis: { fields: ie },
|
|
13340
13340
|
afterStrategy: { fields: oe }
|
|
13341
13341
|
};
|
|
13342
|
-
}), u =
|
|
13343
|
-
const
|
|
13344
|
-
return Object.prototype.hasOwnProperty.call(n,
|
|
13345
|
-
}), c =
|
|
13346
|
-
var
|
|
13347
|
-
return (G = (
|
|
13348
|
-
}), p =
|
|
13342
|
+
}), u = T(() => {
|
|
13343
|
+
const x = o.formModel["config-window_type"];
|
|
13344
|
+
return Object.prototype.hasOwnProperty.call(n, x) ? n[x] : [];
|
|
13345
|
+
}), c = T(() => {
|
|
13346
|
+
var x, G;
|
|
13347
|
+
return (G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.find((V) => V.model === "config-identifier");
|
|
13348
|
+
}), p = T(
|
|
13349
13349
|
() => {
|
|
13350
|
-
var
|
|
13351
|
-
return (((V = (G = (
|
|
13350
|
+
var x, G, V;
|
|
13351
|
+
return (((V = (G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.find((W) => W.model === "config-identifier")) == null ? void 0 : V.values) ?? []).map((W) => ({
|
|
13352
13352
|
label: r(`rla.identifiers.options.${W}`),
|
|
13353
13353
|
value: W
|
|
13354
13354
|
}));
|
|
13355
13355
|
}
|
|
13356
|
-
), A = z(), m = z(!0), w =
|
|
13356
|
+
), A = z(), m = z(!0), w = T(
|
|
13357
13357
|
() => {
|
|
13358
|
-
var
|
|
13359
|
-
return o.formModel["config-window_type"] ?? ((V = (G = (
|
|
13358
|
+
var x, G, V;
|
|
13359
|
+
return o.formModel["config-window_type"] ?? ((V = (G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.find((W) => W.model === "config-window_type")) == null ? void 0 : V.default);
|
|
13360
13360
|
}
|
|
13361
|
-
), C =
|
|
13362
|
-
var
|
|
13363
|
-
const te = (V = (G = (
|
|
13361
|
+
), C = T(() => {
|
|
13362
|
+
var x, G, V, W, ie, oe;
|
|
13363
|
+
const te = (V = (G = (x = o.formSchema) == null ? void 0 : x.fields) == null ? void 0 : G.find((F) => F.model === "config-window_type")) == null ? void 0 : V.default;
|
|
13364
13364
|
return (((oe = (ie = (W = o.formSchema) == null ? void 0 : W.fields) == null ? void 0 : ie.find((F) => F.model === "config-window_type")) == null ? void 0 : oe.values) ?? []).sort((F, J) => F === te ? -1 : J === te ? 1 : 0);
|
|
13365
|
-
}), E =
|
|
13366
|
-
var
|
|
13367
|
-
const G = (
|
|
13365
|
+
}), E = T(() => {
|
|
13366
|
+
var x;
|
|
13367
|
+
const G = (x = o.formModel["config-limit"]) == null ? void 0 : x.map((V, W) => {
|
|
13368
13368
|
var ie, oe;
|
|
13369
13369
|
return {
|
|
13370
13370
|
limit: V,
|
|
@@ -13372,65 +13372,65 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13372
13372
|
};
|
|
13373
13373
|
});
|
|
13374
13374
|
return !Array.isArray(G) || G.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : G;
|
|
13375
|
-
}), S =
|
|
13375
|
+
}), S = T(
|
|
13376
13376
|
() => {
|
|
13377
|
-
var
|
|
13378
|
-
return ((
|
|
13377
|
+
var x, G, V, W;
|
|
13378
|
+
return ((x = o.formModel) == null ? void 0 : x["config-identifier"]) ?? ((W = (V = (G = o.formSchema) == null ? void 0 : G.fields) == null ? void 0 : V.find((ie) => ie.model === "config-identifier")) == null ? void 0 : W.default);
|
|
13379
13379
|
}
|
|
13380
|
-
), R =
|
|
13380
|
+
), R = T(
|
|
13381
13381
|
() => {
|
|
13382
|
-
var
|
|
13383
|
-
return ((
|
|
13382
|
+
var x, G, V, W;
|
|
13383
|
+
return ((x = o.formModel) == null ? void 0 : x["config-error_code"]) ?? ((W = (V = (G = o.formSchema) == null ? void 0 : G.fields) == null ? void 0 : V.find((ie) => ie.model === "config-error_code")) == null ? void 0 : W.default);
|
|
13384
13384
|
}
|
|
13385
|
-
), B =
|
|
13385
|
+
), B = T(
|
|
13386
13386
|
() => {
|
|
13387
|
-
var
|
|
13388
|
-
return ((
|
|
13387
|
+
var x, G, V, W;
|
|
13388
|
+
return ((x = o.formModel) == null ? void 0 : x["config-error_message"]) ?? ((W = (V = (G = o.formSchema) == null ? void 0 : G.fields) == null ? void 0 : V.find((ie) => ie.model === "config-error_message")) == null ? void 0 : W.default);
|
|
13389
13389
|
}
|
|
13390
|
-
), O = (
|
|
13390
|
+
), O = (x, G) => {
|
|
13391
13391
|
if (G === A.value) {
|
|
13392
13392
|
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Qn(() => {
|
|
13393
13393
|
A.value = void 0;
|
|
13394
13394
|
});
|
|
13395
13395
|
return;
|
|
13396
13396
|
}
|
|
13397
|
-
o.onModelUpdated([
|
|
13397
|
+
o.onModelUpdated([x.config.limit], "config-limit"), o.onModelUpdated([x.config.window_size], "config-window_size"), Qn(() => {
|
|
13398
13398
|
A.value = G;
|
|
13399
13399
|
});
|
|
13400
|
-
}, h = (
|
|
13401
|
-
A.value !== void 0 && (A.value = void 0), o.onModelUpdated(
|
|
13402
|
-
}, f = (
|
|
13400
|
+
}, h = (x) => {
|
|
13401
|
+
A.value !== void 0 && (A.value = void 0), x !== null && o.onModelUpdated(x.toString(), "config-window_type");
|
|
13402
|
+
}, f = (x, G) => {
|
|
13403
13403
|
var V;
|
|
13404
13404
|
A.value !== void 0 && (A.value = void 0);
|
|
13405
13405
|
const W = Lt(((V = o.formModel) == null ? void 0 : V["config-limit"]) ?? []);
|
|
13406
|
-
W[
|
|
13407
|
-
}, I = (
|
|
13406
|
+
W[x] = G, o.onModelUpdated(W, "config-limit");
|
|
13407
|
+
}, I = (x, G) => {
|
|
13408
13408
|
var V;
|
|
13409
13409
|
A.value !== void 0 && (A.value = void 0);
|
|
13410
13410
|
const W = Lt(((V = o.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
13411
|
-
W[
|
|
13412
|
-
}, M = (
|
|
13411
|
+
W[x] = G, o.onModelUpdated(W, "config-window_size");
|
|
13412
|
+
}, M = (x) => {
|
|
13413
13413
|
var G, V;
|
|
13414
13414
|
A.value !== void 0 && (A.value = void 0);
|
|
13415
13415
|
const W = Lt(((G = o.formModel) == null ? void 0 : G["config-limit"]) ?? []), ie = Lt(((V = o.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
13416
|
-
W.length === 0 && W.push(void 0), ie.length === 0 && ie.push(void 0), W.splice(
|
|
13417
|
-
}, H = (
|
|
13416
|
+
W.length === 0 && W.push(void 0), ie.length === 0 && ie.push(void 0), W.splice(x + 1, 0, void 0), ie.splice(x + 1, 0, void 0), o.onModelUpdated(W, "config-limit"), o.onModelUpdated(ie, "config-window_size");
|
|
13417
|
+
}, H = (x) => {
|
|
13418
13418
|
var G, V;
|
|
13419
13419
|
if (E.value.length > 1) {
|
|
13420
13420
|
A.value !== void 0 && (A.value = void 0);
|
|
13421
13421
|
const W = Lt(((G = o.formModel) == null ? void 0 : G["config-limit"]) ?? []), ie = Lt(((V = o.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
13422
|
-
W.length === 0 && W.push(void 0), ie.length === 0 && ie.push(void 0), W.splice(
|
|
13422
|
+
W.length === 0 && W.push(void 0), ie.length === 0 && ie.push(void 0), W.splice(x, 1), ie.splice(x, 1), o.onModelUpdated(W, "config-limit"), o.onModelUpdated(ie, "config-window_size");
|
|
13423
13423
|
}
|
|
13424
13424
|
};
|
|
13425
|
-
return (
|
|
13425
|
+
return (x, G) => {
|
|
13426
13426
|
const V = K("VueFormGenerator"), W = K("KLabel"), ie = K("KRadio"), oe = K("KInput"), te = K("KButton"), F = K("KBadge"), J = K("KTooltip"), U = K("KCard"), Z = K("KSelect"), ne = K("KCollapse");
|
|
13427
13427
|
return g(), k(pe, null, [
|
|
13428
13428
|
y("div", Qk, [
|
|
13429
13429
|
j(V, {
|
|
13430
|
-
model:
|
|
13431
|
-
options:
|
|
13430
|
+
model: x.formModel,
|
|
13431
|
+
options: x.formOptions,
|
|
13432
13432
|
schema: s.value,
|
|
13433
|
-
onModelUpdated: G[0] || (G[0] = (Y, ce) =>
|
|
13433
|
+
onModelUpdated: G[0] || (G[0] = (Y, ce) => x.onModelUpdated(Y, ce))
|
|
13434
13434
|
}, null, 8, ["model", "options", "schema"]),
|
|
13435
13435
|
j(U, { class: "rla-form-request-limits" }, {
|
|
13436
13436
|
title: b(() => [
|
|
@@ -13613,13 +13613,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13613
13613
|
"model-value": R.value && R.value.toString(),
|
|
13614
13614
|
placeholder: v(r)("rla.error_message.code_placeholder"),
|
|
13615
13615
|
type: "number",
|
|
13616
|
-
"onUpdate:modelValue": G[3] || (G[3] = (Y) =>
|
|
13616
|
+
"onUpdate:modelValue": G[3] || (G[3] = (Y) => x.onModelUpdated(Number.parseInt(Y), "config-error_code"))
|
|
13617
13617
|
}, null, 8, ["model-value", "placeholder"]),
|
|
13618
13618
|
dI,
|
|
13619
13619
|
j(oe, {
|
|
13620
13620
|
"model-value": B.value,
|
|
13621
13621
|
placeholder: v(r)("rla.error_message.message_placeholder"),
|
|
13622
|
-
"onUpdate:modelValue": G[4] || (G[4] = (Y) =>
|
|
13622
|
+
"onUpdate:modelValue": G[4] || (G[4] = (Y) => x.onModelUpdated(Y, "config-error_message"))
|
|
13623
13623
|
}, null, 8, ["model-value", "placeholder"])
|
|
13624
13624
|
])
|
|
13625
13625
|
])
|
|
@@ -13631,31 +13631,31 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13631
13631
|
}, {
|
|
13632
13632
|
default: b(() => [
|
|
13633
13633
|
j(V, {
|
|
13634
|
-
model:
|
|
13635
|
-
options:
|
|
13634
|
+
model: x.formModel,
|
|
13635
|
+
options: x.formOptions,
|
|
13636
13636
|
schema: l.value.endsWithStrategy,
|
|
13637
|
-
onModelUpdated: G[5] || (G[5] = (Y, ce) =>
|
|
13637
|
+
onModelUpdated: G[5] || (G[5] = (Y, ce) => x.onModelUpdated(Y, ce))
|
|
13638
13638
|
}, null, 8, ["model", "options", "schema"]),
|
|
13639
|
-
|
|
13639
|
+
x.formModel["config-strategy"] === "redis" ? (g(), N(U, {
|
|
13640
13640
|
key: 0,
|
|
13641
13641
|
class: "rla-form-redis-card",
|
|
13642
13642
|
title: v(r)("rla.redis.title")
|
|
13643
13643
|
}, {
|
|
13644
13644
|
default: b(() => [
|
|
13645
13645
|
j(V, {
|
|
13646
|
-
model:
|
|
13647
|
-
options:
|
|
13646
|
+
model: x.formModel,
|
|
13647
|
+
options: x.formOptions,
|
|
13648
13648
|
schema: l.value.redis,
|
|
13649
|
-
onModelUpdated: G[6] || (G[6] = (Y, ce) =>
|
|
13649
|
+
onModelUpdated: G[6] || (G[6] = (Y, ce) => x.onModelUpdated(Y, ce))
|
|
13650
13650
|
}, null, 8, ["model", "options", "schema"])
|
|
13651
13651
|
]),
|
|
13652
13652
|
_: 1
|
|
13653
13653
|
}, 8, ["title"])) : X("", !0),
|
|
13654
13654
|
j(V, {
|
|
13655
|
-
model:
|
|
13656
|
-
options:
|
|
13655
|
+
model: x.formModel,
|
|
13656
|
+
options: x.formOptions,
|
|
13657
13657
|
schema: l.value.afterStrategy,
|
|
13658
|
-
onModelUpdated: G[7] || (G[7] = (Y, ce) =>
|
|
13658
|
+
onModelUpdated: G[7] || (G[7] = (Y, ce) => x.onModelUpdated(Y, ce))
|
|
13659
13659
|
}, null, 8, ["model", "options", "schema"])
|
|
13660
13660
|
]),
|
|
13661
13661
|
_: 1
|
|
@@ -13663,7 +13663,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13663
13663
|
], 64);
|
|
13664
13664
|
};
|
|
13665
13665
|
}
|
|
13666
|
-
}), gI = /* @__PURE__ */ Re(pI, [["__scopeId", "data-v-
|
|
13666
|
+
}), gI = /* @__PURE__ */ Re(pI, [["__scopeId", "data-v-3840f6a9"]]), AI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13667
13667
|
__proto__: null,
|
|
13668
13668
|
ACMEForm: Zk,
|
|
13669
13669
|
ExitTransformer: Tk,
|
|
@@ -14459,11 +14459,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14459
14459
|
}, r = () => ["created_at", "updated_at", "id"], o = (h, f, I) => {
|
|
14460
14460
|
let M = {};
|
|
14461
14461
|
(f || h) && (M = f || (h.fields ? h.fields : h));
|
|
14462
|
-
const H = r().concat(h.blacklist ? h.blacklist : []),
|
|
14463
|
-
G > -1 &&
|
|
14462
|
+
const H = r().concat(h.blacklist ? h.blacklist : []), x = Object.keys(M).filter((te) => !H.includes(te)), G = x.indexOf("comparator");
|
|
14463
|
+
G > -1 && x.splice(G, 1);
|
|
14464
14464
|
let V = { fields: [] };
|
|
14465
14465
|
const W = {};
|
|
14466
|
-
|
|
14466
|
+
x.forEach((te) => {
|
|
14467
14467
|
l(M[te], te, M, W, V, I);
|
|
14468
14468
|
});
|
|
14469
14469
|
const ie = W.name, oe = Ct[ie];
|
|
@@ -14529,14 +14529,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14529
14529
|
helpAsHtml: !0
|
|
14530
14530
|
}
|
|
14531
14531
|
};
|
|
14532
|
-
}, s = (h) => Array.isArray(h.default) || h.default != null && typeof h.default != "object" && h.default !== "function", l = (h, f, I, M, H,
|
|
14532
|
+
}, s = (h) => Array.isArray(h.default) || h.default != null && typeof h.default != "object" && h.default !== "function", l = (h, f, I, M, H, x) => {
|
|
14533
14533
|
const G = s(h);
|
|
14534
|
-
return M[f] = G ? h.default : null, h.id = f, h.model = f, h.fields && h.type === "record" ? c(h, f, I, M, H,
|
|
14535
|
-
}, u = (h, f) => (f && (Object.assign(h, f), f.label && (h.label = f.label)), h), c = (h, f, I, M, H,
|
|
14534
|
+
return M[f] = G ? h.default : null, h.id = f, h.model = f, h.fields && h.type === "record" ? c(h, f, I, M, H, x) : (I[f] = h, O(h, M), x && x[f] && u(I[f], x[f]), H.fields.push(h)), I;
|
|
14535
|
+
}, u = (h, f) => (f && (Object.assign(h, f), f.label && (h.label = f.label)), h), c = (h, f, I, M, H, x) => {
|
|
14536
14536
|
h.fields.forEach((G) => {
|
|
14537
14537
|
Object.keys(G).forEach((V) => {
|
|
14538
14538
|
const W = G[V];
|
|
14539
|
-
I = l(W, f + "-" + V, I, M, H,
|
|
14539
|
+
I = l(W, f + "-" + V, I, M, H, x);
|
|
14540
14540
|
});
|
|
14541
14541
|
});
|
|
14542
14542
|
}, p = (h, f) => {
|
|
@@ -14600,8 +14600,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14600
14600
|
const I = S(h);
|
|
14601
14601
|
Ma.forEach((M) => {
|
|
14602
14602
|
Object.keys(I).forEach((H) => {
|
|
14603
|
-
const
|
|
14604
|
-
f[H] =
|
|
14603
|
+
const x = s(I[H]);
|
|
14604
|
+
f[H] = x ? I[H].default : null;
|
|
14605
14605
|
}), delete f[M];
|
|
14606
14606
|
});
|
|
14607
14607
|
}, B = (h, f) => h.inputType === "hidden" ? "" : n(t(h.label || f.replace(/_/g, " "))), O = (h, f) => {
|
|
@@ -14721,7 +14721,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14721
14721
|
setup(e) {
|
|
14722
14722
|
const t = e, { formatPluginFieldLabel: n } = Ge.usePluginHelpers(), { i18n: { t: i } } = Ge.useI18n(), a = (s) => s.map(
|
|
14723
14723
|
(l) => l.replace(/^[cC]onfig\./, "").split(".").map((u) => n(u)).join(".")
|
|
14724
|
-
).join(", "), r = (s, l) => i(s, { parameters: a(l) }), o =
|
|
14724
|
+
).join(", "), r = (s, l) => i(s, { parameters: a(l) }), o = T(() => {
|
|
14725
14725
|
const s = [];
|
|
14726
14726
|
if (t.rules.atLeastOneOf)
|
|
14727
14727
|
for (const l of t.rules.atLeastOneOf)
|
|
@@ -15374,10 +15374,10 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15374
15374
|
validateStatus: (te) => te === 404 || te >= 200 && te < 300,
|
|
15375
15375
|
// Spread the passed-in config later to allow overriding
|
|
15376
15376
|
...(oe = i.config) == null ? void 0 : oe.axiosRequestConfig
|
|
15377
|
-
}), o = z(!1), s = z(""), l = z(""), u = z(""), c = z(), p =
|
|
15377
|
+
}), o = z(!1), s = z(""), l = z(""), u = z(""), c = z(), p = T(() => {
|
|
15378
15378
|
var te;
|
|
15379
15379
|
return i.config.app === "konnect" ? Qo.list[i.config.app].replace(/{id}/gi, ((te = c.value) == null ? void 0 : te.id) ?? "") : "<not_applicable>";
|
|
15380
|
-
}), A =
|
|
15380
|
+
}), A = T(() => {
|
|
15381
15381
|
if (C && O)
|
|
15382
15382
|
return n("vault_secret_picker.fetch_error.vaults_and_secrets");
|
|
15383
15383
|
if (C)
|
|
@@ -15403,7 +15403,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15403
15403
|
fetchedItemsKey: "data",
|
|
15404
15404
|
searchKeys: ["key"],
|
|
15405
15405
|
exactMatchKey: "key"
|
|
15406
|
-
}), I =
|
|
15406
|
+
}), I = T(() => {
|
|
15407
15407
|
var J;
|
|
15408
15408
|
let te = !1;
|
|
15409
15409
|
const F = ((J = S.value) == null ? void 0 : J.map((U) => (U.prefix === s.value && (te = !0), { label: U.prefix, value: U.prefix, vault: U }))) ?? [];
|
|
@@ -15412,15 +15412,15 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15412
15412
|
value: c.value.prefix,
|
|
15413
15413
|
vault: c.value
|
|
15414
15414
|
}), F;
|
|
15415
|
-
}), M =
|
|
15415
|
+
}), M = T(() => {
|
|
15416
15416
|
var J;
|
|
15417
15417
|
let te = !1;
|
|
15418
15418
|
const F = ((J = f.value) == null ? void 0 : J.map((U) => (U.key === l.value && (te = !0), { label: U.key, value: U.key }))) ?? [];
|
|
15419
15419
|
return !te && l.value && F.push({ label: l.value, value: l.value }), F;
|
|
15420
|
-
}), H =
|
|
15420
|
+
}), H = T(() => {
|
|
15421
15421
|
var te;
|
|
15422
15422
|
return ((te = c == null ? void 0 : c.value) == null ? void 0 : te.name) === "konnect";
|
|
15423
|
-
}),
|
|
15423
|
+
}), x = T(() => !!c.value && !!l.value), G = (te) => te.label ? `${te.label} - (${te.vault.name} - ${te.vault.id})` : te.value, V = (te) => {
|
|
15424
15424
|
var J, U;
|
|
15425
15425
|
let F = `${i.config.apiBaseUrl}${Zo.form[i.config.app].edit}`;
|
|
15426
15426
|
return i.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((J = i.config) == null ? void 0 : J.controlPlaneId) || "") : i.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (U = i.config) != null && U.workspace ? `/${i.config.workspace}` : "")), F.replace(/{id}/gi, te);
|
|
@@ -15466,7 +15466,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15466
15466
|
}, { immediate: !0 }), (te, F) => {
|
|
15467
15467
|
const J = K("KEmptyState"), U = K("KSelect"), Z = K("KInput"), ne = K("KModal");
|
|
15468
15468
|
return g(), N(ne, {
|
|
15469
|
-
"action-button-disabled": !
|
|
15469
|
+
"action-button-disabled": !x.value,
|
|
15470
15470
|
"action-button-text": v(n)("vault_secret_picker.actions.use_key"),
|
|
15471
15471
|
class: "vault-secret-picker",
|
|
15472
15472
|
"data-testid": "vault-secret-picker-modal",
|
|
@@ -15696,7 +15696,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15696
15696
|
}) : a.get(U, { params: J });
|
|
15697
15697
|
}
|
|
15698
15698
|
});
|
|
15699
|
-
const E = z(""), S = z(null), R = z({}), B = Fn({}), O = Fn({}), h =
|
|
15699
|
+
const E = z(""), S = z(null), R = z({}), B = Fn({}), O = Fn({}), h = T(() => {
|
|
15700
15700
|
var F;
|
|
15701
15701
|
return (F = S.value) == null ? void 0 : F.options;
|
|
15702
15702
|
}), f = z(!1), I = z(), M = (F, J) => {
|
|
@@ -15704,7 +15704,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15704
15704
|
}, H = (F) => {
|
|
15705
15705
|
var J;
|
|
15706
15706
|
(J = I.value) == null || J.call(I, F), f.value = !1;
|
|
15707
|
-
},
|
|
15707
|
+
}, x = () => {
|
|
15708
15708
|
var Y, ce;
|
|
15709
15709
|
const F = { ...i.schema }, J = O, U = B, Z = Object.keys(J), ne = {};
|
|
15710
15710
|
if (!l(R.value))
|
|
@@ -15787,7 +15787,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15787
15787
|
Object.assign(O, Z), n("model-updated", {
|
|
15788
15788
|
model: O,
|
|
15789
15789
|
originalModel: B,
|
|
15790
|
-
data:
|
|
15790
|
+
data: x()
|
|
15791
15791
|
});
|
|
15792
15792
|
}, V = (F, J) => {
|
|
15793
15793
|
Object.keys(F).forEach((U) => {
|
|
@@ -15816,7 +15816,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
15816
15816
|
}), n("model-updated", {
|
|
15817
15817
|
model: O,
|
|
15818
15818
|
originalModel: B,
|
|
15819
|
-
data:
|
|
15819
|
+
data: x()
|
|
15820
15820
|
});
|
|
15821
15821
|
}, W = z(!0), ie = () => {
|
|
15822
15822
|
var F;
|
|
@@ -16017,7 +16017,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16017
16017
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
|
|
16018
16018
|
setup(e, { emit: t }) {
|
|
16019
16019
|
var Q;
|
|
16020
|
-
const n = t, i = e, a = ci(), { i18n: { t: r } } = Ge.useI18n(), { customSchemas: o, typedefs: s } = Ge.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: l } = Ge.usePluginHelpers(), { getMessageFromError: u } = Hi(), { capitalize: c } = Fa(), { objectsAreEqual: p } = Fi(), { axiosInstance: A } = hn((Q = i.config) == null ? void 0 : Q.axiosRequestConfig), m = z(!1), w =
|
|
16020
|
+
const n = t, i = e, a = ci(), { i18n: { t: r } } = Ge.useI18n(), { customSchemas: o, typedefs: s } = Ge.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: l } = Ge.usePluginHelpers(), { getMessageFromError: u } = Hi(), { capitalize: c } = Fa(), { objectsAreEqual: p } = Fi(), { axiosInstance: A } = hn((Q = i.config) == null ? void 0 : Q.axiosRequestConfig), m = z(!1), w = T(() => i.pluginId ? Kt.Edit : Kt.Create), C = z(null), E = T(() => !!(i.credential && i.config.entityId)), S = z(null), R = z({}), B = z(!1), O = z(null), h = Fn({
|
|
16021
16021
|
enabled: !0,
|
|
16022
16022
|
protocols: [],
|
|
16023
16023
|
tags: []
|
|
@@ -16043,15 +16043,15 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16043
16043
|
title: r("view_configuration.terraform"),
|
|
16044
16044
|
hash: "#terraform"
|
|
16045
16045
|
});
|
|
16046
|
-
const M = z(""), H =
|
|
16046
|
+
const M = z(""), H = T(() => {
|
|
16047
16047
|
if (E.value) {
|
|
16048
16048
|
let L = qe.form[i.config.app].credential[w.value];
|
|
16049
16049
|
return L = L.replace(/{resourceEndpoint}/gi, W.value), L;
|
|
16050
16050
|
}
|
|
16051
16051
|
return i.config.entityType && i.config.entityId ? qe.form[i.config.app].edit.forEntity.replace(/{entityType}/gi, i.config.entityType).replace(/{entityId}/gi, i.config.entityId) : qe.form[i.config.app].edit.all;
|
|
16052
|
-
}),
|
|
16052
|
+
}), x = () => {
|
|
16053
16053
|
m.value = !m.value;
|
|
16054
|
-
}, G =
|
|
16054
|
+
}, G = T(() => {
|
|
16055
16055
|
var Ie, Ne, ae, be, ve, $, ee, ut;
|
|
16056
16056
|
const L = i.config.entityType === "consumers" && i.config.entityId || ((Ne = (Ie = S.value) == null ? void 0 : Ie.consumer) == null ? void 0 : Ne.id), _ = i.config.entityType === "consumer_groups" && i.config.entityId || ((be = (ae = S.value) == null ? void 0 : ae.consumer_group) == null ? void 0 : be.id), D = i.config.entityType === "services" && i.config.entityId || (($ = (ve = S.value) == null ? void 0 : ve.service) == null ? void 0 : $.id), Ae = i.config.entityType === "routes" && i.config.entityId || ((ut = (ee = S.value) == null ? void 0 : ee.route) == null ? void 0 : ut.id);
|
|
16057
16057
|
if (!(L || _ || D || Ae))
|
|
@@ -16155,7 +16155,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16155
16155
|
}
|
|
16156
16156
|
},
|
|
16157
16157
|
tags: s.tags
|
|
16158
|
-
}), W =
|
|
16158
|
+
}), W = T(() => {
|
|
16159
16159
|
var D;
|
|
16160
16160
|
const L = i.developer ? "developers" : "consumers", _ = ((D = Mn[i.pluginType]) == null ? void 0 : D.endpoint) || "/plugins";
|
|
16161
16161
|
return `${L}/${i.config.entityId}${i.developer ? "/credentials" : ""}${_}`;
|
|
@@ -16385,7 +16385,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16385
16385
|
}), V.selectionGroup.fields[1].fields = ge;
|
|
16386
16386
|
}
|
|
16387
16387
|
o[i.pluginType] && o[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(o[i.pluginType], "formSchema") && Object.assign(V, o[i.pluginType].formSchema);
|
|
16388
|
-
}, F =
|
|
16388
|
+
}, F = T(() => !p(f.fields, h, !0)), J = T(() => !Le.value && !B.value && (w.value === Kt.Create || F.value)), U = z(!1), Z = z(), ne = (L) => {
|
|
16389
16389
|
f.fields.id = (L == null ? void 0 : L.id) || void 0, Z.value = L == null ? void 0 : L.ordering, Object.assign(h, f.fields), S.value = L, U.value = !0;
|
|
16390
16390
|
}, Y = z({}), ce = (L) => {
|
|
16391
16391
|
var _;
|
|
@@ -16401,14 +16401,14 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16401
16401
|
}, { deep: !0 });
|
|
16402
16402
|
const de = () => {
|
|
16403
16403
|
i.config.cancelRoute ? a.push(i.config.cancelRoute) : n("cancel");
|
|
16404
|
-
}, he =
|
|
16404
|
+
}, he = T(() => {
|
|
16405
16405
|
let L = `${i.config.apiBaseUrl}${qe.form[i.config.app].validate}`;
|
|
16406
16406
|
return i.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), L = L.replace(/{id}/gi, i.pluginId), L;
|
|
16407
|
-
}), re =
|
|
16407
|
+
}), re = T(() => {
|
|
16408
16408
|
const L = i.config.entityType && i.config.entityId && !i.developer, _ = E.value ? qe.form[i.config.app].credential[w.value] : qe.form[i.config.app][w.value][L ? "forEntity" : "all"];
|
|
16409
16409
|
let D = `${i.config.apiBaseUrl}${_}`;
|
|
16410
16410
|
return i.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), D = D.replace(/{resourceEndpoint}/gi, W.value), D = D.replace(/{id}/gi, i.pluginId), D = D.replace(/{entityType}/gi, i.config.entityType || ""), D = D.replace(/{entityId}/gi, i.config.entityId || ""), D;
|
|
16411
|
-
}), Ve =
|
|
16411
|
+
}), Ve = T(() => !Object.keys(Ct).includes(i.pluginType)), tt = T(() => {
|
|
16412
16412
|
const L = Y.value;
|
|
16413
16413
|
if (E.value) {
|
|
16414
16414
|
for (const _ in d) {
|
|
@@ -16429,7 +16429,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16429
16429
|
} finally {
|
|
16430
16430
|
f.isReadonly = !1;
|
|
16431
16431
|
}
|
|
16432
|
-
}, Dt =
|
|
16432
|
+
}, Dt = T(() => {
|
|
16433
16433
|
var Ae;
|
|
16434
16434
|
const L = E.value ? (Ae = Mn[i.pluginType]) == null ? void 0 : Ae.schemaEndpoint : i.pluginType, _ = E.value ? qe.form[i.config.app].credentialSchema : qe.form[i.config.app].pluginSchema;
|
|
16435
16435
|
let D = `${i.config.apiBaseUrl}${_}`;
|
|
@@ -16515,7 +16515,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16515
16515
|
key: 0,
|
|
16516
16516
|
appearance: "tertiary",
|
|
16517
16517
|
"data-testid": "form-view-configuration",
|
|
16518
|
-
onClick: _[1] || (_[1] = (ae) =>
|
|
16518
|
+
onClick: _[1] || (_[1] = (ae) => x())
|
|
16519
16519
|
}, {
|
|
16520
16520
|
default: b(() => [
|
|
16521
16521
|
le(P(v(r)("actions.view_configuration")), 1)
|
|
@@ -16576,7 +16576,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16576
16576
|
"offset-top": 60,
|
|
16577
16577
|
title: v(r)("view_configuration.title"),
|
|
16578
16578
|
visible: m.value,
|
|
16579
|
-
onClose:
|
|
16579
|
+
onClose: x
|
|
16580
16580
|
}, {
|
|
16581
16581
|
default: b(() => [
|
|
16582
16582
|
y("div", null, P(v(r)("view_configuration.message")), 1),
|
|
@@ -16628,7 +16628,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16628
16628
|
}
|
|
16629
16629
|
},
|
|
16630
16630
|
setup(e) {
|
|
16631
|
-
const t = e, n = z(), i =
|
|
16631
|
+
const t = e, n = z(), i = T(() => Bh(t.name)), a = () => {
|
|
16632
16632
|
const r = new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAMAAABKCk6nAAAAhFBMVEUAAADs+fnr8PTo7fLm7PDl6e7j6+7j6O3i6Ozh5+vp9PTm7PDj6e319fXn7PHj6O739/fn7PDi6e3////o7fLj6Ozt8fbj6u7r7vPi6ezo7fL////n7PHm6/Dl6+/q8PTs8vbu9Pjv9frw9vri6ezv9fnp7/Pt8vfk6u6cpar////e4ePLpSv+AAAAHnRSTlMAKIq93/T6/f7/W8z3GbL4Hr/9AZ39OPFo/Z4FzOeuk05oAAAFJklEQVR4Ae3ThZLjyhWA4SNdWJ9BMy/KA3n/twoXBafWWYb2QPi6Vd9XKGz4q5t4QPNZHDP2n8W/4uT0bJBUZHB2ehL/pPOLy6wQlxfn8bThaJxUajwaxuMm01lSsdl0Eo+YL5LKLebxoOUqqd5qGQ9YD7IHGKzjPptt9gTbzT19n2dv8Pyw8DZ7hG0U1tkrrOM7y0H2CoNlfGO+yp5hNY8vJovsHRaT+GyaPcQ03mkiYvjnNu4za94Ljtn+vd/Efc7+/sf4YJT32L286qjE1ctd3mMUH5yP89D1m46KvLnOQ+PzeO8iD+xuOipzs8sDF/HeZZZuX3dU5/Vtli7jnZMs7fSts/AuSycRcZqlm44q3WTpNCLOsnDdUanrLJxF29zF9zZ3QaXuNuWNJtosvOyo1ssstG0ThZ+Dah3Ea+LHIvmLjoq9KHL+2DYHyanYQc6jDYzACCxwZKGjallog177DwIjMAIjMAIjsMAIjMAIjMAIjMAILDACIzACIzACI7DACIzACIzACIzAAiMwAiMwAiMwAiOwwAiMwAiMwAiMwAIjMAIjMAIjMAILjMAIjMAIjMAIjMACIzACIzACIzACC4zACIzACIzACIzAAiMwAiMwAiMwAguMwAiMwAiMwAgsMAIjMAIjMAIjMAILjMAIjMAIjMAILDACIzACI/DP/6GjGENgBEZgBBYYgREYgREYgRGYJwMjMAIjMAI3TziCMQTmaAIjMAIjMAIjMAILjMAIjMAIjMAITBa6X9CveqD7hWWhDXpNYIERGIERGIERGIEFRmAERmAERuBKCdw2R68VGIERGIERWGAERmAERmAERmCBERiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIEFRmAERmAERuB+EPjt/ui9FRiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgWshcNscvVZgBEZgBEZggREYgREYgREYgQVGYARGYARGYARGYIERGIERGIERGIEFRmAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBBYYgREYgREYgftB4Lf7o/dWYARGYARGYIERGIERGIERGIEFRmAE5kj9GEfkb/EfwwkWGIERGIERGIERWGAERmAERmAERmAEFhiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIERWGAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBEZggREYgREYgREYgQVGYARGYARGYAQWGIERGIERGIERGIEFRmAERmAERmAEFhiBERiBERiBEZh2r3iflPn2B4HvgordPRl4H1RsL7DAfSJw/JCFq45qXWXhh3Yfhb8F1TqIt2/3ZeGf9kGl9j/F997XPcvCdUelrrNwFhGnWbrpqNJNlk4j4iRLu9cdFXq9y9JJvHOZpVuFa+x7m6XLeO8iD+xuOipzs8sDF/He+TgPXb/pqMib6zw0Po8PRnmP3curjkpcvdzlPUYR0UTE8M9t3GfWvBfHjP17v4n7nP39j/HRNOmhaXw2WSS9s5jEF/NV0jOreXxjOUh6ZbCM76yTXllHYZv0yDZKm+dJbzzfxGHhbdIT203cZz1IemCwjgcsV0n1Vst40HyRVG4xj0dMprOkYrPpJB43HI2TSo1Hw3ja+cVlUqHLi/P4J52cng2SigzOTk/iPk08oPksjhn7z+J+/wBSUhUZLUGZBgAAAABJRU5ErkJggg==", import.meta.url).href;
|
|
16633
16633
|
n.value && (n.value.src = r);
|
|
16634
16634
|
};
|
|
@@ -16704,7 +16704,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16704
16704
|
}
|
|
16705
16705
|
},
|
|
16706
16706
|
setup(e) {
|
|
16707
|
-
const t = e, n =
|
|
16707
|
+
const t = e, n = T(() => {
|
|
16708
16708
|
if (typeof t.size == "number" && t.size > 0)
|
|
16709
16709
|
return `${t.size}px`;
|
|
16710
16710
|
if (typeof t.size == "string") {
|
|
@@ -16713,7 +16713,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16713
16713
|
return `${r}px`;
|
|
16714
16714
|
}
|
|
16715
16715
|
return Ni;
|
|
16716
|
-
}), i =
|
|
16716
|
+
}), i = T(() => ({
|
|
16717
16717
|
boxSizing: "border-box",
|
|
16718
16718
|
color: t.color,
|
|
16719
16719
|
display: t.display,
|
|
@@ -16804,7 +16804,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16804
16804
|
}
|
|
16805
16805
|
},
|
|
16806
16806
|
setup(e) {
|
|
16807
|
-
const t = e, n =
|
|
16807
|
+
const t = e, n = T(() => {
|
|
16808
16808
|
if (typeof t.size == "number" && t.size > 0)
|
|
16809
16809
|
return `${t.size}px`;
|
|
16810
16810
|
if (typeof t.size == "string") {
|
|
@@ -16813,7 +16813,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16813
16813
|
return `${r}px`;
|
|
16814
16814
|
}
|
|
16815
16815
|
return Ni;
|
|
16816
|
-
}), i =
|
|
16816
|
+
}), i = T(() => ({
|
|
16817
16817
|
boxSizing: "border-box",
|
|
16818
16818
|
color: t.color,
|
|
16819
16819
|
display: t.display,
|
|
@@ -16928,10 +16928,10 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16928
16928
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
16929
16929
|
setup(e, { emit: t }) {
|
|
16930
16930
|
var Le, Yt;
|
|
16931
|
-
const n = Ge.usePluginMetaData(), i = t, a = e, { i18n: { t: r } } = Ge.useI18n(), o = ci(), { axiosInstance: s } = hn((Le = a.config) == null ? void 0 : Le.axiosRequestConfig), l =
|
|
16931
|
+
const n = Ge.usePluginMetaData(), i = t, a = e, { i18n: { t: r } } = Ge.useI18n(), o = ci(), { axiosInstance: s } = hn((Le = a.config) == null ? void 0 : Le.axiosRequestConfig), l = T(() => {
|
|
16932
16932
|
var Q;
|
|
16933
16933
|
return ((Q = a.config) == null ? void 0 : Q.entityType) === "consumers";
|
|
16934
|
-
}), u =
|
|
16934
|
+
}), u = T(() => {
|
|
16935
16935
|
var Q;
|
|
16936
16936
|
return ((Q = a.config) == null ? void 0 : Q.entityType) === "consumer_groups";
|
|
16937
16937
|
}), c = a.config.app === "konnect" || kA({
|
|
@@ -16940,16 +16940,16 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16940
16940
|
supportedRange: {
|
|
16941
16941
|
enterprise: ["3.0"]
|
|
16942
16942
|
}
|
|
16943
|
-
}), p =
|
|
16943
|
+
}), p = T(() => a.config.app !== "kongManager" || !!a.config.disableSorting), A = {
|
|
16944
16944
|
// the Name column is non-hidable
|
|
16945
16945
|
name: { label: r("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
|
|
16946
16946
|
};
|
|
16947
16947
|
(Yt = a.config) != null && Yt.entityId || (A.appliedTo = { label: r("plugins.list.table_headers.applied_to"), sortable: !1 }), A.enabled = { label: r("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, c && (A.ordering = { label: r("plugins.list.table_headers.ordering"), sortable: !0 }), A.tags = { label: r("plugins.list.table_headers.tags"), sortable: !1 };
|
|
16948
|
-
const m = A, w =
|
|
16948
|
+
const m = A, w = T(() => {
|
|
16949
16949
|
var L, _, D, Ae;
|
|
16950
16950
|
let Q = a.config.entityType ? `${a.config.apiBaseUrl}${qe.list[a.config.app].forEntity}` : `${a.config.apiBaseUrl}${qe.list[a.config.app].all}`;
|
|
16951
16951
|
return a.config.app === "konnect" ? Q = Q.replace(/{controlPlaneId}/gi, ((L = a.config) == null ? void 0 : L.controlPlaneId) || "") : a.config.app === "kongManager" && (Q = Q.replace(/\/{workspace}/gi, (_ = a.config) != null && _.workspace ? `/${a.config.workspace}` : "")), Q.replace(/{entityType}/gi, ((D = a.config) == null ? void 0 : D.entityType) || "").replace(/{entityId}/gi, ((Ae = a.config) == null ? void 0 : Ae.entityId) || "");
|
|
16952
|
-
}), C = z(""), E =
|
|
16952
|
+
}), C = z(""), E = T(() => a.config.app === "konnect" || a.config.isExactMatch ? {
|
|
16953
16953
|
isExactMatch: !0,
|
|
16954
16954
|
fields: {
|
|
16955
16955
|
name: A.name,
|
|
@@ -16993,7 +16993,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
16993
16993
|
break;
|
|
16994
16994
|
}
|
|
16995
16995
|
_ && ((Ne = a.config) != null && Ne.getScopedEntityViewRoute) && o.push(a.config.getScopedEntityViewRoute(Q, _));
|
|
16996
|
-
},
|
|
16996
|
+
}, x = z(!1), G = z(null), V = T(() => {
|
|
16997
16997
|
const Q = {
|
|
16998
16998
|
action: "disable",
|
|
16999
16999
|
id: "",
|
|
@@ -17005,9 +17005,9 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17005
17005
|
}
|
|
17006
17006
|
return Q;
|
|
17007
17007
|
}), W = (Q) => {
|
|
17008
|
-
|
|
17008
|
+
x.value = !0, G.value = Q;
|
|
17009
17009
|
}, ie = () => {
|
|
17010
|
-
|
|
17010
|
+
x.value = !1, G.value = null;
|
|
17011
17011
|
}, oe = async () => {
|
|
17012
17012
|
var D, Ae, ge, Ie, Ne, ae, be, ve;
|
|
17013
17013
|
if (!await ((D = a.canEdit) == null ? void 0 : D.call(a, G.value)) || !G.value)
|
|
@@ -17337,7 +17337,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17337
17337
|
"entity-name": V.value.name,
|
|
17338
17338
|
"entity-type": v(r)("glossary.plugin"),
|
|
17339
17339
|
"on-confirm": oe,
|
|
17340
|
-
visible:
|
|
17340
|
+
visible: x.value,
|
|
17341
17341
|
onCancel: ie,
|
|
17342
17342
|
onProceed: ie
|
|
17343
17343
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
@@ -17395,13 +17395,13 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17395
17395
|
},
|
|
17396
17396
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
17397
17397
|
setup(e, { emit: t }) {
|
|
17398
|
-
const n = t, i = e, a = ci(), { i18n: { t: r } } = Ge.useI18n(), o =
|
|
17398
|
+
const n = t, i = e, a = ci(), { i18n: { t: r } } = Ge.useI18n(), o = T(() => i.config.app === "konnect" ? i.config.controlPlaneId : ""), s = T(() => !!(!i.plugin.available || i.plugin.disabledMessage)), l = T(() => !!(m.value && !A.value && i.navigateOnClick && o.value && (i.canDeleteCustomPlugin || i.canEditCustomPlugin))), u = () => {
|
|
17399
17399
|
a.push(i.config.getCreateRoute(i.plugin.id));
|
|
17400
17400
|
}, c = () => {
|
|
17401
17401
|
i.navigateOnClick ? u() : p();
|
|
17402
17402
|
}, p = () => {
|
|
17403
17403
|
n("plugin-clicked", i.plugin);
|
|
17404
|
-
}, A =
|
|
17404
|
+
}, A = T(() => i.plugin.id === "custom-plugin-create"), m = T(() => i.config.app === "konnect" && i.plugin.group === q.CUSTOM_PLUGINS), w = () => {
|
|
17405
17405
|
i.config.app === "konnect" && n("custom-plugin-delete");
|
|
17406
17406
|
}, C = (S) => {
|
|
17407
17407
|
const R = i.config;
|
|
@@ -17528,7 +17528,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17528
17528
|
emits: ["closed", "proceed"],
|
|
17529
17529
|
setup(e, { emit: t }) {
|
|
17530
17530
|
var m;
|
|
17531
|
-
const n = e, i = t, { i18nT: a, i18n: { t: r } } = Ge.useI18n(), { getMessageFromError: o } = Hi(), { axiosInstance: s } = hn((m = n.config) == null ? void 0 : m.axiosRequestConfig), l =
|
|
17531
|
+
const n = e, i = t, { i18nT: a, i18n: { t: r } } = Ge.useI18n(), { getMessageFromError: o } = Hi(), { axiosInstance: s } = hn((m = n.config) == null ? void 0 : m.axiosRequestConfig), l = T(() => {
|
|
17532
17532
|
var w;
|
|
17533
17533
|
return p.value ? r("delete.plugin_schema_in_use_title") : r("delete.title", { name: ((w = n.plugin) == null ? void 0 : w.name) || r("delete.custom_plugin") });
|
|
17534
17534
|
}), u = z(!1), c = z(""), p = z(!1), A = async () => {
|
|
@@ -17651,7 +17651,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17651
17651
|
setup(e, { emit: t }) {
|
|
17652
17652
|
const n = e, i = t, { i18n: { t: a } } = Ge.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: o } = Ge.usePluginHelpers(), s = z(!0), l = (h) => {
|
|
17653
17653
|
i("plugin-clicked", h);
|
|
17654
|
-
}, u =
|
|
17654
|
+
}, u = T(() => {
|
|
17655
17655
|
if (n.config.app === "kongManager")
|
|
17656
17656
|
return [];
|
|
17657
17657
|
const h = JSON.parse(JSON.stringify(n.pluginList))[q.CUSTOM_PLUGINS] || [];
|
|
@@ -17670,7 +17670,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17670
17670
|
}, m = (h) => {
|
|
17671
17671
|
var f;
|
|
17672
17672
|
h && (i("revalidate"), i("delete:success", ((f = p.value) == null ? void 0 : f.name) || "")), c.value = !1, p.value = null;
|
|
17673
|
-
}, w = z(310), C = z(null), E = z(null), S =
|
|
17673
|
+
}, w = z(310), C = z(null), E = z(null), S = T(() => s.value ? {
|
|
17674
17674
|
overflowY: "hidden",
|
|
17675
17675
|
maxHeight: `${w.value}px`
|
|
17676
17676
|
} : {}), R = z(!1), B = () => {
|
|
@@ -17702,8 +17702,8 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17702
17702
|
class: "plugin-card-container",
|
|
17703
17703
|
style: vt(S.value)
|
|
17704
17704
|
}, [
|
|
17705
|
-
(g(!0), k(pe, null, fe(u.value, (H,
|
|
17706
|
-
key: `plugin-card-${
|
|
17705
|
+
(g(!0), k(pe, null, fe(u.value, (H, x) => (g(), N(Ec, {
|
|
17706
|
+
key: `plugin-card-${x}`,
|
|
17707
17707
|
ref_for: !0,
|
|
17708
17708
|
ref_key: "pluginCardRef",
|
|
17709
17709
|
ref: E,
|
|
@@ -17787,7 +17787,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17787
17787
|
}),
|
|
17788
17788
|
emits: /* @__PURE__ */ br(["plugin-clicked"], ["update:modelValue"]),
|
|
17789
17789
|
setup(e, { emit: t }) {
|
|
17790
|
-
const n = jc(e, "modelValue"), i = e, a = t, { i18n: { t: r } } = Ge.useI18n(), { getTallestPluginCardHeight: o, getToggleVisibility: s } = Ge.usePluginHelpers(), l = z(310), u = z(null), c = z(null), p =
|
|
17790
|
+
const n = jc(e, "modelValue"), i = e, a = t, { i18n: { t: r } } = Ge.useI18n(), { getTallestPluginCardHeight: o, getToggleVisibility: s } = Ge.usePluginHelpers(), l = z(310), u = z(null), c = z(null), p = T(() => n.value ? {
|
|
17791
17791
|
overflowY: "hidden",
|
|
17792
17792
|
maxHeight: `${l.value}px`
|
|
17793
17793
|
} : {}), A = z(!1), m = () => {
|
|
@@ -17891,7 +17891,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
17891
17891
|
setup(e, { emit: t }) {
|
|
17892
17892
|
const n = e, i = t, { i18n: { t: a } } = Ge.useI18n(), r = z(!1), o = z(ih), s = (u) => {
|
|
17893
17893
|
i("plugin-clicked", u);
|
|
17894
|
-
}, l =
|
|
17894
|
+
}, l = T(() => {
|
|
17895
17895
|
const u = JSON.parse(JSON.stringify(n.pluginList));
|
|
17896
17896
|
return n.config.app === "konnect" && delete u[q.CUSTOM_PLUGINS], u;
|
|
17897
17897
|
});
|
|
@@ -18032,11 +18032,11 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18032
18032
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
18033
18033
|
setup(e, { emit: t }) {
|
|
18034
18034
|
var F, J;
|
|
18035
|
-
const n = e, i = t, a = Lc(), r = ci(), { i18n: { t: o } } = Ge.useI18n(), { pluginMetaData: s } = Ge.usePluginMetaData(), { getMessageFromError: l } = Hi(), { sortAlpha: u, objectsAreEqual: c } = Fi(), p = z(""), A = z(!0), m = z(!1), w = z(""), C = z([]), E = z({}), S = z([]), { axiosInstance: R } = hn((F = n.config) == null ? void 0 : F.axiosRequestConfig), B =
|
|
18035
|
+
const n = e, i = t, a = Lc(), r = ci(), { i18n: { t: o } } = Ge.useI18n(), { pluginMetaData: s } = Ge.usePluginMetaData(), { getMessageFromError: l } = Hi(), { sortAlpha: u, objectsAreEqual: c } = Fi(), p = z(""), A = z(!0), m = z(!1), w = z(""), C = z([]), E = z({}), S = z([]), { axiosInstance: R } = hn((F = n.config) == null ? void 0 : F.axiosRequestConfig), B = T(() => E.value ? Object.entries(E.value).filter(([U]) => U !== q.CUSTOM_PLUGINS).reduce((U, [, Z]) => {
|
|
18036
18036
|
for (const ne of Z)
|
|
18037
18037
|
U[ne.id] = ne;
|
|
18038
18038
|
return U;
|
|
18039
|
-
}, {}) : {}), O =
|
|
18039
|
+
}, {}) : {}), O = T(() => {
|
|
18040
18040
|
var ne;
|
|
18041
18041
|
if (!E.value)
|
|
18042
18042
|
return {};
|
|
@@ -18046,10 +18046,10 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18046
18046
|
ce.length ? Z[Y] = ce : delete Z[Y];
|
|
18047
18047
|
}
|
|
18048
18048
|
return Z;
|
|
18049
|
-
}), h =
|
|
18049
|
+
}), h = T(() => n.highlightedPluginIds.reduce((U, Z) => {
|
|
18050
18050
|
const ne = B.value[Z];
|
|
18051
18051
|
return ne && U.push(ne), U;
|
|
18052
|
-
}, [])), f =
|
|
18052
|
+
}, [])), f = T(() => Object.keys(O.value).length > 0), I = T(() => Object.keys(E.value).length > 0 && !f.value), M = n.config.app === "konnect" ? [
|
|
18053
18053
|
{
|
|
18054
18054
|
hash: "#kong",
|
|
18055
18055
|
title: o("plugins.select.tabs.kong.title")
|
|
@@ -18059,7 +18059,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18059
18059
|
title: o("plugins.select.tabs.custom.title"),
|
|
18060
18060
|
disabled: n.disableCustomPlugins
|
|
18061
18061
|
}
|
|
18062
|
-
] : [], H = z(M.length && ((a == null ? void 0 : a.hash) || ((J = M[0]) == null ? void 0 : J.hash)) || ""),
|
|
18062
|
+
] : [], H = z(M.length && ((a == null ? void 0 : a.hash) || ((J = M[0]) == null ? void 0 : J.hash)) || ""), x = () => [.../* @__PURE__ */ new Set(
|
|
18063
18063
|
[
|
|
18064
18064
|
...Object.keys({ ...n.availableOnServer ? {} : s }),
|
|
18065
18065
|
...C.value
|
|
@@ -18078,11 +18078,11 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18078
18078
|
const ce = Y.group || o("plugins.select.misc_plugins");
|
|
18079
18079
|
let de = U[ce];
|
|
18080
18080
|
return de || (de = []), de.push(Y), de.sort(u("name")), U[ce] = de, U;
|
|
18081
|
-
}, {}), G =
|
|
18081
|
+
}, {}), G = T(() => {
|
|
18082
18082
|
var Z;
|
|
18083
18083
|
let U = `${n.config.apiBaseUrl}${qe.select[n.config.app].availablePlugins}`;
|
|
18084
18084
|
return n.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (U = ((Z = n.config.gatewayInfo) == null ? void 0 : Z.edition) === "community" ? `${n.config.apiBaseUrl}${qe.select[n.config.app].availablePluginsForOss}` : U.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), U;
|
|
18085
|
-
}), V =
|
|
18085
|
+
}), V = T(() => {
|
|
18086
18086
|
if (n.config.entityType && n.config.entityId) {
|
|
18087
18087
|
let U = `${n.config.apiBaseUrl}${qe.list[n.config.app].forEntity}`;
|
|
18088
18088
|
return n.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), U.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
|
|
@@ -18092,9 +18092,9 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18092
18092
|
r.replace({ hash: U, query: a.query });
|
|
18093
18093
|
};
|
|
18094
18094
|
Xe(() => n.disabledPlugins, (U, Z) => {
|
|
18095
|
-
!c(U, Z) && !A.value && (E.value =
|
|
18095
|
+
!c(U, Z) && !A.value && (E.value = x());
|
|
18096
18096
|
}), Xe(() => n.ignoredPlugins, (U, Z) => {
|
|
18097
|
-
!c(U, Z) && !A.value && (E.value =
|
|
18097
|
+
!c(U, Z) && !A.value && (E.value = x());
|
|
18098
18098
|
}), Xe(A, (U) => {
|
|
18099
18099
|
i("loading", U);
|
|
18100
18100
|
});
|
|
@@ -18123,7 +18123,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18123
18123
|
}
|
|
18124
18124
|
} catch {
|
|
18125
18125
|
}
|
|
18126
|
-
m.value || (E.value =
|
|
18126
|
+
m.value || (E.value = x()), A.value = !1;
|
|
18127
18127
|
}), (U, Z) => {
|
|
18128
18128
|
const ne = K("KInput"), Y = K("KSkeletonBox"), ce = K("KSkeleton"), de = K("KEmptyState"), he = K("KTooltip"), re = K("KTabs");
|
|
18129
18129
|
return g(), k("div", mM, [
|
|
@@ -18203,7 +18203,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18203
18203
|
"plugin-list": O.value,
|
|
18204
18204
|
"onDelete:success": Z[2] || (Z[2] = (Ve) => U.$emit("delete-custom:success", Ve)),
|
|
18205
18205
|
onPluginClicked: Z[3] || (Z[3] = (Ve) => U.$emit("plugin-clicked", Ve)),
|
|
18206
|
-
onRevalidate: Z[4] || (Z[4] = () => E.value =
|
|
18206
|
+
onRevalidate: Z[4] || (Z[4] = () => E.value = x())
|
|
18207
18207
|
}, null, 8, ["can-create-custom-plugin", "can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin-list"])
|
|
18208
18208
|
])
|
|
18209
18209
|
]),
|
|
@@ -18290,12 +18290,12 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18290
18290
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
|
|
18291
18291
|
setup(e, { emit: t }) {
|
|
18292
18292
|
var R;
|
|
18293
|
-
const n = t, i = e, { i18n: { t: a } } = Ge.useI18n(), r = Ge.usePluginMetaData(), { setFieldType: o } = Ge.usePluginHelpers(), { getPropValue: s } = Fi(), l =
|
|
18293
|
+
const n = t, i = e, { i18n: { t: a } } = Ge.useI18n(), r = Ge.usePluginMetaData(), { setFieldType: o } = Ge.usePluginHelpers(), { getPropValue: s } = Fi(), l = T(
|
|
18294
18294
|
() => {
|
|
18295
18295
|
var B;
|
|
18296
18296
|
return (B = qe.item[i.config.app]) == null ? void 0 : B[i.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, i.scopedEntityType).replace(/{entityId}/gi, i.scopedEntityId);
|
|
18297
18297
|
}
|
|
18298
|
-
), u =
|
|
18298
|
+
), u = T(() => {
|
|
18299
18299
|
var h, f;
|
|
18300
18300
|
const B = {}, O = ((h = C.value) == null ? void 0 : h.fields) || [];
|
|
18301
18301
|
for (let I = 0; I < O.length; I++) {
|
|
@@ -18334,7 +18334,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18334
18334
|
order: 7
|
|
18335
18335
|
}
|
|
18336
18336
|
};
|
|
18337
|
-
}), c =
|
|
18337
|
+
}), c = T(() => {
|
|
18338
18338
|
var O, h, f;
|
|
18339
18339
|
if (!((O = C.value) != null && O.fields))
|
|
18340
18340
|
return [];
|
|
@@ -18343,7 +18343,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18343
18343
|
return ((H = Object.keys(I)) == null ? void 0 : H[0]) === Aa;
|
|
18344
18344
|
});
|
|
18345
18345
|
return ((f = B == null ? void 0 : B[Aa]) == null ? void 0 : f.fields) || [];
|
|
18346
|
-
}), p =
|
|
18346
|
+
}), p = T(() => {
|
|
18347
18347
|
var O, h;
|
|
18348
18348
|
const B = {};
|
|
18349
18349
|
if (!c.value)
|
|
@@ -18355,7 +18355,7 @@ const da = "/v2/control-planes/{controlPlaneId}/core-entities", pa = "/{workspac
|
|
|
18355
18355
|
}), o(B, M, H);
|
|
18356
18356
|
}
|
|
18357
18357
|
return B;
|
|
18358
|
-
}), { getMessageFromError: A } = Hi(), { axiosInstance: m } = hn((R = i.config) == null ? void 0 : R.axiosRequestConfig), w =
|
|
18358
|
+
}), { getMessageFromError: A } = Hi(), { axiosInstance: m } = hn((R = i.config) == null ? void 0 : R.axiosRequestConfig), w = T(() => {
|
|
18359
18359
|
var O, h;
|
|
18360
18360
|
let B = `${i.config.apiBaseUrl}${qe.form[i.config.app].pluginSchema}`;
|
|
18361
18361
|
return i.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((O = i.config) == null ? void 0 : O.controlPlaneId) || "") : i.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (h = i.config) != null && h.workspace ? `/${i.config.workspace}` : "")), B = B.replace(/{plugin}/gi, i.config.pluginType), B;
|