@apexcura/ui-components 0.0.11-Beta33 → 0.0.11-Beta34

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