@apexcura/ui-components 0.0.12-Beta14 → 0.0.12-Beta16

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
@@ -411,6 +411,7 @@ var AddMoreTable = (props) => {
411
411
  const onAddVariableData = (rowIndex) => {
412
412
  setRows((prevRows) => {
413
413
  return prevRows.map((row, index) => {
414
+ console.log("row", row);
414
415
  if (index === rowIndex && row.variable_data && row.variable_data.length > 0) {
415
416
  const lastVariable = row.variable_data[row.variable_data.length - 1];
416
417
  const newVariableId = lastVariable.id.id + 1;
@@ -430,8 +431,8 @@ var AddMoreTable = (props) => {
430
431
  ]
431
432
  };
432
433
  }
433
- console.log("row", row);
434
434
  return row;
435
+ console.log("---------------row", row);
435
436
  });
436
437
  });
437
438
  };
@@ -469,7 +470,7 @@ var AddMoreTable = (props) => {
469
470
  "#": index + 1,
470
471
  ...eachRow,
471
472
  ...rowElements,
472
- actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onAddVariableData(index) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
473
+ actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onAddVariableData(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
473
474
  };
474
475
  });
475
476
  if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
package/dist/index.mjs CHANGED
@@ -364,6 +364,7 @@ var AddMoreTable = (props) => {
364
364
  const onAddVariableData = (rowIndex) => {
365
365
  setRows((prevRows) => {
366
366
  return prevRows.map((row, index) => {
367
+ console.log("row", row);
367
368
  if (index === rowIndex && row.variable_data && row.variable_data.length > 0) {
368
369
  const lastVariable = row.variable_data[row.variable_data.length - 1];
369
370
  const newVariableId = lastVariable.id.id + 1;
@@ -383,8 +384,8 @@ var AddMoreTable = (props) => {
383
384
  ]
384
385
  };
385
386
  }
386
- console.log("row", row);
387
387
  return row;
388
+ console.log("---------------row", row);
388
389
  });
389
390
  });
390
391
  };
@@ -422,7 +423,7 @@ var AddMoreTable = (props) => {
422
423
  "#": index + 1,
423
424
  ...eachRow,
424
425
  ...rowElements,
425
- actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), /* @__PURE__ */ React12.createElement("button", { onClick: () => onAddVariableData(index) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
426
+ actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), /* @__PURE__ */ React12.createElement("button", { onClick: () => onAddVariableData(eachRow.id) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
426
427
  };
427
428
  });
428
429
  if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta14",
3
+ "version": "0.0.12-Beta16",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",