@sfxcode/formkit-primevue 1.2.2 → 1.2.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.
- package/dist/formkit-primevue.es.js +953 -987
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as M, getCurrentInstance as st, watch as pe, watchEffect as ee, reactive as _n, onUnmounted as gn, ref as ne, provide as zt, h as we, computed as R, inject as he, onMounted as $n, toRef as wn, onBeforeUnmount as kn, markRaw as Cn, isRef as Sn, createTextVNode as Vn, resolveComponent as F, openBlock as L, createElementBlock as P, createVNode as D, unref as a, toDisplayString as de, createCommentVNode as oe, normalizeStyle as be, normalizeClass as U, createElementVNode as Ut, Fragment as In, renderList as Ln } from "vue";
|
|
2
2
|
const Kt = [
|
|
3
3
|
"__key",
|
|
4
4
|
"__init",
|
|
@@ -7,10 +7,10 @@ const Kt = [
|
|
|
7
7
|
"__index",
|
|
8
8
|
"__prevKey"
|
|
9
9
|
];
|
|
10
|
-
function
|
|
10
|
+
function Ye() {
|
|
11
11
|
return Math.random().toString(36).substring(2, 15);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Pn(e, i) {
|
|
14
14
|
const t = e instanceof Set ? e : new Set(e);
|
|
15
15
|
return i && i.forEach((n) => t.add(n)), [...t];
|
|
16
16
|
}
|
|
@@ -21,7 +21,13 @@ function fe(e, i, t = !0, n = ["__key"]) {
|
|
|
21
21
|
if (e === i)
|
|
22
22
|
return !0;
|
|
23
23
|
if (typeof i == "object" && typeof e == "object") {
|
|
24
|
-
if (e instanceof Map || e instanceof Set
|
|
24
|
+
if (e instanceof Map || e instanceof Set)
|
|
25
|
+
return !1;
|
|
26
|
+
if (e instanceof Date && i instanceof Date)
|
|
27
|
+
return e.getTime() === i.getTime();
|
|
28
|
+
if (e instanceof RegExp && i instanceof RegExp)
|
|
29
|
+
return An(e, i);
|
|
30
|
+
if (e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
|
|
25
31
|
return !1;
|
|
26
32
|
for (const l of n)
|
|
27
33
|
if ((l in e || l in i) && e[l] !== i[l])
|
|
@@ -33,7 +39,10 @@ function fe(e, i, t = !0, n = ["__key"]) {
|
|
|
33
39
|
}
|
|
34
40
|
return !1;
|
|
35
41
|
}
|
|
36
|
-
function
|
|
42
|
+
function An(e, i) {
|
|
43
|
+
return e.source === i.source && e.flags.split("").sort().join("") === i.flags.split("").sort().join("");
|
|
44
|
+
}
|
|
45
|
+
function et(e) {
|
|
37
46
|
const i = typeof e;
|
|
38
47
|
if (i === "number")
|
|
39
48
|
return !1;
|
|
@@ -50,22 +59,22 @@ function kt(e) {
|
|
|
50
59
|
}
|
|
51
60
|
return !1;
|
|
52
61
|
}
|
|
53
|
-
function
|
|
62
|
+
function rt(e) {
|
|
54
63
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
55
64
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
65
|
+
function xe(e) {
|
|
66
|
+
return rt(e) || Array.isArray(e);
|
|
58
67
|
}
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
68
|
+
function ke(e) {
|
|
69
|
+
if (rt(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
|
|
61
70
|
return !1;
|
|
62
71
|
const i = e.constructor;
|
|
63
72
|
if (i === void 0)
|
|
64
73
|
return !0;
|
|
65
74
|
const t = i.prototype;
|
|
66
|
-
return !(
|
|
75
|
+
return !(rt(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
|
|
67
76
|
}
|
|
68
|
-
function
|
|
77
|
+
function Qe(e, i, t = !1, n = !1) {
|
|
69
78
|
if (i === null)
|
|
70
79
|
return null;
|
|
71
80
|
const l = {};
|
|
@@ -79,7 +88,7 @@ function Ye(e, i, t = !1, n = !1) {
|
|
|
79
88
|
}
|
|
80
89
|
if (i[s] === void 0)
|
|
81
90
|
continue;
|
|
82
|
-
|
|
91
|
+
ke(e[s]) && ke(i[s]) ? l[s] = Qe(e[s], i[s], t, n) : l[s] = i[s];
|
|
83
92
|
} else
|
|
84
93
|
l[s] = e[s];
|
|
85
94
|
for (const s in i)
|
|
@@ -95,7 +104,7 @@ function On(e) {
|
|
|
95
104
|
return !1;
|
|
96
105
|
return !0;
|
|
97
106
|
}
|
|
98
|
-
function
|
|
107
|
+
function xn(e) {
|
|
99
108
|
if (!e.length)
|
|
100
109
|
return "";
|
|
101
110
|
let i = "", t = "";
|
|
@@ -111,7 +120,7 @@ function ye(...e) {
|
|
|
111
120
|
return Object.assign(i, u);
|
|
112
121
|
}, {});
|
|
113
122
|
}
|
|
114
|
-
function
|
|
123
|
+
function Mn(e) {
|
|
115
124
|
const i = [];
|
|
116
125
|
let t = "", n = 0, l = "", s = "";
|
|
117
126
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -134,25 +143,25 @@ function St(e, i) {
|
|
|
134
143
|
n.some((s) => s.test(l)) && (t[l] = e[l]);
|
|
135
144
|
}), t;
|
|
136
145
|
}
|
|
137
|
-
function
|
|
146
|
+
function De(e) {
|
|
138
147
|
return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
|
|
139
148
|
}
|
|
140
|
-
function
|
|
149
|
+
function Wt(e) {
|
|
141
150
|
return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
|
|
142
151
|
}
|
|
143
|
-
function
|
|
152
|
+
function En(e, i = Kt) {
|
|
144
153
|
if (e !== null && typeof e == "object") {
|
|
145
154
|
let t;
|
|
146
|
-
if (Array.isArray(e) ? t = [...e] :
|
|
147
|
-
return
|
|
155
|
+
if (Array.isArray(e) ? t = [...e] : ke(e) && (t = { ...e }), t)
|
|
156
|
+
return jn(e, t, i), t;
|
|
148
157
|
}
|
|
149
158
|
return e;
|
|
150
159
|
}
|
|
151
|
-
function
|
|
160
|
+
function Ee(e, i = Kt) {
|
|
152
161
|
if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
|
|
153
162
|
return e;
|
|
154
163
|
let t;
|
|
155
|
-
Array.isArray(e) ? t = e.map((n) => typeof n == "object" ?
|
|
164
|
+
Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Ee(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Ee(e[l], i) : e[l], n), {});
|
|
156
165
|
for (const n of i)
|
|
157
166
|
n in e && Object.defineProperty(t, n, {
|
|
158
167
|
enumerable: !1,
|
|
@@ -161,9 +170,9 @@ function xe(e, i = Kt) {
|
|
|
161
170
|
return t;
|
|
162
171
|
}
|
|
163
172
|
function me(e) {
|
|
164
|
-
return typeof e == "object" ?
|
|
173
|
+
return typeof e == "object" ? Ee(e) : e;
|
|
165
174
|
}
|
|
166
|
-
function
|
|
175
|
+
function Rn(e, i) {
|
|
167
176
|
if (!e || typeof e != "object")
|
|
168
177
|
return null;
|
|
169
178
|
const t = i.split(".");
|
|
@@ -180,7 +189,7 @@ function jn(e, i) {
|
|
|
180
189
|
function Y(e) {
|
|
181
190
|
return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
|
|
182
191
|
}
|
|
183
|
-
function
|
|
192
|
+
function Ce(e) {
|
|
184
193
|
return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
|
|
185
194
|
enumerable: !1,
|
|
186
195
|
value: !0
|
|
@@ -189,7 +198,7 @@ function Me(e) {
|
|
|
189
198
|
function dt(e) {
|
|
190
199
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
|
|
191
200
|
}
|
|
192
|
-
function
|
|
201
|
+
function jn(e, i, t) {
|
|
193
202
|
for (const n of t)
|
|
194
203
|
n in e && Object.defineProperty(i, n, {
|
|
195
204
|
enumerable: !1,
|
|
@@ -197,7 +206,7 @@ function En(e, i, t) {
|
|
|
197
206
|
});
|
|
198
207
|
return i;
|
|
199
208
|
}
|
|
200
|
-
function
|
|
209
|
+
function Fn(e) {
|
|
201
210
|
let i = !1;
|
|
202
211
|
return (...t) => {
|
|
203
212
|
if (!i)
|
|
@@ -216,7 +225,7 @@ function mt() {
|
|
|
216
225
|
s > -1 && e.splice(s, 1);
|
|
217
226
|
}, t;
|
|
218
227
|
}
|
|
219
|
-
function
|
|
228
|
+
function Nt() {
|
|
220
229
|
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
221
230
|
let t;
|
|
222
231
|
const n = (l, s) => {
|
|
@@ -231,7 +240,7 @@ function Wt() {
|
|
|
231
240
|
return n.flush = () => {
|
|
232
241
|
e.clear(), i.clear(), t == null || t.clear();
|
|
233
242
|
}, n.on = (l, s) => {
|
|
234
|
-
const [r, ...o] = l.split("."), u = s.receipt ||
|
|
243
|
+
const [r, ...o] = l.split("."), u = s.receipt || Ye(), p = {
|
|
235
244
|
modifiers: o,
|
|
236
245
|
event: r,
|
|
237
246
|
listener: s,
|
|
@@ -253,21 +262,22 @@ function Wt() {
|
|
|
253
262
|
t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
|
|
254
263
|
}, n;
|
|
255
264
|
}
|
|
256
|
-
function
|
|
265
|
+
function Dn(e, i, t, n, l = !0, s) {
|
|
257
266
|
return i._e(e, {
|
|
258
267
|
payload: n,
|
|
259
268
|
name: t,
|
|
260
269
|
bubble: l,
|
|
261
|
-
origin: e
|
|
270
|
+
origin: e,
|
|
271
|
+
meta: s
|
|
262
272
|
}), e;
|
|
263
273
|
}
|
|
264
274
|
function Tn(e, i, t) {
|
|
265
|
-
return
|
|
275
|
+
return Xe(e.parent) && e.parent._e(e.parent, t), e;
|
|
266
276
|
}
|
|
267
|
-
function
|
|
277
|
+
function Bn(e, i, t, n) {
|
|
268
278
|
return i._e.on(t, n);
|
|
269
279
|
}
|
|
270
|
-
function
|
|
280
|
+
function zn(e, i, t) {
|
|
271
281
|
return i._e.off(t), e;
|
|
272
282
|
}
|
|
273
283
|
const bt = mt();
|
|
@@ -278,16 +288,16 @@ yt((e, i) => {
|
|
|
278
288
|
const t = i(e);
|
|
279
289
|
return console && typeof console.warn == "function" && console.warn(t.message), t;
|
|
280
290
|
});
|
|
281
|
-
function
|
|
291
|
+
function Re(e, i = {}) {
|
|
282
292
|
yt.dispatch({ code: e, data: i });
|
|
283
293
|
}
|
|
284
|
-
function
|
|
294
|
+
function H(e, i = {}) {
|
|
285
295
|
throw Error(bt.dispatch({ code: e, data: i }).message);
|
|
286
296
|
}
|
|
287
297
|
function ue(e, i) {
|
|
288
298
|
const t = {
|
|
289
299
|
blocking: !1,
|
|
290
|
-
key:
|
|
300
|
+
key: Ye(),
|
|
291
301
|
meta: {},
|
|
292
302
|
type: "state",
|
|
293
303
|
visible: !0,
|
|
@@ -297,14 +307,14 @@ function ue(e, i) {
|
|
|
297
307
|
}
|
|
298
308
|
const Vt = {
|
|
299
309
|
apply: qn,
|
|
300
|
-
set:
|
|
301
|
-
remove:
|
|
310
|
+
set: Kn,
|
|
311
|
+
remove: Ht,
|
|
302
312
|
filter: Nn,
|
|
303
|
-
reduce:
|
|
304
|
-
release:
|
|
305
|
-
touch:
|
|
313
|
+
reduce: Hn,
|
|
314
|
+
release: Yn,
|
|
315
|
+
touch: Wn
|
|
306
316
|
};
|
|
307
|
-
function
|
|
317
|
+
function Un(e = !1) {
|
|
308
318
|
const i = {};
|
|
309
319
|
let t, n = e, l = [];
|
|
310
320
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -315,12 +325,12 @@ function zn(e = !1) {
|
|
|
315
325
|
return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r : j(Vt, _) ? Vt[_].bind(null, i, o, t) : Reflect.get(...u);
|
|
316
326
|
},
|
|
317
327
|
set(u, p, _) {
|
|
318
|
-
return p === "_n" ? (t = _, r === "__n" &&
|
|
328
|
+
return p === "_n" ? (t = _, r === "__n" && qt(t, o), !0) : p === "_b" ? (l = _, !0) : p === "buffer" ? (n = _, !0) : p === "_r" ? (r = _, !0) : (H(101, t), !1);
|
|
319
329
|
}
|
|
320
330
|
});
|
|
321
331
|
return o;
|
|
322
332
|
}
|
|
323
|
-
function
|
|
333
|
+
function Kn(e, i, t, n) {
|
|
324
334
|
if (i.buffer)
|
|
325
335
|
return i._b.push([[n]]), i;
|
|
326
336
|
if (e[n.key] !== n) {
|
|
@@ -333,13 +343,13 @@ function Un(e, i, t, n) {
|
|
|
333
343
|
}
|
|
334
344
|
return i;
|
|
335
345
|
}
|
|
336
|
-
function
|
|
346
|
+
function Wn(e, i) {
|
|
337
347
|
for (const t in e) {
|
|
338
348
|
const n = { ...e[t] };
|
|
339
349
|
i.set(n);
|
|
340
350
|
}
|
|
341
351
|
}
|
|
342
|
-
function
|
|
352
|
+
function Ht(e, i, t, n) {
|
|
343
353
|
if (j(e, n)) {
|
|
344
354
|
const l = e[n];
|
|
345
355
|
delete e[n], t.emit("message-removed", l);
|
|
@@ -349,10 +359,10 @@ function qt(e, i, t, n) {
|
|
|
349
359
|
function Nn(e, i, t, n, l) {
|
|
350
360
|
for (const s in e) {
|
|
351
361
|
const r = e[s];
|
|
352
|
-
(!l || r.type === l) && !n(r) &&
|
|
362
|
+
(!l || r.type === l) && !n(r) && Ht(e, i, t, s);
|
|
353
363
|
}
|
|
354
364
|
}
|
|
355
|
-
function
|
|
365
|
+
function Hn(e, i, t, n, l) {
|
|
356
366
|
for (const s in e) {
|
|
357
367
|
const r = e[s];
|
|
358
368
|
l = n(l, r);
|
|
@@ -370,10 +380,10 @@ function qn(e, i, t, n, l) {
|
|
|
370
380
|
} else
|
|
371
381
|
for (const s in n) {
|
|
372
382
|
const r = t.at(s);
|
|
373
|
-
r ? r.store.apply(n[s], l) :
|
|
383
|
+
r ? r.store.apply(n[s], l) : Jn(t, i, s, n[s], l);
|
|
374
384
|
}
|
|
375
385
|
}
|
|
376
|
-
function
|
|
386
|
+
function Zn(e, ...i) {
|
|
377
387
|
const t = `${e.name}-set`, n = (l) => ue({
|
|
378
388
|
key: dt(l),
|
|
379
389
|
type: "error",
|
|
@@ -391,12 +401,12 @@ function Hn(e, ...i) {
|
|
|
391
401
|
}
|
|
392
402
|
});
|
|
393
403
|
}
|
|
394
|
-
function
|
|
404
|
+
function Jn(e, i, t, n, l) {
|
|
395
405
|
var s;
|
|
396
406
|
const r = i._m;
|
|
397
|
-
r.has(t) || r.set(t, []), i._r || (i._r =
|
|
407
|
+
r.has(t) || r.set(t, []), i._r || (i._r = qt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
|
|
398
408
|
}
|
|
399
|
-
function
|
|
409
|
+
function qt(e, i) {
|
|
400
410
|
return e.on("child.deep", ({ payload: t }) => {
|
|
401
411
|
i._m.forEach((n, l) => {
|
|
402
412
|
e.at(l) === t && (n.forEach(([s, r]) => {
|
|
@@ -405,14 +415,14 @@ function Ht(e, i) {
|
|
|
405
415
|
}), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
|
|
406
416
|
});
|
|
407
417
|
}
|
|
408
|
-
function
|
|
418
|
+
function Yn(e, i) {
|
|
409
419
|
i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
|
|
410
420
|
}
|
|
411
|
-
function
|
|
421
|
+
function Qn() {
|
|
412
422
|
const e = {};
|
|
413
423
|
let i;
|
|
414
424
|
return {
|
|
415
|
-
count: (...t) =>
|
|
425
|
+
count: (...t) => Xn(i, e, ...t),
|
|
416
426
|
init(t) {
|
|
417
427
|
i = t, t.on("message-added.deep", It(e, 1)), t.on("message-removed.deep", It(e, -1));
|
|
418
428
|
},
|
|
@@ -426,8 +436,8 @@ function Yn() {
|
|
|
426
436
|
}
|
|
427
437
|
};
|
|
428
438
|
}
|
|
429
|
-
function
|
|
430
|
-
if (n =
|
|
439
|
+
function Xn(e, i, t, n, l = 0) {
|
|
440
|
+
if (n = Gn(n || t), !j(i, t)) {
|
|
431
441
|
const s = {
|
|
432
442
|
condition: n,
|
|
433
443
|
count: 0,
|
|
@@ -444,7 +454,7 @@ function Qn(e, i, t, n, l = 0) {
|
|
|
444
454
|
}
|
|
445
455
|
return Zt(i[t], l).promise;
|
|
446
456
|
}
|
|
447
|
-
function
|
|
457
|
+
function Gn(e) {
|
|
448
458
|
return typeof e == "function" ? e : (i) => i.type === e;
|
|
449
459
|
}
|
|
450
460
|
function Zt(e, i) {
|
|
@@ -470,8 +480,8 @@ function Lt(e, i, t, n = !1) {
|
|
|
470
480
|
while (e);
|
|
471
481
|
}
|
|
472
482
|
}
|
|
473
|
-
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht =
|
|
474
|
-
function
|
|
483
|
+
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = Nt(), ei = [];
|
|
484
|
+
function ti(e) {
|
|
475
485
|
e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(e, {
|
|
476
486
|
payload: e,
|
|
477
487
|
name: e.props.id,
|
|
@@ -479,7 +489,7 @@ function ei(e) {
|
|
|
479
489
|
origin: e
|
|
480
490
|
}));
|
|
481
491
|
}
|
|
482
|
-
function
|
|
492
|
+
function ni(e) {
|
|
483
493
|
if (Te.has(e)) {
|
|
484
494
|
const i = Te.get(e);
|
|
485
495
|
Te.delete(e), vt.delete(i), ht(e, {
|
|
@@ -493,23 +503,23 @@ function ti(e) {
|
|
|
493
503
|
function Jt(e) {
|
|
494
504
|
return vt.get(e);
|
|
495
505
|
}
|
|
496
|
-
function
|
|
497
|
-
|
|
506
|
+
function ii(e, i) {
|
|
507
|
+
ei.push(ht.on(e, i));
|
|
498
508
|
}
|
|
499
|
-
function
|
|
509
|
+
function Pt(e, i, t) {
|
|
500
510
|
let n = !0;
|
|
501
511
|
return i in e.config._t ? n = !1 : e.emit(`config:${i}`, t, !1), i in e.props || (e.emit("prop", { prop: i, value: t }), e.emit(`prop:${i}`, t)), n;
|
|
502
512
|
}
|
|
503
|
-
function
|
|
513
|
+
function li(e) {
|
|
504
514
|
const i = document.getElementById(e);
|
|
505
515
|
if (i instanceof HTMLFormElement) {
|
|
506
516
|
const t = new Event("submit", { cancelable: !0, bubbles: !0 });
|
|
507
517
|
i.dispatchEvent(t);
|
|
508
518
|
return;
|
|
509
519
|
}
|
|
510
|
-
|
|
520
|
+
Re(151, e);
|
|
511
521
|
}
|
|
512
|
-
function
|
|
522
|
+
function ai(e) {
|
|
513
523
|
const i = (t) => {
|
|
514
524
|
for (const n in t.store) {
|
|
515
525
|
const l = t.store[n];
|
|
@@ -518,75 +528,79 @@ function li(e) {
|
|
|
518
528
|
};
|
|
519
529
|
i(e), e.walk(i);
|
|
520
530
|
}
|
|
521
|
-
function
|
|
531
|
+
function si(e, i) {
|
|
522
532
|
const t = typeof e == "string" ? Jt(e) : e;
|
|
523
533
|
if (t) {
|
|
524
|
-
const n = (
|
|
534
|
+
const n = (r) => me(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
|
|
525
535
|
t._e.pause(t);
|
|
526
536
|
const l = me(i);
|
|
527
|
-
return i && !
|
|
537
|
+
return i && !et(i) && (t.props.initial = xe(l) ? Ce(l) : l, t.props._init = t.props.initial), t.input(n(t), !1), t.walk((r) => {
|
|
538
|
+
r.type === "list" && r.sync || r.input(n(r), !1);
|
|
539
|
+
}), t.input(et(l) && l ? l : n(t), !1), t.type !== "input" && i && !et(i) && xe(i) && t.walk((r) => {
|
|
540
|
+
r.props.initial = xe(r.value) ? Ce(r.value) : r.value, r.props._init = t.props.initial;
|
|
541
|
+
}), t._e.play(t), ai(t), t.emit("reset", t), t;
|
|
528
542
|
}
|
|
529
|
-
|
|
543
|
+
Re(152, e);
|
|
530
544
|
}
|
|
531
|
-
const
|
|
545
|
+
const ri = {
|
|
532
546
|
delimiter: ".",
|
|
533
547
|
delay: 0,
|
|
534
548
|
locale: "en",
|
|
535
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
536
|
-
}, Yt = Symbol("index"),
|
|
537
|
-
function
|
|
549
|
+
rootClasses: (e) => ({ [`formkit-${Wt(e)}`]: !0 })
|
|
550
|
+
}, Yt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), Qt = Symbol("inserted");
|
|
551
|
+
function oi(e) {
|
|
538
552
|
return e.type === "list" && Array.isArray(e._value);
|
|
539
553
|
}
|
|
540
|
-
function
|
|
554
|
+
function Xe(e) {
|
|
541
555
|
return e && typeof e == "object" && e.__FKNode__ === !0;
|
|
542
556
|
}
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
_c:
|
|
547
|
-
add:
|
|
548
|
-
addProps:
|
|
549
|
-
address:
|
|
550
|
-
at:
|
|
551
|
-
bubble:
|
|
552
|
-
clearErrors:
|
|
553
|
-
calm:
|
|
554
|
-
config:
|
|
555
|
-
define:
|
|
556
|
-
disturb:
|
|
557
|
-
destroy:
|
|
558
|
-
extend:
|
|
559
|
-
hydrate:
|
|
560
|
-
index:
|
|
561
|
-
input:
|
|
562
|
-
each:
|
|
563
|
-
emit:
|
|
564
|
-
find:
|
|
565
|
-
on:
|
|
566
|
-
off:
|
|
567
|
-
parent:
|
|
568
|
-
plugins:
|
|
569
|
-
remove:
|
|
570
|
-
root:
|
|
571
|
-
reset:
|
|
572
|
-
resetConfig:
|
|
573
|
-
setErrors:
|
|
574
|
-
submit:
|
|
575
|
-
t:
|
|
576
|
-
use:
|
|
577
|
-
name:
|
|
578
|
-
walk:
|
|
557
|
+
const Be = (e, i, t) => {
|
|
558
|
+
H(102, [e, t]);
|
|
559
|
+
}, ui = {
|
|
560
|
+
_c: V(Ai, Be, !1),
|
|
561
|
+
add: V(wi),
|
|
562
|
+
addProps: V($i),
|
|
563
|
+
address: V(xi, Be, !1),
|
|
564
|
+
at: V(Mi),
|
|
565
|
+
bubble: V(Tn),
|
|
566
|
+
clearErrors: V(zi),
|
|
567
|
+
calm: V(hi),
|
|
568
|
+
config: V(!1),
|
|
569
|
+
define: V(gi),
|
|
570
|
+
disturb: V(vi),
|
|
571
|
+
destroy: V(_i),
|
|
572
|
+
extend: V(Wi),
|
|
573
|
+
hydrate: V(bi),
|
|
574
|
+
index: V(Pi, Li, !1),
|
|
575
|
+
input: V(en),
|
|
576
|
+
each: V(Si),
|
|
577
|
+
emit: V(Dn),
|
|
578
|
+
find: V(Ri),
|
|
579
|
+
on: V(Bn),
|
|
580
|
+
off: V(zn),
|
|
581
|
+
parent: V(!1, ki),
|
|
582
|
+
plugins: V(!1),
|
|
583
|
+
remove: V(Ci),
|
|
584
|
+
root: V(Fi, Be, !1),
|
|
585
|
+
reset: V(Bi),
|
|
586
|
+
resetConfig: V(Ii),
|
|
587
|
+
setErrors: V(ln),
|
|
588
|
+
submit: V(Ti),
|
|
589
|
+
t: V(Di),
|
|
590
|
+
use: V(_t),
|
|
591
|
+
name: V(Oi, !1, !1),
|
|
592
|
+
walk: V(Vi)
|
|
579
593
|
};
|
|
580
|
-
function
|
|
581
|
-
return new Map(Object.entries(
|
|
594
|
+
function fi() {
|
|
595
|
+
return new Map(Object.entries(ui));
|
|
582
596
|
}
|
|
583
|
-
function
|
|
597
|
+
function V(e, i, t = !0) {
|
|
584
598
|
return {
|
|
585
599
|
get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
|
|
586
|
-
set: i !== void 0 ? i :
|
|
600
|
+
set: i !== void 0 ? i : Be.bind(null)
|
|
587
601
|
};
|
|
588
602
|
}
|
|
589
|
-
function
|
|
603
|
+
function ci() {
|
|
590
604
|
const e = /* @__PURE__ */ new Map();
|
|
591
605
|
return new Proxy(e, {
|
|
592
606
|
get(i, t) {
|
|
@@ -594,57 +608,57 @@ function fi() {
|
|
|
594
608
|
}
|
|
595
609
|
});
|
|
596
610
|
}
|
|
597
|
-
let Xt = 0,
|
|
598
|
-
function
|
|
611
|
+
let Xt = 0, pi = 0;
|
|
612
|
+
function di(e) {
|
|
599
613
|
var i, t;
|
|
600
614
|
return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Yt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++Xt}`;
|
|
601
615
|
}
|
|
602
616
|
function Gt(e) {
|
|
603
|
-
return e.type === "group" ?
|
|
617
|
+
return e.type === "group" ? Ce(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ce(Array.isArray(e.value) ? e.value : []) : e.value;
|
|
604
618
|
}
|
|
605
619
|
function en(e, i, t, n = !0) {
|
|
606
|
-
return i._value =
|
|
620
|
+
return i._value = mi(e, e.hook.input.dispatch(t)), e.emit("input", i._value), e.isCreated && e.type === "input" && fe(i._value, i.value) ? (e.emit("commitRaw", i.value), i.settled) : (i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Ke, e.props.delay, e, i)) : Ke(e, i), i.settled);
|
|
607
621
|
}
|
|
608
|
-
function
|
|
622
|
+
function mi(e, i) {
|
|
609
623
|
switch (e.type) {
|
|
610
624
|
case "input":
|
|
611
625
|
break;
|
|
612
626
|
case "group":
|
|
613
|
-
(!i || typeof i != "object") &&
|
|
627
|
+
(!i || typeof i != "object") && H(107, [e, i]);
|
|
614
628
|
break;
|
|
615
629
|
case "list":
|
|
616
|
-
Array.isArray(i) ||
|
|
630
|
+
Array.isArray(i) || H(108, [e, i]);
|
|
617
631
|
break;
|
|
618
632
|
}
|
|
619
633
|
return i;
|
|
620
634
|
}
|
|
621
|
-
function
|
|
635
|
+
function Ke(e, i, t = !0, n = !0) {
|
|
622
636
|
i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commitRaw", i.value), e.emit("commit", i.value), t && e.calm();
|
|
623
637
|
}
|
|
624
638
|
function tn(e, { name: i, value: t, from: n }) {
|
|
625
639
|
if (!Object.isFrozen(e._value)) {
|
|
626
|
-
if (
|
|
627
|
-
const l = t ===
|
|
628
|
-
e._value.splice(i, t ===
|
|
640
|
+
if (oi(e)) {
|
|
641
|
+
const l = t === ot ? [] : t === ut && typeof n == "number" ? e._value.splice(n, 1) : [t];
|
|
642
|
+
e._value.splice(i, t === ut || n === Qt ? 0 : 1, ...l);
|
|
629
643
|
return;
|
|
630
644
|
}
|
|
631
|
-
t !==
|
|
645
|
+
t !== ot ? e._value[i] = t : delete e._value[i];
|
|
632
646
|
}
|
|
633
647
|
}
|
|
634
|
-
function
|
|
648
|
+
function bi(e, i) {
|
|
635
649
|
const t = i._value;
|
|
636
|
-
return e.type === "list" && e.sync &&
|
|
650
|
+
return e.type === "list" && e.sync && yi(e, i), i.children.forEach((n) => {
|
|
637
651
|
if (typeof t == "object")
|
|
638
652
|
if (n.name in t) {
|
|
639
|
-
const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ?
|
|
640
|
-
if (!n.isSettled || !
|
|
653
|
+
const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
|
|
654
|
+
if (!n.isSettled || !xe(l) && fe(l, n._value))
|
|
641
655
|
return;
|
|
642
656
|
n.input(l, !1);
|
|
643
657
|
} else
|
|
644
658
|
(e.type !== "list" || typeof n.name == "number") && tn(i, { name: n.name, value: n.value }), t.__init || (n.type === "group" ? n.input({}, !1) : n.type === "list" ? n.input([], !1) : n.input(void 0, !1));
|
|
645
659
|
}), e;
|
|
646
660
|
}
|
|
647
|
-
function
|
|
661
|
+
function yi(e, i) {
|
|
648
662
|
const t = e._value;
|
|
649
663
|
if (!Array.isArray(t))
|
|
650
664
|
return;
|
|
@@ -673,59 +687,59 @@ function bi(e, i) {
|
|
|
673
687
|
n[u] = o, l.delete(o);
|
|
674
688
|
}
|
|
675
689
|
r.forEach((o, u) => {
|
|
676
|
-
n[o] =
|
|
690
|
+
n[o] = Zi({ value: u });
|
|
677
691
|
}), l.size && l.forEach((o) => {
|
|
678
692
|
if (!("__FKP" in o)) {
|
|
679
693
|
const u = o._c.parent;
|
|
680
|
-
if (!u ||
|
|
694
|
+
if (!u || Ji(u))
|
|
681
695
|
return;
|
|
682
696
|
u.ledger.unmerge(o), o._c.parent = null, o.destroy();
|
|
683
697
|
}
|
|
684
698
|
}), i.children = n;
|
|
685
699
|
}
|
|
686
|
-
function
|
|
700
|
+
function vi(e, i) {
|
|
687
701
|
var t;
|
|
688
702
|
return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
|
|
689
703
|
i._resolve = n;
|
|
690
704
|
}), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
|
|
691
705
|
}
|
|
692
|
-
function
|
|
706
|
+
function hi(e, i, t) {
|
|
693
707
|
var n;
|
|
694
708
|
if (t !== void 0 && e.type !== "input")
|
|
695
|
-
return tn(i, t),
|
|
709
|
+
return tn(i, t), Ke(e, i, !0, !1);
|
|
696
710
|
i._d > 0 && i._d--, i._d === 0 && (i.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) === null || n === void 0 || n.calm({ name: e.name, value: i.value })), i._resolve && i._resolve(i.value));
|
|
697
711
|
}
|
|
698
|
-
function
|
|
699
|
-
e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)),
|
|
712
|
+
function _i(e, i) {
|
|
713
|
+
e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), ni(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
|
|
700
714
|
for (const t in i.context)
|
|
701
715
|
delete i.context[t];
|
|
702
716
|
i.plugins.clear(), i.context = null;
|
|
703
717
|
}
|
|
704
|
-
function
|
|
705
|
-
i.type = t.type, i.props.definition =
|
|
718
|
+
function gi(e, i, t) {
|
|
719
|
+
i.type = t.type, i.props.definition = Ee(t), i.value = i._value = Gt({
|
|
706
720
|
type: e.type,
|
|
707
721
|
value: i.value
|
|
708
722
|
}), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), i.props.type = t.forceTypeProp), t.family && (i.props.family = t.family), t.features && t.features.forEach((n) => n(e)), t.props && e.addProps(t.props), e.emit("defined", t);
|
|
709
723
|
}
|
|
710
|
-
function
|
|
724
|
+
function $i(e, i, t) {
|
|
711
725
|
var n;
|
|
712
726
|
if (e.props.attrs) {
|
|
713
727
|
const l = { ...e.props.attrs };
|
|
714
728
|
e.props._emit = !1;
|
|
715
729
|
for (const r in l) {
|
|
716
|
-
const o =
|
|
730
|
+
const o = De(r);
|
|
717
731
|
t.includes(o) && (e.props[o] = l[r], delete l[r]);
|
|
718
732
|
}
|
|
719
733
|
const s = me(i._value);
|
|
720
|
-
e.props.initial = e.type !== "input" ?
|
|
734
|
+
e.props.initial = e.type !== "input" ? Ce(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
|
|
721
735
|
...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
|
|
722
736
|
...t
|
|
723
737
|
]);
|
|
724
738
|
}
|
|
725
739
|
return e.emit("added-props", t), e;
|
|
726
740
|
}
|
|
727
|
-
function
|
|
728
|
-
if (e.type === "input" &&
|
|
741
|
+
function wi(e, i, t, n) {
|
|
742
|
+
if (e.type === "input" && H(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
|
|
729
743
|
if (n !== void 0 && e.type === "list") {
|
|
730
744
|
const l = i.children[n];
|
|
731
745
|
l && "__FKP" in l ? (t._c.uid = l.uid, i.children.splice(n, 1, t)) : i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
|
|
@@ -742,12 +756,12 @@ function $i(e, i, t, n) {
|
|
|
742
756
|
return e.remove(t), t.parent.add(t), e;
|
|
743
757
|
} else
|
|
744
758
|
t.use(e.plugins);
|
|
745
|
-
return
|
|
759
|
+
return Ke(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
|
|
746
760
|
}
|
|
747
|
-
function
|
|
748
|
-
return
|
|
761
|
+
function ki(e, i, t, n) {
|
|
762
|
+
return Xe(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
|
|
749
763
|
}
|
|
750
|
-
function
|
|
764
|
+
function Ci(e, i, t) {
|
|
751
765
|
const n = i.children.indexOf(t);
|
|
752
766
|
if (n !== -1) {
|
|
753
767
|
t.isSettled && e.disturb(), i.children.splice(n, 1);
|
|
@@ -756,15 +770,15 @@ function ki(e, i, t) {
|
|
|
756
770
|
l = Y(s.props.preserve), s = s.parent;
|
|
757
771
|
l ? e.calm() : e.calm({
|
|
758
772
|
name: e.type === "list" ? n : t.name,
|
|
759
|
-
value:
|
|
773
|
+
value: ot
|
|
760
774
|
}), t.parent = null, t.config._rmn = t;
|
|
761
775
|
}
|
|
762
776
|
return e.ledger.unmerge(t), e;
|
|
763
777
|
}
|
|
764
|
-
function
|
|
778
|
+
function Si(e, i, t) {
|
|
765
779
|
i.children.forEach((n) => !("__FKP" in n) && t(n));
|
|
766
780
|
}
|
|
767
|
-
function
|
|
781
|
+
function Vi(e, i, t, n = !1, l = !1) {
|
|
768
782
|
i.children.some((s) => {
|
|
769
783
|
if ("__FKP" in s)
|
|
770
784
|
return !1;
|
|
@@ -772,21 +786,21 @@ function Si(e, i, t, n = !1, l = !1) {
|
|
|
772
786
|
return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
|
|
773
787
|
});
|
|
774
788
|
}
|
|
775
|
-
function
|
|
789
|
+
function Ii(e, i) {
|
|
776
790
|
const t = e.parent || void 0;
|
|
777
791
|
i.config = nn(e.config._t, t), e.walk((n) => n.resetConfig());
|
|
778
792
|
}
|
|
779
793
|
function _t(e, i, t, n = !0, l = !0) {
|
|
780
794
|
return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => _t(e, i, s)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
|
|
781
795
|
}
|
|
782
|
-
function
|
|
783
|
-
if (
|
|
796
|
+
function Li(e, i, t, n) {
|
|
797
|
+
if (Xe(e.parent)) {
|
|
784
798
|
const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
|
|
785
|
-
return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value:
|
|
799
|
+
return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: ut, from: r }), !0);
|
|
786
800
|
}
|
|
787
801
|
return !1;
|
|
788
802
|
}
|
|
789
|
-
function
|
|
803
|
+
function Pi(e) {
|
|
790
804
|
if (e.parent) {
|
|
791
805
|
const i = [...e.parent.children].indexOf(e);
|
|
792
806
|
return i === -1 ? e.parent.children.length : i;
|
|
@@ -800,10 +814,10 @@ function Oi(e, i) {
|
|
|
800
814
|
var t;
|
|
801
815
|
return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Yt ? i.name : e.index;
|
|
802
816
|
}
|
|
803
|
-
function
|
|
817
|
+
function xi(e, i) {
|
|
804
818
|
return i.parent ? i.parent.address.concat([e.name]) : [e.name];
|
|
805
819
|
}
|
|
806
|
-
function
|
|
820
|
+
function Mi(e, i, t) {
|
|
807
821
|
const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
|
|
808
822
|
if (!n.length)
|
|
809
823
|
return;
|
|
@@ -822,12 +836,12 @@ function xi(e, i, t) {
|
|
|
822
836
|
s = e;
|
|
823
837
|
break;
|
|
824
838
|
default:
|
|
825
|
-
s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) ||
|
|
839
|
+
s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || Ei(s, r);
|
|
826
840
|
}
|
|
827
841
|
}
|
|
828
842
|
return s || void 0;
|
|
829
843
|
}
|
|
830
|
-
function
|
|
844
|
+
function Ei(e, i) {
|
|
831
845
|
const t = String(i).match(/^(find)\((.*)\)$/);
|
|
832
846
|
if (t) {
|
|
833
847
|
const [, n, l] = t, s = l.split(",").map((r) => r.trim());
|
|
@@ -839,10 +853,10 @@ function Mi(e, i) {
|
|
|
839
853
|
}
|
|
840
854
|
}
|
|
841
855
|
}
|
|
842
|
-
function
|
|
843
|
-
return
|
|
856
|
+
function Ri(e, i, t, n) {
|
|
857
|
+
return ji(e, t, n);
|
|
844
858
|
}
|
|
845
|
-
function
|
|
859
|
+
function ji(e, i, t = "name") {
|
|
846
860
|
const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
|
|
847
861
|
for (; l.length; ) {
|
|
848
862
|
const s = l.shift();
|
|
@@ -853,7 +867,7 @@ function Ei(e, i, t = "name") {
|
|
|
853
867
|
}
|
|
854
868
|
}
|
|
855
869
|
}
|
|
856
|
-
function
|
|
870
|
+
function Fi(e) {
|
|
857
871
|
let i = e;
|
|
858
872
|
for (; i.parent; )
|
|
859
873
|
i = i.parent;
|
|
@@ -879,7 +893,7 @@ function nn(e = {}, i) {
|
|
|
879
893
|
if (r !== void 0)
|
|
880
894
|
return r;
|
|
881
895
|
}
|
|
882
|
-
return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 :
|
|
896
|
+
return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : ri[l];
|
|
883
897
|
},
|
|
884
898
|
set(...n) {
|
|
885
899
|
const l = n[1], s = n[2];
|
|
@@ -889,13 +903,13 @@ function nn(e = {}, i) {
|
|
|
889
903
|
return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
|
|
890
904
|
if (!fe(e[l], s, !1)) {
|
|
891
905
|
const r = Reflect.set(...n);
|
|
892
|
-
return t && (t.emit(`config:${l}`, s, !1),
|
|
906
|
+
return t && (t.emit(`config:${l}`, s, !1), Pt(t, l, s), t.walk((o) => Pt(o, l, s), !1, !0)), r;
|
|
893
907
|
}
|
|
894
908
|
return !0;
|
|
895
909
|
}
|
|
896
910
|
});
|
|
897
911
|
}
|
|
898
|
-
function
|
|
912
|
+
function Di(e, i, t, n = "ui") {
|
|
899
913
|
const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
|
|
900
914
|
return e.emit("text", s, !1), s.value;
|
|
901
915
|
}
|
|
@@ -904,28 +918,28 @@ function Ti(e) {
|
|
|
904
918
|
do {
|
|
905
919
|
if (e.props.isForm === !0)
|
|
906
920
|
break;
|
|
907
|
-
e.parent ||
|
|
921
|
+
e.parent || H(106, i), e = e.parent;
|
|
908
922
|
} while (e);
|
|
909
|
-
e.props.id &&
|
|
923
|
+
e.props.id && li(e.props.id);
|
|
910
924
|
}
|
|
911
|
-
function
|
|
912
|
-
return
|
|
925
|
+
function Bi(e, i, t) {
|
|
926
|
+
return si(e, t);
|
|
913
927
|
}
|
|
914
928
|
function ln(e, i, t, n) {
|
|
915
929
|
const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
|
|
916
|
-
return
|
|
930
|
+
return Zn(e, s.localErrors, s.childErrors).forEach((r) => {
|
|
917
931
|
e.store.apply(r, (o) => o.meta.source === l);
|
|
918
932
|
}), e;
|
|
919
933
|
}
|
|
920
|
-
function
|
|
934
|
+
function zi(e, i, t = !0, n) {
|
|
921
935
|
return ln(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
|
|
922
936
|
l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
|
|
923
937
|
})), e;
|
|
924
938
|
}
|
|
925
|
-
function zi(e) {
|
|
926
|
-
return j(e.props, "id") || (e.props.id = `input_${ci++}`), e;
|
|
927
|
-
}
|
|
928
939
|
function Ui(e) {
|
|
940
|
+
return j(e.props, "id") || (e.props.id = `input_${pi++}`), e;
|
|
941
|
+
}
|
|
942
|
+
function Ki(e) {
|
|
929
943
|
const i = {
|
|
930
944
|
initial: typeof e == "object" ? me(e) : e
|
|
931
945
|
};
|
|
@@ -955,7 +969,7 @@ function Ui(e) {
|
|
|
955
969
|
}
|
|
956
970
|
});
|
|
957
971
|
}
|
|
958
|
-
function
|
|
972
|
+
function Wi(e, i, t, n) {
|
|
959
973
|
return i.traps.set(t, n), e;
|
|
960
974
|
}
|
|
961
975
|
function Ni(e, i) {
|
|
@@ -967,29 +981,29 @@ function Ni(e, i) {
|
|
|
967
981
|
typeof t.library == "function" && t.library(e);
|
|
968
982
|
}
|
|
969
983
|
}
|
|
970
|
-
function
|
|
984
|
+
function Hi(e) {
|
|
971
985
|
const i = Gt(e), t = nn(e.config || {}, e.parent);
|
|
972
986
|
return {
|
|
973
987
|
_d: 0,
|
|
974
|
-
_e:
|
|
988
|
+
_e: Nt(),
|
|
975
989
|
uid: Symbol(),
|
|
976
990
|
_resolve: !1,
|
|
977
991
|
_tmo: !1,
|
|
978
992
|
_value: i,
|
|
979
|
-
children:
|
|
993
|
+
children: Pn(e.children || []),
|
|
980
994
|
config: t,
|
|
981
|
-
hook:
|
|
995
|
+
hook: ci(),
|
|
982
996
|
isCreated: !1,
|
|
983
997
|
isSettled: !0,
|
|
984
|
-
ledger:
|
|
985
|
-
name:
|
|
998
|
+
ledger: Qn(),
|
|
999
|
+
name: di(e),
|
|
986
1000
|
parent: e.parent || null,
|
|
987
1001
|
plugins: /* @__PURE__ */ new Set(),
|
|
988
|
-
props:
|
|
1002
|
+
props: Ki(i),
|
|
989
1003
|
settled: Promise.resolve(i),
|
|
990
|
-
store:
|
|
1004
|
+
store: Un(!0),
|
|
991
1005
|
sync: e.sync || !1,
|
|
992
|
-
traps:
|
|
1006
|
+
traps: fi(),
|
|
993
1007
|
type: e.type || "input",
|
|
994
1008
|
value: i
|
|
995
1009
|
};
|
|
@@ -1002,9 +1016,9 @@ function qi(e, i) {
|
|
|
1002
1016
|
])), i.plugins)
|
|
1003
1017
|
for (const n of i.plugins)
|
|
1004
1018
|
_t(e, e._c, n, !0, !1);
|
|
1005
|
-
return
|
|
1019
|
+
return Ui(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && H(100, e), en(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && ti(e), e.emit("created", e), e.isCreated = !0, e;
|
|
1006
1020
|
}
|
|
1007
|
-
function
|
|
1021
|
+
function Zi(e) {
|
|
1008
1022
|
var i, t, n, l;
|
|
1009
1023
|
return {
|
|
1010
1024
|
__FKP: !0,
|
|
@@ -1021,11 +1035,11 @@ function Hi(e) {
|
|
|
1021
1035
|
isSettled: !0
|
|
1022
1036
|
};
|
|
1023
1037
|
}
|
|
1024
|
-
function
|
|
1038
|
+
function Ji(e) {
|
|
1025
1039
|
return "__FKP" in e;
|
|
1026
1040
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const i = e || {}, t =
|
|
1041
|
+
function Yi(e) {
|
|
1042
|
+
const i = e || {}, t = Hi(i), n = new Proxy(t, {
|
|
1029
1043
|
get(...l) {
|
|
1030
1044
|
const [, s] = l;
|
|
1031
1045
|
if (s === "__FKNode__")
|
|
@@ -1040,25 +1054,25 @@ function Ji(e) {
|
|
|
1040
1054
|
});
|
|
1041
1055
|
return qi(n, i);
|
|
1042
1056
|
}
|
|
1043
|
-
function
|
|
1057
|
+
function ft(e) {
|
|
1044
1058
|
return typeof e != "string" && j(e, "$el");
|
|
1045
1059
|
}
|
|
1046
|
-
function
|
|
1060
|
+
function ct(e) {
|
|
1047
1061
|
return typeof e != "string" && j(e, "$cmp");
|
|
1048
1062
|
}
|
|
1049
1063
|
function ve(e) {
|
|
1050
1064
|
return !e || typeof e == "string" ? !1 : j(e, "if") && j(e, "then");
|
|
1051
1065
|
}
|
|
1052
|
-
function
|
|
1066
|
+
function Qi(e) {
|
|
1053
1067
|
return typeof e != "string" && "$formkit" in e;
|
|
1054
1068
|
}
|
|
1055
|
-
function
|
|
1069
|
+
function Xi(e) {
|
|
1056
1070
|
if (typeof e == "string")
|
|
1057
1071
|
return {
|
|
1058
1072
|
$el: "text",
|
|
1059
1073
|
children: e
|
|
1060
1074
|
};
|
|
1061
|
-
if (
|
|
1075
|
+
if (Qi(e)) {
|
|
1062
1076
|
const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
|
|
1063
1077
|
return Object.assign({
|
|
1064
1078
|
$cmp: "FormKit",
|
|
@@ -1067,168 +1081,170 @@ function Qi(e) {
|
|
|
1067
1081
|
}
|
|
1068
1082
|
return e;
|
|
1069
1083
|
}
|
|
1070
|
-
function
|
|
1084
|
+
function J(e) {
|
|
1071
1085
|
let i;
|
|
1072
|
-
const t = /* @__PURE__ */ new Set(), n = function(
|
|
1073
|
-
return typeof
|
|
1086
|
+
const t = /* @__PURE__ */ new Set(), n = function(d, m) {
|
|
1087
|
+
return typeof d == "function" ? d(m) : d;
|
|
1074
1088
|
}, l = [
|
|
1075
1089
|
{
|
|
1076
|
-
"&&": (
|
|
1077
|
-
"||": (
|
|
1090
|
+
"&&": (c, d, m) => n(c, m) && n(d, m),
|
|
1091
|
+
"||": (c, d, m) => n(c, m) || n(d, m)
|
|
1078
1092
|
},
|
|
1079
1093
|
{
|
|
1080
|
-
"===": (
|
|
1081
|
-
"!==": (
|
|
1082
|
-
"==": (
|
|
1083
|
-
"!=": (
|
|
1084
|
-
">=": (
|
|
1085
|
-
"<=": (
|
|
1086
|
-
">": (
|
|
1087
|
-
"<": (
|
|
1094
|
+
"===": (c, d, m) => n(c, m) === n(d, m),
|
|
1095
|
+
"!==": (c, d, m) => n(c, m) !== n(d, m),
|
|
1096
|
+
"==": (c, d, m) => n(c, m) == n(d, m),
|
|
1097
|
+
"!=": (c, d, m) => n(c, m) != n(d, m),
|
|
1098
|
+
">=": (c, d, m) => n(c, m) >= n(d, m),
|
|
1099
|
+
"<=": (c, d, m) => n(c, m) <= n(d, m),
|
|
1100
|
+
">": (c, d, m) => n(c, m) > n(d, m),
|
|
1101
|
+
"<": (c, d, m) => n(c, m) < n(d, m)
|
|
1088
1102
|
},
|
|
1089
1103
|
{
|
|
1090
|
-
"+": (
|
|
1091
|
-
"-": (
|
|
1104
|
+
"+": (c, d, m) => n(c, m) + n(d, m),
|
|
1105
|
+
"-": (c, d, m) => n(c, m) - n(d, m)
|
|
1092
1106
|
},
|
|
1093
1107
|
{
|
|
1094
|
-
"*": (
|
|
1095
|
-
"/": (
|
|
1096
|
-
"%": (
|
|
1097
|
-
}
|
|
1098
|
-
], s = l.reduce((
|
|
1099
|
-
function o(
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1102
|
-
}
|
|
1103
|
-
function u(
|
|
1104
|
-
let
|
|
1105
|
-
if (!
|
|
1108
|
+
"*": (c, d, m) => n(c, m) * n(d, m),
|
|
1109
|
+
"/": (c, d, m) => n(c, m) / n(d, m),
|
|
1110
|
+
"%": (c, d, m) => n(c, m) % n(d, m)
|
|
1111
|
+
}
|
|
1112
|
+
], s = l.reduce((c, d) => c.concat(Object.keys(d)), []), r = new Set(s.map((c) => c.charAt(0)));
|
|
1113
|
+
function o(c, d, m, y) {
|
|
1114
|
+
const g = c.filter((v) => v.startsWith(d));
|
|
1115
|
+
return g.length ? g.find((v) => y.length >= m + v.length && y.substring(m, m + v.length) === v ? v : !1) : !1;
|
|
1116
|
+
}
|
|
1117
|
+
function u(c, d, m = 1) {
|
|
1118
|
+
let y = m ? d.substring(c + 1).trim() : d.substring(0, c).trim();
|
|
1119
|
+
if (!y.length)
|
|
1106
1120
|
return -1;
|
|
1107
|
-
if (!
|
|
1108
|
-
const v =
|
|
1109
|
-
|
|
1121
|
+
if (!m) {
|
|
1122
|
+
const v = y.split("").reverse(), w = v.findIndex((f) => r.has(f));
|
|
1123
|
+
y = v.slice(w).join("");
|
|
1110
1124
|
}
|
|
1111
|
-
const
|
|
1125
|
+
const g = y[0];
|
|
1112
1126
|
return l.findIndex((v) => {
|
|
1113
|
-
const
|
|
1114
|
-
return !!o(
|
|
1127
|
+
const w = Object.keys(v);
|
|
1128
|
+
return !!o(w, g, 0, y);
|
|
1115
1129
|
});
|
|
1116
1130
|
}
|
|
1117
|
-
function p(
|
|
1118
|
-
let
|
|
1119
|
-
const
|
|
1120
|
-
let
|
|
1121
|
-
for (let v =
|
|
1122
|
-
const
|
|
1123
|
-
if (
|
|
1124
|
-
|
|
1125
|
-
else if (
|
|
1126
|
-
|
|
1127
|
-
else if (
|
|
1131
|
+
function p(c, d) {
|
|
1132
|
+
let m = "";
|
|
1133
|
+
const y = d.length;
|
|
1134
|
+
let g = 0;
|
|
1135
|
+
for (let v = c; v < y; v++) {
|
|
1136
|
+
const w = d.charAt(v);
|
|
1137
|
+
if (w === "(")
|
|
1138
|
+
g++;
|
|
1139
|
+
else if (w === ")")
|
|
1140
|
+
g--;
|
|
1141
|
+
else if (g === 0 && w === " ")
|
|
1128
1142
|
continue;
|
|
1129
|
-
if (
|
|
1130
|
-
return [
|
|
1131
|
-
|
|
1143
|
+
if (g === 0 && o(s, w, v, d))
|
|
1144
|
+
return [m, v - 1];
|
|
1145
|
+
m += w;
|
|
1132
1146
|
}
|
|
1133
|
-
return [
|
|
1147
|
+
return [m, d.length - 1];
|
|
1134
1148
|
}
|
|
1135
|
-
function _(
|
|
1136
|
-
const
|
|
1137
|
-
let v = 0,
|
|
1138
|
-
const q = (
|
|
1139
|
-
|
|
1149
|
+
function _(c, d = 0) {
|
|
1150
|
+
const m = l[d], y = c.length, g = Object.keys(m);
|
|
1151
|
+
let v = 0, w = !1, f = null, b = "", k = null, I, B = "", C = "", E = "", O = "", W = 0;
|
|
1152
|
+
const q = (x, N) => {
|
|
1153
|
+
x ? E += N : b += N;
|
|
1140
1154
|
};
|
|
1141
|
-
for (let
|
|
1142
|
-
if (
|
|
1143
|
-
v ?
|
|
1155
|
+
for (let x = 0; x < y; x++)
|
|
1156
|
+
if (B = C, C = c.charAt(x), (C === "'" || C === '"') && B !== "\\" && (v === 0 && !w || v && !O)) {
|
|
1157
|
+
v ? O = C : w = C, q(v, C);
|
|
1144
1158
|
continue;
|
|
1145
|
-
} else if (
|
|
1159
|
+
} else if (w && (C !== w || B === "\\") || O && (C !== O || B === "\\")) {
|
|
1146
1160
|
q(v, C);
|
|
1147
1161
|
continue;
|
|
1148
|
-
} else if (
|
|
1149
|
-
|
|
1162
|
+
} else if (w === C) {
|
|
1163
|
+
w = !1, q(v, C);
|
|
1150
1164
|
continue;
|
|
1151
|
-
} else if (
|
|
1152
|
-
|
|
1165
|
+
} else if (O === C) {
|
|
1166
|
+
O = !1, q(v, C);
|
|
1153
1167
|
continue;
|
|
1154
1168
|
} else {
|
|
1155
1169
|
if (C === " ")
|
|
1156
1170
|
continue;
|
|
1157
1171
|
if (C === "(")
|
|
1158
|
-
v === 0 ?
|
|
1172
|
+
v === 0 ? W = x : E += C, v++;
|
|
1159
1173
|
else if (C === ")")
|
|
1160
1174
|
if (v--, v === 0) {
|
|
1161
|
-
const N = typeof
|
|
1162
|
-
let
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1175
|
+
const N = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = N && c.charAt(x + 1) === ".";
|
|
1176
|
+
let re = "";
|
|
1177
|
+
Le && ([re, x] = p(x + 2, c));
|
|
1178
|
+
const Fe = f ? d : u(W, c, 0), Pe = u(x, c);
|
|
1179
|
+
Fe === -1 && Pe === -1 ? (b = A(E, -1, N, re), typeof b == "string" && (b = E)) : f && (Fe >= Pe || Pe === -1) && d === Fe ? (k = f.bind(null, A(E, -1, N, re)), f = null, b = "") : Pe > Fe && d === Pe ? b = A(E, -1, N, re) : b += `(${E})${Le ? `.${re}` : ""}`, E = "";
|
|
1166
1180
|
} else
|
|
1167
|
-
|
|
1168
|
-
else if (v === 0 && (
|
|
1169
|
-
|
|
1181
|
+
E += C;
|
|
1182
|
+
else if (v === 0 && (I = o(g, C, x, c))) {
|
|
1183
|
+
x === 0 && H(103, [I, c]), x += I.length - 1, x === c.length - 1 && H(104, [I, c]), f ? b && (k = f.bind(null, A(b, d)), f = m[I].bind(null, k), b = "") : k ? (f = m[I].bind(null, A(k, d)), k = null) : (f = m[I].bind(null, A(b, d)), b = "");
|
|
1170
1184
|
continue;
|
|
1171
1185
|
} else
|
|
1172
1186
|
q(v, C);
|
|
1173
1187
|
}
|
|
1174
|
-
return
|
|
1175
|
-
}
|
|
1176
|
-
function
|
|
1177
|
-
if (
|
|
1178
|
-
const
|
|
1179
|
-
let v,
|
|
1180
|
-
if (typeof
|
|
1181
|
-
const
|
|
1182
|
-
return (
|
|
1183
|
-
const k =
|
|
1184
|
-
return typeof k != "function" ? (
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1187
|
-
if (
|
|
1188
|
-
const q =
|
|
1189
|
-
|
|
1188
|
+
return b && f && (f = f.bind(null, A(b, d))), f = !f && k ? k : f, !f && b && (f = (x, N) => typeof x == "function" ? x(N) : x, f = f.bind(null, A(b, d))), !f && !b && H(105, c), f;
|
|
1189
|
+
}
|
|
1190
|
+
function A(c, d, m, y) {
|
|
1191
|
+
if (m) {
|
|
1192
|
+
const g = A(m, l.length);
|
|
1193
|
+
let v, w = y ? J(`$${y}`) : !1;
|
|
1194
|
+
if (typeof g == "function") {
|
|
1195
|
+
const f = Mn(String(c)).map((b) => A(b, -1));
|
|
1196
|
+
return (b) => {
|
|
1197
|
+
const k = g(b);
|
|
1198
|
+
return typeof k != "function" ? (Re(150, m), k) : (v = k(...f.map((I) => typeof I == "function" ? I(b) : I)), w && (w = w.provide((I) => {
|
|
1199
|
+
const B = i(I);
|
|
1200
|
+
return I.reduce((E, O) => {
|
|
1201
|
+
if (O === y || (y == null ? void 0 : y.startsWith(`${O}(`))) {
|
|
1202
|
+
const q = Rn(v, O);
|
|
1203
|
+
E[O] = () => q;
|
|
1190
1204
|
} else
|
|
1191
|
-
|
|
1192
|
-
return
|
|
1205
|
+
E[O] = B[O];
|
|
1206
|
+
return E;
|
|
1193
1207
|
}, {});
|
|
1194
|
-
})),
|
|
1208
|
+
})), w ? w() : v);
|
|
1195
1209
|
};
|
|
1196
1210
|
}
|
|
1197
|
-
} else if (typeof
|
|
1198
|
-
if (
|
|
1211
|
+
} else if (typeof c == "string") {
|
|
1212
|
+
if (c === "true")
|
|
1199
1213
|
return !0;
|
|
1200
|
-
if (
|
|
1214
|
+
if (c === "false")
|
|
1201
1215
|
return !1;
|
|
1202
|
-
if (
|
|
1216
|
+
if (c === "undefined")
|
|
1203
1217
|
return;
|
|
1204
|
-
if (On(
|
|
1205
|
-
return
|
|
1206
|
-
if (!isNaN(+
|
|
1207
|
-
return Number(
|
|
1208
|
-
if (
|
|
1209
|
-
return _(
|
|
1210
|
-
if (
|
|
1211
|
-
const
|
|
1212
|
-
return t.add(
|
|
1213
|
-
return
|
|
1218
|
+
if (On(c))
|
|
1219
|
+
return xn(c.substring(1, c.length - 1));
|
|
1220
|
+
if (!isNaN(+c))
|
|
1221
|
+
return Number(c);
|
|
1222
|
+
if (d < l.length - 1)
|
|
1223
|
+
return _(c, d + 1);
|
|
1224
|
+
if (c.startsWith("$")) {
|
|
1225
|
+
const g = c.substring(1);
|
|
1226
|
+
return t.add(g), function(w) {
|
|
1227
|
+
return g in w ? w[g]() : void 0;
|
|
1214
1228
|
};
|
|
1215
1229
|
}
|
|
1216
|
-
return
|
|
1230
|
+
return c;
|
|
1217
1231
|
}
|
|
1218
|
-
return
|
|
1232
|
+
return c;
|
|
1219
1233
|
}
|
|
1220
|
-
const
|
|
1221
|
-
function
|
|
1222
|
-
return i =
|
|
1223
|
-
|
|
1224
|
-
|
|
1234
|
+
const Z = _(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
|
|
1235
|
+
function h(c) {
|
|
1236
|
+
return i = c, Object.assign(
|
|
1237
|
+
// @ts-ignore - @rollup/plugin-typescript doesn't like this
|
|
1238
|
+
Z.bind(null, c($)),
|
|
1239
|
+
{ provide: h }
|
|
1240
|
+
);
|
|
1225
1241
|
}
|
|
1226
|
-
return Object.assign(
|
|
1227
|
-
provide:
|
|
1242
|
+
return Object.assign(Z, {
|
|
1243
|
+
provide: h
|
|
1228
1244
|
});
|
|
1229
1245
|
}
|
|
1230
|
-
const
|
|
1231
|
-
function
|
|
1246
|
+
const At = "0.18.1";
|
|
1247
|
+
function Gi(e) {
|
|
1232
1248
|
let i = 1;
|
|
1233
1249
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
1234
1250
|
label: String(t),
|
|
@@ -1241,7 +1257,7 @@ function Xi(e) {
|
|
|
1241
1257
|
value: t
|
|
1242
1258
|
}));
|
|
1243
1259
|
}
|
|
1244
|
-
function
|
|
1260
|
+
function Se(e, i) {
|
|
1245
1261
|
if (Array.isArray(e)) {
|
|
1246
1262
|
for (const t of e)
|
|
1247
1263
|
if (i == t.value)
|
|
@@ -1249,47 +1265,47 @@ function ke(e, i) {
|
|
|
1249
1265
|
}
|
|
1250
1266
|
return i;
|
|
1251
1267
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 :
|
|
1268
|
+
function Ve(e, i) {
|
|
1269
|
+
return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ? fe(e, i) : !1;
|
|
1254
1270
|
}
|
|
1255
1271
|
function gt(e) {
|
|
1256
|
-
e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value =
|
|
1272
|
+
e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Gi(i.value)), t(i)));
|
|
1257
1273
|
}
|
|
1258
|
-
function
|
|
1274
|
+
function S(e, i, t = !1) {
|
|
1259
1275
|
return (...n) => {
|
|
1260
1276
|
const l = (s) => {
|
|
1261
1277
|
const r = !i || typeof i == "string" ? { $el: i } : i();
|
|
1262
|
-
return (
|
|
1278
|
+
return (ft(r) || ct(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
|
|
1263
1279
|
...n.map((o) => typeof o == "string" ? o : o(s))
|
|
1264
|
-
]),
|
|
1280
|
+
]), ft(r) && (r.attrs = {
|
|
1265
1281
|
class: `$classes.${e}`,
|
|
1266
1282
|
...r.attrs || {}
|
|
1267
1283
|
})), {
|
|
1268
1284
|
if: `$slots.${e}`,
|
|
1269
1285
|
then: `$slots.${e}`,
|
|
1270
|
-
else: e in s ?
|
|
1286
|
+
else: e in s ? Ae(r, s[e]) : r
|
|
1271
1287
|
};
|
|
1272
1288
|
};
|
|
1273
|
-
return l._s = e, t ?
|
|
1289
|
+
return l._s = e, t ? el(l) : l;
|
|
1274
1290
|
};
|
|
1275
1291
|
}
|
|
1276
|
-
function
|
|
1292
|
+
function el(e) {
|
|
1277
1293
|
return (i) => [e(i)];
|
|
1278
1294
|
}
|
|
1279
|
-
function
|
|
1295
|
+
function We(e) {
|
|
1280
1296
|
return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
|
|
1281
1297
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return typeof e == "string" ?
|
|
1298
|
+
function Ae(e, i = {}) {
|
|
1299
|
+
return typeof e == "string" ? We(i) || typeof i == "string" ? i : e : Array.isArray(e) ? We(i) ? i : e : Qe(e, i);
|
|
1284
1300
|
}
|
|
1285
|
-
const ce =
|
|
1301
|
+
const ce = S("outer", () => ({
|
|
1286
1302
|
$el: "div",
|
|
1287
1303
|
attrs: {
|
|
1288
1304
|
key: "$id",
|
|
1289
1305
|
"data-family": "$family || undefined",
|
|
1290
1306
|
"data-type": "$type",
|
|
1291
1307
|
"data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
|
|
1292
|
-
"data-disabled": "$disabled || undefined
|
|
1308
|
+
"data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
|
|
1293
1309
|
"data-empty": "$state.empty || undefined",
|
|
1294
1310
|
"data-complete": "$state.complete || undefined",
|
|
1295
1311
|
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
@@ -1300,16 +1316,16 @@ const ce = w("outer", () => ({
|
|
|
1300
1316
|
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1301
1317
|
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1302
1318
|
}
|
|
1303
|
-
})),
|
|
1319
|
+
})), le = S("inner", "div"), Ie = S("wrapper", "div"), je = S("label", () => ({
|
|
1304
1320
|
$el: "label",
|
|
1305
1321
|
if: "$label",
|
|
1306
1322
|
attrs: {
|
|
1307
1323
|
for: "$id"
|
|
1308
1324
|
}
|
|
1309
|
-
})),
|
|
1325
|
+
})), ae = S("messages", () => ({
|
|
1310
1326
|
$el: "ul",
|
|
1311
1327
|
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
1312
|
-
})),
|
|
1328
|
+
})), se = S("message", () => ({
|
|
1313
1329
|
$el: "li",
|
|
1314
1330
|
for: ["message", "$messages"],
|
|
1315
1331
|
attrs: {
|
|
@@ -1317,13 +1333,13 @@ const ce = w("outer", () => ({
|
|
|
1317
1333
|
id: "$id + '-' + $message.key",
|
|
1318
1334
|
"data-message-type": "$message.type"
|
|
1319
1335
|
}
|
|
1320
|
-
})),
|
|
1336
|
+
})), Q = S("prefix", null), X = S("suffix", null), G = S("help", () => ({
|
|
1321
1337
|
$el: "div",
|
|
1322
1338
|
if: "$help",
|
|
1323
1339
|
attrs: {
|
|
1324
1340
|
id: '$: "help-" + $id'
|
|
1325
1341
|
}
|
|
1326
|
-
})), an =
|
|
1342
|
+
})), an = S("fieldset", () => ({
|
|
1327
1343
|
$el: "fieldset",
|
|
1328
1344
|
attrs: {
|
|
1329
1345
|
id: "$id",
|
|
@@ -1333,12 +1349,12 @@ const ce = w("outer", () => ({
|
|
|
1333
1349
|
else: void 0
|
|
1334
1350
|
}
|
|
1335
1351
|
}
|
|
1336
|
-
})), Ne =
|
|
1352
|
+
})), Ne = S("decorator", () => ({
|
|
1337
1353
|
$el: "span",
|
|
1338
1354
|
attrs: {
|
|
1339
1355
|
"aria-hidden": "true"
|
|
1340
1356
|
}
|
|
1341
|
-
})),
|
|
1357
|
+
})), He = S("input", () => ({
|
|
1342
1358
|
$el: "input",
|
|
1343
1359
|
bind: "$attrs",
|
|
1344
1360
|
attrs: {
|
|
@@ -1364,16 +1380,16 @@ const ce = w("outer", () => ({
|
|
|
1364
1380
|
}
|
|
1365
1381
|
}
|
|
1366
1382
|
}
|
|
1367
|
-
})), sn =
|
|
1383
|
+
})), sn = S("legend", () => ({
|
|
1368
1384
|
$el: "legend",
|
|
1369
1385
|
if: "$label"
|
|
1370
|
-
})), rn =
|
|
1386
|
+
})), rn = S("option", () => ({
|
|
1371
1387
|
$el: "li",
|
|
1372
1388
|
for: ["option", "$options"],
|
|
1373
1389
|
attrs: {
|
|
1374
1390
|
"data-disabled": "$option.attrs.disabled || $disabled"
|
|
1375
1391
|
}
|
|
1376
|
-
})), on =
|
|
1392
|
+
})), on = S("options", "ul"), qe = S("wrapper", () => ({
|
|
1377
1393
|
$el: "label",
|
|
1378
1394
|
attrs: {
|
|
1379
1395
|
"data-disabled": {
|
|
@@ -1387,13 +1403,13 @@ const ce = w("outer", () => ({
|
|
|
1387
1403
|
else: "$fns.isChecked($option.value) || undefined"
|
|
1388
1404
|
}
|
|
1389
1405
|
}
|
|
1390
|
-
})), un =
|
|
1406
|
+
})), un = S("optionHelp", () => ({
|
|
1391
1407
|
$el: "div",
|
|
1392
1408
|
if: "$option.help",
|
|
1393
1409
|
attrs: {
|
|
1394
1410
|
id: '$: "help-" + $option.attrs.id'
|
|
1395
1411
|
}
|
|
1396
|
-
})),
|
|
1412
|
+
})), Ze = S("label", "span"), tl = S("input", () => ({
|
|
1397
1413
|
$el: "button",
|
|
1398
1414
|
bind: "$attrs",
|
|
1399
1415
|
attrs: {
|
|
@@ -1402,7 +1418,7 @@ const ce = w("outer", () => ({
|
|
|
1402
1418
|
name: "$node.name",
|
|
1403
1419
|
id: "$id"
|
|
1404
1420
|
}
|
|
1405
|
-
})),
|
|
1421
|
+
})), nl = S("default", null), il = S("input", () => ({
|
|
1406
1422
|
$el: "input",
|
|
1407
1423
|
bind: "$attrs",
|
|
1408
1424
|
attrs: {
|
|
@@ -1414,10 +1430,10 @@ const ce = w("outer", () => ({
|
|
|
1414
1430
|
id: "$id",
|
|
1415
1431
|
"aria-describedby": "$describedBy"
|
|
1416
1432
|
}
|
|
1417
|
-
})),
|
|
1433
|
+
})), ll = S("fileItem", () => ({
|
|
1418
1434
|
$el: "li",
|
|
1419
1435
|
for: ["file", "$value"]
|
|
1420
|
-
})),
|
|
1436
|
+
})), al = S("fileList", () => ({
|
|
1421
1437
|
$el: "ul",
|
|
1422
1438
|
if: "$value.length",
|
|
1423
1439
|
attrs: {
|
|
@@ -1426,20 +1442,20 @@ const ce = w("outer", () => ({
|
|
|
1426
1442
|
then: "true"
|
|
1427
1443
|
}
|
|
1428
1444
|
}
|
|
1429
|
-
})),
|
|
1445
|
+
})), sl = S("fileName", () => ({
|
|
1430
1446
|
$el: "span",
|
|
1431
1447
|
attrs: {
|
|
1432
1448
|
class: "$classes.fileName"
|
|
1433
1449
|
}
|
|
1434
|
-
})),
|
|
1450
|
+
})), Ot = S("fileRemove", () => ({
|
|
1435
1451
|
$el: "button",
|
|
1436
1452
|
attrs: {
|
|
1437
1453
|
onClick: "$handlers.resetFiles"
|
|
1438
1454
|
}
|
|
1439
|
-
})),
|
|
1455
|
+
})), rl = S("noFiles", () => ({
|
|
1440
1456
|
$el: "span",
|
|
1441
1457
|
if: "$value.length == 0"
|
|
1442
|
-
})),
|
|
1458
|
+
})), ol = S("form", () => ({
|
|
1443
1459
|
$el: "form",
|
|
1444
1460
|
bind: "$attrs",
|
|
1445
1461
|
attrs: {
|
|
@@ -1448,10 +1464,10 @@ const ce = w("outer", () => ({
|
|
|
1448
1464
|
onSubmit: "$handlers.submit",
|
|
1449
1465
|
"data-loading": "$state.loading || undefined"
|
|
1450
1466
|
}
|
|
1451
|
-
})),
|
|
1467
|
+
})), ul = S("actions", () => ({
|
|
1452
1468
|
$el: "div",
|
|
1453
1469
|
if: "$actions"
|
|
1454
|
-
})),
|
|
1470
|
+
})), fl = S("submit", () => ({
|
|
1455
1471
|
$cmp: "FormKit",
|
|
1456
1472
|
bind: "$submitAttrs",
|
|
1457
1473
|
props: {
|
|
@@ -1459,7 +1475,7 @@ const ce = w("outer", () => ({
|
|
|
1459
1475
|
disabled: "$disabled",
|
|
1460
1476
|
label: "$submitLabel"
|
|
1461
1477
|
}
|
|
1462
|
-
})), fn =
|
|
1478
|
+
})), fn = S("input", () => ({
|
|
1463
1479
|
$el: "input",
|
|
1464
1480
|
bind: "$attrs",
|
|
1465
1481
|
attrs: {
|
|
@@ -1472,7 +1488,7 @@ const ce = w("outer", () => ({
|
|
|
1472
1488
|
id: "$id",
|
|
1473
1489
|
"aria-describedby": "$describedBy"
|
|
1474
1490
|
}
|
|
1475
|
-
})), cn =
|
|
1491
|
+
})), cn = S("wrapper", null, !0), cl = S("input", () => ({
|
|
1476
1492
|
$el: "select",
|
|
1477
1493
|
bind: "$attrs",
|
|
1478
1494
|
attrs: {
|
|
@@ -1486,7 +1502,7 @@ const ce = w("outer", () => ({
|
|
|
1486
1502
|
onBlur: "$handlers.blur",
|
|
1487
1503
|
"aria-describedby": "$describedBy"
|
|
1488
1504
|
}
|
|
1489
|
-
})),
|
|
1505
|
+
})), pl = S("option", () => ({
|
|
1490
1506
|
$el: "option",
|
|
1491
1507
|
for: ["option", "$options"],
|
|
1492
1508
|
bind: "$option.attrs",
|
|
@@ -1495,12 +1511,12 @@ const ce = w("outer", () => ({
|
|
|
1495
1511
|
value: "$option.value",
|
|
1496
1512
|
selected: "$fns.isSelected($option)"
|
|
1497
1513
|
}
|
|
1498
|
-
})),
|
|
1514
|
+
})), dl = () => ({
|
|
1499
1515
|
$el: null,
|
|
1500
1516
|
if: "$options.length",
|
|
1501
1517
|
for: ["option", "$options"],
|
|
1502
1518
|
children: "$slots.option"
|
|
1503
|
-
}),
|
|
1519
|
+
}), ml = S("input", () => ({
|
|
1504
1520
|
$el: "textarea",
|
|
1505
1521
|
bind: "$attrs",
|
|
1506
1522
|
attrs: {
|
|
@@ -1513,13 +1529,13 @@ const ce = w("outer", () => ({
|
|
|
1513
1529
|
"aria-describedby": "$describedBy"
|
|
1514
1530
|
},
|
|
1515
1531
|
children: "$initialValue"
|
|
1516
|
-
})), z = (e, i) =>
|
|
1532
|
+
})), z = (e, i) => S(`${e}Icon`, () => {
|
|
1517
1533
|
const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
|
|
1518
1534
|
return {
|
|
1519
1535
|
if: `$${e}Icon && $${t}`,
|
|
1520
1536
|
$el: `${i || "span"}`,
|
|
1521
1537
|
attrs: {
|
|
1522
|
-
class: `$classes.${e}Icon + "
|
|
1538
|
+
class: `$classes.${e}Icon + " " + $classes.icon`,
|
|
1523
1539
|
innerHTML: `$${t}`,
|
|
1524
1540
|
onClick: `$handlers.iconClick(${e})`,
|
|
1525
1541
|
for: {
|
|
@@ -1533,7 +1549,7 @@ function pn(e) {
|
|
|
1533
1549
|
return function(i, t) {
|
|
1534
1550
|
return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
|
|
1535
1551
|
var l;
|
|
1536
|
-
return !((l = n.attrs) === null || l === void 0) && l.id ? n :
|
|
1552
|
+
return !((l = n.attrs) === null || l === void 0) && l.id ? n : Qe(n, {
|
|
1537
1553
|
attrs: {
|
|
1538
1554
|
id: `${e.name}-option-${dt(String(n.value))}`
|
|
1539
1555
|
}
|
|
@@ -1543,31 +1559,31 @@ function pn(e) {
|
|
|
1543
1559
|
}))), t(i);
|
|
1544
1560
|
};
|
|
1545
1561
|
}
|
|
1546
|
-
function
|
|
1562
|
+
function bl(e, i) {
|
|
1547
1563
|
const t = i.target;
|
|
1548
1564
|
if (t instanceof HTMLInputElement) {
|
|
1549
|
-
const n = Array.isArray(e.props.options) ?
|
|
1550
|
-
Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) =>
|
|
1565
|
+
const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
|
|
1566
|
+
Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => Ve(n, l)) ? e.input(e._value.filter((l) => !Ve(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
|
|
1551
1567
|
}
|
|
1552
1568
|
}
|
|
1553
|
-
function
|
|
1569
|
+
function yl(e, i) {
|
|
1554
1570
|
var t, n;
|
|
1555
|
-
return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) =>
|
|
1571
|
+
return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) => Ve(Se(e.props.options, i), l)) : !1;
|
|
1556
1572
|
}
|
|
1557
|
-
function
|
|
1573
|
+
function vl(e) {
|
|
1558
1574
|
e.on("created", () => {
|
|
1559
1575
|
var i, t;
|
|
1560
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1576
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = bl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = yl.bind(null, e)), j(e.props, "onValue") || (e.props.onValue = !0), j(e.props, "offValue") || (e.props.offValue = !1);
|
|
1561
1577
|
}), e.hook.prop(pn(e));
|
|
1562
1578
|
}
|
|
1563
|
-
function
|
|
1579
|
+
function $t(e) {
|
|
1564
1580
|
e.on("created", () => {
|
|
1565
|
-
e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled);
|
|
1581
|
+
"disabled" in e.props && (e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled));
|
|
1566
1582
|
}), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Y(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
|
|
1567
1583
|
e.config.disabled = Y(i);
|
|
1568
1584
|
});
|
|
1569
1585
|
}
|
|
1570
|
-
function
|
|
1586
|
+
function ze(e, i) {
|
|
1571
1587
|
return (t) => {
|
|
1572
1588
|
t.store.set(ue({
|
|
1573
1589
|
key: e,
|
|
@@ -1580,22 +1596,22 @@ function Be(e, i) {
|
|
|
1580
1596
|
}));
|
|
1581
1597
|
};
|
|
1582
1598
|
}
|
|
1583
|
-
const
|
|
1599
|
+
const tt = typeof window < "u";
|
|
1584
1600
|
function dn(e) {
|
|
1585
1601
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
1586
1602
|
}
|
|
1587
1603
|
function xt(e, i) {
|
|
1588
1604
|
i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && dn(i);
|
|
1589
1605
|
}
|
|
1590
|
-
function
|
|
1591
|
-
|
|
1592
|
-
if (e.props.id &&
|
|
1606
|
+
function hl(e) {
|
|
1607
|
+
ze("noFiles", "Select file")(e), ze("removeAll", "Remove all")(e), ze("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", xt.bind(null, "dragover")), window.addEventListener("drop", xt.bind(null, "drop")), window.addEventListener("dragleave", dn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
|
|
1608
|
+
if (e.props.id && tt) {
|
|
1593
1609
|
const i = document.getElementById(e.props.id);
|
|
1594
1610
|
i && (i.value = "");
|
|
1595
1611
|
}
|
|
1596
1612
|
}), e.on("created", () => {
|
|
1597
1613
|
Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
|
|
1598
|
-
if (i.preventDefault(), e.input([]), e.props.id &&
|
|
1614
|
+
if (i.preventDefault(), e.input([]), e.props.id && tt) {
|
|
1599
1615
|
const t = document.getElementById(e.props.id);
|
|
1600
1616
|
t && (t.value = "");
|
|
1601
1617
|
}
|
|
@@ -1618,7 +1634,7 @@ const Mt = ue({
|
|
|
1618
1634
|
value: !0,
|
|
1619
1635
|
visible: !1
|
|
1620
1636
|
});
|
|
1621
|
-
async function
|
|
1637
|
+
async function _l(e, i) {
|
|
1622
1638
|
const t = Math.random();
|
|
1623
1639
|
if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Mt), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
|
|
1624
1640
|
return;
|
|
@@ -1640,7 +1656,7 @@ async function hl(e, i) {
|
|
|
1640
1656
|
value: e.props.incompleteMessage || "Form incomplete."
|
|
1641
1657
|
}));
|
|
1642
1658
|
else if (typeof e.props.onSubmit == "function") {
|
|
1643
|
-
const l = e.props.onSubmit(e.hook.submit.dispatch(
|
|
1659
|
+
const l = e.props.onSubmit(e.hook.submit.dispatch(Ee(e.value)), e);
|
|
1644
1660
|
if (l instanceof Promise) {
|
|
1645
1661
|
const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
|
|
1646
1662
|
s && (e.props.disabled = !0), e.store.set(Mt), await l, s && (e.props.disabled = !1), e.store.remove("loading");
|
|
@@ -1648,53 +1664,53 @@ async function hl(e, i) {
|
|
|
1648
1664
|
} else
|
|
1649
1665
|
i.target instanceof HTMLFormElement && i.target.submit();
|
|
1650
1666
|
}
|
|
1651
|
-
function
|
|
1667
|
+
function gl(e) {
|
|
1652
1668
|
e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
|
|
1653
1669
|
var i;
|
|
1654
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit =
|
|
1670
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = _l.bind(null, e)), j(e.props, "actions") || (e.props.actions = !0);
|
|
1655
1671
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
1656
1672
|
}
|
|
1657
|
-
function
|
|
1673
|
+
function $l(e) {
|
|
1658
1674
|
e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
|
|
1659
1675
|
}
|
|
1660
|
-
function
|
|
1676
|
+
function wl(e) {
|
|
1661
1677
|
e.on("created", () => {
|
|
1662
1678
|
e.context && (e.context.initialValue = e.value || "");
|
|
1663
1679
|
});
|
|
1664
1680
|
}
|
|
1665
|
-
function wl(e, i) {
|
|
1666
|
-
i.target instanceof HTMLInputElement && e.input(ke(e.props.options, i.target.value));
|
|
1667
|
-
}
|
|
1668
1681
|
function kl(e, i) {
|
|
1682
|
+
i.target instanceof HTMLInputElement && e.input(Se(e.props.options, i.target.value));
|
|
1683
|
+
}
|
|
1684
|
+
function Cl(e, i) {
|
|
1669
1685
|
var t, n;
|
|
1670
|
-
return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value,
|
|
1686
|
+
return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Ve(Se(e.props.options, i), e._value);
|
|
1671
1687
|
}
|
|
1672
|
-
function
|
|
1688
|
+
function Sl(e) {
|
|
1673
1689
|
e.on("created", () => {
|
|
1674
1690
|
var i, t;
|
|
1675
|
-
Array.isArray(e.props.options) ||
|
|
1691
|
+
Array.isArray(e.props.options) || Re(350, {
|
|
1676
1692
|
node: e,
|
|
1677
1693
|
inputType: "radio"
|
|
1678
|
-
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1694
|
+
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = kl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = Cl.bind(null, e));
|
|
1679
1695
|
}), e.hook.prop(pn(e));
|
|
1680
1696
|
}
|
|
1681
|
-
function
|
|
1697
|
+
function Vl(e, i) {
|
|
1682
1698
|
e.context && e.context.value;
|
|
1683
1699
|
const t = "__original" in i ? i.__original : i.value;
|
|
1684
1700
|
function n() {
|
|
1685
1701
|
return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
|
|
1686
1702
|
}
|
|
1687
|
-
return Array.isArray(e._value) ? e._value.some((l) =>
|
|
1703
|
+
return Array.isArray(e._value) ? e._value.some((l) => Ve(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : Ve(t, e._value);
|
|
1688
1704
|
}
|
|
1689
|
-
async function
|
|
1705
|
+
async function Il(e, i) {
|
|
1690
1706
|
var t;
|
|
1691
1707
|
typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && (await new Promise((n) => setTimeout(n, 0)), await e.settled, e.props.attrs.onChange(i));
|
|
1692
1708
|
}
|
|
1693
|
-
function
|
|
1694
|
-
const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) =>
|
|
1709
|
+
function Ll(e, i) {
|
|
1710
|
+
const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => Se(e.props.options, l.value)) : Se(e.props.options, t.value);
|
|
1695
1711
|
e.input(n);
|
|
1696
1712
|
}
|
|
1697
|
-
function
|
|
1713
|
+
function Et(e, i) {
|
|
1698
1714
|
return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
|
|
1699
1715
|
{
|
|
1700
1716
|
label: i,
|
|
@@ -1708,17 +1724,17 @@ function jt(e, i) {
|
|
|
1708
1724
|
...e
|
|
1709
1725
|
];
|
|
1710
1726
|
}
|
|
1711
|
-
function
|
|
1727
|
+
function Pl(e) {
|
|
1712
1728
|
e.on("created", () => {
|
|
1713
1729
|
var i, t, n;
|
|
1714
1730
|
const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
|
|
1715
|
-
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r =
|
|
1731
|
+
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Et(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Et(e.props.options, e.props.placeholder)), l ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
1716
1732
|
value: e._value
|
|
1717
1733
|
}), e.on("input", ({ payload: s }) => {
|
|
1718
1734
|
e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
1719
1735
|
value: s
|
|
1720
1736
|
});
|
|
1721
|
-
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput =
|
|
1737
|
+
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Ll.bind(null, e), e.context.handlers.onChange = Il.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Vl.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
|
|
1722
1738
|
if (!Array.isArray(e.props.options))
|
|
1723
1739
|
return !1;
|
|
1724
1740
|
const o = e.props.options.some((u) => {
|
|
@@ -1736,98 +1752,128 @@ function Ll(e) {
|
|
|
1736
1752
|
}
|
|
1737
1753
|
function _e(e, i) {
|
|
1738
1754
|
return (t) => {
|
|
1739
|
-
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
|
|
1755
|
+
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
|
|
1740
1756
|
};
|
|
1741
1757
|
}
|
|
1742
|
-
function
|
|
1758
|
+
function pt(e) {
|
|
1743
1759
|
return !!(ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
|
|
1744
1760
|
}
|
|
1745
1761
|
function Al(e) {
|
|
1746
|
-
return ce(
|
|
1762
|
+
return ce(Ie(je("$label"), le(Q(), e(), X())), G("$help"), ae(se("$message.value")));
|
|
1747
1763
|
}
|
|
1748
|
-
function
|
|
1764
|
+
function ie(e, i, t) {
|
|
1749
1765
|
const n = (l) => {
|
|
1750
1766
|
const s = i(l);
|
|
1751
|
-
if (t ||
|
|
1767
|
+
if (t || We(s) && "if" in s || pt(s)) {
|
|
1752
1768
|
const r = {
|
|
1753
1769
|
if: e,
|
|
1754
1770
|
then: s
|
|
1755
1771
|
};
|
|
1756
1772
|
return t && (r.else = t(l)), r;
|
|
1757
1773
|
} else
|
|
1758
|
-
|
|
1774
|
+
pt(s) ? Object.assign(s.else, { if: e }) : We(s) && Object.assign(s, { if: e });
|
|
1759
1775
|
return s;
|
|
1760
1776
|
};
|
|
1761
|
-
return n._s =
|
|
1777
|
+
return n._s = Ye(), n;
|
|
1762
1778
|
}
|
|
1763
|
-
function
|
|
1779
|
+
function ge(e, i) {
|
|
1764
1780
|
const t = (n) => {
|
|
1765
1781
|
const l = e({});
|
|
1766
|
-
return
|
|
1782
|
+
return pt(l) ? (Array.isArray(l.else) || (l.else = Ae(Ae(l.else, i), e._s ? n[e._s] : {})), l) : Ae(Ae(l, i), e._s ? n[e._s] : {});
|
|
1767
1783
|
};
|
|
1768
1784
|
return t._s = e._s, t;
|
|
1769
1785
|
}
|
|
1770
|
-
|
|
1786
|
+
const Ol = [
|
|
1787
|
+
"classes",
|
|
1788
|
+
"config",
|
|
1789
|
+
"delay",
|
|
1790
|
+
"errors",
|
|
1791
|
+
"id",
|
|
1792
|
+
"index",
|
|
1793
|
+
"inputErrors",
|
|
1794
|
+
"modelValue",
|
|
1795
|
+
"onUpdate:modelValue",
|
|
1796
|
+
"name",
|
|
1797
|
+
"parent",
|
|
1798
|
+
"plugins",
|
|
1799
|
+
"sectionsSchema",
|
|
1800
|
+
"type",
|
|
1801
|
+
"validation",
|
|
1802
|
+
"validationLabel",
|
|
1803
|
+
"validationMessages",
|
|
1804
|
+
"validationRules",
|
|
1805
|
+
// Runtime event props:
|
|
1806
|
+
"onInput",
|
|
1807
|
+
"onInputRaw",
|
|
1808
|
+
"onUpdate:modelValue",
|
|
1809
|
+
"onNode",
|
|
1810
|
+
"onSubmit",
|
|
1811
|
+
"onSubmitInvalid",
|
|
1812
|
+
"onSubmitRaw"
|
|
1813
|
+
];
|
|
1814
|
+
ce(ae(se("$message.value")), Ie(tl(z("prefix"), Q(), nl("$label || $ui.submit.value"), X(), z("suffix"))), G("$help")), ze("submit");
|
|
1771
1815
|
ce(
|
|
1772
|
-
|
|
1816
|
+
ie(
|
|
1773
1817
|
"$options == undefined",
|
|
1774
1818
|
/**
|
|
1775
1819
|
* Single checkbox structure.
|
|
1776
1820
|
*/
|
|
1777
|
-
qe(
|
|
1821
|
+
qe(le(Q(), He(), Ne(z("decorator")), X()), ge(Ze("$label"), {
|
|
1778
1822
|
if: "$label"
|
|
1779
1823
|
})),
|
|
1780
1824
|
/**
|
|
1781
1825
|
* Multi checkbox structure.
|
|
1782
1826
|
*/
|
|
1783
|
-
an(sn("$label"),
|
|
1827
|
+
an(sn("$label"), G("$help"), on(rn(qe(le(Q(), ge(He(), {
|
|
1784
1828
|
bind: "$option.attrs",
|
|
1785
1829
|
attrs: {
|
|
1786
1830
|
id: "$option.attrs.id",
|
|
1787
1831
|
value: "$option.value",
|
|
1788
1832
|
checked: "$fns.isChecked($option.value)"
|
|
1789
1833
|
}
|
|
1790
|
-
}), Ne(z("decorator")),
|
|
1834
|
+
}), Ne(z("decorator")), X()), ge(Ze("$option.label"), {
|
|
1791
1835
|
if: "$option.label"
|
|
1792
1836
|
})), un("$option.help"))))
|
|
1793
1837
|
),
|
|
1794
1838
|
// Help text only goes under the input when it is a single.
|
|
1795
|
-
|
|
1796
|
-
|
|
1839
|
+
ie("$options == undefined && $help", G("$help")),
|
|
1840
|
+
ae(se("$message.value"))
|
|
1797
1841
|
), _e("decorator", "checkboxDecorator");
|
|
1798
|
-
ce(
|
|
1799
|
-
|
|
1842
|
+
ce(Ie(je("$label"), le(z("prefix", "label"), Q(), il(), al(ll(z("fileItem"), sl("$file.name"), ie("$value.length === 1", Ot(z("fileRemove"), "$ui.remove.value")))), ie("$value.length > 1", Ot("$ui.removeAll.value")), rl(z("noFiles"), "$ui.noFiles.value"), X(), z("suffix"))), G("$help"), ae(se("$message.value"))), _e("fileItem", "fileItem"), _e("fileRemove", "fileRemove"), _e("noFiles", "noFiles");
|
|
1843
|
+
ol("$slots.default", ae(se("$message.value")), ul(fl()));
|
|
1800
1844
|
cn("$slots.default");
|
|
1801
1845
|
fn();
|
|
1802
1846
|
cn("$slots.default");
|
|
1803
1847
|
ce(
|
|
1804
|
-
|
|
1848
|
+
ie(
|
|
1805
1849
|
"$options == undefined",
|
|
1806
1850
|
/**
|
|
1807
1851
|
* Single radio structure.
|
|
1808
1852
|
*/
|
|
1809
|
-
qe(
|
|
1853
|
+
qe(le(Q(), He(), Ne(z("decorator")), X()), ge(Ze("$label"), {
|
|
1854
|
+
if: "$label"
|
|
1855
|
+
})),
|
|
1810
1856
|
/**
|
|
1811
1857
|
* Multi radio structure.
|
|
1812
1858
|
*/
|
|
1813
|
-
an(sn("$label"),
|
|
1859
|
+
an(sn("$label"), G("$help"), on(rn(qe(le(Q(), ge(He(), {
|
|
1814
1860
|
bind: "$option.attrs",
|
|
1815
1861
|
attrs: {
|
|
1816
1862
|
id: "$option.attrs.id",
|
|
1817
1863
|
value: "$option.value",
|
|
1818
1864
|
checked: "$fns.isChecked($option.value)"
|
|
1819
1865
|
}
|
|
1820
|
-
}), Ne(z("decorator")),
|
|
1866
|
+
}), Ne(z("decorator")), X()), ge(Ze("$option.label"), {
|
|
1821
1867
|
if: "$option.label"
|
|
1822
1868
|
})), un("$option.help"))))
|
|
1823
1869
|
),
|
|
1824
1870
|
// Help text only goes under the input when it is a single.
|
|
1825
|
-
|
|
1826
|
-
|
|
1871
|
+
ie("$options == undefined && $help", G("$help")),
|
|
1872
|
+
ae(se("$message.value"))
|
|
1827
1873
|
), _e("decorator", "radioDecorator");
|
|
1828
|
-
ce(
|
|
1829
|
-
ce(
|
|
1830
|
-
ce(
|
|
1874
|
+
ce(Ie(je("$label"), le(z("prefix"), Q(), cl(ie("$slots.default", () => "$slots.default", ie("$slots.option", dl, pl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), X(), z("suffix"))), G("$help"), ae(se("$message.value"))), _e("select", "select");
|
|
1875
|
+
ce(Ie(je("$label"), le(z("prefix", "label"), Q(), ml(), X(), z("suffix"))), G("$help"), ae(se("$message.value")));
|
|
1876
|
+
ce(Ie(je("$label"), le(z("prefix", "label"), Q(), fn(), X(), z("suffix"))), G("$help"), ae(se("$message.value")));
|
|
1831
1877
|
ue({
|
|
1832
1878
|
type: "state",
|
|
1833
1879
|
blocking: !0,
|
|
@@ -1835,12 +1881,12 @@ ue({
|
|
|
1835
1881
|
value: !0,
|
|
1836
1882
|
key: "validating"
|
|
1837
1883
|
});
|
|
1838
|
-
let
|
|
1839
|
-
const
|
|
1884
|
+
let Ue;
|
|
1885
|
+
const xl = new Promise((e) => {
|
|
1840
1886
|
}), Ge = typeof window < "u" && typeof fetch < "u";
|
|
1841
|
-
|
|
1842
|
-
const
|
|
1843
|
-
function
|
|
1887
|
+
Ue = Ge ? getComputedStyle(document.documentElement) : void 0;
|
|
1888
|
+
const Oe = {}, nt = {};
|
|
1889
|
+
function it(e, i) {
|
|
1844
1890
|
return (t) => {
|
|
1845
1891
|
if (typeof t != "string")
|
|
1846
1892
|
return;
|
|
@@ -1848,33 +1894,33 @@ function nt(e, i) {
|
|
|
1848
1894
|
return t;
|
|
1849
1895
|
const n = t.startsWith("default:");
|
|
1850
1896
|
t = n ? t.split(":")[1] : t;
|
|
1851
|
-
const l = t in
|
|
1897
|
+
const l = t in Oe;
|
|
1852
1898
|
let s;
|
|
1853
1899
|
if (l)
|
|
1854
|
-
return
|
|
1855
|
-
if (!
|
|
1856
|
-
if (s =
|
|
1857
|
-
|
|
1900
|
+
return Oe[t];
|
|
1901
|
+
if (!nt[t]) {
|
|
1902
|
+
if (s = Ml(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
|
|
1903
|
+
nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Rl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
|
|
1858
1904
|
else if (typeof s == "string")
|
|
1859
|
-
return
|
|
1905
|
+
return Oe[n ? `default:${t}` : t] = s, s;
|
|
1860
1906
|
}
|
|
1861
|
-
return
|
|
1907
|
+
return nt[t];
|
|
1862
1908
|
};
|
|
1863
1909
|
}
|
|
1864
|
-
function
|
|
1910
|
+
function Ml(e) {
|
|
1865
1911
|
if (Ge)
|
|
1866
|
-
return
|
|
1912
|
+
return xl.then(() => El(e));
|
|
1867
1913
|
}
|
|
1868
|
-
function
|
|
1869
|
-
const i =
|
|
1914
|
+
function El(e) {
|
|
1915
|
+
const i = Ue == null ? void 0 : Ue.getPropertyValue(`--fk-icon-${e}`);
|
|
1870
1916
|
if (i) {
|
|
1871
1917
|
const t = atob(i);
|
|
1872
1918
|
if (t.startsWith("<svg"))
|
|
1873
|
-
return
|
|
1919
|
+
return Oe[e] = t, t;
|
|
1874
1920
|
}
|
|
1875
1921
|
}
|
|
1876
|
-
function
|
|
1877
|
-
const t =
|
|
1922
|
+
function Rl(e, i) {
|
|
1923
|
+
const t = At.startsWith("__") ? "latest" : At, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
|
|
1878
1924
|
if (Ge)
|
|
1879
1925
|
return fetch(`${n}`).then(async (l) => {
|
|
1880
1926
|
const s = await l.text();
|
|
@@ -1884,8 +1930,8 @@ function Ml(e, i) {
|
|
|
1884
1930
|
console.error(l);
|
|
1885
1931
|
});
|
|
1886
1932
|
}
|
|
1887
|
-
let
|
|
1888
|
-
const
|
|
1933
|
+
let wt = !1;
|
|
1934
|
+
const Rt = {
|
|
1889
1935
|
/**
|
|
1890
1936
|
* FormKit errors:
|
|
1891
1937
|
*/
|
|
@@ -1907,7 +1953,7 @@ const Et = {
|
|
|
1907
1953
|
*/
|
|
1908
1954
|
600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
|
|
1909
1955
|
601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
|
|
1910
|
-
},
|
|
1956
|
+
}, jt = {
|
|
1911
1957
|
/**
|
|
1912
1958
|
* Core warnings:
|
|
1913
1959
|
*/
|
|
@@ -1929,45 +1975,45 @@ const Et = {
|
|
|
1929
1975
|
*/
|
|
1930
1976
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
1931
1977
|
}, jl = (e, i) => {
|
|
1932
|
-
if (e.code in
|
|
1933
|
-
const t =
|
|
1978
|
+
if (e.code in Rt) {
|
|
1979
|
+
const t = Rt[e.code];
|
|
1934
1980
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1935
1981
|
}
|
|
1936
1982
|
return i(e);
|
|
1937
1983
|
};
|
|
1938
|
-
|
|
1939
|
-
const
|
|
1940
|
-
if (e.code in
|
|
1941
|
-
const t =
|
|
1984
|
+
wt || bt(jl);
|
|
1985
|
+
const Fl = (e, i) => {
|
|
1986
|
+
if (e.code in jt) {
|
|
1987
|
+
const t = jt[e.code];
|
|
1942
1988
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1943
1989
|
}
|
|
1944
1990
|
return i(e);
|
|
1945
1991
|
};
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
function
|
|
1992
|
+
wt || yt(Fl);
|
|
1993
|
+
wt = !0;
|
|
1994
|
+
const Dl = typeof window > "u", lt = /* @__PURE__ */ new Map();
|
|
1995
|
+
function Tl(e, i) {
|
|
1950
1996
|
var t;
|
|
1951
|
-
!
|
|
1997
|
+
!Dl || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
|
|
1952
1998
|
}
|
|
1953
|
-
const mn = typeof window > "u",
|
|
1999
|
+
const mn = typeof window > "u", Me = {}, $e = {};
|
|
1954
2000
|
let K;
|
|
1955
|
-
const
|
|
1956
|
-
function
|
|
2001
|
+
const te = /* @__PURE__ */ new WeakMap(), Bl = "__raw__", zl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
2002
|
+
function Ul(e, i) {
|
|
1957
2003
|
const t = ne(null);
|
|
1958
2004
|
if (e === "get") {
|
|
1959
2005
|
const l = {};
|
|
1960
|
-
return t.value =
|
|
2006
|
+
return t.value = Kl.bind(null, l), t;
|
|
1961
2007
|
}
|
|
1962
2008
|
const n = e.split(".");
|
|
1963
|
-
return
|
|
1964
|
-
t.value =
|
|
2009
|
+
return ee(() => {
|
|
2010
|
+
t.value = kt(Sn(i) ? i.value : i, n);
|
|
1965
2011
|
}), t;
|
|
1966
2012
|
}
|
|
1967
|
-
function
|
|
2013
|
+
function kt(e, i) {
|
|
1968
2014
|
if (Array.isArray(e)) {
|
|
1969
2015
|
for (const l of e) {
|
|
1970
|
-
const s = l !== !1 &&
|
|
2016
|
+
const s = l !== !1 && kt(l, i);
|
|
1971
2017
|
if (s !== void 0)
|
|
1972
2018
|
return s;
|
|
1973
2019
|
}
|
|
@@ -1989,171 +2035,171 @@ function wt(e, i) {
|
|
|
1989
2035
|
}
|
|
1990
2036
|
return t;
|
|
1991
2037
|
}
|
|
1992
|
-
function
|
|
2038
|
+
function Kl(e, i) {
|
|
1993
2039
|
if (typeof i != "string")
|
|
1994
|
-
return
|
|
2040
|
+
return Re(650);
|
|
1995
2041
|
if (i in e || (e[i] = ne(void 0)), e[i].value === void 0) {
|
|
1996
2042
|
e[i].value = null;
|
|
1997
2043
|
const t = Jt(i);
|
|
1998
|
-
t && (e[i].value = t.context),
|
|
1999
|
-
e[i].value =
|
|
2044
|
+
t && (e[i].value = t.context), ii(i, ({ payload: n }) => {
|
|
2045
|
+
e[i].value = Xe(n) ? n.context : n;
|
|
2000
2046
|
});
|
|
2001
2047
|
}
|
|
2002
2048
|
return e[i].value;
|
|
2003
2049
|
}
|
|
2004
2050
|
function Ft(e, i, t) {
|
|
2005
|
-
function n(
|
|
2006
|
-
const
|
|
2007
|
-
return [
|
|
2008
|
-
}
|
|
2009
|
-
function l(
|
|
2010
|
-
var
|
|
2011
|
-
const
|
|
2012
|
-
let
|
|
2013
|
-
return typeof
|
|
2014
|
-
}
|
|
2015
|
-
function s(
|
|
2016
|
-
const
|
|
2017
|
-
(
|
|
2018
|
-
const v =
|
|
2019
|
-
for (const
|
|
2020
|
-
|
|
2051
|
+
function n($, h) {
|
|
2052
|
+
const c = A(J(h.if), { if: !0 }), d = p($, h.then), m = h.else ? p($, h.else) : null;
|
|
2053
|
+
return [c, d, m];
|
|
2054
|
+
}
|
|
2055
|
+
function l($, h) {
|
|
2056
|
+
var c, d;
|
|
2057
|
+
const m = A(J($.if));
|
|
2058
|
+
let y = () => h, g = () => h;
|
|
2059
|
+
return typeof $.then == "object" ? g = s($.then, void 0) : typeof $.then == "string" && (!((c = $.then) === null || c === void 0) && c.startsWith("$")) ? g = A(J($.then)) : g = () => $.then, j($, "else") && (typeof $.else == "object" ? y = s($.else) : typeof $.else == "string" && (!((d = $.else) === null || d === void 0) && d.startsWith("$")) ? y = A(J($.else)) : y = () => $.else), () => m() ? g() : y();
|
|
2060
|
+
}
|
|
2061
|
+
function s($, h, c = {}) {
|
|
2062
|
+
const d = new Set(Object.keys($ || {})), m = h ? A(J(h)) : () => ({}), y = [
|
|
2063
|
+
(g) => {
|
|
2064
|
+
const v = m();
|
|
2065
|
+
for (const w in v)
|
|
2066
|
+
d.has(w) || (g[w] = v[w]);
|
|
2021
2067
|
}
|
|
2022
2068
|
];
|
|
2023
|
-
if (
|
|
2024
|
-
if (ve(
|
|
2025
|
-
return l(
|
|
2026
|
-
for (let
|
|
2027
|
-
const v =
|
|
2028
|
-
let
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
g
|
|
2069
|
+
if ($) {
|
|
2070
|
+
if (ve($))
|
|
2071
|
+
return l($, c);
|
|
2072
|
+
for (let g in $) {
|
|
2073
|
+
const v = $[g];
|
|
2074
|
+
let w;
|
|
2075
|
+
const f = typeof v == "string";
|
|
2076
|
+
g.startsWith(Bl) ? (g = g.substring(7), w = () => v) : f && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && zl.test(g)) ? w = A(J(v)) : typeof v == "object" && ve(v) ? w = l(v, void 0) : typeof v == "object" && ke(v) ? w = s(v) : w = () => v, y.push((b) => {
|
|
2077
|
+
b[g] = w();
|
|
2032
2078
|
});
|
|
2033
2079
|
}
|
|
2034
2080
|
}
|
|
2035
2081
|
return () => {
|
|
2036
|
-
const
|
|
2037
|
-
return
|
|
2082
|
+
const g = Array.isArray($) ? [] : {};
|
|
2083
|
+
return y.forEach((v) => v(g)), g;
|
|
2038
2084
|
};
|
|
2039
2085
|
}
|
|
2040
|
-
function r(
|
|
2041
|
-
let
|
|
2042
|
-
const
|
|
2043
|
-
if (
|
|
2044
|
-
if (typeof
|
|
2045
|
-
if (
|
|
2046
|
-
|
|
2047
|
-
else if (
|
|
2048
|
-
const
|
|
2049
|
-
|
|
2086
|
+
function r($, h) {
|
|
2087
|
+
let c = null, d = () => null, m = !1, y = null, g = null, v = null, w = !1;
|
|
2088
|
+
const f = Xi(h);
|
|
2089
|
+
if (ft(f) ? (c = f.$el, d = f.$el !== "text" ? s(f.attrs, f.bind) : () => null) : ct(f) ? (typeof f.$cmp == "string" ? j($, f.$cmp) ? c = $[f.$cmp] : (c = f.$cmp, w = !0) : c = f.$cmp, d = s(f.props, f.bind)) : ve(f) && ([m, y, g] = n($, f)), !ve(f) && "if" in f ? m = A(J(f.if)) : !ve(f) && c === null && (m = () => !0), "children" in f && f.children)
|
|
2090
|
+
if (typeof f.children == "string")
|
|
2091
|
+
if (f.children.startsWith("$slots."))
|
|
2092
|
+
c = c === "text" ? "slot" : c, y = A(J(f.children));
|
|
2093
|
+
else if (f.children.startsWith("$") && f.children.length > 1) {
|
|
2094
|
+
const b = A(J(f.children));
|
|
2095
|
+
y = () => String(b());
|
|
2050
2096
|
} else
|
|
2051
|
-
|
|
2052
|
-
else if (Array.isArray(
|
|
2053
|
-
|
|
2097
|
+
y = () => String(f.children);
|
|
2098
|
+
else if (Array.isArray(f.children))
|
|
2099
|
+
y = p($, f.children);
|
|
2054
2100
|
else {
|
|
2055
|
-
const [
|
|
2056
|
-
|
|
2101
|
+
const [b, k, I] = n($, f.children);
|
|
2102
|
+
y = (B) => b && b() ? k && k(B) : I && I(B);
|
|
2057
2103
|
}
|
|
2058
|
-
if (
|
|
2059
|
-
if (
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2062
|
-
default(
|
|
2063
|
-
var C,
|
|
2104
|
+
if (ct(f))
|
|
2105
|
+
if (y) {
|
|
2106
|
+
const b = y;
|
|
2107
|
+
y = (k) => ({
|
|
2108
|
+
default(I, B) {
|
|
2109
|
+
var C, E, O, W;
|
|
2064
2110
|
const q = K;
|
|
2065
|
-
|
|
2066
|
-
const
|
|
2067
|
-
return
|
|
2111
|
+
B && (K = B), I && ((C = te.get(K)) === null || C === void 0 || C.unshift(I)), k && ((E = te.get(K)) === null || E === void 0 || E.unshift(k));
|
|
2112
|
+
const x = b(k);
|
|
2113
|
+
return I && ((O = te.get(K)) === null || O === void 0 || O.shift()), k && ((W = te.get(K)) === null || W === void 0 || W.shift()), K = q, x;
|
|
2068
2114
|
}
|
|
2069
|
-
}),
|
|
2115
|
+
}), y.slot = !0;
|
|
2070
2116
|
} else
|
|
2071
|
-
|
|
2072
|
-
if ("for" in
|
|
2073
|
-
const
|
|
2117
|
+
y = () => ({});
|
|
2118
|
+
if ("for" in f && f.for) {
|
|
2119
|
+
const b = f.for.length === 3 ? f.for[2] : f.for[1];
|
|
2074
2120
|
v = [
|
|
2075
|
-
typeof
|
|
2076
|
-
|
|
2077
|
-
|
|
2121
|
+
typeof b == "string" && b.startsWith("$") ? A(J(b)) : () => b,
|
|
2122
|
+
f.for[0],
|
|
2123
|
+
f.for.length === 3 ? String(f.for[1]) : null
|
|
2078
2124
|
];
|
|
2079
2125
|
}
|
|
2080
|
-
return [
|
|
2126
|
+
return [m, c, d, y, g, v, w];
|
|
2081
2127
|
}
|
|
2082
|
-
function o(
|
|
2083
|
-
const
|
|
2084
|
-
return Object.keys(
|
|
2085
|
-
const
|
|
2086
|
-
return
|
|
2128
|
+
function o($, h) {
|
|
2129
|
+
const c = $(h), d = K;
|
|
2130
|
+
return Object.keys(c).reduce((m, y) => {
|
|
2131
|
+
const g = c && c[y];
|
|
2132
|
+
return m[y] = (v) => g && g(v, d) || null, m;
|
|
2087
2133
|
}, {});
|
|
2088
2134
|
}
|
|
2089
|
-
function u(
|
|
2090
|
-
const [
|
|
2091
|
-
let
|
|
2092
|
-
if (
|
|
2093
|
-
return
|
|
2094
|
-
if (
|
|
2095
|
-
if (
|
|
2096
|
-
return Vn(String(
|
|
2097
|
-
if (
|
|
2098
|
-
return
|
|
2099
|
-
const k =
|
|
2100
|
-
return
|
|
2135
|
+
function u($, h) {
|
|
2136
|
+
const [c, d, m, y, g, v, w] = r($, h);
|
|
2137
|
+
let f = (b) => {
|
|
2138
|
+
if (c && d === null && y)
|
|
2139
|
+
return c() ? y(b) : g && g(b);
|
|
2140
|
+
if (d && (!c || c())) {
|
|
2141
|
+
if (d === "text" && y)
|
|
2142
|
+
return Vn(String(y()));
|
|
2143
|
+
if (d === "slot" && y)
|
|
2144
|
+
return y(b);
|
|
2145
|
+
const k = w ? F(d) : d, I = y != null && y.slot ? o(y, b) : null;
|
|
2146
|
+
return we(k, m(), I || (y ? y(b) : []));
|
|
2101
2147
|
}
|
|
2102
|
-
return typeof
|
|
2148
|
+
return typeof g == "function" ? g(b) : g;
|
|
2103
2149
|
};
|
|
2104
2150
|
if (v) {
|
|
2105
|
-
const
|
|
2106
|
-
|
|
2107
|
-
const C = k(),
|
|
2108
|
-
if (typeof
|
|
2151
|
+
const b = f, [k, I, B] = v;
|
|
2152
|
+
f = () => {
|
|
2153
|
+
const C = k(), E = Number.isFinite(C) ? Array(Number(C)).fill(0).map((x, N) => N) : C, O = [];
|
|
2154
|
+
if (typeof E != "object")
|
|
2109
2155
|
return null;
|
|
2110
|
-
const
|
|
2111
|
-
for (const
|
|
2112
|
-
if (q &&
|
|
2156
|
+
const W = te.get(K) || [], q = Array.isArray(E);
|
|
2157
|
+
for (const x in E) {
|
|
2158
|
+
if (q && x in Array.prototype)
|
|
2113
2159
|
continue;
|
|
2114
2160
|
const N = Object.defineProperty({
|
|
2115
|
-
...
|
|
2116
|
-
[
|
|
2117
|
-
...
|
|
2161
|
+
...W.reduce((Le, re) => Le.__idata ? { ...Le, ...re } : re, {}),
|
|
2162
|
+
[I]: E[x],
|
|
2163
|
+
...B !== null ? { [B]: q ? Number(x) : x } : {}
|
|
2118
2164
|
}, "__idata", { enumerable: !1, value: !0 });
|
|
2119
|
-
|
|
2165
|
+
W.unshift(N), O.push(b.bind(null, N)()), W.shift();
|
|
2120
2166
|
}
|
|
2121
|
-
return
|
|
2167
|
+
return O;
|
|
2122
2168
|
};
|
|
2123
2169
|
}
|
|
2124
|
-
return
|
|
2170
|
+
return f;
|
|
2125
2171
|
}
|
|
2126
|
-
function p(
|
|
2127
|
-
if (Array.isArray(
|
|
2128
|
-
const
|
|
2129
|
-
return (
|
|
2172
|
+
function p($, h) {
|
|
2173
|
+
if (Array.isArray(h)) {
|
|
2174
|
+
const d = h.map(u.bind(null, $));
|
|
2175
|
+
return (m) => d.map((y) => y(m));
|
|
2130
2176
|
}
|
|
2131
|
-
const
|
|
2132
|
-
return (
|
|
2177
|
+
const c = u($, h);
|
|
2178
|
+
return (d) => c(d);
|
|
2133
2179
|
}
|
|
2134
2180
|
const _ = [];
|
|
2135
|
-
function
|
|
2136
|
-
const
|
|
2137
|
-
return _.push((
|
|
2138
|
-
|
|
2139
|
-
}), () =>
|
|
2181
|
+
function A($, h = {}) {
|
|
2182
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
2183
|
+
return _.push((d, m) => {
|
|
2184
|
+
c.set(m, $.provide((y) => d(y, h)));
|
|
2185
|
+
}), () => c.get(K)();
|
|
2140
2186
|
}
|
|
2141
|
-
function
|
|
2142
|
-
var
|
|
2187
|
+
function Z($, h) {
|
|
2188
|
+
var c;
|
|
2143
2189
|
t ?? (t = JSON.stringify(i));
|
|
2144
|
-
const [
|
|
2145
|
-
return mn || ((
|
|
2146
|
-
|
|
2147
|
-
}), () => (K =
|
|
2190
|
+
const [d, m] = j(Me, t) ? Me[t] : [p(e, i), _];
|
|
2191
|
+
return mn || ((c = $e[t]) !== null && c !== void 0 || ($e[t] = 0), $e[t]++, Me[t] = [d, m]), m.forEach((y) => {
|
|
2192
|
+
y($, h);
|
|
2193
|
+
}), () => (K = h, d());
|
|
2148
2194
|
}
|
|
2149
|
-
return
|
|
2195
|
+
return Z;
|
|
2150
2196
|
}
|
|
2151
2197
|
function bn(e, i) {
|
|
2152
|
-
const t =
|
|
2198
|
+
const t = te.get(K) || [];
|
|
2153
2199
|
let n;
|
|
2154
|
-
return t.length && (n =
|
|
2200
|
+
return t.length && (n = kt(t, e.split("."))), n === void 0 ? i : n;
|
|
2155
2201
|
}
|
|
2156
|
-
function
|
|
2202
|
+
function Wl(e, i) {
|
|
2157
2203
|
return new Proxy(e, {
|
|
2158
2204
|
get(...t) {
|
|
2159
2205
|
let n;
|
|
@@ -2166,32 +2212,32 @@ function Ul(e, i) {
|
|
|
2166
2212
|
}
|
|
2167
2213
|
});
|
|
2168
2214
|
}
|
|
2169
|
-
function
|
|
2215
|
+
function Dt(e, i, t) {
|
|
2170
2216
|
return e((n, l = {}) => n.reduce((s, r) => {
|
|
2171
2217
|
if (r.startsWith("slots.")) {
|
|
2172
2218
|
const o = r.substring(6), u = () => i.slots && j(i.slots, o) && typeof i.slots[o] == "function";
|
|
2173
2219
|
if (l.if)
|
|
2174
2220
|
s[r] = u;
|
|
2175
2221
|
else if (i.slots) {
|
|
2176
|
-
const p =
|
|
2222
|
+
const p = Wl(i, t);
|
|
2177
2223
|
s[r] = () => u() ? i.slots[o](p) : null;
|
|
2178
2224
|
}
|
|
2179
2225
|
} else {
|
|
2180
|
-
const o =
|
|
2226
|
+
const o = Ul(r, i);
|
|
2181
2227
|
s[r] = () => bn(r, o.value);
|
|
2182
2228
|
}
|
|
2183
2229
|
return s;
|
|
2184
2230
|
}, {}), t);
|
|
2185
2231
|
}
|
|
2186
|
-
function
|
|
2187
|
-
if (i ?? (i = JSON.stringify(e)),
|
|
2188
|
-
delete
|
|
2189
|
-
const [, n] =
|
|
2190
|
-
delete
|
|
2232
|
+
function Tt(e, i, t) {
|
|
2233
|
+
if (i ?? (i = JSON.stringify(e)), $e[i]--, $e[i] === 0) {
|
|
2234
|
+
delete $e[i];
|
|
2235
|
+
const [, n] = Me[i];
|
|
2236
|
+
delete Me[i], n.length = 0;
|
|
2191
2237
|
}
|
|
2192
|
-
|
|
2238
|
+
te.delete(t);
|
|
2193
2239
|
}
|
|
2194
|
-
const yn =
|
|
2240
|
+
const yn = M({
|
|
2195
2241
|
name: "FormKitSchema",
|
|
2196
2242
|
props: {
|
|
2197
2243
|
schema: {
|
|
@@ -2213,139 +2259,54 @@ const yn = x({
|
|
|
2213
2259
|
},
|
|
2214
2260
|
setup(e, i) {
|
|
2215
2261
|
var t;
|
|
2216
|
-
const n =
|
|
2262
|
+
const n = st();
|
|
2217
2263
|
let l = {};
|
|
2218
|
-
|
|
2264
|
+
te.set(l, []);
|
|
2219
2265
|
let s = Ft(e.library, e.schema, e.memoKey), r, o;
|
|
2220
2266
|
mn || pe(() => e.schema, (p, _) => {
|
|
2221
|
-
var
|
|
2222
|
-
const
|
|
2223
|
-
l = {}, s = Ft(e.library, e.schema, e.memoKey), r =
|
|
2224
|
-
}, { deep: !0 }),
|
|
2267
|
+
var A;
|
|
2268
|
+
const Z = l;
|
|
2269
|
+
l = {}, te.set(l, []), s = Ft(e.library, e.schema, e.memoKey), r = Dt(s, o, l), p === _ && ((A = n == null ? void 0 : n.proxy) === null || A === void 0 ? void 0 : A.$forceUpdate)(), Tt(e.schema, e.memoKey, Z);
|
|
2270
|
+
}, { deep: !0 }), ee(() => {
|
|
2225
2271
|
var p;
|
|
2226
2272
|
o = Object.assign(_n((p = e.data) !== null && p !== void 0 ? p : {}), {
|
|
2227
2273
|
slots: i.slots
|
|
2228
|
-
}), i.slots, r =
|
|
2274
|
+
}), i.slots, r = Dt(s, o, l);
|
|
2229
2275
|
});
|
|
2230
2276
|
function u() {
|
|
2231
|
-
|
|
2277
|
+
Tt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
|
|
2232
2278
|
}
|
|
2233
|
-
return gn(u),
|
|
2279
|
+
return gn(u), Tl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
|
|
2234
2280
|
}
|
|
2235
|
-
}),
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
delay: {
|
|
2245
|
-
type: Number,
|
|
2246
|
-
required: !1
|
|
2247
|
-
},
|
|
2248
|
-
dynamic: {
|
|
2249
|
-
type: Boolean,
|
|
2250
|
-
required: !1
|
|
2251
|
-
},
|
|
2252
|
-
errors: {
|
|
2253
|
-
type: Array,
|
|
2254
|
-
default: []
|
|
2255
|
-
},
|
|
2256
|
-
inputErrors: {
|
|
2257
|
-
type: Object,
|
|
2258
|
-
default: () => ({})
|
|
2259
|
-
},
|
|
2260
|
-
index: {
|
|
2261
|
-
type: Number,
|
|
2262
|
-
required: !1
|
|
2263
|
-
},
|
|
2264
|
-
id: {
|
|
2265
|
-
type: String,
|
|
2266
|
-
required: !1
|
|
2267
|
-
},
|
|
2268
|
-
modelValue: {
|
|
2269
|
-
required: !1
|
|
2270
|
-
},
|
|
2271
|
-
name: {
|
|
2272
|
-
type: String,
|
|
2273
|
-
required: !1
|
|
2274
|
-
},
|
|
2275
|
-
parent: {
|
|
2276
|
-
type: Object,
|
|
2277
|
-
required: !1
|
|
2278
|
-
},
|
|
2279
|
-
plugins: {
|
|
2280
|
-
type: Array,
|
|
2281
|
-
default: []
|
|
2282
|
-
},
|
|
2283
|
-
sectionsSchema: {
|
|
2284
|
-
type: Object,
|
|
2285
|
-
default: {}
|
|
2286
|
-
},
|
|
2287
|
-
sync: {
|
|
2288
|
-
type: Boolean,
|
|
2289
|
-
required: !1
|
|
2290
|
-
},
|
|
2291
|
-
type: {
|
|
2292
|
-
type: [String, Object],
|
|
2293
|
-
default: "text"
|
|
2294
|
-
},
|
|
2295
|
-
validation: {
|
|
2296
|
-
type: [String, Array],
|
|
2297
|
-
required: !1
|
|
2298
|
-
},
|
|
2299
|
-
validationMessages: {
|
|
2300
|
-
type: Object,
|
|
2301
|
-
required: !1
|
|
2302
|
-
},
|
|
2303
|
-
validationRules: {
|
|
2304
|
-
type: Object,
|
|
2305
|
-
required: !1
|
|
2306
|
-
},
|
|
2307
|
-
validationLabel: {
|
|
2308
|
-
type: [String, Function],
|
|
2309
|
-
required: !1
|
|
2310
|
-
}
|
|
2311
|
-
}, Nl = Kl, Wl = typeof window > "u", Ze = Symbol("FormKitParent");
|
|
2312
|
-
x({
|
|
2313
|
-
props: Nl,
|
|
2314
|
-
emits: {
|
|
2315
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2316
|
-
input: (e, i) => !0,
|
|
2317
|
-
inputRaw: (e, i) => !0,
|
|
2318
|
-
"update:modelValue": (e) => !0,
|
|
2319
|
-
node: (e) => !!e,
|
|
2320
|
-
submit: (e, i) => !0,
|
|
2321
|
-
submitRaw: (e, i) => !0,
|
|
2322
|
-
submitInvalid: (e) => !0
|
|
2323
|
-
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
2324
|
-
},
|
|
2325
|
-
inheritAttrs: !1,
|
|
2326
|
-
setup(e, i) {
|
|
2327
|
-
const t = Zl(e, i);
|
|
2328
|
-
if (t.props.definition || W(600, t), t.props.definition.component)
|
|
2329
|
-
return () => {
|
|
2330
|
-
var o;
|
|
2331
|
-
return $e((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
|
|
2332
|
-
context: t.context
|
|
2333
|
-
}, { ...i.slots });
|
|
2334
|
-
};
|
|
2335
|
-
const n = ne([]);
|
|
2336
|
-
let l = t.props.definition.schemaMemoKey;
|
|
2337
|
-
const s = () => {
|
|
2338
|
-
var o, u;
|
|
2339
|
-
const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
|
|
2340
|
-
p || W(601, t), typeof p == "function" ? (n.value = p({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in p && typeof p.memoKey == "string") && (l = (l ?? (p == null ? void 0 : p.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = p;
|
|
2281
|
+
}), Nl = typeof window > "u", Je = Symbol("FormKitParent");
|
|
2282
|
+
function Hl(e, i) {
|
|
2283
|
+
const t = Jl(e, i);
|
|
2284
|
+
if (t.props.definition || H(600, t), t.props.definition.component)
|
|
2285
|
+
return () => {
|
|
2286
|
+
var o;
|
|
2287
|
+
return we((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
|
|
2288
|
+
context: t.context
|
|
2289
|
+
}, { ...i.slots });
|
|
2341
2290
|
};
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2291
|
+
const n = ne([]);
|
|
2292
|
+
let l = t.props.definition.schemaMemoKey;
|
|
2293
|
+
const s = () => {
|
|
2294
|
+
var o, u;
|
|
2295
|
+
const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
|
|
2296
|
+
p || H(601, t), typeof p == "function" ? (n.value = p({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in p && typeof p.memoKey == "string") && (l = (l ?? (p == null ? void 0 : p.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = p;
|
|
2297
|
+
};
|
|
2298
|
+
s(), Nl || t.on("schema", () => {
|
|
2299
|
+
l += "♻️", s();
|
|
2300
|
+
}), i.emit("node", t);
|
|
2301
|
+
const r = t.props.definition.library;
|
|
2302
|
+
return i.expose({ node: t }), () => we(yn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
|
|
2303
|
+
}
|
|
2304
|
+
M(Hl, {
|
|
2305
|
+
props: Ol,
|
|
2306
|
+
inheritAttrs: !1
|
|
2346
2307
|
});
|
|
2347
2308
|
const vn = Symbol();
|
|
2348
|
-
|
|
2309
|
+
M((e, i) => {
|
|
2349
2310
|
const t = ne(null), n = ne(!1), l = ne(void 0), s = pe(t, (o) => {
|
|
2350
2311
|
let u = o, p = null;
|
|
2351
2312
|
for (; u = u == null ? void 0 : u.parentNode; )
|
|
@@ -2359,9 +2320,9 @@ x((e, i) => {
|
|
|
2359
2320
|
function r(o) {
|
|
2360
2321
|
l.value = o;
|
|
2361
2322
|
}
|
|
2362
|
-
return () => n.value && i.slots.default ? i.slots.default() :
|
|
2323
|
+
return () => n.value && i.slots.default ? i.slots.default() : we("template", { ref: t });
|
|
2363
2324
|
});
|
|
2364
|
-
const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u",
|
|
2325
|
+
const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u", at = [
|
|
2365
2326
|
"help",
|
|
2366
2327
|
"label",
|
|
2367
2328
|
"ignore",
|
|
@@ -2376,142 +2337,147 @@ const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u", lt = [
|
|
|
2376
2337
|
];
|
|
2377
2338
|
function Bt(e, i) {
|
|
2378
2339
|
i.classes && Object.keys(i.classes).forEach((t) => {
|
|
2379
|
-
typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t],
|
|
2340
|
+
typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
|
|
2380
2341
|
});
|
|
2381
2342
|
}
|
|
2382
|
-
function
|
|
2343
|
+
function Zl(e) {
|
|
2383
2344
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
|
|
2384
2345
|
const l = `on${n}`;
|
|
2385
2346
|
return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
|
|
2386
2347
|
}, {}) : {};
|
|
2387
2348
|
}
|
|
2388
|
-
function
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2349
|
+
function Jl(e, i, t = {}) {
|
|
2350
|
+
var n;
|
|
2351
|
+
const l = Object.assign({}, he(hn) || {}, t), s = he(vn, ne(ql ? document : void 0)), r = st(), o = Zl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((f) => {
|
|
2352
|
+
var b;
|
|
2353
|
+
return f in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
|
|
2392
2354
|
});
|
|
2393
|
-
let
|
|
2355
|
+
let p = !1;
|
|
2394
2356
|
$n(() => {
|
|
2395
|
-
|
|
2357
|
+
p = !0;
|
|
2396
2358
|
});
|
|
2397
|
-
const
|
|
2398
|
-
function
|
|
2359
|
+
const _ = e.modelValue !== void 0 ? e.modelValue : me(i.attrs.value);
|
|
2360
|
+
function A() {
|
|
2361
|
+
var f;
|
|
2399
2362
|
const b = {
|
|
2400
2363
|
...ye(e),
|
|
2401
|
-
...
|
|
2402
|
-
|
|
2364
|
+
...o,
|
|
2365
|
+
type: (f = e.type) !== null && f !== void 0 ? f : "text",
|
|
2366
|
+
__root: s.value,
|
|
2403
2367
|
__slots: i.slots
|
|
2404
|
-
},
|
|
2405
|
-
|
|
2406
|
-
const
|
|
2407
|
-
for (const
|
|
2408
|
-
b[
|
|
2409
|
-
const
|
|
2410
|
-
return Bt(
|
|
2411
|
-
}
|
|
2412
|
-
const
|
|
2368
|
+
}, k = Ct(ye(i.attrs), at);
|
|
2369
|
+
k.key || (k.key = Ye()), b.attrs = k;
|
|
2370
|
+
const I = St(ye(i.attrs), at);
|
|
2371
|
+
for (const C in I)
|
|
2372
|
+
b[De(C)] = I[C];
|
|
2373
|
+
const B = { props: {} };
|
|
2374
|
+
return Bt(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
|
|
2375
|
+
}
|
|
2376
|
+
const Z = A(), $ = Z.ignore ? null : e.parent || he(Je, null), h = Yi(Qe(l || {}, {
|
|
2413
2377
|
name: e.name || void 0,
|
|
2414
|
-
value:
|
|
2415
|
-
parent:
|
|
2416
|
-
plugins: (
|
|
2417
|
-
config: e.config,
|
|
2418
|
-
props:
|
|
2378
|
+
value: _,
|
|
2379
|
+
parent: $,
|
|
2380
|
+
plugins: (l.plugins || []).concat((n = e.plugins) !== null && n !== void 0 ? n : []),
|
|
2381
|
+
config: e.config || {},
|
|
2382
|
+
props: Z,
|
|
2419
2383
|
index: e.index,
|
|
2420
|
-
sync:
|
|
2384
|
+
sync: !!Y(i.attrs.sync || i.attrs.dynamic)
|
|
2421
2385
|
}, !1, !0));
|
|
2422
|
-
|
|
2423
|
-
const
|
|
2424
|
-
|
|
2425
|
-
Array.isArray(
|
|
2386
|
+
h.props.definition || H(600, h);
|
|
2387
|
+
const c = ne(new Set(h.props.definition.props || []));
|
|
2388
|
+
h.on("added-props", ({ payload: f }) => {
|
|
2389
|
+
Array.isArray(f) && f.forEach((b) => c.value.add(b));
|
|
2426
2390
|
});
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2391
|
+
const d = R(() => at.concat([...c.value]).reduce((f, b) => (typeof b == "string" ? (f.push(De(b)), f.push(Wt(b))) : f.push(b), f), []));
|
|
2392
|
+
ee(() => Bt(h, e));
|
|
2429
2393
|
const m = ye(e);
|
|
2430
|
-
for (const
|
|
2431
|
-
pe(() => e[
|
|
2432
|
-
e[
|
|
2394
|
+
for (const f in m)
|
|
2395
|
+
pe(() => e[f], () => {
|
|
2396
|
+
e[f] !== void 0 && (h.props[f] = e[f]);
|
|
2433
2397
|
});
|
|
2434
|
-
|
|
2435
|
-
|
|
2398
|
+
ee(() => {
|
|
2399
|
+
h.props.__root = s.value;
|
|
2436
2400
|
});
|
|
2437
|
-
const
|
|
2438
|
-
|
|
2439
|
-
|
|
2401
|
+
const y = /* @__PURE__ */ new Set(), g = ye(i.attrs);
|
|
2402
|
+
ee(() => {
|
|
2403
|
+
v(St(g, d.value));
|
|
2440
2404
|
});
|
|
2441
|
-
function
|
|
2442
|
-
|
|
2443
|
-
|
|
2405
|
+
function v(f) {
|
|
2406
|
+
y.forEach((b) => {
|
|
2407
|
+
b(), y.delete(b);
|
|
2444
2408
|
});
|
|
2445
|
-
for (const
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2448
|
-
|
|
2409
|
+
for (const b in f) {
|
|
2410
|
+
const k = De(b);
|
|
2411
|
+
y.add(pe(() => i.attrs[b], () => {
|
|
2412
|
+
h.props[k] = i.attrs[b];
|
|
2449
2413
|
}));
|
|
2450
2414
|
}
|
|
2451
2415
|
}
|
|
2452
|
-
if (
|
|
2453
|
-
const
|
|
2454
|
-
"multiple" in
|
|
2455
|
-
}),
|
|
2456
|
-
|
|
2457
|
-
|
|
2416
|
+
if (ee(() => {
|
|
2417
|
+
const f = Ct(ye(i.attrs), d.value);
|
|
2418
|
+
"multiple" in f && (f.multiple = Y(f.multiple)), typeof f.onBlur == "function" && (f.onBlur = Fn(f.onBlur)), h.props.attrs = Object.assign({}, h.props.attrs || {}, f);
|
|
2419
|
+
}), ee(() => {
|
|
2420
|
+
var f;
|
|
2421
|
+
const b = ((f = e.errors) !== null && f !== void 0 ? f : []).map((k) => ue({
|
|
2422
|
+
key: dt(k),
|
|
2458
2423
|
type: "error",
|
|
2459
|
-
value:
|
|
2424
|
+
value: k,
|
|
2460
2425
|
meta: { source: "prop" }
|
|
2461
2426
|
}));
|
|
2462
|
-
|
|
2463
|
-
}),
|
|
2464
|
-
const
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2427
|
+
h.store.apply(b, (k) => k.type === "error" && k.meta.source === "prop");
|
|
2428
|
+
}), h.type !== "input") {
|
|
2429
|
+
const f = `${h.name}-prop`;
|
|
2430
|
+
ee(() => {
|
|
2431
|
+
var b;
|
|
2432
|
+
const k = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, I = Object.keys(k);
|
|
2433
|
+
I.length || h.clearErrors(!0, f);
|
|
2434
|
+
const B = I.reduce((C, E) => {
|
|
2435
|
+
let O = k[E];
|
|
2436
|
+
return typeof O == "string" && (O = [O]), Array.isArray(O) && (C[E] = O.map((W) => ue({
|
|
2437
|
+
key: W,
|
|
2472
2438
|
type: "error",
|
|
2473
|
-
value:
|
|
2474
|
-
meta: { source:
|
|
2475
|
-
}))),
|
|
2439
|
+
value: W,
|
|
2440
|
+
meta: { source: f }
|
|
2441
|
+
}))), C;
|
|
2476
2442
|
}, {});
|
|
2477
|
-
|
|
2443
|
+
h.store.apply(B, (C) => C.type === "error" && C.meta.source === f);
|
|
2478
2444
|
});
|
|
2479
2445
|
}
|
|
2480
|
-
|
|
2481
|
-
let
|
|
2482
|
-
return
|
|
2483
|
-
var
|
|
2484
|
-
i.emit("inputRaw", (
|
|
2485
|
-
}),
|
|
2486
|
-
fe(
|
|
2487
|
-
}, { deep: !0 }),
|
|
2488
|
-
}
|
|
2489
|
-
let
|
|
2490
|
-
function
|
|
2446
|
+
ee(() => Object.assign(h.config, e.config)), h.type !== "input" && zt(Je, h);
|
|
2447
|
+
let w;
|
|
2448
|
+
return h.on("modelUpdated", () => {
|
|
2449
|
+
var f, b;
|
|
2450
|
+
i.emit("inputRaw", (f = h.context) === null || f === void 0 ? void 0 : f.value, h), p && i.emit("input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), u && h.context && (w = me(h.value), i.emit("update:modelValue", En(h.value)));
|
|
2451
|
+
}), u && (pe(wn(e, "modelValue"), (f) => {
|
|
2452
|
+
fe(w, f) || h.input(f, !1);
|
|
2453
|
+
}, { deep: !0 }), h.value !== _ && h.emit("modelUpdated")), kn(() => h.destroy()), h;
|
|
2454
|
+
}
|
|
2455
|
+
let Yl = 1;
|
|
2456
|
+
function Ql(e) {
|
|
2491
2457
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
2492
2458
|
}
|
|
2493
|
-
function
|
|
2459
|
+
function T(e, i = {}) {
|
|
2494
2460
|
const t = {
|
|
2495
2461
|
type: "input",
|
|
2496
2462
|
...i
|
|
2497
2463
|
};
|
|
2498
2464
|
let n;
|
|
2499
|
-
if (
|
|
2500
|
-
const l = `SchemaComponent${
|
|
2501
|
-
n =
|
|
2465
|
+
if (Ql(e)) {
|
|
2466
|
+
const l = `SchemaComponent${Yl++}`;
|
|
2467
|
+
n = S("input", () => ({
|
|
2502
2468
|
$cmp: l,
|
|
2503
2469
|
props: {
|
|
2504
2470
|
context: "$node.context"
|
|
2505
2471
|
}
|
|
2506
2472
|
})), t.library = { [l]: Cn(e) };
|
|
2507
2473
|
} else
|
|
2508
|
-
typeof e == "function" ? n = e : n =
|
|
2474
|
+
typeof e == "function" ? n = e : n = S("input", () => me(e));
|
|
2509
2475
|
return t.schema = Al(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
|
|
2510
2476
|
}
|
|
2511
|
-
const
|
|
2477
|
+
const Xl = S("messages", () => ({
|
|
2512
2478
|
$el: "ul",
|
|
2513
2479
|
if: "$fns.length($messages)"
|
|
2514
|
-
})),
|
|
2480
|
+
})), Gl = S("message", () => ({
|
|
2515
2481
|
$el: "li",
|
|
2516
2482
|
for: ["message", "$messages"],
|
|
2517
2483
|
attrs: {
|
|
@@ -2519,8 +2485,8 @@ const Ql = w("messages", () => ({
|
|
|
2519
2485
|
id: "$id + '-' + $message.key",
|
|
2520
2486
|
"data-message-type": "$message.type"
|
|
2521
2487
|
}
|
|
2522
|
-
})),
|
|
2523
|
-
|
|
2488
|
+
})), ea = Xl(Gl("$message.value"));
|
|
2489
|
+
M({
|
|
2524
2490
|
props: {
|
|
2525
2491
|
node: {
|
|
2526
2492
|
type: Object,
|
|
@@ -2536,12 +2502,12 @@ x({
|
|
|
2536
2502
|
}
|
|
2537
2503
|
},
|
|
2538
2504
|
setup(e, i) {
|
|
2539
|
-
const t =
|
|
2505
|
+
const t = R(() => e.node || he(Je, void 0));
|
|
2540
2506
|
pe(t, () => {
|
|
2541
2507
|
var s;
|
|
2542
2508
|
!((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
|
|
2543
2509
|
}, { immediate: !0 });
|
|
2544
|
-
const n =
|
|
2510
|
+
const n = ea(e.sectionsSchema || {}), l = R(() => {
|
|
2545
2511
|
var s, r, o, u, p, _;
|
|
2546
2512
|
return {
|
|
2547
2513
|
messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
|
|
@@ -2551,11 +2517,11 @@ x({
|
|
|
2551
2517
|
});
|
|
2552
2518
|
return () => {
|
|
2553
2519
|
var s;
|
|
2554
|
-
return !((s = t.value) === null || s === void 0) && s.context ?
|
|
2520
|
+
return !((s = t.value) === null || s === void 0) && s.context ? we(yn, { schema: n, data: l.value }, { ...i.slots }) : null;
|
|
2555
2521
|
};
|
|
2556
2522
|
}
|
|
2557
2523
|
});
|
|
2558
|
-
|
|
2524
|
+
M({
|
|
2559
2525
|
name: "FormKitIcon",
|
|
2560
2526
|
props: {
|
|
2561
2527
|
icon: {
|
|
@@ -2573,7 +2539,7 @@ x({
|
|
|
2573
2539
|
},
|
|
2574
2540
|
setup(e) {
|
|
2575
2541
|
var i, t;
|
|
2576
|
-
const n = ne(void 0), l = he(hn, {}), s = he(
|
|
2542
|
+
const n = ne(void 0), l = he(hn, {}), s = he(Je, null);
|
|
2577
2543
|
let r;
|
|
2578
2544
|
function o() {
|
|
2579
2545
|
if (!r || typeof r != "function")
|
|
@@ -2584,24 +2550,24 @@ x({
|
|
|
2584
2550
|
}) : n.value = u;
|
|
2585
2551
|
}
|
|
2586
2552
|
if (e.iconLoader && typeof e.iconLoader == "function")
|
|
2587
|
-
r =
|
|
2553
|
+
r = it(e.iconLoader);
|
|
2588
2554
|
else if (s && (!((i = s.props) === null || i === void 0) && i.iconLoader))
|
|
2589
|
-
r =
|
|
2555
|
+
r = it(s.props.iconLoader);
|
|
2590
2556
|
else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
|
|
2591
|
-
r =
|
|
2557
|
+
r = it(r, e.iconLoaderUrl);
|
|
2592
2558
|
else {
|
|
2593
2559
|
const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((p) => typeof p.iconHandler == "function");
|
|
2594
2560
|
u && (r = u.iconHandler);
|
|
2595
2561
|
}
|
|
2596
2562
|
return pe(() => e.icon, () => {
|
|
2597
2563
|
o();
|
|
2598
|
-
}, { immediate: !0 }), () => e.icon && n.value ?
|
|
2564
|
+
}, { immediate: !0 }), () => e.icon && n.value ? we("span", {
|
|
2599
2565
|
class: "formkit-icon",
|
|
2600
2566
|
innerHTML: n.value
|
|
2601
2567
|
}) : null;
|
|
2602
2568
|
}
|
|
2603
2569
|
});
|
|
2604
|
-
const
|
|
2570
|
+
const ta = /* @__PURE__ */ M({
|
|
2605
2571
|
__name: "PrimeCalendar",
|
|
2606
2572
|
props: {
|
|
2607
2573
|
context: Object
|
|
@@ -2614,11 +2580,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2614
2580
|
function s(o) {
|
|
2615
2581
|
t == null || t.node.input(o);
|
|
2616
2582
|
}
|
|
2617
|
-
const r =
|
|
2583
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2618
2584
|
return (o, u) => {
|
|
2619
|
-
const p =
|
|
2620
|
-
return
|
|
2621
|
-
|
|
2585
|
+
const p = F("Calendar");
|
|
2586
|
+
return L(), P("div", null, [
|
|
2587
|
+
D(p, {
|
|
2622
2588
|
modelValue: a(t)._value,
|
|
2623
2589
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
2624
2590
|
"input-id": i.context.id,
|
|
@@ -2676,13 +2642,13 @@ const ea = /* @__PURE__ */ x({
|
|
|
2676
2642
|
]);
|
|
2677
2643
|
};
|
|
2678
2644
|
}
|
|
2679
|
-
}),
|
|
2645
|
+
}), na = {
|
|
2680
2646
|
key: 0,
|
|
2681
2647
|
class: "formkit-prime-left"
|
|
2682
|
-
},
|
|
2648
|
+
}, ia = {
|
|
2683
2649
|
key: 1,
|
|
2684
2650
|
class: "formkit-prime-right"
|
|
2685
|
-
},
|
|
2651
|
+
}, la = /* @__PURE__ */ M({
|
|
2686
2652
|
__name: "PrimeCheckbox",
|
|
2687
2653
|
props: {
|
|
2688
2654
|
context: Object
|
|
@@ -2693,12 +2659,12 @@ const ea = /* @__PURE__ */ x({
|
|
|
2693
2659
|
var o;
|
|
2694
2660
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2695
2661
|
}
|
|
2696
|
-
const s =
|
|
2662
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2697
2663
|
return (r, o) => {
|
|
2698
|
-
const u =
|
|
2699
|
-
return
|
|
2700
|
-
a(t).attrs.labelLeft ? (
|
|
2701
|
-
|
|
2664
|
+
const u = F("Checkbox");
|
|
2665
|
+
return L(), P("div", null, [
|
|
2666
|
+
a(t).attrs.labelLeft ? (L(), P("span", na, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
|
|
2667
|
+
D(u, {
|
|
2702
2668
|
modelValue: a(t)._value,
|
|
2703
2669
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2704
2670
|
"input-id": a(t).id,
|
|
@@ -2715,11 +2681,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2715
2681
|
pt: a(n).pt,
|
|
2716
2682
|
onInput: l
|
|
2717
2683
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
|
|
2718
|
-
a(t).attrs.labelRight ? (
|
|
2684
|
+
a(t).attrs.labelRight ? (L(), P("span", ia, de(a(t).attrs.labelRight), 1)) : oe("", !0)
|
|
2719
2685
|
]);
|
|
2720
2686
|
};
|
|
2721
2687
|
}
|
|
2722
|
-
}),
|
|
2688
|
+
}), aa = /* @__PURE__ */ M({
|
|
2723
2689
|
__name: "PrimeChips",
|
|
2724
2690
|
props: {
|
|
2725
2691
|
context: Object
|
|
@@ -2730,11 +2696,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2730
2696
|
var o;
|
|
2731
2697
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2732
2698
|
}
|
|
2733
|
-
const s =
|
|
2699
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2734
2700
|
return (r, o) => {
|
|
2735
|
-
const u =
|
|
2736
|
-
return
|
|
2737
|
-
|
|
2701
|
+
const u = F("Chips");
|
|
2702
|
+
return L(), P("div", null, [
|
|
2703
|
+
D(u, {
|
|
2738
2704
|
modelValue: a(t)._value,
|
|
2739
2705
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2740
2706
|
"input-id": a(t).id,
|
|
@@ -2757,7 +2723,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
2757
2723
|
]);
|
|
2758
2724
|
};
|
|
2759
2725
|
}
|
|
2760
|
-
}),
|
|
2726
|
+
}), sa = /* @__PURE__ */ M({
|
|
2761
2727
|
__name: "PrimeColorPicker",
|
|
2762
2728
|
props: {
|
|
2763
2729
|
context: Object
|
|
@@ -2769,9 +2735,9 @@ const ea = /* @__PURE__ */ x({
|
|
|
2769
2735
|
t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
|
|
2770
2736
|
}
|
|
2771
2737
|
return (s, r) => {
|
|
2772
|
-
const o =
|
|
2773
|
-
return
|
|
2774
|
-
|
|
2738
|
+
const o = F("ColorPicker");
|
|
2739
|
+
return L(), P("div", null, [
|
|
2740
|
+
D(o, {
|
|
2775
2741
|
modelValue: a(t)._value,
|
|
2776
2742
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
|
|
2777
2743
|
disabled: a(n)._disabled ?? !1,
|
|
@@ -2790,7 +2756,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
2790
2756
|
]);
|
|
2791
2757
|
};
|
|
2792
2758
|
}
|
|
2793
|
-
}),
|
|
2759
|
+
}), ra = /* @__PURE__ */ M({
|
|
2794
2760
|
__name: "PrimeDropdown",
|
|
2795
2761
|
props: {
|
|
2796
2762
|
context: Object
|
|
@@ -2803,11 +2769,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2803
2769
|
function s(o) {
|
|
2804
2770
|
t == null || t.node.input(o.value);
|
|
2805
2771
|
}
|
|
2806
|
-
const r =
|
|
2772
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2807
2773
|
return (o, u) => {
|
|
2808
|
-
const p =
|
|
2809
|
-
return
|
|
2810
|
-
|
|
2774
|
+
const p = F("Dropdown");
|
|
2775
|
+
return L(), P("div", null, [
|
|
2776
|
+
D(p, {
|
|
2811
2777
|
modelValue: a(t)._value,
|
|
2812
2778
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
2813
2779
|
"input-id": a(t).id,
|
|
@@ -2831,7 +2797,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
2831
2797
|
]);
|
|
2832
2798
|
};
|
|
2833
2799
|
}
|
|
2834
|
-
}),
|
|
2800
|
+
}), oa = /* @__PURE__ */ M({
|
|
2835
2801
|
__name: "PrimeEditor",
|
|
2836
2802
|
props: {
|
|
2837
2803
|
context: Object
|
|
@@ -2844,11 +2810,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2844
2810
|
function s(o) {
|
|
2845
2811
|
o.range === null && (t == null || t.handlers.blur(o.htmlValue));
|
|
2846
2812
|
}
|
|
2847
|
-
const r =
|
|
2813
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2848
2814
|
return (o, u) => {
|
|
2849
|
-
const p =
|
|
2850
|
-
return
|
|
2851
|
-
|
|
2815
|
+
const p = F("Editor");
|
|
2816
|
+
return L(), P("div", null, [
|
|
2817
|
+
D(p, {
|
|
2852
2818
|
id: a(t).id,
|
|
2853
2819
|
modelValue: a(t)._value,
|
|
2854
2820
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
@@ -2869,7 +2835,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
2869
2835
|
]);
|
|
2870
2836
|
};
|
|
2871
2837
|
}
|
|
2872
|
-
}),
|
|
2838
|
+
}), ua = /* @__PURE__ */ M({
|
|
2873
2839
|
__name: "PrimeInputMask",
|
|
2874
2840
|
props: {
|
|
2875
2841
|
context: Object
|
|
@@ -2880,11 +2846,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2880
2846
|
var o, u;
|
|
2881
2847
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value), t == null || t.handlers.blur((u = i.context) == null ? void 0 : u._value);
|
|
2882
2848
|
}
|
|
2883
|
-
const s =
|
|
2849
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2884
2850
|
return (r, o) => {
|
|
2885
|
-
const u =
|
|
2886
|
-
return
|
|
2887
|
-
|
|
2851
|
+
const u = F("InputMask");
|
|
2852
|
+
return L(), P("div", null, [
|
|
2853
|
+
D(u, {
|
|
2888
2854
|
id: a(t).id,
|
|
2889
2855
|
modelValue: a(t)._value,
|
|
2890
2856
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2906,7 +2872,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
2906
2872
|
]);
|
|
2907
2873
|
};
|
|
2908
2874
|
}
|
|
2909
|
-
}),
|
|
2875
|
+
}), fa = /* @__PURE__ */ M({
|
|
2910
2876
|
__name: "PrimeInputNumber",
|
|
2911
2877
|
props: {
|
|
2912
2878
|
context: Object
|
|
@@ -2919,11 +2885,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2919
2885
|
function s(o) {
|
|
2920
2886
|
t == null || t.node.input(o.value);
|
|
2921
2887
|
}
|
|
2922
|
-
const r =
|
|
2888
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2923
2889
|
return (o, u) => {
|
|
2924
|
-
const p =
|
|
2925
|
-
return
|
|
2926
|
-
|
|
2890
|
+
const p = F("InputNumber");
|
|
2891
|
+
return L(), P("div", null, [
|
|
2892
|
+
D(p, {
|
|
2927
2893
|
modelValue: a(t)._value,
|
|
2928
2894
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
2929
2895
|
"input-id": a(t).id,
|
|
@@ -2953,13 +2919,13 @@ const ea = /* @__PURE__ */ x({
|
|
|
2953
2919
|
]);
|
|
2954
2920
|
};
|
|
2955
2921
|
}
|
|
2956
|
-
}),
|
|
2922
|
+
}), ca = {
|
|
2957
2923
|
key: 0,
|
|
2958
2924
|
class: "formkit-prime-left"
|
|
2959
|
-
},
|
|
2925
|
+
}, pa = {
|
|
2960
2926
|
key: 1,
|
|
2961
2927
|
class: "formkit-prime-right"
|
|
2962
|
-
},
|
|
2928
|
+
}, da = /* @__PURE__ */ M({
|
|
2963
2929
|
__name: "PrimeInputSwitch",
|
|
2964
2930
|
props: {
|
|
2965
2931
|
context: Object
|
|
@@ -2970,14 +2936,14 @@ const ea = /* @__PURE__ */ x({
|
|
|
2970
2936
|
var o;
|
|
2971
2937
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2972
2938
|
}
|
|
2973
|
-
const s =
|
|
2939
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2974
2940
|
return (r, o) => {
|
|
2975
|
-
const u =
|
|
2976
|
-
return
|
|
2941
|
+
const u = F("InputSwitch");
|
|
2942
|
+
return L(), P("div", {
|
|
2977
2943
|
class: U(a(n).option_class)
|
|
2978
2944
|
}, [
|
|
2979
|
-
a(t).attrs.labelLeft ? (
|
|
2980
|
-
|
|
2945
|
+
a(t).attrs.labelLeft ? (L(), P("span", ca, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
|
|
2946
|
+
D(u, {
|
|
2981
2947
|
modelValue: a(t)._value,
|
|
2982
2948
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2983
2949
|
"input-id": a(t).id,
|
|
@@ -2993,11 +2959,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
2993
2959
|
pt: a(n).pt,
|
|
2994
2960
|
onInput: l
|
|
2995
2961
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
|
|
2996
|
-
a(t).attrs.labelRight ? (
|
|
2962
|
+
a(t).attrs.labelRight ? (L(), P("span", pa, de(a(t).attrs.labelRight), 1)) : oe("", !0)
|
|
2997
2963
|
], 2);
|
|
2998
2964
|
};
|
|
2999
2965
|
}
|
|
3000
|
-
}),
|
|
2966
|
+
}), ma = /* @__PURE__ */ M({
|
|
3001
2967
|
__name: "PrimeInputText",
|
|
3002
2968
|
props: {
|
|
3003
2969
|
context: Object
|
|
@@ -3020,21 +2986,21 @@ const ea = /* @__PURE__ */ x({
|
|
|
3020
2986
|
function u(_) {
|
|
3021
2987
|
t == null || t.node.input(_.target.value);
|
|
3022
2988
|
}
|
|
3023
|
-
const p =
|
|
3024
|
-
return (_,
|
|
3025
|
-
const
|
|
3026
|
-
return
|
|
2989
|
+
const p = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2990
|
+
return (_, A) => {
|
|
2991
|
+
const Z = F("InputText");
|
|
2992
|
+
return L(), P("div", null, [
|
|
3027
2993
|
Ut("span", {
|
|
3028
2994
|
class: U(r())
|
|
3029
2995
|
}, [
|
|
3030
|
-
l() ? (
|
|
2996
|
+
l() ? (L(), P("i", {
|
|
3031
2997
|
key: 0,
|
|
3032
2998
|
class: U(a(t).iconLeft)
|
|
3033
2999
|
}, null, 2)) : oe("", !0),
|
|
3034
|
-
|
|
3000
|
+
D(Z, {
|
|
3035
3001
|
id: a(t).id,
|
|
3036
3002
|
modelValue: a(t)._value,
|
|
3037
|
-
"onUpdate:modelValue":
|
|
3003
|
+
"onUpdate:modelValue": A[0] || (A[0] = ($) => a(t)._value = $),
|
|
3038
3004
|
disabled: a(n)._disabled ?? !1,
|
|
3039
3005
|
readonly: a(n)._readonly ?? !1,
|
|
3040
3006
|
style: be(a(n).style),
|
|
@@ -3047,7 +3013,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3047
3013
|
onInput: u,
|
|
3048
3014
|
onBlur: o
|
|
3049
3015
|
}, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt"]),
|
|
3050
|
-
s ? (
|
|
3016
|
+
s ? (L(), P("i", {
|
|
3051
3017
|
key: 1,
|
|
3052
3018
|
class: U(a(t).iconRight)
|
|
3053
3019
|
}, null, 2)) : oe("", !0)
|
|
@@ -3055,7 +3021,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3055
3021
|
]);
|
|
3056
3022
|
};
|
|
3057
3023
|
}
|
|
3058
|
-
}),
|
|
3024
|
+
}), ba = /* @__PURE__ */ M({
|
|
3059
3025
|
__name: "PrimeTextarea",
|
|
3060
3026
|
props: {
|
|
3061
3027
|
context: Object
|
|
@@ -3068,11 +3034,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3068
3034
|
function s(o) {
|
|
3069
3035
|
t == null || t.node.input(o.target.value);
|
|
3070
3036
|
}
|
|
3071
|
-
const r =
|
|
3037
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3072
3038
|
return (o, u) => {
|
|
3073
|
-
const p =
|
|
3074
|
-
return
|
|
3075
|
-
|
|
3039
|
+
const p = F("Textarea");
|
|
3040
|
+
return L(), P("div", null, [
|
|
3041
|
+
D(p, {
|
|
3076
3042
|
id: a(t).id,
|
|
3077
3043
|
modelValue: a(t)._value,
|
|
3078
3044
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
@@ -3092,7 +3058,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3092
3058
|
]);
|
|
3093
3059
|
};
|
|
3094
3060
|
}
|
|
3095
|
-
}),
|
|
3061
|
+
}), ya = /* @__PURE__ */ M({
|
|
3096
3062
|
__name: "PrimeKnob",
|
|
3097
3063
|
props: {
|
|
3098
3064
|
context: Object
|
|
@@ -3102,11 +3068,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3102
3068
|
function l(r) {
|
|
3103
3069
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3104
3070
|
}
|
|
3105
|
-
const s =
|
|
3071
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3106
3072
|
return (r, o) => {
|
|
3107
|
-
const u =
|
|
3108
|
-
return
|
|
3109
|
-
|
|
3073
|
+
const u = F("Knob");
|
|
3074
|
+
return L(), P("div", null, [
|
|
3075
|
+
D(u, {
|
|
3110
3076
|
id: a(t).id,
|
|
3111
3077
|
modelValue: a(t)._value,
|
|
3112
3078
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3133,7 +3099,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3133
3099
|
]);
|
|
3134
3100
|
};
|
|
3135
3101
|
}
|
|
3136
|
-
}),
|
|
3102
|
+
}), va = /* @__PURE__ */ M({
|
|
3137
3103
|
__name: "PrimeMultiSelect",
|
|
3138
3104
|
props: {
|
|
3139
3105
|
context: Object
|
|
@@ -3144,11 +3110,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3144
3110
|
var o;
|
|
3145
3111
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3146
3112
|
}
|
|
3147
|
-
const s =
|
|
3113
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3148
3114
|
return (r, o) => {
|
|
3149
|
-
const u =
|
|
3150
|
-
return
|
|
3151
|
-
|
|
3115
|
+
const u = F("MultiSelect");
|
|
3116
|
+
return L(), P("div", null, [
|
|
3117
|
+
D(u, {
|
|
3152
3118
|
modelValue: a(t)._value,
|
|
3153
3119
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3154
3120
|
"input-id": a(t).id,
|
|
@@ -3169,7 +3135,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3169
3135
|
]);
|
|
3170
3136
|
};
|
|
3171
3137
|
}
|
|
3172
|
-
}),
|
|
3138
|
+
}), ha = /* @__PURE__ */ M({
|
|
3173
3139
|
__name: "PrimeListbox",
|
|
3174
3140
|
props: {
|
|
3175
3141
|
context: Object
|
|
@@ -3180,12 +3146,12 @@ const ea = /* @__PURE__ */ x({
|
|
|
3180
3146
|
var o;
|
|
3181
3147
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3182
3148
|
}
|
|
3183
|
-
const s =
|
|
3149
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3184
3150
|
return (r, o) => {
|
|
3185
3151
|
var p;
|
|
3186
|
-
const u =
|
|
3187
|
-
return
|
|
3188
|
-
|
|
3152
|
+
const u = F("Listbox");
|
|
3153
|
+
return L(), P("div", null, [
|
|
3154
|
+
D(u, {
|
|
3189
3155
|
id: a(t).id,
|
|
3190
3156
|
modelValue: a(t)._value,
|
|
3191
3157
|
"onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
|
|
@@ -3213,7 +3179,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3213
3179
|
]);
|
|
3214
3180
|
};
|
|
3215
3181
|
}
|
|
3216
|
-
}),
|
|
3182
|
+
}), _a = /* @__PURE__ */ M({
|
|
3217
3183
|
__name: "PrimePassword",
|
|
3218
3184
|
props: {
|
|
3219
3185
|
context: Object
|
|
@@ -3226,11 +3192,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3226
3192
|
function s(o) {
|
|
3227
3193
|
t == null || t.node.input(o.target.value);
|
|
3228
3194
|
}
|
|
3229
|
-
const r =
|
|
3195
|
+
const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3230
3196
|
return (o, u) => {
|
|
3231
|
-
const p =
|
|
3232
|
-
return
|
|
3233
|
-
|
|
3197
|
+
const p = F("Password");
|
|
3198
|
+
return L(), P("div", null, [
|
|
3199
|
+
D(p, {
|
|
3234
3200
|
modelValue: a(t)._value,
|
|
3235
3201
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
|
|
3236
3202
|
"input-id": a(t).id,
|
|
@@ -3259,7 +3225,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3259
3225
|
]);
|
|
3260
3226
|
};
|
|
3261
3227
|
}
|
|
3262
|
-
}),
|
|
3228
|
+
}), ga = ["for"], $a = /* @__PURE__ */ M({
|
|
3263
3229
|
__name: "PrimeRadioButton",
|
|
3264
3230
|
props: {
|
|
3265
3231
|
context: Object
|
|
@@ -3270,17 +3236,17 @@ const ea = /* @__PURE__ */ x({
|
|
|
3270
3236
|
var o;
|
|
3271
3237
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3272
3238
|
}
|
|
3273
|
-
const s =
|
|
3239
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3274
3240
|
return (r, o) => {
|
|
3275
|
-
const u =
|
|
3276
|
-
return
|
|
3241
|
+
const u = F("RadioButton");
|
|
3242
|
+
return L(), P("div", {
|
|
3277
3243
|
class: U(a(n).options_class)
|
|
3278
3244
|
}, [
|
|
3279
|
-
(
|
|
3245
|
+
(L(!0), P(In, null, Ln(a(n).options, (p) => (L(), P("div", {
|
|
3280
3246
|
key: p.value,
|
|
3281
3247
|
class: U(a(n).option_class)
|
|
3282
3248
|
}, [
|
|
3283
|
-
|
|
3249
|
+
D(u, {
|
|
3284
3250
|
modelValue: a(t)._value,
|
|
3285
3251
|
"onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
|
|
3286
3252
|
name: a(n).name,
|
|
@@ -3293,12 +3259,12 @@ const ea = /* @__PURE__ */ x({
|
|
|
3293
3259
|
}, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
|
|
3294
3260
|
Ut("label", {
|
|
3295
3261
|
for: p.value
|
|
3296
|
-
}, de(p.label), 9,
|
|
3262
|
+
}, de(p.label), 9, ga)
|
|
3297
3263
|
], 2))), 128))
|
|
3298
3264
|
], 2);
|
|
3299
3265
|
};
|
|
3300
3266
|
}
|
|
3301
|
-
}),
|
|
3267
|
+
}), wa = /* @__PURE__ */ M({
|
|
3302
3268
|
__name: "PrimeRating",
|
|
3303
3269
|
props: {
|
|
3304
3270
|
context: Object
|
|
@@ -3309,11 +3275,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3309
3275
|
var o;
|
|
3310
3276
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3311
3277
|
}
|
|
3312
|
-
const s =
|
|
3278
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3313
3279
|
return (r, o) => {
|
|
3314
|
-
const u =
|
|
3315
|
-
return
|
|
3316
|
-
|
|
3280
|
+
const u = F("Rating");
|
|
3281
|
+
return L(), P("div", null, [
|
|
3282
|
+
D(u, {
|
|
3317
3283
|
id: a(t).id,
|
|
3318
3284
|
modelValue: a(t)._value,
|
|
3319
3285
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3335,7 +3301,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3335
3301
|
]);
|
|
3336
3302
|
};
|
|
3337
3303
|
}
|
|
3338
|
-
}),
|
|
3304
|
+
}), ka = /* @__PURE__ */ M({
|
|
3339
3305
|
__name: "PrimeSlider",
|
|
3340
3306
|
props: {
|
|
3341
3307
|
context: Object
|
|
@@ -3345,11 +3311,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3345
3311
|
function l(r) {
|
|
3346
3312
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3347
3313
|
}
|
|
3348
|
-
const s =
|
|
3314
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3349
3315
|
return (r, o) => {
|
|
3350
|
-
const u =
|
|
3351
|
-
return
|
|
3352
|
-
|
|
3316
|
+
const u = F("Slider");
|
|
3317
|
+
return L(), P("div", null, [
|
|
3318
|
+
D(u, {
|
|
3353
3319
|
id: a(t).id,
|
|
3354
3320
|
modelValue: a(t)._value,
|
|
3355
3321
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3371,7 +3337,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3371
3337
|
]);
|
|
3372
3338
|
};
|
|
3373
3339
|
}
|
|
3374
|
-
}),
|
|
3340
|
+
}), Ca = /* @__PURE__ */ M({
|
|
3375
3341
|
__name: "PrimeToggleButton",
|
|
3376
3342
|
props: {
|
|
3377
3343
|
context: Object
|
|
@@ -3382,11 +3348,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3382
3348
|
var o;
|
|
3383
3349
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3384
3350
|
}
|
|
3385
|
-
const s =
|
|
3351
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3386
3352
|
return (r, o) => {
|
|
3387
|
-
const u =
|
|
3388
|
-
return
|
|
3389
|
-
|
|
3353
|
+
const u = F("ToggleButton");
|
|
3354
|
+
return L(), P("div", null, [
|
|
3355
|
+
D(u, {
|
|
3390
3356
|
modelValue: a(t)._value,
|
|
3391
3357
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3392
3358
|
"input-id": a(t).id,
|
|
@@ -3408,7 +3374,7 @@ const ea = /* @__PURE__ */ x({
|
|
|
3408
3374
|
]);
|
|
3409
3375
|
};
|
|
3410
3376
|
}
|
|
3411
|
-
}),
|
|
3377
|
+
}), Sa = /* @__PURE__ */ M({
|
|
3412
3378
|
__name: "PrimeSelectButton",
|
|
3413
3379
|
props: {
|
|
3414
3380
|
context: Object
|
|
@@ -3419,11 +3385,11 @@ const ea = /* @__PURE__ */ x({
|
|
|
3419
3385
|
var o;
|
|
3420
3386
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3421
3387
|
}
|
|
3422
|
-
const s =
|
|
3388
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3423
3389
|
return (r, o) => {
|
|
3424
|
-
const u =
|
|
3425
|
-
return
|
|
3426
|
-
|
|
3390
|
+
const u = F("SelectButton");
|
|
3391
|
+
return L(), P("div", null, [
|
|
3392
|
+
D(u, {
|
|
3427
3393
|
id: a(t).id,
|
|
3428
3394
|
modelValue: a(t)._value,
|
|
3429
3395
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3447,13 +3413,13 @@ const ea = /* @__PURE__ */ x({
|
|
|
3447
3413
|
]);
|
|
3448
3414
|
};
|
|
3449
3415
|
}
|
|
3450
|
-
}),
|
|
3416
|
+
}), Va = {
|
|
3451
3417
|
key: 0,
|
|
3452
3418
|
class: "formkit-prime-left"
|
|
3453
|
-
},
|
|
3419
|
+
}, Ia = {
|
|
3454
3420
|
key: 1,
|
|
3455
3421
|
class: "formkit-prime-right"
|
|
3456
|
-
},
|
|
3422
|
+
}, La = /* @__PURE__ */ M({
|
|
3457
3423
|
__name: "PrimeTriStateCheckbox",
|
|
3458
3424
|
props: {
|
|
3459
3425
|
context: Object
|
|
@@ -3464,12 +3430,12 @@ const ea = /* @__PURE__ */ x({
|
|
|
3464
3430
|
var o;
|
|
3465
3431
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3466
3432
|
}
|
|
3467
|
-
const s =
|
|
3433
|
+
const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3468
3434
|
return (r, o) => {
|
|
3469
|
-
const u =
|
|
3470
|
-
return
|
|
3471
|
-
a(t).attrs.labelLeft ? (
|
|
3472
|
-
|
|
3435
|
+
const u = F("TriStateCheckbox");
|
|
3436
|
+
return L(), P("div", null, [
|
|
3437
|
+
a(t).attrs.labelLeft ? (L(), P("span", Va, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
|
|
3438
|
+
D(u, {
|
|
3473
3439
|
modelValue: a(t)._value,
|
|
3474
3440
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3475
3441
|
"input-id": a(t).id,
|
|
@@ -3483,96 +3449,96 @@ const ea = /* @__PURE__ */ x({
|
|
|
3483
3449
|
pt: a(n).pt,
|
|
3484
3450
|
onClick: l
|
|
3485
3451
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
|
|
3486
|
-
a(t).attrs.labelRight ? (
|
|
3452
|
+
a(t).attrs.labelRight ? (L(), P("span", Ia, de(a(t).attrs.labelRight), 1)) : oe("", !0)
|
|
3487
3453
|
]);
|
|
3488
3454
|
};
|
|
3489
3455
|
}
|
|
3490
|
-
}),
|
|
3456
|
+
}), Pa = T(ma, {
|
|
3491
3457
|
props: ["iconRight", "iconLeft"]
|
|
3492
|
-
}), Aa =
|
|
3458
|
+
}), Aa = T(fa, {
|
|
3493
3459
|
props: ["iconRight", "iconLeft"]
|
|
3494
|
-
}), Oa =
|
|
3460
|
+
}), Oa = T(ua, {
|
|
3495
3461
|
props: []
|
|
3496
|
-
}),
|
|
3462
|
+
}), xa = T(_a, {
|
|
3497
3463
|
props: ["feedback", "toggleMask"]
|
|
3498
|
-
}),
|
|
3464
|
+
}), Ma = T(ba, {
|
|
3499
3465
|
props: ["rows"]
|
|
3500
|
-
}),
|
|
3466
|
+
}), Ea = T(la, {
|
|
3501
3467
|
props: []
|
|
3502
|
-
}),
|
|
3468
|
+
}), Ra = T(da, {
|
|
3503
3469
|
props: []
|
|
3504
|
-
}),
|
|
3470
|
+
}), ja = T(oa, {
|
|
3505
3471
|
props: []
|
|
3506
|
-
}),
|
|
3472
|
+
}), Fa = T(ra, {
|
|
3507
3473
|
props: []
|
|
3508
|
-
}),
|
|
3474
|
+
}), Da = T(va, {
|
|
3509
3475
|
props: []
|
|
3510
|
-
}), Ta =
|
|
3476
|
+
}), Ta = T(ha, {
|
|
3511
3477
|
props: []
|
|
3512
|
-
}),
|
|
3478
|
+
}), Ba = T(ta, {
|
|
3513
3479
|
props: []
|
|
3514
|
-
}),
|
|
3480
|
+
}), za = T(ka, {
|
|
3515
3481
|
props: []
|
|
3516
|
-
}),
|
|
3482
|
+
}), Ua = T(wa, {
|
|
3517
3483
|
props: []
|
|
3518
|
-
}),
|
|
3484
|
+
}), Ka = T($a, {
|
|
3519
3485
|
props: []
|
|
3520
|
-
}),
|
|
3486
|
+
}), Wa = T(aa, {
|
|
3521
3487
|
props: []
|
|
3522
|
-
}), Na =
|
|
3488
|
+
}), Na = T(ya, {
|
|
3523
3489
|
props: []
|
|
3524
|
-
}),
|
|
3490
|
+
}), Ha = T(sa, {
|
|
3525
3491
|
props: []
|
|
3526
|
-
}), qa =
|
|
3492
|
+
}), qa = T(Ca, {
|
|
3527
3493
|
props: []
|
|
3528
|
-
}),
|
|
3494
|
+
}), Za = T(Sa, {
|
|
3529
3495
|
props: []
|
|
3530
|
-
}),
|
|
3496
|
+
}), Ja = T(La, {
|
|
3531
3497
|
props: []
|
|
3532
|
-
}),
|
|
3533
|
-
primeInputText:
|
|
3498
|
+
}), Qa = {
|
|
3499
|
+
primeInputText: Pa,
|
|
3534
3500
|
primeInputNumber: Aa,
|
|
3535
3501
|
primeInputMask: Oa,
|
|
3536
|
-
primePassword:
|
|
3537
|
-
primeCheckbox:
|
|
3538
|
-
primeInputSwitch:
|
|
3539
|
-
primeTextarea:
|
|
3540
|
-
primeEditor:
|
|
3541
|
-
primeDropdown:
|
|
3542
|
-
primeMultiSelect:
|
|
3543
|
-
primeCalendar:
|
|
3544
|
-
primeSlider:
|
|
3545
|
-
primeChips:
|
|
3502
|
+
primePassword: xa,
|
|
3503
|
+
primeCheckbox: Ea,
|
|
3504
|
+
primeInputSwitch: Ra,
|
|
3505
|
+
primeTextarea: Ma,
|
|
3506
|
+
primeEditor: ja,
|
|
3507
|
+
primeDropdown: Fa,
|
|
3508
|
+
primeMultiSelect: Da,
|
|
3509
|
+
primeCalendar: Ba,
|
|
3510
|
+
primeSlider: za,
|
|
3511
|
+
primeChips: Wa,
|
|
3546
3512
|
primeKnob: Na,
|
|
3547
|
-
primeRating:
|
|
3548
|
-
primeRadioButton:
|
|
3549
|
-
primeColorPicker:
|
|
3513
|
+
primeRating: Ua,
|
|
3514
|
+
primeRadioButton: Ka,
|
|
3515
|
+
primeColorPicker: Ha,
|
|
3550
3516
|
primeToggleButton: qa,
|
|
3551
3517
|
primeListbox: Ta,
|
|
3552
|
-
primeSelectButton:
|
|
3553
|
-
primeTriStateCheckbox:
|
|
3518
|
+
primeSelectButton: Za,
|
|
3519
|
+
primeTriStateCheckbox: Ja
|
|
3554
3520
|
};
|
|
3555
3521
|
export {
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3522
|
+
Ba as primeCalendarDefinition,
|
|
3523
|
+
Ea as primeCheckboxDefinition,
|
|
3524
|
+
Wa as primeChipsDefinition,
|
|
3525
|
+
Ha as primeColorPickerDefinition,
|
|
3526
|
+
Fa as primeDropdownDefinition,
|
|
3527
|
+
ja as primeEditorDefinition,
|
|
3562
3528
|
Oa as primeInputMaskDefinition,
|
|
3563
3529
|
Aa as primeInputNumberDefinition,
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3530
|
+
Ra as primeInputSwitchDefinition,
|
|
3531
|
+
Pa as primeInputTextDefinition,
|
|
3532
|
+
Qa as primeInputs,
|
|
3567
3533
|
Na as primeKnobDefinition,
|
|
3568
3534
|
Ta as primeListboxDefinition,
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3535
|
+
Da as primeMultiSelectDefinition,
|
|
3536
|
+
xa as primePasswordDefinition,
|
|
3537
|
+
Ka as primeRadioButtonDefinition,
|
|
3538
|
+
Ua as primeRatingDefinition,
|
|
3539
|
+
Za as primeSelectButtonDefinition,
|
|
3540
|
+
za as primeSliderDefinition,
|
|
3541
|
+
Ma as primeTextareaDefinition,
|
|
3576
3542
|
qa as primeToggleButtonDefinition,
|
|
3577
|
-
|
|
3543
|
+
Ja as primeTriStateCheckboxDefinition
|
|
3578
3544
|
};
|