@kong-ui-public/forms 4.5.7 → 4.5.8
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 +131 -113
- package/dist/forms.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/FormGenerator.vue.d.ts +6 -1
- package/dist/types/components/FormGenerator.vue.d.ts.map +1 -1
- package/dist/types/components/FormGroup.vue.d.ts +3 -1
- package/dist/types/components/fields/FieldArray.vue.d.ts +4 -2
- package/dist/types/components/fields/FieldObject.vue.d.ts +4 -1
- package/package.json +1 -1
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as O, openBlock as u, createElementBlock as p, createElementVNode as m, toDisplayString as V, normalizeClass as J, createVNode as w, defineComponent as ue, provide as at, withCtx as M, renderSlot as Ee, unref as U, createTextVNode as te, pushScopeId as Ne, popScopeId as Pe, Fragment as K, renderList as Z, ref as ye, computed as D, toRefs as He, inject as Dn, onMounted as Bn, onBeforeMount as Wr, mergeProps as Ie, createBlock as I, resolveDynamicComponent as re, Transition as Zr, createCommentVNode as $, resolveDirective as
|
|
1
|
+
import { resolveComponent as O, openBlock as u, createElementBlock as p, createElementVNode as m, toDisplayString as V, normalizeClass as J, createVNode as w, defineComponent as ue, provide as at, withCtx as M, renderSlot as Ee, unref as U, createTextVNode as te, pushScopeId as Ne, popScopeId as Pe, Fragment as K, renderList as Z, ref as ye, computed as D, toRefs as He, inject as Dn, onMounted as Bn, onBeforeMount as Wr, mergeProps as Ie, createBlock as I, resolveDynamicComponent as re, Transition as Zr, createCommentVNode as $, resolveDirective as Rt, withDirectives as ie, vModelText as Be, vModelCheckbox as Jr, vModelSelect as zn, isRef as pt, vModelDynamic as Xr, vModelRadio as Qr, vShow as ei, createSlots as Yn, normalizeProps as ti, guardReactiveProps as ni, useSlots as gt, nextTick as Qt } from "vue";
|
|
2
2
|
import { TrashIcon as st, AddIcon as Hn, RemoveIcon as ri } from "@kong/icons";
|
|
3
3
|
import { createI18n as vt } from "@kong-ui-public/i18n";
|
|
4
4
|
function xn(e, t) {
|
|
@@ -57,7 +57,7 @@ function bi() {
|
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
59
|
var Xn = typeof exports == "object" && exports && !exports.nodeType && exports, nn = Xn && typeof module == "object" && module && !module.nodeType && module, _i = nn && nn.exports === Xn, rn = _i ? he.Buffer : void 0, wi = rn ? rn.isBuffer : void 0, ut = wi || bi, Mi = 9007199254740991, Ti = /^(?:0|[1-9]\d*)$/;
|
|
60
|
-
function
|
|
60
|
+
function qt(e, t) {
|
|
61
61
|
var n = typeof e;
|
|
62
62
|
return t = t ?? Mi, !!t && (n == "number" || n != "symbol" && Ti.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
63
63
|
}
|
|
@@ -65,9 +65,9 @@ var Si = 9007199254740991;
|
|
|
65
65
|
function Kt(e) {
|
|
66
66
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Si;
|
|
67
67
|
}
|
|
68
|
-
var Ai = "[object Arguments]", Oi = "[object Array]", Ii = "[object Boolean]", Ei = "[object Date]", Ci = "[object Error]", $i = "[object Function]", Fi = "[object Map]", Ui = "[object Number]", ki = "[object Object]", Li = "[object RegExp]", Vi = "[object Set]", Ni = "[object String]", Pi = "[object WeakMap]", ji = "[object ArrayBuffer]",
|
|
69
|
-
H[
|
|
70
|
-
H[Ai] = H[Oi] = H[ji] = H[Ii] = H[
|
|
68
|
+
var Ai = "[object Arguments]", Oi = "[object Array]", Ii = "[object Boolean]", Ei = "[object Date]", Ci = "[object Error]", $i = "[object Function]", Fi = "[object Map]", Ui = "[object Number]", ki = "[object Object]", Li = "[object RegExp]", Vi = "[object Set]", Ni = "[object String]", Pi = "[object WeakMap]", ji = "[object ArrayBuffer]", Ri = "[object DataView]", qi = "[object Float32Array]", Ki = "[object Float64Array]", Di = "[object Int8Array]", Bi = "[object Int16Array]", zi = "[object Int32Array]", Yi = "[object Uint8Array]", Hi = "[object Uint8ClampedArray]", xi = "[object Uint16Array]", Gi = "[object Uint32Array]", H = {};
|
|
69
|
+
H[qi] = H[Ki] = H[Di] = H[Bi] = H[zi] = H[Yi] = H[Hi] = H[xi] = H[Gi] = !0;
|
|
70
|
+
H[Ai] = H[Oi] = H[ji] = H[Ii] = H[Ri] = H[Ei] = H[Ci] = H[$i] = H[Fi] = H[Ui] = H[ki] = H[Li] = H[Vi] = H[Ni] = H[Pi] = !1;
|
|
71
71
|
function Wi(e) {
|
|
72
72
|
return _e(e) && Kt(e.length) && !!H[Ce(e)];
|
|
73
73
|
}
|
|
@@ -90,7 +90,7 @@ function tr(e, t) {
|
|
|
90
90
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
91
91
|
a && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
92
92
|
i && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
93
|
-
|
|
93
|
+
qt(d, o))) && s.push(d);
|
|
94
94
|
return s;
|
|
95
95
|
}
|
|
96
96
|
var Qi = Object.prototype;
|
|
@@ -198,11 +198,11 @@ function Aa(e) {
|
|
|
198
198
|
function Oa(e, t) {
|
|
199
199
|
return e == null ? void 0 : e[t];
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Re(e, t) {
|
|
202
202
|
var n = Oa(e, t);
|
|
203
203
|
return Aa(n) ? n : void 0;
|
|
204
204
|
}
|
|
205
|
-
var tt =
|
|
205
|
+
var tt = Re(Object, "create");
|
|
206
206
|
function Ia() {
|
|
207
207
|
this.__data__ = tt ? tt(null) : {}, this.size = 0;
|
|
208
208
|
}
|
|
@@ -253,13 +253,13 @@ function _t(e, t) {
|
|
|
253
253
|
return n;
|
|
254
254
|
return -1;
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var Ra = Array.prototype, qa = Ra.splice;
|
|
257
257
|
function Ka(e) {
|
|
258
258
|
var t = this.__data__, n = _t(t, e);
|
|
259
259
|
if (n < 0)
|
|
260
260
|
return !1;
|
|
261
261
|
var r = t.length - 1;
|
|
262
|
-
return n == r ? t.pop() :
|
|
262
|
+
return n == r ? t.pop() : qa.call(t, n, 1), --this.size, !0;
|
|
263
263
|
}
|
|
264
264
|
function Da(e) {
|
|
265
265
|
var t = this.__data__, n = _t(t, e);
|
|
@@ -284,7 +284,7 @@ Me.prototype.delete = Ka;
|
|
|
284
284
|
Me.prototype.get = Da;
|
|
285
285
|
Me.prototype.has = Ba;
|
|
286
286
|
Me.prototype.set = za;
|
|
287
|
-
var nt =
|
|
287
|
+
var nt = Re(he, "Map");
|
|
288
288
|
function Ya() {
|
|
289
289
|
this.size = 0, this.__data__ = {
|
|
290
290
|
hash: new Ue(),
|
|
@@ -431,7 +431,7 @@ ve.prototype.has = ds;
|
|
|
431
431
|
ve.prototype.set = cs;
|
|
432
432
|
var ct = function() {
|
|
433
433
|
try {
|
|
434
|
-
var e =
|
|
434
|
+
var e = Re(Object, "defineProperty");
|
|
435
435
|
return e({}, "", {}), e;
|
|
436
436
|
} catch {
|
|
437
437
|
}
|
|
@@ -537,7 +537,7 @@ function kt(e) {
|
|
|
537
537
|
function Cs(e) {
|
|
538
538
|
return hr(e, St, fr);
|
|
539
539
|
}
|
|
540
|
-
var Lt =
|
|
540
|
+
var Lt = Re(he, "DataView"), Vt = Re(he, "Promise"), ze = Re(he, "Set"), Nt = Re(he, "WeakMap"), fn = "[object Map]", $s = "[object Object]", hn = "[object Promise]", pn = "[object Set]", gn = "[object WeakMap]", vn = "[object DataView]", Fs = je(Lt), Us = je(nt), ks = je(Vt), Ls = je(ze), Vs = je(Nt), ge = Ce;
|
|
541
541
|
(Lt && ge(new Lt(new ArrayBuffer(1))) != vn || nt && ge(new nt()) != fn || Vt && ge(Vt.resolve()) != hn || ze && ge(new ze()) != pn || Nt && ge(new Nt()) != gn) && (ge = function(e) {
|
|
542
542
|
var t = Ce(e), n = t == $s ? e.constructor : void 0, r = n ? je(n) : "";
|
|
543
543
|
if (r)
|
|
@@ -565,13 +565,13 @@ function xt(e) {
|
|
|
565
565
|
var t = new e.constructor(e.byteLength);
|
|
566
566
|
return new mt(t).set(new mt(e)), t;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Rs(e, t) {
|
|
569
569
|
var n = t ? xt(e.buffer) : e.buffer;
|
|
570
570
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var qs = /\w*$/;
|
|
573
573
|
function Ks(e) {
|
|
574
|
-
var t = new e.constructor(e.source,
|
|
574
|
+
var t = new e.constructor(e.source, qs.exec(e));
|
|
575
575
|
return t.lastIndex = e.lastIndex, t;
|
|
576
576
|
}
|
|
577
577
|
var yn = be ? be.prototype : void 0, bn = yn ? yn.valueOf : void 0;
|
|
@@ -592,7 +592,7 @@ function uo(e, t, n) {
|
|
|
592
592
|
case Ys:
|
|
593
593
|
return new r(+e);
|
|
594
594
|
case Qs:
|
|
595
|
-
return
|
|
595
|
+
return Rs(e, n);
|
|
596
596
|
case eo:
|
|
597
597
|
case to:
|
|
598
598
|
case no:
|
|
@@ -640,8 +640,8 @@ var wn = Ye && Ye.isMap, po = wn ? Dt(wn) : ho, go = "[object Set]";
|
|
|
640
640
|
function vo(e) {
|
|
641
641
|
return _e(e) && ge(e) == go;
|
|
642
642
|
}
|
|
643
|
-
var Mn = Ye && Ye.isSet, yo = Mn ? Dt(Mn) : vo, bo = 1, _o = 2, wo = 4, pr = "[object Arguments]", Mo = "[object Array]", To = "[object Boolean]", So = "[object Date]", Ao = "[object Error]", gr = "[object Function]", Oo = "[object GeneratorFunction]", Io = "[object Map]", Eo = "[object Number]", vr = "[object Object]", Co = "[object RegExp]", $o = "[object Set]", Fo = "[object String]", Uo = "[object Symbol]", ko = "[object WeakMap]", Lo = "[object ArrayBuffer]", Vo = "[object DataView]", No = "[object Float32Array]", Po = "[object Float64Array]", jo = "[object Int8Array]",
|
|
644
|
-
z[pr] = z[Mo] = z[Lo] = z[Vo] = z[To] = z[So] = z[No] = z[Po] = z[jo] = z[
|
|
643
|
+
var Mn = Ye && Ye.isSet, yo = Mn ? Dt(Mn) : vo, bo = 1, _o = 2, wo = 4, pr = "[object Arguments]", Mo = "[object Array]", To = "[object Boolean]", So = "[object Date]", Ao = "[object Error]", gr = "[object Function]", Oo = "[object GeneratorFunction]", Io = "[object Map]", Eo = "[object Number]", vr = "[object Object]", Co = "[object RegExp]", $o = "[object Set]", Fo = "[object String]", Uo = "[object Symbol]", ko = "[object WeakMap]", Lo = "[object ArrayBuffer]", Vo = "[object DataView]", No = "[object Float32Array]", Po = "[object Float64Array]", jo = "[object Int8Array]", Ro = "[object Int16Array]", qo = "[object Int32Array]", Ko = "[object Uint8Array]", Do = "[object Uint8ClampedArray]", Bo = "[object Uint16Array]", zo = "[object Uint32Array]", z = {};
|
|
644
|
+
z[pr] = z[Mo] = z[Lo] = z[Vo] = z[To] = z[So] = z[No] = z[Po] = z[jo] = z[Ro] = z[qo] = z[Io] = z[Eo] = z[vr] = z[Co] = z[$o] = z[Fo] = z[Uo] = z[Ko] = z[Do] = z[Bo] = z[zo] = !0;
|
|
645
645
|
z[Ao] = z[gr] = z[ko] = !1;
|
|
646
646
|
function Qe(e, t, n, r, a, i) {
|
|
647
647
|
var l, s = t & bo, o = t & _o, d = t & wo;
|
|
@@ -766,8 +766,8 @@ function rt(e, t, n) {
|
|
|
766
766
|
return d = g, s = setTimeout(S, t), c ? E(g) : l;
|
|
767
767
|
}
|
|
768
768
|
function y(g) {
|
|
769
|
-
var _ = g - o, N = g - d,
|
|
770
|
-
return f ? il(
|
|
769
|
+
var _ = g - o, N = g - d, R = t - _;
|
|
770
|
+
return f ? il(R, i - N) : R;
|
|
771
771
|
}
|
|
772
772
|
function A(g) {
|
|
773
773
|
var _ = g - o, N = g - d;
|
|
@@ -936,7 +936,7 @@ function El(e, t, n) {
|
|
|
936
936
|
if (!se(n))
|
|
937
937
|
return !1;
|
|
938
938
|
var r = typeof t;
|
|
939
|
-
return (r == "number" ? ot(n) &&
|
|
939
|
+
return (r == "number" ? ot(n) && qt(t, n.length) : r == "string" && t in n) ? lt(n[t], e) : !1;
|
|
940
940
|
}
|
|
941
941
|
var Tr = Object.prototype, Cl = Tr.hasOwnProperty, $l = Il(function(e, t) {
|
|
942
942
|
e = Object(e);
|
|
@@ -1017,10 +1017,10 @@ var Er = [
|
|
|
1017
1017
|
"October",
|
|
1018
1018
|
"November",
|
|
1019
1019
|
"December"
|
|
1020
|
-
],
|
|
1021
|
-
dayNamesShort:
|
|
1020
|
+
], Rl = Ir(Cr, 3), ql = Ir(Er, 3), $r = {
|
|
1021
|
+
dayNamesShort: ql,
|
|
1022
1022
|
dayNames: Er,
|
|
1023
|
-
monthNamesShort:
|
|
1023
|
+
monthNamesShort: Rl,
|
|
1024
1024
|
monthNames: Cr,
|
|
1025
1025
|
amPm: ["am", "pm"],
|
|
1026
1026
|
DoFn: function(e) {
|
|
@@ -1884,23 +1884,23 @@ function vd(e) {
|
|
|
1884
1884
|
if (S)
|
|
1885
1885
|
P.push(g(a.value, e.schema, (_ = e.model) == null ? void 0 : _.value));
|
|
1886
1886
|
else {
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1887
|
+
const R = g(a.value, e.schema, (N = e.model) == null ? void 0 : N.value);
|
|
1888
|
+
R && x(R.then) ? R.then((v) => {
|
|
1889
1889
|
v && (t.value = t.value.concat(v));
|
|
1890
1890
|
const b = t.value.length === 0;
|
|
1891
1891
|
e.emitValidated && e.emitValidated({ isValid: b, errors: t.value, field: e.schema });
|
|
1892
|
-
}) :
|
|
1892
|
+
}) : R && (P = P.concat(R));
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
1896
|
const T = (j) => {
|
|
1897
1897
|
var _, N;
|
|
1898
1898
|
let g = [];
|
|
1899
|
-
if (ae(wr(j), (
|
|
1900
|
-
Array.isArray(
|
|
1899
|
+
if (ae(wr(j), (R) => {
|
|
1900
|
+
Array.isArray(R) && R.length > 0 ? g = g.concat(R) : ke(R) && g.push(R);
|
|
1901
1901
|
}), x((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((N = e.model) == null ? void 0 : N.value, g, e.schema), !y) {
|
|
1902
|
-
const
|
|
1903
|
-
e.emitValidated && e.emitValidated({ isValid:
|
|
1902
|
+
const R = g.length === 0;
|
|
1903
|
+
e.emitValidated && e.emitValidated({ isValid: R, errors: g, field: e.schema });
|
|
1904
1904
|
}
|
|
1905
1905
|
return j = g, g;
|
|
1906
1906
|
};
|
|
@@ -2007,10 +2007,10 @@ const We = {
|
|
|
2007
2007
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2008
2008
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
2009
2009
|
}, E = (T, L) => {
|
|
2010
|
-
var N,
|
|
2010
|
+
var N, R;
|
|
2011
2011
|
let j = T;
|
|
2012
2012
|
const g = h[f.value] || "", _ = De.parse(T, g);
|
|
2013
|
-
_ && ((N = r.schema) != null && N.format ? j = De.format(_, (
|
|
2013
|
+
_ && ((N = r.schema) != null && N.format ? j = De.format(_, (R = r.schema) == null ? void 0 : R.format) : j = _.valueOf()), s(j, L);
|
|
2014
2014
|
}, k = (T, L) => {
|
|
2015
2015
|
jt(T) || (T = NaN), s(T, L);
|
|
2016
2016
|
}, y = (T) => {
|
|
@@ -2140,6 +2140,7 @@ function Md(e, t, n, r, a, i) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
const Nr = /* @__PURE__ */ Y(_d, [["render", Md]]), Td = {
|
|
2142
2142
|
mixins: [pe],
|
|
2143
|
+
emits: ["modelUpdated"],
|
|
2143
2144
|
data() {
|
|
2144
2145
|
return {
|
|
2145
2146
|
attributes: this.schema ? this.schema.attributes : void 0,
|
|
@@ -2169,22 +2170,26 @@ const Nr = /* @__PURE__ */ Y(_d, [["render", Md]]), Td = {
|
|
|
2169
2170
|
},
|
|
2170
2171
|
addKey() {
|
|
2171
2172
|
this.value[this.newKeyName] = void 0, this.value = { ...this.value }, this.keyTypes[this.newKeyName] = this.newKeyType, this.keyTypes = { ...this.keyTypes }, this.newKeyName = "";
|
|
2173
|
+
},
|
|
2174
|
+
updateModel(e, t) {
|
|
2175
|
+
this.$emit("modelUpdated", e, t);
|
|
2172
2176
|
}
|
|
2173
2177
|
}
|
|
2174
|
-
}, Zt = (e) => (Ne("data-v-
|
|
2178
|
+
}, Zt = (e) => (Ne("data-v-b7e3dcd7"), e = e(), Pe(), e), Sd = { class: "field-object-container" }, Ad = { key: 1 }, Od = ["id"], Id = { key: 0 }, Ed = ["onUpdate:modelValue"], Cd = { key: 1 }, $d = ["onUpdate:modelValue"], Fd = { key: 2 }, Ud = ["onUpdate:modelValue"], kd = ["onClick"], Ld = /* @__PURE__ */ Zt(() => /* @__PURE__ */ m("option", { value: "string" }, " String ", -1)), Vd = /* @__PURE__ */ Zt(() => /* @__PURE__ */ m("option", { value: "number" }, " Number ", -1)), Nd = /* @__PURE__ */ Zt(() => /* @__PURE__ */ m("option", { value: "boolean" }, " Boolean ", -1)), Pd = [
|
|
2175
2179
|
Ld,
|
|
2176
2180
|
Vd,
|
|
2177
2181
|
Nd
|
|
2178
2182
|
];
|
|
2179
2183
|
function jd(e, t, n, r, a, i) {
|
|
2180
|
-
const l = O("vue-form-generator"), s =
|
|
2184
|
+
const l = O("vue-form-generator"), s = Rt("attributes");
|
|
2181
2185
|
return ie((u(), p("div", Sd, [
|
|
2182
2186
|
e.schema.schema ? (u(), I(l, {
|
|
2183
2187
|
key: 0,
|
|
2184
2188
|
model: e.value,
|
|
2185
2189
|
options: e.formOptions,
|
|
2186
|
-
schema: e.schema.schema
|
|
2187
|
-
|
|
2190
|
+
schema: e.schema.schema,
|
|
2191
|
+
onModelUpdated: i.updateModel
|
|
2192
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (u(), p("div", Ad, [
|
|
2188
2193
|
m("table", {
|
|
2189
2194
|
id: e.getFieldID(e.schema),
|
|
2190
2195
|
class: J(e.schema.fieldClasses)
|
|
@@ -2245,7 +2250,7 @@ function jd(e, t, n, r, a, i) {
|
|
|
2245
2250
|
[s, a.attributes]
|
|
2246
2251
|
]);
|
|
2247
2252
|
}
|
|
2248
|
-
const Pr = /* @__PURE__ */ Y(Td, [["render", jd], ["__scopeId", "data-v-
|
|
2253
|
+
const Pr = /* @__PURE__ */ Y(Td, [["render", jd], ["__scopeId", "data-v-b7e3dcd7"]]), Rd = {
|
|
2249
2254
|
components: {
|
|
2250
2255
|
TrashIcon: st
|
|
2251
2256
|
},
|
|
@@ -2337,7 +2342,7 @@ const Pr = /* @__PURE__ */ Y(Td, [["render", jd], ["__scopeId", "data-v-dfa59f5c
|
|
|
2337
2342
|
this.$emit("model-updated", this.model[this.schema.model], t);
|
|
2338
2343
|
}
|
|
2339
2344
|
}
|
|
2340
|
-
}, jr = (e) => (Ne("data-v-3a00058c"), e = e(), Pe(), e),
|
|
2345
|
+
}, jr = (e) => (Ne("data-v-3a00058c"), e = e(), Pe(), e), qd = ["id"], Kd = ["data-testid"], Dd = { class: "item-wrapper" }, Bd = { class: "index-wrapper" }, zd = /* @__PURE__ */ jr(() => /* @__PURE__ */ m("hr", { class: "divider" }, null, -1)), Yd = { key: 0 }, Hd = { key: 1 }, xd = ["onUpdate:modelValue", "placeholder", "onInput"], Gd = {
|
|
2341
2346
|
key: 0,
|
|
2342
2347
|
class: "hint"
|
|
2343
2348
|
}, Wd = /* @__PURE__ */ jr(() => /* @__PURE__ */ m("hr", { class: "wide-divider" }, null, -1)), Zd = { class: "input-item" }, Jd = ["placeholder"], Xd = {
|
|
@@ -2429,9 +2434,9 @@ function Qd(e, t, n, r, a, i) {
|
|
|
2429
2434
|
]),
|
|
2430
2435
|
e.schema.hintText ? (u(), p("p", Xd, V(e.schema.hintText), 1)) : $("", !0)
|
|
2431
2436
|
], 2)
|
|
2432
|
-
], 10,
|
|
2437
|
+
], 10, qd);
|
|
2433
2438
|
}
|
|
2434
|
-
const
|
|
2439
|
+
const Rr = /* @__PURE__ */ Y(Rd, [["render", Qd], ["__scopeId", "data-v-3a00058c"]]), eu = { class: "radio-selection-group" }, tu = /* @__PURE__ */ ue({
|
|
2435
2440
|
__name: "FieldRadio",
|
|
2436
2441
|
props: {
|
|
2437
2442
|
disabled: {
|
|
@@ -2502,7 +2507,7 @@ const qr = /* @__PURE__ */ Y(qd, [["render", Qd], ["__scopeId", "data-v-3a00058c
|
|
|
2502
2507
|
]);
|
|
2503
2508
|
};
|
|
2504
2509
|
}
|
|
2505
|
-
}),
|
|
2510
|
+
}), qr = /* @__PURE__ */ Y(tu, [["__scopeId", "data-v-6340d2ee"]]);
|
|
2506
2511
|
function nu(e, t) {
|
|
2507
2512
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
2508
2513
|
if (t(e[n], n, e))
|
|
@@ -2697,7 +2702,7 @@ function ku(e, t, n) {
|
|
|
2697
2702
|
break;
|
|
2698
2703
|
e = e[l];
|
|
2699
2704
|
}
|
|
2700
|
-
return i || ++r != a ? i : (a = e == null ? 0 : e.length, !!a && Kt(a) &&
|
|
2705
|
+
return i || ++r != a ? i : (a = e == null ? 0 : e.length, !!a && Kt(a) && qt(l, a) && (me(e) || Jn(e)));
|
|
2701
2706
|
}
|
|
2702
2707
|
function Lu(e, t) {
|
|
2703
2708
|
return e != null && ku(e, t, Uu);
|
|
@@ -2714,16 +2719,16 @@ function ju(e) {
|
|
|
2714
2719
|
return t == null ? void 0 : t[e];
|
|
2715
2720
|
};
|
|
2716
2721
|
}
|
|
2717
|
-
function
|
|
2722
|
+
function Ru(e) {
|
|
2718
2723
|
return function(t) {
|
|
2719
2724
|
return sr(t, e);
|
|
2720
2725
|
};
|
|
2721
2726
|
}
|
|
2722
|
-
function
|
|
2723
|
-
return zt(e) ? ju(Mt(e)) :
|
|
2727
|
+
function qu(e) {
|
|
2728
|
+
return zt(e) ? ju(Mt(e)) : Ru(e);
|
|
2724
2729
|
}
|
|
2725
2730
|
function zr(e) {
|
|
2726
|
-
return typeof e == "function" ? e : e == null ? yt : typeof e == "object" ? me(e) ? Pu(e[0], e[1]) : Fu(e) :
|
|
2731
|
+
return typeof e == "function" ? e : e == null ? yt : typeof e == "object" ? me(e) ? Pu(e[0], e[1]) : Fu(e) : qu(e);
|
|
2727
2732
|
}
|
|
2728
2733
|
function Ku(e) {
|
|
2729
2734
|
return function(t, n, r) {
|
|
@@ -2749,7 +2754,7 @@ function Bu(e, t, n) {
|
|
|
2749
2754
|
var zu = Ku(Bu);
|
|
2750
2755
|
const Yu = ["disabled", "name", "id"], Hu = ["disabled"], xu = ["label"], Gu = ["value"], Wu = ["value"];
|
|
2751
2756
|
function Zu(e, t, n, r, a, i) {
|
|
2752
|
-
const l =
|
|
2757
|
+
const l = Rt("attributes");
|
|
2753
2758
|
return ie((u(), p("select", {
|
|
2754
2759
|
class: J(["form-control", e.schema.fieldClasses]),
|
|
2755
2760
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.value = s),
|
|
@@ -2846,9 +2851,9 @@ const Ju = {
|
|
|
2846
2851
|
FieldSelect: Yr,
|
|
2847
2852
|
FieldMetric: Nr,
|
|
2848
2853
|
FieldObject: Pr,
|
|
2849
|
-
FieldObjectAdvanced:
|
|
2854
|
+
FieldObjectAdvanced: Rr,
|
|
2850
2855
|
FieldAutoSuggest: Lr,
|
|
2851
|
-
FieldRadio:
|
|
2856
|
+
FieldRadio: qr,
|
|
2852
2857
|
FieldArrayCardContainer: Fr,
|
|
2853
2858
|
FieldInput: Vr
|
|
2854
2859
|
},
|
|
@@ -2869,6 +2874,7 @@ const Ju = {
|
|
|
2869
2874
|
default: "x"
|
|
2870
2875
|
}
|
|
2871
2876
|
},
|
|
2877
|
+
emits: ["refreshModel"],
|
|
2872
2878
|
methods: {
|
|
2873
2879
|
generateSchema(e, t, n) {
|
|
2874
2880
|
var a, i, l;
|
|
@@ -2894,6 +2900,7 @@ const Ju = {
|
|
|
2894
2900
|
return "field-" + e.type;
|
|
2895
2901
|
},
|
|
2896
2902
|
modelUpdated() {
|
|
2903
|
+
this.$emit("refreshModel");
|
|
2897
2904
|
},
|
|
2898
2905
|
handleInput(e, t) {
|
|
2899
2906
|
this.value = this.value.map((n, r) => r === t ? e : n);
|
|
@@ -3019,7 +3026,7 @@ function rc(e, t, n, r, a, i) {
|
|
|
3019
3026
|
}, 8, ["class", "data-testid", "onClick"])
|
|
3020
3027
|
], 10, Qu)) : $("", !0);
|
|
3021
3028
|
}
|
|
3022
|
-
const ic = /* @__PURE__ */ Y(Xu, [["render", rc], ["__scopeId", "data-v-
|
|
3029
|
+
const ic = /* @__PURE__ */ Y(Xu, [["render", rc], ["__scopeId", "data-v-367d2ee8"]]), ac = { class: "form-field-wrapper field-checkbox" }, sc = /* @__PURE__ */ ue({
|
|
3023
3030
|
__name: "FieldCheckbox",
|
|
3024
3031
|
props: {
|
|
3025
3032
|
disabled: {
|
|
@@ -3090,12 +3097,12 @@ const ic = /* @__PURE__ */ Y(Xu, [["render", rc], ["__scopeId", "data-v-058198ca
|
|
|
3090
3097
|
}
|
|
3091
3098
|
}), oc = /* @__PURE__ */ Y(sc, [["__scopeId", "data-v-6b4ee1cd"]]);
|
|
3092
3099
|
var lc = 4;
|
|
3093
|
-
function
|
|
3100
|
+
function Rn(e) {
|
|
3094
3101
|
return Qe(e, lc);
|
|
3095
3102
|
}
|
|
3096
3103
|
const dc = { class: "wrapper" }, uc = ["disabled"], cc = ["id", "checked", "disabled", "onChange", "name"], mc = ["disabled"], fc = { class: "info" }, hc = /* @__PURE__ */ m("div", { class: "arrow" }, null, -1), pc = { class: "dropList" }, gc = ["id", "checked", "disabled", "onChange", "name"];
|
|
3097
3104
|
function vc(e, t, n, r, a, i) {
|
|
3098
|
-
const l =
|
|
3105
|
+
const l = Rt("attributes");
|
|
3099
3106
|
return ie((u(), p("div", dc, [
|
|
3100
3107
|
e.schema.listBox ? (u(), p("div", {
|
|
3101
3108
|
key: 0,
|
|
@@ -3201,10 +3208,10 @@ const yc = {
|
|
|
3201
3208
|
},
|
|
3202
3209
|
onChanged(e, t) {
|
|
3203
3210
|
if ((Q(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
3204
|
-
const n =
|
|
3211
|
+
const n = Rn(this.value);
|
|
3205
3212
|
n.push(this.getItemValue(t)), this.value = n;
|
|
3206
3213
|
} else {
|
|
3207
|
-
const n =
|
|
3214
|
+
const n = Rn(this.value);
|
|
3208
3215
|
n.splice(this.value.indexOf(this.getItemValue(t)), 1), this.value = n;
|
|
3209
3216
|
}
|
|
3210
3217
|
},
|
|
@@ -3441,7 +3448,7 @@ const Uc = /* @__PURE__ */ Y($c, [["render", Fc]]), kc = {
|
|
|
3441
3448
|
this.$emit("model-updated", e, t);
|
|
3442
3449
|
}
|
|
3443
3450
|
}
|
|
3444
|
-
}, Lc = { class: "selection-group" }, Vc = { class: "form-group horizontal-radios" }, Nc = { class: "radio-group" }, Pc = ["value"], jc = { class: "control-help" },
|
|
3451
|
+
}, Lc = { class: "selection-group" }, Vc = { class: "form-group horizontal-radios" }, Nc = { class: "radio-group" }, Pc = ["value"], jc = { class: "control-help" }, Rc = { class: "option-field" }, qc = { class: "option-field-container" };
|
|
3445
3452
|
function Kc(e, t, n, r, a, i) {
|
|
3446
3453
|
const l = O("vue-form-generator");
|
|
3447
3454
|
return u(), p("div", Lc, [
|
|
@@ -3472,8 +3479,8 @@ function Kc(e, t, n, r, a, i) {
|
|
|
3472
3479
|
key: o,
|
|
3473
3480
|
class: "option-group"
|
|
3474
3481
|
}, [
|
|
3475
|
-
ie(m("div",
|
|
3476
|
-
m("div",
|
|
3482
|
+
ie(m("div", Rc, [
|
|
3483
|
+
m("div", qc, [
|
|
3477
3484
|
w(l, {
|
|
3478
3485
|
model: e.model,
|
|
3479
3486
|
options: { helpAsHtml: !0 },
|
|
@@ -3766,8 +3773,8 @@ const Dc = /* @__PURE__ */ Y(kc, [["render", Kc], ["__scopeId", "data-v-0aaaf597
|
|
|
3766
3773
|
FieldMetric: Nr,
|
|
3767
3774
|
FieldMultiselect: Uc,
|
|
3768
3775
|
FieldObject: Pr,
|
|
3769
|
-
FieldObjectAdvanced:
|
|
3770
|
-
FieldRadio:
|
|
3776
|
+
FieldObjectAdvanced: Rr,
|
|
3777
|
+
FieldRadio: qr,
|
|
3771
3778
|
FieldSelect: Yr,
|
|
3772
3779
|
FieldSelectionGroup: Dc,
|
|
3773
3780
|
FieldSwitch: xc,
|
|
@@ -3807,7 +3814,7 @@ const Dc = /* @__PURE__ */ Y(kc, [["render", Kc], ["__scopeId", "data-v-0aaaf597
|
|
|
3807
3814
|
}
|
|
3808
3815
|
}
|
|
3809
3816
|
},
|
|
3810
|
-
emits: ["validated", "modelUpdated"],
|
|
3817
|
+
emits: ["validated", "modelUpdated", "refreshModel"],
|
|
3811
3818
|
data() {
|
|
3812
3819
|
return {
|
|
3813
3820
|
child: ye()
|
|
@@ -3877,6 +3884,9 @@ const Dc = /* @__PURE__ */ Y(kc, [["render", Kc], ["__scopeId", "data-v-0aaaf597
|
|
|
3877
3884
|
fieldErrors(e) {
|
|
3878
3885
|
return this.errors.filter((t) => t.field.fieldName === e.fieldName).map((t) => t.error);
|
|
3879
3886
|
},
|
|
3887
|
+
onRefreshModel() {
|
|
3888
|
+
this.$emit("refreshModel");
|
|
3889
|
+
},
|
|
3880
3890
|
onModelUpdated(e, t) {
|
|
3881
3891
|
this.$emit("modelUpdated", e, t);
|
|
3882
3892
|
},
|
|
@@ -3892,7 +3902,7 @@ const Dc = /* @__PURE__ */ Y(kc, [["render", Kc], ["__scopeId", "data-v-0aaaf597
|
|
|
3892
3902
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
3893
3903
|
}
|
|
3894
3904
|
}
|
|
3895
|
-
}, Qc = (e) => (Ne("data-v-
|
|
3905
|
+
}, Qc = (e) => (Ne("data-v-49ca89d6"), e = e(), Pe(), e), em = ["innerHTML"], tm = { class: "icon-wrapper" }, nm = ["innerHTML"], rm = {
|
|
3896
3906
|
key: 0,
|
|
3897
3907
|
class: "link-wrapper"
|
|
3898
3908
|
}, im = /* @__PURE__ */ Qc(() => /* @__PURE__ */ m("span", { class: "section-header" }, "More info", -1)), am = { class: "field-wrap" }, sm = {
|
|
@@ -3958,8 +3968,9 @@ function cm(e, t, n, r, a, i) {
|
|
|
3958
3968
|
schema: i.schema,
|
|
3959
3969
|
vfg: n.vfg,
|
|
3960
3970
|
onModelUpdated: i.onModelUpdated,
|
|
3971
|
+
onRefreshModel: i.onRefreshModel,
|
|
3961
3972
|
onValidated: i.onFieldValidated
|
|
3962
|
-
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onValidated"])),
|
|
3973
|
+
}), null, 16, ["disabled", "form-options", "hint", "model", "schema", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])),
|
|
3963
3974
|
i.buttonVisibility(n.field) ? (u(), p("div", sm, [
|
|
3964
3975
|
(u(!0), p(K, null, Z(n.field.buttons, (o, d) => (u(), p("button", {
|
|
3965
3976
|
key: d,
|
|
@@ -3983,7 +3994,7 @@ function cm(e, t, n, r, a, i) {
|
|
|
3983
3994
|
])) : $("", !0)
|
|
3984
3995
|
], 2);
|
|
3985
3996
|
}
|
|
3986
|
-
const mm = /* @__PURE__ */ Y(Xc, [["render", cm], ["__scopeId", "data-v-
|
|
3997
|
+
const mm = /* @__PURE__ */ Y(Xc, [["render", cm], ["__scopeId", "data-v-49ca89d6"]]), fm = {
|
|
3987
3998
|
name: "FormGenerator",
|
|
3988
3999
|
components: { formGroup: mm },
|
|
3989
4000
|
mixins: [yr],
|
|
@@ -4045,7 +4056,7 @@ const mm = /* @__PURE__ */ Y(Xc, [["render", cm], ["__scopeId", "data-v-49edac88
|
|
|
4045
4056
|
}
|
|
4046
4057
|
}
|
|
4047
4058
|
},
|
|
4048
|
-
emits: ["validated", "modelUpdated"],
|
|
4059
|
+
emits: ["validated", "modelUpdated", "refreshModel"],
|
|
4049
4060
|
data() {
|
|
4050
4061
|
return {
|
|
4051
4062
|
vfg: this,
|
|
@@ -4101,6 +4112,9 @@ const mm = /* @__PURE__ */ Y(Xc, [["render", cm], ["__scopeId", "data-v-49edac88
|
|
|
4101
4112
|
const r = this.errors.length === 0;
|
|
4102
4113
|
this.$emit("validated", r, this.errors, this);
|
|
4103
4114
|
},
|
|
4115
|
+
onRefreshModel() {
|
|
4116
|
+
this.$emit("refreshModel");
|
|
4117
|
+
},
|
|
4104
4118
|
onModelUpdated(e, t) {
|
|
4105
4119
|
this.$emit("modelUpdated", e, t);
|
|
4106
4120
|
},
|
|
@@ -4155,8 +4169,9 @@ function gm(e, t, n, r, a, i) {
|
|
|
4155
4169
|
options: n.options,
|
|
4156
4170
|
vfg: a.vfg,
|
|
4157
4171
|
onModelUpdated: i.onModelUpdated,
|
|
4172
|
+
onRefreshModel: i.onRefreshModel,
|
|
4158
4173
|
onValidated: i.onFieldValidated
|
|
4159
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onValidated"])) : $("", !0)
|
|
4174
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : $("", !0)
|
|
4160
4175
|
], 64))), 128))
|
|
4161
4176
|
]),
|
|
4162
4177
|
_: 1
|
|
@@ -4192,8 +4207,9 @@ function gm(e, t, n, r, a, i) {
|
|
|
4192
4207
|
options: n.options,
|
|
4193
4208
|
vfg: a.vfg,
|
|
4194
4209
|
onModelUpdated: i.onModelUpdated,
|
|
4210
|
+
onRefreshModel: i.onRefreshModel,
|
|
4195
4211
|
onValidated: i.onFieldValidated
|
|
4196
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onValidated"])) : $("", !0)
|
|
4212
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : $("", !0)
|
|
4197
4213
|
], 64))), 128))
|
|
4198
4214
|
]),
|
|
4199
4215
|
_: 2
|
|
@@ -4224,8 +4240,9 @@ function gm(e, t, n, r, a, i) {
|
|
|
4224
4240
|
options: n.options,
|
|
4225
4241
|
vfg: a.vfg,
|
|
4226
4242
|
onModelUpdated: i.onModelUpdated,
|
|
4243
|
+
onRefreshModel: i.onRefreshModel,
|
|
4227
4244
|
onValidated: i.onFieldValidated
|
|
4228
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onValidated"])) : $("", !0)
|
|
4245
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : $("", !0)
|
|
4229
4246
|
], 64))), 128))
|
|
4230
4247
|
]),
|
|
4231
4248
|
_: 2
|
|
@@ -4263,8 +4280,9 @@ function gm(e, t, n, r, a, i) {
|
|
|
4263
4280
|
options: n.options,
|
|
4264
4281
|
vfg: a.vfg,
|
|
4265
4282
|
onModelUpdated: i.onModelUpdated,
|
|
4283
|
+
onRefreshModel: i.onRefreshModel,
|
|
4266
4284
|
onValidated: i.onFieldValidated
|
|
4267
|
-
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onValidated"])) : $("", !0)
|
|
4285
|
+
}, null, 8, ["errors", "field", "model", "options", "vfg", "onModelUpdated", "onRefreshModel", "onValidated"])) : $("", !0)
|
|
4268
4286
|
], 64))), 128))
|
|
4269
4287
|
]),
|
|
4270
4288
|
_: 2
|
|
@@ -4272,7 +4290,7 @@ function gm(e, t, n, r, a, i) {
|
|
|
4272
4290
|
], 64))), 128))
|
|
4273
4291
|
])) : $("", !0);
|
|
4274
4292
|
}
|
|
4275
|
-
const le = /* @__PURE__ */ Y(fm, [["render", gm]]),
|
|
4293
|
+
const le = /* @__PURE__ */ Y(fm, [["render", gm]]), qn = /* @__PURE__ */ new Set([
|
|
4276
4294
|
"config-client_id",
|
|
4277
4295
|
"config-client_secret",
|
|
4278
4296
|
"config-issuer"
|
|
@@ -4370,12 +4388,12 @@ const le = /* @__PURE__ */ Y(fm, [["render", gm]]), Rn = /* @__PURE__ */ new Set
|
|
|
4370
4388
|
};
|
|
4371
4389
|
const t = this.formSchema.fields.reduce((n, r) => (n[r.model] = r, n), {});
|
|
4372
4390
|
this.commonFieldsSchema = {
|
|
4373
|
-
fields: Array.from(
|
|
4391
|
+
fields: Array.from(qn).reduce((n, r) => (t[r] && n.push(t[r]), n), [])
|
|
4374
4392
|
}, this.authFieldsSchema = {
|
|
4375
4393
|
fields: Array.from(Kn).reduce((n, r) => (t[r] && n.push(t[r]), n), [])
|
|
4376
4394
|
}, this.advancedFieldsSchema = {
|
|
4377
4395
|
fields: this.formSchema.fields.filter(
|
|
4378
|
-
(n) => n.model.startsWith("config") && n.model !== "config-auth_methods" && !
|
|
4396
|
+
(n) => n.model.startsWith("config") && n.model !== "config-auth_methods" && !qn.has(n.model) && !Kn.has(n.model) || n.model === "tags"
|
|
4379
4397
|
).reduce((n, r) => {
|
|
4380
4398
|
var a, i, l, s;
|
|
4381
4399
|
switch (r.model) {
|
|
@@ -4725,7 +4743,7 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
4725
4743
|
disabled: !1
|
|
4726
4744
|
}
|
|
4727
4745
|
]
|
|
4728
|
-
},
|
|
4746
|
+
}, Rm = {
|
|
4729
4747
|
fields: [
|
|
4730
4748
|
{
|
|
4731
4749
|
type: "input",
|
|
@@ -4756,13 +4774,13 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
4756
4774
|
disabled: !1
|
|
4757
4775
|
}
|
|
4758
4776
|
]
|
|
4759
|
-
},
|
|
4777
|
+
}, qe = (e) => (Ne("data-v-bb5a3a33"), e = e(), Pe(), e), qm = { class: "general-settings" }, Km = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "header-wrapper" }, [
|
|
4760
4778
|
/* @__PURE__ */ m("span", { class: "section-header" }, "General Configuration Settings")
|
|
4761
|
-
], -1)), Dm = /* @__PURE__ */
|
|
4779
|
+
], -1)), Dm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), Bm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("hr", null, null, -1)), zm = { class: "sub-form" }, Ym = { class: "general-settings" }, Hm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "header-wrapper" }, [
|
|
4762
4780
|
/* @__PURE__ */ m("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
4763
|
-
], -1)), xm = /* @__PURE__ */
|
|
4781
|
+
], -1)), xm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "description" }, " Parameters for setting up storage. ", -1)), Gm = { class: "sub-form" }, Wm = { class: "general-settings" }, Zm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "header-wrapper" }, [
|
|
4764
4782
|
/* @__PURE__ */ m("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
4765
|
-
], -1)), Jm = /* @__PURE__ */
|
|
4783
|
+
], -1)), Jm = /* @__PURE__ */ qe(() => /* @__PURE__ */ m("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), Xm = /* @__PURE__ */ ue({
|
|
4766
4784
|
__name: "ACMEForm",
|
|
4767
4785
|
props: {
|
|
4768
4786
|
formModel: {
|
|
@@ -4801,24 +4819,24 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
4801
4819
|
var _;
|
|
4802
4820
|
const g = we(Pm);
|
|
4803
4821
|
for (const N of g.fields) {
|
|
4804
|
-
const
|
|
4805
|
-
N.help === void 0 && typeof
|
|
4822
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
4823
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
4806
4824
|
}
|
|
4807
4825
|
return g;
|
|
4808
4826
|
}), l = D(() => {
|
|
4809
4827
|
var _;
|
|
4810
4828
|
const g = we(jm);
|
|
4811
4829
|
for (const N of g.fields) {
|
|
4812
|
-
const
|
|
4813
|
-
N.help === void 0 && typeof
|
|
4830
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
4831
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
4814
4832
|
}
|
|
4815
4833
|
return g;
|
|
4816
4834
|
}), s = D(() => {
|
|
4817
4835
|
var _;
|
|
4818
|
-
const g = we(
|
|
4836
|
+
const g = we(Rm);
|
|
4819
4837
|
for (const N of g.fields) {
|
|
4820
|
-
const
|
|
4821
|
-
N.help === void 0 && typeof
|
|
4838
|
+
const R = (_ = a.value[N.model]) == null ? void 0 : _.help;
|
|
4839
|
+
N.help === void 0 && typeof R == "string" && (N.help = R);
|
|
4822
4840
|
}
|
|
4823
4841
|
return g;
|
|
4824
4842
|
}), o = D(() => ({
|
|
@@ -4876,7 +4894,7 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
4876
4894
|
_ === "config-storage" && (r.value = g), t.onModelUpdated();
|
|
4877
4895
|
};
|
|
4878
4896
|
return (g, _) => {
|
|
4879
|
-
const N = O("KSelect"),
|
|
4897
|
+
const N = O("KSelect"), R = O("KTabs");
|
|
4880
4898
|
return u(), p("div", null, [
|
|
4881
4899
|
e.formModel.id && e.isEditing || !e.isEditing ? (u(), I(le, {
|
|
4882
4900
|
key: 0,
|
|
@@ -4886,9 +4904,9 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
4886
4904
|
schema: o.value,
|
|
4887
4905
|
onModelUpdated: e.onModelUpdated
|
|
4888
4906
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : $("", !0),
|
|
4889
|
-
w(
|
|
4907
|
+
w(R, { tabs: S }, {
|
|
4890
4908
|
general: M(() => [
|
|
4891
|
-
m("div",
|
|
4909
|
+
m("div", qm, [
|
|
4892
4910
|
Km,
|
|
4893
4911
|
Dm,
|
|
4894
4912
|
A.value ? (u(), I(le, {
|
|
@@ -5000,8 +5018,8 @@ const Um = /* @__PURE__ */ Y(vm, [["render", Fm], ["__scopeId", "data-v-bb72c68e
|
|
|
5000
5018
|
isEditing: { type: Boolean }
|
|
5001
5019
|
},
|
|
5002
5020
|
setup(e) {
|
|
5003
|
-
var
|
|
5004
|
-
at(fe, (
|
|
5021
|
+
var R;
|
|
5022
|
+
at(fe, (R = gt()) == null ? void 0 : R[Ge]);
|
|
5005
5023
|
const t = {
|
|
5006
5024
|
fixed: [
|
|
5007
5025
|
{
|
|
@@ -5176,7 +5194,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5176
5194
|
model: v.formModel,
|
|
5177
5195
|
options: v.formOptions,
|
|
5178
5196
|
schema: l.value,
|
|
5179
|
-
onModelUpdated: b[0] || (b[0] = (
|
|
5197
|
+
onModelUpdated: b[0] || (b[0] = (q, X) => v.onModelUpdated(q, X))
|
|
5180
5198
|
}, null, 8, ["model", "options", "schema"]),
|
|
5181
5199
|
w(Xt, { class: "rla-form-request-limits" }, {
|
|
5182
5200
|
title: M(() => [
|
|
@@ -5213,22 +5231,22 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5213
5231
|
_: 1
|
|
5214
5232
|
}),
|
|
5215
5233
|
m("div", sf, [
|
|
5216
|
-
(u(!0), p(K, null, Z(k.value, (
|
|
5217
|
-
key: `window-type-${
|
|
5234
|
+
(u(!0), p(K, null, Z(k.value, (q) => (u(), I(G, {
|
|
5235
|
+
key: `window-type-${q}`,
|
|
5218
5236
|
"model-value": E.value,
|
|
5219
|
-
name:
|
|
5220
|
-
"selected-value":
|
|
5237
|
+
name: q,
|
|
5238
|
+
"selected-value": q,
|
|
5221
5239
|
"onUpdate:modelValue": L
|
|
5222
5240
|
}, {
|
|
5223
5241
|
default: M(() => [
|
|
5224
|
-
te(V(U(a)(`rla.window_type.options.${
|
|
5242
|
+
te(V(U(a)(`rla.window_type.options.${q}`)), 1)
|
|
5225
5243
|
]),
|
|
5226
5244
|
_: 2
|
|
5227
5245
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
5228
5246
|
])
|
|
5229
5247
|
]),
|
|
5230
5248
|
m("div", of, [
|
|
5231
|
-
(u(!0), p(K, null, Z(y.value, (
|
|
5249
|
+
(u(!0), p(K, null, Z(y.value, (q, X) => (u(), p("div", {
|
|
5232
5250
|
key: X.toString()
|
|
5233
5251
|
}, [
|
|
5234
5252
|
w(F, {
|
|
@@ -5245,14 +5263,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5245
5263
|
class: "rla-form-request-limits-inputs"
|
|
5246
5264
|
}, [
|
|
5247
5265
|
w(de, {
|
|
5248
|
-
"model-value":
|
|
5266
|
+
"model-value": q.limit && q.limit.toString(),
|
|
5249
5267
|
placeholder: U(a)("rla.request_limits.request_number"),
|
|
5250
5268
|
type: "number",
|
|
5251
5269
|
"onUpdate:modelValue": (Ot) => j(X, Number.parseInt(Ot))
|
|
5252
5270
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5253
5271
|
m("div", null, V(U(a)("rla.request_limits.interval_determiner")), 1),
|
|
5254
5272
|
w(de, {
|
|
5255
|
-
"model-value":
|
|
5273
|
+
"model-value": q.windowSize && q.windowSize.toString(),
|
|
5256
5274
|
placeholder: U(a)("rla.request_limits.time_interval"),
|
|
5257
5275
|
type: "number",
|
|
5258
5276
|
"onUpdate:modelValue": (Ot) => g(X, Number.parseInt(Ot))
|
|
@@ -5286,24 +5304,24 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5286
5304
|
o.value.length > 0 ? (u(), p("div", cf, [
|
|
5287
5305
|
m("div", null, V(U(a)("rla.start_with_a_use_case")), 1),
|
|
5288
5306
|
m("div", mf, [
|
|
5289
|
-
(u(!0), p(K, null, Z(o.value, (
|
|
5307
|
+
(u(!0), p(K, null, Z(o.value, (q, X) => (u(), I(Ke, {
|
|
5290
5308
|
key: `use-case-${X}`,
|
|
5291
5309
|
"max-width": "300"
|
|
5292
5310
|
}, {
|
|
5293
5311
|
content: M(() => [
|
|
5294
|
-
m("div", null, V(
|
|
5312
|
+
m("div", null, V(q.description), 1),
|
|
5295
5313
|
ff,
|
|
5296
|
-
m("div", null, V(U(a)("rla.request_limits.label")) + ": " + V(
|
|
5297
|
-
m("div", null, V(U(a)("rla.request_limits.time_interval")) + ": " + V(
|
|
5314
|
+
m("div", null, V(U(a)("rla.request_limits.label")) + ": " + V(q.config.limit), 1),
|
|
5315
|
+
m("div", null, V(U(a)("rla.request_limits.time_interval")) + ": " + V(q.config.window_size), 1)
|
|
5298
5316
|
]),
|
|
5299
5317
|
default: M(() => [
|
|
5300
5318
|
w(ee, {
|
|
5301
5319
|
appearance: f.value === `${E.value}-${X}` ? "info" : "decorative",
|
|
5302
5320
|
class: "rla-form-request-limits-examples-badge",
|
|
5303
|
-
onClick: () => T(
|
|
5321
|
+
onClick: () => T(q, `${E.value}-${X}`)
|
|
5304
5322
|
}, {
|
|
5305
5323
|
default: M(() => [
|
|
5306
|
-
te(V(
|
|
5324
|
+
te(V(q.label), 1)
|
|
5307
5325
|
]),
|
|
5308
5326
|
_: 2
|
|
5309
5327
|
}, 1032, ["appearance", "onClick"])
|
|
@@ -5318,7 +5336,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5318
5336
|
}),
|
|
5319
5337
|
w(xr, {
|
|
5320
5338
|
modelValue: A.value,
|
|
5321
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
5339
|
+
"onUpdate:modelValue": b[1] || (b[1] = (q) => A.value = q),
|
|
5322
5340
|
class: "rla-form-identifiers",
|
|
5323
5341
|
items: c.value,
|
|
5324
5342
|
label: U(a)("rla.identifiers.label"),
|
|
@@ -5329,7 +5347,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5329
5347
|
}
|
|
5330
5348
|
},
|
|
5331
5349
|
required: "",
|
|
5332
|
-
onSelected: b[2] || (b[2] = (
|
|
5350
|
+
onSelected: b[2] || (b[2] = (q) => i.onModelUpdated(q.value, "config-identifier"))
|
|
5333
5351
|
}, {
|
|
5334
5352
|
"label-tooltip": M(() => [
|
|
5335
5353
|
m("div", {
|
|
@@ -5359,20 +5377,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5359
5377
|
"model-value": S.value && S.value.toString(),
|
|
5360
5378
|
placeholder: U(a)("rla.error_message.code_placeholder"),
|
|
5361
5379
|
type: "number",
|
|
5362
|
-
"onUpdate:modelValue": b[3] || (b[3] = (
|
|
5380
|
+
"onUpdate:modelValue": b[3] || (b[3] = (q) => v.onModelUpdated(Number.parseInt(q), "config-error_code"))
|
|
5363
5381
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5364
5382
|
gf,
|
|
5365
5383
|
w(de, {
|
|
5366
5384
|
"model-value": P.value,
|
|
5367
5385
|
placeholder: U(a)("rla.error_message.message_placeholder"),
|
|
5368
|
-
"onUpdate:modelValue": b[4] || (b[4] = (
|
|
5386
|
+
"onUpdate:modelValue": b[4] || (b[4] = (q) => v.onModelUpdated(q, "config-error_message"))
|
|
5369
5387
|
}, null, 8, ["model-value", "placeholder"])
|
|
5370
5388
|
])
|
|
5371
5389
|
])
|
|
5372
5390
|
]),
|
|
5373
5391
|
w(Gr, {
|
|
5374
5392
|
modelValue: h.value,
|
|
5375
|
-
"onUpdate:modelValue": b[8] || (b[8] = (
|
|
5393
|
+
"onUpdate:modelValue": b[8] || (b[8] = (q) => h.value = q),
|
|
5376
5394
|
"trigger-label": U(a)("rla.view_advanced_fields")
|
|
5377
5395
|
}, {
|
|
5378
5396
|
default: M(() => [
|
|
@@ -5380,7 +5398,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5380
5398
|
model: v.formModel,
|
|
5381
5399
|
options: v.formOptions,
|
|
5382
5400
|
schema: s.value.endsWithStrategy,
|
|
5383
|
-
onModelUpdated: b[5] || (b[5] = (
|
|
5401
|
+
onModelUpdated: b[5] || (b[5] = (q, X) => v.onModelUpdated(q, X))
|
|
5384
5402
|
}, null, 8, ["model", "options", "schema"]),
|
|
5385
5403
|
v.formModel["config-strategy"] === "redis" ? (u(), I(Xt, {
|
|
5386
5404
|
key: 0,
|
|
@@ -5392,7 +5410,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5392
5410
|
model: v.formModel,
|
|
5393
5411
|
options: v.formOptions,
|
|
5394
5412
|
schema: s.value.redis,
|
|
5395
|
-
onModelUpdated: b[6] || (b[6] = (
|
|
5413
|
+
onModelUpdated: b[6] || (b[6] = (q, X) => v.onModelUpdated(q, X))
|
|
5396
5414
|
}, null, 8, ["model", "options", "schema"])
|
|
5397
5415
|
]),
|
|
5398
5416
|
_: 1
|
|
@@ -5401,7 +5419,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5401
5419
|
model: v.formModel,
|
|
5402
5420
|
options: v.formOptions,
|
|
5403
5421
|
schema: s.value.afterStrategy,
|
|
5404
|
-
onModelUpdated: b[7] || (b[7] = (
|
|
5422
|
+
onModelUpdated: b[7] || (b[7] = (q, X) => v.onModelUpdated(q, X))
|
|
5405
5423
|
}, null, 8, ["model", "options", "schema"])
|
|
5406
5424
|
]),
|
|
5407
5425
|
_: 1
|