@kong-ui-public/entities-plugins 9.96.0 → 9.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +843 -818
- package/dist/entities-plugins.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/node/NodePropertiesPanel.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsMapField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsRecordField.vue.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var uh = Object.defineProperty;
|
|
2
2
|
var ch = (e, t, n) => t in e ? uh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ft = (e, t, n) => ch(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ve, toRef as Be, inject as rt, ref as re, computed as D, watch as Ne, onMounted as Pt, resolveComponent as
|
|
4
|
+
import { defineComponent as ve, toRef as Be, inject as rt, ref as re, computed as D, watch as Ne, onMounted as Pt, resolveComponent as we, createElementBlock as ee, openBlock as w, createVNode as P, markRaw as Oo, provide as st, createBlock as Y, withCtx as F, createElementVNode as H, createCommentVNode as Ce, Fragment as Le, renderList as Ve, toDisplayString as pe, unref as p, toValue as Pe, useAttrs as qn, useSlots as Jt, mergeProps as He, createSlots as nt, renderSlot as Fe, normalizeProps as gn, guardReactiveProps as xn, createPropsRestProxy as Qt, resolveDynamicComponent as mt, Transition as dh, mergeModels as ys, useModel as Ar, onBeforeMount as $n, createTextVNode as De, normalizeClass as ze, isRef as Ui, useTemplateRef as it, withKeys as pu, withModifiers as Lt, nextTick as at, useCssVars as dl, reactive as to, toRaw as Ir, watchEffect as Qd, shallowRef as ao, onBeforeUnmount as ia, getCurrentScope as ef, effectScope as tf, getCurrentInstance as Hi, onScopeDispose as bi, toRefs as fh, customRef as ph, h as Ze, normalizeStyle as Nt, onUnmounted as fl, isMemoSame as mh, readonly as gh, warn as hh, useId as nf, Teleport as of } from "vue";
|
|
5
5
|
import { useStringHelpers as ra, ConfigurationSchemaType as At, useAxios as Vn, useErrors as ei, useDebouncedFilter as vh, EntityFormBlock as mu, useHelpers as aa, EntityBaseFormType as zn, EntityBaseForm as yh, SupportedEntityType as _s, TerraformCodeBlock as _h, YamlCodeBlock as bh, JsonCodeBlock as wh, useTableState as Eh, useGatewayFeatureSupported as kh, useFetcher as Ch, useDeleteUrlBuilder as Sh, FetcherStatus as xh, EntityBaseTable as Ah, PermissionsWrapper as Un, TableTags as Ih, EntityFilter as Th, EntityToggleModal as $h, EntityDeleteModal as rf, EntityTypes as af, ConfigurationSchemaSection as Eo, useSchemaProvider as Nh, EntityBaseConfigCard as Oh, InternalLinkItem as si } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { marked as _r } from "marked";
|
|
7
7
|
import { useRouter as sa, useRoute as Ph } from "vue-router";
|
|
8
8
|
import { createI18n as bt, i18nTComponent as Mh } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginGroup as Xe, PLUGIN_GROUP_AND_SCOPE_MAP as ce, PluginScope as xt } from "@kong-ui-public/entities-plugins-metadata";
|
|
10
|
-
import { PluginGroup as
|
|
10
|
+
import { PluginGroup as DB, PluginScope as LB } from "@kong-ui-public/entities-plugins-metadata";
|
|
11
11
|
import { composables as Rh, FORMS_CONFIG as la, getSharedFormName as sf, customFields as bs, AUTOFILL_SLOT as ti, VueFormGenerator as wi, AUTOFILL_SLOT_NAME as no, FORMS_API_KEY as Fh, sharedForms as gu } from "@kong-ui-public/forms";
|
|
12
12
|
import { VaultSecretPickerProvider as Ba, VaultSecretPicker as Dh } from "@kong-ui-public/entities-vaults";
|
|
13
13
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
@@ -17,9 +17,9 @@ import { PartialType as nr, RedisConfigurationForm as cv } from "@kong-ui-public
|
|
|
17
17
|
import "@kong-ui-public/entities-redis-configurations/dist/style.css";
|
|
18
18
|
import * as or from "monaco-editor";
|
|
19
19
|
import { useManualRefHistory as dv, createInjectionState as ff, createGlobalState as fv, useLocalStorage as wu, createSharedComposable as pv, useEventListener as br, useElementBounding as Yn, useTimeoutFn as mv, useDraggable as gv, useScrollLock as hv } from "@vueuse/core";
|
|
20
|
-
import { z as
|
|
20
|
+
import { z as Ee } from "zod";
|
|
21
21
|
import { PluginIcon as ml } from "@kong-ui-public/entities-plugins-icon";
|
|
22
|
-
import { PluginIcon as
|
|
22
|
+
import { PluginIcon as BB, getPluginIconURL as jB } from "@kong-ui-public/entities-plugins-icon";
|
|
23
23
|
const vv = {
|
|
24
24
|
cancel: "Cancel",
|
|
25
25
|
view_configuration: "View Configuration",
|
|
@@ -803,12 +803,19 @@ const vv = {
|
|
|
803
803
|
name: "Name",
|
|
804
804
|
configuration: "Configuration",
|
|
805
805
|
input: {
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
label: "Inputs configuration",
|
|
807
|
+
placeholder: "Select a source",
|
|
808
|
+
add_button: "Add an input",
|
|
809
|
+
or: "or",
|
|
810
|
+
whole_input: "Whole input",
|
|
811
|
+
whole_input_tooltip: "Use one upstream output as this node's entire input value",
|
|
812
|
+
pre_field: "Per field",
|
|
813
|
+
pre_field_tooltip: "Bind individual fields to sources.",
|
|
814
|
+
source: "Source"
|
|
808
815
|
},
|
|
809
816
|
input_name: {
|
|
810
817
|
label: "Input name",
|
|
811
|
-
placeholder: "
|
|
818
|
+
placeholder: "Enter an input name"
|
|
812
819
|
},
|
|
813
820
|
timeout: {
|
|
814
821
|
label: "Timeout(s)"
|
|
@@ -1360,7 +1367,7 @@ const Wn = (e) => {
|
|
|
1360
1367
|
}), t({
|
|
1361
1368
|
clearValidationErrors: r
|
|
1362
1369
|
}), (b, _) => {
|
|
1363
|
-
const A =
|
|
1370
|
+
const A = we("KMultiselect");
|
|
1364
1371
|
return w(), ee("div", Lv, [
|
|
1365
1372
|
P(A, {
|
|
1366
1373
|
items: h.value,
|
|
@@ -4829,22 +4836,22 @@ const J1 = (e, t) => {
|
|
|
4829
4836
|
return s;
|
|
4830
4837
|
});
|
|
4831
4838
|
return (s, l) => {
|
|
4832
|
-
const u =
|
|
4839
|
+
const u = we("KAlert");
|
|
4833
4840
|
return w(), Y(u, { class: "plugin-field-rule-alerts" }, {
|
|
4834
4841
|
default: F(() => [
|
|
4835
|
-
|
|
4842
|
+
H("ul", null, [
|
|
4836
4843
|
(w(!0), ee(Le, null, Ve(a.value, (d, c) => (w(), ee("li", {
|
|
4837
4844
|
key: `simple-alert-${c}`
|
|
4838
|
-
},
|
|
4845
|
+
}, pe(d), 1))), 128)),
|
|
4839
4846
|
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (w(), ee("li", eE, [
|
|
4840
4847
|
(w(!0), ee(Le, null, Ve(t.rules.onlyOneOfMutuallyRequired, (d, c) => (w(), ee("div", {
|
|
4841
4848
|
key: `only-one-mutually-alert-${c}`
|
|
4842
4849
|
}, [
|
|
4843
|
-
|
|
4844
|
-
|
|
4850
|
+
H("div", null, pe(p(o)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
4851
|
+
H("ul", null, [
|
|
4845
4852
|
(w(!0), ee(Le, null, Ve(d, (f, m) => (w(), ee("li", {
|
|
4846
4853
|
key: `only-one-mutually-alert-${c}-combination-${m}`
|
|
4847
|
-
},
|
|
4854
|
+
}, pe(i(f)), 1))), 128))
|
|
4848
4855
|
])
|
|
4849
4856
|
]))), 128))
|
|
4850
4857
|
])) : Ce("", !0)
|
|
@@ -5243,7 +5250,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5243
5250
|
}), h = D(() => ({ referenceable: m.value })), v = Wi(s.ancestors), g = D(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : Yi(e.name) === "name");
|
|
5244
5251
|
return (y, b) => {
|
|
5245
5252
|
var A;
|
|
5246
|
-
const _ =
|
|
5253
|
+
const _ = we("KAlert");
|
|
5247
5254
|
return s.error ? (w(), Y(_, {
|
|
5248
5255
|
key: 0,
|
|
5249
5256
|
appearance: "danger",
|
|
@@ -5274,7 +5281,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5274
5281
|
name: "label-tooltip",
|
|
5275
5282
|
fn: F(() => [
|
|
5276
5283
|
Fe(y.$slots, "tooltip", {}, () => [
|
|
5277
|
-
|
|
5284
|
+
H("div", {
|
|
5278
5285
|
innerHTML: p(l).labelAttributes.info
|
|
5279
5286
|
}, null, 8, _E)
|
|
5280
5287
|
], !0)
|
|
@@ -5311,7 +5318,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5311
5318
|
}, s = en(i.path, n);
|
|
5312
5319
|
return (l, u) => {
|
|
5313
5320
|
var c;
|
|
5314
|
-
const d =
|
|
5321
|
+
const d = we("KAlert");
|
|
5315
5322
|
return i.error ? (w(), Y(d, {
|
|
5316
5323
|
key: 0,
|
|
5317
5324
|
appearance: "danger",
|
|
@@ -5326,7 +5333,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5326
5333
|
name: "tooltip",
|
|
5327
5334
|
fn: F(() => [
|
|
5328
5335
|
Fe(l.$slots, "tooltip", {}, () => [
|
|
5329
|
-
|
|
5336
|
+
H("div", {
|
|
5330
5337
|
innerHTML: p(s).labelAttributes.info
|
|
5331
5338
|
}, null, 8, wE)
|
|
5332
5339
|
], !0)
|
|
@@ -5458,7 +5465,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5458
5465
|
a.value = !!(n != null && n.value);
|
|
5459
5466
|
}), (g, y) => {
|
|
5460
5467
|
var _;
|
|
5461
|
-
const b =
|
|
5468
|
+
const b = we("KAlert");
|
|
5462
5469
|
return w(), ee(Le, null, [
|
|
5463
5470
|
(w(), Y(mt(g.$slots[p(qo)]))),
|
|
5464
5471
|
o.error ? (w(), Y(b, {
|
|
@@ -5482,7 +5489,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5482
5489
|
class: ["ff-object-field", { "ff-object-field-collapsed": !l.value }],
|
|
5483
5490
|
"data-testid": `ff-object-${o.path.value}`
|
|
5484
5491
|
}, g.$attrs), [
|
|
5485
|
-
|
|
5492
|
+
H("header", {
|
|
5486
5493
|
class: "ff-object-field-header",
|
|
5487
5494
|
"data-testid": `ff-object-header-${o.path.value}`
|
|
5488
5495
|
}, [
|
|
@@ -5496,7 +5503,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5496
5503
|
"tooltip-attributes": p(c).labelAttributes.tooltipAttributes
|
|
5497
5504
|
}), nt({
|
|
5498
5505
|
default: F(() => [
|
|
5499
|
-
De(
|
|
5506
|
+
De(pe(p(c).label) + " ", 1)
|
|
5500
5507
|
]),
|
|
5501
5508
|
_: 2
|
|
5502
5509
|
}, [
|
|
@@ -5504,7 +5511,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5504
5511
|
name: "tooltip",
|
|
5505
5512
|
fn: F(() => [
|
|
5506
5513
|
Fe(g.$slots, "tooltip", {}, () => [
|
|
5507
|
-
|
|
5514
|
+
H("div", {
|
|
5508
5515
|
innerHTML: p(c).labelAttributes.info
|
|
5509
5516
|
}, null, 8, AE)
|
|
5510
5517
|
], !0)
|
|
@@ -5512,7 +5519,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5512
5519
|
key: "0"
|
|
5513
5520
|
} : void 0
|
|
5514
5521
|
]), 1040, ["data-testid", "tooltip-attributes"]),
|
|
5515
|
-
|
|
5522
|
+
H("div", IE, [
|
|
5516
5523
|
g.collapsible && f.value ? (w(), Y(p(dn), {
|
|
5517
5524
|
key: 0,
|
|
5518
5525
|
appearance: "tertiary",
|
|
@@ -5601,7 +5608,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5601
5608
|
const c = Wi(i.ancestors);
|
|
5602
5609
|
return (f, m) => {
|
|
5603
5610
|
var v;
|
|
5604
|
-
const h =
|
|
5611
|
+
const h = we("KAlert");
|
|
5605
5612
|
return i.error ? (w(), Y(h, {
|
|
5606
5613
|
key: 0,
|
|
5607
5614
|
appearance: "danger",
|
|
@@ -5624,7 +5631,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5624
5631
|
name: "label-tooltip",
|
|
5625
5632
|
fn: F(() => [
|
|
5626
5633
|
Fe(f.$slots, "tooltip", {}, () => [
|
|
5627
|
-
|
|
5634
|
+
H("div", {
|
|
5628
5635
|
innerHTML: p(r).labelAttributes.info
|
|
5629
5636
|
}, null, 8, NE)
|
|
5630
5637
|
], !0)
|
|
@@ -5672,7 +5679,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5672
5679
|
}), d = D(() => u.value ? iv : rv);
|
|
5673
5680
|
return (c, f) => {
|
|
5674
5681
|
var h;
|
|
5675
|
-
const m =
|
|
5682
|
+
const m = we("KAlert");
|
|
5676
5683
|
return a.error ? (w(), Y(m, {
|
|
5677
5684
|
key: 0,
|
|
5678
5685
|
appearance: "danger",
|
|
@@ -5693,7 +5700,7 @@ const co = /* @__PURE__ */ ve({
|
|
|
5693
5700
|
name: "label-tooltip",
|
|
5694
5701
|
fn: F(() => [
|
|
5695
5702
|
Fe(c.$slots, "tooltip", {}, () => [
|
|
5696
|
-
|
|
5703
|
+
H("div", {
|
|
5697
5704
|
innerHTML: p(s).labelAttributes.info
|
|
5698
5705
|
}, null, 8, PE)
|
|
5699
5706
|
], !0)
|
|
@@ -5855,7 +5862,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
5855
5862
|
setValue: d
|
|
5856
5863
|
}), (S, k) => {
|
|
5857
5864
|
var Q;
|
|
5858
|
-
const R =
|
|
5865
|
+
const R = we("KAlert"), M = we("KLabel"), j = we("KButton");
|
|
5859
5866
|
return p(f).error ? (w(), Y(R, {
|
|
5860
5867
|
key: 0,
|
|
5861
5868
|
appearance: "danger",
|
|
@@ -5867,7 +5874,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
5867
5874
|
class: "ff-kv-field",
|
|
5868
5875
|
"data-testid": `ff-kv-${p(f).path.value}`
|
|
5869
5876
|
}, [
|
|
5870
|
-
|
|
5877
|
+
H("header", {
|
|
5871
5878
|
class: "ff-kv-field-header",
|
|
5872
5879
|
"data-testid": `ff-kv-header-${p(f).path.value}`
|
|
5873
5880
|
}, [
|
|
@@ -5876,7 +5883,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
5876
5883
|
"tooltip-attributes": p(c).labelAttributes.tooltipAttributes
|
|
5877
5884
|
}), nt({
|
|
5878
5885
|
default: F(() => [
|
|
5879
|
-
De(
|
|
5886
|
+
De(pe(p(c).label) + " ", 1)
|
|
5880
5887
|
]),
|
|
5881
5888
|
_: 2
|
|
5882
5889
|
}, [
|
|
@@ -5884,7 +5891,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
5884
5891
|
name: "tooltip",
|
|
5885
5892
|
fn: F(() => [
|
|
5886
5893
|
Fe(S.$slots, "tooltip", {}, () => [
|
|
5887
|
-
|
|
5894
|
+
H("div", {
|
|
5888
5895
|
innerHTML: p(c).labelAttributes.info
|
|
5889
5896
|
}, null, 8, DE)
|
|
5890
5897
|
], !0)
|
|
@@ -5991,7 +5998,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
5991
5998
|
d(c(u.value)) !== g && (u.value = g);
|
|
5992
5999
|
}, { immediate: !0 }), (v, g) => {
|
|
5993
6000
|
var b;
|
|
5994
|
-
const y =
|
|
6001
|
+
const y = we("KAlert");
|
|
5995
6002
|
return a.error ? (w(), Y(y, {
|
|
5996
6003
|
key: 0,
|
|
5997
6004
|
appearance: "danger",
|
|
@@ -6012,7 +6019,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6012
6019
|
name: "label-tooltip",
|
|
6013
6020
|
fn: F(() => [
|
|
6014
6021
|
Fe(v.$slots, "tooltip", {}, () => [
|
|
6015
|
-
|
|
6022
|
+
H("div", {
|
|
6016
6023
|
innerHTML: p(s).labelAttributes.info
|
|
6017
6024
|
}, null, 8, qE)
|
|
6018
6025
|
], !0)
|
|
@@ -6057,7 +6064,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6057
6064
|
l.value = f || "";
|
|
6058
6065
|
}, { immediate: !0 }), (f, m) => {
|
|
6059
6066
|
var v;
|
|
6060
|
-
const h =
|
|
6067
|
+
const h = we("KAlert");
|
|
6061
6068
|
return a.error ? (w(), Y(h, {
|
|
6062
6069
|
key: 0,
|
|
6063
6070
|
appearance: "danger",
|
|
@@ -6079,7 +6086,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6079
6086
|
name: "label-tooltip",
|
|
6080
6087
|
fn: F(() => [
|
|
6081
6088
|
Fe(f.$slots, "tooltip", {}, () => [
|
|
6082
|
-
|
|
6089
|
+
H("div", {
|
|
6083
6090
|
innerHTML: p(s).labelAttributes.info
|
|
6084
6091
|
}, null, 8, UE)
|
|
6085
6092
|
], !0)
|
|
@@ -6138,7 +6145,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6138
6145
|
name: "label-tooltip",
|
|
6139
6146
|
fn: F(() => [
|
|
6140
6147
|
Fe(v.$slots, "tooltip", {}, () => [
|
|
6141
|
-
|
|
6148
|
+
H("div", {
|
|
6142
6149
|
innerHTML: p(l).labelAttributes.info
|
|
6143
6150
|
}, null, 8, YE)
|
|
6144
6151
|
], !0)
|
|
@@ -6183,7 +6190,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6183
6190
|
}
|
|
6184
6191
|
});
|
|
6185
6192
|
return (i, r) => {
|
|
6186
|
-
const a =
|
|
6193
|
+
const a = we("KAlert");
|
|
6187
6194
|
return w(), ee(Le, null, [
|
|
6188
6195
|
(w(), Y(mt(i.$slots[p(qo)]))),
|
|
6189
6196
|
p(n).error ? (w(), Y(a, {
|
|
@@ -6258,7 +6265,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6258
6265
|
});
|
|
6259
6266
|
return (R, M) => {
|
|
6260
6267
|
var ne;
|
|
6261
|
-
const j =
|
|
6268
|
+
const j = we("KAlert"), Q = we("KLabel"), J = we("KButton"), x = we("KTabs");
|
|
6262
6269
|
return l.error ? (w(), Y(j, {
|
|
6263
6270
|
key: 0,
|
|
6264
6271
|
appearance: "danger",
|
|
@@ -6273,7 +6280,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6273
6280
|
}]),
|
|
6274
6281
|
"data-testid": `ff-array-${l.path.value}`
|
|
6275
6282
|
}, [
|
|
6276
|
-
|
|
6283
|
+
H("header", {
|
|
6277
6284
|
class: "ff-array-field-header",
|
|
6278
6285
|
"data-testid": `ff-array-header-${l.path.value}`
|
|
6279
6286
|
}, [
|
|
@@ -6282,7 +6289,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6282
6289
|
"tooltip-attributes": p(u).labelAttributes.tooltipAttributes
|
|
6283
6290
|
}), nt({
|
|
6284
6291
|
default: F(() => [
|
|
6285
|
-
De(
|
|
6292
|
+
De(pe(p(u).label) + " ", 1)
|
|
6286
6293
|
]),
|
|
6287
6294
|
_: 2
|
|
6288
6295
|
}, [
|
|
@@ -6290,7 +6297,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6290
6297
|
name: "tooltip",
|
|
6291
6298
|
fn: F(() => [
|
|
6292
6299
|
Fe(R.$slots, "tooltip", {}, () => [
|
|
6293
|
-
|
|
6300
|
+
H("div", {
|
|
6294
6301
|
innerHTML: p(u).labelAttributes.info
|
|
6295
6302
|
}, null, 8, QE)
|
|
6296
6303
|
], !0)
|
|
@@ -6324,7 +6331,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6324
6331
|
"data-testid": `ff-array-item-${l.path.value}.${z}`
|
|
6325
6332
|
}, {
|
|
6326
6333
|
default: F(() => [
|
|
6327
|
-
|
|
6334
|
+
H("div", tk, [
|
|
6328
6335
|
R.$slots.item ? Fe(R.$slots, "item", {
|
|
6329
6336
|
key: 0,
|
|
6330
6337
|
fieldName: String(z),
|
|
@@ -6369,7 +6376,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6369
6376
|
Ve(c.value, (I, z) => ({
|
|
6370
6377
|
name: p(f)(I, z),
|
|
6371
6378
|
fn: F(() => [
|
|
6372
|
-
|
|
6379
|
+
H("div", {
|
|
6373
6380
|
class: "ff-array-field-item",
|
|
6374
6381
|
"data-index": z,
|
|
6375
6382
|
"data-testid": `ff-array-item-${l.path.value}.${z}`
|
|
@@ -6388,7 +6395,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6388
6395
|
Ve(c.value, (I, z) => ({
|
|
6389
6396
|
name: `${p(f)(I, z)}-anchor`,
|
|
6390
6397
|
fn: F(() => [
|
|
6391
|
-
De(
|
|
6398
|
+
De(pe(h(I, z)) + " ", 1),
|
|
6392
6399
|
P(J, {
|
|
6393
6400
|
appearance: "tertiary",
|
|
6394
6401
|
"aria-label": p(i)("actions.remove_entity", { entity: p(i)("plugins.free-form.request-callout.entity_name") }),
|
|
@@ -6568,7 +6575,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6568
6575
|
"trigger-label": o.value ? p(t)("plugins.form.grouping.advanced_parameters.view") : p(t)("plugins.form.grouping.advanced_parameters.hide")
|
|
6569
6576
|
}, {
|
|
6570
6577
|
default: F(() => [
|
|
6571
|
-
|
|
6578
|
+
H("div", ak, [
|
|
6572
6579
|
p(n)("instance_name") ? (w(), Y(Tt, {
|
|
6573
6580
|
key: 0,
|
|
6574
6581
|
name: "instance_name"
|
|
@@ -6776,7 +6783,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6776
6783
|
return Ns(n.model, d);
|
|
6777
6784
|
});
|
|
6778
6785
|
return (d, c) => (w(), ee(Le, null, [
|
|
6779
|
-
|
|
6786
|
+
H("div", ck, [
|
|
6780
6787
|
P(p(wi), {
|
|
6781
6788
|
model: d.formModel,
|
|
6782
6789
|
options: d.formOptions,
|
|
@@ -6790,13 +6797,13 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6790
6797
|
class: "ff-form-config-fields"
|
|
6791
6798
|
}, {
|
|
6792
6799
|
title: F(() => [
|
|
6793
|
-
De(
|
|
6800
|
+
De(pe(p(t)("plugins.form.grouping.plugin_configuration.title")), 1)
|
|
6794
6801
|
]),
|
|
6795
6802
|
"visible-content": F(() => [
|
|
6796
|
-
De(
|
|
6803
|
+
De(pe(p(t)("plugins.form.grouping.plugin_configuration.description")), 1)
|
|
6797
6804
|
]),
|
|
6798
6805
|
default: F(() => [
|
|
6799
|
-
|
|
6806
|
+
H("div", dk, [
|
|
6800
6807
|
Fe(d.$slots, "default", {
|
|
6801
6808
|
class: "ff-form",
|
|
6802
6809
|
data: u.value,
|
|
@@ -6847,7 +6854,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6847
6854
|
};
|
|
6848
6855
|
return (u, d) => {
|
|
6849
6856
|
var m;
|
|
6850
|
-
const c =
|
|
6857
|
+
const c = we("KAlert"), f = we("KLabel");
|
|
6851
6858
|
return p(r).error ? (w(), Y(c, {
|
|
6852
6859
|
key: 0,
|
|
6853
6860
|
appearance: "danger",
|
|
@@ -6855,21 +6862,21 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6855
6862
|
}, null, 8, ["message"])) : (w(), ee("div", mk, [
|
|
6856
6863
|
P(f, gn(xn(p(a).labelAttributes)), nt({
|
|
6857
6864
|
default: F(() => [
|
|
6858
|
-
De(
|
|
6865
|
+
De(pe(p(a).label) + " ", 1)
|
|
6859
6866
|
]),
|
|
6860
6867
|
_: 2
|
|
6861
6868
|
}, [
|
|
6862
6869
|
(m = p(a).labelAttributes) != null && m.info ? {
|
|
6863
6870
|
name: "tooltip",
|
|
6864
6871
|
fn: F(() => [
|
|
6865
|
-
|
|
6872
|
+
H("div", {
|
|
6866
6873
|
innerHTML: p(a).labelAttributes.info
|
|
6867
6874
|
}, null, 8, gk)
|
|
6868
6875
|
]),
|
|
6869
6876
|
key: "0"
|
|
6870
6877
|
} : void 0
|
|
6871
6878
|
]), 1040),
|
|
6872
|
-
|
|
6879
|
+
H("div", hk, [
|
|
6873
6880
|
(w(!0), ee(Le, null, Ve(s.value, (h) => (w(), Y(p(Es), {
|
|
6874
6881
|
key: h.value,
|
|
6875
6882
|
"model-value": p(r).value.value,
|
|
@@ -6973,7 +6980,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6973
6980
|
}), n.config.limit = [y.config.limit], n.config.window_size = [y.config.window_size];
|
|
6974
6981
|
};
|
|
6975
6982
|
return (y, b) => {
|
|
6976
|
-
const _ =
|
|
6983
|
+
const _ = we("KLabel"), A = we("KButton"), S = we("KBadge"), k = we("KTooltip"), R = we("KCard");
|
|
6977
6984
|
return w(), Y(R, { class: "sp-form-request-limits" }, {
|
|
6978
6985
|
title: F(() => [
|
|
6979
6986
|
P(_, {
|
|
@@ -6982,15 +6989,15 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6982
6989
|
required: ""
|
|
6983
6990
|
}, {
|
|
6984
6991
|
default: F(() => [
|
|
6985
|
-
De(
|
|
6992
|
+
De(pe(p(t)("sp.request_limits.title")), 1)
|
|
6986
6993
|
]),
|
|
6987
6994
|
_: 1
|
|
6988
6995
|
}),
|
|
6989
|
-
|
|
6996
|
+
H("div", _k, pe(p(t)("sp.request_limits.subtitle")), 1)
|
|
6990
6997
|
]),
|
|
6991
6998
|
default: F(() => [
|
|
6992
|
-
|
|
6993
|
-
|
|
6999
|
+
H("div", bk, [
|
|
7000
|
+
H("div", wk, [
|
|
6994
7001
|
P(yk, {
|
|
6995
7002
|
items: c.value,
|
|
6996
7003
|
label: p(t)("sp.window_type.label"),
|
|
@@ -6998,7 +7005,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
6998
7005
|
"onUpdate:modelValue": b[0] || (b[0] = (M) => f.value = void 0)
|
|
6999
7006
|
}, null, 8, ["items", "label"])
|
|
7000
7007
|
]),
|
|
7001
|
-
|
|
7008
|
+
H("div", Ek, [
|
|
7002
7009
|
(w(!0), ee(Le, null, Ve(r.value, (M, j) => (w(), ee("div", {
|
|
7003
7010
|
key: p(a)(M, j)
|
|
7004
7011
|
}, [
|
|
@@ -7006,12 +7013,12 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7006
7013
|
for: `sp-form-request-limits-item-${j}-legend`
|
|
7007
7014
|
}, {
|
|
7008
7015
|
default: F(() => [
|
|
7009
|
-
De(
|
|
7016
|
+
De(pe(p(t)("sp.request_limits.label_index", { index: j + 1 })), 1)
|
|
7010
7017
|
]),
|
|
7011
7018
|
_: 2
|
|
7012
7019
|
}, 1032, ["for"]),
|
|
7013
|
-
|
|
7014
|
-
|
|
7020
|
+
H("div", kk, [
|
|
7021
|
+
H("legend", {
|
|
7015
7022
|
id: `sp-form-request-limits-item-${j}-legend`,
|
|
7016
7023
|
class: "sp-form-request-limits-inputs"
|
|
7017
7024
|
}, [
|
|
@@ -7019,14 +7026,14 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7019
7026
|
name: `$.config.limit.${j}`,
|
|
7020
7027
|
placeholder: p(t)("sp.request_limits.request_number")
|
|
7021
7028
|
}, null, 8, ["name", "placeholder"]),
|
|
7022
|
-
|
|
7029
|
+
H("div", null, pe(p(t)("sp.request_limits.interval_determiner")), 1),
|
|
7023
7030
|
P(zo, {
|
|
7024
7031
|
name: `$.config.window_size.${j}`,
|
|
7025
7032
|
placeholder: p(t)("sp.request_limits.time_interval")
|
|
7026
7033
|
}, null, 8, ["name", "placeholder"]),
|
|
7027
|
-
|
|
7034
|
+
H("div", null, pe(p(t)("sp.request_limits.seconds")), 1)
|
|
7028
7035
|
], 8, Ck),
|
|
7029
|
-
|
|
7036
|
+
H("div", Sk, [
|
|
7030
7037
|
P(A, {
|
|
7031
7038
|
appearance: "tertiary",
|
|
7032
7039
|
disabled: r.value.length <= 1,
|
|
@@ -7051,17 +7058,17 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7051
7058
|
]))), 128))
|
|
7052
7059
|
]),
|
|
7053
7060
|
h.value.length > 0 ? (w(), ee("div", xk, [
|
|
7054
|
-
|
|
7055
|
-
|
|
7061
|
+
H("div", null, pe(p(t)("sp.start_with_a_use_case")), 1),
|
|
7062
|
+
H("div", Ak, [
|
|
7056
7063
|
(w(!0), ee(Le, null, Ve(h.value, (M, j) => (w(), Y(k, {
|
|
7057
7064
|
key: `use-case-${j}`,
|
|
7058
7065
|
"max-width": "300"
|
|
7059
7066
|
}, {
|
|
7060
7067
|
content: F(() => [
|
|
7061
|
-
|
|
7062
|
-
b[1] || (b[1] =
|
|
7063
|
-
|
|
7064
|
-
|
|
7068
|
+
H("div", null, pe(M.description), 1),
|
|
7069
|
+
b[1] || (b[1] = H("br", null, null, -1)),
|
|
7070
|
+
H("div", null, pe(p(t)("sp.request_limits.label")) + ": " + pe(M.config.limit), 1),
|
|
7071
|
+
H("div", null, pe(p(t)("sp.request_limits.time_interval")) + ": " + pe(M.config.window_size), 1)
|
|
7065
7072
|
]),
|
|
7066
7073
|
default: F(() => [
|
|
7067
7074
|
P(S, {
|
|
@@ -7070,7 +7077,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7070
7077
|
onClick: () => v(M, `${d.value}-${j}`)
|
|
7071
7078
|
}, {
|
|
7072
7079
|
default: F(() => [
|
|
7073
|
-
De(
|
|
7080
|
+
De(pe(M.label), 1)
|
|
7074
7081
|
]),
|
|
7075
7082
|
_: 2
|
|
7076
7083
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -7093,7 +7100,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7093
7100
|
setup(e) {
|
|
7094
7101
|
const { t } = bt("en-us", wt);
|
|
7095
7102
|
return (n, o) => {
|
|
7096
|
-
const i =
|
|
7103
|
+
const i = we("KLabel");
|
|
7097
7104
|
return w(), ee("div", null, [
|
|
7098
7105
|
P(i, {
|
|
7099
7106
|
for: "sp-form-error-legend",
|
|
@@ -7105,18 +7112,18 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7105
7112
|
}
|
|
7106
7113
|
}, {
|
|
7107
7114
|
default: F(() => [
|
|
7108
|
-
De(
|
|
7115
|
+
De(pe(p(t)("sp.error_message.label")), 1)
|
|
7109
7116
|
]),
|
|
7110
7117
|
_: 1
|
|
7111
7118
|
}, 8, ["info"]),
|
|
7112
|
-
|
|
7119
|
+
H("legend", $k, [
|
|
7113
7120
|
P(zo, {
|
|
7114
7121
|
class: "input-error-code",
|
|
7115
7122
|
label: "",
|
|
7116
7123
|
name: "error_code",
|
|
7117
7124
|
placeholder: p(t)("sp.error_message.code_placeholder")
|
|
7118
7125
|
}, null, 8, ["placeholder"]),
|
|
7119
|
-
o[0] || (o[0] =
|
|
7126
|
+
o[0] || (o[0] = H("div", null, ":", -1)),
|
|
7120
7127
|
P(Vo, {
|
|
7121
7128
|
class: "input-error-message",
|
|
7122
7129
|
label: "",
|
|
@@ -7168,16 +7175,16 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7168
7175
|
};
|
|
7169
7176
|
}).sort((c, f) => c.order - f.order).filter((c) => c.type !== "hidden")), u = aE(i.configFields, i.pluginRedisFields || []), d = D(() => l.value.concat(u));
|
|
7170
7177
|
return (c, f) => {
|
|
7171
|
-
const m =
|
|
7178
|
+
const m = we("KCopy");
|
|
7172
7179
|
return w(), ee("div", Pk, [
|
|
7173
7180
|
(w(!0), ee(Le, null, Ve(d.value, ({ key: h, label: v, value: g, type: y }) => (w(), ee("div", {
|
|
7174
7181
|
key: h,
|
|
7175
7182
|
class: "partial-config-card-row"
|
|
7176
7183
|
}, [
|
|
7177
|
-
|
|
7178
|
-
|
|
7184
|
+
H("div", Mk, [
|
|
7185
|
+
H("div", Rk, pe(v), 1)
|
|
7179
7186
|
]),
|
|
7180
|
-
|
|
7187
|
+
H("div", {
|
|
7181
7188
|
class: "config-card-row-value",
|
|
7182
7189
|
"data-testid": `${h}-property-value`
|
|
7183
7190
|
}, [
|
|
@@ -7193,7 +7200,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7193
7200
|
], 8, Kk)) : (w(), ee("div", {
|
|
7194
7201
|
key: 1,
|
|
7195
7202
|
"data-testid": `${h}-plain-text`
|
|
7196
|
-
},
|
|
7203
|
+
}, pe(g), 9, Bk))
|
|
7197
7204
|
])) : (w(), ee("div", {
|
|
7198
7205
|
key: 0,
|
|
7199
7206
|
"data-testid": `${h}-no-value`
|
|
@@ -7249,7 +7256,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7249
7256
|
}));
|
|
7250
7257
|
}
|
|
7251
7258
|
), (m, h) => {
|
|
7252
|
-
const v =
|
|
7259
|
+
const v = we("KModal");
|
|
7253
7260
|
return w(), Y(v, {
|
|
7254
7261
|
class: "plugin-redis-partial-form",
|
|
7255
7262
|
"data-testid": "redis-partial-form-modal",
|
|
@@ -7259,7 +7266,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7259
7266
|
onCancel: f
|
|
7260
7267
|
}, {
|
|
7261
7268
|
footer: F(() => h[0] || (h[0] = [
|
|
7262
|
-
|
|
7269
|
+
H("div", { id: "km-modal-footer" }, null, -1)
|
|
7263
7270
|
])),
|
|
7264
7271
|
default: F(() => [
|
|
7265
7272
|
P(p(cv), {
|
|
@@ -7386,7 +7393,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7386
7393
|
B(q), f.value = !0;
|
|
7387
7394
|
} else b != null && b.value && (v.value = b.value);
|
|
7388
7395
|
}), (X, q) => {
|
|
7389
|
-
const Z =
|
|
7396
|
+
const Z = we("KBadge"), K = we("KRadio"), U = we("KSelect"), ae = we("KCard");
|
|
7390
7397
|
return u.value ? (w(), Y(ae, {
|
|
7391
7398
|
key: 0,
|
|
7392
7399
|
class: "redis-config-card",
|
|
@@ -7394,7 +7401,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7394
7401
|
title: p(o)("redis.title")
|
|
7395
7402
|
}, {
|
|
7396
7403
|
default: F(() => [
|
|
7397
|
-
|
|
7404
|
+
H("div", Qk, [
|
|
7398
7405
|
P(K, {
|
|
7399
7406
|
modelValue: f.value,
|
|
7400
7407
|
"onUpdate:modelValue": q[0] || (q[0] = (te) => f.value = te),
|
|
@@ -7408,7 +7415,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7408
7415
|
default: F(() => [
|
|
7409
7416
|
P(Z, { appearance: "success" }, {
|
|
7410
7417
|
default: F(() => [
|
|
7411
|
-
De(
|
|
7418
|
+
De(pe(p(o)("redis.shared_configuration.badge")), 1)
|
|
7412
7419
|
]),
|
|
7413
7420
|
_: 1
|
|
7414
7421
|
})
|
|
@@ -7427,8 +7434,8 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7427
7434
|
}, null, 8, ["modelValue", "description", "label"])
|
|
7428
7435
|
]),
|
|
7429
7436
|
f.value ? (w(), ee("div", eC, [
|
|
7430
|
-
|
|
7431
|
-
|
|
7437
|
+
H("div", tC, pe(p(o)("redis.shared_configuration.title")), 1),
|
|
7438
|
+
H("div", nC, [
|
|
7432
7439
|
P(U, {
|
|
7433
7440
|
class: "redis-config-select-trigger",
|
|
7434
7441
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -7442,36 +7449,36 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7442
7449
|
onQueryChange: p(A)
|
|
7443
7450
|
}, {
|
|
7444
7451
|
"selected-item-template": F(({ item: te }) => [
|
|
7445
|
-
|
|
7452
|
+
H("div", oC, pe(te.name), 1)
|
|
7446
7453
|
]),
|
|
7447
7454
|
"item-template": F(({ item: te }) => [
|
|
7448
|
-
|
|
7455
|
+
H("div", {
|
|
7449
7456
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
7450
7457
|
"data-testid": `redis-configuration-dropdown-item-${te.name}`
|
|
7451
7458
|
}, [
|
|
7452
|
-
|
|
7459
|
+
H("span", rC, pe(te.name), 1),
|
|
7453
7460
|
P(Z, {
|
|
7454
7461
|
appearance: "info",
|
|
7455
7462
|
class: "select-item-label"
|
|
7456
7463
|
}, {
|
|
7457
7464
|
default: F(() => [
|
|
7458
|
-
De(
|
|
7465
|
+
De(pe(te.tag), 1)
|
|
7459
7466
|
]),
|
|
7460
7467
|
_: 2
|
|
7461
7468
|
}, 1024)
|
|
7462
7469
|
], 8, iC)
|
|
7463
7470
|
]),
|
|
7464
7471
|
empty: F(() => [
|
|
7465
|
-
|
|
7472
|
+
H("div", aC, pe(p(o)("redis.shared_configuration.empty_state")), 1)
|
|
7466
7473
|
]),
|
|
7467
7474
|
"dropdown-footer-text": F(() => [
|
|
7468
|
-
|
|
7475
|
+
H("div", {
|
|
7469
7476
|
class: "new-redis-config-area",
|
|
7470
7477
|
"data-testid": "new-redis-config-area",
|
|
7471
7478
|
onClick: q[2] || (q[2] = () => d.value = !0)
|
|
7472
7479
|
}, [
|
|
7473
7480
|
P(p(Wt), { size: p(fi) }, null, 8, ["size"]),
|
|
7474
|
-
|
|
7481
|
+
H("span", null, pe(p(o)("redis.shared_configuration.create_new_configuration", { type: p(rE)(p(l)) })), 1)
|
|
7475
7482
|
])
|
|
7476
7483
|
]),
|
|
7477
7484
|
_: 1
|
|
@@ -7481,7 +7488,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7481
7488
|
key: 0,
|
|
7482
7489
|
"config-fields": c.value
|
|
7483
7490
|
}, null, 8, ["config-fields"])) : Ce("", !0),
|
|
7484
|
-
j.value ? (w(), ee("p", sC,
|
|
7491
|
+
j.value ? (w(), ee("p", sC, pe(j.value || p(o)("redis.shared_configuration.error")), 1)) : Ce("", !0)
|
|
7485
7492
|
])) : (w(), Y(Rt, He({ key: 1 }, i, {
|
|
7486
7493
|
"as-child": "",
|
|
7487
7494
|
"fields-order": p(fc),
|
|
@@ -7663,7 +7670,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7663
7670
|
n.onModelUpdated("", y);
|
|
7664
7671
|
});
|
|
7665
7672
|
}), (g, y) => {
|
|
7666
|
-
const b =
|
|
7673
|
+
const b = we("KCollapse");
|
|
7667
7674
|
return w(), ee("div", mC, [
|
|
7668
7675
|
P(p(mu), {
|
|
7669
7676
|
description: g.generalInfoDescription ?? p(t)("plugins.form.sections.general_info.description"),
|
|
@@ -7671,7 +7678,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7671
7678
|
title: g.generalInfoTitle ?? p(t)("plugins.form.sections.general_info.title")
|
|
7672
7679
|
}, nt({
|
|
7673
7680
|
default: F(() => [
|
|
7674
|
-
|
|
7681
|
+
H("div", gC, [
|
|
7675
7682
|
P(p(wi), {
|
|
7676
7683
|
model: g.formModel,
|
|
7677
7684
|
options: g.formOptions,
|
|
@@ -7679,7 +7686,7 @@ const RE = ["data-testid"], FE = ["data-testid"], DE = ["innerHTML"], LE = ["dat
|
|
|
7679
7686
|
onModelUpdated: g.onModelUpdated
|
|
7680
7687
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])
|
|
7681
7688
|
]),
|
|
7682
|
-
|
|
7689
|
+
H("div", hC, [
|
|
7683
7690
|
P(p(Es), He({
|
|
7684
7691
|
modelValue: m.value,
|
|
7685
7692
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => m.value = _),
|
|
@@ -9270,8 +9277,8 @@ const Dx = `nodes:
|
|
|
9270
9277
|
P(p(Lh))
|
|
9271
9278
|
]),
|
|
9272
9279
|
default: F(() => [
|
|
9273
|
-
|
|
9274
|
-
De(
|
|
9280
|
+
H("div", jx, [
|
|
9281
|
+
De(pe(p(o)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
9275
9282
|
(w(), ee(Le, null, Ve(qs, (f, m) => P(p(dn), {
|
|
9276
9283
|
key: m,
|
|
9277
9284
|
appearance: "secondary",
|
|
@@ -9279,7 +9286,7 @@ const Dx = `nodes:
|
|
|
9279
9286
|
onClick: (h) => l(m)
|
|
9280
9287
|
}, {
|
|
9281
9288
|
default: F(() => [
|
|
9282
|
-
De(
|
|
9289
|
+
De(pe(p(o)(`plugins.free-form.datakit.examples.${m}`)), 1)
|
|
9283
9290
|
]),
|
|
9284
9291
|
_: 2
|
|
9285
9292
|
}, 1032, ["onClick"])), 64))
|
|
@@ -9287,7 +9294,7 @@ const Dx = `nodes:
|
|
|
9287
9294
|
]),
|
|
9288
9295
|
_: 1
|
|
9289
9296
|
}),
|
|
9290
|
-
|
|
9297
|
+
H("div", qx, null, 512)
|
|
9291
9298
|
]));
|
|
9292
9299
|
}
|
|
9293
9300
|
}), Ux = /* @__PURE__ */ Me(zx, [["__scopeId", "data-v-f15f69c5"]]), tm = 44, Hx = 220, nm = 366, Gx = tm + parseFloat(dp), _a = [
|
|
@@ -9333,7 +9340,7 @@ const Dx = `nodes:
|
|
|
9333
9340
|
};
|
|
9334
9341
|
function Xx(e, t) {
|
|
9335
9342
|
return w(), ee("svg", Wx, t[0] || (t[0] = [
|
|
9336
|
-
|
|
9343
|
+
H("mask", {
|
|
9337
9344
|
id: "mask0_6709_29145",
|
|
9338
9345
|
height: "16",
|
|
9339
9346
|
maskUnits: "userSpaceOnUse",
|
|
@@ -9342,14 +9349,14 @@ function Xx(e, t) {
|
|
|
9342
9349
|
x: "0",
|
|
9343
9350
|
y: "0"
|
|
9344
9351
|
}, [
|
|
9345
|
-
|
|
9352
|
+
H("rect", {
|
|
9346
9353
|
fill: "currentColor",
|
|
9347
9354
|
height: "16",
|
|
9348
9355
|
width: "16"
|
|
9349
9356
|
})
|
|
9350
9357
|
], -1),
|
|
9351
|
-
|
|
9352
|
-
|
|
9358
|
+
H("g", { mask: "url(#mask0_6709_29145)" }, [
|
|
9359
|
+
H("path", {
|
|
9353
9360
|
d: "M2.66663 8.66675V7.33341H7.73329L11.0666 4.00008H9.33329V2.66675H13.3333V6.66675H12V4.93341L8.26663 8.66675H2.66663ZM9.33329 13.3334V12.0001H11.0666L8.93329 9.90008L9.89996 8.93342L12 11.0667V9.33341H13.3333V13.3334H9.33329Z",
|
|
9354
9361
|
fill: "currentColor"
|
|
9355
9362
|
})
|
|
@@ -9365,7 +9372,7 @@ const Zx = /* @__PURE__ */ Me(Yx, [["render", Xx]]), Jx = {}, Qx = {
|
|
|
9365
9372
|
};
|
|
9366
9373
|
function eA(e, t) {
|
|
9367
9374
|
return w(), ee("svg", Qx, t[0] || (t[0] = [
|
|
9368
|
-
|
|
9375
|
+
H("path", {
|
|
9369
9376
|
d: "M480-192q-120 0-205.5-85T192-486l-57 57-51-51 144-144 144 144-51 51-57-57q-2 94 62 158t154 64q22 0 42-4t39-12l53 53q-30 16-63.5 25.5T480-192Zm252-144L588-480l51-51 57 57q2-94-62-158t-154-64q-21 0-41.5 4T399-680l-53-53q30-16 64-25.5t70-9.5q121 0 206 85t82 209l57-57 51 51-144 144Z",
|
|
9370
9377
|
fill: "currentColor"
|
|
9371
9378
|
}, null, -1)
|
|
@@ -9848,7 +9855,7 @@ const [dA, fA] = ff(
|
|
|
9848
9855
|
clone: Xn,
|
|
9849
9856
|
onHistoryChange: (E) => {
|
|
9850
9857
|
var C;
|
|
9851
|
-
E !== "clear" && ((C = o.onChange) == null || C.call(o,
|
|
9858
|
+
E !== "clear" && ((C = o.onChange) == null || C.call(o, me(), be()));
|
|
9852
9859
|
}
|
|
9853
9860
|
}), u = re(!1), d = re(/* @__PURE__ */ new Set());
|
|
9854
9861
|
function c() {
|
|
@@ -9969,8 +9976,8 @@ const [dA, fA] = ff(
|
|
|
9969
9976
|
function K(E, C, N, T = !0, V) {
|
|
9970
9977
|
const $ = R(E);
|
|
9971
9978
|
if (!$) return;
|
|
9972
|
-
const
|
|
9973
|
-
|
|
9979
|
+
const G = N ?? !$.expanded[C];
|
|
9980
|
+
G !== !!$.expanded[C] && ($.expanded[C] = G, T && l.commit(V ?? `toggle:${E}:${C}`));
|
|
9974
9981
|
}
|
|
9975
9982
|
function U(E, C, N = !0, T) {
|
|
9976
9983
|
const V = R(E);
|
|
@@ -9980,7 +9987,7 @@ const [dA, fA] = ff(
|
|
|
9980
9987
|
const V = R(E);
|
|
9981
9988
|
if (!V) return;
|
|
9982
9989
|
const $ = V.fields[C];
|
|
9983
|
-
if ($.some((
|
|
9990
|
+
if ($.some((G) => G.name === N)) {
|
|
9984
9991
|
console.warn(`[addField] field "${N}" already exists on ${C}.`);
|
|
9985
9992
|
return;
|
|
9986
9993
|
}
|
|
@@ -9989,18 +9996,18 @@ const [dA, fA] = ff(
|
|
|
9989
9996
|
function te(E, C, N, T = !0) {
|
|
9990
9997
|
const V = R(E);
|
|
9991
9998
|
if (!V) return;
|
|
9992
|
-
const $ = V.fields.input,
|
|
9999
|
+
const $ = V.fields.input, G = V.fields.output, O = $.find((W) => W.id === C) ?? G.find((W) => W.id === C);
|
|
9993
10000
|
O && (O.name = N, T && l.commit());
|
|
9994
10001
|
}
|
|
9995
10002
|
function de(E, C, N = !0, T = !0) {
|
|
9996
10003
|
const V = R(E);
|
|
9997
10004
|
if (!V) return;
|
|
9998
|
-
const $ = V.fields.input,
|
|
10005
|
+
const $ = V.fields.input, G = V.fields.output, O = $.findIndex((se) => se.id === C);
|
|
9999
10006
|
O >= 0 && $.splice(O, 1);
|
|
10000
|
-
const W =
|
|
10007
|
+
const W = G.findIndex(
|
|
10001
10008
|
(se) => se.id === C
|
|
10002
10009
|
);
|
|
10003
|
-
W >= 0 &&
|
|
10010
|
+
W >= 0 && G.splice(W, 1), V.fields.input = $, V.fields.output = G, N && (i.value.edges = i.value.edges.filter(
|
|
10004
10011
|
(se) => se.sourceField !== C && se.targetField !== C
|
|
10005
10012
|
));
|
|
10006
10013
|
const L = A();
|
|
@@ -10054,37 +10061,37 @@ const [dA, fA] = ff(
|
|
|
10054
10061
|
xe(T.id, !1);
|
|
10055
10062
|
C && l.commit();
|
|
10056
10063
|
}
|
|
10057
|
-
function
|
|
10064
|
+
function me() {
|
|
10058
10065
|
var C, N, T, V, $;
|
|
10059
10066
|
const E = [];
|
|
10060
|
-
for (const
|
|
10061
|
-
if (un(
|
|
10067
|
+
for (const G of i.value.nodes) {
|
|
10068
|
+
if (un(G.type))
|
|
10062
10069
|
continue;
|
|
10063
10070
|
let O;
|
|
10064
10071
|
const W = {};
|
|
10065
10072
|
let L;
|
|
10066
10073
|
const se = {};
|
|
10067
|
-
for (const ue of i.value.edges.filter((Se) => Se.target ===
|
|
10074
|
+
for (const ue of i.value.edges.filter((Se) => Se.target === G.id)) {
|
|
10068
10075
|
const Se = R(ue.source);
|
|
10069
10076
|
if (!Se)
|
|
10070
10077
|
continue;
|
|
10071
|
-
const Ie = (C = Fn(Se, "output", ue.sourceField)) == null ? void 0 : C.name,
|
|
10072
|
-
ye ? W[ye] =
|
|
10078
|
+
const Ie = (C = Fn(Se, "output", ue.sourceField)) == null ? void 0 : C.name, ge = Ie ? `${Se.name}.${Ie}` : Se.name, ye = (N = Fn(G, "input", ue.targetField)) == null ? void 0 : N.name;
|
|
10079
|
+
ye ? W[ye] = ge : O === void 0 && (O = ge);
|
|
10073
10080
|
}
|
|
10074
|
-
for (const ue of i.value.edges.filter((Se) => Se.source ===
|
|
10081
|
+
for (const ue of i.value.edges.filter((Se) => Se.source === G.id)) {
|
|
10075
10082
|
const Se = R(ue.target);
|
|
10076
10083
|
if (!Se)
|
|
10077
10084
|
continue;
|
|
10078
10085
|
const Ie = Se.type;
|
|
10079
10086
|
if (!un(Ie) || !((T = Ea[Ie].io) != null && T.input))
|
|
10080
10087
|
continue;
|
|
10081
|
-
const
|
|
10088
|
+
const ge = (V = Fn(Se, "input", ue.targetField)) == null ? void 0 : V.name, ye = ge ? `${Se.name}.${ge}` : Se.name, je = ($ = Fn(G, "output", ue.sourceField)) == null ? void 0 : $.name;
|
|
10082
10089
|
je ? se[je] = ye : L === void 0 && (L = ye);
|
|
10083
10090
|
}
|
|
10084
10091
|
const he = {
|
|
10085
|
-
...Xn(
|
|
10086
|
-
name:
|
|
10087
|
-
type:
|
|
10092
|
+
...Xn(G.config),
|
|
10093
|
+
name: G.name,
|
|
10094
|
+
type: G.type
|
|
10088
10095
|
};
|
|
10089
10096
|
Object.keys(W).length > 0 ? he.inputs = W : O !== void 0 && (he.input = O), Object.keys(se).length > 0 ? he.outputs = se : L !== void 0 && (he.output = L), E.push(he);
|
|
10090
10097
|
}
|
|
@@ -10148,7 +10155,7 @@ const [dA, fA] = ff(
|
|
|
10148
10155
|
disconnectInEdges: oe,
|
|
10149
10156
|
disconnectOutEdges: le,
|
|
10150
10157
|
// serialization
|
|
10151
|
-
toConfigNodes:
|
|
10158
|
+
toConfigNodes: me,
|
|
10152
10159
|
toUINodes: be,
|
|
10153
10160
|
load: _e,
|
|
10154
10161
|
// history
|
|
@@ -13650,11 +13657,11 @@ function ig(e) {
|
|
|
13650
13657
|
emits: A
|
|
13651
13658
|
} = Je(), { onStart: S, onDrag: k, onStop: R, onClick: M, el: j, disabled: Q, id: J, selectable: x, dragHandle: ne } = e, I = ao(!1);
|
|
13652
13659
|
let z = [], B, ie = null, X = { x: void 0, y: void 0 }, q = { x: 0, y: 0 }, Z = null, K = !1, U = 0, ae = !1;
|
|
13653
|
-
const te = qN(), de = ({ x:
|
|
13654
|
-
X = { x:
|
|
13660
|
+
const te = qN(), de = ({ x: me, y: be }) => {
|
|
13661
|
+
X = { x: me, y: be };
|
|
13655
13662
|
let _e = !1;
|
|
13656
13663
|
if (z = z.map((E) => {
|
|
13657
|
-
const C = { x:
|
|
13664
|
+
const C = { x: me - E.distance.x, y: be - E.distance.y }, { computedPosition: N } = iu(
|
|
13658
13665
|
E,
|
|
13659
13666
|
n.value ? Ta(C, o.value) : C,
|
|
13660
13667
|
A.error,
|
|
@@ -13673,16 +13680,16 @@ function ig(e) {
|
|
|
13673
13680
|
}, fe = () => {
|
|
13674
13681
|
if (!ie)
|
|
13675
13682
|
return;
|
|
13676
|
-
const [
|
|
13677
|
-
if (
|
|
13683
|
+
const [me, be] = Jm(q, ie, d.value);
|
|
13684
|
+
if (me !== 0 || be !== 0) {
|
|
13678
13685
|
const _e = {
|
|
13679
|
-
x: (X.x ?? 0) -
|
|
13686
|
+
x: (X.x ?? 0) - me / l.value.zoom,
|
|
13680
13687
|
y: (X.y ?? 0) - be / l.value.zoom
|
|
13681
13688
|
};
|
|
13682
|
-
f({ x:
|
|
13689
|
+
f({ x: me, y: be }) && de(_e);
|
|
13683
13690
|
}
|
|
13684
13691
|
U = requestAnimationFrame(fe);
|
|
13685
|
-
}, ke = (
|
|
13692
|
+
}, ke = (me, be) => {
|
|
13686
13693
|
K = !0;
|
|
13687
13694
|
const _e = m(J);
|
|
13688
13695
|
!g.value && !h.value && _e && (_e.selected || y()), _e && Pe(x) && g.value && ol(
|
|
@@ -13694,29 +13701,29 @@ function ig(e) {
|
|
|
13694
13701
|
!1,
|
|
13695
13702
|
be
|
|
13696
13703
|
);
|
|
13697
|
-
const E = te(
|
|
13704
|
+
const E = te(me.sourceEvent);
|
|
13698
13705
|
if (X = E, z = bN(r.value, c.value, E, m, J), z.length) {
|
|
13699
13706
|
const [C, N] = os({
|
|
13700
13707
|
id: J,
|
|
13701
13708
|
dragItems: z,
|
|
13702
13709
|
findNode: m
|
|
13703
13710
|
});
|
|
13704
|
-
S({ event:
|
|
13711
|
+
S({ event: me.sourceEvent, node: C, nodes: N });
|
|
13705
13712
|
}
|
|
13706
|
-
}, xe = (
|
|
13713
|
+
}, xe = (me, be) => {
|
|
13707
13714
|
var _e;
|
|
13708
|
-
|
|
13709
|
-
}, oe = (
|
|
13710
|
-
const _e = te(
|
|
13715
|
+
me.sourceEvent.type === "touchmove" && me.sourceEvent.touches.length > 1 || (s.value === 0 && ke(me, be), X = te(me.sourceEvent), ie = ((_e = t.value) == null ? void 0 : _e.getBoundingClientRect()) || null, q = cn(me.sourceEvent, ie));
|
|
13716
|
+
}, oe = (me, be) => {
|
|
13717
|
+
const _e = te(me.sourceEvent);
|
|
13711
13718
|
if (!ae && K && u.value && (ae = !0, fe()), !K) {
|
|
13712
13719
|
const E = _e.xSnapped - (X.x ?? 0), C = _e.ySnapped - (X.y ?? 0);
|
|
13713
|
-
Math.sqrt(E * E + C * C) > s.value && ke(
|
|
13720
|
+
Math.sqrt(E * E + C * C) > s.value && ke(me, be);
|
|
13714
13721
|
}
|
|
13715
|
-
(X.x !== _e.xSnapped || X.y !== _e.ySnapped) && z.length && K && (Z =
|
|
13716
|
-
}, le = (
|
|
13722
|
+
(X.x !== _e.xSnapped || X.y !== _e.ySnapped) && z.length && K && (Z = me.sourceEvent, q = cn(me.sourceEvent, ie), de(_e));
|
|
13723
|
+
}, le = (me) => {
|
|
13717
13724
|
let be = !1;
|
|
13718
13725
|
if (!K && !I.value && !h.value) {
|
|
13719
|
-
const _e =
|
|
13726
|
+
const _e = me.sourceEvent, E = te(_e), C = E.xSnapped - (X.x ?? 0), N = E.ySnapped - (X.y ?? 0), T = Math.sqrt(C * C + N * N);
|
|
13720
13727
|
T !== 0 && T <= s.value && (M == null || M(_e), be = !0);
|
|
13721
13728
|
}
|
|
13722
13729
|
if (z.length && !be) {
|
|
@@ -13726,14 +13733,14 @@ function ig(e) {
|
|
|
13726
13733
|
dragItems: z,
|
|
13727
13734
|
findNode: m
|
|
13728
13735
|
});
|
|
13729
|
-
R({ event:
|
|
13736
|
+
R({ event: me.sourceEvent, node: _e, nodes: E });
|
|
13730
13737
|
}
|
|
13731
13738
|
z = [], I.value = !1, ae = !1, K = !1, X = { x: void 0, y: void 0 }, cancelAnimationFrame(U);
|
|
13732
13739
|
};
|
|
13733
|
-
return Ne([() => Pe(Q), j], ([
|
|
13740
|
+
return Ne([() => Pe(Q), j], ([me, be], _e, E) => {
|
|
13734
13741
|
if (be) {
|
|
13735
13742
|
const C = Gt(be);
|
|
13736
|
-
|
|
13743
|
+
me || (B = fT().on("start", (N) => xe(N, be)).on("drag", (N) => oe(N, be)).on("end", (N) => le(N)).filter((N) => {
|
|
13737
13744
|
const T = N.target, V = Pe(ne);
|
|
13738
13745
|
return !N.button && (!i.value || !sd(T, `.${i.value}`, be) && (!V || sd(T, V, be)));
|
|
13739
13746
|
}), C.call(B)), E(() => {
|
|
@@ -13841,7 +13848,7 @@ function rg({
|
|
|
13841
13848
|
const X = Pe(n) === "target", q = ru(B), Z = ed(B.target);
|
|
13842
13849
|
if (q && B.button === 0 || !q) {
|
|
13843
13850
|
let K = function(W) {
|
|
13844
|
-
E = cn(W,
|
|
13851
|
+
E = cn(W, me), de = NN(
|
|
13845
13852
|
qi(E, k.value, !1, [1, 1]),
|
|
13846
13853
|
d.value,
|
|
13847
13854
|
Q.value,
|
|
@@ -13897,24 +13904,24 @@ function rg({
|
|
|
13897
13904
|
let te = Pe(o) || j.value || pr;
|
|
13898
13905
|
!te && ae && (te = (X ? ae.isValidSourcePos : ae.isValidTargetPos) || pr);
|
|
13899
13906
|
let de, fe = 0;
|
|
13900
|
-
const { x: ke, y: xe } = cn(B), oe = Z == null ? void 0 : Z.elementFromPoint(ke, xe), le = eg(Pe(i), oe),
|
|
13901
|
-
if (!
|
|
13907
|
+
const { x: ke, y: xe } = cn(B), oe = Z == null ? void 0 : Z.elementFromPoint(ke, xe), le = eg(Pe(i), oe), me = (ie = l.value) == null ? void 0 : ie.getBoundingClientRect();
|
|
13908
|
+
if (!me || !le)
|
|
13902
13909
|
return;
|
|
13903
13910
|
const be = MN(Pe(t), le, Pe(e), Q.value, u.value);
|
|
13904
13911
|
if (!be)
|
|
13905
13912
|
return;
|
|
13906
|
-
let _e, E = cn(B,
|
|
13913
|
+
let _e, E = cn(B, me), C = !1;
|
|
13907
13914
|
const N = () => {
|
|
13908
13915
|
if (!h.value)
|
|
13909
13916
|
return;
|
|
13910
|
-
const [W, L] = Jm(E,
|
|
13917
|
+
const [W, L] = Jm(E, me, v.value);
|
|
13911
13918
|
y({ x: W, y: L }), fe = requestAnimationFrame(N);
|
|
13912
13919
|
}, T = {
|
|
13913
13920
|
...be,
|
|
13914
13921
|
nodeId: Pe(t),
|
|
13915
13922
|
type: le,
|
|
13916
13923
|
position: be.position
|
|
13917
|
-
}, V = Q.value.get(Pe(t)),
|
|
13924
|
+
}, V = Q.value.get(Pe(t)), G = {
|
|
13918
13925
|
inProgress: !0,
|
|
13919
13926
|
isValid: null,
|
|
13920
13927
|
from: Xo(V, T, Te.Left, !0),
|
|
@@ -13935,11 +13942,11 @@ function rg({
|
|
|
13935
13942
|
...E
|
|
13936
13943
|
},
|
|
13937
13944
|
{
|
|
13938
|
-
x: ke -
|
|
13939
|
-
y: xe -
|
|
13945
|
+
x: ke - me.left,
|
|
13946
|
+
y: xe - me.top
|
|
13940
13947
|
}
|
|
13941
13948
|
), S.connectStart({ event: B, nodeId: Pe(t), handleId: Pe(e), handleType: le });
|
|
13942
|
-
let O =
|
|
13949
|
+
let O = G;
|
|
13943
13950
|
Z.addEventListener("mousemove", K), Z.addEventListener("mouseup", U), Z.addEventListener("touchmove", K), Z.addEventListener("touchend", U);
|
|
13944
13951
|
}
|
|
13945
13952
|
}
|
|
@@ -14588,15 +14595,15 @@ function QN(e, t, n) {
|
|
|
14588
14595
|
}, c = (E, C, N) => {
|
|
14589
14596
|
var T, V;
|
|
14590
14597
|
const $ = [];
|
|
14591
|
-
for (const
|
|
14598
|
+
for (const G of E) {
|
|
14592
14599
|
const O = {
|
|
14593
|
-
id:
|
|
14600
|
+
id: G.id,
|
|
14594
14601
|
type: "position",
|
|
14595
14602
|
dragging: N,
|
|
14596
|
-
from:
|
|
14603
|
+
from: G.from
|
|
14597
14604
|
};
|
|
14598
|
-
if (C && (O.position =
|
|
14599
|
-
const W = u(
|
|
14605
|
+
if (C && (O.position = G.position, G.parentNode)) {
|
|
14606
|
+
const W = u(G.parentNode);
|
|
14600
14607
|
O.position = {
|
|
14601
14608
|
x: O.position.x - (((T = W == null ? void 0 : W.computedPosition) == null ? void 0 : T.x) ?? 0),
|
|
14602
14609
|
y: O.position.y - (((V = W == null ? void 0 : W.computedPosition) == null ? void 0 : V.y) ?? 0)
|
|
@@ -14613,12 +14620,12 @@ function QN(e, t, n) {
|
|
|
14613
14620
|
return;
|
|
14614
14621
|
const N = window.getComputedStyle(C), { m22: T } = new window.DOMMatrixReadOnly(N.transform), V = [];
|
|
14615
14622
|
for (const $ of E) {
|
|
14616
|
-
const
|
|
14623
|
+
const G = $, O = u(G.id);
|
|
14617
14624
|
if (O) {
|
|
14618
|
-
const W = Ia(
|
|
14619
|
-
if (!!(W.width && W.height && (O.dimensions.width !== W.width || O.dimensions.height !== W.height ||
|
|
14620
|
-
const se =
|
|
14621
|
-
O.dimensions = W, O.handleBounds.source = dd("source",
|
|
14625
|
+
const W = Ia(G.nodeElement);
|
|
14626
|
+
if (!!(W.width && W.height && (O.dimensions.width !== W.width || O.dimensions.height !== W.height || G.forceUpdate))) {
|
|
14627
|
+
const se = G.nodeElement.getBoundingClientRect();
|
|
14628
|
+
O.dimensions = W, O.handleBounds.source = dd("source", G.nodeElement, se, T, O.id), O.handleBounds.target = dd("target", G.nodeElement, se, T, O.id), V.push({
|
|
14622
14629
|
id: O.id,
|
|
14623
14630
|
type: "dimensions",
|
|
14624
14631
|
dimensions: W
|
|
@@ -14631,14 +14638,14 @@ function QN(e, t, n) {
|
|
|
14631
14638
|
}), V.length && e.hooks.nodesChange.trigger(V);
|
|
14632
14639
|
}, m = (E, C) => {
|
|
14633
14640
|
const N = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set();
|
|
14634
|
-
for (const
|
|
14635
|
-
ro(
|
|
14641
|
+
for (const G of E)
|
|
14642
|
+
ro(G) ? N.add(G.id) : jn(G) && T.add(G.id);
|
|
14636
14643
|
const V = Rn(t.value, N, !0), $ = Rn(n.value, T);
|
|
14637
14644
|
if (e.multiSelectionActive) {
|
|
14638
|
-
for (const
|
|
14639
|
-
V.push(Mn(
|
|
14640
|
-
for (const
|
|
14641
|
-
$.push(Mn(
|
|
14645
|
+
for (const G of N)
|
|
14646
|
+
V.push(Mn(G, C));
|
|
14647
|
+
for (const G of T)
|
|
14648
|
+
$.push(Mn(G, C));
|
|
14642
14649
|
}
|
|
14643
14650
|
V.length && e.hooks.nodesChange.trigger(V), $.length && e.hooks.edgesChange.trigger($);
|
|
14644
14651
|
}, h = (E) => {
|
|
@@ -14735,11 +14742,11 @@ function QN(e, t, n) {
|
|
|
14735
14742
|
T.push(id(V));
|
|
14736
14743
|
T.length && e.hooks.edgesChange.trigger(T);
|
|
14737
14744
|
}, z = (E, C = !0, N = !1) => {
|
|
14738
|
-
const T = E instanceof Function ? E(e.nodes) : E, V = Array.isArray(T) ? T : [T], $ = [],
|
|
14745
|
+
const T = E instanceof Function ? E(e.nodes) : E, V = Array.isArray(T) ? T : [T], $ = [], G = [];
|
|
14739
14746
|
function O(L) {
|
|
14740
14747
|
const se = s(L);
|
|
14741
14748
|
for (const he of se)
|
|
14742
|
-
(!pt(he.deletable) || he.deletable) &&
|
|
14749
|
+
(!pt(he.deletable) || he.deletable) && G.push(ad(he.id, he.source, he.target, he.sourceHandle, he.targetHandle));
|
|
14743
14750
|
}
|
|
14744
14751
|
function W(L) {
|
|
14745
14752
|
const se = [];
|
|
@@ -14757,7 +14764,7 @@ function QN(e, t, n) {
|
|
|
14757
14764
|
const se = typeof L == "string" ? u(L) : L;
|
|
14758
14765
|
se && (pt(se.deletable) && !se.deletable || ($.push(rd(se.id)), C && O([se]), N && W(se.id)));
|
|
14759
14766
|
}
|
|
14760
|
-
|
|
14767
|
+
G.length && e.hooks.edgesChange.trigger(G), $.length && e.hooks.nodesChange.trigger($);
|
|
14761
14768
|
}, B = (E) => {
|
|
14762
14769
|
const C = E instanceof Function ? E(e.edges) : E, N = Array.isArray(C) ? C : [C], T = [];
|
|
14763
14770
|
for (const V of N) {
|
|
@@ -14779,7 +14786,7 @@ function QN(e, t, n) {
|
|
|
14779
14786
|
return !1;
|
|
14780
14787
|
const V = e.edges.indexOf(T), $ = DN(E, C, T, N, e.hooks.error.trigger);
|
|
14781
14788
|
if ($) {
|
|
14782
|
-
const [
|
|
14789
|
+
const [G] = as(
|
|
14783
14790
|
[$],
|
|
14784
14791
|
e.isValidConnection,
|
|
14785
14792
|
u,
|
|
@@ -14789,7 +14796,7 @@ function QN(e, t, n) {
|
|
|
14789
14796
|
e.nodes,
|
|
14790
14797
|
e.edges
|
|
14791
14798
|
);
|
|
14792
|
-
return e.edges = e.edges.map((O, W) => W === V ?
|
|
14799
|
+
return e.edges = e.edges.map((O, W) => W === V ? G : O), rs(e.connectionLookup, n.value, [G]), G;
|
|
14793
14800
|
}
|
|
14794
14801
|
return !1;
|
|
14795
14802
|
}, X = (E, C, N = { replace: !1 }) => {
|
|
@@ -14826,14 +14833,14 @@ function QN(e, t, n) {
|
|
|
14826
14833
|
const [T, V, $] = fe(E);
|
|
14827
14834
|
if (!T)
|
|
14828
14835
|
return [];
|
|
14829
|
-
const
|
|
14836
|
+
const G = [];
|
|
14830
14837
|
for (const O of N || e.nodes) {
|
|
14831
14838
|
if (!$ && (O.id === V.id || !O.computedPosition))
|
|
14832
14839
|
continue;
|
|
14833
14840
|
const W = Zr(O), L = Jr(W, T);
|
|
14834
|
-
(C && L > 0 || L >= Number(T.width) * Number(T.height)) &&
|
|
14841
|
+
(C && L > 0 || L >= Number(T.width) * Number(T.height)) && G.push(O);
|
|
14835
14842
|
}
|
|
14836
|
-
return
|
|
14843
|
+
return G;
|
|
14837
14844
|
}, xe = (E, C, N = !0) => {
|
|
14838
14845
|
const [T] = fe(E);
|
|
14839
14846
|
if (!T)
|
|
@@ -14844,10 +14851,10 @@ function QN(e, t, n) {
|
|
|
14844
14851
|
const { viewport: C, dimensions: N, d3Zoom: T, d3Selection: V, translateExtent: $ } = e;
|
|
14845
14852
|
if (!T || !V || !E.x && !E.y)
|
|
14846
14853
|
return !1;
|
|
14847
|
-
const
|
|
14854
|
+
const G = Wo.translate(C.x + E.x, C.y + E.y).scale(C.zoom), O = [
|
|
14848
14855
|
[0, 0],
|
|
14849
14856
|
[N.width, N.height]
|
|
14850
|
-
], W = T.constrain()(
|
|
14857
|
+
], W = T.constrain()(G, O, $), L = e.viewport.x !== W.x || e.viewport.y !== W.y || e.viewport.zoom !== W.k;
|
|
14851
14858
|
return T.transform(V, W), L;
|
|
14852
14859
|
}, le = (E) => {
|
|
14853
14860
|
const C = E instanceof Function ? E(e) : E, N = [
|
|
@@ -14866,8 +14873,8 @@ function QN(e, t, n) {
|
|
|
14866
14873
|
pt(C.maxZoom) && S(C.maxZoom), pt(C.minZoom) && A(C.minZoom), pt(C.translateExtent) && k(C.translateExtent);
|
|
14867
14874
|
};
|
|
14868
14875
|
for (const $ of Object.keys(C)) {
|
|
14869
|
-
const
|
|
14870
|
-
![...JN, ...N].includes(
|
|
14876
|
+
const G = $, O = C[G];
|
|
14877
|
+
![...JN, ...N].includes(G) && pt(O) && (e[G] = O);
|
|
14871
14878
|
}
|
|
14872
14879
|
Us(() => e.d3Zoom).not.toBeNull().then(V), e.initialized || (e.initialized = !0);
|
|
14873
14880
|
};
|
|
@@ -14932,7 +14939,7 @@ function QN(e, t, n) {
|
|
|
14932
14939
|
computedPosition: T,
|
|
14933
14940
|
handleBounds: V,
|
|
14934
14941
|
selected: $,
|
|
14935
|
-
dimensions:
|
|
14942
|
+
dimensions: G,
|
|
14936
14943
|
isParent: O,
|
|
14937
14944
|
resizing: W,
|
|
14938
14945
|
dragging: L,
|
|
@@ -14942,7 +14949,7 @@ function QN(e, t, n) {
|
|
|
14942
14949
|
E.push(he);
|
|
14943
14950
|
}
|
|
14944
14951
|
for (const N of e.edges) {
|
|
14945
|
-
const { selected: T, sourceNode: V, targetNode: $, events:
|
|
14952
|
+
const { selected: T, sourceNode: V, targetNode: $, events: G, ...O } = N;
|
|
14946
14953
|
C.push(O);
|
|
14947
14954
|
}
|
|
14948
14955
|
return JSON.parse(
|
|
@@ -14956,9 +14963,9 @@ function QN(e, t, n) {
|
|
|
14956
14963
|
);
|
|
14957
14964
|
},
|
|
14958
14965
|
fromObject: (E) => new Promise((C) => {
|
|
14959
|
-
const { nodes: N, edges: T, position: V, zoom: $, viewport:
|
|
14960
|
-
if (N && Q(N), T && J(T),
|
|
14961
|
-
const O = (
|
|
14966
|
+
const { nodes: N, edges: T, position: V, zoom: $, viewport: G } = E;
|
|
14967
|
+
if (N && Q(N), T && J(T), G != null && G.x && (G != null && G.y) || V) {
|
|
14968
|
+
const O = (G == null ? void 0 : G.x) || V[0], W = (G == null ? void 0 : G.y) || V[1], L = (G == null ? void 0 : G.zoom) || $ || e.viewport.zoom;
|
|
14962
14969
|
return Us(() => o.value.viewportInitialized).toBe(!0).then(() => {
|
|
14963
14970
|
o.value.setViewport({
|
|
14964
14971
|
x: O,
|
|
@@ -15185,7 +15192,7 @@ const iO = Ma, rO = ["transform"], aO = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15185
15192
|
rx: r.labelBgBorderRadius,
|
|
15186
15193
|
ry: r.labelBgBorderRadius
|
|
15187
15194
|
}, null, 12, aO)) : Ce("", !0),
|
|
15188
|
-
|
|
15195
|
+
H("text", He(r.$attrs, {
|
|
15189
15196
|
ref_key: "el",
|
|
15190
15197
|
ref: n,
|
|
15191
15198
|
class: "vue-flow__edge-text",
|
|
@@ -15195,7 +15202,7 @@ const iO = Ma, rO = ["transform"], aO = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15195
15202
|
}), [
|
|
15196
15203
|
Fe(r.$slots, "default", {}, () => [
|
|
15197
15204
|
typeof r.label != "string" ? (w(), Y(mt(r.label), { key: 0 })) : (w(), ee(Le, { key: 1 }, [
|
|
15198
|
-
De(
|
|
15205
|
+
De(pe(r.label), 1)
|
|
15199
15206
|
], 64))
|
|
15200
15207
|
])
|
|
15201
15208
|
], 16, sO)
|
|
@@ -15229,7 +15236,7 @@ const iO = Ma, rO = ["transform"], aO = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15229
15236
|
interactionEl: o,
|
|
15230
15237
|
labelEl: i
|
|
15231
15238
|
}), (a, s) => (w(), ee(Le, null, [
|
|
15232
|
-
|
|
15239
|
+
H("path", He(p(r), {
|
|
15233
15240
|
id: a.id,
|
|
15234
15241
|
ref_key: "pathEl",
|
|
15235
15242
|
ref: n,
|
|
@@ -15947,7 +15954,7 @@ const $O = {
|
|
|
15947
15954
|
class: ze(["vue-flow__nodesselection vue-flow__container", p(i)]),
|
|
15948
15955
|
style: Nt({ transform: `translate(${p(n).x}px,${p(n).y}px) scale(${p(n).zoom})` })
|
|
15949
15956
|
}, [
|
|
15950
|
-
|
|
15957
|
+
H("div", {
|
|
15951
15958
|
ref_key: "el",
|
|
15952
15959
|
ref: l,
|
|
15953
15960
|
class: ze([{ dragging: p(u) }, "vue-flow__nodesselection-rect"]),
|
|
@@ -16051,7 +16058,7 @@ const FO = {
|
|
|
16051
16058
|
y: ke < oe ? ke : oe,
|
|
16052
16059
|
width: Math.abs(fe - xe),
|
|
16053
16060
|
height: Math.abs(ke - oe)
|
|
16054
|
-
},
|
|
16061
|
+
}, me = M.value, be = j.value;
|
|
16055
16062
|
M.value = new Set(
|
|
16056
16063
|
Wm(n.value, le, o.value, h.value === ou.Partial, !0).map(
|
|
16057
16064
|
(E) => E.id
|
|
@@ -16066,7 +16073,7 @@ const FO = {
|
|
|
16066
16073
|
T && (T.selectable ?? _e) && j.value.add(N);
|
|
16067
16074
|
}
|
|
16068
16075
|
}
|
|
16069
|
-
if (!md(
|
|
16076
|
+
if (!md(me, M.value)) {
|
|
16070
16077
|
const E = Rn(_.value, M.value, !0);
|
|
16071
16078
|
i.nodesChange(E);
|
|
16072
16079
|
}
|
|
@@ -16165,30 +16172,30 @@ const FO = {
|
|
|
16165
16172
|
$a("Viewport element is missing");
|
|
16166
16173
|
return;
|
|
16167
16174
|
}
|
|
16168
|
-
const oe = Q.value, le = oe.getBoundingClientRect(),
|
|
16175
|
+
const oe = Q.value, le = oe.getBoundingClientRect(), me = rN().clickDistance(J.value).scaleExtent([t.value, n.value]).translateExtent(i.value), be = Gt(oe).call(me), _e = be.on("wheel.zoom"), E = Wo.translate(o.value.x ?? 0, o.value.y ?? 0).scale(mo(o.value.zoom ?? 1, t.value, n.value)), C = [
|
|
16169
16176
|
[0, 0],
|
|
16170
16177
|
[le.width, le.height]
|
|
16171
|
-
], N =
|
|
16172
|
-
|
|
16178
|
+
], N = me.constrain()(E, C, i.value);
|
|
16179
|
+
me.transform(be, N), me.wheelDelta(de), k.value = me, R.value = be, M.value = _e, j.value = { x: N.x, y: N.y, zoom: N.k }, me.on("start", (T) => {
|
|
16173
16180
|
var V;
|
|
16174
16181
|
if (!T.sourceEvent)
|
|
16175
16182
|
return null;
|
|
16176
16183
|
B = T.sourceEvent.button, x.value = !0;
|
|
16177
16184
|
const $ = ke(T.transform);
|
|
16178
16185
|
((V = T.sourceEvent) == null ? void 0 : V.type) === "mousedown" && (S.value = !0), ie = $, b.viewportChangeStart($), b.moveStart({ event: T, flowTransform: $ });
|
|
16179
|
-
}),
|
|
16186
|
+
}), me.on("end", (T) => {
|
|
16180
16187
|
if (!T.sourceEvent)
|
|
16181
16188
|
return null;
|
|
16182
16189
|
if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !z && b.paneContextMenu(T.sourceEvent), z = !1, fe(ie, T.transform)) {
|
|
16183
16190
|
const V = ke(T.transform);
|
|
16184
16191
|
ie = V, b.viewportChangeEnd(V), b.moveEnd({ event: T, flowTransform: V });
|
|
16185
16192
|
}
|
|
16186
|
-
}),
|
|
16193
|
+
}), me.filter((T) => {
|
|
16187
16194
|
var V;
|
|
16188
|
-
const $ = Z.value || h.value,
|
|
16195
|
+
const $ = Z.value || h.value, G = m.value && T.ctrlKey, O = T.button;
|
|
16189
16196
|
if (O === 1 && T.type === "mousedown" && (xe(T, "vue-flow__node") || xe(T, "vue-flow__edge")))
|
|
16190
16197
|
return !0;
|
|
16191
|
-
if (!K.value && !$ && !U.value && !f.value && !m.value || A.value || !f.value && T.type === "dblclick" || xe(T, g.value) && T.type === "wheel" || xe(T, y.value) && (T.type !== "wheel" || U.value && T.type === "wheel" && !Z.value) || !m.value && T.ctrlKey && T.type === "wheel" || !$ && !U.value && !
|
|
16198
|
+
if (!K.value && !$ && !U.value && !f.value && !m.value || A.value || !f.value && T.type === "dblclick" || xe(T, g.value) && T.type === "wheel" || xe(T, y.value) && (T.type !== "wheel" || U.value && T.type === "wheel" && !Z.value) || !m.value && T.ctrlKey && T.type === "wheel" || !$ && !U.value && !G && T.type === "wheel")
|
|
16192
16199
|
return !1;
|
|
16193
16200
|
if (!m && T.type === "touchstart" && ((V = T.touches) == null ? void 0 : V.length) > 1)
|
|
16194
16201
|
return T.preventDefault(), !1;
|
|
@@ -16199,7 +16206,7 @@ const FO = {
|
|
|
16199
16206
|
}), Ne(
|
|
16200
16207
|
[A, K],
|
|
16201
16208
|
() => {
|
|
16202
|
-
A.value && !x.value ?
|
|
16209
|
+
A.value && !x.value ? me.on("zoom", null) : A.value || me.on("zoom", (T) => {
|
|
16203
16210
|
j.value = { x: T.transform.x, y: T.transform.y, zoom: T.transform.k };
|
|
16204
16211
|
const V = ke(T.transform);
|
|
16205
16212
|
z = te(K.value, B ?? 0), b.viewportChange(V), b.move({ event: T, flowTransform: V });
|
|
@@ -16221,12 +16228,12 @@ const FO = {
|
|
|
16221
16228
|
const O = be.property("__zoom").k || 1, W = Qr();
|
|
16222
16229
|
if (!X.value && T.ctrlKey && m.value && W) {
|
|
16223
16230
|
const Oe = on(T), ue = de(T), Se = O * 2 ** ue;
|
|
16224
|
-
|
|
16231
|
+
me.scaleTo(be, Se, Oe, T);
|
|
16225
16232
|
return;
|
|
16226
16233
|
}
|
|
16227
16234
|
const L = T.deltaMode === 1 ? 20 : 1;
|
|
16228
16235
|
let se = u.value === Ai.Vertical ? 0 : T.deltaX * L, he = u.value === Ai.Horizontal ? 0 : T.deltaY * L;
|
|
16229
|
-
!W && T.shiftKey && u.value !== Ai.Vertical && !se && he && (se = he, he = 0),
|
|
16236
|
+
!W && T.shiftKey && u.value !== Ai.Vertical && !se && he && (se = he, he = 0), me.translateBy(
|
|
16230
16237
|
be,
|
|
16231
16238
|
-(se / O) * d.value,
|
|
16232
16239
|
-(he / O) * d.value
|
|
@@ -16240,8 +16247,8 @@ const FO = {
|
|
|
16240
16247
|
) : typeof _e < "u" && be.on(
|
|
16241
16248
|
"wheel.zoom",
|
|
16242
16249
|
function(T, V) {
|
|
16243
|
-
const $ = !v.value && T.type === "wheel" && !T.ctrlKey,
|
|
16244
|
-
if (!
|
|
16250
|
+
const $ = !v.value && T.type === "wheel" && !T.ctrlKey, G = Z.value || h.value, O = m.value && T.ctrlKey;
|
|
16251
|
+
if (!G && !l.value && !O && T.type === "wheel" || $ || xe(T, g.value))
|
|
16245
16252
|
return null;
|
|
16246
16253
|
T.preventDefault(), _e.call(this, T, V);
|
|
16247
16254
|
},
|
|
@@ -16305,11 +16312,11 @@ const FO = {
|
|
|
16305
16312
|
setup(e) {
|
|
16306
16313
|
const { id: t, disableKeyboardA11y: n, ariaLiveMessage: o } = Je();
|
|
16307
16314
|
return (i, r) => (w(), ee(Le, null, [
|
|
16308
|
-
|
|
16315
|
+
H("div", {
|
|
16309
16316
|
id: `${p(Bm)}-${p(t)}`,
|
|
16310
16317
|
style: { display: "none" }
|
|
16311
|
-
}, " Press enter or space to select a node. " +
|
|
16312
|
-
|
|
16318
|
+
}, " Press enter or space to select a node. " + pe(p(n) ? "" : "You can then use the arrow keys to move the node around.") + " You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ", 9, qO),
|
|
16319
|
+
H("div", {
|
|
16313
16320
|
id: `${p(jm)}-${p(t)}`,
|
|
16314
16321
|
style: { display: "none" }
|
|
16315
16322
|
}, " Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ", 8, VO),
|
|
@@ -16319,7 +16326,7 @@ const FO = {
|
|
|
16319
16326
|
"aria-live": "assertive",
|
|
16320
16327
|
"aria-atomic": "true",
|
|
16321
16328
|
style: { position: "absolute", width: "1px", height: "1px", margin: "-1px", border: "0", padding: "0", overflow: "hidden", clip: "rect(0px, 0px, 0px, 0px)", "clip-path": "inset(100%)" }
|
|
16322
|
-
},
|
|
16329
|
+
}, pe(p(o)), 9, zO))
|
|
16323
16330
|
], 64));
|
|
16324
16331
|
}
|
|
16325
16332
|
});
|
|
@@ -16393,7 +16400,7 @@ const bd = au, XO = ve({
|
|
|
16393
16400
|
let T = _.value.template ?? l.value[C];
|
|
16394
16401
|
if (typeof T == "string" && R) {
|
|
16395
16402
|
const V = Object.keys(R.appContext.components);
|
|
16396
|
-
V && V.includes(C) && (T =
|
|
16403
|
+
V && V.includes(C) && (T = we(C, !1));
|
|
16397
16404
|
}
|
|
16398
16405
|
return T && typeof T != "string" ? T : (r.error(new _t(ht.EDGE_TYPE_MISSING, T)), !1);
|
|
16399
16406
|
}), { handlePointerDown: Z } = rg({
|
|
@@ -16418,9 +16425,9 @@ const bd = au, XO = ve({
|
|
|
16418
16425
|
let V;
|
|
16419
16426
|
o.value === Bn.Strict ? V = C.handleBounds.source : V = [...C.handleBounds.source || [], ...C.handleBounds.target || []];
|
|
16420
16427
|
const $ = ld(V, _.value.sourceHandle);
|
|
16421
|
-
let
|
|
16422
|
-
o.value === Bn.Strict ?
|
|
16423
|
-
const O = ld(
|
|
16428
|
+
let G;
|
|
16429
|
+
o.value === Bn.Strict ? G = N.handleBounds.target : G = [...N.handleBounds.target || [], ...N.handleBounds.source || []];
|
|
16430
|
+
const O = ld(G, _.value.targetHandle), W = ($ == null ? void 0 : $.position) || Te.Bottom, L = (O == null ? void 0 : O.position) || Te.Top, { x: se, y: he } = Xo(C, $, W), { x: $e, y: Oe } = Xo(N, O, L);
|
|
16424
16431
|
return _.value.sourceX = se, _.value.sourceY = he, _.value.targetX = $e, _.value.targetY = Oe, Ze(
|
|
16425
16432
|
"g",
|
|
16426
16433
|
{
|
|
@@ -16450,7 +16457,7 @@ const bd = au, XO = ve({
|
|
|
16450
16457
|
onDblclick: xe,
|
|
16451
16458
|
onMouseenter: oe,
|
|
16452
16459
|
onMousemove: le,
|
|
16453
|
-
onMouseleave:
|
|
16460
|
+
onMouseleave: me,
|
|
16454
16461
|
onKeyDown: B.value ? E : void 0
|
|
16455
16462
|
},
|
|
16456
16463
|
[
|
|
@@ -16559,7 +16566,7 @@ const bd = au, XO = ve({
|
|
|
16559
16566
|
function le(C) {
|
|
16560
16567
|
A.mouseMove({ event: C, edge: _.value });
|
|
16561
16568
|
}
|
|
16562
|
-
function
|
|
16569
|
+
function me(C) {
|
|
16563
16570
|
A.mouseLeave({ event: C, edge: _.value });
|
|
16564
16571
|
}
|
|
16565
16572
|
function be(C) {
|
|
@@ -16754,7 +16761,7 @@ const bd = au, XO = ve({
|
|
|
16754
16761
|
return s.sort((u, d) => u.id.localeCompare(d.id));
|
|
16755
16762
|
});
|
|
16756
16763
|
return (a, s) => (w(), ee("svg", oP, [
|
|
16757
|
-
|
|
16764
|
+
H("defs", null, [
|
|
16758
16765
|
(w(!0), ee(Le, null, Ve(r.value, (l) => (w(), Y(nP, {
|
|
16759
16766
|
id: l.id,
|
|
16760
16767
|
key: l.id,
|
|
@@ -16830,7 +16837,7 @@ const bd = au, XO = ve({
|
|
|
16830
16837
|
let V = x.template || c.value[N];
|
|
16831
16838
|
if (typeof V == "string" && Q) {
|
|
16832
16839
|
const $ = Object.keys(Q.appContext.components);
|
|
16833
|
-
$ && $.includes(N) && (V =
|
|
16840
|
+
$ && $.includes(N) && (V = we(N, !1));
|
|
16834
16841
|
}
|
|
16835
16842
|
return V && typeof V != "string" ? V : (a.error(new _t(ht.NODE_TYPE_MISSING, V)), !1);
|
|
16836
16843
|
}), ae = ig({
|
|
@@ -16900,13 +16907,13 @@ const bd = au, XO = ve({
|
|
|
16900
16907
|
return (N = ne.value) == null ? void 0 : N.dimensions.width;
|
|
16901
16908
|
}
|
|
16902
16909
|
],
|
|
16903
|
-
([N, T, V, $,
|
|
16910
|
+
([N, T, V, $, G, O]) => {
|
|
16904
16911
|
const W = {
|
|
16905
16912
|
x: N,
|
|
16906
16913
|
y: T,
|
|
16907
16914
|
z: O + (m.value && x.selected ? 1e3 : 0)
|
|
16908
16915
|
};
|
|
16909
|
-
typeof V < "u" && typeof $ < "u" ? x.computedPosition = _N({ x: V, y: $, z:
|
|
16916
|
+
typeof V < "u" && typeof $ < "u" ? x.computedPosition = _N({ x: V, y: $, z: G }, W) : x.computedPosition = W;
|
|
16910
16917
|
},
|
|
16911
16918
|
{ flush: "post", immediate: !0 }
|
|
16912
16919
|
), Ne([() => x.extent, f], ([N, T], [V, $]) => {
|
|
@@ -16944,7 +16951,7 @@ const bd = au, XO = ve({
|
|
|
16944
16951
|
...x.domAttributes,
|
|
16945
16952
|
onMouseenter: oe,
|
|
16946
16953
|
onMousemove: le,
|
|
16947
|
-
onMouseleave:
|
|
16954
|
+
onMouseleave: me,
|
|
16948
16955
|
onContextmenu: be,
|
|
16949
16956
|
onClick: E,
|
|
16950
16957
|
onDblclick: _e,
|
|
@@ -16994,7 +17001,7 @@ const bd = au, XO = ve({
|
|
|
16994
17001
|
function le(N) {
|
|
16995
17002
|
ae != null && ae.value || I.mouseMove({ event: N, node: x });
|
|
16996
17003
|
}
|
|
16997
|
-
function
|
|
17004
|
+
function me(N) {
|
|
16998
17005
|
ae != null && ae.value || I.mouseLeave({ event: N, node: x });
|
|
16999
17006
|
}
|
|
17000
17007
|
function be(N) {
|
|
@@ -17099,7 +17106,7 @@ function mP() {
|
|
|
17099
17106
|
}
|
|
17100
17107
|
});
|
|
17101
17108
|
}
|
|
17102
|
-
const gP = /* @__PURE__ */
|
|
17109
|
+
const gP = /* @__PURE__ */ H("div", { class: "vue-flow__edge-labels" }, null, -1), hP = {
|
|
17103
17110
|
name: "VueFlow",
|
|
17104
17111
|
compatConfig: { MODE: 3 }
|
|
17105
17112
|
}, mg = /* @__PURE__ */ ve({
|
|
@@ -17260,7 +17267,7 @@ const _P = {
|
|
|
17260
17267
|
})
|
|
17261
17268
|
}, [
|
|
17262
17269
|
Fe(a.$slots, "pattern-container", { id: i.value }, () => [
|
|
17263
|
-
|
|
17270
|
+
H("pattern", {
|
|
17264
17271
|
id: i.value,
|
|
17265
17272
|
x: p(n).x % o.value.scaledGap[0],
|
|
17266
17273
|
y: p(n).y % o.value.scaledGap[1],
|
|
@@ -17281,7 +17288,7 @@ const _P = {
|
|
|
17281
17288
|
radius: o.value.size / 2
|
|
17282
17289
|
}, null, 8, ["color", "radius"])) : Ce("", !0),
|
|
17283
17290
|
a.bgColor ? (w(), ee("svg", wP, [
|
|
17284
|
-
|
|
17291
|
+
H("rect", {
|
|
17285
17292
|
width: "100%",
|
|
17286
17293
|
height: "100%",
|
|
17287
17294
|
fill: a.bgColor
|
|
@@ -17290,7 +17297,7 @@ const _P = {
|
|
|
17290
17297
|
])
|
|
17291
17298
|
], 8, bP)
|
|
17292
17299
|
]),
|
|
17293
|
-
|
|
17300
|
+
H("rect", {
|
|
17294
17301
|
x: a.x,
|
|
17295
17302
|
y: a.y,
|
|
17296
17303
|
width: "100%",
|
|
@@ -17317,7 +17324,7 @@ function TP(e, t, n, o, i, r) {
|
|
|
17317
17324
|
const vi = /* @__PURE__ */ AP(xP, [["render", TP]]), $P = {
|
|
17318
17325
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17319
17326
|
viewBox: "0 0 32 32"
|
|
17320
|
-
}, NP = /* @__PURE__ */
|
|
17327
|
+
}, NP = /* @__PURE__ */ H("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" }, null, -1), OP = [
|
|
17321
17328
|
NP
|
|
17322
17329
|
];
|
|
17323
17330
|
function PP(e, t) {
|
|
@@ -17326,7 +17333,7 @@ function PP(e, t) {
|
|
|
17326
17333
|
const MP = { render: PP }, RP = {
|
|
17327
17334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17328
17335
|
viewBox: "0 0 32 5"
|
|
17329
|
-
}, FP = /* @__PURE__ */
|
|
17336
|
+
}, FP = /* @__PURE__ */ H("path", { d: "M0 0h32v4.2H0z" }, null, -1), DP = [
|
|
17330
17337
|
FP
|
|
17331
17338
|
];
|
|
17332
17339
|
function LP(e, t) {
|
|
@@ -17335,7 +17342,7 @@ function LP(e, t) {
|
|
|
17335
17342
|
const KP = { render: LP }, BP = {
|
|
17336
17343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17337
17344
|
viewBox: "0 0 32 30"
|
|
17338
|
-
}, jP = /* @__PURE__ */
|
|
17345
|
+
}, jP = /* @__PURE__ */ H("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" }, null, -1), qP = [
|
|
17339
17346
|
jP
|
|
17340
17347
|
];
|
|
17341
17348
|
function VP(e, t) {
|
|
@@ -17344,7 +17351,7 @@ function VP(e, t) {
|
|
|
17344
17351
|
const zP = { render: VP }, UP = {
|
|
17345
17352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17346
17353
|
viewBox: "0 0 25 32"
|
|
17347
|
-
}, HP = /* @__PURE__ */
|
|
17354
|
+
}, HP = /* @__PURE__ */ H("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z" }, null, -1), GP = [
|
|
17348
17355
|
HP
|
|
17349
17356
|
];
|
|
17350
17357
|
function YP(e, t) {
|
|
@@ -17353,7 +17360,7 @@ function YP(e, t) {
|
|
|
17353
17360
|
const WP = { render: YP }, XP = {
|
|
17354
17361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17355
17362
|
viewBox: "0 0 25 32"
|
|
17356
|
-
}, ZP = /* @__PURE__ */
|
|
17363
|
+
}, ZP = /* @__PURE__ */ H("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z" }, null, -1), JP = [
|
|
17357
17364
|
ZP
|
|
17358
17365
|
];
|
|
17359
17366
|
function QP(e, t) {
|
|
@@ -17548,7 +17555,7 @@ const di = {
|
|
|
17548
17555
|
};
|
|
17549
17556
|
function p2(e, t) {
|
|
17550
17557
|
return w(), ee("svg", f2, t[0] || (t[0] = [
|
|
17551
|
-
|
|
17558
|
+
H("path", { d: "M120-120v-200h80v120h120v80H120Zm520 0v-80h120v-120h80v200H640ZM120-640v-200h200v80H200v120h-80Zm640 0v-120H640v-80h200v200h-80Z" }, null, -1)
|
|
17552
17559
|
]));
|
|
17553
17560
|
}
|
|
17554
17561
|
const m2 = /* @__PURE__ */ Me(d2, [["render", p2]]), Zo = "{key}", eo = {
|
|
@@ -19849,9 +19856,9 @@ const [CD, SD] = ff(
|
|
|
19849
19856
|
commit: de,
|
|
19850
19857
|
reset: fe
|
|
19851
19858
|
} = f;
|
|
19852
|
-
function ke($,
|
|
19859
|
+
function ke($, G) {
|
|
19853
19860
|
const O = K($.source), W = K($.target);
|
|
19854
|
-
return !!(O && W && O.phase ===
|
|
19861
|
+
return !!(O && W && O.phase === G && W.phase === G);
|
|
19855
19862
|
}
|
|
19856
19863
|
const xe = D(
|
|
19857
19864
|
() => B.value.nodes.filter(($) => $.phase === t).map(($) => ({
|
|
@@ -19863,8 +19870,8 @@ const [CD, SD] = ff(
|
|
|
19863
19870
|
}))
|
|
19864
19871
|
), oe = D(
|
|
19865
19872
|
() => B.value.edges.filter(($) => ke($, t)).map(($) => {
|
|
19866
|
-
const
|
|
19867
|
-
if (
|
|
19873
|
+
const G = K($.source), O = K($.target);
|
|
19874
|
+
if (G) {
|
|
19868
19875
|
if (!O)
|
|
19869
19876
|
throw new Error(`Missing target node "${$.target}" for edge "${$.id}" in phase "${t}"`);
|
|
19870
19877
|
} else throw new Error(`Missing source node "${$.source}" for edge "${$.id}" in phase "${t}"`);
|
|
@@ -19880,8 +19887,8 @@ const [CD, SD] = ff(
|
|
|
19880
19887
|
});
|
|
19881
19888
|
})
|
|
19882
19889
|
);
|
|
19883
|
-
Ne([xe, oe], ([$,
|
|
19884
|
-
ne($), I(
|
|
19890
|
+
Ne([xe, oe], ([$, G]) => {
|
|
19891
|
+
ne($), I(G);
|
|
19885
19892
|
}, { immediate: !0 });
|
|
19886
19893
|
const le = D(() => ({
|
|
19887
19894
|
// Padding in VueFlow is a ratio
|
|
@@ -19893,10 +19900,10 @@ const [CD, SD] = ff(
|
|
|
19893
19900
|
}), S(({ edge: $ }) => {
|
|
19894
19901
|
console.debug("[useFlow] onEdgeClick", Ir($));
|
|
19895
19902
|
});
|
|
19896
|
-
async function
|
|
19897
|
-
if (console.debug("[useFlow] onConnect", { source: $, sourceHandle:
|
|
19898
|
-
const L = qd(
|
|
19899
|
-
if ((L == null ? void 0 : L.io) === "input" || (se == null ? void 0 : se.io) === "output" ||
|
|
19903
|
+
async function me({ source: $, sourceHandle: G, target: O, targetHandle: W }) {
|
|
19904
|
+
if (console.debug("[useFlow] onConnect", { source: $, sourceHandle: G, target: O, targetHandle: W }), !G || !W) return;
|
|
19905
|
+
const L = qd(G), se = qd(W);
|
|
19906
|
+
if ((L == null ? void 0 : L.io) === "input" || (se == null ? void 0 : se.io) === "output" || G === "output" && W === "output")
|
|
19900
19907
|
return;
|
|
19901
19908
|
const he = te(O);
|
|
19902
19909
|
let $e = !1, Oe = !1;
|
|
@@ -19904,11 +19911,11 @@ const [CD, SD] = ff(
|
|
|
19904
19911
|
Ie.length > 0 && ($e = !0, Ie.forEach((je) => {
|
|
19905
19912
|
Se.push(Ti(je, K)), ae(je.id, !1);
|
|
19906
19913
|
}));
|
|
19907
|
-
const
|
|
19908
|
-
if (
|
|
19909
|
-
if (
|
|
19914
|
+
const ge = (se == null ? void 0 : se.io) === "input" ? he.filter((je) => je.targetField === se.field) : he.filter((je) => !je.targetField);
|
|
19915
|
+
if (ge.length > 0) {
|
|
19916
|
+
if (ge.some((ct) => ct.source === $ && ct.target === O && ct.targetField === (se == null ? void 0 : se.field) && ct.sourceField === (L == null ? void 0 : L.field)))
|
|
19910
19917
|
return;
|
|
19911
|
-
Oe = !0,
|
|
19918
|
+
Oe = !0, ge.forEach((ct) => {
|
|
19912
19919
|
Se.push(Ti(ct, K)), ae(ct.id, !1);
|
|
19913
19920
|
});
|
|
19914
19921
|
}
|
|
@@ -19946,7 +19953,7 @@ const [CD, SD] = ff(
|
|
|
19946
19953
|
}
|
|
19947
19954
|
de();
|
|
19948
19955
|
}
|
|
19949
|
-
k(
|
|
19956
|
+
k(me);
|
|
19950
19957
|
let be = !1;
|
|
19951
19958
|
const _e = () => {
|
|
19952
19959
|
be && (be = !1, de());
|
|
@@ -19955,10 +19962,10 @@ const [CD, SD] = ff(
|
|
|
19955
19962
|
$.filter((O) => O.type === "select").sort((O, W) => O.selected === W.selected ? 0 : O.selected ? 1 : -1).forEach((O) => {
|
|
19956
19963
|
q(O.selected ? O.id : void 0);
|
|
19957
19964
|
});
|
|
19958
|
-
let
|
|
19965
|
+
let G = !1;
|
|
19959
19966
|
$.forEach((O) => {
|
|
19960
|
-
O.type === "remove" && (
|
|
19961
|
-
}),
|
|
19967
|
+
O.type === "remove" && (G = !0, Z(O.id, !1));
|
|
19968
|
+
}), G && !be && (be = !0, queueMicrotask(_e));
|
|
19962
19969
|
}), A(({ node: $ }) => {
|
|
19963
19970
|
$ && X($.id, $.position);
|
|
19964
19971
|
}), M(($) => {
|
|
@@ -19973,22 +19980,22 @@ const [CD, SD] = ff(
|
|
|
19973
19980
|
W.type === "remove" && (O = !0, ae(W.id, !1));
|
|
19974
19981
|
}), O && !be && (be = !0, queueMicrotask(_e));
|
|
19975
19982
|
}), Q(({ edge: $ }) => {
|
|
19976
|
-
cl = $.id, I((
|
|
19983
|
+
cl = $.id, I((G) => G.map((O) => O.id !== $.id ? O : hr(O)));
|
|
19977
19984
|
}), J(({ edge: $ }) => {
|
|
19978
|
-
cl = void 0, I((
|
|
19979
|
-
}), j(({ edge: $, connection:
|
|
19980
|
-
ae($.id, !1),
|
|
19985
|
+
cl = void 0, I((G) => G.map((O) => O.id !== $.id ? O : hr(O)));
|
|
19986
|
+
}), j(({ edge: $, connection: G }) => {
|
|
19987
|
+
ae($.id, !1), me(G);
|
|
19981
19988
|
});
|
|
19982
19989
|
function E($ = !0) {
|
|
19983
|
-
let
|
|
19990
|
+
let G, O;
|
|
19984
19991
|
const W = [], L = (We) => {
|
|
19985
19992
|
switch (We.data.name) {
|
|
19986
19993
|
case "request": {
|
|
19987
19994
|
if (t !== "request")
|
|
19988
19995
|
throw new Error(`Unexpected request node in ${t} phase`);
|
|
19989
|
-
if (
|
|
19996
|
+
if (G)
|
|
19990
19997
|
throw new Error("Duplicated request node in request phase");
|
|
19991
|
-
return
|
|
19998
|
+
return G = We, !0;
|
|
19992
19999
|
}
|
|
19993
20000
|
case "service_request": {
|
|
19994
20001
|
if (t !== "request")
|
|
@@ -20007,9 +20014,9 @@ const [CD, SD] = ff(
|
|
|
20007
20014
|
case "response": {
|
|
20008
20015
|
if (t !== "response")
|
|
20009
20016
|
throw new Error(`Unexpected response node in ${t} phase`);
|
|
20010
|
-
if (
|
|
20017
|
+
if (G)
|
|
20011
20018
|
throw new Error("Duplicated response node in response phase");
|
|
20012
|
-
return
|
|
20019
|
+
return G = We, !0;
|
|
20013
20020
|
}
|
|
20014
20021
|
default:
|
|
20015
20022
|
return W.push(We), !1;
|
|
@@ -20032,15 +20039,15 @@ const [CD, SD] = ff(
|
|
|
20032
20039
|
height: Ct.dimensions.height
|
|
20033
20040
|
});
|
|
20034
20041
|
}
|
|
20035
|
-
if (!
|
|
20042
|
+
if (!G || !O)
|
|
20036
20043
|
throw new Error(`One or more implicit nodes are missing from ${t} phase`);
|
|
20037
|
-
const he = g(
|
|
20044
|
+
const he = g(G.id), $e = g(O.id);
|
|
20038
20045
|
if (!he || !$e)
|
|
20039
20046
|
throw new Error(`One or more implicit nodes are missing from the graph in ${t} phase`);
|
|
20040
20047
|
if (W.length > 0) {
|
|
20041
20048
|
if (!se)
|
|
20042
20049
|
throw new Error("dagreGraph should be defined here if reachable");
|
|
20043
|
-
const We = /* @__PURE__ */ new Set([
|
|
20050
|
+
const We = /* @__PURE__ */ new Set([G.id, O.id]);
|
|
20044
20051
|
for (const Ct of oe.value)
|
|
20045
20052
|
!We.has(Ct.source) && !We.has(Ct.target) && se.setEdge(Ct.source, Ct.target, { points: [] });
|
|
20046
20053
|
jd.layout(se);
|
|
@@ -20059,11 +20066,11 @@ const [CD, SD] = ff(
|
|
|
20059
20066
|
Oe(yn), X(We.data.id, { x: yn.x, y: yn.y }, !1);
|
|
20060
20067
|
}
|
|
20061
20068
|
}
|
|
20062
|
-
const Ie = ue(),
|
|
20069
|
+
const Ie = ue(), ge = Ie.x2 - Ie.x1, ye = Ie.y2 - Ie.y1, je = Math.max(
|
|
20063
20070
|
0,
|
|
20064
|
-
Math.min(Pe(r == null ? void 0 : r.width) ?? Number.POSITIVE_INFINITY, s2) -
|
|
20071
|
+
Math.min(Pe(r == null ? void 0 : r.width) ?? Number.POSITIVE_INFINITY, s2) - ge - 2 * l - he.dimensions.width - $e.dimensions.width - 2 * a
|
|
20065
20072
|
), ct = Ie.y1 + ye / 2;
|
|
20066
|
-
X(
|
|
20073
|
+
X(G.data.id, {
|
|
20067
20074
|
x: Ie.x1 - l - je / 2 - he.dimensions.width,
|
|
20068
20075
|
y: ct - he.dimensions.height / 2
|
|
20069
20076
|
}, !1), X(O.data.id, {
|
|
@@ -20079,38 +20086,38 @@ const [CD, SD] = ff(
|
|
|
20079
20086
|
}
|
|
20080
20087
|
async function N($) {
|
|
20081
20088
|
return q($), new Promise(
|
|
20082
|
-
(
|
|
20089
|
+
(G) => setTimeout(() => {
|
|
20083
20090
|
const O = g($);
|
|
20084
|
-
z(O ? [O] : []),
|
|
20091
|
+
z(O ? [O] : []), G();
|
|
20085
20092
|
}, 0)
|
|
20086
20093
|
);
|
|
20087
20094
|
}
|
|
20088
20095
|
function T($) {
|
|
20089
|
-
const
|
|
20096
|
+
const G = x.value, O = G.find(({ id: Ie }) => Ie === $);
|
|
20090
20097
|
if (!O) throw new Error(`Node ${$} not found`);
|
|
20091
20098
|
const {
|
|
20092
20099
|
position: { x: W, y: L },
|
|
20093
20100
|
dimensions: { width: se, height: he }
|
|
20094
|
-
} = O, $e = L, Oe = L + he, ue =
|
|
20101
|
+
} = O, $e = L, Oe = L + he, ue = G.filter(({ id: Ie }) => Ie !== $).filter(({ position: { y: Ie }, dimensions: { height: ge } }) => Ie < Oe && Ie + ge > $e).map(({ position: { x: Ie }, dimensions: { width: ge } }) => ({ left: Ie, right: Ie + ge })).sort((Ie, ge) => Ie.left - ge.left);
|
|
20095
20102
|
let Se = W + se + l;
|
|
20096
|
-
for (const { left: Ie, right:
|
|
20097
|
-
if (!(
|
|
20103
|
+
for (const { left: Ie, right: ge } of ue)
|
|
20104
|
+
if (!(ge <= Se)) {
|
|
20098
20105
|
if (Se + se <= Ie) return { x: Se, y: $e };
|
|
20099
|
-
Se = Math.max(Se,
|
|
20106
|
+
Se = Math.max(Se, ge) + l;
|
|
20100
20107
|
}
|
|
20101
20108
|
return { x: Se, y: $e };
|
|
20102
20109
|
}
|
|
20103
20110
|
function V($) {
|
|
20104
20111
|
if (!$) return;
|
|
20105
|
-
const
|
|
20106
|
-
if (!
|
|
20112
|
+
const G = g($);
|
|
20113
|
+
if (!G) throw new Error(`Node ${$} not found`);
|
|
20107
20114
|
const {
|
|
20108
20115
|
position: { x: O },
|
|
20109
20116
|
dimensions: { width: W }
|
|
20110
|
-
} =
|
|
20117
|
+
} = G, L = O + W, { viewport: se, dimensions: he, setViewport: $e } = c, { x: Oe, y: ue, zoom: Se } = se.value, { width: Ie } = he.value, ge = O * Se + Oe, ye = L * Se + Oe, je = Ie - nm - l;
|
|
20111
20118
|
if (ye <= je) return;
|
|
20112
20119
|
let ct = je - ye;
|
|
20113
|
-
|
|
20120
|
+
ge + ct < 0 && (ct = -ge), ct !== 0 && $e(
|
|
20114
20121
|
{ x: Oe + ct, y: ue, zoom: Se },
|
|
20115
20122
|
{ duration: c2 }
|
|
20116
20123
|
);
|
|
@@ -20179,7 +20186,7 @@ const [CD, SD] = ff(
|
|
|
20179
20186
|
}
|
|
20180
20187
|
});
|
|
20181
20188
|
return (i, r) => {
|
|
20182
|
-
const a =
|
|
20189
|
+
const a = we("KBadge");
|
|
20183
20190
|
return w(), Y(a, {
|
|
20184
20191
|
appearance: o.value,
|
|
20185
20192
|
class: ze({
|
|
@@ -20191,7 +20198,7 @@ const [CD, SD] = ff(
|
|
|
20191
20198
|
(w(), Y(mt(t.value)))
|
|
20192
20199
|
]),
|
|
20193
20200
|
default: F(() => [
|
|
20194
|
-
De(" " +
|
|
20201
|
+
De(" " + pe(n.value), 1)
|
|
20195
20202
|
]),
|
|
20196
20203
|
_: 1
|
|
20197
20204
|
}, 8, ["appearance", "class", "size"]);
|
|
@@ -20272,8 +20279,8 @@ const PD = {
|
|
|
20272
20279
|
return (n, o) => (w(), ee("span", {
|
|
20273
20280
|
class: ze(["dk-hotkey-label", { reverse: n.reverse }])
|
|
20274
20281
|
}, [
|
|
20275
|
-
n.label ? (w(), ee("span", PD,
|
|
20276
|
-
|
|
20282
|
+
n.label ? (w(), ee("span", PD, pe(n.label), 1)) : Ce("", !0),
|
|
20283
|
+
H("kbd", MD, pe(p(t)), 1)
|
|
20277
20284
|
], 2));
|
|
20278
20285
|
}
|
|
20279
20286
|
}), oa = /* @__PURE__ */ Me(RD, [["__scopeId", "data-v-cc70d56b"]]), FD = { class: "body" }, DD = { class: "name" }, LD = { class: "handle" }, KD = { class: "handle-label-wrapper" }, BD = { class: "handle-label-wrapper" }, jD = { class: "handle-label text" }, qD = { class: "handle" }, VD = { class: "handle-label-wrapper" }, zD = { class: "handle-label-wrapper" }, UD = { class: "handle-label text" }, HD = /* @__PURE__ */ ve({
|
|
@@ -20338,7 +20345,7 @@ const PD = {
|
|
|
20338
20345
|
}]),
|
|
20339
20346
|
onMousedown: J
|
|
20340
20347
|
}, [
|
|
20341
|
-
|
|
20348
|
+
H("div", FD, [
|
|
20342
20349
|
b.value ? Ce("", !0) : (w(), Y(p($r), {
|
|
20343
20350
|
key: 0,
|
|
20344
20351
|
class: "badge",
|
|
@@ -20354,7 +20361,7 @@ const PD = {
|
|
|
20354
20361
|
]),
|
|
20355
20362
|
_: 1
|
|
20356
20363
|
}, 8, ["text"])),
|
|
20357
|
-
|
|
20364
|
+
H("div", DD, pe(k.value), 1),
|
|
20358
20365
|
x.error ? (w(), Y(p(Vh), {
|
|
20359
20366
|
key: 1,
|
|
20360
20367
|
class: "error-icon",
|
|
@@ -20413,27 +20420,27 @@ const PD = {
|
|
|
20413
20420
|
_: 1
|
|
20414
20421
|
}, 512))
|
|
20415
20422
|
]),
|
|
20416
|
-
|
|
20423
|
+
H("div", {
|
|
20417
20424
|
class: ze(["handles", { reversed: _.value }])
|
|
20418
20425
|
}, [
|
|
20419
20426
|
g.value ? (w(), ee("div", {
|
|
20420
20427
|
key: 0,
|
|
20421
20428
|
class: ze(["input-handles", { "has-fields": d.value }])
|
|
20422
20429
|
}, [
|
|
20423
|
-
|
|
20430
|
+
H("div", LD, [
|
|
20424
20431
|
P(p(Dn), {
|
|
20425
20432
|
id: "input",
|
|
20426
20433
|
position: A.value,
|
|
20427
20434
|
type: "target"
|
|
20428
20435
|
}, null, 8, ["position"]),
|
|
20429
|
-
|
|
20430
|
-
|
|
20436
|
+
H("div", KD, [
|
|
20437
|
+
H("div", {
|
|
20431
20438
|
class: ze(["handle-label trigger", {
|
|
20432
20439
|
collapsible: f.value
|
|
20433
20440
|
}]),
|
|
20434
20441
|
onClick: ne[2] || (ne[2] = Lt((I) => M("input"), ["stop"]))
|
|
20435
20442
|
}, [
|
|
20436
|
-
ne[4] || (ne[4] =
|
|
20443
|
+
ne[4] || (ne[4] = H("div", { class: "text" }, " inputs ", -1)),
|
|
20437
20444
|
d.value ? (w(), ee(Le, { key: 0 }, [
|
|
20438
20445
|
h.value ? Ce("", !0) : (w(), Y(p(hu), {
|
|
20439
20446
|
key: 0,
|
|
@@ -20463,8 +20470,8 @@ const PD = {
|
|
|
20463
20470
|
position: A.value,
|
|
20464
20471
|
type: "target"
|
|
20465
20472
|
}, null, 8, ["id", "position"]),
|
|
20466
|
-
|
|
20467
|
-
|
|
20473
|
+
H("div", BD, [
|
|
20474
|
+
H("div", jD, pe(I.name), 1),
|
|
20468
20475
|
P(vr, {
|
|
20469
20476
|
color: R.value,
|
|
20470
20477
|
position: A.value,
|
|
@@ -20477,15 +20484,15 @@ const PD = {
|
|
|
20477
20484
|
key: 1,
|
|
20478
20485
|
class: ze(["output-handles", { "has-fields": c.value }])
|
|
20479
20486
|
}, [
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20487
|
+
H("div", qD, [
|
|
20488
|
+
H("div", VD, [
|
|
20489
|
+
H("div", {
|
|
20483
20490
|
class: ze(["handle-label trigger", {
|
|
20484
20491
|
collapsible: m.value
|
|
20485
20492
|
}]),
|
|
20486
20493
|
onClick: ne[3] || (ne[3] = Lt((I) => M("output"), ["stop"]))
|
|
20487
20494
|
}, [
|
|
20488
|
-
ne[5] || (ne[5] =
|
|
20495
|
+
ne[5] || (ne[5] = H("div", { class: "text" }, " outputs ", -1)),
|
|
20489
20496
|
c.value ? (w(), ee(Le, { key: 0 }, [
|
|
20490
20497
|
v.value ? Ce("", !0) : (w(), Y(p(hu), {
|
|
20491
20498
|
key: 0,
|
|
@@ -20515,8 +20522,8 @@ const PD = {
|
|
|
20515
20522
|
key: `outputs-${I.id}`,
|
|
20516
20523
|
class: "handle indented"
|
|
20517
20524
|
}, [
|
|
20518
|
-
|
|
20519
|
-
|
|
20525
|
+
H("div", zD, [
|
|
20526
|
+
H("div", UD, pe(I.name), 1),
|
|
20520
20527
|
P(vr, {
|
|
20521
20528
|
color: R.value,
|
|
20522
20529
|
position: S.value,
|
|
@@ -20694,7 +20701,7 @@ const PD = {
|
|
|
20694
20701
|
]),
|
|
20695
20702
|
_: 1
|
|
20696
20703
|
}, 8, ["id", "class", "elements-selectable", "max-zoom", "min-zoom", "nodes-connectable", "nodes-draggable", "pan-on-drag", "pan-on-scroll", "zoom-on-double-click", "zoom-on-pinch", "zoom-on-scroll"]),
|
|
20697
|
-
J.value ? (w(), ee("div", GD,
|
|
20704
|
+
J.value ? (w(), ee("div", GD, pe(p(a)("plugins.free-form.datakit.flow_editor.phase_mask_help")), 1)) : Ce("", !0)
|
|
20698
20705
|
], 512));
|
|
20699
20706
|
}
|
|
20700
20707
|
}), Vd = /* @__PURE__ */ Me(YD, [["__scopeId", "data-v-b4eee6d4"]]), WD = /* @__PURE__ */ ve({
|
|
@@ -20707,12 +20714,12 @@ const PD = {
|
|
|
20707
20714
|
const n = re(!1), o = re(!1), { state: i, markAsLayoutCompleted: r, commit: a, clear: s } = Ot(), l = nf(), u = `${l}-request`, d = `${l}-response`, c = Je(u), f = Je(d);
|
|
20708
20715
|
function m(U, ae) {
|
|
20709
20716
|
const { onPaneClick: te, onNodesChange: de, onEdgesChange: fe, getSelectedNodes: ke, getSelectedEdges: xe } = U, { removeSelectedElements: oe } = ae;
|
|
20710
|
-
function le(
|
|
20711
|
-
if (!
|
|
20717
|
+
function le(me) {
|
|
20718
|
+
if (!me) {
|
|
20712
20719
|
oe();
|
|
20713
20720
|
return;
|
|
20714
20721
|
}
|
|
20715
|
-
|
|
20722
|
+
me.some((be) => be.type === "select") && ke.value.length + xe.value.length > 0 && oe();
|
|
20716
20723
|
}
|
|
20717
20724
|
de(le), fe(le), te(() => le());
|
|
20718
20725
|
}
|
|
@@ -20758,7 +20765,7 @@ const PD = {
|
|
|
20758
20765
|
ref: h,
|
|
20759
20766
|
class: "flow-panels"
|
|
20760
20767
|
}, [
|
|
20761
|
-
|
|
20768
|
+
H("div", {
|
|
20762
20769
|
ref_key: "requestLabel",
|
|
20763
20770
|
ref: v,
|
|
20764
20771
|
class: ze(["label request", { resizable: U.resizable }]),
|
|
@@ -20768,9 +20775,9 @@ const PD = {
|
|
|
20768
20775
|
key: 0,
|
|
20769
20776
|
class: ze(["icon", { collapsed: ne.value }])
|
|
20770
20777
|
}, null, 8, ["class"])) : Ce("", !0),
|
|
20771
|
-
ae[4] || (ae[4] =
|
|
20778
|
+
ae[4] || (ae[4] = H("div", { class: "label-content" }, " Request ", -1))
|
|
20772
20779
|
], 2),
|
|
20773
|
-
|
|
20780
|
+
H("div", {
|
|
20774
20781
|
ref_key: "requestCanvasContainer",
|
|
20775
20782
|
ref: g,
|
|
20776
20783
|
class: ze(["canvas", { dragging: p(Z) }]),
|
|
@@ -20786,12 +20793,12 @@ const PD = {
|
|
|
20786
20793
|
onNodesChange: ae[1] || (ae[1] = (te) => n.value = !1)
|
|
20787
20794
|
}, null, 8, ["readonly"])
|
|
20788
20795
|
], 6),
|
|
20789
|
-
|
|
20796
|
+
H("div", {
|
|
20790
20797
|
ref_key: "resizeHandle",
|
|
20791
20798
|
ref: b,
|
|
20792
20799
|
class: ze(["resize-handle", { resizable: U.resizable }])
|
|
20793
20800
|
}, null, 2),
|
|
20794
|
-
|
|
20801
|
+
H("div", {
|
|
20795
20802
|
ref_key: "responseLabel",
|
|
20796
20803
|
ref: _,
|
|
20797
20804
|
class: ze(["label response", { dragging: p(Z), resizable: U.resizable }]),
|
|
@@ -20801,9 +20808,9 @@ const PD = {
|
|
|
20801
20808
|
key: 0,
|
|
20802
20809
|
class: ze(["icon", { collapsed: I.value }])
|
|
20803
20810
|
}, null, 8, ["class"])) : Ce("", !0),
|
|
20804
|
-
ae[5] || (ae[5] =
|
|
20811
|
+
ae[5] || (ae[5] = H("div", { class: "label-content" }, " Response ", -1))
|
|
20805
20812
|
], 2),
|
|
20806
|
-
|
|
20813
|
+
H("div", {
|
|
20807
20814
|
ref_key: "responseCanvasContainer",
|
|
20808
20815
|
ref: A,
|
|
20809
20816
|
class: ze(["canvas response", { dragging: p(Z) }]),
|
|
@@ -20847,7 +20854,7 @@ const PD = {
|
|
|
20847
20854
|
return t({
|
|
20848
20855
|
open: f
|
|
20849
20856
|
}), (m, h) => {
|
|
20850
|
-
const v =
|
|
20857
|
+
const v = we("KModal");
|
|
20851
20858
|
return w(), Y(v, {
|
|
20852
20859
|
"action-button-text": p(o)("plugins.free-form.datakit.flow_editor.confirm.proceed"),
|
|
20853
20860
|
"close-on-backdrop-click": "",
|
|
@@ -20859,25 +20866,25 @@ const PD = {
|
|
|
20859
20866
|
onProceed: c
|
|
20860
20867
|
}, {
|
|
20861
20868
|
default: F(() => [
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20869
|
+
H("div", XD, [
|
|
20870
|
+
H("p", null, pe(a.value), 1),
|
|
20871
|
+
H("p", null, pe(p(o)("plugins.free-form.datakit.flow_editor.confirm.message.confirm")), 1),
|
|
20872
|
+
H("div", ZD, [
|
|
20866
20873
|
(w(!0), ee(Le, null, Ve(s.value ?? [], ([g, y]) => (w(), ee("div", {
|
|
20867
20874
|
key: `${g}-${y}`
|
|
20868
20875
|
}, [
|
|
20869
20876
|
P(p(Wt), { color: p(Gk) }, null, 8, ["color"]),
|
|
20870
|
-
|
|
20877
|
+
H("span", null, pe(g), 1),
|
|
20871
20878
|
h[0] || (h[0] = De(" → ", -1)),
|
|
20872
|
-
|
|
20879
|
+
H("span", null, pe(y), 1)
|
|
20873
20880
|
]))), 128)),
|
|
20874
20881
|
(w(!0), ee(Le, null, Ve(l.value ?? [], ([g, y]) => (w(), ee("div", {
|
|
20875
20882
|
key: `${g}-${y}`
|
|
20876
20883
|
}, [
|
|
20877
20884
|
P(p(pl), { color: p(cp) }, null, 8, ["color"]),
|
|
20878
|
-
|
|
20885
|
+
H("span", null, pe(g), 1),
|
|
20879
20886
|
h[1] || (h[1] = De(" → ", -1)),
|
|
20880
|
-
|
|
20887
|
+
H("span", null, pe(y), 1)
|
|
20881
20888
|
]))), 128))
|
|
20882
20889
|
])
|
|
20883
20890
|
])
|
|
@@ -20901,7 +20908,7 @@ const PD = {
|
|
|
20901
20908
|
r.value = !r.value;
|
|
20902
20909
|
}
|
|
20903
20910
|
return (u, d) => (w(), ee("nav", eL, [
|
|
20904
|
-
|
|
20911
|
+
H("div", tL, [
|
|
20905
20912
|
(w(), ee(Le, null, Ve(i, ({ label: c, to: f, icon: m, onClick: h }) => P(p($r), {
|
|
20906
20913
|
key: c,
|
|
20907
20914
|
"kpop-attributes": { offset: "10px" },
|
|
@@ -20929,8 +20936,8 @@ const PD = {
|
|
|
20929
20936
|
_: 2
|
|
20930
20937
|
}, 1032, ["label"])), 64))
|
|
20931
20938
|
]),
|
|
20932
|
-
|
|
20933
|
-
|
|
20939
|
+
H("div", nL, [
|
|
20940
|
+
H("div", {
|
|
20934
20941
|
class: ze(["side-panel-toggle", { expanded: p(r) }]),
|
|
20935
20942
|
onTransitionend: d[0] || (d[0] = Lt((c) => s.value = !1, ["self"])),
|
|
20936
20943
|
onTransitionstart: d[1] || (d[1] = Lt((c) => s.value = !0, ["self"]))
|
|
@@ -20992,10 +20999,10 @@ const PD = {
|
|
|
20992
20999
|
undo: o,
|
|
20993
21000
|
redo: i
|
|
20994
21001
|
}), (d, c) => {
|
|
20995
|
-
const f =
|
|
21002
|
+
const f = we("KTooltip"), m = we("KDropdownItem"), h = we("KDropdown");
|
|
20996
21003
|
return w(), ee("div", rL, [
|
|
20997
|
-
|
|
20998
|
-
|
|
21004
|
+
H("header", aL, [
|
|
21005
|
+
H("div", sL, [
|
|
20999
21006
|
P(f, { "z-index": 1e4 }, {
|
|
21000
21007
|
content: F(() => [
|
|
21001
21008
|
P(oa, {
|
|
@@ -21042,8 +21049,8 @@ const PD = {
|
|
|
21042
21049
|
]),
|
|
21043
21050
|
_: 1
|
|
21044
21051
|
}),
|
|
21045
|
-
c[0] || (c[0] =
|
|
21046
|
-
|
|
21052
|
+
c[0] || (c[0] = H("div", { class: "divider" }, null, -1)),
|
|
21053
|
+
H("div", lL, [
|
|
21047
21054
|
P(Fl, {
|
|
21048
21055
|
label: p(t)("plugins.free-form.datakit.flow_editor.debug.label"),
|
|
21049
21056
|
"label-attributes": {
|
|
@@ -21055,7 +21062,7 @@ const PD = {
|
|
|
21055
21062
|
name: "config.debug"
|
|
21056
21063
|
}, null, 8, ["label", "label-attributes"])
|
|
21057
21064
|
]),
|
|
21058
|
-
c[1] || (c[1] =
|
|
21065
|
+
c[1] || (c[1] = H("div", { class: "divider" }, null, -1)),
|
|
21059
21066
|
P(h, {
|
|
21060
21067
|
appearance: "tertiary",
|
|
21061
21068
|
"kpop-attributes": {
|
|
@@ -21071,7 +21078,7 @@ const PD = {
|
|
|
21071
21078
|
onClick: (y) => l(v)
|
|
21072
21079
|
}, {
|
|
21073
21080
|
default: F(() => [
|
|
21074
|
-
De(
|
|
21081
|
+
De(pe(p(t)(`plugins.free-form.datakit.examples.${g}`)), 1)
|
|
21075
21082
|
]),
|
|
21076
21083
|
_: 2
|
|
21077
21084
|
}, 1032, ["onClick"])), 64))
|
|
@@ -21084,20 +21091,20 @@ const PD = {
|
|
|
21084
21091
|
to: "https://developer.konghq.com/plugins/datakit/"
|
|
21085
21092
|
}, {
|
|
21086
21093
|
default: F(() => [
|
|
21087
|
-
De(
|
|
21094
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.actions.view_docs")) + " ", 1),
|
|
21088
21095
|
P(p(Xh))
|
|
21089
21096
|
]),
|
|
21090
21097
|
_: 1
|
|
21091
21098
|
}),
|
|
21092
21099
|
P(p(dn), { onClick: u }, {
|
|
21093
21100
|
default: F(() => [
|
|
21094
|
-
De(
|
|
21101
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.actions.done")), 1)
|
|
21095
21102
|
]),
|
|
21096
21103
|
_: 1
|
|
21097
21104
|
})
|
|
21098
21105
|
])
|
|
21099
21106
|
]),
|
|
21100
|
-
|
|
21107
|
+
H("div", uL, [
|
|
21101
21108
|
P(Zg, { resizable: "" })
|
|
21102
21109
|
], 512)
|
|
21103
21110
|
]);
|
|
@@ -21125,12 +21132,12 @@ const PD = {
|
|
|
21125
21132
|
draggable: !p(o),
|
|
21126
21133
|
onDragstart: a
|
|
21127
21134
|
}, [
|
|
21128
|
-
|
|
21135
|
+
H("div", pL, [
|
|
21129
21136
|
P(p(r), { size: 16 })
|
|
21130
21137
|
]),
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21138
|
+
H("div", mL, [
|
|
21139
|
+
H("div", gL, pe(s.type), 1),
|
|
21140
|
+
H("div", hL, pe(p(i)), 1)
|
|
21134
21141
|
])
|
|
21135
21142
|
], 42, fL));
|
|
21136
21143
|
}
|
|
@@ -21178,27 +21185,27 @@ const PD = {
|
|
|
21178
21185
|
});
|
|
21179
21186
|
};
|
|
21180
21187
|
return (s, l) => {
|
|
21181
|
-
const u =
|
|
21188
|
+
const u = we("KLabel");
|
|
21182
21189
|
return w(), ee("div", _L, [
|
|
21183
|
-
|
|
21190
|
+
H("h3", bL, [
|
|
21184
21191
|
P(u, {
|
|
21185
21192
|
class: "label",
|
|
21186
21193
|
info: p(t)("plugins.free-form.datakit.flow_editor.node_panel.description")
|
|
21187
21194
|
}, {
|
|
21188
21195
|
default: F(() => [
|
|
21189
|
-
De(
|
|
21196
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_panel.title")), 1)
|
|
21190
21197
|
]),
|
|
21191
21198
|
_: 1
|
|
21192
21199
|
}, 8, ["info"])
|
|
21193
21200
|
]),
|
|
21194
|
-
|
|
21201
|
+
H("div", wL, [
|
|
21195
21202
|
(w(!0), ee(Le, null, Ve(Object.keys(p(wa)), (d) => (w(), Y(yL, {
|
|
21196
21203
|
key: d,
|
|
21197
21204
|
type: d,
|
|
21198
21205
|
onDragstart: a
|
|
21199
21206
|
}, null, 8, ["type"]))), 128))
|
|
21200
21207
|
]),
|
|
21201
|
-
|
|
21208
|
+
H("div", EL, [
|
|
21202
21209
|
P(p(mg), { nodes: r.value }, {
|
|
21203
21210
|
"node-flow": F((d) => [
|
|
21204
21211
|
P(Xg, {
|
|
@@ -21243,7 +21250,6 @@ const PD = {
|
|
|
21243
21250
|
default: F(() => [
|
|
21244
21251
|
(w(!0), ee(Le, null, Ve(o.value, (a) => (w(), Y(fn, {
|
|
21245
21252
|
key: a,
|
|
21246
|
-
class: "dk-inputs-field-indent",
|
|
21247
21253
|
clearable: "",
|
|
21248
21254
|
"enable-filtering": "",
|
|
21249
21255
|
items: i.items,
|
|
@@ -21255,7 +21261,7 @@ const PD = {
|
|
|
21255
21261
|
_: 1
|
|
21256
21262
|
}, 8, ["name"]));
|
|
21257
21263
|
}
|
|
21258
|
-
}), AL =
|
|
21264
|
+
}), AL = ["data-testid"], IL = { class: "dk-inputs-map-field-entry-body" }, TL = { class: "dk-inputs-map-field-entry-content" }, $L = /* @__PURE__ */ ve({
|
|
21259
21265
|
__name: "InputsMapField",
|
|
21260
21266
|
props: {
|
|
21261
21267
|
items: {},
|
|
@@ -21325,7 +21331,7 @@ const PD = {
|
|
|
21325
21331
|
return Ne(() => i.value, (S) => {
|
|
21326
21332
|
d.value && (S.find(({ id: k }) => k === d.value) || (d.value = null));
|
|
21327
21333
|
}), (S, k) => {
|
|
21328
|
-
const R =
|
|
21334
|
+
const R = we("KAlert"), M = we("KLabel"), j = we("KInput"), Q = we("KSelect"), J = we("KButton");
|
|
21329
21335
|
return p(s).error ? (w(), Y(R, {
|
|
21330
21336
|
key: 0,
|
|
21331
21337
|
appearance: "danger",
|
|
@@ -21338,19 +21344,19 @@ const PD = {
|
|
|
21338
21344
|
}, [
|
|
21339
21345
|
(w(!0), ee(Le, null, Ve(p(i), (x, ne) => (w(), ee("div", {
|
|
21340
21346
|
key: x.id,
|
|
21341
|
-
class: "dk-inputs-map-field-entry
|
|
21347
|
+
class: "dk-inputs-map-field-entry",
|
|
21342
21348
|
"data-testid": `ff-kv-container-${p(s).path.value}.${ne}`
|
|
21343
21349
|
}, [
|
|
21344
21350
|
P(M, {
|
|
21345
21351
|
for: `ff-kv-entry-key-${p(s).path.value}.${ne}`
|
|
21346
21352
|
}, {
|
|
21347
21353
|
default: F(() => [
|
|
21348
|
-
De(
|
|
21354
|
+
De(pe(p(l)("plugins.free-form.datakit.flow_editor.node_properties.input_name.label")), 1)
|
|
21349
21355
|
]),
|
|
21350
21356
|
_: 2
|
|
21351
21357
|
}, 1032, ["for"]),
|
|
21352
|
-
|
|
21353
|
-
|
|
21358
|
+
H("div", IL, [
|
|
21359
|
+
H("div", TL, [
|
|
21354
21360
|
P(j, {
|
|
21355
21361
|
id: `ff-kv-entry-key-${p(s).path.value}.${ne}`,
|
|
21356
21362
|
modelValue: x.key,
|
|
@@ -21374,12 +21380,13 @@ const PD = {
|
|
|
21374
21380
|
"data-testid": `ff-value-${p(s).path.value}.${ne}`,
|
|
21375
21381
|
"enable-filtering": "",
|
|
21376
21382
|
items: S.items,
|
|
21383
|
+
label: p(l)("plugins.free-form.datakit.flow_editor.node_properties.input.source"),
|
|
21377
21384
|
placeholder: p(l)("plugins.free-form.datakit.flow_editor.node_properties.input.placeholder"),
|
|
21378
21385
|
onChange: (I) => A(x, (I == null ? void 0 : I.value) ?? null)
|
|
21379
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "items", "placeholder", "onChange"])
|
|
21386
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "items", "label", "placeholder", "onChange"])
|
|
21380
21387
|
]),
|
|
21381
21388
|
P(J, {
|
|
21382
|
-
appearance: "
|
|
21389
|
+
appearance: "tertiary",
|
|
21383
21390
|
class: "dk-inputs-map-field-remove-btn",
|
|
21384
21391
|
"data-testid": `ff-kv-remove-btn-${p(s).path.value}.${ne}`,
|
|
21385
21392
|
icon: "",
|
|
@@ -21391,25 +21398,23 @@ const PD = {
|
|
|
21391
21398
|
_: 2
|
|
21392
21399
|
}, 1032, ["data-testid", "onClick"])
|
|
21393
21400
|
])
|
|
21394
|
-
], 8,
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
}, 8, ["data-testid", "disabled"])
|
|
21408
|
-
])
|
|
21401
|
+
], 8, AL))), 128)),
|
|
21402
|
+
P(J, {
|
|
21403
|
+
appearance: "tertiary",
|
|
21404
|
+
"data-testid": `ff-kv-add-btn-${p(s).path.value}`,
|
|
21405
|
+
disabled: !!d.value,
|
|
21406
|
+
onClick: h
|
|
21407
|
+
}, {
|
|
21408
|
+
default: F(() => [
|
|
21409
|
+
P(p(Wt)),
|
|
21410
|
+
De(" " + pe(p(l)("plugins.free-form.datakit.flow_editor.node_properties.input.add_button")), 1)
|
|
21411
|
+
]),
|
|
21412
|
+
_: 1
|
|
21413
|
+
}, 8, ["data-testid", "disabled"])
|
|
21409
21414
|
], 512));
|
|
21410
21415
|
};
|
|
21411
21416
|
}
|
|
21412
|
-
}),
|
|
21417
|
+
}), NL = /* @__PURE__ */ Me($L, [["__scopeId", "data-v-b2f89c26"]]), OL = { class: "dk-inputs-field-h1" }, PL = { class: "dk-inputs-field-or" }, ML = /* @__PURE__ */ ve({
|
|
21413
21418
|
__name: "InputsField",
|
|
21414
21419
|
props: {
|
|
21415
21420
|
items: {},
|
|
@@ -21418,7 +21423,7 @@ const PD = {
|
|
|
21418
21423
|
},
|
|
21419
21424
|
emits: ["change:input", "change:inputs", "add:field", "remove:field", "rename:field"],
|
|
21420
21425
|
setup(e, { emit: t }) {
|
|
21421
|
-
const n = t, { getSchema: o } = lt(), { i18n: i } = Ge(), r = D(() => o("inputs")), a = D(() => r.value ? r.value.type === "record" ?
|
|
21426
|
+
const n = t, { getSchema: o } = lt(), { i18n: i } = Ge(), r = D(() => o("inputs")), a = D(() => r.value ? r.value.type === "record" ? xL : NL : null);
|
|
21422
21427
|
function s(f) {
|
|
21423
21428
|
n("change:input", f ? f.value : null);
|
|
21424
21429
|
}
|
|
@@ -21434,31 +21439,51 @@ const PD = {
|
|
|
21434
21439
|
function c(f, m) {
|
|
21435
21440
|
n("rename:field", f, m);
|
|
21436
21441
|
}
|
|
21437
|
-
return (f, m) =>
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
"
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
"
|
|
21455
|
-
"
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21442
|
+
return (f, m) => {
|
|
21443
|
+
const h = we("KLabel");
|
|
21444
|
+
return w(), ee(Le, null, [
|
|
21445
|
+
H("div", OL, pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.label")), 1),
|
|
21446
|
+
p(o)("input") ? (w(), Y(fn, {
|
|
21447
|
+
key: 0,
|
|
21448
|
+
class: "dk-inputs-field-h2",
|
|
21449
|
+
clearable: "",
|
|
21450
|
+
"enable-filtering": "",
|
|
21451
|
+
items: f.items,
|
|
21452
|
+
label: p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.whole_input"),
|
|
21453
|
+
"label-attributes": {
|
|
21454
|
+
info: p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.whole_input_tooltip")
|
|
21455
|
+
},
|
|
21456
|
+
name: "input",
|
|
21457
|
+
placeholder: p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.placeholder"),
|
|
21458
|
+
onChange: s
|
|
21459
|
+
}, null, 8, ["items", "label", "label-attributes", "placeholder"])) : Ce("", !0),
|
|
21460
|
+
H("div", PL, [
|
|
21461
|
+
H("span", null, pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.or")), 1)
|
|
21462
|
+
]),
|
|
21463
|
+
P(h, {
|
|
21464
|
+
class: "dk-inputs-field-h2 dk-margin-0",
|
|
21465
|
+
info: p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.pre_field_tooltip")
|
|
21466
|
+
}, {
|
|
21467
|
+
default: F(() => [
|
|
21468
|
+
De(pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.pre_field")), 1)
|
|
21469
|
+
]),
|
|
21470
|
+
_: 1
|
|
21471
|
+
}, 8, ["info"]),
|
|
21472
|
+
a.value ? (w(), Y(p(a), {
|
|
21473
|
+
key: 1,
|
|
21474
|
+
"field-name-validator": f.fieldNameValidator,
|
|
21475
|
+
items: f.items,
|
|
21476
|
+
"key-order": f.fieldNames,
|
|
21477
|
+
name: "inputs",
|
|
21478
|
+
"onAdd:field": l,
|
|
21479
|
+
"onChange:inputs": u,
|
|
21480
|
+
"onRemove:field": d,
|
|
21481
|
+
"onRename:field": c
|
|
21482
|
+
}, null, 8, ["field-name-validator", "items", "key-order"])) : Ce("", !0)
|
|
21483
|
+
], 64);
|
|
21484
|
+
};
|
|
21460
21485
|
}
|
|
21461
|
-
}), ML = {
|
|
21486
|
+
}), oi = /* @__PURE__ */ Me(ML, [["__scopeId", "data-v-d0045f94"]]), RL = {
|
|
21462
21487
|
fields: [
|
|
21463
21488
|
{
|
|
21464
21489
|
input: {
|
|
@@ -21535,7 +21560,7 @@ const PD = {
|
|
|
21535
21560
|
}
|
|
21536
21561
|
],
|
|
21537
21562
|
type: "record"
|
|
21538
|
-
},
|
|
21563
|
+
}, FL = {
|
|
21539
21564
|
fields: [
|
|
21540
21565
|
{
|
|
21541
21566
|
input: {
|
|
@@ -21597,7 +21622,7 @@ const PD = {
|
|
|
21597
21622
|
],
|
|
21598
21623
|
type: "record"
|
|
21599
21624
|
};
|
|
21600
|
-
function
|
|
21625
|
+
function DL(e) {
|
|
21601
21626
|
const t = Number(e);
|
|
21602
21627
|
return !isNaN(t) && isFinite(t);
|
|
21603
21628
|
}
|
|
@@ -21638,7 +21663,7 @@ function Jg(e, t) {
|
|
|
21638
21663
|
}
|
|
21639
21664
|
};
|
|
21640
21665
|
}
|
|
21641
|
-
function
|
|
21666
|
+
function LL(e = 0, t = 1 / 0, n) {
|
|
21642
21667
|
const { i18n: { t: o } } = Ge();
|
|
21643
21668
|
return function(r) {
|
|
21644
21669
|
if (r != null && typeof r == "string" && (r.length < e || r.length > t))
|
|
@@ -21652,7 +21677,7 @@ function DL(e = 0, t = 1 / 0, n) {
|
|
|
21652
21677
|
function Qg(e) {
|
|
21653
21678
|
const { i18n: { t } } = Ge();
|
|
21654
21679
|
return function(o) {
|
|
21655
|
-
if (!
|
|
21680
|
+
if (!DL(o))
|
|
21656
21681
|
return e ? typeof e == "string" ? e : t("plugins.free-form.datakit.flow_editor.node_properties.errors.not_number", e) : "Value must be a number";
|
|
21657
21682
|
};
|
|
21658
21683
|
}
|
|
@@ -21692,14 +21717,14 @@ function th(e = -1 / 0, t = 1 / 0, n) {
|
|
|
21692
21717
|
}) : `Value must be between ${e} and ${t}`;
|
|
21693
21718
|
};
|
|
21694
21719
|
}
|
|
21695
|
-
function
|
|
21720
|
+
function KL(e, t) {
|
|
21696
21721
|
const { state: n } = Ot(), { i18n: { t: o } } = Ge();
|
|
21697
21722
|
return function(r) {
|
|
21698
21723
|
if (n.value.nodes.some((a) => a.name === r && a.id !== e))
|
|
21699
21724
|
return t ? typeof t == "string" ? t : o("plugins.free-form.datakit.flow_editor.node_properties.errors.not_unique", t) : "Name must be unique.";
|
|
21700
21725
|
};
|
|
21701
21726
|
}
|
|
21702
|
-
function
|
|
21727
|
+
function BL(e, t, n) {
|
|
21703
21728
|
const { i18n: { t: o } } = Ge();
|
|
21704
21729
|
return function(r) {
|
|
21705
21730
|
if (!t) return;
|
|
@@ -21709,7 +21734,7 @@ function KL(e, t, n) {
|
|
|
21709
21734
|
}
|
|
21710
21735
|
};
|
|
21711
21736
|
}
|
|
21712
|
-
function
|
|
21737
|
+
function jL() {
|
|
21713
21738
|
const { i18n: { t: e } } = Ge();
|
|
21714
21739
|
return function(n) {
|
|
21715
21740
|
if (Gl(n))
|
|
@@ -21721,11 +21746,11 @@ function nh(e) {
|
|
|
21721
21746
|
return Jo(
|
|
21722
21747
|
Qo(n),
|
|
21723
21748
|
Jg("identifier", n),
|
|
21724
|
-
|
|
21725
|
-
|
|
21749
|
+
jL(),
|
|
21750
|
+
KL(e, n)
|
|
21726
21751
|
);
|
|
21727
21752
|
}
|
|
21728
|
-
function
|
|
21753
|
+
function qL(e) {
|
|
21729
21754
|
const { i18n: { t } } = Ge(), { getNodeById: n } = Ot();
|
|
21730
21755
|
return function(i, r, a) {
|
|
21731
21756
|
const s = {
|
|
@@ -21733,11 +21758,11 @@ function jL(e) {
|
|
|
21733
21758
|
};
|
|
21734
21759
|
return Jo(
|
|
21735
21760
|
Qo(s),
|
|
21736
|
-
|
|
21761
|
+
BL(i, n(e), a)
|
|
21737
21762
|
)(r);
|
|
21738
21763
|
};
|
|
21739
21764
|
}
|
|
21740
|
-
function
|
|
21765
|
+
function VL(e) {
|
|
21741
21766
|
const t = re({}), n = D(
|
|
21742
21767
|
() => Object.values(t.value).every((a) => !a)
|
|
21743
21768
|
), o = {};
|
|
@@ -21780,7 +21805,7 @@ function Ka(e) {
|
|
|
21780
21805
|
validationConfig: t,
|
|
21781
21806
|
getValidationData: n,
|
|
21782
21807
|
toggleNodeValid: o
|
|
21783
|
-
} = e, { skipValidation: i } = Ot(), r = D(() => typeof t == "function" ? t() : t), a = D(() =>
|
|
21808
|
+
} = e, { skipValidation: i } = Ot(), r = D(() => typeof t == "function" ? t() : t), a = D(() => VL(r.value)), s = D(() => a.value.fields), l = D(() => a.value.isValid.value);
|
|
21784
21809
|
function u() {
|
|
21785
21810
|
const c = n(), f = a.value.validate(c), m = {};
|
|
21786
21811
|
for (const h in r.value)
|
|
@@ -21884,7 +21909,7 @@ function bo(e, t) {
|
|
|
21884
21909
|
if (g) return;
|
|
21885
21910
|
const K = Z == null, U = S("input", q).id;
|
|
21886
21911
|
if (K) {
|
|
21887
|
-
const le = Q.value.find((
|
|
21912
|
+
const le = Q.value.find((me) => me.targetField === U);
|
|
21888
21913
|
le && u(le.id);
|
|
21889
21914
|
return;
|
|
21890
21915
|
}
|
|
@@ -21964,7 +21989,7 @@ function bo(e, t) {
|
|
|
21964
21989
|
function B(q) {
|
|
21965
21990
|
c.value.delete(e), q || c.value.add(e);
|
|
21966
21991
|
}
|
|
21967
|
-
const ie =
|
|
21992
|
+
const ie = qL(e);
|
|
21968
21993
|
function X(q, Z, K) {
|
|
21969
21994
|
const U = i(e);
|
|
21970
21995
|
if (!U) throw new Error("Node not found when validating field name");
|
|
@@ -22000,9 +22025,9 @@ function wo(e) {
|
|
|
22000
22025
|
if (un(e))
|
|
22001
22026
|
switch (e) {
|
|
22002
22027
|
case "response":
|
|
22003
|
-
return
|
|
22028
|
+
return FL;
|
|
22004
22029
|
case "service_request":
|
|
22005
|
-
return
|
|
22030
|
+
return RL;
|
|
22006
22031
|
}
|
|
22007
22032
|
try {
|
|
22008
22033
|
const a = t().fields[0].config.fields[0].nodes.elements.subschema_definitions[e];
|
|
@@ -22039,7 +22064,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22039
22064
|
return Ne(() => n.name, (d) => {
|
|
22040
22065
|
d !== r.value && (r.value = d);
|
|
22041
22066
|
}), (d, c) => {
|
|
22042
|
-
const f =
|
|
22067
|
+
const f = we("KInput");
|
|
22043
22068
|
return w(), Y(f, {
|
|
22044
22069
|
"model-value": r.value,
|
|
22045
22070
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => r.value = m),
|
|
@@ -22053,7 +22078,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22053
22078
|
}, null, 8, ["model-value", "error", "error-message", "label"]);
|
|
22054
22079
|
};
|
|
22055
22080
|
}
|
|
22056
|
-
}),
|
|
22081
|
+
}), zL = /* @__PURE__ */ ve({
|
|
22057
22082
|
__name: "NodeFormCall",
|
|
22058
22083
|
props: {
|
|
22059
22084
|
nodeId: {}
|
|
@@ -22090,7 +22115,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22090
22115
|
toggleNodeValid: f
|
|
22091
22116
|
}), v = h("url", () => a("url")), g = h("timeout", () => a("timeout"));
|
|
22092
22117
|
return (y, b) => {
|
|
22093
|
-
const _ =
|
|
22118
|
+
const _ = we("KLabel");
|
|
22094
22119
|
return w(), Y(Ht, {
|
|
22095
22120
|
ref: "form",
|
|
22096
22121
|
data: p(i),
|
|
@@ -22104,7 +22129,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22104
22129
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
22105
22130
|
P(_, { class: "dk-node-configuration-label" }, {
|
|
22106
22131
|
default: F(() => [
|
|
22107
|
-
De(
|
|
22132
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
22108
22133
|
]),
|
|
22109
22134
|
_: 1
|
|
22110
22135
|
}),
|
|
@@ -22143,7 +22168,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22143
22168
|
}, 8, ["data", "schema"]);
|
|
22144
22169
|
};
|
|
22145
22170
|
}
|
|
22146
|
-
}),
|
|
22171
|
+
}), UL = /* @__PURE__ */ ve({
|
|
22147
22172
|
__name: "NodeFormServiceRequest",
|
|
22148
22173
|
props: {
|
|
22149
22174
|
nodeId: {}
|
|
@@ -22174,7 +22199,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22174
22199
|
_: 1
|
|
22175
22200
|
}, 8, ["data", "schema"]));
|
|
22176
22201
|
}
|
|
22177
|
-
}),
|
|
22202
|
+
}), HL = /* @__PURE__ */ ve({
|
|
22178
22203
|
__name: "NodeFormResponse",
|
|
22179
22204
|
props: {
|
|
22180
22205
|
nodeId: {}
|
|
@@ -22207,7 +22232,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22207
22232
|
}
|
|
22208
22233
|
}), zd = {
|
|
22209
22234
|
jqlang: "https://jqlang.org/manual/"
|
|
22210
|
-
},
|
|
22235
|
+
}, GL = /* @__PURE__ */ ve({
|
|
22211
22236
|
__name: "NodeFormJq",
|
|
22212
22237
|
props: {
|
|
22213
22238
|
nodeId: {}
|
|
@@ -22243,7 +22268,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22243
22268
|
validationConfig: {
|
|
22244
22269
|
jq: Jo(
|
|
22245
22270
|
Qo({ fieldName: S }),
|
|
22246
|
-
|
|
22271
|
+
LL(1, 10240, { fieldName: S })
|
|
22247
22272
|
)
|
|
22248
22273
|
},
|
|
22249
22274
|
getValidationData: () => ({
|
|
@@ -22252,7 +22277,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22252
22277
|
toggleNodeValid: g
|
|
22253
22278
|
}), R = k("jq", () => s("jq"));
|
|
22254
22279
|
return (M, j) => {
|
|
22255
|
-
const Q =
|
|
22280
|
+
const Q = we("KLabel"), J = we("KExternalLink");
|
|
22256
22281
|
return w(), Y(Ht, {
|
|
22257
22282
|
ref: "form",
|
|
22258
22283
|
data: p(r),
|
|
@@ -22266,7 +22291,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22266
22291
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
22267
22292
|
P(Q, { class: "dk-node-configuration-label" }, {
|
|
22268
22293
|
default: F(() => [
|
|
22269
|
-
De(
|
|
22294
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
22270
22295
|
]),
|
|
22271
22296
|
_: 1
|
|
22272
22297
|
}),
|
|
@@ -22290,7 +22315,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22290
22315
|
href: p(zd).jqlang
|
|
22291
22316
|
}, {
|
|
22292
22317
|
default: F(() => [
|
|
22293
|
-
De(
|
|
22318
|
+
De(pe(p(zd).jqlang), 1)
|
|
22294
22319
|
]),
|
|
22295
22320
|
_: 1
|
|
22296
22321
|
}, 8, ["href"])
|
|
@@ -22315,7 +22340,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22315
22340
|
}, 8, ["data", "schema"]);
|
|
22316
22341
|
};
|
|
22317
22342
|
}
|
|
22318
|
-
}),
|
|
22343
|
+
}), YL = /* @__PURE__ */ ve({
|
|
22319
22344
|
__name: "OutputValueField",
|
|
22320
22345
|
props: {
|
|
22321
22346
|
fieldNameValidator: {},
|
|
@@ -22389,7 +22414,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22389
22414
|
return Qd(() => {
|
|
22390
22415
|
c.value && !r.value.some((S) => S.id === c.value.id) && r.value.push(c.value);
|
|
22391
22416
|
}), (S, k) => {
|
|
22392
|
-
const R =
|
|
22417
|
+
const R = we("KAlert"), M = we("KLabel"), j = we("KButton"), Q = we("KInput"), J = we("KCard");
|
|
22393
22418
|
return p(l).error ? (w(), Y(R, {
|
|
22394
22419
|
key: 0,
|
|
22395
22420
|
appearance: "danger",
|
|
@@ -22402,7 +22427,7 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22402
22427
|
}, [
|
|
22403
22428
|
P(M, { class: "dk-node-configuration-label" }, {
|
|
22404
22429
|
default: F(() => [
|
|
22405
|
-
De(
|
|
22430
|
+
De(pe(p(u).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.label")), 1)
|
|
22406
22431
|
]),
|
|
22407
22432
|
_: 1
|
|
22408
22433
|
}),
|
|
@@ -22461,15 +22486,15 @@ const Ji = /* @__PURE__ */ ve({
|
|
|
22461
22486
|
}, {
|
|
22462
22487
|
default: F(() => [
|
|
22463
22488
|
P(p(Wt)),
|
|
22464
|
-
De(" " +
|
|
22489
|
+
De(" " + pe(p(u).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.add_button")), 1)
|
|
22465
22490
|
]),
|
|
22466
22491
|
_: 1
|
|
22467
22492
|
}, 8, ["data-testid", "disabled"])
|
|
22468
22493
|
], 512));
|
|
22469
22494
|
};
|
|
22470
22495
|
}
|
|
22471
|
-
}),
|
|
22472
|
-
function
|
|
22496
|
+
}), WL = /* @__PURE__ */ Me(YL, [["__scopeId", "data-v-5e17f8cb"]]);
|
|
22497
|
+
function XL(e) {
|
|
22473
22498
|
const t = {};
|
|
22474
22499
|
for (const [n, o] of Object.entries(e))
|
|
22475
22500
|
typeof o == "object" && o !== null ? t[n] = JSON.stringify(o) : t[n] = String(o);
|
|
@@ -22487,13 +22512,13 @@ function yr(e) {
|
|
|
22487
22512
|
}
|
|
22488
22513
|
return t;
|
|
22489
22514
|
}
|
|
22490
|
-
function
|
|
22515
|
+
function ZL(e, t, n) {
|
|
22491
22516
|
const o = {};
|
|
22492
22517
|
for (const i of Object.keys(e))
|
|
22493
22518
|
i === t ? o[n] = e[t] : o[i] = e[i];
|
|
22494
22519
|
return o;
|
|
22495
22520
|
}
|
|
22496
|
-
const
|
|
22521
|
+
const JL = /* @__PURE__ */ ve({
|
|
22497
22522
|
__name: "NodeFormStatic",
|
|
22498
22523
|
props: {
|
|
22499
22524
|
nodeId: {}
|
|
@@ -22532,7 +22557,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22532
22557
|
A[Q] = "";
|
|
22533
22558
|
}), {
|
|
22534
22559
|
name: c.value.name,
|
|
22535
|
-
values:
|
|
22560
|
+
values: XL(A)
|
|
22536
22561
|
};
|
|
22537
22562
|
});
|
|
22538
22563
|
function v(_, A) {
|
|
@@ -22550,7 +22575,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22550
22575
|
const S = Ho(c.value, "output", _);
|
|
22551
22576
|
if (!S) throw new Error("No field found to rename");
|
|
22552
22577
|
const k = {
|
|
22553
|
-
values: yr(
|
|
22578
|
+
values: yr(ZL(h.value.values ?? {}, _, A))
|
|
22554
22579
|
};
|
|
22555
22580
|
a(e.nodeId, k, !1), i(e.nodeId, S.id, A);
|
|
22556
22581
|
}
|
|
@@ -22587,7 +22612,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22587
22612
|
validate: p(d),
|
|
22588
22613
|
onUpdate: m
|
|
22589
22614
|
}, null, 8, ["name", "validate"]),
|
|
22590
|
-
P(
|
|
22615
|
+
P(WL, {
|
|
22591
22616
|
"field-name-validator": p(l),
|
|
22592
22617
|
"key-order": f.value,
|
|
22593
22618
|
name: "values",
|
|
@@ -22601,7 +22626,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22601
22626
|
_: 1
|
|
22602
22627
|
}, 8, ["data", "schema"]));
|
|
22603
22628
|
}
|
|
22604
|
-
}),
|
|
22629
|
+
}), QL = { class: "dk-kong-property-item" }, e3 = { class: "property-type" }, t3 = { class: "property-badges" }, n3 = /* @__PURE__ */ ve({
|
|
22605
22630
|
__name: "PropertiesField",
|
|
22606
22631
|
props: {
|
|
22607
22632
|
validators: {}
|
|
@@ -22630,7 +22655,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22630
22655
|
return Ne(() => r.property, (m) => {
|
|
22631
22656
|
l.value = rl(m), a.value = yi(m);
|
|
22632
22657
|
}), (m, h) => {
|
|
22633
|
-
const v =
|
|
22658
|
+
const v = we("KBadge"), g = we("KSelect"), y = we("KInput");
|
|
22634
22659
|
return w(), ee(Le, null, [
|
|
22635
22660
|
(w(), Y(g, {
|
|
22636
22661
|
key: u.value,
|
|
@@ -22649,18 +22674,18 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22649
22674
|
onChange: f
|
|
22650
22675
|
}, {
|
|
22651
22676
|
"item-template": F(({ item: b }) => [
|
|
22652
|
-
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22677
|
+
H("div", QL, [
|
|
22678
|
+
H("div", null, [
|
|
22679
|
+
H("div", null, pe(b.label), 1),
|
|
22680
|
+
H("div", e3, pe(p(eo)[b.value].dataType), 1)
|
|
22656
22681
|
]),
|
|
22657
|
-
|
|
22682
|
+
H("div", t3, [
|
|
22658
22683
|
p(eo)[b.value].readable ? (w(), Y(v, {
|
|
22659
22684
|
key: 0,
|
|
22660
22685
|
appearance: "info"
|
|
22661
22686
|
}, {
|
|
22662
22687
|
default: F(() => [
|
|
22663
|
-
De(
|
|
22688
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.node_properties.property.get")), 1)
|
|
22664
22689
|
]),
|
|
22665
22690
|
_: 1
|
|
22666
22691
|
})) : Ce("", !0),
|
|
@@ -22669,7 +22694,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22669
22694
|
appearance: "warning"
|
|
22670
22695
|
}, {
|
|
22671
22696
|
default: F(() => [
|
|
22672
|
-
De(
|
|
22697
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.node_properties.property.set")), 1)
|
|
22673
22698
|
]),
|
|
22674
22699
|
_: 1
|
|
22675
22700
|
})) : Ce("", !0)
|
|
@@ -22694,7 +22719,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22694
22719
|
], 64);
|
|
22695
22720
|
};
|
|
22696
22721
|
}
|
|
22697
|
-
}),
|
|
22722
|
+
}), o3 = /* @__PURE__ */ Me(n3, [["__scopeId", "data-v-0ab1be87"]]), i3 = /* @__PURE__ */ ve({
|
|
22698
22723
|
__name: "NodeFormProperty",
|
|
22699
22724
|
props: {
|
|
22700
22725
|
nodeId: {}
|
|
@@ -22751,7 +22776,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22751
22776
|
name: "content_type",
|
|
22752
22777
|
onUpdate: A[0] || (A[0] = (S) => p(l)())
|
|
22753
22778
|
}),
|
|
22754
|
-
P(
|
|
22779
|
+
P(o3, {
|
|
22755
22780
|
validators: p(b),
|
|
22756
22781
|
"onUpdate:modelValue": y,
|
|
22757
22782
|
"onUpdate:propertyKey": A[1] || (A[1] = (S) => p(l)("property-key"))
|
|
@@ -22768,7 +22793,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22768
22793
|
_: 1
|
|
22769
22794
|
}, 8, ["data", "schema"]));
|
|
22770
22795
|
}
|
|
22771
|
-
}),
|
|
22796
|
+
}), r3 = /* @__PURE__ */ ve({
|
|
22772
22797
|
__name: "NodeFormExit",
|
|
22773
22798
|
props: {
|
|
22774
22799
|
nodeId: {}
|
|
@@ -22832,7 +22857,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22832
22857
|
_: 1
|
|
22833
22858
|
}, 8, ["data", "schema"]));
|
|
22834
22859
|
}
|
|
22835
|
-
}),
|
|
22860
|
+
}), a3 = ["innerHTML"], s3 = /* @__PURE__ */ ve({
|
|
22836
22861
|
__name: "NodePropertiesPanel",
|
|
22837
22862
|
props: {
|
|
22838
22863
|
maxWidth: { default: `${nm}px` },
|
|
@@ -22846,19 +22871,19 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22846
22871
|
var i;
|
|
22847
22872
|
switch ((i = n.value) == null ? void 0 : i.type) {
|
|
22848
22873
|
case "call":
|
|
22849
|
-
return VL;
|
|
22850
|
-
case "service_request":
|
|
22851
22874
|
return zL;
|
|
22852
|
-
case "
|
|
22875
|
+
case "service_request":
|
|
22853
22876
|
return UL;
|
|
22854
|
-
case "
|
|
22877
|
+
case "response":
|
|
22855
22878
|
return HL;
|
|
22879
|
+
case "jq":
|
|
22880
|
+
return GL;
|
|
22856
22881
|
case "static":
|
|
22857
|
-
return
|
|
22882
|
+
return JL;
|
|
22858
22883
|
case "property":
|
|
22859
|
-
return o3;
|
|
22860
|
-
case "exit":
|
|
22861
22884
|
return i3;
|
|
22885
|
+
case "exit":
|
|
22886
|
+
return r3;
|
|
22862
22887
|
default:
|
|
22863
22888
|
return null;
|
|
22864
22889
|
}
|
|
@@ -22877,7 +22902,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22877
22902
|
key: 0,
|
|
22878
22903
|
class: "dk-node-properties-panel-desc",
|
|
22879
22904
|
innerHTML: p(qt)(n.value.type)
|
|
22880
|
-
}, null, 8,
|
|
22905
|
+
}, null, 8, a3)) : Ce("", !0),
|
|
22881
22906
|
o.value ? (w(), Y(p(o), {
|
|
22882
22907
|
key: i.nodeId,
|
|
22883
22908
|
class: "dk-node-properties-panel-form",
|
|
@@ -22897,7 +22922,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22897
22922
|
} : void 0
|
|
22898
22923
|
]), 1032, ["max-width", "offset-top", "visible"]));
|
|
22899
22924
|
}
|
|
22900
|
-
}),
|
|
22925
|
+
}), l3 = /* @__PURE__ */ Me(s3, [["__scopeId", "data-v-0b3e4bcc"]]), u3 = { class: "dk-editor-content" }, c3 = { class: "header" }, d3 = { class: "title" }, f3 = { class: "body" }, p3 = { class: "node-selection-panel" }, m3 = { class: "main" }, g3 = /* @__PURE__ */ ve({
|
|
22901
22926
|
__name: "EditorContent",
|
|
22902
22927
|
setup(e) {
|
|
22903
22928
|
const { t } = bt("en-us", wt), { sidePanelExpanded: n } = Wl(), { propertiesPanelOpen: o, selectedNode: i } = Ot();
|
|
@@ -22912,23 +22937,23 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22912
22937
|
a.value = !0;
|
|
22913
22938
|
}), (s, l) => {
|
|
22914
22939
|
var u;
|
|
22915
|
-
return w(), ee("div",
|
|
22916
|
-
|
|
22940
|
+
return w(), ee("div", u3, [
|
|
22941
|
+
H("aside", {
|
|
22917
22942
|
class: ze(["side-panel", { expanded: p(n), inited: a.value }])
|
|
22918
22943
|
}, [
|
|
22919
|
-
|
|
22920
|
-
|
|
22944
|
+
H("header", c3, [
|
|
22945
|
+
H("h2", d3, pe(p(t)("plugins.free-form.datakit.flow_editor.name")), 1)
|
|
22921
22946
|
]),
|
|
22922
|
-
|
|
22923
|
-
|
|
22947
|
+
H("div", f3, [
|
|
22948
|
+
H("div", p3, [
|
|
22924
22949
|
P(CL)
|
|
22925
22950
|
])
|
|
22926
22951
|
])
|
|
22927
22952
|
], 2),
|
|
22928
|
-
|
|
22953
|
+
H("div", m3, [
|
|
22929
22954
|
P(dL)
|
|
22930
22955
|
]),
|
|
22931
|
-
P(
|
|
22956
|
+
P(l3, {
|
|
22932
22957
|
"node-id": (u = p(i)) == null ? void 0 : u.id,
|
|
22933
22958
|
visible: p(o),
|
|
22934
22959
|
onClose: r
|
|
@@ -22936,10 +22961,10 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22936
22961
|
]);
|
|
22937
22962
|
};
|
|
22938
22963
|
}
|
|
22939
|
-
}),
|
|
22964
|
+
}), h3 = /* @__PURE__ */ Me(g3, [["__scopeId", "data-v-e2ee6970"]]), v3 = {
|
|
22940
22965
|
key: 0,
|
|
22941
22966
|
class: "dk-editor-modal"
|
|
22942
|
-
},
|
|
22967
|
+
}, y3 = /* @__PURE__ */ ve({
|
|
22943
22968
|
__name: "EditorModal",
|
|
22944
22969
|
props: {
|
|
22945
22970
|
open: { type: Boolean },
|
|
@@ -22964,12 +22989,12 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22964
22989
|
function a() {
|
|
22965
22990
|
t.value = !1;
|
|
22966
22991
|
}
|
|
22967
|
-
return (s, l) => t.value ? (w(), ee("div",
|
|
22992
|
+
return (s, l) => t.value ? (w(), ee("div", v3, [
|
|
22968
22993
|
P(iL, {
|
|
22969
22994
|
class: "nav",
|
|
22970
22995
|
onBack: a
|
|
22971
22996
|
}),
|
|
22972
|
-
P(
|
|
22997
|
+
P(h3, {
|
|
22973
22998
|
ref: "content",
|
|
22974
22999
|
class: "content",
|
|
22975
23000
|
tabindex: "0"
|
|
@@ -22977,7 +23002,7 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22977
23002
|
P(QD, { ref: "confirm-modal" }, null, 512)
|
|
22978
23003
|
])) : Ce("", !0);
|
|
22979
23004
|
}
|
|
22980
|
-
}),
|
|
23005
|
+
}), _3 = /* @__PURE__ */ Me(y3, [["__scopeId", "data-v-917708bb"]]), b3 = { class: "dk-flow-editor" }, w3 = { class: "flow-panels-container" }, E3 = { class: "overlay" }, k3 = /* @__PURE__ */ ve({
|
|
22981
23006
|
__name: "FlowEditor",
|
|
22982
23007
|
props: {
|
|
22983
23008
|
isEditing: { type: Boolean }
|
|
@@ -22998,37 +23023,37 @@ const ZL = /* @__PURE__ */ ve({
|
|
|
22998
23023
|
var d;
|
|
22999
23024
|
s.value || (d = r.value) == null || d.fitView();
|
|
23000
23025
|
}), (d, c) => {
|
|
23001
|
-
const f =
|
|
23002
|
-
return w(), ee("div",
|
|
23003
|
-
|
|
23026
|
+
const f = we("KButton");
|
|
23027
|
+
return w(), ee("div", b3, [
|
|
23028
|
+
H("div", w3, [
|
|
23004
23029
|
P(Zg, {
|
|
23005
23030
|
ref_key: "flowPanels",
|
|
23006
23031
|
ref: r,
|
|
23007
23032
|
readonly: ""
|
|
23008
23033
|
}, null, 512),
|
|
23009
|
-
|
|
23034
|
+
H("div", E3, [
|
|
23010
23035
|
P(f, {
|
|
23011
23036
|
appearance: "secondary",
|
|
23012
23037
|
class: "button-open-editor",
|
|
23013
23038
|
onClick: c[0] || (c[0] = (m) => s.value = !0)
|
|
23014
23039
|
}, {
|
|
23015
23040
|
default: F(() => [
|
|
23016
|
-
De(
|
|
23041
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.cta")) + " ", 1),
|
|
23017
23042
|
P(p(Zh))
|
|
23018
23043
|
]),
|
|
23019
23044
|
_: 1
|
|
23020
23045
|
})
|
|
23021
23046
|
])
|
|
23022
23047
|
]),
|
|
23023
|
-
P(
|
|
23048
|
+
P(_3, {
|
|
23024
23049
|
open: p(s),
|
|
23025
23050
|
"onUpdate:open": c[1] || (c[1] = (m) => Ui(s) ? s.value = m : null)
|
|
23026
23051
|
}, null, 8, ["open"])
|
|
23027
23052
|
]);
|
|
23028
23053
|
};
|
|
23029
23054
|
}
|
|
23030
|
-
}),
|
|
23031
|
-
function
|
|
23055
|
+
}), C3 = /* @__PURE__ */ Me(k3, [["__scopeId", "data-v-6c5e614c"]]);
|
|
23056
|
+
function S3(e, t) {
|
|
23032
23057
|
const n = [], o = (i, r) => {
|
|
23033
23058
|
typeof r == "string" && n.push({
|
|
23034
23059
|
nodeName: e.name,
|
|
@@ -23044,11 +23069,11 @@ function C3(e, t) {
|
|
|
23044
23069
|
r != null && o(["outputs", i], r);
|
|
23045
23070
|
return n;
|
|
23046
23071
|
}
|
|
23047
|
-
function
|
|
23072
|
+
function x3(e) {
|
|
23048
23073
|
const t = e.path[2];
|
|
23049
23074
|
return t === "output" || t === "outputs";
|
|
23050
23075
|
}
|
|
23051
|
-
function
|
|
23076
|
+
function A3(e) {
|
|
23052
23077
|
if (!e) return !1;
|
|
23053
23078
|
for (const t of Object.values(e))
|
|
23054
23079
|
if (t != null) return !0;
|
|
@@ -23064,7 +23089,7 @@ function oh(e, t, n) {
|
|
|
23064
23089
|
path: ["nodes", u, "name"]
|
|
23065
23090
|
}), i.add(l);
|
|
23066
23091
|
}), e.nodes.forEach((l, u) => {
|
|
23067
|
-
const d = "input" in l && l.input != null, c = "inputs" in l &&
|
|
23092
|
+
const d = "input" in l && l.input != null, c = "inputs" in l && A3(l.inputs);
|
|
23068
23093
|
d && c && n.addIssue({
|
|
23069
23094
|
code: "custom",
|
|
23070
23095
|
message: 'A node cannot use both "input" and "inputs". Use one or the other.',
|
|
@@ -23073,13 +23098,13 @@ function oh(e, t, n) {
|
|
|
23073
23098
|
});
|
|
23074
23099
|
const r = /* @__PURE__ */ new Set([...t, ...o]), a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
23075
23100
|
e.nodes.forEach((l, u) => {
|
|
23076
|
-
for (const d of
|
|
23101
|
+
for (const d of S3(l, u)) {
|
|
23077
23102
|
const c = d.value.split(".", 1)[0];
|
|
23078
23103
|
if (r.has(c) || n.addIssue({
|
|
23079
23104
|
code: "custom",
|
|
23080
23105
|
message: `Unknown node "${c}" in connection "${d.value}"`,
|
|
23081
23106
|
path: d.path
|
|
23082
|
-
}),
|
|
23107
|
+
}), x3(d)) {
|
|
23083
23108
|
const f = `${d.nodeName}->${c}`;
|
|
23084
23109
|
s.has(f) ? n.addIssue({
|
|
23085
23110
|
code: "custom",
|
|
@@ -23097,31 +23122,31 @@ function oh(e, t, n) {
|
|
|
23097
23122
|
}
|
|
23098
23123
|
});
|
|
23099
23124
|
}
|
|
23100
|
-
const
|
|
23101
|
-
|
|
23125
|
+
const I3 = Ee.enum(_a), T3 = Ee.enum(ba), ih = (e) => _a.includes(e), fu = Ee.enum(om), Ud = fu.options;
|
|
23126
|
+
Ee.union([
|
|
23102
23127
|
fu,
|
|
23103
|
-
|
|
23128
|
+
I3
|
|
23104
23129
|
]);
|
|
23105
|
-
const
|
|
23106
|
-
|
|
23130
|
+
const $3 = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, rh = Ee.string().min(1).max(255).regex(
|
|
23131
|
+
$3,
|
|
23107
23132
|
"Invalid node name (snake_case / kebab-case only)"
|
|
23108
|
-
).refine((e) => !ih(e), "Name clashes with reserved implicit node").brand(), Hd =
|
|
23109
|
-
|
|
23133
|
+
).refine((e) => !ih(e), "Name clashes with reserved implicit node").brand(), Hd = Ee.union([
|
|
23134
|
+
T3,
|
|
23110
23135
|
rh
|
|
23111
|
-
]),
|
|
23136
|
+
]), N3 = Ee.string().min(1).brand(), O3 = Ee.string().refine((e) => {
|
|
23112
23137
|
if (Hd.safeParse(e).success) return !0;
|
|
23113
23138
|
const t = e.match(/^([^.]+)\.([^.]+)$/);
|
|
23114
23139
|
if (!t) return !1;
|
|
23115
23140
|
const [, n, o] = t;
|
|
23116
|
-
return Hd.safeParse(n).success &&
|
|
23117
|
-
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), sn =
|
|
23118
|
-
type:
|
|
23141
|
+
return Hd.safeParse(n).success && N3.safeParse(o).success;
|
|
23142
|
+
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), sn = O3.nullish(), ah = Ee.enum(im), Qi = Ee.object({
|
|
23143
|
+
type: Ee.string(),
|
|
23119
23144
|
name: rh,
|
|
23120
23145
|
input: sn,
|
|
23121
|
-
inputs:
|
|
23146
|
+
inputs: Ee.record(Ee.string(), sn).nullish(),
|
|
23122
23147
|
output: sn,
|
|
23123
|
-
outputs:
|
|
23124
|
-
}).loose(),
|
|
23148
|
+
outputs: Ee.record(Ee.string(), sn).nullish()
|
|
23149
|
+
}).loose(), P3 = Ee.object({ type: Ee.string(), name: Ee.string() }).loose().superRefine((e, t) => {
|
|
23125
23150
|
const n = e.type, o = e.name;
|
|
23126
23151
|
(typeof o != "string" || o.length === 0 || o.includes(".")) && t.addIssue({
|
|
23127
23152
|
code: "custom",
|
|
@@ -23135,104 +23160,104 @@ const T3 = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, rh = we.string().min(1).max(255).r
|
|
|
23135
23160
|
", "
|
|
23136
23161
|
)}`
|
|
23137
23162
|
});
|
|
23138
|
-
}),
|
|
23139
|
-
type:
|
|
23163
|
+
}), M3 = Qi.extend({
|
|
23164
|
+
type: Ee.literal("call"),
|
|
23140
23165
|
/**
|
|
23141
23166
|
* A string representing an HTTP method, such as GET, POST, PUT, or DELETE.
|
|
23142
23167
|
* The string must contain only uppercase letters.
|
|
23143
23168
|
*/
|
|
23144
23169
|
method: ah.nullish(),
|
|
23145
23170
|
/** A string representing an SNI (server name indication) value for TLS. */
|
|
23146
|
-
ssl_server_name:
|
|
23171
|
+
ssl_server_name: Ee.string().min(1).nullish(),
|
|
23147
23172
|
/**
|
|
23148
23173
|
* An integer representing a timeout in milliseconds.
|
|
23149
23174
|
* Must be between 0 and 2^31-2.
|
|
23150
23175
|
*/
|
|
23151
|
-
timeout:
|
|
23176
|
+
timeout: Ee.number().int().min(0).max(2147483646).nullish(),
|
|
23152
23177
|
/**
|
|
23153
23178
|
* A string representing a URL, such as
|
|
23154
23179
|
* https://example.com/path/to/resource?q=search
|
|
23155
23180
|
*/
|
|
23156
|
-
url:
|
|
23157
|
-
inputs:
|
|
23181
|
+
url: Ee.url(),
|
|
23182
|
+
inputs: Ee.object({
|
|
23158
23183
|
body: sn,
|
|
23159
23184
|
headers: sn,
|
|
23160
23185
|
query: sn
|
|
23161
23186
|
}).partial().nullish(),
|
|
23162
|
-
outputs:
|
|
23187
|
+
outputs: Ee.object({
|
|
23163
23188
|
body: sn,
|
|
23164
23189
|
headers: sn,
|
|
23165
23190
|
status: sn
|
|
23166
23191
|
}).partial().nullish()
|
|
23167
|
-
}).strict(),
|
|
23168
|
-
type:
|
|
23192
|
+
}).strict(), R3 = Qi.extend({
|
|
23193
|
+
type: Ee.literal("exit"),
|
|
23169
23194
|
/**
|
|
23170
23195
|
* HTTP status code.
|
|
23171
23196
|
* 200–599
|
|
23172
23197
|
*/
|
|
23173
|
-
status:
|
|
23198
|
+
status: Ee.number().int().min(200).max(599).nullish(),
|
|
23174
23199
|
/** When true, warn if headers have been sent already. */
|
|
23175
|
-
warn_headers_sent:
|
|
23176
|
-
output:
|
|
23177
|
-
outputs:
|
|
23178
|
-
}).strict(),
|
|
23179
|
-
type:
|
|
23200
|
+
warn_headers_sent: Ee.boolean().nullish(),
|
|
23201
|
+
output: Ee.never().optional(),
|
|
23202
|
+
outputs: Ee.never().optional()
|
|
23203
|
+
}).strict(), F3 = Qi.extend({
|
|
23204
|
+
type: Ee.literal("jq"),
|
|
23180
23205
|
/**
|
|
23181
23206
|
* The jq filter text. Refer to https://jqlang.org/manual/ for full documentation.
|
|
23182
23207
|
* 1–10240 characters
|
|
23183
23208
|
*/
|
|
23184
|
-
jq:
|
|
23185
|
-
outputs:
|
|
23186
|
-
}).strict(),
|
|
23187
|
-
type:
|
|
23209
|
+
jq: Ee.string().min(1).max(10240),
|
|
23210
|
+
outputs: Ee.never().optional()
|
|
23211
|
+
}).strict(), D3 = Qi.extend({
|
|
23212
|
+
type: Ee.literal("property"),
|
|
23188
23213
|
/**
|
|
23189
23214
|
* The expected MIME type of the property value. When set to `application/json`,
|
|
23190
23215
|
* SET operations JSON-encode input data before writing it, and GET operations
|
|
23191
23216
|
* JSON-decode output data after reading it. Otherwise, this setting has no effect.
|
|
23192
23217
|
*/
|
|
23193
|
-
content_type:
|
|
23218
|
+
content_type: Ee.enum(["application/json", "text/plain", "application/octet-stream"]).nullish(),
|
|
23194
23219
|
/** The property name to get/set. */
|
|
23195
|
-
property:
|
|
23196
|
-
inputs:
|
|
23197
|
-
outputs:
|
|
23198
|
-
}).strict(),
|
|
23199
|
-
type:
|
|
23220
|
+
property: Ee.string().min(1),
|
|
23221
|
+
inputs: Ee.never().optional(),
|
|
23222
|
+
outputs: Ee.never().optional()
|
|
23223
|
+
}).strict(), L3 = Qi.extend({
|
|
23224
|
+
type: Ee.literal("static"),
|
|
23200
23225
|
/** An object with string keys and free-form values. */
|
|
23201
|
-
values:
|
|
23202
|
-
input:
|
|
23203
|
-
inputs:
|
|
23204
|
-
}).strict(),
|
|
23205
|
-
|
|
23206
|
-
P3,
|
|
23226
|
+
values: Ee.record(Ee.string(), Ee.unknown()),
|
|
23227
|
+
input: Ee.never().optional(),
|
|
23228
|
+
inputs: Ee.never().optional()
|
|
23229
|
+
}).strict(), K3 = P3.pipe(
|
|
23230
|
+
Ee.discriminatedUnion("type", [
|
|
23207
23231
|
M3,
|
|
23208
23232
|
R3,
|
|
23209
23233
|
F3,
|
|
23210
|
-
D3
|
|
23234
|
+
D3,
|
|
23235
|
+
L3
|
|
23211
23236
|
])
|
|
23212
23237
|
);
|
|
23213
|
-
|
|
23214
|
-
nodes:
|
|
23215
|
-
debug:
|
|
23238
|
+
Ee.object({
|
|
23239
|
+
nodes: Ee.array(K3).min(1, "At least one node is required"),
|
|
23240
|
+
debug: Ee.boolean().nullish()
|
|
23216
23241
|
}).strict().superRefine((e, t) => {
|
|
23217
23242
|
oh(e, _a, t);
|
|
23218
23243
|
});
|
|
23219
|
-
const Gd = fu.options,
|
|
23244
|
+
const Gd = fu.options, B3 = Ee.string().min(1).refine((e) => !e.includes("."), "Invalid node name").refine(
|
|
23220
23245
|
(e) => !ih(e),
|
|
23221
23246
|
"Node name conflicts with reserved implicit node"
|
|
23222
|
-
), ln =
|
|
23247
|
+
), ln = Ee.string().refine((e) => {
|
|
23223
23248
|
if (!e || /\s/.test(e)) return !1;
|
|
23224
23249
|
const t = e.indexOf(".");
|
|
23225
23250
|
if (t === -1) return !0;
|
|
23226
23251
|
const n = e.slice(0, t), o = e.slice(t + 1);
|
|
23227
23252
|
return n.length > 0 && o.length > 0;
|
|
23228
|
-
}, "Invalid connection"), er =
|
|
23229
|
-
type:
|
|
23230
|
-
name:
|
|
23253
|
+
}, "Invalid connection"), er = Ee.object({
|
|
23254
|
+
type: Ee.string(),
|
|
23255
|
+
name: B3,
|
|
23231
23256
|
input: ln.nullish(),
|
|
23232
|
-
inputs:
|
|
23257
|
+
inputs: Ee.record(Ee.string(), ln.nullish()).nullish(),
|
|
23233
23258
|
output: ln.nullish(),
|
|
23234
|
-
outputs:
|
|
23235
|
-
}).loose(),
|
|
23259
|
+
outputs: Ee.record(Ee.string(), ln.nullish()).nullish()
|
|
23260
|
+
}).loose(), j3 = Ee.object({ type: Ee.string(), name: Ee.string() }).loose().superRefine((e, t) => {
|
|
23236
23261
|
const n = e.type, o = e.name;
|
|
23237
23262
|
(typeof o != "string" || o.length === 0 || o.includes(".")) && t.addIssue({
|
|
23238
23263
|
code: "custom",
|
|
@@ -23246,57 +23271,57 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23246
23271
|
", "
|
|
23247
23272
|
)}`
|
|
23248
23273
|
});
|
|
23249
|
-
}),
|
|
23250
|
-
type:
|
|
23274
|
+
}), q3 = er.extend({
|
|
23275
|
+
type: Ee.literal("call"),
|
|
23251
23276
|
method: ah.nullish(),
|
|
23252
|
-
ssl_server_name:
|
|
23253
|
-
timeout:
|
|
23254
|
-
url:
|
|
23255
|
-
inputs:
|
|
23277
|
+
ssl_server_name: Ee.string().nullish(),
|
|
23278
|
+
timeout: Ee.union([Ee.number(), Ee.string()]).nullish(),
|
|
23279
|
+
url: Ee.string().nullish(),
|
|
23280
|
+
inputs: Ee.object({
|
|
23256
23281
|
body: ln.nullish(),
|
|
23257
23282
|
headers: ln.nullish(),
|
|
23258
23283
|
query: ln.nullish()
|
|
23259
23284
|
}).partial().nullish(),
|
|
23260
|
-
outputs:
|
|
23285
|
+
outputs: Ee.object({
|
|
23261
23286
|
body: ln.nullish(),
|
|
23262
23287
|
headers: ln.nullish(),
|
|
23263
23288
|
status: ln.nullish()
|
|
23264
23289
|
}).partial().nullish()
|
|
23265
|
-
}).strict(), q3 = er.extend({
|
|
23266
|
-
type: we.literal("exit"),
|
|
23267
|
-
status: we.union([we.number(), we.string()]).nullish(),
|
|
23268
|
-
warn_headers_sent: we.boolean().nullish(),
|
|
23269
|
-
output: we.never().optional(),
|
|
23270
|
-
outputs: we.never().optional()
|
|
23271
23290
|
}).strict(), V3 = er.extend({
|
|
23272
|
-
type:
|
|
23273
|
-
|
|
23274
|
-
|
|
23291
|
+
type: Ee.literal("exit"),
|
|
23292
|
+
status: Ee.union([Ee.number(), Ee.string()]).nullish(),
|
|
23293
|
+
warn_headers_sent: Ee.boolean().nullish(),
|
|
23294
|
+
output: Ee.never().optional(),
|
|
23295
|
+
outputs: Ee.never().optional()
|
|
23275
23296
|
}).strict(), z3 = er.extend({
|
|
23276
|
-
type:
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
inputs: we.never().optional(),
|
|
23280
|
-
outputs: we.never().optional()
|
|
23297
|
+
type: Ee.literal("jq"),
|
|
23298
|
+
jq: Ee.string().nullish(),
|
|
23299
|
+
outputs: Ee.never().optional()
|
|
23281
23300
|
}).strict(), U3 = er.extend({
|
|
23282
|
-
type:
|
|
23283
|
-
|
|
23284
|
-
|
|
23285
|
-
inputs:
|
|
23286
|
-
|
|
23287
|
-
|
|
23288
|
-
|
|
23301
|
+
type: Ee.literal("property"),
|
|
23302
|
+
content_type: Ee.string().nullish(),
|
|
23303
|
+
property: Ee.string().nullish(),
|
|
23304
|
+
inputs: Ee.never().optional(),
|
|
23305
|
+
outputs: Ee.never().optional()
|
|
23306
|
+
}).strict(), H3 = er.extend({
|
|
23307
|
+
type: Ee.literal("static"),
|
|
23308
|
+
values: Ee.record(Ee.string(), Ee.unknown()).nullish(),
|
|
23309
|
+
input: Ee.never().optional(),
|
|
23310
|
+
inputs: Ee.never().optional()
|
|
23311
|
+
}).strict(), G3 = j3.pipe(
|
|
23312
|
+
Ee.discriminatedUnion("type", [
|
|
23289
23313
|
q3,
|
|
23290
23314
|
V3,
|
|
23291
23315
|
z3,
|
|
23292
|
-
U3
|
|
23316
|
+
U3,
|
|
23317
|
+
H3
|
|
23293
23318
|
])
|
|
23294
|
-
),
|
|
23295
|
-
nodes:
|
|
23296
|
-
debug:
|
|
23319
|
+
), Y3 = Ee.object({
|
|
23320
|
+
nodes: Ee.array(G3).nullish(),
|
|
23321
|
+
debug: Ee.boolean().nullish()
|
|
23297
23322
|
}).strict().superRefine((e, t) => {
|
|
23298
23323
|
!e || !Array.isArray(e.nodes) || oh(e, ba, t);
|
|
23299
|
-
}).nullish(),
|
|
23324
|
+
}).nullish(), W3 = { class: "option-label" }, X3 = ["innerHTML"], Z3 = /* @__PURE__ */ ve({
|
|
23300
23325
|
__name: "DatakitForm",
|
|
23301
23326
|
props: {
|
|
23302
23327
|
generalInfoTitle: {},
|
|
@@ -23358,7 +23383,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23358
23383
|
}
|
|
23359
23384
|
function f(h) {
|
|
23360
23385
|
d();
|
|
23361
|
-
const { success: v } =
|
|
23386
|
+
const { success: v } = Y3.safeParse(h);
|
|
23362
23387
|
s.value = v;
|
|
23363
23388
|
}
|
|
23364
23389
|
function m(h) {
|
|
@@ -23370,12 +23395,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23370
23395
|
});
|
|
23371
23396
|
}
|
|
23372
23397
|
return (h, v) => {
|
|
23373
|
-
const g =
|
|
23398
|
+
const g = we("KTooltip");
|
|
23374
23399
|
return w(), Y(pp, He(n, { class: "dk-form" }), nt({
|
|
23375
23400
|
default: F((y) => [
|
|
23376
23401
|
P(Ht, He(y, { tag: "div" }), {
|
|
23377
23402
|
default: F(() => [
|
|
23378
|
-
r.value === "flow" ? (w(), Y(
|
|
23403
|
+
r.value === "flow" ? (w(), Y(C3, {
|
|
23379
23404
|
key: 0,
|
|
23380
23405
|
"is-editing": n.isEditing,
|
|
23381
23406
|
onChange: c
|
|
@@ -23391,7 +23416,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23391
23416
|
}, 1040)
|
|
23392
23417
|
]),
|
|
23393
23418
|
"plugin-config-description": F(() => [
|
|
23394
|
-
|
|
23419
|
+
H("span", { innerHTML: u.value }, null, 8, X3)
|
|
23395
23420
|
]),
|
|
23396
23421
|
_: 2
|
|
23397
23422
|
}, [
|
|
@@ -23409,9 +23434,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23409
23434
|
text: p(t)("plugins.free-form.datakit.flow_editor.disabled_tooltip")
|
|
23410
23435
|
}, {
|
|
23411
23436
|
default: F(() => [
|
|
23412
|
-
|
|
23437
|
+
H("div", W3, [
|
|
23413
23438
|
(w(), Y(mt(a[y.value]))),
|
|
23414
|
-
De(" " +
|
|
23439
|
+
De(" " + pe(y.label), 1)
|
|
23415
23440
|
])
|
|
23416
23441
|
]),
|
|
23417
23442
|
_: 2
|
|
@@ -23425,7 +23450,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23425
23450
|
]), 1040);
|
|
23426
23451
|
};
|
|
23427
23452
|
}
|
|
23428
|
-
}),
|
|
23453
|
+
}), J3 = /* @__PURE__ */ Me(Z3, [["__scopeId", "data-v-ef778da1"]]), Yd = (e) => {
|
|
23429
23454
|
if (!(!e || typeof e != "object"))
|
|
23430
23455
|
for (const [t, n] of Object.entries(e))
|
|
23431
23456
|
typeof n == "string" && (e[t] = n.split(/\s*,\s*/).filter(Boolean));
|
|
@@ -23433,7 +23458,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23433
23458
|
if (!(!e || typeof e != "object"))
|
|
23434
23459
|
for (const [t, n] of Object.entries(e))
|
|
23435
23460
|
Array.isArray(n) && (e[t] = n.join(", "));
|
|
23436
|
-
},
|
|
23461
|
+
}, Q3 = /* @__PURE__ */ ve({
|
|
23437
23462
|
__name: "ConfigForm",
|
|
23438
23463
|
props: {
|
|
23439
23464
|
schema: {},
|
|
@@ -23486,7 +23511,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23486
23511
|
_: 1
|
|
23487
23512
|
}, 8, ["data", "schema"]));
|
|
23488
23513
|
}
|
|
23489
|
-
}),
|
|
23514
|
+
}), eK = /* @__PURE__ */ ve({
|
|
23490
23515
|
__name: "AIMcpProxyForm",
|
|
23491
23516
|
props: {
|
|
23492
23517
|
schema: {},
|
|
@@ -23502,12 +23527,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23502
23527
|
const t = e, n = Jt();
|
|
23503
23528
|
return st(ti, n == null ? void 0 : n[no]), (o, i) => (w(), Y(Kl, gn(xn(t)), {
|
|
23504
23529
|
default: F((r) => [
|
|
23505
|
-
P(
|
|
23530
|
+
P(Q3, gn(xn(r)), null, 16)
|
|
23506
23531
|
]),
|
|
23507
23532
|
_: 1
|
|
23508
23533
|
}, 16));
|
|
23509
23534
|
}
|
|
23510
|
-
}),
|
|
23535
|
+
}), tK = /* @__PURE__ */ ve({
|
|
23511
23536
|
__name: "ConfigForm",
|
|
23512
23537
|
props: {
|
|
23513
23538
|
schema: {},
|
|
@@ -23557,7 +23582,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23557
23582
|
_: 1
|
|
23558
23583
|
}, 8, ["data", "schema"]));
|
|
23559
23584
|
}
|
|
23560
|
-
}),
|
|
23585
|
+
}), nK = /* @__PURE__ */ Me(tK, [["__scopeId", "data-v-3e5ed51d"]]), oK = /* @__PURE__ */ ve({
|
|
23561
23586
|
__name: "CommonForm",
|
|
23562
23587
|
props: {
|
|
23563
23588
|
generalInfoTitle: {},
|
|
@@ -23578,22 +23603,22 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23578
23603
|
const t = e, n = Jt();
|
|
23579
23604
|
return st(ti, n == null ? void 0 : n[no]), (o, i) => (w(), Y(pp, gn(xn(t)), {
|
|
23580
23605
|
default: F((r) => [
|
|
23581
|
-
P(
|
|
23606
|
+
P(nK, gn(xn(r)), null, 16)
|
|
23582
23607
|
]),
|
|
23583
23608
|
_: 1
|
|
23584
23609
|
}, 16));
|
|
23585
23610
|
}
|
|
23586
23611
|
}), Xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23587
23612
|
__proto__: null,
|
|
23588
|
-
AIMcpProxyForm:
|
|
23589
|
-
CommonForm:
|
|
23590
|
-
DatakitForm:
|
|
23613
|
+
AIMcpProxyForm: eK,
|
|
23614
|
+
CommonForm: oK,
|
|
23615
|
+
DatakitForm: J3,
|
|
23591
23616
|
RequestCalloutForm: pk,
|
|
23592
23617
|
ServiceProtectionForm: pC
|
|
23593
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
23618
|
+
}, Symbol.toStringTag, { value: "Module" })), iK = { class: "kong-ui-entities-plugin-form" }, rK = {
|
|
23594
23619
|
key: 1,
|
|
23595
23620
|
class: "entity-form"
|
|
23596
|
-
},
|
|
23621
|
+
}, aK = { class: "plugin-config-empty-state" }, sK = /* @__PURE__ */ ve({
|
|
23597
23622
|
__name: "PluginEntityForm",
|
|
23598
23623
|
props: {
|
|
23599
23624
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -23680,29 +23705,29 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23680
23705
|
enableRedisPartial: r.enableRedisPartial,
|
|
23681
23706
|
experimentalRenders: r.config.app === "konnect" ? r.config.experimentalRenders : void 0
|
|
23682
23707
|
}), { convertToDotNotation: l, unFlattenObject: u, dismissField: d, isObjectEmpty: c, unsetNullForeignKey: f } = ot.usePluginHelpers(), m = ot.useExperimentalFreeForms(), { objectsAreEqual: h } = aa(), { i18n: { t: v } } = Ge(), g = (oe) => r.config.app === "konnect" ? oe.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" ? oe.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "") : oe, y = (oe, le) => {
|
|
23683
|
-
let
|
|
23684
|
-
return
|
|
23708
|
+
let me = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetOne}`;
|
|
23709
|
+
return me = g(me), me = me.replace(/{entity}/gi, oe), me = me.replace(/{id}/gi, le), me;
|
|
23685
23710
|
}, b = (oe) => {
|
|
23686
23711
|
let le = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetAll}`;
|
|
23687
23712
|
return le = g(le), le = le.replace(/{entity}/gi, oe), le;
|
|
23688
23713
|
};
|
|
23689
23714
|
st(Fh, {
|
|
23690
23715
|
getOne: (oe, le) => {
|
|
23691
|
-
const
|
|
23692
|
-
return a.get(
|
|
23716
|
+
const me = y(oe, le);
|
|
23717
|
+
return a.get(me);
|
|
23693
23718
|
},
|
|
23694
23719
|
getAll: (oe, le) => {
|
|
23695
|
-
const
|
|
23696
|
-
return r.config.app === "konnect" ? a.get(
|
|
23720
|
+
const me = b(oe);
|
|
23721
|
+
return r.config.app === "konnect" ? a.get(me).then((be) => {
|
|
23697
23722
|
const { data: { data: _e } } = be;
|
|
23698
23723
|
if (delete le.size, delete le.offset, _e.length && Object.keys(le).length === 1) {
|
|
23699
23724
|
const E = Object.keys(le)[0], C = _e.filter((N) => N[E] ? !!N[E].toLowerCase().includes(le[E].toLowerCase()) : !1);
|
|
23700
23725
|
be.data.data = C;
|
|
23701
23726
|
}
|
|
23702
23727
|
return be;
|
|
23703
|
-
}) : a.get(
|
|
23728
|
+
}) : a.get(me, { params: le });
|
|
23704
23729
|
},
|
|
23705
|
-
getAllV2: (oe, le,
|
|
23730
|
+
getAllV2: (oe, le, me) => {
|
|
23706
23731
|
const be = b(oe);
|
|
23707
23732
|
if (r.config.app === "konnect") {
|
|
23708
23733
|
const { size: _e, offset: E, ...C } = le;
|
|
@@ -23711,12 +23736,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23711
23736
|
params: {
|
|
23712
23737
|
size: 1e3
|
|
23713
23738
|
},
|
|
23714
|
-
signal:
|
|
23739
|
+
signal: me
|
|
23715
23740
|
}).then((T) => {
|
|
23716
23741
|
const { data: { data: V } } = T;
|
|
23717
23742
|
if (V.length && Object.keys(C).length === 1) {
|
|
23718
|
-
const $ = Object.keys(C)[0],
|
|
23719
|
-
T.data.data =
|
|
23743
|
+
const $ = Object.keys(C)[0], G = V.filter((O) => O[$] ? !!O[$].toLowerCase().includes(C[$].toLowerCase()) : !1);
|
|
23744
|
+
T.data.data = G;
|
|
23720
23745
|
}
|
|
23721
23746
|
return T;
|
|
23722
23747
|
});
|
|
@@ -23732,14 +23757,14 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23732
23757
|
};
|
|
23733
23758
|
return a.get(be, {
|
|
23734
23759
|
params: N,
|
|
23735
|
-
signal:
|
|
23760
|
+
signal: me
|
|
23736
23761
|
});
|
|
23737
23762
|
}
|
|
23738
|
-
return a.get(be, { params: le, signal:
|
|
23763
|
+
return a.get(be, { params: le, signal: me });
|
|
23739
23764
|
},
|
|
23740
23765
|
peek: (oe, le = 50) => {
|
|
23741
|
-
const
|
|
23742
|
-
return a.get(
|
|
23766
|
+
const me = b(oe);
|
|
23767
|
+
return a.get(me, {
|
|
23743
23768
|
params: {
|
|
23744
23769
|
size: le
|
|
23745
23770
|
}
|
|
@@ -23756,7 +23781,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23756
23781
|
(le = z.value) == null || le.call(z, oe), I.value = !1;
|
|
23757
23782
|
}, X = () => {
|
|
23758
23783
|
var C, N;
|
|
23759
|
-
const oe = { ...r.schema }, le = x,
|
|
23784
|
+
const oe = { ...r.schema }, le = x, me = J, be = Object.keys(le), _e = {};
|
|
23760
23785
|
if (!c(Q.value))
|
|
23761
23786
|
for (let T = 0; T < ((N = (C = Q.value) == null ? void 0 : C.fields) == null ? void 0 : N.length); T++)
|
|
23762
23787
|
oe[Q.value.fields[T].model] = Q.value.fields[T];
|
|
@@ -23774,8 +23799,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23774
23799
|
}
|
|
23775
23800
|
const V = oe[T];
|
|
23776
23801
|
let $ = le[T];
|
|
23777
|
-
const
|
|
23778
|
-
if ($ == null &&
|
|
23802
|
+
const G = me[T], O = Array.isArray($) ? "array" : typeof $, W = V ? V.valueType : null, L = V ? V.valueArrayType : null, se = V ? V.transform : null;
|
|
23803
|
+
if ($ == null && G == null && !V.submitWhenNull)
|
|
23779
23804
|
return;
|
|
23780
23805
|
if (V) {
|
|
23781
23806
|
if (W && O !== W)
|
|
@@ -23829,7 +23854,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23829
23854
|
let ue = {};
|
|
23830
23855
|
_e[he] && (ue = _e[he]), ue[Oe] = $, $ = ue;
|
|
23831
23856
|
}
|
|
23832
|
-
|
|
23857
|
+
G !== void 0 && $ === "" && $ !== G ? _e[he] = W === "object" ? {} : null : V.type === "checklist" && $ === "" ? _e[he] = [] : $ !== "" && (_e[he] = $), _e[he] = se ? se($) : _e[he], f(he, _e);
|
|
23833
23858
|
});
|
|
23834
23859
|
const E = u(_e);
|
|
23835
23860
|
return M.value && Object.assign(E, ae.value), E;
|
|
@@ -23841,9 +23866,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23841
23866
|
});
|
|
23842
23867
|
}, Z = (oe, le) => {
|
|
23843
23868
|
var _e;
|
|
23844
|
-
const
|
|
23845
|
-
typeof ((_e = r.schema[le]) == null ? void 0 : _e.modelTransformer) == "function" && (
|
|
23846
|
-
const be = Object.assign({}, x,
|
|
23869
|
+
const me = { [le]: oe };
|
|
23870
|
+
typeof ((_e = r.schema[le]) == null ? void 0 : _e.modelTransformer) == "function" && (me[le] = r.schema[le].modelTransformer(oe));
|
|
23871
|
+
const be = Object.assign({}, x, me);
|
|
23847
23872
|
Object.assign(x, be), i("model-updated", {
|
|
23848
23873
|
model: x,
|
|
23849
23874
|
originalModel: J,
|
|
@@ -23852,14 +23877,14 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23852
23877
|
}, K = (oe) => {
|
|
23853
23878
|
i("validity-change", oe);
|
|
23854
23879
|
}, U = (oe, le) => {
|
|
23855
|
-
Object.keys(oe).forEach((
|
|
23880
|
+
Object.keys(oe).forEach((me) => {
|
|
23856
23881
|
var N, T;
|
|
23857
|
-
let be = le ? `${le}-${
|
|
23882
|
+
let be = le ? `${le}-${me}` : me, _e = r.schema[be];
|
|
23858
23883
|
if (!_e) {
|
|
23859
|
-
const V = le ? `${le}-${
|
|
23860
|
-
(N = r.schema[V]) != null && N.fieldNameHasDashes && (be = V, _e = r.schema[be]), le && ((T = r.schema[le]) == null ? void 0 : T.keyFromObject) ===
|
|
23884
|
+
const V = le ? `${le}-${me.replace(/-/g, "_")}` : me.replace(/-/g, "_");
|
|
23885
|
+
(N = r.schema[V]) != null && N.fieldNameHasDashes && (be = V, _e = r.schema[be]), le && ((T = r.schema[le]) == null ? void 0 : T.keyFromObject) === me && (be = le, _e = r.schema[be]);
|
|
23861
23886
|
}
|
|
23862
|
-
const E = oe[
|
|
23887
|
+
const E = oe[me], C = typeof E;
|
|
23863
23888
|
if (_e && _e.type === "object-advanced" && !E) {
|
|
23864
23889
|
x[be] = {}, J[be] = {};
|
|
23865
23890
|
return;
|
|
@@ -23904,8 +23929,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23904
23929
|
consumer_group_id: r.record.consumer_group_id || r.record.consumer_group
|
|
23905
23930
|
}), r.record.partials && q("redis", { partials: r.record.partials }), M.value ? te(r.record) : U(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
|
|
23906
23931
|
const le = {};
|
|
23907
|
-
for (const
|
|
23908
|
-
const be = r.entityMap[
|
|
23932
|
+
for (const me in r.entityMap) {
|
|
23933
|
+
const be = r.entityMap[me].id, _e = r.entityMap[me].idField, E = _e === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(_e).replace("_", "-"));
|
|
23909
23934
|
Object.prototype.hasOwnProperty.call(x, E) && (le[E] = be);
|
|
23910
23935
|
}
|
|
23911
23936
|
U(le);
|
|
@@ -23922,22 +23947,22 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23922
23947
|
var be, _e;
|
|
23923
23948
|
if (h(oe || {}, le || {}))
|
|
23924
23949
|
return;
|
|
23925
|
-
const
|
|
23926
|
-
Object.assign(x,
|
|
23950
|
+
const me = s(oe, void 0, void 0, r.engine);
|
|
23951
|
+
Object.assign(x, me.model), Q.value = {
|
|
23927
23952
|
fields: (_e = (be = Q.value) == null ? void 0 : be.fields) == null ? void 0 : _e.map((E) => ({ ...E, disabled: E.disabled || !1 }))
|
|
23928
|
-
}, Object.assign(J, JSON.parse(JSON.stringify(
|
|
23953
|
+
}, Object.assign(J, JSON.parse(JSON.stringify(me.model))), M.value = r.engine ? r.engine === "vfg" ? void 0 : Os(me.model.name, m) || "CommonForm" : Os(me.model.name, m), R.value = sf(me.model.name), fe();
|
|
23929
23954
|
}, { immediate: !0, deep: !0 }), $n(() => {
|
|
23930
23955
|
var oe, le;
|
|
23931
23956
|
j.value = s(r.schema, void 0, void 0, r.engine), Object.assign(x, ((oe = j.value) == null ? void 0 : oe.model) || {}), Q.value = ((le = j.value) == null ? void 0 : le.schema) || {}, fe();
|
|
23932
23957
|
}), (oe, le) => {
|
|
23933
23958
|
var be;
|
|
23934
|
-
const
|
|
23959
|
+
const me = we("KSkeleton");
|
|
23935
23960
|
return w(), ee(Le, null, [
|
|
23936
|
-
|
|
23937
|
-
de.value ? (w(), Y(
|
|
23961
|
+
H("div", iK, [
|
|
23962
|
+
de.value ? (w(), Y(me, {
|
|
23938
23963
|
key: 0,
|
|
23939
23964
|
type: "form"
|
|
23940
|
-
})) : x.id && e.editing || !e.editing ? (w(), ee("div",
|
|
23965
|
+
})) : x.id && e.editing || !e.editing ? (w(), ee("div", rK, [
|
|
23941
23966
|
M.value ? (w(), Y(mt(Xd[M.value]), {
|
|
23942
23967
|
key: 0,
|
|
23943
23968
|
"form-model": x,
|
|
@@ -23989,7 +24014,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23989
24014
|
onShowNewPartialModal: le[1] || (le[1] = (_e) => oe.$emit("showNewPartialModal", _e))
|
|
23990
24015
|
}, nt({
|
|
23991
24016
|
"plugin-config-empty-state": F(() => [
|
|
23992
|
-
|
|
24017
|
+
H("div", aK, pe(p(v)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
23993
24018
|
]),
|
|
23994
24019
|
_: 2
|
|
23995
24020
|
}, [
|
|
@@ -24021,7 +24046,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24021
24046
|
], 64);
|
|
24022
24047
|
};
|
|
24023
24048
|
}
|
|
24024
|
-
}),
|
|
24049
|
+
}), lK = /* @__PURE__ */ Me(sK, [["__scopeId", "data-v-3a5319dd"]]), uK = { key: 1 }, cK = /* @__PURE__ */ ve({
|
|
24025
24050
|
__name: "PluginFormActionsWrapper",
|
|
24026
24051
|
props: {
|
|
24027
24052
|
teleportTarget: {
|
|
@@ -24035,11 +24060,11 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24035
24060
|
to: e.teleportTarget
|
|
24036
24061
|
}, [
|
|
24037
24062
|
Fe(t.$slots, "default")
|
|
24038
|
-
], 8, ["to"])) : (w(), ee("div",
|
|
24063
|
+
], 8, ["to"])) : (w(), ee("div", uK, [
|
|
24039
24064
|
Fe(t.$slots, "default")
|
|
24040
24065
|
]));
|
|
24041
24066
|
}
|
|
24042
|
-
}),
|
|
24067
|
+
}), dK = { class: "kong-ui-entities-plugin-form-container" }, fK = { key: 0 }, pK = { class: "plugin-form-actions" }, mK = /* @__PURE__ */ ve({
|
|
24043
24068
|
__name: "PluginForm",
|
|
24044
24069
|
props: {
|
|
24045
24070
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -24141,12 +24166,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24141
24166
|
},
|
|
24142
24167
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated", "showNewPartialModal", "globalAction"],
|
|
24143
24168
|
setup(e, { emit: t }) {
|
|
24144
|
-
var
|
|
24169
|
+
var G;
|
|
24145
24170
|
const n = t, o = e, i = sa(), { i18n: { t: r } } = ot.useI18n(), { customSchemas: a, typedefs: s } = ot.useSchemas({
|
|
24146
24171
|
app: o.config.app,
|
|
24147
24172
|
credential: o.credential,
|
|
24148
24173
|
experimentalRenders: o.config.app === "konnect" ? o.config.experimentalRenders : void 0
|
|
24149
|
-
}), { formatPluginFieldLabel: l } = ot.usePluginHelpers(), { getMessageFromError: u } = ei(), { capitalize: d } = ra(), { objectsAreEqual: c } = aa(), { axiosInstance: f } = Vn((
|
|
24174
|
+
}), { formatPluginFieldLabel: l } = ot.usePluginHelpers(), { getMessageFromError: u } = ei(), { capitalize: d } = ra(), { objectsAreEqual: c } = aa(), { axiosInstance: f } = Vn((G = o.config) == null ? void 0 : G.axiosRequestConfig), m = re(!1), h = D(() => !!o.pluginId), v = D(() => o.pluginId ? zn.Edit : zn.Create), g = re(void 0), y = re(void 0), b = D(() => !!(o.credential && o.config.entityId)), _ = re(void 0), A = re({}), S = re(), k = re();
|
|
24150
24175
|
st(fp, {
|
|
24151
24176
|
redisType: S,
|
|
24152
24177
|
redisPath: k,
|
|
@@ -24190,8 +24215,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24190
24215
|
}), ne = () => {
|
|
24191
24216
|
m.value = !m.value;
|
|
24192
24217
|
}, I = D(() => {
|
|
24193
|
-
var $e, Oe, ue, Se, Ie,
|
|
24194
|
-
const O = o.config.entityType === "consumers" && o.config.entityId || ((Oe = ($e = _.value) == null ? void 0 : $e.consumer) == null ? void 0 : Oe.id), W = o.config.entityType === "consumer_groups" && o.config.entityId || ((Se = (ue = _.value) == null ? void 0 : ue.consumer_group) == null ? void 0 : Se.id), L = o.config.entityType === "services" && o.config.entityId || ((
|
|
24218
|
+
var $e, Oe, ue, Se, Ie, ge, ye, je;
|
|
24219
|
+
const O = o.config.entityType === "consumers" && o.config.entityId || ((Oe = ($e = _.value) == null ? void 0 : $e.consumer) == null ? void 0 : Oe.id), W = o.config.entityType === "consumer_groups" && o.config.entityId || ((Se = (ue = _.value) == null ? void 0 : ue.consumer_group) == null ? void 0 : Se.id), L = o.config.entityType === "services" && o.config.entityId || ((ge = (Ie = _.value) == null ? void 0 : Ie.service) == null ? void 0 : ge.id), se = o.config.entityType === "routes" && o.config.entityId || ((je = (ye = _.value) == null ? void 0 : ye.route) == null ? void 0 : je.id);
|
|
24195
24220
|
if (!(O || W || L || se))
|
|
24196
24221
|
return {
|
|
24197
24222
|
global: {
|
|
@@ -24301,44 +24326,44 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24301
24326
|
var ue, Se;
|
|
24302
24327
|
let he = W && W.fields || [];
|
|
24303
24328
|
const $e = a[o.pluginType], Oe = (Se = (ue = Io[o.pluginType]) == null ? void 0 : ue.schema) == null ? void 0 : Se.fields;
|
|
24304
|
-
return Array.isArray(he) && (he = he.reduce((Ie,
|
|
24305
|
-
const ye = Object.keys(
|
|
24329
|
+
return Array.isArray(he) && (he = he.reduce((Ie, ge) => {
|
|
24330
|
+
const ye = Object.keys(ge)[0];
|
|
24306
24331
|
return ye.match(/-/g) ? Ie[ye.replace(/-/g, "_")] = {
|
|
24307
|
-
...
|
|
24332
|
+
...ge[ye],
|
|
24308
24333
|
// A flag to indicate the field name has dashes originally and they are replaced with underscores.
|
|
24309
24334
|
// When submitting the form, the underscores should be replaced with dashes again
|
|
24310
24335
|
fieldNameHasDashes: !0
|
|
24311
|
-
} : Ie[ye] =
|
|
24336
|
+
} : Ie[ye] = ge[ye], Ie;
|
|
24312
24337
|
}, {})), Object.keys(he).sort().forEach((Ie) => {
|
|
24313
24338
|
var ct, We, Ct, yn, ii, ri, ai;
|
|
24314
|
-
const
|
|
24315
|
-
|
|
24339
|
+
const ge = he[Ie];
|
|
24340
|
+
ge.type === "set" && (ge.type = "array");
|
|
24316
24341
|
const ye = O ? `${O}-${Ie}` : `${Ie}`;
|
|
24317
24342
|
if ((ct = $e == null ? void 0 : $e.fieldsToDelete) != null && ct.includes(ye)) {
|
|
24318
24343
|
ic(L, ye);
|
|
24319
24344
|
return;
|
|
24320
24345
|
}
|
|
24321
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
24346
|
+
if (Object.prototype.hasOwnProperty.call(ge, "overwrite") || ge.hidden)
|
|
24322
24347
|
return;
|
|
24323
|
-
if (
|
|
24324
|
-
return X(ye,
|
|
24325
|
-
if (
|
|
24326
|
-
return se &&
|
|
24348
|
+
if (ge.type === "table")
|
|
24349
|
+
return X(ye, ge.schema, L);
|
|
24350
|
+
if (ge.fields)
|
|
24351
|
+
return se && ge.type === "record" ? (L[ye] = {
|
|
24327
24352
|
type: "object",
|
|
24328
24353
|
model: Ie,
|
|
24329
24354
|
schema: {
|
|
24330
|
-
fields: Object.values(X(ye,
|
|
24355
|
+
fields: Object.values(X(ye, ge, {}, !0))
|
|
24331
24356
|
}
|
|
24332
|
-
}, L) : X(ye,
|
|
24333
|
-
if (L[ye] = { id: ye, model: Ie }, L[ye].type =
|
|
24334
|
-
if (!se &&
|
|
24357
|
+
}, L) : X(ye, ge, L);
|
|
24358
|
+
if (L[ye] = { id: ye, model: Ie }, L[ye].type = ge.type === "boolean" ? "checkbox" : "input", L[ye].required = ge.required, L[ye].referenceable = ge.referenceable, ye.startsWith("config-"))
|
|
24359
|
+
if (!se && ge.type === "array" && (J.value = ye), se && J.value && ye.startsWith(J.value)) {
|
|
24335
24360
|
const qe = ye.slice(J.value.length + 1);
|
|
24336
24361
|
L[ye].label = qe.split("-").map(l).join(".");
|
|
24337
24362
|
} else
|
|
24338
24363
|
L[ye].label = l(ye);
|
|
24339
|
-
if ((O === "config" || O.startsWith("config-")) && (We = he[Ie]) != null && We.description && (L[ye].help = _r.parse(he[Ie].description, { mangle: !1, headerIds: !1 })),
|
|
24340
|
-
if (L[ye].type = "object-advanced", L[ye].values =
|
|
24341
|
-
const { type: qe } =
|
|
24364
|
+
if ((O === "config" || O.startsWith("config-")) && (We = he[Ie]) != null && We.description && (L[ye].help = _r.parse(he[Ie].description, { mangle: !1, headerIds: !1 })), ge.type === "map") {
|
|
24365
|
+
if (L[ye].type = "object-advanced", L[ye].values = ge.values, ge.values.type === "array") {
|
|
24366
|
+
const { type: qe } = ge.values.elements || {};
|
|
24342
24367
|
L[ye].schema = {
|
|
24343
24368
|
fields: [{
|
|
24344
24369
|
schema: {
|
|
@@ -24355,13 +24380,13 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24355
24380
|
}
|
|
24356
24381
|
}]
|
|
24357
24382
|
};
|
|
24358
|
-
} else
|
|
24383
|
+
} else ge.values.fields && (L[ye].schema = {
|
|
24359
24384
|
fields: [
|
|
24360
24385
|
{
|
|
24361
24386
|
type: "object",
|
|
24362
24387
|
model: "object",
|
|
24363
24388
|
schema: {
|
|
24364
|
-
fields:
|
|
24389
|
+
fields: ge.values.fields.map((qe) => {
|
|
24365
24390
|
const Mt = Object.keys(qe)[0];
|
|
24366
24391
|
return {
|
|
24367
24392
|
model: Mt,
|
|
@@ -24377,23 +24402,23 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24377
24402
|
});
|
|
24378
24403
|
return L;
|
|
24379
24404
|
}
|
|
24380
|
-
if (
|
|
24405
|
+
if (ge.enum && ge.type === "array" && (L[ye].type = "checklist", L[ye].values = ge.enum, L[ye].multi = !0, L[ye].multiSelect = !0), ge.one_of && ge.type !== "array" && (L[ye].type = "select", L[ye].values = ge.one_of, L[ye].selectOptions = {
|
|
24381
24406
|
noneSelectedText: r("plugins.form.no_selection")
|
|
24382
|
-
}),
|
|
24383
|
-
const qe =
|
|
24407
|
+
}), ge.elements && ge.type === "array") {
|
|
24408
|
+
const qe = ge.elements;
|
|
24384
24409
|
if (L[ye].referenceable = qe.referenceable, L[ye].elements = qe, ["string", "integer", "number"].includes(qe.type) && !qe.one_of) {
|
|
24385
24410
|
const { id: Mt, help: ut, label: Ke, hint: Ue, values: Qe, referenceable: _n, model: Kt } = L[ye], { inputAttributes: tr, ...lh } = JSON.parse(JSON.stringify(Ye));
|
|
24386
24411
|
tr.type = qe.type === "string" ? "text" : "number", L[ye] = { id: Mt, help: ut, label: Ke, hint: Ue, values: Qe, referenceable: _n, model: Kt, inputAttributes: tr, ...lh };
|
|
24387
24412
|
}
|
|
24388
24413
|
}
|
|
24389
|
-
if (
|
|
24414
|
+
if (ge.hint && (L[ye].hint = ge.hint), $e && !$e.overwriteDefault && Object.keys($e).forEach((qe) => {
|
|
24390
24415
|
if (qe === ye) {
|
|
24391
24416
|
const { help: Mt, label: ut, hint: Ke, values: Ue, referenceable: Qe, elements: _n } = L[ye], { help: Kt, ...tr } = $e[qe];
|
|
24392
24417
|
L[ye] = { help: Mt, label: ut, hint: Ke, values: Ue, referenceable: Qe, elements: _n, ...tr }, typeof Kt == "string" && (L[ye].help = _r.parse(Kt, { mangle: !1, headerIds: !1 }));
|
|
24393
24418
|
}
|
|
24394
|
-
}),
|
|
24419
|
+
}), ge.type === "array" && ((Ct = ge.elements) == null ? void 0 : Ct.type) === "record" && Array.isArray(ge.elements.fields)) {
|
|
24395
24420
|
let qe = {};
|
|
24396
|
-
for (const ut of
|
|
24421
|
+
for (const ut of ge.elements.fields)
|
|
24397
24422
|
qe = { ...qe, ...ut };
|
|
24398
24423
|
const Mt = (ri = (ii = (yn = L[ye]) == null ? void 0 : yn.items) == null ? void 0 : ii.schema) == null ? void 0 : ri.fields;
|
|
24399
24424
|
if (Array.isArray(Mt))
|
|
@@ -24404,12 +24429,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24404
24429
|
if (Mt || (L[ye].type = "array", L[ye].newElementButtonLabelClasses = "kong-form-new-element-button-label", L[ye].fieldClasses = "array-card-container-wrapper", L[ye].itemContainerComponent = "FieldArrayCardContainer", L[ye].items = {
|
|
24405
24430
|
type: "object",
|
|
24406
24431
|
schema: {
|
|
24407
|
-
fields: Object.values(X(ye,
|
|
24432
|
+
fields: Object.values(X(ye, ge.elements, {}, !0))
|
|
24408
24433
|
}
|
|
24409
24434
|
}, L[ye].items.schema.fields.forEach(
|
|
24410
24435
|
(ut) => {
|
|
24411
24436
|
var Ke, Ue;
|
|
24412
|
-
for (const Qe of
|
|
24437
|
+
for (const Qe of ge.elements.fields) {
|
|
24413
24438
|
const _n = Object.keys(Qe)[0], Kt = ((Ue = (Ke = ut.id) == null ? void 0 : Ke.split) == null ? void 0 : Ue.call(Ke, "-")) ?? [];
|
|
24414
24439
|
if (Kt[Kt.length - 1] === _n) {
|
|
24415
24440
|
ut.model = _n, ut.label = l(_n);
|
|
@@ -24417,8 +24442,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24417
24442
|
}
|
|
24418
24443
|
}
|
|
24419
24444
|
}
|
|
24420
|
-
),
|
|
24421
|
-
L[ye].items.default = () =>
|
|
24445
|
+
), ge.elements.type === "record" && (L[ye].nestedFields = !0)), !L[ye].nestedFields)
|
|
24446
|
+
L[ye].items.default = () => ge.elements.fields.reduce((ut, Ke) => {
|
|
24422
24447
|
const Ue = Object.keys(Ke)[0];
|
|
24423
24448
|
return ut[Ue] = Ke[Ue].default, ut;
|
|
24424
24449
|
}, {});
|
|
@@ -24446,24 +24471,24 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24446
24471
|
break;
|
|
24447
24472
|
}
|
|
24448
24473
|
}
|
|
24449
|
-
if (
|
|
24474
|
+
if (ge.required && ge.type !== "boolean" && (L[ye].required = !0, L[ye].selectOptions = {
|
|
24450
24475
|
hideNoneSelectedText: !0
|
|
24451
|
-
}),
|
|
24476
|
+
}), ge.required && ge.type === "boolean" && (L[ye].default = ge.default ?? !1), ge.default != null && typeof ge.default != "object" && ge.default !== "function" && (L[ye].default = ge.default), L[ye].type === "input") {
|
|
24452
24477
|
["string", "number"].includes(typeof L[ye].default) && o.config.app === "konnect" && (L[ye].placeholder = `Default: ${L[ye].default === "" ? "<empty string>" : L[ye].default}`);
|
|
24453
|
-
const { type: qe } =
|
|
24454
|
-
qe && (L[ye].valueArrayType = qe === "integer" ? "number" : qe), L[ye].inputType =
|
|
24478
|
+
const { type: qe } = ge.elements || {};
|
|
24479
|
+
qe && (L[ye].valueArrayType = qe === "integer" ? "number" : qe), L[ye].inputType = ge.type === "array" || ge.type === "string" ? ge.encrypted ? "password" : "text" : ge.type;
|
|
24455
24480
|
}
|
|
24456
24481
|
let je = "string";
|
|
24457
|
-
|
|
24482
|
+
ge.enum ? je = ie(ge.enum) : ge.type === "boolean" ? je = "boolean" : ge.type === "number" || ge.type === "integer" ? (je = "number", L[ye].inputType = "number") : ge.type === "array" ? (je = "array", L[ye].default = ge.default, ge.len_min > 0 && (L[ye].submitWhenNull = !0)) : ge.type === "foreign" ? je = "object" : ge.default && Array.isArray(ge.default) ? (je = "array", L[ye].valueArrayType = ie(ge.default)) : ge.default && (je = typeof ge.default), L[ye].valueType = je, ge.fieldNameHasDashes && (L[ye].fieldNameHasDashes = !0);
|
|
24458
24483
|
}), L;
|
|
24459
24484
|
}, q = () => {
|
|
24460
24485
|
var ye, je, ct, We, Ct, yn, ii, ri, ai, qe, Mt, ut;
|
|
24461
|
-
const O = ((ye = rn[o.pluginType]) == null ? void 0 : ye.scope.includes(xt.SERVICE)) ?? !0, W = ((je = rn[o.pluginType]) == null ? void 0 : je.scope.includes(xt.ROUTE)) ?? !0, L = ((ct = rn[o.pluginType]) == null ? void 0 : ct.scope.includes(xt.CONSUMER)) ?? !0, se = o.config.disableConsumerGroupScope ? !1 : ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.CONSUMER_GROUP)) ?? !0, he = o.config.entityType === "consumers" && !!o.config.entityId || !!((yn = (Ct = _.value) == null ? void 0 : Ct.consumer) != null && yn.id), $e = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ri = (ii = _.value) == null ? void 0 : ii.consumer_group) != null && ri.id), Oe = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (ai = _.value) == null ? void 0 : ai.service) != null && qe.id), ue = o.config.entityType === "routes" && !!o.config.entityId || !!((ut = (Mt = _.value) == null ? void 0 : Mt.route) != null && ut.id), Se = [], Ie = (Ke, Ue, Qe) => Ke ? r("plugins.form.disable_source_scope_change", { scope: Qe }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: Qe }) : "",
|
|
24486
|
+
const O = ((ye = rn[o.pluginType]) == null ? void 0 : ye.scope.includes(xt.SERVICE)) ?? !0, W = ((je = rn[o.pluginType]) == null ? void 0 : je.scope.includes(xt.ROUTE)) ?? !0, L = ((ct = rn[o.pluginType]) == null ? void 0 : ct.scope.includes(xt.CONSUMER)) ?? !0, se = o.config.disableConsumerGroupScope ? !1 : ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.CONSUMER_GROUP)) ?? !0, he = o.config.entityType === "consumers" && !!o.config.entityId || !!((yn = (Ct = _.value) == null ? void 0 : Ct.consumer) != null && yn.id), $e = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ri = (ii = _.value) == null ? void 0 : ii.consumer_group) != null && ri.id), Oe = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (ai = _.value) == null ? void 0 : ai.service) != null && qe.id), ue = o.config.entityType === "routes" && !!o.config.entityId || !!((ut = (Mt = _.value) == null ? void 0 : Mt.route) != null && ut.id), Se = [], Ie = (Ke, Ue, Qe) => Ke ? r("plugins.form.disable_source_scope_change", { scope: Qe }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: Qe }) : "", ge = (Ke) => {
|
|
24462
24487
|
var Ue, Qe;
|
|
24463
24488
|
return ((Qe = (Ue = o.scopedEntitiesPermissions) == null ? void 0 : Ue[Ke]) == null ? void 0 : Qe.canRetrieve) === !1;
|
|
24464
24489
|
};
|
|
24465
24490
|
if (O) {
|
|
24466
|
-
const Ke =
|
|
24491
|
+
const Ke = ge("service"), Ue = "services", Qe = Oe && o.disableScopeSelection;
|
|
24467
24492
|
Se.push({
|
|
24468
24493
|
id: "service-id",
|
|
24469
24494
|
model: "service-id",
|
|
@@ -24482,7 +24507,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24482
24507
|
});
|
|
24483
24508
|
}
|
|
24484
24509
|
if (W) {
|
|
24485
|
-
const Ke =
|
|
24510
|
+
const Ke = ge("route"), Ue = "routes", Qe = ue && o.disableScopeSelection;
|
|
24486
24511
|
Se.push({
|
|
24487
24512
|
id: "route-id",
|
|
24488
24513
|
model: "route-id",
|
|
@@ -24502,7 +24527,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24502
24527
|
});
|
|
24503
24528
|
}
|
|
24504
24529
|
if (L) {
|
|
24505
|
-
const Ke =
|
|
24530
|
+
const Ke = ge("consumer"), Ue = "consumers", Qe = he && o.disableScopeSelection;
|
|
24506
24531
|
Se.push({
|
|
24507
24532
|
model: "consumer-id",
|
|
24508
24533
|
label: r("plugins.form.scoping.consumer.label"),
|
|
@@ -24520,7 +24545,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24520
24545
|
});
|
|
24521
24546
|
}
|
|
24522
24547
|
if (se) {
|
|
24523
|
-
const Ke =
|
|
24548
|
+
const Ke = ge("consumer_group"), Ue = "consumer_groups", Qe = $e && o.disableScopeSelection;
|
|
24524
24549
|
Se.push({
|
|
24525
24550
|
model: "consumer_group-id",
|
|
24526
24551
|
label: r("plugins.form.scoping.consumer_group.label"),
|
|
@@ -24581,7 +24606,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24581
24606
|
}, { deep: !0 });
|
|
24582
24607
|
const le = () => {
|
|
24583
24608
|
o.config.cancelRoute ? i.push(o.config.cancelRoute) : n("cancel");
|
|
24584
|
-
},
|
|
24609
|
+
}, me = D(() => {
|
|
24585
24610
|
let O = `${o.config.apiBaseUrl}${dt.form[o.config.app].validate}`;
|
|
24586
24611
|
return o.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, o.config.controlPlaneId || "") : o.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, o.config.workspace ? `/${o.config.workspace}` : "")), O = O.replace(/{id}/gi, o.pluginId), O;
|
|
24587
24612
|
}), be = D(() => {
|
|
@@ -24609,7 +24634,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24609
24634
|
model: j.fields,
|
|
24610
24635
|
payload: W,
|
|
24611
24636
|
schema: y.value
|
|
24612
|
-
}), !b.value && !_e.value && await f.post(
|
|
24637
|
+
}), !b.value && !_e.value && await f.post(me.value, W), v.value === "create" ? O = await f.post(be.value, W) : v.value === "edit" && (O = o.config.app === "konnect" || S.value && W.partials ? await f.put(be.value, Object.assign({ ordering: ae.value }, W)) : await f.patch(be.value, W)), Object.assign(M, j.fields), n("update", O == null ? void 0 : O.data);
|
|
24613
24638
|
} catch (O) {
|
|
24614
24639
|
j.serverErrorMessage = u(O), n("error", O);
|
|
24615
24640
|
} finally {
|
|
@@ -24655,8 +24680,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24655
24680
|
V.value = !1;
|
|
24656
24681
|
}
|
|
24657
24682
|
}), (O, W) => {
|
|
24658
|
-
const L =
|
|
24659
|
-
return w(), ee("div",
|
|
24683
|
+
const L = we("KSkeleton"), se = we("KEmptyState"), he = we("KButton"), $e = we("KTabs"), Oe = we("KSlideout");
|
|
24684
|
+
return w(), ee("div", dK, [
|
|
24660
24685
|
V.value ? (w(), Y(L, {
|
|
24661
24686
|
key: 0,
|
|
24662
24687
|
type: "form"
|
|
@@ -24667,7 +24692,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24667
24692
|
"icon-variant": "error"
|
|
24668
24693
|
}, {
|
|
24669
24694
|
default: F(() => [
|
|
24670
|
-
|
|
24695
|
+
H("h3", null, pe(p(r)("errors.load_schema")), 1)
|
|
24671
24696
|
]),
|
|
24672
24697
|
_: 1
|
|
24673
24698
|
})) : (w(), Y(p(yh), {
|
|
@@ -24688,12 +24713,12 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24688
24713
|
onLoading: W[5] || (W[5] = (ue) => O.$emit("loading", ue))
|
|
24689
24714
|
}, {
|
|
24690
24715
|
"form-actions": F(() => [
|
|
24691
|
-
e.isWizardStep ? (w(), ee("div",
|
|
24716
|
+
e.isWizardStep ? (w(), ee("div", fK)) : (w(), Y(cK, {
|
|
24692
24717
|
key: 1,
|
|
24693
24718
|
"teleport-target": e.actionsTeleportTarget
|
|
24694
24719
|
}, {
|
|
24695
24720
|
default: F(() => [
|
|
24696
|
-
|
|
24721
|
+
H("div", pK, [
|
|
24697
24722
|
e.hideViewConfigAction ? Ce("", !0) : (w(), Y(he, {
|
|
24698
24723
|
key: 0,
|
|
24699
24724
|
appearance: "tertiary",
|
|
@@ -24701,7 +24726,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24701
24726
|
onClick: W[3] || (W[3] = (ue) => ne())
|
|
24702
24727
|
}, {
|
|
24703
24728
|
default: F(() => [
|
|
24704
|
-
De(
|
|
24729
|
+
De(pe(p(r)("actions.view_configuration")), 1)
|
|
24705
24730
|
]),
|
|
24706
24731
|
_: 1
|
|
24707
24732
|
}, 8, ["data-testid"])),
|
|
@@ -24713,7 +24738,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24713
24738
|
onClick: le
|
|
24714
24739
|
}, {
|
|
24715
24740
|
default: F(() => [
|
|
24716
|
-
De(
|
|
24741
|
+
De(pe(p(r)("actions.cancel")), 1)
|
|
24717
24742
|
]),
|
|
24718
24743
|
_: 1
|
|
24719
24744
|
}, 8, ["data-testid", "disabled"]),
|
|
@@ -24725,7 +24750,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24725
24750
|
onClick: C
|
|
24726
24751
|
}, {
|
|
24727
24752
|
default: F(() => [
|
|
24728
|
-
De(
|
|
24753
|
+
De(pe(p(r)("actions.save")), 1)
|
|
24729
24754
|
]),
|
|
24730
24755
|
_: 1
|
|
24731
24756
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -24735,11 +24760,11 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24735
24760
|
}, 8, ["teleport-target"]))
|
|
24736
24761
|
]),
|
|
24737
24762
|
default: F(() => [
|
|
24738
|
-
|
|
24763
|
+
H("form", {
|
|
24739
24764
|
hidden: "",
|
|
24740
24765
|
onSubmit: C
|
|
24741
24766
|
}, null, 32),
|
|
24742
|
-
P(
|
|
24767
|
+
P(lK, {
|
|
24743
24768
|
config: e.config,
|
|
24744
24769
|
credential: b.value,
|
|
24745
24770
|
editing: v.value === p(zn).Edit,
|
|
@@ -24769,7 +24794,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24769
24794
|
onClose: ne
|
|
24770
24795
|
}, {
|
|
24771
24796
|
default: F(() => [
|
|
24772
|
-
|
|
24797
|
+
H("div", null, pe(p(r)("view_configuration.message")), 1),
|
|
24773
24798
|
P($e, {
|
|
24774
24799
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
24775
24800
|
tabs: Q.value
|
|
@@ -24800,16 +24825,16 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24800
24825
|
]);
|
|
24801
24826
|
};
|
|
24802
24827
|
}
|
|
24803
|
-
}),
|
|
24828
|
+
}), TB = /* @__PURE__ */ Me(mK, [["__scopeId", "data-v-c83db710"]]), gK = { class: "kong-ui-entities-plugins-list" }, hK = { class: "button-row" }, vK = { class: "name-cell-wrapper" }, yK = { class: "info-wrapper" }, _K = {
|
|
24804
24829
|
key: 0,
|
|
24805
24830
|
class: "info-name"
|
|
24806
|
-
},
|
|
24831
|
+
}, bK = {
|
|
24807
24832
|
key: 1,
|
|
24808
24833
|
class: "info-name"
|
|
24809
|
-
},
|
|
24834
|
+
}, wK = {
|
|
24810
24835
|
key: 2,
|
|
24811
24836
|
class: "info-type"
|
|
24812
|
-
},
|
|
24837
|
+
}, EK = { key: 1 }, kK = /* @__PURE__ */ ve({
|
|
24813
24838
|
__name: "PluginList",
|
|
24814
24839
|
props: {
|
|
24815
24840
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -24900,9 +24925,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24900
24925
|
};
|
|
24901
24926
|
(V = i.config) != null && V.entityId || (g.appliedTo = { label: r("plugins.list.table_headers.applied_to"), sortable: !1 }), g.enabled = { label: r("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, h && (g.ordering = { label: r("plugins.list.table_headers.ordering"), sortable: !0 }), g.tags = { label: r("plugins.list.table_headers.tags"), sortable: !1 };
|
|
24902
24927
|
const y = g, b = D(() => {
|
|
24903
|
-
var
|
|
24928
|
+
var G, O, W, L;
|
|
24904
24929
|
let $ = i.config.entityType ? `${i.config.apiBaseUrl}${dt.list[i.config.app].forEntity}` : `${i.config.apiBaseUrl}${dt.list[i.config.app].all}`;
|
|
24905
|
-
return i.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((
|
|
24930
|
+
return i.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((G = i.config) == null ? void 0 : G.controlPlaneId) || "") : i.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (O = i.config) != null && O.workspace ? `/${i.config.workspace}` : "")), $.replace(/{entityType}/gi, ((W = i.config) == null ? void 0 : W.entityType) || "").replace(/{entityId}/gi, ((L = i.config) == null ? void 0 : L.entityId) || "");
|
|
24906
24931
|
}), _ = re(""), A = D(() => i.config.app === "konnect" || i.config.isExactMatch ? {
|
|
24907
24932
|
isExactMatch: !0,
|
|
24908
24933
|
fields: {
|
|
@@ -24929,26 +24954,26 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24929
24954
|
R.value++;
|
|
24930
24955
|
}, Q = re(null), J = ($) => {
|
|
24931
24956
|
var O, W, L, se;
|
|
24932
|
-
const
|
|
24933
|
-
return ((O = $.route) != null && O.id || $.route_id) &&
|
|
24934
|
-
}, x = async ($,
|
|
24957
|
+
const G = [];
|
|
24958
|
+
return ((O = $.route) != null && O.id || $.route_id) && G.push({ type: "route", badgeText: r("plugins.list.table_headers.applied_to_badges.route") }), ((W = $.service) != null && W.id || $.service_id) && G.push({ type: "service", badgeText: r("plugins.list.table_headers.applied_to_badges.service") }), ((L = $.consumer) != null && L.id || $.consumer_id) && G.push({ type: "consumer", badgeText: r("plugins.list.table_headers.applied_to_badges.consumer") }), ((se = $.consumer_group) != null && se.id || $.consumer_group_id) && G.push({ type: "consumer_group", badgeText: r("plugins.list.table_headers.applied_to_badges.consumer_group") }), G.length ? G : [{ type: null, badgeText: r("plugins.list.table_headers.applied_to_badges.global") }];
|
|
24959
|
+
}, x = async ($, G) => {
|
|
24935
24960
|
var O;
|
|
24936
|
-
return $ === null ? !1 : await ((O = i.canRetrieveScopedEntity) == null ? void 0 : O.call(i, $,
|
|
24937
|
-
}, ne = ($,
|
|
24961
|
+
return $ === null ? !1 : await ((O = i.canRetrieveScopedEntity) == null ? void 0 : O.call(i, $, G.id));
|
|
24962
|
+
}, ne = ($, G) => {
|
|
24938
24963
|
var W, L, se, he, $e;
|
|
24939
24964
|
let O = null;
|
|
24940
24965
|
switch ($) {
|
|
24941
24966
|
case "route":
|
|
24942
|
-
O = (W =
|
|
24967
|
+
O = (W = G.route) == null ? void 0 : W.id;
|
|
24943
24968
|
break;
|
|
24944
24969
|
case "service":
|
|
24945
|
-
O = (L =
|
|
24970
|
+
O = (L = G.service) == null ? void 0 : L.id;
|
|
24946
24971
|
break;
|
|
24947
24972
|
case "consumer":
|
|
24948
|
-
O = (se =
|
|
24973
|
+
O = (se = G.consumer) == null ? void 0 : se.id;
|
|
24949
24974
|
break;
|
|
24950
24975
|
case "consumer_group":
|
|
24951
|
-
O = (he =
|
|
24976
|
+
O = (he = G.consumer_group) == null ? void 0 : he.id;
|
|
24952
24977
|
break;
|
|
24953
24978
|
}
|
|
24954
24979
|
O && (($e = i.config) != null && $e.getScopedEntityViewRoute) && a.push(i.config.getScopedEntityViewRoute($, O));
|
|
@@ -24959,8 +24984,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24959
24984
|
name: ""
|
|
24960
24985
|
};
|
|
24961
24986
|
if (z.value) {
|
|
24962
|
-
const { enabled:
|
|
24963
|
-
$.action =
|
|
24987
|
+
const { enabled: G, id: O, name: W } = z.value;
|
|
24988
|
+
$.action = G ? "disable" : "enable", $.id = O, $.name = n.getDisplayName(W) || O;
|
|
24964
24989
|
}
|
|
24965
24990
|
return $;
|
|
24966
24991
|
}), ie = ($) => {
|
|
@@ -24971,18 +24996,18 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24971
24996
|
var W, L, se, he, $e, Oe, ue, Se;
|
|
24972
24997
|
if (!await ((W = i.canEdit) == null ? void 0 : W.call(i, z.value)) || !z.value)
|
|
24973
24998
|
return;
|
|
24974
|
-
let
|
|
24975
|
-
i.config.app === "konnect" ?
|
|
24999
|
+
let G = `${i.config.apiBaseUrl}${($e = dt.item[i.config.app]) == null ? void 0 : $e[(L = i.config) != null && L.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((se = i.config) == null ? void 0 : se.entityType) || "").replace(/{entityId}/gi, ((he = i.config) == null ? void 0 : he.entityId) || "")}`.replace(/{id}/gi, z.value.id || "");
|
|
25000
|
+
i.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, ((Oe = i.config) == null ? void 0 : Oe.controlPlaneId) || "") : i.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, (ue = i.config) != null && ue.workspace ? `/${i.config.workspace}` : ""));
|
|
24976
25001
|
const O = !z.value.enabled;
|
|
24977
25002
|
try {
|
|
24978
|
-
const { data: Ie } = ((Se = i.config) == null ? void 0 : Se.app) === "konnect" ? await s.put(
|
|
25003
|
+
const { data: Ie } = ((Se = i.config) == null ? void 0 : Se.app) === "konnect" ? await s.put(G, { ...z.value, enabled: O }, { timeout: 12e4 }) : await s.patch(G, { ...z.value, enabled: O }, { timeout: 12e4 });
|
|
24979
25004
|
o("toggle-enabled", O, Ie), z.value.enabled = O;
|
|
24980
25005
|
} catch (Ie) {
|
|
24981
25006
|
o("error", Ie);
|
|
24982
25007
|
}
|
|
24983
|
-
}, Z = async ($,
|
|
25008
|
+
}, Z = async ($, G) => {
|
|
24984
25009
|
const O = $.id;
|
|
24985
|
-
if (!await
|
|
25010
|
+
if (!await G(O)) {
|
|
24986
25011
|
o("copy:error", {
|
|
24987
25012
|
entity: $,
|
|
24988
25013
|
field: "id",
|
|
@@ -24995,9 +25020,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24995
25020
|
field: "id",
|
|
24996
25021
|
message: r("copy.success", { val: O })
|
|
24997
25022
|
});
|
|
24998
|
-
}, K = async ($,
|
|
25023
|
+
}, K = async ($, G) => {
|
|
24999
25024
|
const O = JSON.stringify($);
|
|
25000
|
-
if (!await
|
|
25025
|
+
if (!await G(O)) {
|
|
25001
25026
|
o("copy:error", {
|
|
25002
25027
|
entity: $,
|
|
25003
25028
|
message: r("errors.copy")
|
|
@@ -25020,18 +25045,18 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25020
25045
|
}), de = ($) => ({
|
|
25021
25046
|
label: r("actions.configure_dynamic_ordering"),
|
|
25022
25047
|
to: i.config.getConfigureDynamicOrderingRoute($)
|
|
25023
|
-
}), fe = re(void 0), ke = re(!1), xe = re(!1), oe = re(""), le = Sh(i.config, b.value),
|
|
25048
|
+
}), fe = re(void 0), ke = re(!1), xe = re(!1), oe = re(""), le = Sh(i.config, b.value), me = ($) => {
|
|
25024
25049
|
fe.value = $, ke.value = !0;
|
|
25025
25050
|
}, be = () => {
|
|
25026
25051
|
ke.value = !1;
|
|
25027
25052
|
}, _e = async () => {
|
|
25028
|
-
var $,
|
|
25053
|
+
var $, G, O;
|
|
25029
25054
|
if (($ = fe.value) != null && $.id) {
|
|
25030
25055
|
xe.value = !0;
|
|
25031
25056
|
try {
|
|
25032
25057
|
await s.delete(le(fe.value.id)), xe.value = !1, ke.value = !1, R.value++, o("delete:success", fe.value);
|
|
25033
25058
|
} catch (W) {
|
|
25034
|
-
oe.value = ((O = (
|
|
25059
|
+
oe.value = ((O = (G = W.response) == null ? void 0 : G.data) == null ? void 0 : O.message) || W.message || r("errors.delete"), o("error", W);
|
|
25035
25060
|
} finally {
|
|
25036
25061
|
xe.value = !1;
|
|
25037
25062
|
}
|
|
@@ -25040,11 +25065,11 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25040
25065
|
a.push(i.config.createRoute);
|
|
25041
25066
|
};
|
|
25042
25067
|
Ne(k, ($) => {
|
|
25043
|
-
var
|
|
25068
|
+
var G, O, W;
|
|
25044
25069
|
if ($.status === xh.Error) {
|
|
25045
25070
|
Q.value = {
|
|
25046
25071
|
title: r("errors.general")
|
|
25047
|
-
}, (W = (O = (
|
|
25072
|
+
}, (W = (O = (G = $.error) == null ? void 0 : G.response) == null ? void 0 : O.data) != null && W.message && (Q.value.message = $.error.response.data.message), o("error", $.error);
|
|
25048
25073
|
return;
|
|
25049
25074
|
}
|
|
25050
25075
|
Q.value = null;
|
|
@@ -25057,9 +25082,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25057
25082
|
}), N = re(!1);
|
|
25058
25083
|
return $n(async () => {
|
|
25059
25084
|
N.value = await i.canCreate(), N.value && (C.value.title = r("plugins.list.empty_state.title"), C.value.ctaText = r("actions.create"));
|
|
25060
|
-
}), ($,
|
|
25061
|
-
const O =
|
|
25062
|
-
return w(), ee("div",
|
|
25085
|
+
}), ($, G) => {
|
|
25086
|
+
const O = we("KButton"), W = we("KEmptyState"), L = we("KBadge"), se = we("KTruncate"), he = we("KInputSwitch"), $e = we("KDropdownItem"), Oe = we("KClipboardProvider");
|
|
25087
|
+
return w(), ee("div", gK, [
|
|
25063
25088
|
P(p(Ah), {
|
|
25064
25089
|
"cache-identifier": e.cacheIdentifier,
|
|
25065
25090
|
"disable-sorting": v.value,
|
|
@@ -25075,14 +25100,14 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25075
25100
|
title: e.title,
|
|
25076
25101
|
"title-tag": e.titleTag,
|
|
25077
25102
|
onClearSearchInput: M,
|
|
25078
|
-
"onClick:row":
|
|
25103
|
+
"onClick:row": G[4] || (G[4] = (ue) => U(ue)),
|
|
25079
25104
|
onSort: j,
|
|
25080
25105
|
onState: p(u)
|
|
25081
25106
|
}, nt({
|
|
25082
25107
|
"toolbar-filter": F(() => [
|
|
25083
25108
|
P(p(Th), {
|
|
25084
25109
|
modelValue: _.value,
|
|
25085
|
-
"onUpdate:modelValue":
|
|
25110
|
+
"onUpdate:modelValue": G[0] || (G[0] = (ue) => _.value = ue),
|
|
25086
25111
|
config: A.value
|
|
25087
25112
|
}, null, 8, ["modelValue", "config"])
|
|
25088
25113
|
]),
|
|
@@ -25091,14 +25116,14 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25091
25116
|
disabled: !e.useActionOutside,
|
|
25092
25117
|
to: "#kong-ui-app-page-header-action-button"
|
|
25093
25118
|
}, [
|
|
25094
|
-
|
|
25119
|
+
H("div", hK, [
|
|
25095
25120
|
!c.value && d.value ? (w(), Y(O, {
|
|
25096
25121
|
key: 0,
|
|
25097
25122
|
appearance: "secondary",
|
|
25098
25123
|
class: "open-learning-hub",
|
|
25099
25124
|
"data-testid": "plugins-learn-more-button",
|
|
25100
25125
|
icon: "",
|
|
25101
|
-
onClick:
|
|
25126
|
+
onClick: G[1] || (G[1] = (ue) => $.$emit("click:learn-more"))
|
|
25102
25127
|
}, {
|
|
25103
25128
|
default: F(() => [
|
|
25104
25129
|
P(p(yu), { decorative: "" })
|
|
@@ -25117,7 +25142,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25117
25142
|
}, {
|
|
25118
25143
|
default: F(() => [
|
|
25119
25144
|
P(p(Wt)),
|
|
25120
|
-
De(" " +
|
|
25145
|
+
De(" " + pe(p(r)("plugins.list.toolbar_actions.new_plugin")), 1)
|
|
25121
25146
|
]),
|
|
25122
25147
|
_: 1
|
|
25123
25148
|
}, 8, ["size", "to"])
|
|
@@ -25128,15 +25153,15 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25128
25153
|
], 8, ["disabled"]))
|
|
25129
25154
|
]),
|
|
25130
25155
|
name: F(({ row: ue }) => [
|
|
25131
|
-
|
|
25156
|
+
H("div", vK, [
|
|
25132
25157
|
P(p(ml), {
|
|
25133
25158
|
class: "plugin-icon",
|
|
25134
25159
|
name: ue.name,
|
|
25135
25160
|
size: 24
|
|
25136
25161
|
}, null, 8, ["name"]),
|
|
25137
|
-
|
|
25138
|
-
ue.instance_name ? (w(), ee("span",
|
|
25139
|
-
ue.instance_name ? (w(), ee("span",
|
|
25162
|
+
H("div", yK, [
|
|
25163
|
+
ue.instance_name ? (w(), ee("span", _K, pe(ue.instance_name), 1)) : (w(), ee("span", bK, pe(p(n).getDisplayName(ue.name)), 1)),
|
|
25164
|
+
ue.instance_name ? (w(), ee("span", wK, pe(p(n).getDisplayName(ue.name)), 1)) : Ce("", !0)
|
|
25140
25165
|
])
|
|
25141
25166
|
])
|
|
25142
25167
|
]),
|
|
@@ -25151,10 +25176,10 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25151
25176
|
default: F(({ isAllowed: Ie }) => [
|
|
25152
25177
|
P(L, {
|
|
25153
25178
|
class: ze(Ie || "disabled"),
|
|
25154
|
-
onClick: Lt((
|
|
25179
|
+
onClick: Lt((ge) => Ie && Se.type && ne(Se.type, ue), ["stop"])
|
|
25155
25180
|
}, {
|
|
25156
25181
|
default: F(() => [
|
|
25157
|
-
De(
|
|
25182
|
+
De(pe(Se.badgeText), 1)
|
|
25158
25183
|
]),
|
|
25159
25184
|
_: 2
|
|
25160
25185
|
}, 1032, ["class", "onClick"])
|
|
@@ -25163,7 +25188,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25163
25188
|
}, 1032, ["auth-function"]))), 128))
|
|
25164
25189
|
]),
|
|
25165
25190
|
_: 2
|
|
25166
|
-
}, 1024)) : (w(), ee("span",
|
|
25191
|
+
}, 1024)) : (w(), ee("span", EK, "-"))
|
|
25167
25192
|
]),
|
|
25168
25193
|
enabled: F(({ row: ue }) => [
|
|
25169
25194
|
P(p(Un), {
|
|
@@ -25171,15 +25196,15 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25171
25196
|
"force-show": ""
|
|
25172
25197
|
}, {
|
|
25173
25198
|
default: F(({ isAllowed: Se }) => {
|
|
25174
|
-
var Ie,
|
|
25199
|
+
var Ie, ge;
|
|
25175
25200
|
return [
|
|
25176
|
-
|
|
25177
|
-
onClick:
|
|
25201
|
+
H("div", {
|
|
25202
|
+
onClick: G[3] || (G[3] = Lt(() => {
|
|
25178
25203
|
}, ["stop"]))
|
|
25179
25204
|
}, [
|
|
25180
25205
|
P(he, {
|
|
25181
25206
|
disabled: !Se,
|
|
25182
|
-
"disabled-tooltip-text": !Se && ((
|
|
25207
|
+
"disabled-tooltip-text": !Se && ((ge = (Ie = e.config).getToggleDisabledTooltip) == null ? void 0 : ge.call(Ie, ue)) || void 0,
|
|
25183
25208
|
"model-value": ue.enabled,
|
|
25184
25209
|
onClick: Lt((ye) => Se && ie(ue), ["stop", "prevent"])
|
|
25185
25210
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
@@ -25194,7 +25219,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25194
25219
|
appearance: p(oc)(ue) ? "info" : "warning"
|
|
25195
25220
|
}, {
|
|
25196
25221
|
default: F(() => [
|
|
25197
|
-
De(
|
|
25222
|
+
De(pe(p(oc)(ue) ? p(r)("plugins.list.table_headers.ordering_badge.static") : p(r)("plugins.list.table_headers.ordering_badge.dynamic")), 1)
|
|
25198
25223
|
]),
|
|
25199
25224
|
_: 2
|
|
25200
25225
|
}, 1032, ["appearance"])
|
|
@@ -25210,7 +25235,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25210
25235
|
onClick: (Ie) => Z(ue, Se)
|
|
25211
25236
|
}, {
|
|
25212
25237
|
default: F(() => [
|
|
25213
|
-
De(
|
|
25238
|
+
De(pe(p(r)("actions.copy_id")), 1)
|
|
25214
25239
|
]),
|
|
25215
25240
|
_: 2
|
|
25216
25241
|
}, 1032, ["onClick"])
|
|
@@ -25224,7 +25249,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25224
25249
|
onClick: (Ie) => K(ue, Se)
|
|
25225
25250
|
}, {
|
|
25226
25251
|
default: F(() => [
|
|
25227
|
-
De(
|
|
25252
|
+
De(pe(p(r)("actions.copy_json")), 1)
|
|
25228
25253
|
]),
|
|
25229
25254
|
_: 2
|
|
25230
25255
|
}, 1032, ["onClick"])
|
|
@@ -25275,10 +25300,10 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25275
25300
|
danger: "",
|
|
25276
25301
|
"data-testid": "action-entity-delete",
|
|
25277
25302
|
"has-divider": "",
|
|
25278
|
-
onClick: (Se) =>
|
|
25303
|
+
onClick: (Se) => me(ue)
|
|
25279
25304
|
}, {
|
|
25280
25305
|
default: F(() => [
|
|
25281
|
-
De(
|
|
25306
|
+
De(pe(p(r)("actions.delete")), 1)
|
|
25282
25307
|
]),
|
|
25283
25308
|
_: 2
|
|
25284
25309
|
}, 1032, ["onClick"])
|
|
@@ -25310,18 +25335,18 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25310
25335
|
}, {
|
|
25311
25336
|
default: F(() => [
|
|
25312
25337
|
P(p(Wt), { decorative: "" }),
|
|
25313
|
-
De(" " +
|
|
25338
|
+
De(" " + pe(p(r)("plugins.list.empty_state_v2.create_cta")), 1)
|
|
25314
25339
|
]),
|
|
25315
25340
|
_: 1
|
|
25316
25341
|
})) : Ce("", !0),
|
|
25317
25342
|
P(O, {
|
|
25318
25343
|
appearance: "secondary",
|
|
25319
25344
|
"data-testid": "entity-learn-more-button",
|
|
25320
|
-
onClick:
|
|
25345
|
+
onClick: G[2] || (G[2] = (Se) => $.$emit("click:learn-more"))
|
|
25321
25346
|
}, {
|
|
25322
25347
|
default: F(() => [
|
|
25323
25348
|
P(p(yu), { decorative: "" }),
|
|
25324
|
-
De(" " +
|
|
25349
|
+
De(" " + pe(p(r)("plugins.list.empty_state_v2.learn_more")), 1)
|
|
25325
25350
|
]),
|
|
25326
25351
|
_: 1
|
|
25327
25352
|
})
|
|
@@ -25331,7 +25356,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25331
25356
|
(ue = e.config) != null && ue.isControlPlaneGroup ? {
|
|
25332
25357
|
name: "default",
|
|
25333
25358
|
fn: F(() => [
|
|
25334
|
-
De(
|
|
25359
|
+
De(pe(p(r)("plugins.list.empty_state_v2.group")), 1)
|
|
25335
25360
|
]),
|
|
25336
25361
|
key: "0"
|
|
25337
25362
|
} : void 0
|
|
@@ -25365,13 +25390,13 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25365
25390
|
]);
|
|
25366
25391
|
};
|
|
25367
25392
|
}
|
|
25368
|
-
}),
|
|
25393
|
+
}), $B = /* @__PURE__ */ Me(kK, [["__scopeId", "data-v-582a936c"]]), CK = { class: "plugin-select-card-wrapper" }, SK = ["data-testid"], xK = { class: "plugin-card-header" }, AK = { class: "plugin-card-title" }, IK = {
|
|
25369
25394
|
key: 0,
|
|
25370
25395
|
class: "plugin-card-actions"
|
|
25371
|
-
},
|
|
25396
|
+
}, TK = ["data-testid", "title"], $K = {
|
|
25372
25397
|
key: 0,
|
|
25373
25398
|
class: "plugin-card-text"
|
|
25374
|
-
},
|
|
25399
|
+
}, NK = { key: 0 }, OK = ["title"], PK = /* @__PURE__ */ ve({
|
|
25375
25400
|
__name: "PluginSelectCard",
|
|
25376
25401
|
props: {
|
|
25377
25402
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25423,25 +25448,25 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25423
25448
|
}
|
|
25424
25449
|
};
|
|
25425
25450
|
return (y, b) => {
|
|
25426
|
-
const _ =
|
|
25427
|
-
return w(), ee("div",
|
|
25451
|
+
const _ = we("KButton"), A = we("KDropdownItem"), S = we("KDropdownMenu"), k = we("KTooltip");
|
|
25452
|
+
return w(), ee("div", CK, [
|
|
25428
25453
|
P(k, {
|
|
25429
25454
|
text: e.plugin.disabledMessage
|
|
25430
25455
|
}, {
|
|
25431
25456
|
default: F(() => [
|
|
25432
|
-
|
|
25457
|
+
H("a", {
|
|
25433
25458
|
class: ze(["plugin-select-card", { disabled: s.value }]),
|
|
25434
25459
|
"data-testid": `${e.plugin.id}-card`,
|
|
25435
25460
|
role: "button",
|
|
25436
25461
|
onClick: b[1] || (b[1] = (R) => s.value || m.value ? void 0 : d())
|
|
25437
25462
|
}, [
|
|
25438
|
-
|
|
25439
|
-
|
|
25440
|
-
|
|
25463
|
+
H("div", xK, [
|
|
25464
|
+
H("div", AK, [
|
|
25465
|
+
H("span", {
|
|
25441
25466
|
class: ze({ "non-custom-title": !m.value })
|
|
25442
|
-
},
|
|
25467
|
+
}, pe(e.plugin.name), 3)
|
|
25443
25468
|
]),
|
|
25444
|
-
l.value ? (w(), ee("div",
|
|
25469
|
+
l.value ? (w(), ee("div", IK, [
|
|
25445
25470
|
P(S, {
|
|
25446
25471
|
"data-testid": "custom-plugin-actions",
|
|
25447
25472
|
"kpop-attributes": { placement: "bottom-end" },
|
|
@@ -25468,7 +25493,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25468
25493
|
onClick: b[0] || (b[0] = Lt((R) => v(e.plugin.name, e.plugin.customPluginType), ["stop"]))
|
|
25469
25494
|
}, {
|
|
25470
25495
|
default: F(() => [
|
|
25471
|
-
De(
|
|
25496
|
+
De(pe(p(r)("actions.edit")), 1)
|
|
25472
25497
|
]),
|
|
25473
25498
|
_: 1
|
|
25474
25499
|
})) : Ce("", !0),
|
|
@@ -25480,7 +25505,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25480
25505
|
onClick: Lt(h, ["stop"])
|
|
25481
25506
|
}, {
|
|
25482
25507
|
default: F(() => [
|
|
25483
|
-
De(
|
|
25508
|
+
De(pe(p(r)("actions.delete")), 1)
|
|
25484
25509
|
]),
|
|
25485
25510
|
_: 1
|
|
25486
25511
|
})) : Ce("", !0)
|
|
@@ -25489,7 +25514,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25489
25514
|
})
|
|
25490
25515
|
])) : Ce("", !0)
|
|
25491
25516
|
]),
|
|
25492
|
-
|
|
25517
|
+
H("div", {
|
|
25493
25518
|
class: ze(["plugin-card-body", { "custom-plugin": m.value }]),
|
|
25494
25519
|
"data-testid": e.plugin.name,
|
|
25495
25520
|
title: e.plugin.available ? e.plugin.name : p(r)("plugins.select.unavailable_tooltip"),
|
|
@@ -25501,27 +25526,27 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25501
25526
|
name: e.plugin.id,
|
|
25502
25527
|
size: 55
|
|
25503
25528
|
}, null, 8, ["alt", "name"]),
|
|
25504
|
-
e.plugin.description || m.value && !f.value ? (w(), ee("div",
|
|
25505
|
-
m.value && !f.value ? (w(), ee("p",
|
|
25529
|
+
e.plugin.description || m.value && !f.value ? (w(), ee("div", $K, [
|
|
25530
|
+
m.value && !f.value ? (w(), ee("p", NK, pe(p(r)("plugins.select.custom_badge_text")), 1)) : Ce("", !0),
|
|
25506
25531
|
e.plugin.description ? (w(), ee("p", {
|
|
25507
25532
|
key: 1,
|
|
25508
25533
|
class: "plugin-card-text",
|
|
25509
25534
|
title: e.plugin.description
|
|
25510
|
-
},
|
|
25535
|
+
}, pe(e.plugin.description), 9, OK)) : Ce("", !0)
|
|
25511
25536
|
])) : Ce("", !0)
|
|
25512
|
-
], 10,
|
|
25513
|
-
|
|
25537
|
+
], 10, TK),
|
|
25538
|
+
H("div", {
|
|
25514
25539
|
class: "plugin-card-footer",
|
|
25515
25540
|
onClick: g
|
|
25516
|
-
},
|
|
25517
|
-
], 10,
|
|
25541
|
+
}, pe(f.value ? p(r)("actions.create_custom") : e.plugin.exists ? p(r)("actions.enabled") : p(r)("actions.enable")), 1)
|
|
25542
|
+
], 10, SK)
|
|
25518
25543
|
]),
|
|
25519
25544
|
_: 1
|
|
25520
25545
|
}, 8, ["text"])
|
|
25521
25546
|
]);
|
|
25522
25547
|
};
|
|
25523
25548
|
}
|
|
25524
|
-
}), sh = /* @__PURE__ */ Me(
|
|
25549
|
+
}), sh = /* @__PURE__ */ Me(PK, [["__scopeId", "data-v-65d53934"]]), MK = /* @__PURE__ */ ve({
|
|
25525
25550
|
__name: "DeleteCustomPluginSchemaModal",
|
|
25526
25551
|
props: {
|
|
25527
25552
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25561,7 +25586,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25561
25586
|
}
|
|
25562
25587
|
};
|
|
25563
25588
|
return (v, g) => {
|
|
25564
|
-
const y =
|
|
25589
|
+
const y = we("KButton"), b = we("KModal");
|
|
25565
25590
|
return !c.value && e.plugin ? (w(), Y(p(rf), {
|
|
25566
25591
|
key: 0,
|
|
25567
25592
|
"action-pending": u.value,
|
|
@@ -25586,20 +25611,20 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25586
25611
|
onCancel: g[2] || (g[2] = (_) => v.$emit("closed"))
|
|
25587
25612
|
}, {
|
|
25588
25613
|
default: F(() => [
|
|
25589
|
-
|
|
25614
|
+
H("div", null, [
|
|
25590
25615
|
P(p(i), {
|
|
25591
25616
|
keypath: "delete.plugin_schema_in_use_message",
|
|
25592
25617
|
tag: "p"
|
|
25593
25618
|
}, {
|
|
25594
25619
|
name: F(() => [
|
|
25595
|
-
|
|
25620
|
+
H("strong", null, pe(e.plugin.name), 1)
|
|
25596
25621
|
]),
|
|
25597
25622
|
_: 1
|
|
25598
25623
|
})
|
|
25599
25624
|
])
|
|
25600
25625
|
]),
|
|
25601
25626
|
"footer-actions": F(() => [
|
|
25602
|
-
|
|
25627
|
+
H("div", null, [
|
|
25603
25628
|
P(y, {
|
|
25604
25629
|
appearance: "tertiary",
|
|
25605
25630
|
class: "cancel-button",
|
|
@@ -25607,7 +25632,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25607
25632
|
onClick: g[1] || (g[1] = (_) => v.$emit("closed"))
|
|
25608
25633
|
}, {
|
|
25609
25634
|
default: F(() => [
|
|
25610
|
-
De(
|
|
25635
|
+
De(pe(p(r)("actions.cancel")), 1)
|
|
25611
25636
|
]),
|
|
25612
25637
|
_: 1
|
|
25613
25638
|
})
|
|
@@ -25617,7 +25642,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25617
25642
|
}, 8, ["action-button-disabled", "title"])) : Ce("", !0);
|
|
25618
25643
|
};
|
|
25619
25644
|
}
|
|
25620
|
-
}),
|
|
25645
|
+
}), RK = /* @__PURE__ */ Me(MK, [["__scopeId", "data-v-9e0dee7f"]]), FK = { class: "custom-plugins-grid" }, DK = { class: "empty-state-title" }, LK = { class: "empty-state-description" }, gs = 310, KK = /* @__PURE__ */ ve({
|
|
25621
25646
|
__name: "PluginCustomGrid",
|
|
25622
25647
|
props: {
|
|
25623
25648
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25701,8 +25726,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25701
25726
|
}), fl(() => {
|
|
25702
25727
|
window == null || window.removeEventListener("resize", _);
|
|
25703
25728
|
}), (S, k) => {
|
|
25704
|
-
const R =
|
|
25705
|
-
return w(), ee("div",
|
|
25729
|
+
const R = we("KEmptyState"), M = we("KCollapse");
|
|
25730
|
+
return w(), ee("div", FK, [
|
|
25706
25731
|
u.value.length ? (w(), Y(M, {
|
|
25707
25732
|
key: 1,
|
|
25708
25733
|
modelValue: s.value,
|
|
@@ -25713,7 +25738,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25713
25738
|
"trigger-label": s.value ? p(i)("plugins.select.view_more") : p(i)("plugins.select.view_less")
|
|
25714
25739
|
}, nt({
|
|
25715
25740
|
"visible-content": F(() => [
|
|
25716
|
-
|
|
25741
|
+
H("div", {
|
|
25717
25742
|
ref_key: "pluginCardContainerRef",
|
|
25718
25743
|
ref: v,
|
|
25719
25744
|
class: "plugin-card-container",
|
|
@@ -25750,14 +25775,14 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25750
25775
|
"icon-variant": "kong"
|
|
25751
25776
|
}, {
|
|
25752
25777
|
title: F(() => [
|
|
25753
|
-
|
|
25778
|
+
H("span", DK, pe(p(i)("plugins.select.tabs.custom.empty_title")), 1)
|
|
25754
25779
|
]),
|
|
25755
25780
|
default: F(() => [
|
|
25756
|
-
|
|
25781
|
+
H("span", LK, pe(p(i)("plugins.select.tabs.custom.empty_description")), 1)
|
|
25757
25782
|
]),
|
|
25758
25783
|
_: 1
|
|
25759
25784
|
})),
|
|
25760
|
-
d.value && c.value ? (w(), Y(
|
|
25785
|
+
d.value && c.value ? (w(), Y(RK, {
|
|
25761
25786
|
key: 2,
|
|
25762
25787
|
config: e.config,
|
|
25763
25788
|
plugin: c.value,
|
|
@@ -25767,7 +25792,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25767
25792
|
]);
|
|
25768
25793
|
};
|
|
25769
25794
|
}
|
|
25770
|
-
}),
|
|
25795
|
+
}), BK = /* @__PURE__ */ Me(KK, [["__scopeId", "data-v-f4b90f47"]]), hs = 310, jK = /* @__PURE__ */ ve({
|
|
25771
25796
|
__name: "PluginSelectGroup",
|
|
25772
25797
|
props: /* @__PURE__ */ ys({
|
|
25773
25798
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25818,7 +25843,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25818
25843
|
}), fl(() => {
|
|
25819
25844
|
window == null || window.removeEventListener("resize", m);
|
|
25820
25845
|
}), (v, g) => {
|
|
25821
|
-
const y =
|
|
25846
|
+
const y = we("KCollapse");
|
|
25822
25847
|
return w(), Y(y, {
|
|
25823
25848
|
modelValue: n.value,
|
|
25824
25849
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => n.value = b),
|
|
@@ -25828,7 +25853,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25828
25853
|
"trigger-label": n.value ? p(r)("plugins.select.view_more") : p(r)("plugins.select.view_less")
|
|
25829
25854
|
}, nt({
|
|
25830
25855
|
"visible-content": F(() => [
|
|
25831
|
-
|
|
25856
|
+
H("div", {
|
|
25832
25857
|
ref_key: "pluginCardContainerRef",
|
|
25833
25858
|
ref: u,
|
|
25834
25859
|
class: "plugin-card-container",
|
|
@@ -25858,7 +25883,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25858
25883
|
]), 1032, ["modelValue", "data-testid", "title", "trigger-label"]);
|
|
25859
25884
|
};
|
|
25860
25885
|
}
|
|
25861
|
-
}), Zd = /* @__PURE__ */ Me(
|
|
25886
|
+
}), Zd = /* @__PURE__ */ Me(jK, [["__scopeId", "data-v-a1074120"]]), qK = { class: "plugin-select-grid" }, VK = { class: "empty-state-title" }, zK = { class: "empty-state-description" }, Jd = /* @__PURE__ */ ve({
|
|
25862
25887
|
__name: "PluginSelectGrid",
|
|
25863
25888
|
props: {
|
|
25864
25889
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25913,8 +25938,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25913
25938
|
return n.config.app === "konnect" && delete u[Xe.CUSTOM_PLUGINS], u;
|
|
25914
25939
|
});
|
|
25915
25940
|
return (u, d) => {
|
|
25916
|
-
const c =
|
|
25917
|
-
return w(), ee("div",
|
|
25941
|
+
const c = we("KEmptyState");
|
|
25942
|
+
return w(), ee("div", qK, [
|
|
25918
25943
|
Object.keys(l.value).length ? Ce("", !0) : (w(), Y(c, {
|
|
25919
25944
|
key: 0,
|
|
25920
25945
|
"action-button-visible": !1,
|
|
@@ -25923,10 +25948,10 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25923
25948
|
"icon-variant": "kong"
|
|
25924
25949
|
}, {
|
|
25925
25950
|
title: F(() => [
|
|
25926
|
-
|
|
25951
|
+
H("span", VK, pe(p(i)("plugins.select.tabs.kong.empty_title")), 1)
|
|
25927
25952
|
]),
|
|
25928
25953
|
default: F(() => [
|
|
25929
|
-
|
|
25954
|
+
H("span", zK, pe(p(i)("plugins.select.tabs.kong.empty_description")), 1)
|
|
25930
25955
|
]),
|
|
25931
25956
|
_: 1
|
|
25932
25957
|
})),
|
|
@@ -25956,11 +25981,11 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25956
25981
|
]);
|
|
25957
25982
|
};
|
|
25958
25983
|
}
|
|
25959
|
-
}),
|
|
25984
|
+
}), UK = { class: "kong-ui-entities-plugin-select-form" }, HK = { class: "plugins-filter-input-container" }, GK = { key: 0 }, YK = {
|
|
25960
25985
|
key: 3,
|
|
25961
25986
|
"aria-live": "polite",
|
|
25962
25987
|
class: "plugins-results-container"
|
|
25963
|
-
},
|
|
25988
|
+
}, WK = { "data-testid": "kong-tab" }, XK = { class: "tab-description" }, ZK = { "data-testid": "custom-tab" }, JK = { class: "tab-description" }, QK = /* @__PURE__ */ ve({
|
|
25964
25989
|
__name: "PluginSelect",
|
|
25965
25990
|
props: {
|
|
25966
25991
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -26154,9 +26179,9 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26154
26179
|
}
|
|
26155
26180
|
m.value || (y.value = J()), f.value = !1;
|
|
26156
26181
|
}), (K, U) => {
|
|
26157
|
-
const ae =
|
|
26158
|
-
return w(), ee("div",
|
|
26159
|
-
|
|
26182
|
+
const ae = we("KInput"), te = we("KSkeletonBox"), de = we("KSkeleton"), fe = we("KEmptyState"), ke = we("KTooltip"), xe = we("KTabs");
|
|
26183
|
+
return w(), ee("div", UK, [
|
|
26184
|
+
H("div", HK, [
|
|
26160
26185
|
P(ae, {
|
|
26161
26186
|
ref: "filter-input",
|
|
26162
26187
|
modelValue: c.value,
|
|
@@ -26168,7 +26193,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26168
26193
|
type: "search"
|
|
26169
26194
|
}, null, 8, ["modelValue", "placeholder"])
|
|
26170
26195
|
]),
|
|
26171
|
-
f.value ? (w(), ee("section",
|
|
26196
|
+
f.value ? (w(), ee("section", GK, [
|
|
26172
26197
|
P(te, {
|
|
26173
26198
|
class: "plugins-skeleton-title",
|
|
26174
26199
|
width: "10"
|
|
@@ -26185,7 +26210,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26185
26210
|
"icon-variant": "error"
|
|
26186
26211
|
}, {
|
|
26187
26212
|
default: F(() => [
|
|
26188
|
-
|
|
26213
|
+
H("h3", null, pe(h.value), 1)
|
|
26189
26214
|
]),
|
|
26190
26215
|
_: 1
|
|
26191
26216
|
})) : M.value && c.value ? (w(), Y(fe, {
|
|
@@ -26195,10 +26220,10 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26195
26220
|
"icon-variant": "search"
|
|
26196
26221
|
}, {
|
|
26197
26222
|
default: F(() => [
|
|
26198
|
-
|
|
26223
|
+
H("h5", null, pe(p(a)("search.no_results", { filter: c.value })), 1)
|
|
26199
26224
|
]),
|
|
26200
26225
|
_: 1
|
|
26201
|
-
})) : (w(), ee("section",
|
|
26226
|
+
})) : (w(), ee("section", YK, [
|
|
26202
26227
|
j.value.length && e.customPluginSupport !== "none" ? (w(), Y(xe, {
|
|
26203
26228
|
key: 0,
|
|
26204
26229
|
modelValue: Q.value,
|
|
@@ -26208,8 +26233,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26208
26233
|
onChange: z
|
|
26209
26234
|
}, nt({
|
|
26210
26235
|
kong: F(() => [
|
|
26211
|
-
|
|
26212
|
-
|
|
26236
|
+
H("div", WK, [
|
|
26237
|
+
H("p", XK, pe(p(a)("plugins.select.tabs.kong.description")), 1),
|
|
26213
26238
|
P(Jd, {
|
|
26214
26239
|
config: e.config,
|
|
26215
26240
|
"hide-highlighted-plugins": c.value.length > 0,
|
|
@@ -26222,10 +26247,10 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26222
26247
|
])
|
|
26223
26248
|
]),
|
|
26224
26249
|
custom: F(() => [
|
|
26225
|
-
|
|
26250
|
+
H("div", ZK, [
|
|
26226
26251
|
Fe(K.$slots, "before-custom-tab-content", {}, void 0, !0),
|
|
26227
|
-
|
|
26228
|
-
P(
|
|
26252
|
+
H("p", JK, pe(p(a)("plugins.select.tabs.custom.description")), 1),
|
|
26253
|
+
P(BK, {
|
|
26229
26254
|
"can-create-custom-plugin": B.value,
|
|
26230
26255
|
"can-delete-custom-plugin": X.value,
|
|
26231
26256
|
"can-edit-custom-plugin": ie.value,
|
|
@@ -26248,7 +26273,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26248
26273
|
text: p(a)("plugins.select.tabs.custom.disabled_tooltip")
|
|
26249
26274
|
}, {
|
|
26250
26275
|
default: F(() => [
|
|
26251
|
-
|
|
26276
|
+
H("div", null, pe(p(a)("plugins.select.tabs.custom.title")), 1)
|
|
26252
26277
|
]),
|
|
26253
26278
|
_: 1
|
|
26254
26279
|
}, 8, ["text"])
|
|
@@ -26269,7 +26294,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26269
26294
|
]);
|
|
26270
26295
|
};
|
|
26271
26296
|
}
|
|
26272
|
-
}),
|
|
26297
|
+
}), NB = /* @__PURE__ */ Me(QK, [["__scopeId", "data-v-7b1adaaa"]]), eB = { class: "kong-ui-entity-plugin-config-card" }, tB = { class: "name-cell-wrapper" }, nB = { class: "info-name" }, oB = { key: 0 }, iB = { key: 0 }, rB = { key: 0 }, aB = { key: 0 }, sB = { key: 0 }, vs = "config", lB = /* @__PURE__ */ ve({
|
|
26273
26298
|
__name: "PluginConfigCard",
|
|
26274
26299
|
props: {
|
|
26275
26300
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -26401,8 +26426,8 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26401
26426
|
g.value = !1;
|
|
26402
26427
|
}
|
|
26403
26428
|
}), (_, A) => {
|
|
26404
|
-
const S =
|
|
26405
|
-
return w(), ee("div",
|
|
26429
|
+
const S = we("KSkeleton"), k = we("KEmptyState"), R = we("KCopy");
|
|
26430
|
+
return w(), ee("div", eB, [
|
|
26406
26431
|
g.value ? (w(), Y(S, {
|
|
26407
26432
|
key: 0,
|
|
26408
26433
|
"data-testid": "plugin-config-card-loader",
|
|
@@ -26414,7 +26439,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26414
26439
|
"icon-variant": "error"
|
|
26415
26440
|
}, {
|
|
26416
26441
|
default: F(() => [
|
|
26417
|
-
|
|
26442
|
+
H("h3", null, pe(y.value), 1)
|
|
26418
26443
|
]),
|
|
26419
26444
|
_: 1
|
|
26420
26445
|
})) : (w(), Y(p(Oh), {
|
|
@@ -26432,13 +26457,13 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26432
26457
|
onLoading: A[2] || (A[2] = (M) => _.$emit("loading", M))
|
|
26433
26458
|
}, {
|
|
26434
26459
|
name: F((M) => [
|
|
26435
|
-
|
|
26460
|
+
H("div", tB, [
|
|
26436
26461
|
P(p(ml), {
|
|
26437
26462
|
class: "plugin-icon",
|
|
26438
26463
|
name: p(s)("rowValue", M),
|
|
26439
26464
|
size: 24
|
|
26440
26465
|
}, null, 8, ["name"]),
|
|
26441
|
-
|
|
26466
|
+
H("span", nB, pe(p(r).getDisplayName(p(s)("rowValue", M))), 1)
|
|
26442
26467
|
])
|
|
26443
26468
|
]),
|
|
26444
26469
|
consumer: F((M) => [
|
|
@@ -26455,7 +26480,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26455
26480
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", M).label }),
|
|
26456
26481
|
"data-testid": "consumer-copy-uuid",
|
|
26457
26482
|
text: p(s)("rowValue", M).id
|
|
26458
|
-
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span",
|
|
26483
|
+
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span", oB, "–"))
|
|
26459
26484
|
]),
|
|
26460
26485
|
route: F((M) => [
|
|
26461
26486
|
p(s)("rowValue", M) ? e.showIdAsLink ? (w(), Y(p(si), {
|
|
@@ -26471,7 +26496,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26471
26496
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", M).label }),
|
|
26472
26497
|
"data-testid": "route-copy-uuid",
|
|
26473
26498
|
text: p(s)("rowValue", M).id
|
|
26474
|
-
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span",
|
|
26499
|
+
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span", iB, "–"))
|
|
26475
26500
|
]),
|
|
26476
26501
|
service: F((M) => [
|
|
26477
26502
|
p(s)("rowValue", M) ? e.showIdAsLink ? (w(), Y(p(si), {
|
|
@@ -26487,7 +26512,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26487
26512
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", M).label }),
|
|
26488
26513
|
"data-testid": "service-copy-uuid",
|
|
26489
26514
|
text: p(s)("rowValue", M).id
|
|
26490
|
-
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span",
|
|
26515
|
+
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span", rB, "–"))
|
|
26491
26516
|
]),
|
|
26492
26517
|
consumer_group: F((M) => [
|
|
26493
26518
|
p(s)("rowValue", M) ? e.showIdAsLink ? (w(), Y(p(si), {
|
|
@@ -26503,7 +26528,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26503
26528
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", M).label }),
|
|
26504
26529
|
"data-testid": "consumer-group-copy-uuid",
|
|
26505
26530
|
text: p(s)("rowValue", M).id
|
|
26506
|
-
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span",
|
|
26531
|
+
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span", aB, "–"))
|
|
26507
26532
|
]),
|
|
26508
26533
|
partials: F((M) => {
|
|
26509
26534
|
var j, Q, J, x, ne, I, z, B, ie;
|
|
@@ -26524,7 +26549,7 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26524
26549
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", M).label }),
|
|
26525
26550
|
"data-testid": "partial-copy-uuid",
|
|
26526
26551
|
text: (ie = p(s)("rowValue", M)) == null ? void 0 : ie[0].id
|
|
26527
|
-
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span",
|
|
26552
|
+
}, null, 8, ["copy-tooltip", "text"])) : (w(), ee("span", sB, "–"))
|
|
26528
26553
|
];
|
|
26529
26554
|
}),
|
|
26530
26555
|
_: 1
|
|
@@ -26532,26 +26557,26 @@ const Gd = fu.options, K3 = we.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26532
26557
|
]);
|
|
26533
26558
|
};
|
|
26534
26559
|
}
|
|
26535
|
-
}),
|
|
26560
|
+
}), OB = /* @__PURE__ */ Me(lB, [["__scopeId", "data-v-53806ec8"]]), { usePluginMetaData: PB, useProvideExperimentalFreeForms: MB } = ot;
|
|
26536
26561
|
export {
|
|
26537
26562
|
Xf as EXPERIMENTAL_FREE_FORM_PROVIDER,
|
|
26538
26563
|
xo as EntityTypeIdField,
|
|
26539
26564
|
W1 as FEATURE_FLAGS,
|
|
26540
26565
|
Iv as PLUGIN_GROUPS_COLLAPSE_STATUS,
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26566
|
+
OB as PluginConfigCard,
|
|
26567
|
+
TB as PluginForm,
|
|
26568
|
+
DB as PluginGroup,
|
|
26544
26569
|
Av as PluginGroupArray,
|
|
26545
|
-
|
|
26546
|
-
|
|
26570
|
+
BB as PluginIcon,
|
|
26571
|
+
$B as PluginList,
|
|
26547
26572
|
ks as PluginPartialType,
|
|
26548
|
-
|
|
26549
|
-
|
|
26573
|
+
LB as PluginScope,
|
|
26574
|
+
NB as PluginSelect,
|
|
26550
26575
|
sh as PluginSelectCard,
|
|
26551
26576
|
Jd as PluginSelectGrid,
|
|
26552
26577
|
X1 as TOASTER_PROVIDER,
|
|
26553
|
-
|
|
26578
|
+
jB as getPluginIconURL,
|
|
26554
26579
|
dt as pluginEndpoints,
|
|
26555
|
-
|
|
26556
|
-
|
|
26580
|
+
PB as usePluginMetaData,
|
|
26581
|
+
MB as useProvideExperimentalFreeForms
|
|
26557
26582
|
};
|