impaktapps-ui-builder 0.0.101-alpha.261 → 0.0.101-alpha.263

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": "0.0.101-alpha.261",
3
+ "version": "0.0.101-alpha.263",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -347,8 +347,8 @@ const buildUiSchema = (config: any, store?: any) => {
347
347
  }
348
348
  const tableHeaderElements = [];
349
349
  const tableActionElement = [];
350
- elements.elements = config.elements.filter((cellElem, elemInd) => {
351
-
350
+ const rowElements = []
351
+ config.elements.filter((cellElem, elemInd) => {
352
352
  const commonProperties = {
353
353
  accessorKey: cellElem.name,
354
354
  type: cellElem.columnFormat,
@@ -370,18 +370,19 @@ const buildUiSchema = (config: any, store?: any) => {
370
370
  tableHeaderElements.push(headerElem);
371
371
  return false;
372
372
  }
373
-
374
- return {
373
+ const tableElem = {
375
374
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
376
375
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
377
376
  ...commonProperties
378
377
 
379
378
  }
379
+ rowElements.push(tableElem)
380
380
  } else {
381
- return commonProperties
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
  }