impaktapps-ui-builder 0.0.97-alpha.17 → 0.0.97-alpha.19

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.
@@ -12,11 +12,15 @@ export declare const BarGraph: {
12
12
  lg: number;
13
13
  };
14
14
  main: {
15
+ type: string;
15
16
  legendLabels: any;
16
17
  };
17
18
  style: {
18
19
  containerStyle: {};
19
- labelStyle: {};
20
+ labelStyle: {
21
+ margin: {};
22
+ };
23
+ barStyle: {};
20
24
  };
21
25
  };
22
26
  };
@@ -37,7 +41,13 @@ export declare const PieGraph: {
37
41
  type: string;
38
42
  legendLabels: any;
39
43
  };
40
- style: {};
44
+ style: {
45
+ containerStyle: {};
46
+ labelStyle: {
47
+ margin: {};
48
+ };
49
+ pieStyle: {};
50
+ };
41
51
  };
42
52
  };
43
53
  export declare const LineGraph: {
@@ -59,8 +69,9 @@ export declare const LineGraph: {
59
69
  };
60
70
  style: {
61
71
  containerStyle: {};
62
- headerStyle: {};
63
- labelStyle: {};
72
+ labelStyle: {
73
+ margin: {};
74
+ };
64
75
  lineStyle: {};
65
76
  };
66
77
  };
@@ -83,7 +94,11 @@ export declare const HorizontalBarGraph: {
83
94
  legendLabels: any;
84
95
  };
85
96
  style: {
86
- labelStyle: {};
97
+ containerStyle: {};
98
+ labelStyle: {
99
+ margin: {};
100
+ };
101
+ barStyle: {};
87
102
  };
88
103
  };
89
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.97-alpha.17",
3
+ "version": "0.0.97-alpha.19",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -27,28 +27,13 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
27
27
  if (config.xAxisValue) {
28
28
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
29
29
  }
30
- if (config.containerBackground) {
31
- horizontalBarGraph.config.containerStyle.background =
32
- config.containerBackground;
33
- }
34
30
  if (config.height) {
35
- horizontalBarGraph.config.style =
36
- {
37
- containerStyle: {
38
- height: config.height
39
- }
40
- }
41
-
31
+ horizontalBarGraph.config.style.containerStyle.height = config.height;
42
32
  }
43
33
  if (config.leftMargin) {
44
- horizontalBarGraph.config.style =
45
- {
46
- labelStyle: {
47
- margin: {
34
+ horizontalBarGraph.config.style.labelStyle.margin ={
48
35
  left: config.leftMargin
49
36
  }
50
- }
51
- }
52
37
  }
53
38
  if (config.bottomLabel) {
54
39
  horizontalBarGraph.config.main.bottomLabel =
@@ -12,14 +12,9 @@ export const buildLineGraph = (config, componentScope) => {
12
12
  lineGraph.config.style.containerStyle.height = config.height;
13
13
  }
14
14
  if (config.leftMargin) {
15
- lineGraph.config.style =
16
- {
17
- labelStyle: {
18
- margin: {
15
+ lineGraph.config.style.labelStyle.margin ={
19
16
  left: config.leftMargin
20
17
  }
21
- }
22
- }
23
18
  }
24
19
  if (config.bottomLabel) {
25
20
  lineGraph.config.main.bottomLabel = config.bottomLabel;
@@ -7,13 +7,7 @@ export const buildPieGraph = (config, componentScope) => {
7
7
  pieGraph.config.layout = createLayoutFormat(config.layout);
8
8
  }
9
9
  if (config.height) {
10
- pieGraph.config.style =
11
- {
12
- containerStyle: {
13
- height: config.height
14
- }
15
- };
16
-
10
+ pieGraph.config.style.containerStyle.height = config.height;
17
11
  }
18
12
  if (config.legendHide) {
19
13
  pieGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
@@ -28,12 +22,7 @@ export const buildPieGraph = (config, componentScope) => {
28
22
  pieGraph.config.main.xAxisValue = config.xAxisValue;
29
23
  }
30
24
  if (config.pieArcColors) {
31
- pieGraph.config.style = {
32
- pieStyle: {
33
- colorRange: flatObjectValueInArray(config.pieArcColors)
34
- }
35
- }
36
-
25
+ pieGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
37
26
  }
38
27
  return pieGraph;
39
28
  }
@@ -29,14 +29,9 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
29
29
  barGraph.config.style.containerStyle.height = config.height;
30
30
  }
31
31
  if (config.leftMargin) {
32
- barGraph.config.style =
33
- {
34
- labelStyle: {
35
- margin: {
32
+ barGraph.config.style.labelStyle.margin ={
36
33
  left: config.leftMargin
37
34
  }
38
- }
39
- }
40
35
  }
41
36
  if (config.bottomLabel) {
42
37
  barGraph.config.main.bottomLabel = config.bottomLabel;
@@ -8,9 +8,10 @@ export const BarGraph = {
8
8
  config: {
9
9
  layout: {xs :12,sm:12,md:12,lg:6},
10
10
  main: {
11
+ type: "BarGraph",
11
12
  legendLabels: null
12
13
  },
13
- style: { containerStyle: {},labelStyle:{} }
14
+ style: { containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
14
15
  },
15
16
  };
16
17
 
@@ -26,7 +27,7 @@ export const PieGraph = {
26
27
  type: "PieGraph",
27
28
  legendLabels: null
28
29
  },
29
- style:{}
30
+ style:{ containerStyle: {},labelStyle:{margin:{}} ,pieStyle:{} }
30
31
  },
31
32
  };
32
33
  export const LineGraph = {
@@ -41,12 +42,7 @@ export const LineGraph = {
41
42
  type: "LineGraph",
42
43
  legendLabels: null
43
44
  },
44
- style: {
45
- containerStyle: {},
46
- headerStyle: {},
47
- labelStyle: {},
48
- lineStyle: {},
49
- },
45
+ style: { containerStyle: {},labelStyle:{margin:{}} ,lineStyle:{} },
50
46
  },
51
47
  };
52
48
 
@@ -62,8 +58,6 @@ export const HorizontalBarGraph = {
62
58
  type: "HorizontalBarGraph",
63
59
  legendLabels: null
64
60
  },
65
- style:{
66
- labelStyle:{}
67
- }
61
+ style:{ containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
68
62
  },
69
63
  };