@quickflo/quickforms-vue 1.3.2 → 1.3.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/DynamicForm.vue"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;;;;;;;;eAWoB,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;;;;;;;eAAnD,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;gBAbzD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aACtB,WAAW;;AAqPvB,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"DynamicForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/DynamicForm.vue"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;;;;;;;;eAWoB,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;;;;;;;eAAnD,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;;gBAbzD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aACtB,WAAW;;AAsPvB,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as Ys, inject as Qs, computed as G, defineComponent as fe, ref as oe, createElementBlock as N, openBlock as j, createElementVNode as V, withDirectives as Oe, createCommentVNode as D, createTextVNode as je, toDisplayString as Q, vModelText as ht, normalizeClass as Hn, vModelDynamic as kr, vModelCheckbox as Xs, Fragment as $e, renderList as Ue, vModelSelect as ea, createBlock as pt, resolveDynamicComponent as ta, createVNode as Kn, watch as xe, onMounted as Bn, reactive as ra, toRaw as na, markRaw as sa } from "vue";
1
+ import { provide as Ys, inject as Qs, computed as G, defineComponent as fe, ref as oe, createElementBlock as N, openBlock as j, createElementVNode as V, withDirectives as Oe, createCommentVNode as F, createTextVNode as je, toDisplayString as Q, vModelText as ht, normalizeClass as Hn, vModelDynamic as kr, vModelCheckbox as Xs, Fragment as $e, renderList as Ue, vModelSelect as ea, createBlock as pt, resolveDynamicComponent as ta, createVNode as Kn, watch as xe, onMounted as Bn, reactive as ra, toRaw as na, markRaw as sa } from "vue";
2
2
  import { useField as aa, useForm as oa } from "vee-validate";
3
3
  class ia {
4
4
  constructor() {
@@ -558,7 +558,7 @@ var pr = {};
558
558
  return H(super.names, this.iterable.names);
559
559
  }
560
560
  }
561
- class F extends _ {
561
+ class D extends _ {
562
562
  constructor(l, h, E) {
563
563
  super(), this.name = l, this.args = h, this.async = E;
564
564
  }
@@ -566,7 +566,7 @@ var pr = {};
566
566
  return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(l);
567
567
  }
568
568
  }
569
- F.kind = "func";
569
+ D.kind = "func";
570
570
  class z extends $ {
571
571
  render(l) {
572
572
  return "return " + super.render(l);
@@ -776,11 +776,11 @@ var pr = {};
776
776
  }
777
777
  // `function` heading (or definition if funcBody is passed)
778
778
  func(l, h = t.nil, E, A) {
779
- return this._blockNode(new F(l, h, E)), A && this.code(A).endFunc(), this;
779
+ return this._blockNode(new D(l, h, E)), A && this.code(A).endFunc(), this;
780
780
  }
781
781
  // end function definition
782
782
  endFunc() {
783
- return this._endBlockNode(F);
783
+ return this._endBlockNode(D);
784
784
  }
785
785
  optimize(l = 1) {
786
786
  for (; l-- > 0; )
@@ -1044,13 +1044,13 @@ qe.default = qa;
1044
1044
  message: ({ keyword: p, schemaType: m }) => m ? (0, t.str)`"${p}" keyword must be ${m} ($data)` : (0, t.str)`"${p}" keyword is invalid ($data)`
1045
1045
  };
1046
1046
  function s(p, m = e.keywordError, y, k) {
1047
- const { it: S } = p, { gen: O, compositeRule: F, allErrors: z } = S, I = f(p, m, y);
1048
- k ?? (F || z) ? d(O, I) : c(S, (0, t._)`[${I}]`);
1047
+ const { it: S } = p, { gen: O, compositeRule: D, allErrors: z } = S, I = f(p, m, y);
1048
+ k ?? (D || z) ? d(O, I) : c(S, (0, t._)`[${I}]`);
1049
1049
  }
1050
1050
  e.reportError = s;
1051
1051
  function a(p, m = e.keywordError, y) {
1052
- const { it: k } = p, { gen: S, compositeRule: O, allErrors: F } = k, z = f(p, m, y);
1053
- d(S, z), O || F || c(k, r.default.vErrors);
1052
+ const { it: k } = p, { gen: S, compositeRule: O, allErrors: D } = k, z = f(p, m, y);
1053
+ d(S, z), O || D || c(k, r.default.vErrors);
1054
1054
  }
1055
1055
  e.reportExtraError = a;
1056
1056
  function o(p, m) {
@@ -1060,9 +1060,9 @@ qe.default = qa;
1060
1060
  function i({ gen: p, keyword: m, schemaValue: y, data: k, errsCount: S, it: O }) {
1061
1061
  if (S === void 0)
1062
1062
  throw new Error("ajv implementation error");
1063
- const F = p.name("err");
1063
+ const D = p.name("err");
1064
1064
  p.forRange("i", S, r.default.errors, (z) => {
1065
- p.const(F, (0, t._)`${r.default.vErrors}[${z}]`), p.if((0, t._)`${F}.instancePath === undefined`, () => p.assign((0, t._)`${F}.instancePath`, (0, t.strConcat)(r.default.instancePath, O.errorPath))), p.assign((0, t._)`${F}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${m}`), O.opts.verbose && (p.assign((0, t._)`${F}.schema`, y), p.assign((0, t._)`${F}.data`, k));
1065
+ p.const(D, (0, t._)`${r.default.vErrors}[${z}]`), p.if((0, t._)`${D}.instancePath === undefined`, () => p.assign((0, t._)`${D}.instancePath`, (0, t.strConcat)(r.default.instancePath, O.errorPath))), p.assign((0, t._)`${D}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${m}`), O.opts.verbose && (p.assign((0, t._)`${D}.schema`, y), p.assign((0, t._)`${D}.data`, k));
1066
1066
  });
1067
1067
  }
1068
1068
  e.extendErrors = i;
@@ -1104,8 +1104,8 @@ qe.default = qa;
1104
1104
  return y && (S = (0, t.str)`${S}${(0, n.getErrorPath)(y, n.Type.Str)}`), [u.schemaPath, S];
1105
1105
  }
1106
1106
  function g(p, { params: m, message: y }, k) {
1107
- const { keyword: S, data: O, schemaValue: F, it: z } = p, { opts: I, propertyName: T, topSchemaRef: U, schemaPath: W } = z;
1108
- k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), I.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), I.verbose && k.push([u.schema, F], [u.parentSchema, (0, t._)`${U}${W}`], [r.default.data, O]), T && k.push([u.propertyName, T]);
1107
+ const { keyword: S, data: O, schemaValue: D, it: z } = p, { opts: I, propertyName: T, topSchemaRef: U, schemaPath: W } = z;
1108
+ k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), I.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), I.verbose && k.push([u.schema, D], [u.parentSchema, (0, t._)`${U}${W}`], [r.default.data, O]), T && k.push([u.propertyName, T]);
1109
1109
  }
1110
1110
  })(vt);
1111
1111
  Object.defineProperty(Ye, "__esModule", { value: !0 });
@@ -1140,11 +1140,11 @@ var te = {}, Le = {};
1140
1140
  Object.defineProperty(Le, "__esModule", { value: !0 });
1141
1141
  Le.getRules = Le.isJSONType = void 0;
1142
1142
  const Ca = ["string", "number", "integer", "boolean", "null", "object", "array"], Va = new Set(Ca);
1143
- function Fa(e) {
1143
+ function Da(e) {
1144
1144
  return typeof e == "string" && Va.has(e);
1145
1145
  }
1146
- Le.isJSONType = Fa;
1147
- function Da() {
1146
+ Le.isJSONType = Da;
1147
+ function Fa() {
1148
1148
  const e = {
1149
1149
  number: { type: "number", rules: [] },
1150
1150
  string: { type: "string", rules: [] },
@@ -1159,7 +1159,7 @@ function Da() {
1159
1159
  keywords: {}
1160
1160
  };
1161
1161
  }
1162
- Le.getRules = Da;
1162
+ Le.getRules = Fa;
1163
1163
  var Ne = {};
1164
1164
  Object.defineProperty(Ne, "__esModule", { value: !0 });
1165
1165
  Ne.shouldUseRule = Ne.shouldUseGroup = Ne.schemaHasRulesForType = void 0;
@@ -1454,7 +1454,7 @@ function co(e) {
1454
1454
  J.validateUnion = co;
1455
1455
  Object.defineProperty(Ee, "__esModule", { value: !0 });
1456
1456
  Ee.validateKeywordUsage = Ee.validSchemaType = Ee.funcKeywordCode = Ee.macroKeywordCode = void 0;
1457
- const de = B, Fe = qe, uo = J, fo = vt;
1457
+ const de = B, De = qe, uo = J, fo = vt;
1458
1458
  function mo(e, t) {
1459
1459
  const { gen: n, keyword: r, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = ls(n, r, i);
1460
1460
  o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
@@ -1491,7 +1491,7 @@ function ho(e, t) {
1491
1491
  return r.assign(m, null), g(de.nil), m;
1492
1492
  }
1493
1493
  function g(m = t.async ? (0, de._)`await ` : de.nil) {
1494
- const y = d.opts.passContext ? Fe.default.this : Fe.default.self, k = !("compile" in t && !i || t.schema === !1);
1494
+ const y = d.opts.passContext ? De.default.this : De.default.self, k = !("compile" in t && !i || t.schema === !1);
1495
1495
  r.assign(f, (0, de._)`${m}${(0, uo.callValidateCode)(e, u, y, k)}`, t.modifying);
1496
1496
  }
1497
1497
  function p(m) {
@@ -1507,7 +1507,7 @@ function bn(e) {
1507
1507
  function po(e, t) {
1508
1508
  const { gen: n } = e;
1509
1509
  n.if((0, de._)`Array.isArray(${t})`, () => {
1510
- n.assign(Fe.default.vErrors, (0, de._)`${Fe.default.vErrors} === null ? ${t} : ${Fe.default.vErrors}.concat(${t})`).assign(Fe.default.errors, (0, de._)`${Fe.default.vErrors}.length`), (0, fo.extendErrors)(e);
1510
+ n.assign(De.default.vErrors, (0, de._)`${De.default.vErrors} === null ? ${t} : ${De.default.vErrors}.concat(${t})`).assign(De.default.errors, (0, de._)`${De.default.vErrors}.length`), (0, fo.extendErrors)(e);
1511
1511
  }, () => e.error());
1512
1512
  }
1513
1513
  function yo({ schemaEnv: e }, t) {
@@ -1800,7 +1800,7 @@ be.getData = be.KeywordCxt = be.validateFunctionCode = void 0;
1800
1800
  const ps = Ye, $n = te, Ir = Ne, At = te, Ro = Ut, dt = Ee, dr = Ce, R = B, L = qe, Ao = ae, Ie = M, at = vt;
1801
1801
  function Co(e) {
1802
1802
  if (_s(e) && (gs(e), vs(e))) {
1803
- Do(e);
1803
+ Fo(e);
1804
1804
  return;
1805
1805
  }
1806
1806
  ys(e, () => (0, ps.topBoolOrEmptySchema)(e));
@@ -1808,20 +1808,20 @@ function Co(e) {
1808
1808
  be.validateFunctionCode = Co;
1809
1809
  function ys({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: s }, a) {
1810
1810
  s.code.es5 ? e.func(t, (0, R._)`${L.default.data}, ${L.default.valCxt}`, r.$async, () => {
1811
- e.code((0, R._)`"use strict"; ${wn(n, s)}`), Fo(e, s), e.code(a);
1811
+ e.code((0, R._)`"use strict"; ${wn(n, s)}`), Do(e, s), e.code(a);
1812
1812
  }) : e.func(t, (0, R._)`${L.default.data}, ${Vo(s)}`, r.$async, () => e.code(wn(n, s)).code(a));
1813
1813
  }
1814
1814
  function Vo(e) {
1815
1815
  return (0, R._)`{${L.default.instancePath}="", ${L.default.parentData}, ${L.default.parentDataProperty}, ${L.default.rootData}=${L.default.data}${e.dynamicRef ? (0, R._)`, ${L.default.dynamicAnchors}={}` : R.nil}}={}`;
1816
1816
  }
1817
- function Fo(e, t) {
1817
+ function Do(e, t) {
1818
1818
  e.if(L.default.valCxt, () => {
1819
1819
  e.var(L.default.instancePath, (0, R._)`${L.default.valCxt}.${L.default.instancePath}`), e.var(L.default.parentData, (0, R._)`${L.default.valCxt}.${L.default.parentData}`), e.var(L.default.parentDataProperty, (0, R._)`${L.default.valCxt}.${L.default.parentDataProperty}`), e.var(L.default.rootData, (0, R._)`${L.default.valCxt}.${L.default.rootData}`), t.dynamicRef && e.var(L.default.dynamicAnchors, (0, R._)`${L.default.valCxt}.${L.default.dynamicAnchors}`);
1820
1820
  }, () => {
1821
1821
  e.var(L.default.instancePath, (0, R._)`""`), e.var(L.default.parentData, (0, R._)`undefined`), e.var(L.default.parentDataProperty, (0, R._)`undefined`), e.var(L.default.rootData, L.default.data), t.dynamicRef && e.var(L.default.dynamicAnchors, (0, R._)`{}`);
1822
1822
  });
1823
1823
  }
1824
- function Do(e) {
1824
+ function Fo(e) {
1825
1825
  const { schema: t, opts: n, gen: r } = e;
1826
1826
  ys(e, () => {
1827
1827
  n.$comment && t.$comment && $s(e), Ko(e), r.let(L.default.vErrors, null), r.let(L.default.errors, 0), n.unevaluated && zo(e), bs(e), Jo(e);
@@ -2549,7 +2549,7 @@ const Rs = (
2549
2549
  serialize: Mi,
2550
2550
  skipNormalize: !0
2551
2551
  }
2552
- ), Fi = (
2552
+ ), Di = (
2553
2553
  /** @type {SchemeHandler} */
2554
2554
  {
2555
2555
  scheme: "urn:uuid",
@@ -2565,7 +2565,7 @@ const Rs = (
2565
2565
  ws: It,
2566
2566
  wss: Ci,
2567
2567
  urn: Vi,
2568
- "urn:uuid": Fi
2568
+ "urn:uuid": Di
2569
2569
  }
2570
2570
  );
2571
2571
  Object.setPrototypeOf(Ct, null);
@@ -2578,11 +2578,11 @@ function Ar(e) {
2578
2578
  e.toLowerCase()
2579
2579
  ]) || void 0;
2580
2580
  }
2581
- var Di = {
2581
+ var Fi = {
2582
2582
  SCHEMES: Ct,
2583
2583
  getSchemeHandler: Ar
2584
2584
  };
2585
- const { normalizeIPv6: zi, removeDotSegments: it, recomposeAuthority: Ui, normalizeComponentEncoding: St, isIPv4: Li, nonSimpleDomain: Hi } = Ns, { SCHEMES: Ki, getSchemeHandler: As } = Di;
2585
+ const { normalizeIPv6: zi, removeDotSegments: it, recomposeAuthority: Ui, normalizeComponentEncoding: St, isIPv4: Li, nonSimpleDomain: Hi } = Ns, { SCHEMES: Ki, getSchemeHandler: As } = Fi;
2586
2586
  function Bi(e, t) {
2587
2587
  return typeof e == "string" ? e = /** @type {T} */
2588
2588
  Pe(Me(e, t), t) : typeof e == "object" && (e = /** @type {T} */
@@ -2874,7 +2874,7 @@ Rr.default = Vs;
2874
2874
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
2875
2875
  getSchema(v) {
2876
2876
  let P;
2877
- for (; typeof (P = F.call(this, v)) == "string"; )
2877
+ for (; typeof (P = D.call(this, v)) == "string"; )
2878
2878
  v = P;
2879
2879
  if (P === void 0) {
2880
2880
  const { schemaId: w } = this.opts, l = new o.SchemaEnv({ schema: {}, schemaId: w });
@@ -2895,7 +2895,7 @@ Rr.default = Vs;
2895
2895
  case "undefined":
2896
2896
  return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
2897
2897
  case "string": {
2898
- const P = F.call(this, v);
2898
+ const P = D.call(this, v);
2899
2899
  return typeof P == "object" && this._cache.delete(P.schema), delete this.schemas[v], delete this.refs[v], this;
2900
2900
  }
2901
2901
  case "object": {
@@ -3022,7 +3022,7 @@ Rr.default = Vs;
3022
3022
  h in v && this.logger[w](`${P}: option ${l}. ${q[h]}`);
3023
3023
  }
3024
3024
  }
3025
- function F(q) {
3025
+ function D(q) {
3026
3026
  return q = (0, d.normalizeId)(q), this.schemas[q] || this.refs[q];
3027
3027
  }
3028
3028
  function z() {
@@ -3115,15 +3115,15 @@ Rr.default = Vs;
3115
3115
  return { anyOf: [q, xt] };
3116
3116
  }
3117
3117
  })(xn);
3118
- var Vr = {}, Fr = {}, Dr = {};
3119
- Object.defineProperty(Dr, "__esModule", { value: !0 });
3118
+ var Vr = {}, Dr = {}, Fr = {};
3119
+ Object.defineProperty(Fr, "__esModule", { value: !0 });
3120
3120
  const Zi = {
3121
3121
  keyword: "id",
3122
3122
  code() {
3123
3123
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
3124
3124
  }
3125
3125
  };
3126
- Dr.default = Zi;
3126
+ Fr.default = Zi;
3127
3127
  var He = {};
3128
3128
  Object.defineProperty(He, "__esModule", { value: !0 });
3129
3129
  He.callRef = He.getValidate = void 0;
@@ -3147,7 +3147,7 @@ const Yi = et, On = J, ce = B, Ge = qe, jn = ue, Et = M, Qi = {
3147
3147
  return Mt(e, (0, ce._)`${_}.validate`, c, c.$async);
3148
3148
  }
3149
3149
  function b(_) {
3150
- const g = Fs(e, _);
3150
+ const g = Ds(e, _);
3151
3151
  Mt(e, g, _, _.$async);
3152
3152
  }
3153
3153
  function $(_) {
@@ -3162,11 +3162,11 @@ const Yi = et, On = J, ce = B, Ge = qe, jn = ue, Et = M, Qi = {
3162
3162
  }
3163
3163
  }
3164
3164
  };
3165
- function Fs(e, t) {
3165
+ function Ds(e, t) {
3166
3166
  const { gen: n } = e;
3167
3167
  return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, ce._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
3168
3168
  }
3169
- He.getValidate = Fs;
3169
+ He.getValidate = Ds;
3170
3170
  function Mt(e, t, n, r) {
3171
3171
  const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? Ge.default.this : ce.nil;
3172
3172
  r ? u() : f();
@@ -3210,8 +3210,8 @@ function Mt(e, t, n, r) {
3210
3210
  }
3211
3211
  He.callRef = Mt;
3212
3212
  He.default = Qi;
3213
- Object.defineProperty(Fr, "__esModule", { value: !0 });
3214
- const Xi = Dr, el = He, tl = [
3213
+ Object.defineProperty(Dr, "__esModule", { value: !0 });
3214
+ const Xi = Fr, el = He, tl = [
3215
3215
  "$schema",
3216
3216
  "$id",
3217
3217
  "$defs",
@@ -3221,26 +3221,26 @@ const Xi = Dr, el = He, tl = [
3221
3221
  Xi.default,
3222
3222
  el.default
3223
3223
  ];
3224
- Fr.default = tl;
3224
+ Dr.default = tl;
3225
3225
  var zr = {}, Ur = {};
3226
3226
  Object.defineProperty(Ur, "__esModule", { value: !0 });
3227
- const Vt = B, Re = Vt.operators, Ft = {
3227
+ const Vt = B, Re = Vt.operators, Dt = {
3228
3228
  maximum: { okStr: "<=", ok: Re.LTE, fail: Re.GT },
3229
3229
  minimum: { okStr: ">=", ok: Re.GTE, fail: Re.LT },
3230
3230
  exclusiveMaximum: { okStr: "<", ok: Re.LT, fail: Re.GTE },
3231
3231
  exclusiveMinimum: { okStr: ">", ok: Re.GT, fail: Re.LTE }
3232
3232
  }, rl = {
3233
- message: ({ keyword: e, schemaCode: t }) => (0, Vt.str)`must be ${Ft[e].okStr} ${t}`,
3234
- params: ({ keyword: e, schemaCode: t }) => (0, Vt._)`{comparison: ${Ft[e].okStr}, limit: ${t}}`
3233
+ message: ({ keyword: e, schemaCode: t }) => (0, Vt.str)`must be ${Dt[e].okStr} ${t}`,
3234
+ params: ({ keyword: e, schemaCode: t }) => (0, Vt._)`{comparison: ${Dt[e].okStr}, limit: ${t}}`
3235
3235
  }, nl = {
3236
- keyword: Object.keys(Ft),
3236
+ keyword: Object.keys(Dt),
3237
3237
  type: "number",
3238
3238
  schemaType: "number",
3239
3239
  $data: !0,
3240
3240
  error: rl,
3241
3241
  code(e) {
3242
3242
  const { keyword: t, data: n, schemaCode: r } = e;
3243
- e.fail$data((0, Vt._)`${n} ${Ft[t].fail} ${r} || isNaN(${n})`);
3243
+ e.fail$data((0, Vt._)`${n} ${Dt[t].fail} ${r} || isNaN(${n})`);
3244
3244
  }
3245
3245
  };
3246
3246
  Ur.default = nl;
@@ -3263,22 +3263,22 @@ const ct = B, sl = {
3263
3263
  Lr.default = al;
3264
3264
  var Hr = {}, Kr = {};
3265
3265
  Object.defineProperty(Kr, "__esModule", { value: !0 });
3266
- function Ds(e) {
3266
+ function Fs(e) {
3267
3267
  const t = e.length;
3268
3268
  let n = 0, r = 0, s;
3269
3269
  for (; r < t; )
3270
3270
  n++, s = e.charCodeAt(r++), s >= 55296 && s <= 56319 && r < t && (s = e.charCodeAt(r), (s & 64512) === 56320 && r++);
3271
3271
  return n;
3272
3272
  }
3273
- Kr.default = Ds;
3274
- Ds.code = 'require("ajv/dist/runtime/ucs2length").default';
3273
+ Kr.default = Fs;
3274
+ Fs.code = 'require("ajv/dist/runtime/ucs2length").default';
3275
3275
  Object.defineProperty(Hr, "__esModule", { value: !0 });
3276
- const De = B, ol = M, il = Kr, ll = {
3276
+ const Fe = B, ol = M, il = Kr, ll = {
3277
3277
  message({ keyword: e, schemaCode: t }) {
3278
3278
  const n = e === "maxLength" ? "more" : "fewer";
3279
- return (0, De.str)`must NOT have ${n} than ${t} characters`;
3279
+ return (0, Fe.str)`must NOT have ${n} than ${t} characters`;
3280
3280
  },
3281
- params: ({ schemaCode: e }) => (0, De._)`{limit: ${e}}`
3281
+ params: ({ schemaCode: e }) => (0, Fe._)`{limit: ${e}}`
3282
3282
  }, dl = {
3283
3283
  keyword: ["maxLength", "minLength"],
3284
3284
  type: "string",
@@ -3286,16 +3286,16 @@ const De = B, ol = M, il = Kr, ll = {
3286
3286
  $data: !0,
3287
3287
  error: ll,
3288
3288
  code(e) {
3289
- const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? De.operators.GT : De.operators.LT, o = s.opts.unicode === !1 ? (0, De._)`${n}.length` : (0, De._)`${(0, ol.useFunc)(e.gen, il.default)}(${n})`;
3290
- e.fail$data((0, De._)`${o} ${a} ${r}`);
3289
+ const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? Fe.operators.GT : Fe.operators.LT, o = s.opts.unicode === !1 ? (0, Fe._)`${n}.length` : (0, Fe._)`${(0, ol.useFunc)(e.gen, il.default)}(${n})`;
3290
+ e.fail$data((0, Fe._)`${o} ${a} ${r}`);
3291
3291
  }
3292
3292
  };
3293
3293
  Hr.default = dl;
3294
3294
  var Br = {};
3295
3295
  Object.defineProperty(Br, "__esModule", { value: !0 });
3296
- const cl = J, Dt = B, ul = {
3297
- message: ({ schemaCode: e }) => (0, Dt.str)`must match pattern "${e}"`,
3298
- params: ({ schemaCode: e }) => (0, Dt._)`{pattern: ${e}}`
3296
+ const cl = J, Ft = B, ul = {
3297
+ message: ({ schemaCode: e }) => (0, Ft.str)`must match pattern "${e}"`,
3298
+ params: ({ schemaCode: e }) => (0, Ft._)`{pattern: ${e}}`
3299
3299
  }, fl = {
3300
3300
  keyword: "pattern",
3301
3301
  type: "string",
@@ -3303,8 +3303,8 @@ const cl = J, Dt = B, ul = {
3303
3303
  $data: !0,
3304
3304
  error: ul,
3305
3305
  code(e) {
3306
- const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Dt._)`(new RegExp(${s}, ${o}))` : (0, cl.usePattern)(e, r);
3307
- e.fail$data((0, Dt._)`!${i}.test(${t})`);
3306
+ const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Ft._)`(new RegExp(${s}, ${o}))` : (0, cl.usePattern)(e, r);
3307
+ e.fail$data((0, Ft._)`!${i}.test(${t})`);
3308
3308
  }
3309
3309
  };
3310
3310
  Br.default = fl;
@@ -3500,7 +3500,7 @@ const lt = B, jl = M, ql = gt, Nl = {
3500
3500
  };
3501
3501
  Yr.default = Il;
3502
3502
  Object.defineProperty(zr, "__esModule", { value: !0 });
3503
- const Ml = Ur, Tl = Lr, Rl = Hr, Al = Br, Cl = Gr, Vl = Jr, Fl = xr, Dl = Wr, zl = Zr, Ul = Yr, Ll = [
3503
+ const Ml = Ur, Tl = Lr, Rl = Hr, Al = Br, Cl = Gr, Vl = Jr, Dl = xr, Fl = Wr, zl = Zr, Ul = Yr, Ll = [
3504
3504
  // number
3505
3505
  Ml.default,
3506
3506
  Tl.default,
@@ -3511,8 +3511,8 @@ const Ml = Ur, Tl = Lr, Rl = Hr, Al = Br, Cl = Gr, Vl = Jr, Fl = xr, Dl = Wr, zl
3511
3511
  Cl.default,
3512
3512
  Vl.default,
3513
3513
  // array
3514
- Fl.default,
3515
3514
  Dl.default,
3515
+ Fl.default,
3516
3516
  // any
3517
3517
  { keyword: "type", schemaType: ["string", "array"] },
3518
3518
  { keyword: "nullable", schemaType: "boolean" },
@@ -4053,7 +4053,7 @@ const wd = M, kd = {
4053
4053
  };
4054
4054
  un.default = kd;
4055
4055
  Object.defineProperty(Qr, "__esModule", { value: !0 });
4056
- const Sd = tt, Ed = Xr, Pd = rt, Od = en, jd = tn, qd = Hs, Nd = rn, Id = Bt, Md = nn, Td = sn, Rd = an, Ad = on, Cd = ln, Vd = dn, Fd = cn, Dd = un;
4056
+ const Sd = tt, Ed = Xr, Pd = rt, Od = en, jd = tn, qd = Hs, Nd = rn, Id = Bt, Md = nn, Td = sn, Rd = an, Ad = on, Cd = ln, Vd = dn, Dd = cn, Fd = un;
4057
4057
  function zd(e = !1) {
4058
4058
  const t = [
4059
4059
  // any
@@ -4061,8 +4061,8 @@ function zd(e = !1) {
4061
4061
  Ad.default,
4062
4062
  Cd.default,
4063
4063
  Vd.default,
4064
- Fd.default,
4065
4064
  Dd.default,
4065
+ Fd.default,
4066
4066
  // object
4067
4067
  Nd.default,
4068
4068
  Id.default,
@@ -4124,7 +4124,7 @@ const ee = B, Ud = {
4124
4124
  }
4125
4125
  }
4126
4126
  function k(O) {
4127
- const F = O instanceof RegExp ? (0, ee.regexpCode)(O) : d.code.formats ? (0, ee._)`${d.code.formats}${(0, ee.getProperty)(a)}` : void 0, z = n.scopeValue("formats", { key: a, ref: O, code: F });
4127
+ const D = O instanceof RegExp ? (0, ee.regexpCode)(O) : d.code.formats ? (0, ee._)`${d.code.formats}${(0, ee.getProperty)(a)}` : void 0, z = n.scopeValue("formats", { key: a, ref: O, code: D });
4128
4128
  return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, ee._)`${z}.validate`] : ["string", O, z];
4129
4129
  }
4130
4130
  function S() {
@@ -4160,7 +4160,7 @@ Qe.contentVocabulary = [
4160
4160
  "contentSchema"
4161
4161
  ];
4162
4162
  Object.defineProperty(Vr, "__esModule", { value: !0 });
4163
- const Bd = Fr, Gd = zr, Jd = Qr, xd = fn, Vn = Qe, Wd = [
4163
+ const Bd = Dr, Gd = zr, Jd = Qr, xd = fn, Vn = Qe, Wd = [
4164
4164
  Bd.default,
4165
4165
  Gd.default,
4166
4166
  (0, Jd.default)(),
@@ -4172,12 +4172,12 @@ Vr.default = Wd;
4172
4172
  var hn = {}, Gt = {};
4173
4173
  Object.defineProperty(Gt, "__esModule", { value: !0 });
4174
4174
  Gt.DiscrError = void 0;
4175
- var Fn;
4175
+ var Dn;
4176
4176
  (function(e) {
4177
4177
  e.Tag = "tag", e.Mapping = "mapping";
4178
- })(Fn || (Gt.DiscrError = Fn = {}));
4178
+ })(Dn || (Gt.DiscrError = Dn = {}));
4179
4179
  Object.defineProperty(hn, "__esModule", { value: !0 });
4180
- const Je = B, $r = Gt, Dn = ue, Zd = et, Yd = M, Qd = {
4180
+ const Je = B, $r = Gt, Fn = ue, Zd = et, Yd = M, Qd = {
4181
4181
  message: ({ params: { discrError: e, tagName: t } }) => e === $r.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
4182
4182
  params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, Je._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
4183
4183
  }, Xd = {
@@ -4217,13 +4217,13 @@ const Je = B, $r = Gt, Dn = ue, Zd = et, Yd = M, Qd = {
4217
4217
  let O = o[S];
4218
4218
  if (O != null && O.$ref && !(0, Yd.schemaHasRulesButRef)(O, a.self.RULES)) {
4219
4219
  const z = O.$ref;
4220
- if (O = Dn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, z), O instanceof Dn.SchemaEnv && (O = O.schema), O === void 0)
4220
+ if (O = Fn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, z), O instanceof Fn.SchemaEnv && (O = O.schema), O === void 0)
4221
4221
  throw new Zd.default(a.opts.uriResolver, a.baseId, z);
4222
4222
  }
4223
- const F = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
4224
- if (typeof F != "object")
4223
+ const D = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
4224
+ if (typeof D != "object")
4225
4225
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${i}"`);
4226
- p = p && (g || m(O)), y(F, S);
4226
+ p = p && (g || m(O)), y(D, S);
4227
4227
  }
4228
4228
  if (!p)
4229
4229
  throw new Error(`discriminator: "${i}" must be required`);
@@ -4235,8 +4235,8 @@ const Je = B, $r = Gt, Dn = ue, Zd = et, Yd = M, Qd = {
4235
4235
  if (S.const)
4236
4236
  k(S.const, O);
4237
4237
  else if (S.enum)
4238
- for (const F of S.enum)
4239
- k(F, O);
4238
+ for (const D of S.enum)
4239
+ k(D, O);
4240
4240
  else
4241
4241
  throw new Error(`discriminator: "properties/${i}" must have "const" or "enum"`);
4242
4242
  }
@@ -4580,9 +4580,9 @@ var wr = { exports: {} }, Js = {};
4580
4580
  // signed 64 bit integer
4581
4581
  int64: { type: "number", validate: O },
4582
4582
  // C-type float
4583
- float: { type: "number", validate: F },
4583
+ float: { type: "number", validate: D },
4584
4584
  // C-type double
4585
- double: { type: "number", validate: F },
4585
+ double: { type: "number", validate: D },
4586
4586
  // hint to the UI to hide input strings
4587
4587
  password: !0,
4588
4588
  // unchecked string payload
@@ -4657,7 +4657,7 @@ var wr = { exports: {} }, Js = {};
4657
4657
  function O(T) {
4658
4658
  return Number.isInteger(T);
4659
4659
  }
4660
- function F() {
4660
+ function D() {
4661
4661
  return !0;
4662
4662
  }
4663
4663
  const z = /[^\\]\\Z/;
@@ -5065,7 +5065,7 @@ function ye(e, t, n = {}) {
5065
5065
  var T, U;
5066
5066
  const I = t["x-hint-mode"];
5067
5067
  return I || ((U = (T = r == null ? void 0 : r.componentDefaults) == null ? void 0 : T.hints) == null ? void 0 : U.showMode) || "always";
5068
- }), F = G(() => {
5068
+ }), D = G(() => {
5069
5069
  const I = r == null ? void 0 : r.schema;
5070
5070
  return I ? zn.isRequired(I, e) : !1;
5071
5071
  }), z = G(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
@@ -5079,7 +5079,7 @@ function ye(e, t, n = {}) {
5079
5079
  label: k,
5080
5080
  hint: S,
5081
5081
  hintMode: O,
5082
- required: F
5082
+ required: D
5083
5083
  };
5084
5084
  }
5085
5085
  const pc = /* @__PURE__ */ fe({
@@ -5153,7 +5153,7 @@ function jc(e, t, n, r, s, a) {
5153
5153
  1
5154
5154
  /* TEXT */
5155
5155
  ),
5156
- r.props.schema.required ? (j(), N("span", _c, "*")) : D("v-if", !0)
5156
+ r.props.schema.required ? (j(), N("span", _c, "*")) : F("v-if", !0)
5157
5157
  ], 8, vc),
5158
5158
  r.isTextarea ? Oe((j(), N("textarea", {
5159
5159
  key: 0,
@@ -5241,7 +5241,7 @@ function jc(e, t, n, r, s, a) {
5241
5241
  /* CACHED */
5242
5242
  )
5243
5243
  ])]))
5244
- ], 8, wc)) : D("v-if", !0)
5244
+ ], 8, wc)) : F("v-if", !0)
5245
5245
  ])),
5246
5246
  r.showHint ? (j(), N("div", {
5247
5247
  key: 2,
@@ -5249,14 +5249,14 @@ function jc(e, t, n, r, s, a) {
5249
5249
  class: "quickform-hint"
5250
5250
  }, [
5251
5251
  V("span", { innerHTML: r.hint }, null, 8, Pc)
5252
- ], 8, Ec)) : D("v-if", !0),
5252
+ ], 8, Ec)) : F("v-if", !0),
5253
5253
  r.errorMessage ? (j(), N(
5254
5254
  "div",
5255
5255
  Oc,
5256
5256
  Q(r.errorMessage),
5257
5257
  1
5258
5258
  /* TEXT */
5259
- )) : D("v-if", !0)
5259
+ )) : F("v-if", !0)
5260
5260
  ]);
5261
5261
  }
5262
5262
  const qc = /* @__PURE__ */ me(pc, [["render", jc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Nc = /* @__PURE__ */ fe({
@@ -5282,7 +5282,7 @@ const qc = /* @__PURE__ */ me(pc, [["render", jc], ["__scopeId", "data-v-ad9ab1f
5282
5282
  key: 1,
5283
5283
  class: "quickform-error"
5284
5284
  };
5285
- function Fc(e, t, n, r, s, a) {
5285
+ function Dc(e, t, n, r, s, a) {
5286
5286
  return j(), N("div", Ic, [
5287
5287
  V("label", {
5288
5288
  for: r.fieldId,
@@ -5293,7 +5293,7 @@ function Fc(e, t, n, r, s, a) {
5293
5293
  1
5294
5294
  /* TEXT */
5295
5295
  ),
5296
- r.props.schema.required ? (j(), N("span", Tc, "*")) : D("v-if", !0)
5296
+ r.props.schema.required ? (j(), N("span", Tc, "*")) : F("v-if", !0)
5297
5297
  ], 8, Mc),
5298
5298
  Oe(V("input", {
5299
5299
  id: r.fieldId,
@@ -5326,17 +5326,17 @@ function Fc(e, t, n, r, s, a) {
5326
5326
  class: "quickform-hint"
5327
5327
  }, [
5328
5328
  V("span", { innerHTML: r.hint }, null, 8, Cc)
5329
- ], 8, Ac)) : D("v-if", !0),
5329
+ ], 8, Ac)) : F("v-if", !0),
5330
5330
  r.errorMessage ? (j(), N(
5331
5331
  "div",
5332
5332
  Vc,
5333
5333
  Q(r.errorMessage),
5334
5334
  1
5335
5335
  /* TEXT */
5336
- )) : D("v-if", !0)
5336
+ )) : F("v-if", !0)
5337
5337
  ]);
5338
5338
  }
5339
- const Dc = /* @__PURE__ */ me(Nc, [["render", Fc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), zc = /* @__PURE__ */ fe({
5339
+ const Fc = /* @__PURE__ */ me(Nc, [["render", Dc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), zc = /* @__PURE__ */ fe({
5340
5340
  __name: "BooleanField",
5341
5341
  props: {
5342
5342
  schema: { type: Object, required: !0 },
@@ -5387,7 +5387,7 @@ function Wc(e, t, n, r, s, a) {
5387
5387
  1
5388
5388
  /* TEXT */
5389
5389
  ),
5390
- r.props.schema.required ? (j(), N("span", Bc, "*")) : D("v-if", !0)
5390
+ r.props.schema.required ? (j(), N("span", Bc, "*")) : F("v-if", !0)
5391
5391
  ])
5392
5392
  ], 40, Lc),
5393
5393
  r.showHint ? (j(), N("div", {
@@ -5396,14 +5396,14 @@ function Wc(e, t, n, r, s, a) {
5396
5396
  class: "quickform-hint"
5397
5397
  }, [
5398
5398
  V("span", { innerHTML: r.hint }, null, 8, Jc)
5399
- ], 8, Gc)) : D("v-if", !0),
5399
+ ], 8, Gc)) : F("v-if", !0),
5400
5400
  r.errorMessage ? (j(), N(
5401
5401
  "div",
5402
5402
  xc,
5403
5403
  Q(r.errorMessage),
5404
5404
  1
5405
5405
  /* TEXT */
5406
- )) : D("v-if", !0)
5406
+ )) : F("v-if", !0)
5407
5407
  ]);
5408
5408
  }
5409
5409
  const Zc = /* @__PURE__ */ me(zc, [["render", Wc], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), Yc = /* @__PURE__ */ fe({
@@ -5434,11 +5434,11 @@ const Zc = /* @__PURE__ */ me(zc, [["render", Wc], ["__scopeId", "data-v-1ff012c
5434
5434
  };
5435
5435
  });
5436
5436
  }), _ = G(() => {
5437
- var O, F, z, I;
5437
+ var O, D, z, I;
5438
5438
  const y = n.schema["x-component-props"];
5439
5439
  if ((y == null ? void 0 : y.autocomplete) !== void 0)
5440
5440
  return y.autocomplete;
5441
- const k = ((F = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : F.autocomplete) || !1, S = ((I = (z = d == null ? void 0 : d.componentDefaults) == null ? void 0 : z.select) == null ? void 0 : I.autocompleteThreshold) || 5;
5441
+ const k = ((D = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : D.autocomplete) || !1, S = ((I = (z = d == null ? void 0 : d.componentDefaults) == null ? void 0 : z.select) == null ? void 0 : I.autocompleteThreshold) || 5;
5442
5442
  return k || $.value.length >= S;
5443
5443
  }), g = G(() => {
5444
5444
  var y;
@@ -5464,9 +5464,9 @@ function du(e, t, n, r, s, a) {
5464
5464
  1
5465
5465
  /* TEXT */
5466
5466
  ),
5467
- r.props.schema.required ? (j(), N("span", eu, "*")) : D("v-if", !0)
5467
+ r.props.schema.required ? (j(), N("span", eu, "*")) : F("v-if", !0)
5468
5468
  ], 8, Xc),
5469
- D(" Use datalist for autocomplete when enabled "),
5469
+ F(" Use datalist for autocomplete when enabled "),
5470
5470
  r.useAutocomplete ? Oe((j(), N("input", {
5471
5471
  key: 0,
5472
5472
  id: r.fieldId,
@@ -5483,7 +5483,7 @@ function du(e, t, n, r, s, a) {
5483
5483
  onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
5484
5484
  }, null, 40, tu)), [
5485
5485
  [ht, r.value]
5486
- ]) : D("v-if", !0),
5486
+ ]) : F("v-if", !0),
5487
5487
  V("datalist", { id: r.datalistId }, [
5488
5488
  (j(!0), N(
5489
5489
  $e,
@@ -5496,8 +5496,8 @@ function du(e, t, n, r, s, a) {
5496
5496
  /* KEYED_FRAGMENT */
5497
5497
  ))
5498
5498
  ]),
5499
- D(" Use regular select when autocomplete disabled "),
5500
- r.useAutocomplete ? D("v-if", !0) : Oe((j(), N("select", {
5499
+ F(" Use regular select when autocomplete disabled "),
5500
+ r.useAutocomplete ? F("v-if", !0) : Oe((j(), N("select", {
5501
5501
  key: 1,
5502
5502
  id: r.fieldId,
5503
5503
  "onUpdate:modelValue": t[5] || (t[5] = (o) => r.value = o),
@@ -5536,14 +5536,14 @@ function du(e, t, n, r, s, a) {
5536
5536
  class: "quickform-hint"
5537
5537
  }, [
5538
5538
  V("span", { innerHTML: r.hint }, null, 8, iu)
5539
- ], 8, ou)) : D("v-if", !0),
5539
+ ], 8, ou)) : F("v-if", !0),
5540
5540
  r.errorMessage ? (j(), N(
5541
5541
  "div",
5542
5542
  lu,
5543
5543
  Q(r.errorMessage),
5544
5544
  1
5545
5545
  /* TEXT */
5546
- )) : D("v-if", !0)
5546
+ )) : F("v-if", !0)
5547
5547
  ]);
5548
5548
  }
5549
5549
  const cu = /* @__PURE__ */ me(Yc, [["render", du], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), uu = /* @__PURE__ */ fe({
@@ -5580,7 +5580,7 @@ function gu(e, t, n, r, s, a) {
5580
5580
  1
5581
5581
  /* TEXT */
5582
5582
  ),
5583
- r.props.schema.required ? (j(), N("span", hu, "*")) : D("v-if", !0)
5583
+ r.props.schema.required ? (j(), N("span", hu, "*")) : F("v-if", !0)
5584
5584
  ], 8, mu),
5585
5585
  Oe(V("input", {
5586
5586
  id: r.fieldId,
@@ -5604,14 +5604,14 @@ function gu(e, t, n, r, s, a) {
5604
5604
  class: "quickform-hint"
5605
5605
  }, [
5606
5606
  V("span", { innerHTML: r.hint }, null, 8, vu)
5607
- ], 8, yu)) : D("v-if", !0),
5607
+ ], 8, yu)) : F("v-if", !0),
5608
5608
  r.errorMessage ? (j(), N(
5609
5609
  "div",
5610
5610
  _u,
5611
5611
  Q(r.errorMessage),
5612
5612
  1
5613
5613
  /* TEXT */
5614
- )) : D("v-if", !0)
5614
+ )) : F("v-if", !0)
5615
5615
  ]);
5616
5616
  }
5617
5617
  const bu = /* @__PURE__ */ me(uu, [["render", gu], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), $u = /* @__PURE__ */ fe({
@@ -5666,7 +5666,7 @@ function ku(e, t, n, r, s, a) {
5666
5666
  $e,
5667
5667
  null,
5668
5668
  [
5669
- D(" Only render if visible "),
5669
+ F(" Only render if visible "),
5670
5670
  r.isVisible ? (j(), N(
5671
5671
  $e,
5672
5672
  { key: 0 },
@@ -5698,7 +5698,7 @@ function ku(e, t, n, r, s, a) {
5698
5698
  ],
5699
5699
  64
5700
5700
  /* STABLE_FRAGMENT */
5701
- )) : D("v-if", !0)
5701
+ )) : F("v-if", !0)
5702
5702
  ],
5703
5703
  2112
5704
5704
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -5747,15 +5747,15 @@ function Tu(e, t, n, r, s, a) {
5747
5747
  1
5748
5748
  /* TEXT */
5749
5749
  ),
5750
- r.props.schema.required ? (j(), N("span", ju, "*")) : D("v-if", !0)
5751
- ])) : D("v-if", !0),
5750
+ r.props.schema.required ? (j(), N("span", ju, "*")) : F("v-if", !0)
5751
+ ])) : F("v-if", !0),
5752
5752
  r.hint ? (j(), N("div", {
5753
5753
  key: 1,
5754
5754
  id: `${r.fieldId}-hint`,
5755
5755
  class: "quickform-hint quickform-object-hint"
5756
5756
  }, [
5757
5757
  V("span", { innerHTML: r.hint }, null, 8, Nu)
5758
- ], 8, qu)) : D("v-if", !0),
5758
+ ], 8, qu)) : F("v-if", !0),
5759
5759
  V("div", Iu, [
5760
5760
  (j(!0), N(
5761
5761
  $e,
@@ -5777,7 +5777,7 @@ function Tu(e, t, n, r, s, a) {
5777
5777
  Q(r.errorMessage),
5778
5778
  1
5779
5779
  /* TEXT */
5780
- )) : D("v-if", !0)
5780
+ )) : F("v-if", !0)
5781
5781
  ], 8, Pu)
5782
5782
  ]);
5783
5783
  }
@@ -5810,10 +5810,10 @@ const Ru = /* @__PURE__ */ me(Su, [["render", Tu], ["__scopeId", "data-v-8012fc1
5810
5810
  S.splice(k, 1), r.value = S;
5811
5811
  }, _ = (k, S) => {
5812
5812
  if (S === "up" && k === 0 || S === "down" && k === u.value.length - 1) return;
5813
- const O = [...u.value], F = S === "up" ? k - 1 : k + 1, z = O[k];
5814
- O[k] = O[F], O[F] = z, r.value = O;
5813
+ const O = [...u.value], D = S === "up" ? k - 1 : k + 1, z = O[k];
5814
+ O[k] = O[D], O[D] = z, r.value = O;
5815
5815
  }, g = G(() => !(n.disabled || n.readonly || n.schema.maxItems && u.value.length >= n.schema.maxItems)), p = G(() => !(n.disabled || n.readonly || n.schema.minItems && u.value.length <= n.schema.minItems)), y = { props: n, value: r, errorMessage: s, label: a, hint: o, formContext: i, fieldId: d, schemaUtils: c, arrayValue: u, itemsSchema: f, addItem: b, removeItem: $, moveItem: _, canAdd: g, canRemove: p, getItemLabel: (k) => {
5816
- var F;
5816
+ var D;
5817
5817
  const S = n.schema["x-item-label"];
5818
5818
  if (S === "none" || S === !1)
5819
5819
  return "";
@@ -5828,14 +5828,14 @@ const Ru = /* @__PURE__ */ me(Su, [["render", Tu], ["__scopeId", "data-v-8012fc1
5828
5828
  return I.trim();
5829
5829
  }
5830
5830
  }
5831
- return `${((F = f.value) == null ? void 0 : F.title) || "Item"} #${k + 1}`;
5831
+ return `${((D = f.value) == null ? void 0 : D.title) || "Item"} #${k + 1}`;
5832
5832
  }, FieldRenderer: $t };
5833
5833
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
5834
5834
  }
5835
- }), Cu = { class: "quickform-field quickform-array-field" }, Vu = ["id", "aria-describedby"], Fu = {
5835
+ }), Cu = { class: "quickform-field quickform-array-field" }, Vu = ["id", "aria-describedby"], Du = {
5836
5836
  key: 0,
5837
5837
  class: "quickform-legend"
5838
- }, Du = {
5838
+ }, Fu = {
5839
5839
  key: 0,
5840
5840
  class: "quickform-required"
5841
5841
  }, zu = ["id"], Uu = ["innerHTML"], Lu = { class: "quickform-array-items" }, Hu = { class: "quickform-array-item-content" }, Ku = { class: "quickform-array-item-actions" }, Bu = ["disabled", "onClick"], Gu = ["disabled", "onClick"], Ju = ["disabled", "onClick", "title"], xu = {
@@ -5852,21 +5852,21 @@ function Qu(e, t, n, r, s, a) {
5852
5852
  class: "quickform-fieldset",
5853
5853
  "aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
5854
5854
  }, [
5855
- r.label ? (j(), N("legend", Fu, [
5855
+ r.label ? (j(), N("legend", Du, [
5856
5856
  je(
5857
5857
  Q(r.label) + " ",
5858
5858
  1
5859
5859
  /* TEXT */
5860
5860
  ),
5861
- r.props.schema.required ? (j(), N("span", Du, "*")) : D("v-if", !0)
5862
- ])) : D("v-if", !0),
5861
+ r.props.schema.required ? (j(), N("span", Fu, "*")) : F("v-if", !0)
5862
+ ])) : F("v-if", !0),
5863
5863
  r.hint ? (j(), N("div", {
5864
5864
  key: 1,
5865
5865
  id: `${r.fieldId}-hint`,
5866
5866
  class: "quickform-hint quickform-array-hint"
5867
5867
  }, [
5868
5868
  V("span", { innerHTML: r.hint }, null, 8, Uu)
5869
- ], 8, zu)) : D("v-if", !0),
5869
+ ], 8, zu)) : F("v-if", !0),
5870
5870
  V("div", Lu, [
5871
5871
  (j(!0), N(
5872
5872
  $e,
@@ -5911,7 +5911,7 @@ function Qu(e, t, n, r, s, a) {
5911
5911
  128
5912
5912
  /* KEYED_FRAGMENT */
5913
5913
  )),
5914
- r.arrayValue.length === 0 ? (j(), N("div", xu, " No items ")) : D("v-if", !0)
5914
+ r.arrayValue.length === 0 ? (j(), N("div", xu, " No items ")) : F("v-if", !0)
5915
5915
  ]),
5916
5916
  V("div", Wu, [
5917
5917
  V("button", {
@@ -5927,7 +5927,7 @@ function Qu(e, t, n, r, s, a) {
5927
5927
  Q(r.errorMessage),
5928
5928
  1
5929
5929
  /* TEXT */
5930
- )) : D("v-if", !0)
5930
+ )) : F("v-if", !0)
5931
5931
  ], 8, Vu)
5932
5932
  ]);
5933
5933
  }
@@ -6010,15 +6010,15 @@ function hf(e, t, n, r, s, a) {
6010
6010
  1
6011
6011
  /* TEXT */
6012
6012
  ),
6013
- r.required ? (j(), N("span", nf, "*")) : D("v-if", !0)
6014
- ], 8, rf)) : D("v-if", !0),
6013
+ r.required ? (j(), N("span", nf, "*")) : F("v-if", !0)
6014
+ ], 8, rf)) : F("v-if", !0),
6015
6015
  r.hint ? (j(), N("div", {
6016
6016
  key: 1,
6017
6017
  id: `${r.fieldId}-hint`,
6018
6018
  class: "quickform-hint"
6019
6019
  }, [
6020
6020
  V("span", { innerHTML: r.hint }, null, 8, af)
6021
- ], 8, sf)) : D("v-if", !0),
6021
+ ], 8, sf)) : F("v-if", !0),
6022
6022
  V("div", of, [
6023
6023
  r.pairs.length ? (j(), N("div", lf, [...t[0] || (t[0] = [
6024
6024
  V(
@@ -6042,7 +6042,7 @@ function hf(e, t, n, r, s, a) {
6042
6042
  -1
6043
6043
  /* CACHED */
6044
6044
  )
6045
- ])])) : D("v-if", !0),
6045
+ ])])) : F("v-if", !0),
6046
6046
  (j(!0), N(
6047
6047
  $e,
6048
6048
  null,
@@ -6093,7 +6093,7 @@ function hf(e, t, n, r, s, a) {
6093
6093
  Q(r.errorMessage),
6094
6094
  1
6095
6095
  /* TEXT */
6096
- )) : D("v-if", !0)
6096
+ )) : F("v-if", !0)
6097
6097
  ]);
6098
6098
  }
6099
6099
  const pf = /* @__PURE__ */ me(ef, [["render", hf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), yf = /* @__PURE__ */ fe({
@@ -6132,10 +6132,10 @@ const pf = /* @__PURE__ */ me(ef, [["render", hf], ["__scopeId", "data-v-8e716b7
6132
6132
  const O = S.target;
6133
6133
  f.value = O.value;
6134
6134
  try {
6135
- const F = JSON.parse(f.value);
6136
- s(F), b.value = null;
6137
- } catch (F) {
6138
- b.value = F.message;
6135
+ const D = JSON.parse(f.value);
6136
+ s(D), b.value = null;
6137
+ } catch (D) {
6138
+ b.value = D.message;
6139
6139
  }
6140
6140
  }
6141
6141
  function g() {
@@ -6153,9 +6153,9 @@ const pf = /* @__PURE__ */ me(ef, [["render", hf], ["__scopeId", "data-v-8e716b7
6153
6153
  }
6154
6154
  if (S.key === "Tab") {
6155
6155
  S.preventDefault(), S.stopPropagation();
6156
- const F = O.selectionStart, z = O.selectionEnd, I = " ";
6157
- f.value = f.value.substring(0, F) + I + f.value.substring(z), setTimeout(() => {
6158
- O.selectionStart = O.selectionEnd = F + I.length;
6156
+ const D = O.selectionStart, z = O.selectionEnd, I = " ";
6157
+ f.value = f.value.substring(0, D) + I + f.value.substring(z), setTimeout(() => {
6158
+ O.selectionStart = O.selectionEnd = D + I.length;
6159
6159
  }, 0);
6160
6160
  return;
6161
6161
  }
@@ -6193,17 +6193,17 @@ function Pf(e, t, n, r, s, a) {
6193
6193
  1
6194
6194
  /* TEXT */
6195
6195
  ),
6196
- r.required ? (j(), N("span", bf, "*")) : D("v-if", !0)
6196
+ r.required ? (j(), N("span", bf, "*")) : F("v-if", !0)
6197
6197
  ], 8, gf),
6198
- r.showFormatHint ? (j(), N("span", $f, "ⓘ")) : D("v-if", !0)
6199
- ])) : D("v-if", !0),
6198
+ r.showFormatHint ? (j(), N("span", $f, "ⓘ")) : F("v-if", !0)
6199
+ ])) : F("v-if", !0),
6200
6200
  r.hint ? (j(), N("div", {
6201
6201
  key: 1,
6202
6202
  id: `${r.fieldId}-hint`,
6203
6203
  class: "quickform-hint"
6204
6204
  }, [
6205
6205
  V("span", { innerHTML: r.hint }, null, 8, kf)
6206
- ], 8, wf)) : D("v-if", !0),
6206
+ ], 8, wf)) : F("v-if", !0),
6207
6207
  Oe(V("textarea", {
6208
6208
  id: r.fieldId,
6209
6209
  "onUpdate:modelValue": t[0] || (t[0] = (o) => r.jsonText = o),
@@ -6226,7 +6226,7 @@ function Pf(e, t, n, r, s, a) {
6226
6226
  Q(r.displayError),
6227
6227
  1
6228
6228
  /* TEXT */
6229
- )) : D("v-if", !0)
6229
+ )) : F("v-if", !0)
6230
6230
  ]);
6231
6231
  }
6232
6232
  const Of = /* @__PURE__ */ me(yf, [["render", Pf], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), jf = /* @__PURE__ */ fe({
@@ -6261,7 +6261,7 @@ const Of = /* @__PURE__ */ me(yf, [["render", Pf], ["__scopeId", "data-v-8122fb7
6261
6261
  }, Mf = {
6262
6262
  key: 0,
6263
6263
  class: "quickform-required"
6264
- }, Tf = ["id"], Rf = ["innerHTML"], Af = { class: "quickform-oneof-selector" }, Cf = ["value", "disabled"], Vf = ["value"], Ff = { class: "quickform-oneof-content" }, Df = {
6264
+ }, Tf = ["id"], Rf = ["innerHTML"], Af = { class: "quickform-oneof-selector" }, Cf = ["value", "disabled"], Vf = ["value"], Df = { class: "quickform-oneof-content" }, Ff = {
6265
6265
  key: 2,
6266
6266
  class: "quickform-error"
6267
6267
  };
@@ -6278,15 +6278,15 @@ function zf(e, t, n, r, s, a) {
6278
6278
  1
6279
6279
  /* TEXT */
6280
6280
  ),
6281
- r.props.schema.required ? (j(), N("span", Mf, "*")) : D("v-if", !0)
6282
- ])) : D("v-if", !0),
6281
+ r.props.schema.required ? (j(), N("span", Mf, "*")) : F("v-if", !0)
6282
+ ])) : F("v-if", !0),
6283
6283
  r.hint ? (j(), N("div", {
6284
6284
  key: 1,
6285
6285
  id: `${r.fieldId}-hint`,
6286
6286
  class: "quickform-hint quickform-oneof-hint"
6287
6287
  }, [
6288
6288
  V("span", { innerHTML: r.hint }, null, 8, Rf)
6289
- ], 8, Tf)) : D("v-if", !0),
6289
+ ], 8, Tf)) : F("v-if", !0),
6290
6290
  V("div", Af, [
6291
6291
  V("select", {
6292
6292
  value: r.selectedIndex,
@@ -6306,22 +6306,22 @@ function zf(e, t, n, r, s, a) {
6306
6306
  ))
6307
6307
  ], 40, Cf)
6308
6308
  ]),
6309
- V("div", Ff, [
6309
+ V("div", Df, [
6310
6310
  r.activeSchema ? (j(), pt(r.FieldRenderer, {
6311
6311
  key: 0,
6312
6312
  schema: r.activeSchema,
6313
6313
  path: n.path,
6314
6314
  disabled: n.disabled,
6315
6315
  readonly: n.readonly
6316
- }, null, 8, ["schema", "path", "disabled", "readonly"])) : D("v-if", !0)
6316
+ }, null, 8, ["schema", "path", "disabled", "readonly"])) : F("v-if", !0)
6317
6317
  ]),
6318
6318
  r.errorMessage ? (j(), N(
6319
6319
  "div",
6320
- Df,
6320
+ Ff,
6321
6321
  Q(r.errorMessage),
6322
6322
  1
6323
6323
  /* TEXT */
6324
- )) : D("v-if", !0)
6324
+ )) : F("v-if", !0)
6325
6325
  ], 8, Nf)
6326
6326
  ]);
6327
6327
  }
@@ -6348,7 +6348,7 @@ const Ln = /* @__PURE__ */ me(jf, [["render", zf], ["__scopeId", "data-v-dab625e
6348
6348
  }), Lf = { class: "quickform-field quickform-allof-field" };
6349
6349
  function Hf(e, t, n, r, s, a) {
6350
6350
  return j(), N("div", Lf, [
6351
- D(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6351
+ F(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6352
6352
  Kn(r.FieldRenderer, {
6353
6353
  schema: r.mergedSchema,
6354
6354
  path: n.path,
@@ -6384,7 +6384,7 @@ function Jf(e, t, n, r, s, a) {
6384
6384
  $e,
6385
6385
  null,
6386
6386
  [
6387
- D(" Hidden field - renders nothing visible to the user "),
6387
+ F(" Hidden field - renders nothing visible to the user "),
6388
6388
  V("input", {
6389
6389
  type: "hidden",
6390
6390
  value: r.value
@@ -6407,7 +6407,7 @@ function Wf() {
6407
6407
  (t) => he(1, Xe(t))
6408
6408
  ), e.register(
6409
6409
  "number",
6410
- Dc,
6410
+ Fc,
6411
6411
  (t) => he(1, la(t))
6412
6412
  ), e.register(
6413
6413
  "boolean",
@@ -6460,7 +6460,7 @@ const Zf = /* @__PURE__ */ fe({
6460
6460
  },
6461
6461
  emits: ["update:modelValue", "submit", "validation"],
6462
6462
  setup(e, { expose: t, emit: n }) {
6463
- var k, S, O, F;
6463
+ var k, S, O, D;
6464
6464
  t();
6465
6465
  const r = e, s = n, a = new bt(), o = r.options.registry || Wf(), { handleSubmit: i, values: d, setValues: c, errors: u, meta: f } = oa({
6466
6466
  initialValues: r.options.useDefaults !== !1 ? { ...a.getDefaultValue(r.schema), ...r.modelValue } : { ...r.modelValue },
@@ -6519,9 +6519,10 @@ const Zf = /* @__PURE__ */ fe({
6519
6519
  },
6520
6520
  hints: {
6521
6521
  ...$.hints,
6522
- ...(F = r.options.componentDefaults) == null ? void 0 : F.hints
6522
+ ...(D = r.options.componentDefaults) == null ? void 0 : D.hints
6523
6523
  }
6524
6524
  },
6525
+ quickformsDefaults: r.options.quickformsDefaults || {},
6525
6526
  hintRenderer: r.options.hintRenderer
6526
6527
  });
6527
6528
  cc(_), xe(
@@ -6565,7 +6566,7 @@ function Yf(e, t, n, r, s, a) {
6565
6566
  onSubmit: t[0] || (t[0] = (...o) => r.onSubmit && r.onSubmit(...o))
6566
6567
  },
6567
6568
  [
6568
- D(" Single field schema (e.g., JSON editor, single object field) "),
6569
+ F(" Single field schema (e.g., JSON editor, single object field) "),
6569
6570
  r.isSingleField ? (j(), pt(r.FieldRenderer, {
6570
6571
  key: 0,
6571
6572
  schema: n.schema,
@@ -6576,7 +6577,7 @@ function Yf(e, t, n, r, s, a) {
6576
6577
  $e,
6577
6578
  { key: 1 },
6578
6579
  [
6579
- D(" Multiple fields (normal form) "),
6580
+ F(" Multiple fields (normal form) "),
6580
6581
  (j(!0), N(
6581
6582
  $e,
6582
6583
  null,
@@ -6612,7 +6613,7 @@ export {
6612
6613
  xf as HiddenField,
6613
6614
  Of as JsonField,
6614
6615
  pf as KeyValueField,
6615
- Dc as NumberField,
6616
+ Fc as NumberField,
6616
6617
  Ru as ObjectField,
6617
6618
  Ln as OneOfField,
6618
6619
  bt as SchemaUtils,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickflo/quickforms-vue",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Vue 3 bindings for QuickForms - JSON Schema form generator",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "vee-validate": "^4.12.0",
33
- "@quickflo/quickforms": "1.3.2"
33
+ "@quickflo/quickforms": "1.3.4"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.0.0",