@quickflo/quickforms-vue 1.16.4 → 1.16.6
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/components/DynamicForm.vue.d.ts.map +1 -1
- package/dist/index.js +150 -147
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/DynamicForm.vue"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/DynamicForm.vue"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA2SrD,iBAAS,cAAc;qBA4HO,GAAG;EAGhC;AAmBD,QAAA,MAAM,eAAe;gBAxJT,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;kBAqK8I,IAAI;;;;;;;;;;;;;;eAnbpL,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;gBA8Q5D,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;kBAqK8I,IAAI;;;;;;;;;;;;;;eAnbpL,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;aAd5D,WAAW,CAAC,GAAG,CAAC;wBACL,OAAO;4EA6b5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -365,7 +365,7 @@ var Il = {};
|
|
|
365
365
|
}
|
|
366
366
|
optimizeNames(v, k) {
|
|
367
367
|
if (v[this.name.str])
|
|
368
|
-
return this.rhs && (this.rhs =
|
|
368
|
+
return this.rhs && (this.rhs = I(this.rhs, v, k)), this;
|
|
369
369
|
}
|
|
370
370
|
get names() {
|
|
371
371
|
return this.rhs instanceof e._CodeOrName ? this.rhs.names : {};
|
|
@@ -380,7 +380,7 @@ var Il = {};
|
|
|
380
380
|
}
|
|
381
381
|
optimizeNames(v, k) {
|
|
382
382
|
if (!(this.lhs instanceof e.Name && !v[this.lhs.str] && !this.sideEffects))
|
|
383
|
-
return this.rhs =
|
|
383
|
+
return this.rhs = I(this.rhs, v, k), this;
|
|
384
384
|
}
|
|
385
385
|
get names() {
|
|
386
386
|
const v = this.lhs instanceof e.Name ? {} : { ...this.lhs.names };
|
|
@@ -433,7 +433,7 @@ var Il = {};
|
|
|
433
433
|
return `${this.code}` ? this : void 0;
|
|
434
434
|
}
|
|
435
435
|
optimizeNames(v, k) {
|
|
436
|
-
return this.code =
|
|
436
|
+
return this.code = I(this.code, v, k), this;
|
|
437
437
|
}
|
|
438
438
|
get names() {
|
|
439
439
|
return this.code instanceof e._CodeOrName ? this.code.names : {};
|
|
@@ -504,7 +504,7 @@ var Il = {};
|
|
|
504
504
|
optimizeNames(v, k) {
|
|
505
505
|
var A;
|
|
506
506
|
if (this.else = (A = this.else) === null || A === void 0 ? void 0 : A.optimizeNames(v, k), !!(super.optimizeNames(v, k) || this.else))
|
|
507
|
-
return this.condition =
|
|
507
|
+
return this.condition = I(this.condition, v, k), this;
|
|
508
508
|
}
|
|
509
509
|
get names() {
|
|
510
510
|
const v = super.names;
|
|
@@ -524,7 +524,7 @@ var Il = {};
|
|
|
524
524
|
}
|
|
525
525
|
optimizeNames(v, k) {
|
|
526
526
|
if (super.optimizeNames(v, k))
|
|
527
|
-
return this.iteration =
|
|
527
|
+
return this.iteration = I(this.iteration, v, k), this;
|
|
528
528
|
}
|
|
529
529
|
get names() {
|
|
530
530
|
return P(super.names, this.iteration.names);
|
|
@@ -552,7 +552,7 @@ var Il = {};
|
|
|
552
552
|
}
|
|
553
553
|
optimizeNames(v, k) {
|
|
554
554
|
if (super.optimizeNames(v, k))
|
|
555
|
-
return this.iterable =
|
|
555
|
+
return this.iterable = I(this.iterable, v, k), this;
|
|
556
556
|
}
|
|
557
557
|
get names() {
|
|
558
558
|
return P(super.names, this.iterable.names);
|
|
@@ -591,7 +591,7 @@ var Il = {};
|
|
|
591
591
|
return this.catch && P(v, this.catch.names), this.finally && P(v, this.finally.names), v;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
class
|
|
594
|
+
class N extends m {
|
|
595
595
|
constructor(v) {
|
|
596
596
|
super(), this.error = v;
|
|
597
597
|
}
|
|
@@ -599,7 +599,7 @@ var Il = {};
|
|
|
599
599
|
return `catch(${this.error})` + super.render(v);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
N.kind = "catch";
|
|
603
603
|
class B extends m {
|
|
604
604
|
render(v) {
|
|
605
605
|
return "finally" + super.render(v);
|
|
@@ -752,9 +752,9 @@ var Il = {};
|
|
|
752
752
|
const K = new D();
|
|
753
753
|
if (this._blockNode(K), this.code(v), k) {
|
|
754
754
|
const Y = this.name("e");
|
|
755
|
-
this._currNode = K.catch = new
|
|
755
|
+
this._currNode = K.catch = new N(Y), k(Y);
|
|
756
756
|
}
|
|
757
|
-
return A && (this._currNode = K.finally = new B(), this.code(A)), this._endBlockNode(
|
|
757
|
+
return A && (this._currNode = K.finally = new B(), this.code(A)), this._endBlockNode(N, B);
|
|
758
758
|
}
|
|
759
759
|
// `throw` statement
|
|
760
760
|
throw(v) {
|
|
@@ -825,7 +825,7 @@ var Il = {};
|
|
|
825
825
|
function U(_, v) {
|
|
826
826
|
return v instanceof e._CodeOrName ? P(_, v.names) : _;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function I(_, v, k) {
|
|
829
829
|
if (_ instanceof e.Name)
|
|
830
830
|
return A(_);
|
|
831
831
|
if (!K(_))
|
|
@@ -1104,8 +1104,8 @@ ei.default = W0;
|
|
|
1104
1104
|
return b && (S = (0, e.str)`${S}${(0, t.getErrorPath)(b, t.Type.Str)}`), [h.schemaPath, S];
|
|
1105
1105
|
}
|
|
1106
1106
|
function y(g, { params: p, message: b }, w) {
|
|
1107
|
-
const { keyword: S, data: x, schemaValue: O, it: T } = g, { opts: D, propertyName:
|
|
1108
|
-
w.push([h.keyword, S], [h.params, typeof p == "function" ? p(g) : p || (0, e._)`{}`]), D.messages && w.push([h.message, typeof b == "function" ? b(g) : b]), D.verbose && w.push([h.schema, O], [h.parentSchema, (0, e._)`${B}${R}`], [i.default.data, x]),
|
|
1107
|
+
const { keyword: S, data: x, schemaValue: O, it: T } = g, { opts: D, propertyName: N, topSchemaRef: B, schemaPath: R } = T;
|
|
1108
|
+
w.push([h.keyword, S], [h.params, typeof p == "function" ? p(g) : p || (0, e._)`{}`]), D.messages && w.push([h.message, typeof b == "function" ? b(g) : b]), D.verbose && w.push([h.schema, O], [h.parentSchema, (0, e._)`${B}${R}`], [i.default.data, x]), N && w.push([h.propertyName, N]);
|
|
1109
1109
|
}
|
|
1110
1110
|
})(Or);
|
|
1111
1111
|
Object.defineProperty(Sn, "__esModule", { value: !0 });
|
|
@@ -2762,7 +2762,7 @@ Qa.default = Vd;
|
|
|
2762
2762
|
const { es5: $, lines: _ } = this.opts.code;
|
|
2763
2763
|
this.scope = new l.ValueScope({ scope: {}, prefixes: y, es5: $, lines: _ }), this.logger = P(C.logger);
|
|
2764
2764
|
const v = C.validateFormats;
|
|
2765
|
-
C.validateFormats = !1, this.RULES = (0, s.getRules)(), x.call(this, g, C, "NOT SUPPORTED"), x.call(this, p, C, "DEPRECATED", "warn"), this._metaOpts = B.call(this), C.formats && D.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), C.keywords &&
|
|
2765
|
+
C.validateFormats = !1, this.RULES = (0, s.getRules)(), x.call(this, g, C, "NOT SUPPORTED"), x.call(this, p, C, "DEPRECATED", "warn"), this._metaOpts = B.call(this), C.formats && D.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), C.keywords && N.call(this, C.keywords), typeof C.meta == "object" && this.addMetaSchema(C.meta), T.call(this), C.validateFormats = v;
|
|
2766
2766
|
}
|
|
2767
2767
|
_addVocabularies() {
|
|
2768
2768
|
this.addKeyword("$async");
|
|
@@ -2923,7 +2923,7 @@ Qa.default = Vd;
|
|
|
2923
2923
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
2924
2924
|
} else
|
|
2925
2925
|
throw new Error("invalid addKeywords parameters");
|
|
2926
|
-
if (
|
|
2926
|
+
if (I.call(this, _, $), !$)
|
|
2927
2927
|
return (0, h.eachItem)(_, (k) => Z.call(this, k)), this;
|
|
2928
2928
|
Se.call(this, $);
|
|
2929
2929
|
const v = {
|
|
@@ -3040,7 +3040,7 @@ Qa.default = Vd;
|
|
|
3040
3040
|
C && this.addFormat(L, C);
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3043
|
+
function N(L) {
|
|
3044
3044
|
if (Array.isArray(L)) {
|
|
3045
3045
|
this.addVocabulary(L);
|
|
3046
3046
|
return;
|
|
@@ -3071,7 +3071,7 @@ Qa.default = Vd;
|
|
|
3071
3071
|
throw new Error("logger must implement log, warn and error methods");
|
|
3072
3072
|
}
|
|
3073
3073
|
const U = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
3074
|
-
function
|
|
3074
|
+
function I(L, C) {
|
|
3075
3075
|
const { RULES: $ } = this;
|
|
3076
3076
|
if ((0, h.eachItem)(L, (_) => {
|
|
3077
3077
|
if ($.keywords[_])
|
|
@@ -4540,8 +4540,8 @@ const Sw = /* @__PURE__ */ Xu(Qd);
|
|
|
4540
4540
|
var Vl = { exports: {} }, Xd = {};
|
|
4541
4541
|
(function(n) {
|
|
4542
4542
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.formatNames = n.fastFormats = n.fullFormats = void 0;
|
|
4543
|
-
function e(
|
|
4544
|
-
return { validate:
|
|
4543
|
+
function e(N, B) {
|
|
4544
|
+
return { validate: N, compare: B };
|
|
4545
4545
|
}
|
|
4546
4546
|
n.fullFormats = {
|
|
4547
4547
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -4600,72 +4600,72 @@ var Vl = { exports: {} }, Xd = {};
|
|
|
4600
4600
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
4601
4601
|
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
4602
4602
|
}, n.formatNames = Object.keys(n.fullFormats);
|
|
4603
|
-
function t(
|
|
4604
|
-
return
|
|
4603
|
+
function t(N) {
|
|
4604
|
+
return N % 4 === 0 && (N % 100 !== 0 || N % 400 === 0);
|
|
4605
4605
|
}
|
|
4606
4606
|
const i = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
4607
|
-
function s(
|
|
4608
|
-
const B = i.exec(
|
|
4607
|
+
function s(N) {
|
|
4608
|
+
const B = i.exec(N);
|
|
4609
4609
|
if (!B)
|
|
4610
4610
|
return !1;
|
|
4611
4611
|
const R = +B[1], P = +B[2], U = +B[3];
|
|
4612
4612
|
return P >= 1 && P <= 12 && U >= 1 && U <= (P === 2 && t(R) ? 29 : r[P]);
|
|
4613
4613
|
}
|
|
4614
|
-
function o(
|
|
4615
|
-
if (
|
|
4616
|
-
return
|
|
4614
|
+
function o(N, B) {
|
|
4615
|
+
if (N && B)
|
|
4616
|
+
return N > B ? 1 : N < B ? -1 : 0;
|
|
4617
4617
|
}
|
|
4618
4618
|
const l = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
4619
|
-
function a(
|
|
4620
|
-
const R = l.exec(
|
|
4619
|
+
function a(N, B) {
|
|
4620
|
+
const R = l.exec(N);
|
|
4621
4621
|
if (!R)
|
|
4622
4622
|
return !1;
|
|
4623
|
-
const P = +R[1], U = +R[2],
|
|
4624
|
-
return (P <= 23 && U <= 59 &&
|
|
4623
|
+
const P = +R[1], U = +R[2], I = +R[3], Z = R[5];
|
|
4624
|
+
return (P <= 23 && U <= 59 && I <= 59 || P === 23 && U === 59 && I === 60) && (!B || Z !== "");
|
|
4625
4625
|
}
|
|
4626
|
-
function c(
|
|
4627
|
-
if (!(
|
|
4626
|
+
function c(N, B) {
|
|
4627
|
+
if (!(N && B))
|
|
4628
4628
|
return;
|
|
4629
|
-
const R = l.exec(
|
|
4629
|
+
const R = l.exec(N), P = l.exec(B);
|
|
4630
4630
|
if (R && P)
|
|
4631
|
-
return
|
|
4631
|
+
return N = R[1] + R[2] + R[3] + (R[4] || ""), B = P[1] + P[2] + P[3] + (P[4] || ""), N > B ? 1 : N < B ? -1 : 0;
|
|
4632
4632
|
}
|
|
4633
4633
|
const h = /t|\s/i;
|
|
4634
|
-
function f(
|
|
4635
|
-
const B =
|
|
4634
|
+
function f(N) {
|
|
4635
|
+
const B = N.split(h);
|
|
4636
4636
|
return B.length === 2 && s(B[0]) && a(B[1], !0);
|
|
4637
4637
|
}
|
|
4638
|
-
function u(
|
|
4639
|
-
if (!(
|
|
4638
|
+
function u(N, B) {
|
|
4639
|
+
if (!(N && B))
|
|
4640
4640
|
return;
|
|
4641
|
-
const [R, P] =
|
|
4641
|
+
const [R, P] = N.split(h), [U, I] = B.split(h), Z = o(R, U);
|
|
4642
4642
|
if (Z !== void 0)
|
|
4643
|
-
return Z || c(P,
|
|
4643
|
+
return Z || c(P, I);
|
|
4644
4644
|
}
|
|
4645
4645
|
const d = /\/|:/, m = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
4646
|
-
function y(
|
|
4647
|
-
return d.test(
|
|
4646
|
+
function y(N) {
|
|
4647
|
+
return d.test(N) && m.test(N);
|
|
4648
4648
|
}
|
|
4649
4649
|
const g = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
4650
|
-
function p(
|
|
4651
|
-
return g.lastIndex = 0, g.test(
|
|
4650
|
+
function p(N) {
|
|
4651
|
+
return g.lastIndex = 0, g.test(N);
|
|
4652
4652
|
}
|
|
4653
4653
|
const b = -2147483648, w = 2 ** 31 - 1;
|
|
4654
|
-
function S(
|
|
4655
|
-
return Number.isInteger(
|
|
4654
|
+
function S(N) {
|
|
4655
|
+
return Number.isInteger(N) && N <= w && N >= b;
|
|
4656
4656
|
}
|
|
4657
|
-
function x(
|
|
4658
|
-
return Number.isInteger(
|
|
4657
|
+
function x(N) {
|
|
4658
|
+
return Number.isInteger(N);
|
|
4659
4659
|
}
|
|
4660
4660
|
function O() {
|
|
4661
4661
|
return !0;
|
|
4662
4662
|
}
|
|
4663
4663
|
const T = /[^\\]\\Z/;
|
|
4664
|
-
function D(
|
|
4665
|
-
if (T.test(
|
|
4664
|
+
function D(N) {
|
|
4665
|
+
if (T.test(N))
|
|
4666
4666
|
return !1;
|
|
4667
4667
|
try {
|
|
4668
|
-
return new RegExp(
|
|
4668
|
+
return new RegExp(N), !0;
|
|
4669
4669
|
} catch {
|
|
4670
4670
|
return !1;
|
|
4671
4671
|
}
|
|
@@ -4945,10 +4945,10 @@ function Lh(n) {
|
|
|
4945
4945
|
return typeof n == "boolean" || typeof n == "string" ? n : n && typeof n == "object" && n.valid === !1 ? n.message || "Validation failed" : !0;
|
|
4946
4946
|
}
|
|
4947
4947
|
function xt(n, e, t = {}) {
|
|
4948
|
-
const i = Ti(), r = (i == null ? void 0 : i.validationMode) || "ValidateAndShow", s = i == null ? void 0 : i.errorMessages, o = i == null ? void 0 : i.validators, l = i == null ? void 0 : i.validatorDebounce, a = (D,
|
|
4948
|
+
const i = Ti(), r = (i == null ? void 0 : i.validationMode) || "ValidateAndShow", s = i == null ? void 0 : i.errorMessages, o = i == null ? void 0 : i.validators, l = i == null ? void 0 : i.validatorDebounce, a = (D, N) => {
|
|
4949
4949
|
var R;
|
|
4950
4950
|
const B = e["x-error-messages"];
|
|
4951
|
-
return B != null && B[D] ? B[D] : (R = s == null ? void 0 : s[n]) != null && R[D] ? s[n][D] :
|
|
4951
|
+
return B != null && B[D] ? B[D] : (R = s == null ? void 0 : s[n]) != null && R[D] ? s[n][D] : N;
|
|
4952
4952
|
}, c = () => {
|
|
4953
4953
|
if (typeof l == "number")
|
|
4954
4954
|
return l;
|
|
@@ -4958,8 +4958,8 @@ function xt(n, e, t = {}) {
|
|
|
4958
4958
|
var R;
|
|
4959
4959
|
if (r === "NoValidation")
|
|
4960
4960
|
return !0;
|
|
4961
|
-
const
|
|
4962
|
-
if (
|
|
4961
|
+
const N = i == null ? void 0 : i.schema;
|
|
4962
|
+
if (N && ni.isRequired(N, n) && (D == null || D === ""))
|
|
4963
4963
|
return a(
|
|
4964
4964
|
"required",
|
|
4965
4965
|
`${e.title || n} is required`
|
|
@@ -5033,44 +5033,44 @@ function xt(n, e, t = {}) {
|
|
|
5033
5033
|
const P = Array.isArray(e.items) ? e.items[0] : e.items;
|
|
5034
5034
|
if (P && typeof P != "boolean")
|
|
5035
5035
|
for (let U = 0; U < D.length; U++) {
|
|
5036
|
-
const
|
|
5037
|
-
if (!(typeof
|
|
5038
|
-
if (P.type === "string" && typeof
|
|
5039
|
-
if (P.format === "email" && !Ih(
|
|
5036
|
+
const I = D[U];
|
|
5037
|
+
if (!(typeof I == "string" && /\{\{.*?\}\}/.test(I))) {
|
|
5038
|
+
if (P.type === "string" && typeof I == "string") {
|
|
5039
|
+
if (P.format === "email" && !Ih(I))
|
|
5040
5040
|
return a(
|
|
5041
5041
|
"items.format",
|
|
5042
|
-
`Item "${
|
|
5042
|
+
`Item "${I}" is not a valid email address`
|
|
5043
5043
|
);
|
|
5044
|
-
if ((P.format === "url" || P.format === "uri") && !Nh(
|
|
5044
|
+
if ((P.format === "url" || P.format === "uri") && !Nh(I))
|
|
5045
5045
|
return a(
|
|
5046
5046
|
"items.format",
|
|
5047
|
-
`Item "${
|
|
5047
|
+
`Item "${I}" is not a valid URL`
|
|
5048
5048
|
);
|
|
5049
|
-
if (P.minLength !== void 0 &&
|
|
5049
|
+
if (P.minLength !== void 0 && I.length < P.minLength)
|
|
5050
5050
|
return a(
|
|
5051
5051
|
"items.minLength",
|
|
5052
|
-
`Item "${
|
|
5052
|
+
`Item "${I}" must be at least ${P.minLength} characters`
|
|
5053
5053
|
);
|
|
5054
|
-
if (P.maxLength !== void 0 &&
|
|
5054
|
+
if (P.maxLength !== void 0 && I.length > P.maxLength)
|
|
5055
5055
|
return a(
|
|
5056
5056
|
"items.maxLength",
|
|
5057
|
-
`Item "${
|
|
5057
|
+
`Item "${I}" must be at most ${P.maxLength} characters`
|
|
5058
5058
|
);
|
|
5059
5059
|
if (P.pattern)
|
|
5060
5060
|
try {
|
|
5061
|
-
if (!new RegExp(P.pattern).test(
|
|
5061
|
+
if (!new RegExp(P.pattern).test(I))
|
|
5062
5062
|
return a(
|
|
5063
5063
|
"items.pattern",
|
|
5064
|
-
`Item "${
|
|
5064
|
+
`Item "${I}" has invalid format`
|
|
5065
5065
|
);
|
|
5066
5066
|
} catch {
|
|
5067
5067
|
console.warn("Invalid regex pattern:", P.pattern);
|
|
5068
5068
|
}
|
|
5069
5069
|
}
|
|
5070
|
-
if (P.enum && !P.enum.includes(
|
|
5070
|
+
if (P.enum && !P.enum.includes(I))
|
|
5071
5071
|
return a(
|
|
5072
5072
|
"items.enum",
|
|
5073
|
-
`Item "${
|
|
5073
|
+
`Item "${I}" is not a valid option`
|
|
5074
5074
|
);
|
|
5075
5075
|
}
|
|
5076
5076
|
}
|
|
@@ -5082,8 +5082,8 @@ function xt(n, e, t = {}) {
|
|
|
5082
5082
|
const B = o == null ? void 0 : o[n];
|
|
5083
5083
|
if (B)
|
|
5084
5084
|
try {
|
|
5085
|
-
const P = ((R = i == null ? void 0 : i.formValues) == null ? void 0 : R.call(i)) || {}, U = (i == null ? void 0 : i.context) || {},
|
|
5086
|
-
return
|
|
5085
|
+
const P = ((R = i == null ? void 0 : i.formValues) == null ? void 0 : R.call(i)) || {}, U = (i == null ? void 0 : i.context) || {}, I = B(D, P, U);
|
|
5086
|
+
return I instanceof Promise ? I.then(Lh) : Lh(I);
|
|
5087
5087
|
} catch (P) {
|
|
5088
5088
|
return console.error("Custom validator error for", n, ":", P), "Validation error";
|
|
5089
5089
|
}
|
|
@@ -5108,9 +5108,9 @@ function xt(n, e, t = {}) {
|
|
|
5108
5108
|
value: d.value
|
|
5109
5109
|
}) : D;
|
|
5110
5110
|
}), x = ee(() => {
|
|
5111
|
-
var
|
|
5111
|
+
var N, B;
|
|
5112
5112
|
const D = e["x-hint-mode"];
|
|
5113
|
-
return D || ((B = (
|
|
5113
|
+
return D || ((B = (N = i == null ? void 0 : i.componentDefaults) == null ? void 0 : N.hints) == null ? void 0 : B.showMode) || "always";
|
|
5114
5114
|
}), O = ee(() => {
|
|
5115
5115
|
const D = i == null ? void 0 : i.schema;
|
|
5116
5116
|
return D ? ni.isRequired(D, n) : !1;
|
|
@@ -5867,7 +5867,7 @@ const zh = /* @__PURE__ */ ht(Dk, [["render", Vk], ["__scopeId", "data-v-8012fc1
|
|
|
5867
5867
|
const O = c.value[b];
|
|
5868
5868
|
if (typeof O == "object" && O !== null) {
|
|
5869
5869
|
let T = w, D = !1;
|
|
5870
|
-
if (T = T.replace(/\{\{([^}]+)\}\}/g, (
|
|
5870
|
+
if (T = T.replace(/\{\{([^}]+)\}\}/g, (N, B) => {
|
|
5871
5871
|
const R = O[B.trim()];
|
|
5872
5872
|
return R != null && R !== "" ? (D = !0, String(R)) : "";
|
|
5873
5873
|
}), T = T.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), D && T.trim())
|
|
@@ -14756,20 +14756,20 @@ function SC(n, e, t) {
|
|
|
14756
14756
|
}
|
|
14757
14757
|
function b({ top: x, bottom: O, horizontal: T }) {
|
|
14758
14758
|
let D = [];
|
|
14759
|
-
for (let
|
|
14760
|
-
D.push(p(T[
|
|
14759
|
+
for (let N = 0; N < T.length; N += 2)
|
|
14760
|
+
D.push(p(T[N], x, T[N + 1], O));
|
|
14761
14761
|
return D;
|
|
14762
14762
|
}
|
|
14763
14763
|
function w(x, O, T) {
|
|
14764
|
-
let D = 1e9,
|
|
14765
|
-
function R(
|
|
14766
|
-
let xe = n.coordsAtPos(
|
|
14767
|
-
!xe || !L || (D = Math.min(xe.top, L.top, D),
|
|
14764
|
+
let D = 1e9, N = -1e9, B = [];
|
|
14765
|
+
function R(I, Z, de, Se, nt) {
|
|
14766
|
+
let xe = n.coordsAtPos(I, I == T.to ? -2 : 2), L = n.coordsAtPos(de, de == T.from ? 2 : -2);
|
|
14767
|
+
!xe || !L || (D = Math.min(xe.top, L.top, D), N = Math.max(xe.bottom, L.bottom, N), nt == we.LTR ? B.push(s && Z ? f : xe.left, s && Se ? u : L.right) : B.push(!s && Se ? f : L.left, !s && Z ? u : xe.right));
|
|
14768
14768
|
}
|
|
14769
14769
|
let P = x ?? T.from, U = O ?? T.to;
|
|
14770
|
-
for (let
|
|
14771
|
-
if (
|
|
14772
|
-
for (let Z = Math.max(
|
|
14770
|
+
for (let I of n.visibleRanges)
|
|
14771
|
+
if (I.to > P && I.from < U)
|
|
14772
|
+
for (let Z = Math.max(I.from, P), de = Math.min(I.to, U); ; ) {
|
|
14773
14773
|
let Se = n.state.doc.lineAt(Z);
|
|
14774
14774
|
for (let nt of n.bidiSpans(Se)) {
|
|
14775
14775
|
let xe = nt.from + Se.from, L = nt.to + Se.from;
|
|
@@ -14780,7 +14780,7 @@ function SC(n, e, t) {
|
|
|
14780
14780
|
if (Z = Se.to + 1, Z >= de)
|
|
14781
14781
|
break;
|
|
14782
14782
|
}
|
|
14783
|
-
return B.length == 0 && R(P, x == null, U, O == null, n.textDirection), { top: D, bottom:
|
|
14783
|
+
return B.length == 0 && R(P, x == null, U, O == null, n.textDirection), { top: D, bottom: N, horizontal: B };
|
|
14784
14784
|
}
|
|
14785
14785
|
function S(x, O) {
|
|
14786
14786
|
let T = l.top + (O ? x.top : x.bottom);
|
|
@@ -17292,29 +17292,29 @@ function Kc(n) {
|
|
|
17292
17292
|
function __(n) {
|
|
17293
17293
|
var e;
|
|
17294
17294
|
let { buffer: t, nodeSet: i, maxBufferLength: r = Ep, reused: s = [], minRepeatType: o = i.types.length } = n, l = Array.isArray(t) ? new Uc(t, t.length) : t, a = i.types, c = 0, h = 0;
|
|
17295
|
-
function f(x, O, T, D,
|
|
17296
|
-
let { id: R, start: P, end: U, size:
|
|
17297
|
-
if (
|
|
17298
|
-
if (l.next(),
|
|
17295
|
+
function f(x, O, T, D, N, B) {
|
|
17296
|
+
let { id: R, start: P, end: U, size: I } = l, Z = h, de = c;
|
|
17297
|
+
if (I < 0)
|
|
17298
|
+
if (l.next(), I == -1) {
|
|
17299
17299
|
let C = s[R];
|
|
17300
17300
|
T.push(C), D.push(P - x);
|
|
17301
17301
|
return;
|
|
17302
|
-
} else if (
|
|
17302
|
+
} else if (I == -3) {
|
|
17303
17303
|
c = R;
|
|
17304
17304
|
return;
|
|
17305
|
-
} else if (
|
|
17305
|
+
} else if (I == -4) {
|
|
17306
17306
|
h = R;
|
|
17307
17307
|
return;
|
|
17308
17308
|
} else
|
|
17309
|
-
throw new RangeError(`Unrecognized record size: ${
|
|
17309
|
+
throw new RangeError(`Unrecognized record size: ${I}`);
|
|
17310
17310
|
let Se = a[R], nt, xe, L = P - x;
|
|
17311
|
-
if (U - P <= r && (xe = g(l.pos - O,
|
|
17311
|
+
if (U - P <= r && (xe = g(l.pos - O, N))) {
|
|
17312
17312
|
let C = new Uint16Array(xe.size - xe.skip), $ = l.pos - xe.size, _ = C.length;
|
|
17313
17313
|
for (; l.pos > $; )
|
|
17314
17314
|
_ = p(xe.start, C, _);
|
|
17315
17315
|
nt = new Ai(C, U - xe.start, i), L = xe.start - x;
|
|
17316
17316
|
} else {
|
|
17317
|
-
let C = l.pos -
|
|
17317
|
+
let C = l.pos - I;
|
|
17318
17318
|
l.next();
|
|
17319
17319
|
let $ = [], _ = [], v = R >= o ? R : -1, k = 0, A = U;
|
|
17320
17320
|
for (; l.pos > C; )
|
|
@@ -17328,62 +17328,62 @@ function __(n) {
|
|
|
17328
17328
|
T.push(nt), D.push(L);
|
|
17329
17329
|
}
|
|
17330
17330
|
function u(x, O, T, D) {
|
|
17331
|
-
let
|
|
17331
|
+
let N = [], B = 0, R = -1;
|
|
17332
17332
|
for (; l.pos > O; ) {
|
|
17333
|
-
let { id: P, start: U, end:
|
|
17333
|
+
let { id: P, start: U, end: I, size: Z } = l;
|
|
17334
17334
|
if (Z > 4)
|
|
17335
17335
|
l.next();
|
|
17336
17336
|
else {
|
|
17337
17337
|
if (R > -1 && U < R)
|
|
17338
17338
|
break;
|
|
17339
|
-
R < 0 && (R =
|
|
17339
|
+
R < 0 && (R = I - r), N.push(P, U, I), B++, l.next();
|
|
17340
17340
|
}
|
|
17341
17341
|
}
|
|
17342
17342
|
if (B) {
|
|
17343
|
-
let P = new Uint16Array(B * 4), U =
|
|
17344
|
-
for (let
|
|
17345
|
-
P[Z++] = I
|
|
17346
|
-
T.push(new Ai(P,
|
|
17343
|
+
let P = new Uint16Array(B * 4), U = N[N.length - 2];
|
|
17344
|
+
for (let I = N.length - 3, Z = 0; I >= 0; I -= 3)
|
|
17345
|
+
P[Z++] = N[I], P[Z++] = N[I + 1] - U, P[Z++] = N[I + 2] - U, P[Z++] = Z;
|
|
17346
|
+
T.push(new Ai(P, N[2] - U, i)), D.push(U - x);
|
|
17347
17347
|
}
|
|
17348
17348
|
}
|
|
17349
17349
|
function d(x, O) {
|
|
17350
|
-
return (T, D,
|
|
17350
|
+
return (T, D, N) => {
|
|
17351
17351
|
let B = 0, R = T.length - 1, P, U;
|
|
17352
17352
|
if (R >= 0 && (P = T[R]) instanceof Pe) {
|
|
17353
|
-
if (!R && P.type == x && P.length ==
|
|
17353
|
+
if (!R && P.type == x && P.length == N)
|
|
17354
17354
|
return P;
|
|
17355
17355
|
(U = P.prop(oe.lookAhead)) && (B = D[R] + P.length + U);
|
|
17356
17356
|
}
|
|
17357
|
-
return y(x, T, D,
|
|
17357
|
+
return y(x, T, D, N, B, O);
|
|
17358
17358
|
};
|
|
17359
17359
|
}
|
|
17360
|
-
function m(x, O, T, D,
|
|
17361
|
-
let
|
|
17360
|
+
function m(x, O, T, D, N, B, R, P, U) {
|
|
17361
|
+
let I = [], Z = [];
|
|
17362
17362
|
for (; x.length > D; )
|
|
17363
|
-
|
|
17364
|
-
x.push(y(i.types[R],
|
|
17363
|
+
I.push(x.pop()), Z.push(O.pop() + T - N);
|
|
17364
|
+
x.push(y(i.types[R], I, Z, B - N, P - B, U)), O.push(N - T);
|
|
17365
17365
|
}
|
|
17366
|
-
function y(x, O, T, D,
|
|
17366
|
+
function y(x, O, T, D, N, B, R) {
|
|
17367
17367
|
if (B) {
|
|
17368
17368
|
let P = [oe.contextHash, B];
|
|
17369
17369
|
R = R ? [P].concat(R) : [P];
|
|
17370
17370
|
}
|
|
17371
|
-
if (
|
|
17372
|
-
let P = [oe.lookAhead,
|
|
17371
|
+
if (N > 25) {
|
|
17372
|
+
let P = [oe.lookAhead, N];
|
|
17373
17373
|
R = R ? [P].concat(R) : [P];
|
|
17374
17374
|
}
|
|
17375
17375
|
return new Pe(x, O, T, D, R);
|
|
17376
17376
|
}
|
|
17377
17377
|
function g(x, O) {
|
|
17378
|
-
let T = l.fork(), D = 0,
|
|
17378
|
+
let T = l.fork(), D = 0, N = 0, B = 0, R = T.end - r, P = { size: 0, start: 0, skip: 0 };
|
|
17379
17379
|
e: for (let U = T.pos - x; T.pos > U; ) {
|
|
17380
|
-
let
|
|
17381
|
-
if (T.id == O &&
|
|
17382
|
-
P.size = D, P.start =
|
|
17380
|
+
let I = T.size;
|
|
17381
|
+
if (T.id == O && I >= 0) {
|
|
17382
|
+
P.size = D, P.start = N, P.skip = B, B += 4, D += 4, T.next();
|
|
17383
17383
|
continue;
|
|
17384
17384
|
}
|
|
17385
|
-
let Z = T.pos -
|
|
17386
|
-
if (
|
|
17385
|
+
let Z = T.pos - I;
|
|
17386
|
+
if (I < 0 || Z < U || T.start < R)
|
|
17387
17387
|
break;
|
|
17388
17388
|
let de = T.id >= o ? 4 : 0, Se = T.start;
|
|
17389
17389
|
for (T.next(); T.pos > Z; ) {
|
|
@@ -17395,12 +17395,12 @@ function __(n) {
|
|
|
17395
17395
|
else T.id >= o && (de += 4);
|
|
17396
17396
|
T.next();
|
|
17397
17397
|
}
|
|
17398
|
-
|
|
17398
|
+
N = Se, D += I, B += de;
|
|
17399
17399
|
}
|
|
17400
|
-
return (O < 0 || D == x) && (P.size = D, P.start =
|
|
17400
|
+
return (O < 0 || D == x) && (P.size = D, P.start = N, P.skip = B), P.size > 4 ? P : void 0;
|
|
17401
17401
|
}
|
|
17402
17402
|
function p(x, O, T) {
|
|
17403
|
-
let { id: D, start:
|
|
17403
|
+
let { id: D, start: N, end: B, size: R } = l;
|
|
17404
17404
|
if (l.next(), R >= 0 && D < o) {
|
|
17405
17405
|
let P = T;
|
|
17406
17406
|
if (R > 4) {
|
|
@@ -17408,7 +17408,7 @@ function __(n) {
|
|
|
17408
17408
|
for (; l.pos > U; )
|
|
17409
17409
|
T = p(x, O, T);
|
|
17410
17410
|
}
|
|
17411
|
-
O[--T] = P, O[--T] = B - x, O[--T] =
|
|
17411
|
+
O[--T] = P, O[--T] = B - x, O[--T] = N - x, O[--T] = D;
|
|
17412
17412
|
} else R == -3 ? c = D : R == -4 && (h = D);
|
|
17413
17413
|
return T;
|
|
17414
17414
|
}
|
|
@@ -24510,7 +24510,7 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
|
|
|
24510
24510
|
function g(R) {
|
|
24511
24511
|
const P = R.state.doc.toString(), U = R.state.selection.main.head;
|
|
24512
24512
|
try {
|
|
24513
|
-
const
|
|
24513
|
+
const I = JSON.parse(P), Z = JSON.stringify(I, null, 2), de = P.length > 0 ? U / P.length : 0, Se = Math.min(
|
|
24514
24514
|
Math.round(de * Z.length),
|
|
24515
24515
|
Z.length
|
|
24516
24516
|
);
|
|
@@ -24543,7 +24543,7 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
|
|
|
24543
24543
|
}), T = ee(() => u.value || l.value), D = ee(
|
|
24544
24544
|
() => `${p.value}-${b.value}-${y.value}-${x.value}`
|
|
24545
24545
|
);
|
|
24546
|
-
function
|
|
24546
|
+
function N(R, P) {
|
|
24547
24547
|
if (!d.value)
|
|
24548
24548
|
try {
|
|
24549
24549
|
const U = JSON.parse(R);
|
|
@@ -24552,7 +24552,7 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
|
|
|
24552
24552
|
u.value = U.message;
|
|
24553
24553
|
}
|
|
24554
24554
|
}
|
|
24555
|
-
const B = { props: t, value: i, setValue: r, label: s, hint: o, errorMessage: l, required: a, formContext: c, fieldId: h, code: f, parseError: u, isInitializing: d, editorHeight: m, useDarkTheme: y, formatJSON: g, showLineNumbers: p, showLintGutter: b, tabSize: w, indentWithTab: S, formatKey: x, extensions: O, displayError: T, editorKey: D, handleChange:
|
|
24555
|
+
const B = { props: t, value: i, setValue: r, label: s, hint: o, errorMessage: l, required: a, formContext: c, fieldId: h, code: f, parseError: u, isInitializing: d, editorHeight: m, useDarkTheme: y, formatJSON: g, showLineNumbers: p, showLintGutter: b, tabSize: w, indentWithTab: S, formatKey: x, extensions: O, displayError: T, editorKey: D, handleChange: N, get Codemirror() {
|
|
24556
24556
|
return OP;
|
|
24557
24557
|
} };
|
|
24558
24558
|
return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
|
|
@@ -24917,9 +24917,12 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
|
|
|
24917
24917
|
}),
|
|
24918
24918
|
emits: /* @__PURE__ */ fh(["submit", "validation", "ready"], ["update:modelValue"]),
|
|
24919
24919
|
setup(n, { expose: e, emit: t }) {
|
|
24920
|
-
var
|
|
24920
|
+
var N, B, R, P, U;
|
|
24921
24921
|
e();
|
|
24922
|
-
const i = n, r = y0(n, "modelValue"), s = t, o = i.options.registry || D2(), l = ee(() =>
|
|
24922
|
+
const i = n, r = y0(n, "modelValue"), s = t, o = i.options.registry || D2(), l = ee(() => {
|
|
24923
|
+
const I = i.schema;
|
|
24924
|
+
return I["x-render"] || I.oneOf || I.anyOf ? !0 : i.schema.type === "object" && !i.schema.properties;
|
|
24925
|
+
}), a = l.value ? {
|
|
24923
24926
|
[rn]: r.value && typeof r.value == "object" && Object.keys(r.value).length > 0 ? r.value : i.options.useDefaults !== !1 ? ni.getDefaultValue(i.schema) : {}
|
|
24924
24927
|
} : i.options.useDefaults !== !1 ? { ...ni.getDefaultValue(i.schema), ...r.value } : { ...r.value }, { handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m } = S0({
|
|
24925
24928
|
initialValues: a,
|
|
@@ -24969,7 +24972,7 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
|
|
|
24969
24972
|
// Then merge in the built-in defaults
|
|
24970
24973
|
layout: {
|
|
24971
24974
|
...g.layout,
|
|
24972
|
-
...(
|
|
24975
|
+
...(N = i.options.componentDefaults) == null ? void 0 : N.layout
|
|
24973
24976
|
},
|
|
24974
24977
|
select: {
|
|
24975
24978
|
...g.select,
|
|
@@ -24999,68 +25002,68 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
|
|
|
24999
25002
|
});
|
|
25000
25003
|
});
|
|
25001
25004
|
let w = !1, S = !1;
|
|
25002
|
-
Je(r, (
|
|
25005
|
+
Je(r, (I) => {
|
|
25003
25006
|
if (!S) {
|
|
25004
25007
|
if (w = !0, l.value) {
|
|
25005
|
-
const Z =
|
|
25008
|
+
const Z = I && typeof I == "object" && Object.keys(I).length > 0 ? I : i.options.useDefaults !== !1 ? ni.getDefaultValue(i.schema) : {};
|
|
25006
25009
|
u(rn, Z);
|
|
25007
25010
|
} else
|
|
25008
|
-
|
|
25011
|
+
I && f(I);
|
|
25009
25012
|
Vr(() => {
|
|
25010
25013
|
w = !1;
|
|
25011
25014
|
});
|
|
25012
25015
|
}
|
|
25013
25016
|
}), l.value ? Je(
|
|
25014
25017
|
() => h[rn],
|
|
25015
|
-
(
|
|
25016
|
-
w || (S = !0, r.value =
|
|
25018
|
+
(I) => {
|
|
25019
|
+
w || (S = !0, r.value = I, Vr(() => {
|
|
25017
25020
|
S = !1;
|
|
25018
25021
|
}));
|
|
25019
25022
|
},
|
|
25020
25023
|
{ deep: !0 }
|
|
25021
25024
|
) : Je(
|
|
25022
25025
|
h,
|
|
25023
|
-
(
|
|
25024
|
-
w || (S = !0, r.value =
|
|
25026
|
+
(I) => {
|
|
25027
|
+
w || (S = !0, r.value = I, Vr(() => {
|
|
25025
25028
|
S = !1;
|
|
25026
25029
|
}));
|
|
25027
25030
|
},
|
|
25028
25031
|
{ deep: !0 }
|
|
25029
25032
|
), Je(
|
|
25030
25033
|
[d, m],
|
|
25031
|
-
([
|
|
25034
|
+
([I, Z]) => {
|
|
25032
25035
|
s("validation", {
|
|
25033
25036
|
valid: Z.valid,
|
|
25034
|
-
errors:
|
|
25037
|
+
errors: I
|
|
25035
25038
|
});
|
|
25036
25039
|
},
|
|
25037
25040
|
{ immediate: !0 }
|
|
25038
25041
|
);
|
|
25039
|
-
const x = c((
|
|
25040
|
-
const Z = l.value ?
|
|
25042
|
+
const x = c((I) => {
|
|
25043
|
+
const Z = l.value ? I[rn] : I, de = ni.validate(i.schema, Z);
|
|
25041
25044
|
de.valid ? s("submit", Z) : console.error("Form validation failed:", de.errors);
|
|
25042
|
-
}), O = ee(() => i.schema.type !== "object" || !i.schema.properties ? [] : Object.entries(i.schema.properties).map(([
|
|
25043
|
-
key:
|
|
25045
|
+
}), O = ee(() => i.schema.type !== "object" || !i.schema.properties ? [] : Object.entries(i.schema.properties).map(([I, Z]) => ({
|
|
25046
|
+
key: I,
|
|
25044
25047
|
schema: Z,
|
|
25045
|
-
path:
|
|
25048
|
+
path: I
|
|
25046
25049
|
}))), T = ee(() => {
|
|
25047
25050
|
var de, Se;
|
|
25048
|
-
const
|
|
25051
|
+
const I = ((Se = (de = i.options.componentDefaults) == null ? void 0 : de.layout) == null ? void 0 : Se.fieldGap) ?? "1rem";
|
|
25049
25052
|
return {
|
|
25050
25053
|
xs: "4px",
|
|
25051
25054
|
sm: "8px",
|
|
25052
25055
|
md: "16px",
|
|
25053
25056
|
lg: "24px",
|
|
25054
25057
|
xl: "32px"
|
|
25055
|
-
}[
|
|
25058
|
+
}[I] ?? I;
|
|
25056
25059
|
}), D = { props: i, model: r, emit: s, registry: o, SINGLE_FIELD_PATH: rn, isSingleField: l, initialValues: a, handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m, defaultLabels: y, defaultComponentDefaults: g, formContext: p, isReady: b, get isUpdatingFromModel() {
|
|
25057
25060
|
return w;
|
|
25058
|
-
}, set isUpdatingFromModel(
|
|
25059
|
-
w =
|
|
25061
|
+
}, set isUpdatingFromModel(I) {
|
|
25062
|
+
w = I;
|
|
25060
25063
|
}, get isUpdatingModel() {
|
|
25061
25064
|
return S;
|
|
25062
|
-
}, set isUpdatingModel(
|
|
25063
|
-
S =
|
|
25065
|
+
}, set isUpdatingModel(I) {
|
|
25066
|
+
S = I;
|
|
25064
25067
|
}, onSubmit: x, properties: O, fieldGapStyle: T, FieldRenderer: Tr };
|
|
25065
25068
|
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
25066
25069
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickflo/quickforms-vue",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.6",
|
|
4
4
|
"description": "Vue 3 bindings for QuickForms - JSON Schema form generator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@codemirror/view": "^6.38.8",
|
|
38
38
|
"vee-validate": "^4.12.0",
|
|
39
39
|
"vue-codemirror": "^6.1.1",
|
|
40
|
-
"@quickflo/quickforms": "1.16.
|
|
40
|
+
"@quickflo/quickforms": "1.16.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.0.0",
|