impaktapps-ui-builder 1.0.65 → 1.0.66-alpha.1

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.
@@ -8518,7 +8518,7 @@ function refreshPage(type, store2) {
8518
8518
  const lastDotIndex = path.lastIndexOf(".");
8519
8519
  const parentPath = path.slice(0, lastDotIndex);
8520
8520
  const parentObj = _.get(currentConfig, parentPath);
8521
- if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8521
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8522
8522
  UiSchema.elements[0].elements[0].elements[4] = {
8523
8523
  type: "Control",
8524
8524
  scope: "#/properties/columnFormat",
@@ -12572,13 +12572,26 @@ const buildUiSchema = (config2, store2) => {
12572
12572
  });
12573
12573
  }
12574
12574
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12575
- return {
12575
+ const commonProperties = {
12576
12576
  accessorKey: cellElem.name,
12577
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12577
12578
  header: cellElem.label || cellElem.name,
12578
12579
  size: sizeMap[cellElem.name] || 180,
12579
- type: cellElem.columnFormat,
12580
- 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
12581
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
+ return tableElem;
12592
+ } else {
12593
+ return { ...commonProperties };
12594
+ }
12582
12595
  });
12583
12596
  } else if (config2.type == "Table") {
12584
12597
  const sizeMap = {};
@@ -12593,7 +12606,7 @@ const buildUiSchema = (config2, store2) => {
12593
12606
  config2.elements.filter((cellElem, elemInd) => {
12594
12607
  const commonProperties = {
12595
12608
  accessorKey: cellElem.name,
12596
- type: cellElem.columnFormat,
12609
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12597
12610
  header: cellElem.label || cellElem.name,
12598
12611
  size: sizeMap[cellElem.name] || 180,
12599
12612
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
@@ -12614,8 +12627,8 @@ const buildUiSchema = (config2, store2) => {
12614
12627
  }
12615
12628
  const tableElem = {
12616
12629
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12617
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12618
- ...commonProperties
12630
+ ...commonProperties,
12631
+ ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12619
12632
  };
12620
12633
  rowElements.push(tableElem);
12621
12634
  } else {