@apexcura/ui-components 0.0.11-Beta37 → 0.0.11-Beta39

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
@@ -388,8 +388,6 @@ var AddMoreTable = (props) => {
388
388
  setRows(remainingRows);
389
389
  }
390
390
  };
391
- const onHandleSubRowsAdd = () => {
392
- };
393
391
  const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
394
392
  title: eachHeadEl.label,
395
393
  dataIndex: eachHeadEl.name,
@@ -414,11 +412,11 @@ var AddMoreTable = (props) => {
414
412
  eachRow.variable_data.forEach((variable) => {
415
413
  Object.entries(variable).forEach(([key, value]) => {
416
414
  if (key === "icons" && value) {
417
- rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.map((variable2, subIndex) => {
418
- console.log(variable2);
419
- console.log(subIndex);
420
- /* @__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)))));
421
- }));
415
+ {
416
+ eachRow.variable_data.map((variable2, subIndex) => {
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)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
418
+ });
419
+ }
422
420
  } else if (value && value.element && value.label) {
423
421
  rowElements[value.label] = renderInputElement(value);
424
422
  }
package/dist/index.mjs CHANGED
@@ -341,8 +341,6 @@ var AddMoreTable = (props) => {
341
341
  setRows(remainingRows);
342
342
  }
343
343
  };
344
- const onHandleSubRowsAdd = () => {
345
- };
346
344
  const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
347
345
  title: eachHeadEl.label,
348
346
  dataIndex: eachHeadEl.name,
@@ -367,11 +365,11 @@ var AddMoreTable = (props) => {
367
365
  eachRow.variable_data.forEach((variable) => {
368
366
  Object.entries(variable).forEach(([key, value]) => {
369
367
  if (key === "icons" && value) {
370
- rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.map((variable2, subIndex) => {
371
- console.log(variable2);
372
- console.log(subIndex);
373
- /* @__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)))));
374
- }));
368
+ {
369
+ eachRow.variable_data.map((variable2, subIndex) => {
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)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
371
+ });
372
+ }
375
373
  } else if (value && value.element && value.label) {
376
374
  rowElements[value.label] = renderInputElement(value);
377
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta37",
3
+ "version": "0.0.11-Beta39",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",