@kong-ui-public/entities-plugins 9.12.5 → 9.13.0
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 +366 -342
- package/dist/entities-plugins.umd.js +3 -3
- package/dist/types/composables/useSchemas.d.ts.map +1 -1
- package/dist/types/definitions/schemas/Confluent.d.ts +3 -0
- package/dist/types/definitions/schemas/Confluent.d.ts.map +1 -0
- package/dist/types/definitions/schemas/KafkaUpstream.d.ts +3 -0
- package/dist/types/definitions/schemas/KafkaUpstream.d.ts.map +1 -0
- package/dist/types/types/plugin-form.d.ts +4 -0
- package/dist/types/types/plugin-form.d.ts.map +1 -1
- package/dist/types/types/plugins/confluent.d.ts +6 -0
- package/dist/types/types/plugins/confluent.d.ts.map +1 -0
- package/dist/types/types/plugins/kafka-upstream.d.ts +6 -0
- package/dist/types/types/plugins/kafka-upstream.d.ts.map +1 -0
- package/package.json +8 -8
|
@@ -4080,14 +4080,14 @@ function rt(e) {
|
|
|
4080
4080
|
return e != null && (t == "object" || t == "function");
|
|
4081
4081
|
}
|
|
4082
4082
|
var Gd = "[object AsyncFunction]", Ud = "[object Function]", Ld = "[object GeneratorFunction]", Dd = "[object Proxy]";
|
|
4083
|
-
function
|
|
4083
|
+
function Ue(e) {
|
|
4084
4084
|
if (!rt(e))
|
|
4085
4085
|
return !1;
|
|
4086
4086
|
var t = xt(e);
|
|
4087
4087
|
return t == Ud || t == Ld || t == Gd || t == Dd;
|
|
4088
4088
|
}
|
|
4089
4089
|
function li(e) {
|
|
4090
|
-
return e != null && _s(e.length) && !
|
|
4090
|
+
return e != null && _s(e.length) && !Ue(e);
|
|
4091
4091
|
}
|
|
4092
4092
|
function ci(e) {
|
|
4093
4093
|
return li(e) ? eo(e) : Pd(e);
|
|
@@ -4155,7 +4155,7 @@ var Xd = /[\\^$.*+?()[\]{}|]/g, Zd = /^\[object .+?Constructor\]$/, Wd = Functio
|
|
|
4155
4155
|
function np(e) {
|
|
4156
4156
|
if (!rt(e) || Jd(e))
|
|
4157
4157
|
return !1;
|
|
4158
|
-
var t =
|
|
4158
|
+
var t = Ue(e) ? tp : Zd;
|
|
4159
4159
|
return t.test(en(e));
|
|
4160
4160
|
}
|
|
4161
4161
|
function ip(e, t) {
|
|
@@ -4671,19 +4671,19 @@ const fo = {
|
|
|
4671
4671
|
},
|
|
4672
4672
|
// Get disabled attr of field
|
|
4673
4673
|
fieldDisabled(e) {
|
|
4674
|
-
return
|
|
4674
|
+
return Ue(e.disabled) ? e.disabled.call(this, this.model, e, this) : Fe(e.disabled) ? !1 : e.disabled;
|
|
4675
4675
|
},
|
|
4676
4676
|
// Get readonly prop of field
|
|
4677
4677
|
fieldReadonly(e) {
|
|
4678
|
-
return
|
|
4678
|
+
return Ue(e.readonly) ? e.readonly.call(this, this.model, e, this) : Fe(e.readonly) ? !1 : e.readonly;
|
|
4679
4679
|
},
|
|
4680
4680
|
// Get featured prop of field
|
|
4681
4681
|
fieldFeatured(e) {
|
|
4682
|
-
return
|
|
4682
|
+
return Ue(e.featured) ? e.featured.call(this, this.model, e, this) : Fe(e.featured) ? !1 : e.featured;
|
|
4683
4683
|
},
|
|
4684
4684
|
// Get required prop of field
|
|
4685
4685
|
fieldRequired(e) {
|
|
4686
|
-
return
|
|
4686
|
+
return Ue(e.required) ? e.required.call(this, this.model, e, this) : Fe(e.required) ? !1 : e.required;
|
|
4687
4687
|
}
|
|
4688
4688
|
}
|
|
4689
4689
|
};
|
|
@@ -5376,60 +5376,60 @@ const Sm = {
|
|
|
5376
5376
|
rla: Tm,
|
|
5377
5377
|
validators: xm,
|
|
5378
5378
|
vfg: Pm
|
|
5379
|
-
}, { t:
|
|
5380
|
-
fieldIsRequired:
|
|
5381
|
-
invalidFormat:
|
|
5382
|
-
numberTooSmall:
|
|
5383
|
-
numberTooBig:
|
|
5384
|
-
invalidNumber:
|
|
5385
|
-
invalidInteger:
|
|
5386
|
-
textTooSmall:
|
|
5387
|
-
textTooBig:
|
|
5388
|
-
thisNotText:
|
|
5389
|
-
thisNotArray:
|
|
5390
|
-
selectMinItems:
|
|
5391
|
-
selectMaxItems:
|
|
5392
|
-
invalidDate:
|
|
5393
|
-
dateIsEarly:
|
|
5394
|
-
dateIsLate:
|
|
5395
|
-
invalidEmail:
|
|
5396
|
-
invalidURL:
|
|
5397
|
-
invalidCard:
|
|
5398
|
-
invalidCardNumber:
|
|
5399
|
-
invalidTextContainNumber:
|
|
5400
|
-
invalidTextContainSpec:
|
|
5401
|
-
},
|
|
5379
|
+
}, { t: Ve } = Et("en-us", nn), qe = {
|
|
5380
|
+
fieldIsRequired: Ve("validators.field_is_required"),
|
|
5381
|
+
invalidFormat: Ve("validators.invalid_format"),
|
|
5382
|
+
numberTooSmall: Ve("validators.number_too_small"),
|
|
5383
|
+
numberTooBig: Ve("validators.number_too_large"),
|
|
5384
|
+
invalidNumber: Ve("validators.invalid_number"),
|
|
5385
|
+
invalidInteger: Ve("validators.invalid_integer"),
|
|
5386
|
+
textTooSmall: Ve("validators.text_too_short"),
|
|
5387
|
+
textTooBig: Ve("validators.text_too_long"),
|
|
5388
|
+
thisNotText: Ve("validators.this_not_text"),
|
|
5389
|
+
thisNotArray: Ve("validators.this_not_array"),
|
|
5390
|
+
selectMinItems: Ve("validators.select_min_items"),
|
|
5391
|
+
selectMaxItems: Ve("validators.select_max_items"),
|
|
5392
|
+
invalidDate: Ve("validators.invalid_date"),
|
|
5393
|
+
dateIsEarly: Ve("validators.date_is_early"),
|
|
5394
|
+
dateIsLate: Ve("validators.date_is_late"),
|
|
5395
|
+
invalidEmail: Ve("validators.invalid_email"),
|
|
5396
|
+
invalidURL: Ve("validators.invalid_url"),
|
|
5397
|
+
invalidCard: Ve("validators.invalid_card"),
|
|
5398
|
+
invalidCardNumber: Ve("validators.invalid_card_number"),
|
|
5399
|
+
invalidTextContainNumber: Ve("validators.invalid_text_contain_number"),
|
|
5400
|
+
invalidTextContainSpec: Ve("validators.invalid_tex_contain_spec")
|
|
5401
|
+
}, Ye = (e, ...t) => {
|
|
5402
5402
|
if (e && t.length > 0)
|
|
5403
5403
|
for (let n = 0; n < t.length; n++)
|
|
5404
5404
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
5405
5405
|
return e;
|
|
5406
|
-
}, lt = (e, t, n = qe) => Fe(e) || e === "" ? t ? [
|
|
5406
|
+
}, lt = (e, t, n = qe) => Fe(e) || e === "" ? t ? [Ye(n.fieldIsRequired)] : [] : null, Xt = {
|
|
5407
5407
|
required: (e, t, n, i = qe) => lt(e, t.required, i) || [],
|
|
5408
5408
|
number: (e, t, n, i = qe) => {
|
|
5409
5409
|
let a = lt(e, t.required, i);
|
|
5410
|
-
return a != null || (a = [], Bm(e) ? (!Fe(t.min) && e < t.min, (i = qe) && a.push(
|
|
5410
|
+
return a != null || (a = [], Bm(e) ? (!Fe(t.min) && e < t.min, (i = qe) && a.push(Ye(i.numberTooSmall, t.min)), !Fe(t.max) && e > t.max, (i = qe) && a.push(Ye(i.numberTooBig, t.max))) : a.push(Ye(i.invalidNumber))), a;
|
|
5411
5411
|
},
|
|
5412
5412
|
integer: (e, t, n, i = qe) => {
|
|
5413
5413
|
let a = lt(e, t.required, i);
|
|
5414
|
-
return a != null || (a = [], a.concat(Xt.number(e, t, n, i)), Rm(e) || a.push(
|
|
5414
|
+
return a != null || (a = [], a.concat(Xt.number(e, t, n, i)), Rm(e) || a.push(Ye(i.invalidInteger))), a;
|
|
5415
5415
|
},
|
|
5416
|
-
double: (e, t, n, i = qe) => lt(e, t.required, i) ?? (!Li(e) || isNaN(e) ? [
|
|
5416
|
+
double: (e, t, n, i = qe) => lt(e, t.required, i) ?? (!Li(e) || isNaN(e) ? [Ye(i.invalidNumber)] : []),
|
|
5417
5417
|
string: (e, t, n, i = qe) => {
|
|
5418
5418
|
let a = lt(e, t.required, i);
|
|
5419
|
-
return a != null || (a = [], qt(e) ? (!Fe(t.min) && e.length < t.min && a.push(
|
|
5419
|
+
return a != null || (a = [], qt(e) ? (!Fe(t.min) && e.length < t.min && a.push(Ye(i.textTooSmall, e.length, t.min)), !Fe(t.max) && e.length > t.max && a.push(Ye(i.textTooBig, e.length, t.max))) : a.push(Ye(i.thisNotText))), a;
|
|
5420
5420
|
},
|
|
5421
5421
|
array: (e, t, n, i = qe) => {
|
|
5422
5422
|
if (t.required) {
|
|
5423
5423
|
if (!Array.isArray(e))
|
|
5424
|
-
return [
|
|
5424
|
+
return [Ye(i.thisNotArray)];
|
|
5425
5425
|
if (e.length === 0)
|
|
5426
|
-
return [
|
|
5426
|
+
return [Ye(i.fieldIsRequired)];
|
|
5427
5427
|
}
|
|
5428
5428
|
if (!Fe(e)) {
|
|
5429
5429
|
if (!Fe(t.min) && e.length < t.min)
|
|
5430
|
-
return [
|
|
5430
|
+
return [Ye(i.selectMinItems, t.min)];
|
|
5431
5431
|
if (!Fe(t.max) && e.length > t.max)
|
|
5432
|
-
return [
|
|
5432
|
+
return [Ye(i.selectMaxItems, t.max)];
|
|
5433
5433
|
}
|
|
5434
5434
|
return [];
|
|
5435
5435
|
},
|
|
@@ -5439,37 +5439,37 @@ const Sm = {
|
|
|
5439
5439
|
a = [];
|
|
5440
5440
|
const s = new Date(e);
|
|
5441
5441
|
if (isNaN(s.getDate()))
|
|
5442
|
-
return [
|
|
5442
|
+
return [Ye(i.invalidDate)];
|
|
5443
5443
|
if (!Fe(t.min)) {
|
|
5444
5444
|
const o = new Date(t.min);
|
|
5445
|
-
s.valueOf() < o.valueOf() && a.push(
|
|
5445
|
+
s.valueOf() < o.valueOf() && a.push(Ye(i.dateIsEarly, cn.format(s), cn.format(o)));
|
|
5446
5446
|
}
|
|
5447
5447
|
if (!Fe(t.max)) {
|
|
5448
5448
|
const o = new Date(t.max);
|
|
5449
|
-
s.valueOf() > o.valueOf() && a.push(
|
|
5449
|
+
s.valueOf() > o.valueOf() && a.push(Ye(i.dateIsLate, cn.format(s), cn.format(o)));
|
|
5450
5450
|
}
|
|
5451
5451
|
return a;
|
|
5452
5452
|
},
|
|
5453
|
-
regexp: (e, t, n, i = qe) => lt(e, t.required, i) ?? (!Fe(t.pattern) && !new RegExp(t.pattern).test(e) ? [
|
|
5454
|
-
email: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e) ? [] : [
|
|
5455
|
-
url: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e) ? [] : [
|
|
5453
|
+
regexp: (e, t, n, i = qe) => lt(e, t.required, i) ?? (!Fe(t.pattern) && !new RegExp(t.pattern).test(e) ? [Ye(i.invalidFormat)] : []),
|
|
5454
|
+
email: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e) ? [] : [Ye(i.invalidEmail)]),
|
|
5455
|
+
url: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e) ? [] : [Ye(i.invalidURL)]),
|
|
5456
5456
|
creditCard: (e, t, n, i = qe) => {
|
|
5457
5457
|
const a = lt(e, t.required, i);
|
|
5458
5458
|
if (a != null) return a;
|
|
5459
5459
|
const s = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, o = e.replace(/[^0-9]+/g, "");
|
|
5460
5460
|
if (!s.test(o))
|
|
5461
|
-
return [
|
|
5461
|
+
return [Ye(i.invalidCard)];
|
|
5462
5462
|
let r = 0, c, d, u;
|
|
5463
5463
|
for (let A = o.length - 1; A >= 0; A--)
|
|
5464
5464
|
c = o.substring(A, A + 1), d = parseInt(c, 10), u ? (d *= 2, d >= 10 ? r += d % 10 + 1 : r += d) : r += d, u = !u;
|
|
5465
|
-
return r % 10 === 0 && o ? [] : [
|
|
5465
|
+
return r % 10 === 0 && o ? [] : [Ye(i.invalidCardNumber)];
|
|
5466
5466
|
},
|
|
5467
|
-
alpha: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^[a-zA-Z]*$/.test(e) ? [] : [
|
|
5468
|
-
alphaNumeric: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^[a-zA-Z0-9]*$/.test(e) ? [] : [
|
|
5467
|
+
alpha: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^[a-zA-Z]*$/.test(e) ? [] : [Ye(i.invalidTextContainNumber)]),
|
|
5468
|
+
alphaNumeric: (e, t, n, i = qe) => lt(e, t.required, i) ?? (/^[a-zA-Z0-9]*$/.test(e) ? [] : [Ye(i.invalidTextContainSpec)])
|
|
5469
5469
|
};
|
|
5470
5470
|
Object.keys(Xt).forEach((e) => {
|
|
5471
5471
|
const t = Xt[e];
|
|
5472
|
-
|
|
5472
|
+
Ue(t) && (t.locale = (n) => (i, a, s) => t(i, a, s, wm(n, qe)));
|
|
5473
5473
|
});
|
|
5474
5474
|
function ts(e) {
|
|
5475
5475
|
return qt(e) ? Xt[e] != null ? Xt[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
@@ -5504,11 +5504,11 @@ const Bt = {
|
|
|
5504
5504
|
cache: !1,
|
|
5505
5505
|
get() {
|
|
5506
5506
|
let e;
|
|
5507
|
-
return
|
|
5507
|
+
return Ue(Ce(this.schema, "get")) ? e = this.schema.get(this.model) : e = Ce(this.model, this.schema.model), this.formatValueToField(e);
|
|
5508
5508
|
},
|
|
5509
5509
|
set(e) {
|
|
5510
5510
|
const t = this.value;
|
|
5511
|
-
e = this.formatValueToModel(e),
|
|
5511
|
+
e = this.formatValueToModel(e), Ue(e) ? e(e, t) : this.updateModelValue(e, t);
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
5514
5514
|
},
|
|
@@ -5526,7 +5526,7 @@ const Bt = {
|
|
|
5526
5526
|
n.push(s(this.value, this.schema, this.model));
|
|
5527
5527
|
else {
|
|
5528
5528
|
const o = s(this.value, this.schema, this.model);
|
|
5529
|
-
o &&
|
|
5529
|
+
o && Ue(o.then) ? o.then((r) => {
|
|
5530
5530
|
r && (this.errors = this.errors.concat(r));
|
|
5531
5531
|
const c = this.errors.length === 0;
|
|
5532
5532
|
this.$emit("validated", c, this.errors, this);
|
|
@@ -5538,21 +5538,21 @@ const Bt = {
|
|
|
5538
5538
|
let s = [];
|
|
5539
5539
|
_e(vo(a), (r) => {
|
|
5540
5540
|
Array.isArray(r) && r.length > 0 ? s = s.concat(r) : qt(r) && s.push(r);
|
|
5541
|
-
}),
|
|
5541
|
+
}), Ue(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, s, this.schema);
|
|
5542
5542
|
const o = s.length === 0;
|
|
5543
5543
|
return e || this.$emit("validated", o, s, this), this.errors = s, s;
|
|
5544
5544
|
};
|
|
5545
5545
|
return t ? Promise.all(n).then(i) : i(n);
|
|
5546
5546
|
},
|
|
5547
5547
|
debouncedValidate() {
|
|
5548
|
-
|
|
5548
|
+
Ue(this.debouncedValidateFunc) || (this.debouncedValidateFunc = Ln(
|
|
5549
5549
|
this.validate.bind(this),
|
|
5550
5550
|
Ce(this.schema, "validateDebounceTime", Ce(this.formOptions, "validateDebounceTime", 500))
|
|
5551
5551
|
)), this.debouncedValidateFunc();
|
|
5552
5552
|
},
|
|
5553
5553
|
updateModelValue(e, t) {
|
|
5554
5554
|
let n = !1;
|
|
5555
|
-
|
|
5555
|
+
Ue(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), Ue(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), Ce(this.formOptions, "validateAfterChanged", !1) === !0 && (Ce(this.schema, "validateDebounceTime", Ce(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
|
|
5556
5556
|
},
|
|
5557
5557
|
clearValidationErrors() {
|
|
5558
5558
|
this.errors.splice(0);
|
|
@@ -5592,7 +5592,7 @@ const Bt = {
|
|
|
5592
5592
|
return e;
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
|
-
},
|
|
5595
|
+
}, Le = (e, t) => {
|
|
5596
5596
|
const n = e.__vccOpts || e;
|
|
5597
5597
|
for (const [i, a] of t)
|
|
5598
5598
|
n[i] = a;
|
|
@@ -5651,7 +5651,7 @@ function Dm(e, t, n, i, a, s) {
|
|
|
5651
5651
|
], 2)
|
|
5652
5652
|
]);
|
|
5653
5653
|
}
|
|
5654
|
-
const jm = /* @__PURE__ */
|
|
5654
|
+
const jm = /* @__PURE__ */ Le(Gm, [["render", Dm], ["__scopeId", "data-v-acfccff7"]]), Ym = { class: "array-card-container" }, Hm = /* @__PURE__ */ ye({
|
|
5655
5655
|
__name: "FieldArrayCardContainer",
|
|
5656
5656
|
props: {
|
|
5657
5657
|
model: {
|
|
@@ -5691,7 +5691,7 @@ const jm = /* @__PURE__ */ Ue(Gm, [["render", Dm], ["__scopeId", "data-v-acfccff
|
|
|
5691
5691
|
]);
|
|
5692
5692
|
};
|
|
5693
5693
|
}
|
|
5694
|
-
}), Mo = /* @__PURE__ */
|
|
5694
|
+
}), Mo = /* @__PURE__ */ Le(Hm, [["__scopeId", "data-v-96055692"]]), Vm = { class: "array-item-wrapper" }, Nm = { class: "array-item" }, Fm = { class: "array-item-after" }, Km = /* @__PURE__ */ ye({
|
|
5695
5695
|
__name: "FieldArrayItem",
|
|
5696
5696
|
props: {
|
|
5697
5697
|
model: {
|
|
@@ -5723,7 +5723,7 @@ const jm = /* @__PURE__ */ Ue(Gm, [["render", Dm], ["__scopeId", "data-v-acfccff
|
|
|
5723
5723
|
]);
|
|
5724
5724
|
};
|
|
5725
5725
|
}
|
|
5726
|
-
}), Ro = /* @__PURE__ */
|
|
5726
|
+
}), Ro = /* @__PURE__ */ Le(Km, [["__scopeId", "data-v-eb9975cc"]]), zm = { class: "multi-item-wrapper" }, Jm = /* @__PURE__ */ ye({
|
|
5727
5727
|
__name: "FieldArrayMultiItem",
|
|
5728
5728
|
emits: ["remove-item"],
|
|
5729
5729
|
setup(e) {
|
|
@@ -5745,7 +5745,7 @@ const jm = /* @__PURE__ */ Ue(Gm, [["render", Dm], ["__scopeId", "data-v-acfccff
|
|
|
5745
5745
|
]);
|
|
5746
5746
|
};
|
|
5747
5747
|
}
|
|
5748
|
-
}), ko = /* @__PURE__ */
|
|
5748
|
+
}), ko = /* @__PURE__ */ Le(Jm, [["__scopeId", "data-v-37458a0a"]]), qm = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", Qm = (e) => e ? e.length === 36 && new RegExp(`^${qm}$`).test(e) : !1, Ei = 50, Kt = {
|
|
5749
5749
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
5750
5750
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
5751
5751
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -5927,17 +5927,17 @@ function ef(e, t, n, i, a, s) {
|
|
|
5927
5927
|
_: 1
|
|
5928
5928
|
}, 8, ["text"]);
|
|
5929
5929
|
}
|
|
5930
|
-
const So = /* @__PURE__ */
|
|
5930
|
+
const So = /* @__PURE__ */ Le(Zm, [["render", ef], ["__scopeId", "data-v-40a272a2"]]);
|
|
5931
5931
|
function tf(e) {
|
|
5932
5932
|
const t = $([]), n = $(null), i = (y) => qt(y) ? Xt[y] != null ? Xt[y] : (console.warn(`'${y}' is not a validator function!`), null) : y, a = J({
|
|
5933
5933
|
get() {
|
|
5934
5934
|
var y, S;
|
|
5935
5935
|
let O;
|
|
5936
|
-
return
|
|
5936
|
+
return Ue(Ce(e.schema, "get")) ? O = e.schema.get((y = e.model) == null ? void 0 : y.value) : O = Ce((S = e.model) == null ? void 0 : S.value, e.schema.model), I(O);
|
|
5937
5937
|
},
|
|
5938
5938
|
set(y) {
|
|
5939
5939
|
const S = a;
|
|
5940
|
-
y = D(y),
|
|
5940
|
+
y = D(y), Ue(y) ? y(y, S) : r(y, S);
|
|
5941
5941
|
}
|
|
5942
5942
|
}), s = (y) => {
|
|
5943
5943
|
var S;
|
|
@@ -5954,7 +5954,7 @@ function tf(e) {
|
|
|
5954
5954
|
E.push(h(a.value, e.schema, (k = e.model) == null ? void 0 : k.value));
|
|
5955
5955
|
else {
|
|
5956
5956
|
const W = h(a.value, e.schema, (x = e.model) == null ? void 0 : x.value);
|
|
5957
|
-
W &&
|
|
5957
|
+
W && Ue(W.then) ? W.then((j) => {
|
|
5958
5958
|
j && (t.value = t.value.concat(j));
|
|
5959
5959
|
const V = t.value.length === 0;
|
|
5960
5960
|
e.emitValidated && e.emitValidated({ isValid: V, errors: t.value, field: e.schema });
|
|
@@ -5967,7 +5967,7 @@ function tf(e) {
|
|
|
5967
5967
|
let x = [];
|
|
5968
5968
|
if (_e(vo(C), (W) => {
|
|
5969
5969
|
Array.isArray(W) && W.length > 0 ? x = x.concat(W) : qt(W) && x.push(W);
|
|
5970
|
-
}),
|
|
5970
|
+
}), Ue((h = e.schema) == null ? void 0 : h.onValidated) && e.schema.onValidated((k = e.model) == null ? void 0 : k.value, x, e.schema), !y) {
|
|
5971
5971
|
const W = x.length === 0;
|
|
5972
5972
|
e.emitValidated && e.emitValidated({ isValid: W, errors: x, field: e.schema });
|
|
5973
5973
|
}
|
|
@@ -5975,14 +5975,14 @@ function tf(e) {
|
|
|
5975
5975
|
};
|
|
5976
5976
|
return Q ? Promise.all(E).then(f) : f(E);
|
|
5977
5977
|
}, o = () => {
|
|
5978
|
-
|
|
5978
|
+
Ue(n.value) ? n.value() : n.value = Ln(
|
|
5979
5979
|
s,
|
|
5980
5980
|
Ce(e.schema, "validateDebounceTime", Ce(e.formOptions, "validateDebounceTime", 500))
|
|
5981
5981
|
);
|
|
5982
5982
|
}, r = (y, S) => {
|
|
5983
5983
|
var O, Q, E;
|
|
5984
5984
|
let f = !1;
|
|
5985
|
-
|
|
5985
|
+
Ue(e.schema.set) ? (e.schema.set((O = e.model) == null ? void 0 : O.value, y), f = !0) : e.schema.model && (d(e.schema.model, y), f = !0), f && (e.emitModelUpdated && (Q = e.model) != null && Q.value && e.emitModelUpdated({ value: y, model: e.schema.model }), Ue(e.schema.onChanged) && e.schema.onChanged((E = e.model) == null ? void 0 : E.value, y, S, e.schema), Ce(e.formOptions, "validateAfterChanged", !1) === !0 && (Ce(e.schema, "validateDebounceTime", Ce(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : s()));
|
|
5986
5986
|
}, c = () => {
|
|
5987
5987
|
t.value.splice(0);
|
|
5988
5988
|
}, d = (y, S) => {
|
|
@@ -6102,7 +6102,7 @@ const Ut = {
|
|
|
6102
6102
|
u.value = E, r(E, E);
|
|
6103
6103
|
}, O = $(null), Q = () => {
|
|
6104
6104
|
var E;
|
|
6105
|
-
|
|
6105
|
+
Ue(O.value) && ((E = O.value) == null || E.flush());
|
|
6106
6106
|
};
|
|
6107
6107
|
return Dn(() => {
|
|
6108
6108
|
switch (A.value) {
|
|
@@ -6169,7 +6169,7 @@ const Ut = {
|
|
|
6169
6169
|
]);
|
|
6170
6170
|
};
|
|
6171
6171
|
}
|
|
6172
|
-
}), To = /* @__PURE__ */
|
|
6172
|
+
}), To = /* @__PURE__ */ Le(af, [["__scopeId", "data-v-fe1132bb"]]), sf = {
|
|
6173
6173
|
name: "FieldMetric",
|
|
6174
6174
|
components: { AddIcon: Ki, TrashIcon: jn },
|
|
6175
6175
|
mixins: [Bt],
|
|
@@ -6215,7 +6215,7 @@ function rf(e, t, n, i, a, s) {
|
|
|
6215
6215
|
})
|
|
6216
6216
|
], 2);
|
|
6217
6217
|
}
|
|
6218
|
-
const xo = /* @__PURE__ */
|
|
6218
|
+
const xo = /* @__PURE__ */ Le(sf, [["render", rf]]), lf = {
|
|
6219
6219
|
mixins: [Bt],
|
|
6220
6220
|
emits: ["modelUpdated"],
|
|
6221
6221
|
data() {
|
|
@@ -6327,7 +6327,7 @@ function yf(e, t, n, i, a, s) {
|
|
|
6327
6327
|
[r, a.attributes]
|
|
6328
6328
|
]);
|
|
6329
6329
|
}
|
|
6330
|
-
const Po = /* @__PURE__ */
|
|
6330
|
+
const Po = /* @__PURE__ */ Le(lf, [["render", yf], ["__scopeId", "data-v-b7e3dcd7"]]), bf = {
|
|
6331
6331
|
components: {
|
|
6332
6332
|
TrashIcon: jn
|
|
6333
6333
|
},
|
|
@@ -6522,7 +6522,7 @@ function xf(e, t, n, i, a, s) {
|
|
|
6522
6522
|
], 2)
|
|
6523
6523
|
], 10, Ef);
|
|
6524
6524
|
}
|
|
6525
|
-
const Go = /* @__PURE__ */
|
|
6525
|
+
const Go = /* @__PURE__ */ Le(bf, [["render", xf], ["__scopeId", "data-v-9c0cacfc"]]), Pf = { class: "radio-selection-group" }, Gf = /* @__PURE__ */ ye({
|
|
6526
6526
|
__name: "FieldRadio",
|
|
6527
6527
|
props: {
|
|
6528
6528
|
disabled: {
|
|
@@ -6595,7 +6595,7 @@ const Go = /* @__PURE__ */ Ue(bf, [["render", xf], ["__scopeId", "data-v-9c0cacf
|
|
|
6595
6595
|
]);
|
|
6596
6596
|
};
|
|
6597
6597
|
}
|
|
6598
|
-
}), Uo = /* @__PURE__ */
|
|
6598
|
+
}), Uo = /* @__PURE__ */ Le(Gf, [["__scopeId", "data-v-09b8afda"]]), Lo = /* @__PURE__ */ ye({
|
|
6599
6599
|
__name: "FieldSelect",
|
|
6600
6600
|
props: {
|
|
6601
6601
|
disabled: {
|
|
@@ -6884,7 +6884,7 @@ function Hf(e, t, n, i, a, s) {
|
|
|
6884
6884
|
}, 8, ["class", "data-testid", "onClick"])
|
|
6885
6885
|
], 10, Lf)) : ie("", !0);
|
|
6886
6886
|
}
|
|
6887
|
-
const Vf = /* @__PURE__ */
|
|
6887
|
+
const Vf = /* @__PURE__ */ Le(Uf, [["render", Hf], ["__scopeId", "data-v-a569ac75"]]), Nf = { class: "form-field-wrapper field-checkbox" }, Ff = /* @__PURE__ */ ye({
|
|
6888
6888
|
__name: "FieldCheckbox",
|
|
6889
6889
|
props: {
|
|
6890
6890
|
disabled: {
|
|
@@ -6953,7 +6953,7 @@ const Vf = /* @__PURE__ */ Ue(Uf, [["render", Hf], ["__scopeId", "data-v-a569ac7
|
|
|
6953
6953
|
]);
|
|
6954
6954
|
};
|
|
6955
6955
|
}
|
|
6956
|
-
}), Kf = /* @__PURE__ */
|
|
6956
|
+
}), Kf = /* @__PURE__ */ Le(Ff, [["__scopeId", "data-v-6b4ee1cd"]]);
|
|
6957
6957
|
var zf = 4;
|
|
6958
6958
|
function ns(e) {
|
|
6959
6959
|
return Sn(e, zf);
|
|
@@ -7077,7 +7077,7 @@ const eh = {
|
|
|
7077
7077
|
this.comboExpanded = !this.comboExpanded;
|
|
7078
7078
|
}
|
|
7079
7079
|
}
|
|
7080
|
-
}, th = /* @__PURE__ */
|
|
7080
|
+
}, th = /* @__PURE__ */ Le(eh, [["render", $f]]), nh = {
|
|
7081
7081
|
name: "FieldKeyValuePairs",
|
|
7082
7082
|
components: { TrashIcon: jn },
|
|
7083
7083
|
mixins: [Bt],
|
|
@@ -7200,7 +7200,7 @@ function lh(e, t, n, i, a, s) {
|
|
|
7200
7200
|
}, 8, ["class", "data-testid", "onClick"])
|
|
7201
7201
|
]);
|
|
7202
7202
|
}
|
|
7203
|
-
const ch = /* @__PURE__ */
|
|
7203
|
+
const ch = /* @__PURE__ */ Le(nh, [["render", lh], ["__scopeId", "data-v-70998d5b"]]), uh = /* @__PURE__ */ ye({
|
|
7204
7204
|
__name: "FieldLabel",
|
|
7205
7205
|
props: {
|
|
7206
7206
|
disabled: {
|
|
@@ -7248,7 +7248,7 @@ const ch = /* @__PURE__ */ Ue(nh, [["render", lh], ["__scopeId", "data-v-70998d5
|
|
|
7248
7248
|
], 2);
|
|
7249
7249
|
};
|
|
7250
7250
|
}
|
|
7251
|
-
}), dh = /* @__PURE__ */
|
|
7251
|
+
}), dh = /* @__PURE__ */ Le(uh, [["__scopeId", "data-v-d046a15a"]]), ph = /* @__PURE__ */ ye({
|
|
7252
7252
|
__name: "FieldMultiselect",
|
|
7253
7253
|
props: {
|
|
7254
7254
|
disabled: {
|
|
@@ -7421,7 +7421,7 @@ function Eh(e, t, n, i, a, s) {
|
|
|
7421
7421
|
]))), 128))
|
|
7422
7422
|
]);
|
|
7423
7423
|
}
|
|
7424
|
-
const wh = /* @__PURE__ */
|
|
7424
|
+
const wh = /* @__PURE__ */ Le(Ah, [["render", Eh], ["__scopeId", "data-v-56d57edb"]]), Ch = { class: "form-field-wrapper" }, Bh = /* @__PURE__ */ ye({
|
|
7425
7425
|
__name: "FieldSwitch",
|
|
7426
7426
|
props: {
|
|
7427
7427
|
disabled: {
|
|
@@ -7573,7 +7573,7 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
|
|
|
7573
7573
|
]);
|
|
7574
7574
|
};
|
|
7575
7575
|
}
|
|
7576
|
-
}), Mh = /* @__PURE__ */
|
|
7576
|
+
}), Mh = /* @__PURE__ */ Le(Oh, [["__scopeId", "data-v-0e146fba"]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7577
7577
|
__proto__: null,
|
|
7578
7578
|
FieldAdvanced: jm,
|
|
7579
7579
|
FieldArray: Vf,
|
|
@@ -7695,7 +7695,7 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
|
|
|
7695
7695
|
},
|
|
7696
7696
|
// Get current hint.
|
|
7697
7697
|
fieldHint(e) {
|
|
7698
|
-
return
|
|
7698
|
+
return Ue(e.hint) ? e.hint.call(this, this.model, e, this) : e.hint;
|
|
7699
7699
|
},
|
|
7700
7700
|
fieldErrors(e) {
|
|
7701
7701
|
return this.errors.filter((t) => t.field.fieldName === e.fieldName).map((t) => t.error);
|
|
@@ -7810,7 +7810,7 @@ function Hh(e, t, n, i, a, s) {
|
|
|
7810
7810
|
])) : ie("", !0)
|
|
7811
7811
|
], 2);
|
|
7812
7812
|
}
|
|
7813
|
-
const Vh = /* @__PURE__ */
|
|
7813
|
+
const Vh = /* @__PURE__ */ Le(kh, [["render", Hh], ["__scopeId", "data-v-0cb2e226"]]), Nh = {
|
|
7814
7814
|
name: "FormGenerator",
|
|
7815
7815
|
components: { formGroup: Vh },
|
|
7816
7816
|
mixins: [fo],
|
|
@@ -7915,7 +7915,7 @@ const Vh = /* @__PURE__ */ Ue(kh, [["render", Hh], ["__scopeId", "data-v-0cb2e22
|
|
|
7915
7915
|
methods: {
|
|
7916
7916
|
// Get visible prop of field
|
|
7917
7917
|
fieldVisible(e) {
|
|
7918
|
-
return
|
|
7918
|
+
return Ue(e.visible) ? e.visible.call(this, this.model, e, this) : Fe(e.visible) ? !0 : e.visible;
|
|
7919
7919
|
},
|
|
7920
7920
|
// Child field executed validation
|
|
7921
7921
|
onFieldValidated(e, t, n) {
|
|
@@ -7939,7 +7939,7 @@ const Vh = /* @__PURE__ */ Ue(kh, [["render", Hh], ["__scopeId", "data-v-0cb2e22
|
|
|
7939
7939
|
e === null && (e = Ce(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
7940
7940
|
const t = [], n = [];
|
|
7941
7941
|
_e(this.$refs.children, (a) => {
|
|
7942
|
-
|
|
7942
|
+
Ue(a.validate) && (t.push(a.$refs.child), n.push(a.$refs.child.validate(!0)));
|
|
7943
7943
|
});
|
|
7944
7944
|
const i = (a) => {
|
|
7945
7945
|
const s = [];
|
|
@@ -8106,7 +8106,7 @@ function zh(e, t, n, i, a, s) {
|
|
|
8106
8106
|
], 64))), 128))
|
|
8107
8107
|
])) : ie("", !0);
|
|
8108
8108
|
}
|
|
8109
|
-
const st = /* @__PURE__ */
|
|
8109
|
+
const st = /* @__PURE__ */ Le(Nh, [["render", zh]]), is = /* @__PURE__ */ new Set([
|
|
8110
8110
|
"config-client_id",
|
|
8111
8111
|
"config-client_secret",
|
|
8112
8112
|
"config-issuer"
|
|
@@ -8416,7 +8416,7 @@ function ev(e, t, n, i, a, s) {
|
|
|
8416
8416
|
}, 8, ["tabs"])
|
|
8417
8417
|
]);
|
|
8418
8418
|
}
|
|
8419
|
-
const tv = /* @__PURE__ */
|
|
8419
|
+
const tv = /* @__PURE__ */ Le(Jh, [["render", ev], ["__scopeId", "data-v-bb72c68e"]]), nv = /* @__PURE__ */ ye({
|
|
8420
8420
|
__name: "PostFunction",
|
|
8421
8421
|
props: {
|
|
8422
8422
|
formModel: {
|
|
@@ -8459,7 +8459,7 @@ const tv = /* @__PURE__ */ Ue(Jh, [["render", ev], ["__scopeId", "data-v-bb72c68
|
|
|
8459
8459
|
onModelUpdated: e.onModelUpdated
|
|
8460
8460
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : ie("", !0);
|
|
8461
8461
|
}
|
|
8462
|
-
}), iv = /* @__PURE__ */
|
|
8462
|
+
}), iv = /* @__PURE__ */ Le(nv, [["__scopeId", "data-v-f54f37ae"]]), av = /* @__PURE__ */ ye({
|
|
8463
8463
|
__name: "ExitTransformer",
|
|
8464
8464
|
props: {
|
|
8465
8465
|
formModel: {
|
|
@@ -8502,7 +8502,7 @@ const tv = /* @__PURE__ */ Ue(Jh, [["render", ev], ["__scopeId", "data-v-bb72c68
|
|
|
8502
8502
|
onModelUpdated: e.onModelUpdated
|
|
8503
8503
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : ie("", !0);
|
|
8504
8504
|
}
|
|
8505
|
-
}), sv = /* @__PURE__ */
|
|
8505
|
+
}), sv = /* @__PURE__ */ Le(av, [["__scopeId", "data-v-0d5c541f"]]), ov = {
|
|
8506
8506
|
fields: [
|
|
8507
8507
|
{
|
|
8508
8508
|
inputType: "text",
|
|
@@ -8818,7 +8818,7 @@ const tv = /* @__PURE__ */ Ue(Jh, [["render", ev], ["__scopeId", "data-v-bb72c68
|
|
|
8818
8818
|
]);
|
|
8819
8819
|
};
|
|
8820
8820
|
}
|
|
8821
|
-
}), mv = /* @__PURE__ */
|
|
8821
|
+
}), mv = /* @__PURE__ */ Le(gv, [["__scopeId", "data-v-07cecf5b"]]), fv = { class: "rla-form-basic-fields" }, hv = { class: "rla-form-request-limits-subtitle" }, vv = { class: "rla-form-request-limits-content" }, yv = { class: "rla-form-window-type" }, bv = ["innerHTML"], Ev = { class: "rla-form-window-type-radios" }, wv = { class: "rla-form-request-limits-items" }, Cv = { class: "rla-form-request-limits-row" }, Bv = ["id"], Iv = { class: "rla-form-request-limits-actions" }, Ov = {
|
|
8822
8822
|
key: 0,
|
|
8823
8823
|
class: "rla-form-request-limits-examples"
|
|
8824
8824
|
}, Mv = { class: "rla-form-request-limits-examples-badges" }, Rv = ["innerHTML"], kv = {
|
|
@@ -9244,7 +9244,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9244
9244
|
], 64);
|
|
9245
9245
|
};
|
|
9246
9246
|
}
|
|
9247
|
-
}), Tv = /* @__PURE__ */
|
|
9247
|
+
}), Tv = /* @__PURE__ */ Le(Sv, [["__scopeId", "data-v-e9e76a93"]]), xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9248
9248
|
__proto__: null,
|
|
9249
9249
|
ACMEForm: mv,
|
|
9250
9250
|
ExitTransformer: sv,
|
|
@@ -9457,7 +9457,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9457
9457
|
placeholder: "Select valid protocols for the plugin",
|
|
9458
9458
|
styleClasses: "plugin-protocols-select"
|
|
9459
9459
|
}
|
|
9460
|
-
},
|
|
9460
|
+
}, Ge = {
|
|
9461
9461
|
type: "array",
|
|
9462
9462
|
valueType: "string",
|
|
9463
9463
|
valueArrayType: "array",
|
|
@@ -9642,46 +9642,46 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9642
9642
|
})
|
|
9643
9643
|
}), Kv), jo = {
|
|
9644
9644
|
"config-add-json": {
|
|
9645
|
-
...
|
|
9645
|
+
...Ge,
|
|
9646
9646
|
label: "Config.Add.Json",
|
|
9647
9647
|
inputAttributes: {
|
|
9648
|
-
...
|
|
9648
|
+
...Ge.inputAttributes,
|
|
9649
9649
|
type: "textarea",
|
|
9650
9650
|
max: !1
|
|
9651
9651
|
}
|
|
9652
9652
|
},
|
|
9653
9653
|
"config-append-json": {
|
|
9654
|
-
...
|
|
9654
|
+
...Ge,
|
|
9655
9655
|
label: "Config.Append.Json",
|
|
9656
9656
|
inputAttributes: {
|
|
9657
|
-
...
|
|
9657
|
+
...Ge.inputAttributes,
|
|
9658
9658
|
type: "textarea",
|
|
9659
9659
|
max: !1
|
|
9660
9660
|
}
|
|
9661
9661
|
},
|
|
9662
9662
|
"config-remove-json": {
|
|
9663
|
-
...
|
|
9663
|
+
...Ge,
|
|
9664
9664
|
label: "Config.Remove.Json",
|
|
9665
9665
|
inputAttributes: {
|
|
9666
|
-
...
|
|
9666
|
+
...Ge.inputAttributes,
|
|
9667
9667
|
type: "textarea",
|
|
9668
9668
|
max: !1
|
|
9669
9669
|
}
|
|
9670
9670
|
},
|
|
9671
9671
|
"config-rename-json": {
|
|
9672
|
-
...
|
|
9672
|
+
...Ge,
|
|
9673
9673
|
label: "Config.Rename.Json",
|
|
9674
9674
|
inputAttributes: {
|
|
9675
|
-
...
|
|
9675
|
+
...Ge.inputAttributes,
|
|
9676
9676
|
type: "textarea",
|
|
9677
9677
|
max: !1
|
|
9678
9678
|
}
|
|
9679
9679
|
},
|
|
9680
9680
|
"config-replace-json": {
|
|
9681
|
-
...
|
|
9681
|
+
...Ge,
|
|
9682
9682
|
label: "Config.Replace.Json",
|
|
9683
9683
|
inputAttributes: {
|
|
9684
|
-
...
|
|
9684
|
+
...Ge.inputAttributes,
|
|
9685
9685
|
type: "textarea",
|
|
9686
9686
|
max: !1
|
|
9687
9687
|
}
|
|
@@ -9689,10 +9689,10 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9689
9689
|
}, Jv = {
|
|
9690
9690
|
...jo,
|
|
9691
9691
|
"config-allow-json": {
|
|
9692
|
-
...
|
|
9692
|
+
...Ge,
|
|
9693
9693
|
label: "Config.Allow.Json",
|
|
9694
9694
|
inputAttributes: {
|
|
9695
|
-
...
|
|
9695
|
+
...Ge.inputAttributes,
|
|
9696
9696
|
type: "textarea",
|
|
9697
9697
|
max: !1
|
|
9698
9698
|
}
|
|
@@ -9703,19 +9703,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9703
9703
|
max: !1
|
|
9704
9704
|
},
|
|
9705
9705
|
"config-transform-functions": {
|
|
9706
|
-
...
|
|
9706
|
+
...Ge,
|
|
9707
9707
|
label: "Config.Transform.Functions",
|
|
9708
9708
|
inputAttributes: {
|
|
9709
|
-
...
|
|
9709
|
+
...Ge.inputAttributes,
|
|
9710
9710
|
type: "textarea",
|
|
9711
9711
|
max: !1
|
|
9712
9712
|
}
|
|
9713
9713
|
},
|
|
9714
9714
|
"config-transform-json": {
|
|
9715
|
-
...
|
|
9715
|
+
...Ge,
|
|
9716
9716
|
label: "Config.Transform.Json",
|
|
9717
9717
|
inputAttributes: {
|
|
9718
|
-
...
|
|
9718
|
+
...Ge.inputAttributes,
|
|
9719
9719
|
type: "textarea",
|
|
9720
9720
|
max: !1
|
|
9721
9721
|
}
|
|
@@ -9937,6 +9937,24 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9937
9937
|
keyFromObject: "id"
|
|
9938
9938
|
}
|
|
9939
9939
|
}, $v = {
|
|
9940
|
+
"config-message_by_lua_functions": {
|
|
9941
|
+
...Ge,
|
|
9942
|
+
inputAttributes: {
|
|
9943
|
+
...Ge.inputAttributes,
|
|
9944
|
+
type: "textarea",
|
|
9945
|
+
max: !1
|
|
9946
|
+
}
|
|
9947
|
+
}
|
|
9948
|
+
}, ey = {
|
|
9949
|
+
"config-message_by_lua_functions": {
|
|
9950
|
+
...Ge,
|
|
9951
|
+
inputAttributes: {
|
|
9952
|
+
...Ge.inputAttributes,
|
|
9953
|
+
type: "textarea",
|
|
9954
|
+
max: !1
|
|
9955
|
+
}
|
|
9956
|
+
}
|
|
9957
|
+
}, ty = {
|
|
9940
9958
|
"config-static_tags": {
|
|
9941
9959
|
...fi,
|
|
9942
9960
|
items: {
|
|
@@ -9962,10 +9980,10 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
9962
9980
|
}
|
|
9963
9981
|
}
|
|
9964
9982
|
}
|
|
9965
|
-
},
|
|
9983
|
+
}, ny = (e, t) => {
|
|
9966
9984
|
const n = e.model.startsWith("config-"), i = t.model.startsWith("config-");
|
|
9967
9985
|
return n && !i ? 1 : !n && i ? -1 : 0;
|
|
9968
|
-
}, Yo = (e, t) => (e.order ?? 0) - (t.order ?? 0), os = (e, t) =>
|
|
9986
|
+
}, Yo = (e, t) => (e.order ?? 0) - (t.order ?? 0), os = (e, t) => ny(e, t) || Yo(e, t) || e.model.localeCompare(t.model), iy = (e) => {
|
|
9969
9987
|
const { capitalize: t } = Fi(), { convertToDotNotation: n } = Ks(), { i18n: { t: i } } = ri(), a = {
|
|
9970
9988
|
"application-registration": {
|
|
9971
9989
|
overwriteDefault: !0,
|
|
@@ -10048,13 +10066,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10048
10066
|
...Jv
|
|
10049
10067
|
},
|
|
10050
10068
|
zipkin: {
|
|
10051
|
-
|
|
10069
|
+
...ty
|
|
10052
10070
|
},
|
|
10053
10071
|
"upstream-oauth": {
|
|
10054
10072
|
...Wv
|
|
10055
10073
|
},
|
|
10056
10074
|
saml: {
|
|
10057
10075
|
...Qv
|
|
10076
|
+
},
|
|
10077
|
+
"kafka-upstream": {
|
|
10078
|
+
...$v
|
|
10079
|
+
},
|
|
10080
|
+
confluent: {
|
|
10081
|
+
...ey
|
|
10058
10082
|
}
|
|
10059
10083
|
}, s = () => ["created_at", "updated_at", "id"], o = (f, C, h) => {
|
|
10060
10084
|
let k = {};
|
|
@@ -10158,11 +10182,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10158
10182
|
fields: [{
|
|
10159
10183
|
schema: {
|
|
10160
10184
|
fields: [{
|
|
10161
|
-
...
|
|
10185
|
+
...Ge,
|
|
10162
10186
|
model: f.model,
|
|
10163
10187
|
valueArrayType: C === "integer" ? "number" : C || "string",
|
|
10164
10188
|
inputAttributes: {
|
|
10165
|
-
...
|
|
10189
|
+
...Ge.inputAttributes,
|
|
10166
10190
|
type: C === "integer" ? "number" : "text",
|
|
10167
10191
|
inputMode: C === "integer" ? "numeric" : "text"
|
|
10168
10192
|
}
|
|
@@ -10231,11 +10255,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10231
10255
|
customSchemas: a,
|
|
10232
10256
|
typedefs: dn
|
|
10233
10257
|
};
|
|
10234
|
-
},
|
|
10258
|
+
}, He = {
|
|
10235
10259
|
useI18n: ri,
|
|
10236
10260
|
usePluginMetaData: Tu,
|
|
10237
10261
|
usePluginHelpers: Ks,
|
|
10238
|
-
useSchemas:
|
|
10262
|
+
useSchemas: iy
|
|
10239
10263
|
}, Je = "/v2/control-planes/{controlPlaneId}/core-entities", Ze = "/{workspace}", Ne = {
|
|
10240
10264
|
list: {
|
|
10241
10265
|
konnect: {
|
|
@@ -10311,7 +10335,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10311
10335
|
forEntity: `${Ze}/{entityType}/{entityId}/plugins/{id}`
|
|
10312
10336
|
}
|
|
10313
10337
|
}
|
|
10314
|
-
},
|
|
10338
|
+
}, ay = {
|
|
10315
10339
|
create: "New vault",
|
|
10316
10340
|
copy_id: "Copy ID",
|
|
10317
10341
|
copy_json: "Copy JSON",
|
|
@@ -10319,18 +10343,18 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10319
10343
|
delete: "Delete",
|
|
10320
10344
|
view: "View Details",
|
|
10321
10345
|
loading: "Loading..."
|
|
10322
|
-
},
|
|
10346
|
+
}, sy = {
|
|
10323
10347
|
general: "Vaults could not be retrieved",
|
|
10324
10348
|
delete: "The vault could not be deleted at this time.",
|
|
10325
10349
|
copy: "Failed to copy to clipboard"
|
|
10326
|
-
},
|
|
10350
|
+
}, oy = {
|
|
10327
10351
|
placeholder_for_vaults: {
|
|
10328
10352
|
konnect: "Filter by exact prefix or ID"
|
|
10329
10353
|
},
|
|
10330
10354
|
placeholder_for_secrets: {
|
|
10331
10355
|
konnect: "Filter by exact key"
|
|
10332
10356
|
}
|
|
10333
|
-
},
|
|
10357
|
+
}, ry = {
|
|
10334
10358
|
title: "Vaults",
|
|
10335
10359
|
list: {
|
|
10336
10360
|
toolbar_actions: {
|
|
@@ -10353,7 +10377,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10353
10377
|
create_cta: "New vault"
|
|
10354
10378
|
}
|
|
10355
10379
|
}
|
|
10356
|
-
},
|
|
10380
|
+
}, ly = {
|
|
10357
10381
|
title: "Secrets",
|
|
10358
10382
|
list: {
|
|
10359
10383
|
toolbar_actions: {
|
|
@@ -10385,12 +10409,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10385
10409
|
},
|
|
10386
10410
|
hint: "Once saved, the secret value will not be visible"
|
|
10387
10411
|
}
|
|
10388
|
-
},
|
|
10412
|
+
}, cy = {
|
|
10389
10413
|
success: "Copied {val} to clipboard",
|
|
10390
10414
|
success_brief: "Successfully copied to clipboard"
|
|
10391
|
-
},
|
|
10415
|
+
}, uy = {
|
|
10392
10416
|
vault_type: "Vault Type"
|
|
10393
|
-
},
|
|
10417
|
+
}, dy = {
|
|
10394
10418
|
sections: {
|
|
10395
10419
|
general: {
|
|
10396
10420
|
title: "General Information",
|
|
@@ -10639,7 +10663,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10639
10663
|
}
|
|
10640
10664
|
},
|
|
10641
10665
|
unavailable: "This vault provider is available on Enterprise."
|
|
10642
|
-
},
|
|
10666
|
+
}, py = {
|
|
10643
10667
|
title: "Look up Key in Vault",
|
|
10644
10668
|
vault: {
|
|
10645
10669
|
label: "Vault",
|
|
@@ -10668,24 +10692,24 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10668
10692
|
complete_action: "Look up {cta}",
|
|
10669
10693
|
cta: "Key in Vault"
|
|
10670
10694
|
}
|
|
10671
|
-
},
|
|
10672
|
-
actions:
|
|
10695
|
+
}, Ay = {
|
|
10696
|
+
actions: ay,
|
|
10673
10697
|
delete: {
|
|
10674
10698
|
title: "Delete a Vault",
|
|
10675
10699
|
title_for_secret: "Delete a Secret",
|
|
10676
10700
|
description: "This action cannot be reversed."
|
|
10677
10701
|
},
|
|
10678
|
-
errors:
|
|
10679
|
-
search:
|
|
10680
|
-
vaults:
|
|
10681
|
-
secrets:
|
|
10682
|
-
copy:
|
|
10683
|
-
labels:
|
|
10684
|
-
form:
|
|
10685
|
-
vault_secret_picker:
|
|
10702
|
+
errors: sy,
|
|
10703
|
+
search: oy,
|
|
10704
|
+
vaults: ry,
|
|
10705
|
+
secrets: ly,
|
|
10706
|
+
copy: cy,
|
|
10707
|
+
labels: uy,
|
|
10708
|
+
form: dy,
|
|
10709
|
+
vault_secret_picker: py
|
|
10686
10710
|
};
|
|
10687
|
-
function
|
|
10688
|
-
const e = Et("en-us",
|
|
10711
|
+
function gy() {
|
|
10712
|
+
const e = Et("en-us", Ay);
|
|
10689
10713
|
return {
|
|
10690
10714
|
i18n: e,
|
|
10691
10715
|
i18nT: Ps(e)
|
|
@@ -10693,7 +10717,7 @@ function py() {
|
|
|
10693
10717
|
};
|
|
10694
10718
|
}
|
|
10695
10719
|
const Ho = {
|
|
10696
|
-
useI18n:
|
|
10720
|
+
useI18n: gy
|
|
10697
10721
|
}, wi = "/v2/control-planes/{controlPlaneId}/core-entities", rs = "/v2/control-planes/{controlPlaneId}/config-stores", Ci = "/{workspace}", ls = {
|
|
10698
10722
|
list: {
|
|
10699
10723
|
konnect: {
|
|
@@ -10733,9 +10757,9 @@ const Ho = {
|
|
|
10733
10757
|
edit: `${qn}/config-stores/{id}/secrets/{secretId}`
|
|
10734
10758
|
}
|
|
10735
10759
|
}
|
|
10736
|
-
},
|
|
10760
|
+
}, my = {
|
|
10737
10761
|
class: "vault-secret-picker-provider"
|
|
10738
|
-
},
|
|
10762
|
+
}, fy = /* @__PURE__ */ ye({
|
|
10739
10763
|
__name: "VaultSecretPickerProvider",
|
|
10740
10764
|
props: {
|
|
10741
10765
|
value: {},
|
|
@@ -10756,7 +10780,7 @@ const Ho = {
|
|
|
10756
10780
|
},
|
|
10757
10781
|
i18nT: s
|
|
10758
10782
|
} = Ho.useI18n();
|
|
10759
|
-
return (o, r) => (p(), B("div",
|
|
10783
|
+
return (o, r) => (p(), B("div", my, [G(g(s), {
|
|
10760
10784
|
keypath: "vault_secret_picker.provider.complete_action",
|
|
10761
10785
|
scope: "global"
|
|
10762
10786
|
}, {
|
|
@@ -10770,7 +10794,7 @@ const Ho = {
|
|
|
10770
10794
|
_: 1
|
|
10771
10795
|
})]));
|
|
10772
10796
|
}
|
|
10773
|
-
}), us = /* @__PURE__ */ Vo(
|
|
10797
|
+
}), us = /* @__PURE__ */ Vo(fy, [["__scopeId", "data-v-66a1e406"]]), hy = (e) => {
|
|
10774
10798
|
let t = e.trim();
|
|
10775
10799
|
if (!t.startsWith("{") || !t.endsWith("}"))
|
|
10776
10800
|
throw new Error("Invalid secret reference: must be enclosed in curly braces");
|
|
@@ -10789,15 +10813,15 @@ const Ho = {
|
|
|
10789
10813
|
optionalSecretKey: s == null ? void 0 : s.join("/")
|
|
10790
10814
|
// Non-empty string or undefined
|
|
10791
10815
|
};
|
|
10792
|
-
},
|
|
10816
|
+
}, vy = (e) => {
|
|
10793
10817
|
if (!e.vaultPrefix)
|
|
10794
10818
|
throw new Error("Invalid secret reference: must have a vault prefix");
|
|
10795
10819
|
let t = `vault://${e.vaultPrefix}`;
|
|
10796
10820
|
return e.secretId && (t = `${t}/${e.secretId}`), e.optionalSecretKey && (t = `${t}/${e.optionalSecretKey}`), `{${t}}`;
|
|
10797
|
-
},
|
|
10821
|
+
}, yy = {
|
|
10798
10822
|
key: 1,
|
|
10799
10823
|
class: "inputs-wrapper"
|
|
10800
|
-
},
|
|
10824
|
+
}, by = { "data-testid": "no-search-results" }, Ey = { class: "k-select-selected-item-label" }, wy = { class: "vault-secret-picker-vault-dropdown-item" }, Cy = { class: "select-item-label" }, By = { class: "select-item-description" }, Iy = { class: "select-item-description" }, Oy = { "data-testid": "no-search-results" }, My = /* @__PURE__ */ ye({
|
|
10801
10825
|
__name: "VaultSecretPicker",
|
|
10802
10826
|
props: {
|
|
10803
10827
|
config: {
|
|
@@ -10873,7 +10897,7 @@ const Ho = {
|
|
|
10873
10897
|
var Y;
|
|
10874
10898
|
return a.config.app !== "konnect" ? "<not_applicable>" : `${a.config.apiBaseUrl}${cs.form[a.config.app].edit}`.replace(/{controlPlaneId}/gi, ((Y = a.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{id}/gi, U).replace(/{secretId}/gi, ee);
|
|
10875
10899
|
}, ue = () => {
|
|
10876
|
-
s("proceed",
|
|
10900
|
+
s("proceed", vy({
|
|
10877
10901
|
vaultPrefix: c.value,
|
|
10878
10902
|
secretId: d.value || void 0,
|
|
10879
10903
|
// Either a non-empty string or undefined
|
|
@@ -10886,7 +10910,7 @@ const Ho = {
|
|
|
10886
10910
|
if (r.value = !0, c.value = "", A.value = void 0, d.value = "", u.value = "", typeof ee == "string" && ee.trim().length > 0)
|
|
10887
10911
|
try {
|
|
10888
10912
|
let U, Y = "", Z = "", M = "";
|
|
10889
|
-
const R =
|
|
10913
|
+
const R = hy(ee), { data: P } = await o.get(te(R.vaultPrefix));
|
|
10890
10914
|
if (P != null && P.name)
|
|
10891
10915
|
if (U = P, Y = R.vaultPrefix, U.name === "konnect") {
|
|
10892
10916
|
if (R.secretId) {
|
|
@@ -10926,7 +10950,7 @@ const Ho = {
|
|
|
10926
10950
|
"data-testid": "vault-secret-picker-fetch-error",
|
|
10927
10951
|
"icon-variant": "error",
|
|
10928
10952
|
message: I.value
|
|
10929
|
-
}, null, 8, ["message"])) : (p(), B("div",
|
|
10953
|
+
}, null, 8, ["message"])) : (p(), B("div", yy, [
|
|
10930
10954
|
G(Z, {
|
|
10931
10955
|
modelValue: c.value,
|
|
10932
10956
|
"onUpdate:modelValue": U[0] || (U[0] = (P) => c.value = P),
|
|
@@ -10949,16 +10973,16 @@ const Ho = {
|
|
|
10949
10973
|
v("div", null, X(g(i)("actions.loading")), 1)
|
|
10950
10974
|
]),
|
|
10951
10975
|
empty: b(() => [
|
|
10952
|
-
v("div",
|
|
10976
|
+
v("div", by, X(g(i)("vault_secret_picker.no_results")), 1)
|
|
10953
10977
|
]),
|
|
10954
10978
|
"selected-item-template": b(({ item: P }) => [
|
|
10955
|
-
v("span",
|
|
10979
|
+
v("span", Ey, X(_(P)), 1)
|
|
10956
10980
|
]),
|
|
10957
10981
|
"item-template": b(({ item: P }) => [
|
|
10958
|
-
v("div",
|
|
10959
|
-
v("span",
|
|
10960
|
-
v("span",
|
|
10961
|
-
v("span",
|
|
10982
|
+
v("div", wy, [
|
|
10983
|
+
v("span", Cy, X(P.label), 1),
|
|
10984
|
+
v("span", By, X(P.vault.name), 1),
|
|
10985
|
+
v("span", Iy, X(P.vault.id), 1)
|
|
10962
10986
|
])
|
|
10963
10987
|
]),
|
|
10964
10988
|
_: 1
|
|
@@ -10986,7 +11010,7 @@ const Ho = {
|
|
|
10986
11010
|
v("div", null, X(g(i)("actions.loading")), 1)
|
|
10987
11011
|
]),
|
|
10988
11012
|
empty: b(() => [
|
|
10989
|
-
v("div",
|
|
11013
|
+
v("div", Oy, X(g(i)("vault_secret_picker.no_results")), 1)
|
|
10990
11014
|
]),
|
|
10991
11015
|
_: 1
|
|
10992
11016
|
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (p(), L(M, {
|
|
@@ -11020,13 +11044,13 @@ const Ho = {
|
|
|
11020
11044
|
}, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
|
|
11021
11045
|
};
|
|
11022
11046
|
}
|
|
11023
|
-
}),
|
|
11047
|
+
}), Ry = /* @__PURE__ */ Vo(My, [["__scopeId", "data-v-df8552cc"]]), ky = { key: 0 }, Sy = /* @__PURE__ */ ye({
|
|
11024
11048
|
__name: "PluginFieldRuleAlerts",
|
|
11025
11049
|
props: {
|
|
11026
11050
|
rules: {}
|
|
11027
11051
|
},
|
|
11028
11052
|
setup(e) {
|
|
11029
|
-
const t = e, { formatPluginFieldLabel: n } =
|
|
11053
|
+
const t = e, { formatPluginFieldLabel: n } = He.usePluginHelpers(), { i18n: { t: i } } = He.useI18n(), a = (r) => r.map(
|
|
11030
11054
|
(c) => c.replace(/^[cC]onfig\./, "").split(".").map((d) => n(d)).join(".")
|
|
11031
11055
|
).join(", "), s = (r, c) => i(r, { parameters: a(c) }), o = J(() => {
|
|
11032
11056
|
const r = [];
|
|
@@ -11049,7 +11073,7 @@ const Ho = {
|
|
|
11049
11073
|
(p(!0), B(ge, null, Oe(o.value, (u, A) => (p(), B("li", {
|
|
11050
11074
|
key: `simple-alert-${A}`
|
|
11051
11075
|
}, X(u), 1))), 128)),
|
|
11052
|
-
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (p(), B("li",
|
|
11076
|
+
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (p(), B("li", ky, [
|
|
11053
11077
|
(p(!0), B(ge, null, Oe(t.rules.onlyOneOfMutuallyRequired, (u, A) => (p(), B("div", {
|
|
11054
11078
|
key: `only-one-mutually-alert-${A}`
|
|
11055
11079
|
}, [
|
|
@@ -11072,13 +11096,13 @@ const Ho = {
|
|
|
11072
11096
|
for (const [i, a] of t)
|
|
11073
11097
|
n[i] = a;
|
|
11074
11098
|
return n;
|
|
11075
|
-
},
|
|
11099
|
+
}, Ty = /* @__PURE__ */ ht(Sy, [["__scopeId", "data-v-d8eb79cf"]]), xy = { class: "kong-ui-entities-plugin-form" }, Py = {
|
|
11076
11100
|
key: 1,
|
|
11077
11101
|
class: "entity-form"
|
|
11078
|
-
},
|
|
11102
|
+
}, Gy = { class: "plugin-config-empty-state" }, Uy = ye({
|
|
11079
11103
|
components: { ...xv }
|
|
11080
|
-
}),
|
|
11081
|
-
...
|
|
11104
|
+
}), Ly = /* @__PURE__ */ ye({
|
|
11105
|
+
...Uy,
|
|
11082
11106
|
__name: "PluginEntityForm",
|
|
11083
11107
|
props: {
|
|
11084
11108
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -11133,10 +11157,10 @@ const Ho = {
|
|
|
11133
11157
|
emits: ["loading", "model-updated"],
|
|
11134
11158
|
setup(e, { emit: t }) {
|
|
11135
11159
|
var ue, ee;
|
|
11136
|
-
const n = t, i = e, { axiosInstance: a } = Wt((ue = i.config) == null ? void 0 : ue.axiosRequestConfig), { parseSchema: s } =
|
|
11160
|
+
const n = t, i = e, { axiosInstance: a } = Wt((ue = i.config) == null ? void 0 : ue.axiosRequestConfig), { parseSchema: s } = He.useSchemas({
|
|
11137
11161
|
entityId: ((ee = i.entityMap.focusedEntity) == null ? void 0 : ee.id) || void 0,
|
|
11138
11162
|
credential: i.credential
|
|
11139
|
-
}), { convertToDotNotation: o, unFlattenObject: r, isObjectEmpty: c, unsetNullForeignKey: d } =
|
|
11163
|
+
}), { convertToDotNotation: o, unFlattenObject: r, isObjectEmpty: c, unsetNullForeignKey: d } = He.usePluginHelpers(), { objectsAreEqual: u } = ii(), { i18n: { t: A } } = ri(), m = (U, Y) => {
|
|
11140
11164
|
let Z = `${i.config.apiBaseUrl}${Ne.form[i.config.app].entityGetOne}`;
|
|
11141
11165
|
return i.config.app === "konnect" ? Z = Z.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (Z = Z.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), Z = Z.replace(/{entity}/gi, U), Z = Z.replace(/{id}/gi, Y), Z;
|
|
11142
11166
|
}, I = (U) => {
|
|
@@ -11230,18 +11254,18 @@ const Ho = {
|
|
|
11230
11254
|
Array.isArray(ae[Ee]) || (ae[Ee] = ae[Ee].split(","));
|
|
11231
11255
|
}));
|
|
11232
11256
|
}
|
|
11233
|
-
let
|
|
11257
|
+
let De = o(pe);
|
|
11234
11258
|
if (de.fieldNameHasDashes) {
|
|
11235
|
-
const [Ee, ...K] =
|
|
11236
|
-
|
|
11259
|
+
const [Ee, ...K] = De.split(".").reverse();
|
|
11260
|
+
De = [Ee.replace(/_/g, "-"), ...K].reverse().join(".");
|
|
11237
11261
|
}
|
|
11238
11262
|
if (et === "object-expand") {
|
|
11239
11263
|
let Ee;
|
|
11240
|
-
[
|
|
11264
|
+
[De, Ee] = De.split(".");
|
|
11241
11265
|
let K = {};
|
|
11242
|
-
R[
|
|
11266
|
+
R[De] && (K = R[De]), K[Ee] = ae, ae = K;
|
|
11243
11267
|
}
|
|
11244
|
-
ze !== void 0 && ae === "" && ae !== ze ? R[
|
|
11268
|
+
ze !== void 0 && ae === "" && ae !== ze ? R[De] = et === "object" ? {} : null : de.type === "checklist" && ae === "" ? R[De] = [] : ae !== "" && (R[De] = ae), R[De] = Dt ? Dt(ae) : R[De], d(De, R);
|
|
11245
11269
|
}), r(R);
|
|
11246
11270
|
}, V = (U, Y) => {
|
|
11247
11271
|
var R;
|
|
@@ -11327,11 +11351,11 @@ const Ho = {
|
|
|
11327
11351
|
var R;
|
|
11328
11352
|
const Z = q("KSkeleton"), M = q("VueFormGenerator");
|
|
11329
11353
|
return p(), B(ge, null, [
|
|
11330
|
-
v("div",
|
|
11354
|
+
v("div", xy, [
|
|
11331
11355
|
te.value ? (p(), L(Z, {
|
|
11332
11356
|
key: 0,
|
|
11333
11357
|
type: "form"
|
|
11334
|
-
})) : (p(), B("div",
|
|
11358
|
+
})) : (p(), B("div", Py, [
|
|
11335
11359
|
S.value && (f.id && e.editing || !e.editing) ? (p(), L(Ke(S.value), {
|
|
11336
11360
|
key: 0,
|
|
11337
11361
|
"form-model": f,
|
|
@@ -11359,14 +11383,14 @@ const Ho = {
|
|
|
11359
11383
|
onRefreshModel: j
|
|
11360
11384
|
}, kt({
|
|
11361
11385
|
"plugin-config-empty-state": b(() => [
|
|
11362
|
-
v("div",
|
|
11386
|
+
v("div", Gy, X(g(A)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
11363
11387
|
]),
|
|
11364
11388
|
_: 2
|
|
11365
11389
|
}, [
|
|
11366
11390
|
(R = g(At)[f.name]) != null && R.fieldRules && (i.config.isNewOtelSchema || f.name !== "opentelemetry") ? {
|
|
11367
11391
|
name: "plugin-config-before-content",
|
|
11368
11392
|
fn: b(() => [
|
|
11369
|
-
G(
|
|
11393
|
+
G(Ty, {
|
|
11370
11394
|
rules: g(At)[f.name].fieldRules
|
|
11371
11395
|
}, null, 8, ["rules"])
|
|
11372
11396
|
]),
|
|
@@ -11384,7 +11408,7 @@ const Ho = {
|
|
|
11384
11408
|
]), 1032, ["model", "options", "schema"])) : ie("", !0)
|
|
11385
11409
|
]))
|
|
11386
11410
|
]),
|
|
11387
|
-
G(g(
|
|
11411
|
+
G(g(Ry), {
|
|
11388
11412
|
config: i.config,
|
|
11389
11413
|
setup: h.value,
|
|
11390
11414
|
onCancel: Y[2] || (Y[2] = () => h.value = !1),
|
|
@@ -11393,7 +11417,7 @@ const Ho = {
|
|
|
11393
11417
|
], 64);
|
|
11394
11418
|
};
|
|
11395
11419
|
}
|
|
11396
|
-
}),
|
|
11420
|
+
}), Dy = /* @__PURE__ */ ht(Ly, [["__scopeId", "data-v-0d6dd470"]]), jy = { key: 1 }, Yy = /* @__PURE__ */ ye({
|
|
11397
11421
|
__name: "PluginFormActionsWrapper",
|
|
11398
11422
|
props: {
|
|
11399
11423
|
teleportTarget: {
|
|
@@ -11407,11 +11431,11 @@ const Ho = {
|
|
|
11407
11431
|
to: e.teleportTarget
|
|
11408
11432
|
}, [
|
|
11409
11433
|
ft(t.$slots, "default")
|
|
11410
|
-
], 8, ["to"])) : (p(), B("div",
|
|
11434
|
+
], 8, ["to"])) : (p(), B("div", jy, [
|
|
11411
11435
|
ft(t.$slots, "default")
|
|
11412
11436
|
]));
|
|
11413
11437
|
}
|
|
11414
|
-
}),
|
|
11438
|
+
}), Hy = { class: "kong-ui-entities-plugin-form-container" }, Vy = { key: 0 }, Ny = { class: "plugin-form-actions" }, Fy = /* @__PURE__ */ ye({
|
|
11415
11439
|
__name: "PluginForm",
|
|
11416
11440
|
props: {
|
|
11417
11441
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -11496,7 +11520,7 @@ const Ho = {
|
|
|
11496
11520
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
|
|
11497
11521
|
setup(e, { emit: t }) {
|
|
11498
11522
|
var Ee;
|
|
11499
|
-
const n = t, i = e, a = si(), { i18n: { t: s } } =
|
|
11523
|
+
const n = t, i = e, a = si(), { i18n: { t: s } } = He.useI18n(), { customSchemas: o, typedefs: r } = He.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = He.usePluginHelpers(), { getMessageFromError: d } = ai(), { capitalize: u } = Fi(), { objectsAreEqual: A } = ii(), { axiosInstance: m } = Wt((Ee = i.config) == null ? void 0 : Ee.axiosRequestConfig), I = $(!1), D = J(() => !!i.pluginId), y = J(() => i.pluginId ? Ht.Edit : Ht.Create), S = $(null), O = J(() => !!(i.credential && i.config.entityId)), Q = $(null), E = $({}), f = $(!1), C = In({
|
|
11500
11524
|
enabled: !0,
|
|
11501
11525
|
protocols: [],
|
|
11502
11526
|
tags: []
|
|
@@ -11651,7 +11675,7 @@ const Ho = {
|
|
|
11651
11675
|
fieldNameHasDashes: !0
|
|
11652
11676
|
} : Be[F] = z[F], Be;
|
|
11653
11677
|
}, {})), Object.keys(N).sort().forEach((Be) => {
|
|
11654
|
-
var
|
|
11678
|
+
var je, Qe, it, sn, vn, yn;
|
|
11655
11679
|
const z = N[Be];
|
|
11656
11680
|
z.type === "set" && (z.type = "array");
|
|
11657
11681
|
const F = K ? `${K}-${Be}` : `${Be}`;
|
|
@@ -11673,18 +11697,18 @@ const Ho = {
|
|
|
11673
11697
|
T[F].label = me.split("-").map(c).join(".");
|
|
11674
11698
|
} else
|
|
11675
11699
|
T[F].label = c(F);
|
|
11676
|
-
if ((K === "config" || K.startsWith("config-")) && (
|
|
11700
|
+
if ((K === "config" || K.startsWith("config-")) && (je = N[Be]) != null && je.description && (T[F].help = ve.parse(N[Be].description, { mangle: !1, headerIds: !1 })), z.type === "map") {
|
|
11677
11701
|
if (T[F].type = "object-advanced", T[F].values = z.values, z.values.type === "array") {
|
|
11678
11702
|
const { type: me } = z.values.elements || {};
|
|
11679
11703
|
T[F].schema = {
|
|
11680
11704
|
fields: [{
|
|
11681
11705
|
schema: {
|
|
11682
11706
|
fields: [{
|
|
11683
|
-
...
|
|
11707
|
+
...Ge,
|
|
11684
11708
|
model: F,
|
|
11685
11709
|
valueArrayType: me === "integer" ? "number" : me || "string",
|
|
11686
11710
|
inputAttributes: {
|
|
11687
|
-
...
|
|
11711
|
+
...Ge.inputAttributes,
|
|
11688
11712
|
type: me === "integer" ? "number" : "text",
|
|
11689
11713
|
inputMode: me === "integer" ? "numeric" : "text"
|
|
11690
11714
|
}
|
|
@@ -11719,7 +11743,7 @@ const Ho = {
|
|
|
11719
11743
|
}), z.elements && z.type === "array") {
|
|
11720
11744
|
const me = z.elements;
|
|
11721
11745
|
if (T[F].referenceable = me.referenceable, T[F].elements = me, ["string", "integer", "number"].includes(me.type) && !me.one_of) {
|
|
11722
|
-
const { id: tt, help: Te, label: Ie, hint: Xe, values: vt, referenceable: at, model: Yt } = T[F], { inputAttributes: Fn, ..._o } = JSON.parse(JSON.stringify(
|
|
11746
|
+
const { id: tt, help: Te, label: Ie, hint: Xe, values: vt, referenceable: at, model: Yt } = T[F], { inputAttributes: Fn, ..._o } = JSON.parse(JSON.stringify(Ge));
|
|
11723
11747
|
Fn.type = me.type === "string" ? "text" : "number", T[F] = { id: tt, help: Te, label: Ie, hint: Xe, values: vt, referenceable: at, model: Yt, inputAttributes: Fn, ..._o };
|
|
11724
11748
|
}
|
|
11725
11749
|
}
|
|
@@ -11794,8 +11818,8 @@ const Ho = {
|
|
|
11794
11818
|
z.enum ? re = le(z.enum) : z.type === "boolean" ? re = "boolean" : z.type === "number" || z.type === "integer" ? (re = "number", T[F].inputType = "number") : z.type === "array" ? (re = "array", T[F].default = z.default, z.len_min > 0 && (T[F].submitWhenNull = !0)) : z.type === "foreign" ? re = "object" : z.default && Array.isArray(z.default) ? (re = "array", T[F].valueArrayType = le(z.default)) : z.default && (re = typeof z.default), T[F].valueType = re, z.fieldNameHasDashes && (T[F].fieldNameHasDashes = !0);
|
|
11795
11819
|
}), T;
|
|
11796
11820
|
}, ee = () => {
|
|
11797
|
-
var Be, z, F, re,
|
|
11798
|
-
const K = ((Be = At[i.pluginType]) == null ? void 0 : Be.scope.includes(l.SERVICE)) ?? !0, se = ((z = At[i.pluginType]) == null ? void 0 : z.scope.includes(l.ROUTE)) ?? !0, T = ((F = At[i.pluginType]) == null ? void 0 : F.scope.includes(l.CONSUMER)) ?? !0, fe = i.config.disableConsumerGroupScope ? !1 : ((re = At[i.pluginType]) == null ? void 0 : re.scope.includes(l.CONSUMER_GROUP)) ?? !0, N = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qe = (
|
|
11821
|
+
var Be, z, F, re, je, Qe, it, sn, vn, yn, me, tt;
|
|
11822
|
+
const K = ((Be = At[i.pluginType]) == null ? void 0 : Be.scope.includes(l.SERVICE)) ?? !0, se = ((z = At[i.pluginType]) == null ? void 0 : z.scope.includes(l.ROUTE)) ?? !0, T = ((F = At[i.pluginType]) == null ? void 0 : F.scope.includes(l.CONSUMER)) ?? !0, fe = i.config.disableConsumerGroupScope ? !1 : ((re = At[i.pluginType]) == null ? void 0 : re.scope.includes(l.CONSUMER_GROUP)) ?? !0, N = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qe = (je = Q.value) == null ? void 0 : je.consumer) != null && Qe.id), ne = i.config.entityType === "consumer_groups" && !!i.config.entityId || !!((sn = (it = Q.value) == null ? void 0 : it.consumer_group) != null && sn.id), oe = i.config.entityType === "services" && !!i.config.entityId || !!((yn = (vn = Q.value) == null ? void 0 : vn.service) != null && yn.id), Ae = i.config.entityType === "routes" && !!i.config.entityId || !!((tt = (me = Q.value) == null ? void 0 : me.route) != null && tt.id), we = [];
|
|
11799
11823
|
if (K && we.push({
|
|
11800
11824
|
id: "service-id",
|
|
11801
11825
|
model: "service-id",
|
|
@@ -11869,7 +11893,7 @@ const Ho = {
|
|
|
11869
11893
|
}), _.selectionGroup.fields[1].fields = we;
|
|
11870
11894
|
}
|
|
11871
11895
|
o[i.pluginType] && o[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(o[i.pluginType], "formSchema") && Object.assign(_, o[i.pluginType].formSchema);
|
|
11872
|
-
}, U = J(() => !A(h.fields, C, !0)), Y = J(() => !
|
|
11896
|
+
}, U = J(() => !A(h.fields, C, !0)), Y = J(() => !De.value && !f.value && (y.value === Ht.Create || U.value)), Z = $(!1), M = $(), R = (K) => {
|
|
11873
11897
|
i.credential && K.password && (K.password = ""), h.fields.id = (K == null ? void 0 : K.id) || void 0, M.value = K == null ? void 0 : K.ordering, Object.assign(C, h.fields), Q.value = K, Z.value = !0;
|
|
11874
11898
|
}, P = $({}), ce = (K) => {
|
|
11875
11899
|
var se;
|
|
@@ -11881,7 +11905,7 @@ const Ho = {
|
|
|
11881
11905
|
};
|
|
11882
11906
|
mt([V, Z], (K, se) => {
|
|
11883
11907
|
const T = K[0] !== se[0], fe = K[1], N = se[1];
|
|
11884
|
-
!O.value && y.value === Ht.Edit && (T || fe && fe !== N) && (
|
|
11908
|
+
!O.value && y.value === Ht.Edit && (T || fe && fe !== N) && (De.value = !0, S.value = ue("config", E.value, _), De.value = !1);
|
|
11885
11909
|
}, { deep: !0 });
|
|
11886
11910
|
const pe = () => {
|
|
11887
11911
|
i.config.cancelRoute ? a.push(i.config.cancelRoute) : n("cancel");
|
|
@@ -11924,19 +11948,19 @@ const Ho = {
|
|
|
11924
11948
|
const K = O.value ? (fe = ln[i.pluginType]) == null ? void 0 : fe.schemaEndpoint : i.pluginType, se = O.value ? Ne.form[i.config.app].credentialSchema : Ne.form[i.config.app].pluginSchema;
|
|
11925
11949
|
let T = `${i.config.apiBaseUrl}${se}`;
|
|
11926
11950
|
return i.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), T = T.replace(/{plugin}/gi, K), T;
|
|
11927
|
-
}), Dt = $(""),
|
|
11951
|
+
}), Dt = $(""), De = $(!1), jt = $("");
|
|
11928
11952
|
return fn(async () => {
|
|
11929
11953
|
var K, se, T;
|
|
11930
|
-
|
|
11954
|
+
De.value = !0;
|
|
11931
11955
|
try {
|
|
11932
11956
|
if (O.value && i.config.app === "konnect") {
|
|
11933
11957
|
const fe = (K = ln[i.pluginType]) == null ? void 0 : K.schemaEndpoint, N = ku[fe];
|
|
11934
|
-
Dt.value = fe, S.value = ue("", N, {}),
|
|
11958
|
+
Dt.value = fe, S.value = ue("", N, {}), De.value = !1;
|
|
11935
11959
|
} else {
|
|
11936
11960
|
const fe = i.schema ?? (await m.get(It.value)).data;
|
|
11937
11961
|
if (fe)
|
|
11938
11962
|
if (O.value)
|
|
11939
|
-
S.value = ue("", fe, {}),
|
|
11963
|
+
S.value = ue("", fe, {}), De.value = !1;
|
|
11940
11964
|
else {
|
|
11941
11965
|
const N = fe.fields.find((oe) => oe.config);
|
|
11942
11966
|
E.value = N ? N.config : fe, ee();
|
|
@@ -11953,12 +11977,12 @@ const Ho = {
|
|
|
11953
11977
|
} catch (fe) {
|
|
11954
11978
|
jt.value = d(fe), n("error:fetch-schema", fe);
|
|
11955
11979
|
} finally {
|
|
11956
|
-
|
|
11980
|
+
De.value = !1;
|
|
11957
11981
|
}
|
|
11958
11982
|
}), (K, se) => {
|
|
11959
11983
|
const T = q("KSkeleton"), fe = q("KEmptyState"), N = q("KButton"), ne = q("KTabs"), oe = q("KSlideout");
|
|
11960
|
-
return p(), B("div",
|
|
11961
|
-
|
|
11984
|
+
return p(), B("div", Hy, [
|
|
11985
|
+
De.value ? (p(), L(T, {
|
|
11962
11986
|
key: 0,
|
|
11963
11987
|
type: "form"
|
|
11964
11988
|
})) : jt.value ? (p(), L(fe, {
|
|
@@ -11989,12 +12013,12 @@ const Ho = {
|
|
|
11989
12013
|
onLoading: se[3] || (se[3] = (Ae) => K.$emit("loading", Ae))
|
|
11990
12014
|
}, {
|
|
11991
12015
|
"form-actions": b(() => [
|
|
11992
|
-
e.isWizardStep ? (p(), B("div",
|
|
12016
|
+
e.isWizardStep ? (p(), B("div", Vy)) : (p(), L(Yy, {
|
|
11993
12017
|
key: 1,
|
|
11994
12018
|
"teleport-target": e.actionsTeleportTarget
|
|
11995
12019
|
}, {
|
|
11996
12020
|
default: b(() => [
|
|
11997
|
-
v("div",
|
|
12021
|
+
v("div", Ny, [
|
|
11998
12022
|
e.hideViewConfigAction ? ie("", !0) : (p(), L(N, {
|
|
11999
12023
|
key: 0,
|
|
12000
12024
|
appearance: "tertiary",
|
|
@@ -12040,7 +12064,7 @@ const Ho = {
|
|
|
12040
12064
|
hidden: "",
|
|
12041
12065
|
onSubmit: et
|
|
12042
12066
|
}, null, 32),
|
|
12043
|
-
G(
|
|
12067
|
+
G(Dy, {
|
|
12044
12068
|
config: e.config,
|
|
12045
12069
|
credential: O.value,
|
|
12046
12070
|
editing: y.value === g(Ht).Edit,
|
|
@@ -12095,7 +12119,7 @@ const Ho = {
|
|
|
12095
12119
|
]);
|
|
12096
12120
|
};
|
|
12097
12121
|
}
|
|
12098
|
-
}),
|
|
12122
|
+
}), bw = /* @__PURE__ */ ht(Fy, [["__scopeId", "data-v-dee4e14d"]]), Ky = ["alt", "height", "src", "width"], sa = /* @__PURE__ */ ye({
|
|
12099
12123
|
__name: "PluginIcon",
|
|
12100
12124
|
props: {
|
|
12101
12125
|
name: {
|
|
@@ -12126,70 +12150,70 @@ const Ho = {
|
|
|
12126
12150
|
src: i.value,
|
|
12127
12151
|
width: e.size,
|
|
12128
12152
|
onError: a
|
|
12129
|
-
}, null, 40,
|
|
12153
|
+
}, null, 40, Ky));
|
|
12130
12154
|
}
|
|
12131
12155
|
});
|
|
12132
|
-
var
|
|
12156
|
+
var zy = Object.prototype;
|
|
12133
12157
|
function No(e) {
|
|
12134
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
12158
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || zy;
|
|
12135
12159
|
return e === n;
|
|
12136
12160
|
}
|
|
12137
|
-
function
|
|
12161
|
+
function Jy(e, t) {
|
|
12138
12162
|
return function(n) {
|
|
12139
12163
|
return e(t(n));
|
|
12140
12164
|
};
|
|
12141
12165
|
}
|
|
12142
|
-
var
|
|
12143
|
-
function
|
|
12166
|
+
var qy = Jy(Object.keys, Object), Qy = Object.prototype, Xy = Qy.hasOwnProperty;
|
|
12167
|
+
function Zy(e) {
|
|
12144
12168
|
if (!No(e))
|
|
12145
|
-
return
|
|
12169
|
+
return qy(e);
|
|
12146
12170
|
var t = [];
|
|
12147
12171
|
for (var n in Object(e))
|
|
12148
|
-
|
|
12172
|
+
Xy.call(e, n) && n != "constructor" && t.push(n);
|
|
12149
12173
|
return t;
|
|
12150
12174
|
}
|
|
12151
|
-
var Fo = typeof global == "object" && global && global.Object === Object && global,
|
|
12152
|
-
function
|
|
12153
|
-
var t =
|
|
12175
|
+
var Fo = typeof global == "object" && global && global.Object === Object && global, Wy = typeof self == "object" && self && self.Object === Object && self, Lt = Fo || Wy || Function("return this")(), ti = Lt.Symbol, Ko = Object.prototype, _y = Ko.hasOwnProperty, $y = Ko.toString, Cn = ti ? ti.toStringTag : void 0;
|
|
12176
|
+
function eb(e) {
|
|
12177
|
+
var t = _y.call(e, Cn), n = e[Cn];
|
|
12154
12178
|
try {
|
|
12155
12179
|
e[Cn] = void 0;
|
|
12156
12180
|
var i = !0;
|
|
12157
12181
|
} catch {
|
|
12158
12182
|
}
|
|
12159
|
-
var a =
|
|
12183
|
+
var a = $y.call(e);
|
|
12160
12184
|
return i && (t ? e[Cn] = n : delete e[Cn]), a;
|
|
12161
12185
|
}
|
|
12162
|
-
var
|
|
12163
|
-
function
|
|
12164
|
-
return
|
|
12186
|
+
var tb = Object.prototype, nb = tb.toString;
|
|
12187
|
+
function ib(e) {
|
|
12188
|
+
return nb.call(e);
|
|
12165
12189
|
}
|
|
12166
|
-
var
|
|
12190
|
+
var ab = "[object Null]", sb = "[object Undefined]", ds = ti ? ti.toStringTag : void 0;
|
|
12167
12191
|
function Vn(e) {
|
|
12168
|
-
return e == null ? e === void 0 ?
|
|
12192
|
+
return e == null ? e === void 0 ? sb : ab : ds && ds in Object(e) ? eb(e) : ib(e);
|
|
12169
12193
|
}
|
|
12170
12194
|
function zo(e) {
|
|
12171
12195
|
var t = typeof e;
|
|
12172
12196
|
return e != null && (t == "object" || t == "function");
|
|
12173
12197
|
}
|
|
12174
|
-
var
|
|
12198
|
+
var ob = "[object AsyncFunction]", rb = "[object Function]", lb = "[object GeneratorFunction]", cb = "[object Proxy]";
|
|
12175
12199
|
function Jo(e) {
|
|
12176
12200
|
if (!zo(e))
|
|
12177
12201
|
return !1;
|
|
12178
12202
|
var t = Vn(e);
|
|
12179
|
-
return t ==
|
|
12203
|
+
return t == rb || t == lb || t == ob || t == cb;
|
|
12180
12204
|
}
|
|
12181
12205
|
var Bi = Lt["__core-js_shared__"], ps = function() {
|
|
12182
12206
|
var e = /[^.]+$/.exec(Bi && Bi.keys && Bi.keys.IE_PROTO || "");
|
|
12183
12207
|
return e ? "Symbol(src)_1." + e : "";
|
|
12184
12208
|
}();
|
|
12185
|
-
function
|
|
12209
|
+
function ub(e) {
|
|
12186
12210
|
return !!ps && ps in e;
|
|
12187
12211
|
}
|
|
12188
|
-
var
|
|
12212
|
+
var db = Function.prototype, pb = db.toString;
|
|
12189
12213
|
function an(e) {
|
|
12190
12214
|
if (e != null) {
|
|
12191
12215
|
try {
|
|
12192
|
-
return
|
|
12216
|
+
return pb.call(e);
|
|
12193
12217
|
} catch {
|
|
12194
12218
|
}
|
|
12195
12219
|
try {
|
|
@@ -12199,36 +12223,36 @@ function an(e) {
|
|
|
12199
12223
|
}
|
|
12200
12224
|
return "";
|
|
12201
12225
|
}
|
|
12202
|
-
var
|
|
12203
|
-
"^" +
|
|
12226
|
+
var Ab = /[\\^$.*+?()[\]{}|]/g, gb = /^\[object .+?Constructor\]$/, mb = Function.prototype, fb = Object.prototype, hb = mb.toString, vb = fb.hasOwnProperty, yb = RegExp(
|
|
12227
|
+
"^" + hb.call(vb).replace(Ab, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12204
12228
|
);
|
|
12205
|
-
function
|
|
12206
|
-
if (!zo(e) ||
|
|
12229
|
+
function bb(e) {
|
|
12230
|
+
if (!zo(e) || ub(e))
|
|
12207
12231
|
return !1;
|
|
12208
|
-
var t = Jo(e) ?
|
|
12232
|
+
var t = Jo(e) ? yb : gb;
|
|
12209
12233
|
return t.test(an(e));
|
|
12210
12234
|
}
|
|
12211
|
-
function
|
|
12235
|
+
function Eb(e, t) {
|
|
12212
12236
|
return e == null ? void 0 : e[t];
|
|
12213
12237
|
}
|
|
12214
12238
|
function Nn(e, t) {
|
|
12215
|
-
var n =
|
|
12216
|
-
return
|
|
12239
|
+
var n = Eb(e, t);
|
|
12240
|
+
return bb(n) ? n : void 0;
|
|
12217
12241
|
}
|
|
12218
|
-
var ji = Nn(Lt, "DataView"), Yi = Nn(Lt, "Map"), Hi = Nn(Lt, "Promise"), Vi = Nn(Lt, "Set"), Ni = Nn(Lt, "WeakMap"), As = "[object Map]",
|
|
12242
|
+
var ji = Nn(Lt, "DataView"), Yi = Nn(Lt, "Map"), Hi = Nn(Lt, "Promise"), Vi = Nn(Lt, "Set"), Ni = Nn(Lt, "WeakMap"), As = "[object Map]", wb = "[object Object]", gs = "[object Promise]", ms = "[object Set]", fs = "[object WeakMap]", hs = "[object DataView]", Cb = an(ji), Bb = an(Yi), Ib = an(Hi), Ob = an(Vi), Mb = an(Ni), Ft = Vn;
|
|
12219
12243
|
(ji && Ft(new ji(new ArrayBuffer(1))) != hs || Yi && Ft(new Yi()) != As || Hi && Ft(Hi.resolve()) != gs || Vi && Ft(new Vi()) != ms || Ni && Ft(new Ni()) != fs) && (Ft = function(e) {
|
|
12220
|
-
var t = Vn(e), n = t ==
|
|
12244
|
+
var t = Vn(e), n = t == wb ? e.constructor : void 0, i = n ? an(n) : "";
|
|
12221
12245
|
if (i)
|
|
12222
12246
|
switch (i) {
|
|
12223
|
-
case
|
|
12247
|
+
case Cb:
|
|
12224
12248
|
return hs;
|
|
12225
|
-
case
|
|
12249
|
+
case Bb:
|
|
12226
12250
|
return As;
|
|
12227
|
-
case
|
|
12251
|
+
case Ib:
|
|
12228
12252
|
return gs;
|
|
12229
|
-
case
|
|
12253
|
+
case Ob:
|
|
12230
12254
|
return ms;
|
|
12231
|
-
case
|
|
12255
|
+
case Mb:
|
|
12232
12256
|
return fs;
|
|
12233
12257
|
}
|
|
12234
12258
|
return t;
|
|
@@ -12236,67 +12260,67 @@ var ji = Nn(Lt, "DataView"), Yi = Nn(Lt, "Map"), Hi = Nn(Lt, "Promise"), Vi = Nn
|
|
|
12236
12260
|
function oa(e) {
|
|
12237
12261
|
return e != null && typeof e == "object";
|
|
12238
12262
|
}
|
|
12239
|
-
var
|
|
12263
|
+
var Rb = "[object Arguments]";
|
|
12240
12264
|
function vs(e) {
|
|
12241
|
-
return oa(e) && Vn(e) ==
|
|
12265
|
+
return oa(e) && Vn(e) == Rb;
|
|
12242
12266
|
}
|
|
12243
|
-
var qo = Object.prototype,
|
|
12267
|
+
var qo = Object.prototype, kb = qo.hasOwnProperty, Sb = qo.propertyIsEnumerable, Tb = vs(/* @__PURE__ */ function() {
|
|
12244
12268
|
return arguments;
|
|
12245
12269
|
}()) ? vs : function(e) {
|
|
12246
|
-
return oa(e) &&
|
|
12247
|
-
},
|
|
12270
|
+
return oa(e) && kb.call(e, "callee") && !Sb.call(e, "callee");
|
|
12271
|
+
}, xb = Array.isArray, Pb = 9007199254740991;
|
|
12248
12272
|
function Qo(e) {
|
|
12249
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
12273
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Pb;
|
|
12250
12274
|
}
|
|
12251
|
-
function
|
|
12275
|
+
function Gb(e) {
|
|
12252
12276
|
return e != null && Qo(e.length) && !Jo(e);
|
|
12253
12277
|
}
|
|
12254
|
-
function
|
|
12278
|
+
function Ub() {
|
|
12255
12279
|
return !1;
|
|
12256
12280
|
}
|
|
12257
|
-
var Xo = typeof exports == "object" && exports && !exports.nodeType && exports, ys = Xo && typeof module == "object" && module && !module.nodeType && module,
|
|
12258
|
-
Pe[
|
|
12259
|
-
Pe[
|
|
12260
|
-
function
|
|
12281
|
+
var Xo = typeof exports == "object" && exports && !exports.nodeType && exports, ys = Xo && typeof module == "object" && module && !module.nodeType && module, Lb = ys && ys.exports === Xo, bs = Lb ? Lt.Buffer : void 0, Db = bs ? bs.isBuffer : void 0, jb = Db || Ub, Yb = "[object Arguments]", Hb = "[object Array]", Vb = "[object Boolean]", Nb = "[object Date]", Fb = "[object Error]", Kb = "[object Function]", zb = "[object Map]", Jb = "[object Number]", qb = "[object Object]", Qb = "[object RegExp]", Xb = "[object Set]", Zb = "[object String]", Wb = "[object WeakMap]", _b = "[object ArrayBuffer]", $b = "[object DataView]", eE = "[object Float32Array]", tE = "[object Float64Array]", nE = "[object Int8Array]", iE = "[object Int16Array]", aE = "[object Int32Array]", sE = "[object Uint8Array]", oE = "[object Uint8ClampedArray]", rE = "[object Uint16Array]", lE = "[object Uint32Array]", Pe = {};
|
|
12282
|
+
Pe[eE] = Pe[tE] = Pe[nE] = Pe[iE] = Pe[aE] = Pe[sE] = Pe[oE] = Pe[rE] = Pe[lE] = !0;
|
|
12283
|
+
Pe[Yb] = Pe[Hb] = Pe[_b] = Pe[Vb] = Pe[$b] = Pe[Nb] = Pe[Fb] = Pe[Kb] = Pe[zb] = Pe[Jb] = Pe[qb] = Pe[Qb] = Pe[Xb] = Pe[Zb] = Pe[Wb] = !1;
|
|
12284
|
+
function cE(e) {
|
|
12261
12285
|
return oa(e) && Qo(e.length) && !!Pe[Vn(e)];
|
|
12262
12286
|
}
|
|
12263
|
-
function
|
|
12287
|
+
function uE(e) {
|
|
12264
12288
|
return function(t) {
|
|
12265
12289
|
return e(t);
|
|
12266
12290
|
};
|
|
12267
12291
|
}
|
|
12268
|
-
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, xn = Zo && typeof module == "object" && module && !module.nodeType && module,
|
|
12292
|
+
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, xn = Zo && typeof module == "object" && module && !module.nodeType && module, dE = xn && xn.exports === Zo, Ii = dE && Fo.process, Es = function() {
|
|
12269
12293
|
try {
|
|
12270
12294
|
var e = xn && xn.require && xn.require("util").types;
|
|
12271
12295
|
return e || Ii && Ii.binding && Ii.binding("util");
|
|
12272
12296
|
} catch {
|
|
12273
12297
|
}
|
|
12274
|
-
}(), ws = Es && Es.isTypedArray,
|
|
12298
|
+
}(), ws = Es && Es.isTypedArray, pE = ws ? uE(ws) : cE, AE = "[object Map]", gE = "[object Set]", mE = Object.prototype, fE = mE.hasOwnProperty;
|
|
12275
12299
|
function Cs(e) {
|
|
12276
12300
|
if (e == null)
|
|
12277
12301
|
return !0;
|
|
12278
|
-
if (
|
|
12302
|
+
if (Gb(e) && (xb(e) || typeof e == "string" || typeof e.splice == "function" || jb(e) || pE(e) || Tb(e)))
|
|
12279
12303
|
return !e.length;
|
|
12280
12304
|
var t = Ft(e);
|
|
12281
|
-
if (t ==
|
|
12305
|
+
if (t == AE || t == gE)
|
|
12282
12306
|
return !e.size;
|
|
12283
12307
|
if (No(e))
|
|
12284
|
-
return !
|
|
12308
|
+
return !Zy(e).length;
|
|
12285
12309
|
for (var n in e)
|
|
12286
|
-
if (
|
|
12310
|
+
if (fE.call(e, n))
|
|
12287
12311
|
return !1;
|
|
12288
12312
|
return !0;
|
|
12289
12313
|
}
|
|
12290
|
-
const
|
|
12314
|
+
const hE = "#00abd2", vE = "16px", yE = "24px", bE = { class: "kong-ui-entities-plugins-list" }, EE = { class: "button-row" }, wE = { class: "empty-state-icon-gateway" }, CE = { class: "name-cell-wrapper" }, BE = { class: "info-wrapper" }, IE = {
|
|
12291
12315
|
key: 0,
|
|
12292
12316
|
class: "info-name"
|
|
12293
|
-
},
|
|
12317
|
+
}, OE = {
|
|
12294
12318
|
key: 1,
|
|
12295
12319
|
class: "info-name"
|
|
12296
|
-
},
|
|
12320
|
+
}, ME = {
|
|
12297
12321
|
key: 2,
|
|
12298
12322
|
class: "info-type"
|
|
12299
|
-
},
|
|
12323
|
+
}, RE = { key: 1 }, kE = /* @__PURE__ */ ye({
|
|
12300
12324
|
__name: "PluginList",
|
|
12301
12325
|
props: {
|
|
12302
12326
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -12377,7 +12401,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12377
12401
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
12378
12402
|
setup(e, { emit: t }) {
|
|
12379
12403
|
var T, fe;
|
|
12380
|
-
const n =
|
|
12404
|
+
const n = He.usePluginMetaData(), i = t, a = e, { i18n: { t: s } } = He.useI18n(), o = si(), { axiosInstance: r } = Wt((T = a.config) == null ? void 0 : T.axiosRequestConfig), { hasRecords: c, handleStateChange: d } = gr(() => f.value), u = J(() => c.value && a.config.app === "konnect"), A = J(() => !a.enableV2EmptyStates && a.config.app === "konnect"), m = J(() => !!a.config.entityId), I = J(() => {
|
|
12381
12405
|
var N;
|
|
12382
12406
|
return ((N = a.config) == null ? void 0 : N.entityType) === "consumers";
|
|
12383
12407
|
}), D = J(() => {
|
|
@@ -12463,11 +12487,11 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12463
12487
|
}, Z = () => {
|
|
12464
12488
|
ue.value = !1, ee.value = null;
|
|
12465
12489
|
}, M = async () => {
|
|
12466
|
-
var Ae, we, Be, z, F, re,
|
|
12490
|
+
var Ae, we, Be, z, F, re, je, Qe;
|
|
12467
12491
|
if (!await ((Ae = a.canEdit) == null ? void 0 : Ae.call(a, ee.value)) || !ee.value)
|
|
12468
12492
|
return;
|
|
12469
12493
|
let ne = `${a.config.apiBaseUrl}${(F = Ne.item[a.config.app]) == null ? void 0 : F[(we = a.config) != null && we.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((Be = a.config) == null ? void 0 : Be.entityType) || "").replace(/{entityId}/gi, ((z = a.config) == null ? void 0 : z.entityId) || "")}`.replace(/{id}/gi, ee.value.id || "");
|
|
12470
|
-
a.config.app === "konnect" ? ne = ne.replace(/{controlPlaneId}/gi, ((re = a.config) == null ? void 0 : re.controlPlaneId) || "") : a.config.app === "kongManager" && (ne = ne.replace(/\/{workspace}/gi, (
|
|
12494
|
+
a.config.app === "konnect" ? ne = ne.replace(/{controlPlaneId}/gi, ((re = a.config) == null ? void 0 : re.controlPlaneId) || "") : a.config.app === "kongManager" && (ne = ne.replace(/\/{workspace}/gi, (je = a.config) != null && je.workspace ? `/${a.config.workspace}` : ""));
|
|
12471
12495
|
const oe = !ee.value.enabled;
|
|
12472
12496
|
try {
|
|
12473
12497
|
const { data: it } = ((Qe = a.config) == null ? void 0 : Qe.app) === "konnect" ? await r.put(ne, { ...ee.value, enabled: oe }, { timeout: 12e4 }) : await r.patch(ne, { ...ee.value, enabled: oe }, { timeout: 12e4 });
|
|
@@ -12515,7 +12539,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12515
12539
|
}), ae = (N) => ({
|
|
12516
12540
|
label: s("actions.configure_dynamic_ordering"),
|
|
12517
12541
|
to: a.config.getConfigureDynamicOrderingRoute(N)
|
|
12518
|
-
}), ze = $(void 0), Re = $(!1), et = $(!1), It = $(""), Dt = hr(a.config, E.value),
|
|
12542
|
+
}), ze = $(void 0), Re = $(!1), et = $(!1), It = $(""), Dt = hr(a.config, E.value), De = (N) => {
|
|
12519
12543
|
ze.value = N, Re.value = !0;
|
|
12520
12544
|
}, jt = () => {
|
|
12521
12545
|
Re.value = !1;
|
|
@@ -12554,7 +12578,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12554
12578
|
await a.canCreate() && (se.value.title = s("plugins.list.empty_state.title"), se.value.ctaText = s("actions.create"));
|
|
12555
12579
|
}), (N, ne) => {
|
|
12556
12580
|
const oe = q("KButton"), Ae = q("KBadge"), we = q("KTruncate"), Be = q("KInputSwitch"), z = q("KDropdownItem"), F = q("KClipboardProvider");
|
|
12557
|
-
return p(), B("div",
|
|
12581
|
+
return p(), B("div", bE, [
|
|
12558
12582
|
G(g(yr), {
|
|
12559
12583
|
"cache-identifier": e.cacheIdentifier,
|
|
12560
12584
|
"disable-sorting": S.value,
|
|
@@ -12586,7 +12610,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12586
12610
|
disabled: !e.useActionOutside,
|
|
12587
12611
|
to: "#kong-ui-app-page-header-action-button"
|
|
12588
12612
|
}, [
|
|
12589
|
-
v("div",
|
|
12613
|
+
v("div", EE, [
|
|
12590
12614
|
!m.value && u.value ? (p(), L(oe, {
|
|
12591
12615
|
key: 0,
|
|
12592
12616
|
appearance: "secondary",
|
|
@@ -12623,33 +12647,33 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12623
12647
|
], 8, ["disabled"]))
|
|
12624
12648
|
]),
|
|
12625
12649
|
name: b(({ row: re }) => [
|
|
12626
|
-
v("div",
|
|
12650
|
+
v("div", CE, [
|
|
12627
12651
|
G(sa, {
|
|
12628
12652
|
class: "plugin-icon",
|
|
12629
12653
|
name: re.name,
|
|
12630
12654
|
size: 24
|
|
12631
12655
|
}, null, 8, ["name"]),
|
|
12632
|
-
v("div",
|
|
12633
|
-
re.instance_name ? (p(), B("span",
|
|
12634
|
-
re.instance_name ? (p(), B("span",
|
|
12656
|
+
v("div", BE, [
|
|
12657
|
+
re.instance_name ? (p(), B("span", IE, X(re.instance_name), 1)) : (p(), B("span", OE, X(g(n).getDisplayName(re.name)), 1)),
|
|
12658
|
+
re.instance_name ? (p(), B("span", ME, X(g(n).getDisplayName(re.name)), 1)) : ie("", !0)
|
|
12635
12659
|
])
|
|
12636
12660
|
])
|
|
12637
12661
|
]),
|
|
12638
12662
|
appliedTo: b(({ row: re }) => [
|
|
12639
12663
|
_(re).length > 0 ? (p(), L(we, { key: 0 }, {
|
|
12640
12664
|
default: b(() => [
|
|
12641
|
-
(p(!0), B(ge, null, Oe(_(re), (
|
|
12642
|
-
key:
|
|
12643
|
-
"auth-function": () => te(
|
|
12665
|
+
(p(!0), B(ge, null, Oe(_(re), (je) => (p(), L(g(Vt), {
|
|
12666
|
+
key: je.badgeText,
|
|
12667
|
+
"auth-function": () => te(je.type, re),
|
|
12644
12668
|
"force-show": ""
|
|
12645
12669
|
}, {
|
|
12646
12670
|
default: b(({ isAllowed: Qe }) => [
|
|
12647
12671
|
G(Ae, {
|
|
12648
12672
|
class: be(Qe || "disabled"),
|
|
12649
|
-
onClick: On((it) => Qe &&
|
|
12673
|
+
onClick: On((it) => Qe && je.type && le(je.type, re), ["stop"])
|
|
12650
12674
|
}, {
|
|
12651
12675
|
default: b(() => [
|
|
12652
|
-
he(X(
|
|
12676
|
+
he(X(je.badgeText), 1)
|
|
12653
12677
|
]),
|
|
12654
12678
|
_: 2
|
|
12655
12679
|
}, 1032, ["class", "onClick"])
|
|
@@ -12658,14 +12682,14 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12658
12682
|
}, 1032, ["auth-function"]))), 128))
|
|
12659
12683
|
]),
|
|
12660
12684
|
_: 2
|
|
12661
|
-
}, 1024)) : (p(), B("span",
|
|
12685
|
+
}, 1024)) : (p(), B("span", RE, "-"))
|
|
12662
12686
|
]),
|
|
12663
12687
|
enabled: b(({ row: re }) => [
|
|
12664
12688
|
G(g(Vt), {
|
|
12665
12689
|
"auth-function": async () => !!(await e.canEdit(re) && await e.canToggle(re)),
|
|
12666
12690
|
"force-show": ""
|
|
12667
12691
|
}, {
|
|
12668
|
-
default: b(({ isAllowed:
|
|
12692
|
+
default: b(({ isAllowed: je }) => {
|
|
12669
12693
|
var Qe, it;
|
|
12670
12694
|
return [
|
|
12671
12695
|
v("div", {
|
|
@@ -12673,10 +12697,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12673
12697
|
}, ["stop"]))
|
|
12674
12698
|
}, [
|
|
12675
12699
|
G(Be, {
|
|
12676
|
-
disabled: !
|
|
12677
|
-
"disabled-tooltip-text": !
|
|
12700
|
+
disabled: !je,
|
|
12701
|
+
"disabled-tooltip-text": !je && ((it = (Qe = e.config).getToggleDisabledTooltip) == null ? void 0 : it.call(Qe, re)) || void 0,
|
|
12678
12702
|
"model-value": re.enabled,
|
|
12679
|
-
onClick: On((sn) =>
|
|
12703
|
+
onClick: On((sn) => je && Y(re), ["stop", "prevent"])
|
|
12680
12704
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
12681
12705
|
])
|
|
12682
12706
|
];
|
|
@@ -12699,10 +12723,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12699
12723
|
]),
|
|
12700
12724
|
actions: b(({ row: re }) => [
|
|
12701
12725
|
G(F, null, {
|
|
12702
|
-
default: b(({ copyToClipboard:
|
|
12726
|
+
default: b(({ copyToClipboard: je }) => [
|
|
12703
12727
|
G(z, {
|
|
12704
12728
|
"data-testid": "action-entity-copy-id",
|
|
12705
|
-
onClick: (Qe) => R(re,
|
|
12729
|
+
onClick: (Qe) => R(re, je)
|
|
12706
12730
|
}, {
|
|
12707
12731
|
default: b(() => [
|
|
12708
12732
|
he(X(g(s)("actions.copy_id")), 1)
|
|
@@ -12713,10 +12737,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12713
12737
|
_: 2
|
|
12714
12738
|
}, 1024),
|
|
12715
12739
|
G(F, null, {
|
|
12716
|
-
default: b(({ copyToClipboard:
|
|
12740
|
+
default: b(({ copyToClipboard: je }) => [
|
|
12717
12741
|
G(z, {
|
|
12718
12742
|
"data-testid": "action-entity-copy-json",
|
|
12719
|
-
onClick: (Qe) => P(re,
|
|
12743
|
+
onClick: (Qe) => P(re, je)
|
|
12720
12744
|
}, {
|
|
12721
12745
|
default: b(() => [
|
|
12722
12746
|
he(X(g(s)("actions.copy_json")), 1)
|
|
@@ -12770,7 +12794,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12770
12794
|
danger: "",
|
|
12771
12795
|
"data-testid": "action-entity-delete",
|
|
12772
12796
|
"has-divider": "",
|
|
12773
|
-
onClick: (
|
|
12797
|
+
onClick: (je) => De(re)
|
|
12774
12798
|
}, {
|
|
12775
12799
|
default: b(() => [
|
|
12776
12800
|
he(X(g(s)("actions.delete")), 1)
|
|
@@ -12821,10 +12845,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12821
12845
|
"onClick:learnMore": ne[3] || (ne[3] = (re) => N.$emit("click:learn-more"))
|
|
12822
12846
|
}, {
|
|
12823
12847
|
image: b(() => [
|
|
12824
|
-
v("div",
|
|
12848
|
+
v("div", wE, [
|
|
12825
12849
|
G(g(Rr), {
|
|
12826
|
-
color: g(
|
|
12827
|
-
size: g(
|
|
12850
|
+
color: g(hE),
|
|
12851
|
+
size: g(yE)
|
|
12828
12852
|
}, null, 8, ["color", "size"])
|
|
12829
12853
|
])
|
|
12830
12854
|
]),
|
|
@@ -12858,13 +12882,13 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12858
12882
|
]);
|
|
12859
12883
|
};
|
|
12860
12884
|
}
|
|
12861
|
-
}),
|
|
12885
|
+
}), Ew = /* @__PURE__ */ ht(kE, [["__scopeId", "data-v-2a23bbaf"]]), SE = { class: "plugin-select-card-wrapper" }, TE = ["data-testid"], xE = { class: "plugin-card-header" }, PE = { class: "plugin-card-title" }, GE = {
|
|
12862
12886
|
key: 0,
|
|
12863
12887
|
class: "plugin-card-actions"
|
|
12864
|
-
},
|
|
12888
|
+
}, UE = ["data-testid", "title"], LE = {
|
|
12865
12889
|
key: 0,
|
|
12866
12890
|
class: "plugin-card-text"
|
|
12867
|
-
},
|
|
12891
|
+
}, DE = { key: 0 }, jE = ["title"], YE = /* @__PURE__ */ ye({
|
|
12868
12892
|
__name: "PluginSelectCard",
|
|
12869
12893
|
props: {
|
|
12870
12894
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -12898,7 +12922,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12898
12922
|
},
|
|
12899
12923
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
12900
12924
|
setup(e, { emit: t }) {
|
|
12901
|
-
const n = t, i = e, a = si(), { i18n: { t: s } } =
|
|
12925
|
+
const n = t, i = e, a = si(), { i18n: { t: s } } = He.useI18n(), o = J(() => i.config.app === "konnect" ? i.config.controlPlaneId : ""), r = J(() => !!(!i.plugin.available || i.plugin.disabledMessage)), c = J(() => !!(I.value && !m.value && i.navigateOnClick && o.value && (i.canDeleteCustomPlugin || i.canEditCustomPlugin))), d = () => {
|
|
12902
12926
|
a.push(i.config.getCreateRoute(i.plugin.id));
|
|
12903
12927
|
}, u = () => {
|
|
12904
12928
|
i.navigateOnClick ? d() : A();
|
|
@@ -12917,7 +12941,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12917
12941
|
};
|
|
12918
12942
|
return (O, Q) => {
|
|
12919
12943
|
const E = q("KButton"), f = q("KDropdownItem"), C = q("KDropdownMenu"), h = q("KTooltip");
|
|
12920
|
-
return p(), B("div",
|
|
12944
|
+
return p(), B("div", SE, [
|
|
12921
12945
|
G(h, {
|
|
12922
12946
|
text: e.plugin.disabledMessage
|
|
12923
12947
|
}, {
|
|
@@ -12928,13 +12952,13 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12928
12952
|
role: "button",
|
|
12929
12953
|
onClick: Q[1] || (Q[1] = (k) => r.value || I.value ? void 0 : u())
|
|
12930
12954
|
}, [
|
|
12931
|
-
v("div",
|
|
12932
|
-
v("div",
|
|
12955
|
+
v("div", xE, [
|
|
12956
|
+
v("div", PE, [
|
|
12933
12957
|
v("span", {
|
|
12934
12958
|
class: be({ "non-custom-title": !I.value })
|
|
12935
12959
|
}, X(e.plugin.name), 3)
|
|
12936
12960
|
]),
|
|
12937
|
-
c.value ? (p(), B("div",
|
|
12961
|
+
c.value ? (p(), B("div", GE, [
|
|
12938
12962
|
G(C, {
|
|
12939
12963
|
"data-testid": "custom-plugin-actions",
|
|
12940
12964
|
"kpop-attributes": { placement: "bottom-end" },
|
|
@@ -12949,7 +12973,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12949
12973
|
size: "small"
|
|
12950
12974
|
}, {
|
|
12951
12975
|
default: b(() => [
|
|
12952
|
-
G(g(kr), { size: g(
|
|
12976
|
+
G(g(kr), { size: g(vE) }, null, 8, ["size"])
|
|
12953
12977
|
]),
|
|
12954
12978
|
_: 1
|
|
12955
12979
|
})
|
|
@@ -12994,27 +13018,27 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
12994
13018
|
name: e.plugin.imageName || e.plugin.id,
|
|
12995
13019
|
size: 55
|
|
12996
13020
|
}, null, 8, ["alt", "name"]),
|
|
12997
|
-
e.plugin.description || I.value && !m.value ? (p(), B("div",
|
|
12998
|
-
I.value && !m.value ? (p(), B("p",
|
|
13021
|
+
e.plugin.description || I.value && !m.value ? (p(), B("div", LE, [
|
|
13022
|
+
I.value && !m.value ? (p(), B("p", DE, X(g(s)("plugins.select.custom_badge_text")), 1)) : ie("", !0),
|
|
12999
13023
|
e.plugin.description ? (p(), B("p", {
|
|
13000
13024
|
key: 1,
|
|
13001
13025
|
class: "plugin-card-text",
|
|
13002
13026
|
title: e.plugin.description
|
|
13003
|
-
}, X(e.plugin.description), 9,
|
|
13027
|
+
}, X(e.plugin.description), 9, jE)) : ie("", !0)
|
|
13004
13028
|
])) : ie("", !0)
|
|
13005
|
-
], 10,
|
|
13029
|
+
], 10, UE),
|
|
13006
13030
|
v("div", {
|
|
13007
13031
|
class: "plugin-card-footer",
|
|
13008
13032
|
onClick: S
|
|
13009
13033
|
}, X(m.value ? g(s)("actions.create_custom") : e.plugin.exists ? g(s)("actions.enabled") : g(s)("actions.enable")), 1)
|
|
13010
|
-
], 10,
|
|
13034
|
+
], 10, TE)
|
|
13011
13035
|
]),
|
|
13012
13036
|
_: 1
|
|
13013
13037
|
}, 8, ["text"])
|
|
13014
13038
|
]);
|
|
13015
13039
|
};
|
|
13016
13040
|
}
|
|
13017
|
-
}), Wo = /* @__PURE__ */ ht(
|
|
13041
|
+
}), Wo = /* @__PURE__ */ ht(YE, [["__scopeId", "data-v-b6a2ebc6"]]), HE = /* @__PURE__ */ ye({
|
|
13018
13042
|
__name: "DeleteCustomPluginSchemaModal",
|
|
13019
13043
|
props: {
|
|
13020
13044
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13031,7 +13055,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13031
13055
|
emits: ["closed", "proceed"],
|
|
13032
13056
|
setup(e, { emit: t }) {
|
|
13033
13057
|
var D;
|
|
13034
|
-
const n = e, i = t, { i18nT: a, i18n: { t: s } } =
|
|
13058
|
+
const n = e, i = t, { i18nT: a, i18n: { t: s } } = He.useI18n(), { getMessageFromError: o } = ai(), { axiosInstance: r } = Wt((D = n.config) == null ? void 0 : D.axiosRequestConfig), c = J(() => {
|
|
13035
13059
|
var y;
|
|
13036
13060
|
return A.value ? s("delete.plugin_schema_in_use_title") : s("delete.title", { name: ((y = n.plugin) == null ? void 0 : y.name) || s("delete.custom_plugin") });
|
|
13037
13061
|
}), d = $(!1), u = $(""), A = $(!1), m = J(() => {
|
|
@@ -13110,7 +13134,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13110
13134
|
}, 8, ["action-button-disabled", "title"])) : ie("", !0);
|
|
13111
13135
|
};
|
|
13112
13136
|
}
|
|
13113
|
-
}),
|
|
13137
|
+
}), VE = /* @__PURE__ */ ht(HE, [["__scopeId", "data-v-9e0dee7f"]]), NE = { class: "custom-plugins-grid" }, FE = { class: "empty-state-title" }, KE = { class: "empty-state-description" }, Oi = 310, zE = /* @__PURE__ */ ye({
|
|
13114
13138
|
__name: "PluginCustomGrid",
|
|
13115
13139
|
props: {
|
|
13116
13140
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13158,7 +13182,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13158
13182
|
},
|
|
13159
13183
|
emits: ["plugin-clicked", "revalidate", "delete:success"],
|
|
13160
13184
|
setup(e, { emit: t }) {
|
|
13161
|
-
const n = e, i = t, { i18n: { t: a } } =
|
|
13185
|
+
const n = e, i = t, { i18n: { t: a } } = He.useI18n(), { getTallestPluginCardHeight: s, getToggleVisibility: o } = He.usePluginHelpers(), r = $(!0), c = (C) => {
|
|
13162
13186
|
i("plugin-clicked", C);
|
|
13163
13187
|
}, d = J(() => {
|
|
13164
13188
|
if (n.config.app === "kongManager")
|
|
@@ -13195,7 +13219,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13195
13219
|
window == null || window.removeEventListener("resize", E);
|
|
13196
13220
|
}), (C, h) => {
|
|
13197
13221
|
const k = q("KEmptyState"), x = q("KCollapse");
|
|
13198
|
-
return p(), B("div",
|
|
13222
|
+
return p(), B("div", NE, [
|
|
13199
13223
|
d.value.length ? (p(), L(x, {
|
|
13200
13224
|
key: 1,
|
|
13201
13225
|
modelValue: r.value,
|
|
@@ -13243,14 +13267,14 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13243
13267
|
"icon-variant": "kong"
|
|
13244
13268
|
}, {
|
|
13245
13269
|
title: b(() => [
|
|
13246
|
-
v("span",
|
|
13270
|
+
v("span", FE, X(g(a)("plugins.select.tabs.custom.empty_title")), 1)
|
|
13247
13271
|
]),
|
|
13248
13272
|
default: b(() => [
|
|
13249
|
-
v("span",
|
|
13273
|
+
v("span", KE, X(g(a)("plugins.select.tabs.custom.empty_description")), 1)
|
|
13250
13274
|
]),
|
|
13251
13275
|
_: 1
|
|
13252
13276
|
})),
|
|
13253
|
-
u.value && A.value ? (p(), L(
|
|
13277
|
+
u.value && A.value ? (p(), L(VE, {
|
|
13254
13278
|
key: 2,
|
|
13255
13279
|
config: e.config,
|
|
13256
13280
|
plugin: A.value,
|
|
@@ -13260,7 +13284,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13260
13284
|
]);
|
|
13261
13285
|
};
|
|
13262
13286
|
}
|
|
13263
|
-
}),
|
|
13287
|
+
}), JE = /* @__PURE__ */ ht(zE, [["__scopeId", "data-v-9703ee67"]]), Mi = 310, qE = /* @__PURE__ */ ye({
|
|
13264
13288
|
__name: "PluginSelectGroup",
|
|
13265
13289
|
props: /* @__PURE__ */ ra({
|
|
13266
13290
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13297,7 +13321,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13297
13321
|
}),
|
|
13298
13322
|
emits: /* @__PURE__ */ ra(["plugin-clicked"], ["update:modelValue"]),
|
|
13299
13323
|
setup(e, { emit: t }) {
|
|
13300
|
-
const n = cr(e, "modelValue"), i = e, a = t, { i18n: { t: s } } =
|
|
13324
|
+
const n = cr(e, "modelValue"), i = e, a = t, { i18n: { t: s } } = He.useI18n(), { getTallestPluginCardHeight: o, getToggleVisibility: r } = He.usePluginHelpers(), c = $(Mi), d = $(null), u = $(null), A = J(() => n.value ? {
|
|
13301
13325
|
overflowY: "hidden",
|
|
13302
13326
|
maxHeight: `${c.value}px`
|
|
13303
13327
|
} : {}), m = $(!1), I = () => {
|
|
@@ -13351,7 +13375,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13351
13375
|
]), 1032, ["modelValue", "data-testid", "title", "trigger-label"]);
|
|
13352
13376
|
};
|
|
13353
13377
|
}
|
|
13354
|
-
}), Bs = /* @__PURE__ */ ht(
|
|
13378
|
+
}), Bs = /* @__PURE__ */ ht(qE, [["__scopeId", "data-v-a1074120"]]), QE = { class: "plugin-select-grid" }, XE = { class: "empty-state-title" }, ZE = { class: "empty-state-description" }, Is = /* @__PURE__ */ ye({
|
|
13355
13379
|
__name: "PluginSelectGrid",
|
|
13356
13380
|
props: {
|
|
13357
13381
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13399,7 +13423,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13399
13423
|
},
|
|
13400
13424
|
emits: ["plugin-clicked"],
|
|
13401
13425
|
setup(e, { emit: t }) {
|
|
13402
|
-
const n = e, i = t, { i18n: { t: a } } =
|
|
13426
|
+
const n = e, i = t, { i18n: { t: a } } = He.useI18n(), s = $(!1), o = $(lu), r = (d) => {
|
|
13403
13427
|
i("plugin-clicked", d);
|
|
13404
13428
|
}, c = J(() => {
|
|
13405
13429
|
const d = JSON.parse(JSON.stringify(n.pluginList));
|
|
@@ -13407,7 +13431,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13407
13431
|
});
|
|
13408
13432
|
return (d, u) => {
|
|
13409
13433
|
const A = q("KEmptyState");
|
|
13410
|
-
return p(), B("div",
|
|
13434
|
+
return p(), B("div", QE, [
|
|
13411
13435
|
Object.keys(c.value).length ? ie("", !0) : (p(), L(A, {
|
|
13412
13436
|
key: 0,
|
|
13413
13437
|
"action-button-visible": !1,
|
|
@@ -13416,10 +13440,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13416
13440
|
"icon-variant": "kong"
|
|
13417
13441
|
}, {
|
|
13418
13442
|
title: b(() => [
|
|
13419
|
-
v("span",
|
|
13443
|
+
v("span", XE, X(g(a)("plugins.select.tabs.kong.empty_title")), 1)
|
|
13420
13444
|
]),
|
|
13421
13445
|
default: b(() => [
|
|
13422
|
-
v("span",
|
|
13446
|
+
v("span", ZE, X(g(a)("plugins.select.tabs.kong.empty_description")), 1)
|
|
13423
13447
|
]),
|
|
13424
13448
|
_: 1
|
|
13425
13449
|
})),
|
|
@@ -13449,11 +13473,11 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13449
13473
|
]);
|
|
13450
13474
|
};
|
|
13451
13475
|
}
|
|
13452
|
-
}),
|
|
13476
|
+
}), WE = { class: "kong-ui-entities-plugin-select-form" }, _E = { class: "plugins-filter-input-container" }, $E = { key: 0 }, ew = {
|
|
13453
13477
|
key: 3,
|
|
13454
13478
|
"aria-live": "polite",
|
|
13455
13479
|
class: "plugins-results-container"
|
|
13456
|
-
},
|
|
13480
|
+
}, tw = { "data-testid": "kong-tab" }, nw = { class: "tab-description" }, iw = { "data-testid": "custom-tab" }, aw = { class: "tab-description" }, sw = /* @__PURE__ */ ye({
|
|
13457
13481
|
__name: "PluginSelect",
|
|
13458
13482
|
props: {
|
|
13459
13483
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13537,7 +13561,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13537
13561
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
13538
13562
|
setup(e, { emit: t }) {
|
|
13539
13563
|
var Z;
|
|
13540
|
-
const n = e, i = t, a = Or(), s = si(), { i18n: { t: o } } =
|
|
13564
|
+
const n = e, i = t, a = Or(), s = si(), { i18n: { t: o } } = He.useI18n(), { pluginMetaData: r } = He.usePluginMetaData(), { getMessageFromError: c } = ai(), { sortAlpha: d, objectsAreEqual: u } = ii(), A = $(""), m = $(!0), I = $(!1), D = $(""), y = $([]), S = $([]), O = $({}), Q = $([]), { axiosInstance: E } = Wt((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), f = J(() => O.value ? Object.entries(O.value).filter(([M]) => M !== w.CUSTOM_PLUGINS).reduce((M, [, R]) => {
|
|
13541
13565
|
for (const P of R)
|
|
13542
13566
|
M[P.id] = P;
|
|
13543
13567
|
return M;
|
|
@@ -13644,8 +13668,8 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13644
13668
|
I.value || (O.value = V()), m.value = !1;
|
|
13645
13669
|
}), (M, R) => {
|
|
13646
13670
|
const P = q("KInput"), ce = q("KSkeletonBox"), pe = q("KSkeleton"), de = q("KEmptyState"), ae = q("KTooltip"), ze = q("KTabs");
|
|
13647
|
-
return p(), B("div",
|
|
13648
|
-
v("div",
|
|
13671
|
+
return p(), B("div", WE, [
|
|
13672
|
+
v("div", _E, [
|
|
13649
13673
|
G(P, {
|
|
13650
13674
|
modelValue: A.value,
|
|
13651
13675
|
"onUpdate:modelValue": R[0] || (R[0] = (Re) => A.value = Re),
|
|
@@ -13656,7 +13680,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13656
13680
|
type: "search"
|
|
13657
13681
|
}, null, 8, ["modelValue", "placeholder"])
|
|
13658
13682
|
]),
|
|
13659
|
-
m.value ? (p(), B("section",
|
|
13683
|
+
m.value ? (p(), B("section", $E, [
|
|
13660
13684
|
G(ce, {
|
|
13661
13685
|
class: "plugins-skeleton-title",
|
|
13662
13686
|
width: "10"
|
|
@@ -13686,7 +13710,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13686
13710
|
v("h5", null, X(g(o)("search.no_results", { filter: A.value })), 1)
|
|
13687
13711
|
]),
|
|
13688
13712
|
_: 1
|
|
13689
|
-
})) : (p(), B("section",
|
|
13713
|
+
})) : (p(), B("section", ew, [
|
|
13690
13714
|
W.value.length && e.customPluginSupport !== "none" ? (p(), L(ze, {
|
|
13691
13715
|
key: 0,
|
|
13692
13716
|
modelValue: j.value,
|
|
@@ -13696,8 +13720,8 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13696
13720
|
onChange: ue
|
|
13697
13721
|
}, kt({
|
|
13698
13722
|
kong: b(() => [
|
|
13699
|
-
v("div",
|
|
13700
|
-
v("p",
|
|
13723
|
+
v("div", tw, [
|
|
13724
|
+
v("p", nw, X(g(o)("plugins.select.tabs.kong.description")), 1),
|
|
13701
13725
|
G(Is, {
|
|
13702
13726
|
config: e.config,
|
|
13703
13727
|
"hide-highlighted-plugins": A.value.length > 0,
|
|
@@ -13710,9 +13734,9 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13710
13734
|
])
|
|
13711
13735
|
]),
|
|
13712
13736
|
custom: b(() => [
|
|
13713
|
-
v("div",
|
|
13714
|
-
v("p",
|
|
13715
|
-
G(
|
|
13737
|
+
v("div", iw, [
|
|
13738
|
+
v("p", aw, X(g(o)("plugins.select.tabs.custom.description")), 1),
|
|
13739
|
+
G(JE, {
|
|
13716
13740
|
"can-create-custom-plugin": ee.value,
|
|
13717
13741
|
"can-delete-custom-plugin": Y.value,
|
|
13718
13742
|
"can-edit-custom-plugin": U.value,
|
|
@@ -13756,7 +13780,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13756
13780
|
]);
|
|
13757
13781
|
};
|
|
13758
13782
|
}
|
|
13759
|
-
}),
|
|
13783
|
+
}), ww = /* @__PURE__ */ ht(sw, [["__scopeId", "data-v-429bc3e0"]]), ow = { class: "kong-ui-entity-plugin-config-card" }, rw = { class: "name-cell-wrapper" }, lw = { class: "info-name" }, cw = { key: 0 }, uw = { key: 0 }, dw = { key: 0 }, pw = { key: 0 }, Ri = "config", Aw = /* @__PURE__ */ ye({
|
|
13760
13784
|
__name: "PluginConfigCard",
|
|
13761
13785
|
props: {
|
|
13762
13786
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13800,7 +13824,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13800
13824
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
|
|
13801
13825
|
setup(e, { emit: t }) {
|
|
13802
13826
|
var Q;
|
|
13803
|
-
const n = t, i = e, { i18n: { t: a } } =
|
|
13827
|
+
const n = t, i = e, { i18n: { t: a } } = He.useI18n(), s = He.usePluginMetaData(), { setFieldType: o } = He.usePluginHelpers(), { getPropValue: r } = ii(), c = J(
|
|
13804
13828
|
() => {
|
|
13805
13829
|
var E;
|
|
13806
13830
|
return (E = Ne.item[i.config.app]) == null ? void 0 : E[i.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, i.scopedEntityType).replace(/{entityId}/gi, i.scopedEntityId);
|
|
@@ -13884,7 +13908,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13884
13908
|
}
|
|
13885
13909
|
}), (E, f) => {
|
|
13886
13910
|
const C = q("KSkeleton"), h = q("KEmptyState"), k = q("KCopy");
|
|
13887
|
-
return p(), B("div",
|
|
13911
|
+
return p(), B("div", ow, [
|
|
13888
13912
|
S.value ? (p(), L(C, {
|
|
13889
13913
|
key: 0,
|
|
13890
13914
|
"data-testid": "plugin-config-card-loader",
|
|
@@ -13914,13 +13938,13 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13914
13938
|
onLoading: f[2] || (f[2] = (x) => E.$emit("loading", x))
|
|
13915
13939
|
}, {
|
|
13916
13940
|
name: b((x) => [
|
|
13917
|
-
v("div",
|
|
13941
|
+
v("div", rw, [
|
|
13918
13942
|
G(sa, {
|
|
13919
13943
|
class: "plugin-icon",
|
|
13920
13944
|
name: g(r)("rowValue", x),
|
|
13921
13945
|
size: 24
|
|
13922
13946
|
}, null, 8, ["name"]),
|
|
13923
|
-
v("span",
|
|
13947
|
+
v("span", lw, X(g(s).getDisplayName(g(r)("rowValue", x))), 1)
|
|
13924
13948
|
])
|
|
13925
13949
|
]),
|
|
13926
13950
|
consumer: b((x) => [
|
|
@@ -13937,7 +13961,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13937
13961
|
"copy-tooltip": g(a)("copy.tooltip", { label: g(r)("row", x).label }),
|
|
13938
13962
|
"data-testid": "consumer-copy-uuid",
|
|
13939
13963
|
text: g(r)("rowValue", x).id
|
|
13940
|
-
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span",
|
|
13964
|
+
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span", cw, "–"))
|
|
13941
13965
|
]),
|
|
13942
13966
|
route: b((x) => [
|
|
13943
13967
|
g(r)("rowValue", x) ? e.showIdAsLink ? (p(), L(g(Kn), {
|
|
@@ -13953,7 +13977,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13953
13977
|
"copy-tooltip": g(a)("copy.tooltip", { label: g(r)("row", x).label }),
|
|
13954
13978
|
"data-testid": "route-copy-uuid",
|
|
13955
13979
|
text: g(r)("rowValue", x).id
|
|
13956
|
-
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span",
|
|
13980
|
+
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span", uw, "–"))
|
|
13957
13981
|
]),
|
|
13958
13982
|
service: b((x) => [
|
|
13959
13983
|
g(r)("rowValue", x) ? e.showIdAsLink ? (p(), L(g(Kn), {
|
|
@@ -13969,7 +13993,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13969
13993
|
"copy-tooltip": g(a)("copy.tooltip", { label: g(r)("row", x).label }),
|
|
13970
13994
|
"data-testid": "service-copy-uuid",
|
|
13971
13995
|
text: g(r)("rowValue", x).id
|
|
13972
|
-
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span",
|
|
13996
|
+
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span", dw, "–"))
|
|
13973
13997
|
]),
|
|
13974
13998
|
consumer_group: b((x) => [
|
|
13975
13999
|
g(r)("rowValue", x) ? e.showIdAsLink ? (p(), L(g(Kn), {
|
|
@@ -13985,29 +14009,29 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
|
|
|
13985
14009
|
"copy-tooltip": g(a)("copy.tooltip", { label: g(r)("row", x).label }),
|
|
13986
14010
|
"data-testid": "consumer-group-copy-uuid",
|
|
13987
14011
|
text: g(r)("rowValue", x).id
|
|
13988
|
-
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span",
|
|
14012
|
+
}, null, 8, ["copy-tooltip", "text"])) : (p(), B("span", pw, "–"))
|
|
13989
14013
|
]),
|
|
13990
14014
|
_: 1
|
|
13991
14015
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title", "plugin-config-schema"]))
|
|
13992
14016
|
]);
|
|
13993
14017
|
};
|
|
13994
14018
|
}
|
|
13995
|
-
}),
|
|
14019
|
+
}), Cw = /* @__PURE__ */ ht(Aw, [["__scopeId", "data-v-f27734d2"]]), { usePluginMetaData: Bw } = He;
|
|
13996
14020
|
export {
|
|
13997
14021
|
rn as EntityTypeIdField,
|
|
13998
14022
|
lu as PLUGIN_GROUPS_COLLAPSE_STATUS,
|
|
13999
|
-
|
|
14000
|
-
|
|
14023
|
+
Cw as PluginConfigCard,
|
|
14024
|
+
bw as PluginForm,
|
|
14001
14025
|
w as PluginGroup,
|
|
14002
14026
|
ru as PluginGroupArray,
|
|
14003
14027
|
sa as PluginIcon,
|
|
14004
|
-
|
|
14028
|
+
Ew as PluginList,
|
|
14005
14029
|
l as PluginScope,
|
|
14006
|
-
|
|
14030
|
+
ww as PluginSelect,
|
|
14007
14031
|
Wo as PluginSelectCard,
|
|
14008
14032
|
Is as PluginSelectGrid,
|
|
14009
14033
|
st as VueFormGenerator,
|
|
14010
14034
|
Su as getPluginIconURL,
|
|
14011
14035
|
Ne as pluginEndpoints,
|
|
14012
|
-
|
|
14036
|
+
Bw as usePluginMetaData
|
|
14013
14037
|
};
|