@kong-ui-public/forms 4.23.11 → 4.23.12-pr.3122.45cd55897.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 +671 -666
- package/dist/forms.umd.js +3 -3
- package/dist/style.css +1 -1
- package/dist/types/components/forms/OIDCForm.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as b, createElementVNode as
|
|
1
|
+
import { openBlock as c, createElementBlock as b, createElementVNode as h, toDisplayString as V, normalizeClass as ee, createVNode as C, defineComponent as fe, provide as Yt, resolveComponent as j, withCtx as A, renderSlot as Ce, unref as R, createTextVNode as ce, useModel as Ko, createBlock as $, createSlots as ei, mergeModels as Ui, inject as zt, ref as ne, onMounted as ti, watch as Wt, resolveDynamicComponent as me, Fragment as Y, renderList as oe, computed as q, toRefs as ft, onBeforeMount as ni, mergeProps as Xe, Transition as xo, createCommentVNode as B, resolveDirective as Oa, withDirectives as Ee, vModelText as Kt, vModelCheckbox as qo, vModelSelect as Bo, vModelDynamic as Ra, isRef as It, toRef as ka, vModelRadio as zo, vShow as Ho, normalizeProps as Go, guardReactiveProps as Yo, useSlots as pn, nextTick as Ni } from "vue";
|
|
2
2
|
import { createI18n as ke } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as Ct, SearchIcon as Wo, AddIcon as ii, RemoveIcon as Zo } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as Xo } from "axios";
|
|
@@ -10,8 +10,8 @@ function Fa(e, t) {
|
|
|
10
10
|
}
|
|
11
11
|
function nr(e) {
|
|
12
12
|
return function(t, n, i) {
|
|
13
|
-
for (var a = -1, o = Object(t),
|
|
14
|
-
var d =
|
|
13
|
+
for (var a = -1, o = Object(t), r = i(t), s = r.length; s--; ) {
|
|
14
|
+
var d = r[++a];
|
|
15
15
|
if (n(o[d], d, o) === !1)
|
|
16
16
|
break;
|
|
17
17
|
}
|
|
@@ -24,16 +24,16 @@ function ar(e, t) {
|
|
|
24
24
|
i[n] = t(n);
|
|
25
25
|
return i;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Ua = typeof global == "object" && global && global.Object === Object && global, or = typeof self == "object" && self && self.Object === Object && self, Pe = Ua || or || Function("return this")(), it = Pe.Symbol, Na = Object.prototype, rr = Na.hasOwnProperty, sr = Na.toString, Nt = it ? it.toStringTag : void 0;
|
|
28
28
|
function lr(e) {
|
|
29
|
-
var t = rr.call(e,
|
|
29
|
+
var t = rr.call(e, Nt), n = e[Nt];
|
|
30
30
|
try {
|
|
31
|
-
e[
|
|
31
|
+
e[Nt] = void 0;
|
|
32
32
|
var i = !0;
|
|
33
33
|
} catch {
|
|
34
34
|
}
|
|
35
35
|
var a = sr.call(e);
|
|
36
|
-
return i && (t ? e[
|
|
36
|
+
return i && (t ? e[Nt] = n : delete e[Nt]), a;
|
|
37
37
|
}
|
|
38
38
|
var dr = Object.prototype, ur = dr.toString;
|
|
39
39
|
function cr(e) {
|
|
@@ -67,9 +67,9 @@ var Er = 9007199254740991;
|
|
|
67
67
|
function Va(e) {
|
|
68
68
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Er;
|
|
69
69
|
}
|
|
70
|
-
var wr = "[object Arguments]", Mr = "[object Array]", Ar = "[object Boolean]", Ir = "[object Date]", Cr = "[object Error]", Or = "[object Function]", Rr = "[object Map]", kr = "[object Number]", Fr = "[object Object]",
|
|
70
|
+
var wr = "[object Arguments]", Mr = "[object Array]", Ar = "[object Boolean]", Ir = "[object Date]", Cr = "[object Error]", Or = "[object Function]", Rr = "[object Map]", kr = "[object Number]", Fr = "[object Object]", Ur = "[object RegExp]", Nr = "[object Set]", Lr = "[object String]", Dr = "[object WeakMap]", Pr = "[object ArrayBuffer]", $r = "[object DataView]", Vr = "[object Float32Array]", jr = "[object Float64Array]", Kr = "[object Int8Array]", xr = "[object Int16Array]", qr = "[object Int32Array]", Br = "[object Uint8Array]", zr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Gr = "[object Uint32Array]", Q = {};
|
|
71
71
|
Q[Vr] = Q[jr] = Q[Kr] = Q[xr] = Q[qr] = Q[Br] = Q[zr] = Q[Hr] = Q[Gr] = !0;
|
|
72
|
-
Q[wr] = Q[Mr] = Q[Pr] = Q[Ar] = Q[$r] = Q[Ir] = Q[Cr] = Q[Or] = Q[Rr] = Q[kr] = Q[Fr] = Q[
|
|
72
|
+
Q[wr] = Q[Mr] = Q[Pr] = Q[Ar] = Q[$r] = Q[Ir] = Q[Cr] = Q[Or] = Q[Rr] = Q[kr] = Q[Fr] = Q[Ur] = Q[Nr] = Q[Lr] = Q[Dr] = !1;
|
|
73
73
|
function Yr(e) {
|
|
74
74
|
return ot(e) && Va(e.length) && !!Q[at(e)];
|
|
75
75
|
}
|
|
@@ -78,7 +78,7 @@ function ai(e) {
|
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var ja = typeof exports == "object" && exports && !exports.nodeType && exports, xt = ja && typeof module == "object" && module && !module.nodeType && module, Wr = xt && xt.exports === ja, Dn = Wr &&
|
|
81
|
+
var ja = typeof exports == "object" && exports && !exports.nodeType && exports, xt = ja && typeof module == "object" && module && !module.nodeType && module, Wr = xt && xt.exports === ja, Dn = Wr && Ua.process, Mt = function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = xt && xt.require && xt.require("util").types;
|
|
84
84
|
return e || Dn && Dn.binding && Dn.binding("util");
|
|
@@ -86,14 +86,14 @@ var ja = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
86
86
|
}
|
|
87
87
|
}(), Vi = Mt && Mt.isTypedArray, Zr = Vi ? ai(Vi) : Yr, Xr = Object.prototype, Jr = Xr.hasOwnProperty;
|
|
88
88
|
function Ka(e, t) {
|
|
89
|
-
var n = rt(e), i = !n && yr(e), a = !n && !i && Pa(e), o = !n && !i && !a && Zr(e),
|
|
89
|
+
var n = rt(e), i = !n && yr(e), a = !n && !i && Pa(e), o = !n && !i && !a && Zr(e), r = n || i || a || o, s = r ? ar(e.length, String) : [], d = s.length;
|
|
90
90
|
for (var u in e)
|
|
91
|
-
(t || Jr.call(e, u)) && !(
|
|
91
|
+
(t || Jr.call(e, u)) && !(r && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
92
92
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
93
93
|
a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
94
94
|
o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
95
|
-
$a(u, d))) &&
|
|
96
|
-
return
|
|
95
|
+
$a(u, d))) && s.push(u);
|
|
96
|
+
return s;
|
|
97
97
|
}
|
|
98
98
|
var Qr = Object.prototype;
|
|
99
99
|
function oi(e) {
|
|
@@ -140,7 +140,7 @@ function ds(e, t) {
|
|
|
140
140
|
return n;
|
|
141
141
|
if (!gn(n))
|
|
142
142
|
return e(n, i);
|
|
143
|
-
for (var a = n.length, o = -1,
|
|
143
|
+
for (var a = n.length, o = -1, r = Object(n); ++o < a && i(r[o], o, r) !== !1; )
|
|
144
144
|
;
|
|
145
145
|
return n;
|
|
146
146
|
};
|
|
@@ -213,7 +213,7 @@ function Os(e) {
|
|
|
213
213
|
return this.size -= t ? 1 : 0, t;
|
|
214
214
|
}
|
|
215
215
|
var Rs = "__lodash_hash_undefined__", ks = Object.prototype, Fs = ks.hasOwnProperty;
|
|
216
|
-
function
|
|
216
|
+
function Us(e) {
|
|
217
217
|
var t = this.__data__;
|
|
218
218
|
if (Ht) {
|
|
219
219
|
var n = t[e];
|
|
@@ -221,7 +221,7 @@ function Ns(e) {
|
|
|
221
221
|
}
|
|
222
222
|
return Fs.call(t, e) ? t[e] : void 0;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var Ns = Object.prototype, Ls = Ns.hasOwnProperty;
|
|
225
225
|
function Ds(e) {
|
|
226
226
|
var t = this.__data__;
|
|
227
227
|
return Ht ? t[e] !== void 0 : Ls.call(t, e);
|
|
@@ -240,7 +240,7 @@ function dt(e) {
|
|
|
240
240
|
}
|
|
241
241
|
dt.prototype.clear = Cs;
|
|
242
242
|
dt.prototype.delete = Os;
|
|
243
|
-
dt.prototype.get =
|
|
243
|
+
dt.prototype.get = Us;
|
|
244
244
|
dt.prototype.has = Ds;
|
|
245
245
|
dt.prototype.set = $s;
|
|
246
246
|
function Vs() {
|
|
@@ -336,8 +336,8 @@ function si(e, t) {
|
|
|
336
336
|
var i = arguments, a = t ? t.apply(this, i) : i[0], o = n.cache;
|
|
337
337
|
if (o.has(a))
|
|
338
338
|
return o.get(a);
|
|
339
|
-
var
|
|
340
|
-
return n.cache = o.set(a,
|
|
339
|
+
var r = e.apply(this, i);
|
|
340
|
+
return n.cache = o.set(a, r) || o, r;
|
|
341
341
|
};
|
|
342
342
|
return n.cache = new (si.Cache || Qe)(), n;
|
|
343
343
|
}
|
|
@@ -396,7 +396,7 @@ function Z(e, t, n) {
|
|
|
396
396
|
function de(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const Ne = "kong-ui-forms-api", ll = "kong-ui-forms-config", dl = "redis-partial-list-fetcher-key", Ap = "redis-partial-info", Ot = "autofill", Le = "autofillSlot", qe = {
|
|
400
400
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
401
401
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
402
402
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -529,11 +529,11 @@ const Vt = {
|
|
|
529
529
|
const o = "dompurify" + (i ? "#" + i : "");
|
|
530
530
|
try {
|
|
531
531
|
return t.createPolicy(o, {
|
|
532
|
-
createHTML(
|
|
533
|
-
return
|
|
532
|
+
createHTML(r) {
|
|
533
|
+
return r;
|
|
534
534
|
},
|
|
535
|
-
createScriptURL(
|
|
536
|
-
return
|
|
535
|
+
createScriptURL(r) {
|
|
536
|
+
return r;
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
} catch {
|
|
@@ -562,16 +562,16 @@ function Ya() {
|
|
|
562
562
|
} = e;
|
|
563
563
|
const i = n, a = i.currentScript, {
|
|
564
564
|
DocumentFragment: o,
|
|
565
|
-
HTMLTemplateElement:
|
|
566
|
-
Node:
|
|
565
|
+
HTMLTemplateElement: r,
|
|
566
|
+
Node: s,
|
|
567
567
|
Element: d,
|
|
568
568
|
NodeFilter: u,
|
|
569
569
|
NamedNodeMap: y = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
570
|
-
HTMLFormElement:
|
|
570
|
+
HTMLFormElement: f,
|
|
571
571
|
DOMParser: p,
|
|
572
572
|
trustedTypes: T
|
|
573
|
-
} = e, k = d.prototype, v = $t(k, "cloneNode"),
|
|
574
|
-
if (typeof
|
|
573
|
+
} = e, k = d.prototype, v = $t(k, "cloneNode"), N = $t(k, "remove"), U = $t(k, "nextSibling"), H = $t(k, "childNodes"), D = $t(k, "parentNode");
|
|
574
|
+
if (typeof r == "function") {
|
|
575
575
|
const K = n.createElement("template");
|
|
576
576
|
K.content && K.content.ownerDocument && (n = K.content.ownerDocument);
|
|
577
577
|
}
|
|
@@ -637,7 +637,7 @@ function Ya() {
|
|
|
637
637
|
}
|
|
638
638
|
}));
|
|
639
639
|
let fi = !0, Mn = !0, hi = !1, pi = !0, gt = !1, Jt = !0, st = !1, An = !1, In = !1, yt = !1, Qt = !1, en = !1, gi = !0, yi = !1;
|
|
640
|
-
const
|
|
640
|
+
const Uo = "user-content-";
|
|
641
641
|
let Cn = !0, Ft = !1, vt = {}, je = null;
|
|
642
642
|
const On = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
643
643
|
let vi = null;
|
|
@@ -645,19 +645,19 @@ function Ya() {
|
|
|
645
645
|
let Rn = null;
|
|
646
646
|
const _i = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), tn = "http://www.w3.org/1998/Math/MathML", nn = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml";
|
|
647
647
|
let bt = He, kn = !1, Fn = null;
|
|
648
|
-
const
|
|
648
|
+
const No = z({}, [tn, nn, He], $n);
|
|
649
649
|
let an = z({}, ["mi", "mo", "mn", "ms", "mtext"]), on = z({}, ["annotation-xml"]);
|
|
650
650
|
const Lo = z({}, ["title", "style", "font", "a", "script"]);
|
|
651
|
-
let
|
|
651
|
+
let Ut = null;
|
|
652
652
|
const Do = ["application/xhtml+xml", "text/html"], Po = "text/html";
|
|
653
653
|
let ge = null, _t = null;
|
|
654
654
|
const $o = n.createElement("form"), Ti = function(l) {
|
|
655
655
|
return l instanceof RegExp || l instanceof Function;
|
|
656
|
-
},
|
|
656
|
+
}, Un = function() {
|
|
657
657
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
658
658
|
if (!(_t && _t === l)) {
|
|
659
|
-
if ((!l || typeof l != "object") && (l = {}), l = xe(l),
|
|
660
|
-
Do.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Po : l.PARSER_MEDIA_TYPE, ge =
|
|
659
|
+
if ((!l || typeof l != "object") && (l = {}), l = xe(l), Ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
660
|
+
Do.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Po : l.PARSER_MEDIA_TYPE, ge = Ut === "application/xhtml+xml" ? $n : dn, x = Oe(l, "ALLOWED_TAGS") ? z({}, l.ALLOWED_TAGS, ge) : ie, re = Oe(l, "ALLOWED_ATTR") ? z({}, l.ALLOWED_ATTR, ge) : mi, Fn = Oe(l, "ALLOWED_NAMESPACES") ? z({}, l.ALLOWED_NAMESPACES, $n) : No, Rn = Oe(l, "ADD_URI_SAFE_ATTR") ? z(xe(_i), l.ADD_URI_SAFE_ATTR, ge) : _i, vi = Oe(l, "ADD_DATA_URI_TAGS") ? z(xe(bi), l.ADD_DATA_URI_TAGS, ge) : bi, je = Oe(l, "FORBID_CONTENTS") ? z({}, l.FORBID_CONTENTS, ge) : On, kt = Oe(l, "FORBID_TAGS") ? z({}, l.FORBID_TAGS, ge) : xe({}), Xt = Oe(l, "FORBID_ATTR") ? z({}, l.FORBID_ATTR, ge) : xe({}), vt = Oe(l, "USE_PROFILES") ? l.USE_PROFILES : !1, fi = l.ALLOW_ARIA_ATTR !== !1, Mn = l.ALLOW_DATA_ATTR !== !1, hi = l.ALLOW_UNKNOWN_PROTOCOLS || !1, pi = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, gt = l.SAFE_FOR_TEMPLATES || !1, Jt = l.SAFE_FOR_XML !== !1, st = l.WHOLE_DOCUMENT || !1, yt = l.RETURN_DOM || !1, Qt = l.RETURN_DOM_FRAGMENT || !1, en = l.RETURN_TRUSTED_TYPE || !1, In = l.FORCE_BODY || !1, gi = l.SANITIZE_DOM !== !1, yi = l.SANITIZE_NAMED_PROPS || !1, Cn = l.KEEP_CONTENT !== !1, Ft = l.IN_PLACE || !1, Zt = l.ALLOWED_URI_REGEXP || Ha, bt = l.NAMESPACE || He, an = l.MATHML_TEXT_INTEGRATION_POINTS || an, on = l.HTML_INTEGRATION_POINTS || on, se = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && Ti(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && Ti(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), gt && (Mn = !1), Qt && (yt = !0), vt && (x = z({}, Hi), re = ln(null), vt.html === !0 && (z(x, zi), z(re, Gi)), vt.svg === !0 && (z(x, jn), z(re, qn), z(re, sn)), vt.svgFilters === !0 && (z(x, Kn), z(re, qn), z(re, sn)), vt.mathMl === !0 && (z(x, xn), z(re, Yi), z(re, sn))), Oe(l, "ADD_TAGS") || (et.tagCheck = null), Oe(l, "ADD_ATTR") || (et.attributeCheck = null), l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? et.tagCheck = l.ADD_TAGS : (x === ie && (x = xe(x)), z(x, l.ADD_TAGS, ge))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? et.attributeCheck = l.ADD_ATTR : (re === mi && (re = xe(re)), z(re, l.ADD_ATTR, ge))), l.ADD_URI_SAFE_ATTR && z(Rn, l.ADD_URI_SAFE_ATTR, ge), l.FORBID_CONTENTS && (je === On && (je = xe(je)), z(je, l.FORBID_CONTENTS, ge)), l.ADD_FORBID_CONTENTS && (je === On && (je = xe(je)), z(je, l.ADD_FORBID_CONTENTS, ge)), Cn && (x["#text"] = !0), st && z(x, ["html", "head", "body"]), x.table && (z(x, ["tbody"]), delete kt.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
661
661
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
662
662
|
throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
663
663
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -674,7 +674,7 @@ function Ya() {
|
|
|
674
674
|
tagName: "template"
|
|
675
675
|
});
|
|
676
676
|
const P = dn(l.tagName), te = dn(S.tagName);
|
|
677
|
-
return Fn[l.namespaceURI] ? l.namespaceURI === nn ? S.namespaceURI === He ? P === "svg" : S.namespaceURI === tn ? P === "svg" && (te === "annotation-xml" || an[te]) : !!Si[P] : l.namespaceURI === tn ? S.namespaceURI === He ? P === "math" : S.namespaceURI === nn ? P === "math" && on[te] : !!Ei[P] : l.namespaceURI === He ? S.namespaceURI === nn && !on[te] || S.namespaceURI === tn && !an[te] ? !1 : !Ei[P] && (Lo[P] || !Si[P]) : !!(
|
|
677
|
+
return Fn[l.namespaceURI] ? l.namespaceURI === nn ? S.namespaceURI === He ? P === "svg" : S.namespaceURI === tn ? P === "svg" && (te === "annotation-xml" || an[te]) : !!Si[P] : l.namespaceURI === tn ? S.namespaceURI === He ? P === "math" : S.namespaceURI === nn ? P === "math" && on[te] : !!Ei[P] : l.namespaceURI === He ? S.namespaceURI === nn && !on[te] || S.namespaceURI === tn && !an[te] ? !1 : !Ei[P] && (Lo[P] || !Si[P]) : !!(Ut === "application/xhtml+xml" && Fn[l.namespaceURI]) : !1;
|
|
678
678
|
}, Ke = function(l) {
|
|
679
679
|
Lt(t.removed, {
|
|
680
680
|
element: l
|
|
@@ -682,7 +682,7 @@ function Ya() {
|
|
|
682
682
|
try {
|
|
683
683
|
D(l).removeChild(l);
|
|
684
684
|
} catch {
|
|
685
|
-
|
|
685
|
+
N(l);
|
|
686
686
|
}
|
|
687
687
|
}, lt = function(l, S) {
|
|
688
688
|
try {
|
|
@@ -715,11 +715,11 @@ function Ya() {
|
|
|
715
715
|
const pe = Vn(l, /^[\r\n\t ]+/);
|
|
716
716
|
P = pe && pe[0];
|
|
717
717
|
}
|
|
718
|
-
|
|
718
|
+
Ut === "application/xhtml+xml" && bt === He && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
719
719
|
const te = M ? M.createHTML(l) : l;
|
|
720
720
|
if (bt === He)
|
|
721
721
|
try {
|
|
722
|
-
S = new p().parseFromString(te,
|
|
722
|
+
S = new p().parseFromString(te, Ut);
|
|
723
723
|
} catch {
|
|
724
724
|
}
|
|
725
725
|
if (!S || !S.documentElement) {
|
|
@@ -739,10 +739,10 @@ function Ya() {
|
|
|
739
739
|
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
740
740
|
null
|
|
741
741
|
);
|
|
742
|
-
},
|
|
743
|
-
return l instanceof
|
|
742
|
+
}, Nn = function(l) {
|
|
743
|
+
return l instanceof f && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof y) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
744
744
|
}, Ai = function(l) {
|
|
745
|
-
return typeof
|
|
745
|
+
return typeof s == "function" && l instanceof s;
|
|
746
746
|
};
|
|
747
747
|
function Ge(K, l, S) {
|
|
748
748
|
rn(K, (P) => {
|
|
@@ -751,7 +751,7 @@ function Ya() {
|
|
|
751
751
|
}
|
|
752
752
|
const Ii = function(l) {
|
|
753
753
|
let S = null;
|
|
754
|
-
if (Ge(g.beforeSanitizeElements, l, null),
|
|
754
|
+
if (Ge(g.beforeSanitizeElements, l, null), Nn(l))
|
|
755
755
|
return Ke(l), !0;
|
|
756
756
|
const P = ge(l.nodeName);
|
|
757
757
|
if (Ge(g.uponSanitizeElement, l, {
|
|
@@ -768,7 +768,7 @@ function Ya() {
|
|
|
768
768
|
const pe = _e.length;
|
|
769
769
|
for (let Ae = pe - 1; Ae >= 0; --Ae) {
|
|
770
770
|
const Ye = v(_e[Ae], !0);
|
|
771
|
-
Ye.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(Ye,
|
|
771
|
+
Ye.__removalCount = (l.__removalCount || 0) + 1, te.insertBefore(Ye, U(l));
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}
|
|
@@ -815,7 +815,7 @@ function Ya() {
|
|
|
815
815
|
const {
|
|
816
816
|
attributes: S
|
|
817
817
|
} = l;
|
|
818
|
-
if (!S ||
|
|
818
|
+
if (!S || Nn(l))
|
|
819
819
|
return;
|
|
820
820
|
const P = {
|
|
821
821
|
attrName: "",
|
|
@@ -832,7 +832,7 @@ function Ya() {
|
|
|
832
832
|
value: Ye
|
|
833
833
|
} = _e, Tt = ge(pe), Ln = Ye;
|
|
834
834
|
let ve = pe === "value" ? Ln : yl(Ln);
|
|
835
|
-
if (P.attrName = Tt, P.attrValue = ve, P.keepAttr = !0, P.forceKeepAttr = void 0, Ge(g.uponSanitizeAttribute, l, P), ve = P.attrValue, yi && (Tt === "id" || Tt === "name") && (lt(pe, l), ve =
|
|
835
|
+
if (P.attrName = Tt, P.attrValue = ve, P.keepAttr = !0, P.forceKeepAttr = void 0, Ge(g.uponSanitizeAttribute, l, P), ve = P.attrValue, yi && (Tt === "id" || Tt === "name") && (lt(pe, l), ve = Uo + ve), Jt && Te(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ve)) {
|
|
836
836
|
lt(pe, l);
|
|
837
837
|
continue;
|
|
838
838
|
}
|
|
@@ -871,7 +871,7 @@ function Ya() {
|
|
|
871
871
|
}
|
|
872
872
|
if (ve !== Ln)
|
|
873
873
|
try {
|
|
874
|
-
Ae ? l.setAttributeNS(Ae, pe, ve) : l.setAttribute(pe, ve),
|
|
874
|
+
Ae ? l.setAttributeNS(Ae, pe, ve) : l.setAttribute(pe, ve), Nn(l) ? Ke(l) : Bi(t.removed);
|
|
875
875
|
} catch {
|
|
876
876
|
lt(pe, l);
|
|
877
877
|
}
|
|
@@ -894,13 +894,13 @@ function Ya() {
|
|
|
894
894
|
throw Pt("toString is not a function");
|
|
895
895
|
if (!t.isSupported)
|
|
896
896
|
return K;
|
|
897
|
-
if (An ||
|
|
897
|
+
if (An || Un(l), t.removed = [], typeof K == "string" && (Ft = !1), Ft) {
|
|
898
898
|
if (K.nodeName) {
|
|
899
899
|
const Ye = ge(K.nodeName);
|
|
900
900
|
if (!x[Ye] || kt[Ye])
|
|
901
901
|
throw Pt("root node is forbidden and cannot be sanitized in-place");
|
|
902
902
|
}
|
|
903
|
-
} else if (K instanceof
|
|
903
|
+
} else if (K instanceof s)
|
|
904
904
|
S = wi("<!---->"), P = S.ownerDocument.importNode(K, !0), P.nodeType === Vt.element && P.nodeName === "BODY" || P.nodeName === "HTML" ? S = P : S.appendChild(P);
|
|
905
905
|
else {
|
|
906
906
|
if (!yt && !gt && !st && // eslint-disable-next-line unicorn/prefer-includes
|
|
@@ -930,11 +930,11 @@ function Ya() {
|
|
|
930
930
|
}), M && en ? M.createHTML(Ae) : Ae;
|
|
931
931
|
}, t.setConfig = function() {
|
|
932
932
|
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
933
|
-
|
|
933
|
+
Un(K), An = !0;
|
|
934
934
|
}, t.clearConfig = function() {
|
|
935
935
|
_t = null, An = !1;
|
|
936
936
|
}, t.isValidAttribute = function(K, l, S) {
|
|
937
|
-
_t ||
|
|
937
|
+
_t || Un({});
|
|
938
938
|
const P = ge(K), te = ge(l);
|
|
939
939
|
return Ci(P, te, S);
|
|
940
940
|
}, t.addHook = function(K, l) {
|
|
@@ -952,10 +952,10 @@ function Ya() {
|
|
|
952
952
|
}, t;
|
|
953
953
|
}
|
|
954
954
|
var Fl = Ya();
|
|
955
|
-
function
|
|
955
|
+
function Ul() {
|
|
956
956
|
this.__data__ = new Je(), this.size = 0;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Nl(e) {
|
|
959
959
|
var t = this.__data__, n = t.delete(e);
|
|
960
960
|
return this.size = t.size, n;
|
|
961
961
|
}
|
|
@@ -980,8 +980,8 @@ function Rt(e) {
|
|
|
980
980
|
var t = this.__data__ = new Je(e);
|
|
981
981
|
this.size = t.size;
|
|
982
982
|
}
|
|
983
|
-
Rt.prototype.clear =
|
|
984
|
-
Rt.prototype.delete =
|
|
983
|
+
Rt.prototype.clear = Ul;
|
|
984
|
+
Rt.prototype.delete = Nl;
|
|
985
985
|
Rt.prototype.get = Ll;
|
|
986
986
|
Rt.prototype.has = Dl;
|
|
987
987
|
Rt.prototype.set = $l;
|
|
@@ -1008,9 +1008,9 @@ function Za(e, t, n) {
|
|
|
1008
1008
|
function Sn(e, t, n, i) {
|
|
1009
1009
|
var a = !n;
|
|
1010
1010
|
n || (n = {});
|
|
1011
|
-
for (var o = -1,
|
|
1012
|
-
var
|
|
1013
|
-
d === void 0 && (d = e[
|
|
1011
|
+
for (var o = -1, r = t.length; ++o < r; ) {
|
|
1012
|
+
var s = t[o], d = void 0;
|
|
1013
|
+
d === void 0 && (d = e[s]), a ? Wa(n, s, d) : Za(n, s, d);
|
|
1014
1014
|
}
|
|
1015
1015
|
return n;
|
|
1016
1016
|
}
|
|
@@ -1054,8 +1054,8 @@ function Wl(e, t) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
function Zl(e, t) {
|
|
1056
1056
|
for (var n = -1, i = e == null ? 0 : e.length, a = 0, o = []; ++n < i; ) {
|
|
1057
|
-
var
|
|
1058
|
-
t(
|
|
1057
|
+
var r = e[n];
|
|
1058
|
+
t(r, n, e) && (o[a++] = r);
|
|
1059
1059
|
}
|
|
1060
1060
|
return o;
|
|
1061
1061
|
}
|
|
@@ -1138,7 +1138,7 @@ function yd(e, t) {
|
|
|
1138
1138
|
var n = t ? di(e.buffer) : e.buffer;
|
|
1139
1139
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1140
1140
|
}
|
|
1141
|
-
var vd = "[object Boolean]", bd = "[object Date]", _d = "[object Map]", Td = "[object Number]", Sd = "[object RegExp]", Ed = "[object Set]", wd = "[object String]", Md = "[object Symbol]", Ad = "[object ArrayBuffer]", Id = "[object DataView]", Cd = "[object Float32Array]", Od = "[object Float64Array]", Rd = "[object Int8Array]", kd = "[object Int16Array]", Fd = "[object Int32Array]",
|
|
1141
|
+
var vd = "[object Boolean]", bd = "[object Date]", _d = "[object Map]", Td = "[object Number]", Sd = "[object RegExp]", Ed = "[object Set]", wd = "[object String]", Md = "[object Symbol]", Ad = "[object ArrayBuffer]", Id = "[object DataView]", Cd = "[object Float32Array]", Od = "[object Float64Array]", Rd = "[object Int8Array]", kd = "[object Int16Array]", Fd = "[object Int32Array]", Ud = "[object Uint8Array]", Nd = "[object Uint8ClampedArray]", Ld = "[object Uint16Array]", Dd = "[object Uint32Array]";
|
|
1142
1142
|
function Pd(e, t, n) {
|
|
1143
1143
|
var i = e.constructor;
|
|
1144
1144
|
switch (t) {
|
|
@@ -1154,8 +1154,8 @@ function Pd(e, t, n) {
|
|
|
1154
1154
|
case Rd:
|
|
1155
1155
|
case kd:
|
|
1156
1156
|
case Fd:
|
|
1157
|
-
case Nd:
|
|
1158
1157
|
case Ud:
|
|
1158
|
+
case Nd:
|
|
1159
1159
|
case Ld:
|
|
1160
1160
|
case Dd:
|
|
1161
1161
|
return yd(e, n);
|
|
@@ -1200,41 +1200,41 @@ var ca = Mt && Mt.isSet, zd = ca ? ai(ca) : Bd, Hd = 1, Gd = 2, Yd = 4, io = "[o
|
|
|
1200
1200
|
J[io] = J[Wd] = J[su] = J[lu] = J[Zd] = J[Xd] = J[du] = J[uu] = J[cu] = J[mu] = J[fu] = J[eu] = J[tu] = J[oo] = J[nu] = J[iu] = J[au] = J[ou] = J[hu] = J[pu] = J[gu] = J[yu] = !0;
|
|
1201
1201
|
J[Jd] = J[ao] = J[ru] = !1;
|
|
1202
1202
|
function qt(e, t, n, i, a, o) {
|
|
1203
|
-
var
|
|
1204
|
-
if (
|
|
1205
|
-
return
|
|
1203
|
+
var r, s = t & Hd, d = t & Gd, u = t & Yd;
|
|
1204
|
+
if (r !== void 0)
|
|
1205
|
+
return r;
|
|
1206
1206
|
if (!Re(e))
|
|
1207
1207
|
return e;
|
|
1208
1208
|
var y = rt(e);
|
|
1209
1209
|
if (y) {
|
|
1210
|
-
if (
|
|
1211
|
-
return Wl(e,
|
|
1210
|
+
if (r = md(e), !s)
|
|
1211
|
+
return Wl(e, r);
|
|
1212
1212
|
} else {
|
|
1213
|
-
var
|
|
1213
|
+
var f = We(e), p = f == ao || f == Qd;
|
|
1214
1214
|
if (Pa(e))
|
|
1215
|
-
return Yl(e,
|
|
1216
|
-
if (
|
|
1217
|
-
if (
|
|
1218
|
-
return d ? td(e, Hl(
|
|
1215
|
+
return Yl(e, s);
|
|
1216
|
+
if (f == oo || f == io || p && !a) {
|
|
1217
|
+
if (r = d || p ? {} : Vd(e), !s)
|
|
1218
|
+
return d ? td(e, Hl(r, e)) : Ql(e, Kl(r, e));
|
|
1219
1219
|
} else {
|
|
1220
|
-
if (!J[
|
|
1220
|
+
if (!J[f])
|
|
1221
1221
|
return a ? e : {};
|
|
1222
|
-
|
|
1222
|
+
r = Pd(e, f, s);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
o || (o = new Rt());
|
|
1226
1226
|
var T = o.get(e);
|
|
1227
1227
|
if (T)
|
|
1228
1228
|
return T;
|
|
1229
|
-
o.set(e,
|
|
1230
|
-
|
|
1231
|
-
}) : xd(e) && e.forEach(function(
|
|
1232
|
-
|
|
1229
|
+
o.set(e, r), zd(e) ? e.forEach(function(N) {
|
|
1230
|
+
r.add(qt(N, t, n, N, e, o));
|
|
1231
|
+
}) : xd(e) && e.forEach(function(N, U) {
|
|
1232
|
+
r.set(U, qt(N, t, n, U, e, o));
|
|
1233
1233
|
});
|
|
1234
1234
|
var k = u ? d ? id : nd : d ? En : yn, v = y ? void 0 : k(e);
|
|
1235
|
-
return Fa(v || e, function(
|
|
1236
|
-
v && (
|
|
1237
|
-
}),
|
|
1235
|
+
return Fa(v || e, function(N, U) {
|
|
1236
|
+
v && (U = N, N = e[U]), Za(r, U, qt(N, t, n, U, e, o));
|
|
1237
|
+
}), r;
|
|
1238
1238
|
}
|
|
1239
1239
|
var vu = 1, bu = 4;
|
|
1240
1240
|
function Ze(e) {
|
|
@@ -1310,57 +1310,57 @@ function Jn(e) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
var Ou = "Expected a function", Ru = Math.max, ku = Math.min;
|
|
1312
1312
|
function At(e, t, n) {
|
|
1313
|
-
var i, a, o,
|
|
1313
|
+
var i, a, o, r, s, d, u = 0, y = !1, f = !1, p = !0;
|
|
1314
1314
|
if (typeof e != "function")
|
|
1315
1315
|
throw new TypeError(Ou);
|
|
1316
|
-
t = Jn(t) || 0, Re(n) && (y = !!n.leading,
|
|
1316
|
+
t = Jn(t) || 0, Re(n) && (y = !!n.leading, f = "maxWait" in n, o = f ? Ru(Jn(n.maxWait) || 0, t) : o, p = "trailing" in n ? !!n.trailing : p);
|
|
1317
1317
|
function T(E) {
|
|
1318
1318
|
var _ = i, I = a;
|
|
1319
|
-
return i = a = void 0, u = E,
|
|
1319
|
+
return i = a = void 0, u = E, r = e.apply(I, _), r;
|
|
1320
1320
|
}
|
|
1321
1321
|
function k(E) {
|
|
1322
|
-
return u = E,
|
|
1322
|
+
return u = E, s = setTimeout(U, t), y ? T(E) : r;
|
|
1323
1323
|
}
|
|
1324
1324
|
function v(E) {
|
|
1325
1325
|
var _ = E - d, I = E - u, F = t - _;
|
|
1326
|
-
return
|
|
1326
|
+
return f ? ku(F, o - I) : F;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function N(E) {
|
|
1329
1329
|
var _ = E - d, I = E - u;
|
|
1330
|
-
return d === void 0 || _ >= t || _ < 0 ||
|
|
1330
|
+
return d === void 0 || _ >= t || _ < 0 || f && I >= o;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function U() {
|
|
1333
1333
|
var E = Bn();
|
|
1334
|
-
if (
|
|
1334
|
+
if (N(E))
|
|
1335
1335
|
return H(E);
|
|
1336
|
-
|
|
1336
|
+
s = setTimeout(U, v(E));
|
|
1337
1337
|
}
|
|
1338
1338
|
function H(E) {
|
|
1339
|
-
return
|
|
1339
|
+
return s = void 0, p && i ? T(E) : (i = a = void 0, r);
|
|
1340
1340
|
}
|
|
1341
1341
|
function D() {
|
|
1342
|
-
|
|
1342
|
+
s !== void 0 && clearTimeout(s), u = 0, i = d = a = s = void 0;
|
|
1343
1343
|
}
|
|
1344
1344
|
function M() {
|
|
1345
|
-
return
|
|
1345
|
+
return s === void 0 ? r : H(Bn());
|
|
1346
1346
|
}
|
|
1347
1347
|
function O() {
|
|
1348
|
-
var E = Bn(), _ =
|
|
1348
|
+
var E = Bn(), _ = N(E);
|
|
1349
1349
|
if (i = arguments, a = this, d = E, _) {
|
|
1350
|
-
if (
|
|
1350
|
+
if (s === void 0)
|
|
1351
1351
|
return k(d);
|
|
1352
|
-
if (
|
|
1353
|
-
return clearTimeout(
|
|
1352
|
+
if (f)
|
|
1353
|
+
return clearTimeout(s), s = setTimeout(U, t), T(d);
|
|
1354
1354
|
}
|
|
1355
|
-
return
|
|
1355
|
+
return s === void 0 && (s = setTimeout(U, t)), r;
|
|
1356
1356
|
}
|
|
1357
1357
|
return O.cancel = D, O.flush = M, O;
|
|
1358
1358
|
}
|
|
1359
1359
|
var Fu = "__lodash_hash_undefined__";
|
|
1360
|
-
function
|
|
1360
|
+
function Uu(e) {
|
|
1361
1361
|
return this.__data__.set(e, Fu), this;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Nu(e) {
|
|
1364
1364
|
return this.__data__.has(e);
|
|
1365
1365
|
}
|
|
1366
1366
|
function cn(e) {
|
|
@@ -1368,8 +1368,8 @@ function cn(e) {
|
|
|
1368
1368
|
for (this.__data__ = new Qe(); ++t < n; )
|
|
1369
1369
|
this.add(e[t]);
|
|
1370
1370
|
}
|
|
1371
|
-
cn.prototype.add = cn.prototype.push =
|
|
1372
|
-
cn.prototype.has =
|
|
1371
|
+
cn.prototype.add = cn.prototype.push = Uu;
|
|
1372
|
+
cn.prototype.has = Nu;
|
|
1373
1373
|
function Lu(e, t, n, i) {
|
|
1374
1374
|
for (var a = e.length, o = n + -1; ++o < a; )
|
|
1375
1375
|
if (t(e[o], o, e))
|
|
@@ -1407,25 +1407,25 @@ var xu = 1 / 0, qu = Et && 1 / so(new Et([, -0]))[1] == xu ? function(e) {
|
|
|
1407
1407
|
return new Et(e);
|
|
1408
1408
|
} : Ku, Bu = 200;
|
|
1409
1409
|
function zu(e, t, n) {
|
|
1410
|
-
var i = -1, a = Vu, o = e.length,
|
|
1410
|
+
var i = -1, a = Vu, o = e.length, r = !0, s = [], d = s;
|
|
1411
1411
|
if (o >= Bu) {
|
|
1412
1412
|
var u = qu(e);
|
|
1413
1413
|
if (u)
|
|
1414
1414
|
return so(u);
|
|
1415
|
-
|
|
1415
|
+
r = !1, a = ju, d = new cn();
|
|
1416
1416
|
} else
|
|
1417
|
-
d =
|
|
1417
|
+
d = s;
|
|
1418
1418
|
e:
|
|
1419
1419
|
for (; ++i < o; ) {
|
|
1420
|
-
var y = e[i],
|
|
1421
|
-
if (y = y !== 0 ? y : 0,
|
|
1420
|
+
var y = e[i], f = y;
|
|
1421
|
+
if (y = y !== 0 ? y : 0, r && f === f) {
|
|
1422
1422
|
for (var p = d.length; p--; )
|
|
1423
|
-
if (d[p] ===
|
|
1423
|
+
if (d[p] === f)
|
|
1424
1424
|
continue e;
|
|
1425
|
-
|
|
1426
|
-
} else a(d,
|
|
1425
|
+
s.push(y);
|
|
1426
|
+
} else a(d, f, n) || (d !== s && d.push(f), s.push(y));
|
|
1427
1427
|
}
|
|
1428
|
-
return
|
|
1428
|
+
return s;
|
|
1429
1429
|
}
|
|
1430
1430
|
function lo(e) {
|
|
1431
1431
|
return e && e.length ? zu(e) : [];
|
|
@@ -1454,8 +1454,8 @@ function ct(e) {
|
|
|
1454
1454
|
t[n - 1] = arguments[n];
|
|
1455
1455
|
for (var i = 0, a = t; i < a.length; i++) {
|
|
1456
1456
|
var o = a[i];
|
|
1457
|
-
for (var
|
|
1458
|
-
e[
|
|
1457
|
+
for (var r in o)
|
|
1458
|
+
e[r] = o[r];
|
|
1459
1459
|
}
|
|
1460
1460
|
return e;
|
|
1461
1461
|
}
|
|
@@ -1664,8 +1664,8 @@ var ho = [
|
|
|
1664
1664
|
throw new Error("Invalid Date pass to format");
|
|
1665
1665
|
t = fn[t] || t;
|
|
1666
1666
|
var i = [];
|
|
1667
|
-
t = t.replace(mo, function(o,
|
|
1668
|
-
return i.push(
|
|
1667
|
+
t = t.replace(mo, function(o, r) {
|
|
1668
|
+
return i.push(r), "@@@";
|
|
1669
1669
|
});
|
|
1670
1670
|
var a = ct(ct({}, mn), n);
|
|
1671
1671
|
return t = t.replace(co, function(o) {
|
|
@@ -1689,10 +1689,10 @@ function nc(e, t, n) {
|
|
|
1689
1689
|
millisecond: 0,
|
|
1690
1690
|
isPm: null,
|
|
1691
1691
|
timezoneOffset: null
|
|
1692
|
-
}, o = [],
|
|
1693
|
-
return
|
|
1692
|
+
}, o = [], r = [], s = t.replace(mo, function(M, O) {
|
|
1693
|
+
return r.push(pa(O)), "@@@";
|
|
1694
1694
|
}), d = {}, u = {};
|
|
1695
|
-
|
|
1695
|
+
s = pa(s).replace(co, function(M) {
|
|
1696
1696
|
var O = Qu[M], E = O[0], _ = O[1], I = O[3];
|
|
1697
1697
|
if (d[E])
|
|
1698
1698
|
throw new Error("Invalid format. " + E + " specified twice in format");
|
|
@@ -1700,22 +1700,22 @@ function nc(e, t, n) {
|
|
|
1700
1700
|
}), Object.keys(u).forEach(function(M) {
|
|
1701
1701
|
if (!d[M])
|
|
1702
1702
|
throw new Error("Invalid format. " + M + " is required in specified format");
|
|
1703
|
-
}),
|
|
1704
|
-
return
|
|
1703
|
+
}), s = s.replace(/@@@/g, function() {
|
|
1704
|
+
return r.shift();
|
|
1705
1705
|
});
|
|
1706
|
-
var y = e.match(new RegExp(
|
|
1706
|
+
var y = e.match(new RegExp(s, "i"));
|
|
1707
1707
|
if (!y)
|
|
1708
1708
|
return null;
|
|
1709
|
-
for (var
|
|
1710
|
-
var T = o[p - 1], k = T[0], v = T[2],
|
|
1711
|
-
if (
|
|
1709
|
+
for (var f = ct(ct({}, mn), n), p = 1; p < y.length; p++) {
|
|
1710
|
+
var T = o[p - 1], k = T[0], v = T[2], N = v ? v(y[p], f) : +y[p];
|
|
1711
|
+
if (N == null)
|
|
1712
1712
|
return null;
|
|
1713
|
-
a[k] =
|
|
1713
|
+
a[k] = N;
|
|
1714
1714
|
}
|
|
1715
1715
|
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
1716
|
-
var
|
|
1716
|
+
var U;
|
|
1717
1717
|
if (a.timezoneOffset == null) {
|
|
1718
|
-
|
|
1718
|
+
U = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
1719
1719
|
for (var H = [
|
|
1720
1720
|
["month", "getMonth"],
|
|
1721
1721
|
["day", "getDate"],
|
|
@@ -1723,11 +1723,11 @@ function nc(e, t, n) {
|
|
|
1723
1723
|
["minute", "getMinutes"],
|
|
1724
1724
|
["second", "getSeconds"]
|
|
1725
1725
|
], p = 0, D = H.length; p < D; p++)
|
|
1726
|
-
if (d[H[p][0]] && a[H[p][0]] !==
|
|
1726
|
+
if (d[H[p][0]] && a[H[p][0]] !== U[H[p][1]]())
|
|
1727
1727
|
return null;
|
|
1728
|
-
} else if (
|
|
1728
|
+
} else if (U = 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)
|
|
1729
1729
|
return null;
|
|
1730
|
-
return
|
|
1730
|
+
return U;
|
|
1731
1731
|
}
|
|
1732
1732
|
var St = {
|
|
1733
1733
|
format: tc,
|
|
@@ -1752,12 +1752,12 @@ function ic(e, t, n) {
|
|
|
1752
1752
|
var Ta = Math.max;
|
|
1753
1753
|
function ac(e, t, n) {
|
|
1754
1754
|
return t = Ta(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
1755
|
-
for (var i = arguments, a = -1, o = Ta(i.length - t, 0),
|
|
1756
|
-
|
|
1755
|
+
for (var i = arguments, a = -1, o = Ta(i.length - t, 0), r = Array(o); ++a < o; )
|
|
1756
|
+
r[a] = i[t + a];
|
|
1757
1757
|
a = -1;
|
|
1758
|
-
for (var
|
|
1759
|
-
|
|
1760
|
-
return
|
|
1758
|
+
for (var s = Array(t + 1); ++a < t; )
|
|
1759
|
+
s[a] = i[a];
|
|
1760
|
+
return s[t] = n(r), ic(e, this, s);
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
1763
1763
|
function oc(e) {
|
|
@@ -1799,8 +1799,8 @@ var yo = Object.prototype, hc = yo.hasOwnProperty, pc = mc(function(e, t) {
|
|
|
1799
1799
|
e = Object(e);
|
|
1800
1800
|
var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
|
|
1801
1801
|
for (a && fc(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1802
|
-
for (var o = t[n],
|
|
1803
|
-
var u = s
|
|
1802
|
+
for (var o = t[n], r = En(o), s = -1, d = r.length; ++s < d; ) {
|
|
1803
|
+
var u = r[s], y = e[u];
|
|
1804
1804
|
(y === void 0 || bn(y, yo[u]) && !hc.call(e, u)) && (e[u] = o[u]);
|
|
1805
1805
|
}
|
|
1806
1806
|
return e;
|
|
@@ -2064,22 +2064,22 @@ const Sc = {
|
|
|
2064
2064
|
for (let n = 0; n < t.length; n++)
|
|
2065
2065
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
2066
2066
|
return e;
|
|
2067
|
-
},
|
|
2068
|
-
required: (e, t, n, i = be) =>
|
|
2067
|
+
}, Ue = (e, t, n = be) => de(e) || e === "" ? t ? [ae(n.fieldIsRequired)] : [] : null, mt = {
|
|
2068
|
+
required: (e, t, n, i = be) => Ue(e, t.required, i) || [],
|
|
2069
2069
|
number: (e, t, n, i = be) => {
|
|
2070
|
-
let a =
|
|
2070
|
+
let a = Ue(e, t.required, i);
|
|
2071
2071
|
return a != null || (a = [], vo(e) ? (!de(t.min) && e < t.min, (i = be) && a.push(ae(i.numberTooSmall, t.min)), !de(t.max) && e > t.max, (i = be) && a.push(ae(i.numberTooBig, t.max))) : a.push(ae(i.invalidNumber))), a;
|
|
2072
2072
|
},
|
|
2073
2073
|
integer: (e, t, n, i = be) => {
|
|
2074
|
-
let a =
|
|
2074
|
+
let a = Ue(e, t.required, i);
|
|
2075
2075
|
return a != null || (a = [], a.concat(mt.number(e, t, n, i)), _c(e) || a.push(ae(i.invalidInteger))), a;
|
|
2076
2076
|
},
|
|
2077
2077
|
double: (e, t, n, i = be) => {
|
|
2078
|
-
const a =
|
|
2078
|
+
const a = Ue(e, t.required, i);
|
|
2079
2079
|
return a ?? (!ci(e) || isNaN(e) ? [ae(i.invalidNumber)] : []);
|
|
2080
2080
|
},
|
|
2081
2081
|
string: (e, t, n, i = be) => {
|
|
2082
|
-
let a =
|
|
2082
|
+
let a = Ue(e, t.required, i);
|
|
2083
2083
|
return a != null || (a = [], ut(e) ? (!de(t.min) && e.length < t.min && a.push(ae(i.textTooSmall, e.length, t.min)), !de(t.max) && e.length > t.max && a.push(ae(i.textTooBig, e.length, t.max))) : a.push(ae(i.thisNotText))), a;
|
|
2084
2084
|
},
|
|
2085
2085
|
array: (e, t, n, i = be) => {
|
|
@@ -2098,51 +2098,51 @@ const Sc = {
|
|
|
2098
2098
|
return [];
|
|
2099
2099
|
},
|
|
2100
2100
|
date: (e, t, n, i = be) => {
|
|
2101
|
-
let a =
|
|
2101
|
+
let a = Ue(e, t.required, i);
|
|
2102
2102
|
if (a != null) return a;
|
|
2103
2103
|
a = [];
|
|
2104
2104
|
const o = new Date(e);
|
|
2105
2105
|
if (isNaN(o.getDate()))
|
|
2106
2106
|
return [ae(i.invalidDate)];
|
|
2107
2107
|
if (!de(t.min)) {
|
|
2108
|
-
const
|
|
2109
|
-
o.valueOf() <
|
|
2108
|
+
const r = new Date(t.min);
|
|
2109
|
+
o.valueOf() < r.valueOf() && a.push(ae(i.dateIsEarly, St.format(o), St.format(r)));
|
|
2110
2110
|
}
|
|
2111
2111
|
if (!de(t.max)) {
|
|
2112
|
-
const
|
|
2113
|
-
o.valueOf() >
|
|
2112
|
+
const r = new Date(t.max);
|
|
2113
|
+
o.valueOf() > r.valueOf() && a.push(ae(i.dateIsLate, St.format(o), St.format(r)));
|
|
2114
2114
|
}
|
|
2115
2115
|
return a;
|
|
2116
2116
|
},
|
|
2117
2117
|
regexp: (e, t, n, i = be) => {
|
|
2118
|
-
const a =
|
|
2118
|
+
const a = Ue(e, t.required, i);
|
|
2119
2119
|
return a ?? (!de(t.pattern) && !new RegExp(t.pattern).test(e) ? [ae(i.invalidFormat)] : []);
|
|
2120
2120
|
},
|
|
2121
2121
|
email: (e, t, n, i = be) => {
|
|
2122
|
-
const a =
|
|
2122
|
+
const a = Ue(e, t.required, i);
|
|
2123
2123
|
return a ?? (/^(([^<>()\[\]\\.,;:\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) ? [] : [ae(i.invalidEmail)]);
|
|
2124
2124
|
},
|
|
2125
2125
|
url: (e, t, n, i = be) => {
|
|
2126
|
-
const a =
|
|
2126
|
+
const a = Ue(e, t.required, i);
|
|
2127
2127
|
return a ?? (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e) ? [] : [ae(i.invalidURL)]);
|
|
2128
2128
|
},
|
|
2129
2129
|
creditCard: (e, t, n, i = be) => {
|
|
2130
|
-
const a =
|
|
2130
|
+
const a = Ue(e, t.required, i);
|
|
2131
2131
|
if (a != null) return a;
|
|
2132
|
-
const o = /^(?: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})$/,
|
|
2133
|
-
if (!o.test(
|
|
2132
|
+
const o = /^(?: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})$/, r = e.replace(/[^0-9]+/g, "");
|
|
2133
|
+
if (!o.test(r))
|
|
2134
2134
|
return [ae(i.invalidCard)];
|
|
2135
|
-
let
|
|
2136
|
-
for (let
|
|
2137
|
-
d =
|
|
2138
|
-
return
|
|
2135
|
+
let s = 0, d, u, y;
|
|
2136
|
+
for (let f = r.length - 1; f >= 0; f--)
|
|
2137
|
+
d = r.substring(f, f + 1), u = parseInt(d, 10), y ? (u *= 2, u >= 10 ? s += u % 10 + 1 : s += u) : s += u, y = !y;
|
|
2138
|
+
return s % 10 === 0 && r ? [] : [ae(i.invalidCardNumber)];
|
|
2139
2139
|
},
|
|
2140
2140
|
alpha: (e, t, n, i = be) => {
|
|
2141
|
-
const a =
|
|
2141
|
+
const a = Ue(e, t.required, i);
|
|
2142
2142
|
return a ?? (/^[a-zA-Z]*$/.test(e) ? [] : [ae(i.invalidTextContainNumber)]);
|
|
2143
2143
|
},
|
|
2144
2144
|
alphaNumeric: (e, t, n, i = be) => {
|
|
2145
|
-
const a =
|
|
2145
|
+
const a = Ue(e, t.required, i);
|
|
2146
2146
|
return a ?? (/^[a-zA-Z0-9]*$/.test(e) ? [] : [ae(i.invalidTextContainSpec)]);
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
@@ -2156,8 +2156,8 @@ function Ea(e) {
|
|
|
2156
2156
|
function zn(e, t, n) {
|
|
2157
2157
|
let i = Z(n.context, "schema.attributes", {});
|
|
2158
2158
|
const a = t.value || "input";
|
|
2159
|
-
ut(a) && (i = Z(i, a) || i), Se(i, (o,
|
|
2160
|
-
e.setAttribute(
|
|
2159
|
+
ut(a) && (i = Z(i, a) || i), Se(i, (o, r) => {
|
|
2160
|
+
e.setAttribute(r, o);
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
2163
|
const $e = {
|
|
@@ -2204,22 +2204,22 @@ const $e = {
|
|
|
2204
2204
|
if (t)
|
|
2205
2205
|
n.push(o(this.value, this.schema, this.model));
|
|
2206
2206
|
else {
|
|
2207
|
-
const
|
|
2208
|
-
|
|
2209
|
-
|
|
2207
|
+
const r = o(this.value, this.schema, this.model);
|
|
2208
|
+
r && X(r.then) ? r.then((s) => {
|
|
2209
|
+
s && (this.errors = this.errors.concat(s));
|
|
2210
2210
|
const d = this.errors.length === 0;
|
|
2211
2211
|
this.$emit("validated", d, this.errors, this);
|
|
2212
|
-
}) :
|
|
2212
|
+
}) : r && (n = n.concat(r));
|
|
2213
2213
|
}
|
|
2214
2214
|
});
|
|
2215
2215
|
}
|
|
2216
2216
|
const i = (a) => {
|
|
2217
2217
|
let o = [];
|
|
2218
|
-
Se(lo(a), (
|
|
2219
|
-
Array.isArray(
|
|
2218
|
+
Se(lo(a), (s) => {
|
|
2219
|
+
Array.isArray(s) && s.length > 0 ? o = o.concat(s) : ut(s) && o.push(s);
|
|
2220
2220
|
}), X(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, o, this.schema);
|
|
2221
|
-
const
|
|
2222
|
-
return e || this.$emit("validated",
|
|
2221
|
+
const r = o.length === 0;
|
|
2222
|
+
return e || this.$emit("validated", r, o, this), this.errors = o, o;
|
|
2223
2223
|
};
|
|
2224
2224
|
return t ? Promise.all(n).then(i) : i(n);
|
|
2225
2225
|
},
|
|
@@ -2242,13 +2242,13 @@ const $e = {
|
|
|
2242
2242
|
let i = this.model;
|
|
2243
2243
|
const a = n.split(".");
|
|
2244
2244
|
let o = 0;
|
|
2245
|
-
const
|
|
2246
|
-
for (; o <
|
|
2247
|
-
const
|
|
2248
|
-
if (o <
|
|
2249
|
-
i[
|
|
2245
|
+
const r = a.length;
|
|
2246
|
+
for (; o < r; ) {
|
|
2247
|
+
const s = a[o];
|
|
2248
|
+
if (o < r - 1)
|
|
2249
|
+
i[s] !== void 0 || (i[s] = {}), i = i[s];
|
|
2250
2250
|
else {
|
|
2251
|
-
i[
|
|
2251
|
+
i[s] = t;
|
|
2252
2252
|
return;
|
|
2253
2253
|
}
|
|
2254
2254
|
++o;
|
|
@@ -2314,15 +2314,15 @@ const $e = {
|
|
|
2314
2314
|
__name: "FieldAdvanced",
|
|
2315
2315
|
setup(e) {
|
|
2316
2316
|
return (t, n) => (c(), b("div", Cc, [
|
|
2317
|
-
|
|
2317
|
+
h("button", {
|
|
2318
2318
|
class: "advanced-field-title",
|
|
2319
2319
|
type: "button",
|
|
2320
2320
|
onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
|
|
2321
2321
|
}, [
|
|
2322
|
-
|
|
2323
|
-
|
|
2322
|
+
h("i", Oc, V(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
2323
|
+
h("span", null, V(t.titleText), 1)
|
|
2324
2324
|
]),
|
|
2325
|
-
|
|
2325
|
+
h("div", {
|
|
2326
2326
|
class: ee(["advanced-field-dropdown", t.openClass])
|
|
2327
2327
|
}, [
|
|
2328
2328
|
C(ue, {
|
|
@@ -2334,7 +2334,7 @@ const $e = {
|
|
|
2334
2334
|
], 2)
|
|
2335
2335
|
]));
|
|
2336
2336
|
}
|
|
2337
|
-
}), Fc = /* @__PURE__ */ W(kc, [["__scopeId", "data-v-e8f66c8a"]]),
|
|
2337
|
+
}), Fc = /* @__PURE__ */ W(kc, [["__scopeId", "data-v-e8f66c8a"]]), Uc = { class: "array-card-container" }, Nc = /* @__PURE__ */ fe({
|
|
2338
2338
|
__name: "FieldArrayCardContainer",
|
|
2339
2339
|
props: {
|
|
2340
2340
|
model: {
|
|
@@ -2354,7 +2354,7 @@ const $e = {
|
|
|
2354
2354
|
setup(e) {
|
|
2355
2355
|
return Yt("vfg-array-item-index", e.index), (n, i) => {
|
|
2356
2356
|
const a = j("KCard"), o = j("KButton");
|
|
2357
|
-
return c(), b("div",
|
|
2357
|
+
return c(), b("div", Uc, [
|
|
2358
2358
|
C(a, { class: "card" }, {
|
|
2359
2359
|
default: A(() => [
|
|
2360
2360
|
Ce(n.$slots, "default", {}, void 0, !0)
|
|
@@ -2364,7 +2364,7 @@ const $e = {
|
|
|
2364
2364
|
C(o, {
|
|
2365
2365
|
appearance: "tertiary",
|
|
2366
2366
|
class: "array-card-remove-button",
|
|
2367
|
-
onClick: i[0] || (i[0] = (
|
|
2367
|
+
onClick: i[0] || (i[0] = (r) => n.$emit("remove-item"))
|
|
2368
2368
|
}, {
|
|
2369
2369
|
default: A(() => [
|
|
2370
2370
|
C(R(Ct))
|
|
@@ -2374,7 +2374,7 @@ const $e = {
|
|
|
2374
2374
|
]);
|
|
2375
2375
|
};
|
|
2376
2376
|
}
|
|
2377
|
-
}), bo = /* @__PURE__ */ W(
|
|
2377
|
+
}), bo = /* @__PURE__ */ W(Nc, [["__scopeId", "data-v-a8366ec5"]]), Lc = { class: "array-item-wrapper" }, Dc = { class: "array-item" }, Pc = { class: "array-item-after" }, $c = /* @__PURE__ */ fe({
|
|
2378
2378
|
__name: "FieldArrayItem",
|
|
2379
2379
|
props: {
|
|
2380
2380
|
model: {
|
|
@@ -2387,7 +2387,7 @@ const $e = {
|
|
|
2387
2387
|
return (t, n) => {
|
|
2388
2388
|
const i = j("KButton");
|
|
2389
2389
|
return c(), b("div", Lc, [
|
|
2390
|
-
|
|
2390
|
+
h("div", Dc, [
|
|
2391
2391
|
Ce(t.$slots, "default", {}, void 0, !0),
|
|
2392
2392
|
C(i, {
|
|
2393
2393
|
appearance: "tertiary",
|
|
@@ -2400,7 +2400,7 @@ const $e = {
|
|
|
2400
2400
|
_: 1
|
|
2401
2401
|
})
|
|
2402
2402
|
]),
|
|
2403
|
-
|
|
2403
|
+
h("div", Pc, [
|
|
2404
2404
|
Ce(t.$slots, "after", {}, void 0, !0)
|
|
2405
2405
|
])
|
|
2406
2406
|
]);
|
|
@@ -2424,7 +2424,7 @@ const $e = {
|
|
|
2424
2424
|
])]),
|
|
2425
2425
|
_: 1
|
|
2426
2426
|
}),
|
|
2427
|
-
n[2] || (n[2] =
|
|
2427
|
+
n[2] || (n[2] = h("hr", null, null, -1))
|
|
2428
2428
|
]);
|
|
2429
2429
|
};
|
|
2430
2430
|
}
|
|
@@ -2435,7 +2435,7 @@ function wa(e) {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testlabel"], Hc = { class: "item-label" }, Gc = { class: "autosuggest__results_message" }, Yc = /* @__PURE__ */ fe({
|
|
2437
2437
|
__name: "AutoSuggest",
|
|
2438
|
-
props: /* @__PURE__ */
|
|
2438
|
+
props: /* @__PURE__ */ Ui({
|
|
2439
2439
|
placeholder: { default: "" },
|
|
2440
2440
|
suggestions: {},
|
|
2441
2441
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2447,7 +2447,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2447
2447
|
id: { required: !0 },
|
|
2448
2448
|
idModifiers: {}
|
|
2449
2449
|
}),
|
|
2450
|
-
emits: /* @__PURE__ */
|
|
2450
|
+
emits: /* @__PURE__ */ Ui(["change", "query-change"], ["update:id"]),
|
|
2451
2451
|
setup(e) {
|
|
2452
2452
|
const { t } = ke("en-us", Fe), n = Ko(e, "id");
|
|
2453
2453
|
return (i, a) => {
|
|
@@ -2456,7 +2456,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2456
2456
|
id: e.domId,
|
|
2457
2457
|
ref: "suggestion",
|
|
2458
2458
|
modelValue: n.value,
|
|
2459
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2459
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
|
2460
2460
|
clearable: "",
|
|
2461
2461
|
disabled: e.disabled,
|
|
2462
2462
|
"enable-filtering": "",
|
|
@@ -2467,26 +2467,26 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2467
2467
|
loading: e.loading,
|
|
2468
2468
|
placeholder: e.placeholder,
|
|
2469
2469
|
width: "100%",
|
|
2470
|
-
onChange: a[1] || (a[1] = (
|
|
2471
|
-
onQueryChange: a[2] || (a[2] = (
|
|
2470
|
+
onChange: a[1] || (a[1] = (r) => i.$emit("change", r)),
|
|
2471
|
+
onQueryChange: a[2] || (a[2] = (r) => i.$emit("query-change", r))
|
|
2472
2472
|
}, ei({
|
|
2473
|
-
"item-template": A(({ item:
|
|
2474
|
-
Ce(i.$slots, "item", { item:
|
|
2475
|
-
|
|
2473
|
+
"item-template": A(({ item: r }) => [
|
|
2474
|
+
Ce(i.$slots, "item", { item: r }, () => [
|
|
2475
|
+
h("span", {
|
|
2476
2476
|
class: "item-label",
|
|
2477
|
-
"data-testid":
|
|
2478
|
-
"data-testlabel":
|
|
2479
|
-
}, V(
|
|
2477
|
+
"data-testid": r.id && `${r.id}-0`,
|
|
2478
|
+
"data-testlabel": r.label
|
|
2479
|
+
}, V(r.label), 9, zc)
|
|
2480
2480
|
], !0)
|
|
2481
2481
|
]),
|
|
2482
|
-
"selected-item-template": A(({ item:
|
|
2483
|
-
Ce(i.$slots, "selected-item", { item:
|
|
2484
|
-
|
|
2482
|
+
"selected-item-template": A(({ item: r }) => [
|
|
2483
|
+
Ce(i.$slots, "selected-item", { item: r }, () => [
|
|
2484
|
+
h("span", Hc, V(r.label), 1)
|
|
2485
2485
|
], !0)
|
|
2486
2486
|
]),
|
|
2487
2487
|
empty: A(() => [
|
|
2488
|
-
|
|
2489
|
-
|
|
2488
|
+
h("div", Gc, [
|
|
2489
|
+
h("span", null, V(e.emptyMessage || R(t)("fields.auto_suggest.no_results")), 1)
|
|
2490
2490
|
])
|
|
2491
2491
|
]),
|
|
2492
2492
|
_: 2
|
|
@@ -2521,7 +2521,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2521
2521
|
},
|
|
2522
2522
|
emits: ["change"],
|
|
2523
2523
|
setup(e) {
|
|
2524
|
-
const t = zt(
|
|
2524
|
+
const t = zt(Ne, void 0), n = async (m, g) => {
|
|
2525
2525
|
if (!t)
|
|
2526
2526
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2527
2527
|
const { data: w } = await t.getAllV2(e.entity, { name: m, size: am }, g);
|
|
@@ -2539,16 +2539,16 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2539
2539
|
...m,
|
|
2540
2540
|
label: m[e.labelField],
|
|
2541
2541
|
value: m.id
|
|
2542
|
-
})),
|
|
2542
|
+
})), r = ne(""), s = ne(!1), d = ne(!1), u = ne(""), y = ne([]), f = ne([]), p = ne([]), { t: T } = ke("en-us", Fe), k = ne(null);
|
|
2543
2543
|
let v = null;
|
|
2544
|
-
const
|
|
2544
|
+
const N = async (m, g) => {
|
|
2545
2545
|
if (!e.fieldDisabled) {
|
|
2546
2546
|
clearTimeout(v), v = setTimeout(() => {
|
|
2547
|
-
|
|
2547
|
+
s.value = !0;
|
|
2548
2548
|
}, 1500);
|
|
2549
2549
|
try {
|
|
2550
2550
|
const w = await m();
|
|
2551
|
-
|
|
2551
|
+
f.value = w, y.value = f.value.map(o);
|
|
2552
2552
|
} catch (w) {
|
|
2553
2553
|
if (g != null && g.aborted)
|
|
2554
2554
|
return;
|
|
@@ -2556,12 +2556,12 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2556
2556
|
console.warn("unable to search with UUID", u.value, "for entity type", e.entity);
|
|
2557
2557
|
return;
|
|
2558
2558
|
}
|
|
2559
|
-
|
|
2559
|
+
r.value = w.message;
|
|
2560
2560
|
} finally {
|
|
2561
|
-
clearTimeout(v),
|
|
2561
|
+
clearTimeout(v), s.value = !1;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
},
|
|
2564
|
+
}, U = At((m) => {
|
|
2565
2565
|
if (m = m || "", u.value = m, !m.trim() && !d.value) {
|
|
2566
2566
|
y.value = _(p.value);
|
|
2567
2567
|
return;
|
|
@@ -2575,12 +2575,12 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2575
2575
|
O(m, g);
|
|
2576
2576
|
}, nm, { leading: !0 }), H = async (m, g) => await n(m, g), D = async () => {
|
|
2577
2577
|
const { data: { data: m, next: g, offset: w } } = await i(im);
|
|
2578
|
-
return (!g || !w) && (d.value = !0),
|
|
2578
|
+
return (!g || !w) && (d.value = !0), f.value = m, p.value = m.map((L) => ({
|
|
2579
2579
|
...o(L),
|
|
2580
2580
|
group: T("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2581
2581
|
})), m;
|
|
2582
2582
|
}, M = async (m) => [await a(m)], O = (m, g) => {
|
|
2583
|
-
Qn(m) && e.allowUuidSearch ?
|
|
2583
|
+
Qn(m) && e.allowUuidSearch ? N(async () => await M(m)) : N(async () => await H(m, g.signal), g.signal);
|
|
2584
2584
|
}, E = (m) => {
|
|
2585
2585
|
let g = [];
|
|
2586
2586
|
g = _(p.value), m != null && m.trim() ? y.value = g.filter((w) => e.fields.some((L) => (w[L] || "").includes(m))) : y.value = g;
|
|
@@ -2590,7 +2590,7 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2590
2590
|
Qn(m) && e.allowUuidSearch ? I(m) : E(m);
|
|
2591
2591
|
};
|
|
2592
2592
|
return ti(async () => {
|
|
2593
|
-
await
|
|
2593
|
+
await N(D);
|
|
2594
2594
|
const m = Wt(() => e.selectedItem, (g) => {
|
|
2595
2595
|
g && (y.value = _(p.value)), m();
|
|
2596
2596
|
});
|
|
@@ -2599,14 +2599,14 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2599
2599
|
id: e.id,
|
|
2600
2600
|
disabled: e.fieldDisabled,
|
|
2601
2601
|
"dom-id": e.domId,
|
|
2602
|
-
"empty-message":
|
|
2602
|
+
"empty-message": r.value,
|
|
2603
2603
|
error: e.error,
|
|
2604
|
-
loading: e.selectedItemLoading ||
|
|
2604
|
+
loading: e.selectedItemLoading || s.value,
|
|
2605
2605
|
placeholder: e.placeholder,
|
|
2606
2606
|
readonly: e.disabled,
|
|
2607
2607
|
suggestions: y.value,
|
|
2608
2608
|
onChange: g[0] || (g[0] = (w) => m.$emit("change", w)),
|
|
2609
|
-
onQueryChange: R(
|
|
2609
|
+
onQueryChange: R(U)
|
|
2610
2610
|
}, {
|
|
2611
2611
|
before: A(() => [
|
|
2612
2612
|
Ce(m.$slots, "before", {}, () => [
|
|
@@ -2618,16 +2618,16 @@ const xc = "#6c7489", qc = "12px", Bc = "20px", zc = ["data-testid", "data-testl
|
|
|
2618
2618
|
]),
|
|
2619
2619
|
"selected-item": A(({ item: w }) => [
|
|
2620
2620
|
Ce(m.$slots, "selected-item", { item: w }, () => [
|
|
2621
|
-
|
|
2622
|
-
|
|
2621
|
+
h("span", Xc, [
|
|
2622
|
+
h("span", Jc, V(w.label ?? w.id), 1)
|
|
2623
2623
|
])
|
|
2624
2624
|
], !0)
|
|
2625
2625
|
]),
|
|
2626
2626
|
item: A(({ item: w }) => [
|
|
2627
2627
|
Ce(m.$slots, "item", { item: w }, () => [
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2628
|
+
h("div", Qc, [
|
|
2629
|
+
h("span", em, V(w.label ?? R(ul)), 1),
|
|
2630
|
+
h("span", tm, V(w.id), 1)
|
|
2631
2631
|
])
|
|
2632
2632
|
], !0)
|
|
2633
2633
|
]),
|
|
@@ -2643,7 +2643,7 @@ const sm = {
|
|
|
2643
2643
|
FieldScopedEntitySelect: rm
|
|
2644
2644
|
},
|
|
2645
2645
|
mixins: [$e],
|
|
2646
|
-
inject: [
|
|
2646
|
+
inject: [Ne],
|
|
2647
2647
|
emits: ["model-updated"],
|
|
2648
2648
|
setup() {
|
|
2649
2649
|
const { t: e } = ke("en-us", Fe);
|
|
@@ -2693,7 +2693,7 @@ const sm = {
|
|
|
2693
2693
|
try {
|
|
2694
2694
|
switch (this.fieldState) {
|
|
2695
2695
|
case qe.UPDATE_ENTITY:
|
|
2696
|
-
if (!this[
|
|
2696
|
+
if (!this[Ne]) {
|
|
2697
2697
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
2698
2698
|
break;
|
|
2699
2699
|
}
|
|
@@ -2714,9 +2714,9 @@ const sm = {
|
|
|
2714
2714
|
},
|
|
2715
2715
|
methods: {
|
|
2716
2716
|
async getOne(e) {
|
|
2717
|
-
if (!this[
|
|
2717
|
+
if (!this[Ne])
|
|
2718
2718
|
return console.warn("[@kong-ui-public/forms] No API service provided"), {};
|
|
2719
|
-
const t = await this[
|
|
2719
|
+
const t = await this[Ne].getOne(this.entity, e, {
|
|
2720
2720
|
validateStatus: (n) => n >= 200 && n < 300 || n === 404
|
|
2721
2721
|
});
|
|
2722
2722
|
if (t.status === 404)
|
|
@@ -2749,14 +2749,14 @@ const sm = {
|
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
2751
|
function lm(e, t, n, i, a, o) {
|
|
2752
|
-
const
|
|
2752
|
+
const r = j("FieldScopedEntitySelect");
|
|
2753
2753
|
return c(), $(me(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
2754
2754
|
class: "field-wrap autosuggest",
|
|
2755
2755
|
"max-width": "300",
|
|
2756
2756
|
text: e.schema.disabledTooltip
|
|
2757
2757
|
}, {
|
|
2758
2758
|
default: A(() => [
|
|
2759
|
-
C(
|
|
2759
|
+
C(r, {
|
|
2760
2760
|
id: a.idValue,
|
|
2761
2761
|
"allow-uuid-search": o.allowUuidSearch,
|
|
2762
2762
|
disabled: a.loading,
|
|
@@ -2778,7 +2778,7 @@ function lm(e, t, n, i, a, o) {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80"]]), Hn = 50, dm = {
|
|
2780
2780
|
mixins: [$e],
|
|
2781
|
-
inject: [
|
|
2781
|
+
inject: [Ne],
|
|
2782
2782
|
emits: ["model-updated"],
|
|
2783
2783
|
setup() {
|
|
2784
2784
|
const { t: e } = ke("en-us", Fe);
|
|
@@ -2818,11 +2818,11 @@ const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80
|
|
|
2818
2818
|
let e, t;
|
|
2819
2819
|
switch (this.fieldState) {
|
|
2820
2820
|
case qe.UPDATE_ENTITY:
|
|
2821
|
-
if (!this[
|
|
2821
|
+
if (!this[Ne]) {
|
|
2822
2822
|
console.warn("[@kong-ui-public/forms] No API service provided");
|
|
2823
2823
|
break;
|
|
2824
2824
|
}
|
|
2825
|
-
t = (await this[
|
|
2825
|
+
t = (await this[Ne].getOne(this.entity, this.model[this.schema.model])).data, e = this.getItem(this.schema.entityDataKey ? t[this.schema.entityDataKey] : t), this.idValue = e.id;
|
|
2826
2826
|
break;
|
|
2827
2827
|
case qe.CREATE_FROM_ENTITY:
|
|
2828
2828
|
this.idValue = this.associatedEntity.id;
|
|
@@ -2852,8 +2852,8 @@ const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80
|
|
|
2852
2852
|
const o = await this.fetchExact(e);
|
|
2853
2853
|
t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id });
|
|
2854
2854
|
})()) : n.push(...i.filter((o) => o !== "id").map(async (o) => {
|
|
2855
|
-
(await this.fetchSuggestions(e, o)).forEach((
|
|
2856
|
-
a.has(
|
|
2855
|
+
(await this.fetchSuggestions(e, o)).forEach((s) => {
|
|
2856
|
+
a.has(s.id) || (a.add(s.id), t.push({ ...s, label: this.getSuggestionLabel(s), value: s.id }));
|
|
2857
2857
|
});
|
|
2858
2858
|
})), await Promise.all(n), this.items = t, this.items.length === 0 && (this.message = "No results"), this.loading = !1;
|
|
2859
2859
|
},
|
|
@@ -2863,10 +2863,10 @@ const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80
|
|
|
2863
2863
|
async fetchUntilLimit(e) {
|
|
2864
2864
|
const t = [];
|
|
2865
2865
|
let n = null;
|
|
2866
|
-
if (!this[
|
|
2866
|
+
if (!this[Ne])
|
|
2867
2867
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2868
2868
|
for (; t.length < Hn; ) {
|
|
2869
|
-
const i = await this[
|
|
2869
|
+
const i = await this[Ne].getAll(this.entity, {
|
|
2870
2870
|
size: Hn,
|
|
2871
2871
|
offset: n,
|
|
2872
2872
|
...e
|
|
@@ -2879,7 +2879,7 @@ const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80
|
|
|
2879
2879
|
return this.fetchUntilLimit({ [t]: e });
|
|
2880
2880
|
},
|
|
2881
2881
|
async fetchExact(e) {
|
|
2882
|
-
return this[
|
|
2882
|
+
return this[Ne] ? (await this[Ne].getOne(this.entity, e)).data : (console.warn("[@kong-ui-public/forms] No API service provided"), {});
|
|
2883
2883
|
},
|
|
2884
2884
|
getInputFields() {
|
|
2885
2885
|
var e, t;
|
|
@@ -2903,18 +2903,18 @@ const Eo = /* @__PURE__ */ W(sm, [["render", lm], ["__scopeId", "data-v-9ab50e80
|
|
|
2903
2903
|
}
|
|
2904
2904
|
}, um = ["data-testid", "data-testlabel"], cm = ["data-testid"], mm = { class: "autosuggest__results_message" };
|
|
2905
2905
|
function fm(e, t, n, i, a, o) {
|
|
2906
|
-
const
|
|
2906
|
+
const r = j("KSelect");
|
|
2907
2907
|
return c(), $(me(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
2908
2908
|
class: "field-wrap autosuggest",
|
|
2909
2909
|
"max-width": "300",
|
|
2910
2910
|
text: i.t("general.disable_source_scope_change", { scope: o.scope })
|
|
2911
2911
|
}, {
|
|
2912
2912
|
default: A(() => [
|
|
2913
|
-
C(
|
|
2913
|
+
C(r, {
|
|
2914
2914
|
id: e.schema.model,
|
|
2915
2915
|
ref: "suggestion",
|
|
2916
2916
|
modelValue: a.idValue,
|
|
2917
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2917
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => a.idValue = s),
|
|
2918
2918
|
clearable: "",
|
|
2919
2919
|
disabled: e.schema.disabled,
|
|
2920
2920
|
"enable-filtering": "",
|
|
@@ -2926,21 +2926,21 @@ function fm(e, t, n, i, a, o) {
|
|
|
2926
2926
|
onChange: o.onSelected,
|
|
2927
2927
|
onQueryChange: o.onQueryChange
|
|
2928
2928
|
}, {
|
|
2929
|
-
"item-template": A(({ item:
|
|
2930
|
-
|
|
2929
|
+
"item-template": A(({ item: s }) => [
|
|
2930
|
+
h("span", {
|
|
2931
2931
|
class: "first-part",
|
|
2932
|
-
"data-testid":
|
|
2933
|
-
"data-testlabel":
|
|
2934
|
-
}, V(o.getSuggestionLabel(
|
|
2935
|
-
(c(!0), b(Y, null, oe(o.getSuggestionLabel(
|
|
2932
|
+
"data-testid": s.id && `${s.id}-0`,
|
|
2933
|
+
"data-testlabel": s.label
|
|
2934
|
+
}, V(o.getSuggestionLabel(s).split(" - ")[0]), 9, um),
|
|
2935
|
+
(c(!0), b(Y, null, oe(o.getSuggestionLabel(s).split(" - ").slice(1), (d, u) => (c(), b("span", {
|
|
2936
2936
|
key: u,
|
|
2937
2937
|
class: "field-span",
|
|
2938
|
-
"data-testid":
|
|
2938
|
+
"data-testid": s.id && `${s.id}-${u + 1}` || u + 1
|
|
2939
2939
|
}, V(d), 9, cm))), 128))
|
|
2940
2940
|
]),
|
|
2941
2941
|
empty: A(() => [
|
|
2942
|
-
|
|
2943
|
-
|
|
2942
|
+
h("div", mm, [
|
|
2943
|
+
h("span", null, V(a.message), 1)
|
|
2944
2944
|
])
|
|
2945
2945
|
]),
|
|
2946
2946
|
_: 1
|
|
@@ -2953,34 +2953,34 @@ const wo = /* @__PURE__ */ W(dm, [["render", fm], ["__scopeId", "data-v-433129a3
|
|
|
2953
2953
|
function hm(e) {
|
|
2954
2954
|
const t = ne([]), n = ne(null), i = (v) => ut(v) ? mt[v] != null ? mt[v] : (console.warn(`'${v}' is not a validator function!`), null) : v, a = q({
|
|
2955
2955
|
get() {
|
|
2956
|
-
var
|
|
2956
|
+
var N, U;
|
|
2957
2957
|
let v;
|
|
2958
|
-
return X(Z(e.schema, "get")) ? v = e.schema.get((
|
|
2958
|
+
return X(Z(e.schema, "get")) ? v = e.schema.get((N = e.model) == null ? void 0 : N.value) : v = Z((U = e.model) == null ? void 0 : U.value, e.schema.model), T(v);
|
|
2959
2959
|
},
|
|
2960
2960
|
set(v) {
|
|
2961
|
-
const
|
|
2962
|
-
v = k(v), X(v) ? v(v,
|
|
2961
|
+
const N = a;
|
|
2962
|
+
v = k(v), X(v) ? v(v, N) : s(v, N);
|
|
2963
2963
|
}
|
|
2964
2964
|
}), o = (v) => {
|
|
2965
2965
|
var D;
|
|
2966
2966
|
d();
|
|
2967
|
-
const
|
|
2968
|
-
let
|
|
2967
|
+
const N = Z(e.formOptions, "validateAsync", !1);
|
|
2968
|
+
let U = [];
|
|
2969
2969
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2970
2970
|
const M = [], O = (D = e.schema) == null ? void 0 : D.validator;
|
|
2971
2971
|
O && (Array.isArray(O) ? Se(O, (E) => {
|
|
2972
2972
|
M.push(i(E));
|
|
2973
2973
|
}) : M.push(i(O))), X(e.externalValidator) && M.push(e.externalValidator), Se(M, (E) => {
|
|
2974
2974
|
var _, I;
|
|
2975
|
-
if (
|
|
2976
|
-
|
|
2975
|
+
if (N)
|
|
2976
|
+
U.push(E(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
|
|
2977
2977
|
else {
|
|
2978
2978
|
const F = E(a.value, e.schema, (I = e.model) == null ? void 0 : I.value);
|
|
2979
2979
|
F && X(F.then) ? F.then((m) => {
|
|
2980
2980
|
m && (t.value = t.value.concat(m));
|
|
2981
2981
|
const g = t.value.length === 0;
|
|
2982
2982
|
e.emitValidated && e.emitValidated({ isValid: g, errors: t.value, field: e.schema });
|
|
2983
|
-
}) : F && (
|
|
2983
|
+
}) : F && (U = U.concat(F));
|
|
2984
2984
|
}
|
|
2985
2985
|
});
|
|
2986
2986
|
}
|
|
@@ -2995,45 +2995,45 @@ function hm(e) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
return M = O, O;
|
|
2997
2997
|
};
|
|
2998
|
-
return
|
|
2999
|
-
},
|
|
2998
|
+
return N ? Promise.all(U).then(H) : H(U);
|
|
2999
|
+
}, r = () => {
|
|
3000
3000
|
X(n.value) ? n.value() : n.value = At(
|
|
3001
3001
|
o,
|
|
3002
3002
|
Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 500))
|
|
3003
3003
|
);
|
|
3004
|
-
},
|
|
3004
|
+
}, s = (v, N) => {
|
|
3005
3005
|
var H, D, M;
|
|
3006
|
-
let
|
|
3007
|
-
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v),
|
|
3006
|
+
let U = !1;
|
|
3007
|
+
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v), U = !0) : e.schema.model && (u(e.schema.model, v), U = !0), U && (e.emitModelUpdated && ((D = e.model) != null && D.value) && e.emitModelUpdated({ value: v, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((M = e.model) == null ? void 0 : M.value, v, N, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
|
|
3008
3008
|
}, d = () => {
|
|
3009
3009
|
t.value.splice(0);
|
|
3010
|
-
}, u = (v,
|
|
3010
|
+
}, u = (v, N) => {
|
|
3011
3011
|
var E;
|
|
3012
|
-
let
|
|
3013
|
-
|
|
3012
|
+
let U = v.replace(/\[(\w+)\]/g, ".$1");
|
|
3013
|
+
U = U.replace(/^\./, "");
|
|
3014
3014
|
let H = ((E = e.model) == null ? void 0 : E.value) || {}, D = 0;
|
|
3015
|
-
const M =
|
|
3015
|
+
const M = U.split("."), O = M.length;
|
|
3016
3016
|
for (; D < O; ) {
|
|
3017
3017
|
const _ = M[D];
|
|
3018
3018
|
if (D < O - 1)
|
|
3019
3019
|
H[_] !== void 0 || (H[_] = {}), H = H[_];
|
|
3020
3020
|
else {
|
|
3021
|
-
H[_] =
|
|
3021
|
+
H[_] = N;
|
|
3022
3022
|
return;
|
|
3023
3023
|
}
|
|
3024
3024
|
++D;
|
|
3025
3025
|
}
|
|
3026
|
-
}, y = (v,
|
|
3027
|
-
const
|
|
3028
|
-
return ui(v,
|
|
3029
|
-
},
|
|
3026
|
+
}, y = (v, N = !1) => {
|
|
3027
|
+
const U = Z(e.formOptions, "fieldIdPrefix", "");
|
|
3028
|
+
return ui(v, U) + (N ? "-" + uo() : "");
|
|
3029
|
+
}, f = (v) => `${y(v)}-label`, p = () => Z(e.schema, "fieldClasses", []), T = (v) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(v) : v, k = (v) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(v) : v;
|
|
3030
3030
|
return {
|
|
3031
3031
|
value: a,
|
|
3032
3032
|
clearValidationErrors: d,
|
|
3033
3033
|
getFieldID: y,
|
|
3034
|
-
getLabelId:
|
|
3034
|
+
getLabelId: f,
|
|
3035
3035
|
getFieldClasses: p,
|
|
3036
|
-
updateModelValue:
|
|
3036
|
+
updateModelValue: s
|
|
3037
3037
|
};
|
|
3038
3038
|
}
|
|
3039
3039
|
function pm(e) {
|
|
@@ -3060,12 +3060,12 @@ function pm(e) {
|
|
|
3060
3060
|
function gm(e, t) {
|
|
3061
3061
|
const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
|
|
3062
3062
|
return t.filter((o) => {
|
|
3063
|
-
const
|
|
3064
|
-
return
|
|
3063
|
+
const r = o.model.match(n);
|
|
3064
|
+
return r && !Object.keys(e).includes(r[0]);
|
|
3065
3065
|
}).map((o) => {
|
|
3066
|
-
const
|
|
3066
|
+
const r = o.label.match(i);
|
|
3067
3067
|
return {
|
|
3068
|
-
label:
|
|
3068
|
+
label: r ? r[0] : o.label,
|
|
3069
3069
|
key: o.model,
|
|
3070
3070
|
value: "N/A",
|
|
3071
3071
|
type: "text"
|
|
@@ -3116,7 +3116,7 @@ const Ve = {
|
|
|
3116
3116
|
},
|
|
3117
3117
|
emits: ["modelUpdated"],
|
|
3118
3118
|
setup(e, { expose: t, emit: n }) {
|
|
3119
|
-
const i = e, a = n, o = ft(i),
|
|
3119
|
+
const i = e, a = n, o = ft(i), r = zt(Le, void 0), { updateModelValue: s, getFieldID: d, clearValidationErrors: u, value: y } = Ve.useAbstractFields({
|
|
3120
3120
|
model: o.model,
|
|
3121
3121
|
schema: i.schema,
|
|
3122
3122
|
formOptions: i.formOptions,
|
|
@@ -3127,7 +3127,7 @@ const Ve = {
|
|
|
3127
3127
|
t({
|
|
3128
3128
|
clearValidationErrors: u
|
|
3129
3129
|
});
|
|
3130
|
-
const
|
|
3130
|
+
const f = q(() => {
|
|
3131
3131
|
var M, O;
|
|
3132
3132
|
const D = (M = i.schema) == null ? void 0 : M.inputType.toLowerCase();
|
|
3133
3133
|
if (D === "number" && ((O = i.schema) == null ? void 0 : O.referenceable) === !0)
|
|
@@ -3147,10 +3147,10 @@ const Ve = {
|
|
|
3147
3147
|
}, T = (D, M) => {
|
|
3148
3148
|
var I, F;
|
|
3149
3149
|
let O = D;
|
|
3150
|
-
const E = p[
|
|
3151
|
-
_ && ((I = i.schema) != null && I.format ? O = St.format(_, (F = i.schema) == null ? void 0 : F.format) : O = _.valueOf()),
|
|
3150
|
+
const E = p[f.value] || "", _ = St.parse(D, E);
|
|
3151
|
+
_ && ((I = i.schema) != null && I.format ? O = St.format(_, (F = i.schema) == null ? void 0 : F.format) : O = _.valueOf()), s(O, M);
|
|
3152
3152
|
}, k = (D, M) => {
|
|
3153
|
-
ci(D) || (D = NaN),
|
|
3153
|
+
ci(D) || (D = NaN), s(D, M);
|
|
3154
3154
|
}, v = (D) => {
|
|
3155
3155
|
let M = D;
|
|
3156
3156
|
switch (i.schema.inputType) {
|
|
@@ -3159,18 +3159,18 @@ const Ve = {
|
|
|
3159
3159
|
vo(parseFloat(D)) && (M = parseFloat(D));
|
|
3160
3160
|
break;
|
|
3161
3161
|
}
|
|
3162
|
-
y.value = M,
|
|
3163
|
-
},
|
|
3164
|
-
y.value = D,
|
|
3165
|
-
},
|
|
3162
|
+
y.value = M, s(M, D);
|
|
3163
|
+
}, N = (D) => {
|
|
3164
|
+
y.value = D, s(D, D);
|
|
3165
|
+
}, U = ne(null), H = () => {
|
|
3166
3166
|
var D;
|
|
3167
|
-
X(
|
|
3167
|
+
X(U.value) && ((D = U.value) == null || D.flush());
|
|
3168
3168
|
};
|
|
3169
3169
|
return ti(() => {
|
|
3170
|
-
switch (
|
|
3170
|
+
switch (f.value) {
|
|
3171
3171
|
case "number":
|
|
3172
3172
|
case "range":
|
|
3173
|
-
|
|
3173
|
+
U.value = At(
|
|
3174
3174
|
(D, M) => {
|
|
3175
3175
|
k(D, M);
|
|
3176
3176
|
},
|
|
@@ -3184,7 +3184,7 @@ const Ve = {
|
|
|
3184
3184
|
case "date":
|
|
3185
3185
|
case "datetime":
|
|
3186
3186
|
case "datetime-local":
|
|
3187
|
-
|
|
3187
|
+
U.value = At(
|
|
3188
3188
|
(D, M) => {
|
|
3189
3189
|
T(D, M);
|
|
3190
3190
|
},
|
|
@@ -3197,7 +3197,7 @@ const Ve = {
|
|
|
3197
3197
|
break;
|
|
3198
3198
|
}
|
|
3199
3199
|
}), ni(() => {
|
|
3200
|
-
|
|
3200
|
+
f.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : f.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : f.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3201
3201
|
}), (D, M) => {
|
|
3202
3202
|
const O = j("KInput");
|
|
3203
3203
|
return c(), b("div", ym, [
|
|
@@ -3206,7 +3206,7 @@ const Ve = {
|
|
|
3206
3206
|
autocomplete: e.schema.autocomplete,
|
|
3207
3207
|
class: e.schema.fieldClasses,
|
|
3208
3208
|
disabled: e.disabled || void 0,
|
|
3209
|
-
help: e.hint ? e.hint :
|
|
3209
|
+
help: e.hint ? e.hint : f.value === "color" || f.value === "range" ? R(y) : void 0,
|
|
3210
3210
|
max: e.schema.max,
|
|
3211
3211
|
maxlength: e.schema.maxlength,
|
|
3212
3212
|
min: e.schema.min,
|
|
@@ -3217,15 +3217,15 @@ const Ve = {
|
|
|
3217
3217
|
placeholder: e.schema.placeholder,
|
|
3218
3218
|
readonly: e.schema.readonly,
|
|
3219
3219
|
required: e.schema.required,
|
|
3220
|
-
"show-password-mask-toggle":
|
|
3221
|
-
type:
|
|
3220
|
+
"show-password-mask-toggle": f.value === "password",
|
|
3221
|
+
type: f.value,
|
|
3222
3222
|
width: e.schema.width,
|
|
3223
3223
|
onBlur: H,
|
|
3224
3224
|
"onUpdate:modelValue": v
|
|
3225
3225
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
|
|
3226
|
-
(c(), $(me(R(
|
|
3226
|
+
(c(), $(me(R(r)), {
|
|
3227
3227
|
schema: e.schema,
|
|
3228
|
-
update:
|
|
3228
|
+
update: N,
|
|
3229
3229
|
value: R(y)
|
|
3230
3230
|
}, null, 8, ["schema", "value"]))
|
|
3231
3231
|
]);
|
|
@@ -3246,16 +3246,16 @@ const Ve = {
|
|
|
3246
3246
|
class: "content"
|
|
3247
3247
|
};
|
|
3248
3248
|
function Tm(e, t, n, i, a, o) {
|
|
3249
|
-
const
|
|
3249
|
+
const r = j("AddIcon"), s = j("TrashIcon"), d = j("KButton");
|
|
3250
3250
|
return c(), b("div", {
|
|
3251
3251
|
class: ee(["field-dropdown", { active: a.contentVisible }])
|
|
3252
3252
|
}, [
|
|
3253
|
-
|
|
3253
|
+
h("div", {
|
|
3254
3254
|
class: "title",
|
|
3255
3255
|
onClick: t[0] || (t[0] = (u) => a.contentVisible = !a.contentVisible)
|
|
3256
3256
|
}, [
|
|
3257
3257
|
ce(V(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3258
|
-
C(
|
|
3258
|
+
C(r, { class: "metric-add-icon" })
|
|
3259
3259
|
]),
|
|
3260
3260
|
C(xo, { name: "slide-fade" }, {
|
|
3261
3261
|
default: A(() => [
|
|
@@ -3267,7 +3267,7 @@ function Tm(e, t, n, i, a, o) {
|
|
|
3267
3267
|
onClick: t[1] || (t[1] = (u) => e.$emit("remove-item"))
|
|
3268
3268
|
}, {
|
|
3269
3269
|
default: A(() => [
|
|
3270
|
-
C(
|
|
3270
|
+
C(s)
|
|
3271
3271
|
]),
|
|
3272
3272
|
_: 1
|
|
3273
3273
|
})
|
|
@@ -3315,7 +3315,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3315
3315
|
this.$emit("modelUpdated", e, t);
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
|
-
},
|
|
3318
|
+
}, Um = /* @__PURE__ */ Object.assign(Fm, {
|
|
3319
3319
|
__name: "FieldObject",
|
|
3320
3320
|
setup(e) {
|
|
3321
3321
|
return (t, n) => {
|
|
@@ -3328,61 +3328,61 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3328
3328
|
schema: t.schema.schema,
|
|
3329
3329
|
onModelUpdated: t.updateModel
|
|
3330
3330
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), b("div", Em, [
|
|
3331
|
-
|
|
3331
|
+
h("table", {
|
|
3332
3332
|
id: t.getFieldID(t.schema),
|
|
3333
3333
|
class: ee(t.schema.fieldClasses)
|
|
3334
3334
|
}, [
|
|
3335
3335
|
(c(!0), b(Y, null, oe(t.value, (a, o) => (c(), b("tr", { key: o }, [
|
|
3336
|
-
|
|
3336
|
+
h("td", null, V(o), 1),
|
|
3337
3337
|
t.keyTypes[o] === "string" ? (c(), b("td", Mm, [
|
|
3338
|
-
Ee(
|
|
3339
|
-
"onUpdate:modelValue": (
|
|
3338
|
+
Ee(h("input", {
|
|
3339
|
+
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3340
3340
|
type: "text"
|
|
3341
3341
|
}, null, 8, Am), [
|
|
3342
3342
|
[Kt, t.value[o]]
|
|
3343
3343
|
])
|
|
3344
3344
|
])) : B("", !0),
|
|
3345
3345
|
t.keyTypes[o] === "boolean" ? (c(), b("td", Im, [
|
|
3346
|
-
Ee(
|
|
3347
|
-
"onUpdate:modelValue": (
|
|
3346
|
+
Ee(h("input", {
|
|
3347
|
+
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3348
3348
|
type: "checkbox"
|
|
3349
3349
|
}, null, 8, Cm), [
|
|
3350
3350
|
[qo, t.value[o]]
|
|
3351
3351
|
])
|
|
3352
3352
|
])) : B("", !0),
|
|
3353
3353
|
t.keyTypes[o] === "number" ? (c(), b("td", Om, [
|
|
3354
|
-
Ee(
|
|
3355
|
-
"onUpdate:modelValue": (
|
|
3354
|
+
Ee(h("input", {
|
|
3355
|
+
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3356
3356
|
type: "number"
|
|
3357
3357
|
}, null, 8, Rm), [
|
|
3358
3358
|
[Kt, t.value[o]]
|
|
3359
3359
|
])
|
|
3360
3360
|
])) : B("", !0),
|
|
3361
|
-
|
|
3362
|
-
|
|
3361
|
+
h("td", null, [
|
|
3362
|
+
h("input", {
|
|
3363
3363
|
type: "button",
|
|
3364
3364
|
value: "x",
|
|
3365
|
-
onClick: (
|
|
3365
|
+
onClick: (r) => t.removeElement(o)
|
|
3366
3366
|
}, null, 8, km)
|
|
3367
3367
|
])
|
|
3368
3368
|
]))), 128))
|
|
3369
3369
|
], 10, wm),
|
|
3370
|
-
Ee(
|
|
3370
|
+
Ee(h("select", {
|
|
3371
3371
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
|
|
3372
3372
|
}, [...n[3] || (n[3] = [
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3373
|
+
h("option", { value: "string" }, " String ", -1),
|
|
3374
|
+
h("option", { value: "number" }, " Number ", -1),
|
|
3375
|
+
h("option", { value: "boolean" }, " Boolean ", -1)
|
|
3376
3376
|
])], 512), [
|
|
3377
3377
|
[Bo, t.newKeyType]
|
|
3378
3378
|
]),
|
|
3379
|
-
Ee(
|
|
3379
|
+
Ee(h("input", {
|
|
3380
3380
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
3381
3381
|
type: "text"
|
|
3382
3382
|
}, null, 512), [
|
|
3383
3383
|
[Kt, t.newKeyName]
|
|
3384
3384
|
]),
|
|
3385
|
-
|
|
3385
|
+
h("input", {
|
|
3386
3386
|
type: "button",
|
|
3387
3387
|
value: "Add key",
|
|
3388
3388
|
onClick: n[2] || (n[2] = (...a) => t.addKey && t.addKey(...a))
|
|
@@ -3393,7 +3393,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3393
3393
|
]);
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
|
-
}), Io = /* @__PURE__ */ W(
|
|
3396
|
+
}), Io = /* @__PURE__ */ W(Um, [["__scopeId", "data-v-6eddb0ed"]]), Nm = ["id"], Lm = ["data-testid"], Dm = { class: "item-wrapper" }, Pm = { class: "index-wrapper" }, $m = { key: 0 }, Vm = { key: 1 }, jm = ["onUpdate:modelValue", "placeholder", "type", "onInput"], Km = {
|
|
3397
3397
|
key: 0,
|
|
3398
3398
|
class: "hint"
|
|
3399
3399
|
}, xm = { class: "input-item" }, qm = ["placeholder"], Bm = {
|
|
@@ -3475,15 +3475,15 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3475
3475
|
const o = a.indexOf(n + "-");
|
|
3476
3476
|
if (o > -1 && Array.isArray(t))
|
|
3477
3477
|
if (t.length > 0) {
|
|
3478
|
-
const
|
|
3479
|
-
|
|
3478
|
+
const s = a.split("-").filter((u) => t.find((y) => y.model === u)), d = a.split(`-${s}`)[0].split(`${n}-`)[1];
|
|
3479
|
+
s.length ? i[d] = {
|
|
3480
3480
|
...i[d],
|
|
3481
|
-
[
|
|
3481
|
+
[s]: e[a]
|
|
3482
3482
|
} : i[a.substring(o + `${n}-`.length)] = e[a];
|
|
3483
3483
|
} else
|
|
3484
3484
|
i[a.substring(`${n}-`.length)] = e[a];
|
|
3485
3485
|
else {
|
|
3486
|
-
const
|
|
3486
|
+
const s = a.split("-").filter((u) => u === this.schema.model), d = a.split(`-${s}`)[0].split(`${n}-`)[1];
|
|
3487
3487
|
d && (i[d] = e[a]);
|
|
3488
3488
|
}
|
|
3489
3489
|
return a;
|
|
@@ -3511,17 +3511,17 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3511
3511
|
key: o,
|
|
3512
3512
|
"data-testid": `field-object-key-${o}`
|
|
3513
3513
|
}, [
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3514
|
+
h("div", null, [
|
|
3515
|
+
h("div", Dm, [
|
|
3516
|
+
h("div", Pm, [
|
|
3517
|
+
h("strong", null, V(o), 1),
|
|
3518
|
+
h("div", null, [
|
|
3519
3519
|
C(i, {
|
|
3520
3520
|
appearance: "tertiary",
|
|
3521
3521
|
class: "delete",
|
|
3522
3522
|
icon: "",
|
|
3523
3523
|
type: "button",
|
|
3524
|
-
onClick: (
|
|
3524
|
+
onClick: (r) => t.removeElement(o)
|
|
3525
3525
|
}, {
|
|
3526
3526
|
default: A(() => [
|
|
3527
3527
|
C(R(Ct))
|
|
@@ -3530,7 +3530,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3530
3530
|
}, 8, ["onClick"])
|
|
3531
3531
|
])
|
|
3532
3532
|
]),
|
|
3533
|
-
n[1] || (n[1] =
|
|
3533
|
+
n[1] || (n[1] = h("hr", { class: "divider" }, null, -1)),
|
|
3534
3534
|
t.subSchema ? (c(), b("div", $m, [
|
|
3535
3535
|
C(ue, {
|
|
3536
3536
|
model: t.transformedModel[o],
|
|
@@ -3539,31 +3539,31 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3539
3539
|
onModelUpdated: t.updateModel
|
|
3540
3540
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3541
3541
|
])) : (c(), b("div", Vm, [
|
|
3542
|
-
Ee(
|
|
3543
|
-
"onUpdate:modelValue": (
|
|
3542
|
+
Ee(h("input", {
|
|
3543
|
+
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3544
3544
|
class: "form-control",
|
|
3545
3545
|
placeholder: t.schema.fields && t.schema.fields[0].schema.placeholder,
|
|
3546
3546
|
type: t.valueInputType,
|
|
3547
|
-
onInput: (
|
|
3547
|
+
onInput: (r) => t.updateModel(t.value[o], t.model[t.schema.model])
|
|
3548
3548
|
}, null, 40, jm), [
|
|
3549
3549
|
[Ra, t.value[o]]
|
|
3550
3550
|
]),
|
|
3551
3551
|
t.schema.fields && t.schema.fields[0].schema.hint ? (c(), b("p", Km, V(t.schema.fields[0].schema.hint), 1)) : B("", !0),
|
|
3552
3552
|
(c(), $(me(t.autofillSlot), {
|
|
3553
3553
|
schema: t.schema.fields && t.schema.fields[0].schema || t.schema.values,
|
|
3554
|
-
update: (
|
|
3554
|
+
update: (r) => t.value[o] = r,
|
|
3555
3555
|
value: t.value[o]
|
|
3556
3556
|
}, null, 8, ["schema", "update", "value"]))
|
|
3557
3557
|
])),
|
|
3558
|
-
n[2] || (n[2] =
|
|
3558
|
+
n[2] || (n[2] = h("hr", { class: "wide-divider" }, null, -1))
|
|
3559
3559
|
])
|
|
3560
3560
|
])
|
|
3561
3561
|
], 8, Lm))), 128)),
|
|
3562
|
-
|
|
3562
|
+
h("div", {
|
|
3563
3563
|
class: ee(["input-wrapper", { indent: t.hasObjectKeys }])
|
|
3564
3564
|
}, [
|
|
3565
|
-
|
|
3566
|
-
Ee(
|
|
3565
|
+
h("div", xm, [
|
|
3566
|
+
Ee(h("input", {
|
|
3567
3567
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
|
|
3568
3568
|
class: "form-control",
|
|
3569
3569
|
"data-testid": "keyname-input",
|
|
@@ -3586,7 +3586,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3586
3586
|
]),
|
|
3587
3587
|
t.schema.hintText ? (c(), b("p", Bm, V(t.schema.hintText), 1)) : B("", !0)
|
|
3588
3588
|
], 2)
|
|
3589
|
-
], 10,
|
|
3589
|
+
], 10, Nm);
|
|
3590
3590
|
};
|
|
3591
3591
|
}
|
|
3592
3592
|
}), Co = /* @__PURE__ */ W(Hm, [["__scopeId", "data-v-0faeec4d"]]), Gm = { class: "radio-selection-group" }, Ym = /* @__PURE__ */ fe({
|
|
@@ -3629,7 +3629,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3629
3629
|
},
|
|
3630
3630
|
emits: ["modelUpdated"],
|
|
3631
3631
|
setup(e, { expose: t, emit: n }) {
|
|
3632
|
-
const i = e, a = n, o = ft(i), { updateModelValue:
|
|
3632
|
+
const i = e, a = n, o = ft(i), { updateModelValue: r, value: s, clearValidationErrors: d } = Ve.useAbstractFields({
|
|
3633
3633
|
model: o.model,
|
|
3634
3634
|
schema: i.schema,
|
|
3635
3635
|
formOptions: i.formOptions,
|
|
@@ -3641,17 +3641,17 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3641
3641
|
clearValidationErrors: d
|
|
3642
3642
|
});
|
|
3643
3643
|
const u = (y) => {
|
|
3644
|
-
let
|
|
3645
|
-
typeof y == "string" && (
|
|
3644
|
+
let f = y;
|
|
3645
|
+
typeof y == "string" && (f = y.split(","), i.schema.array || (f = f.toString())), r(f, y);
|
|
3646
3646
|
};
|
|
3647
|
-
return (y,
|
|
3647
|
+
return (y, f) => {
|
|
3648
3648
|
const p = j("KRadio");
|
|
3649
3649
|
return c(), b("div", Gm, [
|
|
3650
3650
|
(c(!0), b(Y, null, oe(e.schema.values, (T, k) => (c(), $(p, {
|
|
3651
3651
|
id: e.schema.name + "-" + k,
|
|
3652
3652
|
key: T.value,
|
|
3653
|
-
modelValue: R(
|
|
3654
|
-
"onUpdate:modelValue":
|
|
3653
|
+
modelValue: R(s),
|
|
3654
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => It(s) ? s.value = v : null),
|
|
3655
3655
|
label: T.name,
|
|
3656
3656
|
"label-attributes": { info: e.schema.help },
|
|
3657
3657
|
name: e.schema.name,
|
|
@@ -3702,11 +3702,11 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3702
3702
|
},
|
|
3703
3703
|
emits: ["modelUpdated"],
|
|
3704
3704
|
setup(e, { expose: t, emit: n }) {
|
|
3705
|
-
const i = e, a = n, o = q(() => i.schema.selectOptions || {}),
|
|
3706
|
-
model:
|
|
3705
|
+
const i = e, a = n, o = q(() => i.schema.selectOptions || {}), r = (v) => de(v) ? null : v, s = ft(i), { getFieldID: d, clearValidationErrors: u, value: y } = Ve.useAbstractFields({
|
|
3706
|
+
model: s.model,
|
|
3707
3707
|
schema: i.schema,
|
|
3708
3708
|
formOptions: i.formOptions,
|
|
3709
|
-
formatValueToField:
|
|
3709
|
+
formatValueToField: r,
|
|
3710
3710
|
emitModelUpdated: (v) => {
|
|
3711
3711
|
a("modelUpdated", v.value, v.model);
|
|
3712
3712
|
}
|
|
@@ -3714,19 +3714,19 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3714
3714
|
t({
|
|
3715
3715
|
clearValidationErrors: u
|
|
3716
3716
|
});
|
|
3717
|
-
const
|
|
3717
|
+
const f = q(() => {
|
|
3718
3718
|
const v = i.schema.values;
|
|
3719
3719
|
return p(typeof v == "function" ? v.apply(this, [i.model, i.schema]) : v);
|
|
3720
3720
|
}), p = (v) => {
|
|
3721
|
-
const
|
|
3722
|
-
return v.forEach((
|
|
3723
|
-
|
|
3724
|
-
label: k(
|
|
3725
|
-
value: T(
|
|
3726
|
-
disabled: typeof
|
|
3727
|
-
group: typeof
|
|
3721
|
+
const N = [];
|
|
3722
|
+
return v.forEach((U) => {
|
|
3723
|
+
N.push({
|
|
3724
|
+
label: k(U),
|
|
3725
|
+
value: T(U),
|
|
3726
|
+
disabled: typeof U == "object" && U.disabled || void 0,
|
|
3727
|
+
group: typeof U == "object" && String(U.group || "").toUpperCase() || void 0
|
|
3728
3728
|
});
|
|
3729
|
-
}),
|
|
3729
|
+
}), N;
|
|
3730
3730
|
}, T = (v) => {
|
|
3731
3731
|
if (Re(v)) {
|
|
3732
3732
|
if (o.value && typeof o.value.value < "u")
|
|
@@ -3746,16 +3746,16 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3746
3746
|
} else
|
|
3747
3747
|
return String(v);
|
|
3748
3748
|
};
|
|
3749
|
-
return (v,
|
|
3750
|
-
const
|
|
3751
|
-
return c(), $(
|
|
3749
|
+
return (v, N) => {
|
|
3750
|
+
const U = j("KSelect");
|
|
3751
|
+
return c(), $(U, {
|
|
3752
3752
|
id: R(d)(e.schema),
|
|
3753
3753
|
modelValue: R(y),
|
|
3754
|
-
"onUpdate:modelValue":
|
|
3754
|
+
"onUpdate:modelValue": N[0] || (N[0] = (H) => It(y) ? y.value = H : null),
|
|
3755
3755
|
class: ee(e.schema.fieldClasses),
|
|
3756
3756
|
clearable: !e.schema.required,
|
|
3757
3757
|
disabled: e.disabled || void 0,
|
|
3758
|
-
items:
|
|
3758
|
+
items: f.value,
|
|
3759
3759
|
"kpop-attributes": { "data-testid": `${R(d)(e.schema)}-items` },
|
|
3760
3760
|
"label-attributes": { info: e.schema.help },
|
|
3761
3761
|
name: e.schema.inputName,
|
|
@@ -3774,7 +3774,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3774
3774
|
},
|
|
3775
3775
|
emits: ["modelUpdated"],
|
|
3776
3776
|
setup(e, { expose: t, emit: n }) {
|
|
3777
|
-
const i = n, { updateModelValue: a, getFieldID: o, getLabelId:
|
|
3777
|
+
const i = n, { updateModelValue: a, getFieldID: o, getLabelId: r, clearValidationErrors: s, value: d } = Ve.useAbstractFields({
|
|
3778
3778
|
model: ka(() => e.model),
|
|
3779
3779
|
schema: e.schema,
|
|
3780
3780
|
formOptions: e.formOptions,
|
|
@@ -3783,29 +3783,29 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3783
3783
|
}
|
|
3784
3784
|
});
|
|
3785
3785
|
t({
|
|
3786
|
-
clearValidationErrors:
|
|
3786
|
+
clearValidationErrors: s
|
|
3787
3787
|
});
|
|
3788
3788
|
const u = ne("");
|
|
3789
3789
|
function y(T) {
|
|
3790
3790
|
return Array.isArray(T) ? T.map((k) => String(k).trim()).filter(Boolean).join(", ") : "";
|
|
3791
3791
|
}
|
|
3792
|
-
function
|
|
3792
|
+
function f(T) {
|
|
3793
3793
|
return T ? T.trim().split(",").map((k) => k.trim()).filter(Boolean) : [];
|
|
3794
3794
|
}
|
|
3795
3795
|
function p(T) {
|
|
3796
3796
|
u.value = T;
|
|
3797
|
-
const k =
|
|
3797
|
+
const k = f(T);
|
|
3798
3798
|
a(k, d.value);
|
|
3799
3799
|
}
|
|
3800
3800
|
return Wt(d, (T) => {
|
|
3801
3801
|
const k = T ? y(T) : "";
|
|
3802
|
-
y(
|
|
3802
|
+
y(f(u.value)) !== k && (u.value = k);
|
|
3803
3803
|
}, { immediate: !0 }), (T, k) => {
|
|
3804
3804
|
const v = j("KInput");
|
|
3805
3805
|
return c(), b("div", Wm, [
|
|
3806
3806
|
C(v, Xe(T.$attrs, {
|
|
3807
3807
|
id: R(o)(e.schema),
|
|
3808
|
-
"aria-labelledby": R(
|
|
3808
|
+
"aria-labelledby": R(r)(e.schema),
|
|
3809
3809
|
class: e.schema.fieldClasses,
|
|
3810
3810
|
help: "Use comma to separate values. eg: value1, value2",
|
|
3811
3811
|
"model-value": u.value,
|
|
@@ -3853,11 +3853,11 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3853
3853
|
emits: ["refreshModel"],
|
|
3854
3854
|
methods: {
|
|
3855
3855
|
generateSchema(e, t, n) {
|
|
3856
|
-
var a, o,
|
|
3856
|
+
var a, o, r;
|
|
3857
3857
|
let i;
|
|
3858
|
-
return t && (i = JSON.parse(JSON.stringify(t)), (
|
|
3858
|
+
return t && (i = JSON.parse(JSON.stringify(t)), (r = (o = (a = i.schema) == null ? void 0 : a.fields) == null ? void 0 : o.map) == null || r.call(o, (s) => (s.id = `${s.id || s.model}-${n}`, s))), {
|
|
3859
3859
|
...i,
|
|
3860
|
-
set(
|
|
3860
|
+
set(s, d) {
|
|
3861
3861
|
e[n] = d;
|
|
3862
3862
|
},
|
|
3863
3863
|
get() {
|
|
@@ -3881,7 +3881,7 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3881
3881
|
handleInput(e, t) {
|
|
3882
3882
|
var i, a;
|
|
3883
3883
|
let n = e;
|
|
3884
|
-
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ci(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((o,
|
|
3884
|
+
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ci(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((o, r) => r === t ? n : o);
|
|
3885
3885
|
},
|
|
3886
3886
|
isStringArrayItems() {
|
|
3887
3887
|
var t, n;
|
|
@@ -3908,18 +3908,18 @@ const Ao = /* @__PURE__ */ W(bm, [["render", Tm]]), Sm = { class: "field-object-
|
|
|
3908
3908
|
class: "string-array-item"
|
|
3909
3909
|
}, ef = { key: 2 }, tf = ["onUpdate:modelValue", "aria-labelledby", "type"], nf = ["onUpdate:modelValue", "aria-labelledby"];
|
|
3910
3910
|
function af(e, t, n, i, a, o) {
|
|
3911
|
-
const
|
|
3911
|
+
const r = j("FieldStringArray"), s = j("TrashIcon"), d = j("KButton"), u = j("KTextArea"), y = j("KInput");
|
|
3912
3912
|
return e.schema ? (c(), b("div", {
|
|
3913
3913
|
key: 0,
|
|
3914
3914
|
id: e.getFieldID(e.schema),
|
|
3915
3915
|
class: ee(e.schema.fieldClasses)
|
|
3916
3916
|
}, [
|
|
3917
|
-
(c(!0), b(Y, null, oe(e.value, (
|
|
3917
|
+
(c(!0), b(Y, null, oe(e.value, (f, p) => (c(), b("div", {
|
|
3918
3918
|
key: p,
|
|
3919
3919
|
class: ee(e.schema.fieldItemsClasses)
|
|
3920
3920
|
}, [
|
|
3921
3921
|
o.isStringArrayItems() ? (c(), b("div", Qm, [
|
|
3922
|
-
C(
|
|
3922
|
+
C(r, {
|
|
3923
3923
|
"form-options": e.formOptions,
|
|
3924
3924
|
model: e.value,
|
|
3925
3925
|
schema: o.generateStringArraySchema(p),
|
|
@@ -3932,21 +3932,21 @@ function af(e, t, n, i, a, o) {
|
|
|
3932
3932
|
onClick: (T) => o.removeElement(p)
|
|
3933
3933
|
}, {
|
|
3934
3934
|
default: A(() => [
|
|
3935
|
-
C(
|
|
3935
|
+
C(s, { decorative: "" })
|
|
3936
3936
|
]),
|
|
3937
3937
|
_: 1
|
|
3938
3938
|
}, 8, ["onClick"])
|
|
3939
3939
|
])) : e.schema.items && e.schema.itemContainerComponent ? (c(), $(me(e.schema.itemContainerComponent), {
|
|
3940
3940
|
key: 1,
|
|
3941
3941
|
index: p,
|
|
3942
|
-
model:
|
|
3942
|
+
model: f,
|
|
3943
3943
|
schema: o.generateSchema(e.value, e.schema.items, p),
|
|
3944
3944
|
onRemoveItem: (T) => o.removeElement(p)
|
|
3945
3945
|
}, {
|
|
3946
3946
|
default: A(() => [
|
|
3947
3947
|
(c(), $(me(o.getFieldComponent(e.schema.items)), {
|
|
3948
3948
|
"form-options": e.formOptions,
|
|
3949
|
-
model:
|
|
3949
|
+
model: f,
|
|
3950
3950
|
schema: o.generateSchema(e.value, e.schema.items, p),
|
|
3951
3951
|
onModelUpdated: o.modelUpdated
|
|
3952
3952
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
@@ -3955,14 +3955,14 @@ function af(e, t, n, i, a, o) {
|
|
|
3955
3955
|
}, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (c(), b("span", ef, [
|
|
3956
3956
|
(c(), $(me(o.getFieldComponent(e.schema.items)), {
|
|
3957
3957
|
"form-options": e.formOptions,
|
|
3958
|
-
model:
|
|
3958
|
+
model: f,
|
|
3959
3959
|
schema: o.generateSchema(e.value, e.schema.items, p),
|
|
3960
3960
|
onModelUpdated: o.modelUpdated
|
|
3961
3961
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
3962
3962
|
])) : e.schema.itemContainerComponent ? (c(), $(me(e.schema.itemContainerComponent), {
|
|
3963
3963
|
key: 3,
|
|
3964
3964
|
"data-testid": `${e.getFieldID(e.schema)}-item-${p}`,
|
|
3965
|
-
model:
|
|
3965
|
+
model: f,
|
|
3966
3966
|
schema: o.generateSchema(e.value, e.schema.items, p),
|
|
3967
3967
|
onRemoveItem: (T) => o.removeElement(p)
|
|
3968
3968
|
}, {
|
|
@@ -4017,7 +4017,7 @@ function af(e, t, n, i, a, o) {
|
|
|
4017
4017
|
}),
|
|
4018
4018
|
_: 2
|
|
4019
4019
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (c(), b(Y, { key: 4 }, [
|
|
4020
|
-
Ee(
|
|
4020
|
+
Ee(h("input", Xe({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
4021
4021
|
"onUpdate:modelValue": (T) => e.value[p] = T,
|
|
4022
4022
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4023
4023
|
type: "text"
|
|
@@ -4085,7 +4085,7 @@ const of = /* @__PURE__ */ W(Xm, [["render", af], ["__scopeId", "data-v-7633b3a8
|
|
|
4085
4085
|
},
|
|
4086
4086
|
emits: ["modelUpdated"],
|
|
4087
4087
|
setup(e, { expose: t, emit: n }) {
|
|
4088
|
-
const i = e, a = n, o = ft(i), { getFieldID:
|
|
4088
|
+
const i = e, a = n, o = ft(i), { getFieldID: r, value: s, clearValidationErrors: d } = Ve.useAbstractFields({
|
|
4089
4089
|
model: o.model,
|
|
4090
4090
|
schema: i.schema,
|
|
4091
4091
|
formOptions: i.formOptions,
|
|
@@ -4096,12 +4096,12 @@ const of = /* @__PURE__ */ W(Xm, [["render", af], ["__scopeId", "data-v-7633b3a8
|
|
|
4096
4096
|
return t({
|
|
4097
4097
|
clearValidationErrors: d
|
|
4098
4098
|
}), (u, y) => {
|
|
4099
|
-
const
|
|
4099
|
+
const f = j("KCheckbox");
|
|
4100
4100
|
return c(), b("div", rf, [
|
|
4101
|
-
C(
|
|
4102
|
-
id: R(
|
|
4103
|
-
modelValue: R(
|
|
4104
|
-
"onUpdate:modelValue": y[0] || (y[0] = (p) => It(
|
|
4101
|
+
C(f, Xe(u.$attrs, {
|
|
4102
|
+
id: R(r)(e.schema),
|
|
4103
|
+
modelValue: R(s),
|
|
4104
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => It(s) ? s.value = p : null),
|
|
4105
4105
|
autocomplete: e.schema.autocomplete,
|
|
4106
4106
|
class: e.schema.fieldClasses,
|
|
4107
4107
|
disabled: e.disabled || void 0,
|
|
@@ -4116,28 +4116,28 @@ const of = /* @__PURE__ */ W(Xm, [["render", af], ["__scopeId", "data-v-7633b3a8
|
|
|
4116
4116
|
}
|
|
4117
4117
|
}), lf = /* @__PURE__ */ W(sf, [["__scopeId", "data-v-6811d435"]]), df = { class: "wrapper" }, uf = ["disabled"], cf = ["id", "checked", "disabled", "onChange", "name"], mf = ["disabled"], ff = { class: "info" }, hf = { class: "dropList" }, pf = ["id", "checked", "disabled", "onChange", "name"];
|
|
4118
4118
|
function gf(e, t, n, i, a, o) {
|
|
4119
|
-
const
|
|
4119
|
+
const r = Oa("attributes");
|
|
4120
4120
|
return Ee((c(), b("div", df, [
|
|
4121
4121
|
e.schema.listBox ? (c(), b("div", {
|
|
4122
4122
|
key: 0,
|
|
4123
4123
|
class: "listbox form-control",
|
|
4124
4124
|
disabled: e.disabled || null
|
|
4125
4125
|
}, [
|
|
4126
|
-
(c(!0), b(Y, null, oe(o.items, (
|
|
4127
|
-
class: ee(["list-row", { "is-checked": o.isItemChecked(
|
|
4126
|
+
(c(!0), b(Y, null, oe(o.items, (s) => (c(), b("div", {
|
|
4127
|
+
class: ee(["list-row", { "is-checked": o.isItemChecked(s) }])
|
|
4128
4128
|
}, [
|
|
4129
|
-
|
|
4130
|
-
Ee(
|
|
4129
|
+
h("label", null, [
|
|
4130
|
+
Ee(h("input", {
|
|
4131
4131
|
id: e.getFieldID(e.schema, !0),
|
|
4132
4132
|
type: "checkbox",
|
|
4133
|
-
checked: o.isItemChecked(
|
|
4133
|
+
checked: o.isItemChecked(s) || null,
|
|
4134
4134
|
disabled: e.disabled || null,
|
|
4135
|
-
onChange: (d) => o.onChanged(d,
|
|
4136
|
-
name: o.getInputName(
|
|
4135
|
+
onChange: (d) => o.onChanged(d, s),
|
|
4136
|
+
name: o.getInputName(s)
|
|
4137
4137
|
}, null, 40, cf), [
|
|
4138
|
-
[
|
|
4138
|
+
[r, "input"]
|
|
4139
4139
|
]),
|
|
4140
|
-
ce(V(o.getItemName(
|
|
4140
|
+
ce(V(o.getItemName(s)), 1)
|
|
4141
4141
|
])
|
|
4142
4142
|
], 2))), 256))
|
|
4143
4143
|
], 8, uf)) : B("", !0),
|
|
@@ -4146,35 +4146,35 @@ function gf(e, t, n, i, a, o) {
|
|
|
4146
4146
|
class: "combobox form-control",
|
|
4147
4147
|
disabled: e.disabled || null
|
|
4148
4148
|
}, [
|
|
4149
|
-
|
|
4149
|
+
h("div", {
|
|
4150
4150
|
class: ee(["mainRow", { expanded: a.comboExpanded }]),
|
|
4151
|
-
onClick: t[0] || (t[0] = (...
|
|
4151
|
+
onClick: t[0] || (t[0] = (...s) => o.onExpandCombo && o.onExpandCombo(...s))
|
|
4152
4152
|
}, [
|
|
4153
|
-
|
|
4154
|
-
t[1] || (t[1] =
|
|
4153
|
+
h("div", ff, V(o.selectedCount) + " selected", 1),
|
|
4154
|
+
t[1] || (t[1] = h("div", { class: "arrow" }, null, -1))
|
|
4155
4155
|
], 2),
|
|
4156
|
-
|
|
4157
|
-
a.comboExpanded ? (c(!0), b(Y, { key: 0 }, oe(o.items, (
|
|
4158
|
-
class: ee(["list-row", { "is-checked": o.isItemChecked(
|
|
4156
|
+
h("div", hf, [
|
|
4157
|
+
a.comboExpanded ? (c(!0), b(Y, { key: 0 }, oe(o.items, (s) => (c(), b("div", {
|
|
4158
|
+
class: ee(["list-row", { "is-checked": o.isItemChecked(s) }])
|
|
4159
4159
|
}, [
|
|
4160
|
-
|
|
4161
|
-
Ee(
|
|
4160
|
+
h("label", null, [
|
|
4161
|
+
Ee(h("input", {
|
|
4162
4162
|
id: e.getFieldID(e.schema, !0),
|
|
4163
4163
|
type: "checkbox",
|
|
4164
|
-
checked: o.isItemChecked(
|
|
4164
|
+
checked: o.isItemChecked(s) || null,
|
|
4165
4165
|
disabled: e.disabled || null,
|
|
4166
|
-
onChange: (d) => o.onChanged(d,
|
|
4167
|
-
name: o.getInputName(
|
|
4166
|
+
onChange: (d) => o.onChanged(d, s),
|
|
4167
|
+
name: o.getInputName(s)
|
|
4168
4168
|
}, null, 40, pf), [
|
|
4169
|
-
[
|
|
4169
|
+
[r, "input"]
|
|
4170
4170
|
]),
|
|
4171
|
-
ce(V(o.getItemName(
|
|
4171
|
+
ce(V(o.getItemName(s)), 1)
|
|
4172
4172
|
])
|
|
4173
4173
|
], 2))), 256)) : B("", !0)
|
|
4174
4174
|
])
|
|
4175
4175
|
], 8, mf))
|
|
4176
4176
|
])), [
|
|
4177
|
-
[
|
|
4177
|
+
[r, "wrapper"]
|
|
4178
4178
|
]);
|
|
4179
4179
|
}
|
|
4180
4180
|
const yf = {
|
|
@@ -4289,14 +4289,14 @@ const yf = {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
}, _f = { class: "key-value-pairs-editor" }, Tf = { class: "pair-item-cell" }, Sf = ["data-testid", "placeholder", "value", "onInput"], Ef = { class: "pair-item-cell" }, wf = ["data-testid", "placeholder", "value", "onInput"];
|
|
4291
4291
|
function Mf(e, t, n, i, a, o) {
|
|
4292
|
-
const
|
|
4292
|
+
const r = j("TrashIcon"), s = j("KButton");
|
|
4293
4293
|
return c(), b("div", _f, [
|
|
4294
4294
|
(c(!0), b(Y, null, oe(a.pairs, (d, u) => (c(), b("div", {
|
|
4295
4295
|
key: u,
|
|
4296
4296
|
class: "pair-item"
|
|
4297
4297
|
}, [
|
|
4298
|
-
|
|
4299
|
-
|
|
4298
|
+
h("div", Tf, [
|
|
4299
|
+
h("input", {
|
|
4300
4300
|
class: "form-control",
|
|
4301
4301
|
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${u}`,
|
|
4302
4302
|
placeholder: e.schema.keyInputPlaceholder ?? "Key",
|
|
@@ -4312,8 +4312,8 @@ function Mf(e, t, n, i, a, o) {
|
|
|
4312
4312
|
value: d.key
|
|
4313
4313
|
}, null, 8, ["schema", "update", "value"]))
|
|
4314
4314
|
]),
|
|
4315
|
-
|
|
4316
|
-
|
|
4315
|
+
h("div", Ef, [
|
|
4316
|
+
h("input", {
|
|
4317
4317
|
class: "form-control",
|
|
4318
4318
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
4319
4319
|
placeholder: e.schema.valueInputPlaceholder ?? "Value",
|
|
@@ -4329,7 +4329,7 @@ function Mf(e, t, n, i, a, o) {
|
|
|
4329
4329
|
value: d.value
|
|
4330
4330
|
}, null, 8, ["schema", "update", "value"]))
|
|
4331
4331
|
]),
|
|
4332
|
-
C(
|
|
4332
|
+
C(s, {
|
|
4333
4333
|
appearance: "tertiary",
|
|
4334
4334
|
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${u}`,
|
|
4335
4335
|
onClick: () => {
|
|
@@ -4337,12 +4337,12 @@ function Mf(e, t, n, i, a, o) {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
}, {
|
|
4339
4339
|
default: A(() => [
|
|
4340
|
-
C(
|
|
4340
|
+
C(r)
|
|
4341
4341
|
]),
|
|
4342
4342
|
_: 1
|
|
4343
4343
|
}, 8, ["data-testid", "onClick"])
|
|
4344
4344
|
]))), 128)),
|
|
4345
|
-
C(
|
|
4345
|
+
C(s, {
|
|
4346
4346
|
appearance: "tertiary",
|
|
4347
4347
|
class: ee(e.schema.newElementButtonLabelClasses),
|
|
4348
4348
|
"data-testid": `${e.getFieldID(e.schema)}-add-pair`,
|
|
@@ -4388,12 +4388,12 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4388
4388
|
schema: t.schema,
|
|
4389
4389
|
formOptions: t.formOptions
|
|
4390
4390
|
});
|
|
4391
|
-
return (o,
|
|
4392
|
-
const
|
|
4391
|
+
return (o, r) => {
|
|
4392
|
+
const s = j("KLabel");
|
|
4393
4393
|
return c(), b("span", {
|
|
4394
4394
|
class: ee(["field-label", e.schema.fieldClasses])
|
|
4395
4395
|
}, [
|
|
4396
|
-
C(
|
|
4396
|
+
C(s, {
|
|
4397
4397
|
id: R(i)(e.schema)
|
|
4398
4398
|
}, {
|
|
4399
4399
|
default: A(() => [
|
|
@@ -4444,33 +4444,33 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4444
4444
|
},
|
|
4445
4445
|
emits: ["modelUpdated"],
|
|
4446
4446
|
setup(e, { expose: t, emit: n }) {
|
|
4447
|
-
const i = e, a = n, o = ka(i, "model"), { getLabelId:
|
|
4447
|
+
const i = e, a = n, o = ka(i, "model"), { getLabelId: r, getFieldID: s, clearValidationErrors: d, value: u } = Ve.useAbstractFields({
|
|
4448
4448
|
model: o,
|
|
4449
4449
|
schema: i.schema,
|
|
4450
4450
|
formOptions: i.formOptions,
|
|
4451
|
-
emitModelUpdated: (
|
|
4452
|
-
a("modelUpdated",
|
|
4451
|
+
emitModelUpdated: (f) => {
|
|
4452
|
+
a("modelUpdated", f.value, f.model);
|
|
4453
4453
|
}
|
|
4454
4454
|
});
|
|
4455
4455
|
t({
|
|
4456
4456
|
clearValidationErrors: d
|
|
4457
4457
|
});
|
|
4458
4458
|
const y = q(() => {
|
|
4459
|
-
var
|
|
4460
|
-
return i.schema.values ? i.schema.values : (p = (
|
|
4459
|
+
var f, p;
|
|
4460
|
+
return i.schema.values ? i.schema.values : (p = (f = i.schema.elements) == null ? void 0 : f.one_of) != null && p.length ? i.schema.elements.one_of.map((T) => ({ label: String(T), value: String(T) })) : [];
|
|
4461
4461
|
});
|
|
4462
|
-
return (
|
|
4462
|
+
return (f, p) => {
|
|
4463
4463
|
const T = j("KMultiselect");
|
|
4464
4464
|
return c(), $(T, {
|
|
4465
|
-
id: R(
|
|
4465
|
+
id: R(s)(e.schema),
|
|
4466
4466
|
modelValue: R(u),
|
|
4467
4467
|
"onUpdate:modelValue": p[0] || (p[0] = (k) => It(u) ? u.value = k : null),
|
|
4468
|
-
"aria-labelledby": R(
|
|
4468
|
+
"aria-labelledby": R(r)(e.schema),
|
|
4469
4469
|
class: ee(e.schema.fieldClasses),
|
|
4470
4470
|
"data-testid": "field-multiselect",
|
|
4471
4471
|
disabled: e.disabled || void 0,
|
|
4472
4472
|
items: y.value,
|
|
4473
|
-
"kpop-attributes": { "data-testid": `${R(
|
|
4473
|
+
"kpop-attributes": { "data-testid": `${R(s)(e.schema)}-items` },
|
|
4474
4474
|
"label-attributes": { info: e.schema.help },
|
|
4475
4475
|
name: e.schema.inputName,
|
|
4476
4476
|
placeholder: e.schema.placeholder,
|
|
@@ -4479,7 +4479,7 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4479
4479
|
}, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
4480
4480
|
};
|
|
4481
4481
|
}
|
|
4482
|
-
}), Rf = { class: "selection-group" }, kf = { class: "form-group horizontal-radios" }, Ff = { class: "radio-group" },
|
|
4482
|
+
}), Rf = { class: "selection-group" }, kf = { class: "form-group horizontal-radios" }, Ff = { class: "radio-group" }, Uf = ["disabled", "value"], Nf = { class: "control-help" }, Lf = {
|
|
4483
4483
|
key: 0,
|
|
4484
4484
|
class: "option-field"
|
|
4485
4485
|
}, Df = { class: "option-field-container" }, Pf = {
|
|
@@ -4537,26 +4537,26 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4537
4537
|
text: R(t)("general.disable_global_radio", { scope: n.scope })
|
|
4538
4538
|
}, {
|
|
4539
4539
|
default: A(() => [
|
|
4540
|
-
|
|
4541
|
-
|
|
4540
|
+
h("div", kf, [
|
|
4541
|
+
h("div", Ff, [
|
|
4542
4542
|
(c(!0), b(Y, null, oe(n.schema.fields, (a, o) => (c(), b("div", {
|
|
4543
4543
|
key: o,
|
|
4544
4544
|
class: ee(["option-group", { "radio-disabled": n.$props.disabled }])
|
|
4545
4545
|
}, [
|
|
4546
|
-
|
|
4546
|
+
h("label", {
|
|
4547
4547
|
class: ee(["k-label", `${a.label}-check`])
|
|
4548
4548
|
}, [
|
|
4549
|
-
Ee(
|
|
4550
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
4549
|
+
Ee(h("input", {
|
|
4550
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => n.checkedGroup = r),
|
|
4551
4551
|
class: "k-input",
|
|
4552
4552
|
disabled: n.$props.disabled,
|
|
4553
4553
|
type: "radio",
|
|
4554
4554
|
value: o
|
|
4555
|
-
}, null, 8,
|
|
4555
|
+
}, null, 8, Uf), [
|
|
4556
4556
|
[zo, n.checkedGroup]
|
|
4557
4557
|
]),
|
|
4558
4558
|
ce(" " + V(a.label) + " ", 1),
|
|
4559
|
-
|
|
4559
|
+
h("div", Nf, V(a.description), 1)
|
|
4560
4560
|
], 2)
|
|
4561
4561
|
], 2))), 128))
|
|
4562
4562
|
])
|
|
@@ -4569,7 +4569,7 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4569
4569
|
class: "option-group"
|
|
4570
4570
|
}, [
|
|
4571
4571
|
n.renderedTrack[o] ? Ee((c(), b("div", Lf, [
|
|
4572
|
-
|
|
4572
|
+
h("div", Df, [
|
|
4573
4573
|
C(ue, {
|
|
4574
4574
|
model: n.model,
|
|
4575
4575
|
options: { helpAsHtml: !0 },
|
|
@@ -4623,18 +4623,18 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4623
4623
|
},
|
|
4624
4624
|
emits: ["modelUpdated"],
|
|
4625
4625
|
setup(e, { expose: t, emit: n }) {
|
|
4626
|
-
const i = e, a = n, { t: o } = ke("en-us", Fe),
|
|
4626
|
+
const i = e, a = n, { t: o } = ke("en-us", Fe), r = (p) => p != null && i.schema.valueOn ? p === i.schema.valueOn : p, s = (p) => p != null && i.schema.valueOn ? p ? i.schema.valueOn : i.schema.valueOff : p, d = ft(i), { getFieldID: u, value: y, clearValidationErrors: f } = Ve.useAbstractFields({
|
|
4627
4627
|
model: d.model,
|
|
4628
4628
|
schema: i.schema,
|
|
4629
4629
|
formOptions: i.formOptions,
|
|
4630
|
-
formatValueToField:
|
|
4631
|
-
formatValueToModel:
|
|
4630
|
+
formatValueToField: r,
|
|
4631
|
+
formatValueToModel: s,
|
|
4632
4632
|
emitModelUpdated: (p) => {
|
|
4633
4633
|
a("modelUpdated", p.value, p.model);
|
|
4634
4634
|
}
|
|
4635
4635
|
});
|
|
4636
4636
|
return t({
|
|
4637
|
-
clearValidationErrors:
|
|
4637
|
+
clearValidationErrors: f
|
|
4638
4638
|
}), (p, T) => {
|
|
4639
4639
|
const k = j("KInputSwitch");
|
|
4640
4640
|
return c(), b("div", jf, [
|
|
@@ -4693,7 +4693,7 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4693
4693
|
},
|
|
4694
4694
|
emits: ["modelUpdated"],
|
|
4695
4695
|
setup(e, { expose: t, emit: n }) {
|
|
4696
|
-
const i = e, a = n, o = ft(i),
|
|
4696
|
+
const i = e, a = n, o = ft(i), r = zt(Le, void 0), { updateModelValue: s, getFieldID: d, clearValidationErrors: u, value: y } = Ve.useAbstractFields({
|
|
4697
4697
|
model: o.model,
|
|
4698
4698
|
schema: i.schema,
|
|
4699
4699
|
formOptions: i.formOptions,
|
|
@@ -4704,8 +4704,8 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4704
4704
|
t({
|
|
4705
4705
|
clearValidationErrors: u
|
|
4706
4706
|
});
|
|
4707
|
-
const
|
|
4708
|
-
y.value = p,
|
|
4707
|
+
const f = (p) => {
|
|
4708
|
+
y.value = p, s(p, p);
|
|
4709
4709
|
};
|
|
4710
4710
|
return (p, T) => {
|
|
4711
4711
|
const k = j("KTextArea");
|
|
@@ -4727,9 +4727,9 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4727
4727
|
resizable: "",
|
|
4728
4728
|
rows: e.schema.rows || 3
|
|
4729
4729
|
}), null, 16, ["id", "modelValue", "character-limit", "class", "disabled", "help", "minlength", "name", "placeholder", "readonly", "required", "rows"]),
|
|
4730
|
-
(c(), $(me(R(
|
|
4730
|
+
(c(), $(me(R(r)), {
|
|
4731
4731
|
schema: e.schema,
|
|
4732
|
-
update:
|
|
4732
|
+
update: f,
|
|
4733
4733
|
value: R(y)
|
|
4734
4734
|
}, null, 8, ["schema", "value"]))
|
|
4735
4735
|
]);
|
|
@@ -4900,11 +4900,11 @@ const Af = /* @__PURE__ */ W(bf, [["render", Mf], ["__scopeId", "data-v-be99d00c
|
|
|
4900
4900
|
class: "errors help-block"
|
|
4901
4901
|
};
|
|
4902
4902
|
function th(e, t, n, i, a, o) {
|
|
4903
|
-
const
|
|
4903
|
+
const r = j("KExternalLink"), s = j("KLabel");
|
|
4904
4904
|
return c(), b("div", {
|
|
4905
4905
|
class: ee(["form-group", e.getFieldRowClasses(n.field)])
|
|
4906
4906
|
}, [
|
|
4907
|
-
o.fieldTypeHasLabel(n.field) ? (c(), $(
|
|
4907
|
+
o.fieldTypeHasLabel(n.field) ? (c(), $(s, {
|
|
4908
4908
|
key: 0,
|
|
4909
4909
|
"aria-describedby": n.field.help ? o.getTooltipId(n.field) : void 0,
|
|
4910
4910
|
class: ee([n.field.labelClasses, "form-group-label"]),
|
|
@@ -4917,15 +4917,15 @@ function th(e, t, n, i, a, o) {
|
|
|
4917
4917
|
} : void 0
|
|
4918
4918
|
}, ei({
|
|
4919
4919
|
default: A(() => [
|
|
4920
|
-
|
|
4921
|
-
|
|
4920
|
+
h("div", Yf, [
|
|
4921
|
+
h("span", null, V(o.formattedLabel(n.field.label)), 1)
|
|
4922
4922
|
]),
|
|
4923
4923
|
n.field.link ? (c(), b("div", Wf, [
|
|
4924
|
-
C(
|
|
4924
|
+
C(r, {
|
|
4925
4925
|
href: n.field.link
|
|
4926
4926
|
}, {
|
|
4927
4927
|
default: A(() => [...t[0] || (t[0] = [
|
|
4928
|
-
|
|
4928
|
+
h("span", { class: "section-header" }, "More info", -1)
|
|
4929
4929
|
])]),
|
|
4930
4930
|
_: 1
|
|
4931
4931
|
}, 8, ["href"])
|
|
@@ -4936,14 +4936,14 @@ function th(e, t, n, i, a, o) {
|
|
|
4936
4936
|
n.options.helpAsHtml && n.field.help ? {
|
|
4937
4937
|
name: "tooltip",
|
|
4938
4938
|
fn: A(() => [
|
|
4939
|
-
|
|
4939
|
+
h("div", {
|
|
4940
4940
|
innerHTML: o.sanitize(n.field.help)
|
|
4941
4941
|
}, null, 8, Gf)
|
|
4942
4942
|
]),
|
|
4943
4943
|
key: "0"
|
|
4944
4944
|
} : void 0
|
|
4945
4945
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : B("", !0),
|
|
4946
|
-
|
|
4946
|
+
h("div", Zf, [
|
|
4947
4947
|
(c(), $(me(o.getFieldComponent(n.field)), Xe(e.$attrs, {
|
|
4948
4948
|
ref: "child",
|
|
4949
4949
|
disabled: e.fieldDisabled(n.field) || null,
|
|
@@ -5023,44 +5023,44 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5023
5023
|
formatter: n,
|
|
5024
5024
|
order: 3
|
|
5025
5025
|
}
|
|
5026
|
-
}, a = e, o = (
|
|
5027
|
-
var T, k, v,
|
|
5026
|
+
}, a = e, o = (f) => f != null, r = (f, p) => o(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: s } = Jo(), d = q(() => Object.entries(a.configFields).map(([f, p]) => {
|
|
5027
|
+
var T, k, v, N;
|
|
5028
5028
|
return {
|
|
5029
|
-
key:
|
|
5030
|
-
label: ((T = i[
|
|
5031
|
-
value: (k = i[
|
|
5032
|
-
type: ((v = i[
|
|
5033
|
-
order: ((
|
|
5029
|
+
key: f,
|
|
5030
|
+
label: ((T = i[f]) == null ? void 0 : T.label) ?? s(f),
|
|
5031
|
+
value: (k = i[f]) != null && k.formatter ? i[f].formatter(p) : p,
|
|
5032
|
+
type: ((v = i[f]) == null ? void 0 : v.type) ?? r(f, p),
|
|
5033
|
+
order: ((N = i[f]) == null ? void 0 : N.order) ?? 100
|
|
5034
5034
|
// attrs: value.attrs,
|
|
5035
5035
|
};
|
|
5036
|
-
}).sort((
|
|
5037
|
-
return (
|
|
5036
|
+
}).sort((f, p) => f.order - p.order).filter((f) => f.type !== "hidden")), u = Ve.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), y = q(() => d.value.concat(u));
|
|
5037
|
+
return (f, p) => {
|
|
5038
5038
|
const T = j("KCopy");
|
|
5039
5039
|
return c(), b("div", rh, [
|
|
5040
|
-
(c(!0), b(Y, null, oe(y.value, ({ key: k, label: v, value:
|
|
5040
|
+
(c(!0), b(Y, null, oe(y.value, ({ key: k, label: v, value: N, type: U }) => (c(), b("div", {
|
|
5041
5041
|
key: k,
|
|
5042
5042
|
class: "partial-config-card-row"
|
|
5043
5043
|
}, [
|
|
5044
|
-
|
|
5045
|
-
|
|
5044
|
+
h("div", sh, [
|
|
5045
|
+
h("div", lh, V(v), 1)
|
|
5046
5046
|
]),
|
|
5047
|
-
|
|
5047
|
+
h("div", {
|
|
5048
5048
|
class: "config-card-row-value",
|
|
5049
5049
|
"data-testid": `${k}-property-value`
|
|
5050
5050
|
}, [
|
|
5051
|
-
o(
|
|
5052
|
-
|
|
5051
|
+
o(N) ? (c(), b("div", ch, [
|
|
5052
|
+
U === "password" ? (c(), b("div", {
|
|
5053
5053
|
key: 0,
|
|
5054
5054
|
"data-testid": `${k}-copy-password`
|
|
5055
5055
|
}, [
|
|
5056
5056
|
C(T, {
|
|
5057
5057
|
format: "redacted",
|
|
5058
|
-
text: String(
|
|
5058
|
+
text: String(N)
|
|
5059
5059
|
}, null, 8, ["text"])
|
|
5060
5060
|
], 8, mh)) : (c(), b("div", {
|
|
5061
5061
|
key: 1,
|
|
5062
5062
|
"data-testid": `${k}-plain-text`
|
|
5063
|
-
}, V(
|
|
5063
|
+
}, V(N), 9, fh))
|
|
5064
5064
|
])) : (c(), b("div", {
|
|
5065
5065
|
key: 0,
|
|
5066
5066
|
"data-testid": `${k}-no-value`
|
|
@@ -5124,28 +5124,28 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5124
5124
|
getOne: "/{workspace}/partials/{id}",
|
|
5125
5125
|
getAll: "/{workspace}/partials"
|
|
5126
5126
|
}
|
|
5127
|
-
}, a = e, o = ne(null), { getMessageFromError:
|
|
5127
|
+
}, a = e, o = ne(null), { getMessageFromError: r } = Qo(), s = zt(ll), {
|
|
5128
5128
|
debouncedQueryChange: d,
|
|
5129
5129
|
loading: u,
|
|
5130
5130
|
error: y,
|
|
5131
|
-
loadItems:
|
|
5131
|
+
loadItems: f,
|
|
5132
5132
|
results: p
|
|
5133
|
-
} = er(
|
|
5133
|
+
} = er(s, i[s.app].getAll, Sh, {
|
|
5134
5134
|
fetchedItemsKey: "data",
|
|
5135
5135
|
searchKeys: ["id", "name"]
|
|
5136
|
-
}), T = q(() => y.value ?
|
|
5136
|
+
}), T = q(() => y.value ? r(y.value) : ""), k = q(
|
|
5137
5137
|
() => a.isCustomPlugin ? t("redis.custom_plugin.tooltip") : t("redis.shared_configuration.tooltip", { type: Ma(a.redisType) })
|
|
5138
5138
|
), v = q(
|
|
5139
5139
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
|
|
5140
|
-
), U = q(
|
|
5141
|
-
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5142
5140
|
), N = q(
|
|
5141
|
+
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5142
|
+
), U = q(
|
|
5143
5143
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: Ma(a.redisType) })
|
|
5144
5144
|
), H = q(
|
|
5145
5145
|
() => T.value || t("redis.shared_configuration.error")
|
|
5146
5146
|
), D = (I) => {
|
|
5147
|
-
let F = `${
|
|
5148
|
-
return
|
|
5147
|
+
let F = `${s.apiBaseUrl}${i[s.app].getOne}`;
|
|
5148
|
+
return s.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "") : s.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "")), F = F.replace(/{id}/gi, String(I)), F;
|
|
5149
5149
|
}, M = q(() => {
|
|
5150
5150
|
const I = (p.value || []).map((F) => {
|
|
5151
5151
|
const m = F, g = a.isKonnectManagedRedisEnabled ? oh(m) : void 0, w = g === wt.KONNECT_MANAGED;
|
|
@@ -5172,7 +5172,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5172
5172
|
label: t("redis.managed_ui.groups.self_managed"),
|
|
5173
5173
|
items: m
|
|
5174
5174
|
}), g;
|
|
5175
|
-
}), { axiosInstance: E } = tr(
|
|
5175
|
+
}), { axiosInstance: E } = tr(s == null ? void 0 : s.axiosRequestConfig), _ = async (I) => {
|
|
5176
5176
|
if (I) {
|
|
5177
5177
|
a.updateRedisModel(I);
|
|
5178
5178
|
try {
|
|
@@ -5187,13 +5187,13 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5187
5187
|
}
|
|
5188
5188
|
};
|
|
5189
5189
|
return Wt(() => n == null ? void 0 : n.value, async (I) => {
|
|
5190
|
-
I && await
|
|
5190
|
+
I && await f();
|
|
5191
5191
|
}), ni(() => {
|
|
5192
|
-
|
|
5192
|
+
f(), a.defaultRedisConfigItem && _(a.defaultRedisConfigItem);
|
|
5193
5193
|
}), (I, F) => {
|
|
5194
5194
|
const m = j("KLabel"), g = j("KBadge"), w = j("KSelect");
|
|
5195
5195
|
return c(), b(Y, null, [
|
|
5196
|
-
|
|
5196
|
+
h("div", gh, [
|
|
5197
5197
|
C(m, {
|
|
5198
5198
|
info: k.value,
|
|
5199
5199
|
"tooltip-attributes": {
|
|
@@ -5206,7 +5206,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5206
5206
|
]),
|
|
5207
5207
|
_: 1
|
|
5208
5208
|
}, 8, ["info"]),
|
|
5209
|
-
F[2] || (F[2] =
|
|
5209
|
+
F[2] || (F[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
5210
5210
|
C(w, {
|
|
5211
5211
|
class: "redis-config-select-trigger",
|
|
5212
5212
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -5215,19 +5215,19 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5215
5215
|
items: O.value,
|
|
5216
5216
|
loading: R(u),
|
|
5217
5217
|
"model-value": e.defaultRedisConfigItem,
|
|
5218
|
-
placeholder:
|
|
5218
|
+
placeholder: N.value,
|
|
5219
5219
|
onChange: F[1] || (F[1] = (L) => _(L == null ? void 0 : L.value)),
|
|
5220
5220
|
onQueryChange: R(d)
|
|
5221
5221
|
}, {
|
|
5222
5222
|
"selected-item-template": A(({ item: L }) => [
|
|
5223
|
-
|
|
5223
|
+
h("div", yh, V(L.name), 1)
|
|
5224
5224
|
]),
|
|
5225
5225
|
"item-template": A(({ item: L }) => [
|
|
5226
|
-
|
|
5226
|
+
h("div", {
|
|
5227
5227
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
5228
5228
|
"data-testid": `redis-configuration-dropdown-item-${L.name}`
|
|
5229
5229
|
}, [
|
|
5230
|
-
|
|
5230
|
+
h("span", bh, V(L.name), 1),
|
|
5231
5231
|
L.tag ? (c(), $(g, {
|
|
5232
5232
|
key: 0,
|
|
5233
5233
|
appearance: "info",
|
|
@@ -5241,16 +5241,16 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5241
5241
|
], 8, vh)
|
|
5242
5242
|
]),
|
|
5243
5243
|
empty: A(() => [
|
|
5244
|
-
|
|
5244
|
+
h("div", _h, V(R(t)("redis.shared_configuration.empty_state")), 1)
|
|
5245
5245
|
]),
|
|
5246
5246
|
"dropdown-footer-text": A(() => [
|
|
5247
|
-
|
|
5247
|
+
h("div", {
|
|
5248
5248
|
class: "new-redis-config-area",
|
|
5249
5249
|
"data-testid": "new-redis-config-area",
|
|
5250
5250
|
onClick: F[0] || (F[0] = (L) => I.$emit("showNewPartialModal"))
|
|
5251
5251
|
}, [
|
|
5252
5252
|
C(R(ii), { size: R(qc) }, null, 8, ["size"]),
|
|
5253
|
-
|
|
5253
|
+
h("span", null, V(U.value), 1)
|
|
5254
5254
|
])
|
|
5255
5255
|
]),
|
|
5256
5256
|
_: 1
|
|
@@ -5329,30 +5329,30 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5329
5329
|
setup(e, { emit: t }) {
|
|
5330
5330
|
const n = e, i = t, { t: a } = ke("en-us", Fe), o = q(
|
|
5331
5331
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.title") : a("redis.title")
|
|
5332
|
-
), s = q(
|
|
5333
|
-
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.shared_configuration.description") : a("redis.shared_configuration.description")
|
|
5334
5332
|
), r = q(
|
|
5333
|
+
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.shared_configuration.description") : a("redis.shared_configuration.description")
|
|
5334
|
+
), s = q(
|
|
5335
5335
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.shared_configuration.label") : a("redis.shared_configuration.label")
|
|
5336
5336
|
), d = q(
|
|
5337
5337
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.description") : a("redis.dedicated_configuration.description")
|
|
5338
5338
|
), u = q(
|
|
5339
5339
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
|
|
5340
|
-
), y = q(() => n.field.pluginType === "custom"),
|
|
5340
|
+
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), T = ne({}), k = ne(), v = (M) => X(M.visible) ? M.visible.call(this, n.model, M, this) : de(M.visible) ? !0 : M.visible, N = async (M) => {
|
|
5341
5341
|
i("modelUpdated", [{ id: M, path: n.redisPath }], "partials"), k.value = [{ id: M, path: n.redisPath }], p.value = M;
|
|
5342
|
-
},
|
|
5342
|
+
}, U = (M, O) => {
|
|
5343
5343
|
T.value = { ...T.value, [O]: M }, i("modelUpdated", M, O);
|
|
5344
5344
|
}, H = () => {
|
|
5345
5345
|
i("refreshModel");
|
|
5346
5346
|
}, D = (M, O, E) => {
|
|
5347
5347
|
i("validated", M, O, E);
|
|
5348
5348
|
};
|
|
5349
|
-
return Wt(() =>
|
|
5349
|
+
return Wt(() => f.value, (M) => {
|
|
5350
5350
|
M ? k.value && i("partialToggled", "redis", { partials: k.value }) : i("partialToggled", "partials", T.value);
|
|
5351
5351
|
}), ni(() => {
|
|
5352
5352
|
var M, O, E;
|
|
5353
5353
|
if (n.model && (T.value = n.field.fields.reduce((_, I) => (Object.keys(n.model).includes(I.model) && (_[I.model] = n.model[I.model]), _), {})), (E = (O = (M = n == null ? void 0 : n.model) == null ? void 0 : M.partials) == null ? void 0 : O[0]) != null && E.id) {
|
|
5354
5354
|
const _ = n.model.partials[0].id;
|
|
5355
|
-
|
|
5355
|
+
f.value = !0, p.value = _;
|
|
5356
5356
|
}
|
|
5357
5357
|
}), (M, O) => {
|
|
5358
5358
|
const E = j("KAlert"), _ = j("KBadge"), I = j("KRadio"), F = j("KCard");
|
|
@@ -5367,7 +5367,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5367
5367
|
"is-custom-plugin": "",
|
|
5368
5368
|
"is-konnect-managed-redis-enabled": e.isKonnectManagedRedisEnabled,
|
|
5369
5369
|
"plugin-redis-fields": e.field.fields,
|
|
5370
|
-
"update-redis-model":
|
|
5370
|
+
"update-redis-model": N,
|
|
5371
5371
|
onShowNewPartialModal: O[0] || (O[0] = (m) => M.$emit("showNewPartialModal"))
|
|
5372
5372
|
}, null, 8, ["default-redis-config-item", "is-konnect-managed-redis-enabled", "plugin-redis-fields"])
|
|
5373
5373
|
])) : (c(), $(F, {
|
|
@@ -5377,15 +5377,15 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5377
5377
|
title: o.value
|
|
5378
5378
|
}, {
|
|
5379
5379
|
default: A(() => [
|
|
5380
|
-
|
|
5380
|
+
h("div", Mh, [
|
|
5381
5381
|
C(I, {
|
|
5382
|
-
modelValue:
|
|
5383
|
-
"onUpdate:modelValue": O[1] || (O[1] = (m) =>
|
|
5382
|
+
modelValue: f.value,
|
|
5383
|
+
"onUpdate:modelValue": O[1] || (O[1] = (m) => f.value = m),
|
|
5384
5384
|
card: "",
|
|
5385
5385
|
"card-orientation": "horizontal",
|
|
5386
5386
|
"data-testid": "shared-redis-config-radio",
|
|
5387
|
-
description:
|
|
5388
|
-
label:
|
|
5387
|
+
description: r.value,
|
|
5388
|
+
label: s.value,
|
|
5389
5389
|
"selected-value": !0
|
|
5390
5390
|
}, {
|
|
5391
5391
|
default: A(() => [
|
|
@@ -5402,8 +5402,8 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5402
5402
|
_: 1
|
|
5403
5403
|
}, 8, ["modelValue", "description", "label"]),
|
|
5404
5404
|
C(I, {
|
|
5405
|
-
modelValue:
|
|
5406
|
-
"onUpdate:modelValue": O[2] || (O[2] = (m) =>
|
|
5405
|
+
modelValue: f.value,
|
|
5406
|
+
"onUpdate:modelValue": O[2] || (O[2] = (m) => f.value = m),
|
|
5407
5407
|
card: "",
|
|
5408
5408
|
"card-orientation": "horizontal",
|
|
5409
5409
|
"data-testid": "dedicated-redis-config-radio",
|
|
@@ -5412,17 +5412,17 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5412
5412
|
"selected-value": !1
|
|
5413
5413
|
}, null, 8, ["modelValue", "description", "label"])
|
|
5414
5414
|
]),
|
|
5415
|
-
|
|
5415
|
+
f.value ? (c(), b("div", Ah, [
|
|
5416
5416
|
C(Aa, {
|
|
5417
5417
|
"default-redis-config-item": p.value,
|
|
5418
5418
|
"is-konnect-managed-redis-enabled": e.isKonnectManagedRedisEnabled,
|
|
5419
5419
|
"plugin-redis-fields": e.field.fields,
|
|
5420
5420
|
"redis-type": e.field.redisType,
|
|
5421
|
-
"update-redis-model":
|
|
5421
|
+
"update-redis-model": N,
|
|
5422
5422
|
onShowNewPartialModal: O[3] || (O[3] = (m) => M.$emit("showNewPartialModal"))
|
|
5423
5423
|
}, null, 8, ["default-redis-config-item", "is-konnect-managed-redis-enabled", "plugin-redis-fields", "redis-type"])
|
|
5424
5424
|
])) : (c(), b("div", Ih, [
|
|
5425
|
-
|
|
5425
|
+
h("div", Ch, V(R(a)("redis.dedicated_configuration.title")), 1),
|
|
5426
5426
|
(c(), $(me(e.tag), null, {
|
|
5427
5427
|
default: A(() => [
|
|
5428
5428
|
(c(!0), b(Y, null, oe(e.field.fields, (m) => (c(), b(Y, {
|
|
@@ -5437,7 +5437,7 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5437
5437
|
model: e.model,
|
|
5438
5438
|
options: e.options,
|
|
5439
5439
|
vfg: e.vfg,
|
|
5440
|
-
onModelUpdated:
|
|
5440
|
+
onModelUpdated: U,
|
|
5441
5441
|
onRefreshModel: H,
|
|
5442
5442
|
onValidated: D
|
|
5443
5443
|
}, null, 8, ["errors", "field", "model", "options", "vfg"])) : B("", !0)
|
|
@@ -5601,16 +5601,16 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5601
5601
|
});
|
|
5602
5602
|
const i = (a) => {
|
|
5603
5603
|
const o = [];
|
|
5604
|
-
Se(a, (
|
|
5605
|
-
Array.isArray(
|
|
5604
|
+
Se(a, (s, d) => {
|
|
5605
|
+
Array.isArray(s) && s.length > 0 && Se(s, (u) => {
|
|
5606
5606
|
o.push({
|
|
5607
5607
|
field: t[d].schema,
|
|
5608
5608
|
error: u
|
|
5609
5609
|
});
|
|
5610
5610
|
});
|
|
5611
5611
|
}), this.errors = o;
|
|
5612
|
-
const
|
|
5613
|
-
return this.$emit("validated",
|
|
5612
|
+
const r = o.length === 0;
|
|
5613
|
+
return this.$emit("validated", r, o, this), e ? o : r;
|
|
5614
5614
|
};
|
|
5615
5615
|
return e ? Promise.all(n).then(i) : i(n);
|
|
5616
5616
|
},
|
|
@@ -5624,16 +5624,16 @@ const rh = { class: "partial-config-card" }, sh = { class: "config-card-row-labe
|
|
|
5624
5624
|
}, Fh = {
|
|
5625
5625
|
key: 0,
|
|
5626
5626
|
class: "vue-form-generator"
|
|
5627
|
-
},
|
|
5628
|
-
function
|
|
5629
|
-
const
|
|
5627
|
+
}, Uh = { key: 0 };
|
|
5628
|
+
function Nh(e, t, n, i, a, o) {
|
|
5629
|
+
const r = j("form-redis"), s = j("form-group"), d = j("KCollapse");
|
|
5630
5630
|
return n.schema != null ? (c(), b("div", Fh, [
|
|
5631
5631
|
n.schema.fields ? (c(), $(me(n.tag), { key: 0 }, {
|
|
5632
5632
|
default: A(() => [
|
|
5633
5633
|
(c(!0), b(Y, null, oe(o.fields, (u) => (c(), b(Y, {
|
|
5634
5634
|
key: u.model
|
|
5635
5635
|
}, [
|
|
5636
|
-
u.model === "__redis_partial" && n.enableRedisPartial ? (c(), $(
|
|
5636
|
+
u.model === "__redis_partial" && n.enableRedisPartial ? (c(), $(r, {
|
|
5637
5637
|
key: 0,
|
|
5638
5638
|
errors: a.errors,
|
|
5639
5639
|
field: u,
|
|
@@ -5647,7 +5647,7 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5647
5647
|
onPartialToggled: o.onPartialToggled,
|
|
5648
5648
|
onShowNewPartialModal: (y) => e.$emit("showNewPartialModal", u.redisType),
|
|
5649
5649
|
onValidated: o.onFieldValidated
|
|
5650
|
-
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(u) ? (c(), $(
|
|
5650
|
+
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(u) ? (c(), $(s, {
|
|
5651
5651
|
key: 1,
|
|
5652
5652
|
ref_for: !0,
|
|
5653
5653
|
ref: "children",
|
|
@@ -5674,9 +5674,9 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5674
5674
|
title: u.collapsible.title
|
|
5675
5675
|
}, ei({
|
|
5676
5676
|
default: A(() => {
|
|
5677
|
-
var
|
|
5677
|
+
var f, p, T, k;
|
|
5678
5678
|
return [
|
|
5679
|
-
(
|
|
5679
|
+
(f = u.slots) != null && f.beforeContent ? Ce(e.$slots, (p = u.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : B("", !0),
|
|
5680
5680
|
u.fields.length === 0 && ((T = u.slots) != null && T.emptyState) ? Ce(e.$slots, (k = u.slots) == null ? void 0 : k.emptyState, { key: 1 }) : (c(), $(me(n.tag), {
|
|
5681
5681
|
key: 2,
|
|
5682
5682
|
class: ee(e.getFieldRowClasses(u))
|
|
@@ -5685,7 +5685,7 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5685
5685
|
(c(!0), b(Y, null, oe(u.fields, (v) => (c(), b(Y, {
|
|
5686
5686
|
key: v.model
|
|
5687
5687
|
}, [
|
|
5688
|
-
o.fieldVisible(v) ? (c(), $(
|
|
5688
|
+
o.fieldVisible(v) ? (c(), $(s, {
|
|
5689
5689
|
key: 0,
|
|
5690
5690
|
ref_for: !0,
|
|
5691
5691
|
ref: "children",
|
|
@@ -5718,7 +5718,7 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5718
5718
|
(c(!0), b(Y, null, oe(u.collapsible.nestedCollapsible.fields, (v) => (c(), b(Y, {
|
|
5719
5719
|
key: v.model
|
|
5720
5720
|
}, [
|
|
5721
|
-
v.model === "__redis_partial" && n.enableRedisPartial ? (c(), $(
|
|
5721
|
+
v.model === "__redis_partial" && n.enableRedisPartial ? (c(), $(r, {
|
|
5722
5722
|
key: 0,
|
|
5723
5723
|
errors: a.errors,
|
|
5724
5724
|
field: v,
|
|
@@ -5730,9 +5730,9 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5730
5730
|
vfg: a.vfg,
|
|
5731
5731
|
onModelUpdated: o.onModelUpdated,
|
|
5732
5732
|
onPartialToggled: o.onPartialToggled,
|
|
5733
|
-
onShowNewPartialModal: (
|
|
5733
|
+
onShowNewPartialModal: (N) => e.$emit("showNewPartialModal", v.redisType),
|
|
5734
5734
|
onValidated: o.onFieldValidated
|
|
5735
|
-
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(v) ? (c(), $(
|
|
5735
|
+
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(v) ? (c(), $(s, {
|
|
5736
5736
|
key: 1,
|
|
5737
5737
|
ref_for: !0,
|
|
5738
5738
|
ref: "children",
|
|
@@ -5768,16 +5768,16 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5768
5768
|
class: ee(e.getFieldRowClasses(u))
|
|
5769
5769
|
}, {
|
|
5770
5770
|
default: A(() => [
|
|
5771
|
-
u.legend ? (c(), b("legend",
|
|
5772
|
-
(c(!0), b(Y, null, oe(u.fields, (
|
|
5773
|
-
key:
|
|
5771
|
+
u.legend ? (c(), b("legend", Uh, V(u.legend), 1)) : B("", !0),
|
|
5772
|
+
(c(!0), b(Y, null, oe(u.fields, (f) => (c(), b(Y, {
|
|
5773
|
+
key: f.model
|
|
5774
5774
|
}, [
|
|
5775
|
-
o.fieldVisible(
|
|
5775
|
+
o.fieldVisible(f) ? (c(), $(s, {
|
|
5776
5776
|
key: 0,
|
|
5777
5777
|
ref_for: !0,
|
|
5778
5778
|
ref: "children",
|
|
5779
5779
|
errors: a.errors,
|
|
5780
|
-
field:
|
|
5780
|
+
field: f,
|
|
5781
5781
|
model: n.model,
|
|
5782
5782
|
options: n.options,
|
|
5783
5783
|
vfg: a.vfg,
|
|
@@ -5792,7 +5792,7 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5792
5792
|
], 64))), 128))
|
|
5793
5793
|
])) : B("", !0);
|
|
5794
5794
|
}
|
|
5795
|
-
const ue = /* @__PURE__ */ W(kh, [["render",
|
|
5795
|
+
const ue = /* @__PURE__ */ W(kh, [["render", Nh]]), jt = {
|
|
5796
5796
|
openIdConnectDocs: "https://developer.konghq.com/plugins/openid-connect/",
|
|
5797
5797
|
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
5798
5798
|
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
@@ -5914,45 +5914,45 @@ const ue = /* @__PURE__ */ W(kh, [["render", Uh]]), jt = {
|
|
|
5914
5914
|
var e;
|
|
5915
5915
|
if (!this.init) {
|
|
5916
5916
|
this.init = !0, this.globalFields = {
|
|
5917
|
-
fields: this.formSchema.fields.filter((
|
|
5917
|
+
fields: this.formSchema.fields.filter((o) => !o.model.startsWith("config") && o.model !== "tags")
|
|
5918
5918
|
};
|
|
5919
|
-
const t = this.formSchema.fields.reduce((
|
|
5919
|
+
const t = this.formSchema.fields.reduce((o, r) => (o[r.model] = r, o), {});
|
|
5920
5920
|
this.commonFieldsSchema = {
|
|
5921
|
-
fields: Array.from(Ia).reduce((
|
|
5921
|
+
fields: Array.from(Ia).reduce((o, r) => (t[r] && o.push(t[r]), o), [])
|
|
5922
5922
|
}, this.authFieldsSchema = {
|
|
5923
|
-
fields: Array.from(Ca).reduce((
|
|
5923
|
+
fields: Array.from(Ca).reduce((o, r) => (t[r] && o.push(t[r]), o), [])
|
|
5924
5924
|
};
|
|
5925
5925
|
const { redis: n, redisModels: i } = Ve.useRedisPartial(this.formSchema);
|
|
5926
5926
|
this.advancedFieldsSchema = {
|
|
5927
5927
|
fields: this.formSchema.fields.filter(
|
|
5928
|
-
(
|
|
5929
|
-
).reduce((
|
|
5930
|
-
var s,
|
|
5931
|
-
switch (
|
|
5928
|
+
(o) => o.model.startsWith("config") && o.model !== "config-auth_methods" && !Ia.has(o.model) && !Ca.has(o.model) && (!this.enableRedisPartial || !i.includes(o.model)) || o.model === "tags"
|
|
5929
|
+
).reduce((o, r) => {
|
|
5930
|
+
var s, d, u, y;
|
|
5931
|
+
switch (r.model) {
|
|
5932
5932
|
case "config-client_jwk": {
|
|
5933
|
-
if (Array.isArray((
|
|
5934
|
-
for (const
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
...
|
|
5933
|
+
if (Array.isArray((d = (s = r.items) == null ? void 0 : s.schema) == null ? void 0 : d.fields))
|
|
5934
|
+
for (const f of r.items.schema.fields)
|
|
5935
|
+
f.label = f.model;
|
|
5936
|
+
o.push({
|
|
5937
|
+
...r,
|
|
5938
5938
|
link: this.openIdConnectJWKLink,
|
|
5939
5939
|
newElementButtonLabel: "+ Add Client JWK",
|
|
5940
|
-
...Array.isArray((
|
|
5940
|
+
...Array.isArray((y = (u = r.items) == null ? void 0 : u.schema) == null ? void 0 : y.fields) && r.items.schema.fields.map((f) => ({ ...f, label: f.model }))
|
|
5941
5941
|
});
|
|
5942
5942
|
break;
|
|
5943
5943
|
}
|
|
5944
5944
|
case "config-session_redis_cluster_nodes": {
|
|
5945
|
-
|
|
5946
|
-
...
|
|
5945
|
+
o.push({
|
|
5946
|
+
...r,
|
|
5947
5947
|
link: this.openIdConnectClusterNodesLink,
|
|
5948
5948
|
newElementButtonLabel: "+ Add Cluster Node"
|
|
5949
5949
|
});
|
|
5950
5950
|
break;
|
|
5951
5951
|
}
|
|
5952
5952
|
default:
|
|
5953
|
-
|
|
5953
|
+
o.push(r);
|
|
5954
5954
|
}
|
|
5955
|
-
return
|
|
5955
|
+
return o;
|
|
5956
5956
|
}, [])
|
|
5957
5957
|
}, this.enableRedisPartial && this.advancedFieldsSchema.fields.unshift(n), this.sessionManagement = this.formModel["config-auth_methods"].includes("session"), this.authMethods = [
|
|
5958
5958
|
{
|
|
@@ -6004,11 +6004,16 @@ const ue = /* @__PURE__ */ W(kh, [["render", Uh]]), jt = {
|
|
|
6004
6004
|
prop: this.formModel["config-auth_methods"].includes("refresh_token")
|
|
6005
6005
|
}
|
|
6006
6006
|
];
|
|
6007
|
-
for (const
|
|
6008
|
-
for (const
|
|
6009
|
-
const s = (e = t[
|
|
6010
|
-
|
|
6007
|
+
for (const o of [this.commonFieldsSchema, this.authFieldsSchema, this.advancedFieldsSchema])
|
|
6008
|
+
for (const r of o.fields) {
|
|
6009
|
+
const s = (e = t[r.model]) == null ? void 0 : e.help;
|
|
6010
|
+
r.help === void 0 && typeof s == "string" && (r.help = s);
|
|
6011
6011
|
}
|
|
6012
|
+
const a = this.formModel["config-consumer_claim"];
|
|
6013
|
+
if (a != null && a !== "" && (!this.formModel["config-consumer_claims"] || this.formModel["config-consumer_claims"].length === 0)) {
|
|
6014
|
+
const o = Array.isArray(a) ? a : [a];
|
|
6015
|
+
this.formModel["config-consumer_claims"] = [o], this.onModelUpdated();
|
|
6016
|
+
}
|
|
6012
6017
|
}
|
|
6013
6018
|
},
|
|
6014
6019
|
getAuthMethodsValue(e, t) {
|
|
@@ -6023,9 +6028,9 @@ const ue = /* @__PURE__ */ W(kh, [["render", Uh]]), jt = {
|
|
|
6023
6028
|
}
|
|
6024
6029
|
}, Dh = { class: "general-settings" }, Ph = { class: "link-wrapper" }, $h = { class: "auth-method-container" }, Vh = { class: "general-settings" }, jh = { class: "link-wrapper" }, Kh = { class: "general-settings" }, xh = { class: "link-wrapper" };
|
|
6025
6030
|
function qh(e, t, n, i, a, o) {
|
|
6026
|
-
const
|
|
6031
|
+
const r = j("VueFormGenerator"), s = j("KExternalLink"), d = j("KLabel"), u = j("KCheckbox"), y = j("KInputSwitch"), f = j("KTabs");
|
|
6027
6032
|
return c(), b("div", null, [
|
|
6028
|
-
n.formModel.id && n.isEditing || !n.isEditing ? (c(), $(
|
|
6033
|
+
n.formModel.id && n.isEditing || !n.isEditing ? (c(), $(r, {
|
|
6029
6034
|
key: 0,
|
|
6030
6035
|
class: "global-fields",
|
|
6031
6036
|
model: n.formModel,
|
|
@@ -6033,19 +6038,19 @@ function qh(e, t, n, i, a, o) {
|
|
|
6033
6038
|
schema: a.globalFields,
|
|
6034
6039
|
onModelUpdated: n.onModelUpdated
|
|
6035
6040
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6036
|
-
C(
|
|
6041
|
+
C(f, { tabs: a.tabs }, {
|
|
6037
6042
|
common: A(() => [
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
C(
|
|
6043
|
+
h("div", Dh, [
|
|
6044
|
+
h("div", Ph, [
|
|
6045
|
+
C(s, { href: a.openIdConfigurationDocs }, {
|
|
6041
6046
|
default: A(() => [...t[2] || (t[2] = [
|
|
6042
|
-
|
|
6047
|
+
h("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
6043
6048
|
])]),
|
|
6044
6049
|
_: 1
|
|
6045
6050
|
}, 8, ["href"])
|
|
6046
6051
|
]),
|
|
6047
|
-
t[4] || (t[4] =
|
|
6048
|
-
o.displayForm ? (c(), $(
|
|
6052
|
+
t[4] || (t[4] = h("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
|
|
6053
|
+
o.displayForm ? (c(), $(r, {
|
|
6049
6054
|
key: 0,
|
|
6050
6055
|
model: n.formModel,
|
|
6051
6056
|
options: n.formOptions,
|
|
@@ -6058,7 +6063,7 @@ function qh(e, t, n, i, a, o) {
|
|
|
6058
6063
|
])]),
|
|
6059
6064
|
_: 1
|
|
6060
6065
|
}),
|
|
6061
|
-
|
|
6066
|
+
h("div", $h, [
|
|
6062
6067
|
(c(!0), b(Y, null, oe(a.authMethods, (p) => (c(), b("div", {
|
|
6063
6068
|
key: p.value,
|
|
6064
6069
|
class: "auth-method"
|
|
@@ -6084,17 +6089,17 @@ function qh(e, t, n, i, a, o) {
|
|
|
6084
6089
|
])
|
|
6085
6090
|
]),
|
|
6086
6091
|
authorization: A(() => [
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
C(
|
|
6092
|
+
h("div", Vh, [
|
|
6093
|
+
h("div", jh, [
|
|
6094
|
+
C(s, { href: a.openIdAuthorizationDocs }, {
|
|
6090
6095
|
default: A(() => [...t[5] || (t[5] = [
|
|
6091
|
-
|
|
6096
|
+
h("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
6092
6097
|
])]),
|
|
6093
6098
|
_: 1
|
|
6094
6099
|
}, 8, ["href"])
|
|
6095
6100
|
]),
|
|
6096
|
-
t[6] || (t[6] =
|
|
6097
|
-
o.displayForm ? (c(), $(
|
|
6101
|
+
t[6] || (t[6] = h("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
|
|
6102
|
+
o.displayForm ? (c(), $(r, {
|
|
6098
6103
|
key: 0,
|
|
6099
6104
|
model: n.formModel,
|
|
6100
6105
|
options: n.formOptions,
|
|
@@ -6109,17 +6114,17 @@ function qh(e, t, n, i, a, o) {
|
|
|
6109
6114
|
])
|
|
6110
6115
|
]),
|
|
6111
6116
|
advanced: A(() => [
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
C(
|
|
6117
|
+
h("div", Kh, [
|
|
6118
|
+
h("div", xh, [
|
|
6119
|
+
C(s, { href: a.openIdConnectLink }, {
|
|
6115
6120
|
default: A(() => [...t[7] || (t[7] = [
|
|
6116
|
-
|
|
6121
|
+
h("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
6117
6122
|
])]),
|
|
6118
6123
|
_: 1
|
|
6119
6124
|
}, 8, ["href"])
|
|
6120
6125
|
]),
|
|
6121
|
-
t[8] || (t[8] =
|
|
6122
|
-
o.displayForm ? (c(), $(
|
|
6126
|
+
t[8] || (t[8] = h("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
|
|
6127
|
+
o.displayForm ? (c(), $(r, {
|
|
6123
6128
|
key: 0,
|
|
6124
6129
|
"enable-redis-partial": n.enableRedisPartial,
|
|
6125
6130
|
"is-editing": n.isEditing,
|
|
@@ -6137,7 +6142,7 @@ function qh(e, t, n, i, a, o) {
|
|
|
6137
6142
|
}, 8, ["tabs"])
|
|
6138
6143
|
]);
|
|
6139
6144
|
}
|
|
6140
|
-
const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-
|
|
6145
|
+
const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-681792ad"]]), zh = /* @__PURE__ */ fe({
|
|
6141
6146
|
__name: "PostFunction",
|
|
6142
6147
|
props: {
|
|
6143
6148
|
formModel: {
|
|
@@ -6163,16 +6168,16 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6163
6168
|
}
|
|
6164
6169
|
},
|
|
6165
6170
|
setup(e) {
|
|
6166
|
-
var
|
|
6167
|
-
Yt(Le, (
|
|
6171
|
+
var r;
|
|
6172
|
+
Yt(Le, (r = pn()) == null ? void 0 : r[Ot]);
|
|
6168
6173
|
const { t, te: n } = ke("en-us", Fe), i = e, a = q(() => i.formModel.id && i.isEditing || !i.isEditing), o = q(() => {
|
|
6169
|
-
const
|
|
6170
|
-
return
|
|
6174
|
+
const s = i.formSchema;
|
|
6175
|
+
return s.fields.map((d) => {
|
|
6171
6176
|
const u = `post-function.${d.model}`;
|
|
6172
6177
|
return d.hint = n(`${u}.hint`) && t(`${u}.hint`) || d.hint, d.help = n(`${u}.help`) && t(`${u}.help`) || d.help, d.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || d.newElementButtonLabel, d.model !== "tags" && (d.valueType === "array" || d.type === "array") && (d.type = "array", d.valueArrayType = "array", d.itemContainerComponent = "FieldArrayItem", d.fieldClasses = "post-function-array-item-container", d.fieldItemsClasses = "post-function-array-item", d.inputAttributes = { ...d.inputAttributes, type: "textarea" }), d;
|
|
6173
|
-
}),
|
|
6178
|
+
}), s;
|
|
6174
6179
|
});
|
|
6175
|
-
return (
|
|
6180
|
+
return (s, d) => a.value ? (c(), $(ue, {
|
|
6176
6181
|
key: 0,
|
|
6177
6182
|
model: e.formModel,
|
|
6178
6183
|
options: e.formOptions,
|
|
@@ -6206,16 +6211,16 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6206
6211
|
}
|
|
6207
6212
|
},
|
|
6208
6213
|
setup(e) {
|
|
6209
|
-
var
|
|
6210
|
-
Yt(Le, (
|
|
6214
|
+
var r;
|
|
6215
|
+
Yt(Le, (r = pn()) == null ? void 0 : r[Ot]);
|
|
6211
6216
|
const { t, te: n } = ke("en-us", Fe), i = e, a = q(() => i.formModel.id && i.isEditing || !i.isEditing), o = q(() => {
|
|
6212
|
-
const
|
|
6213
|
-
return
|
|
6217
|
+
const s = i.formSchema;
|
|
6218
|
+
return s.fields.map((d) => {
|
|
6214
6219
|
const u = `exit-transformer.${d.model}`;
|
|
6215
6220
|
return d.hint = n(`${u}.hint`) && t(`${u}.hint`) || d.hint, d.help = n(`${u}.help`) && t(`${u}.help`) || d.help, d.newElementButtonLabel = n(`${u}.newElementButtonLabel`) && t(`${u}.newElementButtonLabel`) || d.newElementButtonLabel, d.model !== "tags" && (d.valueType === "array" || d.type === "array") && (d.type = "array", d.valueArrayType = "array", d.itemContainerComponent = "FieldArrayItem", d.fieldClasses = "exit-transformer-array-item-container", d.fieldItemsClasses = "exit-transformer-array-item", d.inputAttributes = { ...d.inputAttributes, type: "textarea" }), d;
|
|
6216
|
-
}),
|
|
6221
|
+
}), s;
|
|
6217
6222
|
});
|
|
6218
|
-
return (
|
|
6223
|
+
return (s, d) => a.value ? (c(), $(ue, {
|
|
6219
6224
|
key: 0,
|
|
6220
6225
|
model: e.formModel,
|
|
6221
6226
|
options: e.formOptions,
|
|
@@ -6354,7 +6359,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6354
6359
|
I.help === void 0 && typeof F == "string" && (I.help = F);
|
|
6355
6360
|
}
|
|
6356
6361
|
return E;
|
|
6357
|
-
}),
|
|
6362
|
+
}), r = q(() => {
|
|
6358
6363
|
var _;
|
|
6359
6364
|
const E = Ze(Zh);
|
|
6360
6365
|
for (const I of E.fields) {
|
|
@@ -6362,7 +6367,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6362
6367
|
I.help === void 0 && typeof F == "string" && (I.help = F);
|
|
6363
6368
|
}
|
|
6364
6369
|
return E;
|
|
6365
|
-
}),
|
|
6370
|
+
}), s = q(() => {
|
|
6366
6371
|
var _;
|
|
6367
6372
|
const E = Ze(Xh);
|
|
6368
6373
|
for (const I of E.fields) {
|
|
@@ -6374,11 +6379,11 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6374
6379
|
fields: t.formSchema.fields.filter((E) => !E.model.startsWith("config") && E.model !== "tags")
|
|
6375
6380
|
})), u = q(() => ({
|
|
6376
6381
|
fields: o.value.fields.filter(
|
|
6377
|
-
(_) => !
|
|
6382
|
+
(_) => !r.value.fields.some((I) => I.model === _.model) && !s.value.fields.some((I) => I.model === _.model)
|
|
6378
6383
|
)
|
|
6379
6384
|
})), y = q(() => ({
|
|
6380
6385
|
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"))
|
|
6381
|
-
})),
|
|
6386
|
+
})), f = q(() => ({
|
|
6382
6387
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-consul"))
|
|
6383
6388
|
})), p = q(() => ({
|
|
6384
6389
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-redis"))
|
|
@@ -6388,7 +6393,7 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6388
6393
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config-storage_config-vault"))
|
|
6389
6394
|
})), v = q(() => ({
|
|
6390
6395
|
fields: t.formSchema.fields.filter((E) => E.model.startsWith("config") && !u.value.fields.filter((_) => _.model === E.model).length && !y.value.fields.filter((_) => _.model === E.model).length || E.model === "tags")
|
|
6391
|
-
})),
|
|
6396
|
+
})), N = q(() => t.formModel.id && t.isEditing || !t.isEditing), U = [
|
|
6392
6397
|
{
|
|
6393
6398
|
hash: "#general",
|
|
6394
6399
|
title: "General"
|
|
@@ -6435,64 +6440,64 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6435
6440
|
schema: d.value,
|
|
6436
6441
|
onModelUpdated: e.onModelUpdated
|
|
6437
6442
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6438
|
-
C(F, { tabs:
|
|
6443
|
+
C(F, { tabs: U }, {
|
|
6439
6444
|
general: A(() => [
|
|
6440
|
-
|
|
6441
|
-
_[0] || (_[0] =
|
|
6442
|
-
|
|
6445
|
+
h("div", Jh, [
|
|
6446
|
+
_[0] || (_[0] = h("div", { class: "header-wrapper" }, [
|
|
6447
|
+
h("span", { class: "section-header" }, "General Configuration Settings")
|
|
6443
6448
|
], -1)),
|
|
6444
|
-
_[1] || (_[1] =
|
|
6445
|
-
|
|
6449
|
+
_[1] || (_[1] = h("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
6450
|
+
N.value ? (c(), $(ue, {
|
|
6446
6451
|
key: 0,
|
|
6447
6452
|
model: e.formModel,
|
|
6448
6453
|
options: e.formOptions,
|
|
6449
6454
|
schema: u.value,
|
|
6450
6455
|
onModelUpdated: e.onModelUpdated
|
|
6451
6456
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6452
|
-
_[2] || (_[2] =
|
|
6457
|
+
_[2] || (_[2] = h("hr", null, null, -1)),
|
|
6453
6458
|
C(I, {
|
|
6454
6459
|
class: "issuer-select",
|
|
6455
6460
|
items: H,
|
|
6456
6461
|
label: "Issuer",
|
|
6457
6462
|
onChange: D
|
|
6458
6463
|
}),
|
|
6459
|
-
|
|
6464
|
+
h("div", Qh, [
|
|
6460
6465
|
n.value === "letsEncrypt" ? (c(), $(ue, {
|
|
6461
6466
|
key: 0,
|
|
6462
6467
|
model: e.formModel,
|
|
6463
6468
|
options: e.formOptions,
|
|
6464
|
-
schema:
|
|
6469
|
+
schema: r.value,
|
|
6465
6470
|
onModelUpdated: e.onModelUpdated
|
|
6466
6471
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6467
6472
|
n.value === "zeroSsl" || n.value === "other" ? (c(), $(ue, {
|
|
6468
6473
|
key: 1,
|
|
6469
6474
|
model: e.formModel,
|
|
6470
6475
|
options: e.formOptions,
|
|
6471
|
-
schema:
|
|
6476
|
+
schema: s.value,
|
|
6472
6477
|
onModelUpdated: e.onModelUpdated
|
|
6473
6478
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0)
|
|
6474
6479
|
])
|
|
6475
6480
|
])
|
|
6476
6481
|
]),
|
|
6477
6482
|
storage: A(() => [
|
|
6478
|
-
|
|
6479
|
-
_[3] || (_[3] =
|
|
6480
|
-
|
|
6483
|
+
h("div", ep, [
|
|
6484
|
+
_[3] || (_[3] = h("div", { class: "header-wrapper" }, [
|
|
6485
|
+
h("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
6481
6486
|
], -1)),
|
|
6482
|
-
_[4] || (_[4] =
|
|
6483
|
-
|
|
6487
|
+
_[4] || (_[4] = h("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
6488
|
+
N.value ? (c(), $(ue, {
|
|
6484
6489
|
key: 0,
|
|
6485
6490
|
model: e.formModel,
|
|
6486
6491
|
options: e.formOptions,
|
|
6487
6492
|
schema: y.value,
|
|
6488
6493
|
onModelUpdated: M
|
|
6489
6494
|
}, null, 8, ["model", "options", "schema"])) : B("", !0),
|
|
6490
|
-
|
|
6495
|
+
h("div", tp, [
|
|
6491
6496
|
i.value === "consul" ? (c(), $(ue, {
|
|
6492
6497
|
key: 0,
|
|
6493
6498
|
model: e.formModel,
|
|
6494
6499
|
options: e.formOptions,
|
|
6495
|
-
schema:
|
|
6500
|
+
schema: f.value,
|
|
6496
6501
|
onModelUpdated: e.onModelUpdated
|
|
6497
6502
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6498
6503
|
i.value === "redis" ? (c(), $(ue, {
|
|
@@ -6520,12 +6525,12 @@ const Bh = /* @__PURE__ */ W(Lh, [["render", qh], ["__scopeId", "data-v-05c11795
|
|
|
6520
6525
|
])
|
|
6521
6526
|
]),
|
|
6522
6527
|
advanced: A(() => [
|
|
6523
|
-
|
|
6524
|
-
_[5] || (_[5] =
|
|
6525
|
-
|
|
6528
|
+
h("div", np, [
|
|
6529
|
+
_[5] || (_[5] = h("div", { class: "header-wrapper" }, [
|
|
6530
|
+
h("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
6526
6531
|
], -1)),
|
|
6527
|
-
_[6] || (_[6] =
|
|
6528
|
-
|
|
6532
|
+
_[6] || (_[6] = h("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
6533
|
+
N.value ? (c(), $(ue, {
|
|
6529
6534
|
key: 0,
|
|
6530
6535
|
model: e.formModel,
|
|
6531
6536
|
options: e.formOptions,
|
|
@@ -6621,11 +6626,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6621
6626
|
"selectionGroup",
|
|
6622
6627
|
"enabled",
|
|
6623
6628
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((m) => `config-${m}`)
|
|
6624
|
-
]), i = (m) => m === void 0 ? !1 : n.has(m), { t: a } = ke("en-us", Fe), o = e,
|
|
6629
|
+
]), i = (m) => m === void 0 ? !1 : n.has(m), { t: a } = ke("en-us", Fe), o = e, r = q(() => {
|
|
6625
6630
|
var w, L, G;
|
|
6626
6631
|
const m = (L = (w = o.formSchema) == null ? void 0 : w.fields) == null ? void 0 : L.find((ye) => ye.type === "selectionGroup" && ye.model === "selectionGroup");
|
|
6627
6632
|
return { fields: [(G = o.formSchema) == null ? void 0 : G.fields.find((ye) => ye.model === "enabled"), m].filter(Boolean) };
|
|
6628
|
-
}),
|
|
6633
|
+
}), s = q(() => {
|
|
6629
6634
|
var ye, Be;
|
|
6630
6635
|
const m = ((Be = (ye = o.formSchema) == null ? void 0 : ye.fields) == null ? void 0 : Be.filter((he) => !i(he.model))) ?? [], g = [], w = [], L = [];
|
|
6631
6636
|
let G = !1;
|
|
@@ -6658,7 +6663,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6658
6663
|
value: L
|
|
6659
6664
|
}));
|
|
6660
6665
|
}
|
|
6661
|
-
),
|
|
6666
|
+
), f = ne(), p = ne(!0), T = q(
|
|
6662
6667
|
() => {
|
|
6663
6668
|
var m, g, w;
|
|
6664
6669
|
return o.formModel["config-window_type"] ?? ((w = (g = (m = o.formSchema) == null ? void 0 : m.fields) == null ? void 0 : g.find((L) => L.model === "config-window_type")) == null ? void 0 : w.default);
|
|
@@ -6677,12 +6682,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6677
6682
|
};
|
|
6678
6683
|
});
|
|
6679
6684
|
return !Array.isArray(m) || m.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : m;
|
|
6680
|
-
}),
|
|
6685
|
+
}), N = q(
|
|
6681
6686
|
() => {
|
|
6682
6687
|
var m, g, w, L;
|
|
6683
6688
|
return ((m = o.formModel) == null ? void 0 : m["config-identifier"]) ?? ((L = (w = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : w.find((G) => G.model === "config-identifier")) == null ? void 0 : L.default);
|
|
6684
6689
|
}
|
|
6685
|
-
),
|
|
6690
|
+
), U = q(
|
|
6686
6691
|
() => {
|
|
6687
6692
|
var m, g, w, L;
|
|
6688
6693
|
return ((m = o.formModel) == null ? void 0 : m["config-error_code"]) ?? ((L = (w = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : w.find((G) => G.model === "config-error_code")) == null ? void 0 : L.default);
|
|
@@ -6693,36 +6698,36 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6693
6698
|
return ((m = o.formModel) == null ? void 0 : m["config-error_message"]) ?? ((L = (w = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : w.find((G) => G.model === "config-error_message")) == null ? void 0 : L.default);
|
|
6694
6699
|
}
|
|
6695
6700
|
), D = (m, g) => {
|
|
6696
|
-
if (g ===
|
|
6697
|
-
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"),
|
|
6698
|
-
|
|
6701
|
+
if (g === f.value) {
|
|
6702
|
+
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Ni(() => {
|
|
6703
|
+
f.value = void 0;
|
|
6699
6704
|
});
|
|
6700
6705
|
return;
|
|
6701
6706
|
}
|
|
6702
|
-
o.onModelUpdated([m.config.limit], "config-limit"), o.onModelUpdated([m.config.window_size], "config-window_size"),
|
|
6703
|
-
|
|
6707
|
+
o.onModelUpdated([m.config.limit], "config-limit"), o.onModelUpdated([m.config.window_size], "config-window_size"), Ni(() => {
|
|
6708
|
+
f.value = g;
|
|
6704
6709
|
});
|
|
6705
6710
|
}, M = (m) => {
|
|
6706
|
-
|
|
6711
|
+
f.value !== void 0 && (f.value = void 0), m !== null && o.onModelUpdated(m.toString(), "config-window_type");
|
|
6707
6712
|
}, O = (m, g) => {
|
|
6708
6713
|
var L;
|
|
6709
|
-
|
|
6714
|
+
f.value !== void 0 && (f.value = void 0);
|
|
6710
6715
|
const w = Ze(((L = o.formModel) == null ? void 0 : L["config-limit"]) ?? []);
|
|
6711
6716
|
w[m] = g, o.onModelUpdated(w, "config-limit");
|
|
6712
6717
|
}, E = (m, g) => {
|
|
6713
6718
|
var L;
|
|
6714
|
-
|
|
6719
|
+
f.value !== void 0 && (f.value = void 0);
|
|
6715
6720
|
const w = Ze(((L = o.formModel) == null ? void 0 : L["config-window_size"]) ?? []);
|
|
6716
6721
|
w[m] = g, o.onModelUpdated(w, "config-window_size");
|
|
6717
6722
|
}, _ = (m) => {
|
|
6718
6723
|
var L, G;
|
|
6719
|
-
|
|
6724
|
+
f.value !== void 0 && (f.value = void 0);
|
|
6720
6725
|
const g = Ze(((L = o.formModel) == null ? void 0 : L["config-limit"]) ?? []), w = Ze(((G = o.formModel) == null ? void 0 : G["config-window_size"]) ?? []);
|
|
6721
6726
|
g.length === 0 && g.push(void 0), w.length === 0 && w.push(void 0), g.splice(m + 1, 0, void 0), w.splice(m + 1, 0, void 0), o.onModelUpdated(g, "config-limit"), o.onModelUpdated(w, "config-window_size");
|
|
6722
6727
|
}, I = (m) => {
|
|
6723
6728
|
var g, w;
|
|
6724
6729
|
if (v.value.length > 1) {
|
|
6725
|
-
|
|
6730
|
+
f.value !== void 0 && (f.value = void 0);
|
|
6726
6731
|
const L = Ze(((g = o.formModel) == null ? void 0 : g["config-limit"]) ?? []), G = Ze(((w = o.formModel) == null ? void 0 : w["config-window_size"]) ?? []);
|
|
6727
6732
|
L.length === 0 && L.push(void 0), G.length === 0 && G.push(void 0), L.splice(m, 1), G.splice(m, 1), o.onModelUpdated(L, "config-limit"), o.onModelUpdated(G, "config-window_size");
|
|
6728
6733
|
}
|
|
@@ -6732,11 +6737,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6732
6737
|
}), (m, g) => {
|
|
6733
6738
|
const w = j("KLabel"), L = j("KRadio"), G = j("KInput"), ye = j("KButton"), Be = j("KBadge"), he = j("KTooltip"), ze = j("KCard"), wn = j("KSelect"), Zt = j("KCollapse");
|
|
6734
6739
|
return c(), b(Y, null, [
|
|
6735
|
-
|
|
6740
|
+
h("div", op, [
|
|
6736
6741
|
C(ue, {
|
|
6737
6742
|
model: e.formModel,
|
|
6738
6743
|
options: e.formOptions,
|
|
6739
|
-
schema:
|
|
6744
|
+
schema: r.value,
|
|
6740
6745
|
onModelUpdated: g[0] || (g[0] = (x, ie) => e.onModelUpdated(x, ie))
|
|
6741
6746
|
}, null, 8, ["model", "options", "schema"]),
|
|
6742
6747
|
C(ze, { class: "rla-form-request-limits" }, {
|
|
@@ -6751,11 +6756,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6751
6756
|
]),
|
|
6752
6757
|
_: 1
|
|
6753
6758
|
}),
|
|
6754
|
-
|
|
6759
|
+
h("div", rp, V(R(a)("rla.request_limits.subtitle")), 1)
|
|
6755
6760
|
]),
|
|
6756
6761
|
default: A(() => [
|
|
6757
|
-
|
|
6758
|
-
|
|
6762
|
+
h("div", sp, [
|
|
6763
|
+
h("div", lp, [
|
|
6759
6764
|
C(w, {
|
|
6760
6765
|
class: "rla-form-window-type-label",
|
|
6761
6766
|
"tooltip-attributes": {
|
|
@@ -6764,7 +6769,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6764
6769
|
}
|
|
6765
6770
|
}, {
|
|
6766
6771
|
tooltip: A(() => [
|
|
6767
|
-
|
|
6772
|
+
h("div", {
|
|
6768
6773
|
innerHTML: R(a)("rla.window_type.help")
|
|
6769
6774
|
}, null, 8, dp)
|
|
6770
6775
|
]),
|
|
@@ -6773,7 +6778,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6773
6778
|
]),
|
|
6774
6779
|
_: 1
|
|
6775
6780
|
}),
|
|
6776
|
-
|
|
6781
|
+
h("div", up, [
|
|
6777
6782
|
(c(!0), b(Y, null, oe(k.value, (x) => (c(), $(L, {
|
|
6778
6783
|
key: `window-type-${x}`,
|
|
6779
6784
|
"model-value": T.value,
|
|
@@ -6788,7 +6793,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6788
6793
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
6789
6794
|
])
|
|
6790
6795
|
]),
|
|
6791
|
-
|
|
6796
|
+
h("div", cp, [
|
|
6792
6797
|
(c(!0), b(Y, null, oe(v.value, (x, ie) => (c(), b("div", {
|
|
6793
6798
|
key: ie.toString()
|
|
6794
6799
|
}, [
|
|
@@ -6800,8 +6805,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6800
6805
|
]),
|
|
6801
6806
|
_: 2
|
|
6802
6807
|
}, 1032, ["for"]),
|
|
6803
|
-
|
|
6804
|
-
|
|
6808
|
+
h("div", mp, [
|
|
6809
|
+
h("legend", {
|
|
6805
6810
|
id: `rla-form-request-limits-item-${ie}-legend`,
|
|
6806
6811
|
class: "rla-form-request-limits-inputs"
|
|
6807
6812
|
}, [
|
|
@@ -6811,16 +6816,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6811
6816
|
type: "number",
|
|
6812
6817
|
"onUpdate:modelValue": (re) => O(ie, Number.parseInt(re))
|
|
6813
6818
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6814
|
-
|
|
6819
|
+
h("div", null, V(R(a)("rla.request_limits.interval_determiner")), 1),
|
|
6815
6820
|
C(G, {
|
|
6816
6821
|
"model-value": x.windowSize && x.windowSize.toString(),
|
|
6817
6822
|
placeholder: R(a)("rla.request_limits.time_interval"),
|
|
6818
6823
|
type: "number",
|
|
6819
6824
|
"onUpdate:modelValue": (re) => E(ie, Number.parseInt(re))
|
|
6820
6825
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6821
|
-
|
|
6826
|
+
h("div", null, V(R(a)("rla.request_limits.seconds")), 1)
|
|
6822
6827
|
], 8, fp),
|
|
6823
|
-
|
|
6828
|
+
h("div", hp, [
|
|
6824
6829
|
C(ye, {
|
|
6825
6830
|
appearance: "tertiary",
|
|
6826
6831
|
disabled: v.value.length <= 1,
|
|
@@ -6845,21 +6850,21 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6845
6850
|
]))), 128))
|
|
6846
6851
|
]),
|
|
6847
6852
|
d.value.length > 0 ? (c(), b("div", pp, [
|
|
6848
|
-
|
|
6849
|
-
|
|
6853
|
+
h("div", null, V(R(a)("rla.start_with_a_use_case")), 1),
|
|
6854
|
+
h("div", gp, [
|
|
6850
6855
|
(c(!0), b(Y, null, oe(d.value, (x, ie) => (c(), $(he, {
|
|
6851
6856
|
key: `use-case-${ie}`,
|
|
6852
6857
|
"max-width": "300"
|
|
6853
6858
|
}, {
|
|
6854
6859
|
content: A(() => [
|
|
6855
|
-
|
|
6856
|
-
g[10] || (g[10] =
|
|
6857
|
-
|
|
6858
|
-
|
|
6860
|
+
h("div", null, V(x.description), 1),
|
|
6861
|
+
g[10] || (g[10] = h("br", null, null, -1)),
|
|
6862
|
+
h("div", null, V(R(a)("rla.request_limits.label")) + ": " + V(x.config.limit), 1),
|
|
6863
|
+
h("div", null, V(R(a)("rla.request_limits.time_interval")) + ": " + V(x.config.window_size), 1)
|
|
6859
6864
|
]),
|
|
6860
6865
|
default: A(() => [
|
|
6861
6866
|
C(Be, {
|
|
6862
|
-
appearance:
|
|
6867
|
+
appearance: f.value === `${T.value}-${ie}` ? "info" : "decorative",
|
|
6863
6868
|
class: "rla-form-request-limits-examples-badge",
|
|
6864
6869
|
onClick: () => D(x, `${T.value}-${ie}`)
|
|
6865
6870
|
}, {
|
|
@@ -6878,8 +6883,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6878
6883
|
_: 1
|
|
6879
6884
|
}),
|
|
6880
6885
|
C(wn, {
|
|
6881
|
-
modelValue:
|
|
6882
|
-
"onUpdate:modelValue": g[1] || (g[1] = (x) =>
|
|
6886
|
+
modelValue: N.value,
|
|
6887
|
+
"onUpdate:modelValue": g[1] || (g[1] = (x) => N.value = x),
|
|
6883
6888
|
class: "rla-form-identifiers",
|
|
6884
6889
|
items: y.value,
|
|
6885
6890
|
label: R(a)("rla.identifiers.label"),
|
|
@@ -6893,13 +6898,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6893
6898
|
onSelected: g[2] || (g[2] = (x) => o.onModelUpdated(x.value, "config-identifier"))
|
|
6894
6899
|
}, {
|
|
6895
6900
|
"label-tooltip": A(() => [
|
|
6896
|
-
|
|
6901
|
+
h("div", {
|
|
6897
6902
|
innerHTML: u.value && u.value.help
|
|
6898
6903
|
}, null, 8, yp)
|
|
6899
6904
|
]),
|
|
6900
6905
|
_: 1
|
|
6901
6906
|
}, 8, ["modelValue", "items", "label"]),
|
|
6902
|
-
|
|
6907
|
+
h("div", null, [
|
|
6903
6908
|
C(w, {
|
|
6904
6909
|
for: "rla-form-error-legend",
|
|
6905
6910
|
info: R(a)("rla.error_message.help"),
|
|
@@ -6914,15 +6919,15 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6914
6919
|
]),
|
|
6915
6920
|
_: 1
|
|
6916
6921
|
}, 8, ["info"]),
|
|
6917
|
-
|
|
6922
|
+
h("legend", vp, [
|
|
6918
6923
|
C(G, {
|
|
6919
6924
|
class: "input-error-code",
|
|
6920
|
-
"model-value":
|
|
6925
|
+
"model-value": U.value && U.value.toString(),
|
|
6921
6926
|
placeholder: R(a)("rla.error_message.code_placeholder"),
|
|
6922
6927
|
type: "number",
|
|
6923
6928
|
"onUpdate:modelValue": g[3] || (g[3] = (x) => e.onModelUpdated(Number.parseInt(x), "config-error_code"))
|
|
6924
6929
|
}, null, 8, ["model-value", "placeholder"]),
|
|
6925
|
-
g[11] || (g[11] =
|
|
6930
|
+
g[11] || (g[11] = h("div", null, ":", -1)),
|
|
6926
6931
|
C(G, {
|
|
6927
6932
|
"model-value": H.value,
|
|
6928
6933
|
placeholder: R(a)("rla.error_message.message_placeholder"),
|
|
@@ -6941,7 +6946,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6941
6946
|
C(ue, {
|
|
6942
6947
|
model: e.formModel,
|
|
6943
6948
|
options: e.formOptions,
|
|
6944
|
-
schema:
|
|
6949
|
+
schema: s.value.endsWithStrategy,
|
|
6945
6950
|
onModelUpdated: g[5] || (g[5] = (x, ie) => e.onModelUpdated(x, ie))
|
|
6946
6951
|
}, null, 8, ["model", "options", "schema"]),
|
|
6947
6952
|
e.formModel["config-strategy"] === "redis" ? (c(), $(me(e.enableRedisPartial ? "div" : "KCard"), {
|
|
@@ -6956,7 +6961,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6956
6961
|
"is-konnect-managed-redis-enabled": e.isKonnectManagedRedisEnabled,
|
|
6957
6962
|
model: e.formModel,
|
|
6958
6963
|
options: e.formOptions,
|
|
6959
|
-
schema:
|
|
6964
|
+
schema: s.value.redis,
|
|
6960
6965
|
onModelUpdated: g[6] || (g[6] = (x, ie) => e.onModelUpdated(x, ie)),
|
|
6961
6966
|
onPartialToggled: e.onPartialToggled,
|
|
6962
6967
|
onShowNewPartialModal: g[7] || (g[7] = () => e.showNewPartialModal(e.formSchema._supported_redis_partial_type))
|
|
@@ -6968,7 +6973,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6968
6973
|
class: ee({ "rla-last-vfg": e.formModel["config-strategy"] !== "redis" }),
|
|
6969
6974
|
model: e.formModel,
|
|
6970
6975
|
options: e.formOptions,
|
|
6971
|
-
schema:
|
|
6976
|
+
schema: s.value.afterStrategy,
|
|
6972
6977
|
onModelUpdated: g[8] || (g[8] = (x, ie) => e.onModelUpdated(x, ie))
|
|
6973
6978
|
}, null, 8, ["class", "model", "options", "schema"])
|
|
6974
6979
|
]),
|
|
@@ -7003,7 +7008,7 @@ export {
|
|
|
7003
7008
|
Ot as AUTOFILL_SLOT_NAME,
|
|
7004
7009
|
ul as EMPTY_VALUE_PLACEHOLDER,
|
|
7005
7010
|
qe as FIELD_STATES,
|
|
7006
|
-
|
|
7011
|
+
Ne as FORMS_API_KEY,
|
|
7007
7012
|
ll as FORMS_CONFIG,
|
|
7008
7013
|
rm as FieldScopedEntitySelect,
|
|
7009
7014
|
hn as PartialType,
|