@kong-ui-public/entities-gateway-services 3.0.10 → 3.0.11
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 +859 -846
- package/dist/entities-gateway-services.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ee, ref as V, computed as I, resolveComponent as B, openBlock as w, createBlock as D, Teleport as dr, createVNode as C, withCtx as b, unref as f, createTextVNode as H, toDisplayString as $, createElementVNode as F, watch as _e, renderSlot as te, createCommentVNode as G, onBeforeMount as At, createSlots as Be, renderList as ye, createElementBlock as A, withModifiers as qe, withDirectives as Ce, vShow as Se, Fragment as he, normalizeClass as xe, withKeys as pr, useSlots as Tt, resolveDynamicComponent as $e, useCssVars as ci, inject as fr, onMounted as ui, onUnmounted as gr, normalizeStyle as ut, normalizeProps as mr, guardReactiveProps as yr, mergeProps as vr, pushScopeId as dt, popScopeId as pt, reactive as Lt } from "vue";
|
|
2
2
|
import { useRouter as $t } from "vue-router";
|
|
3
3
|
import { createI18n as di, i18nTComponent as pi } from "@kong-ui-public/i18n";
|
|
4
4
|
import qt from "axios";
|
|
@@ -170,7 +170,7 @@ const br = {
|
|
|
170
170
|
success_brief: "Successfully copied to clipboard"
|
|
171
171
|
}, Sr = {
|
|
172
172
|
gateway_services: "gateway services"
|
|
173
|
-
},
|
|
173
|
+
}, Ir = {
|
|
174
174
|
actions: br,
|
|
175
175
|
search: wr,
|
|
176
176
|
gateway_services: _r,
|
|
@@ -178,15 +178,15 @@ const br = {
|
|
|
178
178
|
copy: Cr,
|
|
179
179
|
glossary: Sr
|
|
180
180
|
};
|
|
181
|
-
function
|
|
182
|
-
const e = di("en-us",
|
|
181
|
+
function xr() {
|
|
182
|
+
const e = di("en-us", Ir);
|
|
183
183
|
return {
|
|
184
184
|
i18n: e,
|
|
185
185
|
i18nT: pi(e)
|
|
186
186
|
// Translation component <i18n-t>
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ar() {
|
|
190
190
|
return {
|
|
191
191
|
getPortFromProtocol: (t, i) => {
|
|
192
192
|
const a = [80, 443], r = Number(i);
|
|
@@ -209,8 +209,8 @@ function xr() {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
const at = {
|
|
212
|
-
useI18n:
|
|
213
|
-
usePortFromProtocol:
|
|
212
|
+
useI18n: xr,
|
|
213
|
+
usePortFromProtocol: Ar
|
|
214
214
|
}, tt = "/v2/control-planes/{controlPlaneId}/core-entities", it = "/{workspace}", We = {
|
|
215
215
|
list: {
|
|
216
216
|
konnect: {
|
|
@@ -233,7 +233,7 @@ const at = {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
|
-
var fi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(fi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}),
|
|
236
|
+
var fi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(fi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), X = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(X || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
237
237
|
function Tr() {
|
|
238
238
|
return {
|
|
239
239
|
getAxiosInstance: (e = {}) => {
|
|
@@ -275,7 +275,7 @@ const vt = "khcp-user-table-preferences", jr = {
|
|
|
275
275
|
sortColumnKey: void 0,
|
|
276
276
|
sortColumnOrder: void 0
|
|
277
277
|
};
|
|
278
|
-
function
|
|
278
|
+
function Nr() {
|
|
279
279
|
const e = (i) => {
|
|
280
280
|
if (typeof i == "string")
|
|
281
281
|
try {
|
|
@@ -319,10 +319,10 @@ const Or = {
|
|
|
319
319
|
copyToClipboard: "Copied successfully!",
|
|
320
320
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, Mr = {
|
|
323
323
|
message: "Are you sure you want to delete this {entityType}?",
|
|
324
324
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
325
|
-
},
|
|
325
|
+
}, Fr = {
|
|
326
326
|
actions: {
|
|
327
327
|
viewConfiguration: "View Configuration",
|
|
328
328
|
save: "Save",
|
|
@@ -338,7 +338,7 @@ const Or = {
|
|
|
338
338
|
errors: {
|
|
339
339
|
edit: "The entity could not be edited at this time."
|
|
340
340
|
}
|
|
341
|
-
},
|
|
341
|
+
}, Er = {
|
|
342
342
|
emptyState: {
|
|
343
343
|
noSearchResultsTitle: "No results found",
|
|
344
344
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
@@ -408,11 +408,11 @@ const Or = {
|
|
|
408
408
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
409
409
|
confirmText: "Yes, disable"
|
|
410
410
|
}
|
|
411
|
-
},
|
|
411
|
+
}, Rr = {
|
|
412
412
|
global: Or,
|
|
413
|
-
deleteModal:
|
|
414
|
-
baseForm:
|
|
415
|
-
baseTable:
|
|
413
|
+
deleteModal: Mr,
|
|
414
|
+
baseForm: Fr,
|
|
415
|
+
baseTable: Er,
|
|
416
416
|
baseConfigCard: Vr,
|
|
417
417
|
filter: Lr,
|
|
418
418
|
debouncedFilter: qr,
|
|
@@ -421,7 +421,7 @@ const Or = {
|
|
|
421
421
|
toggleModal: Br
|
|
422
422
|
};
|
|
423
423
|
function ft() {
|
|
424
|
-
const e = di("en-us",
|
|
424
|
+
const e = di("en-us", Rr);
|
|
425
425
|
return {
|
|
426
426
|
i18n: e,
|
|
427
427
|
i18nT: pi(e)
|
|
@@ -472,68 +472,68 @@ function gi() {
|
|
|
472
472
|
isValidUuid: (i) => i ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(i) : !1
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Pr(e, t, i, a = {
|
|
476
476
|
fetchedItemsKey: "data",
|
|
477
477
|
searchKeys: ["id"]
|
|
478
478
|
}) {
|
|
479
479
|
i || (i = "1000");
|
|
480
480
|
const { axiosInstance: r } = jt(e.axiosRequestConfig), { i18n: { t: n } } = ft(), { debounce: o } = $r(), c = o(async (s) => {
|
|
481
|
-
await
|
|
482
|
-
}, 200), l =
|
|
483
|
-
let
|
|
484
|
-
e.app === "konnect" ?
|
|
485
|
-
const { isValidUuid: S } = gi(),
|
|
481
|
+
await Z(s);
|
|
482
|
+
}, 200), l = V(!1), u = V(""), m = V(""), p = V([]), k = V([]), v = V(void 0), x = f(t);
|
|
483
|
+
let j = `${e.apiBaseUrl}${x}`;
|
|
484
|
+
e.app === "konnect" ? j = j.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (j = j.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
485
|
+
const { isValidUuid: S } = gi(), K = async () => {
|
|
486
486
|
try {
|
|
487
487
|
l.value = !0;
|
|
488
|
-
const { data: s } = await r.get(`${
|
|
488
|
+
const { data: s } = await r.get(`${j}?size=${i}`);
|
|
489
489
|
s != null && s.next || (v.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), k.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], p.value = k.value;
|
|
490
490
|
} catch {
|
|
491
491
|
p.value = [], u.value = n("debouncedFilter.errors.fetch");
|
|
492
492
|
} finally {
|
|
493
493
|
l.value = !1;
|
|
494
494
|
}
|
|
495
|
-
},
|
|
496
|
-
var y,
|
|
497
|
-
if (
|
|
498
|
-
if (
|
|
495
|
+
}, N = V(""), Z = async (s) => {
|
|
496
|
+
var y, h, q;
|
|
497
|
+
if (N.value !== s)
|
|
498
|
+
if (N.value = s || "", v.value === void 0)
|
|
499
499
|
try {
|
|
500
500
|
if (l.value = !0, u.value = "", m.value = "", e.app === "konnect") {
|
|
501
|
-
let
|
|
502
|
-
s && (
|
|
503
|
-
const { data:
|
|
504
|
-
a.fetchedItemsKey in
|
|
501
|
+
let R = j + "";
|
|
502
|
+
s && (R += `/${s}`);
|
|
503
|
+
const { data: T } = await r.get(`${R}?size=${i}`);
|
|
504
|
+
a.fetchedItemsKey in T ? p.value = T[a.fetchedItemsKey] : T != null && T.id ? p.value = [T] : p.value = [];
|
|
505
505
|
} else if (s) {
|
|
506
|
-
const
|
|
507
|
-
S(s) && a.searchKeys.includes("id") ?
|
|
508
|
-
const { data: L } = await r.get(`${
|
|
506
|
+
const R = [];
|
|
507
|
+
S(s) && a.searchKeys.includes("id") ? R.push((async () => {
|
|
508
|
+
const { data: L } = await r.get(`${j}/${s}`);
|
|
509
509
|
return [L[a.fetchedItemsKey] ?? L];
|
|
510
|
-
})()) :
|
|
510
|
+
})()) : R.push(
|
|
511
511
|
...a.searchKeys.filter((L) => L !== "id").map(async (L) => {
|
|
512
|
-
const { data:
|
|
513
|
-
return
|
|
512
|
+
const { data: E } = await r.get(`${j}?${L}=${s}`);
|
|
513
|
+
return E[a.fetchedItemsKey];
|
|
514
514
|
})
|
|
515
515
|
);
|
|
516
|
-
const
|
|
517
|
-
p.value = [], (y =
|
|
518
|
-
var
|
|
519
|
-
(
|
|
516
|
+
const T = await Promise.all(R), z = /* @__PURE__ */ new Set();
|
|
517
|
+
p.value = [], (y = T == null ? void 0 : T.forEach) == null || y.call(T, (L) => {
|
|
518
|
+
var E;
|
|
519
|
+
(E = L == null ? void 0 : L.forEach) == null || E.call(L, (J) => {
|
|
520
520
|
z.has(J.id) || (z.add(J.id), p.value.push(J));
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
} else
|
|
524
524
|
p.value = k.value;
|
|
525
|
-
} catch (
|
|
526
|
-
((
|
|
525
|
+
} catch (R) {
|
|
526
|
+
((h = R == null ? void 0 : R.response) == null ? void 0 : h.status) === 404 ? m.value = n("debouncedFilter.errors.invalid") : (p.value = [], u.value = n("debouncedFilter.errors.fetch"));
|
|
527
527
|
} finally {
|
|
528
528
|
l.value = !1;
|
|
529
529
|
}
|
|
530
530
|
else
|
|
531
|
-
l.value = !0, m.value = "", s ? (p.value = (q = v.value) == null ? void 0 : q.filter((
|
|
532
|
-
var
|
|
531
|
+
l.value = !0, m.value = "", s ? (p.value = (q = v.value) == null ? void 0 : q.filter((R) => {
|
|
532
|
+
var T;
|
|
533
533
|
let z = !1;
|
|
534
534
|
for (const L of a.searchKeys) {
|
|
535
|
-
const
|
|
536
|
-
|
|
535
|
+
const E = typeof R[L] == "string" ? (T = R[L]) == null ? void 0 : T.toLowerCase() : R[L];
|
|
536
|
+
E != null && E.includes(s.toLowerCase()) && (z = !0);
|
|
537
537
|
}
|
|
538
538
|
return z;
|
|
539
539
|
}), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value = v.value, l.value = !1;
|
|
@@ -544,7 +544,7 @@ function Rr(e, t, i, a = {
|
|
|
544
544
|
validationError: m,
|
|
545
545
|
results: p,
|
|
546
546
|
allRecords: v,
|
|
547
|
-
loadItems:
|
|
547
|
+
loadItems: K,
|
|
548
548
|
debouncedQueryChange: c
|
|
549
549
|
};
|
|
550
550
|
}
|
|
@@ -596,7 +596,7 @@ function Jr(e) {
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function mi(e, t) {
|
|
599
|
-
const i =
|
|
599
|
+
const i = V(f(e)), a = V(f(t)), r = I(
|
|
600
600
|
() => !!(i.value.app === "konnect" || i.value.isExactMatch)
|
|
601
601
|
), n = I(
|
|
602
602
|
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
@@ -605,8 +605,8 @@ function mi(e, t) {
|
|
|
605
605
|
const { page: c, pageSize: l, offset: u, sortColumnKey: m, sortColumnOrder: p, query: k } = o;
|
|
606
606
|
try {
|
|
607
607
|
let v = new URL(n.value.href);
|
|
608
|
-
return r.value && k ? (v.search = "", v = i.value.isExactMatch ? new URL(`${v.href}/${k}/`) : new URL(`${v.href}?filter[name][contains]=${k}`)) : (r.value || new URLSearchParams(k).forEach((x,
|
|
609
|
-
v.searchParams.append(
|
|
608
|
+
return r.value && k ? (v.search = "", v = i.value.isExactMatch ? new URL(`${v.href}/${k}/`) : new URL(`${v.href}?filter[name][contains]=${k}`)) : (r.value || new URLSearchParams(k).forEach((x, j) => {
|
|
609
|
+
v.searchParams.append(j, x);
|
|
610
610
|
}), m && v.searchParams.append("sort_by", m), p === "desc" && v.searchParams.append("sort_desc", "1"), v.searchParams.append("size", String(l))), u && c !== 1 && v.searchParams.append("offset", String(u)), v.href;
|
|
611
611
|
} catch (v) {
|
|
612
612
|
return console.error("RouteList(fetcher)", v), a.value;
|
|
@@ -614,7 +614,7 @@ function mi(e, t) {
|
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
function Gr(e, t, i = "data") {
|
|
617
|
-
const a = f(t), { axiosInstance: r } = jt(e.axiosRequestConfig), n = mi(e, a), o =
|
|
617
|
+
const a = f(t), { axiosInstance: r } = jt(e.axiosRequestConfig), n = mi(e, a), o = V({
|
|
618
618
|
status: Oe.Idle
|
|
619
619
|
});
|
|
620
620
|
return { fetcher: async (c) => {
|
|
@@ -681,7 +681,7 @@ const yi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
681
681
|
return 0;
|
|
682
682
|
const [i, a] = Wr(Bt(e), Bt(t));
|
|
683
683
|
return i > a ? 1 : i < a ? -1 : 0;
|
|
684
|
-
},
|
|
684
|
+
}, Rt = (e, t) => {
|
|
685
685
|
for (let i = 0; i < Math.max(e.length, t.length); i++) {
|
|
686
686
|
const a = Yr(e[i] || "0", t[i] || "0");
|
|
687
687
|
if (a !== 0)
|
|
@@ -689,9 +689,9 @@ const yi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
689
689
|
}
|
|
690
690
|
return 0;
|
|
691
691
|
}, Zr = (e, t) => {
|
|
692
|
-
const i = Ut(e), a = Ut(t), r = i.pop(), n = a.pop(), o =
|
|
693
|
-
return o !== 0 ? o : r && n ?
|
|
694
|
-
},
|
|
692
|
+
const i = Ut(e), a = Ut(t), r = i.pop(), n = a.pop(), o = Rt(i, a);
|
|
693
|
+
return o !== 0 ? o : r && n ? Rt(r.split("."), n.split(".")) : r || n ? r ? -1 : 1 : 0;
|
|
694
|
+
}, Pt = (e, t, i) => {
|
|
695
695
|
Qr(i);
|
|
696
696
|
const a = Zr(e, t);
|
|
697
697
|
return vi[i].includes(a);
|
|
@@ -719,10 +719,10 @@ function ea(e) {
|
|
|
719
719
|
if (!n)
|
|
720
720
|
return !1;
|
|
721
721
|
const [o, c] = n;
|
|
722
|
-
return !(o &&
|
|
722
|
+
return !(o && Pt(r, o, "<") || c && Pt(r, c, ">"));
|
|
723
723
|
}
|
|
724
724
|
function ta(e) {
|
|
725
|
-
const t =
|
|
725
|
+
const t = V(0), i = V(0), a = V(!1);
|
|
726
726
|
return _e(e, (r) => {
|
|
727
727
|
r && !a.value && (t.value = r.offsetWidth, i.value = r.scrollWidth, a.value = !0);
|
|
728
728
|
}), {
|
|
@@ -737,7 +737,7 @@ function ia() {
|
|
|
737
737
|
}
|
|
738
738
|
const ne = {
|
|
739
739
|
useAxios: jt,
|
|
740
|
-
useDebouncedFilter:
|
|
740
|
+
useDebouncedFilter: Pr,
|
|
741
741
|
useDeleteUrlBuilder: Dr,
|
|
742
742
|
useErrors: zr,
|
|
743
743
|
useExternalLinkCreator: Jr,
|
|
@@ -752,7 +752,7 @@ const ne = {
|
|
|
752
752
|
}, ra = {
|
|
753
753
|
key: 0,
|
|
754
754
|
class: "config-card-fieldset-title"
|
|
755
|
-
}, aa = /* @__PURE__ */
|
|
755
|
+
}, aa = /* @__PURE__ */ ee({
|
|
756
756
|
__name: "JsonCardItem",
|
|
757
757
|
props: {
|
|
758
758
|
item: {
|
|
@@ -777,13 +777,13 @@ const ne = {
|
|
|
777
777
|
return t.isArrayItem ? (l = n.value) != null && l.name ? a(n.value.name, "_") : i("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
778
778
|
});
|
|
779
779
|
return (l, u) => (w(), D($e(e.isArrayItem ? "fieldset" : "div"), {
|
|
780
|
-
class:
|
|
780
|
+
class: xe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
781
781
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
e.isArrayItem ? (w(),
|
|
784
|
-
|
|
782
|
+
default: b(() => [
|
|
783
|
+
e.isArrayItem ? (w(), A("legend", ra, [
|
|
784
|
+
F("b", null, $(c.value), 1)
|
|
785
785
|
])) : G("", !0),
|
|
786
|
-
(w(!0),
|
|
786
|
+
(w(!0), A(he, null, ye(Object.keys(o.value), (m, p) => (w(), D(bi, {
|
|
787
787
|
key: `${r.value}-property-${p}`,
|
|
788
788
|
item: {
|
|
789
789
|
key: m,
|
|
@@ -800,7 +800,7 @@ const ne = {
|
|
|
800
800
|
for (const [a, r] of t)
|
|
801
801
|
i[a] = r;
|
|
802
802
|
return i;
|
|
803
|
-
}, hi = /* @__PURE__ */ ve(aa, [["__scopeId", "data-v-68ca83ec"]]), oa = /* @__PURE__ */
|
|
803
|
+
}, hi = /* @__PURE__ */ ve(aa, [["__scopeId", "data-v-68ca83ec"]]), oa = /* @__PURE__ */ ee({
|
|
804
804
|
__name: "InternalLinkItem",
|
|
805
805
|
props: {
|
|
806
806
|
item: {
|
|
@@ -812,22 +812,22 @@ const ne = {
|
|
|
812
812
|
setup(e) {
|
|
813
813
|
const { i18n: { t } } = ne.useI18n();
|
|
814
814
|
return (i, a) => {
|
|
815
|
-
const r =
|
|
816
|
-
return w(),
|
|
815
|
+
const r = B("KButton");
|
|
816
|
+
return w(), A("div", null, [
|
|
817
817
|
C(r, {
|
|
818
818
|
appearance: "tertiary",
|
|
819
819
|
class: "navigation-button",
|
|
820
820
|
onClick: a[0] || (a[0] = (n) => i.$emit("navigation-click", e.item))
|
|
821
821
|
}, {
|
|
822
|
-
default:
|
|
823
|
-
H(
|
|
822
|
+
default: b(() => [
|
|
823
|
+
H($(e.item.value || f(t)("baseConfigCard.commonFields.link")), 1)
|
|
824
824
|
]),
|
|
825
825
|
_: 1
|
|
826
826
|
})
|
|
827
827
|
]);
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
}), na = /* @__PURE__ */ ve(oa, [["__scopeId", "data-v-c96811e5"]]), la = /* @__PURE__ */
|
|
830
|
+
}), na = /* @__PURE__ */ ve(oa, [["__scopeId", "data-v-c96811e5"]]), la = /* @__PURE__ */ ee({
|
|
831
831
|
__name: "StatusBadge",
|
|
832
832
|
props: {
|
|
833
833
|
status: {
|
|
@@ -838,12 +838,12 @@ const ne = {
|
|
|
838
838
|
setup(e) {
|
|
839
839
|
const { i18n: { t } } = ne.useI18n();
|
|
840
840
|
return (i, a) => {
|
|
841
|
-
const r =
|
|
841
|
+
const r = B("KBadge");
|
|
842
842
|
return w(), D(r, {
|
|
843
843
|
appearance: e.status ? "success" : "neutral"
|
|
844
844
|
}, {
|
|
845
|
-
default:
|
|
846
|
-
H(
|
|
845
|
+
default: b(() => [
|
|
846
|
+
H($(e.status ? f(t)("baseConfigCard.statusBadge.enabledLabel") : f(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
847
847
|
]),
|
|
848
848
|
_: 1
|
|
849
849
|
}, 8, ["appearance"]);
|
|
@@ -852,7 +852,7 @@ const ne = {
|
|
|
852
852
|
}), sa = "#0044f4", ca = "#e0e4ea", ua = "#3a3f51", da = "#afb7c5", pa = "1px", fa = "20px", ga = { class: "config-card-details-row" }, ma = ["data-testid"], ya = ["data-testid"], va = ["data-testid"], ha = ["data-testid"], ba = { key: 1 }, wa = ["data-testid"], _a = ["data-testid"], ka = ["data-testid"], Ca = ["data-testid"], Sa = {
|
|
853
853
|
name: "ConfigCardItem",
|
|
854
854
|
components: { JsonCardItem: hi, StatusBadge: la, InternalLinkItem: na }
|
|
855
|
-
},
|
|
855
|
+
}, Ia = /* @__PURE__ */ ee({
|
|
856
856
|
...Sa,
|
|
857
857
|
props: {
|
|
858
858
|
item: {
|
|
@@ -878,9 +878,9 @@ const ne = {
|
|
|
878
878
|
"5036b738": u.value && c.value ? "100%" : i.slim ? "50%" : "25%",
|
|
879
879
|
"5038fd13": u.value && c.value ? "100%" : i.slim ? "50%" : "75%"
|
|
880
880
|
}));
|
|
881
|
-
const i = e, a = t, r = Tt(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), c = I(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), l = I(() => !!(i.item.tooltip || r["label-tooltip"])), u = I(() => i.item.type ===
|
|
881
|
+
const i = e, a = t, r = Tt(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), c = I(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), l = I(() => !!(i.item.tooltip || r["label-tooltip"])), u = I(() => i.item.type === X.Json || i.item.type === X.JsonArray), m = I(() => i.item.type === X.JsonArray), p = I(() => {
|
|
882
882
|
switch (i.item.type) {
|
|
883
|
-
case
|
|
883
|
+
case X.ID:
|
|
884
884
|
return {
|
|
885
885
|
tag: "KCopy",
|
|
886
886
|
attrs: {
|
|
@@ -889,7 +889,7 @@ const ne = {
|
|
|
889
889
|
text: i.item.value
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
case
|
|
892
|
+
case X.IdArray:
|
|
893
893
|
return {
|
|
894
894
|
tag: "div",
|
|
895
895
|
additionalComponent: "KCopy",
|
|
@@ -897,7 +897,7 @@ const ne = {
|
|
|
897
897
|
"copy-tooltip": n("baseConfigCard.copy.tooltip", { label: i.item.label })
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
|
-
case
|
|
900
|
+
case X.Redacted:
|
|
901
901
|
return {
|
|
902
902
|
tag: "KCopy",
|
|
903
903
|
attrs: {
|
|
@@ -907,7 +907,7 @@ const ne = {
|
|
|
907
907
|
text: i.item.value
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
|
-
case
|
|
910
|
+
case X.RedactedArray:
|
|
911
911
|
return {
|
|
912
912
|
tag: "div",
|
|
913
913
|
additionalComponent: "KCopy",
|
|
@@ -916,7 +916,7 @@ const ne = {
|
|
|
916
916
|
"copy-tooltip": n("baseConfigCard.copy.tooltip", { label: i.item.label })
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
case
|
|
919
|
+
case X.Date:
|
|
920
920
|
return {
|
|
921
921
|
tag: "div",
|
|
922
922
|
attrs: {
|
|
@@ -924,7 +924,7 @@ const ne = {
|
|
|
924
924
|
},
|
|
925
925
|
text: o(i.item.value)
|
|
926
926
|
};
|
|
927
|
-
case
|
|
927
|
+
case X.BadgeStatus:
|
|
928
928
|
return {
|
|
929
929
|
tag: "StatusBadge",
|
|
930
930
|
attrs: {
|
|
@@ -932,17 +932,17 @@ const ne = {
|
|
|
932
932
|
status: i.item.value
|
|
933
933
|
}
|
|
934
934
|
};
|
|
935
|
-
case
|
|
935
|
+
case X.BadgeTag:
|
|
936
936
|
return {
|
|
937
937
|
tag: "div",
|
|
938
938
|
additionalComponent: "KBadge"
|
|
939
939
|
};
|
|
940
|
-
case
|
|
940
|
+
case X.BadgeMethod:
|
|
941
941
|
return {
|
|
942
942
|
tag: "div",
|
|
943
943
|
additionalComponent: "KMethodBadge"
|
|
944
944
|
};
|
|
945
|
-
case
|
|
945
|
+
case X.LinkInternal:
|
|
946
946
|
return {
|
|
947
947
|
tag: "InternalLinkItem",
|
|
948
948
|
attrs: {
|
|
@@ -953,7 +953,7 @@ const ne = {
|
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
|
-
case
|
|
956
|
+
case X.LinkExternal:
|
|
957
957
|
return {
|
|
958
958
|
tag: "KExternalLink",
|
|
959
959
|
attrs: {
|
|
@@ -962,7 +962,7 @@ const ne = {
|
|
|
962
962
|
},
|
|
963
963
|
text: i.item.value
|
|
964
964
|
};
|
|
965
|
-
case
|
|
965
|
+
case X.Json:
|
|
966
966
|
return {
|
|
967
967
|
tag: "JsonCardItem",
|
|
968
968
|
attrs: {
|
|
@@ -970,7 +970,7 @@ const ne = {
|
|
|
970
970
|
item: i.item
|
|
971
971
|
}
|
|
972
972
|
};
|
|
973
|
-
case
|
|
973
|
+
case X.JsonArray:
|
|
974
974
|
return {
|
|
975
975
|
tag: "div",
|
|
976
976
|
additionalComponent: "JsonCardItem",
|
|
@@ -988,29 +988,29 @@ const ne = {
|
|
|
988
988
|
text: i.item.value
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
}), k =
|
|
992
|
-
return (x,
|
|
993
|
-
const S =
|
|
994
|
-
return w(),
|
|
995
|
-
|
|
991
|
+
}), k = V(), { isTruncated: v } = ne.useTruncationDetector(k);
|
|
992
|
+
return (x, j) => {
|
|
993
|
+
const S = B("KLabel"), K = B("KBadge"), N = B("KCopy"), Z = B("KTooltip");
|
|
994
|
+
return w(), A("div", ga, [
|
|
995
|
+
F("div", {
|
|
996
996
|
class: "config-card-details-label",
|
|
997
997
|
"data-testid": `${e.item.key}-label`
|
|
998
998
|
}, [
|
|
999
999
|
te(x.$slots, "label", { item: e.item }, () => [
|
|
1000
1000
|
C(S, { "tooltip-attributes": { maxWidth: "500px" } }, Be({
|
|
1001
|
-
default:
|
|
1002
|
-
H(
|
|
1001
|
+
default: b(() => [
|
|
1002
|
+
H($(e.item.label) + " ", 1)
|
|
1003
1003
|
]),
|
|
1004
1004
|
_: 2
|
|
1005
1005
|
}, [
|
|
1006
1006
|
l.value ? {
|
|
1007
1007
|
name: "tooltip",
|
|
1008
|
-
fn:
|
|
1009
|
-
|
|
1008
|
+
fn: b(() => [
|
|
1009
|
+
F("div", {
|
|
1010
1010
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1011
1011
|
}, [
|
|
1012
1012
|
te(x.$slots, "label-tooltip", {}, () => [
|
|
1013
|
-
H(
|
|
1013
|
+
H($(e.item.tooltip), 1)
|
|
1014
1014
|
], !0)
|
|
1015
1015
|
], 8, ya)
|
|
1016
1016
|
]),
|
|
@@ -1019,87 +1019,87 @@ const ne = {
|
|
|
1019
1019
|
]), 1024)
|
|
1020
1020
|
], !0)
|
|
1021
1021
|
], 8, ma),
|
|
1022
|
-
|
|
1022
|
+
F("div", {
|
|
1023
1023
|
class: "config-card-details-value",
|
|
1024
1024
|
"data-testid": `${e.item.key}-property-value`
|
|
1025
1025
|
}, [
|
|
1026
1026
|
te(x.$slots, e.item.key, {
|
|
1027
1027
|
rowValue: e.item.value
|
|
1028
1028
|
}, () => [
|
|
1029
|
-
c.value ? (w(),
|
|
1029
|
+
c.value ? (w(), A("div", ba, [
|
|
1030
1030
|
(w(), D($e(p.value.tag), mr(yr(p.value.attrs)), {
|
|
1031
|
-
default:
|
|
1032
|
-
p.value.additionalComponent === "KBadge" ? (w(),
|
|
1031
|
+
default: b(() => [
|
|
1032
|
+
p.value.additionalComponent === "KBadge" ? (w(), A("div", {
|
|
1033
1033
|
key: 0,
|
|
1034
1034
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1035
1035
|
}, [
|
|
1036
|
-
(w(!0),
|
|
1036
|
+
(w(!0), A(he, null, ye(e.item.value, (s, y) => (w(), D(K, {
|
|
1037
1037
|
key: `${e.item.key}-badge-tag-${y}`,
|
|
1038
1038
|
class: "config-badge",
|
|
1039
1039
|
"data-testid": `${e.item.key}-badge-tag-${y}`,
|
|
1040
1040
|
tooltip: s,
|
|
1041
1041
|
"truncation-tooltip": ""
|
|
1042
1042
|
}, {
|
|
1043
|
-
default:
|
|
1044
|
-
H(
|
|
1043
|
+
default: b(() => [
|
|
1044
|
+
H($(s), 1)
|
|
1045
1045
|
]),
|
|
1046
1046
|
_: 2
|
|
1047
1047
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1048
1048
|
], 8, wa)) : G("", !0),
|
|
1049
|
-
p.value.additionalComponent === "KCopy" ? (w(),
|
|
1049
|
+
p.value.additionalComponent === "KCopy" ? (w(), A("div", {
|
|
1050
1050
|
key: 1,
|
|
1051
1051
|
class: "copy-uuid-array",
|
|
1052
1052
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1053
1053
|
}, [
|
|
1054
|
-
(w(!0),
|
|
1054
|
+
(w(!0), A(he, null, ye(e.item.value, (s, y) => (w(), D(N, vr(p.value.childAttrs, {
|
|
1055
1055
|
key: `${e.item.key}-copy-uuid-${y}`,
|
|
1056
1056
|
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
1057
1057
|
text: s
|
|
1058
1058
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1059
|
-
], 8, _a)) : p.value.additionalComponent === "KMethodBadge" ? (w(),
|
|
1059
|
+
], 8, _a)) : p.value.additionalComponent === "KMethodBadge" ? (w(), A("div", {
|
|
1060
1060
|
key: 2,
|
|
1061
1061
|
class: "method-badge-array",
|
|
1062
1062
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1063
1063
|
}, [
|
|
1064
|
-
(w(!0),
|
|
1064
|
+
(w(!0), A(he, null, ye(e.item.value, (s, y) => (w(), D(K, {
|
|
1065
1065
|
key: `${e.item.key}-badge-method-${y}`,
|
|
1066
1066
|
appearance: Object.values(f(hr)).includes(s.toLowerCase()) ? s.toLowerCase() : "custom",
|
|
1067
1067
|
class: "config-badge",
|
|
1068
1068
|
"data-testid": `${e.item.key}-badge-method-${y}`
|
|
1069
1069
|
}, {
|
|
1070
|
-
default:
|
|
1071
|
-
H(
|
|
1070
|
+
default: b(() => [
|
|
1071
|
+
H($(s), 1)
|
|
1072
1072
|
]),
|
|
1073
1073
|
_: 2
|
|
1074
1074
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1075
1075
|
], 8, ka)) : G("", !0),
|
|
1076
|
-
p.value.additionalComponent === "JsonCardItem" ? (w(),
|
|
1076
|
+
p.value.additionalComponent === "JsonCardItem" ? (w(), A("div", {
|
|
1077
1077
|
key: 3,
|
|
1078
1078
|
"data-testid": `${i.item.key}-json-array-content`
|
|
1079
1079
|
}, [
|
|
1080
|
-
(w(!0),
|
|
1080
|
+
(w(!0), A(he, null, ye(e.item.value, (s, y) => (w(), D(hi, {
|
|
1081
1081
|
key: `json-array-item-${y}`,
|
|
1082
1082
|
index: y,
|
|
1083
1083
|
"is-array-item": "",
|
|
1084
1084
|
item: s
|
|
1085
1085
|
}, null, 8, ["index", "item"]))), 128))
|
|
1086
|
-
], 8, Ca)) : (w(), D(
|
|
1086
|
+
], 8, Ca)) : (w(), D(Z, {
|
|
1087
1087
|
key: 4,
|
|
1088
1088
|
text: f(v) ? e.item.value : ""
|
|
1089
1089
|
}, {
|
|
1090
|
-
default:
|
|
1091
|
-
|
|
1090
|
+
default: b(() => [
|
|
1091
|
+
F("span", {
|
|
1092
1092
|
ref_key: "textContent",
|
|
1093
1093
|
ref: k,
|
|
1094
|
-
class:
|
|
1095
|
-
},
|
|
1094
|
+
class: xe(["attrs-data-text", { truncated: e.truncated }])
|
|
1095
|
+
}, $(p.value.text), 3)
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 1
|
|
1098
1098
|
}, 8, ["text"]))
|
|
1099
1099
|
]),
|
|
1100
1100
|
_: 1
|
|
1101
1101
|
}, 16))
|
|
1102
|
-
])) : (w(),
|
|
1102
|
+
])) : (w(), A("div", {
|
|
1103
1103
|
key: 0,
|
|
1104
1104
|
"data-testid": `${e.item.key}-no-value`
|
|
1105
1105
|
}, " – ", 8, ha))
|
|
@@ -1108,10 +1108,10 @@ const ne = {
|
|
|
1108
1108
|
]);
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
}), bi = /* @__PURE__ */ ve(
|
|
1111
|
+
}), bi = /* @__PURE__ */ ve(Ia, [["__scopeId", "data-v-d056663c"]]), xa = { class: "json-config" }, Aa = {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
class: "json-endpoint"
|
|
1114
|
-
}, wi = /* @__PURE__ */
|
|
1114
|
+
}, wi = /* @__PURE__ */ ee({
|
|
1115
1115
|
__name: "JsonCodeBlock",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1150,14 +1150,14 @@ const ne = {
|
|
|
1150
1150
|
return n.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? n[n.length - 1] : n[n.length - 2]).length;
|
|
1151
1151
|
});
|
|
1152
1152
|
return (r, n) => {
|
|
1153
|
-
const o =
|
|
1154
|
-
return w(),
|
|
1155
|
-
t.fetcherUrl ? (w(),
|
|
1153
|
+
const o = B("KBadge"), c = B("KCodeBlock");
|
|
1154
|
+
return w(), A("div", xa, [
|
|
1155
|
+
t.fetcherUrl ? (w(), A("div", Aa, [
|
|
1156
1156
|
C(o, {
|
|
1157
1157
|
appearance: t.requestMethod
|
|
1158
1158
|
}, {
|
|
1159
|
-
default:
|
|
1160
|
-
H(
|
|
1159
|
+
default: b(() => [
|
|
1160
|
+
H($(t.requestMethod), 1)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
1163
|
}, 8, ["appearance"]),
|
|
@@ -1172,7 +1172,7 @@ const ne = {
|
|
|
1172
1172
|
t.jsonRecord ? (w(), D(c, {
|
|
1173
1173
|
key: 1,
|
|
1174
1174
|
id: "json-codeblock",
|
|
1175
|
-
class:
|
|
1175
|
+
class: xe({ "json-content": t.fetcherUrl }),
|
|
1176
1176
|
code: JSON.stringify(i.value, null, 2),
|
|
1177
1177
|
language: "json",
|
|
1178
1178
|
theme: "dark"
|
|
@@ -1198,7 +1198,7 @@ function ja(e, t) {
|
|
|
1198
1198
|
r = n[i], e[r] = t[r];
|
|
1199
1199
|
return e;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Na(e, t) {
|
|
1202
1202
|
var i = "", a;
|
|
1203
1203
|
for (a = 0; a < t; a += 1)
|
|
1204
1204
|
i += e;
|
|
@@ -1207,10 +1207,10 @@ function Ma(e, t) {
|
|
|
1207
1207
|
function Oa(e) {
|
|
1208
1208
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1211
|
-
isNothing:
|
|
1212
|
-
isObject:
|
|
1213
|
-
toArray:
|
|
1210
|
+
var Ma = _i, Fa = Ta, Ea = $a, Va = Na, La = Oa, qa = ja, oe = {
|
|
1211
|
+
isNothing: Ma,
|
|
1212
|
+
isObject: Fa,
|
|
1213
|
+
toArray: Ea,
|
|
1214
1214
|
repeat: Va,
|
|
1215
1215
|
isNegativeZero: La,
|
|
1216
1216
|
extend: qa
|
|
@@ -1282,12 +1282,12 @@ var Ka = Ua, Ba = [
|
|
|
1282
1282
|
"representName",
|
|
1283
1283
|
"defaultStyle",
|
|
1284
1284
|
"styleAliases"
|
|
1285
|
-
],
|
|
1285
|
+
], Ra = [
|
|
1286
1286
|
"scalar",
|
|
1287
1287
|
"sequence",
|
|
1288
1288
|
"mapping"
|
|
1289
1289
|
];
|
|
1290
|
-
function
|
|
1290
|
+
function Pa(e) {
|
|
1291
1291
|
var t = {};
|
|
1292
1292
|
return e !== null && Object.keys(e).forEach(function(i) {
|
|
1293
1293
|
e[i].forEach(function(a) {
|
|
@@ -1303,7 +1303,7 @@ function Da(e, t) {
|
|
|
1303
1303
|
return !0;
|
|
1304
1304
|
}, this.construct = t.construct || function(i) {
|
|
1305
1305
|
return i;
|
|
1306
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1306
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Pa(t.styleAliases || null), Ra.indexOf(this.kind) === -1)
|
|
1307
1307
|
throw new de('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1308
1308
|
}
|
|
1309
1309
|
var se = Da;
|
|
@@ -1368,21 +1368,21 @@ var Ci = kt, Si = new se("tag:yaml.org,2002:str", {
|
|
|
1368
1368
|
construct: function(e) {
|
|
1369
1369
|
return e !== null ? e : "";
|
|
1370
1370
|
}
|
|
1371
|
-
}),
|
|
1371
|
+
}), Ii = new se("tag:yaml.org,2002:seq", {
|
|
1372
1372
|
kind: "sequence",
|
|
1373
1373
|
construct: function(e) {
|
|
1374
1374
|
return e !== null ? e : [];
|
|
1375
1375
|
}
|
|
1376
|
-
}),
|
|
1376
|
+
}), xi = new se("tag:yaml.org,2002:map", {
|
|
1377
1377
|
kind: "mapping",
|
|
1378
1378
|
construct: function(e) {
|
|
1379
1379
|
return e !== null ? e : {};
|
|
1380
1380
|
}
|
|
1381
|
-
}),
|
|
1381
|
+
}), Ai = new Ci({
|
|
1382
1382
|
explicit: [
|
|
1383
1383
|
Si,
|
|
1384
|
-
|
|
1385
|
-
|
|
1384
|
+
Ii,
|
|
1385
|
+
xi
|
|
1386
1386
|
]
|
|
1387
1387
|
});
|
|
1388
1388
|
function Ja(e) {
|
|
@@ -1601,31 +1601,31 @@ function so(e, t) {
|
|
|
1601
1601
|
function co(e) {
|
|
1602
1602
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || oe.isNegativeZero(e));
|
|
1603
1603
|
}
|
|
1604
|
-
var
|
|
1604
|
+
var Ni = new se("tag:yaml.org,2002:float", {
|
|
1605
1605
|
kind: "scalar",
|
|
1606
1606
|
resolve: oo,
|
|
1607
1607
|
construct: no,
|
|
1608
1608
|
predicate: co,
|
|
1609
1609
|
represent: so,
|
|
1610
1610
|
defaultStyle: "lowercase"
|
|
1611
|
-
}), Oi =
|
|
1611
|
+
}), Oi = Ai.extend({
|
|
1612
1612
|
implicit: [
|
|
1613
1613
|
Ti,
|
|
1614
1614
|
$i,
|
|
1615
1615
|
ji,
|
|
1616
|
-
|
|
1616
|
+
Ni
|
|
1617
1617
|
]
|
|
1618
|
-
}),
|
|
1618
|
+
}), Mi = Oi, Fi = new RegExp(
|
|
1619
1619
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1620
|
-
),
|
|
1620
|
+
), Ei = new RegExp(
|
|
1621
1621
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1622
1622
|
);
|
|
1623
1623
|
function uo(e) {
|
|
1624
|
-
return e === null ? !1 :
|
|
1624
|
+
return e === null ? !1 : Fi.exec(e) !== null || Ei.exec(e) !== null;
|
|
1625
1625
|
}
|
|
1626
1626
|
function po(e) {
|
|
1627
1627
|
var t, i, a, r, n, o, c, l = 0, u = null, m, p, k;
|
|
1628
|
-
if (t =
|
|
1628
|
+
if (t = Fi.exec(e), t === null && (t = Ei.exec(e)), t === null)
|
|
1629
1629
|
throw new Error("Date resolve error");
|
|
1630
1630
|
if (i = +t[1], a = +t[2] - 1, r = +t[3], !t[4])
|
|
1631
1631
|
return new Date(Date.UTC(i, a, r));
|
|
@@ -1652,12 +1652,12 @@ function go(e) {
|
|
|
1652
1652
|
var Li = new se("tag:yaml.org,2002:merge", {
|
|
1653
1653
|
kind: "scalar",
|
|
1654
1654
|
resolve: go
|
|
1655
|
-
}),
|
|
1655
|
+
}), Nt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1656
1656
|
\r`;
|
|
1657
1657
|
function mo(e) {
|
|
1658
1658
|
if (e === null)
|
|
1659
1659
|
return !1;
|
|
1660
|
-
var t, i, a = 0, r = e.length, n =
|
|
1660
|
+
var t, i, a = 0, r = e.length, n = Nt;
|
|
1661
1661
|
for (i = 0; i < r; i++)
|
|
1662
1662
|
if (t = n.indexOf(e.charAt(i)), !(t > 64)) {
|
|
1663
1663
|
if (t < 0)
|
|
@@ -1667,13 +1667,13 @@ function mo(e) {
|
|
|
1667
1667
|
return a % 8 === 0;
|
|
1668
1668
|
}
|
|
1669
1669
|
function yo(e) {
|
|
1670
|
-
var t, i, a = e.replace(/[\r\n=]/g, ""), r = a.length, n =
|
|
1670
|
+
var t, i, a = e.replace(/[\r\n=]/g, ""), r = a.length, n = Nt, o = 0, c = [];
|
|
1671
1671
|
for (t = 0; t < r; t++)
|
|
1672
1672
|
t % 4 === 0 && t && (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)), o = o << 6 | n.indexOf(a.charAt(t));
|
|
1673
1673
|
return i = r % 4 * 6, i === 0 ? (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)) : i === 18 ? (c.push(o >> 10 & 255), c.push(o >> 2 & 255)) : i === 12 && c.push(o >> 4 & 255), new Uint8Array(c);
|
|
1674
1674
|
}
|
|
1675
1675
|
function vo(e) {
|
|
1676
|
-
var t = "", i = 0, a, r, n = e.length, o =
|
|
1676
|
+
var t = "", i = 0, a, r, n = e.length, o = Nt;
|
|
1677
1677
|
for (a = 0; a < n; a++)
|
|
1678
1678
|
a % 3 === 0 && a && (t += o[i >> 18 & 63], t += o[i >> 12 & 63], t += o[i >> 6 & 63], t += o[i & 63]), i = (i << 8) + e[a];
|
|
1679
1679
|
return r = n % 3, r === 0 ? (t += o[i >> 18 & 63], t += o[i >> 12 & 63], t += o[i >> 6 & 63], t += o[i & 63]) : r === 2 ? (t += o[i >> 10 & 63], t += o[i >> 4 & 63], t += o[i << 2 & 63], t += o[64]) : r === 1 && (t += o[i >> 2 & 63], t += o[i << 4 & 63], t += o[64], t += o[64]), t;
|
|
@@ -1729,7 +1729,7 @@ function So(e) {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
return !0;
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function Io(e) {
|
|
1733
1733
|
if (e === null)
|
|
1734
1734
|
return [];
|
|
1735
1735
|
var t, i, a, r, n, o = e;
|
|
@@ -1740,14 +1740,14 @@ function Ao(e) {
|
|
|
1740
1740
|
var Ki = new se("tag:yaml.org,2002:pairs", {
|
|
1741
1741
|
kind: "sequence",
|
|
1742
1742
|
resolve: So,
|
|
1743
|
-
construct:
|
|
1744
|
-
}),
|
|
1745
|
-
function
|
|
1743
|
+
construct: Io
|
|
1744
|
+
}), xo = Object.prototype.hasOwnProperty;
|
|
1745
|
+
function Ao(e) {
|
|
1746
1746
|
if (e === null)
|
|
1747
1747
|
return !0;
|
|
1748
1748
|
var t, i = e;
|
|
1749
1749
|
for (t in i)
|
|
1750
|
-
if (
|
|
1750
|
+
if (xo.call(i, t) && i[t] !== null)
|
|
1751
1751
|
return !1;
|
|
1752
1752
|
return !0;
|
|
1753
1753
|
}
|
|
@@ -1756,9 +1756,9 @@ function To(e) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
var Bi = new se("tag:yaml.org,2002:set", {
|
|
1758
1758
|
kind: "mapping",
|
|
1759
|
-
resolve:
|
|
1759
|
+
resolve: Ao,
|
|
1760
1760
|
construct: To
|
|
1761
|
-
}), Ot =
|
|
1761
|
+
}), Ot = Mi.extend({
|
|
1762
1762
|
implicit: [
|
|
1763
1763
|
Vi,
|
|
1764
1764
|
Li
|
|
@@ -1769,14 +1769,14 @@ var Bi = new se("tag:yaml.org,2002:set", {
|
|
|
1769
1769
|
Ki,
|
|
1770
1770
|
Bi
|
|
1771
1771
|
]
|
|
1772
|
-
}),
|
|
1772
|
+
}), Ae = Object.prototype.hasOwnProperty, ot = 1, Ri = 2, Pi = 3, nt = 4, wt = 1, $o = 2, Jt = 3, jo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, No = /[\x85\u2028\u2029]/, Oo = /[,\[\]\{\}]/, Di = /^(?:!|!!|![a-z\-]+!)$/i, zi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1773
1773
|
function Gt(e) {
|
|
1774
1774
|
return Object.prototype.toString.call(e);
|
|
1775
1775
|
}
|
|
1776
1776
|
function be(e) {
|
|
1777
1777
|
return e === 10 || e === 13;
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1779
|
+
function Me(e) {
|
|
1780
1780
|
return e === 9 || e === 32;
|
|
1781
1781
|
}
|
|
1782
1782
|
function ge(e) {
|
|
@@ -1785,14 +1785,14 @@ function ge(e) {
|
|
|
1785
1785
|
function Ue(e) {
|
|
1786
1786
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function Mo(e) {
|
|
1789
1789
|
var t;
|
|
1790
1790
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function Fo(e) {
|
|
1793
1793
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function Eo(e) {
|
|
1796
1796
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1797
1797
|
}
|
|
1798
1798
|
function Ht(e) {
|
|
@@ -1822,7 +1822,7 @@ function Hi(e, t) {
|
|
|
1822
1822
|
};
|
|
1823
1823
|
return i.snippet = Ka(i), new de(t, i);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function M(e, t) {
|
|
1826
1826
|
throw Hi(e, t);
|
|
1827
1827
|
}
|
|
1828
1828
|
function lt(e, t) {
|
|
@@ -1831,40 +1831,40 @@ function lt(e, t) {
|
|
|
1831
1831
|
var Wt = {
|
|
1832
1832
|
YAML: function(e, t, i) {
|
|
1833
1833
|
var a, r, n;
|
|
1834
|
-
e.version !== null &&
|
|
1834
|
+
e.version !== null && M(e, "duplication of %YAML directive"), i.length !== 1 && M(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && M(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && M(e, "unacceptable YAML version of the document"), e.version = i[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 && lt(e, "unsupported YAML version of the document");
|
|
1835
1835
|
},
|
|
1836
1836
|
TAG: function(e, t, i) {
|
|
1837
1837
|
var a, r;
|
|
1838
|
-
i.length !== 2 &&
|
|
1838
|
+
i.length !== 2 && M(e, "TAG directive accepts exactly two arguments"), a = i[0], r = i[1], Di.test(a) || M(e, "ill-formed tag handle (first argument) of the TAG directive"), Ae.call(e.tagMap, a) && M(e, 'there is a previously declared suffix for "' + a + '" tag handle'), zi.test(r) || M(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1839
1839
|
try {
|
|
1840
1840
|
r = decodeURIComponent(r);
|
|
1841
1841
|
} catch {
|
|
1842
|
-
|
|
1842
|
+
M(e, "tag prefix is malformed: " + r);
|
|
1843
1843
|
}
|
|
1844
1844
|
e.tagMap[a] = r;
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
|
-
function
|
|
1847
|
+
function Ie(e, t, i, a) {
|
|
1848
1848
|
var r, n, o, c;
|
|
1849
1849
|
if (t < i) {
|
|
1850
1850
|
if (c = e.input.slice(t, i), a)
|
|
1851
1851
|
for (r = 0, n = c.length; r < n; r += 1)
|
|
1852
|
-
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1852
|
+
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || M(e, "expected valid JSON character");
|
|
1853
1853
|
else
|
|
1854
|
-
jo.test(c) &&
|
|
1854
|
+
jo.test(c) && M(e, "the stream contains non-printable characters");
|
|
1855
1855
|
e.result += c;
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
function Yt(e, t, i, a) {
|
|
1859
1859
|
var r, n, o, c;
|
|
1860
|
-
for (oe.isObject(i) ||
|
|
1861
|
-
n = r[o],
|
|
1860
|
+
for (oe.isObject(i) || M(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, c = r.length; o < c; o += 1)
|
|
1861
|
+
n = r[o], Ae.call(t, n) || (t[n] = i[n], a[n] = !0);
|
|
1862
1862
|
}
|
|
1863
1863
|
function Ke(e, t, i, a, r, n, o, c, l) {
|
|
1864
1864
|
var u, m;
|
|
1865
1865
|
if (Array.isArray(r))
|
|
1866
1866
|
for (r = Array.prototype.slice.call(r), u = 0, m = r.length; u < m; u += 1)
|
|
1867
|
-
Array.isArray(r[u]) &&
|
|
1867
|
+
Array.isArray(r[u]) && M(e, "nested arrays are not supported inside keys"), typeof r == "object" && Gt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1868
1868
|
if (typeof r == "object" && Gt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), a === "tag:yaml.org,2002:merge")
|
|
1869
1869
|
if (Array.isArray(n))
|
|
1870
1870
|
for (u = 0, m = n.length; u < m; u += 1)
|
|
@@ -1872,7 +1872,7 @@ function Ke(e, t, i, a, r, n, o, c, l) {
|
|
|
1872
1872
|
else
|
|
1873
1873
|
Yt(e, t, n, i);
|
|
1874
1874
|
else
|
|
1875
|
-
!e.json && !
|
|
1875
|
+
!e.json && !Ae.call(i, r) && Ae.call(t, r) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, M(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1876
1876
|
configurable: !0,
|
|
1877
1877
|
enumerable: !0,
|
|
1878
1878
|
writable: !0,
|
|
@@ -1880,20 +1880,20 @@ function Ke(e, t, i, a, r, n, o, c, l) {
|
|
|
1880
1880
|
}) : t[r] = n, delete i[r];
|
|
1881
1881
|
return t;
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Mt(e) {
|
|
1884
1884
|
var t;
|
|
1885
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1885
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : M(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1886
1886
|
}
|
|
1887
1887
|
function re(e, t, i) {
|
|
1888
1888
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1889
|
-
for (;
|
|
1889
|
+
for (; Me(r); )
|
|
1890
1890
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1891
1891
|
if (t && r === 35)
|
|
1892
1892
|
do
|
|
1893
1893
|
r = e.input.charCodeAt(++e.position);
|
|
1894
1894
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1895
1895
|
if (be(r))
|
|
1896
|
-
for (
|
|
1896
|
+
for (Mt(e), r = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; r === 32; )
|
|
1897
1897
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1898
1898
|
else
|
|
1899
1899
|
break;
|
|
@@ -1904,7 +1904,7 @@ function gt(e) {
|
|
|
1904
1904
|
var t = e.position, i;
|
|
1905
1905
|
return i = e.input.charCodeAt(t), !!((i === 45 || i === 46) && i === e.input.charCodeAt(t + 1) && i === e.input.charCodeAt(t + 2) && (t += 3, i = e.input.charCodeAt(t), i === 0 || ge(i)));
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Ft(e, t) {
|
|
1908
1908
|
t === 1 ? e.result += " " : t > 1 && (e.result += oe.repeat(`
|
|
1909
1909
|
`, t - 1));
|
|
1910
1910
|
}
|
|
@@ -1931,9 +1931,9 @@ function qo(e, t, i) {
|
|
|
1931
1931
|
break;
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
c && (
|
|
1934
|
+
c && (Ie(e, n, o, !1), Ft(e, e.line - l), n = o = e.position, c = !1), Me(v) || (o = e.position + 1), v = e.input.charCodeAt(++e.position);
|
|
1935
1935
|
}
|
|
1936
|
-
return
|
|
1936
|
+
return Ie(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = k, !1);
|
|
1937
1937
|
}
|
|
1938
1938
|
function Uo(e, t) {
|
|
1939
1939
|
var i, a, r;
|
|
@@ -1941,13 +1941,13 @@ function Uo(e, t) {
|
|
|
1941
1941
|
return !1;
|
|
1942
1942
|
for (e.kind = "scalar", e.result = "", e.position++, a = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; )
|
|
1943
1943
|
if (i === 39)
|
|
1944
|
-
if (
|
|
1944
|
+
if (Ie(e, a, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
|
|
1945
1945
|
a = e.position, e.position++, r = e.position;
|
|
1946
1946
|
else
|
|
1947
1947
|
return !0;
|
|
1948
1948
|
else
|
|
1949
|
-
be(i) ? (
|
|
1950
|
-
|
|
1949
|
+
be(i) ? (Ie(e, a, r, !0), Ft(e, re(e, !1, t)), a = r = e.position) : e.position === e.lineStart && gt(e) ? M(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1950
|
+
M(e, "unexpected end of the stream within a single quoted scalar");
|
|
1951
1951
|
}
|
|
1952
1952
|
function Ko(e, t) {
|
|
1953
1953
|
var i, a, r, n, o, c;
|
|
@@ -1955,40 +1955,40 @@ function Ko(e, t) {
|
|
|
1955
1955
|
return !1;
|
|
1956
1956
|
for (e.kind = "scalar", e.result = "", e.position++, i = a = e.position; (c = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1957
1957
|
if (c === 34)
|
|
1958
|
-
return
|
|
1958
|
+
return Ie(e, i, e.position, !0), e.position++, !0;
|
|
1959
1959
|
if (c === 92) {
|
|
1960
|
-
if (
|
|
1960
|
+
if (Ie(e, i, e.position, !0), c = e.input.charCodeAt(++e.position), be(c))
|
|
1961
1961
|
re(e, !1, t);
|
|
1962
1962
|
else if (c < 256 && Ji[c])
|
|
1963
1963
|
e.result += Gi[c], e.position++;
|
|
1964
|
-
else if ((o =
|
|
1964
|
+
else if ((o = Fo(c)) > 0) {
|
|
1965
1965
|
for (r = o, n = 0; r > 0; r--)
|
|
1966
|
-
c = e.input.charCodeAt(++e.position), (o =
|
|
1966
|
+
c = e.input.charCodeAt(++e.position), (o = Mo(c)) >= 0 ? n = (n << 4) + o : M(e, "expected hexadecimal character");
|
|
1967
1967
|
e.result += Vo(n), e.position++;
|
|
1968
1968
|
} else
|
|
1969
|
-
|
|
1969
|
+
M(e, "unknown escape sequence");
|
|
1970
1970
|
i = a = e.position;
|
|
1971
1971
|
} else
|
|
1972
|
-
be(c) ? (
|
|
1972
|
+
be(c) ? (Ie(e, i, a, !0), Ft(e, re(e, !1, t)), i = a = e.position) : e.position === e.lineStart && gt(e) ? M(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
1973
1973
|
}
|
|
1974
|
-
|
|
1974
|
+
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
1975
1975
|
}
|
|
1976
1976
|
function Bo(e, t) {
|
|
1977
|
-
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, k, v, x = /* @__PURE__ */ Object.create(null),
|
|
1978
|
-
if (
|
|
1977
|
+
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, k, v, x = /* @__PURE__ */ Object.create(null), j, S, K, N;
|
|
1978
|
+
if (N = e.input.charCodeAt(e.position), N === 91)
|
|
1979
1979
|
m = 93, v = !1, c = [];
|
|
1980
|
-
else if (
|
|
1980
|
+
else if (N === 123)
|
|
1981
1981
|
m = 125, v = !0, c = {};
|
|
1982
1982
|
else
|
|
1983
1983
|
return !1;
|
|
1984
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
1985
|
-
if (re(e, !0, t),
|
|
1984
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), N = e.input.charCodeAt(++e.position); N !== 0; ) {
|
|
1985
|
+
if (re(e, !0, t), N = e.input.charCodeAt(e.position), N === m)
|
|
1986
1986
|
return e.position++, e.tag = o, e.anchor = l, e.kind = v ? "mapping" : "sequence", e.result = c, !0;
|
|
1987
|
-
i ?
|
|
1987
|
+
i ? N === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), S = j = K = null, p = k = !1, N === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (p = k = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, n = e.position, Re(e, t, ot, !1, !0), S = e.tag, j = e.result, re(e, !0, t), N = e.input.charCodeAt(e.position), (k || e.line === a) && N === 58 && (p = !0, N = e.input.charCodeAt(++e.position), re(e, !0, t), Re(e, t, ot, !1, !0), K = e.result), v ? Ke(e, c, x, S, j, K, a, r, n) : p ? c.push(Ke(e, null, x, S, j, K, a, r, n)) : c.push(j), re(e, !0, t), N = e.input.charCodeAt(e.position), N === 44 ? (i = !0, N = e.input.charCodeAt(++e.position)) : i = !1;
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
M(e, "unexpected end of the stream within a flow collection");
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function Ro(e, t) {
|
|
1992
1992
|
var i, a, r = wt, n = !1, o = !1, c = t, l = 0, u = !1, m, p;
|
|
1993
1993
|
if (p = e.input.charCodeAt(e.position), p === 124)
|
|
1994
1994
|
a = !1;
|
|
@@ -1998,22 +1998,22 @@ function Po(e, t) {
|
|
|
1998
1998
|
return !1;
|
|
1999
1999
|
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
2000
2000
|
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
|
|
2001
|
-
wt === r ? r = p === 43 ? Jt : $o :
|
|
2002
|
-
else if ((m =
|
|
2003
|
-
m === 0 ?
|
|
2001
|
+
wt === r ? r = p === 43 ? Jt : $o : M(e, "repeat of a chomping mode identifier");
|
|
2002
|
+
else if ((m = Eo(p)) >= 0)
|
|
2003
|
+
m === 0 ? M(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? M(e, "repeat of an indentation width identifier") : (c = t + m - 1, o = !0);
|
|
2004
2004
|
else
|
|
2005
2005
|
break;
|
|
2006
|
-
if (
|
|
2006
|
+
if (Me(p)) {
|
|
2007
2007
|
do
|
|
2008
2008
|
p = e.input.charCodeAt(++e.position);
|
|
2009
|
-
while (
|
|
2009
|
+
while (Me(p));
|
|
2010
2010
|
if (p === 35)
|
|
2011
2011
|
do
|
|
2012
2012
|
p = e.input.charCodeAt(++e.position);
|
|
2013
2013
|
while (!be(p) && p !== 0);
|
|
2014
2014
|
}
|
|
2015
2015
|
for (; p !== 0; ) {
|
|
2016
|
-
for (
|
|
2016
|
+
for (Mt(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && p === 32; )
|
|
2017
2017
|
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
2018
2018
|
if (!o && e.lineIndent > c && (c = e.lineIndent), be(p)) {
|
|
2019
2019
|
l++;
|
|
@@ -2025,13 +2025,13 @@ function Po(e, t) {
|
|
|
2025
2025
|
`);
|
|
2026
2026
|
break;
|
|
2027
2027
|
}
|
|
2028
|
-
for (a ?
|
|
2028
|
+
for (a ? Me(p) ? (u = !0, e.result += oe.repeat(`
|
|
2029
2029
|
`, n ? 1 + l : l)) : u ? (u = !1, e.result += oe.repeat(`
|
|
2030
2030
|
`, l + 1)) : l === 0 ? n && (e.result += " ") : e.result += oe.repeat(`
|
|
2031
2031
|
`, l) : e.result += oe.repeat(`
|
|
2032
2032
|
`, n ? 1 + l : l), n = !0, o = !0, l = 0, i = e.position; !be(p) && p !== 0; )
|
|
2033
2033
|
p = e.input.charCodeAt(++e.position);
|
|
2034
|
-
|
|
2034
|
+
Ie(e, i, e.position, !1);
|
|
2035
2035
|
}
|
|
2036
2036
|
return !0;
|
|
2037
2037
|
}
|
|
@@ -2039,78 +2039,78 @@ function Zt(e, t) {
|
|
|
2039
2039
|
var i, a = e.tag, r = e.anchor, n = [], o, c = !1, l;
|
|
2040
2040
|
if (e.firstTabInLine !== -1)
|
|
2041
2041
|
return !1;
|
|
2042
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2042
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !ge(o)))); ) {
|
|
2043
2043
|
if (c = !0, e.position++, re(e, !0, -1) && e.lineIndent <= t) {
|
|
2044
2044
|
n.push(null), l = e.input.charCodeAt(e.position);
|
|
2045
2045
|
continue;
|
|
2046
2046
|
}
|
|
2047
|
-
if (i = e.line,
|
|
2048
|
-
|
|
2047
|
+
if (i = e.line, Re(e, t, Pi, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > t) && l !== 0)
|
|
2048
|
+
M(e, "bad indentation of a sequence entry");
|
|
2049
2049
|
else if (e.lineIndent < t)
|
|
2050
2050
|
break;
|
|
2051
2051
|
}
|
|
2052
2052
|
return c ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2055
|
-
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, k = /* @__PURE__ */ Object.create(null), v = null, x = null,
|
|
2054
|
+
function Po(e, t, i) {
|
|
2055
|
+
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, k = /* @__PURE__ */ Object.create(null), v = null, x = null, j = null, S = !1, K = !1, N;
|
|
2056
2056
|
if (e.firstTabInLine !== -1)
|
|
2057
2057
|
return !1;
|
|
2058
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = p),
|
|
2059
|
-
if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2060
|
-
|
|
2058
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), N = e.input.charCodeAt(e.position); N !== 0; ) {
|
|
2059
|
+
if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), n = e.line, (N === 63 || N === 58) && ge(a))
|
|
2060
|
+
N === 63 ? (S && (Ke(e, p, k, v, x, null, o, c, l), v = x = j = null), K = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, N = a;
|
|
2061
2061
|
else {
|
|
2062
|
-
if (o = e.line, c = e.lineStart, l = e.position, !
|
|
2062
|
+
if (o = e.line, c = e.lineStart, l = e.position, !Re(e, i, Ri, !1, !0))
|
|
2063
2063
|
break;
|
|
2064
2064
|
if (e.line === n) {
|
|
2065
|
-
for (
|
|
2066
|
-
|
|
2067
|
-
if (
|
|
2068
|
-
|
|
2069
|
-
else if (
|
|
2070
|
-
|
|
2065
|
+
for (N = e.input.charCodeAt(e.position); Me(N); )
|
|
2066
|
+
N = e.input.charCodeAt(++e.position);
|
|
2067
|
+
if (N === 58)
|
|
2068
|
+
N = e.input.charCodeAt(++e.position), ge(N) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (Ke(e, p, k, v, x, null, o, c, l), v = x = j = null), K = !0, S = !1, r = !1, v = e.tag, x = e.result;
|
|
2069
|
+
else if (K)
|
|
2070
|
+
M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2071
2071
|
else
|
|
2072
2072
|
return e.tag = u, e.anchor = m, !0;
|
|
2073
|
-
} else if (
|
|
2074
|
-
|
|
2073
|
+
} else if (K)
|
|
2074
|
+
M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2075
2075
|
else
|
|
2076
2076
|
return e.tag = u, e.anchor = m, !0;
|
|
2077
2077
|
}
|
|
2078
|
-
if ((e.line === n || e.lineIndent > t) && (S && (o = e.line, c = e.lineStart, l = e.position),
|
|
2079
|
-
|
|
2078
|
+
if ((e.line === n || e.lineIndent > t) && (S && (o = e.line, c = e.lineStart, l = e.position), Re(e, t, nt, !0, r) && (S ? x = e.result : j = e.result), S || (Ke(e, p, k, v, x, j, o, c, l), v = x = j = null), re(e, !0, -1), N = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > t) && N !== 0)
|
|
2079
|
+
M(e, "bad indentation of a mapping entry");
|
|
2080
2080
|
else if (e.lineIndent < t)
|
|
2081
2081
|
break;
|
|
2082
2082
|
}
|
|
2083
|
-
return S && Ke(e, p, k, v, x, null, o, c, l),
|
|
2083
|
+
return S && Ke(e, p, k, v, x, null, o, c, l), K && (e.tag = u, e.anchor = m, e.kind = "mapping", e.result = p), K;
|
|
2084
2084
|
}
|
|
2085
2085
|
function Do(e) {
|
|
2086
2086
|
var t, i = !1, a = !1, r, n, o;
|
|
2087
2087
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2088
2088
|
return !1;
|
|
2089
|
-
if (e.tag !== null &&
|
|
2089
|
+
if (e.tag !== null && M(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (a = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, i) {
|
|
2090
2090
|
do
|
|
2091
2091
|
o = e.input.charCodeAt(++e.position);
|
|
2092
2092
|
while (o !== 0 && o !== 62);
|
|
2093
|
-
e.position < e.length ? (n = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2093
|
+
e.position < e.length ? (n = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : M(e, "unexpected end of the stream within a verbatim tag");
|
|
2094
2094
|
} else {
|
|
2095
2095
|
for (; o !== 0 && !ge(o); )
|
|
2096
|
-
o === 33 && (a ?
|
|
2097
|
-
n = e.input.slice(t, e.position), Oo.test(n) &&
|
|
2096
|
+
o === 33 && (a ? M(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Di.test(r) || M(e, "named tag handle cannot contain such characters"), a = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2097
|
+
n = e.input.slice(t, e.position), Oo.test(n) && M(e, "tag suffix cannot contain flow indicator characters");
|
|
2098
2098
|
}
|
|
2099
|
-
n && !zi.test(n) &&
|
|
2099
|
+
n && !zi.test(n) && M(e, "tag name cannot contain such characters: " + n);
|
|
2100
2100
|
try {
|
|
2101
2101
|
n = decodeURIComponent(n);
|
|
2102
2102
|
} catch {
|
|
2103
|
-
|
|
2103
|
+
M(e, "tag name is malformed: " + n);
|
|
2104
2104
|
}
|
|
2105
|
-
return i ? e.tag = n :
|
|
2105
|
+
return i ? e.tag = n : Ae.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n : M(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2106
2106
|
}
|
|
2107
2107
|
function zo(e) {
|
|
2108
2108
|
var t, i;
|
|
2109
2109
|
if (i = e.input.charCodeAt(e.position), i !== 38)
|
|
2110
2110
|
return !1;
|
|
2111
|
-
for (e.anchor !== null &&
|
|
2111
|
+
for (e.anchor !== null && M(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ge(i) && !Ue(i); )
|
|
2112
2112
|
i = e.input.charCodeAt(++e.position);
|
|
2113
|
-
return e.position === t &&
|
|
2113
|
+
return e.position === t && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2114
2114
|
}
|
|
2115
2115
|
function Jo(e) {
|
|
2116
2116
|
var t, i, a;
|
|
@@ -2118,23 +2118,23 @@ function Jo(e) {
|
|
|
2118
2118
|
return !1;
|
|
2119
2119
|
for (a = e.input.charCodeAt(++e.position), t = e.position; a !== 0 && !ge(a) && !Ue(a); )
|
|
2120
2120
|
a = e.input.charCodeAt(++e.position);
|
|
2121
|
-
return e.position === t &&
|
|
2121
|
+
return e.position === t && M(e, "name of an alias node must contain at least one character"), i = e.input.slice(t, e.position), Ae.call(e.anchorMap, i) || M(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], re(e, !0, -1), !0;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
var n, o, c, l = 1, u = !1, m = !1, p, k, v, x,
|
|
2125
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c = nt === i ||
|
|
2123
|
+
function Re(e, t, i, a, r) {
|
|
2124
|
+
var n, o, c, l = 1, u = !1, m = !1, p, k, v, x, j, S;
|
|
2125
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c = nt === i || Pi === i, a && re(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
2126
2126
|
for (; Do(e) || zo(e); )
|
|
2127
2127
|
re(e, !0, -1) ? (u = !0, c = n, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : c = !1;
|
|
2128
|
-
if (c && (c = u || r), (l === 1 || nt === i) && (ot === i ||
|
|
2128
|
+
if (c && (c = u || r), (l === 1 || nt === i) && (ot === i || Ri === i ? j = t : j = t + 1, S = e.position - e.lineStart, l === 1 ? c && (Zt(e, S) || Po(e, S, j)) || Bo(e, j) ? m = !0 : (o && Ro(e, j) || Uo(e, j) || Ko(e, j) ? m = !0 : Jo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : qo(e, j, ot === i) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = c && Zt(e, S))), e.tag === null)
|
|
2129
2129
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2130
2130
|
else if (e.tag === "?") {
|
|
2131
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2131
|
+
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, k = e.implicitTypes.length; p < k; p += 1)
|
|
2132
2132
|
if (x = e.implicitTypes[p], x.resolve(e.result)) {
|
|
2133
2133
|
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2134
2134
|
break;
|
|
2135
2135
|
}
|
|
2136
2136
|
} else if (e.tag !== "!") {
|
|
2137
|
-
if (
|
|
2137
|
+
if (Ae.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2138
2138
|
x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2139
2139
|
else
|
|
2140
2140
|
for (x = null, v = e.typeMap.multi[e.kind || "fallback"], p = 0, k = v.length; p < k; p += 1)
|
|
@@ -2142,7 +2142,7 @@ function Pe(e, t, i, a, r) {
|
|
|
2142
2142
|
x = v[p];
|
|
2143
2143
|
break;
|
|
2144
2144
|
}
|
|
2145
|
-
x ||
|
|
2145
|
+
x || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2146
2146
|
}
|
|
2147
2147
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
|
|
2148
2148
|
}
|
|
@@ -2151,8 +2151,8 @@ function Go(e) {
|
|
|
2151
2151
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (re(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2152
2152
|
for (n = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !ge(o); )
|
|
2153
2153
|
o = e.input.charCodeAt(++e.position);
|
|
2154
|
-
for (a = e.input.slice(i, e.position), r = [], a.length < 1 &&
|
|
2155
|
-
for (;
|
|
2154
|
+
for (a = e.input.slice(i, e.position), r = [], a.length < 1 && M(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
2155
|
+
for (; Me(o); )
|
|
2156
2156
|
o = e.input.charCodeAt(++e.position);
|
|
2157
2157
|
if (o === 35) {
|
|
2158
2158
|
do
|
|
@@ -2166,14 +2166,14 @@ function Go(e) {
|
|
|
2166
2166
|
o = e.input.charCodeAt(++e.position);
|
|
2167
2167
|
r.push(e.input.slice(i, e.position));
|
|
2168
2168
|
}
|
|
2169
|
-
o !== 0 &&
|
|
2169
|
+
o !== 0 && Mt(e), Ae.call(Wt, a) ? Wt[a](e, a, r) : lt(e, 'unknown document directive "' + a + '"');
|
|
2170
2170
|
}
|
|
2171
|
-
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : n &&
|
|
2171
|
+
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : n && M(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, nt, !1, !0), re(e, !0, -1), e.checkLineBreaks && No.test(e.input.slice(t, e.position)) && lt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && gt(e)) {
|
|
2172
2172
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
|
|
2173
2173
|
return;
|
|
2174
2174
|
}
|
|
2175
2175
|
if (e.position < e.length - 1)
|
|
2176
|
-
|
|
2176
|
+
M(e, "end of the stream or a document separator is expected");
|
|
2177
2177
|
else
|
|
2178
2178
|
return;
|
|
2179
2179
|
}
|
|
@@ -2181,7 +2181,7 @@ function Wi(e, t) {
|
|
|
2181
2181
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2182
2182
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2183
2183
|
var i = new Lo(e, t), a = e.indexOf("\0");
|
|
2184
|
-
for (a !== -1 && (i.position = a,
|
|
2184
|
+
for (a !== -1 && (i.position = a, M(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
|
|
2185
2185
|
i.lineIndent += 1, i.position += 1;
|
|
2186
2186
|
for (; i.position < i.length - 1; )
|
|
2187
2187
|
Go(i);
|
|
@@ -2206,7 +2206,7 @@ function Wo(e, t) {
|
|
|
2206
2206
|
var Yo = Ho, Zo = Wo, Yi = {
|
|
2207
2207
|
loadAll: Yo,
|
|
2208
2208
|
load: Zo
|
|
2209
|
-
}, Zi = Object.prototype.toString, Qi = Object.prototype.hasOwnProperty,
|
|
2209
|
+
}, Zi = Object.prototype.toString, Qi = Object.prototype.hasOwnProperty, Et = 65279, Qo = 9, Ze = 10, Xo = 13, en = 32, tn = 33, rn = 34, Ct = 35, an = 37, on = 38, nn = 39, ln = 42, Xi = 44, sn = 45, st = 58, cn = 61, un = 62, dn = 63, pn = 64, er = 91, tr = 93, fn = 96, ir = 123, gn = 124, rr = 125, ue = {};
|
|
2210
2210
|
ue[0] = "\\0";
|
|
2211
2211
|
ue[7] = "\\a";
|
|
2212
2212
|
ue[8] = "\\b";
|
|
@@ -2286,10 +2286,10 @@ function ct(e) {
|
|
|
2286
2286
|
return e === en || e === Qo;
|
|
2287
2287
|
}
|
|
2288
2288
|
function Xe(e) {
|
|
2289
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2289
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
|
|
2290
2290
|
}
|
|
2291
2291
|
function Xt(e) {
|
|
2292
|
-
return Xe(e) && e !==
|
|
2292
|
+
return Xe(e) && e !== Et && e !== Xo && e !== Ze;
|
|
2293
2293
|
}
|
|
2294
2294
|
function ei(e, t, i) {
|
|
2295
2295
|
var a = Xt(e), r = a && !ct(e);
|
|
@@ -2302,7 +2302,7 @@ function ei(e, t, i) {
|
|
|
2302
2302
|
);
|
|
2303
2303
|
}
|
|
2304
2304
|
function kn(e) {
|
|
2305
|
-
return Xe(e) && e !==
|
|
2305
|
+
return Xe(e) && e !== Et && !ct(e) && e !== sn && e !== dn && e !== st && e !== Xi && e !== er && e !== tr && e !== ir && e !== rr && e !== Ct && e !== on && e !== ln && e !== tn && e !== gn && e !== cn && e !== un && e !== nn && e !== rn && e !== an && e !== pn && e !== fn;
|
|
2306
2306
|
}
|
|
2307
2307
|
function Cn(e) {
|
|
2308
2308
|
return !ct(e) && e !== st;
|
|
@@ -2315,14 +2315,14 @@ function ar(e) {
|
|
|
2315
2315
|
var t = /^\n* /;
|
|
2316
2316
|
return t.test(e);
|
|
2317
2317
|
}
|
|
2318
|
-
var or = 1,
|
|
2318
|
+
var or = 1, It = 2, nr = 3, lr = 4, Le = 5;
|
|
2319
2319
|
function Sn(e, t, i, a, r, n, o, c) {
|
|
2320
|
-
var l, u = 0, m = null, p = !1, k = !1, v = a !== -1, x = -1,
|
|
2320
|
+
var l, u = 0, m = null, p = !1, k = !1, v = a !== -1, x = -1, j = kn(He(e, 0)) && Cn(He(e, e.length - 1));
|
|
2321
2321
|
if (t || o)
|
|
2322
2322
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2323
2323
|
if (u = He(e, l), !Xe(u))
|
|
2324
2324
|
return Le;
|
|
2325
|
-
|
|
2325
|
+
j = j && ei(u, m, c), m = u;
|
|
2326
2326
|
}
|
|
2327
2327
|
else {
|
|
2328
2328
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
@@ -2331,13 +2331,13 @@ function Sn(e, t, i, a, r, n, o, c) {
|
|
|
2331
2331
|
l - x - 1 > a && e[x + 1] !== " ", x = l);
|
|
2332
2332
|
else if (!Xe(u))
|
|
2333
2333
|
return Le;
|
|
2334
|
-
|
|
2334
|
+
j = j && ei(u, m, c), m = u;
|
|
2335
2335
|
}
|
|
2336
2336
|
k = k || v && l - x - 1 > a && e[x + 1] !== " ";
|
|
2337
2337
|
}
|
|
2338
|
-
return !p && !k ?
|
|
2338
|
+
return !p && !k ? j && !o && !r(e) ? or : n === Qe ? Le : It : i > 9 && ar(e) ? Le : o ? n === Qe ? Le : It : k ? lr : nr;
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function In(e, t, i, a, r) {
|
|
2341
2341
|
e.dump = function() {
|
|
2342
2342
|
if (t.length === 0)
|
|
2343
2343
|
return e.quotingType === Qe ? '""' : "''";
|
|
@@ -2359,14 +2359,14 @@ function An(e, t, i, a, r) {
|
|
|
2359
2359
|
)) {
|
|
2360
2360
|
case or:
|
|
2361
2361
|
return t;
|
|
2362
|
-
case
|
|
2362
|
+
case It:
|
|
2363
2363
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2364
2364
|
case nr:
|
|
2365
2365
|
return "|" + ti(t, e.indent) + ii(Qt(t, n));
|
|
2366
2366
|
case lr:
|
|
2367
|
-
return ">" + ti(t, e.indent) + ii(Qt(
|
|
2367
|
+
return ">" + ti(t, e.indent) + ii(Qt(xn(t, o), n));
|
|
2368
2368
|
case Le:
|
|
2369
|
-
return '"' +
|
|
2369
|
+
return '"' + An(t) + '"';
|
|
2370
2370
|
default:
|
|
2371
2371
|
throw new de("impossible error: invalid scalar style");
|
|
2372
2372
|
}
|
|
@@ -2384,7 +2384,7 @@ function ii(e) {
|
|
|
2384
2384
|
return e[e.length - 1] === `
|
|
2385
2385
|
` ? e.slice(0, -1) : e;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function xn(e, t) {
|
|
2388
2388
|
for (var i = /(\n+)([^\n]*)/g, a = function() {
|
|
2389
2389
|
var u = e.indexOf(`
|
|
2390
2390
|
`);
|
|
@@ -2407,7 +2407,7 @@ function ri(e, t) {
|
|
|
2407
2407
|
`, e.length - r > t && o > r ? l += e.slice(r, o) + `
|
|
2408
2408
|
` + e.slice(o + 1) : l += e.slice(r), l.slice(1);
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function An(e) {
|
|
2411
2411
|
for (var t = "", i = 0, a, r = 0; r < e.length; i >= 65536 ? r += 2 : r++)
|
|
2412
2412
|
i = He(e, r), a = ue[i], !a && Xe(i) ? (t += e[r], i >= 65536 && (t += e[r + 1])) : t += a || hn(i);
|
|
2413
2413
|
return t;
|
|
@@ -2472,7 +2472,7 @@ function ke(e, t, i, a, r, n, o) {
|
|
|
2472
2472
|
else if (c === "[object Array]")
|
|
2473
2473
|
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? ai(e, t - 1, e.dump, r) : ai(e, t, e.dump, r), k && (e.dump = "&ref_" + p + e.dump)) : (Tn(e, t, e.dump), k && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2474
2474
|
else if (c === "[object String]")
|
|
2475
|
-
e.tag !== "?" &&
|
|
2475
|
+
e.tag !== "?" && In(e, e.dump, t, n, l);
|
|
2476
2476
|
else {
|
|
2477
2477
|
if (c === "[object Undefined]" || e.skipInvalid)
|
|
2478
2478
|
return !1;
|
|
@@ -2484,44 +2484,44 @@ function ke(e, t, i, a, r, n, o) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return !0;
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function Nn(e, t) {
|
|
2488
2488
|
var i = [], a = [], r, n;
|
|
2489
|
-
for (
|
|
2489
|
+
for (xt(e, i, a), r = 0, n = a.length; r < n; r += 1)
|
|
2490
2490
|
t.duplicates.push(i[a[r]]);
|
|
2491
2491
|
t.usedDuplicates = new Array(n);
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function xt(e, t, i) {
|
|
2494
2494
|
var a, r, n;
|
|
2495
2495
|
if (e !== null && typeof e == "object")
|
|
2496
2496
|
if (r = t.indexOf(e), r !== -1)
|
|
2497
2497
|
i.indexOf(r) === -1 && i.push(r);
|
|
2498
2498
|
else if (t.push(e), Array.isArray(e))
|
|
2499
2499
|
for (r = 0, n = e.length; r < n; r += 1)
|
|
2500
|
-
|
|
2500
|
+
xt(e[r], t, i);
|
|
2501
2501
|
else
|
|
2502
2502
|
for (a = Object.keys(e), r = 0, n = a.length; r < n; r += 1)
|
|
2503
|
-
|
|
2503
|
+
xt(e[a[r]], t, i);
|
|
2504
2504
|
}
|
|
2505
2505
|
function On(e, t) {
|
|
2506
2506
|
t = t || {};
|
|
2507
2507
|
var i = new wn(t);
|
|
2508
|
-
i.noRefs ||
|
|
2508
|
+
i.noRefs || Nn(e, i);
|
|
2509
2509
|
var a = e;
|
|
2510
2510
|
return i.replacer && (a = i.replacer.call({ "": a }, "", a)), ke(i, 0, a, !0, !0) ? i.dump + `
|
|
2511
2511
|
` : "";
|
|
2512
2512
|
}
|
|
2513
|
-
var
|
|
2514
|
-
dump:
|
|
2513
|
+
var Mn = On, Fn = {
|
|
2514
|
+
dump: Mn
|
|
2515
2515
|
};
|
|
2516
2516
|
function Vt(e, t) {
|
|
2517
2517
|
return function() {
|
|
2518
2518
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2519
2519
|
};
|
|
2520
2520
|
}
|
|
2521
|
-
var
|
|
2521
|
+
var En = se, Vn = Ci, Ln = Ai, qn = Oi, Un = Mi, Kn = Ot, Bn = Yi.load, Rn = Yi.loadAll, Pn = Fn.dump, Dn = de, zn = {
|
|
2522
2522
|
binary: qi,
|
|
2523
|
-
float:
|
|
2524
|
-
map:
|
|
2523
|
+
float: Ni,
|
|
2524
|
+
map: xi,
|
|
2525
2525
|
null: Ti,
|
|
2526
2526
|
pairs: Ki,
|
|
2527
2527
|
set: Bi,
|
|
@@ -2530,25 +2530,25 @@ var Fn = se, Vn = Ci, Ln = xi, qn = Oi, Un = Ei, Kn = Ot, Bn = Yi.load, Pn = Yi.
|
|
|
2530
2530
|
int: ji,
|
|
2531
2531
|
merge: Li,
|
|
2532
2532
|
omap: Ui,
|
|
2533
|
-
seq:
|
|
2533
|
+
seq: Ii,
|
|
2534
2534
|
str: Si
|
|
2535
2535
|
}, Jn = Vt("safeLoad", "load"), Gn = Vt("safeLoadAll", "loadAll"), Hn = Vt("safeDump", "dump"), Wn = {
|
|
2536
|
-
Type:
|
|
2536
|
+
Type: En,
|
|
2537
2537
|
Schema: Vn,
|
|
2538
2538
|
FAILSAFE_SCHEMA: Ln,
|
|
2539
2539
|
JSON_SCHEMA: qn,
|
|
2540
2540
|
CORE_SCHEMA: Un,
|
|
2541
2541
|
DEFAULT_SCHEMA: Kn,
|
|
2542
2542
|
load: Bn,
|
|
2543
|
-
loadAll:
|
|
2544
|
-
dump:
|
|
2543
|
+
loadAll: Rn,
|
|
2544
|
+
dump: Pn,
|
|
2545
2545
|
YAMLException: Dn,
|
|
2546
2546
|
types: zn,
|
|
2547
2547
|
safeLoad: Jn,
|
|
2548
2548
|
safeLoadAll: Gn,
|
|
2549
2549
|
safeDump: Hn
|
|
2550
2550
|
};
|
|
2551
|
-
const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */
|
|
2551
|
+
const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ ee({
|
|
2552
2552
|
__name: "YamlCodeBlock",
|
|
2553
2553
|
props: {
|
|
2554
2554
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2563,8 +2563,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2563
2563
|
return Object.keys(a).length === 0 && a.constructor === Object ? "" : Wn.dump(a).trim();
|
|
2564
2564
|
});
|
|
2565
2565
|
return (a, r) => {
|
|
2566
|
-
const n =
|
|
2567
|
-
return w(),
|
|
2566
|
+
const n = B("KCodeBlock");
|
|
2567
|
+
return w(), A("div", Yn, [
|
|
2568
2568
|
t.yamlRecord ? (w(), D(n, {
|
|
2569
2569
|
key: 0,
|
|
2570
2570
|
id: "yaml-codeblock",
|
|
@@ -2581,7 +2581,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2581
2581
|
}, Qn = ["data-testid"], Xn = {
|
|
2582
2582
|
key: 0,
|
|
2583
2583
|
class: "config-card-prop-section-title"
|
|
2584
|
-
}, el = /* @__PURE__ */
|
|
2584
|
+
}, el = /* @__PURE__ */ ee({
|
|
2585
2585
|
__name: "ConfigCardDisplay",
|
|
2586
2586
|
props: {
|
|
2587
2587
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2626,22 +2626,22 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2626
2626
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2627
2627
|
return delete o.created_at, delete o.updated_at, o;
|
|
2628
2628
|
});
|
|
2629
|
-
return (o, c) => (w(),
|
|
2630
|
-
e.format === "structured" ? (w(),
|
|
2631
|
-
(w(!0),
|
|
2629
|
+
return (o, c) => (w(), A(he, null, [
|
|
2630
|
+
e.format === "structured" ? (w(), A("div", Zn, [
|
|
2631
|
+
(w(!0), A(he, null, ye(e.propListTypes, (l) => (w(), A("div", {
|
|
2632
2632
|
key: `config-card-details-${l}-props`,
|
|
2633
|
-
class:
|
|
2633
|
+
class: xe(`config-card-details-${l}-props`),
|
|
2634
2634
|
"data-testid": `config-card-details-${l}-props`
|
|
2635
2635
|
}, [
|
|
2636
|
-
l !== "basic" ? (w(),
|
|
2637
|
-
(w(!0),
|
|
2636
|
+
l !== "basic" ? (w(), A("div", Xn, $(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2637
|
+
(w(!0), A(he, null, ye(e.propertyCollections[l], (u) => (w(), D(bi, {
|
|
2638
2638
|
key: u.key,
|
|
2639
2639
|
item: u
|
|
2640
2640
|
}, Be({
|
|
2641
|
-
label:
|
|
2641
|
+
label: b(() => [
|
|
2642
2642
|
te(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2643
2643
|
]),
|
|
2644
|
-
[u.key]:
|
|
2644
|
+
[u.key]: b(({ rowValue: m }) => [
|
|
2645
2645
|
te(o.$slots, u.key, {
|
|
2646
2646
|
row: u,
|
|
2647
2647
|
rowValue: m
|
|
@@ -2651,7 +2651,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2651
2651
|
}, [
|
|
2652
2652
|
r(u) ? {
|
|
2653
2653
|
name: "label-tooltip",
|
|
2654
|
-
fn:
|
|
2654
|
+
fn: b(() => [
|
|
2655
2655
|
te(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2656
2656
|
]),
|
|
2657
2657
|
key: "0"
|
|
@@ -2680,10 +2680,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2680
2680
|
}, il = (e) => (dt("data-v-20c17c32"), e = e(), pt(), e), rl = ["aria-hidden"], al = {
|
|
2681
2681
|
key: 0,
|
|
2682
2682
|
"data-testid": "kui-icon-svg-title"
|
|
2683
|
-
}, ol = /* @__PURE__ */ il(() => /* @__PURE__ */
|
|
2683
|
+
}, ol = /* @__PURE__ */ il(() => /* @__PURE__ */ F("path", {
|
|
2684
2684
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2685
2685
|
fill: "currentColor"
|
|
2686
|
-
}, null, -1)), nl = /* @__PURE__ */
|
|
2686
|
+
}, null, -1)), nl = /* @__PURE__ */ ee({
|
|
2687
2687
|
__name: "AddIcon",
|
|
2688
2688
|
props: {
|
|
2689
2689
|
/** The accessibility text provided to screen readers */
|
|
@@ -2758,8 +2758,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2758
2758
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2759
2759
|
style: ut(a.value)
|
|
2760
2760
|
}, {
|
|
2761
|
-
default:
|
|
2762
|
-
(w(),
|
|
2761
|
+
default: b(() => [
|
|
2762
|
+
(w(), A("svg", {
|
|
2763
2763
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2764
2764
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2765
2765
|
fill: "none",
|
|
@@ -2769,7 +2769,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2769
2769
|
width: "100%",
|
|
2770
2770
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2771
2771
|
}, [
|
|
2772
|
-
e.title ? (w(),
|
|
2772
|
+
e.title ? (w(), A("title", al, $(e.title), 1)) : G("", !0),
|
|
2773
2773
|
ol
|
|
2774
2774
|
], 8, rl))
|
|
2775
2775
|
]),
|
|
@@ -2779,10 +2779,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2779
2779
|
}), ll = /* @__PURE__ */ mt(nl, [["__scopeId", "data-v-20c17c32"]]), sl = (e) => (dt("data-v-b939f1df"), e = e(), pt(), e), cl = ["aria-hidden"], ul = {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
"data-testid": "kui-icon-svg-title"
|
|
2782
|
-
}, dl = /* @__PURE__ */ sl(() => /* @__PURE__ */
|
|
2782
|
+
}, dl = /* @__PURE__ */ sl(() => /* @__PURE__ */ F("path", {
|
|
2783
2783
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2784
2784
|
fill: "currentColor"
|
|
2785
|
-
}, null, -1)), pl = /* @__PURE__ */
|
|
2785
|
+
}, null, -1)), pl = /* @__PURE__ */ ee({
|
|
2786
2786
|
__name: "BookIcon",
|
|
2787
2787
|
props: {
|
|
2788
2788
|
/** The accessibility text provided to screen readers */
|
|
@@ -2857,8 +2857,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2857
2857
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2858
2858
|
style: ut(a.value)
|
|
2859
2859
|
}, {
|
|
2860
|
-
default:
|
|
2861
|
-
(w(),
|
|
2860
|
+
default: b(() => [
|
|
2861
|
+
(w(), A("svg", {
|
|
2862
2862
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2863
2863
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2864
2864
|
fill: "none",
|
|
@@ -2868,7 +2868,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2868
2868
|
width: "100%",
|
|
2869
2869
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2870
2870
|
}, [
|
|
2871
|
-
e.title ? (w(),
|
|
2871
|
+
e.title ? (w(), A("title", ul, $(e.title), 1)) : G("", !0),
|
|
2872
2872
|
dl
|
|
2873
2873
|
], 8, cl))
|
|
2874
2874
|
]),
|
|
@@ -2878,10 +2878,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2878
2878
|
}), fl = /* @__PURE__ */ mt(pl, [["__scopeId", "data-v-b939f1df"]]), gl = (e) => (dt("data-v-f1d0332e"), e = e(), pt(), e), ml = ["aria-hidden"], yl = {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
"data-testid": "kui-icon-svg-title"
|
|
2881
|
-
}, vl = /* @__PURE__ */ gl(() => /* @__PURE__ */
|
|
2881
|
+
}, vl = /* @__PURE__ */ gl(() => /* @__PURE__ */ F("path", {
|
|
2882
2882
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2883
2883
|
fill: "currentColor"
|
|
2884
|
-
}, null, -1)), hl = /* @__PURE__ */
|
|
2884
|
+
}, null, -1)), hl = /* @__PURE__ */ ee({
|
|
2885
2885
|
__name: "ChevronDownIcon",
|
|
2886
2886
|
props: {
|
|
2887
2887
|
/** The accessibility text provided to screen readers */
|
|
@@ -2956,8 +2956,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2956
2956
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2957
2957
|
style: ut(a.value)
|
|
2958
2958
|
}, {
|
|
2959
|
-
default:
|
|
2960
|
-
(w(),
|
|
2959
|
+
default: b(() => [
|
|
2960
|
+
(w(), A("svg", {
|
|
2961
2961
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2962
2962
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2963
2963
|
fill: "none",
|
|
@@ -2967,7 +2967,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2967
2967
|
width: "100%",
|
|
2968
2968
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2969
2969
|
}, [
|
|
2970
|
-
e.title ? (w(),
|
|
2970
|
+
e.title ? (w(), A("title", yl, $(e.title), 1)) : G("", !0),
|
|
2971
2971
|
vl
|
|
2972
2972
|
], 8, ml))
|
|
2973
2973
|
]),
|
|
@@ -2977,10 +2977,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
2977
2977
|
}), bl = /* @__PURE__ */ mt(hl, [["__scopeId", "data-v-f1d0332e"]]), wl = (e) => (dt("data-v-288b6455"), e = e(), pt(), e), _l = ["aria-hidden"], kl = {
|
|
2978
2978
|
key: 0,
|
|
2979
2979
|
"data-testid": "kui-icon-svg-title"
|
|
2980
|
-
}, Cl = /* @__PURE__ */ wl(() => /* @__PURE__ */
|
|
2980
|
+
}, Cl = /* @__PURE__ */ wl(() => /* @__PURE__ */ F("path", {
|
|
2981
2981
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2982
2982
|
fill: "currentColor"
|
|
2983
|
-
}, null, -1)), Sl = /* @__PURE__ */
|
|
2983
|
+
}, null, -1)), Sl = /* @__PURE__ */ ee({
|
|
2984
2984
|
__name: "CloseIcon",
|
|
2985
2985
|
props: {
|
|
2986
2986
|
/** The accessibility text provided to screen readers */
|
|
@@ -3055,8 +3055,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3055
3055
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
3056
3056
|
style: ut(a.value)
|
|
3057
3057
|
}, {
|
|
3058
|
-
default:
|
|
3059
|
-
(w(),
|
|
3058
|
+
default: b(() => [
|
|
3059
|
+
(w(), A("svg", {
|
|
3060
3060
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3061
3061
|
"data-testid": "kui-icon-svg-close-icon",
|
|
3062
3062
|
fill: "none",
|
|
@@ -3066,17 +3066,17 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3066
3066
|
width: "100%",
|
|
3067
3067
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3068
3068
|
}, [
|
|
3069
|
-
e.title ? (w(),
|
|
3069
|
+
e.title ? (w(), A("title", kl, $(e.title), 1)) : G("", !0),
|
|
3070
3070
|
Cl
|
|
3071
3071
|
], 8, _l))
|
|
3072
3072
|
]),
|
|
3073
3073
|
_: 1
|
|
3074
3074
|
}, 8, ["aria-hidden", "style"]));
|
|
3075
3075
|
}
|
|
3076
|
-
}),
|
|
3076
|
+
}), Il = /* @__PURE__ */ mt(Sl, [["__scopeId", "data-v-288b6455"]]), xl = {
|
|
3077
3077
|
class: "config-card-title",
|
|
3078
3078
|
"data-testid": "config-card-title"
|
|
3079
|
-
},
|
|
3079
|
+
}, Al = { class: "config-card-actions" }, Tl = ["href"], $l = { class: "config-card-details-section" }, jl = /* @__PURE__ */ ee({
|
|
3080
3080
|
__name: "EntityBaseConfigCard",
|
|
3081
3081
|
props: {
|
|
3082
3082
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3169,11 +3169,11 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3169
3169
|
label: "YAML",
|
|
3170
3170
|
value: "yaml"
|
|
3171
3171
|
}
|
|
3172
|
-
], m =
|
|
3173
|
-
m.value =
|
|
3172
|
+
], m = V("structured"), p = (h) => {
|
|
3173
|
+
m.value = h == null ? void 0 : h.value;
|
|
3174
3174
|
}, k = {
|
|
3175
3175
|
id: {
|
|
3176
|
-
type:
|
|
3176
|
+
type: X.ID,
|
|
3177
3177
|
label: n("baseConfigCard.commonFields.id_label"),
|
|
3178
3178
|
order: 0,
|
|
3179
3179
|
section: ce.Basic
|
|
@@ -3183,134 +3183,134 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3183
3183
|
section: ce.Basic
|
|
3184
3184
|
},
|
|
3185
3185
|
enabled: {
|
|
3186
|
-
type:
|
|
3186
|
+
type: X.BadgeStatus,
|
|
3187
3187
|
order: 2,
|
|
3188
3188
|
section: ce.Basic
|
|
3189
3189
|
},
|
|
3190
3190
|
updated_at: {
|
|
3191
|
-
type:
|
|
3191
|
+
type: X.Date,
|
|
3192
3192
|
label: n("baseConfigCard.commonFields.updated_at_label"),
|
|
3193
3193
|
order: 3,
|
|
3194
3194
|
section: ce.Basic
|
|
3195
3195
|
},
|
|
3196
3196
|
created_at: {
|
|
3197
|
-
type:
|
|
3197
|
+
type: X.Date,
|
|
3198
3198
|
label: n("baseConfigCard.commonFields.created_at_label"),
|
|
3199
3199
|
order: 4,
|
|
3200
3200
|
section: ce.Basic
|
|
3201
3201
|
},
|
|
3202
3202
|
tags: {
|
|
3203
|
-
type:
|
|
3203
|
+
type: X.BadgeTag,
|
|
3204
3204
|
order: -1,
|
|
3205
3205
|
// the last property displayed
|
|
3206
3206
|
section: ce.Basic
|
|
3207
3207
|
}
|
|
3208
|
-
}, v =
|
|
3209
|
-
var
|
|
3208
|
+
}, v = V(!1), x = V(!1), j = V(""), S = V({}), K = I(() => {
|
|
3209
|
+
var h, q, R;
|
|
3210
3210
|
if (!S.value)
|
|
3211
3211
|
return [];
|
|
3212
|
-
const
|
|
3212
|
+
const T = [], z = Object.keys(S.value).length;
|
|
3213
3213
|
for (const L in S.value) {
|
|
3214
|
-
const
|
|
3215
|
-
let
|
|
3216
|
-
(J || J === 0) && (
|
|
3214
|
+
const E = (q = (h = r.configSchema) == null ? void 0 : h[L]) == null ? void 0 : q.order, J = (R = k[L]) == null ? void 0 : R.order;
|
|
3215
|
+
let Q = z;
|
|
3216
|
+
(J || J === 0) && (Q = J === -1 ? z + 1 : J), E && (Q = E === -1 ? z + 1 : E), T.push([L, Q]);
|
|
3217
3217
|
}
|
|
3218
|
-
return
|
|
3219
|
-
return L[1] -
|
|
3220
|
-
}),
|
|
3221
|
-
var
|
|
3222
|
-
const
|
|
3218
|
+
return T.sort(function(L, E) {
|
|
3219
|
+
return L[1] - E[1];
|
|
3220
|
+
}), T.map((L) => {
|
|
3221
|
+
var E, J;
|
|
3222
|
+
const Q = L[0], pe = (E = S.value) == null ? void 0 : E[Q], fe = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ae = k[Q];
|
|
3223
3223
|
return {
|
|
3224
|
-
key:
|
|
3224
|
+
key: Q,
|
|
3225
3225
|
value: pe,
|
|
3226
3226
|
hidden: fe.hidden || !1,
|
|
3227
|
-
type: fe.type ?? ((ae == null ? void 0 : ae.type) ||
|
|
3228
|
-
label: fe.label ?? ((ae == null ? void 0 : ae.label) || c(
|
|
3227
|
+
type: fe.type ?? ((ae == null ? void 0 : ae.type) || X.Text),
|
|
3228
|
+
label: fe.label ?? ((ae == null ? void 0 : ae.label) || c(Q)),
|
|
3229
3229
|
tooltip: fe.tooltip ?? ((ae == null ? void 0 : ae.tooltip) || void 0),
|
|
3230
3230
|
section: fe.section ?? ((ae == null ? void 0 : ae.section) || ce.Advanced)
|
|
3231
3231
|
};
|
|
3232
3232
|
}).filter((L) => !L.hidden && L.key !== r.pluginConfigKey);
|
|
3233
|
-
}),
|
|
3234
|
-
var
|
|
3233
|
+
}), N = I(() => {
|
|
3234
|
+
var h, q;
|
|
3235
3235
|
if (!S.value || !r.pluginConfigKey)
|
|
3236
3236
|
return [];
|
|
3237
|
-
const
|
|
3238
|
-
for (const L in
|
|
3239
|
-
const
|
|
3240
|
-
let
|
|
3241
|
-
|
|
3237
|
+
const R = S.value[r.pluginConfigKey] || {}, T = Object.keys(R).length, z = [];
|
|
3238
|
+
for (const L in R) {
|
|
3239
|
+
const E = (q = (h = r.pluginConfigSchema) == null ? void 0 : h[L]) == null ? void 0 : q.order, J = R[L];
|
|
3240
|
+
let Q = J != null && J !== "" ? T - 1 : T;
|
|
3241
|
+
E && (Q = E === -1 ? T + 1 : E), z.push([L, Q]);
|
|
3242
3242
|
}
|
|
3243
|
-
return z.sort(function(L,
|
|
3244
|
-
return L[1] -
|
|
3243
|
+
return z.sort(function(L, E) {
|
|
3244
|
+
return L[1] - E[1];
|
|
3245
3245
|
}), z.map((L) => {
|
|
3246
|
-
var
|
|
3247
|
-
const J = L[0],
|
|
3246
|
+
var E;
|
|
3247
|
+
const J = L[0], Q = R[J], pe = ((E = r.pluginConfigSchema) == null ? void 0 : E[J]) || {};
|
|
3248
3248
|
return {
|
|
3249
3249
|
key: J,
|
|
3250
|
-
value:
|
|
3250
|
+
value: Q,
|
|
3251
3251
|
hidden: pe.hidden || !1,
|
|
3252
|
-
type: pe.type ??
|
|
3252
|
+
type: pe.type ?? X.Text,
|
|
3253
3253
|
label: pe.label ?? c(J),
|
|
3254
3254
|
tooltip: pe.tooltip ?? void 0,
|
|
3255
3255
|
section: ce.Plugin
|
|
3256
3256
|
};
|
|
3257
3257
|
}).filter((L) => !L.hidden);
|
|
3258
|
-
}),
|
|
3259
|
-
var
|
|
3258
|
+
}), Z = I(() => {
|
|
3259
|
+
var h, q, R, T;
|
|
3260
3260
|
return {
|
|
3261
|
-
basic: (
|
|
3262
|
-
advanced: (q =
|
|
3263
|
-
plugin: (
|
|
3261
|
+
basic: (h = K.value) == null ? void 0 : h.filter((z) => z.section === ce.Basic),
|
|
3262
|
+
advanced: (q = K.value) == null ? void 0 : q.filter((z) => z.section === ce.Advanced),
|
|
3263
|
+
plugin: (T = N.value) == null ? void 0 : T.concat((R = K.value) == null ? void 0 : R.filter((z) => z.section === ce.Plugin))
|
|
3264
3264
|
};
|
|
3265
3265
|
}), s = I(() => {
|
|
3266
|
-
const
|
|
3267
|
-
return
|
|
3266
|
+
const h = [];
|
|
3267
|
+
return Z.value.basic.length && h.push("basic"), Z.value.advanced.length && h.push("advanced"), Z.value.plugin.length && h.push("plugin"), h;
|
|
3268
3268
|
}), y = I(() => {
|
|
3269
|
-
var
|
|
3270
|
-
let
|
|
3271
|
-
return r.config.app === "konnect" ?
|
|
3269
|
+
var h, q;
|
|
3270
|
+
let R = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3271
|
+
return r.config.app === "konnect" ? R = R.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (R = R.replace(/\/{workspace}/gi, (q = r.config) != null && q.workspace ? `/${r.config.workspace}` : "")), R = R.replace(/{id}/gi, r.config.entityId), R;
|
|
3272
3272
|
});
|
|
3273
|
-
return _e(v, (
|
|
3274
|
-
a("loading",
|
|
3275
|
-
}, { immediate: !0 }),
|
|
3273
|
+
return _e(v, (h) => {
|
|
3274
|
+
a("loading", h);
|
|
3275
|
+
}, { immediate: !0 }), At(async () => {
|
|
3276
3276
|
x.value = !1, v.value = !0;
|
|
3277
3277
|
try {
|
|
3278
|
-
const { data:
|
|
3278
|
+
const { data: h } = await l.get(y.value);
|
|
3279
3279
|
if (r.dataKey)
|
|
3280
|
-
if (typeof
|
|
3281
|
-
S.value = { ...
|
|
3280
|
+
if (typeof h[r.dataKey] < "u")
|
|
3281
|
+
S.value = { ...h[r.dataKey] };
|
|
3282
3282
|
else
|
|
3283
3283
|
throw new Error(n("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
3284
3284
|
else
|
|
3285
|
-
S.value = { ...
|
|
3285
|
+
S.value = { ...h };
|
|
3286
3286
|
Object.keys(r.configSchema).filter((q) => r.configSchema[q].forceShow).forEach((q) => {
|
|
3287
3287
|
S.value && typeof S.value[q] > "u" && (S.value[q] = null);
|
|
3288
|
-
}), a("fetch:success",
|
|
3289
|
-
} catch (
|
|
3290
|
-
const q = o(
|
|
3291
|
-
|
|
3288
|
+
}), a("fetch:success", h);
|
|
3289
|
+
} catch (h) {
|
|
3290
|
+
const q = o(h);
|
|
3291
|
+
j.value = q.startsWith("code") ? n("baseConfigCard.errors.load") : q, x.value = !0, a("fetch:error", h);
|
|
3292
3292
|
} finally {
|
|
3293
3293
|
v.value = !1;
|
|
3294
3294
|
}
|
|
3295
|
-
}), (
|
|
3296
|
-
const
|
|
3295
|
+
}), (h, q) => {
|
|
3296
|
+
const R = B("KLabel"), T = B("KSelect"), z = B("KButton"), L = B("KSkeleton"), E = B("KEmptyState"), J = B("KCard");
|
|
3297
3297
|
return w(), D(J, {
|
|
3298
3298
|
class: "kong-ui-entity-base-config-card",
|
|
3299
3299
|
"title-tag": e.titleTag
|
|
3300
3300
|
}, Be({
|
|
3301
|
-
actions:
|
|
3302
|
-
|
|
3303
|
-
te(
|
|
3304
|
-
C(
|
|
3301
|
+
actions: b(() => [
|
|
3302
|
+
F("div", Al, [
|
|
3303
|
+
te(h.$slots, "actions", {}, void 0, !0),
|
|
3304
|
+
C(R, {
|
|
3305
3305
|
class: "config-format-select-label",
|
|
3306
3306
|
"data-testid": "config-format-select-label"
|
|
3307
3307
|
}, {
|
|
3308
|
-
default:
|
|
3309
|
-
H(
|
|
3308
|
+
default: b(() => [
|
|
3309
|
+
H($(e.label), 1)
|
|
3310
3310
|
]),
|
|
3311
3311
|
_: 1
|
|
3312
3312
|
}),
|
|
3313
|
-
C(
|
|
3313
|
+
C(T, {
|
|
3314
3314
|
"data-testid": "select-config-format",
|
|
3315
3315
|
items: u,
|
|
3316
3316
|
onChange: p
|
|
@@ -3321,8 +3321,8 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3321
3321
|
class: "book-icon",
|
|
3322
3322
|
"data-testid": "book-icon"
|
|
3323
3323
|
}, {
|
|
3324
|
-
default:
|
|
3325
|
-
|
|
3324
|
+
default: b(() => [
|
|
3325
|
+
F("a", {
|
|
3326
3326
|
href: e.configCardDoc,
|
|
3327
3327
|
rel: "noopener",
|
|
3328
3328
|
target: "_blank"
|
|
@@ -3334,35 +3334,35 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3334
3334
|
})) : G("", !0)
|
|
3335
3335
|
])
|
|
3336
3336
|
]),
|
|
3337
|
-
default:
|
|
3337
|
+
default: b(() => [
|
|
3338
3338
|
v.value ? (w(), D(L, {
|
|
3339
3339
|
key: 0,
|
|
3340
3340
|
"data-testid": "config-card-loader",
|
|
3341
3341
|
"table-columns": 2,
|
|
3342
3342
|
type: "table"
|
|
3343
|
-
})) : x.value ? (w(), D(
|
|
3343
|
+
})) : x.value ? (w(), D(E, {
|
|
3344
3344
|
key: 1,
|
|
3345
3345
|
"data-testid": "config-card-fetch-error",
|
|
3346
3346
|
"icon-variant": "error"
|
|
3347
3347
|
}, {
|
|
3348
|
-
default:
|
|
3349
|
-
|
|
3348
|
+
default: b(() => [
|
|
3349
|
+
F("h3", null, $(j.value), 1)
|
|
3350
3350
|
]),
|
|
3351
3351
|
_: 1
|
|
3352
3352
|
})) : G("", !0),
|
|
3353
|
-
|
|
3353
|
+
F("div", $l, [
|
|
3354
3354
|
C(tl, {
|
|
3355
3355
|
config: e.config,
|
|
3356
3356
|
"fetcher-url": y.value,
|
|
3357
3357
|
format: m.value,
|
|
3358
3358
|
"prop-list-types": s.value,
|
|
3359
|
-
"property-collections":
|
|
3359
|
+
"property-collections": Z.value,
|
|
3360
3360
|
record: S.value
|
|
3361
3361
|
}, Be({ _: 2 }, [
|
|
3362
|
-
ye(Object.keys(
|
|
3363
|
-
name:
|
|
3364
|
-
fn:
|
|
3365
|
-
te(
|
|
3362
|
+
ye(Object.keys(h.$slots), (Q) => ({
|
|
3363
|
+
name: Q,
|
|
3364
|
+
fn: b(({ row: pe, rowValue: fe }) => [
|
|
3365
|
+
te(h.$slots, Q, {
|
|
3366
3366
|
row: pe,
|
|
3367
3367
|
rowValue: fe
|
|
3368
3368
|
}, void 0, !0)
|
|
@@ -3375,10 +3375,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3375
3375
|
}, [
|
|
3376
3376
|
e.hideTitle ? void 0 : {
|
|
3377
3377
|
name: "title",
|
|
3378
|
-
fn:
|
|
3379
|
-
|
|
3380
|
-
te(
|
|
3381
|
-
H(
|
|
3378
|
+
fn: b(() => [
|
|
3379
|
+
F("span", xl, [
|
|
3380
|
+
te(h.$slots, "title", {}, () => [
|
|
3381
|
+
H($(f(n)("baseConfigCard.title")), 1)
|
|
3382
3382
|
], !0)
|
|
3383
3383
|
])
|
|
3384
3384
|
]),
|
|
@@ -3387,10 +3387,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3387
3387
|
]), 1032, ["title-tag"]);
|
|
3388
3388
|
};
|
|
3389
3389
|
}
|
|
3390
|
-
}),
|
|
3390
|
+
}), Nl = /* @__PURE__ */ ve(jl, [["__scopeId", "data-v-f40a683b"]]), Ol = ["novalidate"], Ml = {
|
|
3391
3391
|
class: "form-actions",
|
|
3392
3392
|
"data-testid": "form-actions"
|
|
3393
|
-
},
|
|
3393
|
+
}, Fl = /* @__PURE__ */ ee({
|
|
3394
3394
|
__name: "EntityBaseForm",
|
|
3395
3395
|
props: {
|
|
3396
3396
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3452,19 +3452,19 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3452
3452
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3453
3453
|
setup(e, { emit: t }) {
|
|
3454
3454
|
var i;
|
|
3455
|
-
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u =
|
|
3455
|
+
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u = V(!1), m = V(!1), p = V(""), k = I(() => r.canSubmit === !1 || r.isReadonly), v = V(!1), x = I(() => {
|
|
3456
3456
|
var s, y;
|
|
3457
|
-
let
|
|
3458
|
-
return r.config.app === "konnect" ?
|
|
3459
|
-
}),
|
|
3457
|
+
let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3458
|
+
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((s = r.config) == null ? void 0 : s.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (y = r.config) != null && y.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
3459
|
+
}), j = () => {
|
|
3460
3460
|
v.value = !v.value;
|
|
3461
3461
|
}, S = () => {
|
|
3462
|
-
r.config.cancelRoute ? n.push(r.config.cancelRoute) :
|
|
3463
|
-
},
|
|
3462
|
+
r.config.cancelRoute ? n.push(r.config.cancelRoute) : K();
|
|
3463
|
+
}, K = () => {
|
|
3464
3464
|
a("cancel");
|
|
3465
|
-
},
|
|
3465
|
+
}, N = () => {
|
|
3466
3466
|
k.value || a("submit");
|
|
3467
|
-
},
|
|
3467
|
+
}, Z = V([
|
|
3468
3468
|
{
|
|
3469
3469
|
title: o("baseForm.configuration.yaml"),
|
|
3470
3470
|
hash: "#yaml"
|
|
@@ -3476,7 +3476,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3476
3476
|
]);
|
|
3477
3477
|
return _e(() => u.value, (s) => {
|
|
3478
3478
|
a("loading", s);
|
|
3479
|
-
}, { immediate: !0 }),
|
|
3479
|
+
}, { immediate: !0 }), At(async () => {
|
|
3480
3480
|
if (r.editId)
|
|
3481
3481
|
try {
|
|
3482
3482
|
m.value = !1, u.value = !0;
|
|
@@ -3489,10 +3489,10 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3489
3489
|
u.value = !1;
|
|
3490
3490
|
}
|
|
3491
3491
|
}), (s, y) => {
|
|
3492
|
-
const
|
|
3493
|
-
return w(), D(
|
|
3494
|
-
default:
|
|
3495
|
-
u.value ? (w(), D(
|
|
3492
|
+
const h = B("KSkeleton"), q = B("KEmptyState"), R = B("KAlert"), T = B("KButton"), z = B("KTabs"), L = B("KSlideout"), E = B("KCard");
|
|
3493
|
+
return w(), D(E, { class: "kong-ui-entity-base-form" }, {
|
|
3494
|
+
default: b(() => [
|
|
3495
|
+
u.value ? (w(), D(h, {
|
|
3496
3496
|
key: 0,
|
|
3497
3497
|
type: "form"
|
|
3498
3498
|
})) : m.value ? (w(), D(q, {
|
|
@@ -3502,55 +3502,55 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3502
3502
|
"icon-variant": "error",
|
|
3503
3503
|
onClickAction: S
|
|
3504
3504
|
}, {
|
|
3505
|
-
default:
|
|
3506
|
-
|
|
3505
|
+
default: b(() => [
|
|
3506
|
+
F("h3", null, $(p.value), 1)
|
|
3507
3507
|
]),
|
|
3508
3508
|
_: 1
|
|
3509
|
-
}, 8, ["action-button-text"])) : (w(),
|
|
3509
|
+
}, 8, ["action-button-text"])) : (w(), A("form", {
|
|
3510
3510
|
key: 2,
|
|
3511
3511
|
"data-testid": "form-content",
|
|
3512
3512
|
novalidate: r.noValidate,
|
|
3513
|
-
onReset: qe(
|
|
3514
|
-
onSubmit: qe(
|
|
3513
|
+
onReset: qe(K, ["prevent"]),
|
|
3514
|
+
onSubmit: qe(N, ["prevent"])
|
|
3515
3515
|
}, [
|
|
3516
3516
|
te(s.$slots, "default", {}, void 0, !0),
|
|
3517
|
-
e.errorMessage ? (w(), D(
|
|
3517
|
+
e.errorMessage ? (w(), D(R, {
|
|
3518
3518
|
key: 0,
|
|
3519
3519
|
appearance: "danger",
|
|
3520
3520
|
"data-testid": "form-error",
|
|
3521
3521
|
message: e.errorMessage
|
|
3522
3522
|
}, null, 8, ["message"])) : G("", !0),
|
|
3523
|
-
|
|
3523
|
+
F("div", Ml, [
|
|
3524
3524
|
te(s.$slots, "form-actions", {}, () => [
|
|
3525
|
-
C(
|
|
3525
|
+
C(T, {
|
|
3526
3526
|
appearance: "tertiary",
|
|
3527
3527
|
"data-testid": "form-view-configuration",
|
|
3528
|
-
onClick: y[0] || (y[0] = (J) =>
|
|
3528
|
+
onClick: y[0] || (y[0] = (J) => j())
|
|
3529
3529
|
}, {
|
|
3530
|
-
default:
|
|
3531
|
-
H(
|
|
3530
|
+
default: b(() => [
|
|
3531
|
+
H($(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3532
3532
|
]),
|
|
3533
3533
|
_: 1
|
|
3534
3534
|
}),
|
|
3535
|
-
C(
|
|
3535
|
+
C(T, {
|
|
3536
3536
|
appearance: "secondary",
|
|
3537
3537
|
"data-testid": "form-cancel",
|
|
3538
3538
|
disabled: e.isReadonly,
|
|
3539
3539
|
type: "reset"
|
|
3540
3540
|
}, {
|
|
3541
|
-
default:
|
|
3542
|
-
H(
|
|
3541
|
+
default: b(() => [
|
|
3542
|
+
H($(f(o)("baseForm.actions.cancel")), 1)
|
|
3543
3543
|
]),
|
|
3544
3544
|
_: 1
|
|
3545
3545
|
}, 8, ["disabled"]),
|
|
3546
|
-
C(
|
|
3546
|
+
C(T, {
|
|
3547
3547
|
appearance: "primary",
|
|
3548
3548
|
"data-testid": "form-submit",
|
|
3549
3549
|
disabled: k.value,
|
|
3550
3550
|
type: "submit"
|
|
3551
3551
|
}, {
|
|
3552
|
-
default:
|
|
3553
|
-
H(
|
|
3552
|
+
default: b(() => [
|
|
3553
|
+
H($(f(o)("baseForm.actions.save")), 1)
|
|
3554
3554
|
]),
|
|
3555
3555
|
_: 1
|
|
3556
3556
|
}, 8, ["disabled"])
|
|
@@ -3564,15 +3564,15 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3564
3564
|
"offset-top": 60,
|
|
3565
3565
|
title: f(o)("baseForm.configuration.title"),
|
|
3566
3566
|
visible: v.value,
|
|
3567
|
-
onClose: y[1] || (y[1] = (J) =>
|
|
3567
|
+
onClose: y[1] || (y[1] = (J) => j())
|
|
3568
3568
|
}, {
|
|
3569
|
-
default:
|
|
3570
|
-
|
|
3569
|
+
default: b(() => [
|
|
3570
|
+
F("div", null, $(f(o)("baseForm.configuration.message")), 1),
|
|
3571
3571
|
C(z, {
|
|
3572
3572
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3573
|
-
tabs:
|
|
3573
|
+
tabs: Z.value
|
|
3574
3574
|
}, {
|
|
3575
|
-
json:
|
|
3575
|
+
json: b(() => [
|
|
3576
3576
|
C(wi, {
|
|
3577
3577
|
config: e.config,
|
|
3578
3578
|
"fetcher-url": x.value,
|
|
@@ -3580,7 +3580,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3580
3580
|
"request-method": r.editId ? "put" : "post"
|
|
3581
3581
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3582
3582
|
]),
|
|
3583
|
-
yaml:
|
|
3583
|
+
yaml: b(() => [
|
|
3584
3584
|
C(sr, {
|
|
3585
3585
|
"yaml-record": r.formFields
|
|
3586
3586
|
}, null, 8, ["yaml-record"])
|
|
@@ -3595,10 +3595,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3595
3595
|
});
|
|
3596
3596
|
};
|
|
3597
3597
|
}
|
|
3598
|
-
}),
|
|
3599
|
-
key: 0,
|
|
3600
|
-
"data-testid": "first-col"
|
|
3601
|
-
}, Ll = /* @__PURE__ */ X({
|
|
3598
|
+
}), El = /* @__PURE__ */ ve(Fl, [["__scopeId", "data-v-3def74fe"]]), Vl = ["data-truncate"], Ll = /* @__PURE__ */ ee({
|
|
3602
3599
|
__name: "EntityBaseTableCell",
|
|
3603
3600
|
props: {
|
|
3604
3601
|
keyName: {
|
|
@@ -3608,71 +3605,83 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3608
3605
|
rowEl: {
|
|
3609
3606
|
type: [Object, null],
|
|
3610
3607
|
required: !0
|
|
3608
|
+
},
|
|
3609
|
+
tooltip: {
|
|
3610
|
+
type: Boolean,
|
|
3611
|
+
default: !1
|
|
3611
3612
|
}
|
|
3612
3613
|
},
|
|
3613
3614
|
setup(e) {
|
|
3614
3615
|
const t = e, i = I(() => {
|
|
3615
|
-
var
|
|
3616
|
-
return ((
|
|
3616
|
+
var S;
|
|
3617
|
+
return ((S = t.rowEl) == null ? void 0 : S.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3617
3618
|
}), a = I(() => {
|
|
3618
|
-
var
|
|
3619
|
-
return ((
|
|
3619
|
+
var S;
|
|
3620
|
+
return ((S = i.value) == null ? void 0 : S.querySelector('[data-truncate="true"]')) || null;
|
|
3620
3621
|
}), r = I(() => {
|
|
3621
|
-
var
|
|
3622
|
-
const
|
|
3623
|
-
return
|
|
3624
|
-
});
|
|
3625
|
-
let
|
|
3626
|
-
const
|
|
3627
|
-
|
|
3628
|
-
},
|
|
3629
|
-
var
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3622
|
+
var S, K;
|
|
3623
|
+
const N = (S = t.rowEl) == null ? void 0 : S.querySelectorAll("td");
|
|
3624
|
+
return N ? ((K = N[0]) == null ? void 0 : K.getAttribute("data-testid")) === t.keyName : !1;
|
|
3625
|
+
}), n = I(() => r.value || t.tooltip);
|
|
3626
|
+
let o;
|
|
3627
|
+
const c = () => {
|
|
3628
|
+
o && (o.disconnect(), o = void 0);
|
|
3629
|
+
}, l = () => {
|
|
3630
|
+
var S, K, N;
|
|
3631
|
+
let Z = ((S = i.value) == null ? void 0 : S.clientWidth) || 0;
|
|
3632
|
+
if (i.value && "getComputedStyle" in window) {
|
|
3633
|
+
const s = window.getComputedStyle(i.value);
|
|
3634
|
+
Z -= (parseFloat(s.paddingLeft) || 0) + (parseFloat(s.paddingRight) || 0);
|
|
3635
|
+
}
|
|
3636
|
+
m.value = ((K = a.value) == null ? void 0 : K.getBoundingClientRect().width) || 0, p.value = Z, k.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
|
|
3637
|
+
}, u = V({}), m = V(0), p = V(0), k = V(""), v = I(() => [a.value, i.value]), x = _e(
|
|
3638
|
+
v,
|
|
3639
|
+
(S) => {
|
|
3640
|
+
if (n.value && (c(), "ResizeObserver" in window && window)) {
|
|
3641
|
+
o = new ResizeObserver((K) => {
|
|
3636
3642
|
window.requestAnimationFrame(() => {
|
|
3637
|
-
!Array.isArray(
|
|
3643
|
+
!Array.isArray(K) || !K.length || l();
|
|
3638
3644
|
});
|
|
3639
3645
|
});
|
|
3640
|
-
for (const
|
|
3641
|
-
|
|
3646
|
+
for (const K of S)
|
|
3647
|
+
K && o.observe(K);
|
|
3642
3648
|
}
|
|
3643
3649
|
},
|
|
3644
3650
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3645
|
-
),
|
|
3651
|
+
), j = I(() => n.value ? m.value > p.value : !1);
|
|
3646
3652
|
return ui(() => {
|
|
3647
|
-
|
|
3653
|
+
l();
|
|
3648
3654
|
}), gr(() => {
|
|
3649
|
-
|
|
3650
|
-
}), (
|
|
3651
|
-
const
|
|
3652
|
-
return w(),
|
|
3655
|
+
x();
|
|
3656
|
+
}), (S, K) => {
|
|
3657
|
+
const N = B("KTooltip");
|
|
3658
|
+
return w(), A("span", {
|
|
3653
3659
|
ref_key: "contentRef",
|
|
3654
|
-
ref:
|
|
3660
|
+
ref: u,
|
|
3655
3661
|
class: "content-wrapper"
|
|
3656
3662
|
}, [
|
|
3657
|
-
|
|
3658
|
-
|
|
3663
|
+
n.value ? (w(), A("span", {
|
|
3664
|
+
key: 0,
|
|
3665
|
+
"data-truncate": n.value || void 0
|
|
3666
|
+
}, [
|
|
3667
|
+
C(N, {
|
|
3659
3668
|
"max-width": "300",
|
|
3660
3669
|
placement: "bottomStart",
|
|
3661
|
-
text:
|
|
3670
|
+
text: j.value ? k.value : ""
|
|
3662
3671
|
}, {
|
|
3663
|
-
default:
|
|
3664
|
-
te(
|
|
3672
|
+
default: b(() => [
|
|
3673
|
+
te(S.$slots, "default", {}, void 0, !0)
|
|
3665
3674
|
]),
|
|
3666
3675
|
_: 3
|
|
3667
3676
|
}, 8, ["text"])
|
|
3668
|
-
])) : te(
|
|
3677
|
+
], 8, Vl)) : te(S.$slots, "default", { key: 1 }, void 0, !0)
|
|
3669
3678
|
], 512);
|
|
3670
3679
|
};
|
|
3671
3680
|
}
|
|
3672
|
-
}), ql = /* @__PURE__ */ ve(Ll, [["__scopeId", "data-v-
|
|
3681
|
+
}), ql = /* @__PURE__ */ ve(Ll, [["__scopeId", "data-v-6019026f"]]), Ul = { class: "toolbar-container" }, Kl = {
|
|
3673
3682
|
key: 0,
|
|
3674
3683
|
class: "toolbar-button-container"
|
|
3675
|
-
}, Bl = ["data-testid"],
|
|
3684
|
+
}, Bl = ["data-testid"], Rl = /* @__PURE__ */ ee({
|
|
3676
3685
|
__name: "EntityBaseTable",
|
|
3677
3686
|
props: {
|
|
3678
3687
|
// table header configuration
|
|
@@ -3787,7 +3796,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3787
3796
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3788
3797
|
setup(e, { emit: t }) {
|
|
3789
3798
|
const i = e, a = t, { i18n: { t: r } } = ne.useI18n(), n = I(() => {
|
|
3790
|
-
var y,
|
|
3799
|
+
var y, h;
|
|
3791
3800
|
return typeof i.errorMessage == "string" ? {
|
|
3792
3801
|
hasError: !!i.errorMessage,
|
|
3793
3802
|
title: i.errorMessage,
|
|
@@ -3795,15 +3804,15 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3795
3804
|
} : {
|
|
3796
3805
|
hasError: !!i.errorMessage,
|
|
3797
3806
|
title: (y = i.errorMessage) == null ? void 0 : y.title,
|
|
3798
|
-
message: (
|
|
3807
|
+
message: (h = i.errorMessage) == null ? void 0 : h.message
|
|
3799
3808
|
};
|
|
3800
3809
|
}), o = I(() => i.cacheIdentifier || i.preferencesStorageKey), c = (y) => y.hasData || !!i.query, l = I(() => {
|
|
3801
3810
|
const y = [];
|
|
3802
|
-
return Object.keys(i.tableHeaders).forEach((
|
|
3803
|
-
const q = i.tableHeaders[
|
|
3811
|
+
return Object.keys(i.tableHeaders).forEach((h) => {
|
|
3812
|
+
const q = i.tableHeaders[h];
|
|
3804
3813
|
y.push({
|
|
3805
|
-
label: q.label ??
|
|
3806
|
-
key:
|
|
3814
|
+
label: q.label ?? h,
|
|
3815
|
+
key: h,
|
|
3807
3816
|
sortable: q.sortable ?? !1
|
|
3808
3817
|
});
|
|
3809
3818
|
}), i.enableEntityActions && y.push({
|
|
@@ -3814,44 +3823,44 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3814
3823
|
"data-rowid": y.id,
|
|
3815
3824
|
"data-testid": y.name,
|
|
3816
3825
|
...i.rowAttributes(y)
|
|
3817
|
-
}), m =
|
|
3818
|
-
var
|
|
3819
|
-
return (
|
|
3826
|
+
}), m = V({}), p = (y) => {
|
|
3827
|
+
var h;
|
|
3828
|
+
return (h = m.value) == null ? void 0 : h.$el.querySelector(`[data-rowid="${y.id}"]`);
|
|
3820
3829
|
}, k = (y) => {
|
|
3821
|
-
const
|
|
3830
|
+
const h = {
|
|
3822
3831
|
"data-testid": y.headerKey,
|
|
3823
3832
|
...i.cellAttributes(y)
|
|
3824
3833
|
};
|
|
3825
|
-
return y.colIndex === 0 && (
|
|
3834
|
+
return y.colIndex === 0 && (h.style = {
|
|
3826
3835
|
maxWidth: "250px",
|
|
3827
3836
|
overflowX: "hidden",
|
|
3828
3837
|
textOverflow: "ellipsis"
|
|
3829
|
-
}),
|
|
3838
|
+
}), h;
|
|
3830
3839
|
}, v = () => {
|
|
3831
3840
|
a("empty-state-cta-clicked"), x();
|
|
3832
3841
|
}, x = () => {
|
|
3833
3842
|
a("clear-search-input");
|
|
3834
|
-
},
|
|
3835
|
-
a("click:row",
|
|
3843
|
+
}, j = I(() => i.disableRowClick ? void 0 : (y, h) => {
|
|
3844
|
+
a("click:row", h);
|
|
3836
3845
|
}), S = (y) => {
|
|
3837
3846
|
a("sort", y);
|
|
3838
|
-
}, { setTablePreferences:
|
|
3839
|
-
const y =
|
|
3847
|
+
}, { setTablePreferences: K, getTablePreferences: N } = Nr(), Z = I(() => {
|
|
3848
|
+
const y = N(i.preferencesStorageKey);
|
|
3840
3849
|
return {
|
|
3841
3850
|
...i.initialFetcherParams,
|
|
3842
3851
|
...y
|
|
3843
3852
|
};
|
|
3844
3853
|
}), s = (y) => {
|
|
3845
|
-
i.preferencesStorageKey &&
|
|
3854
|
+
i.preferencesStorageKey && K(i.preferencesStorageKey, y);
|
|
3846
3855
|
};
|
|
3847
|
-
return (y,
|
|
3848
|
-
const q =
|
|
3856
|
+
return (y, h) => {
|
|
3857
|
+
const q = B("KIcon"), R = B("KButton"), T = B("KDropdown"), z = B("KTable"), L = B("KCard");
|
|
3849
3858
|
return w(), D(L, {
|
|
3850
3859
|
class: "kong-ui-entity-base-table",
|
|
3851
3860
|
title: e.title,
|
|
3852
3861
|
"title-tag": e.titleTag
|
|
3853
3862
|
}, {
|
|
3854
|
-
default:
|
|
3863
|
+
default: b(() => [
|
|
3855
3864
|
C(z, {
|
|
3856
3865
|
ref_key: "tableRefs",
|
|
3857
3866
|
ref: m,
|
|
@@ -3872,49 +3881,49 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3872
3881
|
"has-error": n.value.hasError,
|
|
3873
3882
|
headers: l.value,
|
|
3874
3883
|
"hide-pagination-when-optional": "",
|
|
3875
|
-
"initial-fetcher-params":
|
|
3884
|
+
"initial-fetcher-params": Z.value,
|
|
3876
3885
|
"is-loading": e.isLoading,
|
|
3877
3886
|
"pagination-type": e.paginationType,
|
|
3878
3887
|
"row-attrs": u,
|
|
3879
3888
|
"search-input": e.query,
|
|
3880
3889
|
onKtableEmptyStateCtaClicked: v,
|
|
3881
|
-
"onRow:click":
|
|
3882
|
-
onSort:
|
|
3890
|
+
"onRow:click": j.value,
|
|
3891
|
+
onSort: h[0] || (h[0] = (E) => S(E)),
|
|
3883
3892
|
"onUpdate:tablePreferences": s
|
|
3884
3893
|
}, Be({
|
|
3885
|
-
toolbar:
|
|
3886
|
-
Ce(
|
|
3894
|
+
toolbar: b(({ state: E }) => [
|
|
3895
|
+
Ce(F("div", Ul, [
|
|
3887
3896
|
te(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3888
|
-
y.$slots["toolbar-button"] ? (w(),
|
|
3897
|
+
y.$slots["toolbar-button"] ? (w(), A("div", Kl, [
|
|
3889
3898
|
te(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
3890
3899
|
])) : G("", !0)
|
|
3891
3900
|
], 512), [
|
|
3892
|
-
[Se, c(
|
|
3901
|
+
[Se, c(E)]
|
|
3893
3902
|
])
|
|
3894
3903
|
]),
|
|
3895
|
-
actions:
|
|
3896
|
-
|
|
3904
|
+
actions: b(({ row: E, rowKey: J, rowValue: Q }) => [
|
|
3905
|
+
F("div", {
|
|
3897
3906
|
class: "actions-container",
|
|
3898
|
-
"data-testid":
|
|
3907
|
+
"data-testid": E.name
|
|
3899
3908
|
}, [
|
|
3900
|
-
C(
|
|
3909
|
+
C(T, {
|
|
3901
3910
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3902
3911
|
width: e.dropdownMenuWidth
|
|
3903
3912
|
}, {
|
|
3904
|
-
items:
|
|
3913
|
+
items: b(() => [
|
|
3905
3914
|
te(y.$slots, "actions", {
|
|
3906
|
-
row:
|
|
3915
|
+
row: E,
|
|
3907
3916
|
rowKey: J,
|
|
3908
|
-
rowValue:
|
|
3917
|
+
rowValue: Q
|
|
3909
3918
|
}, void 0, !0)
|
|
3910
3919
|
]),
|
|
3911
|
-
default:
|
|
3912
|
-
C(
|
|
3920
|
+
default: b(() => [
|
|
3921
|
+
C(R, {
|
|
3913
3922
|
class: "actions-trigger",
|
|
3914
3923
|
"data-testid": "overflow-actions-button",
|
|
3915
3924
|
size: "small"
|
|
3916
3925
|
}, {
|
|
3917
|
-
icon:
|
|
3926
|
+
icon: b(() => [
|
|
3918
3927
|
C(q, {
|
|
3919
3928
|
color: f(ua),
|
|
3920
3929
|
icon: "more",
|
|
@@ -3930,29 +3939,30 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3930
3939
|
]),
|
|
3931
3940
|
_: 2
|
|
3932
3941
|
}, [
|
|
3933
|
-
ye(e.tableHeaders, (
|
|
3942
|
+
ye(e.tableHeaders, (E, J) => ({
|
|
3934
3943
|
name: J,
|
|
3935
|
-
fn:
|
|
3944
|
+
fn: b(({ row: Q, rowKey: pe, rowValue: fe }) => [
|
|
3936
3945
|
C(ql, {
|
|
3937
3946
|
"key-name": String(J),
|
|
3938
|
-
"row-el": p(
|
|
3947
|
+
"row-el": p(Q),
|
|
3948
|
+
tooltip: E.tooltip
|
|
3939
3949
|
}, {
|
|
3940
|
-
default:
|
|
3950
|
+
default: b(() => [
|
|
3941
3951
|
te(y.$slots, J, {
|
|
3942
|
-
row:
|
|
3952
|
+
row: Q,
|
|
3943
3953
|
rowKey: pe,
|
|
3944
3954
|
rowValue: fe
|
|
3945
3955
|
}, () => [
|
|
3946
|
-
H(
|
|
3956
|
+
H($(fe), 1)
|
|
3947
3957
|
], !0)
|
|
3948
3958
|
]),
|
|
3949
3959
|
_: 2
|
|
3950
|
-
}, 1032, ["key-name", "row-el"])
|
|
3960
|
+
}, 1032, ["key-name", "row-el", "tooltip"])
|
|
3951
3961
|
])
|
|
3952
3962
|
})),
|
|
3953
3963
|
e.query ? void 0 : {
|
|
3954
3964
|
name: "empty-state-action-icon",
|
|
3955
|
-
fn:
|
|
3965
|
+
fn: b(() => [
|
|
3956
3966
|
C(f(ll))
|
|
3957
3967
|
]),
|
|
3958
3968
|
key: "0"
|
|
@@ -3963,13 +3973,13 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
3963
3973
|
}, 8, ["title", "title-tag"]);
|
|
3964
3974
|
};
|
|
3965
3975
|
}
|
|
3966
|
-
}),
|
|
3976
|
+
}), Pl = /* @__PURE__ */ ve(Rl, [["__scopeId", "data-v-adb02213"]]), Dl = {
|
|
3967
3977
|
key: 0,
|
|
3968
3978
|
class: "kong-ui-entity-delete-error"
|
|
3969
3979
|
}, zl = {
|
|
3970
3980
|
key: 1,
|
|
3971
3981
|
class: "description"
|
|
3972
|
-
}, Jl = /* @__PURE__ */
|
|
3982
|
+
}, Jl = /* @__PURE__ */ ee({
|
|
3973
3983
|
__name: "EntityDeleteModal",
|
|
3974
3984
|
props: {
|
|
3975
3985
|
visible: {
|
|
@@ -4014,7 +4024,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4014
4024
|
r("proceed");
|
|
4015
4025
|
};
|
|
4016
4026
|
return (l, u) => {
|
|
4017
|
-
const m =
|
|
4027
|
+
const m = B("KAlert"), p = B("KPrompt");
|
|
4018
4028
|
return w(), D(p, {
|
|
4019
4029
|
"action-button-appearance": "danger",
|
|
4020
4030
|
"action-button-disabled": e.actionPending,
|
|
@@ -4026,11 +4036,11 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4026
4036
|
onCancel: o,
|
|
4027
4037
|
onProceed: c
|
|
4028
4038
|
}, {
|
|
4029
|
-
default:
|
|
4030
|
-
e.error ? (w(),
|
|
4039
|
+
default: b(() => [
|
|
4040
|
+
e.error ? (w(), A("div", Dl, [
|
|
4031
4041
|
C(m, { appearance: "danger" }, {
|
|
4032
|
-
default:
|
|
4033
|
-
H(
|
|
4042
|
+
default: b(() => [
|
|
4043
|
+
H($(e.error), 1)
|
|
4034
4044
|
]),
|
|
4035
4045
|
_: 1
|
|
4036
4046
|
})
|
|
@@ -4040,22 +4050,22 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4040
4050
|
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4041
4051
|
tag: "p"
|
|
4042
4052
|
}, Be({
|
|
4043
|
-
entityType:
|
|
4044
|
-
H(
|
|
4053
|
+
entityType: b(() => [
|
|
4054
|
+
H($(a.entityType), 1)
|
|
4045
4055
|
]),
|
|
4046
4056
|
_: 2
|
|
4047
4057
|
}, [
|
|
4048
4058
|
a.entityName ? {
|
|
4049
4059
|
name: "entityName",
|
|
4050
|
-
fn:
|
|
4051
|
-
|
|
4060
|
+
fn: b(() => [
|
|
4061
|
+
F("strong", null, $(a.entityName), 1)
|
|
4052
4062
|
]),
|
|
4053
4063
|
key: "0"
|
|
4054
4064
|
} : void 0
|
|
4055
4065
|
]), 1032, ["keypath"]),
|
|
4056
|
-
a.description || l.$slots.description ? (w(),
|
|
4066
|
+
a.description || l.$slots.description ? (w(), A("div", zl, [
|
|
4057
4067
|
te(l.$slots, "description", {}, () => [
|
|
4058
|
-
|
|
4068
|
+
F("p", null, $(a.description), 1)
|
|
4059
4069
|
], !0)
|
|
4060
4070
|
])) : G("", !0)
|
|
4061
4071
|
]),
|
|
@@ -4077,7 +4087,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4077
4087
|
width: "20",
|
|
4078
4088
|
x: "0",
|
|
4079
4089
|
y: "0"
|
|
4080
|
-
}, Yl = ["fill"], Zl = { mask: "url(#mask0_180_20349)" }, Ql = ["fill"], ni = /* @__PURE__ */
|
|
4090
|
+
}, Yl = ["fill"], Zl = { mask: "url(#mask0_180_20349)" }, Ql = ["fill"], ni = /* @__PURE__ */ ee({
|
|
4081
4091
|
__name: "IconFilter",
|
|
4082
4092
|
props: {
|
|
4083
4093
|
color: {
|
|
@@ -4086,16 +4096,16 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4086
4096
|
}
|
|
4087
4097
|
},
|
|
4088
4098
|
setup(e) {
|
|
4089
|
-
return (t, i) => (w(),
|
|
4090
|
-
|
|
4091
|
-
|
|
4099
|
+
return (t, i) => (w(), A("svg", Hl, [
|
|
4100
|
+
F("mask", Wl, [
|
|
4101
|
+
F("rect", {
|
|
4092
4102
|
fill: e.color,
|
|
4093
4103
|
height: "20",
|
|
4094
4104
|
width: "20"
|
|
4095
4105
|
}, null, 8, Yl)
|
|
4096
4106
|
]),
|
|
4097
|
-
|
|
4098
|
-
|
|
4107
|
+
F("g", Zl, [
|
|
4108
|
+
F("path", {
|
|
4099
4109
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4100
4110
|
fill: e.color
|
|
4101
4111
|
}, null, 8, Ql)
|
|
@@ -4105,7 +4115,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4105
4115
|
}), Xl = {
|
|
4106
4116
|
key: 1,
|
|
4107
4117
|
class: "kong-ui-entity-filter"
|
|
4108
|
-
}, es = { class: "kong-ui-entity-filter-menu" }, ts = ["data-testid"], is = ["onClick", "onKeydown"], rs = { class: "menu-item-indicator" }, as = { class: "menu-item-body" }, os = ["for"], ns = { class: "menu-item-buttons" }, ls = { class: "filter-clear-button-container" }, ss = /* @__PURE__ */
|
|
4118
|
+
}, es = { class: "kong-ui-entity-filter-menu" }, ts = ["data-testid"], is = ["onClick", "onKeydown"], rs = { class: "menu-item-indicator" }, as = { class: "menu-item-body" }, os = ["for"], ns = { class: "menu-item-buttons" }, ls = { class: "filter-clear-button-container" }, ss = /* @__PURE__ */ ee({
|
|
4109
4119
|
__name: "EntityFilter",
|
|
4110
4120
|
props: {
|
|
4111
4121
|
// filter config, either exact match or fuzzy match
|
|
@@ -4125,22 +4135,25 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4125
4135
|
},
|
|
4126
4136
|
emits: ["update:modelValue"],
|
|
4127
4137
|
setup(e, { emit: t }) {
|
|
4128
|
-
const { i18n: { t: i } } = ne.useI18n(), a = e, r = t, n =
|
|
4138
|
+
const { i18n: { t: i } } = ne.useI18n(), a = e, r = t, n = V(!1), o = V({}), c = V(/* @__PURE__ */ new Set()), l = I(() => {
|
|
4129
4139
|
const s = [];
|
|
4130
|
-
return new URLSearchParams(a.modelValue).forEach((y,
|
|
4131
|
-
y !== "" && s.push(
|
|
4140
|
+
return new URLSearchParams(a.modelValue).forEach((y, h) => {
|
|
4141
|
+
y !== "" && s.push(h);
|
|
4132
4142
|
}), s;
|
|
4133
4143
|
}), u = I(() => {
|
|
4134
4144
|
const s = a.config.fields;
|
|
4135
|
-
return Object.keys(s).filter((y) =>
|
|
4145
|
+
return Object.keys(s).filter((y) => {
|
|
4146
|
+
var h;
|
|
4147
|
+
return (h = s == null ? void 0 : s[y]) == null ? void 0 : h.searchable;
|
|
4148
|
+
}).map((y) => ({
|
|
4136
4149
|
label: s[y].label || y,
|
|
4137
4150
|
value: y,
|
|
4138
4151
|
expanded: !1
|
|
4139
4152
|
}));
|
|
4140
4153
|
});
|
|
4141
4154
|
_e(() => a.modelValue, (s) => {
|
|
4142
|
-
o.value = {}, new URLSearchParams(s).forEach((y,
|
|
4143
|
-
o.value[
|
|
4155
|
+
o.value = {}, new URLSearchParams(s).forEach((y, h) => {
|
|
4156
|
+
o.value[h] = y;
|
|
4144
4157
|
});
|
|
4145
4158
|
});
|
|
4146
4159
|
const m = () => {
|
|
@@ -4151,29 +4164,29 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4151
4164
|
r("update:modelValue", s);
|
|
4152
4165
|
}, v = () => {
|
|
4153
4166
|
k("");
|
|
4154
|
-
}, x = (s) => `filter-${s}`,
|
|
4155
|
-
var y,
|
|
4156
|
-
return (((
|
|
4167
|
+
}, x = (s) => `filter-${s}`, j = (s) => {
|
|
4168
|
+
var y, h;
|
|
4169
|
+
return (((h = (y = a.config.schema) == null ? void 0 : y[s]) == null ? void 0 : h.values) ?? []).map((q) => ({
|
|
4157
4170
|
value: q,
|
|
4158
4171
|
label: q
|
|
4159
4172
|
}));
|
|
4160
4173
|
}, S = (s) => {
|
|
4161
|
-
var y,
|
|
4162
|
-
return ((
|
|
4163
|
-
},
|
|
4174
|
+
var y, h;
|
|
4175
|
+
return ((h = (y = a.config.schema) == null ? void 0 : y[s]) == null ? void 0 : h.type) ?? "text";
|
|
4176
|
+
}, K = (s) => {
|
|
4164
4177
|
o.value = {
|
|
4165
4178
|
...o.value,
|
|
4166
4179
|
[s]: ""
|
|
4167
|
-
},
|
|
4168
|
-
},
|
|
4169
|
-
o.value = {},
|
|
4170
|
-
},
|
|
4171
|
-
const y = Object.keys(o.value).reduce((
|
|
4180
|
+
}, Z();
|
|
4181
|
+
}, N = () => {
|
|
4182
|
+
o.value = {}, Z(!0);
|
|
4183
|
+
}, Z = (s = !1) => {
|
|
4184
|
+
const y = Object.keys(o.value).reduce((h, q) => (o.value[q] && (h[q] = `${o.value[q]}`), h), {});
|
|
4172
4185
|
s && (n.value = !1), r("update:modelValue", new URLSearchParams(y).toString());
|
|
4173
4186
|
};
|
|
4174
4187
|
return (s, y) => {
|
|
4175
|
-
const
|
|
4176
|
-
return e.config.isExactMatch ? (w(), D(
|
|
4188
|
+
const h = B("KInput"), q = B("KButton"), R = B("KSelect");
|
|
4189
|
+
return e.config.isExactMatch ? (w(), D(h, {
|
|
4177
4190
|
key: 0,
|
|
4178
4191
|
autocomplete: "off",
|
|
4179
4192
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4182,11 +4195,11 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4182
4195
|
placeholder: e.config.placeholder,
|
|
4183
4196
|
"onUpdate:modelValue": k
|
|
4184
4197
|
}, {
|
|
4185
|
-
before:
|
|
4198
|
+
before: b(() => [
|
|
4186
4199
|
C(ni)
|
|
4187
4200
|
]),
|
|
4188
|
-
after:
|
|
4189
|
-
Ce(C(f(
|
|
4201
|
+
after: b(() => [
|
|
4202
|
+
Ce(C(f(Il), {
|
|
4190
4203
|
class: "kong-ui-entity-filter-clear",
|
|
4191
4204
|
onClick: v
|
|
4192
4205
|
}, null, 512), [
|
|
@@ -4194,81 +4207,81 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4194
4207
|
])
|
|
4195
4208
|
]),
|
|
4196
4209
|
_: 1
|
|
4197
|
-
}, 8, ["model-value", "placeholder"])) : (w(),
|
|
4210
|
+
}, 8, ["model-value", "placeholder"])) : (w(), A("div", Xl, [
|
|
4198
4211
|
C(q, {
|
|
4199
4212
|
appearance: "tertiary",
|
|
4200
4213
|
"data-testid": "filter-button",
|
|
4201
4214
|
onClick: m
|
|
4202
4215
|
}, {
|
|
4203
|
-
default:
|
|
4216
|
+
default: b(() => [
|
|
4204
4217
|
C(ni),
|
|
4205
|
-
H(" " +
|
|
4218
|
+
H(" " + $(f(i)("filter.filterButtonText")) + " " + $(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4206
4219
|
]),
|
|
4207
4220
|
_: 1
|
|
4208
4221
|
}),
|
|
4209
|
-
Ce(
|
|
4222
|
+
Ce(F("div", {
|
|
4210
4223
|
class: "kong-ui-entity-filter-backdrop",
|
|
4211
4224
|
onClick: m
|
|
4212
4225
|
}, null, 512), [
|
|
4213
4226
|
[Se, n.value]
|
|
4214
4227
|
]),
|
|
4215
|
-
Ce(
|
|
4216
|
-
(w(!0),
|
|
4228
|
+
Ce(F("div", es, [
|
|
4229
|
+
(w(!0), A(he, null, ye(u.value, (T) => {
|
|
4217
4230
|
var z, L;
|
|
4218
|
-
return w(),
|
|
4219
|
-
key:
|
|
4231
|
+
return w(), A("div", {
|
|
4232
|
+
key: T.value,
|
|
4220
4233
|
class: "kong-ui-entity-filter-menu-item",
|
|
4221
|
-
"data-testid":
|
|
4234
|
+
"data-testid": T.value
|
|
4222
4235
|
}, [
|
|
4223
|
-
|
|
4224
|
-
class:
|
|
4236
|
+
F("span", {
|
|
4237
|
+
class: xe(["menu-item-title", { expanded: c.value.has(T.value) }]),
|
|
4225
4238
|
role: "button",
|
|
4226
4239
|
tabindex: "0",
|
|
4227
|
-
onClick: (
|
|
4228
|
-
onKeydown: pr((
|
|
4240
|
+
onClick: (E) => p(T.value),
|
|
4241
|
+
onKeydown: pr((E) => p(T.value), ["enter"])
|
|
4229
4242
|
}, [
|
|
4230
|
-
H(
|
|
4231
|
-
Ce(
|
|
4232
|
-
[Se, l.value.includes(
|
|
4243
|
+
H($(T.label) + " ", 1),
|
|
4244
|
+
Ce(F("span", rs, null, 512), [
|
|
4245
|
+
[Se, l.value.includes(T.value)]
|
|
4233
4246
|
]),
|
|
4234
4247
|
C(f(bl), {
|
|
4235
|
-
class:
|
|
4248
|
+
class: xe(["menu-item-expand-icon", { expanded: c.value.has(T.value) }]),
|
|
4236
4249
|
color: f(da)
|
|
4237
4250
|
}, null, 8, ["class", "color"])
|
|
4238
4251
|
], 42, is),
|
|
4239
|
-
Ce(
|
|
4240
|
-
|
|
4252
|
+
Ce(F("div", as, [
|
|
4253
|
+
F("label", {
|
|
4241
4254
|
class: "menu-item-label",
|
|
4242
|
-
for: x(
|
|
4243
|
-
},
|
|
4244
|
-
((L = (z = e.config.schema) == null ? void 0 : z[
|
|
4255
|
+
for: x(T.value)
|
|
4256
|
+
}, $(f(i)("filter.fieldLabel")), 9, os),
|
|
4257
|
+
((L = (z = e.config.schema) == null ? void 0 : z[T.value]) == null ? void 0 : L.type) === "select" ? (w(), D(R, {
|
|
4245
4258
|
key: 0,
|
|
4246
|
-
id: x(
|
|
4247
|
-
modelValue: o.value[
|
|
4248
|
-
"onUpdate:modelValue": (
|
|
4249
|
-
items:
|
|
4259
|
+
id: x(T.value),
|
|
4260
|
+
modelValue: o.value[T.value],
|
|
4261
|
+
"onUpdate:modelValue": (E) => o.value[T.value] = E,
|
|
4262
|
+
items: j(T.value),
|
|
4250
4263
|
placeholder: f(i)("filter.selectPlaceholder")
|
|
4251
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (w(), D(
|
|
4264
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (w(), D(h, {
|
|
4252
4265
|
key: 1,
|
|
4253
|
-
id: x(
|
|
4254
|
-
modelValue: o.value[
|
|
4255
|
-
"onUpdate:modelValue": (
|
|
4266
|
+
id: x(T.value),
|
|
4267
|
+
modelValue: o.value[T.value],
|
|
4268
|
+
"onUpdate:modelValue": (E) => o.value[T.value] = E,
|
|
4256
4269
|
autocomplete: "off",
|
|
4257
4270
|
placeholder: f(i)("filter.inputPlaceholder"),
|
|
4258
|
-
type: S(
|
|
4271
|
+
type: S(T.value)
|
|
4259
4272
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4260
4273
|
], 512), [
|
|
4261
|
-
[Se, c.value.has(
|
|
4274
|
+
[Se, c.value.has(T.value)]
|
|
4262
4275
|
]),
|
|
4263
|
-
Ce(
|
|
4276
|
+
Ce(F("div", ns, [
|
|
4264
4277
|
C(q, {
|
|
4265
4278
|
appearance: "tertiary",
|
|
4266
4279
|
"data-testid": "apply-filter",
|
|
4267
4280
|
size: "small",
|
|
4268
|
-
onClick: y[0] || (y[0] = (
|
|
4281
|
+
onClick: y[0] || (y[0] = (E) => Z(!0))
|
|
4269
4282
|
}, {
|
|
4270
|
-
default:
|
|
4271
|
-
H(
|
|
4283
|
+
default: b(() => [
|
|
4284
|
+
H($(f(i)("filter.applyButtonText")), 1)
|
|
4272
4285
|
]),
|
|
4273
4286
|
_: 1
|
|
4274
4287
|
}),
|
|
@@ -4276,26 +4289,26 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4276
4289
|
appearance: "tertiary",
|
|
4277
4290
|
"data-testid": "clear-filter",
|
|
4278
4291
|
size: "small",
|
|
4279
|
-
onClick: (
|
|
4292
|
+
onClick: (E) => K(T.value)
|
|
4280
4293
|
}, {
|
|
4281
|
-
default:
|
|
4282
|
-
H(
|
|
4294
|
+
default: b(() => [
|
|
4295
|
+
H($(f(i)("filter.clearButtonText")), 1)
|
|
4283
4296
|
]),
|
|
4284
4297
|
_: 2
|
|
4285
4298
|
}, 1032, ["onClick"])
|
|
4286
4299
|
], 512), [
|
|
4287
|
-
[Se, c.value.has(
|
|
4300
|
+
[Se, c.value.has(T.value)]
|
|
4288
4301
|
])
|
|
4289
4302
|
], 8, ts);
|
|
4290
4303
|
}), 128)),
|
|
4291
|
-
|
|
4304
|
+
F("div", ls, [
|
|
4292
4305
|
C(q, {
|
|
4293
4306
|
appearance: "tertiary",
|
|
4294
4307
|
size: "small",
|
|
4295
|
-
onClick:
|
|
4308
|
+
onClick: N
|
|
4296
4309
|
}, {
|
|
4297
|
-
default:
|
|
4298
|
-
H(
|
|
4310
|
+
default: b(() => [
|
|
4311
|
+
H($(f(i)("filter.clearAllButtonText")), 1)
|
|
4299
4312
|
]),
|
|
4300
4313
|
_: 1
|
|
4301
4314
|
})
|
|
@@ -4306,7 +4319,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4306
4319
|
]));
|
|
4307
4320
|
};
|
|
4308
4321
|
}
|
|
4309
|
-
}), cs = /* @__PURE__ */ ve(ss, [["__scopeId", "data-v-
|
|
4322
|
+
}), cs = /* @__PURE__ */ ve(ss, [["__scopeId", "data-v-9a370e3a"]]), us = /* @__PURE__ */ ee({
|
|
4310
4323
|
__name: "EntityToggleModal",
|
|
4311
4324
|
props: {
|
|
4312
4325
|
visible: {
|
|
@@ -4338,7 +4351,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4338
4351
|
},
|
|
4339
4352
|
emits: ["cancel", "proceed"],
|
|
4340
4353
|
setup(e, { emit: t }) {
|
|
4341
|
-
const { i18n: { t: i }, i18nT: a } = ne.useI18n(), r = e, n = t, o =
|
|
4354
|
+
const { i18n: { t: i }, i18nT: a } = ne.useI18n(), r = e, n = t, o = V(!1), c = I(
|
|
4342
4355
|
() => r.action === "enable" ? i("toggleModal.enable.title", { entityType: r.entityType }) : i("toggleModal.disable.title", { entityType: r.entityType })
|
|
4343
4356
|
), l = I(
|
|
4344
4357
|
() => r.action === "enable" ? i("toggleModal.enable.confirmText") : i("toggleModal.disable.confirmText")
|
|
@@ -4355,7 +4368,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4355
4368
|
}
|
|
4356
4369
|
};
|
|
4357
4370
|
return (p, k) => {
|
|
4358
|
-
const v =
|
|
4371
|
+
const v = B("KPrompt");
|
|
4359
4372
|
return w(), D(dr, { to: "body" }, [
|
|
4360
4373
|
C(v, {
|
|
4361
4374
|
"action-button-disabled": o.value,
|
|
@@ -4366,16 +4379,16 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4366
4379
|
onCancel: u,
|
|
4367
4380
|
onProceed: m
|
|
4368
4381
|
}, {
|
|
4369
|
-
default:
|
|
4382
|
+
default: b(() => [
|
|
4370
4383
|
C(f(a), {
|
|
4371
4384
|
keypath: `toggleModal.${r.action}.message`,
|
|
4372
4385
|
scope: "global"
|
|
4373
4386
|
}, {
|
|
4374
|
-
entityType:
|
|
4375
|
-
H(
|
|
4387
|
+
entityType: b(() => [
|
|
4388
|
+
H($(e.entityType), 1)
|
|
4376
4389
|
]),
|
|
4377
|
-
entityName:
|
|
4378
|
-
|
|
4390
|
+
entityName: b(() => [
|
|
4391
|
+
F("strong", null, $(e.entityName), 1)
|
|
4379
4392
|
]),
|
|
4380
4393
|
_: 1
|
|
4381
4394
|
}, 8, ["keypath"])
|
|
@@ -4385,7 +4398,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4385
4398
|
]);
|
|
4386
4399
|
};
|
|
4387
4400
|
}
|
|
4388
|
-
}), Ge = /* @__PURE__ */
|
|
4401
|
+
}), Ge = /* @__PURE__ */ ee({
|
|
4389
4402
|
__name: "PermissionsWrapper",
|
|
4390
4403
|
props: {
|
|
4391
4404
|
/**
|
|
@@ -4407,7 +4420,7 @@ const Yn = { class: "yaml-config" }, sr = /* @__PURE__ */ X({
|
|
|
4407
4420
|
}
|
|
4408
4421
|
},
|
|
4409
4422
|
setup(e) {
|
|
4410
|
-
const t = e, i =
|
|
4423
|
+
const t = e, i = V(void 0), a = I(() => i.value === !0 || i.value !== void 0 && t.forceShow === !0);
|
|
4411
4424
|
return _e(() => t.authFunction, async () => {
|
|
4412
4425
|
i.value = await t.authFunction();
|
|
4413
4426
|
}, { immediate: !0 }), (r, n) => a.value ? te(r.$slots, "default", {
|
|
@@ -4451,7 +4464,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4451
4464
|
}, bs = {
|
|
4452
4465
|
key: 2,
|
|
4453
4466
|
class: "form-section-footer"
|
|
4454
|
-
}, ws = { class: "form-section-content" }, _s = /* @__PURE__ */
|
|
4467
|
+
}, ws = { class: "form-section-content" }, _s = /* @__PURE__ */ ee({
|
|
4455
4468
|
__name: "EntityFormSection",
|
|
4456
4469
|
props: {
|
|
4457
4470
|
title: {
|
|
@@ -4481,42 +4494,42 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4481
4494
|
},
|
|
4482
4495
|
setup(e) {
|
|
4483
4496
|
const t = Tt(), i = ms();
|
|
4484
|
-
return (a, r) => (w(),
|
|
4497
|
+
return (a, r) => (w(), A("div", {
|
|
4485
4498
|
"aria-labelledby": e.title ? f(i) : void 0,
|
|
4486
|
-
class:
|
|
4499
|
+
class: xe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4487
4500
|
role: "group"
|
|
4488
4501
|
}, [
|
|
4489
|
-
|
|
4490
|
-
e.hideInfoHeader ? G("", !0) : (w(),
|
|
4502
|
+
F("div", vs, [
|
|
4503
|
+
e.hideInfoHeader ? G("", !0) : (w(), A("div", {
|
|
4491
4504
|
key: 0,
|
|
4492
|
-
class:
|
|
4505
|
+
class: xe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4493
4506
|
}, [
|
|
4494
4507
|
e.title ? (w(), D($e(e.titleTag), {
|
|
4495
4508
|
key: 0,
|
|
4496
4509
|
id: f(i),
|
|
4497
4510
|
class: "form-section-title"
|
|
4498
4511
|
}, {
|
|
4499
|
-
default:
|
|
4500
|
-
H(
|
|
4512
|
+
default: b(() => [
|
|
4513
|
+
H($(e.title), 1)
|
|
4501
4514
|
]),
|
|
4502
4515
|
_: 1
|
|
4503
4516
|
}, 8, ["id"])) : G("", !0),
|
|
4504
|
-
e.description || f(t).description ? (w(),
|
|
4517
|
+
e.description || f(t).description ? (w(), A("div", hs, [
|
|
4505
4518
|
te(a.$slots, "description", {}, () => [
|
|
4506
|
-
|
|
4519
|
+
F("p", null, $(e.description), 1)
|
|
4507
4520
|
], !0)
|
|
4508
4521
|
])) : G("", !0),
|
|
4509
|
-
f(t).footer ? (w(),
|
|
4522
|
+
f(t).footer ? (w(), A("div", bs, [
|
|
4510
4523
|
te(a.$slots, "footer", {}, void 0, !0)
|
|
4511
4524
|
])) : G("", !0)
|
|
4512
4525
|
], 2)),
|
|
4513
|
-
|
|
4526
|
+
F("div", ws, [
|
|
4514
4527
|
te(a.$slots, "default", {}, void 0, !0)
|
|
4515
4528
|
])
|
|
4516
4529
|
])
|
|
4517
4530
|
], 10, ys));
|
|
4518
4531
|
}
|
|
4519
|
-
}), si = /* @__PURE__ */ ve(_s, [["__scopeId", "data-v-
|
|
4532
|
+
}), si = /* @__PURE__ */ ve(_s, [["__scopeId", "data-v-b1f74200"]]), { useAxios: cr, useDeleteUrlBuilder: ks, useErrors: Cs, useExternalLinkCreator: ic, useFetchUrlBuilder: rc, useFetcher: Ss, useDebouncedFilter: ac, useStringHelpers: oc, useHelpers: Is, useGatewayFeatureSupported: xs, useTruncationDetector: nc, useValidators: As } = ne, Ts = { class: "kong-ui-entities-gateway-services-list" }, $s = { key: 1 }, js = { key: 1 }, Ns = /* @__PURE__ */ ee({
|
|
4520
4533
|
__name: "GatewayServiceList",
|
|
4521
4534
|
props: {
|
|
4522
4535
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4563,7 +4576,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4563
4576
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4564
4577
|
setup(e, { emit: t }) {
|
|
4565
4578
|
var d;
|
|
4566
|
-
const i = t, a = e, { i18n: { t: r } } = at.useI18n(), n = $t(), { axiosInstance: o } = cr((d = a.config) == null ? void 0 : d.axiosRequestConfig), c =
|
|
4579
|
+
const i = t, a = e, { i18n: { t: r } } = at.useI18n(), n = $t(), { axiosInstance: o } = cr((d = a.config) == null ? void 0 : d.axiosRequestConfig), c = V(1), l = I(() => a.config.app !== "kongManager" || !!a.config.disableSorting), u = {
|
|
4567
4580
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4568
4581
|
...a.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
4569
4582
|
protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
@@ -4573,63 +4586,63 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4573
4586
|
enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
4574
4587
|
tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 }
|
|
4575
4588
|
}, m = u, p = I(() => {
|
|
4576
|
-
var
|
|
4589
|
+
var O, P;
|
|
4577
4590
|
let g = `${a.config.apiBaseUrl}${We.list[a.config.app].all}`;
|
|
4578
|
-
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((
|
|
4579
|
-
}), k = I(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), v =
|
|
4591
|
+
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((O = a.config) == null ? void 0 : O.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (P = a.config) != null && P.workspace ? `/${a.config.workspace}` : "")), g;
|
|
4592
|
+
}), k = I(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), v = V(""), x = I(() => {
|
|
4580
4593
|
const g = a.config.app === "konnect" || a.config.isExactMatch;
|
|
4581
4594
|
if (g)
|
|
4582
4595
|
return {
|
|
4583
4596
|
isExactMatch: g,
|
|
4584
4597
|
placeholder: r(`search.placeholder.${a.config.app}`)
|
|
4585
4598
|
};
|
|
4586
|
-
const { name:
|
|
4599
|
+
const { name: O, enabled: P, protocol: W, host: ie, port: _, path: we } = u;
|
|
4587
4600
|
return {
|
|
4588
4601
|
isExactMatch: g,
|
|
4589
|
-
fields: { name:
|
|
4602
|
+
fields: { name: O, enabled: P, protocol: W, host: ie, port: _, path: we },
|
|
4590
4603
|
schema: a.config.filterSchema
|
|
4591
4604
|
};
|
|
4592
|
-
}), { fetcher:
|
|
4605
|
+
}), { fetcher: j, fetcherState: S } = Ss(a.config, p.value), K = () => {
|
|
4593
4606
|
v.value = "";
|
|
4594
|
-
},
|
|
4607
|
+
}, N = () => {
|
|
4595
4608
|
c.value++;
|
|
4596
|
-
},
|
|
4609
|
+
}, Z = V(null), s = I(() => ({
|
|
4597
4610
|
ctaPath: a.config.createRoute,
|
|
4598
|
-
ctaText:
|
|
4611
|
+
ctaText: Ee.value ? r("actions.create") : void 0,
|
|
4599
4612
|
message: `${r("gateway_services.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
|
|
4600
|
-
title:
|
|
4601
|
-
})), y =
|
|
4613
|
+
title: Ee.value ? r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
4614
|
+
})), y = V(!1), h = V(null), q = I(() => {
|
|
4602
4615
|
const g = {
|
|
4603
4616
|
action: "disable",
|
|
4604
4617
|
id: "",
|
|
4605
4618
|
name: ""
|
|
4606
4619
|
};
|
|
4607
|
-
if (
|
|
4608
|
-
const { enabled:
|
|
4609
|
-
g.action =
|
|
4620
|
+
if (h.value) {
|
|
4621
|
+
const { enabled: O, id: P, name: W } = h.value;
|
|
4622
|
+
g.action = O ? "disable" : "enable", g.id = P, g.name = W || P;
|
|
4610
4623
|
}
|
|
4611
4624
|
return g;
|
|
4612
|
-
}),
|
|
4613
|
-
y.value = !0,
|
|
4614
|
-
},
|
|
4615
|
-
y.value = !1,
|
|
4625
|
+
}), R = (g) => {
|
|
4626
|
+
y.value = !0, h.value = g;
|
|
4627
|
+
}, T = () => {
|
|
4628
|
+
y.value = !1, h.value = null;
|
|
4616
4629
|
}, z = async () => {
|
|
4617
4630
|
var W, ie;
|
|
4618
|
-
if (!await ((W = a.canEdit) == null ? void 0 : W.call(a,
|
|
4631
|
+
if (!await ((W = a.canEdit) == null ? void 0 : W.call(a, h.value)) || !h.value)
|
|
4619
4632
|
return;
|
|
4620
|
-
const
|
|
4633
|
+
const O = `${k.value.href}/${h.value.id}`, P = !h.value.enabled;
|
|
4621
4634
|
try {
|
|
4622
|
-
const { data: _ } = ((ie = a.config) == null ? void 0 : ie.app) === "konnect" ? await o.put(
|
|
4635
|
+
const { data: _ } = ((ie = a.config) == null ? void 0 : ie.app) === "konnect" ? await o.put(O, { ...h.value, enabled: P }) : await o.patch(O, { ...h.value, enabled: P });
|
|
4623
4636
|
i("toggle:success", _);
|
|
4624
4637
|
} catch (_) {
|
|
4625
4638
|
i("error", _);
|
|
4626
4639
|
}
|
|
4627
|
-
|
|
4640
|
+
h.value.enabled = P;
|
|
4628
4641
|
}, L = (g) => {
|
|
4629
4642
|
a.config.getControlPlaneRoute && n.push(a.config.getControlPlaneRoute(g));
|
|
4630
|
-
},
|
|
4631
|
-
const
|
|
4632
|
-
if (!
|
|
4643
|
+
}, E = (g, O) => {
|
|
4644
|
+
const P = g.id;
|
|
4645
|
+
if (!O(P)) {
|
|
4633
4646
|
i("copy:error", {
|
|
4634
4647
|
entity: g,
|
|
4635
4648
|
field: "id",
|
|
@@ -4640,11 +4653,11 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4640
4653
|
i("copy:success", {
|
|
4641
4654
|
entity: g,
|
|
4642
4655
|
field: "id",
|
|
4643
|
-
message: r("copy.success", { val:
|
|
4656
|
+
message: r("copy.success", { val: P })
|
|
4644
4657
|
});
|
|
4645
|
-
}, J = (g,
|
|
4646
|
-
const
|
|
4647
|
-
if (!
|
|
4658
|
+
}, J = (g, O) => {
|
|
4659
|
+
const P = JSON.stringify(g);
|
|
4660
|
+
if (!O(P)) {
|
|
4648
4661
|
i("copy:error", {
|
|
4649
4662
|
entity: g,
|
|
4650
4663
|
message: r("errors.copy")
|
|
@@ -4655,95 +4668,95 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4655
4668
|
entity: g,
|
|
4656
4669
|
message: r("copy.success_brief")
|
|
4657
4670
|
});
|
|
4658
|
-
},
|
|
4659
|
-
var
|
|
4660
|
-
await ((
|
|
4671
|
+
}, Q = async (g) => {
|
|
4672
|
+
var P;
|
|
4673
|
+
await ((P = a.canRetrieve) == null ? void 0 : P.call(a, g)) && n.push(a.config.getViewRoute(g.id));
|
|
4661
4674
|
}, pe = (g) => ({
|
|
4662
4675
|
label: r("actions.view"),
|
|
4663
4676
|
to: a.config.getViewRoute(g)
|
|
4664
4677
|
}), fe = (g) => ({
|
|
4665
4678
|
label: r("actions.edit"),
|
|
4666
4679
|
to: a.config.getEditRoute(g)
|
|
4667
|
-
}), ae =
|
|
4680
|
+
}), ae = V(void 0), je = V(!1), Pe = V(!1), De = V(""), yt = ks(a.config, p.value), ze = (g) => {
|
|
4668
4681
|
ae.value = g, je.value = !0;
|
|
4669
4682
|
}, et = () => {
|
|
4670
4683
|
je.value = !1, ae.value = void 0;
|
|
4671
|
-
},
|
|
4672
|
-
var g,
|
|
4684
|
+
}, Ne = async () => {
|
|
4685
|
+
var g, O, P;
|
|
4673
4686
|
if ((g = ae.value) != null && g.id) {
|
|
4674
|
-
|
|
4687
|
+
Pe.value = !0;
|
|
4675
4688
|
try {
|
|
4676
4689
|
await o.delete(yt(ae.value.id)), i("delete:success", ae.value), et(), c.value++;
|
|
4677
4690
|
} catch (W) {
|
|
4678
|
-
De.value = ((
|
|
4691
|
+
De.value = ((P = (O = W.response) == null ? void 0 : O.data) == null ? void 0 : P.message) || W.message || r("errors.delete"), i("error", W);
|
|
4679
4692
|
} finally {
|
|
4680
|
-
|
|
4693
|
+
Pe.value = !1;
|
|
4681
4694
|
}
|
|
4682
4695
|
}
|
|
4683
|
-
},
|
|
4696
|
+
}, Fe = V(!0);
|
|
4684
4697
|
_e(S, (g) => {
|
|
4685
|
-
var
|
|
4686
|
-
if (Array.isArray((
|
|
4687
|
-
|
|
4698
|
+
var O, P, W, ie;
|
|
4699
|
+
if (Array.isArray((O = g == null ? void 0 : g.response) == null ? void 0 : O.data) && (Fe.value = g.response.data.length > 0), g.status === Oe.Error) {
|
|
4700
|
+
Z.value = {
|
|
4688
4701
|
title: r("errors.general")
|
|
4689
|
-
}, (ie = (W = (
|
|
4702
|
+
}, (ie = (W = (P = g.error) == null ? void 0 : P.response) == null ? void 0 : W.data) != null && ie.message && (Z.value.message = g.error.response.data.message), i("error", g.error);
|
|
4690
4703
|
return;
|
|
4691
4704
|
}
|
|
4692
|
-
|
|
4705
|
+
Z.value = null;
|
|
4693
4706
|
});
|
|
4694
|
-
const
|
|
4695
|
-
return
|
|
4696
|
-
|
|
4697
|
-
}), (g,
|
|
4698
|
-
const
|
|
4699
|
-
return w(),
|
|
4700
|
-
C(f(
|
|
4707
|
+
const Ee = V(!1);
|
|
4708
|
+
return At(async () => {
|
|
4709
|
+
Ee.value = await a.canCreate();
|
|
4710
|
+
}), (g, O) => {
|
|
4711
|
+
const P = B("KButton"), W = B("KBadge"), ie = B("KInputSwitch"), _ = B("KTruncate"), we = B("KDropdownItem"), U = B("KClipboardProvider");
|
|
4712
|
+
return w(), A("div", Ts, [
|
|
4713
|
+
C(f(Pl), {
|
|
4701
4714
|
"cache-identifier": e.cacheIdentifier,
|
|
4702
4715
|
"disable-pagination-page-jump": "",
|
|
4703
4716
|
"disable-sorting": l.value,
|
|
4704
4717
|
"empty-state-options": s.value,
|
|
4705
4718
|
"enable-entity-actions": "",
|
|
4706
|
-
"error-message":
|
|
4707
|
-
fetcher: f(
|
|
4719
|
+
"error-message": Z.value,
|
|
4720
|
+
fetcher: f(j),
|
|
4708
4721
|
"fetcher-cache-key": c.value,
|
|
4709
4722
|
"pagination-type": "offset",
|
|
4710
4723
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
4711
4724
|
query: v.value,
|
|
4712
4725
|
"table-headers": f(m),
|
|
4713
4726
|
"use-action-outside": e.useActionOutside,
|
|
4714
|
-
onClearSearchInput:
|
|
4715
|
-
"onClick:row":
|
|
4716
|
-
onSort:
|
|
4727
|
+
onClearSearchInput: K,
|
|
4728
|
+
"onClick:row": O[3] || (O[3] = (Y) => Q(Y)),
|
|
4729
|
+
onSort: N
|
|
4717
4730
|
}, {
|
|
4718
|
-
"toolbar-filter":
|
|
4731
|
+
"toolbar-filter": b(() => [
|
|
4719
4732
|
C(f(cs), {
|
|
4720
4733
|
modelValue: v.value,
|
|
4721
|
-
"onUpdate:modelValue":
|
|
4734
|
+
"onUpdate:modelValue": O[0] || (O[0] = (Y) => v.value = Y),
|
|
4722
4735
|
config: x.value
|
|
4723
4736
|
}, null, 8, ["modelValue", "config"])
|
|
4724
4737
|
]),
|
|
4725
|
-
"toolbar-button":
|
|
4738
|
+
"toolbar-button": b(() => [
|
|
4726
4739
|
(w(), D($e(e.useActionOutside ? "Teleport" : "div"), {
|
|
4727
4740
|
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
4728
4741
|
}, {
|
|
4729
|
-
default:
|
|
4742
|
+
default: b(() => [
|
|
4730
4743
|
C(f(Ge), {
|
|
4731
4744
|
"auth-function": () => e.canCreate()
|
|
4732
4745
|
}, {
|
|
4733
|
-
default:
|
|
4734
|
-
Ce(C(
|
|
4746
|
+
default: b(() => [
|
|
4747
|
+
Ce(C(P, {
|
|
4735
4748
|
appearance: "primary",
|
|
4736
4749
|
"data-testid": "toolbar-add-gateway-service",
|
|
4737
4750
|
icon: "plus",
|
|
4738
4751
|
size: "large",
|
|
4739
4752
|
to: e.config.createRoute
|
|
4740
4753
|
}, {
|
|
4741
|
-
default:
|
|
4742
|
-
H(
|
|
4754
|
+
default: b(() => [
|
|
4755
|
+
H($(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4743
4756
|
]),
|
|
4744
4757
|
_: 1
|
|
4745
4758
|
}, 8, ["to"]), [
|
|
4746
|
-
[Se,
|
|
4759
|
+
[Se, Fe.value]
|
|
4747
4760
|
])
|
|
4748
4761
|
]),
|
|
4749
4762
|
_: 1
|
|
@@ -4752,10 +4765,10 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4752
4765
|
_: 1
|
|
4753
4766
|
}, 8, ["to"]))
|
|
4754
4767
|
]),
|
|
4755
|
-
name:
|
|
4756
|
-
|
|
4768
|
+
name: b(({ rowValue: Y }) => [
|
|
4769
|
+
F("b", null, $(Y ?? "-"), 1)
|
|
4757
4770
|
]),
|
|
4758
|
-
control_plane:
|
|
4771
|
+
control_plane: b(({ row: Y }) => {
|
|
4759
4772
|
var me;
|
|
4760
4773
|
return [
|
|
4761
4774
|
(me = Y.x_meta) != null && me.cluster_id ? (w(), D(W, {
|
|
@@ -4764,21 +4777,21 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4764
4777
|
"truncation-tooltip": "",
|
|
4765
4778
|
onClick: qe((Je) => L(Y.x_meta.cluster_id), ["stop"])
|
|
4766
4779
|
}, {
|
|
4767
|
-
default:
|
|
4768
|
-
H(
|
|
4780
|
+
default: b(() => [
|
|
4781
|
+
H($(Y.x_meta.cluster_id), 1)
|
|
4769
4782
|
]),
|
|
4770
4783
|
_: 2
|
|
4771
|
-
}, 1032, ["tooltip", "onClick"])) : (w(),
|
|
4784
|
+
}, 1032, ["tooltip", "onClick"])) : (w(), A("b", $s, "-"))
|
|
4772
4785
|
];
|
|
4773
4786
|
}),
|
|
4774
|
-
enabled:
|
|
4787
|
+
enabled: b(({ row: Y }) => [
|
|
4775
4788
|
C(f(Ge), {
|
|
4776
4789
|
"auth-function": () => e.canEdit(Y),
|
|
4777
4790
|
"force-show": ""
|
|
4778
4791
|
}, {
|
|
4779
|
-
default:
|
|
4780
|
-
|
|
4781
|
-
onClick:
|
|
4792
|
+
default: b(({ isAllowed: me }) => [
|
|
4793
|
+
F("div", {
|
|
4794
|
+
onClick: O[1] || (O[1] = qe(() => {
|
|
4782
4795
|
}, ["stop"]))
|
|
4783
4796
|
}, [
|
|
4784
4797
|
C(ie, {
|
|
@@ -4786,39 +4799,39 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4786
4799
|
"onUpdate:modelValue": (Je) => Y.enabled = Je,
|
|
4787
4800
|
"data-testid": `row-${Y.id}-toggle-input`,
|
|
4788
4801
|
disabled: !me,
|
|
4789
|
-
onClick: qe((Je) =>
|
|
4802
|
+
onClick: qe((Je) => R(Y), ["prevent"])
|
|
4790
4803
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
4791
4804
|
])
|
|
4792
4805
|
]),
|
|
4793
4806
|
_: 2
|
|
4794
4807
|
}, 1032, ["auth-function"])
|
|
4795
4808
|
]),
|
|
4796
|
-
tags:
|
|
4809
|
+
tags: b(({ rowValue: Y }) => [
|
|
4797
4810
|
(Y == null ? void 0 : Y.length) > 0 ? (w(), D(_, { key: 0 }, {
|
|
4798
|
-
default:
|
|
4799
|
-
(w(!0),
|
|
4811
|
+
default: b(() => [
|
|
4812
|
+
(w(!0), A(he, null, ye(Y, (me) => (w(), D(W, {
|
|
4800
4813
|
key: me,
|
|
4801
|
-
onClick:
|
|
4814
|
+
onClick: O[2] || (O[2] = qe(() => {
|
|
4802
4815
|
}, ["stop"]))
|
|
4803
4816
|
}, {
|
|
4804
|
-
default:
|
|
4805
|
-
H(
|
|
4817
|
+
default: b(() => [
|
|
4818
|
+
H($(me), 1)
|
|
4806
4819
|
]),
|
|
4807
4820
|
_: 2
|
|
4808
4821
|
}, 1024))), 128))
|
|
4809
4822
|
]),
|
|
4810
4823
|
_: 2
|
|
4811
|
-
}, 1024)) : (w(),
|
|
4824
|
+
}, 1024)) : (w(), A("span", js, "-"))
|
|
4812
4825
|
]),
|
|
4813
|
-
actions:
|
|
4826
|
+
actions: b(({ row: Y }) => [
|
|
4814
4827
|
C(U, null, {
|
|
4815
|
-
default:
|
|
4828
|
+
default: b(({ copyToClipboard: me }) => [
|
|
4816
4829
|
C(we, {
|
|
4817
4830
|
"data-testid": "action-entity-copy-id",
|
|
4818
|
-
onClick: (Je) =>
|
|
4831
|
+
onClick: (Je) => E(Y, me)
|
|
4819
4832
|
}, {
|
|
4820
|
-
default:
|
|
4821
|
-
H(
|
|
4833
|
+
default: b(() => [
|
|
4834
|
+
H($(f(r)("actions.copy_id")), 1)
|
|
4822
4835
|
]),
|
|
4823
4836
|
_: 2
|
|
4824
4837
|
}, 1032, ["onClick"])
|
|
@@ -4826,13 +4839,13 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4826
4839
|
_: 2
|
|
4827
4840
|
}, 1024),
|
|
4828
4841
|
C(U, null, {
|
|
4829
|
-
default:
|
|
4842
|
+
default: b(({ copyToClipboard: me }) => [
|
|
4830
4843
|
C(we, {
|
|
4831
4844
|
"data-testid": "action-entity-copy-json",
|
|
4832
4845
|
onClick: (Je) => J(Y, me)
|
|
4833
4846
|
}, {
|
|
4834
|
-
default:
|
|
4835
|
-
H(
|
|
4847
|
+
default: b(() => [
|
|
4848
|
+
H($(f(r)("actions.copy_json")), 1)
|
|
4836
4849
|
]),
|
|
4837
4850
|
_: 2
|
|
4838
4851
|
}, 1032, ["onClick"])
|
|
@@ -4842,7 +4855,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4842
4855
|
C(f(Ge), {
|
|
4843
4856
|
"auth-function": () => e.canRetrieve(Y)
|
|
4844
4857
|
}, {
|
|
4845
|
-
default:
|
|
4858
|
+
default: b(() => [
|
|
4846
4859
|
C(we, {
|
|
4847
4860
|
"data-testid": "action-entity-view",
|
|
4848
4861
|
"has-divider": "",
|
|
@@ -4854,7 +4867,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4854
4867
|
C(f(Ge), {
|
|
4855
4868
|
"auth-function": () => e.canEdit(Y)
|
|
4856
4869
|
}, {
|
|
4857
|
-
default:
|
|
4870
|
+
default: b(() => [
|
|
4858
4871
|
C(we, {
|
|
4859
4872
|
"data-testid": "action-entity-edit",
|
|
4860
4873
|
item: fe(Y.id)
|
|
@@ -4865,15 +4878,15 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4865
4878
|
C(f(Ge), {
|
|
4866
4879
|
"auth-function": () => e.canDelete(Y)
|
|
4867
4880
|
}, {
|
|
4868
|
-
default:
|
|
4881
|
+
default: b(() => [
|
|
4869
4882
|
C(we, {
|
|
4870
4883
|
danger: "",
|
|
4871
4884
|
"data-testid": "action-entity-delete",
|
|
4872
4885
|
"has-divider": "",
|
|
4873
4886
|
onClick: (me) => ze(Y)
|
|
4874
4887
|
}, {
|
|
4875
|
-
default:
|
|
4876
|
-
H(
|
|
4888
|
+
default: b(() => [
|
|
4889
|
+
H($(f(r)("actions.delete.menu_label")), 1)
|
|
4877
4890
|
]),
|
|
4878
4891
|
_: 2
|
|
4879
4892
|
}, 1032, ["onClick"])
|
|
@@ -4890,11 +4903,11 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4890
4903
|
"entity-type": f(r)("glossary.gateway_services"),
|
|
4891
4904
|
"on-confirm": z,
|
|
4892
4905
|
visible: y.value,
|
|
4893
|
-
onCancel:
|
|
4894
|
-
onProceed:
|
|
4906
|
+
onCancel: T,
|
|
4907
|
+
onProceed: T
|
|
4895
4908
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
4896
4909
|
C(f(Gl), {
|
|
4897
|
-
"action-pending":
|
|
4910
|
+
"action-pending": Pe.value,
|
|
4898
4911
|
description: f(r)("actions.delete.description"),
|
|
4899
4912
|
"entity-name": ae.value && (ae.value.name || ae.value.id),
|
|
4900
4913
|
"entity-type": f(fi).GatewayService,
|
|
@@ -4902,7 +4915,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4902
4915
|
title: f(r)("actions.delete.title"),
|
|
4903
4916
|
visible: je.value,
|
|
4904
4917
|
onCancel: et,
|
|
4905
|
-
onProceed:
|
|
4918
|
+
onProceed: Ne
|
|
4906
4919
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
4907
4920
|
]);
|
|
4908
4921
|
};
|
|
@@ -4912,13 +4925,13 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4912
4925
|
for (const [a, r] of t)
|
|
4913
4926
|
i[a] = r;
|
|
4914
4927
|
return i;
|
|
4915
|
-
}, lc = /* @__PURE__ */ ur(
|
|
4928
|
+
}, lc = /* @__PURE__ */ ur(Ns, [["__scopeId", "data-v-83596820"]]), Os = { class: "kong-ui-entities-gateway-service-form" }, Ms = { key: 0 }, Fs = { class: "gateway-service-form-traffic-label" }, Es = { class: "gateway-service-form-margin-bottom" }, Vs = {
|
|
4916
4929
|
key: 0,
|
|
4917
4930
|
class: "gateway-service-form-group-fields"
|
|
4918
4931
|
}, Ls = {
|
|
4919
4932
|
key: 1,
|
|
4920
4933
|
class: "gateway-service-form-group-fields"
|
|
4921
|
-
}, qs = { key: 0 }, Us = { class: "gateway-service-form-margin-top" }, Ks = { class: "gateway-service-form-margin-bottom" }, Bs = { class: "gateway-service-form-margin-bottom" },
|
|
4934
|
+
}, qs = { key: 0 }, Us = { class: "gateway-service-form-margin-top" }, Ks = { class: "gateway-service-form-margin-bottom" }, Bs = { class: "gateway-service-form-margin-bottom" }, Rs = { class: "gateway-service-form-margin-bottom" }, Ps = { class: "gateway-service-form-margin-bottom" }, Ds = {
|
|
4922
4935
|
key: 0,
|
|
4923
4936
|
class: "gateway-service-form-margin-bottom"
|
|
4924
4937
|
}, zs = {
|
|
@@ -4933,7 +4946,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4933
4946
|
}, Hs = {
|
|
4934
4947
|
key: 1,
|
|
4935
4948
|
class: "checkbox-aligned-radio"
|
|
4936
|
-
}, Ws = /* @__PURE__ */
|
|
4949
|
+
}, Ws = /* @__PURE__ */ ee({
|
|
4937
4950
|
__name: "GatewayServiceForm",
|
|
4938
4951
|
props: {
|
|
4939
4952
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4957,8 +4970,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4957
4970
|
},
|
|
4958
4971
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
4959
4972
|
setup(e, { expose: t, emit: i }) {
|
|
4960
|
-
var
|
|
4961
|
-
const a = i, r = e, n =
|
|
4973
|
+
var Ee;
|
|
4974
|
+
const a = i, r = e, n = V(!0), o = $t(), { i18nT: c, i18n: { t: l } } = at.useI18n(), { getMessageFromError: u } = Cs(), { axiosInstance: m } = cr((Ee = r.config) == null ? void 0 : Ee.axiosRequestConfig), p = As(), k = I(() => We.form[r.config.app].edit), v = I(() => r.gatewayServiceId ? _t.Edit : _t.Create), x = V(!1), j = I(() => !!r.gatewayServiceId), S = V(j.value ? "protocol" : "url"), K = at.usePortFromProtocol(), N = V(""), Z = I(() => !!N.value), s = Lt({
|
|
4962
4975
|
fields: {
|
|
4963
4976
|
name: "",
|
|
4964
4977
|
protocol: "http",
|
|
@@ -4994,7 +5007,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
4994
5007
|
tls_verify_enabled: !1,
|
|
4995
5008
|
tls_verify_value: !1,
|
|
4996
5009
|
tags: ""
|
|
4997
|
-
}),
|
|
5010
|
+
}), h = r.config.app === "konnect" || xs({
|
|
4998
5011
|
gatewayInfo: r.config.gatewayInfo,
|
|
4999
5012
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
5000
5013
|
supportedRange: {
|
|
@@ -5036,7 +5049,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5036
5049
|
value: "grpcs",
|
|
5037
5050
|
group: "grpc"
|
|
5038
5051
|
},
|
|
5039
|
-
...
|
|
5052
|
+
...h ? [
|
|
5040
5053
|
{
|
|
5041
5054
|
label: l("gateway_services.form.fields.protocol.options.ws"),
|
|
5042
5055
|
value: "ws",
|
|
@@ -5053,23 +5066,23 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5053
5066
|
value: "udp",
|
|
5054
5067
|
group: "udp"
|
|
5055
5068
|
}
|
|
5056
|
-
],
|
|
5069
|
+
], R = { url: "url", protocol: "protocol" }, T = (d, g) => {
|
|
5057
5070
|
g.value;
|
|
5058
5071
|
}, z = (d) => d ? parseFloat(d) : 0, L = () => {
|
|
5059
5072
|
n.value = !0, s.errorMessage = "", s.fields.host = y.host, s.fields.path = y.path, s.fields.port = y.port, s.fields.protocol = y.protocol, s.fields.url = y.url, s.fields.retries = y.retries, s.fields.connect_timeout = y.connect_timeout, s.fields.write_timeout = y.write_timeout, s.fields.read_timeout = y.read_timeout, s.fields.client_certificate = y.client_certificate, s.fields.ca_certificates = y.ca_certificates, s.fields.tls_verify_enabled = y.tls_verify_enabled, s.fields.tls_verify_value = y.tls_verify_value;
|
|
5060
|
-
},
|
|
5073
|
+
}, E = () => {
|
|
5061
5074
|
if (s.fields.url && S.value === "url")
|
|
5062
5075
|
try {
|
|
5063
5076
|
const d = new URL(s.fields.url);
|
|
5064
5077
|
s.errorMessage = "", s.fields.protocol = d.protocol.slice(0, -1), s.fields.host = d.hostname, s.fields.path = d.pathname;
|
|
5065
5078
|
const g = Number(d.port);
|
|
5066
|
-
x.value = !!g, s.fields.port = g ||
|
|
5079
|
+
x.value = !!g, s.fields.port = g || K.getPortFromProtocol(s.fields.protocol), s.errorMessage = "", a("url-valid:success");
|
|
5067
5080
|
} catch (d) {
|
|
5068
5081
|
s.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", u(d));
|
|
5069
5082
|
}
|
|
5070
5083
|
else
|
|
5071
5084
|
a("url-valid:success"), s.errorMessage = "";
|
|
5072
|
-
}, J = I(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(s.fields.protocol)),
|
|
5085
|
+
}, J = I(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(s.fields.protocol)), Q = I(() => {
|
|
5073
5086
|
if (S.value === "url")
|
|
5074
5087
|
return !0;
|
|
5075
5088
|
const d = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
@@ -5085,28 +5098,28 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5085
5098
|
const d = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
5086
5099
|
return S.value === "protocol" && d;
|
|
5087
5100
|
}), ae = (d) => {
|
|
5088
|
-
|
|
5089
|
-
}, je = I(() =>
|
|
5090
|
-
var g,
|
|
5091
|
-
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((g = d == null ? void 0 : d.tags) == null ? void 0 : g.join(",")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.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, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((
|
|
5101
|
+
N.value = p.utf8Name(d);
|
|
5102
|
+
}, je = I(() => j.value && JSON.stringify(s.fields) !== JSON.stringify(y) || S.value === "url" && !!s.fields.url || S.value === "protocol" && !!s.fields.host), Pe = (d) => {
|
|
5103
|
+
var g, O, P;
|
|
5104
|
+
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((g = d == null ? void 0 : d.tags) == null ? void 0 : g.join(",")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.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, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((O = d == null ? void 0 : d.ca_certificates) == null ? void 0 : O.join(",")) || "", s.fields.client_certificate = ((P = d == null ? void 0 : d.client_certificate) == null ? void 0 : P.id) || "", s.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, s.fields.port = d != null && d.port || (d == null ? void 0 : d.port) === 0 ? d == null ? void 0 : d.port : 80, Object.assign(y, s.fields);
|
|
5092
5105
|
}, De = () => {
|
|
5093
5106
|
o.push(r.config.cancelRoute);
|
|
5094
5107
|
}, yt = I(() => {
|
|
5095
|
-
var g,
|
|
5108
|
+
var g, O;
|
|
5096
5109
|
let d = `${r.config.apiBaseUrl}${We.form[r.config.app].validate}`;
|
|
5097
|
-
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (
|
|
5110
|
+
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5098
5111
|
}), ze = I(() => {
|
|
5099
|
-
var g,
|
|
5112
|
+
var g, O;
|
|
5100
5113
|
let d = `${r.config.apiBaseUrl}${We.form[r.config.app][v.value]}`;
|
|
5101
|
-
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (
|
|
5114
|
+
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5102
5115
|
}), et = (d) => {
|
|
5103
5116
|
let g = "";
|
|
5104
5117
|
d.url && (g = new URL(d.url).protocol), (["https", "wss", "tls"].includes(d.protocol) || ["https", "wss", "tls"].includes(g)) && (d.tls_verify = d.tls_verify_enabled ? d.tls_verify_value : null), delete d.tls_verify_enabled, delete d.tls_verify_value;
|
|
5105
|
-
},
|
|
5106
|
-
var g,
|
|
5118
|
+
}, Ne = I(() => {
|
|
5119
|
+
var g, O;
|
|
5107
5120
|
const d = {
|
|
5108
5121
|
name: s.fields.name || null,
|
|
5109
|
-
tags: s.fields.tags ? (g = s.fields.tags) == null ? void 0 : g.split(",").filter((
|
|
5122
|
+
tags: s.fields.tags ? (g = s.fields.tags) == null ? void 0 : g.split(",").filter((P) => P !== "") : null,
|
|
5110
5123
|
protocol: s.fields.protocol,
|
|
5111
5124
|
path: s.fields.path || null,
|
|
5112
5125
|
read_timeout: s.fields.read_timeout,
|
|
@@ -5115,23 +5128,23 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5115
5128
|
connect_timeout: s.fields.connect_timeout,
|
|
5116
5129
|
tls_verify_value: s.fields.tls_verify_value,
|
|
5117
5130
|
tls_verify_enabled: s.fields.tls_verify_enabled,
|
|
5118
|
-
ca_certificates: s.fields.ca_certificates ? (
|
|
5131
|
+
ca_certificates: s.fields.ca_certificates ? (O = s.fields.ca_certificates) == null ? void 0 : O.split(",").filter((P) => P !== "") : null,
|
|
5119
5132
|
client_certificate: s.fields.client_certificate ? { id: s.fields.client_certificate } : null,
|
|
5120
5133
|
write_timeout: s.fields.write_timeout,
|
|
5121
5134
|
port: s.fields.port,
|
|
5122
5135
|
url: s.fields.url
|
|
5123
5136
|
};
|
|
5124
5137
|
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.tls_verify = s.fields.tls_verify_value), J.value || (d.path = null), v.value === "create" ? S.value === "url" ? (delete d.protocol, delete d.host, delete d.path, r.config.app === "konnect" && delete d.port) : delete d.url : v.value === "edit" && delete d.url, d;
|
|
5125
|
-
}),
|
|
5126
|
-
var d, g,
|
|
5138
|
+
}), Fe = async () => {
|
|
5139
|
+
var d, g, O, P;
|
|
5127
5140
|
try {
|
|
5128
|
-
s.isReadonly = !0,
|
|
5129
|
-
const W =
|
|
5141
|
+
s.isReadonly = !0, E();
|
|
5142
|
+
const W = Ne.value;
|
|
5130
5143
|
et(W);
|
|
5131
5144
|
let ie;
|
|
5132
5145
|
if (await m.post(yt.value, W), v.value === "create" ? ie = await m.post(ze.value, W) : v.value === "edit" && (ie = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await m.put(ze.value, W) : await m.patch(ze.value, W)), ie) {
|
|
5133
5146
|
const { data: _ } = ie;
|
|
5134
|
-
s.fields.name = (_ == null ? void 0 : _.name) || "", s.fields.port = _.port ||
|
|
5147
|
+
s.fields.name = (_ == null ? void 0 : _.name) || "", s.fields.port = _.port || K.getPortFromProtocol(_.protocol), s.fields.protocol = (_ == null ? void 0 : _.protocol) || "http", s.fields.host = (_ == null ? void 0 : _.host) || "", s.fields.path = (_ == null ? void 0 : _.path) || "", s.fields.url = (_ == null ? void 0 : _.url) || "", s.fields.retries = _ != null && _.retries || (_ == null ? void 0 : _.retries) === 0 ? _ == null ? void 0 : _.retries : 5, s.fields.connect_timeout = _ != null && _.connect_timeout || (_ == null ? void 0 : _.connect_timeout) === 0 ? _ == null ? void 0 : _.connect_timeout : 6e4, s.fields.write_timeout = _ != null && _.write_timeout || (_ == null ? void 0 : _.write_timeout) === 0 ? _ == null ? void 0 : _.write_timeout : 6e4, s.fields.read_timeout = _ != null && _.read_timeout || (_ == null ? void 0 : _.read_timeout) === 0 ? _ == null ? void 0 : _.read_timeout : 6e4, s.fields.client_certificate = ((g = _ == null ? void 0 : _.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (O = _ == null ? void 0 : _.ca_certificates) != null && O.length ? _ == null ? void 0 : _.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (_ == null ? void 0 : _.tls_verify) !== "" && (_ == null ? void 0 : _.tls_verify) !== null && (_ == null ? void 0 : _.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (_ == null ? void 0 : _.tls_verify), s.fields.tags = (P = _ == null ? void 0 : _.tags) != null && P.length ? _ == null ? void 0 : _.tags.join(",") : "", Object.assign(y, s.fields), a("update", ie == null ? void 0 : ie.data);
|
|
5135
5148
|
}
|
|
5136
5149
|
return ie;
|
|
5137
5150
|
} catch (W) {
|
|
@@ -5143,53 +5156,53 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5143
5156
|
return _e(() => r.gatewayServiceId, () => {
|
|
5144
5157
|
Object.assign(s.fields, y);
|
|
5145
5158
|
}), _e(s.fields, (d) => {
|
|
5146
|
-
s.fields.port =
|
|
5159
|
+
s.fields.port = K.getPortFromProtocol(d.protocol, String(d.port)), a("model-updated", Ne.value);
|
|
5147
5160
|
}), ui(() => {
|
|
5148
|
-
a("model-updated",
|
|
5161
|
+
a("model-updated", Ne.value);
|
|
5149
5162
|
}), t({
|
|
5150
|
-
validateUrl:
|
|
5151
|
-
getPayload:
|
|
5152
|
-
saveFormData:
|
|
5163
|
+
validateUrl: E,
|
|
5164
|
+
getPayload: Ne,
|
|
5165
|
+
saveFormData: Fe,
|
|
5153
5166
|
canSubmit: je
|
|
5154
5167
|
}), (d, g) => {
|
|
5155
|
-
const
|
|
5156
|
-
return w(),
|
|
5157
|
-
C(f(
|
|
5168
|
+
const O = B("KInput"), P = B("KLabel"), W = B("KRadio"), ie = B("KSelect"), _ = B("KCheckbox"), we = B("KCollapse");
|
|
5169
|
+
return w(), A("div", Os, [
|
|
5170
|
+
C(f(El), {
|
|
5158
5171
|
"can-submit": je.value,
|
|
5159
5172
|
config: e.config,
|
|
5160
5173
|
"edit-id": e.gatewayServiceId,
|
|
5161
5174
|
"error-message": s.errorMessage,
|
|
5162
5175
|
"fetch-url": k.value,
|
|
5163
|
-
"form-fields":
|
|
5176
|
+
"form-fields": Ne.value,
|
|
5164
5177
|
"is-readonly": s.isReadonly,
|
|
5165
5178
|
onCancel: De,
|
|
5166
5179
|
"onFetch:error": g[25] || (g[25] = (U) => d.$emit("error", U)),
|
|
5167
|
-
"onFetch:success":
|
|
5180
|
+
"onFetch:success": Pe,
|
|
5168
5181
|
onLoading: g[26] || (g[26] = (U) => d.$emit("loading", U)),
|
|
5169
|
-
onSubmit:
|
|
5182
|
+
onSubmit: Fe
|
|
5170
5183
|
}, {
|
|
5171
|
-
"form-actions":
|
|
5184
|
+
"form-actions": b(() => [
|
|
5172
5185
|
te(d.$slots, "form-actions", {
|
|
5173
5186
|
canSubmit: je.value,
|
|
5174
5187
|
cancel: De,
|
|
5175
|
-
submit:
|
|
5188
|
+
submit: Fe
|
|
5176
5189
|
}, void 0, !0)
|
|
5177
5190
|
]),
|
|
5178
|
-
default:
|
|
5191
|
+
default: b(() => [
|
|
5179
5192
|
C(f(si), {
|
|
5180
5193
|
description: f(l)("gateway_services.form.sections.general.description"),
|
|
5181
5194
|
"hide-info-header": e.hideSectionsInfo,
|
|
5182
5195
|
title: f(l)("gateway_services.form.sections.general.title")
|
|
5183
5196
|
}, {
|
|
5184
|
-
default:
|
|
5185
|
-
C(
|
|
5197
|
+
default: b(() => [
|
|
5198
|
+
C(O, {
|
|
5186
5199
|
modelValue: s.fields.name,
|
|
5187
5200
|
"onUpdate:modelValue": g[0] || (g[0] = (U) => s.fields.name = U),
|
|
5188
5201
|
modelModifiers: { trim: !0 },
|
|
5189
5202
|
autocomplete: "off",
|
|
5190
5203
|
"data-testid": "gateway-service-name-input",
|
|
5191
|
-
error:
|
|
5192
|
-
"error-message":
|
|
5204
|
+
error: Z.value,
|
|
5205
|
+
"error-message": N.value,
|
|
5193
5206
|
label: f(l)("gateway_services.form.fields.name.label"),
|
|
5194
5207
|
"label-attributes": { info: f(l)("gateway_services.form.fields.name.tooltip") },
|
|
5195
5208
|
name: "name",
|
|
@@ -5198,7 +5211,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5198
5211
|
type: "text",
|
|
5199
5212
|
onInput: ae
|
|
5200
5213
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
5201
|
-
C(
|
|
5214
|
+
C(O, {
|
|
5202
5215
|
modelValue: s.fields.tags,
|
|
5203
5216
|
"onUpdate:modelValue": g[1] || (g[1] = (U) => s.fields.tags = U),
|
|
5204
5217
|
modelModifiers: { trim: !0 },
|
|
@@ -5220,32 +5233,32 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5220
5233
|
"hide-info-header": e.hideSectionsInfo,
|
|
5221
5234
|
title: f(l)("gateway_services.form.sections.keys.title")
|
|
5222
5235
|
}, {
|
|
5223
|
-
default:
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
C(
|
|
5227
|
-
default:
|
|
5228
|
-
H(
|
|
5236
|
+
default: b(() => [
|
|
5237
|
+
j.value ? G("", !0) : (w(), A("div", Ms, [
|
|
5238
|
+
F("div", Fs, [
|
|
5239
|
+
C(P, { required: "" }, {
|
|
5240
|
+
default: b(() => [
|
|
5241
|
+
H($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
5229
5242
|
]),
|
|
5230
5243
|
_: 1
|
|
5231
5244
|
})
|
|
5232
5245
|
]),
|
|
5233
|
-
|
|
5246
|
+
F("div", Es, [
|
|
5234
5247
|
C(W, {
|
|
5235
5248
|
modelValue: S.value,
|
|
5236
5249
|
"onUpdate:modelValue": g[2] || (g[2] = (U) => S.value = U),
|
|
5237
5250
|
"data-testid": "gateway-service-url-radio",
|
|
5238
|
-
"selected-value":
|
|
5251
|
+
"selected-value": R.url,
|
|
5239
5252
|
onChange: L
|
|
5240
5253
|
}, {
|
|
5241
|
-
default:
|
|
5242
|
-
H(
|
|
5254
|
+
default: b(() => [
|
|
5255
|
+
H($(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
5243
5256
|
]),
|
|
5244
5257
|
_: 1
|
|
5245
5258
|
}, 8, ["modelValue", "selected-value"])
|
|
5246
5259
|
]),
|
|
5247
|
-
S.value === "url" ? (w(),
|
|
5248
|
-
C(
|
|
5260
|
+
S.value === "url" ? (w(), A("div", Vs, [
|
|
5261
|
+
C(O, {
|
|
5249
5262
|
modelValue: s.fields.url,
|
|
5250
5263
|
"onUpdate:modelValue": g[3] || (g[3] = (U) => s.fields.url = U),
|
|
5251
5264
|
modelModifiers: { trim: !0 },
|
|
@@ -5265,16 +5278,16 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5265
5278
|
"onUpdate:modelValue": g[4] || (g[4] = (U) => S.value = U),
|
|
5266
5279
|
"checked-group": "protocol",
|
|
5267
5280
|
"data-testid": "gateway-service-protocol-radio",
|
|
5268
|
-
"selected-value":
|
|
5281
|
+
"selected-value": R.protocol,
|
|
5269
5282
|
onChange: L
|
|
5270
5283
|
}, {
|
|
5271
|
-
default:
|
|
5272
|
-
H(
|
|
5284
|
+
default: b(() => [
|
|
5285
|
+
H($(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
5273
5286
|
]),
|
|
5274
5287
|
_: 1
|
|
5275
5288
|
}, 8, ["modelValue", "selected-value"])
|
|
5276
5289
|
])),
|
|
5277
|
-
S.value === "protocol" ||
|
|
5290
|
+
S.value === "protocol" || j.value ? (w(), A("div", Ls, [
|
|
5278
5291
|
C(ie, {
|
|
5279
5292
|
modelValue: s.fields.protocol,
|
|
5280
5293
|
"onUpdate:modelValue": g[5] || (g[5] = (U) => s.fields.protocol = U),
|
|
@@ -5287,9 +5300,9 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5287
5300
|
readonly: s.isReadonly,
|
|
5288
5301
|
required: "",
|
|
5289
5302
|
width: "100%",
|
|
5290
|
-
onSelected: g[6] || (g[6] = (U) =>
|
|
5303
|
+
onSelected: g[6] || (g[6] = (U) => T(s.fields.protocol, U))
|
|
5291
5304
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
5292
|
-
C(
|
|
5305
|
+
C(O, {
|
|
5293
5306
|
modelValue: s.fields.host,
|
|
5294
5307
|
"onUpdate:modelValue": g[7] || (g[7] = (U) => s.fields.host = U),
|
|
5295
5308
|
modelModifiers: { trim: !0 },
|
|
@@ -5303,8 +5316,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5303
5316
|
placeholder: f(l)("gateway_services.form.fields.host.placeholder"),
|
|
5304
5317
|
required: ""
|
|
5305
5318
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
5306
|
-
J.value ? (w(),
|
|
5307
|
-
C(
|
|
5319
|
+
J.value ? (w(), A("div", qs, [
|
|
5320
|
+
C(O, {
|
|
5308
5321
|
modelValue: s.fields.path,
|
|
5309
5322
|
"onUpdate:modelValue": g[8] || (g[8] = (U) => s.fields.path = U),
|
|
5310
5323
|
modelModifiers: { trim: !0 },
|
|
@@ -5318,7 +5331,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5318
5331
|
placeholder: f(l)("gateway_services.form.fields.path.placeholder")
|
|
5319
5332
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
5320
5333
|
])) : G("", !0),
|
|
5321
|
-
C(
|
|
5334
|
+
C(O, {
|
|
5322
5335
|
modelValue: s.fields.port,
|
|
5323
5336
|
"onUpdate:modelValue": [
|
|
5324
5337
|
g[9] || (g[9] = (U) => s.fields.port = U),
|
|
@@ -5343,10 +5356,10 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5343
5356
|
"trigger-alignment": "leading",
|
|
5344
5357
|
"trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
5345
5358
|
}, {
|
|
5346
|
-
default:
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
C(
|
|
5359
|
+
default: b(() => [
|
|
5360
|
+
F("div", Us, [
|
|
5361
|
+
F("div", Ks, [
|
|
5362
|
+
C(O, {
|
|
5350
5363
|
modelValue: s.fields.retries,
|
|
5351
5364
|
"onUpdate:modelValue": [
|
|
5352
5365
|
g[11] || (g[11] = (U) => s.fields.retries = U),
|
|
@@ -5363,8 +5376,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5363
5376
|
type: "number"
|
|
5364
5377
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5365
5378
|
]),
|
|
5366
|
-
|
|
5367
|
-
C(
|
|
5379
|
+
F("div", Bs, [
|
|
5380
|
+
C(O, {
|
|
5368
5381
|
modelValue: s.fields.connect_timeout,
|
|
5369
5382
|
"onUpdate:modelValue": [
|
|
5370
5383
|
g[13] || (g[13] = (U) => s.fields.connect_timeout = U),
|
|
@@ -5381,8 +5394,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5381
5394
|
type: "number"
|
|
5382
5395
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5383
5396
|
]),
|
|
5384
|
-
|
|
5385
|
-
C(
|
|
5397
|
+
F("div", Rs, [
|
|
5398
|
+
C(O, {
|
|
5386
5399
|
modelValue: s.fields.write_timeout,
|
|
5387
5400
|
"onUpdate:modelValue": [
|
|
5388
5401
|
g[15] || (g[15] = (U) => s.fields.write_timeout = U),
|
|
@@ -5399,8 +5412,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5399
5412
|
type: "number"
|
|
5400
5413
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5401
5414
|
]),
|
|
5402
|
-
|
|
5403
|
-
C(
|
|
5415
|
+
F("div", Ps, [
|
|
5416
|
+
C(O, {
|
|
5404
5417
|
modelValue: s.fields.read_timeout,
|
|
5405
5418
|
"onUpdate:modelValue": [
|
|
5406
5419
|
g[17] || (g[17] = (U) => s.fields.read_timeout = U),
|
|
@@ -5417,8 +5430,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5417
5430
|
type: "number"
|
|
5418
5431
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5419
5432
|
]),
|
|
5420
|
-
|
|
5421
|
-
C(
|
|
5433
|
+
Q.value ? (w(), A("div", Ds, [
|
|
5434
|
+
C(O, {
|
|
5422
5435
|
modelValue: s.fields.client_certificate,
|
|
5423
5436
|
"onUpdate:modelValue": g[19] || (g[19] = (U) => s.fields.client_certificate = U),
|
|
5424
5437
|
modelModifiers: { trim: !0 },
|
|
@@ -5432,8 +5445,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5432
5445
|
type: "text"
|
|
5433
5446
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
5434
5447
|
])) : G("", !0),
|
|
5435
|
-
pe.value ? (w(),
|
|
5436
|
-
C(
|
|
5448
|
+
pe.value ? (w(), A("div", zs, [
|
|
5449
|
+
C(O, {
|
|
5437
5450
|
modelValue: s.fields.ca_certificates,
|
|
5438
5451
|
"onUpdate:modelValue": g[20] || (g[20] = (U) => s.fields.ca_certificates = U),
|
|
5439
5452
|
modelModifiers: { trim: !0 },
|
|
@@ -5444,16 +5457,16 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5444
5457
|
readonly: s.isReadonly,
|
|
5445
5458
|
type: "text"
|
|
5446
5459
|
}, {
|
|
5447
|
-
"label-tooltip":
|
|
5460
|
+
"label-tooltip": b(() => [
|
|
5448
5461
|
C(f(c), {
|
|
5449
5462
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5450
5463
|
scope: "global"
|
|
5451
5464
|
}, {
|
|
5452
|
-
code1:
|
|
5453
|
-
|
|
5465
|
+
code1: b(() => [
|
|
5466
|
+
F("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5454
5467
|
]),
|
|
5455
|
-
code2:
|
|
5456
|
-
|
|
5468
|
+
code2: b(() => [
|
|
5469
|
+
F("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5457
5470
|
]),
|
|
5458
5471
|
_: 1
|
|
5459
5472
|
})
|
|
@@ -5461,7 +5474,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5461
5474
|
_: 1
|
|
5462
5475
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
5463
5476
|
])) : G("", !0),
|
|
5464
|
-
fe.value ? (w(),
|
|
5477
|
+
fe.value ? (w(), A("div", Js, [
|
|
5465
5478
|
C(_, {
|
|
5466
5479
|
modelValue: s.fields.tls_verify_enabled,
|
|
5467
5480
|
"onUpdate:modelValue": g[21] || (g[21] = (U) => s.fields.tls_verify_enabled = U),
|
|
@@ -5469,20 +5482,20 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5469
5482
|
description: f(l)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
5470
5483
|
label: f(l)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
5471
5484
|
}, {
|
|
5472
|
-
tooltip:
|
|
5485
|
+
tooltip: b(() => [
|
|
5473
5486
|
C(f(c), {
|
|
5474
5487
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5475
5488
|
scope: "global"
|
|
5476
5489
|
}, {
|
|
5477
|
-
code1:
|
|
5478
|
-
|
|
5490
|
+
code1: b(() => [
|
|
5491
|
+
F("code", null, $(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5479
5492
|
]),
|
|
5480
5493
|
_: 1
|
|
5481
5494
|
})
|
|
5482
5495
|
]),
|
|
5483
5496
|
_: 1
|
|
5484
5497
|
}, 8, ["modelValue", "description", "label"]),
|
|
5485
|
-
s.fields.tls_verify_enabled ? (w(),
|
|
5498
|
+
s.fields.tls_verify_enabled ? (w(), A("div", Gs, [
|
|
5486
5499
|
C(W, {
|
|
5487
5500
|
modelValue: s.fields.tls_verify_value,
|
|
5488
5501
|
"onUpdate:modelValue": g[22] || (g[22] = (U) => s.fields.tls_verify_value = U),
|
|
@@ -5491,7 +5504,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5491
5504
|
"selected-value": !0
|
|
5492
5505
|
}, null, 8, ["modelValue", "label"])
|
|
5493
5506
|
])) : G("", !0),
|
|
5494
|
-
s.fields.tls_verify_enabled ? (w(),
|
|
5507
|
+
s.fields.tls_verify_enabled ? (w(), A("div", Hs, [
|
|
5495
5508
|
C(W, {
|
|
5496
5509
|
modelValue: s.fields.tls_verify_value,
|
|
5497
5510
|
"onUpdate:modelValue": g[23] || (g[23] = (U) => s.fields.tls_verify_value = U),
|
|
@@ -5514,7 +5527,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5514
5527
|
]);
|
|
5515
5528
|
};
|
|
5516
5529
|
}
|
|
5517
|
-
}), sc = /* @__PURE__ */ ur(Ws, [["__scopeId", "data-v-7beacaec"]]), Ys = { class: "kong-ui-gateway-service-entity-config-card" }, cc = /* @__PURE__ */
|
|
5530
|
+
}), sc = /* @__PURE__ */ ur(Ws, [["__scopeId", "data-v-7beacaec"]]), Ys = { class: "kong-ui-gateway-service-entity-config-card" }, cc = /* @__PURE__ */ ee({
|
|
5518
5531
|
__name: "GatewayServiceConfigCard",
|
|
5519
5532
|
props: {
|
|
5520
5533
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5541,7 +5554,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5541
5554
|
},
|
|
5542
5555
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
5543
5556
|
setup(e) {
|
|
5544
|
-
const t = e, { i18n: { t: i }, i18nT: a } = at.useI18n(), r = I(() => We.form[t.config.app].edit), { getPropValue: n } =
|
|
5557
|
+
const t = e, { i18n: { t: i }, i18nT: a } = at.useI18n(), r = I(() => We.form[t.config.app].edit), { getPropValue: n } = Is(), o = (l, u) => n(l, u) === !0 ? i("gateway_services.form.fields.tls_verify_option.true.display") : i("gateway_services.form.fields.tls_verify_option.false.display"), c = V({
|
|
5545
5558
|
id: {},
|
|
5546
5559
|
name: {
|
|
5547
5560
|
tooltip: i("gateway_services.form.fields.name.tooltip")
|
|
@@ -5590,7 +5603,7 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5590
5603
|
tooltip: i("gateway_services.form.fields.client_certificate.tooltip")
|
|
5591
5604
|
},
|
|
5592
5605
|
ca_certificates: {
|
|
5593
|
-
type:
|
|
5606
|
+
type: X.BadgeTag,
|
|
5594
5607
|
label: i("gateway_services.form.fields.ca_certificates.label"),
|
|
5595
5608
|
order: 6
|
|
5596
5609
|
},
|
|
@@ -5601,8 +5614,8 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5601
5614
|
hidden: !0
|
|
5602
5615
|
}
|
|
5603
5616
|
});
|
|
5604
|
-
return (l, u) => (w(),
|
|
5605
|
-
C(f(
|
|
5617
|
+
return (l, u) => (w(), A("div", Ys, [
|
|
5618
|
+
C(f(Nl), {
|
|
5606
5619
|
config: e.config,
|
|
5607
5620
|
"config-card-doc": e.configCardDoc,
|
|
5608
5621
|
"config-schema": c.value,
|
|
@@ -5612,50 +5625,50 @@ const ys = ["aria-labelledby"], vs = { class: "form-section-wrapper" }, hs = {
|
|
|
5612
5625
|
"onFetch:success": u[1] || (u[1] = (m) => l.$emit("fetch:success", m)),
|
|
5613
5626
|
onLoading: u[2] || (u[2] = (m) => l.$emit("loading", m))
|
|
5614
5627
|
}, {
|
|
5615
|
-
"enabled-label-tooltip":
|
|
5628
|
+
"enabled-label-tooltip": b(() => [
|
|
5616
5629
|
C(f(a), {
|
|
5617
5630
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
5618
5631
|
scope: "global"
|
|
5619
5632
|
}, {
|
|
5620
|
-
false:
|
|
5621
|
-
|
|
5633
|
+
false: b(() => [
|
|
5634
|
+
F("code", null, $(f(i)("gateway_services.form.fields.enabled.false")), 1)
|
|
5622
5635
|
]),
|
|
5623
|
-
true:
|
|
5624
|
-
|
|
5636
|
+
true: b(() => [
|
|
5637
|
+
F("code", null, $(f(i)("gateway_services.form.fields.enabled.true")), 1)
|
|
5625
5638
|
]),
|
|
5626
5639
|
_: 1
|
|
5627
5640
|
})
|
|
5628
5641
|
]),
|
|
5629
|
-
"ca_certificates-label-tooltip":
|
|
5642
|
+
"ca_certificates-label-tooltip": b(() => [
|
|
5630
5643
|
C(f(a), {
|
|
5631
5644
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5632
5645
|
scope: "global"
|
|
5633
5646
|
}, {
|
|
5634
|
-
code1:
|
|
5635
|
-
|
|
5647
|
+
code1: b(() => [
|
|
5648
|
+
F("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5636
5649
|
]),
|
|
5637
|
-
code2:
|
|
5638
|
-
|
|
5650
|
+
code2: b(() => [
|
|
5651
|
+
F("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5639
5652
|
]),
|
|
5640
5653
|
_: 1
|
|
5641
5654
|
})
|
|
5642
5655
|
]),
|
|
5643
|
-
"tls_verify-label-tooltip":
|
|
5656
|
+
"tls_verify-label-tooltip": b(() => [
|
|
5644
5657
|
C(f(a), {
|
|
5645
5658
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5646
5659
|
scope: "global"
|
|
5647
5660
|
}, {
|
|
5648
|
-
code1:
|
|
5649
|
-
|
|
5661
|
+
code1: b(() => [
|
|
5662
|
+
F("code", null, $(f(i)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5650
5663
|
]),
|
|
5651
5664
|
_: 1
|
|
5652
5665
|
})
|
|
5653
5666
|
]),
|
|
5654
|
-
tls_verify:
|
|
5655
|
-
H(
|
|
5667
|
+
tls_verify: b((m) => [
|
|
5668
|
+
H($(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(i)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5656
5669
|
]),
|
|
5657
|
-
client_certificate:
|
|
5658
|
-
H(
|
|
5670
|
+
client_certificate: b((m) => [
|
|
5671
|
+
H($(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
|
|
5659
5672
|
]),
|
|
5660
5673
|
_: 1
|
|
5661
5674
|
}, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
|