@kong-ui-public/entities-plugins 9.7.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +172 -168
- package/dist/entities-plugins.umd.js +13 -13
- package/dist/style.css +1 -1
- package/dist/types/components/PluginList.vue.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -245,16 +245,16 @@ ${A}` : A;
|
|
|
245
245
|
if ((k == null ? void 0 : k.type) === "code")
|
|
246
246
|
break;
|
|
247
247
|
if ((k == null ? void 0 : k.type) === "blockquote") {
|
|
248
|
-
const
|
|
248
|
+
const P = k, b = P.raw + `
|
|
249
249
|
` + i.join(`
|
|
250
250
|
`), S = this.blockquote(b);
|
|
251
|
-
o[o.length - 1] = S, a = a.substring(0, a.length -
|
|
251
|
+
o[o.length - 1] = S, a = a.substring(0, a.length - P.raw.length) + S.raw, s = s.substring(0, s.length - P.text.length) + S.text;
|
|
252
252
|
break;
|
|
253
253
|
} else if ((k == null ? void 0 : k.type) === "list") {
|
|
254
|
-
const
|
|
254
|
+
const P = k, b = P.raw + `
|
|
255
255
|
` + i.join(`
|
|
256
256
|
`), S = this.list(b);
|
|
257
|
-
o[o.length - 1] = S, a = a.substring(0, a.length - k.raw.length) + S.raw, s = s.substring(0, s.length -
|
|
257
|
+
o[o.length - 1] = S, a = a.substring(0, a.length - k.raw.length) + S.raw, s = s.substring(0, s.length - P.raw.length) + S.raw, i = b.substring(o[o.length - 1].raw.length).split(`
|
|
258
258
|
`);
|
|
259
259
|
continue;
|
|
260
260
|
}
|
|
@@ -288,20 +288,20 @@ ${A}` : A;
|
|
|
288
288
|
break;
|
|
289
289
|
d = n[0], t = t.substring(d.length);
|
|
290
290
|
let A = n[2].split(`
|
|
291
|
-
`, 1)[0].replace(/^\t+/, (
|
|
292
|
-
`, 1)[0], k = !A.trim(),
|
|
293
|
-
if (this.options.pedantic ? (
|
|
291
|
+
`, 1)[0].replace(/^\t+/, (D) => " ".repeat(3 * D.length)), m = t.split(`
|
|
292
|
+
`, 1)[0], k = !A.trim(), P = 0;
|
|
293
|
+
if (this.options.pedantic ? (P = 2, u = A.trimStart()) : k ? P = n[1].length + 1 : (P = n[2].search(/[^ ]/), P = P > 4 ? 1 : P, u = A.slice(P), P += n[1].length), k && /^[ \t]*$/.test(m) && (d += m + `
|
|
294
294
|
`, t = t.substring(m.length + 1), c = !0), !c) {
|
|
295
|
-
const
|
|
295
|
+
const D = new RegExp(`^ {0,${Math.min(3, P - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), z = new RegExp(`^ {0,${Math.min(3, P - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), B = new RegExp(`^ {0,${Math.min(3, P - 1)}}(?:\`\`\`|~~~)`), f = new RegExp(`^ {0,${Math.min(3, P - 1)}}#`), M = new RegExp(`^ {0,${Math.min(3, P - 1)}}<[a-z].*>`, "i");
|
|
296
296
|
for (; t; ) {
|
|
297
297
|
const h = t.split(`
|
|
298
298
|
`, 1)[0];
|
|
299
299
|
let R;
|
|
300
|
-
if (m = h, this.options.pedantic ? (m = m.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), R = m) : R = m.replace(/\t/g, " "), B.test(m) || f.test(m) || M.test(m) ||
|
|
300
|
+
if (m = h, this.options.pedantic ? (m = m.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), R = m) : R = m.replace(/\t/g, " "), B.test(m) || f.test(m) || M.test(m) || D.test(m) || z.test(m))
|
|
301
301
|
break;
|
|
302
|
-
if (R.search(/[^ ]/) >=
|
|
302
|
+
if (R.search(/[^ ]/) >= P || !m.trim())
|
|
303
303
|
u += `
|
|
304
|
-
` + R.slice(
|
|
304
|
+
` + R.slice(P);
|
|
305
305
|
else {
|
|
306
306
|
if (k || A.replace(/\t/g, " ").search(/[^ ]/) >= 4 || B.test(A) || f.test(A) || z.test(A))
|
|
307
307
|
break;
|
|
@@ -309,7 +309,7 @@ ${A}` : A;
|
|
|
309
309
|
` + m;
|
|
310
310
|
}
|
|
311
311
|
!k && !m.trim() && (k = !0), d += h + `
|
|
312
|
-
`, t = t.substring(h.length + 1), A = R.slice(
|
|
312
|
+
`, t = t.substring(h.length + 1), A = R.slice(P);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
s.loose || (l ? s.loose = !0 : /\n[ \t]*\n[ \t]*$/.test(d) && (l = !0));
|
|
@@ -522,12 +522,12 @@ ${A}` : A;
|
|
|
522
522
|
tokens: this.lexer.inlineTokens(b)
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
const
|
|
525
|
+
const P = k.slice(2, -2);
|
|
526
526
|
return {
|
|
527
527
|
type: "strong",
|
|
528
528
|
raw: k,
|
|
529
|
-
text:
|
|
530
|
-
tokens: this.lexer.inlineTokens(
|
|
529
|
+
text: P,
|
|
530
|
+
tokens: this.lexer.inlineTokens(P)
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -2109,7 +2109,7 @@ function Vs() {
|
|
|
2109
2109
|
const { capitalize: e } = Pi(), t = ["methods", "logout_methods"];
|
|
2110
2110
|
return {
|
|
2111
2111
|
setFieldType: (u, A, m) => {
|
|
2112
|
-
var k,
|
|
2112
|
+
var k, P, b;
|
|
2113
2113
|
if (!(!u || !A || !m))
|
|
2114
2114
|
switch (m.type) {
|
|
2115
2115
|
case "boolean":
|
|
@@ -2137,7 +2137,7 @@ function Vs() {
|
|
|
2137
2137
|
t.includes(A) ? u[A] = {
|
|
2138
2138
|
type: Ne.BadgeMethod,
|
|
2139
2139
|
...u[A]
|
|
2140
|
-
} : ((
|
|
2140
|
+
} : ((P = m.elements) == null ? void 0 : P.type) === "string" ? m.encrypted ? u[A] = {
|
|
2141
2141
|
type: Ne.RedactedArray,
|
|
2142
2142
|
...u[A]
|
|
2143
2143
|
} : u[A] = {
|
|
@@ -2167,10 +2167,10 @@ function Vs() {
|
|
|
2167
2167
|
const A = {};
|
|
2168
2168
|
for (const m in u) {
|
|
2169
2169
|
const k = m.split(".");
|
|
2170
|
-
k.reduce((
|
|
2170
|
+
k.reduce((P, b, S) => P[b] || // If current key in acc is the next
|
|
2171
2171
|
// item in the split array (dot notation)
|
|
2172
2172
|
// set its value
|
|
2173
|
-
(
|
|
2173
|
+
(P[b] = isNaN(k[S + 1]) ? k.length - 1 === S ? u[m] : {} : []), A);
|
|
2174
2174
|
}
|
|
2175
2175
|
return A;
|
|
2176
2176
|
},
|
|
@@ -2191,8 +2191,8 @@ function Vs() {
|
|
|
2191
2191
|
getToggleVisibility: (u, A) => {
|
|
2192
2192
|
var m, k;
|
|
2193
2193
|
if (u && A) {
|
|
2194
|
-
const
|
|
2195
|
-
return A >
|
|
2194
|
+
const P = (k = (m = window == null ? void 0 : window.getComputedStyle(u)) == null ? void 0 : m.getPropertyValue("grid-template-columns")) == null ? void 0 : k.split(" ").length;
|
|
2195
|
+
return A > P;
|
|
2196
2196
|
}
|
|
2197
2197
|
return !0;
|
|
2198
2198
|
}
|
|
@@ -4335,12 +4335,12 @@ function bn(e, t, n, i, a, s) {
|
|
|
4335
4335
|
return k;
|
|
4336
4336
|
s.set(e, o), FA(e) ? e.forEach(function(S) {
|
|
4337
4337
|
o.add(bn(S, t, n, S, e, s));
|
|
4338
|
-
}) : HA(e) && e.forEach(function(S,
|
|
4339
|
-
o.set(
|
|
4338
|
+
}) : HA(e) && e.forEach(function(S, D) {
|
|
4339
|
+
o.set(D, bn(S, t, n, D, e, s));
|
|
4340
4340
|
});
|
|
4341
|
-
var
|
|
4342
|
-
return Ns(b || e, function(S,
|
|
4343
|
-
b && (
|
|
4341
|
+
var P = d ? c ? tA : eA : c ? ri : ti, b = u ? void 0 : P(e);
|
|
4342
|
+
return Ns(b || e, function(S, D) {
|
|
4343
|
+
b && (D = S, S = e[D]), no(o, D, bn(S, t, n, D, e, s));
|
|
4344
4344
|
}), o;
|
|
4345
4345
|
}
|
|
4346
4346
|
var fg = 1, hg = 4;
|
|
@@ -4425,8 +4425,8 @@ function Mn(e, t, n) {
|
|
|
4425
4425
|
var R = i, T = a;
|
|
4426
4426
|
return i = a = void 0, d = h, o = e.apply(T, R), o;
|
|
4427
4427
|
}
|
|
4428
|
-
function
|
|
4429
|
-
return d = h, l = setTimeout(
|
|
4428
|
+
function P(h) {
|
|
4429
|
+
return d = h, l = setTimeout(D, t), u ? k(h) : o;
|
|
4430
4430
|
}
|
|
4431
4431
|
function b(h) {
|
|
4432
4432
|
var R = h - c, T = h - d, W = t - R;
|
|
@@ -4436,11 +4436,11 @@ function Mn(e, t, n) {
|
|
|
4436
4436
|
var R = h - c, T = h - d;
|
|
4437
4437
|
return c === void 0 || R >= t || R < 0 || A && T >= s;
|
|
4438
4438
|
}
|
|
4439
|
-
function
|
|
4439
|
+
function D() {
|
|
4440
4440
|
var h = pi();
|
|
4441
4441
|
if (S(h))
|
|
4442
4442
|
return z(h);
|
|
4443
|
-
l = setTimeout(
|
|
4443
|
+
l = setTimeout(D, b(h));
|
|
4444
4444
|
}
|
|
4445
4445
|
function z(h) {
|
|
4446
4446
|
return l = void 0, m && i ? k(h) : (i = a = void 0, o);
|
|
@@ -4455,11 +4455,11 @@ function Mn(e, t, n) {
|
|
|
4455
4455
|
var h = pi(), R = S(h);
|
|
4456
4456
|
if (i = arguments, a = this, c = h, R) {
|
|
4457
4457
|
if (l === void 0)
|
|
4458
|
-
return
|
|
4458
|
+
return P(c);
|
|
4459
4459
|
if (A)
|
|
4460
|
-
return clearTimeout(l), l = setTimeout(
|
|
4460
|
+
return clearTimeout(l), l = setTimeout(D, t), k(c);
|
|
4461
4461
|
}
|
|
4462
|
-
return l === void 0 && (l = setTimeout(
|
|
4462
|
+
return l === void 0 && (l = setTimeout(D, t)), o;
|
|
4463
4463
|
}
|
|
4464
4464
|
return M.cancel = B, M.flush = f, M;
|
|
4465
4465
|
}
|
|
@@ -4907,15 +4907,15 @@ function bm(e, t, n) {
|
|
|
4907
4907
|
if (!u)
|
|
4908
4908
|
return null;
|
|
4909
4909
|
for (var A = Vt(Vt({}, zn), n), m = 1; m < u.length; m++) {
|
|
4910
|
-
var k = s[m - 1],
|
|
4910
|
+
var k = s[m - 1], P = k[0], b = k[2], S = b ? b(u[m], A) : +u[m];
|
|
4911
4911
|
if (S == null)
|
|
4912
4912
|
return null;
|
|
4913
|
-
a[
|
|
4913
|
+
a[P] = S;
|
|
4914
4914
|
}
|
|
4915
4915
|
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
4916
|
-
var
|
|
4916
|
+
var D;
|
|
4917
4917
|
if (a.timezoneOffset == null) {
|
|
4918
|
-
|
|
4918
|
+
D = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
4919
4919
|
for (var z = [
|
|
4920
4920
|
["month", "getMonth"],
|
|
4921
4921
|
["day", "getDate"],
|
|
@@ -4923,11 +4923,11 @@ function bm(e, t, n) {
|
|
|
4923
4923
|
["minute", "getMinutes"],
|
|
4924
4924
|
["second", "getSeconds"]
|
|
4925
4925
|
], m = 0, B = z.length; m < B; m++)
|
|
4926
|
-
if (c[z[m][0]] && a[z[m][0]] !==
|
|
4926
|
+
if (c[z[m][0]] && a[z[m][0]] !== D[z[m][1]]())
|
|
4927
4927
|
return null;
|
|
4928
|
-
} else if (
|
|
4928
|
+
} else if (D = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
|
|
4929
4929
|
return null;
|
|
4930
|
-
return
|
|
4930
|
+
return D;
|
|
4931
4931
|
}
|
|
4932
4932
|
var en = {
|
|
4933
4933
|
format: ym,
|
|
@@ -5523,23 +5523,23 @@ function Fm(e) {
|
|
|
5523
5523
|
const t = Z([]), n = Z(null), i = (b) => Ht(b) ? Nt[b] != null ? Nt[b] : (console.warn(`'${b}' is not a validator function!`), null) : b, a = K({
|
|
5524
5524
|
get() {
|
|
5525
5525
|
var b, S;
|
|
5526
|
-
let
|
|
5527
|
-
return ke(be(e.schema, "get")) ?
|
|
5526
|
+
let D;
|
|
5527
|
+
return ke(be(e.schema, "get")) ? D = e.schema.get((b = e.model) == null ? void 0 : b.value) : D = be((S = e.model) == null ? void 0 : S.value, e.schema.model), k(D);
|
|
5528
5528
|
},
|
|
5529
5529
|
set(b) {
|
|
5530
5530
|
const S = a;
|
|
5531
|
-
b =
|
|
5531
|
+
b = P(b), ke(b) ? b(b, S) : l(b, S);
|
|
5532
5532
|
}
|
|
5533
5533
|
}), s = (b) => {
|
|
5534
5534
|
var S;
|
|
5535
5535
|
c();
|
|
5536
|
-
const
|
|
5536
|
+
const D = (S = e.schema) == null ? void 0 : S.validator, z = be(e.formOptions, "validateAsync", !1);
|
|
5537
5537
|
let B = [];
|
|
5538
|
-
if (
|
|
5538
|
+
if (D && e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
5539
5539
|
const M = [];
|
|
5540
|
-
Array.isArray(
|
|
5540
|
+
Array.isArray(D) ? Fe(D, (h) => {
|
|
5541
5541
|
M.push(i(h));
|
|
5542
|
-
}) : M.push(i(
|
|
5542
|
+
}) : M.push(i(D)), Fe(M, (h) => {
|
|
5543
5543
|
var R, T;
|
|
5544
5544
|
if (z)
|
|
5545
5545
|
B.push(h(a.value, e.schema, (R = e.model) == null ? void 0 : R.value));
|
|
@@ -5571,16 +5571,16 @@ function Fm(e) {
|
|
|
5571
5571
|
be(e.schema, "validateDebounceTime", be(e.formOptions, "validateDebounceTime", 500))
|
|
5572
5572
|
);
|
|
5573
5573
|
}, l = (b, S) => {
|
|
5574
|
-
var
|
|
5574
|
+
var D, z, B;
|
|
5575
5575
|
let f = !1;
|
|
5576
|
-
ke(e.schema.set) ? (e.schema.set((
|
|
5576
|
+
ke(e.schema.set) ? (e.schema.set((D = e.model) == null ? void 0 : D.value, b), f = !0) : e.schema.model && (d(e.schema.model, b), f = !0), f && (e.emitModelUpdated && (z = e.model) != null && z.value && e.emitModelUpdated({ value: b, model: e.schema.model }), ke(e.schema.onChanged) && e.schema.onChanged((B = e.model) == null ? void 0 : B.value, b, S, e.schema), be(e.formOptions, "validateAfterChanged", !1) === !0 && (be(e.schema, "validateDebounceTime", be(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : s()));
|
|
5577
5577
|
}, c = () => {
|
|
5578
5578
|
t.value.splice(0);
|
|
5579
5579
|
}, d = (b, S) => {
|
|
5580
|
-
var
|
|
5580
|
+
var D;
|
|
5581
5581
|
let z = b.replace(/\[(\w+)\]/g, ".$1");
|
|
5582
5582
|
z = z.replace(/^\./, "");
|
|
5583
|
-
let B = ((
|
|
5583
|
+
let B = ((D = e.model) == null ? void 0 : D.value) || {}, f = 0;
|
|
5584
5584
|
const M = z.split("."), h = M.length;
|
|
5585
5585
|
for (; f < h; ) {
|
|
5586
5586
|
const R = M[f];
|
|
@@ -5593,9 +5593,9 @@ function Fm(e) {
|
|
|
5593
5593
|
++f;
|
|
5594
5594
|
}
|
|
5595
5595
|
}, u = (b, S = !1) => {
|
|
5596
|
-
const
|
|
5597
|
-
return Zi(b,
|
|
5598
|
-
}, A = (b) => `${u(b)}-label`, m = () => be(e.schema, "fieldClasses", []), k = (b) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(b) : b,
|
|
5596
|
+
const D = be(e.formOptions, "fieldIdPrefix", "");
|
|
5597
|
+
return Zi(b, D) + (S ? "-" + fo() : "");
|
|
5598
|
+
}, A = (b) => `${u(b)}-label`, m = () => be(e.schema, "fieldClasses", []), k = (b) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(b) : b, P = (b) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(b) : b;
|
|
5599
5599
|
return {
|
|
5600
5600
|
value: a,
|
|
5601
5601
|
clearValidationErrors: c,
|
|
@@ -5678,7 +5678,7 @@ const Xt = {
|
|
|
5678
5678
|
let R = B;
|
|
5679
5679
|
const T = m[A.value] || "", W = en.parse(B, T);
|
|
5680
5680
|
W && ((M = i.schema) != null && M.format ? R = en.format(W, (h = i.schema) == null ? void 0 : h.format) : R = W.valueOf()), l(R, f);
|
|
5681
|
-
},
|
|
5681
|
+
}, P = (B, f) => {
|
|
5682
5682
|
Ri(B) || (B = NaN), l(B, f);
|
|
5683
5683
|
}, b = (B) => {
|
|
5684
5684
|
let f = B;
|
|
@@ -5691,17 +5691,17 @@ const Xt = {
|
|
|
5691
5691
|
u.value = f, l(f, B);
|
|
5692
5692
|
}, S = (B) => {
|
|
5693
5693
|
u.value = B, l(B, B);
|
|
5694
|
-
},
|
|
5694
|
+
}, D = Z(null), z = () => {
|
|
5695
5695
|
var B;
|
|
5696
|
-
ke(
|
|
5696
|
+
ke(D.value) && ((B = D.value) == null || B.flush());
|
|
5697
5697
|
};
|
|
5698
5698
|
return Rn(() => {
|
|
5699
5699
|
switch (A.value) {
|
|
5700
5700
|
case "number":
|
|
5701
5701
|
case "range":
|
|
5702
|
-
|
|
5702
|
+
D.value = Mn(
|
|
5703
5703
|
(B, f) => {
|
|
5704
|
-
|
|
5704
|
+
P(B, f);
|
|
5705
5705
|
},
|
|
5706
5706
|
parseInt(be(i.schema, "debounceFormatTimeout", 1e3)),
|
|
5707
5707
|
{
|
|
@@ -5713,7 +5713,7 @@ const Xt = {
|
|
|
5713
5713
|
case "date":
|
|
5714
5714
|
case "datetime":
|
|
5715
5715
|
case "datetime-local":
|
|
5716
|
-
|
|
5716
|
+
D.value = Mn(
|
|
5717
5717
|
(B, f) => {
|
|
5718
5718
|
k(B, f);
|
|
5719
5719
|
},
|
|
@@ -6167,8 +6167,8 @@ const So = /* @__PURE__ */ Te(lf, [["render", bf], ["__scopeId", "data-v-9a0290c
|
|
|
6167
6167
|
return (u, A) => {
|
|
6168
6168
|
const m = V("KRadio");
|
|
6169
6169
|
return p(), I("div", Ef, [
|
|
6170
|
-
(p(!0), I(Ae, null, Ee(e.schema.values, (k,
|
|
6171
|
-
id: e.schema.name + "-" +
|
|
6170
|
+
(p(!0), I(Ae, null, Ee(e.schema.values, (k, P) => (p(), H(m, {
|
|
6171
|
+
id: e.schema.name + "-" + P,
|
|
6172
6172
|
key: k.value,
|
|
6173
6173
|
modelValue: g(l),
|
|
6174
6174
|
"onUpdate:modelValue": A[0] || (A[0] = (b) => kn(l) ? l.value = b : null),
|
|
@@ -6239,12 +6239,12 @@ const So = /* @__PURE__ */ Te(lf, [["render", bf], ["__scopeId", "data-v-9a0290c
|
|
|
6239
6239
|
return m(typeof b == "function" ? b.apply(this, [i.model, i.schema]) : b);
|
|
6240
6240
|
}), m = (b) => {
|
|
6241
6241
|
const S = [];
|
|
6242
|
-
return b.forEach((
|
|
6242
|
+
return b.forEach((D) => {
|
|
6243
6243
|
S.push({
|
|
6244
|
-
label: D
|
|
6245
|
-
value: k(
|
|
6246
|
-
disabled: typeof
|
|
6247
|
-
group: typeof
|
|
6244
|
+
label: P(D),
|
|
6245
|
+
value: k(D),
|
|
6246
|
+
disabled: typeof D == "object" && D.disabled || void 0,
|
|
6247
|
+
group: typeof D == "object" && String(D.group || "").toUpperCase() || void 0
|
|
6248
6248
|
});
|
|
6249
6249
|
}), S;
|
|
6250
6250
|
}, k = (b) => {
|
|
@@ -6256,7 +6256,7 @@ const So = /* @__PURE__ */ Te(lf, [["render", bf], ["__scopeId", "data-v-9a0290c
|
|
|
6256
6256
|
throw new Error("`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
6257
6257
|
} else
|
|
6258
6258
|
return b;
|
|
6259
|
-
},
|
|
6259
|
+
}, P = (b) => {
|
|
6260
6260
|
if (We(b)) {
|
|
6261
6261
|
if (s.value && typeof s.value.name < "u")
|
|
6262
6262
|
return b[s.value.name];
|
|
@@ -6267,8 +6267,8 @@ const So = /* @__PURE__ */ Te(lf, [["render", bf], ["__scopeId", "data-v-9a0290c
|
|
|
6267
6267
|
return String(b);
|
|
6268
6268
|
};
|
|
6269
6269
|
return (b, S) => {
|
|
6270
|
-
const
|
|
6271
|
-
return p(), H(
|
|
6270
|
+
const D = V("KSelect");
|
|
6271
|
+
return p(), H(D, {
|
|
6272
6272
|
id: g(c)(e.schema),
|
|
6273
6273
|
modelValue: g(u),
|
|
6274
6274
|
"onUpdate:modelValue": S[0] || (S[0] = (z) => kn(u) ? u.value = z : null),
|
|
@@ -7110,9 +7110,9 @@ const ph = /* @__PURE__ */ Te(ih, [["render", dh], ["__scopeId", "data-v-0aaaf59
|
|
|
7110
7110
|
return t({
|
|
7111
7111
|
clearValidationErrors: A
|
|
7112
7112
|
}), (m, k) => {
|
|
7113
|
-
const
|
|
7113
|
+
const P = V("KInputSwitch");
|
|
7114
7114
|
return p(), I("div", fh, [
|
|
7115
|
-
U(
|
|
7115
|
+
U(P, {
|
|
7116
7116
|
id: g(d)(e.schema),
|
|
7117
7117
|
modelValue: g(u),
|
|
7118
7118
|
"onUpdate:modelValue": k[0] || (k[0] = (b) => kn(u) ? u.value = b : null),
|
|
@@ -7182,9 +7182,9 @@ const ph = /* @__PURE__ */ Te(ih, [["render", dh], ["__scopeId", "data-v-0aaaf59
|
|
|
7182
7182
|
u.value = m, l(m, m);
|
|
7183
7183
|
};
|
|
7184
7184
|
return (m, k) => {
|
|
7185
|
-
const
|
|
7185
|
+
const P = V("KTextArea");
|
|
7186
7186
|
return p(), I("div", vh, [
|
|
7187
|
-
U(
|
|
7187
|
+
U(P, rt(m.$attrs, {
|
|
7188
7188
|
id: g(c)(e.schema),
|
|
7189
7189
|
modelValue: g(u),
|
|
7190
7190
|
"onUpdate:modelValue": k[0] || (k[0] = (b) => kn(u) ? u.value = b : null),
|
|
@@ -7644,15 +7644,15 @@ function jh(e, t, n, i, a, s) {
|
|
|
7644
7644
|
class: Oe(e.getFieldRowClasses(c))
|
|
7645
7645
|
}, {
|
|
7646
7646
|
default: E(() => [
|
|
7647
|
-
(p(!0), I(Ae, null, Ee(c.fields, (
|
|
7648
|
-
key:
|
|
7647
|
+
(p(!0), I(Ae, null, Ee(c.fields, (P) => (p(), I(Ae, {
|
|
7648
|
+
key: P.model
|
|
7649
7649
|
}, [
|
|
7650
|
-
s.fieldVisible(
|
|
7650
|
+
s.fieldVisible(P) ? (p(), H(o, {
|
|
7651
7651
|
key: 0,
|
|
7652
7652
|
ref_for: !0,
|
|
7653
7653
|
ref: "children",
|
|
7654
7654
|
errors: a.errors,
|
|
7655
|
-
field:
|
|
7655
|
+
field: P,
|
|
7656
7656
|
model: n.model,
|
|
7657
7657
|
options: n.options,
|
|
7658
7658
|
vfg: a.vfg,
|
|
@@ -7670,22 +7670,22 @@ function jh(e, t, n, i, a, s) {
|
|
|
7670
7670
|
"model-value": a.collapseStates[`group-${d}-nested`] ?? !0,
|
|
7671
7671
|
"trigger-alignment": "leading",
|
|
7672
7672
|
"trigger-label": a.collapseStates[`group-${d}-nested`] ?? !0 ? c.collapsible.nestedCollapsible.triggerLabel.expand : c.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
7673
|
-
"onUpdate:modelValue": (
|
|
7673
|
+
"onUpdate:modelValue": (P) => a.collapseStates[`group-${d}-nested`] = P
|
|
7674
7674
|
}, {
|
|
7675
7675
|
default: E(() => [
|
|
7676
7676
|
(p(), H(Ye(n.tag), {
|
|
7677
7677
|
class: Oe(e.getFieldRowClasses(c))
|
|
7678
7678
|
}, {
|
|
7679
7679
|
default: E(() => [
|
|
7680
|
-
(p(!0), I(Ae, null, Ee(c.collapsible.nestedCollapsible.fields, (
|
|
7681
|
-
key:
|
|
7680
|
+
(p(!0), I(Ae, null, Ee(c.collapsible.nestedCollapsible.fields, (P) => (p(), I(Ae, {
|
|
7681
|
+
key: P.model
|
|
7682
7682
|
}, [
|
|
7683
|
-
s.fieldVisible(
|
|
7683
|
+
s.fieldVisible(P) ? (p(), H(o, {
|
|
7684
7684
|
key: 0,
|
|
7685
7685
|
ref_for: !0,
|
|
7686
7686
|
ref: "children",
|
|
7687
7687
|
errors: a.errors,
|
|
7688
|
-
field:
|
|
7688
|
+
field: P,
|
|
7689
7689
|
model: n.model,
|
|
7690
7690
|
options: n.options,
|
|
7691
7691
|
vfg: a.vfg,
|
|
@@ -8295,13 +8295,13 @@ const qh = /* @__PURE__ */ Te(Yh, [["render", Jh], ["__scopeId", "data-v-bb72c68
|
|
|
8295
8295
|
fields: n.formSchema.fields.filter((h) => h.model.startsWith("config-storage_config-consul"))
|
|
8296
8296
|
})), k = K(() => ({
|
|
8297
8297
|
fields: n.formSchema.fields.filter((h) => h.model.startsWith("config-storage_config-redis"))
|
|
8298
|
-
})),
|
|
8298
|
+
})), P = K(() => ({
|
|
8299
8299
|
fields: n.formSchema.fields.filter((h) => h.model.startsWith("config-storage_config-shm"))
|
|
8300
8300
|
})), b = K(() => ({
|
|
8301
8301
|
fields: n.formSchema.fields.filter((h) => h.model.startsWith("config-storage_config-vault"))
|
|
8302
8302
|
})), S = K(() => ({
|
|
8303
8303
|
fields: n.formSchema.fields.filter((h) => h.model.startsWith("config") && !u.value.fields.filter((R) => R.model === h.model).length && !A.value.fields.filter((R) => R.model === h.model).length || h.model === "tags")
|
|
8304
|
-
})),
|
|
8304
|
+
})), D = K(() => n.formModel.id && n.isEditing || !n.isEditing), z = [
|
|
8305
8305
|
{
|
|
8306
8306
|
hash: "#general",
|
|
8307
8307
|
title: "General"
|
|
@@ -8355,7 +8355,7 @@ const qh = /* @__PURE__ */ Te(Yh, [["render", Jh], ["__scopeId", "data-v-bb72c68
|
|
|
8355
8355
|
y("span", { class: "section-header" }, "General Configuration Settings")
|
|
8356
8356
|
], -1)),
|
|
8357
8357
|
R[1] || (R[1] = y("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
8358
|
-
|
|
8358
|
+
D.value ? (p(), H(Xe, {
|
|
8359
8359
|
key: 0,
|
|
8360
8360
|
model: e.formModel,
|
|
8361
8361
|
options: e.formOptions,
|
|
@@ -8393,7 +8393,7 @@ const qh = /* @__PURE__ */ Te(Yh, [["render", Jh], ["__scopeId", "data-v-bb72c68
|
|
|
8393
8393
|
y("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
8394
8394
|
], -1)),
|
|
8395
8395
|
R[4] || (R[4] = y("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
8396
|
-
|
|
8396
|
+
D.value ? (p(), H(Xe, {
|
|
8397
8397
|
key: 0,
|
|
8398
8398
|
model: e.formModel,
|
|
8399
8399
|
options: e.formOptions,
|
|
@@ -8419,7 +8419,7 @@ const qh = /* @__PURE__ */ Te(Yh, [["render", Jh], ["__scopeId", "data-v-bb72c68
|
|
|
8419
8419
|
key: 2,
|
|
8420
8420
|
model: e.formModel,
|
|
8421
8421
|
options: e.formOptions,
|
|
8422
|
-
schema:
|
|
8422
|
+
schema: P.value,
|
|
8423
8423
|
onModelUpdated: e.onModelUpdated
|
|
8424
8424
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : ie("", !0),
|
|
8425
8425
|
a.value === "vault" ? (p(), H(Xe, {
|
|
@@ -8438,7 +8438,7 @@ const qh = /* @__PURE__ */ Te(Yh, [["render", Jh], ["__scopeId", "data-v-bb72c68
|
|
|
8438
8438
|
y("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
8439
8439
|
], -1)),
|
|
8440
8440
|
R[6] || (R[6] = y("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
8441
|
-
|
|
8441
|
+
D.value ? (p(), H(Xe, {
|
|
8442
8442
|
key: 0,
|
|
8443
8443
|
model: e.formModel,
|
|
8444
8444
|
options: e.formOptions,
|
|
@@ -8567,7 +8567,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8567
8567
|
value: te
|
|
8568
8568
|
}));
|
|
8569
8569
|
}
|
|
8570
|
-
), m = Z(), k = Z(!0),
|
|
8570
|
+
), m = Z(), k = Z(!0), P = K(
|
|
8571
8571
|
() => {
|
|
8572
8572
|
var j, Y, X;
|
|
8573
8573
|
return o.formModel["config-window_type"] ?? ((X = (Y = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : Y.find((te) => te.model === "config-window_type")) == null ? void 0 : X.default);
|
|
@@ -8586,7 +8586,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8586
8586
|
};
|
|
8587
8587
|
});
|
|
8588
8588
|
return !Array.isArray(Y) || Y.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : Y;
|
|
8589
|
-
}),
|
|
8589
|
+
}), D = K(
|
|
8590
8590
|
() => {
|
|
8591
8591
|
var j, Y, X, te;
|
|
8592
8592
|
return ((j = o.formModel) == null ? void 0 : j["config-identifier"]) ?? ((te = (X = (Y = o.formSchema) == null ? void 0 : Y.fields) == null ? void 0 : X.find((se) => se.model === "config-identifier")) == null ? void 0 : te.default);
|
|
@@ -8683,7 +8683,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8683
8683
|
y("div", gv, [
|
|
8684
8684
|
(p(!0), I(Ae, null, Ee(b.value, (x) => (p(), H(se, {
|
|
8685
8685
|
key: `window-type-${x}`,
|
|
8686
|
-
"model-value":
|
|
8686
|
+
"model-value": P.value,
|
|
8687
8687
|
name: x,
|
|
8688
8688
|
"selected-value": x,
|
|
8689
8689
|
"onUpdate:modelValue": M
|
|
@@ -8766,9 +8766,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8766
8766
|
]),
|
|
8767
8767
|
default: E(() => [
|
|
8768
8768
|
U(L, {
|
|
8769
|
-
appearance: m.value === `${
|
|
8769
|
+
appearance: m.value === `${P.value}-${re}` ? "info" : "decorative",
|
|
8770
8770
|
class: "rla-form-request-limits-examples-badge",
|
|
8771
|
-
onClick: () => f(x, `${
|
|
8771
|
+
onClick: () => f(x, `${P.value}-${re}`)
|
|
8772
8772
|
}, {
|
|
8773
8773
|
default: E(() => [
|
|
8774
8774
|
me(F(x.label), 1)
|
|
@@ -8785,8 +8785,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8785
8785
|
_: 1
|
|
8786
8786
|
}),
|
|
8787
8787
|
U(ne, {
|
|
8788
|
-
modelValue:
|
|
8789
|
-
"onUpdate:modelValue": Y[1] || (Y[1] = (x) =>
|
|
8788
|
+
modelValue: D.value,
|
|
8789
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (x) => D.value = x),
|
|
8790
8790
|
class: "rla-form-identifiers",
|
|
8791
8791
|
items: A.value,
|
|
8792
8792
|
label: g(s)("rla.identifiers.label"),
|
|
@@ -9752,7 +9752,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9752
9752
|
Object.prototype.hasOwnProperty.call(f, "one_of") ? (f.type = "select", f.values = f.one_of, f.selectOptions = {
|
|
9753
9753
|
hideNoneSelectedText: !0
|
|
9754
9754
|
}) : (f.type = "input", f.inputType = "text");
|
|
9755
|
-
},
|
|
9755
|
+
}, P = (f) => {
|
|
9756
9756
|
f.type = "checkbox", f.default = !0, f.required = !1;
|
|
9757
9757
|
}, b = (f) => {
|
|
9758
9758
|
if (f.type = "object-advanced", f.values.type === "array") {
|
|
@@ -9795,7 +9795,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9795
9795
|
});
|
|
9796
9796
|
}, S = (f) => f.fields.reduce((M, h) => (h.fields && h.fields.forEach((R) => {
|
|
9797
9797
|
M[R.model] = R;
|
|
9798
|
-
}), h.model && (M[h.model] = h), M), {}),
|
|
9798
|
+
}), h.model && (M[h.model] = h), M), {}), D = (f, M) => {
|
|
9799
9799
|
if (!ki.includes(f.model))
|
|
9800
9800
|
return;
|
|
9801
9801
|
const h = S(f);
|
|
@@ -9806,7 +9806,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9806
9806
|
}), delete M[R];
|
|
9807
9807
|
});
|
|
9808
9808
|
}, z = (f, M) => f.inputType === "hidden" ? "" : n(t(f.label || M.replace(/_/g, " "))), B = (f, M) => {
|
|
9809
|
-
switch (
|
|
9809
|
+
switch (D(f, M), f.type) {
|
|
9810
9810
|
case "foreign":
|
|
9811
9811
|
A(f, M);
|
|
9812
9812
|
break;
|
|
@@ -9820,7 +9820,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9820
9820
|
k(f);
|
|
9821
9821
|
break;
|
|
9822
9822
|
case "boolean":
|
|
9823
|
-
|
|
9823
|
+
P(f);
|
|
9824
9824
|
break;
|
|
9825
9825
|
case "map":
|
|
9826
9826
|
b(f);
|
|
@@ -10419,10 +10419,10 @@ const Do = {
|
|
|
10419
10419
|
if (M)
|
|
10420
10420
|
return i("vault_secret_picker.fetch_error.secrets");
|
|
10421
10421
|
}), {
|
|
10422
|
-
debouncedQueryChange:
|
|
10422
|
+
debouncedQueryChange: P,
|
|
10423
10423
|
loading: b,
|
|
10424
10424
|
error: S,
|
|
10425
|
-
loadItems:
|
|
10425
|
+
loadItems: D,
|
|
10426
10426
|
results: z
|
|
10427
10427
|
} = sa(a.config, as.list[a.config.app].getAll, void 0, {
|
|
10428
10428
|
fetchedItemsKey: "data",
|
|
@@ -10490,7 +10490,7 @@ const Do = {
|
|
|
10490
10490
|
} catch (L) {
|
|
10491
10491
|
console.debug(L);
|
|
10492
10492
|
}
|
|
10493
|
-
l.value = !1, await
|
|
10493
|
+
l.value = !1, await D();
|
|
10494
10494
|
}
|
|
10495
10495
|
}, { immediate: !0 }), lt(c, async (ae, L) => {
|
|
10496
10496
|
var v;
|
|
@@ -10532,7 +10532,7 @@ const Do = {
|
|
|
10532
10532
|
required: "",
|
|
10533
10533
|
"reuse-item-template": "",
|
|
10534
10534
|
width: "100%",
|
|
10535
|
-
onQueryChange: g(
|
|
10535
|
+
onQueryChange: g(P)
|
|
10536
10536
|
}, {
|
|
10537
10537
|
loading: E(() => [
|
|
10538
10538
|
y("div", null, F(g(i)("actions.loading")), 1)
|
|
@@ -10749,9 +10749,9 @@ const Do = {
|
|
|
10749
10749
|
}) : a.get(O, { params: v });
|
|
10750
10750
|
}
|
|
10751
10751
|
});
|
|
10752
|
-
const S = Z(""),
|
|
10752
|
+
const S = Z(""), D = Z(null), z = Z({}), B = mn({}), f = mn({}), M = K(() => {
|
|
10753
10753
|
var L;
|
|
10754
|
-
return (L =
|
|
10754
|
+
return (L = D.value) == null ? void 0 : L.options;
|
|
10755
10755
|
}), h = Z(!1), R = Z(), T = (L, v) => {
|
|
10756
10756
|
h.value = L ?? "", R.value = v;
|
|
10757
10757
|
}, W = (L) => {
|
|
@@ -10911,7 +10911,7 @@ const Do = {
|
|
|
10911
10911
|
}, Object.assign(B, JSON.parse(JSON.stringify(O.model))), S.value = Uo(O.model.name), se();
|
|
10912
10912
|
}, { immediate: !0, deep: !0 }), rn(() => {
|
|
10913
10913
|
var L, v;
|
|
10914
|
-
|
|
10914
|
+
D.value = s(i.schema), Object.assign(f, ((L = D.value) == null ? void 0 : L.model) || {}), z.value = ((v = D.value) == null ? void 0 : v.schema) || {}, se();
|
|
10915
10915
|
}), (L, v) => {
|
|
10916
10916
|
var J;
|
|
10917
10917
|
const O = V("KSkeleton"), ne = V("VueFormGenerator");
|
|
@@ -11073,7 +11073,7 @@ const Do = {
|
|
|
11073
11073
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
|
|
11074
11074
|
setup(e, { emit: t }) {
|
|
11075
11075
|
var _;
|
|
11076
|
-
const n = t, i = e, a = Wn(), { i18n: { t: s } } = Pe.useI18n(), { customSchemas: o, typedefs: l } = Pe.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Pe.usePluginHelpers(), { getMessageFromError: d } = Zn(), { capitalize: u } = Pi(), { objectsAreEqual: A } = Xn(), { axiosInstance: m } = Kt((_ = i.config) == null ? void 0 : _.axiosRequestConfig), k = Z(!1),
|
|
11076
|
+
const n = t, i = e, a = Wn(), { i18n: { t: s } } = Pe.useI18n(), { customSchemas: o, typedefs: l } = Pe.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Pe.usePluginHelpers(), { getMessageFromError: d } = Zn(), { capitalize: u } = Pi(), { objectsAreEqual: A } = Xn(), { axiosInstance: m } = Kt((_ = i.config) == null ? void 0 : _.axiosRequestConfig), k = Z(!1), P = K(() => !!i.pluginId), b = K(() => i.pluginId ? xt.Edit : xt.Create), S = Z(null), D = K(() => !!(i.credential && i.config.entityId)), z = Z(null), B = Z({}), f = Z(!1), M = mn({
|
|
11077
11077
|
enabled: !0,
|
|
11078
11078
|
protocols: [],
|
|
11079
11079
|
tags: []
|
|
@@ -11100,7 +11100,7 @@ const Do = {
|
|
|
11100
11100
|
hash: "#terraform"
|
|
11101
11101
|
});
|
|
11102
11102
|
const T = Z(""), W = K(() => {
|
|
11103
|
-
if (
|
|
11103
|
+
if (D.value) {
|
|
11104
11104
|
let w = je.form[i.config.app].credential[b.value];
|
|
11105
11105
|
return w = w.replace(/{resourceEndpoint}/gi, te.value), w;
|
|
11106
11106
|
}
|
|
@@ -11349,7 +11349,7 @@ const Do = {
|
|
|
11349
11349
|
};
|
|
11350
11350
|
}
|
|
11351
11351
|
}
|
|
11352
|
-
if (
|
|
11352
|
+
if (D.value && oe) {
|
|
11353
11353
|
for (let he = 0; he < oe.length; he++)
|
|
11354
11354
|
if (oe[he][N]) {
|
|
11355
11355
|
C[N] = {
|
|
@@ -11452,7 +11452,7 @@ const Do = {
|
|
|
11452
11452
|
};
|
|
11453
11453
|
lt([Y, O], (w, Q) => {
|
|
11454
11454
|
const C = w[0] !== Q[0], pe = w[1], le = Q[1];
|
|
11455
|
-
!
|
|
11455
|
+
!D.value && b.value === xt.Edit && (C || pe && pe !== le) && (Se.value = !0, S.value = ce("config", B.value, X), Se.value = !1);
|
|
11456
11456
|
}, { deep: !0 });
|
|
11457
11457
|
const ue = () => {
|
|
11458
11458
|
i.config.cancelRoute ? a.push(i.config.cancelRoute) : n("cancel");
|
|
@@ -11460,12 +11460,12 @@ const Do = {
|
|
|
11460
11460
|
let w = `${i.config.apiBaseUrl}${je.form[i.config.app].validate}`;
|
|
11461
11461
|
return i.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), w = w.replace(/{id}/gi, i.pluginId), w;
|
|
11462
11462
|
}), ee = K(() => {
|
|
11463
|
-
const w = i.config.entityType && i.config.entityId && !i.developer, Q =
|
|
11463
|
+
const w = i.config.entityType && i.config.entityId && !i.developer, Q = D.value ? je.form[i.config.app].credential[b.value] : je.form[i.config.app][b.value][w ? "forEntity" : "all"];
|
|
11464
11464
|
let C = `${i.config.apiBaseUrl}${Q}`;
|
|
11465
11465
|
return i.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), C = C.replace(/{resourceEndpoint}/gi, te.value), C = C.replace(/{id}/gi, i.pluginId), C = C.replace(/{entityType}/gi, i.config.entityType || ""), C = C.replace(/{entityId}/gi, i.config.entityId || ""), C;
|
|
11466
11466
|
}), kt = K(() => !Object.keys(ot).includes(i.pluginType)), _e = K(() => {
|
|
11467
11467
|
const w = x.value;
|
|
11468
|
-
if (
|
|
11468
|
+
if (D.value) {
|
|
11469
11469
|
for (const Q in r) {
|
|
11470
11470
|
const C = r[Q];
|
|
11471
11471
|
w[C] && !w[C].id && (w[C] = { id: i.config.entityId });
|
|
@@ -11483,7 +11483,7 @@ const Do = {
|
|
|
11483
11483
|
originalModel: M,
|
|
11484
11484
|
model: h.fields,
|
|
11485
11485
|
payload: Q
|
|
11486
|
-
}), !
|
|
11486
|
+
}), !D.value && !kt.value && await m.post(ge.value, Q), b.value === "create" ? w = await m.post(ee.value, Q) : b.value === "edit" && (w = i.config.app === "konnect" ? await m.put(ee.value, Object.assign({ ordering: ne.value }, Q)) : await m.patch(ee.value, Q)), Object.assign(M, h.fields), n("update", w == null ? void 0 : w.data);
|
|
11487
11487
|
} catch (w) {
|
|
11488
11488
|
h.errorMessage = d(w), n("error", w);
|
|
11489
11489
|
} finally {
|
|
@@ -11491,7 +11491,7 @@ const Do = {
|
|
|
11491
11491
|
}
|
|
11492
11492
|
}, pt = K(() => {
|
|
11493
11493
|
var pe;
|
|
11494
|
-
const w =
|
|
11494
|
+
const w = D.value ? (pe = $t[i.pluginType]) == null ? void 0 : pe.schemaEndpoint : i.pluginType, Q = D.value ? je.form[i.config.app].credentialSchema : je.form[i.config.app].pluginSchema;
|
|
11495
11495
|
let C = `${i.config.apiBaseUrl}${Q}`;
|
|
11496
11496
|
return i.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), C = C.replace(/{plugin}/gi, w), C;
|
|
11497
11497
|
}), ht = Z(""), Se = Z(!1), $ = Z("");
|
|
@@ -11499,13 +11499,13 @@ const Do = {
|
|
|
11499
11499
|
var w, Q, C;
|
|
11500
11500
|
Se.value = !0;
|
|
11501
11501
|
try {
|
|
11502
|
-
if (
|
|
11502
|
+
if (D.value && i.config.app === "konnect") {
|
|
11503
11503
|
const pe = (w = $t[i.pluginType]) == null ? void 0 : w.schemaEndpoint, le = bu[pe];
|
|
11504
11504
|
ht.value = pe, S.value = ce("", le, {}), Se.value = !1;
|
|
11505
11505
|
} else {
|
|
11506
11506
|
const pe = await m.get(pt.value), { data: le } = pe;
|
|
11507
11507
|
if (le)
|
|
11508
|
-
if (
|
|
11508
|
+
if (D.value)
|
|
11509
11509
|
S.value = ce("", le, {}), Se.value = !1;
|
|
11510
11510
|
else {
|
|
11511
11511
|
const xe = le.fields.find((de) => de.config);
|
|
@@ -11568,7 +11568,7 @@ const Do = {
|
|
|
11568
11568
|
e.hideViewConfigAction ? ie("", !0) : (p(), H(le, {
|
|
11569
11569
|
key: 0,
|
|
11570
11570
|
appearance: "tertiary",
|
|
11571
|
-
"data-testid": `plugin-${
|
|
11571
|
+
"data-testid": `plugin-${P.value ? "edit" : "create"}-form-view-configuration`,
|
|
11572
11572
|
onClick: Q[1] || (Q[1] = (de) => j())
|
|
11573
11573
|
}, {
|
|
11574
11574
|
default: E(() => [
|
|
@@ -11579,7 +11579,7 @@ const Do = {
|
|
|
11579
11579
|
U(le, {
|
|
11580
11580
|
appearance: "secondary",
|
|
11581
11581
|
class: "form-action-button",
|
|
11582
|
-
"data-testid": `plugin-${
|
|
11582
|
+
"data-testid": `plugin-${P.value ? "edit" : "create"}-form-cancel`,
|
|
11583
11583
|
disabled: h.isReadonly,
|
|
11584
11584
|
type: "reset",
|
|
11585
11585
|
onClick: ue
|
|
@@ -11591,7 +11591,7 @@ const Do = {
|
|
|
11591
11591
|
}, 8, ["data-testid", "disabled"]),
|
|
11592
11592
|
U(le, {
|
|
11593
11593
|
appearance: "primary",
|
|
11594
|
-
"data-testid": `plugin-${
|
|
11594
|
+
"data-testid": `plugin-${P.value ? "edit" : "create"}-form-submit`,
|
|
11595
11595
|
disabled: !v.value || h.isReadonly,
|
|
11596
11596
|
type: "submit",
|
|
11597
11597
|
onClick: at
|
|
@@ -11613,7 +11613,7 @@ const Do = {
|
|
|
11613
11613
|
}, null, 32),
|
|
11614
11614
|
U(My, {
|
|
11615
11615
|
config: e.config,
|
|
11616
|
-
credential:
|
|
11616
|
+
credential: D.value,
|
|
11617
11617
|
editing: b.value === g(xt).Edit,
|
|
11618
11618
|
"enable-vault-secret-picker": i.enableVaultSecretPicker,
|
|
11619
11619
|
"entity-map": Y.value,
|
|
@@ -11957,7 +11957,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
11957
11957
|
name: { label: s("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
|
|
11958
11958
|
};
|
|
11959
11959
|
(Se = a.config) != null && Se.entityId || (m.appliedTo = { label: s("plugins.list.table_headers.applied_to"), sortable: !1 }), m.enabled = { label: s("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, u && (m.ordering = { label: s("plugins.list.table_headers.ordering"), sortable: !0 }), m.tags = { label: s("plugins.list.table_headers.tags"), sortable: !1 };
|
|
11960
|
-
const k = m,
|
|
11960
|
+
const k = m, P = K(() => {
|
|
11961
11961
|
var _, w, Q, C;
|
|
11962
11962
|
let $ = a.config.entityType ? `${a.config.apiBaseUrl}${je.list[a.config.app].forEntity}` : `${a.config.apiBaseUrl}${je.list[a.config.app].all}`;
|
|
11963
11963
|
return a.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((_ = a.config) == null ? void 0 : _.controlPlaneId) || "") : a.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (w = a.config) != null && w.workspace ? `/${a.config.workspace}` : "")), $.replace(/{entityType}/gi, ((Q = a.config) == null ? void 0 : Q.entityType) || "").replace(/{entityId}/gi, ((C = a.config) == null ? void 0 : C.entityId) || "");
|
|
@@ -11977,10 +11977,14 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
11977
11977
|
instance_name: { label: s("plugins.list.table_headers.instance_name"), searchable: !0 }
|
|
11978
11978
|
},
|
|
11979
11979
|
schema: a.config.filterSchema
|
|
11980
|
-
}),
|
|
11980
|
+
}), {
|
|
11981
|
+
fetcher: D,
|
|
11982
|
+
fetcherState: z,
|
|
11983
|
+
fetcherCacheKey: B
|
|
11984
|
+
} = cr({ ...a.config, cacheIdentifier: a.cacheIdentifier }, P.value), f = () => {
|
|
11981
11985
|
b.value = "";
|
|
11982
11986
|
}, M = () => {
|
|
11983
|
-
|
|
11987
|
+
B.value++;
|
|
11984
11988
|
}, h = Z(null), R = ($) => {
|
|
11985
11989
|
var w, Q, C, pe;
|
|
11986
11990
|
const _ = [];
|
|
@@ -12074,7 +12078,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12074
12078
|
}), J = ($) => ({
|
|
12075
12079
|
label: s("actions.configure_dynamic_ordering"),
|
|
12076
12080
|
to: a.config.getConfigureDynamicOrderingRoute($)
|
|
12077
|
-
}), x = Z(void 0), re = Z(!1), ue = Z(!1), ge = Z(""), ee = ur(a.config,
|
|
12081
|
+
}), x = Z(void 0), re = Z(!1), ue = Z(!1), ge = Z(""), ee = ur(a.config, P.value), kt = ($) => {
|
|
12078
12082
|
x.value = $, re.value = !0;
|
|
12079
12083
|
}, _e = () => {
|
|
12080
12084
|
re.value = !1;
|
|
@@ -12083,7 +12087,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12083
12087
|
if (($ = x.value) != null && $.id) {
|
|
12084
12088
|
ue.value = !0;
|
|
12085
12089
|
try {
|
|
12086
|
-
await l.delete(ee(x.value.id)), ue.value = !1, re.value = !1,
|
|
12090
|
+
await l.delete(ee(x.value.id)), ue.value = !1, re.value = !1, B.value++, i("delete:success", x.value);
|
|
12087
12091
|
} catch (Q) {
|
|
12088
12092
|
ge.value = ((w = (_ = Q.response) == null ? void 0 : _.data) == null ? void 0 : w.message) || Q.message || s("errors.delete"), i("error", Q);
|
|
12089
12093
|
} finally {
|
|
@@ -12091,7 +12095,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12091
12095
|
}
|
|
12092
12096
|
}
|
|
12093
12097
|
};
|
|
12094
|
-
lt(
|
|
12098
|
+
lt(z, ($) => {
|
|
12095
12099
|
var _, w, Q;
|
|
12096
12100
|
if ($.status === dr.Error) {
|
|
12097
12101
|
h.value = {
|
|
@@ -12118,8 +12122,8 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12118
12122
|
"empty-state-options": pt.value,
|
|
12119
12123
|
"enable-entity-actions": "",
|
|
12120
12124
|
"error-message": h.value,
|
|
12121
|
-
fetcher: g(
|
|
12122
|
-
"fetcher-cache-key":
|
|
12125
|
+
fetcher: g(D),
|
|
12126
|
+
"fetcher-cache-key": g(B),
|
|
12123
12127
|
"pagination-type": "offset",
|
|
12124
12128
|
"preferences-storage-key": "kong-ui-entities-plugins-list",
|
|
12125
12129
|
query: b.value,
|
|
@@ -12348,7 +12352,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12348
12352
|
]);
|
|
12349
12353
|
};
|
|
12350
12354
|
}
|
|
12351
|
-
}), rw = /* @__PURE__ */ dt(gE, [["__scopeId", "data-v-
|
|
12355
|
+
}), rw = /* @__PURE__ */ dt(gE, [["__scopeId", "data-v-7fcc39ab"]]), mE = "16px", fE = { class: "plugin-select-card-wrapper" }, hE = ["data-testid"], vE = { class: "plugin-card-header" }, yE = { class: "plugin-card-title" }, bE = {
|
|
12352
12356
|
key: 0,
|
|
12353
12357
|
class: "plugin-card-actions"
|
|
12354
12358
|
}, EE = ["data-testid", "title"], wE = {
|
|
@@ -12394,18 +12398,18 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12394
12398
|
i.navigateOnClick ? d() : A();
|
|
12395
12399
|
}, A = () => {
|
|
12396
12400
|
n("plugin-clicked", i.plugin);
|
|
12397
|
-
}, m = K(() => i.plugin.id === "custom-plugin-create"), k = K(() => i.config.app === "konnect" && i.plugin.group === G.CUSTOM_PLUGINS),
|
|
12401
|
+
}, m = K(() => i.plugin.id === "custom-plugin-create"), k = K(() => i.config.app === "konnect" && i.plugin.group === G.CUSTOM_PLUGINS), P = () => {
|
|
12398
12402
|
i.config.app === "konnect" && n("custom-plugin-delete");
|
|
12399
|
-
}, b = (
|
|
12403
|
+
}, b = (D) => {
|
|
12400
12404
|
const z = i.config;
|
|
12401
|
-
i.config.app === "konnect" && typeof z.getCustomEditRoute == "function" && z.getCustomEditRoute && a.push(z.getCustomEditRoute(
|
|
12405
|
+
i.config.app === "konnect" && typeof z.getCustomEditRoute == "function" && z.getCustomEditRoute && a.push(z.getCustomEditRoute(D));
|
|
12402
12406
|
}, S = () => {
|
|
12403
12407
|
if (!l.value && i.config.app === "konnect") {
|
|
12404
|
-
const
|
|
12405
|
-
m.value &&
|
|
12408
|
+
const D = i.config;
|
|
12409
|
+
m.value && D.createCustomRoute ? a.push(D.createCustomRoute) : k.value && d();
|
|
12406
12410
|
}
|
|
12407
12411
|
};
|
|
12408
|
-
return (
|
|
12412
|
+
return (D, z) => {
|
|
12409
12413
|
const B = V("KButton"), f = V("KDropdownItem"), M = V("KDropdownMenu"), h = V("KTooltip");
|
|
12410
12414
|
return p(), I("div", fE, [
|
|
12411
12415
|
U(h, {
|
|
@@ -12460,7 +12464,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12460
12464
|
danger: "",
|
|
12461
12465
|
"data-testid": "delete-plugin-schema",
|
|
12462
12466
|
"has-divider": "",
|
|
12463
|
-
onClick: fn(
|
|
12467
|
+
onClick: fn(P, ["stop"])
|
|
12464
12468
|
}, {
|
|
12465
12469
|
default: E(() => [
|
|
12466
12470
|
me(F(g(s)("actions.delete")), 1)
|
|
@@ -12522,23 +12526,23 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12522
12526
|
setup(e, { emit: t }) {
|
|
12523
12527
|
var k;
|
|
12524
12528
|
const n = e, i = t, { i18nT: a, i18n: { t: s } } = Pe.useI18n(), { getMessageFromError: o } = Zn(), { axiosInstance: l } = Kt((k = n.config) == null ? void 0 : k.axiosRequestConfig), c = K(() => {
|
|
12525
|
-
var
|
|
12526
|
-
return A.value ? s("delete.plugin_schema_in_use_title") : s("delete.title", { name: ((
|
|
12529
|
+
var P;
|
|
12530
|
+
return A.value ? s("delete.plugin_schema_in_use_title") : s("delete.title", { name: ((P = n.plugin) == null ? void 0 : P.name) || s("delete.custom_plugin") });
|
|
12527
12531
|
}), d = Z(!1), u = Z(""), A = Z(!1), m = async () => {
|
|
12528
|
-
var
|
|
12529
|
-
if (d.value = !0, u.value = "", !(!((
|
|
12532
|
+
var P, b, S, D, z;
|
|
12533
|
+
if (d.value = !0, u.value = "", !(!((P = n.plugin) != null && P.name) || ((b = n.config) == null ? void 0 : b.app) !== "konnect"))
|
|
12530
12534
|
try {
|
|
12531
12535
|
const B = `${n.config.apiBaseUrl}/v2/control-planes/${n.config.controlPlaneId}/core-entities/plugin-schemas/${(S = n.plugin) == null ? void 0 : S.name}`;
|
|
12532
12536
|
await l.delete(B), i("proceed");
|
|
12533
12537
|
} catch (B) {
|
|
12534
12538
|
const { response: f } = B;
|
|
12535
|
-
(f == null ? void 0 : f.status) === 400 && ((z = (
|
|
12539
|
+
(f == null ? void 0 : f.status) === 400 && ((z = (D = f.data) == null ? void 0 : D.message) != null && z.includes("plugin schema is currently in use")) ? A.value = !0 : u.value = o(B);
|
|
12536
12540
|
} finally {
|
|
12537
12541
|
d.value = !1;
|
|
12538
12542
|
}
|
|
12539
12543
|
};
|
|
12540
|
-
return (
|
|
12541
|
-
const S = V("KButton"),
|
|
12544
|
+
return (P, b) => {
|
|
12545
|
+
const S = V("KButton"), D = V("KModal");
|
|
12542
12546
|
return !A.value && e.plugin ? (p(), H(g(Rs), {
|
|
12543
12547
|
key: 0,
|
|
12544
12548
|
"action-pending": d.value,
|
|
@@ -12551,16 +12555,16 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12551
12555
|
"need-confirm": "",
|
|
12552
12556
|
title: c.value,
|
|
12553
12557
|
visible: "",
|
|
12554
|
-
onCancel: b[0] || (b[0] = (z) =>
|
|
12558
|
+
onCancel: b[0] || (b[0] = (z) => P.$emit("closed")),
|
|
12555
12559
|
onProceed: m
|
|
12556
|
-
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title"])) : e.plugin ? (p(), H(
|
|
12560
|
+
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title"])) : e.plugin ? (p(), H(D, {
|
|
12557
12561
|
key: 1,
|
|
12558
12562
|
"action-button-disabled": d.value,
|
|
12559
12563
|
class: "delete-custom-plugin-schema-modal",
|
|
12560
12564
|
"data-testid": "delete-custom-plugin-schema-modal",
|
|
12561
12565
|
title: c.value,
|
|
12562
12566
|
visible: "",
|
|
12563
|
-
onCancel: b[2] || (b[2] = (z) =>
|
|
12567
|
+
onCancel: b[2] || (b[2] = (z) => P.$emit("closed"))
|
|
12564
12568
|
}, {
|
|
12565
12569
|
default: E(() => [
|
|
12566
12570
|
y("div", null, [
|
|
@@ -12581,7 +12585,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12581
12585
|
appearance: "tertiary",
|
|
12582
12586
|
class: "cancel-button",
|
|
12583
12587
|
"data-testid": "delete-custom-plugin-form-cancel",
|
|
12584
|
-
onClick: b[1] || (b[1] = (z) =>
|
|
12588
|
+
onClick: b[1] || (b[1] = (z) => P.$emit("closed"))
|
|
12585
12589
|
}, {
|
|
12586
12590
|
default: E(() => [
|
|
12587
12591
|
me(F(g(s)("actions.cancel")), 1)
|
|
@@ -12663,17 +12667,17 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12663
12667
|
}, k = (M) => {
|
|
12664
12668
|
var h;
|
|
12665
12669
|
M && (i("revalidate"), i("delete:success", ((h = A.value) == null ? void 0 : h.name) || "")), u.value = !1, A.value = null;
|
|
12666
|
-
},
|
|
12670
|
+
}, P = Z(yi), b = Z(null), S = Z(null), D = K(() => l.value ? {
|
|
12667
12671
|
overflowY: "hidden",
|
|
12668
|
-
maxHeight: `${
|
|
12672
|
+
maxHeight: `${P.value}px`
|
|
12669
12673
|
} : {}), z = Z(!1), B = () => {
|
|
12670
|
-
|
|
12674
|
+
P.value = Math.max(s(S.value), yi), f();
|
|
12671
12675
|
}, f = () => {
|
|
12672
12676
|
var M, h;
|
|
12673
12677
|
(M = S.value) != null && M.length && (z.value = o(b.value, (h = S.value) == null ? void 0 : h.length));
|
|
12674
12678
|
};
|
|
12675
12679
|
return Rn(async () => {
|
|
12676
|
-
await Bn(),
|
|
12680
|
+
await Bn(), P.value = Math.max(s(S.value), yi), f(), window == null || window.addEventListener("resize", B);
|
|
12677
12681
|
}), Is(() => {
|
|
12678
12682
|
window == null || window.removeEventListener("resize", B);
|
|
12679
12683
|
}), (M, h) => {
|
|
@@ -12693,7 +12697,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12693
12697
|
ref_key: "pluginCardContainerRef",
|
|
12694
12698
|
ref: b,
|
|
12695
12699
|
class: "plugin-card-container",
|
|
12696
|
-
style: Ms(
|
|
12700
|
+
style: Ms(D.value)
|
|
12697
12701
|
}, [
|
|
12698
12702
|
(p(!0), I(Ae, null, Ee(d.value, (W, j) => (p(), H(Jo, {
|
|
12699
12703
|
key: `plugin-card-${j}`,
|
|
@@ -12784,18 +12788,18 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
12784
12788
|
overflowY: "hidden",
|
|
12785
12789
|
maxHeight: `${c.value}px`
|
|
12786
12790
|
} : {}), m = Z(!1), k = () => {
|
|
12787
|
-
c.value = Math.max(o(u.value), bi),
|
|
12788
|
-
},
|
|
12791
|
+
c.value = Math.max(o(u.value), bi), P();
|
|
12792
|
+
}, P = () => {
|
|
12789
12793
|
var b, S;
|
|
12790
12794
|
(b = u.value) != null && b.length && (m.value = l(d.value, (S = u.value) == null ? void 0 : S.length));
|
|
12791
12795
|
};
|
|
12792
12796
|
return Rn(async () => {
|
|
12793
|
-
await Bn(), c.value = Math.max(o(u.value), bi),
|
|
12797
|
+
await Bn(), c.value = Math.max(o(u.value), bi), P(), window == null || window.addEventListener("resize", k);
|
|
12794
12798
|
}), Is(() => {
|
|
12795
12799
|
window == null || window.removeEventListener("resize", k);
|
|
12796
12800
|
}), (b, S) => {
|
|
12797
|
-
const
|
|
12798
|
-
return p(), H(
|
|
12801
|
+
const D = V("KCollapse");
|
|
12802
|
+
return p(), H(D, {
|
|
12799
12803
|
modelValue: n.value,
|
|
12800
12804
|
"onUpdate:modelValue": S[0] || (S[0] = (z) => n.value = z),
|
|
12801
12805
|
class: "plugins-collapse",
|
|
@@ -13025,7 +13029,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
13025
13029
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
13026
13030
|
setup(e, { emit: t }) {
|
|
13027
13031
|
var L;
|
|
13028
|
-
const n = e, i = t, a = vr(), s = Wn(), { i18n: { t: o } } = Pe.useI18n(), { pluginMetaData: l } = Pe.usePluginMetaData(), { getMessageFromError: c } = Zn(), { sortAlpha: d, objectsAreEqual: u } = Xn(), A = Z(""), m = Z(!0), k = Z(!1),
|
|
13032
|
+
const n = e, i = t, a = vr(), s = Wn(), { i18n: { t: o } } = Pe.useI18n(), { pluginMetaData: l } = Pe.usePluginMetaData(), { getMessageFromError: c } = Zn(), { sortAlpha: d, objectsAreEqual: u } = Xn(), A = Z(""), m = Z(!0), k = Z(!1), P = Z(""), b = Z([]), S = Z({}), D = Z([]), { axiosInstance: z } = Kt((L = n.config) == null ? void 0 : L.axiosRequestConfig), B = K(() => S.value ? Object.entries(S.value).filter(([v]) => v !== G.CUSTOM_PLUGINS).reduce((v, [, O]) => {
|
|
13029
13033
|
for (const ne of O)
|
|
13030
13034
|
v[ne.id] = ne;
|
|
13031
13035
|
return v;
|
|
@@ -13109,14 +13113,14 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
13109
13113
|
b.value = O ? Object.keys(O) : [];
|
|
13110
13114
|
}
|
|
13111
13115
|
} catch (v) {
|
|
13112
|
-
k.value = !0,
|
|
13116
|
+
k.value = !0, P.value = c(v);
|
|
13113
13117
|
}
|
|
13114
13118
|
if (X.value)
|
|
13115
13119
|
try {
|
|
13116
13120
|
const { data: { data: v } } = await z.get(X.value);
|
|
13117
13121
|
if (v != null && v.length) {
|
|
13118
13122
|
const O = v.reduce((ne, J) => (J.name && ne.push(J.name), ne), []);
|
|
13119
|
-
|
|
13123
|
+
D.value = D.value.concat(O);
|
|
13120
13124
|
}
|
|
13121
13125
|
} catch {
|
|
13122
13126
|
}
|
|
@@ -13152,7 +13156,7 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
13152
13156
|
"icon-variant": "error"
|
|
13153
13157
|
}, {
|
|
13154
13158
|
default: E(() => [
|
|
13155
|
-
y("h3", null, F(
|
|
13159
|
+
y("h3", null, F(P.value), 1)
|
|
13156
13160
|
]),
|
|
13157
13161
|
_: 1
|
|
13158
13162
|
})) : R.value && A.value ? (p(), H(re, {
|
|
@@ -13344,20 +13348,20 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
13344
13348
|
}), o(B, T, W);
|
|
13345
13349
|
}
|
|
13346
13350
|
return B;
|
|
13347
|
-
}), { getMessageFromError: m } = Zn(), { axiosInstance: k } = Kt((z = i.config) == null ? void 0 : z.axiosRequestConfig),
|
|
13351
|
+
}), { getMessageFromError: m } = Zn(), { axiosInstance: k } = Kt((z = i.config) == null ? void 0 : z.axiosRequestConfig), P = K(() => {
|
|
13348
13352
|
var f, M;
|
|
13349
13353
|
let B = `${i.config.apiBaseUrl}${je.form[i.config.app].pluginSchema}`;
|
|
13350
13354
|
return i.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((f = i.config) == null ? void 0 : f.controlPlaneId) || "") : i.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (M = i.config) != null && M.workspace ? `/${i.config.workspace}` : "")), B = B.replace(/{plugin}/gi, i.config.pluginType), B;
|
|
13351
13355
|
}), b = Z({});
|
|
13352
13356
|
fr(b);
|
|
13353
|
-
const S = Z(!1),
|
|
13357
|
+
const S = Z(!1), D = Z("");
|
|
13354
13358
|
return rn(async () => {
|
|
13355
13359
|
S.value = !0;
|
|
13356
13360
|
try {
|
|
13357
|
-
const { data: B } = await k.get(
|
|
13361
|
+
const { data: B } = await k.get(P.value);
|
|
13358
13362
|
b.value = B;
|
|
13359
13363
|
} catch (B) {
|
|
13360
|
-
|
|
13364
|
+
D.value = m(B), n("error:fetch-schema", B);
|
|
13361
13365
|
} finally {
|
|
13362
13366
|
S.value = !1;
|
|
13363
13367
|
}
|
|
@@ -13369,13 +13373,13 @@ const rE = { class: "kong-ui-entities-plugins-list" }, lE = { class: "name-cell-
|
|
|
13369
13373
|
"data-testid": "plugin-config-card-loader",
|
|
13370
13374
|
"table-columns": 2,
|
|
13371
13375
|
type: "table"
|
|
13372
|
-
})) :
|
|
13376
|
+
})) : D.value ? (p(), H(h, {
|
|
13373
13377
|
key: 1,
|
|
13374
13378
|
"data-testid": "plugin-config-card-schema-error",
|
|
13375
13379
|
"icon-variant": "error"
|
|
13376
13380
|
}, {
|
|
13377
13381
|
default: E(() => [
|
|
13378
|
-
y("h3", null, F(
|
|
13382
|
+
y("h3", null, F(D.value), 1)
|
|
13379
13383
|
]),
|
|
13380
13384
|
_: 1
|
|
13381
13385
|
})) : (p(), H(g(hr), {
|