impaktapps-ui-builder 1.0.125-testL.1 → 1.0.125-testL.2

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.125-testL.1",
3
+ "version": "1.0.125-testL.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -274,7 +274,17 @@ const buildUiSchema = (config: any, store?: any) => {
274
274
 
275
275
  if (config?.elements) {
276
276
  if (config?.type === "LeaderBoard") {
277
- return elements;
277
+ const rowElements = []
278
+ config.elements.filter((cellElem, elemInd) => {
279
+ const commonProperties = {
280
+ accessorKey: cellElem.name,
281
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
282
+ header: cellElem.label || cellElem.name,
283
+ columnKey: cellElem.columnKey
284
+ }
285
+ rowElements.push({ ...commonProperties })
286
+ })
287
+ elements.elements = rowElements;
278
288
  }
279
289
  else if (config.type == "ColumnGroup") {
280
290
  const sizeMap = {}