@dynamicforms/vue-forms 0.3.0 → 0.3.2

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.
@@ -20,7 +20,7 @@ var F = (n, i) => {
20
20
  return t;
21
21
  };
22
22
  var o = (n, i, t) => k(n, typeof i != "symbol" ? i + "" : i, t);
23
- import { isEqual as D, isBoolean as bt, isString as I, isEmpty as M, truncate as pt, isArray as Z, isObject as tt } from "lodash-es";
23
+ import { isEqual as D, isBoolean as bt, isString as A, isEmpty as M, truncate as pt, isArray as Z, isObject as tt } from "lodash-es";
24
24
  import { unref as d, computed as et, reactive as it } from "vue";
25
25
  var L = /* @__PURE__ */ ((n) => (n[n.SUPPRESS = 1] = "SUPPRESS", n[n.HIDDEN = 5] = "HIDDEN", n[n.INVISIBLE = 8] = "INVISIBLE", n[n.FULL = 10] = "FULL", n))(L || {});
26
26
  const Y = 10;
@@ -41,7 +41,7 @@ const Y = 10;
41
41
  n.isDefined = e;
42
42
  })(L || (L = {}));
43
43
  Object.freeze(L);
44
- const C = L;
44
+ const I = L;
45
45
  class p {
46
46
  constructor(i) {
47
47
  o(this, "executorFn");
@@ -169,23 +169,23 @@ class f extends b {
169
169
  */
170
170
  constructor(t) {
171
171
  super((s, r, a, l) => {
172
- const c = t(a, l, s) || [], u = (h) => {
173
- var A;
172
+ const u = t(a, l, s) || [], c = (h) => {
173
+ var V;
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
- const O = s.errors[x];
179
- if (O.source === this.source) {
180
- const w = (A = h == null ? void 0 : h.findIndex((B) => D(B, O))) != null ? A : -1;
181
- w >= 0 ? h == null || h.splice(w, 1) : s.errors.splice(x, 1);
178
+ const P = s.errors[x];
179
+ if (P.source === this.source) {
180
+ const O = (V = h == null ? void 0 : h.findIndex((B) => D(B, P))) != null ? V : -1;
181
+ O >= 0 ? h == null || h.splice(O, 1) : s.errors.splice(x, 1);
182
182
  }
183
183
  }
184
184
  h && h.length > 0 && s.errors.push(...h), s.validate();
185
185
  };
186
- return c instanceof Promise ? (s.validating = ++s.validatingCount > 0, c.then((h) => u(h)).finally(() => {
186
+ return u instanceof Promise ? (s.validating = ++s.validatingCount > 0, u.then((h) => c(h)).finally(() => {
187
187
  s.validatingCount = Math.max(0, s.validatingCount - 1), s.validating = s.validatingCount > 0;
188
- })) : u(c), r(s, a, l);
188
+ })) : c(u), r(s, a, l);
189
189
  });
190
190
  o(this, "source");
191
191
  this.source = Symbol(this.constructor.name);
@@ -257,14 +257,14 @@ class T extends Map {
257
257
  const yt = Symbol("ConditionalStatementAction");
258
258
  class $ extends b {
259
259
  constructor(t, e) {
260
- const s = (r, a, l, c) => {
261
- const u = t.evaluate();
262
- if (u !== this.lastResult) {
260
+ const s = (r, a, l, u) => {
261
+ const c = t.evaluate();
262
+ if (c !== this.lastResult) {
263
263
  for (const h of this.boundFields)
264
- e(h, u, this.lastResult);
265
- this.lastResult = u;
264
+ e(h, c, this.lastResult);
265
+ this.lastResult = c;
266
266
  }
267
- return a(r, l, c);
267
+ return a(r, l, u);
268
268
  };
269
269
  super(s);
270
270
  o(this, "lastResult");
@@ -288,7 +288,7 @@ class $ extends b {
288
288
  class xt extends $ {
289
289
  constructor(i) {
290
290
  super(i, (t, e) => {
291
- t.visibility = e ? C.FULL : C.SUPPRESS;
291
+ t.visibility = e ? I.FULL : I.SUPPRESS;
292
292
  });
293
293
  }
294
294
  }
@@ -299,14 +299,14 @@ class Et extends $ {
299
299
  });
300
300
  }
301
301
  }
302
- class At extends $ {
302
+ class Vt extends $ {
303
303
  constructor(i, t) {
304
304
  super(i, (e, s) => {
305
305
  s && (e.value = t);
306
306
  });
307
307
  }
308
308
  }
309
- var P = /* @__PURE__ */ ((n) => (n[n.NOT = 0] = "NOT", n[n.OR = 1] = "OR", n[n.AND = 2] = "AND", n[n.XOR = 3] = "XOR", n[n.NAND = 4] = "NAND", n[n.NOR = 5] = "NOR", n[n.EQUALS = -1] = "EQUALS", n[n.NOT_EQUALS = -2] = "NOT_EQUALS", n[n.GT = -3] = "GT", n[n.LT = -4] = "LT", n[n.GE = -5] = "GE", n[n.LE = -6] = "LE", n[n.IN = -7] = "IN", n[n.NOT_IN = -8] = "NOT_IN", n[n.INCLUDES = -9] = "INCLUDES", n[n.NOT_INCLUDES = -10] = "NOT_INCLUDES", n))(P || {});
309
+ var w = /* @__PURE__ */ ((n) => (n[n.NOT = 0] = "NOT", n[n.OR = 1] = "OR", n[n.AND = 2] = "AND", n[n.XOR = 3] = "XOR", n[n.NAND = 4] = "NAND", n[n.NOR = 5] = "NOR", n[n.EQUALS = -1] = "EQUALS", n[n.NOT_EQUALS = -2] = "NOT_EQUALS", n[n.GT = -3] = "GT", n[n.LT = -4] = "LT", n[n.GE = -5] = "GE", n[n.LE = -6] = "LE", n[n.IN = -7] = "IN", n[n.NOT_IN = -8] = "NOT_IN", n[n.INCLUDES = -9] = "INCLUDES", n[n.NOT_INCLUDES = -10] = "NOT_INCLUDES", n))(w || {});
310
310
  ((n) => {
311
311
  function i(r) {
312
312
  const a = r.toLowerCase();
@@ -344,9 +344,9 @@ var P = /* @__PURE__ */ ((n) => (n[n.NOT = 0] = "NOT", n[n.OR = 1] = "OR", n[n.A
344
344
  return r >= 0;
345
345
  }
346
346
  n.isLogicOperator = s;
347
- })(P || (P = {}));
348
- Object.freeze(P);
349
- const g = P, It = Symbol("EnabledChangingAction");
347
+ })(w || (w = {}));
348
+ Object.freeze(w);
349
+ const g = w, At = Symbol("EnabledChangingAction");
350
350
  class st extends p {
351
351
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
352
352
  constructor(i) {
@@ -354,13 +354,13 @@ class st extends p {
354
354
  }
355
355
  // eslint-disable-next-line class-methods-use-this
356
356
  static get classIdentifier() {
357
- return It;
357
+ return At;
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");
363
+ const It = Symbol("EnabledChangedAction");
364
364
  class rt extends p {
365
365
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
366
366
  constructor(i) {
@@ -368,13 +368,13 @@ class rt extends p {
368
368
  }
369
369
  // eslint-disable-next-line class-methods-use-this
370
370
  static get classIdentifier() {
371
- return Ct;
371
+ return It;
372
372
  }
373
373
  execute(i, t, e, s) {
374
374
  return super.execute(i, t, e, s);
375
375
  }
376
376
  }
377
- const Vt = Symbol("ValidChangedAction");
377
+ const Ct = Symbol("ValidChangedAction");
378
378
  class at extends p {
379
379
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
380
380
  constructor(i) {
@@ -382,7 +382,7 @@ class at extends p {
382
382
  }
383
383
  // eslint-disable-next-line class-methods-use-this
384
384
  static get classIdentifier() {
385
- return Vt;
385
+ return Ct;
386
386
  }
387
387
  execute(i, t, e, s) {
388
388
  return super.execute(i, t, e, s);
@@ -428,7 +428,7 @@ class m {
428
428
  // when member of a Group, fieldName specifies the name of this field
429
429
  o(this, "actions", new T());
430
430
  // default property handlers
431
- o(this, "_visibility", C.FULL);
431
+ o(this, "_visibility", I.FULL);
432
432
  o(this, "_enabled", !0);
433
433
  }
434
434
  get visibility() {
@@ -436,8 +436,8 @@ class m {
436
436
  }
437
437
  set visibility(i) {
438
438
  const t = this._visibility, e = this.actions.trigger(lt, this, i, t);
439
- if (!C.isDefined(e != null ? e : i)) throw new Error("visibility must be a DisplayMode constant");
440
- this._visibility = C.fromAny(e != null ? e : i), this.actions.trigger(ot, this, this._visibility, t);
439
+ if (!I.isDefined(e != null ? e : i)) throw new Error("visibility must be a DisplayMode constant");
440
+ this._visibility = I.fromAny(e != null ? e : i), this.actions.trigger(ot, this, this._visibility, t);
441
441
  }
442
442
  get enabled() {
443
443
  return this._enabled;
@@ -520,9 +520,9 @@ class N {
520
520
  case g.NOT_IN:
521
521
  return !((a = (r = t == null ? void 0 : t.includes) == null ? void 0 : r.call(t, i)) == null || a);
522
522
  case g.INCLUDES:
523
- return I(i) && I(t) && i.indexOf(t) >= 0;
523
+ return A(i) && A(t) && i.indexOf(t) >= 0;
524
524
  case g.NOT_INCLUDES:
525
- return !(I(i) && I(t) && i.indexOf(t) >= 0);
525
+ return !(A(i) && A(t) && i.indexOf(t) >= 0);
526
526
  default:
527
527
  throw new Error(`Operator not implemented ${this.operator}`);
528
528
  }
@@ -540,7 +540,7 @@ class N {
540
540
  }
541
541
  }
542
542
  const Nt = Symbol("ExecuteAction");
543
- class ct extends p {
543
+ class ut extends p {
544
544
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
545
545
  constructor(i) {
546
546
  super(i);
@@ -568,7 +568,7 @@ class z extends p {
568
568
  }
569
569
  }
570
570
  const jt = Symbol("ListItemRemovedAction");
571
- class ut extends p {
571
+ class ct extends p {
572
572
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
573
573
  constructor(i) {
574
574
  super(i);
@@ -591,10 +591,10 @@ class U extends m {
591
591
  }
592
592
  init(t) {
593
593
  if (t) {
594
- const e = t, { value: s, originalValue: r, validators: a, actions: l } = e, c = F(e, ["value", "originalValue", "validators", "actions"]);
595
- [...a || [], ...l || []].forEach((A) => this.registerAction(A)), Object.assign(this, c);
596
- const u = q(s, this._value), h = Object.freeze({ label: r == null ? void 0 : r.label, icon: r == null ? void 0 : r.icon });
597
- this._value = q(u, h), this.originalValue = q(h, u);
594
+ const e = t, { value: s, originalValue: r, validators: a, actions: l } = e, u = F(e, ["value", "originalValue", "validators", "actions"]);
595
+ [...a || [], ...l || []].forEach((V) => this.registerAction(V)), Object.assign(this, u);
596
+ const c = q(s, this._value), h = Object.freeze({ label: r == null ? void 0 : r.label, icon: r == null ? void 0 : r.icon });
597
+ this._value = q(c, h), this.originalValue = q(h, c);
598
598
  }
599
599
  this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
600
600
  }
@@ -608,7 +608,7 @@ class U extends m {
608
608
  set value(t) {
609
609
  if (!this.enabled) return;
610
610
  const e = this._value;
611
- this._value.icon = t == null ? void 0 : t.icon, this._value.label = t == null ? void 0 : t.label, this.actions.trigger(b, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
611
+ this._value = t, this.actions.trigger(b, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
612
612
  }
613
613
  get icon() {
614
614
  return this.value.icon;
@@ -633,10 +633,10 @@ class U extends m {
633
633
  return e.actions = this.actions.clone(), e.actions.triggerEager(e, e.value, e.originalValue), e;
634
634
  }
635
635
  execute(t) {
636
- this.actions.trigger(ct, this, t);
636
+ this.actions.trigger(ut, this, t);
637
637
  }
638
638
  }
639
- class V extends m {
639
+ class C extends m {
640
640
  constructor() {
641
641
  super();
642
642
  o(this, "_value");
@@ -644,7 +644,7 @@ class V extends m {
644
644
  init(t) {
645
645
  if (t) {
646
646
  const e = t, { value: s, validators: r, actions: a } = e, l = F(e, ["value", "validators", "actions"]);
647
- [...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);
647
+ [...r || [], ...a || []].forEach((u) => this.registerAction(u)), Object.assign(this, l), this._value = s != null ? s : this.originalValue, this.originalValue === void 0 && (this.originalValue = this._value);
648
648
  }
649
649
  this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
650
650
  }
@@ -654,7 +654,7 @@ class V extends m {
654
654
  * @returns Reactive Field instance
655
655
  */
656
656
  static create(t) {
657
- const e = it(new V());
657
+ const e = it(new C());
658
658
  return e.init(t), e;
659
659
  }
660
660
  get value() {
@@ -662,11 +662,11 @@ class V extends m {
662
662
  }
663
663
  set value(t) {
664
664
  const e = this._value;
665
- !this.enabled || e === t || (this._value = t, this.actions.trigger(b, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate());
665
+ !this.enabled || e === t || (this._value = t, this.actions.trigger(b, this, this._value, e), this.parent && this.parent.notifyValueChanged(), this.validate());
666
666
  }
667
667
  clone(t) {
668
668
  var s, r, a;
669
- const e = V.create(S(_({
669
+ const e = C.create(S(_({
670
670
  value: (s = t == null ? void 0 : t.value) != null ? s : this.value
671
671
  }, t && "originalValue" in t ? { originalValue: t.originalValue } : {}), {
672
672
  enabled: (r = t == null ? void 0 : t.enabled) != null ? r : this.enabled,
@@ -675,7 +675,7 @@ class V extends m {
675
675
  return e.actions = this.actions.clone(), e.actions.triggerEager(e, e.value, e.originalValue), e;
676
676
  }
677
677
  }
678
- const Tt = V.create({ value: "EmptyField" }).registerAction(new b(
678
+ const Tt = C.create({ value: "EmptyField" }).registerAction(new b(
679
679
  () => {
680
680
  console.warn("Working with EmptyField! This should not happen");
681
681
  }
@@ -688,8 +688,8 @@ class E extends m {
688
688
  o(this, "suppressNotifyValueChanged", !1);
689
689
  if (!E.isValidFields(t)) throw new Error("Invalid fields object provided");
690
690
  if (this._fields = {}, Object.entries(t).forEach(([r, a]) => this.addField(r, a)), e) {
691
- const s = e, { value: r, validators: a, actions: l } = s, c = F(s, ["value", "validators", "actions"]);
692
- [...a || [], ...l || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), this.value = r != null ? r : this.originalValue;
691
+ const s = e, { value: r, validators: a, actions: l } = s, u = F(s, ["value", "validators", "actions"]);
692
+ [...a || [], ...l || []].forEach((c) => this.registerAction(c)), Object.assign(this, u), this.value = r != null ? r : this.originalValue;
693
693
  }
694
694
  this.originalValue === void 0 && (this.originalValue = this.value), this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
695
695
  }
@@ -715,7 +715,7 @@ class E extends m {
715
715
  throw new Error("data is already a Form structure, should be a simple object");
716
716
  return new E(
717
717
  t == null ? {} : Object.fromEntries(
718
- Object.entries(t).map(([e, s]) => [e, V.create({ value: s })])
718
+ Object.entries(t).map(([e, s]) => [e, C.create({ value: s })])
719
719
  )
720
720
  );
721
721
  }
@@ -764,8 +764,8 @@ class E extends m {
764
764
  clone(t) {
765
765
  var r, a, l;
766
766
  const e = {};
767
- Object.entries(this._fields).forEach(([c, u]) => {
768
- e[c] = u.clone();
767
+ Object.entries(this._fields).forEach(([u, c]) => {
768
+ e[u] = c.clone();
769
769
  });
770
770
  const s = new E(e, S(_({
771
771
  value: (r = t == null ? void 0 : t.value) != null ? r : this.value
@@ -783,8 +783,8 @@ class G extends m {
783
783
  o(this, "_itemTemplate");
784
784
  o(this, "_previousValue");
785
785
  if (this._itemTemplate = t, e) {
786
- const s = e, { value: r, validators: a, actions: l } = s, c = F(s, ["value", "validators", "actions"]);
787
- [...a || [], ...l || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), r && this.setValueInternal(r);
786
+ const s = e, { value: r, validators: a, actions: l } = s, u = F(s, ["value", "validators", "actions"]);
787
+ [...a || [], ...l || []].forEach((c) => this.registerAction(c)), Object.assign(this, u), r && this.setValueInternal(r);
788
788
  }
789
789
  this.originalValue === void 0 && (this.originalValue = this.value), this._previousValue = this.value, this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
790
790
  }
@@ -840,7 +840,7 @@ class G extends m {
840
840
  var s;
841
841
  if (this._value == null || t < 0 || this._value.length <= t) return;
842
842
  let e = (s = this._value.splice(t, 1)) == null ? void 0 : s[0];
843
- return e && (e = e.clone(), this.actions.trigger(ut, this, e, t), this.notifyValueChanged()), e;
843
+ return e && (e = e.clone(), this.actions.trigger(ct, this, e, t), this.notifyValueChanged()), e;
844
844
  }
845
845
  insert(t, e) {
846
846
  for (this._value == null && (this._value = []); this._value.length < e; ) {
@@ -855,29 +855,29 @@ class G extends m {
855
855
  }
856
856
  }
857
857
  const ht = { useMarkdownInValidators: !0 };
858
- function Pt() {
858
+ function wt() {
859
859
  return ht;
860
860
  }
861
- function Ot(n) {
861
+ function Pt(n) {
862
862
  Object.assign(ht, n);
863
863
  }
864
864
  const Jt = {
865
865
  install(n, i) {
866
- i && Ot(i);
866
+ i && Pt(i);
867
867
  }
868
868
  };
869
869
  function y(n) {
870
- return Pt().useMarkdownInValidators ? new j(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, `
870
+ return wt().useMarkdownInValidators ? new j(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, `
871
871
  `);
872
872
  }
873
- class wt extends f {
873
+ class Ot extends f {
874
874
  constructor(t, e, s) {
875
875
  let r = !1, a, l;
876
- super((u, h, A) => (a = u, l = h, r || (r = !0, this.otherField.registerAction(new b((x, O, w, B) => {
877
- O(x, w, B), this.unregistered || this.execute(A, () => null, a, l);
878
- }))), this.isValidComparison(d(u), d(this.otherField.value)) ? null : [
876
+ super((c, h, V) => (a = c, l = h, r || (r = !0, this.otherField.registerAction(new b((x, P, O, B) => {
877
+ P(x, O, B), this.unregistered || this.execute(V, () => null, a, l);
878
+ }))), this.isValidComparison(d(c), d(this.otherField.value)) ? null : [
879
879
  new v(
880
- this.replacePlaceholders(s, { newValue: u, oldValue: h, field: A, otherField: this.otherField })
880
+ this.replacePlaceholders(s, { newValue: c, oldValue: h, field: V, otherField: this.otherField })
881
881
  )
882
882
  ]));
883
883
  o(this, "unregistered", !1);
@@ -896,16 +896,16 @@ class Rt extends f {
896
896
  separator: ", ",
897
897
  omission: `... (${i.length} items total)`
898
898
  }));
899
- const r = (a, l, c) => i.includes(d(a)) ? null : [
899
+ const r = (a, l, u) => i.includes(d(a)) ? null : [
900
900
  new v(
901
- this.replacePlaceholders(e, { newValue: a, oldValue: l, field: c, allowedValues: i, allowedAsText: s })
901
+ this.replacePlaceholders(e, { newValue: a, oldValue: l, field: u, allowedValues: i, allowedAsText: s })
902
902
  )
903
903
  ];
904
904
  super(r);
905
905
  }
906
906
  }
907
907
  function Ut(n) {
908
- return n == null ? 0 : Z(n) || I(n) ? n.length : tt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
908
+ return n == null ? 0 : Z(n) || A(n) ? n.length : tt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
909
909
  }
910
910
  class Dt extends f {
911
911
  constructor(i) {
@@ -933,16 +933,16 @@ class Bt extends f {
933
933
  }
934
934
  class kt extends f {
935
935
  constructor(i, t, e) {
936
- const s = e || y("Value must be between **{minValue}** and **{maxValue}**"), r = (a, l, c) => a < i || a > t || a === void 0 ? [
936
+ const s = e || y("Value must be between **{minValue}** and **{maxValue}**"), r = (a, l, u) => a < i || a > t || a === void 0 ? [
937
937
  new v(
938
- this.replacePlaceholders(s, { newValue: a, oldValue: l, field: c, minValue: i, maxValue: t })
938
+ this.replacePlaceholders(s, { newValue: a, oldValue: l, field: u, minValue: i, maxValue: t })
939
939
  )
940
940
  ] : null;
941
941
  super(r);
942
942
  }
943
943
  }
944
944
  function W(n) {
945
- return n == null ? 0 : Z(n) || I(n) ? n.length : tt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
945
+ return n == null ? 0 : Z(n) || A(n) ? n.length : tt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
946
946
  }
947
947
  class qt extends f {
948
948
  constructor(i, t) {
@@ -962,11 +962,11 @@ class Mt extends f {
962
962
  }
963
963
  class Qt extends f {
964
964
  constructor(i, t, e) {
965
- const s = e || y("Length must be between **{minLength}** and **{maxLength}**"), r = (a, l, c) => {
966
- const u = W(a);
967
- return u < i || u > t ? [
965
+ const s = e || y("Length must be between **{minLength}** and **{maxLength}**"), r = (a, l, u) => {
966
+ const c = W(a);
967
+ return c < i || c > t ? [
968
968
  new v(
969
- this.replacePlaceholders(s, { newValue: a, oldValue: l, field: c, minLength: i, maxLength: t })
969
+ this.replacePlaceholders(s, { newValue: a, oldValue: l, field: u, minLength: i, maxLength: t })
970
970
  )
971
971
  ] : null;
972
972
  };
@@ -983,7 +983,7 @@ class zt extends f {
983
983
  }
984
984
  const Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
985
985
  __proto__: null,
986
- CompareTo: wt,
986
+ CompareTo: Ot,
987
987
  InAllowedValues: Rt,
988
988
  LengthInRange: Qt,
989
989
  MaxLength: Mt,
@@ -1001,20 +1001,20 @@ const Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1001
1001
  ActionsMap: T,
1002
1002
  ConditionalEnabledAction: Et,
1003
1003
  ConditionalStatementAction: $,
1004
- ConditionalValueAction: At,
1004
+ ConditionalValueAction: Vt,
1005
1005
  ConditionalVisibilityAction: xt,
1006
- DisplayMode: C,
1006
+ DisplayMode: I,
1007
1007
  EmptyField: Tt,
1008
1008
  EnabledChangedAction: rt,
1009
1009
  EnabledChangingAction: st,
1010
- ExecuteAction: ct,
1011
- Field: V,
1010
+ ExecuteAction: ut,
1011
+ Field: C,
1012
1012
  FieldActionBase: p,
1013
1013
  FieldBase: m,
1014
1014
  Group: E,
1015
1015
  List: G,
1016
1016
  ListItemAddedAction: z,
1017
- ListItemRemovedAction: ut,
1017
+ ListItemRemovedAction: ct,
1018
1018
  MdString: j,
1019
1019
  Operator: g,
1020
1020
  Statement: N,
@@ -1036,20 +1036,20 @@ export {
1036
1036
  T as ActionsMap,
1037
1037
  Et as ConditionalEnabledAction,
1038
1038
  $ as ConditionalStatementAction,
1039
- At as ConditionalValueAction,
1039
+ Vt as ConditionalValueAction,
1040
1040
  xt as ConditionalVisibilityAction,
1041
- C as DisplayMode,
1041
+ I as DisplayMode,
1042
1042
  Tt as EmptyField,
1043
1043
  rt as EnabledChangedAction,
1044
1044
  st as EnabledChangingAction,
1045
- ct as ExecuteAction,
1046
- V as Field,
1045
+ ut as ExecuteAction,
1046
+ C as Field,
1047
1047
  p as FieldActionBase,
1048
1048
  m as FieldBase,
1049
1049
  E as Group,
1050
1050
  G as List,
1051
1051
  z as ListItemAddedAction,
1052
- ut as ListItemRemovedAction,
1052
+ ct as ListItemRemovedAction,
1053
1053
  j as MdString,
1054
1054
  g as Operator,
1055
1055
  N as Statement,