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