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