@dynamicforms/vue-forms 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ var B = (n, i, t) => i in n ? ht(n, i, { enumerable: !0, configurable: !0, writa
10
10
  K.call(i, t) && B(n, t, i[t]);
11
11
  return n;
12
12
  }, O = (n, i) => gt(n, dt(i));
13
- var I = (n, i) => {
13
+ var _ = (n, i) => {
14
14
  var t = {};
15
15
  for (var e in n)
16
16
  J.call(n, e) && i.indexOf(e) < 0 && (t[e] = n[e]);
@@ -42,7 +42,7 @@ const Y = 10;
42
42
  })(S || (S = {}));
43
43
  Object.freeze(S);
44
44
  const A = S;
45
- class p {
45
+ class b {
46
46
  constructor(i) {
47
47
  o(this, "executorFn");
48
48
  this.executorFn = i;
@@ -70,7 +70,7 @@ class p {
70
70
  class M extends Error {
71
71
  }
72
72
  const it = Symbol("ValueChangedAction");
73
- class v extends p {
73
+ class v extends b {
74
74
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
75
75
  constructor(i) {
76
76
  super(i);
@@ -93,15 +93,12 @@ class H {
93
93
  get componentName() {
94
94
  return "Comment";
95
95
  }
96
- // eslint-disable-line class-methods-use-this
97
96
  get componentBindings() {
98
97
  return {};
99
98
  }
100
- // eslint-disable-line class-methods-use-this
101
99
  get componentBody() {
102
100
  return "";
103
101
  }
104
- // eslint-disable-line class-methods-use-this
105
102
  }
106
103
  class vt extends H {
107
104
  constructor(t) {
@@ -112,12 +109,11 @@ class vt extends H {
112
109
  get componentName() {
113
110
  return "template";
114
111
  }
115
- // eslint-disable-line class-methods-use-this
116
112
  get componentBody() {
117
113
  return this.text;
118
114
  }
119
115
  }
120
- class b extends H {
116
+ class p extends H {
121
117
  constructor(t) {
122
118
  super();
123
119
  o(this, "text");
@@ -147,7 +143,7 @@ class b extends H {
147
143
  case "md":
148
144
  return { source: this.text.toString() };
149
145
  case "component":
150
- return d(this.text).componentProps;
146
+ return d(this.text).componentProps || {};
151
147
  default:
152
148
  return {};
153
149
  }
@@ -156,12 +152,16 @@ class b extends H {
156
152
  switch (d(this.textType)) {
157
153
  case "string":
158
154
  return d(this.text);
155
+ case "component":
156
+ return d(this.text).componentVHtml || "";
159
157
  default:
160
158
  return "";
161
159
  }
162
160
  }
163
161
  }
164
- const mt = Symbol("Validator");
162
+ class mt extends p {
163
+ }
164
+ const yt = Symbol("Validator");
165
165
  class f extends v {
166
166
  /**
167
167
  * Creates a new validator
@@ -170,14 +170,14 @@ class f extends v {
170
170
  constructor(t) {
171
171
  super((s, r, a, l) => {
172
172
  const c = t(a, l, s) || [], u = (h) => {
173
- var C;
173
+ var I;
174
174
  h == null || h.forEach(
175
175
  (x) => Object.defineProperty(x, "source", { value: this.source, enumerable: !1, configurable: !1 })
176
176
  );
177
177
  for (let x = s.errors.length - 1; x >= 0; x--) {
178
178
  const T = s.errors[x];
179
179
  if (T.source === this.source) {
180
- const j = (C = h == null ? void 0 : h.findIndex(($) => R($, T))) != null ? C : -1;
180
+ const j = (I = h == null ? void 0 : h.findIndex(($) => R($, T))) != null ? I : -1;
181
181
  j >= 0 ? h == null || h.splice(j, 1) : s.errors.splice(x, 1);
182
182
  }
183
183
  }
@@ -192,7 +192,7 @@ class f extends v {
192
192
  }
193
193
  // eslint-disable-next-line class-methods-use-this
194
194
  static get classIdentifier() {
195
- return mt;
195
+ return yt;
196
196
  }
197
197
  // eslint-disable-next-line class-methods-use-this
198
198
  get eager() {
@@ -214,7 +214,7 @@ class N extends Map {
214
214
  o(this, "registeredActions", []);
215
215
  }
216
216
  register(t) {
217
- if (!(t instanceof p)) throw new Error("Invalid action type");
217
+ if (!(t instanceof b)) throw new Error("Invalid action type");
218
218
  this.registeredActions.push(t);
219
219
  const e = t.classIdentifier, s = this.get(e) || (() => null);
220
220
  function r(a, ...l) {
@@ -254,7 +254,7 @@ class N extends Map {
254
254
  }), t;
255
255
  }
256
256
  }
257
- const yt = Symbol("ConditionalStatementAction");
257
+ const xt = Symbol("ConditionalStatementAction");
258
258
  class U extends v {
259
259
  constructor(t, e) {
260
260
  const s = (r, a, l, c) => {
@@ -275,7 +275,7 @@ class U extends v {
275
275
  }
276
276
  // eslint-disable-next-line class-methods-use-this
277
277
  static get classIdentifier() {
278
- return yt;
278
+ return xt;
279
279
  }
280
280
  // eslint-disable-next-line class-methods-use-this
281
281
  get eager() {
@@ -285,21 +285,21 @@ class U extends v {
285
285
  this.boundFields.add(t);
286
286
  }
287
287
  }
288
- class xt extends U {
288
+ class Et extends U {
289
289
  constructor(i) {
290
290
  super(i, (t, e) => {
291
291
  t.visibility = e ? A.FULL : A.SUPPRESS;
292
292
  });
293
293
  }
294
294
  }
295
- class Et extends U {
295
+ class Vt extends U {
296
296
  constructor(i) {
297
297
  super(i, (t, e) => {
298
298
  t.enabled = e;
299
299
  });
300
300
  }
301
301
  }
302
- class Vt extends U {
302
+ class At extends U {
303
303
  constructor(i, t) {
304
304
  super(i, (e, s) => {
305
305
  s && (e.value = t);
@@ -346,71 +346,71 @@ var L = /* @__PURE__ */ ((n) => (n[n.NOT = 0] = "NOT", n[n.OR = 1] = "OR", n[n.A
346
346
  n.isLogicOperator = s;
347
347
  })(L || (L = {}));
348
348
  Object.freeze(L);
349
- const g = L, At = Symbol("EnabledChangingAction");
350
- class nt extends p {
349
+ const g = L, It = Symbol("EnabledChangingAction");
350
+ class nt extends b {
351
351
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
352
352
  constructor(i) {
353
353
  super(i);
354
354
  }
355
355
  // eslint-disable-next-line class-methods-use-this
356
356
  static get classIdentifier() {
357
- return At;
357
+ return It;
358
358
  }
359
359
  execute(i, t, e, s) {
360
360
  return super.execute(i, t, e, s);
361
361
  }
362
362
  }
363
- const Ct = Symbol("EnabledChangedAction");
364
- class st extends p {
363
+ const _t = Symbol("EnabledChangedAction");
364
+ class st extends b {
365
365
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
366
366
  constructor(i) {
367
367
  super(i);
368
368
  }
369
369
  // eslint-disable-next-line class-methods-use-this
370
370
  static get classIdentifier() {
371
- return Ct;
371
+ return _t;
372
372
  }
373
373
  execute(i, t, e, s) {
374
374
  return super.execute(i, t, e, s);
375
375
  }
376
376
  }
377
- const It = Symbol("ValidChangedAction");
378
- class rt extends p {
377
+ const Ct = Symbol("ValidChangedAction");
378
+ class rt extends b {
379
379
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
380
380
  constructor(i) {
381
381
  super(i);
382
382
  }
383
383
  // eslint-disable-next-line class-methods-use-this
384
384
  static get classIdentifier() {
385
- return It;
385
+ return Ct;
386
386
  }
387
387
  execute(i, t, e, s) {
388
388
  return super.execute(i, t, e, s);
389
389
  }
390
390
  }
391
- const _t = Symbol("VisibilityChangingAction");
392
- class at extends p {
391
+ const St = Symbol("VisibilityChangingAction");
392
+ class at extends b {
393
393
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
394
394
  constructor(i) {
395
395
  super(i);
396
396
  }
397
397
  // eslint-disable-next-line class-methods-use-this
398
398
  static get classIdentifier() {
399
- return _t;
399
+ return St;
400
400
  }
401
401
  execute(i, t, e, s) {
402
402
  return super.execute(i, t, e, s);
403
403
  }
404
404
  }
405
- const St = Symbol("VisibilityChangedAction");
406
- class lt extends p {
405
+ const Ft = Symbol("VisibilityChangedAction");
406
+ class lt extends b {
407
407
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
408
408
  constructor(i) {
409
409
  super(i);
410
410
  }
411
411
  // eslint-disable-next-line class-methods-use-this
412
412
  static get classIdentifier() {
413
- return St;
413
+ return Ft;
414
414
  }
415
415
  execute(i, t, e, s) {
416
416
  return super.execute(i, t, e, s);
@@ -471,10 +471,10 @@ class y {
471
471
  this.actions = this.actions.cloneWithoutValidators(), this.errors = [], this._valid = !0;
472
472
  }
473
473
  }
474
- function Ft(n, i) {
474
+ function Nt(n, i) {
475
475
  return n ? !i : i;
476
476
  }
477
- class _ {
477
+ class C {
478
478
  constructor(i, t, e) {
479
479
  o(this, "operand1");
480
480
  o(this, "operator");
@@ -482,10 +482,10 @@ class _ {
482
482
  this.operand1 = i, this.operator = t, this.operand2 = e;
483
483
  }
484
484
  get operand1Value() {
485
- return this.operand1 instanceof _ ? this.operand1.evaluate() : this.operand1 instanceof y ? d(this.operand1.value) : this.operand1;
485
+ return this.operand1 instanceof C ? this.operand1.evaluate() : this.operand1 instanceof y ? d(this.operand1.value) : this.operand1;
486
486
  }
487
487
  get operand2Value() {
488
- return this.operand2 instanceof _ ? this.operand2.evaluate() : this.operand2 instanceof y ? d(this.operand2.value) : this.operand2;
488
+ return this.operand2 instanceof C ? this.operand2.evaluate() : this.operand2 instanceof y ? d(this.operand2.value) : this.operand2;
489
489
  }
490
490
  evaluate() {
491
491
  var e, s, r, a;
@@ -500,7 +500,7 @@ class _ {
500
500
  case g.NOR:
501
501
  return !(i || t);
502
502
  case g.XOR:
503
- return Ft(i, t);
503
+ return Nt(i, t);
504
504
  case g.NOT:
505
505
  return !i;
506
506
  case g.EQUALS:
@@ -534,48 +534,48 @@ class _ {
534
534
  collectFields() {
535
535
  const i = /* @__PURE__ */ new Set();
536
536
  function t(e) {
537
- e instanceof y ? i.add(e) : e instanceof _ && e.collectFields().forEach((r) => i.add(r));
537
+ e instanceof y ? i.add(e) : e instanceof C && e.collectFields().forEach((r) => i.add(r));
538
538
  }
539
539
  return t(this.operand1), t(this.operand2), i;
540
540
  }
541
541
  }
542
- const Nt = Symbol("ExecuteAction");
543
- class ot extends p {
542
+ const Lt = Symbol("ExecuteAction");
543
+ class ot extends b {
544
544
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
545
545
  constructor(i) {
546
546
  super(i);
547
547
  }
548
548
  // eslint-disable-next-line class-methods-use-this
549
549
  static get classIdentifier() {
550
- return Nt;
550
+ return Lt;
551
551
  }
552
552
  execute(i, t, e) {
553
553
  return super.execute(i, t, e);
554
554
  }
555
555
  }
556
- const Lt = Symbol("ListItemAddedAction");
557
- class Q extends p {
556
+ const Tt = Symbol("ListItemAddedAction");
557
+ class Q extends b {
558
558
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
559
559
  constructor(i) {
560
560
  super(i);
561
561
  }
562
562
  // eslint-disable-next-line class-methods-use-this
563
563
  static get classIdentifier() {
564
- return Lt;
564
+ return Tt;
565
565
  }
566
566
  execute(i, t, e, s) {
567
567
  return super.execute(i, t, e, s);
568
568
  }
569
569
  }
570
- const Tt = Symbol("ListItemRemovedAction");
571
- class ct extends p {
570
+ const jt = Symbol("ListItemRemovedAction");
571
+ class ct extends b {
572
572
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
573
573
  constructor(i) {
574
574
  super(i);
575
575
  }
576
576
  // eslint-disable-next-line class-methods-use-this
577
577
  static get classIdentifier() {
578
- return Tt;
578
+ return jt;
579
579
  }
580
580
  execute(i, t, e, s) {
581
581
  return super.execute(i, t, e, s);
@@ -593,7 +593,7 @@ class D extends y {
593
593
  }
594
594
  init(t) {
595
595
  if (t) {
596
- const e = t, { value: s, validators: r, actions: a } = e, l = I(e, ["value", "validators", "actions"]);
596
+ const e = t, { value: s, validators: r, actions: a } = e, l = _(e, ["value", "validators", "actions"]);
597
597
  [...r || [], ...a || []].forEach((c) => this.registerAction(c)), Object.assign(this, l), this._value = s != null ? s : this.originalValue, this.originalValue === void 0 && (this.originalValue = this._value);
598
598
  }
599
599
  this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -625,7 +625,7 @@ class D extends y {
625
625
  return e.actions = this.actions.clone(), e.actions.triggerEager(e, e.value, e.originalValue), e;
626
626
  }
627
627
  }
628
- const jt = D.create({ value: "EmptyField" }).registerAction(new v(
628
+ const wt = D.create({ value: "EmptyField" }).registerAction(new v(
629
629
  () => {
630
630
  console.warn("Working with EmptyField! This should not happen");
631
631
  }
@@ -633,13 +633,13 @@ const jt = D.create({ value: "EmptyField" }).registerAction(new v(
633
633
  function k(n, i) {
634
634
  return (n == null ? void 0 : n.label) == null && (n == null ? void 0 : n.icon) == null ? i : n;
635
635
  }
636
- class wt extends D {
636
+ class Pt extends D {
637
637
  constructor(i) {
638
638
  super(i), this._value = { label: void 0, icon: void 0 };
639
639
  }
640
640
  init(i) {
641
641
  if (i) {
642
- const t = i, { value: e, originalValue: s, validators: r, actions: a } = t, l = I(t, ["value", "originalValue", "validators", "actions"]);
642
+ const t = i, { value: e, originalValue: s, validators: r, actions: a } = t, l = _(t, ["value", "originalValue", "validators", "actions"]);
643
643
  [...r || [], ...a || []].forEach((h) => this.registerAction(h)), Object.assign(this, l);
644
644
  const c = k(e, this._value), u = Object.freeze({ label: s == null ? void 0 : s.label, icon: s == null ? void 0 : s.icon });
645
645
  this._value = k(c, u), this.originalValue = k(u, c);
@@ -674,7 +674,7 @@ class E extends y {
674
674
  o(this, "suppressNotifyValueChanged", !1);
675
675
  if (!E.isValidFields(t)) throw new Error("Invalid fields object provided");
676
676
  if (this._fields = {}, Object.entries(t).forEach(([r, a]) => this.addField(r, a)), e) {
677
- const s = e, { value: r, validators: a, actions: l } = s, c = I(s, ["value", "validators", "actions"]);
677
+ const s = e, { value: r, validators: a, actions: l } = s, c = _(s, ["value", "validators", "actions"]);
678
678
  [...a || [], ...l || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), this.value = r != null ? r : this.originalValue;
679
679
  }
680
680
  this.originalValue === void 0 && (this.originalValue = this.value), this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -769,7 +769,7 @@ class X extends y {
769
769
  o(this, "_itemTemplate");
770
770
  o(this, "_previousValue");
771
771
  if (this._itemTemplate = t, e) {
772
- const s = e, { value: r, validators: a, actions: l } = s, c = I(s, ["value", "validators", "actions"]);
772
+ const s = e, { value: r, validators: a, actions: l } = s, c = _(s, ["value", "validators", "actions"]);
773
773
  [...a || [], ...l || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), r && this.setValueInternal(r);
774
774
  }
775
775
  this.originalValue === void 0 && (this.originalValue = this.value), this._previousValue = this.value, this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -841,29 +841,29 @@ class X extends y {
841
841
  }
842
842
  }
843
843
  const ut = { useMarkdownInValidators: !0 };
844
- function Pt() {
844
+ function Ot() {
845
845
  return ut;
846
846
  }
847
- function Ot(n) {
847
+ function Rt(n) {
848
848
  Object.assign(ut, n);
849
849
  }
850
- const Kt = {
850
+ const Yt = {
851
851
  install(n, i) {
852
- i && Ot(i);
852
+ i && Rt(i);
853
853
  }
854
854
  };
855
855
  function m(n) {
856
- return Pt().useMarkdownInValidators ? new F(n) : n.replace(/[*_~`]/g, "").replace(/\[.*?\]\((.*?)\)/g, "$1").replace(/!\[.*?\]\((.*?)\)/g, "").replace(/#+\s?/g, "").replace(/>\s?/g, "").replace(/(\*|-|\d+\.)\s+/g, "").replace(/`{3}[\s\S]*?`{3}/g, "").replace(/`([^`]+)`/g, "$1").replace(/\n{2,}/g, `
856
+ return Ot().useMarkdownInValidators ? new F(n) : n.replace(/[*_~`]/g, "").replace(/!\[(.*?)\]\(.*?\)/g, "$1").replace(/\[(.*?)\]\((.*?)\)/g, "$1").replace(/#+\s?/g, "").replace(/>\s?/g, "").replace(/(\*|-|\d+\.)\s+/g, "").replace(/`{3}[\s\S]*?`{3}/g, "").replace(/`([^`]+)`/g, "$1").replace(/\n{2,}/g, `
857
857
  `);
858
858
  }
859
- class Rt extends f {
859
+ class Ut extends f {
860
860
  constructor(t, e, s) {
861
861
  let r = !1, a, l;
862
- super((u, h, C) => (a = u, l = h, r || (r = !0, this.otherField.registerAction(new v((x, T, j, $) => {
863
- T(x, j, $), this.unregistered || this.execute(C, () => null, a, l);
862
+ super((u, h, I) => (a = u, l = h, r || (r = !0, this.otherField.registerAction(new v((x, T, j, $) => {
863
+ T(x, j, $), this.unregistered || this.execute(I, () => null, a, l);
864
864
  }))), this.isValidComparison(d(u), d(this.otherField.value)) ? null : [
865
- new b(
866
- this.replacePlaceholders(s, { newValue: u, oldValue: h, field: C, otherField: this.otherField })
865
+ new p(
866
+ this.replacePlaceholders(s, { newValue: u, oldValue: h, field: I, otherField: this.otherField })
867
867
  )
868
868
  ]));
869
869
  o(this, "unregistered", !1);
@@ -873,7 +873,7 @@ class Rt extends f {
873
873
  this.unregistered = !0;
874
874
  }
875
875
  }
876
- class Ut extends f {
876
+ class Dt extends f {
877
877
  constructor(i, t) {
878
878
  const e = t || m("Must be one of [**{allowedAsText}**]");
879
879
  let s = i.join(", ");
@@ -883,44 +883,44 @@ class Ut extends f {
883
883
  omission: `... (${i.length} items total)`
884
884
  }));
885
885
  const r = (a, l, c) => i.includes(d(a)) ? null : [
886
- new b(
886
+ new p(
887
887
  this.replacePlaceholders(e, { newValue: a, oldValue: l, field: c, allowedValues: i, allowedAsText: s })
888
888
  )
889
889
  ];
890
890
  super(r);
891
891
  }
892
892
  }
893
- function Dt(n) {
893
+ function $t(n) {
894
894
  return n == null ? 0 : tt(n) || V(n) ? n.length : et(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
895
895
  }
896
- class $t extends f {
896
+ class Bt extends f {
897
897
  constructor(i) {
898
- const t = i || m("Please enter a value"), e = (s, r, a) => Dt(d(s)) === 0 ? [new b(
898
+ const t = i || m("Please enter a value"), e = (s, r, a) => $t(d(s)) === 0 ? [new p(
899
899
  this.replacePlaceholders(t, { newValue: s, oldValue: r, field: a })
900
900
  )] : null;
901
901
  super(e);
902
902
  }
903
903
  }
904
- class Bt extends f {
904
+ class kt extends f {
905
905
  constructor(i, t) {
906
906
  const e = t || m("Value must be larger or equal to **{minValue}**"), s = (r, a, l) => r < i || r === void 0 ? [
907
- new b(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, minValue: i }))
907
+ new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, minValue: i }))
908
908
  ] : null;
909
909
  super(s);
910
910
  }
911
911
  }
912
- class kt extends f {
912
+ class qt extends f {
913
913
  constructor(i, t) {
914
914
  const e = t || m("Value must be less than or equal to **{maxValue}**"), s = (r, a, l) => r > i || r === void 0 ? [
915
- new b(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, maxValue: i }))
915
+ new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, maxValue: i }))
916
916
  ] : null;
917
917
  super(s);
918
918
  }
919
919
  }
920
- class qt extends f {
920
+ class Mt extends f {
921
921
  constructor(i, t, e) {
922
922
  const s = e || m("Value must be between **{minValue}** and **{maxValue}**"), r = (a, l, c) => a < i || a > t || a === void 0 ? [
923
- new b(
923
+ new p(
924
924
  this.replacePlaceholders(s, { newValue: a, oldValue: l, field: c, minValue: i, maxValue: t })
925
925
  )
926
926
  ] : null;
@@ -930,28 +930,28 @@ class qt extends f {
930
930
  function W(n) {
931
931
  return n == null ? 0 : tt(n) || V(n) ? n.length : et(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
932
932
  }
933
- class Mt extends f {
933
+ class Qt extends f {
934
934
  constructor(i, t) {
935
935
  const e = t || m("Length must be larger or equal to **{minLength}**"), s = (r, a, l) => W(r) < i ? [
936
- new b(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, minLength: i }))
936
+ new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, minLength: i }))
937
937
  ] : null;
938
938
  super(s);
939
939
  }
940
940
  }
941
- class Qt extends f {
941
+ class zt extends f {
942
942
  constructor(i, t) {
943
943
  const e = t || m("Length must be less than or equal to **{maxLength}**"), s = (r, a, l) => W(r) > i ? [
944
- new b(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, maxLength: i }))
944
+ new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, maxLength: i }))
945
945
  ] : null;
946
946
  super(s);
947
947
  }
948
948
  }
949
- class zt extends f {
949
+ class Gt extends f {
950
950
  constructor(i, t, e) {
951
951
  const s = e || m("Length must be between **{minLength}** and **{maxLength}**"), r = (a, l, c) => {
952
952
  const u = W(a);
953
953
  return u < i || u > t ? [
954
- new b(
954
+ new p(
955
955
  this.replacePlaceholders(s, { newValue: a, oldValue: l, field: c, minLength: i, maxLength: t })
956
956
  )
957
957
  ] : null;
@@ -959,43 +959,43 @@ class zt extends f {
959
959
  super(r);
960
960
  }
961
961
  }
962
- class Gt extends f {
962
+ class Ht extends f {
963
963
  constructor(i, t) {
964
964
  const e = t || m('Value must match pattern "**{pattern}**"'), s = (r, a, l) => i.test(String(d(r))) ? null : [
965
- new b(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, pattern: i }))
965
+ new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: l, pattern: i }))
966
966
  ];
967
967
  super(s);
968
968
  }
969
969
  }
970
- const Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
+ const Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
971
971
  __proto__: null,
972
- CompareTo: Rt,
973
- InAllowedValues: Ut,
974
- LengthInRange: zt,
975
- MaxLength: Qt,
976
- MaxValue: kt,
977
- MinLength: Mt,
978
- MinValue: Bt,
979
- Pattern: Gt,
980
- Required: $t,
972
+ CompareTo: Ut,
973
+ InAllowedValues: Dt,
974
+ LengthInRange: Gt,
975
+ MaxLength: zt,
976
+ MaxValue: qt,
977
+ MinLength: Qt,
978
+ MinValue: kt,
979
+ Pattern: Ht,
980
+ Required: Bt,
981
981
  Validator: f,
982
- ValueInRange: qt
983
- }, Symbol.toStringTag, { value: "Module" })), Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
982
+ ValueInRange: Mt
983
+ }, Symbol.toStringTag, { value: "Module" })), Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
984
984
  __proto__: null,
985
985
  AbortEventHandlingException: M,
986
- Action: wt,
986
+ Action: Pt,
987
987
  ActionsMap: N,
988
- ConditionalEnabledAction: Et,
988
+ ConditionalEnabledAction: Vt,
989
989
  ConditionalStatementAction: U,
990
- ConditionalValueAction: Vt,
991
- ConditionalVisibilityAction: xt,
990
+ ConditionalValueAction: At,
991
+ ConditionalVisibilityAction: Et,
992
992
  DisplayMode: A,
993
- EmptyField: jt,
993
+ EmptyField: wt,
994
994
  EnabledChangedAction: st,
995
995
  EnabledChangingAction: nt,
996
996
  ExecuteAction: ot,
997
997
  Field: D,
998
- FieldActionBase: p,
998
+ FieldActionBase: b,
999
999
  FieldBase: y,
1000
1000
  Group: E,
1001
1001
  List: X,
@@ -1003,34 +1003,35 @@ const Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1003
1003
  ListItemRemovedAction: ct,
1004
1004
  MdString: F,
1005
1005
  Operator: g,
1006
- Statement: _,
1006
+ RenderableValue: mt,
1007
+ Statement: C,
1007
1008
  ValidChangedAction: rt,
1008
1009
  ValidationError: H,
1009
- ValidationErrorRenderContent: b,
1010
+ ValidationErrorRenderContent: p,
1010
1011
  ValidationErrorText: vt,
1011
1012
  Validator: f,
1012
- Validators: Ht,
1013
+ Validators: Xt,
1013
1014
  ValueChangedAction: v,
1014
1015
  VisibilityChangedAction: lt,
1015
1016
  VisibilityChangingAction: at,
1016
1017
  buildErrorMessage: m,
1017
- isCustomModalContentComponentDef: G
1018
+ isSimpleComponentDef: G
1018
1019
  }, Symbol.toStringTag, { value: "Module" }));
1019
1020
  export {
1020
1021
  M as AbortEventHandlingException,
1021
- wt as Action,
1022
+ Pt as Action,
1022
1023
  N as ActionsMap,
1023
- Et as ConditionalEnabledAction,
1024
+ Vt as ConditionalEnabledAction,
1024
1025
  U as ConditionalStatementAction,
1025
- Vt as ConditionalValueAction,
1026
- xt as ConditionalVisibilityAction,
1026
+ At as ConditionalValueAction,
1027
+ Et as ConditionalVisibilityAction,
1027
1028
  A as DisplayMode,
1028
- jt as EmptyField,
1029
+ wt as EmptyField,
1029
1030
  st as EnabledChangedAction,
1030
1031
  nt as EnabledChangingAction,
1031
1032
  ot as ExecuteAction,
1032
1033
  D as Field,
1033
- p as FieldActionBase,
1034
+ b as FieldActionBase,
1034
1035
  y as FieldBase,
1035
1036
  E as Group,
1036
1037
  X as List,
@@ -1038,19 +1039,20 @@ export {
1038
1039
  ct as ListItemRemovedAction,
1039
1040
  F as MdString,
1040
1041
  g as Operator,
1041
- _ as Statement,
1042
+ mt as RenderableValue,
1043
+ C as Statement,
1042
1044
  rt as ValidChangedAction,
1043
1045
  H as ValidationError,
1044
- b as ValidationErrorRenderContent,
1046
+ p as ValidationErrorRenderContent,
1045
1047
  vt as ValidationErrorText,
1046
1048
  f as Validator,
1047
- Ht as Validators,
1049
+ Xt as Validators,
1048
1050
  v as ValueChangedAction,
1049
1051
  lt as VisibilityChangedAction,
1050
1052
  at as VisibilityChangingAction,
1051
1053
  m as buildErrorMessage,
1052
- Yt as default,
1053
- Kt as forms,
1054
- G as isCustomModalContentComponentDef
1054
+ Zt as default,
1055
+ Yt as forms,
1056
+ G as isSimpleComponentDef
1055
1057
  };
1056
1058
  //# sourceMappingURL=dynamicforms-vue-forms.js.map