@kong-ui-public/entities-key-sets 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-key-sets.es.js +197 -197
- package/dist/entities-key-sets.umd.js +12 -12
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as H, computed as S, openBlock as y, createBlock as U, resolveDynamicComponent as ye, normalizeStyle as Me, withCtx as h, createElementBlock as j, toDisplayString as K, createCommentVNode as P, pushScopeId as
|
|
1
|
+
import { defineComponent as H, computed as S, openBlock as y, createBlock as U, resolveDynamicComponent as ye, normalizeStyle as Me, withCtx as h, createElementBlock as j, toDisplayString as K, createCommentVNode as P, pushScopeId as Fe, popScopeId as Ee, createElementVNode as B, ref as q, watch as Ie, renderSlot as W, unref as b, onBeforeMount as gt, resolveComponent as L, createSlots as Te, createVNode as N, createTextVNode as z, renderList as ce, withModifiers as lt, withDirectives as ve, vShow as be, Fragment as pe, normalizeClass as Ce, withKeys as ia, useSlots as yt, useCssVars as en, inject as ra, onMounted as oa, onUnmounted as la, normalizeProps as sa, guardReactiveProps as ca, mergeProps as ua, Teleport as da, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as mt } from "vue-router";
|
|
3
3
|
import { createI18n as tn, i18nTComponent as nn } from "@kong-ui-public/i18n";
|
|
4
4
|
import jt from "axios";
|
|
5
5
|
import { BadgeMethodAppearances as pa } from "@kong/kongponents";
|
|
6
|
-
const
|
|
6
|
+
const $t = "24px", fa = (e, t) => {
|
|
7
7
|
const n = e.__vccOpts || e;
|
|
8
8
|
for (const [i, a] of t)
|
|
9
9
|
n[i] = a;
|
|
10
10
|
return n;
|
|
11
|
-
}, ga = (e) => (
|
|
11
|
+
}, ga = (e) => (Fe("data-v-f68c7837"), e = e(), Ee(), e), ya = ["aria-hidden"], ma = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
14
|
}, ha = /* @__PURE__ */ ga(() => /* @__PURE__ */ B("path", {
|
|
@@ -45,7 +45,7 @@ const Tt = "24px", fa = (e, t) => {
|
|
|
45
45
|
size: {
|
|
46
46
|
type: [Number, String],
|
|
47
47
|
required: !1,
|
|
48
|
-
default:
|
|
48
|
+
default: $t,
|
|
49
49
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
50
50
|
validator: (e) => {
|
|
51
51
|
if (typeof e == "number" && e > 0)
|
|
@@ -74,7 +74,7 @@ const Tt = "24px", fa = (e, t) => {
|
|
|
74
74
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
75
75
|
return `${o}px`;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return $t;
|
|
78
78
|
}), i = S(() => ({
|
|
79
79
|
boxSizing: "border-box",
|
|
80
80
|
color: t.color,
|
|
@@ -107,7 +107,7 @@ const Tt = "24px", fa = (e, t) => {
|
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["aria-hidden", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}), ba = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-
|
|
110
|
+
}), ba = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-f68c7837"]]), ka = {
|
|
111
111
|
title: "Key Sets",
|
|
112
112
|
list: {
|
|
113
113
|
toolbar_actions: {
|
|
@@ -304,13 +304,13 @@ const _a = {
|
|
|
304
304
|
errors: {
|
|
305
305
|
edit: "The entity could not be edited at this time."
|
|
306
306
|
}
|
|
307
|
-
},
|
|
307
|
+
}, $a = {
|
|
308
308
|
emptyState: {
|
|
309
309
|
noSearchResultsTitle: "No results found",
|
|
310
310
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
311
311
|
noSearchResultsCtaText: "Clear"
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, Ta = {
|
|
314
314
|
title: "Configuration",
|
|
315
315
|
actions: {
|
|
316
316
|
copy: "Copy JSON"
|
|
@@ -358,10 +358,10 @@ const _a = {
|
|
|
358
358
|
fetch: "Could not fetch available items",
|
|
359
359
|
invalid: "Please select a valid value"
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, Fa = {
|
|
362
362
|
unexpected: "An unexpected error has occurred",
|
|
363
363
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
364
|
-
},
|
|
364
|
+
}, Ea = {
|
|
365
365
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
366
366
|
}, qa = {
|
|
367
367
|
enable: {
|
|
@@ -378,12 +378,12 @@ const _a = {
|
|
|
378
378
|
global: _a,
|
|
379
379
|
deleteModal: Na,
|
|
380
380
|
baseForm: ja,
|
|
381
|
-
baseTable:
|
|
382
|
-
baseConfigCard:
|
|
381
|
+
baseTable: $a,
|
|
382
|
+
baseConfigCard: Ta,
|
|
383
383
|
filter: Oa,
|
|
384
384
|
debouncedFilter: Ma,
|
|
385
|
-
errors:
|
|
386
|
-
validationErrors:
|
|
385
|
+
errors: Fa,
|
|
386
|
+
validationErrors: Ea,
|
|
387
387
|
toggleModal: qa
|
|
388
388
|
};
|
|
389
389
|
function Qe() {
|
|
@@ -448,7 +448,7 @@ function Ba(e, t, n, i = {
|
|
|
448
448
|
}, 200), s = q(!1), c = q(""), d = q(""), u = q([]), m = q([]), g = q(void 0), C = b(t);
|
|
449
449
|
let x = `${e.apiBaseUrl}${C}`;
|
|
450
450
|
e.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
451
|
-
const { isValidUuid: k } = rn(),
|
|
451
|
+
const { isValidUuid: k } = rn(), E = async () => {
|
|
452
452
|
try {
|
|
453
453
|
s.value = !0;
|
|
454
454
|
const { data: f } = await a.get(`${x}?size=${n}`);
|
|
@@ -471,18 +471,18 @@ function Ba(e, t, n, i = {
|
|
|
471
471
|
} else if (f) {
|
|
472
472
|
const M = [];
|
|
473
473
|
k(f) && i.searchKeys.includes("id") ? M.push((async () => {
|
|
474
|
-
const { data:
|
|
475
|
-
return [
|
|
474
|
+
const { data: T } = await a.get(`${x}/${f}`);
|
|
475
|
+
return [T[i.fetchedItemsKey] ?? T];
|
|
476
476
|
})()) : M.push(
|
|
477
|
-
...i.searchKeys.filter((
|
|
478
|
-
const { data:
|
|
479
|
-
return
|
|
477
|
+
...i.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
478
|
+
const { data: $ } = await a.get(`${x}?${T}=${f}`);
|
|
479
|
+
return $[i.fetchedItemsKey];
|
|
480
480
|
})
|
|
481
481
|
);
|
|
482
482
|
const _ = await Promise.all(M), R = /* @__PURE__ */ new Set();
|
|
483
|
-
u.value = [], (v = _ == null ? void 0 : _.forEach) == null || v.call(_, (
|
|
484
|
-
var
|
|
485
|
-
(
|
|
483
|
+
u.value = [], (v = _ == null ? void 0 : _.forEach) == null || v.call(_, (T) => {
|
|
484
|
+
var $;
|
|
485
|
+
($ = T == null ? void 0 : T.forEach) == null || $.call(T, (V) => {
|
|
486
486
|
R.has(V.id) || (R.add(V.id), u.value.push(V));
|
|
487
487
|
});
|
|
488
488
|
});
|
|
@@ -497,9 +497,9 @@ function Ba(e, t, n, i = {
|
|
|
497
497
|
s.value = !0, d.value = "", f ? (u.value = (A = g.value) == null ? void 0 : A.filter((M) => {
|
|
498
498
|
var _;
|
|
499
499
|
let R = !1;
|
|
500
|
-
for (const
|
|
501
|
-
const
|
|
502
|
-
|
|
500
|
+
for (const T of i.searchKeys) {
|
|
501
|
+
const $ = typeof M[T] == "string" ? (_ = M[T]) == null ? void 0 : _.toLowerCase() : M[T];
|
|
502
|
+
$ != null && $.includes(f.toLowerCase()) && (R = !0);
|
|
503
503
|
}
|
|
504
504
|
return R;
|
|
505
505
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = g.value, s.value = !1;
|
|
@@ -510,7 +510,7 @@ function Ba(e, t, n, i = {
|
|
|
510
510
|
validationError: d,
|
|
511
511
|
results: u,
|
|
512
512
|
allRecords: g,
|
|
513
|
-
loadItems:
|
|
513
|
+
loadItems: E,
|
|
514
514
|
debouncedQueryChange: l
|
|
515
515
|
};
|
|
516
516
|
}
|
|
@@ -632,7 +632,7 @@ function Da() {
|
|
|
632
632
|
convertKeyToTitle: e
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
635
|
+
const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Tt = (e) => {
|
|
636
636
|
if (typeof e != "string")
|
|
637
637
|
throw new TypeError("Invalid argument expected string");
|
|
638
638
|
const t = e.match(ln);
|
|
@@ -647,7 +647,7 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
647
647
|
return 0;
|
|
648
648
|
const [n, i] = Pa(Mt(e), Mt(t));
|
|
649
649
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
650
|
-
},
|
|
650
|
+
}, Ft = (e, t) => {
|
|
651
651
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
652
652
|
const i = za(e[n] || "0", t[n] || "0");
|
|
653
653
|
if (i !== 0)
|
|
@@ -655,9 +655,9 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
655
655
|
}
|
|
656
656
|
return 0;
|
|
657
657
|
}, Ha = (e, t) => {
|
|
658
|
-
const n =
|
|
659
|
-
return r !== 0 ? r : a && o ?
|
|
660
|
-
},
|
|
658
|
+
const n = Tt(e), i = Tt(t), a = n.pop(), o = i.pop(), r = Ft(n, i);
|
|
659
|
+
return r !== 0 ? r : a && o ? Ft(a.split("."), o.split(".")) : a || o ? a ? -1 : 1 : 0;
|
|
660
|
+
}, Et = (e, t, n) => {
|
|
661
661
|
Ja(n);
|
|
662
662
|
const i = Ha(e, t);
|
|
663
663
|
return sn[n].includes(i);
|
|
@@ -685,7 +685,7 @@ function Wa(e) {
|
|
|
685
685
|
if (!o)
|
|
686
686
|
return !1;
|
|
687
687
|
const [r, l] = o;
|
|
688
|
-
return !(r &&
|
|
688
|
+
return !(r && Et(a, r, "<") || l && Et(a, l, ">"));
|
|
689
689
|
}
|
|
690
690
|
function Ya(e) {
|
|
691
691
|
const t = q(0), n = q(0), i = q(!1);
|
|
@@ -956,14 +956,14 @@ const X = {
|
|
|
956
956
|
}
|
|
957
957
|
}), m = q(), { isTruncated: g } = X.useTruncationDetector(m);
|
|
958
958
|
return (C, x) => {
|
|
959
|
-
const k = L("KLabel"),
|
|
959
|
+
const k = L("KLabel"), E = L("KBadge"), w = L("KCopy"), O = L("KTooltip");
|
|
960
960
|
return y(), j("div", si, [
|
|
961
961
|
B("div", {
|
|
962
962
|
class: "config-card-details-label",
|
|
963
963
|
"data-testid": `${e.item.key}-label`
|
|
964
964
|
}, [
|
|
965
965
|
W(C.$slots, "label", { item: e.item }, () => [
|
|
966
|
-
N(k, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
966
|
+
N(k, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
|
|
967
967
|
default: h(() => [
|
|
968
968
|
z(K(e.item.label) + " ", 1)
|
|
969
969
|
]),
|
|
@@ -999,7 +999,7 @@ const X = {
|
|
|
999
999
|
key: 0,
|
|
1000
1000
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1001
1001
|
}, [
|
|
1002
|
-
(y(!0), j(pe, null, ce(e.item.value, (f, v) => (y(), U(
|
|
1002
|
+
(y(!0), j(pe, null, ce(e.item.value, (f, v) => (y(), U(E, {
|
|
1003
1003
|
key: `${e.item.key}-badge-tag-${v}`,
|
|
1004
1004
|
class: "config-badge",
|
|
1005
1005
|
"data-testid": `${e.item.key}-badge-tag-${v}`,
|
|
@@ -1027,7 +1027,7 @@ const X = {
|
|
|
1027
1027
|
class: "method-badge-array",
|
|
1028
1028
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1029
1029
|
}, [
|
|
1030
|
-
(y(!0), j(pe, null, ce(e.item.value, (f, v) => (y(), U(
|
|
1030
|
+
(y(!0), j(pe, null, ce(e.item.value, (f, v) => (y(), U(E, {
|
|
1031
1031
|
key: `${e.item.key}-badge-method-${v}`,
|
|
1032
1032
|
appearance: Object.values(b(pa)).includes(f.toLowerCase()) ? f.toLowerCase() : "custom",
|
|
1033
1033
|
class: "config-badge",
|
|
@@ -1173,12 +1173,12 @@ function xi(e, t) {
|
|
|
1173
1173
|
function Ii(e) {
|
|
1174
1174
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1175
1175
|
}
|
|
1176
|
-
var _i = pn, Ni = wi, ji = Si,
|
|
1176
|
+
var _i = pn, Ni = wi, ji = Si, $i = xi, Ti = Ii, Oi = Ai, Q = {
|
|
1177
1177
|
isNothing: _i,
|
|
1178
1178
|
isObject: Ni,
|
|
1179
1179
|
toArray: ji,
|
|
1180
|
-
repeat:
|
|
1181
|
-
isNegativeZero:
|
|
1180
|
+
repeat: $i,
|
|
1181
|
+
isNegativeZero: Ti,
|
|
1182
1182
|
extend: Oi
|
|
1183
1183
|
};
|
|
1184
1184
|
function fn(e, t) {
|
|
@@ -1237,7 +1237,7 @@ function Mi(e, t) {
|
|
|
1237
1237
|
`;
|
|
1238
1238
|
return l.replace(/\n$/, "");
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Fi = Mi, Ei = [
|
|
1241
1241
|
"kind",
|
|
1242
1242
|
"multi",
|
|
1243
1243
|
"resolve",
|
|
@@ -1263,7 +1263,7 @@ function Ki(e) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
function Bi(e, t) {
|
|
1265
1265
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1266
|
-
if (
|
|
1266
|
+
if (Ei.indexOf(n) === -1)
|
|
1267
1267
|
throw new ie('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1268
1268
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1269
1269
|
return !0;
|
|
@@ -1679,7 +1679,7 @@ function gr(e) {
|
|
|
1679
1679
|
function yr(e) {
|
|
1680
1680
|
return e !== null ? e : [];
|
|
1681
1681
|
}
|
|
1682
|
-
var
|
|
1682
|
+
var $n = new ne("tag:yaml.org,2002:omap", {
|
|
1683
1683
|
kind: "sequence",
|
|
1684
1684
|
resolve: gr,
|
|
1685
1685
|
construct: yr
|
|
@@ -1703,7 +1703,7 @@ function vr(e) {
|
|
|
1703
1703
|
i = r[t], a = Object.keys(i), o[t] = [a[0], i[a[0]]];
|
|
1704
1704
|
return o;
|
|
1705
1705
|
}
|
|
1706
|
-
var
|
|
1706
|
+
var Tn = new ne("tag:yaml.org,2002:pairs", {
|
|
1707
1707
|
kind: "sequence",
|
|
1708
1708
|
resolve: hr,
|
|
1709
1709
|
construct: vr
|
|
@@ -1731,11 +1731,11 @@ var On = new ne("tag:yaml.org,2002:set", {
|
|
|
1731
1731
|
],
|
|
1732
1732
|
explicit: [
|
|
1733
1733
|
jn,
|
|
1734
|
-
Tn,
|
|
1735
1734
|
$n,
|
|
1735
|
+
Tn,
|
|
1736
1736
|
On
|
|
1737
1737
|
]
|
|
1738
|
-
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2,
|
|
1738
|
+
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2, Fn = 3, Ze = 4, ot = 1, wr = 2, Bt = 3, Sr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ar = /[\x85\u2028\u2029]/, xr = /[,\[\]\{\}]/, En = /^(?:!|!!|![a-z\-]+!)$/i, qn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1739
1739
|
function Lt(e) {
|
|
1740
1740
|
return Object.prototype.toString.call(e);
|
|
1741
1741
|
}
|
|
@@ -1774,7 +1774,7 @@ function jr(e) {
|
|
|
1774
1774
|
var Kn = new Array(256), Bn = new Array(256);
|
|
1775
1775
|
for (var _e = 0; _e < 256; _e++)
|
|
1776
1776
|
Kn[_e] = Ut(_e) ? 1 : 0, Bn[_e] = Ut(_e);
|
|
1777
|
-
function
|
|
1777
|
+
function $r(e, t) {
|
|
1778
1778
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1779
1779
|
}
|
|
1780
1780
|
function Ln(e, t) {
|
|
@@ -1786,7 +1786,7 @@ function Ln(e, t) {
|
|
|
1786
1786
|
line: e.line,
|
|
1787
1787
|
column: e.position - e.lineStart
|
|
1788
1788
|
};
|
|
1789
|
-
return n.snippet =
|
|
1789
|
+
return n.snippet = Fi(n), new ie(t, n);
|
|
1790
1790
|
}
|
|
1791
1791
|
function I(e, t) {
|
|
1792
1792
|
throw Ln(e, t);
|
|
@@ -1801,7 +1801,7 @@ var Rt = {
|
|
|
1801
1801
|
},
|
|
1802
1802
|
TAG: function(e, t, n) {
|
|
1803
1803
|
var i, a;
|
|
1804
|
-
n.length !== 2 && I(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1],
|
|
1804
|
+
n.length !== 2 && I(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1], En.test(i) || I(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, i) && I(e, 'there is a previously declared suffix for "' + i + '" tag handle'), qn.test(a) || I(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1805
1805
|
try {
|
|
1806
1806
|
a = decodeURIComponent(a);
|
|
1807
1807
|
} catch {
|
|
@@ -1826,7 +1826,7 @@ function Vt(e, t, n, i) {
|
|
|
1826
1826
|
for (Q.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), r = 0, l = a.length; r < l; r += 1)
|
|
1827
1827
|
o = a[r], we.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function $e(e, t, n, i, a, o, r, l, s) {
|
|
1830
1830
|
var c, d;
|
|
1831
1831
|
if (Array.isArray(a))
|
|
1832
1832
|
for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
|
|
@@ -1874,7 +1874,7 @@ function wt(e, t) {
|
|
|
1874
1874
|
t === 1 ? e.result += " " : t > 1 && (e.result += Q.repeat(`
|
|
1875
1875
|
`, t - 1));
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function Tr(e, t, n) {
|
|
1878
1878
|
var i, a, o, r, l, s, c, d, u = e.kind, m = e.result, g;
|
|
1879
1879
|
if (g = e.input.charCodeAt(e.position), re(g) || je(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (a = e.input.charCodeAt(e.position + 1), re(a) || n && je(a)))
|
|
1880
1880
|
return !1;
|
|
@@ -1939,8 +1939,8 @@ function Mr(e, t) {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1943
|
-
var n = !0, i, a, o, r = e.tag, l, s = e.anchor, c, d, u, m, g, C = /* @__PURE__ */ Object.create(null), x, k,
|
|
1942
|
+
function Fr(e, t) {
|
|
1943
|
+
var n = !0, i, a, o, r = e.tag, l, s = e.anchor, c, d, u, m, g, C = /* @__PURE__ */ Object.create(null), x, k, E, w;
|
|
1944
1944
|
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
1945
1945
|
d = 93, g = !1, l = [];
|
|
1946
1946
|
else if (w === 123)
|
|
@@ -1950,11 +1950,11 @@ function Er(e, t) {
|
|
|
1950
1950
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), w = e.input.charCodeAt(++e.position); w !== 0; ) {
|
|
1951
1951
|
if (G(e, !0, t), w = e.input.charCodeAt(e.position), w === d)
|
|
1952
1952
|
return e.position++, e.tag = r, e.anchor = s, e.kind = g ? "mapping" : "sequence", e.result = l, !0;
|
|
1953
|
-
n ? w === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = x =
|
|
1953
|
+
n ? w === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = x = E = null, u = m = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), re(c) && (u = m = !0, e.position++, G(e, !0, t))), i = e.line, a = e.lineStart, o = e.position, Oe(e, t, Je, !1, !0), k = e.tag, x = e.result, G(e, !0, t), w = e.input.charCodeAt(e.position), (m || e.line === i) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), G(e, !0, t), Oe(e, t, Je, !1, !0), E = e.result), g ? $e(e, l, C, k, x, E, i, a, o) : u ? l.push($e(e, null, C, k, x, E, i, a, o)) : l.push(x), G(e, !0, t), w = e.input.charCodeAt(e.position), w === 44 ? (n = !0, w = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1954
1954
|
}
|
|
1955
1955
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function Er(e, t) {
|
|
1958
1958
|
var n, i, a = ot, o = !1, r = !1, l = t, s = 0, c = !1, d, u;
|
|
1959
1959
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1960
1960
|
i = !1;
|
|
@@ -2010,7 +2010,7 @@ function Dt(e, t) {
|
|
|
2010
2010
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
2011
2011
|
continue;
|
|
2012
2012
|
}
|
|
2013
|
-
if (n = e.line, Oe(e, t,
|
|
2013
|
+
if (n = e.line, Oe(e, t, Fn, !1, !0), o.push(e.result), G(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
2014
2014
|
I(e, "bad indentation of a sequence entry");
|
|
2015
2015
|
else if (e.lineIndent < t)
|
|
2016
2016
|
break;
|
|
@@ -2018,12 +2018,12 @@ function Dt(e, t) {
|
|
|
2018
2018
|
return l ? (e.tag = i, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2019
2019
|
}
|
|
2020
2020
|
function qr(e, t, n) {
|
|
2021
|
-
var i, a, o, r, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null, C = null, x = null, k = !1,
|
|
2021
|
+
var i, a, o, r, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null, C = null, x = null, k = !1, E = !1, w;
|
|
2022
2022
|
if (e.firstTabInLine !== -1)
|
|
2023
2023
|
return !1;
|
|
2024
2024
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), w = e.input.charCodeAt(e.position); w !== 0; ) {
|
|
2025
2025
|
if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (w === 63 || w === 58) && re(i))
|
|
2026
|
-
w === 63 ? (k && (
|
|
2026
|
+
w === 63 ? (k && ($e(e, u, m, g, C, null, r, l, s), g = C = x = null), E = !0, k = !0, a = !0) : k ? (k = !1, a = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = i;
|
|
2027
2027
|
else {
|
|
2028
2028
|
if (r = e.line, l = e.lineStart, s = e.position, !Oe(e, n, Mn, !1, !0))
|
|
2029
2029
|
break;
|
|
@@ -2031,22 +2031,22 @@ function qr(e, t, n) {
|
|
|
2031
2031
|
for (w = e.input.charCodeAt(e.position); xe(w); )
|
|
2032
2032
|
w = e.input.charCodeAt(++e.position);
|
|
2033
2033
|
if (w === 58)
|
|
2034
|
-
w = e.input.charCodeAt(++e.position), re(w) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (
|
|
2035
|
-
else if (
|
|
2034
|
+
w = e.input.charCodeAt(++e.position), re(w) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && ($e(e, u, m, g, C, null, r, l, s), g = C = x = null), E = !0, k = !1, a = !1, g = e.tag, C = e.result;
|
|
2035
|
+
else if (E)
|
|
2036
2036
|
I(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2037
2037
|
else
|
|
2038
2038
|
return e.tag = c, e.anchor = d, !0;
|
|
2039
|
-
} else if (
|
|
2039
|
+
} else if (E)
|
|
2040
2040
|
I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2041
2041
|
else
|
|
2042
2042
|
return e.tag = c, e.anchor = d, !0;
|
|
2043
2043
|
}
|
|
2044
|
-
if ((e.line === o || e.lineIndent > t) && (k && (r = e.line, l = e.lineStart, s = e.position), Oe(e, t, Ze, !0, a) && (k ? C = e.result : x = e.result), k || (
|
|
2044
|
+
if ((e.line === o || e.lineIndent > t) && (k && (r = e.line, l = e.lineStart, s = e.position), Oe(e, t, Ze, !0, a) && (k ? C = e.result : x = e.result), k || ($e(e, u, m, g, C, x, r, l, s), g = C = x = null), G(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && w !== 0)
|
|
2045
2045
|
I(e, "bad indentation of a mapping entry");
|
|
2046
2046
|
else if (e.lineIndent < t)
|
|
2047
2047
|
break;
|
|
2048
2048
|
}
|
|
2049
|
-
return k &&
|
|
2049
|
+
return k && $e(e, u, m, g, C, null, r, l, s), E && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), E;
|
|
2050
2050
|
}
|
|
2051
2051
|
function Kr(e) {
|
|
2052
2052
|
var t, n = !1, i = !1, a, o, r;
|
|
@@ -2059,7 +2059,7 @@ function Kr(e) {
|
|
|
2059
2059
|
e.position < e.length ? (o = e.input.slice(t, e.position), r = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
|
|
2060
2060
|
} else {
|
|
2061
2061
|
for (; r !== 0 && !re(r); )
|
|
2062
|
-
r === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1),
|
|
2062
|
+
r === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), En.test(a) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
|
|
2063
2063
|
o = e.input.slice(t, e.position), xr.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
2064
2064
|
}
|
|
2065
2065
|
o && !qn.test(o) && I(e, "tag name cannot contain such characters: " + o);
|
|
@@ -2088,10 +2088,10 @@ function Lr(e) {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
function Oe(e, t, n, i, a) {
|
|
2090
2090
|
var o, r, l, s = 1, c = !1, d = !1, u, m, g, C, x, k;
|
|
2091
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = Ze === n ||
|
|
2091
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = Ze === n || Fn === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2092
2092
|
for (; Kr(e) || Br(e); )
|
|
2093
2093
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2094
|
-
if (l && (l = c || a), (s === 1 || Ze === n) && (Je === n || Mn === n ? x = t : x = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Dt(e, k) || qr(e, k, x)) ||
|
|
2094
|
+
if (l && (l = c || a), (s === 1 || Ze === n) && (Je === n || Mn === n ? x = t : x = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Dt(e, k) || qr(e, k, x)) || Fr(e, x) ? d = !0 : (r && Er(e, x) || Or(e, x) || Mr(e, x) ? d = !0 : Lr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Tr(e, x, Je === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Dt(e, k))), e.tag === null)
|
|
2095
2095
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2096
2096
|
else if (e.tag === "?") {
|
|
2097
2097
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -2146,7 +2146,7 @@ function Ur(e) {
|
|
|
2146
2146
|
function Un(e, t) {
|
|
2147
2147
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2148
2148
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2149
|
-
var n = new
|
|
2149
|
+
var n = new $r(e, t), i = e.indexOf("\0");
|
|
2150
2150
|
for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2151
2151
|
n.lineIndent += 1, n.position += 1;
|
|
2152
2152
|
for (; n.position < n.length - 1; )
|
|
@@ -2484,29 +2484,29 @@ function At(e, t) {
|
|
|
2484
2484
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2485
2485
|
};
|
|
2486
2486
|
}
|
|
2487
|
-
var No = ne, jo = gn,
|
|
2487
|
+
var No = ne, jo = gn, $o = vn, To = Sn, Oo = An, Mo = kt, Fo = Rn.load, Eo = Rn.loadAll, qo = _o.dump, Ko = ie, Bo = {
|
|
2488
2488
|
binary: jn,
|
|
2489
2489
|
float: wn,
|
|
2490
2490
|
map: hn,
|
|
2491
2491
|
null: bn,
|
|
2492
|
-
pairs:
|
|
2492
|
+
pairs: Tn,
|
|
2493
2493
|
set: On,
|
|
2494
2494
|
timestamp: _n,
|
|
2495
2495
|
bool: kn,
|
|
2496
2496
|
int: Cn,
|
|
2497
2497
|
merge: Nn,
|
|
2498
|
-
omap:
|
|
2498
|
+
omap: $n,
|
|
2499
2499
|
seq: mn,
|
|
2500
2500
|
str: yn
|
|
2501
2501
|
}, Lo = At("safeLoad", "load"), Uo = At("safeLoadAll", "loadAll"), Ro = At("safeDump", "dump"), Vo = {
|
|
2502
2502
|
Type: No,
|
|
2503
2503
|
Schema: jo,
|
|
2504
|
-
FAILSAFE_SCHEMA:
|
|
2505
|
-
JSON_SCHEMA:
|
|
2504
|
+
FAILSAFE_SCHEMA: $o,
|
|
2505
|
+
JSON_SCHEMA: To,
|
|
2506
2506
|
CORE_SCHEMA: Oo,
|
|
2507
2507
|
DEFAULT_SCHEMA: Mo,
|
|
2508
|
-
load:
|
|
2509
|
-
loadAll:
|
|
2508
|
+
load: Fo,
|
|
2509
|
+
loadAll: Eo,
|
|
2510
2510
|
dump: qo,
|
|
2511
2511
|
YAMLException: Ko,
|
|
2512
2512
|
types: Bo,
|
|
@@ -2603,7 +2603,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2603
2603
|
(y(!0), j(pe, null, ce(e.propertyCollections[s], (c) => (y(), U(un, {
|
|
2604
2604
|
key: c.key,
|
|
2605
2605
|
item: c
|
|
2606
|
-
},
|
|
2606
|
+
}, Te({
|
|
2607
2607
|
label: h(() => [
|
|
2608
2608
|
W(r.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2609
2609
|
]),
|
|
@@ -2643,7 +2643,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2643
2643
|
for (const [i, a] of t)
|
|
2644
2644
|
n[i] = a;
|
|
2645
2645
|
return n;
|
|
2646
|
-
}, Wo = (e) => (
|
|
2646
|
+
}, Wo = (e) => (Fe("data-v-f68c7837"), e = e(), Ee(), e), Yo = ["aria-hidden"], Go = {
|
|
2647
2647
|
key: 0,
|
|
2648
2648
|
"data-testid": "kui-icon-svg-title"
|
|
2649
2649
|
}, Qo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ B("path", {
|
|
@@ -2742,7 +2742,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["aria-hidden", "style"]));
|
|
2744
2744
|
}
|
|
2745
|
-
}), el = /* @__PURE__ */ Ve(Xo, [["__scopeId", "data-v-
|
|
2745
|
+
}), el = /* @__PURE__ */ Ve(Xo, [["__scopeId", "data-v-f68c7837"]]), tl = (e) => (Fe("data-v-9af646cc"), e = e(), Ee(), e), nl = ["aria-hidden"], al = {
|
|
2746
2746
|
key: 0,
|
|
2747
2747
|
"data-testid": "kui-icon-svg-title"
|
|
2748
2748
|
}, il = /* @__PURE__ */ tl(() => /* @__PURE__ */ B("path", {
|
|
@@ -2841,7 +2841,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2841
2841
|
_: 1
|
|
2842
2842
|
}, 8, ["aria-hidden", "style"]));
|
|
2843
2843
|
}
|
|
2844
|
-
}), ol = /* @__PURE__ */ Ve(rl, [["__scopeId", "data-v-
|
|
2844
|
+
}), ol = /* @__PURE__ */ Ve(rl, [["__scopeId", "data-v-9af646cc"]]), ll = (e) => (Fe("data-v-84c4811e"), e = e(), Ee(), e), sl = ["aria-hidden"], cl = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
"data-testid": "kui-icon-svg-title"
|
|
2847
2847
|
}, ul = /* @__PURE__ */ ll(() => /* @__PURE__ */ B("path", {
|
|
@@ -2940,7 +2940,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2940
2940
|
_: 1
|
|
2941
2941
|
}, 8, ["aria-hidden", "style"]));
|
|
2942
2942
|
}
|
|
2943
|
-
}), pl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-
|
|
2943
|
+
}), pl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-84c4811e"]]), fl = (e) => (Fe("data-v-26ad8dc6"), e = e(), Ee(), e), gl = ["aria-hidden"], yl = {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
"data-testid": "kui-icon-svg-title"
|
|
2946
2946
|
}, ml = /* @__PURE__ */ fl(() => /* @__PURE__ */ B("path", {
|
|
@@ -3039,7 +3039,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3039
3039
|
_: 1
|
|
3040
3040
|
}, 8, ["aria-hidden", "style"]));
|
|
3041
3041
|
}
|
|
3042
|
-
}), vl = /* @__PURE__ */ Ve(hl, [["__scopeId", "data-v-
|
|
3042
|
+
}), vl = /* @__PURE__ */ Ve(hl, [["__scopeId", "data-v-26ad8dc6"]]), bl = (e) => (Fe("data-v-d43c21f8"), e = e(), Ee(), e), kl = ["aria-hidden"], Cl = {
|
|
3043
3043
|
key: 0,
|
|
3044
3044
|
"data-testid": "kui-icon-svg-title"
|
|
3045
3045
|
}, wl = /* @__PURE__ */ bl(() => /* @__PURE__ */ B("path", {
|
|
@@ -3138,7 +3138,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3138
3138
|
_: 1
|
|
3139
3139
|
}, 8, ["aria-hidden", "style"]));
|
|
3140
3140
|
}
|
|
3141
|
-
}), Al = /* @__PURE__ */ Ve(Sl, [["__scopeId", "data-v-
|
|
3141
|
+
}), Al = /* @__PURE__ */ Ve(Sl, [["__scopeId", "data-v-d43c21f8"]]), xl = {
|
|
3142
3142
|
class: "config-card-title",
|
|
3143
3143
|
"data-testid": "config-card-title"
|
|
3144
3144
|
}, Il = { class: "config-card-actions" }, _l = ["href"], Nl = { class: "config-card-details-section" }, jl = /* @__PURE__ */ H({
|
|
@@ -3270,21 +3270,21 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3270
3270
|
// the last property displayed
|
|
3271
3271
|
section: se.Basic
|
|
3272
3272
|
}
|
|
3273
|
-
}, g = q(!1), C = q(!1), x = q(""), k = q({}),
|
|
3273
|
+
}, g = q(!1), C = q(!1), x = q(""), k = q({}), E = S(() => {
|
|
3274
3274
|
var p, A, M;
|
|
3275
3275
|
if (!k.value)
|
|
3276
3276
|
return [];
|
|
3277
3277
|
const _ = [], R = Object.keys(k.value).length;
|
|
3278
|
-
for (const
|
|
3279
|
-
const
|
|
3278
|
+
for (const T in k.value) {
|
|
3279
|
+
const $ = (A = (p = a.configSchema) == null ? void 0 : p[T]) == null ? void 0 : A.order, V = (M = m[T]) == null ? void 0 : M.order;
|
|
3280
3280
|
let J = R;
|
|
3281
|
-
(V || V === 0) && (J = V === -1 ? R + 1 : V),
|
|
3281
|
+
(V || V === 0) && (J = V === -1 ? R + 1 : V), $ && (J = $ === -1 ? R + 1 : $), _.push([T, J]);
|
|
3282
3282
|
}
|
|
3283
|
-
return _.sort(function(
|
|
3284
|
-
return
|
|
3285
|
-
}), _.map((
|
|
3286
|
-
var
|
|
3287
|
-
const J =
|
|
3283
|
+
return _.sort(function(T, $) {
|
|
3284
|
+
return T[1] - $[1];
|
|
3285
|
+
}), _.map((T) => {
|
|
3286
|
+
var $, V;
|
|
3287
|
+
const J = T[0], oe = ($ = k.value) == null ? void 0 : $[J], le = ((V = a.configSchema) == null ? void 0 : V[J]) || {}, de = m[J];
|
|
3288
3288
|
return {
|
|
3289
3289
|
key: J,
|
|
3290
3290
|
value: oe,
|
|
@@ -3294,22 +3294,22 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3294
3294
|
tooltip: le.tooltip ?? ((de == null ? void 0 : de.tooltip) || void 0),
|
|
3295
3295
|
section: le.section ?? ((de == null ? void 0 : de.section) || se.Advanced)
|
|
3296
3296
|
};
|
|
3297
|
-
}).filter((
|
|
3297
|
+
}).filter((T) => !T.hidden && T.key !== a.pluginConfigKey);
|
|
3298
3298
|
}), w = S(() => {
|
|
3299
3299
|
var p, A;
|
|
3300
3300
|
if (!k.value || !a.pluginConfigKey)
|
|
3301
3301
|
return [];
|
|
3302
3302
|
const M = k.value[a.pluginConfigKey] || {}, _ = Object.keys(M).length, R = [];
|
|
3303
|
-
for (const
|
|
3304
|
-
const
|
|
3303
|
+
for (const T in M) {
|
|
3304
|
+
const $ = (A = (p = a.pluginConfigSchema) == null ? void 0 : p[T]) == null ? void 0 : A.order, V = M[T];
|
|
3305
3305
|
let J = V != null && V !== "" ? _ - 1 : _;
|
|
3306
|
-
|
|
3306
|
+
$ && (J = $ === -1 ? _ + 1 : $), R.push([T, J]);
|
|
3307
3307
|
}
|
|
3308
|
-
return R.sort(function(
|
|
3309
|
-
return
|
|
3310
|
-
}), R.map((
|
|
3311
|
-
var
|
|
3312
|
-
const V =
|
|
3308
|
+
return R.sort(function(T, $) {
|
|
3309
|
+
return T[1] - $[1];
|
|
3310
|
+
}), R.map((T) => {
|
|
3311
|
+
var $;
|
|
3312
|
+
const V = T[0], J = M[V], oe = (($ = a.pluginConfigSchema) == null ? void 0 : $[V]) || {};
|
|
3313
3313
|
return {
|
|
3314
3314
|
key: V,
|
|
3315
3315
|
value: J,
|
|
@@ -3319,13 +3319,13 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3319
3319
|
tooltip: oe.tooltip ?? void 0,
|
|
3320
3320
|
section: se.Plugin
|
|
3321
3321
|
};
|
|
3322
|
-
}).filter((
|
|
3322
|
+
}).filter((T) => !T.hidden);
|
|
3323
3323
|
}), O = S(() => {
|
|
3324
3324
|
var p, A, M, _;
|
|
3325
3325
|
return {
|
|
3326
|
-
basic: (p =
|
|
3327
|
-
advanced: (A =
|
|
3328
|
-
plugin: (_ = w.value) == null ? void 0 : _.concat((M =
|
|
3326
|
+
basic: (p = E.value) == null ? void 0 : p.filter((R) => R.section === se.Basic),
|
|
3327
|
+
advanced: (A = E.value) == null ? void 0 : A.filter((R) => R.section === se.Advanced),
|
|
3328
|
+
plugin: (_ = w.value) == null ? void 0 : _.concat((M = E.value) == null ? void 0 : M.filter((R) => R.section === se.Plugin))
|
|
3329
3329
|
};
|
|
3330
3330
|
}), f = S(() => {
|
|
3331
3331
|
const p = [];
|
|
@@ -3358,11 +3358,11 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3358
3358
|
g.value = !1;
|
|
3359
3359
|
}
|
|
3360
3360
|
}), (p, A) => {
|
|
3361
|
-
const M = L("KLabel"), _ = L("KSelect"), R = L("KButton"),
|
|
3361
|
+
const M = L("KLabel"), _ = L("KSelect"), R = L("KButton"), T = L("KSkeleton"), $ = L("KEmptyState"), V = L("KCard");
|
|
3362
3362
|
return y(), U(V, {
|
|
3363
3363
|
class: "kong-ui-entity-base-config-card",
|
|
3364
3364
|
"title-tag": e.titleTag
|
|
3365
|
-
},
|
|
3365
|
+
}, Te({
|
|
3366
3366
|
actions: h(() => [
|
|
3367
3367
|
B("div", Il, [
|
|
3368
3368
|
W(p.$slots, "actions", {}, void 0, !0),
|
|
@@ -3400,12 +3400,12 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3400
3400
|
])
|
|
3401
3401
|
]),
|
|
3402
3402
|
default: h(() => [
|
|
3403
|
-
g.value ? (y(), U(
|
|
3403
|
+
g.value ? (y(), U(T, {
|
|
3404
3404
|
key: 0,
|
|
3405
3405
|
"data-testid": "config-card-loader",
|
|
3406
3406
|
"table-columns": 2,
|
|
3407
3407
|
type: "table"
|
|
3408
|
-
})) : C.value ? (y(), U(
|
|
3408
|
+
})) : C.value ? (y(), U($, {
|
|
3409
3409
|
key: 1,
|
|
3410
3410
|
"data-testid": "config-card-fetch-error",
|
|
3411
3411
|
"icon-variant": "error"
|
|
@@ -3423,7 +3423,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3423
3423
|
"prop-list-types": f.value,
|
|
3424
3424
|
"property-collections": O.value,
|
|
3425
3425
|
record: k.value
|
|
3426
|
-
},
|
|
3426
|
+
}, Te({ _: 2 }, [
|
|
3427
3427
|
ce(Object.keys(p.$slots), (J) => ({
|
|
3428
3428
|
name: J,
|
|
3429
3429
|
fn: h(({ row: oe, rowValue: le }) => [
|
|
@@ -3452,7 +3452,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3452
3452
|
]), 1032, ["title-tag"]);
|
|
3453
3453
|
};
|
|
3454
3454
|
}
|
|
3455
|
-
}),
|
|
3455
|
+
}), $l = /* @__PURE__ */ ue(jl, [["__scopeId", "data-v-f40a683b"]]), Tl = ["novalidate"], Ol = {
|
|
3456
3456
|
class: "form-actions",
|
|
3457
3457
|
"data-testid": "form-actions"
|
|
3458
3458
|
}, Ml = /* @__PURE__ */ H({
|
|
@@ -3531,8 +3531,8 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3531
3531
|
}), x = () => {
|
|
3532
3532
|
g.value = !g.value;
|
|
3533
3533
|
}, k = () => {
|
|
3534
|
-
a.config.cancelRoute ? o.push(a.config.cancelRoute) :
|
|
3535
|
-
},
|
|
3534
|
+
a.config.cancelRoute ? o.push(a.config.cancelRoute) : E();
|
|
3535
|
+
}, E = () => {
|
|
3536
3536
|
i("cancel");
|
|
3537
3537
|
}, w = () => {
|
|
3538
3538
|
m.value || i("submit");
|
|
@@ -3561,7 +3561,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3561
3561
|
c.value = !1;
|
|
3562
3562
|
}
|
|
3563
3563
|
}), (f, v) => {
|
|
3564
|
-
const p = L("KSkeleton"), A = L("KEmptyState"), M = L("KAlert"), _ = L("KButton"), R = L("KTabs"),
|
|
3564
|
+
const p = L("KSkeleton"), A = L("KEmptyState"), M = L("KAlert"), _ = L("KButton"), R = L("KTabs"), T = L("KSlideout");
|
|
3565
3565
|
return y(), U(ye(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3566
3566
|
default: h(() => [
|
|
3567
3567
|
c.value ? (y(), U(p, {
|
|
@@ -3582,7 +3582,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3582
3582
|
key: 2,
|
|
3583
3583
|
"data-testid": "form-content",
|
|
3584
3584
|
novalidate: a.noValidate,
|
|
3585
|
-
onReset: lt(
|
|
3585
|
+
onReset: lt(E, ["prevent"]),
|
|
3586
3586
|
onSubmit: lt(w, ["prevent"])
|
|
3587
3587
|
}, [
|
|
3588
3588
|
W(f.$slots, "default", {}, void 0, !0),
|
|
@@ -3597,7 +3597,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3597
3597
|
N(_, {
|
|
3598
3598
|
appearance: "tertiary",
|
|
3599
3599
|
"data-testid": "form-view-configuration",
|
|
3600
|
-
onClick: v[0] || (v[0] = (
|
|
3600
|
+
onClick: v[0] || (v[0] = ($) => x())
|
|
3601
3601
|
}, {
|
|
3602
3602
|
default: h(() => [
|
|
3603
3603
|
z(K(b(r)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -3628,15 +3628,15 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3628
3628
|
}, 8, ["disabled"])
|
|
3629
3629
|
], !0)
|
|
3630
3630
|
])
|
|
3631
|
-
], 40,
|
|
3632
|
-
N(
|
|
3631
|
+
], 40, Tl)),
|
|
3632
|
+
N(T, {
|
|
3633
3633
|
"close-on-blur": !1,
|
|
3634
3634
|
"data-testid": "form-view-configuration-slideout",
|
|
3635
3635
|
"has-overlay": !1,
|
|
3636
3636
|
"offset-top": 60,
|
|
3637
3637
|
title: b(r)("baseForm.configuration.title"),
|
|
3638
3638
|
visible: g.value,
|
|
3639
|
-
onClose: v[1] || (v[1] = (
|
|
3639
|
+
onClose: v[1] || (v[1] = ($) => x())
|
|
3640
3640
|
}, {
|
|
3641
3641
|
default: h(() => [
|
|
3642
3642
|
B("div", null, K(b(r)("baseForm.configuration.message")), 1),
|
|
@@ -3667,7 +3667,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3667
3667
|
});
|
|
3668
3668
|
};
|
|
3669
3669
|
}
|
|
3670
|
-
}),
|
|
3670
|
+
}), Fl = /* @__PURE__ */ ue(Ml, [["__scopeId", "data-v-fd05df8e"]]), El = ["data-truncate"], ql = /* @__PURE__ */ H({
|
|
3671
3671
|
__name: "EntityBaseTableCell",
|
|
3672
3672
|
props: {
|
|
3673
3673
|
keyName: {
|
|
@@ -3691,32 +3691,32 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3691
3691
|
var k;
|
|
3692
3692
|
return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
|
|
3693
3693
|
}), a = S(() => {
|
|
3694
|
-
var k,
|
|
3694
|
+
var k, E;
|
|
3695
3695
|
const w = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3696
|
-
return w ? ((
|
|
3696
|
+
return w ? ((E = w[0]) == null ? void 0 : E.getAttribute("data-testid")) === t.keyName : !1;
|
|
3697
3697
|
}), o = S(() => a.value || t.tooltip);
|
|
3698
3698
|
let r;
|
|
3699
3699
|
const l = () => {
|
|
3700
3700
|
r && (r.disconnect(), r = void 0);
|
|
3701
3701
|
}, s = () => {
|
|
3702
|
-
var k,
|
|
3702
|
+
var k, E, w;
|
|
3703
3703
|
let O = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
|
|
3704
3704
|
if (n.value && "getComputedStyle" in window) {
|
|
3705
3705
|
const f = window.getComputedStyle(n.value);
|
|
3706
3706
|
O -= (parseFloat(f.paddingLeft) || 0) + (parseFloat(f.paddingRight) || 0);
|
|
3707
3707
|
}
|
|
3708
|
-
d.value = ((
|
|
3708
|
+
d.value = ((E = i.value) == null ? void 0 : E.getBoundingClientRect().width) || 0, u.value = O, m.value = ((w = c.value) == null ? void 0 : w.innerText) || "";
|
|
3709
3709
|
}, c = q({}), d = q(0), u = q(0), m = q(""), g = S(() => [i.value, n.value]), C = Ie(
|
|
3710
3710
|
g,
|
|
3711
3711
|
(k) => {
|
|
3712
3712
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
3713
|
-
r = new ResizeObserver((
|
|
3713
|
+
r = new ResizeObserver((E) => {
|
|
3714
3714
|
window.requestAnimationFrame(() => {
|
|
3715
|
-
!Array.isArray(
|
|
3715
|
+
!Array.isArray(E) || !E.length || s();
|
|
3716
3716
|
});
|
|
3717
3717
|
});
|
|
3718
|
-
for (const
|
|
3719
|
-
|
|
3718
|
+
for (const E of k)
|
|
3719
|
+
E && r.observe(E);
|
|
3720
3720
|
}
|
|
3721
3721
|
},
|
|
3722
3722
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
@@ -3725,7 +3725,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3725
3725
|
s();
|
|
3726
3726
|
}), la(() => {
|
|
3727
3727
|
C();
|
|
3728
|
-
}), (k,
|
|
3728
|
+
}), (k, E) => {
|
|
3729
3729
|
const w = L("KTooltip");
|
|
3730
3730
|
return y(), j("span", {
|
|
3731
3731
|
ref_key: "contentRef",
|
|
@@ -3746,7 +3746,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3746
3746
|
]),
|
|
3747
3747
|
_: 3
|
|
3748
3748
|
}, 8, ["text"])
|
|
3749
|
-
], 8,
|
|
3749
|
+
], 8, El)) : W(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3750
3750
|
], 512);
|
|
3751
3751
|
};
|
|
3752
3752
|
}
|
|
@@ -3921,18 +3921,18 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3921
3921
|
i("click:row", A);
|
|
3922
3922
|
}), k = (p) => {
|
|
3923
3923
|
i("sort", p);
|
|
3924
|
-
}, { setTablePreferences:
|
|
3924
|
+
}, { setTablePreferences: E, getTablePreferences: w } = Ia(), O = q(w(r.value)), f = S(() => {
|
|
3925
3925
|
const p = w(r.value);
|
|
3926
3926
|
return {
|
|
3927
3927
|
...n.initialFetcherParams,
|
|
3928
3928
|
...p
|
|
3929
3929
|
};
|
|
3930
3930
|
}), v = (p) => {
|
|
3931
|
-
O.value = p, r.value &&
|
|
3931
|
+
O.value = p, r.value && E(r.value, p);
|
|
3932
3932
|
};
|
|
3933
3933
|
return (p, A) => {
|
|
3934
|
-
const M = L("KButton"), _ = L("KDropdown"), R = L("KTable"),
|
|
3935
|
-
return y(), U(
|
|
3934
|
+
const M = L("KButton"), _ = L("KDropdown"), R = L("KTable"), T = L("KCard");
|
|
3935
|
+
return y(), U(T, {
|
|
3936
3936
|
class: "kong-ui-entity-base-table",
|
|
3937
3937
|
title: e.title,
|
|
3938
3938
|
"title-tag": e.titleTag
|
|
@@ -3968,23 +3968,23 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3968
3968
|
"table-preferences": O.value,
|
|
3969
3969
|
onEmptyStateActionClick: g,
|
|
3970
3970
|
"onRow:click": x.value,
|
|
3971
|
-
onSort: A[0] || (A[0] = (
|
|
3971
|
+
onSort: A[0] || (A[0] = ($) => k($)),
|
|
3972
3972
|
"onUpdate:tablePreferences": v
|
|
3973
|
-
},
|
|
3974
|
-
toolbar: h(({ state:
|
|
3973
|
+
}, Te({
|
|
3974
|
+
toolbar: h(({ state: $ }) => [
|
|
3975
3975
|
ve(B("div", Bl, [
|
|
3976
3976
|
W(p.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3977
3977
|
p.$slots["toolbar-button"] ? (y(), j("div", Ll, [
|
|
3978
3978
|
W(p.$slots, "toolbar-button", {}, void 0, !0)
|
|
3979
3979
|
])) : P("", !0)
|
|
3980
3980
|
], 512), [
|
|
3981
|
-
[be, l(
|
|
3981
|
+
[be, l($)]
|
|
3982
3982
|
])
|
|
3983
3983
|
]),
|
|
3984
|
-
actions: h(({ row:
|
|
3984
|
+
actions: h(({ row: $, rowKey: V, rowValue: J }) => [
|
|
3985
3985
|
B("div", {
|
|
3986
3986
|
class: "actions-container",
|
|
3987
|
-
"data-testid":
|
|
3987
|
+
"data-testid": $.name
|
|
3988
3988
|
}, [
|
|
3989
3989
|
N(_, {
|
|
3990
3990
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
@@ -3992,7 +3992,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3992
3992
|
}, {
|
|
3993
3993
|
items: h(() => [
|
|
3994
3994
|
W(p.$slots, "actions", {
|
|
3995
|
-
row:
|
|
3995
|
+
row: $,
|
|
3996
3996
|
rowKey: V,
|
|
3997
3997
|
rowValue: J
|
|
3998
3998
|
}, void 0, !0)
|
|
@@ -4017,13 +4017,13 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4017
4017
|
]),
|
|
4018
4018
|
_: 2
|
|
4019
4019
|
}, [
|
|
4020
|
-
ce(e.tableHeaders, (
|
|
4020
|
+
ce(e.tableHeaders, ($, V) => ({
|
|
4021
4021
|
name: V,
|
|
4022
4022
|
fn: h(({ row: J, rowKey: oe, rowValue: le }) => [
|
|
4023
4023
|
N(Kl, {
|
|
4024
4024
|
"key-name": String(V),
|
|
4025
4025
|
"row-el": u(J),
|
|
4026
|
-
tooltip:
|
|
4026
|
+
tooltip: $.tooltip
|
|
4027
4027
|
}, {
|
|
4028
4028
|
default: h(() => [
|
|
4029
4029
|
W(p.$slots, V, {
|
|
@@ -4127,7 +4127,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4127
4127
|
class: "message",
|
|
4128
4128
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4129
4129
|
tag: "p"
|
|
4130
|
-
},
|
|
4130
|
+
}, Te({
|
|
4131
4131
|
entityType: h(() => [
|
|
4132
4132
|
z(K(i.entityType), 1)
|
|
4133
4133
|
]),
|
|
@@ -4251,7 +4251,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4251
4251
|
}, k = (f) => {
|
|
4252
4252
|
var v, p;
|
|
4253
4253
|
return ((p = (v = i.config.schema) == null ? void 0 : v[f]) == null ? void 0 : p.type) ?? "text";
|
|
4254
|
-
},
|
|
4254
|
+
}, E = (f) => {
|
|
4255
4255
|
r.value = {
|
|
4256
4256
|
...r.value,
|
|
4257
4257
|
[f]: ""
|
|
@@ -4305,7 +4305,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4305
4305
|
]),
|
|
4306
4306
|
ve(B("div", Xl, [
|
|
4307
4307
|
(y(!0), j(pe, null, ce(c.value, (_) => {
|
|
4308
|
-
var R,
|
|
4308
|
+
var R, T;
|
|
4309
4309
|
return y(), j("div", {
|
|
4310
4310
|
key: _.value,
|
|
4311
4311
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4315,8 +4315,8 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4315
4315
|
class: Ce(["menu-item-title", { expanded: l.value.has(_.value) }]),
|
|
4316
4316
|
role: "button",
|
|
4317
4317
|
tabindex: "0",
|
|
4318
|
-
onClick: (
|
|
4319
|
-
onKeydown: ia((
|
|
4318
|
+
onClick: ($) => u(_.value),
|
|
4319
|
+
onKeydown: ia(($) => u(_.value), ["enter"])
|
|
4320
4320
|
}, [
|
|
4321
4321
|
z(K(_.label) + " ", 1),
|
|
4322
4322
|
ve(B("span", ns, null, 512), [
|
|
@@ -4332,18 +4332,18 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4332
4332
|
class: "menu-item-label",
|
|
4333
4333
|
for: C(_.value)
|
|
4334
4334
|
}, K(b(n)("filter.fieldLabel")), 9, is),
|
|
4335
|
-
((
|
|
4335
|
+
((T = (R = e.config.schema) == null ? void 0 : R[_.value]) == null ? void 0 : T.type) === "select" ? (y(), U(M, {
|
|
4336
4336
|
key: 0,
|
|
4337
4337
|
id: C(_.value),
|
|
4338
4338
|
modelValue: r.value[_.value],
|
|
4339
|
-
"onUpdate:modelValue": (
|
|
4339
|
+
"onUpdate:modelValue": ($) => r.value[_.value] = $,
|
|
4340
4340
|
items: x(_.value),
|
|
4341
4341
|
placeholder: b(n)("filter.selectPlaceholder")
|
|
4342
4342
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (y(), U(p, {
|
|
4343
4343
|
key: 1,
|
|
4344
4344
|
id: C(_.value),
|
|
4345
4345
|
modelValue: r.value[_.value],
|
|
4346
|
-
"onUpdate:modelValue": (
|
|
4346
|
+
"onUpdate:modelValue": ($) => r.value[_.value] = $,
|
|
4347
4347
|
autocomplete: "off",
|
|
4348
4348
|
placeholder: b(n)("filter.inputPlaceholder"),
|
|
4349
4349
|
type: k(_.value)
|
|
@@ -4356,7 +4356,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4356
4356
|
appearance: "tertiary",
|
|
4357
4357
|
"data-testid": "apply-filter",
|
|
4358
4358
|
size: "small",
|
|
4359
|
-
onClick: v[0] || (v[0] = (
|
|
4359
|
+
onClick: v[0] || (v[0] = ($) => O(!0))
|
|
4360
4360
|
}, {
|
|
4361
4361
|
default: h(() => [
|
|
4362
4362
|
z(K(b(n)("filter.applyButtonText")), 1)
|
|
@@ -4367,7 +4367,7 @@ const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4367
4367
|
appearance: "tertiary",
|
|
4368
4368
|
"data-testid": "clear-filter",
|
|
4369
4369
|
size: "small",
|
|
4370
|
-
onClick: (
|
|
4370
|
+
onClick: ($) => E(_.value)
|
|
4371
4371
|
}, {
|
|
4372
4372
|
default: h(() => [
|
|
4373
4373
|
z(K(b(n)("filter.clearButtonText")), 1)
|
|
@@ -4528,7 +4528,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4528
4528
|
])
|
|
4529
4529
|
], 10, gs));
|
|
4530
4530
|
}
|
|
4531
|
-
}), ks = /* @__PURE__ */ ue(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ea, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator:
|
|
4531
|
+
}), ks = /* @__PURE__ */ ue(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ea, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator: Es, useFetchUrlBuilder: qs, useFetcher: Ss, useDebouncedFilter: Ks, useStringHelpers: Bs, useHelpers: Ls, useGatewayFeatureSupported: Us, useTruncationDetector: Rs, useValidators: Vs } = X, As = { class: "kong-ui-entities-key-sets-list" }, xs = { key: 1 }, Is = /* @__PURE__ */ H({
|
|
4532
4532
|
__name: "KeySetList",
|
|
4533
4533
|
props: {
|
|
4534
4534
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4581,89 +4581,89 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4581
4581
|
id: { label: a("keySets.list.table_headers.id"), sortable: !0 }
|
|
4582
4582
|
}, d = c, u = S(() => {
|
|
4583
4583
|
var D, ee;
|
|
4584
|
-
let
|
|
4585
|
-
return i.config.app === "konnect" ?
|
|
4584
|
+
let F = `${i.config.apiBaseUrl}${He.list[i.config.app]}`;
|
|
4585
|
+
return i.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((D = i.config) == null ? void 0 : D.controlPlaneId) || "") : i.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (ee = i.config) != null && ee.workspace ? `/${i.config.workspace}` : "")), F;
|
|
4586
4586
|
}), m = q(""), g = S(() => {
|
|
4587
|
-
const
|
|
4588
|
-
if (
|
|
4587
|
+
const F = i.config.app === "konnect" || i.config.isExactMatch;
|
|
4588
|
+
if (F)
|
|
4589
4589
|
return {
|
|
4590
|
-
isExactMatch:
|
|
4590
|
+
isExactMatch: F,
|
|
4591
4591
|
placeholder: a("keySets.search.placeholder")
|
|
4592
4592
|
};
|
|
4593
4593
|
const D = { name: c.name };
|
|
4594
4594
|
return {
|
|
4595
|
-
isExactMatch:
|
|
4595
|
+
isExactMatch: F,
|
|
4596
4596
|
fields: D,
|
|
4597
4597
|
schema: i.config.filterSchema
|
|
4598
4598
|
};
|
|
4599
4599
|
}), { fetcher: C, fetcherState: x } = Ss(i.config, u.value), k = () => {
|
|
4600
4600
|
m.value = "";
|
|
4601
|
-
},
|
|
4601
|
+
}, E = () => {
|
|
4602
4602
|
l.value++;
|
|
4603
|
-
}, w = q(null), O = (
|
|
4604
|
-
const ee =
|
|
4603
|
+
}, w = q(null), O = (F, D) => {
|
|
4604
|
+
const ee = F.id;
|
|
4605
4605
|
if (!D(ee)) {
|
|
4606
|
-
p(
|
|
4606
|
+
p(F, "id");
|
|
4607
4607
|
return;
|
|
4608
4608
|
}
|
|
4609
|
-
v(
|
|
4610
|
-
}, f = (
|
|
4611
|
-
const ee = JSON.stringify(
|
|
4609
|
+
v(F, "id");
|
|
4610
|
+
}, f = (F, D) => {
|
|
4611
|
+
const ee = JSON.stringify(F);
|
|
4612
4612
|
if (!D(ee)) {
|
|
4613
4613
|
n("copy:error", {
|
|
4614
|
-
entity:
|
|
4614
|
+
entity: F,
|
|
4615
4615
|
message: a("keySets.errors.copy")
|
|
4616
4616
|
});
|
|
4617
4617
|
return;
|
|
4618
4618
|
}
|
|
4619
4619
|
n("copy:success", {
|
|
4620
|
-
entity:
|
|
4620
|
+
entity: F,
|
|
4621
4621
|
message: a("keySets.copy.success_brief")
|
|
4622
4622
|
});
|
|
4623
|
-
}, v = (
|
|
4623
|
+
}, v = (F, D) => {
|
|
4624
4624
|
n("copy:success", {
|
|
4625
|
-
entity:
|
|
4625
|
+
entity: F,
|
|
4626
4626
|
field: D,
|
|
4627
|
-
message: a("keySets.copy.success", { val:
|
|
4627
|
+
message: a("keySets.copy.success", { val: F[D] })
|
|
4628
4628
|
});
|
|
4629
|
-
}, p = (
|
|
4629
|
+
}, p = (F, D) => {
|
|
4630
4630
|
n("copy:error", {
|
|
4631
|
-
entity:
|
|
4631
|
+
entity: F,
|
|
4632
4632
|
field: D,
|
|
4633
4633
|
message: a("keySets.errors.copy")
|
|
4634
4634
|
});
|
|
4635
|
-
}, A = async (
|
|
4635
|
+
}, A = async (F) => {
|
|
4636
4636
|
var ee;
|
|
4637
|
-
await ((ee = i.canRetrieve) == null ? void 0 : ee.call(i,
|
|
4638
|
-
}, M = (
|
|
4637
|
+
await ((ee = i.canRetrieve) == null ? void 0 : ee.call(i, F)) && o.push(i.config.getViewRoute(F.id));
|
|
4638
|
+
}, M = (F) => ({
|
|
4639
4639
|
label: a("keySets.actions.view"),
|
|
4640
|
-
to: i.config.getViewRoute(
|
|
4641
|
-
}), _ = (
|
|
4640
|
+
to: i.config.getViewRoute(F)
|
|
4641
|
+
}), _ = (F) => ({
|
|
4642
4642
|
label: a("keySets.actions.edit"),
|
|
4643
|
-
to: i.config.getEditRoute(
|
|
4644
|
-
}), R = q(void 0),
|
|
4645
|
-
R.value =
|
|
4643
|
+
to: i.config.getEditRoute(F)
|
|
4644
|
+
}), R = q(void 0), T = q(!1), $ = q(!1), V = q(""), J = Cs(i.config, u.value), oe = (F) => {
|
|
4645
|
+
R.value = F, T.value = !0;
|
|
4646
4646
|
}, le = () => {
|
|
4647
|
-
|
|
4647
|
+
T.value = !1;
|
|
4648
4648
|
}, de = async () => {
|
|
4649
|
-
var
|
|
4650
|
-
if ((
|
|
4651
|
-
|
|
4649
|
+
var F, D, ee;
|
|
4650
|
+
if ((F = R.value) != null && F.id) {
|
|
4651
|
+
$.value = !0;
|
|
4652
4652
|
try {
|
|
4653
|
-
await r.delete(J(R.value.id)),
|
|
4653
|
+
await r.delete(J(R.value.id)), $.value = !1, T.value = !1, l.value++, n("delete:success", R.value);
|
|
4654
4654
|
} catch (he) {
|
|
4655
4655
|
V.value = ((ee = (D = he.response) == null ? void 0 : D.data) == null ? void 0 : ee.message) || he.message || a("keySets.errors.delete"), n("error", he);
|
|
4656
4656
|
} finally {
|
|
4657
|
-
|
|
4657
|
+
$.value = !1;
|
|
4658
4658
|
}
|
|
4659
4659
|
}
|
|
4660
4660
|
}, xt = q(!0);
|
|
4661
|
-
Ie(x, (
|
|
4661
|
+
Ie(x, (F) => {
|
|
4662
4662
|
var D, ee, he, De;
|
|
4663
|
-
if (Array.isArray((D =
|
|
4663
|
+
if (Array.isArray((D = F == null ? void 0 : F.response) == null ? void 0 : D.data) && (xt.value = F.response.data.length > 0), F.status === Ae.Error) {
|
|
4664
4664
|
w.value = {
|
|
4665
4665
|
title: a("keySets.errors.general")
|
|
4666
|
-
}, (De = (he = (ee =
|
|
4666
|
+
}, (De = (he = (ee = F.error) == null ? void 0 : ee.response) == null ? void 0 : he.data) != null && De.message && (w.value.message = F.error.response.data.message), n("error", F.error);
|
|
4667
4667
|
return;
|
|
4668
4668
|
}
|
|
4669
4669
|
w.value = null;
|
|
@@ -4676,7 +4676,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4676
4676
|
});
|
|
4677
4677
|
return gt(async () => {
|
|
4678
4678
|
await i.canCreate() && (et.value.title = a("keySets.list.empty_state.title"), et.value.ctaText = a("keySets.actions.create"));
|
|
4679
|
-
}), (
|
|
4679
|
+
}), (F, D) => {
|
|
4680
4680
|
const ee = L("KButton"), he = L("KBadge"), De = L("KTruncate"), na = L("KCopy"), qe = L("KDropdownItem"), _t = L("KClipboardProvider");
|
|
4681
4681
|
return y(), j("div", As, [
|
|
4682
4682
|
N(b(Vl), {
|
|
@@ -4695,7 +4695,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4695
4695
|
"use-action-outside": e.useActionOutside,
|
|
4696
4696
|
onClearSearchInput: k,
|
|
4697
4697
|
"onClick:row": D[2] || (D[2] = (Y) => A(Y)),
|
|
4698
|
-
onSort:
|
|
4698
|
+
onSort: E
|
|
4699
4699
|
}, {
|
|
4700
4700
|
"toolbar-filter": h(() => [
|
|
4701
4701
|
N(b(ss), {
|
|
@@ -4832,13 +4832,13 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4832
4832
|
_: 1
|
|
4833
4833
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4834
4834
|
N(b(Hl), {
|
|
4835
|
-
"action-pending":
|
|
4835
|
+
"action-pending": $.value,
|
|
4836
4836
|
description: b(a)("keySets.delete.description"),
|
|
4837
4837
|
"entity-name": R.value && (R.value.name || R.value.id),
|
|
4838
4838
|
"entity-type": b(an).KeySet,
|
|
4839
4839
|
error: V.value,
|
|
4840
4840
|
title: b(a)("keySets.delete.title"),
|
|
4841
|
-
visible:
|
|
4841
|
+
visible: T.value,
|
|
4842
4842
|
onCancel: le,
|
|
4843
4843
|
onProceed: de
|
|
4844
4844
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
@@ -4894,7 +4894,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4894
4894
|
name: d.fields.name,
|
|
4895
4895
|
tags: ((v = (f = (O = d.fields.tags) == null ? void 0 : O.split(",")) == null ? void 0 : f.map((p) => String(p || "").trim())) == null ? void 0 : v.filter((p) => p !== "")) || ""
|
|
4896
4896
|
};
|
|
4897
|
-
}),
|
|
4897
|
+
}), E = async () => {
|
|
4898
4898
|
var O, f;
|
|
4899
4899
|
try {
|
|
4900
4900
|
d.isReadonly = !0;
|
|
@@ -4912,7 +4912,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4912
4912
|
return (O, f) => {
|
|
4913
4913
|
const v = L("KInput");
|
|
4914
4914
|
return y(), j("div", _s, [
|
|
4915
|
-
N(b(
|
|
4915
|
+
N(b(Fl), {
|
|
4916
4916
|
"can-submit": m.value,
|
|
4917
4917
|
config: e.config,
|
|
4918
4918
|
"edit-id": e.keySetId,
|
|
@@ -4924,7 +4924,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
4924
4924
|
"onFetch:error": f[2] || (f[2] = (p) => O.$emit("error", p)),
|
|
4925
4925
|
"onFetch:success": g,
|
|
4926
4926
|
onLoading: f[3] || (f[3] = (p) => O.$emit("loading", p)),
|
|
4927
|
-
onSubmit:
|
|
4927
|
+
onSubmit: E
|
|
4928
4928
|
}, {
|
|
4929
4929
|
default: h(() => [
|
|
4930
4930
|
N(b(ks), {
|
|
@@ -5003,7 +5003,7 @@ const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
});
|
|
5005
5005
|
return (o, r) => (y(), j("div", js, [
|
|
5006
|
-
N(b(
|
|
5006
|
+
N(b($l), {
|
|
5007
5007
|
config: e.config,
|
|
5008
5008
|
"config-card-doc": e.configCardDoc,
|
|
5009
5009
|
"config-schema": a.value,
|