impaktapps-ui-builder 1.0.64-alpha.112 → 1.0.64-alpha.113

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.
@@ -12581,16 +12581,13 @@ const buildUiSchema = (config2, store2) => {
12581
12581
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12582
12582
  columnKey: cellElem.columnKey
12583
12583
  };
12584
- if (cellElem.type) {
12585
- const tableElem = {
12586
- widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12587
- ...commonProperties,
12588
- ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12589
- };
12590
- return tableElem;
12591
- } else {
12592
- return { ...commonProperties };
12593
- }
12584
+ return {
12585
+ accessorKey: cellElem.name,
12586
+ header: cellElem.label || cellElem.name,
12587
+ size: sizeMap[cellElem.name] || 180,
12588
+ type: cellElem.columnFormat,
12589
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => commonProperties) : []
12590
+ };
12594
12591
  });
12595
12592
  } else if (config2.type == "Table") {
12596
12593
  const sizeMap = {};
@@ -12626,8 +12623,8 @@ const buildUiSchema = (config2, store2) => {
12626
12623
  }
12627
12624
  const tableElem = {
12628
12625
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12629
- ...commonProperties,
12630
- ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12626
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => commonProperties) : [],
12627
+ ...commonProperties
12631
12628
  };
12632
12629
  rowElements.push(tableElem);
12633
12630
  } else {