@kong-ui-public/entities-key-sets 2.1.17 → 2.1.18
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-key-sets.es.js +285 -283
- package/dist/entities-key-sets.umd.js +12 -12
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as E, computed as T, watch as we, renderSlot as z, createCommentVNode as V, unref as k, useSlots as We, onBeforeMount as ct, resolveComponent as
|
|
1
|
+
import { defineComponent as ne, ref as E, computed as T, watch as we, renderSlot as z, createCommentVNode as V, unref as k, useSlots as We, onBeforeMount as ct, resolveComponent as K, openBlock as g, createBlock as q, createSlots as Ie, withCtx as v, createElementVNode as B, createTextVNode as H, toDisplayString as N, createVNode as j, createElementBlock as _, renderList as de, Fragment as fe, normalizeClass as ke, withModifiers as Re, withDirectives as Ne, vShow as Ke, useCssVars as Zt, resolveDynamicComponent as je, normalizeProps as Xn, guardReactiveProps as ea, mergeProps as nt, onMounted as ta, onUnmounted as na, normalizeStyle as Gt, inject as aa, pushScopeId as Qt, popScopeId as Xt, Teleport as ia, reactive as It } from "vue";
|
|
2
2
|
import { useRouter as ut } from "vue-router";
|
|
3
3
|
import { createI18n as dt, i18nTComponent as en } from "@kong-ui-public/i18n";
|
|
4
4
|
import ra from "axios";
|
|
@@ -339,18 +339,18 @@ function Sa(e, n, t, a = {
|
|
|
339
339
|
} else if (w) {
|
|
340
340
|
const M = [];
|
|
341
341
|
I(w) && a.searchKeys.includes("id") ? M.push((async () => {
|
|
342
|
-
const { data:
|
|
343
|
-
return [
|
|
342
|
+
const { data: $ } = await i.get(`${h}/${w}`);
|
|
343
|
+
return [$[a.fetchedItemsKey] ?? $];
|
|
344
344
|
})()) : M.push(
|
|
345
|
-
...a.searchKeys.filter((
|
|
346
|
-
const { data:
|
|
347
|
-
return
|
|
345
|
+
...a.searchKeys.filter(($) => $ !== "id").map(async ($) => {
|
|
346
|
+
const { data: F } = await i.get(`${h}?${$}=${w}`);
|
|
347
|
+
return F[a.fetchedItemsKey];
|
|
348
348
|
})
|
|
349
349
|
);
|
|
350
350
|
const b = await Promise.all(M), U = /* @__PURE__ */ new Set();
|
|
351
|
-
u.value = [], (x = b == null ? void 0 : b.forEach) == null || x.call(b, (
|
|
352
|
-
var
|
|
353
|
-
(
|
|
351
|
+
u.value = [], (x = b == null ? void 0 : b.forEach) == null || x.call(b, ($) => {
|
|
352
|
+
var F;
|
|
353
|
+
(F = $ == null ? void 0 : $.forEach) == null || F.call($, (D) => {
|
|
354
354
|
U.has(D.id) || (U.add(D.id), u.value.push(D));
|
|
355
355
|
});
|
|
356
356
|
});
|
|
@@ -365,9 +365,9 @@ function Sa(e, n, t, a = {
|
|
|
365
365
|
s.value = !0, d.value = "", w ? (u.value = (J = p.value) == null ? void 0 : J.filter((M) => {
|
|
366
366
|
var b;
|
|
367
367
|
let U = !1;
|
|
368
|
-
for (const
|
|
369
|
-
const
|
|
370
|
-
|
|
368
|
+
for (const $ of a.searchKeys) {
|
|
369
|
+
const F = typeof M[$] == "string" ? (b = M[$]) == null ? void 0 : b.toLowerCase() : M[$];
|
|
370
|
+
F != null && F.includes(w.toLowerCase()) && (U = !0);
|
|
371
371
|
}
|
|
372
372
|
return U;
|
|
373
373
|
}), (!u.value || !u.value.length) && (d.value = r("debouncedFilter.errors.invalid"))) : u.value = p.value, s.value = !1;
|
|
@@ -454,7 +454,9 @@ function _a(e, n, t = "data") {
|
|
|
454
454
|
return { fetcher: async (l) => {
|
|
455
455
|
try {
|
|
456
456
|
o.value = { status: Se.Loading };
|
|
457
|
-
|
|
457
|
+
let s = r(l);
|
|
458
|
+
s.includes("filter[name]") && (s = `${s}&page[size]=${l.pageSize}&page[number]=${l.page}`);
|
|
459
|
+
const { data: c } = await i.get(s), d = t && t.replace(/[^\w-_]/gi, "");
|
|
458
460
|
let u;
|
|
459
461
|
c[d] && Array.isArray(c[d]) ? u = c[d] : Array.isArray(c) ? u = c : u = Object.keys(c).length ? [c] : [];
|
|
460
462
|
const y = {
|
|
@@ -504,24 +506,24 @@ const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
504
506
|
}, xt = (e) => e === "*" || e === "x" || e === "X", _t = (e) => {
|
|
505
507
|
const n = parseInt(e, 10);
|
|
506
508
|
return isNaN(n) ? e : n;
|
|
507
|
-
},
|
|
509
|
+
}, $a = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], ja = (e, n) => {
|
|
508
510
|
if (xt(e) || xt(n))
|
|
509
511
|
return 0;
|
|
510
|
-
const [t, a] =
|
|
512
|
+
const [t, a] = $a(_t(e), _t(n));
|
|
511
513
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
512
514
|
}, Tt = (e, n) => {
|
|
513
515
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
514
|
-
const a =
|
|
516
|
+
const a = ja(e[t] || "0", n[t] || "0");
|
|
515
517
|
if (a !== 0)
|
|
516
518
|
return a;
|
|
517
519
|
}
|
|
518
520
|
return 0;
|
|
519
|
-
},
|
|
521
|
+
}, Oa = (e, n) => {
|
|
520
522
|
const t = At(e), a = At(n), i = t.pop(), r = a.pop(), o = Tt(t, a);
|
|
521
523
|
return o !== 0 ? o : i && r ? Tt(i.split("."), r.split(".")) : i || r ? i ? -1 : 1 : 0;
|
|
522
|
-
},
|
|
524
|
+
}, $t = (e, n, t) => {
|
|
523
525
|
Ma(t);
|
|
524
|
-
const a =
|
|
526
|
+
const a = Oa(e, n);
|
|
525
527
|
return on[t].includes(a);
|
|
526
528
|
}, on = {
|
|
527
529
|
">": [1],
|
|
@@ -530,13 +532,13 @@ const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
530
532
|
"<=": [-1, 0],
|
|
531
533
|
"<": [-1],
|
|
532
534
|
"!=": [-1, 1]
|
|
533
|
-
},
|
|
535
|
+
}, jt = Object.keys(on), Ma = (e) => {
|
|
534
536
|
if (typeof e != "string")
|
|
535
537
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
536
|
-
if (
|
|
537
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
538
|
+
if (jt.indexOf(e) === -1)
|
|
539
|
+
throw new Error(`Invalid operator, expected one of ${jt.join("|")}`);
|
|
538
540
|
}, Ea = (e) => typeof e == "string" && /^[v\d]/.test(e) && rn.test(e);
|
|
539
|
-
function
|
|
541
|
+
function Na(e) {
|
|
540
542
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
541
543
|
if (!n)
|
|
542
544
|
return !0;
|
|
@@ -547,9 +549,9 @@ function Fa(e) {
|
|
|
547
549
|
if (!r)
|
|
548
550
|
return !1;
|
|
549
551
|
const [o, l] = r;
|
|
550
|
-
return !(o &&
|
|
552
|
+
return !(o && $t(i, o, "<") || l && $t(i, l, ">"));
|
|
551
553
|
}
|
|
552
|
-
function
|
|
554
|
+
function Ka(e) {
|
|
553
555
|
const n = E(0), t = E(0), a = E(!1);
|
|
554
556
|
return we(e, (i) => {
|
|
555
557
|
i && !a.value && (n.value = i.offsetWidth, t.value = i.scrollWidth, a.value = !0);
|
|
@@ -568,18 +570,18 @@ const re = {
|
|
|
568
570
|
useHelpers: nn,
|
|
569
571
|
useStringHelpers: Ta,
|
|
570
572
|
useI18n: yt,
|
|
571
|
-
useGatewayFeatureSupported:
|
|
572
|
-
useTruncationDetector:
|
|
573
|
-
},
|
|
573
|
+
useGatewayFeatureSupported: Na,
|
|
574
|
+
useTruncationDetector: Ka
|
|
575
|
+
}, Fa = {
|
|
574
576
|
fail: "Failed to copy id to clipboard",
|
|
575
577
|
success: {
|
|
576
578
|
prefix: "Successfully",
|
|
577
579
|
content: " copied to clipboard"
|
|
578
580
|
}
|
|
579
581
|
}, qa = "Copy to clipboard", Ba = {
|
|
580
|
-
message:
|
|
582
|
+
message: Fa,
|
|
581
583
|
iconTitle: qa
|
|
582
|
-
}, La = "kong-ui-copy-uuid-notify",
|
|
584
|
+
}, La = "kong-ui-copy-uuid-notify", Ot = "24px", Ua = (e, n) => {
|
|
583
585
|
const t = e.__vccOpts || e;
|
|
584
586
|
for (const [a, i] of n)
|
|
585
587
|
t[a] = i;
|
|
@@ -621,7 +623,7 @@ const re = {
|
|
|
621
623
|
size: {
|
|
622
624
|
type: [Number, String],
|
|
623
625
|
required: !1,
|
|
624
|
-
default:
|
|
626
|
+
default: Ot,
|
|
625
627
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
626
628
|
validator: (e) => {
|
|
627
629
|
if (typeof e == "number" && e > 0)
|
|
@@ -650,7 +652,7 @@ const re = {
|
|
|
650
652
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
651
653
|
return `${r}px`;
|
|
652
654
|
}
|
|
653
|
-
return
|
|
655
|
+
return Ot;
|
|
654
656
|
}), a = T(() => ({
|
|
655
657
|
boxSizing: "border-box",
|
|
656
658
|
color: n.color,
|
|
@@ -659,7 +661,7 @@ const re = {
|
|
|
659
661
|
lineHeight: "0",
|
|
660
662
|
width: t.value
|
|
661
663
|
}));
|
|
662
|
-
return (i, r) => (g(), q(
|
|
664
|
+
return (i, r) => (g(), q(je(e.as), {
|
|
663
665
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
664
666
|
class: "kui-icon copy-icon",
|
|
665
667
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -676,7 +678,7 @@ const re = {
|
|
|
676
678
|
width: "100%",
|
|
677
679
|
xmlns: "http://www.w3.org/2000/svg"
|
|
678
680
|
}, [
|
|
679
|
-
e.title ? (g(), _("title", Pa,
|
|
681
|
+
e.title ? (g(), _("title", Pa, N(e.title), 1)) : V("", !0),
|
|
680
682
|
Va
|
|
681
683
|
], 8, Ra))
|
|
682
684
|
]),
|
|
@@ -762,9 +764,9 @@ const re = {
|
|
|
762
764
|
}), l.value ? u(a.successTooltip) : i("success", a.uuid);
|
|
763
765
|
};
|
|
764
766
|
return (p, C) => {
|
|
765
|
-
const h =
|
|
767
|
+
const h = K("KClipboardProvider");
|
|
766
768
|
return g(), _("div", Ya, [
|
|
767
|
-
e.format !== "hidden" ? (g(), q(
|
|
769
|
+
e.format !== "hidden" ? (g(), q(je(e.idTooltip ? "KTooltip" : "div"), nt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
768
770
|
default: v(() => [
|
|
769
771
|
B("div", {
|
|
770
772
|
class: ke([
|
|
@@ -772,13 +774,13 @@ const re = {
|
|
|
772
774
|
e.truncated ? "truncated-uuid" : null,
|
|
773
775
|
e.useMono ? "mono" : null
|
|
774
776
|
])
|
|
775
|
-
},
|
|
777
|
+
}, N(d.value), 3)
|
|
776
778
|
]),
|
|
777
779
|
_: 1
|
|
778
780
|
}, 16)) : V("", !0),
|
|
779
|
-
(g(), q(
|
|
781
|
+
(g(), q(je(e.tooltip ? "KTooltip" : "div"), nt(c.value, { class: "uuid-icon-wrapper" }), {
|
|
780
782
|
default: v(() => [
|
|
781
|
-
|
|
783
|
+
j(h, null, {
|
|
782
784
|
default: v(({ copyToClipboard: I }) => [
|
|
783
785
|
B("span", {
|
|
784
786
|
"data-testid": "copy-to-clipboard",
|
|
@@ -786,7 +788,7 @@ const re = {
|
|
|
786
788
|
tabindex: "0",
|
|
787
789
|
onClick: Re((m) => y(I), ["stop"])
|
|
788
790
|
}, [
|
|
789
|
-
|
|
791
|
+
j(k(Ha), {
|
|
790
792
|
class: "uuid-icon",
|
|
791
793
|
color: e.iconColor,
|
|
792
794
|
decorative: !!e.tooltip,
|
|
@@ -835,12 +837,12 @@ const re = {
|
|
|
835
837
|
var s;
|
|
836
838
|
return n.isArrayItem ? (s = r.value) != null && s.name ? a(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
837
839
|
});
|
|
838
|
-
return (s, c) => (g(), q(
|
|
840
|
+
return (s, c) => (g(), q(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
839
841
|
class: ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
840
842
|
}, {
|
|
841
843
|
default: v(() => [
|
|
842
844
|
e.isArrayItem ? (g(), _("legend", Qa, [
|
|
843
|
-
B("b", null,
|
|
845
|
+
B("b", null, N(l.value), 1)
|
|
844
846
|
])) : V("", !0),
|
|
845
847
|
(g(!0), _(fe, null, de(Object.keys(o.value), (d, u) => (g(), q(gt, {
|
|
846
848
|
key: `${i.value}-property-${u}`,
|
|
@@ -871,15 +873,15 @@ const re = {
|
|
|
871
873
|
setup(e) {
|
|
872
874
|
const { i18n: { t: n } } = re.useI18n();
|
|
873
875
|
return (t, a) => {
|
|
874
|
-
const i =
|
|
876
|
+
const i = K("KButton");
|
|
875
877
|
return g(), _("div", null, [
|
|
876
|
-
|
|
878
|
+
j(i, {
|
|
877
879
|
appearance: "tertiary",
|
|
878
880
|
class: "navigation-button",
|
|
879
881
|
onClick: a[0] || (a[0] = (r) => t.$emit("navigation-click", e.item))
|
|
880
882
|
}, {
|
|
881
883
|
default: v(() => [
|
|
882
|
-
H(
|
|
884
|
+
H(N(e.item.value || k(n)("baseConfigCard.commonFields.link")), 1)
|
|
883
885
|
]),
|
|
884
886
|
_: 1
|
|
885
887
|
})
|
|
@@ -897,12 +899,12 @@ const re = {
|
|
|
897
899
|
setup(e) {
|
|
898
900
|
const { i18n: { t: n } } = re.useI18n();
|
|
899
901
|
return (t, a) => {
|
|
900
|
-
const i =
|
|
902
|
+
const i = K("KBadge");
|
|
901
903
|
return g(), q(i, {
|
|
902
904
|
appearance: e.status ? "success" : "neutral"
|
|
903
905
|
}, {
|
|
904
906
|
default: v(() => [
|
|
905
|
-
H(
|
|
907
|
+
H(N(e.status ? k(n)("baseConfigCard.statusBadge.enabledLabel") : k(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
906
908
|
]),
|
|
907
909
|
_: 1
|
|
908
910
|
}, 8, ["appearance"]);
|
|
@@ -1065,16 +1067,16 @@ const re = {
|
|
|
1065
1067
|
}
|
|
1066
1068
|
}), y = E(), { isTruncated: p } = re.useTruncationDetector(y);
|
|
1067
1069
|
return (C, h) => {
|
|
1068
|
-
const I =
|
|
1070
|
+
const I = K("KLabel"), m = K("KBadge"), f = K("KTooltip");
|
|
1069
1071
|
return g(), _("div", si, [
|
|
1070
1072
|
B("div", {
|
|
1071
1073
|
class: "config-card-details-label",
|
|
1072
1074
|
"data-testid": `${e.item.key}-label`
|
|
1073
1075
|
}, [
|
|
1074
1076
|
z(C.$slots, "label", { item: e.item }, () => [
|
|
1075
|
-
|
|
1077
|
+
j(I, { "tooltip-attributes": { maxWidth: "500px" } }, Ie({
|
|
1076
1078
|
default: v(() => [
|
|
1077
|
-
H(
|
|
1079
|
+
H(N(e.item.label) + " ", 1)
|
|
1078
1080
|
]),
|
|
1079
1081
|
_: 2
|
|
1080
1082
|
}, [
|
|
@@ -1085,7 +1087,7 @@ const re = {
|
|
|
1085
1087
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1086
1088
|
}, [
|
|
1087
1089
|
z(C.$slots, "label-tooltip", {}, () => [
|
|
1088
|
-
H(
|
|
1090
|
+
H(N(e.item.tooltip), 1)
|
|
1089
1091
|
], !0)
|
|
1090
1092
|
], 8, ui)
|
|
1091
1093
|
]),
|
|
@@ -1102,7 +1104,7 @@ const re = {
|
|
|
1102
1104
|
rowValue: e.item.value
|
|
1103
1105
|
}, () => [
|
|
1104
1106
|
l.value ? (g(), _("div", fi, [
|
|
1105
|
-
(g(), q(
|
|
1107
|
+
(g(), q(je(u.value.tag), Xn(ea(u.value.attrs)), {
|
|
1106
1108
|
default: v(() => [
|
|
1107
1109
|
u.value.additionalComponent === "KBadge" ? (g(), _("div", {
|
|
1108
1110
|
key: 0,
|
|
@@ -1116,7 +1118,7 @@ const re = {
|
|
|
1116
1118
|
"truncation-tooltip": ""
|
|
1117
1119
|
}, {
|
|
1118
1120
|
default: v(() => [
|
|
1119
|
-
H(
|
|
1121
|
+
H(N(S), 1)
|
|
1120
1122
|
]),
|
|
1121
1123
|
_: 2
|
|
1122
1124
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -1143,7 +1145,7 @@ const re = {
|
|
|
1143
1145
|
"data-testid": `${e.item.key}-badge-method-${w}`
|
|
1144
1146
|
}, {
|
|
1145
1147
|
default: v(() => [
|
|
1146
|
-
H(
|
|
1148
|
+
H(N(S), 1)
|
|
1147
1149
|
]),
|
|
1148
1150
|
_: 2
|
|
1149
1151
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -1167,7 +1169,7 @@ const re = {
|
|
|
1167
1169
|
ref_key: "textContent",
|
|
1168
1170
|
ref: y,
|
|
1169
1171
|
class: ke(["attrs-data-text", { truncated: e.truncated }])
|
|
1170
|
-
},
|
|
1172
|
+
}, N(u.value.text), 3)
|
|
1171
1173
|
]),
|
|
1172
1174
|
_: 1
|
|
1173
1175
|
}, 8, ["label"]))
|
|
@@ -1210,13 +1212,13 @@ function Si(e, n) {
|
|
|
1210
1212
|
function Ii(e) {
|
|
1211
1213
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1212
1214
|
}
|
|
1213
|
-
var Ai = cn, xi = ki, _i = Ci, Ti = Si,
|
|
1215
|
+
var Ai = cn, xi = ki, _i = Ci, Ti = Si, $i = Ii, ji = wi, ae = {
|
|
1214
1216
|
isNothing: Ai,
|
|
1215
1217
|
isObject: xi,
|
|
1216
1218
|
toArray: _i,
|
|
1217
1219
|
repeat: Ti,
|
|
1218
|
-
isNegativeZero:
|
|
1219
|
-
extend:
|
|
1220
|
+
isNegativeZero: $i,
|
|
1221
|
+
extend: ji
|
|
1220
1222
|
};
|
|
1221
1223
|
function un(e, n) {
|
|
1222
1224
|
var t = "", a = e.reason || "(unknown reason)";
|
|
@@ -1224,15 +1226,15 @@ function un(e, n) {
|
|
|
1224
1226
|
|
|
1225
1227
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1226
1228
|
}
|
|
1227
|
-
function
|
|
1229
|
+
function Fe(e, n) {
|
|
1228
1230
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = un(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1229
1231
|
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1232
|
+
Fe.prototype = Object.create(Error.prototype);
|
|
1233
|
+
Fe.prototype.constructor = Fe;
|
|
1234
|
+
Fe.prototype.toString = function(e) {
|
|
1233
1235
|
return this.name + ": " + un(this, e);
|
|
1234
1236
|
};
|
|
1235
|
-
var ce =
|
|
1237
|
+
var ce = Fe;
|
|
1236
1238
|
function Xe(e, n, t, a, i) {
|
|
1237
1239
|
var r = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1238
1240
|
return a - n > l && (r = " ... ", n = a - l + r.length), t - a > l && (o = " ...", t = a + l - o.length), {
|
|
@@ -1244,7 +1246,7 @@ function Xe(e, n, t, a, i) {
|
|
|
1244
1246
|
function et(e, n) {
|
|
1245
1247
|
return ae.repeat(" ", n - e.length) + e;
|
|
1246
1248
|
}
|
|
1247
|
-
function
|
|
1249
|
+
function Oi(e, n) {
|
|
1248
1250
|
if (n = Object.create(n || null), !e.buffer)
|
|
1249
1251
|
return null;
|
|
1250
1252
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1274,7 +1276,7 @@ function $i(e, n) {
|
|
|
1274
1276
|
`;
|
|
1275
1277
|
return l.replace(/\n$/, "");
|
|
1276
1278
|
}
|
|
1277
|
-
var Mi =
|
|
1279
|
+
var Mi = Oi, Ei = [
|
|
1278
1280
|
"kind",
|
|
1279
1281
|
"multi",
|
|
1280
1282
|
"resolve",
|
|
@@ -1285,12 +1287,12 @@ var Mi = $i, Ei = [
|
|
|
1285
1287
|
"representName",
|
|
1286
1288
|
"defaultStyle",
|
|
1287
1289
|
"styleAliases"
|
|
1288
|
-
],
|
|
1290
|
+
], Ni = [
|
|
1289
1291
|
"scalar",
|
|
1290
1292
|
"sequence",
|
|
1291
1293
|
"mapping"
|
|
1292
1294
|
];
|
|
1293
|
-
function
|
|
1295
|
+
function Ki(e) {
|
|
1294
1296
|
var n = {};
|
|
1295
1297
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1296
1298
|
e[t].forEach(function(a) {
|
|
@@ -1298,7 +1300,7 @@ function Ni(e) {
|
|
|
1298
1300
|
});
|
|
1299
1301
|
}), n;
|
|
1300
1302
|
}
|
|
1301
|
-
function
|
|
1303
|
+
function Fi(e, n) {
|
|
1302
1304
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1303
1305
|
if (Ei.indexOf(t) === -1)
|
|
1304
1306
|
throw new ce('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
@@ -1306,10 +1308,10 @@ function Ki(e, n) {
|
|
|
1306
1308
|
return !0;
|
|
1307
1309
|
}, this.construct = n.construct || function(t) {
|
|
1308
1310
|
return t;
|
|
1309
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1311
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Ki(n.styleAliases || null), Ni.indexOf(this.kind) === -1)
|
|
1310
1312
|
throw new ce('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1311
1313
|
}
|
|
1312
|
-
var oe =
|
|
1314
|
+
var oe = Fi;
|
|
1313
1315
|
function Et(e, n) {
|
|
1314
1316
|
var t = [];
|
|
1315
1317
|
return e[n].forEach(function(a) {
|
|
@@ -1757,7 +1759,7 @@ function vr(e) {
|
|
|
1757
1759
|
function br(e) {
|
|
1758
1760
|
return e !== null ? e : {};
|
|
1759
1761
|
}
|
|
1760
|
-
var
|
|
1762
|
+
var $n = new oe("tag:yaml.org,2002:set", {
|
|
1761
1763
|
kind: "mapping",
|
|
1762
1764
|
resolve: vr,
|
|
1763
1765
|
construct: br
|
|
@@ -1770,10 +1772,10 @@ var jn = new oe("tag:yaml.org,2002:set", {
|
|
|
1770
1772
|
xn,
|
|
1771
1773
|
_n,
|
|
1772
1774
|
Tn,
|
|
1773
|
-
|
|
1775
|
+
$n
|
|
1774
1776
|
]
|
|
1775
|
-
}), Ce = Object.prototype.hasOwnProperty, Ve = 1,
|
|
1776
|
-
function
|
|
1777
|
+
}), Ce = Object.prototype.hasOwnProperty, Ve = 1, jn = 2, On = 3, ze = 4, tt = 1, kr = 2, Nt = 3, Cr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, wr = /[\x85\u2028\u2029]/, Sr = /[,\[\]\{\}]/, Mn = /^(?:!|!!|![a-z\-]+!)$/i, En = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1778
|
+
function Kt(e) {
|
|
1777
1779
|
return Object.prototype.toString.call(e);
|
|
1778
1780
|
}
|
|
1779
1781
|
function me(e) {
|
|
@@ -1798,7 +1800,7 @@ function Ar(e) {
|
|
|
1798
1800
|
function xr(e) {
|
|
1799
1801
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1800
1802
|
}
|
|
1801
|
-
function
|
|
1803
|
+
function Ft(e) {
|
|
1802
1804
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1803
1805
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1804
1806
|
}
|
|
@@ -1808,13 +1810,13 @@ function _r(e) {
|
|
|
1808
1810
|
(e - 65536 & 1023) + 56320
|
|
1809
1811
|
);
|
|
1810
1812
|
}
|
|
1811
|
-
var
|
|
1813
|
+
var Nn = new Array(256), Kn = new Array(256);
|
|
1812
1814
|
for (var xe = 0; xe < 256; xe++)
|
|
1813
|
-
|
|
1815
|
+
Nn[xe] = Ft(xe) ? 1 : 0, Kn[xe] = Ft(xe);
|
|
1814
1816
|
function Tr(e, n) {
|
|
1815
1817
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || ht, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1816
1818
|
}
|
|
1817
|
-
function
|
|
1819
|
+
function Fn(e, n) {
|
|
1818
1820
|
var t = {
|
|
1819
1821
|
name: e.filename,
|
|
1820
1822
|
buffer: e.input.slice(0, -1),
|
|
@@ -1826,10 +1828,10 @@ function Kn(e, n) {
|
|
|
1826
1828
|
return t.snippet = Mi(t), new ce(n, t);
|
|
1827
1829
|
}
|
|
1828
1830
|
function A(e, n) {
|
|
1829
|
-
throw
|
|
1831
|
+
throw Fn(e, n);
|
|
1830
1832
|
}
|
|
1831
1833
|
function He(e, n) {
|
|
1832
|
-
e.onWarning && e.onWarning.call(null,
|
|
1834
|
+
e.onWarning && e.onWarning.call(null, Fn(e, n));
|
|
1833
1835
|
}
|
|
1834
1836
|
var qt = {
|
|
1835
1837
|
YAML: function(e, n, t) {
|
|
@@ -1863,12 +1865,12 @@ function Bt(e, n, t, a) {
|
|
|
1863
1865
|
for (ae.isObject(t) || A(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), o = 0, l = i.length; o < l; o += 1)
|
|
1864
1866
|
r = i[o], Ce.call(n, r) || (n[r] = t[r], a[r] = !0);
|
|
1865
1867
|
}
|
|
1866
|
-
function
|
|
1868
|
+
function $e(e, n, t, a, i, r, o, l, s) {
|
|
1867
1869
|
var c, d;
|
|
1868
1870
|
if (Array.isArray(i))
|
|
1869
1871
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1870
|
-
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" &&
|
|
1871
|
-
if (typeof i == "object" &&
|
|
1872
|
+
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && Kt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1873
|
+
if (typeof i == "object" && Kt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
|
|
1872
1874
|
if (Array.isArray(r))
|
|
1873
1875
|
for (c = 0, d = r.length; c < d; c += 1)
|
|
1874
1876
|
Bt(e, n, r[c], t);
|
|
@@ -1911,7 +1913,7 @@ function bt(e, n) {
|
|
|
1911
1913
|
n === 1 ? e.result += " " : n > 1 && (e.result += ae.repeat(`
|
|
1912
1914
|
`, n - 1));
|
|
1913
1915
|
}
|
|
1914
|
-
function
|
|
1916
|
+
function $r(e, n, t) {
|
|
1915
1917
|
var a, i, r, o, l, s, c, d, u = e.kind, y = e.result, p;
|
|
1916
1918
|
if (p = e.input.charCodeAt(e.position), ue(p) || Te(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ue(i) || t && Te(i)))
|
|
1917
1919
|
return !1;
|
|
@@ -1938,7 +1940,7 @@ function jr(e, n, t) {
|
|
|
1938
1940
|
}
|
|
1939
1941
|
return be(e, r, o, !1), e.result ? !0 : (e.kind = u, e.result = y, !1);
|
|
1940
1942
|
}
|
|
1941
|
-
function
|
|
1943
|
+
function jr(e, n) {
|
|
1942
1944
|
var t, a, i;
|
|
1943
1945
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1944
1946
|
return !1;
|
|
@@ -1952,7 +1954,7 @@ function Or(e, n) {
|
|
|
1952
1954
|
me(t) ? (be(e, a, i, !0), bt(e, te(e, !1, n)), a = i = e.position) : e.position === e.lineStart && Ze(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1953
1955
|
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
1954
1956
|
}
|
|
1955
|
-
function
|
|
1957
|
+
function Or(e, n) {
|
|
1956
1958
|
var t, a, i, r, o, l;
|
|
1957
1959
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1958
1960
|
return !1;
|
|
@@ -1962,8 +1964,8 @@ function $r(e, n) {
|
|
|
1962
1964
|
if (l === 92) {
|
|
1963
1965
|
if (be(e, t, e.position, !0), l = e.input.charCodeAt(++e.position), me(l))
|
|
1964
1966
|
te(e, !1, n);
|
|
1965
|
-
else if (l < 256 &&
|
|
1966
|
-
e.result +=
|
|
1967
|
+
else if (l < 256 && Nn[l])
|
|
1968
|
+
e.result += Kn[l], e.position++;
|
|
1967
1969
|
else if ((o = Ar(l)) > 0) {
|
|
1968
1970
|
for (i = o, r = 0; i > 0; i--)
|
|
1969
1971
|
l = e.input.charCodeAt(++e.position), (o = Ir(l)) >= 0 ? r = (r << 4) + o : A(e, "expected hexadecimal character");
|
|
@@ -1987,7 +1989,7 @@ function Mr(e, n) {
|
|
|
1987
1989
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), f = e.input.charCodeAt(++e.position); f !== 0; ) {
|
|
1988
1990
|
if (te(e, !0, n), f = e.input.charCodeAt(e.position), f === d)
|
|
1989
1991
|
return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1990
|
-
t ? f === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), I = h = m = null, u = y = !1, f === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = y = !0, e.position++, te(e, !0, n))), a = e.line, i = e.lineStart, r = e.position,
|
|
1992
|
+
t ? f === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), I = h = m = null, u = y = !1, f === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = y = !0, e.position++, te(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, Oe(e, n, Ve, !1, !0), I = e.tag, h = e.result, te(e, !0, n), f = e.input.charCodeAt(e.position), (y || e.line === a) && f === 58 && (u = !0, f = e.input.charCodeAt(++e.position), te(e, !0, n), Oe(e, n, Ve, !1, !0), m = e.result), p ? $e(e, l, C, I, h, m, a, i, r) : u ? l.push($e(e, null, C, I, h, m, a, i, r)) : l.push(h), te(e, !0, n), f = e.input.charCodeAt(e.position), f === 44 ? (t = !0, f = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1991
1993
|
}
|
|
1992
1994
|
A(e, "unexpected end of the stream within a flow collection");
|
|
1993
1995
|
}
|
|
@@ -2001,7 +2003,7 @@ function Er(e, n) {
|
|
|
2001
2003
|
return !1;
|
|
2002
2004
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
2003
2005
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
2004
|
-
tt === i ? i = u === 43 ?
|
|
2006
|
+
tt === i ? i = u === 43 ? Nt : kr : A(e, "repeat of a chomping mode identifier");
|
|
2005
2007
|
else if ((d = xr(u)) >= 0)
|
|
2006
2008
|
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (l = n + d - 1, o = !0);
|
|
2007
2009
|
else
|
|
@@ -2023,7 +2025,7 @@ function Er(e, n) {
|
|
|
2023
2025
|
continue;
|
|
2024
2026
|
}
|
|
2025
2027
|
if (e.lineIndent < l) {
|
|
2026
|
-
i ===
|
|
2028
|
+
i === Nt ? e.result += ae.repeat(`
|
|
2027
2029
|
`, r ? 1 + s : s) : i === tt && r && (e.result += `
|
|
2028
2030
|
`);
|
|
2029
2031
|
break;
|
|
@@ -2047,28 +2049,28 @@ function Lt(e, n) {
|
|
|
2047
2049
|
r.push(null), s = e.input.charCodeAt(e.position);
|
|
2048
2050
|
continue;
|
|
2049
2051
|
}
|
|
2050
|
-
if (t = e.line,
|
|
2052
|
+
if (t = e.line, Oe(e, n, On, !1, !0), r.push(e.result), te(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && s !== 0)
|
|
2051
2053
|
A(e, "bad indentation of a sequence entry");
|
|
2052
2054
|
else if (e.lineIndent < n)
|
|
2053
2055
|
break;
|
|
2054
2056
|
}
|
|
2055
2057
|
return l ? (e.tag = a, e.anchor = i, e.kind = "sequence", e.result = r, !0) : !1;
|
|
2056
2058
|
}
|
|
2057
|
-
function
|
|
2059
|
+
function Nr(e, n, t) {
|
|
2058
2060
|
var a, i, r, o, l, s, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), p = null, C = null, h = null, I = !1, m = !1, f;
|
|
2059
2061
|
if (e.firstTabInLine !== -1)
|
|
2060
2062
|
return !1;
|
|
2061
2063
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), f = e.input.charCodeAt(e.position); f !== 0; ) {
|
|
2062
2064
|
if (!I && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (f === 63 || f === 58) && ue(a))
|
|
2063
|
-
f === 63 ? (I && (
|
|
2065
|
+
f === 63 ? (I && ($e(e, u, y, p, C, null, o, l, s), p = C = h = null), m = !0, I = !0, i = !0) : I ? (I = !1, i = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, f = a;
|
|
2064
2066
|
else {
|
|
2065
|
-
if (o = e.line, l = e.lineStart, s = e.position,
|
|
2067
|
+
if (o = e.line, l = e.lineStart, s = e.position, !Oe(e, t, jn, !1, !0))
|
|
2066
2068
|
break;
|
|
2067
2069
|
if (e.line === r) {
|
|
2068
2070
|
for (f = e.input.charCodeAt(e.position); Ae(f); )
|
|
2069
2071
|
f = e.input.charCodeAt(++e.position);
|
|
2070
2072
|
if (f === 58)
|
|
2071
|
-
f = e.input.charCodeAt(++e.position), ue(f) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (
|
|
2073
|
+
f = e.input.charCodeAt(++e.position), ue(f) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && ($e(e, u, y, p, C, null, o, l, s), p = C = h = null), m = !0, I = !1, i = !1, p = e.tag, C = e.result;
|
|
2072
2074
|
else if (m)
|
|
2073
2075
|
A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2074
2076
|
else
|
|
@@ -2078,14 +2080,14 @@ function Fr(e, n, t) {
|
|
|
2078
2080
|
else
|
|
2079
2081
|
return e.tag = c, e.anchor = d, !0;
|
|
2080
2082
|
}
|
|
2081
|
-
if ((e.line === r || e.lineIndent > n) && (I && (o = e.line, l = e.lineStart, s = e.position),
|
|
2083
|
+
if ((e.line === r || e.lineIndent > n) && (I && (o = e.line, l = e.lineStart, s = e.position), Oe(e, n, ze, !0, i) && (I ? C = e.result : h = e.result), I || ($e(e, u, y, p, C, h, o, l, s), p = C = h = null), te(e, !0, -1), f = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > n) && f !== 0)
|
|
2082
2084
|
A(e, "bad indentation of a mapping entry");
|
|
2083
2085
|
else if (e.lineIndent < n)
|
|
2084
2086
|
break;
|
|
2085
2087
|
}
|
|
2086
|
-
return I &&
|
|
2088
|
+
return I && $e(e, u, y, p, C, null, o, l, s), m && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), m;
|
|
2087
2089
|
}
|
|
2088
|
-
function
|
|
2090
|
+
function Kr(e) {
|
|
2089
2091
|
var n, t = !1, a = !1, i, r, o;
|
|
2090
2092
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2091
2093
|
return !1;
|
|
@@ -2107,7 +2109,7 @@ function Nr(e) {
|
|
|
2107
2109
|
}
|
|
2108
2110
|
return t ? e.tag = r : Ce.call(e.tagMap, i) ? e.tag = e.tagMap[i] + r : i === "!" ? e.tag = "!" + r : i === "!!" ? e.tag = "tag:yaml.org,2002:" + r : A(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
2109
2111
|
}
|
|
2110
|
-
function
|
|
2112
|
+
function Fr(e) {
|
|
2111
2113
|
var n, t;
|
|
2112
2114
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2113
2115
|
return !1;
|
|
@@ -2123,12 +2125,12 @@ function qr(e) {
|
|
|
2123
2125
|
a = e.input.charCodeAt(++e.position);
|
|
2124
2126
|
return e.position === n && A(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ce.call(e.anchorMap, t) || A(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], te(e, !0, -1), !0;
|
|
2125
2127
|
}
|
|
2126
|
-
function
|
|
2128
|
+
function Oe(e, n, t, a, i) {
|
|
2127
2129
|
var r, o, l, s = 1, c = !1, d = !1, u, y, p, C, h, I;
|
|
2128
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = ze === t ||
|
|
2129
|
-
for (;
|
|
2130
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = ze === t || On === t, a && te(e, !0, -1) && (c = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
|
|
2131
|
+
for (; Kr(e) || Fr(e); )
|
|
2130
2132
|
te(e, !0, -1) ? (c = !0, l = r, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
|
|
2131
|
-
if (l && (l = c || i), (s === 1 || ze === t) && (Ve === t ||
|
|
2133
|
+
if (l && (l = c || i), (s === 1 || ze === t) && (Ve === t || jn === t ? h = n : h = n + 1, I = e.position - e.lineStart, s === 1 ? l && (Lt(e, I) || Nr(e, I, h)) || Mr(e, h) ? d = !0 : (o && Er(e, h) || jr(e, h) || Or(e, h) ? d = !0 : qr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : $r(e, h, Ve === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Lt(e, I))), e.tag === null)
|
|
2132
2134
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2133
2135
|
else if (e.tag === "?") {
|
|
2134
2136
|
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
|
|
@@ -2171,7 +2173,7 @@ function Br(e) {
|
|
|
2171
2173
|
}
|
|
2172
2174
|
o !== 0 && vt(e), Ce.call(qt, a) ? qt[a](e, a, i) : He(e, 'unknown document directive "' + a + '"');
|
|
2173
2175
|
}
|
|
2174
|
-
if (te(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, te(e, !0, -1)) : r && A(e, "directives end mark is expected"),
|
|
2176
|
+
if (te(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, te(e, !0, -1)) : r && A(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && wr.test(e.input.slice(n, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ze(e)) {
|
|
2175
2177
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
|
|
2176
2178
|
return;
|
|
2177
2179
|
}
|
|
@@ -2521,13 +2523,13 @@ function Ct(e, n) {
|
|
|
2521
2523
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2522
2524
|
};
|
|
2523
2525
|
}
|
|
2524
|
-
var xo = oe, _o = dn, To = gn,
|
|
2526
|
+
var xo = oe, _o = dn, To = gn, $o = kn, jo = Cn, Oo = ht, Mo = Bn.load, Eo = Bn.loadAll, No = Ao.dump, Ko = ce, Fo = {
|
|
2525
2527
|
binary: xn,
|
|
2526
2528
|
float: bn,
|
|
2527
2529
|
map: yn,
|
|
2528
2530
|
null: mn,
|
|
2529
2531
|
pairs: Tn,
|
|
2530
|
-
set:
|
|
2532
|
+
set: $n,
|
|
2531
2533
|
timestamp: In,
|
|
2532
2534
|
bool: hn,
|
|
2533
2535
|
int: vn,
|
|
@@ -2539,14 +2541,14 @@ var xo = oe, _o = dn, To = gn, jo = kn, Oo = Cn, $o = ht, Mo = Bn.load, Eo = Bn.
|
|
|
2539
2541
|
Type: xo,
|
|
2540
2542
|
Schema: _o,
|
|
2541
2543
|
FAILSAFE_SCHEMA: To,
|
|
2542
|
-
JSON_SCHEMA:
|
|
2543
|
-
CORE_SCHEMA:
|
|
2544
|
-
DEFAULT_SCHEMA:
|
|
2544
|
+
JSON_SCHEMA: $o,
|
|
2545
|
+
CORE_SCHEMA: jo,
|
|
2546
|
+
DEFAULT_SCHEMA: Oo,
|
|
2545
2547
|
load: Mo,
|
|
2546
2548
|
loadAll: Eo,
|
|
2547
|
-
dump:
|
|
2548
|
-
YAMLException:
|
|
2549
|
-
types:
|
|
2549
|
+
dump: No,
|
|
2550
|
+
YAMLException: Ko,
|
|
2551
|
+
types: Fo,
|
|
2550
2552
|
safeLoad: qo,
|
|
2551
2553
|
safeLoadAll: Bo,
|
|
2552
2554
|
safeDump: Lo
|
|
@@ -2612,7 +2614,7 @@ const Do = {
|
|
|
2612
2614
|
delete c.created_at, delete c.updated_at, s === "json" ? r.value = JSON.stringify(c, null, 2) : s === "yaml" && (o.value = Uo.dump(c));
|
|
2613
2615
|
}
|
|
2614
2616
|
}, { immediate: !0 }), (s, c) => {
|
|
2615
|
-
const d =
|
|
2617
|
+
const d = K("KBadge"), u = K("KCodeBlock");
|
|
2616
2618
|
return g(), _(fe, null, [
|
|
2617
2619
|
e.format === "structured" ? (g(), _("div", Do, [
|
|
2618
2620
|
(g(!0), _(fe, null, de(e.propListTypes, (y) => (g(), _("div", {
|
|
@@ -2620,7 +2622,7 @@ const Do = {
|
|
|
2620
2622
|
class: ke(`config-card-details-${y}-props`),
|
|
2621
2623
|
"data-testid": `config-card-details-${y}-props`
|
|
2622
2624
|
}, [
|
|
2623
|
-
y !== "basic" ? (g(), _("div", Po,
|
|
2625
|
+
y !== "basic" ? (g(), _("div", Po, N(y === "advanced" ? k(a)("baseConfigCard.sections.advanced") : k(a)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
2624
2626
|
(g(!0), _(fe, null, de(e.propertyCollections[y], (p) => (g(), q(gt, {
|
|
2625
2627
|
key: p.key,
|
|
2626
2628
|
item: p
|
|
@@ -2648,13 +2650,13 @@ const Do = {
|
|
|
2648
2650
|
])) : V("", !0),
|
|
2649
2651
|
e.format === "json" ? (g(), _("div", Vo, [
|
|
2650
2652
|
n.fetcherUrl ? (g(), _("div", zo, [
|
|
2651
|
-
|
|
2653
|
+
j(d, { appearance: "get" }, {
|
|
2652
2654
|
default: v(() => [
|
|
2653
|
-
H(
|
|
2655
|
+
H(N(k(a)("baseConfigCard.endpoints.get")), 1)
|
|
2654
2656
|
]),
|
|
2655
2657
|
_: 1
|
|
2656
2658
|
}),
|
|
2657
|
-
|
|
2659
|
+
j(u, {
|
|
2658
2660
|
id: "config-card-endpoint-codeblock",
|
|
2659
2661
|
code: n.fetcherUrl,
|
|
2660
2662
|
"is-single-line": "",
|
|
@@ -2662,7 +2664,7 @@ const Do = {
|
|
|
2662
2664
|
theme: "dark"
|
|
2663
2665
|
}, null, 8, ["code"])
|
|
2664
2666
|
])) : V("", !0),
|
|
2665
|
-
|
|
2667
|
+
j(u, {
|
|
2666
2668
|
id: "config-card-codeblock",
|
|
2667
2669
|
class: ke({ "config-card-display-json-content": n.fetcherUrl }),
|
|
2668
2670
|
code: r.value,
|
|
@@ -2671,7 +2673,7 @@ const Do = {
|
|
|
2671
2673
|
}, null, 8, ["class", "code"])
|
|
2672
2674
|
])) : V("", !0),
|
|
2673
2675
|
e.format === "yaml" ? (g(), _("div", Ho, [
|
|
2674
|
-
|
|
2676
|
+
j(u, {
|
|
2675
2677
|
id: "config-card-codeblock",
|
|
2676
2678
|
code: o.value,
|
|
2677
2679
|
language: "yaml",
|
|
@@ -2761,7 +2763,7 @@ const Do = {
|
|
|
2761
2763
|
lineHeight: "0",
|
|
2762
2764
|
width: t.value
|
|
2763
2765
|
}));
|
|
2764
|
-
return (i, r) => (g(), q(
|
|
2766
|
+
return (i, r) => (g(), q(je(e.as), {
|
|
2765
2767
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2766
2768
|
class: "kui-icon book-icon",
|
|
2767
2769
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2778,7 +2780,7 @@ const Do = {
|
|
|
2778
2780
|
width: "100%",
|
|
2779
2781
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2780
2782
|
}, [
|
|
2781
|
-
e.title ? (g(), _("title", Qo,
|
|
2783
|
+
e.title ? (g(), _("title", Qo, N(e.title), 1)) : V("", !0),
|
|
2782
2784
|
Xo
|
|
2783
2785
|
], 8, Go))
|
|
2784
2786
|
]),
|
|
@@ -2922,18 +2924,18 @@ const Do = {
|
|
|
2922
2924
|
section: pe.Basic
|
|
2923
2925
|
}
|
|
2924
2926
|
}, C = E(!1), h = E(!1), I = E(""), m = E(), f = T(() => {
|
|
2925
|
-
var b, U,
|
|
2927
|
+
var b, U, $;
|
|
2926
2928
|
if (!m.value)
|
|
2927
2929
|
return [];
|
|
2928
|
-
const
|
|
2930
|
+
const F = [], D = Object.keys(m.value).length;
|
|
2929
2931
|
for (const R in m.value) {
|
|
2930
|
-
const Y = (U = (b = i.configSchema) == null ? void 0 : b[R]) == null ? void 0 : U.order, Z = (
|
|
2932
|
+
const Y = (U = (b = i.configSchema) == null ? void 0 : b[R]) == null ? void 0 : U.order, Z = ($ = p[R]) == null ? void 0 : $.order;
|
|
2931
2933
|
let ie = D;
|
|
2932
|
-
(Z || Z === 0) && (ie = Z === -1 ? D + 1 : Z), Y && (ie = Y === -1 ? D + 1 : Y),
|
|
2934
|
+
(Z || Z === 0) && (ie = Z === -1 ? D + 1 : Z), Y && (ie = Y === -1 ? D + 1 : Y), F.push([R, ie]);
|
|
2933
2935
|
}
|
|
2934
|
-
return
|
|
2936
|
+
return F.sort(function(R, Y) {
|
|
2935
2937
|
return R[1] - Y[1];
|
|
2936
|
-
}),
|
|
2938
|
+
}), F.map((R) => {
|
|
2937
2939
|
var Y, Z;
|
|
2938
2940
|
const ie = R[0], X = (Y = m.value) == null ? void 0 : Y[ie], G = ((Z = i.configSchema) == null ? void 0 : Z[ie]) || {}, le = p[ie];
|
|
2939
2941
|
return {
|
|
@@ -2950,17 +2952,17 @@ const Do = {
|
|
|
2950
2952
|
var b, U;
|
|
2951
2953
|
if (!m.value || !i.pluginConfigKey)
|
|
2952
2954
|
return [];
|
|
2953
|
-
const
|
|
2954
|
-
for (const R in
|
|
2955
|
-
const Y = (U = (b = i.pluginConfigSchema) == null ? void 0 : b[R]) == null ? void 0 : U.order, Z =
|
|
2956
|
-
let ie = Z != null && Z !== "" ?
|
|
2957
|
-
Y && (ie = Y === -1 ?
|
|
2955
|
+
const $ = m.value[i.pluginConfigKey] || {}, F = Object.keys($).length, D = [];
|
|
2956
|
+
for (const R in $) {
|
|
2957
|
+
const Y = (U = (b = i.pluginConfigSchema) == null ? void 0 : b[R]) == null ? void 0 : U.order, Z = $[R];
|
|
2958
|
+
let ie = Z != null && Z !== "" ? F - 1 : F;
|
|
2959
|
+
Y && (ie = Y === -1 ? F + 1 : Y), D.push([R, ie]);
|
|
2958
2960
|
}
|
|
2959
2961
|
return D.sort(function(R, Y) {
|
|
2960
2962
|
return R[1] - Y[1];
|
|
2961
2963
|
}), D.map((R) => {
|
|
2962
2964
|
var Y;
|
|
2963
|
-
const Z = R[0], ie =
|
|
2965
|
+
const Z = R[0], ie = $[Z], X = ((Y = i.pluginConfigSchema) == null ? void 0 : Y[Z]) || {};
|
|
2964
2966
|
return {
|
|
2965
2967
|
key: Z,
|
|
2966
2968
|
value: ie,
|
|
@@ -2972,19 +2974,19 @@ const Do = {
|
|
|
2972
2974
|
};
|
|
2973
2975
|
}).filter((R) => !R.hidden);
|
|
2974
2976
|
}), w = T(() => {
|
|
2975
|
-
var b, U,
|
|
2977
|
+
var b, U, $, F;
|
|
2976
2978
|
return {
|
|
2977
2979
|
basic: (b = f.value) == null ? void 0 : b.filter((D) => D.section === pe.Basic),
|
|
2978
2980
|
advanced: (U = f.value) == null ? void 0 : U.filter((D) => D.section === pe.Advanced),
|
|
2979
|
-
plugin: (
|
|
2981
|
+
plugin: (F = S.value) == null ? void 0 : F.concat(($ = f.value) == null ? void 0 : $.filter((D) => D.section === pe.Plugin))
|
|
2980
2982
|
};
|
|
2981
2983
|
}), x = T(() => {
|
|
2982
2984
|
const b = [];
|
|
2983
2985
|
return w.value.basic.length && b.push("basic"), w.value.advanced.length && b.push("advanced"), w.value.plugin.length && b.push("plugin"), b;
|
|
2984
2986
|
}), L = (b) => !!(b.tooltip || r[`${b.key}-label-tooltip`]), J = T(() => {
|
|
2985
2987
|
var b, U;
|
|
2986
|
-
let
|
|
2987
|
-
return i.config.app === "konnect" ?
|
|
2988
|
+
let $ = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
2989
|
+
return i.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((b = i.config) == null ? void 0 : b.controlPlaneId) || "") : i.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (U = i.config) != null && U.workspace ? `/${i.config.workspace}` : "")), $ = $.replace(/{id}/gi, i.config.entityId), $;
|
|
2988
2990
|
}), M = (b) => {
|
|
2989
2991
|
m.value && b(JSON.stringify(m.value)) ? a("copy:success", m.value) : a("copy:error");
|
|
2990
2992
|
};
|
|
@@ -3011,22 +3013,22 @@ const Do = {
|
|
|
3011
3013
|
C.value = !1;
|
|
3012
3014
|
}
|
|
3013
3015
|
}), (b, U) => {
|
|
3014
|
-
const
|
|
3016
|
+
const $ = K("KLabel"), F = K("KSelect"), D = K("KButton"), R = K("KClipboardProvider"), Y = K("KSkeleton"), Z = K("KEmptyState"), ie = K("KCard");
|
|
3015
3017
|
return g(), q(ie, { class: "kong-ui-entity-base-config-card" }, Ie({
|
|
3016
3018
|
actions: v(() => [
|
|
3017
3019
|
B("div", al, [
|
|
3018
3020
|
z(b.$slots, "actions", {}, void 0, !0),
|
|
3019
|
-
e.config.jsonYamlEnabled ? (g(), q(
|
|
3021
|
+
e.config.jsonYamlEnabled ? (g(), q($, {
|
|
3020
3022
|
key: 0,
|
|
3021
3023
|
class: "config-format-select-label",
|
|
3022
3024
|
"data-testid": "config-format-select-label"
|
|
3023
3025
|
}, {
|
|
3024
3026
|
default: v(() => [
|
|
3025
|
-
H(
|
|
3027
|
+
H(N(e.label), 1)
|
|
3026
3028
|
]),
|
|
3027
3029
|
_: 1
|
|
3028
3030
|
})) : V("", !0),
|
|
3029
|
-
e.config.jsonYamlEnabled ? (g(), q(
|
|
3031
|
+
e.config.jsonYamlEnabled ? (g(), q(F, {
|
|
3030
3032
|
key: 1,
|
|
3031
3033
|
appearance: "select",
|
|
3032
3034
|
"data-testid": "select-config-format",
|
|
@@ -3045,7 +3047,7 @@ const Do = {
|
|
|
3045
3047
|
rel: "noopener",
|
|
3046
3048
|
target: "_blank"
|
|
3047
3049
|
}, [
|
|
3048
|
-
|
|
3050
|
+
j(k(tl), { size: k(li) }, null, 8, ["size"])
|
|
3049
3051
|
], 8, il)
|
|
3050
3052
|
]),
|
|
3051
3053
|
_: 1
|
|
@@ -3059,7 +3061,7 @@ const Do = {
|
|
|
3059
3061
|
onClick: (G) => M(X)
|
|
3060
3062
|
}, {
|
|
3061
3063
|
default: v(() => [
|
|
3062
|
-
H(
|
|
3064
|
+
H(N(k(o)("baseConfigCard.actions.copy")), 1)
|
|
3063
3065
|
]),
|
|
3064
3066
|
_: 2
|
|
3065
3067
|
}, 1032, ["onClick"])) : V("", !0)
|
|
@@ -3080,12 +3082,12 @@ const Do = {
|
|
|
3080
3082
|
"is-error": ""
|
|
3081
3083
|
}, {
|
|
3082
3084
|
message: v(() => [
|
|
3083
|
-
B("h3", null,
|
|
3085
|
+
B("h3", null, N(I.value), 1)
|
|
3084
3086
|
]),
|
|
3085
3087
|
_: 1
|
|
3086
3088
|
})) : V("", !0),
|
|
3087
3089
|
e.config.jsonYamlEnabled ? (g(), _("div", rl, [
|
|
3088
|
-
|
|
3090
|
+
j(Yo, {
|
|
3089
3091
|
"fetcher-url": J.value,
|
|
3090
3092
|
format: u.value,
|
|
3091
3093
|
"prop-list-types": x.value,
|
|
@@ -3108,7 +3110,7 @@ const Do = {
|
|
|
3108
3110
|
class: ke(`config-card-details-${X}-props`),
|
|
3109
3111
|
"data-testid": `config-card-details-${X}-props`
|
|
3110
3112
|
}, [
|
|
3111
|
-
X !== "basic" ? (g(), _("div", sl,
|
|
3113
|
+
X !== "basic" ? (g(), _("div", sl, N(X === "advanced" ? k(o)("baseConfigCard.sections.advanced") : k(o)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
3112
3114
|
(g(!0), _(fe, null, de(w.value[X], (G) => (g(), q(gt, {
|
|
3113
3115
|
key: G.key,
|
|
3114
3116
|
item: G
|
|
@@ -3142,7 +3144,7 @@ const Do = {
|
|
|
3142
3144
|
fn: v(() => [
|
|
3143
3145
|
B("div", nl, [
|
|
3144
3146
|
z(b.$slots, "title", {}, () => [
|
|
3145
|
-
H(
|
|
3147
|
+
H(N(k(o)("baseConfigCard.title")), 1)
|
|
3146
3148
|
], !0)
|
|
3147
3149
|
])
|
|
3148
3150
|
]),
|
|
@@ -3234,7 +3236,7 @@ const Do = {
|
|
|
3234
3236
|
c.value = !1;
|
|
3235
3237
|
}
|
|
3236
3238
|
}), (m, f) => {
|
|
3237
|
-
const S =
|
|
3239
|
+
const S = K("KSkeleton"), w = K("KEmptyState"), x = K("KAlert"), L = K("KButton"), J = K("KCard");
|
|
3238
3240
|
return g(), q(J, { class: "kong-ui-entity-base-form" }, {
|
|
3239
3241
|
default: v(() => [
|
|
3240
3242
|
c.value ? (g(), q(S, {
|
|
@@ -3248,7 +3250,7 @@ const Do = {
|
|
|
3248
3250
|
"is-error": !0
|
|
3249
3251
|
}, {
|
|
3250
3252
|
message: v(() => [
|
|
3251
|
-
B("h3", null,
|
|
3253
|
+
B("h3", null, N(u.value), 1)
|
|
3252
3254
|
]),
|
|
3253
3255
|
_: 1
|
|
3254
3256
|
}, 8, ["cta-text"])) : (g(), _("form", {
|
|
@@ -3266,25 +3268,25 @@ const Do = {
|
|
|
3266
3268
|
}, null, 8, ["alert-message"])) : V("", !0),
|
|
3267
3269
|
B("div", dl, [
|
|
3268
3270
|
z(m.$slots, "form-actions", {}, () => [
|
|
3269
|
-
|
|
3271
|
+
j(L, {
|
|
3270
3272
|
appearance: "secondary",
|
|
3271
3273
|
"data-testid": "form-cancel",
|
|
3272
3274
|
disabled: e.isReadonly,
|
|
3273
3275
|
type: "reset"
|
|
3274
3276
|
}, {
|
|
3275
3277
|
default: v(() => [
|
|
3276
|
-
H(
|
|
3278
|
+
H(N(k(o)("baseForm.actions.cancel")), 1)
|
|
3277
3279
|
]),
|
|
3278
3280
|
_: 1
|
|
3279
3281
|
}, 8, ["disabled"]),
|
|
3280
|
-
|
|
3282
|
+
j(L, {
|
|
3281
3283
|
appearance: "primary",
|
|
3282
3284
|
"data-testid": "form-submit",
|
|
3283
3285
|
disabled: y.value,
|
|
3284
3286
|
type: "submit"
|
|
3285
3287
|
}, {
|
|
3286
3288
|
default: v(() => [
|
|
3287
|
-
H(
|
|
3289
|
+
H(N(k(o)("baseForm.actions.save")), 1)
|
|
3288
3290
|
]),
|
|
3289
3291
|
_: 1
|
|
3290
3292
|
}, 8, ["disabled"])
|
|
@@ -3349,14 +3351,14 @@ const Do = {
|
|
|
3349
3351
|
}), na(() => {
|
|
3350
3352
|
p();
|
|
3351
3353
|
}), (h, I) => {
|
|
3352
|
-
const m =
|
|
3354
|
+
const m = K("KTooltip");
|
|
3353
3355
|
return g(), _("span", {
|
|
3354
3356
|
ref_key: "contentRef",
|
|
3355
3357
|
ref: s,
|
|
3356
3358
|
class: "content-wrapper"
|
|
3357
3359
|
}, [
|
|
3358
3360
|
i.value ? (g(), _("span", yl, [
|
|
3359
|
-
|
|
3361
|
+
j(m, {
|
|
3360
3362
|
label: C.value ? u.value : "",
|
|
3361
3363
|
"max-width": "300",
|
|
3362
3364
|
placement: "bottomStart"
|
|
@@ -3542,13 +3544,13 @@ const Do = {
|
|
|
3542
3544
|
t.preferencesStorageKey && m(t.preferencesStorageKey, x);
|
|
3543
3545
|
};
|
|
3544
3546
|
return (x, L) => {
|
|
3545
|
-
const J =
|
|
3546
|
-
return g(), q(
|
|
3547
|
+
const J = K("KIcon"), M = K("KButton"), b = K("KDropdown"), U = K("KTable"), $ = K("KCard");
|
|
3548
|
+
return g(), q($, {
|
|
3547
3549
|
class: "kong-ui-entity-base-table",
|
|
3548
3550
|
title: e.title
|
|
3549
3551
|
}, {
|
|
3550
3552
|
default: v(() => [
|
|
3551
|
-
|
|
3553
|
+
j(U, {
|
|
3552
3554
|
ref_key: "tableRefs",
|
|
3553
3555
|
ref: d,
|
|
3554
3556
|
"cache-identifier": o.value,
|
|
@@ -3577,43 +3579,43 @@ const Do = {
|
|
|
3577
3579
|
"search-input": e.query,
|
|
3578
3580
|
onKtableEmptyStateCtaClicked: p,
|
|
3579
3581
|
"onRow:click": h.value,
|
|
3580
|
-
onSort: L[0] || (L[0] = (
|
|
3582
|
+
onSort: L[0] || (L[0] = (F) => I(F)),
|
|
3581
3583
|
"onUpdate:tablePreferences": w
|
|
3582
3584
|
}, Ie({
|
|
3583
|
-
toolbar: v(({ state:
|
|
3584
|
-
|
|
3585
|
+
toolbar: v(({ state: F }) => [
|
|
3586
|
+
Ne(B("div", hl, [
|
|
3585
3587
|
z(x.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3586
3588
|
x.$slots["toolbar-button"] ? (g(), _("div", vl, [
|
|
3587
3589
|
z(x.$slots, "toolbar-button", {}, void 0, !0)
|
|
3588
3590
|
])) : V("", !0)
|
|
3589
3591
|
], 512), [
|
|
3590
|
-
[
|
|
3592
|
+
[Ke, l(F)]
|
|
3591
3593
|
])
|
|
3592
3594
|
]),
|
|
3593
|
-
actions: v(({ row:
|
|
3595
|
+
actions: v(({ row: F, rowKey: D, rowValue: R }) => [
|
|
3594
3596
|
B("div", {
|
|
3595
3597
|
class: "actions-container",
|
|
3596
|
-
"data-testid":
|
|
3598
|
+
"data-testid": F.name
|
|
3597
3599
|
}, [
|
|
3598
|
-
|
|
3600
|
+
j(b, {
|
|
3599
3601
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3600
3602
|
width: e.dropdownMenuWidth
|
|
3601
3603
|
}, {
|
|
3602
3604
|
items: v(() => [
|
|
3603
3605
|
z(x.$slots, "actions", {
|
|
3604
|
-
row:
|
|
3606
|
+
row: F,
|
|
3605
3607
|
rowKey: D,
|
|
3606
3608
|
rowValue: R
|
|
3607
3609
|
}, void 0, !0)
|
|
3608
3610
|
]),
|
|
3609
3611
|
default: v(() => [
|
|
3610
|
-
|
|
3612
|
+
j(M, {
|
|
3611
3613
|
class: "actions-trigger",
|
|
3612
3614
|
"data-testid": "overflow-actions-button",
|
|
3613
3615
|
size: "small"
|
|
3614
3616
|
}, {
|
|
3615
3617
|
icon: v(() => [
|
|
3616
|
-
|
|
3618
|
+
j(J, {
|
|
3617
3619
|
color: k(ri),
|
|
3618
3620
|
icon: "more",
|
|
3619
3621
|
size: "16"
|
|
@@ -3628,10 +3630,10 @@ const Do = {
|
|
|
3628
3630
|
]),
|
|
3629
3631
|
_: 2
|
|
3630
3632
|
}, [
|
|
3631
|
-
de(e.tableHeaders, (
|
|
3633
|
+
de(e.tableHeaders, (F, D) => ({
|
|
3632
3634
|
name: D,
|
|
3633
3635
|
fn: v(({ row: R, rowKey: Y, rowValue: Z }) => [
|
|
3634
|
-
|
|
3636
|
+
j(ml, {
|
|
3635
3637
|
"key-name": String(D),
|
|
3636
3638
|
"row-el": u(R)
|
|
3637
3639
|
}, {
|
|
@@ -3641,7 +3643,7 @@ const Do = {
|
|
|
3641
3643
|
rowKey: Y,
|
|
3642
3644
|
rowValue: Z
|
|
3643
3645
|
}, () => [
|
|
3644
|
-
H(
|
|
3646
|
+
H(N(Z), 1)
|
|
3645
3647
|
], !0)
|
|
3646
3648
|
]),
|
|
3647
3649
|
_: 2
|
|
@@ -3705,7 +3707,7 @@ const Do = {
|
|
|
3705
3707
|
i("proceed");
|
|
3706
3708
|
};
|
|
3707
3709
|
return (s, c) => {
|
|
3708
|
-
const d =
|
|
3710
|
+
const d = K("KAlert"), u = K("KPrompt");
|
|
3709
3711
|
return g(), q(u, {
|
|
3710
3712
|
"action-button-text": "Yes, delete",
|
|
3711
3713
|
"action-pending": e.actionPending,
|
|
@@ -3719,34 +3721,34 @@ const Do = {
|
|
|
3719
3721
|
}, {
|
|
3720
3722
|
"body-content": v(() => [
|
|
3721
3723
|
e.error ? (g(), _("div", wl, [
|
|
3722
|
-
|
|
3724
|
+
j(d, { appearance: "danger" }, {
|
|
3723
3725
|
alertMessage: v(() => [
|
|
3724
|
-
H(
|
|
3726
|
+
H(N(e.error), 1)
|
|
3725
3727
|
]),
|
|
3726
3728
|
_: 1
|
|
3727
3729
|
})
|
|
3728
3730
|
])) : V("", !0),
|
|
3729
|
-
|
|
3731
|
+
j(k(t), {
|
|
3730
3732
|
class: "message",
|
|
3731
3733
|
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3732
3734
|
tag: "p"
|
|
3733
3735
|
}, Ie({
|
|
3734
3736
|
entityType: v(() => [
|
|
3735
|
-
H(
|
|
3737
|
+
H(N(a.entityType), 1)
|
|
3736
3738
|
]),
|
|
3737
3739
|
_: 2
|
|
3738
3740
|
}, [
|
|
3739
3741
|
a.entityName ? {
|
|
3740
3742
|
name: "entityName",
|
|
3741
3743
|
fn: v(() => [
|
|
3742
|
-
B("strong", null,
|
|
3744
|
+
B("strong", null, N(a.entityName), 1)
|
|
3743
3745
|
]),
|
|
3744
3746
|
key: "0"
|
|
3745
3747
|
} : void 0
|
|
3746
3748
|
]), 1032, ["keypath"]),
|
|
3747
3749
|
a.description || s.$slots.description ? (g(), _("div", Sl, [
|
|
3748
3750
|
z(s.$slots, "description", {}, () => [
|
|
3749
|
-
B("p", null,
|
|
3751
|
+
B("p", null, N(a.description), 1)
|
|
3750
3752
|
], !0)
|
|
3751
3753
|
])) : V("", !0)
|
|
3752
3754
|
]),
|
|
@@ -3768,7 +3770,7 @@ const Do = {
|
|
|
3768
3770
|
width: "20",
|
|
3769
3771
|
x: "0",
|
|
3770
3772
|
y: "0"
|
|
3771
|
-
}, Tl = ["fill"],
|
|
3773
|
+
}, Tl = ["fill"], $l = { mask: "url(#mask0_180_20349)" }, jl = ["fill"], Wt = /* @__PURE__ */ ne({
|
|
3772
3774
|
__name: "IconFilter",
|
|
3773
3775
|
props: {
|
|
3774
3776
|
color: {
|
|
@@ -3785,18 +3787,18 @@ const Do = {
|
|
|
3785
3787
|
width: "20"
|
|
3786
3788
|
}, null, 8, Tl)
|
|
3787
3789
|
]),
|
|
3788
|
-
B("g",
|
|
3790
|
+
B("g", $l, [
|
|
3789
3791
|
B("path", {
|
|
3790
3792
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3791
3793
|
fill: e.color
|
|
3792
|
-
}, null, 8,
|
|
3794
|
+
}, null, 8, jl)
|
|
3793
3795
|
])
|
|
3794
3796
|
]));
|
|
3795
3797
|
}
|
|
3796
|
-
}),
|
|
3798
|
+
}), Ol = {
|
|
3797
3799
|
key: 1,
|
|
3798
3800
|
class: "kong-ui-entity-filter"
|
|
3799
|
-
}, Ml = { class: "menu-item-title" }, El = { class: "menu-item-indicator" },
|
|
3801
|
+
}, Ml = { class: "menu-item-title" }, El = { class: "menu-item-indicator" }, Nl = { class: "menu-item-body" }, Kl = ["for"], Fl = { class: "menu-item-buttons" }, ql = { class: "filter-clear-button-container" }, Bl = /* @__PURE__ */ ne({
|
|
3800
3802
|
__name: "EntityFilter",
|
|
3801
3803
|
props: {
|
|
3802
3804
|
// filter config, either exact match or fuzzy match
|
|
@@ -3858,7 +3860,7 @@ const Do = {
|
|
|
3858
3860
|
m && (r.value = !1), i("update:modelValue", new URLSearchParams(f).toString());
|
|
3859
3861
|
};
|
|
3860
3862
|
return (m, f) => {
|
|
3861
|
-
const S =
|
|
3863
|
+
const S = K("KInput"), w = K("KButton"), x = K("KSelect"), L = K("KMenuItem"), J = K("KMenu");
|
|
3862
3864
|
return e.config.isExactMatch ? (g(), q(S, {
|
|
3863
3865
|
key: 0,
|
|
3864
3866
|
autocomplete: "off",
|
|
@@ -3869,28 +3871,28 @@ const Do = {
|
|
|
3869
3871
|
"onUpdate:modelValue": d
|
|
3870
3872
|
}, {
|
|
3871
3873
|
before: v(() => [
|
|
3872
|
-
|
|
3874
|
+
j(Wt)
|
|
3873
3875
|
]),
|
|
3874
3876
|
_: 1
|
|
3875
|
-
}, 8, ["model-value", "placeholder"])) : (g(), _("div",
|
|
3876
|
-
|
|
3877
|
+
}, 8, ["model-value", "placeholder"])) : (g(), _("div", Ol, [
|
|
3878
|
+
j(w, {
|
|
3877
3879
|
appearance: "tertiary",
|
|
3878
3880
|
"data-testid": "filter-button",
|
|
3879
3881
|
onClick: c
|
|
3880
3882
|
}, {
|
|
3881
3883
|
default: v(() => [
|
|
3882
|
-
|
|
3883
|
-
H(" " +
|
|
3884
|
+
j(Wt),
|
|
3885
|
+
H(" " + N(k(t)("filter.filterButtonText")) + " " + N(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
3884
3886
|
]),
|
|
3885
3887
|
_: 1
|
|
3886
3888
|
}),
|
|
3887
|
-
|
|
3889
|
+
Ne(B("div", {
|
|
3888
3890
|
class: "kong-ui-entity-filter-backdrop",
|
|
3889
3891
|
onClick: c
|
|
3890
3892
|
}, null, 512), [
|
|
3891
|
-
[
|
|
3893
|
+
[Ke, r.value]
|
|
3892
3894
|
]),
|
|
3893
|
-
|
|
3895
|
+
Ne(j(J, { class: "kong-ui-entity-filter-menu" }, {
|
|
3894
3896
|
body: v(() => [
|
|
3895
3897
|
(g(!0), _(fe, null, de(s.value, (M, b) => (g(), q(L, {
|
|
3896
3898
|
key: M.value,
|
|
@@ -3900,25 +3902,25 @@ const Do = {
|
|
|
3900
3902
|
}, {
|
|
3901
3903
|
itemTitle: v(() => [
|
|
3902
3904
|
B("span", Ml, [
|
|
3903
|
-
H(
|
|
3904
|
-
|
|
3905
|
-
[
|
|
3905
|
+
H(N(M.label) + " ", 1),
|
|
3906
|
+
Ne(B("span", El, null, 512), [
|
|
3907
|
+
[Ke, l.value.includes(M.value)]
|
|
3906
3908
|
])
|
|
3907
3909
|
])
|
|
3908
3910
|
]),
|
|
3909
3911
|
itemBody: v(() => {
|
|
3910
|
-
var U,
|
|
3912
|
+
var U, $;
|
|
3911
3913
|
return [
|
|
3912
|
-
B("div",
|
|
3914
|
+
B("div", Nl, [
|
|
3913
3915
|
B("label", {
|
|
3914
3916
|
class: "menu-item-label",
|
|
3915
3917
|
for: u(M.value)
|
|
3916
|
-
},
|
|
3917
|
-
((
|
|
3918
|
+
}, N(k(t)("filter.fieldLabel")), 9, Kl),
|
|
3919
|
+
(($ = (U = e.config.schema) == null ? void 0 : U[M.value]) == null ? void 0 : $.type) === "select" ? (g(), q(x, {
|
|
3918
3920
|
key: 0,
|
|
3919
3921
|
id: u(M.value),
|
|
3920
3922
|
modelValue: o.value[M.value],
|
|
3921
|
-
"onUpdate:modelValue": (
|
|
3923
|
+
"onUpdate:modelValue": (F) => o.value[M.value] = F,
|
|
3922
3924
|
appearance: "select",
|
|
3923
3925
|
items: y(M.value),
|
|
3924
3926
|
placeholder: k(t)("filter.selectPlaceholder")
|
|
@@ -3926,32 +3928,32 @@ const Do = {
|
|
|
3926
3928
|
key: 1,
|
|
3927
3929
|
id: u(M.value),
|
|
3928
3930
|
modelValue: o.value[M.value],
|
|
3929
|
-
"onUpdate:modelValue": (
|
|
3931
|
+
"onUpdate:modelValue": (F) => o.value[M.value] = F,
|
|
3930
3932
|
autocomplete: "off",
|
|
3931
3933
|
placeholder: k(t)("filter.inputPlaceholder"),
|
|
3932
3934
|
type: p(M.value)
|
|
3933
3935
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3934
3936
|
]),
|
|
3935
|
-
B("div",
|
|
3936
|
-
|
|
3937
|
+
B("div", Fl, [
|
|
3938
|
+
j(w, {
|
|
3937
3939
|
appearance: "tertiary",
|
|
3938
3940
|
"data-testid": "apply-filter",
|
|
3939
3941
|
size: "small",
|
|
3940
|
-
onClick: f[0] || (f[0] = (
|
|
3942
|
+
onClick: f[0] || (f[0] = (F) => I(!0))
|
|
3941
3943
|
}, {
|
|
3942
3944
|
default: v(() => [
|
|
3943
|
-
H(
|
|
3945
|
+
H(N(k(t)("filter.applyButtonText")), 1)
|
|
3944
3946
|
]),
|
|
3945
3947
|
_: 1
|
|
3946
3948
|
}),
|
|
3947
|
-
|
|
3949
|
+
j(w, {
|
|
3948
3950
|
appearance: "tertiary",
|
|
3949
3951
|
"data-testid": "clear-filter",
|
|
3950
3952
|
size: "small",
|
|
3951
|
-
onClick: (
|
|
3953
|
+
onClick: (F) => C(M.value)
|
|
3952
3954
|
}, {
|
|
3953
3955
|
default: v(() => [
|
|
3954
|
-
H(
|
|
3956
|
+
H(N(k(t)("filter.clearButtonText")), 1)
|
|
3955
3957
|
]),
|
|
3956
3958
|
_: 2
|
|
3957
3959
|
}, 1032, ["onClick"])
|
|
@@ -3963,13 +3965,13 @@ const Do = {
|
|
|
3963
3965
|
]),
|
|
3964
3966
|
actionButton: v(() => [
|
|
3965
3967
|
B("div", ql, [
|
|
3966
|
-
|
|
3968
|
+
j(w, {
|
|
3967
3969
|
appearance: "tertiary",
|
|
3968
3970
|
size: "small",
|
|
3969
3971
|
onClick: h
|
|
3970
3972
|
}, {
|
|
3971
3973
|
default: v(() => [
|
|
3972
|
-
H(
|
|
3974
|
+
H(N(k(t)("filter.clearAllButtonText")), 1)
|
|
3973
3975
|
]),
|
|
3974
3976
|
_: 1
|
|
3975
3977
|
})
|
|
@@ -3977,7 +3979,7 @@ const Do = {
|
|
|
3977
3979
|
]),
|
|
3978
3980
|
_: 1
|
|
3979
3981
|
}, 512), [
|
|
3980
|
-
[
|
|
3982
|
+
[Ke, r.value]
|
|
3981
3983
|
])
|
|
3982
3984
|
]));
|
|
3983
3985
|
};
|
|
@@ -4055,10 +4057,10 @@ const Do = {
|
|
|
4055
4057
|
key: 0,
|
|
4056
4058
|
class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4057
4059
|
}, [
|
|
4058
|
-
e.title ? (g(), _("h4", Dl,
|
|
4060
|
+
e.title ? (g(), _("h4", Dl, N(e.title), 1)) : V("", !0),
|
|
4059
4061
|
e.description || k(n).description ? (g(), _("div", Rl, [
|
|
4060
4062
|
z(t.$slots, "description", {}, () => [
|
|
4061
|
-
B("p", null,
|
|
4063
|
+
B("p", null, N(e.description), 1)
|
|
4062
4064
|
], !0)
|
|
4063
4065
|
])) : V("", !0),
|
|
4064
4066
|
k(n).footer ? (g(), _("div", Pl, [
|
|
@@ -4126,18 +4128,18 @@ const Do = {
|
|
|
4126
4128
|
id: { label: i("keySets.list.table_headers.id"), sortable: !0 }
|
|
4127
4129
|
}, d = c, u = T(() => {
|
|
4128
4130
|
var P, ee;
|
|
4129
|
-
let
|
|
4130
|
-
return a.config.app === "konnect" ?
|
|
4131
|
+
let O = `${a.config.apiBaseUrl}${Pe.list[a.config.app]}`;
|
|
4132
|
+
return a.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((P = a.config) == null ? void 0 : P.controlPlaneId) || "") : a.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ee = a.config) != null && ee.workspace ? `/${a.config.workspace}` : "")), O;
|
|
4131
4133
|
}), y = E(""), p = T(() => {
|
|
4132
|
-
const
|
|
4133
|
-
if (
|
|
4134
|
+
const O = a.config.app === "konnect" || a.config.isExactMatch;
|
|
4135
|
+
if (O)
|
|
4134
4136
|
return {
|
|
4135
|
-
isExactMatch:
|
|
4137
|
+
isExactMatch: O,
|
|
4136
4138
|
placeholder: i("keySets.search.placeholder")
|
|
4137
4139
|
};
|
|
4138
4140
|
const P = { name: c.name };
|
|
4139
4141
|
return {
|
|
4140
|
-
isExactMatch:
|
|
4142
|
+
isExactMatch: O,
|
|
4141
4143
|
fields: P,
|
|
4142
4144
|
schema: a.config.filterSchema
|
|
4143
4145
|
};
|
|
@@ -4145,60 +4147,60 @@ const Do = {
|
|
|
4145
4147
|
y.value = "";
|
|
4146
4148
|
}, m = () => {
|
|
4147
4149
|
l.value++;
|
|
4148
|
-
}, f = E(null), S = (
|
|
4149
|
-
const ee =
|
|
4150
|
+
}, f = E(null), S = (O, P) => {
|
|
4151
|
+
const ee = O.id;
|
|
4150
4152
|
if (!P(ee)) {
|
|
4151
|
-
J(
|
|
4153
|
+
J(O, "id");
|
|
4152
4154
|
return;
|
|
4153
4155
|
}
|
|
4154
|
-
L(
|
|
4155
|
-
}, w = (
|
|
4156
|
-
const ee = JSON.stringify(
|
|
4156
|
+
L(O, "id");
|
|
4157
|
+
}, w = (O, P) => {
|
|
4158
|
+
const ee = JSON.stringify(O);
|
|
4157
4159
|
if (!P(ee)) {
|
|
4158
4160
|
t("copy:error", {
|
|
4159
|
-
entity:
|
|
4161
|
+
entity: O,
|
|
4160
4162
|
message: i("keySets.errors.copy")
|
|
4161
4163
|
});
|
|
4162
4164
|
return;
|
|
4163
4165
|
}
|
|
4164
4166
|
t("copy:success", {
|
|
4165
|
-
entity:
|
|
4167
|
+
entity: O,
|
|
4166
4168
|
message: i("keySets.copy.success_brief")
|
|
4167
4169
|
});
|
|
4168
|
-
}, x = (
|
|
4169
|
-
const { type: ge } =
|
|
4170
|
+
}, x = (O, P, ee) => {
|
|
4171
|
+
const { type: ge } = O;
|
|
4170
4172
|
ge === "success" ? L(P, ee) : J(P, ee);
|
|
4171
|
-
}, L = (
|
|
4173
|
+
}, L = (O, P) => {
|
|
4172
4174
|
t("copy:success", {
|
|
4173
|
-
entity:
|
|
4175
|
+
entity: O,
|
|
4174
4176
|
field: P,
|
|
4175
|
-
message: i("keySets.copy.success", { val:
|
|
4177
|
+
message: i("keySets.copy.success", { val: O[P] })
|
|
4176
4178
|
});
|
|
4177
|
-
}, J = (
|
|
4179
|
+
}, J = (O, P) => {
|
|
4178
4180
|
t("copy:error", {
|
|
4179
|
-
entity:
|
|
4181
|
+
entity: O,
|
|
4180
4182
|
field: P,
|
|
4181
4183
|
message: i("keySets.errors.copy")
|
|
4182
4184
|
});
|
|
4183
|
-
}, M = async (
|
|
4185
|
+
}, M = async (O) => {
|
|
4184
4186
|
var ee;
|
|
4185
|
-
await ((ee = a.canRetrieve) == null ? void 0 : ee.call(a,
|
|
4186
|
-
}, b = (
|
|
4187
|
+
await ((ee = a.canRetrieve) == null ? void 0 : ee.call(a, O)) && r.push(a.config.getViewRoute(O.id));
|
|
4188
|
+
}, b = (O) => ({
|
|
4187
4189
|
label: i("keySets.actions.view"),
|
|
4188
|
-
to: a.config.getViewRoute(
|
|
4189
|
-
}), U = (
|
|
4190
|
+
to: a.config.getViewRoute(O)
|
|
4191
|
+
}), U = (O) => ({
|
|
4190
4192
|
label: i("keySets.actions.edit"),
|
|
4191
|
-
to: a.config.getEditRoute(
|
|
4192
|
-
}),
|
|
4193
|
-
|
|
4193
|
+
to: a.config.getEditRoute(O)
|
|
4194
|
+
}), $ = E(void 0), F = E(!1), D = E(!1), R = E(""), Y = Jl(a.config, u.value), Z = (O) => {
|
|
4195
|
+
$.value = O, F.value = !0;
|
|
4194
4196
|
}, ie = () => {
|
|
4195
|
-
|
|
4197
|
+
F.value = !1;
|
|
4196
4198
|
}, X = async () => {
|
|
4197
|
-
var
|
|
4198
|
-
if ((
|
|
4199
|
+
var O, P, ee;
|
|
4200
|
+
if ((O = $.value) != null && O.id) {
|
|
4199
4201
|
D.value = !0;
|
|
4200
4202
|
try {
|
|
4201
|
-
await o.delete(Y(
|
|
4203
|
+
await o.delete(Y($.value.id)), D.value = !1, F.value = !1, l.value++, t("delete:success", $.value);
|
|
4202
4204
|
} catch (ge) {
|
|
4203
4205
|
R.value = ((ee = (P = ge.response) == null ? void 0 : P.data) == null ? void 0 : ee.message) || ge.message || i("keySets.errors.delete"), t("error", ge);
|
|
4204
4206
|
} finally {
|
|
@@ -4206,12 +4208,12 @@ const Do = {
|
|
|
4206
4208
|
}
|
|
4207
4209
|
}
|
|
4208
4210
|
}, G = E(!0);
|
|
4209
|
-
we(h, (
|
|
4211
|
+
we(h, (O) => {
|
|
4210
4212
|
var P, ee, ge, Ue;
|
|
4211
|
-
if (Array.isArray((P =
|
|
4213
|
+
if (Array.isArray((P = O == null ? void 0 : O.response) == null ? void 0 : P.data) && (G.value = O.response.data.length > 0), O.status === Se.Error) {
|
|
4212
4214
|
f.value = {
|
|
4213
4215
|
title: i("keySets.errors.general")
|
|
4214
|
-
}, (Ue = (ge = (ee =
|
|
4216
|
+
}, (Ue = (ge = (ee = O.error) == null ? void 0 : ee.response) == null ? void 0 : ge.data) != null && Ue.message && (f.value.message = O.error.response.data.message), t("error", O.error);
|
|
4215
4217
|
return;
|
|
4216
4218
|
}
|
|
4217
4219
|
f.value = null;
|
|
@@ -4224,10 +4226,10 @@ const Do = {
|
|
|
4224
4226
|
});
|
|
4225
4227
|
return ct(async () => {
|
|
4226
4228
|
await a.canCreate() && (le.value.title = i("keySets.list.empty_state.title"), le.value.ctaText = i("keySets.actions.create"));
|
|
4227
|
-
}), (
|
|
4228
|
-
const ee =
|
|
4229
|
+
}), (O, P) => {
|
|
4230
|
+
const ee = K("KButton"), ge = K("KBadge"), Ue = K("KTruncate"), Qn = K("CopyUuid"), Me = K("KDropdownItem"), St = K("KClipboardProvider");
|
|
4229
4231
|
return g(), _("div", Zl, [
|
|
4230
|
-
|
|
4232
|
+
j(k(Cl), {
|
|
4231
4233
|
"cache-identifier": e.cacheIdentifier,
|
|
4232
4234
|
"disable-pagination-page-jump": "",
|
|
4233
4235
|
"disable-sorting": s.value,
|
|
@@ -4246,7 +4248,7 @@ const Do = {
|
|
|
4246
4248
|
onSort: m
|
|
4247
4249
|
}, {
|
|
4248
4250
|
"toolbar-filter": v(() => [
|
|
4249
|
-
|
|
4251
|
+
j(k(Ll), {
|
|
4250
4252
|
modelValue: y.value,
|
|
4251
4253
|
"onUpdate:modelValue": P[0] || (P[0] = (Q) => y.value = Q),
|
|
4252
4254
|
config: p.value
|
|
@@ -4257,22 +4259,22 @@ const Do = {
|
|
|
4257
4259
|
disabled: !e.useActionOutside,
|
|
4258
4260
|
to: "#kong-ui-app-page-header-action-button"
|
|
4259
4261
|
}, [
|
|
4260
|
-
|
|
4262
|
+
j(k(De), {
|
|
4261
4263
|
"auth-function": () => e.canCreate()
|
|
4262
4264
|
}, {
|
|
4263
4265
|
default: v(() => [
|
|
4264
|
-
|
|
4266
|
+
Ne(j(ee, {
|
|
4265
4267
|
appearance: "primary",
|
|
4266
4268
|
"data-testid": "toolbar-add-key-set",
|
|
4267
4269
|
icon: "plus",
|
|
4268
4270
|
to: e.config.createRoute
|
|
4269
4271
|
}, {
|
|
4270
4272
|
default: v(() => [
|
|
4271
|
-
H(
|
|
4273
|
+
H(N(k(i)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
4272
4274
|
]),
|
|
4273
4275
|
_: 1
|
|
4274
4276
|
}, 8, ["to"]), [
|
|
4275
|
-
[
|
|
4277
|
+
[Ke, G.value]
|
|
4276
4278
|
])
|
|
4277
4279
|
]),
|
|
4278
4280
|
_: 1
|
|
@@ -4280,7 +4282,7 @@ const Do = {
|
|
|
4280
4282
|
], 8, ["disabled"]))
|
|
4281
4283
|
]),
|
|
4282
4284
|
name: v(({ rowValue: Q }) => [
|
|
4283
|
-
B("b", null,
|
|
4285
|
+
B("b", null, N(Q ?? "-"), 1)
|
|
4284
4286
|
]),
|
|
4285
4287
|
tags: v(({ rowValue: Q }) => [
|
|
4286
4288
|
(Q == null ? void 0 : Q.length) > 0 ? (g(), q(Ue, { key: 0 }, {
|
|
@@ -4291,7 +4293,7 @@ const Do = {
|
|
|
4291
4293
|
}, ["stop"]))
|
|
4292
4294
|
}, {
|
|
4293
4295
|
default: v(() => [
|
|
4294
|
-
H(
|
|
4296
|
+
H(N(he), 1)
|
|
4295
4297
|
]),
|
|
4296
4298
|
_: 2
|
|
4297
4299
|
}, 1024))), 128))
|
|
@@ -4300,46 +4302,46 @@ const Do = {
|
|
|
4300
4302
|
}, 1024)) : (g(), _("span", Gl, "-"))
|
|
4301
4303
|
]),
|
|
4302
4304
|
id: v(({ row: Q, rowValue: he }) => [
|
|
4303
|
-
|
|
4305
|
+
j(Qn, {
|
|
4304
4306
|
notify: (Ge) => x(Ge, Q, "id"),
|
|
4305
4307
|
truncated: !1,
|
|
4306
4308
|
uuid: he
|
|
4307
4309
|
}, null, 8, ["notify", "uuid"])
|
|
4308
4310
|
]),
|
|
4309
4311
|
actions: v(({ row: Q }) => [
|
|
4310
|
-
|
|
4312
|
+
j(St, null, {
|
|
4311
4313
|
default: v(({ copyToClipboard: he }) => [
|
|
4312
|
-
|
|
4314
|
+
j(Me, {
|
|
4313
4315
|
"data-testid": "action-entity-copy-id",
|
|
4314
4316
|
onClick: (Ge) => S(Q, he)
|
|
4315
4317
|
}, {
|
|
4316
4318
|
default: v(() => [
|
|
4317
|
-
H(
|
|
4319
|
+
H(N(k(i)("keySets.actions.copy_id")), 1)
|
|
4318
4320
|
]),
|
|
4319
4321
|
_: 2
|
|
4320
4322
|
}, 1032, ["onClick"])
|
|
4321
4323
|
]),
|
|
4322
4324
|
_: 2
|
|
4323
4325
|
}, 1024),
|
|
4324
|
-
|
|
4326
|
+
j(St, null, {
|
|
4325
4327
|
default: v(({ copyToClipboard: he }) => [
|
|
4326
|
-
|
|
4328
|
+
j(Me, {
|
|
4327
4329
|
"data-testid": "action-entity-copy-json",
|
|
4328
4330
|
onClick: (Ge) => w(Q, he)
|
|
4329
4331
|
}, {
|
|
4330
4332
|
default: v(() => [
|
|
4331
|
-
H(
|
|
4333
|
+
H(N(k(i)("keySets.actions.copy_json")), 1)
|
|
4332
4334
|
]),
|
|
4333
4335
|
_: 2
|
|
4334
4336
|
}, 1032, ["onClick"])
|
|
4335
4337
|
]),
|
|
4336
4338
|
_: 2
|
|
4337
4339
|
}, 1024),
|
|
4338
|
-
|
|
4340
|
+
j(k(De), {
|
|
4339
4341
|
"auth-function": () => e.canRetrieve(Q)
|
|
4340
4342
|
}, {
|
|
4341
4343
|
default: v(() => [
|
|
4342
|
-
|
|
4344
|
+
j(Me, {
|
|
4343
4345
|
"data-testid": "action-entity-view",
|
|
4344
4346
|
"has-divider": "",
|
|
4345
4347
|
item: b(Q.id)
|
|
@@ -4347,29 +4349,29 @@ const Do = {
|
|
|
4347
4349
|
]),
|
|
4348
4350
|
_: 2
|
|
4349
4351
|
}, 1032, ["auth-function"]),
|
|
4350
|
-
|
|
4352
|
+
j(k(De), {
|
|
4351
4353
|
"auth-function": () => e.canEdit(Q)
|
|
4352
4354
|
}, {
|
|
4353
4355
|
default: v(() => [
|
|
4354
|
-
|
|
4356
|
+
j(Me, {
|
|
4355
4357
|
"data-testid": "action-entity-edit",
|
|
4356
4358
|
item: U(Q.id)
|
|
4357
4359
|
}, null, 8, ["item"])
|
|
4358
4360
|
]),
|
|
4359
4361
|
_: 2
|
|
4360
4362
|
}, 1032, ["auth-function"]),
|
|
4361
|
-
|
|
4363
|
+
j(k(De), {
|
|
4362
4364
|
"auth-function": () => e.canDelete(Q)
|
|
4363
4365
|
}, {
|
|
4364
4366
|
default: v(() => [
|
|
4365
|
-
|
|
4367
|
+
j(Me, {
|
|
4366
4368
|
danger: "",
|
|
4367
4369
|
"data-testid": "action-entity-delete",
|
|
4368
4370
|
"has-divider": "",
|
|
4369
4371
|
onClick: (he) => Z(Q)
|
|
4370
4372
|
}, {
|
|
4371
4373
|
default: v(() => [
|
|
4372
|
-
H(
|
|
4374
|
+
H(N(k(i)("keySets.actions.delete")), 1)
|
|
4373
4375
|
]),
|
|
4374
4376
|
_: 2
|
|
4375
4377
|
}, 1032, ["onClick"])
|
|
@@ -4379,14 +4381,14 @@ const Do = {
|
|
|
4379
4381
|
]),
|
|
4380
4382
|
_: 1
|
|
4381
4383
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4382
|
-
|
|
4384
|
+
j(k(Al), {
|
|
4383
4385
|
"action-pending": D.value,
|
|
4384
4386
|
description: k(i)("keySets.delete.description"),
|
|
4385
|
-
"entity-name":
|
|
4387
|
+
"entity-name": $.value && ($.value.name || $.value.id),
|
|
4386
4388
|
"entity-type": k(tn).KeySet,
|
|
4387
4389
|
error: R.value,
|
|
4388
4390
|
title: k(i)("keySets.delete.title"),
|
|
4389
|
-
visible:
|
|
4391
|
+
visible: F.value,
|
|
4390
4392
|
onCancel: ie,
|
|
4391
4393
|
onProceed: X
|
|
4392
4394
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
@@ -4458,9 +4460,9 @@ const Do = {
|
|
|
4458
4460
|
}
|
|
4459
4461
|
};
|
|
4460
4462
|
return (f, S) => {
|
|
4461
|
-
const w =
|
|
4463
|
+
const w = K("KInput");
|
|
4462
4464
|
return g(), _("div", Xl, [
|
|
4463
|
-
|
|
4465
|
+
j(k(fl), {
|
|
4464
4466
|
"can-submit": y.value,
|
|
4465
4467
|
config: e.config,
|
|
4466
4468
|
"edit-id": e.keySetId,
|
|
@@ -4474,13 +4476,13 @@ const Do = {
|
|
|
4474
4476
|
onSubmit: I
|
|
4475
4477
|
}, {
|
|
4476
4478
|
default: v(() => [
|
|
4477
|
-
|
|
4479
|
+
j(k(Hl), {
|
|
4478
4480
|
description: k(r)("keySets.form.sections.general.description"),
|
|
4479
4481
|
"has-divider": "",
|
|
4480
4482
|
title: k(r)("keySets.form.sections.general.title")
|
|
4481
4483
|
}, {
|
|
4482
4484
|
default: v(() => [
|
|
4483
|
-
|
|
4485
|
+
j(w, {
|
|
4484
4486
|
modelValue: d.fields.name,
|
|
4485
4487
|
"onUpdate:modelValue": S[0] || (S[0] = (x) => d.fields.name = x),
|
|
4486
4488
|
modelModifiers: { trim: !0 },
|
|
@@ -4491,7 +4493,7 @@ const Do = {
|
|
|
4491
4493
|
readonly: d.isReadonly,
|
|
4492
4494
|
type: "text"
|
|
4493
4495
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4494
|
-
|
|
4496
|
+
j(w, {
|
|
4495
4497
|
modelValue: d.fields.tags,
|
|
4496
4498
|
"onUpdate:modelValue": S[1] || (S[1] = (x) => d.fields.tags = x),
|
|
4497
4499
|
modelModifiers: { trim: !0 },
|
|
@@ -4550,7 +4552,7 @@ const Do = {
|
|
|
4550
4552
|
}
|
|
4551
4553
|
});
|
|
4552
4554
|
return (r, o) => (g(), _("div", ts, [
|
|
4553
|
-
|
|
4555
|
+
j(k(ul), {
|
|
4554
4556
|
config: e.config,
|
|
4555
4557
|
"config-card-doc": e.configCardDoc,
|
|
4556
4558
|
"config-schema": i.value,
|