@kong-ui-public/entities-snis 2.2.3 → 2.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 +152 -152
- package/dist/entities-snis.umd.js +24 -24
- 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 re, ref as M, computed as j, watch as fe, renderSlot as ae, createCommentVNode as Z, unref as
|
|
1
|
+
import { defineComponent as re, ref as M, computed as j, watch as fe, renderSlot as ae, createCommentVNode as Z, unref as h, onBeforeMount as rt, resolveComponent as E, openBlock as I, createBlock as D, withCtx as v, createElementVNode as q, toDisplayString as N, createElementBlock as K, withModifiers as Ke, createVNode as _, createTextVNode as W, createSlots as Pt, withDirectives as je, vShow as Oe, renderList as at, Fragment as Bt, useSlots as Pn, normalizeClass as Me, useCssVars as Bn, reactive as Re, onMounted as Dn, onUnmounted as Vn, inject as Hn, resolveDynamicComponent as Ue, mergeProps as ht, normalizeStyle as zn, pushScopeId as Yn, popScopeId as Wn } from "vue";
|
|
2
2
|
import { createI18n as ot, i18nTComponent as Dt } from "@kong-ui-public/i18n";
|
|
3
3
|
import Jn from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
@@ -254,10 +254,10 @@ const li = {
|
|
|
254
254
|
fetch: "Could not fetch available items",
|
|
255
255
|
invalid: "Please select a valid value"
|
|
256
256
|
}
|
|
257
|
-
},
|
|
257
|
+
}, mi = {
|
|
258
258
|
unexpected: "An unexpected error has occurred",
|
|
259
259
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
260
|
-
},
|
|
260
|
+
}, hi = {
|
|
261
261
|
enable: {
|
|
262
262
|
title: "Enable {entityType}",
|
|
263
263
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -276,8 +276,8 @@ const li = {
|
|
|
276
276
|
baseConfigCard: di,
|
|
277
277
|
filter: pi,
|
|
278
278
|
debouncedFilter: fi,
|
|
279
|
-
errors:
|
|
280
|
-
toggleModal:
|
|
279
|
+
errors: mi,
|
|
280
|
+
toggleModal: hi
|
|
281
281
|
};
|
|
282
282
|
function st() {
|
|
283
283
|
const e = ot("en-us", gi);
|
|
@@ -340,13 +340,13 @@ function yi(e, t, n, i = {
|
|
|
340
340
|
headers: e.requestHeaders
|
|
341
341
|
}), { i18n: { t: o } } = st(), { debounce: a } = ri(), l = a(async (S) => {
|
|
342
342
|
await L(S);
|
|
343
|
-
}, 200), s = M(!1), u = M(""), d = M(""), c = M([]), f = M([]), p = M(void 0), w =
|
|
344
|
-
let
|
|
345
|
-
e.app === "konnect" ?
|
|
343
|
+
}, 200), s = M(!1), u = M(""), d = M(""), c = M([]), f = M([]), p = M(void 0), w = h(t);
|
|
344
|
+
let m = `${e.apiBaseUrl}${w}`;
|
|
345
|
+
e.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
346
346
|
const { isValidUuid: C } = Yt(), b = async () => {
|
|
347
347
|
try {
|
|
348
348
|
s.value = !0;
|
|
349
|
-
const { data: S } = await r.get(`${
|
|
349
|
+
const { data: S } = await r.get(`${m}?size=${n}`);
|
|
350
350
|
S != null && S.next || (p.value = i.fetchedItemsKey in S ? S[i.fetchedItemsKey] : []), f.value = i.fetchedItemsKey in S ? S[i.fetchedItemsKey] : [], c.value = f.value;
|
|
351
351
|
} catch {
|
|
352
352
|
c.value = [], u.value = o("debouncedFilter.errors.fetch");
|
|
@@ -359,18 +359,18 @@ function yi(e, t, n, i = {
|
|
|
359
359
|
if (g.value = S || "", p.value === void 0)
|
|
360
360
|
try {
|
|
361
361
|
if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
362
|
-
let x =
|
|
362
|
+
let x = m + "";
|
|
363
363
|
S && (x += `/${S}`);
|
|
364
364
|
const { data: R } = await r.get(`${x}?size=${n}`);
|
|
365
365
|
i.fetchedItemsKey in R ? c.value = R[i.fetchedItemsKey] : R != null && R.id ? c.value = [R] : c.value = [];
|
|
366
366
|
} else if (S) {
|
|
367
367
|
const x = [];
|
|
368
368
|
C(S) && i.searchKeys.includes("id") ? x.push((async () => {
|
|
369
|
-
const { data: U } = await r.get(`${
|
|
369
|
+
const { data: U } = await r.get(`${m}/${S}`);
|
|
370
370
|
return [U[i.fetchedItemsKey] ?? U];
|
|
371
371
|
})()) : x.push(
|
|
372
372
|
...i.searchKeys.filter((U) => U !== "id").map(async (U) => {
|
|
373
|
-
const { data: $ } = await r.get(`${
|
|
373
|
+
const { data: $ } = await r.get(`${m}?${U}=${S}`);
|
|
374
374
|
return $[i.fetchedItemsKey];
|
|
375
375
|
})
|
|
376
376
|
);
|
|
@@ -410,7 +410,7 @@ function yi(e, t, n, i = {
|
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
function vi(e, t) {
|
|
413
|
-
const n =
|
|
413
|
+
const n = h(t), i = j(
|
|
414
414
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
415
415
|
);
|
|
416
416
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
@@ -457,7 +457,7 @@ function ki(e) {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
function Wt(e, t) {
|
|
460
|
-
const n = M(
|
|
460
|
+
const n = M(h(e)), i = M(h(t)), r = j(
|
|
461
461
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
462
462
|
), o = j(
|
|
463
463
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
@@ -466,8 +466,8 @@ function Wt(e, t) {
|
|
|
466
466
|
const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: f } = a;
|
|
467
467
|
try {
|
|
468
468
|
let p = new URL(o.value.href);
|
|
469
|
-
return r.value && f ? (p.search = "", p = n.value.app === "konnect" ? new URL(`${p.href}?filter[name][contains]=${f}`) : new URL(`${p.href}/${f}/`)) : (r.value || new URLSearchParams(f).forEach((w,
|
|
470
|
-
p.searchParams.append(
|
|
469
|
+
return r.value && f ? (p.search = "", p = n.value.app === "konnect" ? new URL(`${p.href}?filter[name][contains]=${f}`) : new URL(`${p.href}/${f}/`)) : (r.value || new URLSearchParams(f).forEach((w, m) => {
|
|
470
|
+
p.searchParams.append(m, w);
|
|
471
471
|
}), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), u && l !== 1 && p.searchParams.append("offset", String(u)), p.href;
|
|
472
472
|
} catch (p) {
|
|
473
473
|
return console.error("RouteList(fetcher)", p), i.value;
|
|
@@ -475,7 +475,7 @@ function Wt(e, t) {
|
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
function wi(e, t, n = "data") {
|
|
478
|
-
const i =
|
|
478
|
+
const i = h(t), { axiosInstance: r } = lt({
|
|
479
479
|
headers: e.requestHeaders
|
|
480
480
|
}), o = Wt(e, i), a = M({
|
|
481
481
|
status: ge.Idle
|
|
@@ -638,7 +638,7 @@ const ye = {
|
|
|
638
638
|
},
|
|
639
639
|
setup(e) {
|
|
640
640
|
Bn((r) => ({
|
|
641
|
-
|
|
641
|
+
50594668: `${i.value}ch`
|
|
642
642
|
}));
|
|
643
643
|
const t = e, n = Re(t.jsonRecord), i = j(() => {
|
|
644
644
|
var r;
|
|
@@ -651,7 +651,7 @@ const ye = {
|
|
|
651
651
|
var a;
|
|
652
652
|
const l = E("KBadge"), s = E("KCodeBlock");
|
|
653
653
|
return I(), K("div", Fi, [
|
|
654
|
-
t.fetcherUrl && (a = t.config) != null && a.
|
|
654
|
+
t.fetcherUrl && (a = t.config) != null && a.jsonYamlFormsEnabled ? (I(), K("div", Ei, [
|
|
655
655
|
_(l, {
|
|
656
656
|
appearance: t.requestMethod
|
|
657
657
|
}, {
|
|
@@ -1063,8 +1063,8 @@ function fr(e) {
|
|
|
1063
1063
|
var t, n;
|
|
1064
1064
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1067
|
-
function
|
|
1066
|
+
var mr = /^[-+]?[0-9]+e/;
|
|
1067
|
+
function hr(e, t) {
|
|
1068
1068
|
var n;
|
|
1069
1069
|
if (isNaN(e))
|
|
1070
1070
|
switch (t) {
|
|
@@ -1095,7 +1095,7 @@ function mr(e, t) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
else if (Y.isNegativeZero(e))
|
|
1097
1097
|
return "-0.0";
|
|
1098
|
-
return n = e.toString(10),
|
|
1098
|
+
return n = e.toString(10), mr.test(n) ? n.replace("e", ".e") : n;
|
|
1099
1099
|
}
|
|
1100
1100
|
function gr(e) {
|
|
1101
1101
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Y.isNegativeZero(e));
|
|
@@ -1105,7 +1105,7 @@ var sn = new J("tag:yaml.org,2002:float", {
|
|
|
1105
1105
|
resolve: pr,
|
|
1106
1106
|
construct: fr,
|
|
1107
1107
|
predicate: gr,
|
|
1108
|
-
represent:
|
|
1108
|
+
represent: hr,
|
|
1109
1109
|
defaultStyle: "lowercase"
|
|
1110
1110
|
}), cn = rn.extend({
|
|
1111
1111
|
implicit: [
|
|
@@ -1148,7 +1148,7 @@ var fn = new J("tag:yaml.org,2002:timestamp", {
|
|
|
1148
1148
|
function kr(e) {
|
|
1149
1149
|
return e === "<<" || e === null;
|
|
1150
1150
|
}
|
|
1151
|
-
var
|
|
1151
|
+
var mn = new J("tag:yaml.org,2002:merge", {
|
|
1152
1152
|
kind: "scalar",
|
|
1153
1153
|
resolve: kr
|
|
1154
1154
|
}), ct = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1180,7 +1180,7 @@ function Sr(e) {
|
|
|
1180
1180
|
function Ar(e) {
|
|
1181
1181
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1182
1182
|
}
|
|
1183
|
-
var
|
|
1183
|
+
var hn = new J("tag:yaml.org,2002:binary", {
|
|
1184
1184
|
kind: "scalar",
|
|
1185
1185
|
resolve: wr,
|
|
1186
1186
|
construct: Cr,
|
|
@@ -1260,15 +1260,15 @@ var vn = new J("tag:yaml.org,2002:set", {
|
|
|
1260
1260
|
}), ut = un.extend({
|
|
1261
1261
|
implicit: [
|
|
1262
1262
|
fn,
|
|
1263
|
-
|
|
1263
|
+
mn
|
|
1264
1264
|
],
|
|
1265
1265
|
explicit: [
|
|
1266
|
-
|
|
1266
|
+
hn,
|
|
1267
1267
|
gn,
|
|
1268
1268
|
yn,
|
|
1269
1269
|
vn
|
|
1270
1270
|
]
|
|
1271
|
-
}),
|
|
1271
|
+
}), me = Object.prototype.hasOwnProperty, Pe = 1, bn = 2, kn = 3, Be = 4, Ze = 1, Lr = 2, St = 3, $r = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, qr = /[\x85\u2028\u2029]/, Kr = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, Cn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1272
1272
|
function At(e) {
|
|
1273
1273
|
return Object.prototype.toString.call(e);
|
|
1274
1274
|
}
|
|
@@ -1334,7 +1334,7 @@ var xt = {
|
|
|
1334
1334
|
},
|
|
1335
1335
|
TAG: function(e, t, n) {
|
|
1336
1336
|
var i, r;
|
|
1337
|
-
n.length !== 2 && k(e, "TAG directive accepts exactly two arguments"), i = n[0], r = n[1], wn.test(i) || k(e, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
1337
|
+
n.length !== 2 && k(e, "TAG directive accepts exactly two arguments"), i = n[0], r = n[1], wn.test(i) || k(e, "ill-formed tag handle (first argument) of the TAG directive"), me.call(e.tagMap, i) && k(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Cn.test(r) || k(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1338
1338
|
try {
|
|
1339
1339
|
r = decodeURIComponent(r);
|
|
1340
1340
|
} catch {
|
|
@@ -1357,7 +1357,7 @@ function pe(e, t, n, i) {
|
|
|
1357
1357
|
function _t(e, t, n, i) {
|
|
1358
1358
|
var r, o, a, l;
|
|
1359
1359
|
for (Y.isObject(n) || k(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1360
|
-
o = r[a],
|
|
1360
|
+
o = r[a], me.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1361
1361
|
}
|
|
1362
1362
|
function Ce(e, t, n, i, r, o, a, l, s) {
|
|
1363
1363
|
var u, d;
|
|
@@ -1371,7 +1371,7 @@ function Ce(e, t, n, i, r, o, a, l, s) {
|
|
|
1371
1371
|
else
|
|
1372
1372
|
_t(e, t, o, n);
|
|
1373
1373
|
else
|
|
1374
|
-
!e.json && !
|
|
1374
|
+
!e.json && !me.call(n, r) && me.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, k(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1375
1375
|
configurable: !0,
|
|
1376
1376
|
enumerable: !0,
|
|
1377
1377
|
writable: !0,
|
|
@@ -1473,7 +1473,7 @@ function zr(e, t) {
|
|
|
1473
1473
|
k(e, "unexpected end of the stream within a double quoted scalar");
|
|
1474
1474
|
}
|
|
1475
1475
|
function Yr(e, t) {
|
|
1476
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, w = /* @__PURE__ */ Object.create(null),
|
|
1476
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, w = /* @__PURE__ */ Object.create(null), m, C, b, g;
|
|
1477
1477
|
if (g = e.input.charCodeAt(e.position), g === 91)
|
|
1478
1478
|
d = 93, p = !1, l = [];
|
|
1479
1479
|
else if (g === 123)
|
|
@@ -1483,7 +1483,7 @@ function Yr(e, t) {
|
|
|
1483
1483
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), g = e.input.charCodeAt(++e.position); g !== 0; ) {
|
|
1484
1484
|
if (z(e, !0, t), g = e.input.charCodeAt(e.position), g === d)
|
|
1485
1485
|
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1486
|
-
n ? g === 44 && k(e, "expected the node content, but found ','") : k(e, "missed comma between flow collection entries"), C =
|
|
1486
|
+
n ? g === 44 && k(e, "expected the node content, but found ','") : k(e, "missed comma between flow collection entries"), C = m = b = null, c = f = !1, g === 63 && (u = e.input.charCodeAt(e.position + 1), ie(u) && (c = f = !0, e.position++, z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Se(e, t, Pe, !1, !0), C = e.tag, m = e.result, z(e, !0, t), g = e.input.charCodeAt(e.position), (f || e.line === i) && g === 58 && (c = !0, g = e.input.charCodeAt(++e.position), z(e, !0, t), Se(e, t, Pe, !1, !0), b = e.result), p ? Ce(e, l, w, C, m, b, i, r, o) : c ? l.push(Ce(e, null, w, C, m, b, i, r, o)) : l.push(m), z(e, !0, t), g = e.input.charCodeAt(e.position), g === 44 ? (n = !0, g = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1487
1487
|
}
|
|
1488
1488
|
k(e, "unexpected end of the stream within a flow collection");
|
|
1489
1489
|
}
|
|
@@ -1551,12 +1551,12 @@ function Tt(e, t) {
|
|
|
1551
1551
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1552
1552
|
}
|
|
1553
1553
|
function Jr(e, t, n) {
|
|
1554
|
-
var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, w = null,
|
|
1554
|
+
var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, w = null, m = null, C = !1, b = !1, g;
|
|
1555
1555
|
if (e.firstTabInLine !== -1)
|
|
1556
1556
|
return !1;
|
|
1557
1557
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), g = e.input.charCodeAt(e.position); g !== 0; ) {
|
|
1558
1558
|
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, k(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (g === 63 || g === 58) && ie(i))
|
|
1559
|
-
g === 63 ? (C && (Ce(e, c, f, p, w, null, a, l, s), p = w =
|
|
1559
|
+
g === 63 ? (C && (Ce(e, c, f, p, w, null, a, l, s), p = w = m = null), b = !0, C = !0, r = !0) : C ? (C = !1, r = !0) : k(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, g = i;
|
|
1560
1560
|
else {
|
|
1561
1561
|
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n, bn, !1, !0))
|
|
1562
1562
|
break;
|
|
@@ -1564,7 +1564,7 @@ function Jr(e, t, n) {
|
|
|
1564
1564
|
for (g = e.input.charCodeAt(e.position); ve(g); )
|
|
1565
1565
|
g = e.input.charCodeAt(++e.position);
|
|
1566
1566
|
if (g === 58)
|
|
1567
|
-
g = e.input.charCodeAt(++e.position), ie(g) || k(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Ce(e, c, f, p, w, null, a, l, s), p = w =
|
|
1567
|
+
g = e.input.charCodeAt(++e.position), ie(g) || k(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Ce(e, c, f, p, w, null, a, l, s), p = w = m = null), b = !0, C = !1, r = !1, p = e.tag, w = e.result;
|
|
1568
1568
|
else if (b)
|
|
1569
1569
|
k(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1570
1570
|
else
|
|
@@ -1574,7 +1574,7 @@ function Jr(e, t, n) {
|
|
|
1574
1574
|
else
|
|
1575
1575
|
return e.tag = u, e.anchor = d, !0;
|
|
1576
1576
|
}
|
|
1577
|
-
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, s = e.position), Se(e, t, Be, !0, r) && (C ? w = e.result :
|
|
1577
|
+
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, s = e.position), Se(e, t, Be, !0, r) && (C ? w = e.result : m = e.result), C || (Ce(e, c, f, p, w, m, a, l, s), p = w = m = null), z(e, !0, -1), g = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && g !== 0)
|
|
1578
1578
|
k(e, "bad indentation of a mapping entry");
|
|
1579
1579
|
else if (e.lineIndent < t)
|
|
1580
1580
|
break;
|
|
@@ -1601,7 +1601,7 @@ function Gr(e) {
|
|
|
1601
1601
|
} catch {
|
|
1602
1602
|
k(e, "tag name is malformed: " + o);
|
|
1603
1603
|
}
|
|
1604
|
-
return n ? e.tag = o :
|
|
1604
|
+
return n ? e.tag = o : me.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : k(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1605
1605
|
}
|
|
1606
1606
|
function Zr(e) {
|
|
1607
1607
|
var t, n;
|
|
@@ -1617,14 +1617,14 @@ function Qr(e) {
|
|
|
1617
1617
|
return !1;
|
|
1618
1618
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ie(i) && !we(i); )
|
|
1619
1619
|
i = e.input.charCodeAt(++e.position);
|
|
1620
|
-
return e.position === t && k(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
1620
|
+
return e.position === t && k(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), me.call(e.anchorMap, n) || k(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], z(e, !0, -1), !0;
|
|
1621
1621
|
}
|
|
1622
1622
|
function Se(e, t, n, i, r) {
|
|
1623
|
-
var o, a, l, s = 1, u = !1, d = !1, c, f, p, w,
|
|
1623
|
+
var o, a, l, s = 1, u = !1, d = !1, c, f, p, w, m, C;
|
|
1624
1624
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Be === n || kn === n, i && z(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1625
1625
|
for (; Gr(e) || Zr(e); )
|
|
1626
1626
|
z(e, !0, -1) ? (u = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1627
|
-
if (l && (l = u || r), (s === 1 || Be === n) && (Pe === n || bn === n ?
|
|
1627
|
+
if (l && (l = u || r), (s === 1 || Be === n) && (Pe === n || bn === n ? m = t : m = t + 1, C = e.position - e.lineStart, s === 1 ? l && (Tt(e, C) || Jr(e, C, m)) || Yr(e, m) ? d = !0 : (a && Wr(e, m) || Hr(e, m) || zr(e, m) ? d = !0 : Qr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && k(e, "alias node should not have any properties")) : Vr(e, m, Pe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Tt(e, C))), e.tag === null)
|
|
1628
1628
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1629
1629
|
else if (e.tag === "?") {
|
|
1630
1630
|
for (e.result !== null && e.kind !== "scalar" && k(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, f = e.implicitTypes.length; c < f; c += 1)
|
|
@@ -1633,7 +1633,7 @@ function Se(e, t, n, i, r) {
|
|
|
1633
1633
|
break;
|
|
1634
1634
|
}
|
|
1635
1635
|
} else if (e.tag !== "!") {
|
|
1636
|
-
if (
|
|
1636
|
+
if (me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1637
1637
|
w = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1638
1638
|
else
|
|
1639
1639
|
for (w = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, f = p.length; c < f; c += 1)
|
|
@@ -1665,7 +1665,7 @@ function Xr(e) {
|
|
|
1665
1665
|
a = e.input.charCodeAt(++e.position);
|
|
1666
1666
|
r.push(e.input.slice(n, e.position));
|
|
1667
1667
|
}
|
|
1668
|
-
a !== 0 && dt(e),
|
|
1668
|
+
a !== 0 && dt(e), me.call(xt, i) ? xt[i](e, i, r) : De(e, 'unknown document directive "' + i + '"');
|
|
1669
1669
|
}
|
|
1670
1670
|
if (z(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, z(e, !0, -1)) : o && k(e, "directives end mark is expected"), Se(e, e.lineIndent - 1, Be, !1, !0), z(e, !0, -1), e.checkLineBreaks && qr.test(e.input.slice(t, e.position)) && De(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ze(e)) {
|
|
1671
1671
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
|
|
@@ -1705,7 +1705,7 @@ function ta(e, t) {
|
|
|
1705
1705
|
var na = ea, ia = ta, _n = {
|
|
1706
1706
|
loadAll: na,
|
|
1707
1707
|
load: ia
|
|
1708
|
-
}, Tn = Object.prototype.toString, jn = Object.prototype.hasOwnProperty, ft = 65279, ra = 9, Ee = 10, aa = 13, oa = 32, la = 33, sa = 34, et = 35, ca = 37, ua = 38, da = 39, pa = 42, On = 44, fa = 45, Ve = 58,
|
|
1708
|
+
}, Tn = Object.prototype.toString, jn = Object.prototype.hasOwnProperty, ft = 65279, ra = 9, Ee = 10, aa = 13, oa = 32, la = 33, sa = 34, et = 35, ca = 37, ua = 38, da = 39, pa = 42, On = 44, fa = 45, Ve = 58, ma = 61, ha = 62, ga = 63, ya = 64, Mn = 91, Fn = 93, va = 96, En = 123, ba = 124, Nn = 125, Q = {};
|
|
1709
1709
|
Q[0] = "\\0";
|
|
1710
1710
|
Q[7] = "\\a";
|
|
1711
1711
|
Q[8] = "\\b";
|
|
@@ -1801,7 +1801,7 @@ function Mt(e, t, n) {
|
|
|
1801
1801
|
);
|
|
1802
1802
|
}
|
|
1803
1803
|
function _a(e) {
|
|
1804
|
-
return Le(e) && e !== ft && !He(e) && e !== fa && e !== ga && e !== Ve && e !== On && e !== Mn && e !== Fn && e !== En && e !== Nn && e !== et && e !== ua && e !== pa && e !== la && e !== ba && e !==
|
|
1804
|
+
return Le(e) && e !== ft && !He(e) && e !== fa && e !== ga && e !== Ve && e !== On && e !== Mn && e !== Fn && e !== En && e !== Nn && e !== et && e !== ua && e !== pa && e !== la && e !== ba && e !== ma && e !== ha && e !== da && e !== sa && e !== ca && e !== ya && e !== va;
|
|
1805
1805
|
}
|
|
1806
1806
|
function Ta(e) {
|
|
1807
1807
|
return !He(e) && e !== Ve;
|
|
@@ -1816,12 +1816,12 @@ function Ln(e) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
var $n = 1, nt = 2, qn = 3, Kn = 4, ke = 5;
|
|
1818
1818
|
function ja(e, t, n, i, r, o, a, l) {
|
|
1819
|
-
var s, u = 0, d = null, c = !1, f = !1, p = i !== -1, w = -1,
|
|
1819
|
+
var s, u = 0, d = null, c = !1, f = !1, p = i !== -1, w = -1, m = _a(Te(e, 0)) && Ta(Te(e, e.length - 1));
|
|
1820
1820
|
if (t || a)
|
|
1821
1821
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
1822
1822
|
if (u = Te(e, s), !Le(u))
|
|
1823
1823
|
return ke;
|
|
1824
|
-
|
|
1824
|
+
m = m && Mt(u, d, l), d = u;
|
|
1825
1825
|
}
|
|
1826
1826
|
else {
|
|
1827
1827
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
@@ -1830,11 +1830,11 @@ function ja(e, t, n, i, r, o, a, l) {
|
|
|
1830
1830
|
s - w - 1 > i && e[w + 1] !== " ", w = s);
|
|
1831
1831
|
else if (!Le(u))
|
|
1832
1832
|
return ke;
|
|
1833
|
-
|
|
1833
|
+
m = m && Mt(u, d, l), d = u;
|
|
1834
1834
|
}
|
|
1835
1835
|
f = f || p && s - w - 1 > i && e[w + 1] !== " ";
|
|
1836
1836
|
}
|
|
1837
|
-
return !c && !f ?
|
|
1837
|
+
return !c && !f ? m && !a && !r(e) ? $n : o === Ne ? ke : nt : n > 9 && Ln(e) ? ke : a ? o === Ne ? ke : nt : f ? Kn : qn;
|
|
1838
1838
|
}
|
|
1839
1839
|
function Oa(e, t, n, i, r) {
|
|
1840
1840
|
e.dump = function() {
|
|
@@ -2012,13 +2012,13 @@ function qa(e, t) {
|
|
|
2012
2012
|
var Ka = qa, Ra = {
|
|
2013
2013
|
dump: Ka
|
|
2014
2014
|
};
|
|
2015
|
-
function
|
|
2015
|
+
function mt(e, t) {
|
|
2016
2016
|
return function() {
|
|
2017
2017
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2018
2018
|
};
|
|
2019
2019
|
}
|
|
2020
2020
|
var Ua = J, Pa = Xt, Ba = rn, Da = cn, Va = un, Ha = ut, za = _n.load, Ya = _n.loadAll, Wa = Ra.dump, Ja = te, Ga = {
|
|
2021
|
-
binary:
|
|
2021
|
+
binary: hn,
|
|
2022
2022
|
float: sn,
|
|
2023
2023
|
map: nn,
|
|
2024
2024
|
null: an,
|
|
@@ -2027,11 +2027,11 @@ var Ua = J, Pa = Xt, Ba = rn, Da = cn, Va = un, Ha = ut, za = _n.load, Ya = _n.l
|
|
|
2027
2027
|
timestamp: fn,
|
|
2028
2028
|
bool: on,
|
|
2029
2029
|
int: ln,
|
|
2030
|
-
merge:
|
|
2030
|
+
merge: mn,
|
|
2031
2031
|
omap: gn,
|
|
2032
2032
|
seq: tn,
|
|
2033
2033
|
str: en
|
|
2034
|
-
}, Za =
|
|
2034
|
+
}, Za = mt("safeLoad", "load"), Qa = mt("safeLoadAll", "loadAll"), Xa = mt("safeDump", "dump"), eo = {
|
|
2035
2035
|
Type: Ua,
|
|
2036
2036
|
Schema: Pa,
|
|
2037
2037
|
FAILSAFE_SCHEMA: Ba,
|
|
@@ -2064,7 +2064,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2064
2064
|
t.yamlRecord ? (I(), D(o, {
|
|
2065
2065
|
key: 0,
|
|
2066
2066
|
id: "yaml-codeblock",
|
|
2067
|
-
code:
|
|
2067
|
+
code: h(eo).dump(n),
|
|
2068
2068
|
language: "yaml",
|
|
2069
2069
|
theme: "dark"
|
|
2070
2070
|
}, null, 8, ["code"])) : Z("", !0)
|
|
@@ -2135,7 +2135,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2135
2135
|
var S, A;
|
|
2136
2136
|
let O = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2137
2137
|
return r.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "") : r.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), r.editId ? (O = O.replace(/{id}/gi, r.editId), O) : (O = O.replace(/\/{id}/gi, ""), O);
|
|
2138
|
-
}),
|
|
2138
|
+
}), m = () => {
|
|
2139
2139
|
p.value = !p.value;
|
|
2140
2140
|
}, C = () => {
|
|
2141
2141
|
r.config.cancelRoute ? o.push(r.config.cancelRoute) : b();
|
|
@@ -2176,7 +2176,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2176
2176
|
type: "form"
|
|
2177
2177
|
})) : d.value ? (I(), D(X, {
|
|
2178
2178
|
key: 1,
|
|
2179
|
-
"cta-text":
|
|
2179
|
+
"cta-text": h(a)("baseForm.actions.back"),
|
|
2180
2180
|
"data-testid": "form-fetch-error",
|
|
2181
2181
|
"handle-click": C,
|
|
2182
2182
|
"is-error": !0
|
|
@@ -2200,14 +2200,14 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2200
2200
|
}, null, 8, ["alert-message"])) : Z("", !0),
|
|
2201
2201
|
q("div", io, [
|
|
2202
2202
|
ae(S.$slots, "form-actions", {}, () => [
|
|
2203
|
-
e.config.
|
|
2203
|
+
e.config.jsonYamlFormsEnabled ? (I(), K("div", ro, [
|
|
2204
2204
|
_(R, {
|
|
2205
2205
|
appearance: "tertiary",
|
|
2206
2206
|
"data-testid": "form-view-configuration",
|
|
2207
|
-
onClick: A[0] || (A[0] = (G) =>
|
|
2207
|
+
onClick: A[0] || (A[0] = (G) => m())
|
|
2208
2208
|
}, {
|
|
2209
2209
|
default: v(() => [
|
|
2210
|
-
W(N(
|
|
2210
|
+
W(N(h(a)("baseForm.actions.viewConfiguration")), 1)
|
|
2211
2211
|
]),
|
|
2212
2212
|
_: 1
|
|
2213
2213
|
})
|
|
@@ -2219,7 +2219,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2219
2219
|
type: "reset"
|
|
2220
2220
|
}, {
|
|
2221
2221
|
default: v(() => [
|
|
2222
|
-
W(N(
|
|
2222
|
+
W(N(h(a)("baseForm.actions.cancel")), 1)
|
|
2223
2223
|
]),
|
|
2224
2224
|
_: 1
|
|
2225
2225
|
}, 8, ["disabled"]),
|
|
@@ -2230,7 +2230,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2230
2230
|
type: "submit"
|
|
2231
2231
|
}, {
|
|
2232
2232
|
default: v(() => [
|
|
2233
|
-
W(N(
|
|
2233
|
+
W(N(h(a)("baseForm.actions.save")), 1)
|
|
2234
2234
|
]),
|
|
2235
2235
|
_: 1
|
|
2236
2236
|
}, 8, ["disabled"])
|
|
@@ -2243,11 +2243,11 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2243
2243
|
"has-overlay": !1,
|
|
2244
2244
|
"is-visible": p.value,
|
|
2245
2245
|
"prevent-close-on-blur": "",
|
|
2246
|
-
title:
|
|
2247
|
-
onClose: A[1] || (A[1] = (G) =>
|
|
2246
|
+
title: h(a)("baseForm.configuration.title"),
|
|
2247
|
+
onClose: A[1] || (A[1] = (G) => m())
|
|
2248
2248
|
}, {
|
|
2249
2249
|
default: v(() => [
|
|
2250
|
-
q("div", null, N(
|
|
2250
|
+
q("div", null, N(h(a)("baseForm.configuration.message")), 1),
|
|
2251
2251
|
_(V, {
|
|
2252
2252
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
2253
2253
|
tabs: L.value
|
|
@@ -2275,7 +2275,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2275
2275
|
});
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
}), oo = /* @__PURE__ */ Ae(ao, [["__scopeId", "data-v-
|
|
2278
|
+
}), oo = /* @__PURE__ */ Ae(ao, [["__scopeId", "data-v-4ef70725"]]), lo = {
|
|
2279
2279
|
key: 0,
|
|
2280
2280
|
"data-testid": "first-col"
|
|
2281
2281
|
}, so = /* @__PURE__ */ re({
|
|
@@ -2292,32 +2292,32 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2292
2292
|
},
|
|
2293
2293
|
setup(e) {
|
|
2294
2294
|
const t = e, n = j(() => {
|
|
2295
|
-
var
|
|
2296
|
-
return ((
|
|
2295
|
+
var m;
|
|
2296
|
+
return ((m = t.rowEl) == null ? void 0 : m.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
2297
2297
|
}), i = j(() => {
|
|
2298
|
-
var
|
|
2299
|
-
return ((
|
|
2298
|
+
var m;
|
|
2299
|
+
return ((m = n.value) == null ? void 0 : m.querySelector('[data-testid="first-col"]')) || null;
|
|
2300
2300
|
}), r = j(() => {
|
|
2301
|
-
var
|
|
2302
|
-
const b = (
|
|
2301
|
+
var m, C;
|
|
2302
|
+
const b = (m = t.rowEl) == null ? void 0 : m.querySelectorAll("td");
|
|
2303
2303
|
return b ? ((C = b[0]) == null ? void 0 : C.getAttribute("data-testid")) === t.keyName : !1;
|
|
2304
2304
|
});
|
|
2305
2305
|
let o;
|
|
2306
2306
|
const a = () => {
|
|
2307
2307
|
o && (o.disconnect(), o = void 0);
|
|
2308
2308
|
}, l = () => {
|
|
2309
|
-
var
|
|
2310
|
-
u.value = ((
|
|
2309
|
+
var m, C, b;
|
|
2310
|
+
u.value = ((m = i.value) == null ? void 0 : m.getBoundingClientRect().width) || 0, d.value = ((C = n.value) == null ? void 0 : C.clientWidth) || 0, c.value = ((b = s.value) == null ? void 0 : b.innerText) || "";
|
|
2311
2311
|
}, s = M({}), u = M(0), d = M(0), c = M(""), f = j(() => [i.value, n.value]), p = fe(
|
|
2312
2312
|
f,
|
|
2313
|
-
(
|
|
2313
|
+
(m) => {
|
|
2314
2314
|
if (r.value && (a(), "ResizeObserver" in window && window)) {
|
|
2315
2315
|
o = new ResizeObserver((C) => {
|
|
2316
2316
|
window.requestAnimationFrame(() => {
|
|
2317
2317
|
!Array.isArray(C) || !C.length || l();
|
|
2318
2318
|
});
|
|
2319
2319
|
});
|
|
2320
|
-
for (const C of
|
|
2320
|
+
for (const C of m)
|
|
2321
2321
|
C && o.observe(C);
|
|
2322
2322
|
}
|
|
2323
2323
|
},
|
|
@@ -2327,7 +2327,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2327
2327
|
l();
|
|
2328
2328
|
}), Vn(() => {
|
|
2329
2329
|
p();
|
|
2330
|
-
}), (
|
|
2330
|
+
}), (m, C) => {
|
|
2331
2331
|
const b = E("KTooltip");
|
|
2332
2332
|
return I(), K("span", {
|
|
2333
2333
|
ref_key: "contentRef",
|
|
@@ -2341,18 +2341,18 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2341
2341
|
placement: "bottomStart"
|
|
2342
2342
|
}, {
|
|
2343
2343
|
default: v(() => [
|
|
2344
|
-
ae(
|
|
2344
|
+
ae(m.$slots, "default", {}, void 0, !0)
|
|
2345
2345
|
]),
|
|
2346
2346
|
_: 3
|
|
2347
2347
|
}, 8, ["label"])
|
|
2348
|
-
])) : ae(
|
|
2348
|
+
])) : ae(m.$slots, "default", { key: 1 }, void 0, !0)
|
|
2349
2349
|
], 512);
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
2352
|
}), co = /* @__PURE__ */ Ae(so, [["__scopeId", "data-v-e42a20c9"]]), uo = { class: "toolbar-container" }, po = {
|
|
2353
2353
|
key: 0,
|
|
2354
2354
|
class: "toolbar-button-container"
|
|
2355
|
-
}, fo = ["data-testid"],
|
|
2355
|
+
}, fo = ["data-testid"], mo = /* @__PURE__ */ re({
|
|
2356
2356
|
__name: "EntityBaseTable",
|
|
2357
2357
|
props: {
|
|
2358
2358
|
// table header configuration
|
|
@@ -2507,7 +2507,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2507
2507
|
i("empty-state-cta-clicked"), w();
|
|
2508
2508
|
}, w = () => {
|
|
2509
2509
|
i("clear-search-input");
|
|
2510
|
-
},
|
|
2510
|
+
}, m = j(() => n.disableRowClick ? void 0 : (A, O) => {
|
|
2511
2511
|
i("click:row", O);
|
|
2512
2512
|
}), C = (A) => {
|
|
2513
2513
|
i("sort", A);
|
|
@@ -2535,12 +2535,12 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2535
2535
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
2536
2536
|
"disable-sorting": e.disableSorting,
|
|
2537
2537
|
"empty-state-action-button-icon": e.query ? "" : "plus",
|
|
2538
|
-
"empty-state-action-message": e.query ?
|
|
2538
|
+
"empty-state-action-message": e.query ? h(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
2539
2539
|
"empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
|
|
2540
2540
|
"empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
|
|
2541
2541
|
"empty-state-icon-size": "96",
|
|
2542
|
-
"empty-state-message": e.query ?
|
|
2543
|
-
"empty-state-title": e.query ?
|
|
2542
|
+
"empty-state-message": e.query ? h(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
2543
|
+
"empty-state-title": e.query ? h(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
2544
2544
|
"enable-client-sort": e.enableClientSort,
|
|
2545
2545
|
"error-state-message": o.value.message,
|
|
2546
2546
|
"error-state-title": o.value.title,
|
|
@@ -2555,7 +2555,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2555
2555
|
"row-attrs": u,
|
|
2556
2556
|
"search-input": e.query,
|
|
2557
2557
|
onKtableEmptyStateCtaClicked: p,
|
|
2558
|
-
"onRow:click":
|
|
2558
|
+
"onRow:click": m.value,
|
|
2559
2559
|
onSort: O[0] || (O[0] = ($) => C($)),
|
|
2560
2560
|
"onUpdate:tablePreferences": S
|
|
2561
2561
|
}, Pt({
|
|
@@ -2593,7 +2593,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2593
2593
|
}, {
|
|
2594
2594
|
icon: v(() => [
|
|
2595
2595
|
_(X, {
|
|
2596
|
-
color:
|
|
2596
|
+
color: h(Mi),
|
|
2597
2597
|
icon: "more",
|
|
2598
2598
|
size: "16"
|
|
2599
2599
|
}, null, 8, ["color"])
|
|
@@ -2633,7 +2633,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2633
2633
|
}, 8, ["title"]);
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
}),
|
|
2636
|
+
}), ho = /* @__PURE__ */ Ae(mo, [["__scopeId", "data-v-57b5a97b"]]), go = {
|
|
2637
2637
|
key: 0,
|
|
2638
2638
|
class: "kong-ui-entity-delete-error"
|
|
2639
2639
|
}, yo = {
|
|
@@ -2705,7 +2705,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2705
2705
|
_: 1
|
|
2706
2706
|
})
|
|
2707
2707
|
])) : Z("", !0),
|
|
2708
|
-
_(
|
|
2708
|
+
_(h(n), {
|
|
2709
2709
|
class: "message",
|
|
2710
2710
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
2711
2711
|
tag: "p"
|
|
@@ -2830,7 +2830,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2830
2830
|
...a.value,
|
|
2831
2831
|
[b]: ""
|
|
2832
2832
|
}, C();
|
|
2833
|
-
},
|
|
2833
|
+
}, m = () => {
|
|
2834
2834
|
a.value = {}, C(!0);
|
|
2835
2835
|
}, C = (b = !1) => {
|
|
2836
2836
|
const g = Object.keys(a.value).reduce((L, S) => (a.value[S] && (L[S] = `${a.value[S]}`), L), {});
|
|
@@ -2859,7 +2859,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2859
2859
|
}, {
|
|
2860
2860
|
default: v(() => [
|
|
2861
2861
|
_(qt),
|
|
2862
|
-
W(" " + N(
|
|
2862
|
+
W(" " + N(h(n)("filter.filterButtonText")) + " " + N(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
2863
2863
|
]),
|
|
2864
2864
|
_: 1
|
|
2865
2865
|
}),
|
|
@@ -2892,7 +2892,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2892
2892
|
q("label", {
|
|
2893
2893
|
class: "menu-item-label",
|
|
2894
2894
|
for: c(x.value)
|
|
2895
|
-
}, N(
|
|
2895
|
+
}, N(h(n)("filter.fieldLabel")), 9, jo),
|
|
2896
2896
|
((U = (V = e.config.schema) == null ? void 0 : V[x.value]) == null ? void 0 : U.type) === "select" ? (I(), D(A, {
|
|
2897
2897
|
key: 0,
|
|
2898
2898
|
id: c(x.value),
|
|
@@ -2900,14 +2900,14 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2900
2900
|
"onUpdate:modelValue": ($) => a.value[x.value] = $,
|
|
2901
2901
|
appearance: "select",
|
|
2902
2902
|
items: f(x.value),
|
|
2903
|
-
placeholder:
|
|
2903
|
+
placeholder: h(n)("filter.selectPlaceholder")
|
|
2904
2904
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (I(), D(L, {
|
|
2905
2905
|
key: 1,
|
|
2906
2906
|
id: c(x.value),
|
|
2907
2907
|
modelValue: a.value[x.value],
|
|
2908
2908
|
"onUpdate:modelValue": ($) => a.value[x.value] = $,
|
|
2909
2909
|
autocomplete: "off",
|
|
2910
|
-
placeholder:
|
|
2910
|
+
placeholder: h(n)("filter.inputPlaceholder"),
|
|
2911
2911
|
type: p(x.value)
|
|
2912
2912
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
2913
2913
|
]),
|
|
@@ -2919,7 +2919,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2919
2919
|
onClick: g[0] || (g[0] = ($) => C(!0))
|
|
2920
2920
|
}, {
|
|
2921
2921
|
default: v(() => [
|
|
2922
|
-
W(N(
|
|
2922
|
+
W(N(h(n)("filter.applyButtonText")), 1)
|
|
2923
2923
|
]),
|
|
2924
2924
|
_: 1
|
|
2925
2925
|
}),
|
|
@@ -2930,7 +2930,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2930
2930
|
onClick: ($) => w(x.value)
|
|
2931
2931
|
}, {
|
|
2932
2932
|
default: v(() => [
|
|
2933
|
-
W(N(
|
|
2933
|
+
W(N(h(n)("filter.clearButtonText")), 1)
|
|
2934
2934
|
]),
|
|
2935
2935
|
_: 2
|
|
2936
2936
|
}, 1032, ["onClick"])
|
|
@@ -2945,10 +2945,10 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
2945
2945
|
_(S, {
|
|
2946
2946
|
appearance: "tertiary",
|
|
2947
2947
|
size: "small",
|
|
2948
|
-
onClick:
|
|
2948
|
+
onClick: m
|
|
2949
2949
|
}, {
|
|
2950
2950
|
default: v(() => [
|
|
2951
|
-
W(N(
|
|
2951
|
+
W(N(h(n)("filter.clearAllButtonText")), 1)
|
|
2952
2952
|
]),
|
|
2953
2953
|
_: 1
|
|
2954
2954
|
})
|
|
@@ -3035,12 +3035,12 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3035
3035
|
class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3036
3036
|
}, [
|
|
3037
3037
|
e.title ? (I(), K("h4", Lo, N(e.title), 1)) : Z("", !0),
|
|
3038
|
-
e.description ||
|
|
3038
|
+
e.description || h(t).description ? (I(), K("div", $o, [
|
|
3039
3039
|
ae(n.$slots, "description", {}, () => [
|
|
3040
3040
|
q("p", null, N(e.description), 1)
|
|
3041
3041
|
], !0)
|
|
3042
3042
|
])) : Z("", !0),
|
|
3043
|
-
|
|
3043
|
+
h(t).footer ? (I(), K("div", qo, [
|
|
3044
3044
|
ae(n.$slots, "footer", {}, void 0, !0)
|
|
3045
3045
|
])) : Z("", !0)
|
|
3046
3046
|
], 2)),
|
|
@@ -3227,7 +3227,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3227
3227
|
s.value = i.tooltip;
|
|
3228
3228
|
}, 1800);
|
|
3229
3229
|
}, f = (p) => {
|
|
3230
|
-
var w,
|
|
3230
|
+
var w, m;
|
|
3231
3231
|
if (!p(i.uuid)) {
|
|
3232
3232
|
typeof o == "function" && o({
|
|
3233
3233
|
type: "error",
|
|
@@ -3235,16 +3235,16 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3235
3235
|
}), l.value ? c(n("message.fail")) : r("error", i.uuid);
|
|
3236
3236
|
return;
|
|
3237
3237
|
}
|
|
3238
|
-
const C = ((w = i.uuid) == null ? void 0 : w.length) > Ut, b = i.format === "hidden" || i.format === "redacted" ? n("message.success.prefix") : `"${((
|
|
3238
|
+
const C = ((w = i.uuid) == null ? void 0 : w.length) > Ut, b = i.format === "hidden" || i.format === "redacted" ? n("message.success.prefix") : `"${((m = i.uuid) == null ? void 0 : m.substring(0, Ut)) + (C ? "..." : "")}"`;
|
|
3239
3239
|
typeof o == "function" && o({
|
|
3240
3240
|
type: "success",
|
|
3241
3241
|
message: `${b}${n("message.success.content")}`
|
|
3242
3242
|
}), l.value ? c(i.successTooltip) : r("success", i.uuid);
|
|
3243
3243
|
};
|
|
3244
3244
|
return (p, w) => {
|
|
3245
|
-
const
|
|
3245
|
+
const m = E("KClipboardProvider");
|
|
3246
3246
|
return I(), K("div", nl, [
|
|
3247
|
-
e.format !== "hidden" ? (I(), D(Ue(e.idTooltip ? "KTooltip" : "div"),
|
|
3247
|
+
e.format !== "hidden" ? (I(), D(Ue(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
3248
3248
|
default: v(() => [
|
|
3249
3249
|
q("div", {
|
|
3250
3250
|
class: Me([
|
|
@@ -3256,9 +3256,9 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3256
3256
|
]),
|
|
3257
3257
|
_: 1
|
|
3258
3258
|
}, 16)) : Z("", !0),
|
|
3259
|
-
(I(), D(Ue(e.tooltip ? "KTooltip" : "div"),
|
|
3259
|
+
(I(), D(Ue(e.tooltip ? "KTooltip" : "div"), ht(u.value, { class: "uuid-icon-wrapper" }), {
|
|
3260
3260
|
default: v(() => [
|
|
3261
|
-
_(
|
|
3261
|
+
_(m, null, {
|
|
3262
3262
|
default: v(({ copyToClipboard: C }) => [
|
|
3263
3263
|
q("span", {
|
|
3264
3264
|
"data-testid": "copy-to-clipboard",
|
|
@@ -3266,12 +3266,12 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3266
3266
|
tabindex: "0",
|
|
3267
3267
|
onClick: Ke((b) => f(C), ["stop"])
|
|
3268
3268
|
}, [
|
|
3269
|
-
_(
|
|
3269
|
+
_(h(el), {
|
|
3270
3270
|
class: "uuid-icon",
|
|
3271
3271
|
color: e.iconColor,
|
|
3272
3272
|
decorative: !!e.tooltip,
|
|
3273
|
-
size:
|
|
3274
|
-
title:
|
|
3273
|
+
size: h(tl),
|
|
3274
|
+
title: h(n)("iconTitle")
|
|
3275
3275
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
3276
3276
|
], 8, il)
|
|
3277
3277
|
]),
|
|
@@ -3373,7 +3373,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3373
3373
|
fields: { name: P },
|
|
3374
3374
|
schema: i.config.filterSchema
|
|
3375
3375
|
};
|
|
3376
|
-
}), { fetcher:
|
|
3376
|
+
}), { fetcher: m, fetcherState: C } = Bo(i.config, f.value), b = () => {
|
|
3377
3377
|
p.value = "";
|
|
3378
3378
|
}, g = () => {
|
|
3379
3379
|
l.value++;
|
|
@@ -3444,7 +3444,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3444
3444
|
}), (T, P) => {
|
|
3445
3445
|
const y = E("KButton"), F = E("KBadge"), H = E("KTruncate"), ue = E("KDropdownItem"), ee = E("KClipboardProvider");
|
|
3446
3446
|
return I(), K("div", ll, [
|
|
3447
|
-
_(
|
|
3447
|
+
_(h(ho), {
|
|
3448
3448
|
"cache-identifier": e.cacheIdentifier,
|
|
3449
3449
|
"cell-attributes": c,
|
|
3450
3450
|
"disable-pagination-page-jump": "",
|
|
@@ -3453,18 +3453,18 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3453
3453
|
"empty-state-options": S.value,
|
|
3454
3454
|
"enable-entity-actions": "",
|
|
3455
3455
|
"error-message": L.value,
|
|
3456
|
-
fetcher: m
|
|
3456
|
+
fetcher: h(m),
|
|
3457
3457
|
"fetcher-cache-key": l.value,
|
|
3458
3458
|
"pagination-type": "offset",
|
|
3459
3459
|
"preferences-storage-key": "kong-ui-entities-snis-list",
|
|
3460
3460
|
query: p.value,
|
|
3461
|
-
"table-headers":
|
|
3461
|
+
"table-headers": h(d),
|
|
3462
3462
|
"use-action-outside": e.useActionOutside,
|
|
3463
3463
|
onClearSearchInput: b,
|
|
3464
3464
|
onSort: g
|
|
3465
3465
|
}, {
|
|
3466
3466
|
"toolbar-filter": v(() => [
|
|
3467
|
-
_(
|
|
3467
|
+
_(h(Eo), {
|
|
3468
3468
|
modelValue: p.value,
|
|
3469
3469
|
"onUpdate:modelValue": P[0] || (P[0] = (B) => p.value = B),
|
|
3470
3470
|
config: w.value
|
|
@@ -3475,7 +3475,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3475
3475
|
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
3476
3476
|
}, {
|
|
3477
3477
|
default: v(() => [
|
|
3478
|
-
_(
|
|
3478
|
+
_(h(Qe), {
|
|
3479
3479
|
"auth-function": () => e.canCreate()
|
|
3480
3480
|
}, {
|
|
3481
3481
|
default: v(() => [
|
|
@@ -3486,7 +3486,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3486
3486
|
to: e.config.createRoute
|
|
3487
3487
|
}, {
|
|
3488
3488
|
default: v(() => [
|
|
3489
|
-
W(N(
|
|
3489
|
+
W(N(h(r)("snis.list.toolbar_actions.new")), 1)
|
|
3490
3490
|
]),
|
|
3491
3491
|
_: 1
|
|
3492
3492
|
}, 8, ["to"]), [
|
|
@@ -3503,7 +3503,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3503
3503
|
q("b", null, N(B ?? "-"), 1)
|
|
3504
3504
|
]),
|
|
3505
3505
|
certificate: v(({ row: B }) => [
|
|
3506
|
-
B.certificate && B.certificate.id ? (I(), D(
|
|
3506
|
+
B.certificate && B.certificate.id ? (I(), D(h(ol), {
|
|
3507
3507
|
key: 0,
|
|
3508
3508
|
class: "copy-certificate-uuid",
|
|
3509
3509
|
"data-testid": "copy-certificate-uuid",
|
|
@@ -3537,7 +3537,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3537
3537
|
onClick: ($e) => A(B, oe)
|
|
3538
3538
|
}, {
|
|
3539
3539
|
default: v(() => [
|
|
3540
|
-
W(N(
|
|
3540
|
+
W(N(h(r)("actions.copy_id")), 1)
|
|
3541
3541
|
]),
|
|
3542
3542
|
_: 2
|
|
3543
3543
|
}, 1032, ["onClick"])
|
|
@@ -3551,14 +3551,14 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3551
3551
|
onClick: ($e) => O(B, oe)
|
|
3552
3552
|
}, {
|
|
3553
3553
|
default: v(() => [
|
|
3554
|
-
W(N(
|
|
3554
|
+
W(N(h(r)("actions.copy_json")), 1)
|
|
3555
3555
|
]),
|
|
3556
3556
|
_: 2
|
|
3557
3557
|
}, 1032, ["onClick"])
|
|
3558
3558
|
]),
|
|
3559
3559
|
_: 2
|
|
3560
3560
|
}, 1024),
|
|
3561
|
-
_(
|
|
3561
|
+
_(h(Qe), {
|
|
3562
3562
|
"auth-function": () => e.canEdit(B)
|
|
3563
3563
|
}, {
|
|
3564
3564
|
default: v(() => [
|
|
@@ -3569,7 +3569,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3569
3569
|
]),
|
|
3570
3570
|
_: 2
|
|
3571
3571
|
}, 1032, ["auth-function"]),
|
|
3572
|
-
_(
|
|
3572
|
+
_(h(Qe), {
|
|
3573
3573
|
"auth-function": () => e.canDelete(B)
|
|
3574
3574
|
}, {
|
|
3575
3575
|
default: v(() => [
|
|
@@ -3580,7 +3580,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3580
3580
|
onClick: (oe) => G(B)
|
|
3581
3581
|
}, {
|
|
3582
3582
|
default: v(() => [
|
|
3583
|
-
W(N(
|
|
3583
|
+
W(N(h(r)("actions.delete")), 1)
|
|
3584
3584
|
]),
|
|
3585
3585
|
_: 2
|
|
3586
3586
|
}, 1032, ["onClick"])
|
|
@@ -3590,14 +3590,14 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3590
3590
|
]),
|
|
3591
3591
|
_: 1
|
|
3592
3592
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
3593
|
-
_(
|
|
3593
|
+
_(h(bo), {
|
|
3594
3594
|
"action-pending": V.value,
|
|
3595
|
-
description:
|
|
3595
|
+
description: h(r)("delete.description"),
|
|
3596
3596
|
"entity-name": x.value && (x.value.name || x.value.id),
|
|
3597
|
-
"entity-type":
|
|
3597
|
+
"entity-type": h(zt).SNI,
|
|
3598
3598
|
error: U.value,
|
|
3599
3599
|
"need-confirm": !1,
|
|
3600
|
-
title:
|
|
3600
|
+
title: h(r)("delete.title"),
|
|
3601
3601
|
visible: R.value,
|
|
3602
3602
|
onCancel: se,
|
|
3603
3603
|
onProceed: Ie
|
|
@@ -3614,7 +3614,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3614
3614
|
key: 2,
|
|
3615
3615
|
class: "invalid-certificate-message",
|
|
3616
3616
|
"data-testid": "invalid-certificate-message"
|
|
3617
|
-
},
|
|
3617
|
+
}, ml = /* @__PURE__ */ re({
|
|
3618
3618
|
__name: "SniForm",
|
|
3619
3619
|
props: {
|
|
3620
3620
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3650,7 +3650,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3650
3650
|
}), p = j(() => JSON.stringify(c.fields) !== JSON.stringify(f) && !!c.fields.name && !!(c.fields.certificate_id || d.value)), w = (y) => {
|
|
3651
3651
|
var F, H;
|
|
3652
3652
|
c.fields.name = (y == null ? void 0 : y.name) || "", c.fields.tags = ((F = y == null ? void 0 : y.tags) == null ? void 0 : F.join(", ")) || "", c.fields.certificate_id = ((H = y == null ? void 0 : y.certificate) == null ? void 0 : H.id) || "", Object.assign(f, c.fields);
|
|
3653
|
-
},
|
|
3653
|
+
}, m = () => {
|
|
3654
3654
|
r.push(i.config.cancelRoute);
|
|
3655
3655
|
}, C = j(() => {
|
|
3656
3656
|
var F, H;
|
|
@@ -3664,15 +3664,15 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3664
3664
|
var y, F, H, ue, ee, B, oe, $e;
|
|
3665
3665
|
try {
|
|
3666
3666
|
c.isReadonly = !0;
|
|
3667
|
-
const
|
|
3667
|
+
const he = {
|
|
3668
3668
|
name: c.fields.name,
|
|
3669
3669
|
tags: (F = (y = c.fields.tags.split(",")) == null ? void 0 : y.map((Ye) => String(Ye || "").trim())) == null ? void 0 : F.filter((Ye) => Ye !== ""),
|
|
3670
3670
|
certificate: { id: d.value || c.fields.certificate_id }
|
|
3671
3671
|
};
|
|
3672
3672
|
let ne;
|
|
3673
|
-
await l.post(C.value,
|
|
3674
|
-
} catch (
|
|
3675
|
-
c.errorMessage = a(
|
|
3673
|
+
await l.post(C.value, he), u.value === "create" ? ne = await l.post(b.value, he) : u.value === "edit" && (ne = ((H = i.config) == null ? void 0 : H.app) === "konnect" ? await l.put(b.value, he) : await l.patch(b.value, he)), c.fields.name = ((ue = ne == null ? void 0 : ne.data) == null ? void 0 : ue.name) || "", c.fields.tags = ((B = (ee = ne == null ? void 0 : ne.data) == null ? void 0 : ee.tags) == null ? void 0 : B.join(", ")) || "", c.fields.certificate_id = (($e = (oe = ne == null ? void 0 : ne.data) == null ? void 0 : oe.certificate) == null ? void 0 : $e.id) || "", Object.assign(f, c.fields), n("update", ne == null ? void 0 : ne.data);
|
|
3674
|
+
} catch (he) {
|
|
3675
|
+
c.errorMessage = a(he), n("error", he);
|
|
3676
3676
|
} finally {
|
|
3677
3677
|
c.isReadonly = !1;
|
|
3678
3678
|
}
|
|
@@ -3705,7 +3705,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3705
3705
|
}), (y, F) => {
|
|
3706
3706
|
const H = E("KInput"), ue = E("KSelect");
|
|
3707
3707
|
return I(), K("div", dl, [
|
|
3708
|
-
_(
|
|
3708
|
+
_(h(oo), {
|
|
3709
3709
|
"can-submit": p.value,
|
|
3710
3710
|
config: e.config,
|
|
3711
3711
|
"edit-id": e.sniId,
|
|
@@ -3713,16 +3713,16 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3713
3713
|
"fetch-url": s.value,
|
|
3714
3714
|
"form-fields": c.fields,
|
|
3715
3715
|
"is-readonly": c.isReadonly,
|
|
3716
|
-
onCancel:
|
|
3716
|
+
onCancel: m,
|
|
3717
3717
|
"onFetch:error": F[3] || (F[3] = (ee) => y.$emit("error", ee)),
|
|
3718
3718
|
"onFetch:success": w,
|
|
3719
3719
|
onLoading: F[4] || (F[4] = (ee) => y.$emit("loading", ee)),
|
|
3720
3720
|
onSubmit: g
|
|
3721
3721
|
}, {
|
|
3722
3722
|
default: v(() => [
|
|
3723
|
-
_(
|
|
3724
|
-
description:
|
|
3725
|
-
title:
|
|
3723
|
+
_(h(Kt), {
|
|
3724
|
+
description: h(o)("form.sections.general.description"),
|
|
3725
|
+
title: h(o)("form.sections.general.title")
|
|
3726
3726
|
}, {
|
|
3727
3727
|
default: v(() => [
|
|
3728
3728
|
_(H, {
|
|
@@ -3731,8 +3731,8 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3731
3731
|
modelModifiers: { trim: !0 },
|
|
3732
3732
|
autocomplete: "off",
|
|
3733
3733
|
"data-testid": "sni-form-name",
|
|
3734
|
-
label:
|
|
3735
|
-
placeholder:
|
|
3734
|
+
label: h(o)("form.fields.name.label"),
|
|
3735
|
+
placeholder: h(o)("form.fields.name.placeholder"),
|
|
3736
3736
|
readonly: c.isReadonly,
|
|
3737
3737
|
required: "",
|
|
3738
3738
|
type: "text"
|
|
@@ -3743,26 +3743,26 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3743
3743
|
modelModifiers: { trim: !0 },
|
|
3744
3744
|
autocomplete: "off",
|
|
3745
3745
|
"data-testid": "sni-form-tags",
|
|
3746
|
-
help:
|
|
3747
|
-
label:
|
|
3748
|
-
"label-attributes": { info:
|
|
3749
|
-
placeholder:
|
|
3746
|
+
help: h(o)("form.fields.tags.help"),
|
|
3747
|
+
label: h(o)("form.fields.tags.label"),
|
|
3748
|
+
"label-attributes": { info: h(o)("form.fields.tags.tooltip") },
|
|
3749
|
+
placeholder: h(o)("form.fields.tags.placeholder"),
|
|
3750
3750
|
readonly: c.isReadonly,
|
|
3751
3751
|
type: "text"
|
|
3752
3752
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
3753
3753
|
]),
|
|
3754
3754
|
_: 1
|
|
3755
3755
|
}, 8, ["description", "title"]),
|
|
3756
|
-
_(
|
|
3757
|
-
description:
|
|
3756
|
+
_(h(Kt), {
|
|
3757
|
+
description: h(o)("form.sections.certificate.description"),
|
|
3758
3758
|
"has-divider": "",
|
|
3759
|
-
title:
|
|
3759
|
+
title: h(o)("form.sections.certificate.title")
|
|
3760
3760
|
}, {
|
|
3761
3761
|
default: v(() => [
|
|
3762
3762
|
d.value ? (I(), D(H, {
|
|
3763
3763
|
key: 0,
|
|
3764
3764
|
"data-testid": "sni-form-certificate-id",
|
|
3765
|
-
label:
|
|
3765
|
+
label: h(o)("form.fields.certificate_id.label"),
|
|
3766
3766
|
"model-value": d.value,
|
|
3767
3767
|
readonly: "",
|
|
3768
3768
|
required: "",
|
|
@@ -3776,22 +3776,22 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3776
3776
|
class: Me({ "k-select-placeholder": V.value }),
|
|
3777
3777
|
clearable: "",
|
|
3778
3778
|
"data-testid": "sni-form-certificate-id",
|
|
3779
|
-
"dropdown-footer-text": Ie.value ?
|
|
3779
|
+
"dropdown-footer-text": Ie.value ? h(o)("form.fields.certificate_id.footer") : void 0,
|
|
3780
3780
|
"enable-filtering": "",
|
|
3781
3781
|
items: xe.value,
|
|
3782
|
-
label:
|
|
3783
|
-
loading:
|
|
3784
|
-
placeholder:
|
|
3782
|
+
label: h(o)("form.fields.certificate_id.label"),
|
|
3783
|
+
loading: h(S),
|
|
3784
|
+
placeholder: h(o)("form.fields.certificate_id.placeholder"),
|
|
3785
3785
|
readonly: c.isReadonly,
|
|
3786
3786
|
required: "",
|
|
3787
3787
|
width: "100%",
|
|
3788
3788
|
onQueryChange: U
|
|
3789
3789
|
}, {
|
|
3790
3790
|
loading: v(() => [
|
|
3791
|
-
q("div", null, N(
|
|
3791
|
+
q("div", null, N(h(o)("actions.loading")), 1)
|
|
3792
3792
|
]),
|
|
3793
3793
|
empty: v(() => [
|
|
3794
|
-
q("div", pl, N(
|
|
3794
|
+
q("div", pl, N(h(o)("search.no_results")), 1)
|
|
3795
3795
|
]),
|
|
3796
3796
|
_: 1
|
|
3797
3797
|
}, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
@@ -3805,7 +3805,7 @@ const to = { class: "yaml-config" }, no = /* @__PURE__ */ re({
|
|
|
3805
3805
|
]);
|
|
3806
3806
|
};
|
|
3807
3807
|
}
|
|
3808
|
-
}), _l = /* @__PURE__ */ Un(
|
|
3808
|
+
}), _l = /* @__PURE__ */ Un(ml, [["__scopeId", "data-v-829dc074"]]);
|
|
3809
3809
|
export {
|
|
3810
3810
|
_l as SniForm,
|
|
3811
3811
|
xl as SniList
|