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

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,6 +455,15 @@ 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
+ }
458
467
  const mainRow = {
459
468
  key: index.toString(),
460
469
  "#": index + 1,
package/dist/index.mjs CHANGED
@@ -408,6 +408,15 @@ 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
+ }
411
420
  const mainRow = {
412
421
  key: index.toString(),
413
422
  "#": index + 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta45",
3
+ "version": "0.0.11-Beta47",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",