@isettingkit/business-rules 2.0.5 → 2.0.7

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.
Files changed (2) hide show
  1. package/dist/index.es.js +137 -127
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as v, Fragment as G } from "react/jsx-runtime";
2
2
  import { MdOutlineDelete as pn, MdClear as gn, MdAdd as fn, MdOutlineCreate as ft, MdExpandLess as ht, MdExpandMore as an, MdInfo as mt, MdCached as bt, MdOutlineInfo as vt, MdClose as yt, MdOutlineFilterAltOff as jn, MdOutlineFilterAlt as Bn, MdChevronRight as Dn, MdArrowRight as xt, MdOutlineArrowCircleLeft as wt, MdOutlineArrowCircleRight as Dt, MdOutlineChevronRight as Ct, MdOutlineError as Tt } from "react-icons/md";
3
- import { inube as S, Stack as w, Divider as Z, Icon as O, Text as I, SkeletonLine as ie, useMediaQuery as re, Blanket as hn, Button as B, Grid as Xe, Box as St, Tag as me, SkeletonIcon as Et, Checkbox as Un, Date as Be, Fieldset as Le, Tabs as Nt, OptionList as kt, Checkpicker as $t, Toggle as _n, Label as At, OptionItem as It } from "@inubekit/inubekit";
3
+ import { inube as S, Stack as w, Divider as Z, Icon as O, Text as A, SkeletonLine as ie, useMediaQuery as re, Blanket as hn, Button as B, Grid as Xe, Box as St, Tag as me, SkeletonIcon as Et, Checkbox as Un, Date as Be, Fieldset as Le, Tabs as Nt, OptionList as kt, Checkpicker as $t, Toggle as _n, Label as It, OptionItem as At } from "@inubekit/inubekit";
4
4
  import T, { keyframes as qn, ThemeContext as mn } from "styled-components";
5
5
  import { ValueDataType as X, ValueHowToSetUp as te, DecisionConditionRenderNew as Cn, DecisionConditionRender as Tn } from "@isettingkit/input";
6
6
  import { DecisionViewConditionRenderer as en, DecisionViewConditionRendererNew as Ve } from "@isettingkit/view";
@@ -70,14 +70,14 @@ const yn = (e) => {
70
70
  from: e.from ?? "",
71
71
  to: e.to ?? ""
72
72
  }), Bt = (e) => e.value, Ut = (e) => e.value, _t = (e) => e.value;
73
- var A = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(A || {});
73
+ var I = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(I || {});
74
74
  const qt = {
75
- [A.LIST_OF_VALUES]: Vt,
76
- [A.LIST_OF_VALUES_MULTI]: Ht,
77
- [A.RANGE]: jt,
78
- [A.GREATER_THAN]: Bt,
79
- [A.LESS_THAN]: Ut,
80
- [A.EQUAL]: _t
75
+ [I.LIST_OF_VALUES]: Vt,
76
+ [I.LIST_OF_VALUES_MULTI]: Ht,
77
+ [I.RANGE]: jt,
78
+ [I.GREATER_THAN]: Bt,
79
+ [I.LESS_THAN]: Ut,
80
+ [I.EQUAL]: _t
81
81
  }, Pe = (e) => {
82
82
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = qt[e == null ? void 0 : e.howToSetTheDecision] || zt;
83
83
  return t && r(n) || n || void 0;
@@ -141,7 +141,7 @@ const qt = {
141
141
  height: "203px",
142
142
  children: [
143
143
  p.length > 0 && /* @__PURE__ */ i(
144
- I,
144
+ A,
145
145
  {
146
146
  type: "label",
147
147
  size: "large",
@@ -304,7 +304,7 @@ const qt = {
304
304
  return bn(
305
305
  /* @__PURE__ */ i(Yt, { smallScreen: l, children: /* @__PURE__ */ i(hn, { children: /* @__PURE__ */ i(Xt, { children: /* @__PURE__ */ v(w, { direction: "column", gap: "24px", children: [
306
306
  /* @__PURE__ */ i(w, { direction: "column", gap: "24px", children: /* @__PURE__ */ v(w, { alignItems: "center", justifyContent: "space-between", children: [
307
- /* @__PURE__ */ i(I, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
307
+ /* @__PURE__ */ i(A, { type: "title", size: "large", appearance: "dark", weight: "bold", children: o }),
308
308
  /* @__PURE__ */ i(gn, { size: "24px", cursor: "pointer", onClick: r })
309
309
  ] }) }),
310
310
  n
@@ -406,7 +406,7 @@ const Qt = T.div`
406
406
  }, er = (e) => {
407
407
  const { decision: n, controls: t, handleOpenModal: r, handleDelete: o, textValues: a } = e;
408
408
  return n ? /* @__PURE__ */ i(xn, { children: /* @__PURE__ */ v(w, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
409
- /* @__PURE__ */ i(I, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
409
+ /* @__PURE__ */ i(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: n.decisionId }),
410
410
  /* @__PURE__ */ i(
411
411
  yn,
412
412
  {
@@ -426,7 +426,7 @@ const Qt = T.div`
426
426
  shouldRenderEmptyMessage: o
427
427
  } = e, a = n || "Agregar decisión";
428
428
  return /* @__PURE__ */ i(xn, { children: o ? null : /* @__PURE__ */ v(w, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
429
- /* @__PURE__ */ i(I, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
429
+ /* @__PURE__ */ i(A, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
430
430
  /* @__PURE__ */ i(
431
431
  Qt,
432
432
  {
@@ -441,7 +441,7 @@ const Qt = T.div`
441
441
  controls: !1,
442
442
  children: /* @__PURE__ */ v(w, { direction: "column", gap: "12px", alignItems: "center", children: [
443
443
  /* @__PURE__ */ i(O, { appearance: "gray", icon: /* @__PURE__ */ i(fn, {}), size: "35px" }),
444
- /* @__PURE__ */ i(I, { appearance: "gray", type: "body", size: "large", children: a })
444
+ /* @__PURE__ */ i(A, { appearance: "gray", type: "body", size: "large", children: a })
445
445
  ] })
446
446
  }
447
447
  )
@@ -524,10 +524,10 @@ const Qt = T.div`
524
524
  justifyContent: "center",
525
525
  alignItems: "center",
526
526
  children: [
527
- /* @__PURE__ */ i(I, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ v(G, { children: [
527
+ /* @__PURE__ */ i(A, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ v(G, { children: [
528
528
  "Aún NO tienes definidas tasas de interés efectivas . Presiona",
529
529
  /* @__PURE__ */ v(
530
- I,
530
+ A,
531
531
  {
532
532
  as: "span",
533
533
  type: "label",
@@ -609,12 +609,12 @@ const Qt = T.div`
609
609
  from: e.from ?? "",
610
610
  to: e.to ?? ""
611
611
  }), sr = (e) => e.value, dr = (e) => e.value, cr = (e) => e.value, ur = {
612
- [A.LIST_OF_VALUES]: ar,
613
- [A.LIST_OF_VALUES_MULTI]: ir,
614
- [A.RANGE]: lr,
615
- [A.GREATER_THAN]: sr,
616
- [A.LESS_THAN]: dr,
617
- [A.EQUAL]: cr
612
+ [I.LIST_OF_VALUES]: ar,
613
+ [I.LIST_OF_VALUES_MULTI]: ir,
614
+ [I.RANGE]: lr,
615
+ [I.GREATER_THAN]: sr,
616
+ [I.LESS_THAN]: dr,
617
+ [I.EQUAL]: cr
618
618
  }, Oe = (e) => {
619
619
  const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = ur[e == null ? void 0 : e.howToSetTheDecision] || or;
620
620
  return t && r(n) || n || void 0;
@@ -815,7 +815,7 @@ const gr = T.div`
815
815
  /* @__PURE__ */ i(Z, { dashed: !0 }),
816
816
  /* @__PURE__ */ v(w, { direction: "column", gap: "12px", children: [
817
817
  /* @__PURE__ */ i(
818
- I,
818
+ A,
819
819
  {
820
820
  type: "label",
821
821
  size: "large",
@@ -1113,7 +1113,7 @@ const vr = T.div`
1113
1113
  alignItems: "center",
1114
1114
  padding: "16px",
1115
1115
  children: [
1116
- /* @__PURE__ */ i(I, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1116
+ /* @__PURE__ */ i(A, { appearance: "gray", type: "label", size: "large", weight: "bold", children: n || "Agregar decisión" }),
1117
1117
  /* @__PURE__ */ i(
1118
1118
  O,
1119
1119
  {
@@ -1226,7 +1226,7 @@ const vr = T.div`
1226
1226
  /* @__PURE__ */ v(w, { alignItems: "center", justifyContent: "space-between", children: [
1227
1227
  /* @__PURE__ */ v(w, { direction: "column", gap: "8px", children: [
1228
1228
  /* @__PURE__ */ i(
1229
- I,
1229
+ A,
1230
1230
  {
1231
1231
  type: "title",
1232
1232
  size: "medium",
@@ -1235,7 +1235,7 @@ const vr = T.div`
1235
1235
  children: a
1236
1236
  }
1237
1237
  ),
1238
- /* @__PURE__ */ i(I, { size: "medium", appearance: "gray", children: t })
1238
+ /* @__PURE__ */ i(A, { size: "medium", appearance: "gray", children: t })
1239
1239
  ] }),
1240
1240
  /* @__PURE__ */ i(gn, { size: "24px", cursor: "pointer", onClick: o })
1241
1241
  ] }),
@@ -1245,14 +1245,14 @@ const vr = T.div`
1245
1245
  ] }) }) }) }),
1246
1246
  l
1247
1247
  );
1248
- }, Ar = (e) => ({
1248
+ }, Ir = (e) => ({
1249
1249
  schema: Ne().required("Requerido").test(
1250
1250
  "non-empty",
1251
1251
  "El valor no puede estar vacío",
1252
1252
  (n) => n != null && n.trim() !== ""
1253
1253
  ),
1254
1254
  value: e
1255
- }), Ir = (e) => ({
1255
+ }), Ar = (e) => ({
1256
1256
  schema: We().test(
1257
1257
  "isArrayOrString",
1258
1258
  "Por favor selecciona una opcion",
@@ -1293,13 +1293,13 @@ const vr = T.div`
1293
1293
  schema: Ne().required("Requerido"),
1294
1294
  value: e
1295
1295
  }, Lr = {
1296
- [A.LIST_OF_VALUES]: Ir,
1297
- [A.LIST_OF_VALUES_MULTI]: Rr,
1298
- [A.RANGE]: Fr,
1299
- [A.GREATER_THAN]: nn,
1300
- [A.LESS_THAN]: nn,
1301
- [A.EQUAL]: nn
1302
- }, Nn = (e) => Lr[e] || Ar;
1296
+ [I.LIST_OF_VALUES]: Ar,
1297
+ [I.LIST_OF_VALUES_MULTI]: Rr,
1298
+ [I.RANGE]: Fr,
1299
+ [I.GREATER_THAN]: nn,
1300
+ [I.LESS_THAN]: nn,
1301
+ [I.EQUAL]: nn
1302
+ }, Nn = (e) => Lr[e] || Ir;
1303
1303
  var et = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(et || {});
1304
1304
  function Pr({
1305
1305
  decision: e,
@@ -1479,7 +1479,7 @@ const Or = T.div`
1479
1479
  }, L = re("(max-width: 400px)");
1480
1480
  return /* @__PURE__ */ v(w, { direction: "column", width: "100%", gap: "20px", children: [
1481
1481
  /* @__PURE__ */ v(w, { justifyContent: "space-between", children: [
1482
- /* @__PURE__ */ i(I, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
1482
+ /* @__PURE__ */ i(A, { appearance: "dark", size: "large", type: "label", children: "¿La vigencia para este decisión es cerrada?" }),
1483
1483
  /* @__PURE__ */ i(
1484
1484
  Un,
1485
1485
  {
@@ -1615,7 +1615,7 @@ const Or = T.div`
1615
1615
  },
1616
1616
  C.conditionName
1617
1617
  )) }),
1618
- p && /* @__PURE__ */ i(I, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
1618
+ p && /* @__PURE__ */ i(A, { type: "label", size: "medium", appearance: "danger", children: t ?? "Existen errores en el formulario, por favor revísalos." })
1619
1619
  ] }) }),
1620
1620
  /* @__PURE__ */ i(Le, { legend: "Vigencia", spacing: "wide", children: f.terms && /* @__PURE__ */ i(
1621
1621
  Mr,
@@ -1648,7 +1648,7 @@ const Or = T.div`
1648
1648
  title: "Redefinir la condición",
1649
1649
  onCloseModal: y,
1650
1650
  children: /* @__PURE__ */ v(w, { direction: "column", gap: "16px", children: [
1651
- /* @__PURE__ */ i(I, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
1651
+ /* @__PURE__ */ i(A, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
1652
1652
  /* @__PURE__ */ v(w, { justifyContent: "end", gap: "12px", children: [
1653
1653
  /* @__PURE__ */ i(
1654
1654
  B,
@@ -1739,7 +1739,7 @@ const Or = T.div`
1739
1739
  const H = `conditionsThatEstablishesTheDecision.${N.conditionName}`;
1740
1740
  s.setFieldValue(H, De(N)), s.setFieldTouched(H, !1, !1);
1741
1741
  });
1742
- }, [Ae, ae] = M.useState(!1);
1742
+ }, [Ie, ae] = M.useState(!1);
1743
1743
  return /* @__PURE__ */ i(
1744
1744
  zr,
1745
1745
  {
@@ -1764,7 +1764,7 @@ const Or = T.div`
1764
1764
  visibleConditionsByGroup: f,
1765
1765
  handleToggleNoneChange: p,
1766
1766
  portalId: "redefine-confirm-portal",
1767
- showRedefineConfirm: Ae,
1767
+ showRedefineConfirm: Ie,
1768
1768
  onOpenRedefineConfirm: () => ae(!0),
1769
1769
  onCloseRedefineConfirm: () => ae(!1),
1770
1770
  onConfirmRedefine: () => {
@@ -1825,7 +1825,7 @@ const Or = T.div`
1825
1825
  }
1826
1826
  ),
1827
1827
  /* @__PURE__ */ i(
1828
- I,
1828
+ A,
1829
1829
  {
1830
1830
  type: "title",
1831
1831
  size: "medium",
@@ -1834,7 +1834,7 @@ const Or = T.div`
1834
1834
  children: "Sin decisiones"
1835
1835
  }
1836
1836
  ),
1837
- /* @__PURE__ */ i(I, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ v(G, { children: [
1837
+ /* @__PURE__ */ i(A, { as: "span", size: "medium", appearance: "gray", children: r || /* @__PURE__ */ v(G, { children: [
1838
1838
  "Aun no tienes decisiones definidas, para empezar haz clic en",
1839
1839
  t || ' "Agregar decisión"'
1840
1840
  ] }) })
@@ -2056,7 +2056,7 @@ const _r = T.div`
2056
2056
  }
2057
2057
  ),
2058
2058
  /* @__PURE__ */ i(
2059
- I,
2059
+ A,
2060
2060
  {
2061
2061
  textAlign: "start",
2062
2062
  size: "medium",
@@ -2139,7 +2139,7 @@ const _r = T.div`
2139
2139
  alignItems: "center",
2140
2140
  padding: "0px 8px",
2141
2141
  border: !0,
2142
- children: y ? /* @__PURE__ */ i(I, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ v(G, { children: [
2142
+ children: y ? /* @__PURE__ */ i(A, { size: "small", type: "label", appearance: "gray", children: o }) : /* @__PURE__ */ v(G, { children: [
2143
2143
  c.map((E) => /* @__PURE__ */ i(
2144
2144
  me,
2145
2145
  {
@@ -2247,9 +2247,9 @@ const _r = T.div`
2247
2247
  /* @__PURE__ */ i(hn, { children: /* @__PURE__ */ v(Wr, { $smallScreen: p, children: [
2248
2248
  /* @__PURE__ */ v(w, { direction: "column", gap: "16px", children: [
2249
2249
  /* @__PURE__ */ v(w, { alignContent: "center", justifyContent: "space-between", children: [
2250
- /* @__PURE__ */ i(I, { appearance: "dark", size: "small", type: "headline", children: s }),
2250
+ /* @__PURE__ */ i(A, { appearance: "dark", size: "small", type: "headline", children: s }),
2251
2251
  /* @__PURE__ */ v(w, { alignItems: "center", children: [
2252
- /* @__PURE__ */ i(I, { children: "Cerrar" }),
2252
+ /* @__PURE__ */ i(A, { children: "Cerrar" }),
2253
2253
  /* @__PURE__ */ i(
2254
2254
  O,
2255
2255
  {
@@ -2309,7 +2309,7 @@ const _r = T.div`
2309
2309
  border: !0,
2310
2310
  width: "100%",
2311
2311
  height: "36px",
2312
- children: l ? /* @__PURE__ */ i(I, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ i(
2312
+ children: l ? /* @__PURE__ */ i(A, { size: "small", type: "label", appearance: "gray", children: o }) : n == null ? void 0 : n.map((d) => /* @__PURE__ */ i(
2313
2313
  me,
2314
2314
  {
2315
2315
  appearance: "primary",
@@ -2463,12 +2463,12 @@ const _r = T.div`
2463
2463
  schema: Ne().required("Requerido"),
2464
2464
  value: e
2465
2465
  }, no = {
2466
- [A.LIST_OF_VALUES]: Zr,
2467
- [A.LIST_OF_VALUES_MULTI]: Jr,
2468
- [A.RANGE]: eo,
2469
- [A.GREATER_THAN]: tn,
2470
- [A.LESS_THAN]: tn,
2471
- [A.EQUAL]: tn
2466
+ [I.LIST_OF_VALUES]: Zr,
2467
+ [I.LIST_OF_VALUES_MULTI]: Jr,
2468
+ [I.RANGE]: eo,
2469
+ [I.GREATER_THAN]: tn,
2470
+ [I.LESS_THAN]: tn,
2471
+ [I.EQUAL]: tn
2472
2472
  }, $n = (e) => no[e] || Kr;
2473
2473
  function to({
2474
2474
  decision: e,
@@ -2601,7 +2601,7 @@ function to({
2601
2601
  void 0
2602
2602
  );
2603
2603
  else {
2604
- const u = c.howToSetTheCondition === A.LIST_OF_VALUES_MULTI ? [] : "";
2604
+ const u = c.howToSetTheCondition === I.LIST_OF_VALUES_MULTI ? [] : "";
2605
2605
  o.setFieldValue(
2606
2606
  `conditionsThatEstablishesTheDecision.${c.conditionName}`,
2607
2607
  u
@@ -2660,7 +2660,7 @@ const ro = T.div`
2660
2660
  onChange: c,
2661
2661
  size: "small",
2662
2662
  value: d,
2663
- children: /* @__PURE__ */ i(I, { size: "medium", type: "label", weight: "bold", children: a })
2663
+ children: /* @__PURE__ */ i(A, { size: "medium", type: "label", weight: "bold", children: a })
2664
2664
  }
2665
2665
  ) }),
2666
2666
  s && /* @__PURE__ */ i(G, { children: t })
@@ -2690,7 +2690,7 @@ const ro = T.div`
2690
2690
  return /* @__PURE__ */ v(G, { children: [
2691
2691
  /* @__PURE__ */ v(w, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
2692
2692
  /* @__PURE__ */ i(
2693
- I,
2693
+ A,
2694
2694
  {
2695
2695
  appearance: "gray",
2696
2696
  margin: "10px 0",
@@ -2791,7 +2791,7 @@ const ro = T.div`
2791
2791
  alignItems: "center",
2792
2792
  gap: "64px",
2793
2793
  children: [
2794
- /* @__PURE__ */ i(I, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2794
+ /* @__PURE__ */ i(A, { type: "title", size: "small", weight: "bold", appearance: "gray", children: t.factsThatConditionIt }),
2795
2795
  /* @__PURE__ */ i(
2796
2796
  _n,
2797
2797
  {
@@ -2799,7 +2799,7 @@ const ro = T.div`
2799
2799
  onChange: () => l(!n.values.toggleNone),
2800
2800
  checked: n.values.toggleNone,
2801
2801
  size: "small",
2802
- children: /* @__PURE__ */ i(I, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2802
+ children: /* @__PURE__ */ i(A, { as: "span", size: "medium", type: "label", weight: "bold", children: t.none })
2803
2803
  }
2804
2804
  )
2805
2805
  ]
@@ -2814,7 +2814,7 @@ const ro = T.div`
2814
2814
  checked: !n.values.toggleNone && n.values.conditionsThatEstablishesTheDecision[u.conditionName] !== void 0,
2815
2815
  handleToggleChange: (g) => d(
2816
2816
  u.conditionName,
2817
- u.howToSetTheCondition === A.LIST_OF_VALUES_MULTI
2817
+ u.howToSetTheCondition === I.LIST_OF_VALUES_MULTI
2818
2818
  )(g.target.checked),
2819
2819
  children: Tn({ condition: u, formik: n })
2820
2820
  },
@@ -2846,7 +2846,7 @@ const ro = T.div`
2846
2846
  )
2847
2847
  ] }),
2848
2848
  /* @__PURE__ */ i(Z, {}),
2849
- s && /* @__PURE__ */ i(I, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
2849
+ s && /* @__PURE__ */ i(A, { type: "label", size: "medium", appearance: "danger", children: typeof n.errors.conditionsThatEstablishesTheDecision == "string" ? n.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
2850
2850
  /* @__PURE__ */ v(w, { direction: "row", justifyContent: "end", gap: "16px", children: [
2851
2851
  /* @__PURE__ */ i(B, { appearance: "gray", onClick: r, children: t.cancel }),
2852
2852
  /* @__PURE__ */ i(B, { type: "submit", children: t.confirm })
@@ -2968,7 +2968,7 @@ const ro = T.div`
2968
2968
  return ((o = (r = (t = e == null ? void 0 : e.menu) == null ? void 0 : t.item) == null ? void 0 : r.background) == null ? void 0 : o.hover) || se.item.background.hover;
2969
2969
  }};
2970
2970
  }
2971
- `, An = T.div`
2971
+ `, In = T.div`
2972
2972
  display: flex;
2973
2973
  align-items: center;
2974
2974
  gap: 12px;
@@ -3056,8 +3056,8 @@ const ro = T.div`
3056
3056
  icon: n && t.length > 0 ? /* @__PURE__ */ i(an, {}) : /* @__PURE__ */ i(Dn, {})
3057
3057
  }
3058
3058
  ),
3059
- /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(
3060
- I,
3059
+ /* @__PURE__ */ i(In, { children: /* @__PURE__ */ i(
3060
+ A,
3061
3061
  {
3062
3062
  appearance: u,
3063
3063
  cursorHover: !0,
@@ -3086,7 +3086,7 @@ const ro = T.div`
3086
3086
  icon: n && t.length > 0 ? /* @__PURE__ */ i(an, {}) : /* @__PURE__ */ i(Dn, {})
3087
3087
  }
3088
3088
  ),
3089
- /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(
3089
+ /* @__PURE__ */ i(In, { children: /* @__PURE__ */ i(
3090
3090
  uo,
3091
3091
  {
3092
3092
  "aria-controls": f,
@@ -3094,7 +3094,7 @@ const ro = T.div`
3094
3094
  onClick: r,
3095
3095
  onKeyDown: s,
3096
3096
  children: /* @__PURE__ */ i(
3097
- I,
3097
+ A,
3098
3098
  {
3099
3099
  appearance: u,
3100
3100
  cursorHover: !0,
@@ -3124,7 +3124,7 @@ const ro = T.div`
3124
3124
  children: [
3125
3125
  x && /* @__PURE__ */ i(O, { appearance: "primary", icon: /* @__PURE__ */ i(xt, {}) }),
3126
3126
  /* @__PURE__ */ i(
3127
- I,
3127
+ A,
3128
3128
  {
3129
3129
  appearance: x ? "primary" : "dark",
3130
3130
  size: "small",
@@ -3277,7 +3277,7 @@ var xo = {
3277
3277
  scrollDebounceTimeout: void 0,
3278
3278
  frameIdX: void 0,
3279
3279
  frameIdY: void 0
3280
- }, h = xo, ce = !1, In, rn;
3280
+ }, h = xo, ce = !1, An, rn;
3281
3281
  function wo() {
3282
3282
  h.scrollDebounceTimeout && clearTimeout(h.scrollDebounceTimeout), h.longPressTimeout && clearTimeout(h.longPressTimeout), h.frameIdX !== void 0 && cancelAnimationFrame(h.frameIdX), h.frameIdY !== void 0 && cancelAnimationFrame(h.frameIdY), h = { ...{
3283
3283
  affectedNodes: [],
@@ -3377,7 +3377,7 @@ function ko({
3377
3377
  }) {
3378
3378
  var s, p, c;
3379
3379
  if (!wn) return;
3380
- In || (In = Ge(document, {
3380
+ An || (An = Ge(document, {
3381
3381
  dragover: Eo,
3382
3382
  pointerdown: Do,
3383
3383
  pointerup: Co,
@@ -3410,7 +3410,7 @@ function ko({
3410
3410
  handlePointercancel: Jo,
3411
3411
  handleEnd: ea,
3412
3412
  handleDragend: Zo,
3413
- handleParentFocus: Ao,
3413
+ handleParentFocus: Io,
3414
3414
  handleNodePointerup: na,
3415
3415
  handleNodePointerover: Xo,
3416
3416
  handleParentPointerover: ia,
@@ -3422,7 +3422,7 @@ function ko({
3422
3422
  multiDrag: r.multiDrag ?? !1,
3423
3423
  nativeDrag: r.nativeDrag ?? !0,
3424
3424
  performSort: $o,
3425
- performTransfer: Io,
3425
+ performTransfer: Ao,
3426
3426
  root: r.root ?? document,
3427
3427
  setupNode: Lo,
3428
3428
  setupNodeRemap: ct,
@@ -3546,11 +3546,11 @@ function He(e, n, t, r, o = !1) {
3546
3546
  parent: e
3547
3547
  }, ye(e, t, r);
3548
3548
  }
3549
- function Ao(e, n) {
3549
+ function Io(e, n) {
3550
3550
  const t = e.targetData.parent.data.enabledNodes[0];
3551
3551
  t && (n.selectedState && n.selectedState.parent.el !== e.targetData.parent.el ? ye(e.targetData.parent, t, n) : n.selectedState || ye(e.targetData.parent, t, n));
3552
3552
  }
3553
- function Io({
3553
+ function Ao({
3554
3554
  currentParent: e,
3555
3555
  targetParent: n,
3556
3556
  initialParent: t,
@@ -4678,7 +4678,7 @@ const On = {
4678
4678
  width: "100%",
4679
4679
  alignItems: "center",
4680
4680
  justifyContent: "center",
4681
- children: /* @__PURE__ */ i(I, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
4681
+ children: /* @__PURE__ */ i(A, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: n || "No hay elementos en esta lista" })
4682
4682
  }
4683
4683
  ) : p.map((y, D) => {
4684
4684
  const C = c === y;
@@ -4690,7 +4690,7 @@ const On = {
4690
4690
  "data-first": !!(l && D === 0) || void 0,
4691
4691
  $active: C,
4692
4692
  children: /* @__PURE__ */ i(Q, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ i(
4693
- I,
4693
+ A,
4694
4694
  {
4695
4695
  type: "title",
4696
4696
  appearance: C ? "primary" : "dark",
@@ -4947,7 +4947,7 @@ const On = {
4947
4947
  `, ka = T.div`
4948
4948
  display: grid;
4949
4949
  height: ${({ $size: e }) => e === "compact" ? "40px" : "48px"};
4950
- padding: 0px 16px;
4950
+ padding: 8px 16px;
4951
4951
  gap: 8px;
4952
4952
  align-items: center;
4953
4953
  box-sizing: border-box;
@@ -4955,6 +4955,7 @@ const On = {
4955
4955
  pointer-events: ${({ $disabled: e }) => e && "none"};
4956
4956
  grid-auto-flow: column;
4957
4957
  grid-template-columns: 1fr auto;
4958
+ height: -webkit-fill-available;
4958
4959
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
4959
4960
  background-color: ${({ $disabled: e, theme: n }) => {
4960
4961
  var t, r, o, a, l, d;
@@ -5025,13 +5026,13 @@ const On = {
5025
5026
  &:-webkit-autofill {
5026
5027
  -webkit-background-clip: text;
5027
5028
  }
5028
- `, Aa = T.div`
5029
+ `, Ia = T.div`
5029
5030
  display: flex;
5030
5031
  justify-content: flex-end;
5031
5032
  transition: ease;
5032
5033
  transition-duration: 500ms;
5033
5034
  transform: ${({ $displayList: e }) => e ? "rotate(-90deg)" : "rotate(90deg)"};
5034
- `, Ia = (e) => e === "compact" ? "medium" : "large";
5035
+ `, Aa = (e) => e === "compact" ? "medium" : "large";
5035
5036
  function zn(e, n) {
5036
5037
  const t = e.find((r) => r.value === n);
5037
5038
  return t ? t.label : n;
@@ -5049,7 +5050,7 @@ const Ra = (e) => {
5049
5050
  }
5050
5051
  ),
5051
5052
  /* @__PURE__ */ i(
5052
- I,
5053
+ A,
5053
5054
  {
5054
5055
  type: "body",
5055
5056
  size: "small",
@@ -5060,7 +5061,7 @@ const Ra = (e) => {
5060
5061
  )
5061
5062
  ] });
5062
5063
  }, Fa = Rt((e, n) => {
5063
- var ae, Ie;
5064
+ var ae, Ae;
5064
5065
  const {
5065
5066
  displayList: t,
5066
5067
  disabled: r,
@@ -5090,10 +5091,10 @@ const Ra = (e) => {
5090
5091
  onOptionClick: xe,
5091
5092
  onCheckboxChange: we,
5092
5093
  handleClear: pe
5093
- } = e, J = vn(mn), $e = ((Ie = (ae = J == null ? void 0 : J.input) == null ? void 0 : ae.required) == null ? void 0 : Ie.appearance) || ee.required.appearance, De = b && !r, ge = y || m === "" ? "" : zn(g, m), fe = Gn(
5094
+ } = e, J = vn(mn), $e = ((Ae = (ae = J == null ? void 0 : J.input) == null ? void 0 : ae.required) == null ? void 0 : Ae.appearance) || ee.required.appearance, De = b && !r, ge = y || m === "" ? "" : zn(g, m), fe = Gn(
5094
5095
  () => g.filter((P) => C.includes(P.id)),
5095
5096
  [g, C]
5096
- ), Ae = (P, F) => {
5097
+ ), Ie = (P, F) => {
5097
5098
  P.stopPropagation(), we({
5098
5099
  target: { checked: !1, value: F }
5099
5100
  });
@@ -5107,18 +5108,18 @@ const Ra = (e) => {
5107
5108
  $wrap: "wrap",
5108
5109
  children: [
5109
5110
  /* @__PURE__ */ i(
5110
- At,
5111
+ It,
5111
5112
  {
5112
5113
  htmlFor: l,
5113
5114
  focused: o,
5114
5115
  invalid: d,
5115
5116
  margin: "0px 0px 0px 16px",
5116
- size: Ia(x),
5117
+ size: Aa(x),
5117
5118
  disabled: r,
5118
5119
  children: s
5119
5120
  }
5120
5121
  ),
5121
- De && /* @__PURE__ */ i(I, { appearance: $e, size: "small", type: "body", children: "(Requerido)" })
5122
+ De && /* @__PURE__ */ i(A, { appearance: $e, size: "small", type: "body", children: "(Requerido)" })
5122
5123
  ]
5123
5124
  }
5124
5125
  ),
@@ -5154,39 +5155,48 @@ const Ra = (e) => {
5154
5155
  onKeyUp: R
5155
5156
  }
5156
5157
  ),
5157
- /* @__PURE__ */ v(w, { direction: "row", gap: "8px", alignItems: "center", children: [
5158
- E && !r && (y ? fe.map((P) => /* @__PURE__ */ i(
5159
- me,
5160
- {
5161
- appearance: "gray",
5162
- label: P.label,
5163
- removable: !0,
5164
- displayIcon: !1,
5165
- onClose: (F) => Ae(F, P.id)
5166
- },
5167
- P.id
5168
- )) : (m ?? "") !== "" && /* @__PURE__ */ i(
5169
- me,
5170
- {
5171
- appearance: "gray",
5172
- label: zn(g, m),
5173
- removable: !0,
5174
- displayIcon: !1,
5175
- onClose: (P) => {
5176
- P.stopPropagation(), pe();
5177
- }
5178
- }
5179
- )),
5180
- D && /* @__PURE__ */ i(Aa, { $displayList: t, children: /* @__PURE__ */ i(
5181
- O,
5182
- {
5183
- appearance: "dark",
5184
- icon: /* @__PURE__ */ i(Ct, {}),
5185
- spacing: "narrow",
5186
- disabled: r
5187
- }
5188
- ) })
5189
- ] })
5158
+ /* @__PURE__ */ v(
5159
+ w,
5160
+ {
5161
+ direction: "row",
5162
+ gap: "8px",
5163
+ alignItems: "center",
5164
+ justifyContent: "space-between",
5165
+ children: [
5166
+ /* @__PURE__ */ i(w, { gap: "8px", alignItems: "center", wrap: "wrap", children: E && !r && (y ? fe.map((P) => /* @__PURE__ */ i(
5167
+ me,
5168
+ {
5169
+ appearance: "gray",
5170
+ label: P.label,
5171
+ removable: !0,
5172
+ displayIcon: !1,
5173
+ onClose: (F) => Ie(F, P.id)
5174
+ },
5175
+ P.id
5176
+ )) : (m ?? "") !== "" && /* @__PURE__ */ i(
5177
+ me,
5178
+ {
5179
+ appearance: "gray",
5180
+ label: zn(g, m),
5181
+ removable: !0,
5182
+ displayIcon: !1,
5183
+ onClose: (P) => {
5184
+ P.stopPropagation(), pe();
5185
+ }
5186
+ }
5187
+ )) }),
5188
+ D && /* @__PURE__ */ i(Ia, { $displayList: t, children: /* @__PURE__ */ i(
5189
+ O,
5190
+ {
5191
+ appearance: "dark",
5192
+ icon: /* @__PURE__ */ i(Ct, {}),
5193
+ spacing: "narrow",
5194
+ disabled: r
5195
+ }
5196
+ ) })
5197
+ ]
5198
+ }
5199
+ )
5190
5200
  ]
5191
5201
  }
5192
5202
  ),
@@ -5198,7 +5208,7 @@ const Ra = (e) => {
5198
5208
  onOptionClick: xe,
5199
5209
  options: g,
5200
5210
  children: g.map((P) => /* @__PURE__ */ i(
5201
- It,
5211
+ At,
5202
5212
  {
5203
5213
  id: P.id,
5204
5214
  label: P.label,
@@ -5266,7 +5276,7 @@ const Ra = (e) => {
5266
5276
  console.error(`Error executing focus/blur callback. ${q}`);
5267
5277
  }
5268
5278
  }
5269
- function Ae(F) {
5279
+ function Ie(F) {
5270
5280
  V(!1);
5271
5281
  try {
5272
5282
  c && c(s, F);
@@ -5282,7 +5292,7 @@ const Ra = (e) => {
5282
5292
  console.error(`Error when clicking over select. ${q}`);
5283
5293
  }
5284
5294
  }
5285
- function Ie(F) {
5295
+ function Ae(F) {
5286
5296
  const { value: q, checked: ze } = F.target;
5287
5297
  pe((N) => {
5288
5298
  const H = ze ? [...N, q] : N.filter((K) => K !== q);
@@ -5322,9 +5332,9 @@ const Ra = (e) => {
5322
5332
  onChange: c,
5323
5333
  onClick: De,
5324
5334
  onFocus: fe,
5325
- onOptionClick: Ae,
5335
+ onOptionClick: Ie,
5326
5336
  onKeyUp: ae,
5327
- onCheckboxChange: Ie
5337
+ onCheckboxChange: Ae
5328
5338
  }
5329
5339
  );
5330
5340
  }, Ti = (e) => {
@@ -5403,14 +5413,14 @@ function ja(e) {
5403
5413
  }
5404
5414
  function Ba(e) {
5405
5415
  switch (e) {
5406
- case A.EQUAL:
5407
- case A.GREATER_THAN:
5408
- case A.LESS_THAN:
5416
+ case I.EQUAL:
5417
+ case I.GREATER_THAN:
5418
+ case I.LESS_THAN:
5409
5419
  return "sea";
5410
- case A.RANGE:
5420
+ case I.RANGE:
5411
5421
  return "esté entre";
5412
- case A.LIST_OF_VALUES:
5413
- case A.LIST_OF_VALUES_MULTI:
5422
+ case I.LIST_OF_VALUES:
5423
+ case I.LIST_OF_VALUES_MULTI:
5414
5424
  return "esté en";
5415
5425
  default:
5416
5426
  return "sea";
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "description": "",
12
12
  "private": false,
13
- "version": "2.0.5",
13
+ "version": "2.0.7",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@formkit/drag-and-drop": "^0.5.3",
40
40
  "@inubekit/inubekit": "^6.1.0",
41
- "@isettingkit/input": "^1.0.7",
42
- "@isettingkit/view": "^0.1.25",
41
+ "@isettingkit/input": "^1.0.8",
42
+ "@isettingkit/view": "^0.1.26",
43
43
  "axios": "^1.9.0",
44
44
  "franc-min": "^6.2.0"
45
45
  },