@kong-ui-public/entities-consumers 1.2.3 → 1.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-consumers.es.js +138 -139
- package/dist/entities-consumers.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, ref as F, computed as O, watch as
|
|
1
|
+
import { defineComponent as te, ref as F, computed as O, watch as ke, renderSlot as J, createCommentVNode as G, unref as m, useSlots as Ze, onBeforeMount as Qe, resolveComponent as q, openBlock as f, createBlock as U, createSlots as ve, withCtx as y, createElementVNode as B, createTextVNode as W, toDisplayString as M, createVNode as j, createElementBlock as x, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ve, vShow as De, useCssVars as sa, resolveDynamicComponent as Ne, normalizeProps as la, guardReactiveProps as ua, mergeProps as lt, onMounted as ca, onUnmounted as da, normalizeStyle as pa, inject as fa, pushScopeId as ma, popScopeId as ga, reactive as Bt } from "vue";
|
|
2
2
|
import { useRouter as gt } from "vue-router";
|
|
3
3
|
import { createI18n as yt, i18nTComponent as rn } from "@kong-ui-public/i18n";
|
|
4
4
|
import ya from "axios";
|
|
@@ -98,7 +98,7 @@ const va = {
|
|
|
98
98
|
}, ba = {
|
|
99
99
|
consumers: va
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function Ca() {
|
|
102
102
|
const e = yt("en-us", ba);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
@@ -107,7 +107,7 @@ function ka() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const Xe = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: Ca
|
|
111
111
|
}, Te = "/api/runtime_groups/{controlPlaneId}", $e = "/{workspace}", Se = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -144,7 +144,7 @@ function ht(e = {}) {
|
|
|
144
144
|
})
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function ka() {
|
|
148
148
|
return {
|
|
149
149
|
debounce: (e, n) => {
|
|
150
150
|
let t;
|
|
@@ -297,15 +297,15 @@ function Ea(e, n, t, a = {
|
|
|
297
297
|
t || (t = "100");
|
|
298
298
|
const { axiosInstance: o } = ht({
|
|
299
299
|
headers: e.requestHeaders
|
|
300
|
-
}), { i18n: { t: r } } = vt(), { debounce: i } =
|
|
300
|
+
}), { i18n: { t: r } } = vt(), { debounce: i } = ka(), s = i(async (v) => {
|
|
301
301
|
await b(v);
|
|
302
302
|
}, 200), l = F(!1), c = F(""), d = F(""), u = F([]), h = F(void 0), g = m(n);
|
|
303
|
-
let
|
|
304
|
-
e.app === "konnect" ?
|
|
305
|
-
const
|
|
303
|
+
let C = `${e.apiBaseUrl}${g}`;
|
|
304
|
+
e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
305
|
+
const k = async () => {
|
|
306
306
|
try {
|
|
307
307
|
l.value = !0;
|
|
308
|
-
const { data: v } = await o.get(`${
|
|
308
|
+
const { data: v } = await o.get(`${C}?size=${t}`);
|
|
309
309
|
v != null && v.next || (h.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : []), u.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : [];
|
|
310
310
|
} catch {
|
|
311
311
|
u.value = [], c.value = r("debouncedFilter.errors.fetch");
|
|
@@ -318,7 +318,7 @@ function Ea(e, n, t, a = {
|
|
|
318
318
|
if (p.value = v || "", h.value === void 0)
|
|
319
319
|
try {
|
|
320
320
|
l.value = !0, c.value = "", d.value = "";
|
|
321
|
-
let _ =
|
|
321
|
+
let _ = C + "";
|
|
322
322
|
v && (_ += `/${v}`);
|
|
323
323
|
const { data: E } = await o.get(`${_}?size=${t}`);
|
|
324
324
|
a.fetchedItemsKey in E ? u.value = E[a.fetchedItemsKey] : E != null && E.id ? u.value = [E] : u.value = [];
|
|
@@ -344,7 +344,7 @@ function Ea(e, n, t, a = {
|
|
|
344
344
|
validationError: d,
|
|
345
345
|
results: u,
|
|
346
346
|
allRecords: h,
|
|
347
|
-
loadItems:
|
|
347
|
+
loadItems: k,
|
|
348
348
|
debouncedQueryChange: s
|
|
349
349
|
};
|
|
350
350
|
}
|
|
@@ -392,8 +392,8 @@ function ln(e, n) {
|
|
|
392
392
|
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: h } = i;
|
|
393
393
|
try {
|
|
394
394
|
let g = new URL(r.value.href);
|
|
395
|
-
return o.value && h ? (g.search = "", g = new URL(`${g.href}/${h}/`)) : (o.value || new URLSearchParams(h).forEach((
|
|
396
|
-
g.searchParams.append(
|
|
395
|
+
return o.value && h ? (g.search = "", g = new URL(`${g.href}/${h}/`)) : (o.value || new URLSearchParams(h).forEach((C, k) => {
|
|
396
|
+
g.searchParams.append(k, C);
|
|
397
397
|
}), d && g.searchParams.append("sort_by", d), u === "desc" && g.searchParams.append("sort_desc", "1"), g.searchParams.append("size", String(l))), c && s !== 1 && g.searchParams.append("offset", String(c)), g.href;
|
|
398
398
|
} catch (g) {
|
|
399
399
|
return console.error("RouteList(fetcher)", g), a.value;
|
|
@@ -595,14 +595,14 @@ const oe = {
|
|
|
595
595
|
}), i.value ? d(a("message.fail")) : n("error", t.uuid);
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
|
-
const g = t.uuid.length > Rt,
|
|
598
|
+
const g = t.uuid.length > Rt, C = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, Rt) + (g ? "..." : "")}"`;
|
|
599
599
|
typeof o == "function" && o({
|
|
600
600
|
type: "success",
|
|
601
|
-
message: `${
|
|
601
|
+
message: `${C}${a("message.success.content")}`
|
|
602
602
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
603
603
|
};
|
|
604
604
|
return (h, g) => {
|
|
605
|
-
const
|
|
605
|
+
const C = q("KIcon"), k = q("KClipboardProvider");
|
|
606
606
|
return f(), x("div", Ja, [
|
|
607
607
|
e.format !== "hidden" ? (f(), U(Ne(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
608
608
|
default: y(() => [
|
|
@@ -618,7 +618,7 @@ const oe = {
|
|
|
618
618
|
}, 16)) : G("", !0),
|
|
619
619
|
(f(), U(Ne(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
|
|
620
620
|
default: y(() => [
|
|
621
|
-
j(
|
|
621
|
+
j(k, null, {
|
|
622
622
|
default: y(({ copyToClipboard: p }) => [
|
|
623
623
|
B("span", {
|
|
624
624
|
"data-testid": "copy-to-clipboard",
|
|
@@ -626,7 +626,7 @@ const oe = {
|
|
|
626
626
|
tabindex: "0",
|
|
627
627
|
onClick: Ge((b) => u(p), ["stop"])
|
|
628
628
|
}, [
|
|
629
|
-
j(
|
|
629
|
+
j(C, {
|
|
630
630
|
class: "uuid-icon",
|
|
631
631
|
color: e.iconColor,
|
|
632
632
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -749,11 +749,11 @@ const oe = {
|
|
|
749
749
|
}, 8, ["appearance"]);
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
|
-
}), oo = "#0044f4", ro = "#e0e4ea", io = "#3a3f51", so = "1px", lo = "20px", uo = { class: "config-card-details-row" }, co = ["data-testid"], po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = { key: 1 }, yo = ["data-testid"], ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"],
|
|
752
|
+
}), oo = "#0044f4", ro = "#e0e4ea", io = "#3a3f51", so = "1px", lo = "20px", uo = { class: "config-card-details-row" }, co = ["data-testid"], po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = { key: 1 }, yo = ["data-testid"], ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"], Co = ["title"], ko = {
|
|
753
753
|
name: "ConfigCardItem",
|
|
754
754
|
components: { CopyUuid: dn, JsonCardItem: pn, StatusBadge: ao, InternalLinkItem: no }
|
|
755
755
|
}, wo = /* @__PURE__ */ te({
|
|
756
|
-
...
|
|
756
|
+
...ko,
|
|
757
757
|
props: {
|
|
758
758
|
item: {
|
|
759
759
|
type: Object,
|
|
@@ -907,7 +907,7 @@ const oe = {
|
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
return (u, h) => {
|
|
910
|
-
const g = q("KLabel"),
|
|
910
|
+
const g = q("KLabel"), C = q("KBadge"), k = q("KMethodBadge");
|
|
911
911
|
return f(), x("div", uo, [
|
|
912
912
|
B("div", {
|
|
913
913
|
class: "config-card-details-label",
|
|
@@ -950,7 +950,7 @@ const oe = {
|
|
|
950
950
|
key: 0,
|
|
951
951
|
"data-testid": `${e.item.key}-badge-tags`
|
|
952
952
|
}, [
|
|
953
|
-
(f(!0), x(pe, null, ce(e.item.value, (p, b) => (f(), U(
|
|
953
|
+
(f(!0), x(pe, null, ce(e.item.value, (p, b) => (f(), U(C, {
|
|
954
954
|
key: `${e.item.key}-badge-tag-${b}`,
|
|
955
955
|
class: "config-badge",
|
|
956
956
|
"data-testid": `${e.item.key}-badge-tag-${b}`,
|
|
@@ -977,7 +977,7 @@ const oe = {
|
|
|
977
977
|
class: "method-badge-array",
|
|
978
978
|
"data-testid": `${e.item.key}-badge-methods`
|
|
979
979
|
}, [
|
|
980
|
-
(f(!0), x(pe, null, ce(e.item.value, (p, b) => (f(), U(
|
|
980
|
+
(f(!0), x(pe, null, ce(e.item.value, (p, b) => (f(), U(k, {
|
|
981
981
|
key: `${e.item.key}-badge-method-${b}`,
|
|
982
982
|
class: "config-badge",
|
|
983
983
|
"data-testid": `${e.item.key}-badge-method-${b}`,
|
|
@@ -1005,7 +1005,7 @@ const oe = {
|
|
|
1005
1005
|
key: 4,
|
|
1006
1006
|
class: Ae(["attrs-data-text", { truncated: e.truncated }]),
|
|
1007
1007
|
title: e.truncated ? e.item.value : void 0
|
|
1008
|
-
}, M(d.value.text), 11,
|
|
1008
|
+
}, M(d.value.text), 11, Co))
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 1
|
|
1011
1011
|
}, 16))
|
|
@@ -1235,7 +1235,7 @@ function Ro() {
|
|
|
1235
1235
|
function Vo(e) {
|
|
1236
1236
|
return e === null;
|
|
1237
1237
|
}
|
|
1238
|
-
var
|
|
1238
|
+
var Cn = new re("tag:yaml.org,2002:null", {
|
|
1239
1239
|
kind: "scalar",
|
|
1240
1240
|
resolve: Uo,
|
|
1241
1241
|
construct: Ro,
|
|
@@ -1271,7 +1271,7 @@ function Go(e) {
|
|
|
1271
1271
|
function Ho(e) {
|
|
1272
1272
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1273
1273
|
}
|
|
1274
|
-
var
|
|
1274
|
+
var kn = new re("tag:yaml.org,2002:bool", {
|
|
1275
1275
|
kind: "scalar",
|
|
1276
1276
|
resolve: Do,
|
|
1277
1277
|
construct: Go,
|
|
@@ -1448,8 +1448,8 @@ var _n = new re("tag:yaml.org,2002:float", {
|
|
|
1448
1448
|
defaultStyle: "lowercase"
|
|
1449
1449
|
}), In = bn.extend({
|
|
1450
1450
|
implicit: [
|
|
1451
|
-
kn,
|
|
1452
1451
|
Cn,
|
|
1452
|
+
kn,
|
|
1453
1453
|
wn,
|
|
1454
1454
|
_n
|
|
1455
1455
|
]
|
|
@@ -1490,12 +1490,12 @@ function lr(e) {
|
|
|
1490
1490
|
var $n = new re("tag:yaml.org,2002:merge", {
|
|
1491
1491
|
kind: "scalar",
|
|
1492
1492
|
resolve: lr
|
|
1493
|
-
}),
|
|
1493
|
+
}), Ct = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1494
1494
|
\r`;
|
|
1495
1495
|
function ur(e) {
|
|
1496
1496
|
if (e === null)
|
|
1497
1497
|
return !1;
|
|
1498
|
-
var n, t, a = 0, o = e.length, r =
|
|
1498
|
+
var n, t, a = 0, o = e.length, r = Ct;
|
|
1499
1499
|
for (t = 0; t < o; t++)
|
|
1500
1500
|
if (n = r.indexOf(e.charAt(t)), !(n > 64)) {
|
|
1501
1501
|
if (n < 0)
|
|
@@ -1505,13 +1505,13 @@ function ur(e) {
|
|
|
1505
1505
|
return a % 8 === 0;
|
|
1506
1506
|
}
|
|
1507
1507
|
function cr(e) {
|
|
1508
|
-
var n, t, a = e.replace(/[\r\n=]/g, ""), o = a.length, r =
|
|
1508
|
+
var n, t, a = e.replace(/[\r\n=]/g, ""), o = a.length, r = Ct, i = 0, s = [];
|
|
1509
1509
|
for (n = 0; n < o; n++)
|
|
1510
1510
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | r.indexOf(a.charAt(n));
|
|
1511
1511
|
return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1512
1512
|
}
|
|
1513
1513
|
function dr(e) {
|
|
1514
|
-
var n = "", t = 0, a, o, r = e.length, i =
|
|
1514
|
+
var n = "", t = 0, a, o, r = e.length, i = Ct;
|
|
1515
1515
|
for (a = 0; a < r; a++)
|
|
1516
1516
|
a % 3 === 0 && a && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[a];
|
|
1517
1517
|
return o = r % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
@@ -1579,13 +1579,13 @@ var jn = new re("tag:yaml.org,2002:pairs", {
|
|
|
1579
1579
|
kind: "sequence",
|
|
1580
1580
|
resolve: vr,
|
|
1581
1581
|
construct: br
|
|
1582
|
-
}),
|
|
1583
|
-
function
|
|
1582
|
+
}), Cr = Object.prototype.hasOwnProperty;
|
|
1583
|
+
function kr(e) {
|
|
1584
1584
|
if (e === null)
|
|
1585
1585
|
return !0;
|
|
1586
1586
|
var n, t = e;
|
|
1587
1587
|
for (n in t)
|
|
1588
|
-
if (
|
|
1588
|
+
if (Cr.call(t, n) && t[n] !== null)
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
return !0;
|
|
1591
1591
|
}
|
|
@@ -1594,9 +1594,9 @@ function wr(e) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
var En = new re("tag:yaml.org,2002:set", {
|
|
1596
1596
|
kind: "mapping",
|
|
1597
|
-
resolve:
|
|
1597
|
+
resolve: kr,
|
|
1598
1598
|
construct: wr
|
|
1599
|
-
}),
|
|
1599
|
+
}), kt = An.extend({
|
|
1600
1600
|
implicit: [
|
|
1601
1601
|
Tn,
|
|
1602
1602
|
$n
|
|
@@ -1607,7 +1607,7 @@ var En = new re("tag:yaml.org,2002:set", {
|
|
|
1607
1607
|
jn,
|
|
1608
1608
|
En
|
|
1609
1609
|
]
|
|
1610
|
-
}),
|
|
1610
|
+
}), Ce = Object.prototype.hasOwnProperty, He = 1, Fn = 2, Bn = 3, Ye = 4, st = 1, _r = 2, Dt = 3, Ir = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ar = /[\x85\u2028\u2029]/, Sr = /[,\[\]\{\}]/, Kn = /^(?:!|!!|![a-z\-]+!)$/i, Nn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1611
1611
|
function Gt(e) {
|
|
1612
1612
|
return Object.prototype.toString.call(e);
|
|
1613
1613
|
}
|
|
@@ -1647,7 +1647,7 @@ var qn = new Array(256), Ln = new Array(256);
|
|
|
1647
1647
|
for (var Me = 0; Me < 256; Me++)
|
|
1648
1648
|
qn[Me] = Ht(Me) ? 1 : 0, Ln[Me] = Ht(Me);
|
|
1649
1649
|
function Or(e, n) {
|
|
1650
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema ||
|
|
1650
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || kt, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
|
|
1651
1651
|
}
|
|
1652
1652
|
function Pn(e, n) {
|
|
1653
1653
|
var t = {
|
|
@@ -1673,7 +1673,7 @@ var Yt = {
|
|
|
1673
1673
|
},
|
|
1674
1674
|
TAG: function(e, n, t) {
|
|
1675
1675
|
var a, o;
|
|
1676
|
-
t.length !== 2 && T(e, "TAG directive accepts exactly two arguments"), a = t[0], o = t[1], Kn.test(a) || T(e, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
1676
|
+
t.length !== 2 && T(e, "TAG directive accepts exactly two arguments"), a = t[0], o = t[1], Kn.test(a) || T(e, "ill-formed tag handle (first argument) of the TAG directive"), Ce.call(e.tagMap, a) && T(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Nn.test(o) || T(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1677
1677
|
try {
|
|
1678
1678
|
o = decodeURIComponent(o);
|
|
1679
1679
|
} catch {
|
|
@@ -1696,7 +1696,7 @@ function be(e, n, t, a) {
|
|
|
1696
1696
|
function zt(e, n, t, a) {
|
|
1697
1697
|
var o, r, i, s;
|
|
1698
1698
|
for (ne.isObject(t) || T(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
|
|
1699
|
-
r = o[i],
|
|
1699
|
+
r = o[i], Ce.call(n, r) || (n[r] = t[r], a[r] = !0);
|
|
1700
1700
|
}
|
|
1701
1701
|
function Ee(e, n, t, a, o, r, i, s, l) {
|
|
1702
1702
|
var c, d;
|
|
@@ -1710,7 +1710,7 @@ function Ee(e, n, t, a, o, r, i, s, l) {
|
|
|
1710
1710
|
else
|
|
1711
1711
|
zt(e, n, r, t);
|
|
1712
1712
|
else
|
|
1713
|
-
!e.json && !
|
|
1713
|
+
!e.json && !Ce.call(t, o) && Ce.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, T(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
|
|
1714
1714
|
configurable: !0,
|
|
1715
1715
|
enumerable: !0,
|
|
1716
1716
|
writable: !0,
|
|
@@ -1812,7 +1812,7 @@ function Fr(e, n) {
|
|
|
1812
1812
|
T(e, "unexpected end of the stream within a double quoted scalar");
|
|
1813
1813
|
}
|
|
1814
1814
|
function Br(e, n) {
|
|
1815
|
-
var t = !0, a, o, r, i = e.tag, s, l = e.anchor, c, d, u, h, g,
|
|
1815
|
+
var t = !0, a, o, r, i = e.tag, s, l = e.anchor, c, d, u, h, g, C = /* @__PURE__ */ Object.create(null), k, p, b, v;
|
|
1816
1816
|
if (v = e.input.charCodeAt(e.position), v === 91)
|
|
1817
1817
|
d = 93, g = !1, s = [];
|
|
1818
1818
|
else if (v === 123)
|
|
@@ -1822,7 +1822,7 @@ function Br(e, n) {
|
|
|
1822
1822
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0; ) {
|
|
1823
1823
|
if (ee(e, !0, n), v = e.input.charCodeAt(e.position), v === d)
|
|
1824
1824
|
return e.position++, e.tag = i, e.anchor = l, e.kind = g ? "mapping" : "sequence", e.result = s, !0;
|
|
1825
|
-
t ? v === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), p =
|
|
1825
|
+
t ? v === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), p = k = b = null, u = h = !1, v === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, ee(e, !0, n))), a = e.line, o = e.lineStart, r = e.position, Fe(e, n, He, !1, !0), p = e.tag, k = e.result, ee(e, !0, n), v = e.input.charCodeAt(e.position), (h || e.line === a) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), ee(e, !0, n), Fe(e, n, He, !1, !0), b = e.result), g ? Ee(e, s, C, p, k, b, a, o, r) : u ? s.push(Ee(e, null, C, p, k, b, a, o, r)) : s.push(k), ee(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (t = !0, v = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1826
1826
|
}
|
|
1827
1827
|
T(e, "unexpected end of the stream within a flow collection");
|
|
1828
1828
|
}
|
|
@@ -1890,12 +1890,12 @@ function Jt(e, n) {
|
|
|
1890
1890
|
return s ? (e.tag = a, e.anchor = o, e.kind = "sequence", e.result = r, !0) : !1;
|
|
1891
1891
|
}
|
|
1892
1892
|
function Nr(e, n, t) {
|
|
1893
|
-
var a, o, r, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), g = null,
|
|
1893
|
+
var a, o, r, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), g = null, C = null, k = null, p = !1, b = !1, v;
|
|
1894
1894
|
if (e.firstTabInLine !== -1)
|
|
1895
1895
|
return !1;
|
|
1896
1896
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), v = e.input.charCodeAt(e.position); v !== 0; ) {
|
|
1897
1897
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (v === 63 || v === 58) && de(a))
|
|
1898
|
-
v === 63 ? (p && (Ee(e, u, h, g,
|
|
1898
|
+
v === 63 ? (p && (Ee(e, u, h, g, C, null, i, s, l), g = C = k = null), b = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = a;
|
|
1899
1899
|
else {
|
|
1900
1900
|
if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Fn, !1, !0))
|
|
1901
1901
|
break;
|
|
@@ -1903,7 +1903,7 @@ function Nr(e, n, t) {
|
|
|
1903
1903
|
for (v = e.input.charCodeAt(e.position); Ie(v); )
|
|
1904
1904
|
v = e.input.charCodeAt(++e.position);
|
|
1905
1905
|
if (v === 58)
|
|
1906
|
-
v = e.input.charCodeAt(++e.position), de(v) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, h, g,
|
|
1906
|
+
v = e.input.charCodeAt(++e.position), de(v) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, h, g, C, null, i, s, l), g = C = k = null), b = !0, p = !1, o = !1, g = e.tag, C = e.result;
|
|
1907
1907
|
else if (b)
|
|
1908
1908
|
T(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1909
1909
|
else
|
|
@@ -1913,12 +1913,12 @@ function Nr(e, n, t) {
|
|
|
1913
1913
|
else
|
|
1914
1914
|
return e.tag = c, e.anchor = d, !0;
|
|
1915
1915
|
}
|
|
1916
|
-
if ((e.line === r || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, Ye, !0, o) && (p ?
|
|
1916
|
+
if ((e.line === r || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, Ye, !0, o) && (p ? C = e.result : k = e.result), p || (Ee(e, u, h, g, C, k, i, s, l), g = C = k = null), ee(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > n) && v !== 0)
|
|
1917
1917
|
T(e, "bad indentation of a mapping entry");
|
|
1918
1918
|
else if (e.lineIndent < n)
|
|
1919
1919
|
break;
|
|
1920
1920
|
}
|
|
1921
|
-
return p && Ee(e, u, h, g,
|
|
1921
|
+
return p && Ee(e, u, h, g, C, null, i, s, l), b && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), b;
|
|
1922
1922
|
}
|
|
1923
1923
|
function qr(e) {
|
|
1924
1924
|
var n, t = !1, a = !1, o, r, i;
|
|
@@ -1940,7 +1940,7 @@ function qr(e) {
|
|
|
1940
1940
|
} catch {
|
|
1941
1941
|
T(e, "tag name is malformed: " + r);
|
|
1942
1942
|
}
|
|
1943
|
-
return t ? e.tag = r :
|
|
1943
|
+
return t ? e.tag = r : Ce.call(e.tagMap, o) ? e.tag = e.tagMap[o] + r : o === "!" ? e.tag = "!" + r : o === "!!" ? e.tag = "tag:yaml.org,2002:" + r : T(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
1944
1944
|
}
|
|
1945
1945
|
function Lr(e) {
|
|
1946
1946
|
var n, t;
|
|
@@ -1956,31 +1956,31 @@ function Pr(e) {
|
|
|
1956
1956
|
return !1;
|
|
1957
1957
|
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !de(a) && !je(a); )
|
|
1958
1958
|
a = e.input.charCodeAt(++e.position);
|
|
1959
|
-
return e.position === n && T(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position),
|
|
1959
|
+
return e.position === n && T(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ce.call(e.anchorMap, t) || T(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ee(e, !0, -1), !0;
|
|
1960
1960
|
}
|
|
1961
1961
|
function Fe(e, n, t, a, o) {
|
|
1962
|
-
var r, i, s, l = 1, c = !1, d = !1, u, h, g,
|
|
1962
|
+
var r, i, s, l = 1, c = !1, d = !1, u, h, g, C, k, p;
|
|
1963
1963
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = i = s = Ye === t || Bn === t, a && ee(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
1964
1964
|
for (; qr(e) || Lr(e); )
|
|
1965
1965
|
ee(e, !0, -1) ? (c = !0, s = r, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
1966
|
-
if (s && (s = c || o), (l === 1 || Ye === t) && (He === t || Fn === t ?
|
|
1966
|
+
if (s && (s = c || o), (l === 1 || Ye === t) && (He === t || Fn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Jt(e, p) || Nr(e, p, k)) || Br(e, k) ? d = !0 : (i && Kr(e, k) || Er(e, k) || Fr(e, k) ? d = !0 : Pr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : jr(e, k, He === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Jt(e, p))), e.tag === null)
|
|
1967
1967
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1968
1968
|
else if (e.tag === "?") {
|
|
1969
1969
|
for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
|
|
1970
|
-
if (
|
|
1971
|
-
e.result =
|
|
1970
|
+
if (C = e.implicitTypes[u], C.resolve(e.result)) {
|
|
1971
|
+
e.result = C.construct(e.result), e.tag = C.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1972
1972
|
break;
|
|
1973
1973
|
}
|
|
1974
1974
|
} else if (e.tag !== "!") {
|
|
1975
|
-
if (
|
|
1976
|
-
|
|
1975
|
+
if (Ce.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1976
|
+
C = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1977
1977
|
else
|
|
1978
|
-
for (
|
|
1978
|
+
for (C = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, h = g.length; u < h; u += 1)
|
|
1979
1979
|
if (e.tag.slice(0, g[u].tag.length) === g[u].tag) {
|
|
1980
|
-
|
|
1980
|
+
C = g[u];
|
|
1981
1981
|
break;
|
|
1982
1982
|
}
|
|
1983
|
-
|
|
1983
|
+
C || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && C.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + C.kind + '", not "' + e.kind + '"'), C.resolve(e.result, e.tag) ? (e.result = C.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1984
1984
|
}
|
|
1985
1985
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1986
1986
|
}
|
|
@@ -2004,7 +2004,7 @@ function Ur(e) {
|
|
|
2004
2004
|
i = e.input.charCodeAt(++e.position);
|
|
2005
2005
|
o.push(e.input.slice(t, e.position));
|
|
2006
2006
|
}
|
|
2007
|
-
i !== 0 && wt(e),
|
|
2007
|
+
i !== 0 && wt(e), Ce.call(Yt, a) ? Yt[a](e, a, o) : ze(e, 'unknown document directive "' + a + '"');
|
|
2008
2008
|
}
|
|
2009
2009
|
if (ee(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, ee(e, !0, -1)) : r && T(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Ye, !1, !0), ee(e, !0, -1), e.checkLineBreaks && Ar.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
|
|
2010
2010
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
|
|
@@ -2100,7 +2100,7 @@ function di(e) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
var pi = 1, Pe = 2;
|
|
2102
2102
|
function fi(e) {
|
|
2103
|
-
this.schema = e.schema ||
|
|
2103
|
+
this.schema = e.schema || kt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ci(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Pe : pi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2104
2104
|
}
|
|
2105
2105
|
function Wt(e, n) {
|
|
2106
2106
|
for (var t = ne.repeat(" ", n), a = 0, o = -1, r = "", i, s = e.length; a < s; )
|
|
@@ -2155,25 +2155,25 @@ function Wn(e) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
var Zn = 1, ft = 2, Qn = 3, Xn = 4, Oe = 5;
|
|
2157
2157
|
function hi(e, n, t, a, o, r, i, s) {
|
|
2158
|
-
var l, c = 0, d = null, u = !1, h = !1, g = a !== -1,
|
|
2158
|
+
var l, c = 0, d = null, u = !1, h = !1, g = a !== -1, C = -1, k = gi(Ke(e, 0)) && yi(Ke(e, e.length - 1));
|
|
2159
2159
|
if (n || i)
|
|
2160
2160
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2161
2161
|
if (c = Ke(e, l), !Ue(c))
|
|
2162
2162
|
return Oe;
|
|
2163
|
-
|
|
2163
|
+
k = k && Qt(c, d, s), d = c;
|
|
2164
2164
|
}
|
|
2165
2165
|
else {
|
|
2166
2166
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2167
2167
|
if (c = Ke(e, l), c === Le)
|
|
2168
2168
|
u = !0, g && (h = h || // Foldable line = too long, and not more-indented.
|
|
2169
|
-
l -
|
|
2169
|
+
l - C - 1 > a && e[C + 1] !== " ", C = l);
|
|
2170
2170
|
else if (!Ue(c))
|
|
2171
2171
|
return Oe;
|
|
2172
|
-
|
|
2172
|
+
k = k && Qt(c, d, s), d = c;
|
|
2173
2173
|
}
|
|
2174
|
-
h = h || g && l -
|
|
2174
|
+
h = h || g && l - C - 1 > a && e[C + 1] !== " ";
|
|
2175
2175
|
}
|
|
2176
|
-
return !u && !h ?
|
|
2176
|
+
return !u && !h ? k && !i && !o(e) ? Zn : r === Pe ? Oe : ft : t > 9 && Wn(e) ? Oe : i ? r === Pe ? Oe : ft : h ? Xn : Qn;
|
|
2177
2177
|
}
|
|
2178
2178
|
function vi(e, n, t, a, o) {
|
|
2179
2179
|
e.dump = function() {
|
|
@@ -2204,7 +2204,7 @@ function vi(e, n, t, a, o) {
|
|
|
2204
2204
|
case Xn:
|
|
2205
2205
|
return ">" + Xt(n, e.indent) + en(Wt(bi(n, i), r));
|
|
2206
2206
|
case Oe:
|
|
2207
|
-
return '"' +
|
|
2207
|
+
return '"' + Ci(n) + '"';
|
|
2208
2208
|
default:
|
|
2209
2209
|
throw new se("impossible error: invalid scalar style");
|
|
2210
2210
|
}
|
|
@@ -2245,12 +2245,12 @@ function tn(e, n) {
|
|
|
2245
2245
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2246
2246
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function Ci(e) {
|
|
2249
2249
|
for (var n = "", t = 0, a, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2250
2250
|
t = Ke(e, o), a = ie[t], !a && Ue(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += a || di(t);
|
|
2251
2251
|
return n;
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function ki(e, n, t) {
|
|
2254
2254
|
var a = "", o = e.tag, r, i, s;
|
|
2255
2255
|
for (r = 0, i = t.length; r < i; r += 1)
|
|
2256
2256
|
s = t[r], e.replacer && (s = e.replacer.call(t, String(r), s)), (he(e, n, s, !1, !1) || typeof s > "u" && he(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2308,7 +2308,7 @@ function he(e, n, t, a, o, r, i) {
|
|
|
2308
2308
|
if (d && h && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2309
2309
|
a && Object.keys(e.dump).length !== 0 ? (_i(e, n, e.dump, o), h && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2310
2310
|
else if (s === "[object Array]")
|
|
2311
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? nn(e, n - 1, e.dump, o) : nn(e, n, e.dump, o), h && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2311
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? nn(e, n - 1, e.dump, o) : nn(e, n, e.dump, o), h && (e.dump = "&ref_" + u + e.dump)) : (ki(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2312
2312
|
else if (s === "[object String]")
|
|
2313
2313
|
e.tag !== "?" && vi(e, e.dump, n, r, l);
|
|
2314
2314
|
else {
|
|
@@ -2356,15 +2356,15 @@ function At(e, n) {
|
|
|
2356
2356
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2357
2357
|
};
|
|
2358
2358
|
}
|
|
2359
|
-
var Ti = re, $i = gn, Mi = bn, Oi = In, ji = An, Ei =
|
|
2359
|
+
var Ti = re, $i = gn, Mi = bn, Oi = In, ji = An, Ei = kt, Fi = Rn.load, Bi = Rn.loadAll, Ki = xi.dump, Ni = se, qi = {
|
|
2360
2360
|
binary: Mn,
|
|
2361
2361
|
float: _n,
|
|
2362
2362
|
map: vn,
|
|
2363
|
-
null:
|
|
2363
|
+
null: Cn,
|
|
2364
2364
|
pairs: jn,
|
|
2365
2365
|
set: En,
|
|
2366
2366
|
timestamp: Tn,
|
|
2367
|
-
bool:
|
|
2367
|
+
bool: kn,
|
|
2368
2368
|
int: wn,
|
|
2369
2369
|
merge: $n,
|
|
2370
2370
|
omap: On,
|
|
@@ -2425,7 +2425,7 @@ const Vi = {
|
|
|
2425
2425
|
},
|
|
2426
2426
|
setup(e) {
|
|
2427
2427
|
const n = e, t = Ze(), { i18n: { t: a } } = oe.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), r = F(""), i = F("");
|
|
2428
|
-
return
|
|
2428
|
+
return ke(() => n.format, (s) => {
|
|
2429
2429
|
s === "json" ? r.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ri.dump(n.record));
|
|
2430
2430
|
}, { immediate: !0 }), (s, l) => {
|
|
2431
2431
|
const c = q("KCodeBlock");
|
|
@@ -2475,14 +2475,13 @@ const Vi = {
|
|
|
2475
2475
|
id: "config-card-codeblock",
|
|
2476
2476
|
code: i.value,
|
|
2477
2477
|
language: "yaml",
|
|
2478
|
-
"show-line-number-links": !0,
|
|
2479
2478
|
theme: "dark"
|
|
2480
2479
|
}, null, 8, ["code"])
|
|
2481
2480
|
])) : G("", !0)
|
|
2482
2481
|
], 64);
|
|
2483
2482
|
};
|
|
2484
2483
|
}
|
|
2485
|
-
}), Ji = /* @__PURE__ */ me(zi, [["__scopeId", "data-v-
|
|
2484
|
+
}), Ji = /* @__PURE__ */ me(zi, [["__scopeId", "data-v-6c45e9e4"]]), on = "24px", Wi = (e, n) => {
|
|
2486
2485
|
const t = e.__vccOpts || e;
|
|
2487
2486
|
for (const [a, o] of n)
|
|
2488
2487
|
t[a] = o;
|
|
@@ -2722,7 +2721,7 @@ const Vi = {
|
|
|
2722
2721
|
// the last property displayed
|
|
2723
2722
|
section: ue.Basic
|
|
2724
2723
|
}
|
|
2725
|
-
}, g = F(!1),
|
|
2724
|
+
}, g = F(!1), C = F(!1), k = F(""), p = F(), b = O(() => {
|
|
2726
2725
|
var w, I, L;
|
|
2727
2726
|
if (!p.value)
|
|
2728
2727
|
return [];
|
|
@@ -2789,10 +2788,10 @@ const Vi = {
|
|
|
2789
2788
|
}), P = (w) => {
|
|
2790
2789
|
p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2791
2790
|
};
|
|
2792
|
-
return
|
|
2791
|
+
return ke(g, (w) => {
|
|
2793
2792
|
n("loading", w);
|
|
2794
2793
|
}, { immediate: !0 }), Qe(async () => {
|
|
2795
|
-
|
|
2794
|
+
C.value = !1, g.value = !0;
|
|
2796
2795
|
try {
|
|
2797
2796
|
const { data: w } = await l.get(E.value);
|
|
2798
2797
|
if (a.dataKey)
|
|
@@ -2807,7 +2806,7 @@ const Vi = {
|
|
|
2807
2806
|
}), n("fetch:success", w);
|
|
2808
2807
|
} catch (w) {
|
|
2809
2808
|
const I = i(w);
|
|
2810
|
-
|
|
2809
|
+
k.value = I.startsWith("code") ? r("baseConfigCard.errors.load") : I, C.value = !0, n("fetch:error", w);
|
|
2811
2810
|
} finally {
|
|
2812
2811
|
g.value = !1;
|
|
2813
2812
|
}
|
|
@@ -2853,7 +2852,7 @@ const Vi = {
|
|
|
2853
2852
|
})) : G("", !0),
|
|
2854
2853
|
e.config.jsonYamlEnabled ? G("", !0) : (f(), U(K, { key: 3 }, {
|
|
2855
2854
|
default: y(({ copyToClipboard: H }) => [
|
|
2856
|
-
!g.value && !
|
|
2855
|
+
!g.value && !C.value ? (f(), U(S, {
|
|
2857
2856
|
key: 0,
|
|
2858
2857
|
appearance: "btn-link",
|
|
2859
2858
|
"data-testid": "json-copy-button",
|
|
@@ -2875,13 +2874,13 @@ const Vi = {
|
|
|
2875
2874
|
"data-testid": "config-card-loader",
|
|
2876
2875
|
"table-columns": 2,
|
|
2877
2876
|
type: "table"
|
|
2878
|
-
})) :
|
|
2877
|
+
})) : C.value ? (f(), U(R, {
|
|
2879
2878
|
key: 1,
|
|
2880
2879
|
"data-testid": "config-card-fetch-error",
|
|
2881
2880
|
"is-error": ""
|
|
2882
2881
|
}, {
|
|
2883
2882
|
message: y(() => [
|
|
2884
|
-
B("h3", null, M(
|
|
2883
|
+
B("h3", null, M(k.value), 1)
|
|
2885
2884
|
]),
|
|
2886
2885
|
_: 1
|
|
2887
2886
|
})) : G("", !0),
|
|
@@ -3013,13 +3012,13 @@ const Vi = {
|
|
|
3013
3012
|
let v = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3014
3013
|
return a.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (b = a.config) != null && b.workspace ? `/${a.config.workspace}` : "")), v = v.replace(/{id}/gi, a.editId), v;
|
|
3015
3014
|
}), g = () => {
|
|
3016
|
-
a.config.cancelRoute ? o.push(a.config.cancelRoute) :
|
|
3017
|
-
}, k = () => {
|
|
3018
|
-
n("cancel");
|
|
3015
|
+
a.config.cancelRoute ? o.push(a.config.cancelRoute) : C();
|
|
3019
3016
|
}, C = () => {
|
|
3017
|
+
n("cancel");
|
|
3018
|
+
}, k = () => {
|
|
3020
3019
|
u.value || n("submit");
|
|
3021
3020
|
};
|
|
3022
|
-
return
|
|
3021
|
+
return ke(() => l.value, (p) => {
|
|
3023
3022
|
n("loading", p);
|
|
3024
3023
|
}, { immediate: !0 }), Qe(async () => {
|
|
3025
3024
|
if (a.editId)
|
|
@@ -3054,8 +3053,8 @@ const Vi = {
|
|
|
3054
3053
|
}, 8, ["cta-text"])) : (f(), x("form", {
|
|
3055
3054
|
key: 2,
|
|
3056
3055
|
"data-testid": "form-content",
|
|
3057
|
-
onReset: Ge(
|
|
3058
|
-
onSubmit: Ge(
|
|
3056
|
+
onReset: Ge(C, ["prevent"]),
|
|
3057
|
+
onSubmit: Ge(k, ["prevent"])
|
|
3059
3058
|
}, [
|
|
3060
3059
|
J(p.$slots, "default", {}, void 0, !0),
|
|
3061
3060
|
e.errorMessage ? (f(), U(V, {
|
|
@@ -3110,42 +3109,42 @@ const Vi = {
|
|
|
3110
3109
|
},
|
|
3111
3110
|
setup(e) {
|
|
3112
3111
|
const n = e, t = O(() => {
|
|
3113
|
-
var
|
|
3114
|
-
return ((
|
|
3112
|
+
var k;
|
|
3113
|
+
return ((k = n.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3115
3114
|
}), a = O(() => {
|
|
3116
|
-
var
|
|
3117
|
-
return ((
|
|
3115
|
+
var k;
|
|
3116
|
+
return ((k = t.value) == null ? void 0 : k.querySelector('[role="button"]')) || null;
|
|
3118
3117
|
}), o = O(() => {
|
|
3119
|
-
var
|
|
3120
|
-
const b = (
|
|
3118
|
+
var k, p;
|
|
3119
|
+
const b = (k = n.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3121
3120
|
return b ? ((p = b[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3122
3121
|
});
|
|
3123
3122
|
let r;
|
|
3124
3123
|
const i = () => {
|
|
3125
3124
|
r && (r.disconnect(), r = void 0);
|
|
3126
3125
|
}, s = () => {
|
|
3127
|
-
var
|
|
3128
|
-
c.value = ((
|
|
3129
|
-
}, l = F({}), c = F(0), d = F(0), u = F(""), h = O(() => [a.value, t.value]), g =
|
|
3126
|
+
var k, p, b;
|
|
3127
|
+
c.value = ((k = a.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((b = l.value) == null ? void 0 : b.innerText) || "";
|
|
3128
|
+
}, l = F({}), c = F(0), d = F(0), u = F(""), h = O(() => [a.value, t.value]), g = ke(
|
|
3130
3129
|
h,
|
|
3131
|
-
(
|
|
3130
|
+
(k) => {
|
|
3132
3131
|
if (o.value && (i(), "ResizeObserver" in window && window)) {
|
|
3133
3132
|
r = new ResizeObserver((p) => {
|
|
3134
3133
|
window.requestAnimationFrame(() => {
|
|
3135
3134
|
!Array.isArray(p) || !p.length || s();
|
|
3136
3135
|
});
|
|
3137
3136
|
});
|
|
3138
|
-
for (const p of
|
|
3137
|
+
for (const p of k)
|
|
3139
3138
|
p && r.observe(p);
|
|
3140
3139
|
}
|
|
3141
3140
|
},
|
|
3142
3141
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3143
|
-
),
|
|
3142
|
+
), C = O(() => o.value ? c.value > d.value : !1);
|
|
3144
3143
|
return ca(() => {
|
|
3145
3144
|
s();
|
|
3146
3145
|
}), da(() => {
|
|
3147
3146
|
g();
|
|
3148
|
-
}), (
|
|
3147
|
+
}), (k, p) => {
|
|
3149
3148
|
const b = q("KTooltip");
|
|
3150
3149
|
return f(), x("span", {
|
|
3151
3150
|
ref_key: "contentRef",
|
|
@@ -3154,24 +3153,24 @@ const Vi = {
|
|
|
3154
3153
|
}, [
|
|
3155
3154
|
o.value ? (f(), x("span", ys, [
|
|
3156
3155
|
j(b, {
|
|
3157
|
-
disabled: !
|
|
3156
|
+
disabled: !C.value,
|
|
3158
3157
|
label: u.value,
|
|
3159
3158
|
"max-width": "300",
|
|
3160
3159
|
placement: "bottomStart"
|
|
3161
3160
|
}, {
|
|
3162
3161
|
default: y(() => [
|
|
3163
|
-
J(
|
|
3162
|
+
J(k.$slots, "default", {}, void 0, !0)
|
|
3164
3163
|
]),
|
|
3165
3164
|
_: 3
|
|
3166
3165
|
}, 8, ["disabled", "label"])
|
|
3167
|
-
])) : J(
|
|
3166
|
+
])) : J(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3168
3167
|
], 512);
|
|
3169
3168
|
};
|
|
3170
3169
|
}
|
|
3171
|
-
}), vs = /* @__PURE__ */ me(hs, [["__scopeId", "data-v-f8a220e9"]]), bs = { class: "toolbar-container" },
|
|
3170
|
+
}), vs = /* @__PURE__ */ me(hs, [["__scopeId", "data-v-f8a220e9"]]), bs = { class: "toolbar-container" }, Cs = {
|
|
3172
3171
|
key: 0,
|
|
3173
3172
|
class: "toolbar-button-container"
|
|
3174
|
-
},
|
|
3173
|
+
}, ks = ["data-testid"], ws = /* @__PURE__ */ te({
|
|
3175
3174
|
__name: "EntityBaseTable",
|
|
3176
3175
|
props: {
|
|
3177
3176
|
// table header configuration
|
|
@@ -3316,16 +3315,16 @@ const Vi = {
|
|
|
3316
3315
|
n("clear-search-input");
|
|
3317
3316
|
}, g = O(() => t.disableRowClick ? void 0 : (A, V) => {
|
|
3318
3317
|
n("click:row", V);
|
|
3319
|
-
}),
|
|
3318
|
+
}), C = (A) => {
|
|
3320
3319
|
n("sort", A);
|
|
3321
|
-
}, { setTablePreferences:
|
|
3320
|
+
}, { setTablePreferences: k, getTablePreferences: p } = _a(), b = O(() => {
|
|
3322
3321
|
const A = p(t.preferencesStorageKey);
|
|
3323
3322
|
return {
|
|
3324
3323
|
...t.initialFetcherParams,
|
|
3325
3324
|
...A
|
|
3326
3325
|
};
|
|
3327
3326
|
}), v = (A) => {
|
|
3328
|
-
t.preferencesStorageKey &&
|
|
3327
|
+
t.preferencesStorageKey && k(t.preferencesStorageKey, A);
|
|
3329
3328
|
};
|
|
3330
3329
|
return (A, V) => {
|
|
3331
3330
|
const _ = q("KIcon"), E = q("KButton"), P = q("KDropdownMenu"), w = q("KTable"), I = q("KCard");
|
|
@@ -3362,13 +3361,13 @@ const Vi = {
|
|
|
3362
3361
|
"search-input": e.query,
|
|
3363
3362
|
onKtableEmptyStateCtaClicked: u,
|
|
3364
3363
|
"onRow:click": g.value,
|
|
3365
|
-
onSort: V[0] || (V[0] = (L) =>
|
|
3364
|
+
onSort: V[0] || (V[0] = (L) => C(L)),
|
|
3366
3365
|
"onUpdate:tablePreferences": v
|
|
3367
3366
|
}, ve({
|
|
3368
3367
|
toolbar: y(({ state: L }) => [
|
|
3369
3368
|
Ve(B("div", bs, [
|
|
3370
3369
|
J(A.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3371
|
-
A.$slots["toolbar-button"] ? (f(), x("div",
|
|
3370
|
+
A.$slots["toolbar-button"] ? (f(), x("div", Cs, [
|
|
3372
3371
|
J(A.$slots, "toolbar-button", {}, void 0, !0)
|
|
3373
3372
|
])) : G("", !0)
|
|
3374
3373
|
], 512), [
|
|
@@ -3409,7 +3408,7 @@ const Vi = {
|
|
|
3409
3408
|
]),
|
|
3410
3409
|
_: 2
|
|
3411
3410
|
}, 1032, ["width"])
|
|
3412
|
-
], 8,
|
|
3411
|
+
], 8, ks)
|
|
3413
3412
|
]),
|
|
3414
3413
|
_: 2
|
|
3415
3414
|
}, [
|
|
@@ -3613,7 +3612,7 @@ const Vi = {
|
|
|
3613
3612
|
value: b
|
|
3614
3613
|
}));
|
|
3615
3614
|
});
|
|
3616
|
-
|
|
3615
|
+
ke(() => t.modelValue, (p) => {
|
|
3617
3616
|
r.value = {}, new URLSearchParams(p).forEach((b, v) => {
|
|
3618
3617
|
r.value[v] = b;
|
|
3619
3618
|
});
|
|
@@ -3635,10 +3634,10 @@ const Vi = {
|
|
|
3635
3634
|
r.value = {
|
|
3636
3635
|
...r.value,
|
|
3637
3636
|
[p]: ""
|
|
3638
|
-
},
|
|
3639
|
-
},
|
|
3640
|
-
r.value = {},
|
|
3641
|
-
},
|
|
3637
|
+
}, k();
|
|
3638
|
+
}, C = () => {
|
|
3639
|
+
r.value = {}, k(!0);
|
|
3640
|
+
}, k = (p = !1) => {
|
|
3642
3641
|
const b = Object.keys(r.value).reduce((v, A) => (r.value[A] && (v[A] = `${r.value[A]}`), v), {});
|
|
3643
3642
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(b).toString());
|
|
3644
3643
|
};
|
|
@@ -3723,7 +3722,7 @@ const Vi = {
|
|
|
3723
3722
|
appearance: "btn-link",
|
|
3724
3723
|
"data-testid": "apply-filter",
|
|
3725
3724
|
size: "small",
|
|
3726
|
-
onClick: b[0] || (b[0] = (D) =>
|
|
3725
|
+
onClick: b[0] || (b[0] = (D) => k(!0))
|
|
3727
3726
|
}, {
|
|
3728
3727
|
default: y(() => [
|
|
3729
3728
|
W(M(m(a)("filter.applyButtonText")), 1)
|
|
@@ -3748,7 +3747,7 @@ const Vi = {
|
|
|
3748
3747
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3749
3748
|
]),
|
|
3750
3749
|
actionButton: y(() => [
|
|
3751
|
-
j(A, { onClick:
|
|
3750
|
+
j(A, { onClick: C }, {
|
|
3752
3751
|
default: y(() => [
|
|
3753
3752
|
W(M(m(a)("filter.clearAllButtonText")), 1)
|
|
3754
3753
|
]),
|
|
@@ -3785,7 +3784,7 @@ const Vi = {
|
|
|
3785
3784
|
},
|
|
3786
3785
|
setup(e) {
|
|
3787
3786
|
const n = e, t = F(void 0), a = O(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
3788
|
-
return
|
|
3787
|
+
return ke(() => n.authFunction, async () => {
|
|
3789
3788
|
t.value = await n.authFunction();
|
|
3790
3789
|
}, { immediate: !0 }), (o, r) => a.value ? J(o.$slots, "default", {
|
|
3791
3790
|
key: 0,
|
|
@@ -3851,7 +3850,7 @@ const Vi = {
|
|
|
3851
3850
|
])
|
|
3852
3851
|
], 2));
|
|
3853
3852
|
}
|
|
3854
|
-
}), zs = /* @__PURE__ */ me(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: Js, useErrors: Ws, useFetchUrlBuilder:
|
|
3853
|
+
}), zs = /* @__PURE__ */ me(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: Js, useErrors: Ws, useFetchUrlBuilder: Cl, useFetcher: Zs, useDebouncedFilter: Qs, useStringHelpers: kl, useHelpers: wl, useGatewayFeatureSupported: _l } = oe;
|
|
3855
3854
|
const Xs = { class: "add-consumer-form-container" }, el = { class: "add-consumer-form-cta" }, tl = { class: "select-item-label" }, nl = {
|
|
3856
3855
|
key: 0,
|
|
3857
3856
|
class: "select-item-desc"
|
|
@@ -3893,7 +3892,7 @@ const Xs = { class: "add-consumer-form-container" }, el = { class: "add-consumer
|
|
|
3893
3892
|
fetchedItemsKey: "data",
|
|
3894
3893
|
searchKeys: ["username", "id"]
|
|
3895
3894
|
}
|
|
3896
|
-
), h = (S) => S, g = O(() => c.value ? a("consumers.errors.general") : ""),
|
|
3895
|
+
), h = (S) => S, g = O(() => c.value ? a("consumers.errors.general") : ""), C = F(0), k = O(() => l.value === void 0), p = O(() => u.value.map((S) => ({
|
|
3897
3896
|
label: S.username || S.customId,
|
|
3898
3897
|
value: S.id,
|
|
3899
3898
|
selected: r.value.includes(S.id),
|
|
@@ -3901,7 +3900,7 @@ const Xs = { class: "add-consumer-form-container" }, el = { class: "add-consumer
|
|
|
3901
3900
|
// we need this to determine whether or not to show the description text
|
|
3902
3901
|
}))), b = (S) => {
|
|
3903
3902
|
var N;
|
|
3904
|
-
const K =
|
|
3903
|
+
const K = k.value ? u.value.find((R) => R.id === S) : (N = l.value) == null ? void 0 : N.find((R) => R.id === S);
|
|
3905
3904
|
return K ? K.username || K.custom_id : S;
|
|
3906
3905
|
}, v = () => {
|
|
3907
3906
|
_.value = "", A.value = [], I.value = [], n("cancel");
|
|
@@ -3943,8 +3942,8 @@ const Xs = { class: "add-consumer-form-container" }, el = { class: "add-consumer
|
|
|
3943
3942
|
return (N = K.reason) == null ? void 0 : N.message;
|
|
3944
3943
|
}).filter(Boolean);
|
|
3945
3944
|
};
|
|
3946
|
-
return
|
|
3947
|
-
|
|
3945
|
+
return ke(p, () => {
|
|
3946
|
+
C.value++;
|
|
3948
3947
|
}, { immediate: !0, deep: !0 }), Qe(async () => {
|
|
3949
3948
|
await d();
|
|
3950
3949
|
}), (S, K) => {
|
|
@@ -3966,7 +3965,7 @@ const Xs = { class: "add-consumer-form-container" }, el = { class: "add-consumer
|
|
|
3966
3965
|
"onUpdate:modelValue": K[0] || (K[0] = (H) => r.value = H),
|
|
3967
3966
|
autosuggest: "",
|
|
3968
3967
|
"data-testid": "add-consumers-multiselect",
|
|
3969
|
-
"dropdown-footer-text":
|
|
3968
|
+
"dropdown-footer-text": k.value ? m(a)("consumers.consumer_groups.add.footer") : void 0,
|
|
3970
3969
|
items: p.value,
|
|
3971
3970
|
label: m(a)("consumers.consumer_groups.add.consumers_label"),
|
|
3972
3971
|
loading: m(s),
|
|
@@ -4060,7 +4059,7 @@ const xt = (e, n) => {
|
|
|
4060
4059
|
var Y, ae, fe, we;
|
|
4061
4060
|
let $ = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
|
|
4062
4061
|
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ae = t.config) == null ? void 0 : ae.consumerGroupId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), $;
|
|
4063
|
-
}),
|
|
4062
|
+
}), C = F(""), k = O(() => {
|
|
4064
4063
|
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4065
4064
|
return $ ? {
|
|
4066
4065
|
isExactMatch: $,
|
|
@@ -4074,7 +4073,7 @@ const xt = (e, n) => {
|
|
|
4074
4073
|
schema: t.config.filterSchema
|
|
4075
4074
|
};
|
|
4076
4075
|
}), p = O(() => l.value ? "consumers" : void 0), { fetcher: b, fetcherState: v } = Zs(t.config, g.value, p.value), A = () => {
|
|
4077
|
-
|
|
4076
|
+
C.value = "";
|
|
4078
4077
|
}, V = () => {
|
|
4079
4078
|
s.value++;
|
|
4080
4079
|
}, _ = ($) => $ ?? "-", E = F(""), P = ($, Y) => {
|
|
@@ -4159,7 +4158,7 @@ const xt = (e, n) => {
|
|
|
4159
4158
|
}
|
|
4160
4159
|
}
|
|
4161
4160
|
};
|
|
4162
|
-
|
|
4161
|
+
ke(v, ($) => {
|
|
4163
4162
|
if ($.status === _e.Error) {
|
|
4164
4163
|
E.value = o("consumers.errors.general"), n("error", $.error);
|
|
4165
4164
|
return;
|
|
@@ -4189,7 +4188,7 @@ const xt = (e, n) => {
|
|
|
4189
4188
|
"fetcher-cache-key": s.value,
|
|
4190
4189
|
"pagination-type": "offset",
|
|
4191
4190
|
"preferences-storage-key": "kong-ui-entities-consumers-list",
|
|
4192
|
-
query:
|
|
4191
|
+
query: C.value,
|
|
4193
4192
|
"row-attributes": h,
|
|
4194
4193
|
"table-headers": m(u),
|
|
4195
4194
|
onClearSearchInput: A,
|
|
@@ -4200,9 +4199,9 @@ const xt = (e, n) => {
|
|
|
4200
4199
|
"toolbar-filter": y(() => [
|
|
4201
4200
|
l.value ? G("", !0) : (f(), U(m(Us), {
|
|
4202
4201
|
key: 0,
|
|
4203
|
-
modelValue:
|
|
4204
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (z) =>
|
|
4205
|
-
config:
|
|
4202
|
+
modelValue: C.value,
|
|
4203
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (z) => C.value = z),
|
|
4204
|
+
config: k.value
|
|
4206
4205
|
}, null, 8, ["modelValue", "config"]))
|
|
4207
4206
|
]),
|
|
4208
4207
|
"toolbar-button": y(() => [
|
|
@@ -4422,12 +4421,12 @@ const Il = /* @__PURE__ */ xt(ul, [["__scopeId", "data-v-45929bbf"]]), cl = { cl
|
|
|
4422
4421
|
n("loading", _);
|
|
4423
4422
|
}, g = (_) => {
|
|
4424
4423
|
n("error", _);
|
|
4425
|
-
},
|
|
4424
|
+
}, C = (_) => {
|
|
4426
4425
|
var P, w, I;
|
|
4427
4426
|
l.fields.username = ((P = _ == null ? void 0 : _.item) == null ? void 0 : P.username) || (_ == null ? void 0 : _.username) || "", l.fields.customId = ((w = _ == null ? void 0 : _.item) == null ? void 0 : w.custom_id) || (_ == null ? void 0 : _.custom_id) || "";
|
|
4428
4427
|
const E = ((I = _ == null ? void 0 : _.item) == null ? void 0 : I.tags) || (_ == null ? void 0 : _.tags) || [];
|
|
4429
4428
|
l.fields.tags = (E == null ? void 0 : E.join(", ")) || "", Object.assign(c, l.fields);
|
|
4430
|
-
},
|
|
4429
|
+
}, k = O(() => t.consumerId ? ut.Edit : ut.Create), p = (_) => {
|
|
4431
4430
|
var P, w, I, L, D, S;
|
|
4432
4431
|
let E = `${(P = t.config) == null ? void 0 : P.apiBaseUrl}${Se.form[(w = t.config) == null ? void 0 : w.app][_]}`;
|
|
4433
4432
|
return ((I = t.config) == null ? void 0 : I.app) === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((L = t.config) == null ? void 0 : L.controlPlaneId) || "") : ((D = t.config) == null ? void 0 : D.app) === "kongManager" && (E = E.replace(/\/{workspace}/gi, (S = t.config) != null && S.workspace ? `/${t.config.workspace}` : "")), E = E.replace(/{id}/gi, t.consumerId), E;
|
|
@@ -4441,7 +4440,7 @@ const Il = /* @__PURE__ */ xt(ul, [["__scopeId", "data-v-45929bbf"]]), cl = { cl
|
|
|
4441
4440
|
tags: (E = (_ = l.fields.tags.split(",")) == null ? void 0 : _.map((L) => String(L || "").trim())) == null ? void 0 : E.filter((L) => L !== "")
|
|
4442
4441
|
};
|
|
4443
4442
|
let I;
|
|
4444
|
-
await i.post(p("validate"), w),
|
|
4443
|
+
await i.post(p("validate"), w), k.value === "create" ? I = await i.post(p("create"), w) : k.value === "edit" && (I = ((P = t.config) == null ? void 0 : P.app) === "konnect" ? await i.put(p("edit"), w) : await i.patch(p("edit"), w)), C(I == null ? void 0 : I.data), n("update", I == null ? void 0 : I.data);
|
|
4445
4444
|
} catch (w) {
|
|
4446
4445
|
l.errorMessage = s(w), n("error", w);
|
|
4447
4446
|
} finally {
|
|
@@ -4460,7 +4459,7 @@ const Il = /* @__PURE__ */ xt(ul, [["__scopeId", "data-v-45929bbf"]]), cl = { cl
|
|
|
4460
4459
|
"is-readonly": l.readonly,
|
|
4461
4460
|
onCancel: u,
|
|
4462
4461
|
"onFetch:error": E[3] || (E[3] = (I) => g(I)),
|
|
4463
|
-
"onFetch:success":
|
|
4462
|
+
"onFetch:success": C,
|
|
4464
4463
|
onLoading: E[4] || (E[4] = (I) => h(I)),
|
|
4465
4464
|
onSubmit: A
|
|
4466
4465
|
}, {
|