@kong-ui-public/forms 3.1.4 → 3.1.5-pr.1371.b47f2ade.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms.es.js +1199 -1216
- package/dist/forms.umd.js +1 -1
- package/package.json +2 -2
package/dist/forms.es.js
CHANGED
|
@@ -1,183 +1,181 @@
|
|
|
1
|
-
import { resolveDirective as Me, withDirectives as P, openBlock as d, createElementBlock as c, normalizeClass as V, vModelCheckbox as
|
|
2
|
-
import { createI18n as
|
|
3
|
-
function
|
|
1
|
+
import { resolveDirective as Me, withDirectives as P, openBlock as d, createElementBlock as c, normalizeClass as V, vModelCheckbox as St, Fragment as D, renderList as z, createElementVNode as h, createTextVNode as ee, toDisplayString as N, createCommentVNode as w, ref as ge, computed as Y, defineComponent as ce, toRefs as Mn, onMounted as In, onBeforeMount as Pi, resolveComponent as k, createVNode as E, mergeProps as Fe, unref as we, withCtx as M, vModelSelect as $t, vModelText as re, vShow as An, normalizeStyle as Ct, pushScopeId as Ie, popScopeId as Ae, createBlock as I, resolveDynamicComponent as se, renderSlot as Ne, Transition as Li, vModelDynamic as Vi, vModelRadio as Di, createSlots as On } from "vue";
|
|
2
|
+
import { createI18n as En } from "@kong-ui-public/i18n";
|
|
3
|
+
function kn(e, t) {
|
|
4
4
|
for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; )
|
|
5
5
|
;
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ji(e) {
|
|
9
9
|
return function(t, n, i) {
|
|
10
10
|
for (var a = -1, r = Object(t), o = i(t), s = o.length; s--; ) {
|
|
11
|
-
var l = o[
|
|
11
|
+
var l = o[++a];
|
|
12
12
|
if (n(r[l], l, r) === !1)
|
|
13
13
|
break;
|
|
14
14
|
}
|
|
15
15
|
return t;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
var Ri =
|
|
19
|
-
|
|
20
|
-
function Ki(e, t) {
|
|
18
|
+
var Ri = ji();
|
|
19
|
+
function Bi(e, t) {
|
|
21
20
|
for (var n = -1, i = Array(e); ++n < e; )
|
|
22
21
|
i[n] = t(n);
|
|
23
22
|
return i;
|
|
24
23
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
var t =
|
|
24
|
+
var Fn = typeof global == "object" && global && global.Object === Object && global, qi = typeof self == "object" && self && self.Object === Object && self, ae = Fn || qi || Function("return this")(), de = ae.Symbol, Un = Object.prototype, Ki = Un.hasOwnProperty, Hi = Un.toString, je = de ? de.toStringTag : void 0;
|
|
25
|
+
function Yi(e) {
|
|
26
|
+
var t = Ki.call(e, je), n = e[je];
|
|
28
27
|
try {
|
|
29
|
-
e[
|
|
28
|
+
e[je] = void 0;
|
|
30
29
|
var i = !0;
|
|
31
30
|
} catch {
|
|
32
31
|
}
|
|
33
|
-
var a =
|
|
34
|
-
return i && (t ? e[
|
|
32
|
+
var a = Hi.call(e);
|
|
33
|
+
return i && (t ? e[je] = n : delete e[je]), a;
|
|
35
34
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
35
|
+
var zi = Object.prototype, Gi = zi.toString;
|
|
36
|
+
function xi(e) {
|
|
37
|
+
return Gi.call(e);
|
|
39
38
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return e == null ? e === void 0 ?
|
|
39
|
+
var Zi = "[object Null]", Wi = "[object Undefined]", jt = de ? de.toStringTag : void 0;
|
|
40
|
+
function ye(e) {
|
|
41
|
+
return e == null ? e === void 0 ? Wi : Zi : jt && jt in Object(e) ? Yi(e) : xi(e);
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function ue(e) {
|
|
45
44
|
return e != null && typeof e == "object";
|
|
46
45
|
}
|
|
47
|
-
var
|
|
46
|
+
var Ji = "[object Arguments]";
|
|
48
47
|
function Rt(e) {
|
|
49
|
-
return
|
|
48
|
+
return ue(e) && ye(e) == Ji;
|
|
50
49
|
}
|
|
51
|
-
var
|
|
50
|
+
var Nn = Object.prototype, Xi = Nn.hasOwnProperty, Qi = Nn.propertyIsEnumerable, Mt = Rt(/* @__PURE__ */ function() {
|
|
52
51
|
return arguments;
|
|
53
52
|
}()) ? Rt : function(e) {
|
|
54
|
-
return
|
|
53
|
+
return ue(e) && Xi.call(e, "callee") && !Qi.call(e, "callee");
|
|
55
54
|
}, te = Array.isArray;
|
|
56
|
-
function
|
|
55
|
+
function er() {
|
|
57
56
|
return !1;
|
|
58
57
|
}
|
|
59
|
-
var
|
|
60
|
-
function
|
|
58
|
+
var Pn = typeof exports == "object" && exports && !exports.nodeType && exports, Bt = Pn && typeof module == "object" && module && !module.nodeType && module, tr = Bt && Bt.exports === Pn, qt = tr ? ae.Buffer : void 0, nr = qt ? qt.isBuffer : void 0, Ke = nr || er, ir = 9007199254740991, rr = /^(?:0|[1-9]\d*)$/;
|
|
59
|
+
function It(e, t) {
|
|
61
60
|
var n = typeof e;
|
|
62
|
-
return t = t ??
|
|
61
|
+
return t = t ?? ir, !!t && (n == "number" || n != "symbol" && rr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
63
62
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
63
|
+
var ar = 9007199254740991;
|
|
64
|
+
function At(e) {
|
|
65
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ar;
|
|
67
66
|
}
|
|
68
|
-
var
|
|
69
|
-
K[
|
|
70
|
-
K[
|
|
71
|
-
function
|
|
72
|
-
return
|
|
67
|
+
var sr = "[object Arguments]", or = "[object Array]", lr = "[object Boolean]", dr = "[object Date]", ur = "[object Error]", cr = "[object Function]", hr = "[object Map]", mr = "[object Number]", fr = "[object Object]", pr = "[object RegExp]", gr = "[object Set]", yr = "[object String]", br = "[object WeakMap]", vr = "[object ArrayBuffer]", _r = "[object DataView]", wr = "[object Float32Array]", Tr = "[object Float64Array]", Sr = "[object Int8Array]", $r = "[object Int16Array]", Cr = "[object Int32Array]", Mr = "[object Uint8Array]", Ir = "[object Uint8ClampedArray]", Ar = "[object Uint16Array]", Or = "[object Uint32Array]", K = {};
|
|
68
|
+
K[wr] = K[Tr] = K[Sr] = K[$r] = K[Cr] = K[Mr] = K[Ir] = K[Ar] = K[Or] = !0;
|
|
69
|
+
K[sr] = K[or] = K[vr] = K[lr] = K[_r] = K[dr] = K[ur] = K[cr] = K[hr] = K[mr] = K[fr] = K[pr] = K[gr] = K[yr] = K[br] = !1;
|
|
70
|
+
function Er(e) {
|
|
71
|
+
return ue(e) && At(e.length) && !!K[ye(e)];
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function Ot(e) {
|
|
75
74
|
return function(t) {
|
|
76
75
|
return e(t);
|
|
77
76
|
};
|
|
78
77
|
}
|
|
79
|
-
var
|
|
78
|
+
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, Re = Ln && typeof module == "object" && module && !module.nodeType && module, kr = Re && Re.exports === Ln, ut = kr && Fn.process, Pe = function() {
|
|
80
79
|
try {
|
|
81
80
|
var e = Re && Re.require && Re.require("util").types;
|
|
82
|
-
return e ||
|
|
81
|
+
return e || ut && ut.binding && ut.binding("util");
|
|
83
82
|
} catch {
|
|
84
83
|
}
|
|
85
|
-
}(),
|
|
86
|
-
function
|
|
87
|
-
var n = te(e), i = !n &&
|
|
84
|
+
}(), Kt = Pe && Pe.isTypedArray, Et = Kt ? Ot(Kt) : Er, Fr = Object.prototype, Ur = Fr.hasOwnProperty;
|
|
85
|
+
function Vn(e, t) {
|
|
86
|
+
var n = te(e), i = !n && Mt(e), a = !n && !i && Ke(e), r = !n && !i && !a && Et(e), o = n || i || a || r, s = o ? Bi(e.length, String) : [], l = s.length;
|
|
88
87
|
for (var u in e)
|
|
89
|
-
(t ||
|
|
88
|
+
(t || Ur.call(e, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
90
89
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
91
90
|
a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
92
91
|
r && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
93
|
-
|
|
92
|
+
It(u, l))) && s.push(u);
|
|
94
93
|
return s;
|
|
95
94
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
95
|
+
var Nr = Object.prototype;
|
|
96
|
+
function tt(e) {
|
|
97
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Nr;
|
|
99
98
|
return e === n;
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function Dn(e, t) {
|
|
102
101
|
return function(n) {
|
|
103
102
|
return e(t(n));
|
|
104
103
|
};
|
|
105
104
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
109
|
-
return
|
|
105
|
+
var Pr = Dn(Object.keys, Object), Lr = Object.prototype, Vr = Lr.hasOwnProperty;
|
|
106
|
+
function jn(e) {
|
|
107
|
+
if (!tt(e))
|
|
108
|
+
return Pr(e);
|
|
110
109
|
var t = [];
|
|
111
110
|
for (var n in Object(e))
|
|
112
|
-
|
|
111
|
+
Vr.call(e, n) && n != "constructor" && t.push(n);
|
|
113
112
|
return t;
|
|
114
113
|
}
|
|
115
|
-
function
|
|
114
|
+
function x(e) {
|
|
116
115
|
var t = typeof e;
|
|
117
116
|
return e != null && (t == "object" || t == "function");
|
|
118
117
|
}
|
|
119
|
-
var
|
|
118
|
+
var Dr = "[object AsyncFunction]", jr = "[object Function]", Rr = "[object GeneratorFunction]", Br = "[object Proxy]";
|
|
120
119
|
function U(e) {
|
|
121
|
-
if (!
|
|
120
|
+
if (!x(e))
|
|
122
121
|
return !1;
|
|
123
|
-
var t =
|
|
124
|
-
return t ==
|
|
122
|
+
var t = ye(e);
|
|
123
|
+
return t == jr || t == Rr || t == Dr || t == Br;
|
|
125
124
|
}
|
|
126
|
-
function
|
|
127
|
-
return e != null &&
|
|
125
|
+
function Le(e) {
|
|
126
|
+
return e != null && At(e.length) && !U(e);
|
|
128
127
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
128
|
+
function Ve(e) {
|
|
129
|
+
return Le(e) ? Vn(e) : jn(e);
|
|
131
130
|
}
|
|
132
|
-
function
|
|
133
|
-
return e &&
|
|
131
|
+
function qr(e, t) {
|
|
132
|
+
return e && Ri(e, t, Ve);
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function Kr(e, t) {
|
|
136
135
|
return function(n, i) {
|
|
137
136
|
if (n == null)
|
|
138
137
|
return n;
|
|
139
|
-
if (!
|
|
138
|
+
if (!Le(n))
|
|
140
139
|
return e(n, i);
|
|
141
|
-
for (var a = n.length, r =
|
|
140
|
+
for (var a = n.length, r = -1, o = Object(n); ++r < a && i(o[r], r, o) !== !1; )
|
|
142
141
|
;
|
|
143
142
|
return n;
|
|
144
143
|
};
|
|
145
144
|
}
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
function it(e) {
|
|
145
|
+
var Hr = Kr(qr);
|
|
146
|
+
function nt(e) {
|
|
149
147
|
return e;
|
|
150
148
|
}
|
|
151
|
-
function
|
|
152
|
-
return typeof e == "function" ? e :
|
|
149
|
+
function Yr(e) {
|
|
150
|
+
return typeof e == "function" ? e : nt;
|
|
153
151
|
}
|
|
154
152
|
function J(e, t) {
|
|
155
|
-
var n = te(e) ?
|
|
156
|
-
return n(e,
|
|
153
|
+
var n = te(e) ? kn : Hr;
|
|
154
|
+
return n(e, Yr(t));
|
|
157
155
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
return typeof e == "symbol" ||
|
|
156
|
+
var zr = "[object Symbol]";
|
|
157
|
+
function it(e) {
|
|
158
|
+
return typeof e == "symbol" || ue(e) && ye(e) == zr;
|
|
161
159
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
160
|
+
var Gr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xr = /^\w*$/;
|
|
161
|
+
function kt(e, t) {
|
|
164
162
|
if (te(e))
|
|
165
163
|
return !1;
|
|
166
164
|
var n = typeof e;
|
|
167
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
165
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || it(e) ? !0 : xr.test(e) || !Gr.test(e) || t != null && e in Object(t);
|
|
168
166
|
}
|
|
169
|
-
var
|
|
170
|
-
var e = /[^.]+$/.exec(
|
|
167
|
+
var ct = ae["__core-js_shared__"], Ht = function() {
|
|
168
|
+
var e = /[^.]+$/.exec(ct && ct.keys && ct.keys.IE_PROTO || "");
|
|
171
169
|
return e ? "Symbol(src)_1." + e : "";
|
|
172
170
|
}();
|
|
173
|
-
function
|
|
174
|
-
return !!
|
|
171
|
+
function Zr(e) {
|
|
172
|
+
return !!Ht && Ht in e;
|
|
175
173
|
}
|
|
176
|
-
var
|
|
174
|
+
var Wr = Function.prototype, Jr = Wr.toString;
|
|
177
175
|
function Oe(e) {
|
|
178
176
|
if (e != null) {
|
|
179
177
|
try {
|
|
180
|
-
return
|
|
178
|
+
return Jr.call(e);
|
|
181
179
|
} catch {
|
|
182
180
|
}
|
|
183
181
|
try {
|
|
@@ -187,48 +185,48 @@ function Oe(e) {
|
|
|
187
185
|
}
|
|
188
186
|
return "";
|
|
189
187
|
}
|
|
190
|
-
var
|
|
191
|
-
"^" +
|
|
188
|
+
var Xr = /[\\^$.*+?()[\]{}|]/g, Qr = /^\[object .+?Constructor\]$/, ea = Function.prototype, ta = Object.prototype, na = ea.toString, ia = ta.hasOwnProperty, ra = RegExp(
|
|
189
|
+
"^" + na.call(ia).replace(Xr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
192
190
|
);
|
|
193
|
-
function
|
|
194
|
-
if (!
|
|
191
|
+
function aa(e) {
|
|
192
|
+
if (!x(e) || Zr(e))
|
|
195
193
|
return !1;
|
|
196
|
-
var t = U(e) ?
|
|
194
|
+
var t = U(e) ? ra : Qr;
|
|
197
195
|
return t.test(Oe(e));
|
|
198
196
|
}
|
|
199
|
-
function
|
|
197
|
+
function sa(e, t) {
|
|
200
198
|
return e == null ? void 0 : e[t];
|
|
201
199
|
}
|
|
202
200
|
function Ee(e, t) {
|
|
203
|
-
var n =
|
|
204
|
-
return
|
|
201
|
+
var n = sa(e, t);
|
|
202
|
+
return aa(n) ? n : void 0;
|
|
205
203
|
}
|
|
206
|
-
var
|
|
207
|
-
function
|
|
208
|
-
this.__data__ =
|
|
204
|
+
var He = Ee(Object, "create");
|
|
205
|
+
function oa() {
|
|
206
|
+
this.__data__ = He ? He(null) : {}, this.size = 0;
|
|
209
207
|
}
|
|
210
|
-
function
|
|
208
|
+
function la(e) {
|
|
211
209
|
var t = this.has(e) && delete this.__data__[e];
|
|
212
210
|
return this.size -= t ? 1 : 0, t;
|
|
213
211
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
212
|
+
var da = "__lodash_hash_undefined__", ua = Object.prototype, ca = ua.hasOwnProperty;
|
|
213
|
+
function ha(e) {
|
|
216
214
|
var t = this.__data__;
|
|
217
|
-
if (
|
|
215
|
+
if (He) {
|
|
218
216
|
var n = t[e];
|
|
219
|
-
return n ===
|
|
217
|
+
return n === da ? void 0 : n;
|
|
220
218
|
}
|
|
221
|
-
return
|
|
219
|
+
return ca.call(t, e) ? t[e] : void 0;
|
|
222
220
|
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
221
|
+
var ma = Object.prototype, fa = ma.hasOwnProperty;
|
|
222
|
+
function pa(e) {
|
|
225
223
|
var t = this.__data__;
|
|
226
|
-
return
|
|
224
|
+
return He ? t[e] !== void 0 : fa.call(t, e);
|
|
227
225
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
226
|
+
var ga = "__lodash_hash_undefined__";
|
|
227
|
+
function ya(e, t) {
|
|
230
228
|
var n = this.__data__;
|
|
231
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
229
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = He && t === void 0 ? ga : t, this;
|
|
232
230
|
}
|
|
233
231
|
function Te(e) {
|
|
234
232
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -237,100 +235,100 @@ function Te(e) {
|
|
|
237
235
|
this.set(i[0], i[1]);
|
|
238
236
|
}
|
|
239
237
|
}
|
|
240
|
-
Te.prototype.clear =
|
|
241
|
-
Te.prototype.delete =
|
|
242
|
-
Te.prototype.get =
|
|
243
|
-
Te.prototype.has =
|
|
244
|
-
Te.prototype.set =
|
|
245
|
-
function
|
|
238
|
+
Te.prototype.clear = oa;
|
|
239
|
+
Te.prototype.delete = la;
|
|
240
|
+
Te.prototype.get = ha;
|
|
241
|
+
Te.prototype.has = pa;
|
|
242
|
+
Te.prototype.set = ya;
|
|
243
|
+
function ba() {
|
|
246
244
|
this.__data__ = [], this.size = 0;
|
|
247
245
|
}
|
|
248
|
-
function
|
|
246
|
+
function xe(e, t) {
|
|
249
247
|
return e === t || e !== e && t !== t;
|
|
250
248
|
}
|
|
251
|
-
function
|
|
249
|
+
function rt(e, t) {
|
|
252
250
|
for (var n = e.length; n--; )
|
|
253
|
-
if (
|
|
251
|
+
if (xe(e[n][0], t))
|
|
254
252
|
return n;
|
|
255
253
|
return -1;
|
|
256
254
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
var t = this.__data__, n =
|
|
255
|
+
var va = Array.prototype, _a = va.splice;
|
|
256
|
+
function wa(e) {
|
|
257
|
+
var t = this.__data__, n = rt(t, e);
|
|
260
258
|
if (n < 0)
|
|
261
259
|
return !1;
|
|
262
260
|
var i = t.length - 1;
|
|
263
|
-
return n == i ? t.pop() :
|
|
261
|
+
return n == i ? t.pop() : _a.call(t, n, 1), --this.size, !0;
|
|
264
262
|
}
|
|
265
|
-
function
|
|
266
|
-
var t = this.__data__, n =
|
|
263
|
+
function Ta(e) {
|
|
264
|
+
var t = this.__data__, n = rt(t, e);
|
|
267
265
|
return n < 0 ? void 0 : t[n][1];
|
|
268
266
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
267
|
+
function Sa(e) {
|
|
268
|
+
return rt(this.__data__, e) > -1;
|
|
271
269
|
}
|
|
272
|
-
function
|
|
273
|
-
var n = this.__data__, i =
|
|
270
|
+
function $a(e, t) {
|
|
271
|
+
var n = this.__data__, i = rt(n, e);
|
|
274
272
|
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
275
273
|
}
|
|
276
|
-
function
|
|
274
|
+
function he(e) {
|
|
277
275
|
var t = -1, n = e == null ? 0 : e.length;
|
|
278
276
|
for (this.clear(); ++t < n; ) {
|
|
279
277
|
var i = e[t];
|
|
280
278
|
this.set(i[0], i[1]);
|
|
281
279
|
}
|
|
282
280
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
var
|
|
289
|
-
function
|
|
281
|
+
he.prototype.clear = ba;
|
|
282
|
+
he.prototype.delete = wa;
|
|
283
|
+
he.prototype.get = Ta;
|
|
284
|
+
he.prototype.has = Sa;
|
|
285
|
+
he.prototype.set = $a;
|
|
286
|
+
var Ye = Ee(ae, "Map");
|
|
287
|
+
function Ca() {
|
|
290
288
|
this.size = 0, this.__data__ = {
|
|
291
289
|
hash: new Te(),
|
|
292
|
-
map: new (
|
|
290
|
+
map: new (Ye || he)(),
|
|
293
291
|
string: new Te()
|
|
294
292
|
};
|
|
295
293
|
}
|
|
296
|
-
function
|
|
294
|
+
function Ma(e) {
|
|
297
295
|
var t = typeof e;
|
|
298
296
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
299
297
|
}
|
|
300
|
-
function
|
|
298
|
+
function at(e, t) {
|
|
301
299
|
var n = e.__data__;
|
|
302
|
-
return
|
|
300
|
+
return Ma(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
303
301
|
}
|
|
304
|
-
function
|
|
305
|
-
var t =
|
|
302
|
+
function Ia(e) {
|
|
303
|
+
var t = at(this, e).delete(e);
|
|
306
304
|
return this.size -= t ? 1 : 0, t;
|
|
307
305
|
}
|
|
308
|
-
function
|
|
309
|
-
return
|
|
306
|
+
function Aa(e) {
|
|
307
|
+
return at(this, e).get(e);
|
|
310
308
|
}
|
|
311
|
-
function
|
|
312
|
-
return
|
|
309
|
+
function Oa(e) {
|
|
310
|
+
return at(this, e).has(e);
|
|
313
311
|
}
|
|
314
|
-
function
|
|
315
|
-
var n =
|
|
312
|
+
function Ea(e, t) {
|
|
313
|
+
var n = at(this, e), i = n.size;
|
|
316
314
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
317
315
|
}
|
|
318
|
-
function
|
|
316
|
+
function me(e) {
|
|
319
317
|
var t = -1, n = e == null ? 0 : e.length;
|
|
320
318
|
for (this.clear(); ++t < n; ) {
|
|
321
319
|
var i = e[t];
|
|
322
320
|
this.set(i[0], i[1]);
|
|
323
321
|
}
|
|
324
322
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
function
|
|
323
|
+
me.prototype.clear = Ca;
|
|
324
|
+
me.prototype.delete = Ia;
|
|
325
|
+
me.prototype.get = Aa;
|
|
326
|
+
me.prototype.has = Oa;
|
|
327
|
+
me.prototype.set = Ea;
|
|
328
|
+
var ka = "Expected a function";
|
|
329
|
+
function Ft(e, t) {
|
|
332
330
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
333
|
-
throw new TypeError(
|
|
331
|
+
throw new TypeError(ka);
|
|
334
332
|
var n = function() {
|
|
335
333
|
var i = arguments, a = t ? t.apply(this, i) : i[0], r = n.cache;
|
|
336
334
|
if (r.has(a))
|
|
@@ -338,69 +336,69 @@ function Ut(e, t) {
|
|
|
338
336
|
var o = e.apply(this, i);
|
|
339
337
|
return n.cache = r.set(a, o) || r, o;
|
|
340
338
|
};
|
|
341
|
-
return n.cache = new (
|
|
339
|
+
return n.cache = new (Ft.Cache || me)(), n;
|
|
342
340
|
}
|
|
343
|
-
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
var t =
|
|
347
|
-
return n.size ===
|
|
341
|
+
Ft.Cache = me;
|
|
342
|
+
var Fa = 500;
|
|
343
|
+
function Ua(e) {
|
|
344
|
+
var t = Ft(e, function(i) {
|
|
345
|
+
return n.size === Fa && n.clear(), i;
|
|
348
346
|
}), n = t.cache;
|
|
349
347
|
return t;
|
|
350
348
|
}
|
|
351
|
-
var
|
|
349
|
+
var Na = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pa = /\\(\\)?/g, La = Ua(function(e) {
|
|
352
350
|
var t = [];
|
|
353
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
354
|
-
t.push(a ? r.replace(
|
|
351
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Na, function(n, i, a, r) {
|
|
352
|
+
t.push(a ? r.replace(Pa, "$1") : i || n);
|
|
355
353
|
}), t;
|
|
356
354
|
});
|
|
357
|
-
function
|
|
355
|
+
function Va(e, t) {
|
|
358
356
|
for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; )
|
|
359
357
|
a[n] = t(e[n], n, e);
|
|
360
358
|
return a;
|
|
361
359
|
}
|
|
362
|
-
var
|
|
360
|
+
var Da = 1 / 0, Yt = de ? de.prototype : void 0, zt = Yt ? Yt.toString : void 0;
|
|
363
361
|
function Rn(e) {
|
|
364
362
|
if (typeof e == "string")
|
|
365
363
|
return e;
|
|
366
364
|
if (te(e))
|
|
367
|
-
return
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
365
|
+
return Va(e, Rn) + "";
|
|
366
|
+
if (it(e))
|
|
367
|
+
return zt ? zt.call(e) : "";
|
|
370
368
|
var t = e + "";
|
|
371
|
-
return t == "0" && 1 / e == -
|
|
369
|
+
return t == "0" && 1 / e == -Da ? "-0" : t;
|
|
372
370
|
}
|
|
373
|
-
function
|
|
371
|
+
function Bn(e) {
|
|
374
372
|
return e == null ? "" : Rn(e);
|
|
375
373
|
}
|
|
376
|
-
function
|
|
377
|
-
return te(e) ? e :
|
|
374
|
+
function qn(e, t) {
|
|
375
|
+
return te(e) ? e : kt(e, t) ? [e] : La(Bn(e));
|
|
378
376
|
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
381
|
-
if (typeof e == "string" ||
|
|
377
|
+
var ja = 1 / 0;
|
|
378
|
+
function st(e) {
|
|
379
|
+
if (typeof e == "string" || it(e))
|
|
382
380
|
return e;
|
|
383
381
|
var t = e + "";
|
|
384
|
-
return t == "0" && 1 / e == -
|
|
382
|
+
return t == "0" && 1 / e == -ja ? "-0" : t;
|
|
385
383
|
}
|
|
386
|
-
function
|
|
387
|
-
t =
|
|
384
|
+
function Kn(e, t) {
|
|
385
|
+
t = qn(t, e);
|
|
388
386
|
for (var n = 0, i = t.length; e != null && n < i; )
|
|
389
|
-
e = e[
|
|
387
|
+
e = e[st(t[n++])];
|
|
390
388
|
return n && n == i ? e : void 0;
|
|
391
389
|
}
|
|
392
390
|
function O(e, t, n) {
|
|
393
|
-
var i = e == null ? void 0 :
|
|
391
|
+
var i = e == null ? void 0 : Kn(e, t);
|
|
394
392
|
return i === void 0 ? n : i;
|
|
395
393
|
}
|
|
396
|
-
function
|
|
394
|
+
function G(e) {
|
|
397
395
|
return e == null;
|
|
398
396
|
}
|
|
399
|
-
var
|
|
397
|
+
var Ra = "[object String]";
|
|
400
398
|
function Se(e) {
|
|
401
|
-
return typeof e == "string" || !te(e) &&
|
|
399
|
+
return typeof e == "string" || !te(e) && ue(e) && ye(e) == Ra;
|
|
402
400
|
}
|
|
403
|
-
const
|
|
401
|
+
const Hn = {
|
|
404
402
|
methods: {
|
|
405
403
|
// Get style classes of field
|
|
406
404
|
getFieldRowClasses(e) {
|
|
@@ -412,355 +410,352 @@ const Yn = {
|
|
|
412
410
|
featured: this.fieldFeatured(e),
|
|
413
411
|
required: this.fieldRequired(e)
|
|
414
412
|
};
|
|
415
|
-
return Array.isArray(e.styleClasses) ? J(e.styleClasses, (i) => n[i] = !0) : Se(e.styleClasses) && (n[e.styleClasses] = !0),
|
|
413
|
+
return Array.isArray(e.styleClasses) ? J(e.styleClasses, (i) => n[i] = !0) : Se(e.styleClasses) && (n[e.styleClasses] = !0), G(e.type) || (n["field-" + e.type] = !0), n;
|
|
416
414
|
},
|
|
417
415
|
fieldErrors(e) {
|
|
418
416
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
419
417
|
},
|
|
420
418
|
// Get disabled attr of field
|
|
421
419
|
fieldDisabled(e) {
|
|
422
|
-
return U(e.disabled) ? e.disabled.call(this, this.model, e, this) :
|
|
420
|
+
return U(e.disabled) ? e.disabled.call(this, this.model, e, this) : G(e.disabled) ? !1 : e.disabled;
|
|
423
421
|
},
|
|
424
422
|
// Get readonly prop of field
|
|
425
423
|
fieldReadonly(e) {
|
|
426
|
-
return U(e.readonly) ? e.readonly.call(this, this.model, e, this) :
|
|
424
|
+
return U(e.readonly) ? e.readonly.call(this, this.model, e, this) : G(e.readonly) ? !1 : e.readonly;
|
|
427
425
|
},
|
|
428
426
|
// Get featured prop of field
|
|
429
427
|
fieldFeatured(e) {
|
|
430
|
-
return U(e.featured) ? e.featured.call(this, this.model, e, this) :
|
|
428
|
+
return U(e.featured) ? e.featured.call(this, this.model, e, this) : G(e.featured) ? !1 : e.featured;
|
|
431
429
|
},
|
|
432
430
|
// Get required prop of field
|
|
433
431
|
fieldRequired(e) {
|
|
434
|
-
return U(e.required) ? e.required.call(this, this.model, e, this) :
|
|
432
|
+
return U(e.required) ? e.required.call(this, this.model, e, this) : G(e.required) ? !1 : e.required;
|
|
435
433
|
}
|
|
436
434
|
}
|
|
437
435
|
};
|
|
438
|
-
function
|
|
439
|
-
this.__data__ = new
|
|
436
|
+
function Ba() {
|
|
437
|
+
this.__data__ = new he(), this.size = 0;
|
|
440
438
|
}
|
|
441
|
-
function
|
|
439
|
+
function qa(e) {
|
|
442
440
|
var t = this.__data__, n = t.delete(e);
|
|
443
441
|
return this.size = t.size, n;
|
|
444
442
|
}
|
|
445
|
-
function
|
|
443
|
+
function Ka(e) {
|
|
446
444
|
return this.__data__.get(e);
|
|
447
445
|
}
|
|
448
|
-
function
|
|
446
|
+
function Ha(e) {
|
|
449
447
|
return this.__data__.has(e);
|
|
450
448
|
}
|
|
451
|
-
var
|
|
452
|
-
function
|
|
449
|
+
var Ya = 200;
|
|
450
|
+
function za(e, t) {
|
|
453
451
|
var n = this.__data__;
|
|
454
|
-
if (n instanceof
|
|
452
|
+
if (n instanceof he) {
|
|
455
453
|
var i = n.__data__;
|
|
456
|
-
if (!
|
|
454
|
+
if (!Ye || i.length < Ya - 1)
|
|
457
455
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
458
|
-
n = this.__data__ = new
|
|
456
|
+
n = this.__data__ = new me(i);
|
|
459
457
|
}
|
|
460
458
|
return n.set(e, t), this.size = n.size, this;
|
|
461
459
|
}
|
|
462
|
-
function
|
|
463
|
-
var t = this.__data__ = new
|
|
460
|
+
function le(e) {
|
|
461
|
+
var t = this.__data__ = new he(e);
|
|
464
462
|
this.size = t.size;
|
|
465
463
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
var
|
|
464
|
+
le.prototype.clear = Ba;
|
|
465
|
+
le.prototype.delete = qa;
|
|
466
|
+
le.prototype.get = Ka;
|
|
467
|
+
le.prototype.has = Ha;
|
|
468
|
+
le.prototype.set = za;
|
|
469
|
+
var We = function() {
|
|
472
470
|
try {
|
|
473
471
|
var e = Ee(Object, "defineProperty");
|
|
474
472
|
return e({}, "", {}), e;
|
|
475
473
|
} catch {
|
|
476
474
|
}
|
|
477
475
|
}();
|
|
478
|
-
function
|
|
479
|
-
t == "__proto__" &&
|
|
476
|
+
function Yn(e, t, n) {
|
|
477
|
+
t == "__proto__" && We ? We(e, t, {
|
|
480
478
|
configurable: !0,
|
|
481
479
|
enumerable: !0,
|
|
482
480
|
value: n,
|
|
483
481
|
writable: !0
|
|
484
482
|
}) : e[t] = n;
|
|
485
483
|
}
|
|
486
|
-
var
|
|
487
|
-
function
|
|
484
|
+
var Ga = Object.prototype, xa = Ga.hasOwnProperty;
|
|
485
|
+
function zn(e, t, n) {
|
|
488
486
|
var i = e[t];
|
|
489
|
-
(!(
|
|
487
|
+
(!(xa.call(e, t) && xe(i, n)) || n === void 0 && !(t in e)) && Yn(e, t, n);
|
|
490
488
|
}
|
|
491
|
-
function
|
|
489
|
+
function ot(e, t, n, i) {
|
|
492
490
|
var a = !n;
|
|
493
491
|
n || (n = {});
|
|
494
492
|
for (var r = -1, o = t.length; ++r < o; ) {
|
|
495
|
-
var s = t[r], l =
|
|
496
|
-
l === void 0 && (l = e[s]), a ?
|
|
493
|
+
var s = t[r], l = void 0;
|
|
494
|
+
l === void 0 && (l = e[s]), a ? Yn(n, s, l) : zn(n, s, l);
|
|
497
495
|
}
|
|
498
496
|
return n;
|
|
499
497
|
}
|
|
500
|
-
function
|
|
501
|
-
return e &&
|
|
498
|
+
function Za(e, t) {
|
|
499
|
+
return e && ot(t, Ve(t), e);
|
|
502
500
|
}
|
|
503
|
-
function
|
|
501
|
+
function Wa(e) {
|
|
504
502
|
var t = [];
|
|
505
503
|
if (e != null)
|
|
506
504
|
for (var n in Object(e))
|
|
507
505
|
t.push(n);
|
|
508
506
|
return t;
|
|
509
507
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
if (!
|
|
513
|
-
return
|
|
514
|
-
var t =
|
|
508
|
+
var Ja = Object.prototype, Xa = Ja.hasOwnProperty;
|
|
509
|
+
function Qa(e) {
|
|
510
|
+
if (!x(e))
|
|
511
|
+
return Wa(e);
|
|
512
|
+
var t = tt(e), n = [];
|
|
515
513
|
for (var i in e)
|
|
516
|
-
i == "constructor" && (t || !
|
|
514
|
+
i == "constructor" && (t || !Xa.call(e, i)) || n.push(i);
|
|
517
515
|
return n;
|
|
518
516
|
}
|
|
519
|
-
function
|
|
520
|
-
return
|
|
517
|
+
function lt(e) {
|
|
518
|
+
return Le(e) ? Vn(e, !0) : Qa(e);
|
|
521
519
|
}
|
|
522
|
-
function
|
|
523
|
-
return e &&
|
|
520
|
+
function es(e, t) {
|
|
521
|
+
return e && ot(t, lt(t), e);
|
|
524
522
|
}
|
|
525
|
-
var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, Gt = Gn && typeof module == "object" && module && !module.nodeType && module,
|
|
526
|
-
function
|
|
523
|
+
var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, Gt = Gn && typeof module == "object" && module && !module.nodeType && module, ts = Gt && Gt.exports === Gn, xt = ts ? ae.Buffer : void 0, Zt = xt ? xt.allocUnsafe : void 0;
|
|
524
|
+
function ns(e, t) {
|
|
527
525
|
if (t)
|
|
528
526
|
return e.slice();
|
|
529
|
-
var n = e.length, i =
|
|
527
|
+
var n = e.length, i = Zt ? Zt(n) : new e.constructor(n);
|
|
530
528
|
return e.copy(i), i;
|
|
531
529
|
}
|
|
532
|
-
function
|
|
530
|
+
function is(e, t) {
|
|
533
531
|
var n = -1, i = e.length;
|
|
534
532
|
for (t || (t = Array(i)); ++n < i; )
|
|
535
533
|
t[n] = e[n];
|
|
536
534
|
return t;
|
|
537
535
|
}
|
|
538
|
-
function
|
|
536
|
+
function rs(e, t) {
|
|
539
537
|
for (var n = -1, i = e == null ? 0 : e.length, a = 0, r = []; ++n < i; ) {
|
|
540
538
|
var o = e[n];
|
|
541
539
|
t(o, n, e) && (r[a++] = o);
|
|
542
540
|
}
|
|
543
541
|
return r;
|
|
544
542
|
}
|
|
545
|
-
function
|
|
543
|
+
function xn() {
|
|
546
544
|
return [];
|
|
547
545
|
}
|
|
548
|
-
var
|
|
549
|
-
return e == null ? [] : (e = Object(e),
|
|
550
|
-
return
|
|
546
|
+
var as = Object.prototype, ss = as.propertyIsEnumerable, Wt = Object.getOwnPropertySymbols, Ut = Wt ? function(e) {
|
|
547
|
+
return e == null ? [] : (e = Object(e), rs(Wt(e), function(t) {
|
|
548
|
+
return ss.call(e, t);
|
|
551
549
|
}));
|
|
552
|
-
} :
|
|
553
|
-
function
|
|
554
|
-
return
|
|
550
|
+
} : xn;
|
|
551
|
+
function os(e, t) {
|
|
552
|
+
return ot(e, Ut(e), t);
|
|
555
553
|
}
|
|
556
|
-
function
|
|
554
|
+
function Zn(e, t) {
|
|
557
555
|
for (var n = -1, i = t.length, a = e.length; ++n < i; )
|
|
558
556
|
e[a + n] = t[n];
|
|
559
557
|
return e;
|
|
560
558
|
}
|
|
561
|
-
var
|
|
562
|
-
const Jn = cs;
|
|
563
|
-
var hs = Object.getOwnPropertySymbols, Xn = hs ? function(e) {
|
|
559
|
+
var Wn = Dn(Object.getPrototypeOf, Object), ls = Object.getOwnPropertySymbols, Jn = ls ? function(e) {
|
|
564
560
|
for (var t = []; e; )
|
|
565
|
-
|
|
561
|
+
Zn(t, Ut(e)), e = Wn(e);
|
|
566
562
|
return t;
|
|
567
|
-
} :
|
|
568
|
-
function
|
|
569
|
-
return
|
|
563
|
+
} : xn;
|
|
564
|
+
function ds(e, t) {
|
|
565
|
+
return ot(e, Jn(e), t);
|
|
570
566
|
}
|
|
571
|
-
function
|
|
567
|
+
function Xn(e, t, n) {
|
|
572
568
|
var i = t(e);
|
|
573
|
-
return te(e) ? i :
|
|
569
|
+
return te(e) ? i : Zn(i, n(e));
|
|
574
570
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
571
|
+
function yt(e) {
|
|
572
|
+
return Xn(e, Ve, Ut);
|
|
577
573
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
574
|
+
function us(e) {
|
|
575
|
+
return Xn(e, lt, Jn);
|
|
580
576
|
}
|
|
581
|
-
var
|
|
582
|
-
(
|
|
583
|
-
var t =
|
|
577
|
+
var bt = Ee(ae, "DataView"), vt = Ee(ae, "Promise"), Ue = Ee(ae, "Set"), _t = Ee(ae, "WeakMap"), Jt = "[object Map]", cs = "[object Object]", Xt = "[object Promise]", Qt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", hs = Oe(bt), ms = Oe(Ye), fs = Oe(vt), ps = Oe(Ue), gs = Oe(_t), ie = ye;
|
|
578
|
+
(bt && ie(new bt(new ArrayBuffer(1))) != tn || Ye && ie(new Ye()) != Jt || vt && ie(vt.resolve()) != Xt || Ue && ie(new Ue()) != Qt || _t && ie(new _t()) != en) && (ie = function(e) {
|
|
579
|
+
var t = ye(e), n = t == cs ? e.constructor : void 0, i = n ? Oe(n) : "";
|
|
584
580
|
if (i)
|
|
585
581
|
switch (i) {
|
|
586
|
-
case
|
|
587
|
-
return
|
|
588
|
-
case
|
|
582
|
+
case hs:
|
|
583
|
+
return tn;
|
|
584
|
+
case ms:
|
|
585
|
+
return Jt;
|
|
586
|
+
case fs:
|
|
589
587
|
return Xt;
|
|
590
|
-
case
|
|
588
|
+
case ps:
|
|
591
589
|
return Qt;
|
|
592
|
-
case
|
|
590
|
+
case gs:
|
|
593
591
|
return en;
|
|
594
|
-
case _s:
|
|
595
|
-
return tn;
|
|
596
592
|
}
|
|
597
593
|
return t;
|
|
598
594
|
});
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
function Ss(e) {
|
|
595
|
+
var ys = Object.prototype, bs = ys.hasOwnProperty;
|
|
596
|
+
function vs(e) {
|
|
602
597
|
var t = e.length, n = new e.constructor(t);
|
|
603
|
-
return t && typeof e[0] == "string" &&
|
|
598
|
+
return t && typeof e[0] == "string" && bs.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
604
599
|
}
|
|
605
|
-
var
|
|
606
|
-
function
|
|
600
|
+
var Je = ae.Uint8Array;
|
|
601
|
+
function Nt(e) {
|
|
607
602
|
var t = new e.constructor(e.byteLength);
|
|
608
|
-
return new
|
|
603
|
+
return new Je(t).set(new Je(e)), t;
|
|
609
604
|
}
|
|
610
|
-
function
|
|
611
|
-
var n = t ?
|
|
605
|
+
function _s(e, t) {
|
|
606
|
+
var n = t ? Nt(e.buffer) : e.buffer;
|
|
612
607
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
613
608
|
}
|
|
614
|
-
var
|
|
615
|
-
function
|
|
616
|
-
var t = new e.constructor(e.source,
|
|
609
|
+
var ws = /\w*$/;
|
|
610
|
+
function Ts(e) {
|
|
611
|
+
var t = new e.constructor(e.source, ws.exec(e));
|
|
617
612
|
return t.lastIndex = e.lastIndex, t;
|
|
618
613
|
}
|
|
619
|
-
var
|
|
620
|
-
function
|
|
621
|
-
return
|
|
614
|
+
var nn = de ? de.prototype : void 0, rn = nn ? nn.valueOf : void 0;
|
|
615
|
+
function Ss(e) {
|
|
616
|
+
return rn ? Object(rn.call(e)) : {};
|
|
622
617
|
}
|
|
623
|
-
function
|
|
624
|
-
var n = t ?
|
|
618
|
+
function $s(e, t) {
|
|
619
|
+
var n = t ? Nt(e.buffer) : e.buffer;
|
|
625
620
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
626
621
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
622
|
+
var Cs = "[object Boolean]", Ms = "[object Date]", Is = "[object Map]", As = "[object Number]", Os = "[object RegExp]", Es = "[object Set]", ks = "[object String]", Fs = "[object Symbol]", Us = "[object ArrayBuffer]", Ns = "[object DataView]", Ps = "[object Float32Array]", Ls = "[object Float64Array]", Vs = "[object Int8Array]", Ds = "[object Int16Array]", js = "[object Int32Array]", Rs = "[object Uint8Array]", Bs = "[object Uint8ClampedArray]", qs = "[object Uint16Array]", Ks = "[object Uint32Array]";
|
|
623
|
+
function Hs(e, t, n) {
|
|
629
624
|
var i = e.constructor;
|
|
630
625
|
switch (t) {
|
|
631
|
-
case
|
|
632
|
-
return
|
|
633
|
-
case
|
|
634
|
-
case
|
|
626
|
+
case Us:
|
|
627
|
+
return Nt(e);
|
|
628
|
+
case Cs:
|
|
629
|
+
case Ms:
|
|
635
630
|
return new i(+e);
|
|
631
|
+
case Ns:
|
|
632
|
+
return _s(e, n);
|
|
633
|
+
case Ps:
|
|
634
|
+
case Ls:
|
|
635
|
+
case Vs:
|
|
636
636
|
case Ds:
|
|
637
|
-
return $s(e, n);
|
|
638
637
|
case js:
|
|
639
|
-
case Bs:
|
|
640
638
|
case Rs:
|
|
639
|
+
case Bs:
|
|
641
640
|
case qs:
|
|
642
641
|
case Ks:
|
|
643
|
-
|
|
644
|
-
case
|
|
645
|
-
case zs:
|
|
646
|
-
case xs:
|
|
647
|
-
return As(e, n);
|
|
648
|
-
case ks:
|
|
642
|
+
return $s(e, n);
|
|
643
|
+
case Is:
|
|
649
644
|
return new i();
|
|
650
|
-
case
|
|
651
|
-
case
|
|
645
|
+
case As:
|
|
646
|
+
case ks:
|
|
652
647
|
return new i(e);
|
|
653
|
-
case
|
|
654
|
-
return
|
|
655
|
-
case
|
|
648
|
+
case Os:
|
|
649
|
+
return Ts(e);
|
|
650
|
+
case Es:
|
|
656
651
|
return new i();
|
|
657
|
-
case
|
|
658
|
-
return
|
|
652
|
+
case Fs:
|
|
653
|
+
return Ss(e);
|
|
659
654
|
}
|
|
660
655
|
}
|
|
661
|
-
var
|
|
656
|
+
var an = Object.create, Ys = /* @__PURE__ */ function() {
|
|
662
657
|
function e() {
|
|
663
658
|
}
|
|
664
659
|
return function(t) {
|
|
665
|
-
if (!
|
|
660
|
+
if (!x(t))
|
|
666
661
|
return {};
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
662
|
+
if (an)
|
|
663
|
+
return an(t);
|
|
669
664
|
e.prototype = t;
|
|
670
665
|
var n = new e();
|
|
671
666
|
return e.prototype = void 0, n;
|
|
672
667
|
};
|
|
673
668
|
}();
|
|
674
|
-
function
|
|
675
|
-
return typeof e.constructor == "function" && !
|
|
676
|
-
}
|
|
677
|
-
var
|
|
678
|
-
function
|
|
679
|
-
return
|
|
680
|
-
}
|
|
681
|
-
var
|
|
682
|
-
function
|
|
683
|
-
return
|
|
684
|
-
}
|
|
685
|
-
var
|
|
686
|
-
j[
|
|
687
|
-
j[
|
|
688
|
-
function
|
|
689
|
-
var o, s = t &
|
|
690
|
-
if (
|
|
669
|
+
function zs(e) {
|
|
670
|
+
return typeof e.constructor == "function" && !tt(e) ? Ys(Wn(e)) : {};
|
|
671
|
+
}
|
|
672
|
+
var Gs = "[object Map]";
|
|
673
|
+
function xs(e) {
|
|
674
|
+
return ue(e) && ie(e) == Gs;
|
|
675
|
+
}
|
|
676
|
+
var sn = Pe && Pe.isMap, Zs = sn ? Ot(sn) : xs, Ws = "[object Set]";
|
|
677
|
+
function Js(e) {
|
|
678
|
+
return ue(e) && ie(e) == Ws;
|
|
679
|
+
}
|
|
680
|
+
var on = Pe && Pe.isSet, Xs = on ? Ot(on) : Js, Qs = 1, eo = 2, to = 4, Qn = "[object Arguments]", no = "[object Array]", io = "[object Boolean]", ro = "[object Date]", ao = "[object Error]", ei = "[object Function]", so = "[object GeneratorFunction]", oo = "[object Map]", lo = "[object Number]", ti = "[object Object]", uo = "[object RegExp]", co = "[object Set]", ho = "[object String]", mo = "[object Symbol]", fo = "[object WeakMap]", po = "[object ArrayBuffer]", go = "[object DataView]", yo = "[object Float32Array]", bo = "[object Float64Array]", vo = "[object Int8Array]", _o = "[object Int16Array]", wo = "[object Int32Array]", To = "[object Uint8Array]", So = "[object Uint8ClampedArray]", $o = "[object Uint16Array]", Co = "[object Uint32Array]", j = {};
|
|
681
|
+
j[Qn] = j[no] = j[po] = j[go] = j[io] = j[ro] = j[yo] = j[bo] = j[vo] = j[_o] = j[wo] = j[oo] = j[lo] = j[ti] = j[uo] = j[co] = j[ho] = j[mo] = j[To] = j[So] = j[$o] = j[Co] = !0;
|
|
682
|
+
j[ao] = j[ei] = j[fo] = !1;
|
|
683
|
+
function Be(e, t, n, i, a, r) {
|
|
684
|
+
var o, s = t & Qs, l = t & eo, u = t & to;
|
|
685
|
+
if (o !== void 0)
|
|
691
686
|
return o;
|
|
692
|
-
if (!
|
|
687
|
+
if (!x(e))
|
|
693
688
|
return e;
|
|
694
689
|
var m = te(e);
|
|
695
690
|
if (m) {
|
|
696
|
-
if (o =
|
|
697
|
-
return
|
|
691
|
+
if (o = vs(e), !s)
|
|
692
|
+
return is(e, o);
|
|
698
693
|
} else {
|
|
699
|
-
var b =
|
|
700
|
-
if (
|
|
701
|
-
return
|
|
702
|
-
if (b ==
|
|
703
|
-
if (o = l ||
|
|
704
|
-
return l ?
|
|
694
|
+
var b = ie(e), v = b == ei || b == so;
|
|
695
|
+
if (Ke(e))
|
|
696
|
+
return ns(e, s);
|
|
697
|
+
if (b == ti || b == Qn || v && !a) {
|
|
698
|
+
if (o = l || v ? {} : zs(e), !s)
|
|
699
|
+
return l ? ds(e, es(o, e)) : os(e, Za(o, e));
|
|
705
700
|
} else {
|
|
706
701
|
if (!j[b])
|
|
707
702
|
return a ? e : {};
|
|
708
|
-
o =
|
|
703
|
+
o = Hs(e, b, s);
|
|
709
704
|
}
|
|
710
705
|
}
|
|
711
|
-
r || (r = new
|
|
706
|
+
r || (r = new le());
|
|
712
707
|
var F = r.get(e);
|
|
713
708
|
if (F)
|
|
714
709
|
return F;
|
|
715
|
-
r.set(e, o),
|
|
716
|
-
o.add(
|
|
717
|
-
}) :
|
|
718
|
-
o.set(p,
|
|
710
|
+
r.set(e, o), Xs(e) ? e.forEach(function(T) {
|
|
711
|
+
o.add(Be(T, t, n, T, e, r));
|
|
712
|
+
}) : Zs(e) && e.forEach(function(T, p) {
|
|
713
|
+
o.set(p, Be(T, t, n, p, e, r));
|
|
719
714
|
});
|
|
720
|
-
var A = u ? l ?
|
|
721
|
-
return
|
|
722
|
-
|
|
715
|
+
var A = u ? l ? us : yt : l ? lt : Ve, y = m ? void 0 : A(e);
|
|
716
|
+
return kn(y || e, function(T, p) {
|
|
717
|
+
y && (p = T, T = e[p]), zn(o, p, Be(T, t, n, p, e, r));
|
|
723
718
|
}), o;
|
|
724
719
|
}
|
|
725
|
-
var
|
|
726
|
-
function
|
|
727
|
-
return
|
|
720
|
+
var Mo = 1, Io = 4;
|
|
721
|
+
function ht(e) {
|
|
722
|
+
return Be(e, Mo | Io);
|
|
728
723
|
}
|
|
729
|
-
const
|
|
730
|
-
var
|
|
731
|
-
return
|
|
732
|
-
},
|
|
733
|
-
function
|
|
734
|
-
for (var t = e.length; t-- &&
|
|
724
|
+
const Pt = (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, ""), ln = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
725
|
+
var mt = function() {
|
|
726
|
+
return ae.Date.now();
|
|
727
|
+
}, Ao = /\s/;
|
|
728
|
+
function Oo(e) {
|
|
729
|
+
for (var t = e.length; t-- && Ao.test(e.charAt(t)); )
|
|
735
730
|
;
|
|
736
731
|
return t;
|
|
737
732
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return e && e.slice(0,
|
|
733
|
+
var Eo = /^\s+/;
|
|
734
|
+
function ko(e) {
|
|
735
|
+
return e && e.slice(0, Oo(e) + 1).replace(Eo, "");
|
|
741
736
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
737
|
+
var dn = NaN, Fo = /^[-+]0x[0-9a-f]+$/i, Uo = /^0b[01]+$/i, No = /^0o[0-7]+$/i, Po = parseInt;
|
|
738
|
+
function wt(e) {
|
|
744
739
|
if (typeof e == "number")
|
|
745
740
|
return e;
|
|
746
|
-
if (
|
|
747
|
-
return
|
|
748
|
-
if (
|
|
741
|
+
if (it(e))
|
|
742
|
+
return dn;
|
|
743
|
+
if (x(e)) {
|
|
749
744
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
750
|
-
e =
|
|
745
|
+
e = x(t) ? t + "" : t;
|
|
751
746
|
}
|
|
752
747
|
if (typeof e != "string")
|
|
753
748
|
return e === 0 ? e : +e;
|
|
754
|
-
e =
|
|
755
|
-
var n =
|
|
756
|
-
return n ||
|
|
749
|
+
e = ko(e);
|
|
750
|
+
var n = Uo.test(e);
|
|
751
|
+
return n || No.test(e) ? Po(e.slice(2), n ? 2 : 8) : Fo.test(e) ? dn : +e;
|
|
757
752
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
var i, a, r, o, s, l, u = 0, m = !1, b = !1,
|
|
753
|
+
var Lo = "Expected a function", Vo = Math.max, Do = Math.min;
|
|
754
|
+
function ze(e, t, n) {
|
|
755
|
+
var i, a, r, o, s, l, u = 0, m = !1, b = !1, v = !0;
|
|
761
756
|
if (typeof e != "function")
|
|
762
|
-
throw new TypeError(
|
|
763
|
-
t =
|
|
757
|
+
throw new TypeError(Lo);
|
|
758
|
+
t = wt(t) || 0, x(n) && (m = !!n.leading, b = "maxWait" in n, r = b ? Vo(wt(n.maxWait) || 0, t) : r, v = "trailing" in n ? !!n.trailing : v);
|
|
764
759
|
function F(f) {
|
|
765
760
|
var S = i, q = a;
|
|
766
761
|
return i = a = void 0, u = f, o = e.apply(q, S), o;
|
|
@@ -768,31 +763,31 @@ function xe(e, t, n) {
|
|
|
768
763
|
function A(f) {
|
|
769
764
|
return u = f, s = setTimeout(p, t), m ? F(f) : o;
|
|
770
765
|
}
|
|
771
|
-
function
|
|
766
|
+
function y(f) {
|
|
772
767
|
var S = f - l, q = f - u, Z = t - S;
|
|
773
|
-
return b ?
|
|
768
|
+
return b ? Do(Z, r - q) : Z;
|
|
774
769
|
}
|
|
775
770
|
function T(f) {
|
|
776
771
|
var S = f - l, q = f - u;
|
|
777
772
|
return l === void 0 || S >= t || S < 0 || b && q >= r;
|
|
778
773
|
}
|
|
779
774
|
function p() {
|
|
780
|
-
var f =
|
|
775
|
+
var f = mt();
|
|
781
776
|
if (T(f))
|
|
782
777
|
return _(f);
|
|
783
|
-
s = setTimeout(p,
|
|
778
|
+
s = setTimeout(p, y(f));
|
|
784
779
|
}
|
|
785
780
|
function _(f) {
|
|
786
|
-
return s = void 0,
|
|
781
|
+
return s = void 0, v && i ? F(f) : (i = a = void 0, o);
|
|
787
782
|
}
|
|
788
|
-
function
|
|
783
|
+
function R() {
|
|
789
784
|
s !== void 0 && clearTimeout(s), u = 0, i = l = a = s = void 0;
|
|
790
785
|
}
|
|
791
|
-
function
|
|
792
|
-
return s === void 0 ? o : _(
|
|
786
|
+
function B() {
|
|
787
|
+
return s === void 0 ? o : _(mt());
|
|
793
788
|
}
|
|
794
789
|
function g() {
|
|
795
|
-
var f =
|
|
790
|
+
var f = mt(), S = T(f);
|
|
796
791
|
if (i = arguments, a = this, l = f, S) {
|
|
797
792
|
if (s === void 0)
|
|
798
793
|
return A(l);
|
|
@@ -801,97 +796,89 @@ function xe(e, t, n) {
|
|
|
801
796
|
}
|
|
802
797
|
return s === void 0 && (s = setTimeout(p, t)), o;
|
|
803
798
|
}
|
|
804
|
-
return g.cancel =
|
|
799
|
+
return g.cancel = R, g.flush = B, g;
|
|
805
800
|
}
|
|
806
|
-
var
|
|
807
|
-
function
|
|
808
|
-
return this.__data__.set(e,
|
|
801
|
+
var jo = "__lodash_hash_undefined__";
|
|
802
|
+
function Ro(e) {
|
|
803
|
+
return this.__data__.set(e, jo), this;
|
|
809
804
|
}
|
|
810
|
-
function
|
|
805
|
+
function Bo(e) {
|
|
811
806
|
return this.__data__.has(e);
|
|
812
807
|
}
|
|
813
808
|
function Ge(e) {
|
|
814
809
|
var t = -1, n = e == null ? 0 : e.length;
|
|
815
|
-
for (this.__data__ = new
|
|
810
|
+
for (this.__data__ = new me(); ++t < n; )
|
|
816
811
|
this.add(e[t]);
|
|
817
812
|
}
|
|
818
|
-
Ge.prototype.add = Ge.prototype.push =
|
|
819
|
-
Ge.prototype.has =
|
|
820
|
-
function
|
|
821
|
-
for (var a = e.length, r = n +
|
|
813
|
+
Ge.prototype.add = Ge.prototype.push = Ro;
|
|
814
|
+
Ge.prototype.has = Bo;
|
|
815
|
+
function ni(e, t, n, i) {
|
|
816
|
+
for (var a = e.length, r = n + -1; ++r < a; )
|
|
822
817
|
if (t(e[r], r, e))
|
|
823
818
|
return r;
|
|
824
819
|
return -1;
|
|
825
820
|
}
|
|
826
|
-
function
|
|
821
|
+
function qo(e) {
|
|
827
822
|
return e !== e;
|
|
828
823
|
}
|
|
829
|
-
function
|
|
824
|
+
function Ko(e, t, n) {
|
|
830
825
|
for (var i = n - 1, a = e.length; ++i < a; )
|
|
831
826
|
if (e[i] === t)
|
|
832
827
|
return i;
|
|
833
828
|
return -1;
|
|
834
829
|
}
|
|
835
|
-
function
|
|
836
|
-
return t === t ?
|
|
830
|
+
function Ho(e, t, n) {
|
|
831
|
+
return t === t ? Ko(e, t, n) : ni(e, qo, n);
|
|
837
832
|
}
|
|
838
|
-
function
|
|
833
|
+
function Yo(e, t) {
|
|
839
834
|
var n = e == null ? 0 : e.length;
|
|
840
|
-
return !!n &&
|
|
841
|
-
}
|
|
842
|
-
function Wo(e, t, n) {
|
|
843
|
-
for (var i = -1, a = e == null ? 0 : e.length; ++i < a; )
|
|
844
|
-
if (n(t, e[i]))
|
|
845
|
-
return !0;
|
|
846
|
-
return !1;
|
|
835
|
+
return !!n && Ho(e, t, 0) > -1;
|
|
847
836
|
}
|
|
848
|
-
function
|
|
837
|
+
function ii(e, t) {
|
|
849
838
|
return e.has(t);
|
|
850
839
|
}
|
|
851
|
-
function
|
|
840
|
+
function zo() {
|
|
852
841
|
}
|
|
853
|
-
function
|
|
842
|
+
function Lt(e) {
|
|
854
843
|
var t = -1, n = Array(e.size);
|
|
855
844
|
return e.forEach(function(i) {
|
|
856
845
|
n[++t] = i;
|
|
857
846
|
}), n;
|
|
858
847
|
}
|
|
859
|
-
var
|
|
848
|
+
var Go = 1 / 0, xo = Ue && 1 / Lt(new Ue([, -0]))[1] == Go ? function(e) {
|
|
860
849
|
return new Ue(e);
|
|
861
|
-
} :
|
|
862
|
-
function
|
|
863
|
-
var i = -1, a =
|
|
864
|
-
if (
|
|
865
|
-
|
|
866
|
-
else if (r >= el) {
|
|
867
|
-
var u = t ? null : Qo(e);
|
|
850
|
+
} : zo, Zo = 200;
|
|
851
|
+
function Wo(e, t, n) {
|
|
852
|
+
var i = -1, a = Yo, r = e.length, o = !0, s = [], l = s;
|
|
853
|
+
if (r >= Zo) {
|
|
854
|
+
var u = xo(e);
|
|
868
855
|
if (u)
|
|
869
|
-
return
|
|
870
|
-
o = !1, a =
|
|
856
|
+
return Lt(u);
|
|
857
|
+
o = !1, a = ii, l = new Ge();
|
|
871
858
|
} else
|
|
872
|
-
l =
|
|
859
|
+
l = s;
|
|
873
860
|
e:
|
|
874
861
|
for (; ++i < r; ) {
|
|
875
|
-
var m = e[i], b =
|
|
876
|
-
if (m =
|
|
877
|
-
for (var
|
|
878
|
-
if (l[
|
|
862
|
+
var m = e[i], b = m;
|
|
863
|
+
if (m = m !== 0 ? m : 0, o && b === b) {
|
|
864
|
+
for (var v = l.length; v--; )
|
|
865
|
+
if (l[v] === b)
|
|
879
866
|
continue e;
|
|
880
|
-
|
|
867
|
+
s.push(m);
|
|
881
868
|
} else
|
|
882
869
|
a(l, b, n) || (l !== s && l.push(b), s.push(m));
|
|
883
870
|
}
|
|
884
871
|
return s;
|
|
885
872
|
}
|
|
886
|
-
function
|
|
887
|
-
return e && e.length ?
|
|
873
|
+
function ri(e) {
|
|
874
|
+
return e && e.length ? Wo(e) : [];
|
|
888
875
|
}
|
|
889
|
-
var
|
|
890
|
-
function
|
|
891
|
-
var t = ++
|
|
892
|
-
return
|
|
876
|
+
var Jo = 0;
|
|
877
|
+
function ai(e) {
|
|
878
|
+
var t = ++Jo;
|
|
879
|
+
return Bn(e) + t;
|
|
893
880
|
}
|
|
894
|
-
function
|
|
881
|
+
function Xo(e, t, n) {
|
|
895
882
|
switch (n.length) {
|
|
896
883
|
case 0:
|
|
897
884
|
return e.call(t);
|
|
@@ -904,95 +891,93 @@ function il(e, t, n) {
|
|
|
904
891
|
}
|
|
905
892
|
return e.apply(t, n);
|
|
906
893
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
-
return t =
|
|
910
|
-
for (var i = arguments, a = -1, r =
|
|
894
|
+
var un = Math.max;
|
|
895
|
+
function Qo(e, t, n) {
|
|
896
|
+
return t = un(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
897
|
+
for (var i = arguments, a = -1, r = un(i.length - t, 0), o = Array(r); ++a < r; )
|
|
911
898
|
o[a] = i[t + a];
|
|
912
899
|
a = -1;
|
|
913
900
|
for (var s = Array(t + 1); ++a < t; )
|
|
914
901
|
s[a] = i[a];
|
|
915
|
-
return s[t] = n(o),
|
|
902
|
+
return s[t] = n(o), Xo(e, this, s);
|
|
916
903
|
};
|
|
917
904
|
}
|
|
918
|
-
function
|
|
905
|
+
function el(e) {
|
|
919
906
|
return function() {
|
|
920
907
|
return e;
|
|
921
908
|
};
|
|
922
909
|
}
|
|
923
|
-
var
|
|
924
|
-
return
|
|
910
|
+
var tl = We ? function(e, t) {
|
|
911
|
+
return We(e, "toString", {
|
|
925
912
|
configurable: !0,
|
|
926
913
|
enumerable: !1,
|
|
927
|
-
value:
|
|
914
|
+
value: el(t),
|
|
928
915
|
writable: !0
|
|
929
916
|
});
|
|
930
|
-
} :
|
|
931
|
-
|
|
932
|
-
var ll = 800, dl = 16, ul = Date.now;
|
|
933
|
-
function cl(e) {
|
|
917
|
+
} : nt, nl = 800, il = 16, rl = Date.now;
|
|
918
|
+
function al(e) {
|
|
934
919
|
var t = 0, n = 0;
|
|
935
920
|
return function() {
|
|
936
|
-
var i =
|
|
921
|
+
var i = rl(), a = il - (i - n);
|
|
937
922
|
if (n = i, a > 0) {
|
|
938
|
-
if (++t >=
|
|
923
|
+
if (++t >= nl)
|
|
939
924
|
return arguments[0];
|
|
940
925
|
} else
|
|
941
926
|
t = 0;
|
|
942
927
|
return e.apply(void 0, arguments);
|
|
943
928
|
};
|
|
944
929
|
}
|
|
945
|
-
var
|
|
946
|
-
function
|
|
947
|
-
return
|
|
930
|
+
var sl = al(tl);
|
|
931
|
+
function ol(e, t) {
|
|
932
|
+
return sl(Qo(e, t, nt), e + "");
|
|
948
933
|
}
|
|
949
|
-
function
|
|
950
|
-
if (!
|
|
934
|
+
function ll(e, t, n) {
|
|
935
|
+
if (!x(n))
|
|
951
936
|
return !1;
|
|
952
937
|
var i = typeof t;
|
|
953
|
-
return (i == "number" ?
|
|
938
|
+
return (i == "number" ? Le(n) && It(t, n.length) : i == "string" && t in n) ? xe(n[t], e) : !1;
|
|
954
939
|
}
|
|
955
|
-
var
|
|
940
|
+
var si = Object.prototype, dl = si.hasOwnProperty, be = ol(function(e, t) {
|
|
956
941
|
e = Object(e);
|
|
957
942
|
var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
|
|
958
|
-
for (a &&
|
|
959
|
-
for (var r = t[n], o =
|
|
943
|
+
for (a && ll(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
944
|
+
for (var r = t[n], o = lt(r), s = -1, l = o.length; ++s < l; ) {
|
|
960
945
|
var u = o[s], m = e[u];
|
|
961
|
-
(m === void 0 ||
|
|
946
|
+
(m === void 0 || xe(m, si[u]) && !dl.call(e, u)) && (e[u] = r[u]);
|
|
962
947
|
}
|
|
963
948
|
return e;
|
|
964
|
-
}),
|
|
965
|
-
function
|
|
966
|
-
return typeof e == "number" &&
|
|
949
|
+
}), ul = ae.isFinite;
|
|
950
|
+
function cl(e) {
|
|
951
|
+
return typeof e == "number" && ul(e);
|
|
967
952
|
}
|
|
968
|
-
var
|
|
969
|
-
function
|
|
953
|
+
var cn = 1 / 0, hl = 17976931348623157e292;
|
|
954
|
+
function ml(e) {
|
|
970
955
|
if (!e)
|
|
971
956
|
return e === 0 ? e : 0;
|
|
972
|
-
if (e =
|
|
957
|
+
if (e = wt(e), e === cn || e === -cn) {
|
|
973
958
|
var t = e < 0 ? -1 : 1;
|
|
974
|
-
return t *
|
|
959
|
+
return t * hl;
|
|
975
960
|
}
|
|
976
961
|
return e === e ? e : 0;
|
|
977
962
|
}
|
|
978
|
-
function
|
|
979
|
-
var t =
|
|
963
|
+
function oi(e) {
|
|
964
|
+
var t = ml(e), n = t % 1;
|
|
980
965
|
return t === t ? n ? t - n : t : 0;
|
|
981
966
|
}
|
|
982
|
-
function
|
|
983
|
-
return typeof e == "number" && e ==
|
|
967
|
+
function fl(e) {
|
|
968
|
+
return typeof e == "number" && e == oi(e);
|
|
984
969
|
}
|
|
985
|
-
var
|
|
986
|
-
function
|
|
987
|
-
return typeof e == "number" ||
|
|
970
|
+
var pl = "[object Number]";
|
|
971
|
+
function Tt(e) {
|
|
972
|
+
return typeof e == "number" || ue(e) && ye(e) == pl;
|
|
988
973
|
}
|
|
989
|
-
var
|
|
990
|
-
function
|
|
974
|
+
var li = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, pe = "\\d\\d?", fe = "\\d\\d", gl = "\\d{3}", yl = "\\d{4}", qe = "[^\\s]+", di = /\[([^]*?)\]/gm;
|
|
975
|
+
function ui(e, t) {
|
|
991
976
|
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
992
977
|
n.push(e[i].substr(0, t));
|
|
993
978
|
return n;
|
|
994
979
|
}
|
|
995
|
-
var
|
|
980
|
+
var hn = function(e) {
|
|
996
981
|
return function(t, n) {
|
|
997
982
|
var i = n[e].map(function(r) {
|
|
998
983
|
return r.toLowerCase();
|
|
@@ -1010,7 +995,7 @@ function $e(e) {
|
|
|
1010
995
|
}
|
|
1011
996
|
return e;
|
|
1012
997
|
}
|
|
1013
|
-
var
|
|
998
|
+
var ci = [
|
|
1014
999
|
"Sunday",
|
|
1015
1000
|
"Monday",
|
|
1016
1001
|
"Tuesday",
|
|
@@ -1018,7 +1003,7 @@ var hi = [
|
|
|
1018
1003
|
"Thursday",
|
|
1019
1004
|
"Friday",
|
|
1020
1005
|
"Saturday"
|
|
1021
|
-
],
|
|
1006
|
+
], hi = [
|
|
1022
1007
|
"January",
|
|
1023
1008
|
"February",
|
|
1024
1009
|
"March",
|
|
@@ -1031,24 +1016,24 @@ var hi = [
|
|
|
1031
1016
|
"October",
|
|
1032
1017
|
"November",
|
|
1033
1018
|
"December"
|
|
1034
|
-
],
|
|
1035
|
-
dayNamesShort:
|
|
1036
|
-
dayNames:
|
|
1037
|
-
monthNamesShort:
|
|
1038
|
-
monthNames:
|
|
1019
|
+
], bl = ui(hi, 3), vl = ui(ci, 3), mi = {
|
|
1020
|
+
dayNamesShort: vl,
|
|
1021
|
+
dayNames: ci,
|
|
1022
|
+
monthNamesShort: bl,
|
|
1023
|
+
monthNames: hi,
|
|
1039
1024
|
amPm: ["am", "pm"],
|
|
1040
1025
|
DoFn: function(e) {
|
|
1041
1026
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
1042
1027
|
}
|
|
1043
|
-
},
|
|
1044
|
-
return
|
|
1045
|
-
},
|
|
1028
|
+
}, Xe = $e({}, mi), _l = function(e) {
|
|
1029
|
+
return Xe = $e(Xe, e);
|
|
1030
|
+
}, mn = function(e) {
|
|
1046
1031
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1047
1032
|
}, X = function(e, t) {
|
|
1048
1033
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
1049
1034
|
e = "0" + e;
|
|
1050
1035
|
return e;
|
|
1051
|
-
},
|
|
1036
|
+
}, wl = {
|
|
1052
1037
|
D: function(e) {
|
|
1053
1038
|
return String(e.getDate());
|
|
1054
1039
|
},
|
|
@@ -1135,16 +1120,16 @@ var hi = [
|
|
|
1135
1120
|
var t = e.getTimezoneOffset();
|
|
1136
1121
|
return (t > 0 ? "-" : "+") + X(Math.floor(Math.abs(t) / 60), 2) + ":" + X(Math.abs(t) % 60, 2);
|
|
1137
1122
|
}
|
|
1138
|
-
},
|
|
1123
|
+
}, fn = function(e) {
|
|
1139
1124
|
return +e - 1;
|
|
1140
|
-
},
|
|
1125
|
+
}, pn = [null, pe], gn = [null, qe], yn = [
|
|
1141
1126
|
"isPm",
|
|
1142
|
-
|
|
1127
|
+
qe,
|
|
1143
1128
|
function(e, t) {
|
|
1144
1129
|
var n = e.toLowerCase();
|
|
1145
1130
|
return n === t.amPm[0] ? 0 : n === t.amPm[1] ? 1 : null;
|
|
1146
1131
|
}
|
|
1147
|
-
],
|
|
1132
|
+
], bn = [
|
|
1148
1133
|
"timezoneOffset",
|
|
1149
1134
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",
|
|
1150
1135
|
function(e) {
|
|
@@ -1155,49 +1140,49 @@ var hi = [
|
|
|
1155
1140
|
}
|
|
1156
1141
|
return 0;
|
|
1157
1142
|
}
|
|
1158
|
-
],
|
|
1159
|
-
D: ["day",
|
|
1160
|
-
DD: ["day",
|
|
1161
|
-
Do: ["day",
|
|
1143
|
+
], Tl = {
|
|
1144
|
+
D: ["day", pe],
|
|
1145
|
+
DD: ["day", fe],
|
|
1146
|
+
Do: ["day", pe + qe, function(e) {
|
|
1162
1147
|
return parseInt(e, 10);
|
|
1163
1148
|
}],
|
|
1164
|
-
M: ["month",
|
|
1165
|
-
MM: ["month",
|
|
1149
|
+
M: ["month", pe, fn],
|
|
1150
|
+
MM: ["month", fe, fn],
|
|
1166
1151
|
YY: [
|
|
1167
1152
|
"year",
|
|
1168
|
-
|
|
1153
|
+
fe,
|
|
1169
1154
|
function(e) {
|
|
1170
1155
|
var t = /* @__PURE__ */ new Date(), n = +("" + t.getFullYear()).substr(0, 2);
|
|
1171
1156
|
return +("" + (+e > 68 ? n - 1 : n) + e);
|
|
1172
1157
|
}
|
|
1173
1158
|
],
|
|
1174
|
-
h: ["hour",
|
|
1175
|
-
hh: ["hour",
|
|
1176
|
-
H: ["hour",
|
|
1177
|
-
HH: ["hour",
|
|
1178
|
-
m: ["minute",
|
|
1179
|
-
mm: ["minute",
|
|
1180
|
-
s: ["second",
|
|
1181
|
-
ss: ["second",
|
|
1182
|
-
YYYY: ["year",
|
|
1159
|
+
h: ["hour", pe, void 0, "isPm"],
|
|
1160
|
+
hh: ["hour", fe, void 0, "isPm"],
|
|
1161
|
+
H: ["hour", pe],
|
|
1162
|
+
HH: ["hour", fe],
|
|
1163
|
+
m: ["minute", pe],
|
|
1164
|
+
mm: ["minute", fe],
|
|
1165
|
+
s: ["second", pe],
|
|
1166
|
+
ss: ["second", fe],
|
|
1167
|
+
YYYY: ["year", yl],
|
|
1183
1168
|
S: ["millisecond", "\\d", function(e) {
|
|
1184
1169
|
return +e * 100;
|
|
1185
1170
|
}],
|
|
1186
|
-
SS: ["millisecond",
|
|
1171
|
+
SS: ["millisecond", fe, function(e) {
|
|
1187
1172
|
return +e * 10;
|
|
1188
1173
|
}],
|
|
1189
|
-
SSS: ["millisecond",
|
|
1190
|
-
d:
|
|
1191
|
-
dd:
|
|
1192
|
-
ddd:
|
|
1193
|
-
dddd:
|
|
1194
|
-
MMM: ["month",
|
|
1195
|
-
MMMM: ["month",
|
|
1196
|
-
a:
|
|
1197
|
-
A:
|
|
1198
|
-
ZZ:
|
|
1199
|
-
Z:
|
|
1200
|
-
},
|
|
1174
|
+
SSS: ["millisecond", gl],
|
|
1175
|
+
d: pn,
|
|
1176
|
+
dd: pn,
|
|
1177
|
+
ddd: gn,
|
|
1178
|
+
dddd: gn,
|
|
1179
|
+
MMM: ["month", qe, hn("monthNamesShort")],
|
|
1180
|
+
MMMM: ["month", qe, hn("monthNames")],
|
|
1181
|
+
a: yn,
|
|
1182
|
+
A: yn,
|
|
1183
|
+
ZZ: bn,
|
|
1184
|
+
Z: bn
|
|
1185
|
+
}, Qe = {
|
|
1201
1186
|
default: "ddd MMM DD YYYY HH:mm:ss",
|
|
1202
1187
|
shortDate: "M/D/YY",
|
|
1203
1188
|
mediumDate: "MMM D, YYYY",
|
|
@@ -1208,27 +1193,27 @@ var hi = [
|
|
|
1208
1193
|
shortTime: "HH:mm",
|
|
1209
1194
|
mediumTime: "HH:mm:ss",
|
|
1210
1195
|
longTime: "HH:mm:ss.SSS"
|
|
1211
|
-
},
|
|
1212
|
-
return $e(
|
|
1213
|
-
},
|
|
1214
|
-
if (t === void 0 && (t =
|
|
1196
|
+
}, Sl = function(e) {
|
|
1197
|
+
return $e(Qe, e);
|
|
1198
|
+
}, $l = function(e, t, n) {
|
|
1199
|
+
if (t === void 0 && (t = Qe.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1215
1200
|
throw new Error("Invalid Date pass to format");
|
|
1216
|
-
t =
|
|
1201
|
+
t = Qe[t] || t;
|
|
1217
1202
|
var i = [];
|
|
1218
|
-
t = t.replace(
|
|
1203
|
+
t = t.replace(di, function(r, o) {
|
|
1219
1204
|
return i.push(o), "@@@";
|
|
1220
1205
|
});
|
|
1221
|
-
var a = $e($e({},
|
|
1222
|
-
return t = t.replace(
|
|
1223
|
-
return
|
|
1206
|
+
var a = $e($e({}, Xe), n);
|
|
1207
|
+
return t = t.replace(li, function(r) {
|
|
1208
|
+
return wl[r](e, a);
|
|
1224
1209
|
}), t.replace(/@@@/g, function() {
|
|
1225
1210
|
return i.shift();
|
|
1226
1211
|
});
|
|
1227
1212
|
};
|
|
1228
|
-
function
|
|
1213
|
+
function Cl(e, t, n) {
|
|
1229
1214
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1230
1215
|
throw new Error("Invalid format in fecha parse");
|
|
1231
|
-
if (t =
|
|
1216
|
+
if (t = Qe[t] || t, e.length > 1e3)
|
|
1232
1217
|
return null;
|
|
1233
1218
|
var i = /* @__PURE__ */ new Date(), a = {
|
|
1234
1219
|
year: i.getFullYear(),
|
|
@@ -1240,25 +1225,25 @@ function kl(e, t, n) {
|
|
|
1240
1225
|
millisecond: 0,
|
|
1241
1226
|
isPm: null,
|
|
1242
1227
|
timezoneOffset: null
|
|
1243
|
-
}, r = [], o = [], s = t.replace(
|
|
1244
|
-
return o.push(
|
|
1228
|
+
}, r = [], o = [], s = t.replace(di, function(B, g) {
|
|
1229
|
+
return o.push(mn(g)), "@@@";
|
|
1245
1230
|
}), l = {}, u = {};
|
|
1246
|
-
s =
|
|
1247
|
-
var g =
|
|
1231
|
+
s = mn(s).replace(li, function(B) {
|
|
1232
|
+
var g = Tl[B], f = g[0], S = g[1], q = g[3];
|
|
1248
1233
|
if (l[f])
|
|
1249
1234
|
throw new Error("Invalid format. " + f + " specified twice in format");
|
|
1250
1235
|
return l[f] = !0, q && (u[q] = !0), r.push(g), "(" + S + ")";
|
|
1251
|
-
}), Object.keys(u).forEach(function(
|
|
1252
|
-
if (!l[
|
|
1253
|
-
throw new Error("Invalid format. " +
|
|
1236
|
+
}), Object.keys(u).forEach(function(B) {
|
|
1237
|
+
if (!l[B])
|
|
1238
|
+
throw new Error("Invalid format. " + B + " is required in specified format");
|
|
1254
1239
|
}), s = s.replace(/@@@/g, function() {
|
|
1255
1240
|
return o.shift();
|
|
1256
1241
|
});
|
|
1257
1242
|
var m = e.match(new RegExp(s, "i"));
|
|
1258
1243
|
if (!m)
|
|
1259
1244
|
return null;
|
|
1260
|
-
for (var b = $e($e({},
|
|
1261
|
-
var F = r[
|
|
1245
|
+
for (var b = $e($e({}, Xe), n), v = 1; v < m.length; v++) {
|
|
1246
|
+
var F = r[v - 1], A = F[0], y = F[2], T = y ? y(m[v], b) : +m[v];
|
|
1262
1247
|
if (T == null)
|
|
1263
1248
|
return null;
|
|
1264
1249
|
a[A] = T;
|
|
@@ -1273,19 +1258,19 @@ function kl(e, t, n) {
|
|
|
1273
1258
|
["hour", "getHours"],
|
|
1274
1259
|
["minute", "getMinutes"],
|
|
1275
1260
|
["second", "getSeconds"]
|
|
1276
|
-
],
|
|
1277
|
-
if (l[_[
|
|
1261
|
+
], v = 0, R = _.length; v < R; v++)
|
|
1262
|
+
if (l[_[v][0]] && a[_[v][0]] !== p[_[v][1]]())
|
|
1278
1263
|
return null;
|
|
1279
1264
|
} else if (p = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
|
|
1280
1265
|
return null;
|
|
1281
1266
|
return p;
|
|
1282
1267
|
}
|
|
1283
|
-
var
|
|
1284
|
-
format:
|
|
1285
|
-
parse:
|
|
1286
|
-
defaultI18n:
|
|
1287
|
-
setGlobalDateI18n:
|
|
1288
|
-
setGlobalDateMasks:
|
|
1268
|
+
var oe = {
|
|
1269
|
+
format: $l,
|
|
1270
|
+
parse: Cl,
|
|
1271
|
+
defaultI18n: mi,
|
|
1272
|
+
setGlobalDateI18n: _l,
|
|
1273
|
+
setGlobalDateMasks: Sl
|
|
1289
1274
|
};
|
|
1290
1275
|
const W = {
|
|
1291
1276
|
fieldIsRequired: "This field is required!",
|
|
@@ -1311,7 +1296,7 @@ const W = {
|
|
|
1311
1296
|
invalidTextContainSpec: "Invalid text! Cannot contains special characters"
|
|
1312
1297
|
};
|
|
1313
1298
|
function ne(e, t, n = W) {
|
|
1314
|
-
return
|
|
1299
|
+
return G(e) || e === "" ? t ? [H(n.fieldIsRequired)] : [] : null;
|
|
1315
1300
|
}
|
|
1316
1301
|
function H(e, ...t) {
|
|
1317
1302
|
if (e != null && t.length > 0)
|
|
@@ -1329,20 +1314,20 @@ const Ce = {
|
|
|
1329
1314
|
if (a != null)
|
|
1330
1315
|
return a;
|
|
1331
1316
|
const r = [];
|
|
1332
|
-
return
|
|
1317
|
+
return cl(e) ? (!G(t.min) && e < t.min && r.push(H(i.numberTooSmall, t.min)), !G(t.max) && e > t.max && r.push(H(i.numberTooBig, t.max))) : r.push(H(i.invalidNumber)), r;
|
|
1333
1318
|
},
|
|
1334
1319
|
integer(e, t, n, i = W) {
|
|
1335
1320
|
const a = ne(e, t.required, i);
|
|
1336
1321
|
if (a != null)
|
|
1337
1322
|
return a;
|
|
1338
1323
|
const r = Ce.number(e, t, n, i);
|
|
1339
|
-
return
|
|
1324
|
+
return fl(e) || r.push(H(i.invalidInteger)), r;
|
|
1340
1325
|
},
|
|
1341
1326
|
double(e, t, n, i = W) {
|
|
1342
1327
|
const a = ne(e, t.required, i);
|
|
1343
1328
|
if (a != null)
|
|
1344
1329
|
return a;
|
|
1345
|
-
if (!
|
|
1330
|
+
if (!Tt(e) || isNaN(e))
|
|
1346
1331
|
return [H(i.invalidNumber)];
|
|
1347
1332
|
},
|
|
1348
1333
|
string(e, t, n, i = W) {
|
|
@@ -1350,7 +1335,7 @@ const Ce = {
|
|
|
1350
1335
|
if (a != null)
|
|
1351
1336
|
return a;
|
|
1352
1337
|
const r = [];
|
|
1353
|
-
return Se(e) ? (!
|
|
1338
|
+
return Se(e) ? (!G(t.min) && e.length < t.min && r.push(H(i.textTooSmall, e.length, t.min)), !G(t.max) && e.length > t.max && r.push(H(i.textTooBig, e.length, t.max))) : r.push(H(i.thisNotText)), r;
|
|
1354
1339
|
},
|
|
1355
1340
|
array(e, t, n, i = W) {
|
|
1356
1341
|
if (t.required) {
|
|
@@ -1359,10 +1344,10 @@ const Ce = {
|
|
|
1359
1344
|
if (e.length === 0)
|
|
1360
1345
|
return [H(i.fieldIsRequired)];
|
|
1361
1346
|
}
|
|
1362
|
-
if (!
|
|
1363
|
-
if (!
|
|
1347
|
+
if (!G(e)) {
|
|
1348
|
+
if (!G(t.min) && e.length < t.min)
|
|
1364
1349
|
return [H(i.selectMinItems, t.min)];
|
|
1365
|
-
if (!
|
|
1350
|
+
if (!G(t.max) && e.length > t.max)
|
|
1366
1351
|
return [H(i.selectMaxItems, t.max)];
|
|
1367
1352
|
}
|
|
1368
1353
|
},
|
|
@@ -1374,13 +1359,13 @@ const Ce = {
|
|
|
1374
1359
|
if (isNaN(r.getDate()))
|
|
1375
1360
|
return [H(i.invalidDate)];
|
|
1376
1361
|
const o = [];
|
|
1377
|
-
if (!
|
|
1362
|
+
if (!G(t.min)) {
|
|
1378
1363
|
const s = new Date(t.min);
|
|
1379
|
-
r.valueOf() < s.valueOf() && o.push(H(i.dateIsEarly,
|
|
1364
|
+
r.valueOf() < s.valueOf() && o.push(H(i.dateIsEarly, oe.format(r), oe.format(s)));
|
|
1380
1365
|
}
|
|
1381
|
-
if (!
|
|
1366
|
+
if (!G(t.max)) {
|
|
1382
1367
|
const s = new Date(t.max);
|
|
1383
|
-
r.valueOf() > s.valueOf() && o.push(H(i.dateIsLate,
|
|
1368
|
+
r.valueOf() > s.valueOf() && o.push(H(i.dateIsLate, oe.format(r), oe.format(s)));
|
|
1384
1369
|
}
|
|
1385
1370
|
return o;
|
|
1386
1371
|
},
|
|
@@ -1388,7 +1373,7 @@ const Ce = {
|
|
|
1388
1373
|
const a = ne(e, t.required, i);
|
|
1389
1374
|
if (a != null)
|
|
1390
1375
|
return a;
|
|
1391
|
-
if (!
|
|
1376
|
+
if (!G(t.pattern) && !new RegExp(t.pattern).test(e))
|
|
1392
1377
|
return [H(i.invalidFormat)];
|
|
1393
1378
|
},
|
|
1394
1379
|
email(e, t, n, i = W) {
|
|
@@ -1435,12 +1420,12 @@ const Ce = {
|
|
|
1435
1420
|
};
|
|
1436
1421
|
Object.keys(Ce).forEach((e) => {
|
|
1437
1422
|
const t = Ce[e];
|
|
1438
|
-
U(t) && (t.locale = (n) => (i, a, r) => t(i, a, r,
|
|
1423
|
+
U(t) && (t.locale = (n) => (i, a, r) => t(i, a, r, be(n, W)));
|
|
1439
1424
|
});
|
|
1440
|
-
function
|
|
1425
|
+
function vn(e) {
|
|
1441
1426
|
return Se(e) ? Ce[e] != null ? Ce[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1442
1427
|
}
|
|
1443
|
-
function
|
|
1428
|
+
function ft(e, t, n) {
|
|
1444
1429
|
let i = O(n.context, "schema.attributes", {});
|
|
1445
1430
|
const a = t.value || "input";
|
|
1446
1431
|
Se(a) && (i = O(i, a) || i), J(i, (r, o) => {
|
|
@@ -1460,9 +1445,9 @@ const L = {
|
|
|
1460
1445
|
},
|
|
1461
1446
|
directives: {
|
|
1462
1447
|
attributes: {
|
|
1463
|
-
beforeMount:
|
|
1464
|
-
updated:
|
|
1465
|
-
componentUpdated:
|
|
1448
|
+
beforeMount: ft,
|
|
1449
|
+
updated: ft,
|
|
1450
|
+
componentUpdated: ft
|
|
1466
1451
|
}
|
|
1467
1452
|
},
|
|
1468
1453
|
computed: {
|
|
@@ -1486,8 +1471,8 @@ const L = {
|
|
|
1486
1471
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
1487
1472
|
const a = [];
|
|
1488
1473
|
Array.isArray(this.schema.validator) ? J(this.schema.validator, (r) => {
|
|
1489
|
-
a.push(
|
|
1490
|
-
}) : a.push(
|
|
1474
|
+
a.push(vn(r).bind(this));
|
|
1475
|
+
}) : a.push(vn(this.schema.validator).bind(this)), J(a, (r) => {
|
|
1491
1476
|
if (t)
|
|
1492
1477
|
n.push(r(this.value, this.schema, this.model));
|
|
1493
1478
|
else {
|
|
@@ -1502,7 +1487,7 @@ const L = {
|
|
|
1502
1487
|
}
|
|
1503
1488
|
const i = (a) => {
|
|
1504
1489
|
let r = [];
|
|
1505
|
-
J(
|
|
1490
|
+
J(ri(a), (s) => {
|
|
1506
1491
|
Array.isArray(s) && s.length > 0 ? r = r.concat(s) : Se(s) && r.push(s);
|
|
1507
1492
|
}), U(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, r, this.schema);
|
|
1508
1493
|
const o = r.length === 0;
|
|
@@ -1511,7 +1496,7 @@ const L = {
|
|
|
1511
1496
|
return t ? Promise.all(n).then(i) : i(n);
|
|
1512
1497
|
},
|
|
1513
1498
|
debouncedValidate() {
|
|
1514
|
-
U(this.debouncedValidateFunc) || (this.debouncedValidateFunc =
|
|
1499
|
+
U(this.debouncedValidateFunc) || (this.debouncedValidateFunc = ze(
|
|
1515
1500
|
this.validate.bind(this),
|
|
1516
1501
|
O(this.schema, "validateDebounceTime", O(this.formOptions, "validateDebounceTime", 500))
|
|
1517
1502
|
)), this.debouncedValidateFunc();
|
|
@@ -1543,7 +1528,7 @@ const L = {
|
|
|
1543
1528
|
},
|
|
1544
1529
|
getFieldID(e, t = !1) {
|
|
1545
1530
|
const n = O(this.formOptions, "fieldIdPrefix", "");
|
|
1546
|
-
return
|
|
1531
|
+
return Pt(e, n) + (t ? "-" + ai() : "");
|
|
1547
1532
|
},
|
|
1548
1533
|
getLabelId(e) {
|
|
1549
1534
|
return `${this.getFieldID(e)}-label`;
|
|
@@ -1558,13 +1543,13 @@ const L = {
|
|
|
1558
1543
|
return e;
|
|
1559
1544
|
}
|
|
1560
1545
|
}
|
|
1561
|
-
},
|
|
1546
|
+
}, pf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1562
1547
|
__proto__: null,
|
|
1563
1548
|
default: L
|
|
1564
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1549
|
+
}, Symbol.toStringTag, { value: "Module" })), Ml = {
|
|
1565
1550
|
mixins: [L]
|
|
1566
|
-
},
|
|
1567
|
-
function
|
|
1551
|
+
}, Il = ["id", "autocomplete", "disabled", "name", "required"];
|
|
1552
|
+
function Al(e, t, n, i, a, r) {
|
|
1568
1553
|
const o = Me("attributes");
|
|
1569
1554
|
return P((d(), c("input", {
|
|
1570
1555
|
id: e.getFieldID(e.schema),
|
|
@@ -1575,8 +1560,8 @@ function Nl(e, t, n, i, a, r) {
|
|
|
1575
1560
|
name: e.schema.inputName,
|
|
1576
1561
|
class: V(e.schema.fieldClasses),
|
|
1577
1562
|
required: e.schema.required
|
|
1578
|
-
}, null, 10,
|
|
1579
|
-
[
|
|
1563
|
+
}, null, 10, Il)), [
|
|
1564
|
+
[St, e.value],
|
|
1580
1565
|
[o, "input"]
|
|
1581
1566
|
]);
|
|
1582
1567
|
}
|
|
@@ -1585,15 +1570,15 @@ const C = (e, t) => {
|
|
|
1585
1570
|
for (const [i, a] of t)
|
|
1586
1571
|
n[i] = a;
|
|
1587
1572
|
return n;
|
|
1588
|
-
},
|
|
1589
|
-
var
|
|
1590
|
-
function
|
|
1591
|
-
return
|
|
1573
|
+
}, Ol = /* @__PURE__ */ C(Ml, [["render", Al]]);
|
|
1574
|
+
var El = 4;
|
|
1575
|
+
function _n(e) {
|
|
1576
|
+
return Be(e, El);
|
|
1592
1577
|
}
|
|
1593
|
-
const
|
|
1594
|
-
function
|
|
1578
|
+
const kl = { class: "wrapper" }, Fl = ["disabled"], Ul = ["id", "checked", "disabled", "onChange", "name"], Nl = ["disabled"], Pl = { class: "info" }, Ll = /* @__PURE__ */ h("div", { class: "arrow" }, null, -1), Vl = { class: "dropList" }, Dl = ["id", "checked", "disabled", "onChange", "name"];
|
|
1579
|
+
function jl(e, t, n, i, a, r) {
|
|
1595
1580
|
const o = Me("attributes");
|
|
1596
|
-
return P((d(), c("div",
|
|
1581
|
+
return P((d(), c("div", kl, [
|
|
1597
1582
|
e.schema.listBox ? (d(), c("div", {
|
|
1598
1583
|
key: 0,
|
|
1599
1584
|
class: "listbox form-control",
|
|
@@ -1610,13 +1595,13 @@ function Yl(e, t, n, i, a, r) {
|
|
|
1610
1595
|
disabled: e.disabled || null,
|
|
1611
1596
|
onChange: (l) => r.onChanged(l, s),
|
|
1612
1597
|
name: r.getInputName(s)
|
|
1613
|
-
}, null, 40,
|
|
1598
|
+
}, null, 40, Ul), [
|
|
1614
1599
|
[o, "input"]
|
|
1615
1600
|
]),
|
|
1616
1601
|
ee(N(r.getItemName(s)), 1)
|
|
1617
1602
|
])
|
|
1618
1603
|
], 2))), 256))
|
|
1619
|
-
], 8,
|
|
1604
|
+
], 8, Fl)) : w("", !0),
|
|
1620
1605
|
e.schema.listBox ? w("", !0) : (d(), c("div", {
|
|
1621
1606
|
key: 1,
|
|
1622
1607
|
class: "combobox form-control",
|
|
@@ -1626,10 +1611,10 @@ function Yl(e, t, n, i, a, r) {
|
|
|
1626
1611
|
class: V(["mainRow", { expanded: a.comboExpanded }]),
|
|
1627
1612
|
onClick: t[0] || (t[0] = (...s) => r.onExpandCombo && r.onExpandCombo(...s))
|
|
1628
1613
|
}, [
|
|
1629
|
-
h("div",
|
|
1630
|
-
|
|
1614
|
+
h("div", Pl, N(r.selectedCount) + " selected", 1),
|
|
1615
|
+
Ll
|
|
1631
1616
|
], 2),
|
|
1632
|
-
h("div",
|
|
1617
|
+
h("div", Vl, [
|
|
1633
1618
|
a.comboExpanded ? (d(!0), c(D, { key: 0 }, z(r.items, (s) => (d(), c("div", {
|
|
1634
1619
|
class: V(["list-row", { "is-checked": r.isItemChecked(s) }])
|
|
1635
1620
|
}, [
|
|
@@ -1641,19 +1626,19 @@ function Yl(e, t, n, i, a, r) {
|
|
|
1641
1626
|
disabled: e.disabled || null,
|
|
1642
1627
|
onChange: (l) => r.onChanged(l, s),
|
|
1643
1628
|
name: r.getInputName(s)
|
|
1644
|
-
}, null, 40,
|
|
1629
|
+
}, null, 40, Dl), [
|
|
1645
1630
|
[o, "input"]
|
|
1646
1631
|
]),
|
|
1647
1632
|
ee(N(r.getItemName(s)), 1)
|
|
1648
1633
|
])
|
|
1649
1634
|
], 2))), 256)) : w("", !0)
|
|
1650
1635
|
])
|
|
1651
|
-
], 8,
|
|
1636
|
+
], 8, Nl))
|
|
1652
1637
|
])), [
|
|
1653
1638
|
[o, "wrapper"]
|
|
1654
1639
|
]);
|
|
1655
1640
|
}
|
|
1656
|
-
const
|
|
1641
|
+
const Rl = {
|
|
1657
1642
|
mixins: [L],
|
|
1658
1643
|
data() {
|
|
1659
1644
|
return {
|
|
@@ -1671,10 +1656,10 @@ const zl = {
|
|
|
1671
1656
|
},
|
|
1672
1657
|
methods: {
|
|
1673
1658
|
getInputName(e) {
|
|
1674
|
-
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ?
|
|
1659
|
+
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? ln(this.schema.inputName + "_" + this.getItemValue(e)) : ln(this.getItemValue(e));
|
|
1675
1660
|
},
|
|
1676
1661
|
getItemValue(e) {
|
|
1677
|
-
if (
|
|
1662
|
+
if (x(e)) {
|
|
1678
1663
|
if (typeof this.schema.checklistOptions < "u" && typeof this.schema.checklistOptions.value < "u")
|
|
1679
1664
|
return e[this.schema.checklistOptions.value];
|
|
1680
1665
|
if (typeof e.value < "u")
|
|
@@ -1684,7 +1669,7 @@ const zl = {
|
|
|
1684
1669
|
return e;
|
|
1685
1670
|
},
|
|
1686
1671
|
getItemName(e) {
|
|
1687
|
-
if (
|
|
1672
|
+
if (x(e)) {
|
|
1688
1673
|
if (typeof this.schema.checklistOptions < "u" && typeof this.schema.checklistOptions.name < "u")
|
|
1689
1674
|
return e[this.schema.checklistOptions.name];
|
|
1690
1675
|
if (typeof e.name < "u")
|
|
@@ -1697,11 +1682,11 @@ const zl = {
|
|
|
1697
1682
|
return this.value && this.value.indexOf(this.getItemValue(e)) !== -1;
|
|
1698
1683
|
},
|
|
1699
1684
|
onChanged(e, t) {
|
|
1700
|
-
if ((
|
|
1701
|
-
const n =
|
|
1685
|
+
if ((G(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
1686
|
+
const n = _n(this.value);
|
|
1702
1687
|
n.push(this.getItemValue(t)), this.value = n;
|
|
1703
1688
|
} else {
|
|
1704
|
-
const n =
|
|
1689
|
+
const n = _n(this.value);
|
|
1705
1690
|
n.splice(this.value.indexOf(this.getItemValue(t)), 1), this.value = n;
|
|
1706
1691
|
}
|
|
1707
1692
|
},
|
|
@@ -1709,22 +1694,22 @@ const zl = {
|
|
|
1709
1694
|
this.comboExpanded = !this.comboExpanded;
|
|
1710
1695
|
}
|
|
1711
1696
|
}
|
|
1712
|
-
},
|
|
1713
|
-
function
|
|
1714
|
-
const t =
|
|
1697
|
+
}, Bl = /* @__PURE__ */ C(Rl, [["render", jl]]);
|
|
1698
|
+
function ql(e) {
|
|
1699
|
+
const t = ge([]), n = ge(null), i = (y) => Se(y) ? Ce[y] != null ? Ce[y] : (console.warn(`'${y}' is not a validator function!`), null) : y, a = Y({
|
|
1715
1700
|
get() {
|
|
1716
1701
|
var T, p;
|
|
1717
|
-
let
|
|
1718
|
-
return U(O(e.schema, "get")) ?
|
|
1702
|
+
let y;
|
|
1703
|
+
return U(O(e.schema, "get")) ? y = e.schema.get((T = e.model) == null ? void 0 : T.value) : y = O((p = e.model) == null ? void 0 : p.value, e.schema.model), F(y);
|
|
1719
1704
|
},
|
|
1720
|
-
set(
|
|
1705
|
+
set(y) {
|
|
1721
1706
|
const T = a;
|
|
1722
|
-
|
|
1707
|
+
y = A(y), U(y) ? y(y, T) : s(y, T);
|
|
1723
1708
|
}
|
|
1724
|
-
}), r = (
|
|
1725
|
-
var
|
|
1709
|
+
}), r = (y) => {
|
|
1710
|
+
var B;
|
|
1726
1711
|
l();
|
|
1727
|
-
const T = (
|
|
1712
|
+
const T = (B = e.schema) == null ? void 0 : B.validator, p = O(e.formOptions, "validateAsync", !1);
|
|
1728
1713
|
let _ = [];
|
|
1729
1714
|
if (T && e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
1730
1715
|
const g = [];
|
|
@@ -1736,69 +1721,69 @@ function Gl(e) {
|
|
|
1736
1721
|
_.push(f(a.value, e.schema, (S = e.model) == null ? void 0 : S.value));
|
|
1737
1722
|
else {
|
|
1738
1723
|
const Z = f(a.value, e.schema, (q = e.model) == null ? void 0 : q.value);
|
|
1739
|
-
Z && U(Z.then) ? Z.then((
|
|
1740
|
-
|
|
1741
|
-
const
|
|
1742
|
-
e.emitValidated && e.emitValidated({ isValid:
|
|
1724
|
+
Z && U(Z.then) ? Z.then((Dt) => {
|
|
1725
|
+
Dt && (t.value = t.value.concat(Dt));
|
|
1726
|
+
const Ni = t.value.length === 0;
|
|
1727
|
+
e.emitValidated && e.emitValidated({ isValid: Ni, errors: t.value, field: e.schema });
|
|
1743
1728
|
}) : Z && (_ = _.concat(Z));
|
|
1744
1729
|
}
|
|
1745
1730
|
});
|
|
1746
1731
|
}
|
|
1747
|
-
const
|
|
1732
|
+
const R = (g) => {
|
|
1748
1733
|
var S, q;
|
|
1749
1734
|
let f = [];
|
|
1750
|
-
if (J(
|
|
1735
|
+
if (J(ri(g), (Z) => {
|
|
1751
1736
|
Array.isArray(Z) && Z.length > 0 ? f = f.concat(Z) : Se(Z) && f.push(Z);
|
|
1752
|
-
}), U((S = e.schema) == null ? void 0 : S.onValidated) && e.schema.onValidated((q = e.model) == null ? void 0 : q.value, f, e.schema), !
|
|
1737
|
+
}), U((S = e.schema) == null ? void 0 : S.onValidated) && e.schema.onValidated((q = e.model) == null ? void 0 : q.value, f, e.schema), !y) {
|
|
1753
1738
|
const Z = f.length === 0;
|
|
1754
1739
|
e.emitValidated && e.emitValidated({ isValid: Z, errors: f, field: e.schema });
|
|
1755
1740
|
}
|
|
1756
1741
|
return g = f, f;
|
|
1757
1742
|
};
|
|
1758
|
-
return p ? Promise.all(_).then(
|
|
1743
|
+
return p ? Promise.all(_).then(R) : R(_);
|
|
1759
1744
|
}, o = () => {
|
|
1760
|
-
U(n.value) ? n.value() : n.value =
|
|
1745
|
+
U(n.value) ? n.value() : n.value = ze(
|
|
1761
1746
|
r,
|
|
1762
1747
|
O(e.schema, "validateDebounceTime", O(e.formOptions, "validateDebounceTime", 500))
|
|
1763
1748
|
);
|
|
1764
|
-
}, s = (
|
|
1765
|
-
var _,
|
|
1749
|
+
}, s = (y, T) => {
|
|
1750
|
+
var _, R, B;
|
|
1766
1751
|
let p = !1;
|
|
1767
|
-
U(e.schema.set) ? (e.schema.set((_ = e.model) == null ? void 0 : _.value,
|
|
1752
|
+
U(e.schema.set) ? (e.schema.set((_ = e.model) == null ? void 0 : _.value, y), p = !0) : e.schema.model && (u(e.schema.model, y), p = !0), p && (e.emitModelUpdated && ((R = e.model) != null && R.value) && e.emitModelUpdated({ value: y, model: e.schema.model }), U(e.schema.onChanged) && e.schema.onChanged((B = e.model) == null ? void 0 : B.value, y, T, e.schema), O(e.formOptions, "validateAfterChanged", !1) === !0 && (O(e.schema, "validateDebounceTime", O(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : r()));
|
|
1768
1753
|
}, l = () => {
|
|
1769
1754
|
t.value.splice(0);
|
|
1770
|
-
}, u = (
|
|
1755
|
+
}, u = (y, T) => {
|
|
1771
1756
|
var f;
|
|
1772
|
-
let p =
|
|
1757
|
+
let p = y.replace(/\[(\w+)\]/g, ".$1");
|
|
1773
1758
|
p = p.replace(/^\./, "");
|
|
1774
|
-
let _ = ((f = e.model) == null ? void 0 : f.value) || {},
|
|
1775
|
-
const
|
|
1776
|
-
for (;
|
|
1777
|
-
const S = R
|
|
1778
|
-
if (
|
|
1759
|
+
let _ = ((f = e.model) == null ? void 0 : f.value) || {}, R = 0;
|
|
1760
|
+
const B = p.split("."), g = B.length;
|
|
1761
|
+
for (; R < g; ) {
|
|
1762
|
+
const S = B[R];
|
|
1763
|
+
if (R < g - 1)
|
|
1779
1764
|
_[S] !== void 0 || (_[S] = {}), _ = _[S];
|
|
1780
1765
|
else {
|
|
1781
1766
|
_[S] = T;
|
|
1782
1767
|
return;
|
|
1783
1768
|
}
|
|
1784
|
-
++
|
|
1769
|
+
++R;
|
|
1785
1770
|
}
|
|
1786
|
-
}, m = (
|
|
1771
|
+
}, m = (y, T = !1) => {
|
|
1787
1772
|
const p = O(e.formOptions, "fieldIdPrefix", "");
|
|
1788
|
-
return
|
|
1789
|
-
}, b = (
|
|
1773
|
+
return Pt(y, p) + (T ? "-" + ai() : "");
|
|
1774
|
+
}, b = (y) => `${m(y)}-label`, v = () => O(e.schema, "fieldClasses", []), F = (y) => y, A = (y) => y;
|
|
1790
1775
|
return {
|
|
1791
1776
|
value: a,
|
|
1792
1777
|
clearValidationErrors: l,
|
|
1793
1778
|
getFieldID: m,
|
|
1794
1779
|
getLabelId: b,
|
|
1795
|
-
getFieldClasses:
|
|
1780
|
+
getFieldClasses: v,
|
|
1796
1781
|
updateModelValue: s
|
|
1797
1782
|
};
|
|
1798
1783
|
}
|
|
1799
|
-
const
|
|
1800
|
-
useAbstractFields:
|
|
1801
|
-
},
|
|
1784
|
+
const fi = {
|
|
1785
|
+
useAbstractFields: ql
|
|
1786
|
+
}, Kl = { class: "form-field-wrapper" }, Hl = /* @__PURE__ */ ce({
|
|
1802
1787
|
__name: "FieldInput",
|
|
1803
1788
|
props: {
|
|
1804
1789
|
disabled: {
|
|
@@ -1838,7 +1823,7 @@ const pi = {
|
|
|
1838
1823
|
},
|
|
1839
1824
|
emits: ["modelUpdated"],
|
|
1840
1825
|
setup(e, { expose: t, emit: n }) {
|
|
1841
|
-
const i = e, a = n, r =
|
|
1826
|
+
const i = e, a = n, r = Mn(i), { updateModelValue: o, getFieldID: s, clearValidationErrors: l, value: u } = fi.useAbstractFields({
|
|
1842
1827
|
model: r.model,
|
|
1843
1828
|
schema: i.schema,
|
|
1844
1829
|
formOptions: i.formOptions,
|
|
@@ -1857,31 +1842,31 @@ const pi = {
|
|
|
1857
1842
|
date: "YYYY-MM-DD",
|
|
1858
1843
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
1859
1844
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
1860
|
-
},
|
|
1845
|
+
}, v = (p, _) => {
|
|
1861
1846
|
var f, S;
|
|
1862
|
-
let
|
|
1863
|
-
const
|
|
1864
|
-
g && ((f = i.schema) != null && f.format ?
|
|
1847
|
+
let R = p;
|
|
1848
|
+
const B = b[m.value] || "", g = oe.parse(p, B);
|
|
1849
|
+
g && ((f = i.schema) != null && f.format ? R = oe.format(g, (S = i.schema) == null ? void 0 : S.format) : R = g.valueOf()), o(R, _);
|
|
1865
1850
|
}, F = (p, _) => {
|
|
1866
|
-
|
|
1851
|
+
Tt(p) || (p = NaN), o(p, _);
|
|
1867
1852
|
}, A = (p) => {
|
|
1868
1853
|
let _ = p;
|
|
1869
1854
|
switch (m.value) {
|
|
1870
1855
|
case "number":
|
|
1871
1856
|
case "range":
|
|
1872
|
-
|
|
1857
|
+
Tt(parseFloat(p)) && (_ = parseFloat(p));
|
|
1873
1858
|
break;
|
|
1874
1859
|
}
|
|
1875
1860
|
u.value = _, o(_, p);
|
|
1876
|
-
},
|
|
1861
|
+
}, y = ge(null), T = () => {
|
|
1877
1862
|
var p;
|
|
1878
|
-
U(
|
|
1863
|
+
U(y.value) && ((p = y.value) == null || p.flush());
|
|
1879
1864
|
};
|
|
1880
|
-
return
|
|
1865
|
+
return In(() => {
|
|
1881
1866
|
switch (m.value) {
|
|
1882
1867
|
case "number":
|
|
1883
1868
|
case "range":
|
|
1884
|
-
|
|
1869
|
+
y.value = ze(
|
|
1885
1870
|
(p, _) => {
|
|
1886
1871
|
F(p, _);
|
|
1887
1872
|
},
|
|
@@ -1895,9 +1880,9 @@ const pi = {
|
|
|
1895
1880
|
case "date":
|
|
1896
1881
|
case "datetime":
|
|
1897
1882
|
case "datetime-local":
|
|
1898
|
-
|
|
1883
|
+
y.value = ze(
|
|
1899
1884
|
(p, _) => {
|
|
1900
|
-
|
|
1885
|
+
v(p, _);
|
|
1901
1886
|
},
|
|
1902
1887
|
parseInt(O(i.schema, "debounceFormatTimeout", 1e3)),
|
|
1903
1888
|
{
|
|
@@ -1907,12 +1892,12 @@ const pi = {
|
|
|
1907
1892
|
);
|
|
1908
1893
|
break;
|
|
1909
1894
|
}
|
|
1910
|
-
}),
|
|
1895
|
+
}), Pi(() => {
|
|
1911
1896
|
m.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : m.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : m.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
1912
1897
|
}), (p, _) => {
|
|
1913
|
-
const
|
|
1914
|
-
return d(), c("div",
|
|
1915
|
-
E(
|
|
1898
|
+
const R = k("KInput");
|
|
1899
|
+
return d(), c("div", Kl, [
|
|
1900
|
+
E(R, Fe(p.$attrs, {
|
|
1916
1901
|
id: we(s)(e.schema),
|
|
1917
1902
|
autocomplete: e.schema.autocomplete,
|
|
1918
1903
|
class: e.schema.fieldClasses,
|
|
@@ -1936,7 +1921,7 @@ const pi = {
|
|
|
1936
1921
|
]);
|
|
1937
1922
|
};
|
|
1938
1923
|
}
|
|
1939
|
-
}),
|
|
1924
|
+
}), pi = /* @__PURE__ */ C(Hl, [["__scopeId", "data-v-b6d4701b"]]), Yl = /* @__PURE__ */ ce({
|
|
1940
1925
|
__name: "FieldLabel",
|
|
1941
1926
|
props: {
|
|
1942
1927
|
disabled: {
|
|
@@ -1963,7 +1948,7 @@ const pi = {
|
|
|
1963
1948
|
}
|
|
1964
1949
|
},
|
|
1965
1950
|
setup(e) {
|
|
1966
|
-
const t = e, n =
|
|
1951
|
+
const t = e, n = Mn(t), { getFieldID: i, value: a } = fi.useAbstractFields({
|
|
1967
1952
|
model: n.model,
|
|
1968
1953
|
schema: t.schema,
|
|
1969
1954
|
formOptions: t.formOptions
|
|
@@ -1984,8 +1969,8 @@ const pi = {
|
|
|
1984
1969
|
], 2);
|
|
1985
1970
|
};
|
|
1986
1971
|
}
|
|
1987
|
-
}),
|
|
1988
|
-
function
|
|
1972
|
+
}), zl = /* @__PURE__ */ C(Yl, [["__scopeId", "data-v-852ab959"]]), Gl = ["disabled"], xl = ["id", "disabled", "name", "onClick", "value", "checked", "required"];
|
|
1973
|
+
function Zl(e, t, n, i, a, r) {
|
|
1989
1974
|
const o = Me("attributes");
|
|
1990
1975
|
return P((d(), c("div", {
|
|
1991
1976
|
class: "radio-list",
|
|
@@ -2004,18 +1989,18 @@ function td(e, t, n, i, a, r) {
|
|
|
2004
1989
|
checked: r.isItemChecked(s) || null,
|
|
2005
1990
|
class: V(e.schema.fieldClasses),
|
|
2006
1991
|
required: e.schema.required
|
|
2007
|
-
}, null, 10,
|
|
1992
|
+
}, null, 10, xl), [
|
|
2008
1993
|
[o, "input"]
|
|
2009
1994
|
]),
|
|
2010
1995
|
ee(N(r.getItemName(s)), 1)
|
|
2011
1996
|
], 2)), [
|
|
2012
1997
|
[o, "label"]
|
|
2013
1998
|
])), 256))
|
|
2014
|
-
], 8,
|
|
1999
|
+
], 8, Gl)), [
|
|
2015
2000
|
[o, "wrapper"]
|
|
2016
2001
|
]);
|
|
2017
2002
|
}
|
|
2018
|
-
const
|
|
2003
|
+
const Wl = {
|
|
2019
2004
|
mixins: [L],
|
|
2020
2005
|
computed: {
|
|
2021
2006
|
items() {
|
|
@@ -2028,7 +2013,7 @@ const nd = {
|
|
|
2028
2013
|
},
|
|
2029
2014
|
methods: {
|
|
2030
2015
|
getItemValue(e) {
|
|
2031
|
-
if (
|
|
2016
|
+
if (x(e)) {
|
|
2032
2017
|
if (typeof this.schema.radiosOptions < "u" && typeof this.schema.radiosOptions.value < "u")
|
|
2033
2018
|
return e[this.schema.radiosOptions.value];
|
|
2034
2019
|
if (typeof e.value < "u")
|
|
@@ -2038,7 +2023,7 @@ const nd = {
|
|
|
2038
2023
|
return e;
|
|
2039
2024
|
},
|
|
2040
2025
|
getItemName(e) {
|
|
2041
|
-
if (
|
|
2026
|
+
if (x(e)) {
|
|
2042
2027
|
if (typeof this.schema.radiosOptions < "u" && typeof this.schema.radiosOptions.name < "u")
|
|
2043
2028
|
return e[this.schema.radiosOptions.name];
|
|
2044
2029
|
if (typeof e.name < "u")
|
|
@@ -2066,237 +2051,235 @@ const nd = {
|
|
|
2066
2051
|
return U(t) ? t(this.model) : t;
|
|
2067
2052
|
}
|
|
2068
2053
|
}
|
|
2069
|
-
},
|
|
2070
|
-
function
|
|
2054
|
+
}, Jl = /* @__PURE__ */ C(Wl, [["render", Zl]]);
|
|
2055
|
+
function Xl(e, t) {
|
|
2071
2056
|
for (var n = -1, i = e == null ? 0 : e.length; ++n < i; )
|
|
2072
2057
|
if (t(e[n], n, e))
|
|
2073
2058
|
return !0;
|
|
2074
2059
|
return !1;
|
|
2075
2060
|
}
|
|
2076
|
-
var
|
|
2077
|
-
function
|
|
2078
|
-
var o = n &
|
|
2061
|
+
var Ql = 1, ed = 2;
|
|
2062
|
+
function gi(e, t, n, i, a, r) {
|
|
2063
|
+
var o = n & Ql, s = e.length, l = t.length;
|
|
2079
2064
|
if (s != l && !(o && l > s))
|
|
2080
2065
|
return !1;
|
|
2081
2066
|
var u = r.get(e), m = r.get(t);
|
|
2082
2067
|
if (u && m)
|
|
2083
2068
|
return u == t && m == e;
|
|
2084
|
-
var b = -1,
|
|
2069
|
+
var b = -1, v = !0, F = n & ed ? new Ge() : void 0;
|
|
2085
2070
|
for (r.set(e, t), r.set(t, e); ++b < s; ) {
|
|
2086
|
-
var A = e[b],
|
|
2071
|
+
var A = e[b], y = t[b];
|
|
2087
2072
|
if (i)
|
|
2088
|
-
var T = o ? i(
|
|
2073
|
+
var T = o ? i(y, A, b, t, e, r) : i(A, y, b, e, t, r);
|
|
2089
2074
|
if (T !== void 0) {
|
|
2090
2075
|
if (T)
|
|
2091
2076
|
continue;
|
|
2092
|
-
|
|
2077
|
+
v = !1;
|
|
2093
2078
|
break;
|
|
2094
2079
|
}
|
|
2095
2080
|
if (F) {
|
|
2096
|
-
if (!
|
|
2097
|
-
if (!
|
|
2081
|
+
if (!Xl(t, function(p, _) {
|
|
2082
|
+
if (!ii(F, _) && (A === p || a(A, p, n, i, r)))
|
|
2098
2083
|
return F.push(_);
|
|
2099
2084
|
})) {
|
|
2100
|
-
|
|
2085
|
+
v = !1;
|
|
2101
2086
|
break;
|
|
2102
2087
|
}
|
|
2103
|
-
} else if (!(A ===
|
|
2104
|
-
|
|
2088
|
+
} else if (!(A === y || a(A, y, n, i, r))) {
|
|
2089
|
+
v = !1;
|
|
2105
2090
|
break;
|
|
2106
2091
|
}
|
|
2107
2092
|
}
|
|
2108
|
-
return r.delete(e), r.delete(t),
|
|
2093
|
+
return r.delete(e), r.delete(t), v;
|
|
2109
2094
|
}
|
|
2110
|
-
function
|
|
2095
|
+
function td(e) {
|
|
2111
2096
|
var t = -1, n = Array(e.size);
|
|
2112
2097
|
return e.forEach(function(i, a) {
|
|
2113
2098
|
n[++t] = [a, i];
|
|
2114
2099
|
}), n;
|
|
2115
2100
|
}
|
|
2116
|
-
var
|
|
2117
|
-
function
|
|
2101
|
+
var nd = 1, id = 2, rd = "[object Boolean]", ad = "[object Date]", sd = "[object Error]", od = "[object Map]", ld = "[object Number]", dd = "[object RegExp]", ud = "[object Set]", cd = "[object String]", hd = "[object Symbol]", md = "[object ArrayBuffer]", fd = "[object DataView]", wn = de ? de.prototype : void 0, pt = wn ? wn.valueOf : void 0;
|
|
2102
|
+
function pd(e, t, n, i, a, r, o) {
|
|
2118
2103
|
switch (n) {
|
|
2119
|
-
case
|
|
2104
|
+
case fd:
|
|
2120
2105
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
2121
2106
|
return !1;
|
|
2122
2107
|
e = e.buffer, t = t.buffer;
|
|
2123
|
-
case
|
|
2124
|
-
return !(e.byteLength != t.byteLength || !r(new
|
|
2125
|
-
case
|
|
2126
|
-
case
|
|
2127
|
-
case
|
|
2128
|
-
return
|
|
2129
|
-
case
|
|
2108
|
+
case md:
|
|
2109
|
+
return !(e.byteLength != t.byteLength || !r(new Je(e), new Je(t)));
|
|
2110
|
+
case rd:
|
|
2111
|
+
case ad:
|
|
2112
|
+
case ld:
|
|
2113
|
+
return xe(+e, +t);
|
|
2114
|
+
case sd:
|
|
2130
2115
|
return e.name == t.name && e.message == t.message;
|
|
2131
|
-
case
|
|
2132
|
-
case
|
|
2116
|
+
case dd:
|
|
2117
|
+
case cd:
|
|
2133
2118
|
return e == t + "";
|
|
2134
|
-
case
|
|
2135
|
-
var s =
|
|
2136
|
-
case
|
|
2137
|
-
var l = i &
|
|
2138
|
-
if (s || (s =
|
|
2119
|
+
case od:
|
|
2120
|
+
var s = td;
|
|
2121
|
+
case ud:
|
|
2122
|
+
var l = i & nd;
|
|
2123
|
+
if (s || (s = Lt), e.size != t.size && !l)
|
|
2139
2124
|
return !1;
|
|
2140
2125
|
var u = o.get(e);
|
|
2141
2126
|
if (u)
|
|
2142
2127
|
return u == t;
|
|
2143
|
-
i |=
|
|
2144
|
-
var m =
|
|
2128
|
+
i |= id, o.set(e, t);
|
|
2129
|
+
var m = gi(s(e), s(t), i, a, r, o);
|
|
2145
2130
|
return o.delete(e), m;
|
|
2146
|
-
case
|
|
2147
|
-
if (
|
|
2148
|
-
return
|
|
2131
|
+
case hd:
|
|
2132
|
+
if (pt)
|
|
2133
|
+
return pt.call(e) == pt.call(t);
|
|
2149
2134
|
}
|
|
2150
2135
|
return !1;
|
|
2151
2136
|
}
|
|
2152
|
-
var
|
|
2153
|
-
function
|
|
2154
|
-
var o = n &
|
|
2137
|
+
var gd = 1, yd = Object.prototype, bd = yd.hasOwnProperty;
|
|
2138
|
+
function vd(e, t, n, i, a, r) {
|
|
2139
|
+
var o = n & gd, s = yt(e), l = s.length, u = yt(t), m = u.length;
|
|
2155
2140
|
if (l != m && !o)
|
|
2156
2141
|
return !1;
|
|
2157
2142
|
for (var b = l; b--; ) {
|
|
2158
|
-
var
|
|
2159
|
-
if (!(o ?
|
|
2143
|
+
var v = s[b];
|
|
2144
|
+
if (!(o ? v in t : bd.call(t, v)))
|
|
2160
2145
|
return !1;
|
|
2161
2146
|
}
|
|
2162
2147
|
var F = r.get(e), A = r.get(t);
|
|
2163
2148
|
if (F && A)
|
|
2164
2149
|
return F == t && A == e;
|
|
2165
|
-
var
|
|
2150
|
+
var y = !0;
|
|
2166
2151
|
r.set(e, t), r.set(t, e);
|
|
2167
2152
|
for (var T = o; ++b < l; ) {
|
|
2168
|
-
|
|
2169
|
-
var p = e[
|
|
2153
|
+
v = s[b];
|
|
2154
|
+
var p = e[v], _ = t[v];
|
|
2170
2155
|
if (i)
|
|
2171
|
-
var
|
|
2172
|
-
if (!(
|
|
2173
|
-
|
|
2156
|
+
var R = o ? i(_, p, v, t, e, r) : i(p, _, v, e, t, r);
|
|
2157
|
+
if (!(R === void 0 ? p === _ || a(p, _, n, i, r) : R)) {
|
|
2158
|
+
y = !1;
|
|
2174
2159
|
break;
|
|
2175
2160
|
}
|
|
2176
|
-
T || (T =
|
|
2161
|
+
T || (T = v == "constructor");
|
|
2177
2162
|
}
|
|
2178
|
-
if (
|
|
2179
|
-
var
|
|
2180
|
-
|
|
2163
|
+
if (y && !T) {
|
|
2164
|
+
var B = e.constructor, g = t.constructor;
|
|
2165
|
+
B != g && "constructor" in e && "constructor" in t && !(typeof B == "function" && B instanceof B && typeof g == "function" && g instanceof g) && (y = !1);
|
|
2181
2166
|
}
|
|
2182
|
-
return r.delete(e), r.delete(t),
|
|
2167
|
+
return r.delete(e), r.delete(t), y;
|
|
2183
2168
|
}
|
|
2184
|
-
var
|
|
2185
|
-
function
|
|
2186
|
-
var o = te(e), s = te(t), l = o ?
|
|
2187
|
-
l = l ==
|
|
2188
|
-
var m = l ==
|
|
2189
|
-
if (
|
|
2190
|
-
if (!
|
|
2169
|
+
var _d = 1, Tn = "[object Arguments]", Sn = "[object Array]", Ze = "[object Object]", wd = Object.prototype, $n = wd.hasOwnProperty;
|
|
2170
|
+
function Td(e, t, n, i, a, r) {
|
|
2171
|
+
var o = te(e), s = te(t), l = o ? Sn : ie(e), u = s ? Sn : ie(t);
|
|
2172
|
+
l = l == Tn ? Ze : l, u = u == Tn ? Ze : u;
|
|
2173
|
+
var m = l == Ze, b = u == Ze, v = l == u;
|
|
2174
|
+
if (v && Ke(e)) {
|
|
2175
|
+
if (!Ke(t))
|
|
2191
2176
|
return !1;
|
|
2192
2177
|
o = !0, m = !1;
|
|
2193
2178
|
}
|
|
2194
|
-
if (
|
|
2195
|
-
return r || (r = new
|
|
2196
|
-
if (!(n &
|
|
2197
|
-
var F = m &&
|
|
2179
|
+
if (v && !m)
|
|
2180
|
+
return r || (r = new le()), o || Et(e) ? gi(e, t, n, i, a, r) : pd(e, t, l, n, i, a, r);
|
|
2181
|
+
if (!(n & _d)) {
|
|
2182
|
+
var F = m && $n.call(e, "__wrapped__"), A = b && $n.call(t, "__wrapped__");
|
|
2198
2183
|
if (F || A) {
|
|
2199
|
-
var
|
|
2200
|
-
return r || (r = new
|
|
2184
|
+
var y = F ? e.value() : e, T = A ? t.value() : t;
|
|
2185
|
+
return r || (r = new le()), a(y, T, n, i, r);
|
|
2201
2186
|
}
|
|
2202
2187
|
}
|
|
2203
|
-
return
|
|
2188
|
+
return v ? (r || (r = new le()), vd(e, t, n, i, a, r)) : !1;
|
|
2204
2189
|
}
|
|
2205
|
-
function
|
|
2206
|
-
return e === t ? !0 : e == null || t == null || !
|
|
2190
|
+
function Vt(e, t, n, i, a) {
|
|
2191
|
+
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t : Td(e, t, n, i, Vt, a);
|
|
2207
2192
|
}
|
|
2208
|
-
var
|
|
2209
|
-
function
|
|
2210
|
-
var a = n.length, r = a
|
|
2193
|
+
var Sd = 1, $d = 2;
|
|
2194
|
+
function Cd(e, t, n, i) {
|
|
2195
|
+
var a = n.length, r = a;
|
|
2211
2196
|
if (e == null)
|
|
2212
2197
|
return !r;
|
|
2213
2198
|
for (e = Object(e); a--; ) {
|
|
2214
|
-
var
|
|
2215
|
-
if (o
|
|
2199
|
+
var o = n[a];
|
|
2200
|
+
if (o[2] ? o[1] !== e[o[0]] : !(o[0] in e))
|
|
2216
2201
|
return !1;
|
|
2217
2202
|
}
|
|
2218
2203
|
for (; ++a < r; ) {
|
|
2219
|
-
|
|
2220
|
-
var
|
|
2221
|
-
if (o
|
|
2222
|
-
if (
|
|
2204
|
+
o = n[a];
|
|
2205
|
+
var s = o[0], l = e[s], u = o[1];
|
|
2206
|
+
if (o[2]) {
|
|
2207
|
+
if (l === void 0 && !(s in e))
|
|
2223
2208
|
return !1;
|
|
2224
2209
|
} else {
|
|
2225
|
-
var
|
|
2226
|
-
if (i)
|
|
2227
|
-
var y = i(u, m, l, e, t, b);
|
|
2228
|
-
if (!(y === void 0 ? Dt(m, u, Od | Ed, i, b) : y))
|
|
2210
|
+
var m = new le(), b;
|
|
2211
|
+
if (!(b === void 0 ? Vt(u, l, Sd | $d, i, m) : b))
|
|
2229
2212
|
return !1;
|
|
2230
2213
|
}
|
|
2231
2214
|
}
|
|
2232
2215
|
return !0;
|
|
2233
2216
|
}
|
|
2234
|
-
function
|
|
2235
|
-
return e === e && !
|
|
2217
|
+
function yi(e) {
|
|
2218
|
+
return e === e && !x(e);
|
|
2236
2219
|
}
|
|
2237
|
-
function
|
|
2238
|
-
for (var t =
|
|
2220
|
+
function Md(e) {
|
|
2221
|
+
for (var t = Ve(e), n = t.length; n--; ) {
|
|
2239
2222
|
var i = t[n], a = e[i];
|
|
2240
|
-
t[n] = [i, a,
|
|
2223
|
+
t[n] = [i, a, yi(a)];
|
|
2241
2224
|
}
|
|
2242
2225
|
return t;
|
|
2243
2226
|
}
|
|
2244
|
-
function
|
|
2227
|
+
function bi(e, t) {
|
|
2245
2228
|
return function(n) {
|
|
2246
2229
|
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
2247
2230
|
};
|
|
2248
2231
|
}
|
|
2249
|
-
function
|
|
2250
|
-
var t =
|
|
2251
|
-
return t.length == 1 && t[0][2] ?
|
|
2252
|
-
return n === e ||
|
|
2232
|
+
function Id(e) {
|
|
2233
|
+
var t = Md(e);
|
|
2234
|
+
return t.length == 1 && t[0][2] ? bi(t[0][0], t[0][1]) : function(n) {
|
|
2235
|
+
return n === e || Cd(n, e, t);
|
|
2253
2236
|
};
|
|
2254
2237
|
}
|
|
2255
|
-
function
|
|
2238
|
+
function Ad(e, t) {
|
|
2256
2239
|
return e != null && t in Object(e);
|
|
2257
2240
|
}
|
|
2258
|
-
function
|
|
2259
|
-
t =
|
|
2241
|
+
function Od(e, t, n) {
|
|
2242
|
+
t = qn(t, e);
|
|
2260
2243
|
for (var i = -1, a = t.length, r = !1; ++i < a; ) {
|
|
2261
|
-
var o =
|
|
2244
|
+
var o = st(t[i]);
|
|
2262
2245
|
if (!(r = e != null && n(e, o)))
|
|
2263
2246
|
break;
|
|
2264
2247
|
e = e[o];
|
|
2265
2248
|
}
|
|
2266
|
-
return r || ++i != a ? r : (a = e == null ? 0 : e.length, !!a &&
|
|
2249
|
+
return r || ++i != a ? r : (a = e == null ? 0 : e.length, !!a && At(a) && It(o, a) && (te(e) || Mt(e)));
|
|
2267
2250
|
}
|
|
2268
|
-
function
|
|
2269
|
-
return e != null &&
|
|
2251
|
+
function Ed(e, t) {
|
|
2252
|
+
return e != null && Od(e, t, Ad);
|
|
2270
2253
|
}
|
|
2271
|
-
var
|
|
2272
|
-
function
|
|
2273
|
-
return
|
|
2254
|
+
var kd = 1, Fd = 2;
|
|
2255
|
+
function Ud(e, t) {
|
|
2256
|
+
return kt(e) && yi(t) ? bi(st(e), t) : function(n) {
|
|
2274
2257
|
var i = O(n, e);
|
|
2275
|
-
return i === void 0 && i === t ?
|
|
2258
|
+
return i === void 0 && i === t ? Ed(n, e) : Vt(t, i, kd | Fd);
|
|
2276
2259
|
};
|
|
2277
2260
|
}
|
|
2278
|
-
function
|
|
2261
|
+
function Nd(e) {
|
|
2279
2262
|
return function(t) {
|
|
2280
2263
|
return t == null ? void 0 : t[e];
|
|
2281
2264
|
};
|
|
2282
2265
|
}
|
|
2283
|
-
function
|
|
2266
|
+
function Pd(e) {
|
|
2284
2267
|
return function(t) {
|
|
2285
|
-
return
|
|
2268
|
+
return Kn(t, e);
|
|
2286
2269
|
};
|
|
2287
2270
|
}
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
2271
|
+
function Ld(e) {
|
|
2272
|
+
return kt(e) ? Nd(st(e)) : Pd(e);
|
|
2290
2273
|
}
|
|
2291
|
-
function
|
|
2292
|
-
return typeof e == "function" ? e : e == null ?
|
|
2274
|
+
function vi(e) {
|
|
2275
|
+
return typeof e == "function" ? e : e == null ? nt : typeof e == "object" ? te(e) ? Ud(e[0], e[1]) : Id(e) : Ld(e);
|
|
2293
2276
|
}
|
|
2294
|
-
function
|
|
2277
|
+
function Vd(e) {
|
|
2295
2278
|
return function(t, n, i) {
|
|
2296
2279
|
var a = Object(t);
|
|
2297
|
-
if (!
|
|
2298
|
-
var r =
|
|
2299
|
-
t =
|
|
2280
|
+
if (!Le(t)) {
|
|
2281
|
+
var r = vi(n);
|
|
2282
|
+
t = Ve(t), n = function(s) {
|
|
2300
2283
|
return r(a[s], s, a);
|
|
2301
2284
|
};
|
|
2302
2285
|
}
|
|
@@ -2304,17 +2287,17 @@ function Kd(e) {
|
|
|
2304
2287
|
return o > -1 ? a[r ? t[o] : o] : void 0;
|
|
2305
2288
|
};
|
|
2306
2289
|
}
|
|
2307
|
-
var
|
|
2308
|
-
function
|
|
2290
|
+
var Dd = Math.max;
|
|
2291
|
+
function jd(e, t, n) {
|
|
2309
2292
|
var i = e == null ? 0 : e.length;
|
|
2310
2293
|
if (!i)
|
|
2311
2294
|
return -1;
|
|
2312
|
-
var a = n == null ? 0 :
|
|
2313
|
-
return a < 0 && (a =
|
|
2295
|
+
var a = n == null ? 0 : oi(n);
|
|
2296
|
+
return a < 0 && (a = Dd(i + a, 0)), ni(e, vi(t), a);
|
|
2314
2297
|
}
|
|
2315
|
-
var
|
|
2316
|
-
const
|
|
2317
|
-
function
|
|
2298
|
+
var Rd = Vd(jd);
|
|
2299
|
+
const Bd = ["disabled", "name", "id"], qd = ["disabled"], Kd = ["label"], Hd = ["value"], Yd = ["value"];
|
|
2300
|
+
function zd(e, t, n, i, a, r) {
|
|
2318
2301
|
const o = Me("attributes");
|
|
2319
2302
|
return P((d(), c("select", {
|
|
2320
2303
|
class: V(["form-control", e.schema.fieldClasses]),
|
|
@@ -2327,7 +2310,7 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2327
2310
|
key: 0,
|
|
2328
2311
|
disabled: e.schema.required || null,
|
|
2329
2312
|
value: null
|
|
2330
|
-
}, N(r.selectOptions.noneSelectedText || "<Nothing selected>"), 9,
|
|
2313
|
+
}, N(r.selectOptions.noneSelectedText || "<Nothing selected>"), 9, qd)),
|
|
2331
2314
|
(d(!0), c(D, null, z(r.items, (s) => (d(), c(D, null, [
|
|
2332
2315
|
s.group ? (d(), c("optgroup", {
|
|
2333
2316
|
key: 0,
|
|
@@ -2335,19 +2318,19 @@ function Xd(e, t, n, i, a, r) {
|
|
|
2335
2318
|
}, [
|
|
2336
2319
|
s.ops ? (d(!0), c(D, { key: 0 }, z(s.ops, (l) => (d(), c("option", {
|
|
2337
2320
|
value: r.getItemValue(l)
|
|
2338
|
-
}, N(r.getItemName(l)), 9,
|
|
2339
|
-
], 8,
|
|
2321
|
+
}, N(r.getItemName(l)), 9, Hd))), 256)) : w("", !0)
|
|
2322
|
+
], 8, Kd)) : w("", !0),
|
|
2340
2323
|
s.group ? w("", !0) : (d(), c("option", {
|
|
2341
2324
|
key: 1,
|
|
2342
2325
|
value: r.getItemValue(s)
|
|
2343
|
-
}, N(r.getItemName(s)), 9,
|
|
2326
|
+
}, N(r.getItemName(s)), 9, Yd))
|
|
2344
2327
|
], 64))), 256))
|
|
2345
|
-
], 10,
|
|
2346
|
-
[
|
|
2328
|
+
], 10, Bd)), [
|
|
2329
|
+
[$t, e.value],
|
|
2347
2330
|
[o, "input"]
|
|
2348
2331
|
]);
|
|
2349
2332
|
}
|
|
2350
|
-
const
|
|
2333
|
+
const Gd = {
|
|
2351
2334
|
mixins: [L],
|
|
2352
2335
|
computed: {
|
|
2353
2336
|
selectOptions() {
|
|
@@ -2360,13 +2343,13 @@ const Qd = {
|
|
|
2360
2343
|
},
|
|
2361
2344
|
methods: {
|
|
2362
2345
|
formatValueToField(e) {
|
|
2363
|
-
return
|
|
2346
|
+
return G(e) ? null : e;
|
|
2364
2347
|
},
|
|
2365
2348
|
groupValues(e) {
|
|
2366
2349
|
const t = [];
|
|
2367
2350
|
let n = {};
|
|
2368
2351
|
return e.forEach((i) => {
|
|
2369
|
-
n = null, i.group &&
|
|
2352
|
+
n = null, i.group && x(i) ? (n = Rd(t, (a) => a.group === i.group), n ? n.ops.push({
|
|
2370
2353
|
id: i.id,
|
|
2371
2354
|
name: i.name
|
|
2372
2355
|
}) : (n = {
|
|
@@ -2384,7 +2367,7 @@ const Qd = {
|
|
|
2384
2367
|
throw new Error("Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
2385
2368
|
},
|
|
2386
2369
|
getItemValue(e) {
|
|
2387
|
-
if (
|
|
2370
|
+
if (x(e)) {
|
|
2388
2371
|
if (typeof this.schema.selectOptions < "u" && typeof this.schema.selectOptions.value < "u")
|
|
2389
2372
|
return e[this.schema.selectOptions.value];
|
|
2390
2373
|
if (typeof e.id < "u")
|
|
@@ -2394,7 +2377,7 @@ const Qd = {
|
|
|
2394
2377
|
return e;
|
|
2395
2378
|
},
|
|
2396
2379
|
getItemName(e) {
|
|
2397
|
-
if (
|
|
2380
|
+
if (x(e)) {
|
|
2398
2381
|
if (typeof this.schema.selectOptions < "u" && typeof this.schema.selectOptions.name < "u")
|
|
2399
2382
|
return e[this.schema.selectOptions.name];
|
|
2400
2383
|
if (typeof e.name < "u")
|
|
@@ -2404,25 +2387,25 @@ const Qd = {
|
|
|
2404
2387
|
return e;
|
|
2405
2388
|
}
|
|
2406
2389
|
}
|
|
2407
|
-
},
|
|
2408
|
-
var
|
|
2409
|
-
function
|
|
2390
|
+
}, _i = /* @__PURE__ */ C(Gd, [["render", zd]]);
|
|
2391
|
+
var xd = "[object Map]", Zd = "[object Set]", Wd = Object.prototype, Jd = Wd.hasOwnProperty;
|
|
2392
|
+
function Xd(e) {
|
|
2410
2393
|
if (e == null)
|
|
2411
2394
|
return !0;
|
|
2412
|
-
if (
|
|
2395
|
+
if (Le(e) && (te(e) || typeof e == "string" || typeof e.splice == "function" || Ke(e) || Et(e) || Mt(e)))
|
|
2413
2396
|
return !e.length;
|
|
2414
|
-
var t =
|
|
2415
|
-
if (t ==
|
|
2397
|
+
var t = ie(e);
|
|
2398
|
+
if (t == xd || t == Zd)
|
|
2416
2399
|
return !e.size;
|
|
2417
|
-
if (
|
|
2418
|
-
return !
|
|
2400
|
+
if (tt(e))
|
|
2401
|
+
return !jn(e).length;
|
|
2419
2402
|
for (var n in e)
|
|
2420
|
-
if (
|
|
2403
|
+
if (Jd.call(e, n))
|
|
2421
2404
|
return !1;
|
|
2422
2405
|
return !0;
|
|
2423
2406
|
}
|
|
2424
|
-
const
|
|
2425
|
-
function
|
|
2407
|
+
const Qd = ["id", "value", "name", "disabled"];
|
|
2408
|
+
function eu(e, t, n, i, a, r) {
|
|
2426
2409
|
return d(), c("input", {
|
|
2427
2410
|
id: e.getFieldID(e.schema),
|
|
2428
2411
|
type: "submit",
|
|
@@ -2431,24 +2414,24 @@ function su(e, t, n, i, a, r) {
|
|
|
2431
2414
|
name: e.schema.inputName,
|
|
2432
2415
|
disabled: e.disabled || null,
|
|
2433
2416
|
class: V(e.schema.fieldClasses)
|
|
2434
|
-
}, null, 10,
|
|
2417
|
+
}, null, 10, Qd);
|
|
2435
2418
|
}
|
|
2436
|
-
const
|
|
2419
|
+
const tu = {
|
|
2437
2420
|
mixins: [L],
|
|
2438
2421
|
methods: {
|
|
2439
2422
|
onClick(e) {
|
|
2440
2423
|
if (this.schema.validateBeforeSubmit === !0) {
|
|
2441
2424
|
e.preventDefault();
|
|
2442
2425
|
const t = O(this.formOptions, "validateAsync", !1), n = this.vfg.validate(), i = (a) => {
|
|
2443
|
-
t && !
|
|
2426
|
+
t && !Xd(a) || !t && !a ? U(this.schema.onValidationError) && this.schema.onValidationError(this.model, this.schema, a, e) : U(this.schema.onSubmit) && this.schema.onSubmit(this.model, this.schema, e);
|
|
2444
2427
|
};
|
|
2445
2428
|
n && U(n.then) ? n.then(i) : i(n);
|
|
2446
2429
|
} else
|
|
2447
2430
|
U(this.schema.onSubmit) && this.schema.onSubmit(this.model, this.schema, e);
|
|
2448
2431
|
}
|
|
2449
2432
|
}
|
|
2450
|
-
},
|
|
2451
|
-
function
|
|
2433
|
+
}, nu = /* @__PURE__ */ C(tu, [["render", eu]]), iu = ["id", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "name"];
|
|
2434
|
+
function ru(e, t, n, i, a, r) {
|
|
2452
2435
|
const o = Me("attributes");
|
|
2453
2436
|
return P((d(), c("textarea", {
|
|
2454
2437
|
class: V(["form-control", e.schema.fieldClasses]),
|
|
@@ -2462,17 +2445,17 @@ function uu(e, t, n, i, a, r) {
|
|
|
2462
2445
|
required: e.schema.required,
|
|
2463
2446
|
rows: e.schema.rows || 2,
|
|
2464
2447
|
name: e.schema.inputName
|
|
2465
|
-
}, null, 10,
|
|
2466
|
-
[
|
|
2448
|
+
}, null, 10, iu)), [
|
|
2449
|
+
[re, e.value],
|
|
2467
2450
|
[o, "input"]
|
|
2468
2451
|
]);
|
|
2469
2452
|
}
|
|
2470
|
-
const
|
|
2453
|
+
const au = {
|
|
2471
2454
|
mixins: [L]
|
|
2472
|
-
},
|
|
2473
|
-
function
|
|
2455
|
+
}, wi = /* @__PURE__ */ C(au, [["render", ru]]), su = { class: "wrapper" }, ou = ["id", "name", "accept", "multiple", "placeholder", "readonly", "required", "disabled"];
|
|
2456
|
+
function lu(e, t, n, i, a, r) {
|
|
2474
2457
|
const o = Me("attributes");
|
|
2475
|
-
return P((d(), c("div",
|
|
2458
|
+
return P((d(), c("div", su, [
|
|
2476
2459
|
P(h("input", {
|
|
2477
2460
|
class: "form-control",
|
|
2478
2461
|
id: e.getFieldID(e.schema),
|
|
@@ -2485,22 +2468,22 @@ function fu(e, t, n, i, a, r) {
|
|
|
2485
2468
|
readonly: e.schema.readonly,
|
|
2486
2469
|
required: e.schema.required,
|
|
2487
2470
|
disabled: e.disabled || null
|
|
2488
|
-
}, null, 40,
|
|
2471
|
+
}, null, 40, ou), [
|
|
2489
2472
|
[o, "input"]
|
|
2490
2473
|
])
|
|
2491
2474
|
])), [
|
|
2492
2475
|
[o, "wrapper"]
|
|
2493
2476
|
]);
|
|
2494
2477
|
}
|
|
2495
|
-
const
|
|
2478
|
+
const du = {
|
|
2496
2479
|
mixins: [L],
|
|
2497
2480
|
methods: {
|
|
2498
2481
|
onChange(e) {
|
|
2499
2482
|
U(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, this.schema, e, this);
|
|
2500
2483
|
}
|
|
2501
2484
|
}
|
|
2502
|
-
},
|
|
2503
|
-
function
|
|
2485
|
+
}, uu = /* @__PURE__ */ C(du, [["render", lu]]), cu = ["value", "autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2486
|
+
function hu(e, t, n, i, a, r) {
|
|
2504
2487
|
return d(), c("input", {
|
|
2505
2488
|
class: "form-control",
|
|
2506
2489
|
type: "text",
|
|
@@ -2511,9 +2494,9 @@ function bu(e, t, n, i, a, r) {
|
|
|
2511
2494
|
readonly: e.schema.readonly,
|
|
2512
2495
|
name: e.schema.inputName,
|
|
2513
2496
|
id: e.getFieldID(e.schema)
|
|
2514
|
-
}, null, 8,
|
|
2497
|
+
}, null, 8, cu);
|
|
2515
2498
|
}
|
|
2516
|
-
const
|
|
2499
|
+
const mu = {
|
|
2517
2500
|
mixins: [L],
|
|
2518
2501
|
data() {
|
|
2519
2502
|
return {
|
|
@@ -2524,7 +2507,7 @@ const vu = {
|
|
|
2524
2507
|
this.$nextTick(function() {
|
|
2525
2508
|
window.Cleave ? (this.cleave = new window.Cleave(
|
|
2526
2509
|
this.$el,
|
|
2527
|
-
|
|
2510
|
+
be(this.schema.cleaveOptions || {}, {
|
|
2528
2511
|
// Credit Card
|
|
2529
2512
|
creditCard: !1,
|
|
2530
2513
|
// onCreditCardTypeChanged: onCreditCardTypeChanged.bind(this),
|
|
@@ -2561,26 +2544,26 @@ const vu = {
|
|
|
2561
2544
|
this.value = this.$el.value;
|
|
2562
2545
|
}
|
|
2563
2546
|
}
|
|
2564
|
-
},
|
|
2547
|
+
}, fu = /* @__PURE__ */ C(mu, [["render", hu]]), Ti = {
|
|
2565
2548
|
formatValueToField(e) {
|
|
2566
2549
|
if (e != null) {
|
|
2567
|
-
const t = this.schema.format ?
|
|
2568
|
-
return
|
|
2550
|
+
const t = this.schema.format ? oe.parse(e, this.schema.format) : new Date(e);
|
|
2551
|
+
return oe.format(t, this.getDateFormat());
|
|
2569
2552
|
}
|
|
2570
2553
|
return e;
|
|
2571
2554
|
},
|
|
2572
2555
|
formatValueToModel(e) {
|
|
2573
2556
|
if (e != null) {
|
|
2574
|
-
const t =
|
|
2575
|
-
this.schema.format ? e =
|
|
2557
|
+
const t = oe.parse(e, this.getDateFormat());
|
|
2558
|
+
this.schema.format ? e = oe.format(t, this.schema.format) : e = t.valueOf();
|
|
2576
2559
|
}
|
|
2577
2560
|
return e;
|
|
2578
2561
|
}
|
|
2579
|
-
},
|
|
2562
|
+
}, pu = { class: "input-group date" }, gu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"], yu = /* @__PURE__ */ h("span", { class: "input-group-addon" }, [
|
|
2580
2563
|
/* @__PURE__ */ h("span", { class: "glyphicon glyphicon-calendar" })
|
|
2581
2564
|
], -1);
|
|
2582
|
-
function
|
|
2583
|
-
return d(), c("div",
|
|
2565
|
+
function bu(e, t, n, i, a, r) {
|
|
2566
|
+
return d(), c("div", pu, [
|
|
2584
2567
|
P(h("input", {
|
|
2585
2568
|
class: "form-control",
|
|
2586
2569
|
type: "text",
|
|
@@ -2591,21 +2574,21 @@ function $u(e, t, n, i, a, r) {
|
|
|
2591
2574
|
readonly: e.schema.readonly,
|
|
2592
2575
|
name: e.schema.inputName,
|
|
2593
2576
|
id: e.getFieldID(e.schema)
|
|
2594
|
-
}, null, 8,
|
|
2595
|
-
[
|
|
2577
|
+
}, null, 8, gu), [
|
|
2578
|
+
[re, e.value]
|
|
2596
2579
|
]),
|
|
2597
|
-
|
|
2580
|
+
yu
|
|
2598
2581
|
]);
|
|
2599
2582
|
}
|
|
2600
|
-
const
|
|
2583
|
+
const Cn = "YYYY-MM-DD HH:mm:ss", vu = {
|
|
2601
2584
|
mixins: [L],
|
|
2602
2585
|
mounted() {
|
|
2603
2586
|
this.$nextTick(function() {
|
|
2604
2587
|
if (window.$ && window.$.fn.datetimepicker) {
|
|
2605
2588
|
const e = this.$el.querySelector(".form-control");
|
|
2606
2589
|
$(this.$el).datetimepicker(
|
|
2607
|
-
|
|
2608
|
-
format:
|
|
2590
|
+
be(this.schema.dateTimePickerOptions || {}, {
|
|
2591
|
+
format: Cn
|
|
2609
2592
|
})
|
|
2610
2593
|
).on("dp.change", () => {
|
|
2611
2594
|
this.value = e.value;
|
|
@@ -2621,12 +2604,12 @@ const Mn = "YYYY-MM-DD HH:mm:ss", Cu = {
|
|
|
2621
2604
|
},
|
|
2622
2605
|
methods: {
|
|
2623
2606
|
getDateFormat() {
|
|
2624
|
-
return this.schema.dateTimePickerOptions && this.schema.dateTimePickerOptions.format ? this.schema.dateTimePickerOptions.format :
|
|
2607
|
+
return this.schema.dateTimePickerOptions && this.schema.dateTimePickerOptions.format ? this.schema.dateTimePickerOptions.format : Cn;
|
|
2625
2608
|
},
|
|
2626
|
-
...
|
|
2609
|
+
...Ti
|
|
2627
2610
|
}
|
|
2628
|
-
},
|
|
2629
|
-
function
|
|
2611
|
+
}, _u = /* @__PURE__ */ C(vu, [["render", bu]]), wu = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2612
|
+
function Tu(e, t, n, i, a, r) {
|
|
2630
2613
|
return P((d(), c("input", {
|
|
2631
2614
|
class: "form-control",
|
|
2632
2615
|
type: "text",
|
|
@@ -2639,11 +2622,11 @@ function Au(e, t, n, i, a, r) {
|
|
|
2639
2622
|
debounce: "500",
|
|
2640
2623
|
onFocus: t[1] || (t[1] = (o) => r.geolocate()),
|
|
2641
2624
|
id: e.getFieldID(e.schema)
|
|
2642
|
-
}, null, 40,
|
|
2643
|
-
[
|
|
2625
|
+
}, null, 40, wu)), [
|
|
2626
|
+
[re, e.value]
|
|
2644
2627
|
]);
|
|
2645
2628
|
}
|
|
2646
|
-
const
|
|
2629
|
+
const Su = {
|
|
2647
2630
|
mixins: [L],
|
|
2648
2631
|
data() {
|
|
2649
2632
|
return {
|
|
@@ -2705,9 +2688,9 @@ const Ou = {
|
|
|
2705
2688
|
});
|
|
2706
2689
|
}
|
|
2707
2690
|
}
|
|
2708
|
-
},
|
|
2709
|
-
function
|
|
2710
|
-
return d(), c("div",
|
|
2691
|
+
}, $u = /* @__PURE__ */ C(Su, [["render", Tu]]), Cu = { class: "wrapper" }, Mu = ["autocomplete", "disabled", "placeholder", "readonly"], Iu = ["disabled", "name"];
|
|
2692
|
+
function Au(e, t, n, i, a, r) {
|
|
2693
|
+
return d(), c("div", Cu, [
|
|
2711
2694
|
P(h("input", {
|
|
2712
2695
|
class: "form-control link",
|
|
2713
2696
|
type: "text",
|
|
@@ -2716,9 +2699,9 @@ function Nu(e, t, n, i, a, r) {
|
|
|
2716
2699
|
disabled: e.disabled || null,
|
|
2717
2700
|
placeholder: e.schema.placeholder,
|
|
2718
2701
|
readonly: e.schema.readonly
|
|
2719
|
-
}, null, 8,
|
|
2720
|
-
[
|
|
2721
|
-
[
|
|
2702
|
+
}, null, 8, Mu), [
|
|
2703
|
+
[An, e.schema.hideInput !== !0],
|
|
2704
|
+
[re, r.wrappedValue]
|
|
2722
2705
|
]),
|
|
2723
2706
|
e.schema.browse !== !1 ? (d(), c("input", {
|
|
2724
2707
|
key: 0,
|
|
@@ -2727,10 +2710,10 @@ function Nu(e, t, n, i, a, r) {
|
|
|
2727
2710
|
disabled: e.disabled || null,
|
|
2728
2711
|
onChange: t[1] || (t[1] = (...o) => r.fileChanged && r.fileChanged(...o)),
|
|
2729
2712
|
name: e.schema.inputName
|
|
2730
|
-
}, null, 40,
|
|
2713
|
+
}, null, 40, Iu)) : w("", !0),
|
|
2731
2714
|
h("div", {
|
|
2732
2715
|
class: "preview",
|
|
2733
|
-
style:
|
|
2716
|
+
style: Ct(r.previewStyle)
|
|
2734
2717
|
}, [
|
|
2735
2718
|
h("div", {
|
|
2736
2719
|
class: "remove",
|
|
@@ -2740,7 +2723,7 @@ function Nu(e, t, n, i, a, r) {
|
|
|
2740
2723
|
], 4)
|
|
2741
2724
|
]);
|
|
2742
2725
|
}
|
|
2743
|
-
const
|
|
2726
|
+
const Ou = {
|
|
2744
2727
|
mixins: [L],
|
|
2745
2728
|
computed: {
|
|
2746
2729
|
previewStyle() {
|
|
@@ -2780,8 +2763,8 @@ const Pu = {
|
|
|
2780
2763
|
}, e.target.files && e.target.files.length > 0 && t.readAsDataURL(e.target.files[0]);
|
|
2781
2764
|
}
|
|
2782
2765
|
}
|
|
2783
|
-
},
|
|
2784
|
-
function
|
|
2766
|
+
}, Eu = /* @__PURE__ */ C(Ou, [["render", Au]]), ku = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
2767
|
+
function Fu(e, t, n, i, a, r) {
|
|
2785
2768
|
return P((d(), c("input", {
|
|
2786
2769
|
class: "form-control",
|
|
2787
2770
|
type: "text",
|
|
@@ -2792,11 +2775,11 @@ function Du(e, t, n, i, a, r) {
|
|
|
2792
2775
|
readonly: e.schema.readonly,
|
|
2793
2776
|
name: e.schema.inputName,
|
|
2794
2777
|
id: e.getFieldID(e.schema)
|
|
2795
|
-
}, null, 8,
|
|
2796
|
-
[
|
|
2778
|
+
}, null, 8, ku)), [
|
|
2779
|
+
[re, e.value]
|
|
2797
2780
|
]);
|
|
2798
2781
|
}
|
|
2799
|
-
const
|
|
2782
|
+
const Uu = {
|
|
2800
2783
|
mixins: [L],
|
|
2801
2784
|
mounted() {
|
|
2802
2785
|
this.$nextTick(function() {
|
|
@@ -2808,7 +2791,7 @@ const ju = {
|
|
|
2808
2791
|
beforeUnmount() {
|
|
2809
2792
|
window.$ && window.$.fn.mask && $(this.$el).unmask();
|
|
2810
2793
|
}
|
|
2811
|
-
},
|
|
2794
|
+
}, Nu = /* @__PURE__ */ C(Uu, [["render", Fu]]), Pu = {
|
|
2812
2795
|
mixins: [L],
|
|
2813
2796
|
data() {
|
|
2814
2797
|
return {
|
|
@@ -2835,7 +2818,7 @@ const ju = {
|
|
|
2835
2818
|
this.$nextTick(() => {
|
|
2836
2819
|
window.noUiSlider ? (this.slider = this.$el, window.noUiSlider.create(
|
|
2837
2820
|
this.slider,
|
|
2838
|
-
|
|
2821
|
+
be(this.schema.noUiSliderOptions || {}, {
|
|
2839
2822
|
start: this.getStartValue(),
|
|
2840
2823
|
range: {
|
|
2841
2824
|
min: this.schema.min,
|
|
@@ -2865,15 +2848,15 @@ const ju = {
|
|
|
2865
2848
|
return this.value != null ? this.value : typeof this.schema.noUiSliderOptions < "u" && this.schema.noUiSliderOptions.double ? [this.schema.min, this.schema.min] : this.schema.min;
|
|
2866
2849
|
}
|
|
2867
2850
|
}
|
|
2868
|
-
},
|
|
2869
|
-
function
|
|
2851
|
+
}, Lu = ["disabled"];
|
|
2852
|
+
function Vu(e, t, n, i, a, r) {
|
|
2870
2853
|
return d(), c("div", {
|
|
2871
2854
|
class: V(["slider", { "contain-pips": r.containPips, "contain-tooltip": r.containTooltip }]),
|
|
2872
2855
|
disabled: e.disabled || null
|
|
2873
|
-
}, null, 10,
|
|
2856
|
+
}, null, 10, Lu);
|
|
2874
2857
|
}
|
|
2875
|
-
const
|
|
2876
|
-
function
|
|
2858
|
+
const Du = /* @__PURE__ */ C(Pu, [["render", Vu]]), ju = ["autocomplete", "disabled", "placeholder", "readonly", "name"];
|
|
2859
|
+
function Ru(e, t, n, i, a, r) {
|
|
2877
2860
|
return P((d(), c("input", {
|
|
2878
2861
|
class: "form-control",
|
|
2879
2862
|
type: "text",
|
|
@@ -2883,11 +2866,11 @@ function zu(e, t, n, i, a, r) {
|
|
|
2883
2866
|
placeholder: e.schema.placeholder,
|
|
2884
2867
|
readonly: e.schema.readonly,
|
|
2885
2868
|
name: e.schema.inputName
|
|
2886
|
-
}, null, 8,
|
|
2887
|
-
[
|
|
2869
|
+
}, null, 8, ju)), [
|
|
2870
|
+
[re, e.value]
|
|
2888
2871
|
]);
|
|
2889
2872
|
}
|
|
2890
|
-
const
|
|
2873
|
+
const Bu = "YYYY-MM-DD", qu = {
|
|
2891
2874
|
mixins: [L],
|
|
2892
2875
|
data() {
|
|
2893
2876
|
return {
|
|
@@ -2903,12 +2886,12 @@ const xu = "YYYY-MM-DD", Gu = {
|
|
|
2903
2886
|
},
|
|
2904
2887
|
methods: {
|
|
2905
2888
|
getDateFormat() {
|
|
2906
|
-
return O(this.schema, "pikadayOptions.format",
|
|
2889
|
+
return O(this.schema, "pikadayOptions.format", Bu);
|
|
2907
2890
|
},
|
|
2908
|
-
...
|
|
2891
|
+
...Ti,
|
|
2909
2892
|
initialize(e) {
|
|
2910
2893
|
this.picker && this.picker.destroy && this.picker.destroy(), this.$nextTick(() => {
|
|
2911
|
-
window.Pikaday ? (this.options =
|
|
2894
|
+
window.Pikaday ? (this.options = be({}, e, {
|
|
2912
2895
|
field: this.$el,
|
|
2913
2896
|
// bind the datepicker to a form field
|
|
2914
2897
|
onSelect: () => {
|
|
@@ -2919,8 +2902,8 @@ const xu = "YYYY-MM-DD", Gu = {
|
|
|
2919
2902
|
});
|
|
2920
2903
|
}
|
|
2921
2904
|
}
|
|
2922
|
-
},
|
|
2923
|
-
function
|
|
2905
|
+
}, Ku = /* @__PURE__ */ C(qu, [["render", Ru]]), Hu = ["autocomplete", "data-disable", "data-max", "data-min", "data-step", "placeholder", "readonly", "name"];
|
|
2906
|
+
function Yu(e, t, n, i, a, r) {
|
|
2924
2907
|
return d(), c("input", {
|
|
2925
2908
|
type: "text",
|
|
2926
2909
|
autocomplete: e.schema.autocomplete,
|
|
@@ -2931,9 +2914,9 @@ function Ju(e, t, n, i, a, r) {
|
|
|
2931
2914
|
placeholder: e.schema.placeholder,
|
|
2932
2915
|
readonly: e.schema.readonly,
|
|
2933
2916
|
name: e.schema.inputName
|
|
2934
|
-
}, null, 8,
|
|
2917
|
+
}, null, 8, Hu);
|
|
2935
2918
|
}
|
|
2936
|
-
const
|
|
2919
|
+
const zu = {
|
|
2937
2920
|
mixins: [L],
|
|
2938
2921
|
data() {
|
|
2939
2922
|
return {
|
|
@@ -2961,7 +2944,7 @@ const Xu = {
|
|
|
2961
2944
|
Array.isArray(this.value) ? [e, t] = this.value : e = this.value;
|
|
2962
2945
|
const n = this;
|
|
2963
2946
|
$(this.$el).ionRangeSlider(
|
|
2964
|
-
|
|
2947
|
+
be(this.schema.rangeSliderOptions || {}, {
|
|
2965
2948
|
type: "single",
|
|
2966
2949
|
grid: !0,
|
|
2967
2950
|
hide_min_max: !0,
|
|
@@ -2981,8 +2964,8 @@ const Xu = {
|
|
|
2981
2964
|
beforeUnmount() {
|
|
2982
2965
|
this.slider && this.slider.destroy();
|
|
2983
2966
|
}
|
|
2984
|
-
},
|
|
2985
|
-
function
|
|
2967
|
+
}, Gu = /* @__PURE__ */ C(zu, [["render", Yu]]), xu = ["disabled", "multiple", "title", "name"], Zu = ["disabled", "selected"], Wu = ["value"];
|
|
2968
|
+
function Ju(e, t, n, i, a, r) {
|
|
2986
2969
|
return P((d(), c("select", {
|
|
2987
2970
|
class: "selectpicker",
|
|
2988
2971
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value = o),
|
|
@@ -2997,15 +2980,15 @@ function ic(e, t, n, i, a, r) {
|
|
|
2997
2980
|
disabled: e.schema.required || null,
|
|
2998
2981
|
value: null,
|
|
2999
2982
|
selected: e.value == null
|
|
3000
|
-
}, null, 8,
|
|
2983
|
+
}, null, 8, Zu)) : w("", !0),
|
|
3001
2984
|
(d(!0), c(D, null, z(r.items, (o) => (d(), c("option", {
|
|
3002
2985
|
value: r.getItemValue(o)
|
|
3003
|
-
}, N(r.getItemName(o)), 9,
|
|
3004
|
-
], 8,
|
|
3005
|
-
[
|
|
2986
|
+
}, N(r.getItemName(o)), 9, Wu))), 256))
|
|
2987
|
+
], 8, xu)), [
|
|
2988
|
+
[$t, e.value]
|
|
3006
2989
|
]);
|
|
3007
2990
|
}
|
|
3008
|
-
const
|
|
2991
|
+
const Xu = {
|
|
3009
2992
|
mixins: [L],
|
|
3010
2993
|
computed: {
|
|
3011
2994
|
items() {
|
|
@@ -3033,7 +3016,7 @@ const rc = {
|
|
|
3033
3016
|
},
|
|
3034
3017
|
methods: {
|
|
3035
3018
|
getItemValue(e) {
|
|
3036
|
-
if (
|
|
3019
|
+
if (x(e)) {
|
|
3037
3020
|
if (typeof this.schema.selectOptions < "u" && typeof this.schema.selectOptions.value < "u")
|
|
3038
3021
|
return e[this.schema.selectOptions.value];
|
|
3039
3022
|
if (typeof e.id < "u")
|
|
@@ -3043,7 +3026,7 @@ const rc = {
|
|
|
3043
3026
|
return e;
|
|
3044
3027
|
},
|
|
3045
3028
|
getItemName(e) {
|
|
3046
|
-
if (
|
|
3029
|
+
if (x(e)) {
|
|
3047
3030
|
if (typeof this.schema.selectOptions < "u" && typeof this.schema.selectOptions.name < "u")
|
|
3048
3031
|
return e[this.schema.selectOptions.name];
|
|
3049
3032
|
if (typeof e.name < "u")
|
|
@@ -3053,8 +3036,8 @@ const rc = {
|
|
|
3053
3036
|
return e;
|
|
3054
3037
|
}
|
|
3055
3038
|
}
|
|
3056
|
-
},
|
|
3057
|
-
function
|
|
3039
|
+
}, Qu = /* @__PURE__ */ C(Xu, [["render", Ju]]), ec = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
3040
|
+
function tc(e, t, n, i, a, r) {
|
|
3058
3041
|
return d(), c("input", {
|
|
3059
3042
|
type: "text",
|
|
3060
3043
|
autocomplete: e.schema.autocomplete,
|
|
@@ -3063,9 +3046,9 @@ function oc(e, t, n, i, a, r) {
|
|
|
3063
3046
|
readonly: e.schema.readonly,
|
|
3064
3047
|
name: e.schema.inputName,
|
|
3065
3048
|
id: e.getFieldID(e.schema)
|
|
3066
|
-
}, null, 8,
|
|
3049
|
+
}, null, 8, ec);
|
|
3067
3050
|
}
|
|
3068
|
-
const
|
|
3051
|
+
const nc = {
|
|
3069
3052
|
mixins: [L],
|
|
3070
3053
|
data() {
|
|
3071
3054
|
return {
|
|
@@ -3086,7 +3069,7 @@ const lc = {
|
|
|
3086
3069
|
mounted() {
|
|
3087
3070
|
this.$nextTick(function() {
|
|
3088
3071
|
window.$ && window.$.fn.spectrum ? (this.picker = $(this.$el).spectrum("destroy").spectrum(
|
|
3089
|
-
|
|
3072
|
+
be(this.schema.colorOptions || {}, {
|
|
3090
3073
|
showInput: !0,
|
|
3091
3074
|
showAlpha: !0,
|
|
3092
3075
|
disabled: this.schema.disabled,
|
|
@@ -3102,17 +3085,17 @@ const lc = {
|
|
|
3102
3085
|
beforeUnmount() {
|
|
3103
3086
|
this.picker && this.picker.spectrum("destroy");
|
|
3104
3087
|
}
|
|
3105
|
-
},
|
|
3106
|
-
function
|
|
3107
|
-
return d(), c("img", { src: r.mapLink }, null, 8,
|
|
3088
|
+
}, ic = /* @__PURE__ */ C(nc, [["render", tc]]), rc = ["src"];
|
|
3089
|
+
function ac(e, t, n, i, a, r) {
|
|
3090
|
+
return d(), c("img", { src: r.mapLink }, null, 8, rc);
|
|
3108
3091
|
}
|
|
3109
|
-
const
|
|
3092
|
+
const sc = {
|
|
3110
3093
|
mixins: [L],
|
|
3111
3094
|
computed: {
|
|
3112
3095
|
mapLink() {
|
|
3113
3096
|
let e, t, n;
|
|
3114
3097
|
if (this.value) {
|
|
3115
|
-
const i =
|
|
3098
|
+
const i = be(this.schema.staticMapOptions || {}, {
|
|
3116
3099
|
lat: "lat",
|
|
3117
3100
|
lng: "lng",
|
|
3118
3101
|
zoom: 8,
|
|
@@ -3127,8 +3110,8 @@ const hc = {
|
|
|
3127
3110
|
return n;
|
|
3128
3111
|
}
|
|
3129
3112
|
}
|
|
3130
|
-
},
|
|
3131
|
-
function
|
|
3113
|
+
}, oc = /* @__PURE__ */ C(sc, [["render", ac]]), lc = ["autocomplete", "disabled", "name", "id"], dc = ["data-on", "data-off", "for"], uc = /* @__PURE__ */ h("span", { class: "handle" }, null, -1);
|
|
3114
|
+
function cc(e, t, n, i, a, r) {
|
|
3132
3115
|
return d(), c("label", null, [
|
|
3133
3116
|
P(h("input", {
|
|
3134
3117
|
type: "checkbox",
|
|
@@ -3137,19 +3120,19 @@ function yc(e, t, n, i, a, r) {
|
|
|
3137
3120
|
disabled: e.disabled || null,
|
|
3138
3121
|
name: e.schema.inputName,
|
|
3139
3122
|
id: e.getFieldID(e.schema)
|
|
3140
|
-
}, null, 8,
|
|
3141
|
-
[
|
|
3123
|
+
}, null, 8, lc), [
|
|
3124
|
+
[St, e.value]
|
|
3142
3125
|
]),
|
|
3143
3126
|
h("span", {
|
|
3144
3127
|
class: "label",
|
|
3145
3128
|
"data-on": e.schema.textOn || "On",
|
|
3146
3129
|
"data-off": e.schema.textOff || "Off",
|
|
3147
3130
|
for: e.getFieldID(e.schema)
|
|
3148
|
-
}, null, 8,
|
|
3149
|
-
|
|
3131
|
+
}, null, 8, dc),
|
|
3132
|
+
uc
|
|
3150
3133
|
]);
|
|
3151
3134
|
}
|
|
3152
|
-
const
|
|
3135
|
+
const hc = {
|
|
3153
3136
|
mixins: [L],
|
|
3154
3137
|
methods: {
|
|
3155
3138
|
formatValueToField(e) {
|
|
@@ -3159,7 +3142,7 @@ const bc = {
|
|
|
3159
3142
|
return e != null && this.schema.valueOn ? e ? this.schema.valueOn : this.schema.valueOff : e;
|
|
3160
3143
|
}
|
|
3161
3144
|
}
|
|
3162
|
-
},
|
|
3145
|
+
}, mc = /* @__PURE__ */ C(hc, [["render", cc]]), fc = {
|
|
3163
3146
|
mixins: [L],
|
|
3164
3147
|
data() {
|
|
3165
3148
|
return {
|
|
@@ -3193,49 +3176,49 @@ const bc = {
|
|
|
3193
3176
|
this.value[this.newKeyName] = void 0, this.value = { ...this.value }, this.keyTypes[this.newKeyName] = this.newKeyType, this.keyTypes = { ...this.keyTypes }, this.newKeyName = "";
|
|
3194
3177
|
}
|
|
3195
3178
|
}
|
|
3196
|
-
},
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3179
|
+
}, pc = { key: 0 }, gc = { key: 1 }, yc = ["id"], bc = { key: 0 }, vc = ["onUpdate:modelValue"], _c = { key: 1 }, wc = ["onUpdate:modelValue"], Tc = { key: 2 }, Sc = ["onUpdate:modelValue"], $c = ["onClick"], Cc = /* @__PURE__ */ h("option", { value: "string" }, " String ", -1), Mc = /* @__PURE__ */ h("option", { value: "number" }, " Number ", -1), Ic = /* @__PURE__ */ h("option", { value: "boolean" }, " Boolean ", -1), Ac = [
|
|
3180
|
+
Cc,
|
|
3181
|
+
Mc,
|
|
3182
|
+
Ic
|
|
3200
3183
|
];
|
|
3201
|
-
function
|
|
3184
|
+
function Oc(e, t, n, i, a, r) {
|
|
3202
3185
|
const o = k("vue-form-generator"), s = Me("attributes");
|
|
3203
3186
|
return P((d(), c("div", null, [
|
|
3204
|
-
e.schema.schema ? (d(), c("div",
|
|
3187
|
+
e.schema.schema ? (d(), c("div", pc, [
|
|
3205
3188
|
E(o, {
|
|
3206
3189
|
model: e.value,
|
|
3207
3190
|
options: e.formOptions,
|
|
3208
3191
|
schema: e.schema.schema
|
|
3209
3192
|
}, null, 8, ["model", "options", "schema"])
|
|
3210
|
-
])) : (d(), c("div",
|
|
3193
|
+
])) : (d(), c("div", gc, [
|
|
3211
3194
|
h("table", {
|
|
3212
3195
|
id: e.getFieldID(e.schema),
|
|
3213
3196
|
class: V(e.schema.fieldClasses)
|
|
3214
3197
|
}, [
|
|
3215
3198
|
(d(!0), c(D, null, z(e.value, (l, u) => (d(), c("tr", { key: u }, [
|
|
3216
3199
|
h("td", null, N(u), 1),
|
|
3217
|
-
a.keyTypes[u] === "string" ? (d(), c("td",
|
|
3200
|
+
a.keyTypes[u] === "string" ? (d(), c("td", bc, [
|
|
3218
3201
|
P(h("input", {
|
|
3219
3202
|
"onUpdate:modelValue": (m) => e.value[u] = m,
|
|
3220
3203
|
type: "text"
|
|
3221
|
-
}, null, 8,
|
|
3222
|
-
[
|
|
3204
|
+
}, null, 8, vc), [
|
|
3205
|
+
[re, e.value[u]]
|
|
3223
3206
|
])
|
|
3224
3207
|
])) : w("", !0),
|
|
3225
|
-
a.keyTypes[u] === "boolean" ? (d(), c("td",
|
|
3208
|
+
a.keyTypes[u] === "boolean" ? (d(), c("td", _c, [
|
|
3226
3209
|
P(h("input", {
|
|
3227
3210
|
"onUpdate:modelValue": (m) => e.value[u] = m,
|
|
3228
3211
|
type: "checkbox"
|
|
3229
|
-
}, null, 8,
|
|
3230
|
-
[
|
|
3212
|
+
}, null, 8, wc), [
|
|
3213
|
+
[St, e.value[u]]
|
|
3231
3214
|
])
|
|
3232
3215
|
])) : w("", !0),
|
|
3233
|
-
a.keyTypes[u] === "number" ? (d(), c("td",
|
|
3216
|
+
a.keyTypes[u] === "number" ? (d(), c("td", Tc, [
|
|
3234
3217
|
P(h("input", {
|
|
3235
3218
|
"onUpdate:modelValue": (m) => e.value[u] = m,
|
|
3236
3219
|
type: "number"
|
|
3237
|
-
}, null, 8,
|
|
3238
|
-
[
|
|
3220
|
+
}, null, 8, Sc), [
|
|
3221
|
+
[re, e.value[u]]
|
|
3239
3222
|
])
|
|
3240
3223
|
])) : w("", !0),
|
|
3241
3224
|
h("td", null, [
|
|
@@ -3243,20 +3226,20 @@ function Pc(e, t, n, i, a, r) {
|
|
|
3243
3226
|
type: "button",
|
|
3244
3227
|
value: "x",
|
|
3245
3228
|
onClick: (m) => r.removeElement(u)
|
|
3246
|
-
}, null, 8,
|
|
3229
|
+
}, null, 8, $c)
|
|
3247
3230
|
])
|
|
3248
3231
|
]))), 128))
|
|
3249
|
-
], 10,
|
|
3232
|
+
], 10, yc),
|
|
3250
3233
|
P(h("select", {
|
|
3251
3234
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => a.newKeyType = l)
|
|
3252
|
-
},
|
|
3253
|
-
[
|
|
3235
|
+
}, Ac, 512), [
|
|
3236
|
+
[$t, a.newKeyType]
|
|
3254
3237
|
]),
|
|
3255
3238
|
P(h("input", {
|
|
3256
3239
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.newKeyName = l),
|
|
3257
3240
|
type: "text"
|
|
3258
3241
|
}, null, 512), [
|
|
3259
|
-
[
|
|
3242
|
+
[re, a.newKeyName]
|
|
3260
3243
|
]),
|
|
3261
3244
|
h("input", {
|
|
3262
3245
|
type: "button",
|
|
@@ -3268,7 +3251,7 @@ function Pc(e, t, n, i, a, r) {
|
|
|
3268
3251
|
[s, a.attributes]
|
|
3269
3252
|
]);
|
|
3270
3253
|
}
|
|
3271
|
-
const
|
|
3254
|
+
const Si = /* @__PURE__ */ C(fc, [["render", Oc]]), Ec = {
|
|
3272
3255
|
mixins: [L],
|
|
3273
3256
|
emits: ["model-updated"],
|
|
3274
3257
|
data() {
|
|
@@ -3351,14 +3334,14 @@ const $i = /* @__PURE__ */ C(_c, [["render", Pc]]), Lc = {
|
|
|
3351
3334
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
3352
3335
|
}
|
|
3353
3336
|
}
|
|
3354
|
-
},
|
|
3337
|
+
}, $i = (e) => (Ie("data-v-22600a29"), e = e(), Ae(), e), kc = ["id"], Fc = ["data-testid"], Uc = { class: "item-wrapper" }, Nc = { class: "index-wrapper" }, Pc = /* @__PURE__ */ $i(() => /* @__PURE__ */ h("hr", { class: "divider" }, null, -1)), Lc = { key: 0 }, Vc = { key: 1 }, Dc = ["onUpdate:modelValue", "placeholder", "onInput"], jc = {
|
|
3355
3338
|
key: 0,
|
|
3356
3339
|
class: "hint"
|
|
3357
|
-
},
|
|
3340
|
+
}, Rc = /* @__PURE__ */ $i(() => /* @__PURE__ */ h("hr", { class: "wide-divider" }, null, -1)), Bc = { class: "input-item" }, qc = ["placeholder"], Kc = {
|
|
3358
3341
|
key: 0,
|
|
3359
3342
|
class: "hint"
|
|
3360
3343
|
};
|
|
3361
|
-
function
|
|
3344
|
+
function Hc(e, t, n, i, a, r) {
|
|
3362
3345
|
const o = k("KIcon"), s = k("KButton"), l = k("vue-form-generator");
|
|
3363
3346
|
return d(), c("div", {
|
|
3364
3347
|
id: e.getFieldID(e.schema),
|
|
@@ -3369,8 +3352,8 @@ function Wc(e, t, n, i, a, r) {
|
|
|
3369
3352
|
"data-testid": `field-object-key-${m}`
|
|
3370
3353
|
}, [
|
|
3371
3354
|
h("div", null, [
|
|
3372
|
-
h("div",
|
|
3373
|
-
h("div",
|
|
3355
|
+
h("div", Uc, [
|
|
3356
|
+
h("div", Nc, [
|
|
3374
3357
|
h("strong", null, N(m), 1),
|
|
3375
3358
|
h("div", null, [
|
|
3376
3359
|
E(s, {
|
|
@@ -3389,42 +3372,42 @@ function Wc(e, t, n, i, a, r) {
|
|
|
3389
3372
|
}, 1032, ["onClick"])
|
|
3390
3373
|
])
|
|
3391
3374
|
]),
|
|
3392
|
-
|
|
3393
|
-
r.subSchema ? (d(), c("div",
|
|
3375
|
+
Pc,
|
|
3376
|
+
r.subSchema ? (d(), c("div", Lc, [
|
|
3394
3377
|
E(l, {
|
|
3395
3378
|
model: r.transformedModel[m],
|
|
3396
3379
|
options: { helpAsHtml: !0 },
|
|
3397
3380
|
schema: r.subSchema,
|
|
3398
3381
|
onModelUpdated: r.updateModel
|
|
3399
3382
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3400
|
-
])) : (d(), c("div",
|
|
3383
|
+
])) : (d(), c("div", Vc, [
|
|
3401
3384
|
P(h("input", {
|
|
3402
3385
|
"onUpdate:modelValue": (b) => e.value[m] = b,
|
|
3403
3386
|
class: "form-control",
|
|
3404
3387
|
placeholder: e.schema.fields && e.schema.fields[0].schema.placeholder,
|
|
3405
3388
|
type: "text",
|
|
3406
3389
|
onInput: (b) => r.updateModel(e.value[m], e.model[e.schema.model])
|
|
3407
|
-
}, null, 40,
|
|
3408
|
-
[
|
|
3390
|
+
}, null, 40, Dc), [
|
|
3391
|
+
[re, e.value[m]]
|
|
3409
3392
|
]),
|
|
3410
|
-
e.schema.fields && e.schema.fields[0].schema.hint ? (d(), c("p",
|
|
3393
|
+
e.schema.fields && e.schema.fields[0].schema.hint ? (d(), c("p", jc, N(e.schema.fields[0].schema.hint), 1)) : w("", !0)
|
|
3411
3394
|
])),
|
|
3412
|
-
|
|
3395
|
+
Rc
|
|
3413
3396
|
])
|
|
3414
3397
|
])
|
|
3415
|
-
], 8,
|
|
3398
|
+
], 8, Fc))), 128)),
|
|
3416
3399
|
h("div", {
|
|
3417
3400
|
class: V(["input-wrapper", { indent: r.hasObjectKeys }])
|
|
3418
3401
|
}, [
|
|
3419
|
-
h("div",
|
|
3402
|
+
h("div", Bc, [
|
|
3420
3403
|
P(h("input", {
|
|
3421
3404
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => a.newKeyName = u),
|
|
3422
3405
|
class: "form-control",
|
|
3423
3406
|
"data-testid": "keyname-input",
|
|
3424
3407
|
placeholder: e.schema.placeholder,
|
|
3425
3408
|
type: "text"
|
|
3426
|
-
}, null, 8,
|
|
3427
|
-
[
|
|
3409
|
+
}, null, 8, qc), [
|
|
3410
|
+
[re, a.newKeyName]
|
|
3428
3411
|
]),
|
|
3429
3412
|
E(s, {
|
|
3430
3413
|
appearance: "tertiary",
|
|
@@ -3438,22 +3421,22 @@ function Wc(e, t, n, i, a, r) {
|
|
|
3438
3421
|
_: 1
|
|
3439
3422
|
}, 8, ["disabled", "onClick"])
|
|
3440
3423
|
]),
|
|
3441
|
-
e.schema.hintText ? (d(), c("p",
|
|
3424
|
+
e.schema.hintText ? (d(), c("p", Kc, N(e.schema.hintText), 1)) : w("", !0)
|
|
3442
3425
|
], 2)
|
|
3443
|
-
], 10,
|
|
3426
|
+
], 10, kc);
|
|
3444
3427
|
}
|
|
3445
|
-
const
|
|
3428
|
+
const Ci = /* @__PURE__ */ C(Ec, [["render", Hc], ["__scopeId", "data-v-22600a29"]]), et = "24px", Mi = (e, t) => {
|
|
3446
3429
|
const n = e.__vccOpts || e;
|
|
3447
3430
|
for (const [i, a] of t)
|
|
3448
3431
|
n[i] = a;
|
|
3449
3432
|
return n;
|
|
3450
|
-
},
|
|
3433
|
+
}, Yc = (e) => (Ie("data-v-1d2a8d30"), e = e(), Ae(), e), zc = ["aria-hidden"], Gc = {
|
|
3451
3434
|
key: 0,
|
|
3452
3435
|
"data-testid": "kui-icon-svg-title"
|
|
3453
|
-
},
|
|
3436
|
+
}, xc = /* @__PURE__ */ Yc(() => /* @__PURE__ */ h("path", {
|
|
3454
3437
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
3455
3438
|
fill: "currentColor"
|
|
3456
|
-
}, null, -1)),
|
|
3439
|
+
}, null, -1)), Zc = /* @__PURE__ */ ce({
|
|
3457
3440
|
__name: "AddIcon",
|
|
3458
3441
|
props: {
|
|
3459
3442
|
/** The accessibility text provided to screen readers */
|
|
@@ -3484,7 +3467,7 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3484
3467
|
size: {
|
|
3485
3468
|
type: [Number, String],
|
|
3486
3469
|
required: !1,
|
|
3487
|
-
default:
|
|
3470
|
+
default: et,
|
|
3488
3471
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3489
3472
|
validator: (e) => {
|
|
3490
3473
|
if (typeof e == "number" && e > 0)
|
|
@@ -3513,7 +3496,7 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3513
3496
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
3514
3497
|
return `${r}px`;
|
|
3515
3498
|
}
|
|
3516
|
-
return
|
|
3499
|
+
return et;
|
|
3517
3500
|
}), i = Y(() => ({
|
|
3518
3501
|
boxSizing: "border-box",
|
|
3519
3502
|
color: t.color,
|
|
@@ -3522,11 +3505,11 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3522
3505
|
lineHeight: "0",
|
|
3523
3506
|
width: n.value
|
|
3524
3507
|
}));
|
|
3525
|
-
return (a, r) => (d(), I(
|
|
3508
|
+
return (a, r) => (d(), I(se(e.as), {
|
|
3526
3509
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3527
3510
|
class: "kui-icon add-icon",
|
|
3528
3511
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
3529
|
-
style:
|
|
3512
|
+
style: Ct(i.value)
|
|
3530
3513
|
}, {
|
|
3531
3514
|
default: M(() => [
|
|
3532
3515
|
(d(), c("svg", {
|
|
@@ -3539,20 +3522,20 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3539
3522
|
width: "100%",
|
|
3540
3523
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3541
3524
|
}, [
|
|
3542
|
-
e.title ? (d(), c("title",
|
|
3543
|
-
|
|
3544
|
-
], 8,
|
|
3525
|
+
e.title ? (d(), c("title", Gc, N(e.title), 1)) : w("", !0),
|
|
3526
|
+
xc
|
|
3527
|
+
], 8, zc))
|
|
3545
3528
|
]),
|
|
3546
3529
|
_: 1
|
|
3547
3530
|
}, 8, ["aria-hidden", "style"]));
|
|
3548
3531
|
}
|
|
3549
|
-
}),
|
|
3532
|
+
}), Wc = /* @__PURE__ */ Mi(Zc, [["__scopeId", "data-v-1d2a8d30"]]), Jc = (e) => (Ie("data-v-b199fa56"), e = e(), Ae(), e), Xc = ["aria-hidden"], Qc = {
|
|
3550
3533
|
key: 0,
|
|
3551
3534
|
"data-testid": "kui-icon-svg-title"
|
|
3552
|
-
},
|
|
3535
|
+
}, eh = /* @__PURE__ */ Jc(() => /* @__PURE__ */ h("path", {
|
|
3553
3536
|
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",
|
|
3554
3537
|
fill: "currentColor"
|
|
3555
|
-
}, null, -1)),
|
|
3538
|
+
}, null, -1)), th = /* @__PURE__ */ ce({
|
|
3556
3539
|
__name: "TrashIcon",
|
|
3557
3540
|
props: {
|
|
3558
3541
|
/** The accessibility text provided to screen readers */
|
|
@@ -3583,7 +3566,7 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3583
3566
|
size: {
|
|
3584
3567
|
type: [Number, String],
|
|
3585
3568
|
required: !1,
|
|
3586
|
-
default:
|
|
3569
|
+
default: et,
|
|
3587
3570
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3588
3571
|
validator: (e) => {
|
|
3589
3572
|
if (typeof e == "number" && e > 0)
|
|
@@ -3612,7 +3595,7 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3612
3595
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
3613
3596
|
return `${r}px`;
|
|
3614
3597
|
}
|
|
3615
|
-
return
|
|
3598
|
+
return et;
|
|
3616
3599
|
}), i = Y(() => ({
|
|
3617
3600
|
boxSizing: "border-box",
|
|
3618
3601
|
color: t.color,
|
|
@@ -3621,11 +3604,11 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3621
3604
|
lineHeight: "0",
|
|
3622
3605
|
width: n.value
|
|
3623
3606
|
}));
|
|
3624
|
-
return (a, r) => (d(), I(
|
|
3607
|
+
return (a, r) => (d(), I(se(e.as), {
|
|
3625
3608
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3626
3609
|
class: "kui-icon trash-icon",
|
|
3627
3610
|
"data-testid": "kui-icon-wrapper-trash-icon",
|
|
3628
|
-
style:
|
|
3611
|
+
style: Ct(i.value)
|
|
3629
3612
|
}, {
|
|
3630
3613
|
default: M(() => [
|
|
3631
3614
|
(d(), c("svg", {
|
|
@@ -3638,14 +3621,14 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3638
3621
|
width: "100%",
|
|
3639
3622
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3640
3623
|
}, [
|
|
3641
|
-
e.title ? (d(), c("title",
|
|
3642
|
-
|
|
3643
|
-
], 8,
|
|
3624
|
+
e.title ? (d(), c("title", Qc, N(e.title), 1)) : w("", !0),
|
|
3625
|
+
eh
|
|
3626
|
+
], 8, Xc))
|
|
3644
3627
|
]),
|
|
3645
3628
|
_: 1
|
|
3646
3629
|
}, 8, ["aria-hidden", "style"]));
|
|
3647
3630
|
}
|
|
3648
|
-
}),
|
|
3631
|
+
}), dt = /* @__PURE__ */ Mi(th, [["__scopeId", "data-v-b199fa56"]]), nh = { class: "array-item" }, ih = /* @__PURE__ */ ce({
|
|
3649
3632
|
__name: "FieldArrayItem",
|
|
3650
3633
|
props: {
|
|
3651
3634
|
model: {
|
|
@@ -3657,7 +3640,7 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3657
3640
|
setup(e) {
|
|
3658
3641
|
return (t, n) => {
|
|
3659
3642
|
const i = k("KButton");
|
|
3660
|
-
return d(), c("div",
|
|
3643
|
+
return d(), c("div", nh, [
|
|
3661
3644
|
Ne(t.$slots, "default", {}, void 0, !0),
|
|
3662
3645
|
E(i, {
|
|
3663
3646
|
appearance: "tertiary",
|
|
@@ -3665,20 +3648,20 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3665
3648
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
3666
3649
|
}, {
|
|
3667
3650
|
default: M(() => [
|
|
3668
|
-
E(we(
|
|
3651
|
+
E(we(dt))
|
|
3669
3652
|
]),
|
|
3670
3653
|
_: 1
|
|
3671
3654
|
})
|
|
3672
3655
|
]);
|
|
3673
3656
|
};
|
|
3674
3657
|
}
|
|
3675
|
-
}),
|
|
3658
|
+
}), Ii = /* @__PURE__ */ C(ih, [["__scopeId", "data-v-ec926551"]]), rh = (e) => (Ie("data-v-27d212bd"), e = e(), Ae(), e), ah = { class: "multi-item-wrapper" }, sh = /* @__PURE__ */ rh(() => /* @__PURE__ */ h("hr", null, null, -1)), oh = /* @__PURE__ */ ce({
|
|
3676
3659
|
__name: "FieldArrayMultiItem",
|
|
3677
3660
|
emits: ["remove-item"],
|
|
3678
3661
|
setup(e) {
|
|
3679
3662
|
return (t, n) => {
|
|
3680
3663
|
const i = k("KButton");
|
|
3681
|
-
return d(), c("div",
|
|
3664
|
+
return d(), c("div", ah, [
|
|
3682
3665
|
Ne(t.$slots, "default", {}, void 0, !0),
|
|
3683
3666
|
E(i, {
|
|
3684
3667
|
appearance: "danger",
|
|
@@ -3690,13 +3673,13 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3690
3673
|
]),
|
|
3691
3674
|
_: 1
|
|
3692
3675
|
}),
|
|
3693
|
-
|
|
3676
|
+
sh
|
|
3694
3677
|
]);
|
|
3695
3678
|
};
|
|
3696
3679
|
}
|
|
3697
|
-
}),
|
|
3680
|
+
}), Ai = /* @__PURE__ */ C(oh, [["__scopeId", "data-v-27d212bd"]]), lh = {
|
|
3698
3681
|
name: "FieldMetric",
|
|
3699
|
-
components: { AddIcon:
|
|
3682
|
+
components: { AddIcon: Wc, TrashIcon: dt },
|
|
3700
3683
|
mixins: [L],
|
|
3701
3684
|
emits: ["remove-item"],
|
|
3702
3685
|
data() {
|
|
@@ -3704,11 +3687,11 @@ const Mi = /* @__PURE__ */ C(Lc, [["render", Wc], ["__scopeId", "data-v-22600a29
|
|
|
3704
3687
|
contentVisible: !1
|
|
3705
3688
|
};
|
|
3706
3689
|
}
|
|
3707
|
-
},
|
|
3690
|
+
}, dh = {
|
|
3708
3691
|
key: 0,
|
|
3709
3692
|
class: "content"
|
|
3710
3693
|
};
|
|
3711
|
-
function
|
|
3694
|
+
function uh(e, t, n, i, a, r) {
|
|
3712
3695
|
const o = k("AddIcon"), s = k("TrashIcon"), l = k("KButton");
|
|
3713
3696
|
return d(), c("div", {
|
|
3714
3697
|
class: V(["field-dropdown", { active: a.contentVisible }])
|
|
@@ -3720,9 +3703,9 @@ function gh(e, t, n, i, a, r) {
|
|
|
3720
3703
|
ee(N(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3721
3704
|
E(o, { class: "metric-add-icon" })
|
|
3722
3705
|
]),
|
|
3723
|
-
E(
|
|
3706
|
+
E(Li, { name: "slide-fade" }, {
|
|
3724
3707
|
default: M(() => [
|
|
3725
|
-
a.contentVisible ? (d(), c("div",
|
|
3708
|
+
a.contentVisible ? (d(), c("div", dh, [
|
|
3726
3709
|
Ne(e.$slots, "default"),
|
|
3727
3710
|
E(l, {
|
|
3728
3711
|
appearance: "tertiary",
|
|
@@ -3740,22 +3723,22 @@ function gh(e, t, n, i, a, r) {
|
|
|
3740
3723
|
})
|
|
3741
3724
|
], 2);
|
|
3742
3725
|
}
|
|
3743
|
-
const
|
|
3744
|
-
function
|
|
3745
|
-
return e ? e.length === 36 && new RegExp(`^${
|
|
3726
|
+
const Oi = /* @__PURE__ */ C(lh, [["render", uh]]), ve = "kong-ui-forms-api", ch = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
3727
|
+
function hh(e) {
|
|
3728
|
+
return e ? e.length === 36 && new RegExp(`^${ch}$`).test(e) : !1;
|
|
3746
3729
|
}
|
|
3747
|
-
const
|
|
3730
|
+
const gt = 50, _e = {
|
|
3748
3731
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
3749
3732
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
3750
3733
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
3751
3734
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
3752
3735
|
};
|
|
3753
|
-
function
|
|
3736
|
+
function mh(e, t, n) {
|
|
3754
3737
|
return n ? _e.SET_REFERRAL_VALUE : e && !t || !e && t ? _e.UPDATE_ENTITY : e && t ? _e.CREATE_FROM_ENTITY : _e.CREATE_NOT_FROM_ENTITY;
|
|
3755
3738
|
}
|
|
3756
|
-
const
|
|
3739
|
+
const fh = {
|
|
3757
3740
|
mixins: [L],
|
|
3758
|
-
inject: [
|
|
3741
|
+
inject: [ve],
|
|
3759
3742
|
emits: ["model-updated"],
|
|
3760
3743
|
data() {
|
|
3761
3744
|
return {
|
|
@@ -3769,7 +3752,7 @@ const _h = {
|
|
|
3769
3752
|
},
|
|
3770
3753
|
computed: {
|
|
3771
3754
|
fieldState() {
|
|
3772
|
-
return
|
|
3755
|
+
return mh(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
3773
3756
|
},
|
|
3774
3757
|
associatedEntity() {
|
|
3775
3758
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -3786,11 +3769,11 @@ const _h = {
|
|
|
3786
3769
|
let e, t;
|
|
3787
3770
|
switch (this.fieldState) {
|
|
3788
3771
|
case _e.UPDATE_ENTITY:
|
|
3789
|
-
if (!this[
|
|
3772
|
+
if (!this[ve]) {
|
|
3790
3773
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
3791
3774
|
break;
|
|
3792
3775
|
}
|
|
3793
|
-
t = (await this[
|
|
3776
|
+
t = (await this[ve].getOne(this.entity, this.model[this.schema.model])).data, e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
3794
3777
|
break;
|
|
3795
3778
|
case _e.CREATE_FROM_ENTITY:
|
|
3796
3779
|
this.idValue = this.associatedEntity.id;
|
|
@@ -3806,7 +3789,7 @@ const _h = {
|
|
|
3806
3789
|
},
|
|
3807
3790
|
methods: {
|
|
3808
3791
|
onQueryChange(e) {
|
|
3809
|
-
e.trim().length === 0 && (this.items = [], this.message = "Type something to search"), typeof this.performSearch != "function" && (this.performSearch =
|
|
3792
|
+
e.trim().length === 0 && (this.items = [], this.message = "Type something to search"), typeof this.performSearch != "function" && (this.performSearch = ze(
|
|
3810
3793
|
this.search,
|
|
3811
3794
|
500
|
|
3812
3795
|
)), this.performSearch(e);
|
|
@@ -3816,7 +3799,7 @@ const _h = {
|
|
|
3816
3799
|
return;
|
|
3817
3800
|
this.loading = !0;
|
|
3818
3801
|
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
3819
|
-
|
|
3802
|
+
hh(e) && i.includes("id") ? n.push((async () => {
|
|
3820
3803
|
const r = await this.fetchExact(e);
|
|
3821
3804
|
t.push({ ...r, label: this.getSuggestionLabel(r), value: r.id });
|
|
3822
3805
|
})()) : n.push(...i.filter((r) => r !== "id").map(async (r) => {
|
|
@@ -3831,24 +3814,24 @@ const _h = {
|
|
|
3831
3814
|
async fetchUntilLimit(e) {
|
|
3832
3815
|
const t = [];
|
|
3833
3816
|
let n = null;
|
|
3834
|
-
if (!this[
|
|
3817
|
+
if (!this[ve])
|
|
3835
3818
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
3836
|
-
for (; t.length <
|
|
3837
|
-
const i = await this[
|
|
3838
|
-
size:
|
|
3819
|
+
for (; t.length < gt; ) {
|
|
3820
|
+
const i = await this[ve].getAll(this.entity, {
|
|
3821
|
+
size: gt,
|
|
3839
3822
|
offset: n,
|
|
3840
3823
|
...e
|
|
3841
3824
|
});
|
|
3842
3825
|
if (t.push(...i.data.data), n = i.data.offset, !n)
|
|
3843
3826
|
break;
|
|
3844
3827
|
}
|
|
3845
|
-
return t.slice(0,
|
|
3828
|
+
return t.slice(0, gt);
|
|
3846
3829
|
},
|
|
3847
3830
|
async fetchSuggestions(e, t) {
|
|
3848
3831
|
return this.fetchUntilLimit({ [t]: e });
|
|
3849
3832
|
},
|
|
3850
3833
|
async fetchExact(e) {
|
|
3851
|
-
return this[
|
|
3834
|
+
return this[ve] ? (await this[ve].getOne(this.entity, e)).data : (console.warn("[@kong-ui-public/forms] No API service provided"), {});
|
|
3852
3835
|
},
|
|
3853
3836
|
getInputFields() {
|
|
3854
3837
|
var e, t;
|
|
@@ -3870,10 +3853,10 @@ const _h = {
|
|
|
3870
3853
|
return t ? e[t] : e.id;
|
|
3871
3854
|
}
|
|
3872
3855
|
}
|
|
3873
|
-
},
|
|
3874
|
-
function
|
|
3856
|
+
}, ph = { class: "field-wrap autosuggest" }, gh = ["data-testid", "data-testlabel"], yh = ["data-testid"], bh = { class: "autosuggest__results_message" };
|
|
3857
|
+
function vh(e, t, n, i, a, r) {
|
|
3875
3858
|
const o = k("KSelect");
|
|
3876
|
-
return d(), c("div",
|
|
3859
|
+
return d(), c("div", ph, [
|
|
3877
3860
|
E(o, {
|
|
3878
3861
|
id: e.schema.model,
|
|
3879
3862
|
ref: "suggestion",
|
|
@@ -3894,15 +3877,15 @@ function Ch(e, t, n, i, a, r) {
|
|
|
3894
3877
|
class: "first-part",
|
|
3895
3878
|
"data-testid": s.id && `${s.id}-0`,
|
|
3896
3879
|
"data-testlabel": s.label
|
|
3897
|
-
}, N(r.getSuggestionLabel(s).split(" - ")[0]), 9,
|
|
3880
|
+
}, N(r.getSuggestionLabel(s).split(" - ")[0]), 9, gh),
|
|
3898
3881
|
(d(!0), c(D, null, z(r.getSuggestionLabel(s).split(" - ").slice(1), (l, u) => (d(), c("span", {
|
|
3899
3882
|
key: u,
|
|
3900
3883
|
class: "field-span",
|
|
3901
3884
|
"data-testid": s.id && `${s.id}-${u + 1}` || u + 1
|
|
3902
|
-
}, N(l), 9,
|
|
3885
|
+
}, N(l), 9, yh))), 128))
|
|
3903
3886
|
]),
|
|
3904
3887
|
empty: M(() => [
|
|
3905
|
-
h("div",
|
|
3888
|
+
h("div", bh, [
|
|
3906
3889
|
h("span", null, N(a.message), 1)
|
|
3907
3890
|
])
|
|
3908
3891
|
]),
|
|
@@ -3910,7 +3893,7 @@ function Ch(e, t, n, i, a, r) {
|
|
|
3910
3893
|
}, 8, ["id", "modelValue", "items", "loading", "placeholder", "onChange", "onQueryChange"])
|
|
3911
3894
|
]);
|
|
3912
3895
|
}
|
|
3913
|
-
const
|
|
3896
|
+
const Ei = /* @__PURE__ */ C(fh, [["render", vh], ["__scopeId", "data-v-647bb712"]]), _h = { class: "array-card-container" }, wh = /* @__PURE__ */ ce({
|
|
3914
3897
|
__name: "FieldArrayCardContainer",
|
|
3915
3898
|
props: {
|
|
3916
3899
|
model: {
|
|
@@ -3926,7 +3909,7 @@ const ki = /* @__PURE__ */ C(_h, [["render", Ch], ["__scopeId", "data-v-647bb712
|
|
|
3926
3909
|
setup(e) {
|
|
3927
3910
|
return (t, n) => {
|
|
3928
3911
|
const i = k("KCard"), a = k("KButton");
|
|
3929
|
-
return d(), c("div",
|
|
3912
|
+
return d(), c("div", _h, [
|
|
3930
3913
|
E(i, { class: "card" }, {
|
|
3931
3914
|
default: M(() => [
|
|
3932
3915
|
Ne(t.$slots, "default", {}, void 0, !0)
|
|
@@ -3939,14 +3922,14 @@ const ki = /* @__PURE__ */ C(_h, [["render", Ch], ["__scopeId", "data-v-647bb712
|
|
|
3939
3922
|
onClick: n[0] || (n[0] = (r) => t.$emit("remove-item"))
|
|
3940
3923
|
}, {
|
|
3941
3924
|
default: M(() => [
|
|
3942
|
-
E(we(
|
|
3925
|
+
E(we(dt))
|
|
3943
3926
|
]),
|
|
3944
3927
|
_: 1
|
|
3945
3928
|
})
|
|
3946
3929
|
]);
|
|
3947
3930
|
};
|
|
3948
3931
|
}
|
|
3949
|
-
}),
|
|
3932
|
+
}), ki = /* @__PURE__ */ C(wh, [["__scopeId", "data-v-5fa27cb4"]]), Th = {
|
|
3950
3933
|
mixins: [L],
|
|
3951
3934
|
emits: ["model-updated"],
|
|
3952
3935
|
methods: {
|
|
@@ -3961,14 +3944,14 @@ const ki = /* @__PURE__ */ C(_h, [["render", Ch], ["__scopeId", "data-v-647bb712
|
|
|
3961
3944
|
this.schema.array || (t = t.toString()), this.updateModel(t);
|
|
3962
3945
|
}
|
|
3963
3946
|
}
|
|
3964
|
-
},
|
|
3965
|
-
function
|
|
3966
|
-
return d(), c("div",
|
|
3947
|
+
}, Sh = { class: "selection-group" }, $h = { class: "form-group" }, Ch = ["id", "checked", "name", "value"];
|
|
3948
|
+
function Mh(e, t, n, i, a, r) {
|
|
3949
|
+
return d(), c("div", Sh, [
|
|
3967
3950
|
(d(!0), c(D, null, z(e.schema.values, (o, s) => (d(), c("div", {
|
|
3968
3951
|
key: s,
|
|
3969
3952
|
class: "option-group"
|
|
3970
3953
|
}, [
|
|
3971
|
-
h("div",
|
|
3954
|
+
h("div", $h, [
|
|
3972
3955
|
h("label", {
|
|
3973
3956
|
class: V(["k-label", o.name])
|
|
3974
3957
|
}, [
|
|
@@ -3980,27 +3963,27 @@ function Fh(e, t, n, i, a, r) {
|
|
|
3980
3963
|
type: "radio",
|
|
3981
3964
|
value: o.value,
|
|
3982
3965
|
onChange: t[0] || (t[0] = (...l) => r.onChange && r.onChange(...l))
|
|
3983
|
-
}, null, 40,
|
|
3966
|
+
}, null, 40, Ch),
|
|
3984
3967
|
ee(" " + N(o.name), 1)
|
|
3985
3968
|
], 2)
|
|
3986
3969
|
])
|
|
3987
3970
|
]))), 128))
|
|
3988
3971
|
]);
|
|
3989
3972
|
}
|
|
3990
|
-
const
|
|
3973
|
+
const Fi = /* @__PURE__ */ C(Th, [["render", Mh], ["__scopeId", "data-v-7e49acd6"]]), Ih = {
|
|
3991
3974
|
name: "FieldArray",
|
|
3992
3975
|
components: {
|
|
3993
|
-
FieldArrayItem:
|
|
3994
|
-
FieldArrayMultiItem:
|
|
3995
|
-
FieldSelect:
|
|
3996
|
-
FieldMetric:
|
|
3997
|
-
FieldObject:
|
|
3998
|
-
FieldObjectAdvanced:
|
|
3999
|
-
FieldAutoSuggest:
|
|
4000
|
-
FieldRadio:
|
|
4001
|
-
FieldArrayCardContainer:
|
|
4002
|
-
FieldTextArea:
|
|
4003
|
-
FieldInput:
|
|
3976
|
+
FieldArrayItem: Ii,
|
|
3977
|
+
FieldArrayMultiItem: Ai,
|
|
3978
|
+
FieldSelect: _i,
|
|
3979
|
+
FieldMetric: Oi,
|
|
3980
|
+
FieldObject: Si,
|
|
3981
|
+
FieldObjectAdvanced: Ci,
|
|
3982
|
+
FieldAutoSuggest: Ei,
|
|
3983
|
+
FieldRadio: Fi,
|
|
3984
|
+
FieldArrayCardContainer: ki,
|
|
3985
|
+
FieldTextArea: wi,
|
|
3986
|
+
FieldInput: pi
|
|
4004
3987
|
},
|
|
4005
3988
|
mixins: [L],
|
|
4006
3989
|
props: {
|
|
@@ -4040,8 +4023,8 @@ const Ui = /* @__PURE__ */ C(Ah, [["render", Fh], ["__scopeId", "data-v-7e49acd6
|
|
|
4040
4023
|
modelUpdated() {
|
|
4041
4024
|
}
|
|
4042
4025
|
}
|
|
4043
|
-
},
|
|
4044
|
-
function
|
|
4026
|
+
}, Ah = ["id"], Oh = { key: 1 }, Eh = ["onUpdate:modelValue", "aria-labelledby", "type"], kh = ["value", "onClick"], Fh = ["onUpdate:modelValue", "aria-labelledby"], Uh = ["value", "onClick"];
|
|
4027
|
+
function Nh(e, t, n, i, a, r) {
|
|
4045
4028
|
const o = k("FieldTextArea"), s = k("KButton");
|
|
4046
4029
|
return e.schema ? (d(), c("div", {
|
|
4047
4030
|
key: 0,
|
|
@@ -4052,14 +4035,14 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4052
4035
|
key: u,
|
|
4053
4036
|
class: V(e.schema.fieldItemsClasses)
|
|
4054
4037
|
}, [
|
|
4055
|
-
e.schema.items && e.schema.itemContainerComponent ? (d(), I(
|
|
4038
|
+
e.schema.items && e.schema.itemContainerComponent ? (d(), I(se(e.schema.itemContainerComponent), {
|
|
4056
4039
|
key: 0,
|
|
4057
4040
|
model: l,
|
|
4058
4041
|
schema: r.generateSchema(e.value, e.schema.items, u),
|
|
4059
4042
|
onRemoveItem: (m) => r.removeElement(u)
|
|
4060
4043
|
}, {
|
|
4061
4044
|
default: M(() => [
|
|
4062
|
-
(d(), I(
|
|
4045
|
+
(d(), I(se(r.getFieldType(e.schema.items)), {
|
|
4063
4046
|
"form-options": e.formOptions,
|
|
4064
4047
|
model: l,
|
|
4065
4048
|
schema: r.generateSchema(e.value, e.schema.items, u),
|
|
@@ -4067,14 +4050,14 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4067
4050
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
4068
4051
|
]),
|
|
4069
4052
|
_: 2
|
|
4070
|
-
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), c("span",
|
|
4071
|
-
(d(), I(
|
|
4053
|
+
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), c("span", Oh, [
|
|
4054
|
+
(d(), I(se(r.getFieldType(e.schema.items)), {
|
|
4072
4055
|
"form-options": e.formOptions,
|
|
4073
4056
|
model: l,
|
|
4074
4057
|
schema: r.generateSchema(e.value, e.schema.items, u),
|
|
4075
4058
|
onModelUpdated: r.modelUpdated
|
|
4076
4059
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
4077
|
-
])) : e.schema.itemContainerComponent ? (d(), I(
|
|
4060
|
+
])) : e.schema.itemContainerComponent ? (d(), I(se(e.schema.itemContainerComponent), {
|
|
4078
4061
|
key: 2,
|
|
4079
4062
|
"data-testid": `${e.getFieldID(e.schema)}-item-${u}`,
|
|
4080
4063
|
model: l,
|
|
@@ -4094,13 +4077,13 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4094
4077
|
onModelUpdated: r.modelUpdated
|
|
4095
4078
|
}, null, 8, ["aria-labelledby", "form-options", "model", "schema", "onModelUpdated"])) : P((d(), c("input", Fe({
|
|
4096
4079
|
key: 1,
|
|
4097
|
-
"onUpdate:modelValue": (
|
|
4080
|
+
"onUpdate:modelValue": (v) => e.value[u] = v,
|
|
4098
4081
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4099
4082
|
ref_for: !0
|
|
4100
4083
|
}, e.schema.inputAttributes, {
|
|
4101
4084
|
type: ((b = e.schema.inputAttributes) == null ? void 0 : b.type) || "text"
|
|
4102
|
-
}), null, 16,
|
|
4103
|
-
[
|
|
4085
|
+
}), null, 16, Eh)), [
|
|
4086
|
+
[Vi, e.value[u]]
|
|
4104
4087
|
]),
|
|
4105
4088
|
e.schema.showRemoveButton ? (d(), c("input", Fe({
|
|
4106
4089
|
key: 2,
|
|
@@ -4108,8 +4091,8 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4108
4091
|
}, e.schema.removeElementButtonAttributes, {
|
|
4109
4092
|
type: "button",
|
|
4110
4093
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
4111
|
-
onClick: (
|
|
4112
|
-
}), null, 16,
|
|
4094
|
+
onClick: (v) => r.removeElement(u)
|
|
4095
|
+
}), null, 16, kh)) : w("", !0)
|
|
4113
4096
|
];
|
|
4114
4097
|
}),
|
|
4115
4098
|
_: 2
|
|
@@ -4120,8 +4103,8 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4120
4103
|
"onUpdate:modelValue": (m) => e.value[u] = m,
|
|
4121
4104
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4122
4105
|
type: "text"
|
|
4123
|
-
}), null, 16,
|
|
4124
|
-
[
|
|
4106
|
+
}), null, 16, Fh)), [
|
|
4107
|
+
[re, e.value[u]]
|
|
4125
4108
|
]),
|
|
4126
4109
|
e.schema.showRemoveButton ? (d(), c("input", Fe({
|
|
4127
4110
|
key: 4,
|
|
@@ -4130,7 +4113,7 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4130
4113
|
type: "button",
|
|
4131
4114
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
4132
4115
|
onClick: (m) => r.removeElement(u)
|
|
4133
|
-
}), null, 16,
|
|
4116
|
+
}), null, 16, Uh)) : w("", !0)
|
|
4134
4117
|
], 2))), 128)),
|
|
4135
4118
|
E(s, {
|
|
4136
4119
|
appearance: "tertiary",
|
|
@@ -4144,9 +4127,9 @@ function Bh(e, t, n, i, a, r) {
|
|
|
4144
4127
|
]),
|
|
4145
4128
|
_: 1
|
|
4146
4129
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4147
|
-
], 10,
|
|
4130
|
+
], 10, Ah)) : w("", !0);
|
|
4148
4131
|
}
|
|
4149
|
-
const
|
|
4132
|
+
const Ph = /* @__PURE__ */ C(Ih, [["render", Nh], ["__scopeId", "data-v-c42fe627"]]), Lh = {
|
|
4150
4133
|
mixins: [L],
|
|
4151
4134
|
emits: ["model-updated"],
|
|
4152
4135
|
data() {
|
|
@@ -4173,19 +4156,19 @@ const Rh = /* @__PURE__ */ C(Uh, [["render", Bh], ["__scopeId", "data-v-c42fe627
|
|
|
4173
4156
|
this.$emit("model-updated", e, t);
|
|
4174
4157
|
}
|
|
4175
4158
|
}
|
|
4176
|
-
},
|
|
4159
|
+
}, Vh = {
|
|
4177
4160
|
class: "advanced-field-dropdown-wrapper",
|
|
4178
4161
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
4179
|
-
},
|
|
4180
|
-
function
|
|
4162
|
+
}, Dh = { class: "material-icons" };
|
|
4163
|
+
function jh(e, t, n, i, a, r) {
|
|
4181
4164
|
const o = k("vue-form-generator");
|
|
4182
|
-
return d(), c("div",
|
|
4165
|
+
return d(), c("div", Vh, [
|
|
4183
4166
|
h("button", {
|
|
4184
4167
|
class: "advanced-field-title",
|
|
4185
4168
|
type: "button",
|
|
4186
4169
|
onClick: t[0] || (t[0] = (...s) => r.handleOpen && r.handleOpen(...s))
|
|
4187
4170
|
}, [
|
|
4188
|
-
h("i",
|
|
4171
|
+
h("i", Dh, N(a.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
4189
4172
|
h("span", null, N(r.titleText), 1)
|
|
4190
4173
|
]),
|
|
4191
4174
|
h("div", {
|
|
@@ -4200,7 +4183,7 @@ function Yh(e, t, n, i, a, r) {
|
|
|
4200
4183
|
], 2)
|
|
4201
4184
|
]);
|
|
4202
4185
|
}
|
|
4203
|
-
const
|
|
4186
|
+
const Rh = /* @__PURE__ */ C(Lh, [["render", jh], ["__scopeId", "data-v-2d8e71e1"]]), Bh = {
|
|
4204
4187
|
mixins: [L],
|
|
4205
4188
|
emits: ["model-updated"],
|
|
4206
4189
|
data() {
|
|
@@ -4235,15 +4218,15 @@ const zh = /* @__PURE__ */ C(qh, [["render", Yh], ["__scopeId", "data-v-2d8e71e1
|
|
|
4235
4218
|
this.$emit("model-updated", e, t);
|
|
4236
4219
|
}
|
|
4237
4220
|
}
|
|
4238
|
-
},
|
|
4239
|
-
function
|
|
4221
|
+
}, qh = { class: "selection-group" }, Kh = { class: "form-group" }, Hh = ["value"], Yh = { class: "control-help" }, zh = { class: "option-field" }, Gh = { class: "option-field-container" };
|
|
4222
|
+
function xh(e, t, n, i, a, r) {
|
|
4240
4223
|
const o = k("vue-form-generator");
|
|
4241
|
-
return d(), c("div",
|
|
4224
|
+
return d(), c("div", qh, [
|
|
4242
4225
|
(d(!0), c(D, null, z(e.schema.fields, (s, l) => (d(), c("div", {
|
|
4243
4226
|
key: l,
|
|
4244
4227
|
class: "option-group"
|
|
4245
4228
|
}, [
|
|
4246
|
-
h("div",
|
|
4229
|
+
h("div", Kh, [
|
|
4247
4230
|
h("label", {
|
|
4248
4231
|
class: V(["k-label", `${s.label}-check`])
|
|
4249
4232
|
}, [
|
|
@@ -4252,15 +4235,15 @@ function em(e, t, n, i, a, r) {
|
|
|
4252
4235
|
class: "k-input",
|
|
4253
4236
|
type: "radio",
|
|
4254
4237
|
value: l
|
|
4255
|
-
}, null, 8,
|
|
4256
|
-
[
|
|
4238
|
+
}, null, 8, Hh), [
|
|
4239
|
+
[Di, a.checkedGroup]
|
|
4257
4240
|
]),
|
|
4258
4241
|
ee(" " + N(s.label) + " ", 1),
|
|
4259
|
-
h("div",
|
|
4242
|
+
h("div", Yh, N(s.description), 1)
|
|
4260
4243
|
], 2)
|
|
4261
4244
|
]),
|
|
4262
|
-
P(h("div",
|
|
4263
|
-
h("div",
|
|
4245
|
+
P(h("div", zh, [
|
|
4246
|
+
h("div", Gh, [
|
|
4264
4247
|
E(o, {
|
|
4265
4248
|
model: e.model,
|
|
4266
4249
|
options: { helpAsHtml: !0 },
|
|
@@ -4269,12 +4252,12 @@ function em(e, t, n, i, a, r) {
|
|
|
4269
4252
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
4270
4253
|
])
|
|
4271
4254
|
], 512), [
|
|
4272
|
-
[
|
|
4255
|
+
[An, s.fields && a.checkedGroup === l]
|
|
4273
4256
|
])
|
|
4274
4257
|
]))), 128))
|
|
4275
4258
|
]);
|
|
4276
4259
|
}
|
|
4277
|
-
const
|
|
4260
|
+
const Zh = /* @__PURE__ */ C(Bh, [["render", xh], ["__scopeId", "data-v-25fe24da"]]), Wh = {
|
|
4278
4261
|
mixins: [L],
|
|
4279
4262
|
emits: ["model-updated"],
|
|
4280
4263
|
methods: {
|
|
@@ -4283,7 +4266,7 @@ const tm = /* @__PURE__ */ C(xh, [["render", em], ["__scopeId", "data-v-25fe24da
|
|
|
4283
4266
|
}
|
|
4284
4267
|
}
|
|
4285
4268
|
};
|
|
4286
|
-
function
|
|
4269
|
+
function Jh(e, t, n, i, a, r) {
|
|
4287
4270
|
const o = k("KMultiselect");
|
|
4288
4271
|
return d(), I(o, {
|
|
4289
4272
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
@@ -4297,9 +4280,9 @@ function im(e, t, n, i, a, r) {
|
|
|
4297
4280
|
"onUpdate:modelValue": r.onUpdate
|
|
4298
4281
|
}, null, 8, ["aria-labelledby", "items", "label-attributes", "model-value", "placeholder", "required", "onUpdate:modelValue"]);
|
|
4299
4282
|
}
|
|
4300
|
-
const
|
|
4283
|
+
const Xh = /* @__PURE__ */ C(Wh, [["render", Jh]]), Qh = {
|
|
4301
4284
|
name: "FieldKeyValuePairs",
|
|
4302
|
-
components: { TrashIcon:
|
|
4285
|
+
components: { TrashIcon: dt },
|
|
4303
4286
|
mixins: [L],
|
|
4304
4287
|
data() {
|
|
4305
4288
|
return {
|
|
@@ -4345,10 +4328,10 @@ const rm = /* @__PURE__ */ C(nm, [["render", im]]), am = {
|
|
|
4345
4328
|
this.pairs.splice(e, 1);
|
|
4346
4329
|
}
|
|
4347
4330
|
}
|
|
4348
|
-
},
|
|
4349
|
-
function
|
|
4331
|
+
}, em = { class: "key-value-pairs-editor" }, tm = ["data-testid", "placeholder", "value", "onInput"], nm = ["data-testid", "placeholder", "value", "onInput"];
|
|
4332
|
+
function im(e, t, n, i, a, r) {
|
|
4350
4333
|
const o = k("TrashIcon"), s = k("KButton");
|
|
4351
|
-
return d(), c("div",
|
|
4334
|
+
return d(), c("div", em, [
|
|
4352
4335
|
(d(!0), c(D, null, z(a.pairs, (l, u) => (d(), c("div", {
|
|
4353
4336
|
key: u,
|
|
4354
4337
|
class: "pair-item"
|
|
@@ -4362,7 +4345,7 @@ function dm(e, t, n, i, a, r) {
|
|
|
4362
4345
|
onInput: (m) => {
|
|
4363
4346
|
r.onInput(m, u, "key");
|
|
4364
4347
|
}
|
|
4365
|
-
}, null, 40,
|
|
4348
|
+
}, null, 40, tm),
|
|
4366
4349
|
h("input", {
|
|
4367
4350
|
class: "form-control",
|
|
4368
4351
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
@@ -4372,7 +4355,7 @@ function dm(e, t, n, i, a, r) {
|
|
|
4372
4355
|
onInput: (m) => {
|
|
4373
4356
|
r.onInput(m, u, "value");
|
|
4374
4357
|
}
|
|
4375
|
-
}, null, 40,
|
|
4358
|
+
}, null, 40, nm),
|
|
4376
4359
|
E(s, {
|
|
4377
4360
|
appearance: "tertiary",
|
|
4378
4361
|
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${u}`,
|
|
@@ -4400,46 +4383,46 @@ function dm(e, t, n, i, a, r) {
|
|
|
4400
4383
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4401
4384
|
]);
|
|
4402
4385
|
}
|
|
4403
|
-
const
|
|
4386
|
+
const rm = /* @__PURE__ */ C(Qh, [["render", im], ["__scopeId", "data-v-29d15375"]]), am = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4404
4387
|
__proto__: null,
|
|
4405
|
-
FieldAdvanced:
|
|
4406
|
-
FieldArray:
|
|
4407
|
-
FieldArrayCardContainer:
|
|
4408
|
-
FieldArrayItem:
|
|
4409
|
-
FieldArrayMultiItem:
|
|
4410
|
-
FieldAutoSuggest:
|
|
4411
|
-
FieldCheckbox:
|
|
4412
|
-
FieldChecklist:
|
|
4413
|
-
FieldCleave:
|
|
4414
|
-
FieldDateTimePicker:
|
|
4415
|
-
FieldGoogleAddress:
|
|
4416
|
-
FieldImage:
|
|
4417
|
-
FieldInput:
|
|
4418
|
-
FieldKeyValuePairs:
|
|
4419
|
-
FieldLabel:
|
|
4420
|
-
FieldMasked:
|
|
4421
|
-
FieldMetric:
|
|
4422
|
-
FieldMultiselect:
|
|
4423
|
-
FieldNoUiSlider:
|
|
4424
|
-
FieldObject:
|
|
4425
|
-
FieldObjectAdvanced:
|
|
4426
|
-
FieldPikaday:
|
|
4427
|
-
FieldRadio:
|
|
4428
|
-
FieldRadios:
|
|
4429
|
-
FieldRangeSlider:
|
|
4430
|
-
FieldSelect:
|
|
4431
|
-
FieldSelectEx:
|
|
4432
|
-
FieldSelectionGroup:
|
|
4433
|
-
FieldSpectrum:
|
|
4434
|
-
FieldStaticMap:
|
|
4435
|
-
FieldSubmit:
|
|
4436
|
-
FieldTextArea:
|
|
4437
|
-
FieldUpload:
|
|
4438
|
-
fieldSwitch:
|
|
4439
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4388
|
+
FieldAdvanced: Rh,
|
|
4389
|
+
FieldArray: Ph,
|
|
4390
|
+
FieldArrayCardContainer: ki,
|
|
4391
|
+
FieldArrayItem: Ii,
|
|
4392
|
+
FieldArrayMultiItem: Ai,
|
|
4393
|
+
FieldAutoSuggest: Ei,
|
|
4394
|
+
FieldCheckbox: Ol,
|
|
4395
|
+
FieldChecklist: Bl,
|
|
4396
|
+
FieldCleave: fu,
|
|
4397
|
+
FieldDateTimePicker: _u,
|
|
4398
|
+
FieldGoogleAddress: $u,
|
|
4399
|
+
FieldImage: Eu,
|
|
4400
|
+
FieldInput: pi,
|
|
4401
|
+
FieldKeyValuePairs: rm,
|
|
4402
|
+
FieldLabel: zl,
|
|
4403
|
+
FieldMasked: Nu,
|
|
4404
|
+
FieldMetric: Oi,
|
|
4405
|
+
FieldMultiselect: Xh,
|
|
4406
|
+
FieldNoUiSlider: Du,
|
|
4407
|
+
FieldObject: Si,
|
|
4408
|
+
FieldObjectAdvanced: Ci,
|
|
4409
|
+
FieldPikaday: Ku,
|
|
4410
|
+
FieldRadio: Fi,
|
|
4411
|
+
FieldRadios: Jl,
|
|
4412
|
+
FieldRangeSlider: Gu,
|
|
4413
|
+
FieldSelect: _i,
|
|
4414
|
+
FieldSelectEx: Qu,
|
|
4415
|
+
FieldSelectionGroup: Zh,
|
|
4416
|
+
FieldSpectrum: ic,
|
|
4417
|
+
FieldStaticMap: oc,
|
|
4418
|
+
FieldSubmit: nu,
|
|
4419
|
+
FieldTextArea: wi,
|
|
4420
|
+
FieldUpload: uu,
|
|
4421
|
+
fieldSwitch: mc
|
|
4422
|
+
}, Symbol.toStringTag, { value: "Module" })), sm = {
|
|
4440
4423
|
name: "FormGroup",
|
|
4441
|
-
components:
|
|
4442
|
-
mixins: [
|
|
4424
|
+
components: am,
|
|
4425
|
+
mixins: [Hn],
|
|
4443
4426
|
props: {
|
|
4444
4427
|
vfg: {
|
|
4445
4428
|
type: Object,
|
|
@@ -4469,13 +4452,13 @@ const um = /* @__PURE__ */ C(am, [["render", dm], ["__scopeId", "data-v-29d15375
|
|
|
4469
4452
|
emits: ["validated", "modelUpdated"],
|
|
4470
4453
|
data() {
|
|
4471
4454
|
return {
|
|
4472
|
-
child:
|
|
4455
|
+
child: ge()
|
|
4473
4456
|
};
|
|
4474
4457
|
},
|
|
4475
4458
|
methods: {
|
|
4476
4459
|
// Should field type have a label?
|
|
4477
4460
|
fieldTypeHasLabel(e) {
|
|
4478
|
-
if (
|
|
4461
|
+
if (G(e.label))
|
|
4479
4462
|
return !1;
|
|
4480
4463
|
let t = "";
|
|
4481
4464
|
switch (e.type === "input" ? t = e.inputType : t = e.type, t) {
|
|
@@ -4489,7 +4472,7 @@ const um = /* @__PURE__ */ C(am, [["render", dm], ["__scopeId", "data-v-29d15375
|
|
|
4489
4472
|
},
|
|
4490
4473
|
getFieldID(e) {
|
|
4491
4474
|
const t = O(this.options, "fieldIdPrefix", "");
|
|
4492
|
-
return
|
|
4475
|
+
return Pt(e, t);
|
|
4493
4476
|
},
|
|
4494
4477
|
getTooltipId(e) {
|
|
4495
4478
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -4534,17 +4517,17 @@ const um = /* @__PURE__ */ C(am, [["render", dm], ["__scopeId", "data-v-29d15375
|
|
|
4534
4517
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
4535
4518
|
}
|
|
4536
4519
|
}
|
|
4537
|
-
},
|
|
4520
|
+
}, om = (e) => (Ie("data-v-02e656fb"), e = e(), Ae(), e), lm = ["innerHTML"], dm = { class: "icon-wrapper" }, um = ["innerHTML"], cm = {
|
|
4538
4521
|
key: 0,
|
|
4539
4522
|
class: "link-wrapper"
|
|
4540
|
-
},
|
|
4523
|
+
}, hm = /* @__PURE__ */ om(() => /* @__PURE__ */ h("span", { class: "section-header" }, "More info", -1)), mm = { class: "field-wrap" }, fm = {
|
|
4541
4524
|
key: 0,
|
|
4542
4525
|
class: "buttons"
|
|
4543
|
-
},
|
|
4526
|
+
}, pm = ["type", "onClick", "textContent"], gm = ["innerHTML"], ym = {
|
|
4544
4527
|
key: 2,
|
|
4545
4528
|
class: "errors help-block"
|
|
4546
|
-
},
|
|
4547
|
-
function
|
|
4529
|
+
}, bm = ["innerHTML"];
|
|
4530
|
+
function vm(e, t, n, i, a, r) {
|
|
4548
4531
|
const o = k("KExternalLink"), s = k("KLabel");
|
|
4549
4532
|
return d(), c("div", {
|
|
4550
4533
|
class: V(["form-group", e.getFieldRowClasses(n.field)])
|
|
@@ -4560,19 +4543,19 @@ function Cm(e, t, n, i, a, r) {
|
|
|
4560
4543
|
placement: "top",
|
|
4561
4544
|
tooltipId: r.getTooltipId(n.field)
|
|
4562
4545
|
} : void 0
|
|
4563
|
-
},
|
|
4546
|
+
}, On({
|
|
4564
4547
|
default: M(() => [
|
|
4565
|
-
h("div",
|
|
4548
|
+
h("div", dm, [
|
|
4566
4549
|
h("span", {
|
|
4567
4550
|
innerHTML: r.formattedLabel(n.field.label)
|
|
4568
|
-
}, null, 8,
|
|
4551
|
+
}, null, 8, um)
|
|
4569
4552
|
]),
|
|
4570
|
-
n.field.link ? (d(), c("div",
|
|
4553
|
+
n.field.link ? (d(), c("div", cm, [
|
|
4571
4554
|
E(o, {
|
|
4572
4555
|
href: n.field.link
|
|
4573
4556
|
}, {
|
|
4574
4557
|
default: M(() => [
|
|
4575
|
-
|
|
4558
|
+
hm
|
|
4576
4559
|
]),
|
|
4577
4560
|
_: 1
|
|
4578
4561
|
}, 8, ["href"])
|
|
@@ -4585,13 +4568,13 @@ function Cm(e, t, n, i, a, r) {
|
|
|
4585
4568
|
fn: M(() => [
|
|
4586
4569
|
h("div", {
|
|
4587
4570
|
innerHTML: n.field.help
|
|
4588
|
-
}, null, 8,
|
|
4571
|
+
}, null, 8, lm)
|
|
4589
4572
|
]),
|
|
4590
4573
|
key: "0"
|
|
4591
4574
|
} : void 0
|
|
4592
4575
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : w("", !0),
|
|
4593
|
-
h("div",
|
|
4594
|
-
(d(), I(
|
|
4576
|
+
h("div", mm, [
|
|
4577
|
+
(d(), I(se(r.getFieldType(n.field)), Fe(e.$attrs, {
|
|
4595
4578
|
ref: "child",
|
|
4596
4579
|
disabled: e.fieldDisabled(n.field) || null,
|
|
4597
4580
|
"form-options": n.options,
|
|
@@ -4602,33 +4585,33 @@ function Cm(e, t, n, i, a, r) {
|
|
|
4602
4585
|
onModelUpdated: r.onModelUpdated,
|
|
4603
4586
|
onValidated: r.onFieldValidated
|
|
4604
4587
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onValidated"])),
|
|
4605
|
-
r.buttonVisibility(n.field) ? (d(), c("div",
|
|
4588
|
+
r.buttonVisibility(n.field) ? (d(), c("div", fm, [
|
|
4606
4589
|
(d(!0), c(D, null, z(n.field.buttons, (l, u) => (d(), c("button", {
|
|
4607
4590
|
key: u,
|
|
4608
4591
|
class: V(l.classes),
|
|
4609
4592
|
type: r.getButtonType(l),
|
|
4610
4593
|
onClick: (m) => r.buttonClickHandler(l, n.field, m),
|
|
4611
4594
|
textContent: N(l.label)
|
|
4612
|
-
}, null, 10,
|
|
4595
|
+
}, null, 10, pm))), 128))
|
|
4613
4596
|
])) : w("", !0)
|
|
4614
4597
|
]),
|
|
4615
4598
|
n.field.hint && r.getFieldType(n.field) !== "field-input" ? (d(), c("div", {
|
|
4616
4599
|
key: 1,
|
|
4617
4600
|
class: "hint",
|
|
4618
4601
|
innerHTML: r.fieldHint(n.field)
|
|
4619
|
-
}, null, 8,
|
|
4620
|
-
r.fieldErrors(n.field).length > 0 ? (d(), c("div",
|
|
4602
|
+
}, null, 8, gm)) : w("", !0),
|
|
4603
|
+
r.fieldErrors(n.field).length > 0 ? (d(), c("div", ym, [
|
|
4621
4604
|
(d(!0), c(D, null, z(r.fieldErrors(n.field), (l, u) => (d(), c("span", {
|
|
4622
4605
|
key: u,
|
|
4623
4606
|
innerHTML: l
|
|
4624
|
-
}, null, 8,
|
|
4607
|
+
}, null, 8, bm))), 128))
|
|
4625
4608
|
])) : w("", !0)
|
|
4626
4609
|
], 2);
|
|
4627
4610
|
}
|
|
4628
|
-
const
|
|
4611
|
+
const _m = /* @__PURE__ */ C(sm, [["render", vm], ["__scopeId", "data-v-02e656fb"]]), wm = {
|
|
4629
4612
|
name: "FormGenerator",
|
|
4630
|
-
components: { formGroup:
|
|
4631
|
-
mixins: [
|
|
4613
|
+
components: { formGroup: _m },
|
|
4614
|
+
mixins: [Hn],
|
|
4632
4615
|
props: {
|
|
4633
4616
|
schema: {
|
|
4634
4617
|
type: Object,
|
|
@@ -4646,7 +4629,7 @@ const Mm = /* @__PURE__ */ C(hm, [["render", Cm], ["__scopeId", "data-v-02e656fb
|
|
|
4646
4629
|
return {
|
|
4647
4630
|
validateAfterLoad: !1,
|
|
4648
4631
|
validateAfterChanged: !1,
|
|
4649
|
-
child:
|
|
4632
|
+
child: ge([]),
|
|
4650
4633
|
fieldIdPrefix: "",
|
|
4651
4634
|
validateAsync: !1,
|
|
4652
4635
|
validationErrorClass: "error",
|
|
@@ -4677,7 +4660,7 @@ const Mm = /* @__PURE__ */ C(hm, [["render", Cm], ["__scopeId", "data-v-02e656fb
|
|
|
4677
4660
|
vfg: this,
|
|
4678
4661
|
errors: [],
|
|
4679
4662
|
// Validation errors,
|
|
4680
|
-
children:
|
|
4663
|
+
children: ge([]),
|
|
4681
4664
|
collapseStates: {}
|
|
4682
4665
|
};
|
|
4683
4666
|
},
|
|
@@ -4714,7 +4697,7 @@ const Mm = /* @__PURE__ */ C(hm, [["render", Cm], ["__scopeId", "data-v-02e656fb
|
|
|
4714
4697
|
methods: {
|
|
4715
4698
|
// Get visible prop of field
|
|
4716
4699
|
fieldVisible(e) {
|
|
4717
|
-
return U(e.visible) ? e.visible.call(this, this.model, e, this) :
|
|
4700
|
+
return U(e.visible) ? e.visible.call(this, this.model, e, this) : G(e.visible) ? !0 : e.visible;
|
|
4718
4701
|
},
|
|
4719
4702
|
// Child field executed validation
|
|
4720
4703
|
onFieldValidated(e, t, n) {
|
|
@@ -4759,14 +4742,14 @@ const Mm = /* @__PURE__ */ C(hm, [["render", Cm], ["__scopeId", "data-v-02e656fb
|
|
|
4759
4742
|
});
|
|
4760
4743
|
}
|
|
4761
4744
|
}
|
|
4762
|
-
},
|
|
4745
|
+
}, Tm = {
|
|
4763
4746
|
key: 0,
|
|
4764
4747
|
class: "vue-form-generator"
|
|
4765
|
-
},
|
|
4766
|
-
function
|
|
4748
|
+
}, Sm = { key: 0 };
|
|
4749
|
+
function $m(e, t, n, i, a, r) {
|
|
4767
4750
|
const o = k("form-group"), s = k("KCollapse");
|
|
4768
|
-
return n.schema != null ? (d(), c("div",
|
|
4769
|
-
n.schema.fields ? (d(), I(
|
|
4751
|
+
return n.schema != null ? (d(), c("div", Tm, [
|
|
4752
|
+
n.schema.fields ? (d(), I(se(n.tag), { key: 0 }, {
|
|
4770
4753
|
default: M(() => [
|
|
4771
4754
|
(d(!0), c(D, null, z(r.fields, (l) => (d(), c(D, {
|
|
4772
4755
|
key: l.model
|
|
@@ -4795,12 +4778,12 @@ function Em(e, t, n, i, a, r) {
|
|
|
4795
4778
|
class: "root-level-collapse",
|
|
4796
4779
|
"model-value": !1,
|
|
4797
4780
|
title: l.collapsible.title
|
|
4798
|
-
},
|
|
4781
|
+
}, On({
|
|
4799
4782
|
default: M(() => {
|
|
4800
|
-
var m, b,
|
|
4783
|
+
var m, b, v, F;
|
|
4801
4784
|
return [
|
|
4802
4785
|
(m = l.slots) != null && m.beforeContent ? Ne(e.$slots, (b = l.slots) == null ? void 0 : b.beforeContent, { key: 0 }) : w("", !0),
|
|
4803
|
-
l.fields.length === 0 && ((
|
|
4786
|
+
l.fields.length === 0 && ((v = l.slots) != null && v.emptyState) ? Ne(e.$slots, (F = l.slots) == null ? void 0 : F.emptyState, { key: 1 }) : (d(), I(se(n.tag), {
|
|
4804
4787
|
key: 2,
|
|
4805
4788
|
class: V(e.getFieldRowClasses(l))
|
|
4806
4789
|
}, {
|
|
@@ -4833,7 +4816,7 @@ function Em(e, t, n, i, a, r) {
|
|
|
4833
4816
|
"onUpdate:modelValue": (A) => a.collapseStates[`group-${u}-nested`] = A
|
|
4834
4817
|
}, {
|
|
4835
4818
|
default: M(() => [
|
|
4836
|
-
(d(), I(
|
|
4819
|
+
(d(), I(se(n.tag), {
|
|
4837
4820
|
class: V(e.getFieldRowClasses(l))
|
|
4838
4821
|
}, {
|
|
4839
4822
|
default: M(() => [
|
|
@@ -4870,12 +4853,12 @@ function Em(e, t, n, i, a, r) {
|
|
|
4870
4853
|
]),
|
|
4871
4854
|
key: "0"
|
|
4872
4855
|
} : void 0
|
|
4873
|
-
]), 1032, ["title"])) : (d(), I(
|
|
4856
|
+
]), 1032, ["title"])) : (d(), I(se(n.tag), {
|
|
4874
4857
|
key: 1,
|
|
4875
4858
|
class: V(e.getFieldRowClasses(l))
|
|
4876
4859
|
}, {
|
|
4877
4860
|
default: M(() => [
|
|
4878
|
-
l.legend ? (d(), c("legend",
|
|
4861
|
+
l.legend ? (d(), c("legend", Sm, N(l.legend), 1)) : w("", !0),
|
|
4879
4862
|
(d(!0), c(D, null, z(l.fields, (m) => (d(), c(D, {
|
|
4880
4863
|
key: m.model
|
|
4881
4864
|
}, [
|
|
@@ -4898,7 +4881,7 @@ function Em(e, t, n, i, a, r) {
|
|
|
4898
4881
|
], 64))), 128))
|
|
4899
4882
|
])) : w("", !0);
|
|
4900
4883
|
}
|
|
4901
|
-
const Q = /* @__PURE__ */ C(
|
|
4884
|
+
const Q = /* @__PURE__ */ C(wm, [["render", $m]]), Cm = {
|
|
4902
4885
|
fields: [{
|
|
4903
4886
|
inputType: "text",
|
|
4904
4887
|
label: "Config.Client Id",
|
|
@@ -4921,7 +4904,7 @@ const Q = /* @__PURE__ */ C(Im, [["render", Em]]), km = {
|
|
|
4921
4904
|
model: "config-auth_methods",
|
|
4922
4905
|
type: "input"
|
|
4923
4906
|
}]
|
|
4924
|
-
},
|
|
4907
|
+
}, Mm = {
|
|
4925
4908
|
fields: [{
|
|
4926
4909
|
inputType: "text",
|
|
4927
4910
|
label: "Config.Scopes Claim",
|
|
@@ -4995,7 +4978,7 @@ const Q = /* @__PURE__ */ C(Im, [["render", Em]]), km = {
|
|
|
4995
4978
|
newElementButtonLabelClasses: "auth-array-item-new",
|
|
4996
4979
|
newElementButtonLabel: "+ Add"
|
|
4997
4980
|
}]
|
|
4998
|
-
},
|
|
4981
|
+
}, Im = {
|
|
4999
4982
|
fields: [
|
|
5000
4983
|
{
|
|
5001
4984
|
type: "array",
|
|
@@ -5209,7 +5192,7 @@ const Q = /* @__PURE__ */ C(Im, [["render", Em]]), km = {
|
|
|
5209
5192
|
link: "https://docs.konghq.com/hub/kong-inc/openid-connect/#host-record"
|
|
5210
5193
|
}
|
|
5211
5194
|
]
|
|
5212
|
-
},
|
|
5195
|
+
}, Am = {
|
|
5213
5196
|
name: "OIDCForm",
|
|
5214
5197
|
components: { VueFormGenerator: Q },
|
|
5215
5198
|
props: {
|
|
@@ -5284,11 +5267,11 @@ const Q = /* @__PURE__ */ C(Im, [["render", Em]]), km = {
|
|
|
5284
5267
|
this.init || (this.init = !0, this.globalFields = {
|
|
5285
5268
|
fields: this.formSchema.fields.filter((n) => !n.model.startsWith("config") && n.model !== "tags")
|
|
5286
5269
|
}, this.commonFieldsSchema = {
|
|
5287
|
-
...
|
|
5270
|
+
...Cm
|
|
5288
5271
|
}, this.authFieldsSchema = {
|
|
5289
|
-
...
|
|
5272
|
+
...Mm
|
|
5290
5273
|
}, this.advancedFieldsSchema.fields = this.formSchema.fields.filter((n) => n.model.startsWith("config") && !this.commonFieldsSchema.fields.filter((i) => i.model === n.model).length && !this.authFieldsSchema.fields.filter((i) => i.model === n.model).length || n.model === "tags"), this.advancedFieldsSchema.fields = this.advancedFieldsSchema.fields.map((n) => {
|
|
5291
|
-
const i =
|
|
5274
|
+
const i = Im.fields.find((a) => a.model === n.model);
|
|
5292
5275
|
return i || n;
|
|
5293
5276
|
}), this.commonFieldsSchema.fields = this.commonFieldsSchema.fields.filter((n) => n.model !== "config-auth_methods"), this.sessionManagement = this.isEditing ? this.formModel["config-auth_methods"].includes("session") : !1, this.authMethods = [
|
|
5294
5277
|
{
|
|
@@ -5359,8 +5342,8 @@ const Q = /* @__PURE__ */ C(Im, [["render", Em]]), km = {
|
|
|
5359
5342
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
5360
5343
|
}
|
|
5361
5344
|
}
|
|
5362
|
-
},
|
|
5363
|
-
function
|
|
5345
|
+
}, De = (e) => (Ie("data-v-e7395ff0"), e = e(), Ae(), e), Om = { class: "general-settings" }, Em = { class: "link-wrapper" }, km = /* @__PURE__ */ De(() => /* @__PURE__ */ h("span", { class: "section-header" }, "Common Configuration Settings", -1)), Fm = /* @__PURE__ */ De(() => /* @__PURE__ */ h("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), Um = { class: "auth-method-container" }, Nm = { class: "general-settings" }, Pm = { class: "link-wrapper" }, Lm = /* @__PURE__ */ De(() => /* @__PURE__ */ h("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), Vm = /* @__PURE__ */ De(() => /* @__PURE__ */ h("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), Dm = { class: "general-settings" }, jm = { class: "link-wrapper" }, Rm = /* @__PURE__ */ De(() => /* @__PURE__ */ h("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), Bm = /* @__PURE__ */ De(() => /* @__PURE__ */ h("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
|
|
5346
|
+
function qm(e, t, n, i, a, r) {
|
|
5364
5347
|
const o = k("VueFormGenerator"), s = k("KExternalLink"), l = k("KLabel"), u = k("KCheckbox"), m = k("KInputSwitch"), b = k("KTabs");
|
|
5365
5348
|
return d(), c("div", null, [
|
|
5366
5349
|
n.formModel.id && n.isEditing || !n.isEditing ? (d(), I(o, {
|
|
@@ -5373,16 +5356,16 @@ function Gm(e, t, n, i, a, r) {
|
|
|
5373
5356
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0),
|
|
5374
5357
|
E(b, { tabs: a.tabs }, {
|
|
5375
5358
|
common: M(() => [
|
|
5376
|
-
h("div",
|
|
5377
|
-
h("div",
|
|
5359
|
+
h("div", Om, [
|
|
5360
|
+
h("div", Em, [
|
|
5378
5361
|
E(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
5379
5362
|
default: M(() => [
|
|
5380
|
-
|
|
5363
|
+
km
|
|
5381
5364
|
]),
|
|
5382
5365
|
_: 1
|
|
5383
5366
|
})
|
|
5384
5367
|
]),
|
|
5385
|
-
|
|
5368
|
+
Fm,
|
|
5386
5369
|
r.displayForm ? (d(), I(o, {
|
|
5387
5370
|
key: 0,
|
|
5388
5371
|
model: n.formModel,
|
|
@@ -5396,18 +5379,18 @@ function Gm(e, t, n, i, a, r) {
|
|
|
5396
5379
|
]),
|
|
5397
5380
|
_: 1
|
|
5398
5381
|
}),
|
|
5399
|
-
h("div",
|
|
5400
|
-
(d(!0), c(D, null, z(a.authMethods, (
|
|
5401
|
-
key:
|
|
5382
|
+
h("div", Um, [
|
|
5383
|
+
(d(!0), c(D, null, z(a.authMethods, (v) => (d(), c("div", {
|
|
5384
|
+
key: v.value,
|
|
5402
5385
|
class: "auth-method"
|
|
5403
5386
|
}, [
|
|
5404
5387
|
E(u, {
|
|
5405
|
-
modelValue:
|
|
5406
|
-
"onUpdate:modelValue": (F) =>
|
|
5407
|
-
onChange: (F) => r.handleUpdate(F,
|
|
5388
|
+
modelValue: v.prop,
|
|
5389
|
+
"onUpdate:modelValue": (F) => v.prop = F,
|
|
5390
|
+
onChange: (F) => r.handleUpdate(F, v.value)
|
|
5408
5391
|
}, {
|
|
5409
5392
|
default: M(() => [
|
|
5410
|
-
ee(N(
|
|
5393
|
+
ee(N(v.label), 1)
|
|
5411
5394
|
]),
|
|
5412
5395
|
_: 2
|
|
5413
5396
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
@@ -5415,23 +5398,23 @@ function Gm(e, t, n, i, a, r) {
|
|
|
5415
5398
|
]),
|
|
5416
5399
|
E(m, {
|
|
5417
5400
|
modelValue: a.sessionManagement,
|
|
5418
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
5401
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => a.sessionManagement = v),
|
|
5419
5402
|
label: "Enable Session Management",
|
|
5420
5403
|
onChange: r.handleUpdate
|
|
5421
5404
|
}, null, 8, ["modelValue", "onChange"])
|
|
5422
5405
|
])
|
|
5423
5406
|
]),
|
|
5424
5407
|
authorization: M(() => [
|
|
5425
|
-
h("div",
|
|
5426
|
-
h("div",
|
|
5408
|
+
h("div", Nm, [
|
|
5409
|
+
h("div", Pm, [
|
|
5427
5410
|
E(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
5428
5411
|
default: M(() => [
|
|
5429
|
-
|
|
5412
|
+
Lm
|
|
5430
5413
|
]),
|
|
5431
5414
|
_: 1
|
|
5432
5415
|
})
|
|
5433
5416
|
]),
|
|
5434
|
-
|
|
5417
|
+
Vm,
|
|
5435
5418
|
r.displayForm ? (d(), I(o, {
|
|
5436
5419
|
key: 0,
|
|
5437
5420
|
model: n.formModel,
|
|
@@ -5442,16 +5425,16 @@ function Gm(e, t, n, i, a, r) {
|
|
|
5442
5425
|
])
|
|
5443
5426
|
]),
|
|
5444
5427
|
advanced: M(() => [
|
|
5445
|
-
h("div",
|
|
5446
|
-
h("div",
|
|
5428
|
+
h("div", Dm, [
|
|
5429
|
+
h("div", jm, [
|
|
5447
5430
|
E(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
5448
5431
|
default: M(() => [
|
|
5449
|
-
|
|
5432
|
+
Rm
|
|
5450
5433
|
]),
|
|
5451
5434
|
_: 1
|
|
5452
5435
|
})
|
|
5453
5436
|
]),
|
|
5454
|
-
|
|
5437
|
+
Bm,
|
|
5455
5438
|
r.displayForm ? (d(), I(o, {
|
|
5456
5439
|
key: 0,
|
|
5457
5440
|
model: n.formModel,
|
|
@@ -5465,10 +5448,10 @@ function Gm(e, t, n, i, a, r) {
|
|
|
5465
5448
|
}, 8, ["tabs"])
|
|
5466
5449
|
]);
|
|
5467
5450
|
}
|
|
5468
|
-
const
|
|
5451
|
+
const Km = /* @__PURE__ */ C(Am, [["render", qm], ["__scopeId", "data-v-e7395ff0"]]), Hm = {
|
|
5469
5452
|
packageName: "forms"
|
|
5470
|
-
},
|
|
5471
|
-
general:
|
|
5453
|
+
}, Ui = {
|
|
5454
|
+
general: Hm,
|
|
5472
5455
|
"post-function": {
|
|
5473
5456
|
tags: {
|
|
5474
5457
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -5529,7 +5512,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5529
5512
|
newElementButtonLabel: "+ Add"
|
|
5530
5513
|
}
|
|
5531
5514
|
}
|
|
5532
|
-
},
|
|
5515
|
+
}, Ym = /* @__PURE__ */ ce({
|
|
5533
5516
|
__name: "PostFunction",
|
|
5534
5517
|
props: {
|
|
5535
5518
|
formModel: {
|
|
@@ -5555,7 +5538,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5555
5538
|
}
|
|
5556
5539
|
},
|
|
5557
5540
|
setup(e) {
|
|
5558
|
-
const { t, te: n } =
|
|
5541
|
+
const { t, te: n } = En("en-us", Ui), i = e, a = Y(() => i.formModel.id && i.isEditing || !i.isEditing), r = Y(() => {
|
|
5559
5542
|
const o = i.formSchema;
|
|
5560
5543
|
return o.fields.map((s) => {
|
|
5561
5544
|
const l = `post-function.${s.model}`;
|
|
@@ -5570,7 +5553,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5570
5553
|
onModelUpdated: e.onModelUpdated
|
|
5571
5554
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0);
|
|
5572
5555
|
}
|
|
5573
|
-
}),
|
|
5556
|
+
}), zm = /* @__PURE__ */ C(Ym, [["__scopeId", "data-v-6706c68b"]]), Gm = /* @__PURE__ */ ce({
|
|
5574
5557
|
__name: "ExitTransformer",
|
|
5575
5558
|
props: {
|
|
5576
5559
|
formModel: {
|
|
@@ -5596,7 +5579,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5596
5579
|
}
|
|
5597
5580
|
},
|
|
5598
5581
|
setup(e) {
|
|
5599
|
-
const { t, te: n } =
|
|
5582
|
+
const { t, te: n } = En("en-us", Ui), i = e, a = Y(() => i.formModel.id && i.isEditing || !i.isEditing), r = Y(() => {
|
|
5600
5583
|
const o = i.formSchema;
|
|
5601
5584
|
return o.fields.map((s) => {
|
|
5602
5585
|
const l = `exit-transformer.${s.model}`;
|
|
@@ -5611,7 +5594,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5611
5594
|
onModelUpdated: e.onModelUpdated
|
|
5612
5595
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0);
|
|
5613
5596
|
}
|
|
5614
|
-
}),
|
|
5597
|
+
}), xm = /* @__PURE__ */ C(Gm, [["__scopeId", "data-v-0fc8ef29"]]), Zm = {
|
|
5615
5598
|
fields: [
|
|
5616
5599
|
{
|
|
5617
5600
|
inputType: "text",
|
|
@@ -5646,7 +5629,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5646
5629
|
disabled: !1
|
|
5647
5630
|
}
|
|
5648
5631
|
]
|
|
5649
|
-
},
|
|
5632
|
+
}, Wm = {
|
|
5650
5633
|
fields: [
|
|
5651
5634
|
{
|
|
5652
5635
|
type: "input",
|
|
@@ -5668,7 +5651,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5668
5651
|
disabled: !1
|
|
5669
5652
|
}
|
|
5670
5653
|
]
|
|
5671
|
-
},
|
|
5654
|
+
}, Jm = {
|
|
5672
5655
|
fields: [
|
|
5673
5656
|
{
|
|
5674
5657
|
type: "input",
|
|
@@ -5699,13 +5682,13 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5699
5682
|
disabled: !1
|
|
5700
5683
|
}
|
|
5701
5684
|
]
|
|
5702
|
-
}, ke = (e) => (Ie("data-v-b9df1c3f"), e = e(), Ae(), e),
|
|
5685
|
+
}, ke = (e) => (Ie("data-v-b9df1c3f"), e = e(), Ae(), e), Xm = { class: "general-settings" }, Qm = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "header-wrapper" }, [
|
|
5703
5686
|
/* @__PURE__ */ h("span", { class: "section-header" }, "General Configuration Settings")
|
|
5704
|
-
], -1)),
|
|
5687
|
+
], -1)), ef = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), tf = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("hr", null, null, -1)), nf = { class: "sub-form" }, rf = { class: "general-settings" }, af = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "header-wrapper" }, [
|
|
5705
5688
|
/* @__PURE__ */ h("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5706
|
-
], -1)),
|
|
5689
|
+
], -1)), sf = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "description" }, " Parameters for setting up storage. ", -1)), of = { class: "sub-form" }, lf = { class: "general-settings" }, df = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "header-wrapper" }, [
|
|
5707
5690
|
/* @__PURE__ */ h("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5708
|
-
], -1)),
|
|
5691
|
+
], -1)), uf = /* @__PURE__ */ ke(() => /* @__PURE__ */ h("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), cf = /* @__PURE__ */ ce({
|
|
5709
5692
|
__name: "ACMEForm",
|
|
5710
5693
|
props: {
|
|
5711
5694
|
formModel: {
|
|
@@ -5731,7 +5714,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5731
5714
|
}
|
|
5732
5715
|
},
|
|
5733
5716
|
setup(e) {
|
|
5734
|
-
const t = e, n =
|
|
5717
|
+
const t = e, n = ge("zeroSsl"), i = ge("shm"), a = Y(() => {
|
|
5735
5718
|
var f;
|
|
5736
5719
|
const g = {};
|
|
5737
5720
|
if ((f = t.formSchema) != null && f.fields)
|
|
@@ -5740,7 +5723,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5740
5723
|
return g;
|
|
5741
5724
|
}), r = Y(() => {
|
|
5742
5725
|
var f;
|
|
5743
|
-
const g =
|
|
5726
|
+
const g = ht(Zm);
|
|
5744
5727
|
for (const S of g.fields) {
|
|
5745
5728
|
const q = (f = a.value[S.model]) == null ? void 0 : f.help;
|
|
5746
5729
|
S.help === void 0 && typeof q == "string" && (S.help = q);
|
|
@@ -5748,7 +5731,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5748
5731
|
return g;
|
|
5749
5732
|
}), o = Y(() => {
|
|
5750
5733
|
var f;
|
|
5751
|
-
const g =
|
|
5734
|
+
const g = ht(Wm);
|
|
5752
5735
|
for (const S of g.fields) {
|
|
5753
5736
|
const q = (f = a.value[S.model]) == null ? void 0 : f.help;
|
|
5754
5737
|
S.help === void 0 && typeof q == "string" && (S.help = q);
|
|
@@ -5756,7 +5739,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5756
5739
|
return g;
|
|
5757
5740
|
}), s = Y(() => {
|
|
5758
5741
|
var f;
|
|
5759
|
-
const g =
|
|
5742
|
+
const g = ht(Jm);
|
|
5760
5743
|
for (const S of g.fields) {
|
|
5761
5744
|
const q = (f = a.value[S.model]) == null ? void 0 : f.help;
|
|
5762
5745
|
S.help === void 0 && typeof q == "string" && (S.help = q);
|
|
@@ -5772,13 +5755,13 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5772
5755
|
fields: t.formSchema.fields.filter((f) => f.model.startsWith("config-storage") && !f.model.startsWith("config-storage_config-consul") && !f.model.startsWith("config-storage_config-redis") && !f.model.startsWith("config-storage_config-shm") && !f.model.startsWith("config-storage_config-vault"))
|
|
5773
5756
|
})), b = Y(() => ({
|
|
5774
5757
|
fields: t.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-consul"))
|
|
5775
|
-
})),
|
|
5758
|
+
})), v = Y(() => ({
|
|
5776
5759
|
fields: t.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-redis"))
|
|
5777
5760
|
})), F = Y(() => ({
|
|
5778
5761
|
fields: t.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-shm"))
|
|
5779
5762
|
})), A = Y(() => ({
|
|
5780
5763
|
fields: t.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-vault"))
|
|
5781
|
-
})),
|
|
5764
|
+
})), y = Y(() => ({
|
|
5782
5765
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config") && !u.value.fields.filter((f) => f.model === g.model).length && !m.value.fields.filter((f) => f.model === g.model).length || g.model === "tags")
|
|
5783
5766
|
})), T = Y(() => t.formModel.id && t.isEditing || !t.isEditing), p = [
|
|
5784
5767
|
{
|
|
@@ -5808,12 +5791,12 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5808
5791
|
value: "other"
|
|
5809
5792
|
}
|
|
5810
5793
|
];
|
|
5811
|
-
|
|
5794
|
+
In(() => {
|
|
5812
5795
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5813
5796
|
});
|
|
5814
|
-
const
|
|
5797
|
+
const R = (g) => {
|
|
5815
5798
|
n.value = g.value, (g.value === "zeroSsl" || g.value === "other") && (g.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), g.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();
|
|
5816
|
-
},
|
|
5799
|
+
}, B = (g, f) => {
|
|
5817
5800
|
f === "config-storage" && (i.value = g), t.onModelUpdated();
|
|
5818
5801
|
};
|
|
5819
5802
|
return (g, f) => {
|
|
@@ -5829,9 +5812,9 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5829
5812
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0),
|
|
5830
5813
|
E(q, { tabs: p }, {
|
|
5831
5814
|
general: M(() => [
|
|
5832
|
-
h("div",
|
|
5833
|
-
|
|
5834
|
-
|
|
5815
|
+
h("div", Xm, [
|
|
5816
|
+
Qm,
|
|
5817
|
+
ef,
|
|
5835
5818
|
T.value ? (d(), I(Q, {
|
|
5836
5819
|
key: 0,
|
|
5837
5820
|
model: e.formModel,
|
|
@@ -5839,14 +5822,14 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5839
5822
|
schema: u.value,
|
|
5840
5823
|
onModelUpdated: e.onModelUpdated
|
|
5841
5824
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0),
|
|
5842
|
-
|
|
5825
|
+
tf,
|
|
5843
5826
|
E(S, {
|
|
5844
5827
|
class: "issuer-select",
|
|
5845
5828
|
items: _,
|
|
5846
5829
|
label: "Issuer",
|
|
5847
|
-
onChange:
|
|
5830
|
+
onChange: R
|
|
5848
5831
|
}),
|
|
5849
|
-
h("div",
|
|
5832
|
+
h("div", nf, [
|
|
5850
5833
|
n.value === "letsEncrypt" ? (d(), I(Q, {
|
|
5851
5834
|
key: 0,
|
|
5852
5835
|
model: e.formModel,
|
|
@@ -5865,17 +5848,17 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5865
5848
|
])
|
|
5866
5849
|
]),
|
|
5867
5850
|
storage: M(() => [
|
|
5868
|
-
h("div",
|
|
5869
|
-
|
|
5870
|
-
|
|
5851
|
+
h("div", rf, [
|
|
5852
|
+
af,
|
|
5853
|
+
sf,
|
|
5871
5854
|
T.value ? (d(), I(Q, {
|
|
5872
5855
|
key: 0,
|
|
5873
5856
|
model: e.formModel,
|
|
5874
5857
|
options: e.formOptions,
|
|
5875
5858
|
schema: m.value,
|
|
5876
|
-
onModelUpdated:
|
|
5859
|
+
onModelUpdated: B
|
|
5877
5860
|
}, null, 8, ["model", "options", "schema"])) : w("", !0),
|
|
5878
|
-
h("div",
|
|
5861
|
+
h("div", of, [
|
|
5879
5862
|
i.value === "consul" ? (d(), I(Q, {
|
|
5880
5863
|
key: 0,
|
|
5881
5864
|
model: e.formModel,
|
|
@@ -5887,7 +5870,7 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5887
5870
|
key: 1,
|
|
5888
5871
|
model: e.formModel,
|
|
5889
5872
|
options: e.formOptions,
|
|
5890
|
-
schema:
|
|
5873
|
+
schema: v.value,
|
|
5891
5874
|
onModelUpdated: e.onModelUpdated
|
|
5892
5875
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0),
|
|
5893
5876
|
i.value === "shm" ? (d(), I(Q, {
|
|
@@ -5908,14 +5891,14 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5908
5891
|
])
|
|
5909
5892
|
]),
|
|
5910
5893
|
advanced: M(() => [
|
|
5911
|
-
h("div",
|
|
5912
|
-
|
|
5913
|
-
|
|
5894
|
+
h("div", lf, [
|
|
5895
|
+
df,
|
|
5896
|
+
uf,
|
|
5914
5897
|
T.value ? (d(), I(Q, {
|
|
5915
5898
|
key: 0,
|
|
5916
5899
|
model: e.formModel,
|
|
5917
5900
|
options: e.formOptions,
|
|
5918
|
-
schema:
|
|
5901
|
+
schema: y.value,
|
|
5919
5902
|
onModelUpdated: e.onModelUpdated
|
|
5920
5903
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : w("", !0)
|
|
5921
5904
|
])
|
|
@@ -5925,23 +5908,23 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5925
5908
|
]);
|
|
5926
5909
|
};
|
|
5927
5910
|
}
|
|
5928
|
-
}),
|
|
5911
|
+
}), hf = /* @__PURE__ */ C(cf, [["__scopeId", "data-v-b9df1c3f"]]), gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5929
5912
|
__proto__: null,
|
|
5930
|
-
ACMEForm:
|
|
5931
|
-
ExitTransformer:
|
|
5932
|
-
OIDCForm:
|
|
5933
|
-
PostFunction:
|
|
5934
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5913
|
+
ACMEForm: hf,
|
|
5914
|
+
ExitTransformer: xm,
|
|
5915
|
+
OIDCForm: Km,
|
|
5916
|
+
PostFunction: zm
|
|
5917
|
+
}, Symbol.toStringTag, { value: "Module" })), yf = [
|
|
5935
5918
|
"array",
|
|
5936
5919
|
"metric",
|
|
5937
5920
|
"advanced",
|
|
5938
5921
|
"selectionGroup",
|
|
5939
5922
|
"object-advanced"
|
|
5940
|
-
],
|
|
5923
|
+
], bf = {
|
|
5941
5924
|
install: (e) => {
|
|
5942
5925
|
e.component("VueFormGenerator", Q);
|
|
5943
5926
|
}
|
|
5944
|
-
},
|
|
5927
|
+
}, vf = (e, t = !1) => ({
|
|
5945
5928
|
...t && { acme: "ACMEForm" },
|
|
5946
5929
|
"openid-connect": "OIDCForm",
|
|
5947
5930
|
"post-function": "PostFunction",
|
|
@@ -5950,11 +5933,11 @@ const Zm = /* @__PURE__ */ C(Nm, [["render", Gm], ["__scopeId", "data-v-e7395ff0
|
|
|
5950
5933
|
"exit-transformer": "ExitTransformer"
|
|
5951
5934
|
})[e];
|
|
5952
5935
|
export {
|
|
5953
|
-
|
|
5936
|
+
ve as FORMS_API_KEY,
|
|
5954
5937
|
Q as VueFormGenerator,
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5938
|
+
pf as abstractField,
|
|
5939
|
+
yf as customFields,
|
|
5940
|
+
bf as default,
|
|
5941
|
+
vf as getSharedFormName,
|
|
5942
|
+
gf as sharedForms
|
|
5960
5943
|
};
|