@kong-ui-public/entities-plugins 9.242.0 → 9.243.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toValue as
|
|
1
|
+
import { toValue as wt, warn as Ym, onScopeDispose as Jm, inject as pt, openBlock as S, createElementBlock as le, createElementVNode as ee, computed as L, ref as me, nextTick as an, shallowRef as pn, watch as Xe, provide as Kt, readonly as id, defineComponent as Pe, normalizeClass as yt, toDisplayString as ue, createCommentVNode as ye, unref as u, withModifiers as jt, normalizeStyle as Di, Fragment as Ge, renderList as et, createBlock as Z, withCtx as N, resolveDynamicComponent as Dt, useCssVars as Ea, resolveComponent as xe, createSlots as _t, createTextVNode as Le, useSlots as nn, createVNode as C, renderSlot as Qe, useTemplateRef as St, mergeProps as We, useModel as yi, onMounted as Cn, mergeModels as vi, toRef as Et, isRef as dl, markRaw as Xm, Transition as Zm, onBeforeUnmount as xa, reactive as xi, toRaw as Tr, onUnmounted as $r, useAttrs as si, normalizeProps as En, guardReactiveProps as Gn, createPropsRestProxy as Fn, withDirectives as Qt, vShow as en, withKeys as vu, useId as Sa, onBeforeMount as Hi, Teleport as Or, watchEffect as od, shallowReactive as Qm } from "vue";
|
|
2
2
|
import { NetworkIcon as eg, CachedIcon as tg, ArrowSplitIcon as ad, GatewayIcon as ng, CodeblockIcon as pl, DataObjectIcon as ig, CodeIcon as og, StackIcon as ag, DeployIcon as rd, EditSquareIcon as rg, KeyIcon as fl, CloudIcon as ja, WarningIcon as sg, MoreIcon as Io, UnfoldMoreIcon as _u, UnfoldLessIcon as bu, AddIcon as mn, RemoveIcon as Pr, FullscreenIcon as lg, AutoLayoutIcon as ug, CloseIcon as Nr, TrashIcon as sd, ChevronRightIcon as ld, InfoIcon as cg, TeamIcon as dg, AccountTreeIcon as pg, BookIcon as Ps, SparklesIcon as fg, ChevronDownIcon as wu, ArrowLeftIcon as mg, ChevronDoubleLeftIcon as gg, ChevronDoubleRightIcon as hg, UndoIcon as yg, RedoIcon as vg, ExternalLinkIcon as _g, DatabaseIcon as bg, ExpandIcon as wg, DesignIcon as kg, ClearIcon as Da, CheckCircleIcon as Cg, PlugIcon as Eg, TransformationIcon as xg, TrafficIcon as Sg, RuntimeServerlessIcon as Ag, SecurityIcon as Ig, MoneyIcon as Tg, ServiceDocumentIcon as $g, LockIcon as Og, AnalyticsIcon as Pg, BotIcon as Ng, PopularIcon as Rg, GridIcon as Mg, ListIcon as Lg } from "@kong/icons";
|
|
3
3
|
import { KTooltip as Hn, KDropdown as ud, KButton as zn, KDropdownItem as nr, KTextArea as Fg, KInput as Kg, KCheckbox as jg, KCard as cr, KMultiselect as Dg, KSelect as qg, KLabel as gn, KCollapse as cd, KInputSwitch as Bg, KSegmentedControl as dd, KRadio as oi, KSkeletonBox as Ug, KEmptyState as Vg, KAlert as pd, KPrompt as zg, KModal as Gg, KSlideout as Hg, KExternalLink as ku } from "@kong/kongponents";
|
|
4
4
|
import { Background as Wg } from "@vue-flow/background";
|
|
@@ -11,9 +11,9 @@ import "@vue-flow/core/dist/style.css";
|
|
|
11
11
|
import "@vue-flow/core/dist/theme-default.css";
|
|
12
12
|
import { ConfigurationSchemaType as sn, useAxios as xn, useStringHelpers as gl, useErrors as $i, EntityFormBlock as Un, PLUGIN_FORM_LAYOUT_STATE as hl, SupportedEntityType as ni, EntityBaseForm as hd, useHelpers as Aa, EntityBaseFormType as Oi, useBaseFormDeckOptions as nh, DeckCodeBlock as ih, TerraformCodeBlock as oh, YamlCodeBlock as ah, JsonCodeBlock as rh, useTableState as sh, useGatewayFeatureSupported as lh, useFetcher as uh, useDeleteUrlBuilder as ch, FetcherStatus as dh, EntityBaseTable as ph, PermissionsWrapper as Pi, TableTags as fh, EntityFilter as mh, EntityToggleModal as gh, EntityDeleteModal as yd, EntityTypes as vd, ConfigCardItem as hh, ConfigurationSchemaSection as to, useSchemaProvider as yh, EntityBaseConfigCard as vh, InternalLinkItem as Ho } from "@kong-ui-public/entities-shared";
|
|
13
13
|
import { PluginIcon as qi } from "@kong-ui-public/entities-plugins-icon";
|
|
14
|
-
import { PluginIcon as
|
|
14
|
+
import { PluginIcon as uj, getPluginIconURL as cj } from "@kong-ui-public/entities-plugins-icon";
|
|
15
15
|
import { PluginGroup as nt, PLUGIN_GROUP_AND_SCOPE_MAP as Re, PluginScope as Ft, GATEWAY_VERSION_TIMESTAMP_MAP as _h } from "@kong-ui-public/entities-plugins-metadata";
|
|
16
|
-
import { PluginGroup as
|
|
16
|
+
import { PluginGroup as pj, PluginScope as fj } from "@kong-ui-public/entities-plugins-metadata";
|
|
17
17
|
import { FORMS_CONFIG as Jn, composables as bh, AUTOFILL_SLOT as Xn, FORMS_API_KEY as _d, FieldScopedEntitySelect as wh, AUTOFILL_SLOT_NAME as Nn, getSharedFormName as bd, customFields as Ns, sharedForms as kh, VueFormGenerator as Ch } from "@kong-ui-public/forms";
|
|
18
18
|
import { marked as or } from "marked";
|
|
19
19
|
import Eh from "dompurify";
|
|
@@ -1474,7 +1474,7 @@ const Gh = Xg(() => {
|
|
|
1474
1474
|
const i = zh(n);
|
|
1475
1475
|
if (i)
|
|
1476
1476
|
for (const o of e) {
|
|
1477
|
-
if (!
|
|
1477
|
+
if (!wt(o.enabled)) continue;
|
|
1478
1478
|
const r = o[i];
|
|
1479
1479
|
if (r) {
|
|
1480
1480
|
if (n.defaultPrevented) {
|
|
@@ -6477,7 +6477,7 @@ function G1(e) {
|
|
|
6477
6477
|
}
|
|
6478
6478
|
const H = W.length > 0 ? jp(W) : { x: 0, y: 0, width: 0, height: 0 }, U = H.width, $ = H.height, D = H.x, re = H.x + H.width, ae = Math.max(
|
|
6479
6479
|
0,
|
|
6480
|
-
Math.min(
|
|
6480
|
+
Math.min(wt(x == null ? void 0 : x.width) ?? Number.POSITIVE_INFINITY, yy) - U - 2 * w - (((_e = F == null ? void 0 : F.dimensions) == null ? void 0 : _e.width) ?? 0) - (((pe = X == null ? void 0 : X.dimensions) == null ? void 0 : pe.width) ?? 0) - 2 * E
|
|
6481
6481
|
), we = H.y + $ / 2;
|
|
6482
6482
|
j && f(j.id, {
|
|
6483
6483
|
x: D - w - ae / 2 - (((he = F == null ? void 0 : F.dimensions) == null ? void 0 : he.width) ?? 0),
|
|
@@ -7025,7 +7025,7 @@ const [Z1, Q1] = ml(
|
|
|
7025
7025
|
}, { immediate: !0 });
|
|
7026
7026
|
const g = L(() => ({
|
|
7027
7027
|
// Padding in VueFlow is a ratio
|
|
7028
|
-
padding: a / Math.max(
|
|
7028
|
+
padding: a / Math.max(wt(r == null ? void 0 : r.width) ?? 0, wt(r == null ? void 0 : r.height) ?? 0)
|
|
7029
7029
|
// maxZoom and minZoom come from the VueFlow store
|
|
7030
7030
|
}));
|
|
7031
7031
|
async function te({ source: B, sourceHandle: ne, target: V, targetHandle: Ee }) {
|
|
@@ -7039,11 +7039,11 @@ const [Z1, Q1] = ml(
|
|
|
7039
7039
|
$e.length > 0 && (Ve = !0, $e.forEach((Ot) => {
|
|
7040
7040
|
Fe.push(aa(Ot, X)), W(Ot.id, !1);
|
|
7041
7041
|
}));
|
|
7042
|
-
const
|
|
7043
|
-
if (
|
|
7044
|
-
if (
|
|
7042
|
+
const bt = (Ne == null ? void 0 : Ne.io) === "input" ? Ne != null && Ne.field ? qe.filter((Ot) => Ot.targetField === Ne.field) : qe.filter((Ot) => !!Ot.targetField) : qe.filter((Ot) => !Ot.targetField);
|
|
7043
|
+
if (bt.length > 0) {
|
|
7044
|
+
if (bt.some((Xt) => Xt.source === B && Xt.target === V && Xt.targetField === (Ne == null ? void 0 : Ne.field) && Xt.sourceField === (Se == null ? void 0 : Se.field)))
|
|
7045
7045
|
return;
|
|
7046
|
-
tt = !0,
|
|
7046
|
+
tt = !0, bt.forEach((Xt) => {
|
|
7047
7047
|
Fe.push(aa(Xt, X)), W(Xt.id, !1);
|
|
7048
7048
|
});
|
|
7049
7049
|
}
|
|
@@ -7106,8 +7106,8 @@ const [Z1, Q1] = ml(
|
|
|
7106
7106
|
_e(Je), Y(void 0);
|
|
7107
7107
|
const Fe = D.value.get(Je);
|
|
7108
7108
|
if (!Fe) return;
|
|
7109
|
-
const $e = Fe.position ?? { ...B.position },
|
|
7110
|
-
ft(Je, B.position,
|
|
7109
|
+
const $e = Fe.position ?? { ...B.position }, bt = B.position.x - $e.x, qn = B.position.y - $e.y;
|
|
7110
|
+
ft(Je, B.position, bt, qn);
|
|
7111
7111
|
const Ot = Ue.value.get(Fe.ownerId);
|
|
7112
7112
|
Ot && rt(Ot.id, !1);
|
|
7113
7113
|
return;
|
|
@@ -7194,12 +7194,12 @@ const [Z1, Q1] = ml(
|
|
|
7194
7194
|
function K(B) {
|
|
7195
7195
|
const ne = q.value.filter(({ type: $e }) => $e !== "group"), V = ne.find(({ id: $e }) => $e === B);
|
|
7196
7196
|
if (!V) throw new Error(`Node ${B} not found`);
|
|
7197
|
-
const { x: Ee, y: Se } = V.data.position, { width: Ne, height: qe } = V.dimensions, Ve = Se, tt = Se + qe, Je = ne.filter(({ id: $e }) => $e !== B).filter(({ data: { position: { y: $e } }, dimensions: { height:
|
|
7197
|
+
const { x: Ee, y: Se } = V.data.position, { width: Ne, height: qe } = V.dimensions, Ve = Se, tt = Se + qe, Je = ne.filter(({ id: $e }) => $e !== B).filter(({ data: { position: { y: $e } }, dimensions: { height: bt } }) => $e < tt && $e + bt > Ve).map(({ data: { position: { x: $e } }, dimensions: { width: bt } }) => ({ left: $e, right: $e + bt })).sort(($e, bt) => $e.left - bt.left);
|
|
7198
7198
|
let Fe = Ee + Ne + s;
|
|
7199
|
-
for (const { left: $e, right:
|
|
7200
|
-
if (!(
|
|
7199
|
+
for (const { left: $e, right: bt } of Je)
|
|
7200
|
+
if (!(bt <= Fe)) {
|
|
7201
7201
|
if (Fe + Ne <= $e) return { x: Fe, y: Ve };
|
|
7202
|
-
Fe = Math.max(Fe,
|
|
7202
|
+
Fe = Math.max(Fe, bt) + s;
|
|
7203
7203
|
}
|
|
7204
7204
|
return { x: Fe, y: Ve };
|
|
7205
7205
|
}
|
|
@@ -7210,10 +7210,10 @@ const [Z1, Q1] = ml(
|
|
|
7210
7210
|
const {
|
|
7211
7211
|
position: { x: V },
|
|
7212
7212
|
dimensions: { width: Ee }
|
|
7213
|
-
} = ne, Se = V + Ee, { viewport: Ne, dimensions: qe, setViewport: Ve } = d, { x: tt, y: Je, zoom: Fe } = Ne.value, { width: $e } = qe.value,
|
|
7213
|
+
} = ne, Se = V + Ee, { viewport: Ne, dimensions: qe, setViewport: Ve } = d, { x: tt, y: Je, zoom: Fe } = Ne.value, { width: $e } = qe.value, bt = V * Fe + tt, qn = Se * Fe + tt, Ot = $e - $d - s;
|
|
7214
7214
|
if (qn <= Ot) return;
|
|
7215
7215
|
let Xt = Ot - qn;
|
|
7216
|
-
|
|
7216
|
+
bt + Xt < 0 && (Xt = -bt), Xt !== 0 && Ve(
|
|
7217
7217
|
{ x: tt + Xt, y: Je, zoom: Fe },
|
|
7218
7218
|
{ duration: by }
|
|
7219
7219
|
);
|
|
@@ -7458,7 +7458,7 @@ const aC = {
|
|
|
7458
7458
|
"has-colors": !!t.value.colors
|
|
7459
7459
|
}]),
|
|
7460
7460
|
size: e.size
|
|
7461
|
-
},
|
|
7461
|
+
}, _t({
|
|
7462
7462
|
default: N(() => [
|
|
7463
7463
|
Le(" " + ue(e.type), 1)
|
|
7464
7464
|
]),
|
|
@@ -8002,7 +8002,7 @@ const aC = {
|
|
|
8002
8002
|
data: _e,
|
|
8003
8003
|
error: u(E).has(_e.id),
|
|
8004
8004
|
readonly: e.mode !== "edit"
|
|
8005
|
-
},
|
|
8005
|
+
}, _t({ _: 2 }, [
|
|
8006
8006
|
i["node-before-handles"] ? {
|
|
8007
8007
|
name: "before-handles",
|
|
8008
8008
|
fn: N(() => [
|
|
@@ -10580,14 +10580,14 @@ function Ul(e) {
|
|
|
10580
10580
|
return e.map((t) => ({ value: t, label: `${t}` }));
|
|
10581
10581
|
}
|
|
10582
10582
|
const Vl = "*", zl = "#", Si = "$", Pa = ".";
|
|
10583
|
-
function
|
|
10583
|
+
function kt(...e) {
|
|
10584
10584
|
return e.join(Pa);
|
|
10585
10585
|
}
|
|
10586
10586
|
function Qs(...e) {
|
|
10587
|
-
return
|
|
10587
|
+
return kt(Si, ...e);
|
|
10588
10588
|
}
|
|
10589
10589
|
function xc(e) {
|
|
10590
|
-
return e.startsWith(
|
|
10590
|
+
return e.startsWith(kt(Si, ""));
|
|
10591
10591
|
}
|
|
10592
10592
|
function fn(e) {
|
|
10593
10593
|
return e.split(Pa).filter((t) => t !== "");
|
|
@@ -10597,7 +10597,7 @@ function eo(e) {
|
|
|
10597
10597
|
return t[t.length - 1];
|
|
10598
10598
|
}
|
|
10599
10599
|
function DE(e) {
|
|
10600
|
-
return e.startsWith(Si) && (e =
|
|
10600
|
+
return e.startsWith(Si) && (e = kt(...fn(e).slice(1))), e;
|
|
10601
10601
|
}
|
|
10602
10602
|
function qE(e, t) {
|
|
10603
10603
|
const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
|
|
@@ -10615,7 +10615,7 @@ function qE(e, t) {
|
|
|
10615
10615
|
});
|
|
10616
10616
|
}
|
|
10617
10617
|
function BE(e) {
|
|
10618
|
-
const t =
|
|
10618
|
+
const t = wt(e);
|
|
10619
10619
|
return t ? t.type === "set" && t.elements.type === "string" && !t.elements.one_of : !1;
|
|
10620
10620
|
}
|
|
10621
10621
|
function Qp(e, t) {
|
|
@@ -10684,12 +10684,12 @@ function VE(e) {
|
|
|
10684
10684
|
let n = { parent: null };
|
|
10685
10685
|
for (t.pop(); t.length; ) {
|
|
10686
10686
|
const o = t.shift();
|
|
10687
|
-
n.path = (i = n.parent) != null && i.path ?
|
|
10687
|
+
n.path = (i = n.parent) != null && i.path ? kt(n.parent.path, o) : o, n = { parent: n };
|
|
10688
10688
|
}
|
|
10689
10689
|
return n;
|
|
10690
10690
|
}
|
|
10691
10691
|
function tf(e) {
|
|
10692
|
-
return L(() => VE(
|
|
10692
|
+
return L(() => VE(wt(e)));
|
|
10693
10693
|
}
|
|
10694
10694
|
const Sc = Symbol("free-form-field-path"), el = Symbol("free-form-field-renderer-slots"), Ac = Symbol("free-form-field-reset-label-path-setting"), Po = "free-form-field-renderers-slot", zE = {
|
|
10695
10695
|
tooltipAttributes: {
|
|
@@ -10705,7 +10705,7 @@ function Vr(e, t = "") {
|
|
|
10705
10705
|
const n = {};
|
|
10706
10706
|
if (Array.isArray(e.fields))
|
|
10707
10707
|
for (const i of e.fields) {
|
|
10708
|
-
const o = Object.keys(i)[0], r = i[o], a = t ?
|
|
10708
|
+
const o = Object.keys(i)[0], r = i[o], a = t ? kt(t, o) : o;
|
|
10709
10709
|
if (n[a] = r, r.type === "record" && Array.isArray(r.fields)) {
|
|
10710
10710
|
const l = Vr(r, a);
|
|
10711
10711
|
Object.assign(n, l);
|
|
@@ -10722,7 +10722,7 @@ function Vr(e, t = "") {
|
|
|
10722
10722
|
function zr(e, t = "") {
|
|
10723
10723
|
const n = {};
|
|
10724
10724
|
if (e.elements) {
|
|
10725
|
-
const i = e.elements, o =
|
|
10725
|
+
const i = e.elements, o = kt(t, Vl);
|
|
10726
10726
|
if (n[o] = i, i.type === "record" && Array.isArray(i.fields)) {
|
|
10727
10727
|
const r = Vr(i, o);
|
|
10728
10728
|
Object.assign(n, r);
|
|
@@ -10737,7 +10737,7 @@ function zr(e, t = "") {
|
|
|
10737
10737
|
return n;
|
|
10738
10738
|
}
|
|
10739
10739
|
function Gr(e, t = "") {
|
|
10740
|
-
const n = {}, i =
|
|
10740
|
+
const n = {}, i = kt(t, zl);
|
|
10741
10741
|
if (n[i] = e.values, e.values.type === "record" && Array.isArray(e.values.fields)) {
|
|
10742
10742
|
const o = Vr(e.values, i);
|
|
10743
10743
|
Object.assign(n, o);
|
|
@@ -10753,13 +10753,13 @@ function Gr(e, t = "") {
|
|
|
10753
10753
|
function ra(e, t) {
|
|
10754
10754
|
const n = fn(e), i = [];
|
|
10755
10755
|
for (let o = 0; o < n.length; o++) {
|
|
10756
|
-
const r = n[o], a = i.length > 0 ?
|
|
10756
|
+
const r = n[o], a = i.length > 0 ? kt(...i) : "", l = a ? t[a] : void 0;
|
|
10757
10757
|
(l == null ? void 0 : l.type) === "map" ? i.push(zl) : (l == null ? void 0 : l.type) === "array" ? i.push(Vl) : i.push(r);
|
|
10758
10758
|
}
|
|
10759
|
-
return
|
|
10759
|
+
return kt(...i);
|
|
10760
10760
|
}
|
|
10761
10761
|
function HE(e) {
|
|
10762
|
-
const t =
|
|
10762
|
+
const t = wt(e), n = L(() => t ? GE(t) : {});
|
|
10763
10763
|
function i(p) {
|
|
10764
10764
|
var m;
|
|
10765
10765
|
if (p) {
|
|
@@ -10832,7 +10832,7 @@ function HE(e) {
|
|
|
10832
10832
|
};
|
|
10833
10833
|
}
|
|
10834
10834
|
const tl = Symbol("ff-render-rule-exact-match");
|
|
10835
|
-
function
|
|
10835
|
+
function KK(e) {
|
|
10836
10836
|
return { [tl]: e };
|
|
10837
10837
|
}
|
|
10838
10838
|
function WE(e, t) {
|
|
@@ -10912,8 +10912,8 @@ ${O}`
|
|
|
10912
10912
|
}
|
|
10913
10913
|
}
|
|
10914
10914
|
function l(y, _) {
|
|
10915
|
-
const v = y.map((x) => _ ?
|
|
10916
|
-
return b.pop(),
|
|
10915
|
+
const v = y.map((x) => _ ? kt(_, x) : x), b = fn(v[0]);
|
|
10916
|
+
return b.pop(), kt(...b);
|
|
10917
10917
|
}
|
|
10918
10918
|
function s(y, _) {
|
|
10919
10919
|
if (!_) return y;
|
|
@@ -10922,7 +10922,7 @@ ${O}`
|
|
|
10922
10922
|
}
|
|
10923
10923
|
function d(y) {
|
|
10924
10924
|
const _ = fn(y);
|
|
10925
|
-
return _.pop(),
|
|
10925
|
+
return _.pop(), kt(..._);
|
|
10926
10926
|
}
|
|
10927
10927
|
const f = L(() => {
|
|
10928
10928
|
const y = {};
|
|
@@ -10934,7 +10934,7 @@ ${O}`
|
|
|
10934
10934
|
throw new Error(
|
|
10935
10935
|
`Bundle must contain at least 2 fields. Found ${x.length} field(s) in bundle: [${x.join(", ")}]`
|
|
10936
10936
|
);
|
|
10937
|
-
const E = x.map((T) => b ?
|
|
10937
|
+
const E = x.map((T) => b ? kt(b, T) : T);
|
|
10938
10938
|
o(E, `Bundle [${x.join(", ")}]`);
|
|
10939
10939
|
const k = l(x, b) || Si;
|
|
10940
10940
|
y[k] || (y[k] = {}), y[k].bundles || (y[k].bundles = []);
|
|
@@ -10943,7 +10943,7 @@ ${O}`
|
|
|
10943
10943
|
}
|
|
10944
10944
|
if (v.dependencies)
|
|
10945
10945
|
for (const [x, [E, k]] of Object.entries(v.dependencies)) {
|
|
10946
|
-
const w = b ?
|
|
10946
|
+
const w = b ? kt(b, x) : x, T = b ? kt(b, E) : E;
|
|
10947
10947
|
o(
|
|
10948
10948
|
[w, T],
|
|
10949
10949
|
`Dependency '${x}' -> '${E}'`
|
|
@@ -10966,7 +10966,7 @@ ${O}`
|
|
|
10966
10966
|
let _ = !1;
|
|
10967
10967
|
return L(() => {
|
|
10968
10968
|
if (_) return;
|
|
10969
|
-
const v =
|
|
10969
|
+
const v = wt(y);
|
|
10970
10970
|
try {
|
|
10971
10971
|
return c(v);
|
|
10972
10972
|
} catch (b) {
|
|
@@ -10983,26 +10983,26 @@ ${O}`
|
|
|
10983
10983
|
omittedFields: x
|
|
10984
10984
|
} = y;
|
|
10985
10985
|
Xe([
|
|
10986
|
-
() =>
|
|
10987
|
-
() =>
|
|
10986
|
+
() => wt(v),
|
|
10987
|
+
() => wt(_)
|
|
10988
10988
|
], ([k, w], [, T]) => {
|
|
10989
10989
|
k ? n.value[w] = k : delete n.value[w], T && T !== w && delete n.value[T];
|
|
10990
10990
|
}, { immediate: !0, deep: !0 });
|
|
10991
10991
|
const E = p(_);
|
|
10992
10992
|
return Xe(
|
|
10993
10993
|
[
|
|
10994
|
-
() =>
|
|
10994
|
+
() => wt(b),
|
|
10995
10995
|
() => {
|
|
10996
10996
|
var k;
|
|
10997
|
-
return (k =
|
|
10997
|
+
return (k = wt(E)) == null ? void 0 : k.dependencies;
|
|
10998
10998
|
},
|
|
10999
|
-
() =>
|
|
11000
|
-
() =>
|
|
10999
|
+
() => wt(_),
|
|
11000
|
+
() => wt(x)
|
|
11001
11001
|
],
|
|
11002
11002
|
([k, w, T, O]) => {
|
|
11003
11003
|
!w || !k || Object.entries(w).forEach(([q, [A, I]]) => {
|
|
11004
11004
|
if (O != null && O.includes(q)) return;
|
|
11005
|
-
const P = Ta(k, A), R = T ? DE(
|
|
11005
|
+
const P = Ta(k, A), R = T ? DE(kt(T, q)) : q;
|
|
11006
11006
|
if (typeof I == "object" && I !== null && tl in I ? tn(P, I[tl]) : Array.isArray(I) ? I.some((G) => tn(P, G)) : tn(P, I)) {
|
|
11007
11007
|
i.value.delete(R), e();
|
|
11008
11008
|
return;
|
|
@@ -11012,7 +11012,7 @@ ${O}`
|
|
|
11012
11012
|
},
|
|
11013
11013
|
{ deep: !0, immediate: !0 }
|
|
11014
11014
|
), xa(() => {
|
|
11015
|
-
const k =
|
|
11015
|
+
const k = wt(_);
|
|
11016
11016
|
delete n.value[k];
|
|
11017
11017
|
}), E;
|
|
11018
11018
|
}
|
|
@@ -11070,20 +11070,20 @@ function ZE(e, t, n) {
|
|
|
11070
11070
|
return o;
|
|
11071
11071
|
if (Array.isArray(o))
|
|
11072
11072
|
return o.map((s, d) => {
|
|
11073
|
-
const f = r ?
|
|
11073
|
+
const f = r ? kt(r, `${d}`) : `${d}`;
|
|
11074
11074
|
return i(s, f);
|
|
11075
11075
|
});
|
|
11076
11076
|
const a = r ? t(r) : t();
|
|
11077
11077
|
if ((a == null ? void 0 : a.type) === "map") {
|
|
11078
11078
|
const s = o, d = {};
|
|
11079
11079
|
return Object.keys(s).forEach((f) => {
|
|
11080
|
-
const c = n(f), p = s[f], m = r ?
|
|
11080
|
+
const c = n(f), p = s[f], m = r ? kt(r, f) : f;
|
|
11081
11081
|
d[c] = i(p, m);
|
|
11082
11082
|
}), d;
|
|
11083
11083
|
}
|
|
11084
11084
|
const l = {};
|
|
11085
11085
|
return Object.keys(o).forEach((s) => {
|
|
11086
|
-
const d = r ?
|
|
11086
|
+
const d = r ? kt(r, s) : s;
|
|
11087
11087
|
l[s] = i(o[s], d);
|
|
11088
11088
|
}), l;
|
|
11089
11089
|
};
|
|
@@ -11095,7 +11095,7 @@ function QE(e, t, n) {
|
|
|
11095
11095
|
return o;
|
|
11096
11096
|
if (Array.isArray(o))
|
|
11097
11097
|
return o.map((s, d) => {
|
|
11098
|
-
const f = r ?
|
|
11098
|
+
const f = r ? kt(r, `${d}`) : `${d}`;
|
|
11099
11099
|
return i(s, f);
|
|
11100
11100
|
});
|
|
11101
11101
|
const a = r ? t(r) : t();
|
|
@@ -11107,13 +11107,13 @@ function QE(e, t, n) {
|
|
|
11107
11107
|
console.error(`[FreeForm] Missing name for key ID: ${String(c)}`);
|
|
11108
11108
|
return;
|
|
11109
11109
|
}
|
|
11110
|
-
const h = m || zl, y = r ?
|
|
11110
|
+
const h = m || zl, y = r ? kt(r, h) : h;
|
|
11111
11111
|
d[m] = i(p, y);
|
|
11112
11112
|
}), d;
|
|
11113
11113
|
}
|
|
11114
11114
|
const l = {};
|
|
11115
11115
|
return Object.keys(o).forEach((s) => {
|
|
11116
|
-
const d = r ?
|
|
11116
|
+
const d = r ? kt(r, s) : s;
|
|
11117
11117
|
l[s] = i(o[s], d);
|
|
11118
11118
|
}), l;
|
|
11119
11119
|
};
|
|
@@ -11153,13 +11153,13 @@ const [tx, nx] = ml(
|
|
|
11153
11153
|
}
|
|
11154
11154
|
function k(P) {
|
|
11155
11155
|
let R;
|
|
11156
|
-
!P || !w(
|
|
11156
|
+
!P || !w(wt(P)) ? R = l() : R = ga(wt(P)), fr(m.value.prepareFormData) ? E(m.value.prepareFormData(R)) : E(R);
|
|
11157
11157
|
}
|
|
11158
11158
|
function w(P) {
|
|
11159
11159
|
return fr(m.value.hasValue) ? m.value.hasValue(P) : !!P;
|
|
11160
11160
|
}
|
|
11161
11161
|
function T() {
|
|
11162
|
-
const P =
|
|
11162
|
+
const P = wt(p), R = ga(P);
|
|
11163
11163
|
if (v.value.size > 0)
|
|
11164
11164
|
for (const j of v.value) {
|
|
11165
11165
|
const Q = fn(j), G = Q.slice(0, -1);
|
|
@@ -11172,7 +11172,7 @@ const [tx, nx] = ml(
|
|
|
11172
11172
|
}, { deep: !0 });
|
|
11173
11173
|
let O = !1;
|
|
11174
11174
|
Xe(() => i == null ? void 0 : i.value, (P) => {
|
|
11175
|
-
O && tn(T(),
|
|
11175
|
+
O && tn(T(), wt(P)) || (k(P), O = !0);
|
|
11176
11176
|
}, { deep: !0, immediate: !0 });
|
|
11177
11177
|
function q(P) {
|
|
11178
11178
|
return P != null && typeof P == "object" && !Array.isArray(P) ? f.serialize(P) : P;
|
|
@@ -11212,22 +11212,22 @@ function gt() {
|
|
|
11212
11212
|
}
|
|
11213
11213
|
const nf = (e) => {
|
|
11214
11214
|
const t = pt(Sc, L(() => "")), n = L(() => {
|
|
11215
|
-
const i =
|
|
11215
|
+
const i = wt(e);
|
|
11216
11216
|
let o = i;
|
|
11217
|
-
return !xc(i) && t.value && (o =
|
|
11217
|
+
return !xc(i) && t.value && (o = kt(t.value, i)), xc(i) && (o = o.slice(Qs("").length)), o;
|
|
11218
11218
|
});
|
|
11219
11219
|
return Kt(Sc, n), n;
|
|
11220
11220
|
}, ix = (e) => {
|
|
11221
11221
|
const { getSchema: t, getSchemaMap: n, fieldRendererRegistry: i } = gt(), { default: o, ...r } = nn(), a = pt(el), l = L(() => {
|
|
11222
|
-
const s =
|
|
11223
|
-
const m = ra(wt(
|
|
11222
|
+
const s = wt(a), d = n(), f = Object.keys(r).filter((c) => c !== Po && c !== "item").reduce((c, p) => {
|
|
11223
|
+
const m = ra(kt(wt(e), p), d);
|
|
11224
11224
|
return { ...c, [m]: r[p] };
|
|
11225
11225
|
}, {});
|
|
11226
11226
|
return s ? { ...s, ...f } : f;
|
|
11227
11227
|
});
|
|
11228
11228
|
return Kt(el, l), L(() => {
|
|
11229
11229
|
if (o) return;
|
|
11230
|
-
const s =
|
|
11230
|
+
const s = wt(e), d = l.value[ra(s, n())];
|
|
11231
11231
|
if (d) return d;
|
|
11232
11232
|
const f = n();
|
|
11233
11233
|
for (const [c, p] of i) {
|
|
@@ -11278,7 +11278,7 @@ function Gl(e, t) {
|
|
|
11278
11278
|
return i.set(l, s), n.set(a, s), s;
|
|
11279
11279
|
}
|
|
11280
11280
|
return Xe(t, (a) => {
|
|
11281
|
-
const l =
|
|
11281
|
+
const l = wt(a), s = /* @__PURE__ */ new Set();
|
|
11282
11282
|
l.forEach((d, f) => {
|
|
11283
11283
|
s.add(f);
|
|
11284
11284
|
}), Array.from(i.keys()).forEach((d) => {
|
|
@@ -11336,13 +11336,13 @@ function rx(e, t) {
|
|
|
11336
11336
|
const n = pt(Ac, {
|
|
11337
11337
|
parentPath: null,
|
|
11338
11338
|
isolate: !1
|
|
11339
|
-
}), { parentPath: i, isolate: o } =
|
|
11339
|
+
}), { parentPath: i, isolate: o } = wt(n), r = me(i ? kt(i, e) : e), a = me({
|
|
11340
11340
|
parentPath: r.value,
|
|
11341
11341
|
isolate: o
|
|
11342
11342
|
});
|
|
11343
11343
|
return Xe([Et(t), Et(n)], ([l, s]) => {
|
|
11344
11344
|
var p;
|
|
11345
|
-
const { parentPath: d, isolate: f } = s, c = d ?
|
|
11345
|
+
const { parentPath: d, isolate: f } = s, c = d ? kt(d, e) : e;
|
|
11346
11346
|
if (l) {
|
|
11347
11347
|
const m = {
|
|
11348
11348
|
isolate: () => {
|
|
@@ -11369,7 +11369,7 @@ function Hl(e) {
|
|
|
11369
11369
|
return fn(e).map((n) => n.split("_").map(af).join(" ")).map(tp).join(" › ");
|
|
11370
11370
|
}
|
|
11371
11371
|
function sx(e, t) {
|
|
11372
|
-
const n =
|
|
11372
|
+
const n = wt(e), i = eo(n), { config: o, getSchema: r } = gt(), a = rx(i, t), l = tf(e);
|
|
11373
11373
|
return L(() => {
|
|
11374
11374
|
var m;
|
|
11375
11375
|
const s = a.value ?? i, d = (m = l.value.parent) != null && m.path ? r(l.value.parent.path) : null, f = (d == null ? void 0 : d.type) === "array", c = (d == null ? void 0 : d.type) === "map";
|
|
@@ -11380,7 +11380,7 @@ function sx(e, t) {
|
|
|
11380
11380
|
});
|
|
11381
11381
|
}
|
|
11382
11382
|
function yn(e, t) {
|
|
11383
|
-
const { getLabelAttributes: n, getPlaceholder: i, getSchema: o } = gt(), r =
|
|
11383
|
+
const { getLabelAttributes: n, getPlaceholder: i, getSchema: o } = gt(), r = wt(e), a = wt(t), l = sx(e, Et(() => wt(t).resetLabelPath));
|
|
11384
11384
|
return L(() => {
|
|
11385
11385
|
var s;
|
|
11386
11386
|
return {
|
|
@@ -11406,7 +11406,7 @@ function Wl(e, t) {
|
|
|
11406
11406
|
}
|
|
11407
11407
|
function d() {
|
|
11408
11408
|
if (!n) return;
|
|
11409
|
-
const h = r.createKey(), y = o(
|
|
11409
|
+
const h = r.createKey(), y = o(kt(i.path.value, h));
|
|
11410
11410
|
return n.value = {
|
|
11411
11411
|
...n.value,
|
|
11412
11412
|
[h]: y
|
|
@@ -11504,7 +11504,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11504
11504
|
resizable: e.multiline ? !0 : void 0,
|
|
11505
11505
|
onChange: f,
|
|
11506
11506
|
"onUpdate:modelValue": d
|
|
11507
|
-
}),
|
|
11507
|
+
}), _t({ _: 2 }, [
|
|
11508
11508
|
et(nn(), (m, h) => ({
|
|
11509
11509
|
name: h,
|
|
11510
11510
|
fn: N((y) => [
|
|
@@ -11575,7 +11575,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11575
11575
|
multiline: e.multiline,
|
|
11576
11576
|
placeholder: e.placeholder ?? u(d).placeholder,
|
|
11577
11577
|
"onUpdate:modelValue": c
|
|
11578
|
-
}),
|
|
11578
|
+
}), _t({ _: 2 }, [
|
|
11579
11579
|
(E = u(d).labelAttributes) != null && E.info ? {
|
|
11580
11580
|
name: "label-tooltip",
|
|
11581
11581
|
fn: N(() => [
|
|
@@ -11659,7 +11659,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11659
11659
|
"data-testid": `ff-${a.path.value}`,
|
|
11660
11660
|
"model-value": !!(u(i) == null ? u(r) : u(i)),
|
|
11661
11661
|
"onUpdate:modelValue": s
|
|
11662
|
-
}),
|
|
11662
|
+
}), _t({ _: 2 }, [
|
|
11663
11663
|
(m = u(d).labelAttributes) != null && m.info ? {
|
|
11664
11664
|
name: "tooltip",
|
|
11665
11665
|
fn: N(() => [
|
|
@@ -11724,7 +11724,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11724
11724
|
"data-testid": `ff-${l.path.value}`,
|
|
11725
11725
|
"model-value": f.value ?? "",
|
|
11726
11726
|
"onUpdate:modelValue": m
|
|
11727
|
-
}),
|
|
11727
|
+
}), _t({ _: 2 }, [
|
|
11728
11728
|
(b = u(s).labelAttributes) != null && b.info ? {
|
|
11729
11729
|
name: "label-tooltip",
|
|
11730
11730
|
fn: N(() => [
|
|
@@ -11770,7 +11770,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11770
11770
|
if (!d.path) return "";
|
|
11771
11771
|
const I = eo(d.path.value);
|
|
11772
11772
|
return rf(I);
|
|
11773
|
-
}), m = L(() => n.items ??
|
|
11773
|
+
}), m = L(() => n.items ?? wt(l) ?? []), { getKey: h } = Gl("ff-array-field", m), y = L(() => n.appearance ? n.appearance : c.value.type === "record" || c.value.type === "map" ? "card" : "default"), _ = L(() => y.value === "card" ? cr : "div");
|
|
11774
11774
|
function v(I, P) {
|
|
11775
11775
|
return typeof n.itemLabel == "function" ? n.itemLabel(I, P) : n.itemLabel || f.value.label || `Item #${P}`;
|
|
11776
11776
|
}
|
|
@@ -11779,7 +11779,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11779
11779
|
title: ""
|
|
11780
11780
|
}))), x = me((A = b.value[0]) == null ? void 0 : A.hash), E = async () => {
|
|
11781
11781
|
var P;
|
|
11782
|
-
const I = r(
|
|
11782
|
+
const I = r(kt(d.path.value, Vl));
|
|
11783
11783
|
Array.isArray(l.value) || (l.value = []), l.value.push(I), i("add"), n.appearance === "tabs" && (await an(), x.value = (P = b.value[b.value.length - 1]) == null ? void 0 : P.hash), await an(), T(m.value.length + 1);
|
|
11784
11784
|
}, k = async (I) => {
|
|
11785
11785
|
var P;
|
|
@@ -11828,7 +11828,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11828
11828
|
C(j, We({ class: "ff-array-field-label" }, u(f), {
|
|
11829
11829
|
"data-testid": `ff-label-${d.path.value}`,
|
|
11830
11830
|
"tooltip-attributes": u(f).labelAttributes.tooltipAttributes
|
|
11831
|
-
}),
|
|
11831
|
+
}), _t({
|
|
11832
11832
|
default: N(() => [
|
|
11833
11833
|
Le(ue(u(f).label) + " ", 1)
|
|
11834
11834
|
]),
|
|
@@ -11937,7 +11937,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11937
11937
|
"onUpdate:modelValue": P[0] || (P[0] = (X) => x.value = X),
|
|
11938
11938
|
"data-testid": `ff-array-tabs-${d.path.value}`,
|
|
11939
11939
|
tabs: b.value
|
|
11940
|
-
},
|
|
11940
|
+
}, _t({ _: 2 }, [
|
|
11941
11941
|
et(m.value, (X, M) => ({
|
|
11942
11942
|
name: u(h)(X, M),
|
|
11943
11943
|
fn: N(() => [
|
|
@@ -11987,7 +11987,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
11987
11987
|
]);
|
|
11988
11988
|
};
|
|
11989
11989
|
}
|
|
11990
|
-
}),
|
|
11990
|
+
}), vt = /* @__PURE__ */ ze(Ex, [["__scopeId", "data-v-04b60981"]]), xx = {
|
|
11991
11991
|
key: 1,
|
|
11992
11992
|
class: "ff-number-field-wrapper"
|
|
11993
11993
|
}, Sx = ["innerHTML"], Ax = /* @__PURE__ */ Pe({
|
|
@@ -12062,7 +12062,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12062
12062
|
"model-value": c.value,
|
|
12063
12063
|
type: v.value,
|
|
12064
12064
|
"onUpdate:modelValue": p
|
|
12065
|
-
}),
|
|
12065
|
+
}), _t({ _: 2 }, [
|
|
12066
12066
|
(k = u(a).labelAttributes) != null && k.info ? {
|
|
12067
12067
|
name: "label-tooltip",
|
|
12068
12068
|
fn: N(() => [
|
|
@@ -12165,7 +12165,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12165
12165
|
"data-testid": `ff-${l.path.value}`,
|
|
12166
12166
|
items: c.value,
|
|
12167
12167
|
"kpop-attributes": { "data-testid": `ff-enum-${l.path.value}-items` }
|
|
12168
|
-
}),
|
|
12168
|
+
}), _t({ _: 2 }, [
|
|
12169
12169
|
"tooltip" in h.$slots || (v = u(s).labelAttributes) != null && v.info ? {
|
|
12170
12170
|
name: "label-tooltip",
|
|
12171
12171
|
fn: N(() => [
|
|
@@ -12241,7 +12241,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12241
12241
|
"model-value": d.value ?? "",
|
|
12242
12242
|
multiline: "",
|
|
12243
12243
|
"onUpdate:modelValue": f
|
|
12244
|
-
}),
|
|
12244
|
+
}), _t({ _: 2 }, [
|
|
12245
12245
|
(y = u(s).labelAttributes) != null && y.info ? {
|
|
12246
12246
|
name: "label-tooltip",
|
|
12247
12247
|
fn: N(() => [
|
|
@@ -12302,7 +12302,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12302
12302
|
"model-value": p.value,
|
|
12303
12303
|
placeholder: c.value,
|
|
12304
12304
|
"onUpdate:modelValue": m
|
|
12305
|
-
}),
|
|
12305
|
+
}), _t({ _: 2 }, [
|
|
12306
12306
|
(v = u(d).labelAttributes) != null && v.info ? {
|
|
12307
12307
|
name: "label-tooltip",
|
|
12308
12308
|
fn: N(() => [
|
|
@@ -12387,7 +12387,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12387
12387
|
"data-testid": `ff-label-${u(d).path.value}`,
|
|
12388
12388
|
required: u(c).required,
|
|
12389
12389
|
"tooltip-attributes": u(c).labelAttributes.tooltipAttributes
|
|
12390
|
-
}),
|
|
12390
|
+
}), _t({
|
|
12391
12391
|
default: N(() => [
|
|
12392
12392
|
Le(ue(u(c).label) + " ", 1)
|
|
12393
12393
|
]),
|
|
@@ -12502,7 +12502,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12502
12502
|
case "integer":
|
|
12503
12503
|
return "one_of" in n.schema.value ? Mt : Yt;
|
|
12504
12504
|
case "array":
|
|
12505
|
-
return
|
|
12505
|
+
return vt;
|
|
12506
12506
|
case "set":
|
|
12507
12507
|
return BE(n.schema) ? Na : Mt;
|
|
12508
12508
|
case "record":
|
|
@@ -12735,7 +12735,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12735
12735
|
required: !1
|
|
12736
12736
|
}, {
|
|
12737
12737
|
"tooltip-attributes": u(h).labelAttributes.tooltipAttributes
|
|
12738
|
-
}),
|
|
12738
|
+
}), _t({
|
|
12739
12739
|
default: N(() => [
|
|
12740
12740
|
Le(ue(u(h).label) + " ", 1)
|
|
12741
12741
|
]),
|
|
@@ -12849,7 +12849,7 @@ const Ro = /* @__PURE__ */ Pe({
|
|
|
12849
12849
|
c.entity_checks && c.entity_checks.forEach((v) => {
|
|
12850
12850
|
var x, E;
|
|
12851
12851
|
let b;
|
|
12852
|
-
"at_least_one_of" in v ? b = v.at_least_one_of : "conditional" in v && ((x = t(
|
|
12852
|
+
"at_least_one_of" in v ? b = v.at_least_one_of : "conditional" in v && ((x = t(kt("config", v.conditional.if_field))) != null && x.required) && v.conditional.then_match.required ? b = [v.conditional.if_field, v.conditional.then_field] : "conditional_at_least_one_of" in v && ((E = t(kt("config", v.conditional_at_least_one_of.if_field))) != null && E.required) && (b = [v.conditional_at_least_one_of.if_field, ...v.conditional_at_least_one_of.then_at_least_one_of]), b == null || b.forEach((k) => s.add(k.split(".")[0]));
|
|
12853
12853
|
});
|
|
12854
12854
|
const p = ((_ = i.value) == null ? void 0 : _.bundles) ?? [], m = /* @__PURE__ */ new Map();
|
|
12855
12855
|
for (const v of p)
|
|
@@ -14485,7 +14485,7 @@ var uS = Object.create, lf = Object.defineProperty, cS = Object.getOwnPropertyDe
|
|
|
14485
14485
|
seq: df(),
|
|
14486
14486
|
str: cf()
|
|
14487
14487
|
}, t.exports.safeLoad = o("safeLoad", "load"), t.exports.safeLoadAll = o("safeLoadAll", "loadAll"), t.exports.safeDump = o("safeDump", "dump");
|
|
14488
|
-
}))()), { Type:
|
|
14488
|
+
}))()), { Type: jK, Schema: DK, FAILSAFE_SCHEMA: qK, JSON_SCHEMA: Fi, CORE_SCHEMA: BK, DEFAULT_SCHEMA: UK, load: VK, loadAll: zK, dump: GK, YAMLException: HK, types: WK, safeLoad: YK, safeLoadAll: JK, safeDump: XK } = Sf.default, Pn = Sf.default;
|
|
14489
14489
|
const _S = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
14490
14490
|
function di() {
|
|
14491
14491
|
return { lenses: [], dispose: () => {
|
|
@@ -20022,7 +20022,7 @@ const JA = {
|
|
|
20022
20022
|
schema: e.schema,
|
|
20023
20023
|
tag: "div",
|
|
20024
20024
|
onChange: h
|
|
20025
|
-
}),
|
|
20025
|
+
}), _t({
|
|
20026
20026
|
[u(Po)]: N(() => [
|
|
20027
20027
|
(S(!0), le(Ge, null, et(d.value, (v, b) => (S(), Z(qt, {
|
|
20028
20028
|
key: `${e.pluginName}-${b}`,
|
|
@@ -20324,7 +20324,7 @@ const JA = {
|
|
|
20324
20324
|
description: e.generalInfoDescription ?? u(n)("plugins.form.sections.plugin_scope.description"),
|
|
20325
20325
|
step: 1,
|
|
20326
20326
|
title: e.generalInfoTitle ?? u(n)("plugins.form.sections.plugin_scope.title")
|
|
20327
|
-
},
|
|
20327
|
+
}, _t({
|
|
20328
20328
|
default: N(() => {
|
|
20329
20329
|
var $;
|
|
20330
20330
|
return [
|
|
@@ -20419,7 +20419,7 @@ const JA = {
|
|
|
20419
20419
|
description: e.pluginConfigDescription ?? u(n)("plugins.form.sections.plugin_config.description"),
|
|
20420
20420
|
step: 2,
|
|
20421
20421
|
title: e.pluginConfigTitle ?? u(n)("plugins.form.sections.plugin_config.title")
|
|
20422
|
-
},
|
|
20422
|
+
}, _t({
|
|
20423
20423
|
default: N(() => [
|
|
20424
20424
|
Qe(z.$slots, "default", {}, void 0, !0)
|
|
20425
20425
|
]),
|
|
@@ -20512,7 +20512,7 @@ const JA = {
|
|
|
20512
20512
|
], 64));
|
|
20513
20513
|
}
|
|
20514
20514
|
}), EI = /* @__PURE__ */ ze(CI, [["__scopeId", "data-v-e2f4cda4"]]), gm = Symbol.for("kong-ui-public.entities-plugins.free-form-plugin-layout");
|
|
20515
|
-
function
|
|
20515
|
+
function ZK(e) {
|
|
20516
20516
|
Kt(gm, e);
|
|
20517
20517
|
}
|
|
20518
20518
|
const ui = /* @__PURE__ */ Pe({
|
|
@@ -20545,7 +20545,7 @@ const ui = /* @__PURE__ */ Pe({
|
|
|
20545
20545
|
...n,
|
|
20546
20546
|
...t
|
|
20547
20547
|
}));
|
|
20548
|
-
return (a, l) => (S(), Z(Dt(u(o)), En(Gn(r.value)),
|
|
20548
|
+
return (a, l) => (S(), Z(Dt(u(o)), En(Gn(r.value)), _t({ _: 2 }, [
|
|
20549
20549
|
et(u(i), (s, d) => ({
|
|
20550
20550
|
name: d,
|
|
20551
20551
|
fn: N((f) => [
|
|
@@ -20690,7 +20690,7 @@ const xI = Ke({
|
|
|
20690
20690
|
fieldRenderers: [
|
|
20691
20691
|
{
|
|
20692
20692
|
match: "config.categories",
|
|
20693
|
-
component:
|
|
20693
|
+
component: vt,
|
|
20694
20694
|
propsOverrides: {
|
|
20695
20695
|
appearance: "tabs",
|
|
20696
20696
|
itemLabel: (e, t) => `#${t + 1} Category`
|
|
@@ -20766,7 +20766,7 @@ const xI = Ke({
|
|
|
20766
20766
|
match: ({ path: a }) => a === "config.default_acl"
|
|
20767
20767
|
}, {
|
|
20768
20768
|
default: N((a) => [
|
|
20769
|
-
C(
|
|
20769
|
+
C(vt, We(a, {
|
|
20770
20770
|
appearance: "tabs",
|
|
20771
20771
|
"item-label": (l, s) => u(i)("plugins.free-form.ai-mcp-proxy.default_acl_item_label", { index: s + 1 }),
|
|
20772
20772
|
"sticky-tabs": ""
|
|
@@ -20778,7 +20778,7 @@ const xI = Ke({
|
|
|
20778
20778
|
match: ({ path: a }) => a === "config.tools"
|
|
20779
20779
|
}, {
|
|
20780
20780
|
default: N((a) => [
|
|
20781
|
-
C(
|
|
20781
|
+
C(vt, We(a, {
|
|
20782
20782
|
appearance: "tabs",
|
|
20783
20783
|
"item-label": (l, s) => u(i)("plugins.free-form.ai-mcp-proxy.tool_item_label", { index: s + 1 }),
|
|
20784
20784
|
"sticky-tabs": ""
|
|
@@ -20820,7 +20820,7 @@ const xI = Ke({
|
|
|
20820
20820
|
fieldRenderers: [
|
|
20821
20821
|
{
|
|
20822
20822
|
match: "config.compression_ranges",
|
|
20823
|
-
component:
|
|
20823
|
+
component: vt,
|
|
20824
20824
|
propsOverrides: {
|
|
20825
20825
|
appearance: "tabs",
|
|
20826
20826
|
itemLabel: (e, t) => `#${t + 1} Range`
|
|
@@ -20836,7 +20836,7 @@ const xI = Ke({
|
|
|
20836
20836
|
fieldRenderers: [
|
|
20837
20837
|
{
|
|
20838
20838
|
match: "config.templates",
|
|
20839
|
-
component:
|
|
20839
|
+
component: vt,
|
|
20840
20840
|
propsOverrides: {
|
|
20841
20841
|
appearance: "tabs",
|
|
20842
20842
|
itemLabel: (e, t) => `#${t + 1} Template`
|
|
@@ -20856,7 +20856,7 @@ const xI = Ke({
|
|
|
20856
20856
|
fieldRenderers: [
|
|
20857
20857
|
{
|
|
20858
20858
|
match: "config.targets",
|
|
20859
|
-
component:
|
|
20859
|
+
component: vt,
|
|
20860
20860
|
propsOverrides: {
|
|
20861
20861
|
appearance: "tabs",
|
|
20862
20862
|
stickyTabs: !0,
|
|
@@ -20865,7 +20865,7 @@ const xI = Ke({
|
|
|
20865
20865
|
},
|
|
20866
20866
|
{
|
|
20867
20867
|
match: "config.acls.allow",
|
|
20868
|
-
component:
|
|
20868
|
+
component: vt,
|
|
20869
20869
|
propsOverrides: {
|
|
20870
20870
|
appearance: "tabs",
|
|
20871
20871
|
itemLabel: (e, t) => `#${t + 1} Allow`
|
|
@@ -20876,7 +20876,7 @@ const xI = Ke({
|
|
|
20876
20876
|
"config.acls.allow.*.match",
|
|
20877
20877
|
"config.acls.deny.*.match"
|
|
20878
20878
|
].includes(e),
|
|
20879
|
-
component:
|
|
20879
|
+
component: vt,
|
|
20880
20880
|
propsOverrides: {
|
|
20881
20881
|
appearance: "tabs",
|
|
20882
20882
|
itemLabel: (e, t) => `#${t + 1} Match`
|
|
@@ -20884,7 +20884,7 @@ const xI = Ke({
|
|
|
20884
20884
|
},
|
|
20885
20885
|
{
|
|
20886
20886
|
match: "config.acls.deny",
|
|
20887
|
-
component:
|
|
20887
|
+
component: vt,
|
|
20888
20888
|
propsOverrides: {
|
|
20889
20889
|
appearance: "tabs",
|
|
20890
20890
|
stickyTabs: !0,
|
|
@@ -20897,7 +20897,7 @@ const xI = Ke({
|
|
|
20897
20897
|
}), is = [
|
|
20898
20898
|
{
|
|
20899
20899
|
match: "config.vectordb.redis.sentinel_nodes",
|
|
20900
|
-
component:
|
|
20900
|
+
component: vt,
|
|
20901
20901
|
propsOverrides: {
|
|
20902
20902
|
appearance: "tabs",
|
|
20903
20903
|
itemLabel: (e, t) => ` #${t + 1} Sentinel node`
|
|
@@ -20905,7 +20905,7 @@ const xI = Ke({
|
|
|
20905
20905
|
},
|
|
20906
20906
|
{
|
|
20907
20907
|
match: "config.vectordb.redis.cluster_nodes",
|
|
20908
|
-
component:
|
|
20908
|
+
component: vt,
|
|
20909
20909
|
propsOverrides: {
|
|
20910
20910
|
appearance: "tabs",
|
|
20911
20911
|
itemLabel: (e, t) => ` #${t + 1} Cluster node`
|
|
@@ -20978,7 +20978,7 @@ const xI = Ke({
|
|
|
20978
20978
|
},
|
|
20979
20979
|
{
|
|
20980
20980
|
match: "config.custom_patterns",
|
|
20981
|
-
component:
|
|
20981
|
+
component: vt,
|
|
20982
20982
|
propsOverrides: {
|
|
20983
20983
|
appearance: "tabs",
|
|
20984
20984
|
itemLabel: (e, t) => `#${t + 1} Pattern`
|
|
@@ -21138,7 +21138,7 @@ const xI = Ke({
|
|
|
21138
21138
|
C(d, We({ class: "ff-array-field-label" }, u(r), {
|
|
21139
21139
|
"data-testid": `ff-label-${u(o)}`,
|
|
21140
21140
|
"tooltip-attributes": u(r).labelAttributes.tooltipAttributes
|
|
21141
|
-
}),
|
|
21141
|
+
}), _t({
|
|
21142
21142
|
default: N(() => [
|
|
21143
21143
|
Le(ue(u(r).label) + " ", 1)
|
|
21144
21144
|
]),
|
|
@@ -21495,7 +21495,7 @@ const xI = Ke({
|
|
|
21495
21495
|
},
|
|
21496
21496
|
{
|
|
21497
21497
|
match: "config.topics",
|
|
21498
|
-
component:
|
|
21498
|
+
component: vt,
|
|
21499
21499
|
propsOverrides: {
|
|
21500
21500
|
appearance: "tabs",
|
|
21501
21501
|
stickyTabs: !0,
|
|
@@ -21504,7 +21504,7 @@ const xI = Ke({
|
|
|
21504
21504
|
},
|
|
21505
21505
|
{
|
|
21506
21506
|
match: "config.bootstrap_servers",
|
|
21507
|
-
component:
|
|
21507
|
+
component: vt,
|
|
21508
21508
|
propsOverrides: {
|
|
21509
21509
|
appearance: "tabs",
|
|
21510
21510
|
itemLabel: (e, t) => `#${t + 1} Server`
|
|
@@ -21524,7 +21524,7 @@ const xI = Ke({
|
|
|
21524
21524
|
},
|
|
21525
21525
|
{
|
|
21526
21526
|
match: "config.bootstrap_servers",
|
|
21527
|
-
component:
|
|
21527
|
+
component: vt,
|
|
21528
21528
|
propsOverrides: {
|
|
21529
21529
|
appearance: "tabs",
|
|
21530
21530
|
itemLabel: (e, t) => `#${t + 1} Server`
|
|
@@ -21547,7 +21547,7 @@ const xI = Ke({
|
|
|
21547
21547
|
fieldRenderers: [
|
|
21548
21548
|
{
|
|
21549
21549
|
match: "config.metrics",
|
|
21550
|
-
component:
|
|
21550
|
+
component: vt,
|
|
21551
21551
|
propsOverrides: {
|
|
21552
21552
|
appearance: "tabs",
|
|
21553
21553
|
itemLabel: (e, t) => `#${t + 1} Metric`
|
|
@@ -22049,8 +22049,8 @@ function HT({
|
|
|
22049
22049
|
enabled: e,
|
|
22050
22050
|
confirm: t
|
|
22051
22051
|
}) {
|
|
22052
|
-
Ih(() =>
|
|
22053
|
-
|
|
22052
|
+
Ih(() => wt(e) ? t ? t() : window.confirm(GT("plugins.free-form.datakit.flow_editor.leave_confirm")) : !0), ca("beforeunload", (i) => {
|
|
22053
|
+
wt(e) && i.preventDefault();
|
|
22054
22054
|
});
|
|
22055
22055
|
}
|
|
22056
22056
|
const WT = { class: "label-content" }, YT = { class: "count" }, JT = { class: "label-content" }, XT = { class: "count" }, Uc = 0.5, xs = 0.03, ZT = 30, QT = /* @__PURE__ */ Pe({
|
|
@@ -22947,7 +22947,7 @@ const B$ = { key: 1 }, U$ = ["innerHTML"], V$ = { class: "horizontal-container"
|
|
|
22947
22947
|
appearance: "danger",
|
|
22948
22948
|
message: u(r).error.message
|
|
22949
22949
|
}, null, 8, ["message"])) : Qt((S(), le("div", B$, [
|
|
22950
|
-
C(p, En(Gn(u(a).labelAttributes)),
|
|
22950
|
+
C(p, En(Gn(u(a).labelAttributes)), _t({
|
|
22951
22951
|
default: N(() => [
|
|
22952
22952
|
Le(ue(u(a).label) + " ", 1)
|
|
22953
22953
|
]),
|
|
@@ -23942,7 +23942,7 @@ const jn = J.object({
|
|
|
23942
23942
|
name: a,
|
|
23943
23943
|
placeholder: u(n).t("plugins.free-form.datakit.flow_editor.node_properties.input.placeholder"),
|
|
23944
23944
|
onChange: (l) => o.$emit("change:inputs", a, l ? l.value : null)
|
|
23945
|
-
},
|
|
23945
|
+
}, _t({ _: 2 }, [
|
|
23946
23946
|
o.$slots["item-label"] ? {
|
|
23947
23947
|
name: "item-label",
|
|
23948
23948
|
fn: N((l) => [
|
|
@@ -24102,7 +24102,7 @@ const jn = J.object({
|
|
|
24102
24102
|
"model-value": (W = u(f)) == null ? void 0 : W[F],
|
|
24103
24103
|
placeholder: u(c)("plugins.free-form.datakit.flow_editor.node_properties.input.placeholder"),
|
|
24104
24104
|
onChange: (z) => A(F, (z == null ? void 0 : z.value) ?? null)
|
|
24105
|
-
},
|
|
24105
|
+
}, _t({ _: 2 }, [
|
|
24106
24106
|
I.$slots["item-label"] ? {
|
|
24107
24107
|
name: "item-template",
|
|
24108
24108
|
fn: N(({ item: z }) => [
|
|
@@ -26336,7 +26336,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
26336
26336
|
name: "allowed_algorithms",
|
|
26337
26337
|
onUpdate: v[0] || (v[0] = (b) => u(a)("allowed_algorithms"))
|
|
26338
26338
|
}),
|
|
26339
|
-
C(
|
|
26339
|
+
C(vt, {
|
|
26340
26340
|
name: "issuers",
|
|
26341
26341
|
onAdd: v[2] || (v[2] = (b) => u(a)("issuers")),
|
|
26342
26342
|
onRemove: v[3] || (v[3] = (b) => u(a)("issuers"))
|
|
@@ -26350,7 +26350,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
26350
26350
|
]),
|
|
26351
26351
|
_: 1
|
|
26352
26352
|
}),
|
|
26353
|
-
C(
|
|
26353
|
+
C(vt, {
|
|
26354
26354
|
name: "audiences",
|
|
26355
26355
|
onAdd: v[5] || (v[5] = (b) => u(a)("audiences")),
|
|
26356
26356
|
onRemove: v[6] || (v[6] = (b) => u(a)("audiences"))
|
|
@@ -26364,7 +26364,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
26364
26364
|
]),
|
|
26365
26365
|
_: 1
|
|
26366
26366
|
}),
|
|
26367
|
-
C(
|
|
26367
|
+
C(vt, {
|
|
26368
26368
|
name: "required_claims",
|
|
26369
26369
|
onAdd: v[8] || (v[8] = (b) => u(a)("required_claims")),
|
|
26370
26370
|
onRemove: v[9] || (v[9] = (b) => u(a)("required_claims"))
|
|
@@ -26474,7 +26474,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
26474
26474
|
visible: e.visible,
|
|
26475
26475
|
"z-index": u(dy),
|
|
26476
26476
|
onClose: f[0] || (f[0] = (c) => d.$emit("close"))
|
|
26477
|
-
},
|
|
26477
|
+
}, _t({
|
|
26478
26478
|
default: N(() => [
|
|
26479
26479
|
o.value ? (S(), le("div", {
|
|
26480
26480
|
key: 0,
|
|
@@ -26914,7 +26914,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
26914
26914
|
},
|
|
26915
26915
|
{
|
|
26916
26916
|
match: "config.custom_injections",
|
|
26917
|
-
component:
|
|
26917
|
+
component: vt,
|
|
26918
26918
|
propsOverrides: {
|
|
26919
26919
|
appearance: "tabs",
|
|
26920
26920
|
itemLabel: (e, t) => `#${t + 1} Injection`
|
|
@@ -27051,7 +27051,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
27051
27051
|
},
|
|
27052
27052
|
{
|
|
27053
27053
|
match: "config.topics",
|
|
27054
|
-
component:
|
|
27054
|
+
component: vt,
|
|
27055
27055
|
propsOverrides: {
|
|
27056
27056
|
appearance: "tabs",
|
|
27057
27057
|
stickyTabs: !0,
|
|
@@ -27060,7 +27060,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
27060
27060
|
},
|
|
27061
27061
|
{
|
|
27062
27062
|
match: "config.bootstrap_servers",
|
|
27063
|
-
component:
|
|
27063
|
+
component: vt,
|
|
27064
27064
|
propsOverrides: {
|
|
27065
27065
|
appearance: "tabs",
|
|
27066
27066
|
itemLabel: (e, t) => `#${t + 1} Server`
|
|
@@ -27079,7 +27079,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
27079
27079
|
},
|
|
27080
27080
|
{
|
|
27081
27081
|
match: "config.bootstrap_servers",
|
|
27082
|
-
component:
|
|
27082
|
+
component: vt,
|
|
27083
27083
|
propsOverrides: {
|
|
27084
27084
|
appearance: "tabs",
|
|
27085
27085
|
itemLabel: (e, t) => `#${t + 1} Server`
|
|
@@ -27099,7 +27099,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
27099
27099
|
},
|
|
27100
27100
|
{
|
|
27101
27101
|
match: "config.bootstrap_servers",
|
|
27102
|
-
component:
|
|
27102
|
+
component: vt,
|
|
27103
27103
|
propsOverrides: {
|
|
27104
27104
|
appearance: "tabs",
|
|
27105
27105
|
itemLabel: (e, t) => `#${t + 1} Server`
|
|
@@ -27411,7 +27411,7 @@ const ZP = /* @__PURE__ */ Pe({
|
|
|
27411
27411
|
}, {
|
|
27412
27412
|
default: N(() => [
|
|
27413
27413
|
ee("div", uR, [
|
|
27414
|
-
C(
|
|
27414
|
+
C(vt, {
|
|
27415
27415
|
"hide-label": "",
|
|
27416
27416
|
name: "config.attributes"
|
|
27417
27417
|
})
|
|
@@ -28014,7 +28014,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28014
28014
|
const i = t.config.callouts[t.config.callouts.length - 1];
|
|
28015
28015
|
i && (i[ua] = Lm());
|
|
28016
28016
|
}
|
|
28017
|
-
return (i, o) => (S(), Z(
|
|
28017
|
+
return (i, o) => (S(), Z(vt, {
|
|
28018
28018
|
appearance: "tabs",
|
|
28019
28019
|
"item-label": (r) => r.name || "New callout",
|
|
28020
28020
|
name: "callouts",
|
|
@@ -28167,7 +28167,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28167
28167
|
match: ({ path: f }) => ["cluster_nodes", "sentinel_nodes"].some((c) => f.endsWith(c))
|
|
28168
28168
|
}, {
|
|
28169
28169
|
default: N((f) => [
|
|
28170
|
-
C(
|
|
28170
|
+
C(vt, We(f, { appearance: "card" }), null, 16)
|
|
28171
28171
|
]),
|
|
28172
28172
|
_: 1
|
|
28173
28173
|
}, 8, ["match"])
|
|
@@ -28193,7 +28193,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28193
28193
|
fieldRenderers: [
|
|
28194
28194
|
{
|
|
28195
28195
|
match: "config.parameter_schema",
|
|
28196
|
-
component:
|
|
28196
|
+
component: vt,
|
|
28197
28197
|
propsOverrides: {
|
|
28198
28198
|
appearance: "tabs",
|
|
28199
28199
|
itemLabel: (e, t) => `#${t + 1} Parameter schema`
|
|
@@ -28255,7 +28255,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28255
28255
|
fieldRenderers: [
|
|
28256
28256
|
{
|
|
28257
28257
|
match: "config.rules",
|
|
28258
|
-
component:
|
|
28258
|
+
component: vt,
|
|
28259
28259
|
propsOverrides: {
|
|
28260
28260
|
appearance: "tabs",
|
|
28261
28261
|
itemLabel: (e, t) => `#${t + 1} Rule`
|
|
@@ -28644,7 +28644,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28644
28644
|
fieldRenderers: [
|
|
28645
28645
|
{
|
|
28646
28646
|
match: "config.metrics",
|
|
28647
|
-
component:
|
|
28647
|
+
component: vt,
|
|
28648
28648
|
propsOverrides: {
|
|
28649
28649
|
appearance: "tabs",
|
|
28650
28650
|
itemLabel: (e, t) => `#${t + 1} Metric`
|
|
@@ -28652,6 +28652,18 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28652
28652
|
}
|
|
28653
28653
|
]
|
|
28654
28654
|
}), M2 = Ke({
|
|
28655
|
+
experimental: !0,
|
|
28656
|
+
fieldRenderers: [
|
|
28657
|
+
{
|
|
28658
|
+
match: "config.metrics",
|
|
28659
|
+
component: vt,
|
|
28660
|
+
propsOverrides: {
|
|
28661
|
+
appearance: "tabs",
|
|
28662
|
+
itemLabel: (e, t) => `#${t + 1} Metric`
|
|
28663
|
+
}
|
|
28664
|
+
}
|
|
28665
|
+
]
|
|
28666
|
+
}), L2 = Ke({
|
|
28655
28667
|
experimental: !0,
|
|
28656
28668
|
fieldRenderers: [
|
|
28657
28669
|
{
|
|
@@ -28662,7 +28674,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28662
28674
|
}
|
|
28663
28675
|
}
|
|
28664
28676
|
]
|
|
28665
|
-
}),
|
|
28677
|
+
}), F2 = Ke({
|
|
28666
28678
|
experimental: !0,
|
|
28667
28679
|
fieldRenderers: [
|
|
28668
28680
|
{
|
|
@@ -28673,11 +28685,11 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28673
28685
|
}
|
|
28674
28686
|
}
|
|
28675
28687
|
]
|
|
28676
|
-
}), F2 = Ke({
|
|
28677
|
-
experimental: !0
|
|
28678
28688
|
}), K2 = Ke({
|
|
28679
28689
|
experimental: !0
|
|
28680
28690
|
}), j2 = Ke({
|
|
28691
|
+
experimental: !0
|
|
28692
|
+
}), D2 = Ke({
|
|
28681
28693
|
experimental: !0,
|
|
28682
28694
|
fieldRenderers: [
|
|
28683
28695
|
{
|
|
@@ -28688,7 +28700,7 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28688
28700
|
}
|
|
28689
28701
|
}
|
|
28690
28702
|
]
|
|
28691
|
-
}),
|
|
28703
|
+
}), q2 = Ke({
|
|
28692
28704
|
experimental: !0,
|
|
28693
28705
|
renderRules: {
|
|
28694
28706
|
bundles: [
|
|
@@ -28708,13 +28720,13 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28708
28720
|
}
|
|
28709
28721
|
}
|
|
28710
28722
|
]
|
|
28711
|
-
}), q2 = Ke({
|
|
28712
|
-
experimental: !0
|
|
28713
28723
|
}), B2 = Ke({
|
|
28714
28724
|
experimental: !0
|
|
28715
28725
|
}), U2 = Ke({
|
|
28716
28726
|
experimental: !0
|
|
28717
28727
|
}), V2 = Ke({
|
|
28728
|
+
experimental: !0
|
|
28729
|
+
}), z2 = Ke({
|
|
28718
28730
|
experimental: !0,
|
|
28719
28731
|
fieldRenderers: [
|
|
28720
28732
|
{
|
|
@@ -28726,21 +28738,21 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28726
28738
|
}
|
|
28727
28739
|
}
|
|
28728
28740
|
]
|
|
28729
|
-
}), z2 = Ke({
|
|
28730
|
-
experimental: !0
|
|
28731
28741
|
}), G2 = Ke({
|
|
28742
|
+
experimental: !0
|
|
28743
|
+
}), H2 = Ke({
|
|
28732
28744
|
experimental: !0,
|
|
28733
28745
|
fieldRenderers: [
|
|
28734
28746
|
{
|
|
28735
28747
|
match: "config.static_tags",
|
|
28736
|
-
component:
|
|
28748
|
+
component: vt,
|
|
28737
28749
|
propsOverrides: {
|
|
28738
28750
|
appearance: "tabs",
|
|
28739
28751
|
itemLabel: (e, t) => `#${t + 1} Tag`
|
|
28740
28752
|
}
|
|
28741
28753
|
}
|
|
28742
28754
|
]
|
|
28743
|
-
}),
|
|
28755
|
+
}), W2 = /* @__PURE__ */ Object.assign({
|
|
28744
28756
|
"../plugins/ace.ts": xI,
|
|
28745
28757
|
"../plugins/acl/index.ts": $I,
|
|
28746
28758
|
"../plugins/acme.ts": OI,
|
|
@@ -28839,31 +28851,32 @@ const ua = "_callout_id", WR = /* @__PURE__ */ Pe({
|
|
|
28839
28851
|
"../plugins/solace-log.ts": O2,
|
|
28840
28852
|
"../plugins/solace-upstream.ts": P2,
|
|
28841
28853
|
"../plugins/standard-webhooks.ts": N2,
|
|
28842
|
-
"../plugins/statsd.ts": R2,
|
|
28843
|
-
"../plugins/
|
|
28844
|
-
"../plugins/
|
|
28845
|
-
"../plugins/
|
|
28846
|
-
"../plugins/tls-
|
|
28847
|
-
"../plugins/
|
|
28848
|
-
"../plugins/
|
|
28849
|
-
"../plugins/upstream-
|
|
28850
|
-
"../plugins/
|
|
28851
|
-
"../plugins/
|
|
28852
|
-
"../plugins/websocket-
|
|
28853
|
-
"../plugins/
|
|
28854
|
-
"../plugins/
|
|
28854
|
+
"../plugins/statsd-advanced.ts": R2,
|
|
28855
|
+
"../plugins/statsd.ts": M2,
|
|
28856
|
+
"../plugins/syslog.ts": L2,
|
|
28857
|
+
"../plugins/tcp-log.ts": F2,
|
|
28858
|
+
"../plugins/tls-handshake-modifier.ts": K2,
|
|
28859
|
+
"../plugins/tls-metadata-headers.ts": j2,
|
|
28860
|
+
"../plugins/udp-log.ts": D2,
|
|
28861
|
+
"../plugins/upstream-oauth.ts": q2,
|
|
28862
|
+
"../plugins/upstream-timeout.ts": B2,
|
|
28863
|
+
"../plugins/vault-auth.ts": U2,
|
|
28864
|
+
"../plugins/websocket-size-limit.ts": V2,
|
|
28865
|
+
"../plugins/websocket-validator.ts": z2,
|
|
28866
|
+
"../plugins/xml-threat-protection.ts": G2,
|
|
28867
|
+
"../plugins/zipkin.ts": H2
|
|
28855
28868
|
});
|
|
28856
|
-
function
|
|
28869
|
+
function Y2(e) {
|
|
28857
28870
|
const t = e.match(/\.\.\/plugins\/(.+?)(?:\/index)?\.ts$/);
|
|
28858
28871
|
if (!t)
|
|
28859
28872
|
throw new Error(`Unable to derive plugin name from path: ${e}`);
|
|
28860
28873
|
const [, n] = t;
|
|
28861
28874
|
return n;
|
|
28862
28875
|
}
|
|
28863
|
-
function
|
|
28876
|
+
function J2(e) {
|
|
28864
28877
|
const t = {}, n = /* @__PURE__ */ new Map();
|
|
28865
28878
|
for (const [i, o] of Object.entries(e)) {
|
|
28866
|
-
const r =
|
|
28879
|
+
const r = Y2(i);
|
|
28867
28880
|
if (n.has(r))
|
|
28868
28881
|
throw new Error(`Duplicate plugin config for "${r}": ${n.get(r)} and ${i}`);
|
|
28869
28882
|
n.set(r, i), t[r] = {
|
|
@@ -28875,7 +28888,7 @@ function Y2(e) {
|
|
|
28875
28888
|
}
|
|
28876
28889
|
return t;
|
|
28877
28890
|
}
|
|
28878
|
-
const Fm =
|
|
28891
|
+
const Fm = J2(W2);
|
|
28879
28892
|
function Km(e) {
|
|
28880
28893
|
return Fm[e];
|
|
28881
28894
|
}
|
|
@@ -28887,22 +28900,22 @@ function jm(e, t) {
|
|
|
28887
28900
|
function Dm(e, t, n) {
|
|
28888
28901
|
return n === "freeform" ? !0 : n === "vfg" ? !1 : !!jm(e, t);
|
|
28889
28902
|
}
|
|
28890
|
-
function
|
|
28903
|
+
function X2() {
|
|
28891
28904
|
return Object.entries(Fm).filter(([, e]) => e.experimental).map(([e]) => e).sort((e, t) => e.localeCompare(t));
|
|
28892
28905
|
}
|
|
28893
28906
|
function hu() {
|
|
28894
28907
|
return pt(Pp, []);
|
|
28895
28908
|
}
|
|
28896
|
-
function
|
|
28897
|
-
const t = new Set(
|
|
28909
|
+
function Z2(e) {
|
|
28910
|
+
const t = new Set(X2()), n = e.filter((o) => t.has(o)), i = e.filter((o) => !t.has(o));
|
|
28898
28911
|
return i.length > 0 && console.warn(
|
|
28899
28912
|
`[entities-plugins] Ignoring unknown experimental free-form plugins: ${i.join(", ")}`
|
|
28900
28913
|
), n;
|
|
28901
28914
|
}
|
|
28902
|
-
function
|
|
28903
|
-
Kt(Pp,
|
|
28915
|
+
function Q2(e) {
|
|
28916
|
+
Kt(Pp, Z2(e));
|
|
28904
28917
|
}
|
|
28905
|
-
function
|
|
28918
|
+
function eM() {
|
|
28906
28919
|
const e = hu();
|
|
28907
28920
|
return {
|
|
28908
28921
|
shouldUseFreeForm: (t, n) => Dm(t, e, n),
|
|
@@ -28984,11 +28997,11 @@ const Bm = (e) => {
|
|
|
28984
28997
|
e.protected_resource_metadata = null;
|
|
28985
28998
|
return;
|
|
28986
28999
|
}
|
|
28987
|
-
},
|
|
29000
|
+
}, tM = {
|
|
28988
29001
|
shamefullyTransformPayload(e) {
|
|
28989
29002
|
return qm(e.payload.config), Bm(e.payload.config), Um(e.payload.config), e;
|
|
28990
29003
|
}
|
|
28991
|
-
},
|
|
29004
|
+
}, nM = {
|
|
28992
29005
|
shamefullyTransformPayload(e) {
|
|
28993
29006
|
var t, n, i, o, r;
|
|
28994
29007
|
if (!((n = (t = e.payload.config) == null ? void 0 : t.access_logs) != null && n.custom_attributes_by_lua))
|
|
@@ -28999,7 +29012,7 @@ const Bm = (e) => {
|
|
|
28999
29012
|
}
|
|
29000
29013
|
return e;
|
|
29001
29014
|
}
|
|
29002
|
-
},
|
|
29015
|
+
}, iM = {
|
|
29003
29016
|
shamefullyTransformPayload(e) {
|
|
29004
29017
|
var n, i;
|
|
29005
29018
|
const t = (i = (n = e.payload.config) == null ? void 0 : n.v2_strategies) == null ? void 0 : i.openid_connect;
|
|
@@ -29007,7 +29020,7 @@ const Bm = (e) => {
|
|
|
29007
29020
|
qm(o.config), Bm(o.config), Um(o.config);
|
|
29008
29021
|
}), e;
|
|
29009
29022
|
}
|
|
29010
|
-
},
|
|
29023
|
+
}, oM = {
|
|
29011
29024
|
shamefullyTransformPayload(e) {
|
|
29012
29025
|
var n;
|
|
29013
29026
|
return !e.payload.config || !((n = e.payload.config) != null && n.token_exchange) || [
|
|
@@ -29032,10 +29045,10 @@ const Bm = (e) => {
|
|
|
29032
29045
|
return tn((o = e.payload.config) == null ? void 0 : o.token_exchange, i);
|
|
29033
29046
|
}) && (e.payload.config.token_exchange = null), e;
|
|
29034
29047
|
}
|
|
29035
|
-
},
|
|
29048
|
+
}, aM = (e, t) => {
|
|
29036
29049
|
const n = e.model.startsWith("config-"), i = t.model.startsWith("config-");
|
|
29037
29050
|
return n && !i ? 1 : !n && i ? -1 : 0;
|
|
29038
|
-
}, Vm = (e, t) => (e.order ?? 0) - (t.order ?? 0), Jc = (e, t) =>
|
|
29051
|
+
}, Vm = (e, t) => (e.order ?? 0) - (t.order ?? 0), Jc = (e, t) => aM(e, t) || Vm(e, t) || e.model.localeCompare(t.model), rM = (e) => {
|
|
29039
29052
|
const { capitalize: t } = gl(), { convertToDotNotation: n } = Yp(), { i18n: { t: i } } = it(), o = hu(), r = {
|
|
29040
29053
|
"application-registration": {
|
|
29041
29054
|
overwriteDefault: !0,
|
|
@@ -29156,16 +29169,16 @@ const Bm = (e) => {
|
|
|
29156
29169
|
...FE
|
|
29157
29170
|
},
|
|
29158
29171
|
"openid-connect": {
|
|
29159
|
-
...
|
|
29172
|
+
...tM
|
|
29160
29173
|
},
|
|
29161
29174
|
opentelemetry: {
|
|
29162
|
-
...
|
|
29175
|
+
...nM
|
|
29163
29176
|
},
|
|
29164
29177
|
"konnect-application-auth": {
|
|
29165
|
-
...
|
|
29178
|
+
...iM
|
|
29166
29179
|
},
|
|
29167
29180
|
"ai-mcp-oauth2": {
|
|
29168
|
-
...
|
|
29181
|
+
...oM
|
|
29169
29182
|
}
|
|
29170
29183
|
}, a = () => ["created_at", "updated_at", "id", "_isCustomPlugin", "_sourcePlugin", "_supported_redis_partial_type", "_redis_partial_path"], l = (w, T, O, q) => {
|
|
29171
29184
|
let A = {};
|
|
@@ -29390,20 +29403,20 @@ const Bm = (e) => {
|
|
|
29390
29403
|
typedefs: Co,
|
|
29391
29404
|
pruneRecord: k
|
|
29392
29405
|
};
|
|
29393
|
-
}, tr = Symbol("customPluginType"),
|
|
29406
|
+
}, tr = Symbol("customPluginType"), sM = 1e3, lM = 20, Xc = 5e3, Zc = (e, t = sM) => {
|
|
29394
29407
|
const n = /^[a-z][a-z\d+.-]*:/i.test(e), i = new URL(e, "http://localhost");
|
|
29395
29408
|
return i.searchParams.has("size") || i.searchParams.set("size", `${t}`), n ? i.toString() : `${i.pathname}${i.search}${i.hash}`;
|
|
29396
29409
|
}, Ir = async (e, t, n) => {
|
|
29397
29410
|
const i = [];
|
|
29398
29411
|
let o = Zc(t), r = null, a = 0;
|
|
29399
|
-
for (; o && a <
|
|
29412
|
+
for (; o && a < lM && i.length < Xc && o !== r; ) {
|
|
29400
29413
|
r = o;
|
|
29401
29414
|
const s = (await e.get(o, { signal: n })).data;
|
|
29402
29415
|
Array.isArray(s == null ? void 0 : s.data) && i.push(...s.data), o = s != null && s.next ? Zc(s.next) : null, a += 1;
|
|
29403
29416
|
}
|
|
29404
29417
|
return i.slice(0, Xc);
|
|
29405
29418
|
};
|
|
29406
|
-
function
|
|
29419
|
+
function uM(e) {
|
|
29407
29420
|
const { axiosInstance: t, apiBaseUrl: n } = e, i = () => {
|
|
29408
29421
|
if (e.app !== "konnect")
|
|
29409
29422
|
throw new Error("Installed custom plugin APIs are only available for Konnect");
|
|
@@ -29492,25 +29505,25 @@ const lt = {
|
|
|
29492
29505
|
useI18n: it,
|
|
29493
29506
|
usePluginMetaData: Xp,
|
|
29494
29507
|
usePluginHelpers: Yp,
|
|
29495
|
-
useSchemas:
|
|
29508
|
+
useSchemas: rM,
|
|
29496
29509
|
useExperimentalFreeForms: hu,
|
|
29497
|
-
useProvideExperimentalFreeForms:
|
|
29498
|
-
useFreeFormResolver:
|
|
29499
|
-
useCustomPluginApi:
|
|
29510
|
+
useProvideExperimentalFreeForms: Q2,
|
|
29511
|
+
useFreeFormResolver: eM,
|
|
29512
|
+
useCustomPluginApi: uM
|
|
29500
29513
|
}, zm = (e) => {
|
|
29501
29514
|
var n, i, o, r;
|
|
29502
29515
|
const t = e == null ? void 0 : e.response;
|
|
29503
29516
|
return (t == null ? void 0 : t.status) === 400 && (((i = (n = t.data) == null ? void 0 : n.message) == null ? void 0 : i.includes("plugin schema is currently in use")) || ((o = t.data) == null ? void 0 : o.code) === 19 || ((r = t.data) == null ? void 0 : r.name) === "referenced by others");
|
|
29504
|
-
},
|
|
29517
|
+
}, cM = { class: "kong-ui-entities-custom-plugin-form" }, dM = { class: "plugin-type-radios" }, pM = { class: "compare-table-wrapper" }, fM = { class: "compare-table" }, mM = {
|
|
29505
29518
|
key: 0,
|
|
29506
29519
|
scope: "col"
|
|
29507
|
-
},
|
|
29520
|
+
}, gM = {
|
|
29508
29521
|
key: 1,
|
|
29509
29522
|
scope: "col"
|
|
29510
|
-
},
|
|
29523
|
+
}, hM = {
|
|
29511
29524
|
key: 2,
|
|
29512
29525
|
scope: "col"
|
|
29513
|
-
},
|
|
29526
|
+
}, yM = { scope: "row" }, vM = { key: 0 }, _M = { key: 1 }, bM = { key: 2 }, wM = { scope: "row" }, kM = { key: 0 }, CM = { class: "compare-list" }, EM = { key: 1 }, xM = { class: "compare-list" }, SM = { key: 2 }, AM = { scope: "row" }, IM = { key: 0 }, TM = { key: 1 }, $M = { key: 2 }, OM = { scope: "row" }, PM = { key: 0 }, NM = { key: 1 }, RM = { key: 2 }, MM = { scope: "row" }, LM = { key: 0 }, FM = { key: 1 }, KM = { key: 2 }, jM = { class: "plugin-modules-section" }, DM = { class: "plugin-select-item" }, qM = { class: "plugin-select-item" }, BM = { key: 1 }, UM = 1 * 1024 * 1024, VM = /* @__PURE__ */ Pe({
|
|
29514
29527
|
__name: "CustomPluginForm",
|
|
29515
29528
|
props: {
|
|
29516
29529
|
config: {
|
|
@@ -29678,7 +29691,7 @@ const lt = {
|
|
|
29678
29691
|
}), D = async (pe, he) => {
|
|
29679
29692
|
const je = he[0];
|
|
29680
29693
|
if (je) {
|
|
29681
|
-
if (je.size >
|
|
29694
|
+
if (je.size > UM) {
|
|
29682
29695
|
M.errorMessage = a("custom_plugin_form.errors.file_too_large");
|
|
29683
29696
|
return;
|
|
29684
29697
|
}
|
|
@@ -29763,7 +29776,7 @@ const lt = {
|
|
|
29763
29776
|
};
|
|
29764
29777
|
return (pe, he) => {
|
|
29765
29778
|
const je = xe("KSkeleton"), Ue = xe("KEmptyState"), De = xe("KRadio"), He = xe("KCollapse"), Ye = xe("KFileUpload"), rt = xe("KLabel"), ft = xe("KAlert"), Be = xe("KSelect"), Ce = xe("KInput"), se = xe("KButton");
|
|
29766
|
-
return S(), le("div",
|
|
29779
|
+
return S(), le("div", cM, [
|
|
29767
29780
|
C(u(hd), {
|
|
29768
29781
|
ref_key: "entityBaseFormRef",
|
|
29769
29782
|
ref: x,
|
|
@@ -29780,7 +29793,7 @@ const lt = {
|
|
|
29780
29793
|
onSubmit: we
|
|
29781
29794
|
}, {
|
|
29782
29795
|
"form-actions": N(() => [
|
|
29783
|
-
A.value || I.value || j.value ? (S(), le("span",
|
|
29796
|
+
A.value || I.value || j.value ? (S(), le("span", BM)) : (S(), le(Ge, { key: 0 }, [
|
|
29784
29797
|
C(se, {
|
|
29785
29798
|
appearance: "primary",
|
|
29786
29799
|
"data-testid": "custom-plugin-form-submit",
|
|
@@ -29850,7 +29863,7 @@ const lt = {
|
|
|
29850
29863
|
title: u(a)("custom_plugin_form.step1.title")
|
|
29851
29864
|
}, {
|
|
29852
29865
|
default: N(() => [
|
|
29853
|
-
ee("div",
|
|
29866
|
+
ee("div", dM, [
|
|
29854
29867
|
oe("installed") ? (S(), Z(De, {
|
|
29855
29868
|
key: 0,
|
|
29856
29869
|
modelValue: M.fields.pluginType,
|
|
@@ -29894,39 +29907,39 @@ const lt = {
|
|
|
29894
29907
|
"trigger-label": u(a)("custom_plugin_form.step1.compare_trigger")
|
|
29895
29908
|
}, {
|
|
29896
29909
|
default: N(() => [
|
|
29897
|
-
ee("div",
|
|
29898
|
-
ee("table",
|
|
29910
|
+
ee("div", pM, [
|
|
29911
|
+
ee("table", fM, [
|
|
29899
29912
|
ee("thead", null, [
|
|
29900
29913
|
ee("tr", null, [
|
|
29901
29914
|
he[15] || (he[15] = ee("th", { scope: "col" }, null, -1)),
|
|
29902
|
-
oe("installed") ? (S(), le("th",
|
|
29903
|
-
oe("streamed") ? (S(), le("th",
|
|
29904
|
-
oe("cloned") ? (S(), le("th",
|
|
29915
|
+
oe("installed") ? (S(), le("th", mM, ue(u(a)("custom_plugin_form.step1.compare_table.columns.installed")), 1)) : ye("", !0),
|
|
29916
|
+
oe("streamed") ? (S(), le("th", gM, ue(u(a)("custom_plugin_form.step1.compare_table.columns.streamed")), 1)) : ye("", !0),
|
|
29917
|
+
oe("cloned") ? (S(), le("th", hM, ue(u(a)("custom_plugin_form.step1.compare_table.columns.cloned")), 1)) : ye("", !0)
|
|
29905
29918
|
])
|
|
29906
29919
|
]),
|
|
29907
29920
|
ee("tbody", null, [
|
|
29908
29921
|
ee("tr", null, [
|
|
29909
|
-
ee("th",
|
|
29910
|
-
oe("installed") ? (S(), le("td",
|
|
29911
|
-
oe("streamed") ? (S(), le("td",
|
|
29912
|
-
oe("cloned") ? (S(), le("td",
|
|
29922
|
+
ee("th", yM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.main_use_case.header")), 1),
|
|
29923
|
+
oe("installed") ? (S(), le("td", vM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.main_use_case.installed")), 1)) : ye("", !0),
|
|
29924
|
+
oe("streamed") ? (S(), le("td", _M, ue(u(a)("custom_plugin_form.step1.compare_table.rows.main_use_case.streamed")), 1)) : ye("", !0),
|
|
29925
|
+
oe("cloned") ? (S(), le("td", bM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.main_use_case.cloned")), 1)) : ye("", !0)
|
|
29913
29926
|
]),
|
|
29914
29927
|
ee("tr", null, [
|
|
29915
|
-
ee("th",
|
|
29916
|
-
oe("installed") ? (S(), le("td",
|
|
29917
|
-
ee("ul",
|
|
29928
|
+
ee("th", wM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.header")), 1),
|
|
29929
|
+
oe("installed") ? (S(), le("td", kM, [
|
|
29930
|
+
ee("ul", CM, [
|
|
29918
29931
|
ee("li", null, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.installed.handler")), 1),
|
|
29919
29932
|
ee("li", null, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.installed.schema")), 1),
|
|
29920
29933
|
ee("li", null, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.installed.additional")), 1)
|
|
29921
29934
|
])
|
|
29922
29935
|
])) : ye("", !0),
|
|
29923
|
-
oe("streamed") ? (S(), le("td",
|
|
29924
|
-
ee("ul",
|
|
29936
|
+
oe("streamed") ? (S(), le("td", EM, [
|
|
29937
|
+
ee("ul", xM, [
|
|
29925
29938
|
ee("li", null, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.streamed.handler")), 1),
|
|
29926
29939
|
ee("li", null, ue(u(a)("custom_plugin_form.step1.compare_table.rows.file_supplied.streamed.schema")), 1)
|
|
29927
29940
|
])
|
|
29928
29941
|
])) : ye("", !0),
|
|
29929
|
-
oe("cloned") ? (S(), le("td",
|
|
29942
|
+
oe("cloned") ? (S(), le("td", SM, [
|
|
29930
29943
|
C(u(Da), {
|
|
29931
29944
|
color: `var(--kui-color-text-neutral, ${u(ii)})`,
|
|
29932
29945
|
size: `var(--kui-icon-size-30, ${u(Vn)})`
|
|
@@ -29934,20 +29947,20 @@ const lt = {
|
|
|
29934
29947
|
])) : ye("", !0)
|
|
29935
29948
|
]),
|
|
29936
29949
|
ee("tr", null, [
|
|
29937
|
-
ee("th",
|
|
29938
|
-
oe("installed") ? (S(), le("td",
|
|
29939
|
-
oe("streamed") ? (S(), le("td",
|
|
29940
|
-
oe("cloned") ? (S(), le("td",
|
|
29950
|
+
ee("th", AM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.how_installed.header")), 1),
|
|
29951
|
+
oe("installed") ? (S(), le("td", IM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.how_installed.installed")), 1)) : ye("", !0),
|
|
29952
|
+
oe("streamed") ? (S(), le("td", TM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.how_installed.streamed")), 1)) : ye("", !0),
|
|
29953
|
+
oe("cloned") ? (S(), le("td", $M, ue(u(a)("custom_plugin_form.step1.compare_table.rows.how_installed.cloned")), 1)) : ye("", !0)
|
|
29941
29954
|
]),
|
|
29942
29955
|
ee("tr", null, [
|
|
29943
|
-
ee("th",
|
|
29944
|
-
oe("installed") ? (S(), le("td",
|
|
29956
|
+
ee("th", OM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.sandboxing.header")), 1),
|
|
29957
|
+
oe("installed") ? (S(), le("td", PM, [
|
|
29945
29958
|
C(u(Da), {
|
|
29946
29959
|
color: `var(--kui-color-text-neutral, ${u(ii)})`,
|
|
29947
29960
|
size: `var(--kui-icon-size-30, ${u(Vn)})`
|
|
29948
29961
|
}, null, 8, ["color", "size"])
|
|
29949
29962
|
])) : ye("", !0),
|
|
29950
|
-
oe("streamed") ? (S(), le("td",
|
|
29963
|
+
oe("streamed") ? (S(), le("td", NM, [
|
|
29951
29964
|
C(u(l), { keypath: "custom_plugin_form.step1.compare_table.rows.sandboxing.streamed" }, {
|
|
29952
29965
|
link: N(() => [
|
|
29953
29966
|
C(u(ku), {
|
|
@@ -29963,23 +29976,23 @@ const lt = {
|
|
|
29963
29976
|
_: 1
|
|
29964
29977
|
})
|
|
29965
29978
|
])) : ye("", !0),
|
|
29966
|
-
oe("cloned") ? (S(), le("td",
|
|
29979
|
+
oe("cloned") ? (S(), le("td", RM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.sandboxing.cloned")), 1)) : ye("", !0)
|
|
29967
29980
|
]),
|
|
29968
29981
|
ee("tr", null, [
|
|
29969
|
-
ee("th",
|
|
29970
|
-
oe("installed") ? (S(), le("td",
|
|
29982
|
+
ee("th", MM, ue(u(a)("custom_plugin_form.step1.compare_table.rows.data_plane_reload.header")), 1),
|
|
29983
|
+
oe("installed") ? (S(), le("td", LM, [
|
|
29971
29984
|
C(u(Cg), {
|
|
29972
29985
|
color: `var(--kui-color-text-success, ${u(Ad)})`,
|
|
29973
29986
|
size: `var(--kui-icon-size-30, ${u(Vn)})`
|
|
29974
29987
|
}, null, 8, ["color", "size"])
|
|
29975
29988
|
])) : ye("", !0),
|
|
29976
|
-
oe("streamed") ? (S(), le("td",
|
|
29989
|
+
oe("streamed") ? (S(), le("td", FM, [
|
|
29977
29990
|
C(u(Da), {
|
|
29978
29991
|
color: `var(--kui-color-text-neutral, ${u(ii)})`,
|
|
29979
29992
|
size: `var(--kui-icon-size-30, ${u(Vn)})`
|
|
29980
29993
|
}, null, 8, ["color", "size"])
|
|
29981
29994
|
])) : ye("", !0),
|
|
29982
|
-
oe("cloned") ? (S(), le("td",
|
|
29995
|
+
oe("cloned") ? (S(), le("td", KM, [
|
|
29983
29996
|
C(u(Da), {
|
|
29984
29997
|
color: `var(--kui-color-text-neutral, ${u(ii)})`,
|
|
29985
29998
|
size: `var(--kui-icon-size-30, ${u(Vn)})`
|
|
@@ -30013,7 +30026,7 @@ const lt = {
|
|
|
30013
30026
|
onFileAdded: he[4] || (he[4] = (ie) => D("schema", ie)),
|
|
30014
30027
|
onFileRemoved: he[5] || (he[5] = (ie) => re("schema"))
|
|
30015
30028
|
}, null, 8, ["button-text", "help", "label", "placeholder", "required"]),
|
|
30016
|
-
ee("div",
|
|
30029
|
+
ee("div", jM, [
|
|
30017
30030
|
C(rt, null, {
|
|
30018
30031
|
default: N(() => [
|
|
30019
30032
|
Le(ue(u(a)("custom_plugin_form.step2_files.plugin_modules.label")), 1)
|
|
@@ -30078,7 +30091,7 @@ const lt = {
|
|
|
30078
30091
|
required: ""
|
|
30079
30092
|
}, {
|
|
30080
30093
|
"item-template": N(({ item: ie }) => [
|
|
30081
|
-
ee("div",
|
|
30094
|
+
ee("div", DM, [
|
|
30082
30095
|
C(u(qi), {
|
|
30083
30096
|
name: String(ie.value),
|
|
30084
30097
|
size: 20
|
|
@@ -30087,7 +30100,7 @@ const lt = {
|
|
|
30087
30100
|
])
|
|
30088
30101
|
]),
|
|
30089
30102
|
"selected-item-template": N(({ item: ie }) => [
|
|
30090
|
-
ee("div",
|
|
30103
|
+
ee("div", qM, [
|
|
30091
30104
|
C(u(qi), {
|
|
30092
30105
|
name: String(ie.value),
|
|
30093
30106
|
size: 20
|
|
@@ -30183,7 +30196,7 @@ const lt = {
|
|
|
30183
30196
|
]);
|
|
30184
30197
|
};
|
|
30185
30198
|
}
|
|
30186
|
-
}),
|
|
30199
|
+
}), QK = /* @__PURE__ */ ze(VM, [["__scopeId", "data-v-0c1e017a"]]), zM = (e, t) => ({
|
|
30187
30200
|
type: "array",
|
|
30188
30201
|
valueType: "string",
|
|
30189
30202
|
valueArrayType: "array",
|
|
@@ -30202,7 +30215,7 @@ const lt = {
|
|
|
30202
30215
|
},
|
|
30203
30216
|
...(t == null ? void 0 : t[0]) != null ? { default: t[0] } : {}
|
|
30204
30217
|
}
|
|
30205
|
-
}),
|
|
30218
|
+
}), GM = { class: "referable-field-item" }, HM = 24, WM = /* @__PURE__ */ Pe({
|
|
30206
30219
|
__name: "ReferableFieldItem",
|
|
30207
30220
|
props: {
|
|
30208
30221
|
field: {},
|
|
@@ -30219,13 +30232,13 @@ const lt = {
|
|
|
30219
30232
|
const a = `label[for="${i.value}"]`, l = document.querySelector(a) || document.getElementById(i.value);
|
|
30220
30233
|
if (!l)
|
|
30221
30234
|
return;
|
|
30222
|
-
const s = Math.max(0, l.getBoundingClientRect().top + window.scrollY -
|
|
30235
|
+
const s = Math.max(0, l.getBoundingClientRect().top + window.scrollY - HM), d = () => {
|
|
30223
30236
|
var f;
|
|
30224
30237
|
(f = l.click) == null || f.call(l);
|
|
30225
30238
|
};
|
|
30226
30239
|
window.addEventListener("scrollend", d, { once: !0 }), window.scrollTo({ top: s, behavior: "smooth" });
|
|
30227
30240
|
};
|
|
30228
|
-
return (a, l) => (S(), le("span",
|
|
30241
|
+
return (a, l) => (S(), le("span", GM, [
|
|
30229
30242
|
ee("span", {
|
|
30230
30243
|
class: "referable-field-link",
|
|
30231
30244
|
role: "button",
|
|
@@ -30237,7 +30250,7 @@ const lt = {
|
|
|
30237
30250
|
], 64))
|
|
30238
30251
|
]));
|
|
30239
30252
|
}
|
|
30240
|
-
}), Qc = /* @__PURE__ */ ze(
|
|
30253
|
+
}), Qc = /* @__PURE__ */ ze(WM, [["__scopeId", "data-v-949a9ea1"]]), YM = { key: 0 }, JM = /* @__PURE__ */ Pe({
|
|
30241
30254
|
__name: "PluginFieldRuleAlerts",
|
|
30242
30255
|
props: {
|
|
30243
30256
|
rules: {}
|
|
@@ -30275,7 +30288,7 @@ const lt = {
|
|
|
30275
30288
|
_: 2
|
|
30276
30289
|
}, 1032, ["keypath"])
|
|
30277
30290
|
]))), 128)),
|
|
30278
|
-
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (S(), le("li",
|
|
30291
|
+
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (S(), le("li", YM, [
|
|
30279
30292
|
(S(!0), le(Ge, null, et(t.rules.onlyOneOfMutuallyRequired, (s, d) => (S(), le("div", {
|
|
30280
30293
|
key: `only-one-mutually-alert-${d}`
|
|
30281
30294
|
}, [
|
|
@@ -30299,12 +30312,12 @@ const lt = {
|
|
|
30299
30312
|
});
|
|
30300
30313
|
};
|
|
30301
30314
|
}
|
|
30302
|
-
}),
|
|
30303
|
-
function
|
|
30315
|
+
}), XM = /* @__PURE__ */ ze(JM, [["__scopeId", "data-v-5f9ff453"]]);
|
|
30316
|
+
function ZM(e) {
|
|
30304
30317
|
if (e.length === 0) return "";
|
|
30305
30318
|
if (e.length === 1) {
|
|
30306
30319
|
const o = fn(e[0]);
|
|
30307
|
-
return
|
|
30320
|
+
return kt(...o.slice(0, -1));
|
|
30308
30321
|
}
|
|
30309
30322
|
const t = e.map((o) => fn(o)), n = Math.min(...t.map((o) => o.length)), i = [];
|
|
30310
30323
|
for (let o = 0; o < n - 1; o++) {
|
|
@@ -30314,23 +30327,23 @@ function XM(e) {
|
|
|
30314
30327
|
else
|
|
30315
30328
|
break;
|
|
30316
30329
|
}
|
|
30317
|
-
return
|
|
30330
|
+
return kt(...i);
|
|
30318
30331
|
}
|
|
30319
30332
|
function yu(e) {
|
|
30320
30333
|
return "at_least_one_of" in e ? e.at_least_one_of : "mutually_required" in e ? e.mutually_required : "mutually_exclusive" in e ? e.mutually_exclusive : null;
|
|
30321
30334
|
}
|
|
30322
|
-
function
|
|
30335
|
+
function QM(e, t) {
|
|
30323
30336
|
if (!t) return e;
|
|
30324
30337
|
const n = t + Pa;
|
|
30325
30338
|
return e.map(
|
|
30326
30339
|
(i) => i.startsWith(n) ? i.slice(n.length) : i
|
|
30327
30340
|
);
|
|
30328
30341
|
}
|
|
30329
|
-
function
|
|
30330
|
-
const n = yu(e), i =
|
|
30342
|
+
function eL(e, t) {
|
|
30343
|
+
const n = yu(e), i = QM(n, t);
|
|
30331
30344
|
return "at_least_one_of" in e ? { at_least_one_of: i } : "mutually_required" in e ? { mutually_required: i } : { mutually_exclusive: i };
|
|
30332
30345
|
}
|
|
30333
|
-
function
|
|
30346
|
+
function tL(e) {
|
|
30334
30347
|
const t = [], n = /* @__PURE__ */ new Map();
|
|
30335
30348
|
for (const i of e) {
|
|
30336
30349
|
const o = yu(i);
|
|
@@ -30338,17 +30351,17 @@ function eL(e) {
|
|
|
30338
30351
|
t.push(i);
|
|
30339
30352
|
continue;
|
|
30340
30353
|
}
|
|
30341
|
-
const r =
|
|
30354
|
+
const r = ZM(o);
|
|
30342
30355
|
if (!r) {
|
|
30343
30356
|
t.push(i);
|
|
30344
30357
|
continue;
|
|
30345
30358
|
}
|
|
30346
|
-
const a =
|
|
30359
|
+
const a = eL(i, r);
|
|
30347
30360
|
n.has(r) || n.set(r, []), n.get(r).push(a);
|
|
30348
30361
|
}
|
|
30349
30362
|
return { keep: t, move: n };
|
|
30350
30363
|
}
|
|
30351
|
-
function
|
|
30364
|
+
function nL(e, t, n) {
|
|
30352
30365
|
const i = fn(t);
|
|
30353
30366
|
let o = e;
|
|
30354
30367
|
for (const r of i) {
|
|
@@ -30366,27 +30379,27 @@ function tL(e, t, n) {
|
|
|
30366
30379
|
function Gm(e) {
|
|
30367
30380
|
var t;
|
|
30368
30381
|
if ((t = e.entity_checks) != null && t.length) {
|
|
30369
|
-
const { keep: n, move: i } =
|
|
30382
|
+
const { keep: n, move: i } = tL(e.entity_checks);
|
|
30370
30383
|
e.entity_checks = n.length ? n : void 0;
|
|
30371
30384
|
for (const [o, r] of i)
|
|
30372
|
-
|
|
30385
|
+
nL(e, o, r);
|
|
30373
30386
|
}
|
|
30374
30387
|
for (const n of e.fields) {
|
|
30375
30388
|
const i = Object.values(n)[0];
|
|
30376
30389
|
i.type === "record" && Gm(i);
|
|
30377
30390
|
}
|
|
30378
30391
|
}
|
|
30379
|
-
function
|
|
30392
|
+
function iL(e) {
|
|
30380
30393
|
const t = JSON.parse(JSON.stringify(e)), n = {
|
|
30381
30394
|
fields: t.fields
|
|
30382
30395
|
};
|
|
30383
30396
|
return Gm(n), t.fields = n.fields, t;
|
|
30384
30397
|
}
|
|
30385
|
-
function
|
|
30398
|
+
function oL(e, t) {
|
|
30386
30399
|
const n = $n[e];
|
|
30387
30400
|
if (!n || !n.fieldRules)
|
|
30388
30401
|
return t;
|
|
30389
|
-
const i =
|
|
30402
|
+
const i = aL(n.fieldRules), o = { ...t };
|
|
30390
30403
|
return o.fields = o.fields.map((r) => {
|
|
30391
30404
|
if (Object.keys(r)[0] === "config") {
|
|
30392
30405
|
const l = r.config.entity_checks || [], s = (c) => {
|
|
@@ -30409,7 +30422,7 @@ function iL(e, t) {
|
|
|
30409
30422
|
return r;
|
|
30410
30423
|
}), o;
|
|
30411
30424
|
}
|
|
30412
|
-
function
|
|
30425
|
+
function aL(e) {
|
|
30413
30426
|
const t = [], n = (i) => i.startsWith("config.") ? i.substring(7) : i;
|
|
30414
30427
|
return e.atLeastOneOf && e.atLeastOneOf.forEach((i) => {
|
|
30415
30428
|
t.push({
|
|
@@ -30442,10 +30455,10 @@ function oL(e) {
|
|
|
30442
30455
|
}
|
|
30443
30456
|
}), t;
|
|
30444
30457
|
}
|
|
30445
|
-
const
|
|
30458
|
+
const rL = { class: "kong-ui-entities-plugin-form" }, sL = {
|
|
30446
30459
|
key: 1,
|
|
30447
30460
|
class: "entity-form"
|
|
30448
|
-
},
|
|
30461
|
+
}, lL = { class: "plugin-config-empty-state" }, uL = /* @__PURE__ */ Pe({
|
|
30449
30462
|
__name: "PluginEntityForm",
|
|
30450
30463
|
props: {
|
|
30451
30464
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -30616,11 +30629,11 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30616
30629
|
var Ce;
|
|
30617
30630
|
return (Ce = Q.value) == null ? void 0 : Ce.options;
|
|
30618
30631
|
}), M = L(() => {
|
|
30619
|
-
const Ce =
|
|
30632
|
+
const Ce = oL(
|
|
30620
30633
|
F.name,
|
|
30621
30634
|
i.rawSchema
|
|
30622
30635
|
);
|
|
30623
|
-
return
|
|
30636
|
+
return iL(Ce);
|
|
30624
30637
|
}), W = me(!1), z = me(), H = (Ce, se) => {
|
|
30625
30638
|
W.value = Ce ?? "", z.value = se;
|
|
30626
30639
|
}, U = (Ce) => {
|
|
@@ -30861,11 +30874,11 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30861
30874
|
var Y, de, fe;
|
|
30862
30875
|
const ie = xe("KSkeleton");
|
|
30863
30876
|
return S(), le(Ge, null, [
|
|
30864
|
-
ee("div",
|
|
30877
|
+
ee("div", rL, [
|
|
30865
30878
|
Ye.value ? (S(), Z(ie, {
|
|
30866
30879
|
key: 0,
|
|
30867
30880
|
type: "form"
|
|
30868
|
-
})) : F.id && e.editing || !e.editing ? (S(), le("div",
|
|
30881
|
+
})) : F.id && e.editing || !e.editing ? (S(), le("div", sL, [
|
|
30869
30882
|
j.value ? (S(), Z(Dt(j.value), {
|
|
30870
30883
|
key: 0,
|
|
30871
30884
|
developer: e.developer,
|
|
@@ -30883,7 +30896,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30883
30896
|
"onClick:createEntity": se[0] || (se[0] = (ge) => Ce.$emit("click:create-entity", ge)),
|
|
30884
30897
|
"onClick:learnMore": se[1] || (se[1] = (ge) => Ce.$emit("click:learn-more", ge)),
|
|
30885
30898
|
onGlobalAction: se[2] || (se[2] = (ge, Te) => Ce.$emit("globalAction", ge, Te))
|
|
30886
|
-
},
|
|
30899
|
+
}, _t({ _: 2 }, [
|
|
30887
30900
|
e.enableVaultSecretPicker ? {
|
|
30888
30901
|
name: u(Nn),
|
|
30889
30902
|
fn: N((ge) => [
|
|
@@ -30905,7 +30918,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30905
30918
|
"show-new-partial-modal": (ge) => Ce.$emit("showNewPartialModal", ge),
|
|
30906
30919
|
"onClick:createEntity": se[3] || (se[3] = (ge) => Ce.$emit("click:create-entity", ge)),
|
|
30907
30920
|
"onClick:learnMore": se[4] || (se[4] = (ge) => Ce.$emit("click:learn-more", ge))
|
|
30908
|
-
},
|
|
30921
|
+
}, _t({ _: 2 }, [
|
|
30909
30922
|
e.enableVaultSecretPicker ? {
|
|
30910
30923
|
name: u(Nn),
|
|
30911
30924
|
fn: N((ge) => [
|
|
@@ -30925,16 +30938,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30925
30938
|
onPartialToggled: re,
|
|
30926
30939
|
onRefreshModel: D,
|
|
30927
30940
|
onShowNewPartialModal: se[5] || (se[5] = (ge) => Ce.$emit("showNewPartialModal", ge))
|
|
30928
|
-
},
|
|
30941
|
+
}, _t({
|
|
30929
30942
|
"plugin-config-empty-state": N(() => [
|
|
30930
|
-
ee("div",
|
|
30943
|
+
ee("div", lL, ue(u(x)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
30931
30944
|
]),
|
|
30932
30945
|
_: 2
|
|
30933
30946
|
}, [
|
|
30934
30947
|
(fe = u($n)[F.name]) != null && fe.fieldRules && (i.config.isNewOtelSchema || F.name !== "opentelemetry") ? {
|
|
30935
30948
|
name: "plugin-config-before-content",
|
|
30936
30949
|
fn: N(() => [
|
|
30937
|
-
C(
|
|
30950
|
+
C(XM, {
|
|
30938
30951
|
rules: u($n)[F.name].fieldRules
|
|
30939
30952
|
}, null, 8, ["rules"])
|
|
30940
30953
|
]),
|
|
@@ -30959,7 +30972,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30959
30972
|
], 64);
|
|
30960
30973
|
};
|
|
30961
30974
|
}
|
|
30962
|
-
}),
|
|
30975
|
+
}), cL = /* @__PURE__ */ ze(uL, [["__scopeId", "data-v-7f30f062"]]), dL = { key: 1 }, pL = /* @__PURE__ */ Pe({
|
|
30963
30976
|
__name: "PluginFormActionsWrapper",
|
|
30964
30977
|
props: {
|
|
30965
30978
|
teleportTarget: {
|
|
@@ -30973,14 +30986,14 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
30973
30986
|
to: e.teleportTarget
|
|
30974
30987
|
}, [
|
|
30975
30988
|
Qe(t.$slots, "default")
|
|
30976
|
-
], 8, ["to"])) : (S(), le("div",
|
|
30989
|
+
], 8, ["to"])) : (S(), le("div", dL, [
|
|
30977
30990
|
Qe(t.$slots, "default")
|
|
30978
30991
|
]));
|
|
30979
30992
|
}
|
|
30980
|
-
}),
|
|
30993
|
+
}), fL = { key: 0 }, mL = { class: "plugin-form-actions" }, gL = {
|
|
30981
30994
|
key: 0,
|
|
30982
30995
|
class: "button-customize-deck-wrapper"
|
|
30983
|
-
},
|
|
30996
|
+
}, hL = /* @__PURE__ */ Pe({
|
|
30984
30997
|
__name: "PluginForm",
|
|
30985
30998
|
props: {
|
|
30986
30999
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -31165,8 +31178,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31165
31178
|
}), _e = () => {
|
|
31166
31179
|
b.value = !b.value;
|
|
31167
31180
|
}, pe = L(() => {
|
|
31168
|
-
var Ne, qe, Ve, tt, Je, Fe, $e,
|
|
31169
|
-
const B = a.config.entityType === "consumers" && a.config.entityId || ((qe = (Ne = O.value) == null ? void 0 : Ne.consumer) == null ? void 0 : qe.id), ne = a.config.entityType === "consumer_groups" && a.config.entityId || ((tt = (Ve = O.value) == null ? void 0 : Ve.consumer_group) == null ? void 0 : tt.id), V = a.config.entityType === "services" && a.config.entityId || ((Fe = (Je = O.value) == null ? void 0 : Je.service) == null ? void 0 : Fe.id), Ee = a.config.entityType === "routes" && a.config.entityId || ((
|
|
31181
|
+
var Ne, qe, Ve, tt, Je, Fe, $e, bt;
|
|
31182
|
+
const B = a.config.entityType === "consumers" && a.config.entityId || ((qe = (Ne = O.value) == null ? void 0 : Ne.consumer) == null ? void 0 : qe.id), ne = a.config.entityType === "consumer_groups" && a.config.entityId || ((tt = (Ve = O.value) == null ? void 0 : Ve.consumer_group) == null ? void 0 : tt.id), V = a.config.entityType === "services" && a.config.entityId || ((Fe = (Je = O.value) == null ? void 0 : Je.service) == null ? void 0 : Fe.id), Ee = a.config.entityType === "routes" && a.config.entityId || ((bt = ($e = O.value) == null ? void 0 : $e.route) == null ? void 0 : bt.id);
|
|
31170
31183
|
if (!(B || ne || V || Ee))
|
|
31171
31184
|
return {
|
|
31172
31185
|
global: {
|
|
@@ -31372,7 +31385,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31372
31385
|
} else if (["string", "integer", "number"].includes(ct.type) && ct.one_of) {
|
|
31373
31386
|
if (Ee) {
|
|
31374
31387
|
const { id: Zt, help: Pt, label: ht, hint: ut, values: At, referenceable: xt, model: bn } = V[$e];
|
|
31375
|
-
V[$e] = { id: Zt, help: Pt, label: ht, hint: ut, values: At, referenceable: xt, model: bn, ...
|
|
31388
|
+
V[$e] = { id: Zt, help: Pt, label: ht, hint: ut, values: At, referenceable: xt, model: bn, ...zM(ct.one_of, Fe.default) };
|
|
31376
31389
|
}
|
|
31377
31390
|
} else if (ct.type === "array") {
|
|
31378
31391
|
const { id: Zt, help: Pt, label: ht, hint: ut, values: At, referenceable: xt, model: bn, elements: In } = V[$e], { inputAttributes: ss, ...Wm } = JSON.parse(JSON.stringify(mt));
|
|
@@ -31458,12 +31471,12 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31458
31471
|
const { type: ct } = Fe.elements || {};
|
|
31459
31472
|
ct && (V[$e].valueArrayType = ct === "integer" ? "number" : ct), V[$e].inputType = Fe.type === "array" || Fe.type === "string" ? Fe.encrypted ? "password" : "text" : Fe.type;
|
|
31460
31473
|
}
|
|
31461
|
-
let
|
|
31462
|
-
Fe.enum ?
|
|
31474
|
+
let bt = "string";
|
|
31475
|
+
Fe.enum ? bt = Ue(Fe.enum) : Fe.type === "boolean" ? bt = "boolean" : Fe.type === "number" || Fe.type === "integer" ? (bt = "number", V[$e].inputType = "number") : Fe.type === "array" ? (bt = "array", V[$e].default = Fe.default, Fe.len_min > 0 && (V[$e].submitWhenNull = !0)) : Fe.type === "foreign" ? bt = "object" : Fe.default && Array.isArray(Fe.default) ? (bt = "array", V[$e].valueArrayType = Ue(Fe.default)) : Fe.default && (bt = typeof Fe.default), V[$e].valueType = bt, Fe.fieldNameHasDashes && (V[$e].fieldNameHasDashes = !0);
|
|
31463
31476
|
}), V;
|
|
31464
31477
|
}, He = () => {
|
|
31465
|
-
var
|
|
31466
|
-
const B = j.value && R.value ? R.value : a.pluginType, ne = ((
|
|
31478
|
+
var bt, qn, Ot, Xt, Uo, Vo, zo, Go, ct, Zt, Pt, ht;
|
|
31479
|
+
const B = j.value && R.value ? R.value : a.pluginType, ne = ((bt = $n[B]) == null ? void 0 : bt.scope.includes(Ft.SERVICE)) ?? !0, V = ((qn = $n[B]) == null ? void 0 : qn.scope.includes(Ft.ROUTE)) ?? !0, Ee = ((Ot = $n[B]) == null ? void 0 : Ot.scope.includes(Ft.CONSUMER)) ?? !0, Se = a.config.disableConsumerGroupScope ? !1 : ((Xt = $n[B]) == null ? void 0 : Xt.scope.includes(Ft.CONSUMER_GROUP)) ?? !0, Ne = a.config.entityType === "consumers" && !!a.config.entityId || !!((Vo = (Uo = O.value) == null ? void 0 : Uo.consumer) != null && Vo.id), qe = a.config.entityType === "consumer_groups" && !!a.config.entityId || !!((Go = (zo = O.value) == null ? void 0 : zo.consumer_group) != null && Go.id), Ve = a.config.entityType === "services" && !!a.config.entityId || !!((Zt = (ct = O.value) == null ? void 0 : ct.service) != null && Zt.id), tt = a.config.entityType === "routes" && !!a.config.entityId || !!((ht = (Pt = O.value) == null ? void 0 : Pt.route) != null && ht.id), Je = [], Fe = (ut, At, xt) => ut ? s("plugins.form.disable_source_scope_change", { scope: xt }) : At ? s("plugins.form.disable_data_retrieving", { scope: xt }) : "", $e = (ut) => {
|
|
31467
31480
|
var At, xt;
|
|
31468
31481
|
return ((xt = (At = a.scopedEntitiesPermissions) == null ? void 0 : At[ut]) == null ? void 0 : xt.canRetrieve) === !1;
|
|
31469
31482
|
};
|
|
@@ -31710,12 +31723,12 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31710
31723
|
onLoading: ne[7] || (ne[7] = (Ve) => B.$emit("loading", Ve))
|
|
31711
31724
|
}, {
|
|
31712
31725
|
"form-actions": N(() => [
|
|
31713
|
-
e.isWizardStep ? (S(), le("div",
|
|
31726
|
+
e.isWizardStep ? (S(), le("div", fL)) : (S(), Z(pL, {
|
|
31714
31727
|
key: 1,
|
|
31715
31728
|
"teleport-target": e.actionsTeleportTarget
|
|
31716
31729
|
}, {
|
|
31717
31730
|
default: N(() => [
|
|
31718
|
-
ee("div",
|
|
31731
|
+
ee("div", mL, [
|
|
31719
31732
|
e.hideViewConfigAction ? ye("", !0) : (S(), Z(Se, {
|
|
31720
31733
|
key: 0,
|
|
31721
31734
|
appearance: "tertiary",
|
|
@@ -31761,7 +31774,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31761
31774
|
hidden: "",
|
|
31762
31775
|
onSubmit: ce
|
|
31763
31776
|
}, null, 32),
|
|
31764
|
-
C(
|
|
31777
|
+
C(cL, {
|
|
31765
31778
|
config: e.config,
|
|
31766
31779
|
credential: T.value,
|
|
31767
31780
|
developer: e.developer,
|
|
@@ -31824,7 +31837,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31824
31837
|
}, null, 8, ["credential-type", "entity-record", "entity-type"])
|
|
31825
31838
|
]),
|
|
31826
31839
|
deck: N(() => [
|
|
31827
|
-
u(W) ? (S(), le("div",
|
|
31840
|
+
u(W) ? (S(), le("div", gL, [
|
|
31828
31841
|
C(Se, {
|
|
31829
31842
|
appearance: "secondary",
|
|
31830
31843
|
class: "button-customize-deck",
|
|
@@ -31857,16 +31870,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
31857
31870
|
], 2);
|
|
31858
31871
|
};
|
|
31859
31872
|
}
|
|
31860
|
-
}),
|
|
31873
|
+
}), ej = /* @__PURE__ */ ze(hL, [["__scopeId", "data-v-cd2d48f0"]]), yL = { class: "kong-ui-entities-plugins-list" }, vL = { class: "button-row" }, _L = { class: "name-cell-wrapper" }, bL = { class: "info-wrapper" }, wL = {
|
|
31861
31874
|
key: 0,
|
|
31862
31875
|
class: "info-name"
|
|
31863
|
-
},
|
|
31876
|
+
}, kL = {
|
|
31864
31877
|
key: 1,
|
|
31865
31878
|
class: "info-name"
|
|
31866
|
-
},
|
|
31879
|
+
}, CL = {
|
|
31867
31880
|
key: 2,
|
|
31868
31881
|
class: "info-type"
|
|
31869
|
-
},
|
|
31882
|
+
}, EL = { key: 1 }, xL = /* @__PURE__ */ Pe({
|
|
31870
31883
|
__name: "PluginList",
|
|
31871
31884
|
props: {
|
|
31872
31885
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -32119,7 +32132,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32119
32132
|
Ye.value = await o.canCreate(), Ye.value && (He.value.title = r("plugins.list.empty_state.title"), He.value.ctaText = r("actions.create"));
|
|
32120
32133
|
}), (Be, Ce) => {
|
|
32121
32134
|
const se = xe("KButton"), ie = xe("KEmptyState"), Y = xe("KBadge"), de = xe("KTruncate"), fe = xe("KInputSwitch"), ge = xe("KDropdownItem"), Te = xe("KClipboardProvider");
|
|
32122
|
-
return S(), le("div",
|
|
32135
|
+
return S(), le("div", yL, [
|
|
32123
32136
|
C(u(ph), {
|
|
32124
32137
|
"cache-identifier": e.cacheIdentifier,
|
|
32125
32138
|
"disable-sorting": _.value,
|
|
@@ -32138,7 +32151,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32138
32151
|
"onClick:row": Ce[4] || (Ce[4] = (Ae) => H(Ae)),
|
|
32139
32152
|
onSort: A,
|
|
32140
32153
|
onState: u(f)
|
|
32141
|
-
},
|
|
32154
|
+
}, _t({
|
|
32142
32155
|
"toolbar-filter": N(() => [
|
|
32143
32156
|
C(u(mh), {
|
|
32144
32157
|
modelValue: E.value,
|
|
@@ -32151,7 +32164,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32151
32164
|
disabled: !e.useActionOutside,
|
|
32152
32165
|
to: "#kong-ui-app-page-header-action-button"
|
|
32153
32166
|
}, [
|
|
32154
|
-
ee("div",
|
|
32167
|
+
ee("div", vL, [
|
|
32155
32168
|
!p.value && c.value ? (S(), Z(se, {
|
|
32156
32169
|
key: 0,
|
|
32157
32170
|
appearance: "secondary",
|
|
@@ -32188,15 +32201,15 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32188
32201
|
], 8, ["disabled"]))
|
|
32189
32202
|
]),
|
|
32190
32203
|
name: N(({ row: Ae }) => [
|
|
32191
|
-
ee("div",
|
|
32204
|
+
ee("div", _L, [
|
|
32192
32205
|
C(u(qi), {
|
|
32193
32206
|
class: "plugin-icon",
|
|
32194
32207
|
name: Ae.name,
|
|
32195
32208
|
size: 24
|
|
32196
32209
|
}, null, 8, ["name"]),
|
|
32197
|
-
ee("div",
|
|
32198
|
-
Ae.instance_name ? (S(), le("span",
|
|
32199
|
-
Ae.instance_name ? (S(), le("span",
|
|
32210
|
+
ee("div", bL, [
|
|
32211
|
+
Ae.instance_name ? (S(), le("span", wL, ue(Ae.instance_name), 1)) : (S(), le("span", kL, ue(u(n).getDisplayName(Ae.name)), 1)),
|
|
32212
|
+
Ae.instance_name ? (S(), le("span", CL, ue(u(n).getDisplayName(Ae.name)), 1)) : ye("", !0)
|
|
32200
32213
|
])
|
|
32201
32214
|
])
|
|
32202
32215
|
]),
|
|
@@ -32223,7 +32236,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32223
32236
|
}, 1032, ["auth-function"]))), 128))
|
|
32224
32237
|
]),
|
|
32225
32238
|
_: 2
|
|
32226
|
-
}, 1024)) : (S(), le("span",
|
|
32239
|
+
}, 1024)) : (S(), le("span", EL, "-"))
|
|
32227
32240
|
]),
|
|
32228
32241
|
enabled: N(({ row: Ae }) => [
|
|
32229
32242
|
C(u(Pi), {
|
|
@@ -32361,7 +32374,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32361
32374
|
"icon-background": "",
|
|
32362
32375
|
message: u(r)("plugins.list.empty_state_v2.description"),
|
|
32363
32376
|
title: u(r)("plugins.list.empty_state_v2.title")
|
|
32364
|
-
},
|
|
32377
|
+
}, _t({
|
|
32365
32378
|
icon: N(() => [
|
|
32366
32379
|
C(u(Eg), { decorative: "" })
|
|
32367
32380
|
]),
|
|
@@ -32428,16 +32441,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32428
32441
|
]);
|
|
32429
32442
|
};
|
|
32430
32443
|
}
|
|
32431
|
-
}),
|
|
32444
|
+
}), tj = /* @__PURE__ */ ze(xL, [["__scopeId", "data-v-bb7d2cdb"]]), SL = { class: "plugin-select-card-wrapper" }, AL = ["data-testid"], IL = { class: "plugin-card-header" }, TL = { class: "plugin-card-title" }, $L = {
|
|
32432
32445
|
key: 0,
|
|
32433
32446
|
class: "plugin-card-actions"
|
|
32434
|
-
},
|
|
32447
|
+
}, OL = ["data-testid", "title"], PL = {
|
|
32435
32448
|
key: 0,
|
|
32436
32449
|
class: "plugin-card-text"
|
|
32437
|
-
},
|
|
32450
|
+
}, NL = {
|
|
32438
32451
|
key: 0,
|
|
32439
32452
|
class: "custom-plugin-badges"
|
|
32440
|
-
},
|
|
32453
|
+
}, RL = ["title"], ML = /* @__PURE__ */ Pe({
|
|
32441
32454
|
__name: "PluginSelectCard",
|
|
32442
32455
|
props: {
|
|
32443
32456
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -32504,7 +32517,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32504
32517
|
};
|
|
32505
32518
|
return (q, A) => {
|
|
32506
32519
|
const I = xe("KButton"), P = xe("KDropdownItem"), R = xe("KDropdownMenu"), j = xe("KBadge"), Q = xe("KTooltip");
|
|
32507
|
-
return S(), le("div",
|
|
32520
|
+
return S(), le("div", SL, [
|
|
32508
32521
|
C(Q, {
|
|
32509
32522
|
text: e.plugin.disabledMessage
|
|
32510
32523
|
}, {
|
|
@@ -32515,13 +32528,13 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32515
32528
|
role: "button",
|
|
32516
32529
|
onClick: A[1] || (A[1] = (G) => s.value || k.value ? void 0 : b())
|
|
32517
32530
|
}, [
|
|
32518
|
-
ee("div",
|
|
32519
|
-
ee("div",
|
|
32531
|
+
ee("div", IL, [
|
|
32532
|
+
ee("div", TL, [
|
|
32520
32533
|
ee("span", {
|
|
32521
32534
|
class: yt({ "non-custom-title": !k.value })
|
|
32522
32535
|
}, ue(e.plugin.name), 3)
|
|
32523
32536
|
]),
|
|
32524
|
-
_.value ? (S(), le("div",
|
|
32537
|
+
_.value ? (S(), le("div", $L, [
|
|
32525
32538
|
C(R, {
|
|
32526
32539
|
"data-testid": "custom-plugin-actions",
|
|
32527
32540
|
"kpop-attributes": { placement: "bottom-end" },
|
|
@@ -32583,8 +32596,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32583
32596
|
name: a.value,
|
|
32584
32597
|
size: 55
|
|
32585
32598
|
}, null, 8, ["alt", "name"]),
|
|
32586
|
-
e.plugin.description || l.value.length ? (S(), le("div",
|
|
32587
|
-
l.value.length ? (S(), le("div",
|
|
32599
|
+
e.plugin.description || l.value.length ? (S(), le("div", PL, [
|
|
32600
|
+
l.value.length ? (S(), le("div", NL, [
|
|
32588
32601
|
(S(!0), le(Ge, null, et(l.value, (G) => (S(), Z(j, {
|
|
32589
32602
|
key: G,
|
|
32590
32603
|
appearance: "info"
|
|
@@ -32599,21 +32612,21 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32599
32612
|
key: 1,
|
|
32600
32613
|
class: "plugin-card-text",
|
|
32601
32614
|
title: e.plugin.description
|
|
32602
|
-
}, ue(e.plugin.description), 9,
|
|
32615
|
+
}, ue(e.plugin.description), 9, RL)) : ye("", !0)
|
|
32603
32616
|
])) : ye("", !0)
|
|
32604
|
-
], 10,
|
|
32617
|
+
], 10, OL),
|
|
32605
32618
|
ee("div", {
|
|
32606
32619
|
class: "plugin-card-footer",
|
|
32607
32620
|
onClick: O
|
|
32608
32621
|
}, ue(E.value ? u(r)("actions.create_custom") : e.plugin.exists ? u(r)("actions.enabled") : u(r)("actions.enable")), 1)
|
|
32609
|
-
], 10,
|
|
32622
|
+
], 10, AL)
|
|
32610
32623
|
]),
|
|
32611
32624
|
_: 1
|
|
32612
32625
|
}, 8, ["text"])
|
|
32613
32626
|
]);
|
|
32614
32627
|
};
|
|
32615
32628
|
}
|
|
32616
|
-
}), Hm = /* @__PURE__ */ ze(
|
|
32629
|
+
}), Hm = /* @__PURE__ */ ze(ML, [["__scopeId", "data-v-eb0977c9"]]), LL = /* @__PURE__ */ Pe({
|
|
32617
32630
|
__name: "DeleteCustomPluginSchemaModal",
|
|
32618
32631
|
props: {
|
|
32619
32632
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -32708,7 +32721,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32708
32721
|
}, 8, ["action-button-disabled", "title"])) : ye("", !0);
|
|
32709
32722
|
};
|
|
32710
32723
|
}
|
|
32711
|
-
}), rs = /* @__PURE__ */ ze(
|
|
32724
|
+
}), rs = /* @__PURE__ */ ze(LL, [["__scopeId", "data-v-9514182c"]]), FL = { class: "custom-plugins-grid" }, KL = { class: "empty-state-title" }, jL = { class: "empty-state-description" }, Ts = 310, DL = /* @__PURE__ */ Pe({
|
|
32712
32725
|
__name: "PluginCustomGrid",
|
|
32713
32726
|
props: {
|
|
32714
32727
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -32805,7 +32818,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32805
32818
|
window == null || window.removeEventListener("resize", x);
|
|
32806
32819
|
}), (k, w) => {
|
|
32807
32820
|
const T = xe("KEmptyState"), O = xe("KCollapse");
|
|
32808
|
-
return S(), le("div",
|
|
32821
|
+
return S(), le("div", FL, [
|
|
32809
32822
|
d.value.length ? (S(), Z(O, {
|
|
32810
32823
|
key: 1,
|
|
32811
32824
|
modelValue: l.value,
|
|
@@ -32814,7 +32827,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32814
32827
|
"data-testid": `${u(nt).CUSTOM_PLUGINS}-collapse`,
|
|
32815
32828
|
title: u(nt).CUSTOM_PLUGINS,
|
|
32816
32829
|
"trigger-label": l.value ? u(o)("plugins.select.view_more") : u(o)("plugins.select.view_less")
|
|
32817
|
-
},
|
|
32830
|
+
}, _t({
|
|
32818
32831
|
"visible-content": N(() => [
|
|
32819
32832
|
ee("div", {
|
|
32820
32833
|
ref_key: "pluginCardContainerRef",
|
|
@@ -32855,10 +32868,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32855
32868
|
"icon-variant": "kong"
|
|
32856
32869
|
}, {
|
|
32857
32870
|
title: N(() => [
|
|
32858
|
-
ee("span",
|
|
32871
|
+
ee("span", KL, ue(u(o)("plugins.select.tabs.custom.empty_title")), 1)
|
|
32859
32872
|
]),
|
|
32860
32873
|
default: N(() => [
|
|
32861
|
-
ee("span",
|
|
32874
|
+
ee("span", jL, ue(u(o)("plugins.select.tabs.custom.empty_description")), 1)
|
|
32862
32875
|
]),
|
|
32863
32876
|
_: 1
|
|
32864
32877
|
})),
|
|
@@ -32872,7 +32885,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32872
32885
|
]);
|
|
32873
32886
|
};
|
|
32874
32887
|
}
|
|
32875
|
-
}),
|
|
32888
|
+
}), qL = /* @__PURE__ */ ze(DL, [["__scopeId", "data-v-909f4d5f"]]), $s = 310, BL = /* @__PURE__ */ Pe({
|
|
32876
32889
|
__name: "PluginSelectGroup",
|
|
32877
32890
|
props: /* @__PURE__ */ vi({
|
|
32878
32891
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -32957,7 +32970,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
32957
32970
|
"data-testid": `${i.name}-collapse`,
|
|
32958
32971
|
title: i.name,
|
|
32959
32972
|
"trigger-label": n.value ? u(r)("plugins.select.view_more") : u(r)("plugins.select.view_less")
|
|
32960
|
-
},
|
|
32973
|
+
}, _t({
|
|
32961
32974
|
"visible-content": N(() => [
|
|
32962
32975
|
ee("div", {
|
|
32963
32976
|
ref_key: "pluginCardContainerRef",
|
|
@@ -33002,7 +33015,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33002
33015
|
], 64);
|
|
33003
33016
|
};
|
|
33004
33017
|
}
|
|
33005
|
-
}), ed = /* @__PURE__ */ ze(
|
|
33018
|
+
}), ed = /* @__PURE__ */ ze(BL, [["__scopeId", "data-v-7f683497"]]), UL = { class: "plugin-select-grid" }, VL = { class: "empty-state-title" }, zL = { class: "empty-state-description" }, td = /* @__PURE__ */ Pe({
|
|
33006
33019
|
__name: "PluginSelectGrid",
|
|
33007
33020
|
props: {
|
|
33008
33021
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -33074,7 +33087,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33074
33087
|
});
|
|
33075
33088
|
return (d, f) => {
|
|
33076
33089
|
const c = xe("KEmptyState");
|
|
33077
|
-
return S(), le("div",
|
|
33090
|
+
return S(), le("div", UL, [
|
|
33078
33091
|
Object.keys(s.value).length ? ye("", !0) : (S(), Z(c, {
|
|
33079
33092
|
key: 0,
|
|
33080
33093
|
"action-button-visible": !1,
|
|
@@ -33083,10 +33096,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33083
33096
|
"icon-variant": "kong"
|
|
33084
33097
|
}, {
|
|
33085
33098
|
title: N(() => [
|
|
33086
|
-
ee("span",
|
|
33099
|
+
ee("span", VL, ue(u(o)("plugins.select.tabs.kong.empty_title")), 1)
|
|
33087
33100
|
]),
|
|
33088
33101
|
default: N(() => [
|
|
33089
|
-
ee("span",
|
|
33102
|
+
ee("span", zL, ue(u(o)("plugins.select.tabs.kong.empty_description")), 1)
|
|
33090
33103
|
]),
|
|
33091
33104
|
_: 1
|
|
33092
33105
|
})),
|
|
@@ -33126,11 +33139,11 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33126
33139
|
]);
|
|
33127
33140
|
};
|
|
33128
33141
|
}
|
|
33129
|
-
}),
|
|
33142
|
+
}), GL = { class: "kong-ui-entities-plugin-select-form" }, HL = { class: "plugins-filter-input-container" }, WL = { key: 0 }, YL = {
|
|
33130
33143
|
key: 3,
|
|
33131
33144
|
"aria-live": "polite",
|
|
33132
33145
|
class: "plugins-results-container"
|
|
33133
|
-
},
|
|
33146
|
+
}, JL = { "data-testid": "kong-tab" }, XL = { class: "tab-description" }, ZL = { "data-testid": "custom-tab" }, QL = { class: "tab-description" }, eF = { key: 1 }, tF = /* @__PURE__ */ Pe({
|
|
33134
33147
|
__name: "PluginSelect",
|
|
33135
33148
|
props: {
|
|
33136
33149
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -33432,8 +33445,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33432
33445
|
(ie = k.value) == null || ie.abort();
|
|
33433
33446
|
}), (ie, Y) => {
|
|
33434
33447
|
const de = xe("KInput"), fe = xe("KSkeletonBox"), ge = xe("KSkeleton"), Te = xe("KEmptyState"), Ae = xe("KTooltip"), g = xe("KAlert"), te = xe("KTabs");
|
|
33435
|
-
return S(), le("div",
|
|
33436
|
-
ee("div",
|
|
33448
|
+
return S(), le("div", GL, [
|
|
33449
|
+
ee("div", HL, [
|
|
33437
33450
|
C(de, {
|
|
33438
33451
|
ref: "filter-input",
|
|
33439
33452
|
modelValue: c.value,
|
|
@@ -33445,7 +33458,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33445
33458
|
type: "search"
|
|
33446
33459
|
}, null, 8, ["modelValue", "placeholder"])
|
|
33447
33460
|
]),
|
|
33448
|
-
p.value ? (S(), le("section",
|
|
33461
|
+
p.value ? (S(), le("section", WL, [
|
|
33449
33462
|
C(fe, {
|
|
33450
33463
|
class: "plugins-skeleton-title",
|
|
33451
33464
|
width: "10"
|
|
@@ -33475,7 +33488,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33475
33488
|
ee("h5", null, ue(u(a)("search.no_results", { filter: c.value })), 1)
|
|
33476
33489
|
]),
|
|
33477
33490
|
_: 1
|
|
33478
|
-
})) : (S(), le("section",
|
|
33491
|
+
})) : (S(), le("section", YL, [
|
|
33479
33492
|
z.value.length ? (S(), Z(te, {
|
|
33480
33493
|
key: 0,
|
|
33481
33494
|
modelValue: H.value,
|
|
@@ -33483,10 +33496,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33483
33496
|
"data-testid": "plugins-tabs",
|
|
33484
33497
|
tabs: z.value,
|
|
33485
33498
|
onChange: we
|
|
33486
|
-
},
|
|
33499
|
+
}, _t({
|
|
33487
33500
|
kong: N(() => [
|
|
33488
|
-
ee("div",
|
|
33489
|
-
ee("p",
|
|
33501
|
+
ee("div", JL, [
|
|
33502
|
+
ee("p", XL, ue(u(a)("plugins.select.tabs.kong.description")), 1),
|
|
33490
33503
|
C(td, {
|
|
33491
33504
|
"can-delete-cloned-plugin": rt.value,
|
|
33492
33505
|
"can-delete-custom-plugin": De.value,
|
|
@@ -33504,16 +33517,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33504
33517
|
])
|
|
33505
33518
|
]),
|
|
33506
33519
|
custom: N(() => [
|
|
33507
|
-
ee("div",
|
|
33520
|
+
ee("div", ZL, [
|
|
33508
33521
|
Qe(ie.$slots, "before-custom-tab-content", {}, void 0, !0),
|
|
33509
|
-
ee("p",
|
|
33522
|
+
ee("p", QL, ue(u(a)("plugins.select.tabs.custom.description")), 1),
|
|
33510
33523
|
y.value ? (S(), Z(g, {
|
|
33511
33524
|
key: 0,
|
|
33512
33525
|
appearance: "warning",
|
|
33513
33526
|
class: "custom-plugins-warning",
|
|
33514
33527
|
message: y.value
|
|
33515
33528
|
}, null, 8, ["message"])) : ye("", !0),
|
|
33516
|
-
C(
|
|
33529
|
+
C(qL, {
|
|
33517
33530
|
"can-create-custom-plugin": je.value,
|
|
33518
33531
|
"can-delete-cloned-plugin": rt.value,
|
|
33519
33532
|
"can-delete-custom-plugin": De.value,
|
|
@@ -33544,7 +33557,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33544
33557
|
]),
|
|
33545
33558
|
key: "0"
|
|
33546
33559
|
} : void 0
|
|
33547
|
-
]), 1032, ["modelValue", "tabs"])) : (S(), le("div",
|
|
33560
|
+
]), 1032, ["modelValue", "tabs"])) : (S(), le("div", eF, [
|
|
33548
33561
|
y.value ? (S(), Z(g, {
|
|
33549
33562
|
key: 0,
|
|
33550
33563
|
appearance: "warning",
|
|
@@ -33570,16 +33583,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33570
33583
|
]);
|
|
33571
33584
|
};
|
|
33572
33585
|
}
|
|
33573
|
-
}),
|
|
33586
|
+
}), nj = /* @__PURE__ */ ze(tF, [["__scopeId", "data-v-40b228cd"]]), nF = {
|
|
33574
33587
|
class: "plugin-select-card-wrapper",
|
|
33575
33588
|
"data-testid": "plugin-catalog-card-wrapper"
|
|
33576
|
-
},
|
|
33589
|
+
}, iF = { class: "plugin-card-header" }, oF = { class: "plugin-card-title" }, aF = {
|
|
33577
33590
|
key: 0,
|
|
33578
33591
|
class: "plugin-card-actions"
|
|
33579
|
-
},
|
|
33592
|
+
}, rF = ["data-testid", "title"], sF = { key: 0 }, lF = ["title"], uF = { class: "plugin-card-footer" }, cF = { class: "plugin-card-footer-extra" }, dF = {
|
|
33580
33593
|
key: 0,
|
|
33581
33594
|
class: "custom-plugin-badges"
|
|
33582
|
-
},
|
|
33595
|
+
}, pF = /* @__PURE__ */ Pe({
|
|
33583
33596
|
__name: "PluginCatalogCard",
|
|
33584
33597
|
props: {
|
|
33585
33598
|
config: {},
|
|
@@ -33598,7 +33611,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33598
33611
|
};
|
|
33599
33612
|
return (w, T) => {
|
|
33600
33613
|
const O = xe("KButton"), q = xe("KDropdownItem"), A = xe("KDropdownMenu"), I = xe("KBadge"), P = xe("RouterLink"), R = xe("KTooltip");
|
|
33601
|
-
return S(), le("div",
|
|
33614
|
+
return S(), le("div", nF, [
|
|
33602
33615
|
C(R, {
|
|
33603
33616
|
text: e.plugin.disabledMessage
|
|
33604
33617
|
}, {
|
|
@@ -33609,8 +33622,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33609
33622
|
to: v.value
|
|
33610
33623
|
}, {
|
|
33611
33624
|
default: N(() => [
|
|
33612
|
-
ee("div",
|
|
33613
|
-
ee("div",
|
|
33625
|
+
ee("div", iF, [
|
|
33626
|
+
ee("div", oF, [
|
|
33614
33627
|
C(u(qi), {
|
|
33615
33628
|
alt: e.plugin.name,
|
|
33616
33629
|
class: "plugin-card-icon",
|
|
@@ -33621,7 +33634,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33621
33634
|
class: yt({ "non-custom-title": !x.value })
|
|
33622
33635
|
}, ue(e.plugin.name), 3)
|
|
33623
33636
|
]),
|
|
33624
|
-
_.value ? (S(), le("div",
|
|
33637
|
+
_.value ? (S(), le("div", aF, [
|
|
33625
33638
|
C(A, {
|
|
33626
33639
|
"data-testid": "custom-plugin-actions",
|
|
33627
33640
|
"kpop-attributes": { placement: "bottom-end" },
|
|
@@ -33678,16 +33691,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33678
33691
|
"data-testid": `${e.plugin.id}-card-body`,
|
|
33679
33692
|
title: e.plugin.available ? e.plugin.name : u(r)("plugins.select.unavailable_tooltip")
|
|
33680
33693
|
}, [
|
|
33681
|
-
e.plugin.description ? (S(), le("div",
|
|
33694
|
+
e.plugin.description ? (S(), le("div", sF, [
|
|
33682
33695
|
ee("div", {
|
|
33683
33696
|
title: e.plugin.description
|
|
33684
|
-
}, ue(e.plugin.description), 9,
|
|
33697
|
+
}, ue(e.plugin.description), 9, lF)
|
|
33685
33698
|
])) : ye("", !0)
|
|
33686
|
-
], 8,
|
|
33687
|
-
ee("div",
|
|
33699
|
+
], 8, rF),
|
|
33700
|
+
ee("div", uF, [
|
|
33688
33701
|
ee("div", null, ue(b.value ? u(r)("actions.create_custom") : u(r)("actions.configure")), 1),
|
|
33689
|
-
ee("div",
|
|
33690
|
-
l.value.length ? (S(), le("div",
|
|
33702
|
+
ee("div", cF, [
|
|
33703
|
+
l.value.length ? (S(), le("div", dF, [
|
|
33691
33704
|
(S(!0), le(Ge, null, et(l.value, (j) => (S(), Z(I, {
|
|
33692
33705
|
key: j,
|
|
33693
33706
|
appearance: "info"
|
|
@@ -33710,7 +33723,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33710
33723
|
]);
|
|
33711
33724
|
};
|
|
33712
33725
|
}
|
|
33713
|
-
}),
|
|
33726
|
+
}), fF = /* @__PURE__ */ ze(pF, [["__scopeId", "data-v-cabcdb98"]]), mF = ["data-testid"], gF = { class: "group-icon-wrapper" }, hF = { class: "group-title-text" }, yF = ["data-testid"], vF = ["data-testid"], _F = /* @__PURE__ */ Pe({
|
|
33714
33727
|
__name: "PluginCatalogGroup",
|
|
33715
33728
|
props: {
|
|
33716
33729
|
config: {},
|
|
@@ -33778,18 +33791,18 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33778
33791
|
class: "group-title",
|
|
33779
33792
|
"data-testid": `plugin-group-${e.name}-title`
|
|
33780
33793
|
}, [
|
|
33781
|
-
ee("div",
|
|
33794
|
+
ee("div", gF, [
|
|
33782
33795
|
(S(), Z(Dt(i.value), {
|
|
33783
33796
|
color: `var(--kui-color-text-decorative-purple, ${u(Sd)})`
|
|
33784
33797
|
}, null, 8, ["color"]))
|
|
33785
33798
|
]),
|
|
33786
|
-
ee("span",
|
|
33787
|
-
], 8,
|
|
33799
|
+
ee("span", hF, ue(e.name), 1)
|
|
33800
|
+
], 8, mF)) : ye("", !0),
|
|
33788
33801
|
ee("div", {
|
|
33789
33802
|
class: "plugin-card-container",
|
|
33790
33803
|
"data-testid": `plugin-group-${e.name}`
|
|
33791
33804
|
}, [
|
|
33792
|
-
(S(!0), le(Ge, null, et(l.value, (_) => (S(), Z(
|
|
33805
|
+
(S(!0), le(Ge, null, et(l.value, (_) => (S(), Z(fF, {
|
|
33793
33806
|
key: `plugin-card-${_.id}`,
|
|
33794
33807
|
"can-delete-cloned-plugin": e.canDeleteClonedPlugin,
|
|
33795
33808
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
@@ -33799,14 +33812,14 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33799
33812
|
plugin: _,
|
|
33800
33813
|
onCustomPluginDelete: (v) => p(_),
|
|
33801
33814
|
onPluginClicked: (v) => o("plugin-clicked", _)
|
|
33802
|
-
},
|
|
33815
|
+
}, _t({ _: 2 }, [
|
|
33803
33816
|
_.gatewayVersion && u(PE)(u(_h)[_.gatewayVersion]) ? {
|
|
33804
33817
|
name: "footer-extra",
|
|
33805
33818
|
fn: N(() => [
|
|
33806
33819
|
ee("span", {
|
|
33807
33820
|
class: "plugin-card-new-badge",
|
|
33808
33821
|
"data-testid": `plugin-card-${_.id}-new-badge`
|
|
33809
|
-
}, ue(u(r)("labels.new")), 9,
|
|
33822
|
+
}, ue(u(r)("labels.new")), 9, vF)
|
|
33810
33823
|
]),
|
|
33811
33824
|
key: "0"
|
|
33812
33825
|
} : void 0
|
|
@@ -33816,7 +33829,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33816
33829
|
class: "show-all-plugin-card",
|
|
33817
33830
|
onClick: d
|
|
33818
33831
|
}, ue(u(r)("plugins.select.show_all")), 1)) : ye("", !0)
|
|
33819
|
-
], 8,
|
|
33832
|
+
], 8, yF),
|
|
33820
33833
|
f.value && c.value ? (S(), Z(rs, {
|
|
33821
33834
|
key: 1,
|
|
33822
33835
|
config: e.config,
|
|
@@ -33826,7 +33839,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33826
33839
|
}, null, 8, ["config", "plugin"])) : ye("", !0)
|
|
33827
33840
|
], 64));
|
|
33828
33841
|
}
|
|
33829
|
-
}), nd = /* @__PURE__ */ ze(
|
|
33842
|
+
}), nd = /* @__PURE__ */ ze(_F, [["__scopeId", "data-v-f9a9a47c"]]), bF = { class: "plugin-select-grid" }, wF = { class: "empty-state-title" }, kF = { class: "empty-state-description" }, CF = { key: 1 }, EF = /* @__PURE__ */ Pe({
|
|
33830
33843
|
__name: "PluginCatalogGrid",
|
|
33831
33844
|
props: {
|
|
33832
33845
|
config: {},
|
|
@@ -33844,7 +33857,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33844
33857
|
return (a, l) => {
|
|
33845
33858
|
var d;
|
|
33846
33859
|
const s = xe("KEmptyState");
|
|
33847
|
-
return S(), le("div",
|
|
33860
|
+
return S(), le("div", bF, [
|
|
33848
33861
|
Object.keys(e.pluginList || []).length ? ye("", !0) : (S(), Z(s, {
|
|
33849
33862
|
key: 0,
|
|
33850
33863
|
"action-button-visible": !1,
|
|
@@ -33853,10 +33866,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33853
33866
|
"icon-variant": "kong"
|
|
33854
33867
|
}, {
|
|
33855
33868
|
title: N(() => [
|
|
33856
|
-
ee("span",
|
|
33869
|
+
ee("span", wF, ue(u(o)("plugins.select.tabs.kong.empty_title")), 1)
|
|
33857
33870
|
]),
|
|
33858
33871
|
default: N(() => [
|
|
33859
|
-
ee("span",
|
|
33872
|
+
ee("span", kF, ue(u(o)("plugins.select.tabs.kong.empty_description")), 1)
|
|
33860
33873
|
]),
|
|
33861
33874
|
_: 1
|
|
33862
33875
|
})),
|
|
@@ -33878,7 +33891,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33878
33891
|
])) : ye("", !0)
|
|
33879
33892
|
], 64);
|
|
33880
33893
|
}), 256)),
|
|
33881
|
-
(d = e.pluginList) != null && d["Query Result"] ? (S(), le("div",
|
|
33894
|
+
(d = e.pluginList) != null && d["Query Result"] ? (S(), le("div", CF, [
|
|
33882
33895
|
C(nd, {
|
|
33883
33896
|
"can-delete-cloned-plugin": e.canDeleteClonedPlugin,
|
|
33884
33897
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
@@ -33894,17 +33907,17 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33894
33907
|
]);
|
|
33895
33908
|
};
|
|
33896
33909
|
}
|
|
33897
|
-
}),
|
|
33910
|
+
}), xF = /* @__PURE__ */ ze(EF, [["__scopeId", "data-v-e3bf3819"]]), SF = {
|
|
33898
33911
|
class: "plugin-name-cell",
|
|
33899
33912
|
"data-testid": "plugin-catalog-list-view-name"
|
|
33900
|
-
},
|
|
33913
|
+
}, AF = ["title"], IF = ["title"], TF = {
|
|
33901
33914
|
class: "plugin-action-cell",
|
|
33902
33915
|
"data-testid": "plugin-catalog-list-view-action"
|
|
33903
|
-
},
|
|
33916
|
+
}, $F = {
|
|
33904
33917
|
key: 0,
|
|
33905
33918
|
class: "plugin-more-action-cell",
|
|
33906
33919
|
"data-testid": "plugin-catalog-list-view-more-actions"
|
|
33907
|
-
},
|
|
33920
|
+
}, OF = /* @__PURE__ */ Pe({
|
|
33908
33921
|
__name: "PluginCatalogListView",
|
|
33909
33922
|
props: {
|
|
33910
33923
|
config: {},
|
|
@@ -33992,7 +34005,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
33992
34005
|
onSort: q
|
|
33993
34006
|
}, {
|
|
33994
34007
|
name: N(({ row: F }) => [
|
|
33995
|
-
ee("span",
|
|
34008
|
+
ee("span", SF, [
|
|
33996
34009
|
C(u(qi), {
|
|
33997
34010
|
"data-testid": `plugin-catalog-list-view-${F.plugin.id}-icon`,
|
|
33998
34011
|
name: y(F.plugin),
|
|
@@ -34002,7 +34015,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34002
34015
|
class: "plugin-name-text",
|
|
34003
34016
|
"data-testid": "plugin-catalog-list-view-name-text",
|
|
34004
34017
|
title: F.name
|
|
34005
|
-
}, ue(F.name), 9,
|
|
34018
|
+
}, ue(F.name), 9, AF),
|
|
34006
34019
|
F.badge ? (S(), Z(P, {
|
|
34007
34020
|
key: 0,
|
|
34008
34021
|
appearance: "info",
|
|
@@ -34021,10 +34034,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34021
34034
|
class: "plugin-description-cell",
|
|
34022
34035
|
"data-testid": "plugin-catalog-list-view-description",
|
|
34023
34036
|
title: F.description
|
|
34024
|
-
}, ue(F.description), 9,
|
|
34037
|
+
}, ue(F.description), 9, IF)
|
|
34025
34038
|
]),
|
|
34026
34039
|
action: N(({ row: F }) => [
|
|
34027
|
-
ee("div",
|
|
34040
|
+
ee("div", TF, [
|
|
34028
34041
|
C(R, {
|
|
34029
34042
|
appearance: "tertiary",
|
|
34030
34043
|
"data-testid": "plugin-catalog-list-view-configure-btn",
|
|
@@ -34039,7 +34052,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34039
34052
|
])
|
|
34040
34053
|
]),
|
|
34041
34054
|
"more-actions": N(({ row: F }) => [
|
|
34042
|
-
x(F.plugin) ? (S(), le("div",
|
|
34055
|
+
x(F.plugin) ? (S(), le("div", $F, [
|
|
34043
34056
|
C(Q, {
|
|
34044
34057
|
appearance: "tertiary",
|
|
34045
34058
|
class: "actions-trigger",
|
|
@@ -34099,17 +34112,17 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34099
34112
|
], 64);
|
|
34100
34113
|
};
|
|
34101
34114
|
}
|
|
34102
|
-
}),
|
|
34115
|
+
}), PF = /* @__PURE__ */ ze(OF, [["__scopeId", "data-v-986d34db"]]), NF = {
|
|
34103
34116
|
class: "plugin-catalog",
|
|
34104
34117
|
"data-testid": "plugin-catalog"
|
|
34105
|
-
},
|
|
34118
|
+
}, RF = {
|
|
34106
34119
|
class: "plugin-filter",
|
|
34107
34120
|
"data-testid": "plugin-filter"
|
|
34108
|
-
},
|
|
34121
|
+
}, MF = { class: "plugin-filter-title" }, LF = { class: "featured-title" }, FF = { class: "plugin-featured-filter" }, KF = ["data-testid"], jF = { class: "group-title" }, DF = { class: "plugin-type-filter" }, qF = ["data-testid"], BF = { class: "plugins-container" }, UF = { class: "plugins-filter-input-container" }, VF = { class: "icon-container" }, zF = { key: 0 }, GF = {
|
|
34109
34122
|
key: 3,
|
|
34110
34123
|
"aria-live": "polite",
|
|
34111
34124
|
class: "plugins-results-container"
|
|
34112
|
-
},
|
|
34125
|
+
}, HF = /* @__PURE__ */ Pe({
|
|
34113
34126
|
__name: "PluginCatalog",
|
|
34114
34127
|
props: {
|
|
34115
34128
|
config: {},
|
|
@@ -34331,9 +34344,9 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34331
34344
|
(se = q.value) == null || se.abort();
|
|
34332
34345
|
}), (se, ie) => {
|
|
34333
34346
|
const Y = xe("KButton"), de = xe("KCheckbox"), fe = xe("KBadge"), ge = xe("KCollapse"), Te = xe("KInput"), Ae = xe("KSkeletonBox"), g = xe("KSkeleton"), te = xe("KEmptyState"), ce = xe("KAlert");
|
|
34334
|
-
return S(), le("div",
|
|
34335
|
-
ee("div",
|
|
34336
|
-
ee("div",
|
|
34347
|
+
return S(), le("div", NF, [
|
|
34348
|
+
ee("div", RF, [
|
|
34349
|
+
ee("div", MF, [
|
|
34337
34350
|
Le(ue(u(i)("plugins.select.filter.title")) + " ", 1),
|
|
34338
34351
|
C(Y, {
|
|
34339
34352
|
appearance: "tertiary",
|
|
@@ -34353,10 +34366,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34353
34366
|
"onUpdate:modelValue": ie[0] || (ie[0] = (ve) => p.value = ve)
|
|
34354
34367
|
}, {
|
|
34355
34368
|
title: N(() => [
|
|
34356
|
-
ee("div",
|
|
34369
|
+
ee("div", LF, ue(u(i)("plugins.select.filter.featured")), 1)
|
|
34357
34370
|
]),
|
|
34358
34371
|
default: N(() => [
|
|
34359
|
-
ee("div",
|
|
34372
|
+
ee("div", FF, [
|
|
34360
34373
|
(S(!0), le(Ge, null, et(u(Xs), (ve) => (S(), le("div", {
|
|
34361
34374
|
key: ve,
|
|
34362
34375
|
class: "plugin-filter-item",
|
|
@@ -34376,7 +34389,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34376
34389
|
}),
|
|
34377
34390
|
_: 2
|
|
34378
34391
|
}, 1024)
|
|
34379
|
-
], 8,
|
|
34392
|
+
], 8, KF))), 128))
|
|
34380
34393
|
])
|
|
34381
34394
|
]),
|
|
34382
34395
|
_: 1
|
|
@@ -34386,10 +34399,10 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34386
34399
|
"onUpdate:modelValue": ie[1] || (ie[1] = (ve) => m.value = ve)
|
|
34387
34400
|
}, {
|
|
34388
34401
|
title: N(() => [
|
|
34389
|
-
ee("div",
|
|
34402
|
+
ee("div", jF, ue(u(i)("plugins.select.filter.type")), 1)
|
|
34390
34403
|
]),
|
|
34391
34404
|
default: N(() => [
|
|
34392
|
-
ee("div",
|
|
34405
|
+
ee("div", DF, [
|
|
34393
34406
|
(S(!0), le(Ge, null, et(u(Zs), (ve) => (S(), le("div", {
|
|
34394
34407
|
key: ve,
|
|
34395
34408
|
class: "plugin-filter-item",
|
|
@@ -34413,14 +34426,14 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34413
34426
|
}),
|
|
34414
34427
|
_: 2
|
|
34415
34428
|
}, 1032, ["data-testid"])
|
|
34416
|
-
], 8,
|
|
34429
|
+
], 8, qF))), 128))
|
|
34417
34430
|
])
|
|
34418
34431
|
]),
|
|
34419
34432
|
_: 1
|
|
34420
34433
|
}, 8, ["modelValue"])
|
|
34421
34434
|
]),
|
|
34422
|
-
ee("div",
|
|
34423
|
-
ee("div",
|
|
34435
|
+
ee("div", BF, [
|
|
34436
|
+
ee("div", UF, [
|
|
34424
34437
|
C(Te, {
|
|
34425
34438
|
ref: "filter-input",
|
|
34426
34439
|
modelValue: c.value,
|
|
@@ -34431,7 +34444,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34431
34444
|
placeholder: u(i)("search.placeholder.search_plugins"),
|
|
34432
34445
|
type: "search"
|
|
34433
34446
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
34434
|
-
ee("div",
|
|
34447
|
+
ee("div", VF, [
|
|
34435
34448
|
(S(), Z(Dt(I.value), {
|
|
34436
34449
|
class: "plugins-filter-icon",
|
|
34437
34450
|
color: `var(--kui-icon-color-primary, ${u(sy)})`,
|
|
@@ -34439,7 +34452,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34439
34452
|
}, null, 8, ["color"]))
|
|
34440
34453
|
])
|
|
34441
34454
|
]),
|
|
34442
|
-
y.value ? (S(), le("section",
|
|
34455
|
+
y.value ? (S(), le("section", zF, [
|
|
34443
34456
|
C(Ae, {
|
|
34444
34457
|
class: "plugins-skeleton-title",
|
|
34445
34458
|
width: "10"
|
|
@@ -34469,14 +34482,14 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34469
34482
|
ee("h5", null, ue(u(i)("search.no_results", { filter: c.value })), 1)
|
|
34470
34483
|
]),
|
|
34471
34484
|
_: 1
|
|
34472
|
-
})) : (S(), le("section",
|
|
34485
|
+
})) : (S(), le("section", GF, [
|
|
34473
34486
|
b.value ? (S(), Z(ce, {
|
|
34474
34487
|
key: 0,
|
|
34475
34488
|
appearance: "warning",
|
|
34476
34489
|
class: "custom-plugins-warning",
|
|
34477
34490
|
message: b.value
|
|
34478
34491
|
}, null, 8, ["message"])) : ye("", !0),
|
|
34479
|
-
O.value ? (S(), Z(
|
|
34492
|
+
O.value ? (S(), Z(PF, {
|
|
34480
34493
|
key: 1,
|
|
34481
34494
|
"can-delete-cloned-plugin": Ue.value,
|
|
34482
34495
|
"can-delete-custom-plugin": pe.value,
|
|
@@ -34485,7 +34498,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34485
34498
|
config: e.config,
|
|
34486
34499
|
"plugin-list": $.value,
|
|
34487
34500
|
"onDelete:success": Be
|
|
34488
|
-
}, null, 8, ["can-delete-cloned-plugin", "can-delete-custom-plugin", "can-edit-cloned-plugin", "can-edit-custom-plugin", "config", "plugin-list"])) : (S(), Z(
|
|
34501
|
+
}, null, 8, ["can-delete-cloned-plugin", "can-delete-custom-plugin", "can-edit-cloned-plugin", "can-edit-custom-plugin", "config", "plugin-list"])) : (S(), Z(xF, {
|
|
34489
34502
|
key: 2,
|
|
34490
34503
|
"can-delete-cloned-plugin": Ue.value,
|
|
34491
34504
|
"can-delete-custom-plugin": pe.value,
|
|
@@ -34501,16 +34514,16 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34501
34514
|
]);
|
|
34502
34515
|
};
|
|
34503
34516
|
}
|
|
34504
|
-
}),
|
|
34517
|
+
}), ij = /* @__PURE__ */ ze(HF, [["__scopeId", "data-v-679e985d"]]), WF = {
|
|
34505
34518
|
key: 1,
|
|
34506
34519
|
class: "datakit-config-card-canvas"
|
|
34507
|
-
},
|
|
34520
|
+
}, YF = {
|
|
34508
34521
|
class: "config-card-details-label",
|
|
34509
34522
|
"data-testid": "datakit-configuration-label"
|
|
34510
|
-
},
|
|
34523
|
+
}, JF = {
|
|
34511
34524
|
class: "config-card-details-value datakit-canvas-container",
|
|
34512
34525
|
"data-testid": "datakit-configuration-canvas"
|
|
34513
|
-
},
|
|
34526
|
+
}, XF = { class: "canvas-wrapper" }, ZF = /* @__PURE__ */ Pe({
|
|
34514
34527
|
__name: "DatakitConfigCardCanvas",
|
|
34515
34528
|
props: {
|
|
34516
34529
|
pluginData: {},
|
|
@@ -34523,8 +34536,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34523
34536
|
});
|
|
34524
34537
|
return Up(e.pluginData), (n, i) => {
|
|
34525
34538
|
const o = xe("KLabel");
|
|
34526
|
-
return t.value ? (S(), le("div",
|
|
34527
|
-
ee("div",
|
|
34539
|
+
return t.value ? (S(), le("div", WF, [
|
|
34540
|
+
ee("div", YF, [
|
|
34528
34541
|
C(o, null, {
|
|
34529
34542
|
default: N(() => [...i[0] || (i[0] = [
|
|
34530
34543
|
ee("span", { class: "label-content" }, " Nodes ", -1)
|
|
@@ -34532,8 +34545,8 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34532
34545
|
_: 1
|
|
34533
34546
|
})
|
|
34534
34547
|
]),
|
|
34535
|
-
ee("div",
|
|
34536
|
-
ee("div",
|
|
34548
|
+
ee("div", JF, [
|
|
34549
|
+
ee("div", XF, [
|
|
34537
34550
|
C(fu, {
|
|
34538
34551
|
class: "datakit-flow-panels",
|
|
34539
34552
|
mode: "view",
|
|
@@ -34547,7 +34560,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34547
34560
|
}, null, 8, ["item"]));
|
|
34548
34561
|
};
|
|
34549
34562
|
}
|
|
34550
|
-
}),
|
|
34563
|
+
}), QF = /* @__PURE__ */ ze(ZF, [["__scopeId", "data-v-9a3ef1ac"]]), eK = { class: "kong-ui-entity-plugin-config-card" }, tK = { class: "name-cell-wrapper" }, nK = { class: "info-name" }, iK = { key: 0 }, oK = { key: 0 }, aK = { key: 0 }, rK = { key: 0 }, sK = { key: 0 }, Os = "config", lK = /* @__PURE__ */ Pe({
|
|
34551
34564
|
__name: "PluginConfigCard",
|
|
34552
34565
|
props: {
|
|
34553
34566
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -34687,7 +34700,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34687
34700
|
}
|
|
34688
34701
|
}), (k, w) => {
|
|
34689
34702
|
const T = xe("KSkeleton"), O = xe("KEmptyState"), q = xe("KCopy");
|
|
34690
|
-
return S(), le("div",
|
|
34703
|
+
return S(), le("div", eK, [
|
|
34691
34704
|
b.value ? (S(), Z(T, {
|
|
34692
34705
|
key: 0,
|
|
34693
34706
|
"data-testid": "plugin-config-card-loader",
|
|
@@ -34717,15 +34730,15 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34717
34730
|
"onFetch:error": w[0] || (w[0] = (A) => k.$emit("fetch:error", A)),
|
|
34718
34731
|
"onFetch:success": w[1] || (w[1] = (A) => k.$emit("fetch:success", A)),
|
|
34719
34732
|
onLoading: w[2] || (w[2] = (A) => k.$emit("loading", A))
|
|
34720
|
-
},
|
|
34733
|
+
}, _t({
|
|
34721
34734
|
name: N((A) => [
|
|
34722
|
-
ee("div",
|
|
34735
|
+
ee("div", tK, [
|
|
34723
34736
|
C(u(qi), {
|
|
34724
34737
|
class: "plugin-icon",
|
|
34725
34738
|
name: u(l)("rowValue", A),
|
|
34726
34739
|
size: 24
|
|
34727
34740
|
}, null, 8, ["name"]),
|
|
34728
|
-
ee("span",
|
|
34741
|
+
ee("span", nK, ue(u(r).getDisplayName(u(l)("rowValue", A))), 1)
|
|
34729
34742
|
])
|
|
34730
34743
|
]),
|
|
34731
34744
|
consumer: N((A) => [
|
|
@@ -34742,7 +34755,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34742
34755
|
"copy-tooltip": u(o)("copy.tooltip", { label: u(l)("row", A).label }),
|
|
34743
34756
|
"data-testid": "consumer-copy-uuid",
|
|
34744
34757
|
text: u(l)("rowValue", A).id
|
|
34745
|
-
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span",
|
|
34758
|
+
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span", iK, "–"))
|
|
34746
34759
|
]),
|
|
34747
34760
|
route: N((A) => [
|
|
34748
34761
|
u(l)("rowValue", A) ? e.showIdAsLink ? (S(), Z(u(Ho), {
|
|
@@ -34758,7 +34771,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34758
34771
|
"copy-tooltip": u(o)("copy.tooltip", { label: u(l)("row", A).label }),
|
|
34759
34772
|
"data-testid": "route-copy-uuid",
|
|
34760
34773
|
text: u(l)("rowValue", A).id
|
|
34761
|
-
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span",
|
|
34774
|
+
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span", oK, "–"))
|
|
34762
34775
|
]),
|
|
34763
34776
|
service: N((A) => [
|
|
34764
34777
|
u(l)("rowValue", A) ? e.showIdAsLink ? (S(), Z(u(Ho), {
|
|
@@ -34774,7 +34787,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34774
34787
|
"copy-tooltip": u(o)("copy.tooltip", { label: u(l)("row", A).label }),
|
|
34775
34788
|
"data-testid": "service-copy-uuid",
|
|
34776
34789
|
text: u(l)("rowValue", A).id
|
|
34777
|
-
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span",
|
|
34790
|
+
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span", aK, "–"))
|
|
34778
34791
|
]),
|
|
34779
34792
|
consumer_group: N((A) => [
|
|
34780
34793
|
u(l)("rowValue", A) ? e.showIdAsLink ? (S(), Z(u(Ho), {
|
|
@@ -34790,7 +34803,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34790
34803
|
"copy-tooltip": u(o)("copy.tooltip", { label: u(l)("row", A).label }),
|
|
34791
34804
|
"data-testid": "consumer-group-copy-uuid",
|
|
34792
34805
|
text: u(l)("rowValue", A).id
|
|
34793
|
-
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span",
|
|
34806
|
+
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span", rK, "–"))
|
|
34794
34807
|
]),
|
|
34795
34808
|
partials: N((A) => {
|
|
34796
34809
|
var I, P, R, j, Q, G, oe, F, X;
|
|
@@ -34811,7 +34824,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34811
34824
|
"copy-tooltip": u(o)("copy.tooltip", { label: u(l)("row", A).label }),
|
|
34812
34825
|
"data-testid": "partial-copy-uuid",
|
|
34813
34826
|
text: (X = u(l)("rowValue", A)) == null ? void 0 : X[0].id
|
|
34814
|
-
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span",
|
|
34827
|
+
}, null, 8, ["copy-tooltip", "text"])) : (S(), le("span", sK, "–"))
|
|
34815
34828
|
];
|
|
34816
34829
|
}),
|
|
34817
34830
|
_: 2
|
|
@@ -34819,7 +34832,7 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34819
34832
|
e.config.pluginType === "datakit" && e.config.app === "konnect" ? {
|
|
34820
34833
|
name: "config-card-item-nodes",
|
|
34821
34834
|
fn: N((A) => [
|
|
34822
|
-
C(
|
|
34835
|
+
C(QF, {
|
|
34823
34836
|
item: A.row,
|
|
34824
34837
|
"plugin-data": A.record
|
|
34825
34838
|
}, null, 8, ["item", "plugin-data"])
|
|
@@ -34830,12 +34843,12 @@ const aL = { class: "kong-ui-entities-plugin-form" }, rL = {
|
|
|
34830
34843
|
]);
|
|
34831
34844
|
};
|
|
34832
34845
|
}
|
|
34833
|
-
}),
|
|
34846
|
+
}), oj = /* @__PURE__ */ ze(lK, [["__scopeId", "data-v-03dcf2b4"]]), { usePluginMetaData: aj, useProvideExperimentalFreeForms: rj } = lt;
|
|
34834
34847
|
export {
|
|
34835
|
-
|
|
34848
|
+
vt as ArrayField,
|
|
34836
34849
|
kn as BooleanField,
|
|
34837
34850
|
hm as CommonForm,
|
|
34838
|
-
|
|
34851
|
+
QK as CustomPluginForm,
|
|
34839
34852
|
ui as DynamicLayout,
|
|
34840
34853
|
Pp as EXPERIMENTAL_FREE_FORM_PROVIDER,
|
|
34841
34854
|
lo as EntityTypeIdField,
|
|
@@ -34856,19 +34869,19 @@ export {
|
|
|
34856
34869
|
Hp as NodeBadge,
|
|
34857
34870
|
Yt as NumberField,
|
|
34858
34871
|
Gt as ObjectField,
|
|
34859
|
-
|
|
34860
|
-
|
|
34872
|
+
ij as PluginCatalog,
|
|
34873
|
+
oj as PluginConfigCard,
|
|
34861
34874
|
bI as PluginConfigurationForm,
|
|
34862
34875
|
Xs as PluginFeaturedArray,
|
|
34863
|
-
|
|
34864
|
-
|
|
34876
|
+
ej as PluginForm,
|
|
34877
|
+
pj as PluginGroup,
|
|
34865
34878
|
hc as PluginGroupArray,
|
|
34866
34879
|
Zs as PluginGroupArraySortedAlphabetically,
|
|
34867
|
-
|
|
34868
|
-
|
|
34880
|
+
uj as PluginIcon,
|
|
34881
|
+
tj as PluginList,
|
|
34869
34882
|
Js as PluginPartialType,
|
|
34870
|
-
|
|
34871
|
-
|
|
34883
|
+
fj as PluginScope,
|
|
34884
|
+
nj as PluginSelect,
|
|
34872
34885
|
Hm as PluginSelectCard,
|
|
34873
34886
|
td as PluginSelectGrid,
|
|
34874
34887
|
Na as StringArrayField,
|
|
@@ -34882,12 +34895,12 @@ export {
|
|
|
34882
34895
|
GE as buildSchemaMap,
|
|
34883
34896
|
Hl as defaultLabelFormatter,
|
|
34884
34897
|
ra as generalizePath,
|
|
34885
|
-
|
|
34898
|
+
cj as getPluginIconURL,
|
|
34886
34899
|
Fm as pluginConfigRegistry,
|
|
34887
34900
|
ot as pluginEndpoints,
|
|
34888
34901
|
Up as provideEditorStore,
|
|
34889
34902
|
tx as provideFormShared,
|
|
34890
|
-
|
|
34903
|
+
KK as renderRuleExactMatch,
|
|
34891
34904
|
af as replaceByDictionary,
|
|
34892
34905
|
rf as replaceByDictionaryInFieldName,
|
|
34893
34906
|
Ut as useEditorStore,
|
|
@@ -34903,9 +34916,9 @@ export {
|
|
|
34903
34916
|
rx as useLabelPath,
|
|
34904
34917
|
Wl as useMapField,
|
|
34905
34918
|
nx as useOptionalFormShared,
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34919
|
+
aj as usePluginMetaData,
|
|
34920
|
+
rj as useProvideExperimentalFreeForms,
|
|
34921
|
+
ZK as useProvideFreeFormPluginLayout,
|
|
34909
34922
|
ox as useSchemaExposer,
|
|
34910
34923
|
HE as useSchemaHelpers
|
|
34911
34924
|
};
|