@solfacil/girassol 0.11.0 → 0.12.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.
@@ -1274,15 +1274,15 @@ function rn(e, t, i) {
1274
1274
  return He(i == null ? void 0 : i.type) ? Vl(e, t, i) : cn(e, t, i);
1275
1275
  }
1276
1276
  function cn(e, t, i) {
1277
- const { initialValue: n, validateOnMount: l, bails: a, type: s, checkedValue: o, label: r, validateOnValueUpdate: c, uncheckedValue: M, controlled: N, keepValueOnUnmount: I, modelPropName: d, syncVModel: v, form: T } = kl(u(e), i), G = N ? di(ut) : void 0, L = T || G;
1278
- let Z = !1;
1279
- const { id: b, value: h, initialValue: p, meta: w, setState: O, errors: W, errorMessage: te } = wl(e, {
1277
+ const { initialValue: n, validateOnMount: l, bails: a, type: s, checkedValue: o, label: r, validateOnValueUpdate: c, uncheckedValue: M, controlled: N, keepValueOnUnmount: I, modelPropName: d, syncVModel: v, form: w } = kl(u(e), i), G = N ? di(ut) : void 0, L = w || G;
1278
+ let T = !1;
1279
+ const { id: b, value: h, initialValue: p, meta: Z, setState: O, errors: W, errorMessage: te } = wl(e, {
1280
1280
  modelValue: n,
1281
1281
  form: L
1282
1282
  });
1283
1283
  v && Ol({ value: h, prop: d, handleChange: ne });
1284
1284
  const R = () => {
1285
- w.touched = !0;
1285
+ Z.touched = !0;
1286
1286
  }, ae = x(() => {
1287
1287
  let S = u(t);
1288
1288
  const q = u(L == null ? void 0 : L.schema);
@@ -1296,7 +1296,7 @@ function cn(e, t, i) {
1296
1296
  bails: a
1297
1297
  });
1298
1298
  }
1299
- const ce = kt(async () => (w.pending = !0, w.validated = !0, re("validated-only")), (S) => (Z && (S.valid = !0, S.errors = []), O({ errors: S.errors }), w.pending = !1, S)), Ne = kt(async () => re("silent"), (S) => (Z && (S.valid = !0), w.valid = S.valid, S));
1299
+ const ce = kt(async () => (Z.pending = !0, Z.validated = !0, re("validated-only")), (S) => (T && (S.valid = !0, S.errors = []), O({ errors: S.errors }), Z.pending = !1, S)), Ne = kt(async () => re("silent"), (S) => (T && (S.valid = !0), Z.valid = S.valid, S));
1300
1300
  function ve(S) {
1301
1301
  return (S == null ? void 0 : S.mode) === "silent" ? Ne() : ce();
1302
1302
  }
@@ -1310,7 +1310,7 @@ function cn(e, t, i) {
1310
1310
  (!L || !L.validateSchema) && Ne();
1311
1311
  });
1312
1312
  function z(S) {
1313
- w.touched = S;
1313
+ Z.touched = S;
1314
1314
  }
1315
1315
  let E, D = ie(h.value);
1316
1316
  function A() {
@@ -1332,7 +1332,7 @@ function cn(e, t, i) {
1332
1332
  initialValue: ie(de),
1333
1333
  touched: (q = S == null ? void 0 : S.touched) !== null && q !== void 0 ? q : !1,
1334
1334
  errors: (S == null ? void 0 : S.errors) || []
1335
- }), w.pending = !1, w.validated = !1, Ne(), Ee(() => {
1335
+ }), Z.pending = !1, Z.validated = !1, Ne(), Ee(() => {
1336
1336
  A();
1337
1337
  });
1338
1338
  }
@@ -1347,7 +1347,7 @@ function cn(e, t, i) {
1347
1347
  name: e,
1348
1348
  label: r,
1349
1349
  value: h,
1350
- meta: w,
1350
+ meta: Z,
1351
1351
  errors: W,
1352
1352
  errorMessage: te,
1353
1353
  type: s,
@@ -1366,15 +1366,15 @@ function cn(e, t, i) {
1366
1366
  setValue: B
1367
1367
  };
1368
1368
  if (Vi(al, se), Pe(t) && typeof u(t) != "function" && ge(t, (S, q) => {
1369
- Me(S, q) || (w.validated ? ce() : Ne());
1369
+ Me(S, q) || (Z.validated ? ce() : Ne());
1370
1370
  }, {
1371
1371
  deep: !0
1372
- }), process.env.NODE_ENV !== "production" && (se._vm = ke(), ge(() => Object.assign(Object.assign({ errors: W.value }, w), { value: h.value }), Qe, {
1372
+ }), process.env.NODE_ENV !== "production" && (se._vm = ke(), ge(() => Object.assign(Object.assign({ errors: W.value }, Z), { value: h.value }), Qe, {
1373
1373
  deep: !0
1374
1374
  }), L || Ll(se)), !L)
1375
1375
  return se;
1376
1376
  L.register(se), Oi(() => {
1377
- Z = !0, L.unregister(se);
1377
+ T = !0, L.unregister(se);
1378
1378
  });
1379
1379
  const je = x(() => {
1380
1380
  const S = ae.value;
@@ -1389,7 +1389,7 @@ function cn(e, t, i) {
1389
1389
  return ge(je, (S, q) => {
1390
1390
  if (!Object.keys(S).length)
1391
1391
  return;
1392
- !Me(S, q) && (w.validated ? ce() : Ne());
1392
+ !Me(S, q) && (Z.validated ? ce() : Ne());
1393
1393
  }), se;
1394
1394
  }
1395
1395
  function kl(e, t) {
@@ -1527,7 +1527,7 @@ X({
1527
1527
  }
1528
1528
  },
1529
1529
  setup(e, t) {
1530
- const i = ze(e, "rules"), n = ze(e, "name"), l = ze(e, "label"), a = ze(e, "uncheckedValue"), s = ze(e, "keepValue"), { errors: o, value: r, errorMessage: c, validate: M, handleChange: N, handleBlur: I, setTouched: d, resetField: v, handleReset: T, meta: G, checked: L, setErrors: Z } = rn(n, i, {
1530
+ const i = ze(e, "rules"), n = ze(e, "name"), l = ze(e, "label"), a = ze(e, "uncheckedValue"), s = ze(e, "keepValue"), { errors: o, value: r, errorMessage: c, validate: M, handleChange: N, handleBlur: I, setTouched: d, resetField: v, handleReset: w, meta: G, checked: L, setErrors: T } = rn(n, i, {
1531
1531
  validateOnMount: e.validateOnMount,
1532
1532
  bails: e.bails,
1533
1533
  standalone: e.standalone,
@@ -1544,7 +1544,7 @@ X({
1544
1544
  He(t.attrs.type) || (r.value = Ii(W));
1545
1545
  }, p = function(te) {
1546
1546
  h(te), t.emit("update:modelValue", r.value);
1547
- }, w = x(() => {
1547
+ }, Z = x(() => {
1548
1548
  const { validateOnInput: W, validateOnChange: te, validateOnBlur: R, validateOnModelUpdate: ae } = Yl(e), re = [I, t.attrs.onBlur, R ? M : void 0].filter(Boolean), ce = [(z) => b(z, W), t.attrs.onInput].filter(Boolean), Ne = [(z) => b(z, te), t.attrs.onChange].filter(Boolean), ve = {
1549
1549
  name: e.name,
1550
1550
  onBlur: re,
@@ -1557,7 +1557,7 @@ X({
1557
1557
  });
1558
1558
  function O() {
1559
1559
  return {
1560
- field: w.value,
1560
+ field: Z.value,
1561
1561
  value: r.value,
1562
1562
  meta: G,
1563
1563
  errors: o.value,
@@ -1566,21 +1566,21 @@ X({
1566
1566
  resetField: v,
1567
1567
  handleChange: b,
1568
1568
  handleInput: p,
1569
- handleReset: T,
1569
+ handleReset: w,
1570
1570
  handleBlur: I,
1571
1571
  setTouched: d,
1572
- setErrors: Z
1572
+ setErrors: T
1573
1573
  };
1574
1574
  }
1575
1575
  return t.expose({
1576
- setErrors: Z,
1576
+ setErrors: T,
1577
1577
  setTouched: d,
1578
1578
  reset: v,
1579
1579
  validate: M,
1580
1580
  handleChange: N
1581
1581
  }), () => {
1582
1582
  const W = li(zi(e, t)), te = St(W, t, O);
1583
- return W ? gt(W, Object.assign(Object.assign({}, t.attrs), w.value), te) : te;
1583
+ return W ? gt(W, Object.assign(Object.assign({}, t.attrs), Z.value), te) : te;
1584
1584
  };
1585
1585
  }
1586
1586
  });
@@ -1614,7 +1614,7 @@ function Ul(e) {
1614
1614
  const y = a.value[g];
1615
1615
  return Array.isArray(y) ? y[0] : y;
1616
1616
  }
1617
- function T(g) {
1617
+ function w(g) {
1618
1618
  return !!a.value[g];
1619
1619
  }
1620
1620
  const G = x(() => Ie(a.value).reduce((g, y) => {
@@ -1624,7 +1624,7 @@ function Ul(e) {
1624
1624
  var P;
1625
1625
  const H = v(y);
1626
1626
  return H && (g[y] = (P = H.bails) !== null && P !== void 0 ? P : !0), g;
1627
- }, {})), Z = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), b = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: h, originalInitialValues: p, setInitialValues: w } = Ql(a, c, e == null ? void 0 : e.initialValues), O = Hl(a, c, p, d), W = x(() => [...n, ...Ie(a.value)].reduce((g, y) => {
1627
+ }, {})), T = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), b = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: h, originalInitialValues: p, setInitialValues: Z } = Ql(a, c, e == null ? void 0 : e.initialValues), O = Hl(a, c, p, d), W = x(() => [...n, ...Ie(a.value)].reduce((g, y) => {
1628
1628
  const P = oe(c, y);
1629
1629
  return Ze(g, y, P), g;
1630
1630
  }, {})), te = e == null ? void 0 : e.validationSchema, R = Ai(vi, 5), ae = Ai(vi, 5), re = kt(async (g) => await g === "silent" ? R() : ae(), (g, [y]) => {
@@ -1751,7 +1751,7 @@ function Ul(e) {
1751
1751
  function se(g) {
1752
1752
  const { value: y } = an(g, void 0, ne);
1753
1753
  return ge(y, () => {
1754
- T(u(g)) || It({ mode: "validated-only" });
1754
+ w(u(g)) || It({ mode: "validated-only" });
1755
1755
  }, {
1756
1756
  deep: !0
1757
1757
  }), n.add(u(g)), y;
@@ -1769,7 +1769,7 @@ function Ul(e) {
1769
1769
  });
1770
1770
  }
1771
1771
  function de(g) {
1772
- l = !0, D((y) => y.resetField()), g != null && g.values ? (w(g.values), Q(g == null ? void 0 : g.values)) : (w(p.value), Q(p.value)), g != null && g.touched && q(g.touched), Y((g == null ? void 0 : g.errors) || {}), o.value = (g == null ? void 0 : g.submitCount) || 0, Ee(() => {
1772
+ l = !0, D((y) => y.resetField()), g != null && g.values ? (Z(g.values), Q(g == null ? void 0 : g.values)) : (Z(p.value), Q(p.value)), g != null && g.touched && q(g.touched), Y((g == null ? void 0 : g.errors) || {}), o.value = (g == null ? void 0 : g.submitCount) || 0, Ee(() => {
1773
1773
  l = !1;
1774
1774
  });
1775
1775
  }
@@ -1800,10 +1800,10 @@ function Ul(e) {
1800
1800
  function Re(g) {
1801
1801
  const y = u(g.name);
1802
1802
  Ve(g, y), Pe(g.name) && ge(g.name, async (H, $) => {
1803
- await Ee(), pe(g, $), Ve(g, H), (d.value[$] || d.value[H]) && (A($, void 0), At(H)), await Ee(), T($) || Mt(c, $);
1803
+ await Ee(), pe(g, $), Ve(g, H), (d.value[$] || d.value[H]) && (A($, void 0), At(H)), await Ee(), w($) || Mt(c, $);
1804
1804
  });
1805
1805
  const P = u(g.errorMessage);
1806
- P && (Z == null ? void 0 : Z[y]) !== P && At(y), delete Z[y];
1806
+ P && (T == null ? void 0 : T[y]) !== P && At(y), delete T[y];
1807
1807
  }
1808
1808
  function dt(g) {
1809
1809
  const y = u(g.name), P = a.value[y], H = !!P && z(P);
@@ -1819,7 +1819,7 @@ function Ul(e) {
1819
1819
  }
1820
1820
  } else
1821
1821
  ee === u(g.checkedValue) && Mt(c, y);
1822
- if (!T(y)) {
1822
+ if (!w(y)) {
1823
1823
  if (A(y, void 0), le || H && Array.isArray(ee) && !qi(ee))
1824
1824
  return;
1825
1825
  Mt(c, y);
@@ -1990,21 +1990,21 @@ X({
1990
1990
  }
1991
1991
  },
1992
1992
  setup(e, t) {
1993
- const i = ze(e, "initialValues"), n = ze(e, "validationSchema"), l = ze(e, "keepValues"), { errors: a, values: s, meta: o, isSubmitting: r, submitCount: c, controlledValues: M, validate: N, validateField: I, handleReset: d, resetForm: v, handleSubmit: T, setErrors: G, setFieldError: L, setFieldValue: Z, setValues: b, setFieldTouched: h, setTouched: p } = Ul({
1993
+ const i = ze(e, "initialValues"), n = ze(e, "validationSchema"), l = ze(e, "keepValues"), { errors: a, values: s, meta: o, isSubmitting: r, submitCount: c, controlledValues: M, validate: N, validateField: I, handleReset: d, resetForm: v, handleSubmit: w, setErrors: G, setFieldError: L, setFieldValue: T, setValues: b, setFieldTouched: h, setTouched: p } = Ul({
1994
1994
  validationSchema: n.value ? n : void 0,
1995
1995
  initialValues: i,
1996
1996
  initialErrors: e.initialErrors,
1997
1997
  initialTouched: e.initialTouched,
1998
1998
  validateOnMount: e.validateOnMount,
1999
1999
  keepValuesOnUnmount: l
2000
- }), w = T((ae, { evt: re }) => {
2000
+ }), Z = w((ae, { evt: re }) => {
2001
2001
  Ki(re) && re.target.submit();
2002
- }, e.onInvalidSubmit), O = e.onSubmit ? T(e.onSubmit, e.onInvalidSubmit) : w;
2002
+ }, e.onInvalidSubmit), O = e.onSubmit ? w(e.onSubmit, e.onInvalidSubmit) : Z;
2003
2003
  function W(ae) {
2004
2004
  ri(ae) && ae.preventDefault(), d(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
2005
2005
  }
2006
2006
  function te(ae, re) {
2007
- return T(typeof ae == "function" && !re ? ae : re, e.onInvalidSubmit)(ae);
2007
+ return w(typeof ae == "function" && !re ? ae : re, e.onInvalidSubmit)(ae);
2008
2008
  }
2009
2009
  function R() {
2010
2010
  return {
@@ -2018,10 +2018,10 @@ X({
2018
2018
  validateField: I,
2019
2019
  handleSubmit: te,
2020
2020
  handleReset: d,
2021
- submitForm: w,
2021
+ submitForm: Z,
2022
2022
  setErrors: G,
2023
2023
  setFieldError: L,
2024
- setFieldValue: Z,
2024
+ setFieldValue: T,
2025
2025
  setValues: b,
2026
2026
  setFieldTouched: h,
2027
2027
  setTouched: p,
@@ -2031,7 +2031,7 @@ X({
2031
2031
  return t.expose({
2032
2032
  setFieldError: L,
2033
2033
  setErrors: G,
2034
- setFieldValue: Z,
2034
+ setFieldValue: T,
2035
2035
  setValues: b,
2036
2036
  setFieldTouched: h,
2037
2037
  setTouched: p,
@@ -2088,16 +2088,16 @@ function Fl(e) {
2088
2088
  key: h,
2089
2089
  value: ml({
2090
2090
  get() {
2091
- const w = oe(t == null ? void 0 : t.values, u(e), []) || [], O = i.value.findIndex((W) => W.key === h);
2092
- return O === -1 ? b : w[O];
2091
+ const Z = oe(t == null ? void 0 : t.values, u(e), []) || [], O = i.value.findIndex((W) => W.key === h);
2092
+ return O === -1 ? b : Z[O];
2093
2093
  },
2094
- set(w) {
2094
+ set(Z) {
2095
2095
  const O = i.value.findIndex((W) => W.key === h);
2096
2096
  if (O === -1) {
2097
2097
  Tt("Attempting to update a non-existent array item");
2098
2098
  return;
2099
2099
  }
2100
- T(O, w);
2100
+ w(O, Z);
2101
2101
  }
2102
2102
  }),
2103
2103
  isFirst: !1,
@@ -2108,71 +2108,71 @@ function Fl(e) {
2108
2108
  const h = u(e), p = oe(t == null ? void 0 : t.values, h);
2109
2109
  if (!p || !Array.isArray(p))
2110
2110
  return;
2111
- const w = [...p];
2112
- w.splice(b, 1), t == null || t.unsetInitialValue(h + `[${b}]`), t == null || t.setFieldValue(h, w), i.value.splice(b, 1), r();
2111
+ const Z = [...p];
2112
+ Z.splice(b, 1), t == null || t.unsetInitialValue(h + `[${b}]`), t == null || t.setFieldValue(h, Z), i.value.splice(b, 1), r();
2113
2113
  }
2114
2114
  function N(b) {
2115
- const h = u(e), p = oe(t == null ? void 0 : t.values, h), w = et(p) ? [] : p;
2116
- if (!Array.isArray(w))
2115
+ const h = u(e), p = oe(t == null ? void 0 : t.values, h), Z = et(p) ? [] : p;
2116
+ if (!Array.isArray(Z))
2117
2117
  return;
2118
- const O = [...w];
2118
+ const O = [...Z];
2119
2119
  O.push(b), t == null || t.stageInitialValue(h + `[${O.length - 1}]`, b), t == null || t.setFieldValue(h, O), i.value.push(c(b)), r();
2120
2120
  }
2121
2121
  function I(b, h) {
2122
- const p = u(e), w = oe(t == null ? void 0 : t.values, p);
2123
- if (!Array.isArray(w) || !(b in w) || !(h in w))
2122
+ const p = u(e), Z = oe(t == null ? void 0 : t.values, p);
2123
+ if (!Array.isArray(Z) || !(b in Z) || !(h in Z))
2124
2124
  return;
2125
- const O = [...w], W = [...i.value], te = O[b];
2125
+ const O = [...Z], W = [...i.value], te = O[b];
2126
2126
  O[b] = O[h], O[h] = te;
2127
2127
  const R = W[b];
2128
2128
  W[b] = W[h], W[h] = R, t == null || t.setFieldValue(p, O), i.value = W, r();
2129
2129
  }
2130
2130
  function d(b, h) {
2131
- const p = u(e), w = oe(t == null ? void 0 : t.values, p);
2132
- if (!Array.isArray(w) || w.length < b)
2131
+ const p = u(e), Z = oe(t == null ? void 0 : t.values, p);
2132
+ if (!Array.isArray(Z) || Z.length < b)
2133
2133
  return;
2134
- const O = [...w], W = [...i.value];
2134
+ const O = [...Z], W = [...i.value];
2135
2135
  O.splice(b, 0, h), W.splice(b, 0, c(h)), t == null || t.setFieldValue(p, O), i.value = W, r();
2136
2136
  }
2137
2137
  function v(b) {
2138
2138
  const h = u(e);
2139
2139
  t == null || t.setFieldValue(h, b), o();
2140
2140
  }
2141
- function T(b, h) {
2142
- const p = u(e), w = oe(t == null ? void 0 : t.values, p);
2143
- !Array.isArray(w) || w.length - 1 < b || (t == null || t.setFieldValue(`${p}[${b}]`, h), t == null || t.validate({ mode: "validated-only" }));
2141
+ function w(b, h) {
2142
+ const p = u(e), Z = oe(t == null ? void 0 : t.values, p);
2143
+ !Array.isArray(Z) || Z.length - 1 < b || (t == null || t.setFieldValue(`${p}[${b}]`, h), t == null || t.validate({ mode: "validated-only" }));
2144
2144
  }
2145
2145
  function G(b) {
2146
- const h = u(e), p = oe(t == null ? void 0 : t.values, h), w = et(p) ? [] : p;
2147
- if (!Array.isArray(w))
2146
+ const h = u(e), p = oe(t == null ? void 0 : t.values, h), Z = et(p) ? [] : p;
2147
+ if (!Array.isArray(Z))
2148
2148
  return;
2149
- const O = [b, ...w];
2149
+ const O = [b, ...Z];
2150
2150
  t == null || t.stageInitialValue(h + `[${O.length - 1}]`, b), t == null || t.setFieldValue(h, O), i.value.unshift(c(b)), r();
2151
2151
  }
2152
2152
  function L(b, h) {
2153
- const p = u(e), w = oe(t == null ? void 0 : t.values, p), O = et(w) ? [] : [...w];
2154
- if (!Array.isArray(w) || !(b in w) || !(h in w))
2153
+ const p = u(e), Z = oe(t == null ? void 0 : t.values, p), O = et(Z) ? [] : [...Z];
2154
+ if (!Array.isArray(Z) || !(b in Z) || !(h in Z))
2155
2155
  return;
2156
2156
  const W = [...i.value], te = W[b];
2157
2157
  W.splice(b, 1), W.splice(h, 0, te);
2158
2158
  const R = O[b];
2159
2159
  O.splice(b, 1), O.splice(h, 0, R), t == null || t.setFieldValue(p, O), i.value = W, r();
2160
2160
  }
2161
- const Z = {
2161
+ const T = {
2162
2162
  fields: i,
2163
2163
  remove: M,
2164
2164
  push: N,
2165
2165
  swap: I,
2166
2166
  insert: d,
2167
- update: T,
2167
+ update: w,
2168
2168
  replace: v,
2169
2169
  prepend: G,
2170
2170
  move: L
2171
2171
  };
2172
- return t.fieldArrays.push(Object.assign({ path: e, reset: o }, Z)), Oi(() => {
2172
+ return t.fieldArrays.push(Object.assign({ path: e, reset: o }, T)), Oi(() => {
2173
2173
  const b = t.fieldArrays.findIndex((h) => u(h.path) === u(e));
2174
2174
  b >= 0 && t.fieldArrays.splice(b, 1);
2175
- }), Z;
2175
+ }), T;
2176
2176
  }
2177
2177
  X({
2178
2178
  name: "FieldArray",
@@ -2719,10 +2719,10 @@ const xa = ["id", "data-testid", "aria-labelledby"], Aa = ["id", "data-testid"],
2719
2719
  direction: e.direction
2720
2720
  }, () => [
2721
2721
  (m(!0), j(Se, null, he(e.radios, (d, v) => {
2722
- var T;
2722
+ var w;
2723
2723
  return m(), j("li", { key: v }, [
2724
2724
  _(lt, Ge(N.$attrs, {
2725
- id: (T = d == null ? void 0 : d.id) != null ? T : `${d.value}`,
2725
+ id: (w = d == null ? void 0 : d.id) != null ? w : `${d.value}`,
2726
2726
  class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
2727
2727
  name: d.name,
2728
2728
  value: d.value,
@@ -2836,7 +2836,7 @@ const La = ["id", "data-testid", "aria-labelledby"], Ca = ["id", "data-testid"],
2836
2836
  function N(I) {
2837
2837
  var v;
2838
2838
  t("change", I.value);
2839
- const d = c(I.value) ? (v = l.value) == null ? void 0 : v.filter((T) => T !== I.value) : M(I.value);
2839
+ const d = c(I.value) ? (v = l.value) == null ? void 0 : v.filter((w) => w !== I.value) : M(I.value);
2840
2840
  l.value = d, t("update:modelValue", d);
2841
2841
  }
2842
2842
  return (I, d) => (m(), j("fieldset", {
@@ -2861,9 +2861,9 @@ const La = ["id", "data-testid", "aria-labelledby"], Ca = ["id", "data-testid"],
2861
2861
  checkboxes: e.checkboxes,
2862
2862
  direction: e.direction
2863
2863
  }, () => [
2864
- (m(!0), j(Se, null, he(e.checkboxes, (v, T) => {
2864
+ (m(!0), j(Se, null, he(e.checkboxes, (v, w) => {
2865
2865
  var G;
2866
- return m(), j("li", { key: T }, [
2866
+ return m(), j("li", { key: w }, [
2867
2867
  _(Xe, Ge(I.$attrs, {
2868
2868
  id: (G = v == null ? void 0 : v.id) != null ? G : `${v.value}`,
2869
2869
  class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
@@ -2947,8 +2947,8 @@ function Mn(e, t, i = {}) {
2947
2947
  const v = _e(e);
2948
2948
  !v || v === d.target || d.composedPath().includes(v) || !o.value || t(d);
2949
2949
  }, M = (d) => l && l.some((v) => {
2950
- const T = _e(v);
2951
- return T && (d.target === T || d.composedPath().includes(T));
2950
+ const w = _e(v);
2951
+ return w && (d.target === w || d.composedPath().includes(w));
2952
2952
  }), N = [
2953
2953
  Ke(n, "click", c, { passive: !0, capture: a }),
2954
2954
  Ke(n, "pointerdown", (d) => {
@@ -2963,8 +2963,8 @@ function Mn(e, t, i = {}) {
2963
2963
  }, { passive: !0 }),
2964
2964
  s && Ke(n, "blur", (d) => {
2965
2965
  var v;
2966
- const T = _e(e);
2967
- ((v = document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(T != null && T.contains(document.activeElement)) && t(d);
2966
+ const w = _e(e);
2967
+ ((v = document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(w != null && w.contains(document.activeElement)) && t(d);
2968
2968
  })
2969
2969
  ].filter(Boolean);
2970
2970
  return () => N.forEach((d) => d());
@@ -3081,11 +3081,11 @@ function xt({ target: e, query: t }) {
3081
3081
  genericIndex: -1
3082
3082
  });
3083
3083
  function n(d) {
3084
- const v = d != null ? d : i.index, T = e == null ? void 0 : e.value;
3084
+ const v = d != null ? d : i.index, w = e == null ? void 0 : e.value;
3085
3085
  I(), d !== void 0 && (i.index = d), setTimeout(() => {
3086
- var Z;
3087
- const G = T.children[v], L = t && G.querySelector(t) ? G.querySelector(t) : G;
3088
- i.id = (Z = G == null ? void 0 : G.id) != null ? Z : "", L == null || L.focus();
3086
+ var T;
3087
+ const G = w.children[v], L = t && G.querySelector(t) ? G.querySelector(t) : G;
3088
+ i.id = (T = G == null ? void 0 : G.id) != null ? T : "", L == null || L.focus();
3089
3089
  }, 0);
3090
3090
  }
3091
3091
  function l() {
@@ -3102,19 +3102,19 @@ function xt({ target: e, query: t }) {
3102
3102
  }
3103
3103
  function r({ query: d, to: v }) {
3104
3104
  var h, p;
3105
- const T = i.index >= 0 ? i.index : 0, L = (e == null ? void 0 : e.value).children[T], Z = Array.isArray(d) ? d.flatMap((w) => Array.from(L.querySelectorAll(w))).filter((w) => w) : Array.from(L.querySelectorAll(d));
3106
- if (!Z.length)
3105
+ const w = i.index >= 0 ? i.index : 0, L = (e == null ? void 0 : e.value).children[w], T = Array.isArray(d) ? d.flatMap((Z) => Array.from(L.querySelectorAll(Z))).filter((Z) => Z) : Array.from(L.querySelectorAll(d));
3106
+ if (!T.length)
3107
3107
  return;
3108
- const b = i.rowIndex < Z.length - 1;
3109
- v === "RIGHT" && b && (i.rowIndex += 1, (h = Z[i.rowIndex]) == null || h.focus()), v === "LEFT" && (i.rowIndex = i.rowIndex >= 0 ? i.rowIndex - 1 : -1, i.rowIndex < 0 ? L.focus() : (p = Z[i.rowIndex]) == null || p.focus());
3108
+ const b = i.rowIndex < T.length - 1;
3109
+ v === "RIGHT" && b && (i.rowIndex += 1, (h = T[i.rowIndex]) == null || h.focus()), v === "LEFT" && (i.rowIndex = i.rowIndex >= 0 ? i.rowIndex - 1 : -1, i.rowIndex < 0 ? L.focus() : (p = T[i.rowIndex]) == null || p.focus());
3110
3110
  }
3111
3111
  function c({ query: d, to: v }) {
3112
- var Z, b;
3113
- const T = e == null ? void 0 : e.value, G = Array.isArray(d) ? d.flatMap((h) => Array.from(T.querySelectorAll(h))).filter((h) => h) : Array.from(T.querySelectorAll(d));
3112
+ var T, b;
3113
+ const w = e == null ? void 0 : e.value, G = Array.isArray(d) ? d.flatMap((h) => Array.from(w.querySelectorAll(h))).filter((h) => h) : Array.from(w.querySelectorAll(d));
3114
3114
  if (!G.length)
3115
3115
  return;
3116
3116
  const L = i.genericIndex < G.length - 1;
3117
- v === "NEXT" && L && (i.genericIndex += 1, (Z = G[i.genericIndex]) == null || Z.focus()), v === "PREVIOUS" && (i.genericIndex = i.genericIndex >= 0 ? i.genericIndex - 1 : -1, i.genericIndex < 0 ? T.focus() : (b = G[i.genericIndex]) == null || b.focus());
3117
+ v === "NEXT" && L && (i.genericIndex += 1, (T = G[i.genericIndex]) == null || T.focus()), v === "PREVIOUS" && (i.genericIndex = i.genericIndex >= 0 ? i.genericIndex - 1 : -1, i.genericIndex < 0 ? w.focus() : (b = G[i.genericIndex]) == null || b.focus());
3118
3118
  }
3119
3119
  function M(d) {
3120
3120
  return d.id ? d.id === i.id : d.index === i.index;
@@ -3394,7 +3394,7 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3394
3394
  }
3395
3395
  return [D];
3396
3396
  }
3397
- function T(D) {
3397
+ function w(D) {
3398
3398
  const A = i.multiple ? v(D) : D;
3399
3399
  r.value = A, i.closeOnSelect && !i.multiple && d();
3400
3400
  }
@@ -3402,7 +3402,7 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3402
3402
  var A;
3403
3403
  return Array.isArray(r.value) ? r.value.some(({ value: Y }) => Y === D.value) : D.value === ((A = r == null ? void 0 : r.value) == null ? void 0 : A.value);
3404
3404
  }
3405
- const L = F(), Z = F();
3405
+ const L = F(), T = F();
3406
3406
  function b() {
3407
3407
  var D;
3408
3408
  i.searchable && (te(), (D = L.value) == null || D.focus());
@@ -3410,13 +3410,13 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3410
3410
  const {
3411
3411
  elementFocus: h,
3412
3412
  focusOnFirstItem: p,
3413
- focusOnLastItem: w,
3413
+ focusOnLastItem: Z,
3414
3414
  focusOnNextItem: O,
3415
3415
  focusOnPreviousItem: W,
3416
3416
  resetStateFocus: te
3417
- } = xt({ target: Z }), { navigate: R } = Be({
3417
+ } = xt({ target: T }), { navigate: R } = Be({
3418
3418
  Home: p,
3419
- End: () => w(i.options.length),
3419
+ End: () => Z(i.options.length),
3420
3420
  ArrowUp: W,
3421
3421
  ArrowDown: () => {
3422
3422
  !l.value && I(), O(i.options.length);
@@ -3430,7 +3430,7 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3430
3430
  l.value = !1, a.value = "", te();
3431
3431
  }
3432
3432
  function re(D) {
3433
- return (A) => D === "search" ? L.value = A == null ? void 0 : A.input : Z.value = A == null ? void 0 : A.list;
3433
+ return (A) => D === "search" ? L.value = A == null ? void 0 : A.input : T.value = A == null ? void 0 : A.list;
3434
3434
  }
3435
3435
  function ce() {
3436
3436
  var A;
@@ -3494,7 +3494,7 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3494
3494
  C(D.$slots, "toggle-dropdown", {
3495
3495
  toggle: { open: I, close: d, toggleDropdown: M },
3496
3496
  isOpen: l.value,
3497
- select: T,
3497
+ select: w,
3498
3498
  selected: e.selected
3499
3499
  }, () => {
3500
3500
  var B, Q, se;
@@ -3506,8 +3506,8 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3506
3506
  variant: "fill",
3507
3507
  size: "small",
3508
3508
  label: String(je.name),
3509
- onClick: me((q) => T(je), ["stop"]),
3510
- onClose: (q) => T(je)
3509
+ onClick: me((q) => w(je), ["stop"]),
3510
+ onClose: (q) => w(je)
3511
3511
  }, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
3512
3512
  ])) : (m(), j("span", {
3513
3513
  key: 1,
@@ -3592,7 +3592,7 @@ const xs = { name: "material-symbols-close-rounded", render: Ss }, As = ["data-t
3592
3592
  name: u(o),
3593
3593
  multiple: e.multiple,
3594
3594
  "is-selected": G,
3595
- onSelect: T
3595
+ onSelect: w
3596
3596
  }, {
3597
3597
  "no-data": J(() => [
3598
3598
  C(D.$slots, "no-data")
@@ -3926,7 +3926,7 @@ const ho = ["id", "data-testid"], Do = ["data-testid"], Jt = /* @__PURE__ */ X({
3926
3926
  ] },
3927
3927
  onlyLine: null
3928
3928
  },
3929
- emits: ["update:tabList"],
3929
+ emits: ["update:tabList", "tabitem:active"],
3930
3930
  setup(e, { emit: t }) {
3931
3931
  const i = e, n = F(), {
3932
3932
  focusOnFirstItem: l,
@@ -3943,12 +3943,12 @@ const ho = ["id", "data-testid"], Do = ["data-testid"], Jt = /* @__PURE__ */ X({
3943
3943
  function c(N, I) {
3944
3944
  if (I)
3945
3945
  return;
3946
- const d = i.tabList.map((v) => ({ ...v, active: v.key === N }));
3947
- t("update:tabList", d);
3946
+ const d = i.tabList.map((w) => ({ ...w, active: w.key === N })), v = d.find(({ active: w }) => w);
3947
+ t("update:tabList", d), t("tabitem:active", v);
3948
3948
  }
3949
3949
  function M() {
3950
3950
  if (!i.tabList.some(({ disabled: I, active: d }) => !I && d)) {
3951
- const I = i.tabList.findIndex(({ disabled: v }) => !v), d = i.tabList.map((v, T) => T === I ? { ...v, active: !0 } : v);
3951
+ const I = i.tabList.findIndex(({ disabled: v }) => !v), d = i.tabList.map((v, w) => w === I ? { ...v, active: !0 } : v);
3952
3952
  t("update:tabList", d);
3953
3953
  }
3954
3954
  }
@@ -3967,18 +3967,18 @@ const ho = ["id", "data-testid"], Do = ["data-testid"], Jt = /* @__PURE__ */ X({
3967
3967
  role: "tablist",
3968
3968
  class: k(["tabs-header", { "-only-line": e.onlyLine }])
3969
3969
  }, [
3970
- (m(!0), j(Se, null, he(e.tabList, ({ label: d, active: v, disabled: T, key: G, gtmId: L }) => (m(), K(bo, {
3970
+ (m(!0), j(Se, null, he(e.tabList, ({ label: d, active: v, disabled: w, key: G, gtmId: L }) => (m(), K(bo, {
3971
3971
  id: `${e.id}-${G}`,
3972
3972
  key: `tab-item-${G}`,
3973
3973
  "gtm-id": L != null ? L : `tab-item:${G}`,
3974
3974
  label: d,
3975
3975
  active: v,
3976
- disabled: T,
3977
- "data-interactive": !T,
3978
- onClick: (Z) => c(G, v),
3976
+ disabled: w,
3977
+ "data-interactive": !w,
3978
+ onClick: (T) => c(G, v),
3979
3979
  onKeyup: [
3980
- De(me((Z) => c(G, v), ["self"]), ["enter"]),
3981
- De(me((Z) => c(G, v), ["self"]), ["space"])
3980
+ De(me((T) => c(G, v), ["self"]), ["enter"]),
3981
+ De(me((T) => c(G, v), ["self"]), ["space"])
3982
3982
  ]
3983
3983
  }, {
3984
3984
  icon: J(() => [
@@ -4041,13 +4041,13 @@ const So = ["id", "data-testid"], xo = ["id", "aria-expanded"], Ao = ["id", "dat
4041
4041
  function d() {
4042
4042
  i.value ? N() : I();
4043
4043
  }
4044
- return (v, T) => (m(), j("div", {
4044
+ return (v, w) => (m(), j("div", {
4045
4045
  id: `menu-${e.id}`,
4046
4046
  ref_key: "el",
4047
4047
  ref: t,
4048
4048
  "data-testid": `menu-${e.id}`,
4049
4049
  class: k([`-${e.position}`, "sol-menu-core"]),
4050
- onKeyupPassive: T[0] || (T[0] = (...G) => u(M) && u(M)(...G))
4050
+ onKeyupPassive: w[0] || (w[0] = (...G) => u(M) && u(M)(...G))
4051
4051
  }, [
4052
4052
  C(v.$slots, "trigger", {
4053
4053
  id: `menu-button-${e.id}`,
@@ -4207,13 +4207,13 @@ const To = ["id", "data-testid"], zo = {
4207
4207
  renderHeader: e.renderHeader,
4208
4208
  headers: e.headers
4209
4209
  }, () => {
4210
- var T, G, L, Z;
4210
+ var w, G, L, T;
4211
4211
  return [
4212
4212
  _(Zo, {
4213
4213
  "data-testid": `listitem-${e.id}-${e.itemIndex}-${d}`,
4214
4214
  "item-prop": d,
4215
- hide: (G = (T = e.headers) == null ? void 0 : T[d]) == null ? void 0 : G.hide,
4216
- align: (Z = (L = e.headers) == null ? void 0 : L[d]) == null ? void 0 : Z.align,
4215
+ hide: (G = (w = e.headers) == null ? void 0 : w[d]) == null ? void 0 : G.hide,
4216
+ align: (T = (L = e.headers) == null ? void 0 : L[d]) == null ? void 0 : T.align,
4217
4217
  "is-highlight-value": e.isHighlight({ key: d })
4218
4218
  }, {
4219
4219
  property: J(() => [
@@ -4325,25 +4325,25 @@ const Vo = { name: "material-symbols-more-vert", render: Bo }, Oo = ["id", "data
4325
4325
  var D, A;
4326
4326
  return E ? !0 : z ? !!((A = (D = n.headers) == null ? void 0 : D[z]) != null && A.highlight) : !1;
4327
4327
  }
4328
- const T = F(), G = [
4328
+ const w = F(), G = [
4329
4329
  "[data-interactive] input",
4330
4330
  "[data-interactive-element]",
4331
4331
  "[data-interactive] button"
4332
4332
  ], {
4333
4333
  elementFocus: L,
4334
- focusInsideRow: Z,
4334
+ focusInsideRow: T,
4335
4335
  focusOnFirstItem: b,
4336
4336
  focusOnLastItem: h,
4337
4337
  focusOnNextItem: p,
4338
- focusOnPreviousItem: w,
4338
+ focusOnPreviousItem: Z,
4339
4339
  resetStateFocus: O
4340
- } = xt({ target: T }), { navigate: W } = Be({
4340
+ } = xt({ target: w }), { navigate: W } = Be({
4341
4341
  Home: b,
4342
4342
  End: () => h(n.data.length),
4343
- ArrowUp: () => !te() && w(),
4343
+ ArrowUp: () => !te() && Z(),
4344
4344
  ArrowDown: () => !te() && p(n.data.length),
4345
- ArrowLeft: () => L.id && Z({ to: "LEFT", query: G }),
4346
- ArrowRight: () => L.id && Z({ to: "RIGHT", query: G })
4345
+ ArrowLeft: () => L.id && T({ to: "LEFT", query: G }),
4346
+ ArrowRight: () => L.id && T({ to: "RIGHT", query: G })
4347
4347
  }, {
4348
4348
  fallback: O,
4349
4349
  exclude: ["Enter", "NumpadEnter", "Space"]
@@ -4388,7 +4388,7 @@ const Vo = { name: "material-symbols-more-vert", render: Bo }, Oo = ["id", "data
4388
4388
  }), (z, E) => (m(), j("ul", {
4389
4389
  id: `list-${e.id}`,
4390
4390
  ref_key: "list",
4391
- ref: T,
4391
+ ref: w,
4392
4392
  "data-testid": `list-${e.id}`,
4393
4393
  class: "sol-list-core",
4394
4394
  "aria-label": e.ariaLabel,
@@ -4713,12 +4713,12 @@ const tu = { name: "material-symbols-close", render: eu }, iu = ["id", "data-tes
4713
4713
  actionSecondary: `button-modal-action-secondary-${n.id}`,
4714
4714
  actionTertiary: `button-modal-action-tertiary-${n.id}`
4715
4715
  }, s = F(), o = F(n.isOpen), r = F(!1), c = x(() => {
4716
- var Z;
4717
- return (Z = n.isOpen) != null ? Z : o.value;
4716
+ var T;
4717
+ return (T = n.isOpen) != null ? T : o.value;
4718
4718
  }), M = Oa(document.body), N = x(() => {
4719
4719
  var h, p;
4720
- const Z = (h = n.size.desktop) != null ? h : "medium", b = (p = n.size.mobile) != null ? p : "full";
4721
- return `-desktop-${Z} -mobile-${b}`;
4720
+ const T = (h = n.size.desktop) != null ? h : "medium", b = (p = n.size.mobile) != null ? p : "full";
4721
+ return `-desktop-${T} -mobile-${b}`;
4722
4722
  }), { navigate: I } = Be({
4723
4723
  Escape: d
4724
4724
  });
@@ -4728,27 +4728,27 @@ const tu = { name: "material-symbols-close", render: eu }, iu = ["id", "data-tes
4728
4728
  function v() {
4729
4729
  o.value = !0, i("open"), i("update:isOpen", !0);
4730
4730
  }
4731
- function T() {
4731
+ function w() {
4732
4732
  document.documentElement.style.setProperty(
4733
4733
  "--viewport-100vh",
4734
4734
  `${window.innerHeight}px`
4735
4735
  );
4736
4736
  }
4737
- function G(Z) {
4738
- T(), M.value = !!Z, Z ? setTimeout(() => r.value = !0, 90) : r.value = !1;
4737
+ function G(T) {
4738
+ w(), M.value = !!T, T ? setTimeout(() => r.value = !0, 90) : r.value = !1;
4739
4739
  }
4740
- function L(Z, b) {
4741
- Z && setTimeout(() => {
4740
+ function L(T, b) {
4741
+ T && setTimeout(() => {
4742
4742
  var h;
4743
4743
  return (h = b == null ? void 0 : b.value) == null ? void 0 : h.focus();
4744
4744
  }, 110);
4745
4745
  }
4746
- return ge(c, (Z) => {
4747
- G(Z), L(Z, s);
4746
+ return ge(c, (T) => {
4747
+ G(T), L(T, s);
4748
4748
  }, { immediate: !0 }), t({
4749
4749
  close: d,
4750
4750
  open: v
4751
- }), (Z, b) => (m(), K(wn, { to: e.target }, [
4751
+ }), (T, b) => (m(), K(wn, { to: e.target }, [
4752
4752
  u(c) ? (m(), K(Jo, { key: 0 }, {
4753
4753
  default: J(() => [
4754
4754
  _(si, {
@@ -4796,10 +4796,10 @@ const tu = { name: "material-symbols-close", render: eu }, iu = ["id", "data-tes
4796
4796
  }, 8, ["id"])
4797
4797
  ], 8, nu),
4798
4798
  f("main", au, [
4799
- C(Z.$slots, "default")
4799
+ C(T.$slots, "default")
4800
4800
  ]),
4801
4801
  f("footer", su, [
4802
- C(Z.$slots, "action-tertiary", {
4802
+ C(T.$slots, "action-tertiary", {
4803
4803
  id: l.actionTertiary
4804
4804
  }, () => [
4805
4805
  e.actionTertiaryText ? (m(), K(ye, {
@@ -4816,7 +4816,7 @@ const tu = { name: "material-symbols-close", render: eu }, iu = ["id", "data-tes
4816
4816
  }, 8, ["id"])) : U("", !0)
4817
4817
  ]),
4818
4818
  f("div", ou, [
4819
- C(Z.$slots, "action-secondary", {
4819
+ C(T.$slots, "action-secondary", {
4820
4820
  id: l.actionSecondary
4821
4821
  }, () => [
4822
4822
  e.actionSecondaryText ? (m(), K(ye, {
@@ -4832,7 +4832,7 @@ const tu = { name: "material-symbols-close", render: eu }, iu = ["id", "data-tes
4832
4832
  _: 1
4833
4833
  }, 8, ["id"])) : U("", !0)
4834
4834
  ]),
4835
- C(Z.$slots, "action-primary", {
4835
+ C(T.$slots, "action-primary", {
4836
4836
  id: l.actionPrimary
4837
4837
  }, () => [
4838
4838
  e.actionPrimaryText ? (m(), K(ye, {