impaktapps-ui-builder 1.0.57-alpha.1 → 1.0.57-alpha.100

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.57-alpha.1",
3
+ "version": "1.0.57-alpha.100",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -4,9 +4,7 @@ import _ from "lodash";
4
4
  export const buildTabSection = (config:any,componentScope:string) => {
5
5
  const tab: any = _.cloneDeep(Tabsection);
6
6
  tab.scope = componentScope;
7
- if (config.style) {
8
- tab.config.style = JSON.parse(config.style)
9
- }
7
+
10
8
  if(config.lazyLoad){
11
9
  tab.config.main.lazyLoad = config.lazyLoad === "YES" ?true:false;
12
10
  }
@@ -351,7 +351,7 @@ const buildUiSchema = (config: any, store?: any) => {
351
351
  config.elements.filter((cellElem, elemInd) => {
352
352
  const commonProperties = {
353
353
  accessorKey: cellElem.name,
354
- type: cellElem.columnFormat,
354
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
355
355
  header: cellElem.label || cellElem.name,
356
356
  size: sizeMap[cellElem.name] || 180,
357
357
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
@@ -67,7 +67,7 @@ export function refreshPage(type: string, store: any) {
67
67
 
68
68
  const parentObj = _.get(currentConfig, parentPath)
69
69
 
70
- if(parentObj?.type === "Table"){
70
+ if(parentObj?.type === "Table" || "ColumnGroup"){
71
71
  UiSchema.elements[0].elements[0].elements[4] =
72
72
  {
73
73
  type: "Control",