@kong-ui-public/forms 4.11.15-pr.2060.977f179ea.0 → 4.11.15
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/README.md +0 -48
- package/dist/forms.es.js +751 -752
- package/dist/forms.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/FormGenerator.vue.d.ts +1 -1
- package/dist/types/components/FormGroup.vue.d.ts +1 -1
- package/dist/types/components/FormGroup.vue.d.ts.map +1 -1
- package/dist/types/components/fields/FieldArray.vue.d.ts +2 -2
- package/dist/types/components/fields/FieldAutoSuggest.vue.d.ts +1 -1
- package/dist/types/components/fields/FieldSelectionGroup.vue.d.ts +1 -1
- package/dist/types/components/forms/OIDCForm.vue.d.ts +1 -1
- package/dist/types/composables/useAbstractFields.d.ts +2 -3
- package/dist/types/composables/useAbstractFields.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/form-fields.d.ts +0 -2
- package/dist/types/types/form-fields.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as O, openBlock as u, createElementBlock as g, createElementVNode as h, toDisplayString as
|
|
1
|
+
import { resolveComponent as O, openBlock as u, createElementBlock as g, createElementVNode as h, toDisplayString as U, normalizeClass as W, createVNode as T, defineComponent as re, provide as it, withCtx as C, renderSlot as Oe, unref as M, createTextVNode as ee, createBlock as A, resolveDynamicComponent as ne, Fragment as D, renderList as J, ref as ue, computed as L, toRefs as Le, inject as rt, onMounted as En, onBeforeMount as kt, mergeProps as Ie, Transition as Oi, createCommentVNode as V, resolveDirective as Fn, withDirectives as de, vModelText as Ze, vModelCheckbox as Ai, vModelSelect as Ei, vModelDynamic as kn, isRef as Ye, toRef as Fi, vModelRadio as ki, vShow as Ui, createSlots as Un, watch as Ut, normalizeProps as $i, guardReactiveProps as Vi, useSlots as mt, nextTick as Kt } from "vue";
|
|
2
2
|
import { createI18n as ge } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as at, AddIcon as $t, RemoveIcon as ji } from "@kong/icons";
|
|
4
4
|
import { useStringHelpers as Ri, useErrors as Pi, useDebouncedFilter as Ni, useAxios as Li } from "@kong-ui-public/entities-shared";
|
|
@@ -18,46 +18,46 @@ function qi(e) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
var Ki = qi();
|
|
21
|
-
function
|
|
21
|
+
function Di(e, t) {
|
|
22
22
|
for (var n = -1, a = Array(e); ++n < e; )
|
|
23
23
|
a[n] = t(n);
|
|
24
24
|
return a;
|
|
25
25
|
}
|
|
26
|
-
var Vn = typeof global == "object" && global && global.Object === Object && global,
|
|
26
|
+
var Vn = typeof global == "object" && global && global.Object === Object && global, Bi = typeof self == "object" && self && self.Object === Object && self, pe = Vn || Bi || Function("return this")(), Ae = pe.Symbol, jn = Object.prototype, zi = jn.hasOwnProperty, xi = jn.toString, We = Ae ? Ae.toStringTag : void 0;
|
|
27
27
|
function Yi(e) {
|
|
28
|
-
var t =
|
|
28
|
+
var t = zi.call(e, We), n = e[We];
|
|
29
29
|
try {
|
|
30
30
|
e[We] = void 0;
|
|
31
31
|
var a = !0;
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
34
|
-
var i =
|
|
34
|
+
var i = xi.call(e);
|
|
35
35
|
return a && (t ? e[We] = n : delete e[We]), i;
|
|
36
36
|
}
|
|
37
37
|
var Hi = Object.prototype, Gi = Hi.toString;
|
|
38
38
|
function Wi(e) {
|
|
39
39
|
return Gi.call(e);
|
|
40
40
|
}
|
|
41
|
-
var Zi = "[object Null]", Ji = "[object Undefined]",
|
|
41
|
+
var Zi = "[object Null]", Ji = "[object Undefined]", Dt = Ae ? Ae.toStringTag : void 0;
|
|
42
42
|
function Ee(e) {
|
|
43
|
-
return e == null ? e === void 0 ? Ji : Zi :
|
|
43
|
+
return e == null ? e === void 0 ? Ji : Zi : Dt && Dt in Object(e) ? Yi(e) : Wi(e);
|
|
44
44
|
}
|
|
45
45
|
function Fe(e) {
|
|
46
46
|
return e != null && typeof e == "object";
|
|
47
47
|
}
|
|
48
48
|
var Qi = "[object Arguments]";
|
|
49
|
-
function
|
|
49
|
+
function Bt(e) {
|
|
50
50
|
return Fe(e) && Ee(e) == Qi;
|
|
51
51
|
}
|
|
52
|
-
var Rn = Object.prototype, Xi = Rn.hasOwnProperty, ea = Rn.propertyIsEnumerable, ta =
|
|
52
|
+
var Rn = Object.prototype, Xi = Rn.hasOwnProperty, ea = Rn.propertyIsEnumerable, ta = Bt(/* @__PURE__ */ function() {
|
|
53
53
|
return arguments;
|
|
54
|
-
}()) ?
|
|
54
|
+
}()) ? Bt : function(e) {
|
|
55
55
|
return Fe(e) && Xi.call(e, "callee") && !ea.call(e, "callee");
|
|
56
56
|
}, ke = Array.isArray;
|
|
57
57
|
function na() {
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
|
-
var Pn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
60
|
+
var Pn = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Pn && typeof module == "object" && module && !module.nodeType && module, ia = zt && zt.exports === Pn, xt = ia ? pe.Buffer : void 0, aa = xt ? xt.isBuffer : void 0, Nn = aa || na, ra = 9007199254740991, oa = /^(?:0|[1-9]\d*)$/;
|
|
61
61
|
function Ln(e, t) {
|
|
62
62
|
var n = typeof e;
|
|
63
63
|
return t = t ?? ra, !!t && (n == "number" || n != "symbol" && oa.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
@@ -77,15 +77,15 @@ function Vt(e) {
|
|
|
77
77
|
return e(t);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Kn && typeof module == "object" && module && !module.nodeType && module, $a = Je && Je.exports === Kn, Mt = $a && Vn.process,
|
|
80
|
+
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Kn && typeof module == "object" && module && !module.nodeType && module, $a = Je && Je.exports === Kn, Mt = $a && Vn.process, xe = function() {
|
|
81
81
|
try {
|
|
82
82
|
var e = Je && Je.require && Je.require("util").types;
|
|
83
83
|
return e || Mt && Mt.binding && Mt.binding("util");
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
|
-
}(), Yt =
|
|
87
|
-
function
|
|
88
|
-
var n = ke(e), a = !n && ta(e), i = !n && !a && Nn(e), r = !n && !a && !i && Va(e), s = n || a || i || r, o = s ?
|
|
86
|
+
}(), Yt = xe && xe.isTypedArray, Va = Yt ? Vt(Yt) : Ua, ja = Object.prototype, Ra = ja.hasOwnProperty;
|
|
87
|
+
function Dn(e, t) {
|
|
88
|
+
var n = ke(e), a = !n && ta(e), i = !n && !a && Nn(e), r = !n && !a && !i && Va(e), s = n || a || i || r, o = s ? Di(e.length, String) : [], d = o.length;
|
|
89
89
|
for (var l in e)
|
|
90
90
|
(t || Ra.call(e, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
91
91
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -99,12 +99,12 @@ function jt(e) {
|
|
|
99
99
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Pa;
|
|
100
100
|
return e === n;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Bn(e, t) {
|
|
103
103
|
return function(n) {
|
|
104
104
|
return e(t(n));
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
var Na =
|
|
107
|
+
var Na = Bn(Object.keys, Object), La = Object.prototype, qa = La.hasOwnProperty;
|
|
108
108
|
function Ka(e) {
|
|
109
109
|
if (!jt(e))
|
|
110
110
|
return Na(e);
|
|
@@ -117,18 +117,18 @@ function me(e) {
|
|
|
117
117
|
var t = typeof e;
|
|
118
118
|
return e != null && (t == "object" || t == "function");
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
function
|
|
120
|
+
var Da = "[object AsyncFunction]", Ba = "[object Function]", za = "[object GeneratorFunction]", xa = "[object Proxy]";
|
|
121
|
+
function H(e) {
|
|
122
122
|
if (!me(e))
|
|
123
123
|
return !1;
|
|
124
124
|
var t = Ee(e);
|
|
125
|
-
return t ==
|
|
125
|
+
return t == Ba || t == za || t == Da || t == xa;
|
|
126
126
|
}
|
|
127
127
|
function ft(e) {
|
|
128
|
-
return e != null && qn(e.length) && !
|
|
128
|
+
return e != null && qn(e.length) && !H(e);
|
|
129
129
|
}
|
|
130
130
|
function ht(e) {
|
|
131
|
-
return ft(e) ?
|
|
131
|
+
return ft(e) ? Dn(e) : Ka(e);
|
|
132
132
|
}
|
|
133
133
|
function Ya(e, t) {
|
|
134
134
|
return e && Ki(e, t, ht);
|
|
@@ -193,7 +193,7 @@ var ir = /[\\^$.*+?()[\]{}|]/g, ar = /^\[object .+?Constructor\]$/, rr = Functio
|
|
|
193
193
|
function ur(e) {
|
|
194
194
|
if (!me(e) || er(e))
|
|
195
195
|
return !1;
|
|
196
|
-
var t =
|
|
196
|
+
var t = H(e) ? dr : ar;
|
|
197
197
|
return t.test(qe(e));
|
|
198
198
|
}
|
|
199
199
|
function cr(e, t) {
|
|
@@ -354,42 +354,42 @@ var Lr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
354
354
|
t.push(i ? r.replace(qr, "$1") : a || n);
|
|
355
355
|
}), t;
|
|
356
356
|
});
|
|
357
|
-
function
|
|
357
|
+
function Dr(e, t) {
|
|
358
358
|
for (var n = -1, a = e == null ? 0 : e.length, i = Array(a); ++n < a; )
|
|
359
359
|
i[n] = t(e[n], n, e);
|
|
360
360
|
return i;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
function
|
|
362
|
+
var Br = 1 / 0, Gt = Ae ? Ae.prototype : void 0, Wt = Gt ? Gt.toString : void 0;
|
|
363
|
+
function zn(e) {
|
|
364
364
|
if (typeof e == "string")
|
|
365
365
|
return e;
|
|
366
366
|
if (ke(e))
|
|
367
|
-
return
|
|
367
|
+
return Dr(e, zn) + "";
|
|
368
368
|
if (pt(e))
|
|
369
369
|
return Wt ? Wt.call(e) : "";
|
|
370
370
|
var t = e + "";
|
|
371
|
-
return t == "0" && 1 / e == -
|
|
371
|
+
return t == "0" && 1 / e == -Br ? "-0" : t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return e == null ? "" :
|
|
373
|
+
function xn(e) {
|
|
374
|
+
return e == null ? "" : zn(e);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return ke(e) ? e : Xa(e, t) ? [e] : Kr(
|
|
376
|
+
function zr(e, t) {
|
|
377
|
+
return ke(e) ? e : Xa(e, t) ? [e] : Kr(xn(e));
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var xr = 1 / 0;
|
|
380
380
|
function Yr(e) {
|
|
381
381
|
if (typeof e == "string" || pt(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
|
-
return t == "0" && 1 / e == -
|
|
384
|
+
return t == "0" && 1 / e == -xr ? "-0" : t;
|
|
385
385
|
}
|
|
386
386
|
function Hr(e, t) {
|
|
387
|
-
t =
|
|
387
|
+
t = zr(t, e);
|
|
388
388
|
for (var n = 0, a = t.length; e != null && n < a; )
|
|
389
389
|
e = e[Yr(t[n++])];
|
|
390
390
|
return n && n == a ? e : void 0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function z(e, t, n) {
|
|
393
393
|
var a = e == null ? void 0 : Hr(e, t);
|
|
394
394
|
return a === void 0 ? n : a;
|
|
395
395
|
}
|
|
@@ -479,7 +479,7 @@ function lo(e) {
|
|
|
479
479
|
return n;
|
|
480
480
|
}
|
|
481
481
|
function _t(e) {
|
|
482
|
-
return ft(e) ?
|
|
482
|
+
return ft(e) ? Dn(e, !0) : lo(e);
|
|
483
483
|
}
|
|
484
484
|
function uo(e, t) {
|
|
485
485
|
return e && bt(t, _t(t), e);
|
|
@@ -520,7 +520,7 @@ function Zn(e, t) {
|
|
|
520
520
|
e[i + n] = t[n];
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
523
|
-
var Jn =
|
|
523
|
+
var Jn = Bn(Object.getPrototypeOf, Object), yo = Object.getOwnPropertySymbols, Qn = yo ? function(e) {
|
|
524
524
|
for (var t = []; e; )
|
|
525
525
|
Zn(t, Nt(e)), e = Jn(e);
|
|
526
526
|
return t;
|
|
@@ -538,8 +538,8 @@ function _o(e) {
|
|
|
538
538
|
function wo(e) {
|
|
539
539
|
return Xn(e, _t, Qn);
|
|
540
540
|
}
|
|
541
|
-
var Ot = Ke(pe, "DataView"), At = Ke(pe, "Promise"),
|
|
542
|
-
(Ot && _e(new Ot(new ArrayBuffer(1))) != rn || tt && _e(new tt()) != en || At && _e(At.resolve()) != tn ||
|
|
541
|
+
var Ot = Ke(pe, "DataView"), At = Ke(pe, "Promise"), ze = Ke(pe, "Set"), Et = Ke(pe, "WeakMap"), en = "[object Map]", Mo = "[object Object]", tn = "[object Promise]", nn = "[object Set]", an = "[object WeakMap]", rn = "[object DataView]", So = qe(Ot), To = qe(tt), Co = qe(At), Io = qe(ze), Oo = qe(Et), _e = Ee;
|
|
542
|
+
(Ot && _e(new Ot(new ArrayBuffer(1))) != rn || tt && _e(new tt()) != en || At && _e(At.resolve()) != tn || ze && _e(new ze()) != nn || Et && _e(new Et()) != an) && (_e = function(e) {
|
|
543
543
|
var t = Ee(e), n = t == Mo ? e.constructor : void 0, a = n ? qe(n) : "";
|
|
544
544
|
if (a)
|
|
545
545
|
switch (a) {
|
|
@@ -583,16 +583,16 @@ function jo(e, t) {
|
|
|
583
583
|
var n = t ? Lt(e.buffer) : e.buffer;
|
|
584
584
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
585
585
|
}
|
|
586
|
-
var Ro = "[object Boolean]", Po = "[object Date]", No = "[object Map]", Lo = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]",
|
|
586
|
+
var Ro = "[object Boolean]", Po = "[object Date]", No = "[object Map]", Lo = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]", Do = "[object String]", Bo = "[object Symbol]", zo = "[object ArrayBuffer]", xo = "[object DataView]", Yo = "[object Float32Array]", Ho = "[object Float64Array]", Go = "[object Int8Array]", Wo = "[object Int16Array]", Zo = "[object Int32Array]", Jo = "[object Uint8Array]", Qo = "[object Uint8ClampedArray]", Xo = "[object Uint16Array]", es = "[object Uint32Array]";
|
|
587
587
|
function ts(e, t, n) {
|
|
588
588
|
var a = e.constructor;
|
|
589
589
|
switch (t) {
|
|
590
|
-
case
|
|
590
|
+
case zo:
|
|
591
591
|
return Lt(e);
|
|
592
592
|
case Ro:
|
|
593
593
|
case Po:
|
|
594
594
|
return new a(+e);
|
|
595
|
-
case
|
|
595
|
+
case xo:
|
|
596
596
|
return ko(e, n);
|
|
597
597
|
case Yo:
|
|
598
598
|
case Ho:
|
|
@@ -607,13 +607,13 @@ function ts(e, t, n) {
|
|
|
607
607
|
case No:
|
|
608
608
|
return new a();
|
|
609
609
|
case Lo:
|
|
610
|
-
case
|
|
610
|
+
case Do:
|
|
611
611
|
return new a(e);
|
|
612
612
|
case qo:
|
|
613
613
|
return $o(e);
|
|
614
614
|
case Ko:
|
|
615
615
|
return new a();
|
|
616
|
-
case
|
|
616
|
+
case Bo:
|
|
617
617
|
return Vo(e);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
@@ -637,13 +637,13 @@ var as = "[object Map]";
|
|
|
637
637
|
function rs(e) {
|
|
638
638
|
return Fe(e) && _e(e) == as;
|
|
639
639
|
}
|
|
640
|
-
var un =
|
|
640
|
+
var un = xe && xe.isMap, os = un ? Vt(un) : rs, ss = "[object Set]";
|
|
641
641
|
function ls(e) {
|
|
642
642
|
return Fe(e) && _e(e) == ss;
|
|
643
643
|
}
|
|
644
|
-
var cn =
|
|
645
|
-
|
|
646
|
-
|
|
644
|
+
var cn = xe && xe.isSet, ds = cn ? Vt(cn) : ls, us = 1, cs = 2, ms = 4, ei = "[object Arguments]", fs = "[object Array]", hs = "[object Boolean]", ps = "[object Date]", gs = "[object Error]", ti = "[object Function]", vs = "[object GeneratorFunction]", ys = "[object Map]", bs = "[object Number]", ni = "[object Object]", _s = "[object RegExp]", ws = "[object Set]", Ms = "[object String]", Ss = "[object Symbol]", Ts = "[object WeakMap]", Cs = "[object ArrayBuffer]", Is = "[object DataView]", Os = "[object Float32Array]", As = "[object Float64Array]", Es = "[object Int8Array]", Fs = "[object Int16Array]", ks = "[object Int32Array]", Us = "[object Uint8Array]", $s = "[object Uint8ClampedArray]", Vs = "[object Uint16Array]", js = "[object Uint32Array]", Y = {};
|
|
645
|
+
Y[ei] = Y[fs] = Y[Cs] = Y[Is] = Y[hs] = Y[ps] = Y[Os] = Y[As] = Y[Es] = Y[Fs] = Y[ks] = Y[ys] = Y[bs] = Y[ni] = Y[_s] = Y[ws] = Y[Ms] = Y[Ss] = Y[Us] = Y[$s] = Y[Vs] = Y[js] = !0;
|
|
646
|
+
Y[gs] = Y[ti] = Y[Ts] = !1;
|
|
647
647
|
function Qe(e, t, n, a, i, r) {
|
|
648
648
|
var s, o = t & us, d = t & cs, l = t & ms;
|
|
649
649
|
if (s !== void 0)
|
|
@@ -662,23 +662,23 @@ function Qe(e, t, n, a, i, r) {
|
|
|
662
662
|
if (s = d || p ? {} : is(e), !o)
|
|
663
663
|
return d ? bo(e, uo(s, e)) : vo(e, ao(s, e));
|
|
664
664
|
} else {
|
|
665
|
-
if (!
|
|
665
|
+
if (!Y[m])
|
|
666
666
|
return i ? e : {};
|
|
667
667
|
s = ts(e, m, o);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
r || (r = new Ge());
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
671
|
+
var E = r.get(e);
|
|
672
|
+
if (E)
|
|
673
|
+
return E;
|
|
674
674
|
r.set(e, s), ds(e) ? e.forEach(function(w) {
|
|
675
675
|
s.add(Qe(w, t, n, w, e, r));
|
|
676
|
-
}) : os(e) && e.forEach(function(w,
|
|
677
|
-
s.set(
|
|
676
|
+
}) : os(e) && e.forEach(function(w, I) {
|
|
677
|
+
s.set(I, Qe(w, t, n, I, e, r));
|
|
678
678
|
});
|
|
679
679
|
var N = l ? d ? wo : _o : d ? _t : ht, f = c ? void 0 : N(e);
|
|
680
|
-
return $n(f || e, function(w,
|
|
681
|
-
f && (
|
|
680
|
+
return $n(f || e, function(w, I) {
|
|
681
|
+
f && (I = w, w = e[I]), Hn(s, I, Qe(w, t, n, I, e, r));
|
|
682
682
|
}), s;
|
|
683
683
|
}
|
|
684
684
|
var Rs = 1, Ps = 4;
|
|
@@ -695,8 +695,8 @@ const ii = {
|
|
|
695
695
|
// Get style classes of field
|
|
696
696
|
getFieldRowClasses(e) {
|
|
697
697
|
const t = this.fieldErrors(e).length > 0, n = {
|
|
698
|
-
[
|
|
699
|
-
[
|
|
698
|
+
[z(this.options, "validationErrorClass", "error")]: t,
|
|
699
|
+
[z(this.options, "validationSuccessClass", "valid")]: !t,
|
|
700
700
|
disabled: this.fieldDisabled(e),
|
|
701
701
|
readonly: this.fieldReadonly(e),
|
|
702
702
|
featured: this.fieldFeatured(e),
|
|
@@ -709,19 +709,19 @@ const ii = {
|
|
|
709
709
|
},
|
|
710
710
|
// Get disabled attr of field
|
|
711
711
|
fieldDisabled(e) {
|
|
712
|
-
return
|
|
712
|
+
return H(e.disabled) ? e.disabled.call(this, this.model, e, this) : X(e.disabled) ? !1 : e.disabled;
|
|
713
713
|
},
|
|
714
714
|
// Get readonly prop of field
|
|
715
715
|
fieldReadonly(e) {
|
|
716
|
-
return
|
|
716
|
+
return H(e.readonly) ? e.readonly.call(this, this.model, e, this) : X(e.readonly) ? !1 : e.readonly;
|
|
717
717
|
},
|
|
718
718
|
// Get featured prop of field
|
|
719
719
|
fieldFeatured(e) {
|
|
720
|
-
return
|
|
720
|
+
return H(e.featured) ? e.featured.call(this, this.model, e, this) : X(e.featured) ? !1 : e.featured;
|
|
721
721
|
},
|
|
722
722
|
// Get required prop of field
|
|
723
723
|
fieldRequired(e) {
|
|
724
|
-
return
|
|
724
|
+
return H(e.required) ? e.required.call(this, this.model, e, this) : X(e.required) ? !1 : e.required;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
@@ -734,10 +734,10 @@ function qs(e) {
|
|
|
734
734
|
return t;
|
|
735
735
|
}
|
|
736
736
|
var Ks = /^\s+/;
|
|
737
|
-
function
|
|
737
|
+
function Ds(e) {
|
|
738
738
|
return e && e.slice(0, qs(e) + 1).replace(Ks, "");
|
|
739
739
|
}
|
|
740
|
-
var fn = NaN,
|
|
740
|
+
var fn = NaN, Bs = /^[-+]0x[0-9a-f]+$/i, zs = /^0b[01]+$/i, xs = /^0o[0-7]+$/i, Ys = parseInt;
|
|
741
741
|
function Ft(e) {
|
|
742
742
|
if (typeof e == "number")
|
|
743
743
|
return e;
|
|
@@ -749,9 +749,9 @@ function Ft(e) {
|
|
|
749
749
|
}
|
|
750
750
|
if (typeof e != "string")
|
|
751
751
|
return e === 0 ? e : +e;
|
|
752
|
-
e =
|
|
753
|
-
var n =
|
|
754
|
-
return n ||
|
|
752
|
+
e = Ds(e);
|
|
753
|
+
var n = zs.test(e);
|
|
754
|
+
return n || xs.test(e) ? Ys(e.slice(2), n ? 2 : 8) : Bs.test(e) ? fn : +e;
|
|
755
755
|
}
|
|
756
756
|
var Hs = "Expected a function", Gs = Math.max, Ws = Math.min;
|
|
757
757
|
function nt(e, t, n) {
|
|
@@ -759,47 +759,47 @@ function nt(e, t, n) {
|
|
|
759
759
|
if (typeof e != "function")
|
|
760
760
|
throw new TypeError(Hs);
|
|
761
761
|
t = Ft(t) || 0, me(n) && (c = !!n.leading, m = "maxWait" in n, r = m ? Gs(Ft(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
762
|
-
function
|
|
763
|
-
var v = a,
|
|
764
|
-
return a = i = void 0, l =
|
|
762
|
+
function E(y) {
|
|
763
|
+
var v = a, P = i;
|
|
764
|
+
return a = i = void 0, l = y, s = e.apply(P, v), s;
|
|
765
765
|
}
|
|
766
|
-
function N(
|
|
767
|
-
return l =
|
|
766
|
+
function N(y) {
|
|
767
|
+
return l = y, o = setTimeout(I, t), c ? E(y) : s;
|
|
768
768
|
}
|
|
769
|
-
function f(
|
|
770
|
-
var v =
|
|
771
|
-
return m ? Ws(
|
|
769
|
+
function f(y) {
|
|
770
|
+
var v = y - d, P = y - l, q = t - v;
|
|
771
|
+
return m ? Ws(q, r - P) : q;
|
|
772
772
|
}
|
|
773
|
-
function w(
|
|
774
|
-
var v =
|
|
775
|
-
return d === void 0 || v >= t || v < 0 || m &&
|
|
773
|
+
function w(y) {
|
|
774
|
+
var v = y - d, P = y - l;
|
|
775
|
+
return d === void 0 || v >= t || v < 0 || m && P >= r;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
var
|
|
779
|
-
if (w(
|
|
780
|
-
return
|
|
781
|
-
o = setTimeout(
|
|
777
|
+
function I() {
|
|
778
|
+
var y = Tt();
|
|
779
|
+
if (w(y))
|
|
780
|
+
return F(y);
|
|
781
|
+
o = setTimeout(I, f(y));
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return o = void 0, p && a ?
|
|
783
|
+
function F(y) {
|
|
784
|
+
return o = void 0, p && a ? E(y) : (a = i = void 0, s);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function b() {
|
|
787
787
|
o !== void 0 && clearTimeout(o), l = 0, a = d = i = o = void 0;
|
|
788
788
|
}
|
|
789
|
-
function A() {
|
|
790
|
-
return o === void 0 ? s : U(Tt());
|
|
791
|
-
}
|
|
792
789
|
function k() {
|
|
793
|
-
|
|
794
|
-
|
|
790
|
+
return o === void 0 ? s : F(Tt());
|
|
791
|
+
}
|
|
792
|
+
function j() {
|
|
793
|
+
var y = Tt(), v = w(y);
|
|
794
|
+
if (a = arguments, i = this, d = y, v) {
|
|
795
795
|
if (o === void 0)
|
|
796
796
|
return N(d);
|
|
797
797
|
if (m)
|
|
798
|
-
return clearTimeout(o), o = setTimeout(
|
|
798
|
+
return clearTimeout(o), o = setTimeout(I, t), E(d);
|
|
799
799
|
}
|
|
800
|
-
return o === void 0 && (o = setTimeout(
|
|
800
|
+
return o === void 0 && (o = setTimeout(I, t)), s;
|
|
801
801
|
}
|
|
802
|
-
return
|
|
802
|
+
return j.cancel = b, j.flush = k, j;
|
|
803
803
|
}
|
|
804
804
|
var Zs = "__lodash_hash_undefined__";
|
|
805
805
|
function Js(e) {
|
|
@@ -848,8 +848,8 @@ function ai(e) {
|
|
|
848
848
|
n[++t] = a;
|
|
849
849
|
}), n;
|
|
850
850
|
}
|
|
851
|
-
var ol = 1 / 0, sl =
|
|
852
|
-
return new
|
|
851
|
+
var ol = 1 / 0, sl = ze && 1 / ai(new ze([, -0]))[1] == ol ? function(e) {
|
|
852
|
+
return new ze(e);
|
|
853
853
|
} : rl, ll = 200;
|
|
854
854
|
function dl(e, t, n) {
|
|
855
855
|
var a = -1, i = il, r = e.length, s = !0, o = [], d = o;
|
|
@@ -878,7 +878,7 @@ function ri(e) {
|
|
|
878
878
|
var ul = 0;
|
|
879
879
|
function oi(e) {
|
|
880
880
|
var t = ++ul;
|
|
881
|
-
return
|
|
881
|
+
return xn(e) + t;
|
|
882
882
|
}
|
|
883
883
|
var si = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Ce = "\\d\\d?", Te = "\\d\\d", cl = "\\d{3}", ml = "\\d{4}", Xe = "[^\\s]+", li = /\[([^]*?)\]/gm;
|
|
884
884
|
function di(e, t) {
|
|
@@ -1134,17 +1134,17 @@ function _l(e, t, n) {
|
|
|
1134
1134
|
millisecond: 0,
|
|
1135
1135
|
isPm: null,
|
|
1136
1136
|
timezoneOffset: null
|
|
1137
|
-
}, r = [], s = [], o = t.replace(li, function(
|
|
1138
|
-
return s.push(pn(
|
|
1137
|
+
}, r = [], s = [], o = t.replace(li, function(k, j) {
|
|
1138
|
+
return s.push(pn(j)), "@@@";
|
|
1139
1139
|
}), d = {}, l = {};
|
|
1140
|
-
o = pn(o).replace(si, function(
|
|
1141
|
-
var
|
|
1142
|
-
if (d[
|
|
1143
|
-
throw new Error("Invalid format. " +
|
|
1144
|
-
return d[
|
|
1145
|
-
}), Object.keys(l).forEach(function(
|
|
1146
|
-
if (!d[
|
|
1147
|
-
throw new Error("Invalid format. " +
|
|
1140
|
+
o = pn(o).replace(si, function(k) {
|
|
1141
|
+
var j = vl[k], y = j[0], v = j[1], P = j[3];
|
|
1142
|
+
if (d[y])
|
|
1143
|
+
throw new Error("Invalid format. " + y + " specified twice in format");
|
|
1144
|
+
return d[y] = !0, P && (l[P] = !0), r.push(j), "(" + v + ")";
|
|
1145
|
+
}), Object.keys(l).forEach(function(k) {
|
|
1146
|
+
if (!d[k])
|
|
1147
|
+
throw new Error("Invalid format. " + k + " is required in specified format");
|
|
1148
1148
|
}), o = o.replace(/@@@/g, function() {
|
|
1149
1149
|
return s.shift();
|
|
1150
1150
|
});
|
|
@@ -1152,29 +1152,29 @@ function _l(e, t, n) {
|
|
|
1152
1152
|
if (!c)
|
|
1153
1153
|
return null;
|
|
1154
1154
|
for (var m = Pe(Pe({}, lt), n), p = 1; p < c.length; p++) {
|
|
1155
|
-
var
|
|
1155
|
+
var E = r[p - 1], N = E[0], f = E[2], w = f ? f(c[p], m) : +c[p];
|
|
1156
1156
|
if (w == null)
|
|
1157
1157
|
return null;
|
|
1158
1158
|
i[N] = w;
|
|
1159
1159
|
}
|
|
1160
1160
|
i.isPm === 1 && i.hour != null && +i.hour != 12 ? i.hour = +i.hour + 12 : i.isPm === 0 && +i.hour == 12 && (i.hour = 0);
|
|
1161
|
-
var
|
|
1161
|
+
var I;
|
|
1162
1162
|
if (i.timezoneOffset == null) {
|
|
1163
|
-
|
|
1164
|
-
for (var
|
|
1163
|
+
I = new Date(i.year, i.month, i.day, i.hour, i.minute, i.second, i.millisecond);
|
|
1164
|
+
for (var F = [
|
|
1165
1165
|
["month", "getMonth"],
|
|
1166
1166
|
["day", "getDate"],
|
|
1167
1167
|
["hour", "getHours"],
|
|
1168
1168
|
["minute", "getMinutes"],
|
|
1169
1169
|
["second", "getSeconds"]
|
|
1170
|
-
], p = 0,
|
|
1171
|
-
if (d[
|
|
1170
|
+
], p = 0, b = F.length; p < b; p++)
|
|
1171
|
+
if (d[F[p][0]] && i[F[p][0]] !== I[F[p][1]]())
|
|
1172
1172
|
return null;
|
|
1173
|
-
} else if (
|
|
1173
|
+
} else if (I = 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)
|
|
1174
1174
|
return null;
|
|
1175
|
-
return
|
|
1175
|
+
return I;
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var Be = {
|
|
1178
1178
|
format: bl,
|
|
1179
1179
|
parse: _l,
|
|
1180
1180
|
defaultI18n: mi,
|
|
@@ -1278,7 +1278,7 @@ const Kl = {
|
|
|
1278
1278
|
packageName: "forms",
|
|
1279
1279
|
disable_global_radio: "The plugin is set to 'Scoped' by default when configured under a {scope}. To configure a global plugin, navigate to the global plugin list page.",
|
|
1280
1280
|
disable_source_scope_change: "Changing the {scope} is not allowed when configuring a plugin under it."
|
|
1281
|
-
},
|
|
1281
|
+
}, Dl = {
|
|
1282
1282
|
view_advanced_fields: "View Advanced Fields",
|
|
1283
1283
|
window_type: {
|
|
1284
1284
|
label: "Rate Limit Window Type",
|
|
@@ -1322,7 +1322,7 @@ const Kl = {
|
|
|
1322
1322
|
title: "Configure your Redis",
|
|
1323
1323
|
address_example: "e.g. localhost:6379"
|
|
1324
1324
|
}
|
|
1325
|
-
},
|
|
1325
|
+
}, Bl = {
|
|
1326
1326
|
field_is_required: "This field is required",
|
|
1327
1327
|
invalid_format: "Invalid format",
|
|
1328
1328
|
number_too_small: "The number is too small. Minimum: {0}",
|
|
@@ -1344,7 +1344,7 @@ const Kl = {
|
|
|
1344
1344
|
invalid_card_number: "Invalid card number",
|
|
1345
1345
|
invalid_text_contain_number: "Invalid text - cannot contains numbers or special characters",
|
|
1346
1346
|
invalid_tex_contain_spec: "Invalid text - cannot contains special characters"
|
|
1347
|
-
},
|
|
1347
|
+
}, zl = {
|
|
1348
1348
|
title: "Redis Configuration",
|
|
1349
1349
|
shared_configuration: {
|
|
1350
1350
|
label: "Use shared configuration",
|
|
@@ -1379,7 +1379,7 @@ const Kl = {
|
|
|
1379
1379
|
alert: "Note: For custom plugins, we cannot determine the correct Redis configuration type. Please ensure you select the appropriate option manually.",
|
|
1380
1380
|
tooltip: "To apply a shared redis configuration, the redis fields must defined as Kong plugins in plugin schema."
|
|
1381
1381
|
}
|
|
1382
|
-
},
|
|
1382
|
+
}, xl = {
|
|
1383
1383
|
labels: {
|
|
1384
1384
|
on: "On",
|
|
1385
1385
|
off: "Off"
|
|
@@ -1446,10 +1446,10 @@ const Kl = {
|
|
|
1446
1446
|
newElementButtonLabel: "+ Add"
|
|
1447
1447
|
}
|
|
1448
1448
|
},
|
|
1449
|
-
rla:
|
|
1450
|
-
validators:
|
|
1451
|
-
redis:
|
|
1452
|
-
vfg:
|
|
1449
|
+
rla: Dl,
|
|
1450
|
+
validators: Bl,
|
|
1451
|
+
redis: zl,
|
|
1452
|
+
vfg: xl
|
|
1453
1453
|
}, { t: Q } = ge("en-us", ve), oe = {
|
|
1454
1454
|
fieldIsRequired: Q("validators.field_is_required"),
|
|
1455
1455
|
invalidFormat: Q("validators.invalid_format"),
|
|
@@ -1519,11 +1519,11 @@ const Kl = {
|
|
|
1519
1519
|
return [Z(a.invalidDate)];
|
|
1520
1520
|
if (!X(t.min)) {
|
|
1521
1521
|
const s = new Date(t.min);
|
|
1522
|
-
r.valueOf() < s.valueOf() && i.push(Z(a.dateIsEarly,
|
|
1522
|
+
r.valueOf() < s.valueOf() && i.push(Z(a.dateIsEarly, Be.format(r), Be.format(s)));
|
|
1523
1523
|
}
|
|
1524
1524
|
if (!X(t.max)) {
|
|
1525
1525
|
const s = new Date(t.max);
|
|
1526
|
-
r.valueOf() > s.valueOf() && i.push(Z(a.dateIsLate,
|
|
1526
|
+
r.valueOf() > s.valueOf() && i.push(Z(a.dateIsLate, Be.format(r), Be.format(s)));
|
|
1527
1527
|
}
|
|
1528
1528
|
return i;
|
|
1529
1529
|
},
|
|
@@ -1561,15 +1561,15 @@ const Kl = {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
Object.keys(Ne).forEach((e) => {
|
|
1563
1563
|
const t = Ne[e];
|
|
1564
|
-
|
|
1564
|
+
H(t) && (t.locale = (n) => (a, i, r) => t(a, i, r, $l(n, oe)));
|
|
1565
1565
|
});
|
|
1566
1566
|
function Sn(e) {
|
|
1567
1567
|
return Re(e) ? Ne[e] != null ? Ne[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1568
1568
|
}
|
|
1569
1569
|
function Ct(e, t, n) {
|
|
1570
|
-
let a =
|
|
1570
|
+
let a = z(n.context, "schema.attributes", {});
|
|
1571
1571
|
const i = t.value || "input";
|
|
1572
|
-
Re(i) && (a =
|
|
1572
|
+
Re(i) && (a = z(a, i) || a), le(a, (r, s) => {
|
|
1573
1573
|
e.setAttribute(s, r);
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
@@ -1596,18 +1596,18 @@ const ye = {
|
|
|
1596
1596
|
cache: !1,
|
|
1597
1597
|
get() {
|
|
1598
1598
|
let e;
|
|
1599
|
-
return
|
|
1599
|
+
return H(z(this.schema, "get")) ? e = this.schema.get(this.model) : e = z(this.model, this.schema.model), this.formatValueToField(e);
|
|
1600
1600
|
},
|
|
1601
1601
|
set(e) {
|
|
1602
1602
|
const t = this.value;
|
|
1603
|
-
e = this.formatValueToModel(e),
|
|
1603
|
+
e = this.formatValueToModel(e), H(e) ? e(e, t) : this.updateModelValue(e, t);
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
1606
|
},
|
|
1607
1607
|
methods: {
|
|
1608
1608
|
validate(e) {
|
|
1609
1609
|
this.clearValidationErrors();
|
|
1610
|
-
const t =
|
|
1610
|
+
const t = z(this.formOptions, "validateAsync", !1);
|
|
1611
1611
|
let n = [];
|
|
1612
1612
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
1613
1613
|
const i = [];
|
|
@@ -1618,7 +1618,7 @@ const ye = {
|
|
|
1618
1618
|
n.push(r(this.value, this.schema, this.model));
|
|
1619
1619
|
else {
|
|
1620
1620
|
const s = r(this.value, this.schema, this.model);
|
|
1621
|
-
s &&
|
|
1621
|
+
s && H(s.then) ? s.then((o) => {
|
|
1622
1622
|
o && (this.errors = this.errors.concat(o));
|
|
1623
1623
|
const d = this.errors.length === 0;
|
|
1624
1624
|
this.$emit("validated", d, this.errors, this);
|
|
@@ -1630,21 +1630,21 @@ const ye = {
|
|
|
1630
1630
|
let r = [];
|
|
1631
1631
|
le(ri(i), (o) => {
|
|
1632
1632
|
Array.isArray(o) && o.length > 0 ? r = r.concat(o) : Re(o) && r.push(o);
|
|
1633
|
-
}),
|
|
1633
|
+
}), H(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, r, this.schema);
|
|
1634
1634
|
const s = r.length === 0;
|
|
1635
1635
|
return e || this.$emit("validated", s, r, this), this.errors = r, r;
|
|
1636
1636
|
};
|
|
1637
1637
|
return t ? Promise.all(n).then(a) : a(n);
|
|
1638
1638
|
},
|
|
1639
1639
|
debouncedValidate() {
|
|
1640
|
-
|
|
1640
|
+
H(this.debouncedValidateFunc) || (this.debouncedValidateFunc = nt(
|
|
1641
1641
|
this.validate.bind(this),
|
|
1642
|
-
|
|
1642
|
+
z(this.schema, "validateDebounceTime", z(this.formOptions, "validateDebounceTime", 500))
|
|
1643
1643
|
)), this.debouncedValidateFunc();
|
|
1644
1644
|
},
|
|
1645
1645
|
updateModelValue(e, t) {
|
|
1646
1646
|
let n = !1;
|
|
1647
|
-
|
|
1647
|
+
H(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), H(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), z(this.formOptions, "validateAfterChanged", !1) === !0 && (z(this.schema, "validateDebounceTime", z(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
|
|
1648
1648
|
},
|
|
1649
1649
|
clearValidationErrors() {
|
|
1650
1650
|
this.errors.splice(0);
|
|
@@ -1668,14 +1668,14 @@ const ye = {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
},
|
|
1670
1670
|
getFieldID(e, t = !1) {
|
|
1671
|
-
const n =
|
|
1671
|
+
const n = z(this.formOptions, "fieldIdPrefix", "");
|
|
1672
1672
|
return qt(e, n) + (t ? "-" + oi() : "");
|
|
1673
1673
|
},
|
|
1674
1674
|
getLabelId(e) {
|
|
1675
1675
|
return `${this.getFieldID(e)}-label`;
|
|
1676
1676
|
},
|
|
1677
1677
|
getFieldClasses() {
|
|
1678
|
-
return
|
|
1678
|
+
return z(this.schema, "fieldClasses", []);
|
|
1679
1679
|
},
|
|
1680
1680
|
formatValueToField(e) {
|
|
1681
1681
|
return e;
|
|
@@ -1731,13 +1731,13 @@ function Wl(e, t, n, a, i, r) {
|
|
|
1731
1731
|
type: "button",
|
|
1732
1732
|
onClick: t[0] || (t[0] = (...o) => r.handleOpen && r.handleOpen(...o))
|
|
1733
1733
|
}, [
|
|
1734
|
-
h("i", Gl,
|
|
1735
|
-
h("span", null,
|
|
1734
|
+
h("i", Gl, U(i.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
1735
|
+
h("span", null, U(r.titleText), 1)
|
|
1736
1736
|
]),
|
|
1737
1737
|
h("div", {
|
|
1738
1738
|
class: W(["advanced-field-dropdown", r.openClass])
|
|
1739
1739
|
}, [
|
|
1740
|
-
|
|
1740
|
+
T(s, {
|
|
1741
1741
|
model: e.model,
|
|
1742
1742
|
options: { helpAsHtml: !0 },
|
|
1743
1743
|
schema: e.schema,
|
|
@@ -1767,19 +1767,19 @@ const Zl = /* @__PURE__ */ x(Yl, [["render", Wl], ["__scopeId", "data-v-acfccff7
|
|
|
1767
1767
|
return it("vfg-array-item-index", e.index), (n, a) => {
|
|
1768
1768
|
const i = O("KCard"), r = O("KButton");
|
|
1769
1769
|
return u(), g("div", Jl, [
|
|
1770
|
-
|
|
1771
|
-
default:
|
|
1770
|
+
T(i, { class: "card" }, {
|
|
1771
|
+
default: C(() => [
|
|
1772
1772
|
Oe(n.$slots, "default", {}, void 0, !0)
|
|
1773
1773
|
]),
|
|
1774
1774
|
_: 3
|
|
1775
1775
|
}),
|
|
1776
|
-
|
|
1776
|
+
T(r, {
|
|
1777
1777
|
appearance: "tertiary",
|
|
1778
1778
|
class: "array-card-remove-button",
|
|
1779
1779
|
onClick: a[0] || (a[0] = (s) => n.$emit("remove-item"))
|
|
1780
1780
|
}, {
|
|
1781
|
-
default:
|
|
1782
|
-
|
|
1781
|
+
default: C(() => [
|
|
1782
|
+
T(M(at))
|
|
1783
1783
|
]),
|
|
1784
1784
|
_: 1
|
|
1785
1785
|
})
|
|
@@ -1801,13 +1801,13 @@ const Zl = /* @__PURE__ */ x(Yl, [["render", Wl], ["__scopeId", "data-v-acfccff7
|
|
|
1801
1801
|
return u(), g("div", Xl, [
|
|
1802
1802
|
h("div", ed, [
|
|
1803
1803
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1804
|
-
|
|
1804
|
+
T(a, {
|
|
1805
1805
|
appearance: "tertiary",
|
|
1806
1806
|
class: "delete",
|
|
1807
1807
|
onClick: n[0] || (n[0] = (i) => t.$emit("remove-item"))
|
|
1808
1808
|
}, {
|
|
1809
|
-
default:
|
|
1810
|
-
|
|
1809
|
+
default: C(() => [
|
|
1810
|
+
T(M(at))
|
|
1811
1811
|
]),
|
|
1812
1812
|
_: 1
|
|
1813
1813
|
})
|
|
@@ -1826,12 +1826,12 @@ const Zl = /* @__PURE__ */ x(Yl, [["render", Wl], ["__scopeId", "data-v-acfccff7
|
|
|
1826
1826
|
const a = O("KButton");
|
|
1827
1827
|
return u(), g("div", id, [
|
|
1828
1828
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1829
|
-
|
|
1829
|
+
T(a, {
|
|
1830
1830
|
appearance: "danger",
|
|
1831
1831
|
class: "delete",
|
|
1832
1832
|
onClick: n[0] || (n[0] = (i) => t.$emit("remove-item"))
|
|
1833
1833
|
}, {
|
|
1834
|
-
default:
|
|
1834
|
+
default: C(() => n[1] || (n[1] = [
|
|
1835
1835
|
ee(" - Remove Field ")
|
|
1836
1836
|
])),
|
|
1837
1837
|
_: 1
|
|
@@ -1977,13 +1977,13 @@ const ld = {
|
|
|
1977
1977
|
}, dd = ["data-testid", "data-testlabel"], ud = ["data-testid"], cd = { class: "autosuggest__results_message" };
|
|
1978
1978
|
function md(e, t, n, a, i, r) {
|
|
1979
1979
|
const s = O("KSelect");
|
|
1980
|
-
return u(),
|
|
1980
|
+
return u(), A(ne(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
1981
1981
|
class: "field-wrap autosuggest",
|
|
1982
1982
|
"max-width": "300",
|
|
1983
1983
|
text: a.t("general.disable_source_scope_change", { scope: r.scope })
|
|
1984
1984
|
}, {
|
|
1985
|
-
default:
|
|
1986
|
-
|
|
1985
|
+
default: C(() => [
|
|
1986
|
+
T(s, {
|
|
1987
1987
|
id: e.schema.model,
|
|
1988
1988
|
ref: "suggestion",
|
|
1989
1989
|
modelValue: i.idValue,
|
|
@@ -1999,21 +1999,21 @@ function md(e, t, n, a, i, r) {
|
|
|
1999
1999
|
onChange: r.onSelected,
|
|
2000
2000
|
onQueryChange: r.onQueryChange
|
|
2001
2001
|
}, {
|
|
2002
|
-
"item-template":
|
|
2002
|
+
"item-template": C(({ item: o }) => [
|
|
2003
2003
|
h("span", {
|
|
2004
2004
|
class: "first-part",
|
|
2005
2005
|
"data-testid": o.id && `${o.id}-0`,
|
|
2006
2006
|
"data-testlabel": o.label
|
|
2007
|
-
},
|
|
2008
|
-
(u(!0), g(
|
|
2007
|
+
}, U(r.getSuggestionLabel(o).split(" - ")[0]), 9, dd),
|
|
2008
|
+
(u(!0), g(D, null, J(r.getSuggestionLabel(o).split(" - ").slice(1), (d, l) => (u(), g("span", {
|
|
2009
2009
|
key: l,
|
|
2010
2010
|
class: "field-span",
|
|
2011
2011
|
"data-testid": o.id && `${o.id}-${l + 1}` || l + 1
|
|
2012
|
-
},
|
|
2012
|
+
}, U(d), 9, ud))), 128))
|
|
2013
2013
|
]),
|
|
2014
|
-
empty:
|
|
2014
|
+
empty: C(() => [
|
|
2015
2015
|
h("div", cd, [
|
|
2016
|
-
h("span", null,
|
|
2016
|
+
h("span", null, U(i.message), 1)
|
|
2017
2017
|
])
|
|
2018
2018
|
]),
|
|
2019
2019
|
_: 1
|
|
@@ -2026,80 +2026,80 @@ const vi = /* @__PURE__ */ x(ld, [["render", md], ["__scopeId", "data-v-40a272a2
|
|
|
2026
2026
|
function fd(e) {
|
|
2027
2027
|
const t = ue([]), n = ue(null), a = (f) => Re(f) ? Ne[f] != null ? Ne[f] : (console.warn(`'${f}' is not a validator function!`), null) : f, i = L({
|
|
2028
2028
|
get() {
|
|
2029
|
-
var w,
|
|
2029
|
+
var w, I;
|
|
2030
2030
|
let f;
|
|
2031
|
-
return
|
|
2031
|
+
return H(z(e.schema, "get")) ? f = e.schema.get((w = e.model) == null ? void 0 : w.value) : f = z((I = e.model) == null ? void 0 : I.value, e.schema.model), E(f);
|
|
2032
2032
|
},
|
|
2033
2033
|
set(f) {
|
|
2034
2034
|
const w = i;
|
|
2035
|
-
f = N(f),
|
|
2035
|
+
f = N(f), H(f) ? f(f, w) : o(f, w);
|
|
2036
2036
|
}
|
|
2037
2037
|
}), r = (f) => {
|
|
2038
|
-
var
|
|
2038
|
+
var k;
|
|
2039
2039
|
d();
|
|
2040
|
-
const w =
|
|
2041
|
-
let
|
|
2042
|
-
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
}) :
|
|
2047
|
-
var v,
|
|
2048
|
-
if (
|
|
2049
|
-
|
|
2040
|
+
const w = (k = e.schema) == null ? void 0 : k.validator, I = z(e.formOptions, "validateAsync", !1);
|
|
2041
|
+
let F = [];
|
|
2042
|
+
if (w && e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2043
|
+
const j = [];
|
|
2044
|
+
Array.isArray(w) ? le(w, (y) => {
|
|
2045
|
+
j.push(a(y));
|
|
2046
|
+
}) : j.push(a(w)), le(j, (y) => {
|
|
2047
|
+
var v, P;
|
|
2048
|
+
if (I)
|
|
2049
|
+
F.push(y(i.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
2050
2050
|
else {
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2053
|
-
|
|
2051
|
+
const q = y(i.value, e.schema, (P = e.model) == null ? void 0 : P.value);
|
|
2052
|
+
q && H(q.then) ? q.then((_) => {
|
|
2053
|
+
_ && (t.value = t.value.concat(_));
|
|
2054
2054
|
const S = t.value.length === 0;
|
|
2055
2055
|
e.emitValidated && e.emitValidated({ isValid: S, errors: t.value, field: e.schema });
|
|
2056
|
-
}) :
|
|
2056
|
+
}) : q && (F = F.concat(q));
|
|
2057
2057
|
}
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2061
|
-
var
|
|
2062
|
-
let
|
|
2063
|
-
if (le(ri(
|
|
2064
|
-
Array.isArray(
|
|
2065
|
-
}),
|
|
2066
|
-
const
|
|
2067
|
-
e.emitValidated && e.emitValidated({ isValid:
|
|
2060
|
+
const b = (j) => {
|
|
2061
|
+
var v, P;
|
|
2062
|
+
let y = [];
|
|
2063
|
+
if (le(ri(j), (q) => {
|
|
2064
|
+
Array.isArray(q) && q.length > 0 ? y = y.concat(q) : Re(q) && y.push(q);
|
|
2065
|
+
}), H((v = e.schema) == null ? void 0 : v.onValidated) && e.schema.onValidated((P = e.model) == null ? void 0 : P.value, y, e.schema), !f) {
|
|
2066
|
+
const q = y.length === 0;
|
|
2067
|
+
e.emitValidated && e.emitValidated({ isValid: q, errors: y, field: e.schema });
|
|
2068
2068
|
}
|
|
2069
|
-
return
|
|
2069
|
+
return j = y, y;
|
|
2070
2070
|
};
|
|
2071
|
-
return
|
|
2071
|
+
return I ? Promise.all(F).then(b) : b(F);
|
|
2072
2072
|
}, s = () => {
|
|
2073
|
-
|
|
2073
|
+
H(n.value) ? n.value() : n.value = nt(
|
|
2074
2074
|
r,
|
|
2075
|
-
|
|
2075
|
+
z(e.schema, "validateDebounceTime", z(e.formOptions, "validateDebounceTime", 500))
|
|
2076
2076
|
);
|
|
2077
2077
|
}, o = (f, w) => {
|
|
2078
|
-
var
|
|
2079
|
-
let
|
|
2080
|
-
|
|
2078
|
+
var F, b, k;
|
|
2079
|
+
let I = !1;
|
|
2080
|
+
H(e.schema.set) ? (e.schema.set((F = e.model) == null ? void 0 : F.value, f), I = !0) : e.schema.model && (l(e.schema.model, f), I = !0), I && (e.emitModelUpdated && ((b = e.model) != null && b.value) && e.emitModelUpdated({ value: f, model: e.schema.model }), H(e.schema.onChanged) && e.schema.onChanged((k = e.model) == null ? void 0 : k.value, f, w, e.schema), z(e.formOptions, "validateAfterChanged", !1) === !0 && (z(e.schema, "validateDebounceTime", z(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : r()));
|
|
2081
2081
|
}, d = () => {
|
|
2082
2082
|
t.value.splice(0);
|
|
2083
2083
|
}, l = (f, w) => {
|
|
2084
|
-
var
|
|
2085
|
-
let
|
|
2086
|
-
|
|
2087
|
-
let
|
|
2088
|
-
const
|
|
2089
|
-
for (;
|
|
2090
|
-
const v =
|
|
2091
|
-
if (
|
|
2092
|
-
|
|
2084
|
+
var y;
|
|
2085
|
+
let I = f.replace(/\[(\w+)\]/g, ".$1");
|
|
2086
|
+
I = I.replace(/^\./, "");
|
|
2087
|
+
let F = ((y = e.model) == null ? void 0 : y.value) || {}, b = 0;
|
|
2088
|
+
const k = I.split("."), j = k.length;
|
|
2089
|
+
for (; b < j; ) {
|
|
2090
|
+
const v = k[b];
|
|
2091
|
+
if (b < j - 1)
|
|
2092
|
+
F[v] !== void 0 || (F[v] = {}), F = F[v];
|
|
2093
2093
|
else {
|
|
2094
|
-
|
|
2094
|
+
F[v] = w;
|
|
2095
2095
|
return;
|
|
2096
2096
|
}
|
|
2097
|
-
++
|
|
2097
|
+
++b;
|
|
2098
2098
|
}
|
|
2099
2099
|
}, c = (f, w = !1) => {
|
|
2100
|
-
const
|
|
2101
|
-
return qt(f,
|
|
2102
|
-
}, m = (f) => `${c(f)}-label`, p = () =>
|
|
2100
|
+
const I = z(e.formOptions, "fieldIdPrefix", "");
|
|
2101
|
+
return qt(f, I) + (w ? "-" + oi() : "");
|
|
2102
|
+
}, m = (f) => `${c(f)}-label`, p = () => z(e.schema, "fieldClasses", []), E = (f) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(f) : f, N = (f) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(f) : f;
|
|
2103
2103
|
return {
|
|
2104
2104
|
value: i,
|
|
2105
2105
|
clearValidationErrors: d,
|
|
@@ -2193,59 +2193,59 @@ const be = {
|
|
|
2193
2193
|
model: r.model,
|
|
2194
2194
|
schema: a.schema,
|
|
2195
2195
|
formOptions: a.formOptions,
|
|
2196
|
-
emitModelUpdated: (
|
|
2197
|
-
i("modelUpdated",
|
|
2196
|
+
emitModelUpdated: (b) => {
|
|
2197
|
+
i("modelUpdated", b.value, b.model);
|
|
2198
2198
|
}
|
|
2199
2199
|
});
|
|
2200
2200
|
t({
|
|
2201
2201
|
clearValidationErrors: l
|
|
2202
2202
|
});
|
|
2203
2203
|
const m = L(() => {
|
|
2204
|
-
var
|
|
2205
|
-
const
|
|
2206
|
-
switch (
|
|
2204
|
+
var k;
|
|
2205
|
+
const b = (k = a.schema) == null ? void 0 : k.inputType.toLowerCase();
|
|
2206
|
+
switch (b) {
|
|
2207
2207
|
case "string":
|
|
2208
2208
|
return "text";
|
|
2209
2209
|
case "datetime":
|
|
2210
2210
|
return "datetime-local";
|
|
2211
2211
|
default:
|
|
2212
|
-
return
|
|
2212
|
+
return b || "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
|
-
},
|
|
2219
|
-
var
|
|
2220
|
-
let
|
|
2221
|
-
const
|
|
2222
|
-
v && ((
|
|
2223
|
-
}, N = (
|
|
2224
|
-
ut(
|
|
2225
|
-
}, f = (
|
|
2226
|
-
let
|
|
2218
|
+
}, E = (b, k) => {
|
|
2219
|
+
var P, q;
|
|
2220
|
+
let j = b;
|
|
2221
|
+
const y = p[m.value] || "", v = Be.parse(b, y);
|
|
2222
|
+
v && ((P = a.schema) != null && P.format ? j = Be.format(v, (q = a.schema) == null ? void 0 : q.format) : j = v.valueOf()), o(j, k);
|
|
2223
|
+
}, N = (b, k) => {
|
|
2224
|
+
ut(b) || (b = NaN), o(b, k);
|
|
2225
|
+
}, f = (b) => {
|
|
2226
|
+
let k = b;
|
|
2227
2227
|
switch (m.value) {
|
|
2228
2228
|
case "number":
|
|
2229
2229
|
case "range":
|
|
2230
|
-
ut(parseFloat(
|
|
2230
|
+
ut(parseFloat(b)) && (k = parseFloat(b));
|
|
2231
2231
|
break;
|
|
2232
2232
|
}
|
|
2233
|
-
c.value =
|
|
2234
|
-
}, w = (
|
|
2235
|
-
c.value =
|
|
2236
|
-
},
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2233
|
+
c.value = k, o(k, b);
|
|
2234
|
+
}, w = (b) => {
|
|
2235
|
+
c.value = b, o(b, b);
|
|
2236
|
+
}, I = ue(null), F = () => {
|
|
2237
|
+
var b;
|
|
2238
|
+
H(I.value) && ((b = I.value) == null || b.flush());
|
|
2239
2239
|
};
|
|
2240
2240
|
return En(() => {
|
|
2241
2241
|
switch (m.value) {
|
|
2242
2242
|
case "number":
|
|
2243
2243
|
case "range":
|
|
2244
|
-
|
|
2245
|
-
(
|
|
2246
|
-
N(
|
|
2244
|
+
I.value = nt(
|
|
2245
|
+
(b, k) => {
|
|
2246
|
+
N(b, k);
|
|
2247
2247
|
},
|
|
2248
|
-
parseInt(
|
|
2248
|
+
parseInt(z(a.schema, "debounceFormatTimeout", 1e3)),
|
|
2249
2249
|
{
|
|
2250
2250
|
trailing: !0,
|
|
2251
2251
|
leading: !1
|
|
@@ -2255,11 +2255,11 @@ const be = {
|
|
|
2255
2255
|
case "date":
|
|
2256
2256
|
case "datetime":
|
|
2257
2257
|
case "datetime-local":
|
|
2258
|
-
|
|
2259
|
-
(
|
|
2260
|
-
|
|
2258
|
+
I.value = nt(
|
|
2259
|
+
(b, k) => {
|
|
2260
|
+
E(b, k);
|
|
2261
2261
|
},
|
|
2262
|
-
parseInt(
|
|
2262
|
+
parseInt(z(a.schema, "debounceFormatTimeout", 1e3)),
|
|
2263
2263
|
{
|
|
2264
2264
|
trailing: !0,
|
|
2265
2265
|
leading: !1
|
|
@@ -2269,10 +2269,10 @@ const be = {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
}), kt(() => {
|
|
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
|
+
}), (b, k) => {
|
|
2273
|
+
const j = O("KInput");
|
|
2274
2274
|
return u(), g("div", gd, [
|
|
2275
|
-
|
|
2275
|
+
T(j, Ie(b.$attrs, {
|
|
2276
2276
|
id: M(d)(e.schema),
|
|
2277
2277
|
autocomplete: e.schema.autocomplete,
|
|
2278
2278
|
class: e.schema.fieldClasses,
|
|
@@ -2291,10 +2291,10 @@ const be = {
|
|
|
2291
2291
|
"show-password-mask-toggle": m.value === "password",
|
|
2292
2292
|
type: m.value,
|
|
2293
2293
|
width: e.schema.width,
|
|
2294
|
-
onBlur:
|
|
2294
|
+
onBlur: F,
|
|
2295
2295
|
"onUpdate:modelValue": f
|
|
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
|
-
(u(),
|
|
2297
|
+
(u(), A(ne(M(s)), {
|
|
2298
2298
|
schema: e.schema,
|
|
2299
2299
|
update: w,
|
|
2300
2300
|
value: M(c)
|
|
@@ -2325,24 +2325,24 @@ function _d(e, t, n, a, i, r) {
|
|
|
2325
2325
|
class: "title",
|
|
2326
2326
|
onClick: t[0] || (t[0] = (l) => i.contentVisible = !i.contentVisible)
|
|
2327
2327
|
}, [
|
|
2328
|
-
ee(
|
|
2329
|
-
|
|
2328
|
+
ee(U(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
2329
|
+
T(s, { class: "metric-add-icon" })
|
|
2330
2330
|
]),
|
|
2331
|
-
|
|
2332
|
-
default:
|
|
2331
|
+
T(Oi, { name: "slide-fade" }, {
|
|
2332
|
+
default: C(() => [
|
|
2333
2333
|
i.contentVisible ? (u(), g("div", bd, [
|
|
2334
2334
|
Oe(e.$slots, "default"),
|
|
2335
|
-
|
|
2335
|
+
T(d, {
|
|
2336
2336
|
appearance: "tertiary",
|
|
2337
2337
|
class: "metric-remove-button",
|
|
2338
2338
|
onClick: t[1] || (t[1] = (l) => e.$emit("remove-item"))
|
|
2339
2339
|
}, {
|
|
2340
|
-
default:
|
|
2341
|
-
|
|
2340
|
+
default: C(() => [
|
|
2341
|
+
T(o)
|
|
2342
2342
|
]),
|
|
2343
2343
|
_: 1
|
|
2344
2344
|
})
|
|
2345
|
-
])) :
|
|
2345
|
+
])) : V("", !0)
|
|
2346
2346
|
]),
|
|
2347
2347
|
_: 3
|
|
2348
2348
|
})
|
|
@@ -2389,7 +2389,7 @@ const bi = /* @__PURE__ */ x(yd, [["render", _d]]), wd = {
|
|
|
2389
2389
|
function Ud(e, t, n, a, i, r) {
|
|
2390
2390
|
const s = O("vue-form-generator"), o = Fn("attributes");
|
|
2391
2391
|
return de((u(), g("div", Md, [
|
|
2392
|
-
e.schema.schema ? (u(),
|
|
2392
|
+
e.schema.schema ? (u(), A(s, {
|
|
2393
2393
|
key: 0,
|
|
2394
2394
|
model: e.value,
|
|
2395
2395
|
options: e.formOptions,
|
|
@@ -2400,8 +2400,8 @@ function Ud(e, t, n, a, i, r) {
|
|
|
2400
2400
|
id: e.getFieldID(e.schema),
|
|
2401
2401
|
class: W(e.schema.fieldClasses)
|
|
2402
2402
|
}, [
|
|
2403
|
-
(u(!0), g(
|
|
2404
|
-
h("td", null,
|
|
2403
|
+
(u(!0), g(D, null, J(e.value, (d, l) => (u(), g("tr", { key: l }, [
|
|
2404
|
+
h("td", null, U(l), 1),
|
|
2405
2405
|
i.keyTypes[l] === "string" ? (u(), g("td", Cd, [
|
|
2406
2406
|
de(h("input", {
|
|
2407
2407
|
"onUpdate:modelValue": (c) => e.value[l] = c,
|
|
@@ -2409,7 +2409,7 @@ function Ud(e, t, n, a, i, r) {
|
|
|
2409
2409
|
}, null, 8, Id), [
|
|
2410
2410
|
[Ze, e.value[l]]
|
|
2411
2411
|
])
|
|
2412
|
-
])) :
|
|
2412
|
+
])) : V("", !0),
|
|
2413
2413
|
i.keyTypes[l] === "boolean" ? (u(), g("td", Od, [
|
|
2414
2414
|
de(h("input", {
|
|
2415
2415
|
"onUpdate:modelValue": (c) => e.value[l] = c,
|
|
@@ -2417,7 +2417,7 @@ function Ud(e, t, n, a, i, r) {
|
|
|
2417
2417
|
}, null, 8, Ad), [
|
|
2418
2418
|
[Ai, e.value[l]]
|
|
2419
2419
|
])
|
|
2420
|
-
])) :
|
|
2420
|
+
])) : V("", !0),
|
|
2421
2421
|
i.keyTypes[l] === "number" ? (u(), g("td", Ed, [
|
|
2422
2422
|
de(h("input", {
|
|
2423
2423
|
"onUpdate:modelValue": (c) => e.value[l] = c,
|
|
@@ -2425,7 +2425,7 @@ function Ud(e, t, n, a, i, r) {
|
|
|
2425
2425
|
}, null, 8, Fd), [
|
|
2426
2426
|
[Ze, e.value[l]]
|
|
2427
2427
|
])
|
|
2428
|
-
])) :
|
|
2428
|
+
])) : V("", !0),
|
|
2429
2429
|
h("td", null, [
|
|
2430
2430
|
h("input", {
|
|
2431
2431
|
type: "button",
|
|
@@ -2564,34 +2564,34 @@ const _i = /* @__PURE__ */ x(wd, [["render", Ud], ["__scopeId", "data-v-b7e3dcd7
|
|
|
2564
2564
|
}, Vd = ["id"], jd = ["data-testid"], Rd = { class: "item-wrapper" }, Pd = { class: "index-wrapper" }, Nd = { key: 0 }, Ld = { key: 1 }, qd = ["onUpdate:modelValue", "placeholder", "type", "onInput"], Kd = {
|
|
2565
2565
|
key: 0,
|
|
2566
2566
|
class: "hint"
|
|
2567
|
-
},
|
|
2567
|
+
}, Dd = { class: "input-item" }, Bd = ["placeholder"], zd = {
|
|
2568
2568
|
key: 0,
|
|
2569
2569
|
class: "hint"
|
|
2570
2570
|
};
|
|
2571
|
-
function
|
|
2571
|
+
function xd(e, t, n, a, i, r) {
|
|
2572
2572
|
const s = O("TrashIcon"), o = O("KButton"), d = O("vue-form-generator");
|
|
2573
2573
|
return u(), g("div", {
|
|
2574
2574
|
id: e.getFieldID(e.schema),
|
|
2575
2575
|
class: W(["object-advanced-wrapper", e.schema.fieldClasses])
|
|
2576
2576
|
}, [
|
|
2577
|
-
(u(!0), g(
|
|
2577
|
+
(u(!0), g(D, null, J(e.value, (l, c) => (u(), g("div", {
|
|
2578
2578
|
key: c,
|
|
2579
2579
|
"data-testid": `field-object-key-${c}`
|
|
2580
2580
|
}, [
|
|
2581
2581
|
h("div", null, [
|
|
2582
2582
|
h("div", Rd, [
|
|
2583
2583
|
h("div", Pd, [
|
|
2584
|
-
h("strong", null,
|
|
2584
|
+
h("strong", null, U(c), 1),
|
|
2585
2585
|
h("div", null, [
|
|
2586
|
-
|
|
2586
|
+
T(o, {
|
|
2587
2587
|
appearance: "tertiary",
|
|
2588
2588
|
class: "delete",
|
|
2589
2589
|
icon: "",
|
|
2590
2590
|
type: "button",
|
|
2591
2591
|
onClick: (m) => r.removeElement(c)
|
|
2592
2592
|
}, {
|
|
2593
|
-
default:
|
|
2594
|
-
|
|
2593
|
+
default: C(() => [
|
|
2594
|
+
T(s)
|
|
2595
2595
|
]),
|
|
2596
2596
|
_: 2
|
|
2597
2597
|
}, 1032, ["onClick"])
|
|
@@ -2599,7 +2599,7 @@ function zd(e, t, n, a, i, r) {
|
|
|
2599
2599
|
]),
|
|
2600
2600
|
t[1] || (t[1] = h("hr", { class: "divider" }, null, -1)),
|
|
2601
2601
|
r.subSchema ? (u(), g("div", Nd, [
|
|
2602
|
-
|
|
2602
|
+
T(d, {
|
|
2603
2603
|
model: r.transformedModel[c],
|
|
2604
2604
|
options: { helpAsHtml: !0 },
|
|
2605
2605
|
schema: r.subSchema,
|
|
@@ -2615,8 +2615,8 @@ function zd(e, t, n, a, i, r) {
|
|
|
2615
2615
|
}, null, 40, qd), [
|
|
2616
2616
|
[kn, e.value[c]]
|
|
2617
2617
|
]),
|
|
2618
|
-
e.schema.fields && e.schema.fields[0].schema.hint ? (u(), g("p", Kd,
|
|
2619
|
-
(u(),
|
|
2618
|
+
e.schema.fields && e.schema.fields[0].schema.hint ? (u(), g("p", Kd, U(e.schema.fields[0].schema.hint), 1)) : V("", !0),
|
|
2619
|
+
(u(), A(ne(r.autofillSlot), {
|
|
2620
2620
|
schema: e.schema.fields && e.schema.fields[0].schema || e.schema.values,
|
|
2621
2621
|
update: (m) => e.value[c] = m,
|
|
2622
2622
|
value: e.value[c]
|
|
@@ -2629,33 +2629,33 @@ function zd(e, t, n, a, i, r) {
|
|
|
2629
2629
|
h("div", {
|
|
2630
2630
|
class: W(["input-wrapper", { indent: r.hasObjectKeys }])
|
|
2631
2631
|
}, [
|
|
2632
|
-
h("div",
|
|
2632
|
+
h("div", Dd, [
|
|
2633
2633
|
de(h("input", {
|
|
2634
2634
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.newKeyName = l),
|
|
2635
2635
|
class: "form-control",
|
|
2636
2636
|
"data-testid": "keyname-input",
|
|
2637
2637
|
placeholder: e.schema.placeholder,
|
|
2638
2638
|
type: "text"
|
|
2639
|
-
}, null, 8,
|
|
2639
|
+
}, null, 8, Bd), [
|
|
2640
2640
|
[Ze, i.newKeyName]
|
|
2641
2641
|
]),
|
|
2642
|
-
|
|
2642
|
+
T(o, {
|
|
2643
2643
|
appearance: "tertiary",
|
|
2644
2644
|
"data-testid": "add-key",
|
|
2645
2645
|
disabled: !i.newKeyName,
|
|
2646
2646
|
onClick: r.addKey
|
|
2647
2647
|
}, {
|
|
2648
|
-
default:
|
|
2649
|
-
ee(" + Add " +
|
|
2648
|
+
default: C(() => [
|
|
2649
|
+
ee(" + Add " + U(e.schema.buttonLabel || e.schema.label), 1)
|
|
2650
2650
|
]),
|
|
2651
2651
|
_: 1
|
|
2652
2652
|
}, 8, ["disabled", "onClick"])
|
|
2653
2653
|
]),
|
|
2654
|
-
e.schema.hintText ? (u(), g("p",
|
|
2654
|
+
e.schema.hintText ? (u(), g("p", zd, U(e.schema.hintText), 1)) : V("", !0)
|
|
2655
2655
|
], 2)
|
|
2656
2656
|
], 10, Vd);
|
|
2657
2657
|
}
|
|
2658
|
-
const wi = /* @__PURE__ */ x($d, [["render",
|
|
2658
|
+
const wi = /* @__PURE__ */ x($d, [["render", xd], ["__scopeId", "data-v-9c0cacfc"]]), Yd = { class: "radio-selection-group" }, Hd = /* @__PURE__ */ re({
|
|
2659
2659
|
__name: "FieldRadio",
|
|
2660
2660
|
props: {
|
|
2661
2661
|
disabled: {
|
|
@@ -2713,16 +2713,16 @@ const wi = /* @__PURE__ */ x($d, [["render", zd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2713
2713
|
return (c, m) => {
|
|
2714
2714
|
const p = O("KRadio");
|
|
2715
2715
|
return u(), g("div", Yd, [
|
|
2716
|
-
(u(!0), g(
|
|
2716
|
+
(u(!0), g(D, null, J(e.schema.values, (E, N) => (u(), A(p, {
|
|
2717
2717
|
id: e.schema.name + "-" + N,
|
|
2718
|
-
key:
|
|
2718
|
+
key: E.value,
|
|
2719
2719
|
modelValue: M(o),
|
|
2720
2720
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => Ye(o) ? o.value = f : null),
|
|
2721
|
-
label:
|
|
2721
|
+
label: E.name,
|
|
2722
2722
|
"label-attributes": { info: e.schema.help },
|
|
2723
2723
|
name: e.schema.name,
|
|
2724
2724
|
required: e.schema.required || void 0,
|
|
2725
|
-
"selected-value":
|
|
2725
|
+
"selected-value": E.value,
|
|
2726
2726
|
onChange: l
|
|
2727
2727
|
}, null, 8, ["id", "modelValue", "label", "label-attributes", "name", "required", "selected-value"]))), 128))
|
|
2728
2728
|
]);
|
|
@@ -2785,15 +2785,15 @@ const wi = /* @__PURE__ */ x($d, [["render", zd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2785
2785
|
return p(typeof f == "function" ? f.apply(this, [a.model, a.schema]) : f);
|
|
2786
2786
|
}), p = (f) => {
|
|
2787
2787
|
const w = [];
|
|
2788
|
-
return f.forEach((
|
|
2788
|
+
return f.forEach((I) => {
|
|
2789
2789
|
w.push({
|
|
2790
|
-
label: N(
|
|
2791
|
-
value:
|
|
2792
|
-
disabled: typeof
|
|
2793
|
-
group: typeof
|
|
2790
|
+
label: N(I),
|
|
2791
|
+
value: E(I),
|
|
2792
|
+
disabled: typeof I == "object" && I.disabled || void 0,
|
|
2793
|
+
group: typeof I == "object" && String(I.group || "").toUpperCase() || void 0
|
|
2794
2794
|
});
|
|
2795
2795
|
}), w;
|
|
2796
|
-
},
|
|
2796
|
+
}, E = (f) => {
|
|
2797
2797
|
if (me(f)) {
|
|
2798
2798
|
if (r.value && typeof r.value.value < "u")
|
|
2799
2799
|
return f[r.value.value];
|
|
@@ -2813,11 +2813,11 @@ const wi = /* @__PURE__ */ x($d, [["render", zd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2813
2813
|
return String(f);
|
|
2814
2814
|
};
|
|
2815
2815
|
return (f, w) => {
|
|
2816
|
-
const
|
|
2817
|
-
return u(),
|
|
2816
|
+
const I = O("KSelect");
|
|
2817
|
+
return u(), A(I, {
|
|
2818
2818
|
id: M(d)(e.schema),
|
|
2819
2819
|
modelValue: M(c),
|
|
2820
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
2820
|
+
"onUpdate:modelValue": w[0] || (w[0] = (F) => Ye(c) ? c.value = F : null),
|
|
2821
2821
|
class: W(e.schema.fieldClasses),
|
|
2822
2822
|
clearable: !e.schema.required,
|
|
2823
2823
|
disabled: e.disabled || void 0,
|
|
@@ -2884,8 +2884,8 @@ const wi = /* @__PURE__ */ x($d, [["render", zd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2884
2884
|
removeElement(e) {
|
|
2885
2885
|
this.value = this.value.filter((t, n) => n !== e);
|
|
2886
2886
|
},
|
|
2887
|
-
|
|
2888
|
-
return
|
|
2887
|
+
getFieldType(e) {
|
|
2888
|
+
return "field-" + e.type;
|
|
2889
2889
|
},
|
|
2890
2890
|
modelUpdated() {
|
|
2891
2891
|
this.$emit("refreshModel");
|
|
@@ -2904,19 +2904,19 @@ function Xd(e, t, n, a, i, r) {
|
|
|
2904
2904
|
id: e.getFieldID(e.schema),
|
|
2905
2905
|
class: W(e.schema.fieldClasses)
|
|
2906
2906
|
}, [
|
|
2907
|
-
(u(!0), g(
|
|
2907
|
+
(u(!0), g(D, null, J(e.value, (l, c) => (u(), g("div", {
|
|
2908
2908
|
key: c,
|
|
2909
2909
|
class: W(e.schema.fieldItemsClasses)
|
|
2910
2910
|
}, [
|
|
2911
|
-
e.schema.items && e.schema.itemContainerComponent ? (u(),
|
|
2911
|
+
e.schema.items && e.schema.itemContainerComponent ? (u(), A(ne(e.schema.itemContainerComponent), {
|
|
2912
2912
|
key: 0,
|
|
2913
2913
|
index: c,
|
|
2914
2914
|
model: l,
|
|
2915
2915
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
2916
2916
|
onRemoveItem: (m) => r.removeElement(c)
|
|
2917
2917
|
}, {
|
|
2918
|
-
default:
|
|
2919
|
-
(u(),
|
|
2918
|
+
default: C(() => [
|
|
2919
|
+
(u(), A(ne(r.getFieldType(e.schema.items)), {
|
|
2920
2920
|
"form-options": e.formOptions,
|
|
2921
2921
|
model: l,
|
|
2922
2922
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
@@ -2925,30 +2925,30 @@ function Xd(e, t, n, a, i, r) {
|
|
|
2925
2925
|
]),
|
|
2926
2926
|
_: 2
|
|
2927
2927
|
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (u(), g("span", Zd, [
|
|
2928
|
-
(u(),
|
|
2928
|
+
(u(), A(ne(r.getFieldType(e.schema.items)), {
|
|
2929
2929
|
"form-options": e.formOptions,
|
|
2930
2930
|
model: l,
|
|
2931
2931
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
2932
2932
|
onModelUpdated: r.modelUpdated
|
|
2933
2933
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
2934
|
-
])) : e.schema.itemContainerComponent ? (u(),
|
|
2934
|
+
])) : e.schema.itemContainerComponent ? (u(), A(ne(e.schema.itemContainerComponent), {
|
|
2935
2935
|
key: 2,
|
|
2936
2936
|
"data-testid": `${e.getFieldID(e.schema)}-item-${c}`,
|
|
2937
2937
|
model: l,
|
|
2938
2938
|
schema: r.generateSchema(e.value, e.schema.items, c),
|
|
2939
2939
|
onRemoveItem: (m) => r.removeElement(c)
|
|
2940
2940
|
}, {
|
|
2941
|
-
after:
|
|
2942
|
-
(u(),
|
|
2941
|
+
after: C(() => [
|
|
2942
|
+
(u(), A(ne(r.autofillSlot), {
|
|
2943
2943
|
schema: e.schema,
|
|
2944
2944
|
update: (m) => e.value[c] = m,
|
|
2945
2945
|
value: e.value[c]
|
|
2946
2946
|
}, null, 8, ["schema", "update", "value"]))
|
|
2947
2947
|
]),
|
|
2948
|
-
default:
|
|
2948
|
+
default: C(() => {
|
|
2949
2949
|
var m;
|
|
2950
2950
|
return [
|
|
2951
|
-
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (u(),
|
|
2951
|
+
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (u(), A(s, Ie({
|
|
2952
2952
|
key: 0,
|
|
2953
2953
|
ref_for: !0
|
|
2954
2954
|
}, e.schema.inputAttributes, {
|
|
@@ -2967,7 +2967,7 @@ function Xd(e, t, n, a, i, r) {
|
|
|
2967
2967
|
required: e.schema.required,
|
|
2968
2968
|
resizable: "",
|
|
2969
2969
|
rows: e.schema.rows || 3
|
|
2970
|
-
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (u(),
|
|
2970
|
+
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "character-limit", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (u(), A(o, Ie({
|
|
2971
2971
|
key: 1,
|
|
2972
2972
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
2973
2973
|
ref_for: !0
|
|
@@ -2990,7 +2990,7 @@ function Xd(e, t, n, a, i, r) {
|
|
|
2990
2990
|
];
|
|
2991
2991
|
}),
|
|
2992
2992
|
_: 2
|
|
2993
|
-
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (u(), g(
|
|
2993
|
+
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (u(), g(D, { key: 3 }, [
|
|
2994
2994
|
de(h("input", Ie({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
2995
2995
|
"onUpdate:modelValue": (m) => e.value[c] = m,
|
|
2996
2996
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
@@ -2998,28 +2998,28 @@ function Xd(e, t, n, a, i, r) {
|
|
|
2998
2998
|
}), null, 16, Qd), [
|
|
2999
2999
|
[Ze, e.value[c]]
|
|
3000
3000
|
]),
|
|
3001
|
-
(u(),
|
|
3001
|
+
(u(), A(ne(r.autofillSlot), {
|
|
3002
3002
|
schema: e.schema,
|
|
3003
3003
|
update: (m) => e.value[c] = m,
|
|
3004
3004
|
value: e.value[c]
|
|
3005
3005
|
}, null, 8, ["schema", "update", "value"]))
|
|
3006
3006
|
], 64))
|
|
3007
3007
|
], 2))), 128)),
|
|
3008
|
-
|
|
3008
|
+
T(d, {
|
|
3009
3009
|
appearance: "tertiary",
|
|
3010
3010
|
class: W(e.schema.newElementButtonLabelClasses),
|
|
3011
3011
|
"data-testid": `add-${e.getFieldID(e.schema)}`,
|
|
3012
3012
|
type: "button",
|
|
3013
3013
|
onClick: r.newElement
|
|
3014
3014
|
}, {
|
|
3015
|
-
default:
|
|
3016
|
-
ee(
|
|
3015
|
+
default: C(() => [
|
|
3016
|
+
ee(U(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
3017
3017
|
]),
|
|
3018
3018
|
_: 1
|
|
3019
3019
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3020
|
-
], 10, Wd)) :
|
|
3020
|
+
], 10, Wd)) : V("", !0);
|
|
3021
3021
|
}
|
|
3022
|
-
const eu = /* @__PURE__ */ x(Gd, [["render", Xd], ["__scopeId", "data-v-
|
|
3022
|
+
const eu = /* @__PURE__ */ x(Gd, [["render", Xd], ["__scopeId", "data-v-1089abe7"]]), tu = { class: "form-field-wrapper field-checkbox" }, nu = /* @__PURE__ */ re({
|
|
3023
3023
|
__name: "FieldCheckbox",
|
|
3024
3024
|
props: {
|
|
3025
3025
|
disabled: {
|
|
@@ -3072,7 +3072,7 @@ const eu = /* @__PURE__ */ x(Gd, [["render", Xd], ["__scopeId", "data-v-27efd618
|
|
|
3072
3072
|
}), (l, c) => {
|
|
3073
3073
|
const m = O("KCheckbox");
|
|
3074
3074
|
return u(), g("div", tu, [
|
|
3075
|
-
|
|
3075
|
+
T(m, Ie(l.$attrs, {
|
|
3076
3076
|
id: M(s)(e.schema),
|
|
3077
3077
|
modelValue: M(o),
|
|
3078
3078
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ye(o) ? o.value = p : null),
|
|
@@ -3102,7 +3102,7 @@ function mu(e, t, n, a, i, r) {
|
|
|
3102
3102
|
class: "listbox form-control",
|
|
3103
3103
|
disabled: e.disabled || null
|
|
3104
3104
|
}, [
|
|
3105
|
-
(u(!0), g(
|
|
3105
|
+
(u(!0), g(D, null, J(r.items, (o) => (u(), g("div", {
|
|
3106
3106
|
class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
|
|
3107
3107
|
}, [
|
|
3108
3108
|
h("label", null, [
|
|
@@ -3116,11 +3116,11 @@ function mu(e, t, n, a, i, r) {
|
|
|
3116
3116
|
}, null, 40, su), [
|
|
3117
3117
|
[s, "input"]
|
|
3118
3118
|
]),
|
|
3119
|
-
ee(
|
|
3119
|
+
ee(U(r.getItemName(o)), 1)
|
|
3120
3120
|
])
|
|
3121
3121
|
], 2))), 256))
|
|
3122
|
-
], 8, ou)) :
|
|
3123
|
-
e.schema.listBox ?
|
|
3122
|
+
], 8, ou)) : V("", !0),
|
|
3123
|
+
e.schema.listBox ? V("", !0) : (u(), g("div", {
|
|
3124
3124
|
key: 1,
|
|
3125
3125
|
class: "combobox form-control",
|
|
3126
3126
|
disabled: e.disabled || null
|
|
@@ -3129,11 +3129,11 @@ function mu(e, t, n, a, i, r) {
|
|
|
3129
3129
|
class: W(["mainRow", { expanded: i.comboExpanded }]),
|
|
3130
3130
|
onClick: t[0] || (t[0] = (...o) => r.onExpandCombo && r.onExpandCombo(...o))
|
|
3131
3131
|
}, [
|
|
3132
|
-
h("div", du,
|
|
3132
|
+
h("div", du, U(r.selectedCount) + " selected", 1),
|
|
3133
3133
|
t[1] || (t[1] = h("div", { class: "arrow" }, null, -1))
|
|
3134
3134
|
], 2),
|
|
3135
3135
|
h("div", uu, [
|
|
3136
|
-
i.comboExpanded ? (u(!0), g(
|
|
3136
|
+
i.comboExpanded ? (u(!0), g(D, { key: 0 }, J(r.items, (o) => (u(), g("div", {
|
|
3137
3137
|
class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
|
|
3138
3138
|
}, [
|
|
3139
3139
|
h("label", null, [
|
|
@@ -3147,9 +3147,9 @@ function mu(e, t, n, a, i, r) {
|
|
|
3147
3147
|
}, null, 40, cu), [
|
|
3148
3148
|
[s, "input"]
|
|
3149
3149
|
]),
|
|
3150
|
-
ee(
|
|
3150
|
+
ee(U(r.getItemName(o)), 1)
|
|
3151
3151
|
])
|
|
3152
|
-
], 2))), 256)) :
|
|
3152
|
+
], 2))), 256)) : V("", !0)
|
|
3153
3153
|
])
|
|
3154
3154
|
], 8, lu))
|
|
3155
3155
|
])), [
|
|
@@ -3270,7 +3270,7 @@ const fu = {
|
|
|
3270
3270
|
function wu(e, t, n, a, i, r) {
|
|
3271
3271
|
const s = O("TrashIcon"), o = O("KButton");
|
|
3272
3272
|
return u(), g("div", gu, [
|
|
3273
|
-
(u(!0), g(
|
|
3273
|
+
(u(!0), g(D, null, J(i.pairs, (d, l) => (u(), g("div", {
|
|
3274
3274
|
key: l,
|
|
3275
3275
|
class: "pair-item"
|
|
3276
3276
|
}, [
|
|
@@ -3285,7 +3285,7 @@ function wu(e, t, n, a, i, r) {
|
|
|
3285
3285
|
r.onInput(c, l, "key");
|
|
3286
3286
|
}
|
|
3287
3287
|
}, null, 40, yu),
|
|
3288
|
-
(u(),
|
|
3288
|
+
(u(), A(ne(r.autofillSlot), {
|
|
3289
3289
|
schema: e.schema,
|
|
3290
3290
|
update: (c) => r.onInput({ target: { value: c } }, l, "key"),
|
|
3291
3291
|
value: d.key
|
|
@@ -3302,34 +3302,34 @@ function wu(e, t, n, a, i, r) {
|
|
|
3302
3302
|
r.onInput(c, l, "value");
|
|
3303
3303
|
}
|
|
3304
3304
|
}, null, 40, _u),
|
|
3305
|
-
(u(),
|
|
3305
|
+
(u(), A(ne(r.autofillSlot), {
|
|
3306
3306
|
schema: e.schema,
|
|
3307
3307
|
update: (c) => r.onInput({ target: { value: c } }, l, "value"),
|
|
3308
3308
|
value: d.value
|
|
3309
3309
|
}, null, 8, ["schema", "update", "value"]))
|
|
3310
3310
|
]),
|
|
3311
|
-
|
|
3311
|
+
T(o, {
|
|
3312
3312
|
appearance: "tertiary",
|
|
3313
3313
|
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${l}`,
|
|
3314
3314
|
onClick: () => {
|
|
3315
3315
|
r.removePair(l);
|
|
3316
3316
|
}
|
|
3317
3317
|
}, {
|
|
3318
|
-
default:
|
|
3319
|
-
|
|
3318
|
+
default: C(() => [
|
|
3319
|
+
T(s)
|
|
3320
3320
|
]),
|
|
3321
3321
|
_: 2
|
|
3322
3322
|
}, 1032, ["data-testid", "onClick"])
|
|
3323
3323
|
]))), 128)),
|
|
3324
|
-
|
|
3324
|
+
T(o, {
|
|
3325
3325
|
appearance: "tertiary",
|
|
3326
3326
|
class: W(e.schema.newElementButtonLabelClasses),
|
|
3327
3327
|
"data-testid": `${e.getFieldID(e.schema)}-add-pair`,
|
|
3328
3328
|
type: "button",
|
|
3329
3329
|
onClick: r.addPair
|
|
3330
3330
|
}, {
|
|
3331
|
-
default:
|
|
3332
|
-
ee(
|
|
3331
|
+
default: C(() => [
|
|
3332
|
+
ee(U(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
|
|
3333
3333
|
]),
|
|
3334
3334
|
_: 1
|
|
3335
3335
|
}, 8, ["class", "data-testid", "onClick"])
|
|
@@ -3372,11 +3372,11 @@ const Mu = /* @__PURE__ */ x(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3372
3372
|
return u(), g("span", {
|
|
3373
3373
|
class: W(["field-label", e.schema.fieldClasses])
|
|
3374
3374
|
}, [
|
|
3375
|
-
|
|
3375
|
+
T(o, {
|
|
3376
3376
|
id: M(a)(e.schema)
|
|
3377
3377
|
}, {
|
|
3378
|
-
default:
|
|
3379
|
-
ee(
|
|
3378
|
+
default: C(() => [
|
|
3379
|
+
ee(U(M(i)), 1)
|
|
3380
3380
|
]),
|
|
3381
3381
|
_: 1
|
|
3382
3382
|
}, 8, ["id"])
|
|
@@ -3436,11 +3436,11 @@ const Mu = /* @__PURE__ */ x(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3436
3436
|
});
|
|
3437
3437
|
const c = L(() => {
|
|
3438
3438
|
var m, p;
|
|
3439
|
-
return a.schema.values ? a.schema.values : (p = (m = a.schema.elements) == null ? void 0 : m.one_of) != null && p.length ? a.schema.elements.one_of.map((
|
|
3439
|
+
return a.schema.values ? a.schema.values : (p = (m = a.schema.elements) == null ? void 0 : m.one_of) != null && p.length ? a.schema.elements.one_of.map((E) => ({ label: String(E), value: String(E) })) : [];
|
|
3440
3440
|
});
|
|
3441
3441
|
return (m, p) => {
|
|
3442
|
-
const
|
|
3443
|
-
return u(), E
|
|
3442
|
+
const E = O("KMultiselect");
|
|
3443
|
+
return u(), A(E, {
|
|
3444
3444
|
id: M(o)(e.schema),
|
|
3445
3445
|
modelValue: M(l),
|
|
3446
3446
|
"onUpdate:modelValue": p[0] || (p[0] = (N) => Ye(l) ? l.value = N : null),
|
|
@@ -3505,14 +3505,14 @@ const Mu = /* @__PURE__ */ x(pu, [["render", wu], ["__scopeId", "data-v-70998d5b
|
|
|
3505
3505
|
function Vu(e, t, n, a, i, r) {
|
|
3506
3506
|
const s = O("vue-form-generator");
|
|
3507
3507
|
return u(), g("div", Ou, [
|
|
3508
|
-
(u(),
|
|
3508
|
+
(u(), A(ne(e.$props.disabled ? "k-tooltip" : "div"), {
|
|
3509
3509
|
"max-width": "300",
|
|
3510
3510
|
text: a.t("general.disable_global_radio", { scope: i.scope })
|
|
3511
3511
|
}, {
|
|
3512
|
-
default:
|
|
3512
|
+
default: C(() => [
|
|
3513
3513
|
h("div", Au, [
|
|
3514
3514
|
h("div", Eu, [
|
|
3515
|
-
(u(!0), g(
|
|
3515
|
+
(u(!0), g(D, null, J(e.schema.fields, (o, d) => (u(), g("div", {
|
|
3516
3516
|
key: d,
|
|
3517
3517
|
class: W(["option-group", { "radio-disabled": e.$props.disabled }])
|
|
3518
3518
|
}, [
|
|
@@ -3528,8 +3528,8 @@ function Vu(e, t, n, a, i, r) {
|
|
|
3528
3528
|
}, null, 8, Fu), [
|
|
3529
3529
|
[ki, i.checkedGroup]
|
|
3530
3530
|
]),
|
|
3531
|
-
ee(" " +
|
|
3532
|
-
h("div", ku,
|
|
3531
|
+
ee(" " + U(o.label) + " ", 1),
|
|
3532
|
+
h("div", ku, U(o.description), 1)
|
|
3533
3533
|
], 2)
|
|
3534
3534
|
], 2))), 128))
|
|
3535
3535
|
])
|
|
@@ -3537,13 +3537,13 @@ function Vu(e, t, n, a, i, r) {
|
|
|
3537
3537
|
]),
|
|
3538
3538
|
_: 1
|
|
3539
3539
|
}, 8, ["text"])),
|
|
3540
|
-
(u(!0), g(
|
|
3540
|
+
(u(!0), g(D, null, J(e.schema.fields, (o, d) => (u(), g("div", {
|
|
3541
3541
|
key: d,
|
|
3542
3542
|
class: "option-group"
|
|
3543
3543
|
}, [
|
|
3544
3544
|
de(h("div", Uu, [
|
|
3545
3545
|
h("div", $u, [
|
|
3546
|
-
|
|
3546
|
+
T(s, {
|
|
3547
3547
|
model: e.model,
|
|
3548
3548
|
options: { helpAsHtml: !0 },
|
|
3549
3549
|
schema: { fields: o.fields },
|
|
@@ -3608,13 +3608,13 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3608
3608
|
});
|
|
3609
3609
|
return t({
|
|
3610
3610
|
clearValidationErrors: m
|
|
3611
|
-
}), (p,
|
|
3611
|
+
}), (p, E) => {
|
|
3612
3612
|
const N = O("KInputSwitch");
|
|
3613
3613
|
return u(), g("div", Ru, [
|
|
3614
|
-
|
|
3614
|
+
T(N, {
|
|
3615
3615
|
id: M(l)(e.schema),
|
|
3616
3616
|
modelValue: M(c),
|
|
3617
|
-
"onUpdate:modelValue":
|
|
3617
|
+
"onUpdate:modelValue": E[0] || (E[0] = (f) => Ye(c) ? c.value = f : null),
|
|
3618
3618
|
autocomplete: e.schema.autocomplete,
|
|
3619
3619
|
class: W(e.schema.fieldClasses),
|
|
3620
3620
|
disabled: e.disabled || void 0,
|
|
@@ -3680,13 +3680,13 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3680
3680
|
const m = (p) => {
|
|
3681
3681
|
c.value = p, o(p, p);
|
|
3682
3682
|
};
|
|
3683
|
-
return (p,
|
|
3683
|
+
return (p, E) => {
|
|
3684
3684
|
const N = O("KTextArea");
|
|
3685
3685
|
return u(), g("div", Nu, [
|
|
3686
|
-
|
|
3686
|
+
T(N, Ie(p.$attrs, {
|
|
3687
3687
|
id: M(d)(e.schema),
|
|
3688
3688
|
modelValue: M(c),
|
|
3689
|
-
"onUpdate:modelValue":
|
|
3689
|
+
"onUpdate:modelValue": E[0] || (E[0] = (f) => Ye(c) ? c.value = f : null),
|
|
3690
3690
|
autosize: "",
|
|
3691
3691
|
"character-limit": e.schema.max,
|
|
3692
3692
|
class: e.schema.fieldClasses,
|
|
@@ -3700,7 +3700,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3700
3700
|
resizable: "",
|
|
3701
3701
|
rows: e.schema.rows || 3
|
|
3702
3702
|
}), null, 16, ["id", "modelValue", "character-limit", "class", "disabled", "help", "minlength", "name", "placeholder", "readonly", "required", "rows"]),
|
|
3703
|
-
(u(),
|
|
3703
|
+
(u(), A(ne(M(s)), {
|
|
3704
3704
|
schema: e.schema,
|
|
3705
3705
|
update: m,
|
|
3706
3706
|
value: M(c)
|
|
@@ -3730,7 +3730,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3730
3730
|
FieldSelectionGroup: ju,
|
|
3731
3731
|
FieldSwitch: Pu,
|
|
3732
3732
|
FieldTextArea: qu
|
|
3733
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3733
|
+
}, Symbol.toStringTag, { value: "Module" })), Du = {
|
|
3734
3734
|
name: "FormGroup",
|
|
3735
3735
|
components: Ku,
|
|
3736
3736
|
mixins: [ii],
|
|
@@ -3804,19 +3804,19 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3804
3804
|
}
|
|
3805
3805
|
},
|
|
3806
3806
|
getFieldID(e) {
|
|
3807
|
-
const t =
|
|
3807
|
+
const t = z(this.options, "fieldIdPrefix", "");
|
|
3808
3808
|
return qt(e, t);
|
|
3809
3809
|
},
|
|
3810
3810
|
getTooltipId(e) {
|
|
3811
3811
|
return `${this.getFieldID(e)}-tooltip`;
|
|
3812
3812
|
},
|
|
3813
3813
|
// Get type of field 'field-xxx'. It'll be the name of HTML element
|
|
3814
|
-
|
|
3815
|
-
return
|
|
3814
|
+
getFieldType(e) {
|
|
3815
|
+
return "field-" + e.type;
|
|
3816
3816
|
},
|
|
3817
3817
|
// Get type of button, default to 'button'
|
|
3818
3818
|
getButtonType(e) {
|
|
3819
|
-
return
|
|
3819
|
+
return z(e, "type", "button");
|
|
3820
3820
|
},
|
|
3821
3821
|
// Child field executed validation
|
|
3822
3822
|
onFieldValidated(e, t, n) {
|
|
@@ -3830,7 +3830,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3830
3830
|
},
|
|
3831
3831
|
// Get current hint.
|
|
3832
3832
|
fieldHint(e) {
|
|
3833
|
-
return
|
|
3833
|
+
return H(e.hint) ? e.hint.call(this, this.model, e, this) : e.hint;
|
|
3834
3834
|
},
|
|
3835
3835
|
fieldErrors(e) {
|
|
3836
3836
|
return this.errors.filter((t) => t.field.fieldName === e.fieldName).map((t) => t.error);
|
|
@@ -3853,7 +3853,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3853
3853
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
3854
3854
|
}
|
|
3855
3855
|
}
|
|
3856
|
-
},
|
|
3856
|
+
}, Bu = ["innerHTML"], zu = { class: "icon-wrapper" }, xu = ["innerHTML"], Yu = {
|
|
3857
3857
|
key: 0,
|
|
3858
3858
|
class: "link-wrapper"
|
|
3859
3859
|
}, Hu = { class: "field-wrap" }, Gu = {
|
|
@@ -3868,7 +3868,7 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3868
3868
|
return u(), g("div", {
|
|
3869
3869
|
class: W(["form-group", e.getFieldRowClasses(n.field)])
|
|
3870
3870
|
}, [
|
|
3871
|
-
r.fieldTypeHasLabel(n.field) ? (u(),
|
|
3871
|
+
r.fieldTypeHasLabel(n.field) ? (u(), A(o, {
|
|
3872
3872
|
key: 0,
|
|
3873
3873
|
"aria-describedby": n.field.help ? r.getTooltipId(n.field) : void 0,
|
|
3874
3874
|
class: W([n.field.labelClasses, "form-group-label"]),
|
|
@@ -3880,41 +3880,41 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3880
3880
|
tooltipId: r.getTooltipId(n.field)
|
|
3881
3881
|
} : void 0
|
|
3882
3882
|
}, Un({
|
|
3883
|
-
default:
|
|
3884
|
-
h("div",
|
|
3883
|
+
default: C(() => [
|
|
3884
|
+
h("div", zu, [
|
|
3885
3885
|
h("span", {
|
|
3886
3886
|
innerHTML: r.formattedLabel(n.field.label)
|
|
3887
|
-
}, null, 8,
|
|
3887
|
+
}, null, 8, xu)
|
|
3888
3888
|
]),
|
|
3889
3889
|
n.field.link ? (u(), g("div", Yu, [
|
|
3890
|
-
|
|
3890
|
+
T(s, {
|
|
3891
3891
|
href: n.field.link
|
|
3892
3892
|
}, {
|
|
3893
|
-
default:
|
|
3893
|
+
default: C(() => t[0] || (t[0] = [
|
|
3894
3894
|
h("span", { class: "section-header" }, "More info", -1)
|
|
3895
3895
|
])),
|
|
3896
3896
|
_: 1
|
|
3897
3897
|
}, 8, ["href"])
|
|
3898
|
-
])) :
|
|
3898
|
+
])) : V("", !0)
|
|
3899
3899
|
]),
|
|
3900
3900
|
_: 2
|
|
3901
3901
|
}, [
|
|
3902
3902
|
n.options.helpAsHtml && n.field.help ? {
|
|
3903
3903
|
name: "tooltip",
|
|
3904
|
-
fn:
|
|
3904
|
+
fn: C(() => [
|
|
3905
3905
|
h("div", {
|
|
3906
3906
|
innerHTML: n.field.help
|
|
3907
|
-
}, null, 8,
|
|
3907
|
+
}, null, 8, Bu)
|
|
3908
3908
|
]),
|
|
3909
3909
|
key: "0"
|
|
3910
3910
|
} : void 0
|
|
3911
|
-
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) :
|
|
3911
|
+
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : V("", !0),
|
|
3912
3912
|
h("div", Hu, [
|
|
3913
|
-
(u(),
|
|
3913
|
+
(u(), A(ne(r.getFieldType(n.field)), Ie(e.$attrs, {
|
|
3914
3914
|
ref: "child",
|
|
3915
3915
|
disabled: e.fieldDisabled(n.field) || null,
|
|
3916
3916
|
"form-options": n.options,
|
|
3917
|
-
hint: n.field.hint && n.field
|
|
3917
|
+
hint: n.field.hint && r.getFieldType(n.field) === "field-input" ? r.fieldHint(n.field) : void 0,
|
|
3918
3918
|
model: n.model,
|
|
3919
3919
|
schema: r.schema,
|
|
3920
3920
|
vfg: n.vfg,
|
|
@@ -3923,29 +3923,29 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3923
3923
|
onValidated: r.onFieldValidated
|
|
3924
3924
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
|
|
3925
3925
|
r.buttonVisibility(n.field) ? (u(), g("div", Gu, [
|
|
3926
|
-
(u(!0), g(
|
|
3926
|
+
(u(!0), g(D, null, J(n.field.buttons, (d, l) => (u(), g("button", {
|
|
3927
3927
|
key: l,
|
|
3928
3928
|
class: W(d.classes),
|
|
3929
3929
|
type: r.getButtonType(d),
|
|
3930
3930
|
onClick: (c) => r.buttonClickHandler(d, n.field, c),
|
|
3931
|
-
textContent:
|
|
3931
|
+
textContent: U(d.label)
|
|
3932
3932
|
}, null, 10, Wu))), 128))
|
|
3933
|
-
])) :
|
|
3933
|
+
])) : V("", !0)
|
|
3934
3934
|
]),
|
|
3935
|
-
n.field.hint && n.field
|
|
3935
|
+
n.field.hint && r.getFieldType(n.field) !== "field-input" ? (u(), g("div", {
|
|
3936
3936
|
key: 1,
|
|
3937
3937
|
class: "hint",
|
|
3938
3938
|
innerHTML: r.fieldHint(n.field)
|
|
3939
|
-
}, null, 8, Zu)) :
|
|
3939
|
+
}, null, 8, Zu)) : V("", !0),
|
|
3940
3940
|
r.fieldErrors(n.field).length > 0 ? (u(), g("div", Ju, [
|
|
3941
|
-
(u(!0), g(
|
|
3941
|
+
(u(!0), g(D, null, J(r.fieldErrors(n.field), (d, l) => (u(), g("span", {
|
|
3942
3942
|
key: l,
|
|
3943
3943
|
innerHTML: d
|
|
3944
3944
|
}, null, 8, Qu))), 128))
|
|
3945
|
-
])) :
|
|
3945
|
+
])) : V("", !0)
|
|
3946
3946
|
], 2);
|
|
3947
3947
|
}
|
|
3948
|
-
const Ti = /* @__PURE__ */ x(
|
|
3948
|
+
const Ti = /* @__PURE__ */ x(Du, [["render", Xu], ["__scopeId", "data-v-0cb2e226"]]), ec = "12px";
|
|
3949
3949
|
var ct = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ct || {});
|
|
3950
3950
|
const tc = (e) => {
|
|
3951
3951
|
var t, n;
|
|
@@ -3989,10 +3989,10 @@ const tc = (e) => {
|
|
|
3989
3989
|
order: 3
|
|
3990
3990
|
}
|
|
3991
3991
|
}, i = e, r = (m) => m != null, s = (m, p) => r(p) && ["password", "sentinel_password"].includes(m) ? "password" : "text", { convertKeyToTitle: o } = Ri(), d = L(() => Object.entries(i.configFields).map(([m, p]) => {
|
|
3992
|
-
var
|
|
3992
|
+
var E, N, f, w;
|
|
3993
3993
|
return {
|
|
3994
3994
|
key: m,
|
|
3995
|
-
label: ((
|
|
3995
|
+
label: ((E = a[m]) == null ? void 0 : E.label) ?? o(m),
|
|
3996
3996
|
value: (N = a[m]) != null && N.formatter ? a[m].formatter(p) : p,
|
|
3997
3997
|
type: ((f = a[m]) == null ? void 0 : f.type) ?? s(m, p),
|
|
3998
3998
|
order: ((w = a[m]) == null ? void 0 : w.order) ?? 100
|
|
@@ -4000,32 +4000,32 @@ const tc = (e) => {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), l = be.useRedisNonStandardFields(i.configFields, i.pluginRedisFields), c = L(() => d.value.concat(l));
|
|
4002
4002
|
return (m, p) => {
|
|
4003
|
-
const
|
|
4003
|
+
const E = O("KCopy");
|
|
4004
4004
|
return u(), g("div", ic, [
|
|
4005
|
-
(u(!0), g(
|
|
4005
|
+
(u(!0), g(D, null, J(c.value, ({ key: N, label: f, value: w, type: I }) => (u(), g("div", {
|
|
4006
4006
|
key: N,
|
|
4007
4007
|
class: "partial-config-card-row"
|
|
4008
4008
|
}, [
|
|
4009
4009
|
h("div", ac, [
|
|
4010
|
-
h("div", rc,
|
|
4010
|
+
h("div", rc, U(f), 1)
|
|
4011
4011
|
]),
|
|
4012
4012
|
h("div", {
|
|
4013
4013
|
class: "config-card-row-value",
|
|
4014
4014
|
"data-testid": `${N}-property-value`
|
|
4015
4015
|
}, [
|
|
4016
4016
|
r(w) ? (u(), g("div", lc, [
|
|
4017
|
-
|
|
4017
|
+
I === "password" ? (u(), g("div", {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
"data-testid": `${N}-copy-password`
|
|
4020
4020
|
}, [
|
|
4021
|
-
|
|
4021
|
+
T(E, {
|
|
4022
4022
|
format: "redacted",
|
|
4023
4023
|
text: String(w)
|
|
4024
4024
|
}, null, 8, ["text"])
|
|
4025
4025
|
], 8, dc)) : (u(), g("div", {
|
|
4026
4026
|
key: 1,
|
|
4027
4027
|
"data-testid": `${N}-plain-text`
|
|
4028
|
-
},
|
|
4028
|
+
}, U(w), 9, uc))
|
|
4029
4029
|
])) : (u(), g("div", {
|
|
4030
4030
|
key: 0,
|
|
4031
4031
|
"data-testid": `${N}-no-value`
|
|
@@ -4093,49 +4093,49 @@ const tc = (e) => {
|
|
|
4093
4093
|
} = Ni(o, a[o.app].getAll, void 0, {
|
|
4094
4094
|
fetchedItemsKey: "data",
|
|
4095
4095
|
searchKeys: ["id", "name"]
|
|
4096
|
-
}),
|
|
4097
|
-
let
|
|
4098
|
-
return o.app === "konnect" ?
|
|
4096
|
+
}), E = L(() => c.value ? s(c.value) : ""), N = (F) => {
|
|
4097
|
+
let b = `${o.apiBaseUrl}${a[o.app].getOne}`;
|
|
4098
|
+
return o.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), b = b.replace(/{id}/gi, String(F)), b;
|
|
4099
4099
|
}, f = L(() => {
|
|
4100
|
-
var
|
|
4101
|
-
const
|
|
4102
|
-
return i.redisType !== "all" ?
|
|
4103
|
-
}), { axiosInstance: w } = Li(o == null ? void 0 : o.axiosRequestConfig),
|
|
4104
|
-
if (
|
|
4105
|
-
i.updateRedisModel(
|
|
4100
|
+
var b;
|
|
4101
|
+
const F = ((b = p.value) == null ? void 0 : b.map((k) => ({ label: k.id, name: k.name, value: k.id, type: k.type, tag: tc(k) }))) || [];
|
|
4102
|
+
return i.redisType !== "all" ? F.filter((k) => k.type === i.redisType) : F;
|
|
4103
|
+
}), { axiosInstance: w } = Li(o == null ? void 0 : o.axiosRequestConfig), I = async (F) => {
|
|
4104
|
+
if (F) {
|
|
4105
|
+
i.updateRedisModel(F);
|
|
4106
4106
|
try {
|
|
4107
|
-
const
|
|
4108
|
-
if (
|
|
4109
|
-
const
|
|
4110
|
-
delete
|
|
4107
|
+
const b = await w.get(N(F));
|
|
4108
|
+
if (b.data.config) {
|
|
4109
|
+
const k = Object.assign(b.data, b.data.config);
|
|
4110
|
+
delete k.config, r.value = k;
|
|
4111
4111
|
}
|
|
4112
|
-
} catch (
|
|
4113
|
-
console.error(
|
|
4112
|
+
} catch (b) {
|
|
4113
|
+
console.error(b);
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
4116
|
};
|
|
4117
|
-
return Ut(() => n == null ? void 0 : n.value, async (
|
|
4118
|
-
|
|
4117
|
+
return Ut(() => n == null ? void 0 : n.value, async (F) => {
|
|
4118
|
+
F && await m();
|
|
4119
4119
|
}), kt(async () => {
|
|
4120
|
-
await m(), i.defaultRedisConfigItem &&
|
|
4121
|
-
}), (
|
|
4122
|
-
const
|
|
4123
|
-
return u(), g(
|
|
4120
|
+
await m(), i.defaultRedisConfigItem && I(i.defaultRedisConfigItem);
|
|
4121
|
+
}), (F, b) => {
|
|
4122
|
+
const k = O("KLabel"), j = O("KBadge"), y = O("KSelect");
|
|
4123
|
+
return u(), g(D, null, [
|
|
4124
4124
|
h("div", fc, [
|
|
4125
|
-
|
|
4125
|
+
T(k, {
|
|
4126
4126
|
info: e.isCustomPlugin ? M(t)("redis.custom_plugin.tooltip") : M(t)("redis.shared_configuration.tooltip", { type: M(Cn)(e.redisType) }),
|
|
4127
4127
|
"tooltip-attributes": {
|
|
4128
4128
|
maxWidth: "300",
|
|
4129
4129
|
placement: "top"
|
|
4130
4130
|
}
|
|
4131
4131
|
}, {
|
|
4132
|
-
default:
|
|
4133
|
-
ee(
|
|
4132
|
+
default: C(() => [
|
|
4133
|
+
ee(U(M(t)("redis.shared_configuration.title")), 1)
|
|
4134
4134
|
]),
|
|
4135
4135
|
_: 1
|
|
4136
4136
|
}, 8, ["info"]),
|
|
4137
|
-
|
|
4138
|
-
|
|
4137
|
+
b[2] || (b[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
4138
|
+
T(y, {
|
|
4139
4139
|
class: "redis-config-select-trigger",
|
|
4140
4140
|
"data-testid": "redis-config-select-trigger",
|
|
4141
4141
|
"enable-filtering": "",
|
|
@@ -4144,51 +4144,51 @@ const tc = (e) => {
|
|
|
4144
4144
|
loading: M(l),
|
|
4145
4145
|
"model-value": e.defaultRedisConfigItem,
|
|
4146
4146
|
placeholder: M(t)("redis.shared_configuration.selector.placeholder"),
|
|
4147
|
-
onChange:
|
|
4147
|
+
onChange: b[1] || (b[1] = (v) => I(v == null ? void 0 : v.value)),
|
|
4148
4148
|
onQueryChange: M(d)
|
|
4149
4149
|
}, {
|
|
4150
|
-
"selected-item-template":
|
|
4151
|
-
h("div", hc,
|
|
4150
|
+
"selected-item-template": C(({ item: v }) => [
|
|
4151
|
+
h("div", hc, U(v.name), 1)
|
|
4152
4152
|
]),
|
|
4153
|
-
"item-template":
|
|
4153
|
+
"item-template": C(({ item: v }) => [
|
|
4154
4154
|
h("div", {
|
|
4155
4155
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4156
4156
|
"data-testid": `redis-configuration-dropdown-item-${v.name}`
|
|
4157
4157
|
}, [
|
|
4158
|
-
h("span", gc,
|
|
4159
|
-
|
|
4158
|
+
h("span", gc, U(v.name), 1),
|
|
4159
|
+
T(j, {
|
|
4160
4160
|
appearance: "info",
|
|
4161
4161
|
class: "select-item-label"
|
|
4162
4162
|
}, {
|
|
4163
|
-
default:
|
|
4164
|
-
ee(
|
|
4163
|
+
default: C(() => [
|
|
4164
|
+
ee(U(v.tag), 1)
|
|
4165
4165
|
]),
|
|
4166
4166
|
_: 2
|
|
4167
4167
|
}, 1024)
|
|
4168
4168
|
], 8, pc)
|
|
4169
4169
|
]),
|
|
4170
|
-
empty:
|
|
4171
|
-
h("div", vc,
|
|
4170
|
+
empty: C(() => [
|
|
4171
|
+
h("div", vc, U(M(t)("redis.shared_configuration.empty_state")), 1)
|
|
4172
4172
|
]),
|
|
4173
|
-
"dropdown-footer-text":
|
|
4173
|
+
"dropdown-footer-text": C(() => [
|
|
4174
4174
|
h("div", {
|
|
4175
4175
|
class: "new-redis-config-area",
|
|
4176
4176
|
"data-testid": "new-redis-config-area",
|
|
4177
|
-
onClick:
|
|
4177
|
+
onClick: b[0] || (b[0] = (v) => F.$emit("showNewPartialModal"))
|
|
4178
4178
|
}, [
|
|
4179
|
-
|
|
4180
|
-
h("span", null,
|
|
4179
|
+
T(M($t), { size: M(ec) }, null, 8, ["size"]),
|
|
4180
|
+
h("span", null, U(M(t)("redis.shared_configuration.create_new_configuration", { type: M(Cn)(e.redisType) })), 1)
|
|
4181
4181
|
])
|
|
4182
4182
|
]),
|
|
4183
4183
|
_: 1
|
|
4184
4184
|
}, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
|
|
4185
4185
|
]),
|
|
4186
|
-
r.value ? (u(),
|
|
4186
|
+
r.value ? (u(), A(mc, {
|
|
4187
4187
|
key: 0,
|
|
4188
4188
|
"config-fields": r.value,
|
|
4189
4189
|
"plugin-redis-fields": e.pluginRedisFields
|
|
4190
|
-
}, null, 8, ["config-fields", "plugin-redis-fields"])) :
|
|
4191
|
-
|
|
4190
|
+
}, null, 8, ["config-fields", "plugin-redis-fields"])) : V("", !0),
|
|
4191
|
+
E.value ? (u(), g("p", yc, U(E.value || M(t)("redis.shared_configuration.error")), 1)) : V("", !0)
|
|
4192
4192
|
], 64);
|
|
4193
4193
|
};
|
|
4194
4194
|
}
|
|
@@ -4249,49 +4249,49 @@ const tc = (e) => {
|
|
|
4249
4249
|
},
|
|
4250
4250
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
4251
4251
|
setup(e, { emit: t }) {
|
|
4252
|
-
const n = e, a = t, { t: i } = ge("en-us", ve), r = L(() => n.field.pluginType === "custom"), s = ue(!n.isEditing), o = ue(), d = ue({}), l = ue(), c = (f) =>
|
|
4252
|
+
const n = e, a = t, { t: i } = ge("en-us", ve), r = L(() => n.field.pluginType === "custom"), s = ue(!n.isEditing), o = ue(), d = ue({}), l = ue(), c = (f) => H(f.visible) ? f.visible.call(this, n.model, f, this) : X(f.visible) ? !0 : f.visible, m = async (f) => {
|
|
4253
4253
|
a("modelUpdated", [{ id: f, path: n.redisPath }], "partials"), l.value = [{ id: f, path: n.redisPath }], o.value = f;
|
|
4254
4254
|
}, p = (f, w) => {
|
|
4255
4255
|
d.value = { ...d.value, [w]: f }, a("modelUpdated", f, w);
|
|
4256
|
-
},
|
|
4256
|
+
}, E = () => {
|
|
4257
4257
|
a("refreshModel");
|
|
4258
|
-
}, N = (f, w,
|
|
4259
|
-
a("validated", f, w,
|
|
4258
|
+
}, N = (f, w, I) => {
|
|
4259
|
+
a("validated", f, w, I);
|
|
4260
4260
|
};
|
|
4261
4261
|
return Ut(() => s.value, (f) => {
|
|
4262
4262
|
f ? l.value && a("partialToggled", "redis", { partials: l.value }) : a("partialToggled", "partials", d.value);
|
|
4263
4263
|
}), kt(() => {
|
|
4264
|
-
var f, w,
|
|
4265
|
-
if (n.model && (d.value = n.field.fields.reduce((
|
|
4266
|
-
const
|
|
4267
|
-
s.value = !0, o.value =
|
|
4264
|
+
var f, w, I;
|
|
4265
|
+
if (n.model && (d.value = n.field.fields.reduce((F, b) => (Object.keys(n.model).includes(b.model) && (F[b.model] = n.model[b.model]), F), {})), (I = (w = (f = n == null ? void 0 : n.model) == null ? void 0 : f.partials) == null ? void 0 : w[0]) != null && I.id) {
|
|
4266
|
+
const F = n.model.partials[0].id;
|
|
4267
|
+
s.value = !0, o.value = F;
|
|
4268
4268
|
}
|
|
4269
4269
|
}), (f, w) => {
|
|
4270
|
-
const
|
|
4270
|
+
const I = O("KAlert"), F = O("KBadge"), b = O("KRadio"), k = O("KCard");
|
|
4271
4271
|
return u(), g("div", null, [
|
|
4272
4272
|
r.value ? (u(), g("div", _c, [
|
|
4273
|
-
|
|
4273
|
+
T(I, {
|
|
4274
4274
|
"data-testid": "custom-plugin-redis-config-note",
|
|
4275
4275
|
message: M(i)("redis.custom_plugin.alert")
|
|
4276
4276
|
}, null, 8, ["message"]),
|
|
4277
|
-
|
|
4277
|
+
T(In, {
|
|
4278
4278
|
"default-redis-config-item": o.value,
|
|
4279
4279
|
"is-custom-plugin": "",
|
|
4280
4280
|
"plugin-redis-fields": e.field.fields,
|
|
4281
4281
|
"update-redis-model": m,
|
|
4282
|
-
onShowNewPartialModal: w[0] || (w[0] = (
|
|
4282
|
+
onShowNewPartialModal: w[0] || (w[0] = (j) => f.$emit("showNewPartialModal"))
|
|
4283
4283
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
4284
|
-
])) : (u(),
|
|
4284
|
+
])) : (u(), A(k, {
|
|
4285
4285
|
key: 1,
|
|
4286
4286
|
class: "redis-config-card",
|
|
4287
4287
|
"data-testid": "redis-config-card",
|
|
4288
4288
|
title: M(i)("redis.title")
|
|
4289
4289
|
}, {
|
|
4290
|
-
default:
|
|
4290
|
+
default: C(() => [
|
|
4291
4291
|
h("div", wc, [
|
|
4292
|
-
|
|
4292
|
+
T(b, {
|
|
4293
4293
|
modelValue: s.value,
|
|
4294
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
4294
|
+
"onUpdate:modelValue": w[1] || (w[1] = (j) => s.value = j),
|
|
4295
4295
|
card: "",
|
|
4296
4296
|
"card-orientation": "horizontal",
|
|
4297
4297
|
"data-testid": "shared-redis-config-radio",
|
|
@@ -4299,19 +4299,19 @@ const tc = (e) => {
|
|
|
4299
4299
|
label: M(i)("redis.shared_configuration.label"),
|
|
4300
4300
|
"selected-value": !0
|
|
4301
4301
|
}, {
|
|
4302
|
-
default:
|
|
4303
|
-
|
|
4304
|
-
default:
|
|
4305
|
-
ee(
|
|
4302
|
+
default: C(() => [
|
|
4303
|
+
T(F, { appearance: "success" }, {
|
|
4304
|
+
default: C(() => [
|
|
4305
|
+
ee(U(M(i)("redis.shared_configuration.badge")), 1)
|
|
4306
4306
|
]),
|
|
4307
4307
|
_: 1
|
|
4308
4308
|
})
|
|
4309
4309
|
]),
|
|
4310
4310
|
_: 1
|
|
4311
4311
|
}, 8, ["modelValue", "description", "label"]),
|
|
4312
|
-
|
|
4312
|
+
T(b, {
|
|
4313
4313
|
modelValue: s.value,
|
|
4314
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
4314
|
+
"onUpdate:modelValue": w[2] || (w[2] = (j) => s.value = j),
|
|
4315
4315
|
card: "",
|
|
4316
4316
|
"card-orientation": "horizontal",
|
|
4317
4317
|
"data-testid": "dedicated-redis-config-radio",
|
|
@@ -4321,33 +4321,33 @@ const tc = (e) => {
|
|
|
4321
4321
|
}, null, 8, ["modelValue", "description", "label"])
|
|
4322
4322
|
]),
|
|
4323
4323
|
s.value ? (u(), g("div", Mc, [
|
|
4324
|
-
|
|
4324
|
+
T(In, {
|
|
4325
4325
|
"default-redis-config-item": o.value,
|
|
4326
4326
|
"plugin-redis-fields": e.field.fields,
|
|
4327
4327
|
"redis-type": e.field.redisType,
|
|
4328
4328
|
"update-redis-model": m,
|
|
4329
|
-
onShowNewPartialModal: w[3] || (w[3] = (
|
|
4329
|
+
onShowNewPartialModal: w[3] || (w[3] = (j) => f.$emit("showNewPartialModal"))
|
|
4330
4330
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
4331
4331
|
])) : (u(), g("div", Sc, [
|
|
4332
|
-
h("div", Tc,
|
|
4333
|
-
(u(),
|
|
4334
|
-
default:
|
|
4335
|
-
(u(!0), g(
|
|
4336
|
-
key:
|
|
4332
|
+
h("div", Tc, U(M(i)("redis.dedicated_configuration.title")), 1),
|
|
4333
|
+
(u(), A(ne(e.tag), null, {
|
|
4334
|
+
default: C(() => [
|
|
4335
|
+
(u(!0), g(D, null, J(e.field.fields, (j) => (u(), g(D, {
|
|
4336
|
+
key: j.model
|
|
4337
4337
|
}, [
|
|
4338
|
-
c(
|
|
4338
|
+
c(j) ? (u(), A(Ti, {
|
|
4339
4339
|
key: 0,
|
|
4340
4340
|
ref_for: !0,
|
|
4341
4341
|
ref: "children",
|
|
4342
4342
|
errors: e.errors,
|
|
4343
|
-
field:
|
|
4343
|
+
field: j,
|
|
4344
4344
|
model: e.model,
|
|
4345
4345
|
options: e.options,
|
|
4346
4346
|
vfg: e.vfg,
|
|
4347
4347
|
onModelUpdated: p,
|
|
4348
|
-
onRefreshModel:
|
|
4348
|
+
onRefreshModel: E,
|
|
4349
4349
|
onValidated: N
|
|
4350
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg"])) :
|
|
4350
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg"])) : V("", !0)
|
|
4351
4351
|
], 64))), 128))
|
|
4352
4352
|
]),
|
|
4353
4353
|
_: 1
|
|
@@ -4472,7 +4472,7 @@ const tc = (e) => {
|
|
|
4472
4472
|
methods: {
|
|
4473
4473
|
// Get visible prop of field
|
|
4474
4474
|
fieldVisible(e) {
|
|
4475
|
-
return
|
|
4475
|
+
return H(e.visible) ? e.visible.call(this, this.model, e, this) : X(e.visible) ? !0 : e.visible;
|
|
4476
4476
|
},
|
|
4477
4477
|
// Child field executed validation
|
|
4478
4478
|
onFieldValidated(e, t, n) {
|
|
@@ -4496,10 +4496,10 @@ const tc = (e) => {
|
|
|
4496
4496
|
},
|
|
4497
4497
|
// Validating the model properties
|
|
4498
4498
|
validate(e = null) {
|
|
4499
|
-
e === null && (e =
|
|
4499
|
+
e === null && (e = z(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
4500
4500
|
const t = [], n = [];
|
|
4501
4501
|
le(this.$refs.children, (i) => {
|
|
4502
|
-
|
|
4502
|
+
H(i.validate) && (t.push(i.$refs.child), n.push(i.$refs.child.validate(!0)));
|
|
4503
4503
|
});
|
|
4504
4504
|
const a = (i) => {
|
|
4505
4505
|
const r = [];
|
|
@@ -4530,12 +4530,12 @@ const tc = (e) => {
|
|
|
4530
4530
|
function Fc(e, t, n, a, i, r) {
|
|
4531
4531
|
const s = O("form-redis"), o = O("form-group"), d = O("KCollapse");
|
|
4532
4532
|
return n.schema != null ? (u(), g("div", Ac, [
|
|
4533
|
-
n.schema.fields ? (u(),
|
|
4534
|
-
default:
|
|
4535
|
-
(u(!0), g(
|
|
4533
|
+
n.schema.fields ? (u(), A(ne(n.tag), { key: 0 }, {
|
|
4534
|
+
default: C(() => [
|
|
4535
|
+
(u(!0), g(D, null, J(r.fields, (l) => (u(), g(D, {
|
|
4536
4536
|
key: l.model
|
|
4537
4537
|
}, [
|
|
4538
|
-
l.model === "__redis_partial" && n.enableRedisPartial ? (u(),
|
|
4538
|
+
l.model === "__redis_partial" && n.enableRedisPartial ? (u(), A(s, {
|
|
4539
4539
|
key: 0,
|
|
4540
4540
|
errors: i.errors,
|
|
4541
4541
|
field: l,
|
|
@@ -4548,7 +4548,7 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4548
4548
|
onPartialToggled: r.onPartialToggled,
|
|
4549
4549
|
onShowNewPartialModal: (c) => e.$emit("showNewPartialModal", l.redisType),
|
|
4550
4550
|
onValidated: r.onFieldValidated
|
|
4551
|
-
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(l) ? (u(),
|
|
4551
|
+
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(l) ? (u(), A(o, {
|
|
4552
4552
|
key: 1,
|
|
4553
4553
|
ref_for: !0,
|
|
4554
4554
|
ref: "children",
|
|
@@ -4560,33 +4560,33 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4560
4560
|
onModelUpdated: r.onModelUpdated,
|
|
4561
4561
|
onRefreshModel: r.onRefreshModel,
|
|
4562
4562
|
onValidated: r.onFieldValidated
|
|
4563
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4563
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : V("", !0)
|
|
4564
4564
|
], 64))), 128))
|
|
4565
4565
|
]),
|
|
4566
4566
|
_: 1
|
|
4567
|
-
})) :
|
|
4568
|
-
(u(!0), g(
|
|
4567
|
+
})) : V("", !0),
|
|
4568
|
+
(u(!0), g(D, null, J(r.groups, (l, c) => (u(), g(D, {
|
|
4569
4569
|
key: `group-${c}`
|
|
4570
4570
|
}, [
|
|
4571
|
-
l.collapsible !== void 0 && l.collapsible !== !1 ? (u(),
|
|
4571
|
+
l.collapsible !== void 0 && l.collapsible !== !1 ? (u(), A(d, {
|
|
4572
4572
|
key: 0,
|
|
4573
4573
|
class: "root-level-collapse",
|
|
4574
4574
|
"model-value": !1,
|
|
4575
4575
|
title: l.collapsible.title
|
|
4576
4576
|
}, Un({
|
|
4577
|
-
default:
|
|
4578
|
-
var m, p,
|
|
4577
|
+
default: C(() => {
|
|
4578
|
+
var m, p, E, N;
|
|
4579
4579
|
return [
|
|
4580
|
-
(m = l.slots) != null && m.beforeContent ? Oe(e.$slots, (p = l.slots) == null ? void 0 : p.beforeContent, { key: 0 }) :
|
|
4581
|
-
l.fields.length === 0 && ((
|
|
4580
|
+
(m = l.slots) != null && m.beforeContent ? Oe(e.$slots, (p = l.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : V("", !0),
|
|
4581
|
+
l.fields.length === 0 && ((E = l.slots) != null && E.emptyState) ? Oe(e.$slots, (N = l.slots) == null ? void 0 : N.emptyState, { key: 1 }) : (u(), A(ne(n.tag), {
|
|
4582
4582
|
key: 2,
|
|
4583
4583
|
class: W(e.getFieldRowClasses(l))
|
|
4584
4584
|
}, {
|
|
4585
|
-
default:
|
|
4586
|
-
(u(!0), g(
|
|
4585
|
+
default: C(() => [
|
|
4586
|
+
(u(!0), g(D, null, J(l.fields, (f) => (u(), g(D, {
|
|
4587
4587
|
key: f.model
|
|
4588
4588
|
}, [
|
|
4589
|
-
r.fieldVisible(f) ? (u(),
|
|
4589
|
+
r.fieldVisible(f) ? (u(), A(o, {
|
|
4590
4590
|
key: 0,
|
|
4591
4591
|
ref_for: !0,
|
|
4592
4592
|
ref: "children",
|
|
@@ -4598,12 +4598,12 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4598
4598
|
onModelUpdated: r.onModelUpdated,
|
|
4599
4599
|
onRefreshModel: r.onRefreshModel,
|
|
4600
4600
|
onValidated: r.onFieldValidated
|
|
4601
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4601
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : V("", !0)
|
|
4602
4602
|
], 64))), 128))
|
|
4603
4603
|
]),
|
|
4604
4604
|
_: 2
|
|
4605
4605
|
}, 1032, ["class"])),
|
|
4606
|
-
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (u(),
|
|
4606
|
+
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (u(), A(d, {
|
|
4607
4607
|
key: 3,
|
|
4608
4608
|
class: "nested-collapse",
|
|
4609
4609
|
"model-value": i.collapseStates[`group-${c}-nested`] ?? !0,
|
|
@@ -4611,15 +4611,15 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4611
4611
|
"trigger-label": i.collapseStates[`group-${c}-nested`] ?? !0 ? l.collapsible.nestedCollapsible.triggerLabel.expand : l.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
4612
4612
|
"onUpdate:modelValue": (f) => i.collapseStates[`group-${c}-nested`] = f
|
|
4613
4613
|
}, {
|
|
4614
|
-
default:
|
|
4615
|
-
(u(),
|
|
4614
|
+
default: C(() => [
|
|
4615
|
+
(u(), A(ne(n.tag), {
|
|
4616
4616
|
class: W(e.getFieldRowClasses(l))
|
|
4617
4617
|
}, {
|
|
4618
|
-
default:
|
|
4619
|
-
(u(!0), g(
|
|
4618
|
+
default: C(() => [
|
|
4619
|
+
(u(!0), g(D, null, J(l.collapsible.nestedCollapsible.fields, (f) => (u(), g(D, {
|
|
4620
4620
|
key: f.model
|
|
4621
4621
|
}, [
|
|
4622
|
-
f.model === "__redis_partial" && n.enableRedisPartial ? (u(),
|
|
4622
|
+
f.model === "__redis_partial" && n.enableRedisPartial ? (u(), A(s, {
|
|
4623
4623
|
key: 0,
|
|
4624
4624
|
errors: i.errors,
|
|
4625
4625
|
field: f,
|
|
@@ -4632,7 +4632,7 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4632
4632
|
onPartialToggled: r.onPartialToggled,
|
|
4633
4633
|
onShowNewPartialModal: (w) => e.$emit("showNewPartialModal", f.redisType),
|
|
4634
4634
|
onValidated: r.onFieldValidated
|
|
4635
|
-
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(f) ? (u(),
|
|
4635
|
+
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(f) ? (u(), A(o, {
|
|
4636
4636
|
key: 1,
|
|
4637
4637
|
ref_for: !0,
|
|
4638
4638
|
ref: "children",
|
|
@@ -4644,35 +4644,35 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4644
4644
|
onModelUpdated: r.onModelUpdated,
|
|
4645
4645
|
onRefreshModel: r.onRefreshModel,
|
|
4646
4646
|
onValidated: r.onFieldValidated
|
|
4647
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4647
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : V("", !0)
|
|
4648
4648
|
], 64))), 128))
|
|
4649
4649
|
]),
|
|
4650
4650
|
_: 2
|
|
4651
4651
|
}, 1032, ["class"]))
|
|
4652
4652
|
]),
|
|
4653
4653
|
_: 2
|
|
4654
|
-
}, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) :
|
|
4654
|
+
}, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) : V("", !0)
|
|
4655
4655
|
];
|
|
4656
4656
|
}),
|
|
4657
4657
|
_: 2
|
|
4658
4658
|
}, [
|
|
4659
4659
|
l.collapsible.description ? {
|
|
4660
4660
|
name: "visible-content",
|
|
4661
|
-
fn:
|
|
4662
|
-
ee(
|
|
4661
|
+
fn: C(() => [
|
|
4662
|
+
ee(U(l.collapsible.description), 1)
|
|
4663
4663
|
]),
|
|
4664
4664
|
key: "0"
|
|
4665
4665
|
} : void 0
|
|
4666
|
-
]), 1032, ["title"])) : (u(),
|
|
4666
|
+
]), 1032, ["title"])) : (u(), A(ne(n.tag), {
|
|
4667
4667
|
key: 1,
|
|
4668
4668
|
class: W(e.getFieldRowClasses(l))
|
|
4669
4669
|
}, {
|
|
4670
|
-
default:
|
|
4671
|
-
l.legend ? (u(), g("legend", Ec,
|
|
4672
|
-
(u(!0), g(
|
|
4670
|
+
default: C(() => [
|
|
4671
|
+
l.legend ? (u(), g("legend", Ec, U(l.legend), 1)) : V("", !0),
|
|
4672
|
+
(u(!0), g(D, null, J(l.fields, (m) => (u(), g(D, {
|
|
4673
4673
|
key: m.model
|
|
4674
4674
|
}, [
|
|
4675
|
-
r.fieldVisible(m) ? (u(),
|
|
4675
|
+
r.fieldVisible(m) ? (u(), A(o, {
|
|
4676
4676
|
key: 0,
|
|
4677
4677
|
ref_for: !0,
|
|
4678
4678
|
ref: "children",
|
|
@@ -4684,13 +4684,13 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4684
4684
|
onModelUpdated: r.onModelUpdated,
|
|
4685
4685
|
onRefreshModel: r.onRefreshModel,
|
|
4686
4686
|
onValidated: r.onFieldValidated
|
|
4687
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4687
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : V("", !0)
|
|
4688
4688
|
], 64))), 128))
|
|
4689
4689
|
]),
|
|
4690
4690
|
_: 2
|
|
4691
4691
|
}, 1032, ["class"]))
|
|
4692
4692
|
], 64))), 128))
|
|
4693
|
-
])) :
|
|
4693
|
+
])) : V("", !0);
|
|
4694
4694
|
}
|
|
4695
4695
|
const ae = /* @__PURE__ */ x(Oc, [["render", Fc]]), On = /* @__PURE__ */ new Set([
|
|
4696
4696
|
"config-client_id",
|
|
@@ -4910,57 +4910,57 @@ const ae = /* @__PURE__ */ x(Oc, [["render", Fc]]), On = /* @__PURE__ */ new Set
|
|
|
4910
4910
|
function Lc(e, t, n, a, i, r) {
|
|
4911
4911
|
const s = O("VueFormGenerator"), o = O("KExternalLink"), d = O("KLabel"), l = O("KCheckbox"), c = O("KInputSwitch"), m = O("KTabs");
|
|
4912
4912
|
return u(), g("div", null, [
|
|
4913
|
-
n.formModel.id && n.isEditing || !n.isEditing ? (u(),
|
|
4913
|
+
n.formModel.id && n.isEditing || !n.isEditing ? (u(), A(s, {
|
|
4914
4914
|
key: 0,
|
|
4915
4915
|
class: "global-fields",
|
|
4916
4916
|
model: n.formModel,
|
|
4917
4917
|
options: n.formOptions,
|
|
4918
4918
|
schema: i.globalFields,
|
|
4919
4919
|
onModelUpdated: n.onModelUpdated
|
|
4920
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4921
|
-
|
|
4922
|
-
common:
|
|
4920
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
4921
|
+
T(m, { tabs: i.tabs }, {
|
|
4922
|
+
common: C(() => [
|
|
4923
4923
|
h("div", Uc, [
|
|
4924
4924
|
h("div", $c, [
|
|
4925
|
-
|
|
4926
|
-
default:
|
|
4925
|
+
T(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
4926
|
+
default: C(() => t[2] || (t[2] = [
|
|
4927
4927
|
h("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
4928
4928
|
])),
|
|
4929
4929
|
_: 1
|
|
4930
4930
|
})
|
|
4931
4931
|
]),
|
|
4932
4932
|
t[4] || (t[4] = h("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
|
|
4933
|
-
r.displayForm ? (u(),
|
|
4933
|
+
r.displayForm ? (u(), A(s, {
|
|
4934
4934
|
key: 0,
|
|
4935
4935
|
model: n.formModel,
|
|
4936
4936
|
options: n.formOptions,
|
|
4937
4937
|
schema: i.commonFieldsSchema,
|
|
4938
4938
|
onModelUpdated: n.onModelUpdated
|
|
4939
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4940
|
-
|
|
4941
|
-
default:
|
|
4939
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
4940
|
+
T(d, null, {
|
|
4941
|
+
default: C(() => t[3] || (t[3] = [
|
|
4942
4942
|
ee("Auth Methods")
|
|
4943
4943
|
])),
|
|
4944
4944
|
_: 1
|
|
4945
4945
|
}),
|
|
4946
4946
|
h("div", Vc, [
|
|
4947
|
-
(u(!0), g(
|
|
4947
|
+
(u(!0), g(D, null, J(i.authMethods, (p) => (u(), g("div", {
|
|
4948
4948
|
key: p.value,
|
|
4949
4949
|
class: "auth-method"
|
|
4950
4950
|
}, [
|
|
4951
|
-
|
|
4951
|
+
T(l, {
|
|
4952
4952
|
modelValue: p.prop,
|
|
4953
|
-
"onUpdate:modelValue": (
|
|
4954
|
-
onChange: (
|
|
4953
|
+
"onUpdate:modelValue": (E) => p.prop = E,
|
|
4954
|
+
onChange: (E) => r.handleUpdate(E, p.value)
|
|
4955
4955
|
}, {
|
|
4956
|
-
default:
|
|
4957
|
-
ee(
|
|
4956
|
+
default: C(() => [
|
|
4957
|
+
ee(U(p.label), 1)
|
|
4958
4958
|
]),
|
|
4959
4959
|
_: 2
|
|
4960
4960
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
4961
4961
|
]))), 128))
|
|
4962
4962
|
]),
|
|
4963
|
-
|
|
4963
|
+
T(c, {
|
|
4964
4964
|
modelValue: i.sessionManagement,
|
|
4965
4965
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => i.sessionManagement = p),
|
|
4966
4966
|
label: "Enable Session Management",
|
|
@@ -4968,43 +4968,43 @@ function Lc(e, t, n, a, i, r) {
|
|
|
4968
4968
|
}, null, 8, ["modelValue", "onChange"])
|
|
4969
4969
|
])
|
|
4970
4970
|
]),
|
|
4971
|
-
authorization:
|
|
4971
|
+
authorization: C(() => [
|
|
4972
4972
|
h("div", jc, [
|
|
4973
4973
|
h("div", Rc, [
|
|
4974
|
-
|
|
4975
|
-
default:
|
|
4974
|
+
T(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
4975
|
+
default: C(() => t[5] || (t[5] = [
|
|
4976
4976
|
h("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
4977
4977
|
])),
|
|
4978
4978
|
_: 1
|
|
4979
4979
|
})
|
|
4980
4980
|
]),
|
|
4981
4981
|
t[6] || (t[6] = h("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
|
|
4982
|
-
r.displayForm ? (u(),
|
|
4982
|
+
r.displayForm ? (u(), A(s, {
|
|
4983
4983
|
key: 0,
|
|
4984
4984
|
model: n.formModel,
|
|
4985
4985
|
options: n.formOptions,
|
|
4986
4986
|
schema: i.authFieldsSchema,
|
|
4987
4987
|
onModelUpdated: n.onModelUpdated
|
|
4988
4988
|
}, {
|
|
4989
|
-
"autofill-provider":
|
|
4989
|
+
"autofill-provider": C((p) => [
|
|
4990
4990
|
Oe(e.$slots, "autofill-provider", $i(Vi(p)), void 0, !0)
|
|
4991
4991
|
]),
|
|
4992
4992
|
_: 3
|
|
4993
|
-
}, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4993
|
+
}, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0)
|
|
4994
4994
|
])
|
|
4995
4995
|
]),
|
|
4996
|
-
advanced:
|
|
4996
|
+
advanced: C(() => [
|
|
4997
4997
|
h("div", Pc, [
|
|
4998
4998
|
h("div", Nc, [
|
|
4999
|
-
|
|
5000
|
-
default:
|
|
4999
|
+
T(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
5000
|
+
default: C(() => t[7] || (t[7] = [
|
|
5001
5001
|
h("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
5002
5002
|
])),
|
|
5003
5003
|
_: 1
|
|
5004
5004
|
})
|
|
5005
5005
|
]),
|
|
5006
5006
|
t[8] || (t[8] = h("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
|
|
5007
|
-
r.displayForm ? (u(),
|
|
5007
|
+
r.displayForm ? (u(), A(s, {
|
|
5008
5008
|
key: 0,
|
|
5009
5009
|
"enable-redis-partial": n.enableRedisPartial,
|
|
5010
5010
|
"is-editing": n.isEditing,
|
|
@@ -5014,7 +5014,7 @@ function Lc(e, t, n, a, i, r) {
|
|
|
5014
5014
|
onModelUpdated: n.onModelUpdated,
|
|
5015
5015
|
onPartialToggled: n.onPartialToggled,
|
|
5016
5016
|
onShowNewPartialModal: t[1] || (t[1] = () => n.showNewPartialModal(n.formSchema._supported_redis_partial_type))
|
|
5017
|
-
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onModelUpdated", "onPartialToggled"])) :
|
|
5017
|
+
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onModelUpdated", "onPartialToggled"])) : V("", !0)
|
|
5018
5018
|
])
|
|
5019
5019
|
]),
|
|
5020
5020
|
_: 3
|
|
@@ -5056,15 +5056,15 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5056
5056
|
return d.hint = n(`${l}.hint`) && t(`${l}.hint`) || d.hint, d.help = n(`${l}.help`) && t(`${l}.help`) || d.help, d.newElementButtonLabel = n(`${l}.newElementButtonLabel`) && t(`${l}.newElementButtonLabel`) || d.newElementButtonLabel, d.model !== "tags" && (d.valueType === "array" || d.type === "array") && (d.type = "array", d.valueArrayType = "array", d.itemContainerComponent = "FieldArrayItem", d.fieldClasses = "post-function-array-item-container", d.fieldItemsClasses = "post-function-array-item", d.inputAttributes = { ...d.inputAttributes, type: "textarea" }), d;
|
|
5057
5057
|
}), o;
|
|
5058
5058
|
});
|
|
5059
|
-
return (o, d) => i.value ? (u(),
|
|
5059
|
+
return (o, d) => i.value ? (u(), A(ae, {
|
|
5060
5060
|
key: 0,
|
|
5061
5061
|
model: e.formModel,
|
|
5062
5062
|
options: e.formOptions,
|
|
5063
5063
|
schema: r.value,
|
|
5064
5064
|
onModelUpdated: e.onModelUpdated
|
|
5065
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5065
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0);
|
|
5066
5066
|
}
|
|
5067
|
-
}),
|
|
5067
|
+
}), Dc = /* @__PURE__ */ x(Kc, [["__scopeId", "data-v-f54f37ae"]]), Bc = /* @__PURE__ */ re({
|
|
5068
5068
|
__name: "ExitTransformer",
|
|
5069
5069
|
props: {
|
|
5070
5070
|
formModel: {
|
|
@@ -5099,15 +5099,15 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5099
5099
|
return d.hint = n(`${l}.hint`) && t(`${l}.hint`) || d.hint, d.help = n(`${l}.help`) && t(`${l}.help`) || d.help, d.newElementButtonLabel = n(`${l}.newElementButtonLabel`) && t(`${l}.newElementButtonLabel`) || d.newElementButtonLabel, d.model !== "tags" && (d.valueType === "array" || d.type === "array") && (d.type = "array", d.valueArrayType = "array", d.itemContainerComponent = "FieldArrayItem", d.fieldClasses = "exit-transformer-array-item-container", d.fieldItemsClasses = "exit-transformer-array-item", d.inputAttributes = { ...d.inputAttributes, type: "textarea" }), d;
|
|
5100
5100
|
}), o;
|
|
5101
5101
|
});
|
|
5102
|
-
return (o, d) => i.value ? (u(),
|
|
5102
|
+
return (o, d) => i.value ? (u(), A(ae, {
|
|
5103
5103
|
key: 0,
|
|
5104
5104
|
model: e.formModel,
|
|
5105
5105
|
options: e.formOptions,
|
|
5106
5106
|
schema: r.value,
|
|
5107
5107
|
onModelUpdated: e.onModelUpdated
|
|
5108
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5108
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0);
|
|
5109
5109
|
}
|
|
5110
|
-
}),
|
|
5110
|
+
}), zc = /* @__PURE__ */ x(Bc, [["__scopeId", "data-v-0d5c541f"]]), xc = {
|
|
5111
5111
|
fields: [
|
|
5112
5112
|
{
|
|
5113
5113
|
inputType: "text",
|
|
@@ -5221,44 +5221,44 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5221
5221
|
}
|
|
5222
5222
|
},
|
|
5223
5223
|
setup(e) {
|
|
5224
|
-
var
|
|
5225
|
-
it(he, (
|
|
5224
|
+
var j;
|
|
5225
|
+
it(he, (j = mt()) == null ? void 0 : j[He]);
|
|
5226
5226
|
const t = e, n = ue("zeroSsl"), a = ue("shm"), i = L(() => {
|
|
5227
5227
|
var v;
|
|
5228
|
-
const
|
|
5228
|
+
const y = {};
|
|
5229
5229
|
if ((v = t.formSchema) != null && v.fields)
|
|
5230
|
-
for (const
|
|
5231
|
-
|
|
5232
|
-
return
|
|
5230
|
+
for (const P of t.formSchema.fields)
|
|
5231
|
+
y[P.model] = P;
|
|
5232
|
+
return y;
|
|
5233
5233
|
}), r = L(() => {
|
|
5234
5234
|
var v;
|
|
5235
|
-
const
|
|
5236
|
-
for (const
|
|
5237
|
-
const
|
|
5238
|
-
|
|
5235
|
+
const y = we(xc);
|
|
5236
|
+
for (const P of y.fields) {
|
|
5237
|
+
const q = (v = i.value[P.model]) == null ? void 0 : v.help;
|
|
5238
|
+
P.help === void 0 && typeof q == "string" && (P.help = q);
|
|
5239
5239
|
}
|
|
5240
|
-
return
|
|
5240
|
+
return y;
|
|
5241
5241
|
}), s = L(() => {
|
|
5242
5242
|
var v;
|
|
5243
|
-
const
|
|
5244
|
-
for (const
|
|
5245
|
-
const
|
|
5246
|
-
|
|
5243
|
+
const y = we(Yc);
|
|
5244
|
+
for (const P of y.fields) {
|
|
5245
|
+
const q = (v = i.value[P.model]) == null ? void 0 : v.help;
|
|
5246
|
+
P.help === void 0 && typeof q == "string" && (P.help = q);
|
|
5247
5247
|
}
|
|
5248
|
-
return
|
|
5248
|
+
return y;
|
|
5249
5249
|
}), o = L(() => {
|
|
5250
5250
|
var v;
|
|
5251
|
-
const
|
|
5252
|
-
for (const
|
|
5253
|
-
const
|
|
5254
|
-
|
|
5251
|
+
const y = we(Hc);
|
|
5252
|
+
for (const P of y.fields) {
|
|
5253
|
+
const q = (v = i.value[P.model]) == null ? void 0 : v.help;
|
|
5254
|
+
P.help === void 0 && typeof q == "string" && (P.help = q);
|
|
5255
5255
|
}
|
|
5256
|
-
return
|
|
5256
|
+
return y;
|
|
5257
5257
|
}), d = L(() => ({
|
|
5258
|
-
fields: t.formSchema.fields.filter((
|
|
5258
|
+
fields: t.formSchema.fields.filter((y) => !y.model.startsWith("config") && y.model !== "tags")
|
|
5259
5259
|
})), l = L(() => ({
|
|
5260
5260
|
fields: r.value.fields.filter(
|
|
5261
|
-
(v) => !s.value.fields.some((
|
|
5261
|
+
(v) => !s.value.fields.some((P) => P.model === v.model) && !o.value.fields.some((P) => P.model === v.model)
|
|
5262
5262
|
)
|
|
5263
5263
|
})), c = L(() => ({
|
|
5264
5264
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage") && !v.model.startsWith("config-storage_config-consul") && !v.model.startsWith("config-storage_config-redis") && !v.model.startsWith("config-storage_config-shm") && !v.model.startsWith("config-storage_config-vault"))
|
|
@@ -5266,13 +5266,13 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5266
5266
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-consul"))
|
|
5267
5267
|
})), p = L(() => ({
|
|
5268
5268
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-redis"))
|
|
5269
|
-
})),
|
|
5269
|
+
})), E = L(() => ({
|
|
5270
5270
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-shm"))
|
|
5271
5271
|
})), N = L(() => ({
|
|
5272
5272
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-vault"))
|
|
5273
5273
|
})), f = L(() => ({
|
|
5274
|
-
fields: t.formSchema.fields.filter((
|
|
5275
|
-
})), w = L(() => t.formModel.id && t.isEditing || !t.isEditing),
|
|
5274
|
+
fields: t.formSchema.fields.filter((y) => y.model.startsWith("config") && !l.value.fields.filter((v) => v.model === y.model).length && !c.value.fields.filter((v) => v.model === y.model).length || y.model === "tags")
|
|
5275
|
+
})), w = L(() => t.formModel.id && t.isEditing || !t.isEditing), I = [
|
|
5276
5276
|
{
|
|
5277
5277
|
hash: "#general",
|
|
5278
5278
|
title: "General"
|
|
@@ -5285,7 +5285,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5285
5285
|
hash: "#advanced",
|
|
5286
5286
|
title: "Advanced"
|
|
5287
5287
|
}
|
|
5288
|
-
],
|
|
5288
|
+
], F = [
|
|
5289
5289
|
{
|
|
5290
5290
|
label: "Lets Encrypt",
|
|
5291
5291
|
value: "letsEncrypt"
|
|
@@ -5303,119 +5303,119 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5303
5303
|
En(() => {
|
|
5304
5304
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5305
5305
|
});
|
|
5306
|
-
const
|
|
5307
|
-
n.value =
|
|
5308
|
-
},
|
|
5309
|
-
v === "config-storage" && (a.value =
|
|
5306
|
+
const b = (y) => {
|
|
5307
|
+
n.value = y.value, (y.value === "zeroSsl" || y.value === "other") && (y.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), y.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();
|
|
5308
|
+
}, k = (y, v) => {
|
|
5309
|
+
v === "config-storage" && (a.value = y), t.onModelUpdated();
|
|
5310
5310
|
};
|
|
5311
|
-
return (
|
|
5312
|
-
const
|
|
5311
|
+
return (y, v) => {
|
|
5312
|
+
const P = O("KSelect"), q = O("KTabs");
|
|
5313
5313
|
return u(), g("div", null, [
|
|
5314
|
-
e.formModel.id && e.isEditing || !e.isEditing ? (u(),
|
|
5314
|
+
e.formModel.id && e.isEditing || !e.isEditing ? (u(), A(ae, {
|
|
5315
5315
|
key: 0,
|
|
5316
5316
|
class: "global-fields",
|
|
5317
5317
|
model: e.formModel,
|
|
5318
5318
|
options: e.formOptions,
|
|
5319
5319
|
schema: d.value,
|
|
5320
5320
|
onModelUpdated: e.onModelUpdated
|
|
5321
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5322
|
-
|
|
5323
|
-
general:
|
|
5321
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5322
|
+
T(q, { tabs: I }, {
|
|
5323
|
+
general: C(() => [
|
|
5324
5324
|
h("div", Gc, [
|
|
5325
5325
|
v[0] || (v[0] = h("div", { class: "header-wrapper" }, [
|
|
5326
5326
|
h("span", { class: "section-header" }, "General Configuration Settings")
|
|
5327
5327
|
], -1)),
|
|
5328
5328
|
v[1] || (v[1] = h("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
5329
|
-
w.value ? (u(),
|
|
5329
|
+
w.value ? (u(), A(ae, {
|
|
5330
5330
|
key: 0,
|
|
5331
5331
|
model: e.formModel,
|
|
5332
5332
|
options: e.formOptions,
|
|
5333
5333
|
schema: l.value,
|
|
5334
5334
|
onModelUpdated: e.onModelUpdated
|
|
5335
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5335
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5336
5336
|
v[2] || (v[2] = h("hr", null, null, -1)),
|
|
5337
|
-
|
|
5337
|
+
T(P, {
|
|
5338
5338
|
class: "issuer-select",
|
|
5339
|
-
items:
|
|
5339
|
+
items: F,
|
|
5340
5340
|
label: "Issuer",
|
|
5341
|
-
onChange:
|
|
5341
|
+
onChange: b
|
|
5342
5342
|
}),
|
|
5343
5343
|
h("div", Wc, [
|
|
5344
|
-
n.value === "letsEncrypt" ? (u(),
|
|
5344
|
+
n.value === "letsEncrypt" ? (u(), A(ae, {
|
|
5345
5345
|
key: 0,
|
|
5346
5346
|
model: e.formModel,
|
|
5347
5347
|
options: e.formOptions,
|
|
5348
5348
|
schema: s.value,
|
|
5349
5349
|
onModelUpdated: e.onModelUpdated
|
|
5350
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5351
|
-
n.value === "zeroSsl" || n.value === "other" ? (u(),
|
|
5350
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5351
|
+
n.value === "zeroSsl" || n.value === "other" ? (u(), A(ae, {
|
|
5352
5352
|
key: 1,
|
|
5353
5353
|
model: e.formModel,
|
|
5354
5354
|
options: e.formOptions,
|
|
5355
5355
|
schema: o.value,
|
|
5356
5356
|
onModelUpdated: e.onModelUpdated
|
|
5357
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5357
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0)
|
|
5358
5358
|
])
|
|
5359
5359
|
])
|
|
5360
5360
|
]),
|
|
5361
|
-
storage:
|
|
5361
|
+
storage: C(() => [
|
|
5362
5362
|
h("div", Zc, [
|
|
5363
5363
|
v[3] || (v[3] = h("div", { class: "header-wrapper" }, [
|
|
5364
5364
|
h("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5365
5365
|
], -1)),
|
|
5366
5366
|
v[4] || (v[4] = h("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
5367
|
-
w.value ? (u(),
|
|
5367
|
+
w.value ? (u(), A(ae, {
|
|
5368
5368
|
key: 0,
|
|
5369
5369
|
model: e.formModel,
|
|
5370
5370
|
options: e.formOptions,
|
|
5371
5371
|
schema: c.value,
|
|
5372
|
-
onModelUpdated:
|
|
5373
|
-
}, null, 8, ["model", "options", "schema"])) :
|
|
5372
|
+
onModelUpdated: k
|
|
5373
|
+
}, null, 8, ["model", "options", "schema"])) : V("", !0),
|
|
5374
5374
|
h("div", Jc, [
|
|
5375
|
-
a.value === "consul" ? (u(),
|
|
5375
|
+
a.value === "consul" ? (u(), A(ae, {
|
|
5376
5376
|
key: 0,
|
|
5377
5377
|
model: e.formModel,
|
|
5378
5378
|
options: e.formOptions,
|
|
5379
5379
|
schema: m.value,
|
|
5380
5380
|
onModelUpdated: e.onModelUpdated
|
|
5381
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5382
|
-
a.value === "redis" ? (u(),
|
|
5381
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5382
|
+
a.value === "redis" ? (u(), A(ae, {
|
|
5383
5383
|
key: 1,
|
|
5384
5384
|
model: e.formModel,
|
|
5385
5385
|
options: e.formOptions,
|
|
5386
5386
|
schema: p.value,
|
|
5387
5387
|
onModelUpdated: e.onModelUpdated
|
|
5388
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5389
|
-
a.value === "shm" ? (u(),
|
|
5388
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5389
|
+
a.value === "shm" ? (u(), A(ae, {
|
|
5390
5390
|
key: 2,
|
|
5391
5391
|
model: e.formModel,
|
|
5392
5392
|
options: e.formOptions,
|
|
5393
|
-
schema:
|
|
5393
|
+
schema: E.value,
|
|
5394
5394
|
onModelUpdated: e.onModelUpdated
|
|
5395
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5396
|
-
a.value === "vault" ? (u(),
|
|
5395
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0),
|
|
5396
|
+
a.value === "vault" ? (u(), A(ae, {
|
|
5397
5397
|
key: 3,
|
|
5398
5398
|
model: e.formModel,
|
|
5399
5399
|
options: e.formOptions,
|
|
5400
5400
|
schema: N.value,
|
|
5401
5401
|
onModelUpdated: e.onModelUpdated
|
|
5402
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5402
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0)
|
|
5403
5403
|
])
|
|
5404
5404
|
])
|
|
5405
5405
|
]),
|
|
5406
|
-
advanced:
|
|
5406
|
+
advanced: C(() => [
|
|
5407
5407
|
h("div", Qc, [
|
|
5408
5408
|
v[5] || (v[5] = h("div", { class: "header-wrapper" }, [
|
|
5409
5409
|
h("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5410
5410
|
], -1)),
|
|
5411
5411
|
v[6] || (v[6] = h("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
5412
|
-
w.value ? (u(),
|
|
5412
|
+
w.value ? (u(), A(ae, {
|
|
5413
5413
|
key: 0,
|
|
5414
5414
|
model: e.formModel,
|
|
5415
5415
|
options: e.formOptions,
|
|
5416
5416
|
schema: f.value,
|
|
5417
5417
|
onModelUpdated: e.onModelUpdated
|
|
5418
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5418
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : V("", !0)
|
|
5419
5419
|
])
|
|
5420
5420
|
]),
|
|
5421
5421
|
_: 1
|
|
@@ -5442,8 +5442,8 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5442
5442
|
enableRedisPartial: { type: Boolean }
|
|
5443
5443
|
},
|
|
5444
5444
|
setup(e) {
|
|
5445
|
-
var
|
|
5446
|
-
it(he, (
|
|
5445
|
+
var q;
|
|
5446
|
+
it(he, (q = mt()) == null ? void 0 : q[He]);
|
|
5447
5447
|
const t = {
|
|
5448
5448
|
fixed: [
|
|
5449
5449
|
{
|
|
@@ -5503,183 +5503,183 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5503
5503
|
}, n = /* @__PURE__ */ new Set([
|
|
5504
5504
|
"selectionGroup",
|
|
5505
5505
|
"enabled",
|
|
5506
|
-
...["identifier", "limit", "window_size", "error_code", "error_message"].map((
|
|
5507
|
-
]), a = (
|
|
5508
|
-
var
|
|
5509
|
-
const
|
|
5510
|
-
return { fields: [(B = r.formSchema) == null ? void 0 : B.fields.find((se) => se.model === "enabled"),
|
|
5506
|
+
...["identifier", "limit", "window_size", "error_code", "error_message"].map((_) => `config-${_}`)
|
|
5507
|
+
]), a = (_) => _ === void 0 ? !1 : n.has(_), { t: i } = ge("en-us", ve), r = e, s = L(() => {
|
|
5508
|
+
var $, R, B;
|
|
5509
|
+
const _ = (R = ($ = r.formSchema) == null ? void 0 : $.fields) == null ? void 0 : R.find((se) => se.type === "selectionGroup" && se.model === "selectionGroup");
|
|
5510
|
+
return { fields: [(B = r.formSchema) == null ? void 0 : B.fields.find((se) => se.model === "enabled"), _].filter(Boolean) };
|
|
5511
5511
|
}), o = L(() => {
|
|
5512
5512
|
var se, Ue;
|
|
5513
|
-
const
|
|
5513
|
+
const _ = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ie) => !a(ie.model))) ?? [], S = [], $ = [], R = [];
|
|
5514
5514
|
let B = !1;
|
|
5515
|
-
for (const ie of
|
|
5516
|
-
const
|
|
5517
|
-
if (
|
|
5518
|
-
if (
|
|
5519
|
-
(ie.model === "config-redis-cluster_addresses" || ie.model === "config-redis-sentinel_addresses") && (ie.inputAttributes.help = i("rla.redis.address_example")),
|
|
5515
|
+
for (const ie of _) {
|
|
5516
|
+
const De = ie.model;
|
|
5517
|
+
if (De !== void 0) {
|
|
5518
|
+
if (De.startsWith("config-redis-")) {
|
|
5519
|
+
(ie.model === "config-redis-cluster_addresses" || ie.model === "config-redis-sentinel_addresses") && (ie.inputAttributes.help = i("rla.redis.address_example")), $.push(ie);
|
|
5520
5520
|
continue;
|
|
5521
5521
|
}
|
|
5522
|
-
B ?
|
|
5522
|
+
B ? R.push(ie) : S.push(ie), ie.model === "config-strategy" && (B = !0);
|
|
5523
5523
|
}
|
|
5524
5524
|
}
|
|
5525
5525
|
return {
|
|
5526
5526
|
endsWithStrategy: { fields: S },
|
|
5527
|
-
redis: r.enableRedisPartial ? { fields: [{ fields:
|
|
5528
|
-
afterStrategy: { fields:
|
|
5527
|
+
redis: r.enableRedisPartial ? { fields: [{ fields: $, id: "_redis", model: "__redis_partial", redisType: r.formSchema._supported_redis_partial_type }] } : { fields: $ },
|
|
5528
|
+
afterStrategy: { fields: R }
|
|
5529
5529
|
};
|
|
5530
5530
|
}), d = L(() => {
|
|
5531
|
-
const
|
|
5532
|
-
return Object.prototype.hasOwnProperty.call(t,
|
|
5531
|
+
const _ = r.formModel["config-window_type"];
|
|
5532
|
+
return Object.prototype.hasOwnProperty.call(t, _) ? t[_] : [];
|
|
5533
5533
|
}), l = L(() => {
|
|
5534
|
-
var
|
|
5535
|
-
return (S = (
|
|
5534
|
+
var _, S;
|
|
5535
|
+
return (S = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : S.find(($) => $.model === "config-identifier");
|
|
5536
5536
|
}), c = L(
|
|
5537
5537
|
() => {
|
|
5538
|
-
var
|
|
5539
|
-
return (((
|
|
5540
|
-
label: i(`rla.identifiers.options.${
|
|
5541
|
-
value:
|
|
5538
|
+
var _, S, $;
|
|
5539
|
+
return ((($ = (S = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : S.find((R) => R.model === "config-identifier")) == null ? void 0 : $.values) ?? []).map((R) => ({
|
|
5540
|
+
label: i(`rla.identifiers.options.${R}`),
|
|
5541
|
+
value: R
|
|
5542
5542
|
}));
|
|
5543
5543
|
}
|
|
5544
|
-
), m = ue(), p = ue(!0),
|
|
5544
|
+
), m = ue(), p = ue(!0), E = L(
|
|
5545
5545
|
() => {
|
|
5546
|
-
var
|
|
5547
|
-
return r.formModel["config-window_type"] ?? ((
|
|
5546
|
+
var _, S, $;
|
|
5547
|
+
return r.formModel["config-window_type"] ?? (($ = (S = (_ = r.formSchema) == null ? void 0 : _.fields) == null ? void 0 : S.find((R) => R.model === "config-window_type")) == null ? void 0 : $.default);
|
|
5548
5548
|
}
|
|
5549
5549
|
), N = L(() => {
|
|
5550
|
-
var S,
|
|
5551
|
-
const
|
|
5552
|
-
return (((Ue = (se = (B = r.formSchema) == null ? void 0 : B.fields) == null ? void 0 : se.find((ie) => ie.model === "config-window_type")) == null ? void 0 : Ue.values) ?? []).sort((ie,
|
|
5550
|
+
var S, $, R, B, se, Ue;
|
|
5551
|
+
const _ = (R = ($ = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : $.find((ie) => ie.model === "config-window_type")) == null ? void 0 : R.default;
|
|
5552
|
+
return (((Ue = (se = (B = r.formSchema) == null ? void 0 : B.fields) == null ? void 0 : se.find((ie) => ie.model === "config-window_type")) == null ? void 0 : Ue.values) ?? []).sort((ie, De) => ie === _ ? -1 : De === _ ? 1 : 0);
|
|
5553
5553
|
}), f = L(() => {
|
|
5554
5554
|
var S;
|
|
5555
|
-
const
|
|
5555
|
+
const _ = (S = r.formModel["config-limit"]) == null ? void 0 : S.map(($, R) => {
|
|
5556
5556
|
var B, se;
|
|
5557
5557
|
return {
|
|
5558
|
-
limit:
|
|
5559
|
-
windowSize: (se = (B = r.formModel) == null ? void 0 : B["config-window_size"]) == null ? void 0 : se[
|
|
5558
|
+
limit: $,
|
|
5559
|
+
windowSize: (se = (B = r.formModel) == null ? void 0 : B["config-window_size"]) == null ? void 0 : se[R]
|
|
5560
5560
|
};
|
|
5561
5561
|
});
|
|
5562
|
-
return !Array.isArray(
|
|
5562
|
+
return !Array.isArray(_) || _.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : _;
|
|
5563
5563
|
}), w = L(
|
|
5564
5564
|
() => {
|
|
5565
|
-
var
|
|
5566
|
-
return ((
|
|
5565
|
+
var _, S, $, R;
|
|
5566
|
+
return ((_ = r.formModel) == null ? void 0 : _["config-identifier"]) ?? ((R = ($ = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : $.find((B) => B.model === "config-identifier")) == null ? void 0 : R.default);
|
|
5567
5567
|
}
|
|
5568
|
-
),
|
|
5568
|
+
), I = L(
|
|
5569
5569
|
() => {
|
|
5570
|
-
var
|
|
5571
|
-
return ((
|
|
5570
|
+
var _, S, $, R;
|
|
5571
|
+
return ((_ = r.formModel) == null ? void 0 : _["config-error_code"]) ?? ((R = ($ = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : $.find((B) => B.model === "config-error_code")) == null ? void 0 : R.default);
|
|
5572
5572
|
}
|
|
5573
|
-
),
|
|
5573
|
+
), F = L(
|
|
5574
5574
|
() => {
|
|
5575
|
-
var
|
|
5576
|
-
return ((
|
|
5575
|
+
var _, S, $, R;
|
|
5576
|
+
return ((_ = r.formModel) == null ? void 0 : _["config-error_message"]) ?? ((R = ($ = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : $.find((B) => B.model === "config-error_message")) == null ? void 0 : R.default);
|
|
5577
5577
|
}
|
|
5578
|
-
),
|
|
5578
|
+
), b = (_, S) => {
|
|
5579
5579
|
if (S === m.value) {
|
|
5580
5580
|
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Kt(() => {
|
|
5581
5581
|
m.value = void 0;
|
|
5582
5582
|
});
|
|
5583
5583
|
return;
|
|
5584
5584
|
}
|
|
5585
|
-
r.onModelUpdated([
|
|
5585
|
+
r.onModelUpdated([_.config.limit], "config-limit"), r.onModelUpdated([_.config.window_size], "config-window_size"), Kt(() => {
|
|
5586
5586
|
m.value = S;
|
|
5587
5587
|
});
|
|
5588
|
-
},
|
|
5589
|
-
m.value !== void 0 && (m.value = void 0),
|
|
5590
|
-
},
|
|
5591
|
-
var
|
|
5588
|
+
}, k = (_) => {
|
|
5589
|
+
m.value !== void 0 && (m.value = void 0), _ !== null && r.onModelUpdated(_.toString(), "config-window_type");
|
|
5590
|
+
}, j = (_, S) => {
|
|
5591
|
+
var R;
|
|
5592
5592
|
m.value !== void 0 && (m.value = void 0);
|
|
5593
|
-
const
|
|
5594
|
-
|
|
5595
|
-
},
|
|
5596
|
-
var
|
|
5593
|
+
const $ = we(((R = r.formModel) == null ? void 0 : R["config-limit"]) ?? []);
|
|
5594
|
+
$[_] = S, r.onModelUpdated($, "config-limit");
|
|
5595
|
+
}, y = (_, S) => {
|
|
5596
|
+
var R;
|
|
5597
5597
|
m.value !== void 0 && (m.value = void 0);
|
|
5598
|
-
const
|
|
5599
|
-
|
|
5600
|
-
}, v = (
|
|
5601
|
-
var
|
|
5598
|
+
const $ = we(((R = r.formModel) == null ? void 0 : R["config-window_size"]) ?? []);
|
|
5599
|
+
$[_] = S, r.onModelUpdated($, "config-window_size");
|
|
5600
|
+
}, v = (_) => {
|
|
5601
|
+
var R, B;
|
|
5602
5602
|
m.value !== void 0 && (m.value = void 0);
|
|
5603
|
-
const S = we(((
|
|
5604
|
-
S.length === 0 && S.push(void 0),
|
|
5605
|
-
},
|
|
5606
|
-
var S,
|
|
5603
|
+
const S = we(((R = r.formModel) == null ? void 0 : R["config-limit"]) ?? []), $ = we(((B = r.formModel) == null ? void 0 : B["config-window_size"]) ?? []);
|
|
5604
|
+
S.length === 0 && S.push(void 0), $.length === 0 && $.push(void 0), S.splice(_ + 1, 0, void 0), $.splice(_ + 1, 0, void 0), r.onModelUpdated(S, "config-limit"), r.onModelUpdated($, "config-window_size");
|
|
5605
|
+
}, P = (_) => {
|
|
5606
|
+
var S, $;
|
|
5607
5607
|
if (f.value.length > 1) {
|
|
5608
5608
|
m.value !== void 0 && (m.value = void 0);
|
|
5609
|
-
const
|
|
5610
|
-
|
|
5609
|
+
const R = we(((S = r.formModel) == null ? void 0 : S["config-limit"]) ?? []), B = we((($ = r.formModel) == null ? void 0 : $["config-window_size"]) ?? []);
|
|
5610
|
+
R.length === 0 && R.push(void 0), B.length === 0 && B.push(void 0), R.splice(_, 1), B.splice(_, 1), r.onModelUpdated(R, "config-limit"), r.onModelUpdated(B, "config-window_size");
|
|
5611
5611
|
}
|
|
5612
5612
|
};
|
|
5613
|
-
return Ut(() => r.formModel["config-strategy"], (
|
|
5614
|
-
|
|
5615
|
-
}), (
|
|
5616
|
-
const
|
|
5617
|
-
return u(), g(
|
|
5613
|
+
return Ut(() => r.formModel["config-strategy"], (_) => {
|
|
5614
|
+
_ !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
|
|
5615
|
+
}), (_, S) => {
|
|
5616
|
+
const $ = O("KLabel"), R = O("KRadio"), B = O("KInput"), se = O("KButton"), Ue = O("KBadge"), ie = O("KTooltip"), De = O("KCard"), Ci = O("KSelect"), Ii = O("KCollapse");
|
|
5617
|
+
return u(), g(D, null, [
|
|
5618
5618
|
h("div", tm, [
|
|
5619
|
-
|
|
5620
|
-
model:
|
|
5621
|
-
options:
|
|
5619
|
+
T(ae, {
|
|
5620
|
+
model: _.formModel,
|
|
5621
|
+
options: _.formOptions,
|
|
5622
5622
|
schema: s.value,
|
|
5623
|
-
onModelUpdated: S[0] || (S[0] = (
|
|
5623
|
+
onModelUpdated: S[0] || (S[0] = (K, te) => _.onModelUpdated(K, te))
|
|
5624
5624
|
}, null, 8, ["model", "options", "schema"]),
|
|
5625
|
-
|
|
5626
|
-
title:
|
|
5627
|
-
|
|
5625
|
+
T(De, { class: "rla-form-request-limits" }, {
|
|
5626
|
+
title: C(() => [
|
|
5627
|
+
T($, {
|
|
5628
5628
|
class: "rla-form-request-limits-title",
|
|
5629
5629
|
for: "rla-form-request-limits-legend",
|
|
5630
5630
|
required: ""
|
|
5631
5631
|
}, {
|
|
5632
|
-
default:
|
|
5633
|
-
ee(
|
|
5632
|
+
default: C(() => [
|
|
5633
|
+
ee(U(M(i)("rla.request_limits.title")), 1)
|
|
5634
5634
|
]),
|
|
5635
5635
|
_: 1
|
|
5636
5636
|
}),
|
|
5637
|
-
h("div", nm,
|
|
5637
|
+
h("div", nm, U(M(i)("rla.request_limits.subtitle")), 1)
|
|
5638
5638
|
]),
|
|
5639
|
-
default:
|
|
5639
|
+
default: C(() => [
|
|
5640
5640
|
h("div", im, [
|
|
5641
5641
|
h("div", am, [
|
|
5642
|
-
|
|
5642
|
+
T($, {
|
|
5643
5643
|
class: "rla-form-window-type-label",
|
|
5644
5644
|
"tooltip-attributes": {
|
|
5645
5645
|
maxWidth: "300",
|
|
5646
5646
|
placement: "top"
|
|
5647
5647
|
}
|
|
5648
5648
|
}, {
|
|
5649
|
-
tooltip:
|
|
5649
|
+
tooltip: C(() => [
|
|
5650
5650
|
h("div", {
|
|
5651
5651
|
innerHTML: M(i)("rla.window_type.help")
|
|
5652
5652
|
}, null, 8, rm)
|
|
5653
5653
|
]),
|
|
5654
|
-
default:
|
|
5655
|
-
ee(
|
|
5654
|
+
default: C(() => [
|
|
5655
|
+
ee(U(M(i)("rla.window_type.label")) + " ", 1)
|
|
5656
5656
|
]),
|
|
5657
5657
|
_: 1
|
|
5658
5658
|
}),
|
|
5659
5659
|
h("div", om, [
|
|
5660
|
-
(u(!0), g(
|
|
5661
|
-
key: `window-type-${
|
|
5662
|
-
"model-value":
|
|
5663
|
-
name:
|
|
5664
|
-
"selected-value":
|
|
5665
|
-
"onUpdate:modelValue":
|
|
5660
|
+
(u(!0), g(D, null, J(N.value, (K) => (u(), A(R, {
|
|
5661
|
+
key: `window-type-${K}`,
|
|
5662
|
+
"model-value": E.value,
|
|
5663
|
+
name: K,
|
|
5664
|
+
"selected-value": K,
|
|
5665
|
+
"onUpdate:modelValue": k
|
|
5666
5666
|
}, {
|
|
5667
|
-
default:
|
|
5668
|
-
ee(
|
|
5667
|
+
default: C(() => [
|
|
5668
|
+
ee(U(M(i)(`rla.window_type.options.${K}`)), 1)
|
|
5669
5669
|
]),
|
|
5670
5670
|
_: 2
|
|
5671
5671
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5672
5672
|
])
|
|
5673
5673
|
]),
|
|
5674
5674
|
h("div", sm, [
|
|
5675
|
-
(u(!0), g(
|
|
5675
|
+
(u(!0), g(D, null, J(f.value, (K, te) => (u(), g("div", {
|
|
5676
5676
|
key: te.toString()
|
|
5677
5677
|
}, [
|
|
5678
|
-
|
|
5678
|
+
T($, {
|
|
5679
5679
|
for: `rla-form-request-limits-item-${te}-legend`
|
|
5680
5680
|
}, {
|
|
5681
|
-
default:
|
|
5682
|
-
ee(
|
|
5681
|
+
default: C(() => [
|
|
5682
|
+
ee(U(M(i)("rla.request_limits.label_index", { index: te + 1 })), 1)
|
|
5683
5683
|
]),
|
|
5684
5684
|
_: 2
|
|
5685
5685
|
}, 1032, ["for"]),
|
|
@@ -5688,38 +5688,38 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5688
5688
|
id: `rla-form-request-limits-item-${te}-legend`,
|
|
5689
5689
|
class: "rla-form-request-limits-inputs"
|
|
5690
5690
|
}, [
|
|
5691
|
-
|
|
5692
|
-
"model-value":
|
|
5691
|
+
T(B, {
|
|
5692
|
+
"model-value": K.limit && K.limit.toString(),
|
|
5693
5693
|
placeholder: M(i)("rla.request_limits.request_number"),
|
|
5694
5694
|
type: "number",
|
|
5695
|
-
"onUpdate:modelValue": (wt) =>
|
|
5695
|
+
"onUpdate:modelValue": (wt) => j(te, Number.parseInt(wt))
|
|
5696
5696
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5697
|
-
h("div", null,
|
|
5698
|
-
|
|
5699
|
-
"model-value":
|
|
5697
|
+
h("div", null, U(M(i)("rla.request_limits.interval_determiner")), 1),
|
|
5698
|
+
T(B, {
|
|
5699
|
+
"model-value": K.windowSize && K.windowSize.toString(),
|
|
5700
5700
|
placeholder: M(i)("rla.request_limits.time_interval"),
|
|
5701
5701
|
type: "number",
|
|
5702
|
-
"onUpdate:modelValue": (wt) =>
|
|
5702
|
+
"onUpdate:modelValue": (wt) => y(te, Number.parseInt(wt))
|
|
5703
5703
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5704
|
-
h("div", null,
|
|
5704
|
+
h("div", null, U(M(i)("rla.request_limits.seconds")), 1)
|
|
5705
5705
|
], 8, dm),
|
|
5706
5706
|
h("div", um, [
|
|
5707
|
-
|
|
5707
|
+
T(se, {
|
|
5708
5708
|
appearance: "tertiary",
|
|
5709
5709
|
disabled: f.value.length <= 1,
|
|
5710
|
-
onClick: () =>
|
|
5710
|
+
onClick: () => P(te)
|
|
5711
5711
|
}, {
|
|
5712
|
-
default:
|
|
5713
|
-
|
|
5712
|
+
default: C(() => [
|
|
5713
|
+
T(M(ji))
|
|
5714
5714
|
]),
|
|
5715
5715
|
_: 2
|
|
5716
5716
|
}, 1032, ["disabled", "onClick"]),
|
|
5717
|
-
|
|
5717
|
+
T(se, {
|
|
5718
5718
|
appearance: "tertiary",
|
|
5719
5719
|
onClick: () => v(te)
|
|
5720
5720
|
}, {
|
|
5721
|
-
default:
|
|
5722
|
-
|
|
5721
|
+
default: C(() => [
|
|
5722
|
+
T(M($t))
|
|
5723
5723
|
]),
|
|
5724
5724
|
_: 2
|
|
5725
5725
|
}, 1032, ["onClick"])
|
|
@@ -5728,26 +5728,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5728
5728
|
]))), 128))
|
|
5729
5729
|
]),
|
|
5730
5730
|
d.value.length > 0 ? (u(), g("div", cm, [
|
|
5731
|
-
h("div", null,
|
|
5731
|
+
h("div", null, U(M(i)("rla.start_with_a_use_case")), 1),
|
|
5732
5732
|
h("div", mm, [
|
|
5733
|
-
(u(!0), g(
|
|
5733
|
+
(u(!0), g(D, null, J(d.value, (K, te) => (u(), A(ie, {
|
|
5734
5734
|
key: `use-case-${te}`,
|
|
5735
5735
|
"max-width": "300"
|
|
5736
5736
|
}, {
|
|
5737
|
-
content:
|
|
5738
|
-
h("div", null,
|
|
5737
|
+
content: C(() => [
|
|
5738
|
+
h("div", null, U(K.description), 1),
|
|
5739
5739
|
S[10] || (S[10] = h("br", null, null, -1)),
|
|
5740
|
-
h("div", null,
|
|
5741
|
-
h("div", null,
|
|
5740
|
+
h("div", null, U(M(i)("rla.request_limits.label")) + ": " + U(K.config.limit), 1),
|
|
5741
|
+
h("div", null, U(M(i)("rla.request_limits.time_interval")) + ": " + U(K.config.window_size), 1)
|
|
5742
5742
|
]),
|
|
5743
|
-
default:
|
|
5744
|
-
|
|
5745
|
-
appearance: m.value === `${
|
|
5743
|
+
default: C(() => [
|
|
5744
|
+
T(Ue, {
|
|
5745
|
+
appearance: m.value === `${E.value}-${te}` ? "info" : "decorative",
|
|
5746
5746
|
class: "rla-form-request-limits-examples-badge",
|
|
5747
|
-
onClick: () =>
|
|
5747
|
+
onClick: () => b(K, `${E.value}-${te}`)
|
|
5748
5748
|
}, {
|
|
5749
|
-
default:
|
|
5750
|
-
ee(
|
|
5749
|
+
default: C(() => [
|
|
5750
|
+
ee(U(K.label), 1)
|
|
5751
5751
|
]),
|
|
5752
5752
|
_: 2
|
|
5753
5753
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -5755,14 +5755,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5755
5755
|
_: 2
|
|
5756
5756
|
}, 1024))), 128))
|
|
5757
5757
|
])
|
|
5758
|
-
])) :
|
|
5758
|
+
])) : V("", !0)
|
|
5759
5759
|
])
|
|
5760
5760
|
]),
|
|
5761
5761
|
_: 1
|
|
5762
5762
|
}),
|
|
5763
|
-
|
|
5763
|
+
T(Ci, {
|
|
5764
5764
|
modelValue: w.value,
|
|
5765
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
5765
|
+
"onUpdate:modelValue": S[1] || (S[1] = (K) => w.value = K),
|
|
5766
5766
|
class: "rla-form-identifiers",
|
|
5767
5767
|
items: c.value,
|
|
5768
5768
|
label: M(i)("rla.identifiers.label"),
|
|
@@ -5773,9 +5773,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5773
5773
|
}
|
|
5774
5774
|
},
|
|
5775
5775
|
required: "",
|
|
5776
|
-
onSelected: S[2] || (S[2] = (
|
|
5776
|
+
onSelected: S[2] || (S[2] = (K) => r.onModelUpdated(K.value, "config-identifier"))
|
|
5777
5777
|
}, {
|
|
5778
|
-
"label-tooltip":
|
|
5778
|
+
"label-tooltip": C(() => [
|
|
5779
5779
|
h("div", {
|
|
5780
5780
|
innerHTML: l.value && l.value.help
|
|
5781
5781
|
}, null, 8, fm)
|
|
@@ -5783,7 +5783,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5783
5783
|
_: 1
|
|
5784
5784
|
}, 8, ["modelValue", "items", "label"]),
|
|
5785
5785
|
h("div", null, [
|
|
5786
|
-
|
|
5786
|
+
T($, {
|
|
5787
5787
|
for: "rla-form-error-legend",
|
|
5788
5788
|
info: M(i)("rla.error_message.help"),
|
|
5789
5789
|
required: "",
|
|
@@ -5792,65 +5792,65 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5792
5792
|
placement: "top"
|
|
5793
5793
|
}
|
|
5794
5794
|
}, {
|
|
5795
|
-
default:
|
|
5796
|
-
ee(
|
|
5795
|
+
default: C(() => [
|
|
5796
|
+
ee(U(M(i)("rla.error_message.label")), 1)
|
|
5797
5797
|
]),
|
|
5798
5798
|
_: 1
|
|
5799
5799
|
}, 8, ["info"]),
|
|
5800
5800
|
h("legend", hm, [
|
|
5801
|
-
|
|
5801
|
+
T(B, {
|
|
5802
5802
|
class: "input-error-code",
|
|
5803
|
-
"model-value":
|
|
5803
|
+
"model-value": I.value && I.value.toString(),
|
|
5804
5804
|
placeholder: M(i)("rla.error_message.code_placeholder"),
|
|
5805
5805
|
type: "number",
|
|
5806
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
5806
|
+
"onUpdate:modelValue": S[3] || (S[3] = (K) => _.onModelUpdated(Number.parseInt(K), "config-error_code"))
|
|
5807
5807
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5808
5808
|
S[11] || (S[11] = h("div", null, ":", -1)),
|
|
5809
|
-
|
|
5810
|
-
"model-value":
|
|
5809
|
+
T(B, {
|
|
5810
|
+
"model-value": F.value,
|
|
5811
5811
|
placeholder: M(i)("rla.error_message.message_placeholder"),
|
|
5812
|
-
"onUpdate:modelValue": S[4] || (S[4] = (
|
|
5812
|
+
"onUpdate:modelValue": S[4] || (S[4] = (K) => _.onModelUpdated(K, "config-error_message"))
|
|
5813
5813
|
}, null, 8, ["model-value", "placeholder"])
|
|
5814
5814
|
])
|
|
5815
5815
|
])
|
|
5816
5816
|
]),
|
|
5817
|
-
|
|
5817
|
+
T(Ii, {
|
|
5818
5818
|
modelValue: p.value,
|
|
5819
|
-
"onUpdate:modelValue": S[9] || (S[9] = (
|
|
5819
|
+
"onUpdate:modelValue": S[9] || (S[9] = (K) => p.value = K),
|
|
5820
5820
|
"trigger-label": M(i)("rla.view_advanced_fields")
|
|
5821
5821
|
}, {
|
|
5822
|
-
default:
|
|
5823
|
-
|
|
5824
|
-
model:
|
|
5825
|
-
options:
|
|
5822
|
+
default: C(() => [
|
|
5823
|
+
T(ae, {
|
|
5824
|
+
model: _.formModel,
|
|
5825
|
+
options: _.formOptions,
|
|
5826
5826
|
schema: o.value.endsWithStrategy,
|
|
5827
|
-
onModelUpdated: S[5] || (S[5] = (
|
|
5827
|
+
onModelUpdated: S[5] || (S[5] = (K, te) => _.onModelUpdated(K, te))
|
|
5828
5828
|
}, null, 8, ["model", "options", "schema"]),
|
|
5829
|
-
|
|
5829
|
+
_.formModel["config-strategy"] === "redis" ? (u(), A(ne(_.enableRedisPartial ? "div" : "KCard"), {
|
|
5830
5830
|
key: 0,
|
|
5831
5831
|
class: "rla-form-redis-card",
|
|
5832
5832
|
title: M(i)("rla.redis.title")
|
|
5833
5833
|
}, {
|
|
5834
|
-
default:
|
|
5835
|
-
|
|
5836
|
-
"enable-redis-partial":
|
|
5837
|
-
"is-editing":
|
|
5838
|
-
model:
|
|
5839
|
-
options:
|
|
5834
|
+
default: C(() => [
|
|
5835
|
+
T(ae, {
|
|
5836
|
+
"enable-redis-partial": _.enableRedisPartial,
|
|
5837
|
+
"is-editing": _.isEditing,
|
|
5838
|
+
model: _.formModel,
|
|
5839
|
+
options: _.formOptions,
|
|
5840
5840
|
schema: o.value.redis,
|
|
5841
|
-
onModelUpdated: S[6] || (S[6] = (
|
|
5842
|
-
onPartialToggled:
|
|
5843
|
-
onShowNewPartialModal: S[7] || (S[7] = () =>
|
|
5841
|
+
onModelUpdated: S[6] || (S[6] = (K, te) => _.onModelUpdated(K, te)),
|
|
5842
|
+
onPartialToggled: _.onPartialToggled,
|
|
5843
|
+
onShowNewPartialModal: S[7] || (S[7] = () => _.showNewPartialModal(_.formSchema._supported_redis_partial_type))
|
|
5844
5844
|
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onPartialToggled"])
|
|
5845
5845
|
]),
|
|
5846
5846
|
_: 1
|
|
5847
|
-
}, 8, ["title"])) :
|
|
5848
|
-
|
|
5849
|
-
class: W({ "rla-last-vfg":
|
|
5850
|
-
model:
|
|
5851
|
-
options:
|
|
5847
|
+
}, 8, ["title"])) : V("", !0),
|
|
5848
|
+
T(ae, {
|
|
5849
|
+
class: W({ "rla-last-vfg": _.formModel["config-strategy"] !== "redis" }),
|
|
5850
|
+
model: _.formModel,
|
|
5851
|
+
options: _.formOptions,
|
|
5852
5852
|
schema: o.value.afterStrategy,
|
|
5853
|
-
onModelUpdated: S[8] || (S[8] = (
|
|
5853
|
+
onModelUpdated: S[8] || (S[8] = (K, te) => _.onModelUpdated(K, te))
|
|
5854
5854
|
}, null, 8, ["class", "model", "options", "schema"])
|
|
5855
5855
|
]),
|
|
5856
5856
|
_: 1
|
|
@@ -5861,9 +5861,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5861
5861
|
}), gm = /* @__PURE__ */ x(pm, [["__scopeId", "data-v-f6dcb65c"]]), Mm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5862
5862
|
__proto__: null,
|
|
5863
5863
|
ACMEForm: em,
|
|
5864
|
-
ExitTransformer:
|
|
5864
|
+
ExitTransformer: zc,
|
|
5865
5865
|
OIDCForm: qc,
|
|
5866
|
-
PostFunction:
|
|
5866
|
+
PostFunction: Dc,
|
|
5867
5867
|
RLAForm: gm
|
|
5868
5868
|
}, Symbol.toStringTag, { value: "Module" })), Sm = [
|
|
5869
5869
|
"array",
|
|
@@ -5892,7 +5892,6 @@ export {
|
|
|
5892
5892
|
Wr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5893
5893
|
ae as VueFormGenerator,
|
|
5894
5894
|
wm as abstractField,
|
|
5895
|
-
be as composables,
|
|
5896
5895
|
Sm as customFields,
|
|
5897
5896
|
Tm as default,
|
|
5898
5897
|
Cm as getSharedFormName,
|