@kong-ui-public/entities-plugins 9.137.1 → 9.137.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +170 -170
- package/dist/entities-plugins.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -24523,7 +24523,7 @@ function QV(e, t, n) {
|
|
|
24523
24523
|
}
|
|
24524
24524
|
};
|
|
24525
24525
|
}
|
|
24526
|
-
function
|
|
24526
|
+
function eB() {
|
|
24527
24527
|
const { i18n: { t: e } } = We();
|
|
24528
24528
|
return function(n) {
|
|
24529
24529
|
if (Ru(n))
|
|
@@ -24535,11 +24535,11 @@ function tv(e) {
|
|
|
24535
24535
|
return jo(
|
|
24536
24536
|
Si(n),
|
|
24537
24537
|
Qh("identifier", n),
|
|
24538
|
-
|
|
24538
|
+
eB(),
|
|
24539
24539
|
JV(e, n)
|
|
24540
24540
|
);
|
|
24541
24541
|
}
|
|
24542
|
-
function
|
|
24542
|
+
function tB(e) {
|
|
24543
24543
|
const { i18n: { t } } = We(), { getNodeById: n } = ht();
|
|
24544
24544
|
return function(i, r, a) {
|
|
24545
24545
|
const s = {
|
|
@@ -24551,7 +24551,7 @@ function t8(e) {
|
|
|
24551
24551
|
)(r);
|
|
24552
24552
|
};
|
|
24553
24553
|
}
|
|
24554
|
-
function
|
|
24554
|
+
function nB(e) {
|
|
24555
24555
|
const t = pe({}), n = M(
|
|
24556
24556
|
() => Object.values(t.value).every((a) => !a)
|
|
24557
24557
|
), o = {};
|
|
@@ -24594,7 +24594,7 @@ function $r(e) {
|
|
|
24594
24594
|
validationConfig: t,
|
|
24595
24595
|
getValidationData: n,
|
|
24596
24596
|
toggleNodeValid: o
|
|
24597
|
-
} = e, { skipValidation: i } = ht(), r = M(() => typeof t == "function" ? t() : t), a = M(() =>
|
|
24597
|
+
} = e, { skipValidation: i } = ht(), r = M(() => typeof t == "function" ? t() : t), a = M(() => nB(r.value)), s = M(() => a.value.fields), l = M(() => a.value.isValid.value);
|
|
24598
24598
|
function u() {
|
|
24599
24599
|
const c = n(), f = a.value.validate(c), m = {};
|
|
24600
24600
|
for (const g in r.value)
|
|
@@ -24774,7 +24774,7 @@ function Wn(e, t) {
|
|
|
24774
24774
|
function D(z) {
|
|
24775
24775
|
f.value.delete(e), z || f.value.add(e);
|
|
24776
24776
|
}
|
|
24777
|
-
const ue =
|
|
24777
|
+
const ue = tB(e);
|
|
24778
24778
|
function ce(z, U, P) {
|
|
24779
24779
|
const V = r(e);
|
|
24780
24780
|
if (!V) throw new Error("Node not found when validating field name");
|
|
@@ -24863,7 +24863,7 @@ const Zo = /* @__PURE__ */ be({
|
|
|
24863
24863
|
}, null, 8, ["model-value", "error", "error-message", "label"]);
|
|
24864
24864
|
};
|
|
24865
24865
|
}
|
|
24866
|
-
}),
|
|
24866
|
+
}), oB = /* @__PURE__ */ be({
|
|
24867
24867
|
__name: "NodeFormCall",
|
|
24868
24868
|
props: {
|
|
24869
24869
|
nodeId: {}
|
|
@@ -24952,7 +24952,7 @@ const Zo = /* @__PURE__ */ be({
|
|
|
24952
24952
|
}, 8, ["data", "schema"]);
|
|
24953
24953
|
};
|
|
24954
24954
|
}
|
|
24955
|
-
}),
|
|
24955
|
+
}), iB = /* @__PURE__ */ be({
|
|
24956
24956
|
__name: "NodeFormServiceRequest",
|
|
24957
24957
|
props: {
|
|
24958
24958
|
nodeId: {}
|
|
@@ -24983,7 +24983,7 @@ const Zo = /* @__PURE__ */ be({
|
|
|
24983
24983
|
_: 1
|
|
24984
24984
|
}, 8, ["data", "schema"]));
|
|
24985
24985
|
}
|
|
24986
|
-
}),
|
|
24986
|
+
}), rB = /* @__PURE__ */ be({
|
|
24987
24987
|
__name: "NodeFormResponse",
|
|
24988
24988
|
props: {
|
|
24989
24989
|
nodeId: {}
|
|
@@ -25016,7 +25016,7 @@ const Zo = /* @__PURE__ */ be({
|
|
|
25016
25016
|
}
|
|
25017
25017
|
}), Kf = {
|
|
25018
25018
|
jqlang: "https://jqlang.org/manual/"
|
|
25019
|
-
},
|
|
25019
|
+
}, aB = /* @__PURE__ */ be({
|
|
25020
25020
|
__name: "NodeFormJq",
|
|
25021
25021
|
props: {
|
|
25022
25022
|
nodeId: {}
|
|
@@ -25124,7 +25124,7 @@ const Zo = /* @__PURE__ */ be({
|
|
|
25124
25124
|
}, 8, ["data", "schema"]);
|
|
25125
25125
|
};
|
|
25126
25126
|
}
|
|
25127
|
-
}),
|
|
25127
|
+
}), sB = /* @__PURE__ */ be({
|
|
25128
25128
|
__name: "OutputValueField",
|
|
25129
25129
|
props: {
|
|
25130
25130
|
fieldNameValidator: {},
|
|
@@ -25277,8 +25277,8 @@ const Zo = /* @__PURE__ */ be({
|
|
|
25277
25277
|
], 512));
|
|
25278
25278
|
};
|
|
25279
25279
|
}
|
|
25280
|
-
}),
|
|
25281
|
-
function
|
|
25280
|
+
}), lB = /* @__PURE__ */ je(sB, [["__scopeId", "data-v-5e17f8cb"]]);
|
|
25281
|
+
function uB(e) {
|
|
25282
25282
|
const t = {};
|
|
25283
25283
|
for (const [n, o] of Object.entries(e))
|
|
25284
25284
|
typeof o == "object" && o !== null ? t[n] = JSON.stringify(o) : t[n] = String(o);
|
|
@@ -25296,13 +25296,13 @@ function Xr(e) {
|
|
|
25296
25296
|
}
|
|
25297
25297
|
return t;
|
|
25298
25298
|
}
|
|
25299
|
-
function
|
|
25299
|
+
function cB(e, t, n) {
|
|
25300
25300
|
const o = {};
|
|
25301
25301
|
for (const i of Object.keys(e))
|
|
25302
25302
|
i === t ? o[n] = e[t] : o[i] = e[i];
|
|
25303
25303
|
return o;
|
|
25304
25304
|
}
|
|
25305
|
-
const
|
|
25305
|
+
const dB = /* @__PURE__ */ be({
|
|
25306
25306
|
__name: "NodeFormStatic",
|
|
25307
25307
|
props: {
|
|
25308
25308
|
nodeId: {}
|
|
@@ -25341,7 +25341,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25341
25341
|
C[L] = "";
|
|
25342
25342
|
}), {
|
|
25343
25343
|
name: c.value.name,
|
|
25344
|
-
values:
|
|
25344
|
+
values: uB(C)
|
|
25345
25345
|
};
|
|
25346
25346
|
});
|
|
25347
25347
|
function y(_, C) {
|
|
@@ -25359,7 +25359,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25359
25359
|
const E = lo(c.value, "output", _);
|
|
25360
25360
|
if (!E) throw new Error("No field found to rename");
|
|
25361
25361
|
const k = {
|
|
25362
|
-
values: Xr(
|
|
25362
|
+
values: Xr(cB(g.value.values ?? {}, _, C))
|
|
25363
25363
|
};
|
|
25364
25364
|
a(e.nodeId, k, !1), i(e.nodeId, E.id, C);
|
|
25365
25365
|
}
|
|
@@ -25396,7 +25396,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25396
25396
|
validate: p(d),
|
|
25397
25397
|
onUpdate: m
|
|
25398
25398
|
}, null, 8, ["name", "validate"]),
|
|
25399
|
-
I(
|
|
25399
|
+
I(lB, {
|
|
25400
25400
|
"field-name-validator": p(l),
|
|
25401
25401
|
"key-order": f.value,
|
|
25402
25402
|
name: "values",
|
|
@@ -25410,7 +25410,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25410
25410
|
_: 1
|
|
25411
25411
|
}, 8, ["data", "schema"]));
|
|
25412
25412
|
}
|
|
25413
|
-
}),
|
|
25413
|
+
}), fB = { class: "dk-kong-property-item" }, pB = { class: "property-type" }, mB = { class: "property-badges" }, gB = /* @__PURE__ */ be({
|
|
25414
25414
|
__name: "PropertiesField",
|
|
25415
25415
|
props: {
|
|
25416
25416
|
validators: {}
|
|
@@ -25458,12 +25458,12 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25458
25458
|
onChange: f
|
|
25459
25459
|
}, {
|
|
25460
25460
|
"item-template": F(({ item: w }) => [
|
|
25461
|
-
J("div",
|
|
25461
|
+
J("div", fB, [
|
|
25462
25462
|
J("div", null, [
|
|
25463
25463
|
J("div", null, he(w.label), 1),
|
|
25464
|
-
J("div",
|
|
25464
|
+
J("div", pB, he(p(Co)[w.value].dataType), 1)
|
|
25465
25465
|
]),
|
|
25466
|
-
J("div",
|
|
25466
|
+
J("div", mB, [
|
|
25467
25467
|
p(Co)[w.value].readable ? (x(), H(y, {
|
|
25468
25468
|
key: 0,
|
|
25469
25469
|
appearance: "info"
|
|
@@ -25503,7 +25503,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25503
25503
|
], 64);
|
|
25504
25504
|
};
|
|
25505
25505
|
}
|
|
25506
|
-
}),
|
|
25506
|
+
}), hB = /* @__PURE__ */ je(gB, [["__scopeId", "data-v-0ab1be87"]]), vB = /* @__PURE__ */ be({
|
|
25507
25507
|
__name: "NodeFormProperty",
|
|
25508
25508
|
props: {
|
|
25509
25509
|
nodeId: {}
|
|
@@ -25560,7 +25560,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25560
25560
|
name: "content_type",
|
|
25561
25561
|
onUpdate: C[0] || (C[0] = (E) => p(l)())
|
|
25562
25562
|
}),
|
|
25563
|
-
I(
|
|
25563
|
+
I(hB, {
|
|
25564
25564
|
validators: p(w),
|
|
25565
25565
|
"onUpdate:modelValue": h,
|
|
25566
25566
|
"onUpdate:propertyKey": C[1] || (C[1] = (E) => p(l)("property-key"))
|
|
@@ -25577,7 +25577,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25577
25577
|
_: 1
|
|
25578
25578
|
}, 8, ["data", "schema"]));
|
|
25579
25579
|
}
|
|
25580
|
-
}),
|
|
25580
|
+
}), yB = /* @__PURE__ */ be({
|
|
25581
25581
|
__name: "NodeFormExit",
|
|
25582
25582
|
props: {
|
|
25583
25583
|
nodeId: {}
|
|
@@ -25642,7 +25642,7 @@ const d8 = /* @__PURE__ */ be({
|
|
|
25642
25642
|
}, 8, ["data", "schema"]));
|
|
25643
25643
|
}
|
|
25644
25644
|
});
|
|
25645
|
-
function
|
|
25645
|
+
function _B(e) {
|
|
25646
25646
|
const t = Wn(e), {
|
|
25647
25647
|
state: n,
|
|
25648
25648
|
getNodeById: o,
|
|
@@ -25721,7 +25721,7 @@ function _8(e) {
|
|
|
25721
25721
|
updateBranchMembers: y
|
|
25722
25722
|
};
|
|
25723
25723
|
}
|
|
25724
|
-
const
|
|
25724
|
+
const bB = /* @__PURE__ */ be({
|
|
25725
25725
|
__name: "NodeFormBranch",
|
|
25726
25726
|
props: {
|
|
25727
25727
|
nodeId: {}
|
|
@@ -25738,7 +25738,7 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25738
25738
|
inputsFieldNames: c,
|
|
25739
25739
|
fieldNameValidator: f,
|
|
25740
25740
|
updateBranchMembers: m
|
|
25741
|
-
} =
|
|
25741
|
+
} = _B(e.nodeId);
|
|
25742
25742
|
async function g(y, v) {
|
|
25743
25743
|
await m(y, v) || (o.value += 1);
|
|
25744
25744
|
}
|
|
@@ -25794,7 +25794,7 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25794
25794
|
_: 1
|
|
25795
25795
|
}, 8, ["data", "schema"]));
|
|
25796
25796
|
}
|
|
25797
|
-
}),
|
|
25797
|
+
}), wB = /* @__PURE__ */ be({
|
|
25798
25798
|
__name: "NodeFormCache",
|
|
25799
25799
|
props: {
|
|
25800
25800
|
nodeId: {}
|
|
@@ -25864,10 +25864,10 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25864
25864
|
_: 1
|
|
25865
25865
|
}, 8, ["data", "schema"]));
|
|
25866
25866
|
}
|
|
25867
|
-
}),
|
|
25867
|
+
}), kB = ["innerHTML"], EB = {
|
|
25868
25868
|
key: 1,
|
|
25869
25869
|
class: "branch-note"
|
|
25870
|
-
},
|
|
25870
|
+
}, CB = { class: "branch-label" }, xB = { class: "branch-text" }, SB = /* @__PURE__ */ be({
|
|
25871
25871
|
__name: "NodePropertiesPanel",
|
|
25872
25872
|
props: {
|
|
25873
25873
|
maxWidth: { default: `${yh}px` },
|
|
@@ -25892,23 +25892,23 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25892
25892
|
var u;
|
|
25893
25893
|
switch ((u = i.value) == null ? void 0 : u.type) {
|
|
25894
25894
|
case "call":
|
|
25895
|
-
return
|
|
25895
|
+
return oB;
|
|
25896
25896
|
case "service_request":
|
|
25897
|
-
return
|
|
25897
|
+
return iB;
|
|
25898
25898
|
case "response":
|
|
25899
|
-
return
|
|
25899
|
+
return rB;
|
|
25900
25900
|
case "jq":
|
|
25901
|
-
return
|
|
25901
|
+
return aB;
|
|
25902
25902
|
case "static":
|
|
25903
|
-
return
|
|
25903
|
+
return dB;
|
|
25904
25904
|
case "property":
|
|
25905
|
-
return
|
|
25905
|
+
return vB;
|
|
25906
25906
|
case "exit":
|
|
25907
|
-
return
|
|
25907
|
+
return yB;
|
|
25908
25908
|
case "branch":
|
|
25909
|
-
return
|
|
25909
|
+
return bB;
|
|
25910
25910
|
case "cache":
|
|
25911
|
-
return
|
|
25911
|
+
return wB;
|
|
25912
25912
|
default:
|
|
25913
25913
|
return null;
|
|
25914
25914
|
}
|
|
@@ -25928,14 +25928,14 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25928
25928
|
key: 0,
|
|
25929
25929
|
class: "dk-node-properties-panel-desc",
|
|
25930
25930
|
innerHTML: p(sn)(i.value.type)
|
|
25931
|
-
}, null, 8,
|
|
25932
|
-
r.value ? (x(), Q("div",
|
|
25933
|
-
J("span",
|
|
25931
|
+
}, null, 8, kB)) : Ee("", !0),
|
|
25932
|
+
r.value ? (x(), Q("div", EB, [
|
|
25933
|
+
J("span", CB, [
|
|
25934
25934
|
I(p(ip), {
|
|
25935
25935
|
color: p(Ir),
|
|
25936
25936
|
size: p(Yi)
|
|
25937
25937
|
}, null, 8, ["color", "size"]),
|
|
25938
|
-
J("span",
|
|
25938
|
+
J("span", xB, he(a.value), 1)
|
|
25939
25939
|
]),
|
|
25940
25940
|
I(p(ao), {
|
|
25941
25941
|
placement: "top",
|
|
@@ -25978,7 +25978,7 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25978
25978
|
} : void 0
|
|
25979
25979
|
]), 1032, ["max-width", "offset-top", "visible", "z-index"]));
|
|
25980
25980
|
}
|
|
25981
|
-
}),
|
|
25981
|
+
}), AB = /* @__PURE__ */ je(SB, [["__scopeId", "data-v-208232f7"]]), IB = { class: "dk-editor-content" }, TB = { class: "main" }, NB = /* @__PURE__ */ be({
|
|
25982
25982
|
__name: "EditorContent",
|
|
25983
25983
|
setup(e) {
|
|
25984
25984
|
const { propertiesPanelOpen: t, selectedNode: n } = ht();
|
|
@@ -25993,12 +25993,12 @@ const b8 = /* @__PURE__ */ be({
|
|
|
25993
25993
|
i.value = !0;
|
|
25994
25994
|
}), (r, a) => {
|
|
25995
25995
|
var s;
|
|
25996
|
-
return x(), Q("div",
|
|
25996
|
+
return x(), Q("div", IB, [
|
|
25997
25997
|
I(p(FV)),
|
|
25998
|
-
J("div",
|
|
25998
|
+
J("div", TB, [
|
|
25999
25999
|
I(YK)
|
|
26000
26000
|
]),
|
|
26001
|
-
I(
|
|
26001
|
+
I(AB, {
|
|
26002
26002
|
"node-id": (s = p(n)) == null ? void 0 : s.id,
|
|
26003
26003
|
visible: p(t),
|
|
26004
26004
|
onClose: o
|
|
@@ -26006,10 +26006,10 @@ const b8 = /* @__PURE__ */ be({
|
|
|
26006
26006
|
]);
|
|
26007
26007
|
};
|
|
26008
26008
|
}
|
|
26009
|
-
}), $
|
|
26009
|
+
}), $B = /* @__PURE__ */ je(NB, [["__scopeId", "data-v-8f04afa6"]]), OB = {
|
|
26010
26010
|
key: 0,
|
|
26011
26011
|
class: "dk-editor-modal"
|
|
26012
|
-
},
|
|
26012
|
+
}, PB = /* @__PURE__ */ be({
|
|
26013
26013
|
__name: "EditorModal",
|
|
26014
26014
|
props: {
|
|
26015
26015
|
open: { type: Boolean },
|
|
@@ -26034,12 +26034,12 @@ const b8 = /* @__PURE__ */ be({
|
|
|
26034
26034
|
function a() {
|
|
26035
26035
|
t.value = !1;
|
|
26036
26036
|
}
|
|
26037
|
-
return (s, l) => t.value ? (x(), Q("div",
|
|
26037
|
+
return (s, l) => t.value ? (x(), Q("div", OB, [
|
|
26038
26038
|
I(BK, {
|
|
26039
26039
|
class: "nav",
|
|
26040
26040
|
onBack: a
|
|
26041
26041
|
}),
|
|
26042
|
-
I($
|
|
26042
|
+
I($B, {
|
|
26043
26043
|
ref: "content",
|
|
26044
26044
|
class: "content",
|
|
26045
26045
|
tabindex: "0"
|
|
@@ -26047,7 +26047,7 @@ const b8 = /* @__PURE__ */ be({
|
|
|
26047
26047
|
I(FK, { ref: "confirm-modal" }, null, 512)
|
|
26048
26048
|
])) : Ee("", !0);
|
|
26049
26049
|
}
|
|
26050
|
-
}),
|
|
26050
|
+
}), MB = /* @__PURE__ */ je(PB, [["__scopeId", "data-v-abbb8dba"]]), RB = { class: "dk-flow-editor" }, FB = { class: "flow-panels-container" }, DB = { class: "overlay" }, LB = /* @__PURE__ */ be({
|
|
26051
26051
|
__name: "FlowEditor",
|
|
26052
26052
|
props: {
|
|
26053
26053
|
isEditing: { type: Boolean }
|
|
@@ -26072,13 +26072,13 @@ const b8 = /* @__PURE__ */ be({
|
|
|
26072
26072
|
s(!0);
|
|
26073
26073
|
}, { flush: "post" }), $I({ enabled: a }), (l, u) => {
|
|
26074
26074
|
const d = Ae("KButton");
|
|
26075
|
-
return x(), Q("div",
|
|
26076
|
-
J("div",
|
|
26075
|
+
return x(), Q("div", RB, [
|
|
26076
|
+
J("div", FB, [
|
|
26077
26077
|
I(Qu, {
|
|
26078
26078
|
inactive: p(a),
|
|
26079
26079
|
mode: "preview"
|
|
26080
26080
|
}, null, 8, ["inactive"]),
|
|
26081
|
-
J("div",
|
|
26081
|
+
J("div", DB, [
|
|
26082
26082
|
I(d, {
|
|
26083
26083
|
appearance: "secondary",
|
|
26084
26084
|
class: "button-open-editor",
|
|
@@ -26092,15 +26092,15 @@ const b8 = /* @__PURE__ */ be({
|
|
|
26092
26092
|
})
|
|
26093
26093
|
])
|
|
26094
26094
|
]),
|
|
26095
|
-
I(
|
|
26095
|
+
I(MB, {
|
|
26096
26096
|
open: p(a),
|
|
26097
26097
|
"onUpdate:open": u[1] || (u[1] = (c) => qo(a) ? a.value = c : null)
|
|
26098
26098
|
}, null, 8, ["open"])
|
|
26099
26099
|
]);
|
|
26100
26100
|
};
|
|
26101
26101
|
}
|
|
26102
|
-
}),
|
|
26103
|
-
function
|
|
26102
|
+
}), KB = /* @__PURE__ */ je(LB, [["__scopeId", "data-v-82ca6e78"]]);
|
|
26103
|
+
function VB(e, t) {
|
|
26104
26104
|
const n = [], o = (i, r) => {
|
|
26105
26105
|
typeof r == "string" && n.push({
|
|
26106
26106
|
nodeName: e.name,
|
|
@@ -26116,7 +26116,7 @@ function V8(e, t) {
|
|
|
26116
26116
|
r != null && o(["outputs", i], r);
|
|
26117
26117
|
return n;
|
|
26118
26118
|
}
|
|
26119
|
-
function
|
|
26119
|
+
function BB(e) {
|
|
26120
26120
|
const t = e.path[2];
|
|
26121
26121
|
return t === "output" || t === "outputs";
|
|
26122
26122
|
}
|
|
@@ -26152,13 +26152,13 @@ function ov(e, t, n) {
|
|
|
26152
26152
|
});
|
|
26153
26153
|
const r = /* @__PURE__ */ new Set([...t, ...o]), a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
26154
26154
|
e.nodes.forEach((l, u) => {
|
|
26155
|
-
for (const d of
|
|
26155
|
+
for (const d of VB(l, u)) {
|
|
26156
26156
|
const c = d.value.split(".", 1)[0];
|
|
26157
26157
|
if (r.has(c) || n.addIssue({
|
|
26158
26158
|
code: "custom",
|
|
26159
26159
|
message: `Unknown node "${c}" in connection "${d.value}"`,
|
|
26160
26160
|
path: d.path
|
|
26161
|
-
}),
|
|
26161
|
+
}), BB(d)) {
|
|
26162
26162
|
const f = `${d.nodeName}->${c}`;
|
|
26163
26163
|
s.has(f) ? n.addIssue({
|
|
26164
26164
|
code: "custom",
|
|
@@ -26176,26 +26176,26 @@ function ov(e, t, n) {
|
|
|
26176
26176
|
}
|
|
26177
26177
|
});
|
|
26178
26178
|
}
|
|
26179
|
-
const
|
|
26179
|
+
const jB = se.enum(Zm), qB = se.enum(Ti), iv = (e) => Ti.includes(e), nc = se.enum(Jm), Bf = nc.options;
|
|
26180
26180
|
se.union([
|
|
26181
26181
|
nc,
|
|
26182
|
-
|
|
26182
|
+
jB
|
|
26183
26183
|
]);
|
|
26184
|
-
const
|
|
26185
|
-
|
|
26184
|
+
const zB = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, rv = se.string().min(1).max(255).regex(
|
|
26185
|
+
zB,
|
|
26186
26186
|
"Invalid node name (snake_case / kebab-case only)"
|
|
26187
26187
|
).refine((e) => !iv(e), "Name clashes with reserved implicit node").brand(), Ra = se.union([
|
|
26188
|
-
|
|
26188
|
+
qB,
|
|
26189
26189
|
rv
|
|
26190
|
-
]),
|
|
26191
|
-
se.enum(
|
|
26192
|
-
const
|
|
26190
|
+
]), UB = se.string().min(1).brand(), HB = ["then", "else"];
|
|
26191
|
+
se.enum(HB);
|
|
26192
|
+
const GB = se.string().refine((e) => {
|
|
26193
26193
|
if (Ra.safeParse(e).success) return !0;
|
|
26194
26194
|
const t = e.match(/^([^.]+)\.([^.]+)$/);
|
|
26195
26195
|
if (!t) return !1;
|
|
26196
26196
|
const [, n, o] = t;
|
|
26197
|
-
return Ra.safeParse(n).success &&
|
|
26198
|
-
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), Ft =
|
|
26197
|
+
return Ra.safeParse(n).success && UB.safeParse(o).success;
|
|
26198
|
+
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), Ft = GB.nullish(), av = se.enum(Qm), Jo = se.object({
|
|
26199
26199
|
type: se.string(),
|
|
26200
26200
|
name: rv,
|
|
26201
26201
|
input: Ft,
|
|
@@ -26204,7 +26204,7 @@ const G8 = se.string().refine((e) => {
|
|
|
26204
26204
|
outputs: se.record(se.string(), Ft).nullish()
|
|
26205
26205
|
}).loose().superRefine((e, t) => {
|
|
26206
26206
|
nv(e, t);
|
|
26207
|
-
}),
|
|
26207
|
+
}), YB = se.object({ type: se.string(), name: se.string() }).loose().superRefine((e, t) => {
|
|
26208
26208
|
const n = e.type, o = e.name;
|
|
26209
26209
|
(typeof o != "string" || o.length === 0 || o.includes(".")) && t.addIssue({
|
|
26210
26210
|
code: "custom",
|
|
@@ -26218,7 +26218,7 @@ const G8 = se.string().refine((e) => {
|
|
|
26218
26218
|
", "
|
|
26219
26219
|
)}`
|
|
26220
26220
|
});
|
|
26221
|
-
}),
|
|
26221
|
+
}), WB = Jo.safeExtend({
|
|
26222
26222
|
type: se.literal("call"),
|
|
26223
26223
|
/**
|
|
26224
26224
|
* A string representing an HTTP method, such as GET, POST, PUT, or DELETE.
|
|
@@ -26247,7 +26247,7 @@ const G8 = se.string().refine((e) => {
|
|
|
26247
26247
|
headers: Ft,
|
|
26248
26248
|
status: Ft
|
|
26249
26249
|
}).partial().nullish()
|
|
26250
|
-
}).strict(),
|
|
26250
|
+
}).strict(), XB = Jo.safeExtend({
|
|
26251
26251
|
type: se.literal("exit"),
|
|
26252
26252
|
/**
|
|
26253
26253
|
* HTTP status code.
|
|
@@ -26258,7 +26258,7 @@ const G8 = se.string().refine((e) => {
|
|
|
26258
26258
|
warn_headers_sent: se.boolean().nullish(),
|
|
26259
26259
|
output: se.never().optional(),
|
|
26260
26260
|
outputs: se.never().optional()
|
|
26261
|
-
}).strict(),
|
|
26261
|
+
}).strict(), ZB = Jo.safeExtend({
|
|
26262
26262
|
type: se.literal("jq"),
|
|
26263
26263
|
/**
|
|
26264
26264
|
* The jq filter text. Refer to https://jqlang.org/manual/ for full documentation.
|
|
@@ -26266,7 +26266,7 @@ const G8 = se.string().refine((e) => {
|
|
|
26266
26266
|
*/
|
|
26267
26267
|
jq: se.string().min(1).max(10240),
|
|
26268
26268
|
outputs: se.never().optional()
|
|
26269
|
-
}).strict(),
|
|
26269
|
+
}).strict(), JB = Jo.safeExtend({
|
|
26270
26270
|
type: se.literal("property"),
|
|
26271
26271
|
/**
|
|
26272
26272
|
* The expected MIME type of the property value. When set to `application/json`,
|
|
@@ -26278,13 +26278,13 @@ const G8 = se.string().refine((e) => {
|
|
|
26278
26278
|
property: se.string().min(1),
|
|
26279
26279
|
inputs: se.never().optional(),
|
|
26280
26280
|
outputs: se.never().optional()
|
|
26281
|
-
}).strict(),
|
|
26281
|
+
}).strict(), QB = Jo.safeExtend({
|
|
26282
26282
|
type: se.literal("static"),
|
|
26283
26283
|
/** An object with string keys and free-form values. */
|
|
26284
26284
|
values: se.record(se.string(), se.unknown()),
|
|
26285
26285
|
input: se.never().optional(),
|
|
26286
26286
|
inputs: se.never().optional()
|
|
26287
|
-
}).strict(),
|
|
26287
|
+
}).strict(), e8 = Jo.safeExtend({
|
|
26288
26288
|
type: se.literal("cache"),
|
|
26289
26289
|
/** When true, skip cache errors and continue execution. */
|
|
26290
26290
|
bypass_on_error: se.boolean().nullish(),
|
|
@@ -26301,32 +26301,32 @@ const G8 = se.string().refine((e) => {
|
|
|
26301
26301
|
}).partial().nullish(),
|
|
26302
26302
|
/** Cache entry time-to-live in seconds. */
|
|
26303
26303
|
ttl: se.number().int().gt(0).nullish()
|
|
26304
|
-
}).strict(),
|
|
26304
|
+
}).strict(), t8 = Jo.safeExtend({
|
|
26305
26305
|
type: se.literal("branch"),
|
|
26306
26306
|
then: se.array(Ra).nullish(),
|
|
26307
26307
|
else: se.array(Ra).nullish()
|
|
26308
|
-
}).strict(),
|
|
26308
|
+
}).strict(), n8 = YB.pipe(
|
|
26309
26309
|
se.discriminatedUnion("type", [
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26313
|
-
|
|
26314
|
-
|
|
26315
|
-
|
|
26316
|
-
|
|
26310
|
+
WB,
|
|
26311
|
+
XB,
|
|
26312
|
+
ZB,
|
|
26313
|
+
JB,
|
|
26314
|
+
QB,
|
|
26315
|
+
e8,
|
|
26316
|
+
t8
|
|
26317
26317
|
])
|
|
26318
|
-
),
|
|
26318
|
+
), o8 = se.record(
|
|
26319
26319
|
se.string().regex(/^[A-Za-z_][A-Za-z0-9_-]*$/).min(1).max(255),
|
|
26320
26320
|
se.string().min(1).max(4095)
|
|
26321
|
-
),
|
|
26321
|
+
), i8 = se.object({
|
|
26322
26322
|
dictionary_name: se.string().default("kong_db_cache")
|
|
26323
|
-
}),
|
|
26323
|
+
}), r8 = se.object({
|
|
26324
26324
|
host: se.string().default("127.0.0.1"),
|
|
26325
26325
|
port: se.number().int().min(0).max(65535).default(6379)
|
|
26326
|
-
}),
|
|
26326
|
+
}), a8 = se.object({
|
|
26327
26327
|
ip: se.string().default("127.0.0.1"),
|
|
26328
26328
|
port: se.number().int().min(0).max(65535).default(6379)
|
|
26329
|
-
}),
|
|
26329
|
+
}), s8 = se.object({
|
|
26330
26330
|
host: se.string().optional().default("127.0.0.1"),
|
|
26331
26331
|
port: se.number().int().min(0).max(65535).optional().default(6379),
|
|
26332
26332
|
connect_timeout: se.number().int().min(0).max(2147483646).default(2e3),
|
|
@@ -26341,8 +26341,8 @@ const G8 = se.string().refine((e) => {
|
|
|
26341
26341
|
keepalive_backlog: se.number().int().min(0).max(2147483646).optional(),
|
|
26342
26342
|
sentinel_master: se.string().optional(),
|
|
26343
26343
|
sentinel_role: se.enum(["master", "slave", "any"]).optional(),
|
|
26344
|
-
sentinel_nodes: se.array(
|
|
26345
|
-
cluster_nodes: se.array(
|
|
26344
|
+
sentinel_nodes: se.array(r8).min(1, { message: "sentinel_nodes must contain at least 1 item" }).optional(),
|
|
26345
|
+
cluster_nodes: se.array(a8).min(1, { message: "cluster_nodes must contain at least 1 item" }).optional(),
|
|
26346
26346
|
ssl: se.boolean().default(!1).optional(),
|
|
26347
26347
|
ssl_verify: se.boolean().default(!1).optional(),
|
|
26348
26348
|
server_name: se.string().optional(),
|
|
@@ -26374,19 +26374,19 @@ const G8 = se.string().refine((e) => {
|
|
|
26374
26374
|
message: "host is required when connection_is_proxied is true (host/port should point to the proxy)",
|
|
26375
26375
|
path: ["host"]
|
|
26376
26376
|
});
|
|
26377
|
-
}),
|
|
26377
|
+
}), l8 = se.object({
|
|
26378
26378
|
strategy: se.enum(["memory", "redis"]).optional(),
|
|
26379
|
-
memory:
|
|
26380
|
-
redis:
|
|
26381
|
-
}),
|
|
26382
|
-
vault:
|
|
26383
|
-
cache:
|
|
26379
|
+
memory: i8,
|
|
26380
|
+
redis: s8
|
|
26381
|
+
}), u8 = se.object({
|
|
26382
|
+
vault: o8.nullish(),
|
|
26383
|
+
cache: l8.nullish()
|
|
26384
26384
|
});
|
|
26385
26385
|
se.array(se.object({ id: se.string() }));
|
|
26386
26386
|
se.object({
|
|
26387
|
-
nodes: se.array(
|
|
26387
|
+
nodes: se.array(n8).min(1, "At least one node is required"),
|
|
26388
26388
|
debug: se.boolean().nullish(),
|
|
26389
|
-
resources:
|
|
26389
|
+
resources: u8.nullish()
|
|
26390
26390
|
}).strict().superRefine((e, t) => {
|
|
26391
26391
|
ov(e, Ti, t);
|
|
26392
26392
|
});
|
|
@@ -26408,7 +26408,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26408
26408
|
outputs: se.record(se.string(), Dt.nullish()).nullish()
|
|
26409
26409
|
}).loose().superRefine((e, t) => {
|
|
26410
26410
|
nv(e, t);
|
|
26411
|
-
}),
|
|
26411
|
+
}), c8 = se.object({ type: se.string(), name: se.string() }).loose().superRefine((e, t) => {
|
|
26412
26412
|
const n = e.type, o = e.name;
|
|
26413
26413
|
(typeof o != "string" || o.length === 0 || o.includes(".")) && t.addIssue({
|
|
26414
26414
|
code: "custom",
|
|
@@ -26422,7 +26422,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26422
26422
|
", "
|
|
26423
26423
|
)}`
|
|
26424
26424
|
});
|
|
26425
|
-
}),
|
|
26425
|
+
}), d8 = Qo.safeExtend({
|
|
26426
26426
|
type: se.literal("call"),
|
|
26427
26427
|
method: av.nullish(),
|
|
26428
26428
|
ssl_server_name: se.string().nullish(),
|
|
@@ -26438,28 +26438,28 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26438
26438
|
headers: Dt.nullish(),
|
|
26439
26439
|
status: Dt.nullish()
|
|
26440
26440
|
}).partial().nullish()
|
|
26441
|
-
}).strict(),
|
|
26441
|
+
}).strict(), f8 = Qo.safeExtend({
|
|
26442
26442
|
type: se.literal("exit"),
|
|
26443
26443
|
status: se.union([se.number(), se.string()]).nullish(),
|
|
26444
26444
|
warn_headers_sent: se.boolean().nullish(),
|
|
26445
26445
|
output: se.never().optional(),
|
|
26446
26446
|
outputs: se.never().optional()
|
|
26447
|
-
}).strict(),
|
|
26447
|
+
}).strict(), p8 = Qo.safeExtend({
|
|
26448
26448
|
type: se.literal("jq"),
|
|
26449
26449
|
jq: se.string().nullish(),
|
|
26450
26450
|
outputs: se.never().optional()
|
|
26451
|
-
}).strict(),
|
|
26451
|
+
}).strict(), m8 = Qo.safeExtend({
|
|
26452
26452
|
type: se.literal("property"),
|
|
26453
26453
|
content_type: se.string().nullish(),
|
|
26454
26454
|
property: se.string().nullish(),
|
|
26455
26455
|
inputs: se.never().optional(),
|
|
26456
26456
|
outputs: se.never().optional()
|
|
26457
|
-
}).strict(),
|
|
26457
|
+
}).strict(), g8 = Qo.safeExtend({
|
|
26458
26458
|
type: se.literal("static"),
|
|
26459
26459
|
values: se.record(se.string(), se.unknown()).nullish(),
|
|
26460
26460
|
input: se.never().optional(),
|
|
26461
26461
|
inputs: se.never().optional()
|
|
26462
|
-
}).strict(),
|
|
26462
|
+
}).strict(), h8 = Qo.safeExtend({
|
|
26463
26463
|
type: se.literal("cache"),
|
|
26464
26464
|
bypass_on_error: se.boolean().nullish(),
|
|
26465
26465
|
inputs: se.object({
|
|
@@ -26474,39 +26474,39 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26474
26474
|
stored: Dt.nullish()
|
|
26475
26475
|
}).partial().nullish(),
|
|
26476
26476
|
ttl: se.union([se.number(), se.string()]).nullish()
|
|
26477
|
-
}).strict(),
|
|
26477
|
+
}).strict(), v8 = Qo.safeExtend({
|
|
26478
26478
|
type: se.literal("branch"),
|
|
26479
26479
|
then: se.array(zl).nullish(),
|
|
26480
26480
|
else: se.array(zl).nullish()
|
|
26481
|
-
}).strict(),
|
|
26481
|
+
}).strict(), y8 = c8.pipe(
|
|
26482
26482
|
se.discriminatedUnion("type", [
|
|
26483
|
-
|
|
26484
|
-
|
|
26485
|
-
|
|
26486
|
-
|
|
26487
|
-
|
|
26488
|
-
|
|
26489
|
-
|
|
26483
|
+
d8,
|
|
26484
|
+
f8,
|
|
26485
|
+
p8,
|
|
26486
|
+
m8,
|
|
26487
|
+
g8,
|
|
26488
|
+
h8,
|
|
26489
|
+
v8
|
|
26490
26490
|
])
|
|
26491
|
-
),
|
|
26491
|
+
), _8 = se.record(
|
|
26492
26492
|
se.string().regex(/^[A-Za-z_][A-Za-z0-9_-]*$/).min(1).max(255),
|
|
26493
26493
|
se.string().min(1).max(4095)
|
|
26494
|
-
),
|
|
26494
|
+
), b8 = se.object({
|
|
26495
26495
|
dictionary_name: se.string().default("kong_db_cache")
|
|
26496
|
-
}),
|
|
26496
|
+
}), w8 = se.object(), k8 = se.object({
|
|
26497
26497
|
strategy: se.enum(["memory", "redis"]).optional(),
|
|
26498
|
-
memory:
|
|
26499
|
-
redis:
|
|
26500
|
-
}),
|
|
26501
|
-
vault:
|
|
26502
|
-
cache:
|
|
26503
|
-
}),
|
|
26504
|
-
nodes: se.array(
|
|
26498
|
+
memory: b8.optional(),
|
|
26499
|
+
redis: w8.optional()
|
|
26500
|
+
}), E8 = se.object({
|
|
26501
|
+
vault: _8.nullish(),
|
|
26502
|
+
cache: k8.nullish()
|
|
26503
|
+
}), C8 = se.object({
|
|
26504
|
+
nodes: se.array(y8).nullish(),
|
|
26505
26505
|
debug: se.boolean().nullish(),
|
|
26506
|
-
resources:
|
|
26506
|
+
resources: E8.nullish()
|
|
26507
26507
|
}).strict().superRefine((e, t) => {
|
|
26508
26508
|
!e || !Array.isArray(e.nodes) || ov(e, Ti, t);
|
|
26509
|
-
}).nullish(),
|
|
26509
|
+
}).nullish(), x8 = { class: "dk-option-label" }, S8 = { class: "dk-option-label" }, A8 = ["innerHTML"], I8 = /* @__PURE__ */ be({
|
|
26510
26510
|
__name: "DatakitForm",
|
|
26511
26511
|
props: {
|
|
26512
26512
|
generalInfoTitle: {},
|
|
@@ -26578,7 +26578,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26578
26578
|
g();
|
|
26579
26579
|
let C = _;
|
|
26580
26580
|
i && (C = _ == null ? void 0 : _.config);
|
|
26581
|
-
const { success: E } =
|
|
26581
|
+
const { success: E } = C8.safeParse(C);
|
|
26582
26582
|
let k = E;
|
|
26583
26583
|
!i && k && (k = !h(_)), d.value = k;
|
|
26584
26584
|
}
|
|
@@ -26597,7 +26597,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26597
26597
|
return (_, C) => {
|
|
26598
26598
|
const E = Ae("KTooltip");
|
|
26599
26599
|
return x(), Q(Be, null, [
|
|
26600
|
-
p(i) ? (x(), H(Gl, {
|
|
26600
|
+
p(i) && p(o) ? (x(), H(Gl, {
|
|
26601
26601
|
key: 0,
|
|
26602
26602
|
disabled: !r.value,
|
|
26603
26603
|
to: "#plugin-form-page-actions"
|
|
@@ -26614,7 +26614,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26614
26614
|
text: p(t)("plugins.free-form.datakit.flow_editor.disabled_tooltip")
|
|
26615
26615
|
}, {
|
|
26616
26616
|
default: F(() => [
|
|
26617
|
-
J("div",
|
|
26617
|
+
J("div", x8, [
|
|
26618
26618
|
(x(), H(pt(u[k.value]))),
|
|
26619
26619
|
Fe(" " + he(k.label), 1)
|
|
26620
26620
|
])
|
|
@@ -26641,10 +26641,10 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26641
26641
|
Fe(he(m.value), 1)
|
|
26642
26642
|
]),
|
|
26643
26643
|
"plugin-config-description": F(() => [
|
|
26644
|
-
J("span", { innerHTML: f.value }, null, 8,
|
|
26644
|
+
J("span", { innerHTML: f.value }, null, 8, A8)
|
|
26645
26645
|
]),
|
|
26646
26646
|
default: F(() => [
|
|
26647
|
-
s.value === "flow" ? (x(), H(
|
|
26647
|
+
s.value === "flow" ? (x(), H(KB, {
|
|
26648
26648
|
key: 0,
|
|
26649
26649
|
"is-editing": n.isEditing,
|
|
26650
26650
|
onChange: y
|
|
@@ -26672,7 +26672,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26672
26672
|
text: p(t)("plugins.free-form.datakit.flow_editor.disabled_tooltip")
|
|
26673
26673
|
}, {
|
|
26674
26674
|
default: F(() => [
|
|
26675
|
-
J("div",
|
|
26675
|
+
J("div", S8, [
|
|
26676
26676
|
(x(), H(pt(u[k.value]))),
|
|
26677
26677
|
Fe(" " + he(k.label), 1)
|
|
26678
26678
|
])
|
|
@@ -26689,7 +26689,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26689
26689
|
], 64);
|
|
26690
26690
|
};
|
|
26691
26691
|
}
|
|
26692
|
-
}),
|
|
26692
|
+
}), T8 = /* @__PURE__ */ je(I8, [["__scopeId", "data-v-a7e4e7b1"]]), qf = (e) => {
|
|
26693
26693
|
if (!(!e || typeof e != "object"))
|
|
26694
26694
|
for (const [t, n] of Object.entries(e))
|
|
26695
26695
|
typeof n == "string" && (e[t] = n.split(/\s*,\s*/).filter(Boolean));
|
|
@@ -26697,7 +26697,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26697
26697
|
if (!(!e || typeof e != "object"))
|
|
26698
26698
|
for (const [t, n] of Object.entries(e))
|
|
26699
26699
|
Array.isArray(n) && (e[t] = n.join(", "));
|
|
26700
|
-
},
|
|
26700
|
+
}, N8 = /* @__PURE__ */ be({
|
|
26701
26701
|
__name: "ConfigForm",
|
|
26702
26702
|
props: {
|
|
26703
26703
|
schema: {},
|
|
@@ -26758,7 +26758,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26758
26758
|
_: 1
|
|
26759
26759
|
}, 8, ["data", "schema"]));
|
|
26760
26760
|
}
|
|
26761
|
-
}), $
|
|
26761
|
+
}), $8 = /* @__PURE__ */ be({
|
|
26762
26762
|
__name: "AIMcpProxyForm",
|
|
26763
26763
|
props: {
|
|
26764
26764
|
schema: {},
|
|
@@ -26774,12 +26774,12 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26774
26774
|
const t = e, n = gn();
|
|
26775
26775
|
return Nt(zo, n == null ? void 0 : n[So]), (o, i) => (x(), H(ku, on(dn(t)), {
|
|
26776
26776
|
default: F((r) => [
|
|
26777
|
-
I(
|
|
26777
|
+
I(N8, on(dn(r)), null, 16)
|
|
26778
26778
|
]),
|
|
26779
26779
|
_: 1
|
|
26780
26780
|
}, 16));
|
|
26781
26781
|
}
|
|
26782
|
-
}),
|
|
26782
|
+
}), O8 = /* @__PURE__ */ be({
|
|
26783
26783
|
__name: "ConfigForm",
|
|
26784
26784
|
setup(e) {
|
|
26785
26785
|
const { getSchema: t, createComputedRenderRules: n } = it(), o = n("config"), i = M(() => {
|
|
@@ -26841,7 +26841,7 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26841
26841
|
})
|
|
26842
26842
|
], 64));
|
|
26843
26843
|
}
|
|
26844
|
-
}),
|
|
26844
|
+
}), P8 = /* @__PURE__ */ je(O8, [["__scopeId", "data-v-f5897284"]]), M8 = /* @__PURE__ */ be({
|
|
26845
26845
|
__name: "CommonForm",
|
|
26846
26846
|
props: {
|
|
26847
26847
|
generalInfoTitle: {},
|
|
@@ -26866,24 +26866,24 @@ const jf = nc.options, zl = se.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26866
26866
|
const t = e, n = gn();
|
|
26867
26867
|
return Nt(zo, n == null ? void 0 : n[So]), (o, i) => (x(), H(lm, on(dn(t)), {
|
|
26868
26868
|
default: F(() => [
|
|
26869
|
-
I(
|
|
26869
|
+
I(P8)
|
|
26870
26870
|
]),
|
|
26871
26871
|
_: 1
|
|
26872
26872
|
}, 16));
|
|
26873
26873
|
}
|
|
26874
26874
|
}), Uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26875
26875
|
__proto__: null,
|
|
26876
|
-
AIMcpProxyForm: $
|
|
26877
|
-
CommonForm:
|
|
26878
|
-
DatakitForm:
|
|
26876
|
+
AIMcpProxyForm: $8,
|
|
26877
|
+
CommonForm: M8,
|
|
26878
|
+
DatakitForm: T8,
|
|
26879
26879
|
RequestCalloutForm: kC,
|
|
26880
26880
|
ServiceProtectionForm: ax
|
|
26881
26881
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26882
|
-
function
|
|
26882
|
+
function R8(e, t) {
|
|
26883
26883
|
const n = ln[e];
|
|
26884
26884
|
if (!n || !n.fieldRules)
|
|
26885
26885
|
return t;
|
|
26886
|
-
const o =
|
|
26886
|
+
const o = F8(n.fieldRules), i = { ...t };
|
|
26887
26887
|
return i.fields = i.fields.map((r) => Object.keys(r)[0] === "config" ? {
|
|
26888
26888
|
config: {
|
|
26889
26889
|
...r.config,
|
|
@@ -26894,7 +26894,7 @@ function RB(e, t) {
|
|
|
26894
26894
|
}
|
|
26895
26895
|
} : r), i;
|
|
26896
26896
|
}
|
|
26897
|
-
function
|
|
26897
|
+
function F8(e) {
|
|
26898
26898
|
const t = [], n = (o) => o.startsWith("config.") ? o.substring(7) : o;
|
|
26899
26899
|
return e.atLeastOneOf && e.atLeastOneOf.forEach((o) => {
|
|
26900
26900
|
t.push({
|
|
@@ -26927,10 +26927,10 @@ function FB(e) {
|
|
|
26927
26927
|
}
|
|
26928
26928
|
}), t;
|
|
26929
26929
|
}
|
|
26930
|
-
const
|
|
26930
|
+
const D8 = { class: "kong-ui-entities-plugin-form" }, L8 = {
|
|
26931
26931
|
key: 1,
|
|
26932
26932
|
class: "entity-form"
|
|
26933
|
-
},
|
|
26933
|
+
}, K8 = { class: "plugin-config-empty-state" }, V8 = /* @__PURE__ */ be({
|
|
26934
26934
|
__name: "PluginEntityForm",
|
|
26935
26935
|
props: {
|
|
26936
26936
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -27087,7 +27087,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
27087
27087
|
const S = pe(""), $ = pe(""), T = pe(null), L = pe({}), N = xo({}), b = xo({}), j = M(() => {
|
|
27088
27088
|
var de;
|
|
27089
27089
|
return (de = T.value) == null ? void 0 : de.options;
|
|
27090
|
-
}), A = M(() =>
|
|
27090
|
+
}), A = M(() => R8(
|
|
27091
27091
|
b.name,
|
|
27092
27092
|
r.rawSchema
|
|
27093
27093
|
)), q = pe(!1), D = pe(), ue = (de, Z) => {
|
|
@@ -27274,11 +27274,11 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
27274
27274
|
var ye, R;
|
|
27275
27275
|
const fe = Ae("KSkeleton");
|
|
27276
27276
|
return x(), Q(Be, null, [
|
|
27277
|
-
J("div",
|
|
27277
|
+
J("div", D8, [
|
|
27278
27278
|
G.value ? (x(), H(fe, {
|
|
27279
27279
|
key: 0,
|
|
27280
27280
|
type: "form"
|
|
27281
|
-
})) : b.id && e.editing || !e.editing ? (x(), Q("div",
|
|
27281
|
+
})) : b.id && e.editing || !e.editing ? (x(), Q("div", L8, [
|
|
27282
27282
|
$.value ? (x(), H(pt(Uf[$.value]), {
|
|
27283
27283
|
key: 0,
|
|
27284
27284
|
"form-model": b,
|
|
@@ -27332,7 +27332,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
27332
27332
|
onShowNewPartialModal: Z[1] || (Z[1] = (O) => de.$emit("showNewPartialModal", O))
|
|
27333
27333
|
}, tt({
|
|
27334
27334
|
"plugin-config-empty-state": F(() => [
|
|
27335
|
-
J("div",
|
|
27335
|
+
J("div", K8, he(p(y)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
27336
27336
|
]),
|
|
27337
27337
|
_: 2
|
|
27338
27338
|
}, [
|
|
@@ -27364,7 +27364,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
27364
27364
|
], 64);
|
|
27365
27365
|
};
|
|
27366
27366
|
}
|
|
27367
|
-
}),
|
|
27367
|
+
}), B8 = /* @__PURE__ */ je(V8, [["__scopeId", "data-v-00037786"]]), j8 = { key: 1 }, q8 = /* @__PURE__ */ be({
|
|
27368
27368
|
__name: "PluginFormActionsWrapper",
|
|
27369
27369
|
props: {
|
|
27370
27370
|
teleportTarget: {
|
|
@@ -27378,11 +27378,11 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
27378
27378
|
to: e.teleportTarget
|
|
27379
27379
|
}, [
|
|
27380
27380
|
qe(t.$slots, "default")
|
|
27381
|
-
], 8, ["to"])) : (x(), Q("div",
|
|
27381
|
+
], 8, ["to"])) : (x(), Q("div", j8, [
|
|
27382
27382
|
qe(t.$slots, "default")
|
|
27383
27383
|
]));
|
|
27384
27384
|
}
|
|
27385
|
-
}),
|
|
27385
|
+
}), z8 = { class: "kong-ui-entities-plugin-form-container" }, U8 = { key: 0 }, H8 = { class: "plugin-form-actions" }, G8 = /* @__PURE__ */ be({
|
|
27386
27386
|
__name: "PluginForm",
|
|
27387
27387
|
props: {
|
|
27388
27388
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -28003,7 +28003,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28003
28003
|
}
|
|
28004
28004
|
}), (Y, me) => {
|
|
28005
28005
|
const W = Ae("KSkeleton"), X = Ae("KEmptyState"), ie = Ae("KButton"), ve = Ae("KTabs"), Ne = Ae("KSlideout");
|
|
28006
|
-
return x(), Q("div",
|
|
28006
|
+
return x(), Q("div", z8, [
|
|
28007
28007
|
le.value ? (x(), H(W, {
|
|
28008
28008
|
key: 0,
|
|
28009
28009
|
type: "form"
|
|
@@ -28035,12 +28035,12 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28035
28035
|
onLoading: me[5] || (me[5] = (re) => Y.$emit("loading", re))
|
|
28036
28036
|
}, {
|
|
28037
28037
|
"form-actions": F(() => [
|
|
28038
|
-
e.isWizardStep ? (x(), Q("div",
|
|
28038
|
+
e.isWizardStep ? (x(), Q("div", U8)) : (x(), H(q8, {
|
|
28039
28039
|
key: 1,
|
|
28040
28040
|
"teleport-target": e.actionsTeleportTarget
|
|
28041
28041
|
}, {
|
|
28042
28042
|
default: F(() => [
|
|
28043
|
-
J("div",
|
|
28043
|
+
J("div", H8, [
|
|
28044
28044
|
e.hideViewConfigAction ? Ee("", !0) : (x(), H(ie, {
|
|
28045
28045
|
key: 0,
|
|
28046
28046
|
appearance: "tertiary",
|
|
@@ -28086,7 +28086,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28086
28086
|
hidden: "",
|
|
28087
28087
|
onSubmit: O
|
|
28088
28088
|
}, null, 32),
|
|
28089
|
-
I(
|
|
28089
|
+
I(B8, {
|
|
28090
28090
|
config: e.config,
|
|
28091
28091
|
credential: w.value,
|
|
28092
28092
|
editing: y.value === p(go).Edit,
|
|
@@ -28158,10 +28158,10 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28158
28158
|
]);
|
|
28159
28159
|
};
|
|
28160
28160
|
}
|
|
28161
|
-
}), v3 = /* @__PURE__ */ je(
|
|
28161
|
+
}), v3 = /* @__PURE__ */ je(G8, [["__scopeId", "data-v-9bc0e566"]]), Y8 = { class: "kong-ui-entities-plugins-list" }, W8 = { class: "button-row" }, X8 = { class: "name-cell-wrapper" }, Z8 = { class: "info-wrapper" }, J8 = {
|
|
28162
28162
|
key: 0,
|
|
28163
28163
|
class: "info-name"
|
|
28164
|
-
},
|
|
28164
|
+
}, Q8 = {
|
|
28165
28165
|
key: 1,
|
|
28166
28166
|
class: "info-name"
|
|
28167
28167
|
}, ej = {
|
|
@@ -28420,7 +28420,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28420
28420
|
K.value = await i.canCreate(), K.value && (O.value.title = r("plugins.list.empty_state.title"), O.value.ctaText = r("actions.create"));
|
|
28421
28421
|
}), (oe, te) => {
|
|
28422
28422
|
const Y = Ae("KButton"), me = Ae("KEmptyState"), W = Ae("KBadge"), X = Ae("KTruncate"), ie = Ae("KInputSwitch"), ve = Ae("KDropdownItem"), Ne = Ae("KClipboardProvider");
|
|
28423
|
-
return x(), Q("div",
|
|
28423
|
+
return x(), Q("div", Y8, [
|
|
28424
28424
|
I(p(xv), {
|
|
28425
28425
|
"cache-identifier": e.cacheIdentifier,
|
|
28426
28426
|
"disable-sorting": y.value,
|
|
@@ -28452,7 +28452,7 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28452
28452
|
disabled: !e.useActionOutside,
|
|
28453
28453
|
to: "#kong-ui-app-page-header-action-button"
|
|
28454
28454
|
}, [
|
|
28455
|
-
J("div",
|
|
28455
|
+
J("div", W8, [
|
|
28456
28456
|
!c.value && d.value ? (x(), H(Y, {
|
|
28457
28457
|
key: 0,
|
|
28458
28458
|
appearance: "secondary",
|
|
@@ -28489,14 +28489,14 @@ const DB = { class: "kong-ui-entities-plugin-form" }, LB = {
|
|
|
28489
28489
|
], 8, ["disabled"]))
|
|
28490
28490
|
]),
|
|
28491
28491
|
name: F(({ row: re }) => [
|
|
28492
|
-
J("div",
|
|
28492
|
+
J("div", X8, [
|
|
28493
28493
|
I(p(Zl), {
|
|
28494
28494
|
class: "plugin-icon",
|
|
28495
28495
|
name: re.name,
|
|
28496
28496
|
size: 24
|
|
28497
28497
|
}, null, 8, ["name"]),
|
|
28498
|
-
J("div",
|
|
28499
|
-
re.instance_name ? (x(), Q("span",
|
|
28498
|
+
J("div", Z8, [
|
|
28499
|
+
re.instance_name ? (x(), Q("span", J8, he(re.instance_name), 1)) : (x(), Q("span", Q8, he(p(n).getDisplayName(re.name)), 1)),
|
|
28500
28500
|
re.instance_name ? (x(), Q("span", ej, he(p(n).getDisplayName(re.name)), 1)) : Ee("", !0)
|
|
28501
28501
|
])
|
|
28502
28502
|
])
|