@kong-ui-public/forms 4.23.7 → 4.23.8-pr.3042.f9cc92c2b.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/forms.es.js +122 -122
- package/dist/forms.umd.js +3 -3
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigSelect.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -570,7 +570,7 @@ function Ya() {
|
|
|
570
570
|
HTMLFormElement: p,
|
|
571
571
|
DOMParser: h,
|
|
572
572
|
trustedTypes: S
|
|
573
|
-
} = e, R = d.prototype, m = Dt(R, "cloneNode"), I = Dt(R, "remove"), F = Dt(R, "nextSibling"), V = Dt(R, "childNodes"),
|
|
573
|
+
} = e, R = d.prototype, m = Dt(R, "cloneNode"), I = Dt(R, "remove"), F = Dt(R, "nextSibling"), V = Dt(R, "childNodes"), T = Dt(R, "parentNode");
|
|
574
574
|
if (typeof r == "function") {
|
|
575
575
|
const $ = n.createElement("template");
|
|
576
576
|
$.content && $.content.ownerDocument && (n = $.content.ownerDocument);
|
|
@@ -578,14 +578,14 @@ function Ya() {
|
|
|
578
578
|
let k, U = "";
|
|
579
579
|
const {
|
|
580
580
|
implementation: A,
|
|
581
|
-
createNodeIterator:
|
|
581
|
+
createNodeIterator: _,
|
|
582
582
|
createDocumentFragment: q,
|
|
583
583
|
getElementsByTagName: W
|
|
584
584
|
} = n, {
|
|
585
585
|
importNode: v
|
|
586
586
|
} = i;
|
|
587
587
|
let g = Wi();
|
|
588
|
-
t.isSupported = typeof Ba == "function" && typeof
|
|
588
|
+
t.isSupported = typeof Ba == "function" && typeof T == "function" && A && A.createHTMLDocument !== void 0;
|
|
589
589
|
const {
|
|
590
590
|
MUSTACHE_EXPR: M,
|
|
591
591
|
ERB_EXPR: x,
|
|
@@ -668,7 +668,7 @@ function Ya() {
|
|
|
668
668
|
Ae && Ae(l), _t = l;
|
|
669
669
|
}
|
|
670
670
|
}, Ti = B({}, [...Vn, ...jn, ...bl]), Si = B({}, [...xn, ..._l]), $o = function(l) {
|
|
671
|
-
let w =
|
|
671
|
+
let w = T(l);
|
|
672
672
|
(!w || !w.tagName) && (w = {
|
|
673
673
|
namespaceURI: bt,
|
|
674
674
|
tagName: "template"
|
|
@@ -680,7 +680,7 @@ function Ya() {
|
|
|
680
680
|
element: l
|
|
681
681
|
});
|
|
682
682
|
try {
|
|
683
|
-
|
|
683
|
+
T(l).removeChild(l);
|
|
684
684
|
} catch {
|
|
685
685
|
I(l);
|
|
686
686
|
}
|
|
@@ -732,7 +732,7 @@ function Ya() {
|
|
|
732
732
|
const _e = w.body || w.documentElement;
|
|
733
733
|
return l && N && _e.insertBefore(n.createTextNode(N), _e.childNodes[0] || null), bt === He ? W.call(w, st ? "html" : "body")[0] : st ? w.documentElement : _e;
|
|
734
734
|
}, Ai = function(l) {
|
|
735
|
-
return
|
|
735
|
+
return _.call(
|
|
736
736
|
l.ownerDocument || l,
|
|
737
737
|
l,
|
|
738
738
|
// eslint-disable-next-line no-bitwise
|
|
@@ -763,7 +763,7 @@ function Ya() {
|
|
|
763
763
|
if (!Ft[N] && Ci(N) && (se.tagNameCheck instanceof RegExp && Te(se.tagNameCheck, N) || se.tagNameCheck instanceof Function && se.tagNameCheck(N)))
|
|
764
764
|
return !1;
|
|
765
765
|
if (In && !je[N]) {
|
|
766
|
-
const te =
|
|
766
|
+
const te = T(l) || l.parentNode, _e = V(l) || l.childNodes;
|
|
767
767
|
if (_e && te) {
|
|
768
768
|
const pe = _e.length;
|
|
769
769
|
for (let Me = pe - 1; Me >= 0; --Me) {
|
|
@@ -1315,19 +1315,19 @@ function Et(e, t, n) {
|
|
|
1315
1315
|
throw new TypeError(Cu);
|
|
1316
1316
|
t = Xn(t) || 0, Fe(n) && (y = !!n.leading, p = "maxWait" in n, o = p ? Ou(Xn(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
|
|
1317
1317
|
function S(A) {
|
|
1318
|
-
var
|
|
1319
|
-
return i = a = void 0, u = A, r = e.apply(q,
|
|
1318
|
+
var _ = i, q = a;
|
|
1319
|
+
return i = a = void 0, u = A, r = e.apply(q, _), r;
|
|
1320
1320
|
}
|
|
1321
1321
|
function R(A) {
|
|
1322
1322
|
return u = A, s = setTimeout(F, t), y ? S(A) : r;
|
|
1323
1323
|
}
|
|
1324
1324
|
function m(A) {
|
|
1325
|
-
var
|
|
1325
|
+
var _ = A - d, q = A - u, W = t - _;
|
|
1326
1326
|
return p ? Fu(W, o - q) : W;
|
|
1327
1327
|
}
|
|
1328
1328
|
function I(A) {
|
|
1329
|
-
var
|
|
1330
|
-
return d === void 0 ||
|
|
1329
|
+
var _ = A - d, q = A - u;
|
|
1330
|
+
return d === void 0 || _ >= t || _ < 0 || p && q >= o;
|
|
1331
1331
|
}
|
|
1332
1332
|
function F() {
|
|
1333
1333
|
var A = Kn();
|
|
@@ -1338,15 +1338,15 @@ function Et(e, t, n) {
|
|
|
1338
1338
|
function V(A) {
|
|
1339
1339
|
return s = void 0, h && i ? S(A) : (i = a = void 0, r);
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function T() {
|
|
1342
1342
|
s !== void 0 && clearTimeout(s), u = 0, i = d = a = s = void 0;
|
|
1343
1343
|
}
|
|
1344
1344
|
function k() {
|
|
1345
1345
|
return s === void 0 ? r : V(Kn());
|
|
1346
1346
|
}
|
|
1347
1347
|
function U() {
|
|
1348
|
-
var A = Kn(),
|
|
1349
|
-
if (i = arguments, a = this, d = A,
|
|
1348
|
+
var A = Kn(), _ = I(A);
|
|
1349
|
+
if (i = arguments, a = this, d = A, _) {
|
|
1350
1350
|
if (s === void 0)
|
|
1351
1351
|
return R(d);
|
|
1352
1352
|
if (p)
|
|
@@ -1354,7 +1354,7 @@ function Et(e, t, n) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
return s === void 0 && (s = setTimeout(F, t)), r;
|
|
1356
1356
|
}
|
|
1357
|
-
return U.cancel =
|
|
1357
|
+
return U.cancel = T, U.flush = k, U;
|
|
1358
1358
|
}
|
|
1359
1359
|
var ku = "__lodash_hash_undefined__";
|
|
1360
1360
|
function Ru(e) {
|
|
@@ -1693,10 +1693,10 @@ function tc(e, t, n) {
|
|
|
1693
1693
|
return r.push(ha(U)), "@@@";
|
|
1694
1694
|
}), d = {}, u = {};
|
|
1695
1695
|
s = ha(s).replace(uo, function(k) {
|
|
1696
|
-
var U = Ju[k], A = U[0],
|
|
1696
|
+
var U = Ju[k], A = U[0], _ = U[1], q = U[3];
|
|
1697
1697
|
if (d[A])
|
|
1698
1698
|
throw new Error("Invalid format. " + A + " specified twice in format");
|
|
1699
|
-
return d[A] = !0, q && (u[q] = !0), o.push(U), "(" +
|
|
1699
|
+
return d[A] = !0, q && (u[q] = !0), o.push(U), "(" + _ + ")";
|
|
1700
1700
|
}), Object.keys(u).forEach(function(k) {
|
|
1701
1701
|
if (!d[k])
|
|
1702
1702
|
throw new Error("Invalid format. " + k + " is required in specified format");
|
|
@@ -1722,7 +1722,7 @@ function tc(e, t, n) {
|
|
|
1722
1722
|
["hour", "getHours"],
|
|
1723
1723
|
["minute", "getMinutes"],
|
|
1724
1724
|
["second", "getSeconds"]
|
|
1725
|
-
], h = 0,
|
|
1725
|
+
], h = 0, T = V.length; h < T; h++)
|
|
1726
1726
|
if (d[V[h][0]] && a[V[h][0]] !== F[V[h][1]]())
|
|
1727
1727
|
return null;
|
|
1728
1728
|
} else if (F = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
|
|
@@ -2543,7 +2543,7 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
|
|
|
2543
2543
|
}
|
|
2544
2544
|
}, F = Et((v) => {
|
|
2545
2545
|
if (v = v || "", u.value = v, !v.trim() && !d.value) {
|
|
2546
|
-
y.value =
|
|
2546
|
+
y.value = _(h.value);
|
|
2547
2547
|
return;
|
|
2548
2548
|
}
|
|
2549
2549
|
R.value && R.value.abort();
|
|
@@ -2553,7 +2553,7 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
|
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
2555
|
U(v, g);
|
|
2556
|
-
}, tm, { leading: !0 }), V = async (v, g) => await n(v, g),
|
|
2556
|
+
}, tm, { leading: !0 }), V = async (v, g) => await n(v, g), T = async () => {
|
|
2557
2557
|
const { data: { data: v, next: g, offset: M } } = await i(nm);
|
|
2558
2558
|
return (!g || !M) && (d.value = !0), p.value = v, h.value = v.map((x) => ({
|
|
2559
2559
|
...o(x),
|
|
@@ -2563,18 +2563,18 @@ const xc = "#6c7489", qc = "12px", Kc = "20px", Bc = ["data-testid", "data-testl
|
|
|
2563
2563
|
Jn(v) && e.allowUuidSearch ? I(async () => await k(v)) : I(async () => await V(v, g.signal), g.signal);
|
|
2564
2564
|
}, A = (v) => {
|
|
2565
2565
|
let g = [];
|
|
2566
|
-
g =
|
|
2567
|
-
},
|
|
2566
|
+
g = _(h.value), v != null && v.trim() ? y.value = g.filter((M) => e.fields.some((x) => (M[x] || "").includes(v))) : y.value = g;
|
|
2567
|
+
}, _ = (v) => e.selectedItem ? v.some((g) => g.value === e.selectedItem.value) ? v : [e.selectedItem, ...v] : v, q = (v) => {
|
|
2568
2568
|
y.value = h.value.filter((g) => g.id === v);
|
|
2569
2569
|
}, W = (v) => {
|
|
2570
2570
|
Jn(v) && e.allowUuidSearch ? q(v) : A(v);
|
|
2571
2571
|
};
|
|
2572
2572
|
return ei(async () => {
|
|
2573
|
-
await I(
|
|
2573
|
+
await I(T);
|
|
2574
2574
|
const v = Gt(() => e.selectedItem, (g) => {
|
|
2575
|
-
g && (y.value =
|
|
2575
|
+
g && (y.value = _(h.value)), v();
|
|
2576
2576
|
});
|
|
2577
|
-
y.value =
|
|
2577
|
+
y.value = _(h.value);
|
|
2578
2578
|
}), (v, g) => (c(), L(Gc, {
|
|
2579
2579
|
id: e.id,
|
|
2580
2580
|
disabled: e.fieldDisabled,
|
|
@@ -2942,18 +2942,18 @@ function fm(e) {
|
|
|
2942
2942
|
m = R(m), X(m) ? m(m, I) : s(m, I);
|
|
2943
2943
|
}
|
|
2944
2944
|
}), o = (m) => {
|
|
2945
|
-
var
|
|
2945
|
+
var T;
|
|
2946
2946
|
d();
|
|
2947
2947
|
const I = Z(e.formOptions, "validateAsync", !1);
|
|
2948
2948
|
let F = [];
|
|
2949
2949
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2950
|
-
const k = [], U = (
|
|
2950
|
+
const k = [], U = (T = e.schema) == null ? void 0 : T.validator;
|
|
2951
2951
|
U && (Array.isArray(U) ? Se(U, (A) => {
|
|
2952
2952
|
k.push(i(A));
|
|
2953
2953
|
}) : k.push(i(U))), X(e.externalValidator) && k.push(e.externalValidator), Se(k, (A) => {
|
|
2954
|
-
var
|
|
2954
|
+
var _, q;
|
|
2955
2955
|
if (I)
|
|
2956
|
-
F.push(A(a.value, e.schema, (
|
|
2956
|
+
F.push(A(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
|
|
2957
2957
|
else {
|
|
2958
2958
|
const W = A(a.value, e.schema, (q = e.model) == null ? void 0 : q.value);
|
|
2959
2959
|
W && X(W.then) ? W.then((v) => {
|
|
@@ -2965,11 +2965,11 @@ function fm(e) {
|
|
|
2965
2965
|
});
|
|
2966
2966
|
}
|
|
2967
2967
|
const V = (k) => {
|
|
2968
|
-
var A,
|
|
2968
|
+
var A, _;
|
|
2969
2969
|
let U = [];
|
|
2970
2970
|
if (Se(so(k), (q) => {
|
|
2971
2971
|
Array.isArray(q) && q.length > 0 ? U = U.concat(q) : ut(q) && U.push(q);
|
|
2972
|
-
}), X((A = e.schema) == null ? void 0 : A.onValidated) && e.schema.onValidated((
|
|
2972
|
+
}), X((A = e.schema) == null ? void 0 : A.onValidated) && e.schema.onValidated((_ = e.model) == null ? void 0 : _.value, U, e.schema), !m) {
|
|
2973
2973
|
const q = U.length === 0;
|
|
2974
2974
|
e.emitValidated && e.emitValidated({ isValid: q, errors: U, field: e.schema });
|
|
2975
2975
|
}
|
|
@@ -2982,26 +2982,26 @@ function fm(e) {
|
|
|
2982
2982
|
Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 500))
|
|
2983
2983
|
);
|
|
2984
2984
|
}, s = (m, I) => {
|
|
2985
|
-
var V,
|
|
2985
|
+
var V, T, k;
|
|
2986
2986
|
let F = !1;
|
|
2987
|
-
X(e.schema.set) ? (e.schema.set((V = e.model) == null ? void 0 : V.value, m), F = !0) : e.schema.model && (u(e.schema.model, m), F = !0), F && (e.emitModelUpdated && ((
|
|
2987
|
+
X(e.schema.set) ? (e.schema.set((V = e.model) == null ? void 0 : V.value, m), F = !0) : e.schema.model && (u(e.schema.model, m), F = !0), F && (e.emitModelUpdated && ((T = e.model) != null && T.value) && e.emitModelUpdated({ value: m, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((k = e.model) == null ? void 0 : k.value, m, I, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
|
|
2988
2988
|
}, d = () => {
|
|
2989
2989
|
t.value.splice(0);
|
|
2990
2990
|
}, u = (m, I) => {
|
|
2991
2991
|
var A;
|
|
2992
2992
|
let F = m.replace(/\[(\w+)\]/g, ".$1");
|
|
2993
2993
|
F = F.replace(/^\./, "");
|
|
2994
|
-
let V = ((A = e.model) == null ? void 0 : A.value) || {},
|
|
2994
|
+
let V = ((A = e.model) == null ? void 0 : A.value) || {}, T = 0;
|
|
2995
2995
|
const k = F.split("."), U = k.length;
|
|
2996
|
-
for (;
|
|
2997
|
-
const
|
|
2998
|
-
if (
|
|
2999
|
-
V[
|
|
2996
|
+
for (; T < U; ) {
|
|
2997
|
+
const _ = k[T];
|
|
2998
|
+
if (T < U - 1)
|
|
2999
|
+
V[_] !== void 0 || (V[_] = {}), V = V[_];
|
|
3000
3000
|
else {
|
|
3001
|
-
V[
|
|
3001
|
+
V[_] = I;
|
|
3002
3002
|
return;
|
|
3003
3003
|
}
|
|
3004
|
-
++
|
|
3004
|
+
++T;
|
|
3005
3005
|
}
|
|
3006
3006
|
}, y = (m, I = !1) => {
|
|
3007
3007
|
const F = Z(e.formOptions, "fieldIdPrefix", "");
|
|
@@ -3100,8 +3100,8 @@ const Ve = {
|
|
|
3100
3100
|
model: o.model,
|
|
3101
3101
|
schema: i.schema,
|
|
3102
3102
|
formOptions: i.formOptions,
|
|
3103
|
-
emitModelUpdated: (
|
|
3104
|
-
a("modelUpdated",
|
|
3103
|
+
emitModelUpdated: (T) => {
|
|
3104
|
+
a("modelUpdated", T.value, T.model);
|
|
3105
3105
|
}
|
|
3106
3106
|
});
|
|
3107
3107
|
t({
|
|
@@ -3109,50 +3109,50 @@ const Ve = {
|
|
|
3109
3109
|
});
|
|
3110
3110
|
const p = z(() => {
|
|
3111
3111
|
var k, U;
|
|
3112
|
-
const
|
|
3113
|
-
if (
|
|
3112
|
+
const T = (k = i.schema) == null ? void 0 : k.inputType.toLowerCase();
|
|
3113
|
+
if (T === "number" && ((U = i.schema) == null ? void 0 : U.referenceable) === !0)
|
|
3114
3114
|
return "text";
|
|
3115
|
-
switch (
|
|
3115
|
+
switch (T) {
|
|
3116
3116
|
case "string":
|
|
3117
3117
|
return "text";
|
|
3118
3118
|
case "datetime":
|
|
3119
3119
|
return "datetime-local";
|
|
3120
3120
|
default:
|
|
3121
|
-
return
|
|
3121
|
+
return T || "text";
|
|
3122
3122
|
}
|
|
3123
3123
|
}), h = {
|
|
3124
3124
|
date: "YYYY-MM-DD",
|
|
3125
3125
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3126
3126
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
3127
|
-
}, S = (
|
|
3127
|
+
}, S = (T, k) => {
|
|
3128
3128
|
var q, W;
|
|
3129
|
-
let U =
|
|
3130
|
-
const A = h[p.value] || "",
|
|
3131
|
-
|
|
3132
|
-
}, R = (
|
|
3133
|
-
ui(
|
|
3134
|
-
}, m = (
|
|
3135
|
-
let k =
|
|
3129
|
+
let U = T;
|
|
3130
|
+
const A = h[p.value] || "", _ = St.parse(T, A);
|
|
3131
|
+
_ && ((q = i.schema) != null && q.format ? U = St.format(_, (W = i.schema) == null ? void 0 : W.format) : U = _.valueOf()), s(U, k);
|
|
3132
|
+
}, R = (T, k) => {
|
|
3133
|
+
ui(T) || (T = NaN), s(T, k);
|
|
3134
|
+
}, m = (T) => {
|
|
3135
|
+
let k = T;
|
|
3136
3136
|
switch (i.schema.inputType) {
|
|
3137
3137
|
case "number":
|
|
3138
3138
|
case "range":
|
|
3139
|
-
yo(parseFloat(
|
|
3139
|
+
yo(parseFloat(T)) && (k = parseFloat(T));
|
|
3140
3140
|
break;
|
|
3141
3141
|
}
|
|
3142
|
-
y.value = k, s(k,
|
|
3143
|
-
}, I = (
|
|
3144
|
-
y.value =
|
|
3142
|
+
y.value = k, s(k, T);
|
|
3143
|
+
}, I = (T) => {
|
|
3144
|
+
y.value = T, s(T, T);
|
|
3145
3145
|
}, F = ne(null), V = () => {
|
|
3146
|
-
var
|
|
3147
|
-
X(F.value) && ((
|
|
3146
|
+
var T;
|
|
3147
|
+
X(F.value) && ((T = F.value) == null || T.flush());
|
|
3148
3148
|
};
|
|
3149
3149
|
return ei(() => {
|
|
3150
3150
|
switch (p.value) {
|
|
3151
3151
|
case "number":
|
|
3152
3152
|
case "range":
|
|
3153
3153
|
F.value = Et(
|
|
3154
|
-
(
|
|
3155
|
-
R(
|
|
3154
|
+
(T, k) => {
|
|
3155
|
+
R(T, k);
|
|
3156
3156
|
},
|
|
3157
3157
|
parseInt(Z(i.schema, "debounceFormatTimeout", 1e3)),
|
|
3158
3158
|
{
|
|
@@ -3165,8 +3165,8 @@ const Ve = {
|
|
|
3165
3165
|
case "datetime":
|
|
3166
3166
|
case "datetime-local":
|
|
3167
3167
|
F.value = Et(
|
|
3168
|
-
(
|
|
3169
|
-
S(
|
|
3168
|
+
(T, k) => {
|
|
3169
|
+
S(T, k);
|
|
3170
3170
|
},
|
|
3171
3171
|
parseInt(Z(i.schema, "debounceFormatTimeout", 1e3)),
|
|
3172
3172
|
{
|
|
@@ -3178,10 +3178,10 @@ const Ve = {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
}), ti(() => {
|
|
3180
3180
|
p.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : p.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : p.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3181
|
-
}), (
|
|
3181
|
+
}), (T, k) => {
|
|
3182
3182
|
const U = D("KInput");
|
|
3183
3183
|
return c(), b("div", gm, [
|
|
3184
|
-
O(U, Xe(
|
|
3184
|
+
O(U, Xe(T.$attrs, {
|
|
3185
3185
|
id: E(d)(e.schema),
|
|
3186
3186
|
autocomplete: e.schema.autocomplete,
|
|
3187
3187
|
class: e.schema.fieldClasses,
|
|
@@ -5101,22 +5101,22 @@ const th = (e) => {
|
|
|
5101
5101
|
fetchedItemsKey: "data",
|
|
5102
5102
|
searchKeys: ["id", "name"]
|
|
5103
5103
|
}), S = z(() => y.value ? r(y.value) : ""), R = (V) => {
|
|
5104
|
-
let
|
|
5105
|
-
return s.app === "konnect"
|
|
5104
|
+
let T = `${s.apiBaseUrl}${i[s.app].getOne}`;
|
|
5105
|
+
return s.app === "konnect" && (T = T.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "")), T = T.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "").replace(/{id}/gi, String(V)), T;
|
|
5106
5106
|
}, m = z(() => {
|
|
5107
|
-
const V = (h.value || []).map((
|
|
5108
|
-
return a.redisType !== "all" ? V.filter((
|
|
5107
|
+
const V = (h.value || []).map((T) => ({ label: T.id, name: T.name, value: T.id, type: T.type, tag: th(T) })).filter((T) => T.type === "redis-ce" || T.type === "redis-ee");
|
|
5108
|
+
return a.redisType !== "all" ? V.filter((T) => T.type === a.redisType) : V;
|
|
5109
5109
|
}), { axiosInstance: I } = er(s == null ? void 0 : s.axiosRequestConfig), F = async (V) => {
|
|
5110
5110
|
if (V) {
|
|
5111
5111
|
a.updateRedisModel(V);
|
|
5112
5112
|
try {
|
|
5113
|
-
const
|
|
5114
|
-
if (
|
|
5115
|
-
const k = Object.assign(
|
|
5113
|
+
const T = await I.get(R(V));
|
|
5114
|
+
if (T.data.config) {
|
|
5115
|
+
const k = Object.assign(T.data, T.data.config);
|
|
5116
5116
|
delete k.config, o.value = k;
|
|
5117
5117
|
}
|
|
5118
|
-
} catch (
|
|
5119
|
-
console.error(
|
|
5118
|
+
} catch (T) {
|
|
5119
|
+
console.error(T);
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
5122
|
};
|
|
@@ -5124,7 +5124,7 @@ const th = (e) => {
|
|
|
5124
5124
|
V && await p();
|
|
5125
5125
|
}), ti(() => {
|
|
5126
5126
|
p(), a.defaultRedisConfigItem && F(a.defaultRedisConfigItem);
|
|
5127
|
-
}), (V,
|
|
5127
|
+
}), (V, T) => {
|
|
5128
5128
|
const k = D("KLabel"), U = D("KBadge"), A = D("KSelect");
|
|
5129
5129
|
return c(), b(Y, null, [
|
|
5130
5130
|
f("div", fh, [
|
|
@@ -5140,7 +5140,7 @@ const th = (e) => {
|
|
|
5140
5140
|
]),
|
|
5141
5141
|
_: 1
|
|
5142
5142
|
}, 8, ["info"]),
|
|
5143
|
-
|
|
5143
|
+
T[2] || (T[2] = f("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
5144
5144
|
O(A, {
|
|
5145
5145
|
class: "redis-config-select-trigger",
|
|
5146
5146
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -5150,24 +5150,24 @@ const th = (e) => {
|
|
|
5150
5150
|
loading: E(u),
|
|
5151
5151
|
"model-value": e.defaultRedisConfigItem,
|
|
5152
5152
|
placeholder: E(t)("redis.shared_configuration.selector.placeholder"),
|
|
5153
|
-
onChange:
|
|
5153
|
+
onChange: T[1] || (T[1] = (_) => F(_ == null ? void 0 : _.value)),
|
|
5154
5154
|
onQueryChange: E(d)
|
|
5155
5155
|
}, {
|
|
5156
|
-
"selected-item-template": C(({ item:
|
|
5157
|
-
f("div", hh, P(
|
|
5156
|
+
"selected-item-template": C(({ item: _ }) => [
|
|
5157
|
+
f("div", hh, P(_.name), 1)
|
|
5158
5158
|
]),
|
|
5159
|
-
"item-template": C(({ item:
|
|
5159
|
+
"item-template": C(({ item: _ }) => [
|
|
5160
5160
|
f("div", {
|
|
5161
5161
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
5162
|
-
"data-testid": `redis-configuration-dropdown-item-${
|
|
5162
|
+
"data-testid": `redis-configuration-dropdown-item-${_.name}`
|
|
5163
5163
|
}, [
|
|
5164
|
-
f("span", gh, P(
|
|
5164
|
+
f("span", gh, P(_.name), 1),
|
|
5165
5165
|
O(U, {
|
|
5166
5166
|
appearance: "info",
|
|
5167
5167
|
class: "select-item-label"
|
|
5168
5168
|
}, {
|
|
5169
5169
|
default: C(() => [
|
|
5170
|
-
ce(P(
|
|
5170
|
+
ce(P(_.tag), 1)
|
|
5171
5171
|
]),
|
|
5172
5172
|
_: 2
|
|
5173
5173
|
}, 1024)
|
|
@@ -5180,7 +5180,7 @@ const th = (e) => {
|
|
|
5180
5180
|
f("div", {
|
|
5181
5181
|
class: "new-redis-config-area",
|
|
5182
5182
|
"data-testid": "new-redis-config-area",
|
|
5183
|
-
onClick:
|
|
5183
|
+
onClick: T[0] || (T[0] = (_) => V.$emit("showNewPartialModal"))
|
|
5184
5184
|
}, [
|
|
5185
5185
|
O(E(ni), { size: E(qc) }, null, 8, ["size"]),
|
|
5186
5186
|
f("span", null, P(E(t)("redis.shared_configuration.create_new_configuration", { type: E(Aa)(e.redisType) })), 1)
|
|
@@ -5198,7 +5198,7 @@ const th = (e) => {
|
|
|
5198
5198
|
], 64);
|
|
5199
5199
|
};
|
|
5200
5200
|
}
|
|
5201
|
-
}), Ea = /* @__PURE__ */ G(_h, [["__scopeId", "data-v-
|
|
5201
|
+
}), Ea = /* @__PURE__ */ G(_h, [["__scopeId", "data-v-614666d9"]]), Th = { key: 0 }, Sh = {
|
|
5202
5202
|
class: "redis-config-radio-group",
|
|
5203
5203
|
"data-testid": "redis-config-radio-group"
|
|
5204
5204
|
}, wh = {
|
|
@@ -5268,12 +5268,12 @@ const th = (e) => {
|
|
|
5268
5268
|
m ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
|
|
5269
5269
|
}), ti(() => {
|
|
5270
5270
|
var m, I, F;
|
|
5271
|
-
if (n.model && (d.value = n.field.fields.reduce((V,
|
|
5271
|
+
if (n.model && (d.value = n.field.fields.reduce((V, T) => (Object.keys(n.model).includes(T.model) && (V[T.model] = n.model[T.model]), V), {})), (F = (I = (m = n == null ? void 0 : n.model) == null ? void 0 : m.partials) == null ? void 0 : I[0]) != null && F.id) {
|
|
5272
5272
|
const V = n.model.partials[0].id;
|
|
5273
5273
|
r.value = !0, s.value = V;
|
|
5274
5274
|
}
|
|
5275
5275
|
}), (m, I) => {
|
|
5276
|
-
const F = D("KAlert"), V = D("KBadge"),
|
|
5276
|
+
const F = D("KAlert"), V = D("KBadge"), T = D("KRadio"), k = D("KCard");
|
|
5277
5277
|
return c(), b("div", null, [
|
|
5278
5278
|
o.value ? (c(), b("div", Th, [
|
|
5279
5279
|
O(F, {
|
|
@@ -5295,7 +5295,7 @@ const th = (e) => {
|
|
|
5295
5295
|
}, {
|
|
5296
5296
|
default: C(() => [
|
|
5297
5297
|
f("div", Sh, [
|
|
5298
|
-
O(
|
|
5298
|
+
O(T, {
|
|
5299
5299
|
modelValue: r.value,
|
|
5300
5300
|
"onUpdate:modelValue": I[1] || (I[1] = (U) => r.value = U),
|
|
5301
5301
|
card: "",
|
|
@@ -5315,7 +5315,7 @@ const th = (e) => {
|
|
|
5315
5315
|
]),
|
|
5316
5316
|
_: 1
|
|
5317
5317
|
}, 8, ["modelValue", "description", "label"]),
|
|
5318
|
-
O(
|
|
5318
|
+
O(T, {
|
|
5319
5319
|
modelValue: r.value,
|
|
5320
5320
|
"onUpdate:modelValue": I[2] || (I[2] = (U) => r.value = U),
|
|
5321
5321
|
card: "",
|
|
@@ -6241,33 +6241,33 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6241
6241
|
var U;
|
|
6242
6242
|
Yt(Le, (U = hn()) == null ? void 0 : U[Ct]);
|
|
6243
6243
|
const t = e, n = ne("zeroSsl"), i = ne("shm"), a = z(() => {
|
|
6244
|
-
var
|
|
6244
|
+
var _;
|
|
6245
6245
|
const A = {};
|
|
6246
|
-
if ((
|
|
6246
|
+
if ((_ = t.formSchema) != null && _.fields)
|
|
6247
6247
|
for (const q of t.formSchema.fields)
|
|
6248
6248
|
A[q.model] = q;
|
|
6249
6249
|
return A;
|
|
6250
6250
|
}), o = z(() => {
|
|
6251
|
-
var
|
|
6251
|
+
var _;
|
|
6252
6252
|
const A = Ze(Hh);
|
|
6253
6253
|
for (const q of A.fields) {
|
|
6254
|
-
const W = (
|
|
6254
|
+
const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
|
|
6255
6255
|
q.help === void 0 && typeof W == "string" && (q.help = W);
|
|
6256
6256
|
}
|
|
6257
6257
|
return A;
|
|
6258
6258
|
}), r = z(() => {
|
|
6259
|
-
var
|
|
6259
|
+
var _;
|
|
6260
6260
|
const A = Ze(Yh);
|
|
6261
6261
|
for (const q of A.fields) {
|
|
6262
|
-
const W = (
|
|
6262
|
+
const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
|
|
6263
6263
|
q.help === void 0 && typeof W == "string" && (q.help = W);
|
|
6264
6264
|
}
|
|
6265
6265
|
return A;
|
|
6266
6266
|
}), s = z(() => {
|
|
6267
|
-
var
|
|
6267
|
+
var _;
|
|
6268
6268
|
const A = Ze(Gh);
|
|
6269
6269
|
for (const q of A.fields) {
|
|
6270
|
-
const W = (
|
|
6270
|
+
const W = (_ = a.value[q.model]) == null ? void 0 : _.help;
|
|
6271
6271
|
q.help === void 0 && typeof W == "string" && (q.help = W);
|
|
6272
6272
|
}
|
|
6273
6273
|
return A;
|
|
@@ -6275,20 +6275,20 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6275
6275
|
fields: t.formSchema.fields.filter((A) => !A.model.startsWith("config") && A.model !== "tags")
|
|
6276
6276
|
})), u = z(() => ({
|
|
6277
6277
|
fields: o.value.fields.filter(
|
|
6278
|
-
(
|
|
6278
|
+
(_) => !r.value.fields.some((q) => q.model === _.model) && !s.value.fields.some((q) => q.model === _.model)
|
|
6279
6279
|
)
|
|
6280
6280
|
})), y = z(() => ({
|
|
6281
|
-
fields: t.formSchema.fields.filter((
|
|
6281
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage") && !_.model.startsWith("config-storage_config-consul") && !_.model.startsWith("config-storage_config-redis") && !_.model.startsWith("config-storage_config-shm") && !_.model.startsWith("config-storage_config-vault"))
|
|
6282
6282
|
})), p = z(() => ({
|
|
6283
|
-
fields: t.formSchema.fields.filter((
|
|
6283
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-consul"))
|
|
6284
6284
|
})), h = z(() => ({
|
|
6285
|
-
fields: t.formSchema.fields.filter((
|
|
6285
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-redis"))
|
|
6286
6286
|
})), S = z(() => ({
|
|
6287
|
-
fields: t.formSchema.fields.filter((
|
|
6287
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-shm"))
|
|
6288
6288
|
})), R = z(() => ({
|
|
6289
|
-
fields: t.formSchema.fields.filter((
|
|
6289
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-vault"))
|
|
6290
6290
|
})), m = z(() => ({
|
|
6291
|
-
fields: t.formSchema.fields.filter((A) => A.model.startsWith("config") && !u.value.fields.filter((
|
|
6291
|
+
fields: t.formSchema.fields.filter((A) => A.model.startsWith("config") && !u.value.fields.filter((_) => _.model === A.model).length && !y.value.fields.filter((_) => _.model === A.model).length || A.model === "tags")
|
|
6292
6292
|
})), I = z(() => t.formModel.id && t.isEditing || !t.isEditing), F = [
|
|
6293
6293
|
{
|
|
6294
6294
|
hash: "#general",
|
|
@@ -6320,12 +6320,12 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6320
6320
|
ei(() => {
|
|
6321
6321
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6322
6322
|
});
|
|
6323
|
-
const
|
|
6323
|
+
const T = (A) => {
|
|
6324
6324
|
n.value = A.value, (A.value === "zeroSsl" || A.value === "other") && (A.value === "zeroSsl" ? t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : t.formModel["config-api_uri"] = "https://acme.example.com/", t.formModel["config-tos_accepted"] = !1), A.value === "letsEncrypt" && (t.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", t.formModel["config-eab_hmac_key"] = "", t.formModel["config-eab_kid"] = ""), t.onModelUpdated();
|
|
6325
|
-
}, k = (A,
|
|
6326
|
-
|
|
6325
|
+
}, k = (A, _) => {
|
|
6326
|
+
_ === "config-storage" && (i.value = A), t.onModelUpdated();
|
|
6327
6327
|
};
|
|
6328
|
-
return (A,
|
|
6328
|
+
return (A, _) => {
|
|
6329
6329
|
const q = D("KSelect"), W = D("KTabs");
|
|
6330
6330
|
return c(), b("div", null, [
|
|
6331
6331
|
e.formModel.id && e.isEditing || !e.isEditing ? (c(), L(ue, {
|
|
@@ -6339,10 +6339,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6339
6339
|
O(W, { tabs: F }, {
|
|
6340
6340
|
general: C(() => [
|
|
6341
6341
|
f("div", Wh, [
|
|
6342
|
-
|
|
6342
|
+
_[0] || (_[0] = f("div", { class: "header-wrapper" }, [
|
|
6343
6343
|
f("span", { class: "section-header" }, "General Configuration Settings")
|
|
6344
6344
|
], -1)),
|
|
6345
|
-
|
|
6345
|
+
_[1] || (_[1] = f("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
6346
6346
|
I.value ? (c(), L(ue, {
|
|
6347
6347
|
key: 0,
|
|
6348
6348
|
model: e.formModel,
|
|
@@ -6350,12 +6350,12 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6350
6350
|
schema: u.value,
|
|
6351
6351
|
onModelUpdated: e.onModelUpdated
|
|
6352
6352
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : K("", !0),
|
|
6353
|
-
|
|
6353
|
+
_[2] || (_[2] = f("hr", null, null, -1)),
|
|
6354
6354
|
O(q, {
|
|
6355
6355
|
class: "issuer-select",
|
|
6356
6356
|
items: V,
|
|
6357
6357
|
label: "Issuer",
|
|
6358
|
-
onChange:
|
|
6358
|
+
onChange: T
|
|
6359
6359
|
}),
|
|
6360
6360
|
f("div", Zh, [
|
|
6361
6361
|
n.value === "letsEncrypt" ? (c(), L(ue, {
|
|
@@ -6377,10 +6377,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6377
6377
|
]),
|
|
6378
6378
|
storage: C(() => [
|
|
6379
6379
|
f("div", Xh, [
|
|
6380
|
-
|
|
6380
|
+
_[3] || (_[3] = f("div", { class: "header-wrapper" }, [
|
|
6381
6381
|
f("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
6382
6382
|
], -1)),
|
|
6383
|
-
|
|
6383
|
+
_[4] || (_[4] = f("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
6384
6384
|
I.value ? (c(), L(ue, {
|
|
6385
6385
|
key: 0,
|
|
6386
6386
|
model: e.formModel,
|
|
@@ -6422,10 +6422,10 @@ const xh = /* @__PURE__ */ G(Rh, [["render", jh], ["__scopeId", "data-v-7eb80ef6
|
|
|
6422
6422
|
]),
|
|
6423
6423
|
advanced: C(() => [
|
|
6424
6424
|
f("div", Qh, [
|
|
6425
|
-
|
|
6425
|
+
_[5] || (_[5] = f("div", { class: "header-wrapper" }, [
|
|
6426
6426
|
f("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
6427
6427
|
], -1)),
|
|
6428
|
-
|
|
6428
|
+
_[6] || (_[6] = f("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
6429
6429
|
I.value ? (c(), L(ue, {
|
|
6430
6430
|
key: 0,
|
|
6431
6431
|
model: e.formModel,
|
|
@@ -6592,7 +6592,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6592
6592
|
var v, g, M, x;
|
|
6593
6593
|
return ((v = o.formModel) == null ? void 0 : v["config-error_message"]) ?? ((x = (M = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : M.find((H) => H.model === "config-error_message")) == null ? void 0 : x.default);
|
|
6594
6594
|
}
|
|
6595
|
-
),
|
|
6595
|
+
), T = (v, g) => {
|
|
6596
6596
|
if (g === p.value) {
|
|
6597
6597
|
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Ui(() => {
|
|
6598
6598
|
p.value = void 0;
|
|
@@ -6614,7 +6614,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6614
6614
|
p.value !== void 0 && (p.value = void 0);
|
|
6615
6615
|
const M = Ze(((x = o.formModel) == null ? void 0 : x["config-window_size"]) ?? []);
|
|
6616
6616
|
M[v] = g, o.onModelUpdated(M, "config-window_size");
|
|
6617
|
-
},
|
|
6617
|
+
}, _ = (v) => {
|
|
6618
6618
|
var x, H;
|
|
6619
6619
|
p.value !== void 0 && (p.value = void 0);
|
|
6620
6620
|
const g = Ze(((x = o.formModel) == null ? void 0 : x["config-limit"]) ?? []), M = Ze(((H = o.formModel) == null ? void 0 : H["config-window_size"]) ?? []);
|
|
@@ -6733,7 +6733,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6733
6733
|
}, 8, ["disabled", "onClick"]),
|
|
6734
6734
|
O(ye, {
|
|
6735
6735
|
appearance: "tertiary",
|
|
6736
|
-
onClick: () =>
|
|
6736
|
+
onClick: () => _(ie)
|
|
6737
6737
|
}, {
|
|
6738
6738
|
default: C(() => [
|
|
6739
6739
|
O(E(ni))
|
|
@@ -6761,7 +6761,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6761
6761
|
O(Be, {
|
|
6762
6762
|
appearance: p.value === `${S.value}-${ie}` ? "info" : "decorative",
|
|
6763
6763
|
class: "rla-form-request-limits-examples-badge",
|
|
6764
|
-
onClick: () =>
|
|
6764
|
+
onClick: () => T(j, `${S.value}-${ie}`)
|
|
6765
6765
|
}, {
|
|
6766
6766
|
default: C(() => [
|
|
6767
6767
|
ce(P(j.label), 1)
|