@kong-ui-public/forms 4.23.21 → 4.23.22-pr.3042.74912899b.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
CHANGED
|
@@ -570,7 +570,7 @@ function Wa() {
|
|
|
570
570
|
HTMLFormElement: f,
|
|
571
571
|
DOMParser: p,
|
|
572
572
|
trustedTypes: T
|
|
573
|
-
} = e, k = d.prototype, v = jt(k, "cloneNode"), N = jt(k, "remove"),
|
|
573
|
+
} = e, k = d.prototype, v = jt(k, "cloneNode"), N = jt(k, "remove"), F = jt(k, "nextSibling"), H = jt(k, "childNodes"), P = jt(k, "parentNode");
|
|
574
574
|
if (typeof r == "function") {
|
|
575
575
|
const K = n.createElement("template");
|
|
576
576
|
K.content && K.content.ownerDocument && (n = K.content.ownerDocument);
|
|
@@ -580,7 +580,7 @@ function Wa() {
|
|
|
580
580
|
implementation: E,
|
|
581
581
|
createNodeIterator: _,
|
|
582
582
|
createDocumentFragment: I,
|
|
583
|
-
getElementsByTagName:
|
|
583
|
+
getElementsByTagName: U
|
|
584
584
|
} = n, {
|
|
585
585
|
importNode: m
|
|
586
586
|
} = i;
|
|
@@ -730,7 +730,7 @@ function Wa() {
|
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
const _e = S.body || S.documentElement;
|
|
733
|
-
return l && D && _e.insertBefore(n.createTextNode(D), _e.childNodes[0] || null), _t === qe ?
|
|
733
|
+
return l && D && _e.insertBefore(n.createTextNode(D), _e.childNodes[0] || null), _t === qe ? U.call(S, dt ? "html" : "body")[0] : dt ? S.documentElement : _e;
|
|
734
734
|
}, Ai = function(l) {
|
|
735
735
|
return _.call(
|
|
736
736
|
l.ownerDocument || l,
|
|
@@ -768,7 +768,7 @@ function Wa() {
|
|
|
768
768
|
const pe = _e.length;
|
|
769
769
|
for (let Ae = pe - 1; Ae >= 0; --Ae) {
|
|
770
770
|
const Oe = v(_e[Ae], !0);
|
|
771
|
-
Oe.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(Oe,
|
|
771
|
+
Oe.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(Oe, F(l));
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}
|
|
@@ -1235,12 +1235,12 @@ function Ht(e, t, n, i, a, o) {
|
|
|
1235
1235
|
return T;
|
|
1236
1236
|
o.set(e, r), zd(e) ? e.forEach(function(N) {
|
|
1237
1237
|
r.add(Ht(N, t, n, N, e, o));
|
|
1238
|
-
}) : xd(e) && e.forEach(function(N,
|
|
1239
|
-
r.set(
|
|
1238
|
+
}) : xd(e) && e.forEach(function(N, F) {
|
|
1239
|
+
r.set(F, Ht(N, t, n, F, e, o));
|
|
1240
1240
|
});
|
|
1241
1241
|
var k = u ? d ? id : nd : d ? En : yn, v = y ? void 0 : k(e);
|
|
1242
|
-
return Ua(v || e, function(N,
|
|
1243
|
-
v && (
|
|
1242
|
+
return Ua(v || e, function(N, F) {
|
|
1243
|
+
v && (F = N, N = e[F]), Xa(r, F, Ht(N, t, n, F, e, o));
|
|
1244
1244
|
}), r;
|
|
1245
1245
|
}
|
|
1246
1246
|
var vu = 1, bu = 4;
|
|
@@ -1326,21 +1326,21 @@ function It(e, t, n) {
|
|
|
1326
1326
|
return i = a = void 0, u = E, r = e.apply(I, _), r;
|
|
1327
1327
|
}
|
|
1328
1328
|
function k(E) {
|
|
1329
|
-
return u = E, s = setTimeout(
|
|
1329
|
+
return u = E, s = setTimeout(F, t), y ? T(E) : r;
|
|
1330
1330
|
}
|
|
1331
1331
|
function v(E) {
|
|
1332
|
-
var _ = E - d, I = E - u,
|
|
1333
|
-
return f ? ku(
|
|
1332
|
+
var _ = E - d, I = E - u, U = t - _;
|
|
1333
|
+
return f ? ku(U, o - I) : U;
|
|
1334
1334
|
}
|
|
1335
1335
|
function N(E) {
|
|
1336
1336
|
var _ = E - d, I = E - u;
|
|
1337
1337
|
return d === void 0 || _ >= t || _ < 0 || f && I >= o;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function F() {
|
|
1340
1340
|
var E = zn();
|
|
1341
1341
|
if (N(E))
|
|
1342
1342
|
return H(E);
|
|
1343
|
-
s = setTimeout(
|
|
1343
|
+
s = setTimeout(F, v(E));
|
|
1344
1344
|
}
|
|
1345
1345
|
function H(E) {
|
|
1346
1346
|
return s = void 0, p && i ? T(E) : (i = a = void 0, r);
|
|
@@ -1357,9 +1357,9 @@ function It(e, t, n) {
|
|
|
1357
1357
|
if (s === void 0)
|
|
1358
1358
|
return k(d);
|
|
1359
1359
|
if (f)
|
|
1360
|
-
return clearTimeout(s), s = setTimeout(
|
|
1360
|
+
return clearTimeout(s), s = setTimeout(F, t), T(d);
|
|
1361
1361
|
}
|
|
1362
|
-
return s === void 0 && (s = setTimeout(
|
|
1362
|
+
return s === void 0 && (s = setTimeout(F, t)), r;
|
|
1363
1363
|
}
|
|
1364
1364
|
return O.cancel = P, O.flush = M, O;
|
|
1365
1365
|
}
|
|
@@ -1720,9 +1720,9 @@ function nc(e, t, n) {
|
|
|
1720
1720
|
a[k] = N;
|
|
1721
1721
|
}
|
|
1722
1722
|
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
1723
|
-
var
|
|
1723
|
+
var F;
|
|
1724
1724
|
if (a.timezoneOffset == null) {
|
|
1725
|
-
|
|
1725
|
+
F = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
1726
1726
|
for (var H = [
|
|
1727
1727
|
["month", "getMonth"],
|
|
1728
1728
|
["day", "getDate"],
|
|
@@ -1730,11 +1730,11 @@ function nc(e, t, n) {
|
|
|
1730
1730
|
["minute", "getMinutes"],
|
|
1731
1731
|
["second", "getSeconds"]
|
|
1732
1732
|
], p = 0, P = H.length; p < P; p++)
|
|
1733
|
-
if (d[H[p][0]] && a[H[p][0]] !==
|
|
1733
|
+
if (d[H[p][0]] && a[H[p][0]] !== F[H[p][1]]())
|
|
1734
1734
|
return null;
|
|
1735
|
-
} else if (
|
|
1735
|
+
} 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)
|
|
1736
1736
|
return null;
|
|
1737
|
-
return
|
|
1737
|
+
return F;
|
|
1738
1738
|
}
|
|
1739
1739
|
var Et = {
|
|
1740
1740
|
format: tc,
|
|
@@ -2567,7 +2567,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2567
2567
|
clearTimeout(v), s.value = !1;
|
|
2568
2568
|
}
|
|
2569
2569
|
}
|
|
2570
|
-
},
|
|
2570
|
+
}, F = It((m) => {
|
|
2571
2571
|
if (m = m || "", u.value = m, !m.trim() && !d.value) {
|
|
2572
2572
|
y.value = _(p.value);
|
|
2573
2573
|
return;
|
|
@@ -2575,7 +2575,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2575
2575
|
k.value && k.value.abort();
|
|
2576
2576
|
const g = new AbortController();
|
|
2577
2577
|
if (k.value = g, d.value) {
|
|
2578
|
-
|
|
2578
|
+
U(m);
|
|
2579
2579
|
return;
|
|
2580
2580
|
}
|
|
2581
2581
|
O(m, g);
|
|
@@ -2592,7 +2592,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2592
2592
|
g = _(p.value), m != null && m.trim() ? y.value = g.filter((w) => e.fields.some((L) => (w[L] || "").includes(m))) : y.value = g;
|
|
2593
2593
|
}, _ = (m) => e.selectedItem ? m.some((g) => g.value === e.selectedItem.value) ? m : [e.selectedItem, ...m] : m, I = (m) => {
|
|
2594
2594
|
y.value = p.value.filter((g) => g.id === m);
|
|
2595
|
-
},
|
|
2595
|
+
}, U = (m) => {
|
|
2596
2596
|
ei(m) && e.allowUuidSearch ? I(m) : E(m);
|
|
2597
2597
|
};
|
|
2598
2598
|
return ni(async () => {
|
|
@@ -2612,7 +2612,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2612
2612
|
readonly: e.disabled,
|
|
2613
2613
|
suggestions: y.value,
|
|
2614
2614
|
onChange: g[0] || (g[0] = (w) => m.$emit("change", w)),
|
|
2615
|
-
onQueryChange: R(
|
|
2615
|
+
onQueryChange: R(F)
|
|
2616
2616
|
}, {
|
|
2617
2617
|
before: A(() => [
|
|
2618
2618
|
Ce(m.$slots, "before", {}, () => [
|
|
@@ -2959,9 +2959,9 @@ const Mo = /* @__PURE__ */ W(dm, [["render", fm], ["__scopeId", "data-v-433129a3
|
|
|
2959
2959
|
function hm(e) {
|
|
2960
2960
|
const t = ne([]), n = ne(null), i = (v) => mt(v) ? ht[v] != null ? ht[v] : (console.warn(`'${v}' is not a validator function!`), null) : v, a = q({
|
|
2961
2961
|
get() {
|
|
2962
|
-
var N,
|
|
2962
|
+
var N, F;
|
|
2963
2963
|
let v;
|
|
2964
|
-
return X(Z(e.schema, "get")) ? v = e.schema.get((N = e.model) == null ? void 0 : N.value) : v = Z((
|
|
2964
|
+
return X(Z(e.schema, "get")) ? v = e.schema.get((N = e.model) == null ? void 0 : N.value) : v = Z((F = e.model) == null ? void 0 : F.value, e.schema.model), T(v);
|
|
2965
2965
|
},
|
|
2966
2966
|
set(v) {
|
|
2967
2967
|
const N = a;
|
|
@@ -2971,7 +2971,7 @@ function hm(e) {
|
|
|
2971
2971
|
var P;
|
|
2972
2972
|
d();
|
|
2973
2973
|
const N = Z(e.formOptions, "validateAsync", !1);
|
|
2974
|
-
let
|
|
2974
|
+
let F = [];
|
|
2975
2975
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2976
2976
|
const M = [], O = (P = e.schema) == null ? void 0 : P.validator;
|
|
2977
2977
|
O && (Array.isArray(O) ? Se(O, (E) => {
|
|
@@ -2979,14 +2979,14 @@ function hm(e) {
|
|
|
2979
2979
|
}) : M.push(i(O))), X(e.externalValidator) && M.push(e.externalValidator), Se(M, (E) => {
|
|
2980
2980
|
var _, I;
|
|
2981
2981
|
if (N)
|
|
2982
|
-
|
|
2982
|
+
F.push(E(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
|
|
2983
2983
|
else {
|
|
2984
|
-
const
|
|
2985
|
-
|
|
2984
|
+
const U = E(a.value, e.schema, (I = e.model) == null ? void 0 : I.value);
|
|
2985
|
+
U && X(U.then) ? U.then((m) => {
|
|
2986
2986
|
m && (t.value = t.value.concat(m));
|
|
2987
2987
|
const g = t.value.length === 0;
|
|
2988
2988
|
e.emitValidated && e.emitValidated({ isValid: g, errors: t.value, field: e.schema });
|
|
2989
|
-
}) :
|
|
2989
|
+
}) : U && (F = F.concat(U));
|
|
2990
2990
|
}
|
|
2991
2991
|
});
|
|
2992
2992
|
}
|
|
@@ -3001,7 +3001,7 @@ function hm(e) {
|
|
|
3001
3001
|
}
|
|
3002
3002
|
return M = O, O;
|
|
3003
3003
|
};
|
|
3004
|
-
return N ? Promise.all(
|
|
3004
|
+
return N ? Promise.all(F).then(H) : H(F);
|
|
3005
3005
|
}, r = () => {
|
|
3006
3006
|
X(n.value) ? n.value() : n.value = It(
|
|
3007
3007
|
o,
|
|
@@ -3009,16 +3009,16 @@ function hm(e) {
|
|
|
3009
3009
|
);
|
|
3010
3010
|
}, s = (v, N) => {
|
|
3011
3011
|
var H, P, M;
|
|
3012
|
-
let
|
|
3013
|
-
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v),
|
|
3012
|
+
let F = !1;
|
|
3013
|
+
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v), F = !0) : e.schema.model && (u(e.schema.model, v), F = !0), F && (e.emitModelUpdated && ((P = e.model) != null && P.value) && e.emitModelUpdated({ value: v, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((M = e.model) == null ? void 0 : M.value, v, N, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
|
|
3014
3014
|
}, d = () => {
|
|
3015
3015
|
t.value.splice(0);
|
|
3016
3016
|
}, u = (v, N) => {
|
|
3017
3017
|
var E;
|
|
3018
|
-
let
|
|
3019
|
-
|
|
3018
|
+
let F = v.replace(/\[(\w+)\]/g, ".$1");
|
|
3019
|
+
F = F.replace(/^\./, "");
|
|
3020
3020
|
let H = ((E = e.model) == null ? void 0 : E.value) || {}, P = 0;
|
|
3021
|
-
const M =
|
|
3021
|
+
const M = F.split("."), O = M.length;
|
|
3022
3022
|
for (; P < O; ) {
|
|
3023
3023
|
const _ = M[P];
|
|
3024
3024
|
if (P < O - 1)
|
|
@@ -3030,8 +3030,8 @@ function hm(e) {
|
|
|
3030
3030
|
++P;
|
|
3031
3031
|
}
|
|
3032
3032
|
}, y = (v, N = !1) => {
|
|
3033
|
-
const
|
|
3034
|
-
return ci(v,
|
|
3033
|
+
const F = Z(e.formOptions, "fieldIdPrefix", "");
|
|
3034
|
+
return ci(v, F) + (N ? "-" + co() : "");
|
|
3035
3035
|
}, f = (v) => `${y(v)}-label`, p = () => Z(e.schema, "fieldClasses", []), T = (v) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(v) : v, k = (v) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(v) : v;
|
|
3036
3036
|
return {
|
|
3037
3037
|
value: a,
|
|
@@ -3151,10 +3151,10 @@ const Ke = {
|
|
|
3151
3151
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3152
3152
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
3153
3153
|
}, T = (P, M) => {
|
|
3154
|
-
var I,
|
|
3154
|
+
var I, U;
|
|
3155
3155
|
let O = P;
|
|
3156
3156
|
const E = p[f.value] || "", _ = Et.parse(P, E);
|
|
3157
|
-
_ && ((I = i.schema) != null && I.format ? O = Et.format(_, (
|
|
3157
|
+
_ && ((I = i.schema) != null && I.format ? O = Et.format(_, (U = i.schema) == null ? void 0 : U.format) : O = _.valueOf()), s(O, M);
|
|
3158
3158
|
}, k = (P, M) => {
|
|
3159
3159
|
mi(P) || (P = NaN), s(P, M);
|
|
3160
3160
|
}, v = (P) => {
|
|
@@ -3168,15 +3168,15 @@ const Ke = {
|
|
|
3168
3168
|
y.value = M, s(M, P);
|
|
3169
3169
|
}, N = (P) => {
|
|
3170
3170
|
y.value = P, s(P, P);
|
|
3171
|
-
},
|
|
3171
|
+
}, F = ne(null), H = () => {
|
|
3172
3172
|
var P;
|
|
3173
|
-
X(
|
|
3173
|
+
X(F.value) && ((P = F.value) == null || P.flush());
|
|
3174
3174
|
};
|
|
3175
3175
|
return ni(() => {
|
|
3176
3176
|
switch (f.value) {
|
|
3177
3177
|
case "number":
|
|
3178
3178
|
case "range":
|
|
3179
|
-
|
|
3179
|
+
F.value = It(
|
|
3180
3180
|
(P, M) => {
|
|
3181
3181
|
k(P, M);
|
|
3182
3182
|
},
|
|
@@ -3190,7 +3190,7 @@ const Ke = {
|
|
|
3190
3190
|
case "date":
|
|
3191
3191
|
case "datetime":
|
|
3192
3192
|
case "datetime-local":
|
|
3193
|
-
|
|
3193
|
+
F.value = It(
|
|
3194
3194
|
(P, M) => {
|
|
3195
3195
|
T(P, M);
|
|
3196
3196
|
},
|
|
@@ -3725,12 +3725,12 @@ const Io = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3725
3725
|
return p(typeof v == "function" ? v.apply(this, [i.model, i.schema]) : v);
|
|
3726
3726
|
}), p = (v) => {
|
|
3727
3727
|
const N = [];
|
|
3728
|
-
return v.forEach((
|
|
3728
|
+
return v.forEach((F) => {
|
|
3729
3729
|
N.push({
|
|
3730
|
-
label: k(
|
|
3731
|
-
value: T(
|
|
3732
|
-
disabled: typeof
|
|
3733
|
-
group: typeof
|
|
3730
|
+
label: k(F),
|
|
3731
|
+
value: T(F),
|
|
3732
|
+
disabled: typeof F == "object" && F.disabled || void 0,
|
|
3733
|
+
group: typeof F == "object" && String(F.group || "").toUpperCase() || void 0
|
|
3734
3734
|
});
|
|
3735
3735
|
}), N;
|
|
3736
3736
|
}, T = (v) => {
|
|
@@ -3753,8 +3753,8 @@ const Io = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3753
3753
|
return String(v);
|
|
3754
3754
|
};
|
|
3755
3755
|
return (v, N) => {
|
|
3756
|
-
const
|
|
3757
|
-
return c(), $(
|
|
3756
|
+
const F = j("KSelect");
|
|
3757
|
+
return c(), $(F, {
|
|
3758
3758
|
id: R(d)(e.schema),
|
|
3759
3759
|
modelValue: R(y),
|
|
3760
3760
|
"onUpdate:modelValue": N[0] || (N[0] = (H) => Ct(y) ? y.value = H : null),
|
|
@@ -5043,7 +5043,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5043
5043
|
return (f, p) => {
|
|
5044
5044
|
const T = j("KCopy");
|
|
5045
5045
|
return c(), b("div", rh, [
|
|
5046
|
-
(c(!0), b(Y, null, oe(y.value, ({ key: k, label: v, value: N, type:
|
|
5046
|
+
(c(!0), b(Y, null, oe(y.value, ({ key: k, label: v, value: N, type: F }) => (c(), b("div", {
|
|
5047
5047
|
key: k,
|
|
5048
5048
|
class: "partial-config-card-row"
|
|
5049
5049
|
}, [
|
|
@@ -5055,7 +5055,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5055
5055
|
"data-testid": `${k}-property-value`
|
|
5056
5056
|
}, [
|
|
5057
5057
|
o(N) ? (c(), b("div", ch, [
|
|
5058
|
-
|
|
5058
|
+
F === "password" ? (c(), b("div", {
|
|
5059
5059
|
key: 0,
|
|
5060
5060
|
"data-testid": `${k}-copy-password`
|
|
5061
5061
|
}, [
|
|
@@ -5145,35 +5145,35 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5145
5145
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
|
|
5146
5146
|
), N = q(
|
|
5147
5147
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5148
|
-
),
|
|
5148
|
+
), F = q(
|
|
5149
5149
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: Aa(a.redisType) })
|
|
5150
5150
|
), H = q(
|
|
5151
5151
|
() => T.value || t("redis.shared_configuration.error")
|
|
5152
5152
|
), P = (I) => {
|
|
5153
|
-
let
|
|
5154
|
-
return s.app === "konnect"
|
|
5153
|
+
let U = `${s.apiBaseUrl}${i[s.app].getOne}`;
|
|
5154
|
+
return s.app === "konnect" && (U = U.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "")), U = U.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "").replace(/{id}/gi, String(I)), U;
|
|
5155
5155
|
}, M = q(() => {
|
|
5156
|
-
const I = (p.value || []).map((
|
|
5157
|
-
const m =
|
|
5156
|
+
const I = (p.value || []).map((U) => {
|
|
5157
|
+
const m = U, g = a.isKonnectManagedRedisEnabled ? oh(m) : void 0, w = g === Mt.KONNECT_MANAGED;
|
|
5158
5158
|
return {
|
|
5159
5159
|
...a.isKonnectManagedRedisEnabled && g ? { source: g } : {},
|
|
5160
5160
|
// only attach `source` in managed mode
|
|
5161
|
-
label:
|
|
5162
|
-
name:
|
|
5163
|
-
value:
|
|
5164
|
-
type:
|
|
5161
|
+
label: U.id,
|
|
5162
|
+
name: U.name,
|
|
5163
|
+
value: U.id,
|
|
5164
|
+
type: U.type,
|
|
5165
5165
|
tag: a.isKonnectManagedRedisEnabled && w ? void 0 : nh(m)
|
|
5166
5166
|
};
|
|
5167
|
-
}).filter((
|
|
5168
|
-
return a.redisType !== "all" ? I.filter((
|
|
5167
|
+
}).filter((U) => U.type === "redis-ce" || U.type === "redis-ee");
|
|
5168
|
+
return a.redisType !== "all" ? I.filter((U) => U.type === a.redisType) : I;
|
|
5169
5169
|
}), O = q(() => {
|
|
5170
5170
|
const I = M.value;
|
|
5171
5171
|
if (!a.isKonnectManagedRedisEnabled)
|
|
5172
5172
|
return I;
|
|
5173
|
-
const
|
|
5174
|
-
return
|
|
5173
|
+
const U = I.filter((w) => w.source === Mt.KONNECT_MANAGED), m = I.filter((w) => w.source === Mt.SELF_MANAGED), g = [];
|
|
5174
|
+
return U.length > 0 && g.push({
|
|
5175
5175
|
label: t("redis.managed_ui.groups.konnect_managed"),
|
|
5176
|
-
items:
|
|
5176
|
+
items: U
|
|
5177
5177
|
}), m.length > 0 && g.push({
|
|
5178
5178
|
label: t("redis.managed_ui.groups.self_managed"),
|
|
5179
5179
|
items: m
|
|
@@ -5182,13 +5182,13 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5182
5182
|
if (I) {
|
|
5183
5183
|
a.updateRedisModel(I);
|
|
5184
5184
|
try {
|
|
5185
|
-
const
|
|
5186
|
-
if (
|
|
5187
|
-
const m = Object.assign(
|
|
5185
|
+
const U = await E.get(P(I));
|
|
5186
|
+
if (U.data.config) {
|
|
5187
|
+
const m = Object.assign(U.data, U.data.config);
|
|
5188
5188
|
delete m.config, o.value = m;
|
|
5189
5189
|
}
|
|
5190
|
-
} catch (
|
|
5191
|
-
console.error(
|
|
5190
|
+
} catch (U) {
|
|
5191
|
+
console.error(U);
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
5194
5194
|
};
|
|
@@ -5196,7 +5196,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5196
5196
|
I && await f();
|
|
5197
5197
|
}), ii(() => {
|
|
5198
5198
|
f(), a.defaultRedisConfigItem && _(a.defaultRedisConfigItem);
|
|
5199
|
-
}), (I,
|
|
5199
|
+
}), (I, U) => {
|
|
5200
5200
|
const m = j("KLabel"), g = j("KBadge"), w = j("KSelect");
|
|
5201
5201
|
return c(), b(Y, null, [
|
|
5202
5202
|
h("div", gh, [
|
|
@@ -5212,7 +5212,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5212
5212
|
]),
|
|
5213
5213
|
_: 1
|
|
5214
5214
|
}, 8, ["info"]),
|
|
5215
|
-
|
|
5215
|
+
U[2] || (U[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
5216
5216
|
C(w, {
|
|
5217
5217
|
class: "redis-config-select-trigger",
|
|
5218
5218
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -5222,7 +5222,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5222
5222
|
loading: R(u),
|
|
5223
5223
|
"model-value": e.defaultRedisConfigItem,
|
|
5224
5224
|
placeholder: N.value,
|
|
5225
|
-
onChange:
|
|
5225
|
+
onChange: U[1] || (U[1] = (L) => _(L == null ? void 0 : L.value)),
|
|
5226
5226
|
onQueryChange: R(d)
|
|
5227
5227
|
}, {
|
|
5228
5228
|
"selected-item-template": A(({ item: L }) => [
|
|
@@ -5253,10 +5253,10 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5253
5253
|
h("div", {
|
|
5254
5254
|
class: "new-redis-config-area",
|
|
5255
5255
|
"data-testid": "new-redis-config-area",
|
|
5256
|
-
onClick:
|
|
5256
|
+
onClick: U[0] || (U[0] = (L) => I.$emit("showNewPartialModal"))
|
|
5257
5257
|
}, [
|
|
5258
5258
|
C(R(ai), { size: R(qc) }, null, 8, ["size"]),
|
|
5259
|
-
h("span", null, V(
|
|
5259
|
+
h("span", null, V(F.value), 1)
|
|
5260
5260
|
])
|
|
5261
5261
|
]),
|
|
5262
5262
|
_: 1
|
|
@@ -5271,7 +5271,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5271
5271
|
], 64);
|
|
5272
5272
|
};
|
|
5273
5273
|
}
|
|
5274
|
-
}), Ia = /* @__PURE__ */ W(Eh, [["__scopeId", "data-v-
|
|
5274
|
+
}), Ia = /* @__PURE__ */ W(Eh, [["__scopeId", "data-v-11c0d9f3"]]), wh = { key: 0 }, Mh = {
|
|
5275
5275
|
class: "redis-config-radio-group",
|
|
5276
5276
|
"data-testid": "redis-config-radio-group"
|
|
5277
5277
|
}, Ah = {
|
|
@@ -5345,7 +5345,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5345
5345
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
|
|
5346
5346
|
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), T = ne({}), k = ne(), v = (M) => X(M.visible) ? M.visible.call(this, n.model, M, this) : de(M.visible) ? !0 : M.visible, N = async (M) => {
|
|
5347
5347
|
i("modelUpdated", [{ id: M, path: n.redisPath }], "partials"), k.value = [{ id: M, path: n.redisPath }], p.value = M;
|
|
5348
|
-
},
|
|
5348
|
+
}, F = (M, O) => {
|
|
5349
5349
|
T.value = { ...T.value, [O]: M }, i("modelUpdated", M, O);
|
|
5350
5350
|
}, H = () => {
|
|
5351
5351
|
i("refreshModel");
|
|
@@ -5361,7 +5361,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5361
5361
|
f.value = !0, p.value = _;
|
|
5362
5362
|
}
|
|
5363
5363
|
}), (M, O) => {
|
|
5364
|
-
const E = j("KAlert"), _ = j("KBadge"), I = j("KRadio"),
|
|
5364
|
+
const E = j("KAlert"), _ = j("KBadge"), I = j("KRadio"), U = j("KCard");
|
|
5365
5365
|
return c(), b("div", null, [
|
|
5366
5366
|
y.value ? (c(), b("div", wh, [
|
|
5367
5367
|
C(E, {
|
|
@@ -5376,7 +5376,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5376
5376
|
"update-redis-model": N,
|
|
5377
5377
|
onShowNewPartialModal: O[0] || (O[0] = (m) => M.$emit("showNewPartialModal"))
|
|
5378
5378
|
}, null, 8, ["default-redis-config-item", "is-konnect-managed-redis-enabled", "plugin-redis-fields"])
|
|
5379
|
-
])) : (c(), $(
|
|
5379
|
+
])) : (c(), $(U, {
|
|
5380
5380
|
key: 1,
|
|
5381
5381
|
class: "redis-config-card",
|
|
5382
5382
|
"data-testid": "redis-config-card",
|
|
@@ -5443,7 +5443,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5443
5443
|
model: e.model,
|
|
5444
5444
|
options: e.options,
|
|
5445
5445
|
vfg: e.vfg,
|
|
5446
|
-
onModelUpdated:
|
|
5446
|
+
onModelUpdated: F,
|
|
5447
5447
|
onRefreshModel: H,
|
|
5448
5448
|
onValidated: P
|
|
5449
5449
|
}, null, 8, ["errors", "field", "model", "options", "vfg"])) : B("", !0)
|
|
@@ -6361,24 +6361,24 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad
|
|
|
6361
6361
|
var _;
|
|
6362
6362
|
const E = Ze(Wh);
|
|
6363
6363
|
for (const I of E.fields) {
|
|
6364
|
-
const
|
|
6365
|
-
I.help === void 0 && typeof
|
|
6364
|
+
const U = (_ = a.value[I.model]) == null ? void 0 : _.help;
|
|
6365
|
+
I.help === void 0 && typeof U == "string" && (I.help = U);
|
|
6366
6366
|
}
|
|
6367
6367
|
return E;
|
|
6368
6368
|
}), r = q(() => {
|
|
6369
6369
|
var _;
|
|
6370
6370
|
const E = Ze(Zh);
|
|
6371
6371
|
for (const I of E.fields) {
|
|
6372
|
-
const
|
|
6373
|
-
I.help === void 0 && typeof
|
|
6372
|
+
const U = (_ = a.value[I.model]) == null ? void 0 : _.help;
|
|
6373
|
+
I.help === void 0 && typeof U == "string" && (I.help = U);
|
|
6374
6374
|
}
|
|
6375
6375
|
return E;
|
|
6376
6376
|
}), s = q(() => {
|
|
6377
6377
|
var _;
|
|
6378
6378
|
const E = Ze(Xh);
|
|
6379
6379
|
for (const I of E.fields) {
|
|
6380
|
-
const
|
|
6381
|
-
I.help === void 0 && typeof
|
|
6380
|
+
const U = (_ = a.value[I.model]) == null ? void 0 : _.help;
|
|
6381
|
+
I.help === void 0 && typeof U == "string" && (I.help = U);
|
|
6382
6382
|
}
|
|
6383
6383
|
return E;
|
|
6384
6384
|
}), d = q(() => ({
|
|
@@ -6399,7 +6399,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad
|
|
|
6399
6399
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-vault"))
|
|
6400
6400
|
})), v = q(() => ({
|
|
6401
6401
|
fields: t.formSchema.fields.filter((E) => E.model.startsWith("config") && !u.value.fields.filter((_) => _.model === E.model).length && !y.value.fields.filter((_) => _.model === E.model).length || E.model === "tags")
|
|
6402
|
-
})), N = q(() => t.formModel.id && t.isEditing || !t.isEditing),
|
|
6402
|
+
})), N = q(() => t.formModel.id && t.isEditing || !t.isEditing), F = [
|
|
6403
6403
|
{
|
|
6404
6404
|
hash: "#general",
|
|
6405
6405
|
title: "General"
|
|
@@ -6436,7 +6436,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad
|
|
|
6436
6436
|
_ === "config-storage" && (i.value = E), t.onModelUpdated();
|
|
6437
6437
|
};
|
|
6438
6438
|
return (E, _) => {
|
|
6439
|
-
const I = j("KSelect"),
|
|
6439
|
+
const I = j("KSelect"), U = j("KTabs");
|
|
6440
6440
|
return c(), b("div", null, [
|
|
6441
6441
|
e.formModel.id && e.isEditing || !e.isEditing ? (c(), $(ue, {
|
|
6442
6442
|
key: 0,
|
|
@@ -6446,7 +6446,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad
|
|
|
6446
6446
|
schema: d.value,
|
|
6447
6447
|
onModelUpdated: e.onModelUpdated
|
|
6448
6448
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6449
|
-
C(
|
|
6449
|
+
C(U, { tabs: F }, {
|
|
6450
6450
|
general: A(() => [
|
|
6451
6451
|
h("div", Jh, [
|
|
6452
6452
|
_[0] || (_[0] = h("div", { class: "header-wrapper" }, [
|
|
@@ -6570,8 +6570,8 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad
|
|
|
6570
6570
|
isKonnectManagedRedisEnabled: { type: Boolean }
|
|
6571
6571
|
},
|
|
6572
6572
|
setup(e) {
|
|
6573
|
-
var
|
|
6574
|
-
Xt(Le, (
|
|
6573
|
+
var U;
|
|
6574
|
+
Xt(Le, (U = pn()) == null ? void 0 : U[Rt]);
|
|
6575
6575
|
const t = {
|
|
6576
6576
|
fixed: [
|
|
6577
6577
|
{
|
|
@@ -6693,7 +6693,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6693
6693
|
var m, g, w, L;
|
|
6694
6694
|
return ((m = o.formModel) == null ? void 0 : m["config-identifier"]) ?? ((L = (w = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : w.find((G) => G.model === "config-identifier")) == null ? void 0 : L.default);
|
|
6695
6695
|
}
|
|
6696
|
-
),
|
|
6696
|
+
), F = q(
|
|
6697
6697
|
() => {
|
|
6698
6698
|
var m, g, w, L;
|
|
6699
6699
|
return ((m = o.formModel) == null ? void 0 : m["config-error_code"]) ?? ((L = (w = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : w.find((G) => G.model === "config-error_code")) == null ? void 0 : L.default);
|
|
@@ -6928,7 +6928,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6928
6928
|
h("legend", vp, [
|
|
6929
6929
|
C(G, {
|
|
6930
6930
|
class: "input-error-code",
|
|
6931
|
-
"model-value":
|
|
6931
|
+
"model-value": F.value && F.value.toString(),
|
|
6932
6932
|
placeholder: R(a)("rla.error_message.code_placeholder"),
|
|
6933
6933
|
type: "number",
|
|
6934
6934
|
"onUpdate:modelValue": g[3] || (g[3] = (x) => e.onModelUpdated(Number.parseInt(x), "config-error_code"))
|