@uniquedj95/vform 3.1.3 → 3.1.4
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/README.md +1 -1
- package/dist/components/vForm.vue.d.ts +1 -1
- package/dist/composables/useDataTransformation.d.ts +1 -1
- package/dist/composables/useDataTransformation.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +154 -154
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { IonGrid as
|
3
|
-
import { chevronDown as
|
4
|
-
import { maskito as
|
5
|
-
function
|
1
|
+
import { ref as _, computed as E, watch as S, defineComponent as A, createBlock as V, openBlock as v, unref as i, withCtx as g, createVNode as F, createCommentVNode as R, createElementBlock as B, Fragment as $, renderList as G, resolveDynamicComponent as se, normalizeStyle as Ve, createTextVNode as O, toDisplayString as U, toRef as ge, mergeModels as q, useModel as z, resolveDirective as be, withDirectives as _e, normalizeClass as xe, onMounted as ie, createElementVNode as re } from "vue";
|
2
|
+
import { IonGrid as ke, IonRow as te, IonCol as le, IonButton as W, IonLabel as N, IonText as Ce, IonInput as ce, IonInputPasswordToggle as Ie, IonChip as we, IonIcon as X, IonList as Ee, IonItem as Re, IonCheckbox as de, actionSheetController as Fe, alertController as Oe, IonTextarea as Ae, IonRadioGroup as Ue, IonRadio as Be } from "@ionic/vue";
|
3
|
+
import { chevronDown as qe, close as ze, add as Se, remove as Te } from "ionicons/icons";
|
4
|
+
import { maskito as $e } from "@maskito/vue";
|
5
|
+
function Le(t) {
|
6
6
|
return new Promise((o) => {
|
7
7
|
requestAnimationFrame(async () => {
|
8
8
|
const n = await t.getInputElement();
|
@@ -10,21 +10,21 @@ function De(t) {
|
|
10
10
|
});
|
11
11
|
});
|
12
12
|
}
|
13
|
-
const
|
13
|
+
const De = {
|
14
14
|
d: /\d/,
|
15
15
|
a: /[A-Za-z]/,
|
16
16
|
"*": /[A-Za-z0-9]/
|
17
17
|
// Default: alphanum, can customize if needed
|
18
|
-
},
|
18
|
+
}, Me = {
|
19
19
|
d: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
|
20
20
|
a: ["A", "B", "C", "x", "y", "z", "D", "f"],
|
21
21
|
"*": ["A", "3", "b", "8", "z", "4", "D", "0"]
|
22
22
|
};
|
23
|
-
function
|
24
|
-
const n =
|
23
|
+
function Pe(t, o) {
|
24
|
+
const n = Me[t];
|
25
25
|
return n[o % n.length];
|
26
26
|
}
|
27
|
-
function
|
27
|
+
function je(t) {
|
28
28
|
const o = [];
|
29
29
|
let n = "", e = 0, l = 0;
|
30
30
|
for (; e < t.length; ) {
|
@@ -36,7 +36,7 @@ function Ne(t) {
|
|
36
36
|
if (u !== -1) {
|
37
37
|
const p = t.slice(e + 2, u);
|
38
38
|
if (p.includes(",")) {
|
39
|
-
const [, c] = p.split(",").map((
|
39
|
+
const [, c] = p.split(",").map((f) => parseInt(f.trim()));
|
40
40
|
r = c || parseInt(p.split(",")[0]);
|
41
41
|
} else
|
42
42
|
r = parseInt(p);
|
@@ -49,7 +49,7 @@ function Ne(t) {
|
|
49
49
|
e = u - 1;
|
50
50
|
}
|
51
51
|
for (let u = 0; u < r; u++)
|
52
|
-
o.push(
|
52
|
+
o.push(De[a]), n += Pe(a, l++);
|
53
53
|
} else
|
54
54
|
o.push(a), n += a;
|
55
55
|
e++;
|
@@ -57,7 +57,7 @@ function Ne(t) {
|
|
57
57
|
return {
|
58
58
|
mask: o,
|
59
59
|
placeholder: n,
|
60
|
-
elementPredicate:
|
60
|
+
elementPredicate: Le
|
61
61
|
};
|
62
62
|
}
|
63
63
|
function ae(t) {
|
@@ -76,23 +76,23 @@ function oe(t) {
|
|
76
76
|
typeof e == "function" ? o[n] = e.bind(o) : o[n] = oe(e);
|
77
77
|
}), o;
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function ve(t, o) {
|
80
80
|
return o.findIndex((n) => n.value === t.value || n.label === t.label || n.value === t.label || n.label === t.value);
|
81
81
|
}
|
82
82
|
function D(t, o) {
|
83
|
-
const n =
|
83
|
+
const n = ve(t, o);
|
84
84
|
n >= 0 ? o[n].isChecked = !0 : o.push({ ...t, isChecked: !0 });
|
85
85
|
}
|
86
86
|
function ee(t, o) {
|
87
|
-
const n =
|
87
|
+
const n = ve(t, o);
|
88
88
|
n >= 0 && (o[n].isChecked = !1);
|
89
89
|
}
|
90
|
-
function
|
90
|
+
function Ne(t, o) {
|
91
91
|
return o ? t.filter(
|
92
92
|
(n) => JSON.stringify(n).toLowerCase().includes(o.toLowerCase())
|
93
93
|
) : t;
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function fe(t) {
|
96
96
|
const o = t.label || "", n = t.required ? " *" : "";
|
97
97
|
return o + n;
|
98
98
|
}
|
@@ -109,7 +109,7 @@ function Y(t, o) {
|
|
109
109
|
);
|
110
110
|
}
|
111
111
|
function me() {
|
112
|
-
const t =
|
112
|
+
const t = _([]);
|
113
113
|
async function o() {
|
114
114
|
console.debug("Validating form inputs");
|
115
115
|
const a = [];
|
@@ -154,42 +154,42 @@ function me() {
|
|
154
154
|
updateFormValues: l
|
155
155
|
};
|
156
156
|
}
|
157
|
-
function
|
157
|
+
function Ge(t) {
|
158
158
|
const o = E(
|
159
|
-
() => Object.entries(t.value).reduce((c, [
|
160
|
-
), n =
|
159
|
+
() => Object.entries(t.value).reduce((c, [f, m]) => (m.value !== void 0 && (typeof m.onChange == "function" ? c[f] = m.onChange(m.value) : c[f] = m.value), c), {})
|
160
|
+
), n = _({}), e = (c, f, m) => {
|
161
161
|
var s;
|
162
|
-
return typeof ((s = t.value[c].children[
|
163
|
-
}, l = (c,
|
164
|
-
n[c][s] || (n[c][s] = {}), Object.entries(
|
162
|
+
return typeof ((s = t.value[c].children[f]) == null ? void 0 : s.computedValue) == "function" ? t.value[c].children[f].computedValue(m, t.value) : m;
|
163
|
+
}, l = (c, f, m, s) => {
|
164
|
+
n.value[c][s] || (n.value[c][s] = {}), Object.entries(f.other ?? {}).forEach(([b, h]) => {
|
165
165
|
var d;
|
166
|
-
!Y(h, (d = m.other) == null ? void 0 : d[b]) && (n[c][s][b] = e(c, b, h));
|
166
|
+
!Y(h, (d = m.other) == null ? void 0 : d[b]) && (n.value[c][s][b] = e(c, b, h));
|
167
167
|
});
|
168
|
-
}, a = (c,
|
169
|
-
|
168
|
+
}, a = (c, f, m) => {
|
169
|
+
f.forEach((s, b) => {
|
170
170
|
const h = m[b] ?? { other: {} };
|
171
171
|
l(c, s, h, b);
|
172
172
|
});
|
173
|
-
}, r = (c, { other:
|
173
|
+
}, r = (c, { other: f }) => Object.entries(f ?? {}).reduce(
|
174
174
|
(m, [s, b]) => (m[s] = e(c, s, b), m),
|
175
175
|
{}
|
176
|
-
), u = (c,
|
177
|
-
n[c] || (n[c] = []);
|
178
|
-
const s =
|
179
|
-
Array.isArray(m[c]) ? a(c, s, m[c]) : n[c] = s.map((b) => r(c, b));
|
180
|
-
}, p = (c,
|
181
|
-
if (!
|
182
|
-
delete n[c];
|
176
|
+
), u = (c, f, m) => {
|
177
|
+
n.value[c] || (n.value[c] = []);
|
178
|
+
const s = f;
|
179
|
+
Array.isArray(m[c]) ? a(c, s, m[c]) : n.value[c] = s.map((b) => r(c, b));
|
180
|
+
}, p = (c, f, m) => {
|
181
|
+
if (!f) {
|
182
|
+
delete n.value[c];
|
183
183
|
return;
|
184
184
|
}
|
185
185
|
const s = t.value[c];
|
186
|
-
s.children !== void 0 ? u(c,
|
186
|
+
s.children !== void 0 ? u(c, f, m) : typeof s.computedValue == "function" && (n.value[c] = s.computedValue(f, t.value));
|
187
187
|
};
|
188
188
|
return S(
|
189
189
|
o,
|
190
|
-
(c,
|
190
|
+
(c, f = {}) => {
|
191
191
|
Object.keys(c).forEach((m) => {
|
192
|
-
Y(c[m],
|
192
|
+
Y(c[m], f[m]) || p(m, c[m], f);
|
193
193
|
});
|
194
194
|
},
|
195
195
|
{
|
@@ -201,7 +201,7 @@ function Ke(t) {
|
|
201
201
|
computedData: n
|
202
202
|
};
|
203
203
|
}
|
204
|
-
const
|
204
|
+
const Ke = /* @__PURE__ */ A({
|
205
205
|
__name: "vForm",
|
206
206
|
props: {
|
207
207
|
schema: {},
|
@@ -217,9 +217,9 @@ const We = /* @__PURE__ */ A({
|
|
217
217
|
},
|
218
218
|
emits: ["submit", "clear", "cancel"],
|
219
219
|
setup(t, { expose: o, emit: n }) {
|
220
|
-
const e = t, l = n, a =
|
220
|
+
const e = t, l = n, a = _(e.schema), { dynamicRefs: r, isFormValid: u, resetForm: p } = me(), { formData: c, computedData: f } = Ge(a);
|
221
221
|
async function m() {
|
222
|
-
await u() && l("submit", c.value,
|
222
|
+
await u() && l("submit", c.value, f.value);
|
223
223
|
}
|
224
224
|
function s() {
|
225
225
|
p(), l("clear");
|
@@ -231,7 +231,7 @@ const We = /* @__PURE__ */ A({
|
|
231
231
|
c,
|
232
232
|
async () => {
|
233
233
|
for (const [h, C] of Object.entries(a.value))
|
234
|
-
ne(C, c.value,
|
234
|
+
ne(C, c.value, f.value) || (C.value = e.schema[h].value);
|
235
235
|
},
|
236
236
|
{
|
237
237
|
deep: !0,
|
@@ -252,16 +252,16 @@ const We = /* @__PURE__ */ A({
|
|
252
252
|
isFormValid: u,
|
253
253
|
resolveData: () => ({
|
254
254
|
formData: c.value,
|
255
|
-
computedData:
|
255
|
+
computedData: f.value
|
256
256
|
})
|
257
|
-
}), (h, C) => (
|
257
|
+
}), (h, C) => (v(), V(i(ke), null, {
|
258
258
|
default: g(() => [
|
259
259
|
F(i(te), null, {
|
260
260
|
default: g(() => [
|
261
|
-
(
|
261
|
+
(v(!0), B($, null, G(Object.keys(a.value), (d) => {
|
262
262
|
var I, w, L, M, P;
|
263
|
-
return
|
264
|
-
i(ne)(a.value[d], i(c), i(
|
263
|
+
return v(), B($, null, [
|
264
|
+
i(ne)(a.value[d], i(c), i(f)) ? (v(), V(i(le), {
|
265
265
|
key: d,
|
266
266
|
size: ((I = a.value[d].grid) == null ? void 0 : I.xs) ?? "12",
|
267
267
|
"size-sm": (w = a.value[d].grid) == null ? void 0 : w.sm,
|
@@ -271,7 +271,7 @@ const We = /* @__PURE__ */ A({
|
|
271
271
|
class: "ion-margin-vertical"
|
272
272
|
}, {
|
273
273
|
default: g(() => [
|
274
|
-
(
|
274
|
+
(v(), V(se(a.value[d].type), {
|
275
275
|
modelValue: a.value[d],
|
276
276
|
"onUpdate:modelValue": (K) => a.value[d] = K,
|
277
277
|
schema: a.value,
|
@@ -288,14 +288,14 @@ const We = /* @__PURE__ */ A({
|
|
288
288
|
]),
|
289
289
|
_: 1
|
290
290
|
}),
|
291
|
-
h.hideButtons ? R("", !0) : (
|
291
|
+
h.hideButtons ? R("", !0) : (v(), V(i(te), { key: 0 }, {
|
292
292
|
default: g(() => [
|
293
293
|
F(i(le), {
|
294
294
|
size: "12",
|
295
|
-
style:
|
295
|
+
style: Ve([{ display: "flex" }, { justifyContent: h.buttonPlacement }])
|
296
296
|
}, {
|
297
297
|
default: g(() => [
|
298
|
-
h.showCancelButton ? (
|
298
|
+
h.showCancelButton ? (v(), V(i(W), {
|
299
299
|
key: 0,
|
300
300
|
onClick: b
|
301
301
|
}, {
|
@@ -304,7 +304,7 @@ const We = /* @__PURE__ */ A({
|
|
304
304
|
]),
|
305
305
|
_: 1
|
306
306
|
})) : R("", !0),
|
307
|
-
h.showClearButton ? (
|
307
|
+
h.showClearButton ? (v(), V(i(W), {
|
308
308
|
key: 1,
|
309
309
|
onClick: s
|
310
310
|
}, {
|
@@ -313,7 +313,7 @@ const We = /* @__PURE__ */ A({
|
|
313
313
|
]),
|
314
314
|
_: 1
|
315
315
|
})) : R("", !0),
|
316
|
-
(
|
316
|
+
(v(!0), B($, null, G(h.customButtons, (d) => (v(), V(i(W), {
|
317
317
|
key: d.label,
|
318
318
|
onClick: d.action,
|
319
319
|
color: d.color ?? "primary"
|
@@ -340,7 +340,7 @@ const We = /* @__PURE__ */ A({
|
|
340
340
|
}));
|
341
341
|
}
|
342
342
|
});
|
343
|
-
function
|
343
|
+
function We(t) {
|
344
344
|
return {
|
345
345
|
applyValidationState: async (e) => {
|
346
346
|
var l, a, r, u, p;
|
@@ -353,7 +353,7 @@ function Ze(t) {
|
|
353
353
|
};
|
354
354
|
}
|
355
355
|
function H(t, o, n, e, l) {
|
356
|
-
const { applyValidationState: a, resetValidationState: r } =
|
356
|
+
const { applyValidationState: a, resetValidationState: r } = We(t);
|
357
357
|
async function u() {
|
358
358
|
if (o.value.required && !n.value)
|
359
359
|
return o.value.error = "This field is required", !1;
|
@@ -378,7 +378,7 @@ function H(t, o, n, e, l) {
|
|
378
378
|
function c() {
|
379
379
|
r(), o.value.error = "";
|
380
380
|
}
|
381
|
-
function
|
381
|
+
function f(s = "") {
|
382
382
|
n.value = s, o.value.error = "", o.value.value = s;
|
383
383
|
}
|
384
384
|
function m() {
|
@@ -388,13 +388,13 @@ function H(t, o, n, e, l) {
|
|
388
388
|
isValid: u,
|
389
389
|
onValueUpdate: p,
|
390
390
|
onFocus: c,
|
391
|
-
onReset:
|
391
|
+
onReset: f,
|
392
392
|
getErrors: m,
|
393
393
|
applyValidationState: a,
|
394
394
|
resetValidationState: r
|
395
395
|
};
|
396
396
|
}
|
397
|
-
function
|
397
|
+
function Ze(t) {
|
398
398
|
const o = E(() => !!t.value.label), n = E(() => !!t.value.required), e = E(() => t.value.label || "");
|
399
399
|
return {
|
400
400
|
showLabel: o,
|
@@ -408,15 +408,15 @@ const ue = /* @__PURE__ */ A({
|
|
408
408
|
model: {}
|
409
409
|
},
|
410
410
|
setup(t) {
|
411
|
-
const o = t, { showLabel: n, showRequired: e, labelText: l } =
|
412
|
-
return (a, r) => i(n) ? (
|
411
|
+
const o = t, { showLabel: n, showRequired: e, labelText: l } = Ze(ge(o, "model"));
|
412
|
+
return (a, r) => i(n) ? (v(), V(i(N), {
|
413
413
|
key: 0,
|
414
414
|
slot: "label",
|
415
415
|
class: "input-label"
|
416
416
|
}, {
|
417
417
|
default: g(() => [
|
418
418
|
O(U(i(l)) + " ", 1),
|
419
|
-
i(e) ? (
|
419
|
+
i(e) ? (v(), V(i(Ce), {
|
420
420
|
key: 0,
|
421
421
|
color: "danger"
|
422
422
|
}, {
|
@@ -441,26 +441,26 @@ const ue = /* @__PURE__ */ A({
|
|
441
441
|
}),
|
442
442
|
emits: ["update:modelValue"],
|
443
443
|
setup(t, { expose: o }) {
|
444
|
-
const n = t, e = z(t, "modelValue"), l =
|
444
|
+
const n = t, e = z(t, "modelValue"), l = _(null), a = _(e.value.value), r = E(() => n.schema), { isValid: u, onValueUpdate: p, onFocus: c, onReset: f, getErrors: m } = H(
|
445
445
|
l,
|
446
446
|
e,
|
447
447
|
a,
|
448
448
|
r
|
449
449
|
), s = E(() => {
|
450
|
-
if (e.value.pattern) return
|
450
|
+
if (e.value.pattern) return je(e.value.pattern);
|
451
451
|
});
|
452
452
|
return S(
|
453
453
|
() => e.value.value,
|
454
454
|
(b) => a.value = b
|
455
455
|
), o({
|
456
456
|
onValueUpdate: p,
|
457
|
-
onReset:
|
457
|
+
onReset: f,
|
458
458
|
getErrors: m,
|
459
459
|
isValid: u
|
460
460
|
}), (b, h) => {
|
461
461
|
var d;
|
462
|
-
const C =
|
463
|
-
return
|
462
|
+
const C = be("maskito");
|
463
|
+
return _e((v(), V(i(ce), {
|
464
464
|
ref_key: "inputRef",
|
465
465
|
ref: l,
|
466
466
|
modelValue: a.value,
|
@@ -486,7 +486,7 @@ const ue = /* @__PURE__ */ A({
|
|
486
486
|
}, {
|
487
487
|
default: g(() => [
|
488
488
|
F(ue, { model: e.value }, null, 8, ["model"]),
|
489
|
-
e.value.prefix ? (
|
489
|
+
e.value.prefix ? (v(), V(i(N), {
|
490
490
|
key: 0,
|
491
491
|
slot: "start"
|
492
492
|
}, {
|
@@ -495,7 +495,7 @@ const ue = /* @__PURE__ */ A({
|
|
495
495
|
]),
|
496
496
|
_: 1
|
497
497
|
})) : R("", !0),
|
498
|
-
e.value.suffix ? (
|
498
|
+
e.value.suffix ? (v(), V(i(N), {
|
499
499
|
key: 1,
|
500
500
|
slot: "end"
|
501
501
|
}, {
|
@@ -504,7 +504,7 @@ const ue = /* @__PURE__ */ A({
|
|
504
504
|
]),
|
505
505
|
_: 1
|
506
506
|
})) : R("", !0),
|
507
|
-
b.type === "password" ? (
|
507
|
+
b.type === "password" ? (v(), V(i(Ie), {
|
508
508
|
key: 2,
|
509
509
|
slot: "end"
|
510
510
|
})) : R("", !0)
|
@@ -515,7 +515,7 @@ const ue = /* @__PURE__ */ A({
|
|
515
515
|
]);
|
516
516
|
};
|
517
517
|
}
|
518
|
-
}),
|
518
|
+
}), He = /* @__PURE__ */ A({
|
519
519
|
__name: "TextInput",
|
520
520
|
props: /* @__PURE__ */ q({
|
521
521
|
schema: {}
|
@@ -525,7 +525,7 @@ const ue = /* @__PURE__ */ A({
|
|
525
525
|
}),
|
526
526
|
emits: ["update:modelValue"],
|
527
527
|
setup(t, { expose: o }) {
|
528
|
-
const n = z(t, "modelValue"), e =
|
528
|
+
const n = z(t, "modelValue"), e = _(null);
|
529
529
|
return o({
|
530
530
|
onReset: () => {
|
531
531
|
var l;
|
@@ -539,7 +539,7 @@ const ue = /* @__PURE__ */ A({
|
|
539
539
|
var l, a;
|
540
540
|
return ((a = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : a.call(l)) ?? [];
|
541
541
|
}
|
542
|
-
}), (l, a) => (
|
542
|
+
}), (l, a) => (v(), V(J, {
|
543
543
|
modelValue: n.value,
|
544
544
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
545
545
|
type: "text",
|
@@ -548,7 +548,7 @@ const ue = /* @__PURE__ */ A({
|
|
548
548
|
ref: e
|
549
549
|
}, null, 8, ["modelValue", "schema"]));
|
550
550
|
}
|
551
|
-
}),
|
551
|
+
}), Je = /* @__PURE__ */ A({
|
552
552
|
__name: "DateInput",
|
553
553
|
props: /* @__PURE__ */ q({
|
554
554
|
schema: {}
|
@@ -558,7 +558,7 @@ const ue = /* @__PURE__ */ A({
|
|
558
558
|
}),
|
559
559
|
emits: ["update:modelValue"],
|
560
560
|
setup(t, { expose: o }) {
|
561
|
-
const n = z(t, "modelValue"), e =
|
561
|
+
const n = z(t, "modelValue"), e = _(null);
|
562
562
|
return o({
|
563
563
|
onValueUpdate: () => {
|
564
564
|
var l;
|
@@ -572,7 +572,7 @@ const ue = /* @__PURE__ */ A({
|
|
572
572
|
var l, a;
|
573
573
|
return ((a = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : a.call(l)) ?? [];
|
574
574
|
}
|
575
|
-
}), (l, a) => (
|
575
|
+
}), (l, a) => (v(), V(J, {
|
576
576
|
modelValue: n.value,
|
577
577
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
578
578
|
type: n.value.enableTime ? "datetime-local" : "date",
|
@@ -581,7 +581,7 @@ const ue = /* @__PURE__ */ A({
|
|
581
581
|
ref: e
|
582
582
|
}, null, 8, ["modelValue", "type", "schema"]));
|
583
583
|
}
|
584
|
-
}),
|
584
|
+
}), Qe = /* @__PURE__ */ A({
|
585
585
|
__name: "NumberInput",
|
586
586
|
props: /* @__PURE__ */ q({
|
587
587
|
schema: {}
|
@@ -591,7 +591,7 @@ const ue = /* @__PURE__ */ A({
|
|
591
591
|
}),
|
592
592
|
emits: ["update:modelValue"],
|
593
593
|
setup(t, { expose: o }) {
|
594
|
-
const n = z(t, "modelValue"), e =
|
594
|
+
const n = z(t, "modelValue"), e = _(null);
|
595
595
|
return o({
|
596
596
|
onReset: () => {
|
597
597
|
var l;
|
@@ -605,7 +605,7 @@ const ue = /* @__PURE__ */ A({
|
|
605
605
|
var l, a;
|
606
606
|
return ((a = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : a.call(l)) ?? [];
|
607
607
|
}
|
608
|
-
}), (l, a) => (
|
608
|
+
}), (l, a) => (v(), V(J, {
|
609
609
|
modelValue: n.value,
|
610
610
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
611
611
|
type: "number",
|
@@ -614,7 +614,7 @@ const ue = /* @__PURE__ */ A({
|
|
614
614
|
ref: e
|
615
615
|
}, null, 8, ["modelValue", "schema"]));
|
616
616
|
}
|
617
|
-
}),
|
617
|
+
}), Xe = /* @__PURE__ */ A({
|
618
618
|
__name: "EmailInput",
|
619
619
|
props: /* @__PURE__ */ q({
|
620
620
|
schema: {}
|
@@ -624,7 +624,7 @@ const ue = /* @__PURE__ */ A({
|
|
624
624
|
}),
|
625
625
|
emits: ["update:modelValue"],
|
626
626
|
setup(t, { expose: o }) {
|
627
|
-
const n = z(t, "modelValue"), e =
|
627
|
+
const n = z(t, "modelValue"), e = _(null);
|
628
628
|
return o({
|
629
629
|
onReset: () => {
|
630
630
|
var l;
|
@@ -638,7 +638,7 @@ const ue = /* @__PURE__ */ A({
|
|
638
638
|
var l, a;
|
639
639
|
return ((a = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : a.call(l)) ?? [];
|
640
640
|
}
|
641
|
-
}), (l, a) => (
|
641
|
+
}), (l, a) => (v(), V(J, {
|
642
642
|
modelValue: n.value,
|
643
643
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
644
644
|
type: "email",
|
@@ -647,7 +647,7 @@ const ue = /* @__PURE__ */ A({
|
|
647
647
|
ref: e
|
648
648
|
}, null, 8, ["modelValue", "schema"]));
|
649
649
|
}
|
650
|
-
}),
|
650
|
+
}), Ye = /* @__PURE__ */ A({
|
651
651
|
__name: "PasswordInput",
|
652
652
|
props: /* @__PURE__ */ q({
|
653
653
|
schema: {}
|
@@ -657,7 +657,7 @@ const ue = /* @__PURE__ */ A({
|
|
657
657
|
}),
|
658
658
|
emits: ["update:modelValue"],
|
659
659
|
setup(t, { expose: o }) {
|
660
|
-
const n = z(t, "modelValue"), e =
|
660
|
+
const n = z(t, "modelValue"), e = _(null);
|
661
661
|
return o({
|
662
662
|
onReset: () => {
|
663
663
|
var l;
|
@@ -671,7 +671,7 @@ const ue = /* @__PURE__ */ A({
|
|
671
671
|
var l, a;
|
672
672
|
return ((a = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : a.call(l)) ?? [];
|
673
673
|
}
|
674
|
-
}), (l, a) => (
|
674
|
+
}), (l, a) => (v(), V(J, {
|
675
675
|
modelValue: n.value,
|
676
676
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
|
677
677
|
type: "password",
|
@@ -680,7 +680,7 @@ const ue = /* @__PURE__ */ A({
|
|
680
680
|
ref: e
|
681
681
|
}, null, 8, ["modelValue", "schema"]));
|
682
682
|
}
|
683
|
-
}),
|
683
|
+
}), et = /* @__PURE__ */ A({
|
684
684
|
__name: "SelectInput",
|
685
685
|
props: /* @__PURE__ */ q({
|
686
686
|
schema: {},
|
@@ -691,7 +691,7 @@ const ue = /* @__PURE__ */ A({
|
|
691
691
|
}),
|
692
692
|
emits: ["update:modelValue"],
|
693
693
|
setup(t, { expose: o }) {
|
694
|
-
const n = t, e = z(t, "modelValue"), l =
|
694
|
+
const n = t, e = z(t, "modelValue"), l = _(null), a = _(null), r = _(!1), u = _([]), p = _(""), c = _(1), f = E(() => e.value.interface ?? "popover"), m = E(() => e.value.optionsPlacement === "top" ? "top" : "bottom"), s = E(() => u.value.filter((y) => !!y.isChecked)), b = E(() => !p.value && ae(s.value) && !r.value ? e.value.placeholder ?? "Select an option" : "");
|
695
695
|
S([p, () => e.value.options], Z, {
|
696
696
|
immediate: !0,
|
697
697
|
deep: !0
|
@@ -704,7 +704,7 @@ const ue = /* @__PURE__ */ A({
|
|
704
704
|
e.value.multiple ? D(y, u.value) : (h(), D(y, u.value), j()), p.value = "";
|
705
705
|
}
|
706
706
|
function d() {
|
707
|
-
switch (
|
707
|
+
switch (f.value) {
|
708
708
|
case "action-sheet":
|
709
709
|
I();
|
710
710
|
break;
|
@@ -722,7 +722,7 @@ const ue = /* @__PURE__ */ A({
|
|
722
722
|
r.value = !0;
|
723
723
|
return;
|
724
724
|
}
|
725
|
-
await (await
|
725
|
+
await (await Fe.create({
|
726
726
|
header: e.value.label || "Select an option",
|
727
727
|
buttons: [
|
728
728
|
...u.value.map((k) => ({
|
@@ -739,13 +739,13 @@ const ue = /* @__PURE__ */ A({
|
|
739
739
|
}
|
740
740
|
async function w() {
|
741
741
|
await Z();
|
742
|
-
const y = u.value.map((
|
743
|
-
label:
|
742
|
+
const y = u.value.map((x) => ({
|
743
|
+
label: x.label,
|
744
744
|
type: e.value.multiple ? "checkbox" : "radio",
|
745
|
-
value:
|
746
|
-
checked:
|
745
|
+
value: x,
|
746
|
+
checked: x.isChecked
|
747
747
|
}));
|
748
|
-
await (await
|
748
|
+
await (await Oe.create({
|
749
749
|
header: e.value.label || "Select an option",
|
750
750
|
inputs: y,
|
751
751
|
buttons: [
|
@@ -755,15 +755,15 @@ const ue = /* @__PURE__ */ A({
|
|
755
755
|
},
|
756
756
|
{
|
757
757
|
text: "OK",
|
758
|
-
handler: (
|
758
|
+
handler: (x) => {
|
759
759
|
if (e.value.multiple)
|
760
|
-
u.value.forEach((T) => ee(T, u.value)),
|
760
|
+
u.value.forEach((T) => ee(T, u.value)), x.forEach((T) => {
|
761
761
|
const Q = u.value.find((ye) => ye.value === T.value);
|
762
762
|
Q && D(Q, u.value);
|
763
763
|
});
|
764
764
|
else {
|
765
765
|
h();
|
766
|
-
const T = u.value.find((Q) => Q.value ===
|
766
|
+
const T = u.value.find((Q) => Q.value === x.value);
|
767
767
|
T && D(T, u.value);
|
768
768
|
}
|
769
769
|
j();
|
@@ -791,11 +791,11 @@ const ue = /* @__PURE__ */ A({
|
|
791
791
|
);
|
792
792
|
function K(y) {
|
793
793
|
var k;
|
794
|
-
y.target === ((k = l.value) == null ? void 0 : k.$el) && (M(),
|
794
|
+
y.target === ((k = l.value) == null ? void 0 : k.$el) && (M(), f.value === "popover" && (r.value = !0));
|
795
795
|
}
|
796
796
|
async function j(y) {
|
797
|
-
var
|
798
|
-
if ((
|
797
|
+
var x;
|
798
|
+
if ((x = y == null ? void 0 : y.relatedTarget) != null && x.closest(".suggestions-list")) return;
|
799
799
|
r.value = !1;
|
800
800
|
const k = await L();
|
801
801
|
k === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? s.value : s.value[0]) : e.value.error = typeof k == "string" ? k : "Validation failed", await P(k === !0);
|
@@ -804,9 +804,9 @@ const ue = /* @__PURE__ */ A({
|
|
804
804
|
const y = [];
|
805
805
|
if (typeof e.value.options == "function") {
|
806
806
|
const k = await e.value.options(p.value);
|
807
|
-
y.push(...k.filter((
|
807
|
+
y.push(...k.filter((x) => !!x.label));
|
808
808
|
} else
|
809
|
-
y.push(...
|
809
|
+
y.push(...Ne(e.value.options ?? [], p.value));
|
810
810
|
s.value.forEach((k) => D(k, y)), u.value = y;
|
811
811
|
}
|
812
812
|
function he() {
|
@@ -820,7 +820,7 @@ const ue = /* @__PURE__ */ A({
|
|
820
820
|
onValueUpdate: j,
|
821
821
|
onReset: h,
|
822
822
|
getErrors: () => e.value.error ? [e.value.error] : []
|
823
|
-
}), (y, k) => (
|
823
|
+
}), (y, k) => (v(), B("div", {
|
824
824
|
class: "autocomplete-container",
|
825
825
|
onFocusout: j,
|
826
826
|
ref_key: "containerRef",
|
@@ -830,7 +830,7 @@ const ue = /* @__PURE__ */ A({
|
|
830
830
|
ref_key: "inputRef",
|
831
831
|
ref: l,
|
832
832
|
modelValue: p.value,
|
833
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
833
|
+
"onUpdate:modelValue": k[0] || (k[0] = (x) => p.value = x),
|
834
834
|
fill: e.value.fill ?? "solid",
|
835
835
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
836
836
|
type: y.type ?? "text",
|
@@ -846,17 +846,17 @@ const ue = /* @__PURE__ */ A({
|
|
846
846
|
}, {
|
847
847
|
default: g(() => [
|
848
848
|
F(ue, { model: e.value }, null, 8, ["model"]),
|
849
|
-
e.value.multiple ? (
|
849
|
+
e.value.multiple ? (v(), V(i(N), {
|
850
850
|
key: 0,
|
851
851
|
style: { width: "fit-content" },
|
852
852
|
slot: "start"
|
853
853
|
}, {
|
854
854
|
default: g(() => [
|
855
|
-
(
|
855
|
+
(v(!0), B($, null, G(s.value, (x, T) => (v(), V(i(we), { key: T }, {
|
856
856
|
default: g(() => [
|
857
857
|
F(i(N), null, {
|
858
858
|
default: g(() => [
|
859
|
-
O(U(
|
859
|
+
O(U(x.label), 1)
|
860
860
|
]),
|
861
861
|
_: 2
|
862
862
|
}, 1024)
|
@@ -865,52 +865,52 @@ const ue = /* @__PURE__ */ A({
|
|
865
865
|
}, 1024))), 128))
|
866
866
|
]),
|
867
867
|
_: 1
|
868
|
-
})) : (
|
868
|
+
})) : (v(), V(i(N), {
|
869
869
|
key: 1,
|
870
870
|
slot: "start",
|
871
871
|
class: "ion-no-wrap"
|
872
872
|
}, {
|
873
873
|
default: g(() => {
|
874
|
-
var
|
874
|
+
var x;
|
875
875
|
return [
|
876
|
-
O(U(((
|
876
|
+
O(U(((x = s.value[0]) == null ? void 0 : x.label) ?? ""), 1)
|
877
877
|
];
|
878
878
|
}),
|
879
879
|
_: 1
|
880
880
|
})),
|
881
881
|
F(i(X), {
|
882
882
|
slot: "end",
|
883
|
-
icon: i(
|
883
|
+
icon: i(qe)
|
884
884
|
}, null, 8, ["icon"]),
|
885
|
-
s.value.length > 0 || p.value ? (
|
885
|
+
s.value.length > 0 || p.value ? (v(), V(i(X), {
|
886
886
|
key: 2,
|
887
887
|
slot: "end",
|
888
|
-
icon: i(
|
888
|
+
icon: i(ze),
|
889
889
|
onClick: h,
|
890
890
|
style: { "z-index": "999999" }
|
891
891
|
}, null, 8, ["icon"])) : R("", !0)
|
892
892
|
]),
|
893
893
|
_: 1
|
894
894
|
}, 8, ["modelValue", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter"]),
|
895
|
-
r.value && u.value.length > 0 &&
|
895
|
+
r.value && u.value.length > 0 && f.value === "popover" ? (v(), V(i(Ee), {
|
896
896
|
key: 0,
|
897
|
-
class:
|
897
|
+
class: xe(["suggestions-list", m.value])
|
898
898
|
}, {
|
899
899
|
default: g(() => [
|
900
|
-
(
|
900
|
+
(v(!0), B($, null, G(u.value, (x) => (v(), V(i(Re), {
|
901
901
|
button: "",
|
902
|
-
key:
|
903
|
-
onClick: (T) => C(
|
902
|
+
key: x.label,
|
903
|
+
onClick: (T) => C(x)
|
904
904
|
}, {
|
905
905
|
default: g(() => [
|
906
|
-
e.value.multiple ? (
|
906
|
+
e.value.multiple ? (v(), V(i(de), {
|
907
907
|
key: 0,
|
908
908
|
slot: "start",
|
909
|
-
checked:
|
909
|
+
checked: x.isChecked
|
910
910
|
}, null, 8, ["checked"])) : R("", !0),
|
911
911
|
F(i(N), null, {
|
912
912
|
default: g(() => [
|
913
|
-
O(U(
|
913
|
+
O(U(x.label), 1)
|
914
914
|
]),
|
915
915
|
_: 2
|
916
916
|
}, 1024)
|
@@ -927,7 +927,7 @@ const ue = /* @__PURE__ */ A({
|
|
927
927
|
for (const [e, l] of o)
|
928
928
|
n[e] = l;
|
929
929
|
return n;
|
930
|
-
},
|
930
|
+
}, tt = /* @__PURE__ */ pe(et, [["__scopeId", "data-v-e2c4eed6"]]), lt = /* @__PURE__ */ A({
|
931
931
|
__name: "TextAreaInput",
|
932
932
|
props: /* @__PURE__ */ q({
|
933
933
|
schema: {}
|
@@ -937,7 +937,7 @@ const ue = /* @__PURE__ */ A({
|
|
937
937
|
}),
|
938
938
|
emits: ["update:modelValue"],
|
939
939
|
setup(t, { expose: o }) {
|
940
|
-
const n = t, e = z(t, "modelValue"), l =
|
940
|
+
const n = t, e = z(t, "modelValue"), l = _(null), a = _(e.value.value), r = E(() => n.schema), { onValueUpdate: u, onFocus: p, onReset: c, getErrors: f } = H(
|
941
941
|
l,
|
942
942
|
e,
|
943
943
|
a,
|
@@ -949,8 +949,8 @@ const ue = /* @__PURE__ */ A({
|
|
949
949
|
), o({
|
950
950
|
onReset: c,
|
951
951
|
onValueUpdate: u,
|
952
|
-
getErrors:
|
953
|
-
}), (m, s) => (
|
952
|
+
getErrors: f
|
953
|
+
}), (m, s) => (v(), V(i(Ae), {
|
954
954
|
ref_key: "inputRef",
|
955
955
|
ref: l,
|
956
956
|
modelValue: a.value,
|
@@ -982,10 +982,10 @@ const ue = /* @__PURE__ */ A({
|
|
982
982
|
_: 1
|
983
983
|
}, 8, ["modelValue", "fill", "label-placement", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "rows", "cols", "auto-grow", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"]));
|
984
984
|
}
|
985
|
-
}),
|
985
|
+
}), at = {
|
986
986
|
class: "ion-margin-end",
|
987
987
|
style: { "flex-grow": "1" }
|
988
|
-
},
|
988
|
+
}, nt = { style: { display: "flex", "justify-content": "flex-end" } }, ot = /* @__PURE__ */ A({
|
989
989
|
__name: "RepeatInput",
|
990
990
|
props: /* @__PURE__ */ q({
|
991
991
|
schema: {},
|
@@ -997,7 +997,7 @@ const ue = /* @__PURE__ */ A({
|
|
997
997
|
}),
|
998
998
|
emits: ["update:modelValue"],
|
999
999
|
setup(t, { expose: o }) {
|
1000
|
-
const n = z(t, "modelValue"), e =
|
1000
|
+
const n = z(t, "modelValue"), e = _([]), { dynamicRefs: l, resetForm: a, getFormErrors: r, updateFormValues: u } = me(), p = E(() => e.value.map((h, C) => ({
|
1001
1001
|
label: `Set ${C + 1}`,
|
1002
1002
|
value: C,
|
1003
1003
|
other: Object.entries(h).reduce(
|
@@ -1015,7 +1015,7 @@ const ue = /* @__PURE__ */ A({
|
|
1015
1015
|
function c() {
|
1016
1016
|
n.value.children && e.value.push(oe(n.value.children));
|
1017
1017
|
}
|
1018
|
-
function
|
1018
|
+
function f(h) {
|
1019
1019
|
e.value.splice(h, 1);
|
1020
1020
|
}
|
1021
1021
|
function m() {
|
@@ -1031,17 +1031,17 @@ const ue = /* @__PURE__ */ A({
|
|
1031
1031
|
onValueUpdate: b,
|
1032
1032
|
onReset: m,
|
1033
1033
|
getErrors: s
|
1034
|
-
}), (h, C) => (
|
1034
|
+
}), (h, C) => (v(!0), B($, null, G(e.value, (d, I) => (v(), B("div", {
|
1035
1035
|
class: "repeat-input-wrapper",
|
1036
1036
|
key: I
|
1037
1037
|
}, [
|
1038
|
-
re("div",
|
1038
|
+
re("div", at, [
|
1039
1039
|
F(i(te), null, {
|
1040
1040
|
default: g(() => [
|
1041
|
-
(
|
1041
|
+
(v(!0), B($, null, G(Object.keys(d), (w) => {
|
1042
1042
|
var L, M, P, K, j;
|
1043
|
-
return
|
1044
|
-
i(ne)(d[w], h.data, h.computedData) ? (
|
1043
|
+
return v(), B($, null, [
|
1044
|
+
i(ne)(d[w], h.data, h.computedData) ? (v(), V(i(le), {
|
1045
1045
|
key: `${I}-${w}`,
|
1046
1046
|
size: ((L = d[w].grid) == null ? void 0 : L.xs) ?? "12",
|
1047
1047
|
"size-sm": (M = d[w].grid) == null ? void 0 : M.sm,
|
@@ -1051,7 +1051,7 @@ const ue = /* @__PURE__ */ A({
|
|
1051
1051
|
class: "ion-margin-bottom"
|
1052
1052
|
}, {
|
1053
1053
|
default: g(() => [
|
1054
|
-
(
|
1054
|
+
(v(), V(se(d[w].type), {
|
1055
1055
|
modelValue: d[w],
|
1056
1056
|
"onUpdate:modelValue": (Z) => d[w] = Z,
|
1057
1057
|
schema: d,
|
@@ -1069,8 +1069,8 @@ const ue = /* @__PURE__ */ A({
|
|
1069
1069
|
_: 2
|
1070
1070
|
}, 1024)
|
1071
1071
|
]),
|
1072
|
-
re("div",
|
1073
|
-
I === e.value.length - 1 ? (
|
1072
|
+
re("div", nt, [
|
1073
|
+
I === e.value.length - 1 ? (v(), V(i(W), {
|
1074
1074
|
key: 0,
|
1075
1075
|
onClick: c,
|
1076
1076
|
color: "primary"
|
@@ -1078,20 +1078,20 @@ const ue = /* @__PURE__ */ A({
|
|
1078
1078
|
default: g(() => [
|
1079
1079
|
F(i(X), {
|
1080
1080
|
slot: "icon-only",
|
1081
|
-
icon: i(
|
1081
|
+
icon: i(Se)
|
1082
1082
|
}, null, 8, ["icon"])
|
1083
1083
|
]),
|
1084
1084
|
_: 1
|
1085
1085
|
})) : R("", !0),
|
1086
|
-
e.value.length > 1 ? (
|
1086
|
+
e.value.length > 1 ? (v(), V(i(W), {
|
1087
1087
|
key: 1,
|
1088
|
-
onClick: (w) =>
|
1088
|
+
onClick: (w) => f(I),
|
1089
1089
|
color: "warning"
|
1090
1090
|
}, {
|
1091
1091
|
default: g(() => [
|
1092
1092
|
F(i(X), {
|
1093
1093
|
slot: "icon-only",
|
1094
|
-
icon: i(
|
1094
|
+
icon: i(Te)
|
1095
1095
|
}, null, 8, ["icon"])
|
1096
1096
|
]),
|
1097
1097
|
_: 2
|
@@ -1099,7 +1099,7 @@ const ue = /* @__PURE__ */ A({
|
|
1099
1099
|
])
|
1100
1100
|
]))), 128));
|
1101
1101
|
}
|
1102
|
-
}),
|
1102
|
+
}), ut = /* @__PURE__ */ pe(ot, [["__scopeId", "data-v-402695fe"]]), rt = /* @__PURE__ */ A({
|
1103
1103
|
__name: "CheckboxInput",
|
1104
1104
|
props: /* @__PURE__ */ q({
|
1105
1105
|
schema: {}
|
@@ -1109,7 +1109,7 @@ const ue = /* @__PURE__ */ A({
|
|
1109
1109
|
}),
|
1110
1110
|
emits: ["update:modelValue"],
|
1111
1111
|
setup(t, { expose: o }) {
|
1112
|
-
const n = t, e = z(t, "modelValue"), l =
|
1112
|
+
const n = t, e = z(t, "modelValue"), l = _(null), a = _(e.value.value), r = E(() => n.schema), u = E(() => fe(e.value)), { onValueUpdate: p, onFocus: c, getErrors: f } = H(l, e, a, r);
|
1113
1113
|
function m() {
|
1114
1114
|
a.value = !1, e.value.error = "", e.value.value = !1;
|
1115
1115
|
}
|
@@ -1119,8 +1119,8 @@ const ue = /* @__PURE__ */ A({
|
|
1119
1119
|
), o({
|
1120
1120
|
onValueUpdate: p,
|
1121
1121
|
onReset: m,
|
1122
|
-
getErrors:
|
1123
|
-
}), (s, b) => (
|
1122
|
+
getErrors: f
|
1123
|
+
}), (s, b) => (v(), V(i(de), {
|
1124
1124
|
modelValue: a.value,
|
1125
1125
|
"onUpdate:modelValue": b[0] || (b[0] = (h) => a.value = h),
|
1126
1126
|
ref_key: "inputRef",
|
@@ -1138,7 +1138,7 @@ const ue = /* @__PURE__ */ A({
|
|
1138
1138
|
_: 1
|
1139
1139
|
}, 8, ["modelValue", "required", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"]));
|
1140
1140
|
}
|
1141
|
-
}),
|
1141
|
+
}), st = /* @__PURE__ */ A({
|
1142
1142
|
__name: "RadioInput",
|
1143
1143
|
props: /* @__PURE__ */ q({
|
1144
1144
|
schema: {}
|
@@ -1148,7 +1148,7 @@ const ue = /* @__PURE__ */ A({
|
|
1148
1148
|
}),
|
1149
1149
|
emits: ["update:modelValue"],
|
1150
1150
|
setup(t, { expose: o }) {
|
1151
|
-
const n = t, e = z(t, "modelValue"), l =
|
1151
|
+
const n = t, e = z(t, "modelValue"), l = _(null), a = _(e.value.value), r = E(() => n.schema), u = _([]), p = E(() => fe(e.value)), { onValueUpdate: c, onFocus: f, getErrors: m } = H(l, e, a, r);
|
1152
1152
|
function s() {
|
1153
1153
|
e.value.error = "", a.value = void 0, e.value.value = void 0;
|
1154
1154
|
}
|
@@ -1165,7 +1165,7 @@ const ue = /* @__PURE__ */ A({
|
|
1165
1165
|
onValueUpdate: c,
|
1166
1166
|
onReset: s,
|
1167
1167
|
getErrors: m
|
1168
|
-
}), ie(h), (C, d) => (
|
1168
|
+
}), ie(h), (C, d) => (v(), V(i(Ue), {
|
1169
1169
|
modelValue: a.value,
|
1170
1170
|
"onUpdate:modelValue": d[0] || (d[0] = (I) => a.value = I),
|
1171
1171
|
ref_key: "inputRef",
|
@@ -1176,12 +1176,12 @@ const ue = /* @__PURE__ */ A({
|
|
1176
1176
|
disabled: e.value.disabled,
|
1177
1177
|
compareWith: b,
|
1178
1178
|
"allow-empty-selection": !e.value.required,
|
1179
|
-
onIonFocus: i(
|
1179
|
+
onIonFocus: i(f),
|
1180
1180
|
onIonChange: i(c),
|
1181
1181
|
onIonBlur: i(c)
|
1182
1182
|
}, {
|
1183
1183
|
default: g(() => [
|
1184
|
-
(
|
1184
|
+
(v(!0), B($, null, G(u.value, (I) => (v(), V(i(Be), {
|
1185
1185
|
key: I.value,
|
1186
1186
|
value: I,
|
1187
1187
|
disabled: e.value.disabled,
|
@@ -1197,13 +1197,13 @@ const ue = /* @__PURE__ */ A({
|
|
1197
1197
|
_: 1
|
1198
1198
|
}, 8, ["modelValue", "required", "helper-text", "error-text", "disabled", "allow-empty-selection", "onIonFocus", "onIonChange", "onIonBlur"]));
|
1199
1199
|
}
|
1200
|
-
}),
|
1200
|
+
}), ft = {
|
1201
1201
|
install(t) {
|
1202
|
-
t.component("VForm",
|
1202
|
+
t.component("VForm", Ke), t.component("TextInput", He), t.component("DateInput", Je), t.component("NumberInput", Qe), t.component("EmailInput", Xe), t.component("PasswordInput", Ye), t.component("SelectInput", tt), t.component("TextAreaInput", lt), t.component("RepeatInput", ut), t.component("CheckboxInput", rt), t.component("RadioInput", st), t.directive("maskito", $e);
|
1203
1203
|
}
|
1204
1204
|
};
|
1205
1205
|
export {
|
1206
|
-
|
1207
|
-
|
1206
|
+
ft as VForm,
|
1207
|
+
ft as default
|
1208
1208
|
};
|
1209
1209
|
//# sourceMappingURL=index.es.js.map
|