@apexcura/ui-components 0.0.11-Beta47 → 0.0.11-Beta48

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
@@ -455,15 +455,6 @@ var AddMoreTable = (props) => {
455
455
  };
456
456
  const dataSource = rows.flatMap((eachRow, index) => {
457
457
  const rowData = [];
458
- if (thead && Array.isArray(thead)) {
459
- const mainRow2 = {};
460
- thead.forEach((theadItem) => {
461
- if (theadItem.element && theadItem.label) {
462
- mainRow2[theadItem.label] = renderInputElement(theadItem);
463
- }
464
- });
465
- rowData.push(mainRow2);
466
- }
467
458
  const mainRow = {
468
459
  key: index.toString(),
469
460
  "#": index + 1,
@@ -471,6 +462,8 @@ var AddMoreTable = (props) => {
471
462
  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)))
472
463
  };
473
464
  rowData.push(mainRow);
465
+ console.log("eachrow", ...eachRow);
466
+ console.log(thead);
474
467
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
475
468
  eachRow.variable_data.forEach((variable, subIndex) => {
476
469
  const subRowElements = {};
package/dist/index.mjs CHANGED
@@ -408,15 +408,6 @@ var AddMoreTable = (props) => {
408
408
  };
409
409
  const dataSource = rows.flatMap((eachRow, index) => {
410
410
  const rowData = [];
411
- if (thead && Array.isArray(thead)) {
412
- const mainRow2 = {};
413
- thead.forEach((theadItem) => {
414
- if (theadItem.element && theadItem.label) {
415
- mainRow2[theadItem.label] = renderInputElement(theadItem);
416
- }
417
- });
418
- rowData.push(mainRow2);
419
- }
420
411
  const mainRow = {
421
412
  key: index.toString(),
422
413
  "#": index + 1,
@@ -424,6 +415,8 @@ var AddMoreTable = (props) => {
424
415
  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)))
425
416
  };
426
417
  rowData.push(mainRow);
418
+ console.log("eachrow", ...eachRow);
419
+ console.log(thead);
427
420
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
428
421
  eachRow.variable_data.forEach((variable, subIndex) => {
429
422
  const subRowElements = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta47",
3
+ "version": "0.0.11-Beta48",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",