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