@kong-ui-public/entities-consumers 2.2.4 → 2.2.5-pr.985.f73a9541.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-consumers.es.js +423 -424
- package/dist/entities-consumers.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as ke, withCtx as y, createElementVNode as
|
|
1
|
+
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as ke, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as j, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as ka, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as gt } from "vue-router";
|
|
3
3
|
import { createI18n as yt, i18nTComponent as pn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Ca from "axios";
|
|
5
|
-
import {
|
|
5
|
+
import { BadgeMethodAppearances as wa } from "@kong/kongponents";
|
|
6
6
|
const Ia = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
@@ -199,10 +199,10 @@ const $a = {
|
|
|
199
199
|
copyToClipboard: "Copied successfully!",
|
|
200
200
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, ja = {
|
|
203
203
|
message: "Are you sure you want to delete this {entityType}?",
|
|
204
204
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
205
|
-
},
|
|
205
|
+
}, Ma = {
|
|
206
206
|
actions: {
|
|
207
207
|
save: "Save",
|
|
208
208
|
cancel: "Cancel",
|
|
@@ -252,7 +252,7 @@ const $a = {
|
|
|
252
252
|
entryTitle: "Entry {index}",
|
|
253
253
|
structuredFormat: "Structured"
|
|
254
254
|
}
|
|
255
|
-
},
|
|
255
|
+
}, Fa = {
|
|
256
256
|
filterButtonText: "Filter",
|
|
257
257
|
fieldLabel: "Filter by:",
|
|
258
258
|
inputPlaceholder: "Enter a value",
|
|
@@ -260,7 +260,7 @@ const $a = {
|
|
|
260
260
|
applyButtonText: "Apply",
|
|
261
261
|
clearButtonText: "Clear",
|
|
262
262
|
clearAllButtonText: "Clear all filters"
|
|
263
|
-
},
|
|
263
|
+
}, Ka = {
|
|
264
264
|
errors: {
|
|
265
265
|
fetch: "Could not fetch available items",
|
|
266
266
|
invalid: "Please select a valid value"
|
|
@@ -281,12 +281,12 @@ const $a = {
|
|
|
281
281
|
}
|
|
282
282
|
}, qa = {
|
|
283
283
|
global: $a,
|
|
284
|
-
deleteModal:
|
|
285
|
-
baseForm:
|
|
284
|
+
deleteModal: ja,
|
|
285
|
+
baseForm: Ma,
|
|
286
286
|
baseTable: Oa,
|
|
287
287
|
baseConfigCard: Ea,
|
|
288
|
-
filter:
|
|
289
|
-
debouncedFilter:
|
|
288
|
+
filter: Fa,
|
|
289
|
+
debouncedFilter: Ka,
|
|
290
290
|
errors: Na,
|
|
291
291
|
toggleModal: Ba
|
|
292
292
|
};
|
|
@@ -349,46 +349,46 @@ function La(e, n, t, a = {
|
|
|
349
349
|
t || (t = "100");
|
|
350
350
|
const { axiosInstance: r } = ht({
|
|
351
351
|
headers: e.requestHeaders
|
|
352
|
-
}), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (
|
|
353
|
-
await q(
|
|
352
|
+
}), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (_) => {
|
|
353
|
+
await q(_);
|
|
354
354
|
}, 200), l = O(!1), u = O(""), d = O(""), c = O([]), h = O([]), f = O(void 0), A = g(n);
|
|
355
355
|
let k = `${e.apiBaseUrl}${A}`;
|
|
356
356
|
e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
357
357
|
const { isValidUuid: p } = mn(), S = async () => {
|
|
358
358
|
try {
|
|
359
359
|
l.value = !0;
|
|
360
|
-
const { data:
|
|
361
|
-
|
|
360
|
+
const { data: _ } = await r.get(`${k}?size=${t}`);
|
|
361
|
+
_ != null && _.next || (f.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : [], c.value = h.value;
|
|
362
362
|
} catch {
|
|
363
363
|
c.value = [], u.value = o("debouncedFilter.errors.fetch");
|
|
364
364
|
} finally {
|
|
365
365
|
l.value = !1;
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, v = O(""), q = async (_) => {
|
|
368
368
|
var w, N, U;
|
|
369
|
-
if (
|
|
370
|
-
if (
|
|
369
|
+
if (v.value !== _)
|
|
370
|
+
if (v.value = _ || "", f.value === void 0)
|
|
371
371
|
try {
|
|
372
372
|
if (l.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
373
373
|
let b = k + "";
|
|
374
|
-
|
|
374
|
+
_ && (b += `/${_}`);
|
|
375
375
|
const { data: C } = await r.get(`${b}?size=${t}`);
|
|
376
376
|
a.fetchedItemsKey in C ? c.value = C[a.fetchedItemsKey] : C != null && C.id ? c.value = [C] : c.value = [];
|
|
377
|
-
} else if (
|
|
377
|
+
} else if (_) {
|
|
378
378
|
const b = [];
|
|
379
|
-
p(
|
|
380
|
-
const { data: B } = await r.get(`${k}/${
|
|
379
|
+
p(_) && a.searchKeys.includes("id") ? b.push((async () => {
|
|
380
|
+
const { data: B } = await r.get(`${k}/${_}`);
|
|
381
381
|
return [B[a.fetchedItemsKey] ?? B];
|
|
382
382
|
})()) : b.push(
|
|
383
383
|
...a.searchKeys.filter((B) => B !== "id").map(async (B) => {
|
|
384
|
-
const { data:
|
|
385
|
-
return
|
|
384
|
+
const { data: I } = await r.get(`${k}?${B}=${_}`);
|
|
385
|
+
return I[a.fetchedItemsKey];
|
|
386
386
|
})
|
|
387
387
|
);
|
|
388
388
|
const C = await Promise.all(b), V = /* @__PURE__ */ new Set();
|
|
389
389
|
c.value = [], (w = C == null ? void 0 : C.forEach) == null || w.call(C, (B) => {
|
|
390
|
-
var
|
|
391
|
-
(
|
|
390
|
+
var I;
|
|
391
|
+
(I = B == null ? void 0 : B.forEach) == null || I.call(B, (E) => {
|
|
392
392
|
V.has(E.id) || (V.add(E.id), c.value.push(E));
|
|
393
393
|
});
|
|
394
394
|
});
|
|
@@ -400,12 +400,12 @@ function La(e, n, t, a = {
|
|
|
400
400
|
l.value = !1;
|
|
401
401
|
}
|
|
402
402
|
else
|
|
403
|
-
l.value = !0, d.value = "",
|
|
403
|
+
l.value = !0, d.value = "", _ ? (c.value = (U = f.value) == null ? void 0 : U.filter((b) => {
|
|
404
404
|
var C;
|
|
405
405
|
let V = !1;
|
|
406
406
|
for (const B of a.searchKeys) {
|
|
407
|
-
const
|
|
408
|
-
|
|
407
|
+
const I = typeof b[B] == "string" ? (C = b[B]) == null ? void 0 : C.toLowerCase() : b[B];
|
|
408
|
+
I != null && I.includes(_.toLowerCase()) && (V = !0);
|
|
409
409
|
}
|
|
410
410
|
return V;
|
|
411
411
|
}), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : c.value = f.value, l.value = !1;
|
|
@@ -625,7 +625,7 @@ const re = {
|
|
|
625
625
|
}, ar = (e) => (cn("data-v-641e0aee"), e = e(), dn(), e), rr = ["aria-hidden"], or = {
|
|
626
626
|
key: 0,
|
|
627
627
|
"data-testid": "kui-icon-svg-title"
|
|
628
|
-
}, ir = /* @__PURE__ */ ar(() => /* @__PURE__ */
|
|
628
|
+
}, ir = /* @__PURE__ */ ar(() => /* @__PURE__ */ K("path", {
|
|
629
629
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
630
630
|
fill: "currentColor"
|
|
631
631
|
}, null, -1)), sr = /* @__PURE__ */ te({
|
|
@@ -714,7 +714,7 @@ const re = {
|
|
|
714
714
|
width: "100%",
|
|
715
715
|
xmlns: "http://www.w3.org/2000/svg"
|
|
716
716
|
}, [
|
|
717
|
-
e.title ? (m(), T("title", or,
|
|
717
|
+
e.title ? (m(), T("title", or, j(e.title), 1)) : G("", !0),
|
|
718
718
|
ir
|
|
719
719
|
], 8, rr))
|
|
720
720
|
]),
|
|
@@ -804,27 +804,27 @@ const re = {
|
|
|
804
804
|
return m(), T("div", cr, [
|
|
805
805
|
e.format !== "hidden" ? (m(), R(Ee(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
806
806
|
default: y(() => [
|
|
807
|
-
|
|
807
|
+
K("div", {
|
|
808
808
|
class: Ae([
|
|
809
809
|
"uuid-container",
|
|
810
810
|
e.truncated ? "truncated-uuid" : null,
|
|
811
811
|
e.useMono ? "mono" : null
|
|
812
812
|
])
|
|
813
|
-
},
|
|
813
|
+
}, j(u.value), 3)
|
|
814
814
|
]),
|
|
815
815
|
_: 1
|
|
816
816
|
}, 16)) : G("", !0),
|
|
817
817
|
(m(), R(Ee(e.tooltip ? "KTooltip" : "div"), st(l.value, { class: "uuid-icon-wrapper" }), {
|
|
818
818
|
default: y(() => [
|
|
819
|
-
|
|
819
|
+
F(A, null, {
|
|
820
820
|
default: y(({ copyToClipboard: k }) => [
|
|
821
|
-
|
|
821
|
+
K("span", {
|
|
822
822
|
"data-testid": "copy-to-clipboard",
|
|
823
823
|
role: "button",
|
|
824
824
|
tabindex: "0",
|
|
825
825
|
onClick: De((p) => c(k), ["stop"])
|
|
826
826
|
}, [
|
|
827
|
-
|
|
827
|
+
F(g(lr), {
|
|
828
828
|
class: "uuid-icon",
|
|
829
829
|
color: e.iconColor,
|
|
830
830
|
decorative: !!e.tooltip,
|
|
@@ -878,7 +878,7 @@ const re = {
|
|
|
878
878
|
}, {
|
|
879
879
|
default: y(() => [
|
|
880
880
|
e.isArrayItem ? (m(), T("legend", mr, [
|
|
881
|
-
|
|
881
|
+
K("b", null, j(s.value), 1)
|
|
882
882
|
])) : G("", !0),
|
|
883
883
|
(m(!0), T(fe, null, de(Object.keys(i.value), (d, c) => (m(), R(bt, {
|
|
884
884
|
key: `${r.value}-property-${c}`,
|
|
@@ -911,13 +911,13 @@ const re = {
|
|
|
911
911
|
return (t, a) => {
|
|
912
912
|
const r = P("KButton");
|
|
913
913
|
return m(), T("div", null, [
|
|
914
|
-
|
|
914
|
+
F(r, {
|
|
915
915
|
appearance: "tertiary",
|
|
916
916
|
class: "navigation-button",
|
|
917
917
|
onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
|
|
918
918
|
}, {
|
|
919
919
|
default: y(() => [
|
|
920
|
-
W(
|
|
920
|
+
W(j(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
|
|
921
921
|
]),
|
|
922
922
|
_: 1
|
|
923
923
|
})
|
|
@@ -940,17 +940,17 @@ const re = {
|
|
|
940
940
|
appearance: e.status ? "success" : "neutral"
|
|
941
941
|
}, {
|
|
942
942
|
default: y(() => [
|
|
943
|
-
W(
|
|
943
|
+
W(j(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
944
944
|
]),
|
|
945
945
|
_: 1
|
|
946
946
|
}, 8, ["appearance"]);
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
}), br = "#0044f4", kr = "#e0e4ea", Cr = "#3a3f51", wr = "1px", Ir = "20px", _r = { class: "config-card-details-row" }, Ar = ["data-testid"], Sr = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 },
|
|
949
|
+
}), br = "#0044f4", kr = "#e0e4ea", Cr = "#3a3f51", wr = "1px", Ir = "20px", _r = { class: "config-card-details-row" }, Ar = ["data-testid"], Sr = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 }, jr = ["data-testid"], Mr = ["data-testid"], Or = ["data-testid"], Er = ["data-testid"], Fr = {
|
|
950
950
|
name: "ConfigCardItem",
|
|
951
951
|
components: { CopyUuid: vn, JsonCardItem: bn, StatusBadge: vr, InternalLinkItem: hr }
|
|
952
|
-
},
|
|
953
|
-
...
|
|
952
|
+
}, Kr = /* @__PURE__ */ te({
|
|
953
|
+
...Fr,
|
|
954
954
|
props: {
|
|
955
955
|
item: {
|
|
956
956
|
type: Object,
|
|
@@ -971,10 +971,10 @@ const re = {
|
|
|
971
971
|
setup(e, { emit: n }) {
|
|
972
972
|
const t = e;
|
|
973
973
|
ma((f) => ({
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"
|
|
977
|
-
"
|
|
974
|
+
"0fea14db": u.value ? "none" : `solid ${g(wr)} ${g(kr)}`,
|
|
975
|
+
"1cf0460e": l.value && i.value ? "block" : "flex",
|
|
976
|
+
"328cca12": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
977
|
+
"328f0fed": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
978
978
|
}));
|
|
979
979
|
const a = We(), { i18n: { t: r, formatUnixTimeStamp: o } } = re.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || a["label-tooltip"])), l = $(() => t.item.type === X.Json || t.item.type === X.JsonArray), u = $(() => t.item.type === X.JsonArray), d = $(() => {
|
|
980
980
|
switch (t.item.type) {
|
|
@@ -1104,27 +1104,27 @@ const re = {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
}), c = O(), { isTruncated: h } = re.useTruncationDetector(c);
|
|
1106
1106
|
return (f, A) => {
|
|
1107
|
-
const k = P("KLabel"), p = P("KBadge"), S = P("
|
|
1107
|
+
const k = P("KLabel"), p = P("KBadge"), S = P("KTooltip");
|
|
1108
1108
|
return m(), T("div", _r, [
|
|
1109
|
-
|
|
1109
|
+
K("div", {
|
|
1110
1110
|
class: "config-card-details-label",
|
|
1111
1111
|
"data-testid": `${e.item.key}-label`
|
|
1112
1112
|
}, [
|
|
1113
1113
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
1114
|
-
|
|
1114
|
+
F(k, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
1115
1115
|
default: y(() => [
|
|
1116
|
-
W(
|
|
1116
|
+
W(j(e.item.label) + " ", 1)
|
|
1117
1117
|
]),
|
|
1118
1118
|
_: 2
|
|
1119
1119
|
}, [
|
|
1120
1120
|
s.value ? {
|
|
1121
1121
|
name: "tooltip",
|
|
1122
1122
|
fn: y(() => [
|
|
1123
|
-
|
|
1123
|
+
K("div", {
|
|
1124
1124
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1125
1125
|
}, [
|
|
1126
1126
|
Y(f.$slots, "label-tooltip", {}, () => [
|
|
1127
|
-
W(
|
|
1127
|
+
W(j(e.item.tooltip), 1)
|
|
1128
1128
|
], !0)
|
|
1129
1129
|
], 8, Sr)
|
|
1130
1130
|
]),
|
|
@@ -1133,7 +1133,7 @@ const re = {
|
|
|
1133
1133
|
]), 1024)
|
|
1134
1134
|
], !0)
|
|
1135
1135
|
], 8, Ar),
|
|
1136
|
-
|
|
1136
|
+
K("div", {
|
|
1137
1137
|
class: "config-card-details-value",
|
|
1138
1138
|
"data-testid": `${e.item.key}-property-value`
|
|
1139
1139
|
}, [
|
|
@@ -1147,67 +1147,66 @@ const re = {
|
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1149
1149
|
}, [
|
|
1150
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1151
|
-
key: `${e.item.key}-badge-tag-${
|
|
1150
|
+
(m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(p, {
|
|
1151
|
+
key: `${e.item.key}-badge-tag-${q}`,
|
|
1152
1152
|
class: "config-badge",
|
|
1153
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1154
|
-
|
|
1153
|
+
"data-testid": `${e.item.key}-badge-tag-${q}`,
|
|
1154
|
+
tooltip: v,
|
|
1155
|
+
"truncation-tooltip": ""
|
|
1155
1156
|
}, {
|
|
1156
1157
|
default: y(() => [
|
|
1157
|
-
W(
|
|
1158
|
+
W(j(v), 1)
|
|
1158
1159
|
]),
|
|
1159
1160
|
_: 2
|
|
1160
|
-
}, 1032, ["data-testid", "
|
|
1161
|
-
], 8,
|
|
1161
|
+
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1162
|
+
], 8, jr)) : G("", !0),
|
|
1162
1163
|
d.value.additionalComponent === "CopyUuid" ? (m(), T("div", {
|
|
1163
1164
|
key: 1,
|
|
1164
1165
|
class: "copy-uuid-array",
|
|
1165
1166
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1166
1167
|
}, [
|
|
1167
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1168
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1169
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1170
|
-
uuid:
|
|
1168
|
+
(m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(g(vn), st(d.value.childAttrs, {
|
|
1169
|
+
key: `${e.item.key}-copy-uuid-${q}`,
|
|
1170
|
+
"data-testid": `${e.item.key}-copy-uuid-${q}`,
|
|
1171
|
+
uuid: v
|
|
1171
1172
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1172
|
-
], 8,
|
|
1173
|
+
], 8, Mr)) : d.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
|
|
1173
1174
|
key: 2,
|
|
1174
1175
|
class: "method-badge-array",
|
|
1175
1176
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1176
1177
|
}, [
|
|
1177
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1178
|
-
key: `${e.item.key}-badge-method-${
|
|
1178
|
+
(m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(p, {
|
|
1179
|
+
key: `${e.item.key}-badge-method-${q}`,
|
|
1180
|
+
appearance: Object.values(g(wa)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
1179
1181
|
class: "config-badge",
|
|
1180
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1181
|
-
"is-rounded": "",
|
|
1182
|
-
label: q,
|
|
1183
|
-
method: g(wa).includes(q.toLowerCase()) ? q.toLowerCase() : "custom"
|
|
1182
|
+
"data-testid": `${e.item.key}-badge-method-${q}`
|
|
1184
1183
|
}, {
|
|
1185
1184
|
default: y(() => [
|
|
1186
|
-
W(
|
|
1185
|
+
W(j(v), 1)
|
|
1187
1186
|
]),
|
|
1188
1187
|
_: 2
|
|
1189
|
-
}, 1032, ["
|
|
1188
|
+
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1190
1189
|
], 8, Or)) : G("", !0),
|
|
1191
1190
|
d.value.additionalComponent === "JsonCardItem" ? (m(), T("div", {
|
|
1192
1191
|
key: 3,
|
|
1193
1192
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1194
1193
|
}, [
|
|
1195
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1196
|
-
key: `json-array-item-${
|
|
1197
|
-
index:
|
|
1194
|
+
(m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(bn, {
|
|
1195
|
+
key: `json-array-item-${q}`,
|
|
1196
|
+
index: q,
|
|
1198
1197
|
"is-array-item": "",
|
|
1199
|
-
item:
|
|
1198
|
+
item: v
|
|
1200
1199
|
}, null, 8, ["index", "item"]))), 128))
|
|
1201
|
-
], 8, Er)) : (m(), R(
|
|
1200
|
+
], 8, Er)) : (m(), R(S, {
|
|
1202
1201
|
key: 4,
|
|
1203
1202
|
label: g(h) ? e.item.value : ""
|
|
1204
1203
|
}, {
|
|
1205
1204
|
default: y(() => [
|
|
1206
|
-
|
|
1205
|
+
K("span", {
|
|
1207
1206
|
ref_key: "textContent",
|
|
1208
1207
|
ref: c,
|
|
1209
1208
|
class: Ae(["attrs-data-text", { truncated: e.truncated }])
|
|
1210
|
-
},
|
|
1209
|
+
}, j(d.value.text), 3)
|
|
1211
1210
|
]),
|
|
1212
1211
|
_: 1
|
|
1213
1212
|
}, 8, ["label"]))
|
|
@@ -1223,7 +1222,7 @@ const re = {
|
|
|
1223
1222
|
]);
|
|
1224
1223
|
};
|
|
1225
1224
|
}
|
|
1226
|
-
}), bt = /* @__PURE__ */ me(
|
|
1225
|
+
}), bt = /* @__PURE__ */ me(Kr, [["__scopeId", "data-v-4c7d8cc3"]]);
|
|
1227
1226
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1228
1227
|
function kn(e) {
|
|
1229
1228
|
return typeof e > "u" || e === null;
|
|
@@ -1644,31 +1643,31 @@ function ho(e, n) {
|
|
|
1644
1643
|
function vo(e) {
|
|
1645
1644
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
|
|
1646
1645
|
}
|
|
1647
|
-
var
|
|
1646
|
+
var jn = new oe("tag:yaml.org,2002:float", {
|
|
1648
1647
|
kind: "scalar",
|
|
1649
1648
|
resolve: mo,
|
|
1650
1649
|
construct: go,
|
|
1651
1650
|
predicate: vo,
|
|
1652
1651
|
represent: ho,
|
|
1653
1652
|
defaultStyle: "lowercase"
|
|
1654
|
-
}),
|
|
1653
|
+
}), Mn = Sn.extend({
|
|
1655
1654
|
implicit: [
|
|
1656
1655
|
xn,
|
|
1657
1656
|
Tn,
|
|
1658
1657
|
$n,
|
|
1659
|
-
|
|
1658
|
+
jn
|
|
1660
1659
|
]
|
|
1661
|
-
}), On =
|
|
1660
|
+
}), On = Mn, En = new RegExp(
|
|
1662
1661
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1663
|
-
),
|
|
1662
|
+
), Fn = new RegExp(
|
|
1664
1663
|
"^([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]))?))?$"
|
|
1665
1664
|
);
|
|
1666
1665
|
function bo(e) {
|
|
1667
|
-
return e === null ? !1 : En.exec(e) !== null ||
|
|
1666
|
+
return e === null ? !1 : En.exec(e) !== null || Fn.exec(e) !== null;
|
|
1668
1667
|
}
|
|
1669
1668
|
function ko(e) {
|
|
1670
1669
|
var n, t, a, r, o, i, s, l = 0, u = null, d, c, h;
|
|
1671
|
-
if (n = En.exec(e), n === null && (n =
|
|
1670
|
+
if (n = En.exec(e), n === null && (n = Fn.exec(e)), n === null)
|
|
1672
1671
|
throw new Error("Date resolve error");
|
|
1673
1672
|
if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
|
|
1674
1673
|
return new Date(Date.UTC(t, a, r));
|
|
@@ -1682,7 +1681,7 @@ function ko(e) {
|
|
|
1682
1681
|
function Co(e) {
|
|
1683
1682
|
return e.toISOString();
|
|
1684
1683
|
}
|
|
1685
|
-
var
|
|
1684
|
+
var Kn = new oe("tag:yaml.org,2002:timestamp", {
|
|
1686
1685
|
kind: "scalar",
|
|
1687
1686
|
resolve: bo,
|
|
1688
1687
|
construct: ko,
|
|
@@ -1753,20 +1752,20 @@ function $o(e) {
|
|
|
1753
1752
|
}
|
|
1754
1753
|
return !0;
|
|
1755
1754
|
}
|
|
1756
|
-
function
|
|
1755
|
+
function jo(e) {
|
|
1757
1756
|
return e !== null ? e : [];
|
|
1758
1757
|
}
|
|
1759
1758
|
var qn = new oe("tag:yaml.org,2002:omap", {
|
|
1760
1759
|
kind: "sequence",
|
|
1761
1760
|
resolve: $o,
|
|
1762
|
-
construct:
|
|
1763
|
-
}),
|
|
1761
|
+
construct: jo
|
|
1762
|
+
}), Mo = Object.prototype.toString;
|
|
1764
1763
|
function Oo(e) {
|
|
1765
1764
|
if (e === null)
|
|
1766
1765
|
return !0;
|
|
1767
1766
|
var n, t, a, r, o, i = e;
|
|
1768
1767
|
for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1769
|
-
if (a = i[n],
|
|
1768
|
+
if (a = i[n], Mo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
|
|
1770
1769
|
return !1;
|
|
1771
1770
|
o[n] = [r[0], a[r[0]]];
|
|
1772
1771
|
}
|
|
@@ -1784,13 +1783,13 @@ var Ln = new oe("tag:yaml.org,2002:pairs", {
|
|
|
1784
1783
|
kind: "sequence",
|
|
1785
1784
|
resolve: Oo,
|
|
1786
1785
|
construct: Eo
|
|
1787
|
-
}),
|
|
1788
|
-
function
|
|
1786
|
+
}), Fo = Object.prototype.hasOwnProperty;
|
|
1787
|
+
function Ko(e) {
|
|
1789
1788
|
if (e === null)
|
|
1790
1789
|
return !0;
|
|
1791
1790
|
var n, t = e;
|
|
1792
1791
|
for (n in t)
|
|
1793
|
-
if (
|
|
1792
|
+
if (Fo.call(t, n) && t[n] !== null)
|
|
1794
1793
|
return !1;
|
|
1795
1794
|
return !0;
|
|
1796
1795
|
}
|
|
@@ -1799,11 +1798,11 @@ function No(e) {
|
|
|
1799
1798
|
}
|
|
1800
1799
|
var Pn = new oe("tag:yaml.org,2002:set", {
|
|
1801
1800
|
kind: "mapping",
|
|
1802
|
-
resolve:
|
|
1801
|
+
resolve: Ko,
|
|
1803
1802
|
construct: No
|
|
1804
1803
|
}), Ct = On.extend({
|
|
1805
1804
|
implicit: [
|
|
1806
|
-
|
|
1805
|
+
Kn,
|
|
1807
1806
|
Nn
|
|
1808
1807
|
],
|
|
1809
1808
|
explicit: [
|
|
@@ -1825,7 +1824,7 @@ function _e(e) {
|
|
|
1825
1824
|
function pe(e) {
|
|
1826
1825
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1827
1826
|
}
|
|
1828
|
-
function
|
|
1827
|
+
function Me(e) {
|
|
1829
1828
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1830
1829
|
}
|
|
1831
1830
|
function Vo(e) {
|
|
@@ -1865,7 +1864,7 @@ function zn(e, n) {
|
|
|
1865
1864
|
};
|
|
1866
1865
|
return t.snippet = Jr(t), new se(n, t);
|
|
1867
1866
|
}
|
|
1868
|
-
function
|
|
1867
|
+
function M(e, n) {
|
|
1869
1868
|
throw zn(e, n);
|
|
1870
1869
|
}
|
|
1871
1870
|
function ze(e, n) {
|
|
@@ -1874,15 +1873,15 @@ function ze(e, n) {
|
|
|
1874
1873
|
var Yt = {
|
|
1875
1874
|
YAML: function(e, n, t) {
|
|
1876
1875
|
var a, r, o;
|
|
1877
|
-
e.version !== null &&
|
|
1876
|
+
e.version !== null && M(e, "duplication of %YAML directive"), t.length !== 1 && M(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && M(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && M(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && ze(e, "unsupported YAML version of the document");
|
|
1878
1877
|
},
|
|
1879
1878
|
TAG: function(e, n, t) {
|
|
1880
1879
|
var a, r;
|
|
1881
|
-
t.length !== 2 &&
|
|
1880
|
+
t.length !== 2 && M(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || M(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && M(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Dn.test(r) || M(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1882
1881
|
try {
|
|
1883
1882
|
r = decodeURIComponent(r);
|
|
1884
1883
|
} catch {
|
|
1885
|
-
|
|
1884
|
+
M(e, "tag prefix is malformed: " + r);
|
|
1886
1885
|
}
|
|
1887
1886
|
e.tagMap[a] = r;
|
|
1888
1887
|
}
|
|
@@ -1892,22 +1891,22 @@ function Ce(e, n, t, a) {
|
|
|
1892
1891
|
if (n < t) {
|
|
1893
1892
|
if (s = e.input.slice(n, t), a)
|
|
1894
1893
|
for (r = 0, o = s.length; r < o; r += 1)
|
|
1895
|
-
i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 ||
|
|
1894
|
+
i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || M(e, "expected valid JSON character");
|
|
1896
1895
|
else
|
|
1897
|
-
qo.test(s) &&
|
|
1896
|
+
qo.test(s) && M(e, "the stream contains non-printable characters");
|
|
1898
1897
|
e.result += s;
|
|
1899
1898
|
}
|
|
1900
1899
|
}
|
|
1901
1900
|
function Wt(e, n, t, a) {
|
|
1902
1901
|
var r, o, i, s;
|
|
1903
|
-
for (ae.isObject(t) ||
|
|
1902
|
+
for (ae.isObject(t) || M(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, s = r.length; i < s; i += 1)
|
|
1904
1903
|
o = r[i], we.call(n, o) || (n[o] = t[o], a[o] = !0);
|
|
1905
1904
|
}
|
|
1906
1905
|
function Oe(e, n, t, a, r, o, i, s, l) {
|
|
1907
1906
|
var u, d;
|
|
1908
1907
|
if (Array.isArray(r))
|
|
1909
1908
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
1910
|
-
Array.isArray(r[u]) &&
|
|
1909
|
+
Array.isArray(r[u]) && M(e, "nested arrays are not supported inside keys"), typeof r == "object" && zt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1911
1910
|
if (typeof r == "object" && zt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
|
|
1912
1911
|
if (Array.isArray(o))
|
|
1913
1912
|
for (u = 0, d = o.length; u < d; u += 1)
|
|
@@ -1915,7 +1914,7 @@ function Oe(e, n, t, a, r, o, i, s, l) {
|
|
|
1915
1914
|
else
|
|
1916
1915
|
Wt(e, n, o, t);
|
|
1917
1916
|
else
|
|
1918
|
-
!e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position,
|
|
1917
|
+
!e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, M(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
|
|
1919
1918
|
configurable: !0,
|
|
1920
1919
|
enumerable: !0,
|
|
1921
1920
|
writable: !0,
|
|
@@ -1925,7 +1924,7 @@ function Oe(e, n, t, a, r, o, i, s, l) {
|
|
|
1925
1924
|
}
|
|
1926
1925
|
function wt(e) {
|
|
1927
1926
|
var n;
|
|
1928
|
-
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1927
|
+
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 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;
|
|
1929
1928
|
}
|
|
1930
1929
|
function ne(e, n, t) {
|
|
1931
1930
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
@@ -1953,17 +1952,17 @@ function It(e, n) {
|
|
|
1953
1952
|
}
|
|
1954
1953
|
function Ho(e, n, t) {
|
|
1955
1954
|
var a, r, o, i, s, l, u, d, c = e.kind, h = e.result, f;
|
|
1956
|
-
if (f = e.input.charCodeAt(e.position), pe(f) ||
|
|
1955
|
+
if (f = e.input.charCodeAt(e.position), pe(f) || Me(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && Me(r)))
|
|
1957
1956
|
return !1;
|
|
1958
1957
|
for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
|
|
1959
1958
|
if (f === 58) {
|
|
1960
|
-
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t &&
|
|
1959
|
+
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t && Me(r))
|
|
1961
1960
|
break;
|
|
1962
1961
|
} else if (f === 35) {
|
|
1963
1962
|
if (a = e.input.charCodeAt(e.position - 1), pe(a))
|
|
1964
1963
|
break;
|
|
1965
1964
|
} else {
|
|
1966
|
-
if (e.position === e.lineStart && Qe(e) || t &&
|
|
1965
|
+
if (e.position === e.lineStart && Qe(e) || t && Me(f))
|
|
1967
1966
|
break;
|
|
1968
1967
|
if (ye(f))
|
|
1969
1968
|
if (l = e.line, u = e.lineStart, d = e.lineIndent, ne(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1989,8 +1988,8 @@ function zo(e, n) {
|
|
|
1989
1988
|
else
|
|
1990
1989
|
return !0;
|
|
1991
1990
|
else
|
|
1992
|
-
ye(t) ? (Ce(e, a, r, !0), It(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ?
|
|
1993
|
-
|
|
1991
|
+
ye(t) ? (Ce(e, a, r, !0), It(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? M(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1992
|
+
M(e, "unexpected end of the stream within a single quoted scalar");
|
|
1994
1993
|
}
|
|
1995
1994
|
function Jo(e, n) {
|
|
1996
1995
|
var t, a, r, o, i, s;
|
|
@@ -2006,30 +2005,30 @@ function Jo(e, n) {
|
|
|
2006
2005
|
e.result += Hn[s], e.position++;
|
|
2007
2006
|
else if ((i = Ro(s)) > 0) {
|
|
2008
2007
|
for (r = i, o = 0; r > 0; r--)
|
|
2009
|
-
s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i :
|
|
2008
|
+
s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i : M(e, "expected hexadecimal character");
|
|
2010
2009
|
e.result += Do(o), e.position++;
|
|
2011
2010
|
} else
|
|
2012
|
-
|
|
2011
|
+
M(e, "unknown escape sequence");
|
|
2013
2012
|
t = a = e.position;
|
|
2014
2013
|
} else
|
|
2015
|
-
ye(s) ? (Ce(e, t, a, !0), It(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ?
|
|
2014
|
+
ye(s) ? (Ce(e, t, a, !0), It(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? M(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
2016
2015
|
}
|
|
2017
|
-
|
|
2016
|
+
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
2018
2017
|
}
|
|
2019
2018
|
function Yo(e, n) {
|
|
2020
|
-
var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), k, p, S,
|
|
2021
|
-
if (
|
|
2019
|
+
var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), k, p, S, v;
|
|
2020
|
+
if (v = e.input.charCodeAt(e.position), v === 91)
|
|
2022
2021
|
d = 93, f = !1, s = [];
|
|
2023
|
-
else if (
|
|
2022
|
+
else if (v === 123)
|
|
2024
2023
|
d = 125, f = !0, s = {};
|
|
2025
2024
|
else
|
|
2026
2025
|
return !1;
|
|
2027
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s),
|
|
2028
|
-
if (ne(e, !0, n),
|
|
2026
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0; ) {
|
|
2027
|
+
if (ne(e, !0, n), v = e.input.charCodeAt(e.position), v === d)
|
|
2029
2028
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2030
|
-
t ?
|
|
2029
|
+
t ? v === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), p = k = S = null, c = h = !1, v === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, k = e.result, ne(e, !0, n), v = e.input.charCodeAt(e.position), (h || e.line === a) && v === 58 && (c = !0, v = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, k, S, a, r, o) : c ? s.push(Oe(e, null, A, p, k, S, a, r, o)) : s.push(k), ne(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (t = !0, v = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2031
2030
|
}
|
|
2032
|
-
|
|
2031
|
+
M(e, "unexpected end of the stream within a flow collection");
|
|
2033
2032
|
}
|
|
2034
2033
|
function Wo(e, n) {
|
|
2035
2034
|
var t, a, r = it, o = !1, i = !1, s = n, l = 0, u = !1, d, c;
|
|
@@ -2041,9 +2040,9 @@ function Wo(e, n) {
|
|
|
2041
2040
|
return !1;
|
|
2042
2041
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
2043
2042
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
2044
|
-
it === r ? r = c === 43 ? Ht : Bo :
|
|
2043
|
+
it === r ? r = c === 43 ? Ht : Bo : M(e, "repeat of a chomping mode identifier");
|
|
2045
2044
|
else if ((d = Uo(c)) >= 0)
|
|
2046
|
-
d === 0 ?
|
|
2045
|
+
d === 0 ? M(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? M(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
2047
2046
|
else
|
|
2048
2047
|
break;
|
|
2049
2048
|
if (_e(c)) {
|
|
@@ -2082,44 +2081,44 @@ function Zt(e, n) {
|
|
|
2082
2081
|
var t, a = e.tag, r = e.anchor, o = [], i, s = !1, l;
|
|
2083
2082
|
if (e.firstTabInLine !== -1)
|
|
2084
2083
|
return !1;
|
|
2085
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2084
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), 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 || (i = e.input.charCodeAt(e.position + 1), !pe(i)))); ) {
|
|
2086
2085
|
if (s = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= n) {
|
|
2087
2086
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
2088
2087
|
continue;
|
|
2089
2088
|
}
|
|
2090
|
-
if (t = e.line,
|
|
2091
|
-
|
|
2089
|
+
if (t = e.line, Fe(e, n, Rn, !1, !0), o.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
2090
|
+
M(e, "bad indentation of a sequence entry");
|
|
2092
2091
|
else if (e.lineIndent < n)
|
|
2093
2092
|
break;
|
|
2094
2093
|
}
|
|
2095
2094
|
return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2096
2095
|
}
|
|
2097
2096
|
function Zo(e, n, t) {
|
|
2098
|
-
var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, k = null, p = !1, S = !1,
|
|
2097
|
+
var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, k = null, p = !1, S = !1, v;
|
|
2099
2098
|
if (e.firstTabInLine !== -1)
|
|
2100
2099
|
return !1;
|
|
2101
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
2102
|
-
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2103
|
-
|
|
2100
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), v = e.input.charCodeAt(e.position); v !== 0; ) {
|
|
2101
|
+
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (v === 63 || v === 58) && pe(a))
|
|
2102
|
+
v === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !0, r = !0) : p ? (p = !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, v = a;
|
|
2104
2103
|
else {
|
|
2105
|
-
if (i = e.line, s = e.lineStart, l = e.position, !
|
|
2104
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Vn, !1, !0))
|
|
2106
2105
|
break;
|
|
2107
2106
|
if (e.line === o) {
|
|
2108
|
-
for (
|
|
2109
|
-
|
|
2110
|
-
if (
|
|
2111
|
-
|
|
2107
|
+
for (v = e.input.charCodeAt(e.position); _e(v); )
|
|
2108
|
+
v = e.input.charCodeAt(++e.position);
|
|
2109
|
+
if (v === 58)
|
|
2110
|
+
v = e.input.charCodeAt(++e.position), pe(v) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
|
|
2112
2111
|
else if (S)
|
|
2113
|
-
|
|
2112
|
+
M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2114
2113
|
else
|
|
2115
2114
|
return e.tag = u, e.anchor = d, !0;
|
|
2116
2115
|
} else if (S)
|
|
2117
|
-
|
|
2116
|
+
M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2118
2117
|
else
|
|
2119
2118
|
return e.tag = u, e.anchor = d, !0;
|
|
2120
2119
|
}
|
|
2121
|
-
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position),
|
|
2122
|
-
|
|
2120
|
+
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : k = e.result), p || (Oe(e, c, h, f, A, k, i, s, l), f = A = k = null), ne(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && v !== 0)
|
|
2121
|
+
M(e, "bad indentation of a mapping entry");
|
|
2123
2122
|
else if (e.lineIndent < n)
|
|
2124
2123
|
break;
|
|
2125
2124
|
}
|
|
@@ -2129,49 +2128,49 @@ function Qo(e) {
|
|
|
2129
2128
|
var n, t = !1, a = !1, r, o, i;
|
|
2130
2129
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
2131
2130
|
return !1;
|
|
2132
|
-
if (e.tag !== null &&
|
|
2131
|
+
if (e.tag !== null && M(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (a = !0, r = "!!", i = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, t) {
|
|
2133
2132
|
do
|
|
2134
2133
|
i = e.input.charCodeAt(++e.position);
|
|
2135
2134
|
while (i !== 0 && i !== 62);
|
|
2136
|
-
e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) :
|
|
2135
|
+
e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : M(e, "unexpected end of the stream within a verbatim tag");
|
|
2137
2136
|
} else {
|
|
2138
2137
|
for (; i !== 0 && !pe(i); )
|
|
2139
|
-
i === 33 && (a ?
|
|
2140
|
-
o = e.input.slice(n, e.position), Po.test(o) &&
|
|
2138
|
+
i === 33 && (a ? M(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Un.test(r) || M(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
2139
|
+
o = e.input.slice(n, e.position), Po.test(o) && M(e, "tag suffix cannot contain flow indicator characters");
|
|
2141
2140
|
}
|
|
2142
|
-
o && !Dn.test(o) &&
|
|
2141
|
+
o && !Dn.test(o) && M(e, "tag name cannot contain such characters: " + o);
|
|
2143
2142
|
try {
|
|
2144
2143
|
o = decodeURIComponent(o);
|
|
2145
2144
|
} catch {
|
|
2146
|
-
|
|
2145
|
+
M(e, "tag name is malformed: " + o);
|
|
2147
2146
|
}
|
|
2148
|
-
return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o :
|
|
2147
|
+
return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : M(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2149
2148
|
}
|
|
2150
2149
|
function Xo(e) {
|
|
2151
2150
|
var n, t;
|
|
2152
2151
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2153
2152
|
return !1;
|
|
2154
|
-
for (e.anchor !== null &&
|
|
2153
|
+
for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !Me(t); )
|
|
2155
2154
|
t = e.input.charCodeAt(++e.position);
|
|
2156
|
-
return e.position === n &&
|
|
2155
|
+
return e.position === n && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2157
2156
|
}
|
|
2158
2157
|
function ei(e) {
|
|
2159
2158
|
var n, t, a;
|
|
2160
2159
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2161
2160
|
return !1;
|
|
2162
|
-
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !
|
|
2161
|
+
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !Me(a); )
|
|
2163
2162
|
a = e.input.charCodeAt(++e.position);
|
|
2164
|
-
return e.position === n &&
|
|
2163
|
+
return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
|
|
2165
2164
|
}
|
|
2166
|
-
function
|
|
2165
|
+
function Fe(e, n, t, a, r) {
|
|
2167
2166
|
var o, i, s, l = 1, u = !1, d = !1, c, h, f, A, k, p;
|
|
2168
2167
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Rn === t, a && ne(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2169
2168
|
for (; Qo(e) || Xo(e); )
|
|
2170
2169
|
ne(e, !0, -1) ? (u = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2171
|
-
if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, k)) || Yo(e, k) ? d = !0 : (i && Wo(e, k) || zo(e, k) || Jo(e, k) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) &&
|
|
2170
|
+
if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, k)) || Yo(e, k) ? d = !0 : (i && Wo(e, k) || zo(e, k) || Jo(e, k) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : Ho(e, k, Ge === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Zt(e, p))), e.tag === null)
|
|
2172
2171
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2173
2172
|
else if (e.tag === "?") {
|
|
2174
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2173
|
+
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
|
|
2175
2174
|
if (A = e.implicitTypes[c], A.resolve(e.result)) {
|
|
2176
2175
|
e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2177
2176
|
break;
|
|
@@ -2185,7 +2184,7 @@ function Ke(e, n, t, a, r) {
|
|
|
2185
2184
|
A = f[c];
|
|
2186
2185
|
break;
|
|
2187
2186
|
}
|
|
2188
|
-
A ||
|
|
2187
|
+
A || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.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");
|
|
2189
2188
|
}
|
|
2190
2189
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2191
2190
|
}
|
|
@@ -2194,7 +2193,7 @@ function ti(e) {
|
|
|
2194
2193
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ne(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
2195
2194
|
for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i); )
|
|
2196
2195
|
i = e.input.charCodeAt(++e.position);
|
|
2197
|
-
for (a = e.input.slice(t, e.position), r = [], a.length < 1 &&
|
|
2196
|
+
for (a = e.input.slice(t, e.position), r = [], a.length < 1 && M(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
2198
2197
|
for (; _e(i); )
|
|
2199
2198
|
i = e.input.charCodeAt(++e.position);
|
|
2200
2199
|
if (i === 35) {
|
|
@@ -2211,12 +2210,12 @@ function ti(e) {
|
|
|
2211
2210
|
}
|
|
2212
2211
|
i !== 0 && wt(e), we.call(Yt, a) ? Yt[a](e, a, r) : ze(e, 'unknown document directive "' + a + '"');
|
|
2213
2212
|
}
|
|
2214
|
-
if (ne(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, ne(e, !0, -1)) : o &&
|
|
2213
|
+
if (ne(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, ne(e, !0, -1)) : o && M(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
|
|
2215
2214
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
|
|
2216
2215
|
return;
|
|
2217
2216
|
}
|
|
2218
2217
|
if (e.position < e.length - 1)
|
|
2219
|
-
|
|
2218
|
+
M(e, "end of the stream or a document separator is expected");
|
|
2220
2219
|
else
|
|
2221
2220
|
return;
|
|
2222
2221
|
}
|
|
@@ -2224,7 +2223,7 @@ function Jn(e, n) {
|
|
|
2224
2223
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2225
2224
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2226
2225
|
var t = new Go(e, n), a = e.indexOf("\0");
|
|
2227
|
-
for (a !== -1 && (t.position = a,
|
|
2226
|
+
for (a !== -1 && (t.position = a, M(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2228
2227
|
t.lineIndent += 1, t.position += 1;
|
|
2229
2228
|
for (; t.position < t.length - 1; )
|
|
2230
2229
|
ti(t);
|
|
@@ -2347,7 +2346,7 @@ function en(e, n, t) {
|
|
|
2347
2346
|
function $i(e) {
|
|
2348
2347
|
return Re(e) && e !== _t && !Ye(e) && e !== gi && e !== vi && e !== Je && e !== Qn && e !== Xn && e !== ea && e !== ta && e !== na && e !== ct && e !== pi && e !== mi && e !== ui && e !== Ci && e !== yi && e !== hi && e !== fi && e !== ci && e !== di && e !== bi && e !== ki;
|
|
2349
2348
|
}
|
|
2350
|
-
function
|
|
2349
|
+
function ji(e) {
|
|
2351
2350
|
return !Ye(e) && e !== Je;
|
|
2352
2351
|
}
|
|
2353
2352
|
function Ne(e, n) {
|
|
@@ -2358,13 +2357,13 @@ function aa(e) {
|
|
|
2358
2357
|
var n = /^\n* /;
|
|
2359
2358
|
return n.test(e);
|
|
2360
2359
|
}
|
|
2361
|
-
var ra = 1, pt = 2, oa = 3, ia = 4,
|
|
2362
|
-
function
|
|
2363
|
-
var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, k = $i(Ne(e, 0)) &&
|
|
2360
|
+
var ra = 1, pt = 2, oa = 3, ia = 4, je = 5;
|
|
2361
|
+
function Mi(e, n, t, a, r, o, i, s) {
|
|
2362
|
+
var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, k = $i(Ne(e, 0)) && ji(Ne(e, e.length - 1));
|
|
2364
2363
|
if (n || i)
|
|
2365
2364
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2366
2365
|
if (u = Ne(e, l), !Re(u))
|
|
2367
|
-
return
|
|
2366
|
+
return je;
|
|
2368
2367
|
k = k && en(u, d, s), d = u;
|
|
2369
2368
|
}
|
|
2370
2369
|
else {
|
|
@@ -2373,12 +2372,12 @@ function ji(e, n, t, a, r, o, i, s) {
|
|
|
2373
2372
|
c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2374
2373
|
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2375
2374
|
else if (!Re(u))
|
|
2376
|
-
return
|
|
2375
|
+
return je;
|
|
2377
2376
|
k = k && en(u, d, s), d = u;
|
|
2378
2377
|
}
|
|
2379
2378
|
h = h || f && l - A - 1 > a && e[A + 1] !== " ";
|
|
2380
2379
|
}
|
|
2381
|
-
return !c && !h ? k && !i && !r(e) ? ra : o === Ve ?
|
|
2380
|
+
return !c && !h ? k && !i && !r(e) ? ra : o === Ve ? je : pt : t > 9 && aa(e) ? je : i ? o === Ve ? je : pt : h ? ia : oa;
|
|
2382
2381
|
}
|
|
2383
2382
|
function Oi(e, n, t, a, r) {
|
|
2384
2383
|
e.dump = function() {
|
|
@@ -2390,7 +2389,7 @@ function Oi(e, n, t, a, r) {
|
|
|
2390
2389
|
function l(u) {
|
|
2391
2390
|
return Ti(e, u);
|
|
2392
2391
|
}
|
|
2393
|
-
switch (
|
|
2392
|
+
switch (Mi(
|
|
2394
2393
|
n,
|
|
2395
2394
|
s,
|
|
2396
2395
|
e.indent,
|
|
@@ -2408,8 +2407,8 @@ function Oi(e, n, t, a, r) {
|
|
|
2408
2407
|
return "|" + tn(n, e.indent) + nn(Qt(n, o));
|
|
2409
2408
|
case ia:
|
|
2410
2409
|
return ">" + tn(n, e.indent) + nn(Qt(Ei(n, i), o));
|
|
2411
|
-
case
|
|
2412
|
-
return '"' +
|
|
2410
|
+
case je:
|
|
2411
|
+
return '"' + Fi(n) + '"';
|
|
2413
2412
|
default:
|
|
2414
2413
|
throw new se("impossible error: invalid scalar style");
|
|
2415
2414
|
}
|
|
@@ -2450,12 +2449,12 @@ function an(e, n) {
|
|
|
2450
2449
|
`, e.length - r > n && i > r ? l += e.slice(r, i) + `
|
|
2451
2450
|
` + e.slice(i + 1) : l += e.slice(r), l.slice(1);
|
|
2452
2451
|
}
|
|
2453
|
-
function
|
|
2452
|
+
function Fi(e) {
|
|
2454
2453
|
for (var n = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
|
|
2455
2454
|
t = Ne(e, r), a = ie[t], !a && Re(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || Ai(t);
|
|
2456
2455
|
return n;
|
|
2457
2456
|
}
|
|
2458
|
-
function
|
|
2457
|
+
function Ki(e, n, t) {
|
|
2459
2458
|
var a = "", r = e.tag, o, i, s;
|
|
2460
2459
|
for (o = 0, i = t.length; o < i; o += 1)
|
|
2461
2460
|
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (be(e, n, s, !1, !1) || typeof s > "u" && be(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2513,7 +2512,7 @@ function be(e, n, t, a, r, o, i) {
|
|
|
2513
2512
|
if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
|
|
2514
2513
|
a && Object.keys(e.dump).length !== 0 ? (Bi(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ni(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2515
2514
|
else if (s === "[object Array]")
|
|
2516
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (
|
|
2515
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ki(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2517
2516
|
else if (s === "[object String]")
|
|
2518
2517
|
e.tag !== "?" && Oi(e, e.dump, n, o, l);
|
|
2519
2518
|
else {
|
|
@@ -2561,14 +2560,14 @@ function At(e, n) {
|
|
|
2561
2560
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2562
2561
|
};
|
|
2563
2562
|
}
|
|
2564
|
-
var Ri = oe, Ui = wn, Di = Sn, Gi =
|
|
2563
|
+
var Ri = oe, Ui = wn, Di = Sn, Gi = Mn, Hi = On, zi = Ct, Ji = Yn.load, Yi = Yn.loadAll, Wi = Vi.dump, Zi = se, Qi = {
|
|
2565
2564
|
binary: Bn,
|
|
2566
|
-
float:
|
|
2565
|
+
float: jn,
|
|
2567
2566
|
map: An,
|
|
2568
2567
|
null: xn,
|
|
2569
2568
|
pairs: Ln,
|
|
2570
2569
|
set: Pn,
|
|
2571
|
-
timestamp:
|
|
2570
|
+
timestamp: Kn,
|
|
2572
2571
|
bool: Tn,
|
|
2573
2572
|
int: $n,
|
|
2574
2573
|
merge: Nn,
|
|
@@ -2644,7 +2643,7 @@ const as = {
|
|
|
2644
2643
|
class: Ae(`config-card-details-${d}-props`),
|
|
2645
2644
|
"data-testid": `config-card-details-${d}-props`
|
|
2646
2645
|
}, [
|
|
2647
|
-
d !== "basic" ? (m(), T("div", os,
|
|
2646
|
+
d !== "basic" ? (m(), T("div", os, j(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2648
2647
|
(m(!0), T(fe, null, de(e.propertyCollections[d], (c) => (m(), R(bt, {
|
|
2649
2648
|
key: c.key,
|
|
2650
2649
|
item: c
|
|
@@ -2671,7 +2670,7 @@ const as = {
|
|
|
2671
2670
|
], 10, rs))), 128))
|
|
2672
2671
|
])) : G("", !0),
|
|
2673
2672
|
e.format === "json" ? (m(), T("div", is, [
|
|
2674
|
-
|
|
2673
|
+
F(u, {
|
|
2675
2674
|
id: "config-card-codeblock",
|
|
2676
2675
|
code: o.value,
|
|
2677
2676
|
language: "json",
|
|
@@ -2679,7 +2678,7 @@ const as = {
|
|
|
2679
2678
|
}, null, 8, ["code"])
|
|
2680
2679
|
])) : G("", !0),
|
|
2681
2680
|
e.format === "yaml" ? (m(), T("div", ss, [
|
|
2682
|
-
|
|
2681
|
+
F(u, {
|
|
2683
2682
|
id: "config-card-codeblock",
|
|
2684
2683
|
code: i.value,
|
|
2685
2684
|
language: "yaml",
|
|
@@ -2697,7 +2696,7 @@ const as = {
|
|
|
2697
2696
|
}, ds = (e) => (cn("data-v-a53b73fd"), e = e(), dn(), e), ps = ["aria-hidden"], fs = {
|
|
2698
2697
|
key: 0,
|
|
2699
2698
|
"data-testid": "kui-icon-svg-title"
|
|
2700
|
-
}, ms = /* @__PURE__ */ ds(() => /* @__PURE__ */
|
|
2699
|
+
}, ms = /* @__PURE__ */ ds(() => /* @__PURE__ */ K("path", {
|
|
2701
2700
|
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",
|
|
2702
2701
|
fill: "currentColor"
|
|
2703
2702
|
}, null, -1)), gs = /* @__PURE__ */ te({
|
|
@@ -2786,7 +2785,7 @@ const as = {
|
|
|
2786
2785
|
width: "100%",
|
|
2787
2786
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2788
2787
|
}, [
|
|
2789
|
-
e.title ? (m(), T("title", fs,
|
|
2788
|
+
e.title ? (m(), T("title", fs, j(e.title), 1)) : G("", !0),
|
|
2790
2789
|
ms
|
|
2791
2790
|
], 8, ps))
|
|
2792
2791
|
]),
|
|
@@ -2933,11 +2932,11 @@ const as = {
|
|
|
2933
2932
|
var b, C, V;
|
|
2934
2933
|
if (!p.value)
|
|
2935
2934
|
return [];
|
|
2936
|
-
const B = [],
|
|
2935
|
+
const B = [], I = Object.keys(p.value).length;
|
|
2937
2936
|
for (const E in p.value) {
|
|
2938
2937
|
const L = (C = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = (V = h[E]) == null ? void 0 : V.order;
|
|
2939
|
-
let Z =
|
|
2940
|
-
(D || D === 0) && (Z = D === -1 ?
|
|
2938
|
+
let Z = I;
|
|
2939
|
+
(D || D === 0) && (Z = D === -1 ? I + 1 : D), L && (Z = L === -1 ? I + 1 : L), B.push([E, Z]);
|
|
2941
2940
|
}
|
|
2942
2941
|
return B.sort(function(E, L) {
|
|
2943
2942
|
return E[1] - L[1];
|
|
@@ -2954,19 +2953,19 @@ const as = {
|
|
|
2954
2953
|
section: Q.section ?? ((le == null ? void 0 : le.section) || ce.Advanced)
|
|
2955
2954
|
};
|
|
2956
2955
|
}).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
|
|
2957
|
-
}),
|
|
2956
|
+
}), v = $(() => {
|
|
2958
2957
|
var b, C;
|
|
2959
2958
|
if (!p.value || !a.pluginConfigKey)
|
|
2960
2959
|
return [];
|
|
2961
|
-
const V = p.value[a.pluginConfigKey] || {}, B = Object.keys(V).length,
|
|
2960
|
+
const V = p.value[a.pluginConfigKey] || {}, B = Object.keys(V).length, I = [];
|
|
2962
2961
|
for (const E in V) {
|
|
2963
2962
|
const L = (C = (b = a.pluginConfigSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = V[E];
|
|
2964
2963
|
let Z = D != null && D !== "" ? B - 1 : B;
|
|
2965
|
-
L && (Z = L === -1 ? B + 1 : L),
|
|
2964
|
+
L && (Z = L === -1 ? B + 1 : L), I.push([E, Z]);
|
|
2966
2965
|
}
|
|
2967
|
-
return
|
|
2966
|
+
return I.sort(function(E, L) {
|
|
2968
2967
|
return E[1] - L[1];
|
|
2969
|
-
}),
|
|
2968
|
+
}), I.map((E) => {
|
|
2970
2969
|
var L;
|
|
2971
2970
|
const D = E[0], Z = V[D], z = ((L = a.pluginConfigSchema) == null ? void 0 : L[D]) || {};
|
|
2972
2971
|
return {
|
|
@@ -2982,11 +2981,11 @@ const as = {
|
|
|
2982
2981
|
}), q = $(() => {
|
|
2983
2982
|
var b, C, V, B;
|
|
2984
2983
|
return {
|
|
2985
|
-
basic: (b = S.value) == null ? void 0 : b.filter((
|
|
2986
|
-
advanced: (C = S.value) == null ? void 0 : C.filter((
|
|
2987
|
-
plugin: (B =
|
|
2984
|
+
basic: (b = S.value) == null ? void 0 : b.filter((I) => I.section === ce.Basic),
|
|
2985
|
+
advanced: (C = S.value) == null ? void 0 : C.filter((I) => I.section === ce.Advanced),
|
|
2986
|
+
plugin: (B = v.value) == null ? void 0 : B.concat((V = S.value) == null ? void 0 : V.filter((I) => I.section === ce.Plugin))
|
|
2988
2987
|
};
|
|
2989
|
-
}),
|
|
2988
|
+
}), _ = $(() => {
|
|
2990
2989
|
const b = [];
|
|
2991
2990
|
return q.value.basic.length && b.push("basic"), q.value.advanced.length && b.push("advanced"), q.value.plugin.length && b.push("plugin"), b;
|
|
2992
2991
|
}), w = (b) => !!(b.tooltip || r[`${b.key}-label-tooltip`]), N = $(() => {
|
|
@@ -3019,10 +3018,10 @@ const as = {
|
|
|
3019
3018
|
f.value = !1;
|
|
3020
3019
|
}
|
|
3021
3020
|
}), (b, C) => {
|
|
3022
|
-
const V = P("KLabel"), B = P("KSelect"),
|
|
3021
|
+
const V = P("KLabel"), B = P("KSelect"), I = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
|
|
3023
3022
|
return m(), R(Z, { class: "kong-ui-entity-base-config-card" }, ke({
|
|
3024
3023
|
actions: y(() => [
|
|
3025
|
-
|
|
3024
|
+
K("div", vs, [
|
|
3026
3025
|
Y(b.$slots, "actions", {}, void 0, !0),
|
|
3027
3026
|
e.config.jsonYamlEnabled ? (m(), R(V, {
|
|
3028
3027
|
key: 0,
|
|
@@ -3030,7 +3029,7 @@ const as = {
|
|
|
3030
3029
|
"data-testid": "config-format-select-label"
|
|
3031
3030
|
}, {
|
|
3032
3031
|
default: y(() => [
|
|
3033
|
-
W(
|
|
3032
|
+
W(j(e.label), 1)
|
|
3034
3033
|
]),
|
|
3035
3034
|
_: 1
|
|
3036
3035
|
})) : G("", !0),
|
|
@@ -3041,33 +3040,33 @@ const as = {
|
|
|
3041
3040
|
items: u,
|
|
3042
3041
|
onChange: c
|
|
3043
3042
|
})) : G("", !0),
|
|
3044
|
-
a.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(
|
|
3043
|
+
a.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(I, {
|
|
3045
3044
|
key: 2,
|
|
3046
3045
|
appearance: "tertiary",
|
|
3047
3046
|
class: "book-icon",
|
|
3048
3047
|
"data-testid": "book-icon"
|
|
3049
3048
|
}, {
|
|
3050
3049
|
default: y(() => [
|
|
3051
|
-
|
|
3050
|
+
K("a", {
|
|
3052
3051
|
href: e.configCardDoc,
|
|
3053
3052
|
rel: "noopener",
|
|
3054
3053
|
target: "_blank"
|
|
3055
3054
|
}, [
|
|
3056
|
-
|
|
3055
|
+
F(g(ys), { size: g(Ir) }, null, 8, ["size"])
|
|
3057
3056
|
], 8, bs)
|
|
3058
3057
|
]),
|
|
3059
3058
|
_: 1
|
|
3060
3059
|
})) : G("", !0),
|
|
3061
3060
|
e.config.jsonYamlEnabled ? G("", !0) : (m(), R(E, { key: 3 }, {
|
|
3062
3061
|
default: y(({ copyToClipboard: z }) => [
|
|
3063
|
-
!f.value && !A.value ? (m(), R(
|
|
3062
|
+
!f.value && !A.value ? (m(), R(I, {
|
|
3064
3063
|
key: 0,
|
|
3065
3064
|
appearance: "tertiary",
|
|
3066
3065
|
"data-testid": "json-copy-button",
|
|
3067
3066
|
onClick: (Q) => U(z)
|
|
3068
3067
|
}, {
|
|
3069
3068
|
default: y(() => [
|
|
3070
|
-
W(
|
|
3069
|
+
W(j(g(o)("baseConfigCard.actions.copy")), 1)
|
|
3071
3070
|
]),
|
|
3072
3071
|
_: 2
|
|
3073
3072
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -3088,14 +3087,14 @@ const as = {
|
|
|
3088
3087
|
"is-error": ""
|
|
3089
3088
|
}, {
|
|
3090
3089
|
message: y(() => [
|
|
3091
|
-
|
|
3090
|
+
K("h3", null, j(k.value), 1)
|
|
3092
3091
|
]),
|
|
3093
3092
|
_: 1
|
|
3094
3093
|
})) : G("", !0),
|
|
3095
3094
|
e.config.jsonYamlEnabled ? (m(), T("div", ks, [
|
|
3096
|
-
|
|
3095
|
+
F(us, {
|
|
3097
3096
|
format: d.value,
|
|
3098
|
-
"prop-list-types":
|
|
3097
|
+
"prop-list-types": _.value,
|
|
3099
3098
|
"property-collections": q.value,
|
|
3100
3099
|
record: p.value
|
|
3101
3100
|
}, ke({ _: 2 }, [
|
|
@@ -3110,12 +3109,12 @@ const as = {
|
|
|
3110
3109
|
}))
|
|
3111
3110
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
3112
3111
|
])) : (m(), T("div", Cs, [
|
|
3113
|
-
(m(!0), T(fe, null, de(
|
|
3112
|
+
(m(!0), T(fe, null, de(_.value, (z) => (m(), T("div", {
|
|
3114
3113
|
key: `config-card-details-${z}-props`,
|
|
3115
3114
|
class: Ae(`config-card-details-${z}-props`),
|
|
3116
3115
|
"data-testid": `config-card-details-${z}-props`
|
|
3117
3116
|
}, [
|
|
3118
|
-
z !== "basic" ? (m(), T("div", Is,
|
|
3117
|
+
z !== "basic" ? (m(), T("div", Is, j(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
3119
3118
|
(m(!0), T(fe, null, de(q.value[z], (Q) => (m(), R(bt, {
|
|
3120
3119
|
key: Q.key,
|
|
3121
3120
|
item: Q
|
|
@@ -3147,9 +3146,9 @@ const as = {
|
|
|
3147
3146
|
e.hideTitle ? void 0 : {
|
|
3148
3147
|
name: "title",
|
|
3149
3148
|
fn: y(() => [
|
|
3150
|
-
|
|
3149
|
+
K("div", hs, [
|
|
3151
3150
|
Y(b.$slots, "title", {}, () => [
|
|
3152
|
-
W(
|
|
3151
|
+
W(j(g(o)("baseConfigCard.title")), 1)
|
|
3153
3152
|
], !0)
|
|
3154
3153
|
])
|
|
3155
3154
|
]),
|
|
@@ -3217,8 +3216,8 @@ const as = {
|
|
|
3217
3216
|
var p, S;
|
|
3218
3217
|
if (!a.editId)
|
|
3219
3218
|
return "";
|
|
3220
|
-
let
|
|
3221
|
-
return a.config.app === "konnect" ?
|
|
3219
|
+
let v = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3220
|
+
return a.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), v = v.replace(/{id}/gi, a.editId), v;
|
|
3222
3221
|
}), f = () => {
|
|
3223
3222
|
a.config.cancelRoute ? r.push(a.config.cancelRoute) : A();
|
|
3224
3223
|
}, A = () => {
|
|
@@ -3241,10 +3240,10 @@ const as = {
|
|
|
3241
3240
|
l.value = !1;
|
|
3242
3241
|
}
|
|
3243
3242
|
}), (p, S) => {
|
|
3244
|
-
const
|
|
3243
|
+
const v = P("KSkeleton"), q = P("KEmptyState"), _ = P("KAlert"), w = P("KButton"), N = P("KCard");
|
|
3245
3244
|
return m(), R(N, { class: "kong-ui-entity-base-form" }, {
|
|
3246
3245
|
default: y(() => [
|
|
3247
|
-
l.value ? (m(), R(
|
|
3246
|
+
l.value ? (m(), R(v, {
|
|
3248
3247
|
key: 0,
|
|
3249
3248
|
type: "form"
|
|
3250
3249
|
})) : u.value ? (m(), R(q, {
|
|
@@ -3255,7 +3254,7 @@ const as = {
|
|
|
3255
3254
|
"is-error": !0
|
|
3256
3255
|
}, {
|
|
3257
3256
|
message: y(() => [
|
|
3258
|
-
|
|
3257
|
+
K("h3", null, j(d.value), 1)
|
|
3259
3258
|
]),
|
|
3260
3259
|
_: 1
|
|
3261
3260
|
}, 8, ["cta-text"])) : (m(), T("form", {
|
|
@@ -3265,33 +3264,33 @@ const as = {
|
|
|
3265
3264
|
onSubmit: De(k, ["prevent"])
|
|
3266
3265
|
}, [
|
|
3267
3266
|
Y(p.$slots, "default", {}, void 0, !0),
|
|
3268
|
-
e.errorMessage ? (m(), R(
|
|
3267
|
+
e.errorMessage ? (m(), R(_, {
|
|
3269
3268
|
key: 0,
|
|
3270
3269
|
"alert-message": e.errorMessage,
|
|
3271
3270
|
appearance: "danger",
|
|
3272
3271
|
"data-testid": "form-error"
|
|
3273
3272
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3274
|
-
|
|
3273
|
+
K("div", xs, [
|
|
3275
3274
|
Y(p.$slots, "form-actions", {}, () => [
|
|
3276
|
-
|
|
3275
|
+
F(w, {
|
|
3277
3276
|
appearance: "secondary",
|
|
3278
3277
|
"data-testid": "form-cancel",
|
|
3279
3278
|
disabled: e.isReadonly,
|
|
3280
3279
|
type: "reset"
|
|
3281
3280
|
}, {
|
|
3282
3281
|
default: y(() => [
|
|
3283
|
-
W(
|
|
3282
|
+
W(j(g(o)("baseForm.actions.cancel")), 1)
|
|
3284
3283
|
]),
|
|
3285
3284
|
_: 1
|
|
3286
3285
|
}, 8, ["disabled"]),
|
|
3287
|
-
|
|
3286
|
+
F(w, {
|
|
3288
3287
|
appearance: "primary",
|
|
3289
3288
|
"data-testid": "form-submit",
|
|
3290
3289
|
disabled: c.value,
|
|
3291
3290
|
type: "submit"
|
|
3292
3291
|
}, {
|
|
3293
3292
|
default: y(() => [
|
|
3294
|
-
W(
|
|
3293
|
+
W(j(g(o)("baseForm.actions.save")), 1)
|
|
3295
3294
|
]),
|
|
3296
3295
|
_: 1
|
|
3297
3296
|
}, 8, ["disabled"])
|
|
@@ -3303,10 +3302,10 @@ const as = {
|
|
|
3303
3302
|
});
|
|
3304
3303
|
};
|
|
3305
3304
|
}
|
|
3306
|
-
}), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]),
|
|
3305
|
+
}), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]), js = {
|
|
3307
3306
|
key: 0,
|
|
3308
3307
|
"data-testid": "first-col"
|
|
3309
|
-
},
|
|
3308
|
+
}, Ms = /* @__PURE__ */ te({
|
|
3310
3309
|
__name: "EntityBaseTableCell",
|
|
3311
3310
|
props: {
|
|
3312
3311
|
keyName: {
|
|
@@ -3362,8 +3361,8 @@ const as = {
|
|
|
3362
3361
|
ref: l,
|
|
3363
3362
|
class: "content-wrapper"
|
|
3364
3363
|
}, [
|
|
3365
|
-
r.value ? (m(), T("span",
|
|
3366
|
-
|
|
3364
|
+
r.value ? (m(), T("span", js, [
|
|
3365
|
+
F(S, {
|
|
3367
3366
|
label: A.value ? c.value : "",
|
|
3368
3367
|
"max-width": "300",
|
|
3369
3368
|
placement: "bottomStart"
|
|
@@ -3377,10 +3376,10 @@ const as = {
|
|
|
3377
3376
|
], 512);
|
|
3378
3377
|
};
|
|
3379
3378
|
}
|
|
3380
|
-
}), Os = /* @__PURE__ */ me(
|
|
3379
|
+
}), Os = /* @__PURE__ */ me(Ms, [["__scopeId", "data-v-e42a20c9"]]), Es = { class: "toolbar-container" }, Fs = {
|
|
3381
3380
|
key: 0,
|
|
3382
3381
|
class: "toolbar-button-container"
|
|
3383
|
-
},
|
|
3382
|
+
}, Ks = ["data-testid"], Ns = /* @__PURE__ */ te({
|
|
3384
3383
|
__name: "EntityBaseTable",
|
|
3385
3384
|
props: {
|
|
3386
3385
|
// table header configuration
|
|
@@ -3491,42 +3490,42 @@ const as = {
|
|
|
3491
3490
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3492
3491
|
setup(e, { emit: n }) {
|
|
3493
3492
|
const t = e, { i18n: { t: a } } = re.useI18n(), r = $(() => {
|
|
3494
|
-
var
|
|
3493
|
+
var _, w;
|
|
3495
3494
|
return typeof t.errorMessage == "string" ? {
|
|
3496
3495
|
hasError: !!t.errorMessage,
|
|
3497
3496
|
title: t.errorMessage,
|
|
3498
3497
|
message: void 0
|
|
3499
3498
|
} : {
|
|
3500
3499
|
hasError: !!t.errorMessage,
|
|
3501
|
-
title: (
|
|
3500
|
+
title: (_ = t.errorMessage) == null ? void 0 : _.title,
|
|
3502
3501
|
message: (w = t.errorMessage) == null ? void 0 : w.message
|
|
3503
3502
|
};
|
|
3504
|
-
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (
|
|
3505
|
-
const
|
|
3503
|
+
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (_) => _.hasData || !!t.query, s = $(() => {
|
|
3504
|
+
const _ = [];
|
|
3506
3505
|
return Object.keys(t.tableHeaders).forEach((w) => {
|
|
3507
3506
|
const N = t.tableHeaders[w];
|
|
3508
|
-
|
|
3507
|
+
_.push({
|
|
3509
3508
|
label: N.label ?? w,
|
|
3510
3509
|
key: w,
|
|
3511
3510
|
sortable: N.sortable ?? !1
|
|
3512
3511
|
});
|
|
3513
|
-
}), t.enableEntityActions &&
|
|
3512
|
+
}), t.enableEntityActions && _.push({
|
|
3514
3513
|
key: "actions",
|
|
3515
3514
|
hideLabel: !0
|
|
3516
|
-
}),
|
|
3517
|
-
}), l = (
|
|
3518
|
-
"data-rowid":
|
|
3519
|
-
"data-testid":
|
|
3520
|
-
...t.rowAttributes(
|
|
3521
|
-
}), u = O({}), d = (
|
|
3515
|
+
}), _;
|
|
3516
|
+
}), l = (_) => ({
|
|
3517
|
+
"data-rowid": _.id,
|
|
3518
|
+
"data-testid": _.name,
|
|
3519
|
+
...t.rowAttributes(_)
|
|
3520
|
+
}), u = O({}), d = (_) => {
|
|
3522
3521
|
var w;
|
|
3523
|
-
return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${
|
|
3524
|
-
}, c = (
|
|
3522
|
+
return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${_.id}"]`);
|
|
3523
|
+
}, c = (_) => {
|
|
3525
3524
|
const w = {
|
|
3526
|
-
"data-testid":
|
|
3527
|
-
...t.cellAttributes(
|
|
3525
|
+
"data-testid": _.headerKey,
|
|
3526
|
+
...t.cellAttributes(_)
|
|
3528
3527
|
};
|
|
3529
|
-
return
|
|
3528
|
+
return _.colIndex === 0 && (w.style = {
|
|
3530
3529
|
maxWidth: "250px",
|
|
3531
3530
|
overflowX: "hidden",
|
|
3532
3531
|
textOverflow: "ellipsis"
|
|
@@ -3535,27 +3534,27 @@ const as = {
|
|
|
3535
3534
|
n("empty-state-cta-clicked"), f();
|
|
3536
3535
|
}, f = () => {
|
|
3537
3536
|
n("clear-search-input");
|
|
3538
|
-
}, A = $(() => t.disableRowClick ? void 0 : (
|
|
3537
|
+
}, A = $(() => t.disableRowClick ? void 0 : (_, w) => {
|
|
3539
3538
|
n("click:row", w);
|
|
3540
|
-
}), k = (
|
|
3541
|
-
n("sort",
|
|
3542
|
-
}, { setTablePreferences: p, getTablePreferences: S } = Ta(),
|
|
3543
|
-
const
|
|
3539
|
+
}), k = (_) => {
|
|
3540
|
+
n("sort", _);
|
|
3541
|
+
}, { setTablePreferences: p, getTablePreferences: S } = Ta(), v = $(() => {
|
|
3542
|
+
const _ = S(t.preferencesStorageKey);
|
|
3544
3543
|
return {
|
|
3545
3544
|
...t.initialFetcherParams,
|
|
3546
|
-
...
|
|
3545
|
+
..._
|
|
3547
3546
|
};
|
|
3548
|
-
}), q = (
|
|
3549
|
-
t.preferencesStorageKey && p(t.preferencesStorageKey,
|
|
3547
|
+
}), q = (_) => {
|
|
3548
|
+
t.preferencesStorageKey && p(t.preferencesStorageKey, _);
|
|
3550
3549
|
};
|
|
3551
|
-
return (
|
|
3550
|
+
return (_, w) => {
|
|
3552
3551
|
const N = P("KIcon"), U = P("KButton"), b = P("KDropdown"), C = P("KTable"), V = P("KCard");
|
|
3553
3552
|
return m(), R(V, {
|
|
3554
3553
|
class: "kong-ui-entity-base-table",
|
|
3555
3554
|
title: e.title
|
|
3556
3555
|
}, {
|
|
3557
3556
|
default: y(() => [
|
|
3558
|
-
|
|
3557
|
+
F(C, {
|
|
3559
3558
|
ref_key: "tableRefs",
|
|
3560
3559
|
ref: u,
|
|
3561
3560
|
"cache-identifier": o.value,
|
|
@@ -3577,7 +3576,7 @@ const as = {
|
|
|
3577
3576
|
"has-error": r.value.hasError,
|
|
3578
3577
|
headers: s.value,
|
|
3579
3578
|
"hide-pagination-when-optional": "",
|
|
3580
|
-
"initial-fetcher-params":
|
|
3579
|
+
"initial-fetcher-params": v.value,
|
|
3581
3580
|
"is-loading": e.isLoading,
|
|
3582
3581
|
"pagination-type": e.paginationType,
|
|
3583
3582
|
"row-attrs": l,
|
|
@@ -3588,39 +3587,39 @@ const as = {
|
|
|
3588
3587
|
"onUpdate:tablePreferences": q
|
|
3589
3588
|
}, ke({
|
|
3590
3589
|
toolbar: y(({ state: B }) => [
|
|
3591
|
-
Be(
|
|
3592
|
-
Y(
|
|
3593
|
-
|
|
3594
|
-
Y(
|
|
3590
|
+
Be(K("div", Es, [
|
|
3591
|
+
Y(_.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3592
|
+
_.$slots["toolbar-button"] ? (m(), T("div", Fs, [
|
|
3593
|
+
Y(_.$slots, "toolbar-button", {}, void 0, !0)
|
|
3595
3594
|
])) : G("", !0)
|
|
3596
3595
|
], 512), [
|
|
3597
3596
|
[qe, i(B)]
|
|
3598
3597
|
])
|
|
3599
3598
|
]),
|
|
3600
|
-
actions: y(({ row: B, rowKey:
|
|
3601
|
-
|
|
3599
|
+
actions: y(({ row: B, rowKey: I, rowValue: E }) => [
|
|
3600
|
+
K("div", {
|
|
3602
3601
|
class: "actions-container",
|
|
3603
3602
|
"data-testid": B.name
|
|
3604
3603
|
}, [
|
|
3605
|
-
|
|
3604
|
+
F(b, {
|
|
3606
3605
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3607
3606
|
width: e.dropdownMenuWidth
|
|
3608
3607
|
}, {
|
|
3609
3608
|
items: y(() => [
|
|
3610
|
-
Y(
|
|
3609
|
+
Y(_.$slots, "actions", {
|
|
3611
3610
|
row: B,
|
|
3612
|
-
rowKey:
|
|
3611
|
+
rowKey: I,
|
|
3613
3612
|
rowValue: E
|
|
3614
3613
|
}, void 0, !0)
|
|
3615
3614
|
]),
|
|
3616
3615
|
default: y(() => [
|
|
3617
|
-
|
|
3616
|
+
F(U, {
|
|
3618
3617
|
class: "actions-trigger",
|
|
3619
3618
|
"data-testid": "overflow-actions-button",
|
|
3620
3619
|
size: "small"
|
|
3621
3620
|
}, {
|
|
3622
3621
|
icon: y(() => [
|
|
3623
|
-
|
|
3622
|
+
F(N, {
|
|
3624
3623
|
color: g(Cr),
|
|
3625
3624
|
icon: "more",
|
|
3626
3625
|
size: "16"
|
|
@@ -3631,24 +3630,24 @@ const as = {
|
|
|
3631
3630
|
]),
|
|
3632
3631
|
_: 2
|
|
3633
3632
|
}, 1032, ["width"])
|
|
3634
|
-
], 8,
|
|
3633
|
+
], 8, Ks)
|
|
3635
3634
|
]),
|
|
3636
3635
|
_: 2
|
|
3637
3636
|
}, [
|
|
3638
|
-
de(e.tableHeaders, (B,
|
|
3639
|
-
name:
|
|
3637
|
+
de(e.tableHeaders, (B, I) => ({
|
|
3638
|
+
name: I,
|
|
3640
3639
|
fn: y(({ row: E, rowKey: L, rowValue: D }) => [
|
|
3641
|
-
|
|
3642
|
-
"key-name": String(
|
|
3640
|
+
F(Os, {
|
|
3641
|
+
"key-name": String(I),
|
|
3643
3642
|
"row-el": d(E)
|
|
3644
3643
|
}, {
|
|
3645
3644
|
default: y(() => [
|
|
3646
|
-
Y(
|
|
3645
|
+
Y(_.$slots, I, {
|
|
3647
3646
|
row: E,
|
|
3648
3647
|
rowKey: L,
|
|
3649
3648
|
rowValue: D
|
|
3650
3649
|
}, () => [
|
|
3651
|
-
W(
|
|
3650
|
+
W(j(D), 1)
|
|
3652
3651
|
], !0)
|
|
3653
3652
|
]),
|
|
3654
3653
|
_: 2
|
|
@@ -3726,34 +3725,34 @@ const as = {
|
|
|
3726
3725
|
}, {
|
|
3727
3726
|
"body-content": y(() => [
|
|
3728
3727
|
e.error ? (m(), T("div", qs, [
|
|
3729
|
-
|
|
3728
|
+
F(u, { appearance: "danger" }, {
|
|
3730
3729
|
alertMessage: y(() => [
|
|
3731
|
-
W(
|
|
3730
|
+
W(j(e.error), 1)
|
|
3732
3731
|
]),
|
|
3733
3732
|
_: 1
|
|
3734
3733
|
})
|
|
3735
3734
|
])) : G("", !0),
|
|
3736
|
-
|
|
3735
|
+
F(g(a), {
|
|
3737
3736
|
class: "message",
|
|
3738
3737
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3739
3738
|
tag: "p"
|
|
3740
3739
|
}, ke({
|
|
3741
3740
|
entityType: y(() => [
|
|
3742
|
-
W(
|
|
3741
|
+
W(j(t.entityType), 1)
|
|
3743
3742
|
]),
|
|
3744
3743
|
_: 2
|
|
3745
3744
|
}, [
|
|
3746
3745
|
t.entityName ? {
|
|
3747
3746
|
name: "entityName",
|
|
3748
3747
|
fn: y(() => [
|
|
3749
|
-
|
|
3748
|
+
K("strong", null, j(t.entityName), 1)
|
|
3750
3749
|
]),
|
|
3751
3750
|
key: "0"
|
|
3752
3751
|
} : void 0
|
|
3753
3752
|
]), 1032, ["keypath"]),
|
|
3754
3753
|
t.description || s.$slots.description ? (m(), T("div", Ls, [
|
|
3755
3754
|
Y(s.$slots, "description", {}, () => [
|
|
3756
|
-
|
|
3755
|
+
K("p", null, j(t.description), 1)
|
|
3757
3756
|
], !0)
|
|
3758
3757
|
])) : G("", !0)
|
|
3759
3758
|
]),
|
|
@@ -3785,15 +3784,15 @@ const as = {
|
|
|
3785
3784
|
},
|
|
3786
3785
|
setup(e) {
|
|
3787
3786
|
return (n, t) => (m(), T("svg", Rs, [
|
|
3788
|
-
|
|
3789
|
-
|
|
3787
|
+
K("mask", Us, [
|
|
3788
|
+
K("rect", {
|
|
3790
3789
|
fill: e.color,
|
|
3791
3790
|
height: "20",
|
|
3792
3791
|
width: "20"
|
|
3793
3792
|
}, null, 8, Ds)
|
|
3794
3793
|
]),
|
|
3795
|
-
|
|
3796
|
-
|
|
3794
|
+
K("g", Gs, [
|
|
3795
|
+
K("path", {
|
|
3797
3796
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3798
3797
|
fill: e.color
|
|
3799
3798
|
}, null, 8, Hs)
|
|
@@ -3825,8 +3824,8 @@ const as = {
|
|
|
3825
3824
|
setup(e, { emit: n }) {
|
|
3826
3825
|
const t = e, { i18n: { t: a } } = re.useI18n(), r = O(!1), o = O({}), i = $(() => {
|
|
3827
3826
|
const p = [];
|
|
3828
|
-
return new URLSearchParams(t.modelValue).forEach((S,
|
|
3829
|
-
S !== "" && p.push(
|
|
3827
|
+
return new URLSearchParams(t.modelValue).forEach((S, v) => {
|
|
3828
|
+
S !== "" && p.push(v);
|
|
3830
3829
|
}), p;
|
|
3831
3830
|
}), s = $(() => {
|
|
3832
3831
|
const p = t.config.fields;
|
|
@@ -3836,8 +3835,8 @@ const as = {
|
|
|
3836
3835
|
}));
|
|
3837
3836
|
});
|
|
3838
3837
|
he(() => t.modelValue, (p) => {
|
|
3839
|
-
o.value = {}, new URLSearchParams(p).forEach((S,
|
|
3840
|
-
o.value[
|
|
3838
|
+
o.value = {}, new URLSearchParams(p).forEach((S, v) => {
|
|
3839
|
+
o.value[v] = S;
|
|
3841
3840
|
});
|
|
3842
3841
|
});
|
|
3843
3842
|
const l = () => {
|
|
@@ -3845,14 +3844,14 @@ const as = {
|
|
|
3845
3844
|
}, u = (p) => {
|
|
3846
3845
|
n("update:modelValue", p);
|
|
3847
3846
|
}, d = (p) => `filter-${p}`, c = (p) => {
|
|
3848
|
-
var S,
|
|
3849
|
-
return (((
|
|
3847
|
+
var S, v;
|
|
3848
|
+
return (((v = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : v.values) ?? []).map((q) => ({
|
|
3850
3849
|
value: q,
|
|
3851
3850
|
label: q
|
|
3852
3851
|
}));
|
|
3853
3852
|
}, h = (p) => {
|
|
3854
|
-
var S,
|
|
3855
|
-
return ((
|
|
3853
|
+
var S, v;
|
|
3854
|
+
return ((v = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : v.type) ?? "text";
|
|
3856
3855
|
}, f = (p) => {
|
|
3857
3856
|
o.value = {
|
|
3858
3857
|
...o.value,
|
|
@@ -3861,12 +3860,12 @@ const as = {
|
|
|
3861
3860
|
}, A = () => {
|
|
3862
3861
|
o.value = {}, k(!0);
|
|
3863
3862
|
}, k = (p = !1) => {
|
|
3864
|
-
const S = Object.keys(o.value).reduce((
|
|
3863
|
+
const S = Object.keys(o.value).reduce((v, q) => (o.value[q] && (v[q] = `${o.value[q]}`), v), {});
|
|
3865
3864
|
p && (r.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3866
3865
|
};
|
|
3867
3866
|
return (p, S) => {
|
|
3868
|
-
const
|
|
3869
|
-
return e.config.isExactMatch ? (m(), R(
|
|
3867
|
+
const v = P("KInput"), q = P("KButton"), _ = P("KSelect"), w = P("KMenuItem"), N = P("KMenu");
|
|
3868
|
+
return e.config.isExactMatch ? (m(), R(v, {
|
|
3870
3869
|
key: 0,
|
|
3871
3870
|
autocomplete: "off",
|
|
3872
3871
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3876,28 +3875,28 @@ const as = {
|
|
|
3876
3875
|
"onUpdate:modelValue": u
|
|
3877
3876
|
}, {
|
|
3878
3877
|
before: y(() => [
|
|
3879
|
-
|
|
3878
|
+
F(ln)
|
|
3880
3879
|
]),
|
|
3881
3880
|
_: 1
|
|
3882
3881
|
}, 8, ["model-value", "placeholder"])) : (m(), T("div", zs, [
|
|
3883
|
-
|
|
3882
|
+
F(q, {
|
|
3884
3883
|
appearance: "tertiary",
|
|
3885
3884
|
"data-testid": "filter-button",
|
|
3886
3885
|
onClick: l
|
|
3887
3886
|
}, {
|
|
3888
3887
|
default: y(() => [
|
|
3889
|
-
|
|
3890
|
-
W(" " +
|
|
3888
|
+
F(ln),
|
|
3889
|
+
W(" " + j(g(a)("filter.filterButtonText")) + " " + j(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3891
3890
|
]),
|
|
3892
3891
|
_: 1
|
|
3893
3892
|
}),
|
|
3894
|
-
Be(
|
|
3893
|
+
Be(K("div", {
|
|
3895
3894
|
class: "kong-ui-entity-filter-backdrop",
|
|
3896
3895
|
onClick: l
|
|
3897
3896
|
}, null, 512), [
|
|
3898
3897
|
[qe, r.value]
|
|
3899
3898
|
]),
|
|
3900
|
-
Be(
|
|
3899
|
+
Be(F(N, { class: "kong-ui-entity-filter-menu" }, {
|
|
3901
3900
|
body: y(() => [
|
|
3902
3901
|
(m(!0), T(fe, null, de(s.value, (U, b) => (m(), R(w, {
|
|
3903
3902
|
key: U.value,
|
|
@@ -3906,9 +3905,9 @@ const as = {
|
|
|
3906
3905
|
"last-menu-item": b === s.value.length - 1
|
|
3907
3906
|
}, {
|
|
3908
3907
|
itemTitle: y(() => [
|
|
3909
|
-
|
|
3910
|
-
W(
|
|
3911
|
-
Be(
|
|
3908
|
+
K("span", Js, [
|
|
3909
|
+
W(j(U.label) + " ", 1),
|
|
3910
|
+
Be(K("span", Ys, null, 512), [
|
|
3912
3911
|
[qe, i.value.includes(U.value)]
|
|
3913
3912
|
])
|
|
3914
3913
|
])
|
|
@@ -3916,12 +3915,12 @@ const as = {
|
|
|
3916
3915
|
itemBody: y(() => {
|
|
3917
3916
|
var C, V;
|
|
3918
3917
|
return [
|
|
3919
|
-
|
|
3920
|
-
|
|
3918
|
+
K("div", Ws, [
|
|
3919
|
+
K("label", {
|
|
3921
3920
|
class: "menu-item-label",
|
|
3922
3921
|
for: d(U.value)
|
|
3923
|
-
},
|
|
3924
|
-
((V = (C = e.config.schema) == null ? void 0 : C[U.value]) == null ? void 0 : V.type) === "select" ? (m(), R(
|
|
3922
|
+
}, j(g(a)("filter.fieldLabel")), 9, Zs),
|
|
3923
|
+
((V = (C = e.config.schema) == null ? void 0 : C[U.value]) == null ? void 0 : V.type) === "select" ? (m(), R(_, {
|
|
3925
3924
|
key: 0,
|
|
3926
3925
|
id: d(U.value),
|
|
3927
3926
|
modelValue: o.value[U.value],
|
|
@@ -3929,7 +3928,7 @@ const as = {
|
|
|
3929
3928
|
appearance: "select",
|
|
3930
3929
|
items: c(U.value),
|
|
3931
3930
|
placeholder: g(a)("filter.selectPlaceholder")
|
|
3932
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(
|
|
3931
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(v, {
|
|
3933
3932
|
key: 1,
|
|
3934
3933
|
id: d(U.value),
|
|
3935
3934
|
modelValue: o.value[U.value],
|
|
@@ -3939,26 +3938,26 @@ const as = {
|
|
|
3939
3938
|
type: h(U.value)
|
|
3940
3939
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3941
3940
|
]),
|
|
3942
|
-
|
|
3943
|
-
|
|
3941
|
+
K("div", Qs, [
|
|
3942
|
+
F(q, {
|
|
3944
3943
|
appearance: "tertiary",
|
|
3945
3944
|
"data-testid": "apply-filter",
|
|
3946
3945
|
size: "small",
|
|
3947
3946
|
onClick: S[0] || (S[0] = (B) => k(!0))
|
|
3948
3947
|
}, {
|
|
3949
3948
|
default: y(() => [
|
|
3950
|
-
W(
|
|
3949
|
+
W(j(g(a)("filter.applyButtonText")), 1)
|
|
3951
3950
|
]),
|
|
3952
3951
|
_: 1
|
|
3953
3952
|
}),
|
|
3954
|
-
|
|
3953
|
+
F(q, {
|
|
3955
3954
|
appearance: "tertiary",
|
|
3956
3955
|
"data-testid": "clear-filter",
|
|
3957
3956
|
size: "small",
|
|
3958
3957
|
onClick: (B) => f(U.value)
|
|
3959
3958
|
}, {
|
|
3960
3959
|
default: y(() => [
|
|
3961
|
-
W(
|
|
3960
|
+
W(j(g(a)("filter.clearButtonText")), 1)
|
|
3962
3961
|
]),
|
|
3963
3962
|
_: 2
|
|
3964
3963
|
}, 1032, ["onClick"])
|
|
@@ -3969,14 +3968,14 @@ const as = {
|
|
|
3969
3968
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3970
3969
|
]),
|
|
3971
3970
|
actionButton: y(() => [
|
|
3972
|
-
|
|
3973
|
-
|
|
3971
|
+
K("div", Xs, [
|
|
3972
|
+
F(q, {
|
|
3974
3973
|
appearance: "tertiary",
|
|
3975
3974
|
size: "small",
|
|
3976
3975
|
onClick: A
|
|
3977
3976
|
}, {
|
|
3978
3977
|
default: y(() => [
|
|
3979
|
-
W(
|
|
3978
|
+
W(j(g(a)("filter.clearAllButtonText")), 1)
|
|
3980
3979
|
]),
|
|
3981
3980
|
_: 1
|
|
3982
3981
|
})
|
|
@@ -4057,28 +4056,28 @@ const as = {
|
|
|
4057
4056
|
return (t, a) => (m(), T("fieldset", {
|
|
4058
4057
|
class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4059
4058
|
}, [
|
|
4060
|
-
|
|
4059
|
+
K("div", nl, [
|
|
4061
4060
|
e.hideInfoHeader ? G("", !0) : (m(), T("div", {
|
|
4062
4061
|
key: 0,
|
|
4063
4062
|
class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4064
4063
|
}, [
|
|
4065
|
-
e.title ? (m(), T("h4", al,
|
|
4064
|
+
e.title ? (m(), T("h4", al, j(e.title), 1)) : G("", !0),
|
|
4066
4065
|
e.description || g(n).description ? (m(), T("div", rl, [
|
|
4067
4066
|
Y(t.$slots, "description", {}, () => [
|
|
4068
|
-
|
|
4067
|
+
K("p", null, j(e.description), 1)
|
|
4069
4068
|
], !0)
|
|
4070
4069
|
])) : G("", !0),
|
|
4071
4070
|
g(n).footer ? (m(), T("div", ol, [
|
|
4072
4071
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
4073
4072
|
])) : G("", !0)
|
|
4074
4073
|
], 2)),
|
|
4075
|
-
|
|
4074
|
+
K("div", il, [
|
|
4076
4075
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
4077
4076
|
])
|
|
4078
4077
|
])
|
|
4079
4078
|
], 2));
|
|
4080
4079
|
}
|
|
4081
|
-
}), ll = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator:
|
|
4080
|
+
}), ll = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator: Fl, useFetchUrlBuilder: Kl, useFetcher: dl, useDebouncedFilter: pl, useStringHelpers: Nl, useHelpers: Bl, useGatewayFeatureSupported: ql, useTruncationDetector: Ll } = re, fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer-form-cta" }, gl = { class: "select-item-label" }, yl = {
|
|
4082
4081
|
key: 0,
|
|
4083
4082
|
class: "select-item-desc"
|
|
4084
4083
|
}, hl = {
|
|
@@ -4119,26 +4118,26 @@ const as = {
|
|
|
4119
4118
|
fetchedItemsKey: "data",
|
|
4120
4119
|
searchKeys: ["username", "id"]
|
|
4121
4120
|
}
|
|
4122
|
-
), h = (
|
|
4123
|
-
label:
|
|
4124
|
-
value:
|
|
4125
|
-
selected: o.value.includes(
|
|
4126
|
-
data:
|
|
4121
|
+
), h = (I) => I, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), k = $(() => l.value === void 0), p = $(() => c.value.map((I) => ({
|
|
4122
|
+
label: I.username || I.customId,
|
|
4123
|
+
value: I.id,
|
|
4124
|
+
selected: o.value.includes(I.id),
|
|
4125
|
+
data: I
|
|
4127
4126
|
// we need this to determine whether or not to show the description text
|
|
4128
|
-
}))), S = (
|
|
4127
|
+
}))), S = (I) => {
|
|
4129
4128
|
var L;
|
|
4130
|
-
const E = k.value ? c.value.find((D) => D.id ===
|
|
4131
|
-
return E ? E.username || E.custom_id :
|
|
4132
|
-
},
|
|
4129
|
+
const E = k.value ? c.value.find((D) => D.id === I) : (L = l.value) == null ? void 0 : L.find((D) => D.id === I);
|
|
4130
|
+
return E ? E.username || E.custom_id : I;
|
|
4131
|
+
}, v = () => {
|
|
4133
4132
|
w.value = "", q.value = [], C.value = [], n("cancel");
|
|
4134
|
-
}, q = O([]),
|
|
4133
|
+
}, q = O([]), _ = O(!1), w = O(""), N = async () => {
|
|
4135
4134
|
if (!o.value.length) {
|
|
4136
4135
|
w.value = "", C.value = [], n("cancel");
|
|
4137
4136
|
return;
|
|
4138
4137
|
}
|
|
4139
|
-
|
|
4138
|
+
_.value = !0, w.value = "", q.value = [], C.value = [];
|
|
4140
4139
|
try {
|
|
4141
|
-
const
|
|
4140
|
+
const I = o.value.map((D) => b(D)), E = await Promise.allSettled(I);
|
|
4142
4141
|
let L = !0;
|
|
4143
4142
|
E.forEach((D) => {
|
|
4144
4143
|
D.status !== "fulfilled" && (L = !1);
|
|
@@ -4146,25 +4145,25 @@ const as = {
|
|
|
4146
4145
|
} catch {
|
|
4147
4146
|
w.value = a("consumers.errors.add"), n("error", w.value);
|
|
4148
4147
|
} finally {
|
|
4149
|
-
|
|
4148
|
+
_.value = !1;
|
|
4150
4149
|
}
|
|
4151
4150
|
}, U = $(() => {
|
|
4152
4151
|
var E, L, D, Z;
|
|
4153
|
-
let
|
|
4154
|
-
return t.config.app === "konnect" ?
|
|
4155
|
-
}), b = async (
|
|
4152
|
+
let I = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
|
|
4153
|
+
return t.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), I;
|
|
4154
|
+
}), b = async (I) => {
|
|
4156
4155
|
const E = {
|
|
4157
|
-
consumer:
|
|
4156
|
+
consumer: I
|
|
4158
4157
|
};
|
|
4159
4158
|
try {
|
|
4160
4159
|
const L = await r.post(U.value, E);
|
|
4161
|
-
return q.value.push(
|
|
4160
|
+
return q.value.push(I), L;
|
|
4162
4161
|
} catch (L) {
|
|
4163
|
-
let D = `${S(
|
|
4164
|
-
return L.response.status === 409 && (D = `${S(
|
|
4162
|
+
let D = `${S(I)} - ${L.message}`;
|
|
4163
|
+
return L.response.status === 409 && (D = `${S(I)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(D));
|
|
4165
4164
|
}
|
|
4166
|
-
}, C = O([]), V = (
|
|
4167
|
-
C.value =
|
|
4165
|
+
}, C = O([]), V = (I) => {
|
|
4166
|
+
C.value = I.map((E) => {
|
|
4168
4167
|
var L;
|
|
4169
4168
|
return (L = E.reason) == null ? void 0 : L.message;
|
|
4170
4169
|
}).filter(Boolean);
|
|
@@ -4173,21 +4172,21 @@ const as = {
|
|
|
4173
4172
|
A.value++;
|
|
4174
4173
|
}, { immediate: !0, deep: !0 }), he(() => t.visible, () => {
|
|
4175
4174
|
t.visible && d();
|
|
4176
|
-
}, { immediate: !0 }), (
|
|
4175
|
+
}, { immediate: !0 }), (I, E) => {
|
|
4177
4176
|
const L = P("KMultiselect"), D = P("KAlert"), Z = P("KPrompt");
|
|
4178
4177
|
return m(), R(Z, {
|
|
4179
|
-
"action-pending":
|
|
4178
|
+
"action-pending": _.value,
|
|
4180
4179
|
class: "kong-ui-entities-add-consumers-modal",
|
|
4181
4180
|
"data-testid": "add-consumer-modal",
|
|
4182
4181
|
"is-visible": e.visible,
|
|
4183
4182
|
title: g(a)("consumers.consumer_groups.add.title"),
|
|
4184
|
-
onCanceled:
|
|
4183
|
+
onCanceled: v,
|
|
4185
4184
|
onProceed: N
|
|
4186
4185
|
}, {
|
|
4187
4186
|
"body-content": y(() => [
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4187
|
+
K("div", fl, [
|
|
4188
|
+
K("p", ml, j(g(a)("consumers.consumer_groups.add.ctaText")), 1),
|
|
4189
|
+
F(L, {
|
|
4191
4190
|
modelValue: o.value,
|
|
4192
4191
|
"onUpdate:modelValue": E[0] || (E[0] = (z) => o.value = z),
|
|
4193
4192
|
autosuggest: "",
|
|
@@ -4197,25 +4196,25 @@ const as = {
|
|
|
4197
4196
|
label: g(a)("consumers.consumer_groups.add.consumers_label"),
|
|
4198
4197
|
loading: g(s),
|
|
4199
4198
|
placeholder: g(a)("consumers.consumer_groups.add.consumer_placeholder"),
|
|
4200
|
-
readonly:
|
|
4199
|
+
readonly: _.value,
|
|
4201
4200
|
required: "",
|
|
4202
4201
|
width: "100%",
|
|
4203
4202
|
onQueryChange: g(i)
|
|
4204
4203
|
}, {
|
|
4205
4204
|
"item-template": y(({ item: z }) => [
|
|
4206
|
-
|
|
4207
|
-
h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl,
|
|
4205
|
+
K("div", gl, j(z.label), 1),
|
|
4206
|
+
h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl, j(h(z).data.custom_id), 1)) : G("", !0)
|
|
4208
4207
|
]),
|
|
4209
4208
|
_: 1
|
|
4210
4209
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4211
4210
|
w.value || f.value || C.value.length ? (m(), T("div", hl, [
|
|
4212
|
-
|
|
4211
|
+
F(D, { appearance: "danger" }, {
|
|
4213
4212
|
alertMessage: y(() => [
|
|
4214
|
-
|
|
4213
|
+
K("p", null, j(g(a)("consumers.errors.add")), 1),
|
|
4215
4214
|
C.value.length ? (m(), T("ul", vl, [
|
|
4216
|
-
(m(!0), T(fe, null, de(C.value, (z, Q) => (m(), T("li", { key: Q },
|
|
4215
|
+
(m(!0), T(fe, null, de(C.value, (z, Q) => (m(), T("li", { key: Q }, j(z), 1))), 128))
|
|
4217
4216
|
])) : G("", !0),
|
|
4218
|
-
|
|
4217
|
+
K("div", null, j(w.value || f.value), 1)
|
|
4219
4218
|
]),
|
|
4220
4219
|
_: 1
|
|
4221
4220
|
})
|
|
@@ -4277,9 +4276,9 @@ const as = {
|
|
|
4277
4276
|
},
|
|
4278
4277
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4279
4278
|
setup(e, { emit: n }) {
|
|
4280
|
-
var
|
|
4279
|
+
var Ft;
|
|
4281
4280
|
const t = e, { i18nT: a, i18n: { t: r } } = Ze.useI18n(), o = gt(), { axiosInstance: i } = St({
|
|
4282
|
-
headers: (
|
|
4281
|
+
headers: (Ft = t.config) == null ? void 0 : Ft.requestHeaders
|
|
4283
4282
|
}), s = O(1), l = $(() => !!t.config.consumerGroupId), u = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4284
4283
|
username: { label: r("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
|
|
4285
4284
|
custom_id: { label: r("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
|
|
@@ -4303,9 +4302,9 @@ const as = {
|
|
|
4303
4302
|
},
|
|
4304
4303
|
schema: t.config.filterSchema
|
|
4305
4304
|
};
|
|
4306
|
-
}), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState:
|
|
4305
|
+
}), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState: v } = dl(t.config, f.value, p.value), q = () => {
|
|
4307
4306
|
A.value = "";
|
|
4308
|
-
},
|
|
4307
|
+
}, _ = () => {
|
|
4309
4308
|
s.value++;
|
|
4310
4309
|
}, w = (x) => x ?? "-", N = O(null), U = (x, H) => {
|
|
4311
4310
|
const ee = x.id;
|
|
@@ -4344,16 +4343,16 @@ const as = {
|
|
|
4344
4343
|
}), B = (x) => ({
|
|
4345
4344
|
label: r("consumers.actions.edit"),
|
|
4346
4345
|
to: t.config.getEditRoute(x)
|
|
4347
|
-
}),
|
|
4348
|
-
|
|
4346
|
+
}), I = O(void 0), E = O(!1), L = O(!1), D = O(""), Z = ul(t.config, f.value), z = (x) => {
|
|
4347
|
+
I.value = x, E.value = !0;
|
|
4349
4348
|
}, Q = () => {
|
|
4350
4349
|
E.value = !1;
|
|
4351
4350
|
}, le = async () => {
|
|
4352
4351
|
var x, H, ee;
|
|
4353
|
-
if ((x =
|
|
4352
|
+
if ((x = I.value) != null && x.id) {
|
|
4354
4353
|
L.value = !0;
|
|
4355
4354
|
try {
|
|
4356
|
-
await i.delete(Z(
|
|
4355
|
+
await i.delete(Z(I.value.id)), L.value = !1, E.value = !1, s.value++, n("delete:success", I.value);
|
|
4357
4356
|
} catch (ue) {
|
|
4358
4357
|
D.value = ((ee = (H = ue.response) == null ? void 0 : H.data) == null ? void 0 : ee.message) || ue.message || r("consumers.errors.delete"), n("error", ue);
|
|
4359
4358
|
} finally {
|
|
@@ -4364,13 +4363,13 @@ const as = {
|
|
|
4364
4363
|
Xe.value = !0;
|
|
4365
4364
|
}, $t = () => {
|
|
4366
4365
|
Xe.value = !1;
|
|
4367
|
-
},
|
|
4366
|
+
}, jt = (x, H) => {
|
|
4368
4367
|
H || $t(), s.value++, n("add:success", x);
|
|
4369
4368
|
}, sa = () => {
|
|
4370
4369
|
l.value && Tt();
|
|
4371
4370
|
}, ve = O(void 0), et = O(!1), la = O(""), ua = (x) => {
|
|
4372
4371
|
ve.value = x, et.value = !0;
|
|
4373
|
-
},
|
|
4372
|
+
}, Mt = () => {
|
|
4374
4373
|
et.value = !1, ve.value = void 0;
|
|
4375
4374
|
}, ca = $(() => {
|
|
4376
4375
|
var H, ee, ue, ge;
|
|
@@ -4381,7 +4380,7 @@ const as = {
|
|
|
4381
4380
|
Ot.value = !0;
|
|
4382
4381
|
try {
|
|
4383
4382
|
const x = ca.value.replace(/{consumerId}/gi, ve.value.id);
|
|
4384
|
-
await i.delete(x), n("remove:success", ve.value),
|
|
4383
|
+
await i.delete(x), n("remove:success", ve.value), Mt(), s.value++;
|
|
4385
4384
|
} catch (x) {
|
|
4386
4385
|
la.value = x.message || r("consumers.errors.delete"), n("error", x);
|
|
4387
4386
|
} finally {
|
|
@@ -4389,7 +4388,7 @@ const as = {
|
|
|
4389
4388
|
}
|
|
4390
4389
|
}
|
|
4391
4390
|
}, Et = O(!0);
|
|
4392
|
-
he(
|
|
4391
|
+
he(v, (x) => {
|
|
4393
4392
|
var H, ee, ue, ge;
|
|
4394
4393
|
if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Et.value = x.response.data.length > 0), x.status === Ie.Error) {
|
|
4395
4394
|
N.value = {
|
|
@@ -4408,9 +4407,9 @@ const as = {
|
|
|
4408
4407
|
return mt(async () => {
|
|
4409
4408
|
await t.canCreate() && (tt.value.title = l.value ? r("consumers.list.empty_state.title_for_consumer_group") : r("consumers.list.empty_state.title"), tt.value.ctaText = l.value ? r("consumers.actions.add_consumer") : r("consumers.actions.create"));
|
|
4410
4409
|
}), (x, H) => {
|
|
4411
|
-
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"),
|
|
4410
|
+
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"), Ke = P("KDropdownItem"), Kt = P("KClipboardProvider"), pa = P("KPrompt");
|
|
4412
4411
|
return m(), T("div", Cl, [
|
|
4413
|
-
|
|
4412
|
+
F(g(Bs), {
|
|
4414
4413
|
"cache-identifier": e.cacheIdentifier,
|
|
4415
4414
|
"disable-pagination": l.value,
|
|
4416
4415
|
"disable-pagination-page-jump": "",
|
|
@@ -4429,7 +4428,7 @@ const as = {
|
|
|
4429
4428
|
onClearSearchInput: q,
|
|
4430
4429
|
"onClick:row": H[3] || (H[3] = (J) => C(J)),
|
|
4431
4430
|
onEmptyStateCtaClicked: sa,
|
|
4432
|
-
onSort:
|
|
4431
|
+
onSort: _
|
|
4433
4432
|
}, {
|
|
4434
4433
|
"toolbar-filter": y(() => [
|
|
4435
4434
|
l.value ? G("", !0) : (m(), R(g(tl), {
|
|
@@ -4444,11 +4443,11 @@ const as = {
|
|
|
4444
4443
|
disabled: !e.useActionOutside,
|
|
4445
4444
|
to: "#kong-ui-app-page-header-action-button"
|
|
4446
4445
|
}, [
|
|
4447
|
-
|
|
4446
|
+
F(g(Ue), {
|
|
4448
4447
|
"auth-function": () => e.canCreate()
|
|
4449
4448
|
}, {
|
|
4450
4449
|
default: y(() => [
|
|
4451
|
-
Be(
|
|
4450
|
+
Be(F(ee, {
|
|
4452
4451
|
appearance: "primary",
|
|
4453
4452
|
"data-testid": "toolbar-add-consumer",
|
|
4454
4453
|
icon: "plus",
|
|
@@ -4456,7 +4455,7 @@ const as = {
|
|
|
4456
4455
|
onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
|
|
4457
4456
|
}, {
|
|
4458
4457
|
default: y(() => [
|
|
4459
|
-
W(
|
|
4458
|
+
W(j(e.config.consumerGroupId ? g(r)("consumers.actions.add_consumer") : g(r)("consumers.list.toolbar_actions.new_consumer")), 1)
|
|
4460
4459
|
]),
|
|
4461
4460
|
_: 1
|
|
4462
4461
|
}, 8, ["to"]), [
|
|
@@ -4468,10 +4467,10 @@ const as = {
|
|
|
4468
4467
|
], 8, ["disabled"]))
|
|
4469
4468
|
]),
|
|
4470
4469
|
username: y(({ rowValue: J }) => [
|
|
4471
|
-
|
|
4470
|
+
K("b", null, j(w(J)), 1)
|
|
4472
4471
|
]),
|
|
4473
4472
|
custom_id: y(({ rowValue: J }) => [
|
|
4474
|
-
W(
|
|
4473
|
+
W(j(w(J)), 1)
|
|
4475
4474
|
]),
|
|
4476
4475
|
tags: y(({ rowValue: J }) => [
|
|
4477
4476
|
J && J.length > 0 ? (m(), R(ge, { key: 0 }, {
|
|
@@ -4482,7 +4481,7 @@ const as = {
|
|
|
4482
4481
|
}, ["stop"]))
|
|
4483
4482
|
}, {
|
|
4484
4483
|
default: y(() => [
|
|
4485
|
-
W(
|
|
4484
|
+
W(j(xe), 1)
|
|
4486
4485
|
]),
|
|
4487
4486
|
_: 2
|
|
4488
4487
|
}, 1024))), 128))
|
|
@@ -4491,39 +4490,39 @@ const as = {
|
|
|
4491
4490
|
}, 1024)) : (m(), T("span", wl, "-"))
|
|
4492
4491
|
]),
|
|
4493
4492
|
actions: y(({ row: J }) => [
|
|
4494
|
-
|
|
4493
|
+
F(Kt, null, {
|
|
4495
4494
|
default: y(({ copyToClipboard: xe }) => [
|
|
4496
|
-
|
|
4495
|
+
F(Ke, {
|
|
4497
4496
|
"data-testid": "action-entity-copy-id",
|
|
4498
4497
|
onClick: (fa) => U(J, xe)
|
|
4499
4498
|
}, {
|
|
4500
4499
|
default: y(() => [
|
|
4501
|
-
W(
|
|
4500
|
+
W(j(g(r)("consumers.actions.copy_id")), 1)
|
|
4502
4501
|
]),
|
|
4503
4502
|
_: 2
|
|
4504
4503
|
}, 1032, ["onClick"])
|
|
4505
4504
|
]),
|
|
4506
4505
|
_: 2
|
|
4507
4506
|
}, 1024),
|
|
4508
|
-
|
|
4507
|
+
F(Kt, null, {
|
|
4509
4508
|
default: y(({ copyToClipboard: xe }) => [
|
|
4510
|
-
|
|
4509
|
+
F(Ke, {
|
|
4511
4510
|
"data-testid": "action-entity-copy-json",
|
|
4512
4511
|
onClick: (fa) => b(J, xe)
|
|
4513
4512
|
}, {
|
|
4514
4513
|
default: y(() => [
|
|
4515
|
-
W(
|
|
4514
|
+
W(j(g(r)("consumers.actions.copy_json")), 1)
|
|
4516
4515
|
]),
|
|
4517
4516
|
_: 2
|
|
4518
4517
|
}, 1032, ["onClick"])
|
|
4519
4518
|
]),
|
|
4520
4519
|
_: 2
|
|
4521
4520
|
}, 1024),
|
|
4522
|
-
|
|
4521
|
+
F(g(Ue), {
|
|
4523
4522
|
"auth-function": () => e.canRetrieve(J)
|
|
4524
4523
|
}, {
|
|
4525
4524
|
default: y(() => [
|
|
4526
|
-
|
|
4525
|
+
F(Ke, {
|
|
4527
4526
|
"data-testid": "action-entity-view",
|
|
4528
4527
|
"has-divider": "",
|
|
4529
4528
|
item: V(J.id)
|
|
@@ -4531,29 +4530,29 @@ const as = {
|
|
|
4531
4530
|
]),
|
|
4532
4531
|
_: 2
|
|
4533
4532
|
}, 1032, ["auth-function"]),
|
|
4534
|
-
|
|
4533
|
+
F(g(Ue), {
|
|
4535
4534
|
"auth-function": () => e.canEdit(J)
|
|
4536
4535
|
}, {
|
|
4537
4536
|
default: y(() => [
|
|
4538
|
-
|
|
4537
|
+
F(Ke, {
|
|
4539
4538
|
"data-testid": "action-entity-edit",
|
|
4540
4539
|
item: B(J.id)
|
|
4541
4540
|
}, null, 8, ["item"])
|
|
4542
4541
|
]),
|
|
4543
4542
|
_: 2
|
|
4544
4543
|
}, 1032, ["auth-function"]),
|
|
4545
|
-
|
|
4544
|
+
F(g(Ue), {
|
|
4546
4545
|
"auth-function": () => e.canDelete(J)
|
|
4547
4546
|
}, {
|
|
4548
4547
|
default: y(() => [
|
|
4549
|
-
|
|
4548
|
+
F(Ke, {
|
|
4550
4549
|
danger: "",
|
|
4551
4550
|
"data-testid": "action-entity-delete",
|
|
4552
4551
|
"has-divider": "",
|
|
4553
4552
|
onClick: () => e.config.consumerGroupId ? ua(J) : z(J)
|
|
4554
4553
|
}, {
|
|
4555
4554
|
default: y(() => [
|
|
4556
|
-
W(
|
|
4555
|
+
W(j(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
|
|
4557
4556
|
]),
|
|
4558
4557
|
_: 2
|
|
4559
4558
|
}, 1032, ["onClick"])
|
|
@@ -4563,11 +4562,11 @@ const as = {
|
|
|
4563
4562
|
]),
|
|
4564
4563
|
_: 1
|
|
4565
4564
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4566
|
-
|
|
4565
|
+
F(g(Vs), {
|
|
4567
4566
|
"action-pending": L.value,
|
|
4568
4567
|
"data-testid": "delete-consumer-modal",
|
|
4569
4568
|
description: g(r)("consumers.delete.description"),
|
|
4570
|
-
"entity-name":
|
|
4569
|
+
"entity-name": I.value && (I.value.username || I.value.custom_id || I.value.id),
|
|
4571
4570
|
"entity-type": g(fn).Consumer,
|
|
4572
4571
|
error: D.value,
|
|
4573
4572
|
title: g(r)("consumers.delete.title"),
|
|
@@ -4580,8 +4579,8 @@ const as = {
|
|
|
4580
4579
|
config: e.config,
|
|
4581
4580
|
"data-testid": "add-consumer-modal",
|
|
4582
4581
|
visible: Xe.value,
|
|
4583
|
-
"onAdd:partialSuccess": H[4] || (H[4] = (J) =>
|
|
4584
|
-
"onAdd:success": H[5] || (H[5] = (J) =>
|
|
4582
|
+
"onAdd:partialSuccess": H[4] || (H[4] = (J) => jt(J, !0)),
|
|
4583
|
+
"onAdd:success": H[5] || (H[5] = (J) => jt(J)),
|
|
4585
4584
|
onCancel: $t
|
|
4586
4585
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4587
4586
|
e.config.consumerGroupId && ve.value ? (m(), R(pa, {
|
|
@@ -4590,29 +4589,29 @@ const as = {
|
|
|
4590
4589
|
"is-visible": et.value,
|
|
4591
4590
|
title: g(r)("consumers.consumer_groups.remove.title"),
|
|
4592
4591
|
type: "danger",
|
|
4593
|
-
onCanceled:
|
|
4592
|
+
onCanceled: Mt,
|
|
4594
4593
|
onProceed: da
|
|
4595
4594
|
}, {
|
|
4596
4595
|
"body-content": y(() => [
|
|
4597
|
-
|
|
4596
|
+
F(g(a), {
|
|
4598
4597
|
class: "message",
|
|
4599
4598
|
keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
|
|
4600
4599
|
tag: "p"
|
|
4601
4600
|
}, ke({
|
|
4602
4601
|
consumer: y(() => [
|
|
4603
|
-
|
|
4602
|
+
K("strong", null, j(ve.value.username || ve.value.custom_id || ve.value.id), 1)
|
|
4604
4603
|
]),
|
|
4605
4604
|
_: 2
|
|
4606
4605
|
}, [
|
|
4607
4606
|
e.config.consumerGroupName ? {
|
|
4608
4607
|
name: "consumerGroup",
|
|
4609
4608
|
fn: y(() => [
|
|
4610
|
-
|
|
4609
|
+
K("strong", null, j(e.config.consumerGroupName), 1)
|
|
4611
4610
|
]),
|
|
4612
4611
|
key: "0"
|
|
4613
4612
|
} : void 0
|
|
4614
4613
|
]), 1032, ["keypath"]),
|
|
4615
|
-
|
|
4614
|
+
K("p", null, j(g(r)("consumers.consumer_groups.remove.description")), 1)
|
|
4616
4615
|
]),
|
|
4617
4616
|
_: 1
|
|
4618
4617
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4637,9 +4636,9 @@ const as = {
|
|
|
4637
4636
|
},
|
|
4638
4637
|
emits: ["update", "error", "loading"],
|
|
4639
4638
|
setup(e, { emit: n }) {
|
|
4640
|
-
var
|
|
4639
|
+
var _;
|
|
4641
4640
|
const t = e, { i18nT: a, i18n: { t: r } } = Ze.useI18n(), o = gt(), { axiosInstance: i } = St({
|
|
4642
|
-
headers: (
|
|
4641
|
+
headers: (_ = t.config) == null ? void 0 : _.requestHeaders
|
|
4643
4642
|
}), { getMessageFromError: s } = cl(), l = Nt({
|
|
4644
4643
|
fields: {
|
|
4645
4644
|
username: "",
|
|
@@ -4668,10 +4667,10 @@ const as = {
|
|
|
4668
4667
|
const N = ((C = w == null ? void 0 : w.item) == null ? void 0 : C.tags) || (w == null ? void 0 : w.tags) || [];
|
|
4669
4668
|
l.fields.tags = (N == null ? void 0 : N.join(", ")) || "", Object.assign(u, l.fields);
|
|
4670
4669
|
}, k = $(() => t.consumerId ? lt.Edit : lt.Create), p = (w) => {
|
|
4671
|
-
var U, b, C, V, B,
|
|
4670
|
+
var U, b, C, V, B, I;
|
|
4672
4671
|
let N = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][w]}`;
|
|
4673
|
-
return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (
|
|
4674
|
-
}, S = $(() => !!l.fields.username || !!l.fields.customId),
|
|
4672
|
+
return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
|
|
4673
|
+
}, S = $(() => !!l.fields.username || !!l.fields.customId), v = $(() => JSON.stringify(l.fields) !== JSON.stringify(u)), q = async () => {
|
|
4675
4674
|
var w, N, U;
|
|
4676
4675
|
try {
|
|
4677
4676
|
l.readonly = !0;
|
|
@@ -4691,8 +4690,8 @@ const as = {
|
|
|
4691
4690
|
return (w, N) => {
|
|
4692
4691
|
const U = P("KInput"), b = P("KCard");
|
|
4693
4692
|
return m(), T("div", _l, [
|
|
4694
|
-
|
|
4695
|
-
"can-submit": S.value &&
|
|
4693
|
+
F(g($s), {
|
|
4694
|
+
"can-submit": S.value && v.value,
|
|
4696
4695
|
config: e.config,
|
|
4697
4696
|
"edit-id": e.consumerId,
|
|
4698
4697
|
"error-message": l.errorMessage,
|
|
@@ -4705,20 +4704,20 @@ const as = {
|
|
|
4705
4704
|
onSubmit: q
|
|
4706
4705
|
}, {
|
|
4707
4706
|
default: y(() => [
|
|
4708
|
-
|
|
4709
|
-
|
|
4707
|
+
K("div", null, [
|
|
4708
|
+
F(g(ll), {
|
|
4710
4709
|
description: g(r)("consumers.form.info.description"),
|
|
4711
4710
|
"has-divider": "",
|
|
4712
4711
|
title: g(r)("consumers.form.info.title")
|
|
4713
4712
|
}, {
|
|
4714
4713
|
default: y(() => [
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4714
|
+
K("div", null, [
|
|
4715
|
+
K("h5", Al, j(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
|
|
4716
|
+
K("p", Sl, j(g(r)("consumers.form.consumer_identification.description")), 1)
|
|
4718
4717
|
]),
|
|
4719
|
-
|
|
4718
|
+
F(b, null, {
|
|
4720
4719
|
default: y(() => [
|
|
4721
|
-
|
|
4720
|
+
F(U, {
|
|
4722
4721
|
modelValue: l.fields.username,
|
|
4723
4722
|
"onUpdate:modelValue": N[0] || (N[0] = (C) => l.fields.username = C),
|
|
4724
4723
|
modelModifiers: { trim: !0 },
|
|
@@ -4734,19 +4733,19 @@ const as = {
|
|
|
4734
4733
|
type: "text"
|
|
4735
4734
|
}, {
|
|
4736
4735
|
"label-tooltip": y(() => [
|
|
4737
|
-
|
|
4736
|
+
F(g(a), {
|
|
4738
4737
|
keypath: "consumers.fields.username.tooltip",
|
|
4739
4738
|
scope: "global"
|
|
4740
4739
|
}, {
|
|
4741
4740
|
custom_id: y(() => [
|
|
4742
|
-
|
|
4741
|
+
K("code", null, j(g(r)("consumers.fields.username.custom_id")), 1)
|
|
4743
4742
|
]),
|
|
4744
4743
|
_: 1
|
|
4745
4744
|
})
|
|
4746
4745
|
]),
|
|
4747
4746
|
_: 1
|
|
4748
4747
|
}, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4749
|
-
|
|
4748
|
+
F(U, {
|
|
4750
4749
|
modelValue: l.fields.customId,
|
|
4751
4750
|
"onUpdate:modelValue": N[1] || (N[1] = (C) => l.fields.customId = C),
|
|
4752
4751
|
modelModifiers: { trim: !0 },
|
|
@@ -4761,12 +4760,12 @@ const as = {
|
|
|
4761
4760
|
type: "text"
|
|
4762
4761
|
}, {
|
|
4763
4762
|
"label-tooltip": y(() => [
|
|
4764
|
-
|
|
4763
|
+
F(g(a), {
|
|
4765
4764
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
4766
4765
|
scope: "global"
|
|
4767
4766
|
}, {
|
|
4768
4767
|
username: y(() => [
|
|
4769
|
-
|
|
4768
|
+
K("code", null, j(g(r)("consumers.fields.custom_id.username")), 1)
|
|
4770
4769
|
]),
|
|
4771
4770
|
_: 1
|
|
4772
4771
|
})
|
|
@@ -4776,7 +4775,7 @@ const as = {
|
|
|
4776
4775
|
]),
|
|
4777
4776
|
_: 1
|
|
4778
4777
|
}),
|
|
4779
|
-
|
|
4778
|
+
F(U, {
|
|
4780
4779
|
modelValue: l.fields.tags,
|
|
4781
4780
|
"onUpdate:modelValue": N[2] || (N[2] = (C) => l.fields.tags = C),
|
|
4782
4781
|
modelModifiers: { trim: !0 },
|
|
@@ -4855,7 +4854,7 @@ const as = {
|
|
|
4855
4854
|
}
|
|
4856
4855
|
});
|
|
4857
4856
|
return (i, s) => (m(), T("div", Tl, [
|
|
4858
|
-
|
|
4857
|
+
F(g(As), {
|
|
4859
4858
|
config: e.config,
|
|
4860
4859
|
"config-card-doc": e.configCardDoc,
|
|
4861
4860
|
"config-schema": o.value,
|
|
@@ -4867,23 +4866,23 @@ const as = {
|
|
|
4867
4866
|
onLoading: s[3] || (s[3] = (l) => i.$emit("loading", l))
|
|
4868
4867
|
}, {
|
|
4869
4868
|
"username-label-tooltip": y(() => [
|
|
4870
|
-
|
|
4869
|
+
F(g(a), {
|
|
4871
4870
|
keypath: "consumers.fields.username.tooltip",
|
|
4872
4871
|
scope: "global"
|
|
4873
4872
|
}, {
|
|
4874
4873
|
custom_id: y(() => [
|
|
4875
|
-
|
|
4874
|
+
K("code", null, j(g(t)("consumers.fields.username.custom_id")), 1)
|
|
4876
4875
|
]),
|
|
4877
4876
|
_: 1
|
|
4878
4877
|
})
|
|
4879
4878
|
]),
|
|
4880
4879
|
"custom_id-label-tooltip": y(() => [
|
|
4881
|
-
|
|
4880
|
+
F(g(a), {
|
|
4882
4881
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
4883
4882
|
scope: "global"
|
|
4884
4883
|
}, {
|
|
4885
4884
|
username: y(() => [
|
|
4886
|
-
|
|
4885
|
+
K("code", null, j(g(t)("consumers.fields.custom_id.username")), 1)
|
|
4887
4886
|
]),
|
|
4888
4887
|
_: 1
|
|
4889
4888
|
})
|