@apexcura/ui-components 0.0.12-Beta13 → 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;
@@ -431,6 +432,7 @@ var AddMoreTable = (props) => {
431
432
  };
432
433
  }
433
434
  return row;
435
+ console.log("---------------row", row);
434
436
  });
435
437
  });
436
438
  };
@@ -468,7 +470,7 @@ var AddMoreTable = (props) => {
468
470
  "#": index + 1,
469
471
  ...eachRow,
470
472
  ...rowElements,
471
- 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)))
472
474
  };
473
475
  });
474
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;
@@ -384,6 +385,7 @@ var AddMoreTable = (props) => {
384
385
  };
385
386
  }
386
387
  return row;
388
+ console.log("---------------row", row);
387
389
  });
388
390
  });
389
391
  };
@@ -421,7 +423,7 @@ var AddMoreTable = (props) => {
421
423
  "#": index + 1,
422
424
  ...eachRow,
423
425
  ...rowElements,
424
- 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)))
425
427
  };
426
428
  });
427
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-Beta13",
3
+ "version": "0.0.12-Beta16",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",