impaktapps-ui-builder 1.0.64-alpha.114 → 1.0.64-alpha.116

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.114",
3
+ "version": "1.0.64-alpha.116",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -346,11 +346,9 @@ const buildUiSchema = (config: any, store?: any) => {
346
346
  }
347
347
  elements.elements = config.elements.map((cellElem, elemInd) => {
348
348
  return {
349
- accessorKey: cellElem.name,
350
- header: cellElem.label || cellElem.name,
351
- size: sizeMap[cellElem.name] || 180,
352
- type: cellElem.columnFormat,
353
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => getCommonProperties(childCellElem, sizeMap)) : []
349
+ widget: (cellElem.type && cellElem.type != "ColumnGroup") ? buildUiSchema(cellElem, store) : undefined,
350
+ ...getCommonProperties(cellElem, sizeMap),
351
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => getCommonProperties(childCellElem, sizeMap)) : [],
354
352
  }
355
353
  })
356
354
  } else if (config.type == "Table") {
@@ -388,8 +386,8 @@ const buildUiSchema = (config: any, store?: any) => {
388
386
  }
389
387
  const tableElem = {
390
388
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
389
+ ...getCommonProperties(cellElem, sizeMap),
391
390
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => getCommonProperties(childCellElem, sizeMap)) : [],
392
- ...getCommonProperties(cellElem, sizeMap)
393
391
 
394
392
  }
395
393
  rowElements.push(tableElem)