@kong-ui-public/forms 4.24.11-pr.3274.bfa42323f.0 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as T, createElementVNode as h, toDisplayString as j, normalizeClass as ee, createVNode as O, defineComponent as he, provide as Qt, resolveComponent as V, withCtx as M, renderSlot as Fe, unref as F, createTextVNode as
|
|
1
|
+
import { openBlock as u, createElementBlock as T, createElementVNode as h, toDisplayString as j, normalizeClass as ee, createVNode as O, defineComponent as he, provide as Qt, resolveComponent as V, withCtx as M, renderSlot as Fe, unref as F, createTextVNode as le, useModel as Wo, createBlock as P, createSlots as ni, mergeModels as Di, inject as Zt, ref as ne, onMounted as ii, watch as en, resolveDynamicComponent as fe, Fragment as Y, renderList as oe, computed as q, toRefs as gt, onBeforeMount as ai, mergeProps as Qe, Transition as Zo, createCommentVNode as B, resolveDirective as Pa, withDirectives as Me, vModelText as Ht, vModelCheckbox as Xo, vModelSelect as Jo, vModelDynamic as $a, isRef as Ft, toRef as Va, vModelRadio as Qo, vShow as er, normalizeProps as tr, guardReactiveProps as nr, useSlots as pn, nextTick as Pi } from "vue";
|
|
2
2
|
import { createI18n as Ne } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as kt, SearchIcon as ir, AddIcon as oi, RemoveIcon as ar } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as or } from "axios";
|
|
@@ -393,7 +393,7 @@ function Z(e, t, n) {
|
|
|
393
393
|
var i = e == null ? void 0 : pl(e, t);
|
|
394
394
|
return i === void 0 ? n : i;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function me(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
399
|
const Pe = "kong-ui-forms-api", Qa = "kong-ui-forms-config", gl = "redis-partial-list-fetcher-key", Kp = "redis-partial-info", Nt = "autofill", $e = "autofillSlot", Ge = {
|
|
@@ -637,9 +637,9 @@ function io() {
|
|
|
637
637
|
IS_ALLOWED_URI: tn
|
|
638
638
|
} = na, K = null;
|
|
639
639
|
const ie = z({}, [...Ji, ...xn, ...qn, ...Bn, ...Qi]);
|
|
640
|
-
let
|
|
640
|
+
let de = null;
|
|
641
641
|
const hi = z({}, [...ea, ...zn, ...ta, ...dn]);
|
|
642
|
-
let
|
|
642
|
+
let ue = Object.seal(At(null, {
|
|
643
643
|
tagNameCheck: {
|
|
644
644
|
writable: !0,
|
|
645
645
|
configurable: !1,
|
|
@@ -695,9 +695,9 @@ function io() {
|
|
|
695
695
|
if (St && St === r)
|
|
696
696
|
return;
|
|
697
697
|
(!r || typeof r != "object") && (r = {}), r = Re(r), $t = // eslint-disable-next-line unicorn/prefer-includes
|
|
698
|
-
Bo.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? zo : r.PARSER_MEDIA_TYPE, be = $t === "application/xhtml+xml" ? Kn : zt, K = re(r, "ALLOWED_TAGS") && Ae(r.ALLOWED_TAGS) ? z({}, r.ALLOWED_TAGS, be) : ie,
|
|
698
|
+
Bo.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? zo : r.PARSER_MEDIA_TYPE, be = $t === "application/xhtml+xml" ? Kn : zt, K = re(r, "ALLOWED_TAGS") && Ae(r.ALLOWED_TAGS) ? z({}, r.ALLOWED_TAGS, be) : ie, de = re(r, "ALLOWED_ATTR") && Ae(r.ALLOWED_ATTR) ? z({}, r.ALLOWED_ATTR, be) : hi, kn = re(r, "ALLOWED_NAMESPACES") && Ae(r.ALLOWED_NAMESPACES) ? z({}, r.ALLOWED_NAMESPACES, Kn) : xo, Rn = re(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) ? z(Re(Ei), r.ADD_URI_SAFE_ATTR, be) : Ei, Ti = re(r, "ADD_DATA_URI_TAGS") && Ae(r.ADD_DATA_URI_TAGS) ? z(Re(Si), r.ADD_DATA_URI_TAGS, be) : Si, ze = re(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) ? z({}, r.FORBID_CONTENTS, be) : Cn, Lt = re(r, "FORBID_TAGS") && Ae(r.FORBID_TAGS) ? z({}, r.FORBID_TAGS, be) : Re({}), nn = re(r, "FORBID_ATTR") && Ae(r.FORBID_ATTR) ? z({}, r.FORBID_ATTR, be) : Re({}), _t = re(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Re(r.USE_PROFILES) : r.USE_PROFILES : !1, pi = r.ALLOW_ARIA_ATTR !== !1, wn = r.ALLOW_DATA_ATTR !== !1, gi = r.ALLOW_UNKNOWN_PROTOCOLS || !1, yi = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, dt = r.SAFE_FOR_TEMPLATES || !1, Dt = r.SAFE_FOR_XML !== !1, ut = r.WHOLE_DOCUMENT || !1, vt = r.RETURN_DOM || !1, an = r.RETURN_DOM_FRAGMENT || !1, on = r.RETURN_TRUSTED_TYPE || !1, In = r.FORCE_BODY || !1, bi = r.SANITIZE_DOM !== !1, vi = r.SANITIZE_NAMED_PROPS || !1, On = r.KEEP_CONTENT !== !1, Pt = r.IN_PLACE || !1, tn = Cl(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : to, Tt = typeof r.NAMESPACE == "string" ? r.NAMESPACE : He, Nn = re(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Re(r.MATHML_TEXT_INTEGRATION_POINTS) : z({}, ["mi", "mo", "mn", "ms", "mtext"]), Un = re(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Re(r.HTML_INTEGRATION_POINTS) : z({}, ["annotation-xml"]);
|
|
699
699
|
const v = re(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Re(r.CUSTOM_ELEMENT_HANDLING) : At(null);
|
|
700
|
-
if (
|
|
700
|
+
if (ue = At(null), re(v, "tagNameCheck") && Ai(v.tagNameCheck) && (ue.tagNameCheck = v.tagNameCheck), re(v, "attributeNameCheck") && Ai(v.attributeNameCheck) && (ue.attributeNameCheck = v.attributeNameCheck), re(v, "allowCustomizedBuiltInElements") && typeof v.allowCustomizedBuiltInElements == "boolean" && (ue.allowCustomizedBuiltInElements = v.allowCustomizedBuiltInElements), dt && (wn = !1), an && (vt = !0), _t && (K = z({}, Qi), de = At(null), _t.html === !0 && (z(K, Ji), z(de, ea)), _t.svg === !0 && (z(K, xn), z(de, zn), z(de, dn)), _t.svgFilters === !0 && (z(K, qn), z(de, zn), z(de, dn)), _t.mathMl === !0 && (z(K, Bn), z(de, ta), z(de, dn))), nt.tagCheck = null, nt.attributeCheck = null, re(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? nt.tagCheck = r.ADD_TAGS : Ae(r.ADD_TAGS) && (K === ie && (K = Re(K)), z(K, r.ADD_TAGS, be))), re(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? nt.attributeCheck = r.ADD_ATTR : Ae(r.ADD_ATTR) && (de === hi && (de = Re(de)), z(de, r.ADD_ATTR, be))), re(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) && z(Rn, r.ADD_URI_SAFE_ATTR, be), re(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) && (ze === Cn && (ze = Re(ze)), z(ze, r.FORBID_CONTENTS, be)), re(r, "ADD_FORBID_CONTENTS") && Ae(r.ADD_FORBID_CONTENTS) && (ze === Cn && (ze = Re(ze)), z(ze, r.ADD_FORBID_CONTENTS, be)), On && (K["#text"] = !0), ut && z(K, ["html", "head", "body"]), K.table && (z(K, ["tbody"]), delete Lt.tbody), r.TRUSTED_TYPES_POLICY) {
|
|
701
701
|
if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
702
702
|
throw ln('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
703
703
|
if (typeof r.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -799,7 +799,7 @@ function io() {
|
|
|
799
799
|
}), Dt && r.hasChildNodes() && !Pn(r.firstElementChild) && Te(/<[/\w!]/g, r.innerHTML) && Te(/<[/\w!]/g, r.textContent) || Dt && r.namespaceURI === He && D === "style" && Pn(r.firstElementChild) || r.nodeType === qt.progressingInstruction || Dt && r.nodeType === qt.comment && Te(/<[/\w]/g, r.data))
|
|
800
800
|
return Ke(r), !0;
|
|
801
801
|
if (Lt[D] || !(nt.tagCheck instanceof Function && nt.tagCheck(D)) && !K[D]) {
|
|
802
|
-
if (!Lt[D] && Fi(D) && (
|
|
802
|
+
if (!Lt[D] && Fi(D) && (ue.tagNameCheck instanceof RegExp && Te(ue.tagNameCheck, D) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(D)))
|
|
803
803
|
return !1;
|
|
804
804
|
if (On && !ze[D]) {
|
|
805
805
|
const te = $(r) || r.parentNode, Ee = H(r) || r.childNodes;
|
|
@@ -824,14 +824,14 @@ function io() {
|
|
|
824
824
|
if (!(wn && !nn[v] && Te(ve, v))) {
|
|
825
825
|
if (!(pi && Te(Ye, v))) {
|
|
826
826
|
if (!(nt.attributeCheck instanceof Function && nt.attributeCheck(v, r))) {
|
|
827
|
-
if (!
|
|
827
|
+
if (!de[v] || nn[v]) {
|
|
828
828
|
if (
|
|
829
829
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
830
830
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
831
831
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
832
|
-
!(Fi(r) && (
|
|
832
|
+
!(Fi(r) && (ue.tagNameCheck instanceof RegExp && Te(ue.tagNameCheck, r) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(r)) && (ue.attributeNameCheck instanceof RegExp && Te(ue.attributeNameCheck, v) || ue.attributeNameCheck instanceof Function && ue.attributeNameCheck(v, r)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
833
833
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
834
|
-
v === "is" &&
|
|
834
|
+
v === "is" && ue.allowCustomizedBuiltInElements && (ue.tagNameCheck instanceof RegExp && Te(ue.tagNameCheck, D) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(D)))
|
|
835
835
|
) return !1;
|
|
836
836
|
} else if (!Rn[v]) {
|
|
837
837
|
if (!Te(tn, Et(D, We, ""))) {
|
|
@@ -860,7 +860,7 @@ function io() {
|
|
|
860
860
|
attrName: "",
|
|
861
861
|
attrValue: "",
|
|
862
862
|
keepAttr: !0,
|
|
863
|
-
allowedAttributes:
|
|
863
|
+
allowedAttributes: de,
|
|
864
864
|
forceKeepAttr: void 0
|
|
865
865
|
};
|
|
866
866
|
let te = v.length;
|
|
@@ -964,7 +964,7 @@ function io() {
|
|
|
964
964
|
Ee.appendChild(v.firstChild);
|
|
965
965
|
else
|
|
966
966
|
Ee = v;
|
|
967
|
-
return (
|
|
967
|
+
return (de.shadowroot || de.shadowrootmode) && (Ee = m.call(i, Ee, !0)), Ee;
|
|
968
968
|
}
|
|
969
969
|
let Oe = ut ? v.outerHTML : v.innerHTML;
|
|
970
970
|
return ut && K["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && Te(no, v.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
@@ -1300,26 +1300,26 @@ const go = {
|
|
|
1300
1300
|
featured: this.fieldFeatured(e),
|
|
1301
1301
|
required: this.fieldRequired(e)
|
|
1302
1302
|
};
|
|
1303
|
-
return Array.isArray(e.styleClasses) ? we(e.styleClasses, (i) => n[i] = !0) : ft(e.styleClasses) && (n[e.styleClasses] = !0),
|
|
1303
|
+
return Array.isArray(e.styleClasses) ? we(e.styleClasses, (i) => n[i] = !0) : ft(e.styleClasses) && (n[e.styleClasses] = !0), me(e.type) || (n["field-" + e.type] = !0), n;
|
|
1304
1304
|
},
|
|
1305
1305
|
fieldErrors(e) {
|
|
1306
1306
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
1307
1307
|
},
|
|
1308
1308
|
// Get disabled attr of field
|
|
1309
1309
|
fieldDisabled(e) {
|
|
1310
|
-
return X(e.disabled) ? e.disabled.call(this, this.model, e, this) :
|
|
1310
|
+
return X(e.disabled) ? e.disabled.call(this, this.model, e, this) : me(e.disabled) ? !1 : e.disabled;
|
|
1311
1311
|
},
|
|
1312
1312
|
// Get readonly prop of field
|
|
1313
1313
|
fieldReadonly(e) {
|
|
1314
|
-
return X(e.readonly) ? e.readonly.call(this, this.model, e, this) :
|
|
1314
|
+
return X(e.readonly) ? e.readonly.call(this, this.model, e, this) : me(e.readonly) ? !1 : e.readonly;
|
|
1315
1315
|
},
|
|
1316
1316
|
// Get featured prop of field
|
|
1317
1317
|
fieldFeatured(e) {
|
|
1318
|
-
return X(e.featured) ? e.featured.call(this, this.model, e, this) :
|
|
1318
|
+
return X(e.featured) ? e.featured.call(this, this.model, e, this) : me(e.featured) ? !1 : e.featured;
|
|
1319
1319
|
},
|
|
1320
1320
|
// Get required prop of field
|
|
1321
1321
|
fieldRequired(e) {
|
|
1322
|
-
return X(e.required) ? e.required.call(this, this.model, e, this) :
|
|
1322
|
+
return X(e.required) ? e.required.call(this, this.model, e, this) : me(e.required) ? !1 : e.required;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
};
|
|
@@ -2080,38 +2080,38 @@ const kc = {
|
|
|
2080
2080
|
redis: Lc,
|
|
2081
2081
|
fields: Dc,
|
|
2082
2082
|
vfg: Pc
|
|
2083
|
-
}, { t:
|
|
2084
|
-
fieldIsRequired:
|
|
2085
|
-
invalidFormat:
|
|
2086
|
-
numberTooSmall:
|
|
2087
|
-
numberTooBig:
|
|
2088
|
-
invalidNumber:
|
|
2089
|
-
invalidInteger:
|
|
2090
|
-
textTooSmall:
|
|
2091
|
-
textTooBig:
|
|
2092
|
-
thisNotText:
|
|
2093
|
-
thisNotArray:
|
|
2094
|
-
selectMinItems:
|
|
2095
|
-
selectMaxItems:
|
|
2096
|
-
invalidDate:
|
|
2097
|
-
dateIsEarly:
|
|
2098
|
-
dateIsLate:
|
|
2099
|
-
invalidEmail:
|
|
2100
|
-
invalidURL:
|
|
2101
|
-
invalidCard:
|
|
2102
|
-
invalidCardNumber:
|
|
2103
|
-
invalidTextContainNumber:
|
|
2104
|
-
invalidTextContainSpec:
|
|
2083
|
+
}, { t: ce } = Ne("en-us", Ue), Se = {
|
|
2084
|
+
fieldIsRequired: ce("validators.field_is_required"),
|
|
2085
|
+
invalidFormat: ce("validators.invalid_format"),
|
|
2086
|
+
numberTooSmall: ce("validators.number_too_small"),
|
|
2087
|
+
numberTooBig: ce("validators.number_too_large"),
|
|
2088
|
+
invalidNumber: ce("validators.invalid_number"),
|
|
2089
|
+
invalidInteger: ce("validators.invalid_integer"),
|
|
2090
|
+
textTooSmall: ce("validators.text_too_short"),
|
|
2091
|
+
textTooBig: ce("validators.text_too_long"),
|
|
2092
|
+
thisNotText: ce("validators.this_not_text"),
|
|
2093
|
+
thisNotArray: ce("validators.this_not_array"),
|
|
2094
|
+
selectMinItems: ce("validators.select_min_items"),
|
|
2095
|
+
selectMaxItems: ce("validators.select_max_items"),
|
|
2096
|
+
invalidDate: ce("validators.invalid_date"),
|
|
2097
|
+
dateIsEarly: ce("validators.date_is_early"),
|
|
2098
|
+
dateIsLate: ce("validators.date_is_late"),
|
|
2099
|
+
invalidEmail: ce("validators.invalid_email"),
|
|
2100
|
+
invalidURL: ce("validators.invalid_url"),
|
|
2101
|
+
invalidCard: ce("validators.invalid_card"),
|
|
2102
|
+
invalidCardNumber: ce("validators.invalid_card_number"),
|
|
2103
|
+
invalidTextContainNumber: ce("validators.invalid_text_contain_number"),
|
|
2104
|
+
invalidTextContainSpec: ce("validators.invalid_tex_contain_spec")
|
|
2105
2105
|
}, ae = (e, ...t) => {
|
|
2106
2106
|
if (e && t.length > 0)
|
|
2107
2107
|
for (let n = 0; n < t.length; n++)
|
|
2108
2108
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
2109
2109
|
return e;
|
|
2110
|
-
}, De = (e, t, n = Se) =>
|
|
2110
|
+
}, De = (e, t, n = Se) => me(e) || e === "" ? t ? [ae(n.fieldIsRequired)] : [] : null, pt = {
|
|
2111
2111
|
required: (e, t, n, i = Se) => De(e, t.required, i) || [],
|
|
2112
2112
|
number: (e, t, n, i = Se) => {
|
|
2113
2113
|
let a = De(e, t.required, i);
|
|
2114
|
-
return a != null || (a = [], Io(e) ? (!
|
|
2114
|
+
return a != null || (a = [], Io(e) ? (!me(t.min) && e < t.min, (i = Se) && a.push(ae(i.numberTooSmall, t.min)), !me(t.max) && e > t.max, (i = Se) && a.push(ae(i.numberTooBig, t.max))) : a.push(ae(i.invalidNumber))), a;
|
|
2115
2115
|
},
|
|
2116
2116
|
integer: (e, t, n, i = Se) => {
|
|
2117
2117
|
let a = De(e, t.required, i);
|
|
@@ -2123,7 +2123,7 @@ const kc = {
|
|
|
2123
2123
|
},
|
|
2124
2124
|
string: (e, t, n, i = Se) => {
|
|
2125
2125
|
let a = De(e, t.required, i);
|
|
2126
|
-
return a != null || (a = [], ft(e) ? (!
|
|
2126
|
+
return a != null || (a = [], ft(e) ? (!me(t.min) && e.length < t.min && a.push(ae(i.textTooSmall, e.length, t.min)), !me(t.max) && e.length > t.max && a.push(ae(i.textTooBig, e.length, t.max))) : a.push(ae(i.thisNotText))), a;
|
|
2127
2127
|
},
|
|
2128
2128
|
array: (e, t, n, i = Se) => {
|
|
2129
2129
|
if (t.required) {
|
|
@@ -2132,10 +2132,10 @@ const kc = {
|
|
|
2132
2132
|
if (e.length === 0)
|
|
2133
2133
|
return [ae(i.fieldIsRequired)];
|
|
2134
2134
|
}
|
|
2135
|
-
if (!
|
|
2136
|
-
if (!
|
|
2135
|
+
if (!me(e)) {
|
|
2136
|
+
if (!me(t.min) && e.length < t.min)
|
|
2137
2137
|
return [ae(i.selectMinItems, t.min)];
|
|
2138
|
-
if (!
|
|
2138
|
+
if (!me(t.max) && e.length > t.max)
|
|
2139
2139
|
return [ae(i.selectMaxItems, t.max)];
|
|
2140
2140
|
}
|
|
2141
2141
|
return [];
|
|
@@ -2147,11 +2147,11 @@ const kc = {
|
|
|
2147
2147
|
const o = new Date(e);
|
|
2148
2148
|
if (isNaN(o.getDate()))
|
|
2149
2149
|
return [ae(i.invalidDate)];
|
|
2150
|
-
if (!
|
|
2150
|
+
if (!me(t.min)) {
|
|
2151
2151
|
const s = new Date(t.min);
|
|
2152
2152
|
o.valueOf() < s.valueOf() && a.push(ae(i.dateIsEarly, Mt.format(o), Mt.format(s)));
|
|
2153
2153
|
}
|
|
2154
|
-
if (!
|
|
2154
|
+
if (!me(t.max)) {
|
|
2155
2155
|
const s = new Date(t.max);
|
|
2156
2156
|
o.valueOf() > s.valueOf() && a.push(ae(i.dateIsLate, Mt.format(o), Mt.format(s)));
|
|
2157
2157
|
}
|
|
@@ -2159,7 +2159,7 @@ const kc = {
|
|
|
2159
2159
|
},
|
|
2160
2160
|
regexp: (e, t, n, i = Se) => {
|
|
2161
2161
|
const a = De(e, t.required, i);
|
|
2162
|
-
return a ?? (!
|
|
2162
|
+
return a ?? (!me(t.pattern) && !new RegExp(t.pattern).test(e) ? [ae(i.invalidFormat)] : []);
|
|
2163
2163
|
},
|
|
2164
2164
|
email: (e, t, n, i = Se) => {
|
|
2165
2165
|
const a = De(e, t.required, i);
|
|
@@ -2463,7 +2463,7 @@ const qe = {
|
|
|
2463
2463
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
2464
2464
|
}, {
|
|
2465
2465
|
default: M(() => [...n[1] || (n[1] = [
|
|
2466
|
-
|
|
2466
|
+
le(" - Remove Field ", -1)
|
|
2467
2467
|
])]),
|
|
2468
2468
|
_: 1
|
|
2469
2469
|
}),
|
|
@@ -3296,7 +3296,7 @@ function Fm(e, t, n, i, a, o) {
|
|
|
3296
3296
|
class: "title",
|
|
3297
3297
|
onClick: t[0] || (t[0] = (c) => a.contentVisible = !a.contentVisible)
|
|
3298
3298
|
}, [
|
|
3299
|
-
|
|
3299
|
+
le(j(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3300
3300
|
O(s, { class: "metric-add-icon" })
|
|
3301
3301
|
]),
|
|
3302
3302
|
O(Zo, { name: "slide-fade" }, {
|
|
@@ -3621,7 +3621,7 @@ const Lo = /* @__PURE__ */ W(Cm, [["render", Fm]]), km = { class: "field-object-
|
|
|
3621
3621
|
onClick: t.addKey
|
|
3622
3622
|
}, {
|
|
3623
3623
|
default: M(() => [
|
|
3624
|
-
|
|
3624
|
+
le(" + Add " + j(t.schema.buttonLabel || t.schema.label), 1)
|
|
3625
3625
|
]),
|
|
3626
3626
|
_: 1
|
|
3627
3627
|
}, 8, ["disabled", "onClick"])
|
|
@@ -3744,7 +3744,7 @@ const Lo = /* @__PURE__ */ W(Cm, [["render", Fm]]), km = { class: "field-object-
|
|
|
3744
3744
|
},
|
|
3745
3745
|
emits: ["modelUpdated"],
|
|
3746
3746
|
setup(e, { expose: t, emit: n }) {
|
|
3747
|
-
const i = e, a = n, o = q(() => i.schema.selectOptions || {}), s = (b) =>
|
|
3747
|
+
const i = e, a = n, o = q(() => i.schema.selectOptions || {}), s = (b) => me(b) ? null : b, l = gt(i), { getFieldID: d, clearValidationErrors: c, value: y } = Be.useAbstractFields({
|
|
3748
3748
|
model: l.model,
|
|
3749
3749
|
schema: i.schema,
|
|
3750
3750
|
formOptions: i.formOptions,
|
|
@@ -4081,7 +4081,7 @@ function hf(e, t, n, i, a, o) {
|
|
|
4081
4081
|
onClick: o.newElement
|
|
4082
4082
|
}, {
|
|
4083
4083
|
default: M(() => [
|
|
4084
|
-
|
|
4084
|
+
le(j(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
|
|
4085
4085
|
]),
|
|
4086
4086
|
_: 1
|
|
4087
4087
|
}, 8, ["class", "data-testid", "onClick"])
|
|
@@ -4179,7 +4179,7 @@ function Mf(e, t, n, i, a, o) {
|
|
|
4179
4179
|
}, null, 40, Tf), [
|
|
4180
4180
|
[s, "input"]
|
|
4181
4181
|
]),
|
|
4182
|
-
|
|
4182
|
+
le(j(o.getItemName(l)), 1)
|
|
4183
4183
|
])
|
|
4184
4184
|
], 2))), 256))
|
|
4185
4185
|
], 8, _f)) : B("", !0),
|
|
@@ -4210,7 +4210,7 @@ function Mf(e, t, n, i, a, o) {
|
|
|
4210
4210
|
}, null, 40, wf), [
|
|
4211
4211
|
[s, "input"]
|
|
4212
4212
|
]),
|
|
4213
|
-
|
|
4213
|
+
le(j(o.getItemName(l)), 1)
|
|
4214
4214
|
])
|
|
4215
4215
|
], 2))), 256)) : B("", !0)
|
|
4216
4216
|
])
|
|
@@ -4263,7 +4263,7 @@ const If = {
|
|
|
4263
4263
|
return this.value && this.value.indexOf(this.getItemValue(e)) !== -1;
|
|
4264
4264
|
},
|
|
4265
4265
|
onChanged(e, t) {
|
|
4266
|
-
if ((
|
|
4266
|
+
if ((me(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
4267
4267
|
const n = Fa(this.value);
|
|
4268
4268
|
n.push(this.getItemValue(t)), this.value = n;
|
|
4269
4269
|
} else {
|
|
@@ -4392,7 +4392,7 @@ function Lf(e, t, n, i, a, o) {
|
|
|
4392
4392
|
onClick: o.addPair
|
|
4393
4393
|
}, {
|
|
4394
4394
|
default: M(() => [
|
|
4395
|
-
|
|
4395
|
+
le(j(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
|
|
4396
4396
|
]),
|
|
4397
4397
|
_: 1
|
|
4398
4398
|
}, 8, ["class", "data-testid", "onClick"])
|
|
@@ -4439,7 +4439,7 @@ const Df = /* @__PURE__ */ W(Cf, [["render", Lf], ["__scopeId", "data-v-be99d00c
|
|
|
4439
4439
|
id: F(i)(e.schema)
|
|
4440
4440
|
}, {
|
|
4441
4441
|
default: M(() => [
|
|
4442
|
-
|
|
4442
|
+
le(j(F(a)), 1)
|
|
4443
4443
|
]),
|
|
4444
4444
|
_: 1
|
|
4445
4445
|
}, 8, ["id"])
|
|
@@ -4597,7 +4597,7 @@ const Df = /* @__PURE__ */ W(Cf, [["render", Lf], ["__scopeId", "data-v-be99d00c
|
|
|
4597
4597
|
}, null, 8, qf), [
|
|
4598
4598
|
[Qo, n.checkedGroup]
|
|
4599
4599
|
]),
|
|
4600
|
-
|
|
4600
|
+
le(" " + j(a.label) + " ", 1),
|
|
4601
4601
|
h("div", Bf, j(a.description), 1)
|
|
4602
4602
|
], 2)
|
|
4603
4603
|
], 2))), 128))
|
|
@@ -4866,7 +4866,7 @@ const Df = /* @__PURE__ */ W(Cf, [["render", Lf], ["__scopeId", "data-v-be99d00c
|
|
|
4866
4866
|
},
|
|
4867
4867
|
// Should field type have a label?
|
|
4868
4868
|
fieldTypeHasLabel(e) {
|
|
4869
|
-
if (
|
|
4869
|
+
if (me(e.label)) return !1;
|
|
4870
4870
|
let t = "";
|
|
4871
4871
|
switch (e.type === "input" ? t = e.inputType : t = e.type, t) {
|
|
4872
4872
|
case "button":
|
|
@@ -5244,7 +5244,7 @@ const gh = { class: "partial-config-card" }, yh = { class: "config-card-row-labe
|
|
|
5244
5244
|
}
|
|
5245
5245
|
}, {
|
|
5246
5246
|
default: M(() => [
|
|
5247
|
-
|
|
5247
|
+
le(j(b.value), 1)
|
|
5248
5248
|
]),
|
|
5249
5249
|
_: 1
|
|
5250
5250
|
}, 8, ["info"]),
|
|
@@ -5276,7 +5276,7 @@ const gh = { class: "partial-config-card" }, yh = { class: "config-card-row-labe
|
|
|
5276
5276
|
class: "select-item-label"
|
|
5277
5277
|
}, {
|
|
5278
5278
|
default: M(() => [
|
|
5279
|
-
|
|
5279
|
+
le(j(L.tag), 1)
|
|
5280
5280
|
]),
|
|
5281
5281
|
_: 2
|
|
5282
5282
|
}, 1024)) : B("", !0)
|
|
@@ -5379,7 +5379,7 @@ const gh = { class: "partial-config-card" }, yh = { class: "config-card-row-labe
|
|
|
5379
5379
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.description") : a("redis.dedicated_configuration.description")
|
|
5380
5380
|
), c = q(
|
|
5381
5381
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
|
|
5382
|
-
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), g = ne(), _ = ne({}), C = ne(), b = (w) => X(w.visible) ? w.visible.call(this, n.model, w, this) :
|
|
5382
|
+
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), g = ne(), _ = ne({}), C = ne(), b = (w) => X(w.visible) ? w.visible.call(this, n.model, w, this) : me(w.visible) ? !0 : w.visible, U = async (w) => {
|
|
5383
5383
|
i("modelUpdated", [{ id: w, path: n.redisPath }], "partials"), C.value = [{ id: w, path: n.redisPath }], g.value = w;
|
|
5384
5384
|
}, k = (w, R) => {
|
|
5385
5385
|
_.value = { ..._.value, [R]: w }, i("modelUpdated", w, R);
|
|
@@ -5436,7 +5436,7 @@ const gh = { class: "partial-config-card" }, yh = { class: "config-card-row-labe
|
|
|
5436
5436
|
appearance: "success"
|
|
5437
5437
|
}, {
|
|
5438
5438
|
default: M(() => [
|
|
5439
|
-
|
|
5439
|
+
le(j(F(a)("redis.managed_ui.shared_configuration.badge")), 1)
|
|
5440
5440
|
]),
|
|
5441
5441
|
_: 1
|
|
5442
5442
|
})) : B("", !0)
|
|
@@ -5612,7 +5612,7 @@ const gh = { class: "partial-config-card" }, yh = { class: "config-card-row-labe
|
|
|
5612
5612
|
methods: {
|
|
5613
5613
|
// Get visible prop of field
|
|
5614
5614
|
fieldVisible(e) {
|
|
5615
|
-
return X(e.visible) ? e.visible.call(this, this.model, e, this) :
|
|
5615
|
+
return X(e.visible) ? e.visible.call(this, this.model, e, this) : me(e.visible) ? !0 : e.visible;
|
|
5616
5616
|
},
|
|
5617
5617
|
// Child field executed validation
|
|
5618
5618
|
onFieldValidated(e, t, n) {
|
|
@@ -5801,7 +5801,7 @@ function Bh(e, t, n, i, a, o) {
|
|
|
5801
5801
|
c.collapsible.description ? {
|
|
5802
5802
|
name: "visible-content",
|
|
5803
5803
|
fn: M(() => [
|
|
5804
|
-
|
|
5804
|
+
le(j(c.collapsible.description), 1)
|
|
5805
5805
|
]),
|
|
5806
5806
|
key: "0"
|
|
5807
5807
|
} : void 0
|
|
@@ -5879,8 +5879,14 @@ const se = /* @__PURE__ */ W(Kh, [["render", Bh]]), zh = /* @__PURE__ */ new Set
|
|
|
5879
5879
|
function Yh(e, t, n, i, a, o) {
|
|
5880
5880
|
const s = V("VueFormGenerator");
|
|
5881
5881
|
return u(), T("div", Gh, [
|
|
5882
|
-
t[0] || (t[0] = h("div", { class: "
|
|
5883
|
-
t[1] || (t[1] = h("div", { class: "description" },
|
|
5882
|
+
t[0] || (t[0] = h("div", { class: "principals-header" }, " Who should manage authentication and credentials? ", -1)),
|
|
5883
|
+
t[1] || (t[1] = h("div", { class: "principals-description" }, [
|
|
5884
|
+
le(" Use Consumers for Consumer-based authentication. Use Kong Identity for principal-based authentication and advanced integrations. "),
|
|
5885
|
+
h("a", {
|
|
5886
|
+
href: "https://developer.konghq.com/kong-identity/",
|
|
5887
|
+
target: "_blank"
|
|
5888
|
+
}, "Learn more.")
|
|
5889
|
+
], -1)),
|
|
5884
5890
|
O(s, {
|
|
5885
5891
|
model: n.formModel,
|
|
5886
5892
|
options: n.formOptions,
|
|
@@ -5889,7 +5895,7 @@ function Yh(e, t, n, i, a, o) {
|
|
|
5889
5895
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])
|
|
5890
5896
|
]);
|
|
5891
5897
|
}
|
|
5892
|
-
const Wh = /* @__PURE__ */ W(Hh, [["render", Yh]]), Bt = {
|
|
5898
|
+
const Wh = /* @__PURE__ */ W(Hh, [["render", Yh], ["__scopeId", "data-v-64b2d504"]]), Bt = {
|
|
5893
5899
|
openIdConnectDocs: "https://developer.konghq.com/plugins/openid-connect/",
|
|
5894
5900
|
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
5895
5901
|
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
@@ -6149,7 +6155,7 @@ const Wh = /* @__PURE__ */ W(Hh, [["render", Yh]]), Bt = {
|
|
|
6149
6155
|
}
|
|
6150
6156
|
}, Xh = { class: "general-settings" }, Jh = { class: "link-wrapper" }, Qh = { class: "auth-method-container" }, ep = { class: "general-settings" }, tp = { class: "link-wrapper" }, np = { class: "general-settings" }, ip = { class: "link-wrapper" };
|
|
6151
6157
|
function ap(e, t, n, i, a, o) {
|
|
6152
|
-
const s = V("VueFormGenerator"), l = V("KExternalLink"), d = V("
|
|
6158
|
+
const s = V("VueFormGenerator"), l = V("KExternalLink"), d = V("OIDCPrincipals"), c = V("KLabel"), y = V("KCheckbox"), f = V("KInputSwitch"), g = V("KTabs");
|
|
6153
6159
|
return u(), T("div", null, [
|
|
6154
6160
|
n.formModel.id && n.isEditing || !n.isEditing ? (u(), P(s, {
|
|
6155
6161
|
key: 0,
|
|
@@ -6171,16 +6177,23 @@ function ap(e, t, n, i, a, o) {
|
|
|
6171
6177
|
}, 8, ["href"])
|
|
6172
6178
|
]),
|
|
6173
6179
|
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)),
|
|
6174
|
-
o.
|
|
6180
|
+
o.isKonnect && o.hasPrincipalsFields ? (u(), P(d, {
|
|
6175
6181
|
key: 0,
|
|
6182
|
+
"form-model": n.formModel,
|
|
6183
|
+
"form-options": n.formOptions,
|
|
6184
|
+
"form-schema": n.formSchema,
|
|
6185
|
+
"on-model-updated": n.onModelUpdated
|
|
6186
|
+
}, null, 8, ["form-model", "form-options", "form-schema", "on-model-updated"])) : B("", !0),
|
|
6187
|
+
o.displayForm ? (u(), P(s, {
|
|
6188
|
+
key: 1,
|
|
6176
6189
|
model: n.formModel,
|
|
6177
6190
|
options: n.formOptions,
|
|
6178
6191
|
schema: a.commonFieldsSchema,
|
|
6179
6192
|
onModelUpdated: n.onModelUpdated
|
|
6180
6193
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6181
|
-
O(
|
|
6194
|
+
O(c, null, {
|
|
6182
6195
|
default: M(() => [...t[3] || (t[3] = [
|
|
6183
|
-
|
|
6196
|
+
le("Auth methods", -1)
|
|
6184
6197
|
])]),
|
|
6185
6198
|
_: 1
|
|
6186
6199
|
}),
|
|
@@ -6189,31 +6202,24 @@ function ap(e, t, n, i, a, o) {
|
|
|
6189
6202
|
key: _.value,
|
|
6190
6203
|
class: "auth-method"
|
|
6191
6204
|
}, [
|
|
6192
|
-
O(
|
|
6205
|
+
O(y, {
|
|
6193
6206
|
modelValue: _.prop,
|
|
6194
6207
|
"onUpdate:modelValue": (C) => _.prop = C,
|
|
6195
6208
|
onChange: (C) => o.handleUpdate(C, _.value)
|
|
6196
6209
|
}, {
|
|
6197
6210
|
default: M(() => [
|
|
6198
|
-
|
|
6211
|
+
le(j(_.label), 1)
|
|
6199
6212
|
]),
|
|
6200
6213
|
_: 2
|
|
6201
6214
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
6202
6215
|
]))), 128))
|
|
6203
6216
|
]),
|
|
6204
|
-
O(
|
|
6217
|
+
O(f, {
|
|
6205
6218
|
modelValue: a.sessionManagement,
|
|
6206
6219
|
"onUpdate:modelValue": t[0] || (t[0] = (_) => a.sessionManagement = _),
|
|
6207
6220
|
label: "Enable Session Management",
|
|
6208
6221
|
onChange: o.handleUpdate
|
|
6209
|
-
}, null, 8, ["modelValue", "onChange"])
|
|
6210
|
-
o.isKonnect && o.hasPrincipalsFields ? (u(), P(f, {
|
|
6211
|
-
key: 1,
|
|
6212
|
-
"form-model": n.formModel,
|
|
6213
|
-
"form-options": n.formOptions,
|
|
6214
|
-
"form-schema": n.formSchema,
|
|
6215
|
-
"on-model-updated": n.onModelUpdated
|
|
6216
|
-
}, null, 8, ["form-model", "form-options", "form-schema", "on-model-updated"])) : B("", !0)
|
|
6222
|
+
}, null, 8, ["modelValue", "onChange"])
|
|
6217
6223
|
])
|
|
6218
6224
|
]),
|
|
6219
6225
|
authorization: M(() => [
|
|
@@ -6270,7 +6276,7 @@ function ap(e, t, n, i, a, o) {
|
|
|
6270
6276
|
}, 8, ["tabs"])
|
|
6271
6277
|
]);
|
|
6272
6278
|
}
|
|
6273
|
-
const op = /* @__PURE__ */ W(Zh, [["render", ap], ["__scopeId", "data-v-
|
|
6279
|
+
const op = /* @__PURE__ */ W(Zh, [["render", ap], ["__scopeId", "data-v-5cf4e4e3"]]), rp = /* @__PURE__ */ he({
|
|
6274
6280
|
__name: "PostFunction",
|
|
6275
6281
|
props: {
|
|
6276
6282
|
formModel: {
|
|
@@ -6880,7 +6886,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6880
6886
|
required: ""
|
|
6881
6887
|
}, {
|
|
6882
6888
|
default: M(() => [
|
|
6883
|
-
|
|
6889
|
+
le(j(F(a)("rla.request_limits.title")), 1)
|
|
6884
6890
|
]),
|
|
6885
6891
|
_: 1
|
|
6886
6892
|
}),
|
|
@@ -6902,7 +6908,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6902
6908
|
}, null, 8, Ap)
|
|
6903
6909
|
]),
|
|
6904
6910
|
default: M(() => [
|
|
6905
|
-
|
|
6911
|
+
le(j(F(a)("rla.window_type.label")) + " ", 1)
|
|
6906
6912
|
]),
|
|
6907
6913
|
_: 1
|
|
6908
6914
|
}),
|
|
@@ -6915,7 +6921,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6915
6921
|
"onUpdate:modelValue": w
|
|
6916
6922
|
}, {
|
|
6917
6923
|
default: M(() => [
|
|
6918
|
-
|
|
6924
|
+
le(j(F(a)(`rla.window_type.options.${K}`)), 1)
|
|
6919
6925
|
]),
|
|
6920
6926
|
_: 2
|
|
6921
6927
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
@@ -6929,7 +6935,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6929
6935
|
for: `rla-form-request-limits-item-${ie}-legend`
|
|
6930
6936
|
}, {
|
|
6931
6937
|
default: M(() => [
|
|
6932
|
-
|
|
6938
|
+
le(j(F(a)("rla.request_limits.label_index", { index: ie + 1 })), 1)
|
|
6933
6939
|
]),
|
|
6934
6940
|
_: 2
|
|
6935
6941
|
}, 1032, ["for"]),
|
|
@@ -6942,14 +6948,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6942
6948
|
"model-value": K.limit && K.limit.toString(),
|
|
6943
6949
|
placeholder: F(a)("rla.request_limits.request_number"),
|
|
6944
6950
|
type: "number",
|
|
6945
|
-
"onUpdate:modelValue": (
|
|
6951
|
+
"onUpdate:modelValue": (de) => R(ie, Number.parseInt(de))
|
|
6946
6952
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6947
6953
|
h("div", null, j(F(a)("rla.request_limits.interval_determiner")), 1),
|
|
6948
6954
|
O(G, {
|
|
6949
6955
|
"model-value": K.windowSize && K.windowSize.toString(),
|
|
6950
6956
|
placeholder: F(a)("rla.request_limits.time_interval"),
|
|
6951
6957
|
type: "number",
|
|
6952
|
-
"onUpdate:modelValue": (
|
|
6958
|
+
"onUpdate:modelValue": (de) => E(ie, Number.parseInt(de))
|
|
6953
6959
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6954
6960
|
h("div", null, j(F(a)("rla.request_limits.seconds")), 1)
|
|
6955
6961
|
], 8, Op),
|
|
@@ -6997,7 +7003,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6997
7003
|
onClick: () => $(K, `${_.value}-${ie}`)
|
|
6998
7004
|
}, {
|
|
6999
7005
|
default: M(() => [
|
|
7000
|
-
|
|
7006
|
+
le(j(K.label), 1)
|
|
7001
7007
|
]),
|
|
7002
7008
|
_: 2
|
|
7003
7009
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -7043,7 +7049,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7043
7049
|
}
|
|
7044
7050
|
}, {
|
|
7045
7051
|
default: M(() => [
|
|
7046
|
-
|
|
7052
|
+
le(j(F(a)("rla.error_message.label")), 1)
|
|
7047
7053
|
]),
|
|
7048
7054
|
_: 1
|
|
7049
7055
|
}, 8, ["info"]),
|