@kong-ui-public/entities-plugins 9.97.6 → 9.97.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var ch = Object.defineProperty;
|
|
2
2
|
var dh = (e, t, n) => t in e ? ch(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ft = (e, t, n) => dh(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ge, toRef as je, inject as at, ref as ae, computed as F, watch as Ne, onMounted as Ot, resolveComponent as we, createElementBlock as ee, openBlock as w, createVNode as O, markRaw as Oo, provide as lt, createBlock as W, withCtx as R, createElementVNode as H, createCommentVNode as Se, Fragment as Ke, renderList as Ve, toDisplayString as
|
|
4
|
+
import { defineComponent as ge, toRef as je, inject as at, ref as ae, computed as F, watch as Ne, onMounted as Ot, resolveComponent as we, createElementBlock as ee, openBlock as w, createVNode as O, markRaw as Oo, provide as lt, createBlock as W, withCtx as R, createElementVNode as H, createCommentVNode as Se, Fragment as Ke, renderList as Ve, toDisplayString as pe, unref as p, toValue as Pe, useAttrs as qn, useSlots as Jt, mergeProps as He, createSlots as ot, renderSlot as Fe, normalizeProps as gn, guardReactiveProps as xn, createPropsRestProxy as Qt, resolveDynamicComponent as mt, Transition as fh, mergeModels as bs, useModel as Ir, onBeforeMount as $n, createTextVNode as De, normalizeClass as ze, isRef as Hi, useTemplateRef as rt, withKeys as mu, withModifiers as Dt, nextTick as st, useCssVars as pl, reactive as to, toRaw as Tr, watchEffect as ef, shallowRef as ao, onBeforeUnmount as ra, getCurrentScope as tf, effectScope as nf, getCurrentInstance as Gi, onScopeDispose as wi, toRefs as ph, customRef as mh, h as Je, normalizeStyle as Nt, onUnmounted as ml, isMemoSame as gh, readonly as hh, warn as vh, useId as of, Teleport as rf } from "vue";
|
|
5
5
|
import { useStringHelpers as aa, ConfigurationSchemaType as At, useAxios as Vn, useErrors as ei, useDebouncedFilter as yh, EntityFormBlock as gu, useHelpers as sa, EntityBaseFormType as zn, EntityBaseForm as _h, SupportedEntityType as ws, TerraformCodeBlock as bh, YamlCodeBlock as wh, JsonCodeBlock as Eh, useTableState as kh, useGatewayFeatureSupported as Ch, useFetcher as Sh, useDeleteUrlBuilder as xh, FetcherStatus as Ah, EntityBaseTable as Ih, PermissionsWrapper as Un, TableTags as Th, EntityFilter as $h, EntityToggleModal as Nh, EntityDeleteModal as af, EntityTypes as sf, ConfigurationSchemaSection as Eo, useSchemaProvider as Oh, EntityBaseConfigCard as Ph, InternalLinkItem as li } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { marked as br } from "marked";
|
|
7
7
|
import { useRouter as la, useRoute as Mh } from "vue-router";
|
|
8
8
|
import { createI18n as bt, i18nTComponent as Rh } from "@kong-ui-public/i18n";
|
|
9
|
-
import { PluginGroup as Ze, PLUGIN_GROUP_AND_SCOPE_MAP as
|
|
9
|
+
import { PluginGroup as Ze, PLUGIN_GROUP_AND_SCOPE_MAP as le, PluginScope as xt } from "@kong-ui-public/entities-plugins-metadata";
|
|
10
10
|
import { PluginGroup as LB, PluginScope as KB } from "@kong-ui-public/entities-plugins-metadata";
|
|
11
11
|
import { composables as Fh, FORMS_CONFIG as ua, getSharedFormName as lf, customFields as Es, AUTOFILL_SLOT as ti, VueFormGenerator as Ei, AUTOFILL_SLOT_NAME as no, FORMS_API_KEY as Dh, sharedForms as hu } from "@kong-ui-public/forms";
|
|
12
12
|
import { VaultSecretPickerProvider as qa, VaultSecretPicker as Lh } from "@kong-ui-public/entities-vaults";
|
|
@@ -1859,77 +1859,77 @@ const Wn = (e) => {
|
|
|
1859
1859
|
"basic-auth": {
|
|
1860
1860
|
descriptionKey: "plugins.meta.basic-auth.description",
|
|
1861
1861
|
nameKey: "plugins.meta.basic-auth.name",
|
|
1862
|
-
...
|
|
1862
|
+
...le["basic-auth"]
|
|
1863
1863
|
},
|
|
1864
1864
|
"hmac-auth": {
|
|
1865
1865
|
descriptionKey: "plugins.meta.hmac-auth.description",
|
|
1866
1866
|
nameKey: "plugins.meta.hmac-auth.name",
|
|
1867
|
-
...
|
|
1867
|
+
...le["hmac-auth"]
|
|
1868
1868
|
},
|
|
1869
1869
|
"jwt-signer": {
|
|
1870
1870
|
descriptionKey: "plugins.meta.jwt-signer.description",
|
|
1871
1871
|
nameKey: "plugins.meta.jwt-signer.name",
|
|
1872
|
-
...
|
|
1872
|
+
...le["jwt-signer"]
|
|
1873
1873
|
},
|
|
1874
1874
|
jwt: {
|
|
1875
1875
|
descriptionKey: "plugins.meta.jwt.description",
|
|
1876
1876
|
nameKey: "plugins.meta.jwt.name",
|
|
1877
|
-
...
|
|
1877
|
+
...le.jwt
|
|
1878
1878
|
},
|
|
1879
1879
|
"key-auth": {
|
|
1880
1880
|
descriptionKey: "plugins.meta.key-auth.description",
|
|
1881
1881
|
nameKey: "plugins.meta.key-auth.name",
|
|
1882
|
-
...
|
|
1882
|
+
...le["key-auth"]
|
|
1883
1883
|
},
|
|
1884
1884
|
"key-auth-enc": {
|
|
1885
1885
|
descriptionKey: "plugins.meta.key-auth-enc.description",
|
|
1886
1886
|
nameKey: "plugins.meta.key-auth-enc.name",
|
|
1887
|
-
...
|
|
1887
|
+
...le["key-auth-enc"]
|
|
1888
1888
|
},
|
|
1889
1889
|
"ldap-auth-advanced": {
|
|
1890
1890
|
descriptionKey: "plugins.meta.ldap-auth-advanced.description",
|
|
1891
1891
|
nameKey: "plugins.meta.ldap-auth-advanced.name",
|
|
1892
|
-
...
|
|
1892
|
+
...le["ldap-auth-advanced"]
|
|
1893
1893
|
},
|
|
1894
1894
|
"ldap-auth": {
|
|
1895
1895
|
descriptionKey: "plugins.meta.ldap-auth.description",
|
|
1896
1896
|
nameKey: "plugins.meta.ldap-auth.name",
|
|
1897
|
-
...
|
|
1897
|
+
...le["ldap-auth"]
|
|
1898
1898
|
},
|
|
1899
1899
|
"oauth2-introspection": {
|
|
1900
1900
|
descriptionKey: "plugins.meta.oauth2-introspection.description",
|
|
1901
1901
|
nameKey: "plugins.meta.oauth2-introspection.name",
|
|
1902
|
-
...
|
|
1902
|
+
...le["oauth2-introspection"]
|
|
1903
1903
|
},
|
|
1904
1904
|
oauth2: {
|
|
1905
1905
|
descriptionKey: "plugins.meta.oauth2.description",
|
|
1906
1906
|
nameKey: "plugins.meta.oauth2.name",
|
|
1907
|
-
...
|
|
1907
|
+
...le.oauth2
|
|
1908
1908
|
},
|
|
1909
1909
|
"openid-connect": {
|
|
1910
1910
|
descriptionKey: "plugins.meta.openid-connect.description",
|
|
1911
1911
|
nameKey: "plugins.meta.openid-connect.name",
|
|
1912
|
-
...
|
|
1912
|
+
...le["openid-connect"]
|
|
1913
1913
|
},
|
|
1914
1914
|
"mtls-auth": {
|
|
1915
1915
|
descriptionKey: "plugins.meta.mtls-auth.description",
|
|
1916
1916
|
nameKey: "plugins.meta.mtls-auth.name",
|
|
1917
|
-
...
|
|
1917
|
+
...le["mtls-auth"]
|
|
1918
1918
|
},
|
|
1919
1919
|
"vault-auth": {
|
|
1920
1920
|
descriptionKey: "plugins.meta.vault-auth.description",
|
|
1921
1921
|
nameKey: "plugins.meta.vault-auth.name",
|
|
1922
|
-
...
|
|
1922
|
+
...le["vault-auth"]
|
|
1923
1923
|
},
|
|
1924
1924
|
"bot-detection": {
|
|
1925
1925
|
descriptionKey: "plugins.meta.bot-detection.description",
|
|
1926
1926
|
nameKey: "plugins.meta.bot-detection.name",
|
|
1927
|
-
...
|
|
1927
|
+
...le["bot-detection"]
|
|
1928
1928
|
},
|
|
1929
1929
|
cors: {
|
|
1930
1930
|
descriptionKey: "plugins.meta.cors.description",
|
|
1931
1931
|
nameKey: "plugins.meta.cors.name",
|
|
1932
|
-
...
|
|
1932
|
+
...le.cors
|
|
1933
1933
|
},
|
|
1934
1934
|
"ip-restriction": {
|
|
1935
1935
|
descriptionKey: "plugins.meta.ip-restriction.description",
|
|
@@ -1937,17 +1937,17 @@ const Wn = (e) => {
|
|
|
1937
1937
|
fieldRules: {
|
|
1938
1938
|
atLeastOneOf: [["config.allow", "config.deny"]]
|
|
1939
1939
|
},
|
|
1940
|
-
...
|
|
1940
|
+
...le["ip-restriction"]
|
|
1941
1941
|
},
|
|
1942
1942
|
opa: {
|
|
1943
1943
|
descriptionKey: "plugins.meta.opa.description",
|
|
1944
1944
|
nameKey: "plugins.meta.opa.name",
|
|
1945
|
-
...
|
|
1945
|
+
...le.opa
|
|
1946
1946
|
},
|
|
1947
1947
|
"kubernetes-sidecar-injector": {
|
|
1948
1948
|
descriptionKey: "plugins.meta.kubernetes-sidecar-injector.description",
|
|
1949
1949
|
nameKey: "plugins.meta.kubernetes-sidecar-injector.name",
|
|
1950
|
-
...
|
|
1950
|
+
...le["kubernetes-sidecar-injector"]
|
|
1951
1951
|
},
|
|
1952
1952
|
"request-validator": {
|
|
1953
1953
|
descriptionKey: "plugins.meta.request-validator.description",
|
|
@@ -1955,7 +1955,7 @@ const Wn = (e) => {
|
|
|
1955
1955
|
fieldRules: {
|
|
1956
1956
|
atLeastOneOf: [["config.body_schema", "config.parameter_schema"]]
|
|
1957
1957
|
},
|
|
1958
|
-
...
|
|
1958
|
+
...le["request-validator"]
|
|
1959
1959
|
},
|
|
1960
1960
|
acl: {
|
|
1961
1961
|
descriptionKey: "plugins.meta.acl.description",
|
|
@@ -1963,7 +1963,7 @@ const Wn = (e) => {
|
|
|
1963
1963
|
fieldRules: {
|
|
1964
1964
|
onlyOneOf: [["config.allow", "config.deny"]]
|
|
1965
1965
|
},
|
|
1966
|
-
...
|
|
1966
|
+
...le.acl
|
|
1967
1967
|
},
|
|
1968
1968
|
canary: {
|
|
1969
1969
|
descriptionKey: "plugins.meta.canary.description",
|
|
@@ -1971,7 +1971,7 @@ const Wn = (e) => {
|
|
|
1971
1971
|
fieldRules: {
|
|
1972
1972
|
atLeastOneOf: [["config.upstream_uri", "config.upstream_host", "config.upstream_port"]]
|
|
1973
1973
|
},
|
|
1974
|
-
...
|
|
1974
|
+
...le.canary
|
|
1975
1975
|
},
|
|
1976
1976
|
"forward-proxy": {
|
|
1977
1977
|
descriptionKey: "plugins.meta.forward-proxy.description",
|
|
@@ -1984,27 +1984,27 @@ const Wn = (e) => {
|
|
|
1984
1984
|
]
|
|
1985
1985
|
]
|
|
1986
1986
|
},
|
|
1987
|
-
...
|
|
1987
|
+
...le["forward-proxy"]
|
|
1988
1988
|
},
|
|
1989
1989
|
"proxy-cache": {
|
|
1990
1990
|
descriptionKey: "plugins.meta.proxy-cache.description",
|
|
1991
1991
|
nameKey: "plugins.meta.proxy-cache.name",
|
|
1992
|
-
...
|
|
1992
|
+
...le["proxy-cache"]
|
|
1993
1993
|
},
|
|
1994
1994
|
"proxy-cache-advanced": {
|
|
1995
1995
|
descriptionKey: "plugins.meta.proxy-cache-advanced.description",
|
|
1996
1996
|
nameKey: "plugins.meta.proxy-cache-advanced.name",
|
|
1997
|
-
...
|
|
1997
|
+
...le["proxy-cache-advanced"]
|
|
1998
1998
|
},
|
|
1999
1999
|
"graphql-proxy-cache-advanced": {
|
|
2000
2000
|
descriptionKey: "plugins.meta.graphql-proxy-cache-advanced.description",
|
|
2001
2001
|
nameKey: "plugins.meta.graphql-proxy-cache-advanced.name",
|
|
2002
|
-
...
|
|
2002
|
+
...le["graphql-proxy-cache-advanced"]
|
|
2003
2003
|
},
|
|
2004
2004
|
"rate-limiting-advanced": {
|
|
2005
2005
|
descriptionKey: "plugins.meta.rate-limiting-advanced.description",
|
|
2006
2006
|
nameKey: "plugins.meta.rate-limiting-advanced.name",
|
|
2007
|
-
...
|
|
2007
|
+
...le["rate-limiting-advanced"]
|
|
2008
2008
|
},
|
|
2009
2009
|
"rate-limiting": {
|
|
2010
2010
|
descriptionKey: "plugins.meta.rate-limiting.description",
|
|
@@ -2012,12 +2012,12 @@ const Wn = (e) => {
|
|
|
2012
2012
|
fieldRules: {
|
|
2013
2013
|
atLeastOneOf: [["config.second", "config.minute", "config.hour", "config.day", "config.month", "config.year"]]
|
|
2014
2014
|
},
|
|
2015
|
-
...
|
|
2015
|
+
...le["rate-limiting"]
|
|
2016
2016
|
},
|
|
2017
2017
|
"graphql-rate-limiting-advanced": {
|
|
2018
2018
|
descriptionKey: "plugins.meta.graphql-rate-limiting-advanced.description",
|
|
2019
2019
|
nameKey: "plugins.meta.graphql-rate-limiting-advanced.name",
|
|
2020
|
-
...
|
|
2020
|
+
...le["graphql-rate-limiting-advanced"]
|
|
2021
2021
|
},
|
|
2022
2022
|
mocking: {
|
|
2023
2023
|
descriptionKey: "plugins.meta.mocking.description",
|
|
@@ -2025,145 +2025,145 @@ const Wn = (e) => {
|
|
|
2025
2025
|
fieldRules: {
|
|
2026
2026
|
atLeastOneOf: [["config.api_specification_filename", "config.api_specification"]]
|
|
2027
2027
|
},
|
|
2028
|
-
...
|
|
2028
|
+
...le.mocking
|
|
2029
2029
|
},
|
|
2030
2030
|
"request-size-limiting": {
|
|
2031
2031
|
descriptionKey: "plugins.meta.request-size-limiting.description",
|
|
2032
2032
|
nameKey: "plugins.meta.request-size-limiting.name",
|
|
2033
|
-
...
|
|
2033
|
+
...le["request-size-limiting"]
|
|
2034
2034
|
},
|
|
2035
2035
|
"request-termination": {
|
|
2036
2036
|
descriptionKey: "plugins.meta.request-termination.description",
|
|
2037
2037
|
nameKey: "plugins.meta.request-termination.name",
|
|
2038
|
-
...
|
|
2038
|
+
...le["request-termination"]
|
|
2039
2039
|
},
|
|
2040
2040
|
"response-ratelimiting": {
|
|
2041
2041
|
descriptionKey: "plugins.meta.response-ratelimiting.description",
|
|
2042
2042
|
nameKey: "plugins.meta.response-ratelimiting.name",
|
|
2043
|
-
...
|
|
2043
|
+
...le["response-ratelimiting"]
|
|
2044
2044
|
},
|
|
2045
2045
|
"route-by-header": {
|
|
2046
2046
|
descriptionKey: "plugins.meta.route-by-header.description",
|
|
2047
2047
|
nameKey: "plugins.meta.route-by-header.name",
|
|
2048
|
-
...
|
|
2048
|
+
...le["route-by-header"]
|
|
2049
2049
|
},
|
|
2050
2050
|
"ai-proxy": {
|
|
2051
2051
|
descriptionKey: "plugins.meta.ai-proxy.description",
|
|
2052
2052
|
nameKey: "plugins.meta.ai-proxy.name",
|
|
2053
2053
|
useLegacyForm: !0,
|
|
2054
|
-
...
|
|
2054
|
+
...le["ai-proxy"]
|
|
2055
2055
|
},
|
|
2056
2056
|
"ai-prompt-decorator": {
|
|
2057
2057
|
descriptionKey: "plugins.meta.ai-prompt-decorator.description",
|
|
2058
2058
|
nameKey: "plugins.meta.ai-prompt-decorator.name",
|
|
2059
2059
|
useLegacyForm: !0,
|
|
2060
|
-
...
|
|
2060
|
+
...le["ai-prompt-decorator"]
|
|
2061
2061
|
},
|
|
2062
2062
|
"ai-prompt-template": {
|
|
2063
2063
|
descriptionKey: "plugins.meta.ai-prompt-template.description",
|
|
2064
2064
|
nameKey: "plugins.meta.ai-prompt-template.name",
|
|
2065
2065
|
useLegacyForm: !0,
|
|
2066
|
-
...
|
|
2066
|
+
...le["ai-prompt-template"]
|
|
2067
2067
|
},
|
|
2068
2068
|
"ai-prompt-guard": {
|
|
2069
2069
|
descriptionKey: "plugins.meta.ai-prompt-guard.description",
|
|
2070
2070
|
nameKey: "plugins.meta.ai-prompt-guard.name",
|
|
2071
2071
|
useLegacyForm: !0,
|
|
2072
|
-
...
|
|
2072
|
+
...le["ai-prompt-guard"]
|
|
2073
2073
|
},
|
|
2074
2074
|
"ai-request-transformer": {
|
|
2075
2075
|
descriptionKey: "plugins.meta.ai-request-transformer.description",
|
|
2076
2076
|
nameKey: "plugins.meta.ai-request-transformer.name",
|
|
2077
2077
|
useLegacyForm: !0,
|
|
2078
|
-
...
|
|
2078
|
+
...le["ai-request-transformer"]
|
|
2079
2079
|
},
|
|
2080
2080
|
"ai-response-transformer": {
|
|
2081
2081
|
descriptionKey: "plugins.meta.ai-response-transformer.description",
|
|
2082
2082
|
nameKey: "plugins.meta.ai-response-transformer.name",
|
|
2083
2083
|
useLegacyForm: !0,
|
|
2084
|
-
...
|
|
2084
|
+
...le["ai-response-transformer"]
|
|
2085
2085
|
},
|
|
2086
2086
|
"ai-rate-limiting-advanced": {
|
|
2087
2087
|
descriptionKey: "plugins.meta.ai-rate-limiting-advanced.description",
|
|
2088
2088
|
nameKey: "plugins.meta.ai-rate-limiting-advanced.name",
|
|
2089
2089
|
useLegacyForm: !0,
|
|
2090
|
-
...
|
|
2090
|
+
...le["ai-rate-limiting-advanced"]
|
|
2091
2091
|
},
|
|
2092
2092
|
"ai-azure-content-safety": {
|
|
2093
2093
|
descriptionKey: "plugins.meta.ai-azure-content-safety.description",
|
|
2094
2094
|
nameKey: "plugins.meta.ai-azure-content-safety.name",
|
|
2095
2095
|
useLegacyForm: !0,
|
|
2096
|
-
...
|
|
2096
|
+
...le["ai-azure-content-safety"]
|
|
2097
2097
|
},
|
|
2098
2098
|
"aws-lambda": {
|
|
2099
2099
|
descriptionKey: "plugins.meta.aws-lambda.description",
|
|
2100
2100
|
nameKey: "plugins.meta.aws-lambda.name",
|
|
2101
|
-
...
|
|
2101
|
+
...le["aws-lambda"]
|
|
2102
2102
|
},
|
|
2103
2103
|
"azure-functions": {
|
|
2104
2104
|
descriptionKey: "plugins.meta.azure-functions.description",
|
|
2105
2105
|
nameKey: "plugins.meta.azure-functions.name",
|
|
2106
|
-
...
|
|
2106
|
+
...le["azure-functions"]
|
|
2107
2107
|
},
|
|
2108
2108
|
openwhisk: {
|
|
2109
2109
|
descriptionKey: "plugins.meta.openwhisk.description",
|
|
2110
2110
|
nameKey: "plugins.meta.openwhisk.name",
|
|
2111
|
-
...
|
|
2111
|
+
...le.openwhisk
|
|
2112
2112
|
},
|
|
2113
2113
|
"pre-function": {
|
|
2114
2114
|
descriptionKey: "plugins.meta.pre-function.description",
|
|
2115
2115
|
nameKey: "plugins.meta.pre-function.name",
|
|
2116
|
-
...
|
|
2116
|
+
...le["pre-function"]
|
|
2117
2117
|
},
|
|
2118
2118
|
"post-function": {
|
|
2119
2119
|
descriptionKey: "plugins.meta.post-function.description",
|
|
2120
2120
|
nameKey: "plugins.meta.post-function.name",
|
|
2121
|
-
...
|
|
2121
|
+
...le["post-function"]
|
|
2122
2122
|
},
|
|
2123
2123
|
datadog: {
|
|
2124
2124
|
descriptionKey: "plugins.meta.datadog.description",
|
|
2125
2125
|
nameKey: "plugins.meta.datadog.name",
|
|
2126
|
-
...
|
|
2126
|
+
...le.datadog
|
|
2127
2127
|
},
|
|
2128
2128
|
prometheus: {
|
|
2129
2129
|
descriptionKey: "plugins.meta.prometheus.description",
|
|
2130
2130
|
nameKey: "plugins.meta.prometheus.name",
|
|
2131
|
-
...
|
|
2131
|
+
...le.prometheus
|
|
2132
2132
|
},
|
|
2133
2133
|
zipkin: {
|
|
2134
2134
|
descriptionKey: "plugins.meta.zipkin.description",
|
|
2135
2135
|
nameKey: "plugins.meta.zipkin.name",
|
|
2136
|
-
...
|
|
2136
|
+
...le.zipkin
|
|
2137
2137
|
},
|
|
2138
2138
|
collector: {
|
|
2139
2139
|
descriptionKey: "plugins.meta.collector.description",
|
|
2140
2140
|
nameKey: "plugins.meta.collector.name",
|
|
2141
|
-
...
|
|
2141
|
+
...le.collector
|
|
2142
2142
|
},
|
|
2143
2143
|
"response-transformer-advanced": {
|
|
2144
2144
|
descriptionKey: "plugins.meta.response-transformer-advanced.description",
|
|
2145
2145
|
nameKey: "plugins.meta.response-transformer-advanced.name",
|
|
2146
|
-
...
|
|
2146
|
+
...le["response-transformer-advanced"]
|
|
2147
2147
|
},
|
|
2148
2148
|
"correlation-id": {
|
|
2149
2149
|
descriptionKey: "plugins.meta.correlation-id.description",
|
|
2150
2150
|
nameKey: "plugins.meta.correlation-id.name",
|
|
2151
|
-
...
|
|
2151
|
+
...le["correlation-id"]
|
|
2152
2152
|
},
|
|
2153
2153
|
"request-transformer-advanced": {
|
|
2154
2154
|
descriptionKey: "plugins.meta.request-transformer-advanced.description",
|
|
2155
2155
|
nameKey: "plugins.meta.request-transformer-advanced.name",
|
|
2156
|
-
...
|
|
2156
|
+
...le["request-transformer-advanced"]
|
|
2157
2157
|
},
|
|
2158
2158
|
"request-transformer": {
|
|
2159
2159
|
descriptionKey: "plugins.meta.request-transformer.description",
|
|
2160
2160
|
nameKey: "plugins.meta.request-transformer.name",
|
|
2161
|
-
...
|
|
2161
|
+
...le["request-transformer"]
|
|
2162
2162
|
},
|
|
2163
2163
|
"response-transformer": {
|
|
2164
2164
|
descriptionKey: "plugins.meta.response-transformer.description",
|
|
2165
2165
|
nameKey: "plugins.meta.response-transformer.name",
|
|
2166
|
-
...
|
|
2166
|
+
...le["response-transformer"]
|
|
2167
2167
|
},
|
|
2168
2168
|
"route-transformer-advanced": {
|
|
2169
2169
|
descriptionKey: "plugins.meta.route-transformer-advanced.description",
|
|
@@ -2171,22 +2171,22 @@ const Wn = (e) => {
|
|
|
2171
2171
|
fieldRules: {
|
|
2172
2172
|
atLeastOneOf: [["config.path", "config.port", "config.host"]]
|
|
2173
2173
|
},
|
|
2174
|
-
...
|
|
2174
|
+
...le["route-transformer-advanced"]
|
|
2175
2175
|
},
|
|
2176
2176
|
"kafka-upstream": {
|
|
2177
2177
|
descriptionKey: "plugins.meta.kafka-upstream.description",
|
|
2178
2178
|
nameKey: "plugins.meta.kafka-upstream.name",
|
|
2179
|
-
...
|
|
2179
|
+
...le["kafka-upstream"]
|
|
2180
2180
|
},
|
|
2181
2181
|
degraphql: {
|
|
2182
2182
|
descriptionKey: "plugins.meta.degraphql.description",
|
|
2183
2183
|
nameKey: "plugins.meta.degraphql.name",
|
|
2184
|
-
...
|
|
2184
|
+
...le.degraphql
|
|
2185
2185
|
},
|
|
2186
2186
|
"exit-transformer": {
|
|
2187
2187
|
descriptionKey: "plugins.meta.exit-transformer.description",
|
|
2188
2188
|
nameKey: "plugins.meta.exit-transformer.name",
|
|
2189
|
-
...
|
|
2189
|
+
...le["exit-transformer"]
|
|
2190
2190
|
},
|
|
2191
2191
|
jq: {
|
|
2192
2192
|
descriptionKey: "plugins.meta.jq.description",
|
|
@@ -2194,92 +2194,92 @@ const Wn = (e) => {
|
|
|
2194
2194
|
fieldRules: {
|
|
2195
2195
|
atLeastOneOf: [["config.request_jq_program", "config.response_jq_program"]]
|
|
2196
2196
|
},
|
|
2197
|
-
...
|
|
2197
|
+
...le.jq
|
|
2198
2198
|
},
|
|
2199
2199
|
"file-log": {
|
|
2200
2200
|
descriptionKey: "plugins.meta.file-log.description",
|
|
2201
2201
|
nameKey: "plugins.meta.file-log.name",
|
|
2202
|
-
...
|
|
2202
|
+
...le["file-log"]
|
|
2203
2203
|
},
|
|
2204
2204
|
"http-log": {
|
|
2205
2205
|
descriptionKey: "plugins.meta.http-log.description",
|
|
2206
2206
|
nameKey: "plugins.meta.http-log.name",
|
|
2207
|
-
...
|
|
2207
|
+
...le["http-log"]
|
|
2208
2208
|
},
|
|
2209
2209
|
loggly: {
|
|
2210
2210
|
descriptionKey: "plugins.meta.loggly.description",
|
|
2211
2211
|
nameKey: "plugins.meta.loggly.name",
|
|
2212
|
-
...
|
|
2212
|
+
...le.loggly
|
|
2213
2213
|
},
|
|
2214
2214
|
"statsd-advanced": {
|
|
2215
2215
|
descriptionKey: "plugins.meta.statsd-advanced.description",
|
|
2216
2216
|
nameKey: "plugins.meta.statsd-advanced.name",
|
|
2217
|
-
...
|
|
2217
|
+
...le["statsd-advanced"]
|
|
2218
2218
|
},
|
|
2219
2219
|
statsd: {
|
|
2220
2220
|
descriptionKey: "plugins.meta.statsd.description",
|
|
2221
2221
|
nameKey: "plugins.meta.statsd.name",
|
|
2222
|
-
...
|
|
2222
|
+
...le.statsd
|
|
2223
2223
|
},
|
|
2224
2224
|
syslog: {
|
|
2225
2225
|
descriptionKey: "plugins.meta.syslog.description",
|
|
2226
2226
|
nameKey: "plugins.meta.syslog.name",
|
|
2227
|
-
...
|
|
2227
|
+
...le.syslog
|
|
2228
2228
|
},
|
|
2229
2229
|
"tcp-log": {
|
|
2230
2230
|
descriptionKey: "plugins.meta.tcp-log.description",
|
|
2231
2231
|
nameKey: "plugins.meta.tcp-log.name",
|
|
2232
|
-
...
|
|
2232
|
+
...le["tcp-log"]
|
|
2233
2233
|
},
|
|
2234
2234
|
"udp-log": {
|
|
2235
2235
|
descriptionKey: "plugins.meta.udp-log.description",
|
|
2236
2236
|
nameKey: "plugins.meta.udp-log.name",
|
|
2237
|
-
...
|
|
2237
|
+
...le["udp-log"]
|
|
2238
2238
|
},
|
|
2239
2239
|
"kafka-log": {
|
|
2240
2240
|
descriptionKey: "plugins.meta.kafka-log.description",
|
|
2241
2241
|
nameKey: "plugins.meta.kafka-log.name",
|
|
2242
|
-
...
|
|
2242
|
+
...le["kafka-log"]
|
|
2243
2243
|
},
|
|
2244
2244
|
session: {
|
|
2245
2245
|
descriptionKey: "plugins.meta.session.description",
|
|
2246
2246
|
nameKey: "plugins.meta.session.name",
|
|
2247
|
-
...
|
|
2247
|
+
...le.session
|
|
2248
2248
|
},
|
|
2249
2249
|
"upstream-tls": {
|
|
2250
2250
|
descriptionKey: "plugins.meta.upstream-tls.description",
|
|
2251
2251
|
nameKey: "plugins.meta.upstream-tls.name",
|
|
2252
|
-
...
|
|
2252
|
+
...le["upstream-tls"]
|
|
2253
2253
|
},
|
|
2254
2254
|
"application-registration": {
|
|
2255
2255
|
descriptionKey: "plugins.meta.application-registration.description",
|
|
2256
2256
|
nameKey: "plugins.meta.application-registration.name",
|
|
2257
|
-
...
|
|
2257
|
+
...le["application-registration"]
|
|
2258
2258
|
},
|
|
2259
2259
|
"konnect-application-auth": {
|
|
2260
2260
|
descriptionKey: "plugins.meta.konnect-application-auth.description",
|
|
2261
2261
|
nameKey: "plugins.meta.konnect-application-auth.name",
|
|
2262
|
-
...
|
|
2262
|
+
...le["konnect-application-auth"]
|
|
2263
2263
|
},
|
|
2264
2264
|
acme: {
|
|
2265
2265
|
descriptionKey: "plugins.meta.acme.description",
|
|
2266
2266
|
nameKey: "plugins.meta.acme.name",
|
|
2267
|
-
...
|
|
2267
|
+
...le.acme
|
|
2268
2268
|
},
|
|
2269
2269
|
"grpc-gateway": {
|
|
2270
2270
|
descriptionKey: "plugins.meta.grpc-gateway.description",
|
|
2271
2271
|
nameKey: "plugins.meta.grpc-gateway.name",
|
|
2272
|
-
...
|
|
2272
|
+
...le["grpc-gateway"]
|
|
2273
2273
|
},
|
|
2274
2274
|
"grpc-web": {
|
|
2275
2275
|
descriptionKey: "plugins.meta.grpc-web.description",
|
|
2276
2276
|
nameKey: "plugins.meta.grpc-web.name",
|
|
2277
|
-
...
|
|
2277
|
+
...le["grpc-web"]
|
|
2278
2278
|
},
|
|
2279
2279
|
"upstream-timeout": {
|
|
2280
2280
|
descriptionKey: "plugins.meta.upstream-timeout.description",
|
|
2281
2281
|
nameKey: "plugins.meta.upstream-timeout.name",
|
|
2282
|
-
...
|
|
2282
|
+
...le["upstream-timeout"]
|
|
2283
2283
|
},
|
|
2284
2284
|
// New in Kong 3.0
|
|
2285
2285
|
opentelemetry: {
|
|
@@ -2288,12 +2288,12 @@ const Wn = (e) => {
|
|
|
2288
2288
|
fieldRules: {
|
|
2289
2289
|
atLeastOneOf: [["config.traces_endpoint", "config.logs_endpoint"]]
|
|
2290
2290
|
},
|
|
2291
|
-
...
|
|
2291
|
+
...le.opentelemetry
|
|
2292
2292
|
},
|
|
2293
2293
|
"websocket-validator": {
|
|
2294
2294
|
descriptionKey: "plugins.meta.websocket-validator.description",
|
|
2295
2295
|
nameKey: "plugins.meta.websocket-validator.name",
|
|
2296
|
-
...
|
|
2296
|
+
...le["websocket-validator"]
|
|
2297
2297
|
},
|
|
2298
2298
|
"websocket-size-limit": {
|
|
2299
2299
|
descriptionKey: "plugins.meta.websocket-size-limit.description",
|
|
@@ -2303,70 +2303,70 @@ const Wn = (e) => {
|
|
|
2303
2303
|
["config.client_max_payload", "config.upstream_max_payload"]
|
|
2304
2304
|
]
|
|
2305
2305
|
},
|
|
2306
|
-
...
|
|
2306
|
+
...le["websocket-size-limit"]
|
|
2307
2307
|
},
|
|
2308
2308
|
"tls-metadata-headers": {
|
|
2309
2309
|
descriptionKey: "plugins.meta.tls-metadata-headers.description",
|
|
2310
2310
|
nameKey: "plugins.meta.tls-metadata-headers.name",
|
|
2311
|
-
...
|
|
2311
|
+
...le["tls-metadata-headers"]
|
|
2312
2312
|
},
|
|
2313
2313
|
"tls-handshake-modifier": {
|
|
2314
2314
|
descriptionKey: "plugins.meta.tls-handshake-modifier.description",
|
|
2315
2315
|
nameKey: "plugins.meta.tls-handshake-modifier.name",
|
|
2316
|
-
...
|
|
2316
|
+
...le["tls-handshake-modifier"]
|
|
2317
2317
|
},
|
|
2318
2318
|
"oas-validation": {
|
|
2319
2319
|
descriptionKey: "plugins.meta.oas-validation.description",
|
|
2320
2320
|
nameKey: "plugins.meta.oas-validation.name",
|
|
2321
|
-
...
|
|
2321
|
+
...le["oas-validation"]
|
|
2322
2322
|
},
|
|
2323
2323
|
"jwe-decrypt": {
|
|
2324
2324
|
descriptionKey: "plugins.meta.jwe-decrypt.description",
|
|
2325
2325
|
nameKey: "plugins.meta.jwe-decrypt.name",
|
|
2326
|
-
...
|
|
2326
|
+
...le["jwe-decrypt"]
|
|
2327
2327
|
},
|
|
2328
2328
|
"xml-threat-protection": {
|
|
2329
2329
|
descriptionKey: "plugins.meta.xml-threat-protection.description",
|
|
2330
2330
|
nameKey: "plugins.meta.xml-threat-protection.name",
|
|
2331
|
-
...
|
|
2331
|
+
...le["xml-threat-protection"]
|
|
2332
2332
|
},
|
|
2333
2333
|
saml: {
|
|
2334
2334
|
descriptionKey: "plugins.meta.saml.description",
|
|
2335
2335
|
nameKey: "plugins.meta.saml.name",
|
|
2336
|
-
...
|
|
2336
|
+
...le.saml
|
|
2337
2337
|
},
|
|
2338
2338
|
"app-dynamics": {
|
|
2339
2339
|
descriptionKey: "plugins.meta.app-dynamics.description",
|
|
2340
2340
|
nameKey: "plugins.meta.app-dynamics.name",
|
|
2341
|
-
...
|
|
2341
|
+
...le["app-dynamics"]
|
|
2342
2342
|
},
|
|
2343
2343
|
"json-threat-protection": {
|
|
2344
2344
|
descriptionKey: "plugins.meta.json-threat-protection.description",
|
|
2345
2345
|
nameKey: "plugins.meta.json-threat-protection.name",
|
|
2346
|
-
...
|
|
2346
|
+
...le["json-threat-protection"]
|
|
2347
2347
|
},
|
|
2348
2348
|
"standard-webhooks": {
|
|
2349
2349
|
descriptionKey: "plugins.meta.standard-webhooks.description",
|
|
2350
2350
|
nameKey: "plugins.meta.standard-webhooks.name",
|
|
2351
|
-
...
|
|
2351
|
+
...le["standard-webhooks"]
|
|
2352
2352
|
},
|
|
2353
2353
|
"ai-proxy-advanced": {
|
|
2354
2354
|
descriptionKey: "plugins.meta.ai-proxy-advanced.description",
|
|
2355
2355
|
nameKey: "plugins.meta.ai-proxy-advanced.name",
|
|
2356
2356
|
useLegacyForm: !0,
|
|
2357
|
-
...
|
|
2357
|
+
...le["ai-proxy-advanced"]
|
|
2358
2358
|
},
|
|
2359
2359
|
"ai-semantic-cache": {
|
|
2360
2360
|
descriptionKey: "plugins.meta.ai-semantic-cache.description",
|
|
2361
2361
|
nameKey: "plugins.meta.ai-semantic-cache.name",
|
|
2362
2362
|
useLegacyForm: !0,
|
|
2363
|
-
...
|
|
2363
|
+
...le["ai-semantic-cache"]
|
|
2364
2364
|
},
|
|
2365
2365
|
"ai-semantic-prompt-guard": {
|
|
2366
2366
|
descriptionKey: "plugins.meta.ai-semantic-prompt-guard.description",
|
|
2367
2367
|
nameKey: "plugins.meta.ai-semantic-prompt-guard.name",
|
|
2368
2368
|
useLegacyForm: !0,
|
|
2369
|
-
...
|
|
2369
|
+
...le["ai-semantic-prompt-guard"]
|
|
2370
2370
|
},
|
|
2371
2371
|
"header-cert-auth": {
|
|
2372
2372
|
descriptionKey: "plugins.meta.header-cert-auth.description",
|
|
@@ -2379,127 +2379,127 @@ const Wn = (e) => {
|
|
|
2379
2379
|
]
|
|
2380
2380
|
]
|
|
2381
2381
|
},
|
|
2382
|
-
...
|
|
2382
|
+
...le["header-cert-auth"]
|
|
2383
2383
|
},
|
|
2384
2384
|
"upstream-oauth": {
|
|
2385
2385
|
descriptionKey: "plugins.meta.upstream-oauth.description",
|
|
2386
2386
|
nameKey: "plugins.meta.upstream-oauth.name",
|
|
2387
|
-
...
|
|
2387
|
+
...le["upstream-oauth"]
|
|
2388
2388
|
},
|
|
2389
2389
|
confluent: {
|
|
2390
2390
|
descriptionKey: "plugins.meta.confluent.description",
|
|
2391
2391
|
nameKey: "plugins.meta.confluent.name",
|
|
2392
|
-
...
|
|
2392
|
+
...le.confluent
|
|
2393
2393
|
},
|
|
2394
2394
|
"service-protection": {
|
|
2395
2395
|
descriptionKey: "plugins.meta.service-protection.description",
|
|
2396
2396
|
nameKey: "plugins.meta.service-protection.name",
|
|
2397
|
-
...
|
|
2397
|
+
...le["service-protection"]
|
|
2398
2398
|
},
|
|
2399
2399
|
"injection-protection": {
|
|
2400
2400
|
descriptionKey: "plugins.meta.injection-protection.description",
|
|
2401
2401
|
nameKey: "plugins.meta.injection-protection.name",
|
|
2402
|
-
...
|
|
2402
|
+
...le["injection-protection"]
|
|
2403
2403
|
},
|
|
2404
2404
|
redirect: {
|
|
2405
2405
|
descriptionKey: "plugins.meta.redirect.description",
|
|
2406
2406
|
nameKey: "plugins.meta.redirect.name",
|
|
2407
|
-
...
|
|
2407
|
+
...le.redirect
|
|
2408
2408
|
},
|
|
2409
2409
|
"kafka-consume": {
|
|
2410
2410
|
descriptionKey: "plugins.meta.kafka-consume.description",
|
|
2411
2411
|
nameKey: "plugins.meta.kafka-consume.name",
|
|
2412
|
-
...
|
|
2412
|
+
...le["kafka-consume"]
|
|
2413
2413
|
},
|
|
2414
2414
|
"confluent-consume": {
|
|
2415
2415
|
descriptionKey: "plugins.meta.confluent-consume.description",
|
|
2416
2416
|
nameKey: "plugins.meta.confluent-consume.name",
|
|
2417
|
-
...
|
|
2417
|
+
...le["confluent-consume"]
|
|
2418
2418
|
},
|
|
2419
2419
|
"request-callout": {
|
|
2420
2420
|
descriptionKey: "plugins.meta.request-callout.description",
|
|
2421
2421
|
nameKey: "plugins.meta.request-callout.name",
|
|
2422
|
-
...
|
|
2422
|
+
...le["request-callout"]
|
|
2423
2423
|
},
|
|
2424
2424
|
"ai-sanitizer": {
|
|
2425
2425
|
descriptionKey: "plugins.meta.ai-sanitizer.description",
|
|
2426
2426
|
nameKey: "plugins.meta.ai-sanitizer.name",
|
|
2427
2427
|
useLegacyForm: !0,
|
|
2428
|
-
...
|
|
2428
|
+
...le["ai-sanitizer"]
|
|
2429
2429
|
},
|
|
2430
2430
|
"ai-rag-injector": {
|
|
2431
2431
|
descriptionKey: "plugins.meta.ai-rag-injector.description",
|
|
2432
2432
|
nameKey: "plugins.meta.ai-rag-injector.name",
|
|
2433
2433
|
useLegacyForm: !0,
|
|
2434
|
-
...
|
|
2434
|
+
...le["ai-rag-injector"]
|
|
2435
2435
|
},
|
|
2436
2436
|
datakit: {
|
|
2437
2437
|
descriptionKey: "plugins.meta.datakit.description",
|
|
2438
2438
|
nameKey: "plugins.meta.datakit.name",
|
|
2439
2439
|
useUIData: !0,
|
|
2440
|
-
...
|
|
2440
|
+
...le.datakit
|
|
2441
2441
|
},
|
|
2442
2442
|
"ai-prompt-compressor": {
|
|
2443
2443
|
descriptionKey: "plugins.meta.ai-prompt-compressor.description",
|
|
2444
2444
|
nameKey: "plugins.meta.ai-prompt-compressor.name",
|
|
2445
2445
|
useLegacyForm: !0,
|
|
2446
|
-
...
|
|
2446
|
+
...le["ai-prompt-compressor"]
|
|
2447
2447
|
},
|
|
2448
2448
|
"solace-upstream": {
|
|
2449
2449
|
descriptionKey: "plugins.meta.solace-upstream.description",
|
|
2450
2450
|
nameKey: "plugins.meta.solace-upstream.name",
|
|
2451
|
-
...
|
|
2451
|
+
...le["solace-upstream"]
|
|
2452
2452
|
},
|
|
2453
2453
|
"ai-aws-guardrails": {
|
|
2454
2454
|
descriptionKey: "plugins.meta.ai-aws-guardrails.description",
|
|
2455
2455
|
nameKey: "plugins.meta.ai-aws-guardrails.name",
|
|
2456
2456
|
useLegacyForm: !0,
|
|
2457
|
-
...
|
|
2457
|
+
...le["ai-aws-guardrails"]
|
|
2458
2458
|
},
|
|
2459
2459
|
ace: {
|
|
2460
2460
|
descriptionKey: "plugins.meta.ace.description",
|
|
2461
2461
|
nameKey: "plugins.meta.ace.name",
|
|
2462
|
-
...
|
|
2462
|
+
...le.ace
|
|
2463
2463
|
},
|
|
2464
2464
|
"solace-consume": {
|
|
2465
2465
|
descriptionKey: "plugins.meta.solace-consume.description",
|
|
2466
2466
|
nameKey: "plugins.meta.solace-consume.name",
|
|
2467
|
-
...
|
|
2467
|
+
...le["solace-consume"]
|
|
2468
2468
|
},
|
|
2469
2469
|
"solace-log": {
|
|
2470
2470
|
descriptionKey: "plugins.meta.solace-log.description",
|
|
2471
2471
|
nameKey: "plugins.meta.solace-log.name",
|
|
2472
|
-
...
|
|
2472
|
+
...le["solace-log"]
|
|
2473
2473
|
},
|
|
2474
2474
|
"ai-llm-as-judge": {
|
|
2475
2475
|
descriptionKey: "plugins.meta.ai-llm-as-judge.description",
|
|
2476
2476
|
nameKey: "plugins.meta.ai-llm-as-judge.name",
|
|
2477
2477
|
useLegacyForm: !0,
|
|
2478
|
-
...
|
|
2478
|
+
...le["ai-llm-as-judge"]
|
|
2479
2479
|
},
|
|
2480
2480
|
"ai-mcp-proxy": {
|
|
2481
2481
|
descriptionKey: "plugins.meta.ai-mcp-proxy.description",
|
|
2482
2482
|
nameKey: "plugins.meta.ai-mcp-proxy.name",
|
|
2483
2483
|
useLegacyForm: !0,
|
|
2484
|
-
...
|
|
2484
|
+
...le["ai-mcp-proxy"]
|
|
2485
2485
|
},
|
|
2486
2486
|
"ai-gcp-model-armor": {
|
|
2487
2487
|
descriptionKey: "plugins.meta.ai-gcp-model-armor.description",
|
|
2488
2488
|
nameKey: "plugins.meta.ai-gcp-model-armor.name",
|
|
2489
2489
|
useLegacyForm: !0,
|
|
2490
|
-
...
|
|
2490
|
+
...le["ai-gcp-model-armor"]
|
|
2491
2491
|
},
|
|
2492
2492
|
"ai-mcp-oauth2": {
|
|
2493
2493
|
descriptionKey: "plugins.meta.ai-mcp-oauth2.description",
|
|
2494
2494
|
nameKey: "plugins.meta.ai-mcp-oauth2.name",
|
|
2495
2495
|
useLegacyForm: !0,
|
|
2496
|
-
...
|
|
2496
|
+
...le["ai-mcp-oauth2"]
|
|
2497
2497
|
},
|
|
2498
2498
|
"ai-semantic-response-guard": {
|
|
2499
2499
|
descriptionKey: "plugins.meta.ai-semantic-response-guard.description",
|
|
2500
2500
|
nameKey: "plugins.meta.ai-semantic-response-guard.name",
|
|
2501
2501
|
useLegacyForm: !0,
|
|
2502
|
-
...
|
|
2502
|
+
...le["ai-semantic-response-guard"]
|
|
2503
2503
|
}
|
|
2504
2504
|
}, Io = {
|
|
2505
2505
|
acl: {
|
|
@@ -4582,12 +4582,12 @@ const Q1 = (e, t) => {
|
|
|
4582
4582
|
order: -1
|
|
4583
4583
|
// Place redis fields at the top of the advanced fields
|
|
4584
4584
|
});
|
|
4585
|
-
const
|
|
4586
|
-
|
|
4587
|
-
const
|
|
4588
|
-
Z.length > 0 &&
|
|
4585
|
+
const ue = Object.entries(te).filter(([, ke]) => !ke).map(([ke]) => ke.replace(/-/g, ".").replace(/_/g, "-"));
|
|
4586
|
+
ue.length > 0 && console.warn(`Unknown checked fields for plugin ${B}: ${ue.join(", ")}`);
|
|
4587
|
+
const ce = [];
|
|
4588
|
+
Z.length > 0 && ce.push({
|
|
4589
4589
|
fields: Z.sort(Qf)
|
|
4590
|
-
}), (K.length > 0 || z.length > 0) &&
|
|
4590
|
+
}), (K.length > 0 || z.length > 0) && ce.push({
|
|
4591
4591
|
fields: K.sort(ac),
|
|
4592
4592
|
collapsible: {
|
|
4593
4593
|
title: o("plugins.form.grouping.plugin_configuration.title"),
|
|
@@ -4605,7 +4605,7 @@ const Q1 = (e, t) => {
|
|
|
4605
4605
|
emptyState: "plugin-config-empty-state"
|
|
4606
4606
|
}
|
|
4607
4607
|
}), T = {
|
|
4608
|
-
groups:
|
|
4608
|
+
groups: ce
|
|
4609
4609
|
};
|
|
4610
4610
|
}
|
|
4611
4611
|
return {
|
|
@@ -4842,16 +4842,16 @@ const Q1 = (e, t) => {
|
|
|
4842
4842
|
H("ul", null, [
|
|
4843
4843
|
(w(!0), ee(Ke, null, Ve(a.value, (d, c) => (w(), ee("li", {
|
|
4844
4844
|
key: `simple-alert-${c}`
|
|
4845
|
-
},
|
|
4845
|
+
}, pe(d), 1))), 128)),
|
|
4846
4846
|
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (w(), ee("li", tE, [
|
|
4847
4847
|
(w(!0), ee(Ke, null, Ve(t.rules.onlyOneOfMutuallyRequired, (d, c) => (w(), ee("div", {
|
|
4848
4848
|
key: `only-one-mutually-alert-${c}`
|
|
4849
4849
|
}, [
|
|
4850
|
-
H("div", null,
|
|
4850
|
+
H("div", null, pe(p(o)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
4851
4851
|
H("ul", null, [
|
|
4852
4852
|
(w(!0), ee(Ke, null, Ve(d, (f, m) => (w(), ee("li", {
|
|
4853
4853
|
key: `only-one-mutually-alert-${c}-combination-${m}`
|
|
4854
|
-
},
|
|
4854
|
+
}, pe(i(f)), 1))), 128))
|
|
4855
4855
|
])
|
|
4856
4856
|
]))), 128))
|
|
4857
4857
|
])) : Se("", !0)
|
|
@@ -5505,7 +5505,7 @@ const co = /* @__PURE__ */ ge({
|
|
|
5505
5505
|
"tooltip-attributes": p(c).labelAttributes.tooltipAttributes
|
|
5506
5506
|
}), ot({
|
|
5507
5507
|
default: R(() => [
|
|
5508
|
-
De(
|
|
5508
|
+
De(pe(p(c).label) + " ", 1)
|
|
5509
5509
|
]),
|
|
5510
5510
|
_: 2
|
|
5511
5511
|
}, [
|
|
@@ -5885,7 +5885,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
5885
5885
|
"tooltip-attributes": p(c).labelAttributes.tooltipAttributes
|
|
5886
5886
|
}), ot({
|
|
5887
5887
|
default: R(() => [
|
|
5888
|
-
De(
|
|
5888
|
+
De(pe(p(c).label) + " ", 1)
|
|
5889
5889
|
]),
|
|
5890
5890
|
_: 2
|
|
5891
5891
|
}, [
|
|
@@ -6291,7 +6291,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6291
6291
|
"tooltip-attributes": p(u).labelAttributes.tooltipAttributes
|
|
6292
6292
|
}), ot({
|
|
6293
6293
|
default: R(() => [
|
|
6294
|
-
De(
|
|
6294
|
+
De(pe(p(u).label) + " ", 1)
|
|
6295
6295
|
]),
|
|
6296
6296
|
_: 2
|
|
6297
6297
|
}, [
|
|
@@ -6397,7 +6397,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6397
6397
|
Ve(c.value, (T, V) => ({
|
|
6398
6398
|
name: `${p(f)(T, V)}-anchor`,
|
|
6399
6399
|
fn: R(() => [
|
|
6400
|
-
De(
|
|
6400
|
+
De(pe(h(T, V)) + " ", 1),
|
|
6401
6401
|
O(J, {
|
|
6402
6402
|
appearance: "tertiary",
|
|
6403
6403
|
"aria-label": p(i)("actions.remove_entity", { entity: p(i)("plugins.free-form.request-callout.entity_name") }),
|
|
@@ -6799,10 +6799,10 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6799
6799
|
class: "ff-form-config-fields"
|
|
6800
6800
|
}, {
|
|
6801
6801
|
title: R(() => [
|
|
6802
|
-
De(
|
|
6802
|
+
De(pe(p(t)("plugins.form.grouping.plugin_configuration.title")), 1)
|
|
6803
6803
|
]),
|
|
6804
6804
|
"visible-content": R(() => [
|
|
6805
|
-
De(
|
|
6805
|
+
De(pe(p(t)("plugins.form.grouping.plugin_configuration.description")), 1)
|
|
6806
6806
|
]),
|
|
6807
6807
|
default: R(() => [
|
|
6808
6808
|
H("div", fk, [
|
|
@@ -6864,7 +6864,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6864
6864
|
}, null, 8, ["message"])) : (w(), ee("div", gk, [
|
|
6865
6865
|
O(f, gn(xn(p(a).labelAttributes)), ot({
|
|
6866
6866
|
default: R(() => [
|
|
6867
|
-
De(
|
|
6867
|
+
De(pe(p(a).label) + " ", 1)
|
|
6868
6868
|
]),
|
|
6869
6869
|
_: 2
|
|
6870
6870
|
}, [
|
|
@@ -6991,11 +6991,11 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
6991
6991
|
required: ""
|
|
6992
6992
|
}, {
|
|
6993
6993
|
default: R(() => [
|
|
6994
|
-
De(
|
|
6994
|
+
De(pe(p(t)("sp.request_limits.title")), 1)
|
|
6995
6995
|
]),
|
|
6996
6996
|
_: 1
|
|
6997
6997
|
}),
|
|
6998
|
-
H("div", bk,
|
|
6998
|
+
H("div", bk, pe(p(t)("sp.request_limits.subtitle")), 1)
|
|
6999
6999
|
]),
|
|
7000
7000
|
default: R(() => [
|
|
7001
7001
|
H("div", wk, [
|
|
@@ -7015,7 +7015,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7015
7015
|
for: `sp-form-request-limits-item-${j}-legend`
|
|
7016
7016
|
}, {
|
|
7017
7017
|
default: R(() => [
|
|
7018
|
-
De(
|
|
7018
|
+
De(pe(p(t)("sp.request_limits.label_index", { index: j + 1 })), 1)
|
|
7019
7019
|
]),
|
|
7020
7020
|
_: 2
|
|
7021
7021
|
}, 1032, ["for"]),
|
|
@@ -7028,12 +7028,12 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7028
7028
|
name: `$.config.limit.${j}`,
|
|
7029
7029
|
placeholder: p(t)("sp.request_limits.request_number")
|
|
7030
7030
|
}, null, 8, ["name", "placeholder"]),
|
|
7031
|
-
H("div", null,
|
|
7031
|
+
H("div", null, pe(p(t)("sp.request_limits.interval_determiner")), 1),
|
|
7032
7032
|
O(zo, {
|
|
7033
7033
|
name: `$.config.window_size.${j}`,
|
|
7034
7034
|
placeholder: p(t)("sp.request_limits.time_interval")
|
|
7035
7035
|
}, null, 8, ["name", "placeholder"]),
|
|
7036
|
-
H("div", null,
|
|
7036
|
+
H("div", null, pe(p(t)("sp.request_limits.seconds")), 1)
|
|
7037
7037
|
], 8, Sk),
|
|
7038
7038
|
H("div", xk, [
|
|
7039
7039
|
O(A, {
|
|
@@ -7060,17 +7060,17 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7060
7060
|
]))), 128))
|
|
7061
7061
|
]),
|
|
7062
7062
|
h.value.length > 0 ? (w(), ee("div", Ak, [
|
|
7063
|
-
H("div", null,
|
|
7063
|
+
H("div", null, pe(p(t)("sp.start_with_a_use_case")), 1),
|
|
7064
7064
|
H("div", Ik, [
|
|
7065
7065
|
(w(!0), ee(Ke, null, Ve(h.value, (P, j) => (w(), W(k, {
|
|
7066
7066
|
key: `use-case-${j}`,
|
|
7067
7067
|
"max-width": "300"
|
|
7068
7068
|
}, {
|
|
7069
7069
|
content: R(() => [
|
|
7070
|
-
H("div", null,
|
|
7070
|
+
H("div", null, pe(P.description), 1),
|
|
7071
7071
|
b[1] || (b[1] = H("br", null, null, -1)),
|
|
7072
|
-
H("div", null,
|
|
7073
|
-
H("div", null,
|
|
7072
|
+
H("div", null, pe(p(t)("sp.request_limits.label")) + ": " + pe(P.config.limit), 1),
|
|
7073
|
+
H("div", null, pe(p(t)("sp.request_limits.time_interval")) + ": " + pe(P.config.window_size), 1)
|
|
7074
7074
|
]),
|
|
7075
7075
|
default: R(() => [
|
|
7076
7076
|
O(S, {
|
|
@@ -7079,7 +7079,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7079
7079
|
onClick: () => v(P, `${d.value}-${j}`)
|
|
7080
7080
|
}, {
|
|
7081
7081
|
default: R(() => [
|
|
7082
|
-
De(
|
|
7082
|
+
De(pe(P.label), 1)
|
|
7083
7083
|
]),
|
|
7084
7084
|
_: 2
|
|
7085
7085
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -7114,7 +7114,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7114
7114
|
}
|
|
7115
7115
|
}, {
|
|
7116
7116
|
default: R(() => [
|
|
7117
|
-
De(
|
|
7117
|
+
De(pe(p(t)("sp.error_message.label")), 1)
|
|
7118
7118
|
]),
|
|
7119
7119
|
_: 1
|
|
7120
7120
|
}, 8, ["info"]),
|
|
@@ -7184,7 +7184,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7184
7184
|
class: "partial-config-card-row"
|
|
7185
7185
|
}, [
|
|
7186
7186
|
H("div", Rk, [
|
|
7187
|
-
H("div", Fk,
|
|
7187
|
+
H("div", Fk, pe(v), 1)
|
|
7188
7188
|
]),
|
|
7189
7189
|
H("div", {
|
|
7190
7190
|
class: "config-card-row-value",
|
|
@@ -7202,7 +7202,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7202
7202
|
], 8, Bk)) : (w(), ee("div", {
|
|
7203
7203
|
key: 1,
|
|
7204
7204
|
"data-testid": `${h}-plain-text`
|
|
7205
|
-
},
|
|
7205
|
+
}, pe(g), 9, jk))
|
|
7206
7206
|
])) : (w(), ee("div", {
|
|
7207
7207
|
key: 0,
|
|
7208
7208
|
"data-testid": `${h}-no-value`
|
|
@@ -7417,7 +7417,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7417
7417
|
default: R(() => [
|
|
7418
7418
|
O(Z, { appearance: "success" }, {
|
|
7419
7419
|
default: R(() => [
|
|
7420
|
-
De(
|
|
7420
|
+
De(pe(p(o)("redis.shared_configuration.badge")), 1)
|
|
7421
7421
|
]),
|
|
7422
7422
|
_: 1
|
|
7423
7423
|
})
|
|
@@ -7436,7 +7436,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7436
7436
|
}, null, 8, ["modelValue", "description", "label"])
|
|
7437
7437
|
]),
|
|
7438
7438
|
f.value ? (w(), ee("div", tC, [
|
|
7439
|
-
H("div", nC,
|
|
7439
|
+
H("div", nC, pe(p(o)("redis.shared_configuration.title")), 1),
|
|
7440
7440
|
H("div", oC, [
|
|
7441
7441
|
O(z, {
|
|
7442
7442
|
class: "redis-config-select-trigger",
|
|
@@ -7451,27 +7451,27 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7451
7451
|
onQueryChange: p(A)
|
|
7452
7452
|
}, {
|
|
7453
7453
|
"selected-item-template": R(({ item: te }) => [
|
|
7454
|
-
H("div", iC,
|
|
7454
|
+
H("div", iC, pe(te.name), 1)
|
|
7455
7455
|
]),
|
|
7456
7456
|
"item-template": R(({ item: te }) => [
|
|
7457
7457
|
H("div", {
|
|
7458
7458
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
7459
7459
|
"data-testid": `redis-configuration-dropdown-item-${te.name}`
|
|
7460
7460
|
}, [
|
|
7461
|
-
H("span", aC,
|
|
7461
|
+
H("span", aC, pe(te.name), 1),
|
|
7462
7462
|
O(Z, {
|
|
7463
7463
|
appearance: "info",
|
|
7464
7464
|
class: "select-item-label"
|
|
7465
7465
|
}, {
|
|
7466
7466
|
default: R(() => [
|
|
7467
|
-
De(
|
|
7467
|
+
De(pe(te.tag), 1)
|
|
7468
7468
|
]),
|
|
7469
7469
|
_: 2
|
|
7470
7470
|
}, 1024)
|
|
7471
7471
|
], 8, rC)
|
|
7472
7472
|
]),
|
|
7473
7473
|
empty: R(() => [
|
|
7474
|
-
H("div", sC,
|
|
7474
|
+
H("div", sC, pe(p(o)("redis.shared_configuration.empty_state")), 1)
|
|
7475
7475
|
]),
|
|
7476
7476
|
"dropdown-footer-text": R(() => [
|
|
7477
7477
|
H("div", {
|
|
@@ -7480,7 +7480,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7480
7480
|
onClick: q[2] || (q[2] = () => d.value = !0)
|
|
7481
7481
|
}, [
|
|
7482
7482
|
O(p(Wt), { size: p(pi) }, null, 8, ["size"]),
|
|
7483
|
-
H("span", null,
|
|
7483
|
+
H("span", null, pe(p(o)("redis.shared_configuration.create_new_configuration", { type: p(aE)(p(l)) })), 1)
|
|
7484
7484
|
])
|
|
7485
7485
|
]),
|
|
7486
7486
|
_: 1
|
|
@@ -7490,7 +7490,7 @@ const FE = ["data-testid"], DE = ["data-testid"], LE = ["innerHTML"], KE = ["dat
|
|
|
7490
7490
|
key: 0,
|
|
7491
7491
|
"config-fields": c.value
|
|
7492
7492
|
}, null, 8, ["config-fields"])) : Se("", !0),
|
|
7493
|
-
j.value ? (w(), ee("p", lC,
|
|
7493
|
+
j.value ? (w(), ee("p", lC, pe(j.value || p(o)("redis.shared_configuration.error")), 1)) : Se("", !0)
|
|
7494
7494
|
])) : (w(), W(Mt, He({ key: 1 }, i, {
|
|
7495
7495
|
"as-child": "",
|
|
7496
7496
|
"fields-order": p(pc),
|
|
@@ -9280,7 +9280,7 @@ const Lx = `nodes:
|
|
|
9280
9280
|
]),
|
|
9281
9281
|
default: R(() => [
|
|
9282
9282
|
H("div", qx, [
|
|
9283
|
-
De(
|
|
9283
|
+
De(pe(p(o)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
9284
9284
|
(w(), ee(Ke, null, Ve(zs, (f, m) => O(p(dn), {
|
|
9285
9285
|
key: m,
|
|
9286
9286
|
appearance: "secondary",
|
|
@@ -9288,7 +9288,7 @@ const Lx = `nodes:
|
|
|
9288
9288
|
onClick: (h) => l(m)
|
|
9289
9289
|
}, {
|
|
9290
9290
|
default: R(() => [
|
|
9291
|
-
De(
|
|
9291
|
+
De(pe(p(o)(`plugins.free-form.datakit.examples.${m}`)), 1)
|
|
9292
9292
|
]),
|
|
9293
9293
|
_: 2
|
|
9294
9294
|
}, 1032, ["onClick"])), 64))
|
|
@@ -9866,7 +9866,7 @@ const [fA, pA] = pf(
|
|
|
9866
9866
|
clone: Xn,
|
|
9867
9867
|
onHistoryChange: (E) => {
|
|
9868
9868
|
var C;
|
|
9869
|
-
E !== "clear" && ((C = o.onChange) == null || C.call(o,
|
|
9869
|
+
E !== "clear" && ((C = o.onChange) == null || C.call(o, fe(), he()));
|
|
9870
9870
|
}
|
|
9871
9871
|
}), u = ae(!1), d = ae(/* @__PURE__ */ new Set());
|
|
9872
9872
|
function c() {
|
|
@@ -10010,7 +10010,7 @@ const [fA, pA] = pf(
|
|
|
10010
10010
|
const I = U.fields.input, G = U.fields.output, Y = I.find((L) => L.id === C) ?? G.find((L) => L.id === C);
|
|
10011
10011
|
Y && (Y.name = N, $ && l.commit());
|
|
10012
10012
|
}
|
|
10013
|
-
function
|
|
10013
|
+
function ue(E, C, N = !0, $ = !0) {
|
|
10014
10014
|
const U = M(E);
|
|
10015
10015
|
if (!U) return;
|
|
10016
10016
|
const I = U.fields.input, G = U.fields.output, Y = I.findIndex((D) => D.id === C);
|
|
@@ -10024,7 +10024,7 @@ const [fA, pA] = pf(
|
|
|
10024
10024
|
const oe = A();
|
|
10025
10025
|
oe.ok || console.warn("[removeField] topology invalid:", oe.errors.join("; ")), $ && l.commit();
|
|
10026
10026
|
}
|
|
10027
|
-
function
|
|
10027
|
+
function ce(E, C = !0) {
|
|
10028
10028
|
const N = b(E), $ = _(N);
|
|
10029
10029
|
if (!$.ok) {
|
|
10030
10030
|
console.warn(
|
|
@@ -10043,7 +10043,7 @@ const [fA, pA] = pf(
|
|
|
10043
10043
|
return C && l.commit(), U.id;
|
|
10044
10044
|
}
|
|
10045
10045
|
function ke(E, C, N = !0) {
|
|
10046
|
-
Ae(E, !1),
|
|
10046
|
+
Ae(E, !1), ce(C, !1), N && l.commit();
|
|
10047
10047
|
}
|
|
10048
10048
|
function Ae(E, C = !0) {
|
|
10049
10049
|
const N = i.value.edges.findIndex((I) => I.id === E);
|
|
@@ -10066,13 +10066,13 @@ const [fA, pA] = pf(
|
|
|
10066
10066
|
Ae($.id, !1);
|
|
10067
10067
|
C && l.commit();
|
|
10068
10068
|
}
|
|
10069
|
-
function
|
|
10069
|
+
function de(E, C = !0) {
|
|
10070
10070
|
const N = x(E);
|
|
10071
10071
|
for (const $ of N)
|
|
10072
10072
|
Ae($.id, !1);
|
|
10073
10073
|
C && l.commit();
|
|
10074
10074
|
}
|
|
10075
|
-
function
|
|
10075
|
+
function fe() {
|
|
10076
10076
|
var C, N, $, U, I;
|
|
10077
10077
|
const E = [];
|
|
10078
10078
|
for (const G of i.value.nodes) {
|
|
@@ -10082,21 +10082,21 @@ const [fA, pA] = pf(
|
|
|
10082
10082
|
const L = {};
|
|
10083
10083
|
let oe;
|
|
10084
10084
|
const D = {};
|
|
10085
|
-
for (const
|
|
10086
|
-
const _e = M(
|
|
10085
|
+
for (const ye of i.value.edges.filter((_e) => _e.target === G.id)) {
|
|
10086
|
+
const _e = M(ye.source);
|
|
10087
10087
|
if (!_e)
|
|
10088
10088
|
continue;
|
|
10089
|
-
const Oe = (C = Fn(_e, "output",
|
|
10089
|
+
const Oe = (C = Fn(_e, "output", ye.sourceField)) == null ? void 0 : C.name, Le = Oe ? `${_e.name}.${Oe}` : _e.name, be = (N = Fn(G, "input", ye.targetField)) == null ? void 0 : N.name;
|
|
10090
10090
|
be ? L[be] = Le : Y === void 0 && (Y = Le);
|
|
10091
10091
|
}
|
|
10092
|
-
for (const
|
|
10093
|
-
const _e = M(
|
|
10092
|
+
for (const ye of i.value.edges.filter((_e) => _e.source === G.id)) {
|
|
10093
|
+
const _e = M(ye.target);
|
|
10094
10094
|
if (!_e)
|
|
10095
10095
|
continue;
|
|
10096
10096
|
const Oe = _e.type;
|
|
10097
10097
|
if (!un(Oe) || !(($ = ka[Oe].io) != null && $.input))
|
|
10098
10098
|
continue;
|
|
10099
|
-
const Le = (U = Fn(_e, "input",
|
|
10099
|
+
const Le = (U = Fn(_e, "input", ye.targetField)) == null ? void 0 : U.name, be = Le ? `${_e.name}.${Le}` : _e.name, me = (I = Fn(G, "output", ye.sourceField)) == null ? void 0 : I.name;
|
|
10100
10100
|
me ? D[me] = be : oe === void 0 && (oe = be);
|
|
10101
10101
|
}
|
|
10102
10102
|
const Ce = {
|
|
@@ -10108,7 +10108,7 @@ const [fA, pA] = pf(
|
|
|
10108
10108
|
}
|
|
10109
10109
|
return E;
|
|
10110
10110
|
}
|
|
10111
|
-
function
|
|
10111
|
+
function he() {
|
|
10112
10112
|
return i.value.nodes.map(
|
|
10113
10113
|
(E) => Xn({
|
|
10114
10114
|
name: E.name,
|
|
@@ -10122,7 +10122,7 @@ const [fA, pA] = pf(
|
|
|
10122
10122
|
})
|
|
10123
10123
|
);
|
|
10124
10124
|
}
|
|
10125
|
-
function
|
|
10125
|
+
function ve(E, C, N) {
|
|
10126
10126
|
N && l.commit(), i.value = Pc(E, C, N), N || l.clear();
|
|
10127
10127
|
}
|
|
10128
10128
|
return {
|
|
@@ -10158,17 +10158,17 @@ const [fA, pA] = pf(
|
|
|
10158
10158
|
// field ops
|
|
10159
10159
|
addField: se,
|
|
10160
10160
|
renameField: te,
|
|
10161
|
-
removeField:
|
|
10161
|
+
removeField: ue,
|
|
10162
10162
|
// edge ops
|
|
10163
|
-
connectEdge:
|
|
10163
|
+
connectEdge: ce,
|
|
10164
10164
|
replaceConnection: ke,
|
|
10165
10165
|
disconnectEdge: Ae,
|
|
10166
10166
|
disconnectInEdges: ie,
|
|
10167
|
-
disconnectOutEdges:
|
|
10167
|
+
disconnectOutEdges: de,
|
|
10168
10168
|
// serialization
|
|
10169
|
-
toConfigNodes:
|
|
10170
|
-
toUINodes:
|
|
10171
|
-
load:
|
|
10169
|
+
toConfigNodes: fe,
|
|
10170
|
+
toUINodes: he,
|
|
10171
|
+
load: ve,
|
|
10172
10172
|
// history
|
|
10173
10173
|
commit: l.commit,
|
|
10174
10174
|
undo: l.undo,
|
|
@@ -12550,12 +12550,12 @@ function aN() {
|
|
|
12550
12550
|
}).on("interrupt.zoom end.zoom", function() {
|
|
12551
12551
|
k(this, arguments).event(re).end();
|
|
12552
12552
|
}).tween("zoom", function() {
|
|
12553
|
-
var X = this, q = arguments, Z = k(X, q).event(re), K = t.apply(X, q), z = B == null ? A(K) : typeof B == "function" ? B.apply(X, q) : B, se = Math.max(K[1][0] - K[0][0], K[1][1] - K[0][1]), te = X.__zoom,
|
|
12553
|
+
var X = this, q = arguments, Z = k(X, q).event(re), K = t.apply(X, q), z = B == null ? A(K) : typeof B == "function" ? B.apply(X, q) : B, se = Math.max(K[1][0] - K[0][0], K[1][1] - K[0][1]), te = X.__zoom, ue = typeof V == "function" ? V.apply(X, q) : V, ce = l(te.invert(z).concat(se / te.k), ue.invert(z).concat(se / ue.k));
|
|
12554
12554
|
return function(ke) {
|
|
12555
12555
|
if (ke === 1)
|
|
12556
|
-
ke =
|
|
12556
|
+
ke = ue;
|
|
12557
12557
|
else {
|
|
12558
|
-
var Ae =
|
|
12558
|
+
var Ae = ce(ke), ie = se / Ae[2];
|
|
12559
12559
|
ke = new kn(ie, z[0] - Ae[0] * ie, z[1] - Ae[1] * ie);
|
|
12560
12560
|
}
|
|
12561
12561
|
Z.zoom(null, ke);
|
|
@@ -12619,8 +12619,8 @@ function aN() {
|
|
|
12619
12619
|
Sm(T.view), os(T), re.mouse = [q, this.__zoom.invert(q)], Ar(this), re.start();
|
|
12620
12620
|
function z(te) {
|
|
12621
12621
|
if (di(te), !re.moved) {
|
|
12622
|
-
var
|
|
12623
|
-
re.moved =
|
|
12622
|
+
var ue = te.clientX - Z, ce = te.clientY - K;
|
|
12623
|
+
re.moved = ue * ue + ce * ce > v;
|
|
12624
12624
|
}
|
|
12625
12625
|
re.event(te).zoom("mouse", n(_(re.that.__zoom, re.mouse[0] = on(te, B), re.mouse[1]), re.extent, a));
|
|
12626
12626
|
}
|
|
@@ -12650,8 +12650,8 @@ function aN() {
|
|
|
12650
12650
|
for (di(T), q = 0; q < X; ++q)
|
|
12651
12651
|
Z = re[q], K = on(Z, this), B.touch0 && B.touch0[2] === Z.identifier ? B.touch0[0] = K : B.touch1 && B.touch1[2] === Z.identifier && (B.touch1[0] = K);
|
|
12652
12652
|
if (Z = B.that.__zoom, B.touch1) {
|
|
12653
|
-
var se = B.touch0[0], te = B.touch0[1],
|
|
12654
|
-
Z = b(Z, Math.sqrt(ke / Ae)), K = [(se[0] +
|
|
12653
|
+
var se = B.touch0[0], te = B.touch0[1], ue = B.touch1[0], ce = B.touch1[1], ke = (ke = ue[0] - se[0]) * ke + (ke = ue[1] - se[1]) * ke, Ae = (Ae = ce[0] - te[0]) * Ae + (Ae = ce[1] - te[1]) * Ae;
|
|
12654
|
+
Z = b(Z, Math.sqrt(ke / Ae)), K = [(se[0] + ue[0]) / 2, (se[1] + ue[1]) / 2], z = [(te[0] + ce[0]) / 2, (te[1] + ce[1]) / 2];
|
|
12655
12655
|
} else if (B.touch0)
|
|
12656
12656
|
K = B.touch0[0], z = B.touch0[1];
|
|
12657
12657
|
else
|
|
@@ -13668,19 +13668,19 @@ function rg(e) {
|
|
|
13668
13668
|
emits: A
|
|
13669
13669
|
} = Qe(), { onStart: S, onDrag: k, onStop: M, onClick: P, el: j, disabled: Q, id: J, selectable: x, dragHandle: ne } = e, T = ao(!1);
|
|
13670
13670
|
let V = [], B, re = null, X = { x: void 0, y: void 0 }, q = { x: 0, y: 0 }, Z = null, K = !1, z = 0, se = !1;
|
|
13671
|
-
const te = VN(),
|
|
13672
|
-
X = { x:
|
|
13673
|
-
let
|
|
13671
|
+
const te = VN(), ue = ({ x: fe, y: he }) => {
|
|
13672
|
+
X = { x: fe, y: he };
|
|
13673
|
+
let ve = !1;
|
|
13674
13674
|
if (V = V.map((E) => {
|
|
13675
|
-
const C = { x:
|
|
13675
|
+
const C = { x: fe - E.distance.x, y: he - E.distance.y }, { computedPosition: N } = ru(
|
|
13676
13676
|
E,
|
|
13677
13677
|
n.value ? Na(C, o.value) : C,
|
|
13678
13678
|
A.error,
|
|
13679
13679
|
a.value,
|
|
13680
13680
|
E.parentNode ? m(E.parentNode) : void 0
|
|
13681
13681
|
);
|
|
13682
|
-
return
|
|
13683
|
-
}), !!
|
|
13682
|
+
return ve = ve || E.position.x !== N.x || E.position.y !== N.y, E.position = N, E;
|
|
13683
|
+
}), !!ve && (_(V, !0, !0), T.value = !0, Z)) {
|
|
13684
13684
|
const [E, C] = rs({
|
|
13685
13685
|
id: J,
|
|
13686
13686
|
dragItems: V,
|
|
@@ -13688,72 +13688,72 @@ function rg(e) {
|
|
|
13688
13688
|
});
|
|
13689
13689
|
k({ event: Z, node: E, nodes: C });
|
|
13690
13690
|
}
|
|
13691
|
-
},
|
|
13691
|
+
}, ce = () => {
|
|
13692
13692
|
if (!re)
|
|
13693
13693
|
return;
|
|
13694
|
-
const [
|
|
13695
|
-
if (
|
|
13696
|
-
const
|
|
13697
|
-
x: (X.x ?? 0) -
|
|
13698
|
-
y: (X.y ?? 0) -
|
|
13694
|
+
const [fe, he] = Qm(q, re, d.value);
|
|
13695
|
+
if (fe !== 0 || he !== 0) {
|
|
13696
|
+
const ve = {
|
|
13697
|
+
x: (X.x ?? 0) - fe / l.value.zoom,
|
|
13698
|
+
y: (X.y ?? 0) - he / l.value.zoom
|
|
13699
13699
|
};
|
|
13700
|
-
f({ x:
|
|
13700
|
+
f({ x: fe, y: he }) && ue(ve);
|
|
13701
13701
|
}
|
|
13702
|
-
z = requestAnimationFrame(
|
|
13703
|
-
}, ke = (
|
|
13702
|
+
z = requestAnimationFrame(ce);
|
|
13703
|
+
}, ke = (fe, he) => {
|
|
13704
13704
|
K = !0;
|
|
13705
|
-
const
|
|
13706
|
-
!g.value && !h.value &&
|
|
13707
|
-
|
|
13705
|
+
const ve = m(J);
|
|
13706
|
+
!g.value && !h.value && ve && (ve.selected || y()), ve && Pe(x) && g.value && rl(
|
|
13707
|
+
ve,
|
|
13708
13708
|
h.value,
|
|
13709
13709
|
b,
|
|
13710
13710
|
y,
|
|
13711
13711
|
v,
|
|
13712
13712
|
!1,
|
|
13713
|
-
|
|
13713
|
+
he
|
|
13714
13714
|
);
|
|
13715
|
-
const E = te(
|
|
13715
|
+
const E = te(fe.sourceEvent);
|
|
13716
13716
|
if (X = E, V = wN(r.value, c.value, E, m, J), V.length) {
|
|
13717
13717
|
const [C, N] = rs({
|
|
13718
13718
|
id: J,
|
|
13719
13719
|
dragItems: V,
|
|
13720
13720
|
findNode: m
|
|
13721
13721
|
});
|
|
13722
|
-
S({ event:
|
|
13723
|
-
}
|
|
13724
|
-
}, Ae = (
|
|
13725
|
-
var
|
|
13726
|
-
|
|
13727
|
-
}, ie = (
|
|
13728
|
-
const
|
|
13729
|
-
if (!se && K && u.value && (se = !0,
|
|
13730
|
-
const E =
|
|
13731
|
-
Math.sqrt(E * E + C * C) > s.value && ke(
|
|
13732
|
-
}
|
|
13733
|
-
(X.x !==
|
|
13734
|
-
},
|
|
13735
|
-
let
|
|
13722
|
+
S({ event: fe.sourceEvent, node: C, nodes: N });
|
|
13723
|
+
}
|
|
13724
|
+
}, Ae = (fe, he) => {
|
|
13725
|
+
var ve;
|
|
13726
|
+
fe.sourceEvent.type === "touchmove" && fe.sourceEvent.touches.length > 1 || (s.value === 0 && ke(fe, he), X = te(fe.sourceEvent), re = ((ve = t.value) == null ? void 0 : ve.getBoundingClientRect()) || null, q = cn(fe.sourceEvent, re));
|
|
13727
|
+
}, ie = (fe, he) => {
|
|
13728
|
+
const ve = te(fe.sourceEvent);
|
|
13729
|
+
if (!se && K && u.value && (se = !0, ce()), !K) {
|
|
13730
|
+
const E = ve.xSnapped - (X.x ?? 0), C = ve.ySnapped - (X.y ?? 0);
|
|
13731
|
+
Math.sqrt(E * E + C * C) > s.value && ke(fe, he);
|
|
13732
|
+
}
|
|
13733
|
+
(X.x !== ve.xSnapped || X.y !== ve.ySnapped) && V.length && K && (Z = fe.sourceEvent, q = cn(fe.sourceEvent, re), ue(ve));
|
|
13734
|
+
}, de = (fe) => {
|
|
13735
|
+
let he = !1;
|
|
13736
13736
|
if (!K && !T.value && !h.value) {
|
|
13737
|
-
const
|
|
13738
|
-
$ !== 0 && $ <= s.value && (P == null || P(
|
|
13737
|
+
const ve = fe.sourceEvent, E = te(ve), C = E.xSnapped - (X.x ?? 0), N = E.ySnapped - (X.y ?? 0), $ = Math.sqrt(C * C + N * N);
|
|
13738
|
+
$ !== 0 && $ <= s.value && (P == null || P(ve), he = !0);
|
|
13739
13739
|
}
|
|
13740
|
-
if (V.length && !
|
|
13740
|
+
if (V.length && !he) {
|
|
13741
13741
|
_(V, !1, !1);
|
|
13742
|
-
const [
|
|
13742
|
+
const [ve, E] = rs({
|
|
13743
13743
|
id: J,
|
|
13744
13744
|
dragItems: V,
|
|
13745
13745
|
findNode: m
|
|
13746
13746
|
});
|
|
13747
|
-
M({ event:
|
|
13747
|
+
M({ event: fe.sourceEvent, node: ve, nodes: E });
|
|
13748
13748
|
}
|
|
13749
13749
|
V = [], T.value = !1, se = !1, K = !1, X = { x: void 0, y: void 0 }, cancelAnimationFrame(z);
|
|
13750
13750
|
};
|
|
13751
|
-
return Ne([() => Pe(Q), j], ([
|
|
13752
|
-
if (
|
|
13753
|
-
const C = Gt(
|
|
13754
|
-
|
|
13751
|
+
return Ne([() => Pe(Q), j], ([fe, he], ve, E) => {
|
|
13752
|
+
if (he) {
|
|
13753
|
+
const C = Gt(he);
|
|
13754
|
+
fe || (B = pT().on("start", (N) => Ae(N, he)).on("drag", (N) => ie(N, he)).on("end", (N) => de(N)).filter((N) => {
|
|
13755
13755
|
const $ = N.target, U = Pe(ne);
|
|
13756
|
-
return !N.button && (!i.value || !ld($, `.${i.value}`,
|
|
13756
|
+
return !N.button && (!i.value || !ld($, `.${i.value}`, he) && (!U || ld($, U, he)));
|
|
13757
13757
|
}), C.call(B)), E(() => {
|
|
13758
13758
|
C.on(".drag", null), B && (B.on("start", null), B.on("drag", null), B.on("end", null));
|
|
13759
13759
|
});
|
|
@@ -13859,7 +13859,7 @@ function ag({
|
|
|
13859
13859
|
const X = Pe(n) === "target", q = au(B), Z = td(B.target);
|
|
13860
13860
|
if (q && B.button === 0 || !q) {
|
|
13861
13861
|
let K = function(L) {
|
|
13862
|
-
E = cn(L,
|
|
13862
|
+
E = cn(L, fe), ue = ON(
|
|
13863
13863
|
Vi(E, k.value, !1, [1, 1]),
|
|
13864
13864
|
d.value,
|
|
13865
13865
|
Q.value,
|
|
@@ -13868,7 +13868,7 @@ function ag({
|
|
|
13868
13868
|
const oe = dd(
|
|
13869
13869
|
L,
|
|
13870
13870
|
{
|
|
13871
|
-
handle:
|
|
13871
|
+
handle: ue,
|
|
13872
13872
|
connectionMode: u.value,
|
|
13873
13873
|
fromNodeId: Pe(t),
|
|
13874
13874
|
fromHandleId: Pe(e),
|
|
@@ -13883,7 +13883,7 @@ function ag({
|
|
|
13883
13883
|
P.value,
|
|
13884
13884
|
g
|
|
13885
13885
|
);
|
|
13886
|
-
ne = oe.handleDomNode, J = oe.connection, x = MN(!!
|
|
13886
|
+
ne = oe.handleDomNode, J = oe.connection, x = MN(!!ue, oe.isValid);
|
|
13887
13887
|
const D = {
|
|
13888
13888
|
// from stays the same
|
|
13889
13889
|
...Y,
|
|
@@ -13893,45 +13893,45 @@ function ag({
|
|
|
13893
13893
|
toPosition: x && oe.toHandle ? oe.toHandle.position : il[$.position],
|
|
13894
13894
|
toNode: oe.toHandle ? Q.value.get(oe.toHandle.nodeId) : null
|
|
13895
13895
|
};
|
|
13896
|
-
if (!(x &&
|
|
13896
|
+
if (!(x && ue && (Y != null && Y.toHandle) && D.toHandle && Y.toHandle.type === D.toHandle.type && Y.toHandle.nodeId === D.toHandle.nodeId && Y.toHandle.id === D.toHandle.id && Y.to.x === D.to.x && Y.to.y === D.to.y)) {
|
|
13897
13897
|
if (_(
|
|
13898
|
-
|
|
13898
|
+
ue && x ? ol(
|
|
13899
13899
|
{
|
|
13900
|
-
x:
|
|
13901
|
-
y:
|
|
13900
|
+
x: ue.x,
|
|
13901
|
+
y: ue.y
|
|
13902
13902
|
},
|
|
13903
13903
|
k.value
|
|
13904
13904
|
) : E,
|
|
13905
13905
|
oe.toHandle,
|
|
13906
|
-
PN(!!
|
|
13907
|
-
), Y = D, !
|
|
13908
|
-
return as(
|
|
13909
|
-
J && J.source !== J.target && ne && (as(
|
|
13906
|
+
PN(!!ue, x)
|
|
13907
|
+
), Y = D, !ue && !x && !ne)
|
|
13908
|
+
return as(ve);
|
|
13909
|
+
J && J.source !== J.target && ne && (as(ve), ve = ne, ne.classList.add("connecting", "vue-flow__handle-connecting"), ne.classList.toggle("valid", !!x), ne.classList.toggle("vue-flow__handle-valid", !!x));
|
|
13910
13910
|
}
|
|
13911
13911
|
}, z = function(L) {
|
|
13912
|
-
(
|
|
13912
|
+
(ue || ne) && J && x && (r ? r(L, J) : S.connect(J)), S.connectEnd(L), i && (a == null || a(L)), as(ve), cancelAnimationFrame(ce), A(L), C = !1, x = !1, J = null, ne = null, Z.removeEventListener("mousemove", K), Z.removeEventListener("mouseup", z), Z.removeEventListener("touchmove", K), Z.removeEventListener("touchend", z);
|
|
13913
13913
|
};
|
|
13914
13914
|
const se = g(Pe(t));
|
|
13915
13915
|
let te = Pe(o) || j.value || mr;
|
|
13916
13916
|
!te && se && (te = (X ? se.isValidSourcePos : se.isValidTargetPos) || mr);
|
|
13917
|
-
let
|
|
13918
|
-
const { x: ke, y: Ae } = cn(B), ie = Z == null ? void 0 : Z.elementFromPoint(ke, Ae),
|
|
13919
|
-
if (!
|
|
13917
|
+
let ue, ce = 0;
|
|
13918
|
+
const { x: ke, y: Ae } = cn(B), ie = Z == null ? void 0 : Z.elementFromPoint(ke, Ae), de = tg(Pe(i), ie), fe = (re = l.value) == null ? void 0 : re.getBoundingClientRect();
|
|
13919
|
+
if (!fe || !de)
|
|
13920
13920
|
return;
|
|
13921
|
-
const
|
|
13922
|
-
if (!
|
|
13921
|
+
const he = RN(Pe(t), de, Pe(e), Q.value, u.value);
|
|
13922
|
+
if (!he)
|
|
13923
13923
|
return;
|
|
13924
|
-
let
|
|
13924
|
+
let ve, E = cn(B, fe), C = !1;
|
|
13925
13925
|
const N = () => {
|
|
13926
13926
|
if (!h.value)
|
|
13927
13927
|
return;
|
|
13928
|
-
const [L, oe] = Qm(E,
|
|
13929
|
-
y({ x: L, y: oe }),
|
|
13928
|
+
const [L, oe] = Qm(E, fe, v.value);
|
|
13929
|
+
y({ x: L, y: oe }), ce = requestAnimationFrame(N);
|
|
13930
13930
|
}, $ = {
|
|
13931
|
-
...
|
|
13931
|
+
...he,
|
|
13932
13932
|
nodeId: Pe(t),
|
|
13933
|
-
type:
|
|
13934
|
-
position:
|
|
13933
|
+
type: de,
|
|
13934
|
+
position: he.position
|
|
13935
13935
|
}, U = Q.value.get(Pe(t)), G = {
|
|
13936
13936
|
inProgress: !0,
|
|
13937
13937
|
isValid: null,
|
|
@@ -13948,15 +13948,15 @@ function ag({
|
|
|
13948
13948
|
{
|
|
13949
13949
|
nodeId: Pe(t),
|
|
13950
13950
|
id: Pe(e),
|
|
13951
|
-
type:
|
|
13951
|
+
type: de,
|
|
13952
13952
|
position: (ie == null ? void 0 : ie.getAttribute("data-handlepos")) || $e.Top,
|
|
13953
13953
|
...E
|
|
13954
13954
|
},
|
|
13955
13955
|
{
|
|
13956
|
-
x: ke -
|
|
13957
|
-
y: Ae -
|
|
13956
|
+
x: ke - fe.left,
|
|
13957
|
+
y: Ae - fe.top
|
|
13958
13958
|
}
|
|
13959
|
-
), S.connectStart({ event: B, nodeId: Pe(t), handleId: Pe(e), handleType:
|
|
13959
|
+
), S.connectStart({ event: B, nodeId: Pe(t), handleId: Pe(e), handleType: de });
|
|
13960
13960
|
let Y = G;
|
|
13961
13961
|
Z.addEventListener("mousemove", K), Z.addEventListener("mouseup", z), Z.addEventListener("touchmove", K), Z.addEventListener("touchend", z);
|
|
13962
13962
|
}
|
|
@@ -14835,13 +14835,13 @@ function eO(e, t, n) {
|
|
|
14835
14835
|
N ? e.connectionClickStartHandle = E : e.connectionStartHandle = E, e.connectionEndHandle = null, e.connectionStatus = null, C && (e.connectionPosition = C);
|
|
14836
14836
|
}, te = (E, C = null, N = null) => {
|
|
14837
14837
|
e.connectionStartHandle && (e.connectionPosition = E, e.connectionEndHandle = C, e.connectionStatus = N);
|
|
14838
|
-
},
|
|
14838
|
+
}, ue = (E, C) => {
|
|
14839
14839
|
e.connectionPosition = { x: Number.NaN, y: Number.NaN }, e.connectionEndHandle = null, e.connectionStatus = null, C ? e.connectionClickStartHandle = null : e.connectionStartHandle = null;
|
|
14840
|
-
},
|
|
14840
|
+
}, ce = (E) => {
|
|
14841
14841
|
const C = pN(E), N = C ? null : vi(E) ? E : u(E.id);
|
|
14842
14842
|
return !C && !N ? [null, null, C] : [C ? E : Jr(N), N, C];
|
|
14843
14843
|
}, ke = (E, C = !0, N = e.nodes) => {
|
|
14844
|
-
const [$, U, I] =
|
|
14844
|
+
const [$, U, I] = ce(E);
|
|
14845
14845
|
if (!$)
|
|
14846
14846
|
return [];
|
|
14847
14847
|
const G = [];
|
|
@@ -14853,7 +14853,7 @@ function eO(e, t, n) {
|
|
|
14853
14853
|
}
|
|
14854
14854
|
return G;
|
|
14855
14855
|
}, Ae = (E, C, N = !0) => {
|
|
14856
|
-
const [$] =
|
|
14856
|
+
const [$] = ce(E);
|
|
14857
14857
|
if (!$)
|
|
14858
14858
|
return !1;
|
|
14859
14859
|
const U = Qr($, C);
|
|
@@ -14867,7 +14867,7 @@ function eO(e, t, n) {
|
|
|
14867
14867
|
[N.width, N.height]
|
|
14868
14868
|
], L = $.constrain()(G, Y, I), oe = e.viewport.x !== L.x || e.viewport.y !== L.y || e.viewport.zoom !== L.k;
|
|
14869
14869
|
return $.transform(U, L), oe;
|
|
14870
|
-
},
|
|
14870
|
+
}, de = (E) => {
|
|
14871
14871
|
const C = E instanceof Function ? E(e) : E, N = [
|
|
14872
14872
|
"d3Zoom",
|
|
14873
14873
|
"d3Selection",
|
|
@@ -14920,9 +14920,9 @@ function eO(e, t, n) {
|
|
|
14920
14920
|
removeSelectedEdges: b,
|
|
14921
14921
|
startConnection: se,
|
|
14922
14922
|
updateConnection: te,
|
|
14923
|
-
endConnection:
|
|
14923
|
+
endConnection: ue,
|
|
14924
14924
|
setInteractive: j,
|
|
14925
|
-
setState:
|
|
14925
|
+
setState: de,
|
|
14926
14926
|
getIntersectingNodes: ke,
|
|
14927
14927
|
getIncomers: r,
|
|
14928
14928
|
getOutgoers: a,
|
|
@@ -15000,7 +15000,7 @@ function eO(e, t, n) {
|
|
|
15000
15000
|
], U = e.d3Zoom.constrain()(C, $, E.translateExtent);
|
|
15001
15001
|
e.d3Zoom.transform(e.d3Selection, U);
|
|
15002
15002
|
}
|
|
15003
|
-
|
|
15003
|
+
de(E);
|
|
15004
15004
|
},
|
|
15005
15005
|
$destroy: () => {
|
|
15006
15006
|
}
|
|
@@ -15213,7 +15213,7 @@ const rO = Fa, aO = ["transform"], sO = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15213
15213
|
}), [
|
|
15214
15214
|
Fe(r.$slots, "default", {}, () => [
|
|
15215
15215
|
typeof r.label != "string" ? (w(), W(mt(r.label), { key: 0 })) : (w(), ee(Ke, { key: 1 }, [
|
|
15216
|
-
De(
|
|
15216
|
+
De(pe(r.label), 1)
|
|
15217
15217
|
], 64))
|
|
15218
15218
|
])
|
|
15219
15219
|
], 16, lO)
|
|
@@ -16024,9 +16024,9 @@ const DO = {
|
|
|
16024
16024
|
}), Ne(B, (te) => {
|
|
16025
16025
|
y.value = te;
|
|
16026
16026
|
});
|
|
16027
|
-
function re(te,
|
|
16028
|
-
return (
|
|
16029
|
-
|
|
16027
|
+
function re(te, ue) {
|
|
16028
|
+
return (ce) => {
|
|
16029
|
+
ce.target === ue && (te == null || te(ce));
|
|
16030
16030
|
};
|
|
16031
16031
|
}
|
|
16032
16032
|
function X(te) {
|
|
@@ -16043,10 +16043,10 @@ const DO = {
|
|
|
16043
16043
|
i.paneScroll(te);
|
|
16044
16044
|
}
|
|
16045
16045
|
function K(te) {
|
|
16046
|
-
var
|
|
16047
|
-
if (Q.value = (
|
|
16046
|
+
var ue, ce, ke;
|
|
16047
|
+
if (Q.value = (ue = t.value) == null ? void 0 : ue.getBoundingClientRect(), !l.value || !e.isSelecting || te.button !== 0 || te.target !== M.value || !Q.value)
|
|
16048
16048
|
return;
|
|
16049
|
-
(ke = (
|
|
16049
|
+
(ke = (ce = te.target) == null ? void 0 : ce.setPointerCapture) == null || ke.call(ce, te.pointerId);
|
|
16050
16050
|
const { x: Ae, y: ie } = FO(te, Q.value);
|
|
16051
16051
|
T = !0, ne = !1, a(), s.value = {
|
|
16052
16052
|
width: 0,
|
|
@@ -16058,58 +16058,58 @@ const DO = {
|
|
|
16058
16058
|
}, i.selectionStart(te);
|
|
16059
16059
|
}
|
|
16060
16060
|
function z(te) {
|
|
16061
|
-
var
|
|
16061
|
+
var ue;
|
|
16062
16062
|
if (!Q.value || !s.value)
|
|
16063
16063
|
return;
|
|
16064
16064
|
ne = !0;
|
|
16065
|
-
const { x:
|
|
16065
|
+
const { x: ce, y: ke } = cn(te, Q.value), { startX: Ae = 0, startY: ie = 0 } = s.value, de = {
|
|
16066
16066
|
startX: Ae,
|
|
16067
16067
|
startY: ie,
|
|
16068
|
-
x:
|
|
16068
|
+
x: ce < Ae ? ce : Ae,
|
|
16069
16069
|
y: ke < ie ? ke : ie,
|
|
16070
|
-
width: Math.abs(
|
|
16070
|
+
width: Math.abs(ce - Ae),
|
|
16071
16071
|
height: Math.abs(ke - ie)
|
|
16072
|
-
},
|
|
16072
|
+
}, fe = P.value, he = j.value;
|
|
16073
16073
|
P.value = new Set(
|
|
16074
|
-
Xm(n.value,
|
|
16074
|
+
Xm(n.value, de, o.value, h.value === iu.Partial, !0).map(
|
|
16075
16075
|
(E) => E.id
|
|
16076
16076
|
)
|
|
16077
16077
|
), j.value = /* @__PURE__ */ new Set();
|
|
16078
|
-
const
|
|
16078
|
+
const ve = ((ue = S.value) == null ? void 0 : ue.selectable) ?? !0;
|
|
16079
16079
|
for (const E of P.value) {
|
|
16080
16080
|
const C = A.value.get(E);
|
|
16081
16081
|
if (C)
|
|
16082
16082
|
for (const { edgeId: N } of C.values()) {
|
|
16083
16083
|
const $ = b.value.get(N);
|
|
16084
|
-
$ && ($.selectable ??
|
|
16084
|
+
$ && ($.selectable ?? ve) && j.value.add(N);
|
|
16085
16085
|
}
|
|
16086
16086
|
}
|
|
16087
|
-
if (!gd(
|
|
16087
|
+
if (!gd(fe, P.value)) {
|
|
16088
16088
|
const E = Rn(_.value, P.value, !0);
|
|
16089
16089
|
i.nodesChange(E);
|
|
16090
16090
|
}
|
|
16091
|
-
if (!gd(
|
|
16091
|
+
if (!gd(he, j.value)) {
|
|
16092
16092
|
const E = Rn(b.value, j.value);
|
|
16093
16093
|
i.edgesChange(E);
|
|
16094
16094
|
}
|
|
16095
|
-
s.value =
|
|
16095
|
+
s.value = de, r.value = !0, u.value = !1;
|
|
16096
16096
|
}
|
|
16097
16097
|
function se(te) {
|
|
16098
|
-
var
|
|
16099
|
-
te.button !== 0 || !T || ((
|
|
16098
|
+
var ue;
|
|
16099
|
+
te.button !== 0 || !T || ((ue = te.target) == null || ue.releasePointerCapture(te.pointerId), !r.value && s.value && te.target === M.value && X(te), r.value = !1, s.value = null, u.value = P.value.size > 0, i.selectionEnd(te), e.selectionKeyPressed && (ne = !1), T = !1);
|
|
16100
16100
|
}
|
|
16101
|
-
return (te,
|
|
16101
|
+
return (te, ue) => (w(), ee("div", {
|
|
16102
16102
|
ref_key: "container",
|
|
16103
16103
|
ref: M,
|
|
16104
16104
|
class: ze(["vue-flow__pane vue-flow__container", { selection: te.isSelecting }]),
|
|
16105
|
-
onClick:
|
|
16106
|
-
onContextmenu:
|
|
16107
|
-
onWheelPassive:
|
|
16108
|
-
onPointerenter:
|
|
16109
|
-
onPointerdown:
|
|
16110
|
-
onPointermove:
|
|
16111
|
-
onPointerup:
|
|
16112
|
-
onPointerleave:
|
|
16105
|
+
onClick: ue[0] || (ue[0] = (ce) => J.value ? void 0 : re(X, M.value)(ce)),
|
|
16106
|
+
onContextmenu: ue[1] || (ue[1] = (ce) => re(q, M.value)(ce)),
|
|
16107
|
+
onWheelPassive: ue[2] || (ue[2] = (ce) => re(Z, M.value)(ce)),
|
|
16108
|
+
onPointerenter: ue[3] || (ue[3] = (ce) => J.value ? void 0 : p(i).paneMouseEnter(ce)),
|
|
16109
|
+
onPointerdown: ue[4] || (ue[4] = (ce) => J.value ? K(ce) : p(i).paneMouseMove(ce)),
|
|
16110
|
+
onPointermove: ue[5] || (ue[5] = (ce) => J.value ? z(ce) : p(i).paneMouseMove(ce)),
|
|
16111
|
+
onPointerup: ue[6] || (ue[6] = (ce) => J.value ? se(ce) : void 0),
|
|
16112
|
+
onPointerleave: ue[7] || (ue[7] = (ce) => p(i).paneMouseLeave(ce))
|
|
16113
16113
|
}, [
|
|
16114
16114
|
Fe(te.$slots, "default"),
|
|
16115
16115
|
p(r) && p(s) ? (w(), W(OO, {
|
|
@@ -16183,25 +16183,25 @@ const DO = {
|
|
|
16183
16183
|
Oa("Viewport element is missing");
|
|
16184
16184
|
return;
|
|
16185
16185
|
}
|
|
16186
|
-
const ie = Q.value,
|
|
16186
|
+
const ie = Q.value, de = ie.getBoundingClientRect(), fe = aN().clickDistance(J.value).scaleExtent([t.value, n.value]).translateExtent(i.value), he = Gt(ie).call(fe), ve = he.on("wheel.zoom"), E = Wo.translate(o.value.x ?? 0, o.value.y ?? 0).scale(mo(o.value.zoom ?? 1, t.value, n.value)), C = [
|
|
16187
16187
|
[0, 0],
|
|
16188
|
-
[
|
|
16189
|
-
], N =
|
|
16190
|
-
|
|
16188
|
+
[de.width, de.height]
|
|
16189
|
+
], N = fe.constrain()(E, C, i.value);
|
|
16190
|
+
fe.transform(he, N), fe.wheelDelta(ue), k.value = fe, M.value = he, P.value = ve, j.value = { x: N.x, y: N.y, zoom: N.k }, fe.on("start", ($) => {
|
|
16191
16191
|
var U;
|
|
16192
16192
|
if (!$.sourceEvent)
|
|
16193
16193
|
return null;
|
|
16194
16194
|
B = $.sourceEvent.button, x.value = !0;
|
|
16195
16195
|
const I = ke($.transform);
|
|
16196
16196
|
((U = $.sourceEvent) == null ? void 0 : U.type) === "mousedown" && (S.value = !0), re = I, b.viewportChangeStart(I), b.moveStart({ event: $, flowTransform: I });
|
|
16197
|
-
}),
|
|
16197
|
+
}), fe.on("end", ($) => {
|
|
16198
16198
|
if (!$.sourceEvent)
|
|
16199
16199
|
return null;
|
|
16200
|
-
if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !V && b.paneContextMenu($.sourceEvent), V = !1,
|
|
16200
|
+
if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !V && b.paneContextMenu($.sourceEvent), V = !1, ce(re, $.transform)) {
|
|
16201
16201
|
const U = ke($.transform);
|
|
16202
16202
|
re = U, b.viewportChangeEnd(U), b.moveEnd({ event: $, flowTransform: U });
|
|
16203
16203
|
}
|
|
16204
|
-
}),
|
|
16204
|
+
}), fe.filter(($) => {
|
|
16205
16205
|
var U;
|
|
16206
16206
|
const I = Z.value || h.value, G = m.value && $.ctrlKey, Y = $.button;
|
|
16207
16207
|
if (Y === 1 && $.type === "mousedown" && (Ae($, "vue-flow__node") || Ae($, "vue-flow__edge")))
|
|
@@ -16217,7 +16217,7 @@ const DO = {
|
|
|
16217
16217
|
}), Ne(
|
|
16218
16218
|
[A, K],
|
|
16219
16219
|
() => {
|
|
16220
|
-
A.value && !x.value ?
|
|
16220
|
+
A.value && !x.value ? fe.on("zoom", null) : A.value || fe.on("zoom", ($) => {
|
|
16221
16221
|
j.value = { x: $.transform.x, y: $.transform.y, zoom: $.transform.k };
|
|
16222
16222
|
const U = ke($.transform);
|
|
16223
16223
|
V = te(K.value, B ?? 0), b.viewportChange(U), b.move({ event: $, flowTransform: U });
|
|
@@ -16227,7 +16227,7 @@ const DO = {
|
|
|
16227
16227
|
), Ne(
|
|
16228
16228
|
[A, z, u, Z, m, v, g],
|
|
16229
16229
|
() => {
|
|
16230
|
-
z.value && !Z.value && !A.value ?
|
|
16230
|
+
z.value && !Z.value && !A.value ? he.on(
|
|
16231
16231
|
"wheel.zoom",
|
|
16232
16232
|
($) => {
|
|
16233
16233
|
if (Ae($, g.value))
|
|
@@ -16236,32 +16236,32 @@ const DO = {
|
|
|
16236
16236
|
if (!(!v.value || z.value || U || I))
|
|
16237
16237
|
return !1;
|
|
16238
16238
|
$.preventDefault(), $.stopImmediatePropagation();
|
|
16239
|
-
const Y =
|
|
16239
|
+
const Y = he.property("__zoom").k || 1, L = ea();
|
|
16240
16240
|
if (!X.value && $.ctrlKey && m.value && L) {
|
|
16241
|
-
const Ie = on($),
|
|
16242
|
-
|
|
16241
|
+
const Ie = on($), ye = ue($), _e = Y * 2 ** ye;
|
|
16242
|
+
fe.scaleTo(he, _e, Ie, $);
|
|
16243
16243
|
return;
|
|
16244
16244
|
}
|
|
16245
16245
|
const oe = $.deltaMode === 1 ? 20 : 1;
|
|
16246
16246
|
let D = u.value === Ii.Vertical ? 0 : $.deltaX * oe, Ce = u.value === Ii.Horizontal ? 0 : $.deltaY * oe;
|
|
16247
|
-
!L && $.shiftKey && u.value !== Ii.Vertical && !D && Ce && (D = Ce, Ce = 0),
|
|
16248
|
-
|
|
16247
|
+
!L && $.shiftKey && u.value !== Ii.Vertical && !D && Ce && (D = Ce, Ce = 0), fe.translateBy(
|
|
16248
|
+
he,
|
|
16249
16249
|
-(D / Y) * d.value,
|
|
16250
16250
|
-(Ce / Y) * d.value
|
|
16251
16251
|
);
|
|
16252
|
-
const xe = ke(
|
|
16252
|
+
const xe = ke(he.property("__zoom"));
|
|
16253
16253
|
T && clearTimeout(T), ne.value ? (b.move({ event: $, flowTransform: xe }), b.viewportChange(xe), T = setTimeout(() => {
|
|
16254
16254
|
b.moveEnd({ event: $, flowTransform: xe }), b.viewportChangeEnd(xe), ne.value = !1;
|
|
16255
16255
|
}, 150)) : (ne.value = !0, b.moveStart({ event: $, flowTransform: xe }), b.viewportChangeStart(xe));
|
|
16256
16256
|
},
|
|
16257
16257
|
{ passive: !1 }
|
|
16258
|
-
) : typeof
|
|
16258
|
+
) : typeof ve < "u" && he.on(
|
|
16259
16259
|
"wheel.zoom",
|
|
16260
16260
|
function($, U) {
|
|
16261
16261
|
const I = !v.value && $.type === "wheel" && !$.ctrlKey, G = Z.value || h.value, Y = m.value && $.ctrlKey;
|
|
16262
16262
|
if (!G && !l.value && !Y && $.type === "wheel" || I || Ae($, g.value))
|
|
16263
16263
|
return null;
|
|
16264
|
-
$.preventDefault(),
|
|
16264
|
+
$.preventDefault(), ve.call(this, $, U);
|
|
16265
16265
|
},
|
|
16266
16266
|
{ passive: !1 }
|
|
16267
16267
|
);
|
|
@@ -16269,15 +16269,15 @@ const DO = {
|
|
|
16269
16269
|
{ immediate: !0 }
|
|
16270
16270
|
);
|
|
16271
16271
|
});
|
|
16272
|
-
function te(ie,
|
|
16273
|
-
return
|
|
16272
|
+
function te(ie, de) {
|
|
16273
|
+
return de === 2 && Array.isArray(ie) && ie.includes(2);
|
|
16274
16274
|
}
|
|
16275
|
-
function
|
|
16276
|
-
const
|
|
16277
|
-
return -ie.deltaY * (ie.deltaMode === 1 ? 0.05 : ie.deltaMode ? 1 : 2e-3) *
|
|
16275
|
+
function ue(ie) {
|
|
16276
|
+
const de = ie.ctrlKey && ea() ? 10 : 1;
|
|
16277
|
+
return -ie.deltaY * (ie.deltaMode === 1 ? 0.05 : ie.deltaMode ? 1 : 2e-3) * de;
|
|
16278
16278
|
}
|
|
16279
|
-
function
|
|
16280
|
-
return ie.x !==
|
|
16279
|
+
function ce(ie, de) {
|
|
16280
|
+
return ie.x !== de.x && !Number.isNaN(de.x) || ie.y !== de.y && !Number.isNaN(de.y) || ie.zoom !== de.k && !Number.isNaN(de.k);
|
|
16281
16281
|
}
|
|
16282
16282
|
function ke(ie) {
|
|
16283
16283
|
return {
|
|
@@ -16286,10 +16286,10 @@ const DO = {
|
|
|
16286
16286
|
zoom: ie.k
|
|
16287
16287
|
};
|
|
16288
16288
|
}
|
|
16289
|
-
function Ae(ie,
|
|
16290
|
-
return ie.target.closest(`.${
|
|
16289
|
+
function Ae(ie, de) {
|
|
16290
|
+
return ie.target.closest(`.${de}`);
|
|
16291
16291
|
}
|
|
16292
|
-
return (ie,
|
|
16292
|
+
return (ie, de) => (w(), ee("div", {
|
|
16293
16293
|
ref_key: "viewportRef",
|
|
16294
16294
|
ref: Q,
|
|
16295
16295
|
class: "vue-flow__viewport vue-flow__container"
|
|
@@ -16326,7 +16326,7 @@ const DO = {
|
|
|
16326
16326
|
H("div", {
|
|
16327
16327
|
id: `${p(jm)}-${p(t)}`,
|
|
16328
16328
|
style: { display: "none" }
|
|
16329
|
-
}, " Press enter or space to select a node. " +
|
|
16329
|
+
}, " Press enter or space to select a node. " + pe(p(n) ? "" : "You can then use the arrow keys to move the node around.") + " You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ", 9, VO),
|
|
16330
16330
|
H("div", {
|
|
16331
16331
|
id: `${p(qm)}-${p(t)}`,
|
|
16332
16332
|
style: { display: "none" }
|
|
@@ -16337,7 +16337,7 @@ const DO = {
|
|
|
16337
16337
|
"aria-live": "assertive",
|
|
16338
16338
|
"aria-atomic": "true",
|
|
16339
16339
|
style: { position: "absolute", width: "1px", height: "1px", margin: "-1px", border: "0", padding: "0", overflow: "hidden", clip: "rect(0px, 0px, 0px, 0px)", "clip-path": "inset(100%)" }
|
|
16340
|
-
},
|
|
16340
|
+
}, pe(p(o)), 9, UO))
|
|
16341
16341
|
], 64));
|
|
16342
16342
|
}
|
|
16343
16343
|
});
|
|
@@ -16463,12 +16463,12 @@ const wd = su, ZO = ge({
|
|
|
16463
16463
|
"aria-roledescription": "edge",
|
|
16464
16464
|
role: B.value ? "group" : "img",
|
|
16465
16465
|
..._.value.domAttributes,
|
|
16466
|
-
onClick:
|
|
16466
|
+
onClick: ce,
|
|
16467
16467
|
onContextmenu: ke,
|
|
16468
16468
|
onDblclick: Ae,
|
|
16469
16469
|
onMouseenter: ie,
|
|
16470
|
-
onMousemove:
|
|
16471
|
-
onMouseleave:
|
|
16470
|
+
onMousemove: de,
|
|
16471
|
+
onMouseleave: fe,
|
|
16472
16472
|
onKeyDown: B.value ? E : void 0
|
|
16473
16473
|
},
|
|
16474
16474
|
[
|
|
@@ -16509,7 +16509,7 @@ const wd = su, ZO = ge({
|
|
|
16509
16509
|
Je(
|
|
16510
16510
|
"g",
|
|
16511
16511
|
{
|
|
16512
|
-
onMousedown:
|
|
16512
|
+
onMousedown: he,
|
|
16513
16513
|
onMouseenter: K,
|
|
16514
16514
|
onMouseout: z
|
|
16515
16515
|
},
|
|
@@ -16527,7 +16527,7 @@ const wd = su, ZO = ge({
|
|
|
16527
16527
|
Je(
|
|
16528
16528
|
"g",
|
|
16529
16529
|
{
|
|
16530
|
-
onMousedown:
|
|
16530
|
+
onMousedown: ve,
|
|
16531
16531
|
onMouseenter: K,
|
|
16532
16532
|
onMouseout: z
|
|
16533
16533
|
},
|
|
@@ -16557,10 +16557,10 @@ const wd = su, ZO = ge({
|
|
|
16557
16557
|
function te(C) {
|
|
16558
16558
|
A.updateEnd({ event: C, edge: _.value }), j.value = !1;
|
|
16559
16559
|
}
|
|
16560
|
-
function
|
|
16560
|
+
function ue(C, N) {
|
|
16561
16561
|
C.button === 0 && (j.value = !0, Q.value = N ? _.value.target : _.value.source, J.value = (N ? _.value.targetHandle : _.value.sourceHandle) ?? null, x.value = N ? "target" : "source", A.updateStart({ event: C, edge: _.value }), Z(C));
|
|
16562
16562
|
}
|
|
16563
|
-
function
|
|
16563
|
+
function ce(C) {
|
|
16564
16564
|
var N;
|
|
16565
16565
|
const $ = { event: C, edge: _.value };
|
|
16566
16566
|
T.value && (a.value = !1, _.value.selected && m.value ? (u([_.value]), (N = ne.value) == null || N.blur()) : n([_.value])), A.click($);
|
|
@@ -16574,17 +16574,17 @@ const wd = su, ZO = ge({
|
|
|
16574
16574
|
function ie(C) {
|
|
16575
16575
|
A.mouseEnter({ event: C, edge: _.value });
|
|
16576
16576
|
}
|
|
16577
|
-
function
|
|
16577
|
+
function de(C) {
|
|
16578
16578
|
A.mouseMove({ event: C, edge: _.value });
|
|
16579
16579
|
}
|
|
16580
|
-
function
|
|
16580
|
+
function fe(C) {
|
|
16581
16581
|
A.mouseLeave({ event: C, edge: _.value });
|
|
16582
16582
|
}
|
|
16583
|
-
function ye(C) {
|
|
16584
|
-
ce(C, !0);
|
|
16585
|
-
}
|
|
16586
16583
|
function he(C) {
|
|
16587
|
-
|
|
16584
|
+
ue(C, !0);
|
|
16585
|
+
}
|
|
16586
|
+
function ve(C) {
|
|
16587
|
+
ue(C, !1);
|
|
16588
16588
|
}
|
|
16589
16589
|
function E(C) {
|
|
16590
16590
|
var N;
|
|
@@ -16869,10 +16869,10 @@ const wd = su, ZO = ge({
|
|
|
16869
16869
|
onClick(N) {
|
|
16870
16870
|
E(N);
|
|
16871
16871
|
}
|
|
16872
|
-
}), te = F(() => x.class instanceof Function ? x.class(x) : x.class),
|
|
16872
|
+
}), te = F(() => x.class instanceof Function ? x.class(x) : x.class), ue = F(() => {
|
|
16873
16873
|
const N = (x.style instanceof Function ? x.style(x) : x.style) || {}, $ = x.width instanceof Function ? x.width(x) : x.width, U = x.height instanceof Function ? x.height(x) : x.height;
|
|
16874
16874
|
return !N.width && $ && (N.width = typeof $ == "string" ? $ : `${$}px`), !N.height && U && (N.height = typeof U == "string" ? U : `${U}px`), N;
|
|
16875
|
-
}),
|
|
16875
|
+
}), ce = je(() => Number(x.zIndex ?? ue.value.zIndex ?? 0));
|
|
16876
16876
|
return d((N) => {
|
|
16877
16877
|
(N.includes(e.id) || !N.length) && Ae();
|
|
16878
16878
|
}), Ot(() => {
|
|
@@ -16905,7 +16905,7 @@ const wd = su, ZO = ge({
|
|
|
16905
16905
|
var N;
|
|
16906
16906
|
return (N = ne.value) == null ? void 0 : N.computedPosition.z;
|
|
16907
16907
|
},
|
|
16908
|
-
|
|
16908
|
+
ce,
|
|
16909
16909
|
() => x.selected,
|
|
16910
16910
|
() => x.dimensions.height,
|
|
16911
16911
|
() => x.dimensions.width,
|
|
@@ -16949,10 +16949,10 @@ const wd = su, ZO = ge({
|
|
|
16949
16949
|
],
|
|
16950
16950
|
style: {
|
|
16951
16951
|
visibility: K.value ? "visible" : "hidden",
|
|
16952
|
-
zIndex: x.computedPosition.z ??
|
|
16952
|
+
zIndex: x.computedPosition.z ?? ce.value,
|
|
16953
16953
|
transform: `translate(${x.computedPosition.x}px,${x.computedPosition.y}px)`,
|
|
16954
16954
|
pointerEvents: Z.value ? "all" : "none",
|
|
16955
|
-
...
|
|
16955
|
+
...ue.value
|
|
16956
16956
|
},
|
|
16957
16957
|
tabIndex: q.value ? 0 : void 0,
|
|
16958
16958
|
role: q.value ? "group" : void 0,
|
|
@@ -16961,11 +16961,11 @@ const wd = su, ZO = ge({
|
|
|
16961
16961
|
"aria-roledescription": "node",
|
|
16962
16962
|
...x.domAttributes,
|
|
16963
16963
|
onMouseenter: ie,
|
|
16964
|
-
onMousemove:
|
|
16965
|
-
onMouseleave:
|
|
16966
|
-
onContextmenu:
|
|
16964
|
+
onMousemove: de,
|
|
16965
|
+
onMouseleave: fe,
|
|
16966
|
+
onContextmenu: he,
|
|
16967
16967
|
onClick: E,
|
|
16968
|
-
onDblclick:
|
|
16968
|
+
onDblclick: ve,
|
|
16969
16969
|
onKeydown: C
|
|
16970
16970
|
},
|
|
16971
16971
|
[
|
|
@@ -16984,7 +16984,7 @@ const wd = su, ZO = ge({
|
|
|
16984
16984
|
isValidSourcePos: x.isValidSourcePos,
|
|
16985
16985
|
parent: x.parentNode,
|
|
16986
16986
|
parentNodeId: x.parentNode,
|
|
16987
|
-
zIndex: x.computedPosition.z ??
|
|
16987
|
+
zIndex: x.computedPosition.z ?? ce.value,
|
|
16988
16988
|
targetPosition: x.targetPosition,
|
|
16989
16989
|
sourcePosition: x.sourcePosition,
|
|
16990
16990
|
label: x.label,
|
|
@@ -17009,16 +17009,16 @@ const wd = su, ZO = ge({
|
|
|
17009
17009
|
function ie(N) {
|
|
17010
17010
|
se != null && se.value || T.mouseEnter({ event: N, node: x });
|
|
17011
17011
|
}
|
|
17012
|
-
function
|
|
17012
|
+
function de(N) {
|
|
17013
17013
|
se != null && se.value || T.mouseMove({ event: N, node: x });
|
|
17014
17014
|
}
|
|
17015
|
-
function
|
|
17015
|
+
function fe(N) {
|
|
17016
17016
|
se != null && se.value || T.mouseLeave({ event: N, node: x });
|
|
17017
17017
|
}
|
|
17018
|
-
function
|
|
17018
|
+
function he(N) {
|
|
17019
17019
|
return T.contextMenu({ event: N, node: x });
|
|
17020
17020
|
}
|
|
17021
|
-
function
|
|
17021
|
+
function ve(N) {
|
|
17022
17022
|
return T.doubleClick({ event: N, node: x });
|
|
17023
17023
|
}
|
|
17024
17024
|
function E(N) {
|
|
@@ -19864,8 +19864,8 @@ const [SD, xD] = pf(
|
|
|
19864
19864
|
connectEdge: z,
|
|
19865
19865
|
disconnectEdge: se,
|
|
19866
19866
|
getInEdgesByNodeId: te,
|
|
19867
|
-
commit:
|
|
19868
|
-
reset:
|
|
19867
|
+
commit: ue,
|
|
19868
|
+
reset: ce
|
|
19869
19869
|
} = f;
|
|
19870
19870
|
function ke(I, G) {
|
|
19871
19871
|
const Y = K(I.source), L = K(I.target);
|
|
@@ -19901,7 +19901,7 @@ const [SD, xD] = pf(
|
|
|
19901
19901
|
Ne([Ae, ie], ([I, G]) => {
|
|
19902
19902
|
ne(I), T(G);
|
|
19903
19903
|
}, { immediate: !0 });
|
|
19904
|
-
const
|
|
19904
|
+
const de = F(() => ({
|
|
19905
19905
|
// Padding in VueFlow is a ratio
|
|
19906
19906
|
padding: a / Math.max(Pe(r == null ? void 0 : r.width) ?? 0, Pe(r == null ? void 0 : r.height) ?? 0)
|
|
19907
19907
|
// maxZoom and minZoom come from the VueFlow store
|
|
@@ -19911,14 +19911,14 @@ const [SD, xD] = pf(
|
|
|
19911
19911
|
}), S(({ edge: I }) => {
|
|
19912
19912
|
console.debug("[useFlow] onEdgeClick", Tr(I));
|
|
19913
19913
|
});
|
|
19914
|
-
async function
|
|
19914
|
+
async function fe({ source: I, sourceHandle: G, target: Y, targetHandle: L }) {
|
|
19915
19915
|
if (console.debug("[useFlow] onConnect", { source: I, sourceHandle: G, target: Y, targetHandle: L }), !G || !L) return;
|
|
19916
19916
|
const oe = Vd(G), D = Vd(L);
|
|
19917
19917
|
if ((oe == null ? void 0 : oe.io) === "input" || (D == null ? void 0 : D.io) === "output" || G === "output" && L === "output")
|
|
19918
19918
|
return;
|
|
19919
19919
|
const Ce = te(Y);
|
|
19920
19920
|
let xe = !1, Ie = !1;
|
|
19921
|
-
const
|
|
19921
|
+
const ye = [], _e = [], Oe = (D == null ? void 0 : D.io) === "input" ? Ce.filter((me) => !me.targetField) : Ce.filter((me) => !!me.targetField);
|
|
19922
19922
|
Oe.length > 0 && (xe = !0, Oe.forEach((me) => {
|
|
19923
19923
|
_e.push($i(me, K)), se(me.id, !1);
|
|
19924
19924
|
}));
|
|
@@ -19936,13 +19936,13 @@ const [SD, xD] = pf(
|
|
|
19936
19936
|
target: Y,
|
|
19937
19937
|
targetField: D == null ? void 0 : D.field
|
|
19938
19938
|
}, !1)) {
|
|
19939
|
-
|
|
19939
|
+
ce(), h({
|
|
19940
19940
|
message: v("plugins.free-form.datakit.flow_editor.error.invalid_connection"),
|
|
19941
19941
|
appearance: "danger"
|
|
19942
19942
|
});
|
|
19943
19943
|
return;
|
|
19944
19944
|
}
|
|
19945
|
-
if (
|
|
19945
|
+
if (ye.push(
|
|
19946
19946
|
dl(
|
|
19947
19947
|
I,
|
|
19948
19948
|
oe == null ? void 0 : oe.field,
|
|
@@ -19952,22 +19952,22 @@ const [SD, xD] = pf(
|
|
|
19952
19952
|
)
|
|
19953
19953
|
), xe || Ie) {
|
|
19954
19954
|
if (!m)
|
|
19955
|
-
throw
|
|
19955
|
+
throw ce(), new Error("Expected confirm modal to be provided here when reachable");
|
|
19956
19956
|
if (!await m(
|
|
19957
19957
|
v(xe ? "plugins.free-form.datakit.flow_editor.confirm.message.switch" : "plugins.free-form.datakit.flow_editor.confirm.message.override"),
|
|
19958
|
-
|
|
19958
|
+
ye,
|
|
19959
19959
|
_e
|
|
19960
19960
|
)) {
|
|
19961
|
-
|
|
19961
|
+
ce();
|
|
19962
19962
|
return;
|
|
19963
19963
|
}
|
|
19964
19964
|
}
|
|
19965
|
-
|
|
19965
|
+
ue();
|
|
19966
19966
|
}
|
|
19967
|
-
k(
|
|
19968
|
-
let
|
|
19969
|
-
const
|
|
19970
|
-
|
|
19967
|
+
k(fe);
|
|
19968
|
+
let he = !1;
|
|
19969
|
+
const ve = () => {
|
|
19970
|
+
he && (he = !1, ue());
|
|
19971
19971
|
};
|
|
19972
19972
|
M((I) => {
|
|
19973
19973
|
I.filter((Y) => Y.type === "select").sort((Y, L) => Y.selected === L.selected ? 0 : Y.selected ? 1 : -1).forEach((Y) => {
|
|
@@ -19976,7 +19976,7 @@ const [SD, xD] = pf(
|
|
|
19976
19976
|
let G = !1;
|
|
19977
19977
|
I.forEach((Y) => {
|
|
19978
19978
|
Y.type === "remove" && (G = !0, Z(Y.id, !1));
|
|
19979
|
-
}), G && !
|
|
19979
|
+
}), G && !he && (he = !0, queueMicrotask(ve));
|
|
19980
19980
|
}), A(({ node: I }) => {
|
|
19981
19981
|
I && X(I.id, I.position);
|
|
19982
19982
|
}), P((I) => {
|
|
@@ -19989,13 +19989,13 @@ const [SD, xD] = pf(
|
|
|
19989
19989
|
let Y = !1;
|
|
19990
19990
|
I.forEach((L) => {
|
|
19991
19991
|
L.type === "remove" && (Y = !0, se(L.id, !1));
|
|
19992
|
-
}), Y && !
|
|
19992
|
+
}), Y && !he && (he = !0, queueMicrotask(ve));
|
|
19993
19993
|
}), Q(({ edge: I }) => {
|
|
19994
19994
|
fl = I.id, T((G) => G.map((Y) => Y.id !== I.id ? Y : vr(Y)));
|
|
19995
19995
|
}), J(({ edge: I }) => {
|
|
19996
19996
|
fl = void 0, T((G) => G.map((Y) => Y.id !== I.id ? Y : vr(Y)));
|
|
19997
19997
|
}), j(({ edge: I, connection: G }) => {
|
|
19998
|
-
se(I.id, !1),
|
|
19998
|
+
se(I.id, !1), fe(G);
|
|
19999
19999
|
});
|
|
20000
20000
|
function E(I = !0) {
|
|
20001
20001
|
let G, Y;
|
|
@@ -20063,7 +20063,7 @@ const [SD, xD] = pf(
|
|
|
20063
20063
|
!Xe.has(Ct.source) && !Xe.has(Ct.target) && D.setEdge(Ct.source, Ct.target, { points: [] });
|
|
20064
20064
|
qd.layout(D);
|
|
20065
20065
|
}
|
|
20066
|
-
const [Ie,
|
|
20066
|
+
const [Ie, ye] = kD(), _e = (Xe) => ({
|
|
20067
20067
|
x: Xe.x - Xe.width / 2,
|
|
20068
20068
|
y: Xe.y - Xe.height / 2,
|
|
20069
20069
|
width: Xe.width,
|
|
@@ -20077,7 +20077,7 @@ const [SD, xD] = pf(
|
|
|
20077
20077
|
Ie(yn), X(Xe.data.id, { x: yn.x, y: yn.y }, !1);
|
|
20078
20078
|
}
|
|
20079
20079
|
}
|
|
20080
|
-
const Oe =
|
|
20080
|
+
const Oe = ye(), Le = Oe.x2 - Oe.x1, be = Oe.y2 - Oe.y1, me = Math.max(
|
|
20081
20081
|
0,
|
|
20082
20082
|
Math.min(Pe(r == null ? void 0 : r.width) ?? Number.POSITIVE_INFINITY, l2) - Le - 2 * l - Ce.dimensions.width - xe.dimensions.width - 2 * a
|
|
20083
20083
|
), We = Oe.y1 + be / 2;
|
|
@@ -20091,7 +20091,7 @@ const [SD, xD] = pf(
|
|
|
20091
20091
|
}
|
|
20092
20092
|
function C(I) {
|
|
20093
20093
|
y({
|
|
20094
|
-
...
|
|
20094
|
+
...de.value,
|
|
20095
20095
|
...I
|
|
20096
20096
|
});
|
|
20097
20097
|
}
|
|
@@ -20109,9 +20109,9 @@ const [SD, xD] = pf(
|
|
|
20109
20109
|
const {
|
|
20110
20110
|
position: { x: L, y: oe },
|
|
20111
20111
|
dimensions: { width: D, height: Ce }
|
|
20112
|
-
} = Y, xe = oe, Ie = oe + Ce,
|
|
20112
|
+
} = Y, xe = oe, Ie = oe + Ce, ye = G.filter(({ id: Oe }) => Oe !== I).filter(({ position: { y: Oe }, dimensions: { height: Le } }) => Oe < Ie && Oe + Le > xe).map(({ position: { x: Oe }, dimensions: { width: Le } }) => ({ left: Oe, right: Oe + Le })).sort((Oe, Le) => Oe.left - Le.left);
|
|
20113
20113
|
let _e = L + D + l;
|
|
20114
|
-
for (const { left: Oe, right: Le } of
|
|
20114
|
+
for (const { left: Oe, right: Le } of ye)
|
|
20115
20115
|
if (!(Le <= _e)) {
|
|
20116
20116
|
if (_e + D <= Oe) return { x: _e, y: xe };
|
|
20117
20117
|
_e = Math.max(_e, Le) + l;
|
|
@@ -20125,11 +20125,11 @@ const [SD, xD] = pf(
|
|
|
20125
20125
|
const {
|
|
20126
20126
|
position: { x: Y },
|
|
20127
20127
|
dimensions: { width: L }
|
|
20128
|
-
} = G, oe = Y + L, { viewport: D, dimensions: Ce, setViewport: xe } = c, { x: Ie, y:
|
|
20128
|
+
} = G, oe = Y + L, { viewport: D, dimensions: Ce, setViewport: xe } = c, { x: Ie, y: ye, zoom: _e } = D.value, { width: Oe } = Ce.value, Le = Y * _e + Ie, be = oe * _e + Ie, me = Oe - om - l;
|
|
20129
20129
|
if (be <= me) return;
|
|
20130
20130
|
let We = me - be;
|
|
20131
20131
|
Le + We < 0 && (We = -Le), We !== 0 && xe(
|
|
20132
|
-
{ x: Ie + We, y:
|
|
20132
|
+
{ x: Ie + We, y: ye, zoom: _e },
|
|
20133
20133
|
{ duration: d2 }
|
|
20134
20134
|
);
|
|
20135
20135
|
}
|
|
@@ -20143,7 +20143,7 @@ const [SD, xD] = pf(
|
|
|
20143
20143
|
autoLayout: E,
|
|
20144
20144
|
placeToRight: $,
|
|
20145
20145
|
scrollRightToReveal: U,
|
|
20146
|
-
fitViewParams:
|
|
20146
|
+
fitViewParams: de,
|
|
20147
20147
|
fitView: C
|
|
20148
20148
|
};
|
|
20149
20149
|
}
|
|
@@ -20209,7 +20209,7 @@ const [SD, xD] = pf(
|
|
|
20209
20209
|
(w(), W(mt(t.value)))
|
|
20210
20210
|
]),
|
|
20211
20211
|
default: R(() => [
|
|
20212
|
-
De(" " +
|
|
20212
|
+
De(" " + pe(n.value), 1)
|
|
20213
20213
|
]),
|
|
20214
20214
|
_: 1
|
|
20215
20215
|
}, 8, ["appearance", "class", "size"]);
|
|
@@ -20290,8 +20290,8 @@ const MD = {
|
|
|
20290
20290
|
return (n, o) => (w(), ee("span", {
|
|
20291
20291
|
class: ze(["dk-hotkey-label", { reverse: n.reverse }])
|
|
20292
20292
|
}, [
|
|
20293
|
-
n.label ? (w(), ee("span", MD,
|
|
20294
|
-
H("kbd", RD,
|
|
20293
|
+
n.label ? (w(), ee("span", MD, pe(n.label), 1)) : Se("", !0),
|
|
20294
|
+
H("kbd", RD, pe(p(t)), 1)
|
|
20295
20295
|
], 2));
|
|
20296
20296
|
}
|
|
20297
20297
|
}), ia = /* @__PURE__ */ Me(FD, [["__scopeId", "data-v-cc70d56b"]]), DD = { class: "body" }, LD = { class: "name" }, KD = { class: "handle" }, BD = { class: "handle-label-wrapper" }, jD = { class: "handle-label-wrapper" }, qD = { class: "handle-label text" }, VD = { class: "handle" }, zD = { class: "handle-label-wrapper" }, UD = { class: "handle-label-wrapper" }, HD = { class: "handle-label text" }, GD = /* @__PURE__ */ ge({
|
|
@@ -20372,7 +20372,7 @@ const MD = {
|
|
|
20372
20372
|
]),
|
|
20373
20373
|
_: 1
|
|
20374
20374
|
}, 8, ["text"])),
|
|
20375
|
-
H("div", LD,
|
|
20375
|
+
H("div", LD, pe(k.value), 1),
|
|
20376
20376
|
x.error ? (w(), W(p(zh), {
|
|
20377
20377
|
key: 1,
|
|
20378
20378
|
class: "error-icon",
|
|
@@ -20482,7 +20482,7 @@ const MD = {
|
|
|
20482
20482
|
type: "target"
|
|
20483
20483
|
}, null, 8, ["id", "position"]),
|
|
20484
20484
|
H("div", jD, [
|
|
20485
|
-
H("div", qD,
|
|
20485
|
+
H("div", qD, pe(T.name), 1),
|
|
20486
20486
|
O(yr, {
|
|
20487
20487
|
color: M.value,
|
|
20488
20488
|
position: A.value,
|
|
@@ -20534,7 +20534,7 @@ const MD = {
|
|
|
20534
20534
|
class: "handle indented"
|
|
20535
20535
|
}, [
|
|
20536
20536
|
H("div", UD, [
|
|
20537
|
-
H("div", HD,
|
|
20537
|
+
H("div", HD, pe(T.name), 1),
|
|
20538
20538
|
O(yr, {
|
|
20539
20539
|
color: M.value,
|
|
20540
20540
|
position: S.value,
|
|
@@ -20600,14 +20600,14 @@ const MD = {
|
|
|
20600
20600
|
const { top: K = 0, left: z = 0 } = ((ie = S.value) == null ? void 0 : ie.getBoundingClientRect()) || {}, se = A({
|
|
20601
20601
|
x: X.clientX - z,
|
|
20602
20602
|
y: X.clientY - K
|
|
20603
|
-
}), { type: te, anchor:
|
|
20603
|
+
}), { type: te, anchor: ue } = Z.data, ce = {
|
|
20604
20604
|
type: te,
|
|
20605
20605
|
phase: e.phase,
|
|
20606
20606
|
position: {
|
|
20607
|
-
x: se.x -
|
|
20608
|
-
y: se.y -
|
|
20607
|
+
x: se.x - ue.offsetX,
|
|
20608
|
+
y: se.y - ue.offsetY
|
|
20609
20609
|
}
|
|
20610
|
-
}, ke = v(
|
|
20610
|
+
}, ke = v(ce);
|
|
20611
20611
|
ke && (f(ke), g.value = !0);
|
|
20612
20612
|
}
|
|
20613
20613
|
function V() {
|
|
@@ -20712,7 +20712,7 @@ const MD = {
|
|
|
20712
20712
|
]),
|
|
20713
20713
|
_: 1
|
|
20714
20714
|
}, 8, ["id", "class", "elements-selectable", "max-zoom", "min-zoom", "nodes-connectable", "nodes-draggable", "pan-on-drag", "pan-on-scroll", "zoom-on-double-click", "zoom-on-pinch", "zoom-on-scroll"]),
|
|
20715
|
-
J.value ? (w(), ee("div", YD,
|
|
20715
|
+
J.value ? (w(), ee("div", YD, pe(p(a)("plugins.free-form.datakit.flow_editor.phase_mask_help")), 1)) : Se("", !0)
|
|
20716
20716
|
], 512));
|
|
20717
20717
|
}
|
|
20718
20718
|
}), zd = /* @__PURE__ */ Me(WD, [["__scopeId", "data-v-b4eee6d4"]]), XD = /* @__PURE__ */ ge({
|
|
@@ -20724,15 +20724,15 @@ const MD = {
|
|
|
20724
20724
|
setup(e, { expose: t }) {
|
|
20725
20725
|
const n = ae(!1), o = ae(!1), { state: i, markAsLayoutCompleted: r, commit: a, clear: s } = Lt(), l = of(), u = `${l}-request`, d = `${l}-response`, c = Qe(u), f = Qe(d);
|
|
20726
20726
|
function m(z, se) {
|
|
20727
|
-
const { onPaneClick: te, onNodesChange:
|
|
20728
|
-
function
|
|
20729
|
-
if (!
|
|
20727
|
+
const { onPaneClick: te, onNodesChange: ue, onEdgesChange: ce, getSelectedNodes: ke, getSelectedEdges: Ae } = z, { removeSelectedElements: ie } = se;
|
|
20728
|
+
function de(fe) {
|
|
20729
|
+
if (!fe) {
|
|
20730
20730
|
ie();
|
|
20731
20731
|
return;
|
|
20732
20732
|
}
|
|
20733
|
-
|
|
20733
|
+
fe.some((he) => he.type === "select") && ke.value.length + Ae.value.length > 0 && ie();
|
|
20734
20734
|
}
|
|
20735
|
-
|
|
20735
|
+
ue(de), ce(de), te(() => de());
|
|
20736
20736
|
}
|
|
20737
20737
|
m(c, f), m(f, c);
|
|
20738
20738
|
const h = rt("flowPanels"), v = rt("requestLabel"), g = rt("requestCanvasContainer"), y = rt("requestFlow"), b = rt("resizeHandle"), _ = rt("responseLabel"), A = rt("responseCanvasContainer"), S = rt("responseFlow"), k = Yn(h), M = Yn(v), P = Yn(g), j = Yn(b), Q = Yn(_), J = Yn(A), x = F(() => Math.max(30, k.height.value * 0.03)), ne = F(() => P.height.value < x.value), T = F(() => J.height.value < x.value), V = ae("50%"), B = ae("50%"), re = () => {
|
|
@@ -20767,8 +20767,8 @@ const MD = {
|
|
|
20767
20767
|
[n, o, () => i.value.needLayout],
|
|
20768
20768
|
([z, se, te]) => {
|
|
20769
20769
|
!z || !se || (te && r(), setTimeout(() => {
|
|
20770
|
-
var
|
|
20771
|
-
te !== !1 && ((
|
|
20770
|
+
var ue, ce;
|
|
20771
|
+
te !== !1 && ((ue = y.value) == null || ue.autoLayout(!1), (ce = S.value) == null || ce.autoLayout(!1), a("*"), (te === !0 || !(te != null && te.keepHistory)) && s()), K();
|
|
20772
20772
|
}, 0));
|
|
20773
20773
|
}
|
|
20774
20774
|
), t({ fitView: K }), (z, se) => (w(), ee("div", {
|
|
@@ -20878,24 +20878,24 @@ const MD = {
|
|
|
20878
20878
|
}, {
|
|
20879
20879
|
default: R(() => [
|
|
20880
20880
|
H("div", ZD, [
|
|
20881
|
-
H("p", null,
|
|
20882
|
-
H("p", null,
|
|
20881
|
+
H("p", null, pe(a.value), 1),
|
|
20882
|
+
H("p", null, pe(p(o)("plugins.free-form.datakit.flow_editor.confirm.message.confirm")), 1),
|
|
20883
20883
|
H("div", JD, [
|
|
20884
20884
|
(w(!0), ee(Ke, null, Ve(s.value ?? [], ([g, y]) => (w(), ee("div", {
|
|
20885
20885
|
key: `${g}-${y}`
|
|
20886
20886
|
}, [
|
|
20887
20887
|
O(p(Wt), { color: p(Yk) }, null, 8, ["color"]),
|
|
20888
|
-
H("span", null,
|
|
20888
|
+
H("span", null, pe(g), 1),
|
|
20889
20889
|
h[0] || (h[0] = De(" → ", -1)),
|
|
20890
|
-
H("span", null,
|
|
20890
|
+
H("span", null, pe(y), 1)
|
|
20891
20891
|
]))), 128)),
|
|
20892
20892
|
(w(!0), ee(Ke, null, Ve(l.value ?? [], ([g, y]) => (w(), ee("div", {
|
|
20893
20893
|
key: `${g}-${y}`
|
|
20894
20894
|
}, [
|
|
20895
20895
|
O(p(gl), { color: p(dp) }, null, 8, ["color"]),
|
|
20896
|
-
H("span", null,
|
|
20896
|
+
H("span", null, pe(g), 1),
|
|
20897
20897
|
h[1] || (h[1] = De(" → ", -1)),
|
|
20898
|
-
H("span", null,
|
|
20898
|
+
H("span", null, pe(y), 1)
|
|
20899
20899
|
]))), 128))
|
|
20900
20900
|
])
|
|
20901
20901
|
])
|
|
@@ -21089,7 +21089,7 @@ const MD = {
|
|
|
21089
21089
|
onClick: (y) => l(v)
|
|
21090
21090
|
}, {
|
|
21091
21091
|
default: R(() => [
|
|
21092
|
-
De(
|
|
21092
|
+
De(pe(p(t)(`plugins.free-form.datakit.examples.${g}`)), 1)
|
|
21093
21093
|
]),
|
|
21094
21094
|
_: 2
|
|
21095
21095
|
}, 1032, ["onClick"])), 64))
|
|
@@ -21102,14 +21102,14 @@ const MD = {
|
|
|
21102
21102
|
to: "https://developer.konghq.com/plugins/datakit/"
|
|
21103
21103
|
}, {
|
|
21104
21104
|
default: R(() => [
|
|
21105
|
-
De(
|
|
21105
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.actions.view_docs")) + " ", 1),
|
|
21106
21106
|
O(p(Zh))
|
|
21107
21107
|
]),
|
|
21108
21108
|
_: 1
|
|
21109
21109
|
}),
|
|
21110
21110
|
O(p(dn), { onClick: u }, {
|
|
21111
21111
|
default: R(() => [
|
|
21112
|
-
De(
|
|
21112
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.actions.done")), 1)
|
|
21113
21113
|
]),
|
|
21114
21114
|
_: 1
|
|
21115
21115
|
})
|
|
@@ -21147,8 +21147,8 @@ const MD = {
|
|
|
21147
21147
|
O(p(r), { size: 16 })
|
|
21148
21148
|
]),
|
|
21149
21149
|
H("div", gL, [
|
|
21150
|
-
H("div", hL,
|
|
21151
|
-
H("div", vL,
|
|
21150
|
+
H("div", hL, pe(s.type), 1),
|
|
21151
|
+
H("div", vL, pe(p(i)), 1)
|
|
21152
21152
|
])
|
|
21153
21153
|
], 42, pL));
|
|
21154
21154
|
}
|
|
@@ -21204,7 +21204,7 @@ const MD = {
|
|
|
21204
21204
|
info: p(t)("plugins.free-form.datakit.flow_editor.node_panel.description")
|
|
21205
21205
|
}, {
|
|
21206
21206
|
default: R(() => [
|
|
21207
|
-
De(
|
|
21207
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_panel.title")), 1)
|
|
21208
21208
|
]),
|
|
21209
21209
|
_: 1
|
|
21210
21210
|
}, 8, ["info"])
|
|
@@ -21362,7 +21362,7 @@ const MD = {
|
|
|
21362
21362
|
for: `ff-kv-entry-key-${p(s).path.value}.${ne}`
|
|
21363
21363
|
}, {
|
|
21364
21364
|
default: R(() => [
|
|
21365
|
-
De(
|
|
21365
|
+
De(pe(p(l)("plugins.free-form.datakit.flow_editor.node_properties.input_name.label")), 1)
|
|
21366
21366
|
]),
|
|
21367
21367
|
_: 2
|
|
21368
21368
|
}, 1032, ["for"]),
|
|
@@ -21418,7 +21418,7 @@ const MD = {
|
|
|
21418
21418
|
}, {
|
|
21419
21419
|
default: R(() => [
|
|
21420
21420
|
O(p(Wt)),
|
|
21421
|
-
De(" " +
|
|
21421
|
+
De(" " + pe(p(l)("plugins.free-form.datakit.flow_editor.node_properties.input.add_button")), 1)
|
|
21422
21422
|
]),
|
|
21423
21423
|
_: 1
|
|
21424
21424
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -21453,7 +21453,7 @@ const MD = {
|
|
|
21453
21453
|
return (f, m) => {
|
|
21454
21454
|
const h = we("KLabel");
|
|
21455
21455
|
return w(), ee(Ke, null, [
|
|
21456
|
-
H("div", PL,
|
|
21456
|
+
H("div", PL, pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.label")), 1),
|
|
21457
21457
|
p(o)("input") ? (w(), W(fn, {
|
|
21458
21458
|
key: 0,
|
|
21459
21459
|
class: "dk-inputs-field-h2",
|
|
@@ -21469,14 +21469,14 @@ const MD = {
|
|
|
21469
21469
|
onChange: s
|
|
21470
21470
|
}, null, 8, ["items", "label", "label-attributes", "placeholder"])) : Se("", !0),
|
|
21471
21471
|
H("div", ML, [
|
|
21472
|
-
H("span", null,
|
|
21472
|
+
H("span", null, pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.or")), 1)
|
|
21473
21473
|
]),
|
|
21474
21474
|
O(h, {
|
|
21475
21475
|
class: "dk-inputs-field-h2 dk-margin-0",
|
|
21476
21476
|
info: p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.pre_field_tooltip")
|
|
21477
21477
|
}, {
|
|
21478
21478
|
default: R(() => [
|
|
21479
|
-
De(
|
|
21479
|
+
De(pe(p(i).t("plugins.free-form.datakit.flow_editor.node_properties.input.pre_field")), 1)
|
|
21480
21480
|
]),
|
|
21481
21481
|
_: 1
|
|
21482
21482
|
}, 8, ["info"]),
|
|
@@ -21884,8 +21884,8 @@ function bo(e, t) {
|
|
|
21884
21884
|
}), b = F(() => {
|
|
21885
21885
|
const Z = n.value.edges.filter((K) => K.target === e).reduce((K, z) => {
|
|
21886
21886
|
var ke, Ae;
|
|
21887
|
-
const se = i(z.source), te = (ke = Fn(se, "output", z.sourceField)) == null ? void 0 : ke.id,
|
|
21888
|
-
return
|
|
21887
|
+
const se = i(z.source), te = (ke = Fn(se, "output", z.sourceField)) == null ? void 0 : ke.id, ue = (Ae = Fn(y.value, "input", z.targetField)) == null ? void 0 : Ae.name, ce = se.id + (te ? `.${te}` : "");
|
|
21888
|
+
return ue ? K.inputs = { ...K.inputs, [ue]: ce } : K.input = ce, K;
|
|
21889
21889
|
}, {});
|
|
21890
21890
|
return y.value.fields.input.forEach((K) => {
|
|
21891
21891
|
Z.inputs || (Z.inputs = {}), Z.inputs[K.name] || (Z.inputs[K.name] = null);
|
|
@@ -21920,40 +21920,40 @@ function bo(e, t) {
|
|
|
21920
21920
|
if (g) return;
|
|
21921
21921
|
const K = Z == null, z = S("input", q).id;
|
|
21922
21922
|
if (K) {
|
|
21923
|
-
const
|
|
21924
|
-
|
|
21923
|
+
const fe = Q.value.find((he) => he.targetField === z);
|
|
21924
|
+
fe && u(fe.id);
|
|
21925
21925
|
return;
|
|
21926
21926
|
}
|
|
21927
21927
|
const {
|
|
21928
21928
|
nodeId: se,
|
|
21929
21929
|
fieldId: te
|
|
21930
|
-
} = Tc(Z),
|
|
21931
|
-
j.value && (
|
|
21932
|
-
const ke = Q.value.find((
|
|
21933
|
-
ke && (
|
|
21930
|
+
} = Tc(Z), ue = S("input", q).id, ce = [];
|
|
21931
|
+
j.value && (ce.push($i(j.value, i)), u(j.value.id, !1));
|
|
21932
|
+
const ke = Q.value.find((fe) => fe.targetField === z);
|
|
21933
|
+
ke && (ce.push($i(ke, i)), u(ke.id, !1)), d({
|
|
21934
21934
|
source: se,
|
|
21935
21935
|
sourceField: te,
|
|
21936
21936
|
target: e,
|
|
21937
|
-
targetField:
|
|
21937
|
+
targetField: ue
|
|
21938
21938
|
}, !1);
|
|
21939
21939
|
const Ae = dl(
|
|
21940
21940
|
se,
|
|
21941
21941
|
te,
|
|
21942
21942
|
e,
|
|
21943
|
-
|
|
21943
|
+
ue,
|
|
21944
21944
|
i
|
|
21945
21945
|
);
|
|
21946
|
-
if (
|
|
21947
|
-
if (de.length > 0 && !await v(
|
|
21948
|
-
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21949
|
-
[Ae],
|
|
21950
|
-
de
|
|
21951
|
-
)) {
|
|
21952
|
-
m();
|
|
21953
|
-
return;
|
|
21954
|
-
}
|
|
21946
|
+
if (ce[0] && Ae ? ce[0][1] === Ae[1] : !1) {
|
|
21955
21947
|
f();
|
|
21948
|
+
return;
|
|
21956
21949
|
}
|
|
21950
|
+
if (ce.length === 0)
|
|
21951
|
+
return;
|
|
21952
|
+
await v(
|
|
21953
|
+
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21954
|
+
[Ae],
|
|
21955
|
+
ce
|
|
21956
|
+
) || m();
|
|
21957
21957
|
}, x = async (q) => {
|
|
21958
21958
|
if (g) return;
|
|
21959
21959
|
if (q == null) {
|
|
@@ -21961,8 +21961,8 @@ function bo(e, t) {
|
|
|
21961
21961
|
return;
|
|
21962
21962
|
}
|
|
21963
21963
|
const K = [];
|
|
21964
|
-
for (const
|
|
21965
|
-
K.push($i(
|
|
21964
|
+
for (const ue of Q.value)
|
|
21965
|
+
K.push($i(ue, i)), u(ue.id, !1);
|
|
21966
21966
|
j.value && u(j.value.id, !1);
|
|
21967
21967
|
const { nodeId: z, fieldId: se } = Tc(q);
|
|
21968
21968
|
d({
|
|
@@ -22151,7 +22151,7 @@ const Qi = /* @__PURE__ */ ge({
|
|
|
22151
22151
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
22152
22152
|
O(_, { class: "dk-node-configuration-label" }, {
|
|
22153
22153
|
default: R(() => [
|
|
22154
|
-
De(
|
|
22154
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
22155
22155
|
]),
|
|
22156
22156
|
_: 1
|
|
22157
22157
|
}),
|
|
@@ -22313,7 +22313,7 @@ const Qi = /* @__PURE__ */ ge({
|
|
|
22313
22313
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
22314
22314
|
O(Q, { class: "dk-node-configuration-label" }, {
|
|
22315
22315
|
default: R(() => [
|
|
22316
|
-
De(
|
|
22316
|
+
De(pe(p(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
22317
22317
|
]),
|
|
22318
22318
|
_: 1
|
|
22319
22319
|
}),
|
|
@@ -22337,7 +22337,7 @@ const Qi = /* @__PURE__ */ ge({
|
|
|
22337
22337
|
href: p(Ud).jqlang
|
|
22338
22338
|
}, {
|
|
22339
22339
|
default: R(() => [
|
|
22340
|
-
De(
|
|
22340
|
+
De(pe(p(Ud).jqlang), 1)
|
|
22341
22341
|
]),
|
|
22342
22342
|
_: 1
|
|
22343
22343
|
}, 8, ["href"])
|
|
@@ -22449,7 +22449,7 @@ const Qi = /* @__PURE__ */ ge({
|
|
|
22449
22449
|
}, [
|
|
22450
22450
|
O(P, { class: "dk-node-configuration-label" }, {
|
|
22451
22451
|
default: R(() => [
|
|
22452
|
-
De(
|
|
22452
|
+
De(pe(p(u).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.label")), 1)
|
|
22453
22453
|
]),
|
|
22454
22454
|
_: 1
|
|
22455
22455
|
}),
|
|
@@ -22508,7 +22508,7 @@ const Qi = /* @__PURE__ */ ge({
|
|
|
22508
22508
|
}, {
|
|
22509
22509
|
default: R(() => [
|
|
22510
22510
|
O(p(Wt)),
|
|
22511
|
-
De(" " +
|
|
22511
|
+
De(" " + pe(p(u).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.add_button")), 1)
|
|
22512
22512
|
]),
|
|
22513
22513
|
_: 1
|
|
22514
22514
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -22698,8 +22698,8 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22698
22698
|
"item-template": R(({ item: b }) => [
|
|
22699
22699
|
H("div", e3, [
|
|
22700
22700
|
H("div", null, [
|
|
22701
|
-
H("div", null,
|
|
22702
|
-
H("div", t3,
|
|
22701
|
+
H("div", null, pe(b.label), 1),
|
|
22702
|
+
H("div", t3, pe(p(eo)[b.value].dataType), 1)
|
|
22703
22703
|
]),
|
|
22704
22704
|
H("div", n3, [
|
|
22705
22705
|
p(eo)[b.value].readable ? (w(), W(v, {
|
|
@@ -22707,7 +22707,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22707
22707
|
appearance: "info"
|
|
22708
22708
|
}, {
|
|
22709
22709
|
default: R(() => [
|
|
22710
|
-
De(
|
|
22710
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.node_properties.property.get")), 1)
|
|
22711
22711
|
]),
|
|
22712
22712
|
_: 1
|
|
22713
22713
|
})) : Se("", !0),
|
|
@@ -22716,7 +22716,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22716
22716
|
appearance: "warning"
|
|
22717
22717
|
}, {
|
|
22718
22718
|
default: R(() => [
|
|
22719
|
-
De(
|
|
22719
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.node_properties.property.set")), 1)
|
|
22720
22720
|
]),
|
|
22721
22721
|
_: 1
|
|
22722
22722
|
})) : Se("", !0)
|
|
@@ -22964,7 +22964,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
22964
22964
|
class: ze(["side-panel", { expanded: p(n), inited: a.value }])
|
|
22965
22965
|
}, [
|
|
22966
22966
|
H("header", d3, [
|
|
22967
|
-
H("h2", f3,
|
|
22967
|
+
H("h2", f3, pe(p(t)("plugins.free-form.datakit.flow_editor.name")), 1)
|
|
22968
22968
|
]),
|
|
22969
22969
|
H("div", p3, [
|
|
22970
22970
|
H("div", m3, [
|
|
@@ -23060,7 +23060,7 @@ const QL = /* @__PURE__ */ ge({
|
|
|
23060
23060
|
onClick: c[0] || (c[0] = (m) => s.value = !0)
|
|
23061
23061
|
}, {
|
|
23062
23062
|
default: R(() => [
|
|
23063
|
-
De(
|
|
23063
|
+
De(pe(p(n)("plugins.free-form.datakit.flow_editor.cta")) + " ", 1),
|
|
23064
23064
|
O(p(Jh))
|
|
23065
23065
|
]),
|
|
23066
23066
|
_: 1
|
|
@@ -23458,7 +23458,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23458
23458
|
default: R(() => [
|
|
23459
23459
|
H("div", X3, [
|
|
23460
23460
|
(w(), W(mt(a[y.value]))),
|
|
23461
|
-
De(" " +
|
|
23461
|
+
De(" " + pe(y.label), 1)
|
|
23462
23462
|
])
|
|
23463
23463
|
]),
|
|
23464
23464
|
_: 2
|
|
@@ -23726,39 +23726,39 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23726
23726
|
credential: r.credential,
|
|
23727
23727
|
enableRedisPartial: r.enableRedisPartial,
|
|
23728
23728
|
experimentalRenders: r.config.app === "konnect" ? r.config.experimentalRenders : void 0
|
|
23729
|
-
}), { convertToDotNotation: l, unFlattenObject: u, dismissField: d, isObjectEmpty: c, unsetNullForeignKey: f } = it.usePluginHelpers(), m = it.useExperimentalFreeForms(), { objectsAreEqual: h } = sa(), { i18n: { t: v } } = Ge(), g = (ie) => r.config.app === "konnect" ? ie.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" ? ie.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "") : ie, y = (ie,
|
|
23730
|
-
let
|
|
23731
|
-
return
|
|
23729
|
+
}), { convertToDotNotation: l, unFlattenObject: u, dismissField: d, isObjectEmpty: c, unsetNullForeignKey: f } = it.usePluginHelpers(), m = it.useExperimentalFreeForms(), { objectsAreEqual: h } = sa(), { i18n: { t: v } } = Ge(), g = (ie) => r.config.app === "konnect" ? ie.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "") : r.config.app === "kongManager" ? ie.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : "") : ie, y = (ie, de) => {
|
|
23730
|
+
let fe = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetOne}`;
|
|
23731
|
+
return fe = g(fe), fe = fe.replace(/{entity}/gi, ie), fe = fe.replace(/{id}/gi, de), fe;
|
|
23732
23732
|
}, b = (ie) => {
|
|
23733
|
-
let
|
|
23734
|
-
return
|
|
23733
|
+
let de = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetAll}`;
|
|
23734
|
+
return de = g(de), de = de.replace(/{entity}/gi, ie), de;
|
|
23735
23735
|
};
|
|
23736
23736
|
lt(Dh, {
|
|
23737
|
-
getOne: (ie,
|
|
23738
|
-
const
|
|
23739
|
-
return a.get(
|
|
23737
|
+
getOne: (ie, de) => {
|
|
23738
|
+
const fe = y(ie, de);
|
|
23739
|
+
return a.get(fe);
|
|
23740
23740
|
},
|
|
23741
|
-
getAll: (ie,
|
|
23742
|
-
const
|
|
23743
|
-
return r.config.app === "konnect" ? a.get(
|
|
23744
|
-
const { data: { data:
|
|
23745
|
-
if (delete
|
|
23746
|
-
const E = Object.keys(
|
|
23747
|
-
|
|
23741
|
+
getAll: (ie, de) => {
|
|
23742
|
+
const fe = b(ie);
|
|
23743
|
+
return r.config.app === "konnect" ? a.get(fe).then((he) => {
|
|
23744
|
+
const { data: { data: ve } } = he;
|
|
23745
|
+
if (delete de.size, delete de.offset, ve.length && Object.keys(de).length === 1) {
|
|
23746
|
+
const E = Object.keys(de)[0], C = ve.filter((N) => N[E] ? !!N[E].toLowerCase().includes(de[E].toLowerCase()) : !1);
|
|
23747
|
+
he.data.data = C;
|
|
23748
23748
|
}
|
|
23749
|
-
return
|
|
23750
|
-
}) : a.get(
|
|
23749
|
+
return he;
|
|
23750
|
+
}) : a.get(fe, { params: de });
|
|
23751
23751
|
},
|
|
23752
|
-
getAllV2: (ie,
|
|
23753
|
-
const
|
|
23752
|
+
getAllV2: (ie, de, fe) => {
|
|
23753
|
+
const he = b(ie);
|
|
23754
23754
|
if (r.config.app === "konnect") {
|
|
23755
|
-
const { size:
|
|
23755
|
+
const { size: ve, offset: E, ...C } = de;
|
|
23756
23756
|
if (ie === "consumer_groups")
|
|
23757
|
-
return a.get(
|
|
23757
|
+
return a.get(he, {
|
|
23758
23758
|
params: {
|
|
23759
23759
|
size: 1e3
|
|
23760
23760
|
},
|
|
23761
|
-
signal:
|
|
23761
|
+
signal: fe
|
|
23762
23762
|
}).then(($) => {
|
|
23763
23763
|
const { data: { data: U } } = $;
|
|
23764
23764
|
if (U.length && Object.keys(C).length === 1) {
|
|
@@ -23768,7 +23768,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23768
23768
|
return $;
|
|
23769
23769
|
});
|
|
23770
23770
|
const N = {
|
|
23771
|
-
size:
|
|
23771
|
+
size: ve,
|
|
23772
23772
|
offset: E
|
|
23773
23773
|
};
|
|
23774
23774
|
for (const $ of Object.keys(C))
|
|
@@ -23777,18 +23777,18 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23777
23777
|
contains: C[$]
|
|
23778
23778
|
}
|
|
23779
23779
|
};
|
|
23780
|
-
return a.get(
|
|
23780
|
+
return a.get(he, {
|
|
23781
23781
|
params: N,
|
|
23782
|
-
signal:
|
|
23782
|
+
signal: fe
|
|
23783
23783
|
});
|
|
23784
23784
|
}
|
|
23785
|
-
return a.get(
|
|
23785
|
+
return a.get(he, { params: de, signal: fe });
|
|
23786
23786
|
},
|
|
23787
|
-
peek: (ie,
|
|
23788
|
-
const
|
|
23789
|
-
return a.get(
|
|
23787
|
+
peek: (ie, de = 50) => {
|
|
23788
|
+
const fe = b(ie);
|
|
23789
|
+
return a.get(fe, {
|
|
23790
23790
|
params: {
|
|
23791
|
-
size:
|
|
23791
|
+
size: de
|
|
23792
23792
|
}
|
|
23793
23793
|
});
|
|
23794
23794
|
}
|
|
@@ -23796,14 +23796,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23796
23796
|
const M = ae(""), P = ae(""), j = ae(null), Q = ae({}), J = to({}), x = to({}), ne = F(() => {
|
|
23797
23797
|
var ie;
|
|
23798
23798
|
return (ie = j.value) == null ? void 0 : ie.options;
|
|
23799
|
-
}), T = ae(!1), V = ae(), B = (ie,
|
|
23800
|
-
T.value = ie ?? "", V.value =
|
|
23799
|
+
}), T = ae(!1), V = ae(), B = (ie, de) => {
|
|
23800
|
+
T.value = ie ?? "", V.value = de;
|
|
23801
23801
|
}, re = (ie) => {
|
|
23802
|
-
var
|
|
23803
|
-
(
|
|
23802
|
+
var de;
|
|
23803
|
+
(de = V.value) == null || de.call(V, ie), T.value = !1;
|
|
23804
23804
|
}, X = () => {
|
|
23805
23805
|
var C, N;
|
|
23806
|
-
const ie = { ...r.schema },
|
|
23806
|
+
const ie = { ...r.schema }, de = x, fe = J, he = Object.keys(de), ve = {};
|
|
23807
23807
|
if (!c(Q.value))
|
|
23808
23808
|
for (let $ = 0; $ < ((N = (C = Q.value) == null ? void 0 : C.fields) == null ? void 0 : N.length); $++)
|
|
23809
23809
|
ie[Q.value.fields[$].model] = Q.value.fields[$];
|
|
@@ -23813,15 +23813,15 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23813
23813
|
ie[I.model] = I;
|
|
23814
23814
|
}), U.model && (ie[U.model] = U);
|
|
23815
23815
|
}), delete ie[$]);
|
|
23816
|
-
}),
|
|
23816
|
+
}), he.forEach(($) => {
|
|
23817
23817
|
var xe;
|
|
23818
23818
|
if (!ie[$]) {
|
|
23819
|
-
$ === "partials" && (
|
|
23819
|
+
$ === "partials" && (ve[$] = de[$]);
|
|
23820
23820
|
return;
|
|
23821
23821
|
}
|
|
23822
23822
|
const U = ie[$];
|
|
23823
|
-
let I =
|
|
23824
|
-
const G =
|
|
23823
|
+
let I = de[$];
|
|
23824
|
+
const G = fe[$], Y = Array.isArray(I) ? "array" : typeof I, L = U ? U.valueType : null, oe = U ? U.valueArrayType : null, D = U ? U.transform : null;
|
|
23825
23825
|
if (I == null && G == null && !U.submitWhenNull)
|
|
23826
23826
|
return;
|
|
23827
23827
|
if (U) {
|
|
@@ -23854,9 +23854,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23854
23854
|
}
|
|
23855
23855
|
else L === "array" && (!I || !I.length ? I = U.submitWhenNull ? null : [] : ((xe = U.inputAttributes) == null ? void 0 : xe.type) === "number" && (I = I.map((Ie) => Number(Ie))));
|
|
23856
23856
|
if (U.type === "array" && U.nestedFields) {
|
|
23857
|
-
const Ie = (
|
|
23858
|
-
Object.keys(
|
|
23859
|
-
|
|
23857
|
+
const Ie = (ye) => {
|
|
23858
|
+
Object.keys(ye).forEach((_e) => {
|
|
23859
|
+
ye[_e] && typeof ye[_e] == "object" && !Array.isArray(ye[_e]) && ye[_e] !== null ? Ie(ye[_e]) : (ye[_e] === void 0 || ye[_e] === null || typeof ye[_e] == "number" && isNaN(ye[_e]) || typeof ye[_e] == "string" && ye[_e].trim().length === 0) && delete ye[_e];
|
|
23860
23860
|
});
|
|
23861
23861
|
};
|
|
23862
23862
|
I && typeof I == "object" && Ie(I);
|
|
@@ -23867,61 +23867,61 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23867
23867
|
}
|
|
23868
23868
|
let Ce = l($);
|
|
23869
23869
|
if (U.fieldNameHasDashes) {
|
|
23870
|
-
const [Ie, ...
|
|
23871
|
-
Ce = [Ie.replace(/_/g, "-"), ...
|
|
23870
|
+
const [Ie, ...ye] = Ce.split(".").reverse();
|
|
23871
|
+
Ce = [Ie.replace(/_/g, "-"), ...ye].reverse().join(".");
|
|
23872
23872
|
}
|
|
23873
23873
|
if (L === "object-expand") {
|
|
23874
23874
|
let Ie;
|
|
23875
23875
|
[Ce, Ie] = Ce.split(".");
|
|
23876
|
-
let
|
|
23877
|
-
|
|
23876
|
+
let ye = {};
|
|
23877
|
+
ve[Ce] && (ye = ve[Ce]), ye[Ie] = I, I = ye;
|
|
23878
23878
|
}
|
|
23879
|
-
G !== void 0 && I === "" && I !== G ?
|
|
23879
|
+
G !== void 0 && I === "" && I !== G ? ve[Ce] = L === "object" ? {} : null : U.type === "checklist" && I === "" ? ve[Ce] = [] : I !== "" && (ve[Ce] = I), ve[Ce] = D ? D(I) : ve[Ce], f(Ce, ve);
|
|
23880
23880
|
});
|
|
23881
|
-
const E = u(
|
|
23881
|
+
const E = u(ve);
|
|
23882
23882
|
return P.value && Object.assign(E, se.value), E;
|
|
23883
|
-
}, q = (ie,
|
|
23884
|
-
d(x,
|
|
23883
|
+
}, q = (ie, de = {}) => {
|
|
23884
|
+
d(x, de, ie, r.editing), i("model-updated", {
|
|
23885
23885
|
model: x,
|
|
23886
23886
|
originalModel: J,
|
|
23887
23887
|
data: X()
|
|
23888
23888
|
});
|
|
23889
|
-
}, Z = (ie,
|
|
23890
|
-
var
|
|
23891
|
-
const
|
|
23892
|
-
typeof ((
|
|
23893
|
-
const
|
|
23894
|
-
Object.assign(x,
|
|
23889
|
+
}, Z = (ie, de) => {
|
|
23890
|
+
var ve;
|
|
23891
|
+
const fe = { [de]: ie };
|
|
23892
|
+
typeof ((ve = r.schema[de]) == null ? void 0 : ve.modelTransformer) == "function" && (fe[de] = r.schema[de].modelTransformer(ie));
|
|
23893
|
+
const he = Object.assign({}, x, fe);
|
|
23894
|
+
Object.assign(x, he), i("model-updated", {
|
|
23895
23895
|
model: x,
|
|
23896
23896
|
originalModel: J,
|
|
23897
23897
|
data: X()
|
|
23898
23898
|
});
|
|
23899
23899
|
}, K = (ie) => {
|
|
23900
23900
|
i("validity-change", ie);
|
|
23901
|
-
}, z = (ie,
|
|
23902
|
-
Object.keys(ie).forEach((
|
|
23901
|
+
}, z = (ie, de) => {
|
|
23902
|
+
Object.keys(ie).forEach((fe) => {
|
|
23903
23903
|
var N, $;
|
|
23904
|
-
let
|
|
23905
|
-
if (!
|
|
23906
|
-
const U =
|
|
23907
|
-
(N = r.schema[U]) != null && N.fieldNameHasDashes && (
|
|
23904
|
+
let he = de ? `${de}-${fe}` : fe, ve = r.schema[he];
|
|
23905
|
+
if (!ve) {
|
|
23906
|
+
const U = de ? `${de}-${fe.replace(/-/g, "_")}` : fe.replace(/-/g, "_");
|
|
23907
|
+
(N = r.schema[U]) != null && N.fieldNameHasDashes && (he = U, ve = r.schema[he]), de && (($ = r.schema[de]) == null ? void 0 : $.keyFromObject) === fe && (he = de, ve = r.schema[he]);
|
|
23908
23908
|
}
|
|
23909
|
-
const E = ie[
|
|
23910
|
-
if (
|
|
23911
|
-
x[
|
|
23909
|
+
const E = ie[fe], C = typeof E;
|
|
23910
|
+
if (ve && ve.type === "object-advanced" && !E) {
|
|
23911
|
+
x[he] = {}, J[he] = {};
|
|
23912
23912
|
return;
|
|
23913
23913
|
}
|
|
23914
23914
|
if (Array.isArray(E)) {
|
|
23915
|
-
x[
|
|
23915
|
+
x[he] = JSON.parse(JSON.stringify(E)), J[he] = JSON.parse(JSON.stringify(E));
|
|
23916
23916
|
return;
|
|
23917
23917
|
}
|
|
23918
23918
|
if (C === "object" && E && !E.length)
|
|
23919
|
-
return z(E,
|
|
23920
|
-
if (C === "object" && E && E.length &&
|
|
23921
|
-
x[
|
|
23919
|
+
return z(E, he);
|
|
23920
|
+
if (C === "object" && E && E.length && ve.type === "input") {
|
|
23921
|
+
x[he] = E.join(", "), J[he] = E.join(", ");
|
|
23922
23922
|
return;
|
|
23923
23923
|
}
|
|
23924
|
-
x[
|
|
23924
|
+
x[he] = E, J[he] = E;
|
|
23925
23925
|
}), i("model-updated", {
|
|
23926
23926
|
model: x,
|
|
23927
23927
|
originalModel: J,
|
|
@@ -23935,7 +23935,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23935
23935
|
originalModel: J,
|
|
23936
23936
|
data: X()
|
|
23937
23937
|
});
|
|
23938
|
-
},
|
|
23938
|
+
}, ue = ae(!0), ce = () => {
|
|
23939
23939
|
var ie;
|
|
23940
23940
|
if (r.record && r.schema && (z({
|
|
23941
23941
|
enabled: r.record.enabled ?? !0,
|
|
@@ -23950,38 +23950,38 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23950
23950
|
consumer_id: r.record.consumer_id || r.record.consumer,
|
|
23951
23951
|
consumer_group_id: r.record.consumer_group_id || r.record.consumer_group
|
|
23952
23952
|
}), r.record.partials && q("redis", { partials: r.record.partials }), P.value ? te(r.record) : z(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
|
|
23953
|
-
const
|
|
23954
|
-
for (const
|
|
23955
|
-
const
|
|
23956
|
-
Object.prototype.hasOwnProperty.call(x, E) && (
|
|
23953
|
+
const de = {};
|
|
23954
|
+
for (const fe in r.entityMap) {
|
|
23955
|
+
const he = r.entityMap[fe].id, ve = r.entityMap[fe].idField, E = ve === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(ve).replace("_", "-"));
|
|
23956
|
+
Object.prototype.hasOwnProperty.call(x, E) && (de[E] = he);
|
|
23957
23957
|
}
|
|
23958
|
-
z(
|
|
23958
|
+
z(de);
|
|
23959
23959
|
}
|
|
23960
23960
|
if ((ie = r.entityMap.consumer) != null && ie.id && r.schema && r.credential) {
|
|
23961
|
-
const
|
|
23962
|
-
Object.prototype.hasOwnProperty.call(x, "consumer") && (
|
|
23961
|
+
const de = {};
|
|
23962
|
+
Object.prototype.hasOwnProperty.call(x, "consumer") && (de.consumer = r.entityMap.consumer.id), z(de);
|
|
23963
23963
|
}
|
|
23964
|
-
|
|
23964
|
+
ue.value = !1;
|
|
23965
23965
|
};
|
|
23966
|
-
return Ne(
|
|
23966
|
+
return Ne(ue, (ie) => {
|
|
23967
23967
|
i("loading", ie);
|
|
23968
|
-
}), Ne(() => r.schema, (ie,
|
|
23969
|
-
var
|
|
23970
|
-
if (h(ie || {},
|
|
23968
|
+
}), Ne(() => r.schema, (ie, de) => {
|
|
23969
|
+
var he, ve;
|
|
23970
|
+
if (h(ie || {}, de || {}))
|
|
23971
23971
|
return;
|
|
23972
|
-
const
|
|
23973
|
-
Object.assign(x,
|
|
23974
|
-
fields: (
|
|
23975
|
-
}, Object.assign(J, JSON.parse(JSON.stringify(
|
|
23972
|
+
const fe = s(ie, void 0, void 0, r.engine);
|
|
23973
|
+
Object.assign(x, fe.model), Q.value = {
|
|
23974
|
+
fields: (ve = (he = Q.value) == null ? void 0 : he.fields) == null ? void 0 : ve.map((E) => ({ ...E, disabled: E.disabled || !1 }))
|
|
23975
|
+
}, Object.assign(J, JSON.parse(JSON.stringify(fe.model))), P.value = r.engine ? r.engine === "vfg" ? void 0 : Ms(fe.model.name, m) || "CommonForm" : Ms(fe.model.name, m), M.value = lf(fe.model.name), ce();
|
|
23976
23976
|
}, { immediate: !0, deep: !0 }), $n(() => {
|
|
23977
|
-
var ie,
|
|
23978
|
-
j.value = s(r.schema, void 0, void 0, r.engine), Object.assign(x, ((ie = j.value) == null ? void 0 : ie.model) || {}), Q.value = ((
|
|
23979
|
-
}), (ie,
|
|
23980
|
-
var
|
|
23981
|
-
const
|
|
23977
|
+
var ie, de;
|
|
23978
|
+
j.value = s(r.schema, void 0, void 0, r.engine), Object.assign(x, ((ie = j.value) == null ? void 0 : ie.model) || {}), Q.value = ((de = j.value) == null ? void 0 : de.schema) || {}, ce();
|
|
23979
|
+
}), (ie, de) => {
|
|
23980
|
+
var he;
|
|
23981
|
+
const fe = we("KSkeleton");
|
|
23982
23982
|
return w(), ee(Ke, null, [
|
|
23983
23983
|
H("div", rK, [
|
|
23984
|
-
|
|
23984
|
+
ue.value ? (w(), W(fe, {
|
|
23985
23985
|
key: 0,
|
|
23986
23986
|
type: "form"
|
|
23987
23987
|
})) : x.id && e.editing || !e.editing ? (w(), ee("div", aK, [
|
|
@@ -23996,12 +23996,12 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23996
23996
|
"on-model-updated": Z,
|
|
23997
23997
|
"on-validity-change": K,
|
|
23998
23998
|
schema: e.rawSchema,
|
|
23999
|
-
onGlobalAction:
|
|
23999
|
+
onGlobalAction: de[0] || (de[0] = (ve, E) => ie.$emit("globalAction", ve, E))
|
|
24000
24000
|
}, ot({ _: 2 }, [
|
|
24001
24001
|
e.enableVaultSecretPicker ? {
|
|
24002
24002
|
name: p(no),
|
|
24003
|
-
fn: R((
|
|
24004
|
-
|
|
24003
|
+
fn: R((ve) => [
|
|
24004
|
+
ve.schema.referenceable ? (w(), W(p(qa), He({ key: 0 }, ve, { onOpen: B }), null, 16)) : Se("", !0)
|
|
24005
24005
|
]),
|
|
24006
24006
|
key: "0"
|
|
24007
24007
|
} : void 0
|
|
@@ -24014,12 +24014,12 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24014
24014
|
"is-editing": e.editing,
|
|
24015
24015
|
"on-model-updated": Z,
|
|
24016
24016
|
"on-partial-toggled": q,
|
|
24017
|
-
"show-new-partial-modal": (
|
|
24017
|
+
"show-new-partial-modal": (ve) => ie.$emit("showNewPartialModal", ve)
|
|
24018
24018
|
}, ot({ _: 2 }, [
|
|
24019
24019
|
e.enableVaultSecretPicker ? {
|
|
24020
24020
|
name: p(no),
|
|
24021
|
-
fn: R((
|
|
24022
|
-
|
|
24021
|
+
fn: R((ve) => [
|
|
24022
|
+
ve.schema.referenceable ? (w(), W(p(qa), He({ key: 0 }, ve, { onOpen: B }), null, 16)) : Se("", !0)
|
|
24023
24023
|
]),
|
|
24024
24024
|
key: "0"
|
|
24025
24025
|
} : void 0
|
|
@@ -24033,14 +24033,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24033
24033
|
onModelUpdated: Z,
|
|
24034
24034
|
onPartialToggled: q,
|
|
24035
24035
|
onRefreshModel: X,
|
|
24036
|
-
onShowNewPartialModal:
|
|
24036
|
+
onShowNewPartialModal: de[1] || (de[1] = (ve) => ie.$emit("showNewPartialModal", ve))
|
|
24037
24037
|
}, ot({
|
|
24038
24038
|
"plugin-config-empty-state": R(() => [
|
|
24039
|
-
H("div", sK,
|
|
24039
|
+
H("div", sK, pe(p(v)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
24040
24040
|
]),
|
|
24041
24041
|
_: 2
|
|
24042
24042
|
}, [
|
|
24043
|
-
(
|
|
24043
|
+
(he = p(rn)[x.name]) != null && he.fieldRules && (r.config.isNewOtelSchema || x.name !== "opentelemetry") ? {
|
|
24044
24044
|
name: "plugin-config-before-content",
|
|
24045
24045
|
fn: R(() => [
|
|
24046
24046
|
O(oE, {
|
|
@@ -24051,8 +24051,8 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24051
24051
|
} : void 0,
|
|
24052
24052
|
e.enableVaultSecretPicker ? {
|
|
24053
24053
|
name: p(no),
|
|
24054
|
-
fn: R((
|
|
24055
|
-
|
|
24054
|
+
fn: R((ve) => [
|
|
24055
|
+
ve.schema.referenceable ? (w(), W(p(qa), He({ key: 0 }, ve, { onOpen: B }), null, 16)) : Se("", !0)
|
|
24056
24056
|
]),
|
|
24057
24057
|
key: "1"
|
|
24058
24058
|
} : void 0
|
|
@@ -24062,7 +24062,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24062
24062
|
O(p(Lh), {
|
|
24063
24063
|
config: r.config,
|
|
24064
24064
|
setup: T.value,
|
|
24065
|
-
onCancel:
|
|
24065
|
+
onCancel: de[2] || (de[2] = () => T.value = !1),
|
|
24066
24066
|
onProceed: re
|
|
24067
24067
|
}, null, 8, ["config", "setup"])
|
|
24068
24068
|
], 64);
|
|
@@ -24237,8 +24237,8 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24237
24237
|
}), ne = () => {
|
|
24238
24238
|
m.value = !m.value;
|
|
24239
24239
|
}, T = F(() => {
|
|
24240
|
-
var Ie,
|
|
24241
|
-
const L = o.config.entityType === "consumers" && o.config.entityId || ((
|
|
24240
|
+
var Ie, ye, _e, Oe, Le, be, me, We;
|
|
24241
|
+
const L = o.config.entityType === "consumers" && o.config.entityId || ((ye = (Ie = _.value) == null ? void 0 : Ie.consumer) == null ? void 0 : ye.id), oe = o.config.entityType === "consumer_groups" && o.config.entityId || ((Oe = (_e = _.value) == null ? void 0 : _e.consumer_group) == null ? void 0 : Oe.id), D = o.config.entityType === "services" && o.config.entityId || ((be = (Le = _.value) == null ? void 0 : Le.service) == null ? void 0 : be.id), Ce = o.config.entityType === "routes" && o.config.entityId || ((We = (me = _.value) == null ? void 0 : me.route) == null ? void 0 : We.id);
|
|
24242
24242
|
if (!(L || oe || D || Ce))
|
|
24243
24243
|
return {
|
|
24244
24244
|
global: {
|
|
@@ -24347,7 +24347,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24347
24347
|
}, X = (L, oe, D, Ce) => {
|
|
24348
24348
|
var _e, Oe;
|
|
24349
24349
|
let xe = oe && oe.fields || [];
|
|
24350
|
-
const Ie = a[o.pluginType],
|
|
24350
|
+
const Ie = a[o.pluginType], ye = (Oe = (_e = Io[o.pluginType]) == null ? void 0 : _e.schema) == null ? void 0 : Oe.fields;
|
|
24351
24351
|
return Array.isArray(xe) && (xe = xe.reduce((Le, be) => {
|
|
24352
24352
|
const me = Object.keys(be)[0];
|
|
24353
24353
|
return me.match(/-/g) ? Le[me.replace(/-/g, "_")] = {
|
|
@@ -24483,12 +24483,12 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24483
24483
|
};
|
|
24484
24484
|
}
|
|
24485
24485
|
}
|
|
24486
|
-
if (b.value &&
|
|
24487
|
-
for (let qe = 0; qe <
|
|
24488
|
-
if (
|
|
24486
|
+
if (b.value && ye) {
|
|
24487
|
+
for (let qe = 0; qe < ye.length; qe++)
|
|
24488
|
+
if (ye[qe][me]) {
|
|
24489
24489
|
D[me] = {
|
|
24490
24490
|
...D[me],
|
|
24491
|
-
...
|
|
24491
|
+
...ye[qe][me]
|
|
24492
24492
|
};
|
|
24493
24493
|
break;
|
|
24494
24494
|
}
|
|
@@ -24505,12 +24505,12 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24505
24505
|
}), D;
|
|
24506
24506
|
}, q = () => {
|
|
24507
24507
|
var me, We, Xe, Ct, yn, ii, ri, ai, si, qe, Pt, ct;
|
|
24508
|
-
const L = ((me = rn[o.pluginType]) == null ? void 0 : me.scope.includes(xt.SERVICE)) ?? !0, oe = ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.ROUTE)) ?? !0, D = ((Xe = rn[o.pluginType]) == null ? void 0 : Xe.scope.includes(xt.CONSUMER)) ?? !0, Ce = o.config.disableConsumerGroupScope ? !1 : ((Ct = rn[o.pluginType]) == null ? void 0 : Ct.scope.includes(xt.CONSUMER_GROUP)) ?? !0, xe = o.config.entityType === "consumers" && !!o.config.entityId || !!((ii = (yn = _.value) == null ? void 0 : yn.consumer) != null && ii.id), Ie = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ai = (ri = _.value) == null ? void 0 : ri.consumer_group) != null && ai.id),
|
|
24508
|
+
const L = ((me = rn[o.pluginType]) == null ? void 0 : me.scope.includes(xt.SERVICE)) ?? !0, oe = ((We = rn[o.pluginType]) == null ? void 0 : We.scope.includes(xt.ROUTE)) ?? !0, D = ((Xe = rn[o.pluginType]) == null ? void 0 : Xe.scope.includes(xt.CONSUMER)) ?? !0, Ce = o.config.disableConsumerGroupScope ? !1 : ((Ct = rn[o.pluginType]) == null ? void 0 : Ct.scope.includes(xt.CONSUMER_GROUP)) ?? !0, xe = o.config.entityType === "consumers" && !!o.config.entityId || !!((ii = (yn = _.value) == null ? void 0 : yn.consumer) != null && ii.id), Ie = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ai = (ri = _.value) == null ? void 0 : ri.consumer_group) != null && ai.id), ye = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (si = _.value) == null ? void 0 : si.service) != null && qe.id), _e = o.config.entityType === "routes" && !!o.config.entityId || !!((ct = (Pt = _.value) == null ? void 0 : Pt.route) != null && ct.id), Oe = [], Le = (Be, Ue, et) => Be ? r("plugins.form.disable_source_scope_change", { scope: et }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: et }) : "", be = (Be) => {
|
|
24509
24509
|
var Ue, et;
|
|
24510
24510
|
return ((et = (Ue = o.scopedEntitiesPermissions) == null ? void 0 : Ue[Be]) == null ? void 0 : et.canRetrieve) === !1;
|
|
24511
24511
|
};
|
|
24512
24512
|
if (L) {
|
|
24513
|
-
const Be = be("service"), Ue = "services", et =
|
|
24513
|
+
const Be = be("service"), Ue = "services", et = ye && o.disableScopeSelection;
|
|
24514
24514
|
Oe.push({
|
|
24515
24515
|
id: "service-id",
|
|
24516
24516
|
model: "service-id",
|
|
@@ -24609,9 +24609,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24609
24609
|
a[o.pluginType] && a[o.pluginType].overwriteDefault && Object.hasOwnProperty.call(a[o.pluginType], "formSchema") && Object.assign(V, a[o.pluginType].formSchema);
|
|
24610
24610
|
}, Z = F(() => !c(j.fields, P, !0)), K = F(() => !I.value && !M.value && (v.value === zn.Create || Z.value)), z = ae(!1), se = ae(), te = (L) => {
|
|
24611
24611
|
o.credential && L.password && (L.password = ""), j.fields.id = (L == null ? void 0 : L.id) || void 0, se.value = L == null ? void 0 : L.ordering, Object.assign(P, j.fields), _.value = L, z.value = !0;
|
|
24612
|
-
},
|
|
24612
|
+
}, ue = ae({}), ce = (L) => {
|
|
24613
24613
|
var oe;
|
|
24614
|
-
j.fields = L.model, j.fields.id = ((oe = _.value) == null ? void 0 : oe.id) || void 0, Object.assign(P, L.originalModel),
|
|
24614
|
+
j.fields = L.model, j.fields.id = ((oe = _.value) == null ? void 0 : oe.id) || void 0, Object.assign(P, L.originalModel), ue.value = L.data, o.isWizardStep && n("model-updated", {
|
|
24615
24615
|
model: j.fields,
|
|
24616
24616
|
data: L.data,
|
|
24617
24617
|
resourceEndpoint: B.value
|
|
@@ -24623,20 +24623,20 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24623
24623
|
const D = L[0] !== oe[0], Ce = L[1], xe = oe[1];
|
|
24624
24624
|
if (!b.value && v.value === zn.Edit && (D || Ce && Ce !== xe)) {
|
|
24625
24625
|
const Ie = X("config", A.value, V);
|
|
24626
|
-
|
|
24626
|
+
ve.value && (Ie._isCustomPlugin = !0), S.value && (Ie._supported_redis_partial_type = S.value), y.value = Ie;
|
|
24627
24627
|
}
|
|
24628
24628
|
}, { deep: !0 });
|
|
24629
|
-
const
|
|
24629
|
+
const de = () => {
|
|
24630
24630
|
o.config.cancelRoute ? i.push(o.config.cancelRoute) : n("cancel");
|
|
24631
|
-
},
|
|
24631
|
+
}, fe = F(() => {
|
|
24632
24632
|
let L = `${o.config.apiBaseUrl}${dt.form[o.config.app].validate}`;
|
|
24633
24633
|
return o.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, o.config.controlPlaneId || "") : o.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, o.config.workspace ? `/${o.config.workspace}` : "")), L = L.replace(/{id}/gi, o.pluginId), L;
|
|
24634
|
-
}),
|
|
24634
|
+
}), he = F(() => {
|
|
24635
24635
|
const L = o.config.entityType && o.config.entityId && !o.developer, oe = b.value ? dt.form[o.config.app].credential[v.value] : dt.form[o.config.app][v.value][L ? "forEntity" : "all"];
|
|
24636
24636
|
let D = `${o.config.apiBaseUrl}${oe}`;
|
|
24637
24637
|
return o.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, o.config.controlPlaneId || "") : o.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, o.config.workspace ? `/${o.config.workspace}` : "")), D = D.replace(/{resourceEndpoint}/gi, B.value), D = D.replace(/{id}/gi, o.pluginId), D = D.replace(/{entityType}/gi, o.config.entityType || ""), D = D.replace(/{entityId}/gi, o.config.entityId || ""), D;
|
|
24638
|
-
}),
|
|
24639
|
-
const L =
|
|
24638
|
+
}), ve = F(() => !Object.keys(rn).includes(o.pluginType)), E = F(() => {
|
|
24639
|
+
const L = ue.value;
|
|
24640
24640
|
if (b.value) {
|
|
24641
24641
|
for (const oe in xt) {
|
|
24642
24642
|
const D = xt[oe];
|
|
@@ -24644,7 +24644,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24644
24644
|
}
|
|
24645
24645
|
delete L.created_at;
|
|
24646
24646
|
}
|
|
24647
|
-
return
|
|
24647
|
+
return ue.value.partials && k.value && rc(L, k.value), L;
|
|
24648
24648
|
}), C = F(() => {
|
|
24649
24649
|
const { __ui_data: L, ...oe } = { ...E.value };
|
|
24650
24650
|
return oe;
|
|
@@ -24659,7 +24659,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24659
24659
|
model: j.fields,
|
|
24660
24660
|
payload: oe,
|
|
24661
24661
|
schema: y.value
|
|
24662
|
-
}), !b.value && !
|
|
24662
|
+
}), !b.value && !ve.value && await f.post(fe.value, oe), v.value === "create" ? L = await f.post(he.value, oe) : v.value === "edit" && (L = o.config.app === "konnect" || S.value && oe.partials ? await f.put(he.value, Object.assign({ ordering: se.value }, oe)) : await f.patch(he.value, oe)), Object.assign(P, j.fields), n("update", L == null ? void 0 : L.data);
|
|
24663
24663
|
} catch (L) {
|
|
24664
24664
|
j.serverErrorMessage = u(L), n("error", L);
|
|
24665
24665
|
} finally {
|
|
@@ -24686,16 +24686,16 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24686
24686
|
else {
|
|
24687
24687
|
const Ie = xe.fields.find((_e) => _e.config);
|
|
24688
24688
|
A.value = Ie ? Ie.config : xe, xe.supported_partials && (S.value = Object.keys(xe.supported_partials).find((_e) => [Ss.REDIS_CE, Ss.REDIS_EE].includes(_e)), k.value = (oe = xe.supported_partials[S.value]) == null ? void 0 : oe[0]), q();
|
|
24689
|
-
const
|
|
24690
|
-
if (
|
|
24691
|
-
const { default: _e = [], elements: Oe = {} } =
|
|
24689
|
+
const ye = (D = xe.fields.find((_e) => _e.protocols)) == null ? void 0 : D.protocols;
|
|
24690
|
+
if (ye) {
|
|
24691
|
+
const { default: _e = [], elements: Oe = {} } = ye;
|
|
24692
24692
|
V.protocols.default = _e, V.protocols.placeholder = o.config.app === "konnect" ? r("plugins.form.fields.protocols.placeholderWithDefaultValues", {
|
|
24693
24693
|
protocols: _e.join(", ")
|
|
24694
24694
|
}) : r("plugins.form.fields.protocols.placeholder"), (Ce = Oe.one_of) != null && Ce.length && (V.protocols.values = Oe.one_of.map((Le) => ({ label: Le, value: Le })));
|
|
24695
24695
|
}
|
|
24696
24696
|
if (z.value || v.value === zn.Create) {
|
|
24697
24697
|
const _e = X("config", A.value, V);
|
|
24698
|
-
S.value && (_e._supported_redis_partial_type = S.value),
|
|
24698
|
+
S.value && (_e._supported_redis_partial_type = S.value), ve.value && (_e._isCustomPlugin = !0), y.value = _e;
|
|
24699
24699
|
}
|
|
24700
24700
|
}
|
|
24701
24701
|
}
|
|
@@ -24705,7 +24705,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24705
24705
|
I.value = !1;
|
|
24706
24706
|
}
|
|
24707
24707
|
}), (L, oe) => {
|
|
24708
|
-
const D = we("KSkeleton"), Ce = we("KEmptyState"), xe = we("KButton"), Ie = we("KTabs"),
|
|
24708
|
+
const D = we("KSkeleton"), Ce = we("KEmptyState"), xe = we("KButton"), Ie = we("KTabs"), ye = we("KSlideout");
|
|
24709
24709
|
return w(), ee("div", fK, [
|
|
24710
24710
|
I.value ? (w(), W(D, {
|
|
24711
24711
|
key: 0,
|
|
@@ -24717,7 +24717,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24717
24717
|
"icon-variant": "error"
|
|
24718
24718
|
}, {
|
|
24719
24719
|
default: R(() => [
|
|
24720
|
-
H("h3", null,
|
|
24720
|
+
H("h3", null, pe(p(r)("errors.load_schema")), 1)
|
|
24721
24721
|
]),
|
|
24722
24722
|
_: 1
|
|
24723
24723
|
})) : (w(), W(p(_h), {
|
|
@@ -24732,7 +24732,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24732
24732
|
"is-readonly": j.isReadonly,
|
|
24733
24733
|
"no-validate": "",
|
|
24734
24734
|
"wrapper-component": e.noCardWrapper ? "div" : void 0,
|
|
24735
|
-
onCancel:
|
|
24735
|
+
onCancel: de,
|
|
24736
24736
|
"onFetch:error": oe[4] || (oe[4] = (_e) => L.$emit("error", _e)),
|
|
24737
24737
|
"onFetch:success": te,
|
|
24738
24738
|
onLoading: oe[5] || (oe[5] = (_e) => L.$emit("loading", _e))
|
|
@@ -24751,7 +24751,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24751
24751
|
onClick: oe[3] || (oe[3] = (_e) => ne())
|
|
24752
24752
|
}, {
|
|
24753
24753
|
default: R(() => [
|
|
24754
|
-
De(
|
|
24754
|
+
De(pe(p(r)("actions.view_configuration")), 1)
|
|
24755
24755
|
]),
|
|
24756
24756
|
_: 1
|
|
24757
24757
|
}, 8, ["data-testid"])),
|
|
@@ -24760,10 +24760,10 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24760
24760
|
class: "form-action-button",
|
|
24761
24761
|
"data-testid": `plugin-${h.value ? "edit" : "create"}-form-cancel`,
|
|
24762
24762
|
disabled: j.isReadonly,
|
|
24763
|
-
onClick:
|
|
24763
|
+
onClick: de
|
|
24764
24764
|
}, {
|
|
24765
24765
|
default: R(() => [
|
|
24766
|
-
De(
|
|
24766
|
+
De(pe(p(r)("actions.cancel")), 1)
|
|
24767
24767
|
]),
|
|
24768
24768
|
_: 1
|
|
24769
24769
|
}, 8, ["data-testid", "disabled"]),
|
|
@@ -24775,7 +24775,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24775
24775
|
onClick: N
|
|
24776
24776
|
}, {
|
|
24777
24777
|
default: R(() => [
|
|
24778
|
-
De(
|
|
24778
|
+
De(pe(p(r)("actions.save")), 1)
|
|
24779
24779
|
]),
|
|
24780
24780
|
_: 1
|
|
24781
24781
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -24802,14 +24802,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24802
24802
|
schema: y.value,
|
|
24803
24803
|
onGlobalAction: oe[0] || (oe[0] = (_e, Oe) => L.$emit("globalAction", _e, Oe)),
|
|
24804
24804
|
onLoading: oe[1] || (oe[1] = (_e) => M.value = _e),
|
|
24805
|
-
onModelUpdated:
|
|
24805
|
+
onModelUpdated: ce,
|
|
24806
24806
|
onShowNewPartialModal: oe[2] || (oe[2] = (_e) => L.$emit("showNewPartialModal", _e)),
|
|
24807
24807
|
onValidityChange: ie
|
|
24808
24808
|
}, null, 8, ["config", "credential", "editing", "enable-redis-partial", "enable-vault-secret-picker", "engine", "entity-map", "raw-schema", "record", "schema"])
|
|
24809
24809
|
]),
|
|
24810
24810
|
_: 1
|
|
24811
24811
|
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "wrapper-component"])),
|
|
24812
|
-
O(
|
|
24812
|
+
O(ye, {
|
|
24813
24813
|
"close-on-blur": !1,
|
|
24814
24814
|
"data-testid": "form-view-configuration-slideout",
|
|
24815
24815
|
"has-overlay": !1,
|
|
@@ -24819,7 +24819,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24819
24819
|
onClose: ne
|
|
24820
24820
|
}, {
|
|
24821
24821
|
default: R(() => [
|
|
24822
|
-
H("div", null,
|
|
24822
|
+
H("div", null, pe(p(r)("view_configuration.message")), 1),
|
|
24823
24823
|
O(Ie, {
|
|
24824
24824
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
24825
24825
|
tabs: Q.value
|
|
@@ -24828,7 +24828,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24828
24828
|
O(p(Eh), {
|
|
24829
24829
|
config: e.config,
|
|
24830
24830
|
"entity-record": C.value,
|
|
24831
|
-
"fetcher-url":
|
|
24831
|
+
"fetcher-url": he.value,
|
|
24832
24832
|
"request-method": o.pluginId ? "put" : "post"
|
|
24833
24833
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
24834
24834
|
]),
|
|
@@ -25018,11 +25018,11 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25018
25018
|
}, X = () => {
|
|
25019
25019
|
T.value = !1, V.value = null;
|
|
25020
25020
|
}, q = async () => {
|
|
25021
|
-
var L, oe, D, Ce, xe, Ie,
|
|
25021
|
+
var L, oe, D, Ce, xe, Ie, ye, _e;
|
|
25022
25022
|
if (!await ((L = i.canEdit) == null ? void 0 : L.call(i, V.value)) || !V.value)
|
|
25023
25023
|
return;
|
|
25024
25024
|
let G = `${i.config.apiBaseUrl}${(xe = dt.item[i.config.app]) == null ? void 0 : xe[(oe = i.config) != null && oe.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((D = i.config) == null ? void 0 : D.entityType) || "").replace(/{entityId}/gi, ((Ce = i.config) == null ? void 0 : Ce.entityId) || "")}`.replace(/{id}/gi, V.value.id || "");
|
|
25025
|
-
i.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, ((Ie = i.config) == null ? void 0 : Ie.controlPlaneId) || "") : i.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, (
|
|
25025
|
+
i.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, ((Ie = i.config) == null ? void 0 : Ie.controlPlaneId) || "") : i.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, (ye = i.config) != null && ye.workspace ? `/${i.config.workspace}` : ""));
|
|
25026
25026
|
const Y = !V.value.enabled;
|
|
25027
25027
|
try {
|
|
25028
25028
|
const { data: Oe } = ((_e = i.config) == null ? void 0 : _e.app) === "konnect" ? await s.put(G, { ...V.value, enabled: Y }, { timeout: 12e4 }) : await s.patch(G, { ...V.value, enabled: Y }, { timeout: 12e4 });
|
|
@@ -25067,19 +25067,19 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25067
25067
|
}), te = (I) => ({
|
|
25068
25068
|
label: r("actions.edit"),
|
|
25069
25069
|
to: i.config.getEditRoute(I)
|
|
25070
|
-
}),
|
|
25070
|
+
}), ue = (I) => ({
|
|
25071
25071
|
label: r("actions.configure_dynamic_ordering"),
|
|
25072
25072
|
to: i.config.getConfigureDynamicOrderingRoute(I)
|
|
25073
|
-
}),
|
|
25074
|
-
|
|
25075
|
-
},
|
|
25073
|
+
}), ce = ae(void 0), ke = ae(!1), Ae = ae(!1), ie = ae(""), de = xh(i.config, b.value), fe = (I) => {
|
|
25074
|
+
ce.value = I, ke.value = !0;
|
|
25075
|
+
}, he = () => {
|
|
25076
25076
|
ke.value = !1;
|
|
25077
|
-
},
|
|
25077
|
+
}, ve = async () => {
|
|
25078
25078
|
var I, G, Y;
|
|
25079
|
-
if ((I =
|
|
25079
|
+
if ((I = ce.value) != null && I.id) {
|
|
25080
25080
|
Ae.value = !0;
|
|
25081
25081
|
try {
|
|
25082
|
-
await s.delete(
|
|
25082
|
+
await s.delete(de(ce.value.id)), Ae.value = !1, ke.value = !1, M.value++, o("delete:success", ce.value);
|
|
25083
25083
|
} catch (L) {
|
|
25084
25084
|
ie.value = ((Y = (G = L.response) == null ? void 0 : G.data) == null ? void 0 : Y.message) || L.message || r("errors.delete"), o("error", L);
|
|
25085
25085
|
} finally {
|
|
@@ -25125,14 +25125,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25125
25125
|
title: e.title,
|
|
25126
25126
|
"title-tag": e.titleTag,
|
|
25127
25127
|
onClearSearchInput: P,
|
|
25128
|
-
"onClick:row": G[4] || (G[4] = (
|
|
25128
|
+
"onClick:row": G[4] || (G[4] = (ye) => z(ye)),
|
|
25129
25129
|
onSort: j,
|
|
25130
25130
|
onState: p(u)
|
|
25131
25131
|
}, ot({
|
|
25132
25132
|
"toolbar-filter": R(() => [
|
|
25133
25133
|
O(p($h), {
|
|
25134
25134
|
modelValue: _.value,
|
|
25135
|
-
"onUpdate:modelValue": G[0] || (G[0] = (
|
|
25135
|
+
"onUpdate:modelValue": G[0] || (G[0] = (ye) => _.value = ye),
|
|
25136
25136
|
config: A.value
|
|
25137
25137
|
}, null, 8, ["modelValue", "config"])
|
|
25138
25138
|
]),
|
|
@@ -25148,7 +25148,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25148
25148
|
class: "open-learning-hub",
|
|
25149
25149
|
"data-testid": "plugins-learn-more-button",
|
|
25150
25150
|
icon: "",
|
|
25151
|
-
onClick: G[1] || (G[1] = (
|
|
25151
|
+
onClick: G[1] || (G[1] = (ye) => I.$emit("click:learn-more"))
|
|
25152
25152
|
}, {
|
|
25153
25153
|
default: R(() => [
|
|
25154
25154
|
O(p(_u), { decorative: "" })
|
|
@@ -25167,7 +25167,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25167
25167
|
}, {
|
|
25168
25168
|
default: R(() => [
|
|
25169
25169
|
O(p(Wt)),
|
|
25170
|
-
De(" " +
|
|
25170
|
+
De(" " + pe(p(r)("plugins.list.toolbar_actions.new_plugin")), 1)
|
|
25171
25171
|
]),
|
|
25172
25172
|
_: 1
|
|
25173
25173
|
}, 8, ["size", "to"])
|
|
@@ -25177,34 +25177,34 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25177
25177
|
])
|
|
25178
25178
|
], 8, ["disabled"]))
|
|
25179
25179
|
]),
|
|
25180
|
-
name: R(({ row:
|
|
25180
|
+
name: R(({ row: ye }) => [
|
|
25181
25181
|
H("div", yK, [
|
|
25182
25182
|
O(p(hl), {
|
|
25183
25183
|
class: "plugin-icon",
|
|
25184
|
-
name:
|
|
25184
|
+
name: ye.name,
|
|
25185
25185
|
size: 24
|
|
25186
25186
|
}, null, 8, ["name"]),
|
|
25187
25187
|
H("div", _K, [
|
|
25188
|
-
|
|
25189
|
-
|
|
25188
|
+
ye.instance_name ? (w(), ee("span", bK, pe(ye.instance_name), 1)) : (w(), ee("span", wK, pe(p(n).getDisplayName(ye.name)), 1)),
|
|
25189
|
+
ye.instance_name ? (w(), ee("span", EK, pe(p(n).getDisplayName(ye.name)), 1)) : Se("", !0)
|
|
25190
25190
|
])
|
|
25191
25191
|
])
|
|
25192
25192
|
]),
|
|
25193
|
-
appliedTo: R(({ row:
|
|
25194
|
-
J(
|
|
25193
|
+
appliedTo: R(({ row: ye }) => [
|
|
25194
|
+
J(ye).length > 0 ? (w(), W(D, { key: 0 }, {
|
|
25195
25195
|
default: R(() => [
|
|
25196
|
-
(w(!0), ee(Ke, null, Ve(J(
|
|
25196
|
+
(w(!0), ee(Ke, null, Ve(J(ye), (_e) => (w(), W(p(Un), {
|
|
25197
25197
|
key: _e.badgeText,
|
|
25198
|
-
"auth-function": () => x(_e.type,
|
|
25198
|
+
"auth-function": () => x(_e.type, ye),
|
|
25199
25199
|
"force-show": ""
|
|
25200
25200
|
}, {
|
|
25201
25201
|
default: R(({ isAllowed: Oe }) => [
|
|
25202
25202
|
O(oe, {
|
|
25203
25203
|
class: ze(Oe || "disabled"),
|
|
25204
|
-
onClick: Dt((Le) => Oe && _e.type && ne(_e.type,
|
|
25204
|
+
onClick: Dt((Le) => Oe && _e.type && ne(_e.type, ye), ["stop"])
|
|
25205
25205
|
}, {
|
|
25206
25206
|
default: R(() => [
|
|
25207
|
-
De(
|
|
25207
|
+
De(pe(_e.badgeText), 1)
|
|
25208
25208
|
]),
|
|
25209
25209
|
_: 2
|
|
25210
25210
|
}, 1032, ["class", "onClick"])
|
|
@@ -25215,9 +25215,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25215
25215
|
_: 2
|
|
25216
25216
|
}, 1024)) : (w(), ee("span", kK, "-"))
|
|
25217
25217
|
]),
|
|
25218
|
-
enabled: R(({ row:
|
|
25218
|
+
enabled: R(({ row: ye }) => [
|
|
25219
25219
|
O(p(Un), {
|
|
25220
|
-
"auth-function": async () => !!(await e.canEdit(
|
|
25220
|
+
"auth-function": async () => !!(await e.canEdit(ye) && await e.canToggle(ye)),
|
|
25221
25221
|
"force-show": ""
|
|
25222
25222
|
}, {
|
|
25223
25223
|
default: R(({ isAllowed: _e }) => {
|
|
@@ -25229,9 +25229,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25229
25229
|
}, [
|
|
25230
25230
|
O(Ce, {
|
|
25231
25231
|
disabled: !_e,
|
|
25232
|
-
"disabled-tooltip-text": !_e && ((Le = (Oe = e.config).getToggleDisabledTooltip) == null ? void 0 : Le.call(Oe,
|
|
25233
|
-
"model-value":
|
|
25234
|
-
onClick: Dt((be) => _e && re(
|
|
25232
|
+
"disabled-tooltip-text": !_e && ((Le = (Oe = e.config).getToggleDisabledTooltip) == null ? void 0 : Le.call(Oe, ye)) || void 0,
|
|
25233
|
+
"model-value": ye.enabled,
|
|
25234
|
+
onClick: Dt((be) => _e && re(ye), ["stop", "prevent"])
|
|
25235
25235
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
25236
25236
|
])
|
|
25237
25237
|
];
|
|
@@ -25239,28 +25239,28 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25239
25239
|
_: 2
|
|
25240
25240
|
}, 1032, ["auth-function"])
|
|
25241
25241
|
]),
|
|
25242
|
-
ordering: R(({ rowValue:
|
|
25242
|
+
ordering: R(({ rowValue: ye }) => [
|
|
25243
25243
|
O(oe, {
|
|
25244
|
-
appearance: p(ic)(
|
|
25244
|
+
appearance: p(ic)(ye) ? "info" : "warning"
|
|
25245
25245
|
}, {
|
|
25246
25246
|
default: R(() => [
|
|
25247
|
-
De(
|
|
25247
|
+
De(pe(p(ic)(ye) ? p(r)("plugins.list.table_headers.ordering_badge.static") : p(r)("plugins.list.table_headers.ordering_badge.dynamic")), 1)
|
|
25248
25248
|
]),
|
|
25249
25249
|
_: 2
|
|
25250
25250
|
}, 1032, ["appearance"])
|
|
25251
25251
|
]),
|
|
25252
|
-
tags: R(({ rowValue:
|
|
25253
|
-
O(p(Th), { tags:
|
|
25252
|
+
tags: R(({ rowValue: ye }) => [
|
|
25253
|
+
O(p(Th), { tags: ye }, null, 8, ["tags"])
|
|
25254
25254
|
]),
|
|
25255
|
-
actions: R(({ row:
|
|
25255
|
+
actions: R(({ row: ye }) => [
|
|
25256
25256
|
O(Ie, null, {
|
|
25257
25257
|
default: R(({ copyToClipboard: _e }) => [
|
|
25258
25258
|
O(xe, {
|
|
25259
25259
|
"data-testid": "action-entity-copy-id",
|
|
25260
|
-
onClick: (Oe) => Z(
|
|
25260
|
+
onClick: (Oe) => Z(ye, _e)
|
|
25261
25261
|
}, {
|
|
25262
25262
|
default: R(() => [
|
|
25263
|
-
De(
|
|
25263
|
+
De(pe(p(r)("actions.copy_id")), 1)
|
|
25264
25264
|
]),
|
|
25265
25265
|
_: 2
|
|
25266
25266
|
}, 1032, ["onClick"])
|
|
@@ -25271,10 +25271,10 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25271
25271
|
default: R(({ copyToClipboard: _e }) => [
|
|
25272
25272
|
O(xe, {
|
|
25273
25273
|
"data-testid": "action-entity-copy-json",
|
|
25274
|
-
onClick: (Oe) => K(
|
|
25274
|
+
onClick: (Oe) => K(ye, _e)
|
|
25275
25275
|
}, {
|
|
25276
25276
|
default: R(() => [
|
|
25277
|
-
De(
|
|
25277
|
+
De(pe(p(r)("actions.copy_json")), 1)
|
|
25278
25278
|
]),
|
|
25279
25279
|
_: 2
|
|
25280
25280
|
}, 1032, ["onClick"])
|
|
@@ -25282,53 +25282,53 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25282
25282
|
_: 2
|
|
25283
25283
|
}, 1024),
|
|
25284
25284
|
O(p(Un), {
|
|
25285
|
-
"auth-function": () => e.canRetrieve(
|
|
25285
|
+
"auth-function": () => e.canRetrieve(ye)
|
|
25286
25286
|
}, {
|
|
25287
25287
|
default: R(() => [
|
|
25288
25288
|
O(xe, {
|
|
25289
25289
|
"data-testid": "action-entity-view",
|
|
25290
25290
|
"has-divider": "",
|
|
25291
|
-
item: se(
|
|
25291
|
+
item: se(ye)
|
|
25292
25292
|
}, null, 8, ["item"])
|
|
25293
25293
|
]),
|
|
25294
25294
|
_: 2
|
|
25295
25295
|
}, 1032, ["auth-function"]),
|
|
25296
25296
|
O(p(Un), {
|
|
25297
|
-
"auth-function": () => e.canEdit(
|
|
25297
|
+
"auth-function": () => e.canEdit(ye)
|
|
25298
25298
|
}, {
|
|
25299
25299
|
default: R(() => [
|
|
25300
25300
|
O(xe, {
|
|
25301
25301
|
"data-testid": "action-entity-edit",
|
|
25302
|
-
item: te(
|
|
25302
|
+
item: te(ye)
|
|
25303
25303
|
}, null, 8, ["item"])
|
|
25304
25304
|
]),
|
|
25305
25305
|
_: 2
|
|
25306
25306
|
}, 1032, ["auth-function"]),
|
|
25307
25307
|
!f.value && !m.value && p(h) ? (w(), W(p(Un), {
|
|
25308
25308
|
key: 0,
|
|
25309
|
-
"auth-function": () => e.canConfigureDynamicOrdering(
|
|
25309
|
+
"auth-function": () => e.canConfigureDynamicOrdering(ye)
|
|
25310
25310
|
}, {
|
|
25311
25311
|
default: R(() => [
|
|
25312
|
-
|
|
25312
|
+
ue(ye) ? (w(), W(xe, {
|
|
25313
25313
|
key: 0,
|
|
25314
25314
|
"data-testid": "action-entity-config-dyn-order",
|
|
25315
|
-
item:
|
|
25315
|
+
item: ue(ye)
|
|
25316
25316
|
}, null, 8, ["item"])) : Se("", !0)
|
|
25317
25317
|
]),
|
|
25318
25318
|
_: 2
|
|
25319
25319
|
}, 1032, ["auth-function"])) : Se("", !0),
|
|
25320
25320
|
O(p(Un), {
|
|
25321
|
-
"auth-function": () => e.canDelete(
|
|
25321
|
+
"auth-function": () => e.canDelete(ye)
|
|
25322
25322
|
}, {
|
|
25323
25323
|
default: R(() => [
|
|
25324
25324
|
O(xe, {
|
|
25325
25325
|
danger: "",
|
|
25326
25326
|
"data-testid": "action-entity-delete",
|
|
25327
25327
|
"has-divider": "",
|
|
25328
|
-
onClick: (_e) =>
|
|
25328
|
+
onClick: (_e) => fe(ye)
|
|
25329
25329
|
}, {
|
|
25330
25330
|
default: R(() => [
|
|
25331
|
-
De(
|
|
25331
|
+
De(pe(p(r)("actions.delete")), 1)
|
|
25332
25332
|
]),
|
|
25333
25333
|
_: 2
|
|
25334
25334
|
}, 1032, ["onClick"])
|
|
@@ -25341,7 +25341,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25341
25341
|
!_.value && e.config.app === "konnect" ? {
|
|
25342
25342
|
name: "empty-state",
|
|
25343
25343
|
fn: R(() => {
|
|
25344
|
-
var
|
|
25344
|
+
var ye;
|
|
25345
25345
|
return [
|
|
25346
25346
|
O(L, {
|
|
25347
25347
|
"data-testid": e.config.entityId ? "nested-plugins-entity-empty-state" : "plugins-entity-empty-state",
|
|
@@ -25360,7 +25360,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25360
25360
|
}, {
|
|
25361
25361
|
default: R(() => [
|
|
25362
25362
|
O(p(Wt), { decorative: "" }),
|
|
25363
|
-
De(" " +
|
|
25363
|
+
De(" " + pe(p(r)("plugins.list.empty_state_v2.create_cta")), 1)
|
|
25364
25364
|
]),
|
|
25365
25365
|
_: 1
|
|
25366
25366
|
})) : Se("", !0),
|
|
@@ -25371,17 +25371,17 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25371
25371
|
}, {
|
|
25372
25372
|
default: R(() => [
|
|
25373
25373
|
O(p(_u), { decorative: "" }),
|
|
25374
|
-
De(" " +
|
|
25374
|
+
De(" " + pe(p(r)("plugins.list.empty_state_v2.learn_more")), 1)
|
|
25375
25375
|
]),
|
|
25376
25376
|
_: 1
|
|
25377
25377
|
})
|
|
25378
25378
|
]),
|
|
25379
25379
|
_: 2
|
|
25380
25380
|
}, [
|
|
25381
|
-
(
|
|
25381
|
+
(ye = e.config) != null && ye.isControlPlaneGroup ? {
|
|
25382
25382
|
name: "default",
|
|
25383
25383
|
fn: R(() => [
|
|
25384
|
-
De(
|
|
25384
|
+
De(pe(p(r)("plugins.list.empty_state_v2.group")), 1)
|
|
25385
25385
|
]),
|
|
25386
25386
|
key: "0"
|
|
25387
25387
|
} : void 0
|
|
@@ -25404,13 +25404,13 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25404
25404
|
O(p(af), {
|
|
25405
25405
|
"action-pending": Ae.value,
|
|
25406
25406
|
description: p(r)("delete.description"),
|
|
25407
|
-
"entity-name":
|
|
25407
|
+
"entity-name": ce.value && (ce.value.instance_name || ce.value.name || ce.value.id),
|
|
25408
25408
|
"entity-type": p(sf).Plugin,
|
|
25409
25409
|
error: ie.value,
|
|
25410
25410
|
title: p(r)("delete.title"),
|
|
25411
25411
|
visible: ke.value,
|
|
25412
|
-
onCancel:
|
|
25413
|
-
onProceed:
|
|
25412
|
+
onCancel: he,
|
|
25413
|
+
onProceed: ve
|
|
25414
25414
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
25415
25415
|
]);
|
|
25416
25416
|
};
|
|
@@ -25489,7 +25489,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25489
25489
|
H("div", IK, [
|
|
25490
25490
|
H("span", {
|
|
25491
25491
|
class: ze({ "non-custom-title": !m.value })
|
|
25492
|
-
},
|
|
25492
|
+
}, pe(e.plugin.name), 3)
|
|
25493
25493
|
]),
|
|
25494
25494
|
l.value ? (w(), ee("div", TK, [
|
|
25495
25495
|
O(S, {
|
|
@@ -25518,7 +25518,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25518
25518
|
onClick: b[0] || (b[0] = Dt((M) => v(e.plugin.name, e.plugin.customPluginType), ["stop"]))
|
|
25519
25519
|
}, {
|
|
25520
25520
|
default: R(() => [
|
|
25521
|
-
De(
|
|
25521
|
+
De(pe(p(r)("actions.edit")), 1)
|
|
25522
25522
|
]),
|
|
25523
25523
|
_: 1
|
|
25524
25524
|
})) : Se("", !0),
|
|
@@ -25530,7 +25530,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25530
25530
|
onClick: Dt(h, ["stop"])
|
|
25531
25531
|
}, {
|
|
25532
25532
|
default: R(() => [
|
|
25533
|
-
De(
|
|
25533
|
+
De(pe(p(r)("actions.delete")), 1)
|
|
25534
25534
|
]),
|
|
25535
25535
|
_: 1
|
|
25536
25536
|
})) : Se("", !0)
|
|
@@ -25552,18 +25552,18 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25552
25552
|
size: 55
|
|
25553
25553
|
}, null, 8, ["alt", "name"]),
|
|
25554
25554
|
e.plugin.description || m.value && !f.value ? (w(), ee("div", NK, [
|
|
25555
|
-
m.value && !f.value ? (w(), ee("p", OK,
|
|
25555
|
+
m.value && !f.value ? (w(), ee("p", OK, pe(p(r)("plugins.select.custom_badge_text")), 1)) : Se("", !0),
|
|
25556
25556
|
e.plugin.description ? (w(), ee("p", {
|
|
25557
25557
|
key: 1,
|
|
25558
25558
|
class: "plugin-card-text",
|
|
25559
25559
|
title: e.plugin.description
|
|
25560
|
-
},
|
|
25560
|
+
}, pe(e.plugin.description), 9, PK)) : Se("", !0)
|
|
25561
25561
|
])) : Se("", !0)
|
|
25562
25562
|
], 10, $K),
|
|
25563
25563
|
H("div", {
|
|
25564
25564
|
class: "plugin-card-footer",
|
|
25565
25565
|
onClick: g
|
|
25566
|
-
},
|
|
25566
|
+
}, pe(f.value ? p(r)("actions.create_custom") : e.plugin.exists ? p(r)("actions.enabled") : p(r)("actions.enable")), 1)
|
|
25567
25567
|
], 10, xK)
|
|
25568
25568
|
]),
|
|
25569
25569
|
_: 1
|
|
@@ -25642,7 +25642,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25642
25642
|
tag: "p"
|
|
25643
25643
|
}, {
|
|
25644
25644
|
name: R(() => [
|
|
25645
|
-
H("strong", null,
|
|
25645
|
+
H("strong", null, pe(e.plugin.name), 1)
|
|
25646
25646
|
]),
|
|
25647
25647
|
_: 1
|
|
25648
25648
|
})
|
|
@@ -25657,7 +25657,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25657
25657
|
onClick: g[1] || (g[1] = (_) => v.$emit("closed"))
|
|
25658
25658
|
}, {
|
|
25659
25659
|
default: R(() => [
|
|
25660
|
-
De(
|
|
25660
|
+
De(pe(p(r)("actions.cancel")), 1)
|
|
25661
25661
|
]),
|
|
25662
25662
|
_: 1
|
|
25663
25663
|
})
|
|
@@ -25800,10 +25800,10 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25800
25800
|
"icon-variant": "kong"
|
|
25801
25801
|
}, {
|
|
25802
25802
|
title: R(() => [
|
|
25803
|
-
H("span", LK,
|
|
25803
|
+
H("span", LK, pe(p(i)("plugins.select.tabs.custom.empty_title")), 1)
|
|
25804
25804
|
]),
|
|
25805
25805
|
default: R(() => [
|
|
25806
|
-
H("span", KK,
|
|
25806
|
+
H("span", KK, pe(p(i)("plugins.select.tabs.custom.empty_description")), 1)
|
|
25807
25807
|
]),
|
|
25808
25808
|
_: 1
|
|
25809
25809
|
})),
|
|
@@ -25973,10 +25973,10 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25973
25973
|
"icon-variant": "kong"
|
|
25974
25974
|
}, {
|
|
25975
25975
|
title: R(() => [
|
|
25976
|
-
H("span", zK,
|
|
25976
|
+
H("span", zK, pe(p(i)("plugins.select.tabs.kong.empty_title")), 1)
|
|
25977
25977
|
]),
|
|
25978
25978
|
default: R(() => [
|
|
25979
|
-
H("span", UK,
|
|
25979
|
+
H("span", UK, pe(p(i)("plugins.select.tabs.kong.empty_description")), 1)
|
|
25980
25980
|
]),
|
|
25981
25981
|
_: 1
|
|
25982
25982
|
})),
|
|
@@ -26104,8 +26104,8 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26104
26104
|
return {};
|
|
26105
26105
|
const K = c.value.toLowerCase(), z = JSON.parse(JSON.stringify(y.value));
|
|
26106
26106
|
for (const te in y.value) {
|
|
26107
|
-
const
|
|
26108
|
-
|
|
26107
|
+
const ue = ((se = y.value[te]) == null ? void 0 : se.filter((ce) => ce.name.toLowerCase().includes(K) || ce.id.toLowerCase().includes(K) || ce.group.toLowerCase().includes(K))) || [];
|
|
26108
|
+
ue.length ? z[te] = ue : delete z[te];
|
|
26109
26109
|
}
|
|
26110
26110
|
return z;
|
|
26111
26111
|
}), k = F(() => n.highlightedPluginIds.reduce((K, z) => {
|
|
@@ -26141,9 +26141,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26141
26141
|
group: ((ke = s[z]) == null ? void 0 : ke.group) || Ze.CUSTOM_PLUGINS
|
|
26142
26142
|
};
|
|
26143
26143
|
te.group === Ze.CUSTOM_PLUGINS && (te.customPluginType = g.value.find((Ae) => Ae.name === z) ? "streaming" : "schema"), n.disabledPlugins && (te.disabledMessage = n.disabledPlugins[z]);
|
|
26144
|
-
const
|
|
26145
|
-
let
|
|
26146
|
-
return
|
|
26144
|
+
const ue = te.group || a("plugins.select.misc_plugins");
|
|
26145
|
+
let ce = K[ue];
|
|
26146
|
+
return ce || (ce = []), ce.push(te), ce.sort(u("name")), K[ue] = ce, K;
|
|
26147
26147
|
}, {}), x = F(() => {
|
|
26148
26148
|
var z;
|
|
26149
26149
|
let K = `${n.config.apiBaseUrl}${dt.select[n.config.app].availablePlugins}`;
|
|
@@ -26183,8 +26183,8 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26183
26183
|
if (n.config.app === "konnect") {
|
|
26184
26184
|
const { names: te } = se;
|
|
26185
26185
|
if (v.value = te || [], ne.value) {
|
|
26186
|
-
const { data:
|
|
26187
|
-
g.value =
|
|
26186
|
+
const { data: ue } = await _.get(ne.value);
|
|
26187
|
+
g.value = ue.data || [];
|
|
26188
26188
|
}
|
|
26189
26189
|
} else if (n.config.app === "kongManager") {
|
|
26190
26190
|
const { plugins: { available_on_server: te } } = se;
|
|
@@ -26197,14 +26197,14 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26197
26197
|
try {
|
|
26198
26198
|
const { data: { data: se } } = await _.get(T.value);
|
|
26199
26199
|
if (se != null && se.length) {
|
|
26200
|
-
const te = se.reduce((
|
|
26200
|
+
const te = se.reduce((ue, ce) => (ce.name && ue.push(ce.name), ue), []);
|
|
26201
26201
|
b.value = b.value.concat(te);
|
|
26202
26202
|
}
|
|
26203
26203
|
} catch {
|
|
26204
26204
|
}
|
|
26205
26205
|
m.value || (y.value = J()), f.value = !1;
|
|
26206
26206
|
}), (K, z) => {
|
|
26207
|
-
const se = we("KInput"), te = we("KSkeletonBox"),
|
|
26207
|
+
const se = we("KInput"), te = we("KSkeletonBox"), ue = we("KSkeleton"), ce = we("KEmptyState"), ke = we("KTooltip"), Ae = we("KTabs");
|
|
26208
26208
|
return w(), ee("div", HK, [
|
|
26209
26209
|
H("div", GK, [
|
|
26210
26210
|
O(se, {
|
|
@@ -26223,29 +26223,29 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26223
26223
|
class: "plugins-skeleton-title",
|
|
26224
26224
|
width: "10"
|
|
26225
26225
|
}),
|
|
26226
|
-
O(
|
|
26226
|
+
O(ue, {
|
|
26227
26227
|
"card-count": 8,
|
|
26228
26228
|
class: "plugins-skeleton-cards",
|
|
26229
26229
|
type: "card"
|
|
26230
26230
|
})
|
|
26231
|
-
])) : m.value ? (w(), W(
|
|
26231
|
+
])) : m.value ? (w(), W(ce, {
|
|
26232
26232
|
key: 1,
|
|
26233
26233
|
"action-button-visible": !1,
|
|
26234
26234
|
"data-testid": "plugins-fetch-error",
|
|
26235
26235
|
"icon-variant": "error"
|
|
26236
26236
|
}, {
|
|
26237
26237
|
default: R(() => [
|
|
26238
|
-
H("h3", null,
|
|
26238
|
+
H("h3", null, pe(h.value), 1)
|
|
26239
26239
|
]),
|
|
26240
26240
|
_: 1
|
|
26241
|
-
})) : P.value && c.value ? (w(), W(
|
|
26241
|
+
})) : P.value && c.value ? (w(), W(ce, {
|
|
26242
26242
|
key: 2,
|
|
26243
26243
|
"action-button-visible": !1,
|
|
26244
26244
|
"data-testid": "plugins-empty-state",
|
|
26245
26245
|
"icon-variant": "search"
|
|
26246
26246
|
}, {
|
|
26247
26247
|
default: R(() => [
|
|
26248
|
-
H("h5", null,
|
|
26248
|
+
H("h5", null, pe(p(a)("search.no_results", { filter: c.value })), 1)
|
|
26249
26249
|
]),
|
|
26250
26250
|
_: 1
|
|
26251
26251
|
})) : (w(), ee("section", WK, [
|
|
@@ -26259,7 +26259,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26259
26259
|
}, ot({
|
|
26260
26260
|
kong: R(() => [
|
|
26261
26261
|
H("div", XK, [
|
|
26262
|
-
H("p", ZK,
|
|
26262
|
+
H("p", ZK, pe(p(a)("plugins.select.tabs.kong.description")), 1),
|
|
26263
26263
|
O(Qd, {
|
|
26264
26264
|
config: e.config,
|
|
26265
26265
|
"hide-highlighted-plugins": c.value.length > 0,
|
|
@@ -26274,7 +26274,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26274
26274
|
custom: R(() => [
|
|
26275
26275
|
H("div", JK, [
|
|
26276
26276
|
Fe(K.$slots, "before-custom-tab-content", {}, void 0, !0),
|
|
26277
|
-
H("p", QK,
|
|
26277
|
+
H("p", QK, pe(p(a)("plugins.select.tabs.custom.description")), 1),
|
|
26278
26278
|
O(jK, {
|
|
26279
26279
|
"can-create-custom-plugin": B.value,
|
|
26280
26280
|
"can-delete-custom-plugin": X.value,
|
|
@@ -26298,7 +26298,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26298
26298
|
text: p(a)("plugins.select.tabs.custom.disabled_tooltip")
|
|
26299
26299
|
}, {
|
|
26300
26300
|
default: R(() => [
|
|
26301
|
-
H("div", null,
|
|
26301
|
+
H("div", null, pe(p(a)("plugins.select.tabs.custom.title")), 1)
|
|
26302
26302
|
]),
|
|
26303
26303
|
_: 1
|
|
26304
26304
|
}, 8, ["text"])
|
|
@@ -26464,7 +26464,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26464
26464
|
"icon-variant": "error"
|
|
26465
26465
|
}, {
|
|
26466
26466
|
default: R(() => [
|
|
26467
|
-
H("h3", null,
|
|
26467
|
+
H("h3", null, pe(y.value), 1)
|
|
26468
26468
|
]),
|
|
26469
26469
|
_: 1
|
|
26470
26470
|
})) : (w(), W(p(Ph), {
|
|
@@ -26488,7 +26488,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26488
26488
|
name: p(s)("rowValue", P),
|
|
26489
26489
|
size: 24
|
|
26490
26490
|
}, null, 8, ["name"]),
|
|
26491
|
-
H("span", oB,
|
|
26491
|
+
H("span", oB, pe(p(r).getDisplayName(p(s)("rowValue", P))), 1)
|
|
26492
26492
|
])
|
|
26493
26493
|
]),
|
|
26494
26494
|
consumer: R((P) => [
|