impaktapps-ui-builder 0.0.101-alpha.261 → 0.0.101-alpha.262
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
|
@@ -347,8 +347,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
347
347
|
}
|
|
348
348
|
const tableHeaderElements = [];
|
|
349
349
|
const tableActionElement = [];
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
const rowElements = []
|
|
351
|
+
config.elements.filter((cellElem, elemInd) => {
|
|
352
352
|
const commonProperties = {
|
|
353
353
|
accessorKey: cellElem.name,
|
|
354
354
|
type: cellElem.columnFormat,
|
|
@@ -371,17 +371,18 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
371
371
|
return false;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
|
|
374
|
+
rowElements.push({
|
|
375
375
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
376
376
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
377
377
|
...commonProperties
|
|
378
378
|
|
|
379
|
-
}
|
|
379
|
+
})
|
|
380
380
|
} else {
|
|
381
|
-
|
|
381
|
+
rowElements.push(commonProperties)
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
})
|
|
385
|
+
elements.elements = rowElements;
|
|
385
386
|
elements.config.main.action = tableActionElement;
|
|
386
387
|
elements.config.main.headerIcons = tableHeaderElements;
|
|
387
388
|
}
|