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

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.107",
3
+ "version": "1.0.64-alpha.109",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -374,25 +374,27 @@ const buildUiSchema = (config: any, store?: any) => {
374
374
  tableHeaderElements.push({widget:headerElem});
375
375
  return false;
376
376
  }
377
- const tableElem = {
377
+ let tableElem: any = {
378
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" ?
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
- : [],
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
+ // : [],
394
394
  ...commonProperties
395
-
395
+ }
396
+ if(cellElem.type === "ColumnGroup"){
397
+ tableElem = {...tableElem, ...buildUiSchema(cellElem, store)}
396
398
  }
397
399
  rowElements.push(tableElem)
398
400
  } else {