@kong-ui-public/forms 4.3.4 → 4.4.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveComponent as E, openBlock as d, createElementBlock as h, createElementVNode as
|
|
2
|
-
import { createI18n as
|
|
1
|
+
import { resolveComponent as E, openBlock as d, createElementBlock as h, createElementVNode as f, toDisplayString as F, normalizeClass as J, createVNode as M, defineComponent as oe, computed as j, createBlock as I, resolveDynamicComponent as ee, normalizeStyle as Kt, withCtx as w, createCommentVNode as O, pushScopeId as _e, popScopeId as we, renderSlot as Ee, unref as L, createTextVNode as ne, Fragment as D, renderList as Z, ref as ve, toRefs as at, inject as Xr, onMounted as xn, onBeforeMount as Qr, mergeProps as Ue, Transition as ei, resolveDirective as gt, withDirectives as re, vModelText as Ve, vModelCheckbox as ti, vModelSelect as Yn, isRef as Dt, vModelDynamic as ni, vModelRadio as ri, vShow as ii, createSlots as Gn, normalizeProps as ai, guardReactiveProps as si, provide as vt, useSlots as yt, nextTick as rn } from "vue";
|
|
2
|
+
import { createI18n as bt } from "@kong-ui-public/i18n";
|
|
3
3
|
function Wn(e, t) {
|
|
4
4
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
5
5
|
;
|
|
@@ -22,79 +22,79 @@ function ui(e, t) {
|
|
|
22
22
|
r[n] = t(n);
|
|
23
23
|
return r;
|
|
24
24
|
}
|
|
25
|
-
var Zn = typeof global == "object" && global && global.Object === Object && global, ci = typeof self == "object" && self && self.Object === Object && self, pe = Zn || ci || Function("return this")(), ye = pe.Symbol, Jn = Object.prototype,
|
|
25
|
+
var Zn = typeof global == "object" && global && global.Object === Object && global, ci = typeof self == "object" && self && self.Object === Object && self, pe = Zn || ci || Function("return this")(), ye = pe.Symbol, Jn = Object.prototype, fi = Jn.hasOwnProperty, mi = Jn.toString, Ze = ye ? ye.toStringTag : void 0;
|
|
26
26
|
function hi(e) {
|
|
27
|
-
var t =
|
|
27
|
+
var t = fi.call(e, Ze), n = e[Ze];
|
|
28
28
|
try {
|
|
29
29
|
e[Ze] = void 0;
|
|
30
30
|
var r = !0;
|
|
31
31
|
} catch {
|
|
32
32
|
}
|
|
33
|
-
var a =
|
|
33
|
+
var a = mi.call(e);
|
|
34
34
|
return r && (t ? e[Ze] = n : delete e[Ze]), a;
|
|
35
35
|
}
|
|
36
36
|
var pi = Object.prototype, gi = pi.toString;
|
|
37
37
|
function vi(e) {
|
|
38
38
|
return gi.call(e);
|
|
39
39
|
}
|
|
40
|
-
var yi = "[object Null]", bi = "[object Undefined]",
|
|
41
|
-
function
|
|
42
|
-
return e == null ? e === void 0 ? bi : yi :
|
|
40
|
+
var yi = "[object Null]", bi = "[object Undefined]", an = ye ? ye.toStringTag : void 0;
|
|
41
|
+
function Ce(e) {
|
|
42
|
+
return e == null ? e === void 0 ? bi : yi : an && an in Object(e) ? hi(e) : vi(e);
|
|
43
43
|
}
|
|
44
44
|
function be(e) {
|
|
45
45
|
return e != null && typeof e == "object";
|
|
46
46
|
}
|
|
47
47
|
var _i = "[object Arguments]";
|
|
48
|
-
function
|
|
49
|
-
return be(e) &&
|
|
48
|
+
function sn(e) {
|
|
49
|
+
return be(e) && Ce(e) == _i;
|
|
50
50
|
}
|
|
51
|
-
var Xn = Object.prototype, wi = Xn.hasOwnProperty,
|
|
51
|
+
var Xn = Object.prototype, wi = Xn.hasOwnProperty, Mi = Xn.propertyIsEnumerable, Qn = sn(/* @__PURE__ */ function() {
|
|
52
52
|
return arguments;
|
|
53
|
-
}()) ?
|
|
54
|
-
return be(e) && wi.call(e, "callee") && !
|
|
55
|
-
},
|
|
56
|
-
function
|
|
53
|
+
}()) ? sn : function(e) {
|
|
54
|
+
return be(e) && wi.call(e, "callee") && !Mi.call(e, "callee");
|
|
55
|
+
}, me = Array.isArray;
|
|
56
|
+
function Si() {
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
|
-
var er = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
60
|
-
function
|
|
59
|
+
var er = typeof exports == "object" && exports && !exports.nodeType && exports, on = er && typeof module == "object" && module && !module.nodeType && module, Ti = on && on.exports === er, ln = Ti ? pe.Buffer : void 0, Ii = ln ? ln.isBuffer : void 0, ct = Ii || Si, Ai = 9007199254740991, Oi = /^(?:0|[1-9]\d*)$/;
|
|
60
|
+
function Bt(e, t) {
|
|
61
61
|
var n = typeof e;
|
|
62
62
|
return t = t ?? Ai, !!t && (n == "number" || n != "symbol" && Oi.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
64
|
+
var Ei = 9007199254740991;
|
|
65
|
+
function zt(e) {
|
|
66
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ei;
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Ci = "[object Arguments]", $i = "[object Array]", Fi = "[object Boolean]", Ui = "[object Date]", ki = "[object Error]", Vi = "[object Function]", Ni = "[object Map]", Li = "[object Number]", Pi = "[object Object]", qi = "[object RegExp]", ji = "[object Set]", Ri = "[object String]", Ki = "[object WeakMap]", Di = "[object ArrayBuffer]", Bi = "[object DataView]", zi = "[object Float32Array]", Hi = "[object Float64Array]", xi = "[object Int8Array]", Yi = "[object Int16Array]", Gi = "[object Int32Array]", Wi = "[object Uint8Array]", Zi = "[object Uint8ClampedArray]", Ji = "[object Uint16Array]", Xi = "[object Uint32Array]", x = {};
|
|
69
69
|
x[zi] = x[Hi] = x[xi] = x[Yi] = x[Gi] = x[Wi] = x[Zi] = x[Ji] = x[Xi] = !0;
|
|
70
|
-
x[
|
|
70
|
+
x[Ci] = x[$i] = x[Di] = x[Fi] = x[Bi] = x[Ui] = x[ki] = x[Vi] = x[Ni] = x[Li] = x[Pi] = x[qi] = x[ji] = x[Ri] = x[Ki] = !1;
|
|
71
71
|
function Qi(e) {
|
|
72
|
-
return be(e) &&
|
|
72
|
+
return be(e) && zt(e.length) && !!x[Ce(e)];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ht(e) {
|
|
75
75
|
return function(t) {
|
|
76
76
|
return e(t);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
var tr = typeof exports == "object" && exports && !exports.nodeType && exports, Je = tr && typeof module == "object" && module && !module.nodeType && module, ea = Je && Je.exports === tr,
|
|
79
|
+
var tr = typeof exports == "object" && exports && !exports.nodeType && exports, Je = tr && typeof module == "object" && module && !module.nodeType && module, ea = Je && Je.exports === tr, Ct = ea && Zn.process, He = function() {
|
|
80
80
|
try {
|
|
81
81
|
var e = Je && Je.require && Je.require("util").types;
|
|
82
|
-
return e ||
|
|
82
|
+
return e || Ct && Ct.binding && Ct.binding("util");
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
|
-
}(),
|
|
85
|
+
}(), dn = He && He.isTypedArray, nr = dn ? Ht(dn) : Qi, ta = Object.prototype, na = ta.hasOwnProperty;
|
|
86
86
|
function rr(e, t) {
|
|
87
|
-
var n =
|
|
87
|
+
var n = me(e), r = !n && Qn(e), a = !n && !r && ct(e), i = !n && !r && !a && nr(e), l = n || r || a || i, s = l ? ui(e.length, String) : [], o = s.length;
|
|
88
88
|
for (var u in e)
|
|
89
89
|
(t || na.call(e, u)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
90
90
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
91
91
|
a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
92
92
|
i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
93
|
-
|
|
93
|
+
Bt(u, o))) && s.push(u);
|
|
94
94
|
return s;
|
|
95
95
|
}
|
|
96
96
|
var ra = Object.prototype;
|
|
97
|
-
function
|
|
97
|
+
function xt(e) {
|
|
98
98
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || ra;
|
|
99
99
|
return e === n;
|
|
100
100
|
}
|
|
@@ -105,7 +105,7 @@ function ir(e, t) {
|
|
|
105
105
|
}
|
|
106
106
|
var ia = ir(Object.keys, Object), aa = Object.prototype, sa = aa.hasOwnProperty;
|
|
107
107
|
function oa(e) {
|
|
108
|
-
if (!
|
|
108
|
+
if (!xt(e))
|
|
109
109
|
return ia(e);
|
|
110
110
|
var t = [];
|
|
111
111
|
for (var n in Object(e))
|
|
@@ -120,64 +120,64 @@ var la = "[object AsyncFunction]", da = "[object Function]", ua = "[object Gener
|
|
|
120
120
|
function Y(e) {
|
|
121
121
|
if (!se(e))
|
|
122
122
|
return !1;
|
|
123
|
-
var t =
|
|
123
|
+
var t = Ce(e);
|
|
124
124
|
return t == da || t == ua || t == la || t == ca;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return e != null &&
|
|
126
|
+
function st(e) {
|
|
127
|
+
return e != null && zt(e.length) && !Y(e);
|
|
128
128
|
}
|
|
129
129
|
function Ye(e) {
|
|
130
|
-
return
|
|
130
|
+
return st(e) ? rr(e) : oa(e);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function fa(e, t) {
|
|
133
133
|
return e && di(e, t, Ye);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ma(e, t) {
|
|
136
136
|
return function(n, r) {
|
|
137
137
|
if (n == null)
|
|
138
138
|
return n;
|
|
139
|
-
if (!
|
|
139
|
+
if (!st(n))
|
|
140
140
|
return e(n, r);
|
|
141
141
|
for (var a = n.length, i = t ? a : -1, l = Object(n); (t ? i-- : ++i < a) && r(l[i], i, l) !== !1; )
|
|
142
142
|
;
|
|
143
143
|
return n;
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
var ha = fa
|
|
146
|
+
var ha = ma(fa);
|
|
147
147
|
const pa = ha;
|
|
148
|
-
function
|
|
148
|
+
function _t(e) {
|
|
149
149
|
return e;
|
|
150
150
|
}
|
|
151
151
|
function ga(e) {
|
|
152
|
-
return typeof e == "function" ? e :
|
|
152
|
+
return typeof e == "function" ? e : _t;
|
|
153
153
|
}
|
|
154
154
|
function ae(e, t) {
|
|
155
|
-
var n =
|
|
155
|
+
var n = me(e) ? Wn : pa;
|
|
156
156
|
return n(e, ga(t));
|
|
157
157
|
}
|
|
158
158
|
var va = "[object Symbol]";
|
|
159
|
-
function
|
|
160
|
-
return typeof e == "symbol" || be(e) &&
|
|
159
|
+
function wt(e) {
|
|
160
|
+
return typeof e == "symbol" || be(e) && Ce(e) == va;
|
|
161
161
|
}
|
|
162
162
|
var ya = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ba = /^\w*$/;
|
|
163
|
-
function
|
|
164
|
-
if (
|
|
163
|
+
function Yt(e, t) {
|
|
164
|
+
if (me(e))
|
|
165
165
|
return !1;
|
|
166
166
|
var n = typeof e;
|
|
167
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
167
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || wt(e) ? !0 : ba.test(e) || !ya.test(e) || t != null && e in Object(t);
|
|
168
168
|
}
|
|
169
|
-
var $t = pe["__core-js_shared__"],
|
|
169
|
+
var $t = pe["__core-js_shared__"], un = function() {
|
|
170
170
|
var e = /[^.]+$/.exec($t && $t.keys && $t.keys.IE_PROTO || "");
|
|
171
171
|
return e ? "Symbol(src)_1." + e : "";
|
|
172
172
|
}();
|
|
173
173
|
function _a(e) {
|
|
174
|
-
return !!
|
|
174
|
+
return !!un && un in e;
|
|
175
175
|
}
|
|
176
|
-
var wa = Function.prototype,
|
|
176
|
+
var wa = Function.prototype, Ma = wa.toString;
|
|
177
177
|
function je(e) {
|
|
178
178
|
if (e != null) {
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return Ma.call(e);
|
|
181
181
|
} catch {
|
|
182
182
|
}
|
|
183
183
|
try {
|
|
@@ -187,13 +187,13 @@ function je(e) {
|
|
|
187
187
|
}
|
|
188
188
|
return "";
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
"^" + Oa.call(
|
|
190
|
+
var Sa = /[\\^$.*+?()[\]{}|]/g, Ta = /^\[object .+?Constructor\]$/, Ia = Function.prototype, Aa = Object.prototype, Oa = Ia.toString, Ea = Aa.hasOwnProperty, Ca = RegExp(
|
|
191
|
+
"^" + Oa.call(Ea).replace(Sa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
192
192
|
);
|
|
193
193
|
function $a(e) {
|
|
194
194
|
if (!se(e) || _a(e))
|
|
195
195
|
return !1;
|
|
196
|
-
var t = Y(e) ?
|
|
196
|
+
var t = Y(e) ? Ca : Ta;
|
|
197
197
|
return t.test(je(e));
|
|
198
198
|
}
|
|
199
199
|
function Fa(e, t) {
|
|
@@ -204,19 +204,19 @@ function Re(e, t) {
|
|
|
204
204
|
return $a(n) ? n : void 0;
|
|
205
205
|
}
|
|
206
206
|
var et = Re(Object, "create");
|
|
207
|
-
function
|
|
207
|
+
function Ua() {
|
|
208
208
|
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function ka(e) {
|
|
211
211
|
var t = this.has(e) && delete this.__data__[e];
|
|
212
212
|
return this.size -= t ? 1 : 0, t;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var Va = "__lodash_hash_undefined__", Na = Object.prototype, La = Na.hasOwnProperty;
|
|
215
215
|
function Pa(e) {
|
|
216
216
|
var t = this.__data__;
|
|
217
217
|
if (et) {
|
|
218
218
|
var n = t[e];
|
|
219
|
-
return n ===
|
|
219
|
+
return n === Va ? void 0 : n;
|
|
220
220
|
}
|
|
221
221
|
return La.call(t, e) ? t[e] : void 0;
|
|
222
222
|
}
|
|
@@ -225,72 +225,72 @@ function Ra(e) {
|
|
|
225
225
|
var t = this.__data__;
|
|
226
226
|
return et ? t[e] !== void 0 : ja.call(t, e);
|
|
227
227
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
228
|
+
var Ka = "__lodash_hash_undefined__";
|
|
229
|
+
function Da(e, t) {
|
|
230
230
|
var n = this.__data__;
|
|
231
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = et && t === void 0 ?
|
|
231
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = et && t === void 0 ? Ka : t, this;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Ne(e) {
|
|
234
234
|
var t = -1, n = e == null ? 0 : e.length;
|
|
235
235
|
for (this.clear(); ++t < n; ) {
|
|
236
236
|
var r = e[t];
|
|
237
237
|
this.set(r[0], r[1]);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
Ne.prototype.clear = Ua;
|
|
241
|
+
Ne.prototype.delete = ka;
|
|
242
|
+
Ne.prototype.get = Pa;
|
|
243
|
+
Ne.prototype.has = Ra;
|
|
244
|
+
Ne.prototype.set = Da;
|
|
245
245
|
function Ba() {
|
|
246
246
|
this.__data__ = [], this.size = 0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ot(e, t) {
|
|
249
249
|
return e === t || e !== e && t !== t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Mt(e, t) {
|
|
252
252
|
for (var n = e.length; n--; )
|
|
253
|
-
if (
|
|
253
|
+
if (ot(e[n][0], t))
|
|
254
254
|
return n;
|
|
255
255
|
return -1;
|
|
256
256
|
}
|
|
257
257
|
var za = Array.prototype, Ha = za.splice;
|
|
258
258
|
function xa(e) {
|
|
259
|
-
var t = this.__data__, n =
|
|
259
|
+
var t = this.__data__, n = Mt(t, e);
|
|
260
260
|
if (n < 0)
|
|
261
261
|
return !1;
|
|
262
262
|
var r = t.length - 1;
|
|
263
263
|
return n == r ? t.pop() : Ha.call(t, n, 1), --this.size, !0;
|
|
264
264
|
}
|
|
265
265
|
function Ya(e) {
|
|
266
|
-
var t = this.__data__, n =
|
|
266
|
+
var t = this.__data__, n = Mt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
269
|
function Ga(e) {
|
|
270
|
-
return
|
|
270
|
+
return Mt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
272
|
function Wa(e, t) {
|
|
273
|
-
var n = this.__data__, r =
|
|
273
|
+
var n = this.__data__, r = Mt(n, e);
|
|
274
274
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Se(e) {
|
|
277
277
|
var t = -1, n = e == null ? 0 : e.length;
|
|
278
278
|
for (this.clear(); ++t < n; ) {
|
|
279
279
|
var r = e[t];
|
|
280
280
|
this.set(r[0], r[1]);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
Se.prototype.clear = Ba;
|
|
284
|
+
Se.prototype.delete = xa;
|
|
285
|
+
Se.prototype.get = Ya;
|
|
286
|
+
Se.prototype.has = Ga;
|
|
287
|
+
Se.prototype.set = Wa;
|
|
288
288
|
var tt = Re(pe, "Map");
|
|
289
289
|
function Za() {
|
|
290
290
|
this.size = 0, this.__data__ = {
|
|
291
|
-
hash: new
|
|
292
|
-
map: new (tt ||
|
|
293
|
-
string: new
|
|
291
|
+
hash: new Ne(),
|
|
292
|
+
map: new (tt || Se)(),
|
|
293
|
+
string: new Ne()
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
function Ja(e) {
|
|
@@ -328,7 +328,7 @@ Te.prototype.get = Qa;
|
|
|
328
328
|
Te.prototype.has = es;
|
|
329
329
|
Te.prototype.set = ts;
|
|
330
330
|
var ns = "Expected a function";
|
|
331
|
-
function
|
|
331
|
+
function Gt(e, t) {
|
|
332
332
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
333
333
|
throw new TypeError(ns);
|
|
334
334
|
var n = function() {
|
|
@@ -338,12 +338,12 @@ function Yt(e, t) {
|
|
|
338
338
|
var l = e.apply(this, r);
|
|
339
339
|
return n.cache = i.set(a, l) || i, l;
|
|
340
340
|
};
|
|
341
|
-
return n.cache = new (
|
|
341
|
+
return n.cache = new (Gt.Cache || Te)(), n;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
Gt.Cache = Te;
|
|
344
344
|
var rs = 500;
|
|
345
345
|
function is(e) {
|
|
346
|
-
var t =
|
|
346
|
+
var t = Gt(e, function(r) {
|
|
347
347
|
return n.size === rs && n.clear(), r;
|
|
348
348
|
}), n = t.cache;
|
|
349
349
|
return t;
|
|
@@ -359,14 +359,14 @@ function ls(e, t) {
|
|
|
359
359
|
a[n] = t(e[n], n, e);
|
|
360
360
|
return a;
|
|
361
361
|
}
|
|
362
|
-
var ds = 1 / 0,
|
|
362
|
+
var ds = 1 / 0, cn = ye ? ye.prototype : void 0, fn = cn ? cn.toString : void 0;
|
|
363
363
|
function ar(e) {
|
|
364
364
|
if (typeof e == "string")
|
|
365
365
|
return e;
|
|
366
|
-
if (
|
|
366
|
+
if (me(e))
|
|
367
367
|
return ls(e, ar) + "";
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
368
|
+
if (wt(e))
|
|
369
|
+
return fn ? fn.call(e) : "";
|
|
370
370
|
var t = e + "";
|
|
371
371
|
return t == "0" && 1 / e == -ds ? "-0" : t;
|
|
372
372
|
}
|
|
@@ -374,11 +374,11 @@ function sr(e) {
|
|
|
374
374
|
return e == null ? "" : ar(e);
|
|
375
375
|
}
|
|
376
376
|
function or(e, t) {
|
|
377
|
-
return
|
|
377
|
+
return me(e) ? e : Yt(e, t) ? [e] : os(sr(e));
|
|
378
378
|
}
|
|
379
379
|
var us = 1 / 0;
|
|
380
|
-
function
|
|
381
|
-
if (typeof e == "string" ||
|
|
380
|
+
function Tt(e) {
|
|
381
|
+
if (typeof e == "string" || wt(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
384
|
return t == "0" && 1 / e == -us ? "-0" : t;
|
|
@@ -386,7 +386,7 @@ function Mt(e) {
|
|
|
386
386
|
function lr(e, t) {
|
|
387
387
|
t = or(t, e);
|
|
388
388
|
for (var n = 0, r = t.length; e != null && n < r; )
|
|
389
|
-
e = e[
|
|
389
|
+
e = e[Tt(t[n++])];
|
|
390
390
|
return n && n == r ? e : void 0;
|
|
391
391
|
}
|
|
392
392
|
function B(e, t, n) {
|
|
@@ -398,13 +398,13 @@ function Q(e) {
|
|
|
398
398
|
}
|
|
399
399
|
const $e = "kong-ui-forms-api", Ge = "autofill", he = "autofillSlot";
|
|
400
400
|
function cs() {
|
|
401
|
-
this.__data__ = new
|
|
401
|
+
this.__data__ = new Se(), this.size = 0;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function fs(e) {
|
|
404
404
|
var t = this.__data__, n = t.delete(e);
|
|
405
405
|
return this.size = t.size, n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ms(e) {
|
|
408
408
|
return this.__data__.get(e);
|
|
409
409
|
}
|
|
410
410
|
function hs(e) {
|
|
@@ -413,7 +413,7 @@ function hs(e) {
|
|
|
413
413
|
var ps = 200;
|
|
414
414
|
function gs(e, t) {
|
|
415
415
|
var n = this.__data__;
|
|
416
|
-
if (n instanceof
|
|
416
|
+
if (n instanceof Se) {
|
|
417
417
|
var r = n.__data__;
|
|
418
418
|
if (!tt || r.length < ps - 1)
|
|
419
419
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
@@ -422,15 +422,15 @@ function gs(e, t) {
|
|
|
422
422
|
return n.set(e, t), this.size = n.size, this;
|
|
423
423
|
}
|
|
424
424
|
function ge(e) {
|
|
425
|
-
var t = this.__data__ = new
|
|
425
|
+
var t = this.__data__ = new Se(e);
|
|
426
426
|
this.size = t.size;
|
|
427
427
|
}
|
|
428
428
|
ge.prototype.clear = cs;
|
|
429
|
-
ge.prototype.delete =
|
|
430
|
-
ge.prototype.get =
|
|
429
|
+
ge.prototype.delete = fs;
|
|
430
|
+
ge.prototype.get = ms;
|
|
431
431
|
ge.prototype.has = hs;
|
|
432
432
|
ge.prototype.set = gs;
|
|
433
|
-
var
|
|
433
|
+
var ft = function() {
|
|
434
434
|
try {
|
|
435
435
|
var e = Re(Object, "defineProperty");
|
|
436
436
|
return e({}, "", {}), e;
|
|
@@ -438,7 +438,7 @@ var ut = function() {
|
|
|
438
438
|
}
|
|
439
439
|
}();
|
|
440
440
|
function dr(e, t, n) {
|
|
441
|
-
t == "__proto__" &&
|
|
441
|
+
t == "__proto__" && ft ? ft(e, t, {
|
|
442
442
|
configurable: !0,
|
|
443
443
|
enumerable: !0,
|
|
444
444
|
value: n,
|
|
@@ -448,9 +448,9 @@ function dr(e, t, n) {
|
|
|
448
448
|
var vs = Object.prototype, ys = vs.hasOwnProperty;
|
|
449
449
|
function ur(e, t, n) {
|
|
450
450
|
var r = e[t];
|
|
451
|
-
(!(ys.call(e, t) &&
|
|
451
|
+
(!(ys.call(e, t) && ot(r, n)) || n === void 0 && !(t in e)) && dr(e, t, n);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function It(e, t, n, r) {
|
|
454
454
|
var a = !n;
|
|
455
455
|
n || (n = {});
|
|
456
456
|
for (var i = -1, l = t.length; ++i < l; ) {
|
|
@@ -460,7 +460,7 @@ function Tt(e, t, n, r) {
|
|
|
460
460
|
return n;
|
|
461
461
|
}
|
|
462
462
|
function bs(e, t) {
|
|
463
|
-
return e &&
|
|
463
|
+
return e && It(t, Ye(t), e);
|
|
464
464
|
}
|
|
465
465
|
function _s(e) {
|
|
466
466
|
var t = [];
|
|
@@ -469,26 +469,26 @@ function _s(e) {
|
|
|
469
469
|
t.push(n);
|
|
470
470
|
return t;
|
|
471
471
|
}
|
|
472
|
-
var ws = Object.prototype,
|
|
473
|
-
function
|
|
472
|
+
var ws = Object.prototype, Ms = ws.hasOwnProperty;
|
|
473
|
+
function Ss(e) {
|
|
474
474
|
if (!se(e))
|
|
475
475
|
return _s(e);
|
|
476
|
-
var t =
|
|
476
|
+
var t = xt(e), n = [];
|
|
477
477
|
for (var r in e)
|
|
478
|
-
r == "constructor" && (t || !
|
|
478
|
+
r == "constructor" && (t || !Ms.call(e, r)) || n.push(r);
|
|
479
479
|
return n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function At(e) {
|
|
482
|
+
return st(e) ? rr(e, !0) : Ss(e);
|
|
483
483
|
}
|
|
484
484
|
function Ts(e, t) {
|
|
485
|
-
return e &&
|
|
485
|
+
return e && It(t, At(t), e);
|
|
486
486
|
}
|
|
487
|
-
var cr = typeof exports == "object" && exports && !exports.nodeType && exports, mn = cr && typeof module == "object" && module && !module.nodeType && module, Is = mn && mn.exports === cr,
|
|
487
|
+
var cr = typeof exports == "object" && exports && !exports.nodeType && exports, mn = cr && typeof module == "object" && module && !module.nodeType && module, Is = mn && mn.exports === cr, hn = Is ? pe.Buffer : void 0, pn = hn ? hn.allocUnsafe : void 0;
|
|
488
488
|
function As(e, t) {
|
|
489
489
|
if (t)
|
|
490
490
|
return e.slice();
|
|
491
|
-
var n = e.length, r =
|
|
491
|
+
var n = e.length, r = pn ? pn(n) : new e.constructor(n);
|
|
492
492
|
return e.copy(r), r;
|
|
493
493
|
}
|
|
494
494
|
function Os(e, t) {
|
|
@@ -497,80 +497,80 @@ function Os(e, t) {
|
|
|
497
497
|
t[n] = e[n];
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Es(e, t) {
|
|
501
501
|
for (var n = -1, r = e == null ? 0 : e.length, a = 0, i = []; ++n < r; ) {
|
|
502
502
|
var l = e[n];
|
|
503
503
|
t(l, n, e) && (i[a++] = l);
|
|
504
504
|
}
|
|
505
505
|
return i;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function fr() {
|
|
508
508
|
return [];
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
return e == null ? [] : (e = Object(e),
|
|
510
|
+
var Cs = Object.prototype, $s = Cs.propertyIsEnumerable, gn = Object.getOwnPropertySymbols, Wt = gn ? function(e) {
|
|
511
|
+
return e == null ? [] : (e = Object(e), Es(gn(e), function(t) {
|
|
512
512
|
return $s.call(e, t);
|
|
513
513
|
}));
|
|
514
|
-
} :
|
|
514
|
+
} : fr;
|
|
515
515
|
function Fs(e, t) {
|
|
516
|
-
return
|
|
516
|
+
return It(e, Wt(e), t);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function mr(e, t) {
|
|
519
519
|
for (var n = -1, r = t.length, a = e.length; ++n < r; )
|
|
520
520
|
e[a + n] = t[n];
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
const hr =
|
|
525
|
-
var
|
|
523
|
+
var Us = ir(Object.getPrototypeOf, Object);
|
|
524
|
+
const hr = Us;
|
|
525
|
+
var ks = Object.getOwnPropertySymbols, pr = ks ? function(e) {
|
|
526
526
|
for (var t = []; e; )
|
|
527
|
-
|
|
527
|
+
mr(t, Wt(e)), e = hr(e);
|
|
528
528
|
return t;
|
|
529
|
-
} :
|
|
530
|
-
function
|
|
531
|
-
return
|
|
529
|
+
} : fr;
|
|
530
|
+
function Vs(e, t) {
|
|
531
|
+
return It(e, pr(e), t);
|
|
532
532
|
}
|
|
533
533
|
function gr(e, t, n) {
|
|
534
534
|
var r = t(e);
|
|
535
|
-
return
|
|
535
|
+
return me(e) ? r : mr(r, n(e));
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
return gr(e, Ye,
|
|
537
|
+
function Nt(e) {
|
|
538
|
+
return gr(e, Ye, Wt);
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
return gr(e,
|
|
540
|
+
function Ns(e) {
|
|
541
|
+
return gr(e, At, pr);
|
|
542
542
|
}
|
|
543
|
-
var Lt = Re(pe, "DataView"), Pt = Re(pe, "Promise"), ze = Re(pe, "Set"), qt = Re(pe, "WeakMap"),
|
|
544
|
-
(Lt && Fe(new Lt(new ArrayBuffer(1))) !=
|
|
545
|
-
var t =
|
|
543
|
+
var Lt = Re(pe, "DataView"), Pt = Re(pe, "Promise"), ze = Re(pe, "Set"), qt = Re(pe, "WeakMap"), vn = "[object Map]", Ls = "[object Object]", yn = "[object Promise]", bn = "[object Set]", _n = "[object WeakMap]", wn = "[object DataView]", Ps = je(Lt), qs = je(tt), js = je(Pt), Rs = je(ze), Ks = je(qt), Fe = Ce;
|
|
544
|
+
(Lt && Fe(new Lt(new ArrayBuffer(1))) != wn || tt && Fe(new tt()) != vn || Pt && Fe(Pt.resolve()) != yn || ze && Fe(new ze()) != bn || qt && Fe(new qt()) != _n) && (Fe = function(e) {
|
|
545
|
+
var t = Ce(e), n = t == Ls ? e.constructor : void 0, r = n ? je(n) : "";
|
|
546
546
|
if (r)
|
|
547
547
|
switch (r) {
|
|
548
548
|
case Ps:
|
|
549
|
-
return
|
|
549
|
+
return wn;
|
|
550
550
|
case qs:
|
|
551
|
-
return gn;
|
|
552
|
-
case js:
|
|
553
551
|
return vn;
|
|
554
|
-
case
|
|
552
|
+
case js:
|
|
555
553
|
return yn;
|
|
556
|
-
case
|
|
554
|
+
case Rs:
|
|
557
555
|
return bn;
|
|
556
|
+
case Ks:
|
|
557
|
+
return _n;
|
|
558
558
|
}
|
|
559
559
|
return t;
|
|
560
560
|
});
|
|
561
561
|
const nt = Fe;
|
|
562
|
-
var
|
|
562
|
+
var Ds = Object.prototype, Bs = Ds.hasOwnProperty;
|
|
563
563
|
function zs(e) {
|
|
564
564
|
var t = e.length, n = new e.constructor(t);
|
|
565
565
|
return t && typeof e[0] == "string" && Bs.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
566
566
|
}
|
|
567
|
-
var
|
|
568
|
-
function
|
|
567
|
+
var mt = pe.Uint8Array;
|
|
568
|
+
function Zt(e) {
|
|
569
569
|
var t = new e.constructor(e.byteLength);
|
|
570
|
-
return new
|
|
570
|
+
return new mt(t).set(new mt(e)), t;
|
|
571
571
|
}
|
|
572
572
|
function Hs(e, t) {
|
|
573
|
-
var n = t ?
|
|
573
|
+
var n = t ? Zt(e.buffer) : e.buffer;
|
|
574
574
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
575
575
|
}
|
|
576
576
|
var xs = /\w*$/;
|
|
@@ -578,20 +578,20 @@ function Ys(e) {
|
|
|
578
578
|
var t = new e.constructor(e.source, xs.exec(e));
|
|
579
579
|
return t.lastIndex = e.lastIndex, t;
|
|
580
580
|
}
|
|
581
|
-
var
|
|
581
|
+
var Mn = ye ? ye.prototype : void 0, Sn = Mn ? Mn.valueOf : void 0;
|
|
582
582
|
function Gs(e) {
|
|
583
583
|
return Sn ? Object(Sn.call(e)) : {};
|
|
584
584
|
}
|
|
585
585
|
function Ws(e, t) {
|
|
586
|
-
var n = t ?
|
|
586
|
+
var n = t ? Zt(e.buffer) : e.buffer;
|
|
587
587
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
588
588
|
}
|
|
589
|
-
var Zs = "[object Boolean]", Js = "[object Date]", Xs = "[object Map]", Qs = "[object Number]", eo = "[object RegExp]", to = "[object Set]", no = "[object String]", ro = "[object Symbol]", io = "[object ArrayBuffer]", ao = "[object DataView]", so = "[object Float32Array]", oo = "[object Float64Array]", lo = "[object Int8Array]", uo = "[object Int16Array]", co = "[object Int32Array]",
|
|
589
|
+
var Zs = "[object Boolean]", Js = "[object Date]", Xs = "[object Map]", Qs = "[object Number]", eo = "[object RegExp]", to = "[object Set]", no = "[object String]", ro = "[object Symbol]", io = "[object ArrayBuffer]", ao = "[object DataView]", so = "[object Float32Array]", oo = "[object Float64Array]", lo = "[object Int8Array]", uo = "[object Int16Array]", co = "[object Int32Array]", fo = "[object Uint8Array]", mo = "[object Uint8ClampedArray]", ho = "[object Uint16Array]", po = "[object Uint32Array]";
|
|
590
590
|
function go(e, t, n) {
|
|
591
591
|
var r = e.constructor;
|
|
592
592
|
switch (t) {
|
|
593
593
|
case io:
|
|
594
|
-
return
|
|
594
|
+
return Zt(e);
|
|
595
595
|
case Zs:
|
|
596
596
|
case Js:
|
|
597
597
|
return new r(+e);
|
|
@@ -602,8 +602,8 @@ function go(e, t, n) {
|
|
|
602
602
|
case lo:
|
|
603
603
|
case uo:
|
|
604
604
|
case co:
|
|
605
|
-
case mo:
|
|
606
605
|
case fo:
|
|
606
|
+
case mo:
|
|
607
607
|
case ho:
|
|
608
608
|
case po:
|
|
609
609
|
return Ws(e, n);
|
|
@@ -620,32 +620,32 @@ function go(e, t, n) {
|
|
|
620
620
|
return Gs(e);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
var
|
|
623
|
+
var Tn = Object.create, vo = /* @__PURE__ */ function() {
|
|
624
624
|
function e() {
|
|
625
625
|
}
|
|
626
626
|
return function(t) {
|
|
627
627
|
if (!se(t))
|
|
628
628
|
return {};
|
|
629
|
-
if (
|
|
630
|
-
return
|
|
629
|
+
if (Tn)
|
|
630
|
+
return Tn(t);
|
|
631
631
|
e.prototype = t;
|
|
632
632
|
var n = new e();
|
|
633
633
|
return e.prototype = void 0, n;
|
|
634
634
|
};
|
|
635
635
|
}();
|
|
636
636
|
function yo(e) {
|
|
637
|
-
return typeof e.constructor == "function" && !
|
|
637
|
+
return typeof e.constructor == "function" && !xt(e) ? vo(hr(e)) : {};
|
|
638
638
|
}
|
|
639
639
|
var bo = "[object Map]";
|
|
640
640
|
function _o(e) {
|
|
641
641
|
return be(e) && nt(e) == bo;
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
function
|
|
645
|
-
return be(e) && nt(e) ==
|
|
643
|
+
var In = He && He.isMap, wo = In ? Ht(In) : _o, Mo = "[object Set]";
|
|
644
|
+
function So(e) {
|
|
645
|
+
return be(e) && nt(e) == Mo;
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
z[vr] = z[
|
|
647
|
+
var An = He && He.isSet, To = An ? Ht(An) : So, Io = 1, Ao = 2, Oo = 4, vr = "[object Arguments]", Eo = "[object Array]", Co = "[object Boolean]", $o = "[object Date]", Fo = "[object Error]", yr = "[object Function]", Uo = "[object GeneratorFunction]", ko = "[object Map]", Vo = "[object Number]", br = "[object Object]", No = "[object RegExp]", Lo = "[object Set]", Po = "[object String]", qo = "[object Symbol]", jo = "[object WeakMap]", Ro = "[object ArrayBuffer]", Ko = "[object DataView]", Do = "[object Float32Array]", Bo = "[object Float64Array]", zo = "[object Int8Array]", Ho = "[object Int16Array]", xo = "[object Int32Array]", Yo = "[object Uint8Array]", Go = "[object Uint8ClampedArray]", Wo = "[object Uint16Array]", Zo = "[object Uint32Array]", z = {};
|
|
648
|
+
z[vr] = z[Eo] = z[Ro] = z[Ko] = z[Co] = z[$o] = z[Do] = z[Bo] = z[zo] = z[Ho] = z[xo] = z[ko] = z[Vo] = z[br] = z[No] = z[Lo] = z[Po] = z[qo] = z[Yo] = z[Go] = z[Wo] = z[Zo] = !0;
|
|
649
649
|
z[Fo] = z[yr] = z[jo] = !1;
|
|
650
650
|
function Xe(e, t, n, r, a, i) {
|
|
651
651
|
var l, s = t & Io, o = t & Ao, u = t & Oo;
|
|
@@ -653,45 +653,45 @@ function Xe(e, t, n, r, a, i) {
|
|
|
653
653
|
return l;
|
|
654
654
|
if (!se(e))
|
|
655
655
|
return e;
|
|
656
|
-
var c =
|
|
656
|
+
var c = me(e);
|
|
657
657
|
if (c) {
|
|
658
658
|
if (l = zs(e), !s)
|
|
659
659
|
return Os(e, l);
|
|
660
660
|
} else {
|
|
661
|
-
var
|
|
662
|
-
if (
|
|
661
|
+
var m = nt(e), p = m == yr || m == Uo;
|
|
662
|
+
if (ct(e))
|
|
663
663
|
return As(e, s);
|
|
664
|
-
if (
|
|
664
|
+
if (m == br || m == vr || p && !a) {
|
|
665
665
|
if (l = o || p ? {} : yo(e), !s)
|
|
666
|
-
return o ?
|
|
666
|
+
return o ? Vs(e, Ts(l, e)) : Fs(e, bs(l, e));
|
|
667
667
|
} else {
|
|
668
|
-
if (!z[
|
|
668
|
+
if (!z[m])
|
|
669
669
|
return a ? e : {};
|
|
670
|
-
l = go(e,
|
|
670
|
+
l = go(e, m, s);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
i || (i = new ge());
|
|
674
|
-
var
|
|
675
|
-
if (
|
|
676
|
-
return
|
|
677
|
-
i.set(e, l), To(e) ? e.forEach(function(
|
|
678
|
-
l.add(Xe(
|
|
679
|
-
}) : wo(e) && e.forEach(function(
|
|
680
|
-
l.set(T, Xe(
|
|
674
|
+
var U = i.get(e);
|
|
675
|
+
if (U)
|
|
676
|
+
return U;
|
|
677
|
+
i.set(e, l), To(e) ? e.forEach(function(A) {
|
|
678
|
+
l.add(Xe(A, t, n, A, e, i));
|
|
679
|
+
}) : wo(e) && e.forEach(function(A, T) {
|
|
680
|
+
l.set(T, Xe(A, t, n, T, e, i));
|
|
681
681
|
});
|
|
682
|
-
var V = u ? o ?
|
|
683
|
-
return Wn(y || e, function(
|
|
684
|
-
y && (T =
|
|
682
|
+
var V = u ? o ? Ns : Nt : o ? At : Ye, y = c ? void 0 : V(e);
|
|
683
|
+
return Wn(y || e, function(A, T) {
|
|
684
|
+
y && (T = A, A = e[T]), ur(l, T, Xe(A, t, n, T, e, i));
|
|
685
685
|
}), l;
|
|
686
686
|
}
|
|
687
687
|
var Jo = 1, Xo = 4;
|
|
688
|
-
function
|
|
688
|
+
function Me(e) {
|
|
689
689
|
return Xe(e, Jo | Xo);
|
|
690
690
|
}
|
|
691
|
-
const
|
|
691
|
+
const Jt = (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, ""), On = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
692
692
|
var Qo = "[object String]";
|
|
693
693
|
function Le(e) {
|
|
694
|
-
return typeof e == "string" || !
|
|
694
|
+
return typeof e == "string" || !me(e) && be(e) && Ce(e) == Qo;
|
|
695
695
|
}
|
|
696
696
|
const _r = {
|
|
697
697
|
methods: {
|
|
@@ -740,12 +740,12 @@ var nl = /^\s+/;
|
|
|
740
740
|
function rl(e) {
|
|
741
741
|
return e && e.slice(0, tl(e) + 1).replace(nl, "");
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var En = NaN, il = /^[-+]0x[0-9a-f]+$/i, al = /^0b[01]+$/i, sl = /^0o[0-7]+$/i, ol = parseInt;
|
|
744
744
|
function jt(e) {
|
|
745
745
|
if (typeof e == "number")
|
|
746
746
|
return e;
|
|
747
|
-
if (
|
|
748
|
-
return
|
|
747
|
+
if (wt(e))
|
|
748
|
+
return En;
|
|
749
749
|
if (se(e)) {
|
|
750
750
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
751
751
|
e = se(t) ? t + "" : t;
|
|
@@ -754,61 +754,61 @@ function jt(e) {
|
|
|
754
754
|
return e === 0 ? e : +e;
|
|
755
755
|
e = rl(e);
|
|
756
756
|
var n = al.test(e);
|
|
757
|
-
return n || sl.test(e) ? ol(e.slice(2), n ? 2 : 8) : il.test(e) ?
|
|
757
|
+
return n || sl.test(e) ? ol(e.slice(2), n ? 2 : 8) : il.test(e) ? En : +e;
|
|
758
758
|
}
|
|
759
759
|
var ll = "Expected a function", dl = Math.max, ul = Math.min;
|
|
760
760
|
function rt(e, t, n) {
|
|
761
|
-
var r, a, i, l, s, o, u = 0, c = !1,
|
|
761
|
+
var r, a, i, l, s, o, u = 0, c = !1, m = !1, p = !0;
|
|
762
762
|
if (typeof e != "function")
|
|
763
763
|
throw new TypeError(ll);
|
|
764
|
-
t = jt(t) || 0, se(n) && (c = !!n.leading,
|
|
765
|
-
function
|
|
766
|
-
var _ = r,
|
|
767
|
-
return r = a = void 0, u = g, l = e.apply(
|
|
764
|
+
t = jt(t) || 0, se(n) && (c = !!n.leading, m = "maxWait" in n, i = m ? dl(jt(n.maxWait) || 0, t) : i, p = "trailing" in n ? !!n.trailing : p);
|
|
765
|
+
function U(g) {
|
|
766
|
+
var _ = r, N = a;
|
|
767
|
+
return r = a = void 0, u = g, l = e.apply(N, _), l;
|
|
768
768
|
}
|
|
769
769
|
function V(g) {
|
|
770
|
-
return u = g, s = setTimeout(T, t), c ?
|
|
770
|
+
return u = g, s = setTimeout(T, t), c ? U(g) : l;
|
|
771
771
|
}
|
|
772
772
|
function y(g) {
|
|
773
|
-
var _ = g - o,
|
|
774
|
-
return
|
|
773
|
+
var _ = g - o, N = g - u, R = t - _;
|
|
774
|
+
return m ? ul(R, i - N) : R;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
var _ = g - o,
|
|
778
|
-
return o === void 0 || _ >= t || _ < 0 ||
|
|
776
|
+
function A(g) {
|
|
777
|
+
var _ = g - o, N = g - u;
|
|
778
|
+
return o === void 0 || _ >= t || _ < 0 || m && N >= i;
|
|
779
779
|
}
|
|
780
780
|
function T() {
|
|
781
781
|
var g = Ft();
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
782
|
+
if (A(g))
|
|
783
|
+
return P(g);
|
|
784
784
|
s = setTimeout(T, y(g));
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
return s = void 0, p && r ?
|
|
786
|
+
function P(g) {
|
|
787
|
+
return s = void 0, p && r ? U(g) : (r = a = void 0, l);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function S() {
|
|
790
790
|
s !== void 0 && clearTimeout(s), u = 0, r = o = a = s = void 0;
|
|
791
791
|
}
|
|
792
792
|
function k() {
|
|
793
|
-
return s === void 0 ? l :
|
|
793
|
+
return s === void 0 ? l : P(Ft());
|
|
794
794
|
}
|
|
795
795
|
function q() {
|
|
796
|
-
var g = Ft(), _ =
|
|
796
|
+
var g = Ft(), _ = A(g);
|
|
797
797
|
if (r = arguments, a = this, o = g, _) {
|
|
798
798
|
if (s === void 0)
|
|
799
799
|
return V(o);
|
|
800
|
-
if (
|
|
801
|
-
return clearTimeout(s), s = setTimeout(T, t),
|
|
800
|
+
if (m)
|
|
801
|
+
return clearTimeout(s), s = setTimeout(T, t), U(o);
|
|
802
802
|
}
|
|
803
803
|
return s === void 0 && (s = setTimeout(T, t)), l;
|
|
804
804
|
}
|
|
805
|
-
return q.cancel =
|
|
805
|
+
return q.cancel = S, q.flush = k, q;
|
|
806
806
|
}
|
|
807
807
|
var cl = "__lodash_hash_undefined__";
|
|
808
|
-
function
|
|
808
|
+
function fl(e) {
|
|
809
809
|
return this.__data__.set(e, cl), this;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function ml(e) {
|
|
812
812
|
return this.__data__.has(e);
|
|
813
813
|
}
|
|
814
814
|
function it(e) {
|
|
@@ -816,8 +816,8 @@ function it(e) {
|
|
|
816
816
|
for (this.__data__ = new Te(); ++t < n; )
|
|
817
817
|
this.add(e[t]);
|
|
818
818
|
}
|
|
819
|
-
it.prototype.add = it.prototype.push =
|
|
820
|
-
it.prototype.has =
|
|
819
|
+
it.prototype.add = it.prototype.push = fl;
|
|
820
|
+
it.prototype.has = ml;
|
|
821
821
|
function wr(e, t, n, r) {
|
|
822
822
|
for (var a = e.length, i = n + (r ? 1 : -1); r ? i-- : ++i < a; )
|
|
823
823
|
if (t(e[i], i, e))
|
|
@@ -846,45 +846,45 @@ function yl(e, t, n) {
|
|
|
846
846
|
return !0;
|
|
847
847
|
return !1;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Mr(e, t) {
|
|
850
850
|
return e.has(t);
|
|
851
851
|
}
|
|
852
852
|
function bl() {
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Xt(e) {
|
|
855
855
|
var t = -1, n = Array(e.size);
|
|
856
856
|
return e.forEach(function(r) {
|
|
857
857
|
n[++t] = r;
|
|
858
858
|
}), n;
|
|
859
859
|
}
|
|
860
|
-
var _l = 1 / 0, wl = ze && 1 /
|
|
860
|
+
var _l = 1 / 0, wl = ze && 1 / Xt(new ze([, -0]))[1] == _l ? function(e) {
|
|
861
861
|
return new ze(e);
|
|
862
|
-
} : bl,
|
|
863
|
-
function
|
|
862
|
+
} : bl, Ml = 200;
|
|
863
|
+
function Sl(e, t, n) {
|
|
864
864
|
var r = -1, a = vl, i = e.length, l = !0, s = [], o = s;
|
|
865
865
|
if (n)
|
|
866
866
|
l = !1, a = yl;
|
|
867
|
-
else if (i >=
|
|
867
|
+
else if (i >= Ml) {
|
|
868
868
|
var u = t ? null : wl(e);
|
|
869
869
|
if (u)
|
|
870
|
-
return
|
|
871
|
-
l = !1, a =
|
|
870
|
+
return Xt(u);
|
|
871
|
+
l = !1, a = Mr, o = new it();
|
|
872
872
|
} else
|
|
873
873
|
o = t ? [] : s;
|
|
874
874
|
e:
|
|
875
875
|
for (; ++r < i; ) {
|
|
876
|
-
var c = e[r],
|
|
877
|
-
if (c = n || c !== 0 ? c : 0, l &&
|
|
876
|
+
var c = e[r], m = t ? t(c) : c;
|
|
877
|
+
if (c = n || c !== 0 ? c : 0, l && m === m) {
|
|
878
878
|
for (var p = o.length; p--; )
|
|
879
|
-
if (o[p] ===
|
|
879
|
+
if (o[p] === m)
|
|
880
880
|
continue e;
|
|
881
|
-
t && o.push(
|
|
882
|
-
} else a(o,
|
|
881
|
+
t && o.push(m), s.push(c);
|
|
882
|
+
} else a(o, m, n) || (o !== s && o.push(m), s.push(c));
|
|
883
883
|
}
|
|
884
884
|
return s;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
return e && e.length ?
|
|
886
|
+
function Sr(e) {
|
|
887
|
+
return e && e.length ? Sl(e) : [];
|
|
888
888
|
}
|
|
889
889
|
var Tl = 0;
|
|
890
890
|
function Tr(e) {
|
|
@@ -920,20 +920,20 @@ function Ol(e) {
|
|
|
920
920
|
return e;
|
|
921
921
|
};
|
|
922
922
|
}
|
|
923
|
-
var
|
|
924
|
-
return
|
|
923
|
+
var El = ft ? function(e, t) {
|
|
924
|
+
return ft(e, "toString", {
|
|
925
925
|
configurable: !0,
|
|
926
926
|
enumerable: !1,
|
|
927
927
|
value: Ol(t),
|
|
928
928
|
writable: !0
|
|
929
929
|
});
|
|
930
|
-
} :
|
|
931
|
-
const
|
|
932
|
-
var $l = 800, Fl = 16,
|
|
933
|
-
function
|
|
930
|
+
} : _t;
|
|
931
|
+
const Cl = El;
|
|
932
|
+
var $l = 800, Fl = 16, Ul = Date.now;
|
|
933
|
+
function kl(e) {
|
|
934
934
|
var t = 0, n = 0;
|
|
935
935
|
return function() {
|
|
936
|
-
var r =
|
|
936
|
+
var r = Ul(), a = Fl - (r - n);
|
|
937
937
|
if (n = r, a > 0) {
|
|
938
938
|
if (++t >= $l)
|
|
939
939
|
return arguments[0];
|
|
@@ -942,41 +942,41 @@ function Ul(e) {
|
|
|
942
942
|
return e.apply(void 0, arguments);
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
var
|
|
946
|
-
function
|
|
947
|
-
return
|
|
945
|
+
var Vl = kl(Cl);
|
|
946
|
+
function Nl(e, t) {
|
|
947
|
+
return Vl(Al(e, t, _t), e + "");
|
|
948
948
|
}
|
|
949
949
|
function Ll(e, t, n) {
|
|
950
950
|
if (!se(n))
|
|
951
951
|
return !1;
|
|
952
952
|
var r = typeof t;
|
|
953
|
-
return (r == "number" ?
|
|
953
|
+
return (r == "number" ? st(n) && Bt(t, n.length) : r == "string" && t in n) ? ot(n[t], e) : !1;
|
|
954
954
|
}
|
|
955
|
-
var Ir = Object.prototype, Pl = Ir.hasOwnProperty, ql =
|
|
955
|
+
var Ir = Object.prototype, Pl = Ir.hasOwnProperty, ql = Nl(function(e, t) {
|
|
956
956
|
e = Object(e);
|
|
957
957
|
var n = -1, r = t.length, a = r > 2 ? t[2] : void 0;
|
|
958
958
|
for (a && Ll(t[0], t[1], a) && (r = 1); ++n < r; )
|
|
959
|
-
for (var i = t[n], l =
|
|
959
|
+
for (var i = t[n], l = At(i), s = -1, o = l.length; ++s < o; ) {
|
|
960
960
|
var u = l[s], c = e[u];
|
|
961
|
-
(c === void 0 ||
|
|
961
|
+
(c === void 0 || ot(c, Ir[u]) && !Pl.call(e, u)) && (e[u] = i[u]);
|
|
962
962
|
}
|
|
963
963
|
return e;
|
|
964
964
|
}), jl = pe.isFinite;
|
|
965
965
|
function Rl(e) {
|
|
966
966
|
return typeof e == "number" && jl(e);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
969
|
-
function
|
|
968
|
+
var $n = 1 / 0, Kl = 17976931348623157e292;
|
|
969
|
+
function Dl(e) {
|
|
970
970
|
if (!e)
|
|
971
971
|
return e === 0 ? e : 0;
|
|
972
|
-
if (e = jt(e), e ===
|
|
972
|
+
if (e = jt(e), e === $n || e === -$n) {
|
|
973
973
|
var t = e < 0 ? -1 : 1;
|
|
974
|
-
return t *
|
|
974
|
+
return t * Kl;
|
|
975
975
|
}
|
|
976
976
|
return e === e ? e : 0;
|
|
977
977
|
}
|
|
978
978
|
function Ar(e) {
|
|
979
|
-
var t =
|
|
979
|
+
var t = Dl(e), n = t % 1;
|
|
980
980
|
return t === t ? n ? t - n : t : 0;
|
|
981
981
|
}
|
|
982
982
|
function Bl(e) {
|
|
@@ -984,15 +984,15 @@ function Bl(e) {
|
|
|
984
984
|
}
|
|
985
985
|
var zl = "[object Number]";
|
|
986
986
|
function Rt(e) {
|
|
987
|
-
return typeof e == "number" || be(e) &&
|
|
987
|
+
return typeof e == "number" || be(e) && Ce(e) == zl;
|
|
988
988
|
}
|
|
989
|
-
var Or = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Oe = "\\d\\d?", Ae = "\\d\\d", Hl = "\\d{3}", xl = "\\d{4}", Qe = "[^\\s]+",
|
|
990
|
-
function
|
|
989
|
+
var Or = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Oe = "\\d\\d?", Ae = "\\d\\d", Hl = "\\d{3}", xl = "\\d{4}", Qe = "[^\\s]+", Er = /\[([^]*?)\]/gm;
|
|
990
|
+
function Cr(e, t) {
|
|
991
991
|
for (var n = [], r = 0, a = e.length; r < a; r++)
|
|
992
992
|
n.push(e[r].substr(0, t));
|
|
993
993
|
return n;
|
|
994
994
|
}
|
|
995
|
-
var
|
|
995
|
+
var Fn = function(e) {
|
|
996
996
|
return function(t, n) {
|
|
997
997
|
var r = n[e].map(function(i) {
|
|
998
998
|
return i.toLowerCase();
|
|
@@ -1031,7 +1031,7 @@ var $r = [
|
|
|
1031
1031
|
"October",
|
|
1032
1032
|
"November",
|
|
1033
1033
|
"December"
|
|
1034
|
-
], Yl =
|
|
1034
|
+
], Yl = Cr(Fr, 3), Gl = Cr($r, 3), Ur = {
|
|
1035
1035
|
dayNamesShort: Gl,
|
|
1036
1036
|
dayNames: $r,
|
|
1037
1037
|
monthNamesShort: Yl,
|
|
@@ -1040,11 +1040,11 @@ var $r = [
|
|
|
1040
1040
|
DoFn: function(e) {
|
|
1041
1041
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
1042
1042
|
}
|
|
1043
|
-
},
|
|
1044
|
-
return
|
|
1045
|
-
},
|
|
1043
|
+
}, ht = Pe({}, Ur), Wl = function(e) {
|
|
1044
|
+
return ht = Pe(ht, e);
|
|
1045
|
+
}, Un = function(e) {
|
|
1046
1046
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1047
|
-
},
|
|
1047
|
+
}, le = function(e, t) {
|
|
1048
1048
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
1049
1049
|
e = "0" + e;
|
|
1050
1050
|
return e;
|
|
@@ -1053,7 +1053,7 @@ var $r = [
|
|
|
1053
1053
|
return String(e.getDate());
|
|
1054
1054
|
},
|
|
1055
1055
|
DD: function(e) {
|
|
1056
|
-
return
|
|
1056
|
+
return le(e.getDate());
|
|
1057
1057
|
},
|
|
1058
1058
|
Do: function(e, t) {
|
|
1059
1059
|
return t.DoFn(e.getDate());
|
|
@@ -1062,7 +1062,7 @@ var $r = [
|
|
|
1062
1062
|
return String(e.getDay());
|
|
1063
1063
|
},
|
|
1064
1064
|
dd: function(e) {
|
|
1065
|
-
return
|
|
1065
|
+
return le(e.getDay());
|
|
1066
1066
|
},
|
|
1067
1067
|
ddd: function(e, t) {
|
|
1068
1068
|
return t.dayNamesShort[e.getDay()];
|
|
@@ -1074,7 +1074,7 @@ var $r = [
|
|
|
1074
1074
|
return String(e.getMonth() + 1);
|
|
1075
1075
|
},
|
|
1076
1076
|
MM: function(e) {
|
|
1077
|
-
return
|
|
1077
|
+
return le(e.getMonth() + 1);
|
|
1078
1078
|
},
|
|
1079
1079
|
MMM: function(e, t) {
|
|
1080
1080
|
return t.monthNamesShort[e.getMonth()];
|
|
@@ -1083,43 +1083,43 @@ var $r = [
|
|
|
1083
1083
|
return t.monthNames[e.getMonth()];
|
|
1084
1084
|
},
|
|
1085
1085
|
YY: function(e) {
|
|
1086
|
-
return
|
|
1086
|
+
return le(String(e.getFullYear()), 4).substr(2);
|
|
1087
1087
|
},
|
|
1088
1088
|
YYYY: function(e) {
|
|
1089
|
-
return
|
|
1089
|
+
return le(e.getFullYear(), 4);
|
|
1090
1090
|
},
|
|
1091
1091
|
h: function(e) {
|
|
1092
1092
|
return String(e.getHours() % 12 || 12);
|
|
1093
1093
|
},
|
|
1094
1094
|
hh: function(e) {
|
|
1095
|
-
return
|
|
1095
|
+
return le(e.getHours() % 12 || 12);
|
|
1096
1096
|
},
|
|
1097
1097
|
H: function(e) {
|
|
1098
1098
|
return String(e.getHours());
|
|
1099
1099
|
},
|
|
1100
1100
|
HH: function(e) {
|
|
1101
|
-
return
|
|
1101
|
+
return le(e.getHours());
|
|
1102
1102
|
},
|
|
1103
1103
|
m: function(e) {
|
|
1104
1104
|
return String(e.getMinutes());
|
|
1105
1105
|
},
|
|
1106
1106
|
mm: function(e) {
|
|
1107
|
-
return
|
|
1107
|
+
return le(e.getMinutes());
|
|
1108
1108
|
},
|
|
1109
1109
|
s: function(e) {
|
|
1110
1110
|
return String(e.getSeconds());
|
|
1111
1111
|
},
|
|
1112
1112
|
ss: function(e) {
|
|
1113
|
-
return
|
|
1113
|
+
return le(e.getSeconds());
|
|
1114
1114
|
},
|
|
1115
1115
|
S: function(e) {
|
|
1116
1116
|
return String(Math.round(e.getMilliseconds() / 100));
|
|
1117
1117
|
},
|
|
1118
1118
|
SS: function(e) {
|
|
1119
|
-
return
|
|
1119
|
+
return le(Math.round(e.getMilliseconds() / 10), 2);
|
|
1120
1120
|
},
|
|
1121
1121
|
SSS: function(e) {
|
|
1122
|
-
return
|
|
1122
|
+
return le(e.getMilliseconds(), 3);
|
|
1123
1123
|
},
|
|
1124
1124
|
a: function(e, t) {
|
|
1125
1125
|
return e.getHours() < 12 ? t.amPm[0] : t.amPm[1];
|
|
@@ -1129,22 +1129,22 @@ var $r = [
|
|
|
1129
1129
|
},
|
|
1130
1130
|
ZZ: function(e) {
|
|
1131
1131
|
var t = e.getTimezoneOffset();
|
|
1132
|
-
return (t > 0 ? "-" : "+") +
|
|
1132
|
+
return (t > 0 ? "-" : "+") + le(Math.floor(Math.abs(t) / 60) * 100 + Math.abs(t) % 60, 4);
|
|
1133
1133
|
},
|
|
1134
1134
|
Z: function(e) {
|
|
1135
1135
|
var t = e.getTimezoneOffset();
|
|
1136
|
-
return (t > 0 ? "-" : "+") +
|
|
1136
|
+
return (t > 0 ? "-" : "+") + le(Math.floor(Math.abs(t) / 60), 2) + ":" + le(Math.abs(t) % 60, 2);
|
|
1137
1137
|
}
|
|
1138
1138
|
}, kn = function(e) {
|
|
1139
1139
|
return +e - 1;
|
|
1140
|
-
},
|
|
1140
|
+
}, Vn = [null, Oe], Nn = [null, Qe], Ln = [
|
|
1141
1141
|
"isPm",
|
|
1142
1142
|
Qe,
|
|
1143
1143
|
function(e, t) {
|
|
1144
1144
|
var n = e.toLowerCase();
|
|
1145
1145
|
return n === t.amPm[0] ? 0 : n === t.amPm[1] ? 1 : null;
|
|
1146
1146
|
}
|
|
1147
|
-
],
|
|
1147
|
+
], Pn = [
|
|
1148
1148
|
"timezoneOffset",
|
|
1149
1149
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",
|
|
1150
1150
|
function(e) {
|
|
@@ -1187,17 +1187,17 @@ var $r = [
|
|
|
1187
1187
|
return +e * 10;
|
|
1188
1188
|
}],
|
|
1189
1189
|
SSS: ["millisecond", Hl],
|
|
1190
|
-
d:
|
|
1191
|
-
dd:
|
|
1190
|
+
d: Vn,
|
|
1191
|
+
dd: Vn,
|
|
1192
1192
|
ddd: Nn,
|
|
1193
1193
|
dddd: Nn,
|
|
1194
|
-
MMM: ["month", Qe,
|
|
1195
|
-
MMMM: ["month", Qe,
|
|
1196
|
-
a:
|
|
1197
|
-
A:
|
|
1198
|
-
ZZ:
|
|
1199
|
-
Z:
|
|
1200
|
-
},
|
|
1194
|
+
MMM: ["month", Qe, Fn("monthNamesShort")],
|
|
1195
|
+
MMMM: ["month", Qe, Fn("monthNames")],
|
|
1196
|
+
a: Ln,
|
|
1197
|
+
A: Ln,
|
|
1198
|
+
ZZ: Pn,
|
|
1199
|
+
Z: Pn
|
|
1200
|
+
}, pt = {
|
|
1201
1201
|
default: "ddd MMM DD YYYY HH:mm:ss",
|
|
1202
1202
|
shortDate: "M/D/YY",
|
|
1203
1203
|
mediumDate: "MMM D, YYYY",
|
|
@@ -1209,16 +1209,16 @@ var $r = [
|
|
|
1209
1209
|
mediumTime: "HH:mm:ss",
|
|
1210
1210
|
longTime: "HH:mm:ss.SSS"
|
|
1211
1211
|
}, Xl = function(e) {
|
|
1212
|
-
return Pe(
|
|
1212
|
+
return Pe(pt, e);
|
|
1213
1213
|
}, Ql = function(e, t, n) {
|
|
1214
|
-
if (t === void 0 && (t =
|
|
1214
|
+
if (t === void 0 && (t = pt.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1215
1215
|
throw new Error("Invalid Date pass to format");
|
|
1216
|
-
t =
|
|
1216
|
+
t = pt[t] || t;
|
|
1217
1217
|
var r = [];
|
|
1218
|
-
t = t.replace(
|
|
1218
|
+
t = t.replace(Er, function(i, l) {
|
|
1219
1219
|
return r.push(l), "@@@";
|
|
1220
1220
|
});
|
|
1221
|
-
var a = Pe(Pe({},
|
|
1221
|
+
var a = Pe(Pe({}, ht), n);
|
|
1222
1222
|
return t = t.replace(Or, function(i) {
|
|
1223
1223
|
return Zl[i](e, a);
|
|
1224
1224
|
}), t.replace(/@@@/g, function() {
|
|
@@ -1228,7 +1228,7 @@ var $r = [
|
|
|
1228
1228
|
function ed(e, t, n) {
|
|
1229
1229
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1230
1230
|
throw new Error("Invalid format in fecha parse");
|
|
1231
|
-
if (t =
|
|
1231
|
+
if (t = pt[t] || t, e.length > 1e3)
|
|
1232
1232
|
return null;
|
|
1233
1233
|
var r = /* @__PURE__ */ new Date(), a = {
|
|
1234
1234
|
year: r.getFullYear(),
|
|
@@ -1240,14 +1240,14 @@ function ed(e, t, n) {
|
|
|
1240
1240
|
millisecond: 0,
|
|
1241
1241
|
isPm: null,
|
|
1242
1242
|
timezoneOffset: null
|
|
1243
|
-
}, i = [], l = [], s = t.replace(
|
|
1244
|
-
return l.push(
|
|
1243
|
+
}, i = [], l = [], s = t.replace(Er, function(k, q) {
|
|
1244
|
+
return l.push(Un(q)), "@@@";
|
|
1245
1245
|
}), o = {}, u = {};
|
|
1246
|
-
s =
|
|
1247
|
-
var q = Jl[k], g = q[0], _ = q[1],
|
|
1246
|
+
s = Un(s).replace(Or, function(k) {
|
|
1247
|
+
var q = Jl[k], g = q[0], _ = q[1], N = q[3];
|
|
1248
1248
|
if (o[g])
|
|
1249
1249
|
throw new Error("Invalid format. " + g + " specified twice in format");
|
|
1250
|
-
return o[g] = !0,
|
|
1250
|
+
return o[g] = !0, N && (u[N] = !0), i.push(q), "(" + _ + ")";
|
|
1251
1251
|
}), Object.keys(u).forEach(function(k) {
|
|
1252
1252
|
if (!o[k])
|
|
1253
1253
|
throw new Error("Invalid format. " + k + " is required in specified format");
|
|
@@ -1257,24 +1257,24 @@ function ed(e, t, n) {
|
|
|
1257
1257
|
var c = e.match(new RegExp(s, "i"));
|
|
1258
1258
|
if (!c)
|
|
1259
1259
|
return null;
|
|
1260
|
-
for (var
|
|
1261
|
-
var
|
|
1262
|
-
if (
|
|
1260
|
+
for (var m = Pe(Pe({}, ht), n), p = 1; p < c.length; p++) {
|
|
1261
|
+
var U = i[p - 1], V = U[0], y = U[2], A = y ? y(c[p], m) : +c[p];
|
|
1262
|
+
if (A == null)
|
|
1263
1263
|
return null;
|
|
1264
|
-
a[V] =
|
|
1264
|
+
a[V] = A;
|
|
1265
1265
|
}
|
|
1266
1266
|
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
1267
1267
|
var T;
|
|
1268
1268
|
if (a.timezoneOffset == null) {
|
|
1269
1269
|
T = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
1270
|
-
for (var
|
|
1270
|
+
for (var P = [
|
|
1271
1271
|
["month", "getMonth"],
|
|
1272
1272
|
["day", "getDate"],
|
|
1273
1273
|
["hour", "getHours"],
|
|
1274
1274
|
["minute", "getMinutes"],
|
|
1275
1275
|
["second", "getSeconds"]
|
|
1276
|
-
], p = 0,
|
|
1277
|
-
if (o[
|
|
1276
|
+
], p = 0, S = P.length; p < S; p++)
|
|
1277
|
+
if (o[P[p][0]] && a[P[p][0]] !== T[P[p][1]]())
|
|
1278
1278
|
return null;
|
|
1279
1279
|
} else if (T = 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
1280
|
return null;
|
|
@@ -1283,7 +1283,7 @@ function ed(e, t, n) {
|
|
|
1283
1283
|
var Be = {
|
|
1284
1284
|
format: Ql,
|
|
1285
1285
|
parse: ed,
|
|
1286
|
-
defaultI18n:
|
|
1286
|
+
defaultI18n: Ur,
|
|
1287
1287
|
setGlobalDateI18n: Wl,
|
|
1288
1288
|
setGlobalDateMasks: Xl
|
|
1289
1289
|
};
|
|
@@ -1310,10 +1310,10 @@ const ie = {
|
|
|
1310
1310
|
invalidTextContainNumber: "Invalid text! Cannot contains numbers or special characters",
|
|
1311
1311
|
invalidTextContainSpec: "Invalid text! Cannot contains special characters"
|
|
1312
1312
|
};
|
|
1313
|
-
function
|
|
1314
|
-
return Q(e) || e === "" ? t ? [
|
|
1313
|
+
function fe(e, t, n = ie) {
|
|
1314
|
+
return Q(e) || e === "" ? t ? [W(n.fieldIsRequired)] : [] : null;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function W(e, ...t) {
|
|
1317
1317
|
if (e != null && t.length > 0)
|
|
1318
1318
|
for (let n = 0; n < t.length; n++)
|
|
1319
1319
|
e = e.replace("{" + (n - 1) + "}", t[n]);
|
|
@@ -1322,121 +1322,121 @@ function Z(e, ...t) {
|
|
|
1322
1322
|
const qe = {
|
|
1323
1323
|
resources: ie,
|
|
1324
1324
|
required(e, t, n, r = ie) {
|
|
1325
|
-
return
|
|
1325
|
+
return fe(e, t.required, r);
|
|
1326
1326
|
},
|
|
1327
1327
|
number(e, t, n, r = ie) {
|
|
1328
|
-
const a =
|
|
1328
|
+
const a = fe(e, t.required, r);
|
|
1329
1329
|
if (a != null) return a;
|
|
1330
1330
|
const i = [];
|
|
1331
|
-
return Rl(e) ? (!Q(t.min) && e < t.min && i.push(
|
|
1331
|
+
return Rl(e) ? (!Q(t.min) && e < t.min && i.push(W(r.numberTooSmall, t.min)), !Q(t.max) && e > t.max && i.push(W(r.numberTooBig, t.max))) : i.push(W(r.invalidNumber)), i;
|
|
1332
1332
|
},
|
|
1333
1333
|
integer(e, t, n, r = ie) {
|
|
1334
|
-
const a =
|
|
1334
|
+
const a = fe(e, t.required, r);
|
|
1335
1335
|
if (a != null) return a;
|
|
1336
1336
|
const i = qe.number(e, t, n, r);
|
|
1337
|
-
return Bl(e) || i.push(
|
|
1337
|
+
return Bl(e) || i.push(W(r.invalidInteger)), i;
|
|
1338
1338
|
},
|
|
1339
1339
|
double(e, t, n, r = ie) {
|
|
1340
|
-
const a =
|
|
1340
|
+
const a = fe(e, t.required, r);
|
|
1341
1341
|
if (a != null) return a;
|
|
1342
1342
|
if (!Rt(e) || isNaN(e))
|
|
1343
|
-
return [
|
|
1343
|
+
return [W(r.invalidNumber)];
|
|
1344
1344
|
},
|
|
1345
1345
|
string(e, t, n, r = ie) {
|
|
1346
|
-
const a =
|
|
1346
|
+
const a = fe(e, t.required, r);
|
|
1347
1347
|
if (a != null) return a;
|
|
1348
1348
|
const i = [];
|
|
1349
|
-
return Le(e) ? (!Q(t.min) && e.length < t.min && i.push(
|
|
1349
|
+
return Le(e) ? (!Q(t.min) && e.length < t.min && i.push(W(r.textTooSmall, e.length, t.min)), !Q(t.max) && e.length > t.max && i.push(W(r.textTooBig, e.length, t.max))) : i.push(W(r.thisNotText)), i;
|
|
1350
1350
|
},
|
|
1351
1351
|
array(e, t, n, r = ie) {
|
|
1352
1352
|
if (t.required) {
|
|
1353
1353
|
if (!Array.isArray(e))
|
|
1354
|
-
return [
|
|
1354
|
+
return [W(r.thisNotArray)];
|
|
1355
1355
|
if (e.length === 0)
|
|
1356
|
-
return [
|
|
1356
|
+
return [W(r.fieldIsRequired)];
|
|
1357
1357
|
}
|
|
1358
1358
|
if (!Q(e)) {
|
|
1359
1359
|
if (!Q(t.min) && e.length < t.min)
|
|
1360
|
-
return [
|
|
1360
|
+
return [W(r.selectMinItems, t.min)];
|
|
1361
1361
|
if (!Q(t.max) && e.length > t.max)
|
|
1362
|
-
return [
|
|
1362
|
+
return [W(r.selectMaxItems, t.max)];
|
|
1363
1363
|
}
|
|
1364
1364
|
},
|
|
1365
1365
|
date(e, t, n, r = ie) {
|
|
1366
|
-
const a =
|
|
1366
|
+
const a = fe(e, t.required, r);
|
|
1367
1367
|
if (a != null) return a;
|
|
1368
1368
|
const i = new Date(e);
|
|
1369
1369
|
if (isNaN(i.getDate()))
|
|
1370
|
-
return [
|
|
1370
|
+
return [W(r.invalidDate)];
|
|
1371
1371
|
const l = [];
|
|
1372
1372
|
if (!Q(t.min)) {
|
|
1373
1373
|
const s = new Date(t.min);
|
|
1374
|
-
i.valueOf() < s.valueOf() && l.push(
|
|
1374
|
+
i.valueOf() < s.valueOf() && l.push(W(r.dateIsEarly, Be.format(i), Be.format(s)));
|
|
1375
1375
|
}
|
|
1376
1376
|
if (!Q(t.max)) {
|
|
1377
1377
|
const s = new Date(t.max);
|
|
1378
|
-
i.valueOf() > s.valueOf() && l.push(
|
|
1378
|
+
i.valueOf() > s.valueOf() && l.push(W(r.dateIsLate, Be.format(i), Be.format(s)));
|
|
1379
1379
|
}
|
|
1380
1380
|
return l;
|
|
1381
1381
|
},
|
|
1382
1382
|
regexp(e, t, n, r = ie) {
|
|
1383
|
-
const a =
|
|
1383
|
+
const a = fe(e, t.required, r);
|
|
1384
1384
|
if (a != null) return a;
|
|
1385
1385
|
if (!Q(t.pattern) && !new RegExp(t.pattern).test(e))
|
|
1386
|
-
return [
|
|
1386
|
+
return [W(r.invalidFormat)];
|
|
1387
1387
|
},
|
|
1388
1388
|
email(e, t, n, r = ie) {
|
|
1389
|
-
const a =
|
|
1389
|
+
const a = fe(e, t.required, r);
|
|
1390
1390
|
if (a != null) return a;
|
|
1391
1391
|
if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e))
|
|
1392
|
-
return [
|
|
1392
|
+
return [W(r.invalidEmail)];
|
|
1393
1393
|
},
|
|
1394
1394
|
url(e, t, n, r = ie) {
|
|
1395
|
-
const a =
|
|
1395
|
+
const a = fe(e, t.required, r);
|
|
1396
1396
|
if (a != null) return a;
|
|
1397
1397
|
if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e))
|
|
1398
|
-
return [
|
|
1398
|
+
return [W(r.invalidURL)];
|
|
1399
1399
|
},
|
|
1400
1400
|
creditCard(e, t, n, r = ie) {
|
|
1401
|
-
const a =
|
|
1401
|
+
const a = fe(e, t.required, r);
|
|
1402
1402
|
if (a != null) return a;
|
|
1403
1403
|
const i = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, l = e.replace(/[^0-9]+/g, "");
|
|
1404
1404
|
if (!i.test(l))
|
|
1405
|
-
return [
|
|
1405
|
+
return [W(r.invalidCard)];
|
|
1406
1406
|
let s = 0, o, u, c;
|
|
1407
|
-
for (let
|
|
1408
|
-
o = l.substring(
|
|
1407
|
+
for (let m = l.length - 1; m >= 0; m--)
|
|
1408
|
+
o = l.substring(m, m + 1), u = parseInt(o, 10), c ? (u *= 2, u >= 10 ? s += u % 10 + 1 : s += u) : s += u, c = !c;
|
|
1409
1409
|
if (!(s % 10 === 0 && l))
|
|
1410
|
-
return [
|
|
1410
|
+
return [W(r.invalidCardNumber)];
|
|
1411
1411
|
},
|
|
1412
1412
|
alpha(e, t, n, r = ie) {
|
|
1413
|
-
const a =
|
|
1413
|
+
const a = fe(e, t.required, r);
|
|
1414
1414
|
if (a != null) return a;
|
|
1415
1415
|
if (!/^[a-zA-Z]*$/.test(e))
|
|
1416
|
-
return [
|
|
1416
|
+
return [W(r.invalidTextContainNumber)];
|
|
1417
1417
|
},
|
|
1418
1418
|
alphaNumeric(e, t, n, r = ie) {
|
|
1419
|
-
const a =
|
|
1419
|
+
const a = fe(e, t.required, r);
|
|
1420
1420
|
if (a != null) return a;
|
|
1421
1421
|
if (!/^[a-zA-Z0-9]*$/.test(e))
|
|
1422
|
-
return [
|
|
1422
|
+
return [W(r.invalidTextContainSpec)];
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
1425
|
Object.keys(qe).forEach((e) => {
|
|
1426
1426
|
const t = qe[e];
|
|
1427
1427
|
Y(t) && (t.locale = (n) => (r, a, i) => t(r, a, i, ql(n, ie)));
|
|
1428
1428
|
});
|
|
1429
|
-
function
|
|
1429
|
+
function qn(e) {
|
|
1430
1430
|
return Le(e) ? qe[e] != null ? qe[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function Ut(e, t, n) {
|
|
1433
1433
|
let r = B(n.context, "schema.attributes", {});
|
|
1434
1434
|
const a = t.value || "input";
|
|
1435
1435
|
Le(a) && (r = B(r, a) || r), ae(r, (i, l) => {
|
|
1436
1436
|
e.setAttribute(l, i);
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
|
-
const
|
|
1439
|
+
const ce = {
|
|
1440
1440
|
name: "abstractField",
|
|
1441
1441
|
props: ["vfg", "model", "schema", "formOptions", "disabled"],
|
|
1442
1442
|
emits: ["validated", "modelUpdated"],
|
|
@@ -1449,9 +1449,9 @@ const ue = {
|
|
|
1449
1449
|
},
|
|
1450
1450
|
directives: {
|
|
1451
1451
|
attributes: {
|
|
1452
|
-
beforeMount:
|
|
1453
|
-
updated:
|
|
1454
|
-
componentUpdated:
|
|
1452
|
+
beforeMount: Ut,
|
|
1453
|
+
updated: Ut,
|
|
1454
|
+
componentUpdated: Ut
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
1457
1457
|
computed: {
|
|
@@ -1475,8 +1475,8 @@ const ue = {
|
|
|
1475
1475
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
1476
1476
|
const a = [];
|
|
1477
1477
|
Array.isArray(this.schema.validator) ? ae(this.schema.validator, (i) => {
|
|
1478
|
-
a.push(
|
|
1479
|
-
}) : a.push(
|
|
1478
|
+
a.push(qn(i).bind(this));
|
|
1479
|
+
}) : a.push(qn(this.schema.validator).bind(this)), ae(a, (i) => {
|
|
1480
1480
|
if (t)
|
|
1481
1481
|
n.push(i(this.value, this.schema, this.model));
|
|
1482
1482
|
else {
|
|
@@ -1491,7 +1491,7 @@ const ue = {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
const r = (a) => {
|
|
1493
1493
|
let i = [];
|
|
1494
|
-
ae(
|
|
1494
|
+
ae(Sr(a), (s) => {
|
|
1495
1495
|
Array.isArray(s) && s.length > 0 ? i = i.concat(s) : Le(s) && i.push(s);
|
|
1496
1496
|
}), Y(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, i, this.schema);
|
|
1497
1497
|
const l = i.length === 0;
|
|
@@ -1532,7 +1532,7 @@ const ue = {
|
|
|
1532
1532
|
},
|
|
1533
1533
|
getFieldID(e, t = !1) {
|
|
1534
1534
|
const n = B(this.formOptions, "fieldIdPrefix", "");
|
|
1535
|
-
return
|
|
1535
|
+
return Jt(e, n) + (t ? "-" + Tr() : "");
|
|
1536
1536
|
},
|
|
1537
1537
|
getLabelId(e) {
|
|
1538
1538
|
return `${this.getFieldID(e)}-label`;
|
|
@@ -1547,16 +1547,16 @@ const ue = {
|
|
|
1547
1547
|
return e;
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
|
-
},
|
|
1550
|
+
}, Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1551
1551
|
__proto__: null,
|
|
1552
|
-
default:
|
|
1552
|
+
default: ce
|
|
1553
1553
|
}, Symbol.toStringTag, { value: "Module" })), H = (e, t) => {
|
|
1554
1554
|
const n = e.__vccOpts || e;
|
|
1555
1555
|
for (const [r, a] of t)
|
|
1556
1556
|
n[r] = a;
|
|
1557
1557
|
return n;
|
|
1558
1558
|
}, td = {
|
|
1559
|
-
mixins: [
|
|
1559
|
+
mixins: [ce],
|
|
1560
1560
|
emits: ["model-updated"],
|
|
1561
1561
|
data() {
|
|
1562
1562
|
return {
|
|
@@ -1589,18 +1589,18 @@ const ue = {
|
|
|
1589
1589
|
function id(e, t, n, r, a, i) {
|
|
1590
1590
|
const l = E("vue-form-generator");
|
|
1591
1591
|
return d(), h("div", nd, [
|
|
1592
|
-
|
|
1592
|
+
f("button", {
|
|
1593
1593
|
class: "advanced-field-title",
|
|
1594
1594
|
type: "button",
|
|
1595
1595
|
onClick: t[0] || (t[0] = (...s) => i.handleOpen && i.handleOpen(...s))
|
|
1596
1596
|
}, [
|
|
1597
|
-
|
|
1598
|
-
|
|
1597
|
+
f("i", rd, F(a.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
1598
|
+
f("span", null, F(i.titleText), 1)
|
|
1599
1599
|
]),
|
|
1600
|
-
|
|
1601
|
-
class:
|
|
1600
|
+
f("div", {
|
|
1601
|
+
class: J(["advanced-field-dropdown", i.openClass])
|
|
1602
1602
|
}, [
|
|
1603
|
-
|
|
1603
|
+
M(l, {
|
|
1604
1604
|
model: e.model,
|
|
1605
1605
|
options: { helpAsHtml: !0 },
|
|
1606
1606
|
schema: e.schema,
|
|
@@ -1609,7 +1609,7 @@ function id(e, t, n, r, a, i) {
|
|
|
1609
1609
|
], 2)
|
|
1610
1610
|
]);
|
|
1611
1611
|
}
|
|
1612
|
-
const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd"]]), xe = "24px",
|
|
1612
|
+
const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd"]]), xe = "24px", Qt = (e, t) => {
|
|
1613
1613
|
const n = e.__vccOpts || e;
|
|
1614
1614
|
for (const [r, a] of t)
|
|
1615
1615
|
n[r] = a;
|
|
@@ -1617,10 +1617,10 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1617
1617
|
}, sd = (e) => (_e("data-v-c1f7c39c"), e = e(), we(), e), od = ["aria-hidden"], ld = {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
"data-testid": "kui-icon-svg-title"
|
|
1620
|
-
}, dd = /* @__PURE__ */ sd(() => /* @__PURE__ */
|
|
1620
|
+
}, dd = /* @__PURE__ */ sd(() => /* @__PURE__ */ f("path", {
|
|
1621
1621
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
1622
1622
|
fill: "currentColor"
|
|
1623
|
-
}, null, -1)), ud = /* @__PURE__ */
|
|
1623
|
+
}, null, -1)), ud = /* @__PURE__ */ oe({
|
|
1624
1624
|
__name: "AddIcon",
|
|
1625
1625
|
props: {
|
|
1626
1626
|
/** The accessibility text provided to screen readers */
|
|
@@ -1690,11 +1690,11 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1690
1690
|
lineHeight: "0",
|
|
1691
1691
|
width: n.value
|
|
1692
1692
|
}));
|
|
1693
|
-
return (a, i) => (d(),
|
|
1693
|
+
return (a, i) => (d(), I(ee(e.as), {
|
|
1694
1694
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1695
1695
|
class: "kui-icon add-icon",
|
|
1696
1696
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
1697
|
-
style:
|
|
1697
|
+
style: Kt(r.value)
|
|
1698
1698
|
}, {
|
|
1699
1699
|
default: w(() => [
|
|
1700
1700
|
(d(), h("svg", {
|
|
@@ -1714,13 +1714,13 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1714
1714
|
_: 1
|
|
1715
1715
|
}, 8, ["aria-hidden", "style"]));
|
|
1716
1716
|
}
|
|
1717
|
-
}),
|
|
1717
|
+
}), kr = /* @__PURE__ */ Qt(ud, [["__scopeId", "data-v-c1f7c39c"]]), cd = (e) => (_e("data-v-885f8053"), e = e(), we(), e), fd = ["aria-hidden"], md = {
|
|
1718
1718
|
key: 0,
|
|
1719
1719
|
"data-testid": "kui-icon-svg-title"
|
|
1720
|
-
}, hd = /* @__PURE__ */ cd(() => /* @__PURE__ */
|
|
1720
|
+
}, hd = /* @__PURE__ */ cd(() => /* @__PURE__ */ f("path", {
|
|
1721
1721
|
d: "M5 13V11H19V13H5Z",
|
|
1722
1722
|
fill: "currentColor"
|
|
1723
|
-
}, null, -1)), pd = /* @__PURE__ */
|
|
1723
|
+
}, null, -1)), pd = /* @__PURE__ */ oe({
|
|
1724
1724
|
__name: "RemoveIcon",
|
|
1725
1725
|
props: {
|
|
1726
1726
|
/** The accessibility text provided to screen readers */
|
|
@@ -1790,11 +1790,11 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1790
1790
|
lineHeight: "0",
|
|
1791
1791
|
width: n.value
|
|
1792
1792
|
}));
|
|
1793
|
-
return (a, i) => (d(),
|
|
1793
|
+
return (a, i) => (d(), I(ee(e.as), {
|
|
1794
1794
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1795
1795
|
class: "kui-icon remove-icon",
|
|
1796
1796
|
"data-testid": "kui-icon-wrapper-remove-icon",
|
|
1797
|
-
style:
|
|
1797
|
+
style: Kt(r.value)
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: w(() => [
|
|
1800
1800
|
(d(), h("svg", {
|
|
@@ -1807,20 +1807,20 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1807
1807
|
width: "100%",
|
|
1808
1808
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1809
1809
|
}, [
|
|
1810
|
-
e.title ? (d(), h("title",
|
|
1810
|
+
e.title ? (d(), h("title", md, F(e.title), 1)) : O("", !0),
|
|
1811
1811
|
hd
|
|
1812
|
-
], 8,
|
|
1812
|
+
], 8, fd))
|
|
1813
1813
|
]),
|
|
1814
1814
|
_: 1
|
|
1815
1815
|
}, 8, ["aria-hidden", "style"]));
|
|
1816
1816
|
}
|
|
1817
|
-
}), gd = /* @__PURE__ */
|
|
1817
|
+
}), gd = /* @__PURE__ */ Qt(pd, [["__scopeId", "data-v-885f8053"]]), vd = (e) => (_e("data-v-c73ebbaa"), e = e(), we(), e), yd = ["aria-hidden"], bd = {
|
|
1818
1818
|
key: 0,
|
|
1819
1819
|
"data-testid": "kui-icon-svg-title"
|
|
1820
|
-
}, _d = /* @__PURE__ */ vd(() => /* @__PURE__ */
|
|
1820
|
+
}, _d = /* @__PURE__ */ vd(() => /* @__PURE__ */ f("path", {
|
|
1821
1821
|
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",
|
|
1822
1822
|
fill: "currentColor"
|
|
1823
|
-
}, null, -1)), wd = /* @__PURE__ */
|
|
1823
|
+
}, null, -1)), wd = /* @__PURE__ */ oe({
|
|
1824
1824
|
__name: "TrashIcon",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
/** The accessibility text provided to screen readers */
|
|
@@ -1890,11 +1890,11 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1890
1890
|
lineHeight: "0",
|
|
1891
1891
|
width: n.value
|
|
1892
1892
|
}));
|
|
1893
|
-
return (a, i) => (d(),
|
|
1893
|
+
return (a, i) => (d(), I(ee(e.as), {
|
|
1894
1894
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1895
1895
|
class: "kui-icon trash-icon",
|
|
1896
1896
|
"data-testid": "kui-icon-wrapper-trash-icon",
|
|
1897
|
-
style:
|
|
1897
|
+
style: Kt(r.value)
|
|
1898
1898
|
}, {
|
|
1899
1899
|
default: w(() => [
|
|
1900
1900
|
(d(), h("svg", {
|
|
@@ -1914,7 +1914,7 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1914
1914
|
_: 1
|
|
1915
1915
|
}, 8, ["aria-hidden", "style"]));
|
|
1916
1916
|
}
|
|
1917
|
-
}),
|
|
1917
|
+
}), lt = /* @__PURE__ */ Qt(wd, [["__scopeId", "data-v-c73ebbaa"]]), Md = { class: "array-card-container" }, Sd = /* @__PURE__ */ oe({
|
|
1918
1918
|
__name: "FieldArrayCardContainer",
|
|
1919
1919
|
props: {
|
|
1920
1920
|
model: {
|
|
@@ -1930,27 +1930,27 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1930
1930
|
setup(e) {
|
|
1931
1931
|
return (t, n) => {
|
|
1932
1932
|
const r = E("KCard"), a = E("KButton");
|
|
1933
|
-
return d(), h("div",
|
|
1934
|
-
|
|
1933
|
+
return d(), h("div", Md, [
|
|
1934
|
+
M(r, { class: "card" }, {
|
|
1935
1935
|
default: w(() => [
|
|
1936
|
-
|
|
1936
|
+
Ee(t.$slots, "default", {}, void 0, !0)
|
|
1937
1937
|
]),
|
|
1938
1938
|
_: 3
|
|
1939
1939
|
}),
|
|
1940
|
-
|
|
1940
|
+
M(a, {
|
|
1941
1941
|
appearance: "tertiary",
|
|
1942
1942
|
class: "array-card-remove-button",
|
|
1943
1943
|
onClick: n[0] || (n[0] = (i) => t.$emit("remove-item"))
|
|
1944
1944
|
}, {
|
|
1945
1945
|
default: w(() => [
|
|
1946
|
-
|
|
1946
|
+
M(L(lt))
|
|
1947
1947
|
]),
|
|
1948
1948
|
_: 1
|
|
1949
1949
|
})
|
|
1950
1950
|
]);
|
|
1951
1951
|
};
|
|
1952
1952
|
}
|
|
1953
|
-
}),
|
|
1953
|
+
}), Vr = /* @__PURE__ */ H(Sd, [["__scopeId", "data-v-7fbbde2b"]]), Td = { class: "array-item-wrapper" }, Id = { class: "array-item" }, Ad = { class: "array-item-after" }, Od = /* @__PURE__ */ oe({
|
|
1954
1954
|
__name: "FieldArrayItem",
|
|
1955
1955
|
props: {
|
|
1956
1956
|
model: {
|
|
@@ -1963,40 +1963,40 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
1963
1963
|
return (t, n) => {
|
|
1964
1964
|
const r = E("KButton");
|
|
1965
1965
|
return d(), h("div", Td, [
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1966
|
+
f("div", Id, [
|
|
1967
|
+
Ee(t.$slots, "default", {}, void 0, !0),
|
|
1968
|
+
M(r, {
|
|
1969
1969
|
appearance: "tertiary",
|
|
1970
1970
|
class: "delete",
|
|
1971
1971
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1972
1972
|
}, {
|
|
1973
1973
|
default: w(() => [
|
|
1974
|
-
|
|
1974
|
+
M(L(lt))
|
|
1975
1975
|
]),
|
|
1976
1976
|
_: 1
|
|
1977
1977
|
})
|
|
1978
1978
|
]),
|
|
1979
|
-
|
|
1980
|
-
|
|
1979
|
+
f("div", Ad, [
|
|
1980
|
+
Ee(t.$slots, "after", {}, void 0, !0)
|
|
1981
1981
|
])
|
|
1982
1982
|
]);
|
|
1983
1983
|
};
|
|
1984
1984
|
}
|
|
1985
|
-
}),
|
|
1985
|
+
}), Nr = /* @__PURE__ */ H(Od, [["__scopeId", "data-v-eb9975cc"]]), Ed = (e) => (_e("data-v-37458a0a"), e = e(), we(), e), Cd = { class: "multi-item-wrapper" }, $d = /* @__PURE__ */ Ed(() => /* @__PURE__ */ f("hr", null, null, -1)), Fd = /* @__PURE__ */ oe({
|
|
1986
1986
|
__name: "FieldArrayMultiItem",
|
|
1987
1987
|
emits: ["remove-item"],
|
|
1988
1988
|
setup(e) {
|
|
1989
1989
|
return (t, n) => {
|
|
1990
1990
|
const r = E("KButton");
|
|
1991
|
-
return d(), h("div",
|
|
1992
|
-
|
|
1993
|
-
|
|
1991
|
+
return d(), h("div", Cd, [
|
|
1992
|
+
Ee(t.$slots, "default", {}, void 0, !0),
|
|
1993
|
+
M(r, {
|
|
1994
1994
|
appearance: "danger",
|
|
1995
1995
|
class: "delete",
|
|
1996
1996
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1997
1997
|
}, {
|
|
1998
1998
|
default: w(() => [
|
|
1999
|
-
|
|
1999
|
+
ne(" - Remove Field ")
|
|
2000
2000
|
]),
|
|
2001
2001
|
_: 1
|
|
2002
2002
|
}),
|
|
@@ -2004,21 +2004,21 @@ const ad = /* @__PURE__ */ H(td, [["render", id], ["__scopeId", "data-v-6f4089bd
|
|
|
2004
2004
|
]);
|
|
2005
2005
|
};
|
|
2006
2006
|
}
|
|
2007
|
-
}), Lr = /* @__PURE__ */ H(Fd, [["__scopeId", "data-v-37458a0a"]]),
|
|
2008
|
-
function
|
|
2009
|
-
return e ? e.length === 36 && new RegExp(`^${
|
|
2007
|
+
}), Lr = /* @__PURE__ */ H(Fd, [["__scopeId", "data-v-37458a0a"]]), Ud = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
2008
|
+
function kd(e) {
|
|
2009
|
+
return e ? e.length === 36 && new RegExp(`^${Ud}$`).test(e) : !1;
|
|
2010
2010
|
}
|
|
2011
|
-
const
|
|
2011
|
+
const kt = 50, ke = {
|
|
2012
2012
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
2013
2013
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
2014
2014
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
2015
2015
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
2016
2016
|
};
|
|
2017
|
-
function
|
|
2018
|
-
return n ?
|
|
2017
|
+
function Vd(e, t, n) {
|
|
2018
|
+
return n ? ke.SET_REFERRAL_VALUE : e && !t || !e && t ? ke.UPDATE_ENTITY : e && t ? ke.CREATE_FROM_ENTITY : ke.CREATE_NOT_FROM_ENTITY;
|
|
2019
2019
|
}
|
|
2020
|
-
const
|
|
2021
|
-
mixins: [
|
|
2020
|
+
const Nd = {
|
|
2021
|
+
mixins: [ce],
|
|
2022
2022
|
inject: [$e],
|
|
2023
2023
|
emits: ["model-updated"],
|
|
2024
2024
|
data() {
|
|
@@ -2033,7 +2033,7 @@ const Vd = {
|
|
|
2033
2033
|
},
|
|
2034
2034
|
computed: {
|
|
2035
2035
|
fieldState() {
|
|
2036
|
-
return
|
|
2036
|
+
return Vd(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
2037
2037
|
},
|
|
2038
2038
|
associatedEntity() {
|
|
2039
2039
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -2049,17 +2049,17 @@ const Vd = {
|
|
|
2049
2049
|
await this.$nextTick();
|
|
2050
2050
|
let e, t;
|
|
2051
2051
|
switch (this.fieldState) {
|
|
2052
|
-
case
|
|
2052
|
+
case ke.UPDATE_ENTITY:
|
|
2053
2053
|
if (!this[$e]) {
|
|
2054
2054
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
2055
2055
|
break;
|
|
2056
2056
|
}
|
|
2057
2057
|
t = (await this[$e].getOne(this.entity, this.model[this.schema.model])).data, e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
2058
2058
|
break;
|
|
2059
|
-
case
|
|
2059
|
+
case ke.CREATE_FROM_ENTITY:
|
|
2060
2060
|
this.idValue = this.associatedEntity.id;
|
|
2061
2061
|
break;
|
|
2062
|
-
case
|
|
2062
|
+
case ke.SET_REFERRAL_VALUE:
|
|
2063
2063
|
this.idValue = this.value;
|
|
2064
2064
|
}
|
|
2065
2065
|
try {
|
|
@@ -2080,7 +2080,7 @@ const Vd = {
|
|
|
2080
2080
|
return;
|
|
2081
2081
|
this.loading = !0;
|
|
2082
2082
|
const t = [], n = [], r = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
2083
|
-
|
|
2083
|
+
kd(e) && r.includes("id") ? n.push((async () => {
|
|
2084
2084
|
const i = await this.fetchExact(e);
|
|
2085
2085
|
t.push({ ...i, label: this.getSuggestionLabel(i), value: i.id });
|
|
2086
2086
|
})()) : n.push(...r.filter((i) => i !== "id").map(async (i) => {
|
|
@@ -2097,15 +2097,15 @@ const Vd = {
|
|
|
2097
2097
|
let n = null;
|
|
2098
2098
|
if (!this[$e])
|
|
2099
2099
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2100
|
-
for (; t.length <
|
|
2100
|
+
for (; t.length < kt; ) {
|
|
2101
2101
|
const r = await this[$e].getAll(this.entity, {
|
|
2102
|
-
size:
|
|
2102
|
+
size: kt,
|
|
2103
2103
|
offset: n,
|
|
2104
2104
|
...e
|
|
2105
2105
|
});
|
|
2106
2106
|
if (t.push(...r.data.data), n = r.data.offset, !n) break;
|
|
2107
2107
|
}
|
|
2108
|
-
return t.slice(0,
|
|
2108
|
+
return t.slice(0, kt);
|
|
2109
2109
|
},
|
|
2110
2110
|
async fetchSuggestions(e, t) {
|
|
2111
2111
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -2137,7 +2137,7 @@ const Vd = {
|
|
|
2137
2137
|
function Rd(e, t, n, r, a, i) {
|
|
2138
2138
|
const l = E("KSelect");
|
|
2139
2139
|
return d(), h("div", Ld, [
|
|
2140
|
-
|
|
2140
|
+
M(l, {
|
|
2141
2141
|
id: e.schema.model,
|
|
2142
2142
|
ref: "suggestion",
|
|
2143
2143
|
modelValue: a.idValue,
|
|
@@ -2153,116 +2153,116 @@ function Rd(e, t, n, r, a, i) {
|
|
|
2153
2153
|
onQueryChange: i.onQueryChange
|
|
2154
2154
|
}, {
|
|
2155
2155
|
"item-template": w(({ item: s }) => [
|
|
2156
|
-
|
|
2156
|
+
f("span", {
|
|
2157
2157
|
class: "first-part",
|
|
2158
2158
|
"data-testid": s.id && `${s.id}-0`,
|
|
2159
2159
|
"data-testlabel": s.label
|
|
2160
2160
|
}, F(i.getSuggestionLabel(s).split(" - ")[0]), 9, Pd),
|
|
2161
|
-
(d(!0), h(
|
|
2161
|
+
(d(!0), h(D, null, Z(i.getSuggestionLabel(s).split(" - ").slice(1), (o, u) => (d(), h("span", {
|
|
2162
2162
|
key: u,
|
|
2163
2163
|
class: "field-span",
|
|
2164
2164
|
"data-testid": s.id && `${s.id}-${u + 1}` || u + 1
|
|
2165
2165
|
}, F(o), 9, qd))), 128))
|
|
2166
2166
|
]),
|
|
2167
2167
|
empty: w(() => [
|
|
2168
|
-
|
|
2169
|
-
|
|
2168
|
+
f("div", jd, [
|
|
2169
|
+
f("span", null, F(a.message), 1)
|
|
2170
2170
|
])
|
|
2171
2171
|
]),
|
|
2172
2172
|
_: 1
|
|
2173
2173
|
}, 8, ["id", "modelValue", "items", "loading", "placeholder", "onChange", "onQueryChange"])
|
|
2174
2174
|
]);
|
|
2175
2175
|
}
|
|
2176
|
-
const Pr = /* @__PURE__ */ H(
|
|
2177
|
-
function
|
|
2176
|
+
const Pr = /* @__PURE__ */ H(Nd, [["render", Rd], ["__scopeId", "data-v-dd2fda9e"]]);
|
|
2177
|
+
function Kd(e) {
|
|
2178
2178
|
const t = ve([]), n = ve(null), r = (y) => Le(y) ? qe[y] != null ? qe[y] : (console.warn(`'${y}' is not a validator function!`), null) : y, a = j({
|
|
2179
2179
|
get() {
|
|
2180
|
-
var
|
|
2180
|
+
var A, T;
|
|
2181
2181
|
let y;
|
|
2182
|
-
return Y(B(e.schema, "get")) ? y = e.schema.get((
|
|
2182
|
+
return Y(B(e.schema, "get")) ? y = e.schema.get((A = e.model) == null ? void 0 : A.value) : y = B((T = e.model) == null ? void 0 : T.value, e.schema.model), U(y);
|
|
2183
2183
|
},
|
|
2184
2184
|
set(y) {
|
|
2185
|
-
const
|
|
2186
|
-
y = V(y), Y(y) ? y(y,
|
|
2185
|
+
const A = a;
|
|
2186
|
+
y = V(y), Y(y) ? y(y, A) : s(y, A);
|
|
2187
2187
|
}
|
|
2188
2188
|
}), i = (y) => {
|
|
2189
2189
|
var k;
|
|
2190
2190
|
o();
|
|
2191
|
-
const
|
|
2192
|
-
let
|
|
2193
|
-
if (
|
|
2191
|
+
const A = (k = e.schema) == null ? void 0 : k.validator, T = B(e.formOptions, "validateAsync", !1);
|
|
2192
|
+
let P = [];
|
|
2193
|
+
if (A && e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2194
2194
|
const q = [];
|
|
2195
|
-
Array.isArray(
|
|
2195
|
+
Array.isArray(A) ? ae(A, (g) => {
|
|
2196
2196
|
q.push(r(g));
|
|
2197
|
-
}) : q.push(r(
|
|
2198
|
-
var _,
|
|
2197
|
+
}) : q.push(r(A)), ae(q, (g) => {
|
|
2198
|
+
var _, N;
|
|
2199
2199
|
if (T)
|
|
2200
|
-
|
|
2200
|
+
P.push(g(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
|
|
2201
2201
|
else {
|
|
2202
|
-
const R = g(a.value, e.schema, (
|
|
2202
|
+
const R = g(a.value, e.schema, (N = e.model) == null ? void 0 : N.value);
|
|
2203
2203
|
R && Y(R.then) ? R.then((v) => {
|
|
2204
2204
|
v && (t.value = t.value.concat(v));
|
|
2205
2205
|
const b = t.value.length === 0;
|
|
2206
2206
|
e.emitValidated && e.emitValidated({ isValid: b, errors: t.value, field: e.schema });
|
|
2207
|
-
}) : R && (
|
|
2207
|
+
}) : R && (P = P.concat(R));
|
|
2208
2208
|
}
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
|
-
const
|
|
2212
|
-
var _,
|
|
2211
|
+
const S = (q) => {
|
|
2212
|
+
var _, N;
|
|
2213
2213
|
let g = [];
|
|
2214
|
-
if (ae(
|
|
2214
|
+
if (ae(Sr(q), (R) => {
|
|
2215
2215
|
Array.isArray(R) && R.length > 0 ? g = g.concat(R) : Le(R) && g.push(R);
|
|
2216
|
-
}), Y((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((
|
|
2216
|
+
}), Y((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((N = e.model) == null ? void 0 : N.value, g, e.schema), !y) {
|
|
2217
2217
|
const R = g.length === 0;
|
|
2218
2218
|
e.emitValidated && e.emitValidated({ isValid: R, errors: g, field: e.schema });
|
|
2219
2219
|
}
|
|
2220
2220
|
return q = g, g;
|
|
2221
2221
|
};
|
|
2222
|
-
return T ? Promise.all(
|
|
2222
|
+
return T ? Promise.all(P).then(S) : S(P);
|
|
2223
2223
|
}, l = () => {
|
|
2224
2224
|
Y(n.value) ? n.value() : n.value = rt(
|
|
2225
2225
|
i,
|
|
2226
2226
|
B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 500))
|
|
2227
2227
|
);
|
|
2228
|
-
}, s = (y,
|
|
2229
|
-
var
|
|
2228
|
+
}, s = (y, A) => {
|
|
2229
|
+
var P, S, k;
|
|
2230
2230
|
let T = !1;
|
|
2231
|
-
Y(e.schema.set) ? (e.schema.set((
|
|
2231
|
+
Y(e.schema.set) ? (e.schema.set((P = e.model) == null ? void 0 : P.value, y), T = !0) : e.schema.model && (u(e.schema.model, y), T = !0), T && (e.emitModelUpdated && ((S = e.model) != null && S.value) && e.emitModelUpdated({ value: y, model: e.schema.model }), Y(e.schema.onChanged) && e.schema.onChanged((k = e.model) == null ? void 0 : k.value, y, A, e.schema), B(e.formOptions, "validateAfterChanged", !1) === !0 && (B(e.schema, "validateDebounceTime", B(e.formOptions, "validateDebounceTime", 0)) > 0 ? l() : i()));
|
|
2232
2232
|
}, o = () => {
|
|
2233
2233
|
t.value.splice(0);
|
|
2234
|
-
}, u = (y,
|
|
2234
|
+
}, u = (y, A) => {
|
|
2235
2235
|
var g;
|
|
2236
2236
|
let T = y.replace(/\[(\w+)\]/g, ".$1");
|
|
2237
2237
|
T = T.replace(/^\./, "");
|
|
2238
|
-
let
|
|
2238
|
+
let P = ((g = e.model) == null ? void 0 : g.value) || {}, S = 0;
|
|
2239
2239
|
const k = T.split("."), q = k.length;
|
|
2240
|
-
for (;
|
|
2241
|
-
const _ = k[
|
|
2242
|
-
if (
|
|
2243
|
-
|
|
2240
|
+
for (; S < q; ) {
|
|
2241
|
+
const _ = k[S];
|
|
2242
|
+
if (S < q - 1)
|
|
2243
|
+
P[_] !== void 0 || (P[_] = {}), P = P[_];
|
|
2244
2244
|
else {
|
|
2245
|
-
|
|
2245
|
+
P[_] = A;
|
|
2246
2246
|
return;
|
|
2247
2247
|
}
|
|
2248
|
-
++
|
|
2248
|
+
++S;
|
|
2249
2249
|
}
|
|
2250
|
-
}, c = (y,
|
|
2250
|
+
}, c = (y, A = !1) => {
|
|
2251
2251
|
const T = B(e.formOptions, "fieldIdPrefix", "");
|
|
2252
|
-
return
|
|
2253
|
-
},
|
|
2252
|
+
return Jt(y, T) + (A ? "-" + Tr() : "");
|
|
2253
|
+
}, m = (y) => `${c(y)}-label`, p = () => B(e.schema, "fieldClasses", []), U = (y) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(y) : y, V = (y) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(y) : y;
|
|
2254
2254
|
return {
|
|
2255
2255
|
value: a,
|
|
2256
2256
|
clearValidationErrors: o,
|
|
2257
2257
|
getFieldID: c,
|
|
2258
|
-
getLabelId:
|
|
2258
|
+
getLabelId: m,
|
|
2259
2259
|
getFieldClasses: p,
|
|
2260
2260
|
updateModelValue: s
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
|
-
const
|
|
2264
|
-
useAbstractFields:
|
|
2265
|
-
},
|
|
2263
|
+
const dt = {
|
|
2264
|
+
useAbstractFields: Kd
|
|
2265
|
+
}, Dd = { class: "form-field-wrapper" }, Bd = /* @__PURE__ */ oe({
|
|
2266
2266
|
__name: "FieldInput",
|
|
2267
2267
|
props: {
|
|
2268
2268
|
disabled: {
|
|
@@ -2302,54 +2302,54 @@ const At = {
|
|
|
2302
2302
|
},
|
|
2303
2303
|
emits: ["modelUpdated"],
|
|
2304
2304
|
setup(e, { expose: t, emit: n }) {
|
|
2305
|
-
const r = e, a = n, i =
|
|
2305
|
+
const r = e, a = n, i = at(r), l = Xr(he, void 0), { updateModelValue: s, getFieldID: o, clearValidationErrors: u, value: c } = dt.useAbstractFields({
|
|
2306
2306
|
model: i.model,
|
|
2307
2307
|
schema: r.schema,
|
|
2308
2308
|
formOptions: r.formOptions,
|
|
2309
|
-
emitModelUpdated: (
|
|
2310
|
-
a("modelUpdated",
|
|
2309
|
+
emitModelUpdated: (S) => {
|
|
2310
|
+
a("modelUpdated", S.value, S.model);
|
|
2311
2311
|
}
|
|
2312
2312
|
});
|
|
2313
2313
|
t({
|
|
2314
2314
|
clearValidationErrors: u
|
|
2315
2315
|
});
|
|
2316
|
-
const
|
|
2316
|
+
const m = j(() => {
|
|
2317
2317
|
var k;
|
|
2318
|
-
const
|
|
2319
|
-
return
|
|
2318
|
+
const S = (k = r.schema) == null ? void 0 : k.inputType.toLowerCase();
|
|
2319
|
+
return S === "string" ? "text" : S === "datetime" ? "datetime-local" : S || "text";
|
|
2320
2320
|
}), p = {
|
|
2321
2321
|
date: "YYYY-MM-DD",
|
|
2322
2322
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2323
2323
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
2324
|
-
},
|
|
2325
|
-
var
|
|
2326
|
-
let q =
|
|
2327
|
-
const g = p[
|
|
2328
|
-
_ && ((
|
|
2329
|
-
}, V = (
|
|
2330
|
-
Rt(
|
|
2331
|
-
}, y = (
|
|
2332
|
-
let k =
|
|
2333
|
-
switch (
|
|
2324
|
+
}, U = (S, k) => {
|
|
2325
|
+
var N, R;
|
|
2326
|
+
let q = S;
|
|
2327
|
+
const g = p[m.value] || "", _ = Be.parse(S, g);
|
|
2328
|
+
_ && ((N = r.schema) != null && N.format ? q = Be.format(_, (R = r.schema) == null ? void 0 : R.format) : q = _.valueOf()), s(q, k);
|
|
2329
|
+
}, V = (S, k) => {
|
|
2330
|
+
Rt(S) || (S = NaN), s(S, k);
|
|
2331
|
+
}, y = (S) => {
|
|
2332
|
+
let k = S;
|
|
2333
|
+
switch (m.value) {
|
|
2334
2334
|
case "number":
|
|
2335
2335
|
case "range":
|
|
2336
|
-
Rt(parseFloat(
|
|
2336
|
+
Rt(parseFloat(S)) && (k = parseFloat(S));
|
|
2337
2337
|
break;
|
|
2338
2338
|
}
|
|
2339
|
-
c.value = k, s(k,
|
|
2340
|
-
},
|
|
2341
|
-
c.value =
|
|
2342
|
-
}, T = ve(null),
|
|
2343
|
-
var
|
|
2344
|
-
Y(T.value) && ((
|
|
2339
|
+
c.value = k, s(k, S);
|
|
2340
|
+
}, A = (S) => {
|
|
2341
|
+
c.value = S, s(S, S);
|
|
2342
|
+
}, T = ve(null), P = () => {
|
|
2343
|
+
var S;
|
|
2344
|
+
Y(T.value) && ((S = T.value) == null || S.flush());
|
|
2345
2345
|
};
|
|
2346
|
-
return
|
|
2347
|
-
switch (
|
|
2346
|
+
return xn(() => {
|
|
2347
|
+
switch (m.value) {
|
|
2348
2348
|
case "number":
|
|
2349
2349
|
case "range":
|
|
2350
2350
|
T.value = rt(
|
|
2351
|
-
(
|
|
2352
|
-
V(
|
|
2351
|
+
(S, k) => {
|
|
2352
|
+
V(S, k);
|
|
2353
2353
|
},
|
|
2354
2354
|
parseInt(B(r.schema, "debounceFormatTimeout", 1e3)),
|
|
2355
2355
|
{
|
|
@@ -2362,8 +2362,8 @@ const At = {
|
|
|
2362
2362
|
case "datetime":
|
|
2363
2363
|
case "datetime-local":
|
|
2364
2364
|
T.value = rt(
|
|
2365
|
-
(
|
|
2366
|
-
|
|
2365
|
+
(S, k) => {
|
|
2366
|
+
U(S, k);
|
|
2367
2367
|
},
|
|
2368
2368
|
parseInt(B(r.schema, "debounceFormatTimeout", 1e3)),
|
|
2369
2369
|
{
|
|
@@ -2374,43 +2374,43 @@ const At = {
|
|
|
2374
2374
|
break;
|
|
2375
2375
|
}
|
|
2376
2376
|
}), Qr(() => {
|
|
2377
|
-
|
|
2378
|
-
}), (
|
|
2377
|
+
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.");
|
|
2378
|
+
}), (S, k) => {
|
|
2379
2379
|
const q = E("KInput");
|
|
2380
|
-
return d(), h("div",
|
|
2381
|
-
|
|
2382
|
-
id:
|
|
2380
|
+
return d(), h("div", Dd, [
|
|
2381
|
+
M(q, Ue(S.$attrs, {
|
|
2382
|
+
id: L(o)(e.schema),
|
|
2383
2383
|
autocomplete: e.schema.autocomplete,
|
|
2384
2384
|
class: e.schema.fieldClasses,
|
|
2385
2385
|
disabled: e.disabled || void 0,
|
|
2386
|
-
help: e.hint ? e.hint :
|
|
2386
|
+
help: e.hint ? e.hint : m.value === "color" || m.value === "range" ? L(c) : void 0,
|
|
2387
2387
|
max: e.schema.max,
|
|
2388
2388
|
maxlength: e.schema.maxlength,
|
|
2389
2389
|
min: e.schema.min,
|
|
2390
2390
|
minlength: e.schema.minlength,
|
|
2391
|
-
"model-value":
|
|
2391
|
+
"model-value": L(c),
|
|
2392
2392
|
name: e.schema.inputName,
|
|
2393
2393
|
pattern: e.schema.pattern,
|
|
2394
2394
|
placeholder: e.schema.placeholder,
|
|
2395
2395
|
readonly: e.schema.readonly,
|
|
2396
2396
|
required: e.schema.required,
|
|
2397
|
-
type:
|
|
2397
|
+
type: m.value,
|
|
2398
2398
|
width: e.schema.width,
|
|
2399
|
-
onBlur:
|
|
2399
|
+
onBlur: P,
|
|
2400
2400
|
"onUpdate:modelValue": y
|
|
2401
2401
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "type", "width"]),
|
|
2402
|
-
(d(),
|
|
2402
|
+
(d(), I(ee(L(l)), {
|
|
2403
2403
|
schema: e.schema,
|
|
2404
|
-
update:
|
|
2405
|
-
value:
|
|
2404
|
+
update: A,
|
|
2405
|
+
value: L(c)
|
|
2406
2406
|
}, null, 8, ["schema", "value"]))
|
|
2407
2407
|
]);
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
2410
2410
|
}), qr = /* @__PURE__ */ H(Bd, [["__scopeId", "data-v-324e0f47"]]), zd = {
|
|
2411
2411
|
name: "FieldMetric",
|
|
2412
|
-
components: { AddIcon:
|
|
2413
|
-
mixins: [
|
|
2412
|
+
components: { AddIcon: kr, TrashIcon: lt },
|
|
2413
|
+
mixins: [ce],
|
|
2414
2414
|
emits: ["remove-item"],
|
|
2415
2415
|
data() {
|
|
2416
2416
|
return {
|
|
@@ -2424,26 +2424,26 @@ const At = {
|
|
|
2424
2424
|
function xd(e, t, n, r, a, i) {
|
|
2425
2425
|
const l = E("AddIcon"), s = E("TrashIcon"), o = E("KButton");
|
|
2426
2426
|
return d(), h("div", {
|
|
2427
|
-
class:
|
|
2427
|
+
class: J(["field-dropdown", { active: a.contentVisible }])
|
|
2428
2428
|
}, [
|
|
2429
|
-
|
|
2429
|
+
f("div", {
|
|
2430
2430
|
class: "title",
|
|
2431
2431
|
onClick: t[0] || (t[0] = (u) => a.contentVisible = !a.contentVisible)
|
|
2432
2432
|
}, [
|
|
2433
|
-
|
|
2434
|
-
|
|
2433
|
+
ne(F(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
2434
|
+
M(l, { class: "metric-add-icon" })
|
|
2435
2435
|
]),
|
|
2436
|
-
|
|
2436
|
+
M(ei, { name: "slide-fade" }, {
|
|
2437
2437
|
default: w(() => [
|
|
2438
2438
|
a.contentVisible ? (d(), h("div", Hd, [
|
|
2439
|
-
|
|
2440
|
-
|
|
2439
|
+
Ee(e.$slots, "default"),
|
|
2440
|
+
M(o, {
|
|
2441
2441
|
appearance: "tertiary",
|
|
2442
2442
|
class: "metric-remove-button",
|
|
2443
2443
|
onClick: t[1] || (t[1] = (u) => e.$emit("remove-item"))
|
|
2444
2444
|
}, {
|
|
2445
2445
|
default: w(() => [
|
|
2446
|
-
|
|
2446
|
+
M(s)
|
|
2447
2447
|
]),
|
|
2448
2448
|
_: 1
|
|
2449
2449
|
})
|
|
@@ -2454,7 +2454,7 @@ function xd(e, t, n, r, a, i) {
|
|
|
2454
2454
|
], 2);
|
|
2455
2455
|
}
|
|
2456
2456
|
const jr = /* @__PURE__ */ H(zd, [["render", xd]]), Yd = {
|
|
2457
|
-
mixins: [
|
|
2457
|
+
mixins: [ce],
|
|
2458
2458
|
data() {
|
|
2459
2459
|
return {
|
|
2460
2460
|
attributes: this.schema ? this.schema.attributes : void 0,
|
|
@@ -2486,36 +2486,36 @@ const jr = /* @__PURE__ */ H(zd, [["render", xd]]), Yd = {
|
|
|
2486
2486
|
this.value[this.newKeyName] = void 0, this.value = { ...this.value }, this.keyTypes[this.newKeyName] = this.newKeyType, this.keyTypes = { ...this.keyTypes }, this.newKeyName = "";
|
|
2487
2487
|
}
|
|
2488
2488
|
}
|
|
2489
|
-
},
|
|
2489
|
+
}, en = (e) => (_e("data-v-dfa59f5c"), e = e(), we(), e), Gd = { class: "field-object-container" }, Wd = { key: 1 }, Zd = ["id"], Jd = { key: 0 }, Xd = ["onUpdate:modelValue"], Qd = { key: 1 }, eu = ["onUpdate:modelValue"], tu = { key: 2 }, nu = ["onUpdate:modelValue"], ru = ["onClick"], iu = /* @__PURE__ */ en(() => /* @__PURE__ */ f("option", { value: "string" }, " String ", -1)), au = /* @__PURE__ */ en(() => /* @__PURE__ */ f("option", { value: "number" }, " Number ", -1)), su = /* @__PURE__ */ en(() => /* @__PURE__ */ f("option", { value: "boolean" }, " Boolean ", -1)), ou = [
|
|
2490
2490
|
iu,
|
|
2491
2491
|
au,
|
|
2492
2492
|
su
|
|
2493
2493
|
];
|
|
2494
2494
|
function lu(e, t, n, r, a, i) {
|
|
2495
|
-
const l = E("vue-form-generator"), s =
|
|
2495
|
+
const l = E("vue-form-generator"), s = gt("attributes");
|
|
2496
2496
|
return re((d(), h("div", Gd, [
|
|
2497
|
-
e.schema.schema ? (d(),
|
|
2497
|
+
e.schema.schema ? (d(), I(l, {
|
|
2498
2498
|
key: 0,
|
|
2499
2499
|
model: e.value,
|
|
2500
2500
|
options: e.formOptions,
|
|
2501
2501
|
schema: e.schema.schema
|
|
2502
2502
|
}, null, 8, ["model", "options", "schema"])) : (d(), h("div", Wd, [
|
|
2503
|
-
|
|
2503
|
+
f("table", {
|
|
2504
2504
|
id: e.getFieldID(e.schema),
|
|
2505
|
-
class:
|
|
2505
|
+
class: J(e.schema.fieldClasses)
|
|
2506
2506
|
}, [
|
|
2507
|
-
(d(!0), h(
|
|
2508
|
-
|
|
2507
|
+
(d(!0), h(D, null, Z(e.value, (o, u) => (d(), h("tr", { key: u }, [
|
|
2508
|
+
f("td", null, F(u), 1),
|
|
2509
2509
|
a.keyTypes[u] === "string" ? (d(), h("td", Jd, [
|
|
2510
|
-
re(
|
|
2510
|
+
re(f("input", {
|
|
2511
2511
|
"onUpdate:modelValue": (c) => e.value[u] = c,
|
|
2512
2512
|
type: "text"
|
|
2513
2513
|
}, null, 8, Xd), [
|
|
2514
|
-
[
|
|
2514
|
+
[Ve, e.value[u]]
|
|
2515
2515
|
])
|
|
2516
2516
|
])) : O("", !0),
|
|
2517
2517
|
a.keyTypes[u] === "boolean" ? (d(), h("td", Qd, [
|
|
2518
|
-
re(
|
|
2518
|
+
re(f("input", {
|
|
2519
2519
|
"onUpdate:modelValue": (c) => e.value[u] = c,
|
|
2520
2520
|
type: "checkbox"
|
|
2521
2521
|
}, null, 8, eu), [
|
|
@@ -2523,15 +2523,15 @@ function lu(e, t, n, r, a, i) {
|
|
|
2523
2523
|
])
|
|
2524
2524
|
])) : O("", !0),
|
|
2525
2525
|
a.keyTypes[u] === "number" ? (d(), h("td", tu, [
|
|
2526
|
-
re(
|
|
2526
|
+
re(f("input", {
|
|
2527
2527
|
"onUpdate:modelValue": (c) => e.value[u] = c,
|
|
2528
2528
|
type: "number"
|
|
2529
2529
|
}, null, 8, nu), [
|
|
2530
|
-
[
|
|
2530
|
+
[Ve, e.value[u]]
|
|
2531
2531
|
])
|
|
2532
2532
|
])) : O("", !0),
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
f("td", null, [
|
|
2534
|
+
f("input", {
|
|
2535
2535
|
type: "button",
|
|
2536
2536
|
value: "x",
|
|
2537
2537
|
onClick: (c) => i.removeElement(u)
|
|
@@ -2539,18 +2539,18 @@ function lu(e, t, n, r, a, i) {
|
|
|
2539
2539
|
])
|
|
2540
2540
|
]))), 128))
|
|
2541
2541
|
], 10, Zd),
|
|
2542
|
-
re(
|
|
2542
|
+
re(f("select", {
|
|
2543
2543
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => a.newKeyType = o)
|
|
2544
2544
|
}, ou, 512), [
|
|
2545
|
-
[
|
|
2545
|
+
[Yn, a.newKeyType]
|
|
2546
2546
|
]),
|
|
2547
|
-
re(
|
|
2547
|
+
re(f("input", {
|
|
2548
2548
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => a.newKeyName = o),
|
|
2549
2549
|
type: "text"
|
|
2550
2550
|
}, null, 512), [
|
|
2551
|
-
[
|
|
2551
|
+
[Ve, a.newKeyName]
|
|
2552
2552
|
]),
|
|
2553
|
-
|
|
2553
|
+
f("input", {
|
|
2554
2554
|
type: "button",
|
|
2555
2555
|
value: "Add key",
|
|
2556
2556
|
onClick: t[2] || (t[2] = (...o) => i.addKey && i.addKey(...o))
|
|
@@ -2562,9 +2562,9 @@ function lu(e, t, n, r, a, i) {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
const Rr = /* @__PURE__ */ H(Yd, [["render", lu], ["__scopeId", "data-v-dfa59f5c"]]), du = {
|
|
2564
2564
|
components: {
|
|
2565
|
-
TrashIcon:
|
|
2565
|
+
TrashIcon: lt
|
|
2566
2566
|
},
|
|
2567
|
-
mixins: [
|
|
2567
|
+
mixins: [ce],
|
|
2568
2568
|
inject: {
|
|
2569
2569
|
autofillSlot: {
|
|
2570
2570
|
from: he,
|
|
@@ -2652,37 +2652,37 @@ const Rr = /* @__PURE__ */ H(Yd, [["render", lu], ["__scopeId", "data-v-dfa59f5c
|
|
|
2652
2652
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
|
-
},
|
|
2655
|
+
}, Kr = (e) => (_e("data-v-3a00058c"), e = e(), we(), e), uu = ["id"], cu = ["data-testid"], fu = { class: "item-wrapper" }, mu = { class: "index-wrapper" }, hu = /* @__PURE__ */ Kr(() => /* @__PURE__ */ f("hr", { class: "divider" }, null, -1)), pu = { key: 0 }, gu = { key: 1 }, vu = ["onUpdate:modelValue", "placeholder", "onInput"], yu = {
|
|
2656
2656
|
key: 0,
|
|
2657
2657
|
class: "hint"
|
|
2658
|
-
}, bu = /* @__PURE__ */
|
|
2658
|
+
}, bu = /* @__PURE__ */ Kr(() => /* @__PURE__ */ f("hr", { class: "wide-divider" }, null, -1)), _u = { class: "input-item" }, wu = ["placeholder"], Mu = {
|
|
2659
2659
|
key: 0,
|
|
2660
2660
|
class: "hint"
|
|
2661
2661
|
};
|
|
2662
|
-
function
|
|
2662
|
+
function Su(e, t, n, r, a, i) {
|
|
2663
2663
|
const l = E("TrashIcon"), s = E("KButton"), o = E("vue-form-generator");
|
|
2664
2664
|
return d(), h("div", {
|
|
2665
2665
|
id: e.getFieldID(e.schema),
|
|
2666
|
-
class:
|
|
2666
|
+
class: J(["object-advanced-wrapper", e.schema.fieldClasses])
|
|
2667
2667
|
}, [
|
|
2668
|
-
(d(!0), h(
|
|
2668
|
+
(d(!0), h(D, null, Z(e.value, (u, c) => (d(), h("div", {
|
|
2669
2669
|
key: c,
|
|
2670
2670
|
"data-testid": `field-object-key-${c}`
|
|
2671
2671
|
}, [
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2672
|
+
f("div", null, [
|
|
2673
|
+
f("div", fu, [
|
|
2674
|
+
f("div", mu, [
|
|
2675
|
+
f("strong", null, F(c), 1),
|
|
2676
|
+
f("div", null, [
|
|
2677
|
+
M(s, {
|
|
2678
2678
|
appearance: "tertiary",
|
|
2679
2679
|
class: "delete",
|
|
2680
2680
|
icon: "",
|
|
2681
2681
|
type: "button",
|
|
2682
|
-
onClick: (
|
|
2682
|
+
onClick: (m) => i.removeElement(c)
|
|
2683
2683
|
}, {
|
|
2684
2684
|
default: w(() => [
|
|
2685
|
-
|
|
2685
|
+
M(l)
|
|
2686
2686
|
]),
|
|
2687
2687
|
_: 2
|
|
2688
2688
|
}, 1032, ["onClick"])
|
|
@@ -2690,26 +2690,26 @@ function Mu(e, t, n, r, a, i) {
|
|
|
2690
2690
|
]),
|
|
2691
2691
|
hu,
|
|
2692
2692
|
i.subSchema ? (d(), h("div", pu, [
|
|
2693
|
-
|
|
2693
|
+
M(o, {
|
|
2694
2694
|
model: i.transformedModel[c],
|
|
2695
2695
|
options: { helpAsHtml: !0 },
|
|
2696
2696
|
schema: i.subSchema,
|
|
2697
2697
|
onModelUpdated: i.updateModel
|
|
2698
2698
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
2699
2699
|
])) : (d(), h("div", gu, [
|
|
2700
|
-
re(
|
|
2701
|
-
"onUpdate:modelValue": (
|
|
2700
|
+
re(f("input", {
|
|
2701
|
+
"onUpdate:modelValue": (m) => e.value[c] = m,
|
|
2702
2702
|
class: "form-control",
|
|
2703
2703
|
placeholder: e.schema.fields && e.schema.fields[0].schema.placeholder,
|
|
2704
2704
|
type: "text",
|
|
2705
|
-
onInput: (
|
|
2705
|
+
onInput: (m) => i.updateModel(e.value[c], e.model[e.schema.model])
|
|
2706
2706
|
}, null, 40, vu), [
|
|
2707
|
-
[
|
|
2707
|
+
[Ve, e.value[c]]
|
|
2708
2708
|
]),
|
|
2709
2709
|
e.schema.fields && e.schema.fields[0].schema.hint ? (d(), h("p", yu, F(e.schema.fields[0].schema.hint), 1)) : O("", !0),
|
|
2710
|
-
(d(),
|
|
2710
|
+
(d(), I(ee(i.autofillSlot), {
|
|
2711
2711
|
schema: e.schema.fields && e.schema.fields[0].schema || e.schema.values,
|
|
2712
|
-
update: (
|
|
2712
|
+
update: (m) => e.value[c] = m,
|
|
2713
2713
|
value: e.value[c]
|
|
2714
2714
|
}, null, 8, ["schema", "update", "value"]))
|
|
2715
2715
|
])),
|
|
@@ -2717,106 +2717,136 @@ function Mu(e, t, n, r, a, i) {
|
|
|
2717
2717
|
])
|
|
2718
2718
|
])
|
|
2719
2719
|
], 8, cu))), 128)),
|
|
2720
|
-
|
|
2721
|
-
class:
|
|
2720
|
+
f("div", {
|
|
2721
|
+
class: J(["input-wrapper", { indent: i.hasObjectKeys }])
|
|
2722
2722
|
}, [
|
|
2723
|
-
|
|
2724
|
-
re(
|
|
2723
|
+
f("div", _u, [
|
|
2724
|
+
re(f("input", {
|
|
2725
2725
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => a.newKeyName = u),
|
|
2726
2726
|
class: "form-control",
|
|
2727
2727
|
"data-testid": "keyname-input",
|
|
2728
2728
|
placeholder: e.schema.placeholder,
|
|
2729
2729
|
type: "text"
|
|
2730
2730
|
}, null, 8, wu), [
|
|
2731
|
-
[
|
|
2731
|
+
[Ve, a.newKeyName]
|
|
2732
2732
|
]),
|
|
2733
|
-
|
|
2733
|
+
M(s, {
|
|
2734
2734
|
appearance: "tertiary",
|
|
2735
2735
|
"data-testid": "add-key",
|
|
2736
2736
|
disabled: !a.newKeyName,
|
|
2737
2737
|
onClick: i.addKey
|
|
2738
2738
|
}, {
|
|
2739
2739
|
default: w(() => [
|
|
2740
|
-
|
|
2740
|
+
ne(" + Add " + F(e.schema.buttonLabel || e.schema.label), 1)
|
|
2741
2741
|
]),
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["disabled", "onClick"])
|
|
2744
2744
|
]),
|
|
2745
|
-
e.schema.hintText ? (d(), h("p",
|
|
2745
|
+
e.schema.hintText ? (d(), h("p", Mu, F(e.schema.hintText), 1)) : O("", !0)
|
|
2746
2746
|
], 2)
|
|
2747
2747
|
], 10, uu);
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2749
|
+
const Dr = /* @__PURE__ */ H(du, [["render", Su], ["__scopeId", "data-v-3a00058c"]]), Tu = { class: "radio-selection-group" }, Iu = /* @__PURE__ */ oe({
|
|
2750
|
+
__name: "FieldRadio",
|
|
2751
|
+
props: {
|
|
2752
|
+
disabled: {
|
|
2753
|
+
type: Boolean,
|
|
2754
|
+
default: !1
|
|
2755
|
+
},
|
|
2756
|
+
formOptions: {
|
|
2757
|
+
type: Object,
|
|
2758
|
+
default: () => {
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
model: {
|
|
2762
|
+
type: Object,
|
|
2763
|
+
default: () => {
|
|
2764
|
+
}
|
|
2755
2765
|
},
|
|
2756
|
-
|
|
2757
|
-
|
|
2766
|
+
schema: {
|
|
2767
|
+
type: Object,
|
|
2768
|
+
required: !0
|
|
2769
|
+
},
|
|
2770
|
+
vfg: {
|
|
2771
|
+
type: Object,
|
|
2772
|
+
required: !0
|
|
2758
2773
|
},
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2774
|
+
/**
|
|
2775
|
+
* TODO: stronger type
|
|
2776
|
+
* TODO: pass this down to KInput error and errorMessage
|
|
2777
|
+
*/
|
|
2778
|
+
errors: {
|
|
2779
|
+
type: Array,
|
|
2780
|
+
default: () => []
|
|
2781
|
+
},
|
|
2782
|
+
hint: {
|
|
2783
|
+
type: String,
|
|
2784
|
+
default: ""
|
|
2762
2785
|
}
|
|
2786
|
+
},
|
|
2787
|
+
emits: ["modelUpdated"],
|
|
2788
|
+
setup(e, { expose: t, emit: n }) {
|
|
2789
|
+
const r = e, a = n, i = at(r), { updateModelValue: l, value: s, clearValidationErrors: o } = dt.useAbstractFields({
|
|
2790
|
+
model: i.model,
|
|
2791
|
+
schema: r.schema,
|
|
2792
|
+
formOptions: r.formOptions,
|
|
2793
|
+
emitModelUpdated: (c) => {
|
|
2794
|
+
a("modelUpdated", c.value, c.model);
|
|
2795
|
+
}
|
|
2796
|
+
});
|
|
2797
|
+
t({
|
|
2798
|
+
clearValidationErrors: o
|
|
2799
|
+
});
|
|
2800
|
+
const u = (c) => {
|
|
2801
|
+
let m = c;
|
|
2802
|
+
typeof c == "string" && (m = c.split(","), r.schema.array || (m = m.toString())), l(m, c);
|
|
2803
|
+
};
|
|
2804
|
+
return (c, m) => {
|
|
2805
|
+
const p = E("KRadio");
|
|
2806
|
+
return d(), h("div", Tu, [
|
|
2807
|
+
(d(!0), h(D, null, Z(e.schema.values, (U, V) => (d(), I(p, {
|
|
2808
|
+
id: e.schema.name + "-" + V,
|
|
2809
|
+
key: U.value,
|
|
2810
|
+
modelValue: L(s),
|
|
2811
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => Dt(s) ? s.value = y : null),
|
|
2812
|
+
label: U.name,
|
|
2813
|
+
name: e.schema.name,
|
|
2814
|
+
"selected-value": U.value,
|
|
2815
|
+
onChange: u
|
|
2816
|
+
}, null, 8, ["id", "modelValue", "label", "name", "selected-value"]))), 128))
|
|
2817
|
+
]);
|
|
2818
|
+
};
|
|
2763
2819
|
}
|
|
2764
|
-
},
|
|
2765
|
-
function
|
|
2766
|
-
return d(), h("div", Iu, [
|
|
2767
|
-
(d(!0), h(K, null, J(e.schema.values, (l, s) => (d(), h("div", {
|
|
2768
|
-
key: s,
|
|
2769
|
-
class: "option-group"
|
|
2770
|
-
}, [
|
|
2771
|
-
m("div", Au, [
|
|
2772
|
-
m("label", {
|
|
2773
|
-
class: W(["k-label", l.name])
|
|
2774
|
-
}, [
|
|
2775
|
-
m("input", {
|
|
2776
|
-
id: e.schema.name + "-" + s,
|
|
2777
|
-
checked: i.checkOption(l),
|
|
2778
|
-
class: "k-input",
|
|
2779
|
-
name: e.schema.name,
|
|
2780
|
-
type: "radio",
|
|
2781
|
-
value: l.value,
|
|
2782
|
-
onChange: t[0] || (t[0] = (...o) => i.onChange && i.onChange(...o))
|
|
2783
|
-
}, null, 40, Ou),
|
|
2784
|
-
te(" " + F(l.name), 1)
|
|
2785
|
-
], 2)
|
|
2786
|
-
])
|
|
2787
|
-
]))), 128))
|
|
2788
|
-
]);
|
|
2789
|
-
}
|
|
2790
|
-
const Br = /* @__PURE__ */ H(Tu, [["render", Cu], ["__scopeId", "data-v-33d6c694"]]);
|
|
2791
|
-
function Eu(e, t) {
|
|
2820
|
+
}), Br = /* @__PURE__ */ H(Iu, [["__scopeId", "data-v-6340d2ee"]]);
|
|
2821
|
+
function Au(e, t) {
|
|
2792
2822
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
2793
2823
|
if (t(e[n], n, e))
|
|
2794
2824
|
return !0;
|
|
2795
2825
|
return !1;
|
|
2796
2826
|
}
|
|
2797
|
-
var
|
|
2827
|
+
var Ou = 1, Eu = 2;
|
|
2798
2828
|
function zr(e, t, n, r, a, i) {
|
|
2799
|
-
var l = n &
|
|
2829
|
+
var l = n & Ou, s = e.length, o = t.length;
|
|
2800
2830
|
if (s != o && !(l && o > s))
|
|
2801
2831
|
return !1;
|
|
2802
2832
|
var u = i.get(e), c = i.get(t);
|
|
2803
2833
|
if (u && c)
|
|
2804
2834
|
return u == t && c == e;
|
|
2805
|
-
var
|
|
2806
|
-
for (i.set(e, t), i.set(t, e); ++
|
|
2807
|
-
var V = e[
|
|
2835
|
+
var m = -1, p = !0, U = n & Eu ? new it() : void 0;
|
|
2836
|
+
for (i.set(e, t), i.set(t, e); ++m < s; ) {
|
|
2837
|
+
var V = e[m], y = t[m];
|
|
2808
2838
|
if (r)
|
|
2809
|
-
var
|
|
2810
|
-
if (
|
|
2811
|
-
if (
|
|
2839
|
+
var A = l ? r(y, V, m, t, e, i) : r(V, y, m, e, t, i);
|
|
2840
|
+
if (A !== void 0) {
|
|
2841
|
+
if (A)
|
|
2812
2842
|
continue;
|
|
2813
2843
|
p = !1;
|
|
2814
2844
|
break;
|
|
2815
2845
|
}
|
|
2816
|
-
if (
|
|
2817
|
-
if (!
|
|
2818
|
-
if (!
|
|
2819
|
-
return
|
|
2846
|
+
if (U) {
|
|
2847
|
+
if (!Au(t, function(T, P) {
|
|
2848
|
+
if (!Mr(U, P) && (V === T || a(V, T, n, r, i)))
|
|
2849
|
+
return U.push(P);
|
|
2820
2850
|
})) {
|
|
2821
2851
|
p = !1;
|
|
2822
2852
|
break;
|
|
@@ -2828,106 +2858,106 @@ function zr(e, t, n, r, a, i) {
|
|
|
2828
2858
|
}
|
|
2829
2859
|
return i.delete(e), i.delete(t), p;
|
|
2830
2860
|
}
|
|
2831
|
-
function
|
|
2861
|
+
function Cu(e) {
|
|
2832
2862
|
var t = -1, n = Array(e.size);
|
|
2833
2863
|
return e.forEach(function(r, a) {
|
|
2834
2864
|
n[++t] = [a, r];
|
|
2835
2865
|
}), n;
|
|
2836
2866
|
}
|
|
2837
|
-
var
|
|
2838
|
-
function
|
|
2867
|
+
var $u = 1, Fu = 2, Uu = "[object Boolean]", ku = "[object Date]", Vu = "[object Error]", Nu = "[object Map]", Lu = "[object Number]", Pu = "[object RegExp]", qu = "[object Set]", ju = "[object String]", Ru = "[object Symbol]", Ku = "[object ArrayBuffer]", Du = "[object DataView]", jn = ye ? ye.prototype : void 0, Vt = jn ? jn.valueOf : void 0;
|
|
2868
|
+
function Bu(e, t, n, r, a, i, l) {
|
|
2839
2869
|
switch (n) {
|
|
2840
|
-
case
|
|
2870
|
+
case Du:
|
|
2841
2871
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
2842
2872
|
return !1;
|
|
2843
2873
|
e = e.buffer, t = t.buffer;
|
|
2844
|
-
case
|
|
2845
|
-
return !(e.byteLength != t.byteLength || !i(new
|
|
2846
|
-
case
|
|
2874
|
+
case Ku:
|
|
2875
|
+
return !(e.byteLength != t.byteLength || !i(new mt(e), new mt(t)));
|
|
2876
|
+
case Uu:
|
|
2877
|
+
case ku:
|
|
2847
2878
|
case Lu:
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
case Pu:
|
|
2879
|
+
return ot(+e, +t);
|
|
2880
|
+
case Vu:
|
|
2851
2881
|
return e.name == t.name && e.message == t.message;
|
|
2852
|
-
case
|
|
2853
|
-
case
|
|
2882
|
+
case Pu:
|
|
2883
|
+
case ju:
|
|
2854
2884
|
return e == t + "";
|
|
2885
|
+
case Nu:
|
|
2886
|
+
var s = Cu;
|
|
2855
2887
|
case qu:
|
|
2856
|
-
var
|
|
2857
|
-
|
|
2858
|
-
var o = r & Uu;
|
|
2859
|
-
if (s || (s = Jt), e.size != t.size && !o)
|
|
2888
|
+
var o = r & $u;
|
|
2889
|
+
if (s || (s = Xt), e.size != t.size && !o)
|
|
2860
2890
|
return !1;
|
|
2861
2891
|
var u = l.get(e);
|
|
2862
2892
|
if (u)
|
|
2863
2893
|
return u == t;
|
|
2864
|
-
r |=
|
|
2894
|
+
r |= Fu, l.set(e, t);
|
|
2865
2895
|
var c = zr(s(e), s(t), r, a, i, l);
|
|
2866
2896
|
return l.delete(e), c;
|
|
2867
|
-
case
|
|
2868
|
-
if (
|
|
2869
|
-
return
|
|
2897
|
+
case Ru:
|
|
2898
|
+
if (Vt)
|
|
2899
|
+
return Vt.call(e) == Vt.call(t);
|
|
2870
2900
|
}
|
|
2871
2901
|
return !1;
|
|
2872
2902
|
}
|
|
2873
|
-
var
|
|
2874
|
-
function
|
|
2875
|
-
var l = n &
|
|
2903
|
+
var zu = 1, Hu = Object.prototype, xu = Hu.hasOwnProperty;
|
|
2904
|
+
function Yu(e, t, n, r, a, i) {
|
|
2905
|
+
var l = n & zu, s = Nt(e), o = s.length, u = Nt(t), c = u.length;
|
|
2876
2906
|
if (o != c && !l)
|
|
2877
2907
|
return !1;
|
|
2878
|
-
for (var
|
|
2879
|
-
var p = s[
|
|
2880
|
-
if (!(l ? p in t :
|
|
2908
|
+
for (var m = o; m--; ) {
|
|
2909
|
+
var p = s[m];
|
|
2910
|
+
if (!(l ? p in t : xu.call(t, p)))
|
|
2881
2911
|
return !1;
|
|
2882
2912
|
}
|
|
2883
|
-
var
|
|
2884
|
-
if (
|
|
2885
|
-
return
|
|
2913
|
+
var U = i.get(e), V = i.get(t);
|
|
2914
|
+
if (U && V)
|
|
2915
|
+
return U == t && V == e;
|
|
2886
2916
|
var y = !0;
|
|
2887
2917
|
i.set(e, t), i.set(t, e);
|
|
2888
|
-
for (var
|
|
2889
|
-
p = s[
|
|
2890
|
-
var T = e[p],
|
|
2918
|
+
for (var A = l; ++m < o; ) {
|
|
2919
|
+
p = s[m];
|
|
2920
|
+
var T = e[p], P = t[p];
|
|
2891
2921
|
if (r)
|
|
2892
|
-
var
|
|
2893
|
-
if (!(
|
|
2922
|
+
var S = l ? r(P, T, p, t, e, i) : r(T, P, p, e, t, i);
|
|
2923
|
+
if (!(S === void 0 ? T === P || a(T, P, n, r, i) : S)) {
|
|
2894
2924
|
y = !1;
|
|
2895
2925
|
break;
|
|
2896
2926
|
}
|
|
2897
|
-
|
|
2927
|
+
A || (A = p == "constructor");
|
|
2898
2928
|
}
|
|
2899
|
-
if (y && !
|
|
2929
|
+
if (y && !A) {
|
|
2900
2930
|
var k = e.constructor, q = t.constructor;
|
|
2901
2931
|
k != q && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof q == "function" && q instanceof q) && (y = !1);
|
|
2902
2932
|
}
|
|
2903
2933
|
return i.delete(e), i.delete(t), y;
|
|
2904
2934
|
}
|
|
2905
|
-
var
|
|
2906
|
-
function
|
|
2907
|
-
var l =
|
|
2908
|
-
o = o ==
|
|
2909
|
-
var c = o ==
|
|
2910
|
-
if (p &&
|
|
2911
|
-
if (!
|
|
2935
|
+
var Gu = 1, Rn = "[object Arguments]", Kn = "[object Array]", ut = "[object Object]", Wu = Object.prototype, Dn = Wu.hasOwnProperty;
|
|
2936
|
+
function Zu(e, t, n, r, a, i) {
|
|
2937
|
+
var l = me(e), s = me(t), o = l ? Kn : nt(e), u = s ? Kn : nt(t);
|
|
2938
|
+
o = o == Rn ? ut : o, u = u == Rn ? ut : u;
|
|
2939
|
+
var c = o == ut, m = u == ut, p = o == u;
|
|
2940
|
+
if (p && ct(e)) {
|
|
2941
|
+
if (!ct(t))
|
|
2912
2942
|
return !1;
|
|
2913
2943
|
l = !0, c = !1;
|
|
2914
2944
|
}
|
|
2915
2945
|
if (p && !c)
|
|
2916
|
-
return i || (i = new ge()), l || nr(e) ? zr(e, t, n, r, a, i) :
|
|
2917
|
-
if (!(n &
|
|
2918
|
-
var
|
|
2919
|
-
if (
|
|
2920
|
-
var y =
|
|
2921
|
-
return i || (i = new ge()), a(y,
|
|
2946
|
+
return i || (i = new ge()), l || nr(e) ? zr(e, t, n, r, a, i) : Bu(e, t, o, n, r, a, i);
|
|
2947
|
+
if (!(n & Gu)) {
|
|
2948
|
+
var U = c && Dn.call(e, "__wrapped__"), V = m && Dn.call(t, "__wrapped__");
|
|
2949
|
+
if (U || V) {
|
|
2950
|
+
var y = U ? e.value() : e, A = V ? t.value() : t;
|
|
2951
|
+
return i || (i = new ge()), a(y, A, n, r, i);
|
|
2922
2952
|
}
|
|
2923
2953
|
}
|
|
2924
|
-
return p ? (i || (i = new ge()),
|
|
2954
|
+
return p ? (i || (i = new ge()), Yu(e, t, n, r, a, i)) : !1;
|
|
2925
2955
|
}
|
|
2926
|
-
function
|
|
2927
|
-
return e === t ? !0 : e == null || t == null || !be(e) && !be(t) ? e !== e && t !== t :
|
|
2956
|
+
function tn(e, t, n, r, a) {
|
|
2957
|
+
return e === t ? !0 : e == null || t == null || !be(e) && !be(t) ? e !== e && t !== t : Zu(e, t, n, r, tn, a);
|
|
2928
2958
|
}
|
|
2929
|
-
var
|
|
2930
|
-
function
|
|
2959
|
+
var Ju = 1, Xu = 2;
|
|
2960
|
+
function Qu(e, t, n, r) {
|
|
2931
2961
|
var a = n.length, i = a, l = !r;
|
|
2932
2962
|
if (e == null)
|
|
2933
2963
|
return !i;
|
|
@@ -2943,10 +2973,10 @@ function nc(e, t, n, r) {
|
|
|
2943
2973
|
if (u === void 0 && !(o in e))
|
|
2944
2974
|
return !1;
|
|
2945
2975
|
} else {
|
|
2946
|
-
var
|
|
2976
|
+
var m = new ge();
|
|
2947
2977
|
if (r)
|
|
2948
|
-
var p = r(u, c, o, e, t,
|
|
2949
|
-
if (!(p === void 0 ?
|
|
2978
|
+
var p = r(u, c, o, e, t, m);
|
|
2979
|
+
if (!(p === void 0 ? tn(c, u, Ju | Xu, r, m) : p))
|
|
2950
2980
|
return !1;
|
|
2951
2981
|
}
|
|
2952
2982
|
}
|
|
@@ -2955,7 +2985,7 @@ function nc(e, t, n, r) {
|
|
|
2955
2985
|
function Hr(e) {
|
|
2956
2986
|
return e === e && !se(e);
|
|
2957
2987
|
}
|
|
2958
|
-
function
|
|
2988
|
+
function ec(e) {
|
|
2959
2989
|
for (var t = Ye(e), n = t.length; n--; ) {
|
|
2960
2990
|
var r = t[n], a = e[r];
|
|
2961
2991
|
t[n] = [r, a, Hr(a)];
|
|
@@ -2967,55 +2997,55 @@ function xr(e, t) {
|
|
|
2967
2997
|
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
2968
2998
|
};
|
|
2969
2999
|
}
|
|
2970
|
-
function
|
|
2971
|
-
var t =
|
|
3000
|
+
function tc(e) {
|
|
3001
|
+
var t = ec(e);
|
|
2972
3002
|
return t.length == 1 && t[0][2] ? xr(t[0][0], t[0][1]) : function(n) {
|
|
2973
|
-
return n === e ||
|
|
3003
|
+
return n === e || Qu(n, e, t);
|
|
2974
3004
|
};
|
|
2975
3005
|
}
|
|
2976
|
-
function
|
|
3006
|
+
function nc(e, t) {
|
|
2977
3007
|
return e != null && t in Object(e);
|
|
2978
3008
|
}
|
|
2979
|
-
function
|
|
3009
|
+
function rc(e, t, n) {
|
|
2980
3010
|
t = or(t, e);
|
|
2981
3011
|
for (var r = -1, a = t.length, i = !1; ++r < a; ) {
|
|
2982
|
-
var l =
|
|
3012
|
+
var l = Tt(t[r]);
|
|
2983
3013
|
if (!(i = e != null && n(e, l)))
|
|
2984
3014
|
break;
|
|
2985
3015
|
e = e[l];
|
|
2986
3016
|
}
|
|
2987
|
-
return i || ++r != a ? i : (a = e == null ? 0 : e.length, !!a &&
|
|
3017
|
+
return i || ++r != a ? i : (a = e == null ? 0 : e.length, !!a && zt(a) && Bt(l, a) && (me(e) || Qn(e)));
|
|
2988
3018
|
}
|
|
2989
|
-
function
|
|
2990
|
-
return e != null &&
|
|
3019
|
+
function ic(e, t) {
|
|
3020
|
+
return e != null && rc(e, t, nc);
|
|
2991
3021
|
}
|
|
2992
|
-
var
|
|
2993
|
-
function
|
|
2994
|
-
return
|
|
3022
|
+
var ac = 1, sc = 2;
|
|
3023
|
+
function oc(e, t) {
|
|
3024
|
+
return Yt(e) && Hr(t) ? xr(Tt(e), t) : function(n) {
|
|
2995
3025
|
var r = B(n, e);
|
|
2996
|
-
return r === void 0 && r === t ?
|
|
3026
|
+
return r === void 0 && r === t ? ic(n, e) : tn(t, r, ac | sc);
|
|
2997
3027
|
};
|
|
2998
3028
|
}
|
|
2999
|
-
function
|
|
3029
|
+
function lc(e) {
|
|
3000
3030
|
return function(t) {
|
|
3001
3031
|
return t == null ? void 0 : t[e];
|
|
3002
3032
|
};
|
|
3003
3033
|
}
|
|
3004
|
-
function
|
|
3034
|
+
function dc(e) {
|
|
3005
3035
|
return function(t) {
|
|
3006
3036
|
return lr(t, e);
|
|
3007
3037
|
};
|
|
3008
3038
|
}
|
|
3009
|
-
function
|
|
3010
|
-
return
|
|
3039
|
+
function uc(e) {
|
|
3040
|
+
return Yt(e) ? lc(Tt(e)) : dc(e);
|
|
3011
3041
|
}
|
|
3012
3042
|
function Yr(e) {
|
|
3013
|
-
return typeof e == "function" ? e : e == null ?
|
|
3043
|
+
return typeof e == "function" ? e : e == null ? _t : typeof e == "object" ? me(e) ? oc(e[0], e[1]) : tc(e) : uc(e);
|
|
3014
3044
|
}
|
|
3015
|
-
function
|
|
3045
|
+
function cc(e) {
|
|
3016
3046
|
return function(t, n, r) {
|
|
3017
3047
|
var a = Object(t);
|
|
3018
|
-
if (!
|
|
3048
|
+
if (!st(t)) {
|
|
3019
3049
|
var i = Yr(n);
|
|
3020
3050
|
t = Ye(t), n = function(s) {
|
|
3021
3051
|
return i(a[s], s, a);
|
|
@@ -3025,20 +3055,20 @@ function hc(e) {
|
|
|
3025
3055
|
return l > -1 ? a[i ? t[l] : l] : void 0;
|
|
3026
3056
|
};
|
|
3027
3057
|
}
|
|
3028
|
-
var
|
|
3029
|
-
function
|
|
3058
|
+
var fc = Math.max;
|
|
3059
|
+
function mc(e, t, n) {
|
|
3030
3060
|
var r = e == null ? 0 : e.length;
|
|
3031
3061
|
if (!r)
|
|
3032
3062
|
return -1;
|
|
3033
3063
|
var a = n == null ? 0 : Ar(n);
|
|
3034
|
-
return a < 0 && (a =
|
|
3064
|
+
return a < 0 && (a = fc(r + a, 0)), wr(e, Yr(t), a);
|
|
3035
3065
|
}
|
|
3036
|
-
var
|
|
3037
|
-
const
|
|
3038
|
-
function
|
|
3039
|
-
const l =
|
|
3066
|
+
var hc = cc(mc);
|
|
3067
|
+
const pc = ["disabled", "name", "id"], gc = ["disabled"], vc = ["label"], yc = ["value"], bc = ["value"];
|
|
3068
|
+
function _c(e, t, n, r, a, i) {
|
|
3069
|
+
const l = gt("attributes");
|
|
3040
3070
|
return re((d(), h("select", {
|
|
3041
|
-
class:
|
|
3071
|
+
class: J(["form-control", e.schema.fieldClasses]),
|
|
3042
3072
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.value = s),
|
|
3043
3073
|
disabled: e.disabled || null,
|
|
3044
3074
|
name: e.schema.inputName,
|
|
@@ -3048,28 +3078,28 @@ function Mc(e, t, n, r, a, i) {
|
|
|
3048
3078
|
key: 0,
|
|
3049
3079
|
disabled: e.schema.required || null,
|
|
3050
3080
|
value: null
|
|
3051
|
-
}, F(i.selectOptions.noneSelectedText || "<Nothing selected>"), 9,
|
|
3052
|
-
(d(!0), h(
|
|
3081
|
+
}, F(i.selectOptions.noneSelectedText || "<Nothing selected>"), 9, gc)),
|
|
3082
|
+
(d(!0), h(D, null, Z(i.items, (s) => (d(), h(D, null, [
|
|
3053
3083
|
s.group ? (d(), h("optgroup", {
|
|
3054
3084
|
key: 0,
|
|
3055
3085
|
label: i.getGroupName(s)
|
|
3056
3086
|
}, [
|
|
3057
|
-
s.ops ? (d(!0), h(
|
|
3087
|
+
s.ops ? (d(!0), h(D, { key: 0 }, Z(s.ops, (o) => (d(), h("option", {
|
|
3058
3088
|
value: i.getItemValue(o)
|
|
3059
|
-
}, F(i.getItemName(o)), 9,
|
|
3060
|
-
], 8,
|
|
3089
|
+
}, F(i.getItemName(o)), 9, yc))), 256)) : O("", !0)
|
|
3090
|
+
], 8, vc)) : O("", !0),
|
|
3061
3091
|
s.group ? O("", !0) : (d(), h("option", {
|
|
3062
3092
|
key: 1,
|
|
3063
3093
|
value: i.getItemValue(s)
|
|
3064
|
-
}, F(i.getItemName(s)), 9,
|
|
3094
|
+
}, F(i.getItemName(s)), 9, bc))
|
|
3065
3095
|
], 64))), 256))
|
|
3066
|
-
], 10,
|
|
3067
|
-
[
|
|
3096
|
+
], 10, pc)), [
|
|
3097
|
+
[Yn, e.value],
|
|
3068
3098
|
[l, "input"]
|
|
3069
3099
|
]);
|
|
3070
3100
|
}
|
|
3071
|
-
const
|
|
3072
|
-
mixins: [
|
|
3101
|
+
const wc = {
|
|
3102
|
+
mixins: [ce],
|
|
3073
3103
|
computed: {
|
|
3074
3104
|
selectOptions() {
|
|
3075
3105
|
return this.schema.selectOptions || {};
|
|
@@ -3087,7 +3117,7 @@ const Tc = {
|
|
|
3087
3117
|
const t = [];
|
|
3088
3118
|
let n = {};
|
|
3089
3119
|
return e.forEach((r) => {
|
|
3090
|
-
n = null, r.group && se(r) ? (n =
|
|
3120
|
+
n = null, r.group && se(r) ? (n = hc(t, (a) => a.group === r.group), n ? n.ops.push({
|
|
3091
3121
|
id: r.id,
|
|
3092
3122
|
name: r.name
|
|
3093
3123
|
}) : (n = {
|
|
@@ -3125,21 +3155,21 @@ const Tc = {
|
|
|
3125
3155
|
return e;
|
|
3126
3156
|
}
|
|
3127
3157
|
}
|
|
3128
|
-
}, Gr = /* @__PURE__ */ H(
|
|
3158
|
+
}, Gr = /* @__PURE__ */ H(wc, [["render", _c]]), Mc = {
|
|
3129
3159
|
name: "FieldArray",
|
|
3130
3160
|
components: {
|
|
3131
|
-
FieldArrayItem:
|
|
3161
|
+
FieldArrayItem: Nr,
|
|
3132
3162
|
FieldArrayMultiItem: Lr,
|
|
3133
3163
|
FieldSelect: Gr,
|
|
3134
3164
|
FieldMetric: jr,
|
|
3135
3165
|
FieldObject: Rr,
|
|
3136
|
-
FieldObjectAdvanced:
|
|
3166
|
+
FieldObjectAdvanced: Dr,
|
|
3137
3167
|
FieldAutoSuggest: Pr,
|
|
3138
3168
|
FieldRadio: Br,
|
|
3139
|
-
FieldArrayCardContainer:
|
|
3169
|
+
FieldArrayCardContainer: Vr,
|
|
3140
3170
|
FieldInput: qr
|
|
3141
3171
|
},
|
|
3142
|
-
mixins: [
|
|
3172
|
+
mixins: [ce],
|
|
3143
3173
|
inject: {
|
|
3144
3174
|
autofillSlot: {
|
|
3145
3175
|
from: he,
|
|
@@ -3186,26 +3216,26 @@ const Tc = {
|
|
|
3186
3216
|
this.value = this.value.map((n, r) => r === t ? e : n);
|
|
3187
3217
|
}
|
|
3188
3218
|
}
|
|
3189
|
-
},
|
|
3190
|
-
function
|
|
3219
|
+
}, Sc = ["id"], Tc = { key: 1 }, Ic = ["onUpdate:modelValue", "aria-labelledby", "type"], Ac = ["onUpdate:modelValue", "aria-labelledby"];
|
|
3220
|
+
function Oc(e, t, n, r, a, i) {
|
|
3191
3221
|
const l = E("KTextArea"), s = E("KInput"), o = E("KButton");
|
|
3192
3222
|
return e.schema ? (d(), h("div", {
|
|
3193
3223
|
key: 0,
|
|
3194
3224
|
id: e.getFieldID(e.schema),
|
|
3195
|
-
class:
|
|
3225
|
+
class: J(e.schema.fieldClasses)
|
|
3196
3226
|
}, [
|
|
3197
|
-
(d(!0), h(
|
|
3227
|
+
(d(!0), h(D, null, Z(e.value, (u, c) => (d(), h("div", {
|
|
3198
3228
|
key: c,
|
|
3199
|
-
class:
|
|
3229
|
+
class: J(e.schema.fieldItemsClasses)
|
|
3200
3230
|
}, [
|
|
3201
|
-
e.schema.items && e.schema.itemContainerComponent ? (d(),
|
|
3231
|
+
e.schema.items && e.schema.itemContainerComponent ? (d(), I(ee(e.schema.itemContainerComponent), {
|
|
3202
3232
|
key: 0,
|
|
3203
3233
|
model: u,
|
|
3204
3234
|
schema: i.generateSchema(e.value, e.schema.items, c),
|
|
3205
|
-
onRemoveItem: (
|
|
3235
|
+
onRemoveItem: (m) => i.removeElement(c)
|
|
3206
3236
|
}, {
|
|
3207
3237
|
default: w(() => [
|
|
3208
|
-
(d(),
|
|
3238
|
+
(d(), I(ee(i.getFieldType(e.schema.items)), {
|
|
3209
3239
|
"form-options": e.formOptions,
|
|
3210
3240
|
model: u,
|
|
3211
3241
|
schema: i.generateSchema(e.value, e.schema.items, c),
|
|
@@ -3213,31 +3243,31 @@ function $c(e, t, n, r, a, i) {
|
|
|
3213
3243
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3214
3244
|
]),
|
|
3215
3245
|
_: 2
|
|
3216
|
-
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), h("span",
|
|
3217
|
-
(d(),
|
|
3246
|
+
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (d(), h("span", Tc, [
|
|
3247
|
+
(d(), I(ee(i.getFieldType(e.schema.items)), {
|
|
3218
3248
|
"form-options": e.formOptions,
|
|
3219
3249
|
model: u,
|
|
3220
3250
|
schema: i.generateSchema(e.value, e.schema.items, c),
|
|
3221
3251
|
onModelUpdated: i.modelUpdated
|
|
3222
3252
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3223
|
-
])) : e.schema.itemContainerComponent ? (d(),
|
|
3253
|
+
])) : e.schema.itemContainerComponent ? (d(), I(ee(e.schema.itemContainerComponent), {
|
|
3224
3254
|
key: 2,
|
|
3225
3255
|
"data-testid": `${e.getFieldID(e.schema)}-item-${c}`,
|
|
3226
3256
|
model: u,
|
|
3227
3257
|
schema: i.generateSchema(e.value, e.schema.items, c),
|
|
3228
|
-
onRemoveItem: (
|
|
3258
|
+
onRemoveItem: (m) => i.removeElement(c)
|
|
3229
3259
|
}, {
|
|
3230
3260
|
after: w(() => [
|
|
3231
|
-
(d(),
|
|
3261
|
+
(d(), I(ee(i.autofillSlot), {
|
|
3232
3262
|
schema: e.schema,
|
|
3233
|
-
update: (
|
|
3263
|
+
update: (m) => e.value[c] = m,
|
|
3234
3264
|
value: e.value[c]
|
|
3235
3265
|
}, null, 8, ["schema", "update", "value"]))
|
|
3236
3266
|
]),
|
|
3237
3267
|
default: w(() => {
|
|
3238
|
-
var
|
|
3268
|
+
var m;
|
|
3239
3269
|
return [
|
|
3240
|
-
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (d(),
|
|
3270
|
+
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (d(), I(l, Ue({
|
|
3241
3271
|
key: 0,
|
|
3242
3272
|
ref_for: !0
|
|
3243
3273
|
}, e.schema.inputAttributes, {
|
|
@@ -3253,7 +3283,7 @@ function $c(e, t, n, r, a, i) {
|
|
|
3253
3283
|
readonly: e.schema.readonly,
|
|
3254
3284
|
required: e.schema.required,
|
|
3255
3285
|
rows: e.schema.rows || 2
|
|
3256
|
-
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (d(),
|
|
3286
|
+
}), null, 16, ["id", "modelValue", "onUpdate:modelValue", "aria-labelledby", "class", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"])) : !e.schema.inputAttributes || !e.schema.inputAttributes.type || e.schema.inputAttributes.type === "text" || e.schema.inputAttributes.type === "number" ? (d(), I(s, Ue({
|
|
3257
3287
|
key: 1,
|
|
3258
3288
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3259
3289
|
ref_for: !0
|
|
@@ -3263,49 +3293,49 @@ function $c(e, t, n, r, a, i) {
|
|
|
3263
3293
|
onInput: (p) => {
|
|
3264
3294
|
i.handleInput(p, c);
|
|
3265
3295
|
}
|
|
3266
|
-
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : re((d(), h("input",
|
|
3296
|
+
}), null, 16, ["aria-labelledby", "model-value", "type", "onInput"])) : re((d(), h("input", Ue({
|
|
3267
3297
|
key: 2,
|
|
3268
3298
|
"onUpdate:modelValue": (p) => e.value[c] = p,
|
|
3269
3299
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3270
3300
|
ref_for: !0
|
|
3271
3301
|
}, e.schema.inputAttributes, {
|
|
3272
|
-
type: ((
|
|
3273
|
-
}), null, 16,
|
|
3302
|
+
type: ((m = e.schema.inputAttributes) == null ? void 0 : m.type) || "text"
|
|
3303
|
+
}), null, 16, Ic)), [
|
|
3274
3304
|
[ni, e.value[c]]
|
|
3275
3305
|
])
|
|
3276
3306
|
];
|
|
3277
3307
|
}),
|
|
3278
3308
|
_: 2
|
|
3279
|
-
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (d(), h(
|
|
3280
|
-
re(
|
|
3281
|
-
"onUpdate:modelValue": (
|
|
3309
|
+
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (d(), h(D, { key: 3 }, [
|
|
3310
|
+
re(f("input", Ue({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
3311
|
+
"onUpdate:modelValue": (m) => e.value[c] = m,
|
|
3282
3312
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3283
3313
|
type: "text"
|
|
3284
|
-
}), null, 16,
|
|
3285
|
-
[
|
|
3314
|
+
}), null, 16, Ac), [
|
|
3315
|
+
[Ve, e.value[c]]
|
|
3286
3316
|
]),
|
|
3287
|
-
(d(),
|
|
3317
|
+
(d(), I(ee(i.autofillSlot), {
|
|
3288
3318
|
schema: e.schema,
|
|
3289
|
-
update: (
|
|
3319
|
+
update: (m) => e.value[c] = m,
|
|
3290
3320
|
value: e.value[c]
|
|
3291
3321
|
}, null, 8, ["schema", "update", "value"]))
|
|
3292
3322
|
], 64))
|
|
3293
3323
|
], 2))), 128)),
|
|
3294
|
-
|
|
3324
|
+
M(o, {
|
|
3295
3325
|
appearance: "tertiary",
|
|
3296
|
-
class:
|
|
3326
|
+
class: J(e.schema.newElementButtonLabelClasses),
|
|
3297
3327
|
"data-testid": `add-${e.getFieldID(e.schema)}`,
|
|
3298
3328
|
type: "button",
|
|
3299
3329
|
onClick: i.newElement
|
|
3300
3330
|
}, {
|
|
3301
3331
|
default: w(() => [
|
|
3302
|
-
|
|
3332
|
+
ne(F(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
3303
3333
|
]),
|
|
3304
3334
|
_: 1
|
|
3305
3335
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3306
|
-
], 10,
|
|
3336
|
+
], 10, Sc)) : O("", !0);
|
|
3307
3337
|
}
|
|
3308
|
-
const
|
|
3338
|
+
const Ec = /* @__PURE__ */ H(Mc, [["render", Oc], ["__scopeId", "data-v-fb8e1bc9"]]), Cc = { class: "form-field-wrapper field-checkbox" }, $c = /* @__PURE__ */ oe({
|
|
3309
3339
|
__name: "FieldCheckbox",
|
|
3310
3340
|
props: {
|
|
3311
3341
|
disabled: {
|
|
@@ -3345,7 +3375,7 @@ const Fc = /* @__PURE__ */ H(Ic, [["render", $c], ["__scopeId", "data-v-fb8e1bc9
|
|
|
3345
3375
|
},
|
|
3346
3376
|
emits: ["modelUpdated"],
|
|
3347
3377
|
setup(e, { expose: t, emit: n }) {
|
|
3348
|
-
const r = e, a = n, i =
|
|
3378
|
+
const r = e, a = n, i = at(r), { getFieldID: l, value: s, clearValidationErrors: o } = dt.useAbstractFields({
|
|
3349
3379
|
model: i.model,
|
|
3350
3380
|
schema: r.schema,
|
|
3351
3381
|
formOptions: r.formOptions,
|
|
@@ -3356,12 +3386,12 @@ const Fc = /* @__PURE__ */ H(Ic, [["render", $c], ["__scopeId", "data-v-fb8e1bc9
|
|
|
3356
3386
|
return t({
|
|
3357
3387
|
clearValidationErrors: o
|
|
3358
3388
|
}), (u, c) => {
|
|
3359
|
-
const
|
|
3360
|
-
return d(), h("div",
|
|
3361
|
-
|
|
3362
|
-
id:
|
|
3363
|
-
modelValue:
|
|
3364
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) =>
|
|
3389
|
+
const m = E("KCheckbox");
|
|
3390
|
+
return d(), h("div", Cc, [
|
|
3391
|
+
M(m, Ue(u.$attrs, {
|
|
3392
|
+
id: L(l)(e.schema),
|
|
3393
|
+
modelValue: L(s),
|
|
3394
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => Dt(s) ? s.value = p : null),
|
|
3365
3395
|
autocomplete: e.schema.autocomplete,
|
|
3366
3396
|
class: e.schema.fieldClasses,
|
|
3367
3397
|
disabled: e.disabled || void 0,
|
|
@@ -3374,76 +3404,76 @@ const Fc = /* @__PURE__ */ H(Ic, [["render", $c], ["__scopeId", "data-v-fb8e1bc9
|
|
|
3374
3404
|
]);
|
|
3375
3405
|
};
|
|
3376
3406
|
}
|
|
3377
|
-
}),
|
|
3378
|
-
var
|
|
3379
|
-
function
|
|
3380
|
-
return Xe(e,
|
|
3381
|
-
}
|
|
3382
|
-
const
|
|
3383
|
-
function
|
|
3384
|
-
const l =
|
|
3385
|
-
return re((d(), h("div",
|
|
3407
|
+
}), Fc = /* @__PURE__ */ H($c, [["__scopeId", "data-v-6b4ee1cd"]]);
|
|
3408
|
+
var Uc = 4;
|
|
3409
|
+
function Bn(e) {
|
|
3410
|
+
return Xe(e, Uc);
|
|
3411
|
+
}
|
|
3412
|
+
const kc = { class: "wrapper" }, Vc = ["disabled"], Nc = ["id", "checked", "disabled", "onChange", "name"], Lc = ["disabled"], Pc = { class: "info" }, qc = /* @__PURE__ */ f("div", { class: "arrow" }, null, -1), jc = { class: "dropList" }, Rc = ["id", "checked", "disabled", "onChange", "name"];
|
|
3413
|
+
function Kc(e, t, n, r, a, i) {
|
|
3414
|
+
const l = gt("attributes");
|
|
3415
|
+
return re((d(), h("div", kc, [
|
|
3386
3416
|
e.schema.listBox ? (d(), h("div", {
|
|
3387
3417
|
key: 0,
|
|
3388
3418
|
class: "listbox form-control",
|
|
3389
3419
|
disabled: e.disabled || null
|
|
3390
3420
|
}, [
|
|
3391
|
-
(d(!0), h(
|
|
3392
|
-
class:
|
|
3421
|
+
(d(!0), h(D, null, Z(i.items, (s) => (d(), h("div", {
|
|
3422
|
+
class: J(["list-row", { "is-checked": i.isItemChecked(s) }])
|
|
3393
3423
|
}, [
|
|
3394
|
-
|
|
3395
|
-
re(
|
|
3424
|
+
f("label", null, [
|
|
3425
|
+
re(f("input", {
|
|
3396
3426
|
id: e.getFieldID(e.schema, !0),
|
|
3397
3427
|
type: "checkbox",
|
|
3398
3428
|
checked: i.isItemChecked(s) || null,
|
|
3399
3429
|
disabled: e.disabled || null,
|
|
3400
3430
|
onChange: (o) => i.onChanged(o, s),
|
|
3401
3431
|
name: i.getInputName(s)
|
|
3402
|
-
}, null, 40,
|
|
3432
|
+
}, null, 40, Nc), [
|
|
3403
3433
|
[l, "input"]
|
|
3404
3434
|
]),
|
|
3405
|
-
|
|
3435
|
+
ne(F(i.getItemName(s)), 1)
|
|
3406
3436
|
])
|
|
3407
3437
|
], 2))), 256))
|
|
3408
|
-
], 8,
|
|
3438
|
+
], 8, Vc)) : O("", !0),
|
|
3409
3439
|
e.schema.listBox ? O("", !0) : (d(), h("div", {
|
|
3410
3440
|
key: 1,
|
|
3411
3441
|
class: "combobox form-control",
|
|
3412
3442
|
disabled: e.disabled || null
|
|
3413
3443
|
}, [
|
|
3414
|
-
|
|
3415
|
-
class:
|
|
3444
|
+
f("div", {
|
|
3445
|
+
class: J(["mainRow", { expanded: a.comboExpanded }]),
|
|
3416
3446
|
onClick: t[0] || (t[0] = (...s) => i.onExpandCombo && i.onExpandCombo(...s))
|
|
3417
3447
|
}, [
|
|
3418
|
-
|
|
3419
|
-
|
|
3448
|
+
f("div", Pc, F(i.selectedCount) + " selected", 1),
|
|
3449
|
+
qc
|
|
3420
3450
|
], 2),
|
|
3421
|
-
|
|
3422
|
-
a.comboExpanded ? (d(!0), h(
|
|
3423
|
-
class:
|
|
3451
|
+
f("div", jc, [
|
|
3452
|
+
a.comboExpanded ? (d(!0), h(D, { key: 0 }, Z(i.items, (s) => (d(), h("div", {
|
|
3453
|
+
class: J(["list-row", { "is-checked": i.isItemChecked(s) }])
|
|
3424
3454
|
}, [
|
|
3425
|
-
|
|
3426
|
-
re(
|
|
3455
|
+
f("label", null, [
|
|
3456
|
+
re(f("input", {
|
|
3427
3457
|
id: e.getFieldID(e.schema, !0),
|
|
3428
3458
|
type: "checkbox",
|
|
3429
3459
|
checked: i.isItemChecked(s) || null,
|
|
3430
3460
|
disabled: e.disabled || null,
|
|
3431
3461
|
onChange: (o) => i.onChanged(o, s),
|
|
3432
3462
|
name: i.getInputName(s)
|
|
3433
|
-
}, null, 40,
|
|
3463
|
+
}, null, 40, Rc), [
|
|
3434
3464
|
[l, "input"]
|
|
3435
3465
|
]),
|
|
3436
|
-
|
|
3466
|
+
ne(F(i.getItemName(s)), 1)
|
|
3437
3467
|
])
|
|
3438
3468
|
], 2))), 256)) : O("", !0)
|
|
3439
3469
|
])
|
|
3440
|
-
], 8,
|
|
3470
|
+
], 8, Lc))
|
|
3441
3471
|
])), [
|
|
3442
3472
|
[l, "wrapper"]
|
|
3443
3473
|
]);
|
|
3444
3474
|
}
|
|
3445
|
-
const
|
|
3446
|
-
mixins: [
|
|
3475
|
+
const Dc = {
|
|
3476
|
+
mixins: [ce],
|
|
3447
3477
|
data() {
|
|
3448
3478
|
return {
|
|
3449
3479
|
comboExpanded: !1
|
|
@@ -3460,7 +3490,7 @@ const Hc = {
|
|
|
3460
3490
|
},
|
|
3461
3491
|
methods: {
|
|
3462
3492
|
getInputName(e) {
|
|
3463
|
-
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ?
|
|
3493
|
+
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? On(this.schema.inputName + "_" + this.getItemValue(e)) : On(this.getItemValue(e));
|
|
3464
3494
|
},
|
|
3465
3495
|
getItemValue(e) {
|
|
3466
3496
|
if (se(e)) {
|
|
@@ -3487,10 +3517,10 @@ const Hc = {
|
|
|
3487
3517
|
},
|
|
3488
3518
|
onChanged(e, t) {
|
|
3489
3519
|
if ((Q(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
3490
|
-
const n =
|
|
3520
|
+
const n = Bn(this.value);
|
|
3491
3521
|
n.push(this.getItemValue(t)), this.value = n;
|
|
3492
3522
|
} else {
|
|
3493
|
-
const n =
|
|
3523
|
+
const n = Bn(this.value);
|
|
3494
3524
|
n.splice(this.value.indexOf(this.getItemValue(t)), 1), this.value = n;
|
|
3495
3525
|
}
|
|
3496
3526
|
},
|
|
@@ -3498,10 +3528,10 @@ const Hc = {
|
|
|
3498
3528
|
this.comboExpanded = !this.comboExpanded;
|
|
3499
3529
|
}
|
|
3500
3530
|
}
|
|
3501
|
-
},
|
|
3531
|
+
}, Bc = /* @__PURE__ */ H(Dc, [["render", Kc]]), zc = {
|
|
3502
3532
|
name: "FieldKeyValuePairs",
|
|
3503
|
-
components: { TrashIcon:
|
|
3504
|
-
mixins: [
|
|
3533
|
+
components: { TrashIcon: lt },
|
|
3534
|
+
mixins: [ce],
|
|
3505
3535
|
inject: {
|
|
3506
3536
|
autofillSlot: {
|
|
3507
3537
|
from: he,
|
|
@@ -3552,16 +3582,16 @@ const Hc = {
|
|
|
3552
3582
|
this.pairs.splice(e, 1);
|
|
3553
3583
|
}
|
|
3554
3584
|
}
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3585
|
+
}, Hc = { class: "key-value-pairs-editor" }, xc = { class: "pair-item-cell" }, Yc = ["data-testid", "placeholder", "value", "onInput"], Gc = { class: "pair-item-cell" }, Wc = ["data-testid", "placeholder", "value", "onInput"];
|
|
3586
|
+
function Zc(e, t, n, r, a, i) {
|
|
3557
3587
|
const l = E("TrashIcon"), s = E("KButton");
|
|
3558
|
-
return d(), h("div",
|
|
3559
|
-
(d(!0), h(
|
|
3588
|
+
return d(), h("div", Hc, [
|
|
3589
|
+
(d(!0), h(D, null, Z(a.pairs, (o, u) => (d(), h("div", {
|
|
3560
3590
|
key: u,
|
|
3561
3591
|
class: "pair-item"
|
|
3562
3592
|
}, [
|
|
3563
|
-
|
|
3564
|
-
|
|
3593
|
+
f("div", xc, [
|
|
3594
|
+
f("input", {
|
|
3565
3595
|
class: "form-control",
|
|
3566
3596
|
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${u}`,
|
|
3567
3597
|
placeholder: e.schema.keyInputPlaceholder ?? "Key",
|
|
@@ -3570,15 +3600,15 @@ function Qc(e, t, n, r, a, i) {
|
|
|
3570
3600
|
onInput: (c) => {
|
|
3571
3601
|
i.onInput(c, u, "key");
|
|
3572
3602
|
}
|
|
3573
|
-
}, null, 40,
|
|
3574
|
-
(d(),
|
|
3603
|
+
}, null, 40, Yc),
|
|
3604
|
+
(d(), I(ee(i.autofillSlot), {
|
|
3575
3605
|
schema: e.schema,
|
|
3576
3606
|
update: (c) => i.onInput({ target: { value: c } }, u, "key"),
|
|
3577
3607
|
value: o.key
|
|
3578
3608
|
}, null, 8, ["schema", "update", "value"]))
|
|
3579
3609
|
]),
|
|
3580
|
-
|
|
3581
|
-
|
|
3610
|
+
f("div", Gc, [
|
|
3611
|
+
f("input", {
|
|
3582
3612
|
class: "form-control",
|
|
3583
3613
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
3584
3614
|
placeholder: e.schema.valueInputPlaceholder ?? "Value",
|
|
@@ -3587,14 +3617,14 @@ function Qc(e, t, n, r, a, i) {
|
|
|
3587
3617
|
onInput: (c) => {
|
|
3588
3618
|
i.onInput(c, u, "value");
|
|
3589
3619
|
}
|
|
3590
|
-
}, null, 40,
|
|
3591
|
-
(d(),
|
|
3620
|
+
}, null, 40, Wc),
|
|
3621
|
+
(d(), I(ee(i.autofillSlot), {
|
|
3592
3622
|
schema: e.schema,
|
|
3593
3623
|
update: (c) => i.onInput({ target: { value: c } }, u, "value"),
|
|
3594
3624
|
value: o.value
|
|
3595
3625
|
}, null, 8, ["schema", "update", "value"]))
|
|
3596
3626
|
]),
|
|
3597
|
-
|
|
3627
|
+
M(s, {
|
|
3598
3628
|
appearance: "tertiary",
|
|
3599
3629
|
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${u}`,
|
|
3600
3630
|
onClick: () => {
|
|
@@ -3602,26 +3632,26 @@ function Qc(e, t, n, r, a, i) {
|
|
|
3602
3632
|
}
|
|
3603
3633
|
}, {
|
|
3604
3634
|
default: w(() => [
|
|
3605
|
-
|
|
3635
|
+
M(l)
|
|
3606
3636
|
]),
|
|
3607
3637
|
_: 2
|
|
3608
3638
|
}, 1032, ["data-testid", "onClick"])
|
|
3609
3639
|
]))), 128)),
|
|
3610
|
-
|
|
3640
|
+
M(s, {
|
|
3611
3641
|
appearance: "tertiary",
|
|
3612
|
-
class:
|
|
3642
|
+
class: J(e.schema.newElementButtonLabelClasses),
|
|
3613
3643
|
"data-testid": `${e.getFieldID(e.schema)}-add-pair`,
|
|
3614
3644
|
type: "button",
|
|
3615
3645
|
onClick: i.addPair
|
|
3616
3646
|
}, {
|
|
3617
3647
|
default: w(() => [
|
|
3618
|
-
|
|
3648
|
+
ne(F(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
|
|
3619
3649
|
]),
|
|
3620
3650
|
_: 1
|
|
3621
3651
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3622
3652
|
]);
|
|
3623
3653
|
}
|
|
3624
|
-
const
|
|
3654
|
+
const Jc = /* @__PURE__ */ H(zc, [["render", Zc], ["__scopeId", "data-v-70998d5b"]]), Xc = /* @__PURE__ */ oe({
|
|
3625
3655
|
__name: "FieldLabel",
|
|
3626
3656
|
props: {
|
|
3627
3657
|
disabled: {
|
|
@@ -3648,7 +3678,7 @@ const em = /* @__PURE__ */ H(Yc, [["render", Qc], ["__scopeId", "data-v-70998d5b
|
|
|
3648
3678
|
}
|
|
3649
3679
|
},
|
|
3650
3680
|
setup(e) {
|
|
3651
|
-
const t = e, n =
|
|
3681
|
+
const t = e, n = at(t), { getFieldID: r, value: a } = dt.useAbstractFields({
|
|
3652
3682
|
model: n.model,
|
|
3653
3683
|
schema: t.schema,
|
|
3654
3684
|
formOptions: t.formOptions
|
|
@@ -3656,21 +3686,21 @@ const em = /* @__PURE__ */ H(Yc, [["render", Qc], ["__scopeId", "data-v-70998d5b
|
|
|
3656
3686
|
return (i, l) => {
|
|
3657
3687
|
const s = E("KLabel");
|
|
3658
3688
|
return d(), h("span", {
|
|
3659
|
-
class:
|
|
3689
|
+
class: J(["field-label", e.schema.fieldClasses])
|
|
3660
3690
|
}, [
|
|
3661
|
-
|
|
3662
|
-
id:
|
|
3691
|
+
M(s, {
|
|
3692
|
+
id: L(r)(e.schema)
|
|
3663
3693
|
}, {
|
|
3664
3694
|
default: w(() => [
|
|
3665
|
-
|
|
3695
|
+
ne(F(L(a)), 1)
|
|
3666
3696
|
]),
|
|
3667
3697
|
_: 1
|
|
3668
3698
|
}, 8, ["id"])
|
|
3669
3699
|
], 2);
|
|
3670
3700
|
};
|
|
3671
3701
|
}
|
|
3672
|
-
}),
|
|
3673
|
-
mixins: [
|
|
3702
|
+
}), Qc = /* @__PURE__ */ H(Xc, [["__scopeId", "data-v-d046a15a"]]), ef = {
|
|
3703
|
+
mixins: [ce],
|
|
3674
3704
|
emits: ["model-updated"],
|
|
3675
3705
|
methods: {
|
|
3676
3706
|
onUpdate(e) {
|
|
@@ -3678,9 +3708,9 @@ const em = /* @__PURE__ */ H(Yc, [["render", Qc], ["__scopeId", "data-v-70998d5b
|
|
|
3678
3708
|
}
|
|
3679
3709
|
}
|
|
3680
3710
|
};
|
|
3681
|
-
function
|
|
3711
|
+
function tf(e, t, n, r, a, i) {
|
|
3682
3712
|
const l = E("KMultiselect");
|
|
3683
|
-
return d(),
|
|
3713
|
+
return d(), I(l, {
|
|
3684
3714
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3685
3715
|
"data-testid": "field-multiselect",
|
|
3686
3716
|
items: e.schema.values,
|
|
@@ -3692,8 +3722,8 @@ function im(e, t, n, r, a, i) {
|
|
|
3692
3722
|
"onUpdate:modelValue": i.onUpdate
|
|
3693
3723
|
}, null, 8, ["aria-labelledby", "items", "label-attributes", "model-value", "placeholder", "required", "onUpdate:modelValue"]);
|
|
3694
3724
|
}
|
|
3695
|
-
const
|
|
3696
|
-
mixins: [
|
|
3725
|
+
const nf = /* @__PURE__ */ H(ef, [["render", tf]]), rf = {
|
|
3726
|
+
mixins: [ce],
|
|
3697
3727
|
emits: ["model-updated"],
|
|
3698
3728
|
data() {
|
|
3699
3729
|
return {
|
|
@@ -3727,40 +3757,40 @@ const am = /* @__PURE__ */ H(rm, [["render", im]]), sm = {
|
|
|
3727
3757
|
this.$emit("model-updated", e, t);
|
|
3728
3758
|
}
|
|
3729
3759
|
}
|
|
3730
|
-
},
|
|
3731
|
-
function
|
|
3760
|
+
}, af = { class: "selection-group" }, sf = { class: "form-group horizontal-radios" }, of = { class: "radio-group" }, lf = ["value"], df = { class: "control-help" }, uf = { class: "option-field" }, cf = { class: "option-field-container" };
|
|
3761
|
+
function ff(e, t, n, r, a, i) {
|
|
3732
3762
|
const l = E("vue-form-generator");
|
|
3733
|
-
return d(), h("div",
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
(d(!0), h(
|
|
3763
|
+
return d(), h("div", af, [
|
|
3764
|
+
f("div", sf, [
|
|
3765
|
+
f("div", of, [
|
|
3766
|
+
(d(!0), h(D, null, Z(e.schema.fields, (s, o) => (d(), h("div", {
|
|
3737
3767
|
key: o,
|
|
3738
3768
|
class: "option-group"
|
|
3739
3769
|
}, [
|
|
3740
|
-
|
|
3741
|
-
class:
|
|
3770
|
+
f("label", {
|
|
3771
|
+
class: J(["k-label", `${s.label}-check`])
|
|
3742
3772
|
}, [
|
|
3743
|
-
re(
|
|
3773
|
+
re(f("input", {
|
|
3744
3774
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => a.checkedGroup = u),
|
|
3745
3775
|
class: "k-input",
|
|
3746
3776
|
type: "radio",
|
|
3747
3777
|
value: o
|
|
3748
|
-
}, null, 8,
|
|
3778
|
+
}, null, 8, lf), [
|
|
3749
3779
|
[ri, a.checkedGroup]
|
|
3750
3780
|
]),
|
|
3751
|
-
|
|
3752
|
-
|
|
3781
|
+
ne(" " + F(s.label) + " ", 1),
|
|
3782
|
+
f("div", df, F(s.description), 1)
|
|
3753
3783
|
], 2)
|
|
3754
3784
|
]))), 128))
|
|
3755
3785
|
])
|
|
3756
3786
|
]),
|
|
3757
|
-
(d(!0), h(
|
|
3787
|
+
(d(!0), h(D, null, Z(e.schema.fields, (s, o) => (d(), h("div", {
|
|
3758
3788
|
key: o,
|
|
3759
3789
|
class: "option-group"
|
|
3760
3790
|
}, [
|
|
3761
|
-
re(
|
|
3762
|
-
|
|
3763
|
-
|
|
3791
|
+
re(f("div", uf, [
|
|
3792
|
+
f("div", cf, [
|
|
3793
|
+
M(l, {
|
|
3764
3794
|
model: e.model,
|
|
3765
3795
|
options: { helpAsHtml: !0 },
|
|
3766
3796
|
schema: { fields: s.fields },
|
|
@@ -3773,9 +3803,9 @@ function hm(e, t, n, r, a, i) {
|
|
|
3773
3803
|
]))), 128))
|
|
3774
3804
|
]);
|
|
3775
3805
|
}
|
|
3776
|
-
const
|
|
3806
|
+
const mf = /* @__PURE__ */ H(rf, [["render", ff], ["__scopeId", "data-v-0aaaf597"]]), hf = {
|
|
3777
3807
|
packageName: "forms"
|
|
3778
|
-
},
|
|
3808
|
+
}, pf = {
|
|
3779
3809
|
view_advanced_fields: "View Advanced Fields",
|
|
3780
3810
|
window_type: {
|
|
3781
3811
|
label: "Rate Limit Window Type",
|
|
@@ -3819,13 +3849,13 @@ const pm = /* @__PURE__ */ H(sm, [["render", hm], ["__scopeId", "data-v-0aaaf597
|
|
|
3819
3849
|
title: "Configure your Redis",
|
|
3820
3850
|
address_example: "e.g. localhost:6379"
|
|
3821
3851
|
}
|
|
3822
|
-
},
|
|
3852
|
+
}, gf = {
|
|
3823
3853
|
labels: {
|
|
3824
3854
|
on: "On",
|
|
3825
3855
|
off: "Off"
|
|
3826
3856
|
}
|
|
3827
3857
|
}, Ot = {
|
|
3828
|
-
general:
|
|
3858
|
+
general: hf,
|
|
3829
3859
|
"post-function": {
|
|
3830
3860
|
tags: {
|
|
3831
3861
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -3886,9 +3916,9 @@ const pm = /* @__PURE__ */ H(sm, [["render", hm], ["__scopeId", "data-v-0aaaf597
|
|
|
3886
3916
|
newElementButtonLabel: "+ Add"
|
|
3887
3917
|
}
|
|
3888
3918
|
},
|
|
3889
|
-
rla:
|
|
3890
|
-
vfg:
|
|
3891
|
-
},
|
|
3919
|
+
rla: pf,
|
|
3920
|
+
vfg: gf
|
|
3921
|
+
}, vf = { class: "form-field-wrapper" }, yf = /* @__PURE__ */ oe({
|
|
3892
3922
|
__name: "FieldSwitch",
|
|
3893
3923
|
props: {
|
|
3894
3924
|
disabled: {
|
|
@@ -3928,7 +3958,7 @@ const pm = /* @__PURE__ */ H(sm, [["render", hm], ["__scopeId", "data-v-0aaaf597
|
|
|
3928
3958
|
},
|
|
3929
3959
|
emits: ["modelUpdated"],
|
|
3930
3960
|
setup(e, { expose: t, emit: n }) {
|
|
3931
|
-
const r = e, a = n, { t: i } =
|
|
3961
|
+
const r = e, a = n, { t: i } = bt("en-us", Ot), l = (p) => p != null && r.schema.valueOn ? p === r.schema.valueOn : p, s = (p) => p != null && r.schema.valueOn ? p ? r.schema.valueOn : r.schema.valueOff : p, o = at(r), { getFieldID: u, value: c, clearValidationErrors: m } = dt.useAbstractFields({
|
|
3932
3962
|
model: o.model,
|
|
3933
3963
|
schema: r.schema,
|
|
3934
3964
|
formOptions: r.formOptions,
|
|
@@ -3939,39 +3969,39 @@ const pm = /* @__PURE__ */ H(sm, [["render", hm], ["__scopeId", "data-v-0aaaf597
|
|
|
3939
3969
|
}
|
|
3940
3970
|
});
|
|
3941
3971
|
return t({
|
|
3942
|
-
clearValidationErrors:
|
|
3943
|
-
}), (p,
|
|
3972
|
+
clearValidationErrors: m
|
|
3973
|
+
}), (p, U) => {
|
|
3944
3974
|
const V = E("KInputSwitch");
|
|
3945
|
-
return d(), h("div",
|
|
3946
|
-
|
|
3947
|
-
id:
|
|
3948
|
-
modelValue:
|
|
3949
|
-
"onUpdate:modelValue":
|
|
3975
|
+
return d(), h("div", vf, [
|
|
3976
|
+
M(V, {
|
|
3977
|
+
id: L(u)(e.schema),
|
|
3978
|
+
modelValue: L(c),
|
|
3979
|
+
"onUpdate:modelValue": U[0] || (U[0] = (y) => Dt(c) ? c.value = y : null),
|
|
3950
3980
|
autocomplete: e.schema.autocomplete,
|
|
3951
|
-
class:
|
|
3981
|
+
class: J(e.schema.fieldClasses),
|
|
3952
3982
|
disabled: e.disabled || void 0,
|
|
3953
|
-
label:
|
|
3983
|
+
label: L(c) ? e.schema.textOn || L(i)("vfg.labels.on") : e.schema.textOff || L(i)("vfg.labels.off"),
|
|
3954
3984
|
name: e.schema.inputName
|
|
3955
3985
|
}, null, 8, ["id", "modelValue", "autocomplete", "class", "disabled", "label", "name"])
|
|
3956
3986
|
]);
|
|
3957
3987
|
};
|
|
3958
3988
|
}
|
|
3959
|
-
}),
|
|
3960
|
-
mixins: [
|
|
3989
|
+
}), bf = {
|
|
3990
|
+
mixins: [ce],
|
|
3961
3991
|
inject: {
|
|
3962
3992
|
autofillSlot: {
|
|
3963
3993
|
from: he,
|
|
3964
3994
|
default: void 0
|
|
3965
3995
|
}
|
|
3966
3996
|
}
|
|
3967
|
-
},
|
|
3968
|
-
function
|
|
3969
|
-
const l =
|
|
3970
|
-
return d(), h("div",
|
|
3971
|
-
re(
|
|
3997
|
+
}, _f = { class: "field-textarea" }, wf = ["id", "disabled", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows"];
|
|
3998
|
+
function Mf(e, t, n, r, a, i) {
|
|
3999
|
+
const l = gt("attributes");
|
|
4000
|
+
return d(), h("div", _f, [
|
|
4001
|
+
re(f("textarea", {
|
|
3972
4002
|
id: e.getFieldID(e.schema),
|
|
3973
4003
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.value = s),
|
|
3974
|
-
class:
|
|
4004
|
+
class: J(["form-control", e.schema.fieldClasses]),
|
|
3975
4005
|
disabled: e.disabled || null,
|
|
3976
4006
|
maxlength: e.schema.max,
|
|
3977
4007
|
minlength: e.schema.min,
|
|
@@ -3980,42 +4010,42 @@ function Tm(e, t, n, r, a, i) {
|
|
|
3980
4010
|
readonly: e.schema.readonly,
|
|
3981
4011
|
required: e.schema.required,
|
|
3982
4012
|
rows: e.schema.rows || 2
|
|
3983
|
-
}, null, 10,
|
|
3984
|
-
[
|
|
4013
|
+
}, null, 10, wf), [
|
|
4014
|
+
[Ve, e.value],
|
|
3985
4015
|
[l, "input"]
|
|
3986
4016
|
]),
|
|
3987
|
-
(d(),
|
|
4017
|
+
(d(), I(ee(i.autofillSlot), {
|
|
3988
4018
|
schema: e.schema,
|
|
3989
4019
|
update: (s) => e.value = s,
|
|
3990
4020
|
value: e.value
|
|
3991
4021
|
}, null, 8, ["schema", "update", "value"]))
|
|
3992
4022
|
]);
|
|
3993
4023
|
}
|
|
3994
|
-
const
|
|
4024
|
+
const Sf = /* @__PURE__ */ H(bf, [["render", Mf], ["__scopeId", "data-v-9a62b6b0"]]), Tf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3995
4025
|
__proto__: null,
|
|
3996
4026
|
FieldAdvanced: ad,
|
|
3997
|
-
FieldArray:
|
|
3998
|
-
FieldArrayCardContainer:
|
|
3999
|
-
FieldArrayItem:
|
|
4027
|
+
FieldArray: Ec,
|
|
4028
|
+
FieldArrayCardContainer: Vr,
|
|
4029
|
+
FieldArrayItem: Nr,
|
|
4000
4030
|
FieldArrayMultiItem: Lr,
|
|
4001
4031
|
FieldAutoSuggest: Pr,
|
|
4002
|
-
FieldCheckbox:
|
|
4003
|
-
FieldChecklist:
|
|
4032
|
+
FieldCheckbox: Fc,
|
|
4033
|
+
FieldChecklist: Bc,
|
|
4004
4034
|
FieldInput: qr,
|
|
4005
|
-
FieldKeyValuePairs:
|
|
4006
|
-
FieldLabel:
|
|
4035
|
+
FieldKeyValuePairs: Jc,
|
|
4036
|
+
FieldLabel: Qc,
|
|
4007
4037
|
FieldMetric: jr,
|
|
4008
|
-
FieldMultiselect:
|
|
4038
|
+
FieldMultiselect: nf,
|
|
4009
4039
|
FieldObject: Rr,
|
|
4010
|
-
FieldObjectAdvanced:
|
|
4040
|
+
FieldObjectAdvanced: Dr,
|
|
4011
4041
|
FieldRadio: Br,
|
|
4012
4042
|
FieldSelect: Gr,
|
|
4013
|
-
FieldSelectionGroup:
|
|
4014
|
-
FieldSwitch:
|
|
4015
|
-
FieldTextArea:
|
|
4016
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4043
|
+
FieldSelectionGroup: mf,
|
|
4044
|
+
FieldSwitch: yf,
|
|
4045
|
+
FieldTextArea: Sf
|
|
4046
|
+
}, Symbol.toStringTag, { value: "Module" })), If = {
|
|
4017
4047
|
name: "FormGroup",
|
|
4018
|
-
components:
|
|
4048
|
+
components: Tf,
|
|
4019
4049
|
mixins: [_r],
|
|
4020
4050
|
props: {
|
|
4021
4051
|
vfg: {
|
|
@@ -4065,7 +4095,7 @@ const Im = /* @__PURE__ */ H(wm, [["render", Tm], ["__scopeId", "data-v-9a62b6b0
|
|
|
4065
4095
|
},
|
|
4066
4096
|
getFieldID(e) {
|
|
4067
4097
|
const t = B(this.options, "fieldIdPrefix", "");
|
|
4068
|
-
return
|
|
4098
|
+
return Jt(e, t);
|
|
4069
4099
|
},
|
|
4070
4100
|
getTooltipId(e) {
|
|
4071
4101
|
return `${this.getFieldID(e)}-tooltip`;
|
|
@@ -4110,25 +4140,25 @@ const Im = /* @__PURE__ */ H(wm, [["render", Tm], ["__scopeId", "data-v-9a62b6b0
|
|
|
4110
4140
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
4111
4141
|
}
|
|
4112
4142
|
}
|
|
4113
|
-
},
|
|
4143
|
+
}, Af = (e) => (_e("data-v-3cb920d4"), e = e(), we(), e), Of = ["innerHTML"], Ef = { class: "icon-wrapper" }, Cf = ["innerHTML"], $f = {
|
|
4114
4144
|
key: 0,
|
|
4115
4145
|
class: "link-wrapper"
|
|
4116
|
-
},
|
|
4146
|
+
}, Ff = /* @__PURE__ */ Af(() => /* @__PURE__ */ f("span", { class: "section-header" }, "More info", -1)), Uf = { class: "field-wrap" }, kf = {
|
|
4117
4147
|
key: 0,
|
|
4118
4148
|
class: "buttons"
|
|
4119
|
-
},
|
|
4149
|
+
}, Vf = ["type", "onClick", "textContent"], Nf = ["innerHTML"], Lf = {
|
|
4120
4150
|
key: 2,
|
|
4121
4151
|
class: "errors help-block"
|
|
4122
|
-
},
|
|
4123
|
-
function
|
|
4152
|
+
}, Pf = ["innerHTML"];
|
|
4153
|
+
function qf(e, t, n, r, a, i) {
|
|
4124
4154
|
const l = E("KExternalLink"), s = E("KLabel");
|
|
4125
4155
|
return d(), h("div", {
|
|
4126
|
-
class:
|
|
4156
|
+
class: J(["form-group", e.getFieldRowClasses(n.field)])
|
|
4127
4157
|
}, [
|
|
4128
|
-
i.fieldTypeHasLabel(n.field) ? (d(),
|
|
4158
|
+
i.fieldTypeHasLabel(n.field) ? (d(), I(s, {
|
|
4129
4159
|
key: 0,
|
|
4130
4160
|
"aria-describedby": n.field.help ? i.getTooltipId(n.field) : void 0,
|
|
4131
|
-
class:
|
|
4161
|
+
class: J([n.field.labelClasses, "form-group-label"]),
|
|
4132
4162
|
for: i.getFieldID(n.field),
|
|
4133
4163
|
info: !n.options.helpAsHtml && n.field.help ? n.field.help : void 0,
|
|
4134
4164
|
"tooltip-attributes": n.field.help ? {
|
|
@@ -4138,17 +4168,17 @@ function Rm(e, t, n, r, a, i) {
|
|
|
4138
4168
|
} : void 0
|
|
4139
4169
|
}, Gn({
|
|
4140
4170
|
default: w(() => [
|
|
4141
|
-
|
|
4142
|
-
|
|
4171
|
+
f("div", Ef, [
|
|
4172
|
+
f("span", {
|
|
4143
4173
|
innerHTML: i.formattedLabel(n.field.label)
|
|
4144
|
-
}, null, 8,
|
|
4174
|
+
}, null, 8, Cf)
|
|
4145
4175
|
]),
|
|
4146
|
-
n.field.link ? (d(), h("div",
|
|
4147
|
-
|
|
4176
|
+
n.field.link ? (d(), h("div", $f, [
|
|
4177
|
+
M(l, {
|
|
4148
4178
|
href: n.field.link
|
|
4149
4179
|
}, {
|
|
4150
4180
|
default: w(() => [
|
|
4151
|
-
|
|
4181
|
+
Ff
|
|
4152
4182
|
]),
|
|
4153
4183
|
_: 1
|
|
4154
4184
|
}, 8, ["href"])
|
|
@@ -4159,15 +4189,15 @@ function Rm(e, t, n, r, a, i) {
|
|
|
4159
4189
|
n.options.helpAsHtml && n.field.help ? {
|
|
4160
4190
|
name: "tooltip",
|
|
4161
4191
|
fn: w(() => [
|
|
4162
|
-
|
|
4192
|
+
f("div", {
|
|
4163
4193
|
innerHTML: n.field.help
|
|
4164
|
-
}, null, 8,
|
|
4194
|
+
}, null, 8, Of)
|
|
4165
4195
|
]),
|
|
4166
4196
|
key: "0"
|
|
4167
4197
|
} : void 0
|
|
4168
4198
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : O("", !0),
|
|
4169
|
-
|
|
4170
|
-
(d(),
|
|
4199
|
+
f("div", Uf, [
|
|
4200
|
+
(d(), I(ee(i.getFieldType(n.field)), Ue(e.$attrs, {
|
|
4171
4201
|
ref: "child",
|
|
4172
4202
|
disabled: e.fieldDisabled(n.field) || null,
|
|
4173
4203
|
"form-options": n.options,
|
|
@@ -4178,32 +4208,32 @@ function Rm(e, t, n, r, a, i) {
|
|
|
4178
4208
|
onModelUpdated: i.onModelUpdated,
|
|
4179
4209
|
onValidated: i.onFieldValidated
|
|
4180
4210
|
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onValidated"])),
|
|
4181
|
-
i.buttonVisibility(n.field) ? (d(), h("div",
|
|
4182
|
-
(d(!0), h(
|
|
4211
|
+
i.buttonVisibility(n.field) ? (d(), h("div", kf, [
|
|
4212
|
+
(d(!0), h(D, null, Z(n.field.buttons, (o, u) => (d(), h("button", {
|
|
4183
4213
|
key: u,
|
|
4184
|
-
class:
|
|
4214
|
+
class: J(o.classes),
|
|
4185
4215
|
type: i.getButtonType(o),
|
|
4186
4216
|
onClick: (c) => i.buttonClickHandler(o, n.field, c),
|
|
4187
4217
|
textContent: F(o.label)
|
|
4188
|
-
}, null, 10,
|
|
4218
|
+
}, null, 10, Vf))), 128))
|
|
4189
4219
|
])) : O("", !0)
|
|
4190
4220
|
]),
|
|
4191
4221
|
n.field.hint && i.getFieldType(n.field) !== "field-input" ? (d(), h("div", {
|
|
4192
4222
|
key: 1,
|
|
4193
4223
|
class: "hint",
|
|
4194
4224
|
innerHTML: i.fieldHint(n.field)
|
|
4195
|
-
}, null, 8,
|
|
4196
|
-
i.fieldErrors(n.field).length > 0 ? (d(), h("div",
|
|
4197
|
-
(d(!0), h(
|
|
4225
|
+
}, null, 8, Nf)) : O("", !0),
|
|
4226
|
+
i.fieldErrors(n.field).length > 0 ? (d(), h("div", Lf, [
|
|
4227
|
+
(d(!0), h(D, null, Z(i.fieldErrors(n.field), (o, u) => (d(), h("span", {
|
|
4198
4228
|
key: u,
|
|
4199
4229
|
innerHTML: o
|
|
4200
|
-
}, null, 8,
|
|
4230
|
+
}, null, 8, Pf))), 128))
|
|
4201
4231
|
])) : O("", !0)
|
|
4202
4232
|
], 2);
|
|
4203
4233
|
}
|
|
4204
|
-
const
|
|
4234
|
+
const jf = /* @__PURE__ */ H(If, [["render", qf], ["__scopeId", "data-v-3cb920d4"]]), Rf = {
|
|
4205
4235
|
name: "FormGenerator",
|
|
4206
|
-
components: { formGroup:
|
|
4236
|
+
components: { formGroup: jf },
|
|
4207
4237
|
mixins: [_r],
|
|
4208
4238
|
inject: {
|
|
4209
4239
|
// Inject AUTOFILL_SLOT for provide()
|
|
@@ -4351,19 +4381,19 @@ const Dm = /* @__PURE__ */ H(Om, [["render", Rm], ["__scopeId", "data-v-3cb920d4
|
|
|
4351
4381
|
});
|
|
4352
4382
|
}
|
|
4353
4383
|
}
|
|
4354
|
-
},
|
|
4384
|
+
}, Kf = {
|
|
4355
4385
|
key: 0,
|
|
4356
4386
|
class: "vue-form-generator"
|
|
4357
|
-
},
|
|
4358
|
-
function
|
|
4387
|
+
}, Df = { key: 0 };
|
|
4388
|
+
function Bf(e, t, n, r, a, i) {
|
|
4359
4389
|
const l = E("form-group"), s = E("KCollapse");
|
|
4360
|
-
return n.schema != null ? (d(), h("div",
|
|
4361
|
-
n.schema.fields ? (d(),
|
|
4390
|
+
return n.schema != null ? (d(), h("div", Kf, [
|
|
4391
|
+
n.schema.fields ? (d(), I(ee(n.tag), { key: 0 }, {
|
|
4362
4392
|
default: w(() => [
|
|
4363
|
-
(d(!0), h(
|
|
4393
|
+
(d(!0), h(D, null, Z(i.fields, (o) => (d(), h(D, {
|
|
4364
4394
|
key: o.model
|
|
4365
4395
|
}, [
|
|
4366
|
-
i.fieldVisible(o) ? (d(),
|
|
4396
|
+
i.fieldVisible(o) ? (d(), I(l, {
|
|
4367
4397
|
key: 0,
|
|
4368
4398
|
ref_for: !0,
|
|
4369
4399
|
ref: "children",
|
|
@@ -4379,28 +4409,28 @@ function Hm(e, t, n, r, a, i) {
|
|
|
4379
4409
|
]),
|
|
4380
4410
|
_: 1
|
|
4381
4411
|
})) : O("", !0),
|
|
4382
|
-
(d(!0), h(
|
|
4412
|
+
(d(!0), h(D, null, Z(i.groups, (o, u) => (d(), h(D, {
|
|
4383
4413
|
key: `group-${u}`
|
|
4384
4414
|
}, [
|
|
4385
|
-
o.collapsible !== void 0 && o.collapsible !== !1 ? (d(),
|
|
4415
|
+
o.collapsible !== void 0 && o.collapsible !== !1 ? (d(), I(s, {
|
|
4386
4416
|
key: 0,
|
|
4387
4417
|
class: "root-level-collapse",
|
|
4388
4418
|
"model-value": !1,
|
|
4389
4419
|
title: o.collapsible.title
|
|
4390
4420
|
}, Gn({
|
|
4391
4421
|
default: w(() => {
|
|
4392
|
-
var c,
|
|
4422
|
+
var c, m, p, U;
|
|
4393
4423
|
return [
|
|
4394
|
-
(c = o.slots) != null && c.beforeContent ?
|
|
4395
|
-
o.fields.length === 0 && ((p = o.slots) != null && p.emptyState) ?
|
|
4424
|
+
(c = o.slots) != null && c.beforeContent ? Ee(e.$slots, (m = o.slots) == null ? void 0 : m.beforeContent, { key: 0 }) : O("", !0),
|
|
4425
|
+
o.fields.length === 0 && ((p = o.slots) != null && p.emptyState) ? Ee(e.$slots, (U = o.slots) == null ? void 0 : U.emptyState, { key: 1 }) : (d(), I(ee(n.tag), {
|
|
4396
4426
|
key: 2,
|
|
4397
|
-
class:
|
|
4427
|
+
class: J(e.getFieldRowClasses(o))
|
|
4398
4428
|
}, {
|
|
4399
4429
|
default: w(() => [
|
|
4400
|
-
(d(!0), h(
|
|
4430
|
+
(d(!0), h(D, null, Z(o.fields, (V) => (d(), h(D, {
|
|
4401
4431
|
key: V.model
|
|
4402
4432
|
}, [
|
|
4403
|
-
i.fieldVisible(V) ? (d(),
|
|
4433
|
+
i.fieldVisible(V) ? (d(), I(l, {
|
|
4404
4434
|
key: 0,
|
|
4405
4435
|
ref_for: !0,
|
|
4406
4436
|
ref: "children",
|
|
@@ -4416,7 +4446,7 @@ function Hm(e, t, n, r, a, i) {
|
|
|
4416
4446
|
]),
|
|
4417
4447
|
_: 2
|
|
4418
4448
|
}, 1032, ["class"])),
|
|
4419
|
-
o.collapsible !== !0 && o.collapsible.nestedCollapsible && o.collapsible.nestedCollapsible.fields.length > 0 ? (d(),
|
|
4449
|
+
o.collapsible !== !0 && o.collapsible.nestedCollapsible && o.collapsible.nestedCollapsible.fields.length > 0 ? (d(), I(s, {
|
|
4420
4450
|
key: 3,
|
|
4421
4451
|
class: "nested-collapse",
|
|
4422
4452
|
"model-value": a.collapseStates[`group-${u}-nested`] ?? !0,
|
|
@@ -4425,14 +4455,14 @@ function Hm(e, t, n, r, a, i) {
|
|
|
4425
4455
|
"onUpdate:modelValue": (V) => a.collapseStates[`group-${u}-nested`] = V
|
|
4426
4456
|
}, {
|
|
4427
4457
|
default: w(() => [
|
|
4428
|
-
(d(),
|
|
4429
|
-
class:
|
|
4458
|
+
(d(), I(ee(n.tag), {
|
|
4459
|
+
class: J(e.getFieldRowClasses(o))
|
|
4430
4460
|
}, {
|
|
4431
4461
|
default: w(() => [
|
|
4432
|
-
(d(!0), h(
|
|
4462
|
+
(d(!0), h(D, null, Z(o.collapsible.nestedCollapsible.fields, (V) => (d(), h(D, {
|
|
4433
4463
|
key: V.model
|
|
4434
4464
|
}, [
|
|
4435
|
-
i.fieldVisible(V) ? (d(),
|
|
4465
|
+
i.fieldVisible(V) ? (d(), I(l, {
|
|
4436
4466
|
key: 0,
|
|
4437
4467
|
ref_for: !0,
|
|
4438
4468
|
ref: "children",
|
|
@@ -4458,20 +4488,20 @@ function Hm(e, t, n, r, a, i) {
|
|
|
4458
4488
|
o.collapsible.description ? {
|
|
4459
4489
|
name: "visible-content",
|
|
4460
4490
|
fn: w(() => [
|
|
4461
|
-
|
|
4491
|
+
ne(F(o.collapsible.description), 1)
|
|
4462
4492
|
]),
|
|
4463
4493
|
key: "0"
|
|
4464
4494
|
} : void 0
|
|
4465
|
-
]), 1032, ["title"])) : (d(),
|
|
4495
|
+
]), 1032, ["title"])) : (d(), I(ee(n.tag), {
|
|
4466
4496
|
key: 1,
|
|
4467
|
-
class:
|
|
4497
|
+
class: J(e.getFieldRowClasses(o))
|
|
4468
4498
|
}, {
|
|
4469
4499
|
default: w(() => [
|
|
4470
|
-
o.legend ? (d(), h("legend",
|
|
4471
|
-
(d(!0), h(
|
|
4500
|
+
o.legend ? (d(), h("legend", Df, F(o.legend), 1)) : O("", !0),
|
|
4501
|
+
(d(!0), h(D, null, Z(o.fields, (c) => (d(), h(D, {
|
|
4472
4502
|
key: c.model
|
|
4473
4503
|
}, [
|
|
4474
|
-
i.fieldVisible(c) ? (d(),
|
|
4504
|
+
i.fieldVisible(c) ? (d(), I(l, {
|
|
4475
4505
|
key: 0,
|
|
4476
4506
|
ref_for: !0,
|
|
4477
4507
|
ref: "children",
|
|
@@ -4490,11 +4520,11 @@ function Hm(e, t, n, r, a, i) {
|
|
|
4490
4520
|
], 64))), 128))
|
|
4491
4521
|
])) : O("", !0);
|
|
4492
4522
|
}
|
|
4493
|
-
const
|
|
4523
|
+
const de = /* @__PURE__ */ H(Rf, [["render", Bf]]), zn = /* @__PURE__ */ new Set([
|
|
4494
4524
|
"config-client_id",
|
|
4495
4525
|
"config-client_secret",
|
|
4496
4526
|
"config-issuer"
|
|
4497
|
-
]),
|
|
4527
|
+
]), Hn = /* @__PURE__ */ new Set([
|
|
4498
4528
|
"config-scopes_claim",
|
|
4499
4529
|
"config-scopes_required",
|
|
4500
4530
|
"config-audience_claim",
|
|
@@ -4504,9 +4534,9 @@ const le = /* @__PURE__ */ H(Km, [["render", Hm]]), Bn = /* @__PURE__ */ new Set
|
|
|
4504
4534
|
"config-groups_claim",
|
|
4505
4535
|
"config-groups_required",
|
|
4506
4536
|
"config-authenticated_groups_claim"
|
|
4507
|
-
]),
|
|
4537
|
+
]), zf = {
|
|
4508
4538
|
name: "OIDCForm",
|
|
4509
|
-
components: { VueFormGenerator:
|
|
4539
|
+
components: { VueFormGenerator: de },
|
|
4510
4540
|
provide() {
|
|
4511
4541
|
var e;
|
|
4512
4542
|
return {
|
|
@@ -4588,12 +4618,12 @@ const le = /* @__PURE__ */ H(Km, [["render", Hm]]), Bn = /* @__PURE__ */ new Set
|
|
|
4588
4618
|
};
|
|
4589
4619
|
const t = this.formSchema.fields.reduce((n, r) => (n[r.model] = r, n), {});
|
|
4590
4620
|
this.commonFieldsSchema = {
|
|
4591
|
-
fields: Array.from(Bn).reduce((n, r) => (t[r] && n.push(t[r]), n), [])
|
|
4592
|
-
}, this.authFieldsSchema = {
|
|
4593
4621
|
fields: Array.from(zn).reduce((n, r) => (t[r] && n.push(t[r]), n), [])
|
|
4622
|
+
}, this.authFieldsSchema = {
|
|
4623
|
+
fields: Array.from(Hn).reduce((n, r) => (t[r] && n.push(t[r]), n), [])
|
|
4594
4624
|
}, this.advancedFieldsSchema = {
|
|
4595
4625
|
fields: this.formSchema.fields.filter(
|
|
4596
|
-
(n) => n.model.startsWith("config") && n.model !== "config-auth_methods" && !
|
|
4626
|
+
(n) => n.model.startsWith("config") && n.model !== "config-auth_methods" && !zn.has(n.model) && !Hn.has(n.model) || n.model === "tags"
|
|
4597
4627
|
).reduce((n, r) => {
|
|
4598
4628
|
var a, i, l, s;
|
|
4599
4629
|
switch (r.model) {
|
|
@@ -4689,11 +4719,11 @@ const le = /* @__PURE__ */ H(Km, [["render", Hm]]), Bn = /* @__PURE__ */ new Set
|
|
|
4689
4719
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
|
|
4690
4720
|
}
|
|
4691
4721
|
}
|
|
4692
|
-
}, We = (e) => (_e("data-v-bb72c68e"), e = e(), we(), e),
|
|
4693
|
-
function
|
|
4694
|
-
const l = E("VueFormGenerator"), s = E("KExternalLink"), o = E("KLabel"), u = E("KCheckbox"), c = E("KInputSwitch"),
|
|
4722
|
+
}, We = (e) => (_e("data-v-bb72c68e"), e = e(), we(), e), Hf = { class: "general-settings" }, xf = { class: "link-wrapper" }, Yf = /* @__PURE__ */ We(() => /* @__PURE__ */ f("span", { class: "section-header" }, "Common Configuration Settings", -1)), Gf = /* @__PURE__ */ We(() => /* @__PURE__ */ f("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), Wf = { class: "auth-method-container" }, Zf = { class: "general-settings" }, Jf = { class: "link-wrapper" }, Xf = /* @__PURE__ */ We(() => /* @__PURE__ */ f("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), Qf = /* @__PURE__ */ We(() => /* @__PURE__ */ f("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), em = { class: "general-settings" }, tm = { class: "link-wrapper" }, nm = /* @__PURE__ */ We(() => /* @__PURE__ */ f("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), rm = /* @__PURE__ */ We(() => /* @__PURE__ */ f("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
|
|
4723
|
+
function im(e, t, n, r, a, i) {
|
|
4724
|
+
const l = E("VueFormGenerator"), s = E("KExternalLink"), o = E("KLabel"), u = E("KCheckbox"), c = E("KInputSwitch"), m = E("KTabs");
|
|
4695
4725
|
return d(), h("div", null, [
|
|
4696
|
-
n.formModel.id && n.isEditing || !n.isEditing ? (d(),
|
|
4726
|
+
n.formModel.id && n.isEditing || !n.isEditing ? (d(), I(l, {
|
|
4697
4727
|
key: 0,
|
|
4698
4728
|
class: "global-fields",
|
|
4699
4729
|
model: n.formModel,
|
|
@@ -4701,49 +4731,49 @@ function of(e, t, n, r, a, i) {
|
|
|
4701
4731
|
schema: a.globalFields,
|
|
4702
4732
|
onModelUpdated: n.onModelUpdated
|
|
4703
4733
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
4704
|
-
|
|
4734
|
+
M(m, { tabs: a.tabs }, {
|
|
4705
4735
|
common: w(() => [
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4736
|
+
f("div", Hf, [
|
|
4737
|
+
f("div", xf, [
|
|
4738
|
+
M(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
4709
4739
|
default: w(() => [
|
|
4710
|
-
|
|
4740
|
+
Yf
|
|
4711
4741
|
]),
|
|
4712
4742
|
_: 1
|
|
4713
4743
|
})
|
|
4714
4744
|
]),
|
|
4715
|
-
|
|
4716
|
-
i.displayForm ? (d(),
|
|
4745
|
+
Gf,
|
|
4746
|
+
i.displayForm ? (d(), I(l, {
|
|
4717
4747
|
key: 0,
|
|
4718
4748
|
model: n.formModel,
|
|
4719
4749
|
options: n.formOptions,
|
|
4720
4750
|
schema: a.commonFieldsSchema,
|
|
4721
4751
|
onModelUpdated: n.onModelUpdated
|
|
4722
4752
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
4723
|
-
|
|
4753
|
+
M(o, null, {
|
|
4724
4754
|
default: w(() => [
|
|
4725
|
-
|
|
4755
|
+
ne("Auth Methods")
|
|
4726
4756
|
]),
|
|
4727
4757
|
_: 1
|
|
4728
4758
|
}),
|
|
4729
|
-
|
|
4730
|
-
(d(!0), h(
|
|
4759
|
+
f("div", Wf, [
|
|
4760
|
+
(d(!0), h(D, null, Z(a.authMethods, (p) => (d(), h("div", {
|
|
4731
4761
|
key: p.value,
|
|
4732
4762
|
class: "auth-method"
|
|
4733
4763
|
}, [
|
|
4734
|
-
|
|
4764
|
+
M(u, {
|
|
4735
4765
|
modelValue: p.prop,
|
|
4736
|
-
"onUpdate:modelValue": (
|
|
4737
|
-
onChange: (
|
|
4766
|
+
"onUpdate:modelValue": (U) => p.prop = U,
|
|
4767
|
+
onChange: (U) => i.handleUpdate(U, p.value)
|
|
4738
4768
|
}, {
|
|
4739
4769
|
default: w(() => [
|
|
4740
|
-
|
|
4770
|
+
ne(F(p.label), 1)
|
|
4741
4771
|
]),
|
|
4742
4772
|
_: 2
|
|
4743
4773
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
4744
4774
|
]))), 128))
|
|
4745
4775
|
]),
|
|
4746
|
-
|
|
4776
|
+
M(c, {
|
|
4747
4777
|
modelValue: a.sessionManagement,
|
|
4748
4778
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => a.sessionManagement = p),
|
|
4749
4779
|
label: "Enable Session Management",
|
|
@@ -4752,17 +4782,17 @@ function of(e, t, n, r, a, i) {
|
|
|
4752
4782
|
])
|
|
4753
4783
|
]),
|
|
4754
4784
|
authorization: w(() => [
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4785
|
+
f("div", Zf, [
|
|
4786
|
+
f("div", Jf, [
|
|
4787
|
+
M(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
4758
4788
|
default: w(() => [
|
|
4759
|
-
|
|
4789
|
+
Xf
|
|
4760
4790
|
]),
|
|
4761
4791
|
_: 1
|
|
4762
4792
|
})
|
|
4763
4793
|
]),
|
|
4764
|
-
|
|
4765
|
-
i.displayForm ? (d(),
|
|
4794
|
+
Qf,
|
|
4795
|
+
i.displayForm ? (d(), I(l, {
|
|
4766
4796
|
key: 0,
|
|
4767
4797
|
model: n.formModel,
|
|
4768
4798
|
options: n.formOptions,
|
|
@@ -4770,24 +4800,24 @@ function of(e, t, n, r, a, i) {
|
|
|
4770
4800
|
onModelUpdated: n.onModelUpdated
|
|
4771
4801
|
}, {
|
|
4772
4802
|
"autofill-provider": w((p) => [
|
|
4773
|
-
|
|
4803
|
+
Ee(e.$slots, "autofill-provider", ai(si(p)), void 0, !0)
|
|
4774
4804
|
]),
|
|
4775
4805
|
_: 3
|
|
4776
4806
|
}, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0)
|
|
4777
4807
|
])
|
|
4778
4808
|
]),
|
|
4779
4809
|
advanced: w(() => [
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4810
|
+
f("div", em, [
|
|
4811
|
+
f("div", tm, [
|
|
4812
|
+
M(s, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
4783
4813
|
default: w(() => [
|
|
4784
|
-
|
|
4814
|
+
nm
|
|
4785
4815
|
]),
|
|
4786
4816
|
_: 1
|
|
4787
4817
|
})
|
|
4788
4818
|
]),
|
|
4789
|
-
|
|
4790
|
-
i.displayForm ? (d(),
|
|
4819
|
+
rm,
|
|
4820
|
+
i.displayForm ? (d(), I(l, {
|
|
4791
4821
|
key: 0,
|
|
4792
4822
|
model: n.formModel,
|
|
4793
4823
|
options: n.formOptions,
|
|
@@ -4800,7 +4830,7 @@ function of(e, t, n, r, a, i) {
|
|
|
4800
4830
|
}, 8, ["tabs"])
|
|
4801
4831
|
]);
|
|
4802
4832
|
}
|
|
4803
|
-
const
|
|
4833
|
+
const am = /* @__PURE__ */ H(zf, [["render", im], ["__scopeId", "data-v-bb72c68e"]]), sm = /* @__PURE__ */ oe({
|
|
4804
4834
|
__name: "PostFunction",
|
|
4805
4835
|
props: {
|
|
4806
4836
|
formModel: {
|
|
@@ -4827,15 +4857,15 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4827
4857
|
},
|
|
4828
4858
|
setup(e) {
|
|
4829
4859
|
var l;
|
|
4830
|
-
|
|
4831
|
-
const { t, te: n } =
|
|
4860
|
+
vt(he, (l = yt()) == null ? void 0 : l[Ge]);
|
|
4861
|
+
const { t, te: n } = bt("en-us", Ot), r = e, a = j(() => r.formModel.id && r.isEditing || !r.isEditing), i = j(() => {
|
|
4832
4862
|
const s = r.formSchema;
|
|
4833
4863
|
return s.fields.map((o) => {
|
|
4834
4864
|
const u = `post-function.${o.model}`;
|
|
4835
4865
|
return o.hint = n(`${u}.hint`) && t(`${u}.hint`) || o.hint, o.help = n(`${u}.help`) && t(`${u}.help`) || o.help, o.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || o.newElementButtonLabel, o.model !== "tags" && (o.valueType === "array" || o.type === "array") && (o.type = "array", o.valueArrayType = "array", o.itemContainerComponent = "FieldArrayItem", o.fieldClasses = "post-function-array-item-container", o.fieldItemsClasses = "post-function-array-item", o.inputAttributes = { ...o.inputAttributes, type: "textarea" }), o;
|
|
4836
4866
|
}), s;
|
|
4837
4867
|
});
|
|
4838
|
-
return (s, o) => a.value ? (d(),
|
|
4868
|
+
return (s, o) => a.value ? (d(), I(de, {
|
|
4839
4869
|
key: 0,
|
|
4840
4870
|
model: e.formModel,
|
|
4841
4871
|
options: e.formOptions,
|
|
@@ -4843,7 +4873,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4843
4873
|
onModelUpdated: e.onModelUpdated
|
|
4844
4874
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0);
|
|
4845
4875
|
}
|
|
4846
|
-
}),
|
|
4876
|
+
}), om = /* @__PURE__ */ H(sm, [["__scopeId", "data-v-f54f37ae"]]), lm = /* @__PURE__ */ oe({
|
|
4847
4877
|
__name: "ExitTransformer",
|
|
4848
4878
|
props: {
|
|
4849
4879
|
formModel: {
|
|
@@ -4870,15 +4900,15 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4870
4900
|
},
|
|
4871
4901
|
setup(e) {
|
|
4872
4902
|
var l;
|
|
4873
|
-
|
|
4874
|
-
const { t, te: n } =
|
|
4903
|
+
vt(he, (l = yt()) == null ? void 0 : l[Ge]);
|
|
4904
|
+
const { t, te: n } = bt("en-us", Ot), r = e, a = j(() => r.formModel.id && r.isEditing || !r.isEditing), i = j(() => {
|
|
4875
4905
|
const s = r.formSchema;
|
|
4876
4906
|
return s.fields.map((o) => {
|
|
4877
4907
|
const u = `exit-transformer.${o.model}`;
|
|
4878
4908
|
return o.hint = n(`${u}.hint`) && t(`${u}.hint`) || o.hint, o.help = n(`${u}.help`) && t(`${u}.help`) || o.help, o.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || o.newElementButtonLabel, o.model !== "tags" && (o.valueType === "array" || o.type === "array") && (o.type = "array", o.valueArrayType = "array", o.itemContainerComponent = "FieldArrayItem", o.fieldClasses = "exit-transformer-array-item-container", o.fieldItemsClasses = "exit-transformer-array-item", o.inputAttributes = { ...o.inputAttributes, type: "textarea" }), o;
|
|
4879
4909
|
}), s;
|
|
4880
4910
|
});
|
|
4881
|
-
return (s, o) => a.value ? (d(),
|
|
4911
|
+
return (s, o) => a.value ? (d(), I(de, {
|
|
4882
4912
|
key: 0,
|
|
4883
4913
|
model: e.formModel,
|
|
4884
4914
|
options: e.formOptions,
|
|
@@ -4886,7 +4916,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4886
4916
|
onModelUpdated: e.onModelUpdated
|
|
4887
4917
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0);
|
|
4888
4918
|
}
|
|
4889
|
-
}),
|
|
4919
|
+
}), dm = /* @__PURE__ */ H(lm, [["__scopeId", "data-v-0d5c541f"]]), um = {
|
|
4890
4920
|
fields: [
|
|
4891
4921
|
{
|
|
4892
4922
|
inputType: "text",
|
|
@@ -4921,7 +4951,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4921
4951
|
disabled: !1
|
|
4922
4952
|
}
|
|
4923
4953
|
]
|
|
4924
|
-
},
|
|
4954
|
+
}, cm = {
|
|
4925
4955
|
fields: [
|
|
4926
4956
|
{
|
|
4927
4957
|
type: "input",
|
|
@@ -4943,7 +4973,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4943
4973
|
disabled: !1
|
|
4944
4974
|
}
|
|
4945
4975
|
]
|
|
4946
|
-
},
|
|
4976
|
+
}, fm = {
|
|
4947
4977
|
fields: [
|
|
4948
4978
|
{
|
|
4949
4979
|
type: "input",
|
|
@@ -4974,13 +5004,13 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
4974
5004
|
disabled: !1
|
|
4975
5005
|
}
|
|
4976
5006
|
]
|
|
4977
|
-
},
|
|
4978
|
-
/* @__PURE__ */
|
|
4979
|
-
], -1)),
|
|
4980
|
-
/* @__PURE__ */
|
|
4981
|
-
], -1)),
|
|
4982
|
-
/* @__PURE__ */
|
|
4983
|
-
], -1)),
|
|
5007
|
+
}, Ke = (e) => (_e("data-v-bb5a3a33"), e = e(), we(), e), mm = { class: "general-settings" }, hm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "header-wrapper" }, [
|
|
5008
|
+
/* @__PURE__ */ f("span", { class: "section-header" }, "General Configuration Settings")
|
|
5009
|
+
], -1)), pm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), gm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("hr", null, null, -1)), vm = { class: "sub-form" }, ym = { class: "general-settings" }, bm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "header-wrapper" }, [
|
|
5010
|
+
/* @__PURE__ */ f("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
5011
|
+
], -1)), _m = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "description" }, " Parameters for setting up storage. ", -1)), wm = { class: "sub-form" }, Mm = { class: "general-settings" }, Sm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "header-wrapper" }, [
|
|
5012
|
+
/* @__PURE__ */ f("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
5013
|
+
], -1)), Tm = /* @__PURE__ */ Ke(() => /* @__PURE__ */ f("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), Im = /* @__PURE__ */ oe({
|
|
4984
5014
|
__name: "ACMEForm",
|
|
4985
5015
|
props: {
|
|
4986
5016
|
formModel: {
|
|
@@ -5007,57 +5037,57 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5007
5037
|
},
|
|
5008
5038
|
setup(e) {
|
|
5009
5039
|
var q;
|
|
5010
|
-
|
|
5040
|
+
vt(he, (q = yt()) == null ? void 0 : q[Ge]);
|
|
5011
5041
|
const t = e, n = ve("zeroSsl"), r = ve("shm"), a = j(() => {
|
|
5012
5042
|
var _;
|
|
5013
5043
|
const g = {};
|
|
5014
5044
|
if ((_ = t.formSchema) != null && _.fields)
|
|
5015
|
-
for (const
|
|
5016
|
-
g[
|
|
5045
|
+
for (const N of t.formSchema.fields)
|
|
5046
|
+
g[N.model] = N;
|
|
5017
5047
|
return g;
|
|
5018
5048
|
}), i = j(() => {
|
|
5019
5049
|
var _;
|
|
5020
|
-
const g =
|
|
5021
|
-
for (const
|
|
5022
|
-
const R = (_ = a.value[
|
|
5023
|
-
|
|
5050
|
+
const g = Me(um);
|
|
5051
|
+
for (const N of g.fields) {
|
|
5052
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
5053
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
5024
5054
|
}
|
|
5025
5055
|
return g;
|
|
5026
5056
|
}), l = j(() => {
|
|
5027
5057
|
var _;
|
|
5028
|
-
const g =
|
|
5029
|
-
for (const
|
|
5030
|
-
const R = (_ = a.value[
|
|
5031
|
-
|
|
5058
|
+
const g = Me(cm);
|
|
5059
|
+
for (const N of g.fields) {
|
|
5060
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
5061
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
5032
5062
|
}
|
|
5033
5063
|
return g;
|
|
5034
5064
|
}), s = j(() => {
|
|
5035
5065
|
var _;
|
|
5036
|
-
const g =
|
|
5037
|
-
for (const
|
|
5038
|
-
const R = (_ = a.value[
|
|
5039
|
-
|
|
5066
|
+
const g = Me(fm);
|
|
5067
|
+
for (const N of g.fields) {
|
|
5068
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
5069
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
5040
5070
|
}
|
|
5041
5071
|
return g;
|
|
5042
5072
|
}), o = j(() => ({
|
|
5043
5073
|
fields: t.formSchema.fields.filter((g) => !g.model.startsWith("config") && g.model !== "tags")
|
|
5044
5074
|
})), u = j(() => ({
|
|
5045
5075
|
fields: i.value.fields.filter(
|
|
5046
|
-
(_) => !l.value.fields.some((
|
|
5076
|
+
(_) => !l.value.fields.some((N) => N.model === _.model) && !s.value.fields.some((N) => N.model === _.model)
|
|
5047
5077
|
)
|
|
5048
5078
|
})), c = j(() => ({
|
|
5049
5079
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage") && !_.model.startsWith("config-storage_config-consul") && !_.model.startsWith("config-storage_config-redis") && !_.model.startsWith("config-storage_config-shm") && !_.model.startsWith("config-storage_config-vault"))
|
|
5050
|
-
})),
|
|
5080
|
+
})), m = j(() => ({
|
|
5051
5081
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-consul"))
|
|
5052
5082
|
})), p = j(() => ({
|
|
5053
5083
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-redis"))
|
|
5054
|
-
})),
|
|
5084
|
+
})), U = j(() => ({
|
|
5055
5085
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-shm"))
|
|
5056
5086
|
})), V = j(() => ({
|
|
5057
5087
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-vault"))
|
|
5058
5088
|
})), y = j(() => ({
|
|
5059
5089
|
fields: t.formSchema.fields.filter((g) => g.model.startsWith("config") && !u.value.fields.filter((_) => _.model === g.model).length && !c.value.fields.filter((_) => _.model === g.model).length || g.model === "tags")
|
|
5060
|
-
})),
|
|
5090
|
+
})), A = j(() => t.formModel.id && t.isEditing || !t.isEditing), T = [
|
|
5061
5091
|
{
|
|
5062
5092
|
hash: "#general",
|
|
5063
5093
|
title: "General"
|
|
@@ -5070,7 +5100,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5070
5100
|
hash: "#advanced",
|
|
5071
5101
|
title: "Advanced"
|
|
5072
5102
|
}
|
|
5073
|
-
],
|
|
5103
|
+
], P = [
|
|
5074
5104
|
{
|
|
5075
5105
|
label: "Lets Encrypt",
|
|
5076
5106
|
value: "letsEncrypt"
|
|
@@ -5085,18 +5115,18 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5085
5115
|
value: "other"
|
|
5086
5116
|
}
|
|
5087
5117
|
];
|
|
5088
|
-
|
|
5118
|
+
xn(() => {
|
|
5089
5119
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
5090
5120
|
});
|
|
5091
|
-
const
|
|
5121
|
+
const S = (g) => {
|
|
5092
5122
|
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();
|
|
5093
5123
|
}, k = (g, _) => {
|
|
5094
5124
|
_ === "config-storage" && (r.value = g), t.onModelUpdated();
|
|
5095
5125
|
};
|
|
5096
5126
|
return (g, _) => {
|
|
5097
|
-
const
|
|
5127
|
+
const N = E("KSelect"), R = E("KTabs");
|
|
5098
5128
|
return d(), h("div", null, [
|
|
5099
|
-
e.formModel.id && e.isEditing || !e.isEditing ? (d(),
|
|
5129
|
+
e.formModel.id && e.isEditing || !e.isEditing ? (d(), I(de, {
|
|
5100
5130
|
key: 0,
|
|
5101
5131
|
class: "global-fields",
|
|
5102
5132
|
model: e.formModel,
|
|
@@ -5104,34 +5134,34 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5104
5134
|
schema: o.value,
|
|
5105
5135
|
onModelUpdated: e.onModelUpdated
|
|
5106
5136
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5107
|
-
|
|
5137
|
+
M(R, { tabs: T }, {
|
|
5108
5138
|
general: w(() => [
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5139
|
+
f("div", mm, [
|
|
5140
|
+
hm,
|
|
5141
|
+
pm,
|
|
5142
|
+
A.value ? (d(), I(de, {
|
|
5113
5143
|
key: 0,
|
|
5114
5144
|
model: e.formModel,
|
|
5115
5145
|
options: e.formOptions,
|
|
5116
5146
|
schema: u.value,
|
|
5117
5147
|
onModelUpdated: e.onModelUpdated
|
|
5118
5148
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5119
|
-
|
|
5120
|
-
|
|
5149
|
+
gm,
|
|
5150
|
+
M(N, {
|
|
5121
5151
|
class: "issuer-select",
|
|
5122
|
-
items:
|
|
5152
|
+
items: P,
|
|
5123
5153
|
label: "Issuer",
|
|
5124
|
-
onChange:
|
|
5154
|
+
onChange: S
|
|
5125
5155
|
}),
|
|
5126
|
-
|
|
5127
|
-
n.value === "letsEncrypt" ? (d(),
|
|
5156
|
+
f("div", vm, [
|
|
5157
|
+
n.value === "letsEncrypt" ? (d(), I(de, {
|
|
5128
5158
|
key: 0,
|
|
5129
5159
|
model: e.formModel,
|
|
5130
5160
|
options: e.formOptions,
|
|
5131
5161
|
schema: l.value,
|
|
5132
5162
|
onModelUpdated: e.onModelUpdated
|
|
5133
5163
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5134
|
-
n.value === "zeroSsl" || n.value === "other" ? (d(),
|
|
5164
|
+
n.value === "zeroSsl" || n.value === "other" ? (d(), I(de, {
|
|
5135
5165
|
key: 1,
|
|
5136
5166
|
model: e.formModel,
|
|
5137
5167
|
options: e.formOptions,
|
|
@@ -5142,39 +5172,39 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5142
5172
|
])
|
|
5143
5173
|
]),
|
|
5144
5174
|
storage: w(() => [
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5175
|
+
f("div", ym, [
|
|
5176
|
+
bm,
|
|
5177
|
+
_m,
|
|
5178
|
+
A.value ? (d(), I(de, {
|
|
5149
5179
|
key: 0,
|
|
5150
5180
|
model: e.formModel,
|
|
5151
5181
|
options: e.formOptions,
|
|
5152
5182
|
schema: c.value,
|
|
5153
5183
|
onModelUpdated: k
|
|
5154
5184
|
}, null, 8, ["model", "options", "schema"])) : O("", !0),
|
|
5155
|
-
|
|
5156
|
-
r.value === "consul" ? (d(),
|
|
5185
|
+
f("div", wm, [
|
|
5186
|
+
r.value === "consul" ? (d(), I(de, {
|
|
5157
5187
|
key: 0,
|
|
5158
5188
|
model: e.formModel,
|
|
5159
5189
|
options: e.formOptions,
|
|
5160
|
-
schema:
|
|
5190
|
+
schema: m.value,
|
|
5161
5191
|
onModelUpdated: e.onModelUpdated
|
|
5162
5192
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5163
|
-
r.value === "redis" ? (d(),
|
|
5193
|
+
r.value === "redis" ? (d(), I(de, {
|
|
5164
5194
|
key: 1,
|
|
5165
5195
|
model: e.formModel,
|
|
5166
5196
|
options: e.formOptions,
|
|
5167
5197
|
schema: p.value,
|
|
5168
5198
|
onModelUpdated: e.onModelUpdated
|
|
5169
5199
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5170
|
-
r.value === "shm" ? (d(),
|
|
5200
|
+
r.value === "shm" ? (d(), I(de, {
|
|
5171
5201
|
key: 2,
|
|
5172
5202
|
model: e.formModel,
|
|
5173
5203
|
options: e.formOptions,
|
|
5174
|
-
schema:
|
|
5204
|
+
schema: U.value,
|
|
5175
5205
|
onModelUpdated: e.onModelUpdated
|
|
5176
5206
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : O("", !0),
|
|
5177
|
-
r.value === "vault" ? (d(),
|
|
5207
|
+
r.value === "vault" ? (d(), I(de, {
|
|
5178
5208
|
key: 3,
|
|
5179
5209
|
model: e.formModel,
|
|
5180
5210
|
options: e.formOptions,
|
|
@@ -5185,10 +5215,10 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5185
5215
|
])
|
|
5186
5216
|
]),
|
|
5187
5217
|
advanced: w(() => [
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5218
|
+
f("div", Mm, [
|
|
5219
|
+
Sm,
|
|
5220
|
+
Tm,
|
|
5221
|
+
A.value ? (d(), I(de, {
|
|
5192
5222
|
key: 0,
|
|
5193
5223
|
model: e.formModel,
|
|
5194
5224
|
options: e.formOptions,
|
|
@@ -5202,13 +5232,13 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5202
5232
|
]);
|
|
5203
5233
|
};
|
|
5204
5234
|
}
|
|
5205
|
-
}),
|
|
5235
|
+
}), Am = /* @__PURE__ */ H(Im, [["__scopeId", "data-v-bb5a3a33"]]), Wr = (e) => (_e("data-v-3840f6a9"), e = e(), we(), e), Om = { class: "rla-form-basic-fields" }, Em = { class: "rla-form-request-limits-subtitle" }, Cm = { class: "rla-form-request-limits-content" }, $m = { class: "rla-form-window-type" }, Fm = ["innerHTML"], Um = { class: "rla-form-window-type-radios" }, km = { class: "rla-form-request-limits-items" }, Vm = { class: "rla-form-request-limits-row" }, Nm = ["id"], Lm = { class: "rla-form-request-limits-actions" }, Pm = {
|
|
5206
5236
|
key: 0,
|
|
5207
5237
|
class: "rla-form-request-limits-examples"
|
|
5208
|
-
},
|
|
5238
|
+
}, qm = { class: "rla-form-request-limits-examples-badges" }, jm = /* @__PURE__ */ Wr(() => /* @__PURE__ */ f("br", null, null, -1)), Rm = ["innerHTML"], Km = {
|
|
5209
5239
|
id: "rla-form-error-legend",
|
|
5210
5240
|
class: "rla-form-error-inputs"
|
|
5211
|
-
},
|
|
5241
|
+
}, Dm = /* @__PURE__ */ Wr(() => /* @__PURE__ */ f("div", null, ":", -1)), Bm = /* @__PURE__ */ oe({
|
|
5212
5242
|
__name: "RLAForm",
|
|
5213
5243
|
props: {
|
|
5214
5244
|
formSchema: {},
|
|
@@ -5219,7 +5249,7 @@ const lf = /* @__PURE__ */ H(xm, [["render", of], ["__scopeId", "data-v-bb72c68e
|
|
|
5219
5249
|
},
|
|
5220
5250
|
setup(e) {
|
|
5221
5251
|
var R;
|
|
5222
|
-
|
|
5252
|
+
vt(he, (R = yt()) == null ? void 0 : R[Ge]);
|
|
5223
5253
|
const t = {
|
|
5224
5254
|
fixed: [
|
|
5225
5255
|
{
|
|
@@ -5279,23 +5309,23 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5279
5309
|
}, n = /* @__PURE__ */ new Set([
|
|
5280
5310
|
"selectionGroup",
|
|
5281
5311
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((v) => `config-${v}`)
|
|
5282
|
-
]), r = (v) => v === void 0 ? !1 : n.has(v), { t: a } =
|
|
5312
|
+
]), r = (v) => v === void 0 ? !1 : n.has(v), { t: a } = bt("en-us", Ot), i = e, l = j(() => {
|
|
5283
5313
|
var b, C;
|
|
5284
5314
|
const v = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find(($) => $.type === "selectionGroup" && $.model === "selectionGroup");
|
|
5285
5315
|
if (v)
|
|
5286
5316
|
return { fields: [v] };
|
|
5287
5317
|
}), s = j(() => {
|
|
5288
|
-
var
|
|
5289
|
-
const v = ((Ie = (
|
|
5318
|
+
var ue, Ie;
|
|
5319
|
+
const v = ((Ie = (ue = i.formSchema) == null ? void 0 : ue.fields) == null ? void 0 : Ie.filter((te) => !r(te.model))) ?? [], b = [], C = [], $ = [];
|
|
5290
5320
|
let G = !1;
|
|
5291
|
-
for (const
|
|
5292
|
-
const
|
|
5293
|
-
if (
|
|
5294
|
-
if (
|
|
5295
|
-
(
|
|
5321
|
+
for (const te of v) {
|
|
5322
|
+
const De = te.model;
|
|
5323
|
+
if (De !== void 0) {
|
|
5324
|
+
if (De.startsWith("config-redis-")) {
|
|
5325
|
+
(te.model === "config-redis-cluster_addresses" || te.model === "config-redis-sentinel_addresses") && (te.inputAttributes.help = a("rla.redis.address_example")), C.push(te);
|
|
5296
5326
|
continue;
|
|
5297
5327
|
}
|
|
5298
|
-
G ? $.push(
|
|
5328
|
+
G ? $.push(te) : b.push(te), te.model === "config-strategy" && (G = !0);
|
|
5299
5329
|
}
|
|
5300
5330
|
}
|
|
5301
5331
|
return {
|
|
@@ -5317,26 +5347,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5317
5347
|
value: $
|
|
5318
5348
|
}));
|
|
5319
5349
|
}
|
|
5320
|
-
),
|
|
5350
|
+
), m = ve(), p = ve(!0), U = j(
|
|
5321
5351
|
() => {
|
|
5322
5352
|
var v, b, C;
|
|
5323
5353
|
return i.formModel["config-window_type"] ?? ((C = (b = (v = i.formSchema) == null ? void 0 : v.fields) == null ? void 0 : b.find(($) => $.model === "config-window_type")) == null ? void 0 : C.default);
|
|
5324
5354
|
}
|
|
5325
5355
|
), V = j(() => {
|
|
5326
|
-
var b, C, $, G,
|
|
5327
|
-
const v = ($ = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find((
|
|
5328
|
-
return (((Ie = (
|
|
5356
|
+
var b, C, $, G, ue, Ie;
|
|
5357
|
+
const v = ($ = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find((te) => te.model === "config-window_type")) == null ? void 0 : $.default;
|
|
5358
|
+
return (((Ie = (ue = (G = i.formSchema) == null ? void 0 : G.fields) == null ? void 0 : ue.find((te) => te.model === "config-window_type")) == null ? void 0 : Ie.values) ?? []).sort((te, De) => te === v ? -1 : De === v ? 1 : 0);
|
|
5329
5359
|
}), y = j(() => {
|
|
5330
5360
|
var b;
|
|
5331
5361
|
const v = (b = i.formModel["config-limit"]) == null ? void 0 : b.map((C, $) => {
|
|
5332
|
-
var G,
|
|
5362
|
+
var G, ue;
|
|
5333
5363
|
return {
|
|
5334
5364
|
limit: C,
|
|
5335
|
-
windowSize: (
|
|
5365
|
+
windowSize: (ue = (G = i.formModel) == null ? void 0 : G["config-window_size"]) == null ? void 0 : ue[$]
|
|
5336
5366
|
};
|
|
5337
5367
|
});
|
|
5338
5368
|
return !Array.isArray(v) || v.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : v;
|
|
5339
|
-
}),
|
|
5369
|
+
}), A = j(
|
|
5340
5370
|
() => {
|
|
5341
5371
|
var v, b, C, $;
|
|
5342
5372
|
return ((v = i.formModel) == null ? void 0 : v["config-identifier"]) ?? (($ = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find((G) => G.model === "config-identifier")) == null ? void 0 : $.default);
|
|
@@ -5346,74 +5376,74 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5346
5376
|
var v, b, C, $;
|
|
5347
5377
|
return ((v = i.formModel) == null ? void 0 : v["config-error_code"]) ?? (($ = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find((G) => G.model === "config-error_code")) == null ? void 0 : $.default);
|
|
5348
5378
|
}
|
|
5349
|
-
),
|
|
5379
|
+
), P = j(
|
|
5350
5380
|
() => {
|
|
5351
5381
|
var v, b, C, $;
|
|
5352
5382
|
return ((v = i.formModel) == null ? void 0 : v["config-error_message"]) ?? (($ = (C = (b = i.formSchema) == null ? void 0 : b.fields) == null ? void 0 : C.find((G) => G.model === "config-error_message")) == null ? void 0 : $.default);
|
|
5353
5383
|
}
|
|
5354
|
-
),
|
|
5355
|
-
if (b ===
|
|
5356
|
-
i.onModelUpdated([], "config-limit"), i.onModelUpdated([], "config-window_size"),
|
|
5357
|
-
|
|
5384
|
+
), S = (v, b) => {
|
|
5385
|
+
if (b === m.value) {
|
|
5386
|
+
i.onModelUpdated([], "config-limit"), i.onModelUpdated([], "config-window_size"), rn(() => {
|
|
5387
|
+
m.value = void 0;
|
|
5358
5388
|
});
|
|
5359
5389
|
return;
|
|
5360
5390
|
}
|
|
5361
|
-
i.onModelUpdated([v.config.limit], "config-limit"), i.onModelUpdated([v.config.window_size], "config-window_size"),
|
|
5362
|
-
|
|
5391
|
+
i.onModelUpdated([v.config.limit], "config-limit"), i.onModelUpdated([v.config.window_size], "config-window_size"), rn(() => {
|
|
5392
|
+
m.value = b;
|
|
5363
5393
|
});
|
|
5364
5394
|
}, k = (v) => {
|
|
5365
|
-
|
|
5395
|
+
m.value !== void 0 && (m.value = void 0), v !== null && i.onModelUpdated(v.toString(), "config-window_type");
|
|
5366
5396
|
}, q = (v, b) => {
|
|
5367
5397
|
var $;
|
|
5368
|
-
|
|
5369
|
-
const C =
|
|
5398
|
+
m.value !== void 0 && (m.value = void 0);
|
|
5399
|
+
const C = Me((($ = i.formModel) == null ? void 0 : $["config-limit"]) ?? []);
|
|
5370
5400
|
C[v] = b, i.onModelUpdated(C, "config-limit");
|
|
5371
5401
|
}, g = (v, b) => {
|
|
5372
5402
|
var $;
|
|
5373
|
-
|
|
5374
|
-
const C =
|
|
5403
|
+
m.value !== void 0 && (m.value = void 0);
|
|
5404
|
+
const C = Me((($ = i.formModel) == null ? void 0 : $["config-window_size"]) ?? []);
|
|
5375
5405
|
C[v] = b, i.onModelUpdated(C, "config-window_size");
|
|
5376
5406
|
}, _ = (v) => {
|
|
5377
5407
|
var $, G;
|
|
5378
|
-
|
|
5379
|
-
const b =
|
|
5408
|
+
m.value !== void 0 && (m.value = void 0);
|
|
5409
|
+
const b = Me((($ = i.formModel) == null ? void 0 : $["config-limit"]) ?? []), C = Me(((G = i.formModel) == null ? void 0 : G["config-window_size"]) ?? []);
|
|
5380
5410
|
b.length === 0 && b.push(void 0), C.length === 0 && C.push(void 0), b.splice(v + 1, 0, void 0), C.splice(v + 1, 0, void 0), i.onModelUpdated(b, "config-limit"), i.onModelUpdated(C, "config-window_size");
|
|
5381
|
-
},
|
|
5411
|
+
}, N = (v) => {
|
|
5382
5412
|
var b, C;
|
|
5383
5413
|
if (y.value.length > 1) {
|
|
5384
|
-
|
|
5385
|
-
const $ =
|
|
5414
|
+
m.value !== void 0 && (m.value = void 0);
|
|
5415
|
+
const $ = Me(((b = i.formModel) == null ? void 0 : b["config-limit"]) ?? []), G = Me(((C = i.formModel) == null ? void 0 : C["config-window_size"]) ?? []);
|
|
5386
5416
|
$.length === 0 && $.push(void 0), G.length === 0 && G.push(void 0), $.splice(v, 1), G.splice(v, 1), i.onModelUpdated($, "config-limit"), i.onModelUpdated(G, "config-window_size");
|
|
5387
5417
|
}
|
|
5388
5418
|
};
|
|
5389
5419
|
return (v, b) => {
|
|
5390
|
-
const C = E("VueFormGenerator"), $ = E("KLabel"), G = E("KRadio"),
|
|
5391
|
-
return d(), h(
|
|
5392
|
-
|
|
5393
|
-
|
|
5420
|
+
const C = E("VueFormGenerator"), $ = E("KLabel"), G = E("KRadio"), ue = E("KInput"), Ie = E("KButton"), te = E("KBadge"), De = E("KTooltip"), nn = E("KCard"), Zr = E("KSelect"), Jr = E("KCollapse");
|
|
5421
|
+
return d(), h(D, null, [
|
|
5422
|
+
f("div", Om, [
|
|
5423
|
+
M(C, {
|
|
5394
5424
|
model: v.formModel,
|
|
5395
5425
|
options: v.formOptions,
|
|
5396
5426
|
schema: l.value,
|
|
5397
|
-
onModelUpdated: b[0] || (b[0] = (
|
|
5427
|
+
onModelUpdated: b[0] || (b[0] = (K, X) => v.onModelUpdated(K, X))
|
|
5398
5428
|
}, null, 8, ["model", "options", "schema"]),
|
|
5399
|
-
|
|
5429
|
+
M(nn, { class: "rla-form-request-limits" }, {
|
|
5400
5430
|
title: w(() => [
|
|
5401
|
-
|
|
5431
|
+
M($, {
|
|
5402
5432
|
class: "rla-form-request-limits-title",
|
|
5403
5433
|
for: "rla-form-request-limits-legend",
|
|
5404
5434
|
required: ""
|
|
5405
5435
|
}, {
|
|
5406
5436
|
default: w(() => [
|
|
5407
|
-
|
|
5437
|
+
ne(F(L(a)("rla.request_limits.title")), 1)
|
|
5408
5438
|
]),
|
|
5409
5439
|
_: 1
|
|
5410
5440
|
}),
|
|
5411
|
-
|
|
5441
|
+
f("div", Em, F(L(a)("rla.request_limits.subtitle")), 1)
|
|
5412
5442
|
]),
|
|
5413
5443
|
default: w(() => [
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5444
|
+
f("div", Cm, [
|
|
5445
|
+
f("div", $m, [
|
|
5446
|
+
M($, {
|
|
5417
5447
|
class: "rla-form-window-type-label",
|
|
5418
5448
|
"tooltip-attributes": {
|
|
5419
5449
|
maxWidth: "300",
|
|
@@ -5421,79 +5451,79 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5421
5451
|
}
|
|
5422
5452
|
}, {
|
|
5423
5453
|
tooltip: w(() => [
|
|
5424
|
-
|
|
5425
|
-
innerHTML:
|
|
5426
|
-
}, null, 8,
|
|
5454
|
+
f("div", {
|
|
5455
|
+
innerHTML: L(a)("rla.window_type.help")
|
|
5456
|
+
}, null, 8, Fm)
|
|
5427
5457
|
]),
|
|
5428
5458
|
default: w(() => [
|
|
5429
|
-
|
|
5459
|
+
ne(F(L(a)("rla.window_type.label")) + " ", 1)
|
|
5430
5460
|
]),
|
|
5431
5461
|
_: 1
|
|
5432
5462
|
}),
|
|
5433
|
-
|
|
5434
|
-
(d(!0), h(
|
|
5435
|
-
key: `window-type-${
|
|
5436
|
-
"model-value":
|
|
5437
|
-
name:
|
|
5438
|
-
"selected-value":
|
|
5463
|
+
f("div", Um, [
|
|
5464
|
+
(d(!0), h(D, null, Z(V.value, (K) => (d(), I(G, {
|
|
5465
|
+
key: `window-type-${K}`,
|
|
5466
|
+
"model-value": U.value,
|
|
5467
|
+
name: K,
|
|
5468
|
+
"selected-value": K,
|
|
5439
5469
|
"onUpdate:modelValue": k
|
|
5440
5470
|
}, {
|
|
5441
5471
|
default: w(() => [
|
|
5442
|
-
|
|
5472
|
+
ne(F(L(a)(`rla.window_type.options.${K}`)), 1)
|
|
5443
5473
|
]),
|
|
5444
5474
|
_: 2
|
|
5445
5475
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5446
5476
|
])
|
|
5447
5477
|
]),
|
|
5448
|
-
|
|
5449
|
-
(d(!0), h(
|
|
5478
|
+
f("div", km, [
|
|
5479
|
+
(d(!0), h(D, null, Z(y.value, (K, X) => (d(), h("div", {
|
|
5450
5480
|
key: X.toString()
|
|
5451
5481
|
}, [
|
|
5452
|
-
|
|
5482
|
+
M($, {
|
|
5453
5483
|
for: `rla-form-request-limits-item-${X}-legend`
|
|
5454
5484
|
}, {
|
|
5455
5485
|
default: w(() => [
|
|
5456
|
-
|
|
5486
|
+
ne(F(L(a)("rla.request_limits.label_index", { index: X + 1 })), 1)
|
|
5457
5487
|
]),
|
|
5458
5488
|
_: 2
|
|
5459
5489
|
}, 1032, ["for"]),
|
|
5460
|
-
|
|
5461
|
-
|
|
5490
|
+
f("div", Vm, [
|
|
5491
|
+
f("legend", {
|
|
5462
5492
|
id: `rla-form-request-limits-item-${X}-legend`,
|
|
5463
5493
|
class: "rla-form-request-limits-inputs"
|
|
5464
5494
|
}, [
|
|
5465
|
-
|
|
5466
|
-
"model-value":
|
|
5467
|
-
placeholder:
|
|
5495
|
+
M(ue, {
|
|
5496
|
+
"model-value": K.limit && K.limit.toString(),
|
|
5497
|
+
placeholder: L(a)("rla.request_limits.request_number"),
|
|
5468
5498
|
type: "number",
|
|
5469
|
-
"onUpdate:modelValue": (
|
|
5499
|
+
"onUpdate:modelValue": (Et) => q(X, Number.parseInt(Et))
|
|
5470
5500
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
"model-value":
|
|
5474
|
-
placeholder:
|
|
5501
|
+
f("div", null, F(L(a)("rla.request_limits.interval_determiner")), 1),
|
|
5502
|
+
M(ue, {
|
|
5503
|
+
"model-value": K.windowSize && K.windowSize.toString(),
|
|
5504
|
+
placeholder: L(a)("rla.request_limits.time_interval"),
|
|
5475
5505
|
type: "number",
|
|
5476
|
-
"onUpdate:modelValue": (
|
|
5506
|
+
"onUpdate:modelValue": (Et) => g(X, Number.parseInt(Et))
|
|
5477
5507
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5478
|
-
|
|
5479
|
-
], 8,
|
|
5480
|
-
|
|
5481
|
-
|
|
5508
|
+
f("div", null, F(L(a)("rla.request_limits.seconds")), 1)
|
|
5509
|
+
], 8, Nm),
|
|
5510
|
+
f("div", Lm, [
|
|
5511
|
+
M(Ie, {
|
|
5482
5512
|
appearance: "tertiary",
|
|
5483
5513
|
disabled: y.value.length <= 1,
|
|
5484
|
-
onClick: () =>
|
|
5514
|
+
onClick: () => N(X)
|
|
5485
5515
|
}, {
|
|
5486
5516
|
default: w(() => [
|
|
5487
|
-
|
|
5517
|
+
M(L(gd))
|
|
5488
5518
|
]),
|
|
5489
5519
|
_: 2
|
|
5490
5520
|
}, 1032, ["disabled", "onClick"]),
|
|
5491
|
-
|
|
5521
|
+
M(Ie, {
|
|
5492
5522
|
appearance: "tertiary",
|
|
5493
5523
|
onClick: () => _(X)
|
|
5494
5524
|
}, {
|
|
5495
5525
|
default: w(() => [
|
|
5496
|
-
|
|
5526
|
+
M(L(kr))
|
|
5497
5527
|
]),
|
|
5498
5528
|
_: 2
|
|
5499
5529
|
}, 1032, ["onClick"])
|
|
@@ -5501,27 +5531,27 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5501
5531
|
])
|
|
5502
5532
|
]))), 128))
|
|
5503
5533
|
]),
|
|
5504
|
-
o.value.length > 0 ? (d(), h("div",
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
(d(!0), h(
|
|
5534
|
+
o.value.length > 0 ? (d(), h("div", Pm, [
|
|
5535
|
+
f("div", null, F(L(a)("rla.start_with_a_use_case")), 1),
|
|
5536
|
+
f("div", qm, [
|
|
5537
|
+
(d(!0), h(D, null, Z(o.value, (K, X) => (d(), I(De, {
|
|
5508
5538
|
key: `use-case-${X}`,
|
|
5509
5539
|
"max-width": "300"
|
|
5510
5540
|
}, {
|
|
5511
5541
|
content: w(() => [
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5542
|
+
f("div", null, F(K.description), 1),
|
|
5543
|
+
jm,
|
|
5544
|
+
f("div", null, F(L(a)("rla.request_limits.label")) + ": " + F(K.config.limit), 1),
|
|
5545
|
+
f("div", null, F(L(a)("rla.request_limits.time_interval")) + ": " + F(K.config.window_size), 1)
|
|
5516
5546
|
]),
|
|
5517
5547
|
default: w(() => [
|
|
5518
|
-
|
|
5519
|
-
appearance:
|
|
5548
|
+
M(te, {
|
|
5549
|
+
appearance: m.value === `${U.value}-${X}` ? "info" : "decorative",
|
|
5520
5550
|
class: "rla-form-request-limits-examples-badge",
|
|
5521
|
-
onClick: () =>
|
|
5551
|
+
onClick: () => S(K, `${U.value}-${X}`)
|
|
5522
5552
|
}, {
|
|
5523
5553
|
default: w(() => [
|
|
5524
|
-
|
|
5554
|
+
ne(F(K.label), 1)
|
|
5525
5555
|
]),
|
|
5526
5556
|
_: 2
|
|
5527
5557
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -5534,12 +5564,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5534
5564
|
]),
|
|
5535
5565
|
_: 1
|
|
5536
5566
|
}),
|
|
5537
|
-
|
|
5538
|
-
modelValue:
|
|
5539
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
5567
|
+
M(Zr, {
|
|
5568
|
+
modelValue: A.value,
|
|
5569
|
+
"onUpdate:modelValue": b[1] || (b[1] = (K) => A.value = K),
|
|
5540
5570
|
class: "rla-form-identifiers",
|
|
5541
5571
|
items: c.value,
|
|
5542
|
-
label:
|
|
5572
|
+
label: L(a)("rla.identifiers.label"),
|
|
5543
5573
|
"label-attributes": {
|
|
5544
5574
|
tooltipAttributes: {
|
|
5545
5575
|
maxWidth: "300",
|
|
@@ -5547,19 +5577,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5547
5577
|
}
|
|
5548
5578
|
},
|
|
5549
5579
|
required: "",
|
|
5550
|
-
onSelected: b[2] || (b[2] = (
|
|
5580
|
+
onSelected: b[2] || (b[2] = (K) => i.onModelUpdated(K.value, "config-identifier"))
|
|
5551
5581
|
}, {
|
|
5552
5582
|
"label-tooltip": w(() => [
|
|
5553
|
-
|
|
5583
|
+
f("div", {
|
|
5554
5584
|
innerHTML: u.value && u.value.help
|
|
5555
|
-
}, null, 8,
|
|
5585
|
+
}, null, 8, Rm)
|
|
5556
5586
|
]),
|
|
5557
5587
|
_: 1
|
|
5558
5588
|
}, 8, ["modelValue", "items", "label"]),
|
|
5559
|
-
|
|
5560
|
-
|
|
5589
|
+
f("div", null, [
|
|
5590
|
+
M($, {
|
|
5561
5591
|
for: "rla-form-error-legend",
|
|
5562
|
-
info:
|
|
5592
|
+
info: L(a)("rla.error_message.help"),
|
|
5563
5593
|
required: "",
|
|
5564
5594
|
"tooltip-attributes": {
|
|
5565
5595
|
maxWidth: "300",
|
|
@@ -5567,59 +5597,59 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5567
5597
|
}
|
|
5568
5598
|
}, {
|
|
5569
5599
|
default: w(() => [
|
|
5570
|
-
|
|
5600
|
+
ne(F(L(a)("rla.error_message.label")), 1)
|
|
5571
5601
|
]),
|
|
5572
5602
|
_: 1
|
|
5573
5603
|
}, 8, ["info"]),
|
|
5574
|
-
|
|
5575
|
-
|
|
5604
|
+
f("legend", Km, [
|
|
5605
|
+
M(ue, {
|
|
5576
5606
|
class: "input-error-code",
|
|
5577
5607
|
"model-value": T.value && T.value.toString(),
|
|
5578
|
-
placeholder:
|
|
5608
|
+
placeholder: L(a)("rla.error_message.code_placeholder"),
|
|
5579
5609
|
type: "number",
|
|
5580
|
-
"onUpdate:modelValue": b[3] || (b[3] = (
|
|
5610
|
+
"onUpdate:modelValue": b[3] || (b[3] = (K) => v.onModelUpdated(Number.parseInt(K), "config-error_code"))
|
|
5581
5611
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
"model-value":
|
|
5585
|
-
placeholder:
|
|
5586
|
-
"onUpdate:modelValue": b[4] || (b[4] = (
|
|
5612
|
+
Dm,
|
|
5613
|
+
M(ue, {
|
|
5614
|
+
"model-value": P.value,
|
|
5615
|
+
placeholder: L(a)("rla.error_message.message_placeholder"),
|
|
5616
|
+
"onUpdate:modelValue": b[4] || (b[4] = (K) => v.onModelUpdated(K, "config-error_message"))
|
|
5587
5617
|
}, null, 8, ["model-value", "placeholder"])
|
|
5588
5618
|
])
|
|
5589
5619
|
])
|
|
5590
5620
|
]),
|
|
5591
|
-
|
|
5621
|
+
M(Jr, {
|
|
5592
5622
|
modelValue: p.value,
|
|
5593
|
-
"onUpdate:modelValue": b[8] || (b[8] = (
|
|
5594
|
-
"trigger-label":
|
|
5623
|
+
"onUpdate:modelValue": b[8] || (b[8] = (K) => p.value = K),
|
|
5624
|
+
"trigger-label": L(a)("rla.view_advanced_fields")
|
|
5595
5625
|
}, {
|
|
5596
5626
|
default: w(() => [
|
|
5597
|
-
|
|
5627
|
+
M(C, {
|
|
5598
5628
|
model: v.formModel,
|
|
5599
5629
|
options: v.formOptions,
|
|
5600
5630
|
schema: s.value.endsWithStrategy,
|
|
5601
|
-
onModelUpdated: b[5] || (b[5] = (
|
|
5631
|
+
onModelUpdated: b[5] || (b[5] = (K, X) => v.onModelUpdated(K, X))
|
|
5602
5632
|
}, null, 8, ["model", "options", "schema"]),
|
|
5603
|
-
v.formModel["config-strategy"] === "redis" ? (d(),
|
|
5633
|
+
v.formModel["config-strategy"] === "redis" ? (d(), I(nn, {
|
|
5604
5634
|
key: 0,
|
|
5605
5635
|
class: "rla-form-redis-card",
|
|
5606
|
-
title:
|
|
5636
|
+
title: L(a)("rla.redis.title")
|
|
5607
5637
|
}, {
|
|
5608
5638
|
default: w(() => [
|
|
5609
|
-
|
|
5639
|
+
M(C, {
|
|
5610
5640
|
model: v.formModel,
|
|
5611
5641
|
options: v.formOptions,
|
|
5612
5642
|
schema: s.value.redis,
|
|
5613
|
-
onModelUpdated: b[6] || (b[6] = (
|
|
5643
|
+
onModelUpdated: b[6] || (b[6] = (K, X) => v.onModelUpdated(K, X))
|
|
5614
5644
|
}, null, 8, ["model", "options", "schema"])
|
|
5615
5645
|
]),
|
|
5616
5646
|
_: 1
|
|
5617
5647
|
}, 8, ["title"])) : O("", !0),
|
|
5618
|
-
|
|
5648
|
+
M(C, {
|
|
5619
5649
|
model: v.formModel,
|
|
5620
5650
|
options: v.formOptions,
|
|
5621
5651
|
schema: s.value.afterStrategy,
|
|
5622
|
-
onModelUpdated: b[7] || (b[7] = (
|
|
5652
|
+
onModelUpdated: b[7] || (b[7] = (K, X) => v.onModelUpdated(K, X))
|
|
5623
5653
|
}, null, 8, ["model", "options", "schema"])
|
|
5624
5654
|
]),
|
|
5625
5655
|
_: 1
|
|
@@ -5627,24 +5657,24 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5627
5657
|
], 64);
|
|
5628
5658
|
};
|
|
5629
5659
|
}
|
|
5630
|
-
}),
|
|
5660
|
+
}), zm = /* @__PURE__ */ H(Bm, [["__scopeId", "data-v-3840f6a9"]]), Gm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5631
5661
|
__proto__: null,
|
|
5632
|
-
ACMEForm:
|
|
5633
|
-
ExitTransformer:
|
|
5634
|
-
OIDCForm:
|
|
5635
|
-
PostFunction:
|
|
5636
|
-
RLAForm:
|
|
5637
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5662
|
+
ACMEForm: Am,
|
|
5663
|
+
ExitTransformer: dm,
|
|
5664
|
+
OIDCForm: am,
|
|
5665
|
+
PostFunction: om,
|
|
5666
|
+
RLAForm: zm
|
|
5667
|
+
}, Symbol.toStringTag, { value: "Module" })), Wm = [
|
|
5638
5668
|
"array",
|
|
5639
5669
|
"metric",
|
|
5640
5670
|
"advanced",
|
|
5641
5671
|
"selectionGroup",
|
|
5642
5672
|
"object-advanced"
|
|
5643
|
-
],
|
|
5673
|
+
], Zm = {
|
|
5644
5674
|
install: (e) => {
|
|
5645
|
-
e.component("VueFormGenerator",
|
|
5675
|
+
e.component("VueFormGenerator", de);
|
|
5646
5676
|
}
|
|
5647
|
-
},
|
|
5677
|
+
}, Jm = (e) => ({
|
|
5648
5678
|
"openid-connect": "OIDCForm",
|
|
5649
5679
|
"post-function": "PostFunction",
|
|
5650
5680
|
// Pre and Post function plugins are using same component
|
|
@@ -5656,10 +5686,10 @@ export {
|
|
|
5656
5686
|
he as AUTOFILL_SLOT,
|
|
5657
5687
|
Ge as AUTOFILL_SLOT_NAME,
|
|
5658
5688
|
$e as FORMS_API_KEY,
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5689
|
+
de as VueFormGenerator,
|
|
5690
|
+
Ym as abstractField,
|
|
5691
|
+
Wm as customFields,
|
|
5692
|
+
Zm as default,
|
|
5693
|
+
Jm as getSharedFormName,
|
|
5694
|
+
Gm as sharedForms
|
|
5665
5695
|
};
|