impaktapps-ui-builder 1.0.64-alpha.106 → 1.0.64-alpha.108
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
|
@@ -374,13 +374,27 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
374
374
|
tableHeaderElements.push({widget:headerElem});
|
|
375
375
|
return false;
|
|
376
376
|
}
|
|
377
|
-
const tableElem = {
|
|
378
|
-
elements: cellElem.type == "ColumnGroup" ? cellElem.elements : [],
|
|
377
|
+
const tableElem: any = {
|
|
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" ?
|
|
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
|
+
}
|
|
396
|
+
if(cellElem.type === "ColumnGroup"){
|
|
397
|
+
tableElem.elements = buildUiSchema(cellElem, store)
|
|
384
398
|
}
|
|
385
399
|
rowElements.push(tableElem)
|
|
386
400
|
} else {
|