@kong-ui-public/forms 4.13.12-pr.2280.88de6c93e.0 → 4.13.13-pr.2283.56faa9662.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 +313 -313
- package/dist/forms.umd.js +2 -2
- 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
|
@@ -66,9 +66,9 @@ var la = 9007199254740991;
|
|
|
66
66
|
function Kn(e) {
|
|
67
67
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= la;
|
|
68
68
|
}
|
|
69
|
-
var da = "[object Arguments]", ua = "[object Array]", ca = "[object Boolean]", ma = "[object Date]", fa = "[object Error]", ha = "[object Function]", pa = "[object Map]", ga = "[object Number]", va = "[object Object]",
|
|
69
|
+
var da = "[object Arguments]", ua = "[object Array]", ca = "[object Boolean]", ma = "[object Date]", fa = "[object Error]", ha = "[object Function]", pa = "[object Map]", ga = "[object Number]", va = "[object Object]", ya = "[object RegExp]", ba = "[object Set]", _a = "[object String]", wa = "[object WeakMap]", Ma = "[object ArrayBuffer]", Sa = "[object DataView]", Ta = "[object Float32Array]", Ca = "[object Float64Array]", Ia = "[object Int8Array]", Oa = "[object Int16Array]", Aa = "[object Int32Array]", Ea = "[object Uint8Array]", Fa = "[object Uint8ClampedArray]", ka = "[object Uint16Array]", Ua = "[object Uint32Array]", G = {};
|
|
70
70
|
G[Ta] = G[Ca] = G[Ia] = G[Oa] = G[Aa] = G[Ea] = G[Fa] = G[ka] = G[Ua] = !0;
|
|
71
|
-
G[da] = G[ua] = G[Ma] = G[ca] = G[Sa] = G[ma] = G[fa] = G[ha] = G[pa] = G[ga] = G[va] = G[
|
|
71
|
+
G[da] = G[ua] = G[Ma] = G[ca] = G[Sa] = G[ma] = G[fa] = G[ha] = G[pa] = G[ga] = G[va] = G[ya] = G[ba] = G[_a] = G[wa] = !1;
|
|
72
72
|
function $a(e) {
|
|
73
73
|
return Fe(e) && Kn(e.length) && !!G[Ee(e)];
|
|
74
74
|
}
|
|
@@ -212,7 +212,7 @@ function hr(e) {
|
|
|
212
212
|
return this.size -= t ? 1 : 0, t;
|
|
213
213
|
}
|
|
214
214
|
var pr = "__lodash_hash_undefined__", gr = Object.prototype, vr = gr.hasOwnProperty;
|
|
215
|
-
function
|
|
215
|
+
function yr(e) {
|
|
216
216
|
var t = this.__data__;
|
|
217
217
|
if (tt) {
|
|
218
218
|
var n = t[e];
|
|
@@ -220,7 +220,7 @@ function br(e) {
|
|
|
220
220
|
}
|
|
221
221
|
return vr.call(t, e) ? t[e] : void 0;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var br = Object.prototype, _r = br.hasOwnProperty;
|
|
224
224
|
function wr(e) {
|
|
225
225
|
var t = this.__data__;
|
|
226
226
|
return tt ? t[e] !== void 0 : _r.call(t, e);
|
|
@@ -239,7 +239,7 @@ function je(e) {
|
|
|
239
239
|
}
|
|
240
240
|
je.prototype.clear = fr;
|
|
241
241
|
je.prototype.delete = hr;
|
|
242
|
-
je.prototype.get =
|
|
242
|
+
je.prototype.get = yr;
|
|
243
243
|
je.prototype.has = wr;
|
|
244
244
|
je.prototype.set = Sr;
|
|
245
245
|
function Tr() {
|
|
@@ -248,7 +248,7 @@ function Tr() {
|
|
|
248
248
|
function vt(e, t) {
|
|
249
249
|
return e === t || e !== e && t !== t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function yt(e, t) {
|
|
252
252
|
for (var n = e.length; n--; )
|
|
253
253
|
if (vt(e[n][0], t))
|
|
254
254
|
return n;
|
|
@@ -256,21 +256,21 @@ function bt(e, t) {
|
|
|
256
256
|
}
|
|
257
257
|
var Cr = Array.prototype, Ir = Cr.splice;
|
|
258
258
|
function Or(e) {
|
|
259
|
-
var t = this.__data__, n =
|
|
259
|
+
var t = this.__data__, n = yt(t, e);
|
|
260
260
|
if (n < 0)
|
|
261
261
|
return !1;
|
|
262
262
|
var a = t.length - 1;
|
|
263
263
|
return n == a ? t.pop() : Ir.call(t, n, 1), --this.size, !0;
|
|
264
264
|
}
|
|
265
265
|
function Ar(e) {
|
|
266
|
-
var t = this.__data__, n =
|
|
266
|
+
var t = this.__data__, n = yt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
269
|
function Er(e) {
|
|
270
|
-
return
|
|
270
|
+
return yt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
272
|
function Fr(e, t) {
|
|
273
|
-
var n = this.__data__, a =
|
|
273
|
+
var n = this.__data__, a = yt(n, e);
|
|
274
274
|
return a < 0 ? (++this.size, n.push([e, t])) : n[a][1] = t, this;
|
|
275
275
|
}
|
|
276
276
|
function Me(e) {
|
|
@@ -297,22 +297,22 @@ function Ur(e) {
|
|
|
297
297
|
var t = typeof e;
|
|
298
298
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function bt(e, t) {
|
|
301
301
|
var n = e.__data__;
|
|
302
302
|
return Ur(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
303
303
|
}
|
|
304
304
|
function $r(e) {
|
|
305
|
-
var t =
|
|
305
|
+
var t = bt(this, e).delete(e);
|
|
306
306
|
return this.size -= t ? 1 : 0, t;
|
|
307
307
|
}
|
|
308
308
|
function Vr(e) {
|
|
309
|
-
return
|
|
309
|
+
return bt(this, e).get(e);
|
|
310
310
|
}
|
|
311
311
|
function jr(e) {
|
|
312
|
-
return
|
|
312
|
+
return bt(this, e).has(e);
|
|
313
313
|
}
|
|
314
314
|
function Rr(e, t) {
|
|
315
|
-
var n =
|
|
315
|
+
var n = bt(this, e), a = n.size;
|
|
316
316
|
return n.set(e, t), this.size += n.size == a ? 0 : 1, this;
|
|
317
317
|
}
|
|
318
318
|
function Se(e) {
|
|
@@ -395,7 +395,7 @@ function B(e, t, n) {
|
|
|
395
395
|
function X(e) {
|
|
396
396
|
return e == null;
|
|
397
397
|
}
|
|
398
|
-
const $e = "kong-ui-forms-api", xr = "kong-ui-forms-config", Gr = "redis-partial-list-fetcher-key",
|
|
398
|
+
const $e = "kong-ui-forms-api", xr = "kong-ui-forms-config", Gr = "redis-partial-list-fetcher-key", wm = "redis-partial-info", xe = "autofill", he = "autofillSlot";
|
|
399
399
|
function Wr() {
|
|
400
400
|
this.__data__ = new Me(), this.size = 0;
|
|
401
401
|
}
|
|
@@ -524,14 +524,14 @@ var Qn = zn(Object.getPrototypeOf, Object), vo = Object.getOwnPropertySymbols, X
|
|
|
524
524
|
Jn(t, Lt(e)), e = Qn(e);
|
|
525
525
|
return t;
|
|
526
526
|
} : Zn;
|
|
527
|
-
function
|
|
527
|
+
function yo(e, t) {
|
|
528
528
|
return _t(e, Xn(e), t);
|
|
529
529
|
}
|
|
530
530
|
function ei(e, t, n) {
|
|
531
531
|
var a = t(e);
|
|
532
532
|
return ke(e) ? a : Jn(a, n(e));
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function bo(e) {
|
|
535
535
|
return ei(e, pt, Lt);
|
|
536
536
|
}
|
|
537
537
|
function _o(e) {
|
|
@@ -640,8 +640,8 @@ var cn = He && He.isMap, rs = cn ? jt(cn) : as, os = "[object Set]";
|
|
|
640
640
|
function ss(e) {
|
|
641
641
|
return Fe(e) && _e(e) == os;
|
|
642
642
|
}
|
|
643
|
-
var mn = He && He.isSet, ls = mn ? jt(mn) : ss, ds = 1, us = 2, cs = 4, ti = "[object Arguments]", ms = "[object Array]", fs = "[object Boolean]", hs = "[object Date]", ps = "[object Error]", ni = "[object Function]", gs = "[object GeneratorFunction]", vs = "[object Map]",
|
|
644
|
-
Y[ti] = Y[ms] = Y[Ts] = Y[Cs] = Y[fs] = Y[hs] = Y[Is] = Y[Os] = Y[As] = Y[Es] = Y[Fs] = Y[vs] = Y[
|
|
643
|
+
var mn = He && He.isSet, ls = mn ? jt(mn) : ss, ds = 1, us = 2, cs = 4, ti = "[object Arguments]", ms = "[object Array]", fs = "[object Boolean]", hs = "[object Date]", ps = "[object Error]", ni = "[object Function]", gs = "[object GeneratorFunction]", vs = "[object Map]", ys = "[object Number]", ii = "[object Object]", bs = "[object RegExp]", _s = "[object Set]", ws = "[object String]", Ms = "[object Symbol]", Ss = "[object WeakMap]", Ts = "[object ArrayBuffer]", Cs = "[object DataView]", Is = "[object Float32Array]", Os = "[object Float64Array]", As = "[object Int8Array]", Es = "[object Int16Array]", Fs = "[object Int32Array]", ks = "[object Uint8Array]", Us = "[object Uint8ClampedArray]", $s = "[object Uint16Array]", Vs = "[object Uint32Array]", Y = {};
|
|
644
|
+
Y[ti] = Y[ms] = Y[Ts] = Y[Cs] = Y[fs] = Y[hs] = Y[Is] = Y[Os] = Y[As] = Y[Es] = Y[Fs] = Y[vs] = Y[ys] = Y[ii] = Y[bs] = Y[_s] = Y[ws] = Y[Ms] = Y[ks] = Y[Us] = Y[$s] = Y[Vs] = !0;
|
|
645
645
|
Y[ps] = Y[ni] = Y[Ss] = !1;
|
|
646
646
|
function Xe(e, t, n, a, i, r) {
|
|
647
647
|
var s, o = t & ds, l = t & us, d = t & cs;
|
|
@@ -659,7 +659,7 @@ function Xe(e, t, n, a, i, r) {
|
|
|
659
659
|
return co(e, o);
|
|
660
660
|
if (m == ii || m == ti || p && !i) {
|
|
661
661
|
if (s = l || p ? {} : ns(e), !o)
|
|
662
|
-
return l ?
|
|
662
|
+
return l ? yo(e, lo(s, e)) : go(e, io(s, e));
|
|
663
663
|
} else {
|
|
664
664
|
if (!Y[m])
|
|
665
665
|
return i ? e : {};
|
|
@@ -675,7 +675,7 @@ function Xe(e, t, n, a, i, r) {
|
|
|
675
675
|
}) : rs(e) && e.forEach(function(M, T) {
|
|
676
676
|
s.set(T, Xe(M, t, n, T, e, r));
|
|
677
677
|
});
|
|
678
|
-
var N = d ? l ? _o :
|
|
678
|
+
var N = d ? l ? _o : bo : l ? wt : pt, c = h ? void 0 : N(e);
|
|
679
679
|
return Vn(c || e, function(M, T) {
|
|
680
680
|
c && (T = M, M = e[T]), Gn(s, T, Xe(M, t, n, T, e, r));
|
|
681
681
|
}), s;
|
|
@@ -776,19 +776,19 @@ function it(e, t, n) {
|
|
|
776
776
|
function T() {
|
|
777
777
|
var _ = Ct();
|
|
778
778
|
if (M(_))
|
|
779
|
-
return
|
|
779
|
+
return k(_);
|
|
780
780
|
o = setTimeout(T, c(_));
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function k(_) {
|
|
783
783
|
return o = void 0, p && a ? E(_) : (a = i = void 0, s);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function y() {
|
|
786
786
|
o !== void 0 && clearTimeout(o), d = 0, a = l = i = o = void 0;
|
|
787
787
|
}
|
|
788
788
|
function O() {
|
|
789
|
-
return o === void 0 ? s :
|
|
789
|
+
return o === void 0 ? s : k(Ct());
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function U() {
|
|
792
792
|
var _ = Ct(), v = M(_);
|
|
793
793
|
if (a = arguments, i = this, l = _, v) {
|
|
794
794
|
if (o === void 0)
|
|
@@ -798,7 +798,7 @@ function it(e, t, n) {
|
|
|
798
798
|
}
|
|
799
799
|
return o === void 0 && (o = setTimeout(T, t)), s;
|
|
800
800
|
}
|
|
801
|
-
return
|
|
801
|
+
return U.cancel = y, U.flush = O, U;
|
|
802
802
|
}
|
|
803
803
|
var Ws = "__lodash_hash_undefined__";
|
|
804
804
|
function Zs(e) {
|
|
@@ -1030,7 +1030,7 @@ var ci = [
|
|
|
1030
1030
|
}
|
|
1031
1031
|
}, vn = function(e) {
|
|
1032
1032
|
return +e - 1;
|
|
1033
|
-
},
|
|
1033
|
+
}, yn = [null, Ce], bn = [null, et], _n = [
|
|
1034
1034
|
"isPm",
|
|
1035
1035
|
et,
|
|
1036
1036
|
function(e, t) {
|
|
@@ -1080,10 +1080,10 @@ var ci = [
|
|
|
1080
1080
|
return +e * 10;
|
|
1081
1081
|
}],
|
|
1082
1082
|
SSS: ["millisecond", ul],
|
|
1083
|
-
d:
|
|
1084
|
-
dd:
|
|
1085
|
-
ddd:
|
|
1086
|
-
dddd:
|
|
1083
|
+
d: yn,
|
|
1084
|
+
dd: yn,
|
|
1085
|
+
ddd: bn,
|
|
1086
|
+
dddd: bn,
|
|
1087
1087
|
MMM: ["month", et, pn("monthNamesShort")],
|
|
1088
1088
|
MMMM: ["month", et, pn("monthNames")],
|
|
1089
1089
|
a: _n,
|
|
@@ -1103,7 +1103,7 @@ var ci = [
|
|
|
1103
1103
|
longTime: "HH:mm:ss.SSS"
|
|
1104
1104
|
}, vl = function(e) {
|
|
1105
1105
|
return Pe(ut, e);
|
|
1106
|
-
},
|
|
1106
|
+
}, yl = function(e, t, n) {
|
|
1107
1107
|
if (t === void 0 && (t = ut.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1108
1108
|
throw new Error("Invalid Date pass to format");
|
|
1109
1109
|
t = ut[t] || t;
|
|
@@ -1118,7 +1118,7 @@ var ci = [
|
|
|
1118
1118
|
return a.shift();
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
|
-
function
|
|
1121
|
+
function bl(e, t, n) {
|
|
1122
1122
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1123
1123
|
throw new Error("Invalid format in fecha parse");
|
|
1124
1124
|
if (t = ut[t] || t, e.length > 1e3)
|
|
@@ -1133,14 +1133,14 @@ function yl(e, t, n) {
|
|
|
1133
1133
|
millisecond: 0,
|
|
1134
1134
|
isPm: null,
|
|
1135
1135
|
timezoneOffset: null
|
|
1136
|
-
}, r = [], s = [], o = t.replace(di, function(O,
|
|
1137
|
-
return s.push(gn(
|
|
1136
|
+
}, r = [], s = [], o = t.replace(di, function(O, U) {
|
|
1137
|
+
return s.push(gn(U)), "@@@";
|
|
1138
1138
|
}), l = {}, d = {};
|
|
1139
1139
|
o = gn(o).replace(li, function(O) {
|
|
1140
|
-
var
|
|
1140
|
+
var U = gl[O], _ = U[0], v = U[1], j = U[3];
|
|
1141
1141
|
if (l[_])
|
|
1142
1142
|
throw new Error("Invalid format. " + _ + " specified twice in format");
|
|
1143
|
-
return l[_] = !0, j && (d[j] = !0), r.push(
|
|
1143
|
+
return l[_] = !0, j && (d[j] = !0), r.push(U), "(" + v + ")";
|
|
1144
1144
|
}), Object.keys(d).forEach(function(O) {
|
|
1145
1145
|
if (!l[O])
|
|
1146
1146
|
throw new Error("Invalid format. " + O + " is required in specified format");
|
|
@@ -1160,22 +1160,22 @@ function yl(e, t, n) {
|
|
|
1160
1160
|
var T;
|
|
1161
1161
|
if (i.timezoneOffset == null) {
|
|
1162
1162
|
T = new Date(i.year, i.month, i.day, i.hour, i.minute, i.second, i.millisecond);
|
|
1163
|
-
for (var
|
|
1163
|
+
for (var k = [
|
|
1164
1164
|
["month", "getMonth"],
|
|
1165
1165
|
["day", "getDate"],
|
|
1166
1166
|
["hour", "getHours"],
|
|
1167
1167
|
["minute", "getMinutes"],
|
|
1168
1168
|
["second", "getSeconds"]
|
|
1169
|
-
], p = 0,
|
|
1170
|
-
if (l[
|
|
1169
|
+
], p = 0, y = k.length; p < y; p++)
|
|
1170
|
+
if (l[k[p][0]] && i[k[p][0]] !== T[k[p][1]]())
|
|
1171
1171
|
return null;
|
|
1172
1172
|
} else if (T = new Date(Date.UTC(i.year, i.month, i.day, i.hour, i.minute - i.timezoneOffset, i.second, i.millisecond)), i.month > 11 || i.month < 0 || i.day > 31 || i.day < 1 || i.hour > 23 || i.hour < 0 || i.minute > 59 || i.minute < 0 || i.second > 59 || i.second < 0)
|
|
1173
1173
|
return null;
|
|
1174
1174
|
return T;
|
|
1175
1175
|
}
|
|
1176
1176
|
var Be = {
|
|
1177
|
-
format:
|
|
1178
|
-
parse:
|
|
1177
|
+
format: yl,
|
|
1178
|
+
parse: bl,
|
|
1179
1179
|
defaultI18n: fi,
|
|
1180
1180
|
setGlobalDateI18n: hl,
|
|
1181
1181
|
setGlobalDateMasks: vl
|
|
@@ -1572,7 +1572,7 @@ function It(e, t, n) {
|
|
|
1572
1572
|
e.setAttribute(s, r);
|
|
1573
1573
|
});
|
|
1574
1574
|
}
|
|
1575
|
-
const
|
|
1575
|
+
const ye = {
|
|
1576
1576
|
name: "abstractField",
|
|
1577
1577
|
props: ["vfg", "model", "schema", "formOptions", "disabled"],
|
|
1578
1578
|
emits: ["validated", "modelUpdated"],
|
|
@@ -1683,9 +1683,9 @@ const be = {
|
|
|
1683
1683
|
return e;
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
},
|
|
1686
|
+
}, Mm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1687
1687
|
__proto__: null,
|
|
1688
|
-
default:
|
|
1688
|
+
default: ye
|
|
1689
1689
|
}, Symbol.toStringTag, { value: "Module" })), H = (e, t) => {
|
|
1690
1690
|
const n = e.__vccOpts || e;
|
|
1691
1691
|
for (const [a, i] of t)
|
|
@@ -1695,7 +1695,7 @@ const be = {
|
|
|
1695
1695
|
class: "advanced-field-dropdown-wrapper",
|
|
1696
1696
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
1697
1697
|
}, Yl = { class: "material-icons" }, xl = {
|
|
1698
|
-
mixins: [
|
|
1698
|
+
mixins: [ye],
|
|
1699
1699
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
1700
1700
|
emits: ["model-updated"],
|
|
1701
1701
|
data() {
|
|
@@ -1850,7 +1850,7 @@ function od(e, t, n) {
|
|
|
1850
1850
|
return n ? Ve.SET_REFERRAL_VALUE : e && !t || !e && t ? Ve.UPDATE_ENTITY : e && t ? Ve.CREATE_FROM_ENTITY : Ve.CREATE_NOT_FROM_ENTITY;
|
|
1851
1851
|
}
|
|
1852
1852
|
const sd = {
|
|
1853
|
-
mixins: [
|
|
1853
|
+
mixins: [ye],
|
|
1854
1854
|
inject: [$e],
|
|
1855
1855
|
emits: ["model-updated"],
|
|
1856
1856
|
setup() {
|
|
@@ -2022,7 +2022,7 @@ function cd(e, t, n, a, i, r) {
|
|
|
2022
2022
|
_: 1
|
|
2023
2023
|
}, 8, ["text"]);
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const yi = /* @__PURE__ */ H(sd, [["render", cd], ["__scopeId", "data-v-40a272a2"]]);
|
|
2026
2026
|
function md(e) {
|
|
2027
2027
|
const t = ue([]), n = ue(null), a = (c) => Re(c) ? Ne[c] != null ? Ne[c] : (console.warn(`'${c}' is not a validator function!`), null) : c, i = L({
|
|
2028
2028
|
get() {
|
|
@@ -2035,66 +2035,66 @@ function md(e) {
|
|
|
2035
2035
|
c = N(c), z(c) ? c(c, M) : o(c, M);
|
|
2036
2036
|
}
|
|
2037
2037
|
}), r = (c) => {
|
|
2038
|
-
var
|
|
2038
|
+
var y;
|
|
2039
2039
|
l();
|
|
2040
2040
|
const M = B(e.formOptions, "validateAsync", !1);
|
|
2041
2041
|
let T = [];
|
|
2042
2042
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2043
|
-
const O = [],
|
|
2044
|
-
|
|
2043
|
+
const O = [], U = (y = e.schema) == null ? void 0 : y.validator;
|
|
2044
|
+
U && (Array.isArray(U) ? le(U, (_) => {
|
|
2045
2045
|
O.push(a(_));
|
|
2046
|
-
}) : O.push(a(
|
|
2046
|
+
}) : O.push(a(U))), z(e.externalValidator) && O.push(e.externalValidator), le(O, (_) => {
|
|
2047
2047
|
var v, j;
|
|
2048
2048
|
if (M)
|
|
2049
2049
|
T.push(_(i.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
2050
2050
|
else {
|
|
2051
2051
|
const x = _(i.value, e.schema, (j = e.model) == null ? void 0 : j.value);
|
|
2052
|
-
x && z(x.then) ? x.then((
|
|
2053
|
-
|
|
2052
|
+
x && z(x.then) ? x.then((b) => {
|
|
2053
|
+
b && (t.value = t.value.concat(b));
|
|
2054
2054
|
const S = t.value.length === 0;
|
|
2055
2055
|
e.emitValidated && e.emitValidated({ isValid: S, errors: t.value, field: e.schema });
|
|
2056
2056
|
}) : x && (T = T.concat(x));
|
|
2057
2057
|
}
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2060
|
+
const k = (O) => {
|
|
2061
2061
|
var _, v;
|
|
2062
|
-
let
|
|
2062
|
+
let U = [];
|
|
2063
2063
|
if (le(oi(O), (j) => {
|
|
2064
|
-
Array.isArray(j) && j.length > 0 ?
|
|
2065
|
-
}), z((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((v = e.model) == null ? void 0 : v.value,
|
|
2066
|
-
const j =
|
|
2067
|
-
e.emitValidated && e.emitValidated({ isValid: j, errors:
|
|
2064
|
+
Array.isArray(j) && j.length > 0 ? U = U.concat(j) : Re(j) && U.push(j);
|
|
2065
|
+
}), z((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((v = e.model) == null ? void 0 : v.value, U, e.schema), !c) {
|
|
2066
|
+
const j = U.length === 0;
|
|
2067
|
+
e.emitValidated && e.emitValidated({ isValid: j, errors: U, field: e.schema });
|
|
2068
2068
|
}
|
|
2069
|
-
return O =
|
|
2069
|
+
return O = U, U;
|
|
2070
2070
|
};
|
|
2071
|
-
return M ? Promise.all(T).then(
|
|
2071
|
+
return M ? Promise.all(T).then(k) : k(T);
|
|
2072
2072
|
}, s = () => {
|
|
2073
2073
|
z(n.value) ? n.value() : n.value = it(
|
|
2074
2074
|
r,
|
|
2075
2075
|
B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 500))
|
|
2076
2076
|
);
|
|
2077
2077
|
}, o = (c, M) => {
|
|
2078
|
-
var
|
|
2078
|
+
var k, y, O;
|
|
2079
2079
|
let T = !1;
|
|
2080
|
-
z(e.schema.set) ? (e.schema.set((
|
|
2080
|
+
z(e.schema.set) ? (e.schema.set((k = e.model) == null ? void 0 : k.value, c), T = !0) : e.schema.model && (d(e.schema.model, c), T = !0), T && (e.emitModelUpdated && ((y = e.model) != null && y.value) && e.emitModelUpdated({ value: c, model: e.schema.model }), z(e.schema.onChanged) && e.schema.onChanged((O = e.model) == null ? void 0 : O.value, c, M, e.schema), B(e.formOptions, "validateAfterChanged", !1) === !0 && (B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : r()));
|
|
2081
2081
|
}, l = () => {
|
|
2082
2082
|
t.value.splice(0);
|
|
2083
2083
|
}, d = (c, M) => {
|
|
2084
2084
|
var _;
|
|
2085
2085
|
let T = c.replace(/\[(\w+)\]/g, ".$1");
|
|
2086
2086
|
T = T.replace(/^\./, "");
|
|
2087
|
-
let
|
|
2088
|
-
const O = T.split("."),
|
|
2089
|
-
for (;
|
|
2090
|
-
const v = O[
|
|
2091
|
-
if (
|
|
2092
|
-
|
|
2087
|
+
let k = ((_ = e.model) == null ? void 0 : _.value) || {}, y = 0;
|
|
2088
|
+
const O = T.split("."), U = O.length;
|
|
2089
|
+
for (; y < U; ) {
|
|
2090
|
+
const v = O[y];
|
|
2091
|
+
if (y < U - 1)
|
|
2092
|
+
k[v] !== void 0 || (k[v] = {}), k = k[v];
|
|
2093
2093
|
else {
|
|
2094
|
-
|
|
2094
|
+
k[v] = M;
|
|
2095
2095
|
return;
|
|
2096
2096
|
}
|
|
2097
|
-
++
|
|
2097
|
+
++y;
|
|
2098
2098
|
}
|
|
2099
2099
|
}, h = (c, M = !1) => {
|
|
2100
2100
|
const T = B(e.formOptions, "fieldIdPrefix", "");
|
|
@@ -2145,7 +2145,7 @@ function hd(e, t) {
|
|
|
2145
2145
|
};
|
|
2146
2146
|
});
|
|
2147
2147
|
}
|
|
2148
|
-
const
|
|
2148
|
+
const be = {
|
|
2149
2149
|
useAbstractFields: md,
|
|
2150
2150
|
useRedisPartial: fd,
|
|
2151
2151
|
useRedisNonStandardFields: hd
|
|
@@ -2189,12 +2189,12 @@ const ye = {
|
|
|
2189
2189
|
},
|
|
2190
2190
|
emits: ["modelUpdated"],
|
|
2191
2191
|
setup(e, { expose: t, emit: n }) {
|
|
2192
|
-
const a = e, i = n, r = Le(a), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } =
|
|
2192
|
+
const a = e, i = n, r = Le(a), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = be.useAbstractFields({
|
|
2193
2193
|
model: r.model,
|
|
2194
2194
|
schema: a.schema,
|
|
2195
2195
|
formOptions: a.formOptions,
|
|
2196
|
-
emitModelUpdated: (
|
|
2197
|
-
i("modelUpdated",
|
|
2196
|
+
emitModelUpdated: (y) => {
|
|
2197
|
+
i("modelUpdated", y.value, y.model);
|
|
2198
2198
|
}
|
|
2199
2199
|
});
|
|
2200
2200
|
t({
|
|
@@ -2202,48 +2202,48 @@ const ye = {
|
|
|
2202
2202
|
});
|
|
2203
2203
|
const m = L(() => {
|
|
2204
2204
|
var O;
|
|
2205
|
-
const
|
|
2206
|
-
switch (
|
|
2205
|
+
const y = (O = a.schema) == null ? void 0 : O.inputType.toLowerCase();
|
|
2206
|
+
switch (y) {
|
|
2207
2207
|
case "string":
|
|
2208
2208
|
return "text";
|
|
2209
2209
|
case "datetime":
|
|
2210
2210
|
return "datetime-local";
|
|
2211
2211
|
default:
|
|
2212
|
-
return
|
|
2212
|
+
return y || "text";
|
|
2213
2213
|
}
|
|
2214
2214
|
}), p = {
|
|
2215
2215
|
date: "YYYY-MM-DD",
|
|
2216
2216
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2217
2217
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
2218
|
-
}, E = (
|
|
2218
|
+
}, E = (y, O) => {
|
|
2219
2219
|
var j, x;
|
|
2220
|
-
let
|
|
2221
|
-
const _ = p[m.value] || "", v = Be.parse(
|
|
2222
|
-
v && ((j = a.schema) != null && j.format ?
|
|
2223
|
-
}, N = (
|
|
2224
|
-
ct(
|
|
2225
|
-
}, c = (
|
|
2226
|
-
let O =
|
|
2220
|
+
let U = y;
|
|
2221
|
+
const _ = p[m.value] || "", v = Be.parse(y, _);
|
|
2222
|
+
v && ((j = a.schema) != null && j.format ? U = Be.format(v, (x = a.schema) == null ? void 0 : x.format) : U = v.valueOf()), o(U, O);
|
|
2223
|
+
}, N = (y, O) => {
|
|
2224
|
+
ct(y) || (y = NaN), o(y, O);
|
|
2225
|
+
}, c = (y) => {
|
|
2226
|
+
let O = y;
|
|
2227
2227
|
switch (m.value) {
|
|
2228
2228
|
case "number":
|
|
2229
2229
|
case "range":
|
|
2230
|
-
ct(parseFloat(
|
|
2230
|
+
ct(parseFloat(y)) && (O = parseFloat(y));
|
|
2231
2231
|
break;
|
|
2232
2232
|
}
|
|
2233
|
-
h.value = O, o(O,
|
|
2234
|
-
}, M = (
|
|
2235
|
-
h.value =
|
|
2236
|
-
}, T = ue(null),
|
|
2237
|
-
var
|
|
2238
|
-
z(T.value) && ((
|
|
2233
|
+
h.value = O, o(O, y);
|
|
2234
|
+
}, M = (y) => {
|
|
2235
|
+
h.value = y, o(y, y);
|
|
2236
|
+
}, T = ue(null), k = () => {
|
|
2237
|
+
var y;
|
|
2238
|
+
z(T.value) && ((y = T.value) == null || y.flush());
|
|
2239
2239
|
};
|
|
2240
2240
|
return Fn(() => {
|
|
2241
2241
|
switch (m.value) {
|
|
2242
2242
|
case "number":
|
|
2243
2243
|
case "range":
|
|
2244
2244
|
T.value = it(
|
|
2245
|
-
(
|
|
2246
|
-
N(
|
|
2245
|
+
(y, O) => {
|
|
2246
|
+
N(y, O);
|
|
2247
2247
|
},
|
|
2248
2248
|
parseInt(B(a.schema, "debounceFormatTimeout", 1e3)),
|
|
2249
2249
|
{
|
|
@@ -2256,8 +2256,8 @@ const ye = {
|
|
|
2256
2256
|
case "datetime":
|
|
2257
2257
|
case "datetime-local":
|
|
2258
2258
|
T.value = it(
|
|
2259
|
-
(
|
|
2260
|
-
E(
|
|
2259
|
+
(y, O) => {
|
|
2260
|
+
E(y, O);
|
|
2261
2261
|
},
|
|
2262
2262
|
parseInt(B(a.schema, "debounceFormatTimeout", 1e3)),
|
|
2263
2263
|
{
|
|
@@ -2269,10 +2269,10 @@ const ye = {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
}), Ut(() => {
|
|
2271
2271
|
m.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : m.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : m.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
2272
|
-
}), (
|
|
2273
|
-
const
|
|
2272
|
+
}), (y, O) => {
|
|
2273
|
+
const U = F("KInput");
|
|
2274
2274
|
return u(), g("div", pd, [
|
|
2275
|
-
C(
|
|
2275
|
+
C(U, Ie(y.$attrs, {
|
|
2276
2276
|
id: w(l)(e.schema),
|
|
2277
2277
|
autocomplete: e.schema.autocomplete,
|
|
2278
2278
|
class: e.schema.fieldClasses,
|
|
@@ -2291,7 +2291,7 @@ const ye = {
|
|
|
2291
2291
|
"show-password-mask-toggle": m.value === "password",
|
|
2292
2292
|
type: m.value,
|
|
2293
2293
|
width: e.schema.width,
|
|
2294
|
-
onBlur:
|
|
2294
|
+
onBlur: k,
|
|
2295
2295
|
"onUpdate:modelValue": c
|
|
2296
2296
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
|
|
2297
2297
|
(u(), A(ie(w(s)), {
|
|
@@ -2302,21 +2302,21 @@ const ye = {
|
|
|
2302
2302
|
]);
|
|
2303
2303
|
};
|
|
2304
2304
|
}
|
|
2305
|
-
}),
|
|
2305
|
+
}), bi = /* @__PURE__ */ H(gd, [["__scopeId", "data-v-fe1132bb"]]), vd = {
|
|
2306
2306
|
name: "FieldMetric",
|
|
2307
2307
|
components: { AddIcon: Vt, TrashIcon: rt },
|
|
2308
|
-
mixins: [
|
|
2308
|
+
mixins: [ye],
|
|
2309
2309
|
emits: ["remove-item"],
|
|
2310
2310
|
data() {
|
|
2311
2311
|
return {
|
|
2312
2312
|
contentVisible: !1
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
|
-
},
|
|
2315
|
+
}, yd = {
|
|
2316
2316
|
key: 0,
|
|
2317
2317
|
class: "content"
|
|
2318
2318
|
};
|
|
2319
|
-
function
|
|
2319
|
+
function bd(e, t, n, a, i, r) {
|
|
2320
2320
|
const s = F("AddIcon"), o = F("TrashIcon"), l = F("KButton");
|
|
2321
2321
|
return u(), g("div", {
|
|
2322
2322
|
class: W(["field-dropdown", { active: i.contentVisible }])
|
|
@@ -2330,7 +2330,7 @@ function yd(e, t, n, a, i, r) {
|
|
|
2330
2330
|
]),
|
|
2331
2331
|
C(Ai, { name: "slide-fade" }, {
|
|
2332
2332
|
default: I(() => [
|
|
2333
|
-
i.contentVisible ? (u(), g("div",
|
|
2333
|
+
i.contentVisible ? (u(), g("div", yd, [
|
|
2334
2334
|
Oe(e.$slots, "default"),
|
|
2335
2335
|
C(l, {
|
|
2336
2336
|
appearance: "tertiary",
|
|
@@ -2348,8 +2348,8 @@ function yd(e, t, n, a, i, r) {
|
|
|
2348
2348
|
})
|
|
2349
2349
|
], 2);
|
|
2350
2350
|
}
|
|
2351
|
-
const _i = /* @__PURE__ */ H(vd, [["render",
|
|
2352
|
-
mixins: [
|
|
2351
|
+
const _i = /* @__PURE__ */ H(vd, [["render", bd]]), _d = { class: "field-object-container" }, wd = { key: 1 }, Md = ["id"], Sd = { key: 0 }, Td = ["onUpdate:modelValue"], Cd = { key: 1 }, Id = ["onUpdate:modelValue"], Od = { key: 2 }, Ad = ["onUpdate:modelValue"], Ed = ["onClick"], Fd = {
|
|
2352
|
+
mixins: [ye],
|
|
2353
2353
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
2354
2354
|
emits: ["modelUpdated"],
|
|
2355
2355
|
data() {
|
|
@@ -2471,7 +2471,7 @@ const _i = /* @__PURE__ */ H(vd, [["render", yd]]), _d = { class: "field-object-
|
|
|
2471
2471
|
key: 0,
|
|
2472
2472
|
class: "hint"
|
|
2473
2473
|
}, Bd = {
|
|
2474
|
-
mixins: [
|
|
2474
|
+
mixins: [ye],
|
|
2475
2475
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
2476
2476
|
inject: {
|
|
2477
2477
|
autofillSlot: {
|
|
@@ -2700,7 +2700,7 @@ const _i = /* @__PURE__ */ H(vd, [["render", yd]]), _d = { class: "field-object-
|
|
|
2700
2700
|
},
|
|
2701
2701
|
emits: ["modelUpdated"],
|
|
2702
2702
|
setup(e, { expose: t, emit: n }) {
|
|
2703
|
-
const a = e, i = n, r = Le(a), { updateModelValue: s, value: o, clearValidationErrors: l } =
|
|
2703
|
+
const a = e, i = n, r = Le(a), { updateModelValue: s, value: o, clearValidationErrors: l } = be.useAbstractFields({
|
|
2704
2704
|
model: r.model,
|
|
2705
2705
|
schema: a.schema,
|
|
2706
2706
|
formOptions: a.formOptions,
|
|
@@ -2773,7 +2773,7 @@ const _i = /* @__PURE__ */ H(vd, [["render", yd]]), _d = { class: "field-object-
|
|
|
2773
2773
|
},
|
|
2774
2774
|
emits: ["modelUpdated"],
|
|
2775
2775
|
setup(e, { expose: t, emit: n }) {
|
|
2776
|
-
const a = e, i = n, r = L(() => a.schema.selectOptions || {}), s = (c) => X(c) ? null : c, o = Le(a), { getFieldID: l, clearValidationErrors: d, value: h } =
|
|
2776
|
+
const a = e, i = n, r = L(() => a.schema.selectOptions || {}), s = (c) => X(c) ? null : c, o = Le(a), { getFieldID: l, clearValidationErrors: d, value: h } = be.useAbstractFields({
|
|
2777
2777
|
model: o.model,
|
|
2778
2778
|
schema: a.schema,
|
|
2779
2779
|
formOptions: a.formOptions,
|
|
@@ -2822,7 +2822,7 @@ const _i = /* @__PURE__ */ H(vd, [["render", yd]]), _d = { class: "field-object-
|
|
|
2822
2822
|
return u(), A(T, {
|
|
2823
2823
|
id: w(l)(e.schema),
|
|
2824
2824
|
modelValue: w(h),
|
|
2825
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
2825
|
+
"onUpdate:modelValue": M[0] || (M[0] = (k) => Ye(h) ? h.value = k : null),
|
|
2826
2826
|
class: W(e.schema.fieldClasses),
|
|
2827
2827
|
clearable: !e.schema.required,
|
|
2828
2828
|
disabled: e.disabled || void 0,
|
|
@@ -2845,12 +2845,12 @@ const _i = /* @__PURE__ */ H(vd, [["render", yd]]), _d = { class: "field-object-
|
|
|
2845
2845
|
FieldMetric: _i,
|
|
2846
2846
|
FieldObject: wi,
|
|
2847
2847
|
FieldObjectAdvanced: Mi,
|
|
2848
|
-
FieldAutoSuggest:
|
|
2848
|
+
FieldAutoSuggest: yi,
|
|
2849
2849
|
FieldRadio: Si,
|
|
2850
2850
|
FieldArrayCardContainer: pi,
|
|
2851
|
-
FieldInput:
|
|
2851
|
+
FieldInput: bi
|
|
2852
2852
|
},
|
|
2853
|
-
mixins: [
|
|
2853
|
+
mixins: [ye],
|
|
2854
2854
|
inject: {
|
|
2855
2855
|
autofillSlot: {
|
|
2856
2856
|
from: he,
|
|
@@ -3064,7 +3064,7 @@ const Xd = /* @__PURE__ */ H(xd, [["render", Qd], ["__scopeId", "data-v-27efd618
|
|
|
3064
3064
|
},
|
|
3065
3065
|
emits: ["modelUpdated"],
|
|
3066
3066
|
setup(e, { expose: t, emit: n }) {
|
|
3067
|
-
const a = e, i = n, r = Le(a), { getFieldID: s, value: o, clearValidationErrors: l } =
|
|
3067
|
+
const a = e, i = n, r = Le(a), { getFieldID: s, value: o, clearValidationErrors: l } = be.useAbstractFields({
|
|
3068
3068
|
model: r.model,
|
|
3069
3069
|
schema: a.schema,
|
|
3070
3070
|
formOptions: a.formOptions,
|
|
@@ -3162,7 +3162,7 @@ function cu(e, t, n, a, i, r) {
|
|
|
3162
3162
|
]);
|
|
3163
3163
|
}
|
|
3164
3164
|
const mu = {
|
|
3165
|
-
mixins: [
|
|
3165
|
+
mixins: [ye],
|
|
3166
3166
|
data() {
|
|
3167
3167
|
return {
|
|
3168
3168
|
comboExpanded: !1
|
|
@@ -3220,7 +3220,7 @@ const mu = {
|
|
|
3220
3220
|
}, fu = /* @__PURE__ */ H(mu, [["render", cu]]), hu = {
|
|
3221
3221
|
name: "FieldKeyValuePairs",
|
|
3222
3222
|
components: { TrashIcon: rt },
|
|
3223
|
-
mixins: [
|
|
3223
|
+
mixins: [ye],
|
|
3224
3224
|
inject: {
|
|
3225
3225
|
autofillSlot: {
|
|
3226
3226
|
from: he,
|
|
@@ -3271,7 +3271,7 @@ const mu = {
|
|
|
3271
3271
|
this.pairs.splice(e, 1);
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
}, pu = { class: "key-value-pairs-editor" }, gu = { class: "pair-item-cell" }, vu = ["data-testid", "placeholder", "value", "onInput"],
|
|
3274
|
+
}, pu = { class: "key-value-pairs-editor" }, gu = { class: "pair-item-cell" }, vu = ["data-testid", "placeholder", "value", "onInput"], yu = { class: "pair-item-cell" }, bu = ["data-testid", "placeholder", "value", "onInput"];
|
|
3275
3275
|
function _u(e, t, n, a, i, r) {
|
|
3276
3276
|
const s = F("TrashIcon"), o = F("KButton");
|
|
3277
3277
|
return u(), g("div", pu, [
|
|
@@ -3296,7 +3296,7 @@ function _u(e, t, n, a, i, r) {
|
|
|
3296
3296
|
value: l.key
|
|
3297
3297
|
}, null, 8, ["schema", "update", "value"]))
|
|
3298
3298
|
]),
|
|
3299
|
-
f("div",
|
|
3299
|
+
f("div", yu, [
|
|
3300
3300
|
f("input", {
|
|
3301
3301
|
class: "form-control",
|
|
3302
3302
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${d}`,
|
|
@@ -3306,7 +3306,7 @@ function _u(e, t, n, a, i, r) {
|
|
|
3306
3306
|
onInput: (h) => {
|
|
3307
3307
|
r.onInput(h, d, "value");
|
|
3308
3308
|
}
|
|
3309
|
-
}, null, 40,
|
|
3309
|
+
}, null, 40, bu),
|
|
3310
3310
|
(u(), A(ie(r.autofillSlot), {
|
|
3311
3311
|
schema: e.schema,
|
|
3312
3312
|
update: (h) => r.onInput({ target: { value: h } }, d, "value"),
|
|
@@ -3367,7 +3367,7 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3367
3367
|
}
|
|
3368
3368
|
},
|
|
3369
3369
|
setup(e) {
|
|
3370
|
-
const t = e, n = Le(t), { getFieldID: a, value: i } =
|
|
3370
|
+
const t = e, n = Le(t), { getFieldID: a, value: i } = be.useAbstractFields({
|
|
3371
3371
|
model: n.model,
|
|
3372
3372
|
schema: t.schema,
|
|
3373
3373
|
formOptions: t.formOptions
|
|
@@ -3428,7 +3428,7 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3428
3428
|
},
|
|
3429
3429
|
emits: ["modelUpdated"],
|
|
3430
3430
|
setup(e, { expose: t, emit: n }) {
|
|
3431
|
-
const a = e, i = n, r = ki(a, "model"), { getLabelId: s, getFieldID: o, clearValidationErrors: l, value: d } =
|
|
3431
|
+
const a = e, i = n, r = ki(a, "model"), { getLabelId: s, getFieldID: o, clearValidationErrors: l, value: d } = be.useAbstractFields({
|
|
3432
3432
|
model: r,
|
|
3433
3433
|
schema: a.schema,
|
|
3434
3434
|
formOptions: a.formOptions,
|
|
@@ -3464,7 +3464,7 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
3466
3466
|
}), Cu = { class: "selection-group" }, Iu = { class: "form-group horizontal-radios" }, Ou = { class: "radio-group" }, Au = ["disabled", "value"], Eu = { class: "control-help" }, Fu = { class: "option-field" }, ku = { class: "option-field-container" }, Uu = {
|
|
3467
|
-
mixins: [
|
|
3467
|
+
mixins: [ye],
|
|
3468
3468
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
3469
3469
|
emits: ["model-updated"],
|
|
3470
3470
|
data() {
|
|
@@ -3597,7 +3597,7 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3597
3597
|
},
|
|
3598
3598
|
emits: ["modelUpdated"],
|
|
3599
3599
|
setup(e, { expose: t, emit: n }) {
|
|
3600
|
-
const a = e, i = n, { t: r } = ge("en-us", ve), s = (p) => p != null && a.schema.valueOn ? p === a.schema.valueOn : p, o = (p) => p != null && a.schema.valueOn ? p ? a.schema.valueOn : a.schema.valueOff : p, l = Le(a), { getFieldID: d, value: h, clearValidationErrors: m } =
|
|
3600
|
+
const a = e, i = n, { t: r } = ge("en-us", ve), s = (p) => p != null && a.schema.valueOn ? p === a.schema.valueOn : p, o = (p) => p != null && a.schema.valueOn ? p ? a.schema.valueOn : a.schema.valueOff : p, l = Le(a), { getFieldID: d, value: h, clearValidationErrors: m } = be.useAbstractFields({
|
|
3601
3601
|
model: l.model,
|
|
3602
3602
|
schema: a.schema,
|
|
3603
3603
|
formOptions: a.formOptions,
|
|
@@ -3667,7 +3667,7 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3667
3667
|
},
|
|
3668
3668
|
emits: ["modelUpdated"],
|
|
3669
3669
|
setup(e, { expose: t, emit: n }) {
|
|
3670
|
-
const a = e, i = n, r = Le(a), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } =
|
|
3670
|
+
const a = e, i = n, r = Le(a), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = be.useAbstractFields({
|
|
3671
3671
|
model: r.model,
|
|
3672
3672
|
schema: a.schema,
|
|
3673
3673
|
formOptions: a.formOptions,
|
|
@@ -3716,10 +3716,10 @@ const wu = /* @__PURE__ */ H(hu, [["render", _u], ["__scopeId", "data-v-70998d5b
|
|
|
3716
3716
|
FieldArrayCardContainer: pi,
|
|
3717
3717
|
FieldArrayItem: gi,
|
|
3718
3718
|
FieldArrayMultiItem: vi,
|
|
3719
|
-
FieldAutoSuggest:
|
|
3719
|
+
FieldAutoSuggest: yi,
|
|
3720
3720
|
FieldCheckbox: nu,
|
|
3721
3721
|
FieldChecklist: fu,
|
|
3722
|
-
FieldInput:
|
|
3722
|
+
FieldInput: bi,
|
|
3723
3723
|
FieldKeyValuePairs: wu,
|
|
3724
3724
|
FieldLabel: Su,
|
|
3725
3725
|
FieldMetric: _i,
|
|
@@ -4000,7 +4000,7 @@ const ec = (e) => {
|
|
|
4000
4000
|
order: ((M = a[m]) == null ? void 0 : M.order) ?? 100
|
|
4001
4001
|
// attrs: value.attrs,
|
|
4002
4002
|
};
|
|
4003
|
-
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), d =
|
|
4003
|
+
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), d = be.useRedisNonStandardFields(i.configFields, i.pluginRedisFields), h = L(() => l.value.concat(d));
|
|
4004
4004
|
return (m, p) => {
|
|
4005
4005
|
const E = F("KCopy");
|
|
4006
4006
|
return u(), g("div", nc, [
|
|
@@ -4050,7 +4050,7 @@ const ec = (e) => {
|
|
|
4050
4050
|
key: 1,
|
|
4051
4051
|
class: "redis-shared-config-error-message",
|
|
4052
4052
|
"data-testid": "redis-config-fetch-error"
|
|
4053
|
-
}, bc = /* @__PURE__ */ re({
|
|
4053
|
+
}, yc = "1000", bc = /* @__PURE__ */ re({
|
|
4054
4054
|
__name: "RedisConfigSelect",
|
|
4055
4055
|
props: {
|
|
4056
4056
|
defaultRedisConfigItem: {
|
|
@@ -4092,36 +4092,36 @@ const ec = (e) => {
|
|
|
4092
4092
|
error: h,
|
|
4093
4093
|
loadItems: m,
|
|
4094
4094
|
results: p
|
|
4095
|
-
} = Li(o, a[o.app].getAll,
|
|
4095
|
+
} = Li(o, a[o.app].getAll, yc, {
|
|
4096
4096
|
fetchedItemsKey: "data",
|
|
4097
4097
|
searchKeys: ["id", "name"]
|
|
4098
|
-
}), E = L(() => h.value ? s(h.value) : ""), N = (
|
|
4099
|
-
let
|
|
4100
|
-
return o.app === "konnect" ?
|
|
4098
|
+
}), E = L(() => h.value ? s(h.value) : ""), N = (k) => {
|
|
4099
|
+
let y = `${o.apiBaseUrl}${a[o.app].getOne}`;
|
|
4100
|
+
return o.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), y = y.replace(/{id}/gi, String(k)), y;
|
|
4101
4101
|
}, c = L(() => {
|
|
4102
|
-
var
|
|
4103
|
-
|
|
4104
|
-
return i.redisType !== "all" ?
|
|
4105
|
-
}), { axiosInstance: M } = qi(o == null ? void 0 : o.axiosRequestConfig), T = async (
|
|
4106
|
-
if (
|
|
4107
|
-
i.updateRedisModel(
|
|
4102
|
+
var y;
|
|
4103
|
+
let k = ((y = p.value) == null ? void 0 : y.map((O) => ({ label: O.id, name: O.name, value: O.id, type: O.type, tag: ec(O) }))) || [];
|
|
4104
|
+
return k = k.filter((O) => O.type === "redis-ce" || O.type === "redis-ee"), i.redisType !== "all" ? k.filter((O) => O.type === i.redisType) : k;
|
|
4105
|
+
}), { axiosInstance: M } = qi(o == null ? void 0 : o.axiosRequestConfig), T = async (k) => {
|
|
4106
|
+
if (k) {
|
|
4107
|
+
i.updateRedisModel(k);
|
|
4108
4108
|
try {
|
|
4109
|
-
const
|
|
4110
|
-
if (
|
|
4111
|
-
const O = Object.assign(
|
|
4109
|
+
const y = await M.get(N(k));
|
|
4110
|
+
if (y.data.config) {
|
|
4111
|
+
const O = Object.assign(y.data, y.data.config);
|
|
4112
4112
|
delete O.config, r.value = O;
|
|
4113
4113
|
}
|
|
4114
|
-
} catch (
|
|
4115
|
-
console.error(
|
|
4114
|
+
} catch (y) {
|
|
4115
|
+
console.error(y);
|
|
4116
4116
|
}
|
|
4117
4117
|
}
|
|
4118
4118
|
};
|
|
4119
|
-
return $t(() => n == null ? void 0 : n.value, async (
|
|
4120
|
-
|
|
4119
|
+
return $t(() => n == null ? void 0 : n.value, async (k) => {
|
|
4120
|
+
k && await m();
|
|
4121
4121
|
}), Ut(() => {
|
|
4122
4122
|
m(), i.defaultRedisConfigItem && T(i.defaultRedisConfigItem);
|
|
4123
|
-
}), (
|
|
4124
|
-
const O = F("KLabel"),
|
|
4123
|
+
}), (k, y) => {
|
|
4124
|
+
const O = F("KLabel"), U = F("KBadge"), _ = F("KSelect");
|
|
4125
4125
|
return u(), g(K, null, [
|
|
4126
4126
|
f("div", mc, [
|
|
4127
4127
|
C(O, {
|
|
@@ -4136,7 +4136,7 @@ const ec = (e) => {
|
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 1
|
|
4138
4138
|
}, 8, ["info"]),
|
|
4139
|
-
|
|
4139
|
+
y[2] || (y[2] = f("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
4140
4140
|
C(_, {
|
|
4141
4141
|
class: "redis-config-select-trigger",
|
|
4142
4142
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -4146,7 +4146,7 @@ const ec = (e) => {
|
|
|
4146
4146
|
loading: w(d),
|
|
4147
4147
|
"model-value": e.defaultRedisConfigItem,
|
|
4148
4148
|
placeholder: w(t)("redis.shared_configuration.selector.placeholder"),
|
|
4149
|
-
onChange:
|
|
4149
|
+
onChange: y[1] || (y[1] = (v) => T(v == null ? void 0 : v.value)),
|
|
4150
4150
|
onQueryChange: w(l)
|
|
4151
4151
|
}, {
|
|
4152
4152
|
"selected-item-template": I(({ item: v }) => [
|
|
@@ -4158,7 +4158,7 @@ const ec = (e) => {
|
|
|
4158
4158
|
"data-testid": `redis-configuration-dropdown-item-${v.name}`
|
|
4159
4159
|
}, [
|
|
4160
4160
|
f("span", pc, $(v.name), 1),
|
|
4161
|
-
C(
|
|
4161
|
+
C(U, {
|
|
4162
4162
|
appearance: "info",
|
|
4163
4163
|
class: "select-item-label"
|
|
4164
4164
|
}, {
|
|
@@ -4176,7 +4176,7 @@ const ec = (e) => {
|
|
|
4176
4176
|
f("div", {
|
|
4177
4177
|
class: "new-redis-config-area",
|
|
4178
4178
|
"data-testid": "new-redis-config-area",
|
|
4179
|
-
onClick:
|
|
4179
|
+
onClick: y[0] || (y[0] = (v) => k.$emit("showNewPartialModal"))
|
|
4180
4180
|
}, [
|
|
4181
4181
|
C(w(Vt), { size: w(Xu) }, null, 8, ["size"]),
|
|
4182
4182
|
f("span", null, $(w(t)("redis.shared_configuration.create_new_configuration", { type: w(In)(e.redisType) })), 1)
|
|
@@ -4194,16 +4194,16 @@ const ec = (e) => {
|
|
|
4194
4194
|
], 64);
|
|
4195
4195
|
};
|
|
4196
4196
|
}
|
|
4197
|
-
}), On = /* @__PURE__ */ H(bc, [["__scopeId", "data-v-
|
|
4197
|
+
}), On = /* @__PURE__ */ H(bc, [["__scopeId", "data-v-009961cb"]]), _c = { key: 0 }, wc = {
|
|
4198
4198
|
class: "redis-config-radio-group",
|
|
4199
4199
|
"data-testid": "redis-config-radio-group"
|
|
4200
|
-
},
|
|
4200
|
+
}, Mc = {
|
|
4201
4201
|
key: 0,
|
|
4202
4202
|
class: "shared-redis-config"
|
|
4203
|
-
},
|
|
4203
|
+
}, Sc = {
|
|
4204
4204
|
key: 1,
|
|
4205
4205
|
class: "dedicated-redis-config"
|
|
4206
|
-
},
|
|
4206
|
+
}, Tc = { class: "dedicated-redis-config-title" }, Cc = /* @__PURE__ */ re({
|
|
4207
4207
|
__name: "FormRedis",
|
|
4208
4208
|
props: {
|
|
4209
4209
|
tag: {
|
|
@@ -4264,14 +4264,14 @@ const ec = (e) => {
|
|
|
4264
4264
|
c ? d.value && a("partialToggled", "redis", { partials: d.value }) : a("partialToggled", "partials", l.value);
|
|
4265
4265
|
}), Ut(() => {
|
|
4266
4266
|
var c, M, T;
|
|
4267
|
-
if (n.model && (l.value = n.field.fields.reduce((
|
|
4268
|
-
const
|
|
4269
|
-
s.value = !0, o.value =
|
|
4267
|
+
if (n.model && (l.value = n.field.fields.reduce((k, y) => (Object.keys(n.model).includes(y.model) && (k[y.model] = n.model[y.model]), k), {})), (T = (M = (c = n == null ? void 0 : n.model) == null ? void 0 : c.partials) == null ? void 0 : M[0]) != null && T.id) {
|
|
4268
|
+
const k = n.model.partials[0].id;
|
|
4269
|
+
s.value = !0, o.value = k;
|
|
4270
4270
|
}
|
|
4271
4271
|
}), (c, M) => {
|
|
4272
|
-
const T = F("KAlert"),
|
|
4272
|
+
const T = F("KAlert"), k = F("KBadge"), y = F("KRadio"), O = F("KCard");
|
|
4273
4273
|
return u(), g("div", null, [
|
|
4274
|
-
r.value ? (u(), g("div",
|
|
4274
|
+
r.value ? (u(), g("div", _c, [
|
|
4275
4275
|
C(T, {
|
|
4276
4276
|
"data-testid": "custom-plugin-redis-config-note",
|
|
4277
4277
|
message: w(i)("redis.custom_plugin.alert")
|
|
@@ -4281,7 +4281,7 @@ const ec = (e) => {
|
|
|
4281
4281
|
"is-custom-plugin": "",
|
|
4282
4282
|
"plugin-redis-fields": e.field.fields,
|
|
4283
4283
|
"update-redis-model": m,
|
|
4284
|
-
onShowNewPartialModal: M[0] || (M[0] = (
|
|
4284
|
+
onShowNewPartialModal: M[0] || (M[0] = (U) => c.$emit("showNewPartialModal"))
|
|
4285
4285
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
4286
4286
|
])) : (u(), A(O, {
|
|
4287
4287
|
key: 1,
|
|
@@ -4290,10 +4290,10 @@ const ec = (e) => {
|
|
|
4290
4290
|
title: w(i)("redis.title")
|
|
4291
4291
|
}, {
|
|
4292
4292
|
default: I(() => [
|
|
4293
|
-
f("div",
|
|
4294
|
-
C(
|
|
4293
|
+
f("div", wc, [
|
|
4294
|
+
C(y, {
|
|
4295
4295
|
modelValue: s.value,
|
|
4296
|
-
"onUpdate:modelValue": M[1] || (M[1] = (
|
|
4296
|
+
"onUpdate:modelValue": M[1] || (M[1] = (U) => s.value = U),
|
|
4297
4297
|
card: "",
|
|
4298
4298
|
"card-orientation": "horizontal",
|
|
4299
4299
|
"data-testid": "shared-redis-config-radio",
|
|
@@ -4302,7 +4302,7 @@ const ec = (e) => {
|
|
|
4302
4302
|
"selected-value": !0
|
|
4303
4303
|
}, {
|
|
4304
4304
|
default: I(() => [
|
|
4305
|
-
C(
|
|
4305
|
+
C(k, { appearance: "success" }, {
|
|
4306
4306
|
default: I(() => [
|
|
4307
4307
|
te($(w(i)("redis.shared_configuration.badge")), 1)
|
|
4308
4308
|
]),
|
|
@@ -4311,9 +4311,9 @@ const ec = (e) => {
|
|
|
4311
4311
|
]),
|
|
4312
4312
|
_: 1
|
|
4313
4313
|
}, 8, ["modelValue", "description", "label"]),
|
|
4314
|
-
C(
|
|
4314
|
+
C(y, {
|
|
4315
4315
|
modelValue: s.value,
|
|
4316
|
-
"onUpdate:modelValue": M[2] || (M[2] = (
|
|
4316
|
+
"onUpdate:modelValue": M[2] || (M[2] = (U) => s.value = U),
|
|
4317
4317
|
card: "",
|
|
4318
4318
|
"card-orientation": "horizontal",
|
|
4319
4319
|
"data-testid": "dedicated-redis-config-radio",
|
|
@@ -4322,27 +4322,27 @@ const ec = (e) => {
|
|
|
4322
4322
|
"selected-value": !1
|
|
4323
4323
|
}, null, 8, ["modelValue", "description", "label"])
|
|
4324
4324
|
]),
|
|
4325
|
-
s.value ? (u(), g("div",
|
|
4325
|
+
s.value ? (u(), g("div", Mc, [
|
|
4326
4326
|
C(On, {
|
|
4327
4327
|
"default-redis-config-item": o.value,
|
|
4328
4328
|
"plugin-redis-fields": e.field.fields,
|
|
4329
4329
|
"redis-type": e.field.redisType,
|
|
4330
4330
|
"update-redis-model": m,
|
|
4331
|
-
onShowNewPartialModal: M[3] || (M[3] = (
|
|
4331
|
+
onShowNewPartialModal: M[3] || (M[3] = (U) => c.$emit("showNewPartialModal"))
|
|
4332
4332
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
4333
|
-
])) : (u(), g("div",
|
|
4334
|
-
f("div",
|
|
4333
|
+
])) : (u(), g("div", Sc, [
|
|
4334
|
+
f("div", Tc, $(w(i)("redis.dedicated_configuration.title")), 1),
|
|
4335
4335
|
(u(), A(ie(e.tag), null, {
|
|
4336
4336
|
default: I(() => [
|
|
4337
|
-
(u(!0), g(K, null, J(e.field.fields, (
|
|
4338
|
-
key:
|
|
4337
|
+
(u(!0), g(K, null, J(e.field.fields, (U) => (u(), g(K, {
|
|
4338
|
+
key: U.model
|
|
4339
4339
|
}, [
|
|
4340
|
-
h(
|
|
4340
|
+
h(U) ? (u(), A(Ci, {
|
|
4341
4341
|
key: 0,
|
|
4342
4342
|
ref_for: !0,
|
|
4343
4343
|
ref: "children",
|
|
4344
4344
|
errors: e.errors,
|
|
4345
|
-
field:
|
|
4345
|
+
field: U,
|
|
4346
4346
|
model: e.model,
|
|
4347
4347
|
options: e.options,
|
|
4348
4348
|
vfg: e.vfg,
|
|
@@ -4361,9 +4361,9 @@ const ec = (e) => {
|
|
|
4361
4361
|
]);
|
|
4362
4362
|
};
|
|
4363
4363
|
}
|
|
4364
|
-
}),
|
|
4364
|
+
}), Ic = /* @__PURE__ */ H(Cc, [["__scopeId", "data-v-b9a17494"]]), Oc = {
|
|
4365
4365
|
name: "VueFormGenerator",
|
|
4366
|
-
components: { formGroup: Ci, formRedis:
|
|
4366
|
+
components: { formGroup: Ci, formRedis: Ic },
|
|
4367
4367
|
mixins: [ai],
|
|
4368
4368
|
inject: {
|
|
4369
4369
|
// Inject AUTOFILL_SLOT for provide()
|
|
@@ -4525,13 +4525,13 @@ const ec = (e) => {
|
|
|
4525
4525
|
});
|
|
4526
4526
|
}
|
|
4527
4527
|
}
|
|
4528
|
-
},
|
|
4528
|
+
}, Ac = {
|
|
4529
4529
|
key: 0,
|
|
4530
4530
|
class: "vue-form-generator"
|
|
4531
|
-
},
|
|
4532
|
-
function
|
|
4531
|
+
}, Ec = { key: 0 };
|
|
4532
|
+
function Fc(e, t, n, a, i, r) {
|
|
4533
4533
|
const s = F("form-redis"), o = F("form-group"), l = F("KCollapse");
|
|
4534
|
-
return n.schema != null ? (u(), g("div",
|
|
4534
|
+
return n.schema != null ? (u(), g("div", Ac, [
|
|
4535
4535
|
n.schema.fields ? (u(), A(ie(n.tag), { key: 0 }, {
|
|
4536
4536
|
default: I(() => [
|
|
4537
4537
|
(u(!0), g(K, null, J(r.fields, (d) => (u(), g(K, {
|
|
@@ -4670,7 +4670,7 @@ function Ec(e, t, n, a, i, r) {
|
|
|
4670
4670
|
class: W(e.getFieldRowClasses(d))
|
|
4671
4671
|
}, {
|
|
4672
4672
|
default: I(() => [
|
|
4673
|
-
d.legend ? (u(), g("legend",
|
|
4673
|
+
d.legend ? (u(), g("legend", Ec, $(d.legend), 1)) : R("", !0),
|
|
4674
4674
|
(u(!0), g(K, null, J(d.fields, (m) => (u(), g(K, {
|
|
4675
4675
|
key: m.model
|
|
4676
4676
|
}, [
|
|
@@ -4694,7 +4694,7 @@ function Ec(e, t, n, a, i, r) {
|
|
|
4694
4694
|
], 64))), 128))
|
|
4695
4695
|
])) : R("", !0);
|
|
4696
4696
|
}
|
|
4697
|
-
const ee = /* @__PURE__ */ H(
|
|
4697
|
+
const ee = /* @__PURE__ */ H(Oc, [["render", Fc]]), Ze = {
|
|
4698
4698
|
openIdConnectDocs: "https://developer.konghq.com/plugins/openid-connect/",
|
|
4699
4699
|
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
4700
4700
|
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
@@ -4714,7 +4714,7 @@ const ee = /* @__PURE__ */ H(Ic, [["render", Ec]]), Ze = {
|
|
|
4714
4714
|
"config-groups_claim",
|
|
4715
4715
|
"config-groups_required",
|
|
4716
4716
|
"config-authenticated_groups_claim"
|
|
4717
|
-
]),
|
|
4717
|
+
]), kc = {
|
|
4718
4718
|
name: "OIDCForm",
|
|
4719
4719
|
components: { VueFormGenerator: ee },
|
|
4720
4720
|
provide() {
|
|
@@ -4820,7 +4820,7 @@ const ee = /* @__PURE__ */ H(Ic, [["render", Ec]]), Ze = {
|
|
|
4820
4820
|
}, this.authFieldsSchema = {
|
|
4821
4821
|
fields: Array.from(En).reduce((i, r) => (t[r] && i.push(t[r]), i), [])
|
|
4822
4822
|
};
|
|
4823
|
-
const { redis: n, redisModels: a } =
|
|
4823
|
+
const { redis: n, redisModels: a } = be.useRedisPartial(this.formSchema);
|
|
4824
4824
|
this.advancedFieldsSchema = {
|
|
4825
4825
|
fields: this.formSchema.fields.filter(
|
|
4826
4826
|
(i) => i.model.startsWith("config") && i.model !== "config-auth_methods" && !An.has(i.model) && !En.has(i.model) && (!this.enableRedisPartial || !a.includes(i.model)) || i.model === "tags"
|
|
@@ -4919,8 +4919,8 @@ const ee = /* @__PURE__ */ H(Ic, [["render", Ec]]), Ze = {
|
|
|
4919
4919
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
4920
4920
|
}
|
|
4921
4921
|
}
|
|
4922
|
-
},
|
|
4923
|
-
function
|
|
4922
|
+
}, Uc = { class: "general-settings" }, $c = { class: "link-wrapper" }, Vc = { class: "auth-method-container" }, jc = { class: "general-settings" }, Rc = { class: "link-wrapper" }, Pc = { class: "general-settings" }, Nc = { class: "link-wrapper" };
|
|
4923
|
+
function Lc(e, t, n, a, i, r) {
|
|
4924
4924
|
const s = F("VueFormGenerator"), o = F("KExternalLink"), l = F("KLabel"), d = F("KCheckbox"), h = F("KInputSwitch"), m = F("KTabs");
|
|
4925
4925
|
return u(), g("div", null, [
|
|
4926
4926
|
n.formModel.id && n.isEditing || !n.isEditing ? (u(), A(s, {
|
|
@@ -4933,8 +4933,8 @@ function Nc(e, t, n, a, i, r) {
|
|
|
4933
4933
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4934
4934
|
C(m, { tabs: i.tabs }, {
|
|
4935
4935
|
common: I(() => [
|
|
4936
|
-
f("div",
|
|
4937
|
-
f("div",
|
|
4936
|
+
f("div", Uc, [
|
|
4937
|
+
f("div", $c, [
|
|
4938
4938
|
C(o, { href: i.openIdConfigurationDocs }, {
|
|
4939
4939
|
default: I(() => t[2] || (t[2] = [
|
|
4940
4940
|
f("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
@@ -4956,7 +4956,7 @@ function Nc(e, t, n, a, i, r) {
|
|
|
4956
4956
|
])),
|
|
4957
4957
|
_: 1
|
|
4958
4958
|
}),
|
|
4959
|
-
f("div",
|
|
4959
|
+
f("div", Vc, [
|
|
4960
4960
|
(u(!0), g(K, null, J(i.authMethods, (p) => (u(), g("div", {
|
|
4961
4961
|
key: p.value,
|
|
4962
4962
|
class: "auth-method"
|
|
@@ -4982,8 +4982,8 @@ function Nc(e, t, n, a, i, r) {
|
|
|
4982
4982
|
])
|
|
4983
4983
|
]),
|
|
4984
4984
|
authorization: I(() => [
|
|
4985
|
-
f("div",
|
|
4986
|
-
f("div",
|
|
4985
|
+
f("div", jc, [
|
|
4986
|
+
f("div", Rc, [
|
|
4987
4987
|
C(o, { href: i.openIdAuthorizationDocs }, {
|
|
4988
4988
|
default: I(() => t[5] || (t[5] = [
|
|
4989
4989
|
f("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
@@ -5007,8 +5007,8 @@ function Nc(e, t, n, a, i, r) {
|
|
|
5007
5007
|
])
|
|
5008
5008
|
]),
|
|
5009
5009
|
advanced: I(() => [
|
|
5010
|
-
f("div",
|
|
5011
|
-
f("div",
|
|
5010
|
+
f("div", Pc, [
|
|
5011
|
+
f("div", Nc, [
|
|
5012
5012
|
C(o, { href: i.openIdConnectLink }, {
|
|
5013
5013
|
default: I(() => t[7] || (t[7] = [
|
|
5014
5014
|
f("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
@@ -5034,7 +5034,7 @@ function Nc(e, t, n, a, i, r) {
|
|
|
5034
5034
|
}, 8, ["tabs"])
|
|
5035
5035
|
]);
|
|
5036
5036
|
}
|
|
5037
|
-
const
|
|
5037
|
+
const qc = /* @__PURE__ */ H(kc, [["render", Lc], ["__scopeId", "data-v-741bf3cb"]]), Kc = /* @__PURE__ */ re({
|
|
5038
5038
|
__name: "PostFunction",
|
|
5039
5039
|
props: {
|
|
5040
5040
|
formModel: {
|
|
@@ -5077,7 +5077,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5077
5077
|
onModelUpdated: e.onModelUpdated
|
|
5078
5078
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5079
5079
|
}
|
|
5080
|
-
}),
|
|
5080
|
+
}), Dc = /* @__PURE__ */ H(Kc, [["__scopeId", "data-v-f54f37ae"]]), Bc = /* @__PURE__ */ re({
|
|
5081
5081
|
__name: "ExitTransformer",
|
|
5082
5082
|
props: {
|
|
5083
5083
|
formModel: {
|
|
@@ -5120,7 +5120,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5120
5120
|
onModelUpdated: e.onModelUpdated
|
|
5121
5121
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5122
5122
|
}
|
|
5123
|
-
}),
|
|
5123
|
+
}), zc = /* @__PURE__ */ H(Bc, [["__scopeId", "data-v-0d5c541f"]]), Hc = {
|
|
5124
5124
|
fields: [
|
|
5125
5125
|
{
|
|
5126
5126
|
inputType: "text",
|
|
@@ -5155,7 +5155,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5155
5155
|
disabled: !1
|
|
5156
5156
|
}
|
|
5157
5157
|
]
|
|
5158
|
-
},
|
|
5158
|
+
}, Yc = {
|
|
5159
5159
|
fields: [
|
|
5160
5160
|
{
|
|
5161
5161
|
type: "input",
|
|
@@ -5177,7 +5177,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5177
5177
|
disabled: !1
|
|
5178
5178
|
}
|
|
5179
5179
|
]
|
|
5180
|
-
},
|
|
5180
|
+
}, xc = {
|
|
5181
5181
|
fields: [
|
|
5182
5182
|
{
|
|
5183
5183
|
type: "input",
|
|
@@ -5208,7 +5208,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5208
5208
|
disabled: !1
|
|
5209
5209
|
}
|
|
5210
5210
|
]
|
|
5211
|
-
},
|
|
5211
|
+
}, Gc = { class: "general-settings" }, Wc = { class: "sub-form" }, Zc = { class: "general-settings" }, Jc = { class: "sub-form" }, Qc = { class: "general-settings" }, Xc = /* @__PURE__ */ re({
|
|
5212
5212
|
__name: "ACMEForm",
|
|
5213
5213
|
props: {
|
|
5214
5214
|
formModel: {
|
|
@@ -5234,8 +5234,8 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5234
5234
|
}
|
|
5235
5235
|
},
|
|
5236
5236
|
setup(e) {
|
|
5237
|
-
var
|
|
5238
|
-
at(he, (
|
|
5237
|
+
var U;
|
|
5238
|
+
at(he, (U = ft()) == null ? void 0 : U[xe]);
|
|
5239
5239
|
const t = e, n = ue("zeroSsl"), a = ue("shm"), i = L(() => {
|
|
5240
5240
|
var v;
|
|
5241
5241
|
const _ = {};
|
|
@@ -5245,7 +5245,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5245
5245
|
return _;
|
|
5246
5246
|
}), r = L(() => {
|
|
5247
5247
|
var v;
|
|
5248
|
-
const _ = we(
|
|
5248
|
+
const _ = we(Hc);
|
|
5249
5249
|
for (const j of _.fields) {
|
|
5250
5250
|
const x = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5251
5251
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5253,7 +5253,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5253
5253
|
return _;
|
|
5254
5254
|
}), s = L(() => {
|
|
5255
5255
|
var v;
|
|
5256
|
-
const _ = we(
|
|
5256
|
+
const _ = we(Yc);
|
|
5257
5257
|
for (const j of _.fields) {
|
|
5258
5258
|
const x = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5259
5259
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5261,7 +5261,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5261
5261
|
return _;
|
|
5262
5262
|
}), o = L(() => {
|
|
5263
5263
|
var v;
|
|
5264
|
-
const _ = we(
|
|
5264
|
+
const _ = we(xc);
|
|
5265
5265
|
for (const j of _.fields) {
|
|
5266
5266
|
const x = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5267
5267
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
@@ -5298,7 +5298,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5298
5298
|
hash: "#advanced",
|
|
5299
5299
|
title: "Advanced"
|
|
5300
5300
|
}
|
|
5301
|
-
],
|
|
5301
|
+
], k = [
|
|
5302
5302
|
{
|
|
5303
5303
|
label: "Lets Encrypt",
|
|
5304
5304
|
value: "letsEncrypt"
|
|
@@ -5316,7 +5316,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5316
5316
|
Fn(() => {
|
|
5317
5317
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5318
5318
|
});
|
|
5319
|
-
const
|
|
5319
|
+
const y = (_) => {
|
|
5320
5320
|
n.value = _.value, (_.value === "zeroSsl" || _.value === "other") && (_.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), _.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();
|
|
5321
5321
|
}, O = (_, v) => {
|
|
5322
5322
|
v === "config-storage" && (a.value = _), t.onModelUpdated();
|
|
@@ -5334,7 +5334,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5334
5334
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5335
5335
|
C(x, { tabs: T }, {
|
|
5336
5336
|
general: I(() => [
|
|
5337
|
-
f("div",
|
|
5337
|
+
f("div", Gc, [
|
|
5338
5338
|
v[0] || (v[0] = f("div", { class: "header-wrapper" }, [
|
|
5339
5339
|
f("span", { class: "section-header" }, "General Configuration Settings")
|
|
5340
5340
|
], -1)),
|
|
@@ -5349,11 +5349,11 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5349
5349
|
v[2] || (v[2] = f("hr", null, null, -1)),
|
|
5350
5350
|
C(j, {
|
|
5351
5351
|
class: "issuer-select",
|
|
5352
|
-
items:
|
|
5352
|
+
items: k,
|
|
5353
5353
|
label: "Issuer",
|
|
5354
|
-
onChange:
|
|
5354
|
+
onChange: y
|
|
5355
5355
|
}),
|
|
5356
|
-
f("div",
|
|
5356
|
+
f("div", Wc, [
|
|
5357
5357
|
n.value === "letsEncrypt" ? (u(), A(ee, {
|
|
5358
5358
|
key: 0,
|
|
5359
5359
|
model: e.formModel,
|
|
@@ -5372,7 +5372,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5372
5372
|
])
|
|
5373
5373
|
]),
|
|
5374
5374
|
storage: I(() => [
|
|
5375
|
-
f("div",
|
|
5375
|
+
f("div", Zc, [
|
|
5376
5376
|
v[3] || (v[3] = f("div", { class: "header-wrapper" }, [
|
|
5377
5377
|
f("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5378
5378
|
], -1)),
|
|
@@ -5384,7 +5384,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5384
5384
|
schema: h.value,
|
|
5385
5385
|
onModelUpdated: O
|
|
5386
5386
|
}, null, 8, ["model", "options", "schema"])) : R("", !0),
|
|
5387
|
-
f("div",
|
|
5387
|
+
f("div", Jc, [
|
|
5388
5388
|
a.value === "consul" ? (u(), A(ee, {
|
|
5389
5389
|
key: 0,
|
|
5390
5390
|
model: e.formModel,
|
|
@@ -5417,7 +5417,7 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5417
5417
|
])
|
|
5418
5418
|
]),
|
|
5419
5419
|
advanced: I(() => [
|
|
5420
|
-
f("div",
|
|
5420
|
+
f("div", Qc, [
|
|
5421
5421
|
v[5] || (v[5] = f("div", { class: "header-wrapper" }, [
|
|
5422
5422
|
f("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5423
5423
|
], -1)),
|
|
@@ -5436,13 +5436,13 @@ const Lc = /* @__PURE__ */ H(Fc, [["render", Nc], ["__scopeId", "data-v-741bf3cb
|
|
|
5436
5436
|
]);
|
|
5437
5437
|
};
|
|
5438
5438
|
}
|
|
5439
|
-
}),
|
|
5439
|
+
}), em = /* @__PURE__ */ H(Xc, [["__scopeId", "data-v-07cecf5b"]]), tm = { class: "rla-form-basic-fields" }, nm = { class: "rla-form-request-limits-subtitle" }, im = { class: "rla-form-request-limits-content" }, am = { class: "rla-form-window-type" }, rm = ["innerHTML"], om = { class: "rla-form-window-type-radios" }, sm = { class: "rla-form-request-limits-items" }, lm = { class: "rla-form-request-limits-row" }, dm = ["id"], um = { class: "rla-form-request-limits-actions" }, cm = {
|
|
5440
5440
|
key: 0,
|
|
5441
5441
|
class: "rla-form-request-limits-examples"
|
|
5442
|
-
},
|
|
5442
|
+
}, mm = { class: "rla-form-request-limits-examples-badges" }, fm = ["innerHTML"], hm = {
|
|
5443
5443
|
id: "rla-form-error-legend",
|
|
5444
5444
|
class: "rla-form-error-inputs"
|
|
5445
|
-
},
|
|
5445
|
+
}, pm = /* @__PURE__ */ re({
|
|
5446
5446
|
__name: "RLAForm",
|
|
5447
5447
|
props: {
|
|
5448
5448
|
formSchema: {},
|
|
@@ -5516,16 +5516,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5516
5516
|
}, n = /* @__PURE__ */ new Set([
|
|
5517
5517
|
"selectionGroup",
|
|
5518
5518
|
"enabled",
|
|
5519
|
-
...["identifier", "limit", "window_size", "error_code", "error_message"].map((
|
|
5520
|
-
]), a = (
|
|
5519
|
+
...["identifier", "limit", "window_size", "error_code", "error_message"].map((b) => `config-${b}`)
|
|
5520
|
+
]), a = (b) => b === void 0 ? !1 : n.has(b), { t: i } = ge("en-us", ve), r = e, s = L(() => {
|
|
5521
5521
|
var V, P, D;
|
|
5522
|
-
const
|
|
5523
|
-
return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((se) => se.model === "enabled"),
|
|
5522
|
+
const b = (P = (V = r.formSchema) == null ? void 0 : V.fields) == null ? void 0 : P.find((se) => se.type === "selectionGroup" && se.model === "selectionGroup");
|
|
5523
|
+
return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((se) => se.model === "enabled"), b].filter(Boolean) };
|
|
5524
5524
|
}), o = L(() => {
|
|
5525
5525
|
var se, Ue;
|
|
5526
|
-
const
|
|
5526
|
+
const b = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ae) => !a(ae.model))) ?? [], S = [], V = [], P = [];
|
|
5527
5527
|
let D = !1;
|
|
5528
|
-
for (const ae of
|
|
5528
|
+
for (const ae of b) {
|
|
5529
5529
|
const De = ae.model;
|
|
5530
5530
|
if (De !== void 0) {
|
|
5531
5531
|
if (De.startsWith("config-redis-")) {
|
|
@@ -5541,99 +5541,99 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5541
5541
|
afterStrategy: { fields: P }
|
|
5542
5542
|
};
|
|
5543
5543
|
}), l = L(() => {
|
|
5544
|
-
const
|
|
5545
|
-
return Object.prototype.hasOwnProperty.call(t,
|
|
5544
|
+
const b = r.formModel["config-window_type"];
|
|
5545
|
+
return Object.prototype.hasOwnProperty.call(t, b) ? t[b] : [];
|
|
5546
5546
|
}), d = L(() => {
|
|
5547
|
-
var
|
|
5548
|
-
return (S = (
|
|
5547
|
+
var b, S;
|
|
5548
|
+
return (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((V) => V.model === "config-identifier");
|
|
5549
5549
|
}), h = L(
|
|
5550
5550
|
() => {
|
|
5551
|
-
var
|
|
5552
|
-
return (((V = (S = (
|
|
5551
|
+
var b, S, V;
|
|
5552
|
+
return (((V = (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((P) => P.model === "config-identifier")) == null ? void 0 : V.values) ?? []).map((P) => ({
|
|
5553
5553
|
label: i(`rla.identifiers.options.${P}`),
|
|
5554
5554
|
value: P
|
|
5555
5555
|
}));
|
|
5556
5556
|
}
|
|
5557
5557
|
), m = ue(), p = ue(!0), E = L(
|
|
5558
5558
|
() => {
|
|
5559
|
-
var
|
|
5560
|
-
return r.formModel["config-window_type"] ?? ((V = (S = (
|
|
5559
|
+
var b, S, V;
|
|
5560
|
+
return r.formModel["config-window_type"] ?? ((V = (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((P) => P.model === "config-window_type")) == null ? void 0 : V.default);
|
|
5561
5561
|
}
|
|
5562
5562
|
), N = L(() => {
|
|
5563
5563
|
var S, V, P, D, se, Ue;
|
|
5564
|
-
const
|
|
5565
|
-
return (((Ue = (se = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : se.find((ae) => ae.model === "config-window_type")) == null ? void 0 : Ue.values) ?? []).sort((ae, De) => ae ===
|
|
5564
|
+
const b = (P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((ae) => ae.model === "config-window_type")) == null ? void 0 : P.default;
|
|
5565
|
+
return (((Ue = (se = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : se.find((ae) => ae.model === "config-window_type")) == null ? void 0 : Ue.values) ?? []).sort((ae, De) => ae === b ? -1 : De === b ? 1 : 0);
|
|
5566
5566
|
}), c = L(() => {
|
|
5567
5567
|
var S;
|
|
5568
|
-
const
|
|
5568
|
+
const b = (S = r.formModel["config-limit"]) == null ? void 0 : S.map((V, P) => {
|
|
5569
5569
|
var D, se;
|
|
5570
5570
|
return {
|
|
5571
5571
|
limit: V,
|
|
5572
5572
|
windowSize: (se = (D = r.formModel) == null ? void 0 : D["config-window_size"]) == null ? void 0 : se[P]
|
|
5573
5573
|
};
|
|
5574
5574
|
});
|
|
5575
|
-
return !Array.isArray(
|
|
5575
|
+
return !Array.isArray(b) || b.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : b;
|
|
5576
5576
|
}), M = L(
|
|
5577
5577
|
() => {
|
|
5578
|
-
var
|
|
5579
|
-
return ((
|
|
5578
|
+
var b, S, V, P;
|
|
5579
|
+
return ((b = r.formModel) == null ? void 0 : b["config-identifier"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-identifier")) == null ? void 0 : P.default);
|
|
5580
5580
|
}
|
|
5581
5581
|
), T = L(
|
|
5582
5582
|
() => {
|
|
5583
|
-
var
|
|
5584
|
-
return ((
|
|
5583
|
+
var b, S, V, P;
|
|
5584
|
+
return ((b = r.formModel) == null ? void 0 : b["config-error_code"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-error_code")) == null ? void 0 : P.default);
|
|
5585
5585
|
}
|
|
5586
|
-
),
|
|
5586
|
+
), k = L(
|
|
5587
5587
|
() => {
|
|
5588
|
-
var
|
|
5589
|
-
return ((
|
|
5588
|
+
var b, S, V, P;
|
|
5589
|
+
return ((b = r.formModel) == null ? void 0 : b["config-error_message"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((D) => D.model === "config-error_message")) == null ? void 0 : P.default);
|
|
5590
5590
|
}
|
|
5591
|
-
),
|
|
5591
|
+
), y = (b, S) => {
|
|
5592
5592
|
if (S === m.value) {
|
|
5593
5593
|
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Dt(() => {
|
|
5594
5594
|
m.value = void 0;
|
|
5595
5595
|
});
|
|
5596
5596
|
return;
|
|
5597
5597
|
}
|
|
5598
|
-
r.onModelUpdated([
|
|
5598
|
+
r.onModelUpdated([b.config.limit], "config-limit"), r.onModelUpdated([b.config.window_size], "config-window_size"), Dt(() => {
|
|
5599
5599
|
m.value = S;
|
|
5600
5600
|
});
|
|
5601
|
-
}, O = (
|
|
5602
|
-
m.value !== void 0 && (m.value = void 0),
|
|
5603
|
-
},
|
|
5601
|
+
}, O = (b) => {
|
|
5602
|
+
m.value !== void 0 && (m.value = void 0), b !== null && r.onModelUpdated(b.toString(), "config-window_type");
|
|
5603
|
+
}, U = (b, S) => {
|
|
5604
5604
|
var P;
|
|
5605
5605
|
m.value !== void 0 && (m.value = void 0);
|
|
5606
5606
|
const V = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []);
|
|
5607
|
-
V[
|
|
5608
|
-
}, _ = (
|
|
5607
|
+
V[b] = S, r.onModelUpdated(V, "config-limit");
|
|
5608
|
+
}, _ = (b, S) => {
|
|
5609
5609
|
var P;
|
|
5610
5610
|
m.value !== void 0 && (m.value = void 0);
|
|
5611
5611
|
const V = we(((P = r.formModel) == null ? void 0 : P["config-window_size"]) ?? []);
|
|
5612
|
-
V[
|
|
5613
|
-
}, v = (
|
|
5612
|
+
V[b] = S, r.onModelUpdated(V, "config-window_size");
|
|
5613
|
+
}, v = (b) => {
|
|
5614
5614
|
var P, D;
|
|
5615
5615
|
m.value !== void 0 && (m.value = void 0);
|
|
5616
5616
|
const S = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []), V = we(((D = r.formModel) == null ? void 0 : D["config-window_size"]) ?? []);
|
|
5617
|
-
S.length === 0 && S.push(void 0), V.length === 0 && V.push(void 0), S.splice(
|
|
5618
|
-
}, j = (
|
|
5617
|
+
S.length === 0 && S.push(void 0), V.length === 0 && V.push(void 0), S.splice(b + 1, 0, void 0), V.splice(b + 1, 0, void 0), r.onModelUpdated(S, "config-limit"), r.onModelUpdated(V, "config-window_size");
|
|
5618
|
+
}, j = (b) => {
|
|
5619
5619
|
var S, V;
|
|
5620
5620
|
if (c.value.length > 1) {
|
|
5621
5621
|
m.value !== void 0 && (m.value = void 0);
|
|
5622
5622
|
const P = we(((S = r.formModel) == null ? void 0 : S["config-limit"]) ?? []), D = we(((V = r.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
5623
|
-
P.length === 0 && P.push(void 0), D.length === 0 && D.push(void 0), P.splice(
|
|
5623
|
+
P.length === 0 && P.push(void 0), D.length === 0 && D.push(void 0), P.splice(b, 1), D.splice(b, 1), r.onModelUpdated(P, "config-limit"), r.onModelUpdated(D, "config-window_size");
|
|
5624
5624
|
}
|
|
5625
5625
|
};
|
|
5626
|
-
return $t(() => r.formModel["config-strategy"], (
|
|
5627
|
-
|
|
5628
|
-
}), (
|
|
5626
|
+
return $t(() => r.formModel["config-strategy"], (b) => {
|
|
5627
|
+
b !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
|
|
5628
|
+
}), (b, S) => {
|
|
5629
5629
|
const V = F("KLabel"), P = F("KRadio"), D = F("KInput"), se = F("KButton"), Ue = F("KBadge"), ae = F("KTooltip"), De = F("KCard"), Ii = F("KSelect"), Oi = F("KCollapse");
|
|
5630
5630
|
return u(), g(K, null, [
|
|
5631
|
-
f("div",
|
|
5631
|
+
f("div", tm, [
|
|
5632
5632
|
C(ee, {
|
|
5633
|
-
model:
|
|
5634
|
-
options:
|
|
5633
|
+
model: b.formModel,
|
|
5634
|
+
options: b.formOptions,
|
|
5635
5635
|
schema: s.value,
|
|
5636
|
-
onModelUpdated: S[0] || (S[0] = (q, ne) =>
|
|
5636
|
+
onModelUpdated: S[0] || (S[0] = (q, ne) => b.onModelUpdated(q, ne))
|
|
5637
5637
|
}, null, 8, ["model", "options", "schema"]),
|
|
5638
5638
|
C(De, { class: "rla-form-request-limits" }, {
|
|
5639
5639
|
title: I(() => [
|
|
@@ -5647,11 +5647,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5647
5647
|
]),
|
|
5648
5648
|
_: 1
|
|
5649
5649
|
}),
|
|
5650
|
-
f("div",
|
|
5650
|
+
f("div", nm, $(w(i)("rla.request_limits.subtitle")), 1)
|
|
5651
5651
|
]),
|
|
5652
5652
|
default: I(() => [
|
|
5653
|
-
f("div",
|
|
5654
|
-
f("div",
|
|
5653
|
+
f("div", im, [
|
|
5654
|
+
f("div", am, [
|
|
5655
5655
|
C(V, {
|
|
5656
5656
|
class: "rla-form-window-type-label",
|
|
5657
5657
|
"tooltip-attributes": {
|
|
@@ -5662,14 +5662,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5662
5662
|
tooltip: I(() => [
|
|
5663
5663
|
f("div", {
|
|
5664
5664
|
innerHTML: w(i)("rla.window_type.help")
|
|
5665
|
-
}, null, 8,
|
|
5665
|
+
}, null, 8, rm)
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: I(() => [
|
|
5668
5668
|
te($(w(i)("rla.window_type.label")) + " ", 1)
|
|
5669
5669
|
]),
|
|
5670
5670
|
_: 1
|
|
5671
5671
|
}),
|
|
5672
|
-
f("div",
|
|
5672
|
+
f("div", om, [
|
|
5673
5673
|
(u(!0), g(K, null, J(N.value, (q) => (u(), A(P, {
|
|
5674
5674
|
key: `window-type-${q}`,
|
|
5675
5675
|
"model-value": E.value,
|
|
@@ -5684,7 +5684,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5684
5684
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5685
5685
|
])
|
|
5686
5686
|
]),
|
|
5687
|
-
f("div",
|
|
5687
|
+
f("div", sm, [
|
|
5688
5688
|
(u(!0), g(K, null, J(c.value, (q, ne) => (u(), g("div", {
|
|
5689
5689
|
key: ne.toString()
|
|
5690
5690
|
}, [
|
|
@@ -5696,7 +5696,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5696
5696
|
]),
|
|
5697
5697
|
_: 2
|
|
5698
5698
|
}, 1032, ["for"]),
|
|
5699
|
-
f("div",
|
|
5699
|
+
f("div", lm, [
|
|
5700
5700
|
f("legend", {
|
|
5701
5701
|
id: `rla-form-request-limits-item-${ne}-legend`,
|
|
5702
5702
|
class: "rla-form-request-limits-inputs"
|
|
@@ -5705,7 +5705,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5705
5705
|
"model-value": q.limit && q.limit.toString(),
|
|
5706
5706
|
placeholder: w(i)("rla.request_limits.request_number"),
|
|
5707
5707
|
type: "number",
|
|
5708
|
-
"onUpdate:modelValue": (Mt) =>
|
|
5708
|
+
"onUpdate:modelValue": (Mt) => U(ne, Number.parseInt(Mt))
|
|
5709
5709
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5710
5710
|
f("div", null, $(w(i)("rla.request_limits.interval_determiner")), 1),
|
|
5711
5711
|
C(D, {
|
|
@@ -5715,8 +5715,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5715
5715
|
"onUpdate:modelValue": (Mt) => _(ne, Number.parseInt(Mt))
|
|
5716
5716
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5717
5717
|
f("div", null, $(w(i)("rla.request_limits.seconds")), 1)
|
|
5718
|
-
], 8,
|
|
5719
|
-
f("div",
|
|
5718
|
+
], 8, dm),
|
|
5719
|
+
f("div", um, [
|
|
5720
5720
|
C(se, {
|
|
5721
5721
|
appearance: "tertiary",
|
|
5722
5722
|
disabled: c.value.length <= 1,
|
|
@@ -5740,9 +5740,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5740
5740
|
])
|
|
5741
5741
|
]))), 128))
|
|
5742
5742
|
]),
|
|
5743
|
-
l.value.length > 0 ? (u(), g("div",
|
|
5743
|
+
l.value.length > 0 ? (u(), g("div", cm, [
|
|
5744
5744
|
f("div", null, $(w(i)("rla.start_with_a_use_case")), 1),
|
|
5745
|
-
f("div",
|
|
5745
|
+
f("div", mm, [
|
|
5746
5746
|
(u(!0), g(K, null, J(l.value, (q, ne) => (u(), A(ae, {
|
|
5747
5747
|
key: `use-case-${ne}`,
|
|
5748
5748
|
"max-width": "300"
|
|
@@ -5757,7 +5757,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5757
5757
|
C(Ue, {
|
|
5758
5758
|
appearance: m.value === `${E.value}-${ne}` ? "info" : "decorative",
|
|
5759
5759
|
class: "rla-form-request-limits-examples-badge",
|
|
5760
|
-
onClick: () =>
|
|
5760
|
+
onClick: () => y(q, `${E.value}-${ne}`)
|
|
5761
5761
|
}, {
|
|
5762
5762
|
default: I(() => [
|
|
5763
5763
|
te($(q.label), 1)
|
|
@@ -5791,7 +5791,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5791
5791
|
"label-tooltip": I(() => [
|
|
5792
5792
|
f("div", {
|
|
5793
5793
|
innerHTML: d.value && d.value.help
|
|
5794
|
-
}, null, 8,
|
|
5794
|
+
}, null, 8, fm)
|
|
5795
5795
|
]),
|
|
5796
5796
|
_: 1
|
|
5797
5797
|
}, 8, ["modelValue", "items", "label"]),
|
|
@@ -5810,19 +5810,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5810
5810
|
]),
|
|
5811
5811
|
_: 1
|
|
5812
5812
|
}, 8, ["info"]),
|
|
5813
|
-
f("legend",
|
|
5813
|
+
f("legend", hm, [
|
|
5814
5814
|
C(D, {
|
|
5815
5815
|
class: "input-error-code",
|
|
5816
5816
|
"model-value": T.value && T.value.toString(),
|
|
5817
5817
|
placeholder: w(i)("rla.error_message.code_placeholder"),
|
|
5818
5818
|
type: "number",
|
|
5819
|
-
"onUpdate:modelValue": S[3] || (S[3] = (q) =>
|
|
5819
|
+
"onUpdate:modelValue": S[3] || (S[3] = (q) => b.onModelUpdated(Number.parseInt(q), "config-error_code"))
|
|
5820
5820
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5821
5821
|
S[11] || (S[11] = f("div", null, ":", -1)),
|
|
5822
5822
|
C(D, {
|
|
5823
|
-
"model-value":
|
|
5823
|
+
"model-value": k.value,
|
|
5824
5824
|
placeholder: w(i)("rla.error_message.message_placeholder"),
|
|
5825
|
-
"onUpdate:modelValue": S[4] || (S[4] = (q) =>
|
|
5825
|
+
"onUpdate:modelValue": S[4] || (S[4] = (q) => b.onModelUpdated(q, "config-error_message"))
|
|
5826
5826
|
}, null, 8, ["model-value", "placeholder"])
|
|
5827
5827
|
])
|
|
5828
5828
|
])
|
|
@@ -5834,36 +5834,36 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5834
5834
|
}, {
|
|
5835
5835
|
default: I(() => [
|
|
5836
5836
|
C(ee, {
|
|
5837
|
-
model:
|
|
5838
|
-
options:
|
|
5837
|
+
model: b.formModel,
|
|
5838
|
+
options: b.formOptions,
|
|
5839
5839
|
schema: o.value.endsWithStrategy,
|
|
5840
|
-
onModelUpdated: S[5] || (S[5] = (q, ne) =>
|
|
5840
|
+
onModelUpdated: S[5] || (S[5] = (q, ne) => b.onModelUpdated(q, ne))
|
|
5841
5841
|
}, null, 8, ["model", "options", "schema"]),
|
|
5842
|
-
|
|
5842
|
+
b.formModel["config-strategy"] === "redis" ? (u(), A(ie(b.enableRedisPartial ? "div" : "KCard"), {
|
|
5843
5843
|
key: 0,
|
|
5844
5844
|
class: "rla-form-redis-card",
|
|
5845
5845
|
title: w(i)("rla.redis.title")
|
|
5846
5846
|
}, {
|
|
5847
5847
|
default: I(() => [
|
|
5848
5848
|
C(ee, {
|
|
5849
|
-
"enable-redis-partial":
|
|
5850
|
-
"is-editing":
|
|
5851
|
-
model:
|
|
5852
|
-
options:
|
|
5849
|
+
"enable-redis-partial": b.enableRedisPartial,
|
|
5850
|
+
"is-editing": b.isEditing,
|
|
5851
|
+
model: b.formModel,
|
|
5852
|
+
options: b.formOptions,
|
|
5853
5853
|
schema: o.value.redis,
|
|
5854
|
-
onModelUpdated: S[6] || (S[6] = (q, ne) =>
|
|
5855
|
-
onPartialToggled:
|
|
5856
|
-
onShowNewPartialModal: S[7] || (S[7] = () =>
|
|
5854
|
+
onModelUpdated: S[6] || (S[6] = (q, ne) => b.onModelUpdated(q, ne)),
|
|
5855
|
+
onPartialToggled: b.onPartialToggled,
|
|
5856
|
+
onShowNewPartialModal: S[7] || (S[7] = () => b.showNewPartialModal(b.formSchema._supported_redis_partial_type))
|
|
5857
5857
|
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onPartialToggled"])
|
|
5858
5858
|
]),
|
|
5859
5859
|
_: 1
|
|
5860
5860
|
}, 8, ["title"])) : R("", !0),
|
|
5861
5861
|
C(ee, {
|
|
5862
|
-
class: W({ "rla-last-vfg":
|
|
5863
|
-
model:
|
|
5864
|
-
options:
|
|
5862
|
+
class: W({ "rla-last-vfg": b.formModel["config-strategy"] !== "redis" }),
|
|
5863
|
+
model: b.formModel,
|
|
5864
|
+
options: b.formOptions,
|
|
5865
5865
|
schema: o.value.afterStrategy,
|
|
5866
|
-
onModelUpdated: S[8] || (S[8] = (q, ne) =>
|
|
5866
|
+
onModelUpdated: S[8] || (S[8] = (q, ne) => b.onModelUpdated(q, ne))
|
|
5867
5867
|
}, null, 8, ["class", "model", "options", "schema"])
|
|
5868
5868
|
]),
|
|
5869
5869
|
_: 1
|
|
@@ -5871,20 +5871,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5871
5871
|
], 64);
|
|
5872
5872
|
};
|
|
5873
5873
|
}
|
|
5874
|
-
}),
|
|
5874
|
+
}), gm = /* @__PURE__ */ H(pm, [["__scopeId", "data-v-f6dcb65c"]]), Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5875
5875
|
__proto__: null,
|
|
5876
|
-
ACMEForm:
|
|
5877
|
-
ExitTransformer:
|
|
5878
|
-
OIDCForm:
|
|
5879
|
-
PostFunction:
|
|
5880
|
-
RLAForm:
|
|
5881
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5876
|
+
ACMEForm: em,
|
|
5877
|
+
ExitTransformer: zc,
|
|
5878
|
+
OIDCForm: qc,
|
|
5879
|
+
PostFunction: Dc,
|
|
5880
|
+
RLAForm: gm
|
|
5881
|
+
}, Symbol.toStringTag, { value: "Module" })), Tm = [
|
|
5882
5882
|
"array",
|
|
5883
5883
|
"metric",
|
|
5884
5884
|
"advanced",
|
|
5885
5885
|
"selectionGroup",
|
|
5886
5886
|
"object-advanced"
|
|
5887
|
-
],
|
|
5887
|
+
], Cm = (e) => ({
|
|
5888
5888
|
"openid-connect": "OIDCForm",
|
|
5889
5889
|
"post-function": "PostFunction",
|
|
5890
5890
|
// Pre and Post function plugins are using same component
|
|
@@ -5899,11 +5899,11 @@ export {
|
|
|
5899
5899
|
xr as FORMS_CONFIG,
|
|
5900
5900
|
mt as PartialType,
|
|
5901
5901
|
Gr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5902
|
-
|
|
5902
|
+
wm as REDIS_PARTIAL_INFO,
|
|
5903
5903
|
ee as VueFormGenerator,
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5904
|
+
Mm as abstractField,
|
|
5905
|
+
be as composables,
|
|
5906
|
+
Tm as customFields,
|
|
5907
|
+
Cm as getSharedFormName,
|
|
5908
|
+
Sm as sharedForms
|
|
5909
5909
|
};
|