@uniquedj95/vform 3.0.6 → 3.1.0
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/inputs/RadioInput.vue.d.ts +29 -0
- package/dist/components/inputs/RadioInput.vue.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +443 -391
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/composables/useCheckboxLabelText.d.ts +0 -10
- package/dist/composables/useCheckboxLabelText.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { IonGrid as
|
3
|
-
import
|
4
|
-
import { calendar as
|
5
|
-
import { maskito as
|
6
|
-
function
|
1
|
+
import { ref as _, computed as M, defineComponent as z, watch as Y, createBlock as h, openBlock as c, unref as r, withCtx as p, createVNode as R, createCommentVNode as B, createElementBlock as $, Fragment as A, renderList as G, resolveDynamicComponent as me, normalizeStyle as fe, createTextVNode as O, toDisplayString as T, toRef as _e, mergeModels as j, useModel as L, resolveDirective as ke, withDirectives as xe, onMounted as de, normalizeClass as Ie, createElementVNode as ve } from "vue";
|
2
|
+
import { IonGrid as Me, IonRow as ue, IonCol as re, IonButton as K, IonLabel as H, IonText as we, IonInput as te, IonInputPasswordToggle as Ce, IonSelect as De, IonSelectOption as Ee, IonIcon as Q, IonChip as Fe, IonList as Re, IonItem as Se, IonCheckbox as pe, actionSheetController as Be, alertController as Oe, IonTextarea as Ue, IonRadioGroup as $e, IonRadio as Te } from "@ionic/vue";
|
3
|
+
import qe from "@vuepic/vue-datepicker";
|
4
|
+
import { calendar as ze, chevronDown as Ae, close as je, add as Le, remove as Pe } from "ionicons/icons";
|
5
|
+
import { maskito as Ye } from "@maskito/vue";
|
6
|
+
function Ne(t) {
|
7
7
|
return new Promise((o) => {
|
8
8
|
requestAnimationFrame(async () => {
|
9
9
|
const n = await t.getInputElement();
|
@@ -11,21 +11,21 @@ function Le(t) {
|
|
11
11
|
});
|
12
12
|
});
|
13
13
|
}
|
14
|
-
const
|
14
|
+
const He = {
|
15
15
|
d: /\d/,
|
16
16
|
a: /[A-Za-z]/,
|
17
17
|
"*": /[A-Za-z0-9]/
|
18
18
|
// Default: alphanum, can customize if needed
|
19
|
-
},
|
19
|
+
}, Ge = {
|
20
20
|
d: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
|
21
21
|
a: ["A", "B", "C", "x", "y", "z", "D", "f"],
|
22
22
|
"*": ["A", "3", "b", "8", "z", "4", "D", "0"]
|
23
23
|
};
|
24
|
-
function
|
25
|
-
const n =
|
24
|
+
function Je(t, o) {
|
25
|
+
const n = Ge[t];
|
26
26
|
return n[o % n.length];
|
27
27
|
}
|
28
|
-
function
|
28
|
+
function We(t) {
|
29
29
|
const o = [];
|
30
30
|
let n = "", e = 0, a = 0;
|
31
31
|
for (; e < t.length; ) {
|
@@ -37,8 +37,8 @@ function He(t) {
|
|
37
37
|
if (u !== -1) {
|
38
38
|
const d = t.slice(e + 2, u);
|
39
39
|
if (d.includes(",")) {
|
40
|
-
const [,
|
41
|
-
s =
|
40
|
+
const [, b] = d.split(",").map((y) => parseInt(y.trim()));
|
41
|
+
s = b || parseInt(d.split(",")[0]);
|
42
42
|
} else
|
43
43
|
s = parseInt(d);
|
44
44
|
e = u;
|
@@ -50,7 +50,7 @@ function He(t) {
|
|
50
50
|
e = u - 1;
|
51
51
|
}
|
52
52
|
for (let u = 0; u < s; u++)
|
53
|
-
o.push(
|
53
|
+
o.push(He[l]), n += Je(l, a++);
|
54
54
|
} else
|
55
55
|
o.push(l), n += l;
|
56
56
|
e++;
|
@@ -58,10 +58,10 @@ function He(t) {
|
|
58
58
|
return {
|
59
59
|
mask: o,
|
60
60
|
placeholder: n,
|
61
|
-
elementPredicate:
|
61
|
+
elementPredicate: Ne
|
62
62
|
};
|
63
63
|
}
|
64
|
-
const
|
64
|
+
const X = [
|
65
65
|
"January",
|
66
66
|
"February",
|
67
67
|
"March",
|
@@ -78,16 +78,16 @@ const Q = [
|
|
78
78
|
function se(t) {
|
79
79
|
return t == null || Array.isArray(t) && !t.length || typeof t == "object" && !Object.keys(t).length || !t;
|
80
80
|
}
|
81
|
-
function
|
81
|
+
function Ke(t, o = "DD/MMM/YYYY") {
|
82
82
|
const n = new Date(t);
|
83
83
|
if (isNaN(n.getTime()))
|
84
84
|
throw new Error("Invalid date string");
|
85
|
-
const e =
|
85
|
+
const e = W(n.getDate()), a = n.getMonth() + 1, l = n.getFullYear(), s = W(n.getHours()), u = W(n.getMinutes()), d = W(n.getSeconds()), b = n.getMilliseconds(), y = {
|
86
86
|
DD: e,
|
87
87
|
D: n.getDate().toString(),
|
88
|
-
MMM:
|
89
|
-
MMMM:
|
90
|
-
MM:
|
88
|
+
MMM: X[n.getMonth()].slice(0, 3),
|
89
|
+
MMMM: X[n.getMonth()],
|
90
|
+
MM: W(a),
|
91
91
|
M: a.toString(),
|
92
92
|
YYYY: l.toString(),
|
93
93
|
YY: l.toString().slice(-2),
|
@@ -97,23 +97,23 @@ function Ge(t, o = "DD/MMM/YYYY") {
|
|
97
97
|
m: n.getMinutes().toString(),
|
98
98
|
ss: d,
|
99
99
|
s: n.getSeconds().toString(),
|
100
|
-
SSS:
|
101
|
-
S:
|
100
|
+
SSS: W(b),
|
101
|
+
S: b.toString().slice(0, 1)
|
102
102
|
// Add more replacements as needed
|
103
103
|
};
|
104
104
|
return o.replace(
|
105
105
|
/DD|D|MMMM|MMM|MM|M|YYYY|YY|HH|H|mm|m|ss|s|SSS|S/g,
|
106
|
-
(
|
106
|
+
(I) => y[I] || I
|
107
107
|
);
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function W(t) {
|
110
110
|
return t < 10 ? `0${t}` : `${t}`;
|
111
111
|
}
|
112
112
|
function ne(t, o) {
|
113
113
|
if (Number.isInteger(parseInt(t)) && Number(t) > 0) {
|
114
|
-
if (o === "MMMM") return
|
115
|
-
if (o === "MMM") return
|
116
|
-
if (o === "MM") return
|
114
|
+
if (o === "MMMM") return X[Number(t) - 1];
|
115
|
+
if (o === "MMM") return X[Number(t) - 1].slice(0, 3);
|
116
|
+
if (o === "MM") return W(Number(t));
|
117
117
|
}
|
118
118
|
return t;
|
119
119
|
}
|
@@ -133,7 +133,7 @@ function ce(t) {
|
|
133
133
|
function he(t, o) {
|
134
134
|
return o.findIndex((n) => n.value === t.value || n.label === t.label || n.value === t.label || n.label === t.value);
|
135
135
|
}
|
136
|
-
function
|
136
|
+
function J(t, o) {
|
137
137
|
const n = he(t, o);
|
138
138
|
n >= 0 ? o[n].isChecked = !0 : o.push({ ...t, isChecked: !0 });
|
139
139
|
}
|
@@ -141,13 +141,17 @@ function oe(t, o) {
|
|
141
141
|
const n = he(t, o);
|
142
142
|
n >= 0 && (o[n].isChecked = !1);
|
143
143
|
}
|
144
|
-
function
|
144
|
+
function Ze(t, o) {
|
145
145
|
return o ? t.filter(
|
146
146
|
(n) => JSON.stringify(n).toLowerCase().includes(o.toLowerCase())
|
147
147
|
) : t;
|
148
148
|
}
|
149
|
-
function ye() {
|
150
|
-
const t =
|
149
|
+
function ye(t) {
|
150
|
+
const o = t.label || "", n = t.required ? " *" : "";
|
151
|
+
return o + n;
|
152
|
+
}
|
153
|
+
function ge() {
|
154
|
+
const t = _([]);
|
151
155
|
async function o() {
|
152
156
|
console.debug("Validating form inputs");
|
153
157
|
const l = [];
|
@@ -192,19 +196,19 @@ function ye() {
|
|
192
196
|
updateFormValues: a
|
193
197
|
};
|
194
198
|
}
|
195
|
-
function
|
196
|
-
const o =
|
199
|
+
function Qe(t) {
|
200
|
+
const o = M(
|
197
201
|
() => Object.entries(t.value).reduce((e, [a, l]) => (l.value !== void 0 && (typeof l.onChange == "function" ? e[a] = l.onChange(l.value) : e[a] = l.value), e), {})
|
198
|
-
), n =
|
199
|
-
|
202
|
+
), n = M(() => Object.entries(o.value).reduce((e, [a, l]) => (l !== void 0 && (t.value[a].children !== void 0 && (e[a] = l.map(({ other: s }) => Object.entries(s).reduce((u, [d, b]) => (typeof t.value[a].children[d].computedValue == "function" ? u[d] = t.value[a].children[d].computedValue(
|
203
|
+
b,
|
200
204
|
t.value
|
201
|
-
) : u[d] =
|
205
|
+
) : u[d] = b, u), {}))), typeof t.value[a].computedValue == "function" && l !== void 0 && (e[a] = t.value[a].computedValue(l, t.value))), e), {}));
|
202
206
|
return {
|
203
207
|
formData: o,
|
204
208
|
computedData: n
|
205
209
|
};
|
206
210
|
}
|
207
|
-
const
|
211
|
+
const Xe = /* @__PURE__ */ z({
|
208
212
|
__name: "vForm",
|
209
213
|
props: {
|
210
214
|
schema: {},
|
@@ -220,31 +224,31 @@ const Ke = /* @__PURE__ */ q({
|
|
220
224
|
},
|
221
225
|
emits: ["submit", "clear", "cancel"],
|
222
226
|
setup(t, { expose: o, emit: n }) {
|
223
|
-
const e = t, a = n, l =
|
224
|
-
async function
|
225
|
-
await u() && a("submit",
|
227
|
+
const e = t, a = n, l = _(e.schema), { dynamicRefs: s, isFormValid: u, resetForm: d } = ge(), { formData: b, computedData: y } = Qe(l);
|
228
|
+
async function I() {
|
229
|
+
await u() && a("submit", b.value, y.value);
|
226
230
|
}
|
227
|
-
function
|
231
|
+
function v() {
|
228
232
|
d(), a("clear");
|
229
233
|
}
|
230
|
-
function
|
234
|
+
function E() {
|
231
235
|
d(), a("cancel");
|
232
236
|
}
|
233
|
-
return
|
234
|
-
|
237
|
+
return Y(
|
238
|
+
b,
|
235
239
|
async () => {
|
236
|
-
for (const [f,
|
237
|
-
ie(
|
240
|
+
for (const [f, D] of Object.entries(l.value))
|
241
|
+
ie(D, b.value, y.value) || (D.value = e.schema[f].value);
|
238
242
|
},
|
239
243
|
{
|
240
244
|
deep: !0,
|
241
245
|
immediate: !0
|
242
246
|
}
|
243
|
-
),
|
247
|
+
), Y(
|
244
248
|
() => e.schema,
|
245
249
|
(f) => {
|
246
|
-
for (const [
|
247
|
-
|
250
|
+
for (const [D, i] of Object.entries(f))
|
251
|
+
i.value !== void 0 && (l.value[D].value = i.value);
|
248
252
|
},
|
249
253
|
{
|
250
254
|
deep: !0,
|
@@ -254,34 +258,34 @@ const Ke = /* @__PURE__ */ q({
|
|
254
258
|
resetForm: d,
|
255
259
|
isFormValid: u,
|
256
260
|
resolveData: () => ({
|
257
|
-
formData:
|
258
|
-
computedData:
|
261
|
+
formData: b.value,
|
262
|
+
computedData: y.value
|
259
263
|
})
|
260
|
-
}), (f,
|
264
|
+
}), (f, D) => (c(), h(r(Me), null, {
|
261
265
|
default: p(() => [
|
262
|
-
|
266
|
+
R(r(ue), null, {
|
263
267
|
default: p(() => [
|
264
|
-
(
|
265
|
-
var
|
266
|
-
return
|
267
|
-
r(ie)(l.value[
|
268
|
-
key:
|
269
|
-
size: ((
|
270
|
-
"size-sm": (
|
271
|
-
"size-md": (
|
272
|
-
"size-lg": (
|
273
|
-
"size-xl": (
|
268
|
+
(c(!0), $(A, null, G(Object.keys(l.value), (i) => {
|
269
|
+
var C, g, U, P, x;
|
270
|
+
return c(), $(A, null, [
|
271
|
+
r(ie)(l.value[i], r(b), r(y)) ? (c(), h(r(re), {
|
272
|
+
key: i,
|
273
|
+
size: ((C = l.value[i].grid) == null ? void 0 : C.xs) ?? "12",
|
274
|
+
"size-sm": (g = l.value[i].grid) == null ? void 0 : g.sm,
|
275
|
+
"size-md": (U = l.value[i].grid) == null ? void 0 : U.md,
|
276
|
+
"size-lg": (P = l.value[i].grid) == null ? void 0 : P.lg,
|
277
|
+
"size-xl": (x = l.value[i].grid) == null ? void 0 : x.xl,
|
274
278
|
class: "ion-margin-vertical"
|
275
279
|
}, {
|
276
280
|
default: p(() => [
|
277
|
-
(
|
278
|
-
modelValue: l.value[
|
279
|
-
"onUpdate:modelValue": (
|
281
|
+
(c(), h(me(l.value[i].type), {
|
282
|
+
modelValue: l.value[i],
|
283
|
+
"onUpdate:modelValue": (S) => l.value[i] = S,
|
280
284
|
schema: l.value,
|
281
285
|
ref_for: !0,
|
282
286
|
ref_key: "dynamicRefs",
|
283
287
|
ref: s,
|
284
|
-
"ref-key":
|
288
|
+
"ref-key": i
|
285
289
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "ref-key"]))
|
286
290
|
]),
|
287
291
|
_: 2
|
@@ -291,44 +295,44 @@ const Ke = /* @__PURE__ */ q({
|
|
291
295
|
]),
|
292
296
|
_: 1
|
293
297
|
}),
|
294
|
-
f.hideButtons ? B("", !0) : (
|
298
|
+
f.hideButtons ? B("", !0) : (c(), h(r(ue), { key: 0 }, {
|
295
299
|
default: p(() => [
|
296
|
-
|
300
|
+
R(r(re), {
|
297
301
|
size: "12",
|
298
|
-
style:
|
302
|
+
style: fe([{ display: "flex" }, { justifyContent: f.buttonPlacement }])
|
299
303
|
}, {
|
300
304
|
default: p(() => [
|
301
|
-
f.showCancelButton ? (
|
305
|
+
f.showCancelButton ? (c(), h(r(K), {
|
302
306
|
key: 0,
|
303
|
-
onClick:
|
307
|
+
onClick: E
|
304
308
|
}, {
|
305
309
|
default: p(() => [
|
306
|
-
T(
|
310
|
+
O(T(f.cancelButtonText ?? "Cancel"), 1)
|
307
311
|
]),
|
308
312
|
_: 1
|
309
313
|
})) : B("", !0),
|
310
|
-
f.showClearButton ? (
|
314
|
+
f.showClearButton ? (c(), h(r(K), {
|
311
315
|
key: 1,
|
312
|
-
onClick:
|
316
|
+
onClick: v
|
313
317
|
}, {
|
314
318
|
default: p(() => [
|
315
|
-
T(
|
319
|
+
O(T(f.clearButtonText ?? "Reset"), 1)
|
316
320
|
]),
|
317
321
|
_: 1
|
318
322
|
})) : B("", !0),
|
319
|
-
(
|
320
|
-
key:
|
321
|
-
onClick:
|
322
|
-
color:
|
323
|
+
(c(!0), $(A, null, G(f.customButtons, (i) => (c(), h(r(K), {
|
324
|
+
key: i.label,
|
325
|
+
onClick: i.action,
|
326
|
+
color: i.color ?? "primary"
|
323
327
|
}, {
|
324
328
|
default: p(() => [
|
325
|
-
T(
|
329
|
+
O(T(i.label), 1)
|
326
330
|
]),
|
327
331
|
_: 2
|
328
332
|
}, 1032, ["onClick", "color"]))), 128)),
|
329
|
-
|
333
|
+
R(r(K), { onClick: I }, {
|
330
334
|
default: p(() => [
|
331
|
-
T(
|
335
|
+
O(T(f.submitButtonText ?? "Submit"), 1)
|
332
336
|
]),
|
333
337
|
_: 1
|
334
338
|
})
|
@@ -343,7 +347,7 @@ const Ke = /* @__PURE__ */ q({
|
|
343
347
|
}));
|
344
348
|
}
|
345
349
|
});
|
346
|
-
function
|
350
|
+
function et(t) {
|
347
351
|
return {
|
348
352
|
applyValidationState: async (e) => {
|
349
353
|
var a, l, s, u, d;
|
@@ -355,76 +359,76 @@ function Ze(t) {
|
|
355
359
|
}
|
356
360
|
};
|
357
361
|
}
|
358
|
-
function
|
359
|
-
const { applyValidationState: l, resetValidationState: s } =
|
362
|
+
function Z(t, o, n, e, a) {
|
363
|
+
const { applyValidationState: l, resetValidationState: s } = et(t);
|
360
364
|
async function u() {
|
361
365
|
if (o.value.required && !n.value)
|
362
366
|
return o.value.error = "This field is required", !1;
|
363
367
|
if (a) {
|
364
|
-
const
|
365
|
-
if (typeof
|
366
|
-
return o.value.error =
|
367
|
-
if (
|
368
|
+
const v = await a(n.value);
|
369
|
+
if (typeof v == "string")
|
370
|
+
return o.value.error = v, !1;
|
371
|
+
if (v === !1)
|
368
372
|
return !1;
|
369
373
|
}
|
370
374
|
if (o.value.validation) {
|
371
|
-
const
|
372
|
-
if (
|
373
|
-
return o.value.error =
|
375
|
+
const v = await o.value.validation(n.value, e == null ? void 0 : e.value);
|
376
|
+
if (v && v.length)
|
377
|
+
return o.value.error = v.join(), !1;
|
374
378
|
}
|
375
379
|
return !0;
|
376
380
|
}
|
377
381
|
async function d() {
|
378
|
-
const
|
379
|
-
|
382
|
+
const v = await u();
|
383
|
+
v && (o.value.error = "", o.value.value = n.value), await l(v);
|
380
384
|
}
|
381
|
-
function
|
385
|
+
function b() {
|
382
386
|
s(), o.value.error = "";
|
383
387
|
}
|
384
|
-
function
|
385
|
-
n.value =
|
388
|
+
function y(v = "") {
|
389
|
+
n.value = v, o.value.error = "", o.value.value = v;
|
386
390
|
}
|
387
|
-
function
|
391
|
+
function I() {
|
388
392
|
return o.value.error ? [o.value.error] : [];
|
389
393
|
}
|
390
394
|
return {
|
391
395
|
isValid: u,
|
392
396
|
onValueUpdate: d,
|
393
|
-
onFocus:
|
394
|
-
onReset:
|
395
|
-
getErrors:
|
397
|
+
onFocus: b,
|
398
|
+
onReset: y,
|
399
|
+
getErrors: I,
|
396
400
|
applyValidationState: l,
|
397
401
|
resetValidationState: s
|
398
402
|
};
|
399
403
|
}
|
400
|
-
function
|
401
|
-
const o =
|
404
|
+
function tt(t) {
|
405
|
+
const o = M(() => !!t.value.label), n = M(() => !!t.value.required), e = M(() => t.value.label || "");
|
402
406
|
return {
|
403
407
|
showLabel: o,
|
404
408
|
showRequired: n,
|
405
409
|
labelText: e
|
406
410
|
};
|
407
411
|
}
|
408
|
-
const le = /* @__PURE__ */
|
412
|
+
const le = /* @__PURE__ */ z({
|
409
413
|
__name: "InputLabel",
|
410
414
|
props: {
|
411
415
|
model: {}
|
412
416
|
},
|
413
417
|
setup(t) {
|
414
|
-
const o = t, { showLabel: n, showRequired: e, labelText: a } =
|
415
|
-
return (l, s) => r(n) ? (
|
418
|
+
const o = t, { showLabel: n, showRequired: e, labelText: a } = tt(_e(o, "model"));
|
419
|
+
return (l, s) => r(n) ? (c(), h(r(H), {
|
416
420
|
key: 0,
|
417
421
|
slot: "label",
|
418
422
|
class: "input-label"
|
419
423
|
}, {
|
420
424
|
default: p(() => [
|
421
|
-
T(
|
422
|
-
r(e) ? (
|
425
|
+
O(T(r(a)) + " ", 1),
|
426
|
+
r(e) ? (c(), h(r(we), {
|
423
427
|
key: 0,
|
424
428
|
color: "danger"
|
425
429
|
}, {
|
426
430
|
default: p(() => s[0] || (s[0] = [
|
427
|
-
|
431
|
+
O("*")
|
428
432
|
])),
|
429
433
|
_: 1,
|
430
434
|
__: [0]
|
@@ -433,9 +437,9 @@ const le = /* @__PURE__ */ q({
|
|
433
437
|
_: 1
|
434
438
|
})) : B("", !0);
|
435
439
|
}
|
436
|
-
}), ae = /* @__PURE__ */
|
440
|
+
}), ae = /* @__PURE__ */ z({
|
437
441
|
__name: "BaseInput",
|
438
|
-
props: /* @__PURE__ */
|
442
|
+
props: /* @__PURE__ */ j({
|
439
443
|
schema: {},
|
440
444
|
type: {}
|
441
445
|
}, {
|
@@ -444,38 +448,38 @@ const le = /* @__PURE__ */ q({
|
|
444
448
|
}),
|
445
449
|
emits: ["update:modelValue"],
|
446
450
|
setup(t, { expose: o }) {
|
447
|
-
const n = t, e =
|
451
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(e.value.value), s = M(() => n.schema), { isValid: u, onValueUpdate: d, onFocus: b, onReset: y, getErrors: I } = Z(
|
448
452
|
a,
|
449
453
|
e,
|
450
454
|
l,
|
451
455
|
s
|
452
|
-
),
|
453
|
-
if (e.value.pattern) return
|
456
|
+
), v = M(() => {
|
457
|
+
if (e.value.pattern) return We(e.value.pattern);
|
454
458
|
});
|
455
|
-
return
|
459
|
+
return Y(
|
456
460
|
() => e.value.value,
|
457
|
-
(
|
461
|
+
(E) => l.value = E
|
458
462
|
), o({
|
459
463
|
onValueUpdate: d,
|
460
|
-
onReset:
|
461
|
-
getErrors:
|
464
|
+
onReset: y,
|
465
|
+
getErrors: I,
|
462
466
|
isValid: u
|
463
|
-
}), (
|
464
|
-
var
|
465
|
-
const
|
466
|
-
return
|
467
|
+
}), (E, f) => {
|
468
|
+
var i;
|
469
|
+
const D = ke("maskito");
|
470
|
+
return xe((c(), h(r(te), {
|
467
471
|
ref_key: "inputRef",
|
468
472
|
ref: a,
|
469
473
|
modelValue: l.value,
|
470
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
474
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C),
|
471
475
|
"clear-input": !0,
|
472
476
|
fill: e.value.fill ?? "outline",
|
473
477
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
474
|
-
type:
|
478
|
+
type: E.type ?? "text",
|
475
479
|
required: e.value.required,
|
476
480
|
"error-text": e.value.error,
|
477
481
|
autofocus: e.value.autoFocus,
|
478
|
-
placeholder: ((
|
482
|
+
placeholder: ((i = v.value) == null ? void 0 : i.placeholder) ?? e.value.placeholder,
|
479
483
|
disabled: e.value.disabled,
|
480
484
|
counter: e.value.counter,
|
481
485
|
min: e.value.min,
|
@@ -483,44 +487,44 @@ const le = /* @__PURE__ */ q({
|
|
483
487
|
"max-length": e.value.maxLength,
|
484
488
|
"min-length": e.value.minLength,
|
485
489
|
pattern: e.value.pattern,
|
486
|
-
onIonFocus: r(
|
490
|
+
onIonFocus: r(b),
|
487
491
|
onIonChange: r(d),
|
488
492
|
onIonBlur: r(d)
|
489
493
|
}, {
|
490
494
|
default: p(() => [
|
491
|
-
|
492
|
-
e.value.prefix ? (
|
495
|
+
R(le, { model: e.value }, null, 8, ["model"]),
|
496
|
+
e.value.prefix ? (c(), h(r(H), {
|
493
497
|
key: 0,
|
494
498
|
slot: "start"
|
495
499
|
}, {
|
496
500
|
default: p(() => [
|
497
|
-
T(
|
501
|
+
O(T(e.value.prefix), 1)
|
498
502
|
]),
|
499
503
|
_: 1
|
500
504
|
})) : B("", !0),
|
501
|
-
e.value.suffix ? (
|
505
|
+
e.value.suffix ? (c(), h(r(H), {
|
502
506
|
key: 1,
|
503
507
|
slot: "end"
|
504
508
|
}, {
|
505
509
|
default: p(() => [
|
506
|
-
T(
|
510
|
+
O(T(e.value.suffix), 1)
|
507
511
|
]),
|
508
512
|
_: 1
|
509
513
|
})) : B("", !0),
|
510
|
-
|
514
|
+
E.type === "password" ? (c(), h(r(Ce), {
|
511
515
|
key: 2,
|
512
516
|
slot: "end"
|
513
517
|
})) : B("", !0)
|
514
518
|
]),
|
515
519
|
_: 1
|
516
520
|
}, 8, ["modelValue", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"])), [
|
517
|
-
[
|
521
|
+
[D, v.value]
|
518
522
|
]);
|
519
523
|
};
|
520
524
|
}
|
521
|
-
}),
|
525
|
+
}), lt = /* @__PURE__ */ z({
|
522
526
|
__name: "TextInput",
|
523
|
-
props: /* @__PURE__ */
|
527
|
+
props: /* @__PURE__ */ j({
|
524
528
|
schema: {}
|
525
529
|
}, {
|
526
530
|
modelValue: { type: Object, default: {} },
|
@@ -528,7 +532,7 @@ const le = /* @__PURE__ */ q({
|
|
528
532
|
}),
|
529
533
|
emits: ["update:modelValue"],
|
530
534
|
setup(t, { expose: o }) {
|
531
|
-
const n =
|
535
|
+
const n = L(t, "modelValue"), e = _(null);
|
532
536
|
return o({
|
533
537
|
onReset: () => {
|
534
538
|
var a;
|
@@ -542,7 +546,7 @@ const le = /* @__PURE__ */ q({
|
|
542
546
|
var a, l;
|
543
547
|
return ((l = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : l.call(a)) ?? [];
|
544
548
|
}
|
545
|
-
}), (a, l) => (
|
549
|
+
}), (a, l) => (c(), h(ae, {
|
546
550
|
modelValue: n.value,
|
547
551
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
|
548
552
|
type: "text",
|
@@ -551,9 +555,9 @@ const le = /* @__PURE__ */ q({
|
|
551
555
|
ref: e
|
552
556
|
}, null, 8, ["modelValue", "schema"]));
|
553
557
|
}
|
554
|
-
}),
|
558
|
+
}), at = /* @__PURE__ */ z({
|
555
559
|
__name: "DateInput",
|
556
|
-
props: /* @__PURE__ */
|
560
|
+
props: /* @__PURE__ */ j({
|
557
561
|
schema: {}
|
558
562
|
}, {
|
559
563
|
modelValue: { type: Object, default: {} },
|
@@ -561,54 +565,54 @@ const le = /* @__PURE__ */ q({
|
|
561
565
|
}),
|
562
566
|
emits: ["update:modelValue"],
|
563
567
|
setup(t, { expose: o }) {
|
564
|
-
const n = t, e =
|
565
|
-
async function
|
566
|
-
if (
|
568
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(e.value.max), s = _(e.value.max), u = _(e.value.value), d = M(() => n.schema);
|
569
|
+
async function b(x) {
|
570
|
+
if (x === void 0)
|
567
571
|
return e.value.required ? "This field is required" : !0;
|
568
|
-
const
|
569
|
-
return isNaN(
|
572
|
+
const S = new Date(x);
|
573
|
+
return isNaN(S.getTime()) ? "Invalid date string" : s.value && S < new Date(s.value) ? `Date must be greater than ${s.value}` : l.value && S > new Date(l.value) ? `Date must be less than ${l.value}` : !0;
|
570
574
|
}
|
571
|
-
const { onValueUpdate:
|
575
|
+
const { onValueUpdate: y, onFocus: I, getErrors: v } = Z(
|
572
576
|
a,
|
573
577
|
e,
|
574
578
|
u,
|
575
579
|
d,
|
576
|
-
|
580
|
+
b
|
577
581
|
);
|
578
|
-
function
|
582
|
+
function E() {
|
579
583
|
u.value = "", e.value.error = "", e.value.value = "";
|
580
584
|
}
|
581
|
-
const f =
|
585
|
+
const f = M(() => {
|
582
586
|
if (e.value.pattern) return e.value.pattern;
|
583
|
-
let
|
584
|
-
return e.value.enableTime && (
|
585
|
-
}),
|
586
|
-
|
587
|
+
let x = e.value.pattern ?? "DD/MMM/YYYY";
|
588
|
+
return e.value.enableTime && (x += " HH:mm:ss"), x;
|
589
|
+
}), D = /[-/.,:\s]+/, i = M(() => f.value.split(D)), C = M(() => f.value.match(/[-/.,:\s]+/g) || []), g = _({});
|
590
|
+
Y(
|
587
591
|
() => e.value.value,
|
588
|
-
(
|
589
|
-
u.value =
|
592
|
+
(x) => {
|
593
|
+
u.value = x, P(x);
|
590
594
|
}
|
591
595
|
);
|
592
|
-
async function
|
593
|
-
let
|
594
|
-
/MM|MMM|MMMM/.test(
|
595
|
-
const
|
596
|
-
u.value =
|
596
|
+
async function U(x, S, V) {
|
597
|
+
let F = S ?? (V == null ? void 0 : V.target).value;
|
598
|
+
/MM|MMM|MMMM/.test(x) && (F = ne(F, x)), Number.isInteger(parseInt(F)) && (F = W(parseInt(F))), g.value[x] = F;
|
599
|
+
const q = i.value.reduce((m, w, k) => (m += g.value[w] + (k < i.value.length - 1 ? C.value[k] : ""), m), "");
|
600
|
+
u.value = q, await y();
|
597
601
|
}
|
598
|
-
async function
|
599
|
-
const
|
600
|
-
|
602
|
+
async function P(x) {
|
603
|
+
const S = Ke(x, f.value).split(D);
|
604
|
+
i.value.forEach((V, F) => U(V, S[F])), await y();
|
601
605
|
}
|
602
606
|
return o({
|
603
|
-
onValueUpdate:
|
604
|
-
onReset:
|
605
|
-
getErrors:
|
606
|
-
}),
|
607
|
-
|
608
|
-
var
|
609
|
-
|
607
|
+
onValueUpdate: y,
|
608
|
+
onReset: E,
|
609
|
+
getErrors: v
|
610
|
+
}), de(() => {
|
611
|
+
i.value.forEach((x, S) => {
|
612
|
+
var V;
|
613
|
+
g.value[x] = ((V = u.value) == null ? void 0 : V.split(D)[S]) ?? "";
|
610
614
|
});
|
611
|
-
}), (
|
615
|
+
}), (x, S) => (c(), h(r(te), {
|
612
616
|
type: "text",
|
613
617
|
ref_key: "inputRef",
|
614
618
|
ref: a,
|
@@ -619,58 +623,58 @@ const le = /* @__PURE__ */ q({
|
|
619
623
|
"error-text": e.value.error,
|
620
624
|
autofocus: e.value.autoFocus,
|
621
625
|
disabled: e.value.disabled,
|
622
|
-
onIonFocus: r(
|
623
|
-
onIonBlur: r(
|
626
|
+
onIonFocus: r(I),
|
627
|
+
onIonBlur: r(y)
|
624
628
|
}, {
|
625
629
|
default: p(() => [
|
626
|
-
|
627
|
-
(
|
628
|
-
/MM|MMM|MMMM/.test(
|
630
|
+
R(le, { model: e.value }, null, 8, ["model"]),
|
631
|
+
(c(!0), $(A, null, G(i.value, (V, F) => (c(), $(A, null, [
|
632
|
+
/MM|MMM|MMMM/.test(V) ? (c(), h(r(De), {
|
629
633
|
slot: "start",
|
630
|
-
key: `select-${
|
634
|
+
key: `select-${V}`,
|
631
635
|
interface: "popover",
|
632
|
-
style:
|
633
|
-
placeholder:
|
634
|
-
value:
|
635
|
-
onIonFocus: r(
|
636
|
-
onIonInput: (
|
637
|
-
onIonBlur: (
|
636
|
+
style: fe({ minWidth: e.value.enableTime ? "10%" : "30%" }),
|
637
|
+
placeholder: V,
|
638
|
+
value: g.value[V],
|
639
|
+
onIonFocus: r(I),
|
640
|
+
onIonInput: (q) => U(V, void 0, q),
|
641
|
+
onIonBlur: (q) => U(V, void 0, q)
|
638
642
|
}, {
|
639
643
|
default: p(() => [
|
640
|
-
(
|
641
|
-
key:
|
642
|
-
value: r(ne)(
|
644
|
+
(c(!0), $(A, null, G(r(X), (q, m) => (c(), h(r(Ee), {
|
645
|
+
key: q,
|
646
|
+
value: r(ne)(m + 1, V)
|
643
647
|
}, {
|
644
648
|
default: p(() => [
|
645
|
-
T(
|
649
|
+
O(T(r(ne)(m + 1, V)), 1)
|
646
650
|
]),
|
647
651
|
_: 2
|
648
652
|
}, 1032, ["value"]))), 128))
|
649
653
|
]),
|
650
654
|
_: 2
|
651
|
-
}, 1032, ["style", "placeholder", "value", "onIonFocus", "onIonInput", "onIonBlur"])) : (
|
655
|
+
}, 1032, ["style", "placeholder", "value", "onIonFocus", "onIonInput", "onIonBlur"])) : (c(), h(r(te), {
|
652
656
|
slot: "start",
|
653
|
-
key: `input-${
|
654
|
-
placeholder:
|
657
|
+
key: `input-${V}`,
|
658
|
+
placeholder: V,
|
655
659
|
autofocus: e.value.autoFocus,
|
656
|
-
value:
|
657
|
-
onIonFocus: r(
|
658
|
-
onIonInput: (
|
659
|
-
onIonBlur: (
|
660
|
+
value: g.value[V],
|
661
|
+
onIonFocus: r(I),
|
662
|
+
onIonInput: (q) => U(V, void 0, q),
|
663
|
+
onIonBlur: (q) => U(V, void 0, q)
|
660
664
|
}, null, 8, ["placeholder", "autofocus", "value", "onIonFocus", "onIonInput", "onIonBlur"])),
|
661
|
-
|
665
|
+
F < i.value.length - 1 ? (c(), h(r(H), {
|
662
666
|
slot: "start",
|
663
|
-
key: `separator-${
|
667
|
+
key: `separator-${F}`
|
664
668
|
}, {
|
665
669
|
default: p(() => [
|
666
|
-
|
670
|
+
O(" " + T(C.value[F]) + " ", 1)
|
667
671
|
]),
|
668
672
|
_: 2
|
669
673
|
}, 1024)) : B("", !0)
|
670
674
|
], 64))), 256)),
|
671
|
-
|
675
|
+
R(r(H), { slot: "end" }, {
|
672
676
|
default: p(() => [
|
673
|
-
|
677
|
+
R(r(qe), {
|
674
678
|
"enable-seconds": "",
|
675
679
|
"time-picker-inline": "",
|
676
680
|
teleport: "",
|
@@ -679,16 +683,16 @@ const le = /* @__PURE__ */ q({
|
|
679
683
|
"enable-time-picker": e.value.enableTime ?? !1,
|
680
684
|
maxDate: l.value,
|
681
685
|
minDate: s.value,
|
682
|
-
onDateUpdate:
|
686
|
+
onDateUpdate: P
|
683
687
|
}, {
|
684
688
|
trigger: p(() => [
|
685
|
-
|
689
|
+
R(r(K), { fill: "clear" }, {
|
686
690
|
default: p(() => [
|
687
|
-
|
691
|
+
R(r(Q), {
|
688
692
|
slot: "icon-only",
|
689
|
-
icon: r(
|
693
|
+
icon: r(ze),
|
690
694
|
"aria-hidden": "true",
|
691
|
-
onClick: r(
|
695
|
+
onClick: r(I)
|
692
696
|
}, null, 8, ["icon", "onClick"])
|
693
697
|
]),
|
694
698
|
_: 1
|
@@ -703,9 +707,9 @@ const le = /* @__PURE__ */ q({
|
|
703
707
|
_: 1
|
704
708
|
}, 8, ["fill", "label-placement", "required", "error-text", "autofocus", "disabled", "onIonFocus", "onIonBlur"]));
|
705
709
|
}
|
706
|
-
}),
|
710
|
+
}), nt = /* @__PURE__ */ z({
|
707
711
|
__name: "NumberInput",
|
708
|
-
props: /* @__PURE__ */
|
712
|
+
props: /* @__PURE__ */ j({
|
709
713
|
schema: {}
|
710
714
|
}, {
|
711
715
|
modelValue: { type: Object, default: {} },
|
@@ -713,7 +717,7 @@ const le = /* @__PURE__ */ q({
|
|
713
717
|
}),
|
714
718
|
emits: ["update:modelValue"],
|
715
719
|
setup(t, { expose: o }) {
|
716
|
-
const n =
|
720
|
+
const n = L(t, "modelValue"), e = _(null);
|
717
721
|
return o({
|
718
722
|
onReset: () => {
|
719
723
|
var a;
|
@@ -727,7 +731,7 @@ const le = /* @__PURE__ */ q({
|
|
727
731
|
var a, l;
|
728
732
|
return ((l = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : l.call(a)) ?? [];
|
729
733
|
}
|
730
|
-
}), (a, l) => (
|
734
|
+
}), (a, l) => (c(), h(ae, {
|
731
735
|
modelValue: n.value,
|
732
736
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
|
733
737
|
type: "number",
|
@@ -736,9 +740,9 @@ const le = /* @__PURE__ */ q({
|
|
736
740
|
ref: e
|
737
741
|
}, null, 8, ["modelValue", "schema"]));
|
738
742
|
}
|
739
|
-
}),
|
743
|
+
}), ot = /* @__PURE__ */ z({
|
740
744
|
__name: "EmailInput",
|
741
|
-
props: /* @__PURE__ */
|
745
|
+
props: /* @__PURE__ */ j({
|
742
746
|
schema: {}
|
743
747
|
}, {
|
744
748
|
modelValue: { type: Object, default: {} },
|
@@ -746,7 +750,7 @@ const le = /* @__PURE__ */ q({
|
|
746
750
|
}),
|
747
751
|
emits: ["update:modelValue"],
|
748
752
|
setup(t, { expose: o }) {
|
749
|
-
const n =
|
753
|
+
const n = L(t, "modelValue"), e = _(null);
|
750
754
|
return o({
|
751
755
|
onReset: () => {
|
752
756
|
var a;
|
@@ -760,7 +764,7 @@ const le = /* @__PURE__ */ q({
|
|
760
764
|
var a, l;
|
761
765
|
return ((l = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : l.call(a)) ?? [];
|
762
766
|
}
|
763
|
-
}), (a, l) => (
|
767
|
+
}), (a, l) => (c(), h(ae, {
|
764
768
|
modelValue: n.value,
|
765
769
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
|
766
770
|
type: "email",
|
@@ -769,9 +773,9 @@ const le = /* @__PURE__ */ q({
|
|
769
773
|
ref: e
|
770
774
|
}, null, 8, ["modelValue", "schema"]));
|
771
775
|
}
|
772
|
-
}),
|
776
|
+
}), ut = /* @__PURE__ */ z({
|
773
777
|
__name: "PasswordInput",
|
774
|
-
props: /* @__PURE__ */
|
778
|
+
props: /* @__PURE__ */ j({
|
775
779
|
schema: {}
|
776
780
|
}, {
|
777
781
|
modelValue: { type: Object, default: {} },
|
@@ -779,7 +783,7 @@ const le = /* @__PURE__ */ q({
|
|
779
783
|
}),
|
780
784
|
emits: ["update:modelValue"],
|
781
785
|
setup(t, { expose: o }) {
|
782
|
-
const n =
|
786
|
+
const n = L(t, "modelValue"), e = _(null);
|
783
787
|
return o({
|
784
788
|
onReset: () => {
|
785
789
|
var a;
|
@@ -793,7 +797,7 @@ const le = /* @__PURE__ */ q({
|
|
793
797
|
var a, l;
|
794
798
|
return ((l = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : l.call(a)) ?? [];
|
795
799
|
}
|
796
|
-
}), (a, l) => (
|
800
|
+
}), (a, l) => (c(), h(ae, {
|
797
801
|
modelValue: n.value,
|
798
802
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
|
799
803
|
type: "password",
|
@@ -802,9 +806,9 @@ const le = /* @__PURE__ */ q({
|
|
802
806
|
ref: e
|
803
807
|
}, null, 8, ["modelValue", "schema"]));
|
804
808
|
}
|
805
|
-
}),
|
809
|
+
}), rt = /* @__PURE__ */ z({
|
806
810
|
__name: "SelectInput",
|
807
|
-
props: /* @__PURE__ */
|
811
|
+
props: /* @__PURE__ */ j({
|
808
812
|
schema: {},
|
809
813
|
type: {}
|
810
814
|
}, {
|
@@ -813,25 +817,25 @@ const le = /* @__PURE__ */ q({
|
|
813
817
|
}),
|
814
818
|
emits: ["update:modelValue"],
|
815
819
|
setup(t, { expose: o }) {
|
816
|
-
const n = t, e =
|
817
|
-
|
820
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(null), s = _(!1), u = _([]), d = _(""), b = _(1), y = M(() => e.value.interface ?? "popover"), I = M(() => e.value.optionsPlacement === "top" ? "top" : "bottom"), v = M(() => u.value.filter((m) => !!m.isChecked)), E = M(() => !d.value && se(v.value) && !s.value ? e.value.placeholder ?? "Select an option" : "");
|
821
|
+
Y([d, () => e.value.options], F, {
|
818
822
|
immediate: !0,
|
819
823
|
deep: !0
|
820
|
-
}),
|
824
|
+
}), Y(() => e.value.value, q, { immediate: !0, deep: !0 });
|
821
825
|
function f() {
|
822
|
-
u.value.forEach((
|
826
|
+
u.value.forEach((m) => oe(m, u.value)), e.value.error = "", d.value = "", b.value = 1, e.value.value = e.value.multiple ? [] : "";
|
823
827
|
}
|
824
|
-
function
|
825
|
-
if (
|
826
|
-
e.value.multiple ?
|
828
|
+
function D(m) {
|
829
|
+
if (m.isChecked) return oe(m, u.value);
|
830
|
+
e.value.multiple ? J(m, u.value) : (f(), J(m, u.value), V()), d.value = "";
|
827
831
|
}
|
828
|
-
function
|
829
|
-
switch (
|
832
|
+
function i() {
|
833
|
+
switch (y.value) {
|
830
834
|
case "action-sheet":
|
831
|
-
|
835
|
+
C();
|
832
836
|
break;
|
833
837
|
case "alert":
|
834
|
-
|
838
|
+
g();
|
835
839
|
break;
|
836
840
|
case "popover":
|
837
841
|
default:
|
@@ -839,18 +843,18 @@ const le = /* @__PURE__ */ q({
|
|
839
843
|
break;
|
840
844
|
}
|
841
845
|
}
|
842
|
-
async function
|
843
|
-
if (await
|
846
|
+
async function C() {
|
847
|
+
if (await F(), e.value.multiple) {
|
844
848
|
s.value = !0;
|
845
849
|
return;
|
846
850
|
}
|
847
|
-
await (await
|
851
|
+
await (await Be.create({
|
848
852
|
header: e.value.label || "Select an option",
|
849
853
|
buttons: [
|
850
|
-
...u.value.map((
|
851
|
-
text:
|
852
|
-
cssClass:
|
853
|
-
handler: () => (
|
854
|
+
...u.value.map((w) => ({
|
855
|
+
text: w.label,
|
856
|
+
cssClass: w.isChecked ? "selected-option" : "",
|
857
|
+
handler: () => (D(w), !1)
|
854
858
|
})),
|
855
859
|
{
|
856
860
|
text: "Cancel",
|
@@ -859,17 +863,17 @@ const le = /* @__PURE__ */ q({
|
|
859
863
|
]
|
860
864
|
})).present();
|
861
865
|
}
|
862
|
-
async function
|
863
|
-
await
|
864
|
-
const
|
865
|
-
label:
|
866
|
+
async function g() {
|
867
|
+
await F();
|
868
|
+
const m = u.value.map((k) => ({
|
869
|
+
label: k.label,
|
866
870
|
type: e.value.multiple ? "checkbox" : "radio",
|
867
|
-
value:
|
868
|
-
checked:
|
871
|
+
value: k,
|
872
|
+
checked: k.isChecked
|
869
873
|
}));
|
870
|
-
await (await
|
874
|
+
await (await Oe.create({
|
871
875
|
header: e.value.label || "Select an option",
|
872
|
-
inputs:
|
876
|
+
inputs: m,
|
873
877
|
buttons: [
|
874
878
|
{
|
875
879
|
text: "Cancel",
|
@@ -877,108 +881,108 @@ const le = /* @__PURE__ */ q({
|
|
877
881
|
},
|
878
882
|
{
|
879
883
|
text: "OK",
|
880
|
-
handler: (
|
884
|
+
handler: (k) => {
|
881
885
|
if (e.value.multiple)
|
882
|
-
u.value.forEach((N) => oe(N, u.value)),
|
883
|
-
const ee = u.value.find((
|
884
|
-
ee &&
|
886
|
+
u.value.forEach((N) => oe(N, u.value)), k.forEach((N) => {
|
887
|
+
const ee = u.value.find((Ve) => Ve.value === N.value);
|
888
|
+
ee && J(ee, u.value);
|
885
889
|
});
|
886
890
|
else {
|
887
891
|
f();
|
888
|
-
const N = u.value.find((ee) => ee.value ===
|
889
|
-
N &&
|
892
|
+
const N = u.value.find((ee) => ee.value === k.value);
|
893
|
+
N && J(N, u.value);
|
890
894
|
}
|
891
|
-
|
895
|
+
V();
|
892
896
|
}
|
893
897
|
}
|
894
898
|
]
|
895
899
|
})).present();
|
896
900
|
}
|
897
|
-
async function
|
898
|
-
if (e.value.required && se(
|
901
|
+
async function U() {
|
902
|
+
if (e.value.required && se(v.value))
|
899
903
|
return "This field is required";
|
900
904
|
if (e.value.validation) {
|
901
|
-
const
|
902
|
-
if (
|
903
|
-
return
|
905
|
+
const m = await e.value.validation(v.value, n == null ? void 0 : n.schema);
|
906
|
+
if (m && m.length)
|
907
|
+
return m.join();
|
904
908
|
}
|
905
909
|
return !0;
|
906
910
|
}
|
907
|
-
const { onFocus:
|
911
|
+
const { onFocus: P, applyValidationState: x } = Z(
|
908
912
|
a,
|
909
913
|
e,
|
910
|
-
|
911
|
-
|
912
|
-
|
914
|
+
M(() => e.value.multiple ? v.value : v.value[0]),
|
915
|
+
M(() => n == null ? void 0 : n.schema),
|
916
|
+
U
|
913
917
|
);
|
914
|
-
function
|
915
|
-
var
|
916
|
-
|
918
|
+
function S(m) {
|
919
|
+
var w;
|
920
|
+
m.target === ((w = a.value) == null ? void 0 : w.$el) && (P(), y.value === "popover" && (s.value = !0));
|
917
921
|
}
|
918
|
-
async function
|
919
|
-
var
|
920
|
-
if ((
|
922
|
+
async function V(m) {
|
923
|
+
var k;
|
924
|
+
if ((k = m == null ? void 0 : m.relatedTarget) != null && k.closest(".suggestions-list")) return;
|
921
925
|
s.value = !1;
|
922
|
-
const
|
923
|
-
|
926
|
+
const w = await U();
|
927
|
+
w === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? v.value : v.value[0]) : e.value.error = typeof w == "string" ? w : "Validation failed", await x(w === !0);
|
924
928
|
}
|
925
|
-
async function
|
926
|
-
const
|
929
|
+
async function F() {
|
930
|
+
const m = [];
|
927
931
|
if (typeof e.value.options == "function") {
|
928
|
-
const
|
929
|
-
|
932
|
+
const w = await e.value.options(d.value);
|
933
|
+
m.push(...w.filter((k) => !!k.label));
|
930
934
|
} else
|
931
|
-
|
932
|
-
|
935
|
+
m.push(...Ze(e.value.options ?? [], d.value));
|
936
|
+
v.value.forEach((w) => J(w, m)), u.value = m;
|
933
937
|
}
|
934
|
-
function
|
935
|
-
const
|
936
|
-
|
937
|
-
value:
|
938
|
-
label:
|
938
|
+
function q() {
|
939
|
+
const m = e.value.value;
|
940
|
+
m && (Array.isArray(m) ? m.forEach((w) => J(w, u.value)) : J(typeof m == "object" ? m : {
|
941
|
+
value: m,
|
942
|
+
label: m
|
939
943
|
}, u.value));
|
940
944
|
}
|
941
945
|
return o({
|
942
|
-
onValueUpdate:
|
946
|
+
onValueUpdate: V,
|
943
947
|
onReset: f,
|
944
948
|
getErrors: () => e.value.error ? [e.value.error] : []
|
945
|
-
}), (
|
949
|
+
}), (m, w) => (c(), $("div", {
|
946
950
|
class: "autocomplete-container",
|
947
|
-
onFocusout:
|
951
|
+
onFocusout: V,
|
948
952
|
ref_key: "containerRef",
|
949
953
|
ref: l
|
950
954
|
}, [
|
951
|
-
|
955
|
+
R(r(te), {
|
952
956
|
ref_key: "inputRef",
|
953
957
|
ref: a,
|
954
958
|
modelValue: d.value,
|
955
|
-
"onUpdate:modelValue":
|
959
|
+
"onUpdate:modelValue": w[0] || (w[0] = (k) => d.value = k),
|
956
960
|
fill: e.value.fill ?? "outline",
|
957
961
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
958
|
-
type:
|
962
|
+
type: m.type ?? "text",
|
959
963
|
required: e.value.required,
|
960
964
|
"error-text": e.value.error,
|
961
965
|
autofocus: e.value.autoFocus,
|
962
|
-
placeholder:
|
966
|
+
placeholder: E.value,
|
963
967
|
disabled: e.value.disabled,
|
964
968
|
counter: e.value.counter,
|
965
|
-
onIonFocus:
|
969
|
+
onIonFocus: S,
|
966
970
|
debounce: 300,
|
967
|
-
onClick:
|
971
|
+
onClick: i
|
968
972
|
}, {
|
969
973
|
default: p(() => [
|
970
|
-
|
971
|
-
e.value.multiple ? (
|
974
|
+
R(le, { model: e.value }, null, 8, ["model"]),
|
975
|
+
e.value.multiple ? (c(), h(r(H), {
|
972
976
|
key: 0,
|
973
977
|
style: { width: "fit-content" },
|
974
978
|
slot: "start"
|
975
979
|
}, {
|
976
980
|
default: p(() => [
|
977
|
-
(
|
981
|
+
(c(!0), $(A, null, G(v.value, (k, N) => (c(), h(r(Fe), { key: N }, {
|
978
982
|
default: p(() => [
|
979
|
-
|
983
|
+
R(r(H), null, {
|
980
984
|
default: p(() => [
|
981
|
-
T(
|
985
|
+
O(T(k.label), 1)
|
982
986
|
]),
|
983
987
|
_: 2
|
984
988
|
}, 1024)
|
@@ -987,52 +991,52 @@ const le = /* @__PURE__ */ q({
|
|
987
991
|
}, 1024))), 128))
|
988
992
|
]),
|
989
993
|
_: 1
|
990
|
-
})) : (
|
994
|
+
})) : (c(), h(r(H), {
|
991
995
|
key: 1,
|
992
996
|
slot: "start",
|
993
997
|
class: "ion-no-wrap"
|
994
998
|
}, {
|
995
999
|
default: p(() => {
|
996
|
-
var
|
1000
|
+
var k;
|
997
1001
|
return [
|
998
|
-
T(
|
1002
|
+
O(T(((k = v.value[0]) == null ? void 0 : k.label) ?? ""), 1)
|
999
1003
|
];
|
1000
1004
|
}),
|
1001
1005
|
_: 1
|
1002
1006
|
})),
|
1003
|
-
|
1007
|
+
R(r(Q), {
|
1004
1008
|
slot: "end",
|
1005
|
-
icon: r(
|
1009
|
+
icon: r(Ae)
|
1006
1010
|
}, null, 8, ["icon"]),
|
1007
|
-
|
1011
|
+
v.value.length > 0 || d.value ? (c(), h(r(Q), {
|
1008
1012
|
key: 2,
|
1009
1013
|
slot: "end",
|
1010
|
-
icon: r(
|
1014
|
+
icon: r(je),
|
1011
1015
|
onClick: f,
|
1012
1016
|
style: { "z-index": "999999" }
|
1013
1017
|
}, null, 8, ["icon"])) : B("", !0)
|
1014
1018
|
]),
|
1015
1019
|
_: 1
|
1016
1020
|
}, 8, ["modelValue", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter"]),
|
1017
|
-
s.value && u.value.length > 0 &&
|
1021
|
+
s.value && u.value.length > 0 && y.value === "popover" ? (c(), h(r(Re), {
|
1018
1022
|
key: 0,
|
1019
|
-
class:
|
1023
|
+
class: Ie(["suggestions-list", I.value])
|
1020
1024
|
}, {
|
1021
1025
|
default: p(() => [
|
1022
|
-
(
|
1026
|
+
(c(!0), $(A, null, G(u.value, (k) => (c(), h(r(Se), {
|
1023
1027
|
button: "",
|
1024
|
-
key:
|
1025
|
-
onClick: (N) =>
|
1028
|
+
key: k.label,
|
1029
|
+
onClick: (N) => D(k)
|
1026
1030
|
}, {
|
1027
1031
|
default: p(() => [
|
1028
|
-
e.value.multiple ? (
|
1032
|
+
e.value.multiple ? (c(), h(r(pe), {
|
1029
1033
|
key: 0,
|
1030
1034
|
slot: "start",
|
1031
|
-
checked:
|
1035
|
+
checked: k.isChecked
|
1032
1036
|
}, null, 8, ["checked"])) : B("", !0),
|
1033
|
-
|
1037
|
+
R(r(H), null, {
|
1034
1038
|
default: p(() => [
|
1035
|
-
T(
|
1039
|
+
O(T(k.label), 1)
|
1036
1040
|
]),
|
1037
1041
|
_: 2
|
1038
1042
|
}, 1024)
|
@@ -1044,14 +1048,14 @@ const le = /* @__PURE__ */ q({
|
|
1044
1048
|
}, 8, ["class"])) : B("", !0)
|
1045
1049
|
], 544));
|
1046
1050
|
}
|
1047
|
-
}),
|
1051
|
+
}), be = (t, o) => {
|
1048
1052
|
const n = t.__vccOpts || t;
|
1049
1053
|
for (const [e, a] of o)
|
1050
1054
|
n[e] = a;
|
1051
1055
|
return n;
|
1052
|
-
},
|
1056
|
+
}, st = /* @__PURE__ */ be(rt, [["__scopeId", "data-v-80c14c96"]]), it = /* @__PURE__ */ z({
|
1053
1057
|
__name: "TextAreaInput",
|
1054
|
-
props: /* @__PURE__ */
|
1058
|
+
props: /* @__PURE__ */ j({
|
1055
1059
|
schema: {}
|
1056
1060
|
}, {
|
1057
1061
|
modelValue: { type: Object, default: {} },
|
@@ -1059,24 +1063,24 @@ const le = /* @__PURE__ */ q({
|
|
1059
1063
|
}),
|
1060
1064
|
emits: ["update:modelValue"],
|
1061
1065
|
setup(t, { expose: o }) {
|
1062
|
-
const n = t, e =
|
1066
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(e.value.value), s = M(() => n.schema), { onValueUpdate: u, onFocus: d, onReset: b, getErrors: y } = Z(
|
1063
1067
|
a,
|
1064
1068
|
e,
|
1065
1069
|
l,
|
1066
1070
|
s
|
1067
1071
|
);
|
1068
|
-
return
|
1072
|
+
return Y(
|
1069
1073
|
() => e.value.value,
|
1070
|
-
(
|
1074
|
+
(I) => l.value = I
|
1071
1075
|
), o({
|
1072
|
-
onReset:
|
1076
|
+
onReset: b,
|
1073
1077
|
onValueUpdate: u,
|
1074
|
-
getErrors:
|
1075
|
-
}), (
|
1078
|
+
getErrors: y
|
1079
|
+
}), (I, v) => (c(), h(r(Ue), {
|
1076
1080
|
ref_key: "inputRef",
|
1077
1081
|
ref: a,
|
1078
1082
|
modelValue: l.value,
|
1079
|
-
"onUpdate:modelValue":
|
1083
|
+
"onUpdate:modelValue": v[0] || (v[0] = (E) => l.value = E),
|
1080
1084
|
"clear-input": !0,
|
1081
1085
|
fill: e.value.fill ?? "outline",
|
1082
1086
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
@@ -1099,17 +1103,17 @@ const le = /* @__PURE__ */ q({
|
|
1099
1103
|
onIonBlur: r(u)
|
1100
1104
|
}, {
|
1101
1105
|
default: p(() => [
|
1102
|
-
|
1106
|
+
R(le, { model: e.value }, null, 8, ["model"])
|
1103
1107
|
]),
|
1104
1108
|
_: 1
|
1105
1109
|
}, 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"]));
|
1106
1110
|
}
|
1107
|
-
}),
|
1111
|
+
}), ct = {
|
1108
1112
|
class: "ion-margin-end",
|
1109
1113
|
style: { "flex-grow": "1" }
|
1110
|
-
},
|
1114
|
+
}, dt = { style: { display: "flex", "justify-content": "flex-end" } }, vt = /* @__PURE__ */ z({
|
1111
1115
|
__name: "RepeatInput",
|
1112
|
-
props: /* @__PURE__ */
|
1116
|
+
props: /* @__PURE__ */ j({
|
1113
1117
|
schema: {},
|
1114
1118
|
data: {},
|
1115
1119
|
computedData: {}
|
@@ -1119,65 +1123,65 @@ const le = /* @__PURE__ */ q({
|
|
1119
1123
|
}),
|
1120
1124
|
emits: ["update:modelValue"],
|
1121
1125
|
setup(t, { expose: o }) {
|
1122
|
-
const n =
|
1123
|
-
label: `Set ${
|
1124
|
-
value:
|
1126
|
+
const n = L(t, "modelValue"), e = _([]), { dynamicRefs: a, resetForm: l, getFormErrors: s, updateFormValues: u } = ge(), d = M(() => e.value.map((f, D) => ({
|
1127
|
+
label: `Set ${D + 1}`,
|
1128
|
+
value: D,
|
1125
1129
|
other: Object.entries(f).reduce(
|
1126
|
-
(
|
1130
|
+
(i, [C, g]) => (i[C] = g.value, i),
|
1127
1131
|
{}
|
1128
1132
|
)
|
1129
1133
|
})));
|
1130
|
-
|
1134
|
+
Y(
|
1131
1135
|
d,
|
1132
1136
|
(f) => {
|
1133
1137
|
n.value.value = f;
|
1134
1138
|
},
|
1135
1139
|
{ deep: !0, immediate: !0 }
|
1136
|
-
),
|
1137
|
-
function
|
1140
|
+
), de(b);
|
1141
|
+
function b() {
|
1138
1142
|
n.value.children && e.value.push(ce(n.value.children));
|
1139
1143
|
}
|
1140
|
-
function
|
1144
|
+
function y(f) {
|
1141
1145
|
e.value.splice(f, 1);
|
1142
1146
|
}
|
1143
|
-
function
|
1147
|
+
function I() {
|
1144
1148
|
l();
|
1145
1149
|
}
|
1146
|
-
function
|
1150
|
+
function v() {
|
1147
1151
|
return s();
|
1148
1152
|
}
|
1149
|
-
async function
|
1153
|
+
async function E() {
|
1150
1154
|
await u();
|
1151
1155
|
}
|
1152
1156
|
return o({
|
1153
|
-
onValueUpdate:
|
1154
|
-
onReset:
|
1155
|
-
getErrors:
|
1156
|
-
}), (f,
|
1157
|
+
onValueUpdate: E,
|
1158
|
+
onReset: I,
|
1159
|
+
getErrors: v
|
1160
|
+
}), (f, D) => (c(!0), $(A, null, G(e.value, (i, C) => (c(), $("div", {
|
1157
1161
|
class: "repeat-input-wrapper",
|
1158
|
-
key:
|
1162
|
+
key: C
|
1159
1163
|
}, [
|
1160
|
-
|
1161
|
-
|
1164
|
+
ve("div", ct, [
|
1165
|
+
R(r(ue), null, {
|
1162
1166
|
default: p(() => [
|
1163
|
-
(
|
1164
|
-
var
|
1165
|
-
return
|
1166
|
-
r(ie)(
|
1167
|
-
key: `${
|
1168
|
-
size: ((
|
1169
|
-
"size-sm": (
|
1170
|
-
"size-md": (
|
1171
|
-
"size-lg": (
|
1172
|
-
"size-xl": (
|
1167
|
+
(c(!0), $(A, null, G(Object.keys(i), (g) => {
|
1168
|
+
var U, P, x, S, V;
|
1169
|
+
return c(), $(A, null, [
|
1170
|
+
r(ie)(i[g], f.data, f.computedData) ? (c(), h(r(re), {
|
1171
|
+
key: `${C}-${g}`,
|
1172
|
+
size: ((U = i[g].grid) == null ? void 0 : U.xs) ?? "12",
|
1173
|
+
"size-sm": (P = i[g].grid) == null ? void 0 : P.sm,
|
1174
|
+
"size-md": (x = i[g].grid) == null ? void 0 : x.md,
|
1175
|
+
"size-lg": (S = i[g].grid) == null ? void 0 : S.lg,
|
1176
|
+
"size-xl": (V = i[g].grid) == null ? void 0 : V.xl,
|
1173
1177
|
class: "ion-margin-bottom"
|
1174
1178
|
}, {
|
1175
1179
|
default: p(() => [
|
1176
|
-
(
|
1177
|
-
modelValue:
|
1178
|
-
"onUpdate:modelValue": (
|
1179
|
-
schema:
|
1180
|
-
"ref-key": `${
|
1180
|
+
(c(), h(me(i[g].type), {
|
1181
|
+
modelValue: i[g],
|
1182
|
+
"onUpdate:modelValue": (F) => i[g] = F,
|
1183
|
+
schema: i,
|
1184
|
+
"ref-key": `${C}-${g}`,
|
1181
1185
|
ref_for: !0,
|
1182
1186
|
ref_key: "dynamicRefs",
|
1183
1187
|
ref: a
|
@@ -1191,29 +1195,29 @@ const le = /* @__PURE__ */ q({
|
|
1191
1195
|
_: 2
|
1192
1196
|
}, 1024)
|
1193
1197
|
]),
|
1194
|
-
|
1195
|
-
|
1198
|
+
ve("div", dt, [
|
1199
|
+
C === e.value.length - 1 ? (c(), h(r(K), {
|
1196
1200
|
key: 0,
|
1197
|
-
onClick:
|
1201
|
+
onClick: b,
|
1198
1202
|
color: "primary"
|
1199
1203
|
}, {
|
1200
1204
|
default: p(() => [
|
1201
|
-
|
1205
|
+
R(r(Q), {
|
1202
1206
|
slot: "icon-only",
|
1203
|
-
icon: r(
|
1207
|
+
icon: r(Le)
|
1204
1208
|
}, null, 8, ["icon"])
|
1205
1209
|
]),
|
1206
1210
|
_: 1
|
1207
1211
|
})) : B("", !0),
|
1208
|
-
e.value.length > 1 ? (
|
1212
|
+
e.value.length > 1 ? (c(), h(r(K), {
|
1209
1213
|
key: 1,
|
1210
|
-
onClick: (
|
1214
|
+
onClick: (g) => y(C),
|
1211
1215
|
color: "warning"
|
1212
1216
|
}, {
|
1213
1217
|
default: p(() => [
|
1214
|
-
|
1218
|
+
R(r(Q), {
|
1215
1219
|
slot: "icon-only",
|
1216
|
-
icon: r(
|
1220
|
+
icon: r(Pe)
|
1217
1221
|
}, null, 8, ["icon"])
|
1218
1222
|
]),
|
1219
1223
|
_: 2
|
@@ -1221,18 +1225,9 @@ const le = /* @__PURE__ */ q({
|
|
1221
1225
|
])
|
1222
1226
|
]))), 128));
|
1223
1227
|
}
|
1224
|
-
}),
|
1225
|
-
function dt(t) {
|
1226
|
-
return {
|
1227
|
-
labelTextWithAsterisk: w(() => {
|
1228
|
-
const n = t.value.label || "", e = t.value.required ? " *" : "";
|
1229
|
-
return n + e;
|
1230
|
-
})
|
1231
|
-
};
|
1232
|
-
}
|
1233
|
-
const vt = /* @__PURE__ */ q({
|
1228
|
+
}), mt = /* @__PURE__ */ be(vt, [["__scopeId", "data-v-402695fe"]]), ft = /* @__PURE__ */ z({
|
1234
1229
|
__name: "CheckboxInput",
|
1235
|
-
props: /* @__PURE__ */
|
1230
|
+
props: /* @__PURE__ */ j({
|
1236
1231
|
schema: {}
|
1237
1232
|
}, {
|
1238
1233
|
modelValue: { type: Object, default: {} },
|
@@ -1240,42 +1235,99 @@ const vt = /* @__PURE__ */ q({
|
|
1240
1235
|
}),
|
1241
1236
|
emits: ["update:modelValue"],
|
1242
1237
|
setup(t, { expose: o }) {
|
1243
|
-
const n = t, e =
|
1244
|
-
function
|
1238
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(e.value.value), s = M(() => n.schema), u = M(() => ye(e.value)), { onValueUpdate: d, onFocus: b, getErrors: y } = Z(a, e, l, s);
|
1239
|
+
function I() {
|
1245
1240
|
l.value = !1, e.value.error = "", e.value.value = !1;
|
1246
1241
|
}
|
1247
|
-
return
|
1242
|
+
return Y(
|
1248
1243
|
() => e.value.value,
|
1249
|
-
(
|
1244
|
+
(v) => l.value = v
|
1250
1245
|
), o({
|
1251
1246
|
onValueUpdate: d,
|
1252
|
-
onReset:
|
1253
|
-
getErrors:
|
1254
|
-
}), (
|
1247
|
+
onReset: I,
|
1248
|
+
getErrors: y
|
1249
|
+
}), (v, E) => (c(), h(r(pe), {
|
1255
1250
|
modelValue: l.value,
|
1256
|
-
"onUpdate:modelValue":
|
1251
|
+
"onUpdate:modelValue": E[0] || (E[0] = (f) => l.value = f),
|
1257
1252
|
ref_key: "inputRef",
|
1258
1253
|
ref: a,
|
1259
1254
|
required: e.value.required,
|
1260
1255
|
"error-text": e.value.error,
|
1261
1256
|
disabled: e.value.disabled,
|
1262
|
-
onIonFocus: r(
|
1257
|
+
onIonFocus: r(b),
|
1263
1258
|
onIonChange: r(d),
|
1264
1259
|
onIonBlur: r(d)
|
1265
1260
|
}, {
|
1266
1261
|
default: p(() => [
|
1267
|
-
T(
|
1262
|
+
O(T(u.value), 1)
|
1268
1263
|
]),
|
1269
1264
|
_: 1
|
1270
1265
|
}, 8, ["modelValue", "required", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"]));
|
1271
1266
|
}
|
1272
|
-
}),
|
1267
|
+
}), pt = /* @__PURE__ */ z({
|
1268
|
+
__name: "RadioInput",
|
1269
|
+
props: /* @__PURE__ */ j({
|
1270
|
+
schema: {}
|
1271
|
+
}, {
|
1272
|
+
modelValue: { type: Object, default: {} },
|
1273
|
+
modelModifiers: {}
|
1274
|
+
}),
|
1275
|
+
emits: ["update:modelValue"],
|
1276
|
+
setup(t, { expose: o }) {
|
1277
|
+
const n = t, e = L(t, "modelValue"), a = _(null), l = _(e.value.value), s = M(() => n.schema), u = _([]), d = M(() => ye(e.value)), b = M(() => e.value.labelPlacement ? e.value.labelPlacement : "end"), { onValueUpdate: y, onFocus: I, getErrors: v } = Z(a, e, l, s);
|
1278
|
+
function E() {
|
1279
|
+
e.value.error = "", l.value = void 0, e.value.value = void 0;
|
1280
|
+
}
|
1281
|
+
function f(i, C) {
|
1282
|
+
return i.value === C.value;
|
1283
|
+
}
|
1284
|
+
async function D() {
|
1285
|
+
typeof e.value.options == "function" ? u.value = await e.value.options() : u.value = e.value.options;
|
1286
|
+
}
|
1287
|
+
return Y(
|
1288
|
+
() => e.value.value,
|
1289
|
+
(i) => l.value = i
|
1290
|
+
), o({
|
1291
|
+
onValueUpdate: y,
|
1292
|
+
onReset: E,
|
1293
|
+
getErrors: v
|
1294
|
+
}), de(D), (i, C) => (c(), h(r($e), {
|
1295
|
+
modelValue: l.value,
|
1296
|
+
"onUpdate:modelValue": C[0] || (C[0] = (g) => l.value = g),
|
1297
|
+
ref_key: "inputRef",
|
1298
|
+
ref: a,
|
1299
|
+
required: e.value.required,
|
1300
|
+
"help-text": d.value,
|
1301
|
+
"error-text": e.value.error,
|
1302
|
+
disabled: e.value.disabled,
|
1303
|
+
compareWith: f,
|
1304
|
+
onIonFocus: r(I),
|
1305
|
+
onIonChange: r(y),
|
1306
|
+
onIonBlur: r(y)
|
1307
|
+
}, {
|
1308
|
+
default: p(() => [
|
1309
|
+
(c(!0), $(A, null, G(u.value, (g) => (c(), h(r(Te), {
|
1310
|
+
key: g.value,
|
1311
|
+
value: g,
|
1312
|
+
disabled: e.value.disabled,
|
1313
|
+
"label-placement": b.value
|
1314
|
+
}, {
|
1315
|
+
default: p(() => [
|
1316
|
+
O(T(g.label), 1)
|
1317
|
+
]),
|
1318
|
+
_: 2
|
1319
|
+
}, 1032, ["value", "disabled", "label-placement"]))), 128))
|
1320
|
+
]),
|
1321
|
+
_: 1
|
1322
|
+
}, 8, ["modelValue", "required", "help-text", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"]));
|
1323
|
+
}
|
1324
|
+
}), _t = {
|
1273
1325
|
install(t) {
|
1274
|
-
t.component("VForm",
|
1326
|
+
t.component("VForm", Xe), t.component("TextInput", lt), t.component("DateInput", at), t.component("NumberInput", nt), t.component("EmailInput", ot), t.component("PasswordInput", ut), t.component("SelectInput", st), t.component("TextAreaInput", it), t.component("RepeatInput", mt), t.component("CheckboxInput", ft), t.component("RadioInput", pt), t.directive("maskito", Ye);
|
1275
1327
|
}
|
1276
1328
|
};
|
1277
1329
|
export {
|
1278
|
-
|
1279
|
-
|
1330
|
+
_t as VForm,
|
1331
|
+
_t as default
|
1280
1332
|
};
|
1281
1333
|
//# sourceMappingURL=index.es.js.map
|