@apexcura/ui-components 0.0.11-Beta55 → 0.0.11-Beta57

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
@@ -392,7 +392,6 @@ var AddMoreTable = (props) => {
392
392
  }
393
393
  ]
394
394
  };
395
- console.log(rows);
396
395
  setRows((prevData) => [...prevData, newRow]);
397
396
  };
398
397
  const onHandleDelete = (index) => {
@@ -453,16 +452,14 @@ var AddMoreTable = (props) => {
453
452
  return null;
454
453
  }
455
454
  };
456
- const dataSource = rows.flatMap((eachRow, index) => {
455
+ const dataSource = rows.map((eachRow, index) => {
457
456
  const rowData = [];
458
- console.log("rowData-------", rowData);
459
457
  const mainRow = {
460
458
  key: index.toString(),
461
459
  "#": index + 1,
462
460
  ...eachRow,
463
461
  actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
464
462
  };
465
- console.log("mainRow--------", mainRow);
466
463
  const subRowElements = [];
467
464
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
468
465
  eachRow.variable_data.forEach((variable, subIndex) => {
@@ -474,7 +471,6 @@ var AddMoreTable = (props) => {
474
471
  subRowElement[value.label] = renderInputElement(value);
475
472
  }
476
473
  });
477
- console.log("subRowElements", subRowElements);
478
474
  subRowElements.push(subRowElement);
479
475
  });
480
476
  }
@@ -486,7 +482,7 @@ var AddMoreTable = (props) => {
486
482
  }),
487
483
  "sub rows": subRowElements
488
484
  });
489
- console.log("rowData++++++++++");
485
+ console.log("rowData++++++++++", rowData);
490
486
  return rowData;
491
487
  });
492
488
  if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
package/dist/index.mjs CHANGED
@@ -345,7 +345,6 @@ var AddMoreTable = (props) => {
345
345
  }
346
346
  ]
347
347
  };
348
- console.log(rows);
349
348
  setRows((prevData) => [...prevData, newRow]);
350
349
  };
351
350
  const onHandleDelete = (index) => {
@@ -406,16 +405,14 @@ var AddMoreTable = (props) => {
406
405
  return null;
407
406
  }
408
407
  };
409
- const dataSource = rows.flatMap((eachRow, index) => {
408
+ const dataSource = rows.map((eachRow, index) => {
410
409
  const rowData = [];
411
- console.log("rowData-------", rowData);
412
410
  const mainRow = {
413
411
  key: index.toString(),
414
412
  "#": index + 1,
415
413
  ...eachRow,
416
414
  actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
417
415
  };
418
- console.log("mainRow--------", mainRow);
419
416
  const subRowElements = [];
420
417
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
421
418
  eachRow.variable_data.forEach((variable, subIndex) => {
@@ -427,7 +424,6 @@ var AddMoreTable = (props) => {
427
424
  subRowElement[value.label] = renderInputElement(value);
428
425
  }
429
426
  });
430
- console.log("subRowElements", subRowElements);
431
427
  subRowElements.push(subRowElement);
432
428
  });
433
429
  }
@@ -439,7 +435,7 @@ var AddMoreTable = (props) => {
439
435
  }),
440
436
  "sub rows": subRowElements
441
437
  });
442
- console.log("rowData++++++++++");
438
+ console.log("rowData++++++++++", rowData);
443
439
  return rowData;
444
440
  });
445
441
  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.11-Beta55",
3
+ "version": "0.0.11-Beta57",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",