@dynamicforms/vue-forms 0.18.0 → 1.1.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.
@@ -1,18 +1,18 @@
1
1
  import { createTranslatable as e, interpolate as t } from "@dynamicforms/translatable";
2
- import { computed as n, createBlock as r, defineComponent as i, h as a, isRef as o, openBlock as s, reactive as ee, ref as c, resolveComponent as l, toRef as u, unref as d, watch as f } from "vue";
3
- import { isArray as p, isBoolean as m, isEmpty as h, isEqual as g, isObject as te, isString as _, truncate as ne } from "lodash-es";
2
+ import { computed as n, createBlock as r, defineComponent as i, h as a, isRef as o, openBlock as s, reactive as ee, ref as te, resolveComponent as c, toRef as l, unref as u, watch as d } from "vue";
3
+ import { isArray as f, isBoolean as p, isEmpty as m, isEqual as h, isEqualWith as ne, isObject as re, isString as g, truncate as ie } from "lodash-es";
4
4
  //#region \0rolldown/runtime.js
5
- var re = Object.defineProperty, ie = (e, t) => {
5
+ var ae = Object.defineProperty, oe = (e, t) => {
6
6
  let n = {};
7
- for (var r in e) re(n, r, {
7
+ for (var r in e) ae(n, r, {
8
8
  get: e[r],
9
9
  enumerable: !0
10
10
  });
11
- return t || re(n, Symbol.toStringTag, { value: "Module" }), n;
12
- }, v = /* @__PURE__ */ function(e) {
11
+ return t || ae(n, Symbol.toStringTag, { value: "Module" }), n;
12
+ }, _ = /* @__PURE__ */ function(e) {
13
13
  return e[e.SUPPRESS = 1] = "SUPPRESS", e[e.HIDDEN = 5] = "HIDDEN", e[e.INVISIBLE = 8] = "INVISIBLE", e[e.FULL = 10] = "FULL", e;
14
- }(v || {}), ae = 10, oe = new Set(Object.values(v).filter((e) => typeof e == "number")), se = new Set(Object.values(v).filter((e) => typeof e == "string"));
15
- function y(e) {
14
+ }(_ || {}), se = 10, ce = new Set(Object.values(_).filter((e) => typeof e == "number")), le = new Set(Object.values(_).filter((e) => typeof e == "string"));
15
+ function v(e) {
16
16
  let t = typeof e == "string" ? `'${e}'` : String(e);
17
17
  return /* @__PURE__ */ Error(`${t} is not a DisplayMode constant`);
18
18
  }
@@ -23,24 +23,24 @@ function y(e) {
23
23
  if (t === "HIDDEN") return 5;
24
24
  if (t === "INVISIBLE") return 8;
25
25
  if (t === "FULL") return 10;
26
- throw y(e);
26
+ throw v(e);
27
27
  }
28
28
  e.fromString = t;
29
29
  function n(e) {
30
30
  if (typeof e == "number") {
31
- if (oe.has(e)) return e;
32
- throw y(e);
31
+ if (ce.has(e)) return e;
32
+ throw v(e);
33
33
  }
34
- if (typeof e != "string") throw y(e);
35
- return v.fromString(e);
34
+ if (typeof e != "string") throw v(e);
35
+ return _.fromString(e);
36
36
  }
37
37
  e.fromAny = n;
38
38
  function r(e) {
39
- return typeof e == "number" ? oe.has(e) : typeof e == "string" && se.has(e.toUpperCase());
39
+ return typeof e == "number" ? ce.has(e) : typeof e == "string" && le.has(e.toUpperCase());
40
40
  }
41
41
  e.isDefined = r;
42
- })(v ||= {}), Object.freeze(v);
43
- var b = v, x = class {
42
+ })(_ ||= {}), Object.freeze(_);
43
+ var y = _, b = class {
44
44
  static get classIdentifier() {
45
45
  throw Error("classIdentifier must be declared");
46
46
  }
@@ -63,26 +63,26 @@ var b = v, x = class {
63
63
  }
64
64
  boundToBinding(e) {}
65
65
  unregisterFrom(e) {}
66
- }, S = class extends Error {}, ce = Symbol("ValueChangedAction"), C = class extends x {
66
+ }, x = class extends Error {}, ue = Symbol("ValueChangedAction"), S = class extends b {
67
67
  constructor(e) {
68
68
  super(e);
69
69
  }
70
70
  static get classIdentifier() {
71
- return ce;
71
+ return ue;
72
72
  }
73
73
  execute(e, t, n, r) {
74
74
  return super.execute(e, t, n, r);
75
75
  }
76
- }, w = Symbol("Transaction.capture"), le = Symbol("Transaction.restore"), ue = Symbol("Transaction.announceValue"), de = Symbol("Transaction.settleValidity");
77
- function T(e) {
76
+ }, C = Symbol("Transaction.capture"), de = Symbol("Transaction.restore"), fe = Symbol("Transaction.announceValue"), pe = Symbol("Transaction.settleValidity");
77
+ function w(e) {
78
78
  return e;
79
79
  }
80
- function fe(e) {
80
+ function me(e) {
81
81
  let t = 0, n = e.parent;
82
82
  for (; n;) t++, n = n.parent;
83
83
  return t;
84
84
  }
85
- var pe = class {
85
+ var he = class {
86
86
  participants = /* @__PURE__ */ new Map();
87
87
  undo = [];
88
88
  settled = [];
@@ -103,7 +103,7 @@ var pe = class {
103
103
  }
104
104
  touch(e) {
105
105
  let t = this.participant(e);
106
- t.snapshot ||= T(e)[w]();
106
+ t.snapshot ||= w(e)[C]();
107
107
  }
108
108
  markValueChanged(e, t) {
109
109
  let n = this.participant(e);
@@ -126,11 +126,11 @@ var pe = class {
126
126
  this.settled.push(e);
127
127
  }
128
128
  noteDepth(e) {
129
- this.passDepth < 0 || fe(e) >= this.passDepth && (this.restartPass = !0);
129
+ this.passDepth < 0 || me(e) >= this.passDepth && (this.restartPass = !0);
130
130
  }
131
131
  rollback() {
132
132
  this.unwound = !0, [...this.participants.values()].reverse().forEach((e) => {
133
- e.snapshot && T(e.element)[le](e.snapshot);
133
+ e.snapshot && w(e.element)[de](e.snapshot);
134
134
  }), this.participants.clear();
135
135
  for (let e = this.undo.length - 1; e >= 0; e--) this.undo[e]();
136
136
  this.undo.length = 0, this.settled.length = 0;
@@ -144,7 +144,7 @@ var pe = class {
144
144
  let t = [];
145
145
  return this.participants.forEach((n) => {
146
146
  if (!e(n)) return;
147
- let r = fe(n.element);
147
+ let r = me(n.element);
148
148
  (t[r] ??= []).push(n);
149
149
  }), t;
150
150
  }
@@ -172,82 +172,82 @@ var pe = class {
172
172
  announceValues() {
173
173
  return this.pass((e) => e.valueDirty || e.structural !== void 0, (e) => {
174
174
  let { structural: t } = e, n = e.valueDirty, r = e.forceValue;
175
- e.structural = void 0, e.valueDirty = !1, e.forceValue = !1, T(e.element)[ue](this, n, r, t);
175
+ e.structural = void 0, e.valueDirty = !1, e.forceValue = !1, w(e.element)[fe](this, n, r, t);
176
176
  });
177
177
  }
178
178
  settleValidity() {
179
179
  return this.pass((e) => e.validityDirty, (e) => {
180
- e.validityDirty = !1, T(e.element)[de](this);
180
+ e.validityDirty = !1, w(e.element)[pe](this);
181
181
  });
182
182
  }
183
- }, E, me;
184
- function he() {
185
- return E;
183
+ }, T, ge;
184
+ function _e() {
185
+ return T;
186
186
  }
187
- var ge = class {}, _e = class {
187
+ var ve = class {}, ye = class {
188
188
  open = !0;
189
189
  rollback() {
190
- throw this.open ? new ge() : TypeError("this transaction handle is spent: the transaction that handed it out has closed. A handle is only usable inside the call that received it.");
190
+ throw this.open ? new ve() : TypeError("this transaction handle is spent: the transaction that handed it out has closed. A handle is only usable inside the call that received it.");
191
191
  }
192
192
  close() {
193
193
  this.open = !1;
194
194
  }
195
195
  };
196
- function ve(e) {
196
+ function be(e) {
197
197
  if (e != null && typeof e.then == "function") throw TypeError("a transaction may not be asynchronous: the callback returned a thenable. Do the awaiting outside and open a transaction for each synchronous part.");
198
198
  }
199
- function D(e) {
200
- if (E) {
201
- let t = e(me);
202
- return ve(t), t;
199
+ function E(e) {
200
+ if (T) {
201
+ let t = e(ge);
202
+ return be(t), t;
203
203
  }
204
- let t = new pe(), n = new _e();
205
- E = t, me = n;
204
+ let t = new he(), n = new ye();
205
+ T = t, ge = n;
206
206
  try {
207
207
  let r = e(n);
208
- return ve(r), t.commit(), r;
208
+ return be(r), t.commit(), r;
209
209
  } catch (e) {
210
- if (t.rollback(), e instanceof ge) return;
210
+ if (t.rollback(), e instanceof ve) return;
211
211
  throw e;
212
212
  } finally {
213
- E = void 0, me = void 0, n.close();
213
+ T = void 0, ge = void 0, n.close();
214
214
  }
215
215
  }
216
- function O(e) {
217
- return E ? e(E) : D(() => e(E));
216
+ function D(e) {
217
+ return T ? e(T) : E(() => e(T));
218
218
  }
219
219
  //#endregion
220
220
  //#region src/config.ts
221
- var ye = { useMarkdownInValidators: !0 };
222
- function be() {
223
- return ye;
221
+ var xe = { useMarkdownInValidators: !0 };
222
+ function Se() {
223
+ return xe;
224
224
  }
225
- function xe(e) {
226
- Object.assign(ye, e);
225
+ function Ce(e) {
226
+ Object.assign(xe, e);
227
227
  }
228
- var Se = { install(e, t) {
229
- t && xe(t);
230
- } }, k = class extends String {
228
+ var we = { install(e, t) {
229
+ t && Ce(t);
230
+ } }, O = class extends String {
231
231
  plugins;
232
232
  options;
233
233
  constructor(e, t, n) {
234
234
  super(e), this.plugins = n, this.options = t;
235
235
  }
236
236
  };
237
- function A(e) {
238
- let t = d(e);
237
+ function k(e) {
238
+ let t = u(e);
239
239
  return typeof t == "object" && !!t && "componentName" in t;
240
240
  }
241
- function j(e) {
242
- return typeof d(e) == "function";
241
+ function A(e) {
242
+ return typeof u(e) == "function";
243
243
  }
244
- var M = class {
244
+ var j = class {
245
245
  code;
246
246
  constructor(e) {
247
247
  this.code = e;
248
248
  }
249
249
  sameAs(e) {
250
- return Object.getPrototypeOf(this) === Object.getPrototypeOf(e) && this.code === e.code && this.componentName === e.componentName && g(this.componentBody, e.componentBody) && g(this.componentBindings, e.componentBindings) && g(this.extraClasses, e.extraClasses);
250
+ return Object.getPrototypeOf(this) === Object.getPrototypeOf(e) && this.code === e.code && this.componentName === e.componentName && h(this.componentBody, e.componentBody) && h(this.componentBindings, e.componentBindings) && h(this.extraClasses, e.extraClasses);
251
251
  }
252
252
  get componentName() {
253
253
  return "Comment";
@@ -261,7 +261,7 @@ var M = class {
261
261
  get extraClasses() {
262
262
  return "";
263
263
  }
264
- }, Ce = class extends M {
264
+ }, Te = class extends j {
265
265
  text;
266
266
  classes;
267
267
  constructor(e, t = "", n) {
@@ -276,7 +276,7 @@ var M = class {
276
276
  get extraClasses() {
277
277
  return this.classes;
278
278
  }
279
- }, N = class extends M {
279
+ }, M = class extends j {
280
280
  classes;
281
281
  text;
282
282
  textType;
@@ -284,15 +284,15 @@ var M = class {
284
284
  super(r), this.classes = t, this.text = e, this.textType = n(() => this.getTextType);
285
285
  }
286
286
  get resolvedText() {
287
- let e = d(this.text);
288
- return j(e) ? e() : e;
287
+ let e = u(this.text);
288
+ return A(e) ? e() : e;
289
289
  }
290
290
  get getTextType() {
291
291
  let e = this.resolvedText;
292
- return e ? e instanceof k ? "md" : A(e) ? "component" : "string" : "string";
292
+ return e ? e instanceof O ? "md" : k(e) ? "component" : "string" : "string";
293
293
  }
294
294
  get componentName() {
295
- switch (d(this.textType)) {
295
+ switch (u(this.textType)) {
296
296
  case "string": return "template";
297
297
  case "md": return "vue-markdown";
298
298
  case "component": return this.resolvedText.componentName;
@@ -300,7 +300,7 @@ var M = class {
300
300
  }
301
301
  }
302
302
  get componentBindings() {
303
- switch (d(this.textType)) {
303
+ switch (u(this.textType)) {
304
304
  case "string": return {};
305
305
  case "md": {
306
306
  let e = this.resolvedText;
@@ -315,7 +315,7 @@ var M = class {
315
315
  }
316
316
  }
317
317
  get componentBody() {
318
- switch (d(this.textType)) {
318
+ switch (u(this.textType)) {
319
319
  case "string": return this.resolvedText;
320
320
  case "component": return this.resolvedText.componentVHtml || "";
321
321
  default: return "";
@@ -324,18 +324,18 @@ var M = class {
324
324
  get extraClasses() {
325
325
  return this.classes;
326
326
  }
327
- }, we = class extends N {};
327
+ }, Ee = class extends M {};
328
328
  //#endregion
329
329
  //#region src/validators/error-message-builder.ts
330
- function Te(e) {
331
- return be().useMarkdownInValidators ? new k(e) : e.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, "\n");
330
+ function De(e) {
331
+ return Se().useMarkdownInValidators ? new O(e) : e.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, "\n");
332
332
  }
333
- function P(e) {
334
- return o(e) ? n(() => Te(e.value)) : Te(e);
333
+ function N(e) {
334
+ return o(e) ? n(() => De(e.value)) : De(e);
335
335
  }
336
336
  //#endregion
337
337
  //#region src/validators/translations.ts
338
- var { strings: Ee, translateStrings: De } = e({
338
+ var { strings: P, translateStrings: Oe } = e({
339
339
  Required: "Please enter a value",
340
340
  MinValue: "Value must be larger or equal to **{minValue}**",
341
341
  MaxValue: "Value must be less than or equal to **{maxValue}**",
@@ -348,19 +348,19 @@ var { strings: Ee, translateStrings: De } = e({
348
348
  ValidationFailed: "Validation could not be completed"
349
349
  });
350
350
  function F(e) {
351
- return P(u(Ee, e));
351
+ return N(l(P, e));
352
352
  }
353
353
  //#endregion
354
354
  //#region src/validators/validator.ts
355
- var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extends C {
355
+ var ke = Symbol("Validator"), Ae = () => F("ValidationFailed"), I = class extends S {
356
356
  source;
357
357
  constructor(e) {
358
358
  super((t, n, r, i) => {
359
- let a = this.bindingState(t), o = a.abandon, s = ++a.run, ee = t.validationEpoch, c = he(), l = !1, u = () => !l && a.run === s && t.validationEpoch === ee && !c?.rolledBack, d = new AbortController(), f = () => {
360
- u() || (l = !0, a.abandon === f && (a.abandon = void 0), d.abort());
359
+ let a = this.bindingState(t), o = a.abandon, s = ++a.run, ee = t.validationEpoch, te = _e(), c = !1, l = () => !c && a.run === s && t.validationEpoch === ee && !te?.rolledBack, u = new AbortController(), d = () => {
360
+ l() || (c = !0, a.abandon === d && (a.abandon = void 0), u.abort());
361
361
  };
362
362
  o?.();
363
- let p = e(r, i, t, d.signal) || [], m = (e) => D(() => {
363
+ let f = e(r, i, t, u.signal) || [], p = (e) => E(() => {
364
364
  let n = e?.map((e) => this.claim(e)) ?? [];
365
365
  for (let e = t.errors.length - 1; e >= 0; e--) {
366
366
  let r = t.errors[e];
@@ -371,13 +371,13 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
371
371
  }
372
372
  n.length > 0 && t.errors.push(...n), t.validate();
373
373
  });
374
- return p instanceof Promise ? (a.abandon = f, c?.whenRolledBack(f), t.beginValidating(), p.then((e) => {
375
- u() && m(e);
374
+ return f instanceof Promise ? (a.abandon = d, te?.whenRolledBack(d), t.beginValidating(), f.then((e) => {
375
+ l() && p(e);
376
376
  }, (e) => {
377
- u() && (m([new N(ke(), "", "validation-failed")]), console.error("Validation failed", e));
377
+ l() && (p([new M(Ae(), "", "validation-failed")]), console.error("Validation failed", e));
378
378
  }).finally(() => {
379
- a.abandon === f && (a.abandon = void 0), t.endValidating();
380
- }).catch((e) => console.error("Validation failed", e))) : m(p), n(t, r, i);
379
+ a.abandon === d && (a.abandon = void 0), t.endValidating();
380
+ }).catch((e) => console.error("Validation failed", e))) : p(f), n(t, r, i);
381
381
  }), this.source = Symbol(this.constructor.name);
382
382
  }
383
383
  claim(e) {
@@ -396,13 +396,13 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
396
396
  });
397
397
  }
398
398
  static get classIdentifier() {
399
- return Oe;
399
+ return ke;
400
400
  }
401
401
  get eager() {
402
402
  return !0;
403
403
  }
404
404
  unregisterFrom(e) {
405
- O((t) => {
405
+ D((t) => {
406
406
  t.whenCommitted(() => this.abandonRun(e));
407
407
  for (let t = e.errors.length - 1; t >= 0; t--) e.errors[t].source === this.source && e.errors.splice(t, 1);
408
408
  e.validate();
@@ -419,22 +419,22 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
419
419
  }
420
420
  replacePlaceholdersFunction(e, t) {
421
421
  return () => {
422
- let n = d(e);
423
- for (; j(n);) n = d(this.replacePlaceholders(n(), t));
422
+ let n = u(e);
423
+ for (; A(n);) n = u(this.replacePlaceholders(n(), t));
424
424
  return n;
425
425
  };
426
426
  }
427
427
  replacePlaceholders(e, n) {
428
- if (j(e)) return this.replacePlaceholdersFunction(e, n);
429
- if (A(e)) return e;
430
- if (o(e)) return this.replacePlaceholdersFunction(() => d(e), n);
431
- let r = d(e), i = t(r.toString(), n);
432
- return r instanceof k ? new k(i, r.options, r.plugins) : i;
428
+ if (A(e)) return this.replacePlaceholdersFunction(e, n);
429
+ if (k(e)) return e;
430
+ if (o(e)) return this.replacePlaceholdersFunction(() => u(e), n);
431
+ let r = u(e), i = t(r.toString(), n);
432
+ return r instanceof O ? new O(i, r.options, r.plugins) : i;
433
433
  }
434
434
  }, L = class e {
435
435
  actions = [];
436
436
  register(e, t) {
437
- if (!(e instanceof x)) throw Error("Invalid action type");
437
+ if (!(e instanceof b)) throw Error("Invalid action type");
438
438
  let n = t ? this.actions.indexOf(t) : -1;
439
439
  if (t && (t.classIdentifier !== e.classIdentifier || n < 0)) throw Error("Action to register before is not registered under the same identifier");
440
440
  n < 0 ? this.actions.push(e) : this.actions.splice(n, 0, e);
@@ -458,10 +458,10 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
458
458
  if (a.eager && e.outermostEager(r, i)) try {
459
459
  let o = this.walk(r, i, a.classIdentifier, !0, t, n);
460
460
  e.isPromise(o) && o.then(void 0, (e) => {
461
- if (!(e instanceof S)) throw e;
461
+ if (!(e instanceof x)) throw e;
462
462
  });
463
463
  } catch (e) {
464
- if (!(e instanceof S)) throw e;
464
+ if (!(e instanceof x)) throw e;
465
465
  }
466
466
  }
467
467
  }
@@ -484,7 +484,7 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
484
484
  }
485
485
  static answerAbort(t) {
486
486
  return e.isPromise(t) ? t.then(void 0, (e) => {
487
- if (e instanceof S) return e;
487
+ if (e instanceof x) return e;
488
488
  throw e;
489
489
  }) : t;
490
490
  }
@@ -493,7 +493,7 @@ var Oe = Symbol("Validator"), ke = () => F("ValidationFailed"), I = class extend
493
493
  try {
494
494
  return e.answerAbort(this.walk(a, a.length - 1, t, n, r, i));
495
495
  } catch (e) {
496
- if (e instanceof S) return e;
496
+ if (e instanceof x) return e;
497
497
  throw e;
498
498
  }
499
499
  }
@@ -510,29 +510,29 @@ function R(e) {
510
510
  for (; t.fieldName !== void 0 && t.parent;) t = t.parent;
511
511
  return t;
512
512
  }
513
- function Ae(e, t) {
513
+ function je(e, t) {
514
514
  let n = e;
515
- for (let e of je(t)) if (n = n.field?.(e) ?? void 0, !n) return;
515
+ for (let e of Me(t)) if (n = n.field?.(e) ?? void 0, !n) return;
516
516
  return n?.declaration === t ? n : void 0;
517
517
  }
518
- function je(e) {
518
+ function Me(e) {
519
519
  let t = [], n = e;
520
520
  for (; n.fieldName !== void 0 && n.parent;) t.unshift(n.fieldName), n = n.parent;
521
521
  return t;
522
522
  }
523
- function Me(e, t) {
524
- let n = Ae(t, e);
523
+ function z(e, t) {
524
+ let n = je(t, e);
525
525
  if (n) return n;
526
526
  let r = t.parent;
527
527
  for (; r;) {
528
- let t = Ae(R(r), e);
528
+ let t = je(R(r), e);
529
529
  if (t) return t;
530
530
  r = r.parent;
531
531
  }
532
532
  return R(e) === R(t.declaration) ? void 0 : e;
533
533
  }
534
534
  function Ne(e, t) {
535
- let n = Me(e, t);
535
+ let n = z(e, t);
536
536
  if (!n) return [];
537
537
  if (n !== e) return [n];
538
538
  let r = t.bindingsOf(e);
@@ -548,14 +548,14 @@ function Pe(e, t) {
548
548
  }
549
549
  //#endregion
550
550
  //#region src/actions/conditional/conditional-statement-action.ts
551
- var Fe = Symbol("ConditionalStatementAction"), z = class extends C {
551
+ var Fe = Symbol("ConditionalStatementAction"), B = class extends S {
552
552
  statement;
553
553
  conditionalExecutor;
554
554
  declarations = /* @__PURE__ */ new Set();
555
555
  registrations = /* @__PURE__ */ new WeakSet();
556
556
  constructor(e, t) {
557
557
  super((e, t, n, r) => (this.applyIn(R(e)) || e.markRecordIncomplete(), t(e, n, r))), this.statement = e, this.conditionalExecutor = t;
558
- let n = new C((e, t, ...n) => (this.applyFrom(e), t(e, ...n)));
558
+ let n = new S((e, t, ...n) => (this.applyFrom(e), t(e, ...n)));
559
559
  e.collectFields().forEach((e) => e.registerAction(n));
560
560
  }
561
561
  static get classIdentifier() {
@@ -588,27 +588,27 @@ var Fe = Symbol("ConditionalStatementAction"), z = class extends C {
588
588
  let t = /* @__PURE__ */ new Set();
589
589
  this.targetsIn(R(e)).forEach((e) => t.add(R(e))), t.forEach((e) => this.applyIn(e));
590
590
  }
591
- }, Ie = class extends z {
591
+ }, Ie = class extends B {
592
592
  constructor(e) {
593
593
  super(e, (e, t) => {
594
- e.visibility = t ? b.FULL : b.SUPPRESS;
594
+ e.visibility = t ? y.FULL : y.SUPPRESS;
595
595
  });
596
596
  }
597
- }, Le = class extends z {
597
+ }, Le = class extends B {
598
598
  constructor(e) {
599
599
  super(e, (e, t) => {
600
600
  e.enabled = t;
601
601
  });
602
602
  }
603
- }, Re = class extends z {
603
+ }, Re = class extends B {
604
604
  constructor(e, t) {
605
605
  super(e, (e, n) => {
606
606
  n && (e.value = t);
607
607
  });
608
608
  }
609
- }, B = /* @__PURE__ */ function(e) {
609
+ }, V = /* @__PURE__ */ function(e) {
610
610
  return e[e.NOT = 0] = "NOT", e[e.OR = 1] = "OR", e[e.AND = 2] = "AND", e[e.XOR = 3] = "XOR", e[e.NAND = 4] = "NAND", e[e.NOR = 5] = "NOR", e[e.EQUALS = -1] = "EQUALS", e[e.NOT_EQUALS = -2] = "NOT_EQUALS", e[e.GT = -3] = "GT", e[e.LT = -4] = "LT", e[e.GE = -5] = "GE", e[e.LE = -6] = "LE", e[e.IN = -7] = "IN", e[e.NOT_IN = -8] = "NOT_IN", e[e.INCLUDES = -9] = "INCLUDES", e[e.NOT_INCLUDES = -10] = "NOT_INCLUDES", e;
611
- }(B || {});
611
+ }(V || {});
612
612
  (function(e) {
613
613
  function t(e) {
614
614
  let t = e.toLowerCase();
@@ -644,22 +644,22 @@ var Fe = Symbol("ConditionalStatementAction"), z = class extends C {
644
644
  }
645
645
  e.fromString = t;
646
646
  function n(e) {
647
- let t = typeof e == "number" ? e : B.fromString(e);
648
- if (Object.values(B).includes(t)) return t;
647
+ let t = typeof e == "number" ? e : V.fromString(e);
648
+ if (Object.values(V).includes(t)) return t;
649
649
  throw Error(`Unrecognised operator ${e}`);
650
650
  }
651
651
  e.fromAny = n;
652
652
  function r(e) {
653
- let t = typeof e == "number" ? e : B.fromString(e);
654
- return Object.values(B).includes(t);
653
+ let t = typeof e == "number" ? e : V.fromString(e);
654
+ return Object.values(V).includes(t);
655
655
  }
656
656
  e.isDefined = r;
657
657
  function i(e) {
658
658
  return e >= 0;
659
659
  }
660
660
  e.isLogicOperator = i;
661
- })(B ||= {}), Object.freeze(B);
662
- var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
661
+ })(V ||= {}), Object.freeze(V);
662
+ var H = V, ze = Symbol("EnabledChangingAction"), U = class extends b {
663
663
  constructor(e) {
664
664
  super(e);
665
665
  }
@@ -669,7 +669,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
669
669
  execute(e, t, n, r) {
670
670
  return super.execute(e, t, n, r);
671
671
  }
672
- }, Be = Symbol("EnabledChangedAction"), U = class extends x {
672
+ }, Be = Symbol("EnabledChangedAction"), W = class extends b {
673
673
  constructor(e) {
674
674
  super(e);
675
675
  }
@@ -679,7 +679,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
679
679
  execute(e, t, n, r) {
680
680
  return super.execute(e, t, n, r);
681
681
  }
682
- }, Ve = Symbol("ValidChangedAction"), W = class extends x {
682
+ }, Ve = Symbol("ValidChangedAction"), G = class extends b {
683
683
  constructor(e) {
684
684
  super(e);
685
685
  }
@@ -689,7 +689,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
689
689
  execute(e, t, n, r) {
690
690
  return super.execute(e, t, n, r);
691
691
  }
692
- }, He = Symbol("VisibilityChangingAction"), G = class extends x {
692
+ }, He = Symbol("VisibilityChangingAction"), K = class extends b {
693
693
  constructor(e) {
694
694
  super(e);
695
695
  }
@@ -699,7 +699,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
699
699
  execute(e, t, n, r) {
700
700
  return super.execute(e, t, n, r);
701
701
  }
702
- }, Ue = Symbol("VisibilityChangedAction"), K = class extends x {
702
+ }, Ue = Symbol("VisibilityChangedAction"), q = class extends b {
703
703
  constructor(e) {
704
704
  super(e);
705
705
  }
@@ -709,7 +709,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
709
709
  execute(e, t, n, r) {
710
710
  return super.execute(e, t, n, r);
711
711
  }
712
- }, We = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new Set(["validators", "actions"]), J = 0, Y = class {
712
+ }, We = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new Set(["validators", "actions"]), qe = 0, Y = class {
713
713
  get __v_skip() {
714
714
  return !0;
715
715
  }
@@ -731,7 +731,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
731
731
  return this.#t;
732
732
  }
733
733
  rebind(e) {
734
- return O((t) => {
734
+ return D((t) => {
735
735
  t.touch(this);
736
736
  let n = t.willAnnounceValue(this), r = this.#t.announcedValue;
737
737
  this.resetTo(this.declaration, e), this.#t.announcedValue = n ? r : this.value;
@@ -762,18 +762,18 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
762
762
  let t = this.extendedOf(e);
763
763
  Object.entries(e).forEach(([e, n]) => {
764
764
  Object.hasOwn(t, e) || Ke.has(e) || (this[e] = n);
765
- }), h(t) || this.setExtendedValues(t);
765
+ }), m(t) || this.setExtendedValues(t);
766
766
  }
767
767
  touchState() {
768
- he()?.touch(this);
768
+ _e()?.touch(this);
769
769
  }
770
- [w]() {
770
+ [C]() {
771
771
  return {
772
772
  ...this.#t,
773
773
  errors: [...this.#t.errors]
774
774
  };
775
775
  }
776
- [le](e) {
776
+ [de](e) {
777
777
  let t = this.#t.validatingCount, n = this.#t.validatingChildren;
778
778
  Object.assign(this.#e, e), this.#e.validatingCount = t, this.#e.validatingChildren = n;
779
779
  }
@@ -803,7 +803,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
803
803
  }
804
804
  settled() {
805
805
  return !this.validating && !this.busy ? Promise.resolve() : new Promise((e) => {
806
- let t = f(() => this.validating || this.busy, (n) => {
806
+ let t = d(() => this.validating || this.busy, (n) => {
807
807
  n || (t(), e());
808
808
  }, { flush: "sync" });
809
809
  });
@@ -836,18 +836,18 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
836
836
  return r(this), n;
837
837
  }
838
838
  markRecordIncomplete() {
839
- this._recordPending || (this._recordPending = !0, J++);
839
+ this._recordPending || (this._recordPending = !0, qe++);
840
840
  }
841
841
  completeRecords(e = this) {
842
- J !== 0 && O(() => {
842
+ qe !== 0 && D(() => {
843
843
  let t = (e) => {
844
- e._recordPending && (e._recordPending = !1, J--, e.rerunEagerActions()), e.members.forEach(t);
844
+ e._recordPending && (e._recordPending = !1, qe--, e.rerunEagerActions()), e.members.forEach(t);
845
845
  };
846
846
  t(e);
847
847
  });
848
848
  }
849
849
  rerunEagerActions() {
850
- O((e) => {
850
+ D((e) => {
851
851
  this.boundActions?.triggerEager(this, this.value, this.value), e.markValidityDirty(this);
852
852
  });
853
853
  }
@@ -855,11 +855,11 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
855
855
  return this._actions;
856
856
  }
857
857
  noteBinding(e) {
858
- let t = q.get(this);
859
- t || (t = /* @__PURE__ */ new Set(), q.set(this, t)), t.add(new WeakRef(e));
858
+ let t = J.get(this);
859
+ t || (t = /* @__PURE__ */ new Set(), J.set(this, t)), t.add(new WeakRef(e));
860
860
  }
861
861
  get boundElements() {
862
- let e = this.declaration, t = q.get(e), n = [e];
862
+ let e = this.declaration, t = J.get(e), n = [e];
863
863
  return t && t.forEach((e) => {
864
864
  let r = e.deref();
865
865
  r ? n.push(r) : t.delete(e);
@@ -879,14 +879,14 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
879
879
  return this.#e.valueVersion;
880
880
  }
881
881
  bumpValueVersion() {
882
- O((e) => {
882
+ D((e) => {
883
883
  e.touch(this), this.#e.valueVersion++;
884
884
  let t = this.parent;
885
885
  for (; t;) e.touch(t), t.#e.valueVersion++, t = t.parent;
886
886
  });
887
887
  }
888
888
  propagateValueChanged(e = !1) {
889
- O((t) => {
889
+ D((t) => {
890
890
  t.markValueChanged(this, e), t.markValidityDirty(this), this.parent?.notifyValueChanged();
891
891
  });
892
892
  }
@@ -896,27 +896,27 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
896
896
  return this.#t.errors.length === 0 && this.#t.invalidChildren === 0;
897
897
  }
898
898
  takeChild(e, t) {
899
- O((n) => {
899
+ D((n) => {
900
900
  if (e.parent) throw TypeError("This element already belongs to a container - pass a bind() of it");
901
901
  n.touch(e), e.#e.fieldName = t, e.#e.parent = this, this.adoptChild(e);
902
902
  });
903
903
  }
904
904
  adoptChild(e) {
905
- O((t) => {
905
+ D((t) => {
906
906
  t.touch(this), e.#t.valid || this.#t.invalidChildren++, e.validating && this.childValidatingChanged(!0), t.whenRolledBack(() => {
907
907
  e.validating && this.childValidatingChanged(!1);
908
908
  }), t.markValidityDirty(this);
909
909
  });
910
910
  }
911
911
  releaseChild(e) {
912
- O((t) => {
912
+ D((t) => {
913
913
  t.touch(this), t.touch(e), e.#t.valid || this.#t.invalidChildren--, e.validating && this.childValidatingChanged(!1), t.whenRolledBack(() => {
914
914
  e.validating && this.childValidatingChanged(!0);
915
915
  }), e.#e.parent = void 0, e.#e.fieldName = void 0, t.markValidityDirty(this);
916
916
  });
917
917
  }
918
918
  resetTo(e, t) {
919
- O(() => {
919
+ D(() => {
920
920
  let n = t === void 0 ? e.value : t, r = this.errors.length > 0;
921
921
  r && (this.errors = []), this.touched = !1;
922
922
  let i = this.enabled && this.value !== n;
@@ -941,11 +941,11 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
941
941
  }
942
942
  set visibility(e) {
943
943
  let t = this.#e.visibility;
944
- e !== t && O((n) => {
945
- let r = this.boundActions?.trigger(G, this, e, t);
946
- if (!(r instanceof S)) {
947
- if (!b.isDefined(r ?? e)) throw Error("visibility must be a DisplayMode constant");
948
- n.touch(this), this.#e.visibility = b.fromAny(r ?? e), this.boundActions?.trigger(K, this, this.#e.visibility, t);
944
+ e !== t && D((n) => {
945
+ let r = this.boundActions?.trigger(K, this, e, t);
946
+ if (!(r instanceof x)) {
947
+ if (!y.isDefined(r ?? e)) throw Error("visibility must be a DisplayMode constant");
948
+ n.touch(this), this.#e.visibility = y.fromAny(r ?? e), this.boundActions?.trigger(q, this, this.#e.visibility, t);
949
949
  }
950
950
  });
951
951
  }
@@ -954,11 +954,11 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
954
954
  }
955
955
  set enabled(e) {
956
956
  let t = this.#e.enabled;
957
- e !== t && O((n) => {
958
- let r = this.boundActions?.trigger(H, this, e, t);
959
- if (!(r instanceof S)) {
960
- if (!m(r ?? e)) throw Error("Enabled value must be boolean");
961
- n.touch(this), this.#e.enabled = r ?? e, this.#e.enabled !== t && this.bumpValueVersion(), this.boundActions?.trigger(U, this, this.#e.enabled, t);
957
+ e !== t && D((n) => {
958
+ let r = this.boundActions?.trigger(U, this, e, t);
959
+ if (!(r instanceof x)) {
960
+ if (!p(r ?? e)) throw Error("Enabled value must be boolean");
961
+ n.touch(this), this.#e.enabled = r ?? e, this.#e.enabled !== t && this.bumpValueVersion(), this.boundActions?.trigger(W, this, this.#e.enabled, t);
962
962
  }
963
963
  });
964
964
  }
@@ -971,22 +971,22 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
971
971
  childComposesValue(e) {
972
972
  return e.composesValue;
973
973
  }
974
- [ue](e, t, n, r) {
974
+ [fe](e, t, n, r) {
975
975
  if (r?.forEach((e) => this.boundActions?.trigger(e.actionClass, this, e.item, e.index)), !t) return;
976
976
  let i = this.boundActions;
977
- if (this.composesValue && !(i?.willTrigger(ce) || i?.hasEager)) return;
977
+ if (this.composesValue && !(i?.willTrigger(ue) || i?.hasEager)) return;
978
978
  let a = this.value, o = this.#t.announcedValue;
979
- !n && (this.composesValue ? g(a, o) : a === o) || (e.touch(this), this.#t.announcedValue = a, this.composesValue && i?.triggerEager(this, a, o), i?.trigger(C, this, a, o));
979
+ !n && (this.composesValue ? h(a, o) : a === o) || (e.touch(this), this.#t.announcedValue = a, this.composesValue && i?.triggerEager(this, a, o), i?.trigger(S, this, a, o));
980
980
  }
981
- [de](e) {
981
+ [pe](e) {
982
982
  let t = this.#t.valid, n = this.countedValid;
983
983
  if (n === t) return;
984
984
  e.touch(this), this.#t.valid = n;
985
985
  let r = this.container;
986
- r && (e.touch(r), r.childValidityChanged(n), e.markValidityDirty(r)), this.boundActions?.trigger(W, this, n, t);
986
+ r && (e.touch(r), r.childValidityChanged(n), e.markValidityDirty(r)), this.boundActions?.trigger(G, this, n, t);
987
987
  }
988
988
  validate(e = !1) {
989
- O((t) => {
989
+ D((t) => {
990
990
  e && this.boundActions?.triggerEager(this, this.value, this.value), t.markValidityDirty(this);
991
991
  });
992
992
  }
@@ -997,7 +997,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
997
997
  return this.value;
998
998
  }
999
999
  get isChanged() {
1000
- return !g(this.value, this.originalValue);
1000
+ return !h(this.value, this.originalValue);
1001
1001
  }
1002
1002
  boundFrom(e, t, n, r) {
1003
1003
  this.#t.declaration = e.declaration;
@@ -1005,7 +1005,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
1005
1005
  ...e.extra,
1006
1006
  ...r && this.extendedOf(r)
1007
1007
  };
1008
- h(i) || this.setExtendedValues(i);
1008
+ m(i) || this.setExtendedValues(i);
1009
1009
  let a = this.declaration;
1010
1010
  a.noteBinding(this);
1011
1011
  let o = a._actions;
@@ -1017,18 +1017,18 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
1017
1017
  });
1018
1018
  }
1019
1019
  registerAction(e) {
1020
- return O((t) => {
1020
+ return D((t) => {
1021
1021
  t.willAnnounceValue(this) || this.refreshPreviousValue(), this.actions.register(e), this.registered(t, e);
1022
1022
  }), this;
1023
1023
  }
1024
1024
  registerActionBefore(e, t) {
1025
- return O((n) => {
1025
+ return D((n) => {
1026
1026
  n.willAnnounceValue(this) || this.refreshPreviousValue(), this.actions.register(e, t), this.registered(n, e);
1027
1027
  }), this;
1028
1028
  }
1029
1029
  unregisterAction(e) {
1030
1030
  let t = !1;
1031
- return O((n) => {
1031
+ return D((n) => {
1032
1032
  let r = this.boundActions;
1033
1033
  if (!r || (t = r.unregister(e), !t)) return;
1034
1034
  n.touch(this), e instanceof I && this.#e.validationEpoch++;
@@ -1054,7 +1054,7 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
1054
1054
  return this.#e.validationEpoch;
1055
1055
  }
1056
1056
  clearValidators() {
1057
- O((e) => {
1057
+ D((e) => {
1058
1058
  e.touch(this), this.#e.validationEpoch++;
1059
1059
  let t = this.boundActions;
1060
1060
  if (t) {
@@ -1071,10 +1071,10 @@ var V = B, ze = Symbol("EnabledChangingAction"), H = class extends x {
1071
1071
  };
1072
1072
  //#endregion
1073
1073
  //#region src/actions/conditional/statement.ts
1074
- function qe(e, t) {
1074
+ function Je(e, t) {
1075
1075
  return e ? !t : t;
1076
1076
  }
1077
- var Je = class e {
1077
+ var Ye = class e {
1078
1078
  operand1;
1079
1079
  operator;
1080
1080
  operand2;
@@ -1083,13 +1083,13 @@ var Je = class e {
1083
1083
  if (typeof e == "function") throw TypeError(`Statement operand ${t} is a function: an operand is a field, a nested statement or a literal, and a function is none of them. An accessor states the field it answers with: group.field('name').`);
1084
1084
  }
1085
1085
  constructor(t, n, r) {
1086
- e.validateOperand(t, 1), n !== V.NOT && e.validateOperand(r, 2), this.operand1 = t, this.operator = n, this.operand2 = r;
1086
+ e.validateOperand(t, 1), n !== H.NOT && e.validateOperand(r, 2), this.operand1 = t, this.operator = n, this.operand2 = r;
1087
1087
  }
1088
1088
  static valueOf(t, n) {
1089
1089
  if (t instanceof e) return t.evaluate(n);
1090
1090
  if (t instanceof Y) {
1091
- let e = n ? Me(t, n) : t;
1092
- return e ? d(e.value) : void 0;
1091
+ let e = n ? z(t, n) : t;
1092
+ return e ? u(e.value) : void 0;
1093
1093
  }
1094
1094
  return t;
1095
1095
  }
@@ -1102,22 +1102,22 @@ var Je = class e {
1102
1102
  evaluate(t) {
1103
1103
  let n = e.valueOf(this.operand1, t), r = e.valueOf(this.operand2, t);
1104
1104
  switch (this.operator) {
1105
- case V.AND: return !!(n && r);
1106
- case V.OR: return !!(n || r);
1107
- case V.NAND: return !(n && r);
1108
- case V.NOR: return !(n || r);
1109
- case V.XOR: return qe(!!n, !!r);
1110
- case V.NOT: return !n;
1111
- case V.EQUALS: return n == r;
1112
- case V.NOT_EQUALS: return n != r;
1113
- case V.LT: return n < r;
1114
- case V.LE: return n <= r;
1115
- case V.GE: return n >= r;
1116
- case V.GT: return n > r;
1117
- case V.IN: return !!r?.includes?.(n);
1118
- case V.NOT_IN: return !r?.includes?.(n);
1119
- case V.INCLUDES: return _(n) && _(r) && n.indexOf(r) >= 0;
1120
- case V.NOT_INCLUDES: return !(_(n) && _(r) && n.indexOf(r) >= 0);
1105
+ case H.AND: return !!(n && r);
1106
+ case H.OR: return !!(n || r);
1107
+ case H.NAND: return !(n && r);
1108
+ case H.NOR: return !(n || r);
1109
+ case H.XOR: return Je(!!n, !!r);
1110
+ case H.NOT: return !n;
1111
+ case H.EQUALS: return n == r;
1112
+ case H.NOT_EQUALS: return n != r;
1113
+ case H.LT: return n < r;
1114
+ case H.LE: return n <= r;
1115
+ case H.GE: return n >= r;
1116
+ case H.GT: return n > r;
1117
+ case H.IN: return !!r?.includes?.(n);
1118
+ case H.NOT_IN: return !r?.includes?.(n);
1119
+ case H.INCLUDES: return g(n) && g(r) && n.indexOf(r) >= 0;
1120
+ case H.NOT_INCLUDES: return !(g(n) && g(r) && n.indexOf(r) >= 0);
1121
1121
  default: throw Error(`Operator not implemented ${this.operator}`);
1122
1122
  }
1123
1123
  }
@@ -1128,43 +1128,43 @@ var Je = class e {
1128
1128
  }
1129
1129
  return n(this.operand1), n(this.operand2), t;
1130
1130
  }
1131
- }, Ye = Symbol("ExecuteAction"), X = class extends x {
1131
+ }, Xe = Symbol("ExecuteAction"), Ze = class extends b {
1132
1132
  constructor(e) {
1133
1133
  super(e);
1134
1134
  }
1135
1135
  static get classIdentifier() {
1136
- return Ye;
1136
+ return Xe;
1137
1137
  }
1138
1138
  execute(e, t, n) {
1139
1139
  return super.execute(e, t, n);
1140
1140
  }
1141
- }, Xe = Symbol("ListItemAddedAction"), Z = class extends x {
1141
+ }, Qe = Symbol("ListItemAddedAction"), X = class extends b {
1142
1142
  constructor(e) {
1143
1143
  super(e);
1144
1144
  }
1145
1145
  static get classIdentifier() {
1146
- return Xe;
1146
+ return Qe;
1147
1147
  }
1148
1148
  execute(e, t, n, r) {
1149
1149
  return super.execute(e, t, n, r);
1150
1150
  }
1151
- }, Ze = Symbol("ListItemRemovedAction"), Qe = class extends x {
1151
+ }, $e = Symbol("ListItemRemovedAction"), et = class extends b {
1152
1152
  constructor(e) {
1153
1153
  super(e);
1154
1154
  }
1155
1155
  static get classIdentifier() {
1156
- return Ze;
1156
+ return $e;
1157
1157
  }
1158
1158
  execute(e, t, n, r) {
1159
1159
  return super.execute(e, t, n, r);
1160
1160
  }
1161
- }, $e = Object.freeze({});
1162
- function et() {
1161
+ }, tt = Object.freeze({});
1162
+ function nt() {
1163
1163
  return {
1164
1164
  originalValue: void 0,
1165
1165
  announcedValue: void 0,
1166
1166
  errors: [],
1167
- visibility: b.FULL,
1167
+ visibility: y.FULL,
1168
1168
  enabled: !0,
1169
1169
  valueVersion: 0,
1170
1170
  validatingCount: 0,
@@ -1173,35 +1173,35 @@ function et() {
1173
1173
  fieldName: void 0,
1174
1174
  validationEpoch: 0,
1175
1175
  declaration: void 0,
1176
- extra: $e,
1176
+ extra: tt,
1177
1177
  valid: !0,
1178
1178
  invalidChildren: 0
1179
1179
  };
1180
1180
  }
1181
- function tt() {
1181
+ function rt() {
1182
1182
  return {
1183
- ...et(),
1183
+ ...nt(),
1184
1184
  value: void 0,
1185
1185
  touched: !1
1186
1186
  };
1187
1187
  }
1188
- function nt() {
1188
+ function it() {
1189
1189
  return {
1190
- ...et(),
1190
+ ...nt(),
1191
1191
  announcedValue: null,
1192
1192
  cachedValue: null,
1193
1193
  cachedValueVersion: -1
1194
1194
  };
1195
1195
  }
1196
- function rt() {
1196
+ function at() {
1197
1197
  return {
1198
- ...nt(),
1198
+ ...it(),
1199
1199
  fieldNames: []
1200
1200
  };
1201
1201
  }
1202
- function it() {
1202
+ function ot() {
1203
1203
  return {
1204
- ...nt(),
1204
+ ...it(),
1205
1205
  rows: null,
1206
1206
  rowsVersion: 0,
1207
1207
  cachedItems: null,
@@ -1210,7 +1210,7 @@ function it() {
1210
1210
  }
1211
1211
  //#endregion
1212
1212
  //#region src/field.ts
1213
- var Q = class extends Y {
1213
+ var Z = class extends Y {
1214
1214
  get [Symbol.toStringTag]() {
1215
1215
  return "Field";
1216
1216
  }
@@ -1227,10 +1227,10 @@ var Q = class extends Y {
1227
1227
  this.state.value = e;
1228
1228
  }
1229
1229
  constructor(e) {
1230
- super(tt()), this.init(e);
1230
+ super(rt()), this.init(e);
1231
1231
  }
1232
1232
  init(e) {
1233
- O(() => {
1233
+ D(() => {
1234
1234
  if (e) {
1235
1235
  let { value: t, validators: n, actions: r, ...i } = e;
1236
1236
  this.registerInitialActions([...n || [], ...r || []]), this.assignParams(i), this._value = t === void 0 ? this.originalValue : t;
@@ -1243,7 +1243,7 @@ var Q = class extends Y {
1243
1243
  }
1244
1244
  set value(e) {
1245
1245
  let t = this._value;
1246
- !this.enabled || t === e || O((n) => {
1246
+ !this.enabled || t === e || D((n) => {
1247
1247
  n.touch(this), this._value = e, this.bumpValueVersion(), this.boundActions?.triggerEager(this, e, t), this.propagateValueChanged();
1248
1248
  });
1249
1249
  }
@@ -1265,23 +1265,23 @@ var Q = class extends Y {
1265
1265
  });
1266
1266
  return r.boundFrom(this, r.value, r.originalValue, t), r;
1267
1267
  }
1268
- }, at = /* @__PURE__ */ new WeakMap();
1269
- function ot(e) {
1268
+ }, st = /* @__PURE__ */ new WeakMap();
1269
+ function ct(e) {
1270
1270
  if (e != null) return Object.values(e).some((e) => e != null) ? e : void 0;
1271
1271
  }
1272
- var st = class extends Q {
1272
+ var lt = class extends Z {
1273
1273
  get [Symbol.toStringTag]() {
1274
1274
  return "Action";
1275
1275
  }
1276
1276
  init(e) {
1277
- O(() => {
1277
+ D(() => {
1278
1278
  if (this._value = {
1279
1279
  label: void 0,
1280
1280
  icon: void 0
1281
1281
  }, e) {
1282
1282
  let { value: t, originalValue: n, validators: r, actions: i, ...a } = e;
1283
1283
  this.registerInitialActions([...r || [], ...i || []]), this.assignParams(a);
1284
- let o = ot(t), s = ot(n);
1284
+ let o = ct(t), s = ct(n);
1285
1285
  o ? this._value = o : s && (this._value = { ...s }), s && (this.originalValue = Object.freeze({ ...s }));
1286
1286
  }
1287
1287
  this.constructed(e), this.originalValue === void 0 && (this.originalValue = this._value), this.raw.announcedValue = this._value, this.boundActions?.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -1304,8 +1304,8 @@ var st = class extends Q {
1304
1304
  this.value.label !== e && (this.value = this.valueWith("label", e));
1305
1305
  }
1306
1306
  get busyRuns() {
1307
- let e = at.get(this);
1308
- return e || (e = c(0), at.set(this, e)), e;
1307
+ let e = st.get(this);
1308
+ return e || (e = te(0), st.set(this, e)), e;
1309
1309
  }
1310
1310
  get busy() {
1311
1311
  return this.busyRuns.value > 0;
@@ -1314,19 +1314,19 @@ var st = class extends Q {
1314
1314
  let t = this.busyRuns;
1315
1315
  t.value++;
1316
1316
  try {
1317
- return await this.triggerAction(X, e);
1317
+ return await this.triggerAction(Ze, e);
1318
1318
  } finally {
1319
1319
  t.value--;
1320
1320
  }
1321
1321
  }
1322
- }, ct = /* @__PURE__ */ i({
1322
+ }, ut = /* @__PURE__ */ i({
1323
1323
  __name: "messages-widget",
1324
1324
  props: {
1325
1325
  message: {},
1326
1326
  classes: {}
1327
1327
  },
1328
1328
  setup(e) {
1329
- let t = e, n = l("vue-markdown"), i = /* @__PURE__ */ new Set(/* @__PURE__ */ "div.span.p.h1.h2.h3.h4.h5.h6.section.article.aside.nav.header.footer.main.figure.figcaption.blockquote.pre.code.em.strong.small.mark.del.ins.sub.sup.i.b.u.s.a.img.button.input.textarea.select.option.label.form.table.tr.td.th.thead.tbody.tfoot.ul.ol.li.dl.dt.dd".split(".")), o = () => {
1329
+ let t = e, n = c("vue-markdown"), i = /* @__PURE__ */ new Set(/* @__PURE__ */ "div.span.p.h1.h2.h3.h4.h5.h6.section.article.aside.nav.header.footer.main.figure.figcaption.blockquote.pre.code.em.strong.small.mark.del.ins.sub.sup.i.b.u.s.a.img.button.input.textarea.select.option.label.form.table.tr.td.th.thead.tbody.tfoot.ul.ol.li.dl.dt.dd".split(".")), o = () => {
1330
1330
  if (typeof t.message == "string") return a("span", { class: t.classes }, t.message);
1331
1331
  let e = [];
1332
1332
  return t.message.forEach((r) => {
@@ -1350,7 +1350,7 @@ var st = class extends Q {
1350
1350
  }));
1351
1351
  }
1352
1352
  break;
1353
- default: e.push(a(i.has(r.componentName.toLowerCase()) ? r.componentName : l(r.componentName), {
1353
+ default: e.push(a(i.has(r.componentName.toLowerCase()) ? r.componentName : c(r.componentName), {
1354
1354
  class: [t.classes, r.extraClasses],
1355
1355
  ...r.componentBindings,
1356
1356
  ...r.componentBody ? { innerHTML: r.componentBody } : {}
@@ -1360,7 +1360,7 @@ var st = class extends Q {
1360
1360
  };
1361
1361
  return (e, t) => (s(), r(o));
1362
1362
  }
1363
- }), lt = /* @__PURE__ */ new WeakMap(), ut = (e) => ({
1363
+ }), dt = /* @__PURE__ */ new WeakMap(), ft = (e) => ({
1364
1364
  get(t, n, r) {
1365
1365
  return e(), Reflect.get(t, n, r);
1366
1366
  },
@@ -1382,7 +1382,7 @@ var st = class extends Q {
1382
1382
  deleteProperty(e, t) {
1383
1383
  throw TypeError(`fields.${String(t)} cannot be deleted: use removeField() to take a member out`);
1384
1384
  }
1385
- }), $ = class e extends Y {
1385
+ }), Q = class e extends Y {
1386
1386
  get [Symbol.toStringTag]() {
1387
1387
  return "Group";
1388
1388
  }
@@ -1394,8 +1394,8 @@ var st = class extends Q {
1394
1394
  }
1395
1395
  _fields;
1396
1396
  constructor(t, n) {
1397
- if (super(rt()), !e.isValidFields(t)) throw Error("Invalid fields object provided");
1398
- this._fields = Object.create(null), O(() => {
1397
+ if (super(at()), !e.isValidFields(t)) throw Error("Invalid fields object provided");
1398
+ this._fields = Object.create(null), D(() => {
1399
1399
  if (Object.entries(t).forEach(([e, t]) => this.addField(e, t)), n) {
1400
1400
  let { value: e, validators: t, actions: r, ...i } = n;
1401
1401
  this.registerInitialActions([...t || [], ...r || []]), this.assignParams(i), e === void 0 ? this.originalValue !== void 0 && this.assignMembers(this.originalValue) : this.assignMembers(e);
@@ -1405,22 +1405,22 @@ var st = class extends Q {
1405
1405
  this.originalValue === void 0 && (this.originalValue = e.baseline(r)), this.raw.announcedValue = r, this.boundActions?.triggerEager(this, r, this.originalValue), this.validate();
1406
1406
  });
1407
1407
  }
1408
- [w]() {
1409
- let e = super[w]();
1408
+ [C]() {
1409
+ let e = super[C]();
1410
1410
  return e.fieldNames = [...this.raw.fieldNames], e;
1411
1411
  }
1412
1412
  static baseline(e) {
1413
1413
  return e == null ? e : { ...e };
1414
1414
  }
1415
1415
  addField(t, n) {
1416
- return O((r) => {
1416
+ return D((r) => {
1417
1417
  if (Object.hasOwn(this._fields, t)) throw Error(`Field ${t} is already in this form`);
1418
1418
  this.takeChild(n, t), r.touch(this), e.setEntry(this._fields, t, n), r.whenRolledBack(() => e.dropEntry(this._fields, t)), this.state.fieldNames.push(t), this.completeRecords(n), this.bumpValueVersion(), this.notifyValueChanged();
1419
1419
  }), this;
1420
1420
  }
1421
1421
  removeField(t) {
1422
1422
  let n;
1423
- return O((r) => {
1423
+ return D((r) => {
1424
1424
  if (!Object.hasOwn(this._fields, t)) return;
1425
1425
  let i = this._fields[t];
1426
1426
  r.touch(this), this.releaseChild(i), e.dropEntry(this._fields, t), r.whenRolledBack(() => e.setEntry(this._fields, t, i)), this.state.fieldNames.splice(this.state.fieldNames.indexOf(t), 1), this.bumpValueVersion(), this.notifyValueChanged(), n = i;
@@ -1440,14 +1440,14 @@ var st = class extends Q {
1440
1440
  }
1441
1441
  static createFromFormData(t) {
1442
1442
  if (t instanceof Y) throw Error("data is already a Form structure, should be a simple object");
1443
- return new e(t == null ? {} : Object.fromEntries(Object.entries(t).map(([e, t]) => [e, new Q({ value: t })])));
1443
+ return new e(t == null ? {} : Object.fromEntries(Object.entries(t).map(([e, t]) => [e, new Z({ value: t })])));
1444
1444
  }
1445
1445
  field(e) {
1446
1446
  return this._fields[e] ?? null;
1447
1447
  }
1448
1448
  get fields() {
1449
- let e = lt.get(this);
1450
- return e || (e = new Proxy(this._fields, ut(() => this.state.fieldNames.length)), lt.set(this, e)), e;
1449
+ let e = dt.get(this);
1450
+ return e || (e = new Proxy(this._fields, ft(() => this.state.fieldNames.length)), dt.set(this, e)), e;
1451
1451
  }
1452
1452
  get members() {
1453
1453
  return this.raw.fieldNames.map((e) => this._fields[e]);
@@ -1458,26 +1458,26 @@ var st = class extends Q {
1458
1458
  let t = Object.create(null);
1459
1459
  Object.entries(this._fields).forEach(([e, n]) => {
1460
1460
  let r = n.value;
1461
- (n.enabled || this.childComposesValue(n) && !h(r)) && (t[e] = r);
1461
+ (n.enabled || this.childComposesValue(n) && !m(r)) && (t[e] = r);
1462
1462
  });
1463
- let n = h(t) ? null : Object.freeze({ ...t });
1463
+ let n = m(t) ? null : Object.freeze({ ...t });
1464
1464
  return this.raw.cachedValue = n, this.raw.cachedValueVersion = e, n;
1465
1465
  }
1466
1466
  assignMembers(e) {
1467
- O(() => {
1467
+ D(() => {
1468
1468
  Object.entries(this._fields).forEach(([t, n]) => {
1469
1469
  (e == null || Object.hasOwn(e, t)) && (n.value = e == null ? null : e[t]);
1470
1470
  });
1471
1471
  });
1472
1472
  }
1473
1473
  set value(e) {
1474
- O((t) => {
1474
+ D((t) => {
1475
1475
  this.assignMembers(e), t.markValidityDirty(this);
1476
1476
  });
1477
1477
  }
1478
1478
  resetTo(t, n) {
1479
1479
  let r = t;
1480
- O((t) => {
1480
+ D((t) => {
1481
1481
  t.touch(this), this.errors.length && (this.errors = []), Object.entries(this._fields).forEach(([e, t]) => {
1482
1482
  let i;
1483
1483
  n === null ? i = null : n !== void 0 && Object.hasOwn(n, e) && (i = n[e]), this.resetChild(t, r.field(e) ?? t, i);
@@ -1490,7 +1490,7 @@ var st = class extends Q {
1490
1490
  return Object.values(this._fields).some((e) => e.touched);
1491
1491
  }
1492
1492
  set touched(e) {
1493
- O(() => {
1493
+ D(() => {
1494
1494
  Object.values(this._fields).forEach((t) => {
1495
1495
  t.touched = e;
1496
1496
  });
@@ -1524,7 +1524,7 @@ var st = class extends Q {
1524
1524
  return this.state.fieldNames.some((e) => this._fields[e].busy);
1525
1525
  }
1526
1526
  validate(e = !1) {
1527
- O(() => {
1527
+ D(() => {
1528
1528
  e && Object.values(this._fields).forEach((e) => e.validate(!0)), super.validate(e);
1529
1529
  });
1530
1530
  }
@@ -1548,7 +1548,19 @@ var st = class extends Q {
1548
1548
  rebind(e) {
1549
1549
  return super.rebind(e);
1550
1550
  }
1551
- }, dt = class e extends Y {
1551
+ };
1552
+ //#endregion
1553
+ //#region src/is-equal.ts
1554
+ function pt(e, t) {
1555
+ let n = e instanceof Y ? e.value : e, r = t instanceof Y ? t.value : t;
1556
+ return n === e && r === t ? void 0 : h(n, r);
1557
+ }
1558
+ function mt(e, t) {
1559
+ return e instanceof Y && t instanceof Y ? h(e.value, t.value) : ne(e, t, pt);
1560
+ }
1561
+ //#endregion
1562
+ //#region src/list.ts
1563
+ var ht = class e extends Y {
1552
1564
  get [Symbol.toStringTag]() {
1553
1565
  return "List";
1554
1566
  }
@@ -1560,7 +1572,7 @@ var st = class extends Q {
1560
1572
  }
1561
1573
  _itemTemplate;
1562
1574
  constructor(t, n) {
1563
- super(it()), this._itemTemplate = t, O(() => {
1575
+ super(ot()), this._itemTemplate = t, D(() => {
1564
1576
  if (n) {
1565
1577
  let { value: e, validators: t, actions: r, ...i } = n;
1566
1578
  this.registerInitialActions([...t || [], ...r || []]), this.assignParams(i), e === void 0 ? this.originalValue !== void 0 && this.setValueInternal(this.originalValue) : this.setValueInternal(e);
@@ -1568,8 +1580,8 @@ var st = class extends Q {
1568
1580
  this.constructed(n), this.originalValue === void 0 && (this.originalValue = e.baseline(this.value)), this.raw.announcedValue = this.value, this.boundActions?.triggerEager(this, this.value, this.originalValue), this.validate();
1569
1581
  });
1570
1582
  }
1571
- [w]() {
1572
- let e = super[w]();
1583
+ [C]() {
1584
+ let e = super[C]();
1573
1585
  return e.rows = this.raw.rows ? [...this.raw.rows] : this.raw.rows, e;
1574
1586
  }
1575
1587
  static baseline(e) {
@@ -1577,7 +1589,7 @@ var st = class extends Q {
1577
1589
  }
1578
1590
  processSetValueItem(e) {
1579
1591
  let t;
1580
- return t = e instanceof $ ? e : this._itemTemplate ? this._itemTemplate.bind(e) : $.createFromFormData(e), this.takeChild(t), this.completeRecords(t), t;
1592
+ return t = e instanceof Q ? e : this._itemTemplate ? this._itemTemplate.bind(e) : Q.createFromFormData(e), this.takeChild(t), this.completeRecords(t), t;
1581
1593
  }
1582
1594
  createPaddingItem() {
1583
1595
  return this.processSetValueItem(this._itemTemplate ? this._itemTemplate.bind() : null);
@@ -1591,7 +1603,7 @@ var st = class extends Q {
1591
1603
  }
1592
1604
  setValueInternal(t) {
1593
1605
  if (t != null && !Array.isArray(t)) throw TypeError("Invalid value provided: a list takes an array of rows, or null to empty it");
1594
- O((n) => {
1606
+ D((n) => {
1595
1607
  n.touch(this);
1596
1608
  let r = this.raw.rows;
1597
1609
  if (t == null) this.releaseRows(), this.state.rows = null;
@@ -1599,7 +1611,7 @@ var st = class extends Q {
1599
1611
  let e = this.state.rows ?? [], n = Array(t.length);
1600
1612
  for (let r = 0; r < t.length; r++) {
1601
1613
  let i = t[r], a = e[r];
1602
- a && this._itemTemplate && !(i instanceof $) ? (this.resetChild(a, this._itemTemplate, i), n[r] = a) : (a && this.releaseChild(a), n[r] = this.processSetValueItem(i));
1614
+ a && this._itemTemplate && !(i instanceof Q) ? (this.resetChild(a, this._itemTemplate, i), n[r] = a) : (a && this.releaseChild(a), n[r] = this.processSetValueItem(i));
1603
1615
  }
1604
1616
  for (let n = t.length; n < e.length; n++) this.releaseChild(e[n]);
1605
1617
  this.state.rows = n;
@@ -1610,16 +1622,16 @@ var st = class extends Q {
1610
1622
  get value() {
1611
1623
  let e = this.valueVersion;
1612
1624
  if (this.raw.cachedValueVersion === e) return this.raw.cachedValue;
1613
- let t = this.state.rows?.map((e) => e.value), n = h(t) ? null : Object.freeze(t);
1625
+ let t = this.state.rows?.map((e) => e.value), n = m(t) ? null : Object.freeze(t);
1614
1626
  return this.raw.cachedValue = n, this.raw.cachedValueVersion = e, n;
1615
1627
  }
1616
1628
  set value(e) {
1617
- O(() => {
1629
+ D(() => {
1618
1630
  this.setValueInternal(e), this.propagateValueChanged(!0);
1619
1631
  });
1620
1632
  }
1621
1633
  resetTo(t, n) {
1622
- O((r) => {
1634
+ D((r) => {
1623
1635
  r.touch(this), this.errors.length && (this.errors = []), this.setValueInternal(n === void 0 ? t.value : n);
1624
1636
  let i = this.value;
1625
1637
  this.raw.announcedValue = i, this.originalValue = e.baseline(i), super.validate(!0);
@@ -1629,7 +1641,7 @@ var st = class extends Q {
1629
1641
  return this.state.rows?.some((e) => e.touched) || !1;
1630
1642
  }
1631
1643
  set touched(e) {
1632
- O(() => {
1644
+ D(() => {
1633
1645
  this.state.rows?.forEach((t) => {
1634
1646
  t.touched = e;
1635
1647
  });
@@ -1667,7 +1679,7 @@ var st = class extends Q {
1667
1679
  return this.state.rows?.some((e) => e.busy) ?? !1;
1668
1680
  }
1669
1681
  validate(e = !1) {
1670
- O(() => {
1682
+ D(() => {
1671
1683
  e && this.state.rows?.forEach((e) => e.validate(!0)), super.validate(e);
1672
1684
  });
1673
1685
  }
@@ -1695,12 +1707,12 @@ var st = class extends Q {
1695
1707
  }
1696
1708
  remove(e) {
1697
1709
  let t;
1698
- return O((n) => {
1710
+ return D((n) => {
1699
1711
  if (this.state.rows == null || e < 0 || this.state.rows.length <= e) return;
1700
1712
  n.touch(this);
1701
1713
  let r = this.state.rows.splice(e, 1)?.[0];
1702
1714
  r && (this.releaseChild(r), this.rowsChanged(), this.bumpValueVersion(), t = r, n.recordStructural(this, {
1703
- actionClass: Qe,
1715
+ actionClass: et,
1704
1716
  item: t,
1705
1717
  index: e
1706
1718
  }), this.propagateValueChanged(!0));
@@ -1708,18 +1720,18 @@ var st = class extends Q {
1708
1720
  }
1709
1721
  insert(e, t) {
1710
1722
  let n = 0;
1711
- return O((r) => {
1723
+ return D((r) => {
1712
1724
  for (r.touch(this), this.state.rows ?? (this.state.rows = []), n = t < 0 ? Math.max(this.state.rows.length + t, 0) : t; this.state.rows.length < n;) {
1713
1725
  let e = this.createPaddingItem(), t = this.state.rows.push(e) - 1;
1714
1726
  this.bumpValueVersion(), r.recordStructural(this, {
1715
- actionClass: Z,
1727
+ actionClass: X,
1716
1728
  item: e,
1717
1729
  index: t
1718
1730
  });
1719
1731
  }
1720
1732
  let i = this.processSetValueItem(e);
1721
1733
  this.state.rows.splice(n, 0, i), r.recordStructural(this, {
1722
- actionClass: Z,
1734
+ actionClass: X,
1723
1735
  item: i,
1724
1736
  index: n
1725
1737
  }), this.rowsChanged(), this.bumpValueVersion(), this.propagateValueChanged(!0);
@@ -1729,12 +1741,12 @@ var st = class extends Q {
1729
1741
  this.state.rows?.forEach((e) => this.releaseChild(e));
1730
1742
  }
1731
1743
  clear() {
1732
- O((e) => {
1744
+ D((e) => {
1733
1745
  let t = (this.state.rows?.length ?? 0) > 0;
1734
1746
  e.touch(this), this.releaseRows(), this.state.rows = null, t && this.rowsChanged(), this.bumpValueVersion(), this.propagateValueChanged(t);
1735
1747
  });
1736
1748
  }
1737
- }, ft = class extends I {
1749
+ }, gt = class extends I {
1738
1750
  isValidComparison;
1739
1751
  otherField;
1740
1752
  registrations = /* @__PURE__ */ new WeakSet();
@@ -1744,7 +1756,7 @@ var st = class extends Q {
1744
1756
  super((e, t, r) => {
1745
1757
  this.comparisonState(r).oldValue = t;
1746
1758
  let i = this.resolve(r);
1747
- return i ? (this.listenOn(i), this.isValidComparison(d(e), d(i.value)) ? null : [new N(this.replacePlaceholders(n, {
1759
+ return i ? (this.listenOn(i), this.isValidComparison(u(e), u(i.value)) ? null : [new M(this.replacePlaceholders(n, {
1748
1760
  newValue: e,
1749
1761
  oldValue: t,
1750
1762
  field: r,
@@ -1754,10 +1766,10 @@ var st = class extends Q {
1754
1766
  }
1755
1767
  resolve(e) {
1756
1768
  let t = this.otherField;
1757
- return typeof t == "function" ? t(e) ?? void 0 : typeof t == "string" ? Pe(t, e) : Me(t, R(e));
1769
+ return typeof t == "function" ? t(e) ?? void 0 : typeof t == "string" ? Pe(t, e) : z(t, R(e));
1758
1770
  }
1759
1771
  listenOn(e) {
1760
- this.listening.has(e) || this.listening.has(e.declaration) || (this.listening.add(e), e.registerAction(new C((e, t, n, r) => {
1772
+ this.listening.has(e) || this.listening.has(e.declaration) || (this.listening.add(e), e.registerAction(new S((e, t, n, r) => {
1761
1773
  t(e, n, r);
1762
1774
  let i = R(e);
1763
1775
  this.declarations.forEach((e) => Ne(e, i).forEach((e) => {
@@ -1780,14 +1792,14 @@ var st = class extends Q {
1780
1792
  unregisterFrom(e) {
1781
1793
  super.unregisterFrom(e), this.registrations.delete(e);
1782
1794
  }
1783
- }, pt = class extends I {
1795
+ }, _t = class extends I {
1784
1796
  constructor(e, t) {
1785
1797
  let n = t || F("InAllowedValues"), r = () => {
1786
- let t = d(e);
1798
+ let t = u(e);
1787
1799
  return typeof t == "function" ? t() : t;
1788
1800
  }, i = (e) => {
1789
1801
  let t = e.join(", ");
1790
- return t.length <= 60 ? t : ne(t, {
1802
+ return t.length <= 60 ? t : ie(t, {
1791
1803
  length: 40,
1792
1804
  separator: ", ",
1793
1805
  omission: `... (${e.length} items total)`
@@ -1795,7 +1807,7 @@ var st = class extends Q {
1795
1807
  };
1796
1808
  super((e, t, a) => {
1797
1809
  let o = r();
1798
- return o.includes(d(e)) ? null : [new N(this.replacePlaceholders(n, {
1810
+ return o.includes(u(e)) ? null : [new M(this.replacePlaceholders(n, {
1799
1811
  newValue: e,
1800
1812
  oldValue: t,
1801
1813
  field: a,
@@ -1807,48 +1819,48 @@ var st = class extends Q {
1807
1819
  };
1808
1820
  //#endregion
1809
1821
  //#region src/validators/validator-required.ts
1810
- function mt(e) {
1811
- return e == null ? 0 : p(e) || _(e) ? e.length : te(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.keys(e).length : String(e).length;
1822
+ function vt(e) {
1823
+ return e == null ? 0 : f(e) || g(e) ? e.length : re(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.keys(e).length : String(e).length;
1812
1824
  }
1813
- function ht(e) {
1825
+ function yt(e) {
1814
1826
  return typeof e == "object" && !!e && !o(e) && !(e instanceof String) && !("componentName" in e);
1815
1827
  }
1816
- var gt = class extends I {
1828
+ var bt = class extends I {
1817
1829
  constructor(e, t) {
1818
- let n = ht(e) ? void 0 : e, r = (ht(e) ? e : t)?.trim ?? !0, i = n || F("Required");
1830
+ let n = yt(e) ? void 0 : e, r = (yt(e) ? e : t)?.trim ?? !0, i = n || F("Required");
1819
1831
  super((e, t, n) => {
1820
- let a = d(e);
1821
- return mt(r && _(a) ? a.trim() : a) === 0 ? [new N(this.replacePlaceholders(i, {
1832
+ let a = u(e);
1833
+ return vt(r && g(a) ? a.trim() : a) === 0 ? [new M(this.replacePlaceholders(i, {
1822
1834
  newValue: e,
1823
1835
  oldValue: t,
1824
1836
  field: n
1825
1837
  }), "", "required")] : null;
1826
1838
  });
1827
1839
  }
1828
- }, _t = class extends I {
1840
+ }, xt = class extends I {
1829
1841
  constructor(e, t) {
1830
1842
  let n = t || F("MinValue");
1831
- super((t, r, i) => t < e || t === void 0 ? [new N(this.replacePlaceholders(n, {
1843
+ super((t, r, i) => t < e || t === void 0 ? [new M(this.replacePlaceholders(n, {
1832
1844
  newValue: t,
1833
1845
  oldValue: r,
1834
1846
  field: i,
1835
1847
  minValue: e
1836
1848
  }), "", "min")] : null);
1837
1849
  }
1838
- }, vt = class extends I {
1850
+ }, St = class extends I {
1839
1851
  constructor(e, t) {
1840
1852
  let n = t || F("MaxValue");
1841
- super((t, r, i) => t > e || t === void 0 ? [new N(this.replacePlaceholders(n, {
1853
+ super((t, r, i) => t > e || t === void 0 ? [new M(this.replacePlaceholders(n, {
1842
1854
  newValue: t,
1843
1855
  oldValue: r,
1844
1856
  field: i,
1845
1857
  maxValue: e
1846
1858
  }), "", "max")] : null);
1847
1859
  }
1848
- }, yt = class extends I {
1860
+ }, Ct = class extends I {
1849
1861
  constructor(e, t, n) {
1850
1862
  let r = n || F("ValueInRange");
1851
- super((n, i, a) => n < e || n > t || n === void 0 ? [new N(this.replacePlaceholders(r, {
1863
+ super((n, i, a) => n < e || n > t || n === void 0 ? [new M(this.replacePlaceholders(r, {
1852
1864
  newValue: n,
1853
1865
  oldValue: i,
1854
1866
  field: a,
@@ -1859,35 +1871,35 @@ var gt = class extends I {
1859
1871
  };
1860
1872
  //#endregion
1861
1873
  //#region src/validators/validator-min-max-range-length.ts
1862
- function bt(e) {
1863
- return e == null ? 0 : p(e) || _(e) ? e.length : te(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.keys(e).length : String(e).length;
1874
+ function $(e) {
1875
+ return e == null ? 0 : f(e) || g(e) ? e.length : re(e) && Object.getPrototypeOf(e) === Object.prototype ? Object.keys(e).length : String(e).length;
1864
1876
  }
1865
- var xt = class extends I {
1877
+ var wt = class extends I {
1866
1878
  constructor(e, t) {
1867
1879
  let n = t || F("MinLength");
1868
- super((t, r, i) => bt(t) < e ? [new N(this.replacePlaceholders(n, {
1880
+ super((t, r, i) => $(t) < e ? [new M(this.replacePlaceholders(n, {
1869
1881
  newValue: t,
1870
1882
  oldValue: r,
1871
1883
  field: i,
1872
1884
  minLength: e
1873
1885
  }), "", "min-length")] : null);
1874
1886
  }
1875
- }, St = class extends I {
1887
+ }, Tt = class extends I {
1876
1888
  constructor(e, t) {
1877
1889
  let n = t || F("MaxLength");
1878
- super((t, r, i) => bt(t) > e ? [new N(this.replacePlaceholders(n, {
1890
+ super((t, r, i) => $(t) > e ? [new M(this.replacePlaceholders(n, {
1879
1891
  newValue: t,
1880
1892
  oldValue: r,
1881
1893
  field: i,
1882
1894
  maxLength: e
1883
1895
  }), "", "max-length")] : null);
1884
1896
  }
1885
- }, Ct = class extends I {
1897
+ }, Et = class extends I {
1886
1898
  constructor(e, t, n) {
1887
1899
  let r = n || F("LengthInRange");
1888
1900
  super((n, i, a) => {
1889
- let o = bt(n);
1890
- return o < e || o > t ? [new N(this.replacePlaceholders(r, {
1901
+ let o = $(n);
1902
+ return o < e || o > t ? [new M(this.replacePlaceholders(r, {
1891
1903
  newValue: n,
1892
1904
  oldValue: i,
1893
1905
  field: a,
@@ -1896,70 +1908,71 @@ var xt = class extends I {
1896
1908
  }), "", "range-length")] : null;
1897
1909
  });
1898
1910
  }
1899
- }, wt = class extends I {
1911
+ }, Dt = class extends I {
1900
1912
  constructor(e, t) {
1901
1913
  let n = t || F("Pattern");
1902
- super((t, r, i) => e.test(String(d(t))) ? null : [new N(this.replacePlaceholders(n, {
1914
+ super((t, r, i) => e.test(String(u(t))) ? null : [new M(this.replacePlaceholders(n, {
1903
1915
  newValue: t,
1904
1916
  oldValue: r,
1905
1917
  field: i,
1906
1918
  pattern: e
1907
1919
  }), "", "pattern")]);
1908
1920
  }
1909
- }, Tt = /* @__PURE__ */ ie({
1910
- CompareTo: () => ft,
1911
- InAllowedValues: () => pt,
1912
- LengthInRange: () => Ct,
1913
- MaxLength: () => St,
1914
- MaxValue: () => vt,
1915
- MinLength: () => xt,
1916
- MinValue: () => _t,
1917
- Pattern: () => wt,
1918
- Required: () => gt,
1921
+ }, Ot = /* @__PURE__ */ oe({
1922
+ CompareTo: () => gt,
1923
+ InAllowedValues: () => _t,
1924
+ LengthInRange: () => Et,
1925
+ MaxLength: () => Tt,
1926
+ MaxValue: () => St,
1927
+ MinLength: () => wt,
1928
+ MinValue: () => xt,
1929
+ Pattern: () => Dt,
1930
+ Required: () => bt,
1919
1931
  Validator: () => I,
1920
- ValueInRange: () => yt
1921
- }), Et = /* @__PURE__ */ ie({
1922
- AbortEventHandlingException: () => S,
1923
- Action: () => st,
1932
+ ValueInRange: () => Ct
1933
+ }), kt = /* @__PURE__ */ oe({
1934
+ AbortEventHandlingException: () => x,
1935
+ Action: () => lt,
1924
1936
  ActionsMap: () => L,
1925
1937
  ConditionalEnabledAction: () => Le,
1926
- ConditionalStatementAction: () => z,
1938
+ ConditionalStatementAction: () => B,
1927
1939
  ConditionalValueAction: () => Re,
1928
1940
  ConditionalVisibilityAction: () => Ie,
1929
- DisplayMode: () => b,
1930
- EnabledChangedAction: () => U,
1931
- EnabledChangingAction: () => H,
1932
- ExecuteAction: () => X,
1933
- Field: () => Q,
1934
- FieldActionBase: () => x,
1941
+ DisplayMode: () => y,
1942
+ EnabledChangedAction: () => W,
1943
+ EnabledChangingAction: () => U,
1944
+ ExecuteAction: () => Ze,
1945
+ Field: () => Z,
1946
+ FieldActionBase: () => b,
1935
1947
  FieldBase: () => Y,
1936
- Group: () => $,
1937
- List: () => dt,
1938
- ListItemAddedAction: () => Z,
1939
- ListItemRemovedAction: () => Qe,
1940
- MdString: () => k,
1941
- MessagesWidget: () => ct,
1942
- Operator: () => V,
1943
- RenderableValue: () => we,
1944
- Statement: () => Je,
1945
- ValidChangedAction: () => W,
1946
- ValidationError: () => M,
1947
- ValidationErrorRenderContent: () => N,
1948
- ValidationErrorText: () => Ce,
1949
- Validators: () => Tt,
1950
- ValueChangedAction: () => C,
1951
- VisibilityChangedAction: () => K,
1952
- VisibilityChangingAction: () => G,
1953
- buildErrorMessage: () => P,
1948
+ Group: () => Q,
1949
+ List: () => ht,
1950
+ ListItemAddedAction: () => X,
1951
+ ListItemRemovedAction: () => et,
1952
+ MdString: () => O,
1953
+ MessagesWidget: () => ut,
1954
+ Operator: () => H,
1955
+ RenderableValue: () => Ee,
1956
+ Statement: () => Ye,
1957
+ ValidChangedAction: () => G,
1958
+ ValidationError: () => j,
1959
+ ValidationErrorRenderContent: () => M,
1960
+ ValidationErrorText: () => Te,
1961
+ Validators: () => Ot,
1962
+ ValueChangedAction: () => S,
1963
+ VisibilityChangedAction: () => q,
1964
+ VisibilityChangingAction: () => K,
1965
+ buildErrorMessage: () => N,
1954
1966
  defaultDisplayMode: () => 10,
1955
- isCallableFunction: () => j,
1956
- isSimpleComponentDef: () => A,
1957
- strings: () => Ee,
1958
- transaction: () => D,
1959
- translateStrings: () => De,
1967
+ isCallableFunction: () => A,
1968
+ isEqual: () => mt,
1969
+ isSimpleComponentDef: () => k,
1970
+ strings: () => P,
1971
+ transaction: () => E,
1972
+ translateStrings: () => Oe,
1960
1973
  translatedMessage: () => F
1961
1974
  });
1962
1975
  //#endregion
1963
- export { S as AbortEventHandlingException, st as Action, L as ActionsMap, Le as ConditionalEnabledAction, z as ConditionalStatementAction, Re as ConditionalValueAction, Ie as ConditionalVisibilityAction, b as DisplayMode, U as EnabledChangedAction, H as EnabledChangingAction, X as ExecuteAction, Q as Field, x as FieldActionBase, Y as FieldBase, $ as Group, dt as List, Z as ListItemAddedAction, Qe as ListItemRemovedAction, k as MdString, ct as MessagesWidget, V as Operator, we as RenderableValue, Je as Statement, W as ValidChangedAction, M as ValidationError, N as ValidationErrorRenderContent, Ce as ValidationErrorText, Tt as Validators, C as ValueChangedAction, K as VisibilityChangedAction, G as VisibilityChangingAction, P as buildErrorMessage, Et as default, ae as defaultDisplayMode, Se as forms, be as getConfig, j as isCallableFunction, A as isSimpleComponentDef, xe as setConfig, Ee as strings, D as transaction, De as translateStrings, F as translatedMessage };
1976
+ export { x as AbortEventHandlingException, lt as Action, L as ActionsMap, Le as ConditionalEnabledAction, B as ConditionalStatementAction, Re as ConditionalValueAction, Ie as ConditionalVisibilityAction, y as DisplayMode, W as EnabledChangedAction, U as EnabledChangingAction, Ze as ExecuteAction, Z as Field, b as FieldActionBase, Y as FieldBase, Q as Group, ht as List, X as ListItemAddedAction, et as ListItemRemovedAction, O as MdString, ut as MessagesWidget, H as Operator, Ee as RenderableValue, Ye as Statement, G as ValidChangedAction, j as ValidationError, M as ValidationErrorRenderContent, Te as ValidationErrorText, Ot as Validators, S as ValueChangedAction, q as VisibilityChangedAction, K as VisibilityChangingAction, N as buildErrorMessage, kt as default, se as defaultDisplayMode, we as forms, Se as getConfig, A as isCallableFunction, mt as isEqual, k as isSimpleComponentDef, Ce as setConfig, P as strings, E as transaction, Oe as translateStrings, F as translatedMessage };
1964
1977
 
1965
1978
  //# sourceMappingURL=dynamicforms-vue-forms.js.map