@kong-ui-public/entities-plugins 7.1.4 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +464 -460
- package/dist/entities-plugins.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/types/definitions/metadata.d.ts.map +1 -1
- package/dist/types/types/plugin-form.d.ts +2 -0
- package/dist/types/types/plugin-form.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,7 @@ var Gi = (e, t, n) => {
|
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
11
11
|
};
|
|
12
12
|
var ri = (e, t, n) => (Vl(e, t, "access private method"), n);
|
|
13
|
-
import { defineComponent as ue, useCssVars as Es, computed as j, resolveComponent as H, openBlock as g, createElementBlock as w, createVNode as x, withCtx as
|
|
13
|
+
import { defineComponent as ue, useCssVars as Es, computed as j, resolveComponent as H, openBlock as g, createElementBlock as w, createVNode as x, withCtx as v, createTextVNode as re, toDisplayString as U, createCommentVNode as J, createBlock as P, normalizeClass as ge, ref as q, Teleport as pa, unref as b, createElementVNode as y, watch as rt, renderSlot as Se, onBeforeMount as Ft, createSlots as ct, renderList as de, resolveDynamicComponent as Le, withModifiers as Gt, withDirectives as ve, vShow as Bt, Fragment as oe, withKeys as Fl, inject as zl, useSlots as ks, onMounted as Ii, onUnmounted as Kl, normalizeStyle as Ot, normalizeProps as ql, guardReactiveProps as Xl, mergeProps as St, pushScopeId as Ke, popScopeId as qe, nextTick as Qa, toRefs as Os, resolveDirective as Jn, vModelSelect as Is, Transition as Jl, vModelText as Wt, vModelCheckbox as ga, vModelDynamic as Zl, vModelRadio as Wl, provide as Ql, reactive as xn, mergeModels as _a, useModel as _l } from "vue";
|
|
14
14
|
import $a from "axios";
|
|
15
15
|
import { createI18n as Zn, i18nTComponent as Ms } from "@kong-ui-public/i18n";
|
|
16
16
|
import { BadgeMethodAppearances as $l } from "@kong/kongponents";
|
|
@@ -263,7 +263,7 @@ function fu(e, t, n, i = {
|
|
|
263
263
|
n || (n = "1000");
|
|
264
264
|
const { axiosInstance: a } = Aa(e.axiosRequestConfig), { i18n: { t: r } } = Mi(), { debounce: s } = nu(), o = s(async (E) => {
|
|
265
265
|
await Y(E);
|
|
266
|
-
}, 200), l = q(!1), u = q(""), c = q(""), p = q([]), m = q([]), h = q(void 0), M =
|
|
266
|
+
}, 200), l = q(!1), u = q(""), c = q(""), p = q([]), m = q([]), h = q(void 0), M = b(t);
|
|
267
267
|
let C = `${e.apiBaseUrl}${M}`;
|
|
268
268
|
e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
269
269
|
const { isValidUuid: O } = Bs(), I = async () => {
|
|
@@ -333,7 +333,7 @@ function fu(e, t, n, i = {
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
function hu(e, t) {
|
|
336
|
-
const n =
|
|
336
|
+
const n = b(t), i = j(
|
|
337
337
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
338
338
|
);
|
|
339
339
|
return i.value.search = "", (a) => `${i.value.href}/${a}`;
|
|
@@ -380,7 +380,7 @@ function vu(e) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function Ss(e, t) {
|
|
383
|
-
const n = q(
|
|
383
|
+
const n = q(b(e)), i = q(b(t)), a = j(
|
|
384
384
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
385
385
|
), r = j(
|
|
386
386
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
@@ -398,7 +398,7 @@ function Ss(e, t) {
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
function bu(e, t, n = "data") {
|
|
401
|
-
const i =
|
|
401
|
+
const i = b(t), { axiosInstance: a } = Aa(e.axiosRequestConfig), r = Ss(e, i), s = q({
|
|
402
402
|
status: Jt.Idle
|
|
403
403
|
});
|
|
404
404
|
return { fetcher: async (o) => {
|
|
@@ -563,7 +563,7 @@ const Ge = {
|
|
|
563
563
|
return (l, u) => (g(), P(Le(e.isArrayItem ? "fieldset" : "div"), {
|
|
564
564
|
class: ge(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
565
565
|
}, {
|
|
566
|
-
default:
|
|
566
|
+
default: v(() => [
|
|
567
567
|
e.isArrayItem ? (g(), w("legend", Ru, [
|
|
568
568
|
y("b", null, U(o.value), 1)
|
|
569
569
|
])) : J("", !0),
|
|
@@ -571,7 +571,7 @@ const Ge = {
|
|
|
571
571
|
key: `${a.value}-property-${p}`,
|
|
572
572
|
item: {
|
|
573
573
|
key: c,
|
|
574
|
-
label:
|
|
574
|
+
label: b(i)(c),
|
|
575
575
|
value: s.value[c]
|
|
576
576
|
}
|
|
577
577
|
}, null, 8, ["item"]))), 128))
|
|
@@ -603,8 +603,8 @@ const Ge = {
|
|
|
603
603
|
class: "navigation-button",
|
|
604
604
|
onClick: i[0] || (i[0] = (r) => n.$emit("navigation-click", e.item))
|
|
605
605
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
re(U(e.item.value ||
|
|
606
|
+
default: v(() => [
|
|
607
|
+
re(U(e.item.value || b(t)("baseConfigCard.commonFields.link")), 1)
|
|
608
608
|
]),
|
|
609
609
|
_: 1
|
|
610
610
|
})
|
|
@@ -626,8 +626,8 @@ const Ge = {
|
|
|
626
626
|
return g(), P(a, {
|
|
627
627
|
appearance: e.status ? "success" : "neutral"
|
|
628
628
|
}, {
|
|
629
|
-
default:
|
|
630
|
-
re(U(e.status ?
|
|
629
|
+
default: v(() => [
|
|
630
|
+
re(U(e.status ? b(t)("baseConfigCard.statusBadge.enabledLabel") : b(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
633
|
}, 8, ["appearance"]);
|
|
@@ -657,7 +657,7 @@ const Ge = {
|
|
|
657
657
|
emits: ["navigation-click"],
|
|
658
658
|
setup(e, { emit: t }) {
|
|
659
659
|
Es((M) => ({
|
|
660
|
-
dc1d91a8: c.value ? "none" : `solid ${
|
|
660
|
+
dc1d91a8: c.value ? "none" : `solid ${b(Du)} ${b(Nu)}`,
|
|
661
661
|
"59ccec5f": u.value && o.value ? "block" : "flex",
|
|
662
662
|
"29318fbe": u.value && o.value ? "100%" : n.slim ? "50%" : "25%",
|
|
663
663
|
"292d0408": u.value && o.value ? "100%" : n.slim ? "50%" : "75%"
|
|
@@ -782,14 +782,14 @@ const Ge = {
|
|
|
782
782
|
}, [
|
|
783
783
|
Se(M.$slots, "label", { item: e.item }, () => [
|
|
784
784
|
x(O, { "tooltip-attributes": { maxWidth: "500px" } }, ct({
|
|
785
|
-
default:
|
|
785
|
+
default: v(() => [
|
|
786
786
|
re(U(e.item.label) + " ", 1)
|
|
787
787
|
]),
|
|
788
788
|
_: 2
|
|
789
789
|
}, [
|
|
790
790
|
l.value ? {
|
|
791
791
|
name: "tooltip",
|
|
792
|
-
fn:
|
|
792
|
+
fn: v(() => [
|
|
793
793
|
y("div", {
|
|
794
794
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
795
795
|
}, [
|
|
@@ -812,7 +812,7 @@ const Ge = {
|
|
|
812
812
|
}, () => [
|
|
813
813
|
o.value ? (g(), w("div", zu, [
|
|
814
814
|
(g(), P(Le(p.value.tag), ql(Xl(p.value.attrs)), {
|
|
815
|
-
default:
|
|
815
|
+
default: v(() => [
|
|
816
816
|
p.value.additionalComponent === "KBadge" ? (g(), w("div", {
|
|
817
817
|
key: 0,
|
|
818
818
|
"data-testid": `${e.item.key}-badge-tags`
|
|
@@ -824,7 +824,7 @@ const Ge = {
|
|
|
824
824
|
tooltip: E,
|
|
825
825
|
"truncation-tooltip": ""
|
|
826
826
|
}, {
|
|
827
|
-
default:
|
|
827
|
+
default: v(() => [
|
|
828
828
|
re(U(E), 1)
|
|
829
829
|
]),
|
|
830
830
|
_: 2
|
|
@@ -847,11 +847,11 @@ const Ge = {
|
|
|
847
847
|
}, [
|
|
848
848
|
(g(!0), w(oe, null, de(e.item.value, (E, A) => (g(), P(I, {
|
|
849
849
|
key: `${e.item.key}-badge-method-${A}`,
|
|
850
|
-
appearance: Object.values(
|
|
850
|
+
appearance: Object.values(b($l)).includes(E.toLowerCase()) ? E.toLowerCase() : "custom",
|
|
851
851
|
class: "config-badge",
|
|
852
852
|
"data-testid": `${e.item.key}-badge-method-${A}`
|
|
853
853
|
}, {
|
|
854
|
-
default:
|
|
854
|
+
default: v(() => [
|
|
855
855
|
re(U(E), 1)
|
|
856
856
|
]),
|
|
857
857
|
_: 2
|
|
@@ -869,9 +869,9 @@ const Ge = {
|
|
|
869
869
|
}, null, 8, ["index", "item"]))), 128))
|
|
870
870
|
], 8, Ju)) : (g(), P(Y, {
|
|
871
871
|
key: 4,
|
|
872
|
-
text:
|
|
872
|
+
text: b(h) ? e.item.value : ""
|
|
873
873
|
}, {
|
|
874
|
-
default:
|
|
874
|
+
default: v(() => [
|
|
875
875
|
y("span", {
|
|
876
876
|
ref_key: "textContent",
|
|
877
877
|
ref: m,
|
|
@@ -940,7 +940,7 @@ const Ge = {
|
|
|
940
940
|
x(s, {
|
|
941
941
|
appearance: t.requestMethod
|
|
942
942
|
}, {
|
|
943
|
-
default:
|
|
943
|
+
default: v(() => [
|
|
944
944
|
re(U(t.requestMethod), 1)
|
|
945
945
|
]),
|
|
946
946
|
_: 1
|
|
@@ -2417,15 +2417,15 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2417
2417
|
class: ge(`config-card-details-${l}-props`),
|
|
2418
2418
|
"data-testid": `config-card-details-${l}-props`
|
|
2419
2419
|
}, [
|
|
2420
|
-
l !== "basic" ? (g(), w("div", Cp, U(l === "advanced" ?
|
|
2420
|
+
l !== "basic" ? (g(), w("div", Cp, U(l === "advanced" ? b(i)("baseConfigCard.sections.advanced") : b(i)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
|
|
2421
2421
|
(g(!0), w(oe, null, de(e.propertyCollections[l], (u) => (g(), P(Ls, {
|
|
2422
2422
|
key: u.key,
|
|
2423
2423
|
item: u
|
|
2424
2424
|
}, ct({
|
|
2425
|
-
label:
|
|
2425
|
+
label: v(() => [
|
|
2426
2426
|
Se(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2427
2427
|
]),
|
|
2428
|
-
[u.key]:
|
|
2428
|
+
[u.key]: v(({ rowValue: c }) => [
|
|
2429
2429
|
Se(s.$slots, u.key, {
|
|
2430
2430
|
row: u,
|
|
2431
2431
|
rowValue: c
|
|
@@ -2435,7 +2435,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2435
2435
|
}, [
|
|
2436
2436
|
a(u) ? {
|
|
2437
2437
|
name: "label-tooltip",
|
|
2438
|
-
fn:
|
|
2438
|
+
fn: v(() => [
|
|
2439
2439
|
Se(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2440
2440
|
]),
|
|
2441
2441
|
key: "0"
|
|
@@ -2542,7 +2542,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2542
2542
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2543
2543
|
style: Ot(i.value)
|
|
2544
2544
|
}, {
|
|
2545
|
-
default:
|
|
2545
|
+
default: v(() => [
|
|
2546
2546
|
(g(), w("svg", {
|
|
2547
2547
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2548
2548
|
"data-testid": "kui-icon-svg-add-icon",
|
|
@@ -2641,7 +2641,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2641
2641
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2642
2642
|
style: Ot(i.value)
|
|
2643
2643
|
}, {
|
|
2644
|
-
default:
|
|
2644
|
+
default: v(() => [
|
|
2645
2645
|
(g(), w("svg", {
|
|
2646
2646
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2647
2647
|
"data-testid": "kui-icon-svg-book-icon",
|
|
@@ -2740,7 +2740,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2740
2740
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2741
2741
|
style: Ot(i.value)
|
|
2742
2742
|
}, {
|
|
2743
|
-
default:
|
|
2743
|
+
default: v(() => [
|
|
2744
2744
|
(g(), w("svg", {
|
|
2745
2745
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2746
2746
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
@@ -2839,7 +2839,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2839
2839
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2840
2840
|
style: Ot(i.value)
|
|
2841
2841
|
}, {
|
|
2842
|
-
default:
|
|
2842
|
+
default: v(() => [
|
|
2843
2843
|
(g(), w("svg", {
|
|
2844
2844
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2845
2845
|
"data-testid": "kui-icon-svg-close-icon",
|
|
@@ -2938,7 +2938,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
2938
2938
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
2939
2939
|
style: Ot(i.value)
|
|
2940
2940
|
}, {
|
|
2941
|
-
default:
|
|
2941
|
+
default: v(() => [
|
|
2942
2942
|
(g(), w("svg", {
|
|
2943
2943
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2944
2944
|
"data-testid": "kui-icon-svg-more-icon",
|
|
@@ -3102,15 +3102,15 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3102
3102
|
return N[1] - G[1];
|
|
3103
3103
|
}), k.map((N) => {
|
|
3104
3104
|
var G, V;
|
|
3105
|
-
const z = N[0], te = (G = O.value) == null ? void 0 : G[z], _ = ((V = a.configSchema) == null ? void 0 : V[z]) || {},
|
|
3105
|
+
const z = N[0], te = (G = O.value) == null ? void 0 : G[z], _ = ((V = a.configSchema) == null ? void 0 : V[z]) || {}, ne = m[z];
|
|
3106
3106
|
return {
|
|
3107
3107
|
key: z,
|
|
3108
3108
|
value: te,
|
|
3109
3109
|
hidden: _.hidden || !1,
|
|
3110
|
-
type: _.type ?? ((
|
|
3111
|
-
label: _.label ?? ((
|
|
3112
|
-
tooltip: _.tooltip ?? ((
|
|
3113
|
-
section: _.section ?? ((
|
|
3110
|
+
type: _.type ?? ((ne == null ? void 0 : ne.type) || pe.Text),
|
|
3111
|
+
label: _.label ?? ((ne == null ? void 0 : ne.label) || o(z)),
|
|
3112
|
+
tooltip: _.tooltip ?? ((ne == null ? void 0 : ne.tooltip) || void 0),
|
|
3113
|
+
section: _.section ?? ((ne == null ? void 0 : ne.section) || He.Advanced)
|
|
3114
3114
|
};
|
|
3115
3115
|
}).filter((N) => !N.hidden && N.key !== a.pluginConfigKey);
|
|
3116
3116
|
}), R = j(() => {
|
|
@@ -3181,14 +3181,14 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3181
3181
|
class: "kong-ui-entity-base-config-card",
|
|
3182
3182
|
"title-tag": e.titleTag
|
|
3183
3183
|
}, ct({
|
|
3184
|
-
actions:
|
|
3184
|
+
actions: v(() => [
|
|
3185
3185
|
y("div", ng, [
|
|
3186
3186
|
Se(f.$slots, "actions", {}, void 0, !0),
|
|
3187
3187
|
x(S, {
|
|
3188
3188
|
class: "config-format-select-label",
|
|
3189
3189
|
"data-testid": "config-format-select-label"
|
|
3190
3190
|
}, {
|
|
3191
|
-
default:
|
|
3191
|
+
default: v(() => [
|
|
3192
3192
|
re(U(e.label), 1)
|
|
3193
3193
|
]),
|
|
3194
3194
|
_: 1
|
|
@@ -3204,20 +3204,20 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3204
3204
|
class: "book-icon",
|
|
3205
3205
|
"data-testid": "book-icon"
|
|
3206
3206
|
}, {
|
|
3207
|
-
default:
|
|
3207
|
+
default: v(() => [
|
|
3208
3208
|
y("a", {
|
|
3209
3209
|
href: e.configCardDoc,
|
|
3210
3210
|
rel: "noopener",
|
|
3211
3211
|
target: "_blank"
|
|
3212
3212
|
}, [
|
|
3213
|
-
x(
|
|
3213
|
+
x(b(Pp), { size: b(Uu) }, null, 8, ["size"])
|
|
3214
3214
|
], 8, ig)
|
|
3215
3215
|
]),
|
|
3216
3216
|
_: 1
|
|
3217
3217
|
})) : J("", !0)
|
|
3218
3218
|
])
|
|
3219
3219
|
]),
|
|
3220
|
-
default:
|
|
3220
|
+
default: v(() => [
|
|
3221
3221
|
h.value ? (g(), P(N, {
|
|
3222
3222
|
key: 0,
|
|
3223
3223
|
"data-testid": "config-card-loader",
|
|
@@ -3228,7 +3228,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3228
3228
|
"data-testid": "config-card-fetch-error",
|
|
3229
3229
|
"icon-variant": "error"
|
|
3230
3230
|
}, {
|
|
3231
|
-
default:
|
|
3231
|
+
default: v(() => [
|
|
3232
3232
|
y("h3", null, U(C.value), 1)
|
|
3233
3233
|
]),
|
|
3234
3234
|
_: 1
|
|
@@ -3244,7 +3244,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3244
3244
|
}, ct({ _: 2 }, [
|
|
3245
3245
|
de(Object.keys(f.$slots), (z) => ({
|
|
3246
3246
|
name: z,
|
|
3247
|
-
fn:
|
|
3247
|
+
fn: v(({ row: te, rowValue: _ }) => [
|
|
3248
3248
|
Se(f.$slots, z, {
|
|
3249
3249
|
row: te,
|
|
3250
3250
|
rowValue: _
|
|
@@ -3258,10 +3258,10 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3258
3258
|
}, [
|
|
3259
3259
|
e.hideTitle ? void 0 : {
|
|
3260
3260
|
name: "title",
|
|
3261
|
-
fn:
|
|
3261
|
+
fn: v(() => [
|
|
3262
3262
|
y("span", tg, [
|
|
3263
3263
|
Se(f.$slots, "title", {}, () => [
|
|
3264
|
-
re(U(
|
|
3264
|
+
re(U(b(r)("baseConfigCard.title")), 1)
|
|
3265
3265
|
], !0)
|
|
3266
3266
|
])
|
|
3267
3267
|
]),
|
|
@@ -3381,18 +3381,18 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3381
3381
|
}), (E, A) => {
|
|
3382
3382
|
const f = H("KSkeleton"), B = H("KEmptyState"), S = H("KAlert"), k = H("KButton"), D = H("KTabs"), N = H("KSlideout");
|
|
3383
3383
|
return g(), P(Le(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3384
|
-
default:
|
|
3384
|
+
default: v(() => [
|
|
3385
3385
|
u.value ? (g(), P(f, {
|
|
3386
3386
|
key: 0,
|
|
3387
3387
|
type: "form"
|
|
3388
3388
|
})) : c.value ? (g(), P(B, {
|
|
3389
3389
|
key: 1,
|
|
3390
|
-
"action-button-text":
|
|
3390
|
+
"action-button-text": b(s)("baseForm.actions.back"),
|
|
3391
3391
|
"data-testid": "form-fetch-error",
|
|
3392
3392
|
"icon-variant": "error",
|
|
3393
3393
|
onClickAction: O
|
|
3394
3394
|
}, {
|
|
3395
|
-
default:
|
|
3395
|
+
default: v(() => [
|
|
3396
3396
|
y("h3", null, U(p.value), 1)
|
|
3397
3397
|
]),
|
|
3398
3398
|
_: 1
|
|
@@ -3417,8 +3417,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3417
3417
|
"data-testid": "form-view-configuration",
|
|
3418
3418
|
onClick: A[0] || (A[0] = (G) => C())
|
|
3419
3419
|
}, {
|
|
3420
|
-
default:
|
|
3421
|
-
re(U(
|
|
3420
|
+
default: v(() => [
|
|
3421
|
+
re(U(b(s)("baseForm.actions.viewConfiguration")), 1)
|
|
3422
3422
|
]),
|
|
3423
3423
|
_: 1
|
|
3424
3424
|
}),
|
|
@@ -3428,8 +3428,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3428
3428
|
disabled: e.isReadonly,
|
|
3429
3429
|
type: "reset"
|
|
3430
3430
|
}, {
|
|
3431
|
-
default:
|
|
3432
|
-
re(U(
|
|
3431
|
+
default: v(() => [
|
|
3432
|
+
re(U(b(s)("baseForm.actions.cancel")), 1)
|
|
3433
3433
|
]),
|
|
3434
3434
|
_: 1
|
|
3435
3435
|
}, 8, ["disabled"]),
|
|
@@ -3439,8 +3439,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3439
3439
|
disabled: m.value,
|
|
3440
3440
|
type: "submit"
|
|
3441
3441
|
}, {
|
|
3442
|
-
default:
|
|
3443
|
-
re(U(
|
|
3442
|
+
default: v(() => [
|
|
3443
|
+
re(U(b(s)("baseForm.actions.save")), 1)
|
|
3444
3444
|
]),
|
|
3445
3445
|
_: 1
|
|
3446
3446
|
}, 8, ["disabled"])
|
|
@@ -3452,17 +3452,17 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3452
3452
|
"data-testid": "form-view-configuration-slideout",
|
|
3453
3453
|
"has-overlay": !1,
|
|
3454
3454
|
"offset-top": 60,
|
|
3455
|
-
title:
|
|
3455
|
+
title: b(s)("baseForm.configuration.title"),
|
|
3456
3456
|
visible: h.value,
|
|
3457
3457
|
onClose: A[1] || (A[1] = (G) => C())
|
|
3458
3458
|
}, {
|
|
3459
|
-
default:
|
|
3460
|
-
y("div", null, U(
|
|
3459
|
+
default: v(() => [
|
|
3460
|
+
y("div", null, U(b(s)("baseForm.configuration.message")), 1),
|
|
3461
3461
|
x(D, {
|
|
3462
3462
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3463
3463
|
tabs: Y.value
|
|
3464
3464
|
}, {
|
|
3465
|
-
json:
|
|
3465
|
+
json: v(() => [
|
|
3466
3466
|
x(fa, {
|
|
3467
3467
|
config: e.config,
|
|
3468
3468
|
"fetcher-url": M.value,
|
|
@@ -3470,7 +3470,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3470
3470
|
"request-method": a.editId ? "put" : "post"
|
|
3471
3471
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3472
3472
|
]),
|
|
3473
|
-
yaml:
|
|
3473
|
+
yaml: v(() => [
|
|
3474
3474
|
x(Ea, {
|
|
3475
3475
|
"yaml-record": a.formFields
|
|
3476
3476
|
}, null, 8, ["yaml-record"])
|
|
@@ -3559,7 +3559,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3559
3559
|
placement: "bottom-start",
|
|
3560
3560
|
text: C.value ? m.value : ""
|
|
3561
3561
|
}, {
|
|
3562
|
-
default:
|
|
3562
|
+
default: v(() => [
|
|
3563
3563
|
Se(O.$slots, "default", {}, void 0, !0)
|
|
3564
3564
|
]),
|
|
3565
3565
|
_: 3
|
|
@@ -3757,7 +3757,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3757
3757
|
title: e.title,
|
|
3758
3758
|
"title-tag": e.titleTag
|
|
3759
3759
|
}, {
|
|
3760
|
-
default:
|
|
3760
|
+
default: v(() => [
|
|
3761
3761
|
x(D, {
|
|
3762
3762
|
ref_key: "tableRefs",
|
|
3763
3763
|
ref: c,
|
|
@@ -3765,11 +3765,11 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3765
3765
|
"cell-attrs": m,
|
|
3766
3766
|
"client-sort": e.enableClientSort,
|
|
3767
3767
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3768
|
-
"empty-state-action-message": e.query ?
|
|
3768
|
+
"empty-state-action-message": e.query ? b(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3769
3769
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3770
3770
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3771
|
-
"empty-state-message": e.query ?
|
|
3772
|
-
"empty-state-title": e.query ?
|
|
3771
|
+
"empty-state-message": e.query ? b(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3772
|
+
"empty-state-title": e.query ? b(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3773
3773
|
error: r.value.hasError,
|
|
3774
3774
|
"error-state-message": r.value.message,
|
|
3775
3775
|
"error-state-title": r.value.title,
|
|
@@ -3791,7 +3791,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3791
3791
|
onSort: B[0] || (B[0] = (G) => O(G)),
|
|
3792
3792
|
"onUpdate:tablePreferences": A
|
|
3793
3793
|
}, ct({
|
|
3794
|
-
toolbar:
|
|
3794
|
+
toolbar: v(({ state: G }) => [
|
|
3795
3795
|
ve(y("div", mg, [
|
|
3796
3796
|
Se(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3797
3797
|
f.$slots["toolbar-button"] ? (g(), w("div", Ag, [
|
|
@@ -3801,7 +3801,7 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3801
3801
|
[Bt, o(G)]
|
|
3802
3802
|
])
|
|
3803
3803
|
]),
|
|
3804
|
-
actions:
|
|
3804
|
+
actions: v(({ row: G, rowKey: V, rowValue: z }) => [
|
|
3805
3805
|
y("div", {
|
|
3806
3806
|
class: "actions-container",
|
|
3807
3807
|
"data-testid": G.name
|
|
@@ -3810,14 +3810,14 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3810
3810
|
"kpop-attributes": { placement: "bottom-end" },
|
|
3811
3811
|
width: e.dropdownMenuWidth
|
|
3812
3812
|
}, {
|
|
3813
|
-
items:
|
|
3813
|
+
items: v(() => [
|
|
3814
3814
|
Se(f.$slots, "actions", {
|
|
3815
3815
|
row: G,
|
|
3816
3816
|
rowKey: V,
|
|
3817
3817
|
rowValue: z
|
|
3818
3818
|
}, void 0, !0)
|
|
3819
3819
|
]),
|
|
3820
|
-
default:
|
|
3820
|
+
default: v(() => [
|
|
3821
3821
|
x(S, {
|
|
3822
3822
|
appearance: "tertiary",
|
|
3823
3823
|
class: "actions-trigger",
|
|
@@ -3825,8 +3825,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3825
3825
|
icon: "",
|
|
3826
3826
|
size: "small"
|
|
3827
3827
|
}, {
|
|
3828
|
-
default:
|
|
3829
|
-
x(
|
|
3828
|
+
default: v(() => [
|
|
3829
|
+
x(b(eg))
|
|
3830
3830
|
]),
|
|
3831
3831
|
_: 1
|
|
3832
3832
|
})
|
|
@@ -3839,13 +3839,13 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3839
3839
|
}, [
|
|
3840
3840
|
de(e.tableHeaders, (G, V) => ({
|
|
3841
3841
|
name: V,
|
|
3842
|
-
fn:
|
|
3842
|
+
fn: v(({ row: z, rowKey: te, rowValue: _ }) => [
|
|
3843
3843
|
x(gg, {
|
|
3844
3844
|
"key-name": String(V),
|
|
3845
3845
|
"row-el": p(z),
|
|
3846
3846
|
tooltip: G.tooltip
|
|
3847
3847
|
}, {
|
|
3848
|
-
default:
|
|
3848
|
+
default: v(() => [
|
|
3849
3849
|
Se(f.$slots, V, {
|
|
3850
3850
|
row: z,
|
|
3851
3851
|
rowKey: te,
|
|
@@ -3860,8 +3860,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3860
3860
|
})),
|
|
3861
3861
|
e.query ? void 0 : {
|
|
3862
3862
|
name: "empty-state-action-icon",
|
|
3863
|
-
fn:
|
|
3864
|
-
x(
|
|
3863
|
+
fn: v(() => [
|
|
3864
|
+
x(b(Rp))
|
|
3865
3865
|
]),
|
|
3866
3866
|
key: "0"
|
|
3867
3867
|
}
|
|
@@ -3934,28 +3934,28 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
3934
3934
|
onCancel: s,
|
|
3935
3935
|
onProceed: o
|
|
3936
3936
|
}, {
|
|
3937
|
-
default:
|
|
3937
|
+
default: v(() => [
|
|
3938
3938
|
e.error ? (g(), w("div", vg, [
|
|
3939
3939
|
x(c, { appearance: "danger" }, {
|
|
3940
|
-
default:
|
|
3940
|
+
default: v(() => [
|
|
3941
3941
|
re(U(e.error), 1)
|
|
3942
3942
|
]),
|
|
3943
3943
|
_: 1
|
|
3944
3944
|
})
|
|
3945
3945
|
])) : J("", !0),
|
|
3946
|
-
x(
|
|
3946
|
+
x(b(n), {
|
|
3947
3947
|
class: "message",
|
|
3948
3948
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3949
3949
|
tag: "p"
|
|
3950
3950
|
}, ct({
|
|
3951
|
-
entityType:
|
|
3951
|
+
entityType: v(() => [
|
|
3952
3952
|
re(U(i.entityType), 1)
|
|
3953
3953
|
]),
|
|
3954
3954
|
_: 2
|
|
3955
3955
|
}, [
|
|
3956
3956
|
i.entityName ? {
|
|
3957
3957
|
name: "entityName",
|
|
3958
|
-
fn:
|
|
3958
|
+
fn: v(() => [
|
|
3959
3959
|
y("strong", null, U(i.entityName), 1)
|
|
3960
3960
|
]),
|
|
3961
3961
|
key: "0"
|
|
@@ -4093,11 +4093,11 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4093
4093
|
placeholder: e.config.placeholder,
|
|
4094
4094
|
"onUpdate:modelValue": m
|
|
4095
4095
|
}, {
|
|
4096
|
-
before:
|
|
4096
|
+
before: v(() => [
|
|
4097
4097
|
x(wr)
|
|
4098
4098
|
]),
|
|
4099
|
-
after:
|
|
4100
|
-
ve(x(
|
|
4099
|
+
after: v(() => [
|
|
4100
|
+
ve(x(b(Jp), {
|
|
4101
4101
|
class: "kong-ui-entity-filter-clear",
|
|
4102
4102
|
onClick: h
|
|
4103
4103
|
}, null, 512), [
|
|
@@ -4111,9 +4111,9 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4111
4111
|
"data-testid": "filter-button",
|
|
4112
4112
|
onClick: c
|
|
4113
4113
|
}, {
|
|
4114
|
-
default:
|
|
4114
|
+
default: v(() => [
|
|
4115
4115
|
x(wr),
|
|
4116
|
-
re(" " + U(
|
|
4116
|
+
re(" " + U(b(n)("filter.filterButtonText")) + " " + U(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4117
4117
|
]),
|
|
4118
4118
|
_: 1
|
|
4119
4119
|
}),
|
|
@@ -4142,30 +4142,30 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4142
4142
|
ve(y("span", xg, null, 512), [
|
|
4143
4143
|
[Bt, l.value.includes(k.value)]
|
|
4144
4144
|
]),
|
|
4145
|
-
x(
|
|
4145
|
+
x(b(Vp), {
|
|
4146
4146
|
class: ge(["menu-item-expand-icon", { expanded: o.value.has(k.value) }]),
|
|
4147
|
-
color:
|
|
4147
|
+
color: b(Pu)
|
|
4148
4148
|
}, null, 8, ["class", "color"])
|
|
4149
4149
|
], 42, Rg),
|
|
4150
4150
|
ve(y("div", Tg, [
|
|
4151
4151
|
y("label", {
|
|
4152
4152
|
class: "menu-item-label",
|
|
4153
4153
|
for: M(k.value)
|
|
4154
|
-
}, U(
|
|
4154
|
+
}, U(b(n)("filter.fieldLabel")), 9, Lg),
|
|
4155
4155
|
((N = (D = e.config.schema) == null ? void 0 : D[k.value]) == null ? void 0 : N.type) === "select" ? (g(), P(S, {
|
|
4156
4156
|
key: 0,
|
|
4157
4157
|
id: M(k.value),
|
|
4158
4158
|
modelValue: s.value[k.value],
|
|
4159
4159
|
"onUpdate:modelValue": (G) => s.value[k.value] = G,
|
|
4160
4160
|
items: C(k.value),
|
|
4161
|
-
placeholder:
|
|
4161
|
+
placeholder: b(n)("filter.selectPlaceholder")
|
|
4162
4162
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), P(f, {
|
|
4163
4163
|
key: 1,
|
|
4164
4164
|
id: M(k.value),
|
|
4165
4165
|
modelValue: s.value[k.value],
|
|
4166
4166
|
"onUpdate:modelValue": (G) => s.value[k.value] = G,
|
|
4167
4167
|
autocomplete: "off",
|
|
4168
|
-
placeholder:
|
|
4168
|
+
placeholder: b(n)("filter.inputPlaceholder"),
|
|
4169
4169
|
type: O(k.value)
|
|
4170
4170
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4171
4171
|
], 512), [
|
|
@@ -4178,8 +4178,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4178
4178
|
size: "small",
|
|
4179
4179
|
onClick: A[0] || (A[0] = (G) => Y(!0))
|
|
4180
4180
|
}, {
|
|
4181
|
-
default:
|
|
4182
|
-
re(U(
|
|
4181
|
+
default: v(() => [
|
|
4182
|
+
re(U(b(n)("filter.applyButtonText")), 1)
|
|
4183
4183
|
]),
|
|
4184
4184
|
_: 1
|
|
4185
4185
|
}),
|
|
@@ -4189,8 +4189,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4189
4189
|
size: "small",
|
|
4190
4190
|
onClick: (G) => I(k.value)
|
|
4191
4191
|
}, {
|
|
4192
|
-
default:
|
|
4193
|
-
re(U(
|
|
4192
|
+
default: v(() => [
|
|
4193
|
+
re(U(b(n)("filter.clearButtonText")), 1)
|
|
4194
4194
|
]),
|
|
4195
4195
|
_: 2
|
|
4196
4196
|
}, 1032, ["onClick"])
|
|
@@ -4205,8 +4205,8 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4205
4205
|
size: "small",
|
|
4206
4206
|
onClick: R
|
|
4207
4207
|
}, {
|
|
4208
|
-
default:
|
|
4209
|
-
re(U(
|
|
4208
|
+
default: v(() => [
|
|
4209
|
+
re(U(b(n)("filter.clearAllButtonText")), 1)
|
|
4210
4210
|
]),
|
|
4211
4211
|
_: 1
|
|
4212
4212
|
})
|
|
@@ -4277,15 +4277,15 @@ const vp = { class: "yaml-config" }, Ea = /* @__PURE__ */ ue({
|
|
|
4277
4277
|
onCancel: u,
|
|
4278
4278
|
onProceed: c
|
|
4279
4279
|
}, {
|
|
4280
|
-
default:
|
|
4281
|
-
x(
|
|
4280
|
+
default: v(() => [
|
|
4281
|
+
x(b(i), {
|
|
4282
4282
|
keypath: `toggleModal.${a.action}.message`,
|
|
4283
4283
|
scope: "global"
|
|
4284
4284
|
}, {
|
|
4285
|
-
entityType:
|
|
4285
|
+
entityType: v(() => [
|
|
4286
4286
|
re(U(e.entityType), 1)
|
|
4287
4287
|
]),
|
|
4288
|
-
entityName:
|
|
4288
|
+
entityName: v(() => [
|
|
4289
4289
|
y("strong", null, U(e.entityName), 1)
|
|
4290
4290
|
]),
|
|
4291
4291
|
_: 1
|
|
@@ -7011,7 +7011,7 @@ const qt = (e) => {
|
|
|
7011
7011
|
}
|
|
7012
7012
|
], Df = {
|
|
7013
7013
|
fields: Pf
|
|
7014
|
-
},
|
|
7014
|
+
}, ht = {
|
|
7015
7015
|
"basic-auth": {
|
|
7016
7016
|
descriptionKey: "plugins.meta.basic-auth.description",
|
|
7017
7017
|
group: K.AUTHENTICATION,
|
|
@@ -7604,7 +7604,10 @@ const qt = (e) => {
|
|
|
7604
7604
|
group: K.ANALYTICS_AND_MONITORING,
|
|
7605
7605
|
isEnterprise: !1,
|
|
7606
7606
|
nameKey: "plugins.meta.opentelemetry.name",
|
|
7607
|
-
scope: [d.GLOBAL, d.SERVICE, d.ROUTE, d.CONSUMER]
|
|
7607
|
+
scope: [d.GLOBAL, d.SERVICE, d.ROUTE, d.CONSUMER],
|
|
7608
|
+
fieldRules: {
|
|
7609
|
+
atLeastOneOf: [["config.traces_endpoint", "config.logs_endpoint"]]
|
|
7610
|
+
}
|
|
7608
7611
|
},
|
|
7609
7612
|
"websocket-validator": {
|
|
7610
7613
|
descriptionKey: "plugins.meta.websocket-validator.description",
|
|
@@ -7753,11 +7756,11 @@ const qt = (e) => {
|
|
|
7753
7756
|
jwt_secrets: Lf
|
|
7754
7757
|
}, Yf = (e) => {
|
|
7755
7758
|
var i;
|
|
7756
|
-
const t = ((i =
|
|
7759
|
+
const t = ((i = ht[e]) == null ? void 0 : i.imageName) || e || "missing", n = new URL((/* @__PURE__ */ Object.assign({ "../assets/images/plugin-icons/acl.png": Tm, "../assets/images/plugin-icons/acme.png": Lm, "../assets/images/plugin-icons/ai-azure-content-safety.png": jm, "../assets/images/plugin-icons/ai-data-sanitization.png": Nm, "../assets/images/plugin-icons/ai-prompt-decorator.png": Pm, "../assets/images/plugin-icons/ai-prompt-guard.png": Dm, "../assets/images/plugin-icons/ai-prompt-template.png": Um, "../assets/images/plugin-icons/ai-proxy.png": Ym, "../assets/images/plugin-icons/ai-rate-limiting-advanced.png": Gm, "../assets/images/plugin-icons/ai-request-transformer.png": Hm, "../assets/images/plugin-icons/ai-response-transformer.png": Vm, "../assets/images/plugin-icons/app-dynamics.png": Fm, "../assets/images/plugin-icons/application-registration.png": zm, "../assets/images/plugin-icons/aws-lambda.png": Km, "../assets/images/plugin-icons/azure-functions.png": qm, "../assets/images/plugin-icons/basic-auth.png": Xm, "../assets/images/plugin-icons/bot-detection.png": Jm, "../assets/images/plugin-icons/canary.png": Zm, "../assets/images/plugin-icons/collector.png": Wm, "../assets/images/plugin-icons/correlation-id.png": Qm, "../assets/images/plugin-icons/cors.png": _m, "../assets/images/plugin-icons/datadog.png": $m, "../assets/images/plugin-icons/degraphql.png": eA, "../assets/images/plugin-icons/dynamic-ssl.png": tA, "../assets/images/plugin-icons/exit-transformer.png": nA, "../assets/images/plugin-icons/file-log.png": iA, "../assets/images/plugin-icons/forward-proxy.png": aA, "../assets/images/plugin-icons/graphql-rate-limiting-advanced.png": rA, "../assets/images/plugin-icons/graphql.png": sA, "../assets/images/plugin-icons/grpc-gateway.png": oA, "../assets/images/plugin-icons/grpc-web.png": lA, "../assets/images/plugin-icons/hmac-auth.png": uA, "../assets/images/plugin-icons/http-log.png": cA, "../assets/images/plugin-icons/ip-restriction.png": dA, "../assets/images/plugin-icons/jq.png": pA, "../assets/images/plugin-icons/jwe-decrypt.png": gA, "../assets/images/plugin-icons/jwt-signer.png": mA, "../assets/images/plugin-icons/jwt.png": AA, "../assets/images/plugin-icons/kafka-log.png": fA, "../assets/images/plugin-icons/kafka-upstream.png": hA, "../assets/images/plugin-icons/key-auth-enc.png": yA, "../assets/images/plugin-icons/key-auth.png": vA, "../assets/images/plugin-icons/kong-function.png": bA, "../assets/images/plugin-icons/kubernetes-sidecar-injector.png": wA, "../assets/images/plugin-icons/ldap-auth-advanced.png": CA, "../assets/images/plugin-icons/ldap-auth.png": EA, "../assets/images/plugin-icons/loggly.png": kA, "../assets/images/plugin-icons/missing.png": OA, "../assets/images/plugin-icons/mocking.png": IA, "../assets/images/plugin-icons/mtls-auth.png": MA, "../assets/images/plugin-icons/new.png": BA, "../assets/images/plugin-icons/oas-validation.png": SA, "../assets/images/plugin-icons/oauth2-introspection.png": RA, "../assets/images/plugin-icons/oauth2.png": xA, "../assets/images/plugin-icons/opa.png": TA, "../assets/images/plugin-icons/openid-connect.png": LA, "../assets/images/plugin-icons/opentelemetry.png": jA, "../assets/images/plugin-icons/openwhisk.png": NA, "../assets/images/plugin-icons/prometheus.png": PA, "../assets/images/plugin-icons/proxy-cache.png": DA, "../assets/images/plugin-icons/rate-limiting-advanced.png": UA, "../assets/images/plugin-icons/rate-limiting.png": YA, "../assets/images/plugin-icons/request-size-limiting.png": GA, "../assets/images/plugin-icons/request-termination.png": HA, "../assets/images/plugin-icons/request-transformer-advanced.png": VA, "../assets/images/plugin-icons/request-transformer.png": FA, "../assets/images/plugin-icons/request-validator.png": zA, "../assets/images/plugin-icons/response-ratelimiting.png": KA, "../assets/images/plugin-icons/response-transformer-advanced.png": qA, "../assets/images/plugin-icons/response-transformer.png": XA, "../assets/images/plugin-icons/route-by-header.png": JA, "../assets/images/plugin-icons/route-transformer-advanced.png": ZA, "../assets/images/plugin-icons/runscope.png": WA, "../assets/images/plugin-icons/saml.png": QA, "../assets/images/plugin-icons/session.png": _A, "../assets/images/plugin-icons/statsd-advanced.png": $A, "../assets/images/plugin-icons/statsd.png": ef, "../assets/images/plugin-icons/syslog.png": tf, "../assets/images/plugin-icons/tcp-log.png": nf, "../assets/images/plugin-icons/tls-handshake-modifier.png": af, "../assets/images/plugin-icons/tls-metadata-headers.png": rf, "../assets/images/plugin-icons/udp-log.png": sf, "../assets/images/plugin-icons/upstream-timeout.png": of, "../assets/images/plugin-icons/upstream-tls.png": lf, "../assets/images/plugin-icons/vault-auth.png": uf, "../assets/images/plugin-icons/websocket-size-limit.png": cf, "../assets/images/plugin-icons/websocket-validator.png": df, "../assets/images/plugin-icons/xml-threat-protection.png": pf, "../assets/images/plugin-icons/zipkin.png": gf }))[`../assets/images/plugin-icons/${t}.png`], import.meta.url).href;
|
|
7757
7760
|
return n.includes("undefined") ? 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 : n;
|
|
7758
7761
|
}, Gf = () => {
|
|
7759
7762
|
const { i18n: { t: e } } = Ti(), t = {}, n = {};
|
|
7760
|
-
for (const [a, r] of Object.entries(
|
|
7763
|
+
for (const [a, r] of Object.entries(ht))
|
|
7761
7764
|
t[a] = {
|
|
7762
7765
|
...r,
|
|
7763
7766
|
name: e(r.nameKey),
|
|
@@ -9595,16 +9598,16 @@ const vl = {
|
|
|
9595
9598
|
const Y = H("KInput");
|
|
9596
9599
|
return g(), w("div", G1, [
|
|
9597
9600
|
x(Y, St(I.$attrs, {
|
|
9598
|
-
id:
|
|
9601
|
+
id: b(o)(e.schema),
|
|
9599
9602
|
autocomplete: e.schema.autocomplete,
|
|
9600
9603
|
class: e.schema.fieldClasses,
|
|
9601
9604
|
disabled: e.disabled || null,
|
|
9602
|
-
help: e.hint ? e.hint : c.value === "color" || c.value === "range" ?
|
|
9605
|
+
help: e.hint ? e.hint : c.value === "color" || c.value === "range" ? b(u) : void 0,
|
|
9603
9606
|
max: e.schema.max,
|
|
9604
9607
|
maxlength: e.schema.maxlength,
|
|
9605
9608
|
min: e.schema.min,
|
|
9606
9609
|
minlength: e.schema.minlength,
|
|
9607
|
-
"model-value":
|
|
9610
|
+
"model-value": b(u),
|
|
9608
9611
|
name: e.schema.inputName,
|
|
9609
9612
|
pattern: e.schema.pattern,
|
|
9610
9613
|
placeholder: e.schema.placeholder,
|
|
@@ -10042,7 +10045,7 @@ const D0 = {
|
|
|
10042
10045
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
10043
10046
|
style: Ot(i.value)
|
|
10044
10047
|
}, {
|
|
10045
|
-
default:
|
|
10048
|
+
default: v(() => [
|
|
10046
10049
|
(g(), w("svg", {
|
|
10047
10050
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
10048
10051
|
"data-testid": "kui-icon-svg-add-icon",
|
|
@@ -10141,7 +10144,7 @@ const D0 = {
|
|
|
10141
10144
|
"data-testid": "kui-icon-wrapper-remove-icon",
|
|
10142
10145
|
style: Ot(i.value)
|
|
10143
10146
|
}, {
|
|
10144
|
-
default:
|
|
10147
|
+
default: v(() => [
|
|
10145
10148
|
(g(), w("svg", {
|
|
10146
10149
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
10147
10150
|
"data-testid": "kui-icon-svg-remove-icon",
|
|
@@ -10240,7 +10243,7 @@ const D0 = {
|
|
|
10240
10243
|
"data-testid": "kui-icon-wrapper-trash-icon",
|
|
10241
10244
|
style: Ot(i.value)
|
|
10242
10245
|
}, {
|
|
10243
|
-
default:
|
|
10246
|
+
default: v(() => [
|
|
10244
10247
|
(g(), w("svg", {
|
|
10245
10248
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
10246
10249
|
"data-testid": "kui-icon-svg-trash-icon",
|
|
@@ -10276,7 +10279,7 @@ const D0 = {
|
|
|
10276
10279
|
const i = H("KCard"), a = H("KButton");
|
|
10277
10280
|
return g(), w("div", ew, [
|
|
10278
10281
|
x(i, { class: "card" }, {
|
|
10279
|
-
default:
|
|
10282
|
+
default: v(() => [
|
|
10280
10283
|
Se(t.$slots, "default", {}, void 0, !0)
|
|
10281
10284
|
]),
|
|
10282
10285
|
_: 3
|
|
@@ -10286,8 +10289,8 @@ const D0 = {
|
|
|
10286
10289
|
class: "array-card-remove-button",
|
|
10287
10290
|
onClick: n[0] || (n[0] = (r) => t.$emit("remove-item"))
|
|
10288
10291
|
}, {
|
|
10289
|
-
default:
|
|
10290
|
-
x(
|
|
10292
|
+
default: v(() => [
|
|
10293
|
+
x(b(ii))
|
|
10291
10294
|
]),
|
|
10292
10295
|
_: 1
|
|
10293
10296
|
})
|
|
@@ -10313,8 +10316,8 @@ const D0 = {
|
|
|
10313
10316
|
class: "delete",
|
|
10314
10317
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
10315
10318
|
}, {
|
|
10316
|
-
default:
|
|
10317
|
-
x(
|
|
10319
|
+
default: v(() => [
|
|
10320
|
+
x(b(ii))
|
|
10318
10321
|
]),
|
|
10319
10322
|
_: 1
|
|
10320
10323
|
})
|
|
@@ -10334,7 +10337,7 @@ const D0 = {
|
|
|
10334
10337
|
class: "delete",
|
|
10335
10338
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
10336
10339
|
}, {
|
|
10337
|
-
default:
|
|
10340
|
+
default: v(() => [
|
|
10338
10341
|
re(" - Remove Field ")
|
|
10339
10342
|
]),
|
|
10340
10343
|
_: 1
|
|
@@ -10492,7 +10495,7 @@ function fw(e, t, n, i, a, r) {
|
|
|
10492
10495
|
onChange: r.onSelected,
|
|
10493
10496
|
onQueryChange: r.onQueryChange
|
|
10494
10497
|
}, {
|
|
10495
|
-
"item-template":
|
|
10498
|
+
"item-template": v(({ item: o }) => [
|
|
10496
10499
|
y("span", {
|
|
10497
10500
|
class: "first-part",
|
|
10498
10501
|
"data-testid": o.id && `${o.id}-0`,
|
|
@@ -10504,7 +10507,7 @@ function fw(e, t, n, i, a, r) {
|
|
|
10504
10507
|
"data-testid": o.id && `${o.id}-${u + 1}` || u + 1
|
|
10505
10508
|
}, U(l), 9, mw))), 128))
|
|
10506
10509
|
]),
|
|
10507
|
-
empty:
|
|
10510
|
+
empty: v(() => [
|
|
10508
10511
|
y("div", Aw, [
|
|
10509
10512
|
y("span", null, U(a.message), 1)
|
|
10510
10513
|
])
|
|
@@ -10540,7 +10543,7 @@ function vw(e, t, n, i, a, r) {
|
|
|
10540
10543
|
x(s, { class: "metric-add-icon" })
|
|
10541
10544
|
]),
|
|
10542
10545
|
x(Jl, { name: "slide-fade" }, {
|
|
10543
|
-
default:
|
|
10546
|
+
default: v(() => [
|
|
10544
10547
|
a.contentVisible ? (g(), w("div", yw, [
|
|
10545
10548
|
Se(e.$slots, "default"),
|
|
10546
10549
|
x(l, {
|
|
@@ -10548,7 +10551,7 @@ function vw(e, t, n, i, a, r) {
|
|
|
10548
10551
|
class: "metric-remove-button",
|
|
10549
10552
|
onClick: t[1] || (t[1] = (u) => e.$emit("remove-item"))
|
|
10550
10553
|
}, {
|
|
10551
|
-
default:
|
|
10554
|
+
default: v(() => [
|
|
10552
10555
|
x(o)
|
|
10553
10556
|
]),
|
|
10554
10557
|
_: 1
|
|
@@ -10783,7 +10786,7 @@ function Ww(e, t, n, i, a, r) {
|
|
|
10783
10786
|
type: "button",
|
|
10784
10787
|
onClick: (p) => r.removeElement(c)
|
|
10785
10788
|
}, {
|
|
10786
|
-
default:
|
|
10789
|
+
default: v(() => [
|
|
10787
10790
|
x(s)
|
|
10788
10791
|
]),
|
|
10789
10792
|
_: 2
|
|
@@ -10833,7 +10836,7 @@ function Ww(e, t, n, i, a, r) {
|
|
|
10833
10836
|
disabled: !a.newKeyName,
|
|
10834
10837
|
onClick: r.addKey
|
|
10835
10838
|
}, {
|
|
10836
|
-
default:
|
|
10839
|
+
default: v(() => [
|
|
10837
10840
|
re(" + Add " + U(e.schema.buttonLabel || e.schema.label), 1)
|
|
10838
10841
|
]),
|
|
10839
10842
|
_: 1
|
|
@@ -10954,7 +10957,7 @@ function uC(e, t, n, i, a, r) {
|
|
|
10954
10957
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
10955
10958
|
onRemoveItem: (p) => r.removeElement(c)
|
|
10956
10959
|
}, {
|
|
10957
|
-
default:
|
|
10960
|
+
default: v(() => [
|
|
10958
10961
|
(g(), P(Le(r.getFieldType(e.schema.items)), {
|
|
10959
10962
|
"form-options": e.formOptions,
|
|
10960
10963
|
model: u,
|
|
@@ -10977,7 +10980,7 @@ function uC(e, t, n, i, a, r) {
|
|
|
10977
10980
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
10978
10981
|
onRemoveItem: (p) => r.removeElement(c)
|
|
10979
10982
|
}, {
|
|
10980
|
-
default:
|
|
10983
|
+
default: v(() => {
|
|
10981
10984
|
var p;
|
|
10982
10985
|
return [
|
|
10983
10986
|
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (g(), P(s, St({
|
|
@@ -11051,7 +11054,7 @@ function uC(e, t, n, i, a, r) {
|
|
|
11051
11054
|
type: "button",
|
|
11052
11055
|
onClick: r.newElement
|
|
11053
11056
|
}, {
|
|
11054
|
-
default:
|
|
11057
|
+
default: v(() => [
|
|
11055
11058
|
re(U(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
11056
11059
|
]),
|
|
11057
11060
|
_: 1
|
|
@@ -11284,7 +11287,7 @@ function xC(e, t, n, i, a, r) {
|
|
|
11284
11287
|
r.removePair(u);
|
|
11285
11288
|
}
|
|
11286
11289
|
}, {
|
|
11287
|
-
default:
|
|
11290
|
+
default: v(() => [
|
|
11288
11291
|
x(s)
|
|
11289
11292
|
]),
|
|
11290
11293
|
_: 2
|
|
@@ -11297,7 +11300,7 @@ function xC(e, t, n, i, a, r) {
|
|
|
11297
11300
|
type: "button",
|
|
11298
11301
|
onClick: r.addPair
|
|
11299
11302
|
}, {
|
|
11300
|
-
default:
|
|
11303
|
+
default: v(() => [
|
|
11301
11304
|
re(U(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
|
|
11302
11305
|
]),
|
|
11303
11306
|
_: 1
|
|
@@ -11342,10 +11345,10 @@ const TC = /* @__PURE__ */ be(MC, [["render", xC], ["__scopeId", "data-v-76ba2b2
|
|
|
11342
11345
|
class: ge(["field-label", e.schema.fieldClasses])
|
|
11343
11346
|
}, [
|
|
11344
11347
|
x(o, {
|
|
11345
|
-
id:
|
|
11348
|
+
id: b(i)(e.schema)
|
|
11346
11349
|
}, {
|
|
11347
|
-
default:
|
|
11348
|
-
re(U(
|
|
11350
|
+
default: v(() => [
|
|
11351
|
+
re(U(b(a)), 1)
|
|
11349
11352
|
]),
|
|
11350
11353
|
_: 1
|
|
11351
11354
|
}, 8, ["id"])
|
|
@@ -11657,7 +11660,7 @@ function yE(e, t, n, i, a, r) {
|
|
|
11657
11660
|
tooltipId: r.getTooltipId(n.field)
|
|
11658
11661
|
} : void 0
|
|
11659
11662
|
}, ct({
|
|
11660
|
-
default:
|
|
11663
|
+
default: v(() => [
|
|
11661
11664
|
y("div", lE, [
|
|
11662
11665
|
y("span", {
|
|
11663
11666
|
innerHTML: r.formattedLabel(n.field.label)
|
|
@@ -11667,7 +11670,7 @@ function yE(e, t, n, i, a, r) {
|
|
|
11667
11670
|
x(s, {
|
|
11668
11671
|
href: n.field.link
|
|
11669
11672
|
}, {
|
|
11670
|
-
default:
|
|
11673
|
+
default: v(() => [
|
|
11671
11674
|
dE
|
|
11672
11675
|
]),
|
|
11673
11676
|
_: 1
|
|
@@ -11678,7 +11681,7 @@ function yE(e, t, n, i, a, r) {
|
|
|
11678
11681
|
}, [
|
|
11679
11682
|
n.options.helpAsHtml && n.field.help ? {
|
|
11680
11683
|
name: "tooltip",
|
|
11681
|
-
fn:
|
|
11684
|
+
fn: v(() => [
|
|
11682
11685
|
y("div", {
|
|
11683
11686
|
innerHTML: n.field.help
|
|
11684
11687
|
}, null, 8, oE)
|
|
@@ -11863,7 +11866,7 @@ function EE(e, t, n, i, a, r) {
|
|
|
11863
11866
|
const s = H("form-group"), o = H("KCollapse");
|
|
11864
11867
|
return n.schema != null ? (g(), w("div", wE, [
|
|
11865
11868
|
n.schema.fields ? (g(), P(Le(n.tag), { key: 0 }, {
|
|
11866
|
-
default:
|
|
11869
|
+
default: v(() => [
|
|
11867
11870
|
(g(!0), w(oe, null, de(r.fields, (l) => (g(), w(oe, {
|
|
11868
11871
|
key: l.model
|
|
11869
11872
|
}, [
|
|
@@ -11892,7 +11895,7 @@ function EE(e, t, n, i, a, r) {
|
|
|
11892
11895
|
"model-value": !1,
|
|
11893
11896
|
title: l.collapsible.title
|
|
11894
11897
|
}, ct({
|
|
11895
|
-
default:
|
|
11898
|
+
default: v(() => {
|
|
11896
11899
|
var c, p, m, h;
|
|
11897
11900
|
return [
|
|
11898
11901
|
(c = l.slots) != null && c.beforeContent ? Se(e.$slots, (p = l.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : J("", !0),
|
|
@@ -11900,7 +11903,7 @@ function EE(e, t, n, i, a, r) {
|
|
|
11900
11903
|
key: 2,
|
|
11901
11904
|
class: ge(e.getFieldRowClasses(l))
|
|
11902
11905
|
}, {
|
|
11903
|
-
default:
|
|
11906
|
+
default: v(() => [
|
|
11904
11907
|
(g(!0), w(oe, null, de(l.fields, (M) => (g(), w(oe, {
|
|
11905
11908
|
key: M.model
|
|
11906
11909
|
}, [
|
|
@@ -11928,11 +11931,11 @@ function EE(e, t, n, i, a, r) {
|
|
|
11928
11931
|
"trigger-label": a.collapseStates[`group-${u}-nested`] ?? !0 ? l.collapsible.nestedCollapsible.triggerLabel.expand : l.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
11929
11932
|
"onUpdate:modelValue": (M) => a.collapseStates[`group-${u}-nested`] = M
|
|
11930
11933
|
}, {
|
|
11931
|
-
default:
|
|
11934
|
+
default: v(() => [
|
|
11932
11935
|
(g(), P(Le(n.tag), {
|
|
11933
11936
|
class: ge(e.getFieldRowClasses(l))
|
|
11934
11937
|
}, {
|
|
11935
|
-
default:
|
|
11938
|
+
default: v(() => [
|
|
11936
11939
|
(g(!0), w(oe, null, de(l.collapsible.nestedCollapsible.fields, (M) => (g(), w(oe, {
|
|
11937
11940
|
key: M.model
|
|
11938
11941
|
}, [
|
|
@@ -11961,7 +11964,7 @@ function EE(e, t, n, i, a, r) {
|
|
|
11961
11964
|
}, [
|
|
11962
11965
|
l.collapsible.description ? {
|
|
11963
11966
|
name: "visible-content",
|
|
11964
|
-
fn:
|
|
11967
|
+
fn: v(() => [
|
|
11965
11968
|
re(U(l.collapsible.description), 1)
|
|
11966
11969
|
]),
|
|
11967
11970
|
key: "0"
|
|
@@ -11970,7 +11973,7 @@ function EE(e, t, n, i, a, r) {
|
|
|
11970
11973
|
key: 1,
|
|
11971
11974
|
class: ge(e.getFieldRowClasses(l))
|
|
11972
11975
|
}, {
|
|
11973
|
-
default:
|
|
11976
|
+
default: v(() => [
|
|
11974
11977
|
l.legend ? (g(), w("legend", CE, U(l.legend), 1)) : J("", !0),
|
|
11975
11978
|
(g(!0), w(oe, null, de(l.fields, (c) => (g(), w(oe, {
|
|
11976
11979
|
key: c.model
|
|
@@ -12465,11 +12468,11 @@ function HE(e, t, n, i, a, r) {
|
|
|
12465
12468
|
onModelUpdated: n.onModelUpdated
|
|
12466
12469
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : J("", !0),
|
|
12467
12470
|
x(p, { tabs: a.tabs }, {
|
|
12468
|
-
common:
|
|
12471
|
+
common: v(() => [
|
|
12469
12472
|
y("div", BE, [
|
|
12470
12473
|
y("div", SE, [
|
|
12471
12474
|
x(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
12472
|
-
default:
|
|
12475
|
+
default: v(() => [
|
|
12473
12476
|
RE
|
|
12474
12477
|
]),
|
|
12475
12478
|
_: 1
|
|
@@ -12484,7 +12487,7 @@ function HE(e, t, n, i, a, r) {
|
|
|
12484
12487
|
onModelUpdated: n.onModelUpdated
|
|
12485
12488
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : J("", !0),
|
|
12486
12489
|
x(l, null, {
|
|
12487
|
-
default:
|
|
12490
|
+
default: v(() => [
|
|
12488
12491
|
re("Auth Methods")
|
|
12489
12492
|
]),
|
|
12490
12493
|
_: 1
|
|
@@ -12499,7 +12502,7 @@ function HE(e, t, n, i, a, r) {
|
|
|
12499
12502
|
"onUpdate:modelValue": (h) => m.prop = h,
|
|
12500
12503
|
onChange: (h) => r.handleUpdate(h, m.value)
|
|
12501
12504
|
}, {
|
|
12502
|
-
default:
|
|
12505
|
+
default: v(() => [
|
|
12503
12506
|
re(U(m.label), 1)
|
|
12504
12507
|
]),
|
|
12505
12508
|
_: 2
|
|
@@ -12514,11 +12517,11 @@ function HE(e, t, n, i, a, r) {
|
|
|
12514
12517
|
}, null, 8, ["modelValue", "onChange"])
|
|
12515
12518
|
])
|
|
12516
12519
|
]),
|
|
12517
|
-
authorization:
|
|
12520
|
+
authorization: v(() => [
|
|
12518
12521
|
y("div", LE, [
|
|
12519
12522
|
y("div", jE, [
|
|
12520
12523
|
x(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
12521
|
-
default:
|
|
12524
|
+
default: v(() => [
|
|
12522
12525
|
NE
|
|
12523
12526
|
]),
|
|
12524
12527
|
_: 1
|
|
@@ -12534,11 +12537,11 @@ function HE(e, t, n, i, a, r) {
|
|
|
12534
12537
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : J("", !0)
|
|
12535
12538
|
])
|
|
12536
12539
|
]),
|
|
12537
|
-
advanced:
|
|
12540
|
+
advanced: v(() => [
|
|
12538
12541
|
y("div", DE, [
|
|
12539
12542
|
y("div", UE, [
|
|
12540
12543
|
x(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
12541
|
-
default:
|
|
12544
|
+
default: v(() => [
|
|
12542
12545
|
YE
|
|
12543
12546
|
]),
|
|
12544
12547
|
_: 1
|
|
@@ -12966,7 +12969,7 @@ const VE = /* @__PURE__ */ be(ME, [["render", HE], ["__scopeId", "data-v-2db4bab
|
|
|
12966
12969
|
onModelUpdated: e.onModelUpdated
|
|
12967
12970
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : J("", !0),
|
|
12968
12971
|
x(S, { tabs: I }, {
|
|
12969
|
-
general:
|
|
12972
|
+
general: v(() => [
|
|
12970
12973
|
y("div", _E, [
|
|
12971
12974
|
$E,
|
|
12972
12975
|
ek,
|
|
@@ -13002,7 +13005,7 @@ const VE = /* @__PURE__ */ be(ME, [["render", HE], ["__scopeId", "data-v-2db4bab
|
|
|
13002
13005
|
])
|
|
13003
13006
|
])
|
|
13004
13007
|
]),
|
|
13005
|
-
storage:
|
|
13008
|
+
storage: v(() => [
|
|
13006
13009
|
y("div", ik, [
|
|
13007
13010
|
ak,
|
|
13008
13011
|
rk,
|
|
@@ -13045,7 +13048,7 @@ const VE = /* @__PURE__ */ be(ME, [["render", HE], ["__scopeId", "data-v-2db4bab
|
|
|
13045
13048
|
])
|
|
13046
13049
|
])
|
|
13047
13050
|
]),
|
|
13048
|
-
advanced:
|
|
13051
|
+
advanced: v(() => [
|
|
13049
13052
|
y("div", ok, [
|
|
13050
13053
|
lk,
|
|
13051
13054
|
uk,
|
|
@@ -13148,9 +13151,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13148
13151
|
const N = ((D = (k = r.formSchema) == null ? void 0 : k.fields) == null ? void 0 : D.filter((_) => !i(_.model))) ?? [], G = [], V = [], z = [];
|
|
13149
13152
|
let te = !1;
|
|
13150
13153
|
for (const _ of N) {
|
|
13151
|
-
const
|
|
13152
|
-
if (
|
|
13153
|
-
if (
|
|
13154
|
+
const ne = _.model;
|
|
13155
|
+
if (ne !== void 0) {
|
|
13156
|
+
if (ne.startsWith("config-redis-")) {
|
|
13154
13157
|
(_.model === "config-redis-cluster_addresses" || _.model === "config-redis-sentinel_addresses") && (_.inputAttributes.help = a("rla.redis.address_example")), V.push(_);
|
|
13155
13158
|
continue;
|
|
13156
13159
|
}
|
|
@@ -13184,7 +13187,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13184
13187
|
), M = j(() => {
|
|
13185
13188
|
var k, D, N, G, V, z;
|
|
13186
13189
|
const te = (N = (D = (k = r.formSchema) == null ? void 0 : k.fields) == null ? void 0 : D.find((_) => _.model === "config-window_type")) == null ? void 0 : N.default;
|
|
13187
|
-
return (((z = (V = (G = r.formSchema) == null ? void 0 : G.fields) == null ? void 0 : V.find((_) => _.model === "config-window_type")) == null ? void 0 : z.values) ?? []).sort((_,
|
|
13190
|
+
return (((z = (V = (G = r.formSchema) == null ? void 0 : G.fields) == null ? void 0 : V.find((_) => _.model === "config-window_type")) == null ? void 0 : z.values) ?? []).sort((_, ne) => _ === te ? -1 : ne === te ? 1 : 0);
|
|
13188
13191
|
}), C = j(() => {
|
|
13189
13192
|
var k;
|
|
13190
13193
|
const D = (k = r.formModel["config-limit"]) == null ? void 0 : k.map((N, G) => {
|
|
@@ -13246,7 +13249,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13246
13249
|
}
|
|
13247
13250
|
};
|
|
13248
13251
|
return (k, D) => {
|
|
13249
|
-
const N = H("VueFormGenerator"), G = H("KLabel"), V = H("KRadio"), z = H("KInput"), te = H("KButton"), _ = H("KBadge"),
|
|
13252
|
+
const N = H("VueFormGenerator"), G = H("KLabel"), V = H("KRadio"), z = H("KInput"), te = H("KButton"), _ = H("KBadge"), ne = H("KTooltip"), ce = H("KCard"), Z = H("KSelect"), $ = H("KCollapse");
|
|
13250
13253
|
return g(), w(oe, null, [
|
|
13251
13254
|
y("div", pk, [
|
|
13252
13255
|
x(N, {
|
|
@@ -13256,20 +13259,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13256
13259
|
onModelUpdated: D[0] || (D[0] = (Q, F) => k.onModelUpdated(Q, F))
|
|
13257
13260
|
}, null, 8, ["model", "options", "schema"]),
|
|
13258
13261
|
x(ce, { class: "rla-form-request-limits" }, {
|
|
13259
|
-
title:
|
|
13262
|
+
title: v(() => [
|
|
13260
13263
|
x(G, {
|
|
13261
13264
|
class: "rla-form-request-limits-title",
|
|
13262
13265
|
for: "rla-form-request-limits-legend",
|
|
13263
13266
|
required: ""
|
|
13264
13267
|
}, {
|
|
13265
|
-
default:
|
|
13266
|
-
re(U(
|
|
13268
|
+
default: v(() => [
|
|
13269
|
+
re(U(b(a)("rla.request_limits.title")), 1)
|
|
13267
13270
|
]),
|
|
13268
13271
|
_: 1
|
|
13269
13272
|
}),
|
|
13270
|
-
y("div", gk, U(
|
|
13273
|
+
y("div", gk, U(b(a)("rla.request_limits.subtitle")), 1)
|
|
13271
13274
|
]),
|
|
13272
|
-
default:
|
|
13275
|
+
default: v(() => [
|
|
13273
13276
|
y("div", mk, [
|
|
13274
13277
|
y("div", Ak, [
|
|
13275
13278
|
x(G, {
|
|
@@ -13279,13 +13282,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13279
13282
|
placement: "top"
|
|
13280
13283
|
}
|
|
13281
13284
|
}, {
|
|
13282
|
-
tooltip:
|
|
13285
|
+
tooltip: v(() => [
|
|
13283
13286
|
y("div", {
|
|
13284
|
-
innerHTML:
|
|
13287
|
+
innerHTML: b(a)("rla.window_type.help")
|
|
13285
13288
|
}, null, 8, fk)
|
|
13286
13289
|
]),
|
|
13287
|
-
default:
|
|
13288
|
-
re(U(
|
|
13290
|
+
default: v(() => [
|
|
13291
|
+
re(U(b(a)("rla.window_type.label")) + " ", 1)
|
|
13289
13292
|
]),
|
|
13290
13293
|
_: 1
|
|
13291
13294
|
}),
|
|
@@ -13297,8 +13300,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13297
13300
|
"selected-value": Q,
|
|
13298
13301
|
"onUpdate:modelValue": E
|
|
13299
13302
|
}, {
|
|
13300
|
-
default:
|
|
13301
|
-
re(U(
|
|
13303
|
+
default: v(() => [
|
|
13304
|
+
re(U(b(a)(`rla.window_type.options.${Q}`)), 1)
|
|
13302
13305
|
]),
|
|
13303
13306
|
_: 2
|
|
13304
13307
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
@@ -13311,8 +13314,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13311
13314
|
x(G, {
|
|
13312
13315
|
for: `rla-form-request-limits-item-${F}-legend`
|
|
13313
13316
|
}, {
|
|
13314
|
-
default:
|
|
13315
|
-
re(U(
|
|
13317
|
+
default: v(() => [
|
|
13318
|
+
re(U(b(a)("rla.request_limits.label_index", { index: F + 1 })), 1)
|
|
13316
13319
|
]),
|
|
13317
13320
|
_: 2
|
|
13318
13321
|
}, 1032, ["for"]),
|
|
@@ -13323,18 +13326,18 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13323
13326
|
}, [
|
|
13324
13327
|
x(z, {
|
|
13325
13328
|
"model-value": Q.limit && Q.limit.toString(),
|
|
13326
|
-
placeholder:
|
|
13329
|
+
placeholder: b(a)("rla.request_limits.request_number"),
|
|
13327
13330
|
type: "number",
|
|
13328
13331
|
"onUpdate:modelValue": (ye) => A(F, Number.parseInt(ye))
|
|
13329
13332
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
13330
|
-
y("div", null, U(
|
|
13333
|
+
y("div", null, U(b(a)("rla.request_limits.interval_determiner")), 1),
|
|
13331
13334
|
x(z, {
|
|
13332
13335
|
"model-value": Q.windowSize && Q.windowSize.toString(),
|
|
13333
|
-
placeholder:
|
|
13336
|
+
placeholder: b(a)("rla.request_limits.time_interval"),
|
|
13334
13337
|
type: "number",
|
|
13335
13338
|
"onUpdate:modelValue": (ye) => f(F, Number.parseInt(ye))
|
|
13336
13339
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
13337
|
-
y("div", null, U(
|
|
13340
|
+
y("div", null, U(b(a)("rla.request_limits.seconds")), 1)
|
|
13338
13341
|
], 8, bk),
|
|
13339
13342
|
y("div", wk, [
|
|
13340
13343
|
x(te, {
|
|
@@ -13342,8 +13345,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13342
13345
|
disabled: C.value.length <= 1,
|
|
13343
13346
|
onClick: () => S(F)
|
|
13344
13347
|
}, {
|
|
13345
|
-
default:
|
|
13346
|
-
x(
|
|
13348
|
+
default: v(() => [
|
|
13349
|
+
x(b(J0))
|
|
13347
13350
|
]),
|
|
13348
13351
|
_: 2
|
|
13349
13352
|
}, 1032, ["disabled", "onClick"]),
|
|
@@ -13351,8 +13354,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13351
13354
|
appearance: "tertiary",
|
|
13352
13355
|
onClick: () => B(F)
|
|
13353
13356
|
}, {
|
|
13354
|
-
default:
|
|
13355
|
-
x(
|
|
13357
|
+
default: v(() => [
|
|
13358
|
+
x(b(Il))
|
|
13356
13359
|
]),
|
|
13357
13360
|
_: 2
|
|
13358
13361
|
}, 1032, ["onClick"])
|
|
@@ -13361,25 +13364,25 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13361
13364
|
]))), 128))
|
|
13362
13365
|
]),
|
|
13363
13366
|
l.value.length > 0 ? (g(), w("div", Ck, [
|
|
13364
|
-
y("div", null, U(
|
|
13367
|
+
y("div", null, U(b(a)("rla.start_with_a_use_case")), 1),
|
|
13365
13368
|
y("div", Ek, [
|
|
13366
|
-
(g(!0), w(oe, null, de(l.value, (Q, F) => (g(), P(
|
|
13369
|
+
(g(!0), w(oe, null, de(l.value, (Q, F) => (g(), P(ne, {
|
|
13367
13370
|
key: `use-case-${F}`,
|
|
13368
13371
|
"max-width": "300"
|
|
13369
13372
|
}, {
|
|
13370
|
-
content:
|
|
13373
|
+
content: v(() => [
|
|
13371
13374
|
y("div", null, U(Q.description), 1),
|
|
13372
13375
|
kk,
|
|
13373
|
-
y("div", null, U(
|
|
13374
|
-
y("div", null, U(
|
|
13376
|
+
y("div", null, U(b(a)("rla.request_limits.label")) + ": " + U(Q.config.limit), 1),
|
|
13377
|
+
y("div", null, U(b(a)("rla.request_limits.time_interval")) + ": " + U(Q.config.window_size), 1)
|
|
13375
13378
|
]),
|
|
13376
|
-
default:
|
|
13379
|
+
default: v(() => [
|
|
13377
13380
|
x(_, {
|
|
13378
13381
|
appearance: p.value === `${h.value}-${F}` ? "info" : "decorative",
|
|
13379
13382
|
class: "rla-form-request-limits-examples-badge",
|
|
13380
13383
|
onClick: () => Y(Q, `${h.value}-${F}`)
|
|
13381
13384
|
}, {
|
|
13382
|
-
default:
|
|
13385
|
+
default: v(() => [
|
|
13383
13386
|
re(U(Q.label), 1)
|
|
13384
13387
|
]),
|
|
13385
13388
|
_: 2
|
|
@@ -13398,7 +13401,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13398
13401
|
"onUpdate:modelValue": D[1] || (D[1] = (Q) => O.value = Q),
|
|
13399
13402
|
class: "rla-form-identifiers",
|
|
13400
13403
|
items: c.value,
|
|
13401
|
-
label:
|
|
13404
|
+
label: b(a)("rla.identifiers.label"),
|
|
13402
13405
|
"label-attributes": {
|
|
13403
13406
|
tooltipAttributes: {
|
|
13404
13407
|
maxWidth: "300",
|
|
@@ -13408,7 +13411,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13408
13411
|
required: "",
|
|
13409
13412
|
onSelected: D[2] || (D[2] = (Q) => r.onModelUpdated(Q.value, "config-identifier"))
|
|
13410
13413
|
}, {
|
|
13411
|
-
"label-tooltip":
|
|
13414
|
+
"label-tooltip": v(() => [
|
|
13412
13415
|
y("div", {
|
|
13413
13416
|
innerHTML: u.value && u.value.help
|
|
13414
13417
|
}, null, 8, Ok)
|
|
@@ -13418,15 +13421,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13418
13421
|
y("div", null, [
|
|
13419
13422
|
x(G, {
|
|
13420
13423
|
for: "rla-form-error-legend",
|
|
13421
|
-
info:
|
|
13424
|
+
info: b(a)("rla.error_message.help"),
|
|
13422
13425
|
required: "",
|
|
13423
13426
|
"tooltip-attributes": {
|
|
13424
13427
|
maxWidth: "300",
|
|
13425
13428
|
placement: "top"
|
|
13426
13429
|
}
|
|
13427
13430
|
}, {
|
|
13428
|
-
default:
|
|
13429
|
-
re(U(
|
|
13431
|
+
default: v(() => [
|
|
13432
|
+
re(U(b(a)("rla.error_message.label")), 1)
|
|
13430
13433
|
]),
|
|
13431
13434
|
_: 1
|
|
13432
13435
|
}, 8, ["info"]),
|
|
@@ -13434,14 +13437,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13434
13437
|
x(z, {
|
|
13435
13438
|
class: "input-error-code",
|
|
13436
13439
|
"model-value": I.value && I.value.toString(),
|
|
13437
|
-
placeholder:
|
|
13440
|
+
placeholder: b(a)("rla.error_message.code_placeholder"),
|
|
13438
13441
|
type: "number",
|
|
13439
13442
|
"onUpdate:modelValue": D[3] || (D[3] = (Q) => k.onModelUpdated(Number.parseInt(Q), "config-error_code"))
|
|
13440
13443
|
}, null, 8, ["model-value", "placeholder"]),
|
|
13441
13444
|
Mk,
|
|
13442
13445
|
x(z, {
|
|
13443
13446
|
"model-value": R.value,
|
|
13444
|
-
placeholder:
|
|
13447
|
+
placeholder: b(a)("rla.error_message.message_placeholder"),
|
|
13445
13448
|
"onUpdate:modelValue": D[4] || (D[4] = (Q) => k.onModelUpdated(Q, "config-error_message"))
|
|
13446
13449
|
}, null, 8, ["model-value", "placeholder"])
|
|
13447
13450
|
])
|
|
@@ -13450,9 +13453,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13450
13453
|
x($, {
|
|
13451
13454
|
modelValue: m.value,
|
|
13452
13455
|
"onUpdate:modelValue": D[8] || (D[8] = (Q) => m.value = Q),
|
|
13453
|
-
"trigger-label":
|
|
13456
|
+
"trigger-label": b(a)("rla.view_advanced_fields")
|
|
13454
13457
|
}, {
|
|
13455
|
-
default:
|
|
13458
|
+
default: v(() => [
|
|
13456
13459
|
x(N, {
|
|
13457
13460
|
model: k.formModel,
|
|
13458
13461
|
options: k.formOptions,
|
|
@@ -13462,9 +13465,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
13462
13465
|
k.formModel["config-strategy"] === "redis" ? (g(), P(ce, {
|
|
13463
13466
|
key: 0,
|
|
13464
13467
|
class: "rla-form-redis-card",
|
|
13465
|
-
title:
|
|
13468
|
+
title: b(a)("rla.redis.title")
|
|
13466
13469
|
}, {
|
|
13467
|
-
default:
|
|
13470
|
+
default: v(() => [
|
|
13468
13471
|
x(N, {
|
|
13469
13472
|
model: k.formModel,
|
|
13470
13473
|
options: k.formOptions,
|
|
@@ -14280,11 +14283,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14280
14283
|
D.forEach((_) => {
|
|
14281
14284
|
l(S[_], _, S, V, G, B);
|
|
14282
14285
|
});
|
|
14283
|
-
const z = V.name, te =
|
|
14286
|
+
const z = V.name, te = ht[z];
|
|
14284
14287
|
if (Dl(z) || te != null && te.useLegacyForm || e != null && e.credential)
|
|
14285
|
-
G.fields.sort((_,
|
|
14288
|
+
G.fields.sort((_, ne) => (_.order = _.order || 0, ne.order = ne.order || 0, _.order - ne.order));
|
|
14286
14289
|
else {
|
|
14287
|
-
const _ = [],
|
|
14290
|
+
const _ = [], ne = [], ce = [], Z = {};
|
|
14288
14291
|
if (te != null && te.fieldRules) {
|
|
14289
14292
|
const F = [
|
|
14290
14293
|
...te.fieldRules.atLeastOneOf ?? [],
|
|
@@ -14304,7 +14307,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14304
14307
|
continue;
|
|
14305
14308
|
}
|
|
14306
14309
|
if (F.required || Z[F.model] !== void 0) {
|
|
14307
|
-
Z[F.model] === !1 && (Z[F.model] = !0),
|
|
14310
|
+
Z[F.model] === !1 && (Z[F.model] = !0), ne.push(F);
|
|
14308
14311
|
continue;
|
|
14309
14312
|
}
|
|
14310
14313
|
ce.push(F);
|
|
@@ -14314,8 +14317,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14314
14317
|
const Q = [];
|
|
14315
14318
|
_.length > 0 && Q.push({
|
|
14316
14319
|
fields: _.sort(Ul)
|
|
14317
|
-
}), (
|
|
14318
|
-
fields:
|
|
14320
|
+
}), (ne.length > 0 || ce.length > 0) && Q.push({
|
|
14321
|
+
fields: ne.sort(bs),
|
|
14319
14322
|
collapsible: {
|
|
14320
14323
|
title: i("plugins.form.grouping.plugin_configuration.title"),
|
|
14321
14324
|
description: i("plugins.form.grouping.plugin_configuration.description"),
|
|
@@ -14552,7 +14555,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14552
14555
|
return (o, l) => {
|
|
14553
14556
|
const u = H("KAlert");
|
|
14554
14557
|
return g(), P(u, { class: "plugin-field-rule-alerts" }, {
|
|
14555
|
-
default:
|
|
14558
|
+
default: v(() => [
|
|
14556
14559
|
y("ul", null, [
|
|
14557
14560
|
(g(!0), w(oe, null, de(s.value, (c, p) => (g(), w("li", {
|
|
14558
14561
|
key: `simple-alert-${p}`
|
|
@@ -14561,7 +14564,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14561
14564
|
(g(!0), w(oe, null, de(t.rules.onlyOneOfMutuallyRequired, (c, p) => (g(), w("div", {
|
|
14562
14565
|
key: `only-one-mutually-alert-${p}`
|
|
14563
14566
|
}, [
|
|
14564
|
-
y("div", null, U(
|
|
14567
|
+
y("div", null, U(b(i)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
14565
14568
|
y("ul", null, [
|
|
14566
14569
|
(g(!0), w(oe, null, de(c, (m, h) => (g(), w("li", {
|
|
14567
14570
|
key: `only-one-mutually-alert-${p}-combination-${h}`
|
|
@@ -14575,12 +14578,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14575
14578
|
});
|
|
14576
14579
|
};
|
|
14577
14580
|
}
|
|
14578
|
-
}),
|
|
14581
|
+
}), At = (e, t) => {
|
|
14579
14582
|
const n = e.__vccOpts || e;
|
|
14580
14583
|
for (const [i, a] of t)
|
|
14581
14584
|
n[i] = a;
|
|
14582
14585
|
return n;
|
|
14583
|
-
}, _k = /* @__PURE__ */
|
|
14586
|
+
}, _k = /* @__PURE__ */ At(Qk, [["__scopeId", "data-v-17c1f232"]]), $k = { class: "kong-ui-entities-plugin-form" }, eO = {
|
|
14584
14587
|
key: 1,
|
|
14585
14588
|
class: "entity-form"
|
|
14586
14589
|
}, tO = { class: "plugin-config-empty-state" }, nO = ue({
|
|
@@ -14652,9 +14655,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14652
14655
|
getAll: (V, z) => {
|
|
14653
14656
|
const te = h(V);
|
|
14654
14657
|
return i.config.app === "konnect" ? a.get(te).then((_) => {
|
|
14655
|
-
const { data: { data:
|
|
14656
|
-
if (delete z.size, delete z.offset,
|
|
14657
|
-
const ce = Object.keys(z)[0], Z =
|
|
14658
|
+
const { data: { data: ne } } = _;
|
|
14659
|
+
if (delete z.size, delete z.offset, ne.length && Object.keys(z).length === 1) {
|
|
14660
|
+
const ce = Object.keys(z)[0], Z = ne.filter(($) => $[ce] ? !!$[ce].toLowerCase().includes(z[ce].toLowerCase()) : !1);
|
|
14658
14661
|
_.data.data = Z;
|
|
14659
14662
|
}
|
|
14660
14663
|
return _;
|
|
@@ -14666,7 +14669,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14666
14669
|
return (V = I.value) == null ? void 0 : V.options;
|
|
14667
14670
|
}), f = () => {
|
|
14668
14671
|
var ce, Z;
|
|
14669
|
-
const V = { ...i.schema }, z = E, te = Y, _ = Object.keys(z),
|
|
14672
|
+
const V = { ...i.schema }, z = E, te = Y, _ = Object.keys(z), ne = {};
|
|
14670
14673
|
if (!l(R.value))
|
|
14671
14674
|
for (let $ = 0; $ < ((Z = (ce = R.value) == null ? void 0 : ce.fields) == null ? void 0 : Z.length); $++)
|
|
14672
14675
|
V[R.value.fields[$].model] = R.value.fields[$];
|
|
@@ -14727,14 +14730,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14727
14730
|
let xe;
|
|
14728
14731
|
[Fe, xe] = Fe.split(".");
|
|
14729
14732
|
let gt = {};
|
|
14730
|
-
|
|
14733
|
+
ne[Fe] && (gt = ne[Fe]), gt[xe] = F, F = gt;
|
|
14731
14734
|
}
|
|
14732
|
-
ye !== void 0 && F === "" && F !== ye ?
|
|
14733
|
-
}), o(
|
|
14735
|
+
ye !== void 0 && F === "" && F !== ye ? ne[Fe] = Ue === "object" ? {} : null : Q.type === "checklist" && F === "" ? ne[Fe] = [] : F !== "" && (ne[Fe] = F), ne[Fe] = Re ? Re(F) : ne[Fe], u(Fe, ne);
|
|
14736
|
+
}), o(ne);
|
|
14734
14737
|
}, B = (V, z) => {
|
|
14735
|
-
var
|
|
14738
|
+
var ne;
|
|
14736
14739
|
const te = { [z]: V };
|
|
14737
|
-
typeof ((
|
|
14740
|
+
typeof ((ne = i.schema[z]) == null ? void 0 : ne.modelTransformer) == "function" && (te[z] = i.schema[z].modelTransformer(V));
|
|
14738
14741
|
const _ = Object.assign({}, E, te);
|
|
14739
14742
|
Object.assign(E, _), n("model-updated", {
|
|
14740
14743
|
model: E,
|
|
@@ -14744,13 +14747,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14744
14747
|
}, S = (V, z) => {
|
|
14745
14748
|
Object.keys(V).forEach((te) => {
|
|
14746
14749
|
var $, Q;
|
|
14747
|
-
let _ = z ? `${z}-${te}` : te,
|
|
14748
|
-
if (!
|
|
14750
|
+
let _ = z ? `${z}-${te}` : te, ne = i.schema[_];
|
|
14751
|
+
if (!ne) {
|
|
14749
14752
|
const F = z ? `${z}-${te.replace(/-/g, "_")}` : te.replace(/-/g, "_");
|
|
14750
|
-
($ = i.schema[F]) != null && $.fieldNameHasDashes && (_ = F,
|
|
14753
|
+
($ = i.schema[F]) != null && $.fieldNameHasDashes && (_ = F, ne = i.schema[_]), z && ((Q = i.schema[z]) == null ? void 0 : Q.keyFromObject) === te && (_ = z, ne = i.schema[_]);
|
|
14751
14754
|
}
|
|
14752
14755
|
const ce = V[te], Z = typeof ce;
|
|
14753
|
-
if (
|
|
14756
|
+
if (ne && ne.type === "object-advanced" && !ce) {
|
|
14754
14757
|
E[_] = {}, Y[_] = {};
|
|
14755
14758
|
return;
|
|
14756
14759
|
}
|
|
@@ -14760,7 +14763,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14760
14763
|
}
|
|
14761
14764
|
if (Z === "object" && ce && !ce.length)
|
|
14762
14765
|
return S(ce, _);
|
|
14763
|
-
if (Z === "object" && ce && ce.length &&
|
|
14766
|
+
if (Z === "object" && ce && ce.length && ne.type === "input") {
|
|
14764
14767
|
E[_] = ce.join(", "), Y[_] = ce.join(", ");
|
|
14765
14768
|
return;
|
|
14766
14769
|
}
|
|
@@ -14787,7 +14790,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14787
14790
|
}), S(i.record.config, "config"))), Object.keys(i.entityMap).length && !i.entityMap.global && i.schema) {
|
|
14788
14791
|
const z = {};
|
|
14789
14792
|
for (const te in i.entityMap) {
|
|
14790
|
-
const _ = i.entityMap[te].id,
|
|
14793
|
+
const _ = i.entityMap[te].id, ne = i.entityMap[te].idField, ce = ne === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(ne).replace("_", "-"));
|
|
14791
14794
|
Object.prototype.hasOwnProperty.call(E, ce) && (z[ce] = _);
|
|
14792
14795
|
}
|
|
14793
14796
|
S(z);
|
|
@@ -14801,15 +14804,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14801
14804
|
return rt(k, (V) => {
|
|
14802
14805
|
n("loading", V);
|
|
14803
14806
|
}), rt(() => i.schema, (V, z) => {
|
|
14804
|
-
var _,
|
|
14807
|
+
var _, ne;
|
|
14805
14808
|
if (c(V || {}, z || {}))
|
|
14806
14809
|
return;
|
|
14807
14810
|
const te = r(V);
|
|
14808
|
-
Object.assign(E, te.model), R.value = { fields: (
|
|
14811
|
+
Object.assign(E, te.model), R.value = { fields: (ne = (_ = R.value) == null ? void 0 : _.fields) == null ? void 0 : ne.map((ce) => ({ ...ce, disabled: ce.disabled || !1 })) }, Object.assign(Y, JSON.parse(JSON.stringify(te.model))), O.value = Dl(te.model.name), D();
|
|
14809
14812
|
}, { immediate: !0, deep: !0 }), Ft(() => {
|
|
14810
14813
|
var V, z;
|
|
14811
14814
|
I.value = r(i.schema), Object.assign(E, ((V = I.value) == null ? void 0 : V.model) || {}), R.value = ((z = I.value) == null ? void 0 : z.schema) || {}, D();
|
|
14812
14815
|
}), (V, z) => {
|
|
14816
|
+
var ne;
|
|
14813
14817
|
const te = H("KSkeleton"), _ = H("VueFormGenerator");
|
|
14814
14818
|
return g(), w("div", $k, [
|
|
14815
14819
|
k.value ? (g(), P(te, {
|
|
@@ -14831,16 +14835,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14831
14835
|
schema: R.value,
|
|
14832
14836
|
onModelUpdated: B
|
|
14833
14837
|
}, ct({
|
|
14834
|
-
"plugin-config-empty-state":
|
|
14835
|
-
y("div", tO, U(
|
|
14838
|
+
"plugin-config-empty-state": v(() => [
|
|
14839
|
+
y("div", tO, U(b(p)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
14836
14840
|
]),
|
|
14837
14841
|
_: 2
|
|
14838
14842
|
}, [
|
|
14839
|
-
|
|
14843
|
+
(ne = b(ht)[E.name]) != null && ne.fieldRules && (i.config.isNewOtelSchema || E.name !== "opentelemetry") ? {
|
|
14840
14844
|
name: "plugin-config-before-content",
|
|
14841
|
-
fn:
|
|
14845
|
+
fn: v(() => [
|
|
14842
14846
|
x(_k, {
|
|
14843
|
-
rules:
|
|
14847
|
+
rules: b(ht)[E.name].fieldRules
|
|
14844
14848
|
}, null, 8, ["rules"])
|
|
14845
14849
|
]),
|
|
14846
14850
|
key: "0"
|
|
@@ -14850,7 +14854,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14850
14854
|
]);
|
|
14851
14855
|
};
|
|
14852
14856
|
}
|
|
14853
|
-
}), aO = /* @__PURE__ */
|
|
14857
|
+
}), aO = /* @__PURE__ */ At(iO, [["__scopeId", "data-v-b17c66f2"]]), rO = { class: "kong-ui-entities-plugin-form-container" }, sO = ["id"], oO = { class: "plugin-form-actions" }, lO = /* @__PURE__ */ ue({
|
|
14854
14858
|
__name: "PluginForm",
|
|
14855
14859
|
props: {
|
|
14856
14860
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -14954,8 +14958,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
14954
14958
|
}), k = () => {
|
|
14955
14959
|
h.value = !h.value;
|
|
14956
14960
|
}, D = j(() => {
|
|
14957
|
-
var Ce, Ee, Ae,
|
|
14958
|
-
const T = i.config.entityType === "consumers" && i.config.entityId || ((Ee = (Ce = I.value) == null ? void 0 : Ce.consumer) == null ? void 0 : Ee.id), W = i.config.entityType === "consumer_groups" && i.config.entityId || ((
|
|
14961
|
+
var Ce, Ee, Ae, ie, X, ee, Ne, jt;
|
|
14962
|
+
const T = i.config.entityType === "consumers" && i.config.entityId || ((Ee = (Ce = I.value) == null ? void 0 : Ce.consumer) == null ? void 0 : Ee.id), W = i.config.entityType === "consumer_groups" && i.config.entityId || ((ie = (Ae = I.value) == null ? void 0 : Ae.consumer_group) == null ? void 0 : ie.id), L = i.config.entityType === "services" && i.config.entityId || ((ee = (X = I.value) == null ? void 0 : X.service) == null ? void 0 : ee.id), se = i.config.entityType === "routes" && i.config.entityId || ((jt = (Ne = I.value) == null ? void 0 : Ne.route) == null ? void 0 : jt.id);
|
|
14959
14963
|
if (!(T || W || L || se))
|
|
14960
14964
|
return {
|
|
14961
14965
|
global: {
|
|
@@ -15068,24 +15072,24 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15068
15072
|
var Ee, Ae;
|
|
15069
15073
|
let se = W && W.fields || [];
|
|
15070
15074
|
const le = s[i.pluginType], Ce = (Ae = (Ee = An[i.pluginType]) == null ? void 0 : Ee.schema) == null ? void 0 : Ae.fields;
|
|
15071
|
-
return Array.isArray(se) && (se = se.reduce((
|
|
15075
|
+
return Array.isArray(se) && (se = se.reduce((ie, X) => {
|
|
15072
15076
|
const ee = Object.keys(X)[0];
|
|
15073
|
-
return ee.match(/-/g) ?
|
|
15077
|
+
return ee.match(/-/g) ? ie[ee.replace(/-/g, "_")] = {
|
|
15074
15078
|
...X[ee],
|
|
15075
15079
|
// A flag to indicate the field name has dashes originally and they are replaced with underscores.
|
|
15076
15080
|
// When submitting the form, the underscores should be replaced with dashes again
|
|
15077
15081
|
fieldNameHasDashes: !0
|
|
15078
|
-
} :
|
|
15079
|
-
}, {})), Object.keys(se).sort().forEach((
|
|
15082
|
+
} : ie[ee] = X[ee], ie;
|
|
15083
|
+
}, {})), Object.keys(se).sort().forEach((ie) => {
|
|
15080
15084
|
var jt, Nt, qa, Xa, Ja, Za;
|
|
15081
|
-
const X = se[
|
|
15085
|
+
const X = se[ie], ee = T ? `${T}-${ie}` : `${ie}`;
|
|
15082
15086
|
if (Object.prototype.hasOwnProperty.call(X, "overwrite") || X.hidden)
|
|
15083
15087
|
return;
|
|
15084
15088
|
if (X.type === "table")
|
|
15085
15089
|
return z(ee, X.schema, L);
|
|
15086
15090
|
if (X.fields)
|
|
15087
15091
|
return z(ee, X, L);
|
|
15088
|
-
if (L[ee] = { id: ee }, L[ee].type = X.type === "boolean" ? "checkbox" : "input", L[ee].required = X.required, ee.startsWith("config-") && (L[ee].label = l(ee)), (T === "config" || T.startsWith("config-")) && (jt = se[
|
|
15092
|
+
if (L[ee] = { id: ee }, L[ee].type = X.type === "boolean" ? "checkbox" : "input", L[ee].required = X.required, ee.startsWith("config-") && (L[ee].label = l(ee)), (T === "config" || T.startsWith("config-")) && (jt = se[ie]) != null && jt.description && (L[ee].help = me.parse(se[ie].description, { mangle: !1, headerIds: !1 })), X.type === "map") {
|
|
15089
15093
|
if (L[ee].type = "object-advanced", X.values.type === "array") {
|
|
15090
15094
|
const { type: ke } = X.values.elements || {};
|
|
15091
15095
|
L[ee].schema = {
|
|
@@ -15132,14 +15136,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15132
15136
|
}), X.elements && X.type === "array") {
|
|
15133
15137
|
const ke = X.elements;
|
|
15134
15138
|
if (ke.type === "string" && !ke.one_of) {
|
|
15135
|
-
const { id: mt, help: Xe, label: tt, hint:
|
|
15136
|
-
L[ee] = { id: mt, help: Xe, label: tt, hint:
|
|
15139
|
+
const { id: mt, help: Xe, label: tt, hint: ft } = L[ee], { help: un, ...In } = JSON.parse(JSON.stringify(Dn));
|
|
15140
|
+
L[ee] = { id: mt, help: Xe, label: tt, hint: ft, ...In }, L[ee].help === void 0 && typeof un == "string" && (L[ee].help = me.parse(un, { mangle: !1, headerIds: !1 }));
|
|
15137
15141
|
}
|
|
15138
15142
|
}
|
|
15139
15143
|
if (X.hint && (L[ee].hint = X.hint), le && !le.overwriteDefault && Object.keys(le).forEach((ke) => {
|
|
15140
15144
|
if (ke === ee) {
|
|
15141
|
-
const { help: mt, label: Xe, hint: tt } = L[ee], { help:
|
|
15142
|
-
L[ee] = { help: mt, label: Xe, hint: tt, ...un }, typeof
|
|
15145
|
+
const { help: mt, label: Xe, hint: tt } = L[ee], { help: ft, ...un } = le[ke];
|
|
15146
|
+
L[ee] = { help: mt, label: Xe, hint: tt, ...un }, typeof ft == "string" && (L[ee].help = me.parse(ft, { mangle: !1, headerIds: !1 }));
|
|
15143
15147
|
}
|
|
15144
15148
|
}), X.type === "array" && ((Nt = X.elements) == null ? void 0 : Nt.type) === "record" && Array.isArray(X.elements.fields)) {
|
|
15145
15149
|
let ke = {};
|
|
@@ -15158,9 +15162,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15158
15162
|
}
|
|
15159
15163
|
}, L[ee].type = "array", L[ee].newElementButtonLabelClasses = "kong-form-new-element-button-label", L[ee].items.schema.fields.forEach(
|
|
15160
15164
|
(Xe) => {
|
|
15161
|
-
var tt,
|
|
15165
|
+
var tt, ft;
|
|
15162
15166
|
for (const un of X.elements.fields) {
|
|
15163
|
-
const In = Object.keys(un)[0], Wa = ((
|
|
15167
|
+
const In = Object.keys(un)[0], Wa = ((ft = (tt = Xe.id) == null ? void 0 : tt.split) == null ? void 0 : ft.call(tt, "-")) ?? [];
|
|
15164
15168
|
if (Wa[Wa.length - 1] === In) {
|
|
15165
15169
|
Xe.model = In, Xe.label = l(In);
|
|
15166
15170
|
break;
|
|
@@ -15168,8 +15172,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15168
15172
|
}
|
|
15169
15173
|
}
|
|
15170
15174
|
)), L[ee].items.default = () => X.elements.fields.reduce((Xe, tt) => {
|
|
15171
|
-
const
|
|
15172
|
-
return Xe[
|
|
15175
|
+
const ft = Object.keys(tt)[0];
|
|
15176
|
+
return Xe[ft] = tt[ft].default, Xe;
|
|
15173
15177
|
}, {});
|
|
15174
15178
|
}
|
|
15175
15179
|
if (O.value && Ce) {
|
|
@@ -15192,8 +15196,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15192
15196
|
X.enum ? Ne = V(X.enum) : X.type === "boolean" ? Ne = "boolean" : X.type === "number" || X.type === "integer" ? (Ne = "number", L[ee].inputType = "number") : X.type === "array" || X.type === "set" ? (Ne = "array", L[ee].default = X.default, X.len_min > 0 && (L[ee].submitWhenNull = !0)) : X.type === "foreign" ? Ne = "object" : X.default && Array.isArray(X.default) ? (Ne = "array", L[ee].valueArrayType = V(X.default)) : X.default && (Ne = typeof X.default), L[ee].valueType = Ne, X.fieldNameHasDashes && (L[ee].fieldNameHasDashes = !0);
|
|
15193
15197
|
}), L;
|
|
15194
15198
|
}, te = () => {
|
|
15195
|
-
var Ce, Ee, Ae,
|
|
15196
|
-
const T = ((Ce =
|
|
15199
|
+
var Ce, Ee, Ae, ie;
|
|
15200
|
+
const T = ((Ce = ht[i.pluginType]) == null ? void 0 : Ce.scope.includes(d.SERVICE)) ?? !0, W = ((Ee = ht[i.pluginType]) == null ? void 0 : Ee.scope.includes(d.ROUTE)) ?? !0, L = ((Ae = ht[i.pluginType]) == null ? void 0 : Ae.scope.includes(d.CONSUMER)) ?? !0, se = i.config.disableConsumerGroupScope ? !1 : ((ie = ht[i.pluginType]) == null ? void 0 : ie.scope.includes(d.CONSUMER_GROUP)) ?? !0, le = [];
|
|
15197
15201
|
if (T && le.push({
|
|
15198
15202
|
id: "service-id",
|
|
15199
15203
|
model: "service-id",
|
|
@@ -15262,7 +15266,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15262
15266
|
}), N.selectionGroup.fields[1].fields = le;
|
|
15263
15267
|
}
|
|
15264
15268
|
s[i.pluginType] && s[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(s[i.pluginType], "formSchema") && Object.assign(N, s[i.pluginType].formSchema);
|
|
15265
|
-
}, _ = j(() => !p(f.fields, A, !0)),
|
|
15269
|
+
}, _ = j(() => !p(f.fields, A, !0)), ne = j(() => !lt.value && !Y.value && (M.value === Dt.Create || _.value)), ce = q(!1), Z = q(), $ = (T) => {
|
|
15266
15270
|
f.fields.id = (T == null ? void 0 : T.id) || void 0, Z.value = T == null ? void 0 : T.ordering, Object.assign(A, f.fields), I.value = T, ce.value = !0;
|
|
15267
15271
|
}, Q = q({}), F = (T) => {
|
|
15268
15272
|
var W;
|
|
@@ -15285,7 +15289,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15285
15289
|
const T = i.config.entityType && i.config.entityId && !i.developer, W = O.value ? Ve.form[i.config.app].credential[M.value] : Ve.form[i.config.app][M.value][T ? "forEntity" : "all"];
|
|
15286
15290
|
let L = `${i.config.apiBaseUrl}${W}`;
|
|
15287
15291
|
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(/{resourceEndpoint}/gi, G.value), L = L.replace(/{id}/gi, i.pluginId), L = L.replace(/{entityType}/gi, i.config.entityType || ""), L = L.replace(/{entityId}/gi, i.config.entityId || ""), L;
|
|
15288
|
-
}), Mt = j(() => !Object.keys(
|
|
15292
|
+
}), Mt = j(() => !Object.keys(ht).includes(i.pluginType)), Re = j(() => {
|
|
15289
15293
|
const T = Q.value;
|
|
15290
15294
|
if (O.value) {
|
|
15291
15295
|
for (const W in d) {
|
|
@@ -15333,8 +15337,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15333
15337
|
R.value = Ce ? Ce.config : se, te();
|
|
15334
15338
|
const Ee = (W = le.fields.find((Ae) => Ae.protocols)) == null ? void 0 : W.protocols;
|
|
15335
15339
|
if (Ee) {
|
|
15336
|
-
const { default: Ae = [], elements:
|
|
15337
|
-
N.protocols.default = Ae, (L =
|
|
15340
|
+
const { default: Ae = [], elements: ie = {} } = Ee;
|
|
15341
|
+
N.protocols.default = Ae, (L = ie.one_of) != null && L.length && (N.protocols.values = ie.one_of.map((X) => ({ label: X, value: X })));
|
|
15338
15342
|
}
|
|
15339
15343
|
(ce.value || M.value === Dt.Create) && (C.value = z("config", R.value, N));
|
|
15340
15344
|
}
|
|
@@ -15356,13 +15360,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15356
15360
|
"data-testid": "plugin-form-schema-error",
|
|
15357
15361
|
"icon-variant": "error"
|
|
15358
15362
|
}, {
|
|
15359
|
-
default:
|
|
15360
|
-
y("h3", null, U(
|
|
15363
|
+
default: v(() => [
|
|
15364
|
+
y("h3", null, U(b(r)("errors.load_schema")), 1)
|
|
15361
15365
|
]),
|
|
15362
15366
|
_: 1
|
|
15363
|
-
})) : (g(), P(
|
|
15367
|
+
})) : (g(), P(b(cg), {
|
|
15364
15368
|
key: 2,
|
|
15365
|
-
"can-submit":
|
|
15369
|
+
"can-submit": ne.value,
|
|
15366
15370
|
config: e.config,
|
|
15367
15371
|
"edit-id": e.pluginId,
|
|
15368
15372
|
"error-message": f.errorMessage,
|
|
@@ -15376,7 +15380,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15376
15380
|
"onFetch:success": $,
|
|
15377
15381
|
onLoading: W[3] || (W[3] = (Ae) => T.$emit("loading", Ae))
|
|
15378
15382
|
}, {
|
|
15379
|
-
"form-actions":
|
|
15383
|
+
"form-actions": v(() => [
|
|
15380
15384
|
y("div", {
|
|
15381
15385
|
id: `plugin-form-default-actions-container-${e.config.workspace || e.config.controlPlaneId}`,
|
|
15382
15386
|
ref_key: "actionsDivRef",
|
|
@@ -15393,8 +15397,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15393
15397
|
"data-testid": "form-view-configuration",
|
|
15394
15398
|
onClick: W[1] || (W[1] = (Ae) => k())
|
|
15395
15399
|
}, {
|
|
15396
|
-
default:
|
|
15397
|
-
re(U(
|
|
15400
|
+
default: v(() => [
|
|
15401
|
+
re(U(b(r)("actions.view_configuration")), 1)
|
|
15398
15402
|
]),
|
|
15399
15403
|
_: 1
|
|
15400
15404
|
})),
|
|
@@ -15406,27 +15410,27 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15406
15410
|
type: "reset",
|
|
15407
15411
|
onClick: ye
|
|
15408
15412
|
}, {
|
|
15409
|
-
default:
|
|
15410
|
-
re(U(
|
|
15413
|
+
default: v(() => [
|
|
15414
|
+
re(U(b(r)("actions.cancel")), 1)
|
|
15411
15415
|
]),
|
|
15412
15416
|
_: 1
|
|
15413
15417
|
}, 8, ["disabled"]),
|
|
15414
15418
|
x(le, {
|
|
15415
15419
|
appearance: "primary",
|
|
15416
15420
|
"data-testid": "form-submit",
|
|
15417
|
-
disabled: !
|
|
15421
|
+
disabled: !ne.value || f.isReadonly,
|
|
15418
15422
|
type: "submit",
|
|
15419
15423
|
onClick: Fe
|
|
15420
15424
|
}, {
|
|
15421
|
-
default:
|
|
15422
|
-
re(U(
|
|
15425
|
+
default: v(() => [
|
|
15426
|
+
re(U(b(r)("actions.save")), 1)
|
|
15423
15427
|
]),
|
|
15424
15428
|
_: 1
|
|
15425
15429
|
}, 8, ["disabled"])
|
|
15426
15430
|
])
|
|
15427
15431
|
], 8, ["to"])) : J("", !0)
|
|
15428
15432
|
]),
|
|
15429
|
-
default:
|
|
15433
|
+
default: v(() => [
|
|
15430
15434
|
y("form", {
|
|
15431
15435
|
hidden: "",
|
|
15432
15436
|
onSubmit: Fe
|
|
@@ -15434,7 +15438,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15434
15438
|
x(aO, {
|
|
15435
15439
|
config: e.config,
|
|
15436
15440
|
credential: O.value,
|
|
15437
|
-
editing: M.value ===
|
|
15441
|
+
editing: M.value === b(Dt).Edit,
|
|
15438
15442
|
"entity-map": D.value,
|
|
15439
15443
|
record: I.value || void 0,
|
|
15440
15444
|
schema: C.value || {},
|
|
@@ -15449,26 +15453,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15449
15453
|
"data-testid": "form-view-configuration-slideout",
|
|
15450
15454
|
"has-overlay": !1,
|
|
15451
15455
|
"offset-top": 60,
|
|
15452
|
-
title:
|
|
15456
|
+
title: b(r)("view_configuration.title"),
|
|
15453
15457
|
visible: h.value,
|
|
15454
15458
|
onClose: k
|
|
15455
15459
|
}, {
|
|
15456
|
-
default:
|
|
15457
|
-
y("div", null, U(
|
|
15460
|
+
default: v(() => [
|
|
15461
|
+
y("div", null, U(b(r)("view_configuration.message")), 1),
|
|
15458
15462
|
x(Ce, {
|
|
15459
15463
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
15460
15464
|
tabs: B.value
|
|
15461
15465
|
}, {
|
|
15462
|
-
json:
|
|
15463
|
-
x(
|
|
15466
|
+
json: v(() => [
|
|
15467
|
+
x(b(fa), {
|
|
15464
15468
|
config: e.config,
|
|
15465
15469
|
"fetcher-url": Ue.value,
|
|
15466
15470
|
"json-record": Re.value,
|
|
15467
15471
|
"request-method": i.pluginId ? "put" : "post"
|
|
15468
15472
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
15469
15473
|
]),
|
|
15470
|
-
yaml:
|
|
15471
|
-
x(
|
|
15474
|
+
yaml: v(() => [
|
|
15475
|
+
x(b(Ea), { "yaml-record": Re.value }, null, 8, ["yaml-record"])
|
|
15472
15476
|
]),
|
|
15473
15477
|
_: 1
|
|
15474
15478
|
}, 8, ["tabs"])
|
|
@@ -15478,7 +15482,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15478
15482
|
]);
|
|
15479
15483
|
};
|
|
15480
15484
|
}
|
|
15481
|
-
}), DI = /* @__PURE__ */
|
|
15485
|
+
}), DI = /* @__PURE__ */ At(lO, [["__scopeId", "data-v-e995b170"]]), uO = ["alt", "src", "width"], Ka = /* @__PURE__ */ ue({
|
|
15482
15486
|
__name: "PluginIcon",
|
|
15483
15487
|
props: {
|
|
15484
15488
|
name: {
|
|
@@ -15505,7 +15509,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15505
15509
|
ref_key: "img",
|
|
15506
15510
|
ref: n,
|
|
15507
15511
|
alt: e.alt,
|
|
15508
|
-
src:
|
|
15512
|
+
src: b(i),
|
|
15509
15513
|
width: e.size,
|
|
15510
15514
|
onError: a
|
|
15511
15515
|
}, null, 40, uO));
|
|
@@ -15596,7 +15600,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15596
15600
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
15597
15601
|
style: Ot(i.value)
|
|
15598
15602
|
}, {
|
|
15599
|
-
default:
|
|
15603
|
+
default: v(() => [
|
|
15600
15604
|
(g(), w("svg", {
|
|
15601
15605
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
15602
15606
|
"data-testid": "kui-icon-svg-add-icon",
|
|
@@ -15695,7 +15699,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15695
15699
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
15696
15700
|
style: Ot(i.value)
|
|
15697
15701
|
}, {
|
|
15698
|
-
default:
|
|
15702
|
+
default: v(() => [
|
|
15699
15703
|
(g(), w("svg", {
|
|
15700
15704
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
15701
15705
|
"data-testid": "kui-icon-svg-more-icon",
|
|
@@ -15876,11 +15880,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15876
15880
|
}, z = () => {
|
|
15877
15881
|
D.value = !1, N.value = null;
|
|
15878
15882
|
}, te = async () => {
|
|
15879
|
-
var se, le, Ce, Ee, Ae,
|
|
15883
|
+
var se, le, Ce, Ee, Ae, ie, X, ee;
|
|
15880
15884
|
if (!await ((se = a.canEdit) == null ? void 0 : se.call(a, N.value)) || !N.value)
|
|
15881
15885
|
return;
|
|
15882
15886
|
let W = `${a.config.apiBaseUrl}${(Ae = Ve.item[a.config.app]) == null ? void 0 : Ae[(le = a.config) != null && le.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((Ce = a.config) == null ? void 0 : Ce.entityType) || "").replace(/{entityId}/gi, ((Ee = a.config) == null ? void 0 : Ee.entityId) || "")}`.replace(/{id}/gi, N.value.id || "");
|
|
15883
|
-
a.config.app === "konnect" ? W = W.replace(/{controlPlaneId}/gi, ((
|
|
15887
|
+
a.config.app === "konnect" ? W = W.replace(/{controlPlaneId}/gi, ((ie = a.config) == null ? void 0 : ie.controlPlaneId) || "") : a.config.app === "kongManager" && (W = W.replace(/\/{workspace}/gi, (X = a.config) != null && X.workspace ? `/${a.config.workspace}` : ""));
|
|
15884
15888
|
const L = !N.value.enabled;
|
|
15885
15889
|
try {
|
|
15886
15890
|
const { data: Ne } = ((ee = a.config) == null ? void 0 : ee.app) === "konnect" ? await o.put(W, { ...N.value, enabled: L }, { timeout: 12e4 }) : await o.patch(W, { ...N.value, enabled: L }, { timeout: 12e4 });
|
|
@@ -15904,7 +15908,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15904
15908
|
field: "id",
|
|
15905
15909
|
message: r("copy.success", { val: L })
|
|
15906
15910
|
});
|
|
15907
|
-
},
|
|
15911
|
+
}, ne = (T, W) => {
|
|
15908
15912
|
const L = JSON.stringify(T);
|
|
15909
15913
|
if (!W(L)) {
|
|
15910
15914
|
i("copy:error", {
|
|
@@ -15967,7 +15971,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15967
15971
|
}), (T, W) => {
|
|
15968
15972
|
const L = H("KButton"), se = H("KBadge"), le = H("KTruncate"), Ce = H("KInputSwitch"), Ee = H("KDropdownItem"), Ae = H("KClipboardProvider");
|
|
15969
15973
|
return g(), w("div", CO, [
|
|
15970
|
-
x(
|
|
15974
|
+
x(b(yg), {
|
|
15971
15975
|
"cache-identifier": e.cacheIdentifier,
|
|
15972
15976
|
"disable-pagination-page-jump": "",
|
|
15973
15977
|
"disable-sorting": p.value,
|
|
@@ -15975,44 +15979,44 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
15975
15979
|
"empty-state-options": lt.value,
|
|
15976
15980
|
"enable-entity-actions": "",
|
|
15977
15981
|
"error-message": f.value,
|
|
15978
|
-
fetcher:
|
|
15982
|
+
fetcher: b(R),
|
|
15979
15983
|
"fetcher-cache-key": I.value,
|
|
15980
15984
|
"pagination-type": "offset",
|
|
15981
15985
|
"preferences-storage-key": "kong-ui-entities-plugins-list",
|
|
15982
15986
|
query: C.value,
|
|
15983
|
-
"table-headers":
|
|
15987
|
+
"table-headers": b(h),
|
|
15984
15988
|
title: e.title,
|
|
15985
15989
|
"title-tag": e.titleTag,
|
|
15986
15990
|
"use-action-outside": e.useActionOutside,
|
|
15987
15991
|
onClearSearchInput: E,
|
|
15988
|
-
"onClick:row": W[3] || (W[3] = (
|
|
15992
|
+
"onClick:row": W[3] || (W[3] = (ie) => ce(ie)),
|
|
15989
15993
|
onSort: A
|
|
15990
15994
|
}, {
|
|
15991
|
-
"toolbar-filter":
|
|
15992
|
-
x(
|
|
15995
|
+
"toolbar-filter": v(() => [
|
|
15996
|
+
x(b(Dg), {
|
|
15993
15997
|
modelValue: C.value,
|
|
15994
|
-
"onUpdate:modelValue": W[0] || (W[0] = (
|
|
15998
|
+
"onUpdate:modelValue": W[0] || (W[0] = (ie) => C.value = ie),
|
|
15995
15999
|
config: O.value
|
|
15996
16000
|
}, null, 8, ["modelValue", "config"])
|
|
15997
16001
|
]),
|
|
15998
|
-
"toolbar-button":
|
|
16002
|
+
"toolbar-button": v(() => [
|
|
15999
16003
|
(g(), P(pa, {
|
|
16000
16004
|
disabled: !e.useActionOutside,
|
|
16001
16005
|
to: "#kong-ui-app-page-header-action-button"
|
|
16002
16006
|
}, [
|
|
16003
|
-
x(
|
|
16007
|
+
x(b(Kt), {
|
|
16004
16008
|
"auth-function": () => e.canCreate()
|
|
16005
16009
|
}, {
|
|
16006
|
-
default:
|
|
16010
|
+
default: v(() => [
|
|
16007
16011
|
ve(x(L, {
|
|
16008
16012
|
appearance: "primary",
|
|
16009
16013
|
"data-testid": "toolbar-add-plugin",
|
|
16010
16014
|
size: "large",
|
|
16011
16015
|
to: e.config.createRoute
|
|
16012
16016
|
}, {
|
|
16013
|
-
default:
|
|
16014
|
-
x(
|
|
16015
|
-
re(" " + U(
|
|
16017
|
+
default: v(() => [
|
|
16018
|
+
x(b(AO)),
|
|
16019
|
+
re(" " + U(b(r)("plugins.list.toolbar_actions.new_plugin")), 1)
|
|
16016
16020
|
]),
|
|
16017
16021
|
_: 1
|
|
16018
16022
|
}, 8, ["to"]), [
|
|
@@ -16023,33 +16027,33 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16023
16027
|
}, 8, ["auth-function"])
|
|
16024
16028
|
], 8, ["disabled"]))
|
|
16025
16029
|
]),
|
|
16026
|
-
name:
|
|
16030
|
+
name: v(({ row: ie }) => [
|
|
16027
16031
|
y("div", EO, [
|
|
16028
16032
|
x(Ka, {
|
|
16029
16033
|
class: "plugin-icon",
|
|
16030
|
-
name:
|
|
16034
|
+
name: ie.name,
|
|
16031
16035
|
width: 24
|
|
16032
16036
|
}, null, 8, ["name"]),
|
|
16033
16037
|
y("div", kO, [
|
|
16034
|
-
|
|
16035
|
-
|
|
16038
|
+
ie.instance_name ? (g(), w("span", OO, U(ie.instance_name), 1)) : (g(), w("span", IO, U(b(n).getDisplayName(ie.name)), 1)),
|
|
16039
|
+
ie.instance_name ? (g(), w("span", MO, U(b(n).getDisplayName(ie.name)), 1)) : J("", !0)
|
|
16036
16040
|
])
|
|
16037
16041
|
])
|
|
16038
16042
|
]),
|
|
16039
|
-
appliedTo:
|
|
16040
|
-
B(
|
|
16041
|
-
default:
|
|
16042
|
-
(g(!0), w(oe, null, de(B(
|
|
16043
|
+
appliedTo: v(({ row: ie }) => [
|
|
16044
|
+
B(ie).length > 0 ? (g(), P(le, { key: 0 }, {
|
|
16045
|
+
default: v(() => [
|
|
16046
|
+
(g(!0), w(oe, null, de(B(ie), (X) => (g(), P(b(Kt), {
|
|
16043
16047
|
key: X.badgeText,
|
|
16044
|
-
"auth-function": () => S(X.type,
|
|
16048
|
+
"auth-function": () => S(X.type, ie),
|
|
16045
16049
|
"force-show": ""
|
|
16046
16050
|
}, {
|
|
16047
|
-
default:
|
|
16051
|
+
default: v(({ isAllowed: ee }) => [
|
|
16048
16052
|
x(se, {
|
|
16049
16053
|
class: ge(ee || "disabled"),
|
|
16050
|
-
onClick: Gt((Ne) => ee && X.type && k(X.type,
|
|
16054
|
+
onClick: Gt((Ne) => ee && X.type && k(X.type, ie), ["stop"])
|
|
16051
16055
|
}, {
|
|
16052
|
-
default:
|
|
16056
|
+
default: v(() => [
|
|
16053
16057
|
re(U(X.badgeText), 1)
|
|
16054
16058
|
]),
|
|
16055
16059
|
_: 2
|
|
@@ -16061,12 +16065,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16061
16065
|
_: 2
|
|
16062
16066
|
}, 1024)) : (g(), w("span", BO, "-"))
|
|
16063
16067
|
]),
|
|
16064
|
-
enabled:
|
|
16065
|
-
x(
|
|
16066
|
-
"auth-function": async () => !!(await e.canEdit(
|
|
16068
|
+
enabled: v(({ row: ie }) => [
|
|
16069
|
+
x(b(Kt), {
|
|
16070
|
+
"auth-function": async () => !!(await e.canEdit(ie) && await e.canToggle(ie)),
|
|
16067
16071
|
"force-show": ""
|
|
16068
16072
|
}, {
|
|
16069
|
-
default:
|
|
16073
|
+
default: v(({ isAllowed: X }) => {
|
|
16070
16074
|
var ee, Ne;
|
|
16071
16075
|
return [
|
|
16072
16076
|
y("div", {
|
|
@@ -16075,9 +16079,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16075
16079
|
}, [
|
|
16076
16080
|
x(Ce, {
|
|
16077
16081
|
disabled: !X,
|
|
16078
|
-
"disabled-tooltip-text": !X && ((Ne = (ee = e.config).getToggleDisabledTooltip) == null ? void 0 : Ne.call(ee,
|
|
16079
|
-
"model-value":
|
|
16080
|
-
onClick: Gt((jt) => X && V(
|
|
16082
|
+
"disabled-tooltip-text": !X && ((Ne = (ee = e.config).getToggleDisabledTooltip) == null ? void 0 : Ne.call(ee, ie)) || void 0,
|
|
16083
|
+
"model-value": ie.enabled,
|
|
16084
|
+
onClick: Gt((jt) => X && V(ie), ["stop", "prevent"])
|
|
16081
16085
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
16082
16086
|
])
|
|
16083
16087
|
];
|
|
@@ -16085,25 +16089,25 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16085
16089
|
_: 2
|
|
16086
16090
|
}, 1032, ["auth-function"])
|
|
16087
16091
|
]),
|
|
16088
|
-
ordering:
|
|
16092
|
+
ordering: v(({ rowValue: ie }) => [
|
|
16089
16093
|
x(se, {
|
|
16090
|
-
appearance:
|
|
16094
|
+
appearance: ie ? "warning" : "info"
|
|
16091
16095
|
}, {
|
|
16092
|
-
default:
|
|
16093
|
-
re(U(
|
|
16096
|
+
default: v(() => [
|
|
16097
|
+
re(U(ie ? b(r)("plugins.list.table_headers.ordering_badge.dynamic") : b(r)("plugins.list.table_headers.ordering_badge.static")), 1)
|
|
16094
16098
|
]),
|
|
16095
16099
|
_: 2
|
|
16096
16100
|
}, 1032, ["appearance"])
|
|
16097
16101
|
]),
|
|
16098
|
-
tags:
|
|
16099
|
-
(
|
|
16100
|
-
default:
|
|
16101
|
-
(g(!0), w(oe, null, de(
|
|
16102
|
+
tags: v(({ rowValue: ie }) => [
|
|
16103
|
+
(ie == null ? void 0 : ie.length) > 0 ? (g(), P(le, { key: 0 }, {
|
|
16104
|
+
default: v(() => [
|
|
16105
|
+
(g(!0), w(oe, null, de(ie, (X) => (g(), P(se, {
|
|
16102
16106
|
key: X,
|
|
16103
16107
|
onClick: W[2] || (W[2] = Gt(() => {
|
|
16104
16108
|
}, ["stop"]))
|
|
16105
16109
|
}, {
|
|
16106
|
-
default:
|
|
16110
|
+
default: v(() => [
|
|
16107
16111
|
re(U(X), 1)
|
|
16108
16112
|
]),
|
|
16109
16113
|
_: 2
|
|
@@ -16112,15 +16116,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16112
16116
|
_: 2
|
|
16113
16117
|
}, 1024)) : (g(), w("span", SO, "-"))
|
|
16114
16118
|
]),
|
|
16115
|
-
actions:
|
|
16119
|
+
actions: v(({ row: ie }) => [
|
|
16116
16120
|
x(Ae, null, {
|
|
16117
|
-
default:
|
|
16121
|
+
default: v(({ copyToClipboard: X }) => [
|
|
16118
16122
|
x(Ee, {
|
|
16119
16123
|
"data-testid": "action-entity-copy-id",
|
|
16120
|
-
onClick: (ee) => _(
|
|
16124
|
+
onClick: (ee) => _(ie, X)
|
|
16121
16125
|
}, {
|
|
16122
|
-
default:
|
|
16123
|
-
re(U(
|
|
16126
|
+
default: v(() => [
|
|
16127
|
+
re(U(b(r)("actions.copy_id")), 1)
|
|
16124
16128
|
]),
|
|
16125
16129
|
_: 2
|
|
16126
16130
|
}, 1032, ["onClick"])
|
|
@@ -16128,67 +16132,67 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16128
16132
|
_: 2
|
|
16129
16133
|
}, 1024),
|
|
16130
16134
|
x(Ae, null, {
|
|
16131
|
-
default:
|
|
16135
|
+
default: v(({ copyToClipboard: X }) => [
|
|
16132
16136
|
x(Ee, {
|
|
16133
16137
|
"data-testid": "action-entity-copy-json",
|
|
16134
|
-
onClick: (ee) => ie
|
|
16138
|
+
onClick: (ee) => ne(ie, X)
|
|
16135
16139
|
}, {
|
|
16136
|
-
default:
|
|
16137
|
-
re(U(
|
|
16140
|
+
default: v(() => [
|
|
16141
|
+
re(U(b(r)("actions.copy_json")), 1)
|
|
16138
16142
|
]),
|
|
16139
16143
|
_: 2
|
|
16140
16144
|
}, 1032, ["onClick"])
|
|
16141
16145
|
]),
|
|
16142
16146
|
_: 2
|
|
16143
16147
|
}, 1024),
|
|
16144
|
-
x(
|
|
16145
|
-
"auth-function": () => e.canRetrieve(
|
|
16148
|
+
x(b(Kt), {
|
|
16149
|
+
"auth-function": () => e.canRetrieve(ie)
|
|
16146
16150
|
}, {
|
|
16147
|
-
default:
|
|
16151
|
+
default: v(() => [
|
|
16148
16152
|
x(Ee, {
|
|
16149
16153
|
"data-testid": "action-entity-view",
|
|
16150
16154
|
"has-divider": "",
|
|
16151
|
-
item: Z(
|
|
16155
|
+
item: Z(ie)
|
|
16152
16156
|
}, null, 8, ["item"])
|
|
16153
16157
|
]),
|
|
16154
16158
|
_: 2
|
|
16155
16159
|
}, 1032, ["auth-function"]),
|
|
16156
|
-
x(
|
|
16157
|
-
"auth-function": () => e.canEdit(
|
|
16160
|
+
x(b(Kt), {
|
|
16161
|
+
"auth-function": () => e.canEdit(ie)
|
|
16158
16162
|
}, {
|
|
16159
|
-
default:
|
|
16163
|
+
default: v(() => [
|
|
16160
16164
|
x(Ee, {
|
|
16161
16165
|
"data-testid": "action-entity-edit",
|
|
16162
|
-
item: $(
|
|
16166
|
+
item: $(ie)
|
|
16163
16167
|
}, null, 8, ["item"])
|
|
16164
16168
|
]),
|
|
16165
16169
|
_: 2
|
|
16166
16170
|
}, 1032, ["auth-function"]),
|
|
16167
|
-
!l.value && !u.value &&
|
|
16171
|
+
!l.value && !u.value && b(c) ? (g(), P(b(Kt), {
|
|
16168
16172
|
key: 0,
|
|
16169
|
-
"auth-function": () => e.canConfigureDynamicOrdering(
|
|
16173
|
+
"auth-function": () => e.canConfigureDynamicOrdering(ie)
|
|
16170
16174
|
}, {
|
|
16171
|
-
default:
|
|
16172
|
-
Q(
|
|
16175
|
+
default: v(() => [
|
|
16176
|
+
Q(ie) ? (g(), P(Ee, {
|
|
16173
16177
|
key: 0,
|
|
16174
16178
|
"data-testid": "action-entity-config-dyn-order",
|
|
16175
|
-
item: Q(
|
|
16179
|
+
item: Q(ie)
|
|
16176
16180
|
}, null, 8, ["item"])) : J("", !0)
|
|
16177
16181
|
]),
|
|
16178
16182
|
_: 2
|
|
16179
16183
|
}, 1032, ["auth-function"])) : J("", !0),
|
|
16180
|
-
x(
|
|
16181
|
-
"auth-function": () => e.canDelete(
|
|
16184
|
+
x(b(Kt), {
|
|
16185
|
+
"auth-function": () => e.canDelete(ie)
|
|
16182
16186
|
}, {
|
|
16183
|
-
default:
|
|
16187
|
+
default: v(() => [
|
|
16184
16188
|
x(Ee, {
|
|
16185
16189
|
danger: "",
|
|
16186
16190
|
"data-testid": "action-entity-delete",
|
|
16187
16191
|
"has-divider": "",
|
|
16188
|
-
onClick: (X) => Re(
|
|
16192
|
+
onClick: (X) => Re(ie)
|
|
16189
16193
|
}, {
|
|
16190
|
-
default:
|
|
16191
|
-
re(U(
|
|
16194
|
+
default: v(() => [
|
|
16195
|
+
re(U(b(r)("actions.delete")), 1)
|
|
16192
16196
|
]),
|
|
16193
16197
|
_: 2
|
|
16194
16198
|
}, 1032, ["onClick"])
|
|
@@ -16198,23 +16202,23 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16198
16202
|
]),
|
|
16199
16203
|
_: 1
|
|
16200
16204
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "title", "title-tag", "use-action-outside"]),
|
|
16201
|
-
x(
|
|
16205
|
+
x(b(Ug), {
|
|
16202
16206
|
action: G.value.action,
|
|
16203
16207
|
"entity-id": G.value.id,
|
|
16204
16208
|
"entity-name": G.value.name,
|
|
16205
|
-
"entity-type":
|
|
16209
|
+
"entity-type": b(r)("glossary.plugin"),
|
|
16206
16210
|
"on-confirm": te,
|
|
16207
16211
|
visible: D.value,
|
|
16208
16212
|
onCancel: z,
|
|
16209
16213
|
onProceed: z
|
|
16210
16214
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
16211
|
-
x(
|
|
16215
|
+
x(b(Co), {
|
|
16212
16216
|
"action-pending": we.value,
|
|
16213
|
-
description:
|
|
16217
|
+
description: b(r)("delete.description"),
|
|
16214
16218
|
"entity-name": F.value && (F.value.instance_name || F.value.name || F.value.id),
|
|
16215
|
-
"entity-type":
|
|
16219
|
+
"entity-type": b(ma).Plugin,
|
|
16216
16220
|
error: Ue.value,
|
|
16217
|
-
title:
|
|
16221
|
+
title: b(r)("delete.title"),
|
|
16218
16222
|
visible: ye.value,
|
|
16219
16223
|
onCancel: Fe,
|
|
16220
16224
|
onProceed: xe
|
|
@@ -16222,7 +16226,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16222
16226
|
]);
|
|
16223
16227
|
};
|
|
16224
16228
|
}
|
|
16225
|
-
}), UI = /* @__PURE__ */
|
|
16229
|
+
}), UI = /* @__PURE__ */ At(RO, [["__scopeId", "data-v-43a49e84"]]), xO = (e) => (Ke("data-v-14bc032f"), e = e(), qe(), e), TO = { class: "plugin-card-header" }, LO = { class: "plugin-card-footer" }, jO = /* @__PURE__ */ xO(() => /* @__PURE__ */ y("hr", { class: "plugin-card-footer-divider" }, null, -1)), NO = { class: "footer-skeleton" }, PO = /* @__PURE__ */ ue({
|
|
16226
16230
|
__name: "PluginCardSkeleton",
|
|
16227
16231
|
props: {
|
|
16228
16232
|
cardCount: {
|
|
@@ -16238,15 +16242,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16238
16242
|
class: "plugin-card-skeleton",
|
|
16239
16243
|
type: "card"
|
|
16240
16244
|
}, {
|
|
16241
|
-
"card-header":
|
|
16245
|
+
"card-header": v(() => [
|
|
16242
16246
|
y("div", TO, [
|
|
16243
16247
|
x(i, { width: "5" })
|
|
16244
16248
|
])
|
|
16245
16249
|
]),
|
|
16246
|
-
"card-content":
|
|
16250
|
+
"card-content": v(() => [
|
|
16247
16251
|
re(" ")
|
|
16248
16252
|
]),
|
|
16249
|
-
"card-footer":
|
|
16253
|
+
"card-footer": v(() => [
|
|
16250
16254
|
y("div", LO, [
|
|
16251
16255
|
jO,
|
|
16252
16256
|
y("div", NO, [
|
|
@@ -16258,7 +16262,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16258
16262
|
}, 8, ["card-count"]);
|
|
16259
16263
|
};
|
|
16260
16264
|
}
|
|
16261
|
-
}), DO = /* @__PURE__ */
|
|
16265
|
+
}), DO = /* @__PURE__ */ At(PO, [["__scopeId", "data-v-14bc032f"]]), UO = "16px", YO = ["data-testid"], GO = { class: "plugin-card-header" }, HO = { class: "plugin-card-title" }, VO = {
|
|
16262
16266
|
key: 0,
|
|
16263
16267
|
class: "plugin-card-actions"
|
|
16264
16268
|
}, FO = ["data-testid", "title"], zO = {
|
|
@@ -16321,7 +16325,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16321
16325
|
"position-fixed": "",
|
|
16322
16326
|
text: e.plugin.disabledMessage
|
|
16323
16327
|
}, {
|
|
16324
|
-
default:
|
|
16328
|
+
default: v(() => [
|
|
16325
16329
|
y("a", {
|
|
16326
16330
|
class: ge(["plugin-select-card", { disabled: o.value }]),
|
|
16327
16331
|
"data-testid": `${e.plugin.id}-card`,
|
|
@@ -16340,7 +16344,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16340
16344
|
"kpop-attributes": { placement: "bottom-end" },
|
|
16341
16345
|
width: "150"
|
|
16342
16346
|
}, {
|
|
16343
|
-
default:
|
|
16347
|
+
default: v(() => [
|
|
16344
16348
|
x(Y, {
|
|
16345
16349
|
appearance: "tertiary",
|
|
16346
16350
|
class: "actions-trigger",
|
|
@@ -16348,20 +16352,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16348
16352
|
icon: "",
|
|
16349
16353
|
size: "small"
|
|
16350
16354
|
}, {
|
|
16351
|
-
default:
|
|
16352
|
-
x(
|
|
16355
|
+
default: v(() => [
|
|
16356
|
+
x(b(wO), { size: b(UO) }, null, 8, ["size"])
|
|
16353
16357
|
]),
|
|
16354
16358
|
_: 1
|
|
16355
16359
|
})
|
|
16356
16360
|
]),
|
|
16357
|
-
items:
|
|
16361
|
+
items: v(() => [
|
|
16358
16362
|
e.canDeleteCustomPlugin ? (g(), P(E, {
|
|
16359
16363
|
key: 0,
|
|
16360
16364
|
"data-testid": "edit-plugin-schema",
|
|
16361
16365
|
onClick: R[0] || (R[0] = Gt((B) => C(e.plugin.name), ["stop"]))
|
|
16362
16366
|
}, {
|
|
16363
|
-
default:
|
|
16364
|
-
re(U(
|
|
16367
|
+
default: v(() => [
|
|
16368
|
+
re(U(b(r)("actions.edit")), 1)
|
|
16365
16369
|
]),
|
|
16366
16370
|
_: 1
|
|
16367
16371
|
})) : J("", !0),
|
|
@@ -16372,8 +16376,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16372
16376
|
"has-divider": "",
|
|
16373
16377
|
onClick: Gt(M, ["stop"])
|
|
16374
16378
|
}, {
|
|
16375
|
-
default:
|
|
16376
|
-
re(U(
|
|
16379
|
+
default: v(() => [
|
|
16380
|
+
re(U(b(r)("actions.delete")), 1)
|
|
16377
16381
|
]),
|
|
16378
16382
|
_: 1
|
|
16379
16383
|
})) : J("", !0)
|
|
@@ -16385,7 +16389,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16385
16389
|
y("div", {
|
|
16386
16390
|
class: ge(["plugin-card-body", { "custom-plugin": h.value }]),
|
|
16387
16391
|
"data-testid": e.plugin.name,
|
|
16388
|
-
title: e.plugin.available ? e.plugin.name :
|
|
16392
|
+
title: e.plugin.available ? e.plugin.name : b(r)("plugins.select.unavailable_tooltip"),
|
|
16389
16393
|
onClick: O
|
|
16390
16394
|
}, [
|
|
16391
16395
|
x(Ka, {
|
|
@@ -16395,7 +16399,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16395
16399
|
size: 55
|
|
16396
16400
|
}, null, 8, ["alt", "name"]),
|
|
16397
16401
|
e.plugin.description || h.value && !m.value ? (g(), w("div", zO, [
|
|
16398
|
-
h.value && !m.value ? (g(), w("p", KO, U(
|
|
16402
|
+
h.value && !m.value ? (g(), w("p", KO, U(b(r)("plugins.select.custom_badge_text")), 1)) : J("", !0),
|
|
16399
16403
|
e.plugin.description ? (g(), w("p", {
|
|
16400
16404
|
key: 1,
|
|
16401
16405
|
class: "plugin-card-text",
|
|
@@ -16406,14 +16410,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16406
16410
|
y("div", {
|
|
16407
16411
|
class: "plugin-card-footer",
|
|
16408
16412
|
onClick: O
|
|
16409
|
-
}, U(m.value ?
|
|
16413
|
+
}, U(m.value ? b(r)("actions.create_custom") : e.plugin.exists ? b(r)("actions.enabled") : b(r)("actions.enable")), 1)
|
|
16410
16414
|
], 10, YO)
|
|
16411
16415
|
]),
|
|
16412
16416
|
_: 1
|
|
16413
16417
|
}, 8, ["text"]);
|
|
16414
16418
|
};
|
|
16415
16419
|
}
|
|
16416
|
-
}), ki = /* @__PURE__ */
|
|
16420
|
+
}), ki = /* @__PURE__ */ At(XO, [["__scopeId", "data-v-07903e12"]]), JO = /* @__PURE__ */ ue({
|
|
16417
16421
|
__name: "DeleteCustomPluginSchemaModal",
|
|
16418
16422
|
props: {
|
|
16419
16423
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -16448,14 +16452,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16448
16452
|
};
|
|
16449
16453
|
return (M, C) => {
|
|
16450
16454
|
const O = H("KButton"), I = H("KModal");
|
|
16451
|
-
return !p.value && e.plugin ? (g(), P(
|
|
16455
|
+
return !p.value && e.plugin ? (g(), P(b(Co), {
|
|
16452
16456
|
key: 0,
|
|
16453
16457
|
"action-pending": u.value,
|
|
16454
16458
|
class: "delete-custom-plugin-schema-modal",
|
|
16455
16459
|
"data-testid": "delete-custom-plugin-schema-modal",
|
|
16456
|
-
description:
|
|
16460
|
+
description: b(r)("delete.description_custom"),
|
|
16457
16461
|
"entity-name": e.plugin.name,
|
|
16458
|
-
"entity-type":
|
|
16462
|
+
"entity-type": b(ma).Plugin,
|
|
16459
16463
|
error: c.value,
|
|
16460
16464
|
"need-confirm": "",
|
|
16461
16465
|
title: l.value,
|
|
@@ -16471,20 +16475,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16471
16475
|
visible: "",
|
|
16472
16476
|
onCancel: C[2] || (C[2] = (R) => M.$emit("closed"))
|
|
16473
16477
|
}, {
|
|
16474
|
-
default:
|
|
16478
|
+
default: v(() => [
|
|
16475
16479
|
y("div", null, [
|
|
16476
|
-
x(
|
|
16480
|
+
x(b(a), {
|
|
16477
16481
|
keypath: "delete.plugin_schema_in_use_message",
|
|
16478
16482
|
tag: "p"
|
|
16479
16483
|
}, {
|
|
16480
|
-
name:
|
|
16484
|
+
name: v(() => [
|
|
16481
16485
|
y("strong", null, U(e.plugin.name), 1)
|
|
16482
16486
|
]),
|
|
16483
16487
|
_: 1
|
|
16484
16488
|
})
|
|
16485
16489
|
])
|
|
16486
16490
|
]),
|
|
16487
|
-
"footer-actions":
|
|
16491
|
+
"footer-actions": v(() => [
|
|
16488
16492
|
y("div", null, [
|
|
16489
16493
|
x(O, {
|
|
16490
16494
|
appearance: "tertiary",
|
|
@@ -16492,8 +16496,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16492
16496
|
"data-testid": "delete-custom-plugin-form-cancel",
|
|
16493
16497
|
onClick: C[1] || (C[1] = (R) => M.$emit("closed"))
|
|
16494
16498
|
}, {
|
|
16495
|
-
default:
|
|
16496
|
-
re(U(
|
|
16499
|
+
default: v(() => [
|
|
16500
|
+
re(U(b(r)("actions.cancel")), 1)
|
|
16497
16501
|
]),
|
|
16498
16502
|
_: 1
|
|
16499
16503
|
})
|
|
@@ -16503,7 +16507,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16503
16507
|
}, 8, ["action-button-disabled", "title"])) : J("", !0);
|
|
16504
16508
|
};
|
|
16505
16509
|
}
|
|
16506
|
-
}), ZO = /* @__PURE__ */
|
|
16510
|
+
}), ZO = /* @__PURE__ */ At(JO, [["__scopeId", "data-v-4148beb9"]]), WO = { class: "custom-plugins-grid" }, QO = { class: "empty-state-title" }, _O = { class: "empty-state-description" }, $O = { class: "plugin-card-container" }, eI = { class: "plugin-card-container" }, tI = /* @__PURE__ */ ue({
|
|
16507
16511
|
__name: "PluginCustomGrid",
|
|
16508
16512
|
props: {
|
|
16509
16513
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -16592,13 +16596,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16592
16596
|
modelValue: s.value,
|
|
16593
16597
|
"onUpdate:modelValue": C[0] || (C[0] = (R) => s.value = R),
|
|
16594
16598
|
class: "custom-plugins-collapse",
|
|
16595
|
-
"data-testid": `${
|
|
16596
|
-
title:
|
|
16599
|
+
"data-testid": `${b(K).CUSTOM_PLUGINS}-collapse`,
|
|
16600
|
+
title: b(K).CUSTOM_PLUGINS,
|
|
16597
16601
|
"trigger-label": u.value
|
|
16598
16602
|
}, ct({
|
|
16599
|
-
"visible-content":
|
|
16603
|
+
"visible-content": v(() => [
|
|
16600
16604
|
y("div", $O, [
|
|
16601
|
-
(g(!0), w(oe, null, de(
|
|
16605
|
+
(g(!0), w(oe, null, de(b(r)("visible", l.value, e.pluginsPerRow), (R, Y) => (g(), P(ki, {
|
|
16602
16606
|
key: `plugin-card-${Y}`,
|
|
16603
16607
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
16604
16608
|
"can-edit-custom-plugin": e.canEditCustomPlugin,
|
|
@@ -16610,9 +16614,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16610
16614
|
}, null, 8, ["can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin", "onCustomPluginDelete"]))), 128))
|
|
16611
16615
|
])
|
|
16612
16616
|
]),
|
|
16613
|
-
default:
|
|
16617
|
+
default: v(() => [
|
|
16614
16618
|
y("div", eI, [
|
|
16615
|
-
(g(!0), w(oe, null, de(
|
|
16619
|
+
(g(!0), w(oe, null, de(b(r)("hidden", l.value, e.pluginsPerRow), (R, Y) => (g(), P(ki, {
|
|
16616
16620
|
key: `plugin-card-${Y}`,
|
|
16617
16621
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
16618
16622
|
"can-edit-custom-plugin": e.canEditCustomPlugin,
|
|
@@ -16627,7 +16631,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16627
16631
|
}, [
|
|
16628
16632
|
l.value.length <= e.pluginsPerRow ? {
|
|
16629
16633
|
name: "trigger",
|
|
16630
|
-
fn:
|
|
16634
|
+
fn: v(() => [
|
|
16631
16635
|
re(" ")
|
|
16632
16636
|
]),
|
|
16633
16637
|
key: "0"
|
|
@@ -16638,11 +16642,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16638
16642
|
class: "custom-plugins-empty-state",
|
|
16639
16643
|
"icon-variant": "kong"
|
|
16640
16644
|
}, {
|
|
16641
|
-
title:
|
|
16642
|
-
y("span", QO, U(
|
|
16645
|
+
title: v(() => [
|
|
16646
|
+
y("span", QO, U(b(a)("plugins.select.tabs.custom.empty_title")), 1)
|
|
16643
16647
|
]),
|
|
16644
|
-
default:
|
|
16645
|
-
y("span", _O, U(
|
|
16648
|
+
default: v(() => [
|
|
16649
|
+
y("span", _O, U(b(a)("plugins.select.tabs.custom.empty_description")), 1)
|
|
16646
16650
|
]),
|
|
16647
16651
|
_: 1
|
|
16648
16652
|
})),
|
|
@@ -16656,7 +16660,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16656
16660
|
]);
|
|
16657
16661
|
};
|
|
16658
16662
|
}
|
|
16659
|
-
}), nI = /* @__PURE__ */
|
|
16663
|
+
}), nI = /* @__PURE__ */ At(tI, [["__scopeId", "data-v-ee6d3205"]]), iI = { class: "plugin-card-container" }, aI = { class: "plugin-card-container" }, rI = /* @__PURE__ */ ue({
|
|
16660
16664
|
__name: "PluginSelectGroup",
|
|
16661
16665
|
props: /* @__PURE__ */ _a({
|
|
16662
16666
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -16713,11 +16717,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16713
16717
|
class: "plugins-collapse",
|
|
16714
16718
|
"data-testid": `${i.name}-collapse`,
|
|
16715
16719
|
title: i.name,
|
|
16716
|
-
"trigger-label": n.value ? o.value :
|
|
16720
|
+
"trigger-label": n.value ? o.value : b(r)("plugins.select.view_less")
|
|
16717
16721
|
}, ct({
|
|
16718
|
-
"visible-content":
|
|
16722
|
+
"visible-content": v(() => [
|
|
16719
16723
|
y("div", iI, [
|
|
16720
|
-
(g(!0), w(oe, null, de(
|
|
16724
|
+
(g(!0), w(oe, null, de(b(s)("visible", i.plugins, i.pluginsPerRow), (p) => (g(), P(ki, {
|
|
16721
16725
|
key: `plugin-card-${p.id}`,
|
|
16722
16726
|
config: e.config,
|
|
16723
16727
|
"navigate-on-click": e.navigateOnClick,
|
|
@@ -16726,9 +16730,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16726
16730
|
}, null, 8, ["config", "navigate-on-click", "plugin", "onPluginClicked"]))), 128))
|
|
16727
16731
|
])
|
|
16728
16732
|
]),
|
|
16729
|
-
default:
|
|
16733
|
+
default: v(() => [
|
|
16730
16734
|
y("div", aI, [
|
|
16731
|
-
(g(!0), w(oe, null, de(
|
|
16735
|
+
(g(!0), w(oe, null, de(b(s)("hidden", i.plugins, i.pluginsPerRow), (p) => (g(), P(ki, {
|
|
16732
16736
|
key: `plugin-card-${p.id}`,
|
|
16733
16737
|
config: e.config,
|
|
16734
16738
|
"navigate-on-click": e.navigateOnClick,
|
|
@@ -16741,7 +16745,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16741
16745
|
}, [
|
|
16742
16746
|
i.plugins.length <= e.pluginsPerRow ? {
|
|
16743
16747
|
name: "trigger",
|
|
16744
|
-
fn:
|
|
16748
|
+
fn: v(() => [
|
|
16745
16749
|
re(" ")
|
|
16746
16750
|
]),
|
|
16747
16751
|
key: "0"
|
|
@@ -16749,7 +16753,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16749
16753
|
]), 1032, ["modelValue", "data-testid", "title", "trigger-label"]);
|
|
16750
16754
|
};
|
|
16751
16755
|
}
|
|
16752
|
-
}), ws = /* @__PURE__ */
|
|
16756
|
+
}), ws = /* @__PURE__ */ At(rI, [["__scopeId", "data-v-12700243"]]), sI = { class: "plugin-select-grid" }, oI = { class: "empty-state-title" }, lI = { class: "empty-state-description" }, Cs = /* @__PURE__ */ ue({
|
|
16753
16757
|
__name: "PluginSelectGrid",
|
|
16754
16758
|
props: {
|
|
16755
16759
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -16820,11 +16824,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16820
16824
|
"data-testid": "plugins-empty-state",
|
|
16821
16825
|
"icon-variant": "kong"
|
|
16822
16826
|
}, {
|
|
16823
|
-
title:
|
|
16824
|
-
y("span", oI, U(
|
|
16827
|
+
title: v(() => [
|
|
16828
|
+
y("span", oI, U(b(a)("plugins.select.tabs.kong.empty_title")), 1)
|
|
16825
16829
|
]),
|
|
16826
|
-
default:
|
|
16827
|
-
y("span", lI, U(
|
|
16830
|
+
default: v(() => [
|
|
16831
|
+
y("span", lI, U(b(a)("plugins.select.tabs.kong.empty_description")), 1)
|
|
16828
16832
|
]),
|
|
16829
16833
|
_: 1
|
|
16830
16834
|
})),
|
|
@@ -16833,13 +16837,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16833
16837
|
modelValue: r.value,
|
|
16834
16838
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => r.value = m),
|
|
16835
16839
|
config: e.config,
|
|
16836
|
-
name: n.highlightedPluginsTitle ||
|
|
16840
|
+
name: n.highlightedPluginsTitle || b(a)("plugins.select.highlighted_plugins.title"),
|
|
16837
16841
|
"navigate-on-click": e.navigateOnClick,
|
|
16838
16842
|
plugins: n.highlightedPlugins,
|
|
16839
16843
|
"plugins-per-row": e.pluginsPerRow,
|
|
16840
16844
|
onPluginClicked: c[1] || (c[1] = (m) => o(m))
|
|
16841
16845
|
}, null, 8, ["modelValue", "config", "name", "navigate-on-click", "plugins", "plugins-per-row"])) : J("", !0),
|
|
16842
|
-
(g(!0), w(oe, null, de(
|
|
16846
|
+
(g(!0), w(oe, null, de(b(mf), (m) => (g(), w(oe, null, [
|
|
16843
16847
|
l.value[m] ? (g(), w("div", { key: m }, [
|
|
16844
16848
|
x(ws, {
|
|
16845
16849
|
modelValue: s.value[m],
|
|
@@ -16955,8 +16959,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
16955
16959
|
},
|
|
16956
16960
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
16957
16961
|
setup(e, { emit: t }) {
|
|
16958
|
-
var
|
|
16959
|
-
const n = e, i = t, a = eu(), r = Wn(), { i18n: { t: s } } = je.useI18n(), { pluginMetaData: o } = je.usePluginMetaData(), { getMessageFromError: l } = Si(), { sortAlpha: u, objectsAreEqual: c } = Ri(), p = q(""), m = q(!0), h = q(!1), M = q(""), C = q([]), O = q({}), I = q([]), { axiosInstance: R } = wn((
|
|
16962
|
+
var ne, ce;
|
|
16963
|
+
const n = e, i = t, a = eu(), r = Wn(), { i18n: { t: s } } = je.useI18n(), { pluginMetaData: o } = je.usePluginMetaData(), { getMessageFromError: l } = Si(), { sortAlpha: u, objectsAreEqual: c } = Ri(), p = q(""), m = q(!0), h = q(!1), M = q(""), C = q([]), O = q({}), I = q([]), { axiosInstance: R } = wn((ne = n.config) == null ? void 0 : ne.axiosRequestConfig), Y = j(() => O.value ? Object.entries(O.value).filter(([Z]) => Z !== K.CUSTOM_PLUGINS).reduce((Z, [, $]) => {
|
|
16960
16964
|
for (const Q of $)
|
|
16961
16965
|
Z[Q.id] = Q;
|
|
16962
16966
|
return Z;
|
|
@@ -17058,7 +17062,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17058
17062
|
modelModifiers: { trim: !0 },
|
|
17059
17063
|
class: "plugins-filter-input",
|
|
17060
17064
|
"data-testid": "plugins-filter",
|
|
17061
|
-
placeholder:
|
|
17065
|
+
placeholder: b(s)("search.placeholder.select"),
|
|
17062
17066
|
type: "search"
|
|
17063
17067
|
}, null, 8, ["modelValue", "placeholder"])
|
|
17064
17068
|
]),
|
|
@@ -17067,7 +17071,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17067
17071
|
"table-rows": 1,
|
|
17068
17072
|
type: "table"
|
|
17069
17073
|
}, {
|
|
17070
|
-
default:
|
|
17074
|
+
default: v(() => [
|
|
17071
17075
|
x(F, { width: "6" }),
|
|
17072
17076
|
x(F, {
|
|
17073
17077
|
class: "title-loading-skeleton",
|
|
@@ -17086,7 +17090,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17086
17090
|
"data-testid": "plugins-fetch-error",
|
|
17087
17091
|
"icon-variant": "error"
|
|
17088
17092
|
}, {
|
|
17089
|
-
default:
|
|
17093
|
+
default: v(() => [
|
|
17090
17094
|
y("h3", null, U(M.value), 1)
|
|
17091
17095
|
]),
|
|
17092
17096
|
_: 1
|
|
@@ -17096,22 +17100,22 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17096
17100
|
"data-testid": "plugins-empty-state",
|
|
17097
17101
|
"icon-variant": "search"
|
|
17098
17102
|
}, {
|
|
17099
|
-
default:
|
|
17100
|
-
y("h5", null, U(
|
|
17103
|
+
default: v(() => [
|
|
17104
|
+
y("h5", null, U(b(s)("search.no_results", { filter: p.value })), 1)
|
|
17101
17105
|
]),
|
|
17102
17106
|
_: 1
|
|
17103
17107
|
})) : (g(), w("section", pI, [
|
|
17104
|
-
|
|
17108
|
+
b(S).length && !e.hideCustomPlugins ? (g(), P(Mt, {
|
|
17105
17109
|
key: 0,
|
|
17106
17110
|
modelValue: k.value,
|
|
17107
17111
|
"onUpdate:modelValue": $[5] || ($[5] = (Re) => k.value = Re),
|
|
17108
17112
|
"data-testid": "plugins-tabs",
|
|
17109
|
-
tabs:
|
|
17113
|
+
tabs: b(S),
|
|
17110
17114
|
onChange: V
|
|
17111
17115
|
}, ct({
|
|
17112
|
-
kong:
|
|
17116
|
+
kong: v(() => [
|
|
17113
17117
|
y("div", gI, [
|
|
17114
|
-
y("p", mI, U(
|
|
17118
|
+
y("p", mI, U(b(s)("plugins.select.tabs.kong.description")), 1),
|
|
17115
17119
|
x(Cs, {
|
|
17116
17120
|
config: e.config,
|
|
17117
17121
|
"hide-highlighted-plugins": p.value.length > 0,
|
|
@@ -17124,9 +17128,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17124
17128
|
}, null, 8, ["config", "hide-highlighted-plugins", "highlighted-plugins", "highlighted-plugins-title", "navigate-on-click", "plugin-list", "plugins-per-row"])
|
|
17125
17129
|
])
|
|
17126
17130
|
]),
|
|
17127
|
-
custom:
|
|
17131
|
+
custom: v(() => [
|
|
17128
17132
|
y("div", AI, [
|
|
17129
|
-
y("p", fI, U(
|
|
17133
|
+
y("p", fI, U(b(s)("plugins.select.tabs.custom.description")), 1),
|
|
17130
17134
|
x(nI, {
|
|
17131
17135
|
"can-create-custom-plugin": z.value,
|
|
17132
17136
|
"can-delete-custom-plugin": _.value,
|
|
@@ -17145,13 +17149,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17145
17149
|
}, [
|
|
17146
17150
|
e.disableCustomPlugins ? {
|
|
17147
17151
|
name: "custom-anchor",
|
|
17148
|
-
fn:
|
|
17152
|
+
fn: v(() => [
|
|
17149
17153
|
x(Ue, {
|
|
17150
17154
|
"max-width": "300",
|
|
17151
|
-
text:
|
|
17155
|
+
text: b(s)("plugins.select.tabs.custom.disabled_tooltip")
|
|
17152
17156
|
}, {
|
|
17153
|
-
default:
|
|
17154
|
-
y("div", null, U(
|
|
17157
|
+
default: v(() => [
|
|
17158
|
+
y("div", null, U(b(s)("plugins.select.tabs.custom.title")), 1)
|
|
17155
17159
|
]),
|
|
17156
17160
|
_: 1
|
|
17157
17161
|
}, 8, ["text"])
|
|
@@ -17173,7 +17177,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17173
17177
|
]);
|
|
17174
17178
|
};
|
|
17175
17179
|
}
|
|
17176
|
-
}), YI = /* @__PURE__ */
|
|
17180
|
+
}), YI = /* @__PURE__ */ At(hI, [["__scopeId", "data-v-a110ea85"]]), yI = { class: "kong-ui-entity-plugin-config-card" }, vI = { class: "name-cell-wrapper" }, bI = { class: "info-name" }, wI = { key: 0 }, CI = { key: 0 }, EI = { key: 0 }, kI = { key: 0 }, Qi = "config", OI = /* @__PURE__ */ ue({
|
|
17177
17181
|
__name: "PluginConfigCard",
|
|
17178
17182
|
props: {
|
|
17179
17183
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -17310,11 +17314,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17310
17314
|
"data-testid": "plugin-config-card-schema-error",
|
|
17311
17315
|
"icon-variant": "error"
|
|
17312
17316
|
}, {
|
|
17313
|
-
default:
|
|
17317
|
+
default: v(() => [
|
|
17314
17318
|
y("h3", null, U(I.value), 1)
|
|
17315
17319
|
]),
|
|
17316
17320
|
_: 1
|
|
17317
|
-
})) : (g(), P(
|
|
17321
|
+
})) : (g(), P(b(sg), {
|
|
17318
17322
|
key: 2,
|
|
17319
17323
|
config: e.config,
|
|
17320
17324
|
"config-card-doc": e.configCardDoc,
|
|
@@ -17327,78 +17331,78 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17327
17331
|
"onFetch:success": E[1] || (E[1] = (S) => Y.$emit("fetch:success", S)),
|
|
17328
17332
|
onLoading: E[2] || (E[2] = (S) => Y.$emit("loading", S))
|
|
17329
17333
|
}, {
|
|
17330
|
-
name:
|
|
17334
|
+
name: v((S) => [
|
|
17331
17335
|
y("div", vI, [
|
|
17332
17336
|
x(Ka, {
|
|
17333
17337
|
class: "plugin-icon",
|
|
17334
|
-
name:
|
|
17338
|
+
name: b(o)("rowValue", S),
|
|
17335
17339
|
width: 24
|
|
17336
17340
|
}, null, 8, ["name"]),
|
|
17337
|
-
y("span", bI, U(
|
|
17341
|
+
y("span", bI, U(b(r).getDisplayName(b(o)("rowValue", S))), 1)
|
|
17338
17342
|
])
|
|
17339
17343
|
]),
|
|
17340
|
-
consumer:
|
|
17341
|
-
|
|
17344
|
+
consumer: v((S) => [
|
|
17345
|
+
b(o)("rowValue", S) ? e.showIdAsLink ? (g(), P(b(Sn), {
|
|
17342
17346
|
key: 1,
|
|
17343
17347
|
item: {
|
|
17344
|
-
key:
|
|
17345
|
-
value:
|
|
17346
|
-
type:
|
|
17348
|
+
key: b(o)("rowValue", S).id,
|
|
17349
|
+
value: b(o)("rowValue", S).id,
|
|
17350
|
+
type: b(pe).LinkInternal
|
|
17347
17351
|
},
|
|
17348
|
-
onNavigationClick: () => Y.$emit("navigation-click",
|
|
17352
|
+
onNavigationClick: () => Y.$emit("navigation-click", b(o)("rowValue", S).id, "consumer")
|
|
17349
17353
|
}, null, 8, ["item", "onNavigationClick"])) : (g(), P(B, {
|
|
17350
17354
|
key: 2,
|
|
17351
|
-
"copy-tooltip":
|
|
17355
|
+
"copy-tooltip": b(a)("copy.tooltip", { label: b(o)("row", S).label }),
|
|
17352
17356
|
"data-testid": "consumer-copy-uuid",
|
|
17353
|
-
text:
|
|
17357
|
+
text: b(o)("rowValue", S).id
|
|
17354
17358
|
}, null, 8, ["copy-tooltip", "text"])) : (g(), w("span", wI, "–"))
|
|
17355
17359
|
]),
|
|
17356
|
-
route:
|
|
17357
|
-
|
|
17360
|
+
route: v((S) => [
|
|
17361
|
+
b(o)("rowValue", S) ? e.showIdAsLink ? (g(), P(b(Sn), {
|
|
17358
17362
|
key: 1,
|
|
17359
17363
|
item: {
|
|
17360
|
-
key:
|
|
17361
|
-
value:
|
|
17362
|
-
type:
|
|
17364
|
+
key: b(o)("rowValue", S).id,
|
|
17365
|
+
value: b(o)("rowValue", S).id,
|
|
17366
|
+
type: b(pe).LinkInternal
|
|
17363
17367
|
},
|
|
17364
|
-
onNavigationClick: () => Y.$emit("navigation-click",
|
|
17368
|
+
onNavigationClick: () => Y.$emit("navigation-click", b(o)("rowValue", S).id, "route")
|
|
17365
17369
|
}, null, 8, ["item", "onNavigationClick"])) : (g(), P(B, {
|
|
17366
17370
|
key: 2,
|
|
17367
|
-
"copy-tooltip":
|
|
17371
|
+
"copy-tooltip": b(a)("copy.tooltip", { label: b(o)("row", S).label }),
|
|
17368
17372
|
"data-testid": "route-copy-uuid",
|
|
17369
|
-
text:
|
|
17373
|
+
text: b(o)("rowValue", S).id
|
|
17370
17374
|
}, null, 8, ["copy-tooltip", "text"])) : (g(), w("span", CI, "–"))
|
|
17371
17375
|
]),
|
|
17372
|
-
service:
|
|
17373
|
-
|
|
17376
|
+
service: v((S) => [
|
|
17377
|
+
b(o)("rowValue", S) ? e.showIdAsLink ? (g(), P(b(Sn), {
|
|
17374
17378
|
key: 1,
|
|
17375
17379
|
item: {
|
|
17376
|
-
key:
|
|
17377
|
-
value:
|
|
17378
|
-
type:
|
|
17380
|
+
key: b(o)("rowValue", S).id,
|
|
17381
|
+
value: b(o)("rowValue", S).id,
|
|
17382
|
+
type: b(pe).LinkInternal
|
|
17379
17383
|
},
|
|
17380
|
-
onNavigationClick: () => Y.$emit("navigation-click",
|
|
17384
|
+
onNavigationClick: () => Y.$emit("navigation-click", b(o)("rowValue", S).id, "service")
|
|
17381
17385
|
}, null, 8, ["item", "onNavigationClick"])) : (g(), P(B, {
|
|
17382
17386
|
key: 2,
|
|
17383
|
-
"copy-tooltip":
|
|
17387
|
+
"copy-tooltip": b(a)("copy.tooltip", { label: b(o)("row", S).label }),
|
|
17384
17388
|
"data-testid": "service-copy-uuid",
|
|
17385
|
-
text:
|
|
17389
|
+
text: b(o)("rowValue", S).id
|
|
17386
17390
|
}, null, 8, ["copy-tooltip", "text"])) : (g(), w("span", EI, "–"))
|
|
17387
17391
|
]),
|
|
17388
|
-
consumer_group:
|
|
17389
|
-
|
|
17392
|
+
consumer_group: v((S) => [
|
|
17393
|
+
b(o)("rowValue", S) ? e.showIdAsLink ? (g(), P(b(Sn), {
|
|
17390
17394
|
key: 1,
|
|
17391
17395
|
item: {
|
|
17392
|
-
key:
|
|
17393
|
-
value:
|
|
17394
|
-
type:
|
|
17396
|
+
key: b(o)("rowValue", S).id,
|
|
17397
|
+
value: b(o)("rowValue", S).id,
|
|
17398
|
+
type: b(pe).LinkInternal
|
|
17395
17399
|
},
|
|
17396
|
-
onNavigationClick: () => Y.$emit("navigation-click",
|
|
17400
|
+
onNavigationClick: () => Y.$emit("navigation-click", b(o)("rowValue", S).id, "consumer_group")
|
|
17397
17401
|
}, null, 8, ["item", "onNavigationClick"])) : (g(), P(B, {
|
|
17398
17402
|
key: 2,
|
|
17399
|
-
"copy-tooltip":
|
|
17403
|
+
"copy-tooltip": b(a)("copy.tooltip", { label: b(o)("row", S).label }),
|
|
17400
17404
|
"data-testid": "consumer-group-copy-uuid",
|
|
17401
|
-
text:
|
|
17405
|
+
text: b(o)("rowValue", S).id
|
|
17402
17406
|
}, null, 8, ["copy-tooltip", "text"])) : (g(), w("span", kI, "–"))
|
|
17403
17407
|
]),
|
|
17404
17408
|
_: 1
|
|
@@ -17406,7 +17410,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
17406
17410
|
]);
|
|
17407
17411
|
};
|
|
17408
17412
|
}
|
|
17409
|
-
}), GI = /* @__PURE__ */
|
|
17413
|
+
}), GI = /* @__PURE__ */ At(OI, [["__scopeId", "data-v-3e4f66ec"]]), { usePluginMetaData: HI } = je;
|
|
17410
17414
|
export {
|
|
17411
17415
|
pn as EntityTypeIdField,
|
|
17412
17416
|
Af as PLUGIN_GROUPS_COLLAPSE_STATUS,
|