@apexcura/ui-components 0.0.11-Beta80 → 0.0.11-Beta82

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.js CHANGED
@@ -384,7 +384,7 @@ var AddMoreTable = (props) => {
384
384
  When: { label: "When", element: "textarea", type: "text" },
385
385
  Duration: { label: "Duration", element: "textarea", type: "text" },
386
386
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
387
- icons: { delete: "delete", add: "plus" }
387
+ SubRows: { delete: "delete", add: "plus" }
388
388
  }
389
389
  ]
390
390
  };
@@ -405,7 +405,7 @@ var AddMoreTable = (props) => {
405
405
  When: { label: "When", element: "textarea", type: "text" },
406
406
  Duration: { label: "Duration", element: "textarea", type: "text" },
407
407
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
408
- icons: { delete: "delete", add: "plus" }
408
+ SubRows: { delete: "delete", add: "plus" }
409
409
  };
410
410
  return {
411
411
  ...row,
@@ -455,7 +455,8 @@ var AddMoreTable = (props) => {
455
455
  }),
456
456
  ...eachRow.variable_data.reduce((acc, variable, subIndex) => {
457
457
  Object.keys(variable).forEach((key) => {
458
- if (key === "sub rows") {
458
+ console.log("key------", key);
459
+ if (key === "SubRows") {
459
460
  acc[`${key}`] = /* @__PURE__ */ import_react13.default.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsDelete(index, subIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsAdd(index) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
460
461
  } else {
461
462
  acc[`${key}`] = renderInputElement(variable[key]);
package/dist/index.mjs CHANGED
@@ -337,7 +337,7 @@ var AddMoreTable = (props) => {
337
337
  When: { label: "When", element: "textarea", type: "text" },
338
338
  Duration: { label: "Duration", element: "textarea", type: "text" },
339
339
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
340
- icons: { delete: "delete", add: "plus" }
340
+ SubRows: { delete: "delete", add: "plus" }
341
341
  }
342
342
  ]
343
343
  };
@@ -358,7 +358,7 @@ var AddMoreTable = (props) => {
358
358
  When: { label: "When", element: "textarea", type: "text" },
359
359
  Duration: { label: "Duration", element: "textarea", type: "text" },
360
360
  Instructions: { label: "Instructions", element: "textarea", type: "text" },
361
- icons: { delete: "delete", add: "plus" }
361
+ SubRows: { delete: "delete", add: "plus" }
362
362
  };
363
363
  return {
364
364
  ...row,
@@ -408,7 +408,8 @@ var AddMoreTable = (props) => {
408
408
  }),
409
409
  ...eachRow.variable_data.reduce((acc, variable, subIndex) => {
410
410
  Object.keys(variable).forEach((key) => {
411
- if (key === "sub rows") {
411
+ console.log("key------", key);
412
+ if (key === "SubRows") {
412
413
  acc[`${key}`] = /* @__PURE__ */ React12.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsDelete(index, subIndex) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsAdd(index) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
413
414
  } else {
414
415
  acc[`${key}`] = renderInputElement(variable[key]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta80",
3
+ "version": "0.0.11-Beta82",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",