@isettingkit/business-rules 2.1.1 → 2.1.3

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 +10 -2
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1662,8 +1662,16 @@ const jr = C.div`
1662
1662
  [N.LESS_THAN]: no,
1663
1663
  [N.EQUAL]: to
1664
1664
  }, _e = (e) => {
1665
- const n = e == null ? void 0 : e.value, t = typeof n == "object" && n !== null && !Array.isArray(n), r = ro[e == null ? void 0 : e.howToSetTheDecision] || Qr;
1666
- return t && r(n) || n || void 0;
1665
+ const n = e == null ? void 0 : e.value;
1666
+ if (typeof n == "string" && n.startsWith("De ") && n.includes(" a ")) {
1667
+ const t = n.match(/De\s+(\d+)\s+a\s+(\d+)/);
1668
+ if (t) {
1669
+ const r = t[1], o = t[2];
1670
+ return { from: r, to: o };
1671
+ }
1672
+ return n;
1673
+ }
1674
+ return typeof n == "object" && n !== null && !Array.isArray(n) ? (ro[e == null ? void 0 : e.howToSetTheDecision] || Qr)(n) : n || void 0;
1667
1675
  }, oo = C.div`
1668
1676
  display: flex;
1669
1677
  justify-content: ${({ $justifyContent: e }) => e};
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "description": "",
12
12
  "private": false,
13
- "version": "2.1.1",
13
+ "version": "2.1.3",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {