@kong-ui-public/entities-plugins 9.97.4 → 9.97.5
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,7 +1,7 @@
|
|
|
1
1
|
var ch = Object.defineProperty;
|
|
2
2
|
var dh = (e, t, n) => t in e ? ch(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ft = (e, t, n) => dh(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ge, toRef as je, inject as at, ref as ae, computed as F, watch as $e, onMounted as
|
|
4
|
+
import { defineComponent as ge, toRef as je, inject as at, ref as ae, computed as F, watch as $e, onMounted as Ot, resolveComponent as we, createElementBlock as ee, openBlock as w, createVNode as O, markRaw as Oo, provide as lt, createBlock as W, withCtx as R, createElementVNode as H, createCommentVNode as Se, Fragment as Ke, renderList as Ve, toDisplayString as fe, unref as p, toValue as Pe, useAttrs as qn, useSlots as Jt, mergeProps as He, createSlots as ot, renderSlot as Fe, normalizeProps as gn, guardReactiveProps as xn, createPropsRestProxy as Qt, resolveDynamicComponent as mt, Transition as fh, mergeModels as bs, useModel as Ir, onBeforeMount as Nn, createTextVNode as De, normalizeClass as ze, isRef as Hi, useTemplateRef as rt, withKeys as mu, withModifiers as Dt, nextTick as st, useCssVars as pl, reactive as to, toRaw as Tr, watchEffect as ef, shallowRef as ao, onBeforeUnmount as ra, getCurrentScope as tf, effectScope as nf, getCurrentInstance as Gi, onScopeDispose as wi, toRefs as ph, customRef as mh, h as Je, normalizeStyle as $t, onUnmounted as ml, isMemoSame as gh, readonly as hh, warn as vh, useId as of, Teleport as rf } from "vue";
|
|
5
5
|
import { useStringHelpers as aa, ConfigurationSchemaType as At, useAxios as Vn, useErrors as ei, useDebouncedFilter as yh, EntityFormBlock as gu, useHelpers as sa, EntityBaseFormType as zn, EntityBaseForm as _h, SupportedEntityType as ws, TerraformCodeBlock as bh, YamlCodeBlock as wh, JsonCodeBlock as Eh, useTableState as kh, useGatewayFeatureSupported as Ch, useFetcher as Sh, useDeleteUrlBuilder as xh, FetcherStatus as Ah, EntityBaseTable as Ih, PermissionsWrapper as Un, TableTags as Th, EntityFilter as Nh, EntityToggleModal as $h, EntityDeleteModal as af, EntityTypes as sf, ConfigurationSchemaSection as Eo, useSchemaProvider as Oh, EntityBaseConfigCard as Ph, InternalLinkItem as li } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { marked as br } from "marked";
|
|
7
7
|
import { useRouter as la, useRoute as Mh } from "vue-router";
|
|
@@ -1362,7 +1362,7 @@ const Wn = (e) => {
|
|
|
1362
1362
|
};
|
|
1363
1363
|
return $e(a, () => {
|
|
1364
1364
|
a.value || (a.value = [{ scope: "cp", id: null }]);
|
|
1365
|
-
}),
|
|
1365
|
+
}), Ot(() => {
|
|
1366
1366
|
v();
|
|
1367
1367
|
}), t({
|
|
1368
1368
|
clearValidationErrors: r
|
|
@@ -5574,7 +5574,7 @@ const co = /* @__PURE__ */ ge({
|
|
|
5574
5574
|
], 64);
|
|
5575
5575
|
};
|
|
5576
5576
|
}
|
|
5577
|
-
}),
|
|
5577
|
+
}), Mt = /* @__PURE__ */ Me($E, [["__scopeId", "data-v-6f044592"]]), OE = ["innerHTML"], PE = /* @__PURE__ */ ge({
|
|
5578
5578
|
__name: "NumberField",
|
|
5579
5579
|
props: {
|
|
5580
5580
|
name: {},
|
|
@@ -5926,7 +5926,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
5926
5926
|
"data-key-input": x,
|
|
5927
5927
|
"data-testid": `ff-key-${p(f).path.value}.${x}`,
|
|
5928
5928
|
placeholder: S.keyPlaceholder || "Key",
|
|
5929
|
-
onKeydown: mu(
|
|
5929
|
+
onKeydown: mu(Dt((ne) => h(x, "value"), ["prevent"]), ["enter"])
|
|
5930
5930
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-key-input", "data-testid", "placeholder", "onKeydown"]),
|
|
5931
5931
|
O(co, {
|
|
5932
5932
|
modelValue: J.value,
|
|
@@ -5936,7 +5936,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
5936
5936
|
"data-testid": `ff-value-${p(f).path.value}.${x}`,
|
|
5937
5937
|
"data-value-input": x,
|
|
5938
5938
|
placeholder: S.valuePlaceholder || "Value",
|
|
5939
|
-
onKeydown: mu(
|
|
5939
|
+
onKeydown: mu(Dt((ne) => g(x), ["prevent"]), ["enter"])
|
|
5940
5940
|
}, {
|
|
5941
5941
|
after: R(() => [
|
|
5942
5942
|
p(y) && b.value ? (w(), W(mt(p(y)), {
|
|
@@ -6180,7 +6180,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6180
6180
|
case "set":
|
|
6181
6181
|
return lE(n.schema) ? Bl : fn;
|
|
6182
6182
|
case "record":
|
|
6183
|
-
return
|
|
6183
|
+
return Mt;
|
|
6184
6184
|
case "map":
|
|
6185
6185
|
return jE;
|
|
6186
6186
|
case "json":
|
|
@@ -6404,7 +6404,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6404
6404
|
class: "ff-array-field-item-remove",
|
|
6405
6405
|
"data-testid": `ff-array-remove-item-btn-${l.path.value}.${V}`,
|
|
6406
6406
|
icon: "",
|
|
6407
|
-
onClick:
|
|
6407
|
+
onClick: Dt((B) => b(V), ["stop"])
|
|
6408
6408
|
}, {
|
|
6409
6409
|
default: R(() => [
|
|
6410
6410
|
O(p(Nr))
|
|
@@ -6439,7 +6439,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6439
6439
|
r.value.depends_on = r.value.depends_on.filter(
|
|
6440
6440
|
(a) => i.value.some((s) => s.value === a)
|
|
6441
6441
|
);
|
|
6442
|
-
}), (a, s) => (w(), W(
|
|
6442
|
+
}), (a, s) => (w(), W(Mt, { name: a.fieldName }, {
|
|
6443
6443
|
depends_on: R((l) => [
|
|
6444
6444
|
O(fn, He(l, {
|
|
6445
6445
|
items: i.value,
|
|
@@ -6448,7 +6448,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6448
6448
|
}), null, 16, ["items"])
|
|
6449
6449
|
]),
|
|
6450
6450
|
request: R((l) => [
|
|
6451
|
-
O(
|
|
6451
|
+
O(Mt, He(l, { "fields-order": ["url", "method", "headers", "query", "body", "http_opts", "error", "by_lua"] }), {
|
|
6452
6452
|
method: R((u) => [
|
|
6453
6453
|
O(fn, He(u, {
|
|
6454
6454
|
items: p(Ml)([
|
|
@@ -6678,24 +6678,24 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6678
6678
|
}, 8, ["match"])
|
|
6679
6679
|
]),
|
|
6680
6680
|
default: R(() => [
|
|
6681
|
-
O(
|
|
6681
|
+
O(Mt, {
|
|
6682
6682
|
"as-child": "",
|
|
6683
6683
|
name: "config",
|
|
6684
6684
|
"reset-label-path": "reset"
|
|
6685
6685
|
}, {
|
|
6686
6686
|
default: R(() => [
|
|
6687
6687
|
O(ak),
|
|
6688
|
-
O(
|
|
6688
|
+
O(Mt, {
|
|
6689
6689
|
appearance: "card",
|
|
6690
6690
|
"fields-order": ["headers", "query", "body", "by_lua"],
|
|
6691
6691
|
name: "upstream"
|
|
6692
6692
|
}),
|
|
6693
|
-
O(
|
|
6693
|
+
O(Mt, {
|
|
6694
6694
|
appearance: "card",
|
|
6695
6695
|
name: "cache"
|
|
6696
6696
|
}, {
|
|
6697
6697
|
redis: R((c) => [
|
|
6698
|
-
O(
|
|
6698
|
+
O(Mt, He(c, { "fields-order": [
|
|
6699
6699
|
"host",
|
|
6700
6700
|
"port",
|
|
6701
6701
|
"connection_is_proxied",
|
|
@@ -7491,7 +7491,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7491
7491
|
"config-fields": c.value
|
|
7492
7492
|
}, null, 8, ["config-fields"])) : Se("", !0),
|
|
7493
7493
|
j.value ? (w(), ee("p", lC, fe(j.value || p(o)("redis.shared_configuration.error")), 1)) : Se("", !0)
|
|
7494
|
-
])) : (w(), W(
|
|
7494
|
+
])) : (w(), W(Mt, He({ key: 1 }, i, {
|
|
7495
7495
|
"as-child": "",
|
|
7496
7496
|
"fields-order": p(pc),
|
|
7497
7497
|
name: s.value,
|
|
@@ -7506,7 +7506,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7506
7506
|
}, null, 8, ["partial-type", "visible"])
|
|
7507
7507
|
]),
|
|
7508
7508
|
_: 1
|
|
7509
|
-
}, 8, ["title"])) : (w(), W(
|
|
7509
|
+
}, 8, ["title"])) : (w(), W(Mt, He({ key: 1 }, i, {
|
|
7510
7510
|
"fields-order": p(pc),
|
|
7511
7511
|
"hide-required-asterisk": "",
|
|
7512
7512
|
name: s.value
|
|
@@ -7556,7 +7556,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7556
7556
|
onChange: i
|
|
7557
7557
|
}, {
|
|
7558
7558
|
default: R(() => [
|
|
7559
|
-
O(
|
|
7559
|
+
O(Mt, {
|
|
7560
7560
|
"as-child": "",
|
|
7561
7561
|
name: "config",
|
|
7562
7562
|
"reset-label-path": "reset"
|
|
@@ -8361,7 +8361,7 @@ function pn(e) {
|
|
|
8361
8361
|
function oo(e) {
|
|
8362
8362
|
return e === 9 || e === 32;
|
|
8363
8363
|
}
|
|
8364
|
-
function
|
|
8364
|
+
function Rt(e) {
|
|
8365
8365
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
8366
8366
|
}
|
|
8367
8367
|
function No(e) {
|
|
@@ -8483,7 +8483,7 @@ function gt(e, t, n) {
|
|
|
8483
8483
|
}
|
|
8484
8484
|
function _a(e) {
|
|
8485
8485
|
var t = e.position, n;
|
|
8486
|
-
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
8486
|
+
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || Rt(n)));
|
|
8487
8487
|
}
|
|
8488
8488
|
function Ul(e, t) {
|
|
8489
8489
|
t === 1 ? e.result += " " : t > 1 && (e.result += yt.repeat(`
|
|
@@ -8491,14 +8491,14 @@ function Ul(e, t) {
|
|
|
8491
8491
|
}
|
|
8492
8492
|
function TS(e, t, n) {
|
|
8493
8493
|
var o, i, r, a, s, l, u, d, c = e.kind, f = e.result, m;
|
|
8494
|
-
if (m = e.input.charCodeAt(e.position),
|
|
8494
|
+
if (m = e.input.charCodeAt(e.position), Rt(m) || No(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (i = e.input.charCodeAt(e.position + 1), Rt(i) || n && No(i)))
|
|
8495
8495
|
return !1;
|
|
8496
8496
|
for (e.kind = "scalar", e.result = "", r = a = e.position, s = !1; m !== 0; ) {
|
|
8497
8497
|
if (m === 58) {
|
|
8498
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
8498
|
+
if (i = e.input.charCodeAt(e.position + 1), Rt(i) || n && No(i))
|
|
8499
8499
|
break;
|
|
8500
8500
|
} else if (m === 35) {
|
|
8501
|
-
if (o = e.input.charCodeAt(e.position - 1),
|
|
8501
|
+
if (o = e.input.charCodeAt(e.position - 1), Rt(o))
|
|
8502
8502
|
break;
|
|
8503
8503
|
} else {
|
|
8504
8504
|
if (e.position === e.lineStart && _a(e) || n && No(m))
|
|
@@ -8563,7 +8563,7 @@ function OS(e, t) {
|
|
|
8563
8563
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
8564
8564
|
if (gt(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
|
|
8565
8565
|
return e.position++, e.tag = a, e.anchor = l, e.kind = m ? "mapping" : "sequence", e.result = s, !0;
|
|
8566
|
-
n ? b === 44 && Re(e, "expected the node content, but found ','") : Re(e, "missed comma between flow collection entries"), g = v = y = null, c = f = !1, b === 63 && (u = e.input.charCodeAt(e.position + 1),
|
|
8566
|
+
n ? b === 44 && Re(e, "expected the node content, but found ','") : Re(e, "missed comma between flow collection entries"), g = v = y = null, c = f = !1, b === 63 && (u = e.input.charCodeAt(e.position + 1), Rt(u) && (c = f = !0, e.position++, gt(e, !0, t))), o = e.line, i = e.lineStart, r = e.position, Uo(e, t, Dr, !1, !0), g = e.tag, v = e.result, gt(e, !0, t), b = e.input.charCodeAt(e.position), (f || e.line === o) && b === 58 && (c = !0, b = e.input.charCodeAt(++e.position), gt(e, !0, t), Uo(e, t, Dr, !1, !0), y = e.result), m ? $o(e, s, h, g, v, y, o, i, r) : c ? s.push($o(e, null, h, g, v, y, o, i, r)) : s.push(v), gt(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
|
|
8567
8567
|
}
|
|
8568
8568
|
Re(e, "unexpected end of the stream within a flow collection");
|
|
8569
8569
|
}
|
|
@@ -8617,7 +8617,7 @@ function PS(e, t) {
|
|
|
8617
8617
|
function bc(e, t) {
|
|
8618
8618
|
var n, o = e.tag, i = e.anchor, r = [], a, s = !1, l;
|
|
8619
8619
|
if (e.firstTabInLine !== -1) return !1;
|
|
8620
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = r), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Re(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !
|
|
8620
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = r), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Re(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !Rt(a)))); ) {
|
|
8621
8621
|
if (s = !0, e.position++, gt(e, !0, -1) && e.lineIndent <= t) {
|
|
8622
8622
|
r.push(null), l = e.input.charCodeAt(e.position);
|
|
8623
8623
|
continue;
|
|
@@ -8633,7 +8633,7 @@ function MS(e, t, n) {
|
|
|
8633
8633
|
var o, i, r, a, s, l, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), m = null, h = null, v = null, g = !1, y = !1, b;
|
|
8634
8634
|
if (e.firstTabInLine !== -1) return !1;
|
|
8635
8635
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
8636
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Re(e, "tab characters must not be used in indentation")), o = e.input.charCodeAt(e.position + 1), r = e.line, (b === 63 || b === 58) &&
|
|
8636
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Re(e, "tab characters must not be used in indentation")), o = e.input.charCodeAt(e.position + 1), r = e.line, (b === 63 || b === 58) && Rt(o))
|
|
8637
8637
|
b === 63 ? (g && ($o(e, c, f, m, h, null, a, s, l), m = h = v = null), y = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : Re(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = o;
|
|
8638
8638
|
else {
|
|
8639
8639
|
if (a = e.line, s = e.lineStart, l = e.position, !Uo(e, n, Fp, !1, !0))
|
|
@@ -8642,7 +8642,7 @@ function MS(e, t, n) {
|
|
|
8642
8642
|
for (b = e.input.charCodeAt(e.position); oo(b); )
|
|
8643
8643
|
b = e.input.charCodeAt(++e.position);
|
|
8644
8644
|
if (b === 58)
|
|
8645
|
-
b = e.input.charCodeAt(++e.position),
|
|
8645
|
+
b = e.input.charCodeAt(++e.position), Rt(b) || Re(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && ($o(e, c, f, m, h, null, a, s, l), m = h = v = null), y = !0, g = !1, i = !1, m = e.tag, h = e.result;
|
|
8646
8646
|
else if (y)
|
|
8647
8647
|
Re(e, "can not read an implicit mapping pair; a colon is missed");
|
|
8648
8648
|
else
|
|
@@ -8668,7 +8668,7 @@ function RS(e) {
|
|
|
8668
8668
|
while (a !== 0 && a !== 62);
|
|
8669
8669
|
e.position < e.length ? (r = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : Re(e, "unexpected end of the stream within a verbatim tag");
|
|
8670
8670
|
} else {
|
|
8671
|
-
for (; a !== 0 && !
|
|
8671
|
+
for (; a !== 0 && !Rt(a); )
|
|
8672
8672
|
a === 33 && (o ? Re(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Lp.test(i) || Re(e, "named tag handle cannot contain such characters"), o = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
8673
8673
|
r = e.input.slice(t, e.position), kS.test(r) && Re(e, "tag suffix cannot contain flow indicator characters");
|
|
8674
8674
|
}
|
|
@@ -8683,14 +8683,14 @@ function RS(e) {
|
|
|
8683
8683
|
function FS(e) {
|
|
8684
8684
|
var t, n;
|
|
8685
8685
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
8686
|
-
for (e.anchor !== null && Re(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !
|
|
8686
|
+
for (e.anchor !== null && Re(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Rt(n) && !No(n); )
|
|
8687
8687
|
n = e.input.charCodeAt(++e.position);
|
|
8688
8688
|
return e.position === t && Re(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
8689
8689
|
}
|
|
8690
8690
|
function DS(e) {
|
|
8691
8691
|
var t, n, o;
|
|
8692
8692
|
if (o = e.input.charCodeAt(e.position), o !== 42) return !1;
|
|
8693
|
-
for (o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !
|
|
8693
|
+
for (o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !Rt(o) && !No(o); )
|
|
8694
8694
|
o = e.input.charCodeAt(++e.position);
|
|
8695
8695
|
return e.position === t && Re(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Kn.call(e.anchorMap, n) || Re(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], gt(e, !0, -1), !0;
|
|
8696
8696
|
}
|
|
@@ -8723,7 +8723,7 @@ function Uo(e, t, n, o, i) {
|
|
|
8723
8723
|
function LS(e) {
|
|
8724
8724
|
var t = e.position, n, o, i, r = !1, a;
|
|
8725
8725
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (gt(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
8726
|
-
for (r = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !
|
|
8726
|
+
for (r = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !Rt(a); )
|
|
8727
8727
|
a = e.input.charCodeAt(++e.position);
|
|
8728
8728
|
for (o = e.input.slice(n, e.position), i = [], o.length < 1 && Re(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
8729
8729
|
for (; oo(a); )
|
|
@@ -8735,7 +8735,7 @@ function LS(e) {
|
|
|
8735
8735
|
break;
|
|
8736
8736
|
}
|
|
8737
8737
|
if (pn(a)) break;
|
|
8738
|
-
for (n = e.position; a !== 0 && !
|
|
8738
|
+
for (n = e.position; a !== 0 && !Rt(a); )
|
|
8739
8739
|
a = e.input.charCodeAt(++e.position);
|
|
8740
8740
|
i.push(e.input.slice(n, e.position));
|
|
8741
8741
|
}
|
|
@@ -9221,7 +9221,7 @@ const Lx = `nodes:
|
|
|
9221
9221
|
const d = s.value, c = d == null ? void 0 : d.getModel();
|
|
9222
9222
|
!d || !c || (d.setPosition(c.getFullModelRange().getEndPosition()), d.focus());
|
|
9223
9223
|
}
|
|
9224
|
-
return
|
|
9224
|
+
return Ot(() => {
|
|
9225
9225
|
const d = ir.editor.create(a.value, {
|
|
9226
9226
|
language: "yaml",
|
|
9227
9227
|
automaticLayout: !0,
|
|
@@ -10179,7 +10179,7 @@ const [fA, pA] = pf(
|
|
|
10179
10179
|
};
|
|
10180
10180
|
}
|
|
10181
10181
|
);
|
|
10182
|
-
function
|
|
10182
|
+
function Lt() {
|
|
10183
10183
|
const e = pA();
|
|
10184
10184
|
if (!e)
|
|
10185
10185
|
throw new Error("Editor state is not provided. Ensure you are using provideEditorStore in a parent component.");
|
|
@@ -11488,35 +11488,35 @@ function jc() {
|
|
|
11488
11488
|
}
|
|
11489
11489
|
function fo(e) {
|
|
11490
11490
|
var t, n;
|
|
11491
|
-
return e = (e + "").trim().toLowerCase(), (t = mT.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qc(t) : n === 3 ? new
|
|
11491
|
+
return e = (e + "").trim().toLowerCase(), (t = mT.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qc(t) : n === 3 ? new Ft(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ur(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ur(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = gT.exec(e)) ? new Ft(t[1], t[2], t[3], 1) : (t = hT.exec(e)) ? new Ft(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = vT.exec(e)) ? ur(t[1], t[2], t[3], t[4]) : (t = yT.exec(e)) ? ur(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = _T.exec(e)) ? Uc(t[1], t[2] / 100, t[3] / 100, 1) : (t = bT.exec(e)) ? Uc(t[1], t[2] / 100, t[3] / 100, t[4]) : Kc.hasOwnProperty(e) ? qc(Kc[e]) : e === "transparent" ? new Ft(NaN, NaN, NaN, 0) : null;
|
|
11492
11492
|
}
|
|
11493
11493
|
function qc(e) {
|
|
11494
|
-
return new
|
|
11494
|
+
return new Ft(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
11495
11495
|
}
|
|
11496
11496
|
function ur(e, t, n, o) {
|
|
11497
|
-
return o <= 0 && (e = t = n = NaN), new
|
|
11497
|
+
return o <= 0 && (e = t = n = NaN), new Ft(e, t, n, o);
|
|
11498
11498
|
}
|
|
11499
11499
|
function kT(e) {
|
|
11500
|
-
return e instanceof Ji || (e = fo(e)), e ? (e = e.rgb(), new
|
|
11500
|
+
return e instanceof Ji || (e = fo(e)), e ? (e = e.rgb(), new Ft(e.r, e.g, e.b, e.opacity)) : new Ft();
|
|
11501
11501
|
}
|
|
11502
11502
|
function Xs(e, t, n, o) {
|
|
11503
|
-
return arguments.length === 1 ? kT(e) : new
|
|
11503
|
+
return arguments.length === 1 ? kT(e) : new Ft(e, t, n, o ?? 1);
|
|
11504
11504
|
}
|
|
11505
|
-
function
|
|
11505
|
+
function Ft(e, t, n, o) {
|
|
11506
11506
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +o;
|
|
11507
11507
|
}
|
|
11508
|
-
Ql(
|
|
11508
|
+
Ql(Ft, Xs, Am(Ji, {
|
|
11509
11509
|
brighter(e) {
|
|
11510
|
-
return e = e == null ? Ur : Math.pow(Ur, e), new
|
|
11510
|
+
return e = e == null ? Ur : Math.pow(Ur, e), new Ft(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11511
11511
|
},
|
|
11512
11512
|
darker(e) {
|
|
11513
|
-
return e = e == null ? Bi : Math.pow(Bi, e), new
|
|
11513
|
+
return e = e == null ? Bi : Math.pow(Bi, e), new Ft(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11514
11514
|
},
|
|
11515
11515
|
rgb() {
|
|
11516
11516
|
return this;
|
|
11517
11517
|
},
|
|
11518
11518
|
clamp() {
|
|
11519
|
-
return new
|
|
11519
|
+
return new Ft(io(this.r), io(this.g), io(this.b), Hr(this.opacity));
|
|
11520
11520
|
},
|
|
11521
11521
|
displayable() {
|
|
11522
11522
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -11576,7 +11576,7 @@ Ql(Yt, ST, Am(Ji, {
|
|
|
11576
11576
|
},
|
|
11577
11577
|
rgb() {
|
|
11578
11578
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, o = n + (n < 0.5 ? n : 1 - n) * t, i = 2 * n - o;
|
|
11579
|
-
return new
|
|
11579
|
+
return new Ft(
|
|
11580
11580
|
ts(e >= 240 ? e - 240 : e + 120, i, o),
|
|
11581
11581
|
ts(e, i, o),
|
|
11582
11582
|
ts(e < 120 ? e + 240 : e - 120, i, o),
|
|
@@ -15045,7 +15045,7 @@ const tO = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], nO = {
|
|
|
15045
15045
|
const x = J[`${o.value}Handle`];
|
|
15046
15046
|
return J[o.value] !== m ? !1 : x ? x === e.id : !0;
|
|
15047
15047
|
}).length < e.connectable : typeof e.connectable == "function" ? e.connectable(h, g.value) : pt(e.connectable) ? e.connectable : d.value);
|
|
15048
|
-
|
|
15048
|
+
Ot(() => {
|
|
15049
15049
|
var J;
|
|
15050
15050
|
if (!h.dimensions.width || !h.dimensions.height)
|
|
15051
15051
|
return;
|
|
@@ -15174,7 +15174,7 @@ const rO = Fa, aO = ["transform"], sO = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15174
15174
|
},
|
|
15175
15175
|
setup(e) {
|
|
15176
15176
|
const t = ae({ x: 0, y: 0, width: 0, height: 0 }), n = ae(null), o = F(() => `translate(${e.x - t.value.width / 2} ${e.y - t.value.height / 2})`);
|
|
15177
|
-
|
|
15177
|
+
Ot(i), $e([() => e.x, () => e.y, n, () => e.label], i);
|
|
15178
15178
|
function i() {
|
|
15179
15179
|
if (!n.value)
|
|
15180
15180
|
return;
|
|
@@ -15883,7 +15883,7 @@ function Qe(e) {
|
|
|
15883
15883
|
function NO(e) {
|
|
15884
15884
|
const { emits: t, dimensions: n } = Qe();
|
|
15885
15885
|
let o;
|
|
15886
|
-
|
|
15886
|
+
Ot(() => {
|
|
15887
15887
|
const i = e.value, r = () => {
|
|
15888
15888
|
if (!i)
|
|
15889
15889
|
return;
|
|
@@ -15931,7 +15931,7 @@ const $O = {
|
|
|
15931
15931
|
t.selectionDragStop(h);
|
|
15932
15932
|
}
|
|
15933
15933
|
});
|
|
15934
|
-
|
|
15934
|
+
Ot(() => {
|
|
15935
15935
|
var h;
|
|
15936
15936
|
r.value || (h = l.value) == null || h.focus({ preventScroll: !0 });
|
|
15937
15937
|
});
|
|
@@ -16171,7 +16171,7 @@ const DO = {
|
|
|
16171
16171
|
const X = Ti(s), q = Ti(a), Z = Ti(r), K = je(
|
|
16172
16172
|
() => (!q.value || q.value && a.value === !0) && (X.value || c.value)
|
|
16173
16173
|
), z = je(() => X.value || l.value), se = je(() => q.value || a.value === !0 && K.value !== !0);
|
|
16174
|
-
|
|
16174
|
+
Ot(() => {
|
|
16175
16175
|
if (!Q.value) {
|
|
16176
16176
|
Oa("Viewport element is missing");
|
|
16177
16177
|
return;
|
|
@@ -16868,7 +16868,7 @@ const wd = su, ZO = ge({
|
|
|
16868
16868
|
}), de = je(() => Number(x.zIndex ?? ce.value.zIndex ?? 0));
|
|
16869
16869
|
return d(($) => {
|
|
16870
16870
|
($.includes(e.id) || !$.length) && Ae();
|
|
16871
|
-
}),
|
|
16871
|
+
}), Ot(() => {
|
|
16872
16872
|
$e(
|
|
16873
16873
|
() => x.hidden,
|
|
16874
16874
|
($ = !1, N, U) => {
|
|
@@ -17074,7 +17074,7 @@ const fP = { class: "vue-flow__nodes vue-flow__container" }, pP = {
|
|
|
17074
17074
|
});
|
|
17075
17075
|
},
|
|
17076
17076
|
{ immediate: !0 }
|
|
17077
|
-
),
|
|
17077
|
+
), Ot(() => {
|
|
17078
17078
|
r.value = new ResizeObserver((a) => {
|
|
17079
17079
|
const s = a.map((l) => ({
|
|
17080
17080
|
id: l.target.getAttribute("data-id"),
|
|
@@ -17103,7 +17103,7 @@ const fP = { class: "vue-flow__nodes vue-flow__container" }, pP = {
|
|
|
17103
17103
|
});
|
|
17104
17104
|
function gP() {
|
|
17105
17105
|
const { emits: e } = Qe();
|
|
17106
|
-
|
|
17106
|
+
Ot(() => {
|
|
17107
17107
|
if (ng()) {
|
|
17108
17108
|
const t = document.querySelector(".vue-flow__pane");
|
|
17109
17109
|
t && window.getComputedStyle(t).zIndex !== "1" && e.error(new _t(ht.MISSING_STYLES));
|
|
@@ -19828,7 +19828,7 @@ const [SD, xD] = pf(
|
|
|
19828
19828
|
nodes: l = fi.gaps.nodes,
|
|
19829
19829
|
edges: u = fi.gaps.edges,
|
|
19830
19830
|
ranks: d = fi.gaps.ranks
|
|
19831
|
-
} = s, c = Qe(n), f =
|
|
19831
|
+
} = s, c = Qe(n), f = Lt(), m = Yg(), h = bD(), { i18n: { t: v } } = Ge(), {
|
|
19832
19832
|
findNode: g,
|
|
19833
19833
|
fitView: y,
|
|
19834
19834
|
deleteKeyCode: b,
|
|
@@ -20301,7 +20301,7 @@ const MD = {
|
|
|
20301
20301
|
duplicateNode: a,
|
|
20302
20302
|
removeNode: s,
|
|
20303
20303
|
propertiesPanelOpen: l
|
|
20304
|
-
} =
|
|
20304
|
+
} = Lt(), u = F(() => Ca(e.data.type)), d = F(() => e.data.fields.input.length > 0), c = F(() => e.data.fields.output.length > 0), f = F(
|
|
20305
20305
|
() => d.value && o(e.data.id).every((x) => x.targetField === void 0)
|
|
20306
20306
|
), m = F(
|
|
20307
20307
|
() => c.value && i(e.data.id).every((x) => x.sourceField === void 0)
|
|
@@ -20382,7 +20382,7 @@ const MD = {
|
|
|
20382
20382
|
popoverClasses: "dk-flow-node-menu"
|
|
20383
20383
|
},
|
|
20384
20384
|
width: "160",
|
|
20385
|
-
onClick: ne[1] || (ne[1] =
|
|
20385
|
+
onClick: ne[1] || (ne[1] = Dt(() => {
|
|
20386
20386
|
}, ["stop"]))
|
|
20387
20387
|
}, {
|
|
20388
20388
|
items: R(() => [
|
|
@@ -20442,7 +20442,7 @@ const MD = {
|
|
|
20442
20442
|
class: ze(["handle-label trigger", {
|
|
20443
20443
|
collapsible: f.value
|
|
20444
20444
|
}]),
|
|
20445
|
-
onClick: ne[2] || (ne[2] =
|
|
20445
|
+
onClick: ne[2] || (ne[2] = Dt((T) => P("input"), ["stop"]))
|
|
20446
20446
|
}, [
|
|
20447
20447
|
ne[4] || (ne[4] = H("div", { class: "text" }, " inputs ", -1)),
|
|
20448
20448
|
d.value ? (w(), ee(Ke, { key: 0 }, [
|
|
@@ -20494,7 +20494,7 @@ const MD = {
|
|
|
20494
20494
|
class: ze(["handle-label trigger", {
|
|
20495
20495
|
collapsible: m.value
|
|
20496
20496
|
}]),
|
|
20497
|
-
onClick: ne[3] || (ne[3] =
|
|
20497
|
+
onClick: ne[3] || (ne[3] = Dt((T) => P("output"), ["stop"]))
|
|
20498
20498
|
}, [
|
|
20499
20499
|
ne[5] || (ne[5] = H("div", { class: "text" }, " outputs ", -1)),
|
|
20500
20500
|
c.value ? (w(), ee(Ke, { key: 0 }, [
|
|
@@ -20689,7 +20689,7 @@ const MD = {
|
|
|
20689
20689
|
O(p(yi), {
|
|
20690
20690
|
class: "custom",
|
|
20691
20691
|
disabled: Z.disabled,
|
|
20692
|
-
onClick:
|
|
20692
|
+
onClick: Dt(Z.action, ["stop"])
|
|
20693
20693
|
}, {
|
|
20694
20694
|
default: R(() => [
|
|
20695
20695
|
(w(), W(mt(Z.icon), { size: 18 }))
|
|
@@ -20715,7 +20715,7 @@ const MD = {
|
|
|
20715
20715
|
resizable: { type: Boolean }
|
|
20716
20716
|
},
|
|
20717
20717
|
setup(e, { expose: t }) {
|
|
20718
|
-
const n = ae(!1), o = ae(!1), { state: i, markAsLayoutCompleted: r, commit: a, clear: s } =
|
|
20718
|
+
const n = ae(!1), o = ae(!1), { state: i, markAsLayoutCompleted: r, commit: a, clear: s } = Lt(), l = of(), u = `${l}-request`, d = `${l}-response`, c = Qe(u), f = Qe(d);
|
|
20719
20719
|
function m(z, se) {
|
|
20720
20720
|
const { onPaneClick: te, onNodesChange: ce, onEdgesChange: de, getSelectedNodes: ke, getSelectedEdges: Ae } = z, { removeSelectedElements: ie } = se;
|
|
20721
20721
|
function le(pe) {
|
|
@@ -20943,8 +20943,8 @@ const MD = {
|
|
|
20943
20943
|
H("div", oL, [
|
|
20944
20944
|
H("div", {
|
|
20945
20945
|
class: ze(["side-panel-toggle", { expanded: p(r) }]),
|
|
20946
|
-
onTransitionend: d[0] || (d[0] =
|
|
20947
|
-
onTransitionstart: d[1] || (d[1] =
|
|
20946
|
+
onTransitionend: d[0] || (d[0] = Dt((c) => s.value = !1, ["self"])),
|
|
20947
|
+
onTransitionstart: d[1] || (d[1] = Dt((c) => s.value = !0, ["self"]))
|
|
20948
20948
|
}, [
|
|
20949
20949
|
O(p($r), {
|
|
20950
20950
|
label: s.value ? void 0 : a.value,
|
|
@@ -20984,7 +20984,7 @@ const MD = {
|
|
|
20984
20984
|
}, dL = /* @__PURE__ */ ge({
|
|
20985
20985
|
__name: "EditorMain",
|
|
20986
20986
|
setup(e) {
|
|
20987
|
-
const { t } = bt("en-us", wt), { modalOpen: n, undo: o, redo: i, canUndo: r, canRedo: a, load: s } =
|
|
20987
|
+
const { t } = bt("en-us", wt), { modalOpen: n, undo: o, redo: i, canUndo: r, canRedo: a, load: s } = Lt();
|
|
20988
20988
|
function l(d) {
|
|
20989
20989
|
const c = Vs.load(d, {
|
|
20990
20990
|
schema: qr,
|
|
@@ -21152,7 +21152,7 @@ const MD = {
|
|
|
21152
21152
|
}, CL = /* @__PURE__ */ ge({
|
|
21153
21153
|
__name: "NodePanel",
|
|
21154
21154
|
setup(e) {
|
|
21155
|
-
const { t } = bt("en-us", wt), { createNode: n } =
|
|
21155
|
+
const { t } = bt("en-us", wt), { createNode: n } = Lt(), o = `dk-drag-preview-${of()}`, i = ao(), r = F(() => i.value ? [
|
|
21156
21156
|
{
|
|
21157
21157
|
id: "preview",
|
|
21158
21158
|
type: "flow",
|
|
@@ -21246,7 +21246,7 @@ const MD = {
|
|
|
21246
21246
|
const i = t("inputs");
|
|
21247
21247
|
return i ? i.fields.map((r) => Object.keys(r)[0]) : [];
|
|
21248
21248
|
});
|
|
21249
|
-
return (i, r) => (w(), W(
|
|
21249
|
+
return (i, r) => (w(), W(Mt, {
|
|
21250
21250
|
"as-child": "",
|
|
21251
21251
|
name: i.name,
|
|
21252
21252
|
"reset-label-path": "isolate"
|
|
@@ -21722,7 +21722,7 @@ function nh(e = -1 / 0, t = 1 / 0, n) {
|
|
|
21722
21722
|
};
|
|
21723
21723
|
}
|
|
21724
21724
|
function BL(e, t) {
|
|
21725
|
-
const { state: n } =
|
|
21725
|
+
const { state: n } = Lt(), { i18n: { t: o } } = Ge();
|
|
21726
21726
|
return function(r) {
|
|
21727
21727
|
if (n.value.nodes.some((a) => a.name === r && a.id !== e))
|
|
21728
21728
|
return t ? typeof t == "string" ? t : o("plugins.free-form.datakit.flow_editor.node_properties.errors.not_unique", t) : "Name must be unique.";
|
|
@@ -21755,7 +21755,7 @@ function oh(e) {
|
|
|
21755
21755
|
);
|
|
21756
21756
|
}
|
|
21757
21757
|
function VL(e) {
|
|
21758
|
-
const { i18n: { t } } = Ge(), { getNodeById: n } =
|
|
21758
|
+
const { i18n: { t } } = Ge(), { getNodeById: n } = Lt();
|
|
21759
21759
|
return function(i, r, a) {
|
|
21760
21760
|
const s = {
|
|
21761
21761
|
fieldName: t(i === "input" ? "plugins.free-form.datakit.flow_editor.node_properties.input_name.label" : "plugins.free-form.datakit.flow_editor.node_properties.output_value.value_name")
|
|
@@ -21809,7 +21809,7 @@ function ja(e) {
|
|
|
21809
21809
|
validationConfig: t,
|
|
21810
21810
|
getValidationData: n,
|
|
21811
21811
|
toggleNodeValid: o
|
|
21812
|
-
} = e, { skipValidation: i } =
|
|
21812
|
+
} = e, { skipValidation: i } = Lt(), r = F(() => typeof t == "function" ? t() : t), a = F(() => zL(r.value)), s = F(() => a.value.fields), l = F(() => a.value.isValid.value);
|
|
21813
21813
|
function u() {
|
|
21814
21814
|
const c = n(), f = a.value.validate(c), m = {};
|
|
21815
21815
|
for (const h in r.value)
|
|
@@ -21836,7 +21836,7 @@ function ja(e) {
|
|
|
21836
21836
|
})
|
|
21837
21837
|
};
|
|
21838
21838
|
}
|
|
21839
|
-
return
|
|
21839
|
+
return Ot(() => {
|
|
21840
21840
|
i.value ? i.value = !1 : u();
|
|
21841
21841
|
}), ra(async () => {
|
|
21842
21842
|
try {
|
|
@@ -21863,13 +21863,13 @@ function bo(e, t) {
|
|
|
21863
21863
|
disconnectEdge: u,
|
|
21864
21864
|
connectEdge: d,
|
|
21865
21865
|
invalidConfigNodeIds: c,
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
} =
|
|
21866
|
+
commit: f,
|
|
21867
|
+
reset: m
|
|
21868
|
+
} = Lt(), { i18n: { t: h } } = Ge(), v = ED();
|
|
21869
21869
|
let g = !1;
|
|
21870
21870
|
$e(n, async () => {
|
|
21871
21871
|
g = !0, await st(), g = !1;
|
|
21872
|
-
}, { immediate: !0, deep: !0 })
|
|
21872
|
+
}, { immediate: !0, deep: !0 });
|
|
21873
21873
|
const y = F(() => {
|
|
21874
21874
|
const q = i(e);
|
|
21875
21875
|
if (!q) throw new Error("Node not existed");
|
|
@@ -21936,11 +21936,17 @@ function bo(e, t) {
|
|
|
21936
21936
|
ce,
|
|
21937
21937
|
i
|
|
21938
21938
|
);
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
21939
|
+
if (!(de[0] && Ae && de[0][1] === Ae[1])) {
|
|
21940
|
+
if (de.length > 0 && !await v(
|
|
21941
|
+
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21942
|
+
[Ae],
|
|
21943
|
+
de
|
|
21944
|
+
)) {
|
|
21945
|
+
m();
|
|
21946
|
+
return;
|
|
21947
|
+
}
|
|
21948
|
+
f();
|
|
21949
|
+
}
|
|
21944
21950
|
}, x = async (q) => {
|
|
21945
21951
|
if (g) return;
|
|
21946
21952
|
if (q == null) {
|
|
@@ -21966,11 +21972,15 @@ function bo(e, t) {
|
|
|
21966
21972
|
void 0,
|
|
21967
21973
|
i
|
|
21968
21974
|
);
|
|
21969
|
-
|
|
21975
|
+
if (K.length > 0 && !await v(
|
|
21970
21976
|
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21971
21977
|
[te],
|
|
21972
21978
|
K
|
|
21973
|
-
)
|
|
21979
|
+
)) {
|
|
21980
|
+
m();
|
|
21981
|
+
return;
|
|
21982
|
+
}
|
|
21983
|
+
f();
|
|
21974
21984
|
}, ne = (q) => {
|
|
21975
21985
|
const Z = [
|
|
21976
21986
|
...n.value.edges,
|
|
@@ -22537,7 +22547,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22537
22547
|
removeField: r,
|
|
22538
22548
|
replaceConfig: a,
|
|
22539
22549
|
getNodeById: s
|
|
22540
|
-
} =
|
|
22550
|
+
} = Lt(), { fieldNameValidator: l } = bo(e.nodeId), u = wo("static"), d = oh(e.nodeId), c = F(() => s(e.nodeId)), f = F(() => {
|
|
22541
22551
|
var _;
|
|
22542
22552
|
return ((_ = c.value) == null ? void 0 : _.fields.output.map((A) => A.name)) || [];
|
|
22543
22553
|
});
|
|
@@ -22730,7 +22740,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22730
22740
|
nodeId: {}
|
|
22731
22741
|
},
|
|
22732
22742
|
setup(e) {
|
|
22733
|
-
const t = rt("form"), { selectedNode: n, disconnectInEdges: o, disconnectOutEdges: i } =
|
|
22743
|
+
const t = rt("form"), { selectedNode: n, disconnectInEdges: o, disconnectOutEdges: i } = Lt(), r = wo("property"), {
|
|
22734
22744
|
formData: a,
|
|
22735
22745
|
setName: s,
|
|
22736
22746
|
setConfig: l,
|
|
@@ -22872,7 +22882,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22872
22882
|
},
|
|
22873
22883
|
emits: ["close"],
|
|
22874
22884
|
setup(e) {
|
|
22875
|
-
const { getNodeById: t } =
|
|
22885
|
+
const { getNodeById: t } = Lt(), n = F(() => e.nodeId && t(e.nodeId)), o = F(() => {
|
|
22876
22886
|
var i;
|
|
22877
22887
|
switch ((i = n.value) == null ? void 0 : i.type) {
|
|
22878
22888
|
case "call":
|
|
@@ -22930,7 +22940,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22930
22940
|
}), u3 = /* @__PURE__ */ Me(l3, [["__scopeId", "data-v-0b3e4bcc"]]), c3 = { class: "dk-editor-content" }, d3 = { class: "header" }, f3 = { class: "title" }, p3 = { class: "body" }, m3 = { class: "node-selection-panel" }, g3 = { class: "main" }, h3 = /* @__PURE__ */ ge({
|
|
22931
22941
|
__name: "EditorContent",
|
|
22932
22942
|
setup(e) {
|
|
22933
|
-
const { t } = bt("en-us", wt), { sidePanelExpanded: n } = Xl(), { propertiesPanelOpen: o, selectedNode: i } =
|
|
22943
|
+
const { t } = bt("en-us", wt), { sidePanelExpanded: n } = Xl(), { propertiesPanelOpen: o, selectedNode: i } = Lt();
|
|
22934
22944
|
function r() {
|
|
22935
22945
|
o.value = !1;
|
|
22936
22946
|
}
|
|
@@ -22938,7 +22948,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22938
22948
|
s || r();
|
|
22939
22949
|
});
|
|
22940
22950
|
const a = ae(!1);
|
|
22941
|
-
return
|
|
22951
|
+
return Ot(() => {
|
|
22942
22952
|
a.value = !0;
|
|
22943
22953
|
}), (s, l) => {
|
|
22944
22954
|
var u;
|
|
@@ -22981,7 +22991,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22981
22991
|
"5fe3dd96": `${p(Gx)}px`,
|
|
22982
22992
|
"480b2f5d": `${p(nm)}px`
|
|
22983
22993
|
}));
|
|
22984
|
-
const t = Ir(e, "open"), n = ae(!1), o = rt("confirm-modal"), { clear: i } =
|
|
22994
|
+
const t = Ir(e, "open"), n = ae(!1), o = rt("confirm-modal"), { clear: i } = Lt();
|
|
22985
22995
|
wD(async (...s) => {
|
|
22986
22996
|
n.value = !0;
|
|
22987
22997
|
const l = await o.value.open(...s);
|
|
@@ -23496,7 +23506,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23496
23506
|
onChange: s
|
|
23497
23507
|
}, {
|
|
23498
23508
|
default: R(() => [
|
|
23499
|
-
O(
|
|
23509
|
+
O(Mt, {
|
|
23500
23510
|
"as-child": "",
|
|
23501
23511
|
name: "config",
|
|
23502
23512
|
"reset-label-path": "reset"
|
|
@@ -23566,7 +23576,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23566
23576
|
onChange: r
|
|
23567
23577
|
}, {
|
|
23568
23578
|
default: R(() => [
|
|
23569
|
-
O(
|
|
23579
|
+
O(Mt, {
|
|
23570
23580
|
"as-child": "",
|
|
23571
23581
|
name: "config",
|
|
23572
23582
|
omit: o.value.nonRequired,
|
|
@@ -23574,7 +23584,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23574
23584
|
}, null, 8, ["omit"]),
|
|
23575
23585
|
O(ya, { class: "ff-advanced-fields" }, {
|
|
23576
23586
|
default: R(() => [
|
|
23577
|
-
O(
|
|
23587
|
+
O(Mt, {
|
|
23578
23588
|
"as-child": "",
|
|
23579
23589
|
name: "config",
|
|
23580
23590
|
omit: o.value.required,
|
|
@@ -24392,13 +24402,13 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24392
24402
|
model: "object",
|
|
24393
24403
|
schema: {
|
|
24394
24404
|
fields: be.values.fields.map((qe) => {
|
|
24395
|
-
const
|
|
24405
|
+
const Pt = Object.keys(qe)[0];
|
|
24396
24406
|
return {
|
|
24397
|
-
model:
|
|
24407
|
+
model: Pt,
|
|
24398
24408
|
type: "input",
|
|
24399
|
-
label: d(
|
|
24400
|
-
placeholder:
|
|
24401
|
-
inputType: qe[
|
|
24409
|
+
label: d(Pt),
|
|
24410
|
+
placeholder: Pt,
|
|
24411
|
+
inputType: qe[Pt].type
|
|
24402
24412
|
};
|
|
24403
24413
|
})
|
|
24404
24414
|
}
|
|
@@ -24412,26 +24422,26 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24412
24422
|
}), be.elements && be.type === "array") {
|
|
24413
24423
|
const qe = be.elements;
|
|
24414
24424
|
if (D[me].referenceable = qe.referenceable, D[me].elements = qe, ["string", "integer", "number"].includes(qe.type) && !qe.one_of) {
|
|
24415
|
-
const { id:
|
|
24416
|
-
nr.type = qe.type === "string" ? "text" : "number", D[me] = { id:
|
|
24425
|
+
const { id: Pt, help: ct, label: Be, hint: Ue, values: et, referenceable: _n, model: Kt } = D[me], { inputAttributes: nr, ...uh } = JSON.parse(JSON.stringify(Ye));
|
|
24426
|
+
nr.type = qe.type === "string" ? "text" : "number", D[me] = { id: Pt, help: ct, label: Be, hint: Ue, values: et, referenceable: _n, model: Kt, inputAttributes: nr, ...uh };
|
|
24417
24427
|
}
|
|
24418
24428
|
}
|
|
24419
24429
|
if (be.hint && (D[me].hint = be.hint), Ie && !Ie.overwriteDefault && Object.keys(Ie).forEach((qe) => {
|
|
24420
24430
|
if (qe === me) {
|
|
24421
|
-
const { help:
|
|
24422
|
-
D[me] = { help:
|
|
24431
|
+
const { help: Pt, label: ct, hint: Be, values: Ue, referenceable: et, elements: _n } = D[me], { help: Kt, ...nr } = Ie[qe];
|
|
24432
|
+
D[me] = { help: Pt, label: ct, hint: Be, values: Ue, referenceable: et, elements: _n, ...nr }, typeof Kt == "string" && (D[me].help = br.parse(Kt, { mangle: !1, headerIds: !1 }));
|
|
24423
24433
|
}
|
|
24424
24434
|
}), be.type === "array" && ((yn = be.elements) == null ? void 0 : yn.type) === "record" && Array.isArray(be.elements.fields)) {
|
|
24425
24435
|
let qe = {};
|
|
24426
24436
|
for (const ct of be.elements.fields)
|
|
24427
24437
|
qe = { ...qe, ...ct };
|
|
24428
|
-
const
|
|
24429
|
-
if (Array.isArray(
|
|
24438
|
+
const Pt = (ai = (ri = (ii = D[me]) == null ? void 0 : ii.items) == null ? void 0 : ri.schema) == null ? void 0 : ai.fields;
|
|
24439
|
+
if (Array.isArray(Pt))
|
|
24430
24440
|
for (const ct of D[me].items.schema.fields) {
|
|
24431
24441
|
const Be = (si = qe[ct.model]) == null ? void 0 : si.description;
|
|
24432
24442
|
ct.help === void 0 && typeof Be == "string" && (ct.help = br.parse(Be, { mangle: !1, headerIds: !1 }));
|
|
24433
24443
|
}
|
|
24434
|
-
if (
|
|
24444
|
+
if (Pt || (D[me].type = "array", D[me].newElementButtonLabelClasses = "kong-form-new-element-button-label", D[me].fieldClasses = "array-card-container-wrapper", D[me].itemContainerComponent = "FieldArrayCardContainer", D[me].items = {
|
|
24435
24445
|
type: "object",
|
|
24436
24446
|
schema: {
|
|
24437
24447
|
fields: Object.values(X(me, be.elements, {}, !0))
|
|
@@ -24487,8 +24497,8 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24487
24497
|
be.enum ? We = re(be.enum) : be.type === "boolean" ? We = "boolean" : be.type === "number" || be.type === "integer" ? (We = "number", D[me].inputType = "number") : be.type === "array" ? (We = "array", D[me].default = be.default, be.len_min > 0 && (D[me].submitWhenNull = !0)) : be.type === "foreign" ? We = "object" : be.default && Array.isArray(be.default) ? (We = "array", D[me].valueArrayType = re(be.default)) : be.default && (We = typeof be.default), D[me].valueType = We, be.fieldNameHasDashes && (D[me].fieldNameHasDashes = !0);
|
|
24488
24498
|
}), D;
|
|
24489
24499
|
}, q = () => {
|
|
24490
|
-
var me, We, Xe, Ct, yn, ii, ri, ai, si, qe,
|
|
24491
|
-
const L = ((me = rn[o.pluginType]) == null ? void 0 : me.scope.includes(xt.SERVICE)) ?? !0, oe = ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.ROUTE)) ?? !0, D = ((Xe = rn[o.pluginType]) == null ? void 0 : Xe.scope.includes(xt.CONSUMER)) ?? !0, Ce = o.config.disableConsumerGroupScope ? !1 : ((Ct = rn[o.pluginType]) == null ? void 0 : Ct.scope.includes(xt.CONSUMER_GROUP)) ?? !0, xe = o.config.entityType === "consumers" && !!o.config.entityId || !!((ii = (yn = _.value) == null ? void 0 : yn.consumer) != null && ii.id), Ie = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ai = (ri = _.value) == null ? void 0 : ri.consumer_group) != null && ai.id), ve = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (si = _.value) == null ? void 0 : si.service) != null && qe.id), _e = o.config.entityType === "routes" && !!o.config.entityId || !!((ct = (
|
|
24500
|
+
var me, We, Xe, Ct, yn, ii, ri, ai, si, qe, Pt, ct;
|
|
24501
|
+
const L = ((me = rn[o.pluginType]) == null ? void 0 : me.scope.includes(xt.SERVICE)) ?? !0, oe = ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.ROUTE)) ?? !0, D = ((Xe = rn[o.pluginType]) == null ? void 0 : Xe.scope.includes(xt.CONSUMER)) ?? !0, Ce = o.config.disableConsumerGroupScope ? !1 : ((Ct = rn[o.pluginType]) == null ? void 0 : Ct.scope.includes(xt.CONSUMER_GROUP)) ?? !0, xe = o.config.entityType === "consumers" && !!o.config.entityId || !!((ii = (yn = _.value) == null ? void 0 : yn.consumer) != null && ii.id), Ie = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ai = (ri = _.value) == null ? void 0 : ri.consumer_group) != null && ai.id), ve = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (si = _.value) == null ? void 0 : si.service) != null && qe.id), _e = o.config.entityType === "routes" && !!o.config.entityId || !!((ct = (Pt = _.value) == null ? void 0 : Pt.route) != null && ct.id), Oe = [], Le = (Be, Ue, et) => Be ? r("plugins.form.disable_source_scope_change", { scope: et }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: et }) : "", be = (Be) => {
|
|
24492
24502
|
var Ue, et;
|
|
24493
24503
|
return ((et = (Ue = o.scopedEntitiesPermissions) == null ? void 0 : Ue[Be]) == null ? void 0 : et.canRetrieve) === !1;
|
|
24494
24504
|
};
|
|
@@ -25184,7 +25194,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25184
25194
|
default: R(({ isAllowed: Oe }) => [
|
|
25185
25195
|
O(oe, {
|
|
25186
25196
|
class: ze(Oe || "disabled"),
|
|
25187
|
-
onClick:
|
|
25197
|
+
onClick: Dt((Le) => Oe && _e.type && ne(_e.type, ve), ["stop"])
|
|
25188
25198
|
}, {
|
|
25189
25199
|
default: R(() => [
|
|
25190
25200
|
De(fe(_e.badgeText), 1)
|
|
@@ -25207,14 +25217,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25207
25217
|
var Oe, Le;
|
|
25208
25218
|
return [
|
|
25209
25219
|
H("div", {
|
|
25210
|
-
onClick: G[3] || (G[3] =
|
|
25220
|
+
onClick: G[3] || (G[3] = Dt(() => {
|
|
25211
25221
|
}, ["stop"]))
|
|
25212
25222
|
}, [
|
|
25213
25223
|
O(Ce, {
|
|
25214
25224
|
disabled: !_e,
|
|
25215
25225
|
"disabled-tooltip-text": !_e && ((Le = (Oe = e.config).getToggleDisabledTooltip) == null ? void 0 : Le.call(Oe, ve)) || void 0,
|
|
25216
25226
|
"model-value": ve.enabled,
|
|
25217
|
-
onClick:
|
|
25227
|
+
onClick: Dt((be) => _e && re(ve), ["stop", "prevent"])
|
|
25218
25228
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
25219
25229
|
])
|
|
25220
25230
|
];
|
|
@@ -25498,7 +25508,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25498
25508
|
e.canDeleteCustomPlugin ? (w(), W(A, {
|
|
25499
25509
|
key: 0,
|
|
25500
25510
|
"data-testid": "edit-plugin-schema",
|
|
25501
|
-
onClick: b[0] || (b[0] =
|
|
25511
|
+
onClick: b[0] || (b[0] = Dt((M) => v(e.plugin.name, e.plugin.customPluginType), ["stop"]))
|
|
25502
25512
|
}, {
|
|
25503
25513
|
default: R(() => [
|
|
25504
25514
|
De(fe(p(r)("actions.edit")), 1)
|
|
@@ -25510,7 +25520,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25510
25520
|
danger: "",
|
|
25511
25521
|
"data-testid": "delete-plugin-schema",
|
|
25512
25522
|
"has-divider": "",
|
|
25513
|
-
onClick:
|
|
25523
|
+
onClick: Dt(h, ["stop"])
|
|
25514
25524
|
}, {
|
|
25515
25525
|
default: R(() => [
|
|
25516
25526
|
De(fe(p(r)("actions.delete")), 1)
|
|
@@ -25729,7 +25739,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25729
25739
|
var S, k;
|
|
25730
25740
|
(S = g.value) != null && S.length && (b.value = a(v.value, (k = g.value) == null ? void 0 : k.length));
|
|
25731
25741
|
};
|
|
25732
|
-
return
|
|
25742
|
+
return Ot(async () => {
|
|
25733
25743
|
await st(), h.value = Math.max(r(g.value), vs), A(), window == null || window.addEventListener("resize", _);
|
|
25734
25744
|
}), ml(() => {
|
|
25735
25745
|
window == null || window.removeEventListener("resize", _);
|
|
@@ -25846,7 +25856,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25846
25856
|
var v, g;
|
|
25847
25857
|
(v = d.value) != null && v.length && (f.value = s(u.value, (g = d.value) == null ? void 0 : g.length));
|
|
25848
25858
|
};
|
|
25849
|
-
return
|
|
25859
|
+
return Ot(async () => {
|
|
25850
25860
|
await st(), l.value = Math.max(a(d.value), ys), h(), window == null || window.addEventListener("resize", m);
|
|
25851
25861
|
}), ml(() => {
|
|
25852
25862
|
window == null || window.removeEventListener("resize", m);
|
|
@@ -26158,7 +26168,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26158
26168
|
B.value = await n.canCreateCustomPlugin(), re.value = await n.canEditCustomPlugin(), X.value = await n.canDeleteCustomPlugin();
|
|
26159
26169
|
});
|
|
26160
26170
|
const q = rt("filter-input");
|
|
26161
|
-
return
|
|
26171
|
+
return Ot(async () => {
|
|
26162
26172
|
var K, z;
|
|
26163
26173
|
(z = (K = q.value) == null ? void 0 : K.input) == null || z.focus();
|
|
26164
26174
|
try {
|