@kong-ui-public/forms 4.11.17 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist/forms.es.js +719 -717
- 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 +1 -1
- package/dist/types/components/forms/OIDCForm.vue.d.ts +1 -1
- package/dist/types/composables/useAbstractFields.d.ts +3 -2
- package/dist/types/composables/useAbstractFields.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/form-fields.d.ts +2 -0
- package/dist/types/types/form-fields.d.ts.map +1 -1
- package/package.json +1 -1
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 $, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, withCtx as I, renderSlot as Oe, unref as M, createTextVNode as ee, createBlock as E, resolveDynamicComponent as ne, Fragment as K, 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 R, 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,12 +18,12 @@ function qi(e) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
var Ki = qi();
|
|
21
|
-
function
|
|
21
|
+
function Bi(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, Di = typeof self == "object" && self && self.Object === Object && self, pe = Vn || Di || 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
28
|
var t = zi.call(e, We), n = e[We];
|
|
29
29
|
try {
|
|
@@ -38,20 +38,20 @@ 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]", Bt = 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 : Bt && Bt 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 Dt(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 = Dt(/* @__PURE__ */ function() {
|
|
53
53
|
return arguments;
|
|
54
|
-
}()) ?
|
|
54
|
+
}()) ? Dt : function(e) {
|
|
55
55
|
return Fe(e) && Xi.call(e, "callee") && !ea.call(e, "callee");
|
|
56
56
|
}, ke = Array.isArray;
|
|
57
57
|
function na() {
|
|
@@ -84,8 +84,8 @@ var Kn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
86
|
}(), Yt = xe && xe.isTypedArray, Va = Yt ? Vt(Yt) : Ua, ja = Object.prototype, Ra = ja.hasOwnProperty;
|
|
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 ?
|
|
87
|
+
function Bn(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 ? Bi(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 Dn(e, t) {
|
|
103
103
|
return function(n) {
|
|
104
104
|
return e(t(n));
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
var Na =
|
|
107
|
+
var Na = Dn(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 Ba = "[object AsyncFunction]", Da = "[object Function]", za = "[object GeneratorFunction]", xa = "[object Proxy]";
|
|
121
|
+
function z(e) {
|
|
122
122
|
if (!me(e))
|
|
123
123
|
return !1;
|
|
124
124
|
var t = Ee(e);
|
|
125
|
-
return t ==
|
|
125
|
+
return t == Da || t == za || t == Ba || t == xa;
|
|
126
126
|
}
|
|
127
127
|
function ft(e) {
|
|
128
|
-
return e != null && qn(e.length) && !
|
|
128
|
+
return e != null && qn(e.length) && !z(e);
|
|
129
129
|
}
|
|
130
130
|
function ht(e) {
|
|
131
|
-
return ft(e) ?
|
|
131
|
+
return ft(e) ? Bn(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 = z(e) ? dr : ar;
|
|
197
197
|
return t.test(qe(e));
|
|
198
198
|
}
|
|
199
199
|
function cr(e, t) {
|
|
@@ -354,21 +354,21 @@ 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 Br(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
|
|
362
|
+
var Dr = 1 / 0, Gt = Ae ? Ae.prototype : void 0, Wt = Gt ? Gt.toString : void 0;
|
|
363
363
|
function zn(e) {
|
|
364
364
|
if (typeof e == "string")
|
|
365
365
|
return e;
|
|
366
366
|
if (ke(e))
|
|
367
|
-
return
|
|
367
|
+
return Br(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 == -Dr ? "-0" : t;
|
|
372
372
|
}
|
|
373
373
|
function xn(e) {
|
|
374
374
|
return e == null ? "" : zn(e);
|
|
@@ -389,7 +389,7 @@ function Hr(e, t) {
|
|
|
389
389
|
e = e[Yr(t[n++])];
|
|
390
390
|
return n && n == a ? e : void 0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function D(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) ? Bn(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 = Dn(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;
|
|
@@ -583,7 +583,7 @@ 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]", Bo = "[object String]", Do = "[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) {
|
|
@@ -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 Bo:
|
|
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 Do:
|
|
617
617
|
return Vo(e);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
@@ -668,17 +668,17 @@ function Qe(e, t, n, a, i, r) {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
r || (r = new Ge());
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
671
|
+
var F = r.get(e);
|
|
672
|
+
if (F)
|
|
673
|
+
return F;
|
|
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, T) {
|
|
677
|
+
s.set(T, Qe(w, t, n, T, 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, T) {
|
|
681
|
+
f && (T = w, w = e[T]), Hn(s, T, Qe(w, t, n, T, 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
|
+
[D(this.options, "validationErrorClass", "error")]: t,
|
|
699
|
+
[D(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 z(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 z(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 z(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 z(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 Bs(e) {
|
|
738
738
|
return e && e.slice(0, qs(e) + 1).replace(Ks, "");
|
|
739
739
|
}
|
|
740
|
-
var fn = NaN,
|
|
740
|
+
var fn = NaN, Ds = /^[-+]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 =
|
|
752
|
+
e = Bs(e);
|
|
753
753
|
var n = zs.test(e);
|
|
754
|
-
return n || xs.test(e) ? Ys(e.slice(2), n ? 2 : 8) :
|
|
754
|
+
return n || xs.test(e) ? Ys(e.slice(2), n ? 2 : 8) : Ds.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 F(_) {
|
|
763
|
+
var v = a, j = i;
|
|
764
|
+
return a = i = void 0, l = _, s = e.apply(j, v), s;
|
|
765
765
|
}
|
|
766
|
-
function N(
|
|
767
|
-
return l =
|
|
766
|
+
function N(_) {
|
|
767
|
+
return l = _, o = setTimeout(T, t), c ? F(_) : s;
|
|
768
768
|
}
|
|
769
|
-
function f(
|
|
770
|
-
var v =
|
|
771
|
-
return m ? Ws(
|
|
769
|
+
function f(_) {
|
|
770
|
+
var v = _ - d, j = _ - l, H = t - v;
|
|
771
|
+
return m ? Ws(H, r - j) : H;
|
|
772
772
|
}
|
|
773
|
-
function w(
|
|
774
|
-
var v =
|
|
775
|
-
return d === void 0 || v >= t || v < 0 || m &&
|
|
773
|
+
function w(_) {
|
|
774
|
+
var v = _ - d, j = _ - l;
|
|
775
|
+
return d === void 0 || v >= t || v < 0 || m && j >= r;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
var
|
|
779
|
-
if (w(
|
|
780
|
-
return
|
|
781
|
-
o = setTimeout(
|
|
777
|
+
function T() {
|
|
778
|
+
var _ = Tt();
|
|
779
|
+
if (w(_))
|
|
780
|
+
return U(_);
|
|
781
|
+
o = setTimeout(T, f(_));
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return o = void 0, p && a ?
|
|
783
|
+
function U(_) {
|
|
784
|
+
return o = void 0, p && a ? F(_) : (a = i = void 0, s);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function y() {
|
|
787
787
|
o !== void 0 && clearTimeout(o), l = 0, a = d = i = o = void 0;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
return o === void 0 ? s :
|
|
789
|
+
function A() {
|
|
790
|
+
return o === void 0 ? s : U(Tt());
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
var
|
|
794
|
-
if (a = arguments, i = this, d =
|
|
792
|
+
function k() {
|
|
793
|
+
var _ = Tt(), v = w(_);
|
|
794
|
+
if (a = arguments, i = this, d = _, 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(T, t), F(d);
|
|
799
799
|
}
|
|
800
|
-
return o === void 0 && (o = setTimeout(
|
|
800
|
+
return o === void 0 && (o = setTimeout(T, t)), s;
|
|
801
801
|
}
|
|
802
|
-
return
|
|
802
|
+
return k.cancel = y, k.flush = A, k;
|
|
803
803
|
}
|
|
804
804
|
var Zs = "__lodash_hash_undefined__";
|
|
805
805
|
function Js(e) {
|
|
@@ -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(A, k) {
|
|
1138
|
+
return s.push(pn(k)), "@@@";
|
|
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(A) {
|
|
1141
|
+
var k = vl[A], _ = k[0], v = k[1], j = k[3];
|
|
1142
|
+
if (d[_])
|
|
1143
|
+
throw new Error("Invalid format. " + _ + " specified twice in format");
|
|
1144
|
+
return d[_] = !0, j && (l[j] = !0), r.push(k), "(" + v + ")";
|
|
1145
|
+
}), Object.keys(l).forEach(function(A) {
|
|
1146
|
+
if (!d[A])
|
|
1147
|
+
throw new Error("Invalid format. " + A + " 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 F = r[p - 1], N = F[0], f = F[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 T;
|
|
1162
1162
|
if (i.timezoneOffset == null) {
|
|
1163
|
-
|
|
1164
|
-
for (var
|
|
1163
|
+
T = new Date(i.year, i.month, i.day, i.hour, i.minute, i.second, i.millisecond);
|
|
1164
|
+
for (var U = [
|
|
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, y = U.length; p < y; p++)
|
|
1171
|
+
if (d[U[p][0]] && i[U[p][0]] !== T[U[p][1]]())
|
|
1172
1172
|
return null;
|
|
1173
|
-
} else if (
|
|
1173
|
+
} else if (T = new Date(Date.UTC(i.year, i.month, i.day, i.hour, i.minute - i.timezoneOffset, i.second, i.millisecond)), i.month > 11 || i.month < 0 || i.day > 31 || i.day < 1 || i.hour > 23 || i.hour < 0 || i.minute > 59 || i.minute < 0 || i.second > 59 || i.second < 0)
|
|
1174
1174
|
return null;
|
|
1175
|
-
return
|
|
1175
|
+
return T;
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var De = {
|
|
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
|
+
}, Bl = {
|
|
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
|
+
}, Dl = {
|
|
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}",
|
|
@@ -1446,8 +1446,8 @@ const Kl = {
|
|
|
1446
1446
|
newElementButtonLabel: "+ Add"
|
|
1447
1447
|
}
|
|
1448
1448
|
},
|
|
1449
|
-
rla:
|
|
1450
|
-
validators:
|
|
1449
|
+
rla: Bl,
|
|
1450
|
+
validators: Dl,
|
|
1451
1451
|
redis: zl,
|
|
1452
1452
|
vfg: xl
|
|
1453
1453
|
}, { t: Q } = ge("en-us", ve), oe = {
|
|
@@ -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, De.format(r), De.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, De.format(r), De.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
|
+
z(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 = D(n.context, "schema.attributes", {});
|
|
1571
1571
|
const i = t.value || "input";
|
|
1572
|
-
Re(i) && (a =
|
|
1572
|
+
Re(i) && (a = D(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 z(D(this.schema, "get")) ? e = this.schema.get(this.model) : e = D(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), z(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 = D(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 && z(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
|
+
}), z(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
|
+
z(this.debouncedValidateFunc) || (this.debouncedValidateFunc = nt(
|
|
1641
1641
|
this.validate.bind(this),
|
|
1642
|
-
|
|
1642
|
+
D(this.schema, "validateDebounceTime", D(this.formOptions, "validateDebounceTime", 500))
|
|
1643
1643
|
)), this.debouncedValidateFunc();
|
|
1644
1644
|
},
|
|
1645
1645
|
updateModelValue(e, t) {
|
|
1646
1646
|
let n = !1;
|
|
1647
|
-
|
|
1647
|
+
z(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), z(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), D(this.formOptions, "validateAfterChanged", !1) === !0 && (D(this.schema, "validateDebounceTime", D(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 = D(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 D(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, $(i.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
1735
|
+
h("span", null, $(r.titleText), 1)
|
|
1736
1736
|
]),
|
|
1737
1737
|
h("div", {
|
|
1738
1738
|
class: W(["advanced-field-dropdown", r.openClass])
|
|
1739
1739
|
}, [
|
|
1740
|
-
|
|
1740
|
+
C(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
|
+
C(i, { class: "card" }, {
|
|
1771
|
+
default: I(() => [
|
|
1772
1772
|
Oe(n.$slots, "default", {}, void 0, !0)
|
|
1773
1773
|
]),
|
|
1774
1774
|
_: 3
|
|
1775
1775
|
}),
|
|
1776
|
-
|
|
1776
|
+
C(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: I(() => [
|
|
1782
|
+
C(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
|
+
C(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: I(() => [
|
|
1810
|
+
C(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
|
+
C(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: I(() => 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(), E(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: I(() => [
|
|
1986
|
+
C(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": I(({ 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
|
+
}, $(r.getSuggestionLabel(o).split(" - ")[0]), 9, dd),
|
|
2008
|
+
(u(!0), g(K, 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
|
+
}, $(d), 9, ud))), 128))
|
|
2013
2013
|
]),
|
|
2014
|
-
empty:
|
|
2014
|
+
empty: I(() => [
|
|
2015
2015
|
h("div", cd, [
|
|
2016
|
-
h("span", null,
|
|
2016
|
+
h("span", null, $(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, T;
|
|
2030
2030
|
let f;
|
|
2031
|
-
return
|
|
2031
|
+
return z(D(e.schema, "get")) ? f = e.schema.get((w = e.model) == null ? void 0 : w.value) : f = D((T = e.model) == null ? void 0 : T.value, e.schema.model), F(f);
|
|
2032
2032
|
},
|
|
2033
2033
|
set(f) {
|
|
2034
2034
|
const w = i;
|
|
2035
|
-
f = N(f),
|
|
2035
|
+
f = N(f), z(f) ? f(f, w) : o(f, w);
|
|
2036
2036
|
}
|
|
2037
2037
|
}), r = (f) => {
|
|
2038
|
-
var
|
|
2038
|
+
var y;
|
|
2039
2039
|
d();
|
|
2040
|
-
const w = (
|
|
2041
|
-
let
|
|
2042
|
-
if (
|
|
2043
|
-
const
|
|
2044
|
-
Array.isArray(
|
|
2045
|
-
|
|
2046
|
-
}) :
|
|
2047
|
-
var v,
|
|
2048
|
-
if (
|
|
2049
|
-
|
|
2040
|
+
const w = D(e.formOptions, "validateAsync", !1);
|
|
2041
|
+
let T = [];
|
|
2042
|
+
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2043
|
+
const A = [], k = (y = e.schema) == null ? void 0 : y.validator;
|
|
2044
|
+
k && (Array.isArray(k) ? le(k, (_) => {
|
|
2045
|
+
A.push(a(_));
|
|
2046
|
+
}) : A.push(a(k))), z(e.externalValidator) && A.push(e.externalValidator), le(A, (_) => {
|
|
2047
|
+
var v, j;
|
|
2048
|
+
if (w)
|
|
2049
|
+
T.push(_(i.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
2050
2050
|
else {
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2053
|
-
|
|
2051
|
+
const H = _(i.value, e.schema, (j = e.model) == null ? void 0 : j.value);
|
|
2052
|
+
H && z(H.then) ? H.then((b) => {
|
|
2053
|
+
b && (t.value = t.value.concat(b));
|
|
2054
2054
|
const S = t.value.length === 0;
|
|
2055
2055
|
e.emitValidated && e.emitValidated({ isValid: S, errors: t.value, field: e.schema });
|
|
2056
|
-
}) :
|
|
2056
|
+
}) : H && (T = T.concat(H));
|
|
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 U = (A) => {
|
|
2061
|
+
var _, v;
|
|
2062
|
+
let k = [];
|
|
2063
|
+
if (le(ri(A), (j) => {
|
|
2064
|
+
Array.isArray(j) && j.length > 0 ? k = k.concat(j) : Re(j) && k.push(j);
|
|
2065
|
+
}), z((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((v = e.model) == null ? void 0 : v.value, k, e.schema), !f) {
|
|
2066
|
+
const j = k.length === 0;
|
|
2067
|
+
e.emitValidated && e.emitValidated({ isValid: j, errors: k, field: e.schema });
|
|
2068
2068
|
}
|
|
2069
|
-
return
|
|
2069
|
+
return A = k, k;
|
|
2070
2070
|
};
|
|
2071
|
-
return
|
|
2071
|
+
return w ? Promise.all(T).then(U) : U(T);
|
|
2072
2072
|
}, s = () => {
|
|
2073
|
-
|
|
2073
|
+
z(n.value) ? n.value() : n.value = nt(
|
|
2074
2074
|
r,
|
|
2075
|
-
|
|
2075
|
+
D(e.schema, "validateDebounceTime", D(e.formOptions, "validateDebounceTime", 500))
|
|
2076
2076
|
);
|
|
2077
2077
|
}, o = (f, w) => {
|
|
2078
|
-
var
|
|
2079
|
-
let
|
|
2080
|
-
|
|
2078
|
+
var U, y, A;
|
|
2079
|
+
let T = !1;
|
|
2080
|
+
z(e.schema.set) ? (e.schema.set((U = e.model) == null ? void 0 : U.value, f), T = !0) : e.schema.model && (l(e.schema.model, f), T = !0), T && (e.emitModelUpdated && ((y = e.model) != null && y.value) && e.emitModelUpdated({ value: f, model: e.schema.model }), z(e.schema.onChanged) && e.schema.onChanged((A = e.model) == null ? void 0 : A.value, f, w, e.schema), D(e.formOptions, "validateAfterChanged", !1) === !0 && (D(e.schema, "validateDebounceTime", D(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 _;
|
|
2085
|
+
let T = f.replace(/\[(\w+)\]/g, ".$1");
|
|
2086
|
+
T = T.replace(/^\./, "");
|
|
2087
|
+
let U = ((_ = e.model) == null ? void 0 : _.value) || {}, y = 0;
|
|
2088
|
+
const A = T.split("."), k = A.length;
|
|
2089
|
+
for (; y < k; ) {
|
|
2090
|
+
const v = A[y];
|
|
2091
|
+
if (y < k - 1)
|
|
2092
|
+
U[v] !== void 0 || (U[v] = {}), U = U[v];
|
|
2093
2093
|
else {
|
|
2094
|
-
|
|
2094
|
+
U[v] = w;
|
|
2095
2095
|
return;
|
|
2096
2096
|
}
|
|
2097
|
-
++
|
|
2097
|
+
++y;
|
|
2098
2098
|
}
|
|
2099
2099
|
}, c = (f, w = !1) => {
|
|
2100
|
-
const
|
|
2101
|
-
return qt(f,
|
|
2102
|
-
}, m = (f) => `${c(f)}-label`, p = () =>
|
|
2100
|
+
const T = D(e.formOptions, "fieldIdPrefix", "");
|
|
2101
|
+
return qt(f, T) + (w ? "-" + oi() : "");
|
|
2102
|
+
}, m = (f) => `${c(f)}-label`, p = () => D(e.schema, "fieldClasses", []), F = (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: (y) => {
|
|
2197
|
+
i("modelUpdated", y.value, y.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 A;
|
|
2205
|
+
const y = (A = a.schema) == null ? void 0 : A.inputType.toLowerCase();
|
|
2206
|
+
switch (y) {
|
|
2207
2207
|
case "string":
|
|
2208
2208
|
return "text";
|
|
2209
2209
|
case "datetime":
|
|
2210
2210
|
return "datetime-local";
|
|
2211
2211
|
default:
|
|
2212
|
-
return
|
|
2212
|
+
return y || "text";
|
|
2213
2213
|
}
|
|
2214
2214
|
}), p = {
|
|
2215
2215
|
date: "YYYY-MM-DD",
|
|
2216
2216
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2217
2217
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
2218
|
-
},
|
|
2219
|
-
var
|
|
2220
|
-
let
|
|
2221
|
-
const
|
|
2222
|
-
v && ((
|
|
2223
|
-
}, N = (
|
|
2224
|
-
ut(
|
|
2225
|
-
}, f = (
|
|
2226
|
-
let
|
|
2218
|
+
}, F = (y, A) => {
|
|
2219
|
+
var j, H;
|
|
2220
|
+
let k = y;
|
|
2221
|
+
const _ = p[m.value] || "", v = De.parse(y, _);
|
|
2222
|
+
v && ((j = a.schema) != null && j.format ? k = De.format(v, (H = a.schema) == null ? void 0 : H.format) : k = v.valueOf()), o(k, A);
|
|
2223
|
+
}, N = (y, A) => {
|
|
2224
|
+
ut(y) || (y = NaN), o(y, A);
|
|
2225
|
+
}, f = (y) => {
|
|
2226
|
+
let A = y;
|
|
2227
2227
|
switch (m.value) {
|
|
2228
2228
|
case "number":
|
|
2229
2229
|
case "range":
|
|
2230
|
-
ut(parseFloat(
|
|
2230
|
+
ut(parseFloat(y)) && (A = parseFloat(y));
|
|
2231
2231
|
break;
|
|
2232
2232
|
}
|
|
2233
|
-
c.value =
|
|
2234
|
-
}, w = (
|
|
2235
|
-
c.value =
|
|
2236
|
-
},
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2233
|
+
c.value = A, o(A, y);
|
|
2234
|
+
}, w = (y) => {
|
|
2235
|
+
c.value = y, o(y, y);
|
|
2236
|
+
}, T = ue(null), U = () => {
|
|
2237
|
+
var y;
|
|
2238
|
+
z(T.value) && ((y = T.value) == null || y.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
|
+
T.value = nt(
|
|
2245
|
+
(y, A) => {
|
|
2246
|
+
N(y, A);
|
|
2247
2247
|
},
|
|
2248
|
-
parseInt(
|
|
2248
|
+
parseInt(D(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
|
+
T.value = nt(
|
|
2259
|
+
(y, A) => {
|
|
2260
|
+
F(y, A);
|
|
2261
2261
|
},
|
|
2262
|
-
parseInt(
|
|
2262
|
+
parseInt(D(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
|
+
}), (y, A) => {
|
|
2273
|
+
const k = O("KInput");
|
|
2274
2274
|
return u(), g("div", gd, [
|
|
2275
|
-
|
|
2275
|
+
C(k, Ie(y.$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: U,
|
|
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(), E(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($(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
2329
|
+
C(s, { class: "metric-add-icon" })
|
|
2330
2330
|
]),
|
|
2331
|
-
|
|
2332
|
-
default:
|
|
2331
|
+
C(Oi, { name: "slide-fade" }, {
|
|
2332
|
+
default: I(() => [
|
|
2333
2333
|
i.contentVisible ? (u(), g("div", bd, [
|
|
2334
2334
|
Oe(e.$slots, "default"),
|
|
2335
|
-
|
|
2335
|
+
C(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: I(() => [
|
|
2341
|
+
C(o)
|
|
2342
2342
|
]),
|
|
2343
2343
|
_: 1
|
|
2344
2344
|
})
|
|
2345
|
-
])) :
|
|
2345
|
+
])) : R("", !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(), E(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(K, null, J(e.value, (d, l) => (u(), g("tr", { key: l }, [
|
|
2404
|
+
h("td", null, $(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
|
+
])) : R("", !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
|
+
])) : R("", !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
|
+
])) : R("", !0),
|
|
2429
2429
|
h("td", null, [
|
|
2430
2430
|
h("input", {
|
|
2431
2431
|
type: "button",
|
|
@@ -2564,7 +2564,7 @@ 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
|
+
}, Bd = { class: "input-item" }, Dd = ["placeholder"], zd = {
|
|
2568
2568
|
key: 0,
|
|
2569
2569
|
class: "hint"
|
|
2570
2570
|
};
|
|
@@ -2574,24 +2574,24 @@ function xd(e, t, n, a, i, r) {
|
|
|
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(K, 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, $(c), 1),
|
|
2585
2585
|
h("div", null, [
|
|
2586
|
-
|
|
2586
|
+
C(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: I(() => [
|
|
2594
|
+
C(s)
|
|
2595
2595
|
]),
|
|
2596
2596
|
_: 2
|
|
2597
2597
|
}, 1032, ["onClick"])
|
|
@@ -2599,7 +2599,7 @@ function xd(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
|
+
C(d, {
|
|
2603
2603
|
model: r.transformedModel[c],
|
|
2604
2604
|
options: { helpAsHtml: !0 },
|
|
2605
2605
|
schema: r.subSchema,
|
|
@@ -2615,8 +2615,8 @@ function xd(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, $(e.schema.fields[0].schema.hint), 1)) : R("", !0),
|
|
2619
|
+
(u(), E(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,29 +2629,29 @@ function xd(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", Bd, [
|
|
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, Dd), [
|
|
2640
2640
|
[Ze, i.newKeyName]
|
|
2641
2641
|
]),
|
|
2642
|
-
|
|
2642
|
+
C(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: I(() => [
|
|
2649
|
+
ee(" + Add " + $(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", zd,
|
|
2654
|
+
e.schema.hintText ? (u(), g("p", zd, $(e.schema.hintText), 1)) : R("", !0)
|
|
2655
2655
|
], 2)
|
|
2656
2656
|
], 10, Vd);
|
|
2657
2657
|
}
|
|
@@ -2713,16 +2713,16 @@ const wi = /* @__PURE__ */ x($d, [["render", xd], ["__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(K, null, J(e.schema.values, (F, N) => (u(), E(p, {
|
|
2717
2717
|
id: e.schema.name + "-" + N,
|
|
2718
|
-
key:
|
|
2718
|
+
key: F.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: F.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": F.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", xd], ["__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((T) => {
|
|
2789
2789
|
w.push({
|
|
2790
|
-
label: N(
|
|
2791
|
-
value:
|
|
2792
|
-
disabled: typeof
|
|
2793
|
-
group: typeof
|
|
2790
|
+
label: N(T),
|
|
2791
|
+
value: F(T),
|
|
2792
|
+
disabled: typeof T == "object" && T.disabled || void 0,
|
|
2793
|
+
group: typeof T == "object" && String(T.group || "").toUpperCase() || void 0
|
|
2794
2794
|
});
|
|
2795
2795
|
}), w;
|
|
2796
|
-
},
|
|
2796
|
+
}, F = (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", xd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2813
2813
|
return String(f);
|
|
2814
2814
|
};
|
|
2815
2815
|
return (f, w) => {
|
|
2816
|
-
const
|
|
2817
|
-
return u(),
|
|
2816
|
+
const T = O("KSelect");
|
|
2817
|
+
return u(), E(T, {
|
|
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] = (U) => Ye(c) ? c.value = U : 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", xd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2884
2884
|
removeElement(e) {
|
|
2885
2885
|
this.value = this.value.filter((t, n) => n !== e);
|
|
2886
2886
|
},
|
|
2887
|
-
|
|
2888
|
-
return "field-" + e.type;
|
|
2887
|
+
getFieldComponent(e) {
|
|
2888
|
+
return e.component ? e.component : "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(K, 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(), E(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: I(() => [
|
|
2919
|
+
(u(), E(ne(r.getFieldComponent(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(), E(ne(r.getFieldComponent(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(), E(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: I(() => [
|
|
2942
|
+
(u(), E(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: I(() => {
|
|
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(), E(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(), E(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(K, { 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(), E(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
|
+
C(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: I(() => [
|
|
3016
|
+
ee($(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
3017
3017
|
]),
|
|
3018
3018
|
_: 1
|
|
3019
3019
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3020
|
-
], 10, Wd)) :
|
|
3020
|
+
], 10, Wd)) : R("", !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-27efd618"]]), 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-1089abe7
|
|
|
3072
3072
|
}), (l, c) => {
|
|
3073
3073
|
const m = O("KCheckbox");
|
|
3074
3074
|
return u(), g("div", tu, [
|
|
3075
|
-
|
|
3075
|
+
C(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(K, 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($(r.getItemName(o)), 1)
|
|
3120
3120
|
])
|
|
3121
3121
|
], 2))), 256))
|
|
3122
|
-
], 8, ou)) :
|
|
3123
|
-
e.schema.listBox ?
|
|
3122
|
+
], 8, ou)) : R("", !0),
|
|
3123
|
+
e.schema.listBox ? R("", !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, $(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(K, { 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($(r.getItemName(o)), 1)
|
|
3151
3151
|
])
|
|
3152
|
-
], 2))), 256)) :
|
|
3152
|
+
], 2))), 256)) : R("", !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(K, 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(), E(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(), E(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
|
+
C(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: I(() => [
|
|
3319
|
+
C(s)
|
|
3320
3320
|
]),
|
|
3321
3321
|
_: 2
|
|
3322
3322
|
}, 1032, ["data-testid", "onClick"])
|
|
3323
3323
|
]))), 128)),
|
|
3324
|
-
|
|
3324
|
+
C(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: I(() => [
|
|
3332
|
+
ee($(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
|
+
C(o, {
|
|
3376
3376
|
id: M(a)(e.schema)
|
|
3377
3377
|
}, {
|
|
3378
|
-
default:
|
|
3379
|
-
ee(
|
|
3378
|
+
default: I(() => [
|
|
3379
|
+
ee($(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((F) => ({ label: String(F), value: String(F) })) : [];
|
|
3440
3440
|
});
|
|
3441
3441
|
return (m, p) => {
|
|
3442
|
-
const
|
|
3443
|
-
return u(),
|
|
3442
|
+
const F = O("KMultiselect");
|
|
3443
|
+
return u(), E(F, {
|
|
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(), E(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: I(() => [
|
|
3513
3513
|
h("div", Au, [
|
|
3514
3514
|
h("div", Eu, [
|
|
3515
|
-
(u(!0), g(
|
|
3515
|
+
(u(!0), g(K, 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(" " + $(o.label) + " ", 1),
|
|
3532
|
+
h("div", ku, $(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(K, 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
|
+
C(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, F) => {
|
|
3612
3612
|
const N = O("KInputSwitch");
|
|
3613
3613
|
return u(), g("div", Ru, [
|
|
3614
|
-
|
|
3614
|
+
C(N, {
|
|
3615
3615
|
id: M(l)(e.schema),
|
|
3616
3616
|
modelValue: M(c),
|
|
3617
|
-
"onUpdate:modelValue":
|
|
3617
|
+
"onUpdate:modelValue": F[0] || (F[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, F) => {
|
|
3684
3684
|
const N = O("KTextArea");
|
|
3685
3685
|
return u(), g("div", Nu, [
|
|
3686
|
-
|
|
3686
|
+
C(N, Ie(p.$attrs, {
|
|
3687
3687
|
id: M(d)(e.schema),
|
|
3688
3688
|
modelValue: M(c),
|
|
3689
|
-
"onUpdate:modelValue":
|
|
3689
|
+
"onUpdate:modelValue": F[0] || (F[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(), E(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" })), Bu = {
|
|
3734
3734
|
name: "FormGroup",
|
|
3735
3735
|
components: Ku,
|
|
3736
3736
|
mixins: [ii],
|
|
@@ -3804,19 +3804,20 @@ 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 = D(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
|
-
// Get type of field
|
|
3814
|
-
|
|
3815
|
-
|
|
3813
|
+
// Get type of field, it could be the name of a registered component or a Vue component
|
|
3814
|
+
// a registered component should be named in 'field-{type}' format
|
|
3815
|
+
getFieldComponent(e) {
|
|
3816
|
+
return e.component ? e.component : "field-" + e.type;
|
|
3816
3817
|
},
|
|
3817
3818
|
// Get type of button, default to 'button'
|
|
3818
3819
|
getButtonType(e) {
|
|
3819
|
-
return
|
|
3820
|
+
return D(e, "type", "button");
|
|
3820
3821
|
},
|
|
3821
3822
|
// Child field executed validation
|
|
3822
3823
|
onFieldValidated(e, t, n) {
|
|
@@ -3830,7 +3831,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3830
3831
|
},
|
|
3831
3832
|
// Get current hint.
|
|
3832
3833
|
fieldHint(e) {
|
|
3833
|
-
return
|
|
3834
|
+
return z(e.hint) ? e.hint.call(this, this.model, e, this) : e.hint;
|
|
3834
3835
|
},
|
|
3835
3836
|
fieldErrors(e) {
|
|
3836
3837
|
return this.errors.filter((t) => t.field.fieldName === e.fieldName).map((t) => t.error);
|
|
@@ -3853,7 +3854,7 @@ const ju = /* @__PURE__ */ x(Iu, [["render", Vu], ["__scopeId", "data-v-56d57edb
|
|
|
3853
3854
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
3854
3855
|
}
|
|
3855
3856
|
}
|
|
3856
|
-
},
|
|
3857
|
+
}, Du = ["innerHTML"], zu = { class: "icon-wrapper" }, xu = ["innerHTML"], Yu = {
|
|
3857
3858
|
key: 0,
|
|
3858
3859
|
class: "link-wrapper"
|
|
3859
3860
|
}, Hu = { class: "field-wrap" }, Gu = {
|
|
@@ -3868,7 +3869,7 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3868
3869
|
return u(), g("div", {
|
|
3869
3870
|
class: W(["form-group", e.getFieldRowClasses(n.field)])
|
|
3870
3871
|
}, [
|
|
3871
|
-
r.fieldTypeHasLabel(n.field) ? (u(),
|
|
3872
|
+
r.fieldTypeHasLabel(n.field) ? (u(), E(o, {
|
|
3872
3873
|
key: 0,
|
|
3873
3874
|
"aria-describedby": n.field.help ? r.getTooltipId(n.field) : void 0,
|
|
3874
3875
|
class: W([n.field.labelClasses, "form-group-label"]),
|
|
@@ -3880,41 +3881,41 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3880
3881
|
tooltipId: r.getTooltipId(n.field)
|
|
3881
3882
|
} : void 0
|
|
3882
3883
|
}, Un({
|
|
3883
|
-
default:
|
|
3884
|
+
default: I(() => [
|
|
3884
3885
|
h("div", zu, [
|
|
3885
3886
|
h("span", {
|
|
3886
3887
|
innerHTML: r.formattedLabel(n.field.label)
|
|
3887
3888
|
}, null, 8, xu)
|
|
3888
3889
|
]),
|
|
3889
3890
|
n.field.link ? (u(), g("div", Yu, [
|
|
3890
|
-
|
|
3891
|
+
C(s, {
|
|
3891
3892
|
href: n.field.link
|
|
3892
3893
|
}, {
|
|
3893
|
-
default:
|
|
3894
|
+
default: I(() => t[0] || (t[0] = [
|
|
3894
3895
|
h("span", { class: "section-header" }, "More info", -1)
|
|
3895
3896
|
])),
|
|
3896
3897
|
_: 1
|
|
3897
3898
|
}, 8, ["href"])
|
|
3898
|
-
])) :
|
|
3899
|
+
])) : R("", !0)
|
|
3899
3900
|
]),
|
|
3900
3901
|
_: 2
|
|
3901
3902
|
}, [
|
|
3902
3903
|
n.options.helpAsHtml && n.field.help ? {
|
|
3903
3904
|
name: "tooltip",
|
|
3904
|
-
fn:
|
|
3905
|
+
fn: I(() => [
|
|
3905
3906
|
h("div", {
|
|
3906
3907
|
innerHTML: n.field.help
|
|
3907
|
-
}, null, 8,
|
|
3908
|
+
}, null, 8, Du)
|
|
3908
3909
|
]),
|
|
3909
3910
|
key: "0"
|
|
3910
3911
|
} : void 0
|
|
3911
|
-
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) :
|
|
3912
|
+
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : R("", !0),
|
|
3912
3913
|
h("div", Hu, [
|
|
3913
|
-
(u(),
|
|
3914
|
+
(u(), E(ne(r.getFieldComponent(n.field)), Ie(e.$attrs, {
|
|
3914
3915
|
ref: "child",
|
|
3915
3916
|
disabled: e.fieldDisabled(n.field) || null,
|
|
3916
3917
|
"form-options": n.options,
|
|
3917
|
-
hint: n.field.hint &&
|
|
3918
|
+
hint: n.field.hint && n.field.type === "input" ? r.fieldHint(n.field) : void 0,
|
|
3918
3919
|
model: n.model,
|
|
3919
3920
|
schema: r.schema,
|
|
3920
3921
|
vfg: n.vfg,
|
|
@@ -3923,29 +3924,29 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3923
3924
|
onValidated: r.onFieldValidated
|
|
3924
3925
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
|
|
3925
3926
|
r.buttonVisibility(n.field) ? (u(), g("div", Gu, [
|
|
3926
|
-
(u(!0), g(
|
|
3927
|
+
(u(!0), g(K, null, J(n.field.buttons, (d, l) => (u(), g("button", {
|
|
3927
3928
|
key: l,
|
|
3928
3929
|
class: W(d.classes),
|
|
3929
3930
|
type: r.getButtonType(d),
|
|
3930
3931
|
onClick: (c) => r.buttonClickHandler(d, n.field, c),
|
|
3931
|
-
textContent:
|
|
3932
|
+
textContent: $(d.label)
|
|
3932
3933
|
}, null, 10, Wu))), 128))
|
|
3933
|
-
])) :
|
|
3934
|
+
])) : R("", !0)
|
|
3934
3935
|
]),
|
|
3935
|
-
n.field.hint &&
|
|
3936
|
+
n.field.hint && n.field.type !== "input" ? (u(), g("div", {
|
|
3936
3937
|
key: 1,
|
|
3937
3938
|
class: "hint",
|
|
3938
3939
|
innerHTML: r.fieldHint(n.field)
|
|
3939
|
-
}, null, 8, Zu)) :
|
|
3940
|
+
}, null, 8, Zu)) : R("", !0),
|
|
3940
3941
|
r.fieldErrors(n.field).length > 0 ? (u(), g("div", Ju, [
|
|
3941
|
-
(u(!0), g(
|
|
3942
|
+
(u(!0), g(K, null, J(r.fieldErrors(n.field), (d, l) => (u(), g("span", {
|
|
3942
3943
|
key: l,
|
|
3943
3944
|
innerHTML: d
|
|
3944
3945
|
}, null, 8, Qu))), 128))
|
|
3945
|
-
])) :
|
|
3946
|
+
])) : R("", !0)
|
|
3946
3947
|
], 2);
|
|
3947
3948
|
}
|
|
3948
|
-
const Ti = /* @__PURE__ */ x(
|
|
3949
|
+
const Ti = /* @__PURE__ */ x(Bu, [["render", Xu], ["__scopeId", "data-v-172f268b"]]), ec = "12px";
|
|
3949
3950
|
var ct = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ct || {});
|
|
3950
3951
|
const tc = (e) => {
|
|
3951
3952
|
var t, n;
|
|
@@ -3989,10 +3990,10 @@ const tc = (e) => {
|
|
|
3989
3990
|
order: 3
|
|
3990
3991
|
}
|
|
3991
3992
|
}, 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
|
|
3993
|
+
var F, N, f, w;
|
|
3993
3994
|
return {
|
|
3994
3995
|
key: m,
|
|
3995
|
-
label: ((
|
|
3996
|
+
label: ((F = a[m]) == null ? void 0 : F.label) ?? o(m),
|
|
3996
3997
|
value: (N = a[m]) != null && N.formatter ? a[m].formatter(p) : p,
|
|
3997
3998
|
type: ((f = a[m]) == null ? void 0 : f.type) ?? s(m, p),
|
|
3998
3999
|
order: ((w = a[m]) == null ? void 0 : w.order) ?? 100
|
|
@@ -4000,32 +4001,32 @@ const tc = (e) => {
|
|
|
4000
4001
|
};
|
|
4001
4002
|
}).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
4003
|
return (m, p) => {
|
|
4003
|
-
const
|
|
4004
|
+
const F = O("KCopy");
|
|
4004
4005
|
return u(), g("div", ic, [
|
|
4005
|
-
(u(!0), g(
|
|
4006
|
+
(u(!0), g(K, null, J(c.value, ({ key: N, label: f, value: w, type: T }) => (u(), g("div", {
|
|
4006
4007
|
key: N,
|
|
4007
4008
|
class: "partial-config-card-row"
|
|
4008
4009
|
}, [
|
|
4009
4010
|
h("div", ac, [
|
|
4010
|
-
h("div", rc,
|
|
4011
|
+
h("div", rc, $(f), 1)
|
|
4011
4012
|
]),
|
|
4012
4013
|
h("div", {
|
|
4013
4014
|
class: "config-card-row-value",
|
|
4014
4015
|
"data-testid": `${N}-property-value`
|
|
4015
4016
|
}, [
|
|
4016
4017
|
r(w) ? (u(), g("div", lc, [
|
|
4017
|
-
|
|
4018
|
+
T === "password" ? (u(), g("div", {
|
|
4018
4019
|
key: 0,
|
|
4019
4020
|
"data-testid": `${N}-copy-password`
|
|
4020
4021
|
}, [
|
|
4021
|
-
|
|
4022
|
+
C(F, {
|
|
4022
4023
|
format: "redacted",
|
|
4023
4024
|
text: String(w)
|
|
4024
4025
|
}, null, 8, ["text"])
|
|
4025
4026
|
], 8, dc)) : (u(), g("div", {
|
|
4026
4027
|
key: 1,
|
|
4027
4028
|
"data-testid": `${N}-plain-text`
|
|
4028
|
-
},
|
|
4029
|
+
}, $(w), 9, uc))
|
|
4029
4030
|
])) : (u(), g("div", {
|
|
4030
4031
|
key: 0,
|
|
4031
4032
|
"data-testid": `${N}-no-value`
|
|
@@ -4093,49 +4094,49 @@ const tc = (e) => {
|
|
|
4093
4094
|
} = Ni(o, a[o.app].getAll, void 0, {
|
|
4094
4095
|
fetchedItemsKey: "data",
|
|
4095
4096
|
searchKeys: ["id", "name"]
|
|
4096
|
-
}),
|
|
4097
|
-
let
|
|
4098
|
-
return o.app === "konnect" ?
|
|
4097
|
+
}), F = L(() => c.value ? s(c.value) : ""), N = (U) => {
|
|
4098
|
+
let y = `${o.apiBaseUrl}${a[o.app].getOne}`;
|
|
4099
|
+
return o.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), y = y.replace(/{id}/gi, String(U)), y;
|
|
4099
4100
|
}, 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(
|
|
4101
|
+
var y;
|
|
4102
|
+
const U = ((y = p.value) == null ? void 0 : y.map((A) => ({ label: A.id, name: A.name, value: A.id, type: A.type, tag: tc(A) }))) || [];
|
|
4103
|
+
return i.redisType !== "all" ? U.filter((A) => A.type === i.redisType) : U;
|
|
4104
|
+
}), { axiosInstance: w } = Li(o == null ? void 0 : o.axiosRequestConfig), T = async (U) => {
|
|
4105
|
+
if (U) {
|
|
4106
|
+
i.updateRedisModel(U);
|
|
4106
4107
|
try {
|
|
4107
|
-
const
|
|
4108
|
-
if (
|
|
4109
|
-
const
|
|
4110
|
-
delete
|
|
4108
|
+
const y = await w.get(N(U));
|
|
4109
|
+
if (y.data.config) {
|
|
4110
|
+
const A = Object.assign(y.data, y.data.config);
|
|
4111
|
+
delete A.config, r.value = A;
|
|
4111
4112
|
}
|
|
4112
|
-
} catch (
|
|
4113
|
-
console.error(
|
|
4113
|
+
} catch (y) {
|
|
4114
|
+
console.error(y);
|
|
4114
4115
|
}
|
|
4115
4116
|
}
|
|
4116
4117
|
};
|
|
4117
|
-
return Ut(() => n == null ? void 0 : n.value, async (
|
|
4118
|
-
|
|
4118
|
+
return Ut(() => n == null ? void 0 : n.value, async (U) => {
|
|
4119
|
+
U && await m();
|
|
4119
4120
|
}), kt(() => {
|
|
4120
|
-
m(), i.defaultRedisConfigItem &&
|
|
4121
|
-
}), (
|
|
4122
|
-
const
|
|
4123
|
-
return u(), g(
|
|
4121
|
+
m(), i.defaultRedisConfigItem && T(i.defaultRedisConfigItem);
|
|
4122
|
+
}), (U, y) => {
|
|
4123
|
+
const A = O("KLabel"), k = O("KBadge"), _ = O("KSelect");
|
|
4124
|
+
return u(), g(K, null, [
|
|
4124
4125
|
h("div", fc, [
|
|
4125
|
-
|
|
4126
|
+
C(A, {
|
|
4126
4127
|
info: e.isCustomPlugin ? M(t)("redis.custom_plugin.tooltip") : M(t)("redis.shared_configuration.tooltip", { type: M(Cn)(e.redisType) }),
|
|
4127
4128
|
"tooltip-attributes": {
|
|
4128
4129
|
maxWidth: "300",
|
|
4129
4130
|
placement: "top"
|
|
4130
4131
|
}
|
|
4131
4132
|
}, {
|
|
4132
|
-
default:
|
|
4133
|
-
ee(
|
|
4133
|
+
default: I(() => [
|
|
4134
|
+
ee($(M(t)("redis.shared_configuration.title")), 1)
|
|
4134
4135
|
]),
|
|
4135
4136
|
_: 1
|
|
4136
4137
|
}, 8, ["info"]),
|
|
4137
|
-
|
|
4138
|
-
|
|
4138
|
+
y[2] || (y[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
4139
|
+
C(_, {
|
|
4139
4140
|
class: "redis-config-select-trigger",
|
|
4140
4141
|
"data-testid": "redis-config-select-trigger",
|
|
4141
4142
|
"enable-filtering": "",
|
|
@@ -4144,51 +4145,51 @@ const tc = (e) => {
|
|
|
4144
4145
|
loading: M(l),
|
|
4145
4146
|
"model-value": e.defaultRedisConfigItem,
|
|
4146
4147
|
placeholder: M(t)("redis.shared_configuration.selector.placeholder"),
|
|
4147
|
-
onChange:
|
|
4148
|
+
onChange: y[1] || (y[1] = (v) => T(v == null ? void 0 : v.value)),
|
|
4148
4149
|
onQueryChange: M(d)
|
|
4149
4150
|
}, {
|
|
4150
|
-
"selected-item-template":
|
|
4151
|
-
h("div", hc,
|
|
4151
|
+
"selected-item-template": I(({ item: v }) => [
|
|
4152
|
+
h("div", hc, $(v.name), 1)
|
|
4152
4153
|
]),
|
|
4153
|
-
"item-template":
|
|
4154
|
+
"item-template": I(({ item: v }) => [
|
|
4154
4155
|
h("div", {
|
|
4155
4156
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4156
4157
|
"data-testid": `redis-configuration-dropdown-item-${v.name}`
|
|
4157
4158
|
}, [
|
|
4158
|
-
h("span", gc,
|
|
4159
|
-
|
|
4159
|
+
h("span", gc, $(v.name), 1),
|
|
4160
|
+
C(k, {
|
|
4160
4161
|
appearance: "info",
|
|
4161
4162
|
class: "select-item-label"
|
|
4162
4163
|
}, {
|
|
4163
|
-
default:
|
|
4164
|
-
ee(
|
|
4164
|
+
default: I(() => [
|
|
4165
|
+
ee($(v.tag), 1)
|
|
4165
4166
|
]),
|
|
4166
4167
|
_: 2
|
|
4167
4168
|
}, 1024)
|
|
4168
4169
|
], 8, pc)
|
|
4169
4170
|
]),
|
|
4170
|
-
empty:
|
|
4171
|
-
h("div", vc,
|
|
4171
|
+
empty: I(() => [
|
|
4172
|
+
h("div", vc, $(M(t)("redis.shared_configuration.empty_state")), 1)
|
|
4172
4173
|
]),
|
|
4173
|
-
"dropdown-footer-text":
|
|
4174
|
+
"dropdown-footer-text": I(() => [
|
|
4174
4175
|
h("div", {
|
|
4175
4176
|
class: "new-redis-config-area",
|
|
4176
4177
|
"data-testid": "new-redis-config-area",
|
|
4177
|
-
onClick:
|
|
4178
|
+
onClick: y[0] || (y[0] = (v) => U.$emit("showNewPartialModal"))
|
|
4178
4179
|
}, [
|
|
4179
|
-
|
|
4180
|
-
h("span", null,
|
|
4180
|
+
C(M($t), { size: M(ec) }, null, 8, ["size"]),
|
|
4181
|
+
h("span", null, $(M(t)("redis.shared_configuration.create_new_configuration", { type: M(Cn)(e.redisType) })), 1)
|
|
4181
4182
|
])
|
|
4182
4183
|
]),
|
|
4183
4184
|
_: 1
|
|
4184
4185
|
}, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
|
|
4185
4186
|
]),
|
|
4186
|
-
r.value ? (u(),
|
|
4187
|
+
r.value ? (u(), E(mc, {
|
|
4187
4188
|
key: 0,
|
|
4188
4189
|
"config-fields": r.value,
|
|
4189
4190
|
"plugin-redis-fields": e.pluginRedisFields
|
|
4190
|
-
}, null, 8, ["config-fields", "plugin-redis-fields"])) :
|
|
4191
|
-
|
|
4191
|
+
}, null, 8, ["config-fields", "plugin-redis-fields"])) : R("", !0),
|
|
4192
|
+
F.value ? (u(), g("p", yc, $(F.value || M(t)("redis.shared_configuration.error")), 1)) : R("", !0)
|
|
4192
4193
|
], 64);
|
|
4193
4194
|
};
|
|
4194
4195
|
}
|
|
@@ -4249,49 +4250,49 @@ const tc = (e) => {
|
|
|
4249
4250
|
},
|
|
4250
4251
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
4251
4252
|
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) =>
|
|
4253
|
+
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) => z(f.visible) ? f.visible.call(this, n.model, f, this) : X(f.visible) ? !0 : f.visible, m = async (f) => {
|
|
4253
4254
|
a("modelUpdated", [{ id: f, path: n.redisPath }], "partials"), l.value = [{ id: f, path: n.redisPath }], o.value = f;
|
|
4254
4255
|
}, p = (f, w) => {
|
|
4255
4256
|
d.value = { ...d.value, [w]: f }, a("modelUpdated", f, w);
|
|
4256
|
-
},
|
|
4257
|
+
}, F = () => {
|
|
4257
4258
|
a("refreshModel");
|
|
4258
|
-
}, N = (f, w,
|
|
4259
|
-
a("validated", f, w,
|
|
4259
|
+
}, N = (f, w, T) => {
|
|
4260
|
+
a("validated", f, w, T);
|
|
4260
4261
|
};
|
|
4261
4262
|
return Ut(() => s.value, (f) => {
|
|
4262
4263
|
f ? l.value && a("partialToggled", "redis", { partials: l.value }) : a("partialToggled", "partials", d.value);
|
|
4263
4264
|
}), kt(() => {
|
|
4264
|
-
var f, w,
|
|
4265
|
-
if (n.model && (d.value = n.field.fields.reduce((
|
|
4266
|
-
const
|
|
4267
|
-
s.value = !0, o.value =
|
|
4265
|
+
var f, w, T;
|
|
4266
|
+
if (n.model && (d.value = n.field.fields.reduce((U, y) => (Object.keys(n.model).includes(y.model) && (U[y.model] = n.model[y.model]), U), {})), (T = (w = (f = n == null ? void 0 : n.model) == null ? void 0 : f.partials) == null ? void 0 : w[0]) != null && T.id) {
|
|
4267
|
+
const U = n.model.partials[0].id;
|
|
4268
|
+
s.value = !0, o.value = U;
|
|
4268
4269
|
}
|
|
4269
4270
|
}), (f, w) => {
|
|
4270
|
-
const
|
|
4271
|
+
const T = O("KAlert"), U = O("KBadge"), y = O("KRadio"), A = O("KCard");
|
|
4271
4272
|
return u(), g("div", null, [
|
|
4272
4273
|
r.value ? (u(), g("div", _c, [
|
|
4273
|
-
T
|
|
4274
|
+
C(T, {
|
|
4274
4275
|
"data-testid": "custom-plugin-redis-config-note",
|
|
4275
4276
|
message: M(i)("redis.custom_plugin.alert")
|
|
4276
4277
|
}, null, 8, ["message"]),
|
|
4277
|
-
|
|
4278
|
+
C(In, {
|
|
4278
4279
|
"default-redis-config-item": o.value,
|
|
4279
4280
|
"is-custom-plugin": "",
|
|
4280
4281
|
"plugin-redis-fields": e.field.fields,
|
|
4281
4282
|
"update-redis-model": m,
|
|
4282
|
-
onShowNewPartialModal: w[0] || (w[0] = (
|
|
4283
|
+
onShowNewPartialModal: w[0] || (w[0] = (k) => f.$emit("showNewPartialModal"))
|
|
4283
4284
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
4284
|
-
])) : (u(), A
|
|
4285
|
+
])) : (u(), E(A, {
|
|
4285
4286
|
key: 1,
|
|
4286
4287
|
class: "redis-config-card",
|
|
4287
4288
|
"data-testid": "redis-config-card",
|
|
4288
4289
|
title: M(i)("redis.title")
|
|
4289
4290
|
}, {
|
|
4290
|
-
default:
|
|
4291
|
+
default: I(() => [
|
|
4291
4292
|
h("div", wc, [
|
|
4292
|
-
|
|
4293
|
+
C(y, {
|
|
4293
4294
|
modelValue: s.value,
|
|
4294
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
4295
|
+
"onUpdate:modelValue": w[1] || (w[1] = (k) => s.value = k),
|
|
4295
4296
|
card: "",
|
|
4296
4297
|
"card-orientation": "horizontal",
|
|
4297
4298
|
"data-testid": "shared-redis-config-radio",
|
|
@@ -4299,19 +4300,19 @@ const tc = (e) => {
|
|
|
4299
4300
|
label: M(i)("redis.shared_configuration.label"),
|
|
4300
4301
|
"selected-value": !0
|
|
4301
4302
|
}, {
|
|
4302
|
-
default:
|
|
4303
|
-
|
|
4304
|
-
default:
|
|
4305
|
-
ee(
|
|
4303
|
+
default: I(() => [
|
|
4304
|
+
C(U, { appearance: "success" }, {
|
|
4305
|
+
default: I(() => [
|
|
4306
|
+
ee($(M(i)("redis.shared_configuration.badge")), 1)
|
|
4306
4307
|
]),
|
|
4307
4308
|
_: 1
|
|
4308
4309
|
})
|
|
4309
4310
|
]),
|
|
4310
4311
|
_: 1
|
|
4311
4312
|
}, 8, ["modelValue", "description", "label"]),
|
|
4312
|
-
|
|
4313
|
+
C(y, {
|
|
4313
4314
|
modelValue: s.value,
|
|
4314
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
4315
|
+
"onUpdate:modelValue": w[2] || (w[2] = (k) => s.value = k),
|
|
4315
4316
|
card: "",
|
|
4316
4317
|
"card-orientation": "horizontal",
|
|
4317
4318
|
"data-testid": "dedicated-redis-config-radio",
|
|
@@ -4321,33 +4322,33 @@ const tc = (e) => {
|
|
|
4321
4322
|
}, null, 8, ["modelValue", "description", "label"])
|
|
4322
4323
|
]),
|
|
4323
4324
|
s.value ? (u(), g("div", Mc, [
|
|
4324
|
-
|
|
4325
|
+
C(In, {
|
|
4325
4326
|
"default-redis-config-item": o.value,
|
|
4326
4327
|
"plugin-redis-fields": e.field.fields,
|
|
4327
4328
|
"redis-type": e.field.redisType,
|
|
4328
4329
|
"update-redis-model": m,
|
|
4329
|
-
onShowNewPartialModal: w[3] || (w[3] = (
|
|
4330
|
+
onShowNewPartialModal: w[3] || (w[3] = (k) => f.$emit("showNewPartialModal"))
|
|
4330
4331
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
4331
4332
|
])) : (u(), g("div", Sc, [
|
|
4332
|
-
h("div", Tc,
|
|
4333
|
-
(u(),
|
|
4334
|
-
default:
|
|
4335
|
-
(u(!0), g(
|
|
4336
|
-
key:
|
|
4333
|
+
h("div", Tc, $(M(i)("redis.dedicated_configuration.title")), 1),
|
|
4334
|
+
(u(), E(ne(e.tag), null, {
|
|
4335
|
+
default: I(() => [
|
|
4336
|
+
(u(!0), g(K, null, J(e.field.fields, (k) => (u(), g(K, {
|
|
4337
|
+
key: k.model
|
|
4337
4338
|
}, [
|
|
4338
|
-
c(
|
|
4339
|
+
c(k) ? (u(), E(Ti, {
|
|
4339
4340
|
key: 0,
|
|
4340
4341
|
ref_for: !0,
|
|
4341
4342
|
ref: "children",
|
|
4342
4343
|
errors: e.errors,
|
|
4343
|
-
field:
|
|
4344
|
+
field: k,
|
|
4344
4345
|
model: e.model,
|
|
4345
4346
|
options: e.options,
|
|
4346
4347
|
vfg: e.vfg,
|
|
4347
4348
|
onModelUpdated: p,
|
|
4348
|
-
onRefreshModel:
|
|
4349
|
+
onRefreshModel: F,
|
|
4349
4350
|
onValidated: N
|
|
4350
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg"])) :
|
|
4351
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg"])) : R("", !0)
|
|
4351
4352
|
], 64))), 128))
|
|
4352
4353
|
]),
|
|
4353
4354
|
_: 1
|
|
@@ -4472,7 +4473,7 @@ const tc = (e) => {
|
|
|
4472
4473
|
methods: {
|
|
4473
4474
|
// Get visible prop of field
|
|
4474
4475
|
fieldVisible(e) {
|
|
4475
|
-
return
|
|
4476
|
+
return z(e.visible) ? e.visible.call(this, this.model, e, this) : X(e.visible) ? !0 : e.visible;
|
|
4476
4477
|
},
|
|
4477
4478
|
// Child field executed validation
|
|
4478
4479
|
onFieldValidated(e, t, n) {
|
|
@@ -4496,10 +4497,10 @@ const tc = (e) => {
|
|
|
4496
4497
|
},
|
|
4497
4498
|
// Validating the model properties
|
|
4498
4499
|
validate(e = null) {
|
|
4499
|
-
e === null && (e =
|
|
4500
|
+
e === null && (e = D(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
4500
4501
|
const t = [], n = [];
|
|
4501
4502
|
le(this.$refs.children, (i) => {
|
|
4502
|
-
|
|
4503
|
+
z(i.validate) && (t.push(i.$refs.child), n.push(i.$refs.child.validate(!0)));
|
|
4503
4504
|
});
|
|
4504
4505
|
const a = (i) => {
|
|
4505
4506
|
const r = [];
|
|
@@ -4530,12 +4531,12 @@ const tc = (e) => {
|
|
|
4530
4531
|
function Fc(e, t, n, a, i, r) {
|
|
4531
4532
|
const s = O("form-redis"), o = O("form-group"), d = O("KCollapse");
|
|
4532
4533
|
return n.schema != null ? (u(), g("div", Ac, [
|
|
4533
|
-
n.schema.fields ? (u(),
|
|
4534
|
-
default:
|
|
4535
|
-
(u(!0), g(
|
|
4534
|
+
n.schema.fields ? (u(), E(ne(n.tag), { key: 0 }, {
|
|
4535
|
+
default: I(() => [
|
|
4536
|
+
(u(!0), g(K, null, J(r.fields, (l) => (u(), g(K, {
|
|
4536
4537
|
key: l.model
|
|
4537
4538
|
}, [
|
|
4538
|
-
l.model === "__redis_partial" && n.enableRedisPartial ? (u(),
|
|
4539
|
+
l.model === "__redis_partial" && n.enableRedisPartial ? (u(), E(s, {
|
|
4539
4540
|
key: 0,
|
|
4540
4541
|
errors: i.errors,
|
|
4541
4542
|
field: l,
|
|
@@ -4548,7 +4549,7 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4548
4549
|
onPartialToggled: r.onPartialToggled,
|
|
4549
4550
|
onShowNewPartialModal: (c) => e.$emit("showNewPartialModal", l.redisType),
|
|
4550
4551
|
onValidated: r.onFieldValidated
|
|
4551
|
-
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(l) ? (u(),
|
|
4552
|
+
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(l) ? (u(), E(o, {
|
|
4552
4553
|
key: 1,
|
|
4553
4554
|
ref_for: !0,
|
|
4554
4555
|
ref: "children",
|
|
@@ -4560,33 +4561,33 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4560
4561
|
onModelUpdated: r.onModelUpdated,
|
|
4561
4562
|
onRefreshModel: r.onRefreshModel,
|
|
4562
4563
|
onValidated: r.onFieldValidated
|
|
4563
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4564
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
|
|
4564
4565
|
], 64))), 128))
|
|
4565
4566
|
]),
|
|
4566
4567
|
_: 1
|
|
4567
|
-
})) :
|
|
4568
|
-
(u(!0), g(
|
|
4568
|
+
})) : R("", !0),
|
|
4569
|
+
(u(!0), g(K, null, J(r.groups, (l, c) => (u(), g(K, {
|
|
4569
4570
|
key: `group-${c}`
|
|
4570
4571
|
}, [
|
|
4571
|
-
l.collapsible !== void 0 && l.collapsible !== !1 ? (u(),
|
|
4572
|
+
l.collapsible !== void 0 && l.collapsible !== !1 ? (u(), E(d, {
|
|
4572
4573
|
key: 0,
|
|
4573
4574
|
class: "root-level-collapse",
|
|
4574
4575
|
"model-value": !1,
|
|
4575
4576
|
title: l.collapsible.title
|
|
4576
4577
|
}, Un({
|
|
4577
|
-
default:
|
|
4578
|
-
var m, p,
|
|
4578
|
+
default: I(() => {
|
|
4579
|
+
var m, p, F, N;
|
|
4579
4580
|
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 && ((
|
|
4581
|
+
(m = l.slots) != null && m.beforeContent ? Oe(e.$slots, (p = l.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : R("", !0),
|
|
4582
|
+
l.fields.length === 0 && ((F = l.slots) != null && F.emptyState) ? Oe(e.$slots, (N = l.slots) == null ? void 0 : N.emptyState, { key: 1 }) : (u(), E(ne(n.tag), {
|
|
4582
4583
|
key: 2,
|
|
4583
4584
|
class: W(e.getFieldRowClasses(l))
|
|
4584
4585
|
}, {
|
|
4585
|
-
default:
|
|
4586
|
-
(u(!0), g(
|
|
4586
|
+
default: I(() => [
|
|
4587
|
+
(u(!0), g(K, null, J(l.fields, (f) => (u(), g(K, {
|
|
4587
4588
|
key: f.model
|
|
4588
4589
|
}, [
|
|
4589
|
-
r.fieldVisible(f) ? (u(),
|
|
4590
|
+
r.fieldVisible(f) ? (u(), E(o, {
|
|
4590
4591
|
key: 0,
|
|
4591
4592
|
ref_for: !0,
|
|
4592
4593
|
ref: "children",
|
|
@@ -4598,12 +4599,12 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4598
4599
|
onModelUpdated: r.onModelUpdated,
|
|
4599
4600
|
onRefreshModel: r.onRefreshModel,
|
|
4600
4601
|
onValidated: r.onFieldValidated
|
|
4601
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4602
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
|
|
4602
4603
|
], 64))), 128))
|
|
4603
4604
|
]),
|
|
4604
4605
|
_: 2
|
|
4605
4606
|
}, 1032, ["class"])),
|
|
4606
|
-
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (u(),
|
|
4607
|
+
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (u(), E(d, {
|
|
4607
4608
|
key: 3,
|
|
4608
4609
|
class: "nested-collapse",
|
|
4609
4610
|
"model-value": i.collapseStates[`group-${c}-nested`] ?? !0,
|
|
@@ -4611,15 +4612,15 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4611
4612
|
"trigger-label": i.collapseStates[`group-${c}-nested`] ?? !0 ? l.collapsible.nestedCollapsible.triggerLabel.expand : l.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
4612
4613
|
"onUpdate:modelValue": (f) => i.collapseStates[`group-${c}-nested`] = f
|
|
4613
4614
|
}, {
|
|
4614
|
-
default:
|
|
4615
|
-
(u(),
|
|
4615
|
+
default: I(() => [
|
|
4616
|
+
(u(), E(ne(n.tag), {
|
|
4616
4617
|
class: W(e.getFieldRowClasses(l))
|
|
4617
4618
|
}, {
|
|
4618
|
-
default:
|
|
4619
|
-
(u(!0), g(
|
|
4619
|
+
default: I(() => [
|
|
4620
|
+
(u(!0), g(K, null, J(l.collapsible.nestedCollapsible.fields, (f) => (u(), g(K, {
|
|
4620
4621
|
key: f.model
|
|
4621
4622
|
}, [
|
|
4622
|
-
f.model === "__redis_partial" && n.enableRedisPartial ? (u(),
|
|
4623
|
+
f.model === "__redis_partial" && n.enableRedisPartial ? (u(), E(s, {
|
|
4623
4624
|
key: 0,
|
|
4624
4625
|
errors: i.errors,
|
|
4625
4626
|
field: f,
|
|
@@ -4632,7 +4633,7 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4632
4633
|
onPartialToggled: r.onPartialToggled,
|
|
4633
4634
|
onShowNewPartialModal: (w) => e.$emit("showNewPartialModal", f.redisType),
|
|
4634
4635
|
onValidated: r.onFieldValidated
|
|
4635
|
-
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(f) ? (u(),
|
|
4636
|
+
}, null, 8, ["errors", "field", "is-editing", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : r.fieldVisible(f) ? (u(), E(o, {
|
|
4636
4637
|
key: 1,
|
|
4637
4638
|
ref_for: !0,
|
|
4638
4639
|
ref: "children",
|
|
@@ -4644,35 +4645,35 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4644
4645
|
onModelUpdated: r.onModelUpdated,
|
|
4645
4646
|
onRefreshModel: r.onRefreshModel,
|
|
4646
4647
|
onValidated: r.onFieldValidated
|
|
4647
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4648
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
|
|
4648
4649
|
], 64))), 128))
|
|
4649
4650
|
]),
|
|
4650
4651
|
_: 2
|
|
4651
4652
|
}, 1032, ["class"]))
|
|
4652
4653
|
]),
|
|
4653
4654
|
_: 2
|
|
4654
|
-
}, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) :
|
|
4655
|
+
}, 1032, ["model-value", "trigger-label", "onUpdate:modelValue"])) : R("", !0)
|
|
4655
4656
|
];
|
|
4656
4657
|
}),
|
|
4657
4658
|
_: 2
|
|
4658
4659
|
}, [
|
|
4659
4660
|
l.collapsible.description ? {
|
|
4660
4661
|
name: "visible-content",
|
|
4661
|
-
fn:
|
|
4662
|
-
ee(
|
|
4662
|
+
fn: I(() => [
|
|
4663
|
+
ee($(l.collapsible.description), 1)
|
|
4663
4664
|
]),
|
|
4664
4665
|
key: "0"
|
|
4665
4666
|
} : void 0
|
|
4666
|
-
]), 1032, ["title"])) : (u(),
|
|
4667
|
+
]), 1032, ["title"])) : (u(), E(ne(n.tag), {
|
|
4667
4668
|
key: 1,
|
|
4668
4669
|
class: W(e.getFieldRowClasses(l))
|
|
4669
4670
|
}, {
|
|
4670
|
-
default:
|
|
4671
|
-
l.legend ? (u(), g("legend", Ec,
|
|
4672
|
-
(u(!0), g(
|
|
4671
|
+
default: I(() => [
|
|
4672
|
+
l.legend ? (u(), g("legend", Ec, $(l.legend), 1)) : R("", !0),
|
|
4673
|
+
(u(!0), g(K, null, J(l.fields, (m) => (u(), g(K, {
|
|
4673
4674
|
key: m.model
|
|
4674
4675
|
}, [
|
|
4675
|
-
r.fieldVisible(m) ? (u(),
|
|
4676
|
+
r.fieldVisible(m) ? (u(), E(o, {
|
|
4676
4677
|
key: 0,
|
|
4677
4678
|
ref_for: !0,
|
|
4678
4679
|
ref: "children",
|
|
@@ -4684,13 +4685,13 @@ function Fc(e, t, n, a, i, r) {
|
|
|
4684
4685
|
onModelUpdated: r.onModelUpdated,
|
|
4685
4686
|
onRefreshModel: r.onRefreshModel,
|
|
4686
4687
|
onValidated: r.onFieldValidated
|
|
4687
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) :
|
|
4688
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : R("", !0)
|
|
4688
4689
|
], 64))), 128))
|
|
4689
4690
|
]),
|
|
4690
4691
|
_: 2
|
|
4691
4692
|
}, 1032, ["class"]))
|
|
4692
4693
|
], 64))), 128))
|
|
4693
|
-
])) :
|
|
4694
|
+
])) : R("", !0);
|
|
4694
4695
|
}
|
|
4695
4696
|
const ae = /* @__PURE__ */ x(Oc, [["render", Fc]]), On = /* @__PURE__ */ new Set([
|
|
4696
4697
|
"config-client_id",
|
|
@@ -4910,57 +4911,57 @@ const ae = /* @__PURE__ */ x(Oc, [["render", Fc]]), On = /* @__PURE__ */ new Set
|
|
|
4910
4911
|
function Lc(e, t, n, a, i, r) {
|
|
4911
4912
|
const s = O("VueFormGenerator"), o = O("KExternalLink"), d = O("KLabel"), l = O("KCheckbox"), c = O("KInputSwitch"), m = O("KTabs");
|
|
4912
4913
|
return u(), g("div", null, [
|
|
4913
|
-
n.formModel.id && n.isEditing || !n.isEditing ? (u(),
|
|
4914
|
+
n.formModel.id && n.isEditing || !n.isEditing ? (u(), E(s, {
|
|
4914
4915
|
key: 0,
|
|
4915
4916
|
class: "global-fields",
|
|
4916
4917
|
model: n.formModel,
|
|
4917
4918
|
options: n.formOptions,
|
|
4918
4919
|
schema: i.globalFields,
|
|
4919
4920
|
onModelUpdated: n.onModelUpdated
|
|
4920
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4921
|
-
|
|
4922
|
-
common:
|
|
4921
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4922
|
+
C(m, { tabs: i.tabs }, {
|
|
4923
|
+
common: I(() => [
|
|
4923
4924
|
h("div", Uc, [
|
|
4924
4925
|
h("div", $c, [
|
|
4925
|
-
|
|
4926
|
-
default:
|
|
4926
|
+
C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
4927
|
+
default: I(() => t[2] || (t[2] = [
|
|
4927
4928
|
h("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
4928
4929
|
])),
|
|
4929
4930
|
_: 1
|
|
4930
4931
|
})
|
|
4931
4932
|
]),
|
|
4932
4933
|
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(),
|
|
4934
|
+
r.displayForm ? (u(), E(s, {
|
|
4934
4935
|
key: 0,
|
|
4935
4936
|
model: n.formModel,
|
|
4936
4937
|
options: n.formOptions,
|
|
4937
4938
|
schema: i.commonFieldsSchema,
|
|
4938
4939
|
onModelUpdated: n.onModelUpdated
|
|
4939
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4940
|
-
|
|
4941
|
-
default:
|
|
4940
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4941
|
+
C(d, null, {
|
|
4942
|
+
default: I(() => t[3] || (t[3] = [
|
|
4942
4943
|
ee("Auth Methods")
|
|
4943
4944
|
])),
|
|
4944
4945
|
_: 1
|
|
4945
4946
|
}),
|
|
4946
4947
|
h("div", Vc, [
|
|
4947
|
-
(u(!0), g(
|
|
4948
|
+
(u(!0), g(K, null, J(i.authMethods, (p) => (u(), g("div", {
|
|
4948
4949
|
key: p.value,
|
|
4949
4950
|
class: "auth-method"
|
|
4950
4951
|
}, [
|
|
4951
|
-
|
|
4952
|
+
C(l, {
|
|
4952
4953
|
modelValue: p.prop,
|
|
4953
|
-
"onUpdate:modelValue": (
|
|
4954
|
-
onChange: (
|
|
4954
|
+
"onUpdate:modelValue": (F) => p.prop = F,
|
|
4955
|
+
onChange: (F) => r.handleUpdate(F, p.value)
|
|
4955
4956
|
}, {
|
|
4956
|
-
default:
|
|
4957
|
-
ee(
|
|
4957
|
+
default: I(() => [
|
|
4958
|
+
ee($(p.label), 1)
|
|
4958
4959
|
]),
|
|
4959
4960
|
_: 2
|
|
4960
4961
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
4961
4962
|
]))), 128))
|
|
4962
4963
|
]),
|
|
4963
|
-
|
|
4964
|
+
C(c, {
|
|
4964
4965
|
modelValue: i.sessionManagement,
|
|
4965
4966
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => i.sessionManagement = p),
|
|
4966
4967
|
label: "Enable Session Management",
|
|
@@ -4968,43 +4969,43 @@ function Lc(e, t, n, a, i, r) {
|
|
|
4968
4969
|
}, null, 8, ["modelValue", "onChange"])
|
|
4969
4970
|
])
|
|
4970
4971
|
]),
|
|
4971
|
-
authorization:
|
|
4972
|
+
authorization: I(() => [
|
|
4972
4973
|
h("div", jc, [
|
|
4973
4974
|
h("div", Rc, [
|
|
4974
|
-
|
|
4975
|
-
default:
|
|
4975
|
+
C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
4976
|
+
default: I(() => t[5] || (t[5] = [
|
|
4976
4977
|
h("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
4977
4978
|
])),
|
|
4978
4979
|
_: 1
|
|
4979
4980
|
})
|
|
4980
4981
|
]),
|
|
4981
4982
|
t[6] || (t[6] = h("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
|
|
4982
|
-
r.displayForm ? (u(),
|
|
4983
|
+
r.displayForm ? (u(), E(s, {
|
|
4983
4984
|
key: 0,
|
|
4984
4985
|
model: n.formModel,
|
|
4985
4986
|
options: n.formOptions,
|
|
4986
4987
|
schema: i.authFieldsSchema,
|
|
4987
4988
|
onModelUpdated: n.onModelUpdated
|
|
4988
4989
|
}, {
|
|
4989
|
-
"autofill-provider":
|
|
4990
|
+
"autofill-provider": I((p) => [
|
|
4990
4991
|
Oe(e.$slots, "autofill-provider", $i(Vi(p)), void 0, !0)
|
|
4991
4992
|
]),
|
|
4992
4993
|
_: 3
|
|
4993
|
-
}, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
4994
|
+
}, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
|
|
4994
4995
|
])
|
|
4995
4996
|
]),
|
|
4996
|
-
advanced:
|
|
4997
|
+
advanced: I(() => [
|
|
4997
4998
|
h("div", Pc, [
|
|
4998
4999
|
h("div", Nc, [
|
|
4999
|
-
|
|
5000
|
-
default:
|
|
5000
|
+
C(o, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
5001
|
+
default: I(() => t[7] || (t[7] = [
|
|
5001
5002
|
h("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
5002
5003
|
])),
|
|
5003
5004
|
_: 1
|
|
5004
5005
|
})
|
|
5005
5006
|
]),
|
|
5006
5007
|
t[8] || (t[8] = h("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
|
|
5007
|
-
r.displayForm ? (u(),
|
|
5008
|
+
r.displayForm ? (u(), E(s, {
|
|
5008
5009
|
key: 0,
|
|
5009
5010
|
"enable-redis-partial": n.enableRedisPartial,
|
|
5010
5011
|
"is-editing": n.isEditing,
|
|
@@ -5014,7 +5015,7 @@ function Lc(e, t, n, a, i, r) {
|
|
|
5014
5015
|
onModelUpdated: n.onModelUpdated,
|
|
5015
5016
|
onPartialToggled: n.onPartialToggled,
|
|
5016
5017
|
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"])) :
|
|
5018
|
+
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onModelUpdated", "onPartialToggled"])) : R("", !0)
|
|
5018
5019
|
])
|
|
5019
5020
|
]),
|
|
5020
5021
|
_: 3
|
|
@@ -5056,15 +5057,15 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5056
5057
|
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
5058
|
}), o;
|
|
5058
5059
|
});
|
|
5059
|
-
return (o, d) => i.value ? (u(),
|
|
5060
|
+
return (o, d) => i.value ? (u(), E(ae, {
|
|
5060
5061
|
key: 0,
|
|
5061
5062
|
model: e.formModel,
|
|
5062
5063
|
options: e.formOptions,
|
|
5063
5064
|
schema: r.value,
|
|
5064
5065
|
onModelUpdated: e.onModelUpdated
|
|
5065
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5066
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5066
5067
|
}
|
|
5067
|
-
}),
|
|
5068
|
+
}), Bc = /* @__PURE__ */ x(Kc, [["__scopeId", "data-v-f54f37ae"]]), Dc = /* @__PURE__ */ re({
|
|
5068
5069
|
__name: "ExitTransformer",
|
|
5069
5070
|
props: {
|
|
5070
5071
|
formModel: {
|
|
@@ -5099,15 +5100,15 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5099
5100
|
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
5101
|
}), o;
|
|
5101
5102
|
});
|
|
5102
|
-
return (o, d) => i.value ? (u(),
|
|
5103
|
+
return (o, d) => i.value ? (u(), E(ae, {
|
|
5103
5104
|
key: 0,
|
|
5104
5105
|
model: e.formModel,
|
|
5105
5106
|
options: e.formOptions,
|
|
5106
5107
|
schema: r.value,
|
|
5107
5108
|
onModelUpdated: e.onModelUpdated
|
|
5108
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5109
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0);
|
|
5109
5110
|
}
|
|
5110
|
-
}), zc = /* @__PURE__ */ x(
|
|
5111
|
+
}), zc = /* @__PURE__ */ x(Dc, [["__scopeId", "data-v-0d5c541f"]]), xc = {
|
|
5111
5112
|
fields: [
|
|
5112
5113
|
{
|
|
5113
5114
|
inputType: "text",
|
|
@@ -5221,44 +5222,44 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5221
5222
|
}
|
|
5222
5223
|
},
|
|
5223
5224
|
setup(e) {
|
|
5224
|
-
var
|
|
5225
|
-
it(he, (
|
|
5225
|
+
var k;
|
|
5226
|
+
it(he, (k = mt()) == null ? void 0 : k[He]);
|
|
5226
5227
|
const t = e, n = ue("zeroSsl"), a = ue("shm"), i = L(() => {
|
|
5227
5228
|
var v;
|
|
5228
|
-
const
|
|
5229
|
+
const _ = {};
|
|
5229
5230
|
if ((v = t.formSchema) != null && v.fields)
|
|
5230
|
-
for (const
|
|
5231
|
-
|
|
5232
|
-
return
|
|
5231
|
+
for (const j of t.formSchema.fields)
|
|
5232
|
+
_[j.model] = j;
|
|
5233
|
+
return _;
|
|
5233
5234
|
}), r = L(() => {
|
|
5234
5235
|
var v;
|
|
5235
|
-
const
|
|
5236
|
-
for (const
|
|
5237
|
-
const
|
|
5238
|
-
|
|
5236
|
+
const _ = we(xc);
|
|
5237
|
+
for (const j of _.fields) {
|
|
5238
|
+
const H = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5239
|
+
j.help === void 0 && typeof H == "string" && (j.help = H);
|
|
5239
5240
|
}
|
|
5240
|
-
return
|
|
5241
|
+
return _;
|
|
5241
5242
|
}), s = L(() => {
|
|
5242
5243
|
var v;
|
|
5243
|
-
const
|
|
5244
|
-
for (const
|
|
5245
|
-
const
|
|
5246
|
-
|
|
5244
|
+
const _ = we(Yc);
|
|
5245
|
+
for (const j of _.fields) {
|
|
5246
|
+
const H = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5247
|
+
j.help === void 0 && typeof H == "string" && (j.help = H);
|
|
5247
5248
|
}
|
|
5248
|
-
return
|
|
5249
|
+
return _;
|
|
5249
5250
|
}), o = L(() => {
|
|
5250
5251
|
var v;
|
|
5251
|
-
const
|
|
5252
|
-
for (const
|
|
5253
|
-
const
|
|
5254
|
-
|
|
5252
|
+
const _ = we(Hc);
|
|
5253
|
+
for (const j of _.fields) {
|
|
5254
|
+
const H = (v = i.value[j.model]) == null ? void 0 : v.help;
|
|
5255
|
+
j.help === void 0 && typeof H == "string" && (j.help = H);
|
|
5255
5256
|
}
|
|
5256
|
-
return
|
|
5257
|
+
return _;
|
|
5257
5258
|
}), d = L(() => ({
|
|
5258
|
-
fields: t.formSchema.fields.filter((
|
|
5259
|
+
fields: t.formSchema.fields.filter((_) => !_.model.startsWith("config") && _.model !== "tags")
|
|
5259
5260
|
})), l = L(() => ({
|
|
5260
5261
|
fields: r.value.fields.filter(
|
|
5261
|
-
(v) => !s.value.fields.some((
|
|
5262
|
+
(v) => !s.value.fields.some((j) => j.model === v.model) && !o.value.fields.some((j) => j.model === v.model)
|
|
5262
5263
|
)
|
|
5263
5264
|
})), c = L(() => ({
|
|
5264
5265
|
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 +5267,13 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5266
5267
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-consul"))
|
|
5267
5268
|
})), p = L(() => ({
|
|
5268
5269
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-redis"))
|
|
5269
|
-
})),
|
|
5270
|
+
})), F = L(() => ({
|
|
5270
5271
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-shm"))
|
|
5271
5272
|
})), N = L(() => ({
|
|
5272
5273
|
fields: t.formSchema.fields.filter((v) => v.model.startsWith("config-storage_config-vault"))
|
|
5273
5274
|
})), f = L(() => ({
|
|
5274
|
-
fields: t.formSchema.fields.filter((
|
|
5275
|
-
})), w = L(() => t.formModel.id && t.isEditing || !t.isEditing),
|
|
5275
|
+
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config") && !l.value.fields.filter((v) => v.model === _.model).length && !c.value.fields.filter((v) => v.model === _.model).length || _.model === "tags")
|
|
5276
|
+
})), w = L(() => t.formModel.id && t.isEditing || !t.isEditing), T = [
|
|
5276
5277
|
{
|
|
5277
5278
|
hash: "#general",
|
|
5278
5279
|
title: "General"
|
|
@@ -5285,7 +5286,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5285
5286
|
hash: "#advanced",
|
|
5286
5287
|
title: "Advanced"
|
|
5287
5288
|
}
|
|
5288
|
-
],
|
|
5289
|
+
], U = [
|
|
5289
5290
|
{
|
|
5290
5291
|
label: "Lets Encrypt",
|
|
5291
5292
|
value: "letsEncrypt"
|
|
@@ -5303,119 +5304,119 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5303
5304
|
En(() => {
|
|
5304
5305
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5305
5306
|
});
|
|
5306
|
-
const
|
|
5307
|
-
n.value =
|
|
5308
|
-
},
|
|
5309
|
-
v === "config-storage" && (a.value =
|
|
5307
|
+
const y = (_) => {
|
|
5308
|
+
n.value = _.value, (_.value === "zeroSsl" || _.value === "other") && (_.value === "zeroSsl" ? t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : t.formModel["config-api_uri"] = "https://acme.example.com/", t.formModel["config-tos_accepted"] = !1), _.value === "letsEncrypt" && (t.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", t.formModel["config-eab_hmac_key"] = "", t.formModel["config-eab_kid"] = ""), t.onModelUpdated();
|
|
5309
|
+
}, A = (_, v) => {
|
|
5310
|
+
v === "config-storage" && (a.value = _), t.onModelUpdated();
|
|
5310
5311
|
};
|
|
5311
|
-
return (
|
|
5312
|
-
const
|
|
5312
|
+
return (_, v) => {
|
|
5313
|
+
const j = O("KSelect"), H = O("KTabs");
|
|
5313
5314
|
return u(), g("div", null, [
|
|
5314
|
-
e.formModel.id && e.isEditing || !e.isEditing ? (u(),
|
|
5315
|
+
e.formModel.id && e.isEditing || !e.isEditing ? (u(), E(ae, {
|
|
5315
5316
|
key: 0,
|
|
5316
5317
|
class: "global-fields",
|
|
5317
5318
|
model: e.formModel,
|
|
5318
5319
|
options: e.formOptions,
|
|
5319
5320
|
schema: d.value,
|
|
5320
5321
|
onModelUpdated: e.onModelUpdated
|
|
5321
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5322
|
-
|
|
5323
|
-
general:
|
|
5322
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5323
|
+
C(H, { tabs: T }, {
|
|
5324
|
+
general: I(() => [
|
|
5324
5325
|
h("div", Gc, [
|
|
5325
5326
|
v[0] || (v[0] = h("div", { class: "header-wrapper" }, [
|
|
5326
5327
|
h("span", { class: "section-header" }, "General Configuration Settings")
|
|
5327
5328
|
], -1)),
|
|
5328
5329
|
v[1] || (v[1] = h("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
5329
|
-
w.value ? (u(),
|
|
5330
|
+
w.value ? (u(), E(ae, {
|
|
5330
5331
|
key: 0,
|
|
5331
5332
|
model: e.formModel,
|
|
5332
5333
|
options: e.formOptions,
|
|
5333
5334
|
schema: l.value,
|
|
5334
5335
|
onModelUpdated: e.onModelUpdated
|
|
5335
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5336
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5336
5337
|
v[2] || (v[2] = h("hr", null, null, -1)),
|
|
5337
|
-
|
|
5338
|
+
C(j, {
|
|
5338
5339
|
class: "issuer-select",
|
|
5339
|
-
items:
|
|
5340
|
+
items: U,
|
|
5340
5341
|
label: "Issuer",
|
|
5341
|
-
onChange:
|
|
5342
|
+
onChange: y
|
|
5342
5343
|
}),
|
|
5343
5344
|
h("div", Wc, [
|
|
5344
|
-
n.value === "letsEncrypt" ? (u(),
|
|
5345
|
+
n.value === "letsEncrypt" ? (u(), E(ae, {
|
|
5345
5346
|
key: 0,
|
|
5346
5347
|
model: e.formModel,
|
|
5347
5348
|
options: e.formOptions,
|
|
5348
5349
|
schema: s.value,
|
|
5349
5350
|
onModelUpdated: e.onModelUpdated
|
|
5350
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5351
|
-
n.value === "zeroSsl" || n.value === "other" ? (u(),
|
|
5351
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5352
|
+
n.value === "zeroSsl" || n.value === "other" ? (u(), E(ae, {
|
|
5352
5353
|
key: 1,
|
|
5353
5354
|
model: e.formModel,
|
|
5354
5355
|
options: e.formOptions,
|
|
5355
5356
|
schema: o.value,
|
|
5356
5357
|
onModelUpdated: e.onModelUpdated
|
|
5357
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5358
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
|
|
5358
5359
|
])
|
|
5359
5360
|
])
|
|
5360
5361
|
]),
|
|
5361
|
-
storage:
|
|
5362
|
+
storage: I(() => [
|
|
5362
5363
|
h("div", Zc, [
|
|
5363
5364
|
v[3] || (v[3] = h("div", { class: "header-wrapper" }, [
|
|
5364
5365
|
h("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5365
5366
|
], -1)),
|
|
5366
5367
|
v[4] || (v[4] = h("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
5367
|
-
w.value ? (u(),
|
|
5368
|
+
w.value ? (u(), E(ae, {
|
|
5368
5369
|
key: 0,
|
|
5369
5370
|
model: e.formModel,
|
|
5370
5371
|
options: e.formOptions,
|
|
5371
5372
|
schema: c.value,
|
|
5372
|
-
onModelUpdated:
|
|
5373
|
-
}, null, 8, ["model", "options", "schema"])) :
|
|
5373
|
+
onModelUpdated: A
|
|
5374
|
+
}, null, 8, ["model", "options", "schema"])) : R("", !0),
|
|
5374
5375
|
h("div", Jc, [
|
|
5375
|
-
a.value === "consul" ? (u(),
|
|
5376
|
+
a.value === "consul" ? (u(), E(ae, {
|
|
5376
5377
|
key: 0,
|
|
5377
5378
|
model: e.formModel,
|
|
5378
5379
|
options: e.formOptions,
|
|
5379
5380
|
schema: m.value,
|
|
5380
5381
|
onModelUpdated: e.onModelUpdated
|
|
5381
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5382
|
-
a.value === "redis" ? (u(),
|
|
5382
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5383
|
+
a.value === "redis" ? (u(), E(ae, {
|
|
5383
5384
|
key: 1,
|
|
5384
5385
|
model: e.formModel,
|
|
5385
5386
|
options: e.formOptions,
|
|
5386
5387
|
schema: p.value,
|
|
5387
5388
|
onModelUpdated: e.onModelUpdated
|
|
5388
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5389
|
-
a.value === "shm" ? (u(),
|
|
5389
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5390
|
+
a.value === "shm" ? (u(), E(ae, {
|
|
5390
5391
|
key: 2,
|
|
5391
5392
|
model: e.formModel,
|
|
5392
5393
|
options: e.formOptions,
|
|
5393
|
-
schema:
|
|
5394
|
+
schema: F.value,
|
|
5394
5395
|
onModelUpdated: e.onModelUpdated
|
|
5395
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5396
|
-
a.value === "vault" ? (u(),
|
|
5396
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5397
|
+
a.value === "vault" ? (u(), E(ae, {
|
|
5397
5398
|
key: 3,
|
|
5398
5399
|
model: e.formModel,
|
|
5399
5400
|
options: e.formOptions,
|
|
5400
5401
|
schema: N.value,
|
|
5401
5402
|
onModelUpdated: e.onModelUpdated
|
|
5402
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5403
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
|
|
5403
5404
|
])
|
|
5404
5405
|
])
|
|
5405
5406
|
]),
|
|
5406
|
-
advanced:
|
|
5407
|
+
advanced: I(() => [
|
|
5407
5408
|
h("div", Qc, [
|
|
5408
5409
|
v[5] || (v[5] = h("div", { class: "header-wrapper" }, [
|
|
5409
5410
|
h("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5410
5411
|
], -1)),
|
|
5411
5412
|
v[6] || (v[6] = h("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
5412
|
-
w.value ? (u(),
|
|
5413
|
+
w.value ? (u(), E(ae, {
|
|
5413
5414
|
key: 0,
|
|
5414
5415
|
model: e.formModel,
|
|
5415
5416
|
options: e.formOptions,
|
|
5416
5417
|
schema: f.value,
|
|
5417
5418
|
onModelUpdated: e.onModelUpdated
|
|
5418
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) :
|
|
5419
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0)
|
|
5419
5420
|
])
|
|
5420
5421
|
]),
|
|
5421
5422
|
_: 1
|
|
@@ -5442,8 +5443,8 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-44df963d
|
|
|
5442
5443
|
enableRedisPartial: { type: Boolean }
|
|
5443
5444
|
},
|
|
5444
5445
|
setup(e) {
|
|
5445
|
-
var
|
|
5446
|
-
it(he, (
|
|
5446
|
+
var H;
|
|
5447
|
+
it(he, (H = mt()) == null ? void 0 : H[He]);
|
|
5447
5448
|
const t = {
|
|
5448
5449
|
fixed: [
|
|
5449
5450
|
{
|
|
@@ -5503,183 +5504,183 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5503
5504
|
}, n = /* @__PURE__ */ new Set([
|
|
5504
5505
|
"selectionGroup",
|
|
5505
5506
|
"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"),
|
|
5507
|
+
...["identifier", "limit", "window_size", "error_code", "error_message"].map((b) => `config-${b}`)
|
|
5508
|
+
]), a = (b) => b === void 0 ? !1 : n.has(b), { t: i } = ge("en-us", ve), r = e, s = L(() => {
|
|
5509
|
+
var V, P, B;
|
|
5510
|
+
const b = (P = (V = r.formSchema) == null ? void 0 : V.fields) == null ? void 0 : P.find((se) => se.type === "selectionGroup" && se.model === "selectionGroup");
|
|
5511
|
+
return { fields: [(B = r.formSchema) == null ? void 0 : B.fields.find((se) => se.model === "enabled"), b].filter(Boolean) };
|
|
5511
5512
|
}), o = L(() => {
|
|
5512
5513
|
var se, Ue;
|
|
5513
|
-
const
|
|
5514
|
+
const b = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ie) => !a(ie.model))) ?? [], S = [], V = [], P = [];
|
|
5514
5515
|
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")),
|
|
5516
|
+
for (const ie of b) {
|
|
5517
|
+
const Be = ie.model;
|
|
5518
|
+
if (Be !== void 0) {
|
|
5519
|
+
if (Be.startsWith("config-redis-")) {
|
|
5520
|
+
(ie.model === "config-redis-cluster_addresses" || ie.model === "config-redis-sentinel_addresses") && (ie.inputAttributes.help = i("rla.redis.address_example")), V.push(ie);
|
|
5520
5521
|
continue;
|
|
5521
5522
|
}
|
|
5522
|
-
B ?
|
|
5523
|
+
B ? P.push(ie) : S.push(ie), ie.model === "config-strategy" && (B = !0);
|
|
5523
5524
|
}
|
|
5524
5525
|
}
|
|
5525
5526
|
return {
|
|
5526
5527
|
endsWithStrategy: { fields: S },
|
|
5527
|
-
redis: r.enableRedisPartial ? { fields: [{ fields:
|
|
5528
|
-
afterStrategy: { fields:
|
|
5528
|
+
redis: r.enableRedisPartial ? { fields: [{ fields: V, id: "_redis", model: "__redis_partial", redisType: r.formSchema._supported_redis_partial_type }] } : { fields: V },
|
|
5529
|
+
afterStrategy: { fields: P }
|
|
5529
5530
|
};
|
|
5530
5531
|
}), d = L(() => {
|
|
5531
|
-
const
|
|
5532
|
-
return Object.prototype.hasOwnProperty.call(t,
|
|
5532
|
+
const b = r.formModel["config-window_type"];
|
|
5533
|
+
return Object.prototype.hasOwnProperty.call(t, b) ? t[b] : [];
|
|
5533
5534
|
}), l = L(() => {
|
|
5534
|
-
var
|
|
5535
|
-
return (S = (
|
|
5535
|
+
var b, S;
|
|
5536
|
+
return (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((V) => V.model === "config-identifier");
|
|
5536
5537
|
}), c = L(
|
|
5537
5538
|
() => {
|
|
5538
|
-
var
|
|
5539
|
-
return (((
|
|
5540
|
-
label: i(`rla.identifiers.options.${
|
|
5541
|
-
value:
|
|
5539
|
+
var b, S, V;
|
|
5540
|
+
return (((V = (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((P) => P.model === "config-identifier")) == null ? void 0 : V.values) ?? []).map((P) => ({
|
|
5541
|
+
label: i(`rla.identifiers.options.${P}`),
|
|
5542
|
+
value: P
|
|
5542
5543
|
}));
|
|
5543
5544
|
}
|
|
5544
|
-
), m = ue(), p = ue(!0),
|
|
5545
|
+
), m = ue(), p = ue(!0), F = L(
|
|
5545
5546
|
() => {
|
|
5546
|
-
var
|
|
5547
|
-
return r.formModel["config-window_type"] ?? ((
|
|
5547
|
+
var b, S, V;
|
|
5548
|
+
return r.formModel["config-window_type"] ?? ((V = (S = (b = r.formSchema) == null ? void 0 : b.fields) == null ? void 0 : S.find((P) => P.model === "config-window_type")) == null ? void 0 : V.default);
|
|
5548
5549
|
}
|
|
5549
5550
|
), 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,
|
|
5551
|
+
var S, V, P, B, se, Ue;
|
|
5552
|
+
const b = (P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((ie) => ie.model === "config-window_type")) == null ? void 0 : P.default;
|
|
5553
|
+
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, Be) => ie === b ? -1 : Be === b ? 1 : 0);
|
|
5553
5554
|
}), f = L(() => {
|
|
5554
5555
|
var S;
|
|
5555
|
-
const
|
|
5556
|
+
const b = (S = r.formModel["config-limit"]) == null ? void 0 : S.map((V, P) => {
|
|
5556
5557
|
var B, se;
|
|
5557
5558
|
return {
|
|
5558
|
-
limit:
|
|
5559
|
-
windowSize: (se = (B = r.formModel) == null ? void 0 : B["config-window_size"]) == null ? void 0 : se[
|
|
5559
|
+
limit: V,
|
|
5560
|
+
windowSize: (se = (B = r.formModel) == null ? void 0 : B["config-window_size"]) == null ? void 0 : se[P]
|
|
5560
5561
|
};
|
|
5561
5562
|
});
|
|
5562
|
-
return !Array.isArray(
|
|
5563
|
+
return !Array.isArray(b) || b.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : b;
|
|
5563
5564
|
}), w = L(
|
|
5564
5565
|
() => {
|
|
5565
|
-
var
|
|
5566
|
-
return ((
|
|
5566
|
+
var b, S, V, P;
|
|
5567
|
+
return ((b = r.formModel) == null ? void 0 : b["config-identifier"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((B) => B.model === "config-identifier")) == null ? void 0 : P.default);
|
|
5567
5568
|
}
|
|
5568
|
-
),
|
|
5569
|
+
), T = L(
|
|
5569
5570
|
() => {
|
|
5570
|
-
var
|
|
5571
|
-
return ((
|
|
5571
|
+
var b, S, V, P;
|
|
5572
|
+
return ((b = r.formModel) == null ? void 0 : b["config-error_code"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((B) => B.model === "config-error_code")) == null ? void 0 : P.default);
|
|
5572
5573
|
}
|
|
5573
|
-
),
|
|
5574
|
+
), U = L(
|
|
5574
5575
|
() => {
|
|
5575
|
-
var
|
|
5576
|
-
return ((
|
|
5576
|
+
var b, S, V, P;
|
|
5577
|
+
return ((b = r.formModel) == null ? void 0 : b["config-error_message"]) ?? ((P = (V = (S = r.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((B) => B.model === "config-error_message")) == null ? void 0 : P.default);
|
|
5577
5578
|
}
|
|
5578
|
-
),
|
|
5579
|
+
), y = (b, S) => {
|
|
5579
5580
|
if (S === m.value) {
|
|
5580
5581
|
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Kt(() => {
|
|
5581
5582
|
m.value = void 0;
|
|
5582
5583
|
});
|
|
5583
5584
|
return;
|
|
5584
5585
|
}
|
|
5585
|
-
r.onModelUpdated([
|
|
5586
|
+
r.onModelUpdated([b.config.limit], "config-limit"), r.onModelUpdated([b.config.window_size], "config-window_size"), Kt(() => {
|
|
5586
5587
|
m.value = S;
|
|
5587
5588
|
});
|
|
5588
|
-
},
|
|
5589
|
-
m.value !== void 0 && (m.value = void 0),
|
|
5590
|
-
},
|
|
5591
|
-
var
|
|
5589
|
+
}, A = (b) => {
|
|
5590
|
+
m.value !== void 0 && (m.value = void 0), b !== null && r.onModelUpdated(b.toString(), "config-window_type");
|
|
5591
|
+
}, k = (b, S) => {
|
|
5592
|
+
var P;
|
|
5592
5593
|
m.value !== void 0 && (m.value = void 0);
|
|
5593
|
-
const
|
|
5594
|
-
|
|
5595
|
-
},
|
|
5596
|
-
var
|
|
5594
|
+
const V = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []);
|
|
5595
|
+
V[b] = S, r.onModelUpdated(V, "config-limit");
|
|
5596
|
+
}, _ = (b, S) => {
|
|
5597
|
+
var P;
|
|
5597
5598
|
m.value !== void 0 && (m.value = void 0);
|
|
5598
|
-
const
|
|
5599
|
-
|
|
5600
|
-
}, v = (
|
|
5601
|
-
var
|
|
5599
|
+
const V = we(((P = r.formModel) == null ? void 0 : P["config-window_size"]) ?? []);
|
|
5600
|
+
V[b] = S, r.onModelUpdated(V, "config-window_size");
|
|
5601
|
+
}, v = (b) => {
|
|
5602
|
+
var P, B;
|
|
5602
5603
|
m.value !== void 0 && (m.value = void 0);
|
|
5603
|
-
const S = we(((
|
|
5604
|
-
S.length === 0 && S.push(void 0),
|
|
5605
|
-
},
|
|
5606
|
-
var S,
|
|
5604
|
+
const S = we(((P = r.formModel) == null ? void 0 : P["config-limit"]) ?? []), V = we(((B = r.formModel) == null ? void 0 : B["config-window_size"]) ?? []);
|
|
5605
|
+
S.length === 0 && S.push(void 0), V.length === 0 && V.push(void 0), S.splice(b + 1, 0, void 0), V.splice(b + 1, 0, void 0), r.onModelUpdated(S, "config-limit"), r.onModelUpdated(V, "config-window_size");
|
|
5606
|
+
}, j = (b) => {
|
|
5607
|
+
var S, V;
|
|
5607
5608
|
if (f.value.length > 1) {
|
|
5608
5609
|
m.value !== void 0 && (m.value = void 0);
|
|
5609
|
-
const
|
|
5610
|
-
|
|
5610
|
+
const P = we(((S = r.formModel) == null ? void 0 : S["config-limit"]) ?? []), B = we(((V = r.formModel) == null ? void 0 : V["config-window_size"]) ?? []);
|
|
5611
|
+
P.length === 0 && P.push(void 0), B.length === 0 && B.push(void 0), P.splice(b, 1), B.splice(b, 1), r.onModelUpdated(P, "config-limit"), r.onModelUpdated(B, "config-window_size");
|
|
5611
5612
|
}
|
|
5612
5613
|
};
|
|
5613
|
-
return Ut(() => r.formModel["config-strategy"], (
|
|
5614
|
-
|
|
5615
|
-
}), (
|
|
5616
|
-
const
|
|
5617
|
-
return u(), g(
|
|
5614
|
+
return Ut(() => r.formModel["config-strategy"], (b) => {
|
|
5615
|
+
b !== "redis" && r.formModel.partials && r.onModelUpdated(void 0, "partials");
|
|
5616
|
+
}), (b, S) => {
|
|
5617
|
+
const V = O("KLabel"), P = O("KRadio"), B = O("KInput"), se = O("KButton"), Ue = O("KBadge"), ie = O("KTooltip"), Be = O("KCard"), Ci = O("KSelect"), Ii = O("KCollapse");
|
|
5618
|
+
return u(), g(K, null, [
|
|
5618
5619
|
h("div", tm, [
|
|
5619
|
-
|
|
5620
|
-
model:
|
|
5621
|
-
options:
|
|
5620
|
+
C(ae, {
|
|
5621
|
+
model: b.formModel,
|
|
5622
|
+
options: b.formOptions,
|
|
5622
5623
|
schema: s.value,
|
|
5623
|
-
onModelUpdated: S[0] || (S[0] = (
|
|
5624
|
+
onModelUpdated: S[0] || (S[0] = (q, te) => b.onModelUpdated(q, te))
|
|
5624
5625
|
}, null, 8, ["model", "options", "schema"]),
|
|
5625
|
-
|
|
5626
|
-
title:
|
|
5627
|
-
|
|
5626
|
+
C(Be, { class: "rla-form-request-limits" }, {
|
|
5627
|
+
title: I(() => [
|
|
5628
|
+
C(V, {
|
|
5628
5629
|
class: "rla-form-request-limits-title",
|
|
5629
5630
|
for: "rla-form-request-limits-legend",
|
|
5630
5631
|
required: ""
|
|
5631
5632
|
}, {
|
|
5632
|
-
default:
|
|
5633
|
-
ee(
|
|
5633
|
+
default: I(() => [
|
|
5634
|
+
ee($(M(i)("rla.request_limits.title")), 1)
|
|
5634
5635
|
]),
|
|
5635
5636
|
_: 1
|
|
5636
5637
|
}),
|
|
5637
|
-
h("div", nm,
|
|
5638
|
+
h("div", nm, $(M(i)("rla.request_limits.subtitle")), 1)
|
|
5638
5639
|
]),
|
|
5639
|
-
default:
|
|
5640
|
+
default: I(() => [
|
|
5640
5641
|
h("div", im, [
|
|
5641
5642
|
h("div", am, [
|
|
5642
|
-
|
|
5643
|
+
C(V, {
|
|
5643
5644
|
class: "rla-form-window-type-label",
|
|
5644
5645
|
"tooltip-attributes": {
|
|
5645
5646
|
maxWidth: "300",
|
|
5646
5647
|
placement: "top"
|
|
5647
5648
|
}
|
|
5648
5649
|
}, {
|
|
5649
|
-
tooltip:
|
|
5650
|
+
tooltip: I(() => [
|
|
5650
5651
|
h("div", {
|
|
5651
5652
|
innerHTML: M(i)("rla.window_type.help")
|
|
5652
5653
|
}, null, 8, rm)
|
|
5653
5654
|
]),
|
|
5654
|
-
default:
|
|
5655
|
-
ee(
|
|
5655
|
+
default: I(() => [
|
|
5656
|
+
ee($(M(i)("rla.window_type.label")) + " ", 1)
|
|
5656
5657
|
]),
|
|
5657
5658
|
_: 1
|
|
5658
5659
|
}),
|
|
5659
5660
|
h("div", om, [
|
|
5660
|
-
(u(!0), g(
|
|
5661
|
-
key: `window-type-${
|
|
5662
|
-
"model-value":
|
|
5663
|
-
name:
|
|
5664
|
-
"selected-value":
|
|
5665
|
-
"onUpdate:modelValue":
|
|
5661
|
+
(u(!0), g(K, null, J(N.value, (q) => (u(), E(P, {
|
|
5662
|
+
key: `window-type-${q}`,
|
|
5663
|
+
"model-value": F.value,
|
|
5664
|
+
name: q,
|
|
5665
|
+
"selected-value": q,
|
|
5666
|
+
"onUpdate:modelValue": A
|
|
5666
5667
|
}, {
|
|
5667
|
-
default:
|
|
5668
|
-
ee(
|
|
5668
|
+
default: I(() => [
|
|
5669
|
+
ee($(M(i)(`rla.window_type.options.${q}`)), 1)
|
|
5669
5670
|
]),
|
|
5670
5671
|
_: 2
|
|
5671
5672
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5672
5673
|
])
|
|
5673
5674
|
]),
|
|
5674
5675
|
h("div", sm, [
|
|
5675
|
-
(u(!0), g(
|
|
5676
|
+
(u(!0), g(K, null, J(f.value, (q, te) => (u(), g("div", {
|
|
5676
5677
|
key: te.toString()
|
|
5677
5678
|
}, [
|
|
5678
|
-
|
|
5679
|
+
C(V, {
|
|
5679
5680
|
for: `rla-form-request-limits-item-${te}-legend`
|
|
5680
5681
|
}, {
|
|
5681
|
-
default:
|
|
5682
|
-
ee(
|
|
5682
|
+
default: I(() => [
|
|
5683
|
+
ee($(M(i)("rla.request_limits.label_index", { index: te + 1 })), 1)
|
|
5683
5684
|
]),
|
|
5684
5685
|
_: 2
|
|
5685
5686
|
}, 1032, ["for"]),
|
|
@@ -5688,38 +5689,38 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5688
5689
|
id: `rla-form-request-limits-item-${te}-legend`,
|
|
5689
5690
|
class: "rla-form-request-limits-inputs"
|
|
5690
5691
|
}, [
|
|
5691
|
-
|
|
5692
|
-
"model-value":
|
|
5692
|
+
C(B, {
|
|
5693
|
+
"model-value": q.limit && q.limit.toString(),
|
|
5693
5694
|
placeholder: M(i)("rla.request_limits.request_number"),
|
|
5694
5695
|
type: "number",
|
|
5695
|
-
"onUpdate:modelValue": (wt) =>
|
|
5696
|
+
"onUpdate:modelValue": (wt) => k(te, Number.parseInt(wt))
|
|
5696
5697
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5697
|
-
h("div", null,
|
|
5698
|
-
|
|
5699
|
-
"model-value":
|
|
5698
|
+
h("div", null, $(M(i)("rla.request_limits.interval_determiner")), 1),
|
|
5699
|
+
C(B, {
|
|
5700
|
+
"model-value": q.windowSize && q.windowSize.toString(),
|
|
5700
5701
|
placeholder: M(i)("rla.request_limits.time_interval"),
|
|
5701
5702
|
type: "number",
|
|
5702
|
-
"onUpdate:modelValue": (wt) =>
|
|
5703
|
+
"onUpdate:modelValue": (wt) => _(te, Number.parseInt(wt))
|
|
5703
5704
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5704
|
-
h("div", null,
|
|
5705
|
+
h("div", null, $(M(i)("rla.request_limits.seconds")), 1)
|
|
5705
5706
|
], 8, dm),
|
|
5706
5707
|
h("div", um, [
|
|
5707
|
-
|
|
5708
|
+
C(se, {
|
|
5708
5709
|
appearance: "tertiary",
|
|
5709
5710
|
disabled: f.value.length <= 1,
|
|
5710
|
-
onClick: () =>
|
|
5711
|
+
onClick: () => j(te)
|
|
5711
5712
|
}, {
|
|
5712
|
-
default:
|
|
5713
|
-
|
|
5713
|
+
default: I(() => [
|
|
5714
|
+
C(M(ji))
|
|
5714
5715
|
]),
|
|
5715
5716
|
_: 2
|
|
5716
5717
|
}, 1032, ["disabled", "onClick"]),
|
|
5717
|
-
|
|
5718
|
+
C(se, {
|
|
5718
5719
|
appearance: "tertiary",
|
|
5719
5720
|
onClick: () => v(te)
|
|
5720
5721
|
}, {
|
|
5721
|
-
default:
|
|
5722
|
-
|
|
5722
|
+
default: I(() => [
|
|
5723
|
+
C(M($t))
|
|
5723
5724
|
]),
|
|
5724
5725
|
_: 2
|
|
5725
5726
|
}, 1032, ["onClick"])
|
|
@@ -5728,26 +5729,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5728
5729
|
]))), 128))
|
|
5729
5730
|
]),
|
|
5730
5731
|
d.value.length > 0 ? (u(), g("div", cm, [
|
|
5731
|
-
h("div", null,
|
|
5732
|
+
h("div", null, $(M(i)("rla.start_with_a_use_case")), 1),
|
|
5732
5733
|
h("div", mm, [
|
|
5733
|
-
(u(!0), g(
|
|
5734
|
+
(u(!0), g(K, null, J(d.value, (q, te) => (u(), E(ie, {
|
|
5734
5735
|
key: `use-case-${te}`,
|
|
5735
5736
|
"max-width": "300"
|
|
5736
5737
|
}, {
|
|
5737
|
-
content:
|
|
5738
|
-
h("div", null,
|
|
5738
|
+
content: I(() => [
|
|
5739
|
+
h("div", null, $(q.description), 1),
|
|
5739
5740
|
S[10] || (S[10] = h("br", null, null, -1)),
|
|
5740
|
-
h("div", null,
|
|
5741
|
-
h("div", null,
|
|
5741
|
+
h("div", null, $(M(i)("rla.request_limits.label")) + ": " + $(q.config.limit), 1),
|
|
5742
|
+
h("div", null, $(M(i)("rla.request_limits.time_interval")) + ": " + $(q.config.window_size), 1)
|
|
5742
5743
|
]),
|
|
5743
|
-
default:
|
|
5744
|
-
|
|
5745
|
-
appearance: m.value === `${
|
|
5744
|
+
default: I(() => [
|
|
5745
|
+
C(Ue, {
|
|
5746
|
+
appearance: m.value === `${F.value}-${te}` ? "info" : "decorative",
|
|
5746
5747
|
class: "rla-form-request-limits-examples-badge",
|
|
5747
|
-
onClick: () =>
|
|
5748
|
+
onClick: () => y(q, `${F.value}-${te}`)
|
|
5748
5749
|
}, {
|
|
5749
|
-
default:
|
|
5750
|
-
ee(
|
|
5750
|
+
default: I(() => [
|
|
5751
|
+
ee($(q.label), 1)
|
|
5751
5752
|
]),
|
|
5752
5753
|
_: 2
|
|
5753
5754
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -5755,14 +5756,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5755
5756
|
_: 2
|
|
5756
5757
|
}, 1024))), 128))
|
|
5757
5758
|
])
|
|
5758
|
-
])) :
|
|
5759
|
+
])) : R("", !0)
|
|
5759
5760
|
])
|
|
5760
5761
|
]),
|
|
5761
5762
|
_: 1
|
|
5762
5763
|
}),
|
|
5763
|
-
|
|
5764
|
+
C(Ci, {
|
|
5764
5765
|
modelValue: w.value,
|
|
5765
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
5766
|
+
"onUpdate:modelValue": S[1] || (S[1] = (q) => w.value = q),
|
|
5766
5767
|
class: "rla-form-identifiers",
|
|
5767
5768
|
items: c.value,
|
|
5768
5769
|
label: M(i)("rla.identifiers.label"),
|
|
@@ -5773,9 +5774,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5773
5774
|
}
|
|
5774
5775
|
},
|
|
5775
5776
|
required: "",
|
|
5776
|
-
onSelected: S[2] || (S[2] = (
|
|
5777
|
+
onSelected: S[2] || (S[2] = (q) => r.onModelUpdated(q.value, "config-identifier"))
|
|
5777
5778
|
}, {
|
|
5778
|
-
"label-tooltip":
|
|
5779
|
+
"label-tooltip": I(() => [
|
|
5779
5780
|
h("div", {
|
|
5780
5781
|
innerHTML: l.value && l.value.help
|
|
5781
5782
|
}, null, 8, fm)
|
|
@@ -5783,7 +5784,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5783
5784
|
_: 1
|
|
5784
5785
|
}, 8, ["modelValue", "items", "label"]),
|
|
5785
5786
|
h("div", null, [
|
|
5786
|
-
|
|
5787
|
+
C(V, {
|
|
5787
5788
|
for: "rla-form-error-legend",
|
|
5788
5789
|
info: M(i)("rla.error_message.help"),
|
|
5789
5790
|
required: "",
|
|
@@ -5792,65 +5793,65 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5792
5793
|
placement: "top"
|
|
5793
5794
|
}
|
|
5794
5795
|
}, {
|
|
5795
|
-
default:
|
|
5796
|
-
ee(
|
|
5796
|
+
default: I(() => [
|
|
5797
|
+
ee($(M(i)("rla.error_message.label")), 1)
|
|
5797
5798
|
]),
|
|
5798
5799
|
_: 1
|
|
5799
5800
|
}, 8, ["info"]),
|
|
5800
5801
|
h("legend", hm, [
|
|
5801
|
-
|
|
5802
|
+
C(B, {
|
|
5802
5803
|
class: "input-error-code",
|
|
5803
|
-
"model-value":
|
|
5804
|
+
"model-value": T.value && T.value.toString(),
|
|
5804
5805
|
placeholder: M(i)("rla.error_message.code_placeholder"),
|
|
5805
5806
|
type: "number",
|
|
5806
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
5807
|
+
"onUpdate:modelValue": S[3] || (S[3] = (q) => b.onModelUpdated(Number.parseInt(q), "config-error_code"))
|
|
5807
5808
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5808
5809
|
S[11] || (S[11] = h("div", null, ":", -1)),
|
|
5809
|
-
|
|
5810
|
-
"model-value":
|
|
5810
|
+
C(B, {
|
|
5811
|
+
"model-value": U.value,
|
|
5811
5812
|
placeholder: M(i)("rla.error_message.message_placeholder"),
|
|
5812
|
-
"onUpdate:modelValue": S[4] || (S[4] = (
|
|
5813
|
+
"onUpdate:modelValue": S[4] || (S[4] = (q) => b.onModelUpdated(q, "config-error_message"))
|
|
5813
5814
|
}, null, 8, ["model-value", "placeholder"])
|
|
5814
5815
|
])
|
|
5815
5816
|
])
|
|
5816
5817
|
]),
|
|
5817
|
-
|
|
5818
|
+
C(Ii, {
|
|
5818
5819
|
modelValue: p.value,
|
|
5819
|
-
"onUpdate:modelValue": S[9] || (S[9] = (
|
|
5820
|
+
"onUpdate:modelValue": S[9] || (S[9] = (q) => p.value = q),
|
|
5820
5821
|
"trigger-label": M(i)("rla.view_advanced_fields")
|
|
5821
5822
|
}, {
|
|
5822
|
-
default:
|
|
5823
|
-
|
|
5824
|
-
model:
|
|
5825
|
-
options:
|
|
5823
|
+
default: I(() => [
|
|
5824
|
+
C(ae, {
|
|
5825
|
+
model: b.formModel,
|
|
5826
|
+
options: b.formOptions,
|
|
5826
5827
|
schema: o.value.endsWithStrategy,
|
|
5827
|
-
onModelUpdated: S[5] || (S[5] = (
|
|
5828
|
+
onModelUpdated: S[5] || (S[5] = (q, te) => b.onModelUpdated(q, te))
|
|
5828
5829
|
}, null, 8, ["model", "options", "schema"]),
|
|
5829
|
-
|
|
5830
|
+
b.formModel["config-strategy"] === "redis" ? (u(), E(ne(b.enableRedisPartial ? "div" : "KCard"), {
|
|
5830
5831
|
key: 0,
|
|
5831
5832
|
class: "rla-form-redis-card",
|
|
5832
5833
|
title: M(i)("rla.redis.title")
|
|
5833
5834
|
}, {
|
|
5834
|
-
default:
|
|
5835
|
-
|
|
5836
|
-
"enable-redis-partial":
|
|
5837
|
-
"is-editing":
|
|
5838
|
-
model:
|
|
5839
|
-
options:
|
|
5835
|
+
default: I(() => [
|
|
5836
|
+
C(ae, {
|
|
5837
|
+
"enable-redis-partial": b.enableRedisPartial,
|
|
5838
|
+
"is-editing": b.isEditing,
|
|
5839
|
+
model: b.formModel,
|
|
5840
|
+
options: b.formOptions,
|
|
5840
5841
|
schema: o.value.redis,
|
|
5841
|
-
onModelUpdated: S[6] || (S[6] = (
|
|
5842
|
-
onPartialToggled:
|
|
5843
|
-
onShowNewPartialModal: S[7] || (S[7] = () =>
|
|
5842
|
+
onModelUpdated: S[6] || (S[6] = (q, te) => b.onModelUpdated(q, te)),
|
|
5843
|
+
onPartialToggled: b.onPartialToggled,
|
|
5844
|
+
onShowNewPartialModal: S[7] || (S[7] = () => b.showNewPartialModal(b.formSchema._supported_redis_partial_type))
|
|
5844
5845
|
}, null, 8, ["enable-redis-partial", "is-editing", "model", "options", "schema", "onPartialToggled"])
|
|
5845
5846
|
]),
|
|
5846
5847
|
_: 1
|
|
5847
|
-
}, 8, ["title"])) :
|
|
5848
|
-
|
|
5849
|
-
class: W({ "rla-last-vfg":
|
|
5850
|
-
model:
|
|
5851
|
-
options:
|
|
5848
|
+
}, 8, ["title"])) : R("", !0),
|
|
5849
|
+
C(ae, {
|
|
5850
|
+
class: W({ "rla-last-vfg": b.formModel["config-strategy"] !== "redis" }),
|
|
5851
|
+
model: b.formModel,
|
|
5852
|
+
options: b.formOptions,
|
|
5852
5853
|
schema: o.value.afterStrategy,
|
|
5853
|
-
onModelUpdated: S[8] || (S[8] = (
|
|
5854
|
+
onModelUpdated: S[8] || (S[8] = (q, te) => b.onModelUpdated(q, te))
|
|
5854
5855
|
}, null, 8, ["class", "model", "options", "schema"])
|
|
5855
5856
|
]),
|
|
5856
5857
|
_: 1
|
|
@@ -5863,7 +5864,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5863
5864
|
ACMEForm: em,
|
|
5864
5865
|
ExitTransformer: zc,
|
|
5865
5866
|
OIDCForm: qc,
|
|
5866
|
-
PostFunction:
|
|
5867
|
+
PostFunction: Bc,
|
|
5867
5868
|
RLAForm: gm
|
|
5868
5869
|
}, Symbol.toStringTag, { value: "Module" })), Sm = [
|
|
5869
5870
|
"array",
|
|
@@ -5892,6 +5893,7 @@ export {
|
|
|
5892
5893
|
Wr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5893
5894
|
ae as VueFormGenerator,
|
|
5894
5895
|
wm as abstractField,
|
|
5896
|
+
be as composables,
|
|
5895
5897
|
Sm as customFields,
|
|
5896
5898
|
Tm as default,
|
|
5897
5899
|
Cm as getSharedFormName,
|