@kong-ui-public/forms 3.4.1 → 3.4.3
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 +121 -121
- package/dist/forms.umd.js +2 -2
- package/package.json +6 -6
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveDirective as De, withDirectives as
|
|
1
|
+
import { resolveDirective as De, withDirectives as B, openBlock as d, createElementBlock as m, normalizeClass as H, vModelCheckbox as Pt, Fragment as q, renderList as Z, createElementVNode as u, createTextVNode as ee, toDisplayString as A, createCommentVNode as M, ref as ve, computed as P, defineComponent as fe, toRefs as zn, 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
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; )
|
|
@@ -57,19 +57,19 @@ function yr() {
|
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
59
|
var Jn = typeof exports == "object" && exports && !exports.nodeType && exports, an = Jn && typeof module == "object" && module && !module.nodeType && module, vr = an && an.exports === Jn, on = vr ? pe.Buffer : void 0, br = on ? on.isBuffer : void 0, nt = br || yr, _r = 9007199254740991, wr = /^(?:0|[1-9]\d*)$/;
|
|
60
|
-
function
|
|
60
|
+
function jt(e, t) {
|
|
61
61
|
var n = typeof e;
|
|
62
62
|
return t = t ?? _r, !!t && (n == "number" || n != "symbol" && wr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
63
63
|
}
|
|
64
64
|
var Sr = 9007199254740991;
|
|
65
|
-
function
|
|
65
|
+
function Bt(e) {
|
|
66
66
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Sr;
|
|
67
67
|
}
|
|
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]",
|
|
69
|
-
J[qr] = J[Dr] = J[Rr] = J[
|
|
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]", jr = "[object Int16Array]", Br = "[object Int32Array]", Kr = "[object Uint8Array]", zr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Yr = "[object Uint32Array]", J = {};
|
|
69
|
+
J[qr] = J[Dr] = J[Rr] = J[jr] = J[Br] = J[Kr] = J[zr] = 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
71
|
function Gr(e) {
|
|
72
|
-
return _e(e) &&
|
|
72
|
+
return _e(e) && Bt(e.length) && !!J[Oe(e)];
|
|
73
73
|
}
|
|
74
74
|
function Kt(e) {
|
|
75
75
|
return function(t) {
|
|
@@ -90,7 +90,7 @@ function Qn(e, t) {
|
|
|
90
90
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
91
91
|
s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
92
92
|
i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
93
|
-
|
|
93
|
+
jt(c, l))) && a.push(c);
|
|
94
94
|
return a;
|
|
95
95
|
}
|
|
96
96
|
var Jr = Object.prototype;
|
|
@@ -117,14 +117,14 @@ function ie(e) {
|
|
|
117
117
|
return e != null && (t == "object" || t == "function");
|
|
118
118
|
}
|
|
119
119
|
var ts = "[object AsyncFunction]", ns = "[object Function]", is = "[object GeneratorFunction]", rs = "[object Proxy]";
|
|
120
|
-
function
|
|
120
|
+
function j(e) {
|
|
121
121
|
if (!ie(e))
|
|
122
122
|
return !1;
|
|
123
123
|
var t = Oe(e);
|
|
124
124
|
return t == ns || t == is || t == ts || t == rs;
|
|
125
125
|
}
|
|
126
126
|
function We(e) {
|
|
127
|
-
return e != null &&
|
|
127
|
+
return e != null && Bt(e.length) && !j(e);
|
|
128
128
|
}
|
|
129
129
|
function Ze(e) {
|
|
130
130
|
return We(e) ? Qn(e) : ti(e);
|
|
@@ -193,17 +193,17 @@ var gs = /[\\^$.*+?()[\]{}|]/g, ys = /^\[object .+?Constructor\]$/, vs = Functio
|
|
|
193
193
|
function Ts(e) {
|
|
194
194
|
if (!ie(e) || hs(e))
|
|
195
195
|
return !1;
|
|
196
|
-
var t =
|
|
196
|
+
var t = j(e) ? Ss : ys;
|
|
197
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 je(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 = je(Object, "create");
|
|
207
207
|
function Ms() {
|
|
208
208
|
this.__data__ = it ? it(null) : {}, this.size = 0;
|
|
209
209
|
}
|
|
@@ -266,10 +266,10 @@ function Rs(e) {
|
|
|
266
266
|
var t = this.__data__, n = vt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function js(e) {
|
|
270
270
|
return vt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Bs(e, t) {
|
|
273
273
|
var n = this.__data__, r = vt(n, e);
|
|
274
274
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
275
275
|
}
|
|
@@ -283,9 +283,9 @@ function $e(e) {
|
|
|
283
283
|
$e.prototype.clear = Vs;
|
|
284
284
|
$e.prototype.delete = Ds;
|
|
285
285
|
$e.prototype.get = Rs;
|
|
286
|
-
$e.prototype.has =
|
|
287
|
-
$e.prototype.set =
|
|
288
|
-
var rt =
|
|
286
|
+
$e.prototype.has = js;
|
|
287
|
+
$e.prototype.set = Bs;
|
|
288
|
+
var rt = je(pe, "Map");
|
|
289
289
|
function Ks() {
|
|
290
290
|
this.size = 0, this.__data__ = {
|
|
291
291
|
hash: new Le(),
|
|
@@ -419,19 +419,19 @@ const ai = {
|
|
|
419
419
|
},
|
|
420
420
|
// Get disabled attr of field
|
|
421
421
|
fieldDisabled(e) {
|
|
422
|
-
return
|
|
422
|
+
return j(e.disabled) ? e.disabled.call(this, this.model, e, this) : ne(e.disabled) ? !1 : e.disabled;
|
|
423
423
|
},
|
|
424
424
|
// Get readonly prop of field
|
|
425
425
|
fieldReadonly(e) {
|
|
426
|
-
return
|
|
426
|
+
return j(e.readonly) ? e.readonly.call(this, this.model, e, this) : ne(e.readonly) ? !1 : e.readonly;
|
|
427
427
|
},
|
|
428
428
|
// Get featured prop of field
|
|
429
429
|
fieldFeatured(e) {
|
|
430
|
-
return
|
|
430
|
+
return j(e.featured) ? e.featured.call(this, this.model, e, this) : ne(e.featured) ? !1 : e.featured;
|
|
431
431
|
},
|
|
432
432
|
// Get required prop of field
|
|
433
433
|
fieldRequired(e) {
|
|
434
|
-
return
|
|
434
|
+
return j(e.required) ? e.required.call(this, this.model, e, this) : ne(e.required) ? !1 : e.required;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
};
|
|
@@ -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 = je(Object, "defineProperty");
|
|
474
474
|
return e({}, "", {}), e;
|
|
475
475
|
} catch {
|
|
476
476
|
}
|
|
@@ -578,7 +578,7 @@ function Et(e) {
|
|
|
578
578
|
function Oa(e) {
|
|
579
579
|
return fi(e, St, hi);
|
|
580
580
|
}
|
|
581
|
-
var Ft =
|
|
581
|
+
var Ft = je(pe, "DataView"), Ut = je(pe, "Promise"), ze = je(pe, "Set"), Nt = je(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(ze), 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 || ze && Fe(new ze()) != vn || Nt && Fe(new Nt()) != bn) && (Fe = function(e) {
|
|
583
583
|
var t = Oe(e), n = t == ka ? e.constructor : void 0, r = n ? Re(n) : "";
|
|
584
584
|
if (r)
|
|
@@ -612,12 +612,12 @@ function Da(e, t) {
|
|
|
612
612
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
613
613
|
}
|
|
614
614
|
var Ra = /\w*$/;
|
|
615
|
-
function
|
|
615
|
+
function ja(e) {
|
|
616
616
|
var t = new e.constructor(e.source, Ra.exec(e));
|
|
617
617
|
return t.lastIndex = e.lastIndex, t;
|
|
618
618
|
}
|
|
619
619
|
var wn = be ? be.prototype : void 0, Sn = wn ? wn.valueOf : void 0;
|
|
620
|
-
function
|
|
620
|
+
function Ba(e) {
|
|
621
621
|
return Sn ? Object(Sn.call(e)) : {};
|
|
622
622
|
}
|
|
623
623
|
function Ka(e, t) {
|
|
@@ -651,11 +651,11 @@ function uo(e, t, n) {
|
|
|
651
651
|
case Za:
|
|
652
652
|
return new r(e);
|
|
653
653
|
case xa:
|
|
654
|
-
return
|
|
654
|
+
return ja(e);
|
|
655
655
|
case Wa:
|
|
656
656
|
return new r();
|
|
657
657
|
case Ja:
|
|
658
|
-
return
|
|
658
|
+
return Ba(e);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
var Tn = Object.create, co = /* @__PURE__ */ function() {
|
|
@@ -682,8 +682,8 @@ var $n = Ye && Ye.isMap, po = $n ? Kt($n) : fo, go = "[object Set]";
|
|
|
682
682
|
function yo(e) {
|
|
683
683
|
return _e(e) && Ge(e) == go;
|
|
684
684
|
}
|
|
685
|
-
var Mn = Ye && Ye.isSet, vo = Mn ? Kt(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]",
|
|
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[
|
|
685
|
+
var Mn = Ye && Ye.isSet, vo = Mn ? Kt(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]", jo = "[object Uint8Array]", Bo = "[object Uint8ClampedArray]", Ko = "[object Uint16Array]", zo = "[object Uint32Array]", W = {};
|
|
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[jo] = W[Bo] = W[Ko] = W[zo] = !0;
|
|
687
687
|
W[Mo] = W[gi] = W[Uo] = !1;
|
|
688
688
|
function et(e, t, n, r, s, i) {
|
|
689
689
|
var o, a = t & bo, l = t & _o, c = t & wo;
|
|
@@ -950,7 +950,7 @@ function Ol(e, t, n) {
|
|
|
950
950
|
if (!ie(n))
|
|
951
951
|
return !1;
|
|
952
952
|
var r = typeof t;
|
|
953
|
-
return (r == "number" ? We(n) &&
|
|
953
|
+
return (r == "number" ? We(n) && jt(t, n.length) : r == "string" && t in n) ? ot(n[t], e) : !1;
|
|
954
954
|
}
|
|
955
955
|
var Si = Object.prototype, kl = Si.hasOwnProperty, ke = Al(function(e, t) {
|
|
956
956
|
e = Object(e);
|
|
@@ -1040,7 +1040,7 @@ 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 = Pe({}, Oi),
|
|
1043
|
+
}, mt = Pe({}, Oi), jl = function(e) {
|
|
1044
1044
|
return mt = Pe(mt, e);
|
|
1045
1045
|
}, En = function(e) {
|
|
1046
1046
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
@@ -1048,7 +1048,7 @@ var Ii = [
|
|
|
1048
1048
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
1049
1049
|
e = "0" + e;
|
|
1050
1050
|
return e;
|
|
1051
|
-
},
|
|
1051
|
+
}, Bl = {
|
|
1052
1052
|
D: function(e) {
|
|
1053
1053
|
return String(e.getDate());
|
|
1054
1054
|
},
|
|
@@ -1220,7 +1220,7 @@ var Ii = [
|
|
|
1220
1220
|
});
|
|
1221
1221
|
var s = Pe(Pe({}, mt), n);
|
|
1222
1222
|
return t = t.replace($i, function(i) {
|
|
1223
|
-
return
|
|
1223
|
+
return Bl[i](e, s);
|
|
1224
1224
|
}), t.replace(/@@@/g, function() {
|
|
1225
1225
|
return r.shift();
|
|
1226
1226
|
});
|
|
@@ -1284,7 +1284,7 @@ var ge = {
|
|
|
1284
1284
|
format: Hl,
|
|
1285
1285
|
parse: Yl,
|
|
1286
1286
|
defaultI18n: Oi,
|
|
1287
|
-
setGlobalDateI18n:
|
|
1287
|
+
setGlobalDateI18n: jl,
|
|
1288
1288
|
setGlobalDateMasks: zl
|
|
1289
1289
|
};
|
|
1290
1290
|
const se = {
|
|
@@ -1435,7 +1435,7 @@ const qe = {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
Object.keys(qe).forEach((e) => {
|
|
1437
1437
|
const t = qe[e];
|
|
1438
|
-
|
|
1438
|
+
j(t) && (t.locale = (n) => (r, s, i) => t(r, s, i, ke(n, se)));
|
|
1439
1439
|
});
|
|
1440
1440
|
function Pn(e) {
|
|
1441
1441
|
return Ve(e) ? qe[e] != null ? qe[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
@@ -1470,11 +1470,11 @@ const K = {
|
|
|
1470
1470
|
cache: !1,
|
|
1471
1471
|
get() {
|
|
1472
1472
|
let e;
|
|
1473
|
-
return
|
|
1473
|
+
return j(D(this.schema, "get")) ? e = this.schema.get(this.model) : e = D(this.model, this.schema.model), this.formatValueToField(e);
|
|
1474
1474
|
},
|
|
1475
1475
|
set(e) {
|
|
1476
1476
|
const t = this.value;
|
|
1477
|
-
e = this.formatValueToModel(e),
|
|
1477
|
+
e = this.formatValueToModel(e), j(e) ? e(e, t) : this.updateModelValue(e, t);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
},
|
|
@@ -1492,7 +1492,7 @@ const K = {
|
|
|
1492
1492
|
n.push(i(this.value, this.schema, this.model));
|
|
1493
1493
|
else {
|
|
1494
1494
|
const o = i(this.value, this.schema, this.model);
|
|
1495
|
-
o &&
|
|
1495
|
+
o && j(o.then) ? o.then((a) => {
|
|
1496
1496
|
a && (this.errors = this.errors.concat(a));
|
|
1497
1497
|
const l = this.errors.length === 0;
|
|
1498
1498
|
this.$emit("validated", l, this.errors, this);
|
|
@@ -1504,21 +1504,21 @@ const K = {
|
|
|
1504
1504
|
let i = [];
|
|
1505
1505
|
ae(_i(s), (a) => {
|
|
1506
1506
|
Array.isArray(a) && a.length > 0 ? i = i.concat(a) : Ve(a) && i.push(a);
|
|
1507
|
-
}),
|
|
1507
|
+
}), j(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;
|
|
1510
1510
|
};
|
|
1511
1511
|
return t ? Promise.all(n).then(r) : r(n);
|
|
1512
1512
|
},
|
|
1513
1513
|
debouncedValidate() {
|
|
1514
|
-
|
|
1514
|
+
j(this.debouncedValidateFunc) || (this.debouncedValidateFunc = st(
|
|
1515
1515
|
this.validate.bind(this),
|
|
1516
1516
|
D(this.schema, "validateDebounceTime", D(this.formOptions, "validateDebounceTime", 500))
|
|
1517
1517
|
)), this.debouncedValidateFunc();
|
|
1518
1518
|
},
|
|
1519
1519
|
updateModelValue(e, t) {
|
|
1520
1520
|
let n = !1;
|
|
1521
|
-
|
|
1521
|
+
j(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), j(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), D(this.formOptions, "validateAfterChanged", !1) === !0 && (D(this.schema, "validateDebounceTime", D(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
|
|
1522
1522
|
},
|
|
1523
1523
|
clearValidationErrors() {
|
|
1524
1524
|
this.errors.splice(0);
|
|
@@ -1566,7 +1566,7 @@ const K = {
|
|
|
1566
1566
|
}, xl = ["id", "autocomplete", "disabled", "name", "required"];
|
|
1567
1567
|
function Wl(e, t, n, r, s, i) {
|
|
1568
1568
|
const o = De("attributes");
|
|
1569
|
-
return
|
|
1569
|
+
return B((d(), m("input", {
|
|
1570
1570
|
id: e.getFieldID(e.schema),
|
|
1571
1571
|
type: "checkbox",
|
|
1572
1572
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
@@ -1593,7 +1593,7 @@ function qn(e) {
|
|
|
1593
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
1595
|
const o = De("attributes");
|
|
1596
|
-
return
|
|
1596
|
+
return B((d(), m("div", Xl, [
|
|
1597
1597
|
e.schema.listBox ? (d(), m("div", {
|
|
1598
1598
|
key: 0,
|
|
1599
1599
|
class: "listbox form-control",
|
|
@@ -1603,7 +1603,7 @@ function ad(e, t, n, r, s, i) {
|
|
|
1603
1603
|
class: H(["list-row", { "is-checked": i.isItemChecked(a) }])
|
|
1604
1604
|
}, [
|
|
1605
1605
|
u("label", null, [
|
|
1606
|
-
|
|
1606
|
+
B(u("input", {
|
|
1607
1607
|
id: e.getFieldID(e.schema, !0),
|
|
1608
1608
|
type: "checkbox",
|
|
1609
1609
|
checked: i.isItemChecked(a) || null,
|
|
@@ -1634,7 +1634,7 @@ function ad(e, t, n, r, s, i) {
|
|
|
1634
1634
|
class: H(["list-row", { "is-checked": i.isItemChecked(a) }])
|
|
1635
1635
|
}, [
|
|
1636
1636
|
u("label", null, [
|
|
1637
|
-
|
|
1637
|
+
B(u("input", {
|
|
1638
1638
|
id: e.getFieldID(e.schema, !0),
|
|
1639
1639
|
type: "checkbox",
|
|
1640
1640
|
checked: i.isItemChecked(a) || null,
|
|
@@ -1715,11 +1715,11 @@ function dd(e) {
|
|
|
1715
1715
|
get() {
|
|
1716
1716
|
var I, y;
|
|
1717
1717
|
let w;
|
|
1718
|
-
return
|
|
1718
|
+
return j(D(e.schema, "get")) ? w = e.schema.get((I = e.model) == null ? void 0 : I.value) : w = D((y = e.model) == null ? void 0 : y.value, e.schema.model), L(w);
|
|
1719
1719
|
},
|
|
1720
1720
|
set(w) {
|
|
1721
1721
|
const I = s;
|
|
1722
|
-
w = V(w),
|
|
1722
|
+
w = V(w), j(w) ? w(w, I) : a(w, I);
|
|
1723
1723
|
}
|
|
1724
1724
|
}), i = (w) => {
|
|
1725
1725
|
var G;
|
|
@@ -1736,7 +1736,7 @@ function dd(e) {
|
|
|
1736
1736
|
C.push(p(s.value, e.schema, (O = e.model) == null ? void 0 : O.value));
|
|
1737
1737
|
else {
|
|
1738
1738
|
const f = p(s.value, e.schema, (x = e.model) == null ? void 0 : x.value);
|
|
1739
|
-
f &&
|
|
1739
|
+
f && j(f.then) ? f.then((_) => {
|
|
1740
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 });
|
|
@@ -1749,7 +1749,7 @@ function dd(e) {
|
|
|
1749
1749
|
let p = [];
|
|
1750
1750
|
if (ae(_i(b), (f) => {
|
|
1751
1751
|
Array.isArray(f) && f.length > 0 ? p = p.concat(f) : Ve(f) && p.push(f);
|
|
1752
|
-
}),
|
|
1752
|
+
}), j((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
|
}
|
|
@@ -1757,14 +1757,14 @@ function dd(e) {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
return y ? Promise.all(C).then(Y) : Y(C);
|
|
1759
1759
|
}, o = () => {
|
|
1760
|
-
|
|
1760
|
+
j(n.value) ? n.value() : n.value = st(
|
|
1761
1761
|
i,
|
|
1762
1762
|
D(e.schema, "validateDebounceTime", D(e.formOptions, "validateDebounceTime", 500))
|
|
1763
1763
|
);
|
|
1764
1764
|
}, a = (w, I) => {
|
|
1765
1765
|
var C, Y, G;
|
|
1766
1766
|
let y = !1;
|
|
1767
|
-
|
|
1767
|
+
j(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 }), j(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) => {
|
|
@@ -1875,7 +1875,7 @@ const ki = {
|
|
|
1875
1875
|
c.value = C, o(C, y);
|
|
1876
1876
|
}, w = ve(null), I = () => {
|
|
1877
1877
|
var y;
|
|
1878
|
-
|
|
1878
|
+
j(w.value) && ((y = w.value) == null || y.flush());
|
|
1879
1879
|
};
|
|
1880
1880
|
return Hn(() => {
|
|
1881
1881
|
switch (h.value) {
|
|
@@ -1987,14 +1987,14 @@ const ki = {
|
|
|
1987
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
1989
|
const o = De("attributes");
|
|
1990
|
-
return
|
|
1990
|
+
return B((d(), m("div", {
|
|
1991
1991
|
class: "radio-list",
|
|
1992
1992
|
disabled: e.disabled || null
|
|
1993
1993
|
}, [
|
|
1994
|
-
(d(!0), m(q, null, Z(i.items, (a) =>
|
|
1994
|
+
(d(!0), m(q, null, Z(i.items, (a) => B((d(), m("label", {
|
|
1995
1995
|
class: H(i.getItemCssClasses(a))
|
|
1996
1996
|
}, [
|
|
1997
|
-
|
|
1997
|
+
B(u("input", {
|
|
1998
1998
|
id: e.getFieldID(e.schema, !0),
|
|
1999
1999
|
type: "radio",
|
|
2000
2000
|
disabled: i.isItemDisabled(a) || null,
|
|
@@ -2063,7 +2063,7 @@ const yd = {
|
|
|
2063
2063
|
if (this.disabled)
|
|
2064
2064
|
return !0;
|
|
2065
2065
|
const t = D(e, "disabled", !1);
|
|
2066
|
-
return
|
|
2066
|
+
return j(t) ? t(this.model) : t;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
2069
|
}, vd = /* @__PURE__ */ N(yd, [["render", gd]]);
|
|
@@ -2181,9 +2181,9 @@ function Rd(e, t, n, r, s, i) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
return i.delete(e), i.delete(t), w;
|
|
2183
2183
|
}
|
|
2184
|
-
var
|
|
2184
|
+
var jd = 1, Rn = "[object Arguments]", jn = "[object Array]", dt = "[object Object]", Bd = Object.prototype, Bn = Bd.hasOwnProperty;
|
|
2185
2185
|
function Kd(e, t, n, r, s, i) {
|
|
2186
|
-
var o = ue(e), a = ue(t), l = o ?
|
|
2186
|
+
var o = ue(e), a = ue(t), l = o ? jn : Ge(e), c = a ? jn : Ge(t);
|
|
2187
2187
|
l = l == Rn ? dt : l, c = c == Rn ? dt : c;
|
|
2188
2188
|
var h = l == dt, g = c == dt, v = l == c;
|
|
2189
2189
|
if (v && nt(e)) {
|
|
@@ -2193,8 +2193,8 @@ function Kd(e, t, n, r, s, i) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
if (v && !h)
|
|
2195
2195
|
return i || (i = new ye()), o || zt(e) ? Fi(e, t, n, r, s, i) : Vd(e, t, l, n, r, s, i);
|
|
2196
|
-
if (!(n &
|
|
2197
|
-
var L = h &&
|
|
2196
|
+
if (!(n & jd)) {
|
|
2197
|
+
var L = h && Bn.call(e, "__wrapped__"), V = g && Bn.call(t, "__wrapped__");
|
|
2198
2198
|
if (L || V) {
|
|
2199
2199
|
var w = L ? e.value() : e, I = V ? t.value() : t;
|
|
2200
2200
|
return i || (i = new ye()), s(w, I, n, r, i);
|
|
@@ -2263,7 +2263,7 @@ function Zd(e, t, n) {
|
|
|
2263
2263
|
break;
|
|
2264
2264
|
e = e[o];
|
|
2265
2265
|
}
|
|
2266
|
-
return i || ++r != s ? i : (s = e == null ? 0 : e.length, !!s &&
|
|
2266
|
+
return i || ++r != s ? i : (s = e == null ? 0 : e.length, !!s && Bt(s) && jt(o, s) && (ue(e) || Rt(e)));
|
|
2267
2267
|
}
|
|
2268
2268
|
function Jd(e, t) {
|
|
2269
2269
|
return e != null && Zd(e, t, Wd);
|
|
@@ -2316,7 +2316,7 @@ 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
2318
|
const o = De("attributes");
|
|
2319
|
-
return
|
|
2319
|
+
return B((d(), m("select", {
|
|
2320
2320
|
class: H(["form-control", e.schema.fieldClasses]),
|
|
2321
2321
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
2322
2322
|
disabled: e.disabled || null,
|
|
@@ -2440,17 +2440,17 @@ const Su = {
|
|
|
2440
2440
|
if (this.schema.validateBeforeSubmit === !0) {
|
|
2441
2441
|
e.preventDefault();
|
|
2442
2442
|
const t = D(this.formOptions, "validateAsync", !1), n = this.vfg.validate(), r = (s) => {
|
|
2443
|
-
t && !bu(s) || !t && !s ?
|
|
2443
|
+
t && !bu(s) || !t && !s ? j(this.schema.onValidationError) && this.schema.onValidationError(this.model, this.schema, s, e) : j(this.schema.onSubmit) && this.schema.onSubmit(this.model, this.schema, e);
|
|
2444
2444
|
};
|
|
2445
|
-
n &&
|
|
2445
|
+
n && j(n.then) ? n.then(r) : r(n);
|
|
2446
2446
|
} else
|
|
2447
|
-
|
|
2447
|
+
j(this.schema.onSubmit) && this.schema.onSubmit(this.model, this.schema, e);
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
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
2452
|
const o = De("attributes");
|
|
2453
|
-
return
|
|
2453
|
+
return B((d(), m("textarea", {
|
|
2454
2454
|
class: H(["form-control", e.schema.fieldClasses]),
|
|
2455
2455
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
2456
2456
|
id: e.getFieldID(e.schema),
|
|
@@ -2472,8 +2472,8 @@ const Cu = {
|
|
|
2472
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
2474
|
const o = De("attributes");
|
|
2475
|
-
return
|
|
2476
|
-
|
|
2475
|
+
return B((d(), m("div", Iu, [
|
|
2476
|
+
B(u("input", {
|
|
2477
2477
|
class: "form-control",
|
|
2478
2478
|
id: e.getFieldID(e.schema),
|
|
2479
2479
|
type: "file",
|
|
@@ -2496,7 +2496,7 @@ const ku = {
|
|
|
2496
2496
|
mixins: [K],
|
|
2497
2497
|
methods: {
|
|
2498
2498
|
onChange(e) {
|
|
2499
|
-
|
|
2499
|
+
j(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, this.schema, e, this);
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
}, Eu = /* @__PURE__ */ N(ku, [["render", Ou]]), Fu = ["value", "autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
@@ -2581,7 +2581,7 @@ const Nu = {
|
|
|
2581
2581
|
], -1);
|
|
2582
2582
|
function Du(e, t, n, r, s, i) {
|
|
2583
2583
|
return d(), m("div", Vu, [
|
|
2584
|
-
|
|
2584
|
+
B(u("input", {
|
|
2585
2585
|
class: "form-control",
|
|
2586
2586
|
type: "text",
|
|
2587
2587
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2625,9 +2625,9 @@ const Kn = "YYYY-MM-DD HH:mm:ss", Ru = {
|
|
|
2625
2625
|
},
|
|
2626
2626
|
...qi
|
|
2627
2627
|
}
|
|
2628
|
-
},
|
|
2628
|
+
}, ju = /* @__PURE__ */ N(Ru, [["render", Du]]), Bu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2629
2629
|
function Ku(e, t, n, r, s, i) {
|
|
2630
|
-
return
|
|
2630
|
+
return B((d(), m("input", {
|
|
2631
2631
|
class: "form-control",
|
|
2632
2632
|
type: "text",
|
|
2633
2633
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2639,7 +2639,7 @@ function Ku(e, t, n, r, s, i) {
|
|
|
2639
2639
|
debounce: "500",
|
|
2640
2640
|
onFocus: t[1] || (t[1] = (o) => i.geolocate()),
|
|
2641
2641
|
id: e.getFieldID(e.schema)
|
|
2642
|
-
}, null, 40,
|
|
2642
|
+
}, null, 40, Bu)), [
|
|
2643
2643
|
[he, e.value]
|
|
2644
2644
|
]);
|
|
2645
2645
|
}
|
|
@@ -2685,7 +2685,7 @@ const zu = {
|
|
|
2685
2685
|
const r = e.address_components[n].types[0];
|
|
2686
2686
|
this.inputs[r] && (t[r] = e.address_components[n][this.inputs[r]]);
|
|
2687
2687
|
}
|
|
2688
|
-
|
|
2688
|
+
j(this.schema.onPlaceChanged) && this.schema.onPlaceChanged(this.value, t, e, this.model, this.schema);
|
|
2689
2689
|
}
|
|
2690
2690
|
},
|
|
2691
2691
|
/**
|
|
@@ -2708,7 +2708,7 @@ const zu = {
|
|
|
2708
2708
|
}, Hu = /* @__PURE__ */ N(zu, [["render", Ku]]), 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
|
-
|
|
2711
|
+
B(u("input", {
|
|
2712
2712
|
class: "form-control link",
|
|
2713
2713
|
type: "text",
|
|
2714
2714
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => i.wrappedValue = o),
|
|
@@ -2782,7 +2782,7 @@ const Zu = {
|
|
|
2782
2782
|
}
|
|
2783
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
|
-
return
|
|
2785
|
+
return B((d(), m("input", {
|
|
2786
2786
|
class: "form-control",
|
|
2787
2787
|
type: "text",
|
|
2788
2788
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2874,7 +2874,7 @@ function rc(e, t, n, r, s, i) {
|
|
|
2874
2874
|
}
|
|
2875
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
|
-
return
|
|
2877
|
+
return B((d(), m("input", {
|
|
2878
2878
|
class: "form-control",
|
|
2879
2879
|
type: "text",
|
|
2880
2880
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2983,7 +2983,7 @@ const hc = {
|
|
|
2983
2983
|
}
|
|
2984
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
|
-
return
|
|
2986
|
+
return B((d(), m("select", {
|
|
2987
2987
|
class: "selectpicker",
|
|
2988
2988
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
2989
2989
|
disabled: e.disabled || null,
|
|
@@ -3130,7 +3130,7 @@ const Ic = {
|
|
|
3130
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
|
-
|
|
3133
|
+
B(u("input", {
|
|
3134
3134
|
type: "checkbox",
|
|
3135
3135
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
3136
3136
|
autocomplete: e.schema.autocomplete,
|
|
@@ -3193,14 +3193,14 @@ 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"],
|
|
3196
|
+
}, Vc = { key: 0 }, Pc = { key: 1 }, qc = ["id"], Dc = { key: 0 }, Rc = ["onUpdate:modelValue"], jc = { key: 1 }, Bc = ["onUpdate:modelValue"], Kc = { key: 2 }, zc = ["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
3198
|
Gc,
|
|
3199
3199
|
xc
|
|
3200
3200
|
];
|
|
3201
3201
|
function Zc(e, t, n, r, s, i) {
|
|
3202
3202
|
const o = F("vue-form-generator"), a = De("attributes");
|
|
3203
|
-
return
|
|
3203
|
+
return B((d(), m("div", null, [
|
|
3204
3204
|
e.schema.schema ? (d(), m("div", Vc, [
|
|
3205
3205
|
T(o, {
|
|
3206
3206
|
model: e.value,
|
|
@@ -3215,23 +3215,23 @@ function Zc(e, t, n, r, s, i) {
|
|
|
3215
3215
|
(d(!0), m(q, null, Z(e.value, (l, c) => (d(), m("tr", { key: c }, [
|
|
3216
3216
|
u("td", null, A(c), 1),
|
|
3217
3217
|
s.keyTypes[c] === "string" ? (d(), m("td", Dc, [
|
|
3218
|
-
|
|
3218
|
+
B(u("input", {
|
|
3219
3219
|
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3220
3220
|
type: "text"
|
|
3221
3221
|
}, null, 8, Rc), [
|
|
3222
3222
|
[he, e.value[c]]
|
|
3223
3223
|
])
|
|
3224
3224
|
])) : M("", !0),
|
|
3225
|
-
s.keyTypes[c] === "boolean" ? (d(), m("td",
|
|
3226
|
-
|
|
3225
|
+
s.keyTypes[c] === "boolean" ? (d(), m("td", jc, [
|
|
3226
|
+
B(u("input", {
|
|
3227
3227
|
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3228
3228
|
type: "checkbox"
|
|
3229
|
-
}, null, 8,
|
|
3229
|
+
}, null, 8, Bc), [
|
|
3230
3230
|
[Pt, e.value[c]]
|
|
3231
3231
|
])
|
|
3232
3232
|
])) : M("", !0),
|
|
3233
3233
|
s.keyTypes[c] === "number" ? (d(), m("td", Kc, [
|
|
3234
|
-
|
|
3234
|
+
B(u("input", {
|
|
3235
3235
|
"onUpdate:modelValue": (h) => e.value[c] = h,
|
|
3236
3236
|
type: "number"
|
|
3237
3237
|
}, null, 8, zc), [
|
|
@@ -3247,12 +3247,12 @@ function Zc(e, t, n, r, s, i) {
|
|
|
3247
3247
|
])
|
|
3248
3248
|
]))), 128))
|
|
3249
3249
|
], 10, qc),
|
|
3250
|
-
|
|
3250
|
+
B(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
|
-
|
|
3255
|
+
B(u("input", {
|
|
3256
3256
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => s.newKeyName = l),
|
|
3257
3257
|
type: "text"
|
|
3258
3258
|
}, null, 512), [
|
|
@@ -3273,7 +3273,7 @@ const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) =>
|
|
|
3273
3273
|
for (const [r, s] of t)
|
|
3274
3274
|
n[r] = s;
|
|
3275
3275
|
return n;
|
|
3276
|
-
}, Jc = (e) => (Se("data-v-
|
|
3276
|
+
}, Jc = (e) => (Se("data-v-f89f0eca"), e = e(), Te(), e), Xc = ["aria-hidden"], Qc = {
|
|
3277
3277
|
key: 0,
|
|
3278
3278
|
"data-testid": "kui-icon-svg-title"
|
|
3279
3279
|
}, em = /* @__PURE__ */ Jc(() => /* @__PURE__ */ u("path", {
|
|
@@ -3372,7 +3372,7 @@ const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) =>
|
|
|
3372
3372
|
_: 1
|
|
3373
3373
|
}, 8, ["aria-hidden", "style"]));
|
|
3374
3374
|
}
|
|
3375
|
-
}), Ri = /* @__PURE__ */ Xt(tm, [["__scopeId", "data-v-
|
|
3375
|
+
}), Ri = /* @__PURE__ */ Xt(tm, [["__scopeId", "data-v-f89f0eca"]]), nm = (e) => (Se("data-v-b55d654f"), e = e(), Te(), e), im = ["aria-hidden"], rm = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
"data-testid": "kui-icon-svg-title"
|
|
3378
3378
|
}, sm = /* @__PURE__ */ nm(() => /* @__PURE__ */ u("path", {
|
|
@@ -3471,7 +3471,7 @@ const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) =>
|
|
|
3471
3471
|
_: 1
|
|
3472
3472
|
}, 8, ["aria-hidden", "style"]));
|
|
3473
3473
|
}
|
|
3474
|
-
}), om = /* @__PURE__ */ Xt(am, [["__scopeId", "data-v-
|
|
3474
|
+
}), om = /* @__PURE__ */ Xt(am, [["__scopeId", "data-v-b55d654f"]]), lm = (e) => (Se("data-v-6f1d5389"), e = e(), Te(), e), dm = ["aria-hidden"], um = {
|
|
3475
3475
|
key: 0,
|
|
3476
3476
|
"data-testid": "kui-icon-svg-title"
|
|
3477
3477
|
}, cm = /* @__PURE__ */ lm(() => /* @__PURE__ */ u("path", {
|
|
@@ -3570,7 +3570,7 @@ const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) =>
|
|
|
3570
3570
|
_: 1
|
|
3571
3571
|
}, 8, ["aria-hidden", "style"]));
|
|
3572
3572
|
}
|
|
3573
|
-
}), lt = /* @__PURE__ */ Xt(mm, [["__scopeId", "data-v-
|
|
3573
|
+
}), lt = /* @__PURE__ */ Xt(mm, [["__scopeId", "data-v-6f1d5389"]]), hm = {
|
|
3574
3574
|
components: {
|
|
3575
3575
|
TrashIcon: lt
|
|
3576
3576
|
},
|
|
@@ -3656,10 +3656,10 @@ const Di = /* @__PURE__ */ N(Lc, [["render", Zc]]), xe = "24px", Xt = (e, t) =>
|
|
|
3656
3656
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
3657
3657
|
}
|
|
3658
3658
|
}
|
|
3659
|
-
},
|
|
3659
|
+
}, ji = (e) => (Se("data-v-b35063fd"), e = e(), Te(), e), fm = ["id"], pm = ["data-testid"], gm = { class: "item-wrapper" }, ym = { class: "index-wrapper" }, vm = /* @__PURE__ */ ji(() => /* @__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__ */
|
|
3662
|
+
}, Tm = /* @__PURE__ */ ji(() => /* @__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
|
};
|
|
@@ -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
|
-
|
|
3704
|
+
B(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,
|
|
@@ -3720,7 +3720,7 @@ function Im(e, t, n, r, s, i) {
|
|
|
3720
3720
|
class: H(["input-wrapper", { indent: i.hasObjectKeys }])
|
|
3721
3721
|
}, [
|
|
3722
3722
|
u("div", $m, [
|
|
3723
|
-
|
|
3723
|
+
B(u("input", {
|
|
3724
3724
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => s.newKeyName = c),
|
|
3725
3725
|
class: "form-control",
|
|
3726
3726
|
"data-testid": "keyname-input",
|
|
@@ -3745,7 +3745,7 @@ function Im(e, t, n, r, s, i) {
|
|
|
3745
3745
|
], 2)
|
|
3746
3746
|
], 10, fm);
|
|
3747
3747
|
}
|
|
3748
|
-
const
|
|
3748
|
+
const Bi = /* @__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: {
|
|
@@ -3970,10 +3970,10 @@ const Rm = {
|
|
|
3970
3970
|
return t ? e[t] : e.id;
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
},
|
|
3973
|
+
}, jm = { class: "field-wrap autosuggest" }, Bm = ["data-testid", "data-testlabel"], Km = ["data-testid"], zm = { class: "autosuggest__results_message" };
|
|
3974
3974
|
function Hm(e, t, n, r, s, i) {
|
|
3975
3975
|
const o = F("KSelect");
|
|
3976
|
-
return d(), m("div",
|
|
3976
|
+
return d(), m("div", jm, [
|
|
3977
3977
|
T(o, {
|
|
3978
3978
|
id: e.schema.model,
|
|
3979
3979
|
ref: "suggestion",
|
|
@@ -3994,7 +3994,7 @@ function Hm(e, t, n, r, s, i) {
|
|
|
3994
3994
|
class: "first-part",
|
|
3995
3995
|
"data-testid": a.id && `${a.id}-0`,
|
|
3996
3996
|
"data-testlabel": a.label
|
|
3997
|
-
}, A(i.getSuggestionLabel(a).split(" - ")[0]), 9,
|
|
3997
|
+
}, A(i.getSuggestionLabel(a).split(" - ")[0]), 9, Bm),
|
|
3998
3998
|
(d(!0), m(q, null, Z(i.getSuggestionLabel(a).split(" - ").slice(1), (l, c) => (d(), m("span", {
|
|
3999
3999
|
key: c,
|
|
4000
4000
|
class: "field-span",
|
|
@@ -4095,7 +4095,7 @@ const xi = /* @__PURE__ */ N(xm, [["render", Xm], ["__scopeId", "data-v-7e49acd6
|
|
|
4095
4095
|
FieldSelect: Vi,
|
|
4096
4096
|
FieldMetric: Hi,
|
|
4097
4097
|
FieldObject: Di,
|
|
4098
|
-
FieldObjectAdvanced:
|
|
4098
|
+
FieldObjectAdvanced: Bi,
|
|
4099
4099
|
FieldAutoSuggest: Yi,
|
|
4100
4100
|
FieldRadio: xi,
|
|
4101
4101
|
FieldArrayCardContainer: Gi,
|
|
@@ -4200,7 +4200,7 @@ function ah(e, t, n, r, s, i) {
|
|
|
4200
4200
|
ref_for: !0
|
|
4201
4201
|
}, e.schema.inputAttributes, {
|
|
4202
4202
|
type: e.schema.inputAttributes && e.schema.inputAttributes.type || "text"
|
|
4203
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "aria-labelledby", "type"])) :
|
|
4203
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "aria-labelledby", "type"])) : B((d(), m("input", Ue({
|
|
4204
4204
|
key: 2,
|
|
4205
4205
|
"onUpdate:modelValue": (v) => e.value[h] = v,
|
|
4206
4206
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
@@ -4221,7 +4221,7 @@ function ah(e, t, n, r, s, i) {
|
|
|
4221
4221
|
];
|
|
4222
4222
|
}),
|
|
4223
4223
|
_: 2
|
|
4224
|
-
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) :
|
|
4224
|
+
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : B((d(), m("input", Ue({
|
|
4225
4225
|
key: 3,
|
|
4226
4226
|
ref_for: !0
|
|
4227
4227
|
}, e.schema.inputAttributes, {
|
|
@@ -4357,7 +4357,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4357
4357
|
u("label", {
|
|
4358
4358
|
class: H(["k-label", `${a.label}-check`])
|
|
4359
4359
|
}, [
|
|
4360
|
-
|
|
4360
|
+
B(u("input", {
|
|
4361
4361
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => s.checkedGroup = c),
|
|
4362
4362
|
class: "k-input",
|
|
4363
4363
|
type: "radio",
|
|
@@ -4375,7 +4375,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4375
4375
|
key: l,
|
|
4376
4376
|
class: "option-group"
|
|
4377
4377
|
}, [
|
|
4378
|
-
|
|
4378
|
+
B(u("div", bh, [
|
|
4379
4379
|
u("div", _h, [
|
|
4380
4380
|
T(o, {
|
|
4381
4381
|
model: e.model,
|
|
@@ -4396,7 +4396,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4396
4396
|
u("label", {
|
|
4397
4397
|
class: H(["k-label", `${a.label}-check`])
|
|
4398
4398
|
}, [
|
|
4399
|
-
|
|
4399
|
+
B(u("input", {
|
|
4400
4400
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => s.checkedGroup = c),
|
|
4401
4401
|
class: "k-input",
|
|
4402
4402
|
type: "radio",
|
|
@@ -4408,7 +4408,7 @@ function Ch(e, t, n, r, s, i) {
|
|
|
4408
4408
|
u("div", Th, A(a.description), 1)
|
|
4409
4409
|
], 2)
|
|
4410
4410
|
]),
|
|
4411
|
-
|
|
4411
|
+
B(u("div", $h, [
|
|
4412
4412
|
u("div", Mh, [
|
|
4413
4413
|
T(o, {
|
|
4414
4414
|
model: e.model,
|
|
@@ -4560,7 +4560,7 @@ const Vh = /* @__PURE__ */ N(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4560
4560
|
FieldCheckbox: Zl,
|
|
4561
4561
|
FieldChecklist: ld,
|
|
4562
4562
|
FieldCleave: Lu,
|
|
4563
|
-
FieldDateTimePicker:
|
|
4563
|
+
FieldDateTimePicker: ju,
|
|
4564
4564
|
FieldGoogleAddress: Hu,
|
|
4565
4565
|
FieldImage: Ju,
|
|
4566
4566
|
FieldInput: Ei,
|
|
@@ -4571,7 +4571,7 @@ const Vh = /* @__PURE__ */ N(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4571
4571
|
FieldMultiselect: kh,
|
|
4572
4572
|
FieldNoUiSlider: sc,
|
|
4573
4573
|
FieldObject: Di,
|
|
4574
|
-
FieldObjectAdvanced:
|
|
4574
|
+
FieldObjectAdvanced: Bi,
|
|
4575
4575
|
FieldPikaday: uc,
|
|
4576
4576
|
FieldRadio: xi,
|
|
4577
4577
|
FieldRadios: vd,
|
|
@@ -4663,7 +4663,7 @@ const Vh = /* @__PURE__ */ N(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4663
4663
|
},
|
|
4664
4664
|
// Get current hint.
|
|
4665
4665
|
fieldHint(e) {
|
|
4666
|
-
return
|
|
4666
|
+
return j(e.hint) ? e.hint.call(this, this.model, e, this) : e.hint;
|
|
4667
4667
|
},
|
|
4668
4668
|
fieldErrors(e) {
|
|
4669
4669
|
return this.errors.filter((t) => t.field.fieldName === e.fieldName).map((t) => t.error);
|
|
@@ -4683,7 +4683,7 @@ const Vh = /* @__PURE__ */ N(Eh, [["render", Lh], ["__scopeId", "data-v-29d15375
|
|
|
4683
4683
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
4684
4684
|
}
|
|
4685
4685
|
}
|
|
4686
|
-
}, Dh = (e) => (Se("data-v-02e656fb"), e = e(), Te(), e), Rh = ["innerHTML"],
|
|
4686
|
+
}, Dh = (e) => (Se("data-v-02e656fb"), e = e(), Te(), e), Rh = ["innerHTML"], jh = { class: "icon-wrapper" }, Bh = ["innerHTML"], Kh = {
|
|
4687
4687
|
key: 0,
|
|
4688
4688
|
class: "link-wrapper"
|
|
4689
4689
|
}, zh = /* @__PURE__ */ Dh(() => /* @__PURE__ */ u("span", { class: "section-header" }, "More info", -1)), Hh = { class: "field-wrap" }, Yh = {
|
|
@@ -4711,10 +4711,10 @@ function Jh(e, t, n, r, s, i) {
|
|
|
4711
4711
|
} : void 0
|
|
4712
4712
|
}, Yn({
|
|
4713
4713
|
default: S(() => [
|
|
4714
|
-
u("div",
|
|
4714
|
+
u("div", jh, [
|
|
4715
4715
|
u("span", {
|
|
4716
4716
|
innerHTML: i.formattedLabel(n.field.label)
|
|
4717
|
-
}, null, 8,
|
|
4717
|
+
}, null, 8, Bh)
|
|
4718
4718
|
]),
|
|
4719
4719
|
n.field.link ? (d(), m("div", Kh, [
|
|
4720
4720
|
T(o, {
|
|
@@ -4863,7 +4863,7 @@ const Xh = /* @__PURE__ */ N(qh, [["render", Jh], ["__scopeId", "data-v-02e656fb
|
|
|
4863
4863
|
methods: {
|
|
4864
4864
|
// Get visible prop of field
|
|
4865
4865
|
fieldVisible(e) {
|
|
4866
|
-
return
|
|
4866
|
+
return j(e.visible) ? e.visible.call(this, this.model, e, this) : ne(e.visible) ? !0 : e.visible;
|
|
4867
4867
|
},
|
|
4868
4868
|
// Child field executed validation
|
|
4869
4869
|
onFieldValidated(e, t, n) {
|
|
@@ -4884,7 +4884,7 @@ const Xh = /* @__PURE__ */ N(qh, [["render", Jh], ["__scopeId", "data-v-02e656fb
|
|
|
4884
4884
|
e === null && (e = D(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
4885
4885
|
const t = [], n = [];
|
|
4886
4886
|
ae(this.$refs.children, (s) => {
|
|
4887
|
-
|
|
4887
|
+
j(s.validate) && (t.push(s.$refs.child), n.push(s.$refs.child.validate(!0)));
|
|
4888
4888
|
});
|
|
4889
4889
|
const r = (s) => {
|
|
4890
4890
|
const i = [];
|
|
@@ -5893,13 +5893,13 @@ const Sf = /* @__PURE__ */ N(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
5893
5893
|
disabled: !1
|
|
5894
5894
|
}
|
|
5895
5895
|
]
|
|
5896
|
-
},
|
|
5896
|
+
}, Be = (e) => (Se("data-v-136dc132"), e = e(), Te(), e), Ff = { class: "general-settings" }, Uf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5897
5897
|
/* @__PURE__ */ u("span", { class: "section-header" }, "General Configuration Settings")
|
|
5898
|
-
], -1)), Nf = /* @__PURE__ */
|
|
5898
|
+
], -1)), Nf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), Lf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("hr", null, null, -1)), Vf = { class: "sub-form" }, Pf = { class: "general-settings" }, qf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5899
5899
|
/* @__PURE__ */ u("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5900
|
-
], -1)), Df = /* @__PURE__ */
|
|
5900
|
+
], -1)), Df = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "description" }, " Parameters for setting up storage. ", -1)), Rf = { class: "sub-form" }, jf = { class: "general-settings" }, Bf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "header-wrapper" }, [
|
|
5901
5901
|
/* @__PURE__ */ u("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5902
|
-
], -1)), Kf = /* @__PURE__ */
|
|
5902
|
+
], -1)), Kf = /* @__PURE__ */ Be(() => /* @__PURE__ */ u("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), zf = /* @__PURE__ */ fe({
|
|
5903
5903
|
__name: "ACMEForm",
|
|
5904
5904
|
props: {
|
|
5905
5905
|
formModel: {
|
|
@@ -6102,8 +6102,8 @@ const Sf = /* @__PURE__ */ N(of, [["render", wf], ["__scopeId", "data-v-e7395ff0
|
|
|
6102
6102
|
])
|
|
6103
6103
|
]),
|
|
6104
6104
|
advanced: S(() => [
|
|
6105
|
-
u("div",
|
|
6106
|
-
|
|
6105
|
+
u("div", jf, [
|
|
6106
|
+
Bf,
|
|
6107
6107
|
Kf,
|
|
6108
6108
|
I.value ? (d(), U(le, {
|
|
6109
6109
|
key: 0,
|