@kong-ui-public/entities-gateway-services 3.10.6-pr.2001.fda319139.0 → 3.10.6-pr.2026.708ca61e0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-gateway-services.es.js +666 -1570
- package/dist/entities-gateway-services.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/GatewayServiceForm.vue.d.ts +0 -26
- package/dist/types/components/GatewayServiceForm.vue.d.ts.map +1 -1
- package/dist/types/composables/index.d.ts +0 -2
- package/dist/types/composables/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/gateway-service-form.d.ts +2 -28
- package/dist/types/types/gateway-service-form.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/types/components/LegacyGatewayServiceForm.vue.d.ts +0 -86
- package/dist/types/components/LegacyGatewayServiceForm.vue.d.ts.map +0 -1
- package/dist/types/composables/useUrlValidators.d.ts +0 -8
- package/dist/types/composables/useUrlValidators.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -15
- package/dist/types/constants.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { BookIcon as
|
|
4
|
-
import { createI18n as
|
|
5
|
-
import { useAxios as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as Te, computed as b, ref as E, watch as Ie, onBeforeMount as Le, resolveComponent as F, openBlock as S, createElementBlock as U, createVNode as d, unref as o, createSlots as Ee, withCtx as f, createBlock as ue, Teleport as Pe, createElementVNode as k, createCommentVNode as L, createTextVNode as R, toDisplayString as y, withModifiers as Se, reactive as Ue, onMounted as De, renderSlot as Ge } from "vue";
|
|
2
|
+
import { useRouter as xe } from "vue-router";
|
|
3
|
+
import { BookIcon as Re, AddIcon as Ke, ServicesIcon as qe } from "@kong/icons";
|
|
4
|
+
import { createI18n as Oe, i18nTComponent as Ne } from "@kong-ui-public/i18n";
|
|
5
|
+
import { useAxios as Ae, useTableState as We, useFetcher as je, useDeleteUrlBuilder as He, FetcherStatus as Je, EntityBaseTable as ze, EntityFilter as Qe, PermissionsWrapper as ie, TableTags as Xe, EntityEmptyState as Ze, EntityToggleModal as Ye, EntityDeleteModal as et, EntityTypes as tt, useErrors as ot, useValidators as lt, EntityBaseFormType as Me, useGatewayFeatureSupported as it, EntityBaseForm as st, SupportedEntityType as Fe, EntityFormSection as $e, useHelpers as rt, ConfigurationSchemaSection as fe, ConfigurationSchemaType as at, EntityBaseConfigCard as nt } from "@kong-ui-public/entities-shared";
|
|
6
|
+
const ct = {
|
|
7
7
|
create: "New gateway service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
9
9
|
copy_id: "Copy ID",
|
|
@@ -16,12 +16,12 @@ const Vt = {
|
|
|
16
16
|
description: "Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",
|
|
17
17
|
menu_label: "Delete"
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, dt = {
|
|
20
20
|
placeholder: {
|
|
21
21
|
konnect: "Filter by name",
|
|
22
22
|
kongManager: "Filter by exact name or ID"
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, ut = {
|
|
25
25
|
title: "Gateway Services",
|
|
26
26
|
list: {
|
|
27
27
|
toolbar_actions: {
|
|
@@ -53,56 +53,24 @@ const Vt = {
|
|
|
53
53
|
description: "Gateway services represent backend APIs or microservices that receive traffic routed through the gateway."
|
|
54
54
|
},
|
|
55
55
|
form: {
|
|
56
|
-
buttons: {
|
|
57
|
-
try_sample: "Try sample API"
|
|
58
|
-
},
|
|
59
|
-
errors: {
|
|
60
|
-
host: {
|
|
61
|
-
empty: "Host cannot be empty",
|
|
62
|
-
invalid: "Invalid host"
|
|
63
|
-
},
|
|
64
|
-
port: {
|
|
65
|
-
type: "Port must be a number",
|
|
66
|
-
invalid: "Port must be between 0 and 65535"
|
|
67
|
-
},
|
|
68
|
-
path: {
|
|
69
|
-
prefix: "Path must begin with /",
|
|
70
|
-
invalid: "Path should not include characters outside of the reserved list of RFC 3986"
|
|
71
|
-
},
|
|
72
|
-
protocol: {
|
|
73
|
-
empty: "Protocol cannot be empty",
|
|
74
|
-
invalid: "Protocol - value must be one of http, https, grpc, grpcs, tcp, udp, tls, tls_passthrough, ws, wss"
|
|
75
|
-
},
|
|
76
|
-
url: {
|
|
77
|
-
invalid: "URL validation failed"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
56
|
sections: {
|
|
81
57
|
general: {
|
|
82
58
|
title: "General Information",
|
|
83
|
-
description: "
|
|
59
|
+
description: "General information will help identify and manage this Gateway Service."
|
|
84
60
|
},
|
|
85
61
|
keys: {
|
|
86
|
-
title: "Service
|
|
87
|
-
description: "Define
|
|
62
|
+
title: "Service Endpoint",
|
|
63
|
+
description: "Define the endpoint for this service by specifying the full URL or by its separate elements.",
|
|
88
64
|
checkedGroupLabel: "Choose how and where to send traffic",
|
|
89
65
|
urlLabel: "Full URL",
|
|
90
|
-
checkedGroupAltLabel: "Protocol,
|
|
91
|
-
|
|
92
|
-
label: "Full URL",
|
|
93
|
-
description: "Define the service using a single, complete API URL for simple setup."
|
|
94
|
-
},
|
|
95
|
-
protocol: {
|
|
96
|
-
label: "Protocol, host, port, and path",
|
|
97
|
-
description: "Manually specify each component of the API’s URL for advanced configurations."
|
|
98
|
-
},
|
|
99
|
-
viewAdvancedFields: "View advanced fields"
|
|
66
|
+
checkedGroupAltLabel: "Protocol, Host, Port and Path",
|
|
67
|
+
viewAdvancedFields: "View Advanced Fields"
|
|
100
68
|
}
|
|
101
69
|
},
|
|
102
70
|
fields: {
|
|
103
71
|
upstream_url: {
|
|
104
|
-
label: "
|
|
105
|
-
placeholder: "
|
|
72
|
+
label: "Upstream URL",
|
|
73
|
+
placeholder: "Enter a URL",
|
|
106
74
|
tooltip_for_konnect: "This is the URL of the API you will manage in Konnect.",
|
|
107
75
|
tooltip_for_km: "This is the URL of the API you will manage in Kong Gateway."
|
|
108
76
|
},
|
|
@@ -129,12 +97,12 @@ const Vt = {
|
|
|
129
97
|
},
|
|
130
98
|
host: {
|
|
131
99
|
label: "Host",
|
|
132
|
-
placeholder: "
|
|
100
|
+
placeholder: "Enter a host",
|
|
133
101
|
tooltip: "The host of the upstream server. Note that the host value is case sensitive."
|
|
134
102
|
},
|
|
135
103
|
path: {
|
|
136
104
|
label: "Path",
|
|
137
|
-
placeholder: "
|
|
105
|
+
placeholder: "Enter a path",
|
|
138
106
|
tooltip: "The path to be used in request to the upstream server."
|
|
139
107
|
},
|
|
140
108
|
port: {
|
|
@@ -146,31 +114,31 @@ const Vt = {
|
|
|
146
114
|
tooltip: "The number of retries to execute upon failure to proxy."
|
|
147
115
|
},
|
|
148
116
|
connect_timeout: {
|
|
149
|
-
label: "Connection
|
|
117
|
+
label: "Connection Timeout",
|
|
150
118
|
tooltip: "The timeout in milliseconds for establishing a connection to the upstream server."
|
|
151
119
|
},
|
|
152
120
|
write_timeout: {
|
|
153
|
-
label: "Write
|
|
121
|
+
label: "Write Timeout",
|
|
154
122
|
tooltip: "The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."
|
|
155
123
|
},
|
|
156
124
|
read_timeout: {
|
|
157
|
-
label: "Read
|
|
125
|
+
label: "Read Timeout",
|
|
158
126
|
tooltip: "The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."
|
|
159
127
|
},
|
|
160
128
|
client_certificate: {
|
|
161
|
-
label: "Client
|
|
129
|
+
label: "Client Certificate",
|
|
162
130
|
placeholder: "Enter a Certificate ID",
|
|
163
131
|
tooltip: "Certificate to be used as client certificate while TLS handshaking to the upstream server."
|
|
164
132
|
},
|
|
165
133
|
ca_certificates: {
|
|
166
|
-
label: "CA
|
|
134
|
+
label: "CA Certificates",
|
|
167
135
|
placeholder: "Enter a comma separated list of CA Certificate IDs",
|
|
168
136
|
tooltip: "Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",
|
|
169
137
|
code1: "CA Certificate",
|
|
170
138
|
code2: "null"
|
|
171
139
|
},
|
|
172
140
|
tls_verify_enabled: {
|
|
173
|
-
label: "TLS
|
|
141
|
+
label: "TLS Verify",
|
|
174
142
|
help: "If unchecked, use default system setting",
|
|
175
143
|
tooltip: "Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",
|
|
176
144
|
code1: "null"
|
|
@@ -192,8 +160,7 @@ const Vt = {
|
|
|
192
160
|
label: "Tags",
|
|
193
161
|
tooltip: "An optional set of strings associated with the Service for grouping and filtering.",
|
|
194
162
|
placeholder: "Enter a list of tags separated by comma",
|
|
195
|
-
help: "e.g. tag1, tag2, tag3"
|
|
196
|
-
collapse: "Add tags"
|
|
163
|
+
help: "e.g. tag1, tag2, tag3"
|
|
197
164
|
},
|
|
198
165
|
enabled: {
|
|
199
166
|
label: "Enabled",
|
|
@@ -203,39 +170,39 @@ const Vt = {
|
|
|
203
170
|
}
|
|
204
171
|
}
|
|
205
172
|
}
|
|
206
|
-
},
|
|
173
|
+
}, ft = {
|
|
207
174
|
general: "Gateway Services could not be retrieved",
|
|
208
175
|
delete: "The gateway service could not be deleted at this time.",
|
|
209
176
|
copy: "Failed to copy to clipboard",
|
|
210
177
|
urlErrorMessage: "Error: invalid URL"
|
|
211
|
-
},
|
|
178
|
+
}, pt = {
|
|
212
179
|
success: "Copied {val} to clipboard",
|
|
213
180
|
success_brief: "Successfully copied to clipboard"
|
|
214
|
-
},
|
|
181
|
+
}, mt = {
|
|
215
182
|
gateway_services: "gateway services"
|
|
216
|
-
},
|
|
217
|
-
actions:
|
|
218
|
-
search:
|
|
219
|
-
gateway_services:
|
|
220
|
-
errors:
|
|
221
|
-
copy:
|
|
222
|
-
glossary:
|
|
183
|
+
}, vt = {
|
|
184
|
+
actions: ct,
|
|
185
|
+
search: dt,
|
|
186
|
+
gateway_services: ut,
|
|
187
|
+
errors: ft,
|
|
188
|
+
copy: pt,
|
|
189
|
+
glossary: mt
|
|
223
190
|
};
|
|
224
|
-
function
|
|
225
|
-
const n =
|
|
191
|
+
function gt() {
|
|
192
|
+
const n = Oe("en-us", vt);
|
|
226
193
|
return {
|
|
227
194
|
i18n: n,
|
|
228
|
-
i18nT:
|
|
195
|
+
i18nT: Ne(n)
|
|
229
196
|
// Translation component <i18n-t>
|
|
230
197
|
};
|
|
231
198
|
}
|
|
232
|
-
function
|
|
199
|
+
function yt() {
|
|
233
200
|
return {
|
|
234
|
-
getPortFromProtocol: (
|
|
235
|
-
const
|
|
236
|
-
if ((
|
|
237
|
-
return
|
|
238
|
-
switch (
|
|
201
|
+
getPortFromProtocol: (D, p) => {
|
|
202
|
+
const c = [80, 443], r = Number(p);
|
|
203
|
+
if ((r || r === 0) && !c.includes(r))
|
|
204
|
+
return r;
|
|
205
|
+
switch (D) {
|
|
239
206
|
case "grpcs":
|
|
240
207
|
case "tls":
|
|
241
208
|
case "https":
|
|
@@ -251,52 +218,31 @@ function Ut() {
|
|
|
251
218
|
}
|
|
252
219
|
};
|
|
253
220
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (!b || b.trim() === "") return n("gateway_services.form.errors.host.empty");
|
|
259
|
-
const T = /^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/;
|
|
260
|
-
return /^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(b) || T.test(b) ? "" : n("gateway_services.form.errors.host.invalid");
|
|
261
|
-
},
|
|
262
|
-
validateProtocol: (b, T) => !b || b.trim() === "" ? n("gateway_services.form.errors.protocol.empty") : (b = b.slice(0, -1), T.find((r) => {
|
|
263
|
-
if (r.value === b) return r;
|
|
264
|
-
}) === void 0 ? n("gateway_services.form.errors.protocol.invalid") : ""),
|
|
265
|
-
validatePath: (b) => !b || b === "" ? "" : b.startsWith("/") ? /[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(b) ? n("gateway_services.form.errors.path.invalid") : "" : n("gateway_services.form.errors.path.prefix"),
|
|
266
|
-
validatePort: (b) => {
|
|
267
|
-
if (b == null || b === "")
|
|
268
|
-
return "";
|
|
269
|
-
const T = typeof b == "string" ? parseInt(b, 10) : b;
|
|
270
|
-
return isNaN(T) ? n("gateway_services.form.errors.port.type") : T < 0 || T > 65535 ? n("gateway_services.form.errors.port.invalid") : "";
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
const ge = {
|
|
275
|
-
useI18n: $t,
|
|
276
|
-
usePortFromProtocol: Ut,
|
|
277
|
-
useUrlValidators: xt
|
|
278
|
-
}, xe = "/v2/control-planes/{controlPlaneId}/core-entities", Ae = "/{workspace}", ye = {
|
|
221
|
+
const ve = {
|
|
222
|
+
useI18n: gt,
|
|
223
|
+
usePortFromProtocol: yt
|
|
224
|
+
}, pe = "/v2/control-planes/{controlPlaneId}/core-entities", me = "/{workspace}", se = {
|
|
279
225
|
list: {
|
|
280
226
|
konnect: {
|
|
281
|
-
all: `${
|
|
227
|
+
all: `${pe}/services`
|
|
282
228
|
},
|
|
283
229
|
kongManager: {
|
|
284
|
-
all: `${
|
|
230
|
+
all: `${me}/services`
|
|
285
231
|
}
|
|
286
232
|
},
|
|
287
233
|
form: {
|
|
288
234
|
konnect: {
|
|
289
|
-
create: `${
|
|
290
|
-
validate: `${
|
|
291
|
-
edit: `${
|
|
235
|
+
create: `${pe}/services`,
|
|
236
|
+
validate: `${pe}/v1/schemas/json/service/validate`,
|
|
237
|
+
edit: `${pe}/services/{id}`
|
|
292
238
|
},
|
|
293
239
|
kongManager: {
|
|
294
|
-
create: `${
|
|
295
|
-
validate: `${
|
|
296
|
-
edit: `${
|
|
240
|
+
create: `${me}/services`,
|
|
241
|
+
validate: `${me}/schemas/services/validate`,
|
|
242
|
+
edit: `${me}/services/{id}`
|
|
297
243
|
}
|
|
298
244
|
}
|
|
299
|
-
},
|
|
245
|
+
}, _t = "#00abd2", bt = "24px", ht = { class: "kong-ui-entities-gateway-services-list" }, wt = { class: "button-row" }, kt = { class: "empty-state-icon-gateway" }, Ct = { key: 1 }, Vt = /* @__PURE__ */ Te({
|
|
300
246
|
__name: "GatewayServiceList",
|
|
301
247
|
props: {
|
|
302
248
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -354,211 +300,211 @@ const ge = {
|
|
|
354
300
|
}
|
|
355
301
|
},
|
|
356
302
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
357
|
-
setup(n, { emit:
|
|
358
|
-
var
|
|
359
|
-
const
|
|
303
|
+
setup(n, { emit: D }) {
|
|
304
|
+
var l;
|
|
305
|
+
const p = D, c = n, { i18n: { t: r, formatUnixTimeStamp: x } } = ve.useI18n(), N = xe(), { axiosInstance: q } = Ae((l = c.config) == null ? void 0 : l.axiosRequestConfig), { hasRecords: a, handleStateChange: P } = We(() => G.value), C = b(() => a.value && c.config.app === "konnect"), ge = b(() => !c.enableV2EmptyStates && c.config.app === "konnect"), ye = b(() => c.config.app !== "kongManager" || !!c.config.disableSorting), O = {
|
|
360
306
|
// the Name column is non-hidable
|
|
361
|
-
name: { label:
|
|
362
|
-
...
|
|
363
|
-
protocol: { label:
|
|
364
|
-
host: { label:
|
|
365
|
-
port: { label:
|
|
366
|
-
path: { label:
|
|
367
|
-
enabled: { label:
|
|
368
|
-
tags: { label:
|
|
369
|
-
updated_at: { label:
|
|
370
|
-
created_at: { label:
|
|
371
|
-
},
|
|
307
|
+
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
308
|
+
...c.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
309
|
+
protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
310
|
+
host: { label: r("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
|
|
311
|
+
port: { label: r("gateway_services.list.table_headers.port"), searchable: !0, sortable: !0 },
|
|
312
|
+
path: { label: r("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
|
|
313
|
+
enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
314
|
+
tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 },
|
|
315
|
+
updated_at: { label: r("gateway_services.list.table_headers.updated_at"), sortable: !0 },
|
|
316
|
+
created_at: { label: r("gateway_services.list.table_headers.created_at"), sortable: !0 }
|
|
317
|
+
}, _e = {
|
|
372
318
|
columnVisibility: {
|
|
373
319
|
created_at: !1
|
|
374
320
|
}
|
|
375
|
-
},
|
|
376
|
-
var
|
|
377
|
-
let
|
|
378
|
-
return
|
|
379
|
-
}), Y =
|
|
380
|
-
const
|
|
381
|
-
if (
|
|
321
|
+
}, H = O, _ = b(() => {
|
|
322
|
+
var s, g;
|
|
323
|
+
let u = `${c.config.apiBaseUrl}${se.list[c.config.app].all}`;
|
|
324
|
+
return c.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((s = c.config) == null ? void 0 : s.controlPlaneId) || "") : c.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (g = c.config) != null && g.workspace ? `/${c.config.workspace}` : "")), u;
|
|
325
|
+
}), Y = b(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${_.value}`) : new URL(_.value)), G = E(""), be = b(() => {
|
|
326
|
+
const u = c.config.app === "konnect" || c.config.isExactMatch;
|
|
327
|
+
if (u)
|
|
382
328
|
return {
|
|
383
|
-
isExactMatch:
|
|
384
|
-
placeholder:
|
|
329
|
+
isExactMatch: u,
|
|
330
|
+
placeholder: r(`search.placeholder.${c.config.app}`)
|
|
385
331
|
};
|
|
386
|
-
const { name:
|
|
332
|
+
const { name: s, enabled: g, protocol: I, host: Z, port: A, path: de } = O;
|
|
387
333
|
return {
|
|
388
|
-
isExactMatch:
|
|
389
|
-
fields: { name:
|
|
390
|
-
schema:
|
|
334
|
+
isExactMatch: u,
|
|
335
|
+
fields: { name: s, enabled: g, protocol: I, host: Z, port: A, path: de },
|
|
336
|
+
schema: c.config.filterSchema
|
|
391
337
|
};
|
|
392
338
|
}), {
|
|
393
|
-
fetcher:
|
|
394
|
-
fetcherState:
|
|
395
|
-
fetcherCacheKey:
|
|
396
|
-
} =
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
},
|
|
401
|
-
ctaPath:
|
|
402
|
-
ctaText:
|
|
403
|
-
message: `${
|
|
404
|
-
title:
|
|
405
|
-
})),
|
|
406
|
-
const
|
|
339
|
+
fetcher: e,
|
|
340
|
+
fetcherState: w,
|
|
341
|
+
fetcherCacheKey: ee
|
|
342
|
+
} = je({ ...c.config, cacheIdentifier: c.cacheIdentifier }, _.value), he = () => {
|
|
343
|
+
G.value = "";
|
|
344
|
+
}, re = () => {
|
|
345
|
+
ee.value++;
|
|
346
|
+
}, J = E(null), W = b(() => ({
|
|
347
|
+
ctaPath: c.config.createRoute,
|
|
348
|
+
ctaText: h.value ? c.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
349
|
+
message: `${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
350
|
+
title: h.value ? c.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
351
|
+
})), z = E(!1), T = E(null), Q = b(() => {
|
|
352
|
+
const u = {
|
|
407
353
|
action: "disable",
|
|
408
354
|
id: "",
|
|
409
355
|
name: ""
|
|
410
356
|
};
|
|
411
|
-
if (
|
|
412
|
-
const { enabled:
|
|
413
|
-
|
|
357
|
+
if (T.value) {
|
|
358
|
+
const { enabled: s, id: g, name: I } = T.value;
|
|
359
|
+
u.action = s ? "disable" : "enable", u.id = g, u.name = I || g;
|
|
414
360
|
}
|
|
415
|
-
return
|
|
416
|
-
}),
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
},
|
|
421
|
-
var
|
|
422
|
-
if (!await ((
|
|
361
|
+
return u;
|
|
362
|
+
}), we = (u) => {
|
|
363
|
+
z.value = !0, T.value = u;
|
|
364
|
+
}, ae = () => {
|
|
365
|
+
z.value = !1, T.value = null;
|
|
366
|
+
}, ke = async () => {
|
|
367
|
+
var I, Z;
|
|
368
|
+
if (!await ((I = c.canEdit) == null ? void 0 : I.call(c, T.value)) || !T.value)
|
|
423
369
|
return;
|
|
424
|
-
const
|
|
370
|
+
const s = `${Y.value.href}/${T.value.id}`, g = !T.value.enabled;
|
|
425
371
|
try {
|
|
426
|
-
const { data:
|
|
427
|
-
|
|
428
|
-
} catch (
|
|
429
|
-
|
|
372
|
+
const { data: A } = ((Z = c.config) == null ? void 0 : Z.app) === "konnect" ? await q.put(s, { ...T.value, enabled: g }) : await q.patch(s, { ...T.value, enabled: g });
|
|
373
|
+
p("toggle:success", A), T.value.enabled = g;
|
|
374
|
+
} catch (A) {
|
|
375
|
+
p("error", A);
|
|
430
376
|
}
|
|
431
|
-
}, Ce = (
|
|
432
|
-
|
|
433
|
-
},
|
|
434
|
-
const
|
|
435
|
-
if (!
|
|
436
|
-
|
|
437
|
-
entity:
|
|
377
|
+
}, Ce = (u) => {
|
|
378
|
+
c.config.getControlPlaneRoute && N.push(c.config.getControlPlaneRoute(u));
|
|
379
|
+
}, te = (u, s) => {
|
|
380
|
+
const g = u.id;
|
|
381
|
+
if (!s(g)) {
|
|
382
|
+
p("copy:error", {
|
|
383
|
+
entity: u,
|
|
438
384
|
field: "id",
|
|
439
|
-
message:
|
|
385
|
+
message: r("errors.copy")
|
|
440
386
|
});
|
|
441
387
|
return;
|
|
442
388
|
}
|
|
443
|
-
|
|
444
|
-
entity:
|
|
389
|
+
p("copy:success", {
|
|
390
|
+
entity: u,
|
|
445
391
|
field: "id",
|
|
446
|
-
message:
|
|
392
|
+
message: r("copy.success", { val: g })
|
|
447
393
|
});
|
|
448
|
-
},
|
|
449
|
-
const
|
|
450
|
-
if (!
|
|
451
|
-
|
|
452
|
-
entity:
|
|
453
|
-
message:
|
|
394
|
+
}, ne = (u, s) => {
|
|
395
|
+
const g = JSON.stringify(u);
|
|
396
|
+
if (!s(g)) {
|
|
397
|
+
p("copy:error", {
|
|
398
|
+
entity: u,
|
|
399
|
+
message: r("errors.copy")
|
|
454
400
|
});
|
|
455
401
|
return;
|
|
456
402
|
}
|
|
457
|
-
|
|
458
|
-
entity:
|
|
459
|
-
message:
|
|
403
|
+
p("copy:success", {
|
|
404
|
+
entity: u,
|
|
405
|
+
message: r("copy.success_brief")
|
|
460
406
|
});
|
|
461
|
-
},
|
|
462
|
-
var
|
|
463
|
-
await ((
|
|
464
|
-
},
|
|
465
|
-
label:
|
|
466
|
-
to:
|
|
467
|
-
}),
|
|
468
|
-
label:
|
|
469
|
-
to:
|
|
470
|
-
}),
|
|
471
|
-
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
var
|
|
476
|
-
if ((
|
|
477
|
-
|
|
407
|
+
}, ce = async (u) => {
|
|
408
|
+
var g;
|
|
409
|
+
await ((g = c.canRetrieve) == null ? void 0 : g.call(c, u)) && N.push(c.config.getViewRoute(u.id));
|
|
410
|
+
}, Ve = (u) => ({
|
|
411
|
+
label: r("actions.view"),
|
|
412
|
+
to: c.config.getViewRoute(u)
|
|
413
|
+
}), oe = (u) => ({
|
|
414
|
+
label: r("actions.edit"),
|
|
415
|
+
to: c.config.getEditRoute(u)
|
|
416
|
+
}), B = E(void 0), K = E(!1), j = E(!1), X = E(""), t = He(c.config, _.value), i = (u) => {
|
|
417
|
+
B.value = u, K.value = !0, X.value = "";
|
|
418
|
+
}, v = () => {
|
|
419
|
+
K.value = !1, B.value = void 0;
|
|
420
|
+
}, M = async () => {
|
|
421
|
+
var u, s, g;
|
|
422
|
+
if ((u = B.value) != null && u.id) {
|
|
423
|
+
j.value = !0;
|
|
478
424
|
try {
|
|
479
|
-
await
|
|
480
|
-
} catch (
|
|
481
|
-
|
|
425
|
+
await q.delete(t(B.value.id)), p("delete:success", B.value), v(), ee.value++;
|
|
426
|
+
} catch (I) {
|
|
427
|
+
X.value = ((g = (s = I.response) == null ? void 0 : s.data) == null ? void 0 : g.message) || I.message || r("errors.delete"), p("error", I);
|
|
482
428
|
} finally {
|
|
483
|
-
|
|
429
|
+
j.value = !1;
|
|
484
430
|
}
|
|
485
431
|
}
|
|
486
|
-
},
|
|
487
|
-
|
|
432
|
+
}, V = () => {
|
|
433
|
+
N.push(c.config.createRoute);
|
|
488
434
|
};
|
|
489
|
-
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
492
|
-
|
|
493
|
-
title:
|
|
494
|
-
}, (
|
|
435
|
+
Ie(w, (u) => {
|
|
436
|
+
var s, g, I;
|
|
437
|
+
if (u.status === Je.Error) {
|
|
438
|
+
J.value = {
|
|
439
|
+
title: r("errors.general")
|
|
440
|
+
}, (I = (g = (s = u.error) == null ? void 0 : s.response) == null ? void 0 : g.data) != null && I.message && (J.value.message = u.error.response.data.message), p("error", u.error);
|
|
495
441
|
return;
|
|
496
442
|
}
|
|
497
|
-
|
|
443
|
+
J.value = null;
|
|
498
444
|
});
|
|
499
|
-
const
|
|
500
|
-
return
|
|
501
|
-
|
|
502
|
-
}), (
|
|
503
|
-
const
|
|
504
|
-
return
|
|
505
|
-
|
|
445
|
+
const h = E(!1);
|
|
446
|
+
return Le(async () => {
|
|
447
|
+
h.value = await c.canCreate();
|
|
448
|
+
}), (u, s) => {
|
|
449
|
+
const g = F("KButton"), I = F("KBadge"), Z = F("KInputSwitch"), A = F("KDropdownItem"), de = F("KClipboardProvider");
|
|
450
|
+
return S(), U("div", ht, [
|
|
451
|
+
d(o(ze), {
|
|
506
452
|
"cache-identifier": n.cacheIdentifier,
|
|
507
|
-
"default-table-preferences":
|
|
508
|
-
"disable-sorting":
|
|
509
|
-
"empty-state-options":
|
|
453
|
+
"default-table-preferences": _e,
|
|
454
|
+
"disable-sorting": ye.value,
|
|
455
|
+
"empty-state-options": W.value,
|
|
510
456
|
"enable-entity-actions": "",
|
|
511
|
-
"error-message":
|
|
512
|
-
fetcher: o(
|
|
513
|
-
"fetcher-cache-key": o(
|
|
457
|
+
"error-message": J.value,
|
|
458
|
+
fetcher: o(e),
|
|
459
|
+
"fetcher-cache-key": o(ee),
|
|
514
460
|
"pagination-type": "offset",
|
|
515
461
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
516
|
-
query:
|
|
517
|
-
"table-headers": o(
|
|
518
|
-
onClearSearchInput:
|
|
519
|
-
"onClick:row":
|
|
520
|
-
onSort:
|
|
521
|
-
onState: o(
|
|
522
|
-
},
|
|
523
|
-
"toolbar-filter":
|
|
524
|
-
|
|
525
|
-
modelValue:
|
|
526
|
-
"onUpdate:modelValue":
|
|
527
|
-
config:
|
|
462
|
+
query: G.value,
|
|
463
|
+
"table-headers": o(H),
|
|
464
|
+
onClearSearchInput: he,
|
|
465
|
+
"onClick:row": s[5] || (s[5] = (m) => ce(m)),
|
|
466
|
+
onSort: re,
|
|
467
|
+
onState: o(P)
|
|
468
|
+
}, Ee({
|
|
469
|
+
"toolbar-filter": f(() => [
|
|
470
|
+
d(o(Qe), {
|
|
471
|
+
modelValue: G.value,
|
|
472
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => G.value = m),
|
|
473
|
+
config: be.value
|
|
528
474
|
}, null, 8, ["modelValue", "config"])
|
|
529
475
|
]),
|
|
530
|
-
"toolbar-button":
|
|
531
|
-
(
|
|
476
|
+
"toolbar-button": f(() => [
|
|
477
|
+
(S(), ue(Pe, {
|
|
532
478
|
disabled: !n.useActionOutside,
|
|
533
479
|
to: "#kong-ui-app-page-header-action-button"
|
|
534
480
|
}, [
|
|
535
|
-
|
|
536
|
-
|
|
481
|
+
k("div", wt, [
|
|
482
|
+
C.value ? (S(), ue(g, {
|
|
537
483
|
key: 0,
|
|
538
484
|
appearance: "secondary",
|
|
539
485
|
class: "open-learning-hub",
|
|
540
486
|
"data-testid": "gateway-services-learn-more-button",
|
|
541
487
|
icon: "",
|
|
542
|
-
onClick:
|
|
488
|
+
onClick: s[1] || (s[1] = (m) => u.$emit("click:learn-more"))
|
|
543
489
|
}, {
|
|
544
|
-
default:
|
|
545
|
-
|
|
490
|
+
default: f(() => [
|
|
491
|
+
d(o(Re), { decorative: "" })
|
|
546
492
|
]),
|
|
547
493
|
_: 1
|
|
548
|
-
})) :
|
|
549
|
-
|
|
494
|
+
})) : L("", !0),
|
|
495
|
+
d(o(ie), {
|
|
550
496
|
"auth-function": () => n.canCreate()
|
|
551
497
|
}, {
|
|
552
|
-
default:
|
|
553
|
-
|
|
498
|
+
default: f(() => [
|
|
499
|
+
d(g, {
|
|
554
500
|
appearance: "primary",
|
|
555
501
|
"data-testid": "toolbar-add-gateway-service",
|
|
556
502
|
size: n.useActionOutside ? "medium" : "large",
|
|
557
503
|
to: n.config.createRoute
|
|
558
504
|
}, {
|
|
559
|
-
default:
|
|
560
|
-
|
|
561
|
-
|
|
505
|
+
default: f(() => [
|
|
506
|
+
d(o(Ke)),
|
|
507
|
+
R(" " + y(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
562
508
|
]),
|
|
563
509
|
_: 1
|
|
564
510
|
}, 8, ["size", "to"])
|
|
@@ -568,120 +514,120 @@ const ge = {
|
|
|
568
514
|
])
|
|
569
515
|
], 8, ["disabled"]))
|
|
570
516
|
]),
|
|
571
|
-
name:
|
|
572
|
-
|
|
517
|
+
name: f(({ rowValue: m }) => [
|
|
518
|
+
k("b", null, y(m ?? "-"), 1)
|
|
573
519
|
]),
|
|
574
|
-
control_plane:
|
|
575
|
-
var
|
|
520
|
+
control_plane: f(({ row: m }) => {
|
|
521
|
+
var $;
|
|
576
522
|
return [
|
|
577
|
-
(
|
|
523
|
+
($ = m.x_meta) != null && $.cluster_id ? (S(), ue(I, {
|
|
578
524
|
key: 0,
|
|
579
|
-
tooltip:
|
|
525
|
+
tooltip: m.x_meta.cluster_id,
|
|
580
526
|
"truncation-tooltip": "",
|
|
581
|
-
onClick:
|
|
527
|
+
onClick: Se((le) => Ce(m.x_meta.cluster_id), ["stop"])
|
|
582
528
|
}, {
|
|
583
|
-
default:
|
|
584
|
-
|
|
529
|
+
default: f(() => [
|
|
530
|
+
R(y(m.x_meta.cluster_id), 1)
|
|
585
531
|
]),
|
|
586
532
|
_: 2
|
|
587
|
-
}, 1032, ["tooltip", "onClick"])) : (
|
|
533
|
+
}, 1032, ["tooltip", "onClick"])) : (S(), U("b", Ct, "-"))
|
|
588
534
|
];
|
|
589
535
|
}),
|
|
590
|
-
enabled:
|
|
591
|
-
|
|
592
|
-
"auth-function": () => n.canEdit(
|
|
536
|
+
enabled: f(({ row: m }) => [
|
|
537
|
+
d(o(ie), {
|
|
538
|
+
"auth-function": () => n.canEdit(m),
|
|
593
539
|
"force-show": ""
|
|
594
540
|
}, {
|
|
595
|
-
default:
|
|
596
|
-
|
|
597
|
-
onClick:
|
|
541
|
+
default: f(({ isAllowed: $ }) => [
|
|
542
|
+
k("div", {
|
|
543
|
+
onClick: s[4] || (s[4] = Se(() => {
|
|
598
544
|
}, ["stop"]))
|
|
599
545
|
}, [
|
|
600
|
-
|
|
601
|
-
modelValue:
|
|
602
|
-
"onUpdate:modelValue": (
|
|
603
|
-
"data-testid": `row-${
|
|
604
|
-
disabled:
|
|
605
|
-
onClick:
|
|
546
|
+
d(Z, {
|
|
547
|
+
modelValue: m.enabled,
|
|
548
|
+
"onUpdate:modelValue": (le) => m.enabled = le,
|
|
549
|
+
"data-testid": `row-${m.id}-toggle-input`,
|
|
550
|
+
disabled: !$,
|
|
551
|
+
onClick: Se((le) => we(m), ["prevent"])
|
|
606
552
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
607
553
|
])
|
|
608
554
|
]),
|
|
609
555
|
_: 2
|
|
610
556
|
}, 1032, ["auth-function"])
|
|
611
557
|
]),
|
|
612
|
-
tags:
|
|
613
|
-
|
|
558
|
+
tags: f(({ rowValue: m }) => [
|
|
559
|
+
d(o(Xe), { tags: m }, null, 8, ["tags"])
|
|
614
560
|
]),
|
|
615
|
-
created_at:
|
|
616
|
-
|
|
561
|
+
created_at: f(({ rowValue: m }) => [
|
|
562
|
+
R(y(o(x)(m)), 1)
|
|
617
563
|
]),
|
|
618
|
-
updated_at:
|
|
619
|
-
|
|
564
|
+
updated_at: f(({ row: m, rowValue: $ }) => [
|
|
565
|
+
R(y(o(x)($ ?? m.created_at)), 1)
|
|
620
566
|
]),
|
|
621
|
-
actions:
|
|
622
|
-
|
|
623
|
-
default:
|
|
624
|
-
|
|
567
|
+
actions: f(({ row: m }) => [
|
|
568
|
+
d(de, null, {
|
|
569
|
+
default: f(({ copyToClipboard: $ }) => [
|
|
570
|
+
d(A, {
|
|
625
571
|
"data-testid": "action-entity-copy-id",
|
|
626
|
-
onClick: (
|
|
572
|
+
onClick: (le) => te(m, $)
|
|
627
573
|
}, {
|
|
628
|
-
default:
|
|
629
|
-
|
|
574
|
+
default: f(() => [
|
|
575
|
+
R(y(o(r)("actions.copy_id")), 1)
|
|
630
576
|
]),
|
|
631
577
|
_: 2
|
|
632
578
|
}, 1032, ["onClick"])
|
|
633
579
|
]),
|
|
634
580
|
_: 2
|
|
635
581
|
}, 1024),
|
|
636
|
-
|
|
637
|
-
default:
|
|
638
|
-
|
|
582
|
+
d(de, null, {
|
|
583
|
+
default: f(({ copyToClipboard: $ }) => [
|
|
584
|
+
d(A, {
|
|
639
585
|
"data-testid": "action-entity-copy-json",
|
|
640
|
-
onClick: (
|
|
586
|
+
onClick: (le) => ne(m, $)
|
|
641
587
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
588
|
+
default: f(() => [
|
|
589
|
+
R(y(o(r)("actions.copy_json")), 1)
|
|
644
590
|
]),
|
|
645
591
|
_: 2
|
|
646
592
|
}, 1032, ["onClick"])
|
|
647
593
|
]),
|
|
648
594
|
_: 2
|
|
649
595
|
}, 1024),
|
|
650
|
-
|
|
651
|
-
"auth-function": () => n.canRetrieve(
|
|
596
|
+
d(o(ie), {
|
|
597
|
+
"auth-function": () => n.canRetrieve(m)
|
|
652
598
|
}, {
|
|
653
|
-
default:
|
|
654
|
-
|
|
599
|
+
default: f(() => [
|
|
600
|
+
d(A, {
|
|
655
601
|
"data-testid": "action-entity-view",
|
|
656
602
|
"has-divider": "",
|
|
657
|
-
item:
|
|
603
|
+
item: Ve(m.id)
|
|
658
604
|
}, null, 8, ["item"])
|
|
659
605
|
]),
|
|
660
606
|
_: 2
|
|
661
607
|
}, 1032, ["auth-function"]),
|
|
662
|
-
|
|
663
|
-
"auth-function": () => n.canEdit(
|
|
608
|
+
d(o(ie), {
|
|
609
|
+
"auth-function": () => n.canEdit(m)
|
|
664
610
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
|
|
611
|
+
default: f(() => [
|
|
612
|
+
d(A, {
|
|
667
613
|
"data-testid": "action-entity-edit",
|
|
668
|
-
item:
|
|
614
|
+
item: oe(m.id)
|
|
669
615
|
}, null, 8, ["item"])
|
|
670
616
|
]),
|
|
671
617
|
_: 2
|
|
672
618
|
}, 1032, ["auth-function"]),
|
|
673
|
-
|
|
674
|
-
"auth-function": () => n.canDelete(
|
|
619
|
+
d(o(ie), {
|
|
620
|
+
"auth-function": () => n.canDelete(m)
|
|
675
621
|
}, {
|
|
676
|
-
default:
|
|
677
|
-
|
|
622
|
+
default: f(() => [
|
|
623
|
+
d(A, {
|
|
678
624
|
danger: "",
|
|
679
625
|
"data-testid": "action-entity-delete",
|
|
680
626
|
"has-divider": "",
|
|
681
|
-
onClick: (
|
|
627
|
+
onClick: ($) => i(m)
|
|
682
628
|
}, {
|
|
683
|
-
default:
|
|
684
|
-
|
|
629
|
+
default: f(() => [
|
|
630
|
+
R(y(o(r)("actions.delete.menu_label")), 1)
|
|
685
631
|
]),
|
|
686
632
|
_: 2
|
|
687
633
|
}, 1032, ["onClick"])
|
|
@@ -691,22 +637,22 @@ const ge = {
|
|
|
691
637
|
]),
|
|
692
638
|
_: 2
|
|
693
639
|
}, [
|
|
694
|
-
!o(
|
|
640
|
+
!o(a) && ge.value ? {
|
|
695
641
|
name: "outside-actions",
|
|
696
|
-
fn:
|
|
697
|
-
(
|
|
642
|
+
fn: f(() => [
|
|
643
|
+
(S(), ue(Pe, {
|
|
698
644
|
disabled: !n.useActionOutside,
|
|
699
645
|
to: "#kong-ui-app-page-header-action-button"
|
|
700
646
|
}, [
|
|
701
|
-
|
|
647
|
+
d(g, {
|
|
702
648
|
appearance: "secondary",
|
|
703
649
|
class: "open-learning-hub",
|
|
704
650
|
"data-testid": "gateway-services-more-button",
|
|
705
651
|
icon: "",
|
|
706
|
-
onClick:
|
|
652
|
+
onClick: s[2] || (s[2] = (m) => u.$emit("click:learn-more"))
|
|
707
653
|
}, {
|
|
708
|
-
default:
|
|
709
|
-
|
|
654
|
+
default: f(() => [
|
|
655
|
+
d(o(Re), { decorative: "" })
|
|
710
656
|
]),
|
|
711
657
|
_: 1
|
|
712
658
|
})
|
|
@@ -716,34 +662,34 @@ const ge = {
|
|
|
716
662
|
} : void 0,
|
|
717
663
|
n.enableV2EmptyStates && n.config.app === "konnect" ? {
|
|
718
664
|
name: "empty-state",
|
|
719
|
-
fn:
|
|
720
|
-
var
|
|
665
|
+
fn: f(() => {
|
|
666
|
+
var m;
|
|
721
667
|
return [
|
|
722
|
-
|
|
723
|
-
"action-button-text": o(
|
|
668
|
+
d(o(Ze), {
|
|
669
|
+
"action-button-text": o(r)("gateway_services.empty_state_v2.create"),
|
|
724
670
|
appearance: "secondary",
|
|
725
671
|
"can-create": () => n.canCreate(),
|
|
726
672
|
"data-testid": "gateway-services-entity-empty-state",
|
|
727
|
-
description: o(
|
|
673
|
+
description: o(r)("gateway_services.empty_state_v2.description"),
|
|
728
674
|
"learn-more": n.config.app === "konnect",
|
|
729
|
-
title: o(
|
|
730
|
-
"onClick:create":
|
|
731
|
-
"onClick:learnMore":
|
|
732
|
-
},
|
|
733
|
-
image:
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
color: o(
|
|
737
|
-
size: o(
|
|
675
|
+
title: o(r)("gateway_services.empty_state_v2.title"),
|
|
676
|
+
"onClick:create": V,
|
|
677
|
+
"onClick:learnMore": s[3] || (s[3] = ($) => u.$emit("click:learn-more"))
|
|
678
|
+
}, Ee({
|
|
679
|
+
image: f(() => [
|
|
680
|
+
k("div", kt, [
|
|
681
|
+
d(o(qe), {
|
|
682
|
+
color: o(_t),
|
|
683
|
+
size: o(bt)
|
|
738
684
|
}, null, 8, ["color", "size"])
|
|
739
685
|
])
|
|
740
686
|
]),
|
|
741
687
|
_: 2
|
|
742
688
|
}, [
|
|
743
|
-
(
|
|
689
|
+
(m = n.config) != null && m.isControlPlaneGroup ? {
|
|
744
690
|
name: "message",
|
|
745
|
-
fn:
|
|
746
|
-
|
|
691
|
+
fn: f(() => [
|
|
692
|
+
R(y(o(r)("gateway_services.empty_state_v2.group")), 1)
|
|
747
693
|
]),
|
|
748
694
|
key: "0"
|
|
749
695
|
} : void 0
|
|
@@ -753,58 +699,58 @@ const ge = {
|
|
|
753
699
|
key: "1"
|
|
754
700
|
} : void 0
|
|
755
701
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
756
|
-
|
|
757
|
-
action:
|
|
758
|
-
"entity-id":
|
|
759
|
-
"entity-name":
|
|
760
|
-
"entity-type": o(
|
|
761
|
-
"on-confirm":
|
|
762
|
-
visible:
|
|
763
|
-
onCancel:
|
|
764
|
-
onProceed:
|
|
702
|
+
d(o(Ye), {
|
|
703
|
+
action: Q.value.action,
|
|
704
|
+
"entity-id": Q.value.id,
|
|
705
|
+
"entity-name": Q.value.name,
|
|
706
|
+
"entity-type": o(r)("glossary.gateway_services"),
|
|
707
|
+
"on-confirm": ke,
|
|
708
|
+
visible: z.value,
|
|
709
|
+
onCancel: ae,
|
|
710
|
+
onProceed: ae
|
|
765
711
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
766
|
-
|
|
767
|
-
"action-pending":
|
|
768
|
-
description: o(
|
|
769
|
-
"entity-name":
|
|
770
|
-
"entity-type": o(
|
|
771
|
-
error:
|
|
772
|
-
title: o(
|
|
773
|
-
visible:
|
|
774
|
-
onCancel:
|
|
775
|
-
onProceed:
|
|
712
|
+
d(o(et), {
|
|
713
|
+
"action-pending": j.value,
|
|
714
|
+
description: o(r)("actions.delete.description"),
|
|
715
|
+
"entity-name": B.value && (B.value.name || B.value.id),
|
|
716
|
+
"entity-type": o(tt).GatewayService,
|
|
717
|
+
error: X.value,
|
|
718
|
+
title: o(r)("actions.delete.title"),
|
|
719
|
+
visible: K.value,
|
|
720
|
+
onCancel: v,
|
|
721
|
+
onProceed: M
|
|
776
722
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
777
723
|
]);
|
|
778
724
|
};
|
|
779
725
|
}
|
|
780
|
-
}),
|
|
781
|
-
const
|
|
782
|
-
for (const [
|
|
783
|
-
|
|
784
|
-
return
|
|
785
|
-
},
|
|
726
|
+
}), Be = (n, D) => {
|
|
727
|
+
const p = n.__vccOpts || n;
|
|
728
|
+
for (const [c, r] of D)
|
|
729
|
+
p[c] = r;
|
|
730
|
+
return p;
|
|
731
|
+
}, zt = /* @__PURE__ */ Be(Vt, [["__scopeId", "data-v-ee4f8a6d"]]), St = { class: "kong-ui-entities-gateway-service-form" }, It = { key: 0 }, Tt = { class: "gateway-service-form-traffic-label" }, Et = { class: "gateway-service-form-margin-bottom" }, Pt = {
|
|
786
732
|
key: 0,
|
|
787
733
|
class: "gateway-service-form-group-fields"
|
|
788
|
-
},
|
|
734
|
+
}, Ut = {
|
|
789
735
|
key: 1,
|
|
790
736
|
class: "gateway-service-form-group-fields"
|
|
791
|
-
},
|
|
737
|
+
}, Rt = { key: 0 }, Mt = { class: "gateway-service-form-margin-top" }, $t = { class: "gateway-service-form-margin-bottom" }, xt = { class: "gateway-service-form-margin-bottom" }, At = { class: "gateway-service-form-margin-bottom" }, Ft = { class: "gateway-service-form-margin-bottom" }, Bt = {
|
|
792
738
|
key: 0,
|
|
793
739
|
class: "gateway-service-form-margin-bottom"
|
|
794
|
-
},
|
|
740
|
+
}, Lt = {
|
|
795
741
|
key: 1,
|
|
796
742
|
class: "gateway-service-form-margin-bottom"
|
|
797
|
-
},
|
|
743
|
+
}, Dt = {
|
|
798
744
|
key: 2,
|
|
799
745
|
class: "gateway-service-form-margin-bottom"
|
|
800
|
-
},
|
|
746
|
+
}, Gt = {
|
|
801
747
|
key: 0,
|
|
802
748
|
class: "checkbox-aligned-radio"
|
|
803
|
-
},
|
|
749
|
+
}, Kt = {
|
|
804
750
|
key: 1,
|
|
805
751
|
class: "checkbox-aligned-radio"
|
|
806
|
-
},
|
|
807
|
-
__name: "
|
|
752
|
+
}, qt = /* @__PURE__ */ Te({
|
|
753
|
+
__name: "GatewayServiceForm",
|
|
808
754
|
props: {
|
|
809
755
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
810
756
|
config: {
|
|
@@ -826,9 +772,9 @@ const ge = {
|
|
|
826
772
|
}
|
|
827
773
|
},
|
|
828
774
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
829
|
-
setup(n, { expose:
|
|
830
|
-
var
|
|
831
|
-
const
|
|
775
|
+
setup(n, { expose: D, emit: p }) {
|
|
776
|
+
var X;
|
|
777
|
+
const c = p, r = n, x = E(!0), N = xe(), { i18nT: q, i18n: { t: a } } = ve.useI18n(), { getMessageFromError: P } = ot(), { axiosInstance: C } = Ae((X = r.config) == null ? void 0 : X.axiosRequestConfig), ge = lt(), ye = b(() => se.form[r.config.app].edit), O = b(() => r.gatewayServiceId ? Me.Edit : Me.Create), _e = E(!1), H = b(() => !!r.gatewayServiceId), _ = E(H.value ? "protocol" : "url"), Y = ve.usePortFromProtocol(), G = E(""), be = b(() => !!G.value), e = Ue({
|
|
832
778
|
fields: {
|
|
833
779
|
name: "",
|
|
834
780
|
protocol: "http",
|
|
@@ -848,7 +794,7 @@ const ge = {
|
|
|
848
794
|
},
|
|
849
795
|
isReadonly: !1,
|
|
850
796
|
errorMessage: ""
|
|
851
|
-
}),
|
|
797
|
+
}), w = Ue({
|
|
852
798
|
name: "",
|
|
853
799
|
protocol: "http",
|
|
854
800
|
host: "",
|
|
@@ -864,543 +810,543 @@ const ge = {
|
|
|
864
810
|
tls_verify_enabled: !1,
|
|
865
811
|
tls_verify_value: !1,
|
|
866
812
|
tags: ""
|
|
867
|
-
}),
|
|
868
|
-
gatewayInfo:
|
|
813
|
+
}), ee = r.config.app === "konnect" || it({
|
|
814
|
+
gatewayInfo: r.config.gatewayInfo,
|
|
869
815
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
870
816
|
supportedRange: {
|
|
871
817
|
enterprise: ["3.0"]
|
|
872
818
|
}
|
|
873
|
-
}),
|
|
819
|
+
}), he = [
|
|
874
820
|
{
|
|
875
|
-
label:
|
|
821
|
+
label: a("gateway_services.form.fields.protocol.options.http"),
|
|
876
822
|
value: "http",
|
|
877
823
|
group: "http"
|
|
878
824
|
},
|
|
879
825
|
{
|
|
880
|
-
label:
|
|
826
|
+
label: a("gateway_services.form.fields.protocol.options.https"),
|
|
881
827
|
value: "https",
|
|
882
828
|
group: "http"
|
|
883
829
|
},
|
|
884
830
|
{
|
|
885
|
-
label:
|
|
831
|
+
label: a("gateway_services.form.fields.protocol.options.tcp"),
|
|
886
832
|
value: "tcp",
|
|
887
833
|
group: "tcp"
|
|
888
834
|
},
|
|
889
835
|
{
|
|
890
|
-
label:
|
|
836
|
+
label: a("gateway_services.form.fields.protocol.options.tls"),
|
|
891
837
|
value: "tls",
|
|
892
838
|
group: "tcp"
|
|
893
839
|
},
|
|
894
840
|
{
|
|
895
|
-
label:
|
|
841
|
+
label: a("gateway_services.form.fields.protocol.options.tls_passthrough"),
|
|
896
842
|
value: "tls_passthrough",
|
|
897
843
|
group: "tcp"
|
|
898
844
|
},
|
|
899
845
|
{
|
|
900
|
-
label:
|
|
846
|
+
label: a("gateway_services.form.fields.protocol.options.grpc"),
|
|
901
847
|
value: "grpc",
|
|
902
848
|
group: "grpc"
|
|
903
849
|
},
|
|
904
850
|
{
|
|
905
|
-
label:
|
|
851
|
+
label: a("gateway_services.form.fields.protocol.options.grpcs"),
|
|
906
852
|
value: "grpcs",
|
|
907
853
|
group: "grpc"
|
|
908
854
|
},
|
|
909
|
-
...
|
|
855
|
+
...ee ? [
|
|
910
856
|
{
|
|
911
|
-
label:
|
|
857
|
+
label: a("gateway_services.form.fields.protocol.options.ws"),
|
|
912
858
|
value: "ws",
|
|
913
859
|
group: "websocket"
|
|
914
860
|
},
|
|
915
861
|
{
|
|
916
|
-
label:
|
|
862
|
+
label: a("gateway_services.form.fields.protocol.options.wss"),
|
|
917
863
|
value: "wss",
|
|
918
864
|
group: "websocket"
|
|
919
865
|
}
|
|
920
866
|
] : [],
|
|
921
867
|
{
|
|
922
|
-
label:
|
|
868
|
+
label: a("gateway_services.form.fields.protocol.options.udp"),
|
|
923
869
|
value: "udp",
|
|
924
870
|
group: "udp"
|
|
925
871
|
}
|
|
926
|
-
],
|
|
927
|
-
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
if (
|
|
872
|
+
], re = { url: "url", protocol: "protocol" }, J = (t, i) => {
|
|
873
|
+
i.value;
|
|
874
|
+
}, W = (t) => t ? parseFloat(t) : 0, z = () => {
|
|
875
|
+
x.value = !0, e.errorMessage = "", e.fields.host = w.host, e.fields.path = w.path, e.fields.port = w.port, e.fields.protocol = w.protocol, e.fields.url = w.url, e.fields.retries = w.retries, e.fields.connect_timeout = w.connect_timeout, e.fields.write_timeout = w.write_timeout, e.fields.read_timeout = w.read_timeout, e.fields.client_certificate = w.client_certificate, e.fields.ca_certificates = w.ca_certificates, e.fields.tls_verify_enabled = w.tls_verify_enabled, e.fields.tls_verify_value = w.tls_verify_value;
|
|
876
|
+
}, T = () => {
|
|
877
|
+
if (e.fields.url && _.value === "url")
|
|
932
878
|
try {
|
|
933
|
-
const
|
|
934
|
-
|
|
935
|
-
const
|
|
936
|
-
|
|
937
|
-
} catch (
|
|
938
|
-
|
|
879
|
+
const t = new URL(e.fields.url);
|
|
880
|
+
e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
|
|
881
|
+
const i = Number(t.port);
|
|
882
|
+
_e.value = !!i, e.fields.port = i || Y.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", c("url-valid:success");
|
|
883
|
+
} catch (t) {
|
|
884
|
+
e.errorMessage = a("errors.urlErrorMessage"), c("url-valid:error", P(t));
|
|
939
885
|
}
|
|
940
886
|
else
|
|
941
|
-
|
|
942
|
-
},
|
|
943
|
-
if (
|
|
887
|
+
c("url-valid:success"), e.errorMessage = "";
|
|
888
|
+
}, Q = b(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), we = b(() => {
|
|
889
|
+
if (_.value === "url")
|
|
944
890
|
return !0;
|
|
945
|
-
const
|
|
946
|
-
return
|
|
947
|
-
}),
|
|
948
|
-
if (
|
|
891
|
+
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
892
|
+
return _.value === "protocol" && t;
|
|
893
|
+
}), ae = b(() => {
|
|
894
|
+
if (_.value === "url")
|
|
949
895
|
return !0;
|
|
950
|
-
const
|
|
951
|
-
return
|
|
952
|
-
}),
|
|
953
|
-
if (
|
|
896
|
+
const t = ["https", "tls"].includes(e.fields.protocol);
|
|
897
|
+
return _.value === "protocol" && t;
|
|
898
|
+
}), ke = b(() => {
|
|
899
|
+
if (_.value === "url")
|
|
954
900
|
return !0;
|
|
955
|
-
const
|
|
956
|
-
return
|
|
957
|
-
}), Ce = (
|
|
958
|
-
|
|
959
|
-
},
|
|
960
|
-
var
|
|
961
|
-
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
},
|
|
965
|
-
var
|
|
966
|
-
let
|
|
967
|
-
return
|
|
968
|
-
}),
|
|
969
|
-
var
|
|
970
|
-
let
|
|
971
|
-
return
|
|
972
|
-
}),
|
|
973
|
-
let
|
|
974
|
-
|
|
975
|
-
},
|
|
976
|
-
var
|
|
977
|
-
const
|
|
978
|
-
name:
|
|
979
|
-
tags:
|
|
980
|
-
protocol:
|
|
981
|
-
path:
|
|
982
|
-
read_timeout:
|
|
983
|
-
retries:
|
|
984
|
-
host:
|
|
985
|
-
connect_timeout:
|
|
986
|
-
tls_verify_value:
|
|
987
|
-
tls_verify_enabled:
|
|
988
|
-
ca_certificates:
|
|
989
|
-
client_certificate:
|
|
990
|
-
write_timeout:
|
|
991
|
-
port:
|
|
992
|
-
url:
|
|
901
|
+
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
902
|
+
return _.value === "protocol" && t;
|
|
903
|
+
}), Ce = (t) => {
|
|
904
|
+
G.value = ge.utf8Name(t);
|
|
905
|
+
}, te = b(() => H.value && JSON.stringify(e.fields) !== JSON.stringify(w) || _.value === "url" && !!e.fields.url || _.value === "protocol" && !!e.fields.host), ne = (t) => {
|
|
906
|
+
var i, v, M;
|
|
907
|
+
e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((v = t == null ? void 0 : t.ca_certificates) == null ? void 0 : v.join(",")) || "", e.fields.client_certificate = ((M = t == null ? void 0 : t.client_certificate) == null ? void 0 : M.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(w, e.fields);
|
|
908
|
+
}, ce = () => {
|
|
909
|
+
N.push(r.config.cancelRoute);
|
|
910
|
+
}, Ve = b(() => {
|
|
911
|
+
var i, v;
|
|
912
|
+
let t = `${r.config.apiBaseUrl}${se.form[r.config.app].validate}`;
|
|
913
|
+
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
914
|
+
}), oe = b(() => {
|
|
915
|
+
var i, v;
|
|
916
|
+
let t = `${r.config.apiBaseUrl}${se.form[r.config.app][O.value]}`;
|
|
917
|
+
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
918
|
+
}), B = (t) => {
|
|
919
|
+
let i = "";
|
|
920
|
+
t.url && (i = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(i)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
|
|
921
|
+
}, K = b(() => {
|
|
922
|
+
var i, v, M, V;
|
|
923
|
+
const t = {
|
|
924
|
+
name: e.fields.name || null,
|
|
925
|
+
tags: e.fields.tags ? (M = (v = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : v.map((h) => String(h || "").trim())) == null ? void 0 : M.filter((h) => h !== "") : null,
|
|
926
|
+
protocol: e.fields.protocol,
|
|
927
|
+
path: e.fields.path || null,
|
|
928
|
+
read_timeout: e.fields.read_timeout,
|
|
929
|
+
retries: e.fields.retries,
|
|
930
|
+
host: e.fields.host,
|
|
931
|
+
connect_timeout: e.fields.connect_timeout,
|
|
932
|
+
tls_verify_value: e.fields.tls_verify_value,
|
|
933
|
+
tls_verify_enabled: e.fields.tls_verify_enabled,
|
|
934
|
+
ca_certificates: e.fields.ca_certificates ? (V = e.fields.ca_certificates) == null ? void 0 : V.split(",").filter((h) => h !== "") : null,
|
|
935
|
+
client_certificate: e.fields.client_certificate ? { id: e.fields.client_certificate } : null,
|
|
936
|
+
write_timeout: e.fields.write_timeout,
|
|
937
|
+
port: e.fields.port,
|
|
938
|
+
url: e.fields.url
|
|
993
939
|
};
|
|
994
|
-
return
|
|
995
|
-
}),
|
|
996
|
-
var
|
|
940
|
+
return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), Q.value || (t.path = null), O.value === "create" ? _.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : O.value === "edit" && delete t.url, t;
|
|
941
|
+
}), j = async () => {
|
|
942
|
+
var t, i, v, M;
|
|
997
943
|
try {
|
|
998
|
-
|
|
999
|
-
const
|
|
1000
|
-
|
|
1001
|
-
let
|
|
1002
|
-
if (await
|
|
1003
|
-
const { data:
|
|
1004
|
-
|
|
944
|
+
e.isReadonly = !0, T();
|
|
945
|
+
const V = K.value;
|
|
946
|
+
B(V);
|
|
947
|
+
let h;
|
|
948
|
+
if (await C.post(Ve.value, V), O.value === "create" ? h = await C.post(oe.value, V) : O.value === "edit" && (h = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await C.put(oe.value, V) : await C.patch(oe.value, V)), h) {
|
|
949
|
+
const { data: l } = h;
|
|
950
|
+
e.fields.name = (l == null ? void 0 : l.name) || "", e.fields.port = l.port || Y.getPortFromProtocol(l.protocol), e.fields.protocol = (l == null ? void 0 : l.protocol) || "http", e.fields.host = (l == null ? void 0 : l.host) || "", e.fields.path = (l == null ? void 0 : l.path) || "", e.fields.url = (l == null ? void 0 : l.url) || "", e.fields.retries = l != null && l.retries || (l == null ? void 0 : l.retries) === 0 ? l == null ? void 0 : l.retries : 5, e.fields.connect_timeout = l != null && l.connect_timeout || (l == null ? void 0 : l.connect_timeout) === 0 ? l == null ? void 0 : l.connect_timeout : 6e4, e.fields.write_timeout = l != null && l.write_timeout || (l == null ? void 0 : l.write_timeout) === 0 ? l == null ? void 0 : l.write_timeout : 6e4, e.fields.read_timeout = l != null && l.read_timeout || (l == null ? void 0 : l.read_timeout) === 0 ? l == null ? void 0 : l.read_timeout : 6e4, e.fields.client_certificate = ((i = l == null ? void 0 : l.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (v = l == null ? void 0 : l.ca_certificates) != null && v.length ? l == null ? void 0 : l.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (l == null ? void 0 : l.tls_verify) !== "" && (l == null ? void 0 : l.tls_verify) !== null && (l == null ? void 0 : l.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (l == null ? void 0 : l.tls_verify), e.fields.tags = (M = l == null ? void 0 : l.tags) != null && M.length ? l.tags.join(", ") : "", Object.assign(w, e.fields), c("update", h == null ? void 0 : h.data);
|
|
1005
951
|
}
|
|
1006
|
-
return
|
|
1007
|
-
} catch (
|
|
1008
|
-
|
|
952
|
+
return h;
|
|
953
|
+
} catch (V) {
|
|
954
|
+
e.errorMessage = P(V), c("error", V);
|
|
1009
955
|
} finally {
|
|
1010
|
-
|
|
956
|
+
e.isReadonly = !1;
|
|
1011
957
|
}
|
|
1012
958
|
};
|
|
1013
|
-
return
|
|
1014
|
-
Object.assign(
|
|
1015
|
-
}),
|
|
1016
|
-
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
1019
|
-
}),
|
|
1020
|
-
validateUrl:
|
|
1021
|
-
getPayload:
|
|
1022
|
-
saveFormData:
|
|
1023
|
-
canSubmit:
|
|
1024
|
-
initForm:
|
|
1025
|
-
}), (
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1028
|
-
|
|
1029
|
-
"can-submit":
|
|
959
|
+
return Ie(() => r.gatewayServiceId, () => {
|
|
960
|
+
Object.assign(e.fields, w);
|
|
961
|
+
}), Ie(e.fields, (t) => {
|
|
962
|
+
e.fields.port = Y.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", K.value);
|
|
963
|
+
}), De(() => {
|
|
964
|
+
c("model-updated", K.value);
|
|
965
|
+
}), D({
|
|
966
|
+
validateUrl: T,
|
|
967
|
+
getPayload: K,
|
|
968
|
+
saveFormData: j,
|
|
969
|
+
canSubmit: te,
|
|
970
|
+
initForm: ne
|
|
971
|
+
}), (t, i) => {
|
|
972
|
+
const v = F("KInput"), M = F("KLabel"), V = F("KRadio"), h = F("KSelect"), l = F("KCheckbox"), u = F("KCollapse");
|
|
973
|
+
return S(), U("div", St, [
|
|
974
|
+
d(o(st), {
|
|
975
|
+
"can-submit": te.value,
|
|
1030
976
|
config: n.config,
|
|
1031
977
|
"edit-id": n.gatewayServiceId,
|
|
1032
|
-
"entity-type": o(
|
|
1033
|
-
"error-message":
|
|
1034
|
-
"fetch-url":
|
|
1035
|
-
"form-fields":
|
|
1036
|
-
"is-readonly":
|
|
1037
|
-
onCancel:
|
|
1038
|
-
"onFetch:error":
|
|
1039
|
-
"onFetch:success":
|
|
1040
|
-
onLoading:
|
|
1041
|
-
onSubmit:
|
|
978
|
+
"entity-type": o(Fe).GatewayService,
|
|
979
|
+
"error-message": e.errorMessage,
|
|
980
|
+
"fetch-url": ye.value,
|
|
981
|
+
"form-fields": K.value,
|
|
982
|
+
"is-readonly": e.isReadonly,
|
|
983
|
+
onCancel: ce,
|
|
984
|
+
"onFetch:error": i[25] || (i[25] = (s) => t.$emit("error", s)),
|
|
985
|
+
"onFetch:success": ne,
|
|
986
|
+
onLoading: i[26] || (i[26] = (s) => t.$emit("loading", s)),
|
|
987
|
+
onSubmit: j
|
|
1042
988
|
}, {
|
|
1043
|
-
"form-actions":
|
|
1044
|
-
|
|
1045
|
-
canSubmit:
|
|
1046
|
-
cancel:
|
|
1047
|
-
submit:
|
|
989
|
+
"form-actions": f(() => [
|
|
990
|
+
Ge(t.$slots, "form-actions", {
|
|
991
|
+
canSubmit: te.value,
|
|
992
|
+
cancel: ce,
|
|
993
|
+
submit: j
|
|
1048
994
|
}, void 0, !0)
|
|
1049
995
|
]),
|
|
1050
|
-
default:
|
|
1051
|
-
|
|
1052
|
-
description: o(
|
|
996
|
+
default: f(() => [
|
|
997
|
+
d(o($e), {
|
|
998
|
+
description: o(a)("gateway_services.form.sections.general.description"),
|
|
1053
999
|
"hide-info-header": n.hideSectionsInfo,
|
|
1054
|
-
title: o(
|
|
1000
|
+
title: o(a)("gateway_services.form.sections.general.title")
|
|
1055
1001
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
|
|
1058
|
-
modelValue:
|
|
1059
|
-
"onUpdate:modelValue":
|
|
1002
|
+
default: f(() => [
|
|
1003
|
+
d(v, {
|
|
1004
|
+
modelValue: e.fields.name,
|
|
1005
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => e.fields.name = s),
|
|
1060
1006
|
modelModifiers: { trim: !0 },
|
|
1061
1007
|
autocomplete: "off",
|
|
1062
1008
|
"data-testid": "gateway-service-name-input",
|
|
1063
|
-
error:
|
|
1064
|
-
"error-message":
|
|
1065
|
-
label: o(
|
|
1009
|
+
error: be.value,
|
|
1010
|
+
"error-message": G.value,
|
|
1011
|
+
label: o(a)("gateway_services.form.fields.name.label"),
|
|
1066
1012
|
"label-attributes": {
|
|
1067
|
-
info: o(
|
|
1013
|
+
info: o(a)("gateway_services.form.fields.name.tooltip"),
|
|
1068
1014
|
tooltipAttributes: { maxWidth: "400" }
|
|
1069
1015
|
},
|
|
1070
1016
|
name: "name",
|
|
1071
|
-
placeholder: o(
|
|
1072
|
-
readonly:
|
|
1017
|
+
placeholder: o(a)("gateway_services.form.fields.name.placeholder"),
|
|
1018
|
+
readonly: e.isReadonly,
|
|
1073
1019
|
type: "text",
|
|
1074
1020
|
onInput: Ce
|
|
1075
1021
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1076
|
-
|
|
1077
|
-
modelValue:
|
|
1078
|
-
"onUpdate:modelValue":
|
|
1022
|
+
d(v, {
|
|
1023
|
+
modelValue: e.fields.tags,
|
|
1024
|
+
"onUpdate:modelValue": i[1] || (i[1] = (s) => e.fields.tags = s),
|
|
1079
1025
|
modelModifiers: { trim: !0 },
|
|
1080
1026
|
autocomplete: "off",
|
|
1081
1027
|
"data-testid": "gateway-service-tags-input",
|
|
1082
|
-
help: o(
|
|
1083
|
-
label: o(
|
|
1028
|
+
help: o(a)("gateway_services.form.fields.tags.help"),
|
|
1029
|
+
label: o(a)("gateway_services.form.fields.tags.label"),
|
|
1084
1030
|
"label-attributes": {
|
|
1085
|
-
info: o(
|
|
1031
|
+
info: o(a)("gateway_services.form.fields.tags.tooltip"),
|
|
1086
1032
|
tooltipAttributes: { maxWidth: "400" }
|
|
1087
1033
|
},
|
|
1088
1034
|
name: "tags",
|
|
1089
|
-
placeholder: o(
|
|
1090
|
-
readonly:
|
|
1035
|
+
placeholder: o(a)("gateway_services.form.fields.tags.placeholder"),
|
|
1036
|
+
readonly: e.isReadonly,
|
|
1091
1037
|
type: "text"
|
|
1092
1038
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
1093
1039
|
]),
|
|
1094
1040
|
_: 1
|
|
1095
1041
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
1096
|
-
|
|
1097
|
-
description: o(
|
|
1042
|
+
d(o($e), {
|
|
1043
|
+
description: o(a)("gateway_services.form.sections.keys.description"),
|
|
1098
1044
|
"hide-info-header": n.hideSectionsInfo,
|
|
1099
|
-
title: o(
|
|
1045
|
+
title: o(a)("gateway_services.form.sections.keys.title")
|
|
1100
1046
|
}, {
|
|
1101
|
-
default:
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
default:
|
|
1106
|
-
|
|
1047
|
+
default: f(() => [
|
|
1048
|
+
H.value ? L("", !0) : (S(), U("div", It, [
|
|
1049
|
+
k("div", Tt, [
|
|
1050
|
+
d(M, { required: "" }, {
|
|
1051
|
+
default: f(() => [
|
|
1052
|
+
R(y(o(a)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
1107
1053
|
]),
|
|
1108
1054
|
_: 1
|
|
1109
1055
|
})
|
|
1110
1056
|
]),
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
modelValue:
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1057
|
+
k("div", Et, [
|
|
1058
|
+
d(V, {
|
|
1059
|
+
modelValue: _.value,
|
|
1060
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => _.value = s),
|
|
1115
1061
|
"data-testid": "gateway-service-url-radio",
|
|
1116
|
-
"selected-value":
|
|
1117
|
-
onChange:
|
|
1062
|
+
"selected-value": re.url,
|
|
1063
|
+
onChange: z
|
|
1118
1064
|
}, {
|
|
1119
|
-
default:
|
|
1120
|
-
|
|
1065
|
+
default: f(() => [
|
|
1066
|
+
R(y(o(a)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
1121
1067
|
]),
|
|
1122
1068
|
_: 1
|
|
1123
1069
|
}, 8, ["modelValue", "selected-value"])
|
|
1124
1070
|
]),
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
modelValue:
|
|
1128
|
-
"onUpdate:modelValue":
|
|
1071
|
+
_.value === "url" ? (S(), U("div", Pt, [
|
|
1072
|
+
d(v, {
|
|
1073
|
+
modelValue: e.fields.url,
|
|
1074
|
+
"onUpdate:modelValue": i[3] || (i[3] = (s) => e.fields.url = s),
|
|
1129
1075
|
modelModifiers: { trim: !0 },
|
|
1130
1076
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
1131
1077
|
"data-testid": "gateway-service-url-input",
|
|
1132
|
-
label: o(
|
|
1078
|
+
label: o(a)("gateway_services.form.fields.upstream_url.label"),
|
|
1133
1079
|
"label-attributes": {
|
|
1134
|
-
info: n.config.app === "konnect" ? o(
|
|
1080
|
+
info: n.config.app === "konnect" ? o(a)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(a)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
1135
1081
|
tooltipAttributes: { maxWidth: "400" }
|
|
1136
1082
|
},
|
|
1137
1083
|
name: "url",
|
|
1138
|
-
placeholder: o(
|
|
1084
|
+
placeholder: o(a)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
1139
1085
|
required: ""
|
|
1140
1086
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1141
|
-
])) :
|
|
1142
|
-
|
|
1143
|
-
modelValue:
|
|
1144
|
-
"onUpdate:modelValue":
|
|
1087
|
+
])) : L("", !0),
|
|
1088
|
+
d(V, {
|
|
1089
|
+
modelValue: _.value,
|
|
1090
|
+
"onUpdate:modelValue": i[4] || (i[4] = (s) => _.value = s),
|
|
1145
1091
|
"checked-group": "protocol",
|
|
1146
1092
|
"data-testid": "gateway-service-protocol-radio",
|
|
1147
|
-
"selected-value":
|
|
1148
|
-
onChange:
|
|
1093
|
+
"selected-value": re.protocol,
|
|
1094
|
+
onChange: z
|
|
1149
1095
|
}, {
|
|
1150
|
-
default:
|
|
1151
|
-
|
|
1096
|
+
default: f(() => [
|
|
1097
|
+
R(y(o(a)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
1152
1098
|
]),
|
|
1153
1099
|
_: 1
|
|
1154
1100
|
}, 8, ["modelValue", "selected-value"])
|
|
1155
1101
|
])),
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
modelValue:
|
|
1159
|
-
"onUpdate:modelValue":
|
|
1102
|
+
_.value === "protocol" || H.value ? (S(), U("div", Ut, [
|
|
1103
|
+
d(h, {
|
|
1104
|
+
modelValue: e.fields.protocol,
|
|
1105
|
+
"onUpdate:modelValue": i[5] || (i[5] = (s) => e.fields.protocol = s),
|
|
1160
1106
|
"data-testid": "gateway-service-protocol-select",
|
|
1161
|
-
items:
|
|
1162
|
-
label: o(
|
|
1107
|
+
items: he,
|
|
1108
|
+
label: o(a)("gateway_services.form.fields.protocol.label"),
|
|
1163
1109
|
"label-attributes": {
|
|
1164
|
-
info: o(
|
|
1110
|
+
info: o(a)("gateway_services.form.fields.protocol.tooltip"),
|
|
1165
1111
|
tooltipAttributes: { maxWidth: "400" }
|
|
1166
1112
|
},
|
|
1167
|
-
readonly:
|
|
1113
|
+
readonly: e.isReadonly,
|
|
1168
1114
|
required: "",
|
|
1169
1115
|
width: "100%",
|
|
1170
|
-
onSelected:
|
|
1116
|
+
onSelected: i[6] || (i[6] = (s) => J(e.fields.protocol, s))
|
|
1171
1117
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1172
|
-
|
|
1173
|
-
modelValue:
|
|
1174
|
-
"onUpdate:modelValue":
|
|
1118
|
+
d(v, {
|
|
1119
|
+
modelValue: e.fields.host,
|
|
1120
|
+
"onUpdate:modelValue": i[7] || (i[7] = (s) => e.fields.host = s),
|
|
1175
1121
|
modelModifiers: { trim: !0 },
|
|
1176
1122
|
class: "gateway-service-form-margin-top",
|
|
1177
1123
|
"data-testid": "gateway-service-host-input",
|
|
1178
|
-
label: o(
|
|
1124
|
+
label: o(a)("gateway_services.form.fields.host.label"),
|
|
1179
1125
|
"label-attributes": {
|
|
1180
|
-
info: o(
|
|
1126
|
+
info: o(a)("gateway_services.form.fields.host.tooltip"),
|
|
1181
1127
|
tooltipAttributes: { maxWidth: "400" }
|
|
1182
1128
|
},
|
|
1183
1129
|
name: "host",
|
|
1184
|
-
placeholder: o(
|
|
1130
|
+
placeholder: o(a)("gateway_services.form.fields.host.placeholder"),
|
|
1185
1131
|
required: ""
|
|
1186
1132
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
modelValue:
|
|
1190
|
-
"onUpdate:modelValue":
|
|
1133
|
+
Q.value ? (S(), U("div", Rt, [
|
|
1134
|
+
d(v, {
|
|
1135
|
+
modelValue: e.fields.path,
|
|
1136
|
+
"onUpdate:modelValue": i[8] || (i[8] = (s) => e.fields.path = s),
|
|
1191
1137
|
modelModifiers: { trim: !0 },
|
|
1192
1138
|
class: "gateway-service-form-margin-top",
|
|
1193
1139
|
"data-testid": "gateway-service-path-input",
|
|
1194
|
-
label: o(
|
|
1140
|
+
label: o(a)("gateway_services.form.fields.path.label"),
|
|
1195
1141
|
"label-attributes": {
|
|
1196
|
-
info: o(
|
|
1142
|
+
info: o(a)("gateway_services.form.fields.path.tooltip"),
|
|
1197
1143
|
tooltipAttributes: { maxWidth: "400" }
|
|
1198
1144
|
},
|
|
1199
1145
|
name: "path",
|
|
1200
|
-
placeholder: o(
|
|
1146
|
+
placeholder: o(a)("gateway_services.form.fields.path.placeholder")
|
|
1201
1147
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1202
|
-
])) :
|
|
1203
|
-
|
|
1204
|
-
modelValue:
|
|
1148
|
+
])) : L("", !0),
|
|
1149
|
+
d(v, {
|
|
1150
|
+
modelValue: e.fields.port,
|
|
1205
1151
|
"onUpdate:modelValue": [
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1152
|
+
i[9] || (i[9] = (s) => e.fields.port = s),
|
|
1153
|
+
i[10] || (i[10] = () => {
|
|
1154
|
+
e.fields.port = W(e.fields.port + "");
|
|
1209
1155
|
})
|
|
1210
1156
|
],
|
|
1211
1157
|
class: "gateway-service-form-margin-top",
|
|
1212
1158
|
"data-testid": "gateway-service-port-input",
|
|
1213
|
-
label: o(
|
|
1159
|
+
label: o(a)("gateway_services.form.fields.port.label"),
|
|
1214
1160
|
"label-attributes": {
|
|
1215
|
-
info: o(
|
|
1161
|
+
info: o(a)("gateway_services.form.fields.port.tooltip"),
|
|
1216
1162
|
tooltipAttributes: { maxWidth: "400" }
|
|
1217
1163
|
},
|
|
1218
1164
|
name: "port",
|
|
1219
1165
|
type: "number"
|
|
1220
1166
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1221
|
-
])) :
|
|
1222
|
-
u
|
|
1223
|
-
modelValue:
|
|
1224
|
-
"onUpdate:modelValue":
|
|
1167
|
+
])) : L("", !0),
|
|
1168
|
+
d(u, {
|
|
1169
|
+
modelValue: x.value,
|
|
1170
|
+
"onUpdate:modelValue": i[24] || (i[24] = (s) => x.value = s),
|
|
1225
1171
|
"data-testid": "advanced-fields-collapse",
|
|
1226
1172
|
"trigger-alignment": "leading",
|
|
1227
|
-
"trigger-label": o(
|
|
1173
|
+
"trigger-label": o(a)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
1228
1174
|
}, {
|
|
1229
|
-
default:
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
modelValue:
|
|
1175
|
+
default: f(() => [
|
|
1176
|
+
k("div", Mt, [
|
|
1177
|
+
k("div", $t, [
|
|
1178
|
+
d(v, {
|
|
1179
|
+
modelValue: e.fields.retries,
|
|
1234
1180
|
"onUpdate:modelValue": [
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1181
|
+
i[11] || (i[11] = (s) => e.fields.retries = s),
|
|
1182
|
+
i[12] || (i[12] = () => {
|
|
1183
|
+
e.fields.retries = W(e.fields.retries + "");
|
|
1238
1184
|
})
|
|
1239
1185
|
],
|
|
1240
1186
|
autocomplete: "off",
|
|
1241
1187
|
"data-testid": "gateway-service-retries-input",
|
|
1242
|
-
label: o(
|
|
1188
|
+
label: o(a)("gateway_services.form.fields.retries.label"),
|
|
1243
1189
|
"label-attributes": {
|
|
1244
|
-
info: o(
|
|
1190
|
+
info: o(a)("gateway_services.form.fields.retries.tooltip"),
|
|
1245
1191
|
tooltipAttributes: { maxWidth: "400" }
|
|
1246
1192
|
},
|
|
1247
1193
|
name: "retries",
|
|
1248
|
-
readonly:
|
|
1194
|
+
readonly: e.isReadonly,
|
|
1249
1195
|
type: "number"
|
|
1250
1196
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1251
1197
|
]),
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
modelValue:
|
|
1198
|
+
k("div", xt, [
|
|
1199
|
+
d(v, {
|
|
1200
|
+
modelValue: e.fields.connect_timeout,
|
|
1255
1201
|
"onUpdate:modelValue": [
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1202
|
+
i[13] || (i[13] = (s) => e.fields.connect_timeout = s),
|
|
1203
|
+
i[14] || (i[14] = () => {
|
|
1204
|
+
e.fields.connect_timeout = W(e.fields.connect_timeout + "");
|
|
1259
1205
|
})
|
|
1260
1206
|
],
|
|
1261
1207
|
autocomplete: "off",
|
|
1262
1208
|
"data-testid": "gateway-service-connTimeout-input",
|
|
1263
|
-
label: o(
|
|
1209
|
+
label: o(a)("gateway_services.form.fields.connect_timeout.label"),
|
|
1264
1210
|
"label-attributes": {
|
|
1265
|
-
info: o(
|
|
1211
|
+
info: o(a)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
1266
1212
|
tooltipAttributes: { maxWidth: "400" }
|
|
1267
1213
|
},
|
|
1268
1214
|
name: "connTimeout",
|
|
1269
|
-
readonly:
|
|
1215
|
+
readonly: e.isReadonly,
|
|
1270
1216
|
type: "number"
|
|
1271
1217
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1272
1218
|
]),
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
modelValue:
|
|
1219
|
+
k("div", At, [
|
|
1220
|
+
d(v, {
|
|
1221
|
+
modelValue: e.fields.write_timeout,
|
|
1276
1222
|
"onUpdate:modelValue": [
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1223
|
+
i[15] || (i[15] = (s) => e.fields.write_timeout = s),
|
|
1224
|
+
i[16] || (i[16] = () => {
|
|
1225
|
+
e.fields.write_timeout = W(e.fields.write_timeout + "");
|
|
1280
1226
|
})
|
|
1281
1227
|
],
|
|
1282
1228
|
autocomplete: "off",
|
|
1283
1229
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
1284
|
-
label: o(
|
|
1230
|
+
label: o(a)("gateway_services.form.fields.write_timeout.label"),
|
|
1285
1231
|
"label-attributes": {
|
|
1286
|
-
info: o(
|
|
1232
|
+
info: o(a)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
1287
1233
|
tooltipAttributes: { maxWidth: "400" }
|
|
1288
1234
|
},
|
|
1289
1235
|
name: "writeTimeout",
|
|
1290
|
-
readonly:
|
|
1236
|
+
readonly: e.isReadonly,
|
|
1291
1237
|
type: "number"
|
|
1292
1238
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1293
1239
|
]),
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
modelValue:
|
|
1240
|
+
k("div", Ft, [
|
|
1241
|
+
d(v, {
|
|
1242
|
+
modelValue: e.fields.read_timeout,
|
|
1297
1243
|
"onUpdate:modelValue": [
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1244
|
+
i[17] || (i[17] = (s) => e.fields.read_timeout = s),
|
|
1245
|
+
i[18] || (i[18] = () => {
|
|
1246
|
+
e.fields.read_timeout = W(e.fields.read_timeout + "");
|
|
1301
1247
|
})
|
|
1302
1248
|
],
|
|
1303
1249
|
autocomplete: "off",
|
|
1304
1250
|
"data-testid": "gateway-service-readTimeout-input",
|
|
1305
|
-
label: o(
|
|
1251
|
+
label: o(a)("gateway_services.form.fields.read_timeout.label"),
|
|
1306
1252
|
"label-attributes": {
|
|
1307
|
-
info: o(
|
|
1253
|
+
info: o(a)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
1308
1254
|
tooltipAttributes: { maxWidth: "400" }
|
|
1309
1255
|
},
|
|
1310
1256
|
name: "readTimeout",
|
|
1311
|
-
readonly:
|
|
1257
|
+
readonly: e.isReadonly,
|
|
1312
1258
|
type: "number"
|
|
1313
1259
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1314
1260
|
]),
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
modelValue:
|
|
1318
|
-
"onUpdate:modelValue":
|
|
1261
|
+
we.value ? (S(), U("div", Bt, [
|
|
1262
|
+
d(v, {
|
|
1263
|
+
modelValue: e.fields.client_certificate,
|
|
1264
|
+
"onUpdate:modelValue": i[19] || (i[19] = (s) => e.fields.client_certificate = s),
|
|
1319
1265
|
modelModifiers: { trim: !0 },
|
|
1320
1266
|
autocomplete: "off",
|
|
1321
1267
|
"data-testid": "gateway-service-clientCert-input",
|
|
1322
|
-
label: o(
|
|
1268
|
+
label: o(a)("gateway_services.form.fields.client_certificate.label"),
|
|
1323
1269
|
"label-attributes": {
|
|
1324
|
-
info: o(
|
|
1270
|
+
info: o(a)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
1325
1271
|
tooltipAttributes: { maxWidth: "400" }
|
|
1326
1272
|
},
|
|
1327
1273
|
name: "clientCert",
|
|
1328
|
-
placeholder: o(
|
|
1329
|
-
readonly:
|
|
1274
|
+
placeholder: o(a)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
1275
|
+
readonly: e.isReadonly,
|
|
1330
1276
|
type: "text"
|
|
1331
1277
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
1332
|
-
])) :
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
modelValue:
|
|
1336
|
-
"onUpdate:modelValue":
|
|
1278
|
+
])) : L("", !0),
|
|
1279
|
+
ae.value ? (S(), U("div", Lt, [
|
|
1280
|
+
d(v, {
|
|
1281
|
+
modelValue: e.fields.ca_certificates,
|
|
1282
|
+
"onUpdate:modelValue": i[20] || (i[20] = (s) => e.fields.ca_certificates = s),
|
|
1337
1283
|
modelModifiers: { trim: !0 },
|
|
1338
1284
|
autocomplete: "off",
|
|
1339
1285
|
"data-testid": "gateway-service-ca-certs-input",
|
|
1340
|
-
label: o(
|
|
1286
|
+
label: o(a)("gateway_services.form.fields.ca_certificates.label"),
|
|
1341
1287
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
1342
|
-
placeholder: o(
|
|
1343
|
-
readonly:
|
|
1288
|
+
placeholder: o(a)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
1289
|
+
readonly: e.isReadonly,
|
|
1344
1290
|
type: "text"
|
|
1345
1291
|
}, {
|
|
1346
|
-
"label-tooltip":
|
|
1347
|
-
|
|
1292
|
+
"label-tooltip": f(() => [
|
|
1293
|
+
d(o(q), {
|
|
1348
1294
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1349
1295
|
scope: "global"
|
|
1350
1296
|
}, {
|
|
1351
|
-
code1:
|
|
1352
|
-
|
|
1297
|
+
code1: f(() => [
|
|
1298
|
+
k("code", null, y(o(a)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1353
1299
|
]),
|
|
1354
|
-
code2:
|
|
1355
|
-
|
|
1300
|
+
code2: f(() => [
|
|
1301
|
+
k("code", null, y(o(a)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1356
1302
|
]),
|
|
1357
1303
|
_: 1
|
|
1358
1304
|
})
|
|
1359
1305
|
]),
|
|
1360
1306
|
_: 1
|
|
1361
1307
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1362
|
-
])) :
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
modelValue:
|
|
1366
|
-
"onUpdate:modelValue":
|
|
1308
|
+
])) : L("", !0),
|
|
1309
|
+
ke.value ? (S(), U("div", Dt, [
|
|
1310
|
+
d(l, {
|
|
1311
|
+
modelValue: e.fields.tls_verify_enabled,
|
|
1312
|
+
"onUpdate:modelValue": i[21] || (i[21] = (s) => e.fields.tls_verify_enabled = s),
|
|
1367
1313
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
1368
|
-
description: o(
|
|
1369
|
-
label: o(
|
|
1314
|
+
description: o(a)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
1315
|
+
label: o(a)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
1370
1316
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
1371
1317
|
}, {
|
|
1372
|
-
tooltip:
|
|
1373
|
-
|
|
1318
|
+
tooltip: f(() => [
|
|
1319
|
+
d(o(q), {
|
|
1374
1320
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1375
1321
|
scope: "global"
|
|
1376
1322
|
}, {
|
|
1377
|
-
code1:
|
|
1378
|
-
|
|
1323
|
+
code1: f(() => [
|
|
1324
|
+
k("code", null, y(o(a)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1379
1325
|
]),
|
|
1380
1326
|
_: 1
|
|
1381
1327
|
})
|
|
1382
1328
|
]),
|
|
1383
1329
|
_: 1
|
|
1384
1330
|
}, 8, ["modelValue", "description", "label"]),
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
modelValue:
|
|
1388
|
-
"onUpdate:modelValue":
|
|
1331
|
+
e.fields.tls_verify_enabled ? (S(), U("div", Gt, [
|
|
1332
|
+
d(V, {
|
|
1333
|
+
modelValue: e.fields.tls_verify_value,
|
|
1334
|
+
"onUpdate:modelValue": i[22] || (i[22] = (s) => e.fields.tls_verify_value = s),
|
|
1389
1335
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
1390
|
-
label: o(
|
|
1336
|
+
label: o(a)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1391
1337
|
"selected-value": !0
|
|
1392
1338
|
}, null, 8, ["modelValue", "label"])
|
|
1393
|
-
])) :
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
modelValue:
|
|
1397
|
-
"onUpdate:modelValue":
|
|
1339
|
+
])) : L("", !0),
|
|
1340
|
+
e.fields.tls_verify_enabled ? (S(), U("div", Kt, [
|
|
1341
|
+
d(V, {
|
|
1342
|
+
modelValue: e.fields.tls_verify_value,
|
|
1343
|
+
"onUpdate:modelValue": i[23] || (i[23] = (s) => e.fields.tls_verify_value = s),
|
|
1398
1344
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
1399
|
-
label: o(
|
|
1345
|
+
label: o(a)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1400
1346
|
"selected-value": !1
|
|
1401
1347
|
}, null, 8, ["modelValue", "label"])
|
|
1402
|
-
])) :
|
|
1403
|
-
])) :
|
|
1348
|
+
])) : L("", !0)
|
|
1349
|
+
])) : L("", !0)
|
|
1404
1350
|
])
|
|
1405
1351
|
]),
|
|
1406
1352
|
_: 1
|
|
@@ -1414,7 +1360,7 @@ const ge = {
|
|
|
1414
1360
|
]);
|
|
1415
1361
|
};
|
|
1416
1362
|
}
|
|
1417
|
-
}),
|
|
1363
|
+
}), Qt = /* @__PURE__ */ Be(qt, [["__scopeId", "data-v-35e0db56"]]), Ot = { class: "kong-ui-gateway-service-entity-config-card" }, Xt = /* @__PURE__ */ Te({
|
|
1418
1364
|
__name: "GatewayServiceConfigCard",
|
|
1419
1365
|
props: {
|
|
1420
1366
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1441,980 +1387,130 @@ const ge = {
|
|
|
1441
1387
|
},
|
|
1442
1388
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1443
1389
|
setup(n) {
|
|
1444
|
-
const
|
|
1390
|
+
const D = n, { i18n: { t: p }, i18nT: c } = ve.useI18n(), r = b(() => se.form[D.config.app].edit), { getPropValue: x } = rt(), N = (a, P) => x(a, P) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), q = E({
|
|
1445
1391
|
id: {},
|
|
1446
1392
|
name: {
|
|
1447
|
-
tooltip:
|
|
1393
|
+
tooltip: p("gateway_services.form.fields.name.tooltip")
|
|
1448
1394
|
},
|
|
1449
1395
|
enabled: {},
|
|
1450
1396
|
updated_at: {},
|
|
1451
1397
|
created_at: {},
|
|
1452
1398
|
protocol: {
|
|
1453
|
-
section:
|
|
1454
|
-
tooltip:
|
|
1399
|
+
section: fe.Basic,
|
|
1400
|
+
tooltip: p("gateway_services.form.fields.protocol.tooltip")
|
|
1455
1401
|
},
|
|
1456
1402
|
host: {
|
|
1457
|
-
section:
|
|
1458
|
-
tooltip:
|
|
1403
|
+
section: fe.Basic,
|
|
1404
|
+
tooltip: p("gateway_services.form.fields.host.tooltip")
|
|
1459
1405
|
},
|
|
1460
1406
|
path: {
|
|
1461
|
-
section:
|
|
1462
|
-
tooltip:
|
|
1407
|
+
section: fe.Basic,
|
|
1408
|
+
tooltip: p("gateway_services.form.fields.path.tooltip")
|
|
1463
1409
|
},
|
|
1464
1410
|
port: {
|
|
1465
|
-
section:
|
|
1466
|
-
tooltip:
|
|
1411
|
+
section: fe.Basic,
|
|
1412
|
+
tooltip: p("gateway_services.form.fields.port.tooltip")
|
|
1467
1413
|
},
|
|
1468
1414
|
tags: {
|
|
1469
|
-
tooltip:
|
|
1415
|
+
tooltip: p("gateway_services.form.fields.tags.tooltip")
|
|
1470
1416
|
},
|
|
1471
1417
|
// advanced fields
|
|
1472
1418
|
retries: {
|
|
1473
1419
|
order: 1,
|
|
1474
|
-
tooltip:
|
|
1420
|
+
tooltip: p("gateway_services.form.fields.retries.tooltip")
|
|
1475
1421
|
},
|
|
1476
1422
|
connect_timeout: {
|
|
1477
1423
|
order: 2,
|
|
1478
|
-
tooltip:
|
|
1424
|
+
tooltip: p("gateway_services.form.fields.connect_timeout.tooltip")
|
|
1479
1425
|
},
|
|
1480
1426
|
write_timeout: {
|
|
1481
1427
|
order: 3,
|
|
1482
|
-
tooltip:
|
|
1428
|
+
tooltip: p("gateway_services.form.fields.write_timeout.tooltip")
|
|
1483
1429
|
},
|
|
1484
1430
|
read_timeout: {
|
|
1485
1431
|
order: 4,
|
|
1486
|
-
tooltip:
|
|
1432
|
+
tooltip: p("gateway_services.form.fields.read_timeout.tooltip")
|
|
1487
1433
|
},
|
|
1488
1434
|
client_certificate: {
|
|
1489
1435
|
order: 5,
|
|
1490
|
-
tooltip:
|
|
1436
|
+
tooltip: p("gateway_services.form.fields.client_certificate.tooltip")
|
|
1491
1437
|
},
|
|
1492
1438
|
ca_certificates: {
|
|
1493
|
-
type:
|
|
1494
|
-
label:
|
|
1439
|
+
type: at.BadgeTag,
|
|
1440
|
+
label: p("gateway_services.form.fields.ca_certificates.label"),
|
|
1495
1441
|
order: 6
|
|
1496
1442
|
},
|
|
1497
1443
|
tls_verify: {
|
|
1498
|
-
label:
|
|
1444
|
+
label: p("gateway_services.form.fields.tls_verify_enabled.label")
|
|
1499
1445
|
},
|
|
1500
1446
|
tls_verify_depth: {
|
|
1501
1447
|
hidden: !0
|
|
1502
1448
|
}
|
|
1503
1449
|
});
|
|
1504
|
-
return (
|
|
1505
|
-
|
|
1450
|
+
return (a, P) => (S(), U("div", Ot, [
|
|
1451
|
+
d(o(nt), {
|
|
1506
1452
|
config: n.config,
|
|
1507
1453
|
"config-card-doc": n.configCardDoc,
|
|
1508
|
-
"config-schema":
|
|
1509
|
-
"entity-type": o(
|
|
1510
|
-
"fetch-url":
|
|
1454
|
+
"config-schema": q.value,
|
|
1455
|
+
"entity-type": o(Fe).GatewayService,
|
|
1456
|
+
"fetch-url": r.value,
|
|
1511
1457
|
"hide-title": n.hideTitle,
|
|
1512
|
-
"onFetch:error":
|
|
1513
|
-
"onFetch:success":
|
|
1514
|
-
onLoading:
|
|
1458
|
+
"onFetch:error": P[0] || (P[0] = (C) => a.$emit("fetch:error", C)),
|
|
1459
|
+
"onFetch:success": P[1] || (P[1] = (C) => a.$emit("fetch:success", C)),
|
|
1460
|
+
onLoading: P[2] || (P[2] = (C) => a.$emit("loading", C))
|
|
1515
1461
|
}, {
|
|
1516
|
-
"enabled-label-tooltip":
|
|
1517
|
-
|
|
1462
|
+
"enabled-label-tooltip": f(() => [
|
|
1463
|
+
d(o(c), {
|
|
1518
1464
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
1519
1465
|
scope: "global"
|
|
1520
1466
|
}, {
|
|
1521
|
-
false:
|
|
1522
|
-
|
|
1467
|
+
false: f(() => [
|
|
1468
|
+
k("code", null, y(o(p)("gateway_services.form.fields.enabled.false")), 1)
|
|
1523
1469
|
]),
|
|
1524
|
-
true:
|
|
1525
|
-
|
|
1470
|
+
true: f(() => [
|
|
1471
|
+
k("code", null, y(o(p)("gateway_services.form.fields.enabled.true")), 1)
|
|
1526
1472
|
]),
|
|
1527
1473
|
_: 1
|
|
1528
1474
|
})
|
|
1529
1475
|
]),
|
|
1530
|
-
"ca_certificates-label-tooltip":
|
|
1531
|
-
|
|
1476
|
+
"ca_certificates-label-tooltip": f(() => [
|
|
1477
|
+
d(o(c), {
|
|
1532
1478
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1533
1479
|
scope: "global"
|
|
1534
1480
|
}, {
|
|
1535
|
-
code1:
|
|
1536
|
-
|
|
1481
|
+
code1: f(() => [
|
|
1482
|
+
k("code", null, y(o(p)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1537
1483
|
]),
|
|
1538
|
-
code2:
|
|
1539
|
-
|
|
1484
|
+
code2: f(() => [
|
|
1485
|
+
k("code", null, y(o(p)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1540
1486
|
]),
|
|
1541
1487
|
_: 1
|
|
1542
1488
|
})
|
|
1543
1489
|
]),
|
|
1544
|
-
"tls_verify-label-tooltip":
|
|
1545
|
-
|
|
1490
|
+
"tls_verify-label-tooltip": f(() => [
|
|
1491
|
+
d(o(c), {
|
|
1546
1492
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1547
1493
|
scope: "global"
|
|
1548
1494
|
}, {
|
|
1549
|
-
code1:
|
|
1550
|
-
|
|
1495
|
+
code1: f(() => [
|
|
1496
|
+
k("code", null, y(o(p)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1551
1497
|
]),
|
|
1552
1498
|
_: 1
|
|
1553
1499
|
})
|
|
1554
1500
|
]),
|
|
1555
|
-
tls_verify:
|
|
1556
|
-
|
|
1501
|
+
tls_verify: f((C) => [
|
|
1502
|
+
R(y(typeof o(x)("rowValue", C) == "boolean" ? N("rowValue", C) : o(p)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
1557
1503
|
]),
|
|
1558
|
-
client_certificate:
|
|
1559
|
-
|
|
1504
|
+
client_certificate: f((C) => [
|
|
1505
|
+
R(y(o(x)("rowValue", C) ? o(x)("rowValue", C).id : "–"), 1)
|
|
1560
1506
|
]),
|
|
1561
1507
|
_: 1
|
|
1562
1508
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
1563
1509
|
]));
|
|
1564
1510
|
}
|
|
1565
1511
|
});
|
|
1566
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1567
|
-
const Je = () => {
|
|
1568
|
-
};
|
|
1569
|
-
function rl(n, B) {
|
|
1570
|
-
function y(...p) {
|
|
1571
|
-
return new Promise((a, b) => {
|
|
1572
|
-
Promise.resolve(n(() => B.apply(this, p), { fn: B, thisArg: this, args: p })).then(a).catch(b);
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
return y;
|
|
1576
|
-
}
|
|
1577
|
-
function sl(n, B = {}) {
|
|
1578
|
-
let y, p, a = Je;
|
|
1579
|
-
const b = (r) => {
|
|
1580
|
-
clearTimeout(r), a(), a = Je;
|
|
1581
|
-
};
|
|
1582
|
-
let T;
|
|
1583
|
-
return (r) => {
|
|
1584
|
-
const L = ze(n), I = ze(B.maxWait);
|
|
1585
|
-
return y && b(y), L <= 0 || I !== void 0 && I <= 0 ? (p && (b(p), p = null), Promise.resolve(r())) : new Promise((ie, de) => {
|
|
1586
|
-
a = B.rejectOnCancel ? de : ie, T = r, I && !p && (p = setTimeout(() => {
|
|
1587
|
-
y && b(y), p = null, ie(T());
|
|
1588
|
-
}, I)), y = setTimeout(() => {
|
|
1589
|
-
p && b(p), p = null, ie(r());
|
|
1590
|
-
}, L);
|
|
1591
|
-
});
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
function De(n, B = 200, y = {}) {
|
|
1595
|
-
return rl(
|
|
1596
|
-
sl(B, y),
|
|
1597
|
-
n
|
|
1598
|
-
);
|
|
1599
|
-
}
|
|
1600
|
-
const te = {
|
|
1601
|
-
name: "Kong-Air-Flights-API",
|
|
1602
|
-
tags: [],
|
|
1603
|
-
protocol: "https",
|
|
1604
|
-
path: "/flights",
|
|
1605
|
-
read_timeout: 6e4,
|
|
1606
|
-
retries: 5,
|
|
1607
|
-
host: "api.kong-air.com",
|
|
1608
|
-
connect_timeout: 6e4,
|
|
1609
|
-
ca_certificates: null,
|
|
1610
|
-
client_certificate: null,
|
|
1611
|
-
write_timeout: 6e4,
|
|
1612
|
-
port: 443
|
|
1613
|
-
}, al = { class: "kong-ui-entities-gateway-service-form" }, nl = {
|
|
1614
|
-
key: 0,
|
|
1615
|
-
class: "gateway-service-form-general-info"
|
|
1616
|
-
}, cl = { class: "gateway-service-form-group-selection-wrapper" }, ul = {
|
|
1617
|
-
key: 0,
|
|
1618
|
-
class: "gateway-service-form-group-fields"
|
|
1619
|
-
}, dl = {
|
|
1620
|
-
key: 0,
|
|
1621
|
-
class: "gateway-service-form-group-fields"
|
|
1622
|
-
}, fl = { key: 0 }, pl = {
|
|
1623
|
-
key: 0,
|
|
1624
|
-
class: "gateway-service-form-advanced-fields"
|
|
1625
|
-
}, ml = { class: "gateway-service-form-margin-bottom" }, vl = { class: "gateway-service-form-margin-bottom" }, gl = { class: "gateway-service-form-margin-bottom" }, yl = { class: "gateway-service-form-margin-bottom" }, _l = {
|
|
1626
|
-
key: 0,
|
|
1627
|
-
class: "gateway-service-form-margin-bottom"
|
|
1628
|
-
}, bl = {
|
|
1629
|
-
key: 1,
|
|
1630
|
-
class: "gateway-service-form-margin-bottom"
|
|
1631
|
-
}, hl = {
|
|
1632
|
-
key: 2,
|
|
1633
|
-
class: "gateway-service-form-margin-bottom"
|
|
1634
|
-
}, wl = {
|
|
1635
|
-
key: 0,
|
|
1636
|
-
class: "checkbox-aligned-radio"
|
|
1637
|
-
}, kl = {
|
|
1638
|
-
key: 1,
|
|
1639
|
-
class: "checkbox-aligned-radio"
|
|
1640
|
-
}, Vl = { class: "gateway-service-form-tags" }, Cl = { class: "form-error-list" }, Sl = /* @__PURE__ */ Ke({
|
|
1641
|
-
__name: "GatewayServiceForm",
|
|
1642
|
-
props: {
|
|
1643
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
1644
|
-
config: {
|
|
1645
|
-
type: Object,
|
|
1646
|
-
required: !0,
|
|
1647
|
-
validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.cancelRoute)
|
|
1648
|
-
},
|
|
1649
|
-
/** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
|
|
1650
|
-
gatewayServiceId: {
|
|
1651
|
-
type: String,
|
|
1652
|
-
required: !1,
|
|
1653
|
-
default: ""
|
|
1654
|
-
},
|
|
1655
|
-
/** Whether show or hide EntityFormSection info column */
|
|
1656
|
-
hideSectionsInfo: {
|
|
1657
|
-
type: Boolean,
|
|
1658
|
-
required: !1,
|
|
1659
|
-
default: !1
|
|
1660
|
-
},
|
|
1661
|
-
/** Whether show or hide Try sample API button */
|
|
1662
|
-
hideTrySampleApiButton: {
|
|
1663
|
-
type: Boolean,
|
|
1664
|
-
required: !1,
|
|
1665
|
-
default: !1
|
|
1666
|
-
},
|
|
1667
|
-
sampleApiList: {
|
|
1668
|
-
type: Array,
|
|
1669
|
-
required: !1,
|
|
1670
|
-
default: () => []
|
|
1671
|
-
}
|
|
1672
|
-
},
|
|
1673
|
-
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated", "try-sample-api"],
|
|
1674
|
-
setup(n, { expose: B, emit: y }) {
|
|
1675
|
-
var he;
|
|
1676
|
-
const p = y, a = n, b = W(!0), T = qe(), { i18nT: H, i18n: { t: r } } = ge.useI18n(), { getErrorFieldsFromError: L } = Xe(), { axiosInstance: I } = Oe((he = a.config) == null ? void 0 : he.axiosRequestConfig), ie = Ye(), { validateHost: de, validatePath: X, validatePort: ke, validateProtocol: fe } = ge.useUrlValidators(), x = h(() => ye.form[a.config.app].edit), Y = h(() => a.gatewayServiceId ? Me.Edit : Me.Create), ee = W(!1), re = h(() => !!a.gatewayServiceId), l = W(re.value ? "protocol" : "url"), A = ge.usePortFromProtocol(), se = W(""), Pe = h(() => !!se.value || !!ue("name")), t = Te({
|
|
1677
|
-
fields: {
|
|
1678
|
-
name: "",
|
|
1679
|
-
protocol: "http",
|
|
1680
|
-
host: "",
|
|
1681
|
-
path: "",
|
|
1682
|
-
port: 80,
|
|
1683
|
-
url: "",
|
|
1684
|
-
retries: 5,
|
|
1685
|
-
connect_timeout: 6e4,
|
|
1686
|
-
write_timeout: 6e4,
|
|
1687
|
-
read_timeout: 6e4,
|
|
1688
|
-
client_certificate: "",
|
|
1689
|
-
ca_certificates: "",
|
|
1690
|
-
tls_verify_enabled: !1,
|
|
1691
|
-
tls_verify_value: !1,
|
|
1692
|
-
tags: ""
|
|
1693
|
-
},
|
|
1694
|
-
isReadonly: !1,
|
|
1695
|
-
errorMessages: [],
|
|
1696
|
-
formFieldErrors: {
|
|
1697
|
-
host: "",
|
|
1698
|
-
port: "",
|
|
1699
|
-
path: "",
|
|
1700
|
-
name: "",
|
|
1701
|
-
url: "",
|
|
1702
|
-
tags: "",
|
|
1703
|
-
retries: "",
|
|
1704
|
-
connect_timeout: "",
|
|
1705
|
-
write_timeout: "",
|
|
1706
|
-
read_timeout: "",
|
|
1707
|
-
client_certificate: "",
|
|
1708
|
-
ca_certificates: "",
|
|
1709
|
-
tls_verify_enabled: "",
|
|
1710
|
-
tls_verify_value: ""
|
|
1711
|
-
}
|
|
1712
|
-
}), $ = Te({
|
|
1713
|
-
name: "",
|
|
1714
|
-
protocol: "http",
|
|
1715
|
-
host: "",
|
|
1716
|
-
path: "",
|
|
1717
|
-
port: 80,
|
|
1718
|
-
url: "",
|
|
1719
|
-
retries: 5,
|
|
1720
|
-
connect_timeout: 6e4,
|
|
1721
|
-
write_timeout: 6e4,
|
|
1722
|
-
read_timeout: 6e4,
|
|
1723
|
-
client_certificate: "",
|
|
1724
|
-
ca_certificates: "",
|
|
1725
|
-
tls_verify_enabled: !1,
|
|
1726
|
-
tls_verify_value: !1,
|
|
1727
|
-
tags: ""
|
|
1728
|
-
}), ae = a.config.app === "konnect" || et({
|
|
1729
|
-
gatewayInfo: a.config.gatewayInfo,
|
|
1730
|
-
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
1731
|
-
supportedRange: {
|
|
1732
|
-
enterprise: ["3.0"]
|
|
1733
|
-
}
|
|
1734
|
-
}), ne = [
|
|
1735
|
-
{
|
|
1736
|
-
label: r("gateway_services.form.fields.protocol.options.http"),
|
|
1737
|
-
value: "http",
|
|
1738
|
-
group: "http"
|
|
1739
|
-
},
|
|
1740
|
-
{
|
|
1741
|
-
label: r("gateway_services.form.fields.protocol.options.https"),
|
|
1742
|
-
value: "https",
|
|
1743
|
-
group: "http"
|
|
1744
|
-
},
|
|
1745
|
-
{
|
|
1746
|
-
label: r("gateway_services.form.fields.protocol.options.tcp"),
|
|
1747
|
-
value: "tcp",
|
|
1748
|
-
group: "tcp"
|
|
1749
|
-
},
|
|
1750
|
-
{
|
|
1751
|
-
label: r("gateway_services.form.fields.protocol.options.tls"),
|
|
1752
|
-
value: "tls",
|
|
1753
|
-
group: "tcp"
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
label: r("gateway_services.form.fields.protocol.options.tls_passthrough"),
|
|
1757
|
-
value: "tls_passthrough",
|
|
1758
|
-
group: "tcp"
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
label: r("gateway_services.form.fields.protocol.options.grpc"),
|
|
1762
|
-
value: "grpc",
|
|
1763
|
-
group: "grpc"
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
label: r("gateway_services.form.fields.protocol.options.grpcs"),
|
|
1767
|
-
value: "grpcs",
|
|
1768
|
-
group: "grpc"
|
|
1769
|
-
},
|
|
1770
|
-
...ae ? [
|
|
1771
|
-
{
|
|
1772
|
-
label: r("gateway_services.form.fields.protocol.options.ws"),
|
|
1773
|
-
value: "ws",
|
|
1774
|
-
group: "websocket"
|
|
1775
|
-
},
|
|
1776
|
-
{
|
|
1777
|
-
label: r("gateway_services.form.fields.protocol.options.wss"),
|
|
1778
|
-
value: "wss",
|
|
1779
|
-
group: "websocket"
|
|
1780
|
-
}
|
|
1781
|
-
] : [],
|
|
1782
|
-
{
|
|
1783
|
-
label: r("gateway_services.form.fields.protocol.options.udp"),
|
|
1784
|
-
value: "udp",
|
|
1785
|
-
group: "udp"
|
|
1786
|
-
}
|
|
1787
|
-
], q = { url: "url", protocol: "protocol" }, pe = (e, s) => {
|
|
1788
|
-
s.value;
|
|
1789
|
-
}, ce = (e) => e ? parseFloat(e) : 0, _e = () => {
|
|
1790
|
-
t.fields.host = $.host, t.fields.path = $.path, t.fields.port = $.port, t.fields.protocol = $.protocol, t.fields.url = $.url, t.fields.retries = $.retries, t.fields.connect_timeout = $.connect_timeout, t.fields.write_timeout = $.write_timeout, t.fields.read_timeout = $.read_timeout, t.fields.client_certificate = $.client_certificate, t.fields.ca_certificates = $.ca_certificates, t.fields.tls_verify_enabled = $.tls_verify_enabled, t.fields.tls_verify_value = $.tls_verify_value;
|
|
1791
|
-
}, Ve = () => {
|
|
1792
|
-
b.value = !0, N(), t.errorMessages = [], _e();
|
|
1793
|
-
}, Ce = () => {
|
|
1794
|
-
switch (_e(), t.fields.name = `${te.name} + ${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, l.value) {
|
|
1795
|
-
case "url":
|
|
1796
|
-
t.fields.url = `${te.protocol}://${te.host}${te.path}`;
|
|
1797
|
-
break;
|
|
1798
|
-
case "protocol":
|
|
1799
|
-
t.fields.host = te.host, t.fields.path = te.path, t.fields.protocol = te.protocol, t.fields.port = te.port;
|
|
1800
|
-
break;
|
|
1801
|
-
default:
|
|
1802
|
-
t.fields.url = `${te.protocol}://${te.host}${te.path}`;
|
|
1803
|
-
}
|
|
1804
|
-
}, me = De(() => {
|
|
1805
|
-
if (N(), t.fields.url.length)
|
|
1806
|
-
try {
|
|
1807
|
-
const e = new URL(t.fields.url), s = fe(e.protocol, ne);
|
|
1808
|
-
if (s) throw new Error(s);
|
|
1809
|
-
t.fields.protocol = e.protocol.slice(0, -1);
|
|
1810
|
-
const V = de(e.hostname);
|
|
1811
|
-
if (V) throw new Error(V);
|
|
1812
|
-
t.fields.host = e.hostname;
|
|
1813
|
-
const G = X(e.pathname);
|
|
1814
|
-
if (G) throw new Error(G);
|
|
1815
|
-
t.fields.path = e.pathname;
|
|
1816
|
-
const E = ke(e.port);
|
|
1817
|
-
if (E) throw new Error(E);
|
|
1818
|
-
const R = Number(e.port);
|
|
1819
|
-
ee.value = !!R, t.fields.port = R || A.getPortFromProtocol(t.fields.protocol), p("url-valid:success");
|
|
1820
|
-
} catch (e) {
|
|
1821
|
-
p("url-valid:error", e.message || r("gateway_services.form.errors.url.invalid")), t.formFieldErrors.url = e.message || r("gateway_services.form.errors.url.invalid");
|
|
1822
|
-
}
|
|
1823
|
-
}, 300), be = De((e) => {
|
|
1824
|
-
N(e);
|
|
1825
|
-
}, 300), Se = h(() => !!t.formFieldErrors.url || !!t.formFieldErrors.host || !!t.formFieldErrors.port), ue = (e) => {
|
|
1826
|
-
if (t.errorMessages.length) return "";
|
|
1827
|
-
const s = t.formFieldErrors;
|
|
1828
|
-
return s[e] ? s[e] : "";
|
|
1829
|
-
}, le = De((e) => {
|
|
1830
|
-
N(e ?? void 0);
|
|
1831
|
-
const s = de(t.fields.host);
|
|
1832
|
-
s && (t.formFieldErrors.host = s);
|
|
1833
|
-
const V = X(t.fields.path);
|
|
1834
|
-
V && (t.formFieldErrors.path = V);
|
|
1835
|
-
const G = ke(t.fields.port);
|
|
1836
|
-
G && (t.formFieldErrors.port = G), Z.value ? p("url-valid:success") : p("url-valid:error", t.errorMessages.join(",") || r("gateway_services.form.errors.url.invalid"));
|
|
1837
|
-
}, 300), N = (e) => {
|
|
1838
|
-
if (e)
|
|
1839
|
-
t.formFieldErrors[e] = "";
|
|
1840
|
-
else
|
|
1841
|
-
for (let s in t.formFieldErrors)
|
|
1842
|
-
t.formFieldErrors[s] = "";
|
|
1843
|
-
t.errorMessages = [];
|
|
1844
|
-
}, Z = h(() => {
|
|
1845
|
-
for (let e in t.formFieldErrors)
|
|
1846
|
-
if (t.formFieldErrors[e].length)
|
|
1847
|
-
return !1;
|
|
1848
|
-
return !0;
|
|
1849
|
-
}), oe = () => {
|
|
1850
|
-
t.fields.url && l.value === "url" ? me() : le();
|
|
1851
|
-
}, ve = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, i = h(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(t.fields.protocol)), f = h(() => {
|
|
1852
|
-
if (l.value === "url")
|
|
1853
|
-
return !0;
|
|
1854
|
-
const e = ["https", "wss", "tls"].includes(t.fields.protocol);
|
|
1855
|
-
return l.value === "protocol" && e;
|
|
1856
|
-
}), k = h(() => {
|
|
1857
|
-
if (l.value === "url")
|
|
1858
|
-
return !0;
|
|
1859
|
-
const e = ["https", "tls"].includes(t.fields.protocol);
|
|
1860
|
-
return l.value === "protocol" && e;
|
|
1861
|
-
}), J = h(() => {
|
|
1862
|
-
if (l.value === "url")
|
|
1863
|
-
return !0;
|
|
1864
|
-
const e = ["https", "wss", "tls"].includes(t.fields.protocol);
|
|
1865
|
-
return l.value === "protocol" && e;
|
|
1866
|
-
}), K = (e) => {
|
|
1867
|
-
se.value = ie.utf8Name(e);
|
|
1868
|
-
}, U = h(() => {
|
|
1869
|
-
if (re.value)
|
|
1870
|
-
return JSON.stringify(t.fields) !== JSON.stringify($);
|
|
1871
|
-
const e = l.value === "url" && !!t.fields.url && Z.value, s = l.value === "protocol" && !!t.fields.host && Z.value;
|
|
1872
|
-
return e || s;
|
|
1873
|
-
}), c = (e) => {
|
|
1874
|
-
var s, V, G;
|
|
1875
|
-
t.fields.name = (e == null ? void 0 : e.name) || "", t.fields.tags = ((s = e == null ? void 0 : e.tags) == null ? void 0 : s.join(", ")) || "", t.fields.protocol = (e == null ? void 0 : e.protocol) || "http", t.fields.path = (e == null ? void 0 : e.path) || "", t.fields.read_timeout = e != null && e.read_timeout || (e == null ? void 0 : e.read_timeout) === 0 ? e == null ? void 0 : e.read_timeout : 6e4, t.fields.retries = e != null && e.retries || (e == null ? void 0 : e.retries) === 0 ? e == null ? void 0 : e.retries : 5, t.fields.host = (e == null ? void 0 : e.host) || "", t.fields.connect_timeout = e != null && e.connect_timeout || (e == null ? void 0 : e.connect_timeout) === 0 ? e == null ? void 0 : e.connect_timeout : 6e4, t.fields.tls_verify_enabled = (e == null ? void 0 : e.tls_verify) !== "" && (e == null ? void 0 : e.tls_verify) !== null && (e == null ? void 0 : e.tls_verify) !== void 0, t.fields.tls_verify_value = e != null && e.tls_verify ? e == null ? void 0 : e.tls_verify : !1, t.fields.ca_certificates = ((V = e == null ? void 0 : e.ca_certificates) == null ? void 0 : V.join(",")) || "", t.fields.client_certificate = ((G = e == null ? void 0 : e.client_certificate) == null ? void 0 : G.id) || "", t.fields.write_timeout = e != null && e.write_timeout || (e == null ? void 0 : e.write_timeout) === 0 ? e == null ? void 0 : e.write_timeout : 6e4, t.fields.port = e != null && e.port || (e == null ? void 0 : e.port) === 0 ? e == null ? void 0 : e.port : 80, Object.assign($, t.fields);
|
|
1876
|
-
}, g = () => {
|
|
1877
|
-
T.push(a.config.cancelRoute);
|
|
1878
|
-
}, m = h(() => {
|
|
1879
|
-
var s, V;
|
|
1880
|
-
let e = `${a.config.apiBaseUrl}${ye.form[a.config.app].validate}`;
|
|
1881
|
-
return a.config.app === "konnect" ? e = e.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "") : a.config.app === "kongManager" && (e = e.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), e = e.replace(/{id}/gi, a.gatewayServiceId), e;
|
|
1882
|
-
}), w = h(() => {
|
|
1883
|
-
var s, V;
|
|
1884
|
-
let e = `${a.config.apiBaseUrl}${ye.form[a.config.app][Y.value]}`;
|
|
1885
|
-
return a.config.app === "konnect" ? e = e.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "") : a.config.app === "kongManager" && (e = e.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), e = e.replace(/{id}/gi, a.gatewayServiceId), e;
|
|
1886
|
-
}), O = (e) => {
|
|
1887
|
-
let s = "";
|
|
1888
|
-
e.url && (s = new URL(e.url).protocol), (["https", "wss", "tls"].includes(e.protocol) || ["https", "wss", "tls"].includes(s)) && (e.tls_verify = e.tls_verify_enabled ? e.tls_verify_value : null), delete e.tls_verify_enabled, delete e.tls_verify_value;
|
|
1889
|
-
}, Q = h(() => {
|
|
1890
|
-
var s, V, G, E;
|
|
1891
|
-
const e = {
|
|
1892
|
-
name: t.fields.name || null,
|
|
1893
|
-
tags: t.fields.tags ? (G = (V = (s = t.fields.tags) == null ? void 0 : s.split(",")) == null ? void 0 : V.map((R) => String(R || "").trim())) == null ? void 0 : G.filter((R) => R !== "") : null,
|
|
1894
|
-
protocol: t.fields.protocol,
|
|
1895
|
-
path: t.fields.path || null,
|
|
1896
|
-
read_timeout: t.fields.read_timeout,
|
|
1897
|
-
retries: t.fields.retries,
|
|
1898
|
-
host: t.fields.host,
|
|
1899
|
-
connect_timeout: t.fields.connect_timeout,
|
|
1900
|
-
tls_verify_value: t.fields.tls_verify_value,
|
|
1901
|
-
tls_verify_enabled: t.fields.tls_verify_enabled,
|
|
1902
|
-
ca_certificates: t.fields.ca_certificates ? (E = t.fields.ca_certificates) == null ? void 0 : E.split(",").filter((R) => R !== "") : null,
|
|
1903
|
-
client_certificate: t.fields.client_certificate ? { id: t.fields.client_certificate } : null,
|
|
1904
|
-
write_timeout: t.fields.write_timeout,
|
|
1905
|
-
port: t.fields.port,
|
|
1906
|
-
url: t.fields.url
|
|
1907
|
-
};
|
|
1908
|
-
return t.fields.client_certificate && ["https", "wss", "tls"].includes(t.fields.protocol) && (e.client_certificate = { id: t.fields.client_certificate }), t.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(t.fields.protocol) && (e.tls_verify = t.fields.tls_verify_value), i.value || (e.path = null), Y.value === "create" ? l.value === "url" ? (delete e.protocol, delete e.host, delete e.path, a.config.app === "konnect" && delete e.port) : delete e.url : Y.value === "edit" && delete e.url, e;
|
|
1909
|
-
}), j = async () => {
|
|
1910
|
-
var e, s, V, G;
|
|
1911
|
-
try {
|
|
1912
|
-
t.isReadonly = !0, oe();
|
|
1913
|
-
const E = Q.value;
|
|
1914
|
-
O(E);
|
|
1915
|
-
let R;
|
|
1916
|
-
if (await I.post(m.value, E), Y.value === "create" ? R = await I.post(w.value, E) : Y.value === "edit" && (R = ((e = a.config) == null ? void 0 : e.app) === "konnect" ? await I.put(w.value, E) : await I.patch(w.value, E)), R) {
|
|
1917
|
-
const { data: d } = R;
|
|
1918
|
-
t.fields.name = (d == null ? void 0 : d.name) || "", t.fields.port = d.port || A.getPortFromProtocol(d.protocol), t.fields.protocol = (d == null ? void 0 : d.protocol) || "http", t.fields.host = (d == null ? void 0 : d.host) || "", t.fields.path = (d == null ? void 0 : d.path) || "", t.fields.url = (d == null ? void 0 : d.url) || "", t.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, t.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, t.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, t.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, t.fields.client_certificate = ((s = d == null ? void 0 : d.client_certificate) == null ? void 0 : s.id) || "", t.fields.ca_certificates = (V = d == null ? void 0 : d.ca_certificates) != null && V.length ? d == null ? void 0 : d.ca_certificates.join(",") : "", t.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, t.fields.tls_verify_value = t.fields.tls_verify_enabled && (d == null ? void 0 : d.tls_verify), t.fields.tags = (G = d == null ? void 0 : d.tags) != null && G.length ? d.tags.join(", ") : "", Object.assign($, t.fields), p("update", R == null ? void 0 : R.data);
|
|
1919
|
-
}
|
|
1920
|
-
return R;
|
|
1921
|
-
} catch (E) {
|
|
1922
|
-
const { fields: R, messages: d } = L(E);
|
|
1923
|
-
t.errorMessages = d, R.length && R.forEach((we) => {
|
|
1924
|
-
const Ie = we.field;
|
|
1925
|
-
Ie === "client_certificate.id" ? t.formFieldErrors.client_certificate = we.message : Ie.startsWith("ca_certificates") ? t.formFieldErrors.ca_certificates = we.message : Object.keys(t.formFieldErrors).includes(Ie) && (t.formFieldErrors = {
|
|
1926
|
-
...t.formFieldErrors,
|
|
1927
|
-
[Ie]: we.message
|
|
1928
|
-
});
|
|
1929
|
-
}), p("error", E);
|
|
1930
|
-
} finally {
|
|
1931
|
-
t.isReadonly = !1;
|
|
1932
|
-
}
|
|
1933
|
-
};
|
|
1934
|
-
return $e(() => a.gatewayServiceId, () => {
|
|
1935
|
-
Object.assign(t.fields, $);
|
|
1936
|
-
}), $e(t.fields, (e) => {
|
|
1937
|
-
t.fields.port = A.getPortFromProtocol(e.protocol, String(e.port)), p("model-updated", Q.value);
|
|
1938
|
-
}), Ze(() => {
|
|
1939
|
-
p("model-updated", Q.value), re.value || (t.fields.name = ve());
|
|
1940
|
-
}), B({
|
|
1941
|
-
validateUrl: oe,
|
|
1942
|
-
getPayload: Q,
|
|
1943
|
-
saveFormData: j,
|
|
1944
|
-
canSubmit: U,
|
|
1945
|
-
initForm: c
|
|
1946
|
-
}), (e, s) => {
|
|
1947
|
-
const V = D("KRadio"), G = D("KButton"), E = D("KInput"), R = D("KSelect"), d = D("KCheckbox"), we = D("KCollapse"), Ie = D("KAlert");
|
|
1948
|
-
return C(), F("div", al, [
|
|
1949
|
-
u(o(tt), {
|
|
1950
|
-
"can-submit": U.value,
|
|
1951
|
-
config: n.config,
|
|
1952
|
-
"edit-id": n.gatewayServiceId,
|
|
1953
|
-
"entity-type": o(Ge).GatewayService,
|
|
1954
|
-
"fetch-url": x.value,
|
|
1955
|
-
"form-fields": Q.value,
|
|
1956
|
-
"is-readonly": t.isReadonly,
|
|
1957
|
-
onCancel: g,
|
|
1958
|
-
"onFetch:error": s[30] || (s[30] = (_) => e.$emit("error", _)),
|
|
1959
|
-
"onFetch:success": c,
|
|
1960
|
-
onLoading: s[31] || (s[31] = (_) => e.$emit("loading", _)),
|
|
1961
|
-
onSubmit: j
|
|
1962
|
-
}, {
|
|
1963
|
-
"form-actions": v(() => [
|
|
1964
|
-
Qe(e.$slots, "form-actions", {
|
|
1965
|
-
canSubmit: U.value,
|
|
1966
|
-
cancel: g,
|
|
1967
|
-
submit: j
|
|
1968
|
-
}, void 0, !0)
|
|
1969
|
-
]),
|
|
1970
|
-
default: v(() => [
|
|
1971
|
-
u(o(Be), {
|
|
1972
|
-
description: o(r)("gateway_services.form.sections.keys.description"),
|
|
1973
|
-
"hide-info-header": n.hideSectionsInfo,
|
|
1974
|
-
title: o(r)("gateway_services.form.sections.keys.title")
|
|
1975
|
-
}, {
|
|
1976
|
-
default: v(() => [
|
|
1977
|
-
re.value ? M("", !0) : (C(), F("div", nl, [
|
|
1978
|
-
S("div", cl, [
|
|
1979
|
-
u(V, {
|
|
1980
|
-
modelValue: l.value,
|
|
1981
|
-
"onUpdate:modelValue": s[0] || (s[0] = (_) => l.value = _),
|
|
1982
|
-
card: "",
|
|
1983
|
-
"card-orientation": "horizontal",
|
|
1984
|
-
"data-testid": "gateway-service-url-radio",
|
|
1985
|
-
description: o(r)("gateway_services.form.sections.keys.url.description"),
|
|
1986
|
-
label: o(r)("gateway_services.form.sections.keys.url.label"),
|
|
1987
|
-
"selected-value": q.url,
|
|
1988
|
-
onChange: Ve
|
|
1989
|
-
}, null, 8, ["modelValue", "description", "label", "selected-value"]),
|
|
1990
|
-
u(V, {
|
|
1991
|
-
modelValue: l.value,
|
|
1992
|
-
"onUpdate:modelValue": s[1] || (s[1] = (_) => l.value = _),
|
|
1993
|
-
card: "",
|
|
1994
|
-
"card-orientation": "horizontal",
|
|
1995
|
-
"checked-group": "protocol",
|
|
1996
|
-
"data-testid": "gateway-service-protocol-radio",
|
|
1997
|
-
description: o(r)("gateway_services.form.sections.keys.protocol.description"),
|
|
1998
|
-
label: o(r)("gateway_services.form.sections.keys.protocol.label"),
|
|
1999
|
-
"selected-value": q.protocol,
|
|
2000
|
-
onChange: Ve
|
|
2001
|
-
}, null, 8, ["modelValue", "description", "label", "selected-value"])
|
|
2002
|
-
]),
|
|
2003
|
-
u(We, { name: "slide-fade" }, {
|
|
2004
|
-
default: v(() => [
|
|
2005
|
-
l.value === "url" ? (C(), F("div", ul, [
|
|
2006
|
-
u(E, {
|
|
2007
|
-
modelValue: t.fields.url,
|
|
2008
|
-
"onUpdate:modelValue": s[2] || (s[2] = (_) => t.fields.url = _),
|
|
2009
|
-
modelModifiers: { trim: !0 },
|
|
2010
|
-
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
2011
|
-
"data-testid": "gateway-service-url-input",
|
|
2012
|
-
error: Se.value,
|
|
2013
|
-
"error-message": ue("url"),
|
|
2014
|
-
label: o(r)("gateway_services.form.fields.upstream_url.label"),
|
|
2015
|
-
"label-attributes": {
|
|
2016
|
-
info: n.config.app === "konnect" ? o(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
2017
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2018
|
-
},
|
|
2019
|
-
name: "url",
|
|
2020
|
-
placeholder: o(r)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
2021
|
-
required: "",
|
|
2022
|
-
onInput: o(me)
|
|
2023
|
-
}, Re({ _: 2 }, [
|
|
2024
|
-
n.hideTrySampleApiButton ? void 0 : {
|
|
2025
|
-
name: "after",
|
|
2026
|
-
fn: v(() => [
|
|
2027
|
-
u(G, {
|
|
2028
|
-
appearance: "tertiary",
|
|
2029
|
-
size: "small",
|
|
2030
|
-
onClick: Ce
|
|
2031
|
-
}, {
|
|
2032
|
-
default: v(() => [
|
|
2033
|
-
z(P(o(r)("gateway_services.form.buttons.try_sample")), 1)
|
|
2034
|
-
]),
|
|
2035
|
-
_: 1
|
|
2036
|
-
})
|
|
2037
|
-
]),
|
|
2038
|
-
key: "0"
|
|
2039
|
-
}
|
|
2040
|
-
]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "onInput"])
|
|
2041
|
-
])) : M("", !0)
|
|
2042
|
-
]),
|
|
2043
|
-
_: 1
|
|
2044
|
-
})
|
|
2045
|
-
])),
|
|
2046
|
-
u(We, { name: "slide-fade" }, {
|
|
2047
|
-
default: v(() => [
|
|
2048
|
-
l.value === "protocol" || re.value ? (C(), F("div", dl, [
|
|
2049
|
-
u(R, {
|
|
2050
|
-
modelValue: t.fields.protocol,
|
|
2051
|
-
"onUpdate:modelValue": s[3] || (s[3] = (_) => t.fields.protocol = _),
|
|
2052
|
-
"data-testid": "gateway-service-protocol-select",
|
|
2053
|
-
items: ne,
|
|
2054
|
-
label: o(r)("gateway_services.form.fields.protocol.label"),
|
|
2055
|
-
"label-attributes": {
|
|
2056
|
-
info: o(r)("gateway_services.form.fields.protocol.tooltip"),
|
|
2057
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2058
|
-
},
|
|
2059
|
-
readonly: t.isReadonly,
|
|
2060
|
-
required: "",
|
|
2061
|
-
width: "100%",
|
|
2062
|
-
onSelected: s[4] || (s[4] = (_) => pe(t.fields.protocol, _))
|
|
2063
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2064
|
-
u(E, {
|
|
2065
|
-
modelValue: t.fields.host,
|
|
2066
|
-
"onUpdate:modelValue": s[5] || (s[5] = (_) => t.fields.host = _),
|
|
2067
|
-
modelModifiers: { trim: !0 },
|
|
2068
|
-
class: "gateway-service-form-margin-top",
|
|
2069
|
-
"data-testid": "gateway-service-host-input",
|
|
2070
|
-
error: !!t.formFieldErrors.host,
|
|
2071
|
-
"error-message": ue("host"),
|
|
2072
|
-
label: o(r)("gateway_services.form.fields.host.label"),
|
|
2073
|
-
"label-attributes": {
|
|
2074
|
-
info: o(r)("gateway_services.form.fields.host.tooltip"),
|
|
2075
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2076
|
-
},
|
|
2077
|
-
name: "host",
|
|
2078
|
-
placeholder: o(r)("gateway_services.form.fields.host.placeholder"),
|
|
2079
|
-
required: "",
|
|
2080
|
-
onInput: s[6] || (s[6] = (_) => o(le)("host"))
|
|
2081
|
-
}, Re({ _: 2 }, [
|
|
2082
|
-
n.hideTrySampleApiButton ? void 0 : {
|
|
2083
|
-
name: "after",
|
|
2084
|
-
fn: v(() => [
|
|
2085
|
-
u(G, {
|
|
2086
|
-
appearance: "tertiary",
|
|
2087
|
-
size: "small",
|
|
2088
|
-
onClick: Ce
|
|
2089
|
-
}, {
|
|
2090
|
-
default: v(() => [
|
|
2091
|
-
z(P(o(r)("gateway_services.form.buttons.try_sample")), 1)
|
|
2092
|
-
]),
|
|
2093
|
-
_: 1
|
|
2094
|
-
})
|
|
2095
|
-
]),
|
|
2096
|
-
key: "0"
|
|
2097
|
-
}
|
|
2098
|
-
]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"]),
|
|
2099
|
-
i.value ? (C(), F("div", fl, [
|
|
2100
|
-
u(E, {
|
|
2101
|
-
modelValue: t.fields.path,
|
|
2102
|
-
"onUpdate:modelValue": s[7] || (s[7] = (_) => t.fields.path = _),
|
|
2103
|
-
modelModifiers: { trim: !0 },
|
|
2104
|
-
class: "gateway-service-form-margin-top",
|
|
2105
|
-
"data-testid": "gateway-service-path-input",
|
|
2106
|
-
error: !!t.formFieldErrors.path,
|
|
2107
|
-
"error-message": ue("path"),
|
|
2108
|
-
label: o(r)("gateway_services.form.fields.path.label"),
|
|
2109
|
-
"label-attributes": {
|
|
2110
|
-
info: o(r)("gateway_services.form.fields.path.tooltip"),
|
|
2111
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2112
|
-
},
|
|
2113
|
-
name: "path",
|
|
2114
|
-
placeholder: o(r)("gateway_services.form.fields.path.placeholder"),
|
|
2115
|
-
onInput: s[8] || (s[8] = (_) => o(le)("path"))
|
|
2116
|
-
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
|
|
2117
|
-
])) : M("", !0),
|
|
2118
|
-
u(E, {
|
|
2119
|
-
modelValue: t.fields.port,
|
|
2120
|
-
"onUpdate:modelValue": [
|
|
2121
|
-
s[9] || (s[9] = (_) => t.fields.port = _),
|
|
2122
|
-
s[11] || (s[11] = () => {
|
|
2123
|
-
t.fields.port = ce(t.fields.port + "");
|
|
2124
|
-
})
|
|
2125
|
-
],
|
|
2126
|
-
class: "gateway-service-form-margin-top",
|
|
2127
|
-
"data-testid": "gateway-service-port-input",
|
|
2128
|
-
error: !!t.formFieldErrors.port,
|
|
2129
|
-
"error-message": ue("port"),
|
|
2130
|
-
label: o(r)("gateway_services.form.fields.port.label"),
|
|
2131
|
-
"label-attributes": {
|
|
2132
|
-
info: o(r)("gateway_services.form.fields.port.tooltip"),
|
|
2133
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2134
|
-
},
|
|
2135
|
-
name: "port",
|
|
2136
|
-
type: "number",
|
|
2137
|
-
onInput: s[10] || (s[10] = (_) => o(le)("port"))
|
|
2138
|
-
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes"])
|
|
2139
|
-
])) : M("", !0)
|
|
2140
|
-
]),
|
|
2141
|
-
_: 1
|
|
2142
|
-
}),
|
|
2143
|
-
u(we, {
|
|
2144
|
-
modelValue: b.value,
|
|
2145
|
-
"onUpdate:modelValue": s[27] || (s[27] = (_) => b.value = _),
|
|
2146
|
-
"data-testid": "advanced-fields-collapse",
|
|
2147
|
-
"trigger-alignment": "leading",
|
|
2148
|
-
"trigger-label": o(r)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
2149
|
-
}, {
|
|
2150
|
-
default: v(() => [
|
|
2151
|
-
u(We, { name: "slide-fade" }, {
|
|
2152
|
-
default: v(() => [
|
|
2153
|
-
b.value ? M("", !0) : (C(), F("div", pl, [
|
|
2154
|
-
S("div", ml, [
|
|
2155
|
-
u(E, {
|
|
2156
|
-
modelValue: t.fields.retries,
|
|
2157
|
-
"onUpdate:modelValue": [
|
|
2158
|
-
s[12] || (s[12] = (_) => t.fields.retries = _),
|
|
2159
|
-
s[13] || (s[13] = () => {
|
|
2160
|
-
t.fields.retries = ce(t.fields.retries + "");
|
|
2161
|
-
})
|
|
2162
|
-
],
|
|
2163
|
-
autocomplete: "off",
|
|
2164
|
-
"data-testid": "gateway-service-retries-input",
|
|
2165
|
-
label: o(r)("gateway_services.form.fields.retries.label"),
|
|
2166
|
-
"label-attributes": {
|
|
2167
|
-
info: o(r)("gateway_services.form.fields.retries.tooltip"),
|
|
2168
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2169
|
-
},
|
|
2170
|
-
name: "retries",
|
|
2171
|
-
readonly: t.isReadonly,
|
|
2172
|
-
type: "number"
|
|
2173
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2174
|
-
]),
|
|
2175
|
-
S("div", vl, [
|
|
2176
|
-
u(E, {
|
|
2177
|
-
modelValue: t.fields.connect_timeout,
|
|
2178
|
-
"onUpdate:modelValue": [
|
|
2179
|
-
s[14] || (s[14] = (_) => t.fields.connect_timeout = _),
|
|
2180
|
-
s[15] || (s[15] = () => {
|
|
2181
|
-
t.fields.connect_timeout = ce(t.fields.connect_timeout + "");
|
|
2182
|
-
})
|
|
2183
|
-
],
|
|
2184
|
-
autocomplete: "off",
|
|
2185
|
-
"data-testid": "gateway-service-connTimeout-input",
|
|
2186
|
-
label: o(r)("gateway_services.form.fields.connect_timeout.label"),
|
|
2187
|
-
"label-attributes": {
|
|
2188
|
-
info: o(r)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
2189
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2190
|
-
},
|
|
2191
|
-
name: "connTimeout",
|
|
2192
|
-
readonly: t.isReadonly,
|
|
2193
|
-
type: "number"
|
|
2194
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2195
|
-
]),
|
|
2196
|
-
S("div", gl, [
|
|
2197
|
-
u(E, {
|
|
2198
|
-
modelValue: t.fields.write_timeout,
|
|
2199
|
-
"onUpdate:modelValue": [
|
|
2200
|
-
s[16] || (s[16] = (_) => t.fields.write_timeout = _),
|
|
2201
|
-
s[17] || (s[17] = () => {
|
|
2202
|
-
t.fields.write_timeout = ce(t.fields.write_timeout + "");
|
|
2203
|
-
})
|
|
2204
|
-
],
|
|
2205
|
-
autocomplete: "off",
|
|
2206
|
-
"data-testid": "gateway-service-writeTimeout-input",
|
|
2207
|
-
label: o(r)("gateway_services.form.fields.write_timeout.label"),
|
|
2208
|
-
"label-attributes": {
|
|
2209
|
-
info: o(r)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
2210
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2211
|
-
},
|
|
2212
|
-
name: "writeTimeout",
|
|
2213
|
-
readonly: t.isReadonly,
|
|
2214
|
-
type: "number"
|
|
2215
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2216
|
-
]),
|
|
2217
|
-
S("div", yl, [
|
|
2218
|
-
u(E, {
|
|
2219
|
-
modelValue: t.fields.read_timeout,
|
|
2220
|
-
"onUpdate:modelValue": [
|
|
2221
|
-
s[18] || (s[18] = (_) => t.fields.read_timeout = _),
|
|
2222
|
-
s[19] || (s[19] = () => {
|
|
2223
|
-
t.fields.read_timeout = ce(t.fields.read_timeout + "");
|
|
2224
|
-
})
|
|
2225
|
-
],
|
|
2226
|
-
autocomplete: "off",
|
|
2227
|
-
"data-testid": "gateway-service-readTimeout-input",
|
|
2228
|
-
label: o(r)("gateway_services.form.fields.read_timeout.label"),
|
|
2229
|
-
"label-attributes": {
|
|
2230
|
-
info: o(r)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
2231
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2232
|
-
},
|
|
2233
|
-
name: "readTimeout",
|
|
2234
|
-
readonly: t.isReadonly,
|
|
2235
|
-
type: "number"
|
|
2236
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2237
|
-
]),
|
|
2238
|
-
f.value ? (C(), F("div", _l, [
|
|
2239
|
-
u(E, {
|
|
2240
|
-
modelValue: t.fields.client_certificate,
|
|
2241
|
-
"onUpdate:modelValue": s[20] || (s[20] = (_) => t.fields.client_certificate = _),
|
|
2242
|
-
modelModifiers: { trim: !0 },
|
|
2243
|
-
autocomplete: "off",
|
|
2244
|
-
"data-testid": "gateway-service-clientCert-input",
|
|
2245
|
-
error: !!t.formFieldErrors.client_certificate,
|
|
2246
|
-
label: o(r)("gateway_services.form.fields.client_certificate.label"),
|
|
2247
|
-
"label-attributes": {
|
|
2248
|
-
info: o(r)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
2249
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2250
|
-
},
|
|
2251
|
-
name: "clientCert",
|
|
2252
|
-
placeholder: o(r)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
2253
|
-
readonly: t.isReadonly,
|
|
2254
|
-
type: "text",
|
|
2255
|
-
onInput: s[21] || (s[21] = (_) => o(be)("client_certificate"))
|
|
2256
|
-
}, null, 8, ["modelValue", "error", "label", "label-attributes", "placeholder", "readonly"])
|
|
2257
|
-
])) : M("", !0),
|
|
2258
|
-
k.value ? (C(), F("div", bl, [
|
|
2259
|
-
u(E, {
|
|
2260
|
-
modelValue: t.fields.ca_certificates,
|
|
2261
|
-
"onUpdate:modelValue": s[22] || (s[22] = (_) => t.fields.ca_certificates = _),
|
|
2262
|
-
modelModifiers: { trim: !0 },
|
|
2263
|
-
autocomplete: "off",
|
|
2264
|
-
"data-testid": "gateway-service-ca-certs-input",
|
|
2265
|
-
error: !!t.formFieldErrors.ca_certificates,
|
|
2266
|
-
label: o(r)("gateway_services.form.fields.ca_certificates.label"),
|
|
2267
|
-
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
2268
|
-
placeholder: o(r)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
2269
|
-
readonly: t.isReadonly,
|
|
2270
|
-
type: "text",
|
|
2271
|
-
onInput: s[23] || (s[23] = (_) => o(be)("ca_certificates"))
|
|
2272
|
-
}, {
|
|
2273
|
-
"label-tooltip": v(() => [
|
|
2274
|
-
u(o(H), {
|
|
2275
|
-
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
2276
|
-
scope: "global"
|
|
2277
|
-
}, {
|
|
2278
|
-
code1: v(() => [
|
|
2279
|
-
S("code", null, P(o(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
2280
|
-
]),
|
|
2281
|
-
code2: v(() => [
|
|
2282
|
-
S("code", null, P(o(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
2283
|
-
]),
|
|
2284
|
-
_: 1
|
|
2285
|
-
})
|
|
2286
|
-
]),
|
|
2287
|
-
_: 1
|
|
2288
|
-
}, 8, ["modelValue", "error", "label", "placeholder", "readonly"])
|
|
2289
|
-
])) : M("", !0),
|
|
2290
|
-
J.value ? (C(), F("div", hl, [
|
|
2291
|
-
u(d, {
|
|
2292
|
-
modelValue: t.fields.tls_verify_enabled,
|
|
2293
|
-
"onUpdate:modelValue": s[24] || (s[24] = (_) => t.fields.tls_verify_enabled = _),
|
|
2294
|
-
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
2295
|
-
description: o(r)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
2296
|
-
label: o(r)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
2297
|
-
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
2298
|
-
}, {
|
|
2299
|
-
tooltip: v(() => [
|
|
2300
|
-
u(o(H), {
|
|
2301
|
-
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
2302
|
-
scope: "global"
|
|
2303
|
-
}, {
|
|
2304
|
-
code1: v(() => [
|
|
2305
|
-
S("code", null, P(o(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
2306
|
-
]),
|
|
2307
|
-
_: 1
|
|
2308
|
-
})
|
|
2309
|
-
]),
|
|
2310
|
-
_: 1
|
|
2311
|
-
}, 8, ["modelValue", "description", "label"]),
|
|
2312
|
-
t.fields.tls_verify_enabled ? (C(), F("div", wl, [
|
|
2313
|
-
u(V, {
|
|
2314
|
-
modelValue: t.fields.tls_verify_value,
|
|
2315
|
-
"onUpdate:modelValue": s[25] || (s[25] = (_) => t.fields.tls_verify_value = _),
|
|
2316
|
-
"data-testid": "gateway-service-tls-verify-true-option",
|
|
2317
|
-
label: o(r)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
2318
|
-
"selected-value": !0
|
|
2319
|
-
}, null, 8, ["modelValue", "label"])
|
|
2320
|
-
])) : M("", !0),
|
|
2321
|
-
t.fields.tls_verify_enabled ? (C(), F("div", kl, [
|
|
2322
|
-
u(V, {
|
|
2323
|
-
modelValue: t.fields.tls_verify_value,
|
|
2324
|
-
"onUpdate:modelValue": s[26] || (s[26] = (_) => t.fields.tls_verify_value = _),
|
|
2325
|
-
"data-testid": "gateway-service-tls-verify-false-option",
|
|
2326
|
-
label: o(r)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
2327
|
-
"selected-value": !1
|
|
2328
|
-
}, null, 8, ["modelValue", "label"])
|
|
2329
|
-
])) : M("", !0)
|
|
2330
|
-
])) : M("", !0)
|
|
2331
|
-
]))
|
|
2332
|
-
]),
|
|
2333
|
-
_: 1
|
|
2334
|
-
})
|
|
2335
|
-
]),
|
|
2336
|
-
_: 1
|
|
2337
|
-
}, 8, ["modelValue", "trigger-label"])
|
|
2338
|
-
]),
|
|
2339
|
-
_: 1
|
|
2340
|
-
}, 8, ["description", "hide-info-header", "title"]),
|
|
2341
|
-
u(o(Be), {
|
|
2342
|
-
description: o(r)("gateway_services.form.sections.general.description"),
|
|
2343
|
-
"hide-info-header": n.hideSectionsInfo,
|
|
2344
|
-
title: o(r)("gateway_services.form.sections.general.title")
|
|
2345
|
-
}, {
|
|
2346
|
-
default: v(() => [
|
|
2347
|
-
u(E, {
|
|
2348
|
-
modelValue: t.fields.name,
|
|
2349
|
-
"onUpdate:modelValue": s[28] || (s[28] = (_) => t.fields.name = _),
|
|
2350
|
-
modelModifiers: { trim: !0 },
|
|
2351
|
-
autocomplete: "off",
|
|
2352
|
-
"data-testid": "gateway-service-name-input",
|
|
2353
|
-
error: Pe.value,
|
|
2354
|
-
"error-message": se.value,
|
|
2355
|
-
label: o(r)("gateway_services.form.fields.name.label"),
|
|
2356
|
-
"label-attributes": {
|
|
2357
|
-
info: o(r)("gateway_services.form.fields.name.tooltip"),
|
|
2358
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2359
|
-
},
|
|
2360
|
-
name: "name",
|
|
2361
|
-
placeholder: o(r)("gateway_services.form.fields.name.placeholder"),
|
|
2362
|
-
readonly: t.isReadonly,
|
|
2363
|
-
type: "text",
|
|
2364
|
-
onInput: K
|
|
2365
|
-
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
2366
|
-
u(we, {
|
|
2367
|
-
"data-testid": "tags-collapse",
|
|
2368
|
-
"trigger-alignment": "leading",
|
|
2369
|
-
"trigger-label": o(r)("gateway_services.form.fields.tags.collapse")
|
|
2370
|
-
}, {
|
|
2371
|
-
default: v(() => [
|
|
2372
|
-
S("div", Vl, [
|
|
2373
|
-
u(E, {
|
|
2374
|
-
modelValue: t.fields.tags,
|
|
2375
|
-
"onUpdate:modelValue": s[29] || (s[29] = (_) => t.fields.tags = _),
|
|
2376
|
-
modelModifiers: { trim: !0 },
|
|
2377
|
-
autocomplete: "off",
|
|
2378
|
-
"data-testid": "gateway-service-tags-input",
|
|
2379
|
-
help: o(r)("gateway_services.form.fields.tags.help"),
|
|
2380
|
-
label: o(r)("gateway_services.form.fields.tags.label"),
|
|
2381
|
-
"label-attributes": {
|
|
2382
|
-
info: o(r)("gateway_services.form.fields.tags.tooltip"),
|
|
2383
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
2384
|
-
},
|
|
2385
|
-
name: "tags",
|
|
2386
|
-
placeholder: o(r)("gateway_services.form.fields.tags.placeholder"),
|
|
2387
|
-
readonly: t.isReadonly,
|
|
2388
|
-
type: "text"
|
|
2389
|
-
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
2390
|
-
])
|
|
2391
|
-
]),
|
|
2392
|
-
_: 1
|
|
2393
|
-
}, 8, ["trigger-label"])
|
|
2394
|
-
]),
|
|
2395
|
-
_: 1
|
|
2396
|
-
}, 8, ["description", "hide-info-header", "title"]),
|
|
2397
|
-
t.errorMessages.length ? (C(), Fe(Ie, {
|
|
2398
|
-
key: 0,
|
|
2399
|
-
appearance: "danger"
|
|
2400
|
-
}, {
|
|
2401
|
-
default: v(() => [
|
|
2402
|
-
S("ul", Cl, [
|
|
2403
|
-
(C(!0), F(ot, null, it(t.errorMessages, (_) => (C(), F("li", { key: _ }, P(_), 1))), 128))
|
|
2404
|
-
])
|
|
2405
|
-
]),
|
|
2406
|
-
_: 1
|
|
2407
|
-
})) : M("", !0)
|
|
2408
|
-
]),
|
|
2409
|
-
_: 3
|
|
2410
|
-
}, 8, ["can-submit", "config", "edit-id", "entity-type", "fetch-url", "form-fields", "is-readonly"])
|
|
2411
|
-
]);
|
|
2412
|
-
};
|
|
2413
|
-
}
|
|
2414
|
-
}), Rl = /* @__PURE__ */ Ne(Sl, [["__scopeId", "data-v-a378ebc2"]]);
|
|
2415
1512
|
export {
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
xl as LegacyGatewayServiceForm
|
|
1513
|
+
Xt as GatewayServiceConfigCard,
|
|
1514
|
+
Qt as GatewayServiceForm,
|
|
1515
|
+
zt as GatewayServiceList
|
|
2420
1516
|
};
|