@isettingkit/business-rules 3.0.1 → 3.0.2
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 +7 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2731,7 +2731,7 @@ const ui = N.div`
|
|
|
2731
2731
|
function $i({
|
|
2732
2732
|
decision: e,
|
|
2733
2733
|
onSubmitEvent: t,
|
|
2734
|
-
|
|
2734
|
+
withTerm: n
|
|
2735
2735
|
}) {
|
|
2736
2736
|
const r = xe(e) || {}, o = () => Object.entries(r).flatMap(
|
|
2737
2737
|
([h, f]) => f.map((g) => ({ group: h, cond: g }))
|
|
@@ -2789,7 +2789,9 @@ function $i({
|
|
|
2789
2789
|
const v = f == null ? void 0 : f.conditionsThatEstablishesTheDecision, b = !!(f != null && f.toggleNone);
|
|
2790
2790
|
let T = !1;
|
|
2791
2791
|
if (v && typeof v == "object" && (T = Object.values(v).some(
|
|
2792
|
-
(C) => C && typeof C == "object" && Object.values(C).some(
|
|
2792
|
+
(C) => C && typeof C == "object" && Object.values(C).some(
|
|
2793
|
+
(E) => Ft(E)
|
|
2794
|
+
)
|
|
2793
2795
|
)), b && !T) return W().shape({});
|
|
2794
2796
|
if (!T) return W().shape({});
|
|
2795
2797
|
const S = {};
|
|
@@ -2810,7 +2812,7 @@ function $i({
|
|
|
2810
2812
|
return W(S);
|
|
2811
2813
|
})
|
|
2812
2814
|
};
|
|
2813
|
-
n
|
|
2815
|
+
n && (s.effectiveFrom = Me().required(
|
|
2814
2816
|
"Se requiere la fecha de vigencia desde"
|
|
2815
2817
|
), s.validUntil = Me().when(
|
|
2816
2818
|
"checkClosed",
|
|
@@ -3082,7 +3084,7 @@ const Ii = N.div`
|
|
|
3082
3084
|
}) }),
|
|
3083
3085
|
l && /* @__PURE__ */ a(L, { type: "label", size: "medium", appearance: "danger", children: "Existen errores en el formulario, por favor revísalos." })
|
|
3084
3086
|
] }) }),
|
|
3085
|
-
S && /* @__PURE__ */ a(Xe, { legend: "Vigencia", spacing: "wide", children:
|
|
3087
|
+
S && /* @__PURE__ */ a(Xe, { legend: "Vigencia", spacing: "wide", children: /* @__PURE__ */ a(
|
|
3086
3088
|
Ri,
|
|
3087
3089
|
{
|
|
3088
3090
|
labelStart: h.termStart,
|
|
@@ -3238,7 +3240,7 @@ const Be = (e) => {
|
|
|
3238
3240
|
} = e, { formik: s, handleToggleNoneChange: p } = $i({
|
|
3239
3241
|
decision: t,
|
|
3240
3242
|
onSubmitEvent: n,
|
|
3241
|
-
|
|
3243
|
+
withTerm: l
|
|
3242
3244
|
}), d = u ?? t, h = xe(d), f = xe(t), g = tr(
|
|
3243
3245
|
f,
|
|
3244
3246
|
(R) => !R.hidden
|