@kong-ui-public/entities-snis 3.2.3 → 3.2.4
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-snis.es.js +174 -174
- package/dist/entities-snis.umd.js +14 -14
- package/package.json +4 -4
package/dist/entities-snis.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as te, ref as F, computed as I, watch as me, renderSlot as le, createCommentVNode as G, unref as m, onBeforeMount as ct, resolveComponent as R, openBlock as w, createBlock as P, resolveDynamicComponent as Ce, withCtx as v, createElementVNode as L, toDisplayString as E, createElementBlock as $, withModifiers as it, createVNode as N, createTextVNode as
|
|
1
|
+
import { defineComponent as te, ref as F, computed as I, watch as me, renderSlot as le, createCommentVNode as G, unref as m, onBeforeMount as ct, resolveComponent as R, openBlock as w, createBlock as P, resolveDynamicComponent as Ce, withCtx as v, createElementVNode as L, toDisplayString as E, createElementBlock as $, withModifiers as it, createVNode as N, createTextVNode as J, createSlots as zt, withDirectives as fe, vShow as ge, renderList as ut, Fragment as Ht, normalizeClass as Ee, withKeys as Wn, useSlots as Yn, useCssVars as Zn, inject as Jn, onMounted as Gn, onUnmounted as Qn, normalizeStyle as Re, pushScopeId as Be, popScopeId as Ke, Teleport as Xn, reactive as vt } from "vue";
|
|
2
2
|
import { createI18n as Wt, i18nTComponent as Yt } from "@kong-ui-public/i18n";
|
|
3
3
|
import bt from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
|
-
import { useRouter as
|
|
5
|
+
import { useRouter as Zt } from "vue-router";
|
|
6
6
|
const ei = {
|
|
7
7
|
create: "New SNI",
|
|
8
8
|
copy_id: "Copy ID",
|
|
@@ -90,29 +90,29 @@ function li() {
|
|
|
90
90
|
// Translation component <i18n-t>
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Jt = {
|
|
94
94
|
useI18n: li
|
|
95
|
-
},
|
|
95
|
+
}, je = "/v2/control-planes/{controlPlaneId}/core-entities", Oe = "/{workspace}", Fe = {
|
|
96
96
|
list: {
|
|
97
97
|
konnect: {
|
|
98
|
-
all: `${
|
|
98
|
+
all: `${je}/snis`
|
|
99
99
|
},
|
|
100
100
|
kongManager: {
|
|
101
|
-
all: `${
|
|
101
|
+
all: `${Oe}/snis`
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
form: {
|
|
105
105
|
konnect: {
|
|
106
|
-
create: `${Oe}/snis`,
|
|
107
|
-
edit: `${Oe}/snis/{id}`,
|
|
108
|
-
validate: `${Oe}/v1/schemas/json/sni/validate`,
|
|
109
|
-
certificates: `${Oe}/certificates`
|
|
110
|
-
},
|
|
111
|
-
kongManager: {
|
|
112
106
|
create: `${je}/snis`,
|
|
113
107
|
edit: `${je}/snis/{id}`,
|
|
114
|
-
validate: `${je}/schemas/
|
|
108
|
+
validate: `${je}/v1/schemas/json/sni/validate`,
|
|
115
109
|
certificates: `${je}/certificates`
|
|
110
|
+
},
|
|
111
|
+
kongManager: {
|
|
112
|
+
create: `${Oe}/snis`,
|
|
113
|
+
edit: `${Oe}/snis/{id}`,
|
|
114
|
+
validate: `${Oe}/schemas/snis/validate`,
|
|
115
|
+
certificates: `${Oe}/certificates`
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
@@ -121,7 +121,7 @@ function si() {
|
|
|
121
121
|
return {
|
|
122
122
|
getAxiosInstance: (e = {}) => {
|
|
123
123
|
try {
|
|
124
|
-
const t =
|
|
124
|
+
const t = Jn("get-axios-instance", void 0);
|
|
125
125
|
return typeof t == "function" ? t(e) : bt.create({
|
|
126
126
|
withCredentials: !0,
|
|
127
127
|
timeout: 3e4,
|
|
@@ -305,7 +305,7 @@ const pi = {
|
|
|
305
305
|
validationErrors: wi,
|
|
306
306
|
toggleModal: ki
|
|
307
307
|
};
|
|
308
|
-
function
|
|
308
|
+
function Ze() {
|
|
309
309
|
const e = Wt("en-us", Ci);
|
|
310
310
|
return {
|
|
311
311
|
i18n: e,
|
|
@@ -362,12 +362,12 @@ function Si(e, t, n, i = {
|
|
|
362
362
|
searchKeys: ["id"]
|
|
363
363
|
}) {
|
|
364
364
|
n || (n = "1000");
|
|
365
|
-
const { axiosInstance: r } = dt(e.axiosRequestConfig), { i18n: { t: o } } =
|
|
365
|
+
const { axiosInstance: r } = dt(e.axiosRequestConfig), { i18n: { t: o } } = Ze(), { debounce: a } = ci(), l = a(async (h) => {
|
|
366
366
|
await W(h);
|
|
367
367
|
}, 200), s = F(!1), u = F(""), d = F(""), c = F([]), f = F([]), p = F(void 0), k = m(t);
|
|
368
368
|
let C = `${e.apiBaseUrl}${k}`;
|
|
369
369
|
e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
370
|
-
const { isValidUuid: S } = Qt(),
|
|
370
|
+
const { isValidUuid: S } = Qt(), O = async () => {
|
|
371
371
|
try {
|
|
372
372
|
s.value = !0;
|
|
373
373
|
const { data: h } = await r.get(`${C}?size=${n}`);
|
|
@@ -378,7 +378,7 @@ function Si(e, t, n, i = {
|
|
|
378
378
|
s.value = !1;
|
|
379
379
|
}
|
|
380
380
|
}, y = F(""), W = async (h) => {
|
|
381
|
-
var
|
|
381
|
+
var j, g, _;
|
|
382
382
|
if (y.value !== h)
|
|
383
383
|
if (y.value = h || "", p.value === void 0)
|
|
384
384
|
try {
|
|
@@ -399,7 +399,7 @@ function Si(e, t, n, i = {
|
|
|
399
399
|
})
|
|
400
400
|
);
|
|
401
401
|
const x = await Promise.all(U), Q = /* @__PURE__ */ new Set();
|
|
402
|
-
c.value = [], (
|
|
402
|
+
c.value = [], (j = x == null ? void 0 : x.forEach) == null || j.call(x, (B) => {
|
|
403
403
|
var q;
|
|
404
404
|
(q = B == null ? void 0 : B.forEach) == null || q.call(B, (ie) => {
|
|
405
405
|
Q.has(ie.id) || (Q.add(ie.id), c.value.push(ie));
|
|
@@ -429,7 +429,7 @@ function Si(e, t, n, i = {
|
|
|
429
429
|
validationError: d,
|
|
430
430
|
results: c,
|
|
431
431
|
allRecords: p,
|
|
432
|
-
loadItems:
|
|
432
|
+
loadItems: O,
|
|
433
433
|
debouncedQueryChange: l
|
|
434
434
|
};
|
|
435
435
|
}
|
|
@@ -440,7 +440,7 @@ function Ai(e, t) {
|
|
|
440
440
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
441
441
|
}
|
|
442
442
|
function Ii() {
|
|
443
|
-
const { i18n: { t: e } } =
|
|
443
|
+
const { i18n: { t: e } } = Ze();
|
|
444
444
|
return {
|
|
445
445
|
getMessageFromError: (t) => {
|
|
446
446
|
var n, i, r, o;
|
|
@@ -561,24 +561,24 @@ const en = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
561
561
|
}, kt = (e) => e === "*" || e === "x" || e === "X", Ct = (e) => {
|
|
562
562
|
const t = parseInt(e, 10);
|
|
563
563
|
return isNaN(t) ? e : t;
|
|
564
|
-
}, Ti = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t],
|
|
564
|
+
}, Ti = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ji = (e, t) => {
|
|
565
565
|
if (kt(e) || kt(t))
|
|
566
566
|
return 0;
|
|
567
567
|
const [n, i] = Ti(Ct(e), Ct(t));
|
|
568
568
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
569
569
|
}, St = (e, t) => {
|
|
570
570
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
571
|
-
const i =
|
|
571
|
+
const i = ji(e[n] || "0", t[n] || "0");
|
|
572
572
|
if (i !== 0)
|
|
573
573
|
return i;
|
|
574
574
|
}
|
|
575
575
|
return 0;
|
|
576
|
-
},
|
|
576
|
+
}, Oi = (e, t) => {
|
|
577
577
|
const n = wt(e), i = wt(t), r = n.pop(), o = i.pop(), a = St(n, i);
|
|
578
578
|
return a !== 0 ? a : r && o ? St(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
579
579
|
}, At = (e, t, n) => {
|
|
580
580
|
Fi(n);
|
|
581
|
-
const i =
|
|
581
|
+
const i = Oi(e, t);
|
|
582
582
|
return tn[n].includes(i);
|
|
583
583
|
}, tn = {
|
|
584
584
|
">": [1],
|
|
@@ -615,7 +615,7 @@ function $i(e) {
|
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
function qi() {
|
|
618
|
-
const { i18n: { t: e } } =
|
|
618
|
+
const { i18n: { t: e } } = Ze();
|
|
619
619
|
return {
|
|
620
620
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
621
621
|
};
|
|
@@ -630,7 +630,7 @@ const we = {
|
|
|
630
630
|
useFetchUrlBuilder: Xt,
|
|
631
631
|
useHelpers: Qt,
|
|
632
632
|
useStringHelpers: Ni,
|
|
633
|
-
useI18n:
|
|
633
|
+
useI18n: Ze,
|
|
634
634
|
useGatewayFeatureSupported: Ei,
|
|
635
635
|
useTruncationDetector: $i,
|
|
636
636
|
useValidators: qi
|
|
@@ -670,7 +670,7 @@ const we = {
|
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
672
|
setup(e) {
|
|
673
|
-
|
|
673
|
+
Zn((r) => ({
|
|
674
674
|
"4520e3ec": `${i.value}ch`
|
|
675
675
|
}));
|
|
676
676
|
const t = e, n = I(() => t.jsonRecord), i = I(() => {
|
|
@@ -688,7 +688,7 @@ const we = {
|
|
|
688
688
|
appearance: t.requestMethod
|
|
689
689
|
}, {
|
|
690
690
|
default: v(() => [
|
|
691
|
-
|
|
691
|
+
J(E(t.requestMethod), 1)
|
|
692
692
|
]),
|
|
693
693
|
_: 1
|
|
694
694
|
}, 8, ["appearance"]),
|
|
@@ -738,11 +738,11 @@ function zi(e, t) {
|
|
|
738
738
|
function Hi(e) {
|
|
739
739
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
740
740
|
}
|
|
741
|
-
var Wi = nn, Yi = Pi,
|
|
741
|
+
var Wi = nn, Yi = Pi, Zi = Di, Ji = zi, Gi = Hi, Qi = Vi, Z = {
|
|
742
742
|
isNothing: Wi,
|
|
743
743
|
isObject: Yi,
|
|
744
|
-
toArray:
|
|
745
|
-
repeat:
|
|
744
|
+
toArray: Zi,
|
|
745
|
+
repeat: Ji,
|
|
746
746
|
isNegativeZero: Gi,
|
|
747
747
|
extend: Qi
|
|
748
748
|
};
|
|
@@ -770,7 +770,7 @@ function Xe(e, t, n, i, r) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
function et(e, t) {
|
|
773
|
-
return
|
|
773
|
+
return Z.repeat(" ", t - e.length) + e;
|
|
774
774
|
}
|
|
775
775
|
function Xi(e, t) {
|
|
776
776
|
if (t = Object.create(t || null), !e.buffer)
|
|
@@ -787,10 +787,10 @@ function Xi(e, t) {
|
|
|
787
787
|
r[a - s],
|
|
788
788
|
e.position - (i[a] - i[a - s]),
|
|
789
789
|
c
|
|
790
|
-
), l =
|
|
790
|
+
), l = Z.repeat(" ", t.indent) + et((e.line - s + 1).toString(), d) + " | " + u.str + `
|
|
791
791
|
` + l;
|
|
792
|
-
for (u = Xe(e.buffer, i[a], r[a], e.position, c), l +=
|
|
793
|
-
`, l +=
|
|
792
|
+
for (u = Xe(e.buffer, i[a], r[a], e.position, c), l += Z.repeat(" ", t.indent) + et((e.line + 1).toString(), d) + " | " + u.str + `
|
|
793
|
+
`, l += Z.repeat("-", t.indent + d + 3 + u.pos) + `^
|
|
794
794
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
795
795
|
u = Xe(
|
|
796
796
|
e.buffer,
|
|
@@ -798,7 +798,7 @@ function Xi(e, t) {
|
|
|
798
798
|
r[a + s],
|
|
799
799
|
e.position - (i[a] - i[a + s]),
|
|
800
800
|
c
|
|
801
|
-
), l +=
|
|
801
|
+
), l += Z.repeat(" ", t.indent) + et((e.line + s + 1).toString(), d) + " | " + u.str + `
|
|
802
802
|
`;
|
|
803
803
|
return l.replace(/\n$/, "");
|
|
804
804
|
}
|
|
@@ -1053,7 +1053,7 @@ function mr(e) {
|
|
|
1053
1053
|
return n * parseInt(t, 10);
|
|
1054
1054
|
}
|
|
1055
1055
|
function yr(e) {
|
|
1056
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1056
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Z.isNegativeZero(e);
|
|
1057
1057
|
}
|
|
1058
1058
|
var pn = new ee("tag:yaml.org,2002:int", {
|
|
1059
1059
|
kind: "scalar",
|
|
@@ -1125,12 +1125,12 @@ function Cr(e, t) {
|
|
|
1125
1125
|
case "camelcase":
|
|
1126
1126
|
return "-.Inf";
|
|
1127
1127
|
}
|
|
1128
|
-
else if (
|
|
1128
|
+
else if (Z.isNegativeZero(e))
|
|
1129
1129
|
return "-0.0";
|
|
1130
1130
|
return n = e.toString(10), kr.test(n) ? n.replace("e", ".e") : n;
|
|
1131
1131
|
}
|
|
1132
1132
|
function Sr(e) {
|
|
1133
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1133
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Z.isNegativeZero(e));
|
|
1134
1134
|
}
|
|
1135
1135
|
var fn = new ee("tag:yaml.org,2002:float", {
|
|
1136
1136
|
kind: "scalar",
|
|
@@ -1203,21 +1203,21 @@ function Tr(e) {
|
|
|
1203
1203
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1204
1204
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function jr(e) {
|
|
1207
1207
|
var t = "", n = 0, i, r, o = e.length, a = pt;
|
|
1208
1208
|
for (i = 0; i < o; i++)
|
|
1209
1209
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1210
1210
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Or(e) {
|
|
1213
1213
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1214
1214
|
}
|
|
1215
1215
|
var wn = new ee("tag:yaml.org,2002:binary", {
|
|
1216
1216
|
kind: "scalar",
|
|
1217
1217
|
resolve: Nr,
|
|
1218
1218
|
construct: Tr,
|
|
1219
|
-
predicate:
|
|
1220
|
-
represent:
|
|
1219
|
+
predicate: Or,
|
|
1220
|
+
represent: jr
|
|
1221
1221
|
}), Fr = Object.prototype.hasOwnProperty, Mr = Object.prototype.toString;
|
|
1222
1222
|
function Er(e) {
|
|
1223
1223
|
if (e === null)
|
|
@@ -1330,7 +1330,7 @@ function Tt(e) {
|
|
|
1330
1330
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1331
1331
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Zr(e) {
|
|
1334
1334
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1335
1335
|
(e - 65536 >> 10) + 55296,
|
|
1336
1336
|
(e - 65536 & 1023) + 56320
|
|
@@ -1339,10 +1339,10 @@ function Jr(e) {
|
|
|
1339
1339
|
var Nn = new Array(256), Tn = new Array(256);
|
|
1340
1340
|
for (var Ae = 0; Ae < 256; Ae++)
|
|
1341
1341
|
Nn[Ae] = Tt(Ae) ? 1 : 0, Tn[Ae] = Tt(Ae);
|
|
1342
|
-
function
|
|
1342
|
+
function Jr(e, t) {
|
|
1343
1343
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ft, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function jn(e, t) {
|
|
1346
1346
|
var n = {
|
|
1347
1347
|
name: e.filename,
|
|
1348
1348
|
buffer: e.input.slice(0, -1),
|
|
@@ -1354,12 +1354,12 @@ function On(e, t) {
|
|
|
1354
1354
|
return n.snippet = er(n), new ae(t, n);
|
|
1355
1355
|
}
|
|
1356
1356
|
function b(e, t) {
|
|
1357
|
-
throw
|
|
1357
|
+
throw jn(e, t);
|
|
1358
1358
|
}
|
|
1359
1359
|
function He(e, t) {
|
|
1360
|
-
e.onWarning && e.onWarning.call(null,
|
|
1360
|
+
e.onWarning && e.onWarning.call(null, jn(e, t));
|
|
1361
1361
|
}
|
|
1362
|
-
var
|
|
1362
|
+
var jt = {
|
|
1363
1363
|
YAML: function(e, t, n) {
|
|
1364
1364
|
var i, r, o;
|
|
1365
1365
|
e.version !== null && b(e, "duplication of %YAML directive"), n.length !== 1 && b(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && b(e, "ill-formed argument of the YAML directive"), r = parseInt(i[1], 10), o = parseInt(i[2], 10), r !== 1 && b(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(e, "unsupported YAML version of the document");
|
|
@@ -1386,9 +1386,9 @@ function he(e, t, n, i) {
|
|
|
1386
1386
|
e.result += l;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Ot(e, t, n, i) {
|
|
1390
1390
|
var r, o, a, l;
|
|
1391
|
-
for (
|
|
1391
|
+
for (Z.isObject(n) || b(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1392
1392
|
o = r[a], ye.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1393
1393
|
}
|
|
1394
1394
|
function _e(e, t, n, i, r, o, a, l, s) {
|
|
@@ -1399,9 +1399,9 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1399
1399
|
if (typeof r == "object" && Nt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1400
1400
|
if (Array.isArray(o))
|
|
1401
1401
|
for (u = 0, d = o.length; u < d; u += 1)
|
|
1402
|
-
|
|
1402
|
+
Ot(e, t, o[u], n);
|
|
1403
1403
|
else
|
|
1404
|
-
|
|
1404
|
+
Ot(e, t, o, n);
|
|
1405
1405
|
else
|
|
1406
1406
|
!e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, b(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1407
1407
|
configurable: !0,
|
|
@@ -1431,12 +1431,12 @@ function H(e, t, n) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
return n !== -1 && i !== 0 && e.lineIndent < n && He(e, "deficient indentation"), i;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Je(e) {
|
|
1435
1435
|
var t = e.position, n;
|
|
1436
1436
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || oe(n)));
|
|
1437
1437
|
}
|
|
1438
1438
|
function ht(e, t) {
|
|
1439
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1439
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += Z.repeat(`
|
|
1440
1440
|
`, t - 1));
|
|
1441
1441
|
}
|
|
1442
1442
|
function Gr(e, t, n) {
|
|
@@ -1451,7 +1451,7 @@ function Gr(e, t, n) {
|
|
|
1451
1451
|
if (i = e.input.charCodeAt(e.position - 1), oe(i))
|
|
1452
1452
|
break;
|
|
1453
1453
|
} else {
|
|
1454
|
-
if (e.position === e.lineStart &&
|
|
1454
|
+
if (e.position === e.lineStart && Je(e) || n && xe(p))
|
|
1455
1455
|
break;
|
|
1456
1456
|
if (se(p))
|
|
1457
1457
|
if (s = e.line, u = e.lineStart, d = e.lineIndent, H(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1477,7 +1477,7 @@ function Qr(e, t) {
|
|
|
1477
1477
|
else
|
|
1478
1478
|
return !0;
|
|
1479
1479
|
else
|
|
1480
|
-
se(n) ? (he(e, i, r, !0), ht(e, H(e, !1, t)), i = r = e.position) : e.position === e.lineStart &&
|
|
1480
|
+
se(n) ? (he(e, i, r, !0), ht(e, H(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Je(e) ? b(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1481
1481
|
b(e, "unexpected end of the stream within a single quoted scalar");
|
|
1482
1482
|
}
|
|
1483
1483
|
function Xr(e, t) {
|
|
@@ -1495,17 +1495,17 @@ function Xr(e, t) {
|
|
|
1495
1495
|
else if ((a = Wr(l)) > 0) {
|
|
1496
1496
|
for (r = a, o = 0; r > 0; r--)
|
|
1497
1497
|
l = e.input.charCodeAt(++e.position), (a = Hr(l)) >= 0 ? o = (o << 4) + a : b(e, "expected hexadecimal character");
|
|
1498
|
-
e.result +=
|
|
1498
|
+
e.result += Zr(o), e.position++;
|
|
1499
1499
|
} else
|
|
1500
1500
|
b(e, "unknown escape sequence");
|
|
1501
1501
|
n = i = e.position;
|
|
1502
1502
|
} else
|
|
1503
|
-
se(l) ? (he(e, n, i, !0), ht(e, H(e, !1, t)), n = i = e.position) : e.position === e.lineStart &&
|
|
1503
|
+
se(l) ? (he(e, n, i, !0), ht(e, H(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Je(e) ? b(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1504
1504
|
}
|
|
1505
1505
|
b(e, "unexpected end of the stream within a double quoted scalar");
|
|
1506
1506
|
}
|
|
1507
1507
|
function ea(e, t) {
|
|
1508
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, k = /* @__PURE__ */ Object.create(null), C, S,
|
|
1508
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, k = /* @__PURE__ */ Object.create(null), C, S, O, y;
|
|
1509
1509
|
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1510
1510
|
d = 93, p = !1, l = [];
|
|
1511
1511
|
else if (y === 123)
|
|
@@ -1515,7 +1515,7 @@ function ea(e, t) {
|
|
|
1515
1515
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
1516
1516
|
if (H(e, !0, t), y = e.input.charCodeAt(e.position), y === d)
|
|
1517
1517
|
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1518
|
-
n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C =
|
|
1518
|
+
n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = O = null, c = f = !1, y === 63 && (u = e.input.charCodeAt(e.position + 1), oe(u) && (c = f = !0, e.position++, H(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ne(e, t, Ve, !1, !0), S = e.tag, C = e.result, H(e, !0, t), y = e.input.charCodeAt(e.position), (f || e.line === i) && y === 58 && (c = !0, y = e.input.charCodeAt(++e.position), H(e, !0, t), Ne(e, t, Ve, !1, !0), O = e.result), p ? _e(e, l, k, S, C, O, i, r, o) : c ? l.push(_e(e, null, k, S, C, O, i, r, o)) : l.push(C), H(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (n = !0, y = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1519
1519
|
}
|
|
1520
1520
|
b(e, "unexpected end of the stream within a flow collection");
|
|
1521
1521
|
}
|
|
@@ -1551,15 +1551,15 @@ function ta(e, t) {
|
|
|
1551
1551
|
continue;
|
|
1552
1552
|
}
|
|
1553
1553
|
if (e.lineIndent < l) {
|
|
1554
|
-
r === _t ? e.result +=
|
|
1554
|
+
r === _t ? e.result += Z.repeat(`
|
|
1555
1555
|
`, o ? 1 + s : s) : r === tt && o && (e.result += `
|
|
1556
1556
|
`);
|
|
1557
1557
|
break;
|
|
1558
1558
|
}
|
|
1559
|
-
for (i ? ke(c) ? (u = !0, e.result +=
|
|
1560
|
-
`, o ? 1 + s : s)) : u ? (u = !1, e.result +=
|
|
1561
|
-
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result +=
|
|
1562
|
-
`, s) : e.result +=
|
|
1559
|
+
for (i ? ke(c) ? (u = !0, e.result += Z.repeat(`
|
|
1560
|
+
`, o ? 1 + s : s)) : u ? (u = !1, e.result += Z.repeat(`
|
|
1561
|
+
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += Z.repeat(`
|
|
1562
|
+
`, s) : e.result += Z.repeat(`
|
|
1563
1563
|
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !se(c) && c !== 0; )
|
|
1564
1564
|
c = e.input.charCodeAt(++e.position);
|
|
1565
1565
|
he(e, n, e.position, !1);
|
|
@@ -1583,12 +1583,12 @@ function Ft(e, t) {
|
|
|
1583
1583
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1584
1584
|
}
|
|
1585
1585
|
function na(e, t, n) {
|
|
1586
|
-
var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, k = null, C = null, S = !1,
|
|
1586
|
+
var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, k = null, C = null, S = !1, O = !1, y;
|
|
1587
1587
|
if (e.firstTabInLine !== -1)
|
|
1588
1588
|
return !1;
|
|
1589
1589
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
1590
1590
|
if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, b(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (y === 63 || y === 58) && oe(i))
|
|
1591
|
-
y === 63 ? (S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null),
|
|
1591
|
+
y === 63 ? (S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), O = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : b(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = i;
|
|
1592
1592
|
else {
|
|
1593
1593
|
if (a = e.line, l = e.lineStart, s = e.position, !Ne(e, n, An, !1, !0))
|
|
1594
1594
|
break;
|
|
@@ -1596,12 +1596,12 @@ function na(e, t, n) {
|
|
|
1596
1596
|
for (y = e.input.charCodeAt(e.position); ke(y); )
|
|
1597
1597
|
y = e.input.charCodeAt(++e.position);
|
|
1598
1598
|
if (y === 58)
|
|
1599
|
-
y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null),
|
|
1600
|
-
else if (
|
|
1599
|
+
y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), O = !0, S = !1, r = !1, p = e.tag, k = e.result;
|
|
1600
|
+
else if (O)
|
|
1601
1601
|
b(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1602
1602
|
else
|
|
1603
1603
|
return e.tag = u, e.anchor = d, !0;
|
|
1604
|
-
} else if (
|
|
1604
|
+
} else if (O)
|
|
1605
1605
|
b(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1606
1606
|
else
|
|
1607
1607
|
return e.tag = u, e.anchor = d, !0;
|
|
@@ -1611,7 +1611,7 @@ function na(e, t, n) {
|
|
|
1611
1611
|
else if (e.lineIndent < t)
|
|
1612
1612
|
break;
|
|
1613
1613
|
}
|
|
1614
|
-
return S && _e(e, c, f, p, k, null, a, l, s),
|
|
1614
|
+
return S && _e(e, c, f, p, k, null, a, l, s), O && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), O;
|
|
1615
1615
|
}
|
|
1616
1616
|
function ia(e) {
|
|
1617
1617
|
var t, n = !1, i = !1, r, o, a;
|
|
@@ -1697,9 +1697,9 @@ function oa(e) {
|
|
|
1697
1697
|
a = e.input.charCodeAt(++e.position);
|
|
1698
1698
|
r.push(e.input.slice(n, e.position));
|
|
1699
1699
|
}
|
|
1700
|
-
a !== 0 && gt(e), ye.call(
|
|
1700
|
+
a !== 0 && gt(e), ye.call(jt, i) ? jt[i](e, i, r) : He(e, 'unknown document directive "' + i + '"');
|
|
1701
1701
|
}
|
|
1702
|
-
if (H(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, H(e, !0, -1)) : o && b(e, "directives end mark is expected"), Ne(e, e.lineIndent - 1, ze, !1, !0), H(e, !0, -1), e.checkLineBreaks && Vr.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart &&
|
|
1702
|
+
if (H(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, H(e, !0, -1)) : o && b(e, "directives end mark is expected"), Ne(e, e.lineIndent - 1, ze, !1, !0), H(e, !0, -1), e.checkLineBreaks && Vr.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Je(e)) {
|
|
1703
1703
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, H(e, !0, -1));
|
|
1704
1704
|
return;
|
|
1705
1705
|
}
|
|
@@ -1708,10 +1708,10 @@ function oa(e) {
|
|
|
1708
1708
|
else
|
|
1709
1709
|
return;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function On(e, t) {
|
|
1712
1712
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1713
1713
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1714
|
-
var n = new
|
|
1714
|
+
var n = new Jr(e, t), i = e.indexOf("\0");
|
|
1715
1715
|
for (i !== -1 && (n.position = i, b(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1716
1716
|
n.lineIndent += 1, n.position += 1;
|
|
1717
1717
|
for (; n.position < n.length - 1; )
|
|
@@ -1720,14 +1720,14 @@ function jn(e, t) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
function la(e, t, n) {
|
|
1722
1722
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1723
|
-
var i =
|
|
1723
|
+
var i = On(e, n);
|
|
1724
1724
|
if (typeof t != "function")
|
|
1725
1725
|
return i;
|
|
1726
1726
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
1727
1727
|
t(i[r]);
|
|
1728
1728
|
}
|
|
1729
1729
|
function sa(e, t) {
|
|
1730
|
-
var n =
|
|
1730
|
+
var n = On(e, t);
|
|
1731
1731
|
if (n.length !== 0) {
|
|
1732
1732
|
if (n.length === 1)
|
|
1733
1733
|
return n[0];
|
|
@@ -1779,7 +1779,7 @@ function Ta(e, t) {
|
|
|
1779
1779
|
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
1780
1780
|
return n;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function ja(e) {
|
|
1783
1783
|
var t, n, i;
|
|
1784
1784
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
1785
1785
|
n = "x", i = 2;
|
|
@@ -1789,14 +1789,14 @@ function Oa(e) {
|
|
|
1789
1789
|
n = "U", i = 8;
|
|
1790
1790
|
else
|
|
1791
1791
|
throw new ae("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1792
|
-
return "\\" + n +
|
|
1792
|
+
return "\\" + n + Z.repeat("0", i - t.length) + t;
|
|
1793
1793
|
}
|
|
1794
|
-
var
|
|
1794
|
+
var Oa = 1, Le = 2;
|
|
1795
1795
|
function Fa(e) {
|
|
1796
|
-
this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
1796
|
+
this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ta(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Le : Oa, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1797
1797
|
}
|
|
1798
1798
|
function Mt(e, t) {
|
|
1799
|
-
for (var n =
|
|
1799
|
+
for (var n = Z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
1800
1800
|
r = e.indexOf(`
|
|
1801
1801
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
1802
1802
|
` && (o += n), o += a;
|
|
@@ -1804,7 +1804,7 @@ function Mt(e, t) {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
function ot(e, t) {
|
|
1806
1806
|
return `
|
|
1807
|
-
` +
|
|
1807
|
+
` + Z.repeat(" ", e.indent * t);
|
|
1808
1808
|
}
|
|
1809
1809
|
function Ma(e, t) {
|
|
1810
1810
|
var n, i, r;
|
|
@@ -1940,7 +1940,7 @@ function Ut(e, t) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
function Ra(e) {
|
|
1942
1942
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
1943
|
-
n = Me(e, r), i = ne[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i ||
|
|
1943
|
+
n = Me(e, r), i = ne[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || ja(n);
|
|
1944
1944
|
return t;
|
|
1945
1945
|
}
|
|
1946
1946
|
function Ba(e, t, n) {
|
|
@@ -2049,7 +2049,7 @@ function yt(e, t) {
|
|
|
2049
2049
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
|
-
var Wa = ee, Ya = an,
|
|
2052
|
+
var Wa = ee, Ya = an, Za = cn, Ja = gn, Ga = hn, Qa = ft, Xa = Fn.load, eo = Fn.loadAll, to = Ha.dump, no = ae, io = {
|
|
2053
2053
|
binary: wn,
|
|
2054
2054
|
float: fn,
|
|
2055
2055
|
map: sn,
|
|
@@ -2066,8 +2066,8 @@ var Wa = ee, Ya = an, Ja = cn, Za = gn, Ga = hn, Qa = ft, Xa = Fn.load, eo = Fn.
|
|
|
2066
2066
|
}, ro = yt("safeLoad", "load"), ao = yt("safeLoadAll", "loadAll"), oo = yt("safeDump", "dump"), lo = {
|
|
2067
2067
|
Type: Wa,
|
|
2068
2068
|
Schema: Ya,
|
|
2069
|
-
FAILSAFE_SCHEMA:
|
|
2070
|
-
JSON_SCHEMA:
|
|
2069
|
+
FAILSAFE_SCHEMA: Za,
|
|
2070
|
+
JSON_SCHEMA: Ja,
|
|
2071
2071
|
CORE_SCHEMA: Ga,
|
|
2072
2072
|
DEFAULT_SCHEMA: Qa,
|
|
2073
2073
|
load: Xa,
|
|
@@ -2111,7 +2111,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2111
2111
|
for (const [i, r] of t)
|
|
2112
2112
|
n[i] = r;
|
|
2113
2113
|
return n;
|
|
2114
|
-
}, uo = (e) => (Be("data-v-
|
|
2114
|
+
}, uo = (e) => (Be("data-v-f68c7837"), e = e(), Ke(), e), po = ["aria-hidden"], fo = {
|
|
2115
2115
|
key: 0,
|
|
2116
2116
|
"data-testid": "kui-icon-svg-title"
|
|
2117
2117
|
}, go = /* @__PURE__ */ uo(() => /* @__PURE__ */ L("path", {
|
|
@@ -2210,7 +2210,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2210
2210
|
_: 1
|
|
2211
2211
|
}, 8, ["aria-hidden", "style"]));
|
|
2212
2212
|
}
|
|
2213
|
-
}), mo = /* @__PURE__ */ Ge(ho, [["__scopeId", "data-v-
|
|
2213
|
+
}), mo = /* @__PURE__ */ Ge(ho, [["__scopeId", "data-v-f68c7837"]]), yo = (e) => (Be("data-v-84c4811e"), e = e(), Ke(), e), vo = ["aria-hidden"], bo = {
|
|
2214
2214
|
key: 0,
|
|
2215
2215
|
"data-testid": "kui-icon-svg-title"
|
|
2216
2216
|
}, wo = /* @__PURE__ */ yo(() => /* @__PURE__ */ L("path", {
|
|
@@ -2309,7 +2309,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}, 8, ["aria-hidden", "style"]));
|
|
2311
2311
|
}
|
|
2312
|
-
}), Co = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-
|
|
2312
|
+
}), Co = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-84c4811e"]]), So = (e) => (Be("data-v-26ad8dc6"), e = e(), Ke(), e), Ao = ["aria-hidden"], Io = {
|
|
2313
2313
|
key: 0,
|
|
2314
2314
|
"data-testid": "kui-icon-svg-title"
|
|
2315
2315
|
}, xo = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
|
|
@@ -2408,7 +2408,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2408
2408
|
_: 1
|
|
2409
2409
|
}, 8, ["aria-hidden", "style"]));
|
|
2410
2410
|
}
|
|
2411
|
-
}), No = /* @__PURE__ */ Ge(_o, [["__scopeId", "data-v-
|
|
2411
|
+
}), No = /* @__PURE__ */ Ge(_o, [["__scopeId", "data-v-26ad8dc6"]]), To = (e) => (Be("data-v-d43c21f8"), e = e(), Ke(), e), jo = ["aria-hidden"], Oo = {
|
|
2412
2412
|
key: 0,
|
|
2413
2413
|
"data-testid": "kui-icon-svg-title"
|
|
2414
2414
|
}, Fo = /* @__PURE__ */ To(() => /* @__PURE__ */ L("path", {
|
|
@@ -2500,14 +2500,14 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2500
2500
|
width: "100%",
|
|
2501
2501
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2502
2502
|
}, [
|
|
2503
|
-
e.title ? (w(), $("title",
|
|
2503
|
+
e.title ? (w(), $("title", Oo, E(e.title), 1)) : G("", !0),
|
|
2504
2504
|
Fo
|
|
2505
|
-
], 8,
|
|
2505
|
+
], 8, jo))
|
|
2506
2506
|
]),
|
|
2507
2507
|
_: 1
|
|
2508
2508
|
}, 8, ["aria-hidden", "style"]));
|
|
2509
2509
|
}
|
|
2510
|
-
}), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-
|
|
2510
|
+
}), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-d43c21f8"]]), $o = ["novalidate"], qo = {
|
|
2511
2511
|
class: "form-actions",
|
|
2512
2512
|
"data-testid": "form-actions"
|
|
2513
2513
|
}, Lo = /* @__PURE__ */ te({
|
|
@@ -2579,15 +2579,15 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2579
2579
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
2580
2580
|
setup(e, { emit: t }) {
|
|
2581
2581
|
var n;
|
|
2582
|
-
const i = t, r = e, o =
|
|
2583
|
-
var h,
|
|
2582
|
+
const i = t, r = e, o = Zt(), { i18n: { t: a } } = we.useI18n(), { getMessageFromError: l } = we.useErrors(), { axiosInstance: s } = we.useAxios((n = r.config) == null ? void 0 : n.axiosRequestConfig), u = F(!1), d = F(!1), c = F(""), f = I(() => r.canSubmit === !1 || r.isReadonly), p = F(!1), k = I(() => {
|
|
2583
|
+
var h, j;
|
|
2584
2584
|
let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2585
|
-
return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (
|
|
2585
|
+
return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (j = r.config) != null && j.workspace ? `/${r.config.workspace}` : "")), r.editId ? (g = g.replace(/{id}/gi, r.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
|
|
2586
2586
|
}), C = () => {
|
|
2587
2587
|
p.value = !p.value;
|
|
2588
2588
|
}, S = () => {
|
|
2589
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) :
|
|
2590
|
-
},
|
|
2589
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : O();
|
|
2590
|
+
}, O = () => {
|
|
2591
2591
|
i("cancel");
|
|
2592
2592
|
}, y = () => {
|
|
2593
2593
|
f.value || i("submit");
|
|
@@ -2610,12 +2610,12 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2610
2610
|
const { data: h } = await s.get(k.value);
|
|
2611
2611
|
i("fetch:success", h);
|
|
2612
2612
|
} catch (h) {
|
|
2613
|
-
const
|
|
2614
|
-
c.value =
|
|
2613
|
+
const j = l(h);
|
|
2614
|
+
c.value = j.startsWith("code") ? a("baseForm.errors.edit") : j, d.value = !0, i("fetch:error", h);
|
|
2615
2615
|
} finally {
|
|
2616
2616
|
u.value = !1;
|
|
2617
2617
|
}
|
|
2618
|
-
}), (h,
|
|
2618
|
+
}), (h, j) => {
|
|
2619
2619
|
const g = R("KSkeleton"), _ = R("KEmptyState"), U = R("KAlert"), x = R("KButton"), Q = R("KTabs"), B = R("KSlideout");
|
|
2620
2620
|
return w(), P(Ce(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
2621
2621
|
default: v(() => [
|
|
@@ -2637,7 +2637,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2637
2637
|
key: 2,
|
|
2638
2638
|
"data-testid": "form-content",
|
|
2639
2639
|
novalidate: r.noValidate,
|
|
2640
|
-
onReset: it(
|
|
2640
|
+
onReset: it(O, ["prevent"]),
|
|
2641
2641
|
onSubmit: it(y, ["prevent"])
|
|
2642
2642
|
}, [
|
|
2643
2643
|
le(h.$slots, "default", {}, void 0, !0),
|
|
@@ -2652,10 +2652,10 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2652
2652
|
N(x, {
|
|
2653
2653
|
appearance: "tertiary",
|
|
2654
2654
|
"data-testid": "form-view-configuration",
|
|
2655
|
-
onClick:
|
|
2655
|
+
onClick: j[0] || (j[0] = (q) => C())
|
|
2656
2656
|
}, {
|
|
2657
2657
|
default: v(() => [
|
|
2658
|
-
|
|
2658
|
+
J(E(m(a)("baseForm.actions.viewConfiguration")), 1)
|
|
2659
2659
|
]),
|
|
2660
2660
|
_: 1
|
|
2661
2661
|
}),
|
|
@@ -2666,7 +2666,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2666
2666
|
type: "reset"
|
|
2667
2667
|
}, {
|
|
2668
2668
|
default: v(() => [
|
|
2669
|
-
|
|
2669
|
+
J(E(m(a)("baseForm.actions.cancel")), 1)
|
|
2670
2670
|
]),
|
|
2671
2671
|
_: 1
|
|
2672
2672
|
}, 8, ["disabled"]),
|
|
@@ -2677,7 +2677,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2677
2677
|
type: "submit"
|
|
2678
2678
|
}, {
|
|
2679
2679
|
default: v(() => [
|
|
2680
|
-
|
|
2680
|
+
J(E(m(a)("baseForm.actions.save")), 1)
|
|
2681
2681
|
]),
|
|
2682
2682
|
_: 1
|
|
2683
2683
|
}, 8, ["disabled"])
|
|
@@ -2691,7 +2691,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2691
2691
|
"offset-top": 60,
|
|
2692
2692
|
title: m(a)("baseForm.configuration.title"),
|
|
2693
2693
|
visible: p.value,
|
|
2694
|
-
onClose:
|
|
2694
|
+
onClose: j[1] || (j[1] = (q) => C())
|
|
2695
2695
|
}, {
|
|
2696
2696
|
default: v(() => [
|
|
2697
2697
|
L("div", null, E(m(a)("baseForm.configuration.message")), 1),
|
|
@@ -2746,32 +2746,32 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2746
2746
|
var S;
|
|
2747
2747
|
return ((S = n.value) == null ? void 0 : S.querySelector('[data-truncate="true"]')) || null;
|
|
2748
2748
|
}), r = I(() => {
|
|
2749
|
-
var S,
|
|
2749
|
+
var S, O;
|
|
2750
2750
|
const y = (S = t.rowEl) == null ? void 0 : S.querySelectorAll("td");
|
|
2751
|
-
return y ? ((
|
|
2751
|
+
return y ? ((O = y[0]) == null ? void 0 : O.getAttribute("data-testid")) === t.keyName : !1;
|
|
2752
2752
|
}), o = I(() => r.value || t.tooltip);
|
|
2753
2753
|
let a;
|
|
2754
2754
|
const l = () => {
|
|
2755
2755
|
a && (a.disconnect(), a = void 0);
|
|
2756
2756
|
}, s = () => {
|
|
2757
|
-
var S,
|
|
2757
|
+
var S, O, y;
|
|
2758
2758
|
let W = ((S = n.value) == null ? void 0 : S.clientWidth) || 0;
|
|
2759
2759
|
if (n.value && "getComputedStyle" in window) {
|
|
2760
2760
|
const h = window.getComputedStyle(n.value);
|
|
2761
2761
|
W -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
|
|
2762
2762
|
}
|
|
2763
|
-
d.value = ((
|
|
2763
|
+
d.value = ((O = i.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, c.value = W, f.value = ((y = u.value) == null ? void 0 : y.innerText) || "";
|
|
2764
2764
|
}, u = F({}), d = F(0), c = F(0), f = F(""), p = I(() => [i.value, n.value]), k = me(
|
|
2765
2765
|
p,
|
|
2766
2766
|
(S) => {
|
|
2767
2767
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
2768
|
-
a = new ResizeObserver((
|
|
2768
|
+
a = new ResizeObserver((O) => {
|
|
2769
2769
|
window.requestAnimationFrame(() => {
|
|
2770
|
-
!Array.isArray(
|
|
2770
|
+
!Array.isArray(O) || !O.length || s();
|
|
2771
2771
|
});
|
|
2772
2772
|
});
|
|
2773
|
-
for (const
|
|
2774
|
-
|
|
2773
|
+
for (const O of S)
|
|
2774
|
+
O && a.observe(O);
|
|
2775
2775
|
}
|
|
2776
2776
|
},
|
|
2777
2777
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
@@ -2780,7 +2780,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2780
2780
|
s();
|
|
2781
2781
|
}), Qn(() => {
|
|
2782
2782
|
k();
|
|
2783
|
-
}), (S,
|
|
2783
|
+
}), (S, O) => {
|
|
2784
2784
|
const y = R("KTooltip");
|
|
2785
2785
|
return w(), $("span", {
|
|
2786
2786
|
ref_key: "contentRef",
|
|
@@ -2976,14 +2976,14 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
2976
2976
|
i("click:row", _);
|
|
2977
2977
|
}), S = (g) => {
|
|
2978
2978
|
i("sort", g);
|
|
2979
|
-
}, { setTablePreferences:
|
|
2979
|
+
}, { setTablePreferences: O, getTablePreferences: y } = di(), W = F(y(a.value)), h = I(() => {
|
|
2980
2980
|
const g = y(a.value);
|
|
2981
2981
|
return {
|
|
2982
2982
|
...n.initialFetcherParams,
|
|
2983
2983
|
...g
|
|
2984
2984
|
};
|
|
2985
|
-
}),
|
|
2986
|
-
W.value = g, a.value &&
|
|
2985
|
+
}), j = (g) => {
|
|
2986
|
+
W.value = g, a.value && O(a.value, g);
|
|
2987
2987
|
};
|
|
2988
2988
|
return (g, _) => {
|
|
2989
2989
|
const U = R("KButton"), x = R("KDropdown"), Q = R("KTable"), B = R("KCard");
|
|
@@ -3024,7 +3024,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3024
3024
|
onEmptyStateActionClick: p,
|
|
3025
3025
|
"onRow:click": C.value,
|
|
3026
3026
|
onSort: _[0] || (_[0] = (q) => S(q)),
|
|
3027
|
-
"onUpdate:tablePreferences":
|
|
3027
|
+
"onUpdate:tablePreferences": j
|
|
3028
3028
|
}, zt({
|
|
3029
3029
|
toolbar: v(({ state: q }) => [
|
|
3030
3030
|
fe(L("div", Po, [
|
|
@@ -3086,7 +3086,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3086
3086
|
rowKey: Se,
|
|
3087
3087
|
rowValue: ce
|
|
3088
3088
|
}, () => [
|
|
3089
|
-
|
|
3089
|
+
J(E(ce), 1)
|
|
3090
3090
|
], !0)
|
|
3091
3091
|
]),
|
|
3092
3092
|
_: 2
|
|
@@ -3112,7 +3112,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3112
3112
|
}, Yo = {
|
|
3113
3113
|
key: 1,
|
|
3114
3114
|
class: "description"
|
|
3115
|
-
},
|
|
3115
|
+
}, Zo = /* @__PURE__ */ te({
|
|
3116
3116
|
__name: "EntityDeleteModal",
|
|
3117
3117
|
props: {
|
|
3118
3118
|
visible: {
|
|
@@ -3173,7 +3173,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3173
3173
|
e.error ? (w(), $("div", Wo, [
|
|
3174
3174
|
N(d, { appearance: "danger" }, {
|
|
3175
3175
|
default: v(() => [
|
|
3176
|
-
|
|
3176
|
+
J(E(e.error), 1)
|
|
3177
3177
|
]),
|
|
3178
3178
|
_: 1
|
|
3179
3179
|
})
|
|
@@ -3184,7 +3184,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3184
3184
|
tag: "p"
|
|
3185
3185
|
}, zt({
|
|
3186
3186
|
entityType: v(() => [
|
|
3187
|
-
|
|
3187
|
+
J(E(i.entityType), 1)
|
|
3188
3188
|
]),
|
|
3189
3189
|
_: 2
|
|
3190
3190
|
}, [
|
|
@@ -3206,7 +3206,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3206
3206
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
|
-
}),
|
|
3209
|
+
}), Jo = /* @__PURE__ */ Te(Zo, [["__scopeId", "data-v-4361d622"]]), Go = {
|
|
3210
3210
|
fill: "none",
|
|
3211
3211
|
height: "20",
|
|
3212
3212
|
viewBox: "0 0 20 20",
|
|
@@ -3270,23 +3270,23 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3270
3270
|
setup(e, { emit: t }) {
|
|
3271
3271
|
const { i18n: { t: n } } = we.useI18n(), i = e, r = t, o = F(!1), a = F({}), l = F(/* @__PURE__ */ new Set()), s = I(() => {
|
|
3272
3272
|
const h = [];
|
|
3273
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3274
|
-
|
|
3273
|
+
return new URLSearchParams(i.modelValue).forEach((j, g) => {
|
|
3274
|
+
j !== "" && h.push(g);
|
|
3275
3275
|
}), h;
|
|
3276
3276
|
}), u = I(() => {
|
|
3277
3277
|
const h = i.config.fields;
|
|
3278
|
-
return Object.keys(h).filter((
|
|
3278
|
+
return Object.keys(h).filter((j) => {
|
|
3279
3279
|
var g;
|
|
3280
|
-
return (g = h == null ? void 0 : h[
|
|
3281
|
-
}).map((
|
|
3282
|
-
label: h[
|
|
3283
|
-
value:
|
|
3280
|
+
return (g = h == null ? void 0 : h[j]) == null ? void 0 : g.searchable;
|
|
3281
|
+
}).map((j) => ({
|
|
3282
|
+
label: h[j].label || j,
|
|
3283
|
+
value: j,
|
|
3284
3284
|
expanded: !1
|
|
3285
3285
|
}));
|
|
3286
3286
|
});
|
|
3287
3287
|
me(() => i.modelValue, (h) => {
|
|
3288
|
-
a.value = {}, new URLSearchParams(h).forEach((
|
|
3289
|
-
a.value[g] =
|
|
3288
|
+
a.value = {}, new URLSearchParams(h).forEach((j, g) => {
|
|
3289
|
+
a.value[g] = j;
|
|
3290
3290
|
});
|
|
3291
3291
|
});
|
|
3292
3292
|
const d = () => {
|
|
@@ -3298,15 +3298,15 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3298
3298
|
}, p = () => {
|
|
3299
3299
|
f("");
|
|
3300
3300
|
}, k = (h) => `filter-${h}`, C = (h) => {
|
|
3301
|
-
var
|
|
3302
|
-
return (((g = (
|
|
3301
|
+
var j, g;
|
|
3302
|
+
return (((g = (j = i.config.schema) == null ? void 0 : j[h]) == null ? void 0 : g.values) ?? []).map((_) => ({
|
|
3303
3303
|
value: _,
|
|
3304
3304
|
label: _
|
|
3305
3305
|
}));
|
|
3306
3306
|
}, S = (h) => {
|
|
3307
|
-
var
|
|
3308
|
-
return ((g = (
|
|
3309
|
-
},
|
|
3307
|
+
var j, g;
|
|
3308
|
+
return ((g = (j = i.config.schema) == null ? void 0 : j[h]) == null ? void 0 : g.type) ?? "text";
|
|
3309
|
+
}, O = (h) => {
|
|
3310
3310
|
a.value = {
|
|
3311
3311
|
...a.value,
|
|
3312
3312
|
[h]: ""
|
|
@@ -3314,10 +3314,10 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3314
3314
|
}, y = () => {
|
|
3315
3315
|
a.value = {}, W(!0);
|
|
3316
3316
|
}, W = (h = !1) => {
|
|
3317
|
-
const
|
|
3318
|
-
h && (o.value = !1), r("update:modelValue", new URLSearchParams(
|
|
3317
|
+
const j = Object.keys(a.value).reduce((g, _) => (a.value[_] && (g[_] = `${a.value[_]}`), g), {});
|
|
3318
|
+
h && (o.value = !1), r("update:modelValue", new URLSearchParams(j).toString());
|
|
3319
3319
|
};
|
|
3320
|
-
return (h,
|
|
3320
|
+
return (h, j) => {
|
|
3321
3321
|
const g = R("KInput"), _ = R("KButton"), U = R("KSelect");
|
|
3322
3322
|
return e.config.isExactMatch ? (w(), P(g, {
|
|
3323
3323
|
key: 0,
|
|
@@ -3348,7 +3348,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3348
3348
|
}, {
|
|
3349
3349
|
default: v(() => [
|
|
3350
3350
|
N(Kt),
|
|
3351
|
-
|
|
3351
|
+
J(" " + E(m(n)("filter.filterButtonText")) + " " + E(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3352
3352
|
]),
|
|
3353
3353
|
_: 1
|
|
3354
3354
|
}),
|
|
@@ -3373,7 +3373,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3373
3373
|
onClick: (q) => c(x.value),
|
|
3374
3374
|
onKeydown: Wn((q) => c(x.value), ["enter"])
|
|
3375
3375
|
}, [
|
|
3376
|
-
|
|
3376
|
+
J(E(x.label) + " ", 1),
|
|
3377
3377
|
fe(L("span", ol, null, 512), [
|
|
3378
3378
|
[ge, s.value.includes(x.value)]
|
|
3379
3379
|
]),
|
|
@@ -3411,10 +3411,10 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3411
3411
|
appearance: "tertiary",
|
|
3412
3412
|
"data-testid": "apply-filter",
|
|
3413
3413
|
size: "small",
|
|
3414
|
-
onClick:
|
|
3414
|
+
onClick: j[0] || (j[0] = (q) => W(!0))
|
|
3415
3415
|
}, {
|
|
3416
3416
|
default: v(() => [
|
|
3417
|
-
|
|
3417
|
+
J(E(m(n)("filter.applyButtonText")), 1)
|
|
3418
3418
|
]),
|
|
3419
3419
|
_: 1
|
|
3420
3420
|
}),
|
|
@@ -3422,10 +3422,10 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3422
3422
|
appearance: "tertiary",
|
|
3423
3423
|
"data-testid": "clear-filter",
|
|
3424
3424
|
size: "small",
|
|
3425
|
-
onClick: (q) =>
|
|
3425
|
+
onClick: (q) => O(x.value)
|
|
3426
3426
|
}, {
|
|
3427
3427
|
default: v(() => [
|
|
3428
|
-
|
|
3428
|
+
J(E(m(n)("filter.clearButtonText")), 1)
|
|
3429
3429
|
]),
|
|
3430
3430
|
_: 2
|
|
3431
3431
|
}, 1032, ["onClick"])
|
|
@@ -3441,7 +3441,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
|
3441
3441
|
onClick: y
|
|
3442
3442
|
}, {
|
|
3443
3443
|
default: v(() => [
|
|
3444
|
-
|
|
3444
|
+
J(E(m(n)("filter.clearAllButtonText")), 1)
|
|
3445
3445
|
]),
|
|
3446
3446
|
_: 1
|
|
3447
3447
|
})
|
|
@@ -3564,7 +3564,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3564
3564
|
class: "form-section-title"
|
|
3565
3565
|
}, {
|
|
3566
3566
|
default: v(() => [
|
|
3567
|
-
|
|
3567
|
+
J(E(e.title), 1)
|
|
3568
3568
|
]),
|
|
3569
3569
|
_: 1
|
|
3570
3570
|
}, 8, ["id"])) : G("", !0),
|
|
@@ -3583,12 +3583,12 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3583
3583
|
])
|
|
3584
3584
|
], 10, vl));
|
|
3585
3585
|
}
|
|
3586
|
-
}), Dt = /* @__PURE__ */ Te(Sl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Vn, useDeleteUrlBuilder: Al, useErrors: Il, useExternalLinkCreator: Yl, useFetchUrlBuilder:
|
|
3586
|
+
}), Dt = /* @__PURE__ */ Te(Sl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Vn, useDeleteUrlBuilder: Al, useErrors: Il, useExternalLinkCreator: Yl, useFetchUrlBuilder: Zl, useFetcher: xl, useDebouncedFilter: _l, useStringHelpers: Jl, useHelpers: Gl, useGatewayFeatureSupported: Ql, useTruncationDetector: Xl, useValidators: es } = we, Vt = "24px", Nl = (e, t) => {
|
|
3587
3587
|
const n = e.__vccOpts || e;
|
|
3588
3588
|
for (const [i, r] of t)
|
|
3589
3589
|
n[i] = r;
|
|
3590
3590
|
return n;
|
|
3591
|
-
}, Tl = (e) => (Be("data-v-
|
|
3591
|
+
}, Tl = (e) => (Be("data-v-f68c7837"), e = e(), Ke(), e), jl = ["aria-hidden"], Ol = {
|
|
3592
3592
|
key: 0,
|
|
3593
3593
|
"data-testid": "kui-icon-svg-title"
|
|
3594
3594
|
}, Fl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ L("path", {
|
|
@@ -3680,14 +3680,14 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3680
3680
|
width: "100%",
|
|
3681
3681
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3682
3682
|
}, [
|
|
3683
|
-
e.title ? (w(), $("title",
|
|
3683
|
+
e.title ? (w(), $("title", Ol, E(e.title), 1)) : G("", !0),
|
|
3684
3684
|
Fl
|
|
3685
|
-
], 8,
|
|
3685
|
+
], 8, jl))
|
|
3686
3686
|
]),
|
|
3687
3687
|
_: 1
|
|
3688
3688
|
}, 8, ["aria-hidden", "style"]));
|
|
3689
3689
|
}
|
|
3690
|
-
}), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-
|
|
3690
|
+
}), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-f68c7837"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */ te({
|
|
3691
3691
|
__name: "SniList",
|
|
3692
3692
|
props: {
|
|
3693
3693
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3734,7 +3734,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3734
3734
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
3735
3735
|
setup(e, { emit: t }) {
|
|
3736
3736
|
var ce;
|
|
3737
|
-
const n = t, i = e, { i18n: { t: r } } =
|
|
3737
|
+
const n = t, i = e, { i18n: { t: r } } = Jt.useI18n(), { axiosInstance: o } = Vn((ce = i.config) == null ? void 0 : ce.axiosRequestConfig), a = F(1), l = I(() => i.config.app !== "kongManager" || !!i.config.disableSorting), s = {
|
|
3738
3738
|
name: { label: r("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
3739
3739
|
certificate: { label: r("snis.list.table_headers.certificate_id"), sortable: !1 },
|
|
3740
3740
|
tags: { label: r("snis.list.table_headers.tags"), sortable: !1 }
|
|
@@ -3761,7 +3761,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3761
3761
|
};
|
|
3762
3762
|
}), { fetcher: k, fetcherState: C } = xl(i.config, c.value), S = () => {
|
|
3763
3763
|
f.value = "";
|
|
3764
|
-
},
|
|
3764
|
+
}, O = () => {
|
|
3765
3765
|
a.value++;
|
|
3766
3766
|
}, y = F(null), W = F({
|
|
3767
3767
|
ctaPath: i.config.createRoute,
|
|
@@ -3783,7 +3783,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3783
3783
|
field: "id",
|
|
3784
3784
|
message: r("copy.success", { val: Y })
|
|
3785
3785
|
});
|
|
3786
|
-
},
|
|
3786
|
+
}, j = (T, V) => {
|
|
3787
3787
|
const Y = JSON.stringify(T);
|
|
3788
3788
|
if (!V(Y)) {
|
|
3789
3789
|
n("copy:error", {
|
|
@@ -3847,7 +3847,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3847
3847
|
"table-headers": m(u),
|
|
3848
3848
|
"use-action-outside": e.useActionOutside,
|
|
3849
3849
|
onClearSearchInput: S,
|
|
3850
|
-
onSort:
|
|
3850
|
+
onSort: O
|
|
3851
3851
|
}, {
|
|
3852
3852
|
"toolbar-filter": v(() => [
|
|
3853
3853
|
N(m(pl), {
|
|
@@ -3873,7 +3873,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3873
3873
|
}, {
|
|
3874
3874
|
default: v(() => [
|
|
3875
3875
|
N(m(El)),
|
|
3876
|
-
|
|
3876
|
+
J(" " + E(m(r)("snis.list.toolbar_actions.new")), 1)
|
|
3877
3877
|
]),
|
|
3878
3878
|
_: 1
|
|
3879
3879
|
}, 8, ["to"]), [
|
|
@@ -3905,7 +3905,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3905
3905
|
}, ["stop"]))
|
|
3906
3906
|
}, {
|
|
3907
3907
|
default: v(() => [
|
|
3908
|
-
|
|
3908
|
+
J(E(K), 1)
|
|
3909
3909
|
]),
|
|
3910
3910
|
_: 2
|
|
3911
3911
|
}, 1024))), 128))
|
|
@@ -3921,7 +3921,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3921
3921
|
onClick: (Hn) => h(D, K)
|
|
3922
3922
|
}, {
|
|
3923
3923
|
default: v(() => [
|
|
3924
|
-
|
|
3924
|
+
J(E(m(r)("actions.copy_id")), 1)
|
|
3925
3925
|
]),
|
|
3926
3926
|
_: 2
|
|
3927
3927
|
}, 1032, ["onClick"])
|
|
@@ -3932,10 +3932,10 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3932
3932
|
default: v(({ copyToClipboard: K }) => [
|
|
3933
3933
|
N(ue, {
|
|
3934
3934
|
"data-testid": "action-entity-copy-json",
|
|
3935
|
-
onClick: (Hn) =>
|
|
3935
|
+
onClick: (Hn) => j(D, K)
|
|
3936
3936
|
}, {
|
|
3937
3937
|
default: v(() => [
|
|
3938
|
-
|
|
3938
|
+
J(E(m(r)("actions.copy_json")), 1)
|
|
3939
3939
|
]),
|
|
3940
3940
|
_: 2
|
|
3941
3941
|
}, 1032, ["onClick"])
|
|
@@ -3964,7 +3964,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3964
3964
|
onClick: (K) => q(D)
|
|
3965
3965
|
}, {
|
|
3966
3966
|
default: v(() => [
|
|
3967
|
-
|
|
3967
|
+
J(E(m(r)("actions.delete")), 1)
|
|
3968
3968
|
]),
|
|
3969
3969
|
_: 2
|
|
3970
3970
|
}, 1032, ["onClick"])
|
|
@@ -3974,7 +3974,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3974
3974
|
]),
|
|
3975
3975
|
_: 1
|
|
3976
3976
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
3977
|
-
N(m(
|
|
3977
|
+
N(m(Jo), {
|
|
3978
3978
|
"action-pending": x.value,
|
|
3979
3979
|
description: m(r)("delete.description"),
|
|
3980
3980
|
"entity-name": _.value && (_.value.name || _.value.id),
|
|
@@ -4017,7 +4017,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4017
4017
|
emits: ["update", "error", "loading"],
|
|
4018
4018
|
setup(e, { emit: t }) {
|
|
4019
4019
|
var Y;
|
|
4020
|
-
const n = t, i = e, r =
|
|
4020
|
+
const n = t, i = e, r = Zt(), { i18n: { t: o } } = Jt.useI18n(), { getMessageFromError: a } = Il(), { axiosInstance: l } = Vn((Y = i.config) == null ? void 0 : Y.axiosRequestConfig), s = I(() => Fe.form[i.config.app].edit), u = I(() => i.sniId ? De.Edit : De.Create), d = I(() => i.config.certificateId && u.value === De.Create ? i.config.certificateId : ""), c = vt({
|
|
4021
4021
|
fields: {
|
|
4022
4022
|
name: "",
|
|
4023
4023
|
tags: "",
|
|
@@ -4038,7 +4038,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4038
4038
|
var M, z;
|
|
4039
4039
|
let A = `${i.config.apiBaseUrl}${Fe.form[i.config.app].validate}`;
|
|
4040
4040
|
return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((M = i.config) == null ? void 0 : M.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (z = i.config) != null && z.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.sniId), A;
|
|
4041
|
-
}),
|
|
4041
|
+
}), O = I(() => {
|
|
4042
4042
|
var M, z;
|
|
4043
4043
|
let A = `${i.config.apiBaseUrl}${Fe.form[i.config.app][u.value]}`;
|
|
4044
4044
|
return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((M = i.config) == null ? void 0 : M.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (z = i.config) != null && z.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.sniId), A;
|
|
@@ -4054,7 +4054,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4054
4054
|
try {
|
|
4055
4055
|
c.isReadonly = !0;
|
|
4056
4056
|
let K;
|
|
4057
|
-
await l.post(S.value, y.value), u.value === "create" ? K = await l.post(
|
|
4057
|
+
await l.post(S.value, y.value), u.value === "create" ? K = await l.post(O.value, y.value) : u.value === "edit" && (K = ((A = i.config) == null ? void 0 : A.app) === "konnect" ? await l.put(O.value, y.value) : await l.patch(O.value, y.value)), c.fields.name = ((M = K == null ? void 0 : K.data) == null ? void 0 : M.name) || "", c.fields.tags = ((ue = (z = K == null ? void 0 : K.data) == null ? void 0 : z.tags) == null ? void 0 : ue.join(", ")) || "", c.fields.certificate_id = ((D = (re = K == null ? void 0 : K.data) == null ? void 0 : re.certificate) == null ? void 0 : D.id) || "", Object.assign(f, c.fields), n("update", K == null ? void 0 : K.data);
|
|
4058
4058
|
} catch (K) {
|
|
4059
4059
|
c.errorMessage = a(K), n("error", K);
|
|
4060
4060
|
} finally {
|
|
@@ -4062,7 +4062,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
}, {
|
|
4064
4064
|
debouncedQueryChange: h,
|
|
4065
|
-
loading:
|
|
4065
|
+
loading: j,
|
|
4066
4066
|
allRecords: g,
|
|
4067
4067
|
error: _,
|
|
4068
4068
|
validationError: U,
|
|
@@ -4162,7 +4162,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4162
4162
|
"filter-function": () => !0,
|
|
4163
4163
|
items: T.value,
|
|
4164
4164
|
label: m(o)("form.fields.certificate_id.label"),
|
|
4165
|
-
loading: m(
|
|
4165
|
+
loading: m(j),
|
|
4166
4166
|
placeholder: m(o)("form.fields.certificate_id.placeholder"),
|
|
4167
4167
|
readonly: c.isReadonly,
|
|
4168
4168
|
required: "",
|