@kong-ui-public/entities-shared 3.8.0 → 3.8.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-shared.es.js +104 -104
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
|
|
|
4
4
|
import { BadgeMethodAppearances as jn } from "@kong/kongponents";
|
|
5
5
|
import { BookIcon as Un, MoreIcon as Pn, AddIcon as qn, CloseIcon as Hn, ChevronDownIcon as Yn, CopyIcon as Vn } from "@kong/icons";
|
|
6
6
|
import { useRouter as Wn } from "vue-router";
|
|
7
|
-
var
|
|
7
|
+
var Jn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e))(Jn || {}), Gn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Gn || {}), ve = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ve || {}), Qe = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Other = "other", e))(Qe || {});
|
|
8
8
|
const Ne = Object.values(Qe);
|
|
9
9
|
var q = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(q || {}), ie = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ie || {});
|
|
10
10
|
function zn() {
|
|
@@ -43,14 +43,14 @@ function Qn() {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const je = "khcp-user-table-preferences",
|
|
46
|
+
const je = "khcp-user-table-preferences", Zn = {
|
|
47
47
|
pageSize: 30,
|
|
48
48
|
sortColumnKey: void 0,
|
|
49
49
|
sortColumnOrder: void 0,
|
|
50
50
|
columnWidths: {},
|
|
51
51
|
columnVisibility: {}
|
|
52
52
|
};
|
|
53
|
-
function
|
|
53
|
+
function Xn() {
|
|
54
54
|
const e = (n) => {
|
|
55
55
|
if (typeof n == "string")
|
|
56
56
|
try {
|
|
@@ -74,14 +74,14 @@ function Zn() {
|
|
|
74
74
|
},
|
|
75
75
|
getTablePreferences: (n) => {
|
|
76
76
|
const r = t();
|
|
77
|
-
return (r == null ? void 0 : r.get(n)) || void 0 ||
|
|
77
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || Zn;
|
|
78
78
|
},
|
|
79
79
|
deleteAllTablePreferences: () => {
|
|
80
80
|
localStorage.removeItem(je);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ze(e = {}) {
|
|
85
85
|
const { getAxiosInstance: t } = zn();
|
|
86
86
|
return {
|
|
87
87
|
axiosInstance: t(e)
|
|
@@ -251,7 +251,7 @@ function dr(e, t, n, r = {
|
|
|
251
251
|
searchKeys: ["id"]
|
|
252
252
|
}) {
|
|
253
253
|
n || (n = "1000");
|
|
254
|
-
const { axiosInstance: i } =
|
|
254
|
+
const { axiosInstance: i } = Ze(e.axiosRequestConfig), { i18n: { t: o } } = Me(), { debounce: a } = Qn(), l = a(async (F) => {
|
|
255
255
|
await b(F);
|
|
256
256
|
}, 200), c = K(!1), u = K(""), d = K(""), s = K([]), m = K([]), f = K(void 0), y = I(() => {
|
|
257
257
|
const F = `${e.apiBaseUrl}${w(t)}`;
|
|
@@ -390,7 +390,7 @@ function Lt(e, t) {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
function hr(e, t, n) {
|
|
393
|
-
const r = w(t), { axiosInstance: i } =
|
|
393
|
+
const r = w(t), { axiosInstance: i } = Ze(e.axiosRequestConfig), o = Lt(e, r), a = K({
|
|
394
394
|
status: ve.Idle
|
|
395
395
|
});
|
|
396
396
|
return { fetcher: async (c) => {
|
|
@@ -513,7 +513,7 @@ function kr() {
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
const W = {
|
|
516
|
-
useAxios:
|
|
516
|
+
useAxios: Ze,
|
|
517
517
|
useDebouncedFilter: dr,
|
|
518
518
|
useDeleteUrlBuilder: fr,
|
|
519
519
|
useErrors: pr,
|
|
@@ -629,7 +629,7 @@ const W = {
|
|
|
629
629
|
}), Er = "#0044f4", Fr = "#e0e4ea", Or = "#afb7c5", Lr = "#0044f4", Rr = "1px", Br = "16px", Kr = "20px", Nr = { class: "config-card-details-row" }, Mr = ["data-testid"], Dr = ["data-testid"], jr = ["data-testid"], Ur = ["data-testid"], Pr = { key: 1 }, qr = ["data-testid"], Hr = ["data-testid"], Yr = ["data-testid"], Vr = ["data-testid"], Wr = {
|
|
630
630
|
name: "ConfigCardItem",
|
|
631
631
|
components: { JsonCardItem: Kt, StatusBadge: Tr, InternalLinkItem: $r }
|
|
632
|
-
},
|
|
632
|
+
}, Jr = /* @__PURE__ */ Q({
|
|
633
633
|
...Wr,
|
|
634
634
|
props: {
|
|
635
635
|
item: {
|
|
@@ -896,7 +896,7 @@ const W = {
|
|
|
896
896
|
]);
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
}), Nt = /* @__PURE__ */ ae(
|
|
899
|
+
}), Nt = /* @__PURE__ */ ae(Jr, [["__scopeId", "data-v-711ebcf2"]]), Gr = { class: "json-config" }, zr = {
|
|
900
900
|
key: 0,
|
|
901
901
|
class: "json-endpoint"
|
|
902
902
|
}, Mt = /* @__PURE__ */ Q({
|
|
@@ -939,7 +939,7 @@ const W = {
|
|
|
939
939
|
});
|
|
940
940
|
return (i, o) => {
|
|
941
941
|
const a = M("KBadge"), l = M("KCodeBlock");
|
|
942
|
-
return g(), O("div",
|
|
942
|
+
return g(), O("div", Gr, [
|
|
943
943
|
t.fetcherUrl ? (g(), O("div", zr, [
|
|
944
944
|
B(a, {
|
|
945
945
|
appearance: t.requestMethod
|
|
@@ -976,10 +976,10 @@ function Dt(e) {
|
|
|
976
976
|
function Qr(e) {
|
|
977
977
|
return typeof e == "object" && e !== null;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Zr(e) {
|
|
980
980
|
return Array.isArray(e) ? e : Dt(e) ? [] : [e];
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Xr(e, t) {
|
|
983
983
|
var n, r, i, o;
|
|
984
984
|
if (t)
|
|
985
985
|
for (o = Object.keys(t), n = 0, r = o.length; n < r; n += 1)
|
|
@@ -995,7 +995,7 @@ function ei(e, t) {
|
|
|
995
995
|
function ti(e) {
|
|
996
996
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
997
997
|
}
|
|
998
|
-
var ni = Dt, ri = Qr, ii =
|
|
998
|
+
var ni = Dt, ri = Qr, ii = Zr, ai = ei, oi = ti, li = Xr, z = {
|
|
999
999
|
isNothing: ni,
|
|
1000
1000
|
isObject: ri,
|
|
1001
1001
|
toArray: ii,
|
|
@@ -1093,7 +1093,7 @@ function pi(e, t) {
|
|
|
1093
1093
|
}, 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 = fi(t.styleAliases || null), di.indexOf(this.kind) === -1)
|
|
1094
1094
|
throw new ne('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1095
1095
|
}
|
|
1096
|
-
var
|
|
1096
|
+
var X = pi;
|
|
1097
1097
|
function pt(e, t) {
|
|
1098
1098
|
var n = [];
|
|
1099
1099
|
return e[t].forEach(function(r) {
|
|
@@ -1128,7 +1128,7 @@ function Ye(e) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
Ye.prototype.extend = function(t) {
|
|
1130
1130
|
var n = [], r = [];
|
|
1131
|
-
if (t instanceof
|
|
1131
|
+
if (t instanceof X)
|
|
1132
1132
|
r.push(t);
|
|
1133
1133
|
else if (Array.isArray(t))
|
|
1134
1134
|
r = r.concat(t);
|
|
@@ -1137,30 +1137,30 @@ Ye.prototype.extend = function(t) {
|
|
|
1137
1137
|
else
|
|
1138
1138
|
throw new ne("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1139
1139
|
n.forEach(function(o) {
|
|
1140
|
-
if (!(o instanceof
|
|
1140
|
+
if (!(o instanceof X))
|
|
1141
1141
|
throw new ne("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1142
1142
|
if (o.loadKind && o.loadKind !== "scalar")
|
|
1143
1143
|
throw new ne("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1144
1144
|
if (o.multi)
|
|
1145
1145
|
throw new ne("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1146
1146
|
}), r.forEach(function(o) {
|
|
1147
|
-
if (!(o instanceof
|
|
1147
|
+
if (!(o instanceof X))
|
|
1148
1148
|
throw new ne("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1149
1149
|
});
|
|
1150
1150
|
var i = Object.create(Ye.prototype);
|
|
1151
1151
|
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = pt(i, "implicit"), i.compiledExplicit = pt(i, "explicit"), i.compiledTypeMap = mi(i.compiledImplicit, i.compiledExplicit), i;
|
|
1152
1152
|
};
|
|
1153
|
-
var Ut = Ye, Pt = new
|
|
1153
|
+
var Ut = Ye, Pt = new X("tag:yaml.org,2002:str", {
|
|
1154
1154
|
kind: "scalar",
|
|
1155
1155
|
construct: function(e) {
|
|
1156
1156
|
return e !== null ? e : "";
|
|
1157
1157
|
}
|
|
1158
|
-
}), qt = new
|
|
1158
|
+
}), qt = new X("tag:yaml.org,2002:seq", {
|
|
1159
1159
|
kind: "sequence",
|
|
1160
1160
|
construct: function(e) {
|
|
1161
1161
|
return e !== null ? e : [];
|
|
1162
1162
|
}
|
|
1163
|
-
}), Ht = new
|
|
1163
|
+
}), Ht = new X("tag:yaml.org,2002:map", {
|
|
1164
1164
|
kind: "mapping",
|
|
1165
1165
|
construct: function(e) {
|
|
1166
1166
|
return e !== null ? e : {};
|
|
@@ -1183,7 +1183,7 @@ function gi() {
|
|
|
1183
1183
|
function yi(e) {
|
|
1184
1184
|
return e === null;
|
|
1185
1185
|
}
|
|
1186
|
-
var Vt = new
|
|
1186
|
+
var Vt = new X("tag:yaml.org,2002:null", {
|
|
1187
1187
|
kind: "scalar",
|
|
1188
1188
|
resolve: hi,
|
|
1189
1189
|
construct: gi,
|
|
@@ -1218,7 +1218,7 @@ function bi(e) {
|
|
|
1218
1218
|
function xi(e) {
|
|
1219
1219
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1220
1220
|
}
|
|
1221
|
-
var Wt = new
|
|
1221
|
+
var Wt = new X("tag:yaml.org,2002:bool", {
|
|
1222
1222
|
kind: "scalar",
|
|
1223
1223
|
resolve: vi,
|
|
1224
1224
|
construct: bi,
|
|
@@ -1298,7 +1298,7 @@ function wi(e) {
|
|
|
1298
1298
|
function Si(e) {
|
|
1299
1299
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1301
|
+
var Jt = new X("tag:yaml.org,2002:int", {
|
|
1302
1302
|
kind: "scalar",
|
|
1303
1303
|
resolve: ki,
|
|
1304
1304
|
construct: wi,
|
|
@@ -1375,7 +1375,7 @@ function Fi(e, t) {
|
|
|
1375
1375
|
function Oi(e) {
|
|
1376
1376
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
|
|
1377
1377
|
}
|
|
1378
|
-
var
|
|
1378
|
+
var Gt = new X("tag:yaml.org,2002:float", {
|
|
1379
1379
|
kind: "scalar",
|
|
1380
1380
|
resolve: $i,
|
|
1381
1381
|
construct: Ti,
|
|
@@ -1386,20 +1386,20 @@ var Jt = new Z("tag:yaml.org,2002:float", {
|
|
|
1386
1386
|
implicit: [
|
|
1387
1387
|
Vt,
|
|
1388
1388
|
Wt,
|
|
1389
|
-
|
|
1390
|
-
|
|
1389
|
+
Jt,
|
|
1390
|
+
Gt
|
|
1391
1391
|
]
|
|
1392
|
-
}), Qt = zt,
|
|
1392
|
+
}), Qt = zt, Zt = new RegExp(
|
|
1393
1393
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1394
|
-
),
|
|
1394
|
+
), Xt = new RegExp(
|
|
1395
1395
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1396
1396
|
);
|
|
1397
1397
|
function Li(e) {
|
|
1398
|
-
return e === null ? !1 :
|
|
1398
|
+
return e === null ? !1 : Zt.exec(e) !== null || Xt.exec(e) !== null;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ri(e) {
|
|
1401
1401
|
var t, n, r, i, o, a, l, c = 0, u = null, d, s, m;
|
|
1402
|
-
if (t =
|
|
1402
|
+
if (t = Zt.exec(e), t === null && (t = Xt.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1403
1403
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
1404
1404
|
return new Date(Date.UTC(n, r, i));
|
|
1405
1405
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1412,7 +1412,7 @@ function Ri(e) {
|
|
|
1412
1412
|
function Bi(e) {
|
|
1413
1413
|
return e.toISOString();
|
|
1414
1414
|
}
|
|
1415
|
-
var en = new
|
|
1415
|
+
var en = new X("tag:yaml.org,2002:timestamp", {
|
|
1416
1416
|
kind: "scalar",
|
|
1417
1417
|
resolve: Li,
|
|
1418
1418
|
construct: Ri,
|
|
@@ -1422,14 +1422,14 @@ var en = new Z("tag:yaml.org,2002:timestamp", {
|
|
|
1422
1422
|
function Ki(e) {
|
|
1423
1423
|
return e === "<<" || e === null;
|
|
1424
1424
|
}
|
|
1425
|
-
var tn = new
|
|
1425
|
+
var tn = new X("tag:yaml.org,2002:merge", {
|
|
1426
1426
|
kind: "scalar",
|
|
1427
1427
|
resolve: Ki
|
|
1428
|
-
}),
|
|
1428
|
+
}), Xe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1429
1429
|
\r`;
|
|
1430
1430
|
function Ni(e) {
|
|
1431
1431
|
if (e === null) return !1;
|
|
1432
|
-
var t, n, r = 0, i = e.length, o =
|
|
1432
|
+
var t, n, r = 0, i = e.length, o = Xe;
|
|
1433
1433
|
for (n = 0; n < i; n++)
|
|
1434
1434
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1435
1435
|
if (t < 0) return !1;
|
|
@@ -1438,13 +1438,13 @@ function Ni(e) {
|
|
|
1438
1438
|
return r % 8 === 0;
|
|
1439
1439
|
}
|
|
1440
1440
|
function Mi(e) {
|
|
1441
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o =
|
|
1441
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o = Xe, a = 0, l = [];
|
|
1442
1442
|
for (t = 0; t < i; t++)
|
|
1443
1443
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(r.charAt(t));
|
|
1444
1444
|
return n = i % 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);
|
|
1445
1445
|
}
|
|
1446
1446
|
function Di(e) {
|
|
1447
|
-
var t = "", n = 0, r, i, o = e.length, a =
|
|
1447
|
+
var t = "", n = 0, r, i, o = e.length, a = Xe;
|
|
1448
1448
|
for (r = 0; r < o; r++)
|
|
1449
1449
|
r % 3 === 0 && r && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[r];
|
|
1450
1450
|
return i = o % 3, i === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : i === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : i === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
@@ -1452,7 +1452,7 @@ function Di(e) {
|
|
|
1452
1452
|
function ji(e) {
|
|
1453
1453
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1454
1454
|
}
|
|
1455
|
-
var nn = new
|
|
1455
|
+
var nn = new X("tag:yaml.org,2002:binary", {
|
|
1456
1456
|
kind: "scalar",
|
|
1457
1457
|
resolve: Ni,
|
|
1458
1458
|
construct: Mi,
|
|
@@ -1477,7 +1477,7 @@ function qi(e) {
|
|
|
1477
1477
|
function Hi(e) {
|
|
1478
1478
|
return e !== null ? e : [];
|
|
1479
1479
|
}
|
|
1480
|
-
var rn = new
|
|
1480
|
+
var rn = new X("tag:yaml.org,2002:omap", {
|
|
1481
1481
|
kind: "sequence",
|
|
1482
1482
|
resolve: qi,
|
|
1483
1483
|
construct: Hi
|
|
@@ -1498,25 +1498,25 @@ function Wi(e) {
|
|
|
1498
1498
|
r = a[t], i = Object.keys(r), o[t] = [i[0], r[i[0]]];
|
|
1499
1499
|
return o;
|
|
1500
1500
|
}
|
|
1501
|
-
var an = new
|
|
1501
|
+
var an = new X("tag:yaml.org,2002:pairs", {
|
|
1502
1502
|
kind: "sequence",
|
|
1503
1503
|
resolve: Vi,
|
|
1504
1504
|
construct: Wi
|
|
1505
|
-
}),
|
|
1506
|
-
function
|
|
1505
|
+
}), Ji = Object.prototype.hasOwnProperty;
|
|
1506
|
+
function Gi(e) {
|
|
1507
1507
|
if (e === null) return !0;
|
|
1508
1508
|
var t, n = e;
|
|
1509
1509
|
for (t in n)
|
|
1510
|
-
if (
|
|
1510
|
+
if (Ji.call(n, t) && n[t] !== null)
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
return !0;
|
|
1513
1513
|
}
|
|
1514
1514
|
function zi(e) {
|
|
1515
1515
|
return e !== null ? e : {};
|
|
1516
1516
|
}
|
|
1517
|
-
var on = new
|
|
1517
|
+
var on = new X("tag:yaml.org,2002:set", {
|
|
1518
1518
|
kind: "mapping",
|
|
1519
|
-
resolve:
|
|
1519
|
+
resolve: Gi,
|
|
1520
1520
|
construct: zi
|
|
1521
1521
|
}), et = Qt.extend({
|
|
1522
1522
|
implicit: [
|
|
@@ -1529,7 +1529,7 @@ var on = new Z("tag:yaml.org,2002:set", {
|
|
|
1529
1529
|
an,
|
|
1530
1530
|
on
|
|
1531
1531
|
]
|
|
1532
|
-
}), fe = Object.prototype.hasOwnProperty, Fe = 1, ln = 2, cn = 3, Oe = 4, qe = 1, Qi = 2, mt = 3,
|
|
1532
|
+
}), fe = Object.prototype.hasOwnProperty, Fe = 1, ln = 2, cn = 3, Oe = 4, qe = 1, Qi = 2, mt = 3, Zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Xi = /[\x85\u2028\u2029]/, ea = /[,\[\]\{\}]/, sn = /^(?:!|!!|![a-z\-]+!)$/i, un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1533
1533
|
function ht(e) {
|
|
1534
1534
|
return Object.prototype.toString.call(e);
|
|
1535
1535
|
}
|
|
@@ -1610,7 +1610,7 @@ function ue(e, t, n, r) {
|
|
|
1610
1610
|
if (l = e.input.slice(t, n), r)
|
|
1611
1611
|
for (i = 0, o = l.length; i < o; i += 1)
|
|
1612
1612
|
a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || _(e, "expected valid JSON character");
|
|
1613
|
-
else
|
|
1613
|
+
else Zi.test(l) && _(e, "the stream contains non-printable characters");
|
|
1614
1614
|
e.result += l;
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
@@ -1643,7 +1643,7 @@ function tt(e) {
|
|
|
1643
1643
|
var t;
|
|
1644
1644
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function J(e, t, n) {
|
|
1647
1647
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1648
1648
|
for (; ge(i); )
|
|
1649
1649
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
@@ -1682,7 +1682,7 @@ function oa(e, t, n) {
|
|
|
1682
1682
|
if (e.position === e.lineStart && De(e) || n && xe(f))
|
|
1683
1683
|
break;
|
|
1684
1684
|
if (le(f))
|
|
1685
|
-
if (c = e.line, u = e.lineStart, d = e.lineIndent,
|
|
1685
|
+
if (c = e.line, u = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
|
|
1686
1686
|
l = !0, f = e.input.charCodeAt(e.position);
|
|
1687
1687
|
continue;
|
|
1688
1688
|
} else {
|
|
@@ -1704,7 +1704,7 @@ function la(e, t) {
|
|
|
1704
1704
|
r = e.position, e.position++, i = e.position;
|
|
1705
1705
|
else
|
|
1706
1706
|
return !0;
|
|
1707
|
-
else le(n) ? (ue(e, r, i, !0), nt(e,
|
|
1707
|
+
else le(n) ? (ue(e, r, i, !0), nt(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && De(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1708
1708
|
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
1709
1709
|
}
|
|
1710
1710
|
function ca(e, t) {
|
|
@@ -1716,7 +1716,7 @@ function ca(e, t) {
|
|
|
1716
1716
|
return ue(e, n, e.position, !0), e.position++, !0;
|
|
1717
1717
|
if (l === 92) {
|
|
1718
1718
|
if (ue(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), le(l))
|
|
1719
|
-
|
|
1719
|
+
J(e, !1, t);
|
|
1720
1720
|
else if (l < 256 && dn[l])
|
|
1721
1721
|
e.result += fn[l], e.position++;
|
|
1722
1722
|
else if ((a = na(l)) > 0) {
|
|
@@ -1726,7 +1726,7 @@ function ca(e, t) {
|
|
|
1726
1726
|
} else
|
|
1727
1727
|
_(e, "unknown escape sequence");
|
|
1728
1728
|
n = r = e.position;
|
|
1729
|
-
} else le(l) ? (ue(e, n, r, !0), nt(e,
|
|
1729
|
+
} else le(l) ? (ue(e, n, r, !0), nt(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && De(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1730
1730
|
}
|
|
1731
1731
|
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
1732
1732
|
}
|
|
@@ -1739,9 +1739,9 @@ function sa(e, t) {
|
|
|
1739
1739
|
else
|
|
1740
1740
|
return !1;
|
|
1741
1741
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1742
|
-
if (
|
|
1742
|
+
if (J(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
|
|
1743
1743
|
return e.position++, e.tag = a, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1744
|
-
n ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), C = h = E = null, s = m = !1, b === 63 && (u = e.input.charCodeAt(e.position + 1), re(u) && (s = m = !0, e.position++,
|
|
1744
|
+
n ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), C = h = E = null, s = m = !1, b === 63 && (u = e.input.charCodeAt(e.position + 1), re(u) && (s = m = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, _e(e, t, Fe, !1, !0), C = e.tag, h = e.result, J(e, !0, t), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (s = !0, b = e.input.charCodeAt(++e.position), J(e, !0, t), _e(e, t, Fe, !1, !0), E = e.result), f ? Ce(e, l, y, C, h, E, r, i, o) : s ? l.push(Ce(e, null, y, C, h, E, r, i, o)) : l.push(h), J(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1745
1745
|
}
|
|
1746
1746
|
_(e, "unexpected end of the stream within a flow collection");
|
|
1747
1747
|
}
|
|
@@ -1796,11 +1796,11 @@ function bt(e, t) {
|
|
|
1796
1796
|
var n, r = e.tag, i = e.anchor, o = [], a, l = !1, c;
|
|
1797
1797
|
if (e.firstTabInLine !== -1) return !1;
|
|
1798
1798
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(c !== 45 || (a = e.input.charCodeAt(e.position + 1), !re(a)))); ) {
|
|
1799
|
-
if (l = !0, e.position++,
|
|
1799
|
+
if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
|
|
1800
1800
|
o.push(null), c = e.input.charCodeAt(e.position);
|
|
1801
1801
|
continue;
|
|
1802
1802
|
}
|
|
1803
|
-
if (n = e.line, _e(e, t, cn, !1, !0), o.push(e.result),
|
|
1803
|
+
if (n = e.line, _e(e, t, cn, !1, !0), o.push(e.result), J(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0)
|
|
1804
1804
|
_(e, "bad indentation of a sequence entry");
|
|
1805
1805
|
else if (e.lineIndent < t)
|
|
1806
1806
|
break;
|
|
@@ -1830,7 +1830,7 @@ function da(e, t, n) {
|
|
|
1830
1830
|
else
|
|
1831
1831
|
return e.tag = u, e.anchor = d, !0;
|
|
1832
1832
|
}
|
|
1833
|
-
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, c = e.position), _e(e, t, Oe, !0, i) && (C ? y = e.result : h = e.result), C || (Ce(e, s, m, f, y, h, a, l, c), f = y = h = null),
|
|
1833
|
+
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, c = e.position), _e(e, t, Oe, !0, i) && (C ? y = e.result : h = e.result), C || (Ce(e, s, m, f, y, h, a, l, c), f = y = h = null), J(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0)
|
|
1834
1834
|
_(e, "bad indentation of a mapping entry");
|
|
1835
1835
|
else if (e.lineIndent < t)
|
|
1836
1836
|
break;
|
|
@@ -1870,13 +1870,13 @@ function ma(e) {
|
|
|
1870
1870
|
if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
|
|
1871
1871
|
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !re(r) && !xe(r); )
|
|
1872
1872
|
r = e.input.charCodeAt(++e.position);
|
|
1873
|
-
return e.position === t && _(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || _(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n],
|
|
1873
|
+
return e.position === t && _(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || _(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
|
|
1874
1874
|
}
|
|
1875
1875
|
function _e(e, t, n, r, i) {
|
|
1876
1876
|
var o, a, l, c = 1, u = !1, d = !1, s, m, f, y, h, C;
|
|
1877
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Oe === n || cn === n, r &&
|
|
1877
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Oe === n || cn === n, r && J(e, !0, -1) && (u = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
|
|
1878
1878
|
for (; fa(e) || pa(e); )
|
|
1879
|
-
|
|
1879
|
+
J(e, !0, -1) ? (u = !0, l = o, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
|
|
1880
1880
|
if (l && (l = u || i), (c === 1 || Oe === n) && (Fe === n || ln === n ? h = t : h = t + 1, C = e.position - e.lineStart, c === 1 ? l && (bt(e, C) || da(e, C, h)) || sa(e, h) ? d = !0 : (a && ua(e, h) || la(e, h) || ca(e, h) ? d = !0 : ma(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : oa(e, h, Fe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (d = l && bt(e, C))), e.tag === null)
|
|
1881
1881
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1882
1882
|
else if (e.tag === "?") {
|
|
@@ -1900,7 +1900,7 @@ function _e(e, t, n, r, i) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
function ha(e) {
|
|
1902
1902
|
var t = e.position, n, r, i, o = !1, a;
|
|
1903
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1903
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
1904
1904
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !re(a); )
|
|
1905
1905
|
a = e.input.charCodeAt(++e.position);
|
|
1906
1906
|
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && _(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
@@ -1919,8 +1919,8 @@ function ha(e) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
a !== 0 && tt(e), fe.call(yt, r) ? yt[r](e, r, i) : Le(e, 'unknown document directive "' + r + '"');
|
|
1921
1921
|
}
|
|
1922
|
-
if (
|
|
1923
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1922
|
+
if (J(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, J(e, !0, -1)) : o && _(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Oe, !1, !0), J(e, !0, -1), e.checkLineBreaks && Xi.test(e.input.slice(t, e.position)) && Le(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && De(e)) {
|
|
1923
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
|
|
1924
1924
|
return;
|
|
1925
1925
|
}
|
|
1926
1926
|
if (e.position < e.length - 1)
|
|
@@ -2065,7 +2065,7 @@ function _n(e) {
|
|
|
2065
2065
|
var t = /^\n* /;
|
|
2066
2066
|
return t.test(e);
|
|
2067
2067
|
}
|
|
2068
|
-
var kn = 1,
|
|
2068
|
+
var kn = 1, Je = 2, wn = 3, Sn = 4, be = 5;
|
|
2069
2069
|
function Ya(e, t, n, r, i, o, a, l) {
|
|
2070
2070
|
var c, u = 0, d = null, s = !1, m = !1, f = r !== -1, y = -1, h = qa(we(e, 0)) && Ha(we(e, e.length - 1));
|
|
2071
2071
|
if (t || a)
|
|
@@ -2085,7 +2085,7 @@ function Ya(e, t, n, r, i, o, a, l) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
m = m || f && c - y - 1 > r && e[y + 1] !== " ";
|
|
2087
2087
|
}
|
|
2088
|
-
return !s && !m ? h && !a && !i(e) ? kn : o === $e ? be :
|
|
2088
|
+
return !s && !m ? h && !a && !i(e) ? kn : o === $e ? be : Je : n > 9 && _n(e) ? be : a ? o === $e ? be : Je : m ? Sn : wn;
|
|
2089
2089
|
}
|
|
2090
2090
|
function Va(e, t, n, r, i) {
|
|
2091
2091
|
e.dump = function() {
|
|
@@ -2109,14 +2109,14 @@ function Va(e, t, n, r, i) {
|
|
|
2109
2109
|
)) {
|
|
2110
2110
|
case kn:
|
|
2111
2111
|
return t;
|
|
2112
|
-
case
|
|
2112
|
+
case Je:
|
|
2113
2113
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2114
2114
|
case wn:
|
|
2115
2115
|
return "|" + _t(t, e.indent) + kt(xt(t, o));
|
|
2116
2116
|
case Sn:
|
|
2117
2117
|
return ">" + _t(t, e.indent) + kt(xt(Wa(t, a), o));
|
|
2118
2118
|
case be:
|
|
2119
|
-
return '"' +
|
|
2119
|
+
return '"' + Ja(t) + '"';
|
|
2120
2120
|
default:
|
|
2121
2121
|
throw new ne("impossible error: invalid scalar style");
|
|
2122
2122
|
}
|
|
@@ -2156,12 +2156,12 @@ function wt(e, t) {
|
|
|
2156
2156
|
`, e.length - i > t && a > i ? c += e.slice(i, a) + `
|
|
2157
2157
|
` + e.slice(a + 1) : c += e.slice(i), c.slice(1);
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function Ja(e) {
|
|
2160
2160
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2161
2161
|
n = we(e, i), r = ee[n], !r && Te(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Da(n);
|
|
2162
2162
|
return t;
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function Ga(e, t, n) {
|
|
2165
2165
|
var r = "", i = e.tag, o, a, l;
|
|
2166
2166
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2167
2167
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (se(e, t, l, !1, !1) || typeof l > "u" && se(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -2219,7 +2219,7 @@ function se(e, t, n, r, i, o, a) {
|
|
|
2219
2219
|
if (d && m && !e.usedDuplicates[s] && (e.usedDuplicates[s] = !0), l === "[object Object]")
|
|
2220
2220
|
r && Object.keys(e.dump).length !== 0 ? (Qa(e, t, e.dump, i), m && (e.dump = "&ref_" + s + e.dump)) : (za(e, t, e.dump), m && (e.dump = "&ref_" + s + " " + e.dump));
|
|
2221
2221
|
else if (l === "[object Array]")
|
|
2222
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i), m && (e.dump = "&ref_" + s + e.dump)) : (
|
|
2222
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i), m && (e.dump = "&ref_" + s + e.dump)) : (Ga(e, t, e.dump), m && (e.dump = "&ref_" + s + " " + e.dump));
|
|
2223
2223
|
else if (l === "[object String]")
|
|
2224
2224
|
e.tag !== "?" && Va(e, e.dump, t, o, c);
|
|
2225
2225
|
else {
|
|
@@ -2234,33 +2234,33 @@ function se(e, t, n, r, i, o, a) {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
return !0;
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function Za(e, t) {
|
|
2238
2238
|
var n = [], r = [], i, o;
|
|
2239
|
-
for (
|
|
2239
|
+
for (Ge(e, n, r), i = 0, o = r.length; i < o; i += 1)
|
|
2240
2240
|
t.duplicates.push(n[r[i]]);
|
|
2241
2241
|
t.usedDuplicates = new Array(o);
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Ge(e, t, n) {
|
|
2244
2244
|
var r, i, o;
|
|
2245
2245
|
if (e !== null && typeof e == "object")
|
|
2246
2246
|
if (i = t.indexOf(e), i !== -1)
|
|
2247
2247
|
n.indexOf(i) === -1 && n.push(i);
|
|
2248
2248
|
else if (t.push(e), Array.isArray(e))
|
|
2249
2249
|
for (i = 0, o = e.length; i < o; i += 1)
|
|
2250
|
-
|
|
2250
|
+
Ge(e[i], t, n);
|
|
2251
2251
|
else
|
|
2252
2252
|
for (r = Object.keys(e), i = 0, o = r.length; i < o; i += 1)
|
|
2253
|
-
|
|
2253
|
+
Ge(e[r[i]], t, n);
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function Xa(e, t) {
|
|
2256
2256
|
t = t || {};
|
|
2257
2257
|
var n = new Ua(t);
|
|
2258
|
-
n.noRefs ||
|
|
2258
|
+
n.noRefs || Za(e, n);
|
|
2259
2259
|
var r = e;
|
|
2260
2260
|
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), se(n, 0, r, !0, !0) ? n.dump + `
|
|
2261
2261
|
` : "";
|
|
2262
2262
|
}
|
|
2263
|
-
var eo =
|
|
2263
|
+
var eo = Xa, to = {
|
|
2264
2264
|
dump: eo
|
|
2265
2265
|
};
|
|
2266
2266
|
function it(e, t) {
|
|
@@ -2268,16 +2268,16 @@ function it(e, t) {
|
|
|
2268
2268
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2269
2269
|
};
|
|
2270
2270
|
}
|
|
2271
|
-
var no =
|
|
2271
|
+
var no = X, ro = Ut, io = Yt, ao = zt, oo = Qt, lo = et, co = hn.load, so = hn.loadAll, uo = to.dump, fo = ne, po = {
|
|
2272
2272
|
binary: nn,
|
|
2273
|
-
float:
|
|
2273
|
+
float: Gt,
|
|
2274
2274
|
map: Ht,
|
|
2275
2275
|
null: Vt,
|
|
2276
2276
|
pairs: an,
|
|
2277
2277
|
set: on,
|
|
2278
2278
|
timestamp: en,
|
|
2279
2279
|
bool: Wt,
|
|
2280
|
-
int:
|
|
2280
|
+
int: Jt,
|
|
2281
2281
|
merge: tn,
|
|
2282
2282
|
omap: rn,
|
|
2283
2283
|
seq: qt,
|
|
@@ -2696,15 +2696,15 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
2696
2696
|
return R[1] - S[1];
|
|
2697
2697
|
}), p.map((R) => {
|
|
2698
2698
|
var pe, at;
|
|
2699
|
-
const S = R[0], H = (pe = h.value) == null ? void 0 : pe[S], U = ((at = r.configSchema) == null ? void 0 : at[S]) || {},
|
|
2699
|
+
const S = R[0], H = (pe = h.value) == null ? void 0 : pe[S], U = ((at = r.configSchema) == null ? void 0 : at[S]) || {}, G = s[S];
|
|
2700
2700
|
return {
|
|
2701
2701
|
key: S,
|
|
2702
2702
|
value: H,
|
|
2703
2703
|
hidden: U.hidden || !1,
|
|
2704
|
-
type: U.type ?? ((
|
|
2705
|
-
label: U.label ?? ((
|
|
2706
|
-
tooltip: U.tooltip ?? ((
|
|
2707
|
-
section: U.section ?? ((
|
|
2704
|
+
type: U.type ?? ((G == null ? void 0 : G.type) || q.Text),
|
|
2705
|
+
label: U.label ?? ((G == null ? void 0 : G.label) || a(S)),
|
|
2706
|
+
tooltip: U.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
|
|
2707
|
+
section: U.section ?? ((G == null ? void 0 : G.section) || ie.Advanced)
|
|
2708
2708
|
};
|
|
2709
2709
|
}).filter((R) => !R.hidden && R.key !== r.pluginConfigKey);
|
|
2710
2710
|
}), E = I(() => {
|
|
@@ -2720,8 +2720,8 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
2720
2720
|
return T.sort(function(R, S) {
|
|
2721
2721
|
return R[1] - S[1];
|
|
2722
2722
|
}), T.map((R) => {
|
|
2723
|
-
var
|
|
2724
|
-
const S = R[0], H = p[S], U = ((
|
|
2723
|
+
var G;
|
|
2724
|
+
const S = R[0], H = p[S], U = ((G = r.pluginConfigSchema) == null ? void 0 : G[S]) || {};
|
|
2725
2725
|
return {
|
|
2726
2726
|
key: S,
|
|
2727
2727
|
value: H,
|
|
@@ -2839,9 +2839,9 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
2839
2839
|
}, Ae({ _: 2 }, [
|
|
2840
2840
|
oe(Object.keys(p.$slots), (U) => ({
|
|
2841
2841
|
name: U,
|
|
2842
|
-
fn: A(({ row:
|
|
2842
|
+
fn: A(({ row: G, rowValue: pe }) => [
|
|
2843
2843
|
V(p.$slots, U, {
|
|
2844
|
-
row:
|
|
2844
|
+
row: G,
|
|
2845
2845
|
rowValue: pe
|
|
2846
2846
|
}, void 0, !0)
|
|
2847
2847
|
])
|
|
@@ -3359,7 +3359,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3359
3359
|
r("click:row", v);
|
|
3360
3360
|
}), C = (p) => {
|
|
3361
3361
|
r("sort", p);
|
|
3362
|
-
}, { setTablePreferences: E, getTablePreferences: b } =
|
|
3362
|
+
}, { setTablePreferences: E, getTablePreferences: b } = Xn(), F = K(b(a.value)), k = I(() => {
|
|
3363
3363
|
const p = b(a.value);
|
|
3364
3364
|
return {
|
|
3365
3365
|
...n.initialFetcherParams,
|
|
@@ -3459,7 +3459,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3459
3459
|
}, [
|
|
3460
3460
|
oe(e.tableHeaders, (S, H) => ({
|
|
3461
3461
|
name: H,
|
|
3462
|
-
fn: A(({ row: U, rowKey:
|
|
3462
|
+
fn: A(({ row: U, rowKey: G, rowValue: pe }) => [
|
|
3463
3463
|
B(Bo, {
|
|
3464
3464
|
"key-name": String(H),
|
|
3465
3465
|
"row-el": s(U),
|
|
@@ -3468,7 +3468,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3468
3468
|
default: A(() => [
|
|
3469
3469
|
V(p.$slots, H, {
|
|
3470
3470
|
row: U,
|
|
3471
|
-
rowKey:
|
|
3471
|
+
rowKey: G,
|
|
3472
3472
|
rowValue: pe
|
|
3473
3473
|
}, () => [
|
|
3474
3474
|
Y(N(pe), 1)
|
|
@@ -3630,10 +3630,10 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3630
3630
|
])
|
|
3631
3631
|
]));
|
|
3632
3632
|
}
|
|
3633
|
-
}),
|
|
3633
|
+
}), Jo = {
|
|
3634
3634
|
key: 1,
|
|
3635
3635
|
class: "kong-ui-entity-filter"
|
|
3636
|
-
},
|
|
3636
|
+
}, Go = { class: "kong-ui-entity-filter-menu" }, zo = ["data-testid"], Qo = ["onClick", "onKeydown"], Zo = { class: "menu-item-indicator" }, Xo = { class: "menu-item-body" }, el = ["for"], tl = { class: "menu-item-buttons" }, nl = { class: "filter-clear-button-container" }, rl = /* @__PURE__ */ Q({
|
|
3637
3637
|
__name: "EntityFilter",
|
|
3638
3638
|
props: {
|
|
3639
3639
|
// filter config, either exact match or fuzzy match
|
|
@@ -3725,7 +3725,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3725
3725
|
])
|
|
3726
3726
|
]),
|
|
3727
3727
|
_: 1
|
|
3728
|
-
}, 8, ["model-value", "placeholder"])) : (g(), O("div",
|
|
3728
|
+
}, 8, ["model-value", "placeholder"])) : (g(), O("div", Jo, [
|
|
3729
3729
|
B(v, {
|
|
3730
3730
|
appearance: "tertiary",
|
|
3731
3731
|
"data-testid": "filter-button",
|
|
@@ -3743,7 +3743,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3743
3743
|
}, null, 512), [
|
|
3744
3744
|
[he, o.value]
|
|
3745
3745
|
]),
|
|
3746
|
-
me(D("div",
|
|
3746
|
+
me(D("div", Go, [
|
|
3747
3747
|
(g(!0), O(ce, null, oe(u.value, ($) => {
|
|
3748
3748
|
var L, R;
|
|
3749
3749
|
return g(), O("div", {
|
|
@@ -3759,7 +3759,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3759
3759
|
onKeydown: Kn((S) => s($.value), ["enter"])
|
|
3760
3760
|
}, [
|
|
3761
3761
|
Y(N($.label) + " ", 1),
|
|
3762
|
-
me(D("span",
|
|
3762
|
+
me(D("span", Zo, null, 512), [
|
|
3763
3763
|
[he, c.value.includes($.value)]
|
|
3764
3764
|
]),
|
|
3765
3765
|
B(w(Yn), {
|
|
@@ -3767,7 +3767,7 @@ const vo = { class: "yaml-config" }, In = /* @__PURE__ */ Q({
|
|
|
3767
3767
|
color: w(Or)
|
|
3768
3768
|
}, null, 8, ["class", "color"])
|
|
3769
3769
|
], 42, Qo),
|
|
3770
|
-
me(D("div",
|
|
3770
|
+
me(D("div", Xo, [
|
|
3771
3771
|
D("label", {
|
|
3772
3772
|
class: "menu-item-label",
|
|
3773
3773
|
for: y($.value)
|
|
@@ -3954,11 +3954,11 @@ function al() {
|
|
|
3954
3954
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3955
3955
|
return Ee(il);
|
|
3956
3956
|
}
|
|
3957
|
-
const
|
|
3957
|
+
const Z = [];
|
|
3958
3958
|
for (let e = 0; e < 256; ++e)
|
|
3959
|
-
|
|
3959
|
+
Z.push((e + 256).toString(16).slice(1));
|
|
3960
3960
|
function ol(e, t = 0) {
|
|
3961
|
-
return
|
|
3961
|
+
return Z[e[t + 0]] + Z[e[t + 1]] + Z[e[t + 2]] + Z[e[t + 3]] + "-" + Z[e[t + 4]] + Z[e[t + 5]] + "-" + Z[e[t + 6]] + Z[e[t + 7]] + "-" + Z[e[t + 8]] + Z[e[t + 9]] + "-" + Z[e[t + 10]] + Z[e[t + 11]] + Z[e[t + 12]] + Z[e[t + 13]] + Z[e[t + 14]] + Z[e[t + 15]];
|
|
3962
3962
|
}
|
|
3963
3963
|
const ll = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Tt = {
|
|
3964
3964
|
randomUUID: ll
|
|
@@ -4152,14 +4152,14 @@ export {
|
|
|
4152
4152
|
q as ConfigurationSchemaType,
|
|
4153
4153
|
Sl as EntityBaseConfigCard,
|
|
4154
4154
|
Il as EntityBaseForm,
|
|
4155
|
-
|
|
4155
|
+
Gn as EntityBaseFormType,
|
|
4156
4156
|
$l as EntityBaseTable,
|
|
4157
4157
|
Tl as EntityDeleteModal,
|
|
4158
4158
|
El as EntityFilter,
|
|
4159
4159
|
Ll as EntityFormSection,
|
|
4160
4160
|
Rl as EntityLink,
|
|
4161
4161
|
Fl as EntityToggleModal,
|
|
4162
|
-
|
|
4162
|
+
Jn as EntityTypes,
|
|
4163
4163
|
ve as FetcherStatus,
|
|
4164
4164
|
$r as InternalLinkItem,
|
|
4165
4165
|
Mt as JsonCodeBlock,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-shared",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-shared.umd.js",
|
|
6
6
|
"module": "./dist/entities-shared.es.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"compare-versions": "^6.1.0",
|
|
56
|
-
"@kong-ui-public/core": "^1.
|
|
56
|
+
"@kong-ui-public/core": "^1.9.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "cross-env USE_SANDBOX=true vite",
|