@dynamicforms/vue-forms 0.4.6 → 0.4.7

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,44 +1,44 @@
1
- var gt = Object.defineProperty, ft = Object.defineProperties;
2
- var pt = Object.getOwnPropertyDescriptors;
1
+ var ft = Object.defineProperty, pt = Object.defineProperties;
2
+ var bt = Object.getOwnPropertyDescriptors;
3
3
  var R = Object.getOwnPropertySymbols;
4
- var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var $ = (n, s, t) => s in n ? gt(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, A = (n, s) => {
4
+ var K = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
5
+ var q = (i, s, t) => s in i ? ft(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t, A = (i, s) => {
6
6
  for (var t in s || (s = {}))
7
- J.call(s, t) && $(n, t, s[t]);
7
+ K.call(s, t) && q(i, t, s[t]);
8
8
  if (R)
9
9
  for (var t of R(s))
10
- K.call(s, t) && $(n, t, s[t]);
11
- return n;
12
- }, I = (n, s) => ft(n, pt(s));
13
- var S = (n, s) => {
10
+ Z.call(s, t) && q(i, t, s[t]);
11
+ return i;
12
+ }, I = (i, s) => pt(i, bt(s));
13
+ var S = (i, s) => {
14
14
  var t = {};
15
- for (var e in n)
16
- J.call(n, e) && s.indexOf(e) < 0 && (t[e] = n[e]);
17
- if (n != null && R)
18
- for (var e of R(n))
19
- s.indexOf(e) < 0 && K.call(n, e) && (t[e] = n[e]);
15
+ for (var e in i)
16
+ K.call(i, e) && s.indexOf(e) < 0 && (t[e] = i[e]);
17
+ if (i != null && R)
18
+ for (var e of R(i))
19
+ s.indexOf(e) < 0 && Z.call(i, e) && (t[e] = i[e]);
20
20
  return t;
21
21
  };
22
- var l = (n, s, t) => $(n, typeof s != "symbol" ? s + "" : s, t);
23
- import { isEqual as U, isBoolean as bt, isString as _, isEmpty as M, truncate as mt, isArray as st, isObject as nt } from "lodash-es";
24
- import { unref as g, computed as z, reactive as vt, defineComponent as yt, resolveComponent as Z, createBlock as xt, openBlock as Et, h as w } from "vue";
25
- var N = /* @__PURE__ */ ((n) => (n[n.SUPPRESS = 1] = "SUPPRESS", n[n.HIDDEN = 5] = "HIDDEN", n[n.INVISIBLE = 8] = "INVISIBLE", n[n.FULL = 10] = "FULL", n))(N || {});
26
- const tt = 10;
27
- ((n) => {
28
- function s(i) {
29
- return i.toUpperCase() === "SUPPRESS" ? 1 : i.toUpperCase() === "HIDDEN" ? 5 : i.toUpperCase() === "INVISIBLE" ? 8 : tt;
30
- }
31
- n.fromString = s;
32
- function t(i) {
33
- const r = typeof i == "number" ? i : n.fromString(i);
34
- return Object.values(n).includes(r) ? r : tt;
35
- }
36
- n.fromAny = t;
37
- function e(i) {
38
- const r = typeof i == "number" ? i : n.fromString(i);
39
- return Object.values(n).includes(r);
40
- }
41
- n.isDefined = e;
22
+ var l = (i, s, t) => q(i, typeof s != "symbol" ? s + "" : s, t);
23
+ import { isEqual as k, isBoolean as vt, isString as _, isEmpty as H, truncate as mt, isArray as nt, isObject as it } from "lodash-es";
24
+ import { unref as g, computed as G, reactive as yt, defineComponent as xt, resolveComponent as tt, createBlock as Et, openBlock as _t, h as w } from "vue";
25
+ var N = /* @__PURE__ */ ((i) => (i[i.SUPPRESS = 1] = "SUPPRESS", i[i.HIDDEN = 5] = "HIDDEN", i[i.INVISIBLE = 8] = "INVISIBLE", i[i.FULL = 10] = "FULL", i))(N || {});
26
+ const et = 10;
27
+ ((i) => {
28
+ function s(n) {
29
+ return n.toUpperCase() === "SUPPRESS" ? 1 : n.toUpperCase() === "HIDDEN" ? 5 : n.toUpperCase() === "INVISIBLE" ? 8 : et;
30
+ }
31
+ i.fromString = s;
32
+ function t(n) {
33
+ const r = typeof n == "number" ? n : i.fromString(n);
34
+ return Object.values(i).includes(r) ? r : et;
35
+ }
36
+ i.fromAny = t;
37
+ function e(n) {
38
+ const r = typeof n == "number" ? n : i.fromString(n);
39
+ return Object.values(i).includes(r);
40
+ }
41
+ i.isDefined = e;
42
42
  })(N || (N = {}));
43
43
  Object.freeze(N);
44
44
  const C = N;
@@ -65,33 +65,36 @@ class b {
65
65
  unregister() {
66
66
  }
67
67
  }
68
- class H extends Error {
68
+ class Q extends Error {
69
69
  }
70
- const it = Symbol("ValueChangedAction");
71
- class m extends b {
70
+ const rt = Symbol("ValueChangedAction");
71
+ class v extends b {
72
72
  constructor(s) {
73
73
  super(s);
74
74
  }
75
75
  static get classIdentifier() {
76
- return it;
76
+ return rt;
77
77
  }
78
- execute(s, t, e, i) {
79
- return super.execute(s, t, e, i);
78
+ execute(s, t, e, n) {
79
+ return super.execute(s, t, e, n);
80
80
  }
81
81
  }
82
- class L extends String {
83
- constructor(t, e, i) {
82
+ class T extends String {
83
+ constructor(t, e, n) {
84
84
  super(t);
85
85
  l(this, "plugins");
86
86
  l(this, "options");
87
- this.plugins = i, this.options = e;
87
+ this.plugins = n, this.options = e;
88
88
  }
89
89
  }
90
- function G(n) {
91
- const s = g(n);
90
+ function W(i) {
91
+ const s = g(i);
92
92
  return typeof s == "object" && "componentName" in s;
93
93
  }
94
- class W {
94
+ function U(i) {
95
+ return typeof g(i) == "function";
96
+ }
97
+ class X {
95
98
  get componentName() {
96
99
  return "Comment";
97
100
  }
@@ -105,7 +108,7 @@ class W {
105
108
  return "";
106
109
  }
107
110
  }
108
- class _t extends W {
111
+ class Ct extends X {
109
112
  constructor(s, t = "") {
110
113
  super(), this.text = s, this.classes = t;
111
114
  }
@@ -119,16 +122,20 @@ class _t extends W {
119
122
  return this.classes;
120
123
  }
121
124
  }
122
- class p extends W {
125
+ class p extends X {
123
126
  constructor(t, e = "") {
124
127
  super();
125
128
  l(this, "text");
126
129
  l(this, "textType");
127
- this.classes = e, this.text = t, this.textType = z(() => this.getTextType);
130
+ this.classes = e, this.text = t, this.textType = G(() => this.getTextType);
128
131
  }
129
- get getTextType() {
132
+ get resolvedText() {
130
133
  const t = g(this.text);
131
- return t ? t instanceof L ? "md" : G(t) ? "component" : "string" : "string";
134
+ return U(t) ? t() : t;
135
+ }
136
+ get getTextType() {
137
+ const t = this.resolvedText;
138
+ return t ? t instanceof T ? "md" : W(t) ? "component" : "string" : "string";
132
139
  }
133
140
  get componentName() {
134
141
  switch (g(this.textType)) {
@@ -137,7 +144,7 @@ class p extends W {
137
144
  case "md":
138
145
  return "vue-markdown";
139
146
  case "component":
140
- return g(this.text).componentName;
147
+ return this.resolvedText.componentName;
141
148
  default:
142
149
  return "template";
143
150
  }
@@ -147,11 +154,11 @@ class p extends W {
147
154
  case "string":
148
155
  return {};
149
156
  case "md": {
150
- const t = this.text;
157
+ const t = this.resolvedText;
151
158
  return { source: t.toString(), options: t.options, plugins: t.plugins };
152
159
  }
153
160
  case "component":
154
- return g(this.text).componentProps || {};
161
+ return this.resolvedText.componentProps || {};
155
162
  default:
156
163
  return {};
157
164
  }
@@ -159,9 +166,9 @@ class p extends W {
159
166
  get componentBody() {
160
167
  switch (g(this.textType)) {
161
168
  case "string":
162
- return g(this.text);
169
+ return this.resolvedText;
163
170
  case "component":
164
- return g(this.text).componentVHtml || "";
171
+ return this.resolvedText.componentVHtml || "";
165
172
  default:
166
173
  return "";
167
174
  }
@@ -170,52 +177,61 @@ class p extends W {
170
177
  return this.classes;
171
178
  }
172
179
  }
173
- class Ct extends p {
180
+ class Vt extends p {
174
181
  }
175
- const Vt = Symbol("Validator");
176
- class f extends m {
182
+ const At = Symbol("Validator");
183
+ class f extends v {
177
184
  /**
178
185
  * Creates a new validator
179
186
  * @param validationFn Function that validates the field value and returns errors or null
180
187
  */
181
188
  constructor(t) {
182
- super((i, r, a, o) => {
183
- const c = t(a, o, i) || [], u = (h) => {
189
+ super((n, r, a, o) => {
190
+ const c = t(a, o, n) || [], u = (h) => {
184
191
  var V;
185
192
  h == null || h.forEach(
186
193
  (x) => Object.defineProperty(x, "source", { value: this.source, enumerable: !1, configurable: !1 })
187
194
  );
188
- for (let x = i.errors.length - 1; x >= 0; x--) {
189
- const O = i.errors[x];
190
- if (O.source === this.source) {
191
- const P = (V = h == null ? void 0 : h.findIndex((D) => U(D, O))) != null ? V : -1;
192
- P >= 0 ? h == null || h.splice(P, 1) : i.errors.splice(x, 1);
195
+ for (let x = n.errors.length - 1; x >= 0; x--) {
196
+ const P = n.errors[x];
197
+ if (P.source === this.source) {
198
+ const O = (V = h == null ? void 0 : h.findIndex(($) => k($, P))) != null ? V : -1;
199
+ O >= 0 ? h == null || h.splice(O, 1) : n.errors.splice(x, 1);
193
200
  }
194
201
  }
195
- h && h.length > 0 && i.errors.push(...h), i.validate();
202
+ h && h.length > 0 && n.errors.push(...h), n.validate();
196
203
  };
197
- return c instanceof Promise ? (i.validating = ++i.validatingCount > 0, c.then((h) => u(h)).finally(() => {
198
- i.validatingCount = Math.max(0, i.validatingCount - 1), i.validating = i.validatingCount > 0;
199
- })) : u(c), r(i, a, o);
204
+ return c instanceof Promise ? (n.validating = ++n.validatingCount > 0, c.then((h) => u(h)).finally(() => {
205
+ n.validatingCount = Math.max(0, n.validatingCount - 1), n.validating = n.validatingCount > 0;
206
+ })) : u(c), r(n, a, o);
200
207
  });
201
208
  l(this, "source");
202
209
  this.source = Symbol(this.constructor.name);
203
210
  }
204
211
  static get classIdentifier() {
205
- return Vt;
212
+ return At;
206
213
  }
207
214
  get eager() {
208
215
  return !0;
209
216
  }
217
+ replacePlaceholdersFunction(t, e) {
218
+ return () => {
219
+ let n = g(t);
220
+ for (; U(n); )
221
+ n = g(this.replacePlaceholders(n(), e));
222
+ return n;
223
+ };
224
+ }
210
225
  replacePlaceholders(t, e) {
211
- if (G(t)) return t;
212
- let i = t;
226
+ if (U(t)) return this.replacePlaceholdersFunction(t, e);
227
+ if (W(t)) return t;
228
+ let n = g(t);
213
229
  return Object.keys(e).forEach((r) => {
214
- i = i.replaceAll(`{${r}}`, e[r]);
215
- }), t instanceof L ? new L(i.toString(), t.options, t.plugins) : i;
230
+ n = n.replaceAll(`{${r}}`, e[r]);
231
+ }), t instanceof T ? new T(n.toString(), t.options, t.plugins) : n;
216
232
  }
217
233
  }
218
- class j extends Map {
234
+ class L extends Map {
219
235
  constructor() {
220
236
  super(...arguments);
221
237
  l(this, "eagerActions", /* @__PURE__ */ new Set());
@@ -224,48 +240,48 @@ class j extends Map {
224
240
  register(t) {
225
241
  if (!(t instanceof b)) throw new Error("Invalid action type");
226
242
  this.registeredActions.push(t);
227
- const e = t.classIdentifier, i = this.get(e) || (() => null);
243
+ const e = t.classIdentifier, n = this.get(e) || (() => null);
228
244
  function r(a, ...o) {
229
- return t.execute(a, i, ...o);
245
+ return t.execute(a, n, ...o);
230
246
  }
231
247
  this.set(e, r), t.eager && this.eagerActions.add(t.classIdentifier);
232
248
  }
233
- trigger(t, e, ...i) {
249
+ trigger(t, e, ...n) {
234
250
  const r = t.classIdentifier;
235
- r === it && this.triggerEager(e, ...i);
251
+ r === rt && this.triggerEager(e, ...n);
236
252
  const a = this.get(r);
237
253
  try {
238
- if (a) return a(e, ...i);
254
+ if (a) return a(e, ...n);
239
255
  } catch (o) {
240
- if (!(o instanceof H)) throw o;
256
+ if (!(o instanceof Q)) throw o;
241
257
  }
242
258
  return null;
243
259
  }
244
260
  triggerEager(t, ...e) {
245
- for (const i of this.eagerActions) {
246
- const r = this.get(i);
261
+ for (const n of this.eagerActions) {
262
+ const r = this.get(n);
247
263
  try {
248
264
  r && r(t, ...e);
249
265
  } catch (a) {
250
- if (!(a instanceof H)) throw a;
266
+ if (!(a instanceof Q)) throw a;
251
267
  }
252
268
  }
253
269
  }
254
270
  clone() {
255
- const t = new j();
271
+ const t = new L();
256
272
  return this.registeredActions.forEach((e) => t.register(e)), t;
257
273
  }
258
274
  cloneWithoutValidators() {
259
- const t = new j();
275
+ const t = new L();
260
276
  return this.registeredActions.forEach((e) => {
261
277
  e instanceof f ? e.unregister() : t.register(e);
262
278
  }), t;
263
279
  }
264
280
  }
265
- const At = Symbol("ConditionalStatementAction");
266
- class k extends m {
281
+ const It = Symbol("ConditionalStatementAction");
282
+ class B extends v {
267
283
  constructor(t, e) {
268
- const i = (r, a, o, c) => {
284
+ const n = (r, a, o, c) => {
269
285
  const u = t.evaluate();
270
286
  if (u !== this.lastResult) {
271
287
  for (const h of this.boundFields)
@@ -274,15 +290,15 @@ class k extends m {
274
290
  }
275
291
  return a(r, o, c);
276
292
  };
277
- super(i);
293
+ super(n);
278
294
  l(this, "lastResult");
279
295
  // boundField tracks the fields this action is bound to. so that it may perform the executorFn on them and not on the
280
296
  // ValueChangedAction fields that will call the actionExecutor
281
297
  l(this, "boundFields", /* @__PURE__ */ new Set());
282
- t.collectFields().forEach((r) => r.registerAction(new m(i)));
298
+ t.collectFields().forEach((r) => r.registerAction(new v(n)));
283
299
  }
284
300
  static get classIdentifier() {
285
- return At;
301
+ return It;
286
302
  }
287
303
  get eager() {
288
304
  return !0;
@@ -291,29 +307,29 @@ class k extends m {
291
307
  this.boundFields.add(t);
292
308
  }
293
309
  }
294
- class It extends k {
310
+ class St extends B {
295
311
  constructor(s) {
296
312
  super(s, (t, e) => {
297
313
  t.visibility = e ? C.FULL : C.SUPPRESS;
298
314
  });
299
315
  }
300
316
  }
301
- class St extends k {
317
+ class wt extends B {
302
318
  constructor(s) {
303
319
  super(s, (t, e) => {
304
320
  t.enabled = e;
305
321
  });
306
322
  }
307
323
  }
308
- class wt extends k {
324
+ class Ft extends B {
309
325
  constructor(s, t) {
310
- super(s, (e, i) => {
311
- i && (e.value = t);
326
+ super(s, (e, n) => {
327
+ n && (e.value = t);
312
328
  });
313
329
  }
314
330
  }
315
- var T = /* @__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))(T || {});
316
- ((n) => {
331
+ var j = /* @__PURE__ */ ((i) => (i[i.NOT = 0] = "NOT", i[i.OR = 1] = "OR", i[i.AND = 2] = "AND", i[i.XOR = 3] = "XOR", i[i.NAND = 4] = "NAND", i[i.NOR = 5] = "NOR", i[i.EQUALS = -1] = "EQUALS", i[i.NOT_EQUALS = -2] = "NOT_EQUALS", i[i.GT = -3] = "GT", i[i.LT = -4] = "LT", i[i.GE = -5] = "GE", i[i.LE = -6] = "LE", i[i.IN = -7] = "IN", i[i.NOT_IN = -8] = "NOT_IN", i[i.INCLUDES = -9] = "INCLUDES", i[i.NOT_INCLUDES = -10] = "NOT_INCLUDES", i))(j || {});
332
+ ((i) => {
317
333
  function s(r) {
318
334
  const a = r.toLowerCase();
319
335
  if (a === "not") return 0;
@@ -334,87 +350,87 @@ var T = /* @__PURE__ */ ((n) => (n[n.NOT = 0] = "NOT", n[n.OR = 1] = "OR", n[n.A
334
350
  if (["not_includes", "not-includes", "not includes"].includes(a)) return -10;
335
351
  throw new Error(`Unrecognised operator ${a}`);
336
352
  }
337
- n.fromString = s;
353
+ i.fromString = s;
338
354
  function t(r) {
339
- const a = typeof r == "number" ? r : n.fromString(r);
340
- if (Object.values(n).includes(a)) return a;
355
+ const a = typeof r == "number" ? r : i.fromString(r);
356
+ if (Object.values(i).includes(a)) return a;
341
357
  throw new Error(`Unrecognised operator ${r}`);
342
358
  }
343
- n.fromAny = t;
359
+ i.fromAny = t;
344
360
  function e(r) {
345
- const a = typeof r == "number" ? r : n.fromString(r);
346
- return Object.values(n).includes(a);
361
+ const a = typeof r == "number" ? r : i.fromString(r);
362
+ return Object.values(i).includes(a);
347
363
  }
348
- n.isDefined = e;
349
- function i(r) {
364
+ i.isDefined = e;
365
+ function n(r) {
350
366
  return r >= 0;
351
367
  }
352
- n.isLogicOperator = i;
353
- })(T || (T = {}));
354
- Object.freeze(T);
355
- const d = T, Ft = Symbol("EnabledChangingAction");
356
- class rt extends b {
368
+ i.isLogicOperator = n;
369
+ })(j || (j = {}));
370
+ Object.freeze(j);
371
+ const d = j, Nt = Symbol("EnabledChangingAction");
372
+ class at extends b {
357
373
  constructor(s) {
358
374
  super(s);
359
375
  }
360
376
  static get classIdentifier() {
361
- return Ft;
377
+ return Nt;
362
378
  }
363
- execute(s, t, e, i) {
364
- return super.execute(s, t, e, i);
379
+ execute(s, t, e, n) {
380
+ return super.execute(s, t, e, n);
365
381
  }
366
382
  }
367
- const Nt = Symbol("EnabledChangedAction");
368
- class at extends b {
383
+ const Tt = Symbol("EnabledChangedAction");
384
+ class ot extends b {
369
385
  constructor(s) {
370
386
  super(s);
371
387
  }
372
388
  static get classIdentifier() {
373
- return Nt;
389
+ return Tt;
374
390
  }
375
- execute(s, t, e, i) {
376
- return super.execute(s, t, e, i);
391
+ execute(s, t, e, n) {
392
+ return super.execute(s, t, e, n);
377
393
  }
378
394
  }
379
395
  const Lt = Symbol("ValidChangedAction");
380
- class ot extends b {
396
+ class lt extends b {
381
397
  constructor(s) {
382
398
  super(s);
383
399
  }
384
400
  static get classIdentifier() {
385
401
  return Lt;
386
402
  }
387
- execute(s, t, e, i) {
388
- return super.execute(s, t, e, i);
403
+ execute(s, t, e, n) {
404
+ return super.execute(s, t, e, n);
389
405
  }
390
406
  }
391
407
  const jt = Symbol("VisibilityChangingAction");
392
- class lt extends b {
408
+ class ct extends b {
393
409
  constructor(s) {
394
410
  super(s);
395
411
  }
396
412
  static get classIdentifier() {
397
413
  return jt;
398
414
  }
399
- execute(s, t, e, i) {
400
- return super.execute(s, t, e, i);
415
+ execute(s, t, e, n) {
416
+ return super.execute(s, t, e, n);
401
417
  }
402
418
  }
403
- const Tt = Symbol("VisibilityChangedAction");
404
- class ct extends b {
419
+ const Pt = Symbol("VisibilityChangedAction");
420
+ class ut extends b {
405
421
  constructor(s) {
406
422
  super(s);
407
423
  }
408
424
  static get classIdentifier() {
409
- return Tt;
425
+ return Pt;
410
426
  }
411
- execute(s, t, e, i) {
412
- return super.execute(s, t, e, i);
427
+ execute(s, t, e, n) {
428
+ return super.execute(s, t, e, n);
413
429
  }
414
430
  }
415
431
  class y {
416
432
  constructor() {
417
- l(this, "reactiveValue", z(() => this.value));
433
+ l(this, "reactiveValue", G(() => this.value));
418
434
  // contains original field value as was provided at creation
419
435
  l(this, "validatingCount", 0);
420
436
  l(this, "validating", !1);
@@ -422,7 +438,7 @@ class y {
422
438
  // is current value valid as per FE and BE validators?
423
439
  l(this, "errors", []);
424
440
  // when member of a Group, fieldName specifies the name of this field
425
- l(this, "actions", new j());
441
+ l(this, "actions", new L());
426
442
  // default property handlers
427
443
  l(this, "_visibility", C.FULL);
428
444
  l(this, "_enabled", !0);
@@ -431,22 +447,22 @@ class y {
431
447
  return this._visibility;
432
448
  }
433
449
  set visibility(s) {
434
- const t = this._visibility, e = this.actions.trigger(lt, this, s, t);
450
+ const t = this._visibility, e = this.actions.trigger(ct, this, s, t);
435
451
  if (!C.isDefined(e != null ? e : s)) throw new Error("visibility must be a DisplayMode constant");
436
- this._visibility = C.fromAny(e != null ? e : s), this.actions.trigger(ct, this, this._visibility, t);
452
+ this._visibility = C.fromAny(e != null ? e : s), this.actions.trigger(ut, this, this._visibility, t);
437
453
  }
438
454
  get enabled() {
439
455
  return this._enabled;
440
456
  }
441
457
  set enabled(s) {
442
- const t = this._enabled, e = this.actions.trigger(rt, this, s, t);
443
- if (!bt(e != null ? e : s)) throw new Error("Enabled value must be boolean");
444
- this._enabled = e != null ? e : s, this.actions.trigger(at, this, this._enabled, t);
458
+ const t = this._enabled, e = this.actions.trigger(at, this, s, t);
459
+ if (!vt(e != null ? e : s)) throw new Error("Enabled value must be boolean");
460
+ this._enabled = e != null ? e : s, this.actions.trigger(ot, this, this._enabled, t);
445
461
  }
446
462
  validate(s = !1) {
447
463
  s && this.actions.triggerEager(this, this.value, this.value);
448
464
  const t = this._valid;
449
- this._valid = this.valid, this._valid !== t && this.actions.trigger(ot, this, this.valid, t);
465
+ this._valid = this.valid, this._valid !== t && this.actions.trigger(lt, this, this.valid, t);
450
466
  }
451
467
  get valid() {
452
468
  return this.errors.length === 0;
@@ -455,7 +471,7 @@ class y {
455
471
  return this.value;
456
472
  }
457
473
  get isChanged() {
458
- return !U(this.value, this.originalValue);
474
+ return !k(this.value, this.originalValue);
459
475
  }
460
476
  registerAction(s) {
461
477
  const t = s;
@@ -468,8 +484,8 @@ class y {
468
484
  this.actions = this.actions.cloneWithoutValidators(), this.errors = [], this._valid = !0;
469
485
  }
470
486
  }
471
- function Ot(n, s) {
472
- return n ? !s : s;
487
+ function Ot(i, s) {
488
+ return i ? !s : s;
473
489
  }
474
490
  class F {
475
491
  constructor(s, t, e) {
@@ -485,7 +501,7 @@ class F {
485
501
  return this.operand2 instanceof F ? this.operand2.evaluate() : this.operand2 instanceof y ? g(this.operand2.value) : this.operand2;
486
502
  }
487
503
  evaluate() {
488
- var e, i, r, a;
504
+ var e, n, r, a;
489
505
  const s = this.operand1Value, t = this.operand2Value;
490
506
  switch (this.operator) {
491
507
  // logical operators
@@ -515,7 +531,7 @@ class F {
515
531
  case d.GT:
516
532
  return s > t;
517
533
  case d.IN:
518
- return (i = (e = t == null ? void 0 : t.includes) == null ? void 0 : e.call(t, s)) != null ? i : !1;
534
+ return (n = (e = t == null ? void 0 : t.includes) == null ? void 0 : e.call(t, s)) != null ? n : !1;
519
535
  case d.NOT_IN:
520
536
  return !((a = (r = t == null ? void 0 : t.includes) == null ? void 0 : r.call(t, s)) == null || a);
521
537
  case d.INCLUDES:
@@ -538,57 +554,57 @@ class F {
538
554
  return t(this.operand1), t(this.operand2), s;
539
555
  }
540
556
  }
541
- const Pt = Symbol("ExecuteAction");
542
- class ut extends b {
557
+ const Rt = Symbol("ExecuteAction");
558
+ class ht extends b {
543
559
  constructor(s) {
544
560
  super(s);
545
561
  }
546
562
  static get classIdentifier() {
547
- return Pt;
563
+ return Rt;
548
564
  }
549
565
  execute(s, t, e) {
550
566
  return super.execute(s, t, e);
551
567
  }
552
568
  }
553
- const Rt = Symbol("ListItemAddedAction");
554
- class Q extends b {
569
+ const Ut = Symbol("ListItemAddedAction");
570
+ class z extends b {
555
571
  constructor(s) {
556
572
  super(s);
557
573
  }
558
574
  static get classIdentifier() {
559
- return Rt;
575
+ return Ut;
560
576
  }
561
- execute(s, t, e, i) {
562
- return super.execute(s, t, e, i);
577
+ execute(s, t, e, n) {
578
+ return super.execute(s, t, e, n);
563
579
  }
564
580
  }
565
- const Ut = Symbol("ListItemRemovedAction");
566
- class ht extends b {
581
+ const kt = Symbol("ListItemRemovedAction");
582
+ class dt extends b {
567
583
  constructor(s) {
568
584
  super(s);
569
585
  }
570
586
  static get classIdentifier() {
571
- return Ut;
587
+ return kt;
572
588
  }
573
- execute(s, t, e, i) {
574
- return super.execute(s, t, e, i);
589
+ execute(s, t, e, n) {
590
+ return super.execute(s, t, e, n);
575
591
  }
576
592
  }
577
- const et = Symbol("FieldConstructorGuard");
578
- class B extends y {
593
+ const st = Symbol("FieldConstructorGuard");
594
+ class D extends y {
579
595
  constructor(t) {
580
596
  super();
581
597
  l(this, "_value");
582
598
  l(this, "_touched", !1);
583
- if (t !== et) {
599
+ if (t !== st) {
584
600
  const e = this.constructor.name;
585
601
  throw new TypeError(`Don't use constructor to instantiate ${e}. Use ${e}.create<T>`);
586
602
  }
587
603
  }
588
604
  init(t) {
589
605
  if (t) {
590
- const e = t, { value: i, validators: r, actions: a } = e, o = S(e, ["value", "validators", "actions"]);
591
- [...r || [], ...a || []].forEach((c) => this.registerAction(c)), Object.assign(this, o), this._value = i != null ? i : this.originalValue, this.originalValue === void 0 && (this.originalValue = this._value);
606
+ const e = t, { value: n, validators: r, actions: a } = e, o = S(e, ["value", "validators", "actions"]);
607
+ [...r || [], ...a || []].forEach((c) => this.registerAction(c)), Object.assign(this, o), this._value = n != null ? n : this.originalValue, this.originalValue === void 0 && (this.originalValue = this._value);
592
608
  }
593
609
  this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
594
610
  }
@@ -598,7 +614,7 @@ class B extends y {
598
614
  * @returns Reactive Field instance
599
615
  */
600
616
  static create(t) {
601
- const e = vt(new this(et));
617
+ const e = yt(new this(st));
602
618
  return e.init(t), e;
603
619
  }
604
620
  get value() {
@@ -606,7 +622,7 @@ class B extends y {
606
622
  }
607
623
  set value(t) {
608
624
  const e = this._value;
609
- !this.enabled || e === t || (this._value = t, this.actions.trigger(m, this, this._value, e), this.parent && this.parent.notifyValueChanged(), this.validate());
625
+ !this.enabled || e === t || (this._value = t, this.actions.trigger(v, this, this._value, e), this.parent && this.parent.notifyValueChanged(), this.validate());
610
626
  }
611
627
  get touched() {
612
628
  return this._touched;
@@ -615,9 +631,9 @@ class B extends y {
615
631
  this._touched = t;
616
632
  }
617
633
  clone(t) {
618
- var i, r, a;
634
+ var n, r, a;
619
635
  const e = this.constructor.create(I(A({
620
- value: (i = t == null ? void 0 : t.value) != null ? i : this.value
636
+ value: (n = t == null ? void 0 : t.value) != null ? n : this.value
621
637
  }, t && "originalValue" in t ? { originalValue: t.originalValue } : {}), {
622
638
  enabled: (r = t == null ? void 0 : t.enabled) != null ? r : this.enabled,
623
639
  visibility: (a = t == null ? void 0 : t.visibility) != null ? a : this.visibility
@@ -625,24 +641,24 @@ class B extends y {
625
641
  return e.actions = this.actions.clone(), e.actions.triggerEager(e, e.value, e.originalValue), e;
626
642
  }
627
643
  }
628
- const kt = B.create({ value: "EmptyField" }).registerAction(
629
- new m(() => {
644
+ const Bt = D.create({ value: "EmptyField" }).registerAction(
645
+ new v(() => {
630
646
  console.warn("Working with EmptyField! This should not happen");
631
647
  })
632
648
  );
633
- function q(n, s) {
634
- return (n == null ? void 0 : n.label) == null && (n == null ? void 0 : n.icon) == null ? s : n;
649
+ function M(i, s) {
650
+ return (i == null ? void 0 : i.label) == null && (i == null ? void 0 : i.icon) == null ? s : i;
635
651
  }
636
- class Bt extends B {
652
+ class Dt extends D {
637
653
  constructor(s) {
638
654
  super(s), this._value = { label: void 0, icon: void 0 };
639
655
  }
640
656
  init(s) {
641
657
  if (s) {
642
- const t = s, { value: e, originalValue: i, validators: r, actions: a } = t, o = S(t, ["value", "originalValue", "validators", "actions"]);
658
+ const t = s, { value: e, originalValue: n, validators: r, actions: a } = t, o = S(t, ["value", "originalValue", "validators", "actions"]);
643
659
  [...r || [], ...a || []].forEach((h) => this.registerAction(h)), Object.assign(this, o);
644
- const c = q(e, this._value), u = Object.freeze({ label: i == null ? void 0 : i.label, icon: i == null ? void 0 : i.icon });
645
- this._value = q(c, u), this.originalValue = q(u, c);
660
+ const c = M(e, this._value), u = Object.freeze({ label: n == null ? void 0 : n.label, icon: n == null ? void 0 : n.icon });
661
+ this._value = M(c, u), this.originalValue = M(u, c);
646
662
  }
647
663
  this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
648
664
  }
@@ -662,17 +678,17 @@ class Bt extends B {
662
678
  this.value.label = s;
663
679
  }
664
680
  execute(s) {
665
- this.actions.trigger(ut, this, s);
681
+ this.actions.trigger(ht, this, s);
666
682
  }
667
683
  }
668
- const Dt = /* @__PURE__ */ yt({
684
+ const $t = /* @__PURE__ */ xt({
669
685
  __name: "messages-widget",
670
686
  props: {
671
687
  message: {},
672
688
  classes: { default: "text-error" }
673
689
  },
674
- setup(n) {
675
- const s = n, t = Z("vue-markdown"), e = /* @__PURE__ */ new Set([
690
+ setup(i) {
691
+ const s = i, t = tt("vue-markdown"), e = /* @__PURE__ */ new Set([
676
692
  "div",
677
693
  "span",
678
694
  "p",
@@ -728,7 +744,7 @@ const Dt = /* @__PURE__ */ yt({
728
744
  "dl",
729
745
  "dt",
730
746
  "dd"
731
- ]), i = () => {
747
+ ]), n = () => {
732
748
  if (typeof s.message == "string") return w("span", { class: s.classes }, s.message);
733
749
  const r = [];
734
750
  return s.message.forEach((a) => {
@@ -756,7 +772,7 @@ const Dt = /* @__PURE__ */ yt({
756
772
  default:
757
773
  r.push(
758
774
  w(
759
- e.has(a.componentName.toLowerCase()) ? a.componentName : Z(a.componentName),
775
+ e.has(a.componentName.toLowerCase()) ? a.componentName : tt(a.componentName),
760
776
  I(A({ class: [s.classes, a.extraClasses] }, a.componentBindings), { innerHTML: a.componentBody })
761
777
  )
762
778
  );
@@ -764,7 +780,7 @@ const Dt = /* @__PURE__ */ yt({
764
780
  }
765
781
  }), r;
766
782
  };
767
- return (r, a) => (Et(), xt(i));
783
+ return (r, a) => (_t(), Et(n));
768
784
  }
769
785
  });
770
786
  class E extends y {
@@ -772,11 +788,11 @@ class E extends y {
772
788
  super();
773
789
  l(this, "_fields");
774
790
  l(this, "_value", null);
775
- l(this, "reactiveValue", z(() => this.value));
791
+ l(this, "reactiveValue", G(() => this.value));
776
792
  l(this, "suppressNotifyValueChanged", !1);
777
793
  if (!E.isValidFields(t)) throw new Error("Invalid fields object provided");
778
794
  if (this._fields = {}, Object.entries(t).forEach(([r, a]) => this.addField(r, a)), e) {
779
- const i = e, { value: r, validators: a, actions: o } = i, c = S(i, ["value", "validators", "actions"]);
795
+ const n = e, { value: r, validators: a, actions: o } = n, c = S(n, ["value", "validators", "actions"]);
780
796
  [...a || [], ...o || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), this.value = r != null ? r : this.originalValue;
781
797
  }
782
798
  this.originalValue === void 0 && (this.originalValue = this.value), this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -793,16 +809,16 @@ class E extends y {
793
809
  });
794
810
  }
795
811
  static isValidFields(t) {
796
- function e(i) {
797
- return i instanceof y;
812
+ function e(n) {
813
+ return n instanceof y;
798
814
  }
799
- return typeof t == "object" && t !== null && Object.entries(t).every(([, i]) => e(i));
815
+ return typeof t == "object" && t !== null && Object.entries(t).every(([, n]) => e(n));
800
816
  }
801
817
  static createFromFormData(t) {
802
818
  if (t instanceof y)
803
819
  throw new Error("data is already a Form structure, should be a simple object");
804
820
  return new E(
805
- t == null ? {} : Object.fromEntries(Object.entries(t).map(([e, i]) => [e, B.create({ value: i })]))
821
+ t == null ? {} : Object.fromEntries(Object.entries(t).map(([e, n]) => [e, D.create({ value: n })]))
806
822
  );
807
823
  }
808
824
  field(t) {
@@ -814,16 +830,16 @@ class E extends y {
814
830
  }
815
831
  get value() {
816
832
  const t = {};
817
- return Object.entries(this._fields).forEach(([e, i]) => {
818
- const r = i.value;
819
- (i.enabled || i instanceof E && !M(r)) && (t[e] = r);
820
- }), M(t) ? null : t;
833
+ return Object.entries(this._fields).forEach(([e, n]) => {
834
+ const r = n.value;
835
+ (n.enabled || n instanceof E && !H(r)) && (t[e] = r);
836
+ }), H(t) ? null : t;
821
837
  }
822
838
  set value(t) {
823
839
  this.suppressNotifyValueChanged = !0;
824
840
  try {
825
- Object.entries(this._fields).forEach(([e, i]) => {
826
- (t == null || e in t) && (i.value = t == null ? null : t[e]);
841
+ Object.entries(this._fields).forEach(([e, n]) => {
842
+ (t == null || e in t) && (n.value = t == null ? null : t[e]);
827
843
  });
828
844
  } finally {
829
845
  this.suppressNotifyValueChanged = !1;
@@ -840,16 +856,16 @@ class E extends y {
840
856
  }
841
857
  get fullValue() {
842
858
  const t = {};
843
- return Object.entries(this._fields).forEach(([e, i]) => {
844
- t[e] = i.fullValue;
859
+ return Object.entries(this._fields).forEach(([e, n]) => {
860
+ t[e] = n.fullValue;
845
861
  }), t;
846
862
  }
847
863
  notifyValueChanged() {
848
864
  if (this.suppressNotifyValueChanged) return;
849
865
  const t = this.value;
850
- if (!U(t, this._value)) {
866
+ if (!k(t, this._value)) {
851
867
  const e = this._value;
852
- this._value = t, this.actions.trigger(m, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
868
+ this._value = t, this.actions.trigger(v, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
853
869
  }
854
870
  }
855
871
  get valid() {
@@ -864,23 +880,23 @@ class E extends y {
864
880
  Object.entries(this._fields).forEach(([c, u]) => {
865
881
  e[c] = u.clone();
866
882
  });
867
- const i = new E(e, I(A({
883
+ const n = new E(e, I(A({
868
884
  value: (r = t == null ? void 0 : t.value) != null ? r : this.value
869
885
  }, t && "originalValue" in t ? { originalValue: t.originalValue } : {}), {
870
886
  enabled: (a = t == null ? void 0 : t.enabled) != null ? a : this.enabled,
871
887
  visibility: (o = t == null ? void 0 : t.visibility) != null ? o : this.visibility
872
888
  }));
873
- return i.actions = this.actions.clone(), i.actions.triggerEager(i, i.value, i.originalValue), i;
889
+ return n.actions = this.actions.clone(), n.actions.triggerEager(n, n.value, n.originalValue), n;
874
890
  }
875
891
  }
876
- class X extends y {
892
+ class Y extends y {
877
893
  constructor(t, e) {
878
894
  super();
879
895
  l(this, "_value", null);
880
896
  l(this, "_itemTemplate");
881
897
  l(this, "_previousValue");
882
898
  if (this._itemTemplate = t, e) {
883
- const i = e, { value: r, validators: a, actions: o } = i, c = S(i, ["value", "validators", "actions"]);
899
+ const n = e, { value: r, validators: a, actions: o } = n, c = S(n, ["value", "validators", "actions"]);
884
900
  [...a || [], ...o || []].forEach((u) => this.registerAction(u)), Object.assign(this, c), r && this.setValueInternal(r);
885
901
  }
886
902
  this.originalValue === void 0 && (this.originalValue = this.value), this._previousValue = this.value, this.actions.triggerEager(this, this.value, this.originalValue), this.validate();
@@ -894,12 +910,12 @@ class X extends y {
894
910
  }
895
911
  get value() {
896
912
  var e;
897
- const t = (e = this._value) == null ? void 0 : e.map((i) => i.value);
898
- return M(t) ? null : t;
913
+ const t = (e = this._value) == null ? void 0 : e.map((n) => n.value);
914
+ return H(t) ? null : t;
899
915
  }
900
916
  set value(t) {
901
917
  const e = this.value;
902
- this.setValueInternal(t), this.actions.trigger(m, this, this.value, e), this.parent && this.parent.notifyValueChanged(), this.validate();
918
+ this.setValueInternal(t), this.actions.trigger(v, this, this.value, e), this.parent && this.parent.notifyValueChanged(), this.validate();
903
919
  }
904
920
  get touched() {
905
921
  var t;
@@ -907,13 +923,13 @@ class X extends y {
907
923
  }
908
924
  set touched(t) {
909
925
  var e;
910
- (e = this._value) == null || e.forEach((i) => {
911
- i.touched = t;
926
+ (e = this._value) == null || e.forEach((n) => {
927
+ n.touched = t;
912
928
  });
913
929
  }
914
930
  clone(t) {
915
- var i, r, a, o;
916
- const e = new X((i = this._itemTemplate) == null ? void 0 : i.clone(), I(A({
931
+ var n, r, a, o;
932
+ const e = new Y((n = this._itemTemplate) == null ? void 0 : n.clone(), I(A({
917
933
  value: [...(r = t == null ? void 0 : t.value) != null ? r : this.value]
918
934
  }, t && "originalValue" in t ? { originalValue: t.originalValue } : {}), {
919
935
  enabled: (a = t == null ? void 0 : t.enabled) != null ? a : this.enabled,
@@ -923,74 +939,74 @@ class X extends y {
923
939
  }
924
940
  notifyValueChanged() {
925
941
  const t = this.value;
926
- if (!U(t, this._previousValue)) {
942
+ if (!k(t, this._previousValue)) {
927
943
  const e = this._previousValue;
928
- this._previousValue = t, this.actions.trigger(m, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
944
+ this._previousValue = t, this.actions.trigger(v, this, t, e), this.parent && this.parent.notifyValueChanged(), this.validate();
929
945
  }
930
946
  }
931
947
  get valid() {
932
948
  var t, e;
933
- return super.valid && ((e = (t = this._value) == null ? void 0 : t.every((i) => i.valid)) != null ? e : !0);
949
+ return super.valid && ((e = (t = this._value) == null ? void 0 : t.every((n) => n.valid)) != null ? e : !0);
934
950
  }
935
951
  validate(t = !1) {
936
952
  var e;
937
- t && ((e = this._value) == null || e.forEach((i) => i.validate(!0))), super.validate(t);
953
+ t && ((e = this._value) == null || e.forEach((n) => n.validate(!0))), super.validate(t);
938
954
  }
939
955
  get(t) {
940
956
  return this._value != null ? this._value[t] : void 0;
941
957
  }
942
958
  push(t) {
943
- var e, i;
944
- return this.insert(t, (i = (e = this._value) == null ? void 0 : e.length) != null ? i : 0) + 1;
959
+ var e, n;
960
+ return this.insert(t, (n = (e = this._value) == null ? void 0 : e.length) != null ? n : 0) + 1;
945
961
  }
946
962
  pop() {
947
963
  var t, e;
948
964
  return this.remove(((e = (t = this._value) == null ? void 0 : t.length) != null ? e : 0) - 1);
949
965
  }
950
966
  remove(t) {
951
- var i;
967
+ var n;
952
968
  if (this._value == null || t < 0 || this._value.length <= t) return;
953
- let e = (i = this._value.splice(t, 1)) == null ? void 0 : i[0];
954
- return e && (e = e.clone(), this.actions.trigger(ht, this, e, t), this.notifyValueChanged()), e;
969
+ let e = (n = this._value.splice(t, 1)) == null ? void 0 : n[0];
970
+ return e && (e = e.clone(), this.actions.trigger(dt, this, e, t), this.notifyValueChanged()), e;
955
971
  }
956
972
  insert(t, e) {
957
973
  for (this._value == null && (this._value = []); this._value.length < e; ) {
958
974
  const r = this.processSetValueItem(null), a = this._value.push(r);
959
- this.actions.trigger(Q, this, r, a);
975
+ this.actions.trigger(z, this, r, a);
960
976
  }
961
- const i = this.processSetValueItem(t);
962
- return this._value.splice(e, 0, i), this.actions.trigger(Q, this, i, e), this.notifyValueChanged(), e;
977
+ const n = this.processSetValueItem(t);
978
+ return this._value.splice(e, 0, n), this.actions.trigger(z, this, n, e), this.notifyValueChanged(), e;
963
979
  }
964
980
  clear() {
965
981
  this._value = null, this.notifyValueChanged();
966
982
  }
967
983
  }
968
- const dt = { useMarkdownInValidators: !0 };
969
- function $t() {
970
- return dt;
984
+ const gt = { useMarkdownInValidators: !0 };
985
+ function qt() {
986
+ return gt;
971
987
  }
972
- function qt(n) {
973
- Object.assign(dt, n);
988
+ function Mt(i) {
989
+ Object.assign(gt, i);
974
990
  }
975
- const ie = {
976
- install(n, s) {
977
- s && qt(s);
991
+ const re = {
992
+ install(i, s) {
993
+ s && Mt(s);
978
994
  }
979
995
  };
980
- function v(n) {
981
- return $t().useMarkdownInValidators ? new L(n) : n.replace(/[*_~`]/g, "").replace(/!\[(.*?)\]\(.*?\)/g, "$1").replace(/\[(.*?)\]\((.*?)\)/g, "$1").replace(/#+\s?/g, "").replace(/>\s?/g, "").replace(/(\*|-|\d+\.)\s+/g, "").replace(/`{3}[\s\S]*?`{3}/g, "").replace(/`([^`]+)`/g, "$1").replace(/\n{2,}/g, `
996
+ function m(i) {
997
+ return qt().useMarkdownInValidators ? new T(i) : i.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, `
982
998
  `);
983
999
  }
984
- class Mt extends f {
985
- constructor(t, e, i) {
1000
+ class Ht extends f {
1001
+ constructor(t, e, n) {
986
1002
  let r = !1, a, o;
987
1003
  super((u, h, V) => (a = u, o = h, r || (r = !0, this.otherField.registerAction(
988
- new m((x, O, P, D) => {
989
- O(x, P, D), this.unregistered || this.execute(V, () => null, a, o);
1004
+ new v((x, P, O, $) => {
1005
+ P(x, O, $), this.unregistered || this.execute(V, () => null, a, o);
990
1006
  })
991
1007
  )), this.isValidComparison(g(u), g(this.otherField.value)) ? null : [
992
1008
  new p(
993
- this.replacePlaceholders(i, { newValue: u, oldValue: h, field: V, otherField: this.otherField })
1009
+ this.replacePlaceholders(n, { newValue: u, oldValue: h, field: V, otherField: this.otherField })
994
1010
  )
995
1011
  ]));
996
1012
  l(this, "unregistered", !1);
@@ -1000,186 +1016,188 @@ class Mt extends f {
1000
1016
  this.unregistered = !0;
1001
1017
  }
1002
1018
  }
1003
- class Ht extends f {
1019
+ class Qt extends f {
1004
1020
  constructor(s, t) {
1005
- const e = t || v("Must be one of [**{allowedAsText}**]");
1006
- let i = s.join(", ");
1007
- i.length > 60 && (i = mt(i, {
1021
+ const e = t || m("Must be one of [**{allowedAsText}**]");
1022
+ let n = s.join(", ");
1023
+ n.length > 60 && (n = mt(n, {
1008
1024
  length: 40,
1009
1025
  separator: ", ",
1010
1026
  omission: `... (${s.length} items total)`
1011
1027
  }));
1012
1028
  const r = (a, o, c) => s.includes(g(a)) ? null : [
1013
1029
  new p(
1014
- this.replacePlaceholders(e, { newValue: a, oldValue: o, field: c, allowedValues: s, allowedAsText: i })
1030
+ this.replacePlaceholders(e, { newValue: a, oldValue: o, field: c, allowedValues: s, allowedAsText: n })
1015
1031
  )
1016
1032
  ];
1017
1033
  super(r);
1018
1034
  }
1019
1035
  }
1020
- function Qt(n) {
1021
- return n == null ? 0 : st(n) || _(n) ? n.length : nt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
1036
+ function zt(i) {
1037
+ return i == null ? 0 : nt(i) || _(i) ? i.length : it(i) && Object.getPrototypeOf(i) === Object.prototype ? Object.keys(i).length : String(i).length;
1022
1038
  }
1023
- class zt extends f {
1039
+ class Gt extends f {
1024
1040
  constructor(s) {
1025
- const t = s || v("Please enter a value"), e = (i, r, a) => Qt(g(i)) === 0 ? [new p(this.replacePlaceholders(t, { newValue: i, oldValue: r, field: a }))] : null;
1041
+ const t = s || m("Please enter a value"), e = (n, r, a) => zt(g(n)) === 0 ? [new p(this.replacePlaceholders(t, { newValue: n, oldValue: r, field: a }))] : null;
1026
1042
  super(e);
1027
1043
  }
1028
1044
  }
1029
- class Gt extends f {
1045
+ class Wt extends f {
1030
1046
  constructor(s, t) {
1031
- const e = t || v("Value must be larger or equal to **{minValue}**"), i = (r, a, o) => r < s || r === void 0 ? [
1047
+ const e = t || m("Value must be larger or equal to **{minValue}**"), n = (r, a, o) => r < s || r === void 0 ? [
1032
1048
  new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: o, minValue: s }))
1033
1049
  ] : null;
1034
- super(i);
1050
+ super(n);
1035
1051
  }
1036
1052
  }
1037
- class Wt extends f {
1053
+ class Xt extends f {
1038
1054
  constructor(s, t) {
1039
- const e = t || v("Value must be less than or equal to **{maxValue}**"), i = (r, a, o) => r > s || r === void 0 ? [
1055
+ const e = t || m("Value must be less than or equal to **{maxValue}**"), n = (r, a, o) => r > s || r === void 0 ? [
1040
1056
  new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: o, maxValue: s }))
1041
1057
  ] : null;
1042
- super(i);
1058
+ super(n);
1043
1059
  }
1044
1060
  }
1045
- class Xt extends f {
1061
+ class Yt extends f {
1046
1062
  constructor(s, t, e) {
1047
- const i = e || v("Value must be between **{minValue}** and **{maxValue}**"), r = (a, o, c) => a < s || a > t || a === void 0 ? [
1063
+ const n = e || m("Value must be between **{minValue}** and **{maxValue}**"), r = (a, o, c) => a < s || a > t || a === void 0 ? [
1048
1064
  new p(
1049
- this.replacePlaceholders(i, { newValue: a, oldValue: o, field: c, minValue: s, maxValue: t })
1065
+ this.replacePlaceholders(n, { newValue: a, oldValue: o, field: c, minValue: s, maxValue: t })
1050
1066
  )
1051
1067
  ] : null;
1052
1068
  super(r);
1053
1069
  }
1054
1070
  }
1055
- function Y(n) {
1056
- return n == null ? 0 : st(n) || _(n) ? n.length : nt(n) && Object.getPrototypeOf(n) === Object.prototype ? Object.keys(n).length : String(n).length;
1071
+ function J(i) {
1072
+ return i == null ? 0 : nt(i) || _(i) ? i.length : it(i) && Object.getPrototypeOf(i) === Object.prototype ? Object.keys(i).length : String(i).length;
1057
1073
  }
1058
- class Yt extends f {
1074
+ class Jt extends f {
1059
1075
  constructor(s, t) {
1060
- const e = t || v("Length must be larger or equal to **{minLength}**"), i = (r, a, o) => Y(r) < s ? [
1076
+ const e = t || m("Length must be larger or equal to **{minLength}**"), n = (r, a, o) => J(r) < s ? [
1061
1077
  new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: o, minLength: s }))
1062
1078
  ] : null;
1063
- super(i);
1079
+ super(n);
1064
1080
  }
1065
1081
  }
1066
- class Jt extends f {
1082
+ class Kt extends f {
1067
1083
  constructor(s, t) {
1068
- const e = t || v("Length must be less than or equal to **{maxLength}**"), i = (r, a, o) => Y(r) > s ? [
1084
+ const e = t || m("Length must be less than or equal to **{maxLength}**"), n = (r, a, o) => J(r) > s ? [
1069
1085
  new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: o, maxLength: s }))
1070
1086
  ] : null;
1071
- super(i);
1087
+ super(n);
1072
1088
  }
1073
1089
  }
1074
- class Kt extends f {
1090
+ class Zt extends f {
1075
1091
  constructor(s, t, e) {
1076
- const i = e || v("Length must be between **{minLength}** and **{maxLength}**"), r = (a, o, c) => {
1077
- const u = Y(a);
1092
+ const n = e || m("Length must be between **{minLength}** and **{maxLength}**"), r = (a, o, c) => {
1093
+ const u = J(a);
1078
1094
  return u < s || u > t ? [
1079
1095
  new p(
1080
- this.replacePlaceholders(i, { newValue: a, oldValue: o, field: c, minLength: s, maxLength: t })
1096
+ this.replacePlaceholders(n, { newValue: a, oldValue: o, field: c, minLength: s, maxLength: t })
1081
1097
  )
1082
1098
  ] : null;
1083
1099
  };
1084
1100
  super(r);
1085
1101
  }
1086
1102
  }
1087
- class Zt extends f {
1103
+ class te extends f {
1088
1104
  constructor(s, t) {
1089
- const e = t || v('Value must match pattern "**{pattern}**"'), i = (r, a, o) => s.test(String(g(r))) ? null : [
1105
+ const e = t || m('Value must match pattern "**{pattern}**"'), n = (r, a, o) => s.test(String(g(r))) ? null : [
1090
1106
  new p(this.replacePlaceholders(e, { newValue: r, oldValue: a, field: o, pattern: s }))
1091
1107
  ];
1092
- super(i);
1108
+ super(n);
1093
1109
  }
1094
1110
  }
1095
- const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1111
+ const ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1096
1112
  __proto__: null,
1097
- CompareTo: Mt,
1098
- InAllowedValues: Ht,
1099
- LengthInRange: Kt,
1100
- MaxLength: Jt,
1101
- MaxValue: Wt,
1102
- MinLength: Yt,
1103
- MinValue: Gt,
1104
- Pattern: Zt,
1105
- Required: zt,
1113
+ CompareTo: Ht,
1114
+ InAllowedValues: Qt,
1115
+ LengthInRange: Zt,
1116
+ MaxLength: Kt,
1117
+ MaxValue: Xt,
1118
+ MinLength: Jt,
1119
+ MinValue: Wt,
1120
+ Pattern: te,
1121
+ Required: Gt,
1106
1122
  Validator: f,
1107
- ValueInRange: Xt
1108
- }, Symbol.toStringTag, { value: "Module" })), re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1123
+ ValueInRange: Yt
1124
+ }, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1109
1125
  __proto__: null,
1110
- AbortEventHandlingException: H,
1111
- Action: Bt,
1112
- ActionsMap: j,
1113
- ConditionalEnabledAction: St,
1114
- ConditionalStatementAction: k,
1115
- ConditionalValueAction: wt,
1116
- ConditionalVisibilityAction: It,
1126
+ AbortEventHandlingException: Q,
1127
+ Action: Dt,
1128
+ ActionsMap: L,
1129
+ ConditionalEnabledAction: wt,
1130
+ ConditionalStatementAction: B,
1131
+ ConditionalValueAction: Ft,
1132
+ ConditionalVisibilityAction: St,
1117
1133
  DisplayMode: C,
1118
- EmptyField: kt,
1119
- EnabledChangedAction: at,
1120
- EnabledChangingAction: rt,
1121
- ExecuteAction: ut,
1122
- Field: B,
1134
+ EmptyField: Bt,
1135
+ EnabledChangedAction: ot,
1136
+ EnabledChangingAction: at,
1137
+ ExecuteAction: ht,
1138
+ Field: D,
1123
1139
  FieldActionBase: b,
1124
1140
  FieldBase: y,
1125
1141
  Group: E,
1126
- List: X,
1127
- ListItemAddedAction: Q,
1128
- ListItemRemovedAction: ht,
1129
- MdString: L,
1130
- MessagesWidget: Dt,
1142
+ List: Y,
1143
+ ListItemAddedAction: z,
1144
+ ListItemRemovedAction: dt,
1145
+ MdString: T,
1146
+ MessagesWidget: $t,
1131
1147
  Operator: d,
1132
- RenderableValue: Ct,
1148
+ RenderableValue: Vt,
1133
1149
  Statement: F,
1134
- ValidChangedAction: ot,
1135
- ValidationError: W,
1150
+ ValidChangedAction: lt,
1151
+ ValidationError: X,
1136
1152
  ValidationErrorRenderContent: p,
1137
- ValidationErrorText: _t,
1153
+ ValidationErrorText: Ct,
1138
1154
  Validator: f,
1139
- Validators: te,
1140
- ValueChangedAction: m,
1141
- VisibilityChangedAction: ct,
1142
- VisibilityChangingAction: lt,
1143
- buildErrorMessage: v,
1144
- isSimpleComponentDef: G
1155
+ Validators: ee,
1156
+ ValueChangedAction: v,
1157
+ VisibilityChangedAction: ut,
1158
+ VisibilityChangingAction: ct,
1159
+ buildErrorMessage: m,
1160
+ isCallableFunction: U,
1161
+ isSimpleComponentDef: W
1145
1162
  }, Symbol.toStringTag, { value: "Module" }));
1146
1163
  export {
1147
- H as AbortEventHandlingException,
1148
- Bt as Action,
1149
- j as ActionsMap,
1150
- St as ConditionalEnabledAction,
1151
- k as ConditionalStatementAction,
1152
- wt as ConditionalValueAction,
1153
- It as ConditionalVisibilityAction,
1164
+ Q as AbortEventHandlingException,
1165
+ Dt as Action,
1166
+ L as ActionsMap,
1167
+ wt as ConditionalEnabledAction,
1168
+ B as ConditionalStatementAction,
1169
+ Ft as ConditionalValueAction,
1170
+ St as ConditionalVisibilityAction,
1154
1171
  C as DisplayMode,
1155
- kt as EmptyField,
1156
- at as EnabledChangedAction,
1157
- rt as EnabledChangingAction,
1158
- ut as ExecuteAction,
1159
- B as Field,
1172
+ Bt as EmptyField,
1173
+ ot as EnabledChangedAction,
1174
+ at as EnabledChangingAction,
1175
+ ht as ExecuteAction,
1176
+ D as Field,
1160
1177
  b as FieldActionBase,
1161
1178
  y as FieldBase,
1162
1179
  E as Group,
1163
- X as List,
1164
- Q as ListItemAddedAction,
1165
- ht as ListItemRemovedAction,
1166
- L as MdString,
1167
- Dt as MessagesWidget,
1180
+ Y as List,
1181
+ z as ListItemAddedAction,
1182
+ dt as ListItemRemovedAction,
1183
+ T as MdString,
1184
+ $t as MessagesWidget,
1168
1185
  d as Operator,
1169
- Ct as RenderableValue,
1186
+ Vt as RenderableValue,
1170
1187
  F as Statement,
1171
- ot as ValidChangedAction,
1172
- W as ValidationError,
1188
+ lt as ValidChangedAction,
1189
+ X as ValidationError,
1173
1190
  p as ValidationErrorRenderContent,
1174
- _t as ValidationErrorText,
1191
+ Ct as ValidationErrorText,
1175
1192
  f as Validator,
1176
- te as Validators,
1177
- m as ValueChangedAction,
1178
- ct as VisibilityChangedAction,
1179
- lt as VisibilityChangingAction,
1180
- v as buildErrorMessage,
1181
- re as default,
1182
- ie as forms,
1183
- G as isSimpleComponentDef
1193
+ ee as Validators,
1194
+ v as ValueChangedAction,
1195
+ ut as VisibilityChangedAction,
1196
+ ct as VisibilityChangingAction,
1197
+ m as buildErrorMessage,
1198
+ ae as default,
1199
+ re as forms,
1200
+ U as isCallableFunction,
1201
+ W as isSimpleComponentDef
1184
1202
  };
1185
1203
  //# sourceMappingURL=dynamicforms-vue-forms.js.map