@kong-ui-public/forms 4.11.1-pr.1993.e54ada17d.0 → 4.11.2-pr.1995.2de32d69c.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 +77 -75
- package/dist/forms.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as O, openBlock as u, createElementBlock as g, createElementVNode as h, toDisplayString as U, normalizeClass as W, createVNode as T, defineComponent as re, provide as it, withCtx as C, renderSlot as Oe, unref as M, createTextVNode as ee, createBlock as A, resolveDynamicComponent as ne, Fragment as D, renderList as J, ref as ue, computed as L, toRefs as Le, inject as rt, onMounted as En, onBeforeMount as kt, mergeProps as Ie, Transition as Oi, createCommentVNode as V, resolveDirective as Fn, withDirectives as de, vModelText as Ze, vModelCheckbox as Ai, vModelSelect as Ei, vModelDynamic as kn, isRef as Ye, toRef as Fi, vModelRadio as ki, vShow as Ui, createSlots as Un, watch as Ut, normalizeProps as $i, guardReactiveProps as Vi, useSlots as
|
|
1
|
+
import { resolveComponent as O, openBlock as u, createElementBlock as g, createElementVNode as h, toDisplayString as U, normalizeClass as W, createVNode as T, defineComponent as re, provide as it, withCtx as C, renderSlot as Oe, unref as M, createTextVNode as ee, createBlock as A, resolveDynamicComponent as ne, Fragment as D, renderList as J, ref as ue, computed as L, toRefs as Le, inject as rt, onMounted as En, onBeforeMount as kt, mergeProps as Ie, Transition as Oi, createCommentVNode as V, resolveDirective as Fn, withDirectives as de, vModelText as Ze, vModelCheckbox as Ai, vModelSelect as Ei, vModelDynamic as kn, isRef as Ye, toRef as Fi, vModelRadio as ki, vShow as Ui, createSlots as Un, watch as Ut, normalizeProps as $i, guardReactiveProps as Vi, useSlots as mt, nextTick as Kt } from "vue";
|
|
2
2
|
import { createI18n as ge } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as at, AddIcon as $t, RemoveIcon as ji } from "@kong/icons";
|
|
4
4
|
import { useStringHelpers as Ri, useErrors as Pi, useDebouncedFilter as Ni, useAxios as Li } from "@kong-ui-public/entities-shared";
|
|
@@ -77,10 +77,10 @@ function Vt(e) {
|
|
|
77
77
|
return e(t);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Kn && typeof module == "object" && module && !module.nodeType && module, $a = Je && Je.exports === Kn,
|
|
80
|
+
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Kn && typeof module == "object" && module && !module.nodeType && module, $a = Je && Je.exports === Kn, Mt = $a && Vn.process, xe = function() {
|
|
81
81
|
try {
|
|
82
82
|
var e = Je && Je.require && Je.require("util").types;
|
|
83
|
-
return e ||
|
|
83
|
+
return e || Mt && Mt.binding && Mt.binding("util");
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
86
|
}(), Yt = xe && xe.isTypedArray, Va = Yt ? Vt(Yt) : Ua, ja = Object.prototype, Ra = ja.hasOwnProperty;
|
|
@@ -124,20 +124,20 @@ function H(e) {
|
|
|
124
124
|
var t = Ee(e);
|
|
125
125
|
return t == Ba || t == za || t == Da || t == xa;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ft(e) {
|
|
128
128
|
return e != null && qn(e.length) && !H(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function ht(e) {
|
|
131
|
+
return ft(e) ? Dn(e) : Ka(e);
|
|
132
132
|
}
|
|
133
133
|
function Ya(e, t) {
|
|
134
|
-
return e && Ki(e, t,
|
|
134
|
+
return e && Ki(e, t, ht);
|
|
135
135
|
}
|
|
136
136
|
function Ha(e, t) {
|
|
137
137
|
return function(n, a) {
|
|
138
138
|
if (n == null)
|
|
139
139
|
return n;
|
|
140
|
-
if (!
|
|
140
|
+
if (!ft(n))
|
|
141
141
|
return e(n, a);
|
|
142
142
|
for (var i = n.length, r = -1, s = Object(n); ++r < i && a(s[r], r, s) !== !1; )
|
|
143
143
|
;
|
|
@@ -156,7 +156,7 @@ function le(e, t) {
|
|
|
156
156
|
return n(e, Wa(t));
|
|
157
157
|
}
|
|
158
158
|
var Za = "[object Symbol]";
|
|
159
|
-
function
|
|
159
|
+
function pt(e) {
|
|
160
160
|
return typeof e == "symbol" || Fe(e) && Ee(e) == Za;
|
|
161
161
|
}
|
|
162
162
|
var Ja = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Qa = /^\w*$/;
|
|
@@ -164,10 +164,10 @@ function Xa(e, t) {
|
|
|
164
164
|
if (ke(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 || pt(e) ? !0 : Qa.test(e) || !Ja.test(e) || t != null && e in Object(t);
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
var e = /[^.]+$/.exec(
|
|
169
|
+
var St = pe["__core-js_shared__"], Ht = function() {
|
|
170
|
+
var e = /[^.]+$/.exec(St && St.keys && St.keys.IE_PROTO || "");
|
|
171
171
|
return e ? "Symbol(src)_1." + e : "";
|
|
172
172
|
}();
|
|
173
173
|
function er(e) {
|
|
@@ -245,32 +245,32 @@ je.prototype.set = Mr;
|
|
|
245
245
|
function Sr() {
|
|
246
246
|
this.__data__ = [], this.size = 0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function gt(e, t) {
|
|
249
249
|
return e === t || e !== e && t !== t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function vt(e, t) {
|
|
252
252
|
for (var n = e.length; n--; )
|
|
253
|
-
if (
|
|
253
|
+
if (gt(e[n][0], t))
|
|
254
254
|
return n;
|
|
255
255
|
return -1;
|
|
256
256
|
}
|
|
257
257
|
var Tr = Array.prototype, Cr = Tr.splice;
|
|
258
258
|
function Ir(e) {
|
|
259
|
-
var t = this.__data__, n =
|
|
259
|
+
var t = this.__data__, n = vt(t, e);
|
|
260
260
|
if (n < 0)
|
|
261
261
|
return !1;
|
|
262
262
|
var a = t.length - 1;
|
|
263
263
|
return n == a ? t.pop() : Cr.call(t, n, 1), --this.size, !0;
|
|
264
264
|
}
|
|
265
265
|
function Or(e) {
|
|
266
|
-
var t = this.__data__, n =
|
|
266
|
+
var t = this.__data__, n = vt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
269
|
function Ar(e) {
|
|
270
|
-
return
|
|
270
|
+
return vt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
272
|
function Er(e, t) {
|
|
273
|
-
var n = this.__data__, a =
|
|
273
|
+
var n = this.__data__, a = vt(n, e);
|
|
274
274
|
return a < 0 ? (++this.size, n.push([e, t])) : n[a][1] = t, this;
|
|
275
275
|
}
|
|
276
276
|
function Me(e) {
|
|
@@ -297,22 +297,22 @@ function kr(e) {
|
|
|
297
297
|
var t = typeof e;
|
|
298
298
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function yt(e, t) {
|
|
301
301
|
var n = e.__data__;
|
|
302
302
|
return kr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
303
303
|
}
|
|
304
304
|
function Ur(e) {
|
|
305
|
-
var t =
|
|
305
|
+
var t = yt(this, e).delete(e);
|
|
306
306
|
return this.size -= t ? 1 : 0, t;
|
|
307
307
|
}
|
|
308
308
|
function $r(e) {
|
|
309
|
-
return
|
|
309
|
+
return yt(this, e).get(e);
|
|
310
310
|
}
|
|
311
311
|
function Vr(e) {
|
|
312
|
-
return
|
|
312
|
+
return yt(this, e).has(e);
|
|
313
313
|
}
|
|
314
314
|
function jr(e, t) {
|
|
315
|
-
var n =
|
|
315
|
+
var n = yt(this, e), a = n.size;
|
|
316
316
|
return n.set(e, t), this.size += n.size == a ? 0 : 1, this;
|
|
317
317
|
}
|
|
318
318
|
function Se(e) {
|
|
@@ -365,7 +365,7 @@ function zn(e) {
|
|
|
365
365
|
return e;
|
|
366
366
|
if (ke(e))
|
|
367
367
|
return Dr(e, zn) + "";
|
|
368
|
-
if (
|
|
368
|
+
if (pt(e))
|
|
369
369
|
return Wt ? Wt.call(e) : "";
|
|
370
370
|
var t = e + "";
|
|
371
371
|
return t == "0" && 1 / e == -Br ? "-0" : t;
|
|
@@ -378,7 +378,7 @@ function zr(e, t) {
|
|
|
378
378
|
}
|
|
379
379
|
var xr = 1 / 0;
|
|
380
380
|
function Yr(e) {
|
|
381
|
-
if (typeof e == "string" ||
|
|
381
|
+
if (typeof e == "string" || pt(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
384
|
return t == "0" && 1 / e == -xr ? "-0" : t;
|
|
@@ -448,9 +448,9 @@ function Yn(e, t, n) {
|
|
|
448
448
|
var no = Object.prototype, io = no.hasOwnProperty;
|
|
449
449
|
function Hn(e, t, n) {
|
|
450
450
|
var a = e[t];
|
|
451
|
-
(!(io.call(e, t) &&
|
|
451
|
+
(!(io.call(e, t) && gt(a, n)) || n === void 0 && !(t in e)) && Yn(e, t, n);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function bt(e, t, n, a) {
|
|
454
454
|
var i = !n;
|
|
455
455
|
n || (n = {});
|
|
456
456
|
for (var r = -1, s = t.length; ++r < s; ) {
|
|
@@ -460,7 +460,7 @@ function yt(e, t, n, a) {
|
|
|
460
460
|
return n;
|
|
461
461
|
}
|
|
462
462
|
function ao(e, t) {
|
|
463
|
-
return e &&
|
|
463
|
+
return e && bt(t, ht(t), e);
|
|
464
464
|
}
|
|
465
465
|
function ro(e) {
|
|
466
466
|
var t = [];
|
|
@@ -478,11 +478,11 @@ function lo(e) {
|
|
|
478
478
|
a == "constructor" && (t || !so.call(e, a)) || n.push(a);
|
|
479
479
|
return n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function _t(e) {
|
|
482
|
+
return ft(e) ? Dn(e, !0) : lo(e);
|
|
483
483
|
}
|
|
484
484
|
function uo(e, t) {
|
|
485
|
-
return e &&
|
|
485
|
+
return e && bt(t, _t(t), e);
|
|
486
486
|
}
|
|
487
487
|
var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, Zt = Gn && typeof module == "object" && module && !module.nodeType && module, co = Zt && Zt.exports === Gn, Jt = co ? pe.Buffer : void 0, Qt = Jt ? Jt.allocUnsafe : void 0;
|
|
488
488
|
function mo(e, t) {
|
|
@@ -513,7 +513,7 @@ var po = Object.prototype, go = po.propertyIsEnumerable, Xt = Object.getOwnPrope
|
|
|
513
513
|
}));
|
|
514
514
|
} : Wn;
|
|
515
515
|
function vo(e, t) {
|
|
516
|
-
return
|
|
516
|
+
return bt(e, Nt(e), t);
|
|
517
517
|
}
|
|
518
518
|
function Zn(e, t) {
|
|
519
519
|
for (var n = -1, a = t.length, i = e.length; ++n < a; )
|
|
@@ -526,20 +526,20 @@ var Jn = Bn(Object.getPrototypeOf, Object), yo = Object.getOwnPropertySymbols, Q
|
|
|
526
526
|
return t;
|
|
527
527
|
} : Wn;
|
|
528
528
|
function bo(e, t) {
|
|
529
|
-
return
|
|
529
|
+
return bt(e, Qn(e), t);
|
|
530
530
|
}
|
|
531
531
|
function Xn(e, t, n) {
|
|
532
532
|
var a = t(e);
|
|
533
533
|
return ke(e) ? a : Zn(a, n(e));
|
|
534
534
|
}
|
|
535
535
|
function _o(e) {
|
|
536
|
-
return Xn(e,
|
|
536
|
+
return Xn(e, ht, Nt);
|
|
537
537
|
}
|
|
538
538
|
function wo(e) {
|
|
539
|
-
return Xn(e,
|
|
539
|
+
return Xn(e, _t, Qn);
|
|
540
540
|
}
|
|
541
|
-
var
|
|
542
|
-
(
|
|
541
|
+
var Ot = Ke(pe, "DataView"), At = Ke(pe, "Promise"), ze = Ke(pe, "Set"), Et = Ke(pe, "WeakMap"), en = "[object Map]", Mo = "[object Object]", tn = "[object Promise]", nn = "[object Set]", an = "[object WeakMap]", rn = "[object DataView]", So = qe(Ot), To = qe(tt), Co = qe(At), Io = qe(ze), Oo = qe(Et), _e = Ee;
|
|
542
|
+
(Ot && _e(new Ot(new ArrayBuffer(1))) != rn || tt && _e(new tt()) != en || At && _e(At.resolve()) != tn || ze && _e(new ze()) != nn || Et && _e(new Et()) != an) && (_e = function(e) {
|
|
543
543
|
var t = Ee(e), n = t == Mo ? e.constructor : void 0, a = n ? qe(n) : "";
|
|
544
544
|
if (a)
|
|
545
545
|
switch (a) {
|
|
@@ -676,7 +676,7 @@ function Qe(e, t, n, a, i, r) {
|
|
|
676
676
|
}) : os(e) && e.forEach(function(w, I) {
|
|
677
677
|
s.set(I, Qe(w, t, n, I, e, r));
|
|
678
678
|
});
|
|
679
|
-
var N = l ? d ? wo : _o : d ?
|
|
679
|
+
var N = l ? d ? wo : _o : d ? _t : ht, f = c ? void 0 : N(e);
|
|
680
680
|
return $n(f || e, function(w, I) {
|
|
681
681
|
f && (I = w, w = e[I]), Hn(s, I, Qe(w, t, n, I, e, r));
|
|
682
682
|
}), s;
|
|
@@ -725,7 +725,7 @@ const ii = {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
var
|
|
728
|
+
var Tt = function() {
|
|
729
729
|
return pe.Date.now();
|
|
730
730
|
}, Ls = /\s/;
|
|
731
731
|
function qs(e) {
|
|
@@ -738,10 +738,10 @@ function Ds(e) {
|
|
|
738
738
|
return e && e.slice(0, qs(e) + 1).replace(Ks, "");
|
|
739
739
|
}
|
|
740
740
|
var fn = NaN, Bs = /^[-+]0x[0-9a-f]+$/i, zs = /^0b[01]+$/i, xs = /^0o[0-7]+$/i, Ys = parseInt;
|
|
741
|
-
function
|
|
741
|
+
function Ft(e) {
|
|
742
742
|
if (typeof e == "number")
|
|
743
743
|
return e;
|
|
744
|
-
if (
|
|
744
|
+
if (pt(e))
|
|
745
745
|
return fn;
|
|
746
746
|
if (me(e)) {
|
|
747
747
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -758,7 +758,7 @@ function nt(e, t, n) {
|
|
|
758
758
|
var a, i, r, s, o, d, l = 0, c = !1, m = !1, p = !0;
|
|
759
759
|
if (typeof e != "function")
|
|
760
760
|
throw new TypeError(Hs);
|
|
761
|
-
t =
|
|
761
|
+
t = Ft(t) || 0, me(n) && (c = !!n.leading, m = "maxWait" in n, r = m ? Gs(Ft(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
762
762
|
function E(y) {
|
|
763
763
|
var v = a, P = i;
|
|
764
764
|
return a = i = void 0, l = y, s = e.apply(P, v), s;
|
|
@@ -775,7 +775,7 @@ function nt(e, t, n) {
|
|
|
775
775
|
return d === void 0 || v >= t || v < 0 || m && P >= r;
|
|
776
776
|
}
|
|
777
777
|
function I() {
|
|
778
|
-
var y =
|
|
778
|
+
var y = Tt();
|
|
779
779
|
if (w(y))
|
|
780
780
|
return F(y);
|
|
781
781
|
o = setTimeout(I, f(y));
|
|
@@ -787,10 +787,10 @@ function nt(e, t, n) {
|
|
|
787
787
|
o !== void 0 && clearTimeout(o), l = 0, a = d = i = o = void 0;
|
|
788
788
|
}
|
|
789
789
|
function k() {
|
|
790
|
-
return o === void 0 ? s : F(
|
|
790
|
+
return o === void 0 ? s : F(Tt());
|
|
791
791
|
}
|
|
792
792
|
function j() {
|
|
793
|
-
var y =
|
|
793
|
+
var y = Tt(), v = w(y);
|
|
794
794
|
if (a = arguments, i = this, d = y, v) {
|
|
795
795
|
if (o === void 0)
|
|
796
796
|
return N(d);
|
|
@@ -1238,15 +1238,15 @@ function kl(e, t, n) {
|
|
|
1238
1238
|
if (!me(n))
|
|
1239
1239
|
return !1;
|
|
1240
1240
|
var a = typeof t;
|
|
1241
|
-
return (a == "number" ?
|
|
1241
|
+
return (a == "number" ? ft(n) && Ln(t, n.length) : a == "string" && t in n) ? gt(n[t], e) : !1;
|
|
1242
1242
|
}
|
|
1243
1243
|
var fi = Object.prototype, Ul = fi.hasOwnProperty, $l = Fl(function(e, t) {
|
|
1244
1244
|
e = Object(e);
|
|
1245
1245
|
var n = -1, a = t.length, i = a > 2 ? t[2] : void 0;
|
|
1246
1246
|
for (i && kl(t[0], t[1], i) && (a = 1); ++n < a; )
|
|
1247
|
-
for (var r = t[n], s =
|
|
1247
|
+
for (var r = t[n], s = _t(r), o = -1, d = s.length; ++o < d; ) {
|
|
1248
1248
|
var l = s[o], c = e[l];
|
|
1249
|
-
(c === void 0 ||
|
|
1249
|
+
(c === void 0 || gt(c, fi[l]) && !Ul.call(e, l)) && (e[l] = r[l]);
|
|
1250
1250
|
}
|
|
1251
1251
|
return e;
|
|
1252
1252
|
}), Vl = pe.isFinite;
|
|
@@ -1257,7 +1257,7 @@ var Mn = 1 / 0, Rl = 17976931348623157e292;
|
|
|
1257
1257
|
function Pl(e) {
|
|
1258
1258
|
if (!e)
|
|
1259
1259
|
return e === 0 ? e : 0;
|
|
1260
|
-
if (e =
|
|
1260
|
+
if (e = Ft(e), e === Mn || e === -Mn) {
|
|
1261
1261
|
var t = e < 0 ? -1 : 1;
|
|
1262
1262
|
return t * Rl;
|
|
1263
1263
|
}
|
|
@@ -1271,7 +1271,7 @@ function Ll(e) {
|
|
|
1271
1271
|
return typeof e == "number" && e == Nl(e);
|
|
1272
1272
|
}
|
|
1273
1273
|
var ql = "[object Number]";
|
|
1274
|
-
function
|
|
1274
|
+
function ut(e) {
|
|
1275
1275
|
return typeof e == "number" || Fe(e) && Ee(e) == ql;
|
|
1276
1276
|
}
|
|
1277
1277
|
const Kl = {
|
|
@@ -1489,7 +1489,7 @@ const Kl = {
|
|
|
1489
1489
|
},
|
|
1490
1490
|
double: (e, t, n, a = oe) => {
|
|
1491
1491
|
const i = fe(e, t.required, a);
|
|
1492
|
-
return i ?? (!
|
|
1492
|
+
return i ?? (!ut(e) || isNaN(e) ? [Z(a.invalidNumber)] : []);
|
|
1493
1493
|
},
|
|
1494
1494
|
string: (e, t, n, a = oe) => {
|
|
1495
1495
|
let i = fe(e, t.required, a);
|
|
@@ -1566,7 +1566,7 @@ Object.keys(Ne).forEach((e) => {
|
|
|
1566
1566
|
function Sn(e) {
|
|
1567
1567
|
return Re(e) ? Ne[e] != null ? Ne[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Ct(e, t, n) {
|
|
1570
1570
|
let a = z(n.context, "schema.attributes", {});
|
|
1571
1571
|
const i = t.value || "input";
|
|
1572
1572
|
Re(i) && (a = z(a, i) || a), le(a, (r, s) => {
|
|
@@ -1586,9 +1586,9 @@ const ye = {
|
|
|
1586
1586
|
},
|
|
1587
1587
|
directives: {
|
|
1588
1588
|
attributes: {
|
|
1589
|
-
beforeMount:
|
|
1590
|
-
updated:
|
|
1591
|
-
componentUpdated:
|
|
1589
|
+
beforeMount: Ct,
|
|
1590
|
+
updated: Ct,
|
|
1591
|
+
componentUpdated: Ct
|
|
1592
1592
|
}
|
|
1593
1593
|
},
|
|
1594
1594
|
computed: {
|
|
@@ -1840,7 +1840,7 @@ const Zl = /* @__PURE__ */ x(Yl, [["render", Wl], ["__scopeId", "data-v-acfccff7
|
|
|
1840
1840
|
]);
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
}), gi = /* @__PURE__ */ x(ad, [["__scopeId", "data-v-37458a0a"]]), rd = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", od = (e) => e ? e.length === 36 && new RegExp(`^${rd}$`).test(e) : !1,
|
|
1843
|
+
}), gi = /* @__PURE__ */ x(ad, [["__scopeId", "data-v-37458a0a"]]), rd = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", od = (e) => e ? e.length === 36 && new RegExp(`^${rd}$`).test(e) : !1, It = 50, Ve = {
|
|
1844
1844
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
1845
1845
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
1846
1846
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -1938,15 +1938,15 @@ const ld = {
|
|
|
1938
1938
|
let n = null;
|
|
1939
1939
|
if (!this[$e])
|
|
1940
1940
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
1941
|
-
for (; t.length <
|
|
1941
|
+
for (; t.length < It; ) {
|
|
1942
1942
|
const a = await this[$e].getAll(this.entity, {
|
|
1943
|
-
size:
|
|
1943
|
+
size: It,
|
|
1944
1944
|
offset: n,
|
|
1945
1945
|
...e
|
|
1946
1946
|
});
|
|
1947
1947
|
if (t.push(...a.data.data), n = a.data.offset, !n) break;
|
|
1948
1948
|
}
|
|
1949
|
-
return t.slice(0,
|
|
1949
|
+
return t.slice(0, It);
|
|
1950
1950
|
},
|
|
1951
1951
|
async fetchSuggestions(e, t) {
|
|
1952
1952
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -2221,13 +2221,13 @@ const be = {
|
|
|
2221
2221
|
const y = p[m.value] || "", v = Be.parse(b, y);
|
|
2222
2222
|
v && ((P = a.schema) != null && P.format ? j = Be.format(v, (q = a.schema) == null ? void 0 : q.format) : j = v.valueOf()), o(j, k);
|
|
2223
2223
|
}, N = (b, k) => {
|
|
2224
|
-
|
|
2224
|
+
ut(b) || (b = NaN), o(b, k);
|
|
2225
2225
|
}, f = (b) => {
|
|
2226
2226
|
let k = b;
|
|
2227
2227
|
switch (m.value) {
|
|
2228
2228
|
case "number":
|
|
2229
2229
|
case "range":
|
|
2230
|
-
|
|
2230
|
+
ut(parseFloat(b)) && (k = parseFloat(b));
|
|
2231
2231
|
break;
|
|
2232
2232
|
}
|
|
2233
2233
|
c.value = k, o(k, b);
|
|
@@ -2891,7 +2891,9 @@ const wi = /* @__PURE__ */ x($d, [["render", xd], ["__scopeId", "data-v-9c0cacfc
|
|
|
2891
2891
|
this.$emit("refreshModel");
|
|
2892
2892
|
},
|
|
2893
2893
|
handleInput(e, t) {
|
|
2894
|
-
|
|
2894
|
+
var a, i;
|
|
2895
|
+
let n = e;
|
|
2896
|
+
((i = (a = this.schema) == null ? void 0 : a.inputAttributes) == null ? void 0 : i.type) === "number" && ut(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((r, s) => s === t ? n : r);
|
|
2895
2897
|
}
|
|
2896
2898
|
}
|
|
2897
2899
|
}, Wd = ["id"], Zd = { key: 1 }, Jd = ["onUpdate:modelValue", "aria-labelledby", "type"], Qd = ["onUpdate:modelValue", "aria-labelledby"];
|
|
@@ -3017,7 +3019,7 @@ function Xd(e, t, n, a, i, r) {
|
|
|
3017
3019
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3018
3020
|
], 10, Wd)) : V("", !0);
|
|
3019
3021
|
}
|
|
3020
|
-
const eu = /* @__PURE__ */ x(Gd, [["render", Xd], ["__scopeId", "data-v-
|
|
3022
|
+
const eu = /* @__PURE__ */ x(Gd, [["render", Xd], ["__scopeId", "data-v-1089abe7"]]), tu = { class: "form-field-wrapper field-checkbox" }, nu = /* @__PURE__ */ re({
|
|
3021
3023
|
__name: "FieldCheckbox",
|
|
3022
3024
|
props: {
|
|
3023
3025
|
disabled: {
|
|
@@ -3944,13 +3946,13 @@ function Xu(e, t, n, a, i, r) {
|
|
|
3944
3946
|
], 2);
|
|
3945
3947
|
}
|
|
3946
3948
|
const Ti = /* @__PURE__ */ x(Du, [["render", Xu], ["__scopeId", "data-v-0cb2e226"]]), ec = "12px";
|
|
3947
|
-
var
|
|
3949
|
+
var ct = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ct || {});
|
|
3948
3950
|
const tc = (e) => {
|
|
3949
3951
|
var t, n;
|
|
3950
|
-
return e.type ===
|
|
3952
|
+
return e.type === ct.REDIS_CE ? "Host/Port" : (t = e.config.sentinel_nodes) != null && t.length ? "Sentinel" : (n = e.config.cluster_nodes) != null && n.length ? "Cluster" : "Host/Port";
|
|
3951
3953
|
}, nc = {
|
|
3952
|
-
[
|
|
3953
|
-
[
|
|
3954
|
+
[ct.REDIS_CE]: "open source",
|
|
3955
|
+
[ct.REDIS_EE]: "enterprise"
|
|
3954
3956
|
}, Cn = (e) => nc[e] ?? "", ic = { class: "partial-config-card" }, ac = { class: "config-card-row-label" }, rc = { class: "label-text" }, oc = ["data-testid"], sc = ["data-testid"], lc = { key: 1 }, dc = ["data-testid"], uc = ["data-testid"], cc = /* @__PURE__ */ re({
|
|
3955
3957
|
__name: "RedisConfigCard",
|
|
3956
3958
|
props: {
|
|
@@ -5046,7 +5048,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-846700f6
|
|
|
5046
5048
|
},
|
|
5047
5049
|
setup(e) {
|
|
5048
5050
|
var s;
|
|
5049
|
-
it(he, (s =
|
|
5051
|
+
it(he, (s = mt()) == null ? void 0 : s[He]);
|
|
5050
5052
|
const { t, te: n } = ge("en-us", ve), a = e, i = L(() => a.formModel.id && a.isEditing || !a.isEditing), r = L(() => {
|
|
5051
5053
|
const o = a.formSchema;
|
|
5052
5054
|
return o.fields.map((d) => {
|
|
@@ -5089,7 +5091,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-846700f6
|
|
|
5089
5091
|
},
|
|
5090
5092
|
setup(e) {
|
|
5091
5093
|
var s;
|
|
5092
|
-
it(he, (s =
|
|
5094
|
+
it(he, (s = mt()) == null ? void 0 : s[He]);
|
|
5093
5095
|
const { t, te: n } = ge("en-us", ve), a = e, i = L(() => a.formModel.id && a.isEditing || !a.isEditing), r = L(() => {
|
|
5094
5096
|
const o = a.formSchema;
|
|
5095
5097
|
return o.fields.map((d) => {
|
|
@@ -5220,7 +5222,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-846700f6
|
|
|
5220
5222
|
},
|
|
5221
5223
|
setup(e) {
|
|
5222
5224
|
var j;
|
|
5223
|
-
it(he, (j =
|
|
5225
|
+
it(he, (j = mt()) == null ? void 0 : j[He]);
|
|
5224
5226
|
const t = e, n = ue("zeroSsl"), a = ue("shm"), i = L(() => {
|
|
5225
5227
|
var v;
|
|
5226
5228
|
const y = {};
|
|
@@ -5441,7 +5443,7 @@ const qc = /* @__PURE__ */ x(kc, [["render", Lc], ["__scopeId", "data-v-846700f6
|
|
|
5441
5443
|
},
|
|
5442
5444
|
setup(e) {
|
|
5443
5445
|
var q;
|
|
5444
|
-
it(he, (q =
|
|
5446
|
+
it(he, (q = mt()) == null ? void 0 : q[He]);
|
|
5445
5447
|
const t = {
|
|
5446
5448
|
fixed: [
|
|
5447
5449
|
{
|
|
@@ -5690,14 +5692,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5690
5692
|
"model-value": K.limit && K.limit.toString(),
|
|
5691
5693
|
placeholder: M(i)("rla.request_limits.request_number"),
|
|
5692
5694
|
type: "number",
|
|
5693
|
-
"onUpdate:modelValue": (
|
|
5695
|
+
"onUpdate:modelValue": (wt) => j(te, Number.parseInt(wt))
|
|
5694
5696
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5695
5697
|
h("div", null, U(M(i)("rla.request_limits.interval_determiner")), 1),
|
|
5696
5698
|
T(B, {
|
|
5697
5699
|
"model-value": K.windowSize && K.windowSize.toString(),
|
|
5698
5700
|
placeholder: M(i)("rla.request_limits.time_interval"),
|
|
5699
5701
|
type: "number",
|
|
5700
|
-
"onUpdate:modelValue": (
|
|
5702
|
+
"onUpdate:modelValue": (wt) => y(te, Number.parseInt(wt))
|
|
5701
5703
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5702
5704
|
h("div", null, U(M(i)("rla.request_limits.seconds")), 1)
|
|
5703
5705
|
], 8, dm),
|
|
@@ -5886,7 +5888,7 @@ export {
|
|
|
5886
5888
|
He as AUTOFILL_SLOT_NAME,
|
|
5887
5889
|
$e as FORMS_API_KEY,
|
|
5888
5890
|
Gr as FORMS_CONFIG,
|
|
5889
|
-
|
|
5891
|
+
ct as PartialType,
|
|
5890
5892
|
Wr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5891
5893
|
ae as VueFormGenerator,
|
|
5892
5894
|
wm as abstractField,
|