impaktapps-ui-builder 1.0.64-alpha.106 → 1.0.64-alpha.107

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.64-alpha.106",
3
+ "version": "1.0.64-alpha.107",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -375,10 +375,22 @@ const buildUiSchema = (config: any, store?: any) => {
375
375
  return false;
376
376
  }
377
377
  const tableElem = {
378
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements : [],
378
+ // elements: cellElem.type == "ColumnGroup" ? cellElem.elements : [],
379
379
  // widget: buildUiSchema(cellElem, store),
380
380
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
381
- // elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
381
+ elements: cellElem.type == "ColumnGroup" ?
382
+ cellElem.elements.map(
383
+ (childCellElem) => {
384
+ if(childCellElem.type){
385
+ return {widget: buildUiSchema(childCellElem, store),
386
+ ...commonProperties
387
+ }
388
+ }
389
+ else{
390
+ return {...commonProperties}
391
+ }
392
+ })
393
+ : [],
382
394
  ...commonProperties
383
395
 
384
396
  }