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