impaktapps-ui-builder 0.0.97-alpha.7 → 0.0.97-alpha.8

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.
@@ -11,7 +11,9 @@ export declare const BarGraph: {
11
11
  md: number;
12
12
  lg: number;
13
13
  };
14
- main: {};
14
+ main: {
15
+ legendLabels: any;
16
+ };
15
17
  style: {
16
18
  containerStyle: {};
17
19
  labelStyle: {};
@@ -33,6 +35,7 @@ export declare const PieGraph: {
33
35
  };
34
36
  main: {
35
37
  type: string;
38
+ legendLabels: any;
36
39
  };
37
40
  style: {};
38
41
  };
@@ -51,29 +54,11 @@ export declare const LineGraph: {
51
54
  lg: number;
52
55
  };
53
56
  main: {
54
- type: string;
55
- header: string;
56
- bottomLabel: string;
57
- leftLabel: string;
58
- gridHidden: boolean;
59
- numHidden: boolean;
60
- tooltipDataKey: string[];
61
- axisLeft: boolean;
62
- axisBottom: boolean;
63
- hideLeftAxisLine: boolean;
64
- hideBottomAxisLine: boolean;
65
- legend: {
66
- labelColor: string;
67
- direction: string;
68
- align: string;
69
- colorRectWidth: number;
70
- };
57
+ legendLabels: any;
71
58
  };
72
59
  style: {
73
60
  containerStyle: {};
74
- headerStyle: {};
75
61
  labelStyle: {};
76
- lineStyle: {};
77
62
  };
78
63
  };
79
64
  };
@@ -92,6 +77,7 @@ export declare const HorizontalBarGraph: {
92
77
  };
93
78
  main: {
94
79
  type: string;
80
+ legendLabels: any;
95
81
  };
96
82
  style: {
97
83
  labelStyle: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.97-alpha.7",
3
+ "version": "0.0.97-alpha.8",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -19,7 +19,7 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
19
19
  horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
20
20
  }
21
21
  if (config.legendLabels) {
22
- horizontalBarGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
22
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
23
23
  }
24
24
  if (config.pieArcColors) {
25
25
  horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
@@ -40,7 +40,7 @@ export const buildLineGraph = (config, componentScope) => {
40
40
  lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
41
41
  }
42
42
  if (config.legendLabels) {
43
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
43
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
44
44
  }
45
45
 
46
46
  if (config.pieArcColors) {
@@ -22,7 +22,7 @@ export const buildPieGraph = (config, componentScope) => {
22
22
  pieGraph.config.main.header = config.heading;
23
23
 
24
24
  if (config.legendLabels) {
25
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
25
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
26
26
  }
27
27
  if (config.xAxisValue) {
28
28
  pieGraph.config.main.xAxisValue = config.xAxisValue;
@@ -17,7 +17,7 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
17
17
  barGraph.config.main.type = config.graphType;
18
18
  barGraph.config.main.header = config.heading;
19
19
  if (config.legendLabels) {
20
- barGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
20
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
21
21
  }
22
22
  if (config.pieArcColors) {
23
23
  barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
@@ -8,6 +8,7 @@ export const BarGraph = {
8
8
  config: {
9
9
  layout: {xs :12,sm:12,md:12,lg:6},
10
10
  main: {
11
+ legendLabels: null
11
12
  },
12
13
  style: { containerStyle: {},labelStyle:{} }
13
14
  },
@@ -23,6 +24,7 @@ export const PieGraph = {
23
24
  layout: {xs :12,sm:12,md:12,lg:6},
24
25
  main: {
25
26
  type: "PieGraph",
27
+ legendLabels: null
26
28
  },
27
29
  style:{}
28
30
  },
@@ -36,29 +38,11 @@ export const LineGraph = {
36
38
  config: {
37
39
  layout: {xs :12,sm:12,md:12,lg:6},
38
40
  main: {
39
- type: "LineGraph",
40
- header: "Quartely Incentive in Thousand",
41
- bottomLabel: "Years",
42
- leftLabel: "Incentive",
43
- gridHidden: true,
44
- numHidden: false,
45
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
46
- axisLeft: true,
47
- axisBottom: true,
48
- hideLeftAxisLine: false,
49
- hideBottomAxisLine: false,
50
- legend: {
51
- labelColor: "green",
52
- direction: "row",
53
- align: "right",
54
- colorRectWidth: 20,
55
- },
41
+ legendLabels: null
56
42
  },
57
43
  style: {
58
44
  containerStyle: {},
59
- headerStyle: {},
60
45
  labelStyle: {},
61
- lineStyle: {},
62
46
  },
63
47
  },
64
48
  };
@@ -73,6 +57,7 @@ export const HorizontalBarGraph = {
73
57
  layout: {xs :12,sm:12,md:12,lg:6},
74
58
  main: {
75
59
  type: "HorizontalBarGraph",
60
+ legendLabels: null
76
61
  },
77
62
  style:{
78
63
  labelStyle:{}