@kong-ui-public/entities-plugins 9.97.8 → 9.97.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +429 -429
- package/dist/entities-plugins.umd.js +3 -3
- package/dist/types/components/free-form/Datakit/flow-editor/composables/useNodeForm.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/store/flow.d.ts +3 -0
- package/dist/types/components/free-form/Datakit/flow-editor/store/flow.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/store/history.d.ts +2 -1
- package/dist/types/components/free-form/Datakit/flow-editor/store/history.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/store/store.d.ts +2 -0
- package/dist/types/components/free-form/Datakit/flow-editor/store/store.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -6,7 +6,7 @@ import { useStringHelpers as aa, ConfigurationSchemaType as At, useAxios as Vn,
|
|
|
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 ue, 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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["jwt-signer"]
|
|
1873
1873
|
},
|
|
1874
1874
|
jwt: {
|
|
1875
1875
|
descriptionKey: "plugins.meta.jwt.description",
|
|
1876
1876
|
nameKey: "plugins.meta.jwt.name",
|
|
1877
|
-
...
|
|
1877
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["oauth2-introspection"]
|
|
1903
1903
|
},
|
|
1904
1904
|
oauth2: {
|
|
1905
1905
|
descriptionKey: "plugins.meta.oauth2.description",
|
|
1906
1906
|
nameKey: "plugins.meta.oauth2.name",
|
|
1907
|
-
...
|
|
1907
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["bot-detection"]
|
|
1928
1928
|
},
|
|
1929
1929
|
cors: {
|
|
1930
1930
|
descriptionKey: "plugins.meta.cors.description",
|
|
1931
1931
|
nameKey: "plugins.meta.cors.name",
|
|
1932
|
-
...
|
|
1932
|
+
...ue.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
|
+
...ue["ip-restriction"]
|
|
1941
1941
|
},
|
|
1942
1942
|
opa: {
|
|
1943
1943
|
descriptionKey: "plugins.meta.opa.description",
|
|
1944
1944
|
nameKey: "plugins.meta.opa.name",
|
|
1945
|
-
...
|
|
1945
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue.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
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["azure-functions"]
|
|
2107
2107
|
},
|
|
2108
2108
|
openwhisk: {
|
|
2109
2109
|
descriptionKey: "plugins.meta.openwhisk.description",
|
|
2110
2110
|
nameKey: "plugins.meta.openwhisk.name",
|
|
2111
|
-
...
|
|
2111
|
+
...ue.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
|
+
...ue["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
|
+
...ue["post-function"]
|
|
2122
2122
|
},
|
|
2123
2123
|
datadog: {
|
|
2124
2124
|
descriptionKey: "plugins.meta.datadog.description",
|
|
2125
2125
|
nameKey: "plugins.meta.datadog.name",
|
|
2126
|
-
...
|
|
2126
|
+
...ue.datadog
|
|
2127
2127
|
},
|
|
2128
2128
|
prometheus: {
|
|
2129
2129
|
descriptionKey: "plugins.meta.prometheus.description",
|
|
2130
2130
|
nameKey: "plugins.meta.prometheus.name",
|
|
2131
|
-
...
|
|
2131
|
+
...ue.prometheus
|
|
2132
2132
|
},
|
|
2133
2133
|
zipkin: {
|
|
2134
2134
|
descriptionKey: "plugins.meta.zipkin.description",
|
|
2135
2135
|
nameKey: "plugins.meta.zipkin.name",
|
|
2136
|
-
...
|
|
2136
|
+
...ue.zipkin
|
|
2137
2137
|
},
|
|
2138
2138
|
collector: {
|
|
2139
2139
|
descriptionKey: "plugins.meta.collector.description",
|
|
2140
2140
|
nameKey: "plugins.meta.collector.name",
|
|
2141
|
-
...
|
|
2141
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["kafka-upstream"]
|
|
2180
2180
|
},
|
|
2181
2181
|
degraphql: {
|
|
2182
2182
|
descriptionKey: "plugins.meta.degraphql.description",
|
|
2183
2183
|
nameKey: "plugins.meta.degraphql.name",
|
|
2184
|
-
...
|
|
2184
|
+
...ue.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
|
+
...ue["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
|
+
...ue.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
|
+
...ue["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
|
+
...ue["http-log"]
|
|
2208
2208
|
},
|
|
2209
2209
|
loggly: {
|
|
2210
2210
|
descriptionKey: "plugins.meta.loggly.description",
|
|
2211
2211
|
nameKey: "plugins.meta.loggly.name",
|
|
2212
|
-
...
|
|
2212
|
+
...ue.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
|
+
...ue["statsd-advanced"]
|
|
2218
2218
|
},
|
|
2219
2219
|
statsd: {
|
|
2220
2220
|
descriptionKey: "plugins.meta.statsd.description",
|
|
2221
2221
|
nameKey: "plugins.meta.statsd.name",
|
|
2222
|
-
...
|
|
2222
|
+
...ue.statsd
|
|
2223
2223
|
},
|
|
2224
2224
|
syslog: {
|
|
2225
2225
|
descriptionKey: "plugins.meta.syslog.description",
|
|
2226
2226
|
nameKey: "plugins.meta.syslog.name",
|
|
2227
|
-
...
|
|
2227
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["kafka-log"]
|
|
2243
2243
|
},
|
|
2244
2244
|
session: {
|
|
2245
2245
|
descriptionKey: "plugins.meta.session.description",
|
|
2246
2246
|
nameKey: "plugins.meta.session.name",
|
|
2247
|
-
...
|
|
2247
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["konnect-application-auth"]
|
|
2263
2263
|
},
|
|
2264
2264
|
acme: {
|
|
2265
2265
|
descriptionKey: "plugins.meta.acme.description",
|
|
2266
2266
|
nameKey: "plugins.meta.acme.name",
|
|
2267
|
-
...
|
|
2267
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["xml-threat-protection"]
|
|
2332
2332
|
},
|
|
2333
2333
|
saml: {
|
|
2334
2334
|
descriptionKey: "plugins.meta.saml.description",
|
|
2335
2335
|
nameKey: "plugins.meta.saml.name",
|
|
2336
|
-
...
|
|
2336
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["upstream-oauth"]
|
|
2388
2388
|
},
|
|
2389
2389
|
confluent: {
|
|
2390
2390
|
descriptionKey: "plugins.meta.confluent.description",
|
|
2391
2391
|
nameKey: "plugins.meta.confluent.name",
|
|
2392
|
-
...
|
|
2392
|
+
...ue.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
|
+
...ue["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
|
+
...ue["injection-protection"]
|
|
2403
2403
|
},
|
|
2404
2404
|
redirect: {
|
|
2405
2405
|
descriptionKey: "plugins.meta.redirect.description",
|
|
2406
2406
|
nameKey: "plugins.meta.redirect.name",
|
|
2407
|
-
...
|
|
2407
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["ai-aws-guardrails"]
|
|
2458
2458
|
},
|
|
2459
2459
|
ace: {
|
|
2460
2460
|
descriptionKey: "plugins.meta.ace.description",
|
|
2461
2461
|
nameKey: "plugins.meta.ace.name",
|
|
2462
|
-
...
|
|
2462
|
+
...ue.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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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
|
+
...ue["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 fe = Object.entries(te).filter(([, ke]) => !ke).map(([ke]) => ke.replace(/-/g, ".").replace(/_/g, "-"));
|
|
4586
|
+
fe.length > 0 && console.warn(`Unknown checked fields for plugin ${B}: ${fe.join(", ")}`);
|
|
4587
|
+
const le = [];
|
|
4588
|
+
Z.length > 0 && le.push({
|
|
4589
4589
|
fields: Z.sort(Qf)
|
|
4590
|
-
}), (K.length > 0 || z.length > 0) &&
|
|
4590
|
+
}), (K.length > 0 || z.length > 0) && le.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: le
|
|
4609
4609
|
};
|
|
4610
4610
|
}
|
|
4611
4611
|
return {
|
|
@@ -9598,47 +9598,52 @@ function aA(e, t) {
|
|
|
9598
9598
|
canRedo: a,
|
|
9599
9599
|
clear: s,
|
|
9600
9600
|
reset: l,
|
|
9601
|
-
undoStack: u
|
|
9601
|
+
undoStack: u,
|
|
9602
|
+
redoStack: d
|
|
9602
9603
|
} = fv(e, {
|
|
9603
9604
|
capacity: t == null ? void 0 : t.capacity,
|
|
9604
9605
|
clone: t == null ? void 0 : t.clone
|
|
9605
9606
|
});
|
|
9606
|
-
let
|
|
9607
|
-
function
|
|
9608
|
-
var
|
|
9609
|
-
(
|
|
9610
|
-
}
|
|
9611
|
-
function
|
|
9612
|
-
if (!
|
|
9613
|
-
|
|
9607
|
+
let c;
|
|
9608
|
+
function f(_) {
|
|
9609
|
+
var A;
|
|
9610
|
+
(A = t == null ? void 0 : t.onHistoryChange) == null || A.call(t, _, e.value);
|
|
9611
|
+
}
|
|
9612
|
+
function m(_) {
|
|
9613
|
+
if (!_) {
|
|
9614
|
+
c = void 0, n(), f("commit");
|
|
9614
9615
|
return;
|
|
9615
9616
|
}
|
|
9616
|
-
if (
|
|
9617
|
-
|
|
9617
|
+
if (_ !== "*" && c !== _) {
|
|
9618
|
+
c = _, n(), f("commit");
|
|
9618
9619
|
return;
|
|
9619
9620
|
}
|
|
9620
|
-
n(), u.value.shift(),
|
|
9621
|
-
}
|
|
9622
|
-
function m() {
|
|
9623
|
-
o(), d = void 0, c("undo");
|
|
9621
|
+
n(), u.value.shift(), f("commit");
|
|
9624
9622
|
}
|
|
9625
9623
|
function h() {
|
|
9626
|
-
|
|
9624
|
+
o(), c = void 0, f("undo");
|
|
9627
9625
|
}
|
|
9628
9626
|
function v() {
|
|
9629
|
-
|
|
9627
|
+
i(), c = void 0, f("redo");
|
|
9630
9628
|
}
|
|
9631
9629
|
function g() {
|
|
9632
|
-
|
|
9630
|
+
s(), c = void 0, f("clear");
|
|
9631
|
+
}
|
|
9632
|
+
function y() {
|
|
9633
|
+
l(), c = void 0, f("reset");
|
|
9634
|
+
}
|
|
9635
|
+
function b() {
|
|
9636
|
+
o(), d.value.shift(), c = void 0, f("revert");
|
|
9633
9637
|
}
|
|
9634
9638
|
return {
|
|
9635
9639
|
canUndo: r,
|
|
9636
9640
|
canRedo: a,
|
|
9637
|
-
commit:
|
|
9638
|
-
undo:
|
|
9639
|
-
redo:
|
|
9640
|
-
clear:
|
|
9641
|
-
reset:
|
|
9641
|
+
commit: m,
|
|
9642
|
+
undo: h,
|
|
9643
|
+
redo: v,
|
|
9644
|
+
clear: g,
|
|
9645
|
+
reset: y,
|
|
9646
|
+
revert: b
|
|
9642
9647
|
};
|
|
9643
9648
|
}
|
|
9644
9649
|
function Pc(e, t, n) {
|
|
@@ -9866,7 +9871,7 @@ const [fA, pA] = pf(
|
|
|
9866
9871
|
clone: Xn,
|
|
9867
9872
|
onHistoryChange: (E) => {
|
|
9868
9873
|
var C;
|
|
9869
|
-
E !== "clear" && ((C = o.onChange) == null || C.call(o,
|
|
9874
|
+
E !== "clear" && ((C = o.onChange) == null || C.call(o, de(), he()));
|
|
9870
9875
|
}
|
|
9871
9876
|
}), u = ae(!1), d = ae(/* @__PURE__ */ new Set());
|
|
9872
9877
|
function c() {
|
|
@@ -10010,7 +10015,7 @@ const [fA, pA] = pf(
|
|
|
10010
10015
|
const I = U.fields.input, G = U.fields.output, Y = I.find((L) => L.id === C) ?? G.find((L) => L.id === C);
|
|
10011
10016
|
Y && (Y.name = N, $ && l.commit());
|
|
10012
10017
|
}
|
|
10013
|
-
function
|
|
10018
|
+
function fe(E, C, N = !0, $ = !0) {
|
|
10014
10019
|
const U = M(E);
|
|
10015
10020
|
if (!U) return;
|
|
10016
10021
|
const I = U.fields.input, G = U.fields.output, Y = I.findIndex((D) => D.id === C);
|
|
@@ -10024,7 +10029,7 @@ const [fA, pA] = pf(
|
|
|
10024
10029
|
const oe = A();
|
|
10025
10030
|
oe.ok || console.warn("[removeField] topology invalid:", oe.errors.join("; ")), $ && l.commit();
|
|
10026
10031
|
}
|
|
10027
|
-
function
|
|
10032
|
+
function le(E, C = !0) {
|
|
10028
10033
|
const N = b(E), $ = _(N);
|
|
10029
10034
|
if (!$.ok) {
|
|
10030
10035
|
console.warn(
|
|
@@ -10043,7 +10048,7 @@ const [fA, pA] = pf(
|
|
|
10043
10048
|
return C && l.commit(), U.id;
|
|
10044
10049
|
}
|
|
10045
10050
|
function ke(E, C, N = !0) {
|
|
10046
|
-
Ae(E, !1),
|
|
10051
|
+
Ae(E, !1), le(C, !1), N && l.commit();
|
|
10047
10052
|
}
|
|
10048
10053
|
function Ae(E, C = !0) {
|
|
10049
10054
|
const N = i.value.edges.findIndex((I) => I.id === E);
|
|
@@ -10066,13 +10071,13 @@ const [fA, pA] = pf(
|
|
|
10066
10071
|
Ae($.id, !1);
|
|
10067
10072
|
C && l.commit();
|
|
10068
10073
|
}
|
|
10069
|
-
function
|
|
10074
|
+
function ce(E, C = !0) {
|
|
10070
10075
|
const N = x(E);
|
|
10071
10076
|
for (const $ of N)
|
|
10072
10077
|
Ae($.id, !1);
|
|
10073
10078
|
C && l.commit();
|
|
10074
10079
|
}
|
|
10075
|
-
function
|
|
10080
|
+
function de() {
|
|
10076
10081
|
var C, N, $, U, I;
|
|
10077
10082
|
const E = [];
|
|
10078
10083
|
for (const G of i.value.nodes) {
|
|
@@ -10158,15 +10163,15 @@ const [fA, pA] = pf(
|
|
|
10158
10163
|
// field ops
|
|
10159
10164
|
addField: se,
|
|
10160
10165
|
renameField: te,
|
|
10161
|
-
removeField:
|
|
10166
|
+
removeField: fe,
|
|
10162
10167
|
// edge ops
|
|
10163
|
-
connectEdge:
|
|
10168
|
+
connectEdge: le,
|
|
10164
10169
|
replaceConnection: ke,
|
|
10165
10170
|
disconnectEdge: Ae,
|
|
10166
10171
|
disconnectInEdges: ie,
|
|
10167
|
-
disconnectOutEdges:
|
|
10172
|
+
disconnectOutEdges: ce,
|
|
10168
10173
|
// serialization
|
|
10169
|
-
toConfigNodes:
|
|
10174
|
+
toConfigNodes: de,
|
|
10170
10175
|
toUINodes: he,
|
|
10171
10176
|
load: ve,
|
|
10172
10177
|
// history
|
|
@@ -10177,6 +10182,7 @@ const [fA, pA] = pf(
|
|
|
10177
10182
|
canRedo: l.canRedo,
|
|
10178
10183
|
clear: l.clear,
|
|
10179
10184
|
reset: l.reset,
|
|
10185
|
+
revert: l.revert,
|
|
10180
10186
|
// validation helpers for UI
|
|
10181
10187
|
isValidConnection: S,
|
|
10182
10188
|
isValidVueFlowConnection: k,
|
|
@@ -12550,12 +12556,12 @@ function aN() {
|
|
|
12550
12556
|
}).on("interrupt.zoom end.zoom", function() {
|
|
12551
12557
|
k(this, arguments).event(re).end();
|
|
12552
12558
|
}).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,
|
|
12559
|
+
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, fe = typeof V == "function" ? V.apply(X, q) : V, le = l(te.invert(z).concat(se / te.k), fe.invert(z).concat(se / fe.k));
|
|
12554
12560
|
return function(ke) {
|
|
12555
12561
|
if (ke === 1)
|
|
12556
|
-
ke =
|
|
12562
|
+
ke = fe;
|
|
12557
12563
|
else {
|
|
12558
|
-
var Ae =
|
|
12564
|
+
var Ae = le(ke), ie = se / Ae[2];
|
|
12559
12565
|
ke = new kn(ie, z[0] - Ae[0] * ie, z[1] - Ae[1] * ie);
|
|
12560
12566
|
}
|
|
12561
12567
|
Z.zoom(null, ke);
|
|
@@ -12619,8 +12625,8 @@ function aN() {
|
|
|
12619
12625
|
Sm(T.view), os(T), re.mouse = [q, this.__zoom.invert(q)], Ar(this), re.start();
|
|
12620
12626
|
function z(te) {
|
|
12621
12627
|
if (di(te), !re.moved) {
|
|
12622
|
-
var
|
|
12623
|
-
re.moved =
|
|
12628
|
+
var fe = te.clientX - Z, le = te.clientY - K;
|
|
12629
|
+
re.moved = fe * fe + le * le > v;
|
|
12624
12630
|
}
|
|
12625
12631
|
re.event(te).zoom("mouse", n(_(re.that.__zoom, re.mouse[0] = on(te, B), re.mouse[1]), re.extent, a));
|
|
12626
12632
|
}
|
|
@@ -12650,8 +12656,8 @@ function aN() {
|
|
|
12650
12656
|
for (di(T), q = 0; q < X; ++q)
|
|
12651
12657
|
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
12658
|
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] +
|
|
12659
|
+
var se = B.touch0[0], te = B.touch0[1], fe = B.touch1[0], le = B.touch1[1], ke = (ke = fe[0] - se[0]) * ke + (ke = fe[1] - se[1]) * ke, Ae = (Ae = le[0] - te[0]) * Ae + (Ae = le[1] - te[1]) * Ae;
|
|
12660
|
+
Z = b(Z, Math.sqrt(ke / Ae)), K = [(se[0] + fe[0]) / 2, (se[1] + fe[1]) / 2], z = [(te[0] + le[0]) / 2, (te[1] + le[1]) / 2];
|
|
12655
12661
|
} else if (B.touch0)
|
|
12656
12662
|
K = B.touch0[0], z = B.touch0[1];
|
|
12657
12663
|
else
|
|
@@ -13668,11 +13674,11 @@ function rg(e) {
|
|
|
13668
13674
|
emits: A
|
|
13669
13675
|
} = Qe(), { onStart: S, onDrag: k, onStop: M, onClick: P, el: j, disabled: Q, id: J, selectable: x, dragHandle: ne } = e, T = ao(!1);
|
|
13670
13676
|
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:
|
|
13677
|
+
const te = VN(), fe = ({ x: de, y: he }) => {
|
|
13678
|
+
X = { x: de, y: he };
|
|
13673
13679
|
let ve = !1;
|
|
13674
13680
|
if (V = V.map((E) => {
|
|
13675
|
-
const C = { x:
|
|
13681
|
+
const C = { x: de - E.distance.x, y: he - E.distance.y }, { computedPosition: N } = ru(
|
|
13676
13682
|
E,
|
|
13677
13683
|
n.value ? Na(C, o.value) : C,
|
|
13678
13684
|
A.error,
|
|
@@ -13688,19 +13694,19 @@ function rg(e) {
|
|
|
13688
13694
|
});
|
|
13689
13695
|
k({ event: Z, node: E, nodes: C });
|
|
13690
13696
|
}
|
|
13691
|
-
},
|
|
13697
|
+
}, le = () => {
|
|
13692
13698
|
if (!re)
|
|
13693
13699
|
return;
|
|
13694
|
-
const [
|
|
13695
|
-
if (
|
|
13700
|
+
const [de, he] = Qm(q, re, d.value);
|
|
13701
|
+
if (de !== 0 || he !== 0) {
|
|
13696
13702
|
const ve = {
|
|
13697
|
-
x: (X.x ?? 0) -
|
|
13703
|
+
x: (X.x ?? 0) - de / l.value.zoom,
|
|
13698
13704
|
y: (X.y ?? 0) - he / l.value.zoom
|
|
13699
13705
|
};
|
|
13700
|
-
f({ x:
|
|
13706
|
+
f({ x: de, y: he }) && fe(ve);
|
|
13701
13707
|
}
|
|
13702
|
-
z = requestAnimationFrame(
|
|
13703
|
-
}, ke = (
|
|
13708
|
+
z = requestAnimationFrame(le);
|
|
13709
|
+
}, ke = (de, he) => {
|
|
13704
13710
|
K = !0;
|
|
13705
13711
|
const ve = m(J);
|
|
13706
13712
|
!g.value && !h.value && ve && (ve.selected || y()), ve && Pe(x) && g.value && rl(
|
|
@@ -13712,29 +13718,29 @@ function rg(e) {
|
|
|
13712
13718
|
!1,
|
|
13713
13719
|
he
|
|
13714
13720
|
);
|
|
13715
|
-
const E = te(
|
|
13721
|
+
const E = te(de.sourceEvent);
|
|
13716
13722
|
if (X = E, V = wN(r.value, c.value, E, m, J), V.length) {
|
|
13717
13723
|
const [C, N] = rs({
|
|
13718
13724
|
id: J,
|
|
13719
13725
|
dragItems: V,
|
|
13720
13726
|
findNode: m
|
|
13721
13727
|
});
|
|
13722
|
-
S({ event:
|
|
13728
|
+
S({ event: de.sourceEvent, node: C, nodes: N });
|
|
13723
13729
|
}
|
|
13724
|
-
}, Ae = (
|
|
13730
|
+
}, Ae = (de, he) => {
|
|
13725
13731
|
var ve;
|
|
13726
|
-
|
|
13727
|
-
}, ie = (
|
|
13728
|
-
const ve = te(
|
|
13729
|
-
if (!se && K && u.value && (se = !0,
|
|
13732
|
+
de.sourceEvent.type === "touchmove" && de.sourceEvent.touches.length > 1 || (s.value === 0 && ke(de, he), X = te(de.sourceEvent), re = ((ve = t.value) == null ? void 0 : ve.getBoundingClientRect()) || null, q = cn(de.sourceEvent, re));
|
|
13733
|
+
}, ie = (de, he) => {
|
|
13734
|
+
const ve = te(de.sourceEvent);
|
|
13735
|
+
if (!se && K && u.value && (se = !0, le()), !K) {
|
|
13730
13736
|
const E = ve.xSnapped - (X.x ?? 0), C = ve.ySnapped - (X.y ?? 0);
|
|
13731
|
-
Math.sqrt(E * E + C * C) > s.value && ke(
|
|
13737
|
+
Math.sqrt(E * E + C * C) > s.value && ke(de, he);
|
|
13732
13738
|
}
|
|
13733
|
-
(X.x !== ve.xSnapped || X.y !== ve.ySnapped) && V.length && K && (Z =
|
|
13734
|
-
},
|
|
13739
|
+
(X.x !== ve.xSnapped || X.y !== ve.ySnapped) && V.length && K && (Z = de.sourceEvent, q = cn(de.sourceEvent, re), fe(ve));
|
|
13740
|
+
}, ce = (de) => {
|
|
13735
13741
|
let he = !1;
|
|
13736
13742
|
if (!K && !T.value && !h.value) {
|
|
13737
|
-
const ve =
|
|
13743
|
+
const ve = de.sourceEvent, E = te(ve), C = E.xSnapped - (X.x ?? 0), N = E.ySnapped - (X.y ?? 0), $ = Math.sqrt(C * C + N * N);
|
|
13738
13744
|
$ !== 0 && $ <= s.value && (P == null || P(ve), he = !0);
|
|
13739
13745
|
}
|
|
13740
13746
|
if (V.length && !he) {
|
|
@@ -13744,14 +13750,14 @@ function rg(e) {
|
|
|
13744
13750
|
dragItems: V,
|
|
13745
13751
|
findNode: m
|
|
13746
13752
|
});
|
|
13747
|
-
M({ event:
|
|
13753
|
+
M({ event: de.sourceEvent, node: ve, nodes: E });
|
|
13748
13754
|
}
|
|
13749
13755
|
V = [], T.value = !1, se = !1, K = !1, X = { x: void 0, y: void 0 }, cancelAnimationFrame(z);
|
|
13750
13756
|
};
|
|
13751
|
-
return Ne([() => Pe(Q), j], ([
|
|
13757
|
+
return Ne([() => Pe(Q), j], ([de, he], ve, E) => {
|
|
13752
13758
|
if (he) {
|
|
13753
13759
|
const C = Gt(he);
|
|
13754
|
-
|
|
13760
|
+
de || (B = pT().on("start", (N) => Ae(N, he)).on("drag", (N) => ie(N, he)).on("end", (N) => ce(N)).filter((N) => {
|
|
13755
13761
|
const $ = N.target, U = Pe(ne);
|
|
13756
13762
|
return !N.button && (!i.value || !ld($, `.${i.value}`, he) && (!U || ld($, U, he)));
|
|
13757
13763
|
}), C.call(B)), E(() => {
|
|
@@ -13859,7 +13865,7 @@ function ag({
|
|
|
13859
13865
|
const X = Pe(n) === "target", q = au(B), Z = td(B.target);
|
|
13860
13866
|
if (q && B.button === 0 || !q) {
|
|
13861
13867
|
let K = function(L) {
|
|
13862
|
-
E = cn(L,
|
|
13868
|
+
E = cn(L, de), fe = ON(
|
|
13863
13869
|
Vi(E, k.value, !1, [1, 1]),
|
|
13864
13870
|
d.value,
|
|
13865
13871
|
Q.value,
|
|
@@ -13868,7 +13874,7 @@ function ag({
|
|
|
13868
13874
|
const oe = dd(
|
|
13869
13875
|
L,
|
|
13870
13876
|
{
|
|
13871
|
-
handle:
|
|
13877
|
+
handle: fe,
|
|
13872
13878
|
connectionMode: u.value,
|
|
13873
13879
|
fromNodeId: Pe(t),
|
|
13874
13880
|
fromHandleId: Pe(e),
|
|
@@ -13883,7 +13889,7 @@ function ag({
|
|
|
13883
13889
|
P.value,
|
|
13884
13890
|
g
|
|
13885
13891
|
);
|
|
13886
|
-
ne = oe.handleDomNode, J = oe.connection, x = MN(!!
|
|
13892
|
+
ne = oe.handleDomNode, J = oe.connection, x = MN(!!fe, oe.isValid);
|
|
13887
13893
|
const D = {
|
|
13888
13894
|
// from stays the same
|
|
13889
13895
|
...Y,
|
|
@@ -13893,44 +13899,44 @@ function ag({
|
|
|
13893
13899
|
toPosition: x && oe.toHandle ? oe.toHandle.position : il[$.position],
|
|
13894
13900
|
toNode: oe.toHandle ? Q.value.get(oe.toHandle.nodeId) : null
|
|
13895
13901
|
};
|
|
13896
|
-
if (!(x &&
|
|
13902
|
+
if (!(x && fe && (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
13903
|
if (_(
|
|
13898
|
-
|
|
13904
|
+
fe && x ? ol(
|
|
13899
13905
|
{
|
|
13900
|
-
x:
|
|
13901
|
-
y:
|
|
13906
|
+
x: fe.x,
|
|
13907
|
+
y: fe.y
|
|
13902
13908
|
},
|
|
13903
13909
|
k.value
|
|
13904
13910
|
) : E,
|
|
13905
13911
|
oe.toHandle,
|
|
13906
|
-
PN(!!
|
|
13907
|
-
), Y = D, !
|
|
13912
|
+
PN(!!fe, x)
|
|
13913
|
+
), Y = D, !fe && !x && !ne)
|
|
13908
13914
|
return as(ve);
|
|
13909
13915
|
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
13916
|
}
|
|
13911
13917
|
}, z = function(L) {
|
|
13912
|
-
(
|
|
13918
|
+
(fe || ne) && J && x && (r ? r(L, J) : S.connect(J)), S.connectEnd(L), i && (a == null || a(L)), as(ve), cancelAnimationFrame(le), 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
13919
|
};
|
|
13914
13920
|
const se = g(Pe(t));
|
|
13915
13921
|
let te = Pe(o) || j.value || mr;
|
|
13916
13922
|
!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 (!
|
|
13923
|
+
let fe, le = 0;
|
|
13924
|
+
const { x: ke, y: Ae } = cn(B), ie = Z == null ? void 0 : Z.elementFromPoint(ke, Ae), ce = tg(Pe(i), ie), de = (re = l.value) == null ? void 0 : re.getBoundingClientRect();
|
|
13925
|
+
if (!de || !ce)
|
|
13920
13926
|
return;
|
|
13921
|
-
const he = RN(Pe(t),
|
|
13927
|
+
const he = RN(Pe(t), ce, Pe(e), Q.value, u.value);
|
|
13922
13928
|
if (!he)
|
|
13923
13929
|
return;
|
|
13924
|
-
let ve, E = cn(B,
|
|
13930
|
+
let ve, E = cn(B, de), C = !1;
|
|
13925
13931
|
const N = () => {
|
|
13926
13932
|
if (!h.value)
|
|
13927
13933
|
return;
|
|
13928
|
-
const [L, oe] = Qm(E,
|
|
13929
|
-
y({ x: L, y: oe }),
|
|
13934
|
+
const [L, oe] = Qm(E, de, v.value);
|
|
13935
|
+
y({ x: L, y: oe }), le = requestAnimationFrame(N);
|
|
13930
13936
|
}, $ = {
|
|
13931
13937
|
...he,
|
|
13932
13938
|
nodeId: Pe(t),
|
|
13933
|
-
type:
|
|
13939
|
+
type: ce,
|
|
13934
13940
|
position: he.position
|
|
13935
13941
|
}, U = Q.value.get(Pe(t)), G = {
|
|
13936
13942
|
inProgress: !0,
|
|
@@ -13948,15 +13954,15 @@ function ag({
|
|
|
13948
13954
|
{
|
|
13949
13955
|
nodeId: Pe(t),
|
|
13950
13956
|
id: Pe(e),
|
|
13951
|
-
type:
|
|
13957
|
+
type: ce,
|
|
13952
13958
|
position: (ie == null ? void 0 : ie.getAttribute("data-handlepos")) || $e.Top,
|
|
13953
13959
|
...E
|
|
13954
13960
|
},
|
|
13955
13961
|
{
|
|
13956
|
-
x: ke -
|
|
13957
|
-
y: Ae -
|
|
13962
|
+
x: ke - de.left,
|
|
13963
|
+
y: Ae - de.top
|
|
13958
13964
|
}
|
|
13959
|
-
), S.connectStart({ event: B, nodeId: Pe(t), handleId: Pe(e), handleType:
|
|
13965
|
+
), S.connectStart({ event: B, nodeId: Pe(t), handleId: Pe(e), handleType: ce });
|
|
13960
13966
|
let Y = G;
|
|
13961
13967
|
Z.addEventListener("mousemove", K), Z.addEventListener("mouseup", z), Z.addEventListener("touchmove", K), Z.addEventListener("touchend", z);
|
|
13962
13968
|
}
|
|
@@ -14835,13 +14841,13 @@ function eO(e, t, n) {
|
|
|
14835
14841
|
N ? e.connectionClickStartHandle = E : e.connectionStartHandle = E, e.connectionEndHandle = null, e.connectionStatus = null, C && (e.connectionPosition = C);
|
|
14836
14842
|
}, te = (E, C = null, N = null) => {
|
|
14837
14843
|
e.connectionStartHandle && (e.connectionPosition = E, e.connectionEndHandle = C, e.connectionStatus = N);
|
|
14838
|
-
},
|
|
14844
|
+
}, fe = (E, C) => {
|
|
14839
14845
|
e.connectionPosition = { x: Number.NaN, y: Number.NaN }, e.connectionEndHandle = null, e.connectionStatus = null, C ? e.connectionClickStartHandle = null : e.connectionStartHandle = null;
|
|
14840
|
-
},
|
|
14846
|
+
}, le = (E) => {
|
|
14841
14847
|
const C = pN(E), N = C ? null : vi(E) ? E : u(E.id);
|
|
14842
14848
|
return !C && !N ? [null, null, C] : [C ? E : Jr(N), N, C];
|
|
14843
14849
|
}, ke = (E, C = !0, N = e.nodes) => {
|
|
14844
|
-
const [$, U, I] =
|
|
14850
|
+
const [$, U, I] = le(E);
|
|
14845
14851
|
if (!$)
|
|
14846
14852
|
return [];
|
|
14847
14853
|
const G = [];
|
|
@@ -14853,7 +14859,7 @@ function eO(e, t, n) {
|
|
|
14853
14859
|
}
|
|
14854
14860
|
return G;
|
|
14855
14861
|
}, Ae = (E, C, N = !0) => {
|
|
14856
|
-
const [$] =
|
|
14862
|
+
const [$] = le(E);
|
|
14857
14863
|
if (!$)
|
|
14858
14864
|
return !1;
|
|
14859
14865
|
const U = Qr($, C);
|
|
@@ -14867,7 +14873,7 @@ function eO(e, t, n) {
|
|
|
14867
14873
|
[N.width, N.height]
|
|
14868
14874
|
], L = $.constrain()(G, Y, I), oe = e.viewport.x !== L.x || e.viewport.y !== L.y || e.viewport.zoom !== L.k;
|
|
14869
14875
|
return $.transform(U, L), oe;
|
|
14870
|
-
},
|
|
14876
|
+
}, ce = (E) => {
|
|
14871
14877
|
const C = E instanceof Function ? E(e) : E, N = [
|
|
14872
14878
|
"d3Zoom",
|
|
14873
14879
|
"d3Selection",
|
|
@@ -14920,9 +14926,9 @@ function eO(e, t, n) {
|
|
|
14920
14926
|
removeSelectedEdges: b,
|
|
14921
14927
|
startConnection: se,
|
|
14922
14928
|
updateConnection: te,
|
|
14923
|
-
endConnection:
|
|
14929
|
+
endConnection: fe,
|
|
14924
14930
|
setInteractive: j,
|
|
14925
|
-
setState:
|
|
14931
|
+
setState: ce,
|
|
14926
14932
|
getIntersectingNodes: ke,
|
|
14927
14933
|
getIncomers: r,
|
|
14928
14934
|
getOutgoers: a,
|
|
@@ -15000,7 +15006,7 @@ function eO(e, t, n) {
|
|
|
15000
15006
|
], U = e.d3Zoom.constrain()(C, $, E.translateExtent);
|
|
15001
15007
|
e.d3Zoom.transform(e.d3Selection, U);
|
|
15002
15008
|
}
|
|
15003
|
-
|
|
15009
|
+
ce(E);
|
|
15004
15010
|
},
|
|
15005
15011
|
$destroy: () => {
|
|
15006
15012
|
}
|
|
@@ -16024,9 +16030,9 @@ const DO = {
|
|
|
16024
16030
|
}), Ne(B, (te) => {
|
|
16025
16031
|
y.value = te;
|
|
16026
16032
|
});
|
|
16027
|
-
function re(te,
|
|
16028
|
-
return (
|
|
16029
|
-
|
|
16033
|
+
function re(te, fe) {
|
|
16034
|
+
return (le) => {
|
|
16035
|
+
le.target === fe && (te == null || te(le));
|
|
16030
16036
|
};
|
|
16031
16037
|
}
|
|
16032
16038
|
function X(te) {
|
|
@@ -16043,10 +16049,10 @@ const DO = {
|
|
|
16043
16049
|
i.paneScroll(te);
|
|
16044
16050
|
}
|
|
16045
16051
|
function K(te) {
|
|
16046
|
-
var
|
|
16047
|
-
if (Q.value = (
|
|
16052
|
+
var fe, le, ke;
|
|
16053
|
+
if (Q.value = (fe = t.value) == null ? void 0 : fe.getBoundingClientRect(), !l.value || !e.isSelecting || te.button !== 0 || te.target !== M.value || !Q.value)
|
|
16048
16054
|
return;
|
|
16049
|
-
(ke = (
|
|
16055
|
+
(ke = (le = te.target) == null ? void 0 : le.setPointerCapture) == null || ke.call(le, te.pointerId);
|
|
16050
16056
|
const { x: Ae, y: ie } = FO(te, Q.value);
|
|
16051
16057
|
T = !0, ne = !1, a(), s.value = {
|
|
16052
16058
|
width: 0,
|
|
@@ -16058,24 +16064,24 @@ const DO = {
|
|
|
16058
16064
|
}, i.selectionStart(te);
|
|
16059
16065
|
}
|
|
16060
16066
|
function z(te) {
|
|
16061
|
-
var
|
|
16067
|
+
var fe;
|
|
16062
16068
|
if (!Q.value || !s.value)
|
|
16063
16069
|
return;
|
|
16064
16070
|
ne = !0;
|
|
16065
|
-
const { x:
|
|
16071
|
+
const { x: le, y: ke } = cn(te, Q.value), { startX: Ae = 0, startY: ie = 0 } = s.value, ce = {
|
|
16066
16072
|
startX: Ae,
|
|
16067
16073
|
startY: ie,
|
|
16068
|
-
x:
|
|
16074
|
+
x: le < Ae ? le : Ae,
|
|
16069
16075
|
y: ke < ie ? ke : ie,
|
|
16070
|
-
width: Math.abs(
|
|
16076
|
+
width: Math.abs(le - Ae),
|
|
16071
16077
|
height: Math.abs(ke - ie)
|
|
16072
|
-
},
|
|
16078
|
+
}, de = P.value, he = j.value;
|
|
16073
16079
|
P.value = new Set(
|
|
16074
|
-
Xm(n.value,
|
|
16080
|
+
Xm(n.value, ce, o.value, h.value === iu.Partial, !0).map(
|
|
16075
16081
|
(E) => E.id
|
|
16076
16082
|
)
|
|
16077
16083
|
), j.value = /* @__PURE__ */ new Set();
|
|
16078
|
-
const ve = ((
|
|
16084
|
+
const ve = ((fe = S.value) == null ? void 0 : fe.selectable) ?? !0;
|
|
16079
16085
|
for (const E of P.value) {
|
|
16080
16086
|
const C = A.value.get(E);
|
|
16081
16087
|
if (C)
|
|
@@ -16084,7 +16090,7 @@ const DO = {
|
|
|
16084
16090
|
$ && ($.selectable ?? ve) && j.value.add(N);
|
|
16085
16091
|
}
|
|
16086
16092
|
}
|
|
16087
|
-
if (!gd(
|
|
16093
|
+
if (!gd(de, P.value)) {
|
|
16088
16094
|
const E = Rn(_.value, P.value, !0);
|
|
16089
16095
|
i.nodesChange(E);
|
|
16090
16096
|
}
|
|
@@ -16092,24 +16098,24 @@ const DO = {
|
|
|
16092
16098
|
const E = Rn(b.value, j.value);
|
|
16093
16099
|
i.edgesChange(E);
|
|
16094
16100
|
}
|
|
16095
|
-
s.value =
|
|
16101
|
+
s.value = ce, r.value = !0, u.value = !1;
|
|
16096
16102
|
}
|
|
16097
16103
|
function se(te) {
|
|
16098
|
-
var
|
|
16099
|
-
te.button !== 0 || !T || ((
|
|
16104
|
+
var fe;
|
|
16105
|
+
te.button !== 0 || !T || ((fe = te.target) == null || fe.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
16106
|
}
|
|
16101
|
-
return (te,
|
|
16107
|
+
return (te, fe) => (w(), ee("div", {
|
|
16102
16108
|
ref_key: "container",
|
|
16103
16109
|
ref: M,
|
|
16104
16110
|
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:
|
|
16111
|
+
onClick: fe[0] || (fe[0] = (le) => J.value ? void 0 : re(X, M.value)(le)),
|
|
16112
|
+
onContextmenu: fe[1] || (fe[1] = (le) => re(q, M.value)(le)),
|
|
16113
|
+
onWheelPassive: fe[2] || (fe[2] = (le) => re(Z, M.value)(le)),
|
|
16114
|
+
onPointerenter: fe[3] || (fe[3] = (le) => J.value ? void 0 : p(i).paneMouseEnter(le)),
|
|
16115
|
+
onPointerdown: fe[4] || (fe[4] = (le) => J.value ? K(le) : p(i).paneMouseMove(le)),
|
|
16116
|
+
onPointermove: fe[5] || (fe[5] = (le) => J.value ? z(le) : p(i).paneMouseMove(le)),
|
|
16117
|
+
onPointerup: fe[6] || (fe[6] = (le) => J.value ? se(le) : void 0),
|
|
16118
|
+
onPointerleave: fe[7] || (fe[7] = (le) => p(i).paneMouseLeave(le))
|
|
16113
16119
|
}, [
|
|
16114
16120
|
Fe(te.$slots, "default"),
|
|
16115
16121
|
p(r) && p(s) ? (w(), W(OO, {
|
|
@@ -16183,25 +16189,25 @@ const DO = {
|
|
|
16183
16189
|
Oa("Viewport element is missing");
|
|
16184
16190
|
return;
|
|
16185
16191
|
}
|
|
16186
|
-
const ie = Q.value,
|
|
16192
|
+
const ie = Q.value, ce = ie.getBoundingClientRect(), de = aN().clickDistance(J.value).scaleExtent([t.value, n.value]).translateExtent(i.value), he = Gt(ie).call(de), 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
16193
|
[0, 0],
|
|
16188
|
-
[
|
|
16189
|
-
], N =
|
|
16190
|
-
|
|
16194
|
+
[ce.width, ce.height]
|
|
16195
|
+
], N = de.constrain()(E, C, i.value);
|
|
16196
|
+
de.transform(he, N), de.wheelDelta(fe), k.value = de, M.value = he, P.value = ve, j.value = { x: N.x, y: N.y, zoom: N.k }, de.on("start", ($) => {
|
|
16191
16197
|
var U;
|
|
16192
16198
|
if (!$.sourceEvent)
|
|
16193
16199
|
return null;
|
|
16194
16200
|
B = $.sourceEvent.button, x.value = !0;
|
|
16195
16201
|
const I = ke($.transform);
|
|
16196
16202
|
((U = $.sourceEvent) == null ? void 0 : U.type) === "mousedown" && (S.value = !0), re = I, b.viewportChangeStart(I), b.moveStart({ event: $, flowTransform: I });
|
|
16197
|
-
}),
|
|
16203
|
+
}), de.on("end", ($) => {
|
|
16198
16204
|
if (!$.sourceEvent)
|
|
16199
16205
|
return null;
|
|
16200
|
-
if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !V && b.paneContextMenu($.sourceEvent), V = !1,
|
|
16206
|
+
if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !V && b.paneContextMenu($.sourceEvent), V = !1, le(re, $.transform)) {
|
|
16201
16207
|
const U = ke($.transform);
|
|
16202
16208
|
re = U, b.viewportChangeEnd(U), b.moveEnd({ event: $, flowTransform: U });
|
|
16203
16209
|
}
|
|
16204
|
-
}),
|
|
16210
|
+
}), de.filter(($) => {
|
|
16205
16211
|
var U;
|
|
16206
16212
|
const I = Z.value || h.value, G = m.value && $.ctrlKey, Y = $.button;
|
|
16207
16213
|
if (Y === 1 && $.type === "mousedown" && (Ae($, "vue-flow__node") || Ae($, "vue-flow__edge")))
|
|
@@ -16217,7 +16223,7 @@ const DO = {
|
|
|
16217
16223
|
}), Ne(
|
|
16218
16224
|
[A, K],
|
|
16219
16225
|
() => {
|
|
16220
|
-
A.value && !x.value ?
|
|
16226
|
+
A.value && !x.value ? de.on("zoom", null) : A.value || de.on("zoom", ($) => {
|
|
16221
16227
|
j.value = { x: $.transform.x, y: $.transform.y, zoom: $.transform.k };
|
|
16222
16228
|
const U = ke($.transform);
|
|
16223
16229
|
V = te(K.value, B ?? 0), b.viewportChange(U), b.move({ event: $, flowTransform: U });
|
|
@@ -16238,13 +16244,13 @@ const DO = {
|
|
|
16238
16244
|
$.preventDefault(), $.stopImmediatePropagation();
|
|
16239
16245
|
const Y = he.property("__zoom").k || 1, L = ea();
|
|
16240
16246
|
if (!X.value && $.ctrlKey && m.value && L) {
|
|
16241
|
-
const Ie = on($), ye =
|
|
16242
|
-
|
|
16247
|
+
const Ie = on($), ye = fe($), _e = Y * 2 ** ye;
|
|
16248
|
+
de.scaleTo(he, _e, Ie, $);
|
|
16243
16249
|
return;
|
|
16244
16250
|
}
|
|
16245
16251
|
const oe = $.deltaMode === 1 ? 20 : 1;
|
|
16246
16252
|
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),
|
|
16253
|
+
!L && $.shiftKey && u.value !== Ii.Vertical && !D && Ce && (D = Ce, Ce = 0), de.translateBy(
|
|
16248
16254
|
he,
|
|
16249
16255
|
-(D / Y) * d.value,
|
|
16250
16256
|
-(Ce / Y) * d.value
|
|
@@ -16269,15 +16275,15 @@ const DO = {
|
|
|
16269
16275
|
{ immediate: !0 }
|
|
16270
16276
|
);
|
|
16271
16277
|
});
|
|
16272
|
-
function te(ie,
|
|
16273
|
-
return
|
|
16278
|
+
function te(ie, ce) {
|
|
16279
|
+
return ce === 2 && Array.isArray(ie) && ie.includes(2);
|
|
16274
16280
|
}
|
|
16275
|
-
function
|
|
16276
|
-
const
|
|
16277
|
-
return -ie.deltaY * (ie.deltaMode === 1 ? 0.05 : ie.deltaMode ? 1 : 2e-3) *
|
|
16281
|
+
function fe(ie) {
|
|
16282
|
+
const ce = ie.ctrlKey && ea() ? 10 : 1;
|
|
16283
|
+
return -ie.deltaY * (ie.deltaMode === 1 ? 0.05 : ie.deltaMode ? 1 : 2e-3) * ce;
|
|
16278
16284
|
}
|
|
16279
|
-
function
|
|
16280
|
-
return ie.x !==
|
|
16285
|
+
function le(ie, ce) {
|
|
16286
|
+
return ie.x !== ce.x && !Number.isNaN(ce.x) || ie.y !== ce.y && !Number.isNaN(ce.y) || ie.zoom !== ce.k && !Number.isNaN(ce.k);
|
|
16281
16287
|
}
|
|
16282
16288
|
function ke(ie) {
|
|
16283
16289
|
return {
|
|
@@ -16286,10 +16292,10 @@ const DO = {
|
|
|
16286
16292
|
zoom: ie.k
|
|
16287
16293
|
};
|
|
16288
16294
|
}
|
|
16289
|
-
function Ae(ie,
|
|
16290
|
-
return ie.target.closest(`.${
|
|
16295
|
+
function Ae(ie, ce) {
|
|
16296
|
+
return ie.target.closest(`.${ce}`);
|
|
16291
16297
|
}
|
|
16292
|
-
return (ie,
|
|
16298
|
+
return (ie, ce) => (w(), ee("div", {
|
|
16293
16299
|
ref_key: "viewportRef",
|
|
16294
16300
|
ref: Q,
|
|
16295
16301
|
class: "vue-flow__viewport vue-flow__container"
|
|
@@ -16463,12 +16469,12 @@ const wd = su, ZO = ge({
|
|
|
16463
16469
|
"aria-roledescription": "edge",
|
|
16464
16470
|
role: B.value ? "group" : "img",
|
|
16465
16471
|
..._.value.domAttributes,
|
|
16466
|
-
onClick:
|
|
16472
|
+
onClick: le,
|
|
16467
16473
|
onContextmenu: ke,
|
|
16468
16474
|
onDblclick: Ae,
|
|
16469
16475
|
onMouseenter: ie,
|
|
16470
|
-
onMousemove:
|
|
16471
|
-
onMouseleave:
|
|
16476
|
+
onMousemove: ce,
|
|
16477
|
+
onMouseleave: de,
|
|
16472
16478
|
onKeyDown: B.value ? E : void 0
|
|
16473
16479
|
},
|
|
16474
16480
|
[
|
|
@@ -16557,10 +16563,10 @@ const wd = su, ZO = ge({
|
|
|
16557
16563
|
function te(C) {
|
|
16558
16564
|
A.updateEnd({ event: C, edge: _.value }), j.value = !1;
|
|
16559
16565
|
}
|
|
16560
|
-
function
|
|
16566
|
+
function fe(C, N) {
|
|
16561
16567
|
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
16568
|
}
|
|
16563
|
-
function
|
|
16569
|
+
function le(C) {
|
|
16564
16570
|
var N;
|
|
16565
16571
|
const $ = { event: C, edge: _.value };
|
|
16566
16572
|
T.value && (a.value = !1, _.value.selected && m.value ? (u([_.value]), (N = ne.value) == null || N.blur()) : n([_.value])), A.click($);
|
|
@@ -16574,17 +16580,17 @@ const wd = su, ZO = ge({
|
|
|
16574
16580
|
function ie(C) {
|
|
16575
16581
|
A.mouseEnter({ event: C, edge: _.value });
|
|
16576
16582
|
}
|
|
16577
|
-
function
|
|
16583
|
+
function ce(C) {
|
|
16578
16584
|
A.mouseMove({ event: C, edge: _.value });
|
|
16579
16585
|
}
|
|
16580
|
-
function
|
|
16586
|
+
function de(C) {
|
|
16581
16587
|
A.mouseLeave({ event: C, edge: _.value });
|
|
16582
16588
|
}
|
|
16583
16589
|
function he(C) {
|
|
16584
|
-
|
|
16590
|
+
fe(C, !0);
|
|
16585
16591
|
}
|
|
16586
16592
|
function ve(C) {
|
|
16587
|
-
|
|
16593
|
+
fe(C, !1);
|
|
16588
16594
|
}
|
|
16589
16595
|
function E(C) {
|
|
16590
16596
|
var N;
|
|
@@ -16869,10 +16875,10 @@ const wd = su, ZO = ge({
|
|
|
16869
16875
|
onClick(N) {
|
|
16870
16876
|
E(N);
|
|
16871
16877
|
}
|
|
16872
|
-
}), te = F(() => x.class instanceof Function ? x.class(x) : x.class),
|
|
16878
|
+
}), te = F(() => x.class instanceof Function ? x.class(x) : x.class), fe = F(() => {
|
|
16873
16879
|
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
16880
|
return !N.width && $ && (N.width = typeof $ == "string" ? $ : `${$}px`), !N.height && U && (N.height = typeof U == "string" ? U : `${U}px`), N;
|
|
16875
|
-
}),
|
|
16881
|
+
}), le = je(() => Number(x.zIndex ?? fe.value.zIndex ?? 0));
|
|
16876
16882
|
return d((N) => {
|
|
16877
16883
|
(N.includes(e.id) || !N.length) && Ae();
|
|
16878
16884
|
}), Ot(() => {
|
|
@@ -16905,7 +16911,7 @@ const wd = su, ZO = ge({
|
|
|
16905
16911
|
var N;
|
|
16906
16912
|
return (N = ne.value) == null ? void 0 : N.computedPosition.z;
|
|
16907
16913
|
},
|
|
16908
|
-
|
|
16914
|
+
le,
|
|
16909
16915
|
() => x.selected,
|
|
16910
16916
|
() => x.dimensions.height,
|
|
16911
16917
|
() => x.dimensions.width,
|
|
@@ -16949,10 +16955,10 @@ const wd = su, ZO = ge({
|
|
|
16949
16955
|
],
|
|
16950
16956
|
style: {
|
|
16951
16957
|
visibility: K.value ? "visible" : "hidden",
|
|
16952
|
-
zIndex: x.computedPosition.z ??
|
|
16958
|
+
zIndex: x.computedPosition.z ?? le.value,
|
|
16953
16959
|
transform: `translate(${x.computedPosition.x}px,${x.computedPosition.y}px)`,
|
|
16954
16960
|
pointerEvents: Z.value ? "all" : "none",
|
|
16955
|
-
...
|
|
16961
|
+
...fe.value
|
|
16956
16962
|
},
|
|
16957
16963
|
tabIndex: q.value ? 0 : void 0,
|
|
16958
16964
|
role: q.value ? "group" : void 0,
|
|
@@ -16961,8 +16967,8 @@ const wd = su, ZO = ge({
|
|
|
16961
16967
|
"aria-roledescription": "node",
|
|
16962
16968
|
...x.domAttributes,
|
|
16963
16969
|
onMouseenter: ie,
|
|
16964
|
-
onMousemove:
|
|
16965
|
-
onMouseleave:
|
|
16970
|
+
onMousemove: ce,
|
|
16971
|
+
onMouseleave: de,
|
|
16966
16972
|
onContextmenu: he,
|
|
16967
16973
|
onClick: E,
|
|
16968
16974
|
onDblclick: ve,
|
|
@@ -16984,7 +16990,7 @@ const wd = su, ZO = ge({
|
|
|
16984
16990
|
isValidSourcePos: x.isValidSourcePos,
|
|
16985
16991
|
parent: x.parentNode,
|
|
16986
16992
|
parentNodeId: x.parentNode,
|
|
16987
|
-
zIndex: x.computedPosition.z ??
|
|
16993
|
+
zIndex: x.computedPosition.z ?? le.value,
|
|
16988
16994
|
targetPosition: x.targetPosition,
|
|
16989
16995
|
sourcePosition: x.sourcePosition,
|
|
16990
16996
|
label: x.label,
|
|
@@ -17009,10 +17015,10 @@ const wd = su, ZO = ge({
|
|
|
17009
17015
|
function ie(N) {
|
|
17010
17016
|
se != null && se.value || T.mouseEnter({ event: N, node: x });
|
|
17011
17017
|
}
|
|
17012
|
-
function
|
|
17018
|
+
function ce(N) {
|
|
17013
17019
|
se != null && se.value || T.mouseMove({ event: N, node: x });
|
|
17014
17020
|
}
|
|
17015
|
-
function
|
|
17021
|
+
function de(N) {
|
|
17016
17022
|
se != null && se.value || T.mouseLeave({ event: N, node: x });
|
|
17017
17023
|
}
|
|
17018
17024
|
function he(N) {
|
|
@@ -19864,8 +19870,8 @@ const [SD, xD] = pf(
|
|
|
19864
19870
|
connectEdge: z,
|
|
19865
19871
|
disconnectEdge: se,
|
|
19866
19872
|
getInEdgesByNodeId: te,
|
|
19867
|
-
commit:
|
|
19868
|
-
reset:
|
|
19873
|
+
commit: fe,
|
|
19874
|
+
reset: le
|
|
19869
19875
|
} = f;
|
|
19870
19876
|
function ke(I, G) {
|
|
19871
19877
|
const Y = K(I.source), L = K(I.target);
|
|
@@ -19901,7 +19907,7 @@ const [SD, xD] = pf(
|
|
|
19901
19907
|
Ne([Ae, ie], ([I, G]) => {
|
|
19902
19908
|
ne(I), T(G);
|
|
19903
19909
|
}, { immediate: !0 });
|
|
19904
|
-
const
|
|
19910
|
+
const ce = F(() => ({
|
|
19905
19911
|
// Padding in VueFlow is a ratio
|
|
19906
19912
|
padding: a / Math.max(Pe(r == null ? void 0 : r.width) ?? 0, Pe(r == null ? void 0 : r.height) ?? 0)
|
|
19907
19913
|
// maxZoom and minZoom come from the VueFlow store
|
|
@@ -19911,7 +19917,7 @@ const [SD, xD] = pf(
|
|
|
19911
19917
|
}), S(({ edge: I }) => {
|
|
19912
19918
|
console.debug("[useFlow] onEdgeClick", Tr(I));
|
|
19913
19919
|
});
|
|
19914
|
-
async function
|
|
19920
|
+
async function de({ source: I, sourceHandle: G, target: Y, targetHandle: L }) {
|
|
19915
19921
|
if (console.debug("[useFlow] onConnect", { source: I, sourceHandle: G, target: Y, targetHandle: L }), !G || !L) return;
|
|
19916
19922
|
const oe = Vd(G), D = Vd(L);
|
|
19917
19923
|
if ((oe == null ? void 0 : oe.io) === "input" || (D == null ? void 0 : D.io) === "output" || G === "output" && L === "output")
|
|
@@ -19936,7 +19942,7 @@ const [SD, xD] = pf(
|
|
|
19936
19942
|
target: Y,
|
|
19937
19943
|
targetField: D == null ? void 0 : D.field
|
|
19938
19944
|
}, !1)) {
|
|
19939
|
-
|
|
19945
|
+
le(), h({
|
|
19940
19946
|
message: v("plugins.free-form.datakit.flow_editor.error.invalid_connection"),
|
|
19941
19947
|
appearance: "danger"
|
|
19942
19948
|
});
|
|
@@ -19952,22 +19958,22 @@ const [SD, xD] = pf(
|
|
|
19952
19958
|
)
|
|
19953
19959
|
), xe || Ie) {
|
|
19954
19960
|
if (!m)
|
|
19955
|
-
throw
|
|
19961
|
+
throw le(), new Error("Expected confirm modal to be provided here when reachable");
|
|
19956
19962
|
if (!await m(
|
|
19957
19963
|
v(xe ? "plugins.free-form.datakit.flow_editor.confirm.message.switch" : "plugins.free-form.datakit.flow_editor.confirm.message.override"),
|
|
19958
19964
|
ye,
|
|
19959
19965
|
_e
|
|
19960
19966
|
)) {
|
|
19961
|
-
|
|
19967
|
+
le();
|
|
19962
19968
|
return;
|
|
19963
19969
|
}
|
|
19964
19970
|
}
|
|
19965
|
-
|
|
19971
|
+
fe();
|
|
19966
19972
|
}
|
|
19967
|
-
k(
|
|
19973
|
+
k(de);
|
|
19968
19974
|
let he = !1;
|
|
19969
19975
|
const ve = () => {
|
|
19970
|
-
he && (he = !1,
|
|
19976
|
+
he && (he = !1, fe());
|
|
19971
19977
|
};
|
|
19972
19978
|
M((I) => {
|
|
19973
19979
|
I.filter((Y) => Y.type === "select").sort((Y, L) => Y.selected === L.selected ? 0 : Y.selected ? 1 : -1).forEach((Y) => {
|
|
@@ -19995,7 +20001,7 @@ const [SD, xD] = pf(
|
|
|
19995
20001
|
}), J(({ edge: I }) => {
|
|
19996
20002
|
fl = void 0, T((G) => G.map((Y) => Y.id !== I.id ? Y : vr(Y)));
|
|
19997
20003
|
}), j(({ edge: I, connection: G }) => {
|
|
19998
|
-
se(I.id, !1),
|
|
20004
|
+
se(I.id, !1), de(G);
|
|
19999
20005
|
});
|
|
20000
20006
|
function E(I = !0) {
|
|
20001
20007
|
let G, Y;
|
|
@@ -20091,7 +20097,7 @@ const [SD, xD] = pf(
|
|
|
20091
20097
|
}
|
|
20092
20098
|
function C(I) {
|
|
20093
20099
|
y({
|
|
20094
|
-
...
|
|
20100
|
+
...ce.value,
|
|
20095
20101
|
...I
|
|
20096
20102
|
});
|
|
20097
20103
|
}
|
|
@@ -20143,7 +20149,7 @@ const [SD, xD] = pf(
|
|
|
20143
20149
|
autoLayout: E,
|
|
20144
20150
|
placeToRight: $,
|
|
20145
20151
|
scrollRightToReveal: U,
|
|
20146
|
-
fitViewParams:
|
|
20152
|
+
fitViewParams: ce,
|
|
20147
20153
|
fitView: C
|
|
20148
20154
|
};
|
|
20149
20155
|
}
|
|
@@ -20600,14 +20606,14 @@ const MD = {
|
|
|
20600
20606
|
const { top: K = 0, left: z = 0 } = ((ie = S.value) == null ? void 0 : ie.getBoundingClientRect()) || {}, se = A({
|
|
20601
20607
|
x: X.clientX - z,
|
|
20602
20608
|
y: X.clientY - K
|
|
20603
|
-
}), { type: te, anchor:
|
|
20609
|
+
}), { type: te, anchor: fe } = Z.data, le = {
|
|
20604
20610
|
type: te,
|
|
20605
20611
|
phase: e.phase,
|
|
20606
20612
|
position: {
|
|
20607
|
-
x: se.x -
|
|
20608
|
-
y: se.y -
|
|
20613
|
+
x: se.x - fe.offsetX,
|
|
20614
|
+
y: se.y - fe.offsetY
|
|
20609
20615
|
}
|
|
20610
|
-
}, ke = v(
|
|
20616
|
+
}, ke = v(le);
|
|
20611
20617
|
ke && (f(ke), g.value = !0);
|
|
20612
20618
|
}
|
|
20613
20619
|
function V() {
|
|
@@ -20724,15 +20730,15 @@ const MD = {
|
|
|
20724
20730
|
setup(e, { expose: t }) {
|
|
20725
20731
|
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
20732
|
function m(z, se) {
|
|
20727
|
-
const { onPaneClick: te, onNodesChange:
|
|
20728
|
-
function de
|
|
20729
|
-
if (!
|
|
20733
|
+
const { onPaneClick: te, onNodesChange: fe, onEdgesChange: le, getSelectedNodes: ke, getSelectedEdges: Ae } = z, { removeSelectedElements: ie } = se;
|
|
20734
|
+
function ce(de) {
|
|
20735
|
+
if (!de) {
|
|
20730
20736
|
ie();
|
|
20731
20737
|
return;
|
|
20732
20738
|
}
|
|
20733
|
-
|
|
20739
|
+
de.some((he) => he.type === "select") && ke.value.length + Ae.value.length > 0 && ie();
|
|
20734
20740
|
}
|
|
20735
|
-
|
|
20741
|
+
fe(ce), le(ce), te(() => ce());
|
|
20736
20742
|
}
|
|
20737
20743
|
m(c, f), m(f, c);
|
|
20738
20744
|
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 +20773,8 @@ const MD = {
|
|
|
20767
20773
|
[n, o, () => i.value.needLayout],
|
|
20768
20774
|
([z, se, te]) => {
|
|
20769
20775
|
!z || !se || (te && r(), setTimeout(() => {
|
|
20770
|
-
var
|
|
20771
|
-
te !== !1 && ((
|
|
20776
|
+
var fe, le;
|
|
20777
|
+
te !== !1 && ((fe = y.value) == null || fe.autoLayout(!1), (le = S.value) == null || le.autoLayout(!1), a("*"), (te === !0 || !(te != null && te.keepHistory)) && s()), K();
|
|
20772
20778
|
}, 0));
|
|
20773
20779
|
}
|
|
20774
20780
|
), t({ fitView: K }), (z, se) => (w(), ee("div", {
|
|
@@ -21871,7 +21877,7 @@ function bo(e, t) {
|
|
|
21871
21877
|
connectEdge: d,
|
|
21872
21878
|
invalidConfigNodeIds: c,
|
|
21873
21879
|
commit: f,
|
|
21874
|
-
|
|
21880
|
+
revert: m
|
|
21875
21881
|
} = Lt(), { i18n: { t: h } } = Ge(), v = ED();
|
|
21876
21882
|
let g = !1;
|
|
21877
21883
|
Ne(n, async () => {
|
|
@@ -21884,8 +21890,8 @@ function bo(e, t) {
|
|
|
21884
21890
|
}), b = F(() => {
|
|
21885
21891
|
const Z = n.value.edges.filter((K) => K.target === e).reduce((K, z) => {
|
|
21886
21892
|
var ke, Ae;
|
|
21887
|
-
const se = i(z.source), te = (ke = Fn(se, "output", z.sourceField)) == null ? void 0 : ke.id,
|
|
21888
|
-
return
|
|
21893
|
+
const se = i(z.source), te = (ke = Fn(se, "output", z.sourceField)) == null ? void 0 : ke.id, fe = (Ae = Fn(y.value, "input", z.targetField)) == null ? void 0 : Ae.name, le = se.id + (te ? `.${te}` : "");
|
|
21894
|
+
return fe ? K.inputs = { ...K.inputs, [fe]: le } : K.input = le, K;
|
|
21889
21895
|
}, {});
|
|
21890
21896
|
return y.value.fields.input.forEach((K) => {
|
|
21891
21897
|
Z.inputs || (Z.inputs = {}), Z.inputs[K.name] || (Z.inputs[K.name] = null);
|
|
@@ -21920,39 +21926,35 @@ function bo(e, t) {
|
|
|
21920
21926
|
if (g) return;
|
|
21921
21927
|
const K = Z == null, z = S("input", q).id;
|
|
21922
21928
|
if (K) {
|
|
21923
|
-
const
|
|
21924
|
-
|
|
21929
|
+
const de = Q.value.find((he) => he.targetField === z);
|
|
21930
|
+
de && u(de.id);
|
|
21925
21931
|
return;
|
|
21926
21932
|
}
|
|
21927
21933
|
const {
|
|
21928
21934
|
nodeId: se,
|
|
21929
21935
|
fieldId: te
|
|
21930
|
-
} = Tc(Z),
|
|
21931
|
-
j.value && (
|
|
21932
|
-
const ke = Q.value.find((
|
|
21933
|
-
ke && (
|
|
21936
|
+
} = Tc(Z), fe = S("input", q).id, le = [];
|
|
21937
|
+
j.value && (le.push($i(j.value, i)), u(j.value.id, !1));
|
|
21938
|
+
const ke = Q.value.find((de) => de.targetField === z);
|
|
21939
|
+
ke && (le.push($i(ke, i)), u(ke.id, !1)), d({
|
|
21934
21940
|
source: se,
|
|
21935
21941
|
sourceField: te,
|
|
21936
21942
|
target: e,
|
|
21937
|
-
targetField:
|
|
21943
|
+
targetField: fe
|
|
21938
21944
|
}, !1);
|
|
21939
21945
|
const Ae = dl(
|
|
21940
21946
|
se,
|
|
21941
21947
|
te,
|
|
21942
21948
|
e,
|
|
21943
|
-
|
|
21949
|
+
fe,
|
|
21944
21950
|
i
|
|
21945
|
-
);
|
|
21946
|
-
if (
|
|
21947
|
-
f();
|
|
21948
|
-
return;
|
|
21949
|
-
}
|
|
21950
|
-
if (ce.length === 0)
|
|
21951
|
+
), ie = le[0] && Ae ? le[0][1] === Ae[1] : !1;
|
|
21952
|
+
if (f(), ie || le.length === 0)
|
|
21951
21953
|
return;
|
|
21952
21954
|
await v(
|
|
21953
21955
|
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21954
21956
|
[Ae],
|
|
21955
|
-
|
|
21957
|
+
le
|
|
21956
21958
|
) || m();
|
|
21957
21959
|
}, x = async (q) => {
|
|
21958
21960
|
if (g) return;
|
|
@@ -21961,8 +21963,8 @@ function bo(e, t) {
|
|
|
21961
21963
|
return;
|
|
21962
21964
|
}
|
|
21963
21965
|
const K = [];
|
|
21964
|
-
for (const
|
|
21965
|
-
K.push($i(
|
|
21966
|
+
for (const le of Q.value)
|
|
21967
|
+
K.push($i(le, i)), u(le.id, !1);
|
|
21966
21968
|
j.value && u(j.value.id, !1);
|
|
21967
21969
|
const { nodeId: z, fieldId: se } = Tc(q);
|
|
21968
21970
|
d({
|
|
@@ -21979,15 +21981,13 @@ function bo(e, t) {
|
|
|
21979
21981
|
void 0,
|
|
21980
21982
|
i
|
|
21981
21983
|
);
|
|
21982
|
-
if (K.length
|
|
21984
|
+
if (f(), K.length === 0)
|
|
21985
|
+
return;
|
|
21986
|
+
await v(
|
|
21983
21987
|
h("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21984
21988
|
[te],
|
|
21985
21989
|
K
|
|
21986
|
-
))
|
|
21987
|
-
m();
|
|
21988
|
-
return;
|
|
21989
|
-
}
|
|
21990
|
-
f();
|
|
21990
|
+
) || m();
|
|
21991
21991
|
}, ne = (q) => {
|
|
21992
21992
|
const Z = [
|
|
21993
21993
|
...n.value.edges,
|
|
@@ -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, ce) => {
|
|
23730
|
+
let de = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetOne}`;
|
|
23731
|
+
return de = g(de), de = de.replace(/{entity}/gi, ie), de = de.replace(/{id}/gi, ce), de;
|
|
23732
23732
|
}, b = (ie) => {
|
|
23733
|
-
let
|
|
23734
|
-
return
|
|
23733
|
+
let ce = `${r.config.apiBaseUrl}${dt.form[r.config.app].entityGetAll}`;
|
|
23734
|
+
return ce = g(ce), ce = ce.replace(/{entity}/gi, ie), ce;
|
|
23735
23735
|
};
|
|
23736
23736
|
lt(Dh, {
|
|
23737
|
-
getOne: (ie,
|
|
23738
|
-
const
|
|
23739
|
-
return a.get(
|
|
23737
|
+
getOne: (ie, ce) => {
|
|
23738
|
+
const de = y(ie, ce);
|
|
23739
|
+
return a.get(de);
|
|
23740
23740
|
},
|
|
23741
|
-
getAll: (ie,
|
|
23742
|
-
const
|
|
23743
|
-
return r.config.app === "konnect" ? a.get(
|
|
23741
|
+
getAll: (ie, ce) => {
|
|
23742
|
+
const de = b(ie);
|
|
23743
|
+
return r.config.app === "konnect" ? a.get(de).then((he) => {
|
|
23744
23744
|
const { data: { data: ve } } = he;
|
|
23745
|
-
if (delete
|
|
23746
|
-
const E = Object.keys(
|
|
23745
|
+
if (delete ce.size, delete ce.offset, ve.length && Object.keys(ce).length === 1) {
|
|
23746
|
+
const E = Object.keys(ce)[0], C = ve.filter((N) => N[E] ? !!N[E].toLowerCase().includes(ce[E].toLowerCase()) : !1);
|
|
23747
23747
|
he.data.data = C;
|
|
23748
23748
|
}
|
|
23749
23749
|
return he;
|
|
23750
|
-
}) : a.get(
|
|
23750
|
+
}) : a.get(de, { params: ce });
|
|
23751
23751
|
},
|
|
23752
|
-
getAllV2: (ie,
|
|
23752
|
+
getAllV2: (ie, ce, de) => {
|
|
23753
23753
|
const he = b(ie);
|
|
23754
23754
|
if (r.config.app === "konnect") {
|
|
23755
|
-
const { size: ve, offset: E, ...C } =
|
|
23755
|
+
const { size: ve, offset: E, ...C } = ce;
|
|
23756
23756
|
if (ie === "consumer_groups")
|
|
23757
23757
|
return a.get(he, {
|
|
23758
23758
|
params: {
|
|
23759
23759
|
size: 1e3
|
|
23760
23760
|
},
|
|
23761
|
-
signal:
|
|
23761
|
+
signal: de
|
|
23762
23762
|
}).then(($) => {
|
|
23763
23763
|
const { data: { data: U } } = $;
|
|
23764
23764
|
if (U.length && Object.keys(C).length === 1) {
|
|
@@ -23779,16 +23779,16 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23779
23779
|
};
|
|
23780
23780
|
return a.get(he, {
|
|
23781
23781
|
params: N,
|
|
23782
|
-
signal:
|
|
23782
|
+
signal: de
|
|
23783
23783
|
});
|
|
23784
23784
|
}
|
|
23785
|
-
return a.get(he, { params:
|
|
23785
|
+
return a.get(he, { params: ce, signal: de });
|
|
23786
23786
|
},
|
|
23787
|
-
peek: (ie,
|
|
23788
|
-
const
|
|
23789
|
-
return a.get(
|
|
23787
|
+
peek: (ie, ce = 50) => {
|
|
23788
|
+
const de = b(ie);
|
|
23789
|
+
return a.get(de, {
|
|
23790
23790
|
params: {
|
|
23791
|
-
size:
|
|
23791
|
+
size: ce
|
|
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, ce) => {
|
|
23800
|
+
T.value = ie ?? "", V.value = ce;
|
|
23801
23801
|
}, re = (ie) => {
|
|
23802
|
-
var
|
|
23803
|
-
(
|
|
23802
|
+
var ce;
|
|
23803
|
+
(ce = V.value) == null || ce.call(V, ie), T.value = !1;
|
|
23804
23804
|
}, X = () => {
|
|
23805
23805
|
var C, N;
|
|
23806
|
-
const ie = { ...r.schema },
|
|
23806
|
+
const ie = { ...r.schema }, ce = x, de = J, he = Object.keys(ce), 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[$];
|
|
@@ -23816,12 +23816,12 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23816
23816
|
}), he.forEach(($) => {
|
|
23817
23817
|
var xe;
|
|
23818
23818
|
if (!ie[$]) {
|
|
23819
|
-
$ === "partials" && (ve[$] =
|
|
23819
|
+
$ === "partials" && (ve[$] = ce[$]);
|
|
23820
23820
|
return;
|
|
23821
23821
|
}
|
|
23822
23822
|
const U = ie[$];
|
|
23823
|
-
let I =
|
|
23824
|
-
const G =
|
|
23823
|
+
let I = ce[$];
|
|
23824
|
+
const G = de[$], 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) {
|
|
@@ -23880,17 +23880,17 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23880
23880
|
});
|
|
23881
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, ce = {}) => {
|
|
23884
|
+
d(x, ce, ie, r.editing), i("model-updated", {
|
|
23885
23885
|
model: x,
|
|
23886
23886
|
originalModel: J,
|
|
23887
23887
|
data: X()
|
|
23888
23888
|
});
|
|
23889
|
-
}, Z = (ie,
|
|
23889
|
+
}, Z = (ie, ce) => {
|
|
23890
23890
|
var ve;
|
|
23891
|
-
const
|
|
23892
|
-
typeof ((ve = r.schema[
|
|
23893
|
-
const he = Object.assign({}, x,
|
|
23891
|
+
const de = { [ce]: ie };
|
|
23892
|
+
typeof ((ve = r.schema[ce]) == null ? void 0 : ve.modelTransformer) == "function" && (de[ce] = r.schema[ce].modelTransformer(ie));
|
|
23893
|
+
const he = Object.assign({}, x, de);
|
|
23894
23894
|
Object.assign(x, he), i("model-updated", {
|
|
23895
23895
|
model: x,
|
|
23896
23896
|
originalModel: J,
|
|
@@ -23898,15 +23898,15 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23898
23898
|
});
|
|
23899
23899
|
}, K = (ie) => {
|
|
23900
23900
|
i("validity-change", ie);
|
|
23901
|
-
}, z = (ie,
|
|
23902
|
-
Object.keys(ie).forEach((
|
|
23901
|
+
}, z = (ie, ce) => {
|
|
23902
|
+
Object.keys(ie).forEach((de) => {
|
|
23903
23903
|
var N, $;
|
|
23904
|
-
let he =
|
|
23904
|
+
let he = ce ? `${ce}-${de}` : de, ve = r.schema[he];
|
|
23905
23905
|
if (!ve) {
|
|
23906
|
-
const U =
|
|
23907
|
-
(N = r.schema[U]) != null && N.fieldNameHasDashes && (he = U, ve = r.schema[he]),
|
|
23906
|
+
const U = ce ? `${ce}-${de.replace(/-/g, "_")}` : de.replace(/-/g, "_");
|
|
23907
|
+
(N = r.schema[U]) != null && N.fieldNameHasDashes && (he = U, ve = r.schema[he]), ce && (($ = r.schema[ce]) == null ? void 0 : $.keyFromObject) === de && (he = ce, ve = r.schema[he]);
|
|
23908
23908
|
}
|
|
23909
|
-
const E = ie[
|
|
23909
|
+
const E = ie[de], C = typeof E;
|
|
23910
23910
|
if (ve && ve.type === "object-advanced" && !E) {
|
|
23911
23911
|
x[he] = {}, J[he] = {};
|
|
23912
23912
|
return;
|
|
@@ -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
|
+
}, fe = ae(!0), le = () => {
|
|
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 he = r.entityMap[
|
|
23956
|
-
Object.prototype.hasOwnProperty.call(x, E) && (
|
|
23953
|
+
const ce = {};
|
|
23954
|
+
for (const de in r.entityMap) {
|
|
23955
|
+
const he = r.entityMap[de].id, ve = r.entityMap[de].idField, E = ve === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(ve).replace("_", "-"));
|
|
23956
|
+
Object.prototype.hasOwnProperty.call(x, E) && (ce[E] = he);
|
|
23957
23957
|
}
|
|
23958
|
-
z(
|
|
23958
|
+
z(ce);
|
|
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 ce = {};
|
|
23962
|
+
Object.prototype.hasOwnProperty.call(x, "consumer") && (ce.consumer = r.entityMap.consumer.id), z(ce);
|
|
23963
23963
|
}
|
|
23964
|
-
|
|
23964
|
+
fe.value = !1;
|
|
23965
23965
|
};
|
|
23966
|
-
return Ne(
|
|
23966
|
+
return Ne(fe, (ie) => {
|
|
23967
23967
|
i("loading", ie);
|
|
23968
|
-
}), Ne(() => r.schema, (ie,
|
|
23968
|
+
}), Ne(() => r.schema, (ie, ce) => {
|
|
23969
23969
|
var he, ve;
|
|
23970
|
-
if (h(ie || {},
|
|
23970
|
+
if (h(ie || {}, ce || {}))
|
|
23971
23971
|
return;
|
|
23972
|
-
const
|
|
23973
|
-
Object.assign(x,
|
|
23972
|
+
const de = s(ie, void 0, void 0, r.engine);
|
|
23973
|
+
Object.assign(x, de.model), Q.value = {
|
|
23974
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(
|
|
23975
|
+
}, Object.assign(J, JSON.parse(JSON.stringify(de.model))), P.value = r.engine ? r.engine === "vfg" ? void 0 : Ms(de.model.name, m) || "CommonForm" : Ms(de.model.name, m), M.value = lf(de.model.name), le();
|
|
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,
|
|
23977
|
+
var ie, ce;
|
|
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 = ((ce = j.value) == null ? void 0 : ce.schema) || {}, le();
|
|
23979
|
+
}), (ie, ce) => {
|
|
23980
23980
|
var he;
|
|
23981
|
-
const
|
|
23981
|
+
const de = we("KSkeleton");
|
|
23982
23982
|
return w(), ee(Ke, null, [
|
|
23983
23983
|
H("div", rK, [
|
|
23984
|
-
|
|
23984
|
+
fe.value ? (w(), W(de, {
|
|
23985
23985
|
key: 0,
|
|
23986
23986
|
type: "form"
|
|
23987
23987
|
})) : x.id && e.editing || !e.editing ? (w(), ee("div", aK, [
|
|
@@ -23996,7 +23996,7 @@ 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: ce[0] || (ce[0] = (ve, E) => ie.$emit("globalAction", ve, E))
|
|
24000
24000
|
}, ot({ _: 2 }, [
|
|
24001
24001
|
e.enableVaultSecretPicker ? {
|
|
24002
24002
|
name: p(no),
|
|
@@ -24033,7 +24033,7 @@ 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: ce[1] || (ce[1] = (ve) => ie.$emit("showNewPartialModal", ve))
|
|
24037
24037
|
}, ot({
|
|
24038
24038
|
"plugin-config-empty-state": R(() => [
|
|
24039
24039
|
H("div", sK, pe(p(v)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
@@ -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: ce[2] || (ce[2] = () => T.value = !1),
|
|
24066
24066
|
onProceed: re
|
|
24067
24067
|
}, null, 8, ["config", "setup"])
|
|
24068
24068
|
], 64);
|
|
@@ -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
|
+
}, fe = ae({}), le = (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), fe.value = L.data, o.isWizardStep && n("model-updated", {
|
|
24615
24615
|
model: j.fields,
|
|
24616
24616
|
data: L.data,
|
|
24617
24617
|
resourceEndpoint: B.value
|
|
@@ -24626,9 +24626,9 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
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 ce = () => {
|
|
24630
24630
|
o.config.cancelRoute ? i.push(o.config.cancelRoute) : n("cancel");
|
|
24631
|
-
},
|
|
24631
|
+
}, de = 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(() => {
|
|
@@ -24636,7 +24636,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
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
24638
|
}), ve = F(() => !Object.keys(rn).includes(o.pluginType)), E = F(() => {
|
|
24639
|
-
const L =
|
|
24639
|
+
const L = fe.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 fe.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 && !ve.value && await f.post(
|
|
24662
|
+
}), !b.value && !ve.value && await f.post(de.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 {
|
|
@@ -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: ce,
|
|
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))
|
|
@@ -24760,7 +24760,7 @@ 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: ce
|
|
24764
24764
|
}, {
|
|
24765
24765
|
default: R(() => [
|
|
24766
24766
|
De(pe(p(r)("actions.cancel")), 1)
|
|
@@ -24802,7 +24802,7 @@ 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: le,
|
|
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"])
|
|
@@ -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
|
+
}), fe = (I) => ({
|
|
25071
25071
|
label: r("actions.configure_dynamic_ordering"),
|
|
25072
25072
|
to: i.config.getConfigureDynamicOrderingRoute(I)
|
|
25073
|
-
}),
|
|
25074
|
-
|
|
25073
|
+
}), le = ae(void 0), ke = ae(!1), Ae = ae(!1), ie = ae(""), ce = xh(i.config, b.value), de = (I) => {
|
|
25074
|
+
le.value = I, ke.value = !0;
|
|
25075
25075
|
}, he = () => {
|
|
25076
25076
|
ke.value = !1;
|
|
25077
25077
|
}, ve = async () => {
|
|
25078
25078
|
var I, G, Y;
|
|
25079
|
-
if ((I =
|
|
25079
|
+
if ((I = le.value) != null && I.id) {
|
|
25080
25080
|
Ae.value = !0;
|
|
25081
25081
|
try {
|
|
25082
|
-
await s.delete(
|
|
25082
|
+
await s.delete(ce(le.value.id)), Ae.value = !1, ke.value = !1, M.value++, o("delete:success", le.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 {
|
|
@@ -25309,10 +25309,10 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25309
25309
|
"auth-function": () => e.canConfigureDynamicOrdering(ye)
|
|
25310
25310
|
}, {
|
|
25311
25311
|
default: R(() => [
|
|
25312
|
-
|
|
25312
|
+
fe(ye) ? (w(), W(xe, {
|
|
25313
25313
|
key: 0,
|
|
25314
25314
|
"data-testid": "action-entity-config-dyn-order",
|
|
25315
|
-
item:
|
|
25315
|
+
item: fe(ye)
|
|
25316
25316
|
}, null, 8, ["item"])) : Se("", !0)
|
|
25317
25317
|
]),
|
|
25318
25318
|
_: 2
|
|
@@ -25325,7 +25325,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25325
25325
|
danger: "",
|
|
25326
25326
|
"data-testid": "action-entity-delete",
|
|
25327
25327
|
"has-divider": "",
|
|
25328
|
-
onClick: (_e) =>
|
|
25328
|
+
onClick: (_e) => de(ye)
|
|
25329
25329
|
}, {
|
|
25330
25330
|
default: R(() => [
|
|
25331
25331
|
De(pe(p(r)("actions.delete")), 1)
|
|
@@ -25404,7 +25404,7 @@ 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": le.value && (le.value.instance_name || le.value.name || le.value.id),
|
|
25408
25408
|
"entity-type": p(sf).Plugin,
|
|
25409
25409
|
error: ie.value,
|
|
25410
25410
|
title: p(r)("delete.title"),
|
|
@@ -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 fe = ((se = y.value[te]) == null ? void 0 : se.filter((le) => le.name.toLowerCase().includes(K) || le.id.toLowerCase().includes(K) || le.group.toLowerCase().includes(K))) || [];
|
|
26108
|
+
fe.length ? z[te] = fe : 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 fe = te.group || a("plugins.select.misc_plugins");
|
|
26145
|
+
let le = K[fe];
|
|
26146
|
+
return le || (le = []), le.push(te), le.sort(u("name")), K[fe] = le, 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: fe } = await _.get(ne.value);
|
|
26187
|
+
g.value = fe.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((fe, le) => (le.name && fe.push(le.name), fe), []);
|
|
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"), fe = we("KSkeleton"), le = 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,12 +26223,12 @@ 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(fe, {
|
|
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(le, {
|
|
26232
26232
|
key: 1,
|
|
26233
26233
|
"action-button-visible": !1,
|
|
26234
26234
|
"data-testid": "plugins-fetch-error",
|
|
@@ -26238,7 +26238,7 @@ const Yd = pu.options, j3 = Ee.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26238
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(le, {
|
|
26242
26242
|
key: 2,
|
|
26243
26243
|
"action-button-visible": !1,
|
|
26244
26244
|
"data-testid": "plugins-empty-state",
|