@sfxcode/formkit-primevue 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formkit/PrimeCalendar.vue.d.ts +11 -0
- package/dist/formkit/PrimeCheckBox.vue.d.ts +10 -0
- package/dist/formkit/PrimeChips.vue.d.ts +10 -0
- package/dist/formkit/PrimeColorPicker.vue.d.ts +10 -0
- package/dist/formkit/PrimeDropdown.vue.d.ts +11 -0
- package/dist/formkit/PrimeEditor.vue.d.ts +12 -0
- package/dist/formkit/PrimeInputMask.vue.d.ts +10 -0
- package/dist/formkit/PrimeInputNumber.vue.d.ts +11 -0
- package/dist/formkit/PrimeInputSwitch.vue.d.ts +10 -0
- package/dist/formkit/PrimeInputText.vue.d.ts +14 -0
- package/dist/formkit/PrimeInputTextArea.vue.d.ts +11 -0
- package/dist/formkit/PrimeKnob.vue.d.ts +10 -0
- package/dist/formkit/PrimeListbox.vue.d.ts +10 -0
- package/dist/formkit/PrimeMultiSelect.vue.d.ts +10 -0
- package/dist/formkit/PrimePassword.vue.d.ts +11 -0
- package/dist/formkit/PrimeRating.vue.d.ts +10 -0
- package/dist/formkit/PrimeSlider.vue.d.ts +10 -0
- package/dist/formkit/PrimeToggleButton.vue.d.ts +10 -0
- package/dist/{index.d.ts → formkit/index.d.ts} +0 -0
- package/dist/formkit-primevue.es.js +504 -487
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +25 -24
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import { defineComponent as A, getCurrentInstance as ft, watch as ce, watchEffect as Z, reactive as xt, h as pe, ref as ie, inject as de, computed as At, provide as Et, toRef as
|
|
1
|
+
import { defineComponent as A, getCurrentInstance as ft, watch as ce, watchEffect as Z, reactive as xt, h as pe, ref as ie, inject as de, computed as At, provide as Et, toRef as jt, onUnmounted as Rt, isRef as Re, isReactive as Ze, toRaw as Lt, markRaw as Mt, createTextVNode as Tt, resolveComponent as L, openBlock as O, createBlock as W, unref as l, normalizeClass as F, createElementBlock as H, Fragment as ct, toDisplayString as me, createCommentVNode as X, createVNode as Le, normalizeStyle as Ft } from "vue";
|
|
2
|
+
const Dt = [
|
|
3
|
+
"__key",
|
|
4
|
+
"__init",
|
|
5
|
+
"__shim",
|
|
6
|
+
"__original",
|
|
7
|
+
"__index",
|
|
8
|
+
"__prevKey"
|
|
9
|
+
];
|
|
2
10
|
function pt() {
|
|
3
11
|
return Math.random().toString(36).substring(2, 15);
|
|
4
12
|
}
|
|
5
|
-
function
|
|
13
|
+
function Wt(e, n) {
|
|
6
14
|
const t = e instanceof Set ? e : new Set(e);
|
|
7
15
|
return n && n.forEach((r) => t.add(r)), [...t];
|
|
8
16
|
}
|
|
9
|
-
function
|
|
17
|
+
function R(e, n) {
|
|
10
18
|
return Object.prototype.hasOwnProperty.call(e, n);
|
|
11
19
|
}
|
|
12
20
|
function Me(e, n, t = !0, r = ["__key"]) {
|
|
@@ -47,7 +55,7 @@ function Te(e, n, t = !1, r = !1) {
|
|
|
47
55
|
if (typeof n == "string")
|
|
48
56
|
return n;
|
|
49
57
|
for (const s in e)
|
|
50
|
-
if (
|
|
58
|
+
if (R(n, s) && (n[s] !== void 0 || !r)) {
|
|
51
59
|
if (t && Array.isArray(e[s]) && Array.isArray(n[s])) {
|
|
52
60
|
i[s] = e[s].concat(n[s]);
|
|
53
61
|
continue;
|
|
@@ -58,10 +66,10 @@ function Te(e, n, t = !1, r = !1) {
|
|
|
58
66
|
} else
|
|
59
67
|
i[s] = e[s];
|
|
60
68
|
for (const s in n)
|
|
61
|
-
!
|
|
69
|
+
!R(i, s) && n[s] !== void 0 && (i[s] = n[s]);
|
|
62
70
|
return i;
|
|
63
71
|
}
|
|
64
|
-
function
|
|
72
|
+
function Ut(e) {
|
|
65
73
|
if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
|
|
66
74
|
return !1;
|
|
67
75
|
const n = e[0];
|
|
@@ -70,7 +78,7 @@ function Wt(e) {
|
|
|
70
78
|
return !1;
|
|
71
79
|
return !0;
|
|
72
80
|
}
|
|
73
|
-
function
|
|
81
|
+
function Kt(e) {
|
|
74
82
|
if (!e.length)
|
|
75
83
|
return "";
|
|
76
84
|
let n = "", t = "";
|
|
@@ -86,7 +94,7 @@ function Q(...e) {
|
|
|
86
94
|
return Object.assign(n, m);
|
|
87
95
|
}, {});
|
|
88
96
|
}
|
|
89
|
-
function
|
|
97
|
+
function qt(e) {
|
|
90
98
|
const n = [];
|
|
91
99
|
let t = "", r = 0, i = "", s = "";
|
|
92
100
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -115,7 +123,7 @@ function oe(e) {
|
|
|
115
123
|
function dt(e) {
|
|
116
124
|
return e.replace(/([a-z0-9])([A-Z])/g, (n, t, r) => t + "-" + r.toLowerCase()).replace(" ", "-").toLowerCase();
|
|
117
125
|
}
|
|
118
|
-
function he(e, n =
|
|
126
|
+
function he(e, n = Dt) {
|
|
119
127
|
if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
|
|
120
128
|
return e;
|
|
121
129
|
let t;
|
|
@@ -130,14 +138,14 @@ function he(e, n = ["__key", "__init"]) {
|
|
|
130
138
|
function J(e) {
|
|
131
139
|
return typeof e == "object" ? he(e) : e;
|
|
132
140
|
}
|
|
133
|
-
function
|
|
141
|
+
function Bt(e, n) {
|
|
134
142
|
if (!e || typeof e != "object")
|
|
135
143
|
return null;
|
|
136
144
|
const t = n.split(".");
|
|
137
145
|
let r = e;
|
|
138
146
|
for (const i in t) {
|
|
139
147
|
const s = t[i];
|
|
140
|
-
if (
|
|
148
|
+
if (R(r, s) && (r = r[s]), +i === t.length - 1)
|
|
141
149
|
return r;
|
|
142
150
|
if (!r || typeof r != "object")
|
|
143
151
|
return null;
|
|
@@ -203,7 +211,7 @@ function yt() {
|
|
|
203
211
|
t = void 0, s.forEach(([o, a]) => r(o, a)), i && i.walk((o) => o._e.play());
|
|
204
212
|
}, r;
|
|
205
213
|
}
|
|
206
|
-
function
|
|
214
|
+
function zt(e, n, t, r, i = !0) {
|
|
207
215
|
return n._e(e, {
|
|
208
216
|
payload: r,
|
|
209
217
|
name: t,
|
|
@@ -211,13 +219,13 @@ function Bt(e, n, t, r, i = !0) {
|
|
|
211
219
|
origin: e
|
|
212
220
|
}), e;
|
|
213
221
|
}
|
|
214
|
-
function
|
|
222
|
+
function Nt(e, n, t) {
|
|
215
223
|
return be(e.parent) && e.parent._e(e.parent, t), e;
|
|
216
224
|
}
|
|
217
|
-
function
|
|
225
|
+
function Ht(e, n, t, r) {
|
|
218
226
|
return n._e.on(t, r);
|
|
219
227
|
}
|
|
220
|
-
function
|
|
228
|
+
function Zt(e, n, t) {
|
|
221
229
|
return n._e.off(t), e;
|
|
222
230
|
}
|
|
223
231
|
const De = Fe();
|
|
@@ -246,15 +254,15 @@ function _e(e, n) {
|
|
|
246
254
|
return n && t.value && t.meta.localize !== !1 && (t.value = n.t(t), t.meta.locale = n.config.locale), t;
|
|
247
255
|
}
|
|
248
256
|
const Ge = {
|
|
249
|
-
apply:
|
|
250
|
-
set:
|
|
257
|
+
apply: en,
|
|
258
|
+
set: Jt,
|
|
251
259
|
remove: ht,
|
|
252
|
-
filter:
|
|
253
|
-
reduce:
|
|
254
|
-
release:
|
|
255
|
-
touch:
|
|
260
|
+
filter: Gt,
|
|
261
|
+
reduce: Xt,
|
|
262
|
+
release: rn,
|
|
263
|
+
touch: Qt
|
|
256
264
|
};
|
|
257
|
-
function
|
|
265
|
+
function Yt(e = !1) {
|
|
258
266
|
const n = {};
|
|
259
267
|
let t, r = e, i = [];
|
|
260
268
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -262,7 +270,7 @@ function Zt(e = !1) {
|
|
|
262
270
|
const a = new Proxy(n, {
|
|
263
271
|
get(...m) {
|
|
264
272
|
const [h, _] = m;
|
|
265
|
-
return _ === "buffer" ? r : _ === "_b" ? i : _ === "_m" ? s : _ === "_r" ? o :
|
|
273
|
+
return _ === "buffer" ? r : _ === "_b" ? i : _ === "_m" ? s : _ === "_r" ? o : R(Ge, _) ? Ge[_].bind(null, n, a, t) : Reflect.get(...m);
|
|
266
274
|
},
|
|
267
275
|
set(m, h, _) {
|
|
268
276
|
return h === "_n" ? (t = _, o === "__n" && _t(t, a), !0) : h === "_b" ? (i = _, !0) : h === "buffer" ? (r = _, !0) : h === "_r" ? (o = _, !0) : (U(101, t), !1);
|
|
@@ -270,7 +278,7 @@ function Zt(e = !1) {
|
|
|
270
278
|
});
|
|
271
279
|
return a;
|
|
272
280
|
}
|
|
273
|
-
function
|
|
281
|
+
function Jt(e, n, t, r) {
|
|
274
282
|
if (n.buffer)
|
|
275
283
|
return n._b.push([[r]]), n;
|
|
276
284
|
if (e[r.key] !== r) {
|
|
@@ -278,38 +286,38 @@ function Yt(e, n, t, r) {
|
|
|
278
286
|
const s = r.value;
|
|
279
287
|
r.value = t.t(r), r.value !== s && (r.meta.locale = t.props.locale);
|
|
280
288
|
}
|
|
281
|
-
const i = `message-${
|
|
289
|
+
const i = `message-${R(e, r.key) ? "updated" : "added"}`;
|
|
282
290
|
e[r.key] = Object.freeze(t.hook.message.dispatch(r)), t.emit(i, r);
|
|
283
291
|
}
|
|
284
292
|
return n;
|
|
285
293
|
}
|
|
286
|
-
function
|
|
294
|
+
function Qt(e, n) {
|
|
287
295
|
for (const t in e) {
|
|
288
296
|
const r = { ...e[t] };
|
|
289
297
|
n.set(r);
|
|
290
298
|
}
|
|
291
299
|
}
|
|
292
300
|
function ht(e, n, t, r) {
|
|
293
|
-
if (
|
|
301
|
+
if (R(e, r)) {
|
|
294
302
|
const i = e[r];
|
|
295
303
|
delete e[r], t.emit("message-removed", i);
|
|
296
304
|
}
|
|
297
305
|
return n.buffer === !0 && (n._b = n._b.filter((i) => (i[0] = i[0].filter((s) => s.key !== r), i[1] || i[0].length))), n;
|
|
298
306
|
}
|
|
299
|
-
function
|
|
307
|
+
function Gt(e, n, t, r, i) {
|
|
300
308
|
for (const s in e) {
|
|
301
309
|
const o = e[s];
|
|
302
310
|
(!i || o.type === i) && !r(o) && ht(e, n, t, s);
|
|
303
311
|
}
|
|
304
312
|
}
|
|
305
|
-
function
|
|
313
|
+
function Xt(e, n, t, r, i) {
|
|
306
314
|
for (const s in e) {
|
|
307
315
|
const o = e[s];
|
|
308
316
|
i = r(i, o);
|
|
309
317
|
}
|
|
310
318
|
return i;
|
|
311
319
|
}
|
|
312
|
-
function
|
|
320
|
+
function en(e, n, t, r, i) {
|
|
313
321
|
if (Array.isArray(r)) {
|
|
314
322
|
if (n.buffer) {
|
|
315
323
|
n._b.push([r, i]);
|
|
@@ -320,10 +328,10 @@ function Xt(e, n, t, r, i) {
|
|
|
320
328
|
} else
|
|
321
329
|
for (const s in r) {
|
|
322
330
|
const o = t.at(s);
|
|
323
|
-
o ? o.store.apply(r[s], i) :
|
|
331
|
+
o ? o.store.apply(r[s], i) : nn(t, n, s, r[s], i);
|
|
324
332
|
}
|
|
325
333
|
}
|
|
326
|
-
function
|
|
334
|
+
function tn(e, ...n) {
|
|
327
335
|
const t = `${e.name}-set`, r = (i) => _e({
|
|
328
336
|
key: mt(i),
|
|
329
337
|
type: "error",
|
|
@@ -341,7 +349,7 @@ function en(e, ...n) {
|
|
|
341
349
|
}
|
|
342
350
|
});
|
|
343
351
|
}
|
|
344
|
-
function
|
|
352
|
+
function nn(e, n, t, r, i) {
|
|
345
353
|
var s;
|
|
346
354
|
const o = n._m;
|
|
347
355
|
o.has(t) || o.set(t, []), n._r || (n._r = _t(e, n)), (s = o.get(t)) === null || s === void 0 || s.push([r, i]);
|
|
@@ -355,29 +363,29 @@ function _t(e, n) {
|
|
|
355
363
|
}), n._m.size === 0 && n._r && (e.off(n._r), n._r = void 0);
|
|
356
364
|
});
|
|
357
365
|
}
|
|
358
|
-
function
|
|
366
|
+
function rn(e, n) {
|
|
359
367
|
n.buffer = !1, n._b.forEach(([t, r]) => n.apply(t, r)), n._b = [];
|
|
360
368
|
}
|
|
361
|
-
function
|
|
369
|
+
function sn() {
|
|
362
370
|
const e = {};
|
|
363
371
|
let n;
|
|
364
372
|
return {
|
|
365
|
-
count: (...t) =>
|
|
373
|
+
count: (...t) => on(n, e, ...t),
|
|
366
374
|
init(t) {
|
|
367
375
|
n = t, t.on("message-added.deep", Xe(e, 1)), t.on("message-removed.deep", Xe(e, -1));
|
|
368
376
|
},
|
|
369
377
|
merge: (t) => et(n, e, t),
|
|
370
378
|
settled(t) {
|
|
371
|
-
return
|
|
379
|
+
return R(e, t) ? e[t].promise : Promise.resolve();
|
|
372
380
|
},
|
|
373
381
|
unmerge: (t) => et(n, e, t, !0),
|
|
374
382
|
value(t) {
|
|
375
|
-
return
|
|
383
|
+
return R(e, t) ? e[t].count : 0;
|
|
376
384
|
}
|
|
377
385
|
};
|
|
378
386
|
}
|
|
379
|
-
function
|
|
380
|
-
if (r =
|
|
387
|
+
function on(e, n, t, r, i = 0) {
|
|
388
|
+
if (r = ln(r || t), !R(n, t)) {
|
|
381
389
|
const s = {
|
|
382
390
|
condition: r,
|
|
383
391
|
count: 0,
|
|
@@ -393,7 +401,7 @@ function sn(e, n, t, r, i = 0) {
|
|
|
393
401
|
}
|
|
394
402
|
return gt(n[t], i).promise;
|
|
395
403
|
}
|
|
396
|
-
function
|
|
404
|
+
function ln(e) {
|
|
397
405
|
return typeof e == "function" ? e : (n) => n.type === e;
|
|
398
406
|
}
|
|
399
407
|
function gt(e, n) {
|
|
@@ -419,8 +427,8 @@ function et(e, n, t, r = !1) {
|
|
|
419
427
|
while (e);
|
|
420
428
|
}
|
|
421
429
|
}
|
|
422
|
-
const Ue = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Ke = yt(),
|
|
423
|
-
function
|
|
430
|
+
const Ue = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Ke = yt(), an = [];
|
|
431
|
+
function un(e) {
|
|
424
432
|
e.props.id && (Ue.set(e.props.id, e), le.set(e, e.props.id), Ke(e, {
|
|
425
433
|
payload: e,
|
|
426
434
|
name: e.props.id,
|
|
@@ -428,7 +436,7 @@ function an(e) {
|
|
|
428
436
|
origin: e
|
|
429
437
|
}));
|
|
430
438
|
}
|
|
431
|
-
function
|
|
439
|
+
function fn(e) {
|
|
432
440
|
if (le.has(e)) {
|
|
433
441
|
const n = le.get(e);
|
|
434
442
|
le.delete(e), Ue.delete(n), Ke(e, {
|
|
@@ -442,14 +450,14 @@ function un(e) {
|
|
|
442
450
|
function vt(e) {
|
|
443
451
|
return Ue.get(e);
|
|
444
452
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
453
|
+
function cn(e, n) {
|
|
454
|
+
an.push(Ke.on(e, n));
|
|
447
455
|
}
|
|
448
456
|
function tt(e, n, t) {
|
|
449
457
|
let r = !0;
|
|
450
458
|
return n in e.config._t ? r = !1 : e.emit(`config:${n}`, t, !1), n in e.props || (e.emit("prop", { prop: n, value: t }), e.emit(`prop:${n}`, t)), r;
|
|
451
459
|
}
|
|
452
|
-
function
|
|
460
|
+
function pn(e) {
|
|
453
461
|
const n = document.getElementById(e);
|
|
454
462
|
if (n instanceof HTMLFormElement) {
|
|
455
463
|
const t = new Event("submit", { cancelable: !0, bubbles: !0 });
|
|
@@ -458,7 +466,7 @@ function cn(e) {
|
|
|
458
466
|
}
|
|
459
467
|
ve(151, e);
|
|
460
468
|
}
|
|
461
|
-
function
|
|
469
|
+
function dn(e) {
|
|
462
470
|
const n = (t) => {
|
|
463
471
|
for (const r in t.store) {
|
|
464
472
|
const i = t.store[r];
|
|
@@ -467,23 +475,23 @@ function pn(e) {
|
|
|
467
475
|
};
|
|
468
476
|
n(e), e.walk(n);
|
|
469
477
|
}
|
|
470
|
-
function
|
|
478
|
+
function mn(e, n) {
|
|
471
479
|
const t = typeof e == "string" ? vt(e) : e;
|
|
472
480
|
if (t) {
|
|
473
481
|
const r = (s) => J(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
|
|
474
482
|
t._e.pause(t), t.input(J(n) || r(t), !1), t.walk((s) => s.input(r(s), !1));
|
|
475
483
|
const i = r(t);
|
|
476
|
-
return t.input(typeof i == "object" ? J(n) || re(i) : i, !1), t._e.play(t),
|
|
484
|
+
return t.input(typeof i == "object" ? J(n) || re(i) : i, !1), t._e.play(t), dn(t), t.emit("reset", t), t;
|
|
477
485
|
}
|
|
478
486
|
ve(152, e);
|
|
479
487
|
}
|
|
480
|
-
const
|
|
488
|
+
const yn = {
|
|
481
489
|
delimiter: ".",
|
|
482
490
|
delay: 0,
|
|
483
491
|
locale: "en",
|
|
484
492
|
rootClasses: (e) => ({ [`formkit-${dt(e)}`]: !0 })
|
|
485
493
|
}, bt = Symbol("index"), Pe = Symbol("removed"), Oe = Symbol("moved"), $t = Symbol("inserted");
|
|
486
|
-
function
|
|
494
|
+
function hn(e) {
|
|
487
495
|
return e.type === "list" && Array.isArray(e._value);
|
|
488
496
|
}
|
|
489
497
|
function be(e) {
|
|
@@ -491,42 +499,42 @@ function be(e) {
|
|
|
491
499
|
}
|
|
492
500
|
const ae = (e, n, t) => {
|
|
493
501
|
U(102, [e, t]);
|
|
494
|
-
},
|
|
495
|
-
_c: C(
|
|
496
|
-
add: C(
|
|
497
|
-
addProps: C(
|
|
498
|
-
address: C(
|
|
499
|
-
at: C(
|
|
500
|
-
bubble: C(
|
|
501
|
-
clearErrors: C(
|
|
502
|
-
calm: C(
|
|
502
|
+
}, _n = {
|
|
503
|
+
_c: C(Fn, ae, !1),
|
|
504
|
+
add: C(xn),
|
|
505
|
+
addProps: C(On),
|
|
506
|
+
address: C(Wn, ae, !1),
|
|
507
|
+
at: C(Un),
|
|
508
|
+
bubble: C(Nt),
|
|
509
|
+
clearErrors: C(Yn),
|
|
510
|
+
calm: C(Vn),
|
|
503
511
|
config: C(!1),
|
|
504
|
-
define: C(
|
|
505
|
-
disturb: C(
|
|
506
|
-
destroy: C(
|
|
512
|
+
define: C(Pn),
|
|
513
|
+
disturb: C(Cn),
|
|
514
|
+
destroy: C(In),
|
|
507
515
|
hydrate: C(Sn),
|
|
508
|
-
index: C(
|
|
509
|
-
input: C(
|
|
510
|
-
each: C(
|
|
511
|
-
emit: C(
|
|
512
|
-
find: C(
|
|
513
|
-
on: C(
|
|
514
|
-
off: C(
|
|
515
|
-
parent: C(!1,
|
|
516
|
+
index: C(Tn, Mn, !1),
|
|
517
|
+
input: C(kt),
|
|
518
|
+
each: C(jn),
|
|
519
|
+
emit: C(zt),
|
|
520
|
+
find: C(qn),
|
|
521
|
+
on: C(Ht),
|
|
522
|
+
off: C(Zt),
|
|
523
|
+
parent: C(!1, An),
|
|
516
524
|
plugins: C(!1),
|
|
517
|
-
remove: C(
|
|
518
|
-
root: C(
|
|
519
|
-
reset: C(
|
|
520
|
-
resetConfig: C(
|
|
525
|
+
remove: C(En),
|
|
526
|
+
root: C(zn, ae, !1),
|
|
527
|
+
reset: C(Zn),
|
|
528
|
+
resetConfig: C(Ln),
|
|
521
529
|
setErrors: C(Vt),
|
|
522
|
-
submit: C(
|
|
523
|
-
t: C(
|
|
530
|
+
submit: C(Hn),
|
|
531
|
+
t: C(Nn),
|
|
524
532
|
use: C(qe),
|
|
525
|
-
name: C(
|
|
533
|
+
name: C(Dn, !1, !1),
|
|
526
534
|
walk: C(Rn)
|
|
527
535
|
};
|
|
528
|
-
function
|
|
529
|
-
return new Map(Object.entries(
|
|
536
|
+
function gn() {
|
|
537
|
+
return new Map(Object.entries(_n));
|
|
530
538
|
}
|
|
531
539
|
function C(e, n, t = !0) {
|
|
532
540
|
return {
|
|
@@ -534,7 +542,7 @@ function C(e, n, t = !0) {
|
|
|
534
542
|
set: n !== void 0 ? n : ae.bind(null)
|
|
535
543
|
};
|
|
536
544
|
}
|
|
537
|
-
function
|
|
545
|
+
function vn() {
|
|
538
546
|
const e = /* @__PURE__ */ new Map();
|
|
539
547
|
return new Proxy(e, {
|
|
540
548
|
get(n, t) {
|
|
@@ -542,18 +550,18 @@ function gn() {
|
|
|
542
550
|
}
|
|
543
551
|
});
|
|
544
552
|
}
|
|
545
|
-
let
|
|
546
|
-
function
|
|
553
|
+
let bn = 0, $n = 0;
|
|
554
|
+
function wn(e) {
|
|
547
555
|
var n, t;
|
|
548
|
-
return ((n = e.parent) === null || n === void 0 ? void 0 : n.type) === "list" ? bt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++
|
|
556
|
+
return ((n = e.parent) === null || n === void 0 ? void 0 : n.type) === "list" ? bt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++bn}`;
|
|
549
557
|
}
|
|
550
558
|
function wt(e) {
|
|
551
|
-
return e.type === "group" ? re(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? re(Array.isArray(e.value) ? e.value : []) : e.value
|
|
559
|
+
return e.type === "group" ? re(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? re(Array.isArray(e.value) ? e.value : []) : e.value;
|
|
552
560
|
}
|
|
553
|
-
function
|
|
554
|
-
return n._value =
|
|
561
|
+
function kt(e, n, t, r = !0) {
|
|
562
|
+
return n._value = kn(e, e.hook.input.dispatch(t)), e.emit("input", n._value), n.isSettled && e.disturb(), r ? (n._tmo && clearTimeout(n._tmo), n._tmo = setTimeout(ge, e.props.delay, e, n)) : ge(e, n), n.settled;
|
|
555
563
|
}
|
|
556
|
-
function
|
|
564
|
+
function kn(e, n) {
|
|
557
565
|
switch (e.type) {
|
|
558
566
|
case "input":
|
|
559
567
|
break;
|
|
@@ -569,9 +577,9 @@ function wn(e, n) {
|
|
|
569
577
|
function ge(e, n, t = !0, r = !0) {
|
|
570
578
|
n._value = n.value = e.hook.commit.dispatch(n._value), e.type !== "input" && r && e.hydrate(), e.emit("commit", n.value), t && e.calm();
|
|
571
579
|
}
|
|
572
|
-
function
|
|
580
|
+
function St(e, { name: n, value: t, from: r }) {
|
|
573
581
|
if (!Object.isFrozen(e._value)) {
|
|
574
|
-
if (
|
|
582
|
+
if (hn(e)) {
|
|
575
583
|
const i = t === Pe ? [] : t === Oe && typeof r == "number" ? e._value.splice(r, 1) : [t];
|
|
576
584
|
e._value.splice(n, t === Oe || r === $t ? 0 : 1, ...i);
|
|
577
585
|
return;
|
|
@@ -587,31 +595,31 @@ function Sn(e, n) {
|
|
|
587
595
|
const i = r.type !== "input" || t[r.name] && typeof t[r.name] == "object" ? re(t[r.name]) : t[r.name];
|
|
588
596
|
r.input(i, !1);
|
|
589
597
|
} else
|
|
590
|
-
(e.type !== "list" || typeof r.name == "number") &&
|
|
598
|
+
(e.type !== "list" || typeof r.name == "number") && St(n, { name: r.name, value: r.value }), t.__init || (r.type === "group" ? r.input({}, !1) : r.type === "list" ? r.input([], !1) : r.input(void 0, !1));
|
|
591
599
|
}), e;
|
|
592
600
|
}
|
|
593
|
-
function
|
|
601
|
+
function Cn(e, n) {
|
|
594
602
|
var t;
|
|
595
603
|
return n._d <= 0 && (n.isSettled = !1, e.emit("settled", !1, !1), n.settled = new Promise((r) => {
|
|
596
604
|
n._resolve = r;
|
|
597
605
|
}), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), n._d++, e;
|
|
598
606
|
}
|
|
599
|
-
function
|
|
607
|
+
function Vn(e, n, t) {
|
|
600
608
|
var r;
|
|
601
609
|
if (t !== void 0 && e.type !== "input")
|
|
602
|
-
return
|
|
610
|
+
return St(n, t), ge(e, n, !0, !1);
|
|
603
611
|
n._d > 0 && n._d--, n._d === 0 && (n.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((r = e.parent) === null || r === void 0 || r.calm({ name: e.name, value: n.value })), n._resolve && n._resolve(n.value));
|
|
604
612
|
}
|
|
605
|
-
function
|
|
606
|
-
e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e),
|
|
613
|
+
function In(e, n) {
|
|
614
|
+
e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), fn(e), n._value = n.value = void 0, e.emit("destroyed", e);
|
|
607
615
|
}
|
|
608
|
-
function
|
|
616
|
+
function Pn(e, n, t) {
|
|
609
617
|
n.type = t.type, n.props.definition = he(t), n.value = n._value = wt({
|
|
610
618
|
type: e.type,
|
|
611
619
|
value: n.value
|
|
612
620
|
}), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), n.props.type = t.forceTypeProp), t.family && (n.props.family = t.family), t.features && t.features.forEach((r) => r(e)), t.props && e.addProps(t.props), e.emit("defined", t);
|
|
613
621
|
}
|
|
614
|
-
function
|
|
622
|
+
function On(e, n, t) {
|
|
615
623
|
var r;
|
|
616
624
|
if (e.props.attrs) {
|
|
617
625
|
const i = { ...e.props.attrs };
|
|
@@ -628,7 +636,7 @@ function Pn(e, n, t) {
|
|
|
628
636
|
}
|
|
629
637
|
return e.emit("added-props", t), e;
|
|
630
638
|
}
|
|
631
|
-
function
|
|
639
|
+
function xn(e, n, t, r) {
|
|
632
640
|
if (e.type === "input" && U(100, e), t.parent && t.parent !== e && t.parent.remove(t), n.children.includes(t) || (r !== void 0 && e.type === "list" ? (n.children.splice(r, 0, t), Array.isArray(e.value) && e.value.length < n.children.length && e.disturb().calm({
|
|
633
641
|
name: r,
|
|
634
642
|
value: t.value,
|
|
@@ -640,10 +648,10 @@ function On(e, n, t, r) {
|
|
|
640
648
|
t.use(e.plugins);
|
|
641
649
|
return ge(e, n, !1), e.ledger.merge(t), e.emit("child", t), e;
|
|
642
650
|
}
|
|
643
|
-
function
|
|
651
|
+
function An(e, n, t, r) {
|
|
644
652
|
return be(r) ? (e.parent && e.parent !== r && e.parent.remove(e), n.parent = r, e.resetConfig(), r.children.includes(e) ? e.use(r.plugins) : r.add(e), !0) : r === null ? (n.parent = null, !0) : !1;
|
|
645
653
|
}
|
|
646
|
-
function
|
|
654
|
+
function En(e, n, t) {
|
|
647
655
|
const r = n.children.indexOf(t);
|
|
648
656
|
if (r !== -1) {
|
|
649
657
|
t.isSettled && e.disturb(), n.children.splice(r, 1);
|
|
@@ -657,7 +665,7 @@ function An(e, n, t) {
|
|
|
657
665
|
}
|
|
658
666
|
return e.ledger.unmerge(t), e;
|
|
659
667
|
}
|
|
660
|
-
function
|
|
668
|
+
function jn(e, n, t) {
|
|
661
669
|
n.children.forEach((r) => t(r));
|
|
662
670
|
}
|
|
663
671
|
function Rn(e, n, t, r = !1) {
|
|
@@ -665,38 +673,38 @@ function Rn(e, n, t, r = !1) {
|
|
|
665
673
|
(t(i) !== !1 || !r) && i.walk(t);
|
|
666
674
|
});
|
|
667
675
|
}
|
|
668
|
-
function
|
|
676
|
+
function Ln(e, n) {
|
|
669
677
|
const t = e.parent || void 0;
|
|
670
678
|
n.config = Ct(e.config._t, t), e.walk((r) => r.resetConfig());
|
|
671
679
|
}
|
|
672
680
|
function qe(e, n, t, r = !0, i = !0) {
|
|
673
681
|
return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => qe(e, n, s)), e) : (n.plugins.has(t) || (i && typeof t.library == "function" && t.library(e), r && t(e) !== !1 && (n.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
|
|
674
682
|
}
|
|
675
|
-
function
|
|
683
|
+
function Mn(e, n, t, r) {
|
|
676
684
|
if (be(e.parent)) {
|
|
677
685
|
const i = e.parent.children, s = r >= i.length ? i.length - 1 : r < 0 ? 0 : r, o = i.indexOf(e);
|
|
678
686
|
return o === -1 ? !1 : (i.splice(o, 1), i.splice(s, 0, e), e.parent.children = i, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: Oe, from: o }), !0);
|
|
679
687
|
}
|
|
680
688
|
return !1;
|
|
681
689
|
}
|
|
682
|
-
function
|
|
690
|
+
function Tn(e) {
|
|
683
691
|
if (e.parent) {
|
|
684
692
|
const n = [...e.parent.children].indexOf(e);
|
|
685
693
|
return n === -1 ? e.parent.children.length : n;
|
|
686
694
|
}
|
|
687
695
|
return -1;
|
|
688
696
|
}
|
|
689
|
-
function
|
|
697
|
+
function Fn(e, n) {
|
|
690
698
|
return n;
|
|
691
699
|
}
|
|
692
|
-
function
|
|
700
|
+
function Dn(e, n) {
|
|
693
701
|
var t;
|
|
694
702
|
return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : n.name !== bt ? n.name : e.index;
|
|
695
703
|
}
|
|
696
|
-
function
|
|
704
|
+
function Wn(e, n) {
|
|
697
705
|
return n.parent ? n.parent.address.concat([e.name]) : [e.name];
|
|
698
706
|
}
|
|
699
|
-
function
|
|
707
|
+
function Un(e, n, t) {
|
|
700
708
|
const r = typeof t == "string" ? t.split(e.config.delimiter) : t;
|
|
701
709
|
if (!r.length)
|
|
702
710
|
return;
|
|
@@ -715,12 +723,12 @@ function Wn(e, n, t) {
|
|
|
715
723
|
s = e;
|
|
716
724
|
break;
|
|
717
725
|
default:
|
|
718
|
-
s = s.children.find((a) => String(a.name) === String(o)) ||
|
|
726
|
+
s = s.children.find((a) => String(a.name) === String(o)) || Kn(s, o);
|
|
719
727
|
}
|
|
720
728
|
}
|
|
721
729
|
return s || void 0;
|
|
722
730
|
}
|
|
723
|
-
function
|
|
731
|
+
function Kn(e, n) {
|
|
724
732
|
const t = String(n).match(/^(find)\((.*)\)$/);
|
|
725
733
|
if (t) {
|
|
726
734
|
const [, r, i] = t, s = i.split(",").map((o) => o.trim());
|
|
@@ -732,10 +740,10 @@ function Un(e, n) {
|
|
|
732
740
|
}
|
|
733
741
|
}
|
|
734
742
|
}
|
|
735
|
-
function
|
|
736
|
-
return
|
|
743
|
+
function qn(e, n, t, r) {
|
|
744
|
+
return Bn(e, t, r);
|
|
737
745
|
}
|
|
738
|
-
function
|
|
746
|
+
function Bn(e, n, t = "name") {
|
|
739
747
|
const r = typeof t == "string" ? (s) => s[t] == n : t, i = [e];
|
|
740
748
|
for (; i.length; ) {
|
|
741
749
|
const s = i.shift();
|
|
@@ -744,7 +752,7 @@ function qn(e, n, t = "name") {
|
|
|
744
752
|
i.push(...s.children);
|
|
745
753
|
}
|
|
746
754
|
}
|
|
747
|
-
function
|
|
755
|
+
function zn(e) {
|
|
748
756
|
let n = e;
|
|
749
757
|
for (; n.parent; )
|
|
750
758
|
n = n.parent;
|
|
@@ -770,7 +778,7 @@ function Ct(e = {}, n) {
|
|
|
770
778
|
if (o !== void 0)
|
|
771
779
|
return o;
|
|
772
780
|
}
|
|
773
|
-
return i === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 :
|
|
781
|
+
return i === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : yn[i];
|
|
774
782
|
},
|
|
775
783
|
set(...r) {
|
|
776
784
|
const i = r[1], s = r[2];
|
|
@@ -786,37 +794,37 @@ function Ct(e = {}, n) {
|
|
|
786
794
|
}
|
|
787
795
|
});
|
|
788
796
|
}
|
|
789
|
-
function
|
|
797
|
+
function Nn(e, n, t, r = "ui") {
|
|
790
798
|
const i = typeof t == "string" ? { key: t, value: t, type: r } : t, s = e.hook.text.dispatch(i);
|
|
791
799
|
return e.emit("text", s, !1), s.value;
|
|
792
800
|
}
|
|
793
|
-
function
|
|
801
|
+
function Hn(e) {
|
|
794
802
|
const n = e.name;
|
|
795
803
|
do {
|
|
796
804
|
if (e.props.isForm === !0)
|
|
797
805
|
break;
|
|
798
806
|
e.parent || U(106, n), e = e.parent;
|
|
799
807
|
} while (e);
|
|
800
|
-
e.props.id &&
|
|
808
|
+
e.props.id && pn(e.props.id);
|
|
801
809
|
}
|
|
802
|
-
function
|
|
803
|
-
return
|
|
810
|
+
function Zn(e, n, t) {
|
|
811
|
+
return mn(e, t);
|
|
804
812
|
}
|
|
805
813
|
function Vt(e, n, t, r) {
|
|
806
814
|
const i = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: r });
|
|
807
|
-
return
|
|
815
|
+
return tn(e, s.localErrors, s.childErrors).forEach((o) => {
|
|
808
816
|
e.store.apply(o, (a) => a.meta.source === i);
|
|
809
817
|
}), e;
|
|
810
818
|
}
|
|
811
|
-
function
|
|
819
|
+
function Yn(e, n, t = !0, r) {
|
|
812
820
|
return Vt(e, n, []), t && (r = r || `${e.name}-set`, e.walk((i) => {
|
|
813
821
|
i.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === r));
|
|
814
822
|
})), e;
|
|
815
823
|
}
|
|
816
|
-
function Yn(e) {
|
|
817
|
-
return j(e.props, "id") || (e.props.id = `input_${bn++}`), e;
|
|
818
|
-
}
|
|
819
824
|
function Jn(e) {
|
|
825
|
+
return R(e.props, "id") || (e.props.id = `input_${$n++}`), e;
|
|
826
|
+
}
|
|
827
|
+
function Qn(e) {
|
|
820
828
|
const n = {
|
|
821
829
|
initial: typeof e == "object" ? J(e) : e
|
|
822
830
|
};
|
|
@@ -824,7 +832,7 @@ function Jn(e) {
|
|
|
824
832
|
return new Proxy(n, {
|
|
825
833
|
get(...i) {
|
|
826
834
|
const [s, o] = i;
|
|
827
|
-
if (
|
|
835
|
+
if (R(n, o))
|
|
828
836
|
return Reflect.get(...i);
|
|
829
837
|
if (t && typeof o == "string" && t.config[o] !== void 0)
|
|
830
838
|
return t.config[o];
|
|
@@ -846,7 +854,7 @@ function Jn(e) {
|
|
|
846
854
|
}
|
|
847
855
|
});
|
|
848
856
|
}
|
|
849
|
-
function
|
|
857
|
+
function Gn(e, n) {
|
|
850
858
|
if (e.props.definition)
|
|
851
859
|
return e.define(e.props.definition);
|
|
852
860
|
for (const t of n) {
|
|
@@ -855,7 +863,7 @@ function Qn(e, n) {
|
|
|
855
863
|
typeof t.library == "function" && t.library(e);
|
|
856
864
|
}
|
|
857
865
|
}
|
|
858
|
-
function
|
|
866
|
+
function Xn(e) {
|
|
859
867
|
const n = wt(e), t = Ct(e.config || {}, e.parent);
|
|
860
868
|
return {
|
|
861
869
|
_d: 0,
|
|
@@ -863,35 +871,35 @@ function Gn(e) {
|
|
|
863
871
|
_resolve: !1,
|
|
864
872
|
_tmo: !1,
|
|
865
873
|
_value: n,
|
|
866
|
-
children:
|
|
874
|
+
children: Wt(e.children || []),
|
|
867
875
|
config: t,
|
|
868
|
-
hook:
|
|
876
|
+
hook: vn(),
|
|
869
877
|
isCreated: !1,
|
|
870
878
|
isSettled: !0,
|
|
871
|
-
ledger:
|
|
872
|
-
name:
|
|
879
|
+
ledger: sn(),
|
|
880
|
+
name: wn(e),
|
|
873
881
|
parent: e.parent || null,
|
|
874
882
|
plugins: /* @__PURE__ */ new Set(),
|
|
875
|
-
props:
|
|
883
|
+
props: Qn(n),
|
|
876
884
|
settled: Promise.resolve(n),
|
|
877
|
-
store:
|
|
878
|
-
traps:
|
|
885
|
+
store: Yt(!0),
|
|
886
|
+
traps: gn(),
|
|
879
887
|
type: e.type || "input",
|
|
880
888
|
value: n
|
|
881
889
|
};
|
|
882
890
|
}
|
|
883
|
-
function
|
|
891
|
+
function er(e, n) {
|
|
884
892
|
var t;
|
|
885
|
-
if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, n.props && Object.assign(e.props, n.props), e.props._emit = !0,
|
|
893
|
+
if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, n.props && Object.assign(e.props, n.props), e.props._emit = !0, Gn(e, /* @__PURE__ */ new Set([
|
|
886
894
|
...n.plugins || [],
|
|
887
895
|
...e.parent ? e.parent.plugins : []
|
|
888
896
|
])), n.plugins)
|
|
889
897
|
for (const r of n.plugins)
|
|
890
898
|
qe(e, e._c, r, !0, !1);
|
|
891
|
-
return
|
|
899
|
+
return Jn(e), e.each((r) => e.add(r)), e.parent && e.parent.add(e, n.index), e.type === "input" && e.children.length && U(100, e), kt(e, e._c, e._value, !1), e.store.release(), !((t = n.props) === null || t === void 0) && t.id && un(e), e.emit("created", e), e.isCreated = !0, e;
|
|
892
900
|
}
|
|
893
|
-
function
|
|
894
|
-
const n = e || {}, t =
|
|
901
|
+
function tr(e) {
|
|
902
|
+
const n = e || {}, t = Xn(n), r = new Proxy(t, {
|
|
895
903
|
get(...i) {
|
|
896
904
|
const [, s] = i;
|
|
897
905
|
if (s === "__FKNode__")
|
|
@@ -904,27 +912,27 @@ function er(e) {
|
|
|
904
912
|
return a && a.set ? a.set(r, t, s, o) : Reflect.set(...i);
|
|
905
913
|
}
|
|
906
914
|
});
|
|
907
|
-
return
|
|
915
|
+
return er(r, n);
|
|
908
916
|
}
|
|
909
917
|
function xe(e) {
|
|
910
|
-
return typeof e != "string" &&
|
|
918
|
+
return typeof e != "string" && R(e, "$el");
|
|
911
919
|
}
|
|
912
920
|
function Ae(e) {
|
|
913
|
-
return typeof e != "string" &&
|
|
921
|
+
return typeof e != "string" && R(e, "$cmp");
|
|
914
922
|
}
|
|
915
|
-
function
|
|
916
|
-
return !e || typeof e == "string" ? !1 :
|
|
923
|
+
function ne(e) {
|
|
924
|
+
return !e || typeof e == "string" ? !1 : R(e, "if") && R(e, "then");
|
|
917
925
|
}
|
|
918
|
-
function
|
|
926
|
+
function nr(e) {
|
|
919
927
|
return typeof e != "string" && "$formkit" in e;
|
|
920
928
|
}
|
|
921
|
-
function
|
|
929
|
+
function rr(e) {
|
|
922
930
|
if (typeof e == "string")
|
|
923
931
|
return {
|
|
924
932
|
$el: "text",
|
|
925
933
|
children: e
|
|
926
934
|
};
|
|
927
|
-
if (
|
|
935
|
+
if (nr(e)) {
|
|
928
936
|
const { $formkit: n, for: t, if: r, children: i, bind: s, ...o } = e;
|
|
929
937
|
return Object.assign({
|
|
930
938
|
$cmp: "FormKit",
|
|
@@ -935,87 +943,87 @@ function nr(e) {
|
|
|
935
943
|
}
|
|
936
944
|
function K(e) {
|
|
937
945
|
let n;
|
|
938
|
-
const t = /* @__PURE__ */ new Set(), r = function(f,
|
|
939
|
-
return typeof f == "function" ? f(
|
|
946
|
+
const t = /* @__PURE__ */ new Set(), r = function(f, d) {
|
|
947
|
+
return typeof f == "function" ? f(d) : f;
|
|
940
948
|
}, i = [
|
|
941
949
|
{
|
|
942
|
-
"&&": (c, f,
|
|
943
|
-
"||": (c, f,
|
|
950
|
+
"&&": (c, f, d) => r(c, d) && r(f, d),
|
|
951
|
+
"||": (c, f, d) => r(c, d) || r(f, d)
|
|
944
952
|
},
|
|
945
953
|
{
|
|
946
|
-
"===": (c, f,
|
|
947
|
-
"!==": (c, f,
|
|
948
|
-
"==": (c, f,
|
|
949
|
-
"!=": (c, f,
|
|
950
|
-
">=": (c, f,
|
|
951
|
-
"<=": (c, f,
|
|
952
|
-
">": (c, f,
|
|
953
|
-
"<": (c, f,
|
|
954
|
+
"===": (c, f, d) => r(c, d) === r(f, d),
|
|
955
|
+
"!==": (c, f, d) => r(c, d) !== r(f, d),
|
|
956
|
+
"==": (c, f, d) => r(c, d) == r(f, d),
|
|
957
|
+
"!=": (c, f, d) => r(c, d) != r(f, d),
|
|
958
|
+
">=": (c, f, d) => r(c, d) >= r(f, d),
|
|
959
|
+
"<=": (c, f, d) => r(c, d) <= r(f, d),
|
|
960
|
+
">": (c, f, d) => r(c, d) > r(f, d),
|
|
961
|
+
"<": (c, f, d) => r(c, d) < r(f, d)
|
|
954
962
|
},
|
|
955
963
|
{
|
|
956
|
-
"+": (c, f,
|
|
957
|
-
"-": (c, f,
|
|
964
|
+
"+": (c, f, d) => r(c, d) + r(f, d),
|
|
965
|
+
"-": (c, f, d) => r(c, d) - r(f, d)
|
|
958
966
|
},
|
|
959
967
|
{
|
|
960
|
-
"*": (c, f,
|
|
961
|
-
"/": (c, f,
|
|
962
|
-
"%": (c, f,
|
|
968
|
+
"*": (c, f, d) => r(c, d) * r(f, d),
|
|
969
|
+
"/": (c, f, d) => r(c, d) / r(f, d),
|
|
970
|
+
"%": (c, f, d) => r(c, d) % r(f, d)
|
|
963
971
|
}
|
|
964
972
|
], s = i.reduce((c, f) => c.concat(Object.keys(f)), []), o = new Set(s.map((c) => c.charAt(0)));
|
|
965
|
-
function a(c, f,
|
|
966
|
-
const
|
|
967
|
-
return
|
|
973
|
+
function a(c, f, d, v) {
|
|
974
|
+
const S = c.filter((u) => u.startsWith(f));
|
|
975
|
+
return S.length ? S.find((u) => v.length >= d + u.length && v.substring(d, d + u.length) === u ? u : !1) : !1;
|
|
968
976
|
}
|
|
969
|
-
function m(c, f,
|
|
970
|
-
let v =
|
|
977
|
+
function m(c, f, d = 1) {
|
|
978
|
+
let v = d ? f.substring(c + 1).trim() : f.substring(0, c).trim();
|
|
971
979
|
if (!v.length)
|
|
972
980
|
return -1;
|
|
973
|
-
if (!
|
|
981
|
+
if (!d) {
|
|
974
982
|
const u = v.split("").reverse(), y = u.findIndex((b) => o.has(b));
|
|
975
983
|
v = u.slice(y).join("");
|
|
976
984
|
}
|
|
977
|
-
const
|
|
985
|
+
const S = v[0];
|
|
978
986
|
return i.findIndex((u) => {
|
|
979
987
|
const y = Object.keys(u);
|
|
980
|
-
return !!a(y,
|
|
988
|
+
return !!a(y, S, 0, v);
|
|
981
989
|
});
|
|
982
990
|
}
|
|
983
991
|
function h(c, f) {
|
|
984
|
-
let
|
|
992
|
+
let d = "";
|
|
985
993
|
const v = f.length;
|
|
986
|
-
let
|
|
994
|
+
let S = 0;
|
|
987
995
|
for (let u = c; u < v; u++) {
|
|
988
996
|
const y = f.charAt(u);
|
|
989
997
|
if (y === "(")
|
|
990
|
-
|
|
998
|
+
S++;
|
|
991
999
|
else if (y === ")")
|
|
992
|
-
|
|
993
|
-
else if (
|
|
1000
|
+
S--;
|
|
1001
|
+
else if (S === 0 && y === " ")
|
|
994
1002
|
continue;
|
|
995
|
-
if (
|
|
996
|
-
return [
|
|
997
|
-
|
|
1003
|
+
if (S === 0 && a(s, y, u, f))
|
|
1004
|
+
return [d, u - 1];
|
|
1005
|
+
d += y;
|
|
998
1006
|
}
|
|
999
|
-
return [
|
|
1007
|
+
return [d, f.length - 1];
|
|
1000
1008
|
}
|
|
1001
1009
|
function _(c, f = 0) {
|
|
1002
|
-
const
|
|
1003
|
-
let u = 0, y = !1, b = null,
|
|
1010
|
+
const d = i[f], v = c.length, S = Object.keys(d);
|
|
1011
|
+
let u = 0, y = !1, b = null, k = "", P = null, I, M = "", V = "", E = "", j = "", B = 0;
|
|
1004
1012
|
const z = (x, N) => {
|
|
1005
|
-
x ? E += N :
|
|
1013
|
+
x ? E += N : k += N;
|
|
1006
1014
|
};
|
|
1007
1015
|
for (let x = 0; x < v; x++)
|
|
1008
|
-
if (M = V, V = c.charAt(x), (V === "'" || V === '"') && M !== "\\" && (u === 0 && !y || u && !
|
|
1009
|
-
u ?
|
|
1016
|
+
if (M = V, V = c.charAt(x), (V === "'" || V === '"') && M !== "\\" && (u === 0 && !y || u && !j)) {
|
|
1017
|
+
u ? j = V : y = V, z(u, V);
|
|
1010
1018
|
continue;
|
|
1011
|
-
} else if (y && (V !== y || M === "\\") ||
|
|
1019
|
+
} else if (y && (V !== y || M === "\\") || j && (V !== j || M === "\\")) {
|
|
1012
1020
|
z(u, V);
|
|
1013
1021
|
continue;
|
|
1014
1022
|
} else if (y === V) {
|
|
1015
1023
|
y = !1, z(u, V);
|
|
1016
1024
|
continue;
|
|
1017
|
-
} else if (
|
|
1018
|
-
|
|
1025
|
+
} else if (j === V) {
|
|
1026
|
+
j = !1, z(u, V);
|
|
1019
1027
|
continue;
|
|
1020
1028
|
} else {
|
|
1021
1029
|
if (V === " ")
|
|
@@ -1024,37 +1032,37 @@ function K(e) {
|
|
|
1024
1032
|
u === 0 ? B = x : E += V, u++;
|
|
1025
1033
|
else if (V === ")")
|
|
1026
1034
|
if (u--, u === 0) {
|
|
1027
|
-
const N = typeof
|
|
1028
|
-
let
|
|
1029
|
-
He && ([
|
|
1030
|
-
const se = b ? f : m(B, c, 0),
|
|
1031
|
-
se === -1 &&
|
|
1035
|
+
const N = typeof k == "string" && k.startsWith("$") ? k : void 0, He = N && c.charAt(x + 1) === ".";
|
|
1036
|
+
let ee = "";
|
|
1037
|
+
He && ([ee, x] = h(x + 2, c));
|
|
1038
|
+
const se = b ? f : m(B, c, 0), te = m(x, c);
|
|
1039
|
+
se === -1 && te === -1 ? k = p(E, -1, N, ee) : b && (se >= te || te === -1) && f === se ? (P = b.bind(null, p(E, -1, N, ee)), b = null, k = "") : te > se && f === te ? k = p(E, -1, N, ee) : k += `(${E})${He ? `.${ee}` : ""}`, E = "";
|
|
1032
1040
|
} else
|
|
1033
1041
|
E += V;
|
|
1034
|
-
else if (u === 0 && (I = a(
|
|
1035
|
-
x === 0 && U(103, [I, c]), x += I.length - 1, x === c.length - 1 && U(104, [I, c]), b ?
|
|
1042
|
+
else if (u === 0 && (I = a(S, V, x, c))) {
|
|
1043
|
+
x === 0 && U(103, [I, c]), x += I.length - 1, x === c.length - 1 && U(104, [I, c]), b ? k && (P = b.bind(null, p(k, f)), b = d[I].bind(null, P), k = "") : P ? (b = d[I].bind(null, p(P, f)), P = null) : (b = d[I].bind(null, p(k, f)), k = "");
|
|
1036
1044
|
continue;
|
|
1037
1045
|
} else
|
|
1038
1046
|
z(u, V);
|
|
1039
1047
|
}
|
|
1040
|
-
return
|
|
1048
|
+
return k && b && (b = b.bind(null, p(k, f))), b = !b && P ? P : b, !b && k && (b = (x, N) => typeof x == "function" ? x(N) : x, b = b.bind(null, p(k, f))), !b && !k && U(105, c), b;
|
|
1041
1049
|
}
|
|
1042
|
-
function
|
|
1043
|
-
if (
|
|
1044
|
-
const
|
|
1050
|
+
function p(c, f, d, v) {
|
|
1051
|
+
if (d) {
|
|
1052
|
+
const S = p(d, i.length);
|
|
1045
1053
|
let u, y = v ? K(`$${v}`) : !1;
|
|
1046
|
-
if (typeof
|
|
1047
|
-
const b =
|
|
1048
|
-
return (
|
|
1049
|
-
const P = k
|
|
1050
|
-
return typeof P != "function" ? (ve(150,
|
|
1054
|
+
if (typeof S == "function") {
|
|
1055
|
+
const b = qt(String(c)).map((k) => p(k, -1));
|
|
1056
|
+
return (k) => {
|
|
1057
|
+
const P = S(k);
|
|
1058
|
+
return typeof P != "function" ? (ve(150, d), P) : (u = P(...b.map((I) => typeof I == "function" ? I(k) : I)), y && (y = y.provide((I) => {
|
|
1051
1059
|
const M = n(I);
|
|
1052
|
-
return I.reduce((E,
|
|
1053
|
-
if (
|
|
1054
|
-
const z =
|
|
1055
|
-
E[
|
|
1060
|
+
return I.reduce((E, j) => {
|
|
1061
|
+
if (j === v || (v == null ? void 0 : v.startsWith(`${j}(`))) {
|
|
1062
|
+
const z = Bt(u, j);
|
|
1063
|
+
E[j] = () => z;
|
|
1056
1064
|
} else
|
|
1057
|
-
E[
|
|
1065
|
+
E[j] = M[j];
|
|
1058
1066
|
return E;
|
|
1059
1067
|
}, {});
|
|
1060
1068
|
})), y ? y() : u);
|
|
@@ -1067,16 +1075,16 @@ function K(e) {
|
|
|
1067
1075
|
return !1;
|
|
1068
1076
|
if (c === "undefined")
|
|
1069
1077
|
return;
|
|
1070
|
-
if (
|
|
1071
|
-
return
|
|
1078
|
+
if (Ut(c))
|
|
1079
|
+
return Kt(c.substring(1, c.length - 1));
|
|
1072
1080
|
if (!isNaN(+c))
|
|
1073
1081
|
return Number(c);
|
|
1074
1082
|
if (f < i.length - 1)
|
|
1075
1083
|
return _(c, f + 1);
|
|
1076
1084
|
if (c.startsWith("$")) {
|
|
1077
|
-
const
|
|
1078
|
-
return t.add(
|
|
1079
|
-
return
|
|
1085
|
+
const S = c.substring(1);
|
|
1086
|
+
return t.add(S), function(y) {
|
|
1087
|
+
return S in y ? y[S]() : void 0;
|
|
1080
1088
|
};
|
|
1081
1089
|
}
|
|
1082
1090
|
return c;
|
|
@@ -1093,7 +1101,7 @@ function K(e) {
|
|
|
1093
1101
|
provide: $
|
|
1094
1102
|
});
|
|
1095
1103
|
}
|
|
1096
|
-
const nt = "1.0.0-beta.
|
|
1104
|
+
const nt = "1.0.0-beta.11", ir = q("outer", () => ({
|
|
1097
1105
|
$el: "div",
|
|
1098
1106
|
attrs: {
|
|
1099
1107
|
key: "$id",
|
|
@@ -1110,16 +1118,16 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
|
|
|
1110
1118
|
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1111
1119
|
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1112
1120
|
}
|
|
1113
|
-
}), !0),
|
|
1121
|
+
}), !0), sr = q("inner", "div"), or = q("wrapper", "div"), lr = q("label", () => ({
|
|
1114
1122
|
$el: "label",
|
|
1115
1123
|
if: "$label",
|
|
1116
1124
|
attrs: {
|
|
1117
1125
|
for: "$id"
|
|
1118
1126
|
}
|
|
1119
|
-
})),
|
|
1127
|
+
})), ar = q("messages", () => ({
|
|
1120
1128
|
$el: "ul",
|
|
1121
1129
|
if: "$fns.length($messages)"
|
|
1122
|
-
})),
|
|
1130
|
+
})), ur = q("message", () => ({
|
|
1123
1131
|
$el: "li",
|
|
1124
1132
|
for: ["message", "$messages"],
|
|
1125
1133
|
attrs: {
|
|
@@ -1127,7 +1135,7 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
|
|
|
1127
1135
|
id: "$id + '-' + $message.key",
|
|
1128
1136
|
"data-message-type": "$message.type"
|
|
1129
1137
|
}
|
|
1130
|
-
})),
|
|
1138
|
+
})), fr = q("prefix", null), cr = q("suffix", null), pr = q("help", () => ({
|
|
1131
1139
|
$el: "div",
|
|
1132
1140
|
if: "$help",
|
|
1133
1141
|
attrs: {
|
|
@@ -1137,11 +1145,11 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
|
|
|
1137
1145
|
function rt(e) {
|
|
1138
1146
|
return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
|
|
1139
1147
|
}
|
|
1140
|
-
function
|
|
1148
|
+
function dr(e, n = {}) {
|
|
1141
1149
|
return typeof e == "string" ? rt(n) || typeof n == "string" ? n : e : Array.isArray(e) ? rt(n) ? n : e : Te(e, n);
|
|
1142
1150
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1151
|
+
function mr(e) {
|
|
1152
|
+
return ir(or(lr("$label"), sr(fr(), e(), cr())), pr("$help"), ar(ur("$message.value")));
|
|
1145
1153
|
}
|
|
1146
1154
|
function q(e, n, t = !1) {
|
|
1147
1155
|
return (...r) => {
|
|
@@ -1155,13 +1163,13 @@ function q(e, n, t = !1) {
|
|
|
1155
1163
|
})), {
|
|
1156
1164
|
if: `$slots.${e}`,
|
|
1157
1165
|
then: `$slots.${e}`,
|
|
1158
|
-
else: e in s ?
|
|
1166
|
+
else: e in s ? dr(o, s[e]) : o
|
|
1159
1167
|
};
|
|
1160
1168
|
};
|
|
1161
|
-
return t ?
|
|
1169
|
+
return t ? yr(i) : i;
|
|
1162
1170
|
};
|
|
1163
1171
|
}
|
|
1164
|
-
function
|
|
1172
|
+
function yr(e) {
|
|
1165
1173
|
return (n) => [e(n)];
|
|
1166
1174
|
}
|
|
1167
1175
|
_e({
|
|
@@ -1172,11 +1180,11 @@ _e({
|
|
|
1172
1180
|
key: "validating"
|
|
1173
1181
|
});
|
|
1174
1182
|
let ue;
|
|
1175
|
-
const
|
|
1183
|
+
const hr = new Promise((e) => {
|
|
1176
1184
|
}), $e = typeof window < "u" && typeof fetch < "u";
|
|
1177
1185
|
ue = $e ? getComputedStyle(document.documentElement) : void 0;
|
|
1178
|
-
const
|
|
1179
|
-
function
|
|
1186
|
+
const G = {}, we = {};
|
|
1187
|
+
function ke(e, n) {
|
|
1180
1188
|
return (t) => {
|
|
1181
1189
|
if (typeof t == "boolean")
|
|
1182
1190
|
return;
|
|
@@ -1184,33 +1192,33 @@ function Se(e, n) {
|
|
|
1184
1192
|
return t;
|
|
1185
1193
|
if (typeof t != "string")
|
|
1186
1194
|
return;
|
|
1187
|
-
const r =
|
|
1195
|
+
const r = G[t], i = t.startsWith("default:");
|
|
1188
1196
|
t = i ? t.split(":")[1] : t;
|
|
1189
1197
|
let s;
|
|
1190
|
-
if (r || t in
|
|
1191
|
-
return
|
|
1198
|
+
if (r || t in G)
|
|
1199
|
+
return G[t];
|
|
1192
1200
|
if (!we[t]) {
|
|
1193
|
-
if (s =
|
|
1194
|
-
we[t] = s.then((o) => !o && typeof t == "string" && !i ? s = typeof e == "function" ? e(t) :
|
|
1201
|
+
if (s = _r(t), s = $e && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
|
|
1202
|
+
we[t] = s.then((o) => !o && typeof t == "string" && !i ? s = typeof e == "function" ? e(t) : vr(t, n) : o).then((o) => (typeof t == "string" && (G[i ? `default:${t}` : t] = o), o));
|
|
1195
1203
|
else if (typeof s == "string")
|
|
1196
|
-
return
|
|
1204
|
+
return G[i ? `default:${t}` : t] = s, s;
|
|
1197
1205
|
}
|
|
1198
1206
|
return we[t];
|
|
1199
1207
|
};
|
|
1200
1208
|
}
|
|
1201
|
-
function
|
|
1209
|
+
function _r(e) {
|
|
1202
1210
|
if (!!$e)
|
|
1203
|
-
return
|
|
1211
|
+
return hr.then(() => gr(e));
|
|
1204
1212
|
}
|
|
1205
|
-
function
|
|
1213
|
+
function gr(e) {
|
|
1206
1214
|
const n = ue == null ? void 0 : ue.getPropertyValue(`--fk-icon-${e}`);
|
|
1207
1215
|
if (n) {
|
|
1208
1216
|
const t = atob(n);
|
|
1209
1217
|
if (t.startsWith("<svg"))
|
|
1210
|
-
return
|
|
1218
|
+
return G[e] = t, t;
|
|
1211
1219
|
}
|
|
1212
1220
|
}
|
|
1213
|
-
function
|
|
1221
|
+
function vr(e, n) {
|
|
1214
1222
|
const t = nt.startsWith("__") ? "latest" : nt, r = typeof n == "function" ? n(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
|
|
1215
1223
|
if (!!$e)
|
|
1216
1224
|
return fetch(`${r}`).then(async (i) => {
|
|
@@ -1232,6 +1240,7 @@ const it = {
|
|
|
1232
1240
|
106: ({ data: e }) => `Cannot submit because (${e}) is not in a form.`,
|
|
1233
1241
|
107: ({ data: [e, n] }) => `Cannot set ${e.name} to non object value: ${n}`,
|
|
1234
1242
|
108: ({ data: [e, n] }) => `Cannot set ${e.name} to non array value: ${n}`,
|
|
1243
|
+
300: ({ data: [e] }) => `Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,
|
|
1235
1244
|
600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
|
|
1236
1245
|
601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
|
|
1237
1246
|
}, st = {
|
|
@@ -1243,104 +1252,112 @@ const it = {
|
|
|
1243
1252
|
651: ({ data: e }) => `Cannot setErrors() on "${e}" because no such id exists.`,
|
|
1244
1253
|
652: ({ data: e }) => `Cannot clearErrors() on "${e}" because no such id exists.`,
|
|
1245
1254
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
1246
|
-
},
|
|
1255
|
+
}, br = (e, n) => {
|
|
1247
1256
|
if (e.code in it) {
|
|
1248
1257
|
const t = it[e.code];
|
|
1249
1258
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1250
1259
|
}
|
|
1251
1260
|
return n(e);
|
|
1252
1261
|
};
|
|
1253
|
-
Be || De(
|
|
1254
|
-
const
|
|
1262
|
+
Be || De(br);
|
|
1263
|
+
const $r = (e, n) => {
|
|
1255
1264
|
if (e.code in st) {
|
|
1256
1265
|
const t = st[e.code];
|
|
1257
1266
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1258
1267
|
}
|
|
1259
1268
|
return n(e);
|
|
1260
1269
|
};
|
|
1261
|
-
Be || We(
|
|
1270
|
+
Be || We($r);
|
|
1262
1271
|
Be = !0;
|
|
1263
|
-
const
|
|
1272
|
+
const Se = {};
|
|
1264
1273
|
let D;
|
|
1265
|
-
const Y = /* @__PURE__ */ new Map(),
|
|
1274
|
+
const Y = /* @__PURE__ */ new Map(), wr = "__raw__", kr = /[a-zA-Z0-9\-][cC]lass$/;
|
|
1266
1275
|
function Sr(e, n) {
|
|
1267
1276
|
const t = ie(null);
|
|
1268
1277
|
if (e === "get") {
|
|
1269
1278
|
const i = {};
|
|
1270
|
-
return t.value =
|
|
1279
|
+
return t.value = Cr.bind(null, i), t;
|
|
1271
1280
|
}
|
|
1272
1281
|
const r = e.split(".");
|
|
1273
1282
|
return Z(() => t.value = ze(n, r)), t;
|
|
1274
1283
|
}
|
|
1275
1284
|
function ze(e, n) {
|
|
1276
1285
|
if (Array.isArray(e)) {
|
|
1277
|
-
for (const
|
|
1278
|
-
const
|
|
1279
|
-
if (
|
|
1280
|
-
return
|
|
1286
|
+
for (const i of e) {
|
|
1287
|
+
const s = i !== !1 && ze(i, n);
|
|
1288
|
+
if (s !== void 0)
|
|
1289
|
+
return s;
|
|
1281
1290
|
}
|
|
1282
1291
|
return;
|
|
1283
1292
|
}
|
|
1284
|
-
let t;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
+
let t, r = e;
|
|
1294
|
+
for (const i in n) {
|
|
1295
|
+
const s = n[i];
|
|
1296
|
+
if (typeof r != "object" || r === null) {
|
|
1297
|
+
t = void 0;
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
const o = r[s];
|
|
1301
|
+
if (Number(i) === n.length - 1 && o !== void 0) {
|
|
1302
|
+
t = o;
|
|
1303
|
+
break;
|
|
1304
|
+
}
|
|
1305
|
+
r = o;
|
|
1306
|
+
}
|
|
1307
|
+
return t;
|
|
1308
|
+
}
|
|
1309
|
+
function Cr(e, n) {
|
|
1293
1310
|
if (typeof n != "string")
|
|
1294
1311
|
return ve(650);
|
|
1295
1312
|
if (n in e || (e[n] = ie(void 0)), e[n].value === void 0) {
|
|
1296
1313
|
e[n].value = null;
|
|
1297
1314
|
const t = vt(n);
|
|
1298
|
-
t && (e[n].value = t.context),
|
|
1315
|
+
t && (e[n].value = t.context), cn(n, ({ payload: r }) => {
|
|
1299
1316
|
e[n].value = be(r) ? r.context : r;
|
|
1300
1317
|
});
|
|
1301
1318
|
}
|
|
1302
1319
|
return e[n].value;
|
|
1303
1320
|
}
|
|
1304
1321
|
function ot(e, n) {
|
|
1305
|
-
function t(
|
|
1306
|
-
const g = _(K(w.if), { if: !0 }), $ = m(
|
|
1322
|
+
function t(p, w) {
|
|
1323
|
+
const g = _(K(w.if), { if: !0 }), $ = m(p, w.then), c = w.else ? m(p, w.else) : null;
|
|
1307
1324
|
return [g, $, c];
|
|
1308
1325
|
}
|
|
1309
|
-
function r(
|
|
1326
|
+
function r(p, w) {
|
|
1310
1327
|
var g, $;
|
|
1311
|
-
const c = _(K(
|
|
1312
|
-
let f = () => w,
|
|
1313
|
-
return typeof
|
|
1328
|
+
const c = _(K(p.if));
|
|
1329
|
+
let f = () => w, d = () => w;
|
|
1330
|
+
return typeof p.then == "object" ? d = i(p.then, void 0) : typeof p.then == "string" && ((g = p.then) === null || g === void 0 ? void 0 : g.startsWith("$")) ? d = _(K(p.then)) : d = () => p.then, R(p, "else") && (typeof p.else == "object" ? f = i(p.else) : typeof p.else == "string" && (($ = p.else) === null || $ === void 0 ? void 0 : $.startsWith("$")) ? f = _(K(p.else)) : f = () => p.else), () => c() ? d() : f();
|
|
1314
1331
|
}
|
|
1315
|
-
function i(
|
|
1316
|
-
const $ = new Set(Object.keys(
|
|
1317
|
-
(
|
|
1332
|
+
function i(p, w, g = {}) {
|
|
1333
|
+
const $ = new Set(Object.keys(p || {})), c = w ? _(K(w)) : () => ({}), f = [
|
|
1334
|
+
(d) => {
|
|
1318
1335
|
const v = c();
|
|
1319
|
-
for (const
|
|
1320
|
-
$.has(
|
|
1336
|
+
for (const S in v)
|
|
1337
|
+
$.has(S) || (d[S] = v[S]);
|
|
1321
1338
|
}
|
|
1322
1339
|
];
|
|
1323
|
-
if (
|
|
1324
|
-
if (
|
|
1325
|
-
return r(
|
|
1326
|
-
for (let
|
|
1327
|
-
const v = d
|
|
1328
|
-
let
|
|
1340
|
+
if (p) {
|
|
1341
|
+
if (ne(p))
|
|
1342
|
+
return r(p, g);
|
|
1343
|
+
for (let d in p) {
|
|
1344
|
+
const v = p[d];
|
|
1345
|
+
let S;
|
|
1329
1346
|
const u = typeof v == "string";
|
|
1330
|
-
|
|
1331
|
-
y[
|
|
1347
|
+
d.startsWith(wr) ? (d = d.substring(7), S = () => v) : u && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && kr.test(d)) ? S = _(K(v)) : typeof v == "object" && ne(v) ? S = r(v, void 0) : typeof v == "object" && ye(v) ? S = i(v) : S = () => v, f.push((y) => {
|
|
1348
|
+
y[d] = S();
|
|
1332
1349
|
});
|
|
1333
1350
|
}
|
|
1334
1351
|
}
|
|
1335
1352
|
return () => {
|
|
1336
|
-
const
|
|
1337
|
-
return f.forEach((v) => v(
|
|
1353
|
+
const d = Array.isArray(p) ? [] : {};
|
|
1354
|
+
return f.forEach((v) => v(d)), d;
|
|
1338
1355
|
};
|
|
1339
1356
|
}
|
|
1340
|
-
function s(
|
|
1341
|
-
let g = null, $ = () => null, c = !1, f = null,
|
|
1342
|
-
const u =
|
|
1343
|
-
if (xe(u) ? (g = u.$el, $ = u.$el !== "text" ? i(u.attrs, u.bind) : () => null) : Ae(u) ? (typeof u.$cmp == "string" ?
|
|
1357
|
+
function s(p, w) {
|
|
1358
|
+
let g = null, $ = () => null, c = !1, f = null, d = null, v = null, S = !1;
|
|
1359
|
+
const u = rr(w);
|
|
1360
|
+
if (xe(u) ? (g = u.$el, $ = u.$el !== "text" ? i(u.attrs, u.bind) : () => null) : Ae(u) ? (typeof u.$cmp == "string" ? R(p, u.$cmp) ? g = p[u.$cmp] : (g = u.$cmp, S = !0) : g = u.$cmp, $ = i(u.props, u.bind)) : ne(u) && ([c, f, d] = t(p, u)), !ne(u) && "if" in u ? c = _(K(u.if)) : !ne(u) && g === null && (c = () => !0), "children" in u && u.children)
|
|
1344
1361
|
if (typeof u.children == "string")
|
|
1345
1362
|
if (u.children.startsWith("$slots."))
|
|
1346
1363
|
g = g === "text" ? "slot" : g, f = _(K(u.children));
|
|
@@ -1350,21 +1367,21 @@ function ot(e, n) {
|
|
|
1350
1367
|
} else
|
|
1351
1368
|
f = () => String(u.children);
|
|
1352
1369
|
else if (Array.isArray(u.children))
|
|
1353
|
-
f = m(
|
|
1370
|
+
f = m(p, u.children);
|
|
1354
1371
|
else {
|
|
1355
|
-
const [y, b,
|
|
1356
|
-
f = (P) => y && y() ? b && b(P) :
|
|
1372
|
+
const [y, b, k] = t(p, u.children);
|
|
1373
|
+
f = (P) => y && y() ? b && b(P) : k && k(P);
|
|
1357
1374
|
}
|
|
1358
1375
|
if (Ae(u))
|
|
1359
1376
|
if (f) {
|
|
1360
1377
|
const y = f;
|
|
1361
1378
|
f = (b) => ({
|
|
1362
|
-
default(
|
|
1379
|
+
default(k, P) {
|
|
1363
1380
|
var I, M, V, E;
|
|
1364
|
-
const
|
|
1365
|
-
P && (D = P),
|
|
1381
|
+
const j = D;
|
|
1382
|
+
P && (D = P), k && ((I = Y.get(D)) === null || I === void 0 || I.unshift(k)), b && ((M = Y.get(D)) === null || M === void 0 || M.unshift(b));
|
|
1366
1383
|
const B = y(b);
|
|
1367
|
-
return
|
|
1384
|
+
return k && ((V = Y.get(D)) === null || V === void 0 || V.shift()), b && ((E = Y.get(D)) === null || E === void 0 || E.shift()), D = j, B;
|
|
1368
1385
|
}
|
|
1369
1386
|
}), f.slot = !0;
|
|
1370
1387
|
} else
|
|
@@ -1377,44 +1394,44 @@ function ot(e, n) {
|
|
|
1377
1394
|
u.for.length === 3 ? String(u.for[1]) : null
|
|
1378
1395
|
];
|
|
1379
1396
|
}
|
|
1380
|
-
return [c, g, $, f,
|
|
1397
|
+
return [c, g, $, f, d, v, S];
|
|
1381
1398
|
}
|
|
1382
|
-
function o(
|
|
1383
|
-
const g =
|
|
1399
|
+
function o(p, w) {
|
|
1400
|
+
const g = p(w), $ = D;
|
|
1384
1401
|
return Object.keys(g).reduce((c, f) => {
|
|
1385
|
-
const
|
|
1386
|
-
return c[f] = (v) =>
|
|
1402
|
+
const d = g && g[f];
|
|
1403
|
+
return c[f] = (v) => d && d(v, $) || null, c;
|
|
1387
1404
|
}, {});
|
|
1388
1405
|
}
|
|
1389
|
-
function a(
|
|
1390
|
-
const [g, $, c, f,
|
|
1406
|
+
function a(p, w) {
|
|
1407
|
+
const [g, $, c, f, d, v, S] = s(p, w);
|
|
1391
1408
|
let u = (y) => {
|
|
1392
1409
|
if (g && $ === null && f)
|
|
1393
|
-
return g() ? f(y) :
|
|
1410
|
+
return g() ? f(y) : d && d(y);
|
|
1394
1411
|
if ($ && (!g || g())) {
|
|
1395
1412
|
if ($ === "text" && f)
|
|
1396
1413
|
return Tt(String(f()));
|
|
1397
1414
|
if ($ === "slot" && f)
|
|
1398
1415
|
return f(y);
|
|
1399
|
-
const b =
|
|
1400
|
-
return pe(b, c(),
|
|
1416
|
+
const b = S ? L($) : $, k = f != null && f.slot ? o(f, y) : null;
|
|
1417
|
+
return pe(b, c(), k || (f ? f(y) : []));
|
|
1401
1418
|
}
|
|
1402
|
-
return typeof
|
|
1419
|
+
return typeof d == "function" ? d(y) : d;
|
|
1403
1420
|
};
|
|
1404
1421
|
if (v) {
|
|
1405
|
-
const y = u, [b,
|
|
1422
|
+
const y = u, [b, k, P] = v;
|
|
1406
1423
|
u = () => {
|
|
1407
|
-
const I = b(), M = isNaN(I) ? I : Array(Number(I)).fill(0).map((
|
|
1424
|
+
const I = b(), M = isNaN(I) ? I : Array(Number(I)).fill(0).map((j, B) => B), V = [];
|
|
1408
1425
|
if (typeof M != "object")
|
|
1409
1426
|
return null;
|
|
1410
1427
|
const E = Y.get(D) || [];
|
|
1411
|
-
for (const
|
|
1412
|
-
if (Array.isArray(M) &&
|
|
1428
|
+
for (const j in M) {
|
|
1429
|
+
if (Array.isArray(M) && j === "length")
|
|
1413
1430
|
continue;
|
|
1414
1431
|
const B = Object.defineProperty({
|
|
1415
1432
|
...E.reduce((z, x) => z.__idata ? { ...z, ...x } : x, {}),
|
|
1416
|
-
[
|
|
1417
|
-
...P !== null ? { [P]:
|
|
1433
|
+
[k]: M[j],
|
|
1434
|
+
...P !== null ? { [P]: j } : {}
|
|
1418
1435
|
}, "__idata", { enumerable: !1, value: !0 });
|
|
1419
1436
|
E.unshift(B), V.push(y.bind(null, B)()), E.shift();
|
|
1420
1437
|
}
|
|
@@ -1423,25 +1440,25 @@ function ot(e, n) {
|
|
|
1423
1440
|
}
|
|
1424
1441
|
return u;
|
|
1425
1442
|
}
|
|
1426
|
-
function m(
|
|
1443
|
+
function m(p, w) {
|
|
1427
1444
|
if (Array.isArray(w)) {
|
|
1428
|
-
const $ = w.map(a.bind(null,
|
|
1445
|
+
const $ = w.map(a.bind(null, p));
|
|
1429
1446
|
return (c) => $.map((f) => f(c));
|
|
1430
1447
|
}
|
|
1431
|
-
const g = a(
|
|
1448
|
+
const g = a(p, w);
|
|
1432
1449
|
return ($) => g($);
|
|
1433
1450
|
}
|
|
1434
1451
|
const h = [];
|
|
1435
|
-
function _(
|
|
1452
|
+
function _(p, w = {}) {
|
|
1436
1453
|
const g = {};
|
|
1437
1454
|
return h.push(($, c) => {
|
|
1438
|
-
g[c] =
|
|
1455
|
+
g[c] = p.provide((f) => $(f, w));
|
|
1439
1456
|
}), () => g[D]();
|
|
1440
1457
|
}
|
|
1441
1458
|
return function(w, g) {
|
|
1442
|
-
const $ = JSON.stringify(n), [c, f] =
|
|
1443
|
-
return
|
|
1444
|
-
|
|
1459
|
+
const $ = JSON.stringify(n), [c, f] = R(Se, $) ? Se[$] : [m(e, n), h];
|
|
1460
|
+
return Se[$] = [c, f], f.forEach((d) => {
|
|
1461
|
+
d(w, g);
|
|
1445
1462
|
}), () => (D = g, c());
|
|
1446
1463
|
};
|
|
1447
1464
|
}
|
|
@@ -1450,7 +1467,7 @@ function It(e, n) {
|
|
|
1450
1467
|
let r;
|
|
1451
1468
|
return t.length && (r = ze(t, e.split("."))), r === void 0 ? n : r;
|
|
1452
1469
|
}
|
|
1453
|
-
function
|
|
1470
|
+
function Vr(e, n) {
|
|
1454
1471
|
return new Proxy(e, {
|
|
1455
1472
|
get(...t) {
|
|
1456
1473
|
let r;
|
|
@@ -1466,11 +1483,11 @@ function Cr(e, n) {
|
|
|
1466
1483
|
function lt(e, n, t) {
|
|
1467
1484
|
return e((r, i = {}) => r.reduce((s, o) => {
|
|
1468
1485
|
if (o.startsWith("slots.")) {
|
|
1469
|
-
const m = o.substring(6), h = n.slots &&
|
|
1486
|
+
const m = o.substring(6), h = n.slots && R(n.slots, m);
|
|
1470
1487
|
if (i.if)
|
|
1471
1488
|
s[o] = () => h;
|
|
1472
1489
|
else if (n.slots && h) {
|
|
1473
|
-
const _ =
|
|
1490
|
+
const _ = Vr(n, t);
|
|
1474
1491
|
return s[o] = () => n.slots[m](_), s;
|
|
1475
1492
|
}
|
|
1476
1493
|
}
|
|
@@ -1479,7 +1496,7 @@ function lt(e, n, t) {
|
|
|
1479
1496
|
}, {}), t);
|
|
1480
1497
|
}
|
|
1481
1498
|
let at = 0;
|
|
1482
|
-
const
|
|
1499
|
+
const Ir = A({
|
|
1483
1500
|
name: "FormKitSchema",
|
|
1484
1501
|
props: {
|
|
1485
1502
|
schema: {
|
|
@@ -1509,7 +1526,7 @@ const Vr = A({
|
|
|
1509
1526
|
}), s = lt(i, o, r);
|
|
1510
1527
|
}), () => s();
|
|
1511
1528
|
}
|
|
1512
|
-
}),
|
|
1529
|
+
}), Pr = {
|
|
1513
1530
|
config: {
|
|
1514
1531
|
type: Object,
|
|
1515
1532
|
default: {}
|
|
@@ -1577,9 +1594,9 @@ const Vr = A({
|
|
|
1577
1594
|
type: [String, Function],
|
|
1578
1595
|
required: !1
|
|
1579
1596
|
}
|
|
1580
|
-
},
|
|
1597
|
+
}, Or = Pr, Ee = Symbol("FormKitParent");
|
|
1581
1598
|
A({
|
|
1582
|
-
props:
|
|
1599
|
+
props: Or,
|
|
1583
1600
|
emits: {
|
|
1584
1601
|
input: (e, n) => !0,
|
|
1585
1602
|
inputRaw: (e, n) => !0,
|
|
@@ -1606,38 +1623,38 @@ A({
|
|
|
1606
1623
|
};
|
|
1607
1624
|
i(), t.on("schema", i), n.emit("node", t);
|
|
1608
1625
|
const s = t.props.definition.library;
|
|
1609
|
-
return n.expose({ node: t }), () => pe(
|
|
1626
|
+
return n.expose({ node: t }), () => pe(Ir, { schema: r.value, data: t.context, library: s }, { ...n.slots });
|
|
1610
1627
|
}
|
|
1611
1628
|
});
|
|
1612
|
-
const Pt = Symbol.for("FormKitOptions"),
|
|
1613
|
-
function
|
|
1629
|
+
const Pt = Symbol.for("FormKitOptions"), je = Symbol();
|
|
1630
|
+
function xr(e, n) {
|
|
1614
1631
|
const t = {}, r = (o) => {
|
|
1615
1632
|
for (const a of o)
|
|
1616
|
-
a.__str in t && t[a.__str](), t[a.__str] = ce(
|
|
1617
|
-
}, s =
|
|
1633
|
+
a.__str in t && t[a.__str](), t[a.__str] = ce(Er.bind(null, e, a), s.bind(null, a), { deep: !1 });
|
|
1634
|
+
}, s = Ar(e, n, r, (o) => {
|
|
1618
1635
|
if (!!o.length)
|
|
1619
1636
|
for (const a in t)
|
|
1620
1637
|
`${a}`.startsWith(`${o.__str}.`) && (t[a](), delete t[a]);
|
|
1621
1638
|
});
|
|
1622
1639
|
r(Ne(e));
|
|
1623
1640
|
}
|
|
1624
|
-
function
|
|
1641
|
+
function Ar(e, n, t, r) {
|
|
1625
1642
|
return (i) => {
|
|
1626
1643
|
const s = Ot(e, i);
|
|
1627
|
-
s !==
|
|
1644
|
+
s !== je && (i.__deep && r(i), typeof s == "object" && t(Ne(s, [i], ...i)), n(i, s, e));
|
|
1628
1645
|
};
|
|
1629
1646
|
}
|
|
1630
|
-
function
|
|
1647
|
+
function Er(e, n) {
|
|
1631
1648
|
const t = Ot(e, n);
|
|
1632
1649
|
return t && typeof t == "object" ? Object.keys(t) : t;
|
|
1633
1650
|
}
|
|
1634
1651
|
function Ot(e, n) {
|
|
1635
|
-
if (
|
|
1652
|
+
if (Re(e)) {
|
|
1636
1653
|
if (n.length === 0)
|
|
1637
1654
|
return e.value;
|
|
1638
1655
|
e = e.value;
|
|
1639
1656
|
}
|
|
1640
|
-
return n.reduce((t, r) => t ===
|
|
1657
|
+
return n.reduce((t, r) => t === je ? t : t === null || typeof t != "object" ? je : t[r], e);
|
|
1641
1658
|
}
|
|
1642
1659
|
function Ne(e, n = [], ...t) {
|
|
1643
1660
|
if (e === null)
|
|
@@ -1646,7 +1663,7 @@ function Ne(e, n = [], ...t) {
|
|
|
1646
1663
|
const r = Object.defineProperty([], "__str", {
|
|
1647
1664
|
value: ""
|
|
1648
1665
|
});
|
|
1649
|
-
if (e =
|
|
1666
|
+
if (e = Re(e) ? e.value : e, e && typeof e == "object")
|
|
1650
1667
|
Object.defineProperty(r, "__deep", { value: !0 }), n.push(r);
|
|
1651
1668
|
else
|
|
1652
1669
|
return [r];
|
|
@@ -1662,7 +1679,7 @@ function Ne(e, n = [], ...t) {
|
|
|
1662
1679
|
return n;
|
|
1663
1680
|
}
|
|
1664
1681
|
function fe(e) {
|
|
1665
|
-
return e === null || typeof e != "object" || (Ze(e) ? e = Lt(e) :
|
|
1682
|
+
return e === null || typeof e != "object" || (Ze(e) ? e = Lt(e) : Re(e) && (e = Ze(e.value) ? fe(e.value) : e.value)), e;
|
|
1666
1683
|
}
|
|
1667
1684
|
const Ce = [
|
|
1668
1685
|
"help",
|
|
@@ -1682,14 +1699,14 @@ function ut(e, n) {
|
|
|
1682
1699
|
typeof t == "string" && (e.props[`_${t}Class`] = n.classes[t], Ie(n.classes[t]) && t === "inner" && Object.values(n.classes[t]));
|
|
1683
1700
|
});
|
|
1684
1701
|
}
|
|
1685
|
-
function
|
|
1702
|
+
function jr(e) {
|
|
1686
1703
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, r) => {
|
|
1687
1704
|
const i = `on${r}`;
|
|
1688
1705
|
return i in e && typeof e[i] == "function" && (t[i] = e[i]), t;
|
|
1689
1706
|
}, {}) : {};
|
|
1690
1707
|
}
|
|
1691
1708
|
function Rr(e, n, t = {}) {
|
|
1692
|
-
const r = Object.assign({}, de(Pt) || {}, t), i = ft(), s =
|
|
1709
|
+
const r = Object.assign({}, de(Pt) || {}, t), i = ft(), s = jr(i == null ? void 0 : i.vnode.props), o = e.modelValue !== void 0, a = e.modelValue !== void 0 ? e.modelValue : J(n.attrs.value);
|
|
1693
1710
|
function m() {
|
|
1694
1711
|
const u = {
|
|
1695
1712
|
...Q(e),
|
|
@@ -1699,10 +1716,10 @@ function Rr(e, n, t = {}) {
|
|
|
1699
1716
|
const b = Je(Q(n.attrs), Ce);
|
|
1700
1717
|
for (const P in b)
|
|
1701
1718
|
u[oe(P)] = b[P];
|
|
1702
|
-
const
|
|
1703
|
-
return ut(
|
|
1719
|
+
const k = { props: {} };
|
|
1720
|
+
return ut(k, e), Object.assign(u, k.props), typeof u.type != "string" && (u.definition = u.type, delete u.type), u;
|
|
1704
1721
|
}
|
|
1705
|
-
const h = m(), _ = h.ignore ? null : e.parent || de(Ee, null),
|
|
1722
|
+
const h = m(), _ = h.ignore ? null : e.parent || de(Ee, null), p = tr(Te(r || {}, {
|
|
1706
1723
|
name: e.name || void 0,
|
|
1707
1724
|
value: a,
|
|
1708
1725
|
parent: _,
|
|
@@ -1711,36 +1728,36 @@ function Rr(e, n, t = {}) {
|
|
|
1711
1728
|
props: h,
|
|
1712
1729
|
index: e.index
|
|
1713
1730
|
}, !1, !0));
|
|
1714
|
-
|
|
1715
|
-
const w = ie(new Set(
|
|
1716
|
-
|
|
1731
|
+
p.props.definition || U(600, p);
|
|
1732
|
+
const w = ie(new Set(p.props.definition.props || []));
|
|
1733
|
+
p.on("added-props", ({ payload: u }) => {
|
|
1717
1734
|
Array.isArray(u) && u.forEach((y) => w.value.add(y));
|
|
1718
1735
|
});
|
|
1719
1736
|
const g = At(() => Ce.concat([...w.value]).reduce((u, y) => (typeof y == "string" ? (u.push(oe(y)), u.push(dt(y))) : u.push(y), u), []));
|
|
1720
|
-
Z(() => ut(
|
|
1737
|
+
Z(() => ut(p, e));
|
|
1721
1738
|
const $ = Q(e);
|
|
1722
1739
|
for (const u in $)
|
|
1723
1740
|
ce(() => e[u], () => {
|
|
1724
|
-
e[u] !== void 0 && (
|
|
1741
|
+
e[u] !== void 0 && (p.props[u] = e[u]);
|
|
1725
1742
|
});
|
|
1726
1743
|
const c = /* @__PURE__ */ new Set(), f = Q(n.attrs);
|
|
1727
1744
|
Z(() => {
|
|
1728
|
-
|
|
1745
|
+
d(Je(f, g.value));
|
|
1729
1746
|
});
|
|
1730
|
-
function
|
|
1747
|
+
function d(u) {
|
|
1731
1748
|
c.forEach((y) => {
|
|
1732
1749
|
y(), c.delete(y);
|
|
1733
1750
|
});
|
|
1734
1751
|
for (const y in u) {
|
|
1735
1752
|
const b = oe(y);
|
|
1736
1753
|
c.add(ce(() => n.attrs[y], () => {
|
|
1737
|
-
|
|
1754
|
+
p.props[b] = n.attrs[y];
|
|
1738
1755
|
}));
|
|
1739
1756
|
}
|
|
1740
1757
|
}
|
|
1741
1758
|
if (Z(() => {
|
|
1742
1759
|
const u = Ye(Q(n.attrs), g.value);
|
|
1743
|
-
|
|
1760
|
+
p.props.attrs = Object.assign({}, p.props.attrs || {}, u);
|
|
1744
1761
|
}), Z(() => {
|
|
1745
1762
|
const u = e.errors.map((y) => _e({
|
|
1746
1763
|
key: mt(y),
|
|
@@ -1748,43 +1765,43 @@ function Rr(e, n, t = {}) {
|
|
|
1748
1765
|
value: y,
|
|
1749
1766
|
meta: { source: "prop" }
|
|
1750
1767
|
}));
|
|
1751
|
-
|
|
1752
|
-
}),
|
|
1753
|
-
const u = `${
|
|
1768
|
+
p.store.apply(u, (y) => y.type === "error" && y.meta.source === "prop");
|
|
1769
|
+
}), p.type !== "input") {
|
|
1770
|
+
const u = `${p.name}-prop`;
|
|
1754
1771
|
Z(() => {
|
|
1755
1772
|
const y = Object.keys(e.inputErrors);
|
|
1756
|
-
y.length ||
|
|
1757
|
-
const b = y.reduce((
|
|
1773
|
+
y.length || p.clearErrors(!0, u);
|
|
1774
|
+
const b = y.reduce((k, P) => {
|
|
1758
1775
|
let I = e.inputErrors[P];
|
|
1759
|
-
return typeof I == "string" && (I = [I]), Array.isArray(I) && (
|
|
1776
|
+
return typeof I == "string" && (I = [I]), Array.isArray(I) && (k[P] = I.map((M) => _e({
|
|
1760
1777
|
key: M,
|
|
1761
1778
|
type: "error",
|
|
1762
1779
|
value: M,
|
|
1763
1780
|
meta: { source: u }
|
|
1764
|
-
}))),
|
|
1781
|
+
}))), k;
|
|
1765
1782
|
}, {});
|
|
1766
|
-
|
|
1783
|
+
p.store.apply(b, (k) => k.type === "error" && k.meta.source === u);
|
|
1767
1784
|
});
|
|
1768
1785
|
}
|
|
1769
|
-
Z(() => Object.assign(
|
|
1786
|
+
Z(() => Object.assign(p.config, e.config)), p.type !== "input" && Et(Ee, p);
|
|
1770
1787
|
let v;
|
|
1771
|
-
const
|
|
1772
|
-
return
|
|
1788
|
+
const S = /* @__PURE__ */ new WeakSet();
|
|
1789
|
+
return p.on("modelUpdated", () => {
|
|
1773
1790
|
var u, y;
|
|
1774
|
-
if (n.emit("inputRaw", (u =
|
|
1775
|
-
const b = fe(
|
|
1776
|
-
Ie(b) && fe(e.modelValue) !== b &&
|
|
1791
|
+
if (n.emit("inputRaw", (u = p.context) === null || u === void 0 ? void 0 : u.value, p), clearTimeout(v), v = setTimeout(n.emit, 20, "input", (y = p.context) === null || y === void 0 ? void 0 : y.value, p), o && p.context) {
|
|
1792
|
+
const b = fe(p.context.value);
|
|
1793
|
+
Ie(b) && fe(e.modelValue) !== b && S.add(b), n.emit("update:modelValue", b);
|
|
1777
1794
|
}
|
|
1778
|
-
}), o &&
|
|
1795
|
+
}), o && (xr(jt(e, "modelValue"), (u, y) => {
|
|
1779
1796
|
var b;
|
|
1780
|
-
const
|
|
1781
|
-
if (Ie(
|
|
1782
|
-
return
|
|
1783
|
-
u.length ? (b =
|
|
1784
|
-
}),
|
|
1785
|
-
}
|
|
1786
|
-
let
|
|
1787
|
-
function
|
|
1797
|
+
const k = fe(y);
|
|
1798
|
+
if (Ie(k) && S.has(k))
|
|
1799
|
+
return S.delete(k);
|
|
1800
|
+
u.length ? (b = p.at(u)) === null || b === void 0 || b.input(y, !1) : p.input(y, !1);
|
|
1801
|
+
}), p.value !== a && p.emit("modelUpdated")), Rt(() => p.destroy()), p;
|
|
1802
|
+
}
|
|
1803
|
+
let Lr = 1;
|
|
1804
|
+
function Mr(e) {
|
|
1788
1805
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
1789
1806
|
}
|
|
1790
1807
|
function T(e, n = {}) {
|
|
@@ -1793,8 +1810,8 @@ function T(e, n = {}) {
|
|
|
1793
1810
|
...n
|
|
1794
1811
|
};
|
|
1795
1812
|
let r;
|
|
1796
|
-
if (
|
|
1797
|
-
const i = `SchemaComponent${
|
|
1813
|
+
if (Mr(e)) {
|
|
1814
|
+
const i = `SchemaComponent${Lr++}`;
|
|
1798
1815
|
r = q("input", () => ({
|
|
1799
1816
|
$cmp: i,
|
|
1800
1817
|
props: {
|
|
@@ -1803,7 +1820,7 @@ function T(e, n = {}) {
|
|
|
1803
1820
|
})), t.library = { [i]: Mt(e) };
|
|
1804
1821
|
} else
|
|
1805
1822
|
typeof e == "function" ? r = e : r = q("input", () => J(e));
|
|
1806
|
-
return t.schema =
|
|
1823
|
+
return t.schema = mr(r || "Schema undefined"), t;
|
|
1807
1824
|
}
|
|
1808
1825
|
A({
|
|
1809
1826
|
name: "FormKitIcon",
|
|
@@ -1826,11 +1843,11 @@ A({
|
|
|
1826
1843
|
const r = ie(void 0), i = de(Pt, {}), s = de(Ee, null);
|
|
1827
1844
|
let o;
|
|
1828
1845
|
if (e.iconLoader && typeof e.iconLoader == "function")
|
|
1829
|
-
o =
|
|
1846
|
+
o = ke(e.iconLoader);
|
|
1830
1847
|
else if (s && ((n = s.props) === null || n === void 0 ? void 0 : n.iconLoader))
|
|
1831
|
-
o =
|
|
1848
|
+
o = ke(s.props.iconLoader);
|
|
1832
1849
|
else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
|
|
1833
|
-
o =
|
|
1850
|
+
o = ke(o, e.iconLoaderUrl);
|
|
1834
1851
|
else {
|
|
1835
1852
|
const a = (t = i == null ? void 0 : i.plugins) === null || t === void 0 ? void 0 : t.find((m) => typeof m.iconHandler == "function");
|
|
1836
1853
|
a && (o = a.iconHandler);
|
|
@@ -1847,7 +1864,7 @@ A({
|
|
|
1847
1864
|
}) : null;
|
|
1848
1865
|
}
|
|
1849
1866
|
});
|
|
1850
|
-
const
|
|
1867
|
+
const Tr = /* @__PURE__ */ A({
|
|
1851
1868
|
__name: "PrimeCalendar",
|
|
1852
1869
|
props: {
|
|
1853
1870
|
context: Object
|
|
@@ -1876,13 +1893,13 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1876
1893
|
}, null, 8, ["modelValue", "id", "name", "class", "date-format", "show-icon", "icon"]);
|
|
1877
1894
|
};
|
|
1878
1895
|
}
|
|
1879
|
-
}),
|
|
1896
|
+
}), Fr = {
|
|
1880
1897
|
key: 0,
|
|
1881
1898
|
class: "formkit-prime-left"
|
|
1882
|
-
},
|
|
1899
|
+
}, Dr = {
|
|
1883
1900
|
key: 1,
|
|
1884
1901
|
class: "formkit-prime-right"
|
|
1885
|
-
},
|
|
1902
|
+
}, Wr = /* @__PURE__ */ A({
|
|
1886
1903
|
__name: "PrimeCheckBox",
|
|
1887
1904
|
props: {
|
|
1888
1905
|
context: Object
|
|
@@ -1895,7 +1912,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1895
1912
|
return (i, s) => {
|
|
1896
1913
|
const o = L("Checkbox");
|
|
1897
1914
|
return O(), H(ct, null, [
|
|
1898
|
-
l(t).attrs.labelLeft ? (O(), H("span",
|
|
1915
|
+
l(t).attrs.labelLeft ? (O(), H("span", Fr, me(l(t).attrs.labelLeft), 1)) : X("", !0),
|
|
1899
1916
|
Le(o, {
|
|
1900
1917
|
modelValue: l(t)._value,
|
|
1901
1918
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => l(t)._value = a),
|
|
@@ -1906,11 +1923,11 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1906
1923
|
binary: !0,
|
|
1907
1924
|
onInput: r
|
|
1908
1925
|
}, null, 8, ["modelValue", "id", "name", "class", "placeholder"]),
|
|
1909
|
-
l(t).attrs.labelRight ? (O(), H("span",
|
|
1926
|
+
l(t).attrs.labelRight ? (O(), H("span", Dr, me(l(t).attrs.labelRight), 1)) : X("", !0)
|
|
1910
1927
|
], 64);
|
|
1911
1928
|
};
|
|
1912
1929
|
}
|
|
1913
|
-
}),
|
|
1930
|
+
}), Ur = /* @__PURE__ */ A({
|
|
1914
1931
|
__name: "PrimeChips",
|
|
1915
1932
|
props: {
|
|
1916
1933
|
context: Object
|
|
@@ -1938,7 +1955,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1938
1955
|
}, null, 8, ["modelValue", "id", "name", "class", "allow-duplicate", "add-on-blur", "max"]);
|
|
1939
1956
|
};
|
|
1940
1957
|
}
|
|
1941
|
-
}),
|
|
1958
|
+
}), Kr = /* @__PURE__ */ A({
|
|
1942
1959
|
__name: "PrimeColorPicker",
|
|
1943
1960
|
props: {
|
|
1944
1961
|
context: Object
|
|
@@ -1963,7 +1980,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1963
1980
|
}, null, 8, ["id", "modelValue", "name", "class", "default-color"]);
|
|
1964
1981
|
};
|
|
1965
1982
|
}
|
|
1966
|
-
}),
|
|
1983
|
+
}), qr = /* @__PURE__ */ A({
|
|
1967
1984
|
__name: "PrimeDropdown",
|
|
1968
1985
|
props: {
|
|
1969
1986
|
context: Object
|
|
@@ -1977,7 +1994,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1977
1994
|
t == null || t.node.input(s.value);
|
|
1978
1995
|
}
|
|
1979
1996
|
return (s, o) => {
|
|
1980
|
-
var m, h, _,
|
|
1997
|
+
var m, h, _, p, w, g, $, c, f, d;
|
|
1981
1998
|
const a = L("Dropdown");
|
|
1982
1999
|
return O(), W(a, {
|
|
1983
2000
|
id: l(t).id,
|
|
@@ -1986,17 +2003,17 @@ const Mr = /* @__PURE__ */ A({
|
|
|
1986
2003
|
name: l(t).name,
|
|
1987
2004
|
class: F(l(t).attrs.class),
|
|
1988
2005
|
options: (h = (m = l(t)) == null ? void 0 : m.attrs) == null ? void 0 : h.options,
|
|
1989
|
-
"option-label": (w = (
|
|
2006
|
+
"option-label": (w = (p = (_ = l(t)) == null ? void 0 : _.attrs) == null ? void 0 : p.optionLabel) != null ? w : "label",
|
|
1990
2007
|
"option-value": (c = ($ = (g = l(t)) == null ? void 0 : g.attrs) == null ? void 0 : $.optionValue) != null ? c : "value",
|
|
1991
2008
|
placeholder: l(t).attrs.placeholder,
|
|
1992
2009
|
filter: (f = l(t).attrs.filter) != null ? f : !1,
|
|
1993
|
-
"show-clear": (
|
|
2010
|
+
"show-clear": (d = l(t).attrs.showClear) != null ? d : !1,
|
|
1994
2011
|
onChange: i,
|
|
1995
2012
|
onBlur: r
|
|
1996
2013
|
}, null, 8, ["id", "modelValue", "name", "class", "options", "option-label", "option-value", "placeholder", "filter", "show-clear"]);
|
|
1997
2014
|
};
|
|
1998
2015
|
}
|
|
1999
|
-
}),
|
|
2016
|
+
}), Br = /* @__PURE__ */ A({
|
|
2000
2017
|
__name: "PrimeEditor",
|
|
2001
2018
|
props: {
|
|
2002
2019
|
context: Object
|
|
@@ -2023,7 +2040,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2023
2040
|
}, null, 8, ["modelValue", "id", "name", "class", "placeholder"]);
|
|
2024
2041
|
};
|
|
2025
2042
|
}
|
|
2026
|
-
}),
|
|
2043
|
+
}), zr = /* @__PURE__ */ A({
|
|
2027
2044
|
__name: "PrimeInputMask",
|
|
2028
2045
|
props: {
|
|
2029
2046
|
context: Object
|
|
@@ -2039,7 +2056,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2039
2056
|
const o = L("InputMask");
|
|
2040
2057
|
return O(), W(o, {
|
|
2041
2058
|
modelValue: l(t)._value,
|
|
2042
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2059
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
|
|
2043
2060
|
id: l(t).id,
|
|
2044
2061
|
name: l(t).name,
|
|
2045
2062
|
class: F(l(t).attrs.class),
|
|
@@ -2052,7 +2069,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2052
2069
|
}, null, 8, ["modelValue", "id", "name", "class", "placeholder", "mask", "slot-char", "auto-clear", "unmask"]);
|
|
2053
2070
|
};
|
|
2054
2071
|
}
|
|
2055
|
-
}),
|
|
2072
|
+
}), Nr = /* @__PURE__ */ A({
|
|
2056
2073
|
__name: "PrimeInputNumber",
|
|
2057
2074
|
props: {
|
|
2058
2075
|
context: Object
|
|
@@ -2066,11 +2083,11 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2066
2083
|
t == null || t.node.input(s.value);
|
|
2067
2084
|
}
|
|
2068
2085
|
return (s, o) => {
|
|
2069
|
-
var m, h, _,
|
|
2086
|
+
var m, h, _, p, w, g, $, c, f, d, v;
|
|
2070
2087
|
const a = L("InputNumber");
|
|
2071
2088
|
return O(), W(a, {
|
|
2072
2089
|
modelValue: l(t)._value,
|
|
2073
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2090
|
+
"onUpdate:modelValue": o[0] || (o[0] = (S) => l(t)._value = S),
|
|
2074
2091
|
id: l(t).id,
|
|
2075
2092
|
name: l(t).name,
|
|
2076
2093
|
placeholder: l(t).attrs.placeholder,
|
|
@@ -2078,26 +2095,26 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2078
2095
|
"use-grouping": (m = l(t).attrs.useGrouping) != null ? m : !0,
|
|
2079
2096
|
"min-fraction-digits": (h = l(t).attrs.minFractionDigits) != null ? h : void 0,
|
|
2080
2097
|
"max-fraction-digits": (_ = l(t).attrs.maxFractionDigits) != null ? _ : void 0,
|
|
2081
|
-
locale: (
|
|
2098
|
+
locale: (p = l(t).attrs.locale) != null ? p : void 0,
|
|
2082
2099
|
mode: (w = l(t).attrs.mode) != null ? w : void 0,
|
|
2083
2100
|
currency: (g = l(t).attrs.currency) != null ? g : void 0,
|
|
2084
2101
|
prefix: ($ = l(t).attrs.prefix) != null ? $ : void 0,
|
|
2085
2102
|
suffix: (c = l(t).attrs.suffix) != null ? c : void 0,
|
|
2086
2103
|
"show-buttons": (f = l(t).attrs.showButtons) != null ? f : void 0,
|
|
2087
|
-
"button-layout": (
|
|
2104
|
+
"button-layout": (d = l(t).attrs.buttonLayout) != null ? d : "stacked",
|
|
2088
2105
|
step: (v = l(t).attrs.step) != null ? v : void 0,
|
|
2089
2106
|
onInput: i,
|
|
2090
2107
|
onBlur: r
|
|
2091
2108
|
}, null, 8, ["modelValue", "id", "name", "placeholder", "class", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step"]);
|
|
2092
2109
|
};
|
|
2093
2110
|
}
|
|
2094
|
-
}),
|
|
2111
|
+
}), Hr = {
|
|
2095
2112
|
key: 0,
|
|
2096
2113
|
class: "formkit-prime-left"
|
|
2097
|
-
},
|
|
2114
|
+
}, Zr = {
|
|
2098
2115
|
key: 1,
|
|
2099
2116
|
class: "formkit-prime-right"
|
|
2100
|
-
},
|
|
2117
|
+
}, Yr = /* @__PURE__ */ A({
|
|
2101
2118
|
__name: "PrimeInputSwitch",
|
|
2102
2119
|
props: {
|
|
2103
2120
|
context: Object
|
|
@@ -2112,7 +2129,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2112
2129
|
var a, m;
|
|
2113
2130
|
const o = L("InputSwitch");
|
|
2114
2131
|
return O(), H(ct, null, [
|
|
2115
|
-
l(t).attrs.labelLeft ? (O(), H("span",
|
|
2132
|
+
l(t).attrs.labelLeft ? (O(), H("span", Hr, me(l(t).attrs.labelLeft), 1)) : X("", !0),
|
|
2116
2133
|
Le(o, {
|
|
2117
2134
|
modelValue: l(t)._value,
|
|
2118
2135
|
"onUpdate:modelValue": s[0] || (s[0] = (h) => l(t)._value = h),
|
|
@@ -2123,11 +2140,11 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2123
2140
|
"false-value": (m = l(t).attrs.falseValue) != null ? m : void 0,
|
|
2124
2141
|
onInput: r
|
|
2125
2142
|
}, null, 8, ["modelValue", "id", "name", "class", "true-value", "false-value"]),
|
|
2126
|
-
l(t).attrs.labelRight ? (O(), H("span",
|
|
2143
|
+
l(t).attrs.labelRight ? (O(), H("span", Zr, me(l(t).attrs.labelRight), 1)) : X("", !0)
|
|
2127
2144
|
], 64);
|
|
2128
2145
|
};
|
|
2129
2146
|
}
|
|
2130
|
-
}),
|
|
2147
|
+
}), Jr = /* @__PURE__ */ A({
|
|
2131
2148
|
__name: "PrimeInputText",
|
|
2132
2149
|
props: {
|
|
2133
2150
|
context: Object
|
|
@@ -2151,10 +2168,10 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2151
2168
|
r() ? (O(), H("i", {
|
|
2152
2169
|
key: 0,
|
|
2153
2170
|
class: F(l(t).iconLeft)
|
|
2154
|
-
}, null, 2)) :
|
|
2171
|
+
}, null, 2)) : X("", !0),
|
|
2155
2172
|
Le(_, {
|
|
2156
2173
|
modelValue: l(t)._value,
|
|
2157
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2174
|
+
"onUpdate:modelValue": h[0] || (h[0] = (p) => l(t)._value = p),
|
|
2158
2175
|
id: l(t).id,
|
|
2159
2176
|
name: l(t).name,
|
|
2160
2177
|
class: F(l(t).attrs.class),
|
|
@@ -2165,11 +2182,11 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2165
2182
|
i ? (O(), H("i", {
|
|
2166
2183
|
key: 1,
|
|
2167
2184
|
class: F(l(t).iconRight)
|
|
2168
|
-
}, null, 2)) :
|
|
2185
|
+
}, null, 2)) : X("", !0)
|
|
2169
2186
|
], 2);
|
|
2170
2187
|
};
|
|
2171
2188
|
}
|
|
2172
|
-
}),
|
|
2189
|
+
}), Qr = /* @__PURE__ */ A({
|
|
2173
2190
|
__name: "PrimeInputTextArea",
|
|
2174
2191
|
props: {
|
|
2175
2192
|
context: Object
|
|
@@ -2198,7 +2215,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2198
2215
|
}, null, 8, ["modelValue", "id", "name", "class", "placeholder", "rows"]);
|
|
2199
2216
|
};
|
|
2200
2217
|
}
|
|
2201
|
-
}),
|
|
2218
|
+
}), Gr = /* @__PURE__ */ A({
|
|
2202
2219
|
__name: "PrimeKnob",
|
|
2203
2220
|
props: {
|
|
2204
2221
|
context: Object
|
|
@@ -2209,18 +2226,18 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2209
2226
|
t == null || t.node.input(i), t == null || t.handlers.blur(i);
|
|
2210
2227
|
}
|
|
2211
2228
|
return (i, s) => {
|
|
2212
|
-
var a, m, h, _,
|
|
2229
|
+
var a, m, h, _, p, w, g, $, c, f;
|
|
2213
2230
|
const o = L("Knob");
|
|
2214
2231
|
return O(), W(o, {
|
|
2215
2232
|
modelValue: l(t)._value,
|
|
2216
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2233
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
|
|
2217
2234
|
id: l(t).id,
|
|
2218
2235
|
name: l(t).name,
|
|
2219
2236
|
min: (a = l(t).attrs.min) != null ? a : 0,
|
|
2220
2237
|
max: (m = l(t).attrs.max) != null ? m : 100,
|
|
2221
2238
|
step: (h = l(t).attrs.step) != null ? h : void 0,
|
|
2222
2239
|
size: (_ = l(t).attrs.max) != null ? _ : 100,
|
|
2223
|
-
"stroke-width": (
|
|
2240
|
+
"stroke-width": (p = l(t).attrs.strokeWidth) != null ? p : 14,
|
|
2224
2241
|
"show-value": (w = l(t).attrs.showValue) != null ? w : !0,
|
|
2225
2242
|
"value-color": (g = l(t).attrs.valueColor) != null ? g : void 0,
|
|
2226
2243
|
"range-color": ($ = l(t).attrs.rangeColor) != null ? $ : void 0,
|
|
@@ -2230,7 +2247,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2230
2247
|
}, null, 8, ["modelValue", "id", "name", "min", "max", "step", "size", "stroke-width", "show-value", "value-color", "range-color", "text-color", "value-template"]);
|
|
2231
2248
|
};
|
|
2232
2249
|
}
|
|
2233
|
-
}),
|
|
2250
|
+
}), Xr = /* @__PURE__ */ A({
|
|
2234
2251
|
__name: "PrimeMultiSelect",
|
|
2235
2252
|
props: {
|
|
2236
2253
|
context: Object
|
|
@@ -2242,7 +2259,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2242
2259
|
t == null || t.node.input((s = n.context) == null ? void 0 : s._value);
|
|
2243
2260
|
}
|
|
2244
2261
|
return (i, s) => {
|
|
2245
|
-
var a, m, h, _,
|
|
2262
|
+
var a, m, h, _, p, w, g, $, c;
|
|
2246
2263
|
const o = L("MultiSelect");
|
|
2247
2264
|
return O(), W(o, {
|
|
2248
2265
|
id: l(t).id,
|
|
@@ -2251,7 +2268,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2251
2268
|
name: l(t).name,
|
|
2252
2269
|
class: F(l(t).attrs.class),
|
|
2253
2270
|
options: (m = (a = l(t)) == null ? void 0 : a.attrs) == null ? void 0 : m.options,
|
|
2254
|
-
"option-label": (
|
|
2271
|
+
"option-label": (p = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? p : "label",
|
|
2255
2272
|
"option-value": ($ = (g = (w = l(t)) == null ? void 0 : w.attrs) == null ? void 0 : g.optionValue) != null ? $ : "value",
|
|
2256
2273
|
placeholder: l(t).attrs.placeholder,
|
|
2257
2274
|
filter: (c = l(t).attrs.filter) != null ? c : !1,
|
|
@@ -2259,7 +2276,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2259
2276
|
}, null, 8, ["id", "modelValue", "name", "class", "options", "option-label", "option-value", "placeholder", "filter"]);
|
|
2260
2277
|
};
|
|
2261
2278
|
}
|
|
2262
|
-
}),
|
|
2279
|
+
}), ei = /* @__PURE__ */ A({
|
|
2263
2280
|
__name: "PrimeListbox",
|
|
2264
2281
|
props: {
|
|
2265
2282
|
context: Object
|
|
@@ -2271,18 +2288,18 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2271
2288
|
t == null || t.node.input((s = n.context) == null ? void 0 : s._value);
|
|
2272
2289
|
}
|
|
2273
2290
|
return (i, s) => {
|
|
2274
|
-
var a, m, h, _,
|
|
2291
|
+
var a, m, h, _, p, w, g, $, c, f;
|
|
2275
2292
|
const o = L("Listbox");
|
|
2276
2293
|
return O(), W(o, {
|
|
2277
2294
|
id: l(t).id,
|
|
2278
2295
|
modelValue: l(t)._value,
|
|
2279
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2296
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
|
|
2280
2297
|
name: l(t).name,
|
|
2281
2298
|
class: F(l(t).attrs.class),
|
|
2282
2299
|
style: Ft(l(t).attrs.style),
|
|
2283
2300
|
"list-style": l(t).attrs.listStyle,
|
|
2284
2301
|
options: (m = (a = l(t)) == null ? void 0 : a.attrs) == null ? void 0 : m.options,
|
|
2285
|
-
"option-label": (
|
|
2302
|
+
"option-label": (p = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? p : "label",
|
|
2286
2303
|
"option-value": ($ = (g = (w = l(t)) == null ? void 0 : w.attrs) == null ? void 0 : g.optionValue) != null ? $ : "value",
|
|
2287
2304
|
"filter-placeholder": l(t).attrs.filterPlaceholder,
|
|
2288
2305
|
filter: (c = l(t).attrs.filter) != null ? c : !1,
|
|
@@ -2291,7 +2308,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2291
2308
|
}, null, 8, ["id", "modelValue", "name", "class", "style", "list-style", "options", "option-label", "option-value", "filter-placeholder", "filter", "multiple"]);
|
|
2292
2309
|
};
|
|
2293
2310
|
}
|
|
2294
|
-
}),
|
|
2311
|
+
}), ti = /* @__PURE__ */ A({
|
|
2295
2312
|
__name: "PrimePassword",
|
|
2296
2313
|
props: {
|
|
2297
2314
|
context: Object
|
|
@@ -2305,7 +2322,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2305
2322
|
t == null || t.node.input(s.target.value);
|
|
2306
2323
|
}
|
|
2307
2324
|
return (s, o) => {
|
|
2308
|
-
var m, h, _,
|
|
2325
|
+
var m, h, _, p;
|
|
2309
2326
|
const a = L("Password");
|
|
2310
2327
|
return O(), W(a, {
|
|
2311
2328
|
modelValue: l(t)._value,
|
|
@@ -2315,13 +2332,13 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2315
2332
|
class: F(l(t).attrs.class),
|
|
2316
2333
|
placeholder: l(t).attrs.placeholder,
|
|
2317
2334
|
feedback: (h = (m = l(t)) == null ? void 0 : m.feedback) != null ? h : !0,
|
|
2318
|
-
"toggle-mask": (
|
|
2335
|
+
"toggle-mask": (p = (_ = l(t)) == null ? void 0 : _.toggleMask) != null ? p : !1,
|
|
2319
2336
|
onInput: i,
|
|
2320
2337
|
onBlur: r
|
|
2321
2338
|
}, null, 8, ["modelValue", "id", "name", "class", "placeholder", "feedback", "toggle-mask"]);
|
|
2322
2339
|
};
|
|
2323
2340
|
}
|
|
2324
|
-
}),
|
|
2341
|
+
}), ni = /* @__PURE__ */ A({
|
|
2325
2342
|
__name: "PrimeRating",
|
|
2326
2343
|
props: {
|
|
2327
2344
|
context: Object
|
|
@@ -2337,7 +2354,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2337
2354
|
const o = L("Rating");
|
|
2338
2355
|
return O(), W(o, {
|
|
2339
2356
|
modelValue: l(t)._value,
|
|
2340
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2357
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
|
|
2341
2358
|
id: l(t).id,
|
|
2342
2359
|
name: l(t).name,
|
|
2343
2360
|
disabled: (a = l(t).attrs.disabled) != null ? a : !1,
|
|
@@ -2348,7 +2365,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2348
2365
|
}, null, 8, ["modelValue", "id", "name", "disabled", "readonly", "stars", "cancel"]);
|
|
2349
2366
|
};
|
|
2350
2367
|
}
|
|
2351
|
-
}),
|
|
2368
|
+
}), ri = /* @__PURE__ */ A({
|
|
2352
2369
|
__name: "PrimeSlider",
|
|
2353
2370
|
props: {
|
|
2354
2371
|
context: Object
|
|
@@ -2363,7 +2380,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2363
2380
|
const o = L("Slider");
|
|
2364
2381
|
return O(), W(o, {
|
|
2365
2382
|
modelValue: l(t)._value,
|
|
2366
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2383
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
|
|
2367
2384
|
id: l(t).id,
|
|
2368
2385
|
name: l(t).name,
|
|
2369
2386
|
min: (a = l(t).attrs.min) != null ? a : 0,
|
|
@@ -2374,7 +2391,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2374
2391
|
}, null, 8, ["modelValue", "id", "name", "min", "max", "step", "range"]);
|
|
2375
2392
|
};
|
|
2376
2393
|
}
|
|
2377
|
-
}),
|
|
2394
|
+
}), ii = /* @__PURE__ */ A({
|
|
2378
2395
|
__name: "PrimeToggleButton",
|
|
2379
2396
|
props: {
|
|
2380
2397
|
context: Object
|
|
@@ -2391,7 +2408,7 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2391
2408
|
return O(), W(o, {
|
|
2392
2409
|
id: l(t).id,
|
|
2393
2410
|
modelValue: l(t)._value,
|
|
2394
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2411
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
|
|
2395
2412
|
"input-class": l(t).attrs.inputClass,
|
|
2396
2413
|
"input-style": l(t).attrs.inputStyle,
|
|
2397
2414
|
"on-label": (a = l(t).attrs.onLabel) != null ? a : "Yes",
|
|
@@ -2402,80 +2419,80 @@ const Mr = /* @__PURE__ */ A({
|
|
|
2402
2419
|
}, null, 8, ["id", "modelValue", "input-class", "input-style", "on-label", "off-label", "on-icon", "off-icon"]);
|
|
2403
2420
|
};
|
|
2404
2421
|
}
|
|
2405
|
-
}),
|
|
2422
|
+
}), si = T(Jr, {
|
|
2406
2423
|
props: ["iconRight", "iconLeft"]
|
|
2407
|
-
}),
|
|
2424
|
+
}), oi = T(Nr, {
|
|
2408
2425
|
props: ["iconRight", "iconLeft"]
|
|
2409
|
-
}),
|
|
2426
|
+
}), li = T(zr, {
|
|
2410
2427
|
props: []
|
|
2411
|
-
}),
|
|
2428
|
+
}), ai = T(ti, {
|
|
2412
2429
|
props: ["feedback", "toggleMask"]
|
|
2413
|
-
}),
|
|
2430
|
+
}), ui = T(Qr, {
|
|
2414
2431
|
props: ["rows"]
|
|
2415
|
-
}),
|
|
2432
|
+
}), fi = T(Wr, {
|
|
2416
2433
|
props: []
|
|
2417
|
-
}),
|
|
2434
|
+
}), ci = T(Yr, {
|
|
2418
2435
|
props: []
|
|
2419
|
-
}),
|
|
2436
|
+
}), pi = T(Br, {
|
|
2420
2437
|
props: []
|
|
2421
|
-
}),
|
|
2422
|
-
props: []
|
|
2423
|
-
}), di = T(Gr, {
|
|
2438
|
+
}), di = T(qr, {
|
|
2424
2439
|
props: []
|
|
2425
2440
|
}), mi = T(Xr, {
|
|
2426
2441
|
props: []
|
|
2427
|
-
}), yi = T(
|
|
2442
|
+
}), yi = T(ei, {
|
|
2443
|
+
props: []
|
|
2444
|
+
}), hi = T(Tr, {
|
|
2428
2445
|
props: []
|
|
2429
|
-
}),
|
|
2446
|
+
}), _i = T(ri, {
|
|
2430
2447
|
props: []
|
|
2431
|
-
}),
|
|
2448
|
+
}), gi = T(ni, {
|
|
2432
2449
|
props: []
|
|
2433
|
-
}),
|
|
2450
|
+
}), vi = T(Ur, {
|
|
2434
2451
|
props: []
|
|
2435
|
-
}),
|
|
2452
|
+
}), bi = T(Gr, {
|
|
2436
2453
|
props: []
|
|
2437
|
-
}),
|
|
2454
|
+
}), $i = T(Kr, {
|
|
2438
2455
|
props: []
|
|
2439
|
-
}),
|
|
2456
|
+
}), wi = T(ii, {
|
|
2440
2457
|
props: []
|
|
2441
2458
|
}), Si = {
|
|
2442
|
-
primeInputText:
|
|
2443
|
-
primeInputNumber:
|
|
2444
|
-
primeInputMask:
|
|
2445
|
-
primePassword:
|
|
2446
|
-
primeCheckBox:
|
|
2447
|
-
primeInputSwitch:
|
|
2448
|
-
primeInputTextArea:
|
|
2449
|
-
primeEditor:
|
|
2450
|
-
primeDropdown:
|
|
2451
|
-
primeMultiSelect:
|
|
2452
|
-
primeCalendar:
|
|
2453
|
-
primeSlider:
|
|
2454
|
-
primeChips:
|
|
2455
|
-
primeKnob:
|
|
2456
|
-
primeRating:
|
|
2457
|
-
primeColorPicker:
|
|
2458
|
-
primeToggleButton:
|
|
2459
|
-
primeListbox:
|
|
2459
|
+
primeInputText: si,
|
|
2460
|
+
primeInputNumber: oi,
|
|
2461
|
+
primeInputMask: li,
|
|
2462
|
+
primePassword: ai,
|
|
2463
|
+
primeCheckBox: fi,
|
|
2464
|
+
primeInputSwitch: ci,
|
|
2465
|
+
primeInputTextArea: ui,
|
|
2466
|
+
primeEditor: pi,
|
|
2467
|
+
primeDropdown: di,
|
|
2468
|
+
primeMultiSelect: mi,
|
|
2469
|
+
primeCalendar: hi,
|
|
2470
|
+
primeSlider: _i,
|
|
2471
|
+
primeChips: vi,
|
|
2472
|
+
primeKnob: bi,
|
|
2473
|
+
primeRating: gi,
|
|
2474
|
+
primeColorPicker: $i,
|
|
2475
|
+
primeToggleButton: wi,
|
|
2476
|
+
primeListbox: yi
|
|
2460
2477
|
};
|
|
2461
2478
|
export {
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2479
|
+
hi as primeCalendarDefinition,
|
|
2480
|
+
fi as primeCheckBoxDefinition,
|
|
2481
|
+
vi as primeChipsDefinition,
|
|
2482
|
+
$i as primeColorPickerDefinition,
|
|
2483
|
+
di as primeDropdownDefinition,
|
|
2484
|
+
pi as primeEditorDefinition,
|
|
2485
|
+
li as primeInputMaskDefinition,
|
|
2486
|
+
oi as primeInputNumberDefinition,
|
|
2487
|
+
ci as primeInputSwitchDefinition,
|
|
2488
|
+
ui as primeInputTextAreaDefinition,
|
|
2489
|
+
si as primeInputTextDefinition,
|
|
2473
2490
|
Si as primeInputs,
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2491
|
+
bi as primeKnobDefinition,
|
|
2492
|
+
yi as primeListboxDefinition,
|
|
2493
|
+
mi as primeMultiSelectDefinition,
|
|
2494
|
+
ai as primePasswordDefinition,
|
|
2495
|
+
gi as primeRatingDefinition,
|
|
2496
|
+
_i as primeSliderDefinition,
|
|
2497
|
+
wi as primeToggleButtonDefinition
|
|
2481
2498
|
};
|