@kong-ui-public/entities-snis 3.2.0 → 3.2.1
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 +115 -108
- package/dist/entities-snis.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/entities-snis.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent 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";
|
|
@@ -401,8 +401,8 @@ function Si(e, t, n, i = {
|
|
|
401
401
|
const x = await Promise.all(U), Q = /* @__PURE__ */ new Set();
|
|
402
402
|
c.value = [], (O = x == null ? void 0 : x.forEach) == null || O.call(x, (B) => {
|
|
403
403
|
var q;
|
|
404
|
-
(q = B == null ? void 0 : B.forEach) == null || q.call(B, (
|
|
405
|
-
Q.has(
|
|
404
|
+
(q = B == null ? void 0 : B.forEach) == null || q.call(B, (ie) => {
|
|
405
|
+
Q.has(ie.id) || (Q.add(ie.id), c.value.push(ie));
|
|
406
406
|
});
|
|
407
407
|
});
|
|
408
408
|
} else
|
|
@@ -642,7 +642,7 @@ const we = {
|
|
|
642
642
|
}, Li = "#0044f4", Ui = "#afb7c5", Ri = { class: "json-config" }, Bi = {
|
|
643
643
|
key: 0,
|
|
644
644
|
class: "json-endpoint"
|
|
645
|
-
}, Ki = /* @__PURE__ */
|
|
645
|
+
}, Ki = /* @__PURE__ */ te({
|
|
646
646
|
__name: "JsonCodeBlock",
|
|
647
647
|
props: {
|
|
648
648
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -837,7 +837,7 @@ function rr(e, t) {
|
|
|
837
837
|
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = ir(t.styleAliases || null), nr.indexOf(this.kind) === -1)
|
|
838
838
|
throw new ae('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
839
839
|
}
|
|
840
|
-
var
|
|
840
|
+
var ee = rr;
|
|
841
841
|
function xt(e, t) {
|
|
842
842
|
var n = [];
|
|
843
843
|
return e[t].forEach(function(i) {
|
|
@@ -872,7 +872,7 @@ function rt(e) {
|
|
|
872
872
|
}
|
|
873
873
|
rt.prototype.extend = function(e) {
|
|
874
874
|
var t = [], n = [];
|
|
875
|
-
if (e instanceof
|
|
875
|
+
if (e instanceof ee)
|
|
876
876
|
n.push(e);
|
|
877
877
|
else if (Array.isArray(e))
|
|
878
878
|
n = n.concat(e);
|
|
@@ -881,30 +881,30 @@ rt.prototype.extend = function(e) {
|
|
|
881
881
|
else
|
|
882
882
|
throw new ae("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
883
883
|
t.forEach(function(r) {
|
|
884
|
-
if (!(r instanceof
|
|
884
|
+
if (!(r instanceof ee))
|
|
885
885
|
throw new ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
886
886
|
if (r.loadKind && r.loadKind !== "scalar")
|
|
887
887
|
throw new ae("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
888
888
|
if (r.multi)
|
|
889
889
|
throw new ae("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
890
890
|
}), n.forEach(function(r) {
|
|
891
|
-
if (!(r instanceof
|
|
891
|
+
if (!(r instanceof ee))
|
|
892
892
|
throw new ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
893
893
|
});
|
|
894
894
|
var i = Object.create(rt.prototype);
|
|
895
895
|
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = xt(i, "implicit"), i.compiledExplicit = xt(i, "explicit"), i.compiledTypeMap = ar(i.compiledImplicit, i.compiledExplicit), i;
|
|
896
896
|
};
|
|
897
|
-
var an = rt, on = new
|
|
897
|
+
var an = rt, on = new ee("tag:yaml.org,2002:str", {
|
|
898
898
|
kind: "scalar",
|
|
899
899
|
construct: function(e) {
|
|
900
900
|
return e !== null ? e : "";
|
|
901
901
|
}
|
|
902
|
-
}), ln = new
|
|
902
|
+
}), ln = new ee("tag:yaml.org,2002:seq", {
|
|
903
903
|
kind: "sequence",
|
|
904
904
|
construct: function(e) {
|
|
905
905
|
return e !== null ? e : [];
|
|
906
906
|
}
|
|
907
|
-
}), sn = new
|
|
907
|
+
}), sn = new ee("tag:yaml.org,2002:map", {
|
|
908
908
|
kind: "mapping",
|
|
909
909
|
construct: function(e) {
|
|
910
910
|
return e !== null ? e : {};
|
|
@@ -928,7 +928,7 @@ function lr() {
|
|
|
928
928
|
function sr(e) {
|
|
929
929
|
return e === null;
|
|
930
930
|
}
|
|
931
|
-
var un = new
|
|
931
|
+
var un = new ee("tag:yaml.org,2002:null", {
|
|
932
932
|
kind: "scalar",
|
|
933
933
|
resolve: or,
|
|
934
934
|
construct: lr,
|
|
@@ -964,7 +964,7 @@ function ur(e) {
|
|
|
964
964
|
function dr(e) {
|
|
965
965
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
966
966
|
}
|
|
967
|
-
var dn = new
|
|
967
|
+
var dn = new ee("tag:yaml.org,2002:bool", {
|
|
968
968
|
kind: "scalar",
|
|
969
969
|
resolve: cr,
|
|
970
970
|
construct: ur,
|
|
@@ -1055,7 +1055,7 @@ function mr(e) {
|
|
|
1055
1055
|
function yr(e) {
|
|
1056
1056
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Z.isNegativeZero(e);
|
|
1057
1057
|
}
|
|
1058
|
-
var pn = new
|
|
1058
|
+
var pn = new ee("tag:yaml.org,2002:int", {
|
|
1059
1059
|
kind: "scalar",
|
|
1060
1060
|
resolve: hr,
|
|
1061
1061
|
construct: mr,
|
|
@@ -1132,7 +1132,7 @@ function Cr(e, t) {
|
|
|
1132
1132
|
function Sr(e) {
|
|
1133
1133
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Z.isNegativeZero(e));
|
|
1134
1134
|
}
|
|
1135
|
-
var fn = new
|
|
1135
|
+
var fn = new ee("tag:yaml.org,2002:float", {
|
|
1136
1136
|
kind: "scalar",
|
|
1137
1137
|
resolve: br,
|
|
1138
1138
|
construct: wr,
|
|
@@ -1170,7 +1170,7 @@ function Ir(e) {
|
|
|
1170
1170
|
function xr(e) {
|
|
1171
1171
|
return e.toISOString();
|
|
1172
1172
|
}
|
|
1173
|
-
var vn = new
|
|
1173
|
+
var vn = new ee("tag:yaml.org,2002:timestamp", {
|
|
1174
1174
|
kind: "scalar",
|
|
1175
1175
|
resolve: Ar,
|
|
1176
1176
|
construct: Ir,
|
|
@@ -1180,7 +1180,7 @@ var vn = new te("tag:yaml.org,2002:timestamp", {
|
|
|
1180
1180
|
function _r(e) {
|
|
1181
1181
|
return e === "<<" || e === null;
|
|
1182
1182
|
}
|
|
1183
|
-
var bn = new
|
|
1183
|
+
var bn = new ee("tag:yaml.org,2002:merge", {
|
|
1184
1184
|
kind: "scalar",
|
|
1185
1185
|
resolve: _r
|
|
1186
1186
|
}), pt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1212,7 +1212,7 @@ function Or(e) {
|
|
|
1212
1212
|
function jr(e) {
|
|
1213
1213
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1214
1214
|
}
|
|
1215
|
-
var wn = new
|
|
1215
|
+
var wn = new ee("tag:yaml.org,2002:binary", {
|
|
1216
1216
|
kind: "scalar",
|
|
1217
1217
|
resolve: Nr,
|
|
1218
1218
|
construct: Tr,
|
|
@@ -1244,7 +1244,7 @@ function Er(e) {
|
|
|
1244
1244
|
function $r(e) {
|
|
1245
1245
|
return e !== null ? e : [];
|
|
1246
1246
|
}
|
|
1247
|
-
var kn = new
|
|
1247
|
+
var kn = new ee("tag:yaml.org,2002:omap", {
|
|
1248
1248
|
kind: "sequence",
|
|
1249
1249
|
resolve: Er,
|
|
1250
1250
|
construct: $r
|
|
@@ -1268,7 +1268,7 @@ function Ur(e) {
|
|
|
1268
1268
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1269
1269
|
return o;
|
|
1270
1270
|
}
|
|
1271
|
-
var Cn = new
|
|
1271
|
+
var Cn = new ee("tag:yaml.org,2002:pairs", {
|
|
1272
1272
|
kind: "sequence",
|
|
1273
1273
|
resolve: Lr,
|
|
1274
1274
|
construct: Ur
|
|
@@ -1285,7 +1285,7 @@ function Br(e) {
|
|
|
1285
1285
|
function Kr(e) {
|
|
1286
1286
|
return e !== null ? e : {};
|
|
1287
1287
|
}
|
|
1288
|
-
var Sn = new
|
|
1288
|
+
var Sn = new ee("tag:yaml.org,2002:set", {
|
|
1289
1289
|
kind: "mapping",
|
|
1290
1290
|
resolve: Br,
|
|
1291
1291
|
construct: Kr
|
|
@@ -1313,7 +1313,7 @@ function ke(e) {
|
|
|
1313
1313
|
function oe(e) {
|
|
1314
1314
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function xe(e) {
|
|
1317
1317
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1318
1318
|
}
|
|
1319
1319
|
function Hr(e) {
|
|
@@ -1337,8 +1337,8 @@ function Zr(e) {
|
|
|
1337
1337
|
);
|
|
1338
1338
|
}
|
|
1339
1339
|
var Nn = new Array(256), Tn = new Array(256);
|
|
1340
|
-
for (var
|
|
1341
|
-
Nn[
|
|
1340
|
+
for (var Ae = 0; Ae < 256; Ae++)
|
|
1341
|
+
Nn[Ae] = Tt(Ae) ? 1 : 0, Tn[Ae] = Tt(Ae);
|
|
1342
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
|
}
|
|
@@ -1391,7 +1391,7 @@ function jt(e, t, n, i) {
|
|
|
1391
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
|
-
function
|
|
1394
|
+
function _e(e, t, n, i, r, o, a, l, s) {
|
|
1395
1395
|
var u, d;
|
|
1396
1396
|
if (Array.isArray(r))
|
|
1397
1397
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
@@ -1441,17 +1441,17 @@ function ht(e, t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
function Gr(e, t, n) {
|
|
1443
1443
|
var i, r, o, a, l, s, u, d, c = e.kind, f = e.result, p;
|
|
1444
|
-
if (p = e.input.charCodeAt(e.position), oe(p) ||
|
|
1444
|
+
if (p = e.input.charCodeAt(e.position), oe(p) || xe(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (r = e.input.charCodeAt(e.position + 1), oe(r) || n && xe(r)))
|
|
1445
1445
|
return !1;
|
|
1446
1446
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; p !== 0; ) {
|
|
1447
1447
|
if (p === 58) {
|
|
1448
|
-
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n &&
|
|
1448
|
+
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n && xe(r))
|
|
1449
1449
|
break;
|
|
1450
1450
|
} else if (p === 35) {
|
|
1451
1451
|
if (i = e.input.charCodeAt(e.position - 1), oe(i))
|
|
1452
1452
|
break;
|
|
1453
1453
|
} else {
|
|
1454
|
-
if (e.position === e.lineStart && Je(e) || n &&
|
|
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) {
|
|
@@ -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 = j = 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,
|
|
1518
|
+
n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = j = 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), j = e.result), p ? _e(e, l, k, S, C, j, i, r, o) : c ? l.push(_e(e, null, k, S, C, j, 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
|
}
|
|
@@ -1575,7 +1575,7 @@ function Ft(e, t) {
|
|
|
1575
1575
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1576
1576
|
continue;
|
|
1577
1577
|
}
|
|
1578
|
-
if (n = e.line,
|
|
1578
|
+
if (n = e.line, Ne(e, t, In, !1, !0), o.push(e.result), H(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1579
1579
|
b(e, "bad indentation of a sequence entry");
|
|
1580
1580
|
else if (e.lineIndent < t)
|
|
1581
1581
|
break;
|
|
@@ -1588,15 +1588,15 @@ function na(e, t, n) {
|
|
|
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 && (
|
|
1591
|
+
y === 63 ? (S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), j = !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
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1593
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Ne(e, n, An, !1, !0))
|
|
1594
1594
|
break;
|
|
1595
1595
|
if (e.line === o) {
|
|
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 && (
|
|
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), j = !0, S = !1, r = !1, p = e.tag, k = e.result;
|
|
1600
1600
|
else if (j)
|
|
1601
1601
|
b(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1602
1602
|
else
|
|
@@ -1606,12 +1606,12 @@ function na(e, t, n) {
|
|
|
1606
1606
|
else
|
|
1607
1607
|
return e.tag = u, e.anchor = d, !0;
|
|
1608
1608
|
}
|
|
1609
|
-
if ((e.line === o || e.lineIndent > t) && (S && (a = e.line, l = e.lineStart, s = e.position),
|
|
1609
|
+
if ((e.line === o || e.lineIndent > t) && (S && (a = e.line, l = e.lineStart, s = e.position), Ne(e, t, ze, !0, r) && (S ? k = e.result : C = e.result), S || (_e(e, c, f, p, k, C, a, l, s), p = k = C = null), H(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && y !== 0)
|
|
1610
1610
|
b(e, "bad indentation of a mapping entry");
|
|
1611
1611
|
else if (e.lineIndent < t)
|
|
1612
1612
|
break;
|
|
1613
1613
|
}
|
|
1614
|
-
return S &&
|
|
1614
|
+
return S && _e(e, c, f, p, k, null, a, l, s), j && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), j;
|
|
1615
1615
|
}
|
|
1616
1616
|
function ia(e) {
|
|
1617
1617
|
var t, n = !1, i = !1, r, o, a;
|
|
@@ -1639,7 +1639,7 @@ function ra(e) {
|
|
|
1639
1639
|
var t, n;
|
|
1640
1640
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
1641
1641
|
return !1;
|
|
1642
|
-
for (e.anchor !== null && b(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !
|
|
1642
|
+
for (e.anchor !== null && b(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !xe(n); )
|
|
1643
1643
|
n = e.input.charCodeAt(++e.position);
|
|
1644
1644
|
return e.position === t && b(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1645
1645
|
}
|
|
@@ -1647,11 +1647,11 @@ function aa(e) {
|
|
|
1647
1647
|
var t, n, i;
|
|
1648
1648
|
if (i = e.input.charCodeAt(e.position), i !== 42)
|
|
1649
1649
|
return !1;
|
|
1650
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !
|
|
1650
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !xe(i); )
|
|
1651
1651
|
i = e.input.charCodeAt(++e.position);
|
|
1652
1652
|
return e.position === t && b(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || b(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], H(e, !0, -1), !0;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function Ne(e, t, n, i, r) {
|
|
1655
1655
|
var o, a, l, s = 1, u = !1, d = !1, c, f, p, k, C, S;
|
|
1656
1656
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = ze === n || In === n, i && H(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1657
1657
|
for (; ia(e) || ra(e); )
|
|
@@ -1699,7 +1699,7 @@ function oa(e) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
a !== 0 && gt(e), ye.call(Ot, i) ? Ot[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"),
|
|
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
|
}
|
|
@@ -1737,22 +1737,22 @@ function sa(e, t) {
|
|
|
1737
1737
|
var ca = la, ua = sa, Fn = {
|
|
1738
1738
|
loadAll: ca,
|
|
1739
1739
|
load: ua
|
|
1740
|
-
}, Mn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, mt = 65279, da = 9, qe = 10, pa = 13, fa = 32, ga = 33, ha = 34, at = 35, ma = 37, ya = 38, va = 39, ba = 42, $n = 44, wa = 45, We = 58, ka = 61, Ca = 62, Sa = 63, Aa = 64, qn = 91, Ln = 93, Ia = 96, Un = 123, xa = 124, Rn = 125,
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1740
|
+
}, Mn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, mt = 65279, da = 9, qe = 10, pa = 13, fa = 32, ga = 33, ha = 34, at = 35, ma = 37, ya = 38, va = 39, ba = 42, $n = 44, wa = 45, We = 58, ka = 61, Ca = 62, Sa = 63, Aa = 64, qn = 91, Ln = 93, Ia = 96, Un = 123, xa = 124, Rn = 125, ne = {};
|
|
1741
|
+
ne[0] = "\\0";
|
|
1742
|
+
ne[7] = "\\a";
|
|
1743
|
+
ne[8] = "\\b";
|
|
1744
|
+
ne[9] = "\\t";
|
|
1745
|
+
ne[10] = "\\n";
|
|
1746
|
+
ne[11] = "\\v";
|
|
1747
|
+
ne[12] = "\\f";
|
|
1748
|
+
ne[13] = "\\r";
|
|
1749
|
+
ne[27] = "\\e";
|
|
1750
|
+
ne[34] = '\\"';
|
|
1751
|
+
ne[92] = "\\\\";
|
|
1752
|
+
ne[133] = "\\N";
|
|
1753
|
+
ne[160] = "\\_";
|
|
1754
|
+
ne[8232] = "\\L";
|
|
1755
|
+
ne[8233] = "\\P";
|
|
1756
1756
|
var _a = [
|
|
1757
1757
|
"y",
|
|
1758
1758
|
"Y",
|
|
@@ -1846,13 +1846,13 @@ function Bn(e) {
|
|
|
1846
1846
|
var t = /^\n* /;
|
|
1847
1847
|
return t.test(e);
|
|
1848
1848
|
}
|
|
1849
|
-
var Kn = 1, lt = 2, Pn = 3, Dn = 4,
|
|
1849
|
+
var Kn = 1, lt = 2, Pn = 3, Dn = 4, Ie = 5;
|
|
1850
1850
|
function qa(e, t, n, i, r, o, a, l) {
|
|
1851
1851
|
var s, u = 0, d = null, c = !1, f = !1, p = i !== -1, k = -1, C = Ea(Me(e, 0)) && $a(Me(e, e.length - 1));
|
|
1852
1852
|
if (t || a)
|
|
1853
1853
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
1854
1854
|
if (u = Me(e, s), !Ue(u))
|
|
1855
|
-
return
|
|
1855
|
+
return Ie;
|
|
1856
1856
|
C = C && $t(u, d, l), d = u;
|
|
1857
1857
|
}
|
|
1858
1858
|
else {
|
|
@@ -1861,12 +1861,12 @@ function qa(e, t, n, i, r, o, a, l) {
|
|
|
1861
1861
|
c = !0, p && (f = f || // Foldable line = too long, and not more-indented.
|
|
1862
1862
|
s - k - 1 > i && e[k + 1] !== " ", k = s);
|
|
1863
1863
|
else if (!Ue(u))
|
|
1864
|
-
return
|
|
1864
|
+
return Ie;
|
|
1865
1865
|
C = C && $t(u, d, l), d = u;
|
|
1866
1866
|
}
|
|
1867
1867
|
f = f || p && s - k - 1 > i && e[k + 1] !== " ";
|
|
1868
1868
|
}
|
|
1869
|
-
return !c && !f ? C && !a && !r(e) ? Kn : o === Le ?
|
|
1869
|
+
return !c && !f ? C && !a && !r(e) ? Kn : o === Le ? Ie : lt : n > 9 && Bn(e) ? Ie : a ? o === Le ? Ie : lt : f ? Dn : Pn;
|
|
1870
1870
|
}
|
|
1871
1871
|
function La(e, t, n, i, r) {
|
|
1872
1872
|
e.dump = function() {
|
|
@@ -1896,7 +1896,7 @@ function La(e, t, n, i, r) {
|
|
|
1896
1896
|
return "|" + qt(t, e.indent) + Lt(Mt(t, o));
|
|
1897
1897
|
case Dn:
|
|
1898
1898
|
return ">" + qt(t, e.indent) + Lt(Mt(Ua(t, a), o));
|
|
1899
|
-
case
|
|
1899
|
+
case Ie:
|
|
1900
1900
|
return '"' + Ra(t) + '"';
|
|
1901
1901
|
default:
|
|
1902
1902
|
throw new ae("impossible error: invalid scalar style");
|
|
@@ -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 =
|
|
1943
|
+
n = Me(e, r), i = ne[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Oa(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 =
|
|
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,
|
|
@@ -2079,7 +2079,7 @@ var Wa = te, Ya = an, Za = cn, Ja = gn, Ga = hn, Qa = ft, Xa = Fn.load, eo = Fn.
|
|
|
2079
2079
|
safeLoadAll: ao,
|
|
2080
2080
|
safeDump: oo
|
|
2081
2081
|
};
|
|
2082
|
-
const so = { class: "yaml-config" }, co = /* @__PURE__ */
|
|
2082
|
+
const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
|
|
2083
2083
|
__name: "YamlCodeBlock",
|
|
2084
2084
|
props: {
|
|
2085
2085
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2117,7 +2117,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2117
2117
|
}, go = /* @__PURE__ */ uo(() => /* @__PURE__ */ L("path", {
|
|
2118
2118
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2119
2119
|
fill: "currentColor"
|
|
2120
|
-
}, null, -1)), ho = /* @__PURE__ */
|
|
2120
|
+
}, null, -1)), ho = /* @__PURE__ */ te({
|
|
2121
2121
|
__name: "AddIcon",
|
|
2122
2122
|
props: {
|
|
2123
2123
|
/** The accessibility text provided to screen readers */
|
|
@@ -2186,7 +2186,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2186
2186
|
lineHeight: "0",
|
|
2187
2187
|
width: n.value
|
|
2188
2188
|
}));
|
|
2189
|
-
return (r, o) => (w(), P(
|
|
2189
|
+
return (r, o) => (w(), P(Ce(e.as), {
|
|
2190
2190
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2191
2191
|
class: "kui-icon add-icon",
|
|
2192
2192
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -2216,7 +2216,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2216
2216
|
}, wo = /* @__PURE__ */ yo(() => /* @__PURE__ */ L("path", {
|
|
2217
2217
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2218
2218
|
fill: "currentColor"
|
|
2219
|
-
}, null, -1)), ko = /* @__PURE__ */
|
|
2219
|
+
}, null, -1)), ko = /* @__PURE__ */ te({
|
|
2220
2220
|
__name: "ChevronDownIcon",
|
|
2221
2221
|
props: {
|
|
2222
2222
|
/** The accessibility text provided to screen readers */
|
|
@@ -2285,7 +2285,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2285
2285
|
lineHeight: "0",
|
|
2286
2286
|
width: n.value
|
|
2287
2287
|
}));
|
|
2288
|
-
return (r, o) => (w(), P(
|
|
2288
|
+
return (r, o) => (w(), P(Ce(e.as), {
|
|
2289
2289
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2290
2290
|
class: "kui-icon chevron-down-icon",
|
|
2291
2291
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -2315,7 +2315,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2315
2315
|
}, xo = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
|
|
2316
2316
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2317
2317
|
fill: "currentColor"
|
|
2318
|
-
}, null, -1)), _o = /* @__PURE__ */
|
|
2318
|
+
}, null, -1)), _o = /* @__PURE__ */ te({
|
|
2319
2319
|
__name: "CloseIcon",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
/** The accessibility text provided to screen readers */
|
|
@@ -2384,7 +2384,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2384
2384
|
lineHeight: "0",
|
|
2385
2385
|
width: n.value
|
|
2386
2386
|
}));
|
|
2387
|
-
return (r, o) => (w(), P(
|
|
2387
|
+
return (r, o) => (w(), P(Ce(e.as), {
|
|
2388
2388
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2389
2389
|
class: "kui-icon close-icon",
|
|
2390
2390
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -2414,7 +2414,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2414
2414
|
}, Fo = /* @__PURE__ */ To(() => /* @__PURE__ */ L("path", {
|
|
2415
2415
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
2416
2416
|
fill: "currentColor"
|
|
2417
|
-
}, null, -1)), Mo = /* @__PURE__ */
|
|
2417
|
+
}, null, -1)), Mo = /* @__PURE__ */ te({
|
|
2418
2418
|
__name: "MoreIcon",
|
|
2419
2419
|
props: {
|
|
2420
2420
|
/** The accessibility text provided to screen readers */
|
|
@@ -2483,7 +2483,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2483
2483
|
lineHeight: "0",
|
|
2484
2484
|
width: n.value
|
|
2485
2485
|
}));
|
|
2486
|
-
return (r, o) => (w(), P(
|
|
2486
|
+
return (r, o) => (w(), P(Ce(e.as), {
|
|
2487
2487
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2488
2488
|
class: "kui-icon more-icon",
|
|
2489
2489
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
@@ -2510,7 +2510,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2510
2510
|
}), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-cf4e7d0b"]]), $o = ["novalidate"], qo = {
|
|
2511
2511
|
class: "form-actions",
|
|
2512
2512
|
"data-testid": "form-actions"
|
|
2513
|
-
}, Lo = /* @__PURE__ */
|
|
2513
|
+
}, Lo = /* @__PURE__ */ te({
|
|
2514
2514
|
__name: "EntityBaseForm",
|
|
2515
2515
|
props: {
|
|
2516
2516
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2567,6 +2567,13 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2567
2567
|
noValidate: {
|
|
2568
2568
|
type: Boolean,
|
|
2569
2569
|
default: !1
|
|
2570
|
+
},
|
|
2571
|
+
/**
|
|
2572
|
+
* Wrapper component to use at component's root level.
|
|
2573
|
+
*/
|
|
2574
|
+
wrapperComponent: {
|
|
2575
|
+
type: String,
|
|
2576
|
+
default: "KCard"
|
|
2570
2577
|
}
|
|
2571
2578
|
},
|
|
2572
2579
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
@@ -2609,8 +2616,8 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2609
2616
|
u.value = !1;
|
|
2610
2617
|
}
|
|
2611
2618
|
}), (h, O) => {
|
|
2612
|
-
const g = R("KSkeleton"), _ = R("KEmptyState"), U = R("KAlert"), x = R("KButton"), Q = R("KTabs"), B = R("KSlideout")
|
|
2613
|
-
return w(), P(
|
|
2619
|
+
const g = R("KSkeleton"), _ = R("KEmptyState"), U = R("KAlert"), x = R("KButton"), Q = R("KTabs"), B = R("KSlideout");
|
|
2620
|
+
return w(), P(Ce(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
2614
2621
|
default: v(() => [
|
|
2615
2622
|
u.value ? (w(), P(g, {
|
|
2616
2623
|
key: 0,
|
|
@@ -2645,7 +2652,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2645
2652
|
N(x, {
|
|
2646
2653
|
appearance: "tertiary",
|
|
2647
2654
|
"data-testid": "form-view-configuration",
|
|
2648
|
-
onClick: O[0] || (O[0] = (
|
|
2655
|
+
onClick: O[0] || (O[0] = (q) => C())
|
|
2649
2656
|
}, {
|
|
2650
2657
|
default: v(() => [
|
|
2651
2658
|
J(E(m(a)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -2684,7 +2691,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2684
2691
|
"offset-top": 60,
|
|
2685
2692
|
title: m(a)("baseForm.configuration.title"),
|
|
2686
2693
|
visible: p.value,
|
|
2687
|
-
onClose: O[1] || (O[1] = (
|
|
2694
|
+
onClose: O[1] || (O[1] = (q) => C())
|
|
2688
2695
|
}, {
|
|
2689
2696
|
default: v(() => [
|
|
2690
2697
|
L("div", null, E(m(a)("baseForm.configuration.message")), 1),
|
|
@@ -2715,7 +2722,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2715
2722
|
});
|
|
2716
2723
|
};
|
|
2717
2724
|
}
|
|
2718
|
-
}), Uo = /* @__PURE__ */ Te(Lo, [["__scopeId", "data-v-
|
|
2725
|
+
}), Uo = /* @__PURE__ */ Te(Lo, [["__scopeId", "data-v-fd05df8e"]]), Ro = ["data-truncate"], Bo = /* @__PURE__ */ te({
|
|
2719
2726
|
__name: "EntityBaseTableCell",
|
|
2720
2727
|
props: {
|
|
2721
2728
|
keyName: {
|
|
@@ -2801,7 +2808,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
2801
2808
|
}), Ko = /* @__PURE__ */ Te(Bo, [["__scopeId", "data-v-471ce76e"]]), Po = { class: "toolbar-container" }, Do = {
|
|
2802
2809
|
key: 0,
|
|
2803
2810
|
class: "toolbar-button-container"
|
|
2804
|
-
}, Vo = ["data-testid"], zo = /* @__PURE__ */
|
|
2811
|
+
}, Vo = ["data-testid"], zo = /* @__PURE__ */ te({
|
|
2805
2812
|
__name: "EntityBaseTable",
|
|
2806
2813
|
props: {
|
|
2807
2814
|
// table header configuration
|
|
@@ -3029,7 +3036,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3029
3036
|
[ge, l(q)]
|
|
3030
3037
|
])
|
|
3031
3038
|
]),
|
|
3032
|
-
actions: v(({ row: q, rowKey:
|
|
3039
|
+
actions: v(({ row: q, rowKey: ie, rowValue: pe }) => [
|
|
3033
3040
|
L("div", {
|
|
3034
3041
|
class: "actions-container",
|
|
3035
3042
|
"data-testid": q.name
|
|
@@ -3041,7 +3048,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3041
3048
|
items: v(() => [
|
|
3042
3049
|
le(g.$slots, "actions", {
|
|
3043
3050
|
row: q,
|
|
3044
|
-
rowKey:
|
|
3051
|
+
rowKey: ie,
|
|
3045
3052
|
rowValue: pe
|
|
3046
3053
|
}, void 0, !0)
|
|
3047
3054
|
]),
|
|
@@ -3065,18 +3072,18 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3065
3072
|
]),
|
|
3066
3073
|
_: 2
|
|
3067
3074
|
}, [
|
|
3068
|
-
ut(e.tableHeaders, (q,
|
|
3069
|
-
name:
|
|
3070
|
-
fn: v(({ row: pe, rowKey:
|
|
3075
|
+
ut(e.tableHeaders, (q, ie) => ({
|
|
3076
|
+
name: ie,
|
|
3077
|
+
fn: v(({ row: pe, rowKey: Se, rowValue: ce }) => [
|
|
3071
3078
|
N(Ko, {
|
|
3072
|
-
"key-name": String(
|
|
3079
|
+
"key-name": String(ie),
|
|
3073
3080
|
"row-el": c(pe),
|
|
3074
3081
|
tooltip: q.tooltip
|
|
3075
3082
|
}, {
|
|
3076
3083
|
default: v(() => [
|
|
3077
|
-
le(g.$slots,
|
|
3084
|
+
le(g.$slots, ie, {
|
|
3078
3085
|
row: pe,
|
|
3079
|
-
rowKey:
|
|
3086
|
+
rowKey: Se,
|
|
3080
3087
|
rowValue: ce
|
|
3081
3088
|
}, () => [
|
|
3082
3089
|
J(E(ce), 1)
|
|
@@ -3105,7 +3112,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3105
3112
|
}, Yo = {
|
|
3106
3113
|
key: 1,
|
|
3107
3114
|
class: "description"
|
|
3108
|
-
}, Zo = /* @__PURE__ */
|
|
3115
|
+
}, Zo = /* @__PURE__ */ te({
|
|
3109
3116
|
__name: "EntityDeleteModal",
|
|
3110
3117
|
props: {
|
|
3111
3118
|
visible: {
|
|
@@ -3213,7 +3220,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3213
3220
|
width: "20",
|
|
3214
3221
|
x: "0",
|
|
3215
3222
|
y: "0"
|
|
3216
|
-
}, Xo = ["fill"], el = { mask: "url(#mask0_180_20349)" }, tl = ["fill"], Kt = /* @__PURE__ */
|
|
3223
|
+
}, Xo = ["fill"], el = { mask: "url(#mask0_180_20349)" }, tl = ["fill"], Kt = /* @__PURE__ */ te({
|
|
3217
3224
|
__name: "IconFilter",
|
|
3218
3225
|
props: {
|
|
3219
3226
|
color: {
|
|
@@ -3241,7 +3248,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3241
3248
|
}), nl = {
|
|
3242
3249
|
key: 1,
|
|
3243
3250
|
class: "kong-ui-entity-filter"
|
|
3244
|
-
}, il = { class: "kong-ui-entity-filter-menu" }, rl = ["data-testid"], al = ["onClick", "onKeydown"], ol = { class: "menu-item-indicator" }, ll = { class: "menu-item-body" }, sl = ["for"], cl = { class: "menu-item-buttons" }, ul = { class: "filter-clear-button-container" }, dl = /* @__PURE__ */
|
|
3251
|
+
}, il = { class: "kong-ui-entity-filter-menu" }, rl = ["data-testid"], al = ["onClick", "onKeydown"], ol = { class: "menu-item-indicator" }, ll = { class: "menu-item-body" }, sl = ["for"], cl = { class: "menu-item-buttons" }, ul = { class: "filter-clear-button-container" }, dl = /* @__PURE__ */ te({
|
|
3245
3252
|
__name: "EntityFilter",
|
|
3246
3253
|
props: {
|
|
3247
3254
|
// filter config, either exact match or fuzzy match
|
|
@@ -3445,7 +3452,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
|
3445
3452
|
]));
|
|
3446
3453
|
};
|
|
3447
3454
|
}
|
|
3448
|
-
}), pl = /* @__PURE__ */ Te(dl, [["__scopeId", "data-v-94990087"]]), nt = /* @__PURE__ */
|
|
3455
|
+
}), pl = /* @__PURE__ */ Te(dl, [["__scopeId", "data-v-94990087"]]), nt = /* @__PURE__ */ te({
|
|
3449
3456
|
__name: "PermissionsWrapper",
|
|
3450
3457
|
props: {
|
|
3451
3458
|
/**
|
|
@@ -3483,11 +3490,11 @@ function gl() {
|
|
|
3483
3490
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3484
3491
|
return Pe(fl);
|
|
3485
3492
|
}
|
|
3486
|
-
const
|
|
3493
|
+
const X = [];
|
|
3487
3494
|
for (let e = 0; e < 256; ++e)
|
|
3488
|
-
|
|
3495
|
+
X.push((e + 256).toString(16).slice(1));
|
|
3489
3496
|
function hl(e, t = 0) {
|
|
3490
|
-
return
|
|
3497
|
+
return X[e[t + 0]] + X[e[t + 1]] + X[e[t + 2]] + X[e[t + 3]] + "-" + X[e[t + 4]] + X[e[t + 5]] + "-" + X[e[t + 6]] + X[e[t + 7]] + "-" + X[e[t + 8]] + X[e[t + 9]] + "-" + X[e[t + 10]] + X[e[t + 11]] + X[e[t + 12]] + X[e[t + 13]] + X[e[t + 14]] + X[e[t + 15]];
|
|
3491
3498
|
}
|
|
3492
3499
|
const ml = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pt = {
|
|
3493
3500
|
randomUUID: ml
|
|
@@ -3511,7 +3518,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3511
3518
|
}, kl = {
|
|
3512
3519
|
key: 2,
|
|
3513
3520
|
class: "form-section-footer"
|
|
3514
|
-
}, Cl = { class: "form-section-content" }, Sl = /* @__PURE__ */
|
|
3521
|
+
}, Cl = { class: "form-section-content" }, Sl = /* @__PURE__ */ te({
|
|
3515
3522
|
__name: "EntityFormSection",
|
|
3516
3523
|
props: {
|
|
3517
3524
|
title: {
|
|
@@ -3551,7 +3558,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3551
3558
|
key: 0,
|
|
3552
3559
|
class: Ee(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3553
3560
|
}, [
|
|
3554
|
-
e.title ? (w(), P(
|
|
3561
|
+
e.title ? (w(), P(Ce(e.titleTag), {
|
|
3555
3562
|
key: 0,
|
|
3556
3563
|
id: m(n),
|
|
3557
3564
|
class: "form-section-title"
|
|
@@ -3587,7 +3594,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3587
3594
|
}, Fl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ L("path", {
|
|
3588
3595
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
3589
3596
|
fill: "currentColor"
|
|
3590
|
-
}, null, -1)), Ml = /* @__PURE__ */
|
|
3597
|
+
}, null, -1)), Ml = /* @__PURE__ */ te({
|
|
3591
3598
|
__name: "AddIcon",
|
|
3592
3599
|
props: {
|
|
3593
3600
|
/** The accessibility text provided to screen readers */
|
|
@@ -3656,7 +3663,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3656
3663
|
lineHeight: "0",
|
|
3657
3664
|
width: n.value
|
|
3658
3665
|
}));
|
|
3659
|
-
return (r, o) => (w(), P(
|
|
3666
|
+
return (r, o) => (w(), P(Ce(e.as), {
|
|
3660
3667
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3661
3668
|
class: "kui-icon add-icon",
|
|
3662
3669
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -3680,7 +3687,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3680
3687
|
_: 1
|
|
3681
3688
|
}, 8, ["aria-hidden", "style"]));
|
|
3682
3689
|
}
|
|
3683
|
-
}), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-1d2a8d30"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */
|
|
3690
|
+
}), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-1d2a8d30"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */ te({
|
|
3684
3691
|
__name: "SniList",
|
|
3685
3692
|
props: {
|
|
3686
3693
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3794,24 +3801,24 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3794
3801
|
to: i.config.getEditRoute(T)
|
|
3795
3802
|
}), _ = F(void 0), U = F(!1), x = F(!1), Q = F(""), B = Al(i.config, c.value), q = (T) => {
|
|
3796
3803
|
_.value = T, U.value = !0;
|
|
3797
|
-
},
|
|
3804
|
+
}, ie = () => {
|
|
3798
3805
|
U.value = !1, _.value = void 0;
|
|
3799
3806
|
}, pe = async () => {
|
|
3800
3807
|
var T, V, Y;
|
|
3801
3808
|
if ((T = _.value) != null && T.id) {
|
|
3802
3809
|
x.value = !0;
|
|
3803
3810
|
try {
|
|
3804
|
-
await o.delete(B(_.value.id)), n("delete:success", _.value), x.value = !1,
|
|
3811
|
+
await o.delete(B(_.value.id)), n("delete:success", _.value), x.value = !1, ie(), a.value++;
|
|
3805
3812
|
} catch (A) {
|
|
3806
3813
|
Q.value = ((Y = (V = A.response) == null ? void 0 : V.data) == null ? void 0 : Y.message) || A.message || r("errors.delete"), n("error", A);
|
|
3807
3814
|
} finally {
|
|
3808
3815
|
x.value = !1;
|
|
3809
3816
|
}
|
|
3810
3817
|
}
|
|
3811
|
-
},
|
|
3818
|
+
}, Se = F(!0);
|
|
3812
3819
|
return me(C, (T) => {
|
|
3813
3820
|
var V, Y, A, M;
|
|
3814
|
-
if (Array.isArray((V = T == null ? void 0 : T.response) == null ? void 0 : V.data) && (
|
|
3821
|
+
if (Array.isArray((V = T == null ? void 0 : T.response) == null ? void 0 : V.data) && (Se.value = T.response.data.length > 0), T.status === be.Error) {
|
|
3815
3822
|
y.value = {
|
|
3816
3823
|
title: r("errors.general")
|
|
3817
3824
|
}, (M = (A = (Y = T.error) == null ? void 0 : Y.response) == null ? void 0 : A.data) != null && M.message && (y.value.message = T.error.response.data.message), n("error", T.error);
|
|
@@ -3870,7 +3877,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3870
3877
|
]),
|
|
3871
3878
|
_: 1
|
|
3872
3879
|
}, 8, ["to"]), [
|
|
3873
|
-
[ge,
|
|
3880
|
+
[ge, Se.value]
|
|
3874
3881
|
])
|
|
3875
3882
|
]),
|
|
3876
3883
|
_: 1
|
|
@@ -3976,7 +3983,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3976
3983
|
"need-confirm": !1,
|
|
3977
3984
|
title: m(r)("delete.title"),
|
|
3978
3985
|
visible: U.value,
|
|
3979
|
-
onCancel:
|
|
3986
|
+
onCancel: ie,
|
|
3980
3987
|
onProceed: pe
|
|
3981
3988
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
3982
3989
|
]);
|
|
@@ -3991,7 +3998,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
3991
3998
|
key: 2,
|
|
3992
3999
|
class: "invalid-certificate-message",
|
|
3993
4000
|
"data-testid": "invalid-certificate-message"
|
|
3994
|
-
}, Pl = /* @__PURE__ */
|
|
4001
|
+
}, Pl = /* @__PURE__ */ te({
|
|
3995
4002
|
__name: "SniForm",
|
|
3996
4003
|
props: {
|
|
3997
4004
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4063,7 +4070,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4063
4070
|
results: Q
|
|
4064
4071
|
} = _l(i.config, Fe.form[i.config.app].certificates), B = (A) => {
|
|
4065
4072
|
h(A);
|
|
4066
|
-
}, q = I(() => _.value ? o("errors.certificates.fetch") : ""),
|
|
4073
|
+
}, q = I(() => _.value ? o("errors.certificates.fetch") : ""), ie = I(() => U.value ? o("errors.certificates.invalid") : ""), pe = F(0), Se = I(() => g.value === void 0), ce = F(/* @__PURE__ */ new Set()), T = I(() => Array.from(ce.value).map((M) => ({
|
|
4067
4074
|
label: M,
|
|
4068
4075
|
value: M,
|
|
4069
4076
|
selected: c.fields.certificate_id === M
|
|
@@ -4150,7 +4157,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4150
4157
|
"onUpdate:modelValue": M[2] || (M[2] = (re) => c.fields.certificate_id = re),
|
|
4151
4158
|
clearable: "",
|
|
4152
4159
|
"data-testid": "sni-form-certificate-id",
|
|
4153
|
-
"dropdown-footer-text":
|
|
4160
|
+
"dropdown-footer-text": Se.value ? m(o)("form.fields.certificate_id.footer") : void 0,
|
|
4154
4161
|
"enable-filtering": "",
|
|
4155
4162
|
"filter-function": () => !0,
|
|
4156
4163
|
items: T.value,
|
|
@@ -4170,7 +4177,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
|
4170
4177
|
]),
|
|
4171
4178
|
_: 1
|
|
4172
4179
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
4173
|
-
|
|
4180
|
+
ie.value ? (w(), $("p", Kl, E(ie.value), 1)) : G("", !0)
|
|
4174
4181
|
]),
|
|
4175
4182
|
_: 1
|
|
4176
4183
|
}, 8, ["description", "title"])
|