@isettingkit/business-rules 2.2.19 → 2.2.20

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 +8 -5
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -995,9 +995,11 @@ const bo = (e) => {
995
995
  ] })
996
996
  ] }) });
997
997
  }, vo = (e) => {
998
- const { decision: t, controls: n, handleOpenModal: r, handleDelete: o, textValues: i } = e;
999
- return t ? /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1000
- /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
998
+ const { decision: t, controls: n, handleOpenModal: r, handleDelete: o, textValues: i, index: c } = e;
999
+ if (!t) return null;
1000
+ const u = typeof c == "number" ? `Decision ${c + 1}` : t.decisionId;
1001
+ return /* @__PURE__ */ a(tt, { children: /* @__PURE__ */ b(T, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
1002
+ /* @__PURE__ */ a(R, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: u }),
1001
1003
  /* @__PURE__ */ a(
1002
1004
  bo,
1003
1005
  {
@@ -1014,7 +1016,7 @@ const bo = (e) => {
1014
1016
  )
1015
1017
  }
1016
1018
  )
1017
- ] }) }, t.decisionId) : null;
1019
+ ] }) }, t.decisionId);
1018
1020
  }, yo = (e) => {
1019
1021
  const {
1020
1022
  customTitleContentAddCard: t,
@@ -1522,7 +1524,8 @@ const Ao = N.div`
1522
1524
  textValues: u
1523
1525
  })
1524
1526
  ) : r == null ? void 0 : r.map(
1525
- (p) => Pt({
1527
+ (p, d) => Pt({
1528
+ index: d,
1526
1529
  type: "decision",
1527
1530
  decision: p,
1528
1531
  controls: t,
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "description": "",
12
12
  "private": false,
13
- "version": "2.2.19",
13
+ "version": "2.2.20",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {