@kong-ui-public/entities-plugins 9.183.0 → 9.183.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +393 -393
- package/dist/entities-plugins.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ge, useModel as Li, inject as _t, ref as ae, computed as V, onMounted as On, resolveComponent as de, openBlock as C, createBlock as Y, toRef as ut, createElementBlock as te, createVNode as x, isRef as Tr, unref as l, markRaw as bp, provide as xt, createElementVNode as Q, toDisplayString as ne, Fragment as Me, createTextVNode as we, createCommentVNode as me, withCtx as P, renderList as
|
|
1
|
+
import { defineComponent as ge, useModel as Li, inject as _t, ref as ae, computed as V, onMounted as On, resolveComponent as de, openBlock as C, createBlock as Y, toRef as ut, createElementBlock as te, createVNode as x, isRef as Tr, unref as l, markRaw as bp, provide as xt, createElementVNode as Q, toDisplayString as ne, Fragment as Me, createTextVNode as we, createCommentVNode as me, withCtx as P, renderList as Je, Transition as wp, renderSlot as et, toValue as ot, readonly as uu, watch as Ue, onBeforeUnmount as cu, reactive as Ri, useSlots as Pt, toRaw as yo, onUnmounted as Sr, useAttrs as fi, mergeProps as We, createSlots as st, normalizeProps as Kt, guardReactiveProps as Zt, createPropsRestProxy as on, withDirectives as $t, resolveDynamicComponent as Ct, vShow as Nt, useCssVars as xa, useTemplateRef as lt, normalizeClass as at, withModifiers as wt, nextTick as Qt, mergeModels as ua, withKeys as ks, useId as Ea, onBeforeMount as mi, shallowRef as dn, watchEffect as kp, warn as Cp, onScopeDispose as xp, normalizeStyle as si, Teleport as _o } from "vue";
|
|
2
2
|
import { useStringHelpers as bo, ConfigurationSchemaType as qt, useAxios as qn, useErrors as gi, EntityFormBlock as Fa, useHelpers as Aa, FEATURE_FLAGS as Ep, EntityBaseFormType as ei, EntityBaseForm as Ap, SupportedEntityType as Ba, DeckCodeBlock as Ip, TerraformCodeBlock as Tp, YamlCodeBlock as Sp, JsonCodeBlock as Op, useTableState as $p, useGatewayFeatureSupported as Np, useFetcher as Pp, useDeleteUrlBuilder as Fp, FetcherStatus as Rp, EntityBaseTable as Mp, PermissionsWrapper as ti, TableTags as Lp, EntityFilter as jp, EntityToggleModal as Kp, EntityDeleteModal as du, EntityTypes as pu, ConfigCardItem as Dp, ConfigurationSchemaSection as ki, useSchemaProvider as qp, EntityBaseConfigCard as Vp, InternalLinkItem as Xi } from "@kong-ui-public/entities-shared";
|
|
3
3
|
import { marked as za } from "marked";
|
|
4
4
|
import { onBeforeRouteLeave as Up, useRouter as Ia, useRoute as Bp } from "vue-router";
|
|
5
5
|
import { createI18n as Ft, i18nTComponent as zp } from "@kong-ui-public/i18n";
|
|
6
|
-
import { PluginGroup as
|
|
6
|
+
import { PluginGroup as He, PLUGIN_GROUP_AND_SCOPE_MAP as fe, PluginScope as ht, GATEWAY_VERSION_TIMESTAMP_MAP as Gp } from "@kong-ui-public/entities-plugins-metadata";
|
|
7
7
|
import { PluginGroup as tF, PluginScope as nF } from "@kong-ui-public/entities-plugins-metadata";
|
|
8
8
|
import { FORMS_CONFIG as Bi, composables as Hp, getSharedFormName as fu, customFields as er, AUTOFILL_SLOT as Ht, FORMS_API_KEY as mu, FieldScopedEntitySelect as Wp, AUTOFILL_SLOT_NAME as Gt, sharedForms as Cs, VueFormGenerator as Yp } from "@kong-ui-public/forms";
|
|
9
9
|
import { VaultSecretPicker as gu, VaultSecretPickerProvider as jo } from "@kong-ui-public/entities-vaults";
|
|
@@ -1149,7 +1149,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
1149
1149
|
custom_field: rm,
|
|
1150
1150
|
sp: sm
|
|
1151
1151
|
};
|
|
1152
|
-
function
|
|
1152
|
+
function Xe() {
|
|
1153
1153
|
const e = Ft("en-us", Rt);
|
|
1154
1154
|
return {
|
|
1155
1155
|
i18n: e,
|
|
@@ -1262,30 +1262,30 @@ var tr = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-e
|
|
|
1262
1262
|
const nr = [
|
|
1263
1263
|
"Featured"
|
|
1264
1264
|
], Ts = [
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1265
|
+
He.AUTHENTICATION,
|
|
1266
|
+
He.AI,
|
|
1267
|
+
He.SECURITY,
|
|
1268
|
+
He.TRAFFIC_CONTROL,
|
|
1269
|
+
He.SERVERLESS,
|
|
1270
|
+
He.ANALYTICS_AND_MONITORING,
|
|
1271
|
+
He.TRANSFORMATIONS,
|
|
1272
|
+
He.LOGGING,
|
|
1273
|
+
He.DEPLOYMENT,
|
|
1274
|
+
He.WEBSOCKET,
|
|
1275
|
+
He.MONETIZATION,
|
|
1276
|
+
He.CUSTOM_PLUGINS
|
|
1277
1277
|
], ir = [
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1278
|
+
He.AI,
|
|
1279
|
+
He.ANALYTICS_AND_MONITORING,
|
|
1280
|
+
He.AUTHENTICATION,
|
|
1281
|
+
He.LOGGING,
|
|
1282
|
+
He.SECURITY,
|
|
1283
|
+
He.SERVERLESS,
|
|
1284
|
+
He.TRAFFIC_CONTROL,
|
|
1285
|
+
He.TRANSFORMATIONS,
|
|
1286
1286
|
// PluginGroup.DEPLOYMENT, // deployment and websocket plugins are currently not in available plugins API response
|
|
1287
1287
|
// PluginGroup.WEBSOCKET,
|
|
1288
|
-
|
|
1288
|
+
He.CUSTOM_PLUGINS
|
|
1289
1289
|
];
|
|
1290
1290
|
var Ai = /* @__PURE__ */ ((e) => (e.SERVICE = "service_id", e.ROUTE = "route_id", e.CONSUMER = "consumer_id", e.CONSUMER_GROUP = "consumer_group_id", e))(Ai || {});
|
|
1291
1291
|
const ii = (e) => {
|
|
@@ -1462,7 +1462,7 @@ const ii = (e) => {
|
|
|
1462
1462
|
},
|
|
1463
1463
|
emits: ["update:modelValue"],
|
|
1464
1464
|
setup(e) {
|
|
1465
|
-
const t = Li(e, "modelValue"), { i18n: n } =
|
|
1465
|
+
const t = Li(e, "modelValue"), { i18n: n } = Qe.useI18n(), { t: a } = n, o = {
|
|
1466
1466
|
value: "current-cp",
|
|
1467
1467
|
label: a("custom_field.key_auth_identity_realms.cp_label"),
|
|
1468
1468
|
group: a("custom_field.key_auth_identity_realms.cp_group_label")
|
|
@@ -2798,7 +2798,7 @@ const ii = (e) => {
|
|
|
2798
2798
|
hmacauth_credentials: xm,
|
|
2799
2799
|
jwt_secrets: Im
|
|
2800
2800
|
}, Fm = () => {
|
|
2801
|
-
const { i18n: { t: e } } =
|
|
2801
|
+
const { i18n: { t: e } } = Xe(), t = {}, n = {};
|
|
2802
2802
|
for (const [o, i] of Object.entries(un))
|
|
2803
2803
|
t[o] = {
|
|
2804
2804
|
...i,
|
|
@@ -2983,7 +2983,7 @@ const ii = (e) => {
|
|
|
2983
2983
|
placeholder: "Select valid protocols for the plugin",
|
|
2984
2984
|
styleClasses: "plugin-protocols-select"
|
|
2985
2985
|
}
|
|
2986
|
-
},
|
|
2986
|
+
}, nt = {
|
|
2987
2987
|
type: "array",
|
|
2988
2988
|
valueType: "string",
|
|
2989
2989
|
valueArrayType: "array",
|
|
@@ -3065,9 +3065,9 @@ const ii = (e) => {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Vm = {
|
|
3067
3067
|
"config-functions": {
|
|
3068
|
-
...
|
|
3068
|
+
...nt,
|
|
3069
3069
|
inputAttributes: {
|
|
3070
|
-
...
|
|
3070
|
+
...nt.inputAttributes,
|
|
3071
3071
|
type: "textarea",
|
|
3072
3072
|
max: !1
|
|
3073
3073
|
}
|
|
@@ -3177,46 +3177,46 @@ const ii = (e) => {
|
|
|
3177
3177
|
})
|
|
3178
3178
|
}), Wm), Iu = {
|
|
3179
3179
|
"config-add-json": {
|
|
3180
|
-
...
|
|
3180
|
+
...nt,
|
|
3181
3181
|
label: "Config.Add.Json",
|
|
3182
3182
|
inputAttributes: {
|
|
3183
|
-
...
|
|
3183
|
+
...nt.inputAttributes,
|
|
3184
3184
|
type: "textarea",
|
|
3185
3185
|
max: !1
|
|
3186
3186
|
}
|
|
3187
3187
|
},
|
|
3188
3188
|
"config-append-json": {
|
|
3189
|
-
...
|
|
3189
|
+
...nt,
|
|
3190
3190
|
label: "Config.Append.Json",
|
|
3191
3191
|
inputAttributes: {
|
|
3192
|
-
...
|
|
3192
|
+
...nt.inputAttributes,
|
|
3193
3193
|
type: "textarea",
|
|
3194
3194
|
max: !1
|
|
3195
3195
|
}
|
|
3196
3196
|
},
|
|
3197
3197
|
"config-remove-json": {
|
|
3198
|
-
...
|
|
3198
|
+
...nt,
|
|
3199
3199
|
label: "Config.Remove.Json",
|
|
3200
3200
|
inputAttributes: {
|
|
3201
|
-
...
|
|
3201
|
+
...nt.inputAttributes,
|
|
3202
3202
|
type: "textarea",
|
|
3203
3203
|
max: !1
|
|
3204
3204
|
}
|
|
3205
3205
|
},
|
|
3206
3206
|
"config-rename-json": {
|
|
3207
|
-
...
|
|
3207
|
+
...nt,
|
|
3208
3208
|
label: "Config.Rename.Json",
|
|
3209
3209
|
inputAttributes: {
|
|
3210
|
-
...
|
|
3210
|
+
...nt.inputAttributes,
|
|
3211
3211
|
type: "textarea",
|
|
3212
3212
|
max: !1
|
|
3213
3213
|
}
|
|
3214
3214
|
},
|
|
3215
3215
|
"config-replace-json": {
|
|
3216
|
-
...
|
|
3216
|
+
...nt,
|
|
3217
3217
|
label: "Config.Replace.Json",
|
|
3218
3218
|
inputAttributes: {
|
|
3219
|
-
...
|
|
3219
|
+
...nt.inputAttributes,
|
|
3220
3220
|
type: "textarea",
|
|
3221
3221
|
max: !1
|
|
3222
3222
|
}
|
|
@@ -3224,10 +3224,10 @@ const ii = (e) => {
|
|
|
3224
3224
|
}, Jm = {
|
|
3225
3225
|
...Iu,
|
|
3226
3226
|
"config-allow-json": {
|
|
3227
|
-
...
|
|
3227
|
+
...nt,
|
|
3228
3228
|
label: "Config.Allow.Json",
|
|
3229
3229
|
inputAttributes: {
|
|
3230
|
-
...
|
|
3230
|
+
...nt.inputAttributes,
|
|
3231
3231
|
type: "textarea",
|
|
3232
3232
|
max: !1
|
|
3233
3233
|
}
|
|
@@ -3238,19 +3238,19 @@ const ii = (e) => {
|
|
|
3238
3238
|
max: !1
|
|
3239
3239
|
},
|
|
3240
3240
|
"config-transform-functions": {
|
|
3241
|
-
...
|
|
3241
|
+
...nt,
|
|
3242
3242
|
label: "Config.Transform.Functions",
|
|
3243
3243
|
inputAttributes: {
|
|
3244
|
-
...
|
|
3244
|
+
...nt.inputAttributes,
|
|
3245
3245
|
type: "textarea",
|
|
3246
3246
|
max: !1
|
|
3247
3247
|
}
|
|
3248
3248
|
},
|
|
3249
3249
|
"config-transform-json": {
|
|
3250
|
-
...
|
|
3250
|
+
...nt,
|
|
3251
3251
|
label: "Config.Transform.Json",
|
|
3252
3252
|
inputAttributes: {
|
|
3253
|
-
...
|
|
3253
|
+
...nt.inputAttributes,
|
|
3254
3254
|
type: "textarea",
|
|
3255
3255
|
max: !1
|
|
3256
3256
|
}
|
|
@@ -3305,18 +3305,18 @@ const ii = (e) => {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
}, Qm = {
|
|
3307
3307
|
"config-flow-functions": {
|
|
3308
|
-
...
|
|
3308
|
+
...nt,
|
|
3309
3309
|
inputAttributes: {
|
|
3310
|
-
...
|
|
3310
|
+
...nt.inputAttributes,
|
|
3311
3311
|
type: "textarea",
|
|
3312
3312
|
max: !1
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
3315
|
}, eg = {
|
|
3316
3316
|
"config-message-functions": {
|
|
3317
|
-
...
|
|
3317
|
+
...nt,
|
|
3318
3318
|
inputAttributes: {
|
|
3319
|
-
...
|
|
3319
|
+
...nt.inputAttributes,
|
|
3320
3320
|
type: "textarea",
|
|
3321
3321
|
max: !1
|
|
3322
3322
|
}
|
|
@@ -4877,9 +4877,9 @@ function O0(e) {
|
|
|
4877
4877
|
}
|
|
4878
4878
|
const $0 = {
|
|
4879
4879
|
"config-message_by_lua_functions": {
|
|
4880
|
-
...
|
|
4880
|
+
...nt,
|
|
4881
4881
|
inputAttributes: {
|
|
4882
|
-
...
|
|
4882
|
+
...nt.inputAttributes,
|
|
4883
4883
|
type: "textarea",
|
|
4884
4884
|
max: !1
|
|
4885
4885
|
}
|
|
@@ -4893,9 +4893,9 @@ const $0 = {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
}, N0 = {
|
|
4895
4895
|
"config-message_by_lua_functions": {
|
|
4896
|
-
...
|
|
4896
|
+
...nt,
|
|
4897
4897
|
inputAttributes: {
|
|
4898
|
-
...
|
|
4898
|
+
...nt.inputAttributes,
|
|
4899
4899
|
type: "textarea",
|
|
4900
4900
|
max: !1
|
|
4901
4901
|
}
|
|
@@ -4909,9 +4909,9 @@ const $0 = {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
}, P0 = {
|
|
4911
4911
|
"config-message_by_lua_functions": {
|
|
4912
|
-
...
|
|
4912
|
+
...nt,
|
|
4913
4913
|
inputAttributes: {
|
|
4914
|
-
...
|
|
4914
|
+
...nt.inputAttributes,
|
|
4915
4915
|
type: "textarea",
|
|
4916
4916
|
max: !1
|
|
4917
4917
|
}
|
|
@@ -4927,9 +4927,9 @@ const $0 = {
|
|
|
4927
4927
|
}
|
|
4928
4928
|
}, F0 = {
|
|
4929
4929
|
"config-message_by_lua_functions": {
|
|
4930
|
-
...
|
|
4930
|
+
...nt,
|
|
4931
4931
|
inputAttributes: {
|
|
4932
|
-
...
|
|
4932
|
+
...nt.inputAttributes,
|
|
4933
4933
|
type: "textarea",
|
|
4934
4934
|
max: !1
|
|
4935
4935
|
}
|
|
@@ -5195,7 +5195,7 @@ const V0 = {
|
|
|
5195
5195
|
const n = e.model.startsWith("config-"), a = t.model.startsWith("config-");
|
|
5196
5196
|
return n && !a ? 1 : !n && a ? -1 : 0;
|
|
5197
5197
|
}, Sc = (e, t) => (e.order ?? 0) - (t.order ?? 0), yl = (e, t) => G0(e, t) || Sc(e, t) || e.model.localeCompare(t.model), H0 = (e) => {
|
|
5198
|
-
const { capitalize: t } = bo(), { convertToDotNotation: n } = Eu(), { i18n: { t: a } } =
|
|
5198
|
+
const { capitalize: t } = bo(), { convertToDotNotation: n } = Eu(), { i18n: { t: a } } = Xe(), o = Jr(), i = {
|
|
5199
5199
|
"application-registration": {
|
|
5200
5200
|
overwriteDefault: !0,
|
|
5201
5201
|
formSchema: {
|
|
@@ -5463,11 +5463,11 @@ const V0 = {
|
|
|
5463
5463
|
fields: [{
|
|
5464
5464
|
schema: {
|
|
5465
5465
|
fields: [{
|
|
5466
|
-
...
|
|
5466
|
+
...nt,
|
|
5467
5467
|
model: b.model,
|
|
5468
5468
|
valueArrayType: O === "integer" ? "number" : O || "string",
|
|
5469
5469
|
inputAttributes: {
|
|
5470
|
-
...
|
|
5470
|
+
...nt.inputAttributes,
|
|
5471
5471
|
type: O === "integer" ? "number" : "text",
|
|
5472
5472
|
inputMode: O === "integer" ? "numeric" : "text"
|
|
5473
5473
|
}
|
|
@@ -5549,8 +5549,8 @@ const V0 = {
|
|
|
5549
5549
|
typedefs: Ki,
|
|
5550
5550
|
pruneRecord: k
|
|
5551
5551
|
};
|
|
5552
|
-
},
|
|
5553
|
-
useI18n:
|
|
5552
|
+
}, Qe = {
|
|
5553
|
+
useI18n: Xe,
|
|
5554
5554
|
usePluginMetaData: Fm,
|
|
5555
5555
|
usePluginHelpers: Eu,
|
|
5556
5556
|
useSchemas: H0,
|
|
@@ -5657,7 +5657,7 @@ const V0 = {
|
|
|
5657
5657
|
isLast: { type: Boolean }
|
|
5658
5658
|
},
|
|
5659
5659
|
setup(e) {
|
|
5660
|
-
const t = e, { formatPluginFieldLabel: n } =
|
|
5660
|
+
const t = e, { formatPluginFieldLabel: n } = Qe.usePluginHelpers(), a = V(
|
|
5661
5661
|
() => t.field.replace(/\./g, "-")
|
|
5662
5662
|
), o = V(
|
|
5663
5663
|
() => t.field.replace(/^[cC]onfig\./, "").split(".").map((r) => n(r)).join(".")
|
|
@@ -5691,7 +5691,7 @@ const V0 = {
|
|
|
5691
5691
|
rules: {}
|
|
5692
5692
|
},
|
|
5693
5693
|
setup(e) {
|
|
5694
|
-
const t = e, { i18n: { t: n }, i18nT: a } =
|
|
5694
|
+
const t = e, { i18n: { t: n }, i18nT: a } = Qe.useI18n(), o = V(() => {
|
|
5695
5695
|
const i = [];
|
|
5696
5696
|
if (t.rules.atLeastOneOf)
|
|
5697
5697
|
for (const r of t.rules.atLeastOneOf)
|
|
@@ -5709,12 +5709,12 @@ const V0 = {
|
|
|
5709
5709
|
return C(), Y(s, { class: "plugin-field-rule-alerts" }, {
|
|
5710
5710
|
default: P(() => [
|
|
5711
5711
|
Q("ul", null, [
|
|
5712
|
-
(C(!0), te(Me, null,
|
|
5712
|
+
(C(!0), te(Me, null, Je(o.value, ({ key: u, fields: d }, f) => (C(), te("li", {
|
|
5713
5713
|
key: `simple-alert-${f}`
|
|
5714
5714
|
}, [
|
|
5715
5715
|
x(l(a), { keypath: u }, {
|
|
5716
5716
|
parameters: P(() => [
|
|
5717
|
-
(C(!0), te(Me, null,
|
|
5717
|
+
(C(!0), te(Me, null, Je(d, (c, p) => (C(), Y(_l, {
|
|
5718
5718
|
key: `alert-field-${c}`,
|
|
5719
5719
|
field: c,
|
|
5720
5720
|
"is-last": p === d.length - 1
|
|
@@ -5724,15 +5724,15 @@ const V0 = {
|
|
|
5724
5724
|
}, 1032, ["keypath"])
|
|
5725
5725
|
]))), 128)),
|
|
5726
5726
|
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (C(), te("li", Z0, [
|
|
5727
|
-
(C(!0), te(Me, null,
|
|
5727
|
+
(C(!0), te(Me, null, Je(t.rules.onlyOneOfMutuallyRequired, (u, d) => (C(), te("div", {
|
|
5728
5728
|
key: `only-one-mutually-alert-${d}`
|
|
5729
5729
|
}, [
|
|
5730
5730
|
Q("div", null, ne(l(n)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
5731
5731
|
Q("ul", null, [
|
|
5732
|
-
(C(!0), te(Me, null,
|
|
5732
|
+
(C(!0), te(Me, null, Je(u, (f, c) => (C(), te("li", {
|
|
5733
5733
|
key: `only-one-mutually-alert-${d}-combination-${c}`
|
|
5734
5734
|
}, [
|
|
5735
|
-
(C(!0), te(Me, null,
|
|
5735
|
+
(C(!0), te(Me, null, Je(f, (p, m) => (C(), Y(_l, {
|
|
5736
5736
|
key: `only-one-mutually-field-${p}`,
|
|
5737
5737
|
field: p,
|
|
5738
5738
|
"is-last": m === f.length - 1
|
|
@@ -5814,7 +5814,7 @@ const V0 = {
|
|
|
5814
5814
|
onLeave: f
|
|
5815
5815
|
}, {
|
|
5816
5816
|
default: P(() => [
|
|
5817
|
-
|
|
5817
|
+
et(p.$slots, "default", {}, void 0, !0)
|
|
5818
5818
|
]),
|
|
5819
5819
|
_: 3
|
|
5820
5820
|
}));
|
|
@@ -6497,17 +6497,17 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6497
6497
|
}, f = () => {
|
|
6498
6498
|
u.value.updateOnChange && o("update:modelValue", s.value);
|
|
6499
6499
|
};
|
|
6500
|
-
return (c, p) => (C(), Y(l(i),
|
|
6500
|
+
return (c, p) => (C(), Y(l(i), We(c.$attrs, {
|
|
6501
6501
|
"character-limit": r.value,
|
|
6502
6502
|
"model-value": e.modelValue,
|
|
6503
6503
|
resizable: e.multiline ? !0 : void 0,
|
|
6504
6504
|
onChange: f,
|
|
6505
6505
|
"onUpdate:modelValue": d
|
|
6506
6506
|
}), st({ _: 2 }, [
|
|
6507
|
-
|
|
6507
|
+
Je(Pt(), (m, g) => ({
|
|
6508
6508
|
name: g,
|
|
6509
6509
|
fn: P((y) => [
|
|
6510
|
-
|
|
6510
|
+
et(c.$slots, g, Kt(Zt(y)))
|
|
6511
6511
|
])
|
|
6512
6512
|
}))
|
|
6513
6513
|
]), 1040, ["character-limit", "model-value", "resizable"]));
|
|
@@ -6537,7 +6537,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6537
6537
|
},
|
|
6538
6538
|
emits: ["update:modelValue"],
|
|
6539
6539
|
setup(e, { emit: t }) {
|
|
6540
|
-
const n = fi(), { i18n: a } =
|
|
6540
|
+
const n = fi(), { i18n: a } = Xe(), o = on(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), i = t, { value: r, hide: s, ...u } = Mt(ut(() => e.name)), d = en(u.path, ut({ ...o, ...n })), f = r == null ? void 0 : r.value;
|
|
6541
6541
|
function c(_) {
|
|
6542
6542
|
f !== void 0 && _ === "" && _ !== f ? (r.value = null, i("update:modelValue", null)) : (r.value = _.trim(), i("update:modelValue", _.trim()));
|
|
6543
6543
|
}
|
|
@@ -6555,8 +6555,8 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6555
6555
|
key: 0,
|
|
6556
6556
|
appearance: "danger",
|
|
6557
6557
|
message: u.error.message
|
|
6558
|
-
}, null, 8, ["message"])) : $t((C(), te("div", Kt(
|
|
6559
|
-
x(pi,
|
|
6558
|
+
}, null, 8, ["message"])) : $t((C(), te("div", Kt(We({ key: 1 }, _.$attrs)), [
|
|
6559
|
+
x(pi, We({
|
|
6560
6560
|
...l(d),
|
|
6561
6561
|
showPasswordMaskToggle: p.value,
|
|
6562
6562
|
type: p.value ? "password" : "text"
|
|
@@ -6577,7 +6577,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6577
6577
|
(v = l(d).labelAttributes) != null && v.info ? {
|
|
6578
6578
|
name: "label-tooltip",
|
|
6579
6579
|
fn: P(() => [
|
|
6580
|
-
|
|
6580
|
+
et(_.$slots, "tooltip", {}, () => [
|
|
6581
6581
|
Q("div", {
|
|
6582
6582
|
innerHTML: l(d).labelAttributes.info
|
|
6583
6583
|
}, null, 8, Rw)
|
|
@@ -6588,7 +6588,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6588
6588
|
!(e.multiline && e.error) && _.$slots.help ? {
|
|
6589
6589
|
name: "help",
|
|
6590
6590
|
fn: P(() => [
|
|
6591
|
-
|
|
6591
|
+
et(_.$slots, "help", {}, void 0, !0)
|
|
6592
6592
|
]),
|
|
6593
6593
|
key: "1"
|
|
6594
6594
|
} : void 0
|
|
@@ -6630,7 +6630,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6630
6630
|
key: 0,
|
|
6631
6631
|
appearance: "danger",
|
|
6632
6632
|
message: r.error.message
|
|
6633
|
-
}, null, 8, ["message"])) : $t((C(), Y(l(Zp),
|
|
6633
|
+
}, null, 8, ["message"])) : $t((C(), Y(l(Zp), We({ key: 1 }, l(d), {
|
|
6634
6634
|
class: "ff-boolean-field",
|
|
6635
6635
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
6636
6636
|
"data-testid": `ff-${r.path.value}`,
|
|
@@ -6640,7 +6640,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6640
6640
|
(m = l(d).labelAttributes) != null && m.info ? {
|
|
6641
6641
|
name: "tooltip",
|
|
6642
6642
|
fn: P(() => [
|
|
6643
|
-
|
|
6643
|
+
et(f.$slots, "tooltip", {}, () => [
|
|
6644
6644
|
Q("div", {
|
|
6645
6645
|
innerHTML: l(d).labelAttributes.info
|
|
6646
6646
|
}, null, 8, Lw)
|
|
@@ -6694,7 +6694,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6694
6694
|
key: 1,
|
|
6695
6695
|
"data-testid": `ff-tag-${s.path.value}`
|
|
6696
6696
|
}, [
|
|
6697
|
-
x(pi,
|
|
6697
|
+
x(pi, We(l(u), {
|
|
6698
6698
|
class: "ff-tag-field",
|
|
6699
6699
|
"data-1p-ignore": g.value,
|
|
6700
6700
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
@@ -6705,7 +6705,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6705
6705
|
(h = l(u).labelAttributes) != null && h.info ? {
|
|
6706
6706
|
name: "label-tooltip",
|
|
6707
6707
|
fn: P(() => [
|
|
6708
|
-
|
|
6708
|
+
et(y.$slots, "tooltip", {}, () => [
|
|
6709
6709
|
Q("div", {
|
|
6710
6710
|
innerHTML: l(u).labelAttributes.info
|
|
6711
6711
|
}, null, 8, Dw)
|
|
@@ -6737,7 +6737,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6737
6737
|
xa((A) => ({
|
|
6738
6738
|
d4d4e372: G.value
|
|
6739
6739
|
}));
|
|
6740
|
-
const n = e, a = t, { i18n: { t: o } } =
|
|
6740
|
+
const n = e, a = t, { i18n: { t: o } } = Xe(), { getDefault: i, getSchema: r } = dt(), { value: s, hide: u, ...d } = Mt(ut(n, "name")), f = en(d.path, ut({ ...n, ...fi() })), c = V(() => {
|
|
6741
6741
|
if (!d.path) throw new Error("Field path is required for sub-schema retrieval");
|
|
6742
6742
|
const A = r(d.path.value);
|
|
6743
6743
|
if (!A) throw new Error(`Schema not found for path: ${d.path.value}`);
|
|
@@ -6800,7 +6800,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6800
6800
|
class: "ff-array-field-header",
|
|
6801
6801
|
"data-testid": `ff-array-header-${d.path.value}`
|
|
6802
6802
|
}, [
|
|
6803
|
-
x(N,
|
|
6803
|
+
x(N, We({ class: "ff-array-field-label" }, l(f), {
|
|
6804
6804
|
"data-testid": `ff-label-${d.path.value}`,
|
|
6805
6805
|
"tooltip-attributes": l(f).labelAttributes.tooltipAttributes
|
|
6806
6806
|
}), st({
|
|
@@ -6812,7 +6812,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6812
6812
|
(j = l(f).labelAttributes) != null && j.info ? {
|
|
6813
6813
|
name: "tooltip",
|
|
6814
6814
|
fn: P(() => [
|
|
6815
|
-
|
|
6815
|
+
et(A.$slots, "tooltip", {}, () => [
|
|
6816
6816
|
Q("div", {
|
|
6817
6817
|
innerHTML: l(f).labelAttributes.info
|
|
6818
6818
|
}, null, 8, Bw)
|
|
@@ -6840,7 +6840,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6840
6840
|
class: "ff-array-field-container",
|
|
6841
6841
|
"data-testid": `ff-array-basic-container-${d.path.value}`
|
|
6842
6842
|
}, [
|
|
6843
|
-
(C(!0), te(Me, null,
|
|
6843
|
+
(C(!0), te(Me, null, Je(m.value, (R, K) => (C(), Y(l(w), {
|
|
6844
6844
|
key: l(g)(R, K),
|
|
6845
6845
|
class: at(["ff-array-field-item", { "ff-array-field-item-card": y.value === "card" }]),
|
|
6846
6846
|
"data-index": K,
|
|
@@ -6848,7 +6848,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6848
6848
|
}, {
|
|
6849
6849
|
default: P(() => [
|
|
6850
6850
|
Q("div", Gw, [
|
|
6851
|
-
A.$slots.item ?
|
|
6851
|
+
A.$slots.item ? et(A.$slots, "item", {
|
|
6852
6852
|
key: 0,
|
|
6853
6853
|
autofocus: !0,
|
|
6854
6854
|
fieldName: String(K),
|
|
@@ -6913,7 +6913,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6913
6913
|
"data-testid": `ff-array-tabs-${d.path.value}`,
|
|
6914
6914
|
tabs: h.value
|
|
6915
6915
|
}, st({ _: 2 }, [
|
|
6916
|
-
|
|
6916
|
+
Je(m.value, (R, K) => ({
|
|
6917
6917
|
name: l(g)(R, K),
|
|
6918
6918
|
fn: P(() => [
|
|
6919
6919
|
Q("div", {
|
|
@@ -6921,7 +6921,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6921
6921
|
"data-index": K,
|
|
6922
6922
|
"data-testid": `ff-array-item-${d.path.value}.${K}`
|
|
6923
6923
|
}, [
|
|
6924
|
-
A.$slots.item ?
|
|
6924
|
+
A.$slots.item ? et(A.$slots, "item", {
|
|
6925
6925
|
key: 0,
|
|
6926
6926
|
autofocus: !0,
|
|
6927
6927
|
fieldName: String(K),
|
|
@@ -6934,7 +6934,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6934
6934
|
], 8, Hw)
|
|
6935
6935
|
])
|
|
6936
6936
|
})),
|
|
6937
|
-
|
|
6937
|
+
Je(m.value, (R, K) => ({
|
|
6938
6938
|
name: `${l(g)(R, K)}-anchor`,
|
|
6939
6939
|
fn: P(() => [
|
|
6940
6940
|
we(ne(_(R, K)) + " ", 1),
|
|
@@ -6987,7 +6987,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
6987
6987
|
},
|
|
6988
6988
|
emits: ["update:modelValue"],
|
|
6989
6989
|
setup(e, { emit: t }) {
|
|
6990
|
-
const n = on(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: a, hide: o, ...i } = Mt(ut(() => e.name)), r = en(i.path, n), { i18n: s } =
|
|
6990
|
+
const n = on(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: a, hide: o, ...i } = Mt(ut(() => e.name)), r = en(i.path, n), { i18n: s } = Xe(), u = V(() => {
|
|
6991
6991
|
var k;
|
|
6992
6992
|
const h = (k = i.schema) == null ? void 0 : k.value;
|
|
6993
6993
|
if (typeof h.gt == "number")
|
|
@@ -7027,7 +7027,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
7027
7027
|
appearance: "danger",
|
|
7028
7028
|
message: i.error.message
|
|
7029
7029
|
}, null, 8, ["message"])) : $t((C(), te("div", Yw, [
|
|
7030
|
-
x(pi,
|
|
7030
|
+
x(pi, We({ class: "ff-number-field" }, {
|
|
7031
7031
|
...l(r),
|
|
7032
7032
|
min: u.value.min,
|
|
7033
7033
|
max: u.value.max
|
|
@@ -7041,7 +7041,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
7041
7041
|
(k = l(r).labelAttributes) != null && k.info ? {
|
|
7042
7042
|
name: "label-tooltip",
|
|
7043
7043
|
fn: P(() => [
|
|
7044
|
-
|
|
7044
|
+
et(h.$slots, "tooltip", {}, () => [
|
|
7045
7045
|
Q("div", {
|
|
7046
7046
|
innerHTML: l(r).labelAttributes.info
|
|
7047
7047
|
}, null, 8, Jw)
|
|
@@ -7124,7 +7124,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
7124
7124
|
key: 0,
|
|
7125
7125
|
appearance: "danger",
|
|
7126
7126
|
message: s.error.message
|
|
7127
|
-
}, null, 8, ["message"])) : $t((C(), Y(l(p),
|
|
7127
|
+
}, null, 8, ["message"])) : $t((C(), Y(l(p), We({ key: 1 }, { ...a, ...l(d) }, {
|
|
7128
7128
|
modelValue: u.value,
|
|
7129
7129
|
"onUpdate:modelValue": [
|
|
7130
7130
|
g[0] || (g[0] = (_) => u.value = _),
|
|
@@ -7140,7 +7140,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
7140
7140
|
"tooltip" in m.$slots || (w = l(d).labelAttributes) != null && w.info ? {
|
|
7141
7141
|
name: "label-tooltip",
|
|
7142
7142
|
fn: P(() => [
|
|
7143
|
-
|
|
7143
|
+
et(m.$slots, "tooltip", {}, () => [
|
|
7144
7144
|
Q("div", {
|
|
7145
7145
|
innerHTML: l(d).labelAttributes.info
|
|
7146
7146
|
}, null, 8, Zw)
|
|
@@ -7151,7 +7151,7 @@ const pi = /* @__PURE__ */ ge({
|
|
|
7151
7151
|
m.$slots["item-label"] ? {
|
|
7152
7152
|
name: "item-template",
|
|
7153
7153
|
fn: P(({ item: _ }) => [
|
|
7154
|
-
|
|
7154
|
+
et(m.$slots, "item-label", Kt(Zt(_)), void 0, !0)
|
|
7155
7155
|
]),
|
|
7156
7156
|
key: "1"
|
|
7157
7157
|
} : void 0
|
|
@@ -7282,7 +7282,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7282
7282
|
},
|
|
7283
7283
|
emits: ["change"],
|
|
7284
7284
|
setup(e, { expose: t, emit: n }) {
|
|
7285
|
-
const a = on(e, ["showVaultSecretPicker"]), { i18n: o } =
|
|
7285
|
+
const a = on(e, ["showVaultSecretPicker"]), { i18n: o } = Xe(), i = n, {
|
|
7286
7286
|
entries: r,
|
|
7287
7287
|
addEntry: s,
|
|
7288
7288
|
removeEntry: u,
|
|
@@ -7339,7 +7339,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7339
7339
|
class: "ff-kv-field-header",
|
|
7340
7340
|
"data-testid": `ff-kv-header-${l(p).path.value}`
|
|
7341
7341
|
}, [
|
|
7342
|
-
x(T,
|
|
7342
|
+
x(T, We({ class: "ff-kv-field-label" }, l(c), {
|
|
7343
7343
|
"data-testid": `ff-label-${l(p).path.value}`,
|
|
7344
7344
|
"tooltip-attributes": l(c).labelAttributes.tooltipAttributes
|
|
7345
7345
|
}), st({
|
|
@@ -7351,7 +7351,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7351
7351
|
(M = l(c).labelAttributes) != null && M.info ? {
|
|
7352
7352
|
name: "tooltip",
|
|
7353
7353
|
fn: P(() => [
|
|
7354
|
-
|
|
7354
|
+
et(O.$slots, "tooltip", {}, () => [
|
|
7355
7355
|
Q("div", {
|
|
7356
7356
|
innerHTML: l(c).labelAttributes.info
|
|
7357
7357
|
}, null, 8, nk)
|
|
@@ -7361,7 +7361,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7361
7361
|
} : void 0
|
|
7362
7362
|
]), 1040, ["data-testid", "tooltip-attributes"])
|
|
7363
7363
|
], 8, tk),
|
|
7364
|
-
(C(!0), te(Me, null,
|
|
7364
|
+
(C(!0), te(Me, null, Je(l(r), (N, q) => {
|
|
7365
7365
|
var H, z;
|
|
7366
7366
|
return C(), Y(Ct(g.value), {
|
|
7367
7367
|
key: N.id,
|
|
@@ -7497,7 +7497,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7497
7497
|
key: 1,
|
|
7498
7498
|
"data-testid": `ff-json-${s.path.value}`
|
|
7499
7499
|
}, [
|
|
7500
|
-
x(pi,
|
|
7500
|
+
x(pi, We(l(u), {
|
|
7501
7501
|
class: "ff-json-field",
|
|
7502
7502
|
"data-1p-ignore": c.value,
|
|
7503
7503
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
@@ -7509,7 +7509,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7509
7509
|
(y = l(u).labelAttributes) != null && y.info ? {
|
|
7510
7510
|
name: "label-tooltip",
|
|
7511
7511
|
fn: P(() => [
|
|
7512
|
-
|
|
7512
|
+
et(p.$slots, "tooltip", {}, () => [
|
|
7513
7513
|
Q("div", {
|
|
7514
7514
|
innerHTML: l(u).labelAttributes.info
|
|
7515
7515
|
}, null, 8, rk)
|
|
@@ -7542,7 +7542,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7542
7542
|
},
|
|
7543
7543
|
emits: ["update:modelValue"],
|
|
7544
7544
|
setup(e, { emit: t }) {
|
|
7545
|
-
const n = fi(), { i18n: { t: a } } =
|
|
7545
|
+
const n = fi(), { i18n: { t: a } } = Xe(), o = on(e, ["autofocus", "name"]), i = t, { value: r, hide: s, ...u } = Mt(ut(() => e.name));
|
|
7546
7546
|
if (u.error)
|
|
7547
7547
|
throw new Error(u.error.message);
|
|
7548
7548
|
const d = en(u.path, ut({ ...o, ...n })), f = r.value ? r.value.id : null, c = V(() => {
|
|
@@ -7555,7 +7555,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7555
7555
|
const g = V(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
|
|
7556
7556
|
return (y, w) => {
|
|
7557
7557
|
var _;
|
|
7558
|
-
return $t((C(), Y(pi,
|
|
7558
|
+
return $t((C(), Y(pi, We(l(d), {
|
|
7559
7559
|
class: "ff-foreign-field",
|
|
7560
7560
|
"data-1p-ignore": g.value,
|
|
7561
7561
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
@@ -7570,7 +7570,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7570
7570
|
(_ = l(d).labelAttributes) != null && _.info ? {
|
|
7571
7571
|
name: "label-tooltip",
|
|
7572
7572
|
fn: P(() => [
|
|
7573
|
-
|
|
7573
|
+
et(y.$slots, "tooltip", {}, () => [
|
|
7574
7574
|
Q("div", {
|
|
7575
7575
|
innerHTML: l(d).labelAttributes.info
|
|
7576
7576
|
}, null, 8, uk)
|
|
@@ -7641,7 +7641,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7641
7641
|
appearance: "warning",
|
|
7642
7642
|
message: `${l(n).path.value} ${l(n).schema.value.type} (no renderer yet)`
|
|
7643
7643
|
}, null, 8, ["message"])),
|
|
7644
|
-
|
|
7644
|
+
et(o.$slots, "default")
|
|
7645
7645
|
], 64))
|
|
7646
7646
|
], 64);
|
|
7647
7647
|
};
|
|
@@ -7653,7 +7653,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7653
7653
|
visibleFields: {}
|
|
7654
7654
|
},
|
|
7655
7655
|
setup(e) {
|
|
7656
|
-
const { i18n: { t } } =
|
|
7656
|
+
const { i18n: { t } } = Qe.useI18n(), n = V(() => {
|
|
7657
7657
|
if (!Array.isArray(e.entityChecks) || e.entityChecks.length === 0)
|
|
7658
7658
|
return null;
|
|
7659
7659
|
const i = [], r = [
|
|
@@ -7689,7 +7689,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7689
7689
|
}, {
|
|
7690
7690
|
default: P(() => [
|
|
7691
7691
|
Q("ul", pk, [
|
|
7692
|
-
(C(!0), te(Me, null,
|
|
7692
|
+
(C(!0), te(Me, null, Je(n.value, (u) => (C(), te("li", {
|
|
7693
7693
|
key: u,
|
|
7694
7694
|
"data-testid": "ff-entity-check-item"
|
|
7695
7695
|
}, ne(u), 1))), 128))
|
|
@@ -7771,20 +7771,20 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7771
7771
|
key: 0,
|
|
7772
7772
|
appearance: "danger",
|
|
7773
7773
|
message: i.error.message
|
|
7774
|
-
}, null, 8, ["message"])) : y.value ? $t((C(), te("div",
|
|
7774
|
+
}, null, 8, ["message"])) : y.value ? $t((C(), te("div", We({
|
|
7775
7775
|
key: 1,
|
|
7776
7776
|
class: "ff-object-field ff-object-field-as-child"
|
|
7777
7777
|
}, v.$attrs, {
|
|
7778
7778
|
"data-testid": `ff-object-${i.path.value}`
|
|
7779
7779
|
}), [
|
|
7780
|
-
|
|
7780
|
+
et(v.$slots, "default", {}, () => {
|
|
7781
7781
|
var G;
|
|
7782
7782
|
return [
|
|
7783
7783
|
x(xl, {
|
|
7784
7784
|
"entity-checks": (G = i.schema.value) == null ? void 0 : G.entity_checks,
|
|
7785
7785
|
"visible-fields": _.value
|
|
7786
7786
|
}, null, 8, ["entity-checks", "visible-fields"]),
|
|
7787
|
-
(C(!0), te(Me, null,
|
|
7787
|
+
(C(!0), te(Me, null, Je(w.value, (T) => (C(), Y(Tt, {
|
|
7788
7788
|
key: Object.keys(T)[0],
|
|
7789
7789
|
name: Object.keys(T)[0]
|
|
7790
7790
|
}, null, 8, ["name"]))), 128))
|
|
@@ -7792,7 +7792,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7792
7792
|
}, !0)
|
|
7793
7793
|
], 16, mk)), [
|
|
7794
7794
|
[Nt, !l(o)]
|
|
7795
|
-
]) : $t((C(), te("div",
|
|
7795
|
+
]) : $t((C(), te("div", We({
|
|
7796
7796
|
key: 2,
|
|
7797
7797
|
class: ["ff-object-field", { "ff-object-field-collapsed": !c.value }],
|
|
7798
7798
|
"data-testid": `ff-object-${i.path.value}`
|
|
@@ -7819,7 +7819,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7819
7819
|
size: l($a)
|
|
7820
7820
|
}, null, 8, ["class", "data-testid", "size"])
|
|
7821
7821
|
], 8, yk),
|
|
7822
|
-
x(l(An),
|
|
7822
|
+
x(l(An), We({
|
|
7823
7823
|
class: "ff-object-field-label",
|
|
7824
7824
|
"data-testid": `ff-label-${i.path.value}`
|
|
7825
7825
|
}, {
|
|
@@ -7836,7 +7836,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7836
7836
|
(F = l(m).labelAttributes) != null && F.info ? {
|
|
7837
7837
|
name: "tooltip",
|
|
7838
7838
|
fn: P(() => [
|
|
7839
|
-
|
|
7839
|
+
et(v.$slots, "tooltip", {}, () => [
|
|
7840
7840
|
Q("div", {
|
|
7841
7841
|
innerHTML: l(m).labelAttributes.info
|
|
7842
7842
|
}, null, 8, _k)
|
|
@@ -7863,14 +7863,14 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7863
7863
|
class: "ff-object-field-content",
|
|
7864
7864
|
"data-testid": `ff-object-content-${i.path.value}`
|
|
7865
7865
|
}, [
|
|
7866
|
-
|
|
7866
|
+
et(v.$slots, "default", {}, () => {
|
|
7867
7867
|
var G;
|
|
7868
7868
|
return [
|
|
7869
7869
|
x(xl, {
|
|
7870
7870
|
"entity-checks": (G = i.schema.value) == null ? void 0 : G.entity_checks,
|
|
7871
7871
|
"visible-fields": _.value
|
|
7872
7872
|
}, null, 8, ["entity-checks", "visible-fields"]),
|
|
7873
|
-
(C(!0), te(Me, null,
|
|
7873
|
+
(C(!0), te(Me, null, Je(w.value, (T) => (C(), Y(Tt, {
|
|
7874
7874
|
key: Object.keys(T)[0],
|
|
7875
7875
|
name: Object.keys(T)[0]
|
|
7876
7876
|
}, null, 8, ["name"]))), 128))
|
|
@@ -7923,7 +7923,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
7923
7923
|
placeholder: l(t)("plugins.form.fields.condition.placeholder")
|
|
7924
7924
|
}, null, 8, ["placeholder"])) : me("", !0)
|
|
7925
7925
|
], 64)),
|
|
7926
|
-
|
|
7926
|
+
et(o.$slots, "default", {}, void 0, !0)
|
|
7927
7927
|
])
|
|
7928
7928
|
]),
|
|
7929
7929
|
_: 3
|
|
@@ -8026,8 +8026,8 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8026
8026
|
}), (c, p) => (C(), Y(Ct(e.tag), null, {
|
|
8027
8027
|
default: P(() => [
|
|
8028
8028
|
(C(), Y(Ct(l(o)[l(Wi)]))),
|
|
8029
|
-
|
|
8030
|
-
(C(!0), te(Me, null,
|
|
8029
|
+
et(c.$slots, "default", {}, () => [
|
|
8030
|
+
(C(!0), te(Me, null, Je(f.value, (m) => (C(), Y(Tt, {
|
|
8031
8031
|
key: Object.keys(m)[0],
|
|
8032
8032
|
name: Object.keys(m)[0],
|
|
8033
8033
|
onGlobalAction: p[0] || (p[0] = (g, y) => a("globalAction", g, y))
|
|
@@ -8048,7 +8048,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8048
8048
|
},
|
|
8049
8049
|
emits: ["update:modelValue"],
|
|
8050
8050
|
setup(e, { emit: t }) {
|
|
8051
|
-
const { i18n: { t: n } } =
|
|
8051
|
+
const { i18n: { t: n } } = Qe.useI18n(), a = on(e, ["name", "enabledText", "disabledText"]), { value: o, hide: i, emptyOrDefaultValue: r, ...s } = Mt(ut(() => e.name)), u = t, d = (c) => {
|
|
8052
8052
|
o.value = c, u("update:modelValue", c);
|
|
8053
8053
|
}, f = en(s.path, a);
|
|
8054
8054
|
return (c, p) => {
|
|
@@ -8062,7 +8062,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8062
8062
|
class: "ff-switch-field",
|
|
8063
8063
|
"data-testid": `ff-${s.path.value}`
|
|
8064
8064
|
}, [
|
|
8065
|
-
x(l(nf),
|
|
8065
|
+
x(l(nf), We(l(f), {
|
|
8066
8066
|
"model-value": !!(l(o) == null ? l(r) : l(o)),
|
|
8067
8067
|
"onUpdate:modelValue": d
|
|
8068
8068
|
}), {
|
|
@@ -8093,7 +8093,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8093
8093
|
name: {}
|
|
8094
8094
|
},
|
|
8095
8095
|
setup(e) {
|
|
8096
|
-
const t = on(e, ["name", "entity", "fields", "labelField", "disabled", "placeholder", "help"]), { i18n: { t: n } } =
|
|
8096
|
+
const t = on(e, ["name", "entity", "fields", "labelField", "disabled", "placeholder", "help"]), { i18n: { t: n } } = Qe.useI18n(), { value: a, hide: o, ...i } = Mt(ut(() => e.name));
|
|
8097
8097
|
if (i.error)
|
|
8098
8098
|
throw new Error(i.error.message);
|
|
8099
8099
|
const r = en(i.path, t), s = _t(mu), u = V(() => e.fields.filter((y) => y !== "id")), d = V(() => e.fields.includes("id")), f = ae(!1), c = ae(), p = ae(), m = V(() => {
|
|
@@ -8133,7 +8133,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8133
8133
|
class: "ff-scope-entity-field",
|
|
8134
8134
|
"data-testid": `ff-${i.path.value}`
|
|
8135
8135
|
}, [
|
|
8136
|
-
l(r).label ? (C(), Y(l(An), Kt(
|
|
8136
|
+
l(r).label ? (C(), Y(l(An), Kt(We({ key: 0 }, l(r).labelAttributes)), {
|
|
8137
8137
|
default: P(() => [
|
|
8138
8138
|
we(ne(l(r).label), 1)
|
|
8139
8139
|
]),
|
|
@@ -8222,7 +8222,7 @@ const ek = ["data-testid"], tk = ["data-testid"], nk = ["innerHTML"], ik = { cla
|
|
|
8222
8222
|
return (c, p) => {
|
|
8223
8223
|
const m = de("KCopy");
|
|
8224
8224
|
return C(), te("div", Fk, [
|
|
8225
|
-
(C(!0), te(Me, null,
|
|
8225
|
+
(C(!0), te(Me, null, Je(f.value, ({ key: g, label: y, value: w, type: _ }) => (C(), te("div", {
|
|
8226
8226
|
key: g,
|
|
8227
8227
|
class: "partial-config-card-row"
|
|
8228
8228
|
}, [
|
|
@@ -8406,7 +8406,7 @@ const Bk = {
|
|
|
8406
8406
|
], 512), [
|
|
8407
8407
|
[Nt, p.value]
|
|
8408
8408
|
]),
|
|
8409
|
-
p.value ? me("", !0) : (C(), Y(zt,
|
|
8409
|
+
p.value ? me("", !0) : (C(), Y(zt, We({ key: 0 }, o, {
|
|
8410
8410
|
"as-child": "",
|
|
8411
8411
|
"fields-order": n,
|
|
8412
8412
|
name: u.value,
|
|
@@ -8417,7 +8417,7 @@ const Bk = {
|
|
|
8417
8417
|
_: 1
|
|
8418
8418
|
}, 8, ["title"])), [
|
|
8419
8419
|
[Nt, !l(E)]
|
|
8420
|
-
]) : $t((C(), Y(zt,
|
|
8420
|
+
]) : $t((C(), Y(zt, We({ key: 1 }, o, {
|
|
8421
8421
|
"fields-order": n,
|
|
8422
8422
|
"hide-required-asterisk": "",
|
|
8423
8423
|
name: u.value,
|
|
@@ -9825,7 +9825,7 @@ const mx = {
|
|
|
9825
9825
|
}, yx = { class: "label-content" }, _x = /* @__PURE__ */ ge({
|
|
9826
9826
|
__name: "ConditionField",
|
|
9827
9827
|
setup(e) {
|
|
9828
|
-
const t = Ea(), { i18n: { t: n }, i18nT: a } =
|
|
9828
|
+
const t = Ea(), { i18n: { t: n }, i18nT: a } = Xe();
|
|
9829
9829
|
return (o, i) => {
|
|
9830
9830
|
const r = de("KBadge"), s = de("KLabel"), u = de("KExternalLink");
|
|
9831
9831
|
return C(), te("div", null, [
|
|
@@ -9927,7 +9927,7 @@ const mx = {
|
|
|
9927
9927
|
"consumer_group",
|
|
9928
9928
|
"route",
|
|
9929
9929
|
"service"
|
|
9930
|
-
], n = Ea(), { i18n: { t: a } } =
|
|
9930
|
+
], n = Ea(), { i18n: { t: a } } = Xe(), o = on(e, ["editorMode"]), i = _t(Po), r = Pt(), s = V(() => o.formConfig ?? {
|
|
9931
9931
|
hasValue: (q) => !!q && Object.keys(q).length > 0,
|
|
9932
9932
|
prepareFormData: (q) => o.isEditing ? q : { ...q, ...M() }
|
|
9933
9933
|
}), u = V(() => {
|
|
@@ -10110,7 +10110,7 @@ const mx = {
|
|
|
10110
10110
|
]),
|
|
10111
10111
|
_: 1
|
|
10112
10112
|
}, 8, ["match"]),
|
|
10113
|
-
|
|
10113
|
+
et(q.$slots, "field-renderers", {}, void 0, !0)
|
|
10114
10114
|
]),
|
|
10115
10115
|
default: P(() => [
|
|
10116
10116
|
e.editorMode === "form" ? (C(), te(Me, { key: 0 }, [
|
|
@@ -10128,7 +10128,7 @@ const mx = {
|
|
|
10128
10128
|
var R, K;
|
|
10129
10129
|
return [
|
|
10130
10130
|
Q("div", wx, [
|
|
10131
|
-
x(l(ca),
|
|
10131
|
+
x(l(ca), We({
|
|
10132
10132
|
modelValue: b.value,
|
|
10133
10133
|
"onUpdate:modelValue": H[0] || (H[0] = (S) => b.value = S),
|
|
10134
10134
|
card: "",
|
|
@@ -10138,7 +10138,7 @@ const mx = {
|
|
|
10138
10138
|
"selected-value": !1,
|
|
10139
10139
|
"onUpdate:modelValue": G
|
|
10140
10140
|
}), null, 16, ["modelValue", "disabled"]),
|
|
10141
|
-
c.value[1] ? (C(), Y(l(ca),
|
|
10141
|
+
c.value[1] ? (C(), Y(l(ca), We({
|
|
10142
10142
|
key: 0,
|
|
10143
10143
|
modelValue: b.value,
|
|
10144
10144
|
"onUpdate:modelValue": H[1] || (H[1] = (S) => b.value = S),
|
|
@@ -10155,7 +10155,7 @@ const mx = {
|
|
|
10155
10155
|
_: 1
|
|
10156
10156
|
}, 16)),
|
|
10157
10157
|
p.value ? $t((C(), te("div", kx, [
|
|
10158
|
-
(C(!0), te(Me, null,
|
|
10158
|
+
(C(!0), te(Me, null, Je(m.value, (R) => (C(), Y(Nk, {
|
|
10159
10159
|
key: R.name,
|
|
10160
10160
|
disabled: R.disabled,
|
|
10161
10161
|
"disabled-tooltip": R.disabledTooltip,
|
|
@@ -10177,21 +10177,21 @@ const mx = {
|
|
|
10177
10177
|
r["general-info-title"] ? {
|
|
10178
10178
|
name: "title",
|
|
10179
10179
|
fn: P(() => [
|
|
10180
|
-
|
|
10180
|
+
et(q.$slots, "general-info-title", {}, void 0, !0)
|
|
10181
10181
|
]),
|
|
10182
10182
|
key: "0"
|
|
10183
10183
|
} : void 0,
|
|
10184
10184
|
r["general-info-description"] ? {
|
|
10185
10185
|
name: "description",
|
|
10186
10186
|
fn: P(() => [
|
|
10187
|
-
|
|
10187
|
+
et(q.$slots, "general-info-description", {}, void 0, !0)
|
|
10188
10188
|
]),
|
|
10189
10189
|
key: "1"
|
|
10190
10190
|
} : void 0,
|
|
10191
10191
|
r["general-info-extra"] ? {
|
|
10192
10192
|
name: "extra",
|
|
10193
10193
|
fn: P(() => [
|
|
10194
|
-
|
|
10194
|
+
et(q.$slots, "general-info-extra", {}, void 0, !0)
|
|
10195
10195
|
]),
|
|
10196
10196
|
key: "2"
|
|
10197
10197
|
} : void 0
|
|
@@ -10203,28 +10203,28 @@ const mx = {
|
|
|
10203
10203
|
title: e.pluginConfigTitle ?? l(a)("plugins.form.sections.plugin_config.title")
|
|
10204
10204
|
}, st({
|
|
10205
10205
|
default: P(() => [
|
|
10206
|
-
|
|
10206
|
+
et(q.$slots, "default", {}, void 0, !0)
|
|
10207
10207
|
]),
|
|
10208
10208
|
_: 2
|
|
10209
10209
|
}, [
|
|
10210
10210
|
r["plugin-config-title"] ? {
|
|
10211
10211
|
name: "title",
|
|
10212
10212
|
fn: P(() => [
|
|
10213
|
-
|
|
10213
|
+
et(q.$slots, "plugin-config-title", {}, void 0, !0)
|
|
10214
10214
|
]),
|
|
10215
10215
|
key: "0"
|
|
10216
10216
|
} : void 0,
|
|
10217
10217
|
r["plugin-config-description"] ? {
|
|
10218
10218
|
name: "description",
|
|
10219
10219
|
fn: P(() => [
|
|
10220
|
-
|
|
10220
|
+
et(q.$slots, "plugin-config-description", {}, void 0, !0)
|
|
10221
10221
|
]),
|
|
10222
10222
|
key: "1"
|
|
10223
10223
|
} : void 0,
|
|
10224
10224
|
r["plugin-config-extra"] ? {
|
|
10225
10225
|
name: "extra",
|
|
10226
10226
|
fn: P(() => [
|
|
10227
|
-
|
|
10227
|
+
et(q.$slots, "plugin-config-extra", {}, void 0, !0)
|
|
10228
10228
|
]),
|
|
10229
10229
|
key: "2"
|
|
10230
10230
|
} : void 0
|
|
@@ -10281,7 +10281,7 @@ const mx = {
|
|
|
10281
10281
|
title: l(a)("plugins.form.sections.code_mode.title")
|
|
10282
10282
|
}, {
|
|
10283
10283
|
default: P(() => [
|
|
10284
|
-
|
|
10284
|
+
et(q.$slots, "code-editor", {}, () => [
|
|
10285
10285
|
x(vx)
|
|
10286
10286
|
], !0)
|
|
10287
10287
|
]),
|
|
@@ -10319,7 +10319,7 @@ const mx = {
|
|
|
10319
10319
|
match: ({ path: i }) => i === "config.functions"
|
|
10320
10320
|
}, {
|
|
10321
10321
|
default: P((i) => [
|
|
10322
|
-
x(Na,
|
|
10322
|
+
x(Na, We(i, { appearance: { string: { multiline: !0 } } }), null, 16)
|
|
10323
10323
|
]),
|
|
10324
10324
|
_: 1
|
|
10325
10325
|
}, 8, ["match"])
|
|
@@ -10406,7 +10406,7 @@ const mx = {
|
|
|
10406
10406
|
"field-renderers": P(() => [
|
|
10407
10407
|
x(mn, { match: a }, {
|
|
10408
10408
|
default: P((r) => [
|
|
10409
|
-
x(mt,
|
|
10409
|
+
x(mt, We({ multiline: "" }, r, { rows: 3 }), null, 16)
|
|
10410
10410
|
]),
|
|
10411
10411
|
_: 1
|
|
10412
10412
|
})
|
|
@@ -10441,16 +10441,16 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10441
10441
|
);
|
|
10442
10442
|
}), (r, s) => (C(), Y(zt, { name: e.fieldName }, {
|
|
10443
10443
|
depends_on: P((u) => [
|
|
10444
|
-
x(Yt,
|
|
10444
|
+
x(Yt, We(u, {
|
|
10445
10445
|
items: o.value,
|
|
10446
10446
|
multiple: "",
|
|
10447
10447
|
required: !1
|
|
10448
10448
|
}), null, 16, ["items"])
|
|
10449
10449
|
]),
|
|
10450
10450
|
request: P((u) => [
|
|
10451
|
-
x(zt,
|
|
10451
|
+
x(zt, We(u, { "fields-order": ["url", "method", "headers", "query", "body", "http_opts", "error", "by_lua"] }), {
|
|
10452
10452
|
method: P((d) => [
|
|
10453
|
-
x(Yt,
|
|
10453
|
+
x(Yt, We(d, {
|
|
10454
10454
|
items: l(Zr)([
|
|
10455
10455
|
"GET",
|
|
10456
10456
|
"POST",
|
|
@@ -10515,7 +10515,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10515
10515
|
name: "cache"
|
|
10516
10516
|
}, {
|
|
10517
10517
|
redis: P((a) => [
|
|
10518
|
-
x(zt,
|
|
10518
|
+
x(zt, We(a, { "fields-order": [
|
|
10519
10519
|
"host",
|
|
10520
10520
|
"port",
|
|
10521
10521
|
"connection_is_proxied",
|
|
@@ -10567,7 +10567,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10567
10567
|
setup(e) {
|
|
10568
10568
|
const t = e, n = Pt();
|
|
10569
10569
|
xt(Ht, n == null ? void 0 : n[Gt]);
|
|
10570
|
-
const { i18n: { t: a } } =
|
|
10570
|
+
const { i18n: { t: a } } = Xe();
|
|
10571
10571
|
function o(d, f = !1) {
|
|
10572
10572
|
return d.reduce((c, { [ra]: p, name: m }) => (f ? c[m] = p : c[p] = m, c), {});
|
|
10573
10573
|
}
|
|
@@ -10616,7 +10616,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10616
10616
|
};
|
|
10617
10617
|
}), t.onFormChange(c, f);
|
|
10618
10618
|
}
|
|
10619
|
-
return (d, f) => (C(), Y(rn,
|
|
10619
|
+
return (d, f) => (C(), Y(rn, We(t, {
|
|
10620
10620
|
"form-config": s,
|
|
10621
10621
|
"on-form-change": u
|
|
10622
10622
|
}), {
|
|
@@ -10625,7 +10625,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10625
10625
|
match: ({ path: c }) => c.endsWith("by_lua")
|
|
10626
10626
|
}, {
|
|
10627
10627
|
default: P((c) => [
|
|
10628
|
-
x(mt,
|
|
10628
|
+
x(mt, We(c, {
|
|
10629
10629
|
autosize: "",
|
|
10630
10630
|
class: "rc-code",
|
|
10631
10631
|
multiline: "",
|
|
@@ -10638,7 +10638,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10638
10638
|
match: ({ path: c }) => ["cluster_nodes", "sentinel_nodes"].some((p) => c.endsWith(p))
|
|
10639
10639
|
}, {
|
|
10640
10640
|
default: P((c) => [
|
|
10641
|
-
x(jn,
|
|
10641
|
+
x(jn, We(c, { appearance: "card" }), null, 16)
|
|
10642
10642
|
]),
|
|
10643
10643
|
_: 1
|
|
10644
10644
|
}, 8, ["match"])
|
|
@@ -10689,7 +10689,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10689
10689
|
} : void 0
|
|
10690
10690
|
]), 1040),
|
|
10691
10691
|
Q("div", Rx, [
|
|
10692
|
-
(C(!0), te(Me, null,
|
|
10692
|
+
(C(!0), te(Me, null, Je(s.value, (g) => (C(), Y(l(ca), {
|
|
10693
10693
|
key: g.value,
|
|
10694
10694
|
"model-value": l(i).value.value,
|
|
10695
10695
|
"onUpdate:modelValue": [
|
|
@@ -10820,7 +10820,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10820
10820
|
}, null, 8, ["items", "label"])
|
|
10821
10821
|
]),
|
|
10822
10822
|
Q("div", Dx, [
|
|
10823
|
-
(C(!0), te(Me, null,
|
|
10823
|
+
(C(!0), te(Me, null, Je(i.value, (F, G) => (C(), te("div", {
|
|
10824
10824
|
key: l(r)(F, G)
|
|
10825
10825
|
}, [
|
|
10826
10826
|
x(E, {
|
|
@@ -10874,7 +10874,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
10874
10874
|
g.value.length > 0 ? (C(), te("div", Bx, [
|
|
10875
10875
|
Q("div", null, ne(l(t)("sp.start_with_a_use_case")), 1),
|
|
10876
10876
|
Q("div", zx, [
|
|
10877
|
-
(C(!0), te(Me, null,
|
|
10877
|
+
(C(!0), te(Me, null, Je(g.value, (F, G) => (C(), Y(b, {
|
|
10878
10878
|
key: `use-case-${G}`,
|
|
10879
10879
|
"max-width": "300"
|
|
10880
10880
|
}, {
|
|
@@ -11021,7 +11021,7 @@ const ra = Symbol(), Tx = /* @__PURE__ */ ge({
|
|
|
11021
11021
|
var r;
|
|
11022
11022
|
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, i);
|
|
11023
11023
|
}
|
|
11024
|
-
return (o, i) => (C(), Y(rn,
|
|
11024
|
+
return (o, i) => (C(), Y(rn, We(t, { "on-form-change": a }), {
|
|
11025
11025
|
default: P(() => [
|
|
11026
11026
|
x(Zx)
|
|
11027
11027
|
]),
|
|
@@ -11469,7 +11469,7 @@ const dE = {
|
|
|
11469
11469
|
default: P(() => [
|
|
11470
11470
|
Q("div", hE, [
|
|
11471
11471
|
we(ne(l(a)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
11472
|
-
(C(!0), te(Me, null,
|
|
11472
|
+
(C(!0), te(Me, null, Je(l(Rd), (F) => (C(), Y(l(Rn), {
|
|
11473
11473
|
key: F.id,
|
|
11474
11474
|
appearance: "secondary",
|
|
11475
11475
|
size: "small",
|
|
@@ -12619,7 +12619,7 @@ const [Bd, XE] = Nr(
|
|
|
12619
12619
|
clone: Fn,
|
|
12620
12620
|
onHistoryChange: (Z) => {
|
|
12621
12621
|
var ie, J;
|
|
12622
|
-
Z !== "clear" && ((J = n.onChange) == null || J.call(n,
|
|
12622
|
+
Z !== "clear" && ((J = n.onChange) == null || J.call(n, Ze(), Le(), Te(), (ie = a.value.cacheConfig) == null ? void 0 : ie.partial_id));
|
|
12623
12623
|
}
|
|
12624
12624
|
}), d = ae(!1), f = ae(/* @__PURE__ */ new Set());
|
|
12625
12625
|
function c() {
|
|
@@ -12857,7 +12857,7 @@ const [Bd, XE] = Nr(
|
|
|
12857
12857
|
he(be.id, !1);
|
|
12858
12858
|
ie && u.commit();
|
|
12859
12859
|
}
|
|
12860
|
-
function
|
|
12860
|
+
function Ze() {
|
|
12861
12861
|
var ie, J, be, re, ke;
|
|
12862
12862
|
const Z = [];
|
|
12863
12863
|
for (const Ke of a.value.nodes) {
|
|
@@ -13002,7 +13002,7 @@ const [Bd, XE] = Nr(
|
|
|
13002
13002
|
disconnectInEdges: Pe,
|
|
13003
13003
|
disconnectOutEdges: xe,
|
|
13004
13004
|
// serialization
|
|
13005
|
-
toConfigNodes:
|
|
13005
|
+
toConfigNodes: Ze,
|
|
13006
13006
|
toUINodes: Ce,
|
|
13007
13007
|
toUIGroups: Ee,
|
|
13008
13008
|
toUIData: Le,
|
|
@@ -14915,8 +14915,8 @@ var ct = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
14915
14915
|
function q(I) {
|
|
14916
14916
|
let L = Number.POSITIVE_INFINITY, B = 0, ee = Number.POSITIVE_INFINITY, oe = 0, le = I.graph(), pe = le.marginx || 0, se = le.marginy || 0;
|
|
14917
14917
|
function ue(ye) {
|
|
14918
|
-
let he = ye.x, Pe = ye.y, xe = ye.width,
|
|
14919
|
-
L = Math.min(L, he - xe / 2), B = Math.max(B, he + xe / 2), ee = Math.min(ee, Pe -
|
|
14918
|
+
let he = ye.x, Pe = ye.y, xe = ye.width, Ze = ye.height;
|
|
14919
|
+
L = Math.min(L, he - xe / 2), B = Math.max(B, he + xe / 2), ee = Math.min(ee, Pe - Ze / 2), oe = Math.max(oe, Pe + Ze / 2);
|
|
14920
14920
|
}
|
|
14921
14921
|
I.nodes().forEach((ye) => ue(I.node(ye))), I.edges().forEach((ye) => {
|
|
14922
14922
|
let he = I.edge(ye);
|
|
@@ -15104,12 +15104,12 @@ function DA(e) {
|
|
|
15104
15104
|
}
|
|
15105
15105
|
if (ye) {
|
|
15106
15106
|
if (!he) {
|
|
15107
|
-
const
|
|
15108
|
-
throw console.error(
|
|
15107
|
+
const Ze = `Expected node '${pe.id}' to have parent, but it does not`;
|
|
15108
|
+
throw console.error(Ze, pe), new Error(Ze);
|
|
15109
15109
|
}
|
|
15110
15110
|
} else {
|
|
15111
|
-
const
|
|
15112
|
-
throw console.error(
|
|
15111
|
+
const Ze = `Expected node '${le.id}' to have parent, but it does not`;
|
|
15112
|
+
throw console.error(Ze, le), new Error(Ze);
|
|
15113
15113
|
}
|
|
15114
15114
|
const Pe = H(ye), xe = H(he);
|
|
15115
15115
|
if (Pe) {
|
|
@@ -15623,7 +15623,7 @@ const [GA, HA] = Nr(
|
|
|
15623
15623
|
gaps: s = Gn.gaps
|
|
15624
15624
|
} = a, {
|
|
15625
15625
|
nodes: u = Gn.gaps.nodes
|
|
15626
|
-
} = s, d = ji(n), f = kt(), c = Qd(), p = is(), { i18n: { t: m } } =
|
|
15626
|
+
} = s, d = ji(n), f = kt(), c = Qd(), p = is(), { i18n: { t: m } } = Xe(), {
|
|
15627
15627
|
findNode: g,
|
|
15628
15628
|
fitView: y,
|
|
15629
15629
|
deleteKeyCode: w,
|
|
@@ -15673,7 +15673,7 @@ const [GA, HA] = Nr(
|
|
|
15673
15673
|
groupNodes: he,
|
|
15674
15674
|
branchEdges: Pe,
|
|
15675
15675
|
isBranchEdgeId: xe,
|
|
15676
|
-
updateGroupLayout:
|
|
15676
|
+
updateGroupLayout: Ze,
|
|
15677
15677
|
translateGroupTree: Ce,
|
|
15678
15678
|
getNodeDepth: Te,
|
|
15679
15679
|
maxGroupDepth: Ee
|
|
@@ -15755,16 +15755,16 @@ const [GA, HA] = Nr(
|
|
|
15755
15755
|
return;
|
|
15756
15756
|
const Be = W(Oe);
|
|
15757
15757
|
let Re = !1, ze = !1;
|
|
15758
|
-
const Ve = [],
|
|
15759
|
-
|
|
15760
|
-
|
|
15758
|
+
const Ve = [], it = [], Ye = (je == null ? void 0 : je.io) === "input" ? Be.filter((bt) => !bt.targetField) : Be.filter((bt) => !!bt.targetField);
|
|
15759
|
+
Ye.length > 0 && (Re = !0, Ye.forEach((bt) => {
|
|
15760
|
+
it.push(la(bt, R)), S(bt.id, !1);
|
|
15761
15761
|
}));
|
|
15762
15762
|
const gt = (je == null ? void 0 : je.io) === "input" ? je != null && je.field ? Be.filter((bt) => bt.targetField === je.field) : Be.filter((bt) => !!bt.targetField) : Be.filter((bt) => !bt.targetField);
|
|
15763
15763
|
if (gt.length > 0) {
|
|
15764
15764
|
if (gt.some((ln) => ln.source === ce && ln.target === Oe && ln.targetField === (je == null ? void 0 : je.field) && ln.sourceField === (Ie == null ? void 0 : Ie.field)))
|
|
15765
15765
|
return;
|
|
15766
15766
|
ze = !0, gt.forEach((ln) => {
|
|
15767
|
-
|
|
15767
|
+
it.push(la(ln, R)), S(ln.id, !1);
|
|
15768
15768
|
});
|
|
15769
15769
|
}
|
|
15770
15770
|
if (!K({
|
|
@@ -15793,7 +15793,7 @@ const [GA, HA] = Nr(
|
|
|
15793
15793
|
if (!await c(
|
|
15794
15794
|
m(Re ? "plugins.free-form.datakit.flow_editor.confirm.message.switch" : "plugins.free-form.datakit.flow_editor.confirm.message.override"),
|
|
15795
15795
|
Ve,
|
|
15796
|
-
|
|
15796
|
+
it
|
|
15797
15797
|
)) {
|
|
15798
15798
|
I();
|
|
15799
15799
|
return;
|
|
@@ -15824,12 +15824,12 @@ const [GA, HA] = Nr(
|
|
|
15824
15824
|
if (B(ce.id)) {
|
|
15825
15825
|
const Ve = ce.id;
|
|
15826
15826
|
le(Ve), Z(void 0);
|
|
15827
|
-
const
|
|
15828
|
-
if (!
|
|
15829
|
-
const
|
|
15827
|
+
const it = L.value.get(Ve);
|
|
15828
|
+
if (!it) return;
|
|
15829
|
+
const Ye = it.position ?? { ...ce.position }, gt = ce.position.x - Ye.x, Pn = ce.position.y - Ye.y;
|
|
15830
15830
|
Ce(Ve, ce.position, gt, Pn);
|
|
15831
|
-
const bt = ye.value.get(
|
|
15832
|
-
bt &&
|
|
15831
|
+
const bt = ye.value.get(it.ownerId);
|
|
15832
|
+
bt && Ze(bt.id, !1);
|
|
15833
15833
|
return;
|
|
15834
15834
|
}
|
|
15835
15835
|
const Oe = ce.id;
|
|
@@ -15849,14 +15849,14 @@ const [GA, HA] = Nr(
|
|
|
15849
15849
|
y: Ie.y,
|
|
15850
15850
|
width: ((Be = ce.dimensions) == null ? void 0 : Be.width) ?? 0,
|
|
15851
15851
|
height: ((Re = ce.dimensions) == null ? void 0 : Re.height) ?? 0
|
|
15852
|
-
},
|
|
15852
|
+
}, it = Fe && "clientX" in Fe ? M({ x: Fe.clientX, y: Fe.clientY }) : void 0, Ye = {
|
|
15853
15853
|
x: Ve.x + Ve.width / 2,
|
|
15854
15854
|
y: Ve.y + Ve.height / 2
|
|
15855
15855
|
};
|
|
15856
|
-
Z(
|
|
15856
|
+
Z(it ?? Ye);
|
|
15857
15857
|
}
|
|
15858
15858
|
const je = $e && B($e) ? $e : (ze = ye.value.get(Oe)) == null ? void 0 : ze.id;
|
|
15859
|
-
je &&
|
|
15859
|
+
je && Ze(je, !1);
|
|
15860
15860
|
}), h(({ node: ce }) => {
|
|
15861
15861
|
var je;
|
|
15862
15862
|
if (!ce) return;
|
|
@@ -15875,7 +15875,7 @@ const [GA, HA] = Nr(
|
|
|
15875
15875
|
}
|
|
15876
15876
|
H(Fe, $e, !1);
|
|
15877
15877
|
const Ie = Oe && B(Oe) ? Oe : (je = ye.value.get(Fe)) == null ? void 0 : je.id;
|
|
15878
|
-
Ie &&
|
|
15878
|
+
Ie && Ze(Ie, !1), Nn(Fe), ie(), q();
|
|
15879
15879
|
}), k((ce) => {
|
|
15880
15880
|
ce.filter(($e) => $e.type === "select").sort(($e, Ie) => $e.selected === Ie.selected ? 0 : $e.selected ? 1 : -1).forEach(($e) => {
|
|
15881
15881
|
xe($e.id) || (tp = $e.selected ? $e.id : void 0, A((Ie) => Ie.map((je) => je.id !== $e.id || !je.markerEnd ? je : Da({
|
|
@@ -15912,16 +15912,16 @@ const [GA, HA] = Nr(
|
|
|
15912
15912
|
);
|
|
15913
15913
|
}
|
|
15914
15914
|
function It(ce) {
|
|
15915
|
-
const Fe = G.value.filter(({ type:
|
|
15915
|
+
const Fe = G.value.filter(({ type: Ye }) => Ye !== "group"), Oe = Fe.find(({ id: Ye }) => Ye === ce);
|
|
15916
15916
|
if (!Oe) throw new Error(`Node ${ce} not found`);
|
|
15917
|
-
const { x: $e, y: Ie } = Oe.data.position, { width: je, height: Be } = Oe.dimensions, Re = Ie, ze = Ie + Be, Ve = Fe.filter(({ id:
|
|
15918
|
-
let
|
|
15919
|
-
for (const { left:
|
|
15920
|
-
if (!(gt <=
|
|
15921
|
-
if (
|
|
15922
|
-
|
|
15917
|
+
const { x: $e, y: Ie } = Oe.data.position, { width: je, height: Be } = Oe.dimensions, Re = Ie, ze = Ie + Be, Ve = Fe.filter(({ id: Ye }) => Ye !== ce).filter(({ data: { position: { y: Ye } }, dimensions: { height: gt } }) => Ye < ze && Ye + gt > Re).map(({ data: { position: { x: Ye } }, dimensions: { width: gt } }) => ({ left: Ye, right: Ye + gt })).sort((Ye, gt) => Ye.left - gt.left);
|
|
15918
|
+
let it = $e + je + u;
|
|
15919
|
+
for (const { left: Ye, right: gt } of Ve)
|
|
15920
|
+
if (!(gt <= it)) {
|
|
15921
|
+
if (it + je <= Ye) return { x: it, y: Re };
|
|
15922
|
+
it = Math.max(it, gt) + u;
|
|
15923
15923
|
}
|
|
15924
|
-
return { x:
|
|
15924
|
+
return { x: it, y: Re };
|
|
15925
15925
|
}
|
|
15926
15926
|
function zn(ce) {
|
|
15927
15927
|
if (!ce) return;
|
|
@@ -15930,11 +15930,11 @@ const [GA, HA] = Nr(
|
|
|
15930
15930
|
const {
|
|
15931
15931
|
position: { x: Oe },
|
|
15932
15932
|
dimensions: { width: $e }
|
|
15933
|
-
} = Fe, Ie = Oe + $e, { viewport: je, dimensions: Be, setViewport: Re } = d, { x: ze, y: Ve, zoom:
|
|
15933
|
+
} = Fe, Ie = Oe + $e, { viewport: je, dimensions: Be, setViewport: Re } = d, { x: ze, y: Ve, zoom: it } = je.value, { width: Ye } = Be.value, gt = Oe * it + ze, Pn = Ie * it + ze, bt = Ye - Wd - u;
|
|
15934
15934
|
if (Pn <= bt) return;
|
|
15935
15935
|
let ln = bt - Pn;
|
|
15936
15936
|
gt + ln < 0 && (ln = -gt), ln !== 0 && Re(
|
|
15937
|
-
{ x: ze + ln, y: Ve, zoom:
|
|
15937
|
+
{ x: ze + ln, y: Ve, zoom: it },
|
|
15938
15938
|
{ duration: mA }
|
|
15939
15939
|
);
|
|
15940
15940
|
}
|
|
@@ -16106,7 +16106,7 @@ const QA = {
|
|
|
16106
16106
|
class: "target-boxes",
|
|
16107
16107
|
style: si(d.value)
|
|
16108
16108
|
}, [
|
|
16109
|
-
(C(!0), te(Me, null,
|
|
16109
|
+
(C(!0), te(Me, null, Je(p.value, (w, _) => (C(), Y(l(yn), {
|
|
16110
16110
|
key: w.key,
|
|
16111
16111
|
class: "target-box-wrapper",
|
|
16112
16112
|
"kpop-attributes": n,
|
|
@@ -16427,7 +16427,7 @@ const QA = {
|
|
|
16427
16427
|
}, null, 8, ["color", "position"])) : me("", !0)
|
|
16428
16428
|
])
|
|
16429
16429
|
]),
|
|
16430
|
-
p.value && w.value ? (C(!0), te(Me, { key: 0 },
|
|
16430
|
+
p.value && w.value ? (C(!0), te(Me, { key: 0 }, Je(e.data.fields.input, (X, D) => (C(), te("div", {
|
|
16431
16431
|
key: `inputs-${X.id}`,
|
|
16432
16432
|
class: "handle indented"
|
|
16433
16433
|
}, [
|
|
@@ -16496,7 +16496,7 @@ const QA = {
|
|
|
16496
16496
|
targets: z.value.get("output")
|
|
16497
16497
|
}, null, 8, ["reversed", "targets"])) : me("", !0)
|
|
16498
16498
|
]),
|
|
16499
|
-
m.value && _.value ? (C(!0), te(Me, { key: 0 },
|
|
16499
|
+
m.value && _.value ? (C(!0), te(Me, { key: 0 }, Je(e.data.fields.output, (X, D) => (C(), te("div", {
|
|
16500
16500
|
key: `outputs-${X.id}`,
|
|
16501
16501
|
class: "handle indented"
|
|
16502
16502
|
}, [
|
|
@@ -16522,7 +16522,7 @@ const QA = {
|
|
|
16522
16522
|
]))), 128)) : me("", !0)
|
|
16523
16523
|
], 2)) : me("", !0),
|
|
16524
16524
|
E.value ? (C(), te("div", yI, [
|
|
16525
|
-
(C(!0), te(Me, null,
|
|
16525
|
+
(C(!0), te(Me, null, Je(h.value, (X) => (C(), te("div", {
|
|
16526
16526
|
key: `branch-${X}`,
|
|
16527
16527
|
class: "handle"
|
|
16528
16528
|
}, [
|
|
@@ -16568,7 +16568,7 @@ const QA = {
|
|
|
16568
16568
|
},
|
|
16569
16569
|
emits: ["initialized", "nodes-change"],
|
|
16570
16570
|
setup(e, { expose: t, emit: n }) {
|
|
16571
|
-
const a = n, o = lt("flowCanvas"), i = ni(o), { i18n: { t: r } } =
|
|
16571
|
+
const a = n, o = lt("flowCanvas"), i = ni(o), { i18n: { t: r } } = Xe(), {
|
|
16572
16572
|
vueFlowStore: s,
|
|
16573
16573
|
editorStore: u,
|
|
16574
16574
|
autoLayout: d,
|
|
@@ -16711,7 +16711,7 @@ const QA = {
|
|
|
16711
16711
|
"show-zoom": !1
|
|
16712
16712
|
}, {
|
|
16713
16713
|
default: P(() => [
|
|
16714
|
-
(C(!0), te(Me, null,
|
|
16714
|
+
(C(!0), te(Me, null, Je(X.value, (B) => (C(), Y(l(yn), {
|
|
16715
16715
|
key: B.name,
|
|
16716
16716
|
placement: "right",
|
|
16717
16717
|
text: l(r)(`plugins.free-form.datakit.flow_editor.actions.${B.name}`)
|
|
@@ -16747,13 +16747,13 @@ const QA = {
|
|
|
16747
16747
|
setup(e) {
|
|
16748
16748
|
const { t } = Ft("en-us", Rt), n = ae(!1), a = ae(!1), { responsePanelCollapsed: o } = Mo(), { state: i, configNodeCounts: r, clearPendingLayout: s, setPendingFitView: u, commit: d, clear: f, portalSelection: c } = kt(), p = Ea(), m = `${p}-request`, g = `${p}-response`, y = ji(m), w = ji(g);
|
|
16749
16749
|
function _(pe, se) {
|
|
16750
|
-
const { onPaneClick: ue, onNodesChange: ye, onEdgesChange: he, getSelectedNodes: Pe, getSelectedEdges: xe } = pe, { removeSelectedElements:
|
|
16750
|
+
const { onPaneClick: ue, onNodesChange: ye, onEdgesChange: he, getSelectedNodes: Pe, getSelectedEdges: xe } = pe, { removeSelectedElements: Ze } = se;
|
|
16751
16751
|
function Ce(Te) {
|
|
16752
16752
|
if (!Te) {
|
|
16753
|
-
|
|
16753
|
+
Ze();
|
|
16754
16754
|
return;
|
|
16755
16755
|
}
|
|
16756
|
-
Te.some((Ee) => Ee.type === "select") && Pe.value.length + xe.value.length > 0 &&
|
|
16756
|
+
Te.some((Ee) => Ee.type === "select") && Pe.value.length + xe.value.length > 0 && Ze();
|
|
16757
16757
|
}
|
|
16758
16758
|
ye(Ce), he(Ce), ue(() => Ce());
|
|
16759
16759
|
}
|
|
@@ -16913,7 +16913,7 @@ const QA = {
|
|
|
16913
16913
|
},
|
|
16914
16914
|
emits: ["cancel", "confirm"],
|
|
16915
16915
|
setup(e, { expose: t, emit: n }) {
|
|
16916
|
-
const { i18n: { t: a } } =
|
|
16916
|
+
const { i18n: { t: a } } = Xe(), o = n, i = ae(!1), r = ae(e.message), s = ae(e.addedConnections ?? []), u = ae(e.removedConnections ?? []);
|
|
16917
16917
|
let d = null;
|
|
16918
16918
|
function f() {
|
|
16919
16919
|
i.value = !1, o("cancel"), d == null || d(!1);
|
|
@@ -16945,14 +16945,14 @@ const QA = {
|
|
|
16945
16945
|
Q("p", null, ne(r.value), 1),
|
|
16946
16946
|
Q("p", null, ne(l(a)("plugins.free-form.datakit.flow_editor.confirm.message.confirm")), 1),
|
|
16947
16947
|
Q("div", NI, [
|
|
16948
|
-
(C(!0), te(Me, null,
|
|
16948
|
+
(C(!0), te(Me, null, Je(s.value ?? [], ([w, _]) => (C(), te("div", {
|
|
16949
16949
|
key: `${w}-${_}`,
|
|
16950
16950
|
class: "connection"
|
|
16951
16951
|
}, [
|
|
16952
16952
|
x(l(pn), { color: l(ow) }, null, 8, ["color"]),
|
|
16953
16953
|
we(" " + ne(w) + " → " + ne(_), 1)
|
|
16954
16954
|
]))), 128)),
|
|
16955
|
-
(C(!0), te(Me, null,
|
|
16955
|
+
(C(!0), te(Me, null, Je(u.value ?? [], ([w, _]) => (C(), te("div", {
|
|
16956
16956
|
key: `${w}-${_}`,
|
|
16957
16957
|
class: "connection"
|
|
16958
16958
|
}, [
|
|
@@ -16982,7 +16982,7 @@ const QA = {
|
|
|
16982
16982
|
}
|
|
16983
16983
|
return (d, f) => (C(), te("nav", RI, [
|
|
16984
16984
|
Q("div", MI, [
|
|
16985
|
-
(C(), te(Me, null,
|
|
16985
|
+
(C(), te(Me, null, Je(o, ({ label: c, to: p, icon: m, onClick: g }) => x(l(yn), {
|
|
16986
16986
|
key: c,
|
|
16987
16987
|
"kpop-attributes": { offset: "10px" },
|
|
16988
16988
|
label: c,
|
|
@@ -17157,7 +17157,7 @@ const QA = {
|
|
|
17157
17157
|
width: 240
|
|
17158
17158
|
}, {
|
|
17159
17159
|
items: P(() => [
|
|
17160
|
-
(C(!0), te(Me, null,
|
|
17160
|
+
(C(!0), te(Me, null, Je(l(Rd), (g) => (C(), Y(l(Ga), {
|
|
17161
17161
|
key: g.id,
|
|
17162
17162
|
onClick: (y) => d(g)
|
|
17163
17163
|
}, {
|
|
@@ -17298,13 +17298,13 @@ const QA = {
|
|
|
17298
17298
|
}, 8, ["info"])
|
|
17299
17299
|
])),
|
|
17300
17300
|
Q("div", nT, [
|
|
17301
|
-
(C(!0), te(Me, null,
|
|
17301
|
+
(C(!0), te(Me, null, Je(o.value, (p) => (C(), te("section", {
|
|
17302
17302
|
key: p.id,
|
|
17303
17303
|
class: "node-group"
|
|
17304
17304
|
}, [
|
|
17305
17305
|
Q("h4", iT, ne(p.title), 1),
|
|
17306
17306
|
Q("div", aT, [
|
|
17307
|
-
(C(!0), te(Me, null,
|
|
17307
|
+
(C(!0), te(Me, null, Je(p.nodes, (m) => (C(), Y(QI, {
|
|
17308
17308
|
key: m.type,
|
|
17309
17309
|
type: m.type,
|
|
17310
17310
|
onDragstart: u
|
|
@@ -17393,7 +17393,7 @@ const uT = /* @__PURE__ */ ge({
|
|
|
17393
17393
|
},
|
|
17394
17394
|
emits: ["proceed", "cancel"],
|
|
17395
17395
|
setup(e, { emit: t }) {
|
|
17396
|
-
const n = t, { i18n: { t: a } } =
|
|
17396
|
+
const n = t, { i18n: { t: a } } = Qe.useI18n(), o = _t(Bi), i = ae(e.secretName || ""), r = ae(""), s = V(() => i.value.trim() ? e.validateName(i.value.trim(), e.isEditing) === void 0 : !1), u = V(() => !s.value), d = () => {
|
|
17397
17397
|
const m = i.value.trim(), g = e.validateName(m, e.isEditing);
|
|
17398
17398
|
return r.value = g || "", g === void 0;
|
|
17399
17399
|
}, f = () => {
|
|
@@ -17471,7 +17471,7 @@ const uT = /* @__PURE__ */ ge({
|
|
|
17471
17471
|
entries: o,
|
|
17472
17472
|
addEntry: i,
|
|
17473
17473
|
removeEntry: r
|
|
17474
|
-
} = ns(n, a), s = ae(null), u = ae(null), { i18n: { t: d } } =
|
|
17474
|
+
} = ns(n, a), s = ae(null), u = ae(null), { i18n: { t: d } } = Qe.useI18n(), f = V(() => new Set(o.value.map((_) => _.key))), c = () => {
|
|
17475
17475
|
const _ = i();
|
|
17476
17476
|
u.value = _, s.value = _;
|
|
17477
17477
|
}, p = () => {
|
|
@@ -17514,7 +17514,7 @@ const uT = /* @__PURE__ */ ge({
|
|
|
17514
17514
|
_: 1
|
|
17515
17515
|
}),
|
|
17516
17516
|
Q("div", pT, [
|
|
17517
|
-
(C(!0), te(Me, null,
|
|
17517
|
+
(C(!0), te(Me, null, Je(l(o), (F) => (C(), te(Me, {
|
|
17518
17518
|
key: F.id
|
|
17519
17519
|
}, [
|
|
17520
17520
|
F.key ? (C(), te("div", fT, [
|
|
@@ -17616,7 +17616,7 @@ const _T = { class: "dk-cache-panel" }, bT = { class: "title" }, wT = {
|
|
|
17616
17616
|
setup(e, { emit: t }) {
|
|
17617
17617
|
const n = t, { getDefault: a, formData: o } = dt(), i = Mt("cache");
|
|
17618
17618
|
if (i.error) throw new Error("No cache schema");
|
|
17619
|
-
const r = ae(!1), { i18n: { t: s } } =
|
|
17619
|
+
const r = ae(!1), { i18n: { t: s } } = Qe.useI18n(), u = V(() => !(d.value === "redis" && !o.cache.partial_id && !o.cache.redis)), d = V(() => {
|
|
17620
17620
|
var h;
|
|
17621
17621
|
return (h = i.value.value) == null ? void 0 : h.strategy;
|
|
17622
17622
|
}), f = V(() => {
|
|
@@ -17969,35 +17969,35 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
17969
17969
|
if (!t) return !1;
|
|
17970
17970
|
const [, n, a] = t;
|
|
17971
17971
|
return eu.safeParse(n).success && BT.safeParse(a).success;
|
|
17972
|
-
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'),
|
|
17973
|
-
body:
|
|
17974
|
-
headers:
|
|
17975
|
-
http_proxy:
|
|
17976
|
-
https_proxy:
|
|
17977
|
-
proxy_auth_password:
|
|
17978
|
-
proxy_auth_username:
|
|
17979
|
-
query:
|
|
17980
|
-
url:
|
|
17972
|
+
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), tt = GT.nullish(), HT = U.object({
|
|
17973
|
+
body: tt,
|
|
17974
|
+
headers: tt,
|
|
17975
|
+
http_proxy: tt,
|
|
17976
|
+
https_proxy: tt,
|
|
17977
|
+
proxy_auth_password: tt,
|
|
17978
|
+
proxy_auth_username: tt,
|
|
17979
|
+
query: tt,
|
|
17980
|
+
url: tt
|
|
17981
17981
|
}).partial().strict(), WT = U.object({
|
|
17982
|
-
headers:
|
|
17983
|
-
body:
|
|
17982
|
+
headers: tt,
|
|
17983
|
+
body: tt
|
|
17984
17984
|
}).partial().strict(), YT = U.object({
|
|
17985
|
-
data:
|
|
17986
|
-
key:
|
|
17987
|
-
ttl:
|
|
17985
|
+
data: tt,
|
|
17986
|
+
key: tt,
|
|
17987
|
+
ttl: tt
|
|
17988
17988
|
}).partial().strict(), JT = U.object({
|
|
17989
|
-
claims:
|
|
17990
|
-
key:
|
|
17989
|
+
claims: tt,
|
|
17990
|
+
key: tt
|
|
17991
17991
|
}).partial().strict(), XT = U.object({
|
|
17992
|
-
key:
|
|
17993
|
-
token:
|
|
17992
|
+
key: tt,
|
|
17993
|
+
token: tt
|
|
17994
17994
|
}).partial().strict(), sp = U.enum(jd), lp = U.enum(cs), gn = U.object({
|
|
17995
17995
|
type: U.string(),
|
|
17996
17996
|
name: ho,
|
|
17997
|
-
input:
|
|
17998
|
-
inputs: U.record(U.string().min(1).max(255),
|
|
17999
|
-
output:
|
|
18000
|
-
outputs: U.record(U.string().min(1).max(255),
|
|
17997
|
+
input: tt,
|
|
17998
|
+
inputs: U.record(U.string().min(1).max(255), tt).nullish(),
|
|
17999
|
+
output: tt,
|
|
18000
|
+
outputs: U.record(U.string().min(1).max(255), tt).nullish()
|
|
18001
18001
|
}).loose().superRefine((e, t) => {
|
|
18002
18002
|
ap(e, t);
|
|
18003
18003
|
}), ZT = U.object({ type: U.string(), name: U.string() }).loose().superRefine((e, t) => {
|
|
@@ -18037,10 +18037,10 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18037
18037
|
url: U.url().nullish(),
|
|
18038
18038
|
inputs: HT.nullish(),
|
|
18039
18039
|
outputs: U.object({
|
|
18040
|
-
body:
|
|
18041
|
-
headers:
|
|
18042
|
-
raw_body:
|
|
18043
|
-
status:
|
|
18040
|
+
body: tt,
|
|
18041
|
+
headers: tt,
|
|
18042
|
+
raw_body: tt,
|
|
18043
|
+
status: tt
|
|
18044
18044
|
}).partial().nullish()
|
|
18045
18045
|
}).strict(), eS = gn.safeExtend({
|
|
18046
18046
|
type: U.literal("exit"),
|
|
@@ -18100,7 +18100,7 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18100
18100
|
attributes_name_prefix: U.string().min(1).max(32).nullish(),
|
|
18101
18101
|
root_element_name: U.string().min(1).max(64).nullish(),
|
|
18102
18102
|
text_block_name: U.string().min(1).max(32).nullish().default("#text"),
|
|
18103
|
-
inputs: U.record(U.string().min(1).max(255),
|
|
18103
|
+
inputs: U.record(U.string().min(1).max(255), tt).nullish(),
|
|
18104
18104
|
outputs: U.never().nullish()
|
|
18105
18105
|
}).strict().superRefine((e, t) => {
|
|
18106
18106
|
!e.attributes_block_name && !e.attributes_name_prefix && (t.addIssue({
|
|
@@ -18116,9 +18116,9 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18116
18116
|
type: U.literal("jwt_decode"),
|
|
18117
18117
|
inputs: U.never().nullish(),
|
|
18118
18118
|
outputs: U.object({
|
|
18119
|
-
header:
|
|
18120
|
-
payload:
|
|
18121
|
-
signature:
|
|
18119
|
+
header: tt,
|
|
18120
|
+
payload: tt,
|
|
18121
|
+
signature: tt
|
|
18122
18122
|
}).partial().nullish()
|
|
18123
18123
|
}).strict(), oS = gn.safeExtend({
|
|
18124
18124
|
type: U.literal("jwt_sign"),
|
|
@@ -18128,9 +18128,9 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18128
18128
|
kid: U.string().nullish(),
|
|
18129
18129
|
not_before: U.number().int().default(0).nullish(),
|
|
18130
18130
|
outputs: U.object({
|
|
18131
|
-
claims:
|
|
18132
|
-
header:
|
|
18133
|
-
token:
|
|
18131
|
+
claims: tt,
|
|
18132
|
+
header: tt,
|
|
18133
|
+
token: tt
|
|
18134
18134
|
}).partial().nullish(),
|
|
18135
18135
|
static_claims: U.record(U.string(), U.string()).default({}).nullish(),
|
|
18136
18136
|
typ: U.string().default("JWT").nullish()
|
|
@@ -18142,8 +18142,8 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18142
18142
|
issuers: U.array(U.string()).default([]).nullish(),
|
|
18143
18143
|
leeway: U.number().int().default(0).nullish(),
|
|
18144
18144
|
outputs: U.object({
|
|
18145
|
-
claims:
|
|
18146
|
-
header:
|
|
18145
|
+
claims: tt,
|
|
18146
|
+
header: tt
|
|
18147
18147
|
}).partial().nullish(),
|
|
18148
18148
|
required_claims: U.array(U.string()).default([]).nullish(),
|
|
18149
18149
|
validate_exp: U.boolean().default(!0).nullish(),
|
|
@@ -18172,10 +18172,10 @@ const GT = U.string().min(1).max(255).refine((e) => {
|
|
|
18172
18172
|
bypass_on_error: U.boolean().nullish(),
|
|
18173
18173
|
inputs: YT.nullish(),
|
|
18174
18174
|
outputs: U.object({
|
|
18175
|
-
data:
|
|
18176
|
-
hit:
|
|
18177
|
-
miss:
|
|
18178
|
-
stored:
|
|
18175
|
+
data: tt,
|
|
18176
|
+
hit: tt,
|
|
18177
|
+
miss: tt,
|
|
18178
|
+
stored: tt
|
|
18179
18179
|
}).partial().nullish(),
|
|
18180
18180
|
/** Cache entry time-to-live in seconds. */
|
|
18181
18181
|
ttl: U.number().int().gt(0).nullish()
|
|
@@ -18490,7 +18490,7 @@ const hn = U.object({
|
|
|
18490
18490
|
},
|
|
18491
18491
|
emits: ["change:inputs"],
|
|
18492
18492
|
setup(e) {
|
|
18493
|
-
const { getSchema: t } = dt(), { i18n: n } =
|
|
18493
|
+
const { getSchema: t } = dt(), { i18n: n } = Xe(), a = V(() => {
|
|
18494
18494
|
const o = t("inputs");
|
|
18495
18495
|
if (!o)
|
|
18496
18496
|
return [];
|
|
@@ -18506,7 +18506,7 @@ const hn = U.object({
|
|
|
18506
18506
|
"reset-label-path": "isolate"
|
|
18507
18507
|
}, {
|
|
18508
18508
|
default: P(() => [
|
|
18509
|
-
(C(!0), te(Me, null,
|
|
18509
|
+
(C(!0), te(Me, null, Je(a.value, (r) => (C(), Y(Yt, {
|
|
18510
18510
|
key: r,
|
|
18511
18511
|
clearable: "",
|
|
18512
18512
|
"enable-filtering": "",
|
|
@@ -18518,7 +18518,7 @@ const hn = U.object({
|
|
|
18518
18518
|
o.$slots["item-label"] ? {
|
|
18519
18519
|
name: "item-label",
|
|
18520
18520
|
fn: P((s) => [
|
|
18521
|
-
|
|
18521
|
+
et(o.$slots, "item-label", We({ ref_for: !0 }, s))
|
|
18522
18522
|
]),
|
|
18523
18523
|
key: "0"
|
|
18524
18524
|
} : void 0
|
|
@@ -18552,7 +18552,7 @@ const hn = U.object({
|
|
|
18552
18552
|
addEntry: i,
|
|
18553
18553
|
removeEntry: r,
|
|
18554
18554
|
field: s
|
|
18555
|
-
} = ns(n, a), { i18n: { t: u } } =
|
|
18555
|
+
} = ns(n, a), { i18n: { t: u } } = Xe(), d = lt("root"), f = ae(null), c = ae({});
|
|
18556
18556
|
let p;
|
|
18557
18557
|
async function m(k, b = "key") {
|
|
18558
18558
|
var O;
|
|
@@ -18610,7 +18610,7 @@ const hn = U.object({
|
|
|
18610
18610
|
ref: d,
|
|
18611
18611
|
class: "dk-inputs-map-field"
|
|
18612
18612
|
}, [
|
|
18613
|
-
(C(!0), te(Me, null,
|
|
18613
|
+
(C(!0), te(Me, null, Je(l(o), ($, M) => (C(), te("div", {
|
|
18614
18614
|
key: $.id,
|
|
18615
18615
|
class: "dk-inputs-map-field-entry",
|
|
18616
18616
|
"data-testid": `ff-kv-container-${l(s).path.value}.${M}`
|
|
@@ -18655,7 +18655,7 @@ const hn = U.object({
|
|
|
18655
18655
|
k.$slots["item-label"] ? {
|
|
18656
18656
|
name: "item-template",
|
|
18657
18657
|
fn: P(({ item: N }) => [
|
|
18658
|
-
|
|
18658
|
+
et(k.$slots, "item-label", We({ ref_for: !0 }, N), void 0, !0)
|
|
18659
18659
|
]),
|
|
18660
18660
|
key: "0"
|
|
18661
18661
|
} : void 0
|
|
@@ -18717,7 +18717,7 @@ const hn = U.object({
|
|
|
18717
18717
|
},
|
|
18718
18718
|
emits: ["change:input", "change:inputs", "add:field", "remove:field", "rename:field"],
|
|
18719
18719
|
setup(e, { emit: t }) {
|
|
18720
|
-
const n = t, { getSchema: a } = dt(), { i18n: { t: o } } =
|
|
18720
|
+
const n = t, { getSchema: a } = dt(), { i18n: { t: o } } = Xe(), i = V(() => a("inputs")), r = V(() => i.value ? i.value.type === "record" ? nu : BS : null);
|
|
18721
18721
|
function s(p) {
|
|
18722
18722
|
n("change:input", p ? p.value : null);
|
|
18723
18723
|
}
|
|
@@ -18758,7 +18758,7 @@ const hn = U.object({
|
|
|
18758
18758
|
onChange: s
|
|
18759
18759
|
}, {
|
|
18760
18760
|
"item-label": P((g) => [
|
|
18761
|
-
|
|
18761
|
+
et(p.$slots, "item-label", Kt(Zt(g)), () => [
|
|
18762
18762
|
x(vo, { item: g }, null, 8, ["item"])
|
|
18763
18763
|
], !0)
|
|
18764
18764
|
]),
|
|
@@ -18776,7 +18776,7 @@ const hn = U.object({
|
|
|
18776
18776
|
]),
|
|
18777
18777
|
_: 1
|
|
18778
18778
|
})) : me("", !0),
|
|
18779
|
-
r.value ? (C(), Y(l(r),
|
|
18779
|
+
r.value ? (C(), Y(l(r), We({
|
|
18780
18780
|
key: 3,
|
|
18781
18781
|
items: e.items,
|
|
18782
18782
|
"key-order": e.fieldNames,
|
|
@@ -18950,13 +18950,13 @@ function wn(...e) {
|
|
|
18950
18950
|
};
|
|
18951
18951
|
}
|
|
18952
18952
|
function Sn(e) {
|
|
18953
|
-
const { i18n: { t } } =
|
|
18953
|
+
const { i18n: { t } } = Xe(), n = () => e ? typeof e == "string" ? e : t("plugins.free-form.datakit.flow_editor.node_properties.errors.not_empty", e) : "Field is required";
|
|
18954
18954
|
return function(o) {
|
|
18955
18955
|
if (o == null || typeof o == "string" && o.trim() === "") return n();
|
|
18956
18956
|
};
|
|
18957
18957
|
}
|
|
18958
18958
|
function gp(e, t) {
|
|
18959
|
-
const { i18n: { t: n } } =
|
|
18959
|
+
const { i18n: { t: n } } = Xe();
|
|
18960
18960
|
return function(o) {
|
|
18961
18961
|
if (o != null)
|
|
18962
18962
|
switch (e) {
|
|
@@ -18979,7 +18979,7 @@ function gp(e, t) {
|
|
|
18979
18979
|
};
|
|
18980
18980
|
}
|
|
18981
18981
|
function Mn(e = 0, t = 1 / 0, n) {
|
|
18982
|
-
const { i18n: { t: a } } =
|
|
18982
|
+
const { i18n: { t: a } } = Xe();
|
|
18983
18983
|
return function(i) {
|
|
18984
18984
|
if (i != null && typeof i == "string" && (i.length < e || i.length > t))
|
|
18985
18985
|
return n ? typeof n == "string" ? n : a("plugins.free-form.datakit.flow_editor.node_properties.errors.string_len_range", {
|
|
@@ -18990,14 +18990,14 @@ function Mn(e = 0, t = 1 / 0, n) {
|
|
|
18990
18990
|
};
|
|
18991
18991
|
}
|
|
18992
18992
|
function hp(e) {
|
|
18993
|
-
const { i18n: { t } } =
|
|
18993
|
+
const { i18n: { t } } = Xe();
|
|
18994
18994
|
return function(a) {
|
|
18995
18995
|
if (!eO(a))
|
|
18996
18996
|
return e ? typeof e == "string" ? e : t("plugins.free-form.datakit.flow_editor.node_properties.errors.not_number", e) : "Value must be a number";
|
|
18997
18997
|
};
|
|
18998
18998
|
}
|
|
18999
18999
|
function Ui(e, t) {
|
|
19000
|
-
const { i18n: { t: n } } =
|
|
19000
|
+
const { i18n: { t: n } } = Xe();
|
|
19001
19001
|
return function(o) {
|
|
19002
19002
|
if (o == null) return;
|
|
19003
19003
|
const i = hp(t)(o);
|
|
@@ -19018,7 +19018,7 @@ function Ui(e, t) {
|
|
|
19018
19018
|
};
|
|
19019
19019
|
}
|
|
19020
19020
|
function _s(e = -1 / 0, t = 1 / 0, n) {
|
|
19021
|
-
const { i18n: { t: a } } =
|
|
19021
|
+
const { i18n: { t: a } } = Xe();
|
|
19022
19022
|
return function(i) {
|
|
19023
19023
|
if (i == null) return;
|
|
19024
19024
|
const r = hp(n)(i);
|
|
@@ -19033,14 +19033,14 @@ function _s(e = -1 / 0, t = 1 / 0, n) {
|
|
|
19033
19033
|
};
|
|
19034
19034
|
}
|
|
19035
19035
|
function tO(e, t) {
|
|
19036
|
-
const { state: n } = kt(), { i18n: { t: a } } =
|
|
19036
|
+
const { state: n } = kt(), { i18n: { t: a } } = Xe();
|
|
19037
19037
|
return function(i) {
|
|
19038
19038
|
if (n.value.nodes.some((r) => r.name === i && r.id !== e))
|
|
19039
19039
|
return t ? typeof t == "string" ? t : a("plugins.free-form.datakit.flow_editor.node_properties.errors.not_unique", t) : "Name must be unique.";
|
|
19040
19040
|
};
|
|
19041
19041
|
}
|
|
19042
19042
|
function nO(e, t, n) {
|
|
19043
|
-
const { i18n: { t: a } } =
|
|
19043
|
+
const { i18n: { t: a } } = Xe();
|
|
19044
19044
|
return function(i) {
|
|
19045
19045
|
if (!t) return;
|
|
19046
19046
|
if (n ? t.fields[e].some((s) => s.name === i && s.id !== n) : t.fields[e].some((s) => s.name === i)) {
|
|
@@ -19050,14 +19050,14 @@ function nO(e, t, n) {
|
|
|
19050
19050
|
};
|
|
19051
19051
|
}
|
|
19052
19052
|
function iO() {
|
|
19053
|
-
const { i18n: { t: e } } =
|
|
19053
|
+
const { i18n: { t: e } } = Xe();
|
|
19054
19054
|
return function(n) {
|
|
19055
19055
|
if (ms(n))
|
|
19056
19056
|
return e("plugins.free-form.datakit.flow_editor.node_properties.errors.reserved_node_name", { nodeName: n });
|
|
19057
19057
|
};
|
|
19058
19058
|
}
|
|
19059
19059
|
function vp(e) {
|
|
19060
|
-
const { i18n: { t } } =
|
|
19060
|
+
const { i18n: { t } } = Xe(), n = { fieldName: t("plugins.free-form.datakit.flow_editor.node_properties.name") };
|
|
19061
19061
|
return wn(
|
|
19062
19062
|
Sn(n),
|
|
19063
19063
|
gp("identifier", n),
|
|
@@ -19066,7 +19066,7 @@ function vp(e) {
|
|
|
19066
19066
|
);
|
|
19067
19067
|
}
|
|
19068
19068
|
function aO(e) {
|
|
19069
|
-
const { i18n: { t } } =
|
|
19069
|
+
const { i18n: { t } } = Xe(), { getNodeById: n } = kt();
|
|
19070
19070
|
return function(o, i, r) {
|
|
19071
19071
|
const s = {
|
|
19072
19072
|
fieldName: t(o === "input" ? "plugins.free-form.datakit.flow_editor.node_properties.input_name.label" : "plugins.free-form.datakit.flow_editor.node_properties.output_value.value_name")
|
|
@@ -19175,7 +19175,7 @@ function tn(e, t) {
|
|
|
19175
19175
|
invalidConfigNodeIds: c,
|
|
19176
19176
|
commit: p,
|
|
19177
19177
|
revert: m
|
|
19178
|
-
} = kt(), { i18n: { t: g } } =
|
|
19178
|
+
} = kt(), { i18n: { t: g } } = Xe(), y = ep(), w = V(() => {
|
|
19179
19179
|
const j = o(e);
|
|
19180
19180
|
if (!j) throw new Error("Node not existed");
|
|
19181
19181
|
return j;
|
|
@@ -19363,7 +19363,7 @@ const vn = /* @__PURE__ */ ge({
|
|
|
19363
19363
|
},
|
|
19364
19364
|
emits: ["update"],
|
|
19365
19365
|
setup(e, { emit: t }) {
|
|
19366
|
-
const n = e, a = t, { i18n: { t: o } } =
|
|
19366
|
+
const n = e, a = t, { i18n: { t: o } } = Xe(), i = ae(n.name), r = V(() => {
|
|
19367
19367
|
const f = n.validate(i.value.trim());
|
|
19368
19368
|
return f === void 0 ? "" : f;
|
|
19369
19369
|
});
|
|
@@ -19401,7 +19401,7 @@ const vn = /* @__PURE__ */ ge({
|
|
|
19401
19401
|
nodeId: {}
|
|
19402
19402
|
},
|
|
19403
19403
|
setup(e) {
|
|
19404
|
-
const { i18n: { t } } =
|
|
19404
|
+
const { i18n: { t } } = Xe(), n = lt("form"), a = nn("call"), {
|
|
19405
19405
|
formData: o,
|
|
19406
19406
|
setName: i,
|
|
19407
19407
|
setConfig: r,
|
|
@@ -19560,7 +19560,7 @@ const vn = /* @__PURE__ */ ge({
|
|
|
19560
19560
|
nodeId: {}
|
|
19561
19561
|
},
|
|
19562
19562
|
setup(e) {
|
|
19563
|
-
const { i18n: { t }, i18nT: n } =
|
|
19563
|
+
const { i18n: { t }, i18nT: n } = Xe(), a = lt("form"), o = nn("jq"), {
|
|
19564
19564
|
formData: i,
|
|
19565
19565
|
setName: r,
|
|
19566
19566
|
setConfig: s,
|
|
@@ -19672,7 +19672,7 @@ const vn = /* @__PURE__ */ ge({
|
|
|
19672
19672
|
},
|
|
19673
19673
|
emits: ["change:value", "add:field", "rename:field", "remove:field"],
|
|
19674
19674
|
setup(e, { emit: t }) {
|
|
19675
|
-
const n = e, a = t, o = ae({}), { value: i, ...r } = Mt("values"), { i18n: s } =
|
|
19675
|
+
const n = e, a = t, o = ae({}), { value: i, ...r } = Mt("values"), { i18n: s } = Xe(), u = lt("root"), d = ae([]), f = ae(null);
|
|
19676
19676
|
let c = "", p = i == null ? void 0 : i.value;
|
|
19677
19677
|
function m() {
|
|
19678
19678
|
return Oa("ff-kv-field-");
|
|
@@ -19787,7 +19787,7 @@ const vn = /* @__PURE__ */ ge({
|
|
|
19787
19787
|
]),
|
|
19788
19788
|
_: 1
|
|
19789
19789
|
}),
|
|
19790
|
-
(C(!0), te(Me, null,
|
|
19790
|
+
(C(!0), te(Me, null, Je(d.value, (z, j) => (C(), Y(H, {
|
|
19791
19791
|
key: z.id,
|
|
19792
19792
|
class: "dk-output-value-field-entry",
|
|
19793
19793
|
"data-testid": `ff-kv-container-${r.path.value}.${j}`
|
|
@@ -19988,7 +19988,7 @@ const mO = /* @__PURE__ */ ge({
|
|
|
19988
19988
|
},
|
|
19989
19989
|
emits: ["update:model-value", "update:property-key"],
|
|
19990
19990
|
setup(e, { emit: t }) {
|
|
19991
|
-
const { i18n: { t: n } } =
|
|
19991
|
+
const { i18n: { t: n } } = Xe(), a = e, o = t, { formData: i } = dt(), r = ae(na(i.property)), s = V(() => Ca(i.property)), u = ae(Cr(i.property)), d = V(() => i.property ?? ""), f = V(() => Object.entries(ai).map(([m]) => {
|
|
19992
19992
|
var w;
|
|
19993
19993
|
const g = Ca(m) ? (w = i.property) == null ? void 0 : w.startsWith(m.replace(Vi, "")) : i.property === m;
|
|
19994
19994
|
return {
|
|
@@ -20223,7 +20223,7 @@ function kO(e) {
|
|
|
20223
20223
|
getNodeById: a,
|
|
20224
20224
|
branchGroups: o,
|
|
20225
20225
|
commit: i
|
|
20226
|
-
} = kt(), { i18n: { t: r } } =
|
|
20226
|
+
} = kt(), { i18n: { t: r } } = Xe(), s = ep(), u = is(), d = V(() => {
|
|
20227
20227
|
var E;
|
|
20228
20228
|
const _ = { ...t.formData.value }, h = ka(((E = t.currentNode.value) == null ? void 0 : E.type) || "branch");
|
|
20229
20229
|
for (const v of h)
|
|
@@ -20302,7 +20302,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20302
20302
|
nodeId: {}
|
|
20303
20303
|
},
|
|
20304
20304
|
setup(e) {
|
|
20305
|
-
const { i18n: { t } } =
|
|
20305
|
+
const { i18n: { t } } = Xe(), n = nn("branch"), a = ae(0), {
|
|
20306
20306
|
formData: o,
|
|
20307
20307
|
setName: i,
|
|
20308
20308
|
inputOptions: r,
|
|
@@ -20379,7 +20379,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20379
20379
|
setup(e) {
|
|
20380
20380
|
const t = lt("form"), n = nn("cache"), {
|
|
20381
20381
|
i18n: { t: a }
|
|
20382
|
-
} =
|
|
20382
|
+
} = Xe(), {
|
|
20383
20383
|
formData: o,
|
|
20384
20384
|
setName: i,
|
|
20385
20385
|
setConfig: r,
|
|
@@ -20451,7 +20451,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20451
20451
|
setup(e) {
|
|
20452
20452
|
const t = lt("form"), n = nn("xml_to_json"), {
|
|
20453
20453
|
i18n: { t: a }
|
|
20454
|
-
} =
|
|
20454
|
+
} = Xe(), {
|
|
20455
20455
|
formData: o,
|
|
20456
20456
|
setName: i,
|
|
20457
20457
|
setConfig: r,
|
|
@@ -20569,7 +20569,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20569
20569
|
setup(e) {
|
|
20570
20570
|
const t = lt("form"), n = nn("json_to_xml"), {
|
|
20571
20571
|
i18n: { t: a }
|
|
20572
|
-
} =
|
|
20572
|
+
} = Xe(), {
|
|
20573
20573
|
formData: o,
|
|
20574
20574
|
setName: i,
|
|
20575
20575
|
setConfig: r,
|
|
@@ -20731,7 +20731,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20731
20731
|
setup(e) {
|
|
20732
20732
|
const t = lt("form"), n = nn("jwt_sign"), {
|
|
20733
20733
|
i18n: { t: a }
|
|
20734
|
-
} =
|
|
20734
|
+
} = Xe(), {
|
|
20735
20735
|
formData: o,
|
|
20736
20736
|
setName: i,
|
|
20737
20737
|
setConfig: r,
|
|
@@ -20841,7 +20841,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
20841
20841
|
setup(e) {
|
|
20842
20842
|
const t = lt("form"), n = nn("jwt_verify"), {
|
|
20843
20843
|
i18n: { t: a }
|
|
20844
|
-
} =
|
|
20844
|
+
} = Xe(), {
|
|
20845
20845
|
formData: o,
|
|
20846
20846
|
setName: i,
|
|
20847
20847
|
setConfig: r,
|
|
@@ -21343,7 +21343,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21343
21343
|
_: 1
|
|
21344
21344
|
}, 8, ["model-value", "options"])
|
|
21345
21345
|
], 8, ["disabled"])) : me("", !0),
|
|
21346
|
-
x(rn,
|
|
21346
|
+
x(rn, We(n, {
|
|
21347
21347
|
class: "dk-form",
|
|
21348
21348
|
"editor-mode": s.value
|
|
21349
21349
|
}), {
|
|
@@ -21402,7 +21402,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21402
21402
|
setup(e) {
|
|
21403
21403
|
const t = e, n = Pt();
|
|
21404
21404
|
xt(Ht, n == null ? void 0 : n[Gt]);
|
|
21405
|
-
const { i18n: { t: a } } =
|
|
21405
|
+
const { i18n: { t: a } } = Qe.useI18n();
|
|
21406
21406
|
function o() {
|
|
21407
21407
|
const s = {}, u = ["service-id", "route-id", "consumer-id", "consumer_group-id"];
|
|
21408
21408
|
for (const d of u)
|
|
@@ -21429,7 +21429,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21429
21429
|
iu(p.headers), iu(p.query);
|
|
21430
21430
|
}), t.onFormChange(d, u);
|
|
21431
21431
|
}
|
|
21432
|
-
return (s, u) => (C(), Y(rn,
|
|
21432
|
+
return (s, u) => (C(), Y(rn, We(t, {
|
|
21433
21433
|
"form-config": i,
|
|
21434
21434
|
"on-form-change": r
|
|
21435
21435
|
}), {
|
|
@@ -21438,7 +21438,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21438
21438
|
match: ({ path: d }) => d === "config.default_acl"
|
|
21439
21439
|
}, {
|
|
21440
21440
|
default: P((d) => [
|
|
21441
|
-
x(jn,
|
|
21441
|
+
x(jn, We(d, {
|
|
21442
21442
|
appearance: "tabs",
|
|
21443
21443
|
"item-label": (f, c) => l(a)("plugins.free-form.ai-mcp-proxy.default_acl_item_label", { index: c + 1 }),
|
|
21444
21444
|
"sticky-tabs": ""
|
|
@@ -21450,7 +21450,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21450
21450
|
match: ({ path: d }) => d === "config.tools"
|
|
21451
21451
|
}, {
|
|
21452
21452
|
default: P((d) => [
|
|
21453
|
-
x(jn,
|
|
21453
|
+
x(jn, We(d, {
|
|
21454
21454
|
appearance: "tabs",
|
|
21455
21455
|
"item-label": (f, c) => l(a)("plugins.free-form.ai-mcp-proxy.tool_item_label", { index: c + 1 }),
|
|
21456
21456
|
"sticky-tabs": ""
|
|
@@ -21496,7 +21496,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21496
21496
|
match: ({ path: i }) => i === "config.behavior.idp_error_response_body_template"
|
|
21497
21497
|
}, {
|
|
21498
21498
|
default: P((i) => [
|
|
21499
|
-
x(mt,
|
|
21499
|
+
x(mt, We(i, {
|
|
21500
21500
|
multiline: "",
|
|
21501
21501
|
rows: 4
|
|
21502
21502
|
}), null, 16)
|
|
@@ -21529,7 +21529,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21529
21529
|
var d;
|
|
21530
21530
|
const u = de("KLabel");
|
|
21531
21531
|
return C(), te("div", t$, [
|
|
21532
|
-
x(u,
|
|
21532
|
+
x(u, We({ class: "ff-array-field-label" }, l(i), {
|
|
21533
21533
|
"data-testid": `ff-label-${l(o)}`,
|
|
21534
21534
|
"tooltip-attributes": l(i).labelAttributes.tooltipAttributes
|
|
21535
21535
|
}), st({
|
|
@@ -21541,7 +21541,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21541
21541
|
(d = l(i).labelAttributes) != null && d.info ? {
|
|
21542
21542
|
name: "tooltip",
|
|
21543
21543
|
fn: P(() => [
|
|
21544
|
-
|
|
21544
|
+
et(r.$slots, "tooltip", {}, () => [
|
|
21545
21545
|
Q("div", {
|
|
21546
21546
|
innerHTML: l(i).labelAttributes.info
|
|
21547
21547
|
}, null, 8, n$)
|
|
@@ -21589,7 +21589,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21589
21589
|
match: ({ path: s }) => s === "config.identity_realms"
|
|
21590
21590
|
}, {
|
|
21591
21591
|
default: P((s) => [
|
|
21592
|
-
o.value ? (C(), Y(i$, Kt(
|
|
21592
|
+
o.value ? (C(), Y(i$, Kt(We({ key: 0 }, s)), null, 16)) : (C(), te("span", a$))
|
|
21593
21593
|
]),
|
|
21594
21594
|
_: 1
|
|
21595
21595
|
}, 8, ["match"])
|
|
@@ -21603,7 +21603,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21603
21603
|
}), r$ = { class: "ff-acl-mode" }, s$ = /* @__PURE__ */ ge({
|
|
21604
21604
|
__name: "ACLModeCard",
|
|
21605
21605
|
setup(e) {
|
|
21606
|
-
const { formData: t } = dt(), { i18n: { t: n } } =
|
|
21606
|
+
const { formData: t } = dt(), { i18n: { t: n } } = Xe(), a = ae("allow"), o = ae(!1), i = ae({});
|
|
21607
21607
|
Ue(() => t.config, (s) => {
|
|
21608
21608
|
if (o.value || !s) return;
|
|
21609
21609
|
const u = s.deny, d = s.allow;
|
|
@@ -21703,7 +21703,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21703
21703
|
setup(e) {
|
|
21704
21704
|
const t = e, n = Pt();
|
|
21705
21705
|
xt(Ht, n == null ? void 0 : n[Gt]);
|
|
21706
|
-
const a = _t(Oo.KM_2262_CODE_MODE, !1), { i18n: { t: o } } =
|
|
21706
|
+
const a = _t(Oo.KM_2262_CODE_MODE, !1), { i18n: { t: o } } = Qe.useI18n(), i = Ha("plugin-editor-mode", "form"), r = ae(
|
|
21707
21707
|
a ? i.value : "form"
|
|
21708
21708
|
// Force 'form' mode if code mode is not enabled
|
|
21709
21709
|
), s = [
|
|
@@ -21733,7 +21733,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21733
21733
|
"onUpdate:modelValue": u
|
|
21734
21734
|
}, null, 8, ["model-value"])
|
|
21735
21735
|
])) : me("", !0),
|
|
21736
|
-
x(rn,
|
|
21736
|
+
x(rn, We(t, { "editor-mode": r.value }), {
|
|
21737
21737
|
default: P(() => [
|
|
21738
21738
|
x(Qn)
|
|
21739
21739
|
]),
|
|
@@ -21769,7 +21769,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21769
21769
|
match: ({ path: i }) => i === "config.custom_fields_by_lua"
|
|
21770
21770
|
}, {
|
|
21771
21771
|
default: P((i) => [
|
|
21772
|
-
x(Na,
|
|
21772
|
+
x(Na, We(i, { appearance: { string: { multiline: !0 } } }), null, 16)
|
|
21773
21773
|
]),
|
|
21774
21774
|
_: 1
|
|
21775
21775
|
}, 8, ["match"])
|
|
@@ -21807,7 +21807,7 @@ const CO = /* @__PURE__ */ ge({
|
|
|
21807
21807
|
match: ({ path: i }) => i === "config.access_logs.custom_attributes_by_lua"
|
|
21808
21808
|
}, {
|
|
21809
21809
|
default: P((i) => [
|
|
21810
|
-
x(Na,
|
|
21810
|
+
x(Na, We(i, { appearance: { string: { multiline: !0 } } }), null, 16)
|
|
21811
21811
|
]),
|
|
21812
21812
|
_: 1
|
|
21813
21813
|
}, 8, ["match"])
|
|
@@ -22061,12 +22061,12 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22061
22061
|
throw new Error(
|
|
22062
22062
|
"Duplicate form component names found in `sharedForms` and `freeForm`"
|
|
22063
22063
|
);
|
|
22064
|
-
const o = t, i = e, r = _t(Oo.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: s } = qn((le = i.config) == null ? void 0 : le.axiosRequestConfig), { parseSchema: u } =
|
|
22064
|
+
const o = t, i = e, r = _t(Oo.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: s } = qn((le = i.config) == null ? void 0 : le.axiosRequestConfig), { parseSchema: u } = Qe.useSchemas({
|
|
22065
22065
|
entityId: ((pe = i.entityMap.focusedEntity) == null ? void 0 : pe.id) || void 0,
|
|
22066
22066
|
credential: i.credential,
|
|
22067
22067
|
enableRedisPartial: i.enableRedisPartial,
|
|
22068
22068
|
experimentalRenders: i.config.app === "konnect" ? i.config.experimentalRenders : void 0
|
|
22069
|
-
}), { convertToDotNotation: d, unFlattenObject: f, dismissField: c, isObjectEmpty: p, unsetNullForeignKey: m } =
|
|
22069
|
+
}), { convertToDotNotation: d, unFlattenObject: f, dismissField: c, isObjectEmpty: p, unsetNullForeignKey: m } = Qe.usePluginHelpers(), { shouldUseFreeForm: g, getFreeFormName: y } = Qe.useFreeFormResolver(), { objectsAreEqual: w } = Aa(), { i18n: { t: _ } } = Xe(), h = (se) => i.config.app === "konnect" ? se.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" ? se.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "") : se, E = (se, ue) => {
|
|
22070
22070
|
let ye = `${i.config.apiBaseUrl}${vt.form[i.config.app].entityGetOne}`;
|
|
22071
22071
|
return ye = h(ye), ye = ye.replace(/{entity}/gi, se), ye = ye.replace(/{id}/gi, ue), ye;
|
|
22072
22072
|
}, v = (se) => {
|
|
@@ -22083,8 +22083,8 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22083
22083
|
return i.config.app === "konnect" ? s.get(ye).then((he) => {
|
|
22084
22084
|
const { data: { data: Pe } } = he;
|
|
22085
22085
|
if (delete ue.size, delete ue.offset, Pe.length && Object.keys(ue).length === 1) {
|
|
22086
|
-
const xe = Object.keys(ue)[0],
|
|
22087
|
-
he.data.data =
|
|
22086
|
+
const xe = Object.keys(ue)[0], Ze = Pe.filter((Ce) => Ce[xe] ? !!Ce[xe].toLowerCase().includes(ue[xe].toLowerCase()) : !1);
|
|
22087
|
+
he.data.data = Ze;
|
|
22088
22088
|
}
|
|
22089
22089
|
return he;
|
|
22090
22090
|
}) : s.get(ye, { params: ue });
|
|
@@ -22092,7 +22092,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22092
22092
|
getAllV2: (se, ue, ye) => {
|
|
22093
22093
|
const he = v(se);
|
|
22094
22094
|
if (i.config.app === "konnect") {
|
|
22095
|
-
const { size: Pe, offset: xe, ...
|
|
22095
|
+
const { size: Pe, offset: xe, ...Ze } = ue;
|
|
22096
22096
|
if (se === "consumer_groups")
|
|
22097
22097
|
return s.get(he, {
|
|
22098
22098
|
params: {
|
|
@@ -22101,8 +22101,8 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22101
22101
|
signal: ye
|
|
22102
22102
|
}).then((Te) => {
|
|
22103
22103
|
const { data: { data: Ee } } = Te;
|
|
22104
|
-
if (Ee.length && Object.keys(
|
|
22105
|
-
const Le = Object.keys(
|
|
22104
|
+
if (Ee.length && Object.keys(Ze).length === 1) {
|
|
22105
|
+
const Le = Object.keys(Ze)[0], Ne = Ee.filter((Z) => Z[Le] ? !!Z[Le].toLowerCase().includes(Ze[Le].toLowerCase()) : !1);
|
|
22106
22106
|
Te.data.data = Ne;
|
|
22107
22107
|
}
|
|
22108
22108
|
return Te;
|
|
@@ -22111,10 +22111,10 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22111
22111
|
size: Pe,
|
|
22112
22112
|
offset: xe
|
|
22113
22113
|
};
|
|
22114
|
-
for (const Te of Object.keys(
|
|
22114
|
+
for (const Te of Object.keys(Ze))
|
|
22115
22115
|
Ce.filter = {
|
|
22116
22116
|
[Te]: {
|
|
22117
|
-
contains:
|
|
22117
|
+
contains: Ze[Te]
|
|
22118
22118
|
}
|
|
22119
22119
|
};
|
|
22120
22120
|
return s.get(he, {
|
|
@@ -22224,14 +22224,14 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22224
22224
|
}
|
|
22225
22225
|
Z !== void 0 && Ne === "" && Ne !== Z ? xe[ke] = J === "object" ? {} : null : Le.type === "checklist" && Ne === "" ? xe[ke] = [] : Ne !== "" && (xe[ke] = Ne), xe[ke] = re ? re(Ne) : xe[ke], m(ke, xe);
|
|
22226
22226
|
});
|
|
22227
|
-
const
|
|
22227
|
+
const Ze = f(xe);
|
|
22228
22228
|
if (T.value) {
|
|
22229
22229
|
if (se && se.length)
|
|
22230
22230
|
for (const Ee of se)
|
|
22231
|
-
delete
|
|
22232
|
-
Object.assign(
|
|
22231
|
+
delete Ze[Ee];
|
|
22232
|
+
Object.assign(Ze, L.value);
|
|
22233
22233
|
}
|
|
22234
|
-
return
|
|
22234
|
+
return Ze;
|
|
22235
22235
|
}, W = (se, ue = {}) => {
|
|
22236
22236
|
c(N, ue, se, i.editing), o("model-updated", {
|
|
22237
22237
|
model: N,
|
|
@@ -22258,7 +22258,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22258
22258
|
const Ee = ue ? `${ue}-${ye.replace(/-/g, "_")}` : ye.replace(/-/g, "_");
|
|
22259
22259
|
(Ce = i.schema[Ee]) != null && Ce.fieldNameHasDashes && (he = Ee, Pe = i.schema[he]), ue && ((Te = i.schema[ue]) == null ? void 0 : Te.keyFromObject) === ye && (he = ue, Pe = i.schema[he]);
|
|
22260
22260
|
}
|
|
22261
|
-
const xe = se[ye],
|
|
22261
|
+
const xe = se[ye], Ze = typeof xe;
|
|
22262
22262
|
if (Pe && Pe.type === "object-advanced" && !xe) {
|
|
22263
22263
|
N[he] = {}, M[he] = {};
|
|
22264
22264
|
return;
|
|
@@ -22267,9 +22267,9 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22267
22267
|
N[he] = JSON.parse(JSON.stringify(xe)), M[he] = JSON.parse(JSON.stringify(xe));
|
|
22268
22268
|
return;
|
|
22269
22269
|
}
|
|
22270
|
-
if (
|
|
22270
|
+
if (Ze === "object" && xe && !xe.length)
|
|
22271
22271
|
return I(xe, he);
|
|
22272
|
-
if (
|
|
22272
|
+
if (Ze === "object" && xe && xe.length && Pe.type === "input") {
|
|
22273
22273
|
N[he] = xe.join(", "), M[he] = xe.join(", ");
|
|
22274
22274
|
return;
|
|
22275
22275
|
}
|
|
@@ -22353,12 +22353,12 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22353
22353
|
"plugin-name": N.name,
|
|
22354
22354
|
"render-rules": (he = l(un)[N.name]) == null ? void 0 : he.freeformRenderRules,
|
|
22355
22355
|
schema: H.value,
|
|
22356
|
-
onGlobalAction: ue[0] || (ue[0] = (xe,
|
|
22356
|
+
onGlobalAction: ue[0] || (ue[0] = (xe, Ze) => se.$emit("globalAction", xe, Ze))
|
|
22357
22357
|
}, st({ _: 2 }, [
|
|
22358
22358
|
e.enableVaultSecretPicker ? {
|
|
22359
22359
|
name: l(Gt),
|
|
22360
22360
|
fn: P((xe) => [
|
|
22361
|
-
xe.schema.referenceable ? (C(), Y(l(jo),
|
|
22361
|
+
xe.schema.referenceable ? (C(), Y(l(jo), We({ key: 0 }, xe, { onOpen: R }), null, 16)) : me("", !0)
|
|
22362
22362
|
]),
|
|
22363
22363
|
key: "0"
|
|
22364
22364
|
} : void 0
|
|
@@ -22376,7 +22376,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22376
22376
|
e.enableVaultSecretPicker ? {
|
|
22377
22377
|
name: l(Gt),
|
|
22378
22378
|
fn: P((xe) => [
|
|
22379
|
-
xe.schema.referenceable ? (C(), Y(l(jo),
|
|
22379
|
+
xe.schema.referenceable ? (C(), Y(l(jo), We({ key: 0 }, xe, { onOpen: R }), null, 16)) : me("", !0)
|
|
22380
22380
|
]),
|
|
22381
22381
|
key: "0"
|
|
22382
22382
|
} : void 0
|
|
@@ -22409,7 +22409,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22409
22409
|
e.enableVaultSecretPicker ? {
|
|
22410
22410
|
name: l(Gt),
|
|
22411
22411
|
fn: P((xe) => [
|
|
22412
|
-
xe.schema.referenceable ? (C(), Y(l(jo),
|
|
22412
|
+
xe.schema.referenceable ? (C(), Y(l(jo), We({ key: 0 }, xe, { onOpen: R }), null, 16)) : me("", !0)
|
|
22413
22413
|
]),
|
|
22414
22414
|
key: "1"
|
|
22415
22415
|
} : void 0
|
|
@@ -22438,9 +22438,9 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22438
22438
|
key: 0,
|
|
22439
22439
|
to: e.teleportTarget
|
|
22440
22440
|
}, [
|
|
22441
|
-
|
|
22441
|
+
et(t.$slots, "default")
|
|
22442
22442
|
], 8, ["to"])) : (C(), te("div", A$, [
|
|
22443
|
-
|
|
22443
|
+
et(t.$slots, "default")
|
|
22444
22444
|
]));
|
|
22445
22445
|
}
|
|
22446
22446
|
}), T$ = { key: 0 }, S$ = { class: "plugin-form-actions" }, O$ = /* @__PURE__ */ ge({
|
|
@@ -22547,11 +22547,11 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22547
22547
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated", "showNewPartialModal", "globalAction"],
|
|
22548
22548
|
setup(e, { emit: t }) {
|
|
22549
22549
|
var Ne;
|
|
22550
|
-
const n = _t(Ep.KM_1948_PLUGIN_FORM_LAYOUT, V(() => !1)), a = _t(Oo.KM_2306_CONDITION_FIELD_314, !1), o = t, i = e, r = Ia(), { i18n: { t: s } } =
|
|
22550
|
+
const n = _t(Ep.KM_1948_PLUGIN_FORM_LAYOUT, V(() => !1)), a = _t(Oo.KM_2306_CONDITION_FIELD_314, !1), o = t, i = e, r = Ia(), { i18n: { t: s } } = Qe.useI18n(), { customSchemas: u, typedefs: d } = Qe.useSchemas({
|
|
22551
22551
|
app: i.config.app,
|
|
22552
22552
|
credential: i.credential,
|
|
22553
22553
|
experimentalRenders: i.config.app === "konnect" ? i.config.experimentalRenders : void 0
|
|
22554
|
-
}), { formatPluginFieldLabel: f } =
|
|
22554
|
+
}), { formatPluginFieldLabel: f } = Qe.usePluginHelpers(), { shouldUseFreeForm: c } = Qe.useFreeFormResolver(), { getMessageFromError: p } = gi(), { capitalize: m } = bo(), { objectsAreEqual: g } = Aa(), { axiosInstance: y } = qn((Ne = i.config) == null ? void 0 : Ne.axiosRequestConfig), w = ae(!1), _ = V(() => !!i.pluginId), h = V(() => i.pluginId ? ei.Edit : ei.Create), E = ae(void 0), v = ae(void 0), k = V(() => !!(i.credential && i.config.entityId)), b = ae(void 0), O = ae({}), F = ae(), G = ae();
|
|
22555
22555
|
xt(Po, {
|
|
22556
22556
|
redisType: F,
|
|
22557
22557
|
redisPath: G,
|
|
@@ -22761,11 +22761,11 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22761
22761
|
fields: [{
|
|
22762
22762
|
schema: {
|
|
22763
22763
|
fields: [{
|
|
22764
|
-
...
|
|
22764
|
+
...nt,
|
|
22765
22765
|
model: ve,
|
|
22766
22766
|
valueArrayType: Ie === "integer" ? "number" : Ie || "string",
|
|
22767
22767
|
inputAttributes: {
|
|
22768
|
-
...
|
|
22768
|
+
...nt.inputAttributes,
|
|
22769
22769
|
type: Ie === "integer" ? "number" : "text",
|
|
22770
22770
|
inputMode: Ie === "integer" ? "numeric" : "text"
|
|
22771
22771
|
}
|
|
@@ -22800,23 +22800,23 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22800
22800
|
}), _e.elements && _e.type === "array") {
|
|
22801
22801
|
const Ie = _e.elements;
|
|
22802
22802
|
if (J[ve].referenceable = Ie.referenceable, J[ve].elements = Ie, ["string", "integer", "number"].includes(Ie.type) && !Ie.one_of) {
|
|
22803
|
-
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable:
|
|
22804
|
-
gt.type = Ie.type === "string" ? "text" : "number", J[ve] = { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable:
|
|
22803
|
+
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable: it, model: Ye } = J[ve], { inputAttributes: gt, ...Pn } = JSON.parse(JSON.stringify(nt));
|
|
22804
|
+
gt.type = Ie.type === "string" ? "text" : "number", J[ve] = { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable: it, model: Ye, inputAttributes: gt, ...Pn };
|
|
22805
22805
|
} else if (["string", "integer", "number"].includes(Ie.type) && Ie.one_of) {
|
|
22806
22806
|
if (be) {
|
|
22807
|
-
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable:
|
|
22808
|
-
J[ve] = { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable:
|
|
22807
|
+
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable: it, model: Ye } = J[ve];
|
|
22808
|
+
J[ve] = { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable: it, model: Ye, ...W0(Ie.one_of, _e.default) };
|
|
22809
22809
|
}
|
|
22810
22810
|
} else if (Ie.type === "array") {
|
|
22811
|
-
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable:
|
|
22811
|
+
const { id: je, help: Be, label: Re, hint: ze, values: Ve, referenceable: it, model: Ye, elements: gt } = J[ve], { inputAttributes: Pn, ...bt } = JSON.parse(JSON.stringify(nt));
|
|
22812
22812
|
J[ve] = {
|
|
22813
22813
|
id: je,
|
|
22814
22814
|
help: Be,
|
|
22815
22815
|
label: Re,
|
|
22816
22816
|
hint: ze,
|
|
22817
22817
|
values: Ve,
|
|
22818
|
-
referenceable:
|
|
22819
|
-
model:
|
|
22818
|
+
referenceable: it,
|
|
22819
|
+
model: Ye,
|
|
22820
22820
|
elements: gt,
|
|
22821
22821
|
// Preserve elements so FieldArray can check the original schema structure
|
|
22822
22822
|
inputAttributes: Pn,
|
|
@@ -22826,8 +22826,8 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22826
22826
|
}
|
|
22827
22827
|
if (_e.hint && (J[ve].hint = _e.hint), ke && !ke.overwriteDefault && Object.keys(ke).forEach((Ie) => {
|
|
22828
22828
|
if (Ie === ve) {
|
|
22829
|
-
const { help: je, label: Be, hint: Re, values: ze, referenceable: Ve, elements:
|
|
22830
|
-
J[ve] = { help: je, label: Be, hint: Re, values: ze, referenceable: Ve, elements:
|
|
22829
|
+
const { help: je, label: Be, hint: Re, values: ze, referenceable: Ve, elements: it } = J[ve], { help: Ye, ...gt } = ke[Ie];
|
|
22830
|
+
J[ve] = { help: je, label: Be, hint: Re, values: ze, referenceable: Ve, elements: it, ...gt }, typeof Ye == "string" && (J[ve].help = za.parse(Ye, { mangle: !1, headerIds: !1 }));
|
|
22831
22831
|
}
|
|
22832
22832
|
}), _e.type === "array" && ((Ot = _e.elements) == null ? void 0 : Ot.type) === "record" && Array.isArray(_e.elements.fields)) {
|
|
22833
22833
|
let Ie = {};
|
|
@@ -22848,9 +22848,9 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22848
22848
|
(Be) => {
|
|
22849
22849
|
var Re, ze;
|
|
22850
22850
|
for (const Ve of _e.elements.fields) {
|
|
22851
|
-
const
|
|
22852
|
-
if (
|
|
22853
|
-
Be.model =
|
|
22851
|
+
const it = Object.keys(Ve)[0], Ye = ((ze = (Re = Be.id) == null ? void 0 : Re.split) == null ? void 0 : ze.call(Re, "-")) ?? [];
|
|
22852
|
+
if (Ye[Ye.length - 1] === it) {
|
|
22853
|
+
Be.model = it, Be.label = f(it);
|
|
22854
22854
|
break;
|
|
22855
22855
|
}
|
|
22856
22856
|
}
|
|
@@ -22982,18 +22982,18 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
22982
22982
|
...ie ? ["route"] : [],
|
|
22983
22983
|
...J ? ["consumer"] : [],
|
|
22984
22984
|
...be ? ["consumer_group"] : []
|
|
22985
|
-
], Ve = Re.splice(Re.length - 2, 2).map((
|
|
22985
|
+
], Ve = Re.splice(Re.length - 2, 2).map((Ye) => s(Ye === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${Ye}.plural`)).join(`${Re.length > 0 ? "," : ""} and/or `), it = [
|
|
22986
22986
|
"Specific",
|
|
22987
22987
|
[
|
|
22988
22988
|
...Re.length > 0 ? [Re.map(
|
|
22989
|
-
(
|
|
22989
|
+
(Ye) => s(Ye === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${Ye}.plural`)
|
|
22990
22990
|
).join(", ")] : [],
|
|
22991
22991
|
Ve
|
|
22992
22992
|
].join(", ")
|
|
22993
22993
|
].join(" ");
|
|
22994
22994
|
j.selectionGroup.fields.push({
|
|
22995
22995
|
label: s("plugins.form.scoping.label"),
|
|
22996
|
-
description:
|
|
22996
|
+
description: it,
|
|
22997
22997
|
fields: []
|
|
22998
22998
|
}), j.selectionGroup.fields[1].fields = De;
|
|
22999
22999
|
}
|
|
@@ -23036,7 +23036,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23036
23036
|
}), xe = V(() => {
|
|
23037
23037
|
const { __ui_data: Z, ...ie } = { ...Pe.value };
|
|
23038
23038
|
return ie;
|
|
23039
|
-
}),
|
|
23039
|
+
}), Ze = async () => {
|
|
23040
23040
|
if (!$.clientErrorMessage && !i.isWizardStep)
|
|
23041
23041
|
try {
|
|
23042
23042
|
$.isReadonly = !0;
|
|
@@ -23162,7 +23162,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23162
23162
|
"data-testid": `plugin-${_.value ? "edit" : "create"}-form-submit`,
|
|
23163
23163
|
disabled: !D.value || $.isReadonly,
|
|
23164
23164
|
type: "submit",
|
|
23165
|
-
onClick:
|
|
23165
|
+
onClick: Ze
|
|
23166
23166
|
}, {
|
|
23167
23167
|
default: P(() => [
|
|
23168
23168
|
we(ne(l(s)("actions.save")), 1)
|
|
@@ -23177,7 +23177,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23177
23177
|
default: P(() => [
|
|
23178
23178
|
Q("form", {
|
|
23179
23179
|
hidden: "",
|
|
23180
|
-
onSubmit:
|
|
23180
|
+
onSubmit: Ze
|
|
23181
23181
|
}, null, 32),
|
|
23182
23182
|
x(E$, {
|
|
23183
23183
|
config: e.config,
|
|
@@ -23332,8 +23332,8 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23332
23332
|
},
|
|
23333
23333
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
23334
23334
|
setup(e, { emit: t }) {
|
|
23335
|
-
var xe,
|
|
23336
|
-
const n =
|
|
23335
|
+
var xe, Ze;
|
|
23336
|
+
const n = Qe.usePluginMetaData(), a = t, o = e, { i18n: { t: i } } = Qe.useI18n(), r = Ia(), { axiosInstance: s } = qn((xe = o.config) == null ? void 0 : xe.axiosRequestConfig), { hasRecords: u, handleStateChange: d } = $p(() => E.value), f = V(() => u.value && o.config.app === "konnect"), c = V(() => !!o.config.entityId), p = V(() => {
|
|
23337
23337
|
var Ce;
|
|
23338
23338
|
return ((Ce = o.config) == null ? void 0 : Ce.entityType) === "consumers";
|
|
23339
23339
|
}), m = V(() => {
|
|
@@ -23349,7 +23349,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23349
23349
|
// the Name column is non-hidable
|
|
23350
23350
|
name: { label: i("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
|
|
23351
23351
|
};
|
|
23352
|
-
(
|
|
23352
|
+
(Ze = o.config) != null && Ze.entityId || (w.appliedTo = { label: i("plugins.list.table_headers.applied_to"), sortable: !1 }), w.enabled = { label: i("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, g && (w.ordering = { label: i("plugins.list.table_headers.ordering"), sortable: !0 }), w.tags = { label: i("plugins.list.table_headers.tags"), sortable: !1 };
|
|
23353
23353
|
const _ = w, h = V(() => {
|
|
23354
23354
|
var Te, Ee, Le, Ne;
|
|
23355
23355
|
let Ce = o.config.entityType ? `${o.config.apiBaseUrl}${vt.list[o.config.app].forEntity}` : `${o.config.apiBaseUrl}${vt.list[o.config.app].all}`;
|
|
@@ -23597,7 +23597,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23597
23597
|
appliedTo: P(({ row: re }) => [
|
|
23598
23598
|
A(re).length > 0 ? (C(), Y(Z, { key: 0 }, {
|
|
23599
23599
|
default: P(() => [
|
|
23600
|
-
(C(!0), te(Me, null,
|
|
23600
|
+
(C(!0), te(Me, null, Je(A(re), (ke) => (C(), Y(l(ti), {
|
|
23601
23601
|
key: ke.badgeText,
|
|
23602
23602
|
"auth-function": () => $(ke.type, re),
|
|
23603
23603
|
"force-show": ""
|
|
@@ -23859,13 +23859,13 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23859
23859
|
},
|
|
23860
23860
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
23861
23861
|
setup(e, { emit: t }) {
|
|
23862
|
-
const n = t, a = e, o = Ia(), { i18n: { t: i } } =
|
|
23862
|
+
const n = t, a = e, o = Ia(), { i18n: { t: i } } = Qe.useI18n(), r = V(() => a.config.app === "konnect" ? a.config.controlPlaneId : ""), s = V(() => !!(!a.plugin.available || a.plugin.disabledMessage)), u = V(() => !!(m.value && !p.value && a.navigateOnClick && r.value && (a.canDeleteCustomPlugin || a.canEditCustomPlugin))), d = () => {
|
|
23863
23863
|
o.push(a.config.getCreateRoute(a.plugin.id));
|
|
23864
23864
|
}, f = () => {
|
|
23865
23865
|
a.navigateOnClick ? d() : c();
|
|
23866
23866
|
}, c = () => {
|
|
23867
23867
|
n("plugin-clicked", a.plugin);
|
|
23868
|
-
}, p = V(() => a.plugin.id === "custom-plugin-create"), m = V(() => a.config.app === "konnect" && a.plugin.group ===
|
|
23868
|
+
}, p = V(() => a.plugin.id === "custom-plugin-create"), m = V(() => a.config.app === "konnect" && a.plugin.group === He.CUSTOM_PLUGINS), g = () => {
|
|
23869
23869
|
a.config.app === "konnect" && n("custom-plugin-delete");
|
|
23870
23870
|
}, y = (_, h) => {
|
|
23871
23871
|
const E = a.config;
|
|
@@ -23992,7 +23992,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
23992
23992
|
emits: ["closed", "proceed"],
|
|
23993
23993
|
setup(e, { emit: t }) {
|
|
23994
23994
|
var g;
|
|
23995
|
-
const n = e, a = t, { i18nT: o, i18n: { t: i } } =
|
|
23995
|
+
const n = e, a = t, { i18nT: o, i18n: { t: i } } = Qe.useI18n(), { getMessageFromError: r } = gi(), { axiosInstance: s } = qn((g = n.config) == null ? void 0 : g.axiosRequestConfig), u = V(() => {
|
|
23996
23996
|
var y;
|
|
23997
23997
|
return c.value ? i("delete.plugin_schema_in_use_title") : i("delete.title", { name: ((y = n.plugin) == null ? void 0 : y.name) || i("delete.custom_plugin") });
|
|
23998
23998
|
}), d = ae(!1), f = ae(""), c = ae(!1), p = V(() => {
|
|
@@ -24119,17 +24119,17 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24119
24119
|
},
|
|
24120
24120
|
emits: ["plugin-clicked", "revalidate", "delete:success"],
|
|
24121
24121
|
setup(e, { emit: t }) {
|
|
24122
|
-
const n = e, a = t, { i18n: { t: o } } =
|
|
24122
|
+
const n = e, a = t, { i18n: { t: o } } = Qe.useI18n(), { getTallestPluginCardHeight: i, getToggleVisibility: r } = Qe.usePluginHelpers(), s = ae(!0), u = (k) => {
|
|
24123
24123
|
a("plugin-clicked", k);
|
|
24124
24124
|
}, d = V(() => {
|
|
24125
24125
|
if (n.config.app === "kongManager")
|
|
24126
24126
|
return [];
|
|
24127
|
-
const k = JSON.parse(JSON.stringify(n.pluginList))[
|
|
24127
|
+
const k = JSON.parse(JSON.stringify(n.pluginList))[He.CUSTOM_PLUGINS] || [];
|
|
24128
24128
|
return n.canCreateCustomPlugin && n.navigateOnClick && n.config.createCustomRoute ? [{
|
|
24129
24129
|
id: "custom-plugin-create",
|
|
24130
24130
|
name: o("plugins.select.tabs.custom.create.name"),
|
|
24131
24131
|
available: !0,
|
|
24132
|
-
group:
|
|
24132
|
+
group: He.CUSTOM_PLUGINS,
|
|
24133
24133
|
description: o("plugins.select.tabs.custom.create.description")
|
|
24134
24134
|
}].concat(k) : k;
|
|
24135
24135
|
}), f = ae(!1), c = ae(null), p = (k) => {
|
|
@@ -24162,8 +24162,8 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24162
24162
|
modelValue: s.value,
|
|
24163
24163
|
"onUpdate:modelValue": b[0] || (b[0] = (G) => s.value = G),
|
|
24164
24164
|
class: "custom-plugins-collapse",
|
|
24165
|
-
"data-testid": `${l(
|
|
24166
|
-
title: l(
|
|
24165
|
+
"data-testid": `${l(He).CUSTOM_PLUGINS}-collapse`,
|
|
24166
|
+
title: l(He).CUSTOM_PLUGINS,
|
|
24167
24167
|
"trigger-label": s.value ? l(o)("plugins.select.view_more") : l(o)("plugins.select.view_less")
|
|
24168
24168
|
}, st({
|
|
24169
24169
|
"visible-content": P(() => [
|
|
@@ -24173,7 +24173,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24173
24173
|
class: "plugin-card-container",
|
|
24174
24174
|
style: si(_.value)
|
|
24175
24175
|
}, [
|
|
24176
|
-
(C(!0), te(Me, null,
|
|
24176
|
+
(C(!0), te(Me, null, Je(d.value, (G, T) => (C(), Y(_p, {
|
|
24177
24177
|
key: `plugin-card-${T}`,
|
|
24178
24178
|
ref_for: !0,
|
|
24179
24179
|
ref_key: "pluginCardRef",
|
|
@@ -24258,7 +24258,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24258
24258
|
}),
|
|
24259
24259
|
emits: /* @__PURE__ */ ua(["plugin-clicked"], ["update:modelValue"]),
|
|
24260
24260
|
setup(e, { emit: t }) {
|
|
24261
|
-
const n = Li(e, "modelValue"), a = e, o = t, { i18n: { t: i } } =
|
|
24261
|
+
const n = Li(e, "modelValue"), a = e, o = t, { i18n: { t: i } } = Qe.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: s } = Qe.usePluginHelpers(), u = ae(Zo), d = ae(null), f = ae(null), c = V(() => n.value ? {
|
|
24262
24262
|
overflowY: "hidden",
|
|
24263
24263
|
maxHeight: `${u.value}px`
|
|
24264
24264
|
} : {}), p = ae(!1), m = () => {
|
|
@@ -24288,7 +24288,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24288
24288
|
class: "plugin-card-container",
|
|
24289
24289
|
style: si(c.value)
|
|
24290
24290
|
}, [
|
|
24291
|
-
(C(!0), te(Me, null,
|
|
24291
|
+
(C(!0), te(Me, null, Je(a.plugins, (h) => (C(), Y(_p, {
|
|
24292
24292
|
key: `plugin-card-${h.id}`,
|
|
24293
24293
|
ref_for: !0,
|
|
24294
24294
|
ref_key: "pluginCardRef",
|
|
@@ -24360,11 +24360,11 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24360
24360
|
},
|
|
24361
24361
|
emits: ["plugin-clicked"],
|
|
24362
24362
|
setup(e, { emit: t }) {
|
|
24363
|
-
const n = e, a = t, { i18n: { t: o } } =
|
|
24363
|
+
const n = e, a = t, { i18n: { t: o } } = Qe.useI18n(), i = ae(!1), r = ae(Ts.reduce((d, f) => (d[f] = !1, d), {})), s = (d) => {
|
|
24364
24364
|
a("plugin-clicked", d);
|
|
24365
24365
|
}, u = V(() => {
|
|
24366
24366
|
const d = JSON.parse(JSON.stringify(n.pluginList));
|
|
24367
|
-
return n.config.app === "konnect" && delete d[
|
|
24367
|
+
return n.config.app === "konnect" && delete d[He.CUSTOM_PLUGINS], d;
|
|
24368
24368
|
});
|
|
24369
24369
|
return (d, f) => {
|
|
24370
24370
|
const c = de("KEmptyState");
|
|
@@ -24394,7 +24394,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24394
24394
|
plugins: n.highlightedPlugins,
|
|
24395
24395
|
onPluginClicked: f[1] || (f[1] = (p) => s(p))
|
|
24396
24396
|
}, null, 8, ["modelValue", "config", "name", "navigate-on-click", "plugins"])) : me("", !0),
|
|
24397
|
-
(C(!0), te(Me, null,
|
|
24397
|
+
(C(!0), te(Me, null, Je(l(Ts), (p) => (C(), te(Me, null, [
|
|
24398
24398
|
u.value[p] ? (C(), te("div", { key: p }, [
|
|
24399
24399
|
x(ru, {
|
|
24400
24400
|
modelValue: r.value[p],
|
|
@@ -24498,7 +24498,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24498
24498
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
24499
24499
|
setup(e, { emit: t }) {
|
|
24500
24500
|
var K;
|
|
24501
|
-
const n = e, a = t, o = Bp(), i = Ia(), { i18n: { t: r } } =
|
|
24501
|
+
const n = e, a = t, o = Bp(), i = Ia(), { i18n: { t: r } } = Qe.useI18n(), { pluginMetaData: s } = Qe.usePluginMetaData(), { getMessageFromError: u } = gi(), { sortAlpha: d, objectsAreEqual: f } = Aa(), c = ae(""), p = ae(!0), m = ae(!1), g = ae(""), y = ae([]), w = ae([]), _ = ae({}), h = ae([]), { axiosInstance: E } = qn((K = n.config) == null ? void 0 : K.axiosRequestConfig), v = V(() => _.value ? Object.entries(_.value).filter(([S]) => S !== He.CUSTOM_PLUGINS).reduce((S, [, W]) => {
|
|
24502
24502
|
for (const X of W ?? [])
|
|
24503
24503
|
S[X.id] = X;
|
|
24504
24504
|
return S;
|
|
@@ -24542,9 +24542,9 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24542
24542
|
name: X,
|
|
24543
24543
|
available: y.value.includes(W),
|
|
24544
24544
|
disabledMessage: "",
|
|
24545
|
-
group: ((B = s[W]) == null ? void 0 : B.group) ||
|
|
24545
|
+
group: ((B = s[W]) == null ? void 0 : B.group) || He.CUSTOM_PLUGINS
|
|
24546
24546
|
};
|
|
24547
|
-
D.group ===
|
|
24547
|
+
D.group === He.CUSTOM_PLUGINS && (D.customPluginType = w.value.find((ee) => ee.name === W) ? "streaming" : "schema"), n.disabledPlugins && (D.disabledMessage = n.disabledPlugins[W]);
|
|
24548
24548
|
const I = D.group || r("plugins.select.misc_plugins");
|
|
24549
24549
|
let L = S[I];
|
|
24550
24550
|
return L || (L = []), L.push(D), L.sort(d("name")), S[I] = L, S;
|
|
@@ -24677,7 +24677,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24677
24677
|
]),
|
|
24678
24678
|
custom: P(() => [
|
|
24679
24679
|
Q("div", pN, [
|
|
24680
|
-
|
|
24680
|
+
et(S.$slots, "before-custom-tab-content", {}, void 0, !0),
|
|
24681
24681
|
Q("p", fN, ne(l(r)("plugins.select.tabs.custom.description")), 1),
|
|
24682
24682
|
x(tN, {
|
|
24683
24683
|
"can-create-custom-plugin": H.value,
|
|
@@ -24737,7 +24737,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24737
24737
|
},
|
|
24738
24738
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
24739
24739
|
setup(e, { emit: t }) {
|
|
24740
|
-
const n = t, a = e, o = Ia(), { i18n: { t: i } } =
|
|
24740
|
+
const n = t, a = e, o = Ia(), { i18n: { t: i } } = Qe.useI18n(), r = V(() => a.config.app === "konnect" ? a.config.controlPlaneId : ""), s = V(() => !!(!a.plugin.available || a.plugin.disabledMessage)), u = V(() => !!(c.value && !f.value && r.value)), d = V(() => {
|
|
24741
24741
|
if (s.value)
|
|
24742
24742
|
return {};
|
|
24743
24743
|
if (c.value) {
|
|
@@ -24746,7 +24746,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24746
24746
|
return g.createCustomRoute;
|
|
24747
24747
|
}
|
|
24748
24748
|
return a.config.getCreateRoute(a.plugin.id);
|
|
24749
|
-
}), f = V(() => a.plugin.id === "custom-plugin-create"), c = V(() => a.config.app === "konnect" && a.plugin.group ===
|
|
24749
|
+
}), f = V(() => a.plugin.id === "custom-plugin-create"), c = V(() => a.config.app === "konnect" && a.plugin.group === He.CUSTOM_PLUGINS), p = () => {
|
|
24750
24750
|
a.config.app === "konnect" && n("custom-plugin-delete");
|
|
24751
24751
|
}, m = (g, y) => {
|
|
24752
24752
|
const w = a.config;
|
|
@@ -24840,7 +24840,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24840
24840
|
], 8, _N),
|
|
24841
24841
|
Q("div", CN, [
|
|
24842
24842
|
Q("div", null, ne(f.value ? l(i)("actions.create_custom") : l(i)("actions.configure")), 1),
|
|
24843
|
-
|
|
24843
|
+
et(g.$slots, "footer-extra", {}, void 0, !0)
|
|
24844
24844
|
])
|
|
24845
24845
|
]),
|
|
24846
24846
|
_: 3
|
|
@@ -24863,32 +24863,32 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24863
24863
|
setup(e, { emit: t }) {
|
|
24864
24864
|
const n = e, a = V(() => {
|
|
24865
24865
|
switch (n.name) {
|
|
24866
|
-
case
|
|
24866
|
+
case He.FEATURED:
|
|
24867
24867
|
return Kf;
|
|
24868
|
-
case
|
|
24868
|
+
case He.AI:
|
|
24869
24869
|
return jf;
|
|
24870
|
-
case
|
|
24870
|
+
case He.ANALYTICS_AND_MONITORING:
|
|
24871
24871
|
return Lf;
|
|
24872
|
-
case
|
|
24872
|
+
case He.AUTHENTICATION:
|
|
24873
24873
|
return Mf;
|
|
24874
|
-
case
|
|
24874
|
+
case He.LOGGING:
|
|
24875
24875
|
return Rf;
|
|
24876
|
-
case
|
|
24876
|
+
case He.SECURITY:
|
|
24877
24877
|
return Ff;
|
|
24878
|
-
case
|
|
24878
|
+
case He.SERVERLESS:
|
|
24879
24879
|
return Pf;
|
|
24880
|
-
case
|
|
24880
|
+
case He.TRAFFIC_CONTROL:
|
|
24881
24881
|
return Nf;
|
|
24882
|
-
case
|
|
24882
|
+
case He.TRANSFORMATIONS:
|
|
24883
24883
|
return $f;
|
|
24884
|
-
case
|
|
24884
|
+
case He.DEPLOYMENT:
|
|
24885
24885
|
return _u;
|
|
24886
|
-
case
|
|
24886
|
+
case He.CUSTOM_PLUGINS:
|
|
24887
24887
|
return $r;
|
|
24888
24888
|
default:
|
|
24889
24889
|
return null;
|
|
24890
24890
|
}
|
|
24891
|
-
}), o = t, { i18n: { t: i } } =
|
|
24891
|
+
}), o = t, { i18n: { t: i } } = Qe.useI18n(), r = ae(!1), s = V(() => n.showAllCard ? n.plugins : !r.value && n.plugins.length > 9 ? n.plugins.slice(0, 8) : n.plugins), u = V(() => !n.showAllCard && !r.value && n.plugins.length > 9);
|
|
24892
24892
|
function d() {
|
|
24893
24893
|
r.value = !0;
|
|
24894
24894
|
}
|
|
@@ -24917,7 +24917,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24917
24917
|
class: "plugin-card-container",
|
|
24918
24918
|
"data-testid": `plugin-group-${e.name}`
|
|
24919
24919
|
}, [
|
|
24920
|
-
(C(!0), te(Me, null,
|
|
24920
|
+
(C(!0), te(Me, null, Je(s.value, (w) => (C(), Y(EN, {
|
|
24921
24921
|
key: `plugin-card-${w.id}`,
|
|
24922
24922
|
config: e.config,
|
|
24923
24923
|
plugin: w,
|
|
@@ -24950,7 +24950,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24950
24950
|
}, null, 8, ["config", "plugin"])) : me("", !0)
|
|
24951
24951
|
], 64));
|
|
24952
24952
|
}
|
|
24953
|
-
}), lu = /* @__PURE__ */ Se($N, [["__scopeId", "data-v-
|
|
24953
|
+
}), lu = /* @__PURE__ */ Se($N, [["__scopeId", "data-v-27c36a85"]]), NN = { class: "plugin-select-grid" }, PN = { class: "empty-state-title" }, FN = { class: "empty-state-description" }, RN = { key: 1 }, MN = /* @__PURE__ */ ge({
|
|
24954
24954
|
__name: "PluginCatalogGrid",
|
|
24955
24955
|
props: {
|
|
24956
24956
|
config: {},
|
|
@@ -24958,7 +24958,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24958
24958
|
},
|
|
24959
24959
|
emits: ["plugin-clicked", "delete:success"],
|
|
24960
24960
|
setup(e, { emit: t }) {
|
|
24961
|
-
const n = nr.concat(ir), a = t, { i18n: { t: o } } =
|
|
24961
|
+
const n = nr.concat(ir), a = t, { i18n: { t: o } } = Qe.useI18n(), i = (r) => {
|
|
24962
24962
|
a("plugin-clicked", r);
|
|
24963
24963
|
};
|
|
24964
24964
|
return (r, s) => {
|
|
@@ -24980,7 +24980,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
24980
24980
|
]),
|
|
24981
24981
|
_: 1
|
|
24982
24982
|
})),
|
|
24983
|
-
(C(!0), te(Me, null,
|
|
24983
|
+
(C(!0), te(Me, null, Je(l(n), (c) => {
|
|
24984
24984
|
var p;
|
|
24985
24985
|
return C(), te(Me, null, [
|
|
24986
24986
|
(p = e.pluginList) != null && p[c] ? (C(), te("div", { key: c }, [
|
|
@@ -25023,7 +25023,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25023
25023
|
},
|
|
25024
25024
|
emits: ["revalidate", "delete:success"],
|
|
25025
25025
|
setup(e, { emit: t }) {
|
|
25026
|
-
const n = t, a = e, { i18n: { t: o } } =
|
|
25026
|
+
const n = t, a = e, { i18n: { t: o } } = Qe.useI18n(), i = V(() => w.value.some((v) => {
|
|
25027
25027
|
var k;
|
|
25028
25028
|
return !!((k = v.plugin) != null && k.customPluginType);
|
|
25029
25029
|
})), r = V(() => {
|
|
@@ -25215,7 +25215,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25215
25215
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
25216
25216
|
setup(e, { emit: t }) {
|
|
25217
25217
|
var H;
|
|
25218
|
-
const n = t, { i18n: { t: a } } =
|
|
25218
|
+
const n = t, { i18n: { t: a } } = Qe.useI18n(), { pluginMetaData: o } = Qe.usePluginMetaData(), { getMessageFromError: i } = gi(), { sortAlpha: r, objectsAreEqual: s } = Aa(), u = e, { axiosInstance: d } = qn((H = u.config) == null ? void 0 : H.axiosRequestConfig), f = lt("filter-input"), c = ae(""), p = ae(!1), m = ae(!1), g = ae(Object.fromEntries(nr.concat(ir).map((z) => [z, !1]))), y = ae(!0), w = ae(!1), _ = ae(""), h = ae([]), E = ae([]), v = ae({}), k = ae([]), b = ae(!1), O = V(() => b.value ? Df : qf), F = V(() => {
|
|
25219
25219
|
var j;
|
|
25220
25220
|
let z = `${u.config.apiBaseUrl}${vt.select[u.config.app].availablePlugins}`;
|
|
25221
25221
|
return u.config.app === "konnect" ? z = z.replace(/{controlPlaneId}/gi, u.config.controlPlaneId || "") : u.config.app === "kongManager" && (z = ((j = u.config.gatewayInfo) == null ? void 0 : j.edition) === "community" ? `${u.config.apiBaseUrl}${vt.select[u.config.app].availablePluginsForOss}` : z.replace(/\/{workspace}/gi, u.config.workspace ? `/${u.config.workspace}` : "")), z;
|
|
@@ -25274,14 +25274,14 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25274
25274
|
name: K,
|
|
25275
25275
|
available: h.value.includes(R),
|
|
25276
25276
|
disabledMessage: "",
|
|
25277
|
-
group: ((D = o[R]) == null ? void 0 : D.group) ||
|
|
25277
|
+
group: ((D = o[R]) == null ? void 0 : D.group) || He.CUSTOM_PLUGINS
|
|
25278
25278
|
};
|
|
25279
|
-
S.group ===
|
|
25279
|
+
S.group === He.CUSTOM_PLUGINS && (S.customPluginType = E.value.find((I) => I.name === R) ? "streaming" : "schema"), u.disabledPlugins && (S.disabledMessage = u.disabledPlugins[R]);
|
|
25280
25280
|
const W = S.group || a("plugins.select.misc_plugins");
|
|
25281
25281
|
let X = j[W];
|
|
25282
25282
|
return X || (X = []), X.push(S), X.sort(r("name")), j[W] = X, j;
|
|
25283
25283
|
}, {});
|
|
25284
|
-
return u.highlightedPluginIds && u.highlightedPluginIds.length > 0 && (z.
|
|
25284
|
+
return u.highlightedPluginIds && u.highlightedPluginIds.length > 0 && (z[He.FEATURED] = u.highlightedPluginIds.flatMap((j) => {
|
|
25285
25285
|
var K;
|
|
25286
25286
|
const R = o[j];
|
|
25287
25287
|
return R ? {
|
|
@@ -25290,7 +25290,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25290
25290
|
name: R.name || j,
|
|
25291
25291
|
available: h.value.includes(j),
|
|
25292
25292
|
disabledMessage: ((K = u.disabledPlugins) == null ? void 0 : K[j]) || "",
|
|
25293
|
-
group: R.group ||
|
|
25293
|
+
group: R.group || He.CUSTOM_PLUGINS
|
|
25294
25294
|
} : [];
|
|
25295
25295
|
}).filter(Boolean)), z;
|
|
25296
25296
|
};
|
|
@@ -25354,7 +25354,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25354
25354
|
]),
|
|
25355
25355
|
default: P(() => [
|
|
25356
25356
|
Q("div", YN, [
|
|
25357
|
-
(C(!0), te(Me, null,
|
|
25357
|
+
(C(!0), te(Me, null, Je(l(nr), (B) => (C(), te("div", {
|
|
25358
25358
|
key: B,
|
|
25359
25359
|
class: "plugin-filter-item",
|
|
25360
25360
|
"data-testid": `plugin-filter-item-${B}`
|
|
@@ -25387,7 +25387,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25387
25387
|
]),
|
|
25388
25388
|
default: P(() => [
|
|
25389
25389
|
Q("div", ZN, [
|
|
25390
|
-
(C(!0), te(Me, null,
|
|
25390
|
+
(C(!0), te(Me, null, Je(l(ir), (B) => (C(), te("div", {
|
|
25391
25391
|
key: B,
|
|
25392
25392
|
class: "plugin-filter-item",
|
|
25393
25393
|
"data-testid": `plugin-filter-item-${B}`
|
|
@@ -25484,7 +25484,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25484
25484
|
]);
|
|
25485
25485
|
};
|
|
25486
25486
|
}
|
|
25487
|
-
}), YP = /* @__PURE__ */ Se(oP, [["__scopeId", "data-v-
|
|
25487
|
+
}), YP = /* @__PURE__ */ Se(oP, [["__scopeId", "data-v-e844c980"]]), rP = {
|
|
25488
25488
|
key: 1,
|
|
25489
25489
|
class: "datakit-config-card-canvas"
|
|
25490
25490
|
}, sP = {
|
|
@@ -25579,7 +25579,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25579
25579
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
|
|
25580
25580
|
setup(e, { emit: t }) {
|
|
25581
25581
|
var v;
|
|
25582
|
-
const n = t, a = e, { i18n: { t: o } } =
|
|
25582
|
+
const n = t, a = e, { i18n: { t: o } } = Qe.useI18n(), i = Qe.usePluginMetaData(), { setFieldType: r } = Qe.usePluginHelpers(), { getPropValue: s } = Aa(), u = V(() => {
|
|
25583
25583
|
var b;
|
|
25584
25584
|
let k = (b = vt.item[a.config.app]) == null ? void 0 : b[a.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, a.scopedEntityType).replace(/{entityId}/gi, a.scopedEntityId).concat(a.expandPartial ? "?expand_partials=true" : "");
|
|
25585
25585
|
if (a.config.app === "konnect") {
|
|
@@ -25813,7 +25813,7 @@ const w$ = { class: "kong-ui-entities-plugin-form" }, k$ = {
|
|
|
25813
25813
|
]);
|
|
25814
25814
|
};
|
|
25815
25815
|
}
|
|
25816
|
-
}), JP = /* @__PURE__ */ Se(bP, [["__scopeId", "data-v-0546ce1a"]]), { usePluginMetaData: XP, useProvideExperimentalFreeForms: ZP } =
|
|
25816
|
+
}), JP = /* @__PURE__ */ Se(bP, [["__scopeId", "data-v-0546ce1a"]]), { usePluginMetaData: XP, useProvideExperimentalFreeForms: ZP } = Qe;
|
|
25817
25817
|
export {
|
|
25818
25818
|
Ic as EXPERIMENTAL_FREE_FORM_PROVIDER,
|
|
25819
25819
|
Ai as EntityTypeIdField,
|