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

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.
@@ -50,7 +50,7 @@ const PageMasterUiSchema = (theme) => {
50
50
  var _a;
51
51
  const uiSchema = {
52
52
  type: "HorizontalLayout",
53
- heading: "Page",
53
+ heading: "Page-add",
54
54
  elements: [
55
55
  {
56
56
  type: "WrapperLayout",
@@ -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" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
8521
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8522
8522
  UiSchema.elements[0].elements[0].elements[4] = {
8523
8523
  type: "Control",
8524
8524
  scope: "#/properties/columnFormat",
@@ -12572,26 +12572,13 @@ const buildUiSchema = (config2, store2) => {
12572
12572
  });
12573
12573
  }
12574
12574
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12575
- const commonProperties = {
12575
+ return {
12576
12576
  accessorKey: cellElem.name,
12577
- type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12578
12577
  header: cellElem.label || cellElem.name,
12579
12578
  size: sizeMap[cellElem.name] || 180,
12580
- enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12581
- columnFilterModeOptions: cellElem.filteringOptions,
12582
- enableSorting: cellElem.enableSorting === "No" ? false : true,
12583
- columnKey: cellElem.columnKey
12579
+ type: cellElem.columnFormat,
12580
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
12584
12581
  };
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
- }
12595
12582
  });
12596
12583
  } else if (config2.type == "Table") {
12597
12584
  const sizeMap = {};
@@ -12606,7 +12593,7 @@ const buildUiSchema = (config2, store2) => {
12606
12593
  config2.elements.filter((cellElem, elemInd) => {
12607
12594
  const commonProperties = {
12608
12595
  accessorKey: cellElem.name,
12609
- type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
12596
+ type: cellElem.columnFormat,
12610
12597
  header: cellElem.label || cellElem.name,
12611
12598
  size: sizeMap[cellElem.name] || 180,
12612
12599
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
@@ -12627,8 +12614,8 @@ const buildUiSchema = (config2, store2) => {
12627
12614
  }
12628
12615
  const tableElem = {
12629
12616
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12630
- ...commonProperties,
12631
- ...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
12617
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12618
+ ...commonProperties
12632
12619
  };
12633
12620
  rowElements.push(tableElem);
12634
12621
  } else {