impaktapps-ui-builder 1.0.64-alpha.109 → 1.0.64-alpha.111

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.
@@ -12571,13 +12571,28 @@ const buildUiSchema = (config2, store2) => {
12571
12571
  });
12572
12572
  }
12573
12573
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12574
- return {
12574
+ const rowElements = [];
12575
+ const commonProperties = {
12575
12576
  accessorKey: cellElem.name,
12577
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12576
12578
  header: cellElem.label || cellElem.name,
12577
12579
  size: sizeMap[cellElem.name] || 180,
12578
- type: cellElem.columnFormat,
12579
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
12580
+ enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12581
+ columnFilterModeOptions: cellElem.filteringOptions,
12582
+ enableSorting: cellElem.enableSorting === "No" ? false : true,
12583
+ columnKey: cellElem.columnKey
12580
12584
  };
12585
+ if (cellElem.type) {
12586
+ const tableElem = {
12587
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12588
+ ...commonProperties,
12589
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12590
+ };
12591
+ rowElements.push(tableElem);
12592
+ } else {
12593
+ rowElements.push({ ...commonProperties });
12594
+ }
12595
+ return rowElements;
12581
12596
  });
12582
12597
  } else if (config2.type == "Table") {
12583
12598
  const sizeMap = {};
@@ -12611,13 +12626,11 @@ const buildUiSchema = (config2, store2) => {
12611
12626
  tableHeaderElements.push({ widget: headerElem });
12612
12627
  return false;
12613
12628
  }
12614
- let tableElem = {
12629
+ const tableElem = {
12615
12630
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12616
- ...commonProperties
12631
+ ...commonProperties,
12632
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12617
12633
  };
12618
- if (cellElem.type === "ColumnGroup") {
12619
- tableElem = { ...tableElem, ...buildUiSchema(cellElem, store2) };
12620
- }
12621
12634
  rowElements.push(tableElem);
12622
12635
  } else {
12623
12636
  rowElements.push({ ...commonProperties });