impaktapps-ui-builder 0.0.1051 → 0.0.1052

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.
@@ -8520,7 +8520,7 @@ function refreshPage(type, store2) {
8520
8520
  }
8521
8521
  }
8522
8522
  };
8523
- UiSchema.elements[0].elements[0].elements[6] = {
8523
+ UiSchema.elements[1].elements[0].elements[6] = {
8524
8524
  type: "Control",
8525
8525
  scope: "#/properties/enableSorting",
8526
8526
  options: {
@@ -8533,7 +8533,7 @@ function refreshPage(type, store2) {
8533
8533
  options: ["Yes", "No"]
8534
8534
  }
8535
8535
  }
8536
- }, UiSchema.elements[0].elements[0].elements[7] = {
8536
+ }, UiSchema.elements[1].elements[0].elements[7] = {
8537
8537
  type: "Control",
8538
8538
  scope: "#/properties/columnKey",
8539
8539
  options: {
@@ -12470,28 +12470,25 @@ const buildUiSchema = (config2, store2) => {
12470
12470
  });
12471
12471
  }
12472
12472
  elements.elements = config2.elements.map((cellElem, elemInd) => {
12473
- var _a, _b;
12473
+ var _a;
12474
+ const commonProperties = {
12475
+ accessorKey: cellElem.name,
12476
+ type: cellElem.columnFormat,
12477
+ header: cellElem.label || cellElem.name,
12478
+ size: sizeMap[cellElem.name] || 180,
12479
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12480
+ columnFilterModeOptions: config2.filteringOptions,
12481
+ enableSorting: config2.enableSorting === "No" ? false : true,
12482
+ columnKey: config2.columnKey
12483
+ };
12474
12484
  if (cellElem.type) {
12475
12485
  return {
12476
- accessorKey: cellElem.name,
12477
- header: cellElem.label || cellElem.name,
12478
- size: sizeMap[cellElem.name] || 180,
12479
- type: cellElem.columnFormat,
12480
12486
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12481
12487
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12482
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12483
- columnFilterModeOptions: config2.filteringOptions,
12484
- enableSorting: config2.enableSorting === "No" ? false : true
12488
+ ...commonProperties
12485
12489
  };
12486
12490
  } else {
12487
- return {
12488
- accessorKey: cellElem.name,
12489
- type: cellElem.columnFormat,
12490
- header: cellElem.label || cellElem.name,
12491
- size: sizeMap[cellElem.name] || 180,
12492
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12493
- columnFilterModeOptions: config2.filteringOptions
12494
- };
12491
+ return commonProperties;
12495
12492
  }
12496
12493
  });
12497
12494
  } else if (config2.type == "Array") {