@uniquedj95/vform 3.6.2 → 3.7.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/buttons/ActionButton.vue.d.ts +24 -0
- package/dist/components/buttons/ActionButton.vue.d.ts.map +1 -0
- package/dist/components/buttons/CustomButton.vue.d.ts +15 -0
- package/dist/components/buttons/CustomButton.vue.d.ts.map +1 -0
- package/dist/components/inputs/RadioInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/vForm.vue.d.ts +5 -21
- package/dist/components/vForm.vue.d.ts.map +1 -1
- package/dist/composables/useDataTransformation.d.ts.map +1 -1
- package/dist/composables/useInputValidation.d.ts.map +1 -1
- 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 +1040 -988
- 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 +138 -8
- 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/dist/vform.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,213 +1,211 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import { chevronDown as
|
|
4
|
-
import { maskito as
|
|
5
|
-
function
|
|
6
|
-
return new Promise((
|
|
1
|
+
import { ref as R, computed as O, watch as q, defineComponent as D, createElementBlock as B, openBlock as v, normalizeClass as j, createElementVNode as U, createCommentVNode as z, Fragment as N, renderList as Q, toDisplayString as T, normalizeStyle as me, inject as we, createBlock as b, unref as i, withCtx as w, createTextVNode as M, resolveDynamicComponent as he, mergeProps as Fe, createVNode as P, toRef as Pe, mergeModels as W, useModel as Z, resolveDirective as Te, withDirectives as Ue, onMounted as xe } from "vue";
|
|
2
|
+
import { IonButton as ge, IonGrid as ze, IonRow as ue, IonCol as ne, IonLabel as se, IonText as Ee, IonInput as Ae, IonInputPasswordToggle as De, IonChip as qe, IonIcon as be, IonList as Ne, IonItem as ke, IonCheckbox as Re, actionSheetController as Le, alertController as Me, IonTextarea as je, IonNote as Ge, IonRadioGroup as He, IonRadio as Ke } from "@ionic/vue";
|
|
3
|
+
import { chevronDown as We, close as Ze, add as Je, remove as Qe } from "ionicons/icons";
|
|
4
|
+
import { maskito as Xe } from "@maskito/vue";
|
|
5
|
+
function Ye(t) {
|
|
6
|
+
return new Promise((o) => {
|
|
7
7
|
requestAnimationFrame(async () => {
|
|
8
8
|
const l = await t.getInputElement();
|
|
9
|
-
|
|
9
|
+
o(l);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const et = {
|
|
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
|
+
}, tt = {
|
|
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 l =
|
|
25
|
-
return l[
|
|
23
|
+
function lt(t, o) {
|
|
24
|
+
const l = tt[t];
|
|
25
|
+
return l[o % l.length];
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
27
|
+
function at(t) {
|
|
28
|
+
const o = [];
|
|
29
29
|
let l = "", e = 0, a = 0;
|
|
30
30
|
for (; e < t.length; ) {
|
|
31
|
-
const
|
|
32
|
-
if (["d", "a", "*"].includes(
|
|
33
|
-
let
|
|
31
|
+
const s = t[e];
|
|
32
|
+
if (["d", "a", "*"].includes(s)) {
|
|
33
|
+
let u = 1;
|
|
34
34
|
if (t[e + 1] === "{") {
|
|
35
35
|
const n = t.indexOf("}", e + 2);
|
|
36
36
|
if (n !== -1) {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
const [, p] =
|
|
40
|
-
|
|
37
|
+
const h = t.slice(e + 2, n);
|
|
38
|
+
if (h.includes(",")) {
|
|
39
|
+
const [, p] = h.split(",").map((c) => parseInt(c.trim()));
|
|
40
|
+
u = p || parseInt(h.split(",")[0]);
|
|
41
41
|
} else
|
|
42
|
-
|
|
42
|
+
u = parseInt(h);
|
|
43
43
|
e = n;
|
|
44
44
|
}
|
|
45
45
|
} else {
|
|
46
46
|
let n = e + 1;
|
|
47
|
-
for (; t[n] ===
|
|
48
|
-
|
|
47
|
+
for (; t[n] === s; )
|
|
48
|
+
u++, n++;
|
|
49
49
|
e = n - 1;
|
|
50
50
|
}
|
|
51
|
-
for (let n = 0; n <
|
|
52
|
-
|
|
51
|
+
for (let n = 0; n < u; n++)
|
|
52
|
+
o.push(et[s]), l += lt(s, a++);
|
|
53
53
|
} else
|
|
54
|
-
|
|
54
|
+
o.push(s), l += s;
|
|
55
55
|
e++;
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
|
-
mask:
|
|
58
|
+
mask: o,
|
|
59
59
|
placeholder: l,
|
|
60
|
-
elementPredicate:
|
|
60
|
+
elementPredicate: Ye
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
function Ce(t) {
|
|
64
64
|
return t == null || Array.isArray(t) && !t.length || typeof t == "object" && !Object.keys(t).length || !t;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return typeof t.condition == "function" ? t.condition(
|
|
66
|
+
function ye(t, o, l) {
|
|
67
|
+
return typeof t.condition == "function" ? t.condition(o, l) : !0;
|
|
68
68
|
}
|
|
69
69
|
function Se(t) {
|
|
70
70
|
if (typeof t != "object" || t === null)
|
|
71
71
|
return t;
|
|
72
72
|
if (Array.isArray(t))
|
|
73
73
|
return t.map((l) => Se(l));
|
|
74
|
-
const
|
|
74
|
+
const o = {};
|
|
75
75
|
return Object.entries(t).forEach(([l, e]) => {
|
|
76
|
-
typeof e == "function" ?
|
|
77
|
-
}),
|
|
76
|
+
typeof e == "function" ? o[l] = e.bind(o) : o[l] = Se(e);
|
|
77
|
+
}), o;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Oe(t, o) {
|
|
80
|
+
return o.findIndex((l) => l.value === t.value || l.label === t.label || l.value === t.label || l.label === t.value);
|
|
81
81
|
}
|
|
82
|
-
function le(t,
|
|
83
|
-
const l =
|
|
84
|
-
l >= 0 ?
|
|
82
|
+
function le(t, o) {
|
|
83
|
+
const l = Oe(t, o);
|
|
84
|
+
l >= 0 ? o[l].isChecked = !0 : o.push({ ...t, isChecked: !0 });
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
const l =
|
|
88
|
-
l >= 0 && (
|
|
86
|
+
function nt(t, o) {
|
|
87
|
+
const l = Oe(t, o);
|
|
88
|
+
l >= 0 && (o[l].isChecked = !1);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
t.forEach((
|
|
92
|
-
|
|
90
|
+
function ot(t) {
|
|
91
|
+
t.forEach((o) => {
|
|
92
|
+
o.isChecked = !1;
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
97
|
-
|
|
95
|
+
function $e(t) {
|
|
96
|
+
return !!t.description;
|
|
97
|
+
}
|
|
98
|
+
function st(t, o) {
|
|
99
|
+
return o ? t.filter(
|
|
100
|
+
(l) => JSON.stringify(l).toLowerCase().includes(o.toLowerCase())
|
|
98
101
|
) : t;
|
|
99
102
|
}
|
|
100
|
-
function
|
|
101
|
-
const
|
|
102
|
-
return
|
|
103
|
+
function ut(t) {
|
|
104
|
+
const o = t.label || "", l = t.required ? " *" : "";
|
|
105
|
+
return o + l;
|
|
103
106
|
}
|
|
104
|
-
function de(t,
|
|
105
|
-
if (t ===
|
|
106
|
-
if (t == null ||
|
|
107
|
-
if (typeof t != "object") return t ===
|
|
108
|
-
if (Array.isArray(t) && Array.isArray(
|
|
109
|
-
return t.length !==
|
|
110
|
-
if (Array.isArray(t) !== Array.isArray(
|
|
111
|
-
const l = Object.keys(t), e = Object.keys(
|
|
112
|
-
return l.length !== e.length ? !1 : l.every(
|
|
113
|
-
(a) => Object.prototype.hasOwnProperty.call(u, a) && de(t[a], u[a])
|
|
114
|
-
);
|
|
107
|
+
function de(t, o) {
|
|
108
|
+
if (t === o) return !0;
|
|
109
|
+
if (t == null || o == null || typeof t != typeof o) return !1;
|
|
110
|
+
if (typeof t != "object") return t === o;
|
|
111
|
+
if (Array.isArray(t) && Array.isArray(o))
|
|
112
|
+
return t.length !== o.length ? !1 : t.every((a, s) => de(a, o[s]));
|
|
113
|
+
if (Array.isArray(t) !== Array.isArray(o)) return !1;
|
|
114
|
+
const l = Object.keys(t), e = Object.keys(o);
|
|
115
|
+
return l.length !== e.length ? !1 : l.every((a) => Object.hasOwn(o, a) && de(t[a], o[a]));
|
|
115
116
|
}
|
|
116
117
|
function K(t) {
|
|
117
118
|
return t.type !== "FormSection";
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
function ze() {
|
|
123
|
-
const t = I([]);
|
|
124
|
-
async function u() {
|
|
120
|
+
function Be() {
|
|
121
|
+
const t = R([]);
|
|
122
|
+
async function o() {
|
|
125
123
|
console.debug("Validating form inputs");
|
|
126
|
-
const
|
|
127
|
-
for (const
|
|
128
|
-
if (typeof (
|
|
124
|
+
const s = [];
|
|
125
|
+
for (const u of t.value)
|
|
126
|
+
if (typeof (u == null ? void 0 : u.onValueUpdate) == "function" && await u.onValueUpdate(), typeof (u == null ? void 0 : u.getErrors) == "function")
|
|
129
127
|
try {
|
|
130
|
-
const n =
|
|
131
|
-
Array.isArray(n) ?
|
|
128
|
+
const n = u.getErrors();
|
|
129
|
+
Array.isArray(n) ? s.push(...n) : console.warn("getErrors() returned non-array value:", n);
|
|
132
130
|
} catch (n) {
|
|
133
|
-
console.error("Error calling getErrors on component:", n,
|
|
131
|
+
console.error("Error calling getErrors on component:", n, u);
|
|
134
132
|
}
|
|
135
133
|
else
|
|
136
|
-
console.warn("Component does not have getErrors function:",
|
|
137
|
-
return
|
|
134
|
+
console.warn("Component does not have getErrors function:", u);
|
|
135
|
+
return s.every(Ce);
|
|
138
136
|
}
|
|
139
137
|
function l() {
|
|
140
|
-
t.value.forEach((
|
|
141
|
-
typeof (
|
|
138
|
+
t.value.forEach((s) => {
|
|
139
|
+
typeof (s == null ? void 0 : s.onReset) == "function" && s.onReset();
|
|
142
140
|
});
|
|
143
141
|
}
|
|
144
142
|
function e() {
|
|
145
|
-
const
|
|
146
|
-
for (const
|
|
147
|
-
if (typeof (
|
|
143
|
+
const s = [];
|
|
144
|
+
for (const u of t.value)
|
|
145
|
+
if (typeof (u == null ? void 0 : u.getErrors) == "function")
|
|
148
146
|
try {
|
|
149
|
-
const n =
|
|
150
|
-
Array.isArray(n) ?
|
|
147
|
+
const n = u.getErrors();
|
|
148
|
+
Array.isArray(n) ? s.push(...n) : s.push(String(n));
|
|
151
149
|
} catch (n) {
|
|
152
|
-
console.error("Error calling getErrors on component:", n,
|
|
150
|
+
console.error("Error calling getErrors on component:", n, u);
|
|
153
151
|
}
|
|
154
|
-
return
|
|
152
|
+
return s;
|
|
155
153
|
}
|
|
156
154
|
async function a() {
|
|
157
|
-
for (const
|
|
158
|
-
typeof (
|
|
155
|
+
for (const s of t.value)
|
|
156
|
+
typeof (s == null ? void 0 : s.onValueUpdate) == "function" && await s.onValueUpdate();
|
|
159
157
|
}
|
|
160
158
|
return {
|
|
161
159
|
dynamicRefs: t,
|
|
162
|
-
isFormValid:
|
|
160
|
+
isFormValid: o,
|
|
163
161
|
resetForm: l,
|
|
164
162
|
getFormErrors: e,
|
|
165
163
|
updateFormValues: a
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
() => Object.entries(t.value).reduce((p, [
|
|
171
|
-
), l =
|
|
172
|
-
const
|
|
173
|
-
if (K(
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
return
|
|
166
|
+
function rt(t) {
|
|
167
|
+
const o = O(
|
|
168
|
+
() => Object.entries(t.value).reduce((p, [c, m]) => (K(m) && m.value !== void 0 && (p[c] = m.value), p), {})
|
|
169
|
+
), l = R({}), e = (p, c, m) => {
|
|
170
|
+
const f = t.value[p];
|
|
171
|
+
if (K(f) && f.children) {
|
|
172
|
+
const d = f.children[c];
|
|
173
|
+
if (d && K(d) && typeof d.computedValue == "function")
|
|
174
|
+
return d.computedValue(m, t.value);
|
|
177
175
|
}
|
|
178
|
-
return
|
|
179
|
-
}, a = (p,
|
|
180
|
-
l.value[p][
|
|
181
|
-
var
|
|
182
|
-
!de(
|
|
176
|
+
return m;
|
|
177
|
+
}, a = (p, c, m, f) => {
|
|
178
|
+
l.value[p][f] || (l.value[p][f] = {}), Object.entries(c.other ?? {}).forEach(([d, V]) => {
|
|
179
|
+
var C;
|
|
180
|
+
!de(V, (C = m.other) == null ? void 0 : C[d]) && (l.value[p][f][d] = e(p, d, V));
|
|
183
181
|
});
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
a(p,
|
|
182
|
+
}, s = (p, c, m) => {
|
|
183
|
+
c.forEach((f, d) => {
|
|
184
|
+
const V = m[d] ?? { other: {} };
|
|
185
|
+
a(p, f, V, d);
|
|
188
186
|
});
|
|
189
|
-
},
|
|
190
|
-
(
|
|
187
|
+
}, u = (p, { other: c }) => Object.entries(c ?? {}).reduce(
|
|
188
|
+
(m, [f, d]) => (m[f] = e(p, f, d), m),
|
|
191
189
|
{}
|
|
192
|
-
), n = (p,
|
|
190
|
+
), n = (p, c, m) => {
|
|
193
191
|
l.value[p] || (l.value[p] = []);
|
|
194
|
-
const
|
|
195
|
-
Array.isArray(
|
|
196
|
-
},
|
|
197
|
-
if (!
|
|
192
|
+
const f = c;
|
|
193
|
+
Array.isArray(m[p]) ? s(p, f, m[p]) : l.value[p] = f.map((d) => u(p, d));
|
|
194
|
+
}, h = (p, c, m) => {
|
|
195
|
+
if (!c) {
|
|
198
196
|
delete l.value[p];
|
|
199
197
|
return;
|
|
200
198
|
}
|
|
201
|
-
const
|
|
202
|
-
K(
|
|
199
|
+
const f = t.value[p];
|
|
200
|
+
K(f) && (typeof f.onChange == "function" && f.onChange(c, t.value), f.children !== void 0 ? n(p, c, m) : typeof f.computedValue == "function" && (l.value[p] = f.computedValue(c, t.value)));
|
|
203
201
|
};
|
|
204
|
-
return
|
|
205
|
-
|
|
206
|
-
(p,
|
|
207
|
-
Object.keys(p).forEach((
|
|
208
|
-
de(p[
|
|
209
|
-
}), Object.keys(
|
|
210
|
-
!(
|
|
202
|
+
return q(
|
|
203
|
+
o,
|
|
204
|
+
(p, c = {}) => {
|
|
205
|
+
Object.keys(p).forEach((m) => {
|
|
206
|
+
de(p[m], c[m]) || h(m, p[m], c);
|
|
207
|
+
}), Object.keys(c).forEach((m) => {
|
|
208
|
+
!(m in p) && m in l.value && delete l.value[m];
|
|
211
209
|
});
|
|
212
210
|
},
|
|
213
211
|
{
|
|
@@ -215,81 +213,81 @@ function ut(t) {
|
|
|
215
213
|
deep: !0
|
|
216
214
|
}
|
|
217
215
|
), {
|
|
218
|
-
formData:
|
|
216
|
+
formData: o,
|
|
219
217
|
computedData: l
|
|
220
218
|
};
|
|
221
219
|
}
|
|
222
|
-
function
|
|
223
|
-
const
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
return
|
|
227
|
-
K(k) && (
|
|
228
|
-
}),
|
|
220
|
+
function it(t) {
|
|
221
|
+
const o = R(0), l = R({}), e = R({}), a = R({});
|
|
222
|
+
function s(_) {
|
|
223
|
+
const I = {};
|
|
224
|
+
return _.component || !_.schema || Object.entries(_.schema).forEach(([g, k]) => {
|
|
225
|
+
K(k) && (I[g] = k.value);
|
|
226
|
+
}), I;
|
|
229
227
|
}
|
|
230
|
-
t.steps.forEach((
|
|
231
|
-
l.value[
|
|
228
|
+
t.steps.forEach((_) => {
|
|
229
|
+
l.value[_.id] = s(_), e.value[_.id] = {}, a.value[_.id] = [];
|
|
232
230
|
});
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
(k) => !
|
|
231
|
+
const u = R(t.steps.map((_) => _.id)), n = O(() => t.steps.filter((I) => I.condition ? I.condition(l.value, e.value) : !0));
|
|
232
|
+
q(n, (_) => {
|
|
233
|
+
const I = _.map((k) => k.id);
|
|
234
|
+
u.value.filter(
|
|
235
|
+
(k) => !I.includes(k)
|
|
238
236
|
).forEach((k) => {
|
|
239
|
-
|
|
240
|
-
}),
|
|
237
|
+
x(k);
|
|
238
|
+
}), u.value = I;
|
|
241
239
|
});
|
|
242
|
-
const
|
|
243
|
-
function
|
|
244
|
-
l.value[
|
|
240
|
+
const h = O(() => n.value.length > 0 ? o.value >= n.value.length ? n.value[n.value.length - 1] : n.value[o.value] : t.steps[o.value]), p = O(() => o.value === 0), c = O(() => o.value === n.value.length - 1), m = O(() => !c.value), f = O(() => !p.value), d = O(() => n.value.length), V = O(() => d.value === 0 ? 0 : Math.round((o.value + 1) / d.value * 100));
|
|
241
|
+
function y(_, I) {
|
|
242
|
+
l.value[_] = { ...l.value[_], ...I };
|
|
245
243
|
}
|
|
246
|
-
function
|
|
247
|
-
e.value[
|
|
244
|
+
function C(_, I) {
|
|
245
|
+
e.value[_] = { ...e.value[_], ...I };
|
|
248
246
|
}
|
|
249
|
-
function
|
|
250
|
-
const
|
|
251
|
-
|
|
247
|
+
function x(_) {
|
|
248
|
+
const I = t.steps.find((g) => g.id === _);
|
|
249
|
+
I && (l.value[_] = s(I), e.value[_] = {});
|
|
252
250
|
}
|
|
253
|
-
async function
|
|
254
|
-
const
|
|
255
|
-
if (!
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
258
|
-
const
|
|
259
|
-
l.value[
|
|
260
|
-
e.value[
|
|
251
|
+
async function $() {
|
|
252
|
+
const _ = h.value;
|
|
253
|
+
if (!_) return !0;
|
|
254
|
+
const I = [];
|
|
255
|
+
if (_.validation) {
|
|
256
|
+
const g = await _.validation(
|
|
257
|
+
l.value[_.id],
|
|
258
|
+
e.value[_.id]
|
|
261
259
|
);
|
|
262
|
-
|
|
260
|
+
g && I.push(...g);
|
|
263
261
|
}
|
|
264
|
-
return a.value[
|
|
262
|
+
return a.value[_.id] = I, I.length === 0;
|
|
265
263
|
}
|
|
266
|
-
async function
|
|
267
|
-
return
|
|
264
|
+
async function L(_) {
|
|
265
|
+
return _ < 0 || _ >= n.value.length || _ > o.value && !await $() ? !1 : (o.value = _, !0);
|
|
268
266
|
}
|
|
269
|
-
async function
|
|
270
|
-
return
|
|
267
|
+
async function X() {
|
|
268
|
+
return m.value ? L(o.value + 1) : !1;
|
|
271
269
|
}
|
|
272
270
|
async function Y() {
|
|
273
|
-
return
|
|
271
|
+
return f.value ? L(o.value - 1) : !1;
|
|
274
272
|
}
|
|
275
273
|
function ee() {
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
o.value = 0, a.value = {}, t.steps.forEach((_) => {
|
|
275
|
+
x(_.id), a.value[_.id] = [];
|
|
278
276
|
});
|
|
279
277
|
}
|
|
280
|
-
async function
|
|
281
|
-
let
|
|
282
|
-
for (const
|
|
283
|
-
if (
|
|
284
|
-
const
|
|
285
|
-
l.value[
|
|
286
|
-
e.value[
|
|
278
|
+
async function te() {
|
|
279
|
+
let _ = !0;
|
|
280
|
+
for (const I of t.steps)
|
|
281
|
+
if (I.validation) {
|
|
282
|
+
const g = await I.validation(
|
|
283
|
+
l.value[I.id],
|
|
284
|
+
e.value[I.id]
|
|
287
285
|
);
|
|
288
|
-
a.value[
|
|
286
|
+
a.value[I.id] = g || [], g && g.length > 0 && (_ = !1);
|
|
289
287
|
}
|
|
290
|
-
return
|
|
288
|
+
return _;
|
|
291
289
|
}
|
|
292
|
-
function
|
|
290
|
+
function G() {
|
|
293
291
|
return {
|
|
294
292
|
formData: { ...l.value },
|
|
295
293
|
computedData: { ...e.value }
|
|
@@ -297,39 +295,39 @@ function st(t) {
|
|
|
297
295
|
}
|
|
298
296
|
return {
|
|
299
297
|
// State
|
|
300
|
-
currentStepIndex:
|
|
301
|
-
currentStep:
|
|
298
|
+
currentStepIndex: o,
|
|
299
|
+
currentStep: h,
|
|
302
300
|
stepData: l,
|
|
303
301
|
stepComputedData: e,
|
|
304
302
|
stepValidationErrors: a,
|
|
305
303
|
// Computed
|
|
306
304
|
visibleSteps: n,
|
|
307
305
|
isFirstStep: p,
|
|
308
|
-
isLastStep:
|
|
309
|
-
canGoNext:
|
|
310
|
-
canGoPrevious:
|
|
311
|
-
totalSteps:
|
|
312
|
-
progressPercentage:
|
|
306
|
+
isLastStep: c,
|
|
307
|
+
canGoNext: m,
|
|
308
|
+
canGoPrevious: f,
|
|
309
|
+
totalSteps: d,
|
|
310
|
+
progressPercentage: V,
|
|
313
311
|
// Methods
|
|
314
|
-
updateStepData:
|
|
315
|
-
updateStepComputedData:
|
|
316
|
-
clearStepData:
|
|
317
|
-
validateCurrentStep:
|
|
318
|
-
goToStep:
|
|
319
|
-
nextStep:
|
|
312
|
+
updateStepData: y,
|
|
313
|
+
updateStepComputedData: C,
|
|
314
|
+
clearStepData: x,
|
|
315
|
+
validateCurrentStep: $,
|
|
316
|
+
goToStep: L,
|
|
317
|
+
nextStep: X,
|
|
320
318
|
previousStep: Y,
|
|
321
319
|
resetForm: ee,
|
|
322
|
-
validateAllSteps:
|
|
323
|
-
getMultiStepFormData:
|
|
320
|
+
validateAllSteps: te,
|
|
321
|
+
getMultiStepFormData: G
|
|
324
322
|
};
|
|
325
323
|
}
|
|
326
|
-
const
|
|
324
|
+
const ct = { class: "step-indicator__container" }, dt = ["onClick"], vt = { class: "step-indicator__step-content" }, pt = { class: "step-indicator__step-marker" }, ft = { class: "step-indicator__step-info" }, mt = { class: "step-indicator__step-title" }, ht = {
|
|
327
325
|
key: 0,
|
|
328
326
|
class: "step-indicator__step-subtitle"
|
|
329
|
-
},
|
|
327
|
+
}, yt = {
|
|
330
328
|
key: 0,
|
|
331
329
|
class: "step-indicator__progress"
|
|
332
|
-
},
|
|
330
|
+
}, gt = { class: "step-indicator__progress-bar" }, bt = { class: "step-indicator__progress-text" }, _t = /* @__PURE__ */ D({
|
|
333
331
|
__name: "StepIndicator",
|
|
334
332
|
props: {
|
|
335
333
|
steps: {},
|
|
@@ -339,62 +337,116 @@ const rt = { class: "step-indicator__container" }, it = ["onClick"], ct = { clas
|
|
|
339
337
|
allowNavigation: { type: Boolean, default: !1 }
|
|
340
338
|
},
|
|
341
339
|
emits: ["step-click"],
|
|
342
|
-
setup(t, { emit:
|
|
343
|
-
const l = t, e =
|
|
344
|
-
function
|
|
345
|
-
l.allowNavigation && e("step-click",
|
|
340
|
+
setup(t, { emit: o }) {
|
|
341
|
+
const l = t, e = o, a = O(() => l.steps.length === 0 ? 0 : (l.activeStepIndex + 1) / l.steps.length * 100);
|
|
342
|
+
function s(u) {
|
|
343
|
+
l.allowNavigation && e("step-click", u);
|
|
346
344
|
}
|
|
347
|
-
return (
|
|
348
|
-
class:
|
|
345
|
+
return (u, n) => (v(), B("div", {
|
|
346
|
+
class: j(["step-indicator", [`step-indicator--${u.position}`, { "step-indicator--clickable": u.allowNavigation }]])
|
|
349
347
|
}, [
|
|
350
|
-
|
|
351
|
-
(
|
|
352
|
-
key:
|
|
353
|
-
class:
|
|
354
|
-
"step-indicator__step--active": p ===
|
|
355
|
-
"step-indicator__step--completed": p <
|
|
356
|
-
"step-indicator__step--clickable":
|
|
348
|
+
U("div", ct, [
|
|
349
|
+
(v(!0), B(N, null, Q(u.steps, (h, p) => (v(), B("div", {
|
|
350
|
+
key: h.id,
|
|
351
|
+
class: j(["step-indicator__step", {
|
|
352
|
+
"step-indicator__step--active": p === u.activeStepIndex,
|
|
353
|
+
"step-indicator__step--completed": p < u.activeStepIndex,
|
|
354
|
+
"step-indicator__step--clickable": u.allowNavigation
|
|
357
355
|
}]),
|
|
358
|
-
onClick: (
|
|
356
|
+
onClick: (c) => s(p)
|
|
359
357
|
}, [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
U("div", vt, [
|
|
359
|
+
U("div", pt, [
|
|
360
|
+
U("span", null, T(p + 1), 1)
|
|
363
361
|
]),
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
362
|
+
U("div", ft, [
|
|
363
|
+
U("div", mt, T(h.title), 1),
|
|
364
|
+
h.subtitle ? (v(), B("div", ht, T(h.subtitle), 1)) : z("", !0)
|
|
367
365
|
])
|
|
368
366
|
]),
|
|
369
|
-
p <
|
|
367
|
+
p < u.steps.length - 1 ? (v(), B("div", {
|
|
370
368
|
key: 0,
|
|
371
|
-
class:
|
|
372
|
-
}, null, 2)) :
|
|
373
|
-
], 10,
|
|
369
|
+
class: j(["step-indicator__connector", { "step-indicator__connector--completed": p < u.activeStepIndex }])
|
|
370
|
+
}, null, 2)) : z("", !0)
|
|
371
|
+
], 10, dt))), 128))
|
|
374
372
|
]),
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
373
|
+
u.showProgress && (u.position === "top" || u.position === "bottom") ? (v(), B("div", yt, [
|
|
374
|
+
U("div", gt, [
|
|
375
|
+
U("div", {
|
|
378
376
|
class: "step-indicator__progress-fill",
|
|
379
|
-
style:
|
|
377
|
+
style: me({ width: `${a.value}%` })
|
|
380
378
|
}, null, 4)
|
|
381
379
|
]),
|
|
382
|
-
|
|
383
|
-
])) :
|
|
380
|
+
U("div", bt, " Step " + T(u.activeStepIndex + 1) + " of " + T(u.steps.length), 1)
|
|
381
|
+
])) : z("", !0)
|
|
384
382
|
], 2));
|
|
385
383
|
}
|
|
386
|
-
}),
|
|
384
|
+
}), re = (t, o) => {
|
|
387
385
|
const l = t.__vccOpts || t;
|
|
388
|
-
for (const [e, a] of
|
|
386
|
+
for (const [e, a] of o)
|
|
389
387
|
l[e] = a;
|
|
390
388
|
return l;
|
|
391
|
-
},
|
|
389
|
+
}, fe = /* @__PURE__ */ re(_t, [["__scopeId", "data-v-aca1a6d0"]]), ae = /* @__PURE__ */ D({
|
|
390
|
+
__name: "ActionButton",
|
|
391
|
+
props: {
|
|
392
|
+
type: {
|
|
393
|
+
type: String,
|
|
394
|
+
default: "submit"
|
|
395
|
+
},
|
|
396
|
+
label: {
|
|
397
|
+
type: String,
|
|
398
|
+
required: !1
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
setup(t) {
|
|
402
|
+
const o = we("globalConfig"), l = t, e = O(() => {
|
|
403
|
+
var a, s;
|
|
404
|
+
return l.label ?? ((s = (a = o == null ? void 0 : o.buttons) == null ? void 0 : a[l.type]) == null ? void 0 : s.label) ?? l.type;
|
|
405
|
+
});
|
|
406
|
+
return (a, s) => {
|
|
407
|
+
var u, n, h, p, c, m, f, d, V, y, C, x;
|
|
408
|
+
return v(), b(i(ge), {
|
|
409
|
+
color: ((h = (n = (u = i(o)) == null ? void 0 : u.buttons) == null ? void 0 : n[t.type]) == null ? void 0 : h.color) ?? "primary",
|
|
410
|
+
fill: ((m = (c = (p = i(o)) == null ? void 0 : p.buttons) == null ? void 0 : c[t.type]) == null ? void 0 : m.fill) ?? "solid",
|
|
411
|
+
expand: (V = (d = (f = i(o)) == null ? void 0 : f.buttons) == null ? void 0 : d[t.type]) == null ? void 0 : V.expand,
|
|
412
|
+
size: ((x = (C = (y = i(o)) == null ? void 0 : y.buttons) == null ? void 0 : C[t.type]) == null ? void 0 : x.size) ?? "default"
|
|
413
|
+
}, {
|
|
414
|
+
default: w(() => [
|
|
415
|
+
M(T(e.value), 1)
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["color", "fill", "expand", "size"]);
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
}), Ie = /* @__PURE__ */ D({
|
|
422
|
+
__name: "CustomButton",
|
|
423
|
+
props: {
|
|
424
|
+
button: {
|
|
425
|
+
type: Object,
|
|
426
|
+
required: !0
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
setup(t) {
|
|
430
|
+
return (o, l) => (v(), b(i(ge), {
|
|
431
|
+
onClick: t.button.action,
|
|
432
|
+
color: t.button.color ?? "primary",
|
|
433
|
+
fill: t.button.fill ?? "solid",
|
|
434
|
+
size: t.button.size ?? "default",
|
|
435
|
+
expand: t.button.expand
|
|
436
|
+
}, {
|
|
437
|
+
default: w(() => [
|
|
438
|
+
M(T(t.button.label), 1)
|
|
439
|
+
]),
|
|
440
|
+
_: 1
|
|
441
|
+
}, 8, ["onClick", "color", "fill", "size", "expand"]));
|
|
442
|
+
}
|
|
443
|
+
}), Vt = { class: "v-form-container" }, kt = {
|
|
392
444
|
key: 0,
|
|
393
445
|
class: "multi-step-form"
|
|
394
|
-
},
|
|
446
|
+
}, Ct = { class: "multi-step-form-content" }, St = {
|
|
395
447
|
key: 3,
|
|
396
448
|
class: "step-progress-bottom"
|
|
397
|
-
},
|
|
449
|
+
}, wt = { class: "step-progress-bar" }, xt = { class: "step-progress-text" }, Et = /* @__PURE__ */ D({
|
|
398
450
|
__name: "vForm",
|
|
399
451
|
props: {
|
|
400
452
|
schema: {},
|
|
@@ -403,89 +455,91 @@ const rt = { class: "step-indicator__container" }, it = ["onClick"], ct = { clas
|
|
|
403
455
|
showClearButton: { type: Boolean, default: !0 },
|
|
404
456
|
showCancelButton: { type: Boolean, default: !0 },
|
|
405
457
|
buttonPlacement: { default: "start" },
|
|
406
|
-
submitButtonText: {
|
|
407
|
-
clearButtonText: {
|
|
408
|
-
cancelButtonText: {
|
|
458
|
+
submitButtonText: {},
|
|
459
|
+
clearButtonText: {},
|
|
460
|
+
cancelButtonText: {},
|
|
461
|
+
nextButtonText: {},
|
|
462
|
+
previousButtonText: {},
|
|
409
463
|
hideButtons: { type: Boolean, default: !1 },
|
|
410
464
|
customButtons: {}
|
|
411
465
|
},
|
|
412
466
|
emits: ["submit", "multi-step-submit", "step-change", "clear", "cancel"],
|
|
413
|
-
setup(t, { expose:
|
|
414
|
-
const e = t, a = l,
|
|
415
|
-
|
|
416
|
-
() =>
|
|
417
|
-
(
|
|
418
|
-
|
|
467
|
+
setup(t, { expose: o, emit: l }) {
|
|
468
|
+
const e = t, a = l, s = O(() => !!e.multiStepConfig), u = R(e.schema || {}), n = e.multiStepConfig ? it(e.multiStepConfig) : null, { dynamicRefs: h, isFormValid: p, resetForm: c } = Be(), { formData: m, computedData: f } = rt(u), d = R(null), V = O(() => (n == null ? void 0 : n.currentStepIndex.value) ?? 0), y = O(() => n == null ? void 0 : n.currentStep.value), C = O(() => (n == null ? void 0 : n.visibleSteps.value) ?? []), x = O(() => (n == null ? void 0 : n.isLastStep.value) ?? !0), $ = O(() => (n == null ? void 0 : n.canGoNext.value) ?? !1), L = O(() => (n == null ? void 0 : n.canGoPrevious.value) ?? !1), X = O(() => !s.value || !n ? 0 : n.progressPercentage.value);
|
|
469
|
+
q(
|
|
470
|
+
() => y.value,
|
|
471
|
+
(r) => {
|
|
472
|
+
r && s.value && (u.value = r.schema || {});
|
|
419
473
|
},
|
|
420
474
|
{ immediate: !0 }
|
|
421
|
-
),
|
|
422
|
-
[
|
|
423
|
-
([
|
|
424
|
-
|
|
475
|
+
), q(
|
|
476
|
+
[m, f],
|
|
477
|
+
([r, E]) => {
|
|
478
|
+
s.value && n && y.value && (n.updateStepData(y.value.id, r), n.updateStepComputedData(y.value.id, E));
|
|
425
479
|
},
|
|
426
480
|
{ deep: !0 }
|
|
427
|
-
),
|
|
481
|
+
), q(
|
|
428
482
|
() => e.schema,
|
|
429
|
-
(
|
|
430
|
-
if (!
|
|
431
|
-
|
|
432
|
-
for (const [
|
|
433
|
-
K(
|
|
483
|
+
(r) => {
|
|
484
|
+
if (!s.value && r) {
|
|
485
|
+
u.value = r;
|
|
486
|
+
for (const [E, A] of Object.entries(r))
|
|
487
|
+
K(A) && "value" in A && A.value !== void 0 && (u.value[E].value = A.value);
|
|
434
488
|
}
|
|
435
489
|
},
|
|
436
490
|
{ deep: !0, immediate: !0 }
|
|
437
491
|
);
|
|
438
492
|
async function Y() {
|
|
439
|
-
var
|
|
440
|
-
if (
|
|
441
|
-
if ((
|
|
442
|
-
const
|
|
443
|
-
a("multi-step-submit",
|
|
493
|
+
var r;
|
|
494
|
+
if (s.value && n) {
|
|
495
|
+
if ((r = y.value) != null && r.component && d.value && typeof d.value.validate == "function" && !await d.value.validate() || !await n.validateAllSteps()) return;
|
|
496
|
+
const A = n.getMultiStepFormData();
|
|
497
|
+
a("multi-step-submit", A);
|
|
444
498
|
} else {
|
|
445
499
|
if (!await p()) return;
|
|
446
|
-
a("submit",
|
|
500
|
+
a("submit", m.value, f.value);
|
|
447
501
|
}
|
|
448
502
|
}
|
|
449
503
|
function ee() {
|
|
450
|
-
|
|
504
|
+
s.value && n ? n.resetForm() : c(), a("clear");
|
|
451
505
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
506
|
+
function te() {
|
|
507
|
+
s.value && n && y.value && n.clearStepData(y.value.id);
|
|
454
508
|
}
|
|
455
|
-
function
|
|
456
|
-
|
|
509
|
+
function G() {
|
|
510
|
+
s.value && n ? n.resetForm() : c(), a("cancel");
|
|
457
511
|
}
|
|
458
|
-
async function
|
|
459
|
-
var
|
|
460
|
-
if (n) {
|
|
461
|
-
let
|
|
462
|
-
if ((
|
|
512
|
+
async function _() {
|
|
513
|
+
var r;
|
|
514
|
+
if (s.value && n) {
|
|
515
|
+
let E = !0;
|
|
516
|
+
if ((r = y.value) != null && r.component && d.value ? typeof d.value.validate == "function" && (E = await d.value.validate()) : E = await p(), !E)
|
|
463
517
|
return;
|
|
464
|
-
await n.nextStep() &&
|
|
518
|
+
await n.nextStep() && y.value && a("step-change", V.value, y.value.id);
|
|
465
519
|
}
|
|
466
520
|
}
|
|
467
|
-
async function
|
|
468
|
-
n && await n.previousStep() &&
|
|
521
|
+
async function I() {
|
|
522
|
+
n && await n.previousStep() && y.value && a("step-change", V.value, y.value.id);
|
|
469
523
|
}
|
|
470
|
-
async function
|
|
471
|
-
var
|
|
524
|
+
async function g(r) {
|
|
525
|
+
var E;
|
|
472
526
|
if (n) {
|
|
473
|
-
if (
|
|
474
|
-
let
|
|
475
|
-
if ((
|
|
527
|
+
if (r > V.value) {
|
|
528
|
+
let F = !0;
|
|
529
|
+
if ((E = y.value) != null && E.component && d.value ? typeof d.value.validate == "function" && (F = await d.value.validate()) : F = await p(), !F)
|
|
476
530
|
return;
|
|
477
531
|
}
|
|
478
|
-
await n.goToStep(
|
|
532
|
+
await n.goToStep(r) && y.value && a("step-change", r, y.value.id);
|
|
479
533
|
}
|
|
480
534
|
}
|
|
481
|
-
|
|
482
|
-
|
|
535
|
+
q(
|
|
536
|
+
m,
|
|
483
537
|
async () => {
|
|
484
|
-
var
|
|
485
|
-
for (const [
|
|
486
|
-
if (
|
|
487
|
-
const
|
|
488
|
-
|
|
538
|
+
var r;
|
|
539
|
+
for (const [E, A] of Object.entries(u.value))
|
|
540
|
+
if (!ye(A, m.value, f.value)) {
|
|
541
|
+
const F = s.value && y.value && y.value.schema ? y.value.schema[E] : (r = e.schema) == null ? void 0 : r[E];
|
|
542
|
+
F && K(F) && "value" in F ? A.value = F.value : A.value = void 0;
|
|
489
543
|
}
|
|
490
544
|
},
|
|
491
545
|
{
|
|
@@ -493,86 +547,83 @@ const rt = { class: "step-indicator__container" }, it = ["onClick"], ct = { clas
|
|
|
493
547
|
immediate: !0
|
|
494
548
|
}
|
|
495
549
|
);
|
|
496
|
-
function k(
|
|
497
|
-
|
|
550
|
+
function k(r) {
|
|
551
|
+
s.value && n && y.value && n.updateStepData(y.value.id, r);
|
|
498
552
|
}
|
|
499
|
-
|
|
500
|
-
return ot(c) ? !0 : ke(c, z, U);
|
|
501
|
-
}
|
|
502
|
-
return u({
|
|
553
|
+
return o({
|
|
503
554
|
resetForm: ee,
|
|
504
555
|
isFormValid: p,
|
|
505
|
-
resolveData: () =>
|
|
506
|
-
formData:
|
|
507
|
-
computedData:
|
|
556
|
+
resolveData: () => s.value && n ? n.getMultiStepFormData() : {
|
|
557
|
+
formData: m.value,
|
|
558
|
+
computedData: f.value
|
|
508
559
|
},
|
|
509
560
|
// Multi-step specific methods
|
|
510
|
-
nextStep:
|
|
511
|
-
previousStep:
|
|
512
|
-
goToStep:
|
|
513
|
-
getCurrentStep: () =>
|
|
514
|
-
getCurrentStepIndex: () =>
|
|
515
|
-
}), (
|
|
516
|
-
var
|
|
517
|
-
return
|
|
518
|
-
|
|
519
|
-
|
|
561
|
+
nextStep: _,
|
|
562
|
+
previousStep: I,
|
|
563
|
+
goToStep: g,
|
|
564
|
+
getCurrentStep: () => y.value,
|
|
565
|
+
getCurrentStepIndex: () => V.value
|
|
566
|
+
}), (r, E) => {
|
|
567
|
+
var A, F;
|
|
568
|
+
return v(), B("div", Vt, [
|
|
569
|
+
s.value ? (v(), B("div", kt, [
|
|
570
|
+
r.multiStepConfig && r.multiStepConfig.stepPosition === "top" ? (v(), b(fe, {
|
|
520
571
|
key: 0,
|
|
521
|
-
steps:
|
|
522
|
-
"active-step-index":
|
|
523
|
-
position:
|
|
524
|
-
"show-progress":
|
|
525
|
-
"allow-navigation":
|
|
526
|
-
onStepClick:
|
|
527
|
-
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) :
|
|
528
|
-
|
|
529
|
-
class:
|
|
572
|
+
steps: C.value,
|
|
573
|
+
"active-step-index": V.value,
|
|
574
|
+
position: r.multiStepConfig.stepPosition || "top",
|
|
575
|
+
"show-progress": r.multiStepConfig.showProgress,
|
|
576
|
+
"allow-navigation": r.multiStepConfig.allowStepNavigation,
|
|
577
|
+
onStepClick: g
|
|
578
|
+
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0),
|
|
579
|
+
U("div", {
|
|
580
|
+
class: j(["multi-step-content", `multi-step-content--${((A = r.multiStepConfig) == null ? void 0 : A.stepPosition) || "top"}`])
|
|
530
581
|
}, [
|
|
531
|
-
|
|
582
|
+
r.multiStepConfig && r.multiStepConfig.stepPosition === "left" ? (v(), b(fe, {
|
|
532
583
|
key: 0,
|
|
533
|
-
steps:
|
|
534
|
-
"active-step-index":
|
|
535
|
-
position:
|
|
536
|
-
"show-progress":
|
|
537
|
-
"allow-navigation":
|
|
538
|
-
onStepClick:
|
|
584
|
+
steps: C.value,
|
|
585
|
+
"active-step-index": V.value,
|
|
586
|
+
position: r.multiStepConfig.stepPosition ?? "top",
|
|
587
|
+
"show-progress": r.multiStepConfig.showProgress,
|
|
588
|
+
"allow-navigation": r.multiStepConfig.allowStepNavigation,
|
|
589
|
+
onStepClick: g,
|
|
539
590
|
class: "multi-step-sidebar"
|
|
540
|
-
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) :
|
|
541
|
-
|
|
542
|
-
(
|
|
591
|
+
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0),
|
|
592
|
+
U("div", Ct, [
|
|
593
|
+
(F = y.value) != null && F.component ? (v(), b(he(y.value.component), Fe({ key: 0 }, y.value.componentProps || {}, {
|
|
543
594
|
"onUpdate:data": k,
|
|
544
595
|
ref_key: "customComponentRef",
|
|
545
|
-
ref:
|
|
546
|
-
}), null, 16)) : (
|
|
547
|
-
default:
|
|
548
|
-
P(i(
|
|
549
|
-
default:
|
|
550
|
-
(
|
|
551
|
-
var
|
|
552
|
-
return
|
|
553
|
-
|
|
596
|
+
ref: d
|
|
597
|
+
}), null, 16)) : (v(), b(i(ze), { key: 1 }, {
|
|
598
|
+
default: w(() => [
|
|
599
|
+
P(i(ue), null, {
|
|
600
|
+
default: w(() => [
|
|
601
|
+
(v(!0), B(N, null, Q(Object.keys(u.value), (S) => {
|
|
602
|
+
var H, J, oe, ie, ce;
|
|
603
|
+
return v(), B(N, { key: S }, [
|
|
604
|
+
i(ye)(u.value[S], i(m), i(f)) ? (v(), b(i(ne), {
|
|
554
605
|
key: 0,
|
|
555
|
-
size: ((
|
|
556
|
-
"size-sm": (
|
|
557
|
-
"size-md": (
|
|
558
|
-
"size-lg": (ie =
|
|
559
|
-
"size-xl": (ce =
|
|
606
|
+
size: ((H = u.value[S].grid) == null ? void 0 : H.xs) ?? "12",
|
|
607
|
+
"size-sm": (J = u.value[S].grid) == null ? void 0 : J.sm,
|
|
608
|
+
"size-md": (oe = u.value[S].grid) == null ? void 0 : oe.md,
|
|
609
|
+
"size-lg": (ie = u.value[S].grid) == null ? void 0 : ie.lg,
|
|
610
|
+
"size-xl": (ce = u.value[S].grid) == null ? void 0 : ce.xl,
|
|
560
611
|
class: "ion-margin-vertical"
|
|
561
612
|
}, {
|
|
562
|
-
default:
|
|
563
|
-
(
|
|
564
|
-
modelValue:
|
|
565
|
-
"onUpdate:modelValue": (
|
|
566
|
-
schema:
|
|
567
|
-
"form-id":
|
|
613
|
+
default: w(() => [
|
|
614
|
+
(v(), b(he(u.value[S].type), {
|
|
615
|
+
modelValue: u.value[S],
|
|
616
|
+
"onUpdate:modelValue": (Ve) => u.value[S] = Ve,
|
|
617
|
+
schema: u.value,
|
|
618
|
+
"form-id": S,
|
|
568
619
|
ref_for: !0,
|
|
569
620
|
ref_key: "dynamicRefs",
|
|
570
|
-
ref:
|
|
571
|
-
"ref-key":
|
|
621
|
+
ref: h,
|
|
622
|
+
"ref-key": S
|
|
572
623
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "form-id", "ref-key"]))
|
|
573
624
|
]),
|
|
574
625
|
_: 2
|
|
575
|
-
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) :
|
|
626
|
+
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
|
|
576
627
|
], 64);
|
|
577
628
|
}), 128))
|
|
578
629
|
]),
|
|
@@ -581,195 +632,147 @@ const rt = { class: "step-indicator__container" }, it = ["onClick"], ct = { clas
|
|
|
581
632
|
]),
|
|
582
633
|
_: 1
|
|
583
634
|
})),
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}, {
|
|
588
|
-
default: V(() => [
|
|
589
|
-
P(i(ae), {
|
|
635
|
+
r.hideButtons ? z("", !0) : (v(), b(i(ue), { key: 2 }, {
|
|
636
|
+
default: w(() => [
|
|
637
|
+
P(i(ne), {
|
|
590
638
|
size: "12",
|
|
591
|
-
|
|
639
|
+
style: me([{ display: "flex" }, { justifyContent: r.buttonPlacement }])
|
|
592
640
|
}, {
|
|
593
|
-
default:
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
(d(!0), $(L, null, X(c.customButtons, (E) => (d(), _(i(H), {
|
|
629
|
-
key: E.label,
|
|
630
|
-
onClick: E.action,
|
|
631
|
-
color: E.color ?? "primary"
|
|
632
|
-
}, {
|
|
633
|
-
default: V(() => [
|
|
634
|
-
D(A(E.label), 1)
|
|
635
|
-
]),
|
|
636
|
-
_: 2
|
|
637
|
-
}, 1032, ["onClick", "color"]))), 128))
|
|
638
|
-
]),
|
|
639
|
-
B("div", St, [
|
|
640
|
-
F.value ? (d(), _(i(H), {
|
|
641
|
-
key: 0,
|
|
642
|
-
onClick: C
|
|
643
|
-
}, {
|
|
644
|
-
default: V(() => z[1] || (z[1] = [
|
|
645
|
-
D(" Next ")
|
|
646
|
-
])),
|
|
647
|
-
_: 1,
|
|
648
|
-
__: [1]
|
|
649
|
-
})) : x("", !0),
|
|
650
|
-
R.value ? (d(), _(i(H), {
|
|
651
|
-
key: 1,
|
|
652
|
-
onClick: Y
|
|
653
|
-
}, {
|
|
654
|
-
default: V(() => [
|
|
655
|
-
D(A(c.submitButtonText ?? "Submit"), 1)
|
|
656
|
-
]),
|
|
657
|
-
_: 1
|
|
658
|
-
})) : x("", !0)
|
|
659
|
-
])
|
|
641
|
+
default: w(() => [
|
|
642
|
+
L.value ? (v(), b(ae, {
|
|
643
|
+
key: 0,
|
|
644
|
+
type: "previous",
|
|
645
|
+
label: r.previousButtonText,
|
|
646
|
+
onClick: I
|
|
647
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
648
|
+
r.showCancelButton ? (v(), b(ae, {
|
|
649
|
+
key: 1,
|
|
650
|
+
type: "cancel",
|
|
651
|
+
label: r.cancelButtonText,
|
|
652
|
+
onClick: G
|
|
653
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
654
|
+
r.showClearButton ? (v(), b(ae, {
|
|
655
|
+
key: 2,
|
|
656
|
+
type: "clear",
|
|
657
|
+
label: r.clearButtonText,
|
|
658
|
+
onClick: te
|
|
659
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
660
|
+
(v(!0), B(N, null, Q(r.customButtons, (S) => (v(), b(Ie, {
|
|
661
|
+
button: S,
|
|
662
|
+
key: S.label
|
|
663
|
+
}, null, 8, ["button"]))), 128)),
|
|
664
|
+
$.value ? (v(), b(ae, {
|
|
665
|
+
key: 3,
|
|
666
|
+
type: "next",
|
|
667
|
+
label: r.nextButtonText,
|
|
668
|
+
onClick: _
|
|
669
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
670
|
+
x.value ? (v(), b(ae, {
|
|
671
|
+
key: 4,
|
|
672
|
+
type: "submit",
|
|
673
|
+
label: r.submitButtonText,
|
|
674
|
+
onClick: Y
|
|
675
|
+
}, null, 8, ["label"])) : z("", !0)
|
|
660
676
|
]),
|
|
661
677
|
_: 1
|
|
662
|
-
})
|
|
678
|
+
}, 8, ["style"])
|
|
663
679
|
]),
|
|
664
680
|
_: 1
|
|
665
681
|
})),
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
682
|
+
r.multiStepConfig && (r.multiStepConfig.stepPosition === "left" || r.multiStepConfig.stepPosition === "right") && r.multiStepConfig.showProgress ? (v(), B("div", St, [
|
|
683
|
+
U("div", wt, [
|
|
684
|
+
U("div", {
|
|
669
685
|
class: "step-progress-fill",
|
|
670
|
-
style:
|
|
686
|
+
style: me({ width: `${X.value}%` })
|
|
671
687
|
}, null, 4)
|
|
672
688
|
]),
|
|
673
|
-
|
|
674
|
-
])) :
|
|
689
|
+
U("div", xt, " Step " + T(V.value + 1) + " of " + T(C.value.length), 1)
|
|
690
|
+
])) : z("", !0)
|
|
675
691
|
]),
|
|
676
|
-
|
|
692
|
+
r.multiStepConfig && r.multiStepConfig.stepPosition === "right" ? (v(), b(fe, {
|
|
677
693
|
key: 1,
|
|
678
|
-
steps:
|
|
679
|
-
"active-step-index":
|
|
680
|
-
position:
|
|
681
|
-
"show-progress":
|
|
682
|
-
"allow-navigation":
|
|
683
|
-
onStepClick:
|
|
694
|
+
steps: C.value,
|
|
695
|
+
"active-step-index": V.value,
|
|
696
|
+
position: r.multiStepConfig.stepPosition,
|
|
697
|
+
"show-progress": r.multiStepConfig.showProgress,
|
|
698
|
+
"allow-navigation": r.multiStepConfig.allowStepNavigation,
|
|
699
|
+
onStepClick: g,
|
|
684
700
|
class: "multi-step-sidebar"
|
|
685
|
-
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) :
|
|
701
|
+
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0)
|
|
686
702
|
], 2),
|
|
687
|
-
|
|
703
|
+
r.multiStepConfig && r.multiStepConfig.stepPosition === "bottom" ? (v(), b(fe, {
|
|
688
704
|
key: 1,
|
|
689
|
-
steps:
|
|
690
|
-
"active-step-index":
|
|
691
|
-
position:
|
|
692
|
-
"show-progress":
|
|
693
|
-
"allow-navigation":
|
|
694
|
-
onStepClick:
|
|
695
|
-
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) :
|
|
696
|
-
])) : (
|
|
697
|
-
default:
|
|
698
|
-
P(i(
|
|
699
|
-
default:
|
|
700
|
-
(
|
|
701
|
-
var
|
|
702
|
-
return
|
|
703
|
-
|
|
705
|
+
steps: C.value,
|
|
706
|
+
"active-step-index": V.value,
|
|
707
|
+
position: r.multiStepConfig.stepPosition,
|
|
708
|
+
"show-progress": r.multiStepConfig.showProgress,
|
|
709
|
+
"allow-navigation": r.multiStepConfig.allowStepNavigation,
|
|
710
|
+
onStepClick: g
|
|
711
|
+
}, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0)
|
|
712
|
+
])) : (v(), b(i(ze), { key: 1 }, {
|
|
713
|
+
default: w(() => [
|
|
714
|
+
P(i(ue), null, {
|
|
715
|
+
default: w(() => [
|
|
716
|
+
(v(!0), B(N, null, Q(Object.keys(u.value), (S) => {
|
|
717
|
+
var H, J, oe, ie, ce;
|
|
718
|
+
return v(), B(N, { key: S }, [
|
|
719
|
+
i(ye)(u.value[S], i(m), i(f)) ? (v(), b(i(ne), {
|
|
704
720
|
key: 0,
|
|
705
|
-
size: ((
|
|
706
|
-
"size-sm": (
|
|
707
|
-
"size-md": (
|
|
708
|
-
"size-lg": (ie =
|
|
709
|
-
"size-xl": (ce =
|
|
721
|
+
size: ((H = u.value[S].grid) == null ? void 0 : H.xs) ?? "12",
|
|
722
|
+
"size-sm": (J = u.value[S].grid) == null ? void 0 : J.sm,
|
|
723
|
+
"size-md": (oe = u.value[S].grid) == null ? void 0 : oe.md,
|
|
724
|
+
"size-lg": (ie = u.value[S].grid) == null ? void 0 : ie.lg,
|
|
725
|
+
"size-xl": (ce = u.value[S].grid) == null ? void 0 : ce.xl,
|
|
710
726
|
class: "ion-margin-vertical"
|
|
711
727
|
}, {
|
|
712
|
-
default:
|
|
713
|
-
(
|
|
714
|
-
modelValue:
|
|
715
|
-
"onUpdate:modelValue": (
|
|
716
|
-
schema:
|
|
717
|
-
"form-id":
|
|
728
|
+
default: w(() => [
|
|
729
|
+
(v(), b(he(u.value[S].type), {
|
|
730
|
+
modelValue: u.value[S],
|
|
731
|
+
"onUpdate:modelValue": (Ve) => u.value[S] = Ve,
|
|
732
|
+
schema: u.value,
|
|
733
|
+
"form-id": S,
|
|
718
734
|
ref_for: !0,
|
|
719
735
|
ref_key: "dynamicRefs",
|
|
720
|
-
ref:
|
|
721
|
-
"ref-key":
|
|
736
|
+
ref: h,
|
|
737
|
+
"ref-key": S,
|
|
722
738
|
style: { width: "100%" }
|
|
723
739
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "form-id", "ref-key"]))
|
|
724
740
|
]),
|
|
725
741
|
_: 2
|
|
726
|
-
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) :
|
|
742
|
+
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
|
|
727
743
|
], 64);
|
|
728
744
|
}), 128))
|
|
729
745
|
]),
|
|
730
746
|
_: 1
|
|
731
747
|
}),
|
|
732
|
-
|
|
733
|
-
default:
|
|
734
|
-
P(i(
|
|
748
|
+
r.hideButtons ? z("", !0) : (v(), b(i(ue), { key: 0 }, {
|
|
749
|
+
default: w(() => [
|
|
750
|
+
P(i(ne), {
|
|
735
751
|
size: "12",
|
|
736
|
-
style:
|
|
752
|
+
style: me([{ display: "flex" }, { justifyContent: r.buttonPlacement }])
|
|
737
753
|
}, {
|
|
738
|
-
default:
|
|
739
|
-
|
|
754
|
+
default: w(() => [
|
|
755
|
+
r.showCancelButton ? (v(), b(ae, {
|
|
740
756
|
key: 0,
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
_: 1
|
|
747
|
-
})) : x("", !0),
|
|
748
|
-
c.showClearButton ? (d(), _(i(H), {
|
|
757
|
+
type: "cancel",
|
|
758
|
+
label: r.cancelButtonText,
|
|
759
|
+
onClick: G
|
|
760
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
761
|
+
r.showClearButton ? (v(), b(ae, {
|
|
749
762
|
key: 1,
|
|
763
|
+
type: "clear",
|
|
764
|
+
label: r.clearButtonText,
|
|
750
765
|
onClick: ee
|
|
751
|
-
},
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
onClick:
|
|
760
|
-
|
|
761
|
-
}, {
|
|
762
|
-
default: V(() => [
|
|
763
|
-
D(A(E.label), 1)
|
|
764
|
-
]),
|
|
765
|
-
_: 2
|
|
766
|
-
}, 1032, ["onClick", "color"]))), 128)),
|
|
767
|
-
P(i(H), { onClick: Y }, {
|
|
768
|
-
default: V(() => [
|
|
769
|
-
D(A(c.submitButtonText ?? "Submit"), 1)
|
|
770
|
-
]),
|
|
771
|
-
_: 1
|
|
772
|
-
})
|
|
766
|
+
}, null, 8, ["label"])) : z("", !0),
|
|
767
|
+
(v(!0), B(N, null, Q(r.customButtons, (S) => (v(), b(Ie, {
|
|
768
|
+
button: S,
|
|
769
|
+
key: S.label
|
|
770
|
+
}, null, 8, ["button"]))), 128)),
|
|
771
|
+
P(ae, {
|
|
772
|
+
type: "submit",
|
|
773
|
+
label: r.submitButtonText,
|
|
774
|
+
onClick: Y
|
|
775
|
+
}, null, 8, ["label"])
|
|
773
776
|
]),
|
|
774
777
|
_: 1
|
|
775
778
|
}, 8, ["style"])
|
|
@@ -782,12 +785,12 @@ const rt = { class: "step-indicator__container" }, it = ["onClick"], ct = { clas
|
|
|
782
785
|
]);
|
|
783
786
|
};
|
|
784
787
|
}
|
|
785
|
-
}),
|
|
788
|
+
}), Ot = /* @__PURE__ */ re(Et, [["__scopeId", "data-v-51c0c409"]]);
|
|
786
789
|
function zt(t) {
|
|
787
790
|
return {
|
|
788
791
|
applyValidationState: async (e) => {
|
|
789
|
-
var a,
|
|
790
|
-
(a = t.value) == null || a.$el.classList.remove("ion-invalid"), (
|
|
792
|
+
var a, s, u, n, h;
|
|
793
|
+
(a = t.value) == null || a.$el.classList.remove("ion-invalid"), (s = t.value) == null || s.$el.classList.remove("ion-valid"), e ? (u = t.value) == null || u.$el.classList.add("ion-valid") : (n = t.value) == null || n.$el.classList.add("ion-invalid"), (h = t.value) == null || h.$el.classList.add("ion-touched");
|
|
791
794
|
},
|
|
792
795
|
resetValidationState: () => {
|
|
793
796
|
var e, a;
|
|
@@ -795,88 +798,89 @@ function zt(t) {
|
|
|
795
798
|
}
|
|
796
799
|
};
|
|
797
800
|
}
|
|
798
|
-
function
|
|
799
|
-
const { applyValidationState:
|
|
800
|
-
async function
|
|
801
|
-
|
|
802
|
-
|
|
801
|
+
function ve(t, o, l, e, a) {
|
|
802
|
+
const { applyValidationState: s, resetValidationState: u } = zt(t), n = we("globalConfig");
|
|
803
|
+
async function h() {
|
|
804
|
+
var d;
|
|
805
|
+
if (o.value.required && !l.value)
|
|
806
|
+
return o.value.error = ((d = n == null ? void 0 : n.errorMessages) == null ? void 0 : d.required) ?? "This field is required", !1;
|
|
803
807
|
if (a) {
|
|
804
|
-
const
|
|
805
|
-
if (typeof
|
|
806
|
-
return
|
|
807
|
-
if (
|
|
808
|
+
const V = await a(l.value);
|
|
809
|
+
if (typeof V == "string")
|
|
810
|
+
return o.value.error = V, !1;
|
|
811
|
+
if (V === !1)
|
|
808
812
|
return !1;
|
|
809
813
|
}
|
|
810
|
-
if (
|
|
811
|
-
const
|
|
812
|
-
if (
|
|
813
|
-
return
|
|
814
|
+
if (o.value.validation) {
|
|
815
|
+
const V = await o.value.validation(l.value, e == null ? void 0 : e.value);
|
|
816
|
+
if (V != null && V.length)
|
|
817
|
+
return o.value.error = V.join(), !1;
|
|
814
818
|
}
|
|
815
819
|
return !0;
|
|
816
820
|
}
|
|
817
|
-
async function
|
|
818
|
-
const
|
|
819
|
-
|
|
821
|
+
async function p() {
|
|
822
|
+
const d = await h();
|
|
823
|
+
d && (o.value.error = "", o.value.value = l.value), await s(d);
|
|
820
824
|
}
|
|
821
|
-
function
|
|
822
|
-
|
|
825
|
+
function c() {
|
|
826
|
+
u(), o.value.error = "";
|
|
823
827
|
}
|
|
824
|
-
function
|
|
825
|
-
l.value =
|
|
828
|
+
function m(d = "") {
|
|
829
|
+
l.value = d, o.value.error = "", o.value.value = d;
|
|
826
830
|
}
|
|
827
831
|
function f() {
|
|
828
|
-
return
|
|
832
|
+
return o.value.error ? [o.value.error] : [];
|
|
829
833
|
}
|
|
830
834
|
return {
|
|
831
|
-
isValid:
|
|
832
|
-
onValueUpdate:
|
|
833
|
-
onFocus:
|
|
834
|
-
onReset:
|
|
835
|
+
isValid: h,
|
|
836
|
+
onValueUpdate: p,
|
|
837
|
+
onFocus: c,
|
|
838
|
+
onReset: m,
|
|
835
839
|
getErrors: f,
|
|
836
|
-
applyValidationState:
|
|
837
|
-
resetValidationState:
|
|
840
|
+
applyValidationState: s,
|
|
841
|
+
resetValidationState: u
|
|
838
842
|
};
|
|
839
843
|
}
|
|
840
|
-
function
|
|
841
|
-
const
|
|
844
|
+
function It(t) {
|
|
845
|
+
const o = O(() => !!t.value.label), l = O(() => !!t.value.required), e = O(() => t.value.label || "");
|
|
842
846
|
return {
|
|
843
|
-
showLabel:
|
|
847
|
+
showLabel: o,
|
|
844
848
|
showRequired: l,
|
|
845
849
|
labelText: e
|
|
846
850
|
};
|
|
847
851
|
}
|
|
848
|
-
const
|
|
852
|
+
const _e = /* @__PURE__ */ D({
|
|
849
853
|
__name: "InputLabel",
|
|
850
854
|
props: {
|
|
851
855
|
model: {},
|
|
852
856
|
slotName: {}
|
|
853
857
|
},
|
|
854
858
|
setup(t) {
|
|
855
|
-
const
|
|
856
|
-
return (
|
|
859
|
+
const o = t, { showLabel: l, showRequired: e, labelText: a } = It(Pe(o, "model"));
|
|
860
|
+
return (s, u) => i(l) ? (v(), b(i(se), {
|
|
857
861
|
key: 0,
|
|
858
|
-
slot:
|
|
862
|
+
slot: s.slotName,
|
|
859
863
|
class: "input-label"
|
|
860
864
|
}, {
|
|
861
|
-
default:
|
|
862
|
-
|
|
863
|
-
i(e) ? (
|
|
865
|
+
default: w(() => [
|
|
866
|
+
M(T(i(a)) + " ", 1),
|
|
867
|
+
i(e) ? (v(), b(i(Ee), {
|
|
864
868
|
key: 0,
|
|
865
869
|
color: "danger"
|
|
866
870
|
}, {
|
|
867
|
-
default:
|
|
868
|
-
|
|
871
|
+
default: w(() => u[0] || (u[0] = [
|
|
872
|
+
M("*")
|
|
869
873
|
])),
|
|
870
874
|
_: 1,
|
|
871
875
|
__: [0]
|
|
872
|
-
})) :
|
|
876
|
+
})) : z("", !0)
|
|
873
877
|
]),
|
|
874
878
|
_: 1
|
|
875
|
-
}, 8, ["slot"])) :
|
|
879
|
+
}, 8, ["slot"])) : z("", !0);
|
|
876
880
|
}
|
|
877
|
-
}),
|
|
881
|
+
}), pe = /* @__PURE__ */ D({
|
|
878
882
|
__name: "BaseInput",
|
|
879
|
-
props: /* @__PURE__ */
|
|
883
|
+
props: /* @__PURE__ */ W({
|
|
880
884
|
schema: {},
|
|
881
885
|
type: {}
|
|
882
886
|
}, {
|
|
@@ -884,40 +888,40 @@ const ye = /* @__PURE__ */ q({
|
|
|
884
888
|
modelModifiers: {}
|
|
885
889
|
}),
|
|
886
890
|
emits: ["update:modelValue"],
|
|
887
|
-
setup(t, { expose:
|
|
888
|
-
const l = t, e =
|
|
891
|
+
setup(t, { expose: o }) {
|
|
892
|
+
const l = t, e = Z(t, "modelValue"), a = R(null), s = R(e.value.value), u = O(() => l.schema), { isValid: n, onValueUpdate: h, onFocus: p, onReset: c, getErrors: m } = ve(
|
|
889
893
|
a,
|
|
890
894
|
e,
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
),
|
|
894
|
-
if (e.value.pattern) return
|
|
895
|
+
s,
|
|
896
|
+
u
|
|
897
|
+
), f = O(() => {
|
|
898
|
+
if (e.value.pattern) return at(e.value.pattern);
|
|
895
899
|
});
|
|
896
|
-
return
|
|
900
|
+
return q(
|
|
897
901
|
() => e.value.value,
|
|
898
|
-
(
|
|
899
|
-
),
|
|
900
|
-
onValueUpdate:
|
|
901
|
-
onReset:
|
|
902
|
-
getErrors:
|
|
902
|
+
(d) => s.value = d
|
|
903
|
+
), o({
|
|
904
|
+
onValueUpdate: h,
|
|
905
|
+
onReset: c,
|
|
906
|
+
getErrors: m,
|
|
903
907
|
isValid: n
|
|
904
|
-
}), (
|
|
905
|
-
var
|
|
906
|
-
const
|
|
907
|
-
return
|
|
908
|
+
}), (d, V) => {
|
|
909
|
+
var C;
|
|
910
|
+
const y = Te("maskito");
|
|
911
|
+
return Ue((v(), b(i(Ae), {
|
|
908
912
|
ref_key: "inputRef",
|
|
909
913
|
ref: a,
|
|
910
|
-
modelValue:
|
|
911
|
-
"onUpdate:modelValue":
|
|
912
|
-
class:
|
|
914
|
+
modelValue: s.value,
|
|
915
|
+
"onUpdate:modelValue": V[0] || (V[0] = (x) => s.value = x),
|
|
916
|
+
class: j(e.value.className),
|
|
913
917
|
"clear-input": !0,
|
|
914
918
|
fill: e.value.fill ?? "solid",
|
|
915
919
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
|
916
|
-
type:
|
|
920
|
+
type: d.type ?? "text",
|
|
917
921
|
required: e.value.required,
|
|
918
922
|
"error-text": e.value.error,
|
|
919
923
|
autofocus: e.value.autoFocus,
|
|
920
|
-
placeholder: ((
|
|
924
|
+
placeholder: ((C = f.value) == null ? void 0 : C.placeholder) ?? e.value.placeholder,
|
|
921
925
|
disabled: e.value.disabled,
|
|
922
926
|
counter: e.value.counter,
|
|
923
927
|
min: e.value.min,
|
|
@@ -927,55 +931,55 @@ const ye = /* @__PURE__ */ q({
|
|
|
927
931
|
pattern: e.value.pattern,
|
|
928
932
|
style: { width: "100%" },
|
|
929
933
|
onIonFocus: i(p),
|
|
930
|
-
onIonChange: i(
|
|
931
|
-
onIonBlur: i(
|
|
934
|
+
onIonChange: i(h),
|
|
935
|
+
onIonBlur: i(h)
|
|
932
936
|
}, {
|
|
933
|
-
default:
|
|
934
|
-
P(
|
|
937
|
+
default: w(() => [
|
|
938
|
+
P(_e, {
|
|
935
939
|
model: e.value,
|
|
936
940
|
"slot-name": "label"
|
|
937
941
|
}, null, 8, ["model"]),
|
|
938
|
-
e.value.prefix ? (
|
|
942
|
+
e.value.prefix ? (v(), b(i(se), {
|
|
939
943
|
key: 0,
|
|
940
944
|
slot: "start"
|
|
941
945
|
}, {
|
|
942
|
-
default:
|
|
943
|
-
|
|
946
|
+
default: w(() => [
|
|
947
|
+
M(T(e.value.prefix), 1)
|
|
944
948
|
]),
|
|
945
949
|
_: 1
|
|
946
|
-
})) :
|
|
947
|
-
e.value.suffix ? (
|
|
950
|
+
})) : z("", !0),
|
|
951
|
+
e.value.suffix ? (v(), b(i(se), {
|
|
948
952
|
key: 1,
|
|
949
953
|
slot: "end"
|
|
950
954
|
}, {
|
|
951
|
-
default:
|
|
952
|
-
|
|
955
|
+
default: w(() => [
|
|
956
|
+
M(T(e.value.suffix), 1)
|
|
953
957
|
]),
|
|
954
958
|
_: 1
|
|
955
|
-
})) :
|
|
956
|
-
|
|
959
|
+
})) : z("", !0),
|
|
960
|
+
d.type === "password" ? (v(), b(i(De), {
|
|
957
961
|
key: 2,
|
|
958
962
|
slot: "end"
|
|
959
|
-
})) :
|
|
963
|
+
})) : z("", !0)
|
|
960
964
|
]),
|
|
961
965
|
_: 1
|
|
962
966
|
}, 8, ["modelValue", "class", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"])), [
|
|
963
|
-
[
|
|
967
|
+
[y, f.value]
|
|
964
968
|
]);
|
|
965
969
|
};
|
|
966
970
|
}
|
|
967
|
-
}), At = /* @__PURE__ */
|
|
971
|
+
}), At = /* @__PURE__ */ D({
|
|
968
972
|
__name: "TextInput",
|
|
969
|
-
props: /* @__PURE__ */
|
|
973
|
+
props: /* @__PURE__ */ W({
|
|
970
974
|
schema: {}
|
|
971
975
|
}, {
|
|
972
976
|
modelValue: { type: Object, default: {} },
|
|
973
977
|
modelModifiers: {}
|
|
974
978
|
}),
|
|
975
979
|
emits: ["update:modelValue"],
|
|
976
|
-
setup(t, { expose:
|
|
977
|
-
const l =
|
|
978
|
-
return
|
|
980
|
+
setup(t, { expose: o }) {
|
|
981
|
+
const l = Z(t, "modelValue"), e = R(null);
|
|
982
|
+
return o({
|
|
979
983
|
onReset: () => {
|
|
980
984
|
var a;
|
|
981
985
|
return (a = e.value) == null ? void 0 : a.onReset();
|
|
@@ -985,30 +989,30 @@ const ye = /* @__PURE__ */ q({
|
|
|
985
989
|
return (a = e.value) == null ? void 0 : a.onValueUpdate();
|
|
986
990
|
},
|
|
987
991
|
getErrors: () => {
|
|
988
|
-
var a,
|
|
989
|
-
return ((
|
|
992
|
+
var a, s;
|
|
993
|
+
return ((s = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : s.call(a)) ?? [];
|
|
990
994
|
}
|
|
991
|
-
}), (a,
|
|
995
|
+
}), (a, s) => (v(), b(pe, {
|
|
992
996
|
modelValue: l.value,
|
|
993
|
-
"onUpdate:modelValue":
|
|
997
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => l.value = u),
|
|
994
998
|
type: "text",
|
|
995
999
|
schema: a.schema,
|
|
996
1000
|
ref_key: "inputRef",
|
|
997
1001
|
ref: e
|
|
998
1002
|
}, null, 8, ["modelValue", "schema"]));
|
|
999
1003
|
}
|
|
1000
|
-
}),
|
|
1004
|
+
}), Rt = /* @__PURE__ */ D({
|
|
1001
1005
|
__name: "DateInput",
|
|
1002
|
-
props: /* @__PURE__ */
|
|
1006
|
+
props: /* @__PURE__ */ W({
|
|
1003
1007
|
schema: {}
|
|
1004
1008
|
}, {
|
|
1005
1009
|
modelValue: { type: Object, default: {} },
|
|
1006
1010
|
modelModifiers: {}
|
|
1007
1011
|
}),
|
|
1008
1012
|
emits: ["update:modelValue"],
|
|
1009
|
-
setup(t, { expose:
|
|
1010
|
-
const l =
|
|
1011
|
-
return
|
|
1013
|
+
setup(t, { expose: o }) {
|
|
1014
|
+
const l = Z(t, "modelValue"), e = R(null);
|
|
1015
|
+
return o({
|
|
1012
1016
|
onValueUpdate: () => {
|
|
1013
1017
|
var a;
|
|
1014
1018
|
return (a = e.value) == null ? void 0 : a.onValueUpdate();
|
|
@@ -1018,30 +1022,30 @@ const ye = /* @__PURE__ */ q({
|
|
|
1018
1022
|
return (a = e.value) == null ? void 0 : a.onReset();
|
|
1019
1023
|
},
|
|
1020
1024
|
getErrors: () => {
|
|
1021
|
-
var a,
|
|
1022
|
-
return ((
|
|
1025
|
+
var a, s;
|
|
1026
|
+
return ((s = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : s.call(a)) ?? [];
|
|
1023
1027
|
}
|
|
1024
|
-
}), (a,
|
|
1028
|
+
}), (a, s) => (v(), b(pe, {
|
|
1025
1029
|
modelValue: l.value,
|
|
1026
|
-
"onUpdate:modelValue":
|
|
1030
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => l.value = u),
|
|
1027
1031
|
type: l.value.enableTime ? "datetime-local" : "date",
|
|
1028
1032
|
schema: a.schema,
|
|
1029
1033
|
ref_key: "inputRef",
|
|
1030
1034
|
ref: e
|
|
1031
1035
|
}, null, 8, ["modelValue", "type", "schema"]));
|
|
1032
1036
|
}
|
|
1033
|
-
}), $t = /* @__PURE__ */
|
|
1037
|
+
}), $t = /* @__PURE__ */ D({
|
|
1034
1038
|
__name: "NumberInput",
|
|
1035
|
-
props: /* @__PURE__ */
|
|
1039
|
+
props: /* @__PURE__ */ W({
|
|
1036
1040
|
schema: {}
|
|
1037
1041
|
}, {
|
|
1038
1042
|
modelValue: { type: Object, default: {} },
|
|
1039
1043
|
modelModifiers: {}
|
|
1040
1044
|
}),
|
|
1041
1045
|
emits: ["update:modelValue"],
|
|
1042
|
-
setup(t, { expose:
|
|
1043
|
-
const l =
|
|
1044
|
-
return
|
|
1046
|
+
setup(t, { expose: o }) {
|
|
1047
|
+
const l = Z(t, "modelValue"), e = R(null);
|
|
1048
|
+
return o({
|
|
1045
1049
|
onReset: () => {
|
|
1046
1050
|
var a;
|
|
1047
1051
|
return (a = e.value) == null ? void 0 : a.onReset();
|
|
@@ -1051,30 +1055,30 @@ const ye = /* @__PURE__ */ q({
|
|
|
1051
1055
|
return (a = e.value) == null ? void 0 : a.onValueUpdate();
|
|
1052
1056
|
},
|
|
1053
1057
|
getErrors: () => {
|
|
1054
|
-
var a,
|
|
1055
|
-
return ((
|
|
1058
|
+
var a, s;
|
|
1059
|
+
return ((s = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : s.call(a)) ?? [];
|
|
1056
1060
|
}
|
|
1057
|
-
}), (a,
|
|
1061
|
+
}), (a, s) => (v(), b(pe, {
|
|
1058
1062
|
modelValue: l.value,
|
|
1059
|
-
"onUpdate:modelValue":
|
|
1063
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => l.value = u),
|
|
1060
1064
|
type: "number",
|
|
1061
1065
|
schema: a.schema,
|
|
1062
1066
|
ref_key: "inputRef",
|
|
1063
1067
|
ref: e
|
|
1064
1068
|
}, null, 8, ["modelValue", "schema"]));
|
|
1065
1069
|
}
|
|
1066
|
-
}),
|
|
1070
|
+
}), Bt = /* @__PURE__ */ D({
|
|
1067
1071
|
__name: "EmailInput",
|
|
1068
|
-
props: /* @__PURE__ */
|
|
1072
|
+
props: /* @__PURE__ */ W({
|
|
1069
1073
|
schema: {}
|
|
1070
1074
|
}, {
|
|
1071
1075
|
modelValue: { type: Object, default: {} },
|
|
1072
1076
|
modelModifiers: {}
|
|
1073
1077
|
}),
|
|
1074
1078
|
emits: ["update:modelValue"],
|
|
1075
|
-
setup(t, { expose:
|
|
1076
|
-
const l =
|
|
1077
|
-
return
|
|
1079
|
+
setup(t, { expose: o }) {
|
|
1080
|
+
const l = Z(t, "modelValue"), e = R(null);
|
|
1081
|
+
return o({
|
|
1078
1082
|
onReset: () => {
|
|
1079
1083
|
var a;
|
|
1080
1084
|
return (a = e.value) == null ? void 0 : a.onReset();
|
|
@@ -1084,30 +1088,30 @@ const ye = /* @__PURE__ */ q({
|
|
|
1084
1088
|
return (a = e.value) == null ? void 0 : a.onValueUpdate();
|
|
1085
1089
|
},
|
|
1086
1090
|
getErrors: () => {
|
|
1087
|
-
var a,
|
|
1088
|
-
return ((
|
|
1091
|
+
var a, s;
|
|
1092
|
+
return ((s = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : s.call(a)) ?? [];
|
|
1089
1093
|
}
|
|
1090
|
-
}), (a,
|
|
1094
|
+
}), (a, s) => (v(), b(pe, {
|
|
1091
1095
|
modelValue: l.value,
|
|
1092
|
-
"onUpdate:modelValue":
|
|
1096
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => l.value = u),
|
|
1093
1097
|
type: "email",
|
|
1094
1098
|
schema: a.schema,
|
|
1095
1099
|
ref_key: "inputRef",
|
|
1096
1100
|
ref: e
|
|
1097
1101
|
}, null, 8, ["modelValue", "schema"]));
|
|
1098
1102
|
}
|
|
1099
|
-
}),
|
|
1103
|
+
}), Ft = /* @__PURE__ */ D({
|
|
1100
1104
|
__name: "PasswordInput",
|
|
1101
|
-
props: /* @__PURE__ */
|
|
1105
|
+
props: /* @__PURE__ */ W({
|
|
1102
1106
|
schema: {}
|
|
1103
1107
|
}, {
|
|
1104
1108
|
modelValue: { type: Object, default: {} },
|
|
1105
1109
|
modelModifiers: {}
|
|
1106
1110
|
}),
|
|
1107
1111
|
emits: ["update:modelValue"],
|
|
1108
|
-
setup(t, { expose:
|
|
1109
|
-
const l =
|
|
1110
|
-
return
|
|
1112
|
+
setup(t, { expose: o }) {
|
|
1113
|
+
const l = Z(t, "modelValue"), e = R(null);
|
|
1114
|
+
return o({
|
|
1111
1115
|
onReset: () => {
|
|
1112
1116
|
var a;
|
|
1113
1117
|
return (a = e.value) == null ? void 0 : a.onReset();
|
|
@@ -1117,21 +1121,21 @@ const ye = /* @__PURE__ */ q({
|
|
|
1117
1121
|
return (a = e.value) == null ? void 0 : a.onValueUpdate();
|
|
1118
1122
|
},
|
|
1119
1123
|
getErrors: () => {
|
|
1120
|
-
var a,
|
|
1121
|
-
return ((
|
|
1124
|
+
var a, s;
|
|
1125
|
+
return ((s = (a = e.value) == null ? void 0 : a.getErrors) == null ? void 0 : s.call(a)) ?? [];
|
|
1122
1126
|
}
|
|
1123
|
-
}), (a,
|
|
1127
|
+
}), (a, s) => (v(), b(pe, {
|
|
1124
1128
|
modelValue: l.value,
|
|
1125
|
-
"onUpdate:modelValue":
|
|
1129
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => l.value = u),
|
|
1126
1130
|
type: "password",
|
|
1127
1131
|
schema: a.schema,
|
|
1128
1132
|
ref_key: "inputRef",
|
|
1129
1133
|
ref: e
|
|
1130
1134
|
}, null, 8, ["modelValue", "schema"]));
|
|
1131
1135
|
}
|
|
1132
|
-
}),
|
|
1136
|
+
}), Pt = { class: "option-content" }, Tt = /* @__PURE__ */ D({
|
|
1133
1137
|
__name: "SelectInput",
|
|
1134
|
-
props: /* @__PURE__ */
|
|
1138
|
+
props: /* @__PURE__ */ W({
|
|
1135
1139
|
schema: Object,
|
|
1136
1140
|
type: String,
|
|
1137
1141
|
formId: String
|
|
@@ -1140,221 +1144,230 @@ const ye = /* @__PURE__ */ q({
|
|
|
1140
1144
|
modelModifiers: {}
|
|
1141
1145
|
}),
|
|
1142
1146
|
emits: ["update:modelValue"],
|
|
1143
|
-
setup(t, { expose:
|
|
1144
|
-
const l = t, e =
|
|
1145
|
-
|
|
1147
|
+
setup(t, { expose: o }) {
|
|
1148
|
+
const l = t, e = Z(t, "modelValue"), a = R(null), s = R(null), u = R(!1), n = R([]), h = R(""), p = R(1), c = we("globalConfig"), m = O(() => e.value.interface ?? "popover"), f = O(() => e.value.optionsPlacement === "top" ? "top" : "bottom"), d = O(() => n.value.filter((g) => !!g.isChecked)), V = O(() => !h.value && Ce(d.value) && !u.value ? e.value.placeholder ?? "Select an option" : "");
|
|
1149
|
+
q([h, () => e.value.options], _, {
|
|
1146
1150
|
immediate: !0,
|
|
1147
1151
|
deep: !0
|
|
1148
|
-
}),
|
|
1149
|
-
() => !e.value.dependsOn || !l.schema ? null : (Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn]).map((
|
|
1150
|
-
const
|
|
1151
|
-
return K(
|
|
1152
|
+
}), q(() => e.value.value, I, { immediate: !0, deep: !0 }), q(
|
|
1153
|
+
() => !e.value.dependsOn || !l.schema ? null : (Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn]).map((k) => {
|
|
1154
|
+
const r = l.schema[k];
|
|
1155
|
+
return K(r) ? r.value : void 0;
|
|
1152
1156
|
}),
|
|
1153
|
-
async (
|
|
1154
|
-
|
|
1157
|
+
async (g, k) => {
|
|
1158
|
+
g && k && !de(g, k) && (y(), n.value = [], await _());
|
|
1155
1159
|
},
|
|
1156
1160
|
{ deep: !0 }
|
|
1157
1161
|
);
|
|
1158
|
-
function
|
|
1159
|
-
e.value.error = "",
|
|
1162
|
+
function y() {
|
|
1163
|
+
e.value.error = "", h.value = "", p.value = 1, e.value.value = e.value.multiple ? [] : "", ot(n.value);
|
|
1160
1164
|
}
|
|
1161
|
-
function
|
|
1162
|
-
|
|
1163
|
-
|
|
1165
|
+
function C(g) {
|
|
1166
|
+
if (g.disabled) return;
|
|
1167
|
+
const k = n.value.findIndex((r) => r.value === g.value && r.isChecked);
|
|
1168
|
+
if (k >= 0) {
|
|
1164
1169
|
if (Array.isArray(e.value.value)) {
|
|
1165
|
-
const
|
|
1166
|
-
|
|
1170
|
+
const r = Oe(g, e.value.value);
|
|
1171
|
+
r >= 0 && e.value.value.splice(r, 1);
|
|
1167
1172
|
}
|
|
1168
|
-
n.value[
|
|
1173
|
+
n.value[k].isChecked = !1;
|
|
1169
1174
|
} else
|
|
1170
|
-
e.value.multiple ||
|
|
1171
|
-
|
|
1175
|
+
e.value.multiple || y(), le(g, n.value);
|
|
1176
|
+
G(), h.value = "";
|
|
1172
1177
|
}
|
|
1173
|
-
function
|
|
1174
|
-
switch (
|
|
1178
|
+
function x() {
|
|
1179
|
+
switch (m.value) {
|
|
1175
1180
|
case "action-sheet":
|
|
1176
|
-
|
|
1181
|
+
$();
|
|
1177
1182
|
break;
|
|
1178
1183
|
case "alert":
|
|
1179
|
-
|
|
1184
|
+
L();
|
|
1180
1185
|
break;
|
|
1181
1186
|
case "popover":
|
|
1182
1187
|
default:
|
|
1183
|
-
|
|
1188
|
+
u.value = !0;
|
|
1184
1189
|
break;
|
|
1185
1190
|
}
|
|
1186
1191
|
}
|
|
1187
|
-
async function
|
|
1188
|
-
|
|
1189
|
-
|
|
1192
|
+
async function $() {
|
|
1193
|
+
var k, r;
|
|
1194
|
+
if (await _(), e.value.multiple) {
|
|
1195
|
+
u.value = !0;
|
|
1190
1196
|
return;
|
|
1191
1197
|
}
|
|
1192
|
-
await (await
|
|
1198
|
+
await (await Le.create({
|
|
1193
1199
|
header: e.value.label || "Select an option",
|
|
1194
1200
|
buttons: [
|
|
1195
|
-
...n.value.map((
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1201
|
+
...n.value.map((E) => {
|
|
1202
|
+
let A = "";
|
|
1203
|
+
return E.isChecked ? A = "selected-option" : E.disabled && (A = "disabled-option"), {
|
|
1204
|
+
text: E.label,
|
|
1205
|
+
cssClass: A,
|
|
1206
|
+
handler: () => (C(E), !1),
|
|
1207
|
+
disabled: E.disabled
|
|
1208
|
+
};
|
|
1209
|
+
}),
|
|
1200
1210
|
{
|
|
1201
|
-
text: "Cancel",
|
|
1211
|
+
text: ((r = (k = c == null ? void 0 : c.buttons) == null ? void 0 : k.cancel) == null ? void 0 : r.label) ?? "Cancel",
|
|
1202
1212
|
role: "cancel"
|
|
1203
1213
|
}
|
|
1204
1214
|
]
|
|
1205
1215
|
})).present();
|
|
1206
1216
|
}
|
|
1207
|
-
async function
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1217
|
+
async function L() {
|
|
1218
|
+
var r, E, A, F;
|
|
1219
|
+
await _();
|
|
1220
|
+
const g = n.value.map((S) => ({
|
|
1221
|
+
label: S.label,
|
|
1211
1222
|
type: e.value.multiple ? "checkbox" : "radio",
|
|
1212
|
-
value:
|
|
1213
|
-
checked:
|
|
1223
|
+
value: S,
|
|
1224
|
+
checked: S.isChecked,
|
|
1225
|
+
disabled: S.disabled
|
|
1214
1226
|
}));
|
|
1215
|
-
await (await
|
|
1227
|
+
await (await Me.create({
|
|
1216
1228
|
header: e.value.label || "Select an option",
|
|
1217
|
-
inputs:
|
|
1229
|
+
inputs: g,
|
|
1218
1230
|
buttons: [
|
|
1219
1231
|
{
|
|
1220
|
-
text: "Cancel",
|
|
1232
|
+
text: ((E = (r = c == null ? void 0 : c.buttons) == null ? void 0 : r.cancel) == null ? void 0 : E.label) ?? "Cancel",
|
|
1221
1233
|
role: "cancel"
|
|
1222
1234
|
},
|
|
1223
1235
|
{
|
|
1224
|
-
text: "OK",
|
|
1225
|
-
handler: (
|
|
1236
|
+
text: ((F = (A = c == null ? void 0 : c.buttons) == null ? void 0 : A.ok) == null ? void 0 : F.label) ?? "OK",
|
|
1237
|
+
handler: (S) => {
|
|
1226
1238
|
if (e.value.multiple)
|
|
1227
|
-
n.value.forEach((
|
|
1228
|
-
const
|
|
1229
|
-
|
|
1239
|
+
n.value.forEach((H) => nt(H, n.value)), S.forEach((H) => {
|
|
1240
|
+
const J = n.value.find((oe) => oe.value === H.value);
|
|
1241
|
+
J && le(J, n.value);
|
|
1230
1242
|
});
|
|
1231
1243
|
else {
|
|
1232
|
-
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1244
|
+
y();
|
|
1245
|
+
const H = n.value.find((J) => J.value === S.value);
|
|
1246
|
+
H && le(H, n.value);
|
|
1235
1247
|
}
|
|
1236
|
-
|
|
1248
|
+
G();
|
|
1237
1249
|
}
|
|
1238
1250
|
}
|
|
1239
1251
|
]
|
|
1240
1252
|
})).present();
|
|
1241
1253
|
}
|
|
1242
|
-
async function
|
|
1243
|
-
|
|
1244
|
-
|
|
1254
|
+
async function X() {
|
|
1255
|
+
var g;
|
|
1256
|
+
if (e.value.required && Ce(d.value))
|
|
1257
|
+
return ((g = c == null ? void 0 : c.errorMessages) == null ? void 0 : g.required) ?? "This field is required";
|
|
1245
1258
|
if (e.value.validation) {
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
return
|
|
1259
|
+
const k = await e.value.validation(d.value, l == null ? void 0 : l.schema);
|
|
1260
|
+
if (k && k.length)
|
|
1261
|
+
return k.join();
|
|
1249
1262
|
}
|
|
1250
1263
|
return !0;
|
|
1251
1264
|
}
|
|
1252
|
-
const { onFocus:
|
|
1265
|
+
const { onFocus: Y, applyValidationState: ee } = ve(
|
|
1253
1266
|
a,
|
|
1254
1267
|
e,
|
|
1255
|
-
O(() => e.value.multiple ?
|
|
1268
|
+
O(() => e.value.multiple ? d.value : d.value[0]),
|
|
1256
1269
|
O(() => l == null ? void 0 : l.schema),
|
|
1257
|
-
|
|
1270
|
+
X
|
|
1258
1271
|
);
|
|
1259
|
-
function
|
|
1260
|
-
var y;
|
|
1261
|
-
m.target === ((y = a.value) == null ? void 0 : y.$el) && (te(), v.value === "popover" && (s.value = !0));
|
|
1262
|
-
}
|
|
1263
|
-
async function j(m) {
|
|
1272
|
+
function te(g) {
|
|
1264
1273
|
var k;
|
|
1265
|
-
|
|
1266
|
-
s.value = !1;
|
|
1267
|
-
const y = await Z();
|
|
1268
|
-
y === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? r.value : r.value[0]) : e.value.error = typeof y == "string" ? y : "Validation failed", await Y(y === !0);
|
|
1274
|
+
g.target === ((k = a.value) == null ? void 0 : k.$el) && (Y(), m.value === "popover" && (u.value = !0));
|
|
1269
1275
|
}
|
|
1270
|
-
async function
|
|
1271
|
-
|
|
1276
|
+
async function G(g) {
|
|
1277
|
+
var r;
|
|
1278
|
+
if ((r = g == null ? void 0 : g.relatedTarget) != null && r.closest(".suggestions-list")) return;
|
|
1279
|
+
u.value = !1;
|
|
1280
|
+
const k = await X();
|
|
1281
|
+
k === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? d.value : d.value[0]) : e.value.error = typeof k == "string" ? k : "Validation failed", await ee(k === !0);
|
|
1282
|
+
}
|
|
1283
|
+
async function _() {
|
|
1284
|
+
const g = [];
|
|
1272
1285
|
if (typeof e.value.options == "function") {
|
|
1273
|
-
let
|
|
1286
|
+
let k = {};
|
|
1274
1287
|
if (e.value.dependsOn && l.schema) {
|
|
1275
|
-
const
|
|
1276
|
-
let
|
|
1277
|
-
if (
|
|
1278
|
-
(
|
|
1279
|
-
const
|
|
1280
|
-
return
|
|
1288
|
+
const r = Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn];
|
|
1289
|
+
let E = !0;
|
|
1290
|
+
if (k = r.reduce(
|
|
1291
|
+
(A, F) => {
|
|
1292
|
+
const S = l.schema[F];
|
|
1293
|
+
return A[F] = K(S) ? S.value : void 0, (A[F] === void 0 || A[F] === null || A[F] === "") && (E = !1), A;
|
|
1281
1294
|
},
|
|
1282
1295
|
{}
|
|
1283
|
-
),
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1296
|
+
), E) {
|
|
1297
|
+
const A = await e.value.options(h.value, k);
|
|
1298
|
+
g.push(...A.filter((F) => !!F.label));
|
|
1286
1299
|
}
|
|
1287
1300
|
} else {
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1301
|
+
const r = await e.value.options(h.value, {});
|
|
1302
|
+
g.push(...r.filter((E) => !!E.label));
|
|
1290
1303
|
}
|
|
1291
|
-
} else Array.isArray(e.value.options) &&
|
|
1292
|
-
|
|
1304
|
+
} else Array.isArray(e.value.options) && g.push(...st(e.value.options, h.value));
|
|
1305
|
+
d.value.forEach((k) => le(k, g)), n.value = g;
|
|
1293
1306
|
}
|
|
1294
|
-
async function
|
|
1295
|
-
const
|
|
1296
|
-
if (
|
|
1297
|
-
if (n.value.length === 0 && await
|
|
1298
|
-
|
|
1299
|
-
else if (typeof
|
|
1300
|
-
le(
|
|
1307
|
+
async function I() {
|
|
1308
|
+
const g = e.value.value;
|
|
1309
|
+
if (g) {
|
|
1310
|
+
if (n.value.length === 0 && await _(), Array.isArray(g))
|
|
1311
|
+
g.forEach((k) => le(k, n.value));
|
|
1312
|
+
else if (typeof g == "object")
|
|
1313
|
+
le(g, n.value);
|
|
1301
1314
|
else {
|
|
1302
|
-
const
|
|
1303
|
-
le(
|
|
1304
|
-
value:
|
|
1305
|
-
label:
|
|
1315
|
+
const k = n.value.find((r) => r.value === g);
|
|
1316
|
+
le(k || {
|
|
1317
|
+
value: g,
|
|
1318
|
+
label: g
|
|
1306
1319
|
}, n.value);
|
|
1307
1320
|
}
|
|
1308
|
-
|
|
1321
|
+
G();
|
|
1309
1322
|
}
|
|
1310
1323
|
}
|
|
1311
|
-
return
|
|
1312
|
-
await
|
|
1313
|
-
}),
|
|
1314
|
-
onValueUpdate:
|
|
1315
|
-
onReset:
|
|
1324
|
+
return xe(async () => {
|
|
1325
|
+
await _(), await I();
|
|
1326
|
+
}), o({
|
|
1327
|
+
onValueUpdate: G,
|
|
1328
|
+
onReset: y,
|
|
1316
1329
|
getErrors: () => e.value.error ? [e.value.error] : []
|
|
1317
|
-
}), (
|
|
1318
|
-
class:
|
|
1319
|
-
onFocusout:
|
|
1330
|
+
}), (g, k) => (v(), B("div", {
|
|
1331
|
+
class: j(["autocomplete-container", e.value.className]),
|
|
1332
|
+
onFocusout: G,
|
|
1320
1333
|
ref_key: "containerRef",
|
|
1321
|
-
ref:
|
|
1334
|
+
ref: s
|
|
1322
1335
|
}, [
|
|
1323
|
-
P(i(
|
|
1336
|
+
P(i(Ae), {
|
|
1324
1337
|
ref_key: "inputRef",
|
|
1325
1338
|
ref: a,
|
|
1326
|
-
modelValue:
|
|
1327
|
-
"onUpdate:modelValue":
|
|
1339
|
+
modelValue: h.value,
|
|
1340
|
+
"onUpdate:modelValue": k[0] || (k[0] = (r) => h.value = r),
|
|
1328
1341
|
fill: e.value.fill ?? "solid",
|
|
1329
1342
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
|
1330
1343
|
type: t.type ?? "text",
|
|
1331
1344
|
required: e.value.required,
|
|
1332
1345
|
"error-text": e.value.error,
|
|
1333
1346
|
autofocus: e.value.autoFocus,
|
|
1334
|
-
placeholder:
|
|
1347
|
+
placeholder: V.value,
|
|
1335
1348
|
disabled: e.value.disabled,
|
|
1336
1349
|
counter: e.value.counter,
|
|
1337
1350
|
debounce: 300,
|
|
1338
|
-
onIonFocus:
|
|
1339
|
-
onClick:
|
|
1351
|
+
onIonFocus: te,
|
|
1352
|
+
onClick: x,
|
|
1340
1353
|
style: { width: "100%" }
|
|
1341
1354
|
}, {
|
|
1342
|
-
default:
|
|
1343
|
-
P(
|
|
1355
|
+
default: w(() => [
|
|
1356
|
+
P(_e, {
|
|
1344
1357
|
model: e.value,
|
|
1345
1358
|
"slot-name": "label"
|
|
1346
1359
|
}, null, 8, ["model"]),
|
|
1347
|
-
e.value.multiple ? (
|
|
1360
|
+
e.value.multiple ? (v(), b(i(se), {
|
|
1348
1361
|
key: 0,
|
|
1349
1362
|
style: { width: "fit-content" },
|
|
1350
1363
|
slot: "start"
|
|
1351
1364
|
}, {
|
|
1352
|
-
default:
|
|
1353
|
-
(
|
|
1354
|
-
default:
|
|
1355
|
-
P(i(
|
|
1356
|
-
default:
|
|
1357
|
-
|
|
1365
|
+
default: w(() => [
|
|
1366
|
+
(v(!0), B(N, null, Q(d.value, (r, E) => (v(), b(i(qe), { key: E }, {
|
|
1367
|
+
default: w(() => [
|
|
1368
|
+
P(i(se), null, {
|
|
1369
|
+
default: w(() => [
|
|
1370
|
+
M(T(r.label), 1)
|
|
1358
1371
|
]),
|
|
1359
1372
|
_: 2
|
|
1360
1373
|
}, 1024)
|
|
@@ -1363,93 +1376,114 @@ const ye = /* @__PURE__ */ q({
|
|
|
1363
1376
|
}, 1024))), 128))
|
|
1364
1377
|
]),
|
|
1365
1378
|
_: 1
|
|
1366
|
-
})) : (
|
|
1379
|
+
})) : (v(), b(i(se), {
|
|
1367
1380
|
key: 1,
|
|
1368
1381
|
slot: "start",
|
|
1369
1382
|
class: "ion-no-wrap"
|
|
1370
1383
|
}, {
|
|
1371
|
-
default:
|
|
1372
|
-
var
|
|
1384
|
+
default: w(() => {
|
|
1385
|
+
var r;
|
|
1373
1386
|
return [
|
|
1374
|
-
|
|
1387
|
+
M(T(((r = d.value[0]) == null ? void 0 : r.label) ?? ""), 1)
|
|
1375
1388
|
];
|
|
1376
1389
|
}),
|
|
1377
1390
|
_: 1
|
|
1378
1391
|
})),
|
|
1379
|
-
P(i(
|
|
1392
|
+
P(i(be), {
|
|
1380
1393
|
slot: "end",
|
|
1381
|
-
icon: i(
|
|
1394
|
+
icon: i(We)
|
|
1382
1395
|
}, null, 8, ["icon"]),
|
|
1383
|
-
|
|
1396
|
+
d.value.length > 0 || h.value ? (v(), b(i(be), {
|
|
1384
1397
|
key: 2,
|
|
1385
1398
|
slot: "end",
|
|
1386
|
-
icon: i(
|
|
1387
|
-
onClick:
|
|
1399
|
+
icon: i(Ze),
|
|
1400
|
+
onClick: y,
|
|
1388
1401
|
style: { "z-index": "999999" }
|
|
1389
|
-
}, null, 8, ["icon"])) :
|
|
1402
|
+
}, null, 8, ["icon"])) : z("", !0)
|
|
1390
1403
|
]),
|
|
1391
1404
|
_: 1
|
|
1392
1405
|
}, 8, ["modelValue", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter"]),
|
|
1393
|
-
|
|
1406
|
+
u.value && n.value.length > 0 && m.value === "popover" ? (v(), b(i(Ne), {
|
|
1394
1407
|
key: 0,
|
|
1395
|
-
class:
|
|
1408
|
+
class: j(["suggestions-list", f.value])
|
|
1396
1409
|
}, {
|
|
1397
|
-
default:
|
|
1398
|
-
(
|
|
1410
|
+
default: w(() => [
|
|
1411
|
+
(v(!0), B(N, null, Q(n.value, (r) => (v(), b(i(ke), {
|
|
1399
1412
|
button: "",
|
|
1400
|
-
key:
|
|
1401
|
-
onClick: (
|
|
1402
|
-
lines: e.value.showOptionsSeparator ? "none" : "full"
|
|
1413
|
+
key: r.label,
|
|
1414
|
+
onClick: (E) => C(r),
|
|
1415
|
+
lines: e.value.showOptionsSeparator ? "none" : "full",
|
|
1416
|
+
disabled: r.disabled,
|
|
1417
|
+
class: j({ "ion-item-disabled": r.disabled })
|
|
1403
1418
|
}, {
|
|
1404
|
-
default:
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1419
|
+
default: w(() => {
|
|
1420
|
+
var E;
|
|
1421
|
+
return [
|
|
1422
|
+
e.value.multiple ? (v(), b(i(Re), {
|
|
1423
|
+
key: 0,
|
|
1424
|
+
slot: "start",
|
|
1425
|
+
checked: r.isChecked,
|
|
1426
|
+
disabled: r.disabled
|
|
1427
|
+
}, null, 8, ["checked", "disabled"])) : z("", !0),
|
|
1428
|
+
U("div", Pt, [
|
|
1429
|
+
P(i(se), null, {
|
|
1430
|
+
default: w(() => [
|
|
1431
|
+
M(T(r.label), 1)
|
|
1432
|
+
]),
|
|
1433
|
+
_: 2
|
|
1434
|
+
}, 1024),
|
|
1435
|
+
i($e)(r) ? (v(), b(i(Ee), {
|
|
1436
|
+
key: 0,
|
|
1437
|
+
color: (E = r.description) == null ? void 0 : E.color,
|
|
1438
|
+
class: "option-description"
|
|
1439
|
+
}, {
|
|
1440
|
+
default: w(() => {
|
|
1441
|
+
var A;
|
|
1442
|
+
return [
|
|
1443
|
+
M(T((A = r.description) == null ? void 0 : A.text), 1)
|
|
1444
|
+
];
|
|
1445
|
+
}),
|
|
1446
|
+
_: 2
|
|
1447
|
+
}, 1032, ["color"])) : z("", !0)
|
|
1448
|
+
])
|
|
1449
|
+
];
|
|
1450
|
+
}),
|
|
1417
1451
|
_: 2
|
|
1418
|
-
}, 1032, ["onClick", "lines"]))), 128))
|
|
1452
|
+
}, 1032, ["onClick", "lines", "disabled", "class"]))), 128))
|
|
1419
1453
|
]),
|
|
1420
1454
|
_: 1
|
|
1421
|
-
}, 8, ["class"])) :
|
|
1455
|
+
}, 8, ["class"])) : z("", !0)
|
|
1422
1456
|
], 34));
|
|
1423
1457
|
}
|
|
1424
|
-
}),
|
|
1458
|
+
}), Ut = /* @__PURE__ */ re(Tt, [["__scopeId", "data-v-312c51dd"]]), Dt = /* @__PURE__ */ D({
|
|
1425
1459
|
__name: "TextAreaInput",
|
|
1426
|
-
props: /* @__PURE__ */
|
|
1460
|
+
props: /* @__PURE__ */ W({
|
|
1427
1461
|
schema: {}
|
|
1428
1462
|
}, {
|
|
1429
1463
|
modelValue: { type: Object, default: {} },
|
|
1430
1464
|
modelModifiers: {}
|
|
1431
1465
|
}),
|
|
1432
1466
|
emits: ["update:modelValue"],
|
|
1433
|
-
setup(t, { expose:
|
|
1434
|
-
const l = t, e =
|
|
1467
|
+
setup(t, { expose: o }) {
|
|
1468
|
+
const l = t, e = Z(t, "modelValue"), a = R(null), s = R(e.value.value), u = O(() => l.schema), { onValueUpdate: n, onFocus: h, onReset: p, getErrors: c } = ve(
|
|
1435
1469
|
a,
|
|
1436
1470
|
e,
|
|
1437
|
-
|
|
1438
|
-
|
|
1471
|
+
s,
|
|
1472
|
+
u
|
|
1439
1473
|
);
|
|
1440
|
-
return
|
|
1474
|
+
return q(
|
|
1441
1475
|
() => e.value.value,
|
|
1442
|
-
(
|
|
1443
|
-
),
|
|
1476
|
+
(m) => s.value = m
|
|
1477
|
+
), o({
|
|
1444
1478
|
onReset: p,
|
|
1445
1479
|
onValueUpdate: n,
|
|
1446
|
-
getErrors:
|
|
1447
|
-
}), (
|
|
1480
|
+
getErrors: c
|
|
1481
|
+
}), (m, f) => (v(), b(i(je), {
|
|
1448
1482
|
ref_key: "inputRef",
|
|
1449
1483
|
ref: a,
|
|
1450
|
-
modelValue:
|
|
1451
|
-
"onUpdate:modelValue":
|
|
1452
|
-
class:
|
|
1484
|
+
modelValue: s.value,
|
|
1485
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => s.value = d),
|
|
1486
|
+
class: j(e.value.className),
|
|
1453
1487
|
"clear-input": !0,
|
|
1454
1488
|
fill: e.value.fill ?? "solid",
|
|
1455
1489
|
"label-placement": e.value.labelPlacement ?? "stacked",
|
|
@@ -1467,13 +1501,13 @@ const ye = /* @__PURE__ */ q({
|
|
|
1467
1501
|
"max-length": e.value.maxLength,
|
|
1468
1502
|
"min-length": e.value.minLength,
|
|
1469
1503
|
pattern: e.value.pattern,
|
|
1470
|
-
onIonFocus: i(
|
|
1504
|
+
onIonFocus: i(h),
|
|
1471
1505
|
onIonChange: i(n),
|
|
1472
1506
|
onIonBlur: i(n),
|
|
1473
1507
|
style: { width: "100%" }
|
|
1474
1508
|
}, {
|
|
1475
|
-
default:
|
|
1476
|
-
P(
|
|
1509
|
+
default: w(() => [
|
|
1510
|
+
P(_e, {
|
|
1477
1511
|
model: e.value,
|
|
1478
1512
|
"slot-name": "label"
|
|
1479
1513
|
}, null, 8, ["model"])
|
|
@@ -1481,9 +1515,9 @@ const ye = /* @__PURE__ */ q({
|
|
|
1481
1515
|
_: 1
|
|
1482
1516
|
}, 8, ["modelValue", "class", "fill", "label-placement", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "rows", "cols", "auto-grow", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"]));
|
|
1483
1517
|
}
|
|
1484
|
-
}),
|
|
1518
|
+
}), qt = { class: "button-container" }, Nt = /* @__PURE__ */ D({
|
|
1485
1519
|
__name: "RepeatInput",
|
|
1486
|
-
props: /* @__PURE__ */
|
|
1520
|
+
props: /* @__PURE__ */ W({
|
|
1487
1521
|
schema: {},
|
|
1488
1522
|
data: {},
|
|
1489
1523
|
computedData: {}
|
|
@@ -1492,72 +1526,72 @@ const ye = /* @__PURE__ */ q({
|
|
|
1492
1526
|
modelModifiers: {}
|
|
1493
1527
|
}),
|
|
1494
1528
|
emits: ["update:modelValue"],
|
|
1495
|
-
setup(t, { expose:
|
|
1496
|
-
const l =
|
|
1497
|
-
label: `Set ${
|
|
1498
|
-
value:
|
|
1499
|
-
other: Object.entries(
|
|
1500
|
-
(
|
|
1529
|
+
setup(t, { expose: o }) {
|
|
1530
|
+
const l = Z(t, "modelValue"), e = R([]), { dynamicRefs: a, resetForm: s, getFormErrors: u, updateFormValues: n } = Be(), h = O(() => e.value.map((V, y) => ({
|
|
1531
|
+
label: `Set ${y + 1}`,
|
|
1532
|
+
value: y,
|
|
1533
|
+
other: Object.entries(V).reduce(
|
|
1534
|
+
(C, [x, $]) => (K($) && (C[x] = $.value), C),
|
|
1501
1535
|
{}
|
|
1502
1536
|
)
|
|
1503
1537
|
})));
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
(
|
|
1507
|
-
l.value.value =
|
|
1538
|
+
q(
|
|
1539
|
+
h,
|
|
1540
|
+
(V) => {
|
|
1541
|
+
l.value.value = V;
|
|
1508
1542
|
},
|
|
1509
1543
|
{ deep: !0, immediate: !0 }
|
|
1510
|
-
),
|
|
1544
|
+
), xe(p);
|
|
1511
1545
|
function p() {
|
|
1512
1546
|
l.value.children && e.value.push(Se(l.value.children));
|
|
1513
1547
|
}
|
|
1514
|
-
function
|
|
1515
|
-
e.value.splice(
|
|
1548
|
+
function c(V) {
|
|
1549
|
+
e.value.splice(V, 1);
|
|
1516
1550
|
}
|
|
1517
|
-
function
|
|
1518
|
-
|
|
1551
|
+
function m() {
|
|
1552
|
+
s();
|
|
1519
1553
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return
|
|
1554
|
+
function f() {
|
|
1555
|
+
return u();
|
|
1522
1556
|
}
|
|
1523
|
-
async function
|
|
1557
|
+
async function d() {
|
|
1524
1558
|
await n();
|
|
1525
1559
|
}
|
|
1526
|
-
return
|
|
1527
|
-
onValueUpdate:
|
|
1528
|
-
onReset:
|
|
1529
|
-
getErrors:
|
|
1530
|
-
}), (
|
|
1531
|
-
class:
|
|
1532
|
-
key:
|
|
1560
|
+
return o({
|
|
1561
|
+
onValueUpdate: d,
|
|
1562
|
+
onReset: m,
|
|
1563
|
+
getErrors: f
|
|
1564
|
+
}), (V, y) => (v(!0), B(N, null, Q(e.value, (C, x) => (v(), B("div", {
|
|
1565
|
+
class: j(["repeat-input-wrapper", l.value.className]),
|
|
1566
|
+
key: x
|
|
1533
1567
|
}, [
|
|
1534
|
-
P(i(
|
|
1535
|
-
default:
|
|
1536
|
-
P(i(
|
|
1568
|
+
P(i(ue), { class: "repeat-row" }, {
|
|
1569
|
+
default: w(() => [
|
|
1570
|
+
P(i(ne), {
|
|
1537
1571
|
size: "11",
|
|
1538
1572
|
class: "form-fields-column"
|
|
1539
1573
|
}, {
|
|
1540
|
-
default:
|
|
1541
|
-
P(i(
|
|
1542
|
-
default:
|
|
1543
|
-
(
|
|
1544
|
-
var
|
|
1545
|
-
return
|
|
1546
|
-
i(
|
|
1547
|
-
key: `${
|
|
1548
|
-
size: ((
|
|
1549
|
-
"size-sm": (
|
|
1550
|
-
"size-md": (Y =
|
|
1551
|
-
"size-lg": (ee =
|
|
1552
|
-
"size-xl": (
|
|
1574
|
+
default: w(() => [
|
|
1575
|
+
P(i(ue), { class: "fields-row" }, {
|
|
1576
|
+
default: w(() => [
|
|
1577
|
+
(v(!0), B(N, null, Q(Object.keys(C), ($) => {
|
|
1578
|
+
var L, X, Y, ee, te;
|
|
1579
|
+
return v(), B(N, null, [
|
|
1580
|
+
i(ye)(C[$], V.data, V.computedData) ? (v(), b(i(ne), {
|
|
1581
|
+
key: `${x}-${$}`,
|
|
1582
|
+
size: ((L = C[$].grid) == null ? void 0 : L.xs) ?? "12",
|
|
1583
|
+
"size-sm": (X = C[$].grid) == null ? void 0 : X.sm,
|
|
1584
|
+
"size-md": (Y = C[$].grid) == null ? void 0 : Y.md,
|
|
1585
|
+
"size-lg": (ee = C[$].grid) == null ? void 0 : ee.lg,
|
|
1586
|
+
"size-xl": (te = C[$].grid) == null ? void 0 : te.xl,
|
|
1553
1587
|
class: "ion-margin-bottom"
|
|
1554
1588
|
}, {
|
|
1555
|
-
default:
|
|
1556
|
-
(
|
|
1557
|
-
modelValue:
|
|
1558
|
-
"onUpdate:modelValue": (
|
|
1559
|
-
schema:
|
|
1560
|
-
"ref-key": `${
|
|
1589
|
+
default: w(() => [
|
|
1590
|
+
(v(), b(he(C[$].type), {
|
|
1591
|
+
modelValue: C[$],
|
|
1592
|
+
"onUpdate:modelValue": (G) => C[$] = G,
|
|
1593
|
+
schema: C,
|
|
1594
|
+
"ref-key": `${x}-${$}`,
|
|
1561
1595
|
ref_for: !0,
|
|
1562
1596
|
ref_key: "dynamicRefs",
|
|
1563
1597
|
ref: a,
|
|
@@ -1565,7 +1599,7 @@ const ye = /* @__PURE__ */ q({
|
|
|
1565
1599
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "ref-key"]))
|
|
1566
1600
|
]),
|
|
1567
1601
|
_: 2
|
|
1568
|
-
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) :
|
|
1602
|
+
}, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
|
|
1569
1603
|
], 64);
|
|
1570
1604
|
}), 256))
|
|
1571
1605
|
]),
|
|
@@ -1574,40 +1608,40 @@ const ye = /* @__PURE__ */ q({
|
|
|
1574
1608
|
]),
|
|
1575
1609
|
_: 2
|
|
1576
1610
|
}, 1024),
|
|
1577
|
-
P(i(
|
|
1611
|
+
P(i(ne), {
|
|
1578
1612
|
size: "1",
|
|
1579
1613
|
class: "button-column"
|
|
1580
1614
|
}, {
|
|
1581
|
-
default:
|
|
1582
|
-
|
|
1583
|
-
|
|
1615
|
+
default: w(() => [
|
|
1616
|
+
U("div", qt, [
|
|
1617
|
+
x === e.value.length - 1 ? (v(), b(i(ge), {
|
|
1584
1618
|
key: 0,
|
|
1585
1619
|
onClick: p,
|
|
1586
1620
|
color: "primary",
|
|
1587
1621
|
size: "small"
|
|
1588
1622
|
}, {
|
|
1589
|
-
default:
|
|
1590
|
-
P(i(
|
|
1623
|
+
default: w(() => [
|
|
1624
|
+
P(i(be), {
|
|
1591
1625
|
slot: "icon-only",
|
|
1592
|
-
icon: i(
|
|
1626
|
+
icon: i(Je)
|
|
1593
1627
|
}, null, 8, ["icon"])
|
|
1594
1628
|
]),
|
|
1595
1629
|
_: 1
|
|
1596
|
-
})) :
|
|
1597
|
-
e.value.length > 1 ? (
|
|
1630
|
+
})) : z("", !0),
|
|
1631
|
+
e.value.length > 1 ? (v(), b(i(ge), {
|
|
1598
1632
|
key: 1,
|
|
1599
|
-
onClick: (
|
|
1633
|
+
onClick: ($) => c(x),
|
|
1600
1634
|
color: "warning",
|
|
1601
1635
|
size: "small"
|
|
1602
1636
|
}, {
|
|
1603
|
-
default:
|
|
1604
|
-
P(i(
|
|
1637
|
+
default: w(() => [
|
|
1638
|
+
P(i(be), {
|
|
1605
1639
|
slot: "icon-only",
|
|
1606
|
-
icon: i(
|
|
1640
|
+
icon: i(Qe)
|
|
1607
1641
|
}, null, 8, ["icon"])
|
|
1608
1642
|
]),
|
|
1609
1643
|
_: 2
|
|
1610
|
-
}, 1032, ["onClick"])) :
|
|
1644
|
+
}, 1032, ["onClick"])) : z("", !0)
|
|
1611
1645
|
])
|
|
1612
1646
|
]),
|
|
1613
1647
|
_: 2
|
|
@@ -1617,123 +1651,141 @@ const ye = /* @__PURE__ */ q({
|
|
|
1617
1651
|
}, 1024)
|
|
1618
1652
|
], 2))), 128));
|
|
1619
1653
|
}
|
|
1620
|
-
}), Lt = /* @__PURE__ */
|
|
1654
|
+
}), Lt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-0eb7594d"]]), Mt = /* @__PURE__ */ D({
|
|
1621
1655
|
__name: "CheckboxInput",
|
|
1622
|
-
props: /* @__PURE__ */
|
|
1656
|
+
props: /* @__PURE__ */ W({
|
|
1623
1657
|
schema: {}
|
|
1624
1658
|
}, {
|
|
1625
1659
|
modelValue: { type: Object, default: {} },
|
|
1626
1660
|
modelModifiers: {}
|
|
1627
1661
|
}),
|
|
1628
1662
|
emits: ["update:modelValue"],
|
|
1629
|
-
setup(t, { expose:
|
|
1630
|
-
const l = t, e =
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1663
|
+
setup(t, { expose: o }) {
|
|
1664
|
+
const l = t, e = Z(t, "modelValue"), a = R(null), s = R(e.value.value), u = O(() => l.schema), n = O(() => ut(e.value)), { onValueUpdate: h, onFocus: p, getErrors: c } = ve(a, e, s, u);
|
|
1665
|
+
function m() {
|
|
1666
|
+
s.value = !1, e.value.error = "", e.value.value = !1;
|
|
1633
1667
|
}
|
|
1634
|
-
return
|
|
1668
|
+
return q(
|
|
1635
1669
|
() => e.value.value,
|
|
1636
|
-
(
|
|
1637
|
-
),
|
|
1638
|
-
onValueUpdate:
|
|
1639
|
-
onReset:
|
|
1640
|
-
getErrors:
|
|
1641
|
-
}), (
|
|
1642
|
-
modelValue:
|
|
1643
|
-
"onUpdate:modelValue":
|
|
1670
|
+
(f) => s.value = f
|
|
1671
|
+
), o({
|
|
1672
|
+
onValueUpdate: h,
|
|
1673
|
+
onReset: m,
|
|
1674
|
+
getErrors: c
|
|
1675
|
+
}), (f, d) => (v(), b(i(Re), {
|
|
1676
|
+
modelValue: s.value,
|
|
1677
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => s.value = V),
|
|
1644
1678
|
ref_key: "inputRef",
|
|
1645
1679
|
ref: a,
|
|
1646
1680
|
justify: "start",
|
|
1647
|
-
class:
|
|
1681
|
+
class: j(e.value.className),
|
|
1648
1682
|
required: e.value.required,
|
|
1649
1683
|
"error-text": e.value.error,
|
|
1650
1684
|
disabled: e.value.disabled,
|
|
1651
1685
|
onIonFocus: i(p),
|
|
1652
|
-
onIonChange: i(
|
|
1653
|
-
onIonBlur: i(
|
|
1686
|
+
onIonChange: i(h),
|
|
1687
|
+
onIonBlur: i(h),
|
|
1654
1688
|
style: { width: "100%" }
|
|
1655
1689
|
}, {
|
|
1656
|
-
default:
|
|
1657
|
-
|
|
1690
|
+
default: w(() => [
|
|
1691
|
+
M(T(n.value), 1)
|
|
1658
1692
|
]),
|
|
1659
1693
|
_: 1
|
|
1660
1694
|
}, 8, ["modelValue", "class", "required", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"]));
|
|
1661
1695
|
}
|
|
1662
|
-
}), jt = /* @__PURE__ */
|
|
1696
|
+
}), jt = { class: "radio-content" }, Gt = { class: "radio-label" }, Ht = /* @__PURE__ */ D({
|
|
1663
1697
|
__name: "RadioInput",
|
|
1664
|
-
props: /* @__PURE__ */
|
|
1698
|
+
props: /* @__PURE__ */ W({
|
|
1665
1699
|
schema: {}
|
|
1666
1700
|
}, {
|
|
1667
1701
|
modelValue: { type: Object, default: {} },
|
|
1668
1702
|
modelModifiers: {}
|
|
1669
1703
|
}),
|
|
1670
1704
|
emits: ["update:modelValue"],
|
|
1671
|
-
setup(t, { expose:
|
|
1672
|
-
const l = t, e =
|
|
1705
|
+
setup(t, { expose: o }) {
|
|
1706
|
+
const l = t, e = Z(t, "modelValue"), a = R(null), s = R(e.value.value), u = O(() => l.schema), n = R([]), { onValueUpdate: h, onFocus: p, getErrors: c, isValid: m } = ve(
|
|
1673
1707
|
a,
|
|
1674
1708
|
e,
|
|
1675
|
-
|
|
1676
|
-
|
|
1709
|
+
s,
|
|
1710
|
+
u
|
|
1677
1711
|
);
|
|
1678
|
-
function
|
|
1679
|
-
e.value.error = "",
|
|
1712
|
+
function f() {
|
|
1713
|
+
e.value.error = "", s.value = void 0, e.value.value = void 0;
|
|
1680
1714
|
}
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
1715
|
+
function d(y, C) {
|
|
1716
|
+
return (y == null ? void 0 : y.value) === (C == null ? void 0 : C.value);
|
|
1683
1717
|
}
|
|
1684
|
-
async function
|
|
1718
|
+
async function V() {
|
|
1685
1719
|
typeof e.value.options == "function" ? n.value = await e.value.options() : n.value = e.value.options;
|
|
1686
1720
|
}
|
|
1687
|
-
return
|
|
1721
|
+
return q(
|
|
1688
1722
|
() => e.value.value,
|
|
1689
|
-
(
|
|
1690
|
-
),
|
|
1691
|
-
onValueUpdate:
|
|
1692
|
-
onReset:
|
|
1693
|
-
getErrors:
|
|
1694
|
-
isValid:
|
|
1695
|
-
}),
|
|
1696
|
-
P(
|
|
1697
|
-
|
|
1698
|
-
e.value.error ? (
|
|
1723
|
+
(y) => s.value = y
|
|
1724
|
+
), o({
|
|
1725
|
+
onValueUpdate: h,
|
|
1726
|
+
onReset: f,
|
|
1727
|
+
getErrors: c,
|
|
1728
|
+
isValid: m
|
|
1729
|
+
}), xe(V), (y, C) => (v(), B(N, null, [
|
|
1730
|
+
P(_e, { model: e.value }, null, 8, ["model"]),
|
|
1731
|
+
C[1] || (C[1] = U("br", null, null, -1)),
|
|
1732
|
+
e.value.error ? (v(), b(i(Ge), {
|
|
1699
1733
|
key: 0,
|
|
1700
1734
|
color: "danger"
|
|
1701
1735
|
}, {
|
|
1702
|
-
default:
|
|
1703
|
-
|
|
1736
|
+
default: w(() => [
|
|
1737
|
+
M(T(e.value.error), 1)
|
|
1704
1738
|
]),
|
|
1705
1739
|
_: 1
|
|
1706
|
-
})) :
|
|
1707
|
-
P(i(
|
|
1708
|
-
default:
|
|
1709
|
-
P(i(
|
|
1710
|
-
modelValue:
|
|
1711
|
-
"onUpdate:modelValue":
|
|
1712
|
-
class:
|
|
1740
|
+
})) : z("", !0),
|
|
1741
|
+
P(i(ke), null, {
|
|
1742
|
+
default: w(() => [
|
|
1743
|
+
P(i(He), {
|
|
1744
|
+
modelValue: s.value,
|
|
1745
|
+
"onUpdate:modelValue": C[0] || (C[0] = (x) => s.value = x),
|
|
1746
|
+
class: j(e.value.className),
|
|
1713
1747
|
required: e.value.required,
|
|
1714
1748
|
disabled: e.value.disabled,
|
|
1715
|
-
compareWith:
|
|
1749
|
+
compareWith: d,
|
|
1716
1750
|
"allow-empty-selection": !e.value.required,
|
|
1717
1751
|
onIonFocus: i(p),
|
|
1718
|
-
onIonChange: i(
|
|
1719
|
-
onIonBlur: i(
|
|
1752
|
+
onIonChange: i(h),
|
|
1753
|
+
onIonBlur: i(h),
|
|
1720
1754
|
style: { width: "100%" }
|
|
1721
1755
|
}, {
|
|
1722
|
-
default:
|
|
1723
|
-
(
|
|
1724
|
-
key:
|
|
1756
|
+
default: w(() => [
|
|
1757
|
+
(v(!0), B(N, null, Q(n.value, (x) => (v(), b(i(ke), {
|
|
1758
|
+
key: x.value,
|
|
1725
1759
|
lines: e.value.showOptionsSeparator ? "none" : "full"
|
|
1726
1760
|
}, {
|
|
1727
|
-
default:
|
|
1728
|
-
P(i(
|
|
1729
|
-
value:
|
|
1730
|
-
disabled: e.value.disabled,
|
|
1761
|
+
default: w(() => [
|
|
1762
|
+
P(i(Ke), {
|
|
1763
|
+
value: x,
|
|
1764
|
+
disabled: e.value.disabled || x.disabled,
|
|
1731
1765
|
"label-placement": "end",
|
|
1732
1766
|
justify: "start"
|
|
1733
1767
|
}, {
|
|
1734
|
-
default:
|
|
1735
|
-
|
|
1736
|
-
|
|
1768
|
+
default: w(() => {
|
|
1769
|
+
var $;
|
|
1770
|
+
return [
|
|
1771
|
+
U("div", jt, [
|
|
1772
|
+
U("div", Gt, T(x.label), 1),
|
|
1773
|
+
i($e)(x) ? (v(), b(i(Ee), {
|
|
1774
|
+
key: 0,
|
|
1775
|
+
color: ($ = x.description) == null ? void 0 : $.color,
|
|
1776
|
+
class: "radio-description"
|
|
1777
|
+
}, {
|
|
1778
|
+
default: w(() => {
|
|
1779
|
+
var L;
|
|
1780
|
+
return [
|
|
1781
|
+
M(T((L = x.description) == null ? void 0 : L.text), 1)
|
|
1782
|
+
];
|
|
1783
|
+
}),
|
|
1784
|
+
_: 2
|
|
1785
|
+
}, 1032, ["color"])) : z("", !0)
|
|
1786
|
+
])
|
|
1787
|
+
];
|
|
1788
|
+
}),
|
|
1737
1789
|
_: 2
|
|
1738
1790
|
}, 1032, ["value", "disabled"])
|
|
1739
1791
|
]),
|
|
@@ -1747,10 +1799,10 @@ const ye = /* @__PURE__ */ q({
|
|
|
1747
1799
|
})
|
|
1748
1800
|
], 64));
|
|
1749
1801
|
}
|
|
1750
|
-
}),
|
|
1802
|
+
}), Kt = /* @__PURE__ */ re(Ht, [["__scopeId", "data-v-a25d68e7"]]), Wt = { class: "form-section-header" }, Zt = { class: "form-section-title" }, Jt = {
|
|
1751
1803
|
key: 0,
|
|
1752
1804
|
class: "form-section-subtitle"
|
|
1753
|
-
},
|
|
1805
|
+
}, Qt = /* @__PURE__ */ D({
|
|
1754
1806
|
__name: "SectionTitle",
|
|
1755
1807
|
props: {
|
|
1756
1808
|
modelValue: {},
|
|
@@ -1761,104 +1813,104 @@ const ye = /* @__PURE__ */ q({
|
|
|
1761
1813
|
setup(t) {
|
|
1762
1814
|
const l = t.modelValue;
|
|
1763
1815
|
return (e, a) => {
|
|
1764
|
-
var
|
|
1765
|
-
return
|
|
1766
|
-
size: ((
|
|
1767
|
-
"size-sm": (
|
|
1816
|
+
var s, u, n, h, p;
|
|
1817
|
+
return v(), b(i(ne), {
|
|
1818
|
+
size: ((s = i(l).grid) == null ? void 0 : s.xs) ?? "12",
|
|
1819
|
+
"size-sm": (u = i(l).grid) == null ? void 0 : u.sm,
|
|
1768
1820
|
"size-md": (n = i(l).grid) == null ? void 0 : n.md,
|
|
1769
|
-
"size-lg": (
|
|
1821
|
+
"size-lg": (h = i(l).grid) == null ? void 0 : h.lg,
|
|
1770
1822
|
"size-xl": (p = i(l).grid) == null ? void 0 : p.xl,
|
|
1771
|
-
class:
|
|
1823
|
+
class: j(["form-section-container", i(l).className])
|
|
1772
1824
|
}, {
|
|
1773
|
-
default:
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
i(l).subtitle ? (
|
|
1825
|
+
default: w(() => [
|
|
1826
|
+
U("div", Wt, [
|
|
1827
|
+
U("h3", Zt, T(i(l).title), 1),
|
|
1828
|
+
i(l).subtitle ? (v(), B("p", Jt, T(i(l).subtitle), 1)) : z("", !0)
|
|
1777
1829
|
])
|
|
1778
1830
|
]),
|
|
1779
1831
|
_: 1
|
|
1780
1832
|
}, 8, ["size", "size-sm", "size-md", "size-lg", "size-xl", "class"]);
|
|
1781
1833
|
};
|
|
1782
1834
|
}
|
|
1783
|
-
}),
|
|
1784
|
-
function
|
|
1785
|
-
const e =
|
|
1786
|
-
function
|
|
1787
|
-
a.value[
|
|
1788
|
-
var
|
|
1789
|
-
(
|
|
1790
|
-
}), p(
|
|
1835
|
+
}), Xt = /* @__PURE__ */ re(Qt, [["__scopeId", "data-v-e0bf7af0"]]);
|
|
1836
|
+
function al(t, o, l) {
|
|
1837
|
+
const e = R({}), a = R({});
|
|
1838
|
+
function s(c, m, f) {
|
|
1839
|
+
a.value[c] = f, m.forEach((d) => {
|
|
1840
|
+
var V;
|
|
1841
|
+
(V = e.value)[d] ?? (V[d] = []), e.value[d].includes(c) || e.value[d].push(c);
|
|
1842
|
+
}), p(c);
|
|
1791
1843
|
}
|
|
1792
|
-
function
|
|
1793
|
-
return Object.entries(e.value).filter(([,
|
|
1794
|
-
(
|
|
1844
|
+
function u(c) {
|
|
1845
|
+
return Object.entries(e.value).filter(([, f]) => f.includes(c)).map(([f]) => f).reduce(
|
|
1846
|
+
(f, d) => (f[d] = o.value[d] ?? l.value[d], f),
|
|
1795
1847
|
{}
|
|
1796
1848
|
);
|
|
1797
1849
|
}
|
|
1798
|
-
function n(
|
|
1799
|
-
return
|
|
1850
|
+
function n(c, m) {
|
|
1851
|
+
return c ? Array.isArray(c) ? c.some((f) => m.some((d) => h(f, d.value))) : m.some((f) => h(c, f.value)) : !1;
|
|
1800
1852
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return typeof
|
|
1853
|
+
function h(c, m) {
|
|
1854
|
+
return typeof c == "object" && c !== null ? c.value === m : String(c) === String(m);
|
|
1803
1855
|
}
|
|
1804
|
-
async function p(
|
|
1805
|
-
if (!a.value[
|
|
1806
|
-
const
|
|
1807
|
-
if (!(
|
|
1808
|
-
(
|
|
1856
|
+
async function p(c, m) {
|
|
1857
|
+
if (!a.value[c]) return;
|
|
1858
|
+
const f = u(c), d = Object.keys(f);
|
|
1859
|
+
if (!(d.length === 0 || !d.every(
|
|
1860
|
+
(y) => f[y] !== void 0 && f[y] !== null
|
|
1809
1861
|
)))
|
|
1810
1862
|
try {
|
|
1811
|
-
const
|
|
1812
|
-
if (!t.value[
|
|
1813
|
-
const
|
|
1814
|
-
if (!K(
|
|
1815
|
-
|
|
1816
|
-
const
|
|
1817
|
-
if (
|
|
1818
|
-
n(
|
|
1819
|
-
} catch (
|
|
1820
|
-
console.error(`Error loading options for ${
|
|
1863
|
+
const y = a.value[c], C = await y(m, f);
|
|
1864
|
+
if (!t.value[c]) return;
|
|
1865
|
+
const x = t.value[c];
|
|
1866
|
+
if (!K(x)) return;
|
|
1867
|
+
x.options = C;
|
|
1868
|
+
const $ = x.value;
|
|
1869
|
+
if (!$) return;
|
|
1870
|
+
n($, C) || (x.value = x.multiple ? [] : "");
|
|
1871
|
+
} catch (y) {
|
|
1872
|
+
console.error(`Error loading options for ${c}:`, y);
|
|
1821
1873
|
}
|
|
1822
1874
|
}
|
|
1823
|
-
return
|
|
1824
|
-
[
|
|
1875
|
+
return q(
|
|
1876
|
+
[o, l],
|
|
1825
1877
|
() => {
|
|
1826
|
-
Object.entries(e.value).forEach(([
|
|
1827
|
-
(
|
|
1828
|
-
p(
|
|
1878
|
+
Object.entries(e.value).forEach(([c, m]) => {
|
|
1879
|
+
(o.value[c] !== void 0 || l.value[c] !== void 0) && m.forEach((f) => {
|
|
1880
|
+
p(f);
|
|
1829
1881
|
});
|
|
1830
1882
|
});
|
|
1831
1883
|
},
|
|
1832
1884
|
{ deep: !0, immediate: !0 }
|
|
1833
1885
|
), {
|
|
1834
|
-
registerDependency:
|
|
1886
|
+
registerDependency: s,
|
|
1835
1887
|
updateOptions: p
|
|
1836
1888
|
};
|
|
1837
1889
|
}
|
|
1838
|
-
const
|
|
1839
|
-
install(t) {
|
|
1840
|
-
t.component("VForm",
|
|
1890
|
+
const nl = {
|
|
1891
|
+
install(t, o) {
|
|
1892
|
+
o && t.provide("globalConfig", o), t.component("VForm", Ot), t.component("TextInput", At), t.component("DateInput", Rt), t.component("NumberInput", $t), t.component("EmailInput", Bt), t.component("PasswordInput", Ft), t.component("SelectInput", Ut), t.component("TextAreaInput", Dt), t.component("RepeatInput", Lt), t.component("CheckboxInput", Mt), t.component("RadioInput", Kt), t.component("FormSection", Xt), t.directive("maskito", Xe);
|
|
1841
1893
|
}
|
|
1842
1894
|
};
|
|
1843
1895
|
export {
|
|
1844
1896
|
Mt as CheckboxInput,
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1897
|
+
Rt as DateInput,
|
|
1898
|
+
Bt as EmailInput,
|
|
1899
|
+
Ot as FormBuilder,
|
|
1900
|
+
Xt as FormSection,
|
|
1849
1901
|
$t as NumberInput,
|
|
1850
|
-
|
|
1851
|
-
|
|
1902
|
+
Ft as PasswordInput,
|
|
1903
|
+
Kt as RadioInput,
|
|
1852
1904
|
Lt as RepeatInput,
|
|
1853
|
-
|
|
1854
|
-
|
|
1905
|
+
Ut as SelectInput,
|
|
1906
|
+
Dt as TextAreaInput,
|
|
1855
1907
|
At as TextInput,
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1908
|
+
nl as VForm,
|
|
1909
|
+
nl as default,
|
|
1910
|
+
rt as useDataTransformation,
|
|
1911
|
+
al as useDependentOptions,
|
|
1912
|
+
Be as useFormValidation,
|
|
1913
|
+
ve as useInputValidation,
|
|
1914
|
+
it as useMultiStepForm
|
|
1863
1915
|
};
|
|
1864
1916
|
//# sourceMappingURL=index.es.js.map
|