@kong-ui-public/forms 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms.es.js +584 -576
- package/dist/forms.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/forms/RLAForm.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/forms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveDirective as
|
|
1
|
+
import { resolveDirective as De, withDirectives as j, openBlock as d, createElementBlock as m, normalizeClass as H, vModelCheckbox as Pt, Fragment as q, renderList as Z, createElementVNode as u, createTextVNode as te, toDisplayString as A, createCommentVNode as M, ref as ve, computed as P, defineComponent as fe, toRefs as Kn, onMounted as Hn, onBeforeMount as Xi, resolveComponent as F, createVNode as T, mergeProps as Ue, unref as z, withCtx as S, vModelSelect as qt, vModelText as he, vShow as kt, normalizeStyle as ft, createBlock as U, resolveDynamicComponent as me, pushScopeId as Se, popScopeId as Te, renderSlot as He, Transition as Qi, vModelDynamic as er, vModelRadio as tn, createSlots as Yn, nextTick as nn } from "vue";
|
|
2
2
|
import { createI18n as Dt } from "@kong-ui-public/i18n";
|
|
3
|
-
function
|
|
3
|
+
function Gn(e, t) {
|
|
4
4
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
5
5
|
;
|
|
6
6
|
return e;
|
|
@@ -22,7 +22,7 @@ function rr(e, t) {
|
|
|
22
22
|
r[n] = t(n);
|
|
23
23
|
return r;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var xn = typeof global == "object" && global && global.Object === Object && global, sr = typeof self == "object" && self && self.Object === Object && self, pe = xn || sr || Function("return this")(), be = pe.Symbol, Wn = Object.prototype, ar = Wn.hasOwnProperty, or = Wn.toString, Xe = be ? be.toStringTag : void 0;
|
|
26
26
|
function lr(e) {
|
|
27
27
|
var t = ar.call(e, Xe), n = e[Xe];
|
|
28
28
|
try {
|
|
@@ -68,7 +68,7 @@ function jt(e) {
|
|
|
68
68
|
var Tr = "[object Arguments]", $r = "[object Array]", Mr = "[object Boolean]", Cr = "[object Date]", Ir = "[object Error]", Ar = "[object Function]", Or = "[object Map]", kr = "[object Number]", Er = "[object Object]", Fr = "[object RegExp]", Ur = "[object Set]", Nr = "[object String]", Lr = "[object WeakMap]", Vr = "[object ArrayBuffer]", Pr = "[object DataView]", qr = "[object Float32Array]", Dr = "[object Float64Array]", Rr = "[object Int8Array]", Br = "[object Int16Array]", jr = "[object Int32Array]", zr = "[object Uint8Array]", Kr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Yr = "[object Uint32Array]", J = {};
|
|
69
69
|
J[qr] = J[Dr] = J[Rr] = J[Br] = J[jr] = J[zr] = J[Kr] = J[Hr] = J[Yr] = !0;
|
|
70
70
|
J[Tr] = J[$r] = J[Vr] = J[Mr] = J[Pr] = J[Cr] = J[Ir] = J[Ar] = J[Or] = J[kr] = J[Er] = J[Fr] = J[Ur] = J[Nr] = J[Lr] = !1;
|
|
71
|
-
function
|
|
71
|
+
function Gr(e) {
|
|
72
72
|
return _e(e) && jt(e.length) && !!J[Oe(e)];
|
|
73
73
|
}
|
|
74
74
|
function zt(e) {
|
|
@@ -76,21 +76,21 @@ function zt(e) {
|
|
|
76
76
|
return e(t);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
var Xn = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Xn && typeof module == "object" && module && !module.nodeType && module,
|
|
79
|
+
var Xn = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Xn && typeof module == "object" && module && !module.nodeType && module, xr = Qe && Qe.exports === Xn, $t = xr && xn.process, Ye = function() {
|
|
80
80
|
try {
|
|
81
81
|
var e = Qe && Qe.require && Qe.require("util").types;
|
|
82
82
|
return e || $t && $t.binding && $t.binding("util");
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
|
-
}(), ln = Ye && Ye.isTypedArray, Kt = ln ? zt(ln) :
|
|
85
|
+
}(), ln = Ye && Ye.isTypedArray, Kt = ln ? zt(ln) : Gr, Wr = Object.prototype, Zr = Wr.hasOwnProperty;
|
|
86
86
|
function Qn(e, t) {
|
|
87
87
|
var n = ue(e), r = !n && Rt(e), s = !n && !r && nt(e), i = !n && !r && !s && Kt(e), o = n || r || s || i, a = o ? rr(e.length, String) : [], l = a.length;
|
|
88
|
-
for (var
|
|
89
|
-
(t || Zr.call(e,
|
|
90
|
-
(
|
|
91
|
-
s && (
|
|
92
|
-
i && (
|
|
93
|
-
Bt(
|
|
88
|
+
for (var c in e)
|
|
89
|
+
(t || Zr.call(e, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
90
|
+
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
91
|
+
s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
92
|
+
i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
93
|
+
Bt(c, l))) && a.push(c);
|
|
94
94
|
return a;
|
|
95
95
|
}
|
|
96
96
|
var Jr = Object.prototype;
|
|
@@ -152,7 +152,7 @@ function ds(e) {
|
|
|
152
152
|
return typeof e == "function" ? e : gt;
|
|
153
153
|
}
|
|
154
154
|
function ae(e, t) {
|
|
155
|
-
var n = ue(e) ?
|
|
155
|
+
var n = ue(e) ? Gn : ls;
|
|
156
156
|
return n(e, ds(t));
|
|
157
157
|
}
|
|
158
158
|
var us = "[object Symbol]";
|
|
@@ -174,7 +174,7 @@ function hs(e) {
|
|
|
174
174
|
return !!dn && dn in e;
|
|
175
175
|
}
|
|
176
176
|
var fs = Function.prototype, ps = fs.toString;
|
|
177
|
-
function
|
|
177
|
+
function Re(e) {
|
|
178
178
|
if (e != null) {
|
|
179
179
|
try {
|
|
180
180
|
return ps.call(e);
|
|
@@ -194,16 +194,16 @@ function Ts(e) {
|
|
|
194
194
|
if (!ie(e) || hs(e))
|
|
195
195
|
return !1;
|
|
196
196
|
var t = B(e) ? Ss : ys;
|
|
197
|
-
return t.test(
|
|
197
|
+
return t.test(Re(e));
|
|
198
198
|
}
|
|
199
199
|
function $s(e, t) {
|
|
200
200
|
return e == null ? void 0 : e[t];
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Be(e, t) {
|
|
203
203
|
var n = $s(e, t);
|
|
204
204
|
return Ts(n) ? n : void 0;
|
|
205
205
|
}
|
|
206
|
-
var it =
|
|
206
|
+
var it = Be(Object, "create");
|
|
207
207
|
function Ms() {
|
|
208
208
|
this.__data__ = it ? it(null) : {}, this.size = 0;
|
|
209
209
|
}
|
|
@@ -230,18 +230,18 @@ function Ls(e, t) {
|
|
|
230
230
|
var n = this.__data__;
|
|
231
231
|
return this.size += this.has(e) ? 0 : 1, n[e] = it && t === void 0 ? Ns : t, this;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Le(e) {
|
|
234
234
|
var t = -1, n = e == null ? 0 : e.length;
|
|
235
235
|
for (this.clear(); ++t < n; ) {
|
|
236
236
|
var r = e[t];
|
|
237
237
|
this.set(r[0], r[1]);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
Le.prototype.clear = Ms;
|
|
241
|
+
Le.prototype.delete = Cs;
|
|
242
|
+
Le.prototype.get = ks;
|
|
243
|
+
Le.prototype.has = Us;
|
|
244
|
+
Le.prototype.set = Ls;
|
|
245
245
|
function Vs() {
|
|
246
246
|
this.__data__ = [], this.size = 0;
|
|
247
247
|
}
|
|
@@ -285,12 +285,12 @@ $e.prototype.delete = Ds;
|
|
|
285
285
|
$e.prototype.get = Rs;
|
|
286
286
|
$e.prototype.has = Bs;
|
|
287
287
|
$e.prototype.set = js;
|
|
288
|
-
var rt =
|
|
288
|
+
var rt = Be(pe, "Map");
|
|
289
289
|
function zs() {
|
|
290
290
|
this.size = 0, this.__data__ = {
|
|
291
|
-
hash: new
|
|
291
|
+
hash: new Le(),
|
|
292
292
|
map: new (rt || $e)(),
|
|
293
|
-
string: new
|
|
293
|
+
string: new Le()
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
function Ks(e) {
|
|
@@ -308,10 +308,10 @@ function Hs(e) {
|
|
|
308
308
|
function Ys(e) {
|
|
309
309
|
return bt(this, e).get(e);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Gs(e) {
|
|
312
312
|
return bt(this, e).has(e);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function xs(e, t) {
|
|
315
315
|
var n = bt(this, e), r = n.size;
|
|
316
316
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
317
317
|
}
|
|
@@ -325,8 +325,8 @@ function Me(e) {
|
|
|
325
325
|
Me.prototype.clear = zs;
|
|
326
326
|
Me.prototype.delete = Hs;
|
|
327
327
|
Me.prototype.get = Ys;
|
|
328
|
-
Me.prototype.has =
|
|
329
|
-
Me.prototype.set =
|
|
328
|
+
Me.prototype.has = Gs;
|
|
329
|
+
Me.prototype.set = xs;
|
|
330
330
|
var Ws = "Expected a function";
|
|
331
331
|
function Yt(e, t) {
|
|
332
332
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -397,7 +397,7 @@ function ne(e) {
|
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
399
|
var ra = "[object String]";
|
|
400
|
-
function
|
|
400
|
+
function Ve(e) {
|
|
401
401
|
return typeof e == "string" || !ue(e) && _e(e) && Oe(e) == ra;
|
|
402
402
|
}
|
|
403
403
|
const ai = {
|
|
@@ -412,7 +412,7 @@ const ai = {
|
|
|
412
412
|
featured: this.fieldFeatured(e),
|
|
413
413
|
required: this.fieldRequired(e)
|
|
414
414
|
};
|
|
415
|
-
return Array.isArray(e.styleClasses) ? ae(e.styleClasses, (r) => n[r] = !0) :
|
|
415
|
+
return Array.isArray(e.styleClasses) ? ae(e.styleClasses, (r) => n[r] = !0) : Ve(e.styleClasses) && (n[e.styleClasses] = !0), ne(e.type) || (n["field-" + e.type] = !0), n;
|
|
416
416
|
},
|
|
417
417
|
fieldErrors(e) {
|
|
418
418
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
@@ -470,7 +470,7 @@ ye.prototype.has = la;
|
|
|
470
470
|
ye.prototype.set = ua;
|
|
471
471
|
var ut = function() {
|
|
472
472
|
try {
|
|
473
|
-
var e =
|
|
473
|
+
var e = Be(Object, "defineProperty");
|
|
474
474
|
return e({}, "", {}), e;
|
|
475
475
|
} catch {
|
|
476
476
|
}
|
|
@@ -545,13 +545,13 @@ function Sa(e, t) {
|
|
|
545
545
|
function ui() {
|
|
546
546
|
return [];
|
|
547
547
|
}
|
|
548
|
-
var Ta = Object.prototype, $a = Ta.propertyIsEnumerable, pn = Object.getOwnPropertySymbols,
|
|
548
|
+
var Ta = Object.prototype, $a = Ta.propertyIsEnumerable, pn = Object.getOwnPropertySymbols, Gt = pn ? function(e) {
|
|
549
549
|
return e == null ? [] : (e = Object(e), Sa(pn(e), function(t) {
|
|
550
550
|
return $a.call(e, t);
|
|
551
551
|
}));
|
|
552
552
|
} : ui;
|
|
553
553
|
function Ma(e, t) {
|
|
554
|
-
return wt(e,
|
|
554
|
+
return wt(e, Gt(e), t);
|
|
555
555
|
}
|
|
556
556
|
function ci(e, t) {
|
|
557
557
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
@@ -562,7 +562,7 @@ var Ca = ei(Object.getPrototypeOf, Object);
|
|
|
562
562
|
const mi = Ca;
|
|
563
563
|
var Ia = Object.getOwnPropertySymbols, hi = Ia ? function(e) {
|
|
564
564
|
for (var t = []; e; )
|
|
565
|
-
ci(t,
|
|
565
|
+
ci(t, Gt(e)), e = mi(e);
|
|
566
566
|
return t;
|
|
567
567
|
} : ui;
|
|
568
568
|
function Aa(e, t) {
|
|
@@ -573,14 +573,14 @@ function fi(e, t, n) {
|
|
|
573
573
|
return ue(e) ? r : ci(r, n(e));
|
|
574
574
|
}
|
|
575
575
|
function Et(e) {
|
|
576
|
-
return fi(e, Ze,
|
|
576
|
+
return fi(e, Ze, Gt);
|
|
577
577
|
}
|
|
578
578
|
function Oa(e) {
|
|
579
579
|
return fi(e, St, hi);
|
|
580
580
|
}
|
|
581
|
-
var Ft =
|
|
581
|
+
var Ft = Be(pe, "DataView"), Ut = Be(pe, "Promise"), Ke = Be(pe, "Set"), Nt = Be(pe, "WeakMap"), gn = "[object Map]", ka = "[object Object]", yn = "[object Promise]", vn = "[object Set]", bn = "[object WeakMap]", _n = "[object DataView]", Ea = Re(Ft), Fa = Re(rt), Ua = Re(Ut), Na = Re(Ke), La = Re(Nt), Fe = Oe;
|
|
582
582
|
(Ft && Fe(new Ft(new ArrayBuffer(1))) != _n || rt && Fe(new rt()) != gn || Ut && Fe(Ut.resolve()) != yn || Ke && Fe(new Ke()) != vn || Nt && Fe(new Nt()) != bn) && (Fe = function(e) {
|
|
583
|
-
var t = Oe(e), n = t == ka ? e.constructor : void 0, r = n ?
|
|
583
|
+
var t = Oe(e), n = t == ka ? e.constructor : void 0, r = n ? Re(n) : "";
|
|
584
584
|
if (r)
|
|
585
585
|
switch (r) {
|
|
586
586
|
case Ea:
|
|
@@ -596,19 +596,19 @@ var Ft = Re(pe, "DataView"), Ut = Re(pe, "Promise"), Ke = Re(pe, "Set"), Nt = Re
|
|
|
596
596
|
}
|
|
597
597
|
return t;
|
|
598
598
|
});
|
|
599
|
-
const
|
|
599
|
+
const Ge = Fe;
|
|
600
600
|
var Va = Object.prototype, Pa = Va.hasOwnProperty;
|
|
601
601
|
function qa(e) {
|
|
602
602
|
var t = e.length, n = new e.constructor(t);
|
|
603
603
|
return t && typeof e[0] == "string" && Pa.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
604
604
|
}
|
|
605
605
|
var ct = pe.Uint8Array;
|
|
606
|
-
function
|
|
606
|
+
function xt(e) {
|
|
607
607
|
var t = new e.constructor(e.byteLength);
|
|
608
608
|
return new ct(t).set(new ct(e)), t;
|
|
609
609
|
}
|
|
610
610
|
function Da(e, t) {
|
|
611
|
-
var n = t ?
|
|
611
|
+
var n = t ? xt(e.buffer) : e.buffer;
|
|
612
612
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
613
613
|
}
|
|
614
614
|
var Ra = /\w*$/;
|
|
@@ -621,15 +621,15 @@ function ja(e) {
|
|
|
621
621
|
return Sn ? Object(Sn.call(e)) : {};
|
|
622
622
|
}
|
|
623
623
|
function za(e, t) {
|
|
624
|
-
var n = t ?
|
|
624
|
+
var n = t ? xt(e.buffer) : e.buffer;
|
|
625
625
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
626
626
|
}
|
|
627
|
-
var Ka = "[object Boolean]", Ha = "[object Date]", Ya = "[object Map]",
|
|
627
|
+
var Ka = "[object Boolean]", Ha = "[object Date]", Ya = "[object Map]", Ga = "[object Number]", xa = "[object RegExp]", Wa = "[object Set]", Za = "[object String]", Ja = "[object Symbol]", Xa = "[object ArrayBuffer]", Qa = "[object DataView]", eo = "[object Float32Array]", to = "[object Float64Array]", no = "[object Int8Array]", io = "[object Int16Array]", ro = "[object Int32Array]", so = "[object Uint8Array]", ao = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", lo = "[object Uint32Array]";
|
|
628
628
|
function uo(e, t, n) {
|
|
629
629
|
var r = e.constructor;
|
|
630
630
|
switch (t) {
|
|
631
631
|
case Xa:
|
|
632
|
-
return
|
|
632
|
+
return xt(e);
|
|
633
633
|
case Ka:
|
|
634
634
|
case Ha:
|
|
635
635
|
return new r(+e);
|
|
@@ -647,10 +647,10 @@ function uo(e, t, n) {
|
|
|
647
647
|
return za(e, n);
|
|
648
648
|
case Ya:
|
|
649
649
|
return new r();
|
|
650
|
-
case
|
|
650
|
+
case Ga:
|
|
651
651
|
case Za:
|
|
652
652
|
return new r(e);
|
|
653
|
-
case
|
|
653
|
+
case xa:
|
|
654
654
|
return Ba(e);
|
|
655
655
|
case Wa:
|
|
656
656
|
return new r();
|
|
@@ -676,17 +676,17 @@ function mo(e) {
|
|
|
676
676
|
}
|
|
677
677
|
var ho = "[object Map]";
|
|
678
678
|
function fo(e) {
|
|
679
|
-
return _e(e) &&
|
|
679
|
+
return _e(e) && Ge(e) == ho;
|
|
680
680
|
}
|
|
681
681
|
var $n = Ye && Ye.isMap, po = $n ? zt($n) : fo, go = "[object Set]";
|
|
682
682
|
function yo(e) {
|
|
683
|
-
return _e(e) &&
|
|
683
|
+
return _e(e) && Ge(e) == go;
|
|
684
684
|
}
|
|
685
685
|
var Mn = Ye && Ye.isSet, vo = Mn ? zt(Mn) : yo, bo = 1, _o = 2, wo = 4, pi = "[object Arguments]", So = "[object Array]", To = "[object Boolean]", $o = "[object Date]", Mo = "[object Error]", gi = "[object Function]", Co = "[object GeneratorFunction]", Io = "[object Map]", Ao = "[object Number]", yi = "[object Object]", Oo = "[object RegExp]", ko = "[object Set]", Eo = "[object String]", Fo = "[object Symbol]", Uo = "[object WeakMap]", No = "[object ArrayBuffer]", Lo = "[object DataView]", Vo = "[object Float32Array]", Po = "[object Float64Array]", qo = "[object Int8Array]", Do = "[object Int16Array]", Ro = "[object Int32Array]", Bo = "[object Uint8Array]", jo = "[object Uint8ClampedArray]", zo = "[object Uint16Array]", Ko = "[object Uint32Array]", W = {};
|
|
686
686
|
W[pi] = W[So] = W[No] = W[Lo] = W[To] = W[$o] = W[Vo] = W[Po] = W[qo] = W[Do] = W[Ro] = W[Io] = W[Ao] = W[yi] = W[Oo] = W[ko] = W[Eo] = W[Fo] = W[Bo] = W[jo] = W[zo] = W[Ko] = !0;
|
|
687
687
|
W[Mo] = W[gi] = W[Uo] = !1;
|
|
688
688
|
function et(e, t, n, r, s, i) {
|
|
689
|
-
var o, a = t & bo, l = t & _o,
|
|
689
|
+
var o, a = t & bo, l = t & _o, c = t & wo;
|
|
690
690
|
if (n && (o = s ? n(e, r, s, i) : n(e)), o !== void 0)
|
|
691
691
|
return o;
|
|
692
692
|
if (!ie(e))
|
|
@@ -696,11 +696,11 @@ function et(e, t, n, r, s, i) {
|
|
|
696
696
|
if (o = qa(e), !a)
|
|
697
697
|
return wa(e, o);
|
|
698
698
|
} else {
|
|
699
|
-
var g =
|
|
699
|
+
var g = Ge(e), v = g == gi || g == Co;
|
|
700
700
|
if (nt(e))
|
|
701
701
|
return _a(e, a);
|
|
702
|
-
if (g == yi || g == pi ||
|
|
703
|
-
if (o = l ||
|
|
702
|
+
if (g == yi || g == pi || v && !s) {
|
|
703
|
+
if (o = l || v ? {} : mo(e), !a)
|
|
704
704
|
return l ? Aa(e, va(o, e)) : Ma(e, ha(o, e));
|
|
705
705
|
} else {
|
|
706
706
|
if (!W[g])
|
|
@@ -717,8 +717,8 @@ function et(e, t, n, r, s, i) {
|
|
|
717
717
|
}) : po(e) && e.forEach(function(I, y) {
|
|
718
718
|
o.set(y, et(I, t, n, y, e, i));
|
|
719
719
|
});
|
|
720
|
-
var V =
|
|
721
|
-
return
|
|
720
|
+
var V = c ? l ? Oa : Et : l ? St : Ze, w = h ? void 0 : V(e);
|
|
721
|
+
return Gn(w || e, function(I, y) {
|
|
722
722
|
w && (y = I, I = e[y]), li(o, y, et(I, t, n, y, e, i));
|
|
723
723
|
}), o;
|
|
724
724
|
}
|
|
@@ -729,15 +729,15 @@ function we(e) {
|
|
|
729
729
|
const Wt = (e, t = "") => typeof e.id < "u" ? t + e.id : t + (e.inputName || e.label || e.model || "").toString().trim().toLowerCase().replace(/ |_/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-]+)/g, ""), Cn = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
730
730
|
var Ct = function() {
|
|
731
731
|
return pe.Date.now();
|
|
732
|
-
},
|
|
733
|
-
function
|
|
734
|
-
for (var t = e.length; t-- &&
|
|
732
|
+
}, Go = /\s/;
|
|
733
|
+
function xo(e) {
|
|
734
|
+
for (var t = e.length; t-- && Go.test(e.charAt(t)); )
|
|
735
735
|
;
|
|
736
736
|
return t;
|
|
737
737
|
}
|
|
738
738
|
var Wo = /^\s+/;
|
|
739
739
|
function Zo(e) {
|
|
740
|
-
return e && e.slice(0,
|
|
740
|
+
return e && e.slice(0, xo(e) + 1).replace(Wo, "");
|
|
741
741
|
}
|
|
742
742
|
var In = NaN, Jo = /^[-+]0x[0-9a-f]+$/i, Xo = /^0b[01]+$/i, Qo = /^0o[0-7]+$/i, el = parseInt;
|
|
743
743
|
function Lt(e) {
|
|
@@ -757,24 +757,24 @@ function Lt(e) {
|
|
|
757
757
|
}
|
|
758
758
|
var tl = "Expected a function", nl = Math.max, il = Math.min;
|
|
759
759
|
function st(e, t, n) {
|
|
760
|
-
var r, s, i, o, a, l,
|
|
760
|
+
var r, s, i, o, a, l, c = 0, h = !1, g = !1, v = !0;
|
|
761
761
|
if (typeof e != "function")
|
|
762
762
|
throw new TypeError(tl);
|
|
763
|
-
t = Lt(t) || 0, ie(n) && (h = !!n.leading, g = "maxWait" in n, i = g ? nl(Lt(n.maxWait) || 0, t) : i,
|
|
763
|
+
t = Lt(t) || 0, ie(n) && (h = !!n.leading, g = "maxWait" in n, i = g ? nl(Lt(n.maxWait) || 0, t) : i, v = "trailing" in n ? !!n.trailing : v);
|
|
764
764
|
function L(p) {
|
|
765
|
-
var O = r,
|
|
766
|
-
return r = s = void 0,
|
|
765
|
+
var O = r, x = s;
|
|
766
|
+
return r = s = void 0, c = p, o = e.apply(x, O), o;
|
|
767
767
|
}
|
|
768
768
|
function V(p) {
|
|
769
|
-
return
|
|
769
|
+
return c = p, a = setTimeout(y, t), h ? L(p) : o;
|
|
770
770
|
}
|
|
771
771
|
function w(p) {
|
|
772
|
-
var O = p - l,
|
|
773
|
-
return g ? il(f, i -
|
|
772
|
+
var O = p - l, x = p - c, f = t - O;
|
|
773
|
+
return g ? il(f, i - x) : f;
|
|
774
774
|
}
|
|
775
775
|
function I(p) {
|
|
776
|
-
var O = p - l,
|
|
777
|
-
return l === void 0 || O >= t || O < 0 || g &&
|
|
776
|
+
var O = p - l, x = p - c;
|
|
777
|
+
return l === void 0 || O >= t || O < 0 || g && x >= i;
|
|
778
778
|
}
|
|
779
779
|
function y() {
|
|
780
780
|
var p = Ct();
|
|
@@ -783,15 +783,15 @@ function st(e, t, n) {
|
|
|
783
783
|
a = setTimeout(y, w(p));
|
|
784
784
|
}
|
|
785
785
|
function C(p) {
|
|
786
|
-
return a = void 0,
|
|
786
|
+
return a = void 0, v && r ? L(p) : (r = s = void 0, o);
|
|
787
787
|
}
|
|
788
788
|
function Y() {
|
|
789
|
-
a !== void 0 && clearTimeout(a),
|
|
789
|
+
a !== void 0 && clearTimeout(a), c = 0, r = l = s = a = void 0;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function G() {
|
|
792
792
|
return a === void 0 ? o : C(Ct());
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function b() {
|
|
795
795
|
var p = Ct(), O = I(p);
|
|
796
796
|
if (r = arguments, s = this, l = p, O) {
|
|
797
797
|
if (a === void 0)
|
|
@@ -801,7 +801,7 @@ function st(e, t, n) {
|
|
|
801
801
|
}
|
|
802
802
|
return a === void 0 && (a = setTimeout(y, t)), o;
|
|
803
803
|
}
|
|
804
|
-
return
|
|
804
|
+
return b.cancel = Y, b.flush = G, b;
|
|
805
805
|
}
|
|
806
806
|
var rl = "__lodash_hash_undefined__";
|
|
807
807
|
function sl(e) {
|
|
@@ -864,9 +864,9 @@ function gl(e, t, n) {
|
|
|
864
864
|
if (n)
|
|
865
865
|
o = !1, s = cl;
|
|
866
866
|
else if (i >= pl) {
|
|
867
|
-
var
|
|
868
|
-
if (
|
|
869
|
-
return Zt(
|
|
867
|
+
var c = t ? null : fl(e);
|
|
868
|
+
if (c)
|
|
869
|
+
return Zt(c);
|
|
870
870
|
o = !1, s = bi, l = new at();
|
|
871
871
|
} else
|
|
872
872
|
l = t ? [] : a;
|
|
@@ -874,8 +874,8 @@ function gl(e, t, n) {
|
|
|
874
874
|
for (; ++r < i; ) {
|
|
875
875
|
var h = e[r], g = t ? t(h) : h;
|
|
876
876
|
if (h = n || h !== 0 ? h : 0, o && g === g) {
|
|
877
|
-
for (var
|
|
878
|
-
if (l[
|
|
877
|
+
for (var v = l.length; v--; )
|
|
878
|
+
if (l[v] === g)
|
|
879
879
|
continue e;
|
|
880
880
|
t && l.push(g), a.push(h);
|
|
881
881
|
} else
|
|
@@ -957,8 +957,8 @@ var Si = Object.prototype, kl = Si.hasOwnProperty, ke = Al(function(e, t) {
|
|
|
957
957
|
var n = -1, r = t.length, s = r > 2 ? t[2] : void 0;
|
|
958
958
|
for (s && Ol(t[0], t[1], s) && (r = 1); ++n < r; )
|
|
959
959
|
for (var i = t[n], o = St(i), a = -1, l = o.length; ++a < l; ) {
|
|
960
|
-
var
|
|
961
|
-
(h === void 0 || ot(h, Si[
|
|
960
|
+
var c = o[a], h = e[c];
|
|
961
|
+
(h === void 0 || ot(h, Si[c]) && !kl.call(e, c)) && (e[c] = i[c]);
|
|
962
962
|
}
|
|
963
963
|
return e;
|
|
964
964
|
}), El = pe.isFinite;
|
|
@@ -1000,7 +1000,7 @@ var kn = function(e) {
|
|
|
1000
1000
|
return s > -1 ? s : null;
|
|
1001
1001
|
};
|
|
1002
1002
|
};
|
|
1003
|
-
function
|
|
1003
|
+
function Pe(e) {
|
|
1004
1004
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1005
1005
|
t[n - 1] = arguments[n];
|
|
1006
1006
|
for (var r = 0, s = t; r < s.length; r++) {
|
|
@@ -1040,8 +1040,8 @@ var Ii = [
|
|
|
1040
1040
|
DoFn: function(e) {
|
|
1041
1041
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
1042
1042
|
}
|
|
1043
|
-
}, mt =
|
|
1044
|
-
return mt =
|
|
1043
|
+
}, mt = Pe({}, Oi), Bl = function(e) {
|
|
1044
|
+
return mt = Pe(mt, e);
|
|
1045
1045
|
}, En = function(e) {
|
|
1046
1046
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1047
1047
|
}, oe = function(e, t) {
|
|
@@ -1209,7 +1209,7 @@ var Ii = [
|
|
|
1209
1209
|
mediumTime: "HH:mm:ss",
|
|
1210
1210
|
longTime: "HH:mm:ss.SSS"
|
|
1211
1211
|
}, Kl = function(e) {
|
|
1212
|
-
return
|
|
1212
|
+
return Pe(ht, e);
|
|
1213
1213
|
}, Hl = function(e, t, n) {
|
|
1214
1214
|
if (t === void 0 && (t = ht.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1215
1215
|
throw new Error("Invalid Date pass to format");
|
|
@@ -1218,7 +1218,7 @@ var Ii = [
|
|
|
1218
1218
|
t = t.replace(Mi, function(i, o) {
|
|
1219
1219
|
return r.push(o), "@@@";
|
|
1220
1220
|
});
|
|
1221
|
-
var s =
|
|
1221
|
+
var s = Pe(Pe({}, mt), n);
|
|
1222
1222
|
return t = t.replace($i, function(i) {
|
|
1223
1223
|
return jl[i](e, s);
|
|
1224
1224
|
}), t.replace(/@@@/g, function() {
|
|
@@ -1240,25 +1240,25 @@ function Yl(e, t, n) {
|
|
|
1240
1240
|
millisecond: 0,
|
|
1241
1241
|
isPm: null,
|
|
1242
1242
|
timezoneOffset: null
|
|
1243
|
-
}, i = [], o = [], a = t.replace(Mi, function(
|
|
1244
|
-
return o.push(En(
|
|
1245
|
-
}), l = {},
|
|
1246
|
-
a = En(a).replace($i, function(
|
|
1247
|
-
var
|
|
1243
|
+
}, i = [], o = [], a = t.replace(Mi, function(G, b) {
|
|
1244
|
+
return o.push(En(b)), "@@@";
|
|
1245
|
+
}), l = {}, c = {};
|
|
1246
|
+
a = En(a).replace($i, function(G) {
|
|
1247
|
+
var b = zl[G], p = b[0], O = b[1], x = b[3];
|
|
1248
1248
|
if (l[p])
|
|
1249
1249
|
throw new Error("Invalid format. " + p + " specified twice in format");
|
|
1250
|
-
return l[p] = !0,
|
|
1251
|
-
}), Object.keys(
|
|
1252
|
-
if (!l[
|
|
1253
|
-
throw new Error("Invalid format. " +
|
|
1250
|
+
return l[p] = !0, x && (c[x] = !0), i.push(b), "(" + O + ")";
|
|
1251
|
+
}), Object.keys(c).forEach(function(G) {
|
|
1252
|
+
if (!l[G])
|
|
1253
|
+
throw new Error("Invalid format. " + G + " is required in specified format");
|
|
1254
1254
|
}), a = a.replace(/@@@/g, function() {
|
|
1255
1255
|
return o.shift();
|
|
1256
1256
|
});
|
|
1257
1257
|
var h = e.match(new RegExp(a, "i"));
|
|
1258
1258
|
if (!h)
|
|
1259
1259
|
return null;
|
|
1260
|
-
for (var g =
|
|
1261
|
-
var L = i[
|
|
1260
|
+
for (var g = Pe(Pe({}, mt), n), v = 1; v < h.length; v++) {
|
|
1261
|
+
var L = i[v - 1], V = L[0], w = L[2], I = w ? w(h[v], g) : +h[v];
|
|
1262
1262
|
if (I == null)
|
|
1263
1263
|
return null;
|
|
1264
1264
|
s[V] = I;
|
|
@@ -1273,8 +1273,8 @@ function Yl(e, t, n) {
|
|
|
1273
1273
|
["hour", "getHours"],
|
|
1274
1274
|
["minute", "getMinutes"],
|
|
1275
1275
|
["second", "getSeconds"]
|
|
1276
|
-
],
|
|
1277
|
-
if (l[C[
|
|
1276
|
+
], v = 0, Y = C.length; v < Y; v++)
|
|
1277
|
+
if (l[C[v][0]] && s[C[v][0]] !== y[C[v][1]]())
|
|
1278
1278
|
return null;
|
|
1279
1279
|
} else if (y = new Date(Date.UTC(s.year, s.month, s.day, s.hour, s.minute - s.timezoneOffset, s.second, s.millisecond)), s.month > 11 || s.month < 0 || s.day > 31 || s.day < 1 || s.hour > 23 || s.hour < 0 || s.minute > 59 || s.minute < 0 || s.second > 59 || s.second < 0)
|
|
1280
1280
|
return null;
|
|
@@ -1319,7 +1319,7 @@ function Q(e, ...t) {
|
|
|
1319
1319
|
e = e.replace("{" + (n - 1) + "}", t[n]);
|
|
1320
1320
|
return e;
|
|
1321
1321
|
}
|
|
1322
|
-
const
|
|
1322
|
+
const qe = {
|
|
1323
1323
|
resources: se,
|
|
1324
1324
|
required(e, t, n, r = se) {
|
|
1325
1325
|
return ce(e, t.required, r);
|
|
@@ -1335,7 +1335,7 @@ const Pe = {
|
|
|
1335
1335
|
const s = ce(e, t.required, r);
|
|
1336
1336
|
if (s != null)
|
|
1337
1337
|
return s;
|
|
1338
|
-
const i =
|
|
1338
|
+
const i = qe.number(e, t, n, r);
|
|
1339
1339
|
return Ll(e) || i.push(Q(r.invalidInteger)), i;
|
|
1340
1340
|
},
|
|
1341
1341
|
double(e, t, n, r = se) {
|
|
@@ -1350,7 +1350,7 @@ const Pe = {
|
|
|
1350
1350
|
if (s != null)
|
|
1351
1351
|
return s;
|
|
1352
1352
|
const i = [];
|
|
1353
|
-
return
|
|
1353
|
+
return Ve(e) ? (!ne(t.min) && e.length < t.min && i.push(Q(r.textTooSmall, e.length, t.min)), !ne(t.max) && e.length > t.max && i.push(Q(r.textTooBig, e.length, t.max))) : i.push(Q(r.thisNotText)), i;
|
|
1354
1354
|
},
|
|
1355
1355
|
array(e, t, n, r = se) {
|
|
1356
1356
|
if (t.required) {
|
|
@@ -1412,9 +1412,9 @@ const Pe = {
|
|
|
1412
1412
|
const i = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, o = e.replace(/[^0-9]+/g, "");
|
|
1413
1413
|
if (!i.test(o))
|
|
1414
1414
|
return [Q(r.invalidCard)];
|
|
1415
|
-
let a = 0, l,
|
|
1415
|
+
let a = 0, l, c, h;
|
|
1416
1416
|
for (let g = o.length - 1; g >= 0; g--)
|
|
1417
|
-
l = o.substring(g, g + 1),
|
|
1417
|
+
l = o.substring(g, g + 1), c = parseInt(l, 10), h ? (c *= 2, c >= 10 ? a += c % 10 + 1 : a += c) : a += c, h = !h;
|
|
1418
1418
|
if (!(a % 10 === 0 && o))
|
|
1419
1419
|
return [Q(r.invalidCardNumber)];
|
|
1420
1420
|
},
|
|
@@ -1433,17 +1433,17 @@ const Pe = {
|
|
|
1433
1433
|
return [Q(r.invalidTextContainSpec)];
|
|
1434
1434
|
}
|
|
1435
1435
|
};
|
|
1436
|
-
Object.keys(
|
|
1437
|
-
const t =
|
|
1436
|
+
Object.keys(qe).forEach((e) => {
|
|
1437
|
+
const t = qe[e];
|
|
1438
1438
|
B(t) && (t.locale = (n) => (r, s, i) => t(r, s, i, ke(n, se)));
|
|
1439
1439
|
});
|
|
1440
1440
|
function Pn(e) {
|
|
1441
|
-
return
|
|
1441
|
+
return Ve(e) ? qe[e] != null ? qe[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1442
1442
|
}
|
|
1443
1443
|
function It(e, t, n) {
|
|
1444
1444
|
let r = D(n.context, "schema.attributes", {});
|
|
1445
1445
|
const s = t.value || "input";
|
|
1446
|
-
|
|
1446
|
+
Ve(s) && (r = D(r, s) || r), ae(r, (i, o) => {
|
|
1447
1447
|
e.setAttribute(o, i);
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
@@ -1503,7 +1503,7 @@ const K = {
|
|
|
1503
1503
|
const r = (s) => {
|
|
1504
1504
|
let i = [];
|
|
1505
1505
|
ae(_i(s), (a) => {
|
|
1506
|
-
Array.isArray(a) && a.length > 0 ? i = i.concat(a) :
|
|
1506
|
+
Array.isArray(a) && a.length > 0 ? i = i.concat(a) : Ve(a) && i.push(a);
|
|
1507
1507
|
}), B(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, i, this.schema);
|
|
1508
1508
|
const o = i.length === 0;
|
|
1509
1509
|
return e || this.$emit("validated", o, i, this), this.errors = i, i;
|
|
@@ -1561,11 +1561,11 @@ const K = {
|
|
|
1561
1561
|
}, mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1562
1562
|
__proto__: null,
|
|
1563
1563
|
default: K
|
|
1564
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1564
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = {
|
|
1565
1565
|
mixins: [K]
|
|
1566
|
-
},
|
|
1566
|
+
}, xl = ["id", "autocomplete", "disabled", "name", "required"];
|
|
1567
1567
|
function Wl(e, t, n, r, s, i) {
|
|
1568
|
-
const o =
|
|
1568
|
+
const o = De("attributes");
|
|
1569
1569
|
return j((d(), m("input", {
|
|
1570
1570
|
id: e.getFieldID(e.schema),
|
|
1571
1571
|
type: "checkbox",
|
|
@@ -1575,24 +1575,24 @@ function Wl(e, t, n, r, s, i) {
|
|
|
1575
1575
|
name: e.schema.inputName,
|
|
1576
1576
|
class: H(e.schema.fieldClasses),
|
|
1577
1577
|
required: e.schema.required
|
|
1578
|
-
}, null, 10,
|
|
1578
|
+
}, null, 10, xl)), [
|
|
1579
1579
|
[Pt, e.value],
|
|
1580
1580
|
[o, "input"]
|
|
1581
1581
|
]);
|
|
1582
1582
|
}
|
|
1583
|
-
const
|
|
1583
|
+
const N = (e, t) => {
|
|
1584
1584
|
const n = e.__vccOpts || e;
|
|
1585
1585
|
for (const [r, s] of t)
|
|
1586
1586
|
n[r] = s;
|
|
1587
1587
|
return n;
|
|
1588
|
-
}, Zl = /* @__PURE__ */
|
|
1588
|
+
}, Zl = /* @__PURE__ */ N(Gl, [["render", Wl]]);
|
|
1589
1589
|
var Jl = 4;
|
|
1590
1590
|
function qn(e) {
|
|
1591
1591
|
return et(e, Jl);
|
|
1592
1592
|
}
|
|
1593
|
-
const Xl = { class: "wrapper" }, Ql = ["disabled"], ed = ["id", "checked", "disabled", "onChange", "name"], td = ["disabled"], nd = { class: "info" }, id = /* @__PURE__ */
|
|
1593
|
+
const Xl = { class: "wrapper" }, Ql = ["disabled"], ed = ["id", "checked", "disabled", "onChange", "name"], td = ["disabled"], nd = { class: "info" }, id = /* @__PURE__ */ u("div", { class: "arrow" }, null, -1), rd = { class: "dropList" }, sd = ["id", "checked", "disabled", "onChange", "name"];
|
|
1594
1594
|
function ad(e, t, n, r, s, i) {
|
|
1595
|
-
const o =
|
|
1595
|
+
const o = De("attributes");
|
|
1596
1596
|
return j((d(), m("div", Xl, [
|
|
1597
1597
|
e.schema.listBox ? (d(), m("div", {
|
|
1598
1598
|
key: 0,
|
|
@@ -1602,8 +1602,8 @@ function ad(e, t, n, r, s, i) {
|
|
|
1602
1602
|
(d(!0), m(q, null, Z(i.items, (a) => (d(), m("div", {
|
|
1603
1603
|
class: H(["list-row", { "is-checked": i.isItemChecked(a) }])
|
|
1604
1604
|
}, [
|
|
1605
|
-
|
|
1606
|
-
j(
|
|
1605
|
+
u("label", null, [
|
|
1606
|
+
j(u("input", {
|
|
1607
1607
|
id: e.getFieldID(e.schema, !0),
|
|
1608
1608
|
type: "checkbox",
|
|
1609
1609
|
checked: i.isItemChecked(a) || null,
|
|
@@ -1622,19 +1622,19 @@ function ad(e, t, n, r, s, i) {
|
|
|
1622
1622
|
class: "combobox form-control",
|
|
1623
1623
|
disabled: e.disabled || null
|
|
1624
1624
|
}, [
|
|
1625
|
-
|
|
1625
|
+
u("div", {
|
|
1626
1626
|
class: H(["mainRow", { expanded: s.comboExpanded }]),
|
|
1627
1627
|
onClick: t[0] || (t[0] = (...a) => i.onExpandCombo && i.onExpandCombo(...a))
|
|
1628
1628
|
}, [
|
|
1629
|
-
|
|
1629
|
+
u("div", nd, A(i.selectedCount) + " selected", 1),
|
|
1630
1630
|
id
|
|
1631
1631
|
], 2),
|
|
1632
|
-
|
|
1632
|
+
u("div", rd, [
|
|
1633
1633
|
s.comboExpanded ? (d(!0), m(q, { key: 0 }, Z(i.items, (a) => (d(), m("div", {
|
|
1634
1634
|
class: H(["list-row", { "is-checked": i.isItemChecked(a) }])
|
|
1635
1635
|
}, [
|
|
1636
|
-
|
|
1637
|
-
j(
|
|
1636
|
+
u("label", null, [
|
|
1637
|
+
j(u("input", {
|
|
1638
1638
|
id: e.getFieldID(e.schema, !0),
|
|
1639
1639
|
type: "checkbox",
|
|
1640
1640
|
checked: i.isItemChecked(a) || null,
|
|
@@ -1709,9 +1709,9 @@ const od = {
|
|
|
1709
1709
|
this.comboExpanded = !this.comboExpanded;
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
}, ld = /* @__PURE__ */
|
|
1712
|
+
}, ld = /* @__PURE__ */ N(od, [["render", ad]]);
|
|
1713
1713
|
function dd(e) {
|
|
1714
|
-
const t = ve([]), n = ve(null), r = (w) =>
|
|
1714
|
+
const t = ve([]), n = ve(null), r = (w) => Ve(w) ? qe[w] != null ? qe[w] : (console.warn(`'${w}' is not a validator function!`), null) : w, s = P({
|
|
1715
1715
|
get() {
|
|
1716
1716
|
var I, y;
|
|
1717
1717
|
let w;
|
|
@@ -1722,38 +1722,38 @@ function dd(e) {
|
|
|
1722
1722
|
w = V(w), B(w) ? w(w, I) : a(w, I);
|
|
1723
1723
|
}
|
|
1724
1724
|
}), i = (w) => {
|
|
1725
|
-
var
|
|
1725
|
+
var G;
|
|
1726
1726
|
l();
|
|
1727
|
-
const I = (
|
|
1727
|
+
const I = (G = e.schema) == null ? void 0 : G.validator, y = D(e.formOptions, "validateAsync", !1);
|
|
1728
1728
|
let C = [];
|
|
1729
1729
|
if (I && e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
1730
|
-
const
|
|
1730
|
+
const b = [];
|
|
1731
1731
|
Array.isArray(I) ? ae(I, (p) => {
|
|
1732
|
-
|
|
1733
|
-
}) :
|
|
1734
|
-
var O,
|
|
1732
|
+
b.push(r(p));
|
|
1733
|
+
}) : b.push(r(I)), ae(b, (p) => {
|
|
1734
|
+
var O, x;
|
|
1735
1735
|
if (y)
|
|
1736
1736
|
C.push(p(s.value, e.schema, (O = e.model) == null ? void 0 : O.value));
|
|
1737
1737
|
else {
|
|
1738
|
-
const f = p(s.value, e.schema, (
|
|
1739
|
-
f && B(f.then) ? f.then((
|
|
1740
|
-
|
|
1738
|
+
const f = p(s.value, e.schema, (x = e.model) == null ? void 0 : x.value);
|
|
1739
|
+
f && B(f.then) ? f.then((_) => {
|
|
1740
|
+
_ && (t.value = t.value.concat(_));
|
|
1741
1741
|
const k = t.value.length === 0;
|
|
1742
1742
|
e.emitValidated && e.emitValidated({ isValid: k, errors: t.value, field: e.schema });
|
|
1743
1743
|
}) : f && (C = C.concat(f));
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
1747
|
-
const Y = (
|
|
1748
|
-
var O,
|
|
1747
|
+
const Y = (b) => {
|
|
1748
|
+
var O, x;
|
|
1749
1749
|
let p = [];
|
|
1750
|
-
if (ae(_i(
|
|
1751
|
-
Array.isArray(f) && f.length > 0 ? p = p.concat(f) :
|
|
1752
|
-
}), B((O = e.schema) == null ? void 0 : O.onValidated) && e.schema.onValidated((
|
|
1750
|
+
if (ae(_i(b), (f) => {
|
|
1751
|
+
Array.isArray(f) && f.length > 0 ? p = p.concat(f) : Ve(f) && p.push(f);
|
|
1752
|
+
}), B((O = e.schema) == null ? void 0 : O.onValidated) && e.schema.onValidated((x = e.model) == null ? void 0 : x.value, p, e.schema), !w) {
|
|
1753
1753
|
const f = p.length === 0;
|
|
1754
1754
|
e.emitValidated && e.emitValidated({ isValid: f, errors: p, field: e.schema });
|
|
1755
1755
|
}
|
|
1756
|
-
return
|
|
1756
|
+
return b = p, p;
|
|
1757
1757
|
};
|
|
1758
1758
|
return y ? Promise.all(C).then(Y) : Y(C);
|
|
1759
1759
|
}, o = () => {
|
|
@@ -1762,20 +1762,20 @@ function dd(e) {
|
|
|
1762
1762
|
D(e.schema, "validateDebounceTime", D(e.formOptions, "validateDebounceTime", 500))
|
|
1763
1763
|
);
|
|
1764
1764
|
}, a = (w, I) => {
|
|
1765
|
-
var C, Y,
|
|
1765
|
+
var C, Y, G;
|
|
1766
1766
|
let y = !1;
|
|
1767
|
-
B(e.schema.set) ? (e.schema.set((C = e.model) == null ? void 0 : C.value, w), y = !0) : e.schema.model && (
|
|
1767
|
+
B(e.schema.set) ? (e.schema.set((C = e.model) == null ? void 0 : C.value, w), y = !0) : e.schema.model && (c(e.schema.model, w), y = !0), y && (e.emitModelUpdated && ((Y = e.model) != null && Y.value) && e.emitModelUpdated({ value: w, model: e.schema.model }), B(e.schema.onChanged) && e.schema.onChanged((G = e.model) == null ? void 0 : G.value, w, I, e.schema), D(e.formOptions, "validateAfterChanged", !1) === !0 && (D(e.schema, "validateDebounceTime", D(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : i()));
|
|
1768
1768
|
}, l = () => {
|
|
1769
1769
|
t.value.splice(0);
|
|
1770
|
-
},
|
|
1770
|
+
}, c = (w, I) => {
|
|
1771
1771
|
var p;
|
|
1772
1772
|
let y = w.replace(/\[(\w+)\]/g, ".$1");
|
|
1773
1773
|
y = y.replace(/^\./, "");
|
|
1774
1774
|
let C = ((p = e.model) == null ? void 0 : p.value) || {}, Y = 0;
|
|
1775
|
-
const
|
|
1776
|
-
for (; Y <
|
|
1777
|
-
const O =
|
|
1778
|
-
if (Y <
|
|
1775
|
+
const G = y.split("."), b = G.length;
|
|
1776
|
+
for (; Y < b; ) {
|
|
1777
|
+
const O = G[Y];
|
|
1778
|
+
if (Y < b - 1)
|
|
1779
1779
|
C[O] !== void 0 || (C[O] = {}), C = C[O];
|
|
1780
1780
|
else {
|
|
1781
1781
|
C[O] = I;
|
|
@@ -1786,13 +1786,13 @@ function dd(e) {
|
|
|
1786
1786
|
}, h = (w, I = !1) => {
|
|
1787
1787
|
const y = D(e.formOptions, "fieldIdPrefix", "");
|
|
1788
1788
|
return Wt(w, y) + (I ? "-" + wi() : "");
|
|
1789
|
-
}, g = (w) => `${h(w)}-label`,
|
|
1789
|
+
}, g = (w) => `${h(w)}-label`, v = () => D(e.schema, "fieldClasses", []), L = (w) => w, V = (w) => w;
|
|
1790
1790
|
return {
|
|
1791
1791
|
value: s,
|
|
1792
1792
|
clearValidationErrors: l,
|
|
1793
1793
|
getFieldID: h,
|
|
1794
1794
|
getLabelId: g,
|
|
1795
|
-
getFieldClasses:
|
|
1795
|
+
getFieldClasses: v,
|
|
1796
1796
|
updateModelValue: a
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
@@ -1838,7 +1838,7 @@ const ki = {
|
|
|
1838
1838
|
},
|
|
1839
1839
|
emits: ["modelUpdated"],
|
|
1840
1840
|
setup(e, { expose: t, emit: n }) {
|
|
1841
|
-
const r = e, s = n, i = Kn(r), { updateModelValue: o, getFieldID: a, clearValidationErrors: l, value:
|
|
1841
|
+
const r = e, s = n, i = Kn(r), { updateModelValue: o, getFieldID: a, clearValidationErrors: l, value: c } = ki.useAbstractFields({
|
|
1842
1842
|
model: i.model,
|
|
1843
1843
|
schema: r.schema,
|
|
1844
1844
|
formOptions: r.formOptions,
|
|
@@ -1857,11 +1857,11 @@ const ki = {
|
|
|
1857
1857
|
date: "YYYY-MM-DD",
|
|
1858
1858
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1859
1859
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
1860
|
-
},
|
|
1860
|
+
}, v = (y, C) => {
|
|
1861
1861
|
var p, O;
|
|
1862
1862
|
let Y = y;
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1863
|
+
const G = g[h.value] || "", b = ge.parse(y, G);
|
|
1864
|
+
b && ((p = r.schema) != null && p.format ? Y = ge.format(b, (O = r.schema) == null ? void 0 : O.format) : Y = b.valueOf()), o(Y, C);
|
|
1865
1865
|
}, L = (y, C) => {
|
|
1866
1866
|
Vt(y) || (y = NaN), o(y, C);
|
|
1867
1867
|
}, V = (y) => {
|
|
@@ -1872,7 +1872,7 @@ const ki = {
|
|
|
1872
1872
|
Vt(parseFloat(y)) && (C = parseFloat(y));
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
|
-
|
|
1875
|
+
c.value = C, o(C, y);
|
|
1876
1876
|
}, w = ve(null), I = () => {
|
|
1877
1877
|
var y;
|
|
1878
1878
|
B(w.value) && ((y = w.value) == null || y.flush());
|
|
@@ -1897,7 +1897,7 @@ const ki = {
|
|
|
1897
1897
|
case "datetime-local":
|
|
1898
1898
|
w.value = st(
|
|
1899
1899
|
(y, C) => {
|
|
1900
|
-
|
|
1900
|
+
v(y, C);
|
|
1901
1901
|
},
|
|
1902
1902
|
parseInt(D(r.schema, "debounceFormatTimeout", 1e3)),
|
|
1903
1903
|
{
|
|
@@ -1912,17 +1912,17 @@ const ki = {
|
|
|
1912
1912
|
}), (y, C) => {
|
|
1913
1913
|
const Y = F("KInput");
|
|
1914
1914
|
return d(), m("div", ud, [
|
|
1915
|
-
T(Y,
|
|
1915
|
+
T(Y, Ue(y.$attrs, {
|
|
1916
1916
|
id: z(a)(e.schema),
|
|
1917
1917
|
autocomplete: e.schema.autocomplete,
|
|
1918
1918
|
class: e.schema.fieldClasses,
|
|
1919
1919
|
disabled: e.disabled || null,
|
|
1920
|
-
help: e.hint ? e.hint : h.value === "color" || h.value === "range" ? z(
|
|
1920
|
+
help: e.hint ? e.hint : h.value === "color" || h.value === "range" ? z(c) : void 0,
|
|
1921
1921
|
max: e.schema.max,
|
|
1922
1922
|
maxlength: e.schema.maxlength,
|
|
1923
1923
|
min: e.schema.min,
|
|
1924
1924
|
minlength: e.schema.minlength,
|
|
1925
|
-
"model-value": z(
|
|
1925
|
+
"model-value": z(c),
|
|
1926
1926
|
name: e.schema.inputName,
|
|
1927
1927
|
pattern: e.schema.pattern,
|
|
1928
1928
|
placeholder: e.schema.placeholder,
|
|
@@ -1936,7 +1936,7 @@ const ki = {
|
|
|
1936
1936
|
]);
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
}), Ei = /* @__PURE__ */
|
|
1939
|
+
}), Ei = /* @__PURE__ */ N(cd, [["__scopeId", "data-v-b6d4701b"]]), md = /* @__PURE__ */ fe({
|
|
1940
1940
|
__name: "FieldLabel",
|
|
1941
1941
|
props: {
|
|
1942
1942
|
disabled: {
|
|
@@ -1984,9 +1984,9 @@ const ki = {
|
|
|
1984
1984
|
], 2);
|
|
1985
1985
|
};
|
|
1986
1986
|
}
|
|
1987
|
-
}), hd = /* @__PURE__ */
|
|
1987
|
+
}), hd = /* @__PURE__ */ N(md, [["__scopeId", "data-v-852ab959"]]), fd = ["disabled"], pd = ["id", "disabled", "name", "onClick", "value", "checked", "required"];
|
|
1988
1988
|
function gd(e, t, n, r, s, i) {
|
|
1989
|
-
const o =
|
|
1989
|
+
const o = De("attributes");
|
|
1990
1990
|
return j((d(), m("div", {
|
|
1991
1991
|
class: "radio-list",
|
|
1992
1992
|
disabled: e.disabled || null
|
|
@@ -1994,7 +1994,7 @@ function gd(e, t, n, r, s, i) {
|
|
|
1994
1994
|
(d(!0), m(q, null, Z(i.items, (a) => j((d(), m("label", {
|
|
1995
1995
|
class: H(i.getItemCssClasses(a))
|
|
1996
1996
|
}, [
|
|
1997
|
-
j(
|
|
1997
|
+
j(u("input", {
|
|
1998
1998
|
id: e.getFieldID(e.schema, !0),
|
|
1999
1999
|
type: "radio",
|
|
2000
2000
|
disabled: i.isItemDisabled(a) || null,
|
|
@@ -2066,7 +2066,7 @@ const yd = {
|
|
|
2066
2066
|
return B(t) ? t(this.model) : t;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
}, vd = /* @__PURE__ */
|
|
2069
|
+
}, vd = /* @__PURE__ */ N(yd, [["render", gd]]);
|
|
2070
2070
|
function bd(e, t) {
|
|
2071
2071
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
2072
2072
|
if (t(e[n], n, e))
|
|
@@ -2078,10 +2078,10 @@ function Fi(e, t, n, r, s, i) {
|
|
|
2078
2078
|
var o = n & _d, a = e.length, l = t.length;
|
|
2079
2079
|
if (a != l && !(o && l > a))
|
|
2080
2080
|
return !1;
|
|
2081
|
-
var
|
|
2082
|
-
if (
|
|
2083
|
-
return
|
|
2084
|
-
var g = -1,
|
|
2081
|
+
var c = i.get(e), h = i.get(t);
|
|
2082
|
+
if (c && h)
|
|
2083
|
+
return c == t && h == e;
|
|
2084
|
+
var g = -1, v = !0, L = n & wd ? new at() : void 0;
|
|
2085
2085
|
for (i.set(e, t), i.set(t, e); ++g < a; ) {
|
|
2086
2086
|
var V = e[g], w = t[g];
|
|
2087
2087
|
if (r)
|
|
@@ -2089,7 +2089,7 @@ function Fi(e, t, n, r, s, i) {
|
|
|
2089
2089
|
if (I !== void 0) {
|
|
2090
2090
|
if (I)
|
|
2091
2091
|
continue;
|
|
2092
|
-
|
|
2092
|
+
v = !1;
|
|
2093
2093
|
break;
|
|
2094
2094
|
}
|
|
2095
2095
|
if (L) {
|
|
@@ -2097,15 +2097,15 @@ function Fi(e, t, n, r, s, i) {
|
|
|
2097
2097
|
if (!bi(L, C) && (V === y || s(V, y, n, r, i)))
|
|
2098
2098
|
return L.push(C);
|
|
2099
2099
|
})) {
|
|
2100
|
-
|
|
2100
|
+
v = !1;
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
2103
|
} else if (!(V === w || s(V, w, n, r, i))) {
|
|
2104
|
-
|
|
2104
|
+
v = !1;
|
|
2105
2105
|
break;
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
2108
|
-
return i.delete(e), i.delete(t),
|
|
2108
|
+
return i.delete(e), i.delete(t), v;
|
|
2109
2109
|
}
|
|
2110
2110
|
function Sd(e) {
|
|
2111
2111
|
var t = -1, n = Array(e.size);
|
|
@@ -2137,9 +2137,9 @@ function Vd(e, t, n, r, s, i, o) {
|
|
|
2137
2137
|
var l = r & Td;
|
|
2138
2138
|
if (a || (a = Zt), e.size != t.size && !l)
|
|
2139
2139
|
return !1;
|
|
2140
|
-
var
|
|
2141
|
-
if (
|
|
2142
|
-
return
|
|
2140
|
+
var c = o.get(e);
|
|
2141
|
+
if (c)
|
|
2142
|
+
return c == t;
|
|
2143
2143
|
r |= $d, o.set(e, t);
|
|
2144
2144
|
var h = Fi(a(e), a(t), r, s, i, o);
|
|
2145
2145
|
return o.delete(e), h;
|
|
@@ -2151,12 +2151,12 @@ function Vd(e, t, n, r, s, i, o) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
var Pd = 1, qd = Object.prototype, Dd = qd.hasOwnProperty;
|
|
2153
2153
|
function Rd(e, t, n, r, s, i) {
|
|
2154
|
-
var o = n & Pd, a = Et(e), l = a.length,
|
|
2154
|
+
var o = n & Pd, a = Et(e), l = a.length, c = Et(t), h = c.length;
|
|
2155
2155
|
if (l != h && !o)
|
|
2156
2156
|
return !1;
|
|
2157
2157
|
for (var g = l; g--; ) {
|
|
2158
|
-
var
|
|
2159
|
-
if (!(o ?
|
|
2158
|
+
var v = a[g];
|
|
2159
|
+
if (!(o ? v in t : Dd.call(t, v)))
|
|
2160
2160
|
return !1;
|
|
2161
2161
|
}
|
|
2162
2162
|
var L = i.get(e), V = i.get(t);
|
|
@@ -2165,33 +2165,33 @@ function Rd(e, t, n, r, s, i) {
|
|
|
2165
2165
|
var w = !0;
|
|
2166
2166
|
i.set(e, t), i.set(t, e);
|
|
2167
2167
|
for (var I = o; ++g < l; ) {
|
|
2168
|
-
|
|
2169
|
-
var y = e[
|
|
2168
|
+
v = a[g];
|
|
2169
|
+
var y = e[v], C = t[v];
|
|
2170
2170
|
if (r)
|
|
2171
|
-
var Y = o ? r(C, y,
|
|
2171
|
+
var Y = o ? r(C, y, v, t, e, i) : r(y, C, v, e, t, i);
|
|
2172
2172
|
if (!(Y === void 0 ? y === C || s(y, C, n, r, i) : Y)) {
|
|
2173
2173
|
w = !1;
|
|
2174
2174
|
break;
|
|
2175
2175
|
}
|
|
2176
|
-
I || (I =
|
|
2176
|
+
I || (I = v == "constructor");
|
|
2177
2177
|
}
|
|
2178
2178
|
if (w && !I) {
|
|
2179
|
-
var
|
|
2180
|
-
|
|
2179
|
+
var G = e.constructor, b = t.constructor;
|
|
2180
|
+
G != b && "constructor" in e && "constructor" in t && !(typeof G == "function" && G instanceof G && typeof b == "function" && b instanceof b) && (w = !1);
|
|
2181
2181
|
}
|
|
2182
2182
|
return i.delete(e), i.delete(t), w;
|
|
2183
2183
|
}
|
|
2184
2184
|
var Bd = 1, Rn = "[object Arguments]", Bn = "[object Array]", dt = "[object Object]", jd = Object.prototype, jn = jd.hasOwnProperty;
|
|
2185
2185
|
function zd(e, t, n, r, s, i) {
|
|
2186
|
-
var o = ue(e), a = ue(t), l = o ? Bn :
|
|
2187
|
-
l = l == Rn ? dt : l,
|
|
2188
|
-
var h = l == dt, g =
|
|
2189
|
-
if (
|
|
2186
|
+
var o = ue(e), a = ue(t), l = o ? Bn : Ge(e), c = a ? Bn : Ge(t);
|
|
2187
|
+
l = l == Rn ? dt : l, c = c == Rn ? dt : c;
|
|
2188
|
+
var h = l == dt, g = c == dt, v = l == c;
|
|
2189
|
+
if (v && nt(e)) {
|
|
2190
2190
|
if (!nt(t))
|
|
2191
2191
|
return !1;
|
|
2192
2192
|
o = !0, h = !1;
|
|
2193
2193
|
}
|
|
2194
|
-
if (
|
|
2194
|
+
if (v && !h)
|
|
2195
2195
|
return i || (i = new ye()), o || Kt(e) ? Fi(e, t, n, r, s, i) : Vd(e, t, l, n, r, s, i);
|
|
2196
2196
|
if (!(n & Bd)) {
|
|
2197
2197
|
var L = h && jn.call(e, "__wrapped__"), V = g && jn.call(t, "__wrapped__");
|
|
@@ -2200,7 +2200,7 @@ function zd(e, t, n, r, s, i) {
|
|
|
2200
2200
|
return i || (i = new ye()), s(w, I, n, r, i);
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
|
-
return
|
|
2203
|
+
return v ? (i || (i = new ye()), Rd(e, t, n, r, s, i)) : !1;
|
|
2204
2204
|
}
|
|
2205
2205
|
function Jt(e, t, n, r, s) {
|
|
2206
2206
|
return e === t ? !0 : e == null || t == null || !_e(e) && !_e(t) ? e !== e && t !== t : zd(e, t, n, r, Jt, s);
|
|
@@ -2217,15 +2217,15 @@ function Yd(e, t, n, r) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
for (; ++s < i; ) {
|
|
2219
2219
|
a = n[s];
|
|
2220
|
-
var l = a[0],
|
|
2220
|
+
var l = a[0], c = e[l], h = a[1];
|
|
2221
2221
|
if (o && a[2]) {
|
|
2222
|
-
if (
|
|
2222
|
+
if (c === void 0 && !(l in e))
|
|
2223
2223
|
return !1;
|
|
2224
2224
|
} else {
|
|
2225
2225
|
var g = new ye();
|
|
2226
2226
|
if (r)
|
|
2227
|
-
var
|
|
2228
|
-
if (!(
|
|
2227
|
+
var v = r(c, h, l, e, t, g);
|
|
2228
|
+
if (!(v === void 0 ? Jt(h, c, Kd | Hd, r, g) : v))
|
|
2229
2229
|
return !1;
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
@@ -2234,7 +2234,7 @@ function Yd(e, t, n, r) {
|
|
|
2234
2234
|
function Ui(e) {
|
|
2235
2235
|
return e === e && !ie(e);
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function Gd(e) {
|
|
2238
2238
|
for (var t = Ze(e), n = t.length; n--; ) {
|
|
2239
2239
|
var r = t[n], s = e[r];
|
|
2240
2240
|
t[n] = [r, s, Ui(s)];
|
|
@@ -2246,8 +2246,8 @@ function Ni(e, t) {
|
|
|
2246
2246
|
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
2247
2247
|
};
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2250
|
-
var t =
|
|
2249
|
+
function xd(e) {
|
|
2250
|
+
var t = Gd(e);
|
|
2251
2251
|
return t.length == 1 && t[0][2] ? Ni(t[0][0], t[0][1]) : function(n) {
|
|
2252
2252
|
return n === e || Yd(n, e, t);
|
|
2253
2253
|
};
|
|
@@ -2289,7 +2289,7 @@ function iu(e) {
|
|
|
2289
2289
|
return Ht(e) ? tu(_t(e)) : nu(e);
|
|
2290
2290
|
}
|
|
2291
2291
|
function Li(e) {
|
|
2292
|
-
return typeof e == "function" ? e : e == null ? gt : typeof e == "object" ? ue(e) ? eu(e[0], e[1]) :
|
|
2292
|
+
return typeof e == "function" ? e : e == null ? gt : typeof e == "object" ? ue(e) ? eu(e[0], e[1]) : xd(e) : iu(e);
|
|
2293
2293
|
}
|
|
2294
2294
|
function ru(e) {
|
|
2295
2295
|
return function(t, n, r) {
|
|
@@ -2315,7 +2315,7 @@ function au(e, t, n) {
|
|
|
2315
2315
|
var ou = ru(au);
|
|
2316
2316
|
const lu = ["disabled", "name", "id"], du = ["disabled"], uu = ["label"], cu = ["value"], mu = ["value"];
|
|
2317
2317
|
function hu(e, t, n, r, s, i) {
|
|
2318
|
-
const o =
|
|
2318
|
+
const o = De("attributes");
|
|
2319
2319
|
return j((d(), m("select", {
|
|
2320
2320
|
class: H(["form-control", e.schema.fieldClasses]),
|
|
2321
2321
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
@@ -2404,14 +2404,14 @@ const fu = {
|
|
|
2404
2404
|
return e;
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
|
-
}, Vi = /* @__PURE__ */
|
|
2407
|
+
}, Vi = /* @__PURE__ */ N(fu, [["render", hu]]);
|
|
2408
2408
|
var pu = "[object Map]", gu = "[object Set]", yu = Object.prototype, vu = yu.hasOwnProperty;
|
|
2409
2409
|
function bu(e) {
|
|
2410
2410
|
if (e == null)
|
|
2411
2411
|
return !0;
|
|
2412
2412
|
if (We(e) && (ue(e) || typeof e == "string" || typeof e.splice == "function" || nt(e) || Kt(e) || Rt(e)))
|
|
2413
2413
|
return !e.length;
|
|
2414
|
-
var t =
|
|
2414
|
+
var t = Ge(e);
|
|
2415
2415
|
if (t == pu || t == gu)
|
|
2416
2416
|
return !e.size;
|
|
2417
2417
|
if (pt(e))
|
|
@@ -2447,9 +2447,9 @@ const Su = {
|
|
|
2447
2447
|
B(this.schema.onSubmit) && this.schema.onSubmit(this.model, this.schema, e);
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
|
-
}, Tu = /* @__PURE__ */
|
|
2450
|
+
}, Tu = /* @__PURE__ */ N(Su, [["render", wu]]), $u = ["id", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "name"];
|
|
2451
2451
|
function Mu(e, t, n, r, s, i) {
|
|
2452
|
-
const o =
|
|
2452
|
+
const o = De("attributes");
|
|
2453
2453
|
return j((d(), m("textarea", {
|
|
2454
2454
|
class: H(["form-control", e.schema.fieldClasses]),
|
|
2455
2455
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
@@ -2469,11 +2469,11 @@ function Mu(e, t, n, r, s, i) {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
const Cu = {
|
|
2471
2471
|
mixins: [K]
|
|
2472
|
-
}, Pi = /* @__PURE__ */
|
|
2472
|
+
}, Pi = /* @__PURE__ */ N(Cu, [["render", Mu]]), Iu = { class: "wrapper" }, Au = ["id", "name", "accept", "multiple", "placeholder", "readonly", "required", "disabled"];
|
|
2473
2473
|
function Ou(e, t, n, r, s, i) {
|
|
2474
|
-
const o =
|
|
2474
|
+
const o = De("attributes");
|
|
2475
2475
|
return j((d(), m("div", Iu, [
|
|
2476
|
-
j(
|
|
2476
|
+
j(u("input", {
|
|
2477
2477
|
class: "form-control",
|
|
2478
2478
|
id: e.getFieldID(e.schema),
|
|
2479
2479
|
type: "file",
|
|
@@ -2499,7 +2499,7 @@ const ku = {
|
|
|
2499
2499
|
B(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, this.schema, e, this);
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
}, Eu = /* @__PURE__ */
|
|
2502
|
+
}, Eu = /* @__PURE__ */ N(ku, [["render", Ou]]), Fu = ["value", "autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2503
2503
|
function Uu(e, t, n, r, s, i) {
|
|
2504
2504
|
return d(), m("input", {
|
|
2505
2505
|
class: "form-control",
|
|
@@ -2561,7 +2561,7 @@ const Nu = {
|
|
|
2561
2561
|
this.value = this.$el.value;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
}, Lu = /* @__PURE__ */
|
|
2564
|
+
}, Lu = /* @__PURE__ */ N(Nu, [["render", Uu]]), qi = {
|
|
2565
2565
|
formatValueToField(e) {
|
|
2566
2566
|
if (e != null) {
|
|
2567
2567
|
const t = this.schema.format ? ge.parse(e, this.schema.format) : new Date(e);
|
|
@@ -2576,12 +2576,12 @@ const Nu = {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
return e;
|
|
2578
2578
|
}
|
|
2579
|
-
}, Vu = { class: "input-group date" }, Pu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"], qu = /* @__PURE__ */
|
|
2580
|
-
/* @__PURE__ */
|
|
2579
|
+
}, Vu = { class: "input-group date" }, Pu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"], qu = /* @__PURE__ */ u("span", { class: "input-group-addon" }, [
|
|
2580
|
+
/* @__PURE__ */ u("span", { class: "glyphicon glyphicon-calendar" })
|
|
2581
2581
|
], -1);
|
|
2582
2582
|
function Du(e, t, n, r, s, i) {
|
|
2583
2583
|
return d(), m("div", Vu, [
|
|
2584
|
-
j(
|
|
2584
|
+
j(u("input", {
|
|
2585
2585
|
class: "form-control",
|
|
2586
2586
|
type: "text",
|
|
2587
2587
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2625,7 +2625,7 @@ const zn = "YYYY-MM-DD HH:mm:ss", Ru = {
|
|
|
2625
2625
|
},
|
|
2626
2626
|
...qi
|
|
2627
2627
|
}
|
|
2628
|
-
}, Bu = /* @__PURE__ */
|
|
2628
|
+
}, Bu = /* @__PURE__ */ N(Ru, [["render", Du]]), ju = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2629
2629
|
function zu(e, t, n, r, s, i) {
|
|
2630
2630
|
return j((d(), m("input", {
|
|
2631
2631
|
class: "form-control",
|
|
@@ -2705,10 +2705,10 @@ const Ku = {
|
|
|
2705
2705
|
});
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
|
-
}, Hu = /* @__PURE__ */
|
|
2708
|
+
}, Hu = /* @__PURE__ */ N(Ku, [["render", zu]]), Yu = { class: "wrapper" }, Gu = ["autocomplete", "disabled", "placeholder", "readonly"], xu = ["disabled", "name"];
|
|
2709
2709
|
function Wu(e, t, n, r, s, i) {
|
|
2710
2710
|
return d(), m("div", Yu, [
|
|
2711
|
-
j(
|
|
2711
|
+
j(u("input", {
|
|
2712
2712
|
class: "form-control link",
|
|
2713
2713
|
type: "text",
|
|
2714
2714
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => i.wrappedValue = o),
|
|
@@ -2716,7 +2716,7 @@ function Wu(e, t, n, r, s, i) {
|
|
|
2716
2716
|
disabled: e.disabled || null,
|
|
2717
2717
|
placeholder: e.schema.placeholder,
|
|
2718
2718
|
readonly: e.schema.readonly
|
|
2719
|
-
}, null, 8,
|
|
2719
|
+
}, null, 8, Gu), [
|
|
2720
2720
|
[kt, e.schema.hideInput !== !0],
|
|
2721
2721
|
[he, i.wrappedValue]
|
|
2722
2722
|
]),
|
|
@@ -2727,12 +2727,12 @@ function Wu(e, t, n, r, s, i) {
|
|
|
2727
2727
|
disabled: e.disabled || null,
|
|
2728
2728
|
onChange: t[1] || (t[1] = (...o) => i.fileChanged && i.fileChanged(...o)),
|
|
2729
2729
|
name: e.schema.inputName
|
|
2730
|
-
}, null, 40,
|
|
2731
|
-
|
|
2730
|
+
}, null, 40, xu)) : M("", !0),
|
|
2731
|
+
u("div", {
|
|
2732
2732
|
class: "preview",
|
|
2733
2733
|
style: ft(i.previewStyle)
|
|
2734
2734
|
}, [
|
|
2735
|
-
|
|
2735
|
+
u("div", {
|
|
2736
2736
|
class: "remove",
|
|
2737
2737
|
title: "Remove image",
|
|
2738
2738
|
onClick: t[2] || (t[2] = (...o) => i.remove && i.remove(...o))
|
|
@@ -2780,7 +2780,7 @@ const Zu = {
|
|
|
2780
2780
|
}, e.target.files && e.target.files.length > 0 && t.readAsDataURL(e.target.files[0]);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
}, Ju = /* @__PURE__ */
|
|
2783
|
+
}, Ju = /* @__PURE__ */ N(Zu, [["render", Wu]]), Xu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2784
2784
|
function Qu(e, t, n, r, s, i) {
|
|
2785
2785
|
return j((d(), m("input", {
|
|
2786
2786
|
class: "form-control",
|
|
@@ -2808,7 +2808,7 @@ const ec = {
|
|
|
2808
2808
|
beforeUnmount() {
|
|
2809
2809
|
window.$ && window.$.fn.mask && $(this.$el).unmask();
|
|
2810
2810
|
}
|
|
2811
|
-
}, tc = /* @__PURE__ */
|
|
2811
|
+
}, tc = /* @__PURE__ */ N(ec, [["render", Qu]]), nc = {
|
|
2812
2812
|
mixins: [K],
|
|
2813
2813
|
data() {
|
|
2814
2814
|
return {
|
|
@@ -2872,7 +2872,7 @@ function rc(e, t, n, r, s, i) {
|
|
|
2872
2872
|
disabled: e.disabled || null
|
|
2873
2873
|
}, null, 10, ic);
|
|
2874
2874
|
}
|
|
2875
|
-
const sc = /* @__PURE__ */
|
|
2875
|
+
const sc = /* @__PURE__ */ N(nc, [["render", rc]]), ac = ["autocomplete", "disabled", "placeholder", "readonly", "name"];
|
|
2876
2876
|
function oc(e, t, n, r, s, i) {
|
|
2877
2877
|
return j((d(), m("input", {
|
|
2878
2878
|
class: "form-control",
|
|
@@ -2919,7 +2919,7 @@ const lc = "YYYY-MM-DD", dc = {
|
|
|
2919
2919
|
});
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
|
-
}, uc = /* @__PURE__ */
|
|
2922
|
+
}, uc = /* @__PURE__ */ N(dc, [["render", oc]]), cc = ["autocomplete", "data-disable", "data-max", "data-min", "data-step", "placeholder", "readonly", "name"];
|
|
2923
2923
|
function mc(e, t, n, r, s, i) {
|
|
2924
2924
|
return d(), m("input", {
|
|
2925
2925
|
type: "text",
|
|
@@ -2981,7 +2981,7 @@ const hc = {
|
|
|
2981
2981
|
beforeUnmount() {
|
|
2982
2982
|
this.slider && this.slider.destroy();
|
|
2983
2983
|
}
|
|
2984
|
-
}, fc = /* @__PURE__ */
|
|
2984
|
+
}, fc = /* @__PURE__ */ N(hc, [["render", mc]]), pc = ["disabled", "multiple", "title", "name"], gc = ["disabled", "selected"], yc = ["value"];
|
|
2985
2985
|
function vc(e, t, n, r, s, i) {
|
|
2986
2986
|
return j((d(), m("select", {
|
|
2987
2987
|
class: "selectpicker",
|
|
@@ -3053,7 +3053,7 @@ const bc = {
|
|
|
3053
3053
|
return e;
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
}, _c = /* @__PURE__ */
|
|
3056
|
+
}, _c = /* @__PURE__ */ N(bc, [["render", vc]]), wc = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
3057
3057
|
function Sc(e, t, n, r, s, i) {
|
|
3058
3058
|
return d(), m("input", {
|
|
3059
3059
|
type: "text",
|
|
@@ -3102,7 +3102,7 @@ const Tc = {
|
|
|
3102
3102
|
beforeUnmount() {
|
|
3103
3103
|
this.picker && this.picker.spectrum("destroy");
|
|
3104
3104
|
}
|
|
3105
|
-
}, $c = /* @__PURE__ */
|
|
3105
|
+
}, $c = /* @__PURE__ */ N(Tc, [["render", Sc]]), Mc = ["src"];
|
|
3106
3106
|
function Cc(e, t, n, r, s, i) {
|
|
3107
3107
|
return d(), m("img", { src: i.mapLink }, null, 8, Mc);
|
|
3108
3108
|
}
|
|
@@ -3127,10 +3127,10 @@ const Ic = {
|
|
|
3127
3127
|
return n;
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
|
-
}, Ac = /* @__PURE__ */
|
|
3130
|
+
}, Ac = /* @__PURE__ */ N(Ic, [["render", Cc]]), Oc = ["autocomplete", "disabled", "name", "id"], kc = ["data-on", "data-off", "for"], Ec = /* @__PURE__ */ u("span", { class: "handle" }, null, -1);
|
|
3131
3131
|
function Fc(e, t, n, r, s, i) {
|
|
3132
3132
|
return d(), m("label", null, [
|
|
3133
|
-
j(
|
|
3133
|
+
j(u("input", {
|
|
3134
3134
|
type: "checkbox",
|
|
3135
3135
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
3136
3136
|
autocomplete: e.schema.autocomplete,
|
|
@@ -3140,7 +3140,7 @@ function Fc(e, t, n, r, s, i) {
|
|
|
3140
3140
|
}, null, 8, Oc), [
|
|
3141
3141
|
[Pt, e.value]
|
|
3142
3142
|
]),
|
|
3143
|
-
|
|
3143
|
+
u("span", {
|
|
3144
3144
|
class: "label",
|
|
3145
3145
|
"data-on": e.schema.textOn || "On",
|
|
3146
3146
|
"data-off": e.schema.textOff || "Off",
|
|
@@ -3159,7 +3159,7 @@ const Uc = {
|
|
|
3159
3159
|
return e != null && this.schema.valueOn ? e ? this.schema.valueOn : this.schema.valueOff : e;
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
|
-
}, Nc = /* @__PURE__ */
|
|
3162
|
+
}, Nc = /* @__PURE__ */ N(Uc, [["render", Fc]]), Lc = {
|
|
3163
3163
|
mixins: [K],
|
|
3164
3164
|
data() {
|
|
3165
3165
|
return {
|
|
@@ -3193,13 +3193,13 @@ const Uc = {
|
|
|
3193
3193
|
this.value[this.newKeyName] = void 0, this.value = { ...this.value }, this.keyTypes[this.newKeyName] = this.newKeyType, this.keyTypes = { ...this.keyTypes }, this.newKeyName = "";
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
}, Vc = { key: 0 }, Pc = { key: 1 }, qc = ["id"], Dc = { key: 0 }, Rc = ["onUpdate:modelValue"], Bc = { key: 1 }, jc = ["onUpdate:modelValue"], zc = { key: 2 }, Kc = ["onUpdate:modelValue"], Hc = ["onClick"], Yc = /* @__PURE__ */
|
|
3196
|
+
}, Vc = { key: 0 }, Pc = { key: 1 }, qc = ["id"], Dc = { key: 0 }, Rc = ["onUpdate:modelValue"], Bc = { key: 1 }, jc = ["onUpdate:modelValue"], zc = { key: 2 }, Kc = ["onUpdate:modelValue"], Hc = ["onClick"], Yc = /* @__PURE__ */ u("option", { value: "string" }, " String ", -1), Gc = /* @__PURE__ */ u("option", { value: "number" }, " Number ", -1), xc = /* @__PURE__ */ u("option", { value: "boolean" }, " Boolean ", -1), Wc = [
|
|
3197
3197
|
Yc,
|
|
3198
|
-
|
|
3199
|
-
|
|
3198
|
+
Gc,
|
|
3199
|
+
xc
|
|
3200
3200
|
];
|
|
3201
3201
|
function Zc(e, t, n, r, s, i) {
|
|
3202
|
-
const o = F("vue-form-generator"), a =
|
|
3202
|
+
const o = F("vue-form-generator"), a = De("attributes");
|
|
3203
3203
|
return j((d(), m("div", null, [
|
|
3204
3204
|
e.schema.schema ? (d(), m("div", Vc, [
|
|
3205
3205
|
T(o, {
|
|
@@ -3208,57 +3208,57 @@ function Zc(e, t, n, r, s, i) {
|
|
|
3208
3208
|
schema: e.schema.schema
|
|
3209
3209
|
}, null, 8, ["model", "options", "schema"])
|
|
3210
3210
|
])) : (d(), m("div", Pc, [
|
|
3211
|
-
|
|
3211
|
+
u("table", {
|
|
3212
3212
|
id: e.getFieldID(e.schema),
|
|
3213
3213
|
class: H(e.schema.fieldClasses)
|
|
3214
3214
|
}, [
|
|
3215
|
-
(d(!0), m(q, null, Z(e.value, (l,
|
|
3216
|
-
|
|
3217
|
-
s.keyTypes[
|
|
3218
|
-
j(
|
|
3219
|
-
"onUpdate:modelValue": (h) => e.value[
|
|
3215
|
+
(d(!0), m(q, null, Z(e.value, (l, c) => (d(), m("tr", { key: c }, [
|
|
3216
|
+
u("td", null, A(c), 1),
|
|
3217
|
+
s.keyTypes[c] === "string" ? (d(), m("td", Dc, [
|
|
3218
|
+
j(u("input", {
|
|
3219
|
+
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3220
3220
|
type: "text"
|
|
3221
3221
|
}, null, 8, Rc), [
|
|
3222
|
-
[he, e.value[
|
|
3222
|
+
[he, e.value[c]]
|
|
3223
3223
|
])
|
|
3224
3224
|
])) : M("", !0),
|
|
3225
|
-
s.keyTypes[
|
|
3226
|
-
j(
|
|
3227
|
-
"onUpdate:modelValue": (h) => e.value[
|
|
3225
|
+
s.keyTypes[c] === "boolean" ? (d(), m("td", Bc, [
|
|
3226
|
+
j(u("input", {
|
|
3227
|
+
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3228
3228
|
type: "checkbox"
|
|
3229
3229
|
}, null, 8, jc), [
|
|
3230
|
-
[Pt, e.value[
|
|
3230
|
+
[Pt, e.value[c]]
|
|
3231
3231
|
])
|
|
3232
3232
|
])) : M("", !0),
|
|
3233
|
-
s.keyTypes[
|
|
3234
|
-
j(
|
|
3235
|
-
"onUpdate:modelValue": (h) => e.value[
|
|
3233
|
+
s.keyTypes[c] === "number" ? (d(), m("td", zc, [
|
|
3234
|
+
j(u("input", {
|
|
3235
|
+
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3236
3236
|
type: "number"
|
|
3237
3237
|
}, null, 8, Kc), [
|
|
3238
|
-
[he, e.value[
|
|
3238
|
+
[he, e.value[c]]
|
|
3239
3239
|
])
|
|
3240
3240
|
])) : M("", !0),
|
|
3241
|
-
|
|
3242
|
-
|
|
3241
|
+
u("td", null, [
|
|
3242
|
+
u("input", {
|
|
3243
3243
|
type: "button",
|
|
3244
3244
|
value: "x",
|
|
3245
|
-
onClick: (h) => i.removeElement(
|
|
3245
|
+
onClick: (h) => i.removeElement(c)
|
|
3246
3246
|
}, null, 8, Hc)
|
|
3247
3247
|
])
|
|
3248
3248
|
]))), 128))
|
|
3249
3249
|
], 10, qc),
|
|
3250
|
-
j(
|
|
3250
|
+
j(u("select", {
|
|
3251
3251
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.newKeyType = l)
|
|
3252
3252
|
}, Wc, 512), [
|
|
3253
3253
|
[qt, s.newKeyType]
|
|
3254
3254
|
]),
|
|
3255
|
-
j(
|
|
3255
|
+
j(u("input", {
|
|
3256
3256
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => s.newKeyName = l),
|
|
3257
3257
|
type: "text"
|
|
3258
3258
|
}, null, 512), [
|
|
3259
3259
|
[he, s.newKeyName]
|
|
3260
3260
|
]),
|
|
3261
|
-
|
|
3261
|
+
u("input", {
|
|
3262
3262
|
type: "button",
|
|
3263
3263
|
value: "Add key",
|
|
3264
3264
|
onClick: t[2] || (t[2] = (...l) => i.addKey && i.addKey(...l))
|
|
@@ -3268,7 +3268,7 @@ function Zc(e, t, n, r, s, i) {
|
|
|
3268
3268
|
[a, s.attributes]
|
|
3269
3269
|
]);
|
|
3270
3270
|
}
|
|
3271
|
-
const Di = /* @__PURE__ */
|
|
3271
|
+
const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) => {
|
|
3272
3272
|
const n = e.__vccOpts || e;
|
|
3273
3273
|
for (const [r, s] of t)
|
|
3274
3274
|
n[r] = s;
|
|
@@ -3276,7 +3276,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3276
3276
|
}, Jc = (e) => (Se("data-v-1d2a8d30"), e = e(), Te(), e), Xc = ["aria-hidden"], Qc = {
|
|
3277
3277
|
key: 0,
|
|
3278
3278
|
"data-testid": "kui-icon-svg-title"
|
|
3279
|
-
}, em = /* @__PURE__ */ Jc(() => /* @__PURE__ */
|
|
3279
|
+
}, em = /* @__PURE__ */ Jc(() => /* @__PURE__ */ u("path", {
|
|
3280
3280
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
3281
3281
|
fill: "currentColor"
|
|
3282
3282
|
}, null, -1)), tm = /* @__PURE__ */ fe({
|
|
@@ -3310,7 +3310,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3310
3310
|
size: {
|
|
3311
3311
|
type: [Number, String],
|
|
3312
3312
|
required: !1,
|
|
3313
|
-
default:
|
|
3313
|
+
default: xe,
|
|
3314
3314
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3315
3315
|
validator: (e) => {
|
|
3316
3316
|
if (typeof e == "number" && e > 0)
|
|
@@ -3339,7 +3339,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3339
3339
|
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
3340
3340
|
return `${i}px`;
|
|
3341
3341
|
}
|
|
3342
|
-
return
|
|
3342
|
+
return xe;
|
|
3343
3343
|
}), r = P(() => ({
|
|
3344
3344
|
boxSizing: "border-box",
|
|
3345
3345
|
color: t.color,
|
|
@@ -3348,7 +3348,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3348
3348
|
lineHeight: "0",
|
|
3349
3349
|
width: n.value
|
|
3350
3350
|
}));
|
|
3351
|
-
return (s, i) => (d(),
|
|
3351
|
+
return (s, i) => (d(), U(me(e.as), {
|
|
3352
3352
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3353
3353
|
class: "kui-icon add-icon",
|
|
3354
3354
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -3375,7 +3375,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3375
3375
|
}), Ri = /* @__PURE__ */ Xt(tm, [["__scopeId", "data-v-1d2a8d30"]]), nm = (e) => (Se("data-v-ddb48b32"), e = e(), Te(), e), im = ["aria-hidden"], rm = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
"data-testid": "kui-icon-svg-title"
|
|
3378
|
-
}, sm = /* @__PURE__ */ nm(() => /* @__PURE__ */
|
|
3378
|
+
}, sm = /* @__PURE__ */ nm(() => /* @__PURE__ */ u("path", {
|
|
3379
3379
|
d: "M5 13V11H19V13H5Z",
|
|
3380
3380
|
fill: "currentColor"
|
|
3381
3381
|
}, null, -1)), am = /* @__PURE__ */ fe({
|
|
@@ -3409,7 +3409,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3409
3409
|
size: {
|
|
3410
3410
|
type: [Number, String],
|
|
3411
3411
|
required: !1,
|
|
3412
|
-
default:
|
|
3412
|
+
default: xe,
|
|
3413
3413
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3414
3414
|
validator: (e) => {
|
|
3415
3415
|
if (typeof e == "number" && e > 0)
|
|
@@ -3438,7 +3438,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3438
3438
|
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
3439
3439
|
return `${i}px`;
|
|
3440
3440
|
}
|
|
3441
|
-
return
|
|
3441
|
+
return xe;
|
|
3442
3442
|
}), r = P(() => ({
|
|
3443
3443
|
boxSizing: "border-box",
|
|
3444
3444
|
color: t.color,
|
|
@@ -3447,7 +3447,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3447
3447
|
lineHeight: "0",
|
|
3448
3448
|
width: n.value
|
|
3449
3449
|
}));
|
|
3450
|
-
return (s, i) => (d(),
|
|
3450
|
+
return (s, i) => (d(), U(me(e.as), {
|
|
3451
3451
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3452
3452
|
class: "kui-icon remove-icon",
|
|
3453
3453
|
"data-testid": "kui-icon-wrapper-remove-icon",
|
|
@@ -3474,7 +3474,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3474
3474
|
}), om = /* @__PURE__ */ Xt(am, [["__scopeId", "data-v-ddb48b32"]]), lm = (e) => (Se("data-v-b199fa56"), e = e(), Te(), e), dm = ["aria-hidden"], um = {
|
|
3475
3475
|
key: 0,
|
|
3476
3476
|
"data-testid": "kui-icon-svg-title"
|
|
3477
|
-
}, cm = /* @__PURE__ */ lm(() => /* @__PURE__ */
|
|
3477
|
+
}, cm = /* @__PURE__ */ lm(() => /* @__PURE__ */ u("path", {
|
|
3478
3478
|
d: "M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",
|
|
3479
3479
|
fill: "currentColor"
|
|
3480
3480
|
}, null, -1)), mm = /* @__PURE__ */ fe({
|
|
@@ -3508,7 +3508,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3508
3508
|
size: {
|
|
3509
3509
|
type: [Number, String],
|
|
3510
3510
|
required: !1,
|
|
3511
|
-
default:
|
|
3511
|
+
default: xe,
|
|
3512
3512
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3513
3513
|
validator: (e) => {
|
|
3514
3514
|
if (typeof e == "number" && e > 0)
|
|
@@ -3537,7 +3537,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3537
3537
|
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
3538
3538
|
return `${i}px`;
|
|
3539
3539
|
}
|
|
3540
|
-
return
|
|
3540
|
+
return xe;
|
|
3541
3541
|
}), r = P(() => ({
|
|
3542
3542
|
boxSizing: "border-box",
|
|
3543
3543
|
color: t.color,
|
|
@@ -3546,7 +3546,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3546
3546
|
lineHeight: "0",
|
|
3547
3547
|
width: n.value
|
|
3548
3548
|
}));
|
|
3549
|
-
return (s, i) => (d(),
|
|
3549
|
+
return (s, i) => (d(), U(me(e.as), {
|
|
3550
3550
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3551
3551
|
class: "kui-icon trash-icon",
|
|
3552
3552
|
"data-testid": "kui-icon-wrapper-trash-icon",
|
|
@@ -3634,7 +3634,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3634
3634
|
const i = s.indexOf(n + "-");
|
|
3635
3635
|
if (i > -1 && Array.isArray(t))
|
|
3636
3636
|
if (t.length > 0) {
|
|
3637
|
-
const a = s.split("-").filter((
|
|
3637
|
+
const a = s.split("-").filter((c) => t.find((h) => h.model === c)), l = s.split(`-${a}`)[0].split(`${n}-`)[1];
|
|
3638
3638
|
a.length ? r[l] = {
|
|
3639
3639
|
...r[l],
|
|
3640
3640
|
[a]: e[s]
|
|
@@ -3642,7 +3642,7 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3642
3642
|
} else
|
|
3643
3643
|
r[s.substring(`${n}-`.length)] = e[s];
|
|
3644
3644
|
else {
|
|
3645
|
-
const a = s.split("-").filter((
|
|
3645
|
+
const a = s.split("-").filter((c) => c === this.schema.model), l = s.split(`-${a}`)[0].split(`${n}-`)[1];
|
|
3646
3646
|
l && (r[l] = e[s]);
|
|
3647
3647
|
}
|
|
3648
3648
|
return s;
|
|
@@ -3656,10 +3656,10 @@ const Di = /* @__PURE__ */ U(Lc, [["render", Zc]]), Ge = "24px", Xt = (e, t) =>
|
|
|
3656
3656
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
3657
3657
|
}
|
|
3658
3658
|
}
|
|
3659
|
-
}, Bi = (e) => (Se("data-v-b35063fd"), e = e(), Te(), e), fm = ["id"], pm = ["data-testid"], gm = { class: "item-wrapper" }, ym = { class: "index-wrapper" }, vm = /* @__PURE__ */ Bi(() => /* @__PURE__ */
|
|
3659
|
+
}, Bi = (e) => (Se("data-v-b35063fd"), e = e(), Te(), e), fm = ["id"], pm = ["data-testid"], gm = { class: "item-wrapper" }, ym = { class: "index-wrapper" }, vm = /* @__PURE__ */ Bi(() => /* @__PURE__ */ u("hr", { class: "divider" }, null, -1)), bm = { key: 0 }, _m = { key: 1 }, wm = ["onUpdate:modelValue", "placeholder", "onInput"], Sm = {
|
|
3660
3660
|
key: 0,
|
|
3661
3661
|
class: "hint"
|
|
3662
|
-
}, Tm = /* @__PURE__ */ Bi(() => /* @__PURE__ */
|
|
3662
|
+
}, Tm = /* @__PURE__ */ Bi(() => /* @__PURE__ */ u("hr", { class: "wide-divider" }, null, -1)), $m = { class: "input-item" }, Mm = ["placeholder"], Cm = {
|
|
3663
3663
|
key: 0,
|
|
3664
3664
|
class: "hint"
|
|
3665
3665
|
};
|
|
@@ -3669,15 +3669,15 @@ function Im(e, t, n, r, s, i) {
|
|
|
3669
3669
|
id: e.getFieldID(e.schema),
|
|
3670
3670
|
class: H(["object-advanced-wrapper", e.schema.fieldClasses])
|
|
3671
3671
|
}, [
|
|
3672
|
-
(d(!0), m(q, null, Z(e.value, (
|
|
3672
|
+
(d(!0), m(q, null, Z(e.value, (c, h) => (d(), m("div", {
|
|
3673
3673
|
key: h,
|
|
3674
3674
|
"data-testid": `field-object-key-${h}`
|
|
3675
3675
|
}, [
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3676
|
+
u("div", null, [
|
|
3677
|
+
u("div", gm, [
|
|
3678
|
+
u("div", ym, [
|
|
3679
|
+
u("strong", null, A(h), 1),
|
|
3680
|
+
u("div", null, [
|
|
3681
3681
|
T(a, {
|
|
3682
3682
|
appearance: "tertiary",
|
|
3683
3683
|
class: "delete",
|
|
@@ -3701,7 +3701,7 @@ function Im(e, t, n, r, s, i) {
|
|
|
3701
3701
|
onModelUpdated: i.updateModel
|
|
3702
3702
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3703
3703
|
])) : (d(), m("div", _m, [
|
|
3704
|
-
j(
|
|
3704
|
+
j(u("input", {
|
|
3705
3705
|
"onUpdate:modelValue": (g) => e.value[h] = g,
|
|
3706
3706
|
class: "form-control",
|
|
3707
3707
|
placeholder: e.schema.fields && e.schema.fields[0].schema.placeholder,
|
|
@@ -3716,12 +3716,12 @@ function Im(e, t, n, r, s, i) {
|
|
|
3716
3716
|
])
|
|
3717
3717
|
])
|
|
3718
3718
|
], 8, pm))), 128)),
|
|
3719
|
-
|
|
3719
|
+
u("div", {
|
|
3720
3720
|
class: H(["input-wrapper", { indent: i.hasObjectKeys }])
|
|
3721
3721
|
}, [
|
|
3722
|
-
|
|
3723
|
-
j(
|
|
3724
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3722
|
+
u("div", $m, [
|
|
3723
|
+
j(u("input", {
|
|
3724
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => s.newKeyName = c),
|
|
3725
3725
|
class: "form-control",
|
|
3726
3726
|
"data-testid": "keyname-input",
|
|
3727
3727
|
placeholder: e.schema.placeholder,
|
|
@@ -3745,7 +3745,7 @@ function Im(e, t, n, r, s, i) {
|
|
|
3745
3745
|
], 2)
|
|
3746
3746
|
], 10, fm);
|
|
3747
3747
|
}
|
|
3748
|
-
const ji = /* @__PURE__ */
|
|
3748
|
+
const ji = /* @__PURE__ */ N(hm, [["render", Im], ["__scopeId", "data-v-b35063fd"]]), Am = { class: "array-item" }, Om = /* @__PURE__ */ fe({
|
|
3749
3749
|
__name: "FieldArrayItem",
|
|
3750
3750
|
props: {
|
|
3751
3751
|
model: {
|
|
@@ -3772,7 +3772,7 @@ const ji = /* @__PURE__ */ U(hm, [["render", Im], ["__scopeId", "data-v-b35063fd
|
|
|
3772
3772
|
]);
|
|
3773
3773
|
};
|
|
3774
3774
|
}
|
|
3775
|
-
}), zi = /* @__PURE__ */
|
|
3775
|
+
}), zi = /* @__PURE__ */ N(Om, [["__scopeId", "data-v-ec926551"]]), km = (e) => (Se("data-v-27d212bd"), e = e(), Te(), e), Em = { class: "multi-item-wrapper" }, Fm = /* @__PURE__ */ km(() => /* @__PURE__ */ u("hr", null, null, -1)), Um = /* @__PURE__ */ fe({
|
|
3776
3776
|
__name: "FieldArrayMultiItem",
|
|
3777
3777
|
emits: ["remove-item"],
|
|
3778
3778
|
setup(e) {
|
|
@@ -3794,7 +3794,7 @@ const ji = /* @__PURE__ */ U(hm, [["render", Im], ["__scopeId", "data-v-b35063fd
|
|
|
3794
3794
|
]);
|
|
3795
3795
|
};
|
|
3796
3796
|
}
|
|
3797
|
-
}), Ki = /* @__PURE__ */
|
|
3797
|
+
}), Ki = /* @__PURE__ */ N(Um, [["__scopeId", "data-v-27d212bd"]]), Nm = {
|
|
3798
3798
|
name: "FieldMetric",
|
|
3799
3799
|
components: { AddIcon: Ri, TrashIcon: lt },
|
|
3800
3800
|
mixins: [K],
|
|
@@ -3813,9 +3813,9 @@ function Vm(e, t, n, r, s, i) {
|
|
|
3813
3813
|
return d(), m("div", {
|
|
3814
3814
|
class: H(["field-dropdown", { active: s.contentVisible }])
|
|
3815
3815
|
}, [
|
|
3816
|
-
|
|
3816
|
+
u("div", {
|
|
3817
3817
|
class: "title",
|
|
3818
|
-
onClick: t[0] || (t[0] = (
|
|
3818
|
+
onClick: t[0] || (t[0] = (c) => s.contentVisible = !s.contentVisible)
|
|
3819
3819
|
}, [
|
|
3820
3820
|
te(A(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3821
3821
|
T(o, { class: "metric-add-icon" })
|
|
@@ -3827,7 +3827,7 @@ function Vm(e, t, n, r, s, i) {
|
|
|
3827
3827
|
T(l, {
|
|
3828
3828
|
appearance: "tertiary",
|
|
3829
3829
|
class: "metric-remove-button",
|
|
3830
|
-
onClick: t[1] || (t[1] = (
|
|
3830
|
+
onClick: t[1] || (t[1] = (c) => e.$emit("remove-item"))
|
|
3831
3831
|
}, {
|
|
3832
3832
|
default: S(() => [
|
|
3833
3833
|
T(a)
|
|
@@ -3840,18 +3840,18 @@ function Vm(e, t, n, r, s, i) {
|
|
|
3840
3840
|
})
|
|
3841
3841
|
], 2);
|
|
3842
3842
|
}
|
|
3843
|
-
const Hi = /* @__PURE__ */
|
|
3843
|
+
const Hi = /* @__PURE__ */ N(Nm, [["render", Vm]]), Ee = "kong-ui-forms-api", Pm = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
3844
3844
|
function qm(e) {
|
|
3845
3845
|
return e ? e.length === 36 && new RegExp(`^${Pm}$`).test(e) : !1;
|
|
3846
3846
|
}
|
|
3847
|
-
const Ot = 50,
|
|
3847
|
+
const Ot = 50, Ne = {
|
|
3848
3848
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
3849
3849
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
3850
3850
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
3851
3851
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
3852
3852
|
};
|
|
3853
3853
|
function Dm(e, t, n) {
|
|
3854
|
-
return n ?
|
|
3854
|
+
return n ? Ne.SET_REFERRAL_VALUE : e && !t || !e && t ? Ne.UPDATE_ENTITY : e && t ? Ne.CREATE_FROM_ENTITY : Ne.CREATE_NOT_FROM_ENTITY;
|
|
3855
3855
|
}
|
|
3856
3856
|
const Rm = {
|
|
3857
3857
|
mixins: [K],
|
|
@@ -3885,17 +3885,17 @@ const Rm = {
|
|
|
3885
3885
|
await this.$nextTick();
|
|
3886
3886
|
let e, t;
|
|
3887
3887
|
switch (this.fieldState) {
|
|
3888
|
-
case
|
|
3888
|
+
case Ne.UPDATE_ENTITY:
|
|
3889
3889
|
if (!this[Ee]) {
|
|
3890
3890
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
3891
3891
|
break;
|
|
3892
3892
|
}
|
|
3893
3893
|
t = (await this[Ee].getOne(this.entity, this.model[this.schema.model])).data, e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
3894
3894
|
break;
|
|
3895
|
-
case
|
|
3895
|
+
case Ne.CREATE_FROM_ENTITY:
|
|
3896
3896
|
this.idValue = this.associatedEntity.id;
|
|
3897
3897
|
break;
|
|
3898
|
-
case
|
|
3898
|
+
case Ne.SET_REFERRAL_VALUE:
|
|
3899
3899
|
this.idValue = this.value;
|
|
3900
3900
|
}
|
|
3901
3901
|
try {
|
|
@@ -3990,27 +3990,27 @@ function Hm(e, t, n, r, s, i) {
|
|
|
3990
3990
|
onQueryChange: i.onQueryChange
|
|
3991
3991
|
}, {
|
|
3992
3992
|
"item-template": S(({ item: a }) => [
|
|
3993
|
-
|
|
3993
|
+
u("span", {
|
|
3994
3994
|
class: "first-part",
|
|
3995
3995
|
"data-testid": a.id && `${a.id}-0`,
|
|
3996
3996
|
"data-testlabel": a.label
|
|
3997
3997
|
}, A(i.getSuggestionLabel(a).split(" - ")[0]), 9, jm),
|
|
3998
|
-
(d(!0), m(q, null, Z(i.getSuggestionLabel(a).split(" - ").slice(1), (l,
|
|
3999
|
-
key:
|
|
3998
|
+
(d(!0), m(q, null, Z(i.getSuggestionLabel(a).split(" - ").slice(1), (l, c) => (d(), m("span", {
|
|
3999
|
+
key: c,
|
|
4000
4000
|
class: "field-span",
|
|
4001
|
-
"data-testid": a.id && `${a.id}-${
|
|
4001
|
+
"data-testid": a.id && `${a.id}-${c + 1}` || c + 1
|
|
4002
4002
|
}, A(l), 9, zm))), 128))
|
|
4003
4003
|
]),
|
|
4004
4004
|
empty: S(() => [
|
|
4005
|
-
|
|
4006
|
-
|
|
4005
|
+
u("div", Km, [
|
|
4006
|
+
u("span", null, A(s.message), 1)
|
|
4007
4007
|
])
|
|
4008
4008
|
]),
|
|
4009
4009
|
_: 1
|
|
4010
4010
|
}, 8, ["id", "modelValue", "items", "loading", "placeholder", "onChange", "onQueryChange"])
|
|
4011
4011
|
]);
|
|
4012
4012
|
}
|
|
4013
|
-
const Yi = /* @__PURE__ */
|
|
4013
|
+
const Yi = /* @__PURE__ */ N(Rm, [["render", Hm], ["__scopeId", "data-v-647bb712"]]), Ym = { class: "array-card-container" }, Gm = /* @__PURE__ */ fe({
|
|
4014
4014
|
__name: "FieldArrayCardContainer",
|
|
4015
4015
|
props: {
|
|
4016
4016
|
model: {
|
|
@@ -4046,7 +4046,7 @@ const Yi = /* @__PURE__ */ U(Rm, [["render", Hm], ["__scopeId", "data-v-647bb712
|
|
|
4046
4046
|
]);
|
|
4047
4047
|
};
|
|
4048
4048
|
}
|
|
4049
|
-
}),
|
|
4049
|
+
}), Gi = /* @__PURE__ */ N(Gm, [["__scopeId", "data-v-5fa27cb4"]]), xm = {
|
|
4050
4050
|
mixins: [K],
|
|
4051
4051
|
emits: ["model-updated"],
|
|
4052
4052
|
methods: {
|
|
@@ -4068,11 +4068,11 @@ function Xm(e, t, n, r, s, i) {
|
|
|
4068
4068
|
key: a,
|
|
4069
4069
|
class: "option-group"
|
|
4070
4070
|
}, [
|
|
4071
|
-
|
|
4072
|
-
|
|
4071
|
+
u("div", Zm, [
|
|
4072
|
+
u("label", {
|
|
4073
4073
|
class: H(["k-label", o.name])
|
|
4074
4074
|
}, [
|
|
4075
|
-
|
|
4075
|
+
u("input", {
|
|
4076
4076
|
id: e.schema.name + "-" + a,
|
|
4077
4077
|
checked: i.checkOption(o),
|
|
4078
4078
|
class: "k-input",
|
|
@@ -4087,7 +4087,7 @@ function Xm(e, t, n, r, s, i) {
|
|
|
4087
4087
|
]))), 128))
|
|
4088
4088
|
]);
|
|
4089
4089
|
}
|
|
4090
|
-
const
|
|
4090
|
+
const xi = /* @__PURE__ */ N(xm, [["render", Xm], ["__scopeId", "data-v-7e49acd6"]]), Qm = {
|
|
4091
4091
|
name: "FieldArray",
|
|
4092
4092
|
components: {
|
|
4093
4093
|
FieldArrayItem: zi,
|
|
@@ -4097,8 +4097,8 @@ const Gi = /* @__PURE__ */ U(Gm, [["render", Xm], ["__scopeId", "data-v-7e49acd6
|
|
|
4097
4097
|
FieldObject: Di,
|
|
4098
4098
|
FieldObjectAdvanced: ji,
|
|
4099
4099
|
FieldAutoSuggest: Yi,
|
|
4100
|
-
FieldRadio:
|
|
4101
|
-
FieldArrayCardContainer:
|
|
4100
|
+
FieldRadio: xi,
|
|
4101
|
+
FieldArrayCardContainer: Gi,
|
|
4102
4102
|
FieldTextArea: Pi,
|
|
4103
4103
|
FieldInput: Ei
|
|
4104
4104
|
},
|
|
@@ -4142,97 +4142,105 @@ const Gi = /* @__PURE__ */ U(Gm, [["render", Xm], ["__scopeId", "data-v-7e49acd6
|
|
|
4142
4142
|
}
|
|
4143
4143
|
}, eh = ["id"], th = { key: 1 }, nh = ["onUpdate:modelValue", "aria-labelledby", "type"], ih = ["value", "onClick"], rh = ["onUpdate:modelValue", "aria-labelledby"], sh = ["value", "onClick"];
|
|
4144
4144
|
function ah(e, t, n, r, s, i) {
|
|
4145
|
-
const o = F("FieldTextArea"), a = F("KButton");
|
|
4145
|
+
const o = F("FieldTextArea"), a = F("KInput"), l = F("KButton");
|
|
4146
4146
|
return e.schema ? (d(), m("div", {
|
|
4147
4147
|
key: 0,
|
|
4148
4148
|
id: e.getFieldID(e.schema),
|
|
4149
4149
|
class: H(e.schema.fieldClasses)
|
|
4150
4150
|
}, [
|
|
4151
|
-
(d(!0), m(q, null, Z(e.value, (
|
|
4152
|
-
key:
|
|
4151
|
+
(d(!0), m(q, null, Z(e.value, (c, h) => (d(), m("div", {
|
|
4152
|
+
key: h,
|
|
4153
4153
|
class: H(e.schema.fieldItemsClasses)
|
|
4154
4154
|
}, [
|
|
4155
|
-
e.schema.items && e.schema.itemContainerComponent ? (d(),
|
|
4155
|
+
e.schema.items && e.schema.itemContainerComponent ? (d(), U(me(e.schema.itemContainerComponent), {
|
|
4156
4156
|
key: 0,
|
|
4157
|
-
model:
|
|
4158
|
-
schema: i.generateSchema(e.value, e.schema.items,
|
|
4159
|
-
onRemoveItem: (
|
|
4157
|
+
model: c,
|
|
4158
|
+
schema: i.generateSchema(e.value, e.schema.items, h),
|
|
4159
|
+
onRemoveItem: (g) => i.removeElement(h)
|
|
4160
4160
|
}, {
|
|
4161
4161
|
default: S(() => [
|
|
4162
|
-
(d(),
|
|
4162
|
+
(d(), U(me(i.getFieldType(e.schema.items)), {
|
|
4163
4163
|
"form-options": e.formOptions,
|
|
4164
|
-
model:
|
|
4165
|
-
schema: i.generateSchema(e.value, e.schema.items,
|
|
4164
|
+
model: c,
|
|
4165
|
+
schema: i.generateSchema(e.value, e.schema.items, h),
|
|
4166
4166
|
onModelUpdated: i.modelUpdated
|
|
4167
4167
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
4168
4168
|
]),
|
|
4169
4169
|
_: 2
|
|
4170
4170
|
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), m("span", th, [
|
|
4171
|
-
(d(),
|
|
4171
|
+
(d(), U(me(i.getFieldType(e.schema.items)), {
|
|
4172
4172
|
"form-options": e.formOptions,
|
|
4173
|
-
model:
|
|
4174
|
-
schema: i.generateSchema(e.value, e.schema.items,
|
|
4173
|
+
model: c,
|
|
4174
|
+
schema: i.generateSchema(e.value, e.schema.items, h),
|
|
4175
4175
|
onModelUpdated: i.modelUpdated
|
|
4176
4176
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
4177
|
-
])) : e.schema.itemContainerComponent ? (d(),
|
|
4177
|
+
])) : e.schema.itemContainerComponent ? (d(), U(me(e.schema.itemContainerComponent), {
|
|
4178
4178
|
key: 2,
|
|
4179
|
-
"data-testid": `${e.getFieldID(e.schema)}-item-${
|
|
4180
|
-
model:
|
|
4181
|
-
schema: i.generateSchema(e.value, e.schema.items,
|
|
4182
|
-
onRemoveItem: (
|
|
4179
|
+
"data-testid": `${e.getFieldID(e.schema)}-item-${h}`,
|
|
4180
|
+
model: c,
|
|
4181
|
+
schema: i.generateSchema(e.value, e.schema.items, h),
|
|
4182
|
+
onRemoveItem: (g) => i.removeElement(h)
|
|
4183
4183
|
}, {
|
|
4184
4184
|
default: S(() => {
|
|
4185
|
-
var
|
|
4185
|
+
var g;
|
|
4186
4186
|
return [
|
|
4187
|
-
|
|
4187
|
+
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (d(), U(o, {
|
|
4188
4188
|
key: 0,
|
|
4189
4189
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4190
4190
|
class: "k-input",
|
|
4191
4191
|
"form-options": e.formOptions,
|
|
4192
|
-
model:
|
|
4193
|
-
schema: i.generateSchema(e.value, e.schema.items,
|
|
4192
|
+
model: c,
|
|
4193
|
+
schema: i.generateSchema(e.value, e.schema.items, h),
|
|
4194
4194
|
onModelUpdated: i.modelUpdated
|
|
4195
|
-
}, null, 8, ["aria-labelledby", "form-options", "model", "schema", "onModelUpdated"])) :
|
|
4195
|
+
}, null, 8, ["aria-labelledby", "form-options", "model", "schema", "onModelUpdated"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" ? (d(), U(a, Ue({
|
|
4196
4196
|
key: 1,
|
|
4197
|
-
|
|
4197
|
+
modelValue: e.value[h],
|
|
4198
|
+
"onUpdate:modelValue": (v) => e.value[h] = v,
|
|
4199
|
+
"aria-labelledby": e.getLabelId(e.schema),
|
|
4200
|
+
ref_for: !0
|
|
4201
|
+
}, e.schema.inputAttributes, {
|
|
4202
|
+
type: e.schema.inputAttributes && e.schema.inputAttributes.type || "text"
|
|
4203
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "aria-labelledby", "type"])) : j((d(), m("input", Ue({
|
|
4204
|
+
key: 2,
|
|
4205
|
+
"onUpdate:modelValue": (v) => e.value[h] = v,
|
|
4198
4206
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4199
4207
|
ref_for: !0
|
|
4200
4208
|
}, e.schema.inputAttributes, {
|
|
4201
4209
|
type: ((g = e.schema.inputAttributes) == null ? void 0 : g.type) || "text"
|
|
4202
4210
|
}), null, 16, nh)), [
|
|
4203
|
-
[er, e.value[
|
|
4211
|
+
[er, e.value[h]]
|
|
4204
4212
|
]),
|
|
4205
|
-
e.schema.showRemoveButton ? (d(), m("input",
|
|
4206
|
-
key:
|
|
4213
|
+
e.schema.showRemoveButton ? (d(), m("input", Ue({
|
|
4214
|
+
key: 3,
|
|
4207
4215
|
ref_for: !0
|
|
4208
4216
|
}, e.schema.removeElementButtonAttributes, {
|
|
4209
4217
|
type: "button",
|
|
4210
4218
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
4211
|
-
onClick: (
|
|
4219
|
+
onClick: (v) => i.removeElement(h)
|
|
4212
4220
|
}), null, 16, ih)) : M("", !0)
|
|
4213
4221
|
];
|
|
4214
4222
|
}),
|
|
4215
4223
|
_: 2
|
|
4216
|
-
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : j((d(), m("input",
|
|
4224
|
+
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : j((d(), m("input", Ue({
|
|
4217
4225
|
key: 3,
|
|
4218
4226
|
ref_for: !0
|
|
4219
4227
|
}, e.schema.inputAttributes, {
|
|
4220
|
-
"onUpdate:modelValue": (
|
|
4228
|
+
"onUpdate:modelValue": (g) => e.value[h] = g,
|
|
4221
4229
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4222
4230
|
type: "text"
|
|
4223
4231
|
}), null, 16, rh)), [
|
|
4224
|
-
[he, e.value[
|
|
4232
|
+
[he, e.value[h]]
|
|
4225
4233
|
]),
|
|
4226
|
-
e.schema.showRemoveButton ? (d(), m("input",
|
|
4234
|
+
e.schema.showRemoveButton ? (d(), m("input", Ue({
|
|
4227
4235
|
key: 4,
|
|
4228
4236
|
ref_for: !0
|
|
4229
4237
|
}, e.schema.removeElementButtonAttributes, {
|
|
4230
4238
|
type: "button",
|
|
4231
4239
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
4232
|
-
onClick: (
|
|
4240
|
+
onClick: (g) => i.removeElement(h)
|
|
4233
4241
|
}), null, 16, sh)) : M("", !0)
|
|
4234
4242
|
], 2))), 128)),
|
|
4235
|
-
T(
|
|
4243
|
+
T(l, {
|
|
4236
4244
|
appearance: "tertiary",
|
|
4237
4245
|
class: H(e.schema.newElementButtonLabelClasses),
|
|
4238
4246
|
"data-testid": `add-${e.getFieldID(e.schema)}`,
|
|
@@ -4246,7 +4254,7 @@ function ah(e, t, n, r, s, i) {
|
|
|
4246
4254
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4247
4255
|
], 10, eh)) : M("", !0);
|
|
4248
4256
|
}
|
|
4249
|
-
const oh = /* @__PURE__ */
|
|
4257
|
+
const oh = /* @__PURE__ */ N(Qm, [["render", ah], ["__scopeId", "data-v-13233543"]]), lh = {
|
|
4250
4258
|
mixins: [K],
|
|
4251
4259
|
emits: ["model-updated"],
|
|
4252
4260
|
data() {
|
|
@@ -4280,15 +4288,15 @@ const oh = /* @__PURE__ */ U(Qm, [["render", ah], ["__scopeId", "data-v-19b9d61e
|
|
|
4280
4288
|
function ch(e, t, n, r, s, i) {
|
|
4281
4289
|
const o = F("vue-form-generator");
|
|
4282
4290
|
return d(), m("div", dh, [
|
|
4283
|
-
|
|
4291
|
+
u("button", {
|
|
4284
4292
|
class: "advanced-field-title",
|
|
4285
4293
|
type: "button",
|
|
4286
4294
|
onClick: t[0] || (t[0] = (...a) => i.handleOpen && i.handleOpen(...a))
|
|
4287
4295
|
}, [
|
|
4288
|
-
|
|
4289
|
-
|
|
4296
|
+
u("i", uh, A(s.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
4297
|
+
u("span", null, A(i.titleText), 1)
|
|
4290
4298
|
]),
|
|
4291
|
-
|
|
4299
|
+
u("div", {
|
|
4292
4300
|
class: H(["advanced-field-dropdown", i.openClass])
|
|
4293
4301
|
}, [
|
|
4294
4302
|
T(o, {
|
|
@@ -4300,7 +4308,7 @@ function ch(e, t, n, r, s, i) {
|
|
|
4300
4308
|
], 2)
|
|
4301
4309
|
]);
|
|
4302
4310
|
}
|
|
4303
|
-
const mh = /* @__PURE__ */
|
|
4311
|
+
const mh = /* @__PURE__ */ N(lh, [["render", ch], ["__scopeId", "data-v-2d8e71e1"]]), hh = {
|
|
4304
4312
|
mixins: [K],
|
|
4305
4313
|
emits: ["model-updated"],
|
|
4306
4314
|
data() {
|
|
@@ -4340,17 +4348,17 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4340
4348
|
const o = F("vue-form-generator");
|
|
4341
4349
|
return d(), m("div", fh, [
|
|
4342
4350
|
e.schema.horizontalRadios ? (d(), m(q, { key: 0 }, [
|
|
4343
|
-
|
|
4344
|
-
|
|
4351
|
+
u("div", ph, [
|
|
4352
|
+
u("div", gh, [
|
|
4345
4353
|
(d(!0), m(q, null, Z(e.schema.fields, (a, l) => (d(), m("div", {
|
|
4346
4354
|
key: l,
|
|
4347
4355
|
class: "option-group"
|
|
4348
4356
|
}, [
|
|
4349
|
-
|
|
4357
|
+
u("label", {
|
|
4350
4358
|
class: H(["k-label", `${a.label}-check`])
|
|
4351
4359
|
}, [
|
|
4352
|
-
j(
|
|
4353
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
4360
|
+
j(u("input", {
|
|
4361
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => s.checkedGroup = c),
|
|
4354
4362
|
class: "k-input",
|
|
4355
4363
|
type: "radio",
|
|
4356
4364
|
value: l
|
|
@@ -4358,7 +4366,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4358
4366
|
[tn, s.checkedGroup]
|
|
4359
4367
|
]),
|
|
4360
4368
|
te(" " + A(a.label) + " ", 1),
|
|
4361
|
-
|
|
4369
|
+
u("div", vh, A(a.description), 1)
|
|
4362
4370
|
], 2)
|
|
4363
4371
|
]))), 128))
|
|
4364
4372
|
])
|
|
@@ -4367,8 +4375,8 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4367
4375
|
key: l,
|
|
4368
4376
|
class: "option-group"
|
|
4369
4377
|
}, [
|
|
4370
|
-
j(
|
|
4371
|
-
|
|
4378
|
+
j(u("div", bh, [
|
|
4379
|
+
u("div", _h, [
|
|
4372
4380
|
T(o, {
|
|
4373
4381
|
model: e.model,
|
|
4374
4382
|
options: { helpAsHtml: !0 },
|
|
@@ -4384,12 +4392,12 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4384
4392
|
key: l,
|
|
4385
4393
|
class: "option-group"
|
|
4386
4394
|
}, [
|
|
4387
|
-
|
|
4388
|
-
|
|
4395
|
+
u("div", wh, [
|
|
4396
|
+
u("label", {
|
|
4389
4397
|
class: H(["k-label", `${a.label}-check`])
|
|
4390
4398
|
}, [
|
|
4391
|
-
j(
|
|
4392
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
4399
|
+
j(u("input", {
|
|
4400
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => s.checkedGroup = c),
|
|
4393
4401
|
class: "k-input",
|
|
4394
4402
|
type: "radio",
|
|
4395
4403
|
value: l
|
|
@@ -4397,11 +4405,11 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4397
4405
|
[tn, s.checkedGroup]
|
|
4398
4406
|
]),
|
|
4399
4407
|
te(" " + A(a.label) + " ", 1),
|
|
4400
|
-
|
|
4408
|
+
u("div", Th, A(a.description), 1)
|
|
4401
4409
|
], 2)
|
|
4402
4410
|
]),
|
|
4403
|
-
j(
|
|
4404
|
-
|
|
4411
|
+
j(u("div", $h, [
|
|
4412
|
+
u("div", Mh, [
|
|
4405
4413
|
T(o, {
|
|
4406
4414
|
model: e.model,
|
|
4407
4415
|
options: { helpAsHtml: !0 },
|
|
@@ -4415,7 +4423,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4415
4423
|
]))), 128))
|
|
4416
4424
|
]);
|
|
4417
4425
|
}
|
|
4418
|
-
const Ih = /* @__PURE__ */
|
|
4426
|
+
const Ih = /* @__PURE__ */ N(hh, [["render", Ch], ["__scopeId", "data-v-22882f4c"]]), Ah = {
|
|
4419
4427
|
mixins: [K],
|
|
4420
4428
|
emits: ["model-updated"],
|
|
4421
4429
|
methods: {
|
|
@@ -4426,7 +4434,7 @@ const Ih = /* @__PURE__ */ U(hh, [["render", Ch], ["__scopeId", "data-v-22882f4c
|
|
|
4426
4434
|
};
|
|
4427
4435
|
function Oh(e, t, n, r, s, i) {
|
|
4428
4436
|
const o = F("KMultiselect");
|
|
4429
|
-
return d(),
|
|
4437
|
+
return d(), U(o, {
|
|
4430
4438
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4431
4439
|
"data-testid": "field-multiselect",
|
|
4432
4440
|
items: e.schema.values,
|
|
@@ -4438,7 +4446,7 @@ function Oh(e, t, n, r, s, i) {
|
|
|
4438
4446
|
"onUpdate:modelValue": i.onUpdate
|
|
4439
4447
|
}, null, 8, ["aria-labelledby", "items", "label-attributes", "model-value", "placeholder", "required", "onUpdate:modelValue"]);
|
|
4440
4448
|
}
|
|
4441
|
-
const kh = /* @__PURE__ */
|
|
4449
|
+
const kh = /* @__PURE__ */ N(Ah, [["render", Oh]]), Eh = {
|
|
4442
4450
|
name: "FieldKeyValuePairs",
|
|
4443
4451
|
components: { TrashIcon: lt },
|
|
4444
4452
|
mixins: [K],
|
|
@@ -4490,35 +4498,35 @@ const kh = /* @__PURE__ */ U(Ah, [["render", Oh]]), Eh = {
|
|
|
4490
4498
|
function Lh(e, t, n, r, s, i) {
|
|
4491
4499
|
const o = F("TrashIcon"), a = F("KButton");
|
|
4492
4500
|
return d(), m("div", Fh, [
|
|
4493
|
-
(d(!0), m(q, null, Z(s.pairs, (l,
|
|
4494
|
-
key:
|
|
4501
|
+
(d(!0), m(q, null, Z(s.pairs, (l, c) => (d(), m("div", {
|
|
4502
|
+
key: c,
|
|
4495
4503
|
class: "pair-item"
|
|
4496
4504
|
}, [
|
|
4497
|
-
|
|
4505
|
+
u("input", {
|
|
4498
4506
|
class: "form-control",
|
|
4499
|
-
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${
|
|
4507
|
+
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${c}`,
|
|
4500
4508
|
placeholder: e.schema.keyInputPlaceholder ?? "Key",
|
|
4501
4509
|
type: "text",
|
|
4502
4510
|
value: l.key,
|
|
4503
4511
|
onInput: (h) => {
|
|
4504
|
-
i.onInput(h,
|
|
4512
|
+
i.onInput(h, c, "key");
|
|
4505
4513
|
}
|
|
4506
4514
|
}, null, 40, Uh),
|
|
4507
|
-
|
|
4515
|
+
u("input", {
|
|
4508
4516
|
class: "form-control",
|
|
4509
|
-
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${
|
|
4517
|
+
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${c}`,
|
|
4510
4518
|
placeholder: e.schema.valueInputPlaceholder ?? "Value",
|
|
4511
4519
|
type: "text",
|
|
4512
4520
|
value: l.value,
|
|
4513
4521
|
onInput: (h) => {
|
|
4514
|
-
i.onInput(h,
|
|
4522
|
+
i.onInput(h, c, "value");
|
|
4515
4523
|
}
|
|
4516
4524
|
}, null, 40, Nh),
|
|
4517
4525
|
T(a, {
|
|
4518
4526
|
appearance: "tertiary",
|
|
4519
|
-
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${
|
|
4527
|
+
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${c}`,
|
|
4520
4528
|
onClick: () => {
|
|
4521
|
-
i.removePair(
|
|
4529
|
+
i.removePair(c);
|
|
4522
4530
|
}
|
|
4523
4531
|
}, {
|
|
4524
4532
|
default: S(() => [
|
|
@@ -4541,11 +4549,11 @@ function Lh(e, t, n, r, s, i) {
|
|
|
4541
4549
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4542
4550
|
]);
|
|
4543
4551
|
}
|
|
4544
|
-
const Vh = /* @__PURE__ */
|
|
4552
|
+
const Vh = /* @__PURE__ */ N(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375"]]), Ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4545
4553
|
__proto__: null,
|
|
4546
4554
|
FieldAdvanced: mh,
|
|
4547
4555
|
FieldArray: oh,
|
|
4548
|
-
FieldArrayCardContainer:
|
|
4556
|
+
FieldArrayCardContainer: Gi,
|
|
4549
4557
|
FieldArrayItem: zi,
|
|
4550
4558
|
FieldArrayMultiItem: Ki,
|
|
4551
4559
|
FieldAutoSuggest: Yi,
|
|
@@ -4565,7 +4573,7 @@ const Vh = /* @__PURE__ */ U(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4565
4573
|
FieldObject: Di,
|
|
4566
4574
|
FieldObjectAdvanced: ji,
|
|
4567
4575
|
FieldPikaday: uc,
|
|
4568
|
-
FieldRadio:
|
|
4576
|
+
FieldRadio: xi,
|
|
4569
4577
|
FieldRadios: vd,
|
|
4570
4578
|
FieldRangeSlider: fc,
|
|
4571
4579
|
FieldSelect: Vi,
|
|
@@ -4678,10 +4686,10 @@ const Vh = /* @__PURE__ */ U(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4678
4686
|
}, Dh = (e) => (Se("data-v-02e656fb"), e = e(), Te(), e), Rh = ["innerHTML"], Bh = { class: "icon-wrapper" }, jh = ["innerHTML"], zh = {
|
|
4679
4687
|
key: 0,
|
|
4680
4688
|
class: "link-wrapper"
|
|
4681
|
-
}, Kh = /* @__PURE__ */ Dh(() => /* @__PURE__ */
|
|
4689
|
+
}, Kh = /* @__PURE__ */ Dh(() => /* @__PURE__ */ u("span", { class: "section-header" }, "More info", -1)), Hh = { class: "field-wrap" }, Yh = {
|
|
4682
4690
|
key: 0,
|
|
4683
4691
|
class: "buttons"
|
|
4684
|
-
},
|
|
4692
|
+
}, Gh = ["type", "onClick", "textContent"], xh = ["innerHTML"], Wh = {
|
|
4685
4693
|
key: 2,
|
|
4686
4694
|
class: "errors help-block"
|
|
4687
4695
|
}, Zh = ["innerHTML"];
|
|
@@ -4690,7 +4698,7 @@ function Jh(e, t, n, r, s, i) {
|
|
|
4690
4698
|
return d(), m("div", {
|
|
4691
4699
|
class: H(["form-group", e.getFieldRowClasses(n.field)])
|
|
4692
4700
|
}, [
|
|
4693
|
-
i.fieldTypeHasLabel(n.field) ? (d(),
|
|
4701
|
+
i.fieldTypeHasLabel(n.field) ? (d(), U(a, {
|
|
4694
4702
|
key: 0,
|
|
4695
4703
|
"aria-describedby": n.field.help ? i.getTooltipId(n.field) : void 0,
|
|
4696
4704
|
class: H([n.field.labelClasses, "form-group-label"]),
|
|
@@ -4703,8 +4711,8 @@ function Jh(e, t, n, r, s, i) {
|
|
|
4703
4711
|
} : void 0
|
|
4704
4712
|
}, Yn({
|
|
4705
4713
|
default: S(() => [
|
|
4706
|
-
|
|
4707
|
-
|
|
4714
|
+
u("div", Bh, [
|
|
4715
|
+
u("span", {
|
|
4708
4716
|
innerHTML: i.formattedLabel(n.field.label)
|
|
4709
4717
|
}, null, 8, jh)
|
|
4710
4718
|
]),
|
|
@@ -4724,15 +4732,15 @@ function Jh(e, t, n, r, s, i) {
|
|
|
4724
4732
|
n.options.helpAsHtml && n.field.help ? {
|
|
4725
4733
|
name: "tooltip",
|
|
4726
4734
|
fn: S(() => [
|
|
4727
|
-
|
|
4735
|
+
u("div", {
|
|
4728
4736
|
innerHTML: n.field.help
|
|
4729
4737
|
}, null, 8, Rh)
|
|
4730
4738
|
]),
|
|
4731
4739
|
key: "0"
|
|
4732
4740
|
} : void 0
|
|
4733
4741
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : M("", !0),
|
|
4734
|
-
|
|
4735
|
-
(d(),
|
|
4742
|
+
u("div", Hh, [
|
|
4743
|
+
(d(), U(me(i.getFieldType(n.field)), Ue(e.$attrs, {
|
|
4736
4744
|
ref: "child",
|
|
4737
4745
|
disabled: e.fieldDisabled(n.field) || null,
|
|
4738
4746
|
"form-options": n.options,
|
|
@@ -4744,29 +4752,29 @@ function Jh(e, t, n, r, s, i) {
|
|
|
4744
4752
|
onValidated: i.onFieldValidated
|
|
4745
4753
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onValidated"])),
|
|
4746
4754
|
i.buttonVisibility(n.field) ? (d(), m("div", Yh, [
|
|
4747
|
-
(d(!0), m(q, null, Z(n.field.buttons, (l,
|
|
4748
|
-
key:
|
|
4755
|
+
(d(!0), m(q, null, Z(n.field.buttons, (l, c) => (d(), m("button", {
|
|
4756
|
+
key: c,
|
|
4749
4757
|
class: H(l.classes),
|
|
4750
4758
|
type: i.getButtonType(l),
|
|
4751
4759
|
onClick: (h) => i.buttonClickHandler(l, n.field, h),
|
|
4752
4760
|
textContent: A(l.label)
|
|
4753
|
-
}, null, 10,
|
|
4761
|
+
}, null, 10, Gh))), 128))
|
|
4754
4762
|
])) : M("", !0)
|
|
4755
4763
|
]),
|
|
4756
4764
|
n.field.hint && i.getFieldType(n.field) !== "field-input" ? (d(), m("div", {
|
|
4757
4765
|
key: 1,
|
|
4758
4766
|
class: "hint",
|
|
4759
4767
|
innerHTML: i.fieldHint(n.field)
|
|
4760
|
-
}, null, 8,
|
|
4768
|
+
}, null, 8, xh)) : M("", !0),
|
|
4761
4769
|
i.fieldErrors(n.field).length > 0 ? (d(), m("div", Wh, [
|
|
4762
|
-
(d(!0), m(q, null, Z(i.fieldErrors(n.field), (l,
|
|
4763
|
-
key:
|
|
4770
|
+
(d(!0), m(q, null, Z(i.fieldErrors(n.field), (l, c) => (d(), m("span", {
|
|
4771
|
+
key: c,
|
|
4764
4772
|
innerHTML: l
|
|
4765
4773
|
}, null, 8, Zh))), 128))
|
|
4766
4774
|
])) : M("", !0)
|
|
4767
4775
|
], 2);
|
|
4768
4776
|
}
|
|
4769
|
-
const Xh = /* @__PURE__ */
|
|
4777
|
+
const Xh = /* @__PURE__ */ N(qh, [["render", Jh], ["__scopeId", "data-v-02e656fb"]]), Qh = {
|
|
4770
4778
|
name: "FormGenerator",
|
|
4771
4779
|
components: { formGroup: Xh },
|
|
4772
4780
|
mixins: [ai],
|
|
@@ -4881,10 +4889,10 @@ const Xh = /* @__PURE__ */ U(qh, [["render", Jh], ["__scopeId", "data-v-02e656fb
|
|
|
4881
4889
|
const r = (s) => {
|
|
4882
4890
|
const i = [];
|
|
4883
4891
|
ae(s, (a, l) => {
|
|
4884
|
-
Array.isArray(a) && a.length > 0 && ae(a, (
|
|
4892
|
+
Array.isArray(a) && a.length > 0 && ae(a, (c) => {
|
|
4885
4893
|
i.push({
|
|
4886
4894
|
field: t[l].schema,
|
|
4887
|
-
error:
|
|
4895
|
+
error: c
|
|
4888
4896
|
});
|
|
4889
4897
|
});
|
|
4890
4898
|
}), this.errors = i;
|
|
@@ -4907,12 +4915,12 @@ const Xh = /* @__PURE__ */ U(qh, [["render", Jh], ["__scopeId", "data-v-02e656fb
|
|
|
4907
4915
|
function nf(e, t, n, r, s, i) {
|
|
4908
4916
|
const o = F("form-group"), a = F("KCollapse");
|
|
4909
4917
|
return n.schema != null ? (d(), m("div", ef, [
|
|
4910
|
-
n.schema.fields ? (d(),
|
|
4918
|
+
n.schema.fields ? (d(), U(me(n.tag), { key: 0 }, {
|
|
4911
4919
|
default: S(() => [
|
|
4912
4920
|
(d(!0), m(q, null, Z(i.fields, (l) => (d(), m(q, {
|
|
4913
4921
|
key: l.model
|
|
4914
4922
|
}, [
|
|
4915
|
-
i.fieldVisible(l) ? (d(),
|
|
4923
|
+
i.fieldVisible(l) ? (d(), U(o, {
|
|
4916
4924
|
key: 0,
|
|
4917
4925
|
ref_for: !0,
|
|
4918
4926
|
ref: "children",
|
|
@@ -4928,20 +4936,20 @@ function nf(e, t, n, r, s, i) {
|
|
|
4928
4936
|
]),
|
|
4929
4937
|
_: 1
|
|
4930
4938
|
})) : M("", !0),
|
|
4931
|
-
(d(!0), m(q, null, Z(i.groups, (l,
|
|
4932
|
-
key: `group-${
|
|
4939
|
+
(d(!0), m(q, null, Z(i.groups, (l, c) => (d(), m(q, {
|
|
4940
|
+
key: `group-${c}`
|
|
4933
4941
|
}, [
|
|
4934
|
-
l.collapsible !== void 0 && l.collapsible !== !1 ? (d(),
|
|
4942
|
+
l.collapsible !== void 0 && l.collapsible !== !1 ? (d(), U(a, {
|
|
4935
4943
|
key: 0,
|
|
4936
4944
|
class: "root-level-collapse",
|
|
4937
4945
|
"model-value": !1,
|
|
4938
4946
|
title: l.collapsible.title
|
|
4939
4947
|
}, Yn({
|
|
4940
4948
|
default: S(() => {
|
|
4941
|
-
var h, g,
|
|
4949
|
+
var h, g, v, L;
|
|
4942
4950
|
return [
|
|
4943
4951
|
(h = l.slots) != null && h.beforeContent ? He(e.$slots, (g = l.slots) == null ? void 0 : g.beforeContent, { key: 0 }) : M("", !0),
|
|
4944
|
-
l.fields.length === 0 && ((
|
|
4952
|
+
l.fields.length === 0 && ((v = l.slots) != null && v.emptyState) ? He(e.$slots, (L = l.slots) == null ? void 0 : L.emptyState, { key: 1 }) : (d(), U(me(n.tag), {
|
|
4945
4953
|
key: 2,
|
|
4946
4954
|
class: H(e.getFieldRowClasses(l))
|
|
4947
4955
|
}, {
|
|
@@ -4949,7 +4957,7 @@ function nf(e, t, n, r, s, i) {
|
|
|
4949
4957
|
(d(!0), m(q, null, Z(l.fields, (V) => (d(), m(q, {
|
|
4950
4958
|
key: V.model
|
|
4951
4959
|
}, [
|
|
4952
|
-
i.fieldVisible(V) ? (d(),
|
|
4960
|
+
i.fieldVisible(V) ? (d(), U(o, {
|
|
4953
4961
|
key: 0,
|
|
4954
4962
|
ref_for: !0,
|
|
4955
4963
|
ref: "children",
|
|
@@ -4965,23 +4973,23 @@ function nf(e, t, n, r, s, i) {
|
|
|
4965
4973
|
]),
|
|
4966
4974
|
_: 2
|
|
4967
4975
|
}, 1032, ["class"])),
|
|
4968
|
-
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (d(),
|
|
4976
|
+
l.collapsible !== !0 && l.collapsible.nestedCollapsible && l.collapsible.nestedCollapsible.fields.length > 0 ? (d(), U(a, {
|
|
4969
4977
|
key: 3,
|
|
4970
4978
|
class: "nested-collapse",
|
|
4971
|
-
"model-value": s.collapseStates[`group-${
|
|
4979
|
+
"model-value": s.collapseStates[`group-${c}-nested`] ?? !0,
|
|
4972
4980
|
"trigger-alignment": "leading",
|
|
4973
|
-
"trigger-label": s.collapseStates[`group-${
|
|
4974
|
-
"onUpdate:modelValue": (V) => s.collapseStates[`group-${
|
|
4981
|
+
"trigger-label": s.collapseStates[`group-${c}-nested`] ?? !0 ? l.collapsible.nestedCollapsible.triggerLabel.expand : l.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
4982
|
+
"onUpdate:modelValue": (V) => s.collapseStates[`group-${c}-nested`] = V
|
|
4975
4983
|
}, {
|
|
4976
4984
|
default: S(() => [
|
|
4977
|
-
(d(),
|
|
4985
|
+
(d(), U(me(n.tag), {
|
|
4978
4986
|
class: H(e.getFieldRowClasses(l))
|
|
4979
4987
|
}, {
|
|
4980
4988
|
default: S(() => [
|
|
4981
4989
|
(d(!0), m(q, null, Z(l.collapsible.nestedCollapsible.fields, (V) => (d(), m(q, {
|
|
4982
4990
|
key: V.model
|
|
4983
4991
|
}, [
|
|
4984
|
-
i.fieldVisible(V) ? (d(),
|
|
4992
|
+
i.fieldVisible(V) ? (d(), U(o, {
|
|
4985
4993
|
key: 0,
|
|
4986
4994
|
ref_for: !0,
|
|
4987
4995
|
ref: "children",
|
|
@@ -5011,7 +5019,7 @@ function nf(e, t, n, r, s, i) {
|
|
|
5011
5019
|
]),
|
|
5012
5020
|
key: "0"
|
|
5013
5021
|
} : void 0
|
|
5014
|
-
]), 1032, ["title"])) : (d(),
|
|
5022
|
+
]), 1032, ["title"])) : (d(), U(me(n.tag), {
|
|
5015
5023
|
key: 1,
|
|
5016
5024
|
class: H(e.getFieldRowClasses(l))
|
|
5017
5025
|
}, {
|
|
@@ -5020,7 +5028,7 @@ function nf(e, t, n, r, s, i) {
|
|
|
5020
5028
|
(d(!0), m(q, null, Z(l.fields, (h) => (d(), m(q, {
|
|
5021
5029
|
key: h.model
|
|
5022
5030
|
}, [
|
|
5023
|
-
i.fieldVisible(h) ? (d(),
|
|
5031
|
+
i.fieldVisible(h) ? (d(), U(o, {
|
|
5024
5032
|
key: 0,
|
|
5025
5033
|
ref_for: !0,
|
|
5026
5034
|
ref: "children",
|
|
@@ -5039,7 +5047,7 @@ function nf(e, t, n, r, s, i) {
|
|
|
5039
5047
|
], 64))), 128))
|
|
5040
5048
|
])) : M("", !0);
|
|
5041
5049
|
}
|
|
5042
|
-
const le = /* @__PURE__ */
|
|
5050
|
+
const le = /* @__PURE__ */ N(Qh, [["render", nf]]), rf = {
|
|
5043
5051
|
fields: [{
|
|
5044
5052
|
inputType: "text",
|
|
5045
5053
|
label: "Config.Client Id",
|
|
@@ -5500,11 +5508,11 @@ const le = /* @__PURE__ */ U(Qh, [["render", nf]]), rf = {
|
|
|
5500
5508
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
5501
5509
|
}
|
|
5502
5510
|
}
|
|
5503
|
-
}, Je = (e) => (Se("data-v-e7395ff0"), e = e(), Te(), e), lf = { class: "general-settings" }, df = { class: "link-wrapper" }, uf = /* @__PURE__ */ Je(() => /* @__PURE__ */
|
|
5511
|
+
}, Je = (e) => (Se("data-v-e7395ff0"), e = e(), Te(), e), lf = { class: "general-settings" }, df = { class: "link-wrapper" }, uf = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("span", { class: "section-header" }, "Common Configuration Settings", -1)), cf = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), mf = { class: "auth-method-container" }, hf = { class: "general-settings" }, ff = { class: "link-wrapper" }, pf = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), gf = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), yf = { class: "general-settings" }, vf = { class: "link-wrapper" }, bf = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), _f = /* @__PURE__ */ Je(() => /* @__PURE__ */ u("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
|
|
5504
5512
|
function wf(e, t, n, r, s, i) {
|
|
5505
|
-
const o = F("VueFormGenerator"), a = F("KExternalLink"), l = F("KLabel"),
|
|
5513
|
+
const o = F("VueFormGenerator"), a = F("KExternalLink"), l = F("KLabel"), c = F("KCheckbox"), h = F("KInputSwitch"), g = F("KTabs");
|
|
5506
5514
|
return d(), m("div", null, [
|
|
5507
|
-
n.formModel.id && n.isEditing || !n.isEditing ? (d(),
|
|
5515
|
+
n.formModel.id && n.isEditing || !n.isEditing ? (d(), U(o, {
|
|
5508
5516
|
key: 0,
|
|
5509
5517
|
class: "global-fields",
|
|
5510
5518
|
model: n.formModel,
|
|
@@ -5514,8 +5522,8 @@ function wf(e, t, n, r, s, i) {
|
|
|
5514
5522
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
5515
5523
|
T(g, { tabs: s.tabs }, {
|
|
5516
5524
|
common: S(() => [
|
|
5517
|
-
|
|
5518
|
-
|
|
5525
|
+
u("div", lf, [
|
|
5526
|
+
u("div", df, [
|
|
5519
5527
|
T(a, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
5520
5528
|
default: S(() => [
|
|
5521
5529
|
uf
|
|
@@ -5524,7 +5532,7 @@ function wf(e, t, n, r, s, i) {
|
|
|
5524
5532
|
})
|
|
5525
5533
|
]),
|
|
5526
5534
|
cf,
|
|
5527
|
-
i.displayForm ? (d(),
|
|
5535
|
+
i.displayForm ? (d(), U(o, {
|
|
5528
5536
|
key: 0,
|
|
5529
5537
|
model: n.formModel,
|
|
5530
5538
|
options: n.formOptions,
|
|
@@ -5537,18 +5545,18 @@ function wf(e, t, n, r, s, i) {
|
|
|
5537
5545
|
]),
|
|
5538
5546
|
_: 1
|
|
5539
5547
|
}),
|
|
5540
|
-
|
|
5541
|
-
(d(!0), m(q, null, Z(s.authMethods, (
|
|
5542
|
-
key:
|
|
5548
|
+
u("div", mf, [
|
|
5549
|
+
(d(!0), m(q, null, Z(s.authMethods, (v) => (d(), m("div", {
|
|
5550
|
+
key: v.value,
|
|
5543
5551
|
class: "auth-method"
|
|
5544
5552
|
}, [
|
|
5545
|
-
T(
|
|
5546
|
-
modelValue:
|
|
5547
|
-
"onUpdate:modelValue": (L) =>
|
|
5548
|
-
onChange: (L) => i.handleUpdate(L,
|
|
5553
|
+
T(c, {
|
|
5554
|
+
modelValue: v.prop,
|
|
5555
|
+
"onUpdate:modelValue": (L) => v.prop = L,
|
|
5556
|
+
onChange: (L) => i.handleUpdate(L, v.value)
|
|
5549
5557
|
}, {
|
|
5550
5558
|
default: S(() => [
|
|
5551
|
-
te(A(
|
|
5559
|
+
te(A(v.label), 1)
|
|
5552
5560
|
]),
|
|
5553
5561
|
_: 2
|
|
5554
5562
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
@@ -5556,15 +5564,15 @@ function wf(e, t, n, r, s, i) {
|
|
|
5556
5564
|
]),
|
|
5557
5565
|
T(h, {
|
|
5558
5566
|
modelValue: s.sessionManagement,
|
|
5559
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
5567
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => s.sessionManagement = v),
|
|
5560
5568
|
label: "Enable Session Management",
|
|
5561
5569
|
onChange: i.handleUpdate
|
|
5562
5570
|
}, null, 8, ["modelValue", "onChange"])
|
|
5563
5571
|
])
|
|
5564
5572
|
]),
|
|
5565
5573
|
authorization: S(() => [
|
|
5566
|
-
|
|
5567
|
-
|
|
5574
|
+
u("div", hf, [
|
|
5575
|
+
u("div", ff, [
|
|
5568
5576
|
T(a, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
5569
5577
|
default: S(() => [
|
|
5570
5578
|
pf
|
|
@@ -5573,7 +5581,7 @@ function wf(e, t, n, r, s, i) {
|
|
|
5573
5581
|
})
|
|
5574
5582
|
]),
|
|
5575
5583
|
gf,
|
|
5576
|
-
i.displayForm ? (d(),
|
|
5584
|
+
i.displayForm ? (d(), U(o, {
|
|
5577
5585
|
key: 0,
|
|
5578
5586
|
model: n.formModel,
|
|
5579
5587
|
options: n.formOptions,
|
|
@@ -5583,8 +5591,8 @@ function wf(e, t, n, r, s, i) {
|
|
|
5583
5591
|
])
|
|
5584
5592
|
]),
|
|
5585
5593
|
advanced: S(() => [
|
|
5586
|
-
|
|
5587
|
-
|
|
5594
|
+
u("div", yf, [
|
|
5595
|
+
u("div", vf, [
|
|
5588
5596
|
T(a, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
5589
5597
|
default: S(() => [
|
|
5590
5598
|
bf
|
|
@@ -5593,7 +5601,7 @@ function wf(e, t, n, r, s, i) {
|
|
|
5593
5601
|
})
|
|
5594
5602
|
]),
|
|
5595
5603
|
_f,
|
|
5596
|
-
i.displayForm ? (d(),
|
|
5604
|
+
i.displayForm ? (d(), U(o, {
|
|
5597
5605
|
key: 0,
|
|
5598
5606
|
model: n.formModel,
|
|
5599
5607
|
options: n.formOptions,
|
|
@@ -5606,7 +5614,7 @@ function wf(e, t, n, r, s, i) {
|
|
|
5606
5614
|
}, 8, ["tabs"])
|
|
5607
5615
|
]);
|
|
5608
5616
|
}
|
|
5609
|
-
const Sf = /* @__PURE__ */
|
|
5617
|
+
const Sf = /* @__PURE__ */ N(of, [["render", wf], ["__scopeId", "data-v-e7395ff0"]]), Tf = {
|
|
5610
5618
|
packageName: "forms"
|
|
5611
5619
|
}, $f = {
|
|
5612
5620
|
view_advanced_fields: "View Advanced Fields",
|
|
@@ -5749,7 +5757,7 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5749
5757
|
return a.hint = n(`${l}.hint`) && t(`${l}.hint`) || a.hint, a.help = n(`${l}.help`) && t(`${l}.help`) || a.help, a.newElementButtonLabel = n(`${l}.newElementButtonLabel`) && t(`${l}.newElementButtonLabel`) || a.newElementButtonLabel, a.model !== "tags" && (a.valueType === "array" || a.type === "array") && (a.type = "array", a.valueArrayType = "array", a.itemContainerComponent = "FieldArrayItem", a.fieldClasses = "post-function-array-item-container", a.fieldItemsClasses = "post-function-array-item", a.inputAttributes = { ...a.inputAttributes, type: "textarea" }), a;
|
|
5750
5758
|
}), o;
|
|
5751
5759
|
});
|
|
5752
|
-
return (o, a) => s.value ? (d(),
|
|
5760
|
+
return (o, a) => s.value ? (d(), U(le, {
|
|
5753
5761
|
key: 0,
|
|
5754
5762
|
model: e.formModel,
|
|
5755
5763
|
options: e.formOptions,
|
|
@@ -5757,7 +5765,7 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5757
5765
|
onModelUpdated: e.onModelUpdated
|
|
5758
5766
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0);
|
|
5759
5767
|
}
|
|
5760
|
-
}), Cf = /* @__PURE__ */
|
|
5768
|
+
}), Cf = /* @__PURE__ */ N(Mf, [["__scopeId", "data-v-6706c68b"]]), If = /* @__PURE__ */ fe({
|
|
5761
5769
|
__name: "ExitTransformer",
|
|
5762
5770
|
props: {
|
|
5763
5771
|
formModel: {
|
|
@@ -5790,7 +5798,7 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5790
5798
|
return a.hint = n(`${l}.hint`) && t(`${l}.hint`) || a.hint, a.help = n(`${l}.help`) && t(`${l}.help`) || a.help, a.newElementButtonLabel = n(`${l}.newElementButtonLabel`) && t(`${l}.newElementButtonLabel`) || a.newElementButtonLabel, a.model !== "tags" && (a.valueType === "array" || a.type === "array") && (a.type = "array", a.valueArrayType = "array", a.itemContainerComponent = "FieldArrayItem", a.fieldClasses = "exit-transformer-array-item-container", a.fieldItemsClasses = "exit-transformer-array-item", a.inputAttributes = { ...a.inputAttributes, type: "textarea" }), a;
|
|
5791
5799
|
}), o;
|
|
5792
5800
|
});
|
|
5793
|
-
return (o, a) => s.value ? (d(),
|
|
5801
|
+
return (o, a) => s.value ? (d(), U(le, {
|
|
5794
5802
|
key: 0,
|
|
5795
5803
|
model: e.formModel,
|
|
5796
5804
|
options: e.formOptions,
|
|
@@ -5798,7 +5806,7 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5798
5806
|
onModelUpdated: e.onModelUpdated
|
|
5799
5807
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0);
|
|
5800
5808
|
}
|
|
5801
|
-
}), Af = /* @__PURE__ */
|
|
5809
|
+
}), Af = /* @__PURE__ */ N(If, [["__scopeId", "data-v-0fc8ef29"]]), Of = {
|
|
5802
5810
|
fields: [
|
|
5803
5811
|
{
|
|
5804
5812
|
inputType: "text",
|
|
@@ -5886,13 +5894,13 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5886
5894
|
disabled: !1
|
|
5887
5895
|
}
|
|
5888
5896
|
]
|
|
5889
|
-
},
|
|
5890
|
-
/* @__PURE__ */
|
|
5891
|
-
], -1)), Nf = /* @__PURE__ */
|
|
5892
|
-
/* @__PURE__ */
|
|
5893
|
-
], -1)), Df = /* @__PURE__ */
|
|
5894
|
-
/* @__PURE__ */
|
|
5895
|
-
], -1)), zf = /* @__PURE__ */
|
|
5897
|
+
}, je = (e) => (Se("data-v-b9df1c3f"), e = e(), Te(), e), Ff = { class: "general-settings" }, Uf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5898
|
+
/* @__PURE__ */ u("span", { class: "section-header" }, "General Configuration Settings")
|
|
5899
|
+
], -1)), Nf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), Lf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("hr", null, null, -1)), Vf = { class: "sub-form" }, Pf = { class: "general-settings" }, qf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5900
|
+
/* @__PURE__ */ u("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5901
|
+
], -1)), Df = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for setting up storage. ", -1)), Rf = { class: "sub-form" }, Bf = { class: "general-settings" }, jf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5902
|
+
/* @__PURE__ */ u("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5903
|
+
], -1)), zf = /* @__PURE__ */ je(() => /* @__PURE__ */ u("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), Kf = /* @__PURE__ */ fe({
|
|
5896
5904
|
__name: "ACMEForm",
|
|
5897
5905
|
props: {
|
|
5898
5906
|
formModel: {
|
|
@@ -5920,38 +5928,38 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5920
5928
|
setup(e) {
|
|
5921
5929
|
const t = e, n = ve("zeroSsl"), r = ve("shm"), s = P(() => {
|
|
5922
5930
|
var p;
|
|
5923
|
-
const
|
|
5931
|
+
const b = {};
|
|
5924
5932
|
if ((p = t.formSchema) != null && p.fields)
|
|
5925
5933
|
for (const O of t.formSchema.fields)
|
|
5926
|
-
|
|
5927
|
-
return
|
|
5934
|
+
b[O.model] = O;
|
|
5935
|
+
return b;
|
|
5928
5936
|
}), i = P(() => {
|
|
5929
5937
|
var p;
|
|
5930
|
-
const
|
|
5931
|
-
for (const O of
|
|
5932
|
-
const
|
|
5933
|
-
O.help === void 0 && typeof
|
|
5938
|
+
const b = we(Of);
|
|
5939
|
+
for (const O of b.fields) {
|
|
5940
|
+
const x = (p = s.value[O.model]) == null ? void 0 : p.help;
|
|
5941
|
+
O.help === void 0 && typeof x == "string" && (O.help = x);
|
|
5934
5942
|
}
|
|
5935
|
-
return
|
|
5943
|
+
return b;
|
|
5936
5944
|
}), o = P(() => {
|
|
5937
5945
|
var p;
|
|
5938
|
-
const
|
|
5939
|
-
for (const O of
|
|
5940
|
-
const
|
|
5941
|
-
O.help === void 0 && typeof
|
|
5946
|
+
const b = we(kf);
|
|
5947
|
+
for (const O of b.fields) {
|
|
5948
|
+
const x = (p = s.value[O.model]) == null ? void 0 : p.help;
|
|
5949
|
+
O.help === void 0 && typeof x == "string" && (O.help = x);
|
|
5942
5950
|
}
|
|
5943
|
-
return
|
|
5951
|
+
return b;
|
|
5944
5952
|
}), a = P(() => {
|
|
5945
5953
|
var p;
|
|
5946
|
-
const
|
|
5947
|
-
for (const O of
|
|
5948
|
-
const
|
|
5949
|
-
O.help === void 0 && typeof
|
|
5954
|
+
const b = we(Ef);
|
|
5955
|
+
for (const O of b.fields) {
|
|
5956
|
+
const x = (p = s.value[O.model]) == null ? void 0 : p.help;
|
|
5957
|
+
O.help === void 0 && typeof x == "string" && (O.help = x);
|
|
5950
5958
|
}
|
|
5951
|
-
return
|
|
5959
|
+
return b;
|
|
5952
5960
|
}), l = P(() => ({
|
|
5953
|
-
fields: t.formSchema.fields.filter((
|
|
5954
|
-
})),
|
|
5961
|
+
fields: t.formSchema.fields.filter((b) => !b.model.startsWith("config") && b.model !== "tags")
|
|
5962
|
+
})), c = P(() => ({
|
|
5955
5963
|
fields: i.value.fields.filter(
|
|
5956
5964
|
(p) => !o.value.fields.some((O) => O.model === p.model) && !a.value.fields.some((O) => O.model === p.model)
|
|
5957
5965
|
)
|
|
@@ -5959,14 +5967,14 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5959
5967
|
fields: t.formSchema.fields.filter((p) => p.model.startsWith("config-storage") && !p.model.startsWith("config-storage_config-consul") && !p.model.startsWith("config-storage_config-redis") && !p.model.startsWith("config-storage_config-shm") && !p.model.startsWith("config-storage_config-vault"))
|
|
5960
5968
|
})), g = P(() => ({
|
|
5961
5969
|
fields: t.formSchema.fields.filter((p) => p.model.startsWith("config-storage_config-consul"))
|
|
5962
|
-
})),
|
|
5970
|
+
})), v = P(() => ({
|
|
5963
5971
|
fields: t.formSchema.fields.filter((p) => p.model.startsWith("config-storage_config-redis"))
|
|
5964
5972
|
})), L = P(() => ({
|
|
5965
5973
|
fields: t.formSchema.fields.filter((p) => p.model.startsWith("config-storage_config-shm"))
|
|
5966
5974
|
})), V = P(() => ({
|
|
5967
5975
|
fields: t.formSchema.fields.filter((p) => p.model.startsWith("config-storage_config-vault"))
|
|
5968
5976
|
})), w = P(() => ({
|
|
5969
|
-
fields: t.formSchema.fields.filter((
|
|
5977
|
+
fields: t.formSchema.fields.filter((b) => b.model.startsWith("config") && !c.value.fields.filter((p) => p.model === b.model).length && !h.value.fields.filter((p) => p.model === b.model).length || b.model === "tags")
|
|
5970
5978
|
})), I = P(() => t.formModel.id && t.isEditing || !t.isEditing), y = [
|
|
5971
5979
|
{
|
|
5972
5980
|
hash: "#general",
|
|
@@ -5998,15 +6006,15 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5998
6006
|
Hn(() => {
|
|
5999
6007
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6000
6008
|
});
|
|
6001
|
-
const Y = (
|
|
6002
|
-
n.value =
|
|
6003
|
-
},
|
|
6004
|
-
p === "config-storage" && (r.value =
|
|
6009
|
+
const Y = (b) => {
|
|
6010
|
+
n.value = b.value, (b.value === "zeroSsl" || b.value === "other") && (b.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), b.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();
|
|
6011
|
+
}, G = (b, p) => {
|
|
6012
|
+
p === "config-storage" && (r.value = b), t.onModelUpdated();
|
|
6005
6013
|
};
|
|
6006
|
-
return (
|
|
6007
|
-
const O = F("KSelect"),
|
|
6014
|
+
return (b, p) => {
|
|
6015
|
+
const O = F("KSelect"), x = F("KTabs");
|
|
6008
6016
|
return d(), m("div", null, [
|
|
6009
|
-
e.formModel.id && e.isEditing || !e.isEditing ? (d(),
|
|
6017
|
+
e.formModel.id && e.isEditing || !e.isEditing ? (d(), U(le, {
|
|
6010
6018
|
key: 0,
|
|
6011
6019
|
class: "global-fields",
|
|
6012
6020
|
model: e.formModel,
|
|
@@ -6014,16 +6022,16 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6014
6022
|
schema: l.value,
|
|
6015
6023
|
onModelUpdated: e.onModelUpdated
|
|
6016
6024
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6017
|
-
T(
|
|
6025
|
+
T(x, { tabs: y }, {
|
|
6018
6026
|
general: S(() => [
|
|
6019
|
-
|
|
6027
|
+
u("div", Ff, [
|
|
6020
6028
|
Uf,
|
|
6021
6029
|
Nf,
|
|
6022
|
-
I.value ? (d(),
|
|
6030
|
+
I.value ? (d(), U(le, {
|
|
6023
6031
|
key: 0,
|
|
6024
6032
|
model: e.formModel,
|
|
6025
6033
|
options: e.formOptions,
|
|
6026
|
-
schema:
|
|
6034
|
+
schema: c.value,
|
|
6027
6035
|
onModelUpdated: e.onModelUpdated
|
|
6028
6036
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6029
6037
|
Lf,
|
|
@@ -6033,15 +6041,15 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6033
6041
|
label: "Issuer",
|
|
6034
6042
|
onChange: Y
|
|
6035
6043
|
}),
|
|
6036
|
-
|
|
6037
|
-
n.value === "letsEncrypt" ? (d(),
|
|
6044
|
+
u("div", Vf, [
|
|
6045
|
+
n.value === "letsEncrypt" ? (d(), U(le, {
|
|
6038
6046
|
key: 0,
|
|
6039
6047
|
model: e.formModel,
|
|
6040
6048
|
options: e.formOptions,
|
|
6041
6049
|
schema: o.value,
|
|
6042
6050
|
onModelUpdated: e.onModelUpdated
|
|
6043
6051
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6044
|
-
n.value === "zeroSsl" || n.value === "other" ? (d(),
|
|
6052
|
+
n.value === "zeroSsl" || n.value === "other" ? (d(), U(le, {
|
|
6045
6053
|
key: 1,
|
|
6046
6054
|
model: e.formModel,
|
|
6047
6055
|
options: e.formOptions,
|
|
@@ -6052,39 +6060,39 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6052
6060
|
])
|
|
6053
6061
|
]),
|
|
6054
6062
|
storage: S(() => [
|
|
6055
|
-
|
|
6063
|
+
u("div", Pf, [
|
|
6056
6064
|
qf,
|
|
6057
6065
|
Df,
|
|
6058
|
-
I.value ? (d(),
|
|
6066
|
+
I.value ? (d(), U(le, {
|
|
6059
6067
|
key: 0,
|
|
6060
6068
|
model: e.formModel,
|
|
6061
6069
|
options: e.formOptions,
|
|
6062
6070
|
schema: h.value,
|
|
6063
|
-
onModelUpdated:
|
|
6071
|
+
onModelUpdated: G
|
|
6064
6072
|
}, null, 8, ["model", "options", "schema"])) : M("", !0),
|
|
6065
|
-
|
|
6066
|
-
r.value === "consul" ? (d(),
|
|
6073
|
+
u("div", Rf, [
|
|
6074
|
+
r.value === "consul" ? (d(), U(le, {
|
|
6067
6075
|
key: 0,
|
|
6068
6076
|
model: e.formModel,
|
|
6069
6077
|
options: e.formOptions,
|
|
6070
6078
|
schema: g.value,
|
|
6071
6079
|
onModelUpdated: e.onModelUpdated
|
|
6072
6080
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6073
|
-
r.value === "redis" ? (d(),
|
|
6081
|
+
r.value === "redis" ? (d(), U(le, {
|
|
6074
6082
|
key: 1,
|
|
6075
6083
|
model: e.formModel,
|
|
6076
6084
|
options: e.formOptions,
|
|
6077
|
-
schema:
|
|
6085
|
+
schema: v.value,
|
|
6078
6086
|
onModelUpdated: e.onModelUpdated
|
|
6079
6087
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6080
|
-
r.value === "shm" ? (d(),
|
|
6088
|
+
r.value === "shm" ? (d(), U(le, {
|
|
6081
6089
|
key: 2,
|
|
6082
6090
|
model: e.formModel,
|
|
6083
6091
|
options: e.formOptions,
|
|
6084
6092
|
schema: L.value,
|
|
6085
6093
|
onModelUpdated: e.onModelUpdated
|
|
6086
6094
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : M("", !0),
|
|
6087
|
-
r.value === "vault" ? (d(),
|
|
6095
|
+
r.value === "vault" ? (d(), U(le, {
|
|
6088
6096
|
key: 3,
|
|
6089
6097
|
model: e.formModel,
|
|
6090
6098
|
options: e.formOptions,
|
|
@@ -6095,10 +6103,10 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6095
6103
|
])
|
|
6096
6104
|
]),
|
|
6097
6105
|
advanced: S(() => [
|
|
6098
|
-
|
|
6106
|
+
u("div", Bf, [
|
|
6099
6107
|
jf,
|
|
6100
6108
|
zf,
|
|
6101
|
-
I.value ? (d(),
|
|
6109
|
+
I.value ? (d(), U(le, {
|
|
6102
6110
|
key: 0,
|
|
6103
6111
|
model: e.formModel,
|
|
6104
6112
|
options: e.formOptions,
|
|
@@ -6112,13 +6120,13 @@ const Sf = /* @__PURE__ */ U(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6112
6120
|
]);
|
|
6113
6121
|
};
|
|
6114
6122
|
}
|
|
6115
|
-
}), Hf = /* @__PURE__ */
|
|
6123
|
+
}), Hf = /* @__PURE__ */ N(Kf, [["__scopeId", "data-v-b9df1c3f"]]), Wi = (e) => (Se("data-v-947f593a"), e = e(), Te(), e), Yf = { class: "rla-form-basic-fields" }, Gf = { class: "rla-form-request-limits-subtitle" }, xf = { class: "rla-form-request-limits-content" }, Wf = { class: "rla-form-window-type" }, Zf = ["innerHTML"], Jf = { class: "rla-form-window-type-radios" }, Xf = { class: "rla-form-request-limits-items" }, Qf = { class: "rla-form-request-limits-row" }, ep = ["id"], tp = { class: "rla-form-request-limits-actions" }, np = {
|
|
6116
6124
|
key: 0,
|
|
6117
6125
|
class: "rla-form-request-limits-examples"
|
|
6118
|
-
}, ip = { class: "rla-form-request-limits-examples-badges" }, rp = /* @__PURE__ */ Wi(() => /* @__PURE__ */
|
|
6126
|
+
}, ip = { class: "rla-form-request-limits-examples-badges" }, rp = /* @__PURE__ */ Wi(() => /* @__PURE__ */ u("br", null, null, -1)), sp = ["innerHTML"], ap = {
|
|
6119
6127
|
id: "rla-form-error-legend",
|
|
6120
6128
|
class: "rla-form-error-inputs"
|
|
6121
|
-
}, op = /* @__PURE__ */ Wi(() => /* @__PURE__ */
|
|
6129
|
+
}, op = /* @__PURE__ */ Wi(() => /* @__PURE__ */ u("div", null, ":", -1)), lp = /* @__PURE__ */ fe({
|
|
6122
6130
|
__name: "RLAForm",
|
|
6123
6131
|
props: {
|
|
6124
6132
|
formSchema: {},
|
|
@@ -6184,8 +6192,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6184
6192
|
"selectionGroup",
|
|
6185
6193
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((f) => `config-${f}`)
|
|
6186
6194
|
]), r = (f) => f === void 0 ? !1 : n.has(f), { t: s } = Dt("en-us", Qt), i = e, o = P(() => {
|
|
6187
|
-
var
|
|
6188
|
-
const f = (k = (
|
|
6195
|
+
var _, k;
|
|
6196
|
+
const f = (k = (_ = i.formSchema) == null ? void 0 : _.fields) == null ? void 0 : k.find((E) => E.model === "selectionGroup");
|
|
6189
6197
|
if (f)
|
|
6190
6198
|
return {
|
|
6191
6199
|
fields: [{
|
|
@@ -6195,48 +6203,48 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6195
6203
|
};
|
|
6196
6204
|
}), a = P(() => {
|
|
6197
6205
|
var de, Ce;
|
|
6198
|
-
const f = ((Ce = (de = i.formSchema) == null ? void 0 : de.fields) == null ? void 0 : Ce.filter((re) => !r(re.model))) ?? [],
|
|
6206
|
+
const f = ((Ce = (de = i.formSchema) == null ? void 0 : de.fields) == null ? void 0 : Ce.filter((re) => !r(re.model))) ?? [], _ = [], k = [], E = [];
|
|
6199
6207
|
let X = !1;
|
|
6200
6208
|
for (const re of f) {
|
|
6201
|
-
const
|
|
6202
|
-
if (
|
|
6203
|
-
if (
|
|
6204
|
-
(re.model === "config-redis-cluster_addresses" || re.model === "config-redis-sentinel_addresses") && (re.
|
|
6209
|
+
const ze = re.model;
|
|
6210
|
+
if (ze !== void 0) {
|
|
6211
|
+
if (ze.startsWith("config-redis-")) {
|
|
6212
|
+
(re.model === "config-redis-cluster_addresses" || re.model === "config-redis-sentinel_addresses") && (re.inputAttributes.help = s("rla.redis.address_example")), k.push(re);
|
|
6205
6213
|
continue;
|
|
6206
6214
|
}
|
|
6207
|
-
X ? E.push(re) :
|
|
6215
|
+
X ? E.push(re) : _.push(re), re.model === "config-strategy" && (X = !0);
|
|
6208
6216
|
}
|
|
6209
6217
|
}
|
|
6210
6218
|
return {
|
|
6211
|
-
endsWithStrategy: { fields:
|
|
6219
|
+
endsWithStrategy: { fields: _ },
|
|
6212
6220
|
redis: { fields: k },
|
|
6213
6221
|
afterStrategy: { fields: E }
|
|
6214
6222
|
};
|
|
6215
6223
|
}), l = P(
|
|
6216
6224
|
() => t.filter((f) => i.formModel["config-window_type"] === f.config.window_type)
|
|
6217
|
-
),
|
|
6218
|
-
var f,
|
|
6219
|
-
return (
|
|
6225
|
+
), c = P(() => {
|
|
6226
|
+
var f, _;
|
|
6227
|
+
return (_ = (f = i.formSchema) == null ? void 0 : f.fields) == null ? void 0 : _.find((k) => k.model === "config-identifier");
|
|
6220
6228
|
}), h = P(
|
|
6221
6229
|
() => {
|
|
6222
|
-
var f,
|
|
6223
|
-
return (((k = (
|
|
6230
|
+
var f, _, k;
|
|
6231
|
+
return (((k = (_ = (f = i.formSchema) == null ? void 0 : f.fields) == null ? void 0 : _.find((E) => E.model === "config-identifier")) == null ? void 0 : k.values) ?? []).map((E) => ({
|
|
6224
6232
|
label: s(`rla.identifiers.options.${E}`),
|
|
6225
6233
|
value: E
|
|
6226
6234
|
}));
|
|
6227
6235
|
}
|
|
6228
|
-
), g = ve(),
|
|
6236
|
+
), g = ve(), v = ve(!0), L = P(
|
|
6229
6237
|
() => {
|
|
6230
|
-
var f,
|
|
6231
|
-
return i.formModel["config-window_type"] ?? ((k = (
|
|
6238
|
+
var f, _, k;
|
|
6239
|
+
return i.formModel["config-window_type"] ?? ((k = (_ = (f = i.formSchema) == null ? void 0 : f.fields) == null ? void 0 : _.find((E) => E.model === "config-window_type")) == null ? void 0 : k.default);
|
|
6232
6240
|
}
|
|
6233
6241
|
), V = P(() => {
|
|
6234
|
-
var
|
|
6235
|
-
const f = (E = (k = (
|
|
6236
|
-
return (((Ce = (de = (X = i.formSchema) == null ? void 0 : X.fields) == null ? void 0 : de.find((re) => re.model === "config-window_type")) == null ? void 0 : Ce.values) ?? []).sort((re,
|
|
6242
|
+
var _, k, E, X, de, Ce;
|
|
6243
|
+
const f = (E = (k = (_ = i.formSchema) == null ? void 0 : _.fields) == null ? void 0 : k.find((re) => re.model === "config-window_type")) == null ? void 0 : E.default;
|
|
6244
|
+
return (((Ce = (de = (X = i.formSchema) == null ? void 0 : X.fields) == null ? void 0 : de.find((re) => re.model === "config-window_type")) == null ? void 0 : Ce.values) ?? []).sort((re, ze) => re === f ? -1 : ze === f ? 1 : 0);
|
|
6237
6245
|
}), w = P(() => {
|
|
6238
|
-
var
|
|
6239
|
-
const f = (
|
|
6246
|
+
var _;
|
|
6247
|
+
const f = (_ = i.formModel["config-limit"]) == null ? void 0 : _.map((k, E) => {
|
|
6240
6248
|
var X, de;
|
|
6241
6249
|
return {
|
|
6242
6250
|
limit: k,
|
|
@@ -6246,63 +6254,63 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6246
6254
|
return !Array.isArray(f) || f.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : f;
|
|
6247
6255
|
}), I = P(
|
|
6248
6256
|
() => {
|
|
6249
|
-
var f,
|
|
6250
|
-
return ((f = i.formModel) == null ? void 0 : f["config-identifier"]) ?? ((E = (k = (
|
|
6257
|
+
var f, _, k, E;
|
|
6258
|
+
return ((f = i.formModel) == null ? void 0 : f["config-identifier"]) ?? ((E = (k = (_ = i.formSchema) == null ? void 0 : _.fields) == null ? void 0 : k.find((X) => X.model === "config-identifier")) == null ? void 0 : E.default);
|
|
6251
6259
|
}
|
|
6252
6260
|
), y = P(
|
|
6253
6261
|
() => {
|
|
6254
|
-
var f,
|
|
6255
|
-
return ((f = i.formModel) == null ? void 0 : f["config-error_code"]) ?? ((E = (k = (
|
|
6262
|
+
var f, _, k, E;
|
|
6263
|
+
return ((f = i.formModel) == null ? void 0 : f["config-error_code"]) ?? ((E = (k = (_ = i.formSchema) == null ? void 0 : _.fields) == null ? void 0 : k.find((X) => X.model === "config-error_code")) == null ? void 0 : E.default);
|
|
6256
6264
|
}
|
|
6257
6265
|
), C = P(
|
|
6258
6266
|
() => {
|
|
6259
|
-
var f,
|
|
6260
|
-
return ((f = i.formModel) == null ? void 0 : f["config-error_message"]) ?? ((E = (k = (
|
|
6267
|
+
var f, _, k, E;
|
|
6268
|
+
return ((f = i.formModel) == null ? void 0 : f["config-error_message"]) ?? ((E = (k = (_ = i.formSchema) == null ? void 0 : _.fields) == null ? void 0 : k.find((X) => X.model === "config-error_message")) == null ? void 0 : E.default);
|
|
6261
6269
|
}
|
|
6262
|
-
), Y = (f,
|
|
6263
|
-
if (
|
|
6270
|
+
), Y = (f, _) => {
|
|
6271
|
+
if (_ === g.value) {
|
|
6264
6272
|
i.onModelUpdated([], "config-limit"), i.onModelUpdated([], "config-window_size"), nn(() => {
|
|
6265
6273
|
g.value = void 0;
|
|
6266
6274
|
});
|
|
6267
6275
|
return;
|
|
6268
6276
|
}
|
|
6269
6277
|
i.onModelUpdated([f.config.limit], "config-limit"), i.onModelUpdated([f.config.window_size], "config-window_size"), nn(() => {
|
|
6270
|
-
g.value =
|
|
6278
|
+
g.value = _;
|
|
6271
6279
|
});
|
|
6272
|
-
},
|
|
6280
|
+
}, G = (f) => {
|
|
6273
6281
|
g.value !== void 0 && (g.value = void 0), i.onModelUpdated(f, "config-window_type");
|
|
6274
|
-
},
|
|
6282
|
+
}, b = (f, _) => {
|
|
6275
6283
|
var E;
|
|
6276
6284
|
g.value !== void 0 && (g.value = void 0);
|
|
6277
6285
|
const k = we(((E = i.formModel) == null ? void 0 : E["config-limit"]) ?? []);
|
|
6278
|
-
k[f] =
|
|
6279
|
-
}, p = (f,
|
|
6286
|
+
k[f] = _, i.onModelUpdated(k, "config-limit");
|
|
6287
|
+
}, p = (f, _) => {
|
|
6280
6288
|
var E;
|
|
6281
6289
|
g.value !== void 0 && (g.value = void 0);
|
|
6282
6290
|
const k = we(((E = i.formModel) == null ? void 0 : E["config-window_size"]) ?? []);
|
|
6283
|
-
k[f] =
|
|
6291
|
+
k[f] = _, i.onModelUpdated(k, "config-window_size");
|
|
6284
6292
|
}, O = (f) => {
|
|
6285
6293
|
var E, X;
|
|
6286
6294
|
g.value !== void 0 && (g.value = void 0);
|
|
6287
|
-
const
|
|
6288
|
-
|
|
6289
|
-
},
|
|
6290
|
-
var
|
|
6295
|
+
const _ = we(((E = i.formModel) == null ? void 0 : E["config-limit"]) ?? []), k = we(((X = i.formModel) == null ? void 0 : X["config-window_size"]) ?? []);
|
|
6296
|
+
_.length === 0 && _.push(void 0), k.length === 0 && k.push(void 0), _.splice(f + 1, 0, void 0), k.splice(f + 1, 0, void 0), i.onModelUpdated(_, "config-limit"), i.onModelUpdated(k, "config-window_size");
|
|
6297
|
+
}, x = (f) => {
|
|
6298
|
+
var _, k;
|
|
6291
6299
|
if (w.value.length > 1) {
|
|
6292
6300
|
g.value !== void 0 && (g.value = void 0);
|
|
6293
|
-
const E = we(((
|
|
6301
|
+
const E = we(((_ = i.formModel) == null ? void 0 : _["config-limit"]) ?? []), X = we(((k = i.formModel) == null ? void 0 : k["config-window_size"]) ?? []);
|
|
6294
6302
|
E.length === 0 && E.push(void 0), X.length === 0 && X.push(void 0), E.splice(f, 1), X.splice(f, 1), i.onModelUpdated(E, "config-limit"), i.onModelUpdated(X, "config-window_size");
|
|
6295
6303
|
}
|
|
6296
6304
|
};
|
|
6297
|
-
return (f,
|
|
6298
|
-
const k = F("VueFormGenerator"), E = F("KLabel"), X = F("KRadio"), de = F("KInput"), Ce = F("KButton"), re = F("KBadge"),
|
|
6305
|
+
return (f, _) => {
|
|
6306
|
+
const k = F("VueFormGenerator"), E = F("KLabel"), X = F("KRadio"), de = F("KInput"), Ce = F("KButton"), re = F("KBadge"), ze = F("KTooltip"), en = F("KCard"), Zi = F("KSelect"), Ji = F("KCollapse");
|
|
6299
6307
|
return d(), m(q, null, [
|
|
6300
|
-
|
|
6308
|
+
u("div", Yf, [
|
|
6301
6309
|
T(k, {
|
|
6302
6310
|
model: f.formModel,
|
|
6303
6311
|
options: f.formOptions,
|
|
6304
6312
|
schema: o.value,
|
|
6305
|
-
onModelUpdated:
|
|
6313
|
+
onModelUpdated: _[0] || (_[0] = (R, ee) => f.onModelUpdated(R, ee))
|
|
6306
6314
|
}, null, 8, ["model", "options", "schema"]),
|
|
6307
6315
|
T(en, { class: "rla-form-request-limits" }, {
|
|
6308
6316
|
title: S(() => [
|
|
@@ -6320,11 +6328,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6320
6328
|
]),
|
|
6321
6329
|
_: 1
|
|
6322
6330
|
}, 8, ["info"]),
|
|
6323
|
-
|
|
6331
|
+
u("div", Gf, A(z(s)("rla.request_limits.subtitle")), 1)
|
|
6324
6332
|
]),
|
|
6325
6333
|
default: S(() => [
|
|
6326
|
-
|
|
6327
|
-
|
|
6334
|
+
u("div", xf, [
|
|
6335
|
+
u("div", Wf, [
|
|
6328
6336
|
T(E, {
|
|
6329
6337
|
class: "rla-form-window-type-label",
|
|
6330
6338
|
"tooltip-attributes": {
|
|
@@ -6333,7 +6341,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6333
6341
|
}
|
|
6334
6342
|
}, {
|
|
6335
6343
|
tooltip: S(() => [
|
|
6336
|
-
|
|
6344
|
+
u("div", {
|
|
6337
6345
|
innerHTML: z(s)("rla.window_type.help")
|
|
6338
6346
|
}, null, 8, Zf)
|
|
6339
6347
|
]),
|
|
@@ -6342,13 +6350,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6342
6350
|
]),
|
|
6343
6351
|
_: 1
|
|
6344
6352
|
}),
|
|
6345
|
-
|
|
6346
|
-
(d(!0), m(q, null, Z(V.value, (R) => (d(),
|
|
6353
|
+
u("div", Jf, [
|
|
6354
|
+
(d(!0), m(q, null, Z(V.value, (R) => (d(), U(X, {
|
|
6347
6355
|
key: `window-type-${R}`,
|
|
6348
6356
|
"model-value": L.value,
|
|
6349
6357
|
name: R,
|
|
6350
6358
|
"selected-value": R,
|
|
6351
|
-
"onUpdate:modelValue":
|
|
6359
|
+
"onUpdate:modelValue": G
|
|
6352
6360
|
}, {
|
|
6353
6361
|
default: S(() => [
|
|
6354
6362
|
te(A(z(s)(`rla.window_type.options.${R}`)), 1)
|
|
@@ -6357,7 +6365,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6357
6365
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
6358
6366
|
])
|
|
6359
6367
|
]),
|
|
6360
|
-
|
|
6368
|
+
u("div", Xf, [
|
|
6361
6369
|
(d(!0), m(q, null, Z(w.value, (R, ee) => (d(), m("div", {
|
|
6362
6370
|
key: ee.toString()
|
|
6363
6371
|
}, [
|
|
@@ -6369,8 +6377,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6369
6377
|
]),
|
|
6370
6378
|
_: 2
|
|
6371
6379
|
}, 1032, ["for"]),
|
|
6372
|
-
|
|
6373
|
-
|
|
6380
|
+
u("div", Qf, [
|
|
6381
|
+
u("legend", {
|
|
6374
6382
|
id: `rla-form-request-limits-item-${ee}-legend`,
|
|
6375
6383
|
class: "rla-form-request-limits-inputs"
|
|
6376
6384
|
}, [
|
|
@@ -6378,22 +6386,22 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6378
6386
|
"model-value": R.limit && R.limit.toString(),
|
|
6379
6387
|
placeholder: z(s)("rla.request_limits.request_number"),
|
|
6380
6388
|
type: "number",
|
|
6381
|
-
"onUpdate:modelValue": (Tt) =>
|
|
6389
|
+
"onUpdate:modelValue": (Tt) => b(ee, Number.parseInt(Tt))
|
|
6382
6390
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6383
|
-
|
|
6391
|
+
u("div", null, A(z(s)("rla.request_limits.interval_determiner")), 1),
|
|
6384
6392
|
T(de, {
|
|
6385
6393
|
"model-value": R.windowSize && R.windowSize.toString(),
|
|
6386
6394
|
placeholder: z(s)("rla.request_limits.time_interval"),
|
|
6387
6395
|
type: "number",
|
|
6388
6396
|
"onUpdate:modelValue": (Tt) => p(ee, Number.parseInt(Tt))
|
|
6389
6397
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6390
|
-
|
|
6398
|
+
u("div", null, A(z(s)("rla.request_limits.seconds")), 1)
|
|
6391
6399
|
], 8, ep),
|
|
6392
|
-
|
|
6400
|
+
u("div", tp, [
|
|
6393
6401
|
T(Ce, {
|
|
6394
6402
|
appearance: "tertiary",
|
|
6395
6403
|
disabled: w.value.length <= 1,
|
|
6396
|
-
onClick: () =>
|
|
6404
|
+
onClick: () => x(ee)
|
|
6397
6405
|
}, {
|
|
6398
6406
|
default: S(() => [
|
|
6399
6407
|
T(z(om))
|
|
@@ -6414,17 +6422,17 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6414
6422
|
]))), 128))
|
|
6415
6423
|
]),
|
|
6416
6424
|
l.value.length > 0 ? (d(), m("div", np, [
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
(d(!0), m(q, null, Z(l.value, (R, ee) => (d(),
|
|
6425
|
+
u("div", null, A(z(s)("rla.try_a_use_case")) + ":", 1),
|
|
6426
|
+
u("div", ip, [
|
|
6427
|
+
(d(!0), m(q, null, Z(l.value, (R, ee) => (d(), U(ze, {
|
|
6420
6428
|
key: `use-case-${ee}`,
|
|
6421
6429
|
"max-width": "300"
|
|
6422
6430
|
}, {
|
|
6423
6431
|
content: S(() => [
|
|
6424
|
-
|
|
6432
|
+
u("div", null, A(R.description), 1),
|
|
6425
6433
|
rp,
|
|
6426
|
-
|
|
6427
|
-
|
|
6434
|
+
u("div", null, A(z(s)("rla.request_limits.label")) + ": " + A(R.config.limit), 1),
|
|
6435
|
+
u("div", null, A(z(s)("rla.request_limits.time_interval")) + ": " + A(R.config.window_size), 1)
|
|
6428
6436
|
]),
|
|
6429
6437
|
default: S(() => [
|
|
6430
6438
|
T(re, {
|
|
@@ -6448,7 +6456,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6448
6456
|
}),
|
|
6449
6457
|
T(Zi, {
|
|
6450
6458
|
modelValue: I.value,
|
|
6451
|
-
"onUpdate:modelValue":
|
|
6459
|
+
"onUpdate:modelValue": _[1] || (_[1] = (R) => I.value = R),
|
|
6452
6460
|
class: "rla-form-identifiers",
|
|
6453
6461
|
items: h.value,
|
|
6454
6462
|
label: z(s)("rla.identifiers.label"),
|
|
@@ -6458,16 +6466,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6458
6466
|
placement: "top"
|
|
6459
6467
|
}
|
|
6460
6468
|
},
|
|
6461
|
-
onSelected:
|
|
6469
|
+
onSelected: _[2] || (_[2] = (R) => i.onModelUpdated(R.value, "config-identifier"))
|
|
6462
6470
|
}, {
|
|
6463
6471
|
"label-tooltip": S(() => [
|
|
6464
|
-
|
|
6465
|
-
innerHTML:
|
|
6472
|
+
u("div", {
|
|
6473
|
+
innerHTML: c.value && c.value.help
|
|
6466
6474
|
}, null, 8, sp)
|
|
6467
6475
|
]),
|
|
6468
6476
|
_: 1
|
|
6469
6477
|
}, 8, ["modelValue", "items", "label"]),
|
|
6470
|
-
|
|
6478
|
+
u("div", null, [
|
|
6471
6479
|
T(E, {
|
|
6472
6480
|
for: "rla-form-error-legend",
|
|
6473
6481
|
info: z(s)("rla.error_message.help"),
|
|
@@ -6482,26 +6490,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6482
6490
|
]),
|
|
6483
6491
|
_: 1
|
|
6484
6492
|
}, 8, ["info"]),
|
|
6485
|
-
|
|
6493
|
+
u("legend", ap, [
|
|
6486
6494
|
T(de, {
|
|
6487
6495
|
class: "input-error-code",
|
|
6488
6496
|
"model-value": y.value && y.value.toString(),
|
|
6489
6497
|
placeholder: z(s)("rla.error_message.code_placeholder"),
|
|
6490
6498
|
type: "number",
|
|
6491
|
-
"onUpdate:modelValue":
|
|
6499
|
+
"onUpdate:modelValue": _[3] || (_[3] = (R) => f.onModelUpdated(Number.parseInt(R), "config-error_code"))
|
|
6492
6500
|
}, null, 8, ["model-value", "placeholder"]),
|
|
6493
6501
|
op,
|
|
6494
6502
|
T(de, {
|
|
6495
6503
|
"model-value": C.value,
|
|
6496
6504
|
placeholder: z(s)("rla.error_message.message_placeholder"),
|
|
6497
|
-
"onUpdate:modelValue":
|
|
6505
|
+
"onUpdate:modelValue": _[4] || (_[4] = (R) => f.onModelUpdated(R, "config-error_message"))
|
|
6498
6506
|
}, null, 8, ["model-value", "placeholder"])
|
|
6499
6507
|
])
|
|
6500
6508
|
])
|
|
6501
6509
|
]),
|
|
6502
6510
|
T(Ji, {
|
|
6503
|
-
modelValue:
|
|
6504
|
-
"onUpdate:modelValue":
|
|
6511
|
+
modelValue: v.value,
|
|
6512
|
+
"onUpdate:modelValue": _[8] || (_[8] = (R) => v.value = R),
|
|
6505
6513
|
"trigger-label": z(s)("rla.view_advanced_fields")
|
|
6506
6514
|
}, {
|
|
6507
6515
|
default: S(() => [
|
|
@@ -6509,9 +6517,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6509
6517
|
model: f.formModel,
|
|
6510
6518
|
options: f.formOptions,
|
|
6511
6519
|
schema: a.value.endsWithStrategy,
|
|
6512
|
-
onModelUpdated:
|
|
6520
|
+
onModelUpdated: _[5] || (_[5] = (R, ee) => f.onModelUpdated(R, ee))
|
|
6513
6521
|
}, null, 8, ["model", "options", "schema"]),
|
|
6514
|
-
f.formModel["config-strategy"] === "redis" ? (d(),
|
|
6522
|
+
f.formModel["config-strategy"] === "redis" ? (d(), U(en, {
|
|
6515
6523
|
key: 0,
|
|
6516
6524
|
class: "rla-form-redis-card",
|
|
6517
6525
|
title: z(s)("rla.redis.title")
|
|
@@ -6521,7 +6529,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6521
6529
|
model: f.formModel,
|
|
6522
6530
|
options: f.formOptions,
|
|
6523
6531
|
schema: a.value.redis,
|
|
6524
|
-
onModelUpdated:
|
|
6532
|
+
onModelUpdated: _[6] || (_[6] = (R, ee) => f.onModelUpdated(R, ee))
|
|
6525
6533
|
}, null, 8, ["model", "options", "schema"])
|
|
6526
6534
|
]),
|
|
6527
6535
|
_: 1
|
|
@@ -6530,7 +6538,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6530
6538
|
model: f.formModel,
|
|
6531
6539
|
options: f.formOptions,
|
|
6532
6540
|
schema: a.value.afterStrategy,
|
|
6533
|
-
onModelUpdated:
|
|
6541
|
+
onModelUpdated: _[7] || (_[7] = (R, ee) => f.onModelUpdated(R, ee))
|
|
6534
6542
|
}, null, 8, ["model", "options", "schema"])
|
|
6535
6543
|
]),
|
|
6536
6544
|
_: 1
|
|
@@ -6538,7 +6546,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6538
6546
|
], 64);
|
|
6539
6547
|
};
|
|
6540
6548
|
}
|
|
6541
|
-
}), dp = /* @__PURE__ */
|
|
6549
|
+
}), dp = /* @__PURE__ */ N(lp, [["__scopeId", "data-v-947f593a"]]), hp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6542
6550
|
__proto__: null,
|
|
6543
6551
|
ACMEForm: Hf,
|
|
6544
6552
|
ExitTransformer: Af,
|