@apexcura/ui-components 0.0.11-Beta54 → 0.0.11-Beta55
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -455,12 +455,14 @@ var AddMoreTable = (props) => {
|
|
|
455
455
|
};
|
|
456
456
|
const dataSource = rows.flatMap((eachRow, index) => {
|
|
457
457
|
const rowData = [];
|
|
458
|
+
console.log("rowData-------", rowData);
|
|
458
459
|
const mainRow = {
|
|
459
460
|
key: index.toString(),
|
|
460
461
|
"#": index + 1,
|
|
461
462
|
...eachRow,
|
|
462
463
|
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)))
|
|
463
464
|
};
|
|
465
|
+
console.log("mainRow--------", mainRow);
|
|
464
466
|
const subRowElements = [];
|
|
465
467
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
466
468
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
@@ -472,6 +474,7 @@ var AddMoreTable = (props) => {
|
|
|
472
474
|
subRowElement[value.label] = renderInputElement(value);
|
|
473
475
|
}
|
|
474
476
|
});
|
|
477
|
+
console.log("subRowElements", subRowElements);
|
|
475
478
|
subRowElements.push(subRowElement);
|
|
476
479
|
});
|
|
477
480
|
}
|
|
@@ -483,7 +486,7 @@ var AddMoreTable = (props) => {
|
|
|
483
486
|
}),
|
|
484
487
|
"sub rows": subRowElements
|
|
485
488
|
});
|
|
486
|
-
console.log(rowData);
|
|
489
|
+
console.log("rowData++++++++++");
|
|
487
490
|
return rowData;
|
|
488
491
|
});
|
|
489
492
|
if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
|
package/dist/index.mjs
CHANGED
|
@@ -408,12 +408,14 @@ var AddMoreTable = (props) => {
|
|
|
408
408
|
};
|
|
409
409
|
const dataSource = rows.flatMap((eachRow, index) => {
|
|
410
410
|
const rowData = [];
|
|
411
|
+
console.log("rowData-------", rowData);
|
|
411
412
|
const mainRow = {
|
|
412
413
|
key: index.toString(),
|
|
413
414
|
"#": index + 1,
|
|
414
415
|
...eachRow,
|
|
415
416
|
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)))
|
|
416
417
|
};
|
|
418
|
+
console.log("mainRow--------", mainRow);
|
|
417
419
|
const subRowElements = [];
|
|
418
420
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
419
421
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
@@ -425,6 +427,7 @@ var AddMoreTable = (props) => {
|
|
|
425
427
|
subRowElement[value.label] = renderInputElement(value);
|
|
426
428
|
}
|
|
427
429
|
});
|
|
430
|
+
console.log("subRowElements", subRowElements);
|
|
428
431
|
subRowElements.push(subRowElement);
|
|
429
432
|
});
|
|
430
433
|
}
|
|
@@ -436,7 +439,7 @@ var AddMoreTable = (props) => {
|
|
|
436
439
|
}),
|
|
437
440
|
"sub rows": subRowElements
|
|
438
441
|
});
|
|
439
|
-
console.log(rowData);
|
|
442
|
+
console.log("rowData++++++++++");
|
|
440
443
|
return rowData;
|
|
441
444
|
});
|
|
442
445
|
if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
|