@apexcura/ui-components 0.0.11-Beta35 → 0.0.11-Beta36

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
@@ -414,7 +414,7 @@ var AddMoreTable = (props) => {
414
414
  eachRow.variable_data.forEach((variable) => {
415
415
  Object.entries(variable).forEach(([key, value]) => {
416
416
  if (key === "icons" && value) {
417
- rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), eachRow.variable_data.length - 1 === index && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
417
+ rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.map((variable2, subIndex) => /* @__PURE__ */ import_react13.default.createElement("div", { key: subIndex }, Object.entries(variable2).map(([key2, value2]) => /* @__PURE__ */ import_react13.default.createElement("div", { key: key2 }, /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))))));
418
418
  } else if (value && value.element && value.label) {
419
419
  rowElements[value.label] = renderInputElement(value);
420
420
  }
package/dist/index.mjs CHANGED
@@ -367,7 +367,7 @@ var AddMoreTable = (props) => {
367
367
  eachRow.variable_data.forEach((variable) => {
368
368
  Object.entries(variable).forEach(([key, value]) => {
369
369
  if (key === "icons" && value) {
370
- rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), eachRow.variable_data.length - 1 === index && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
370
+ rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.map((variable2, subIndex) => /* @__PURE__ */ React12.createElement("div", { key: subIndex }, Object.entries(variable2).map(([key2, value2]) => /* @__PURE__ */ React12.createElement("div", { key: key2 }, /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))))));
371
371
  } else if (value && value.element && value.label) {
372
372
  rowElements[value.label] = renderInputElement(value);
373
373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta35",
3
+ "version": "0.0.11-Beta36",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",