impaktapps-ui-builder 0.0.95 → 0.0.96

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": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -36,6 +36,16 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
36
36
  }
37
37
  }
38
38
 
39
+ }
40
+ if (config.leftMargin) {
41
+ horizontalBarGraph.config.style =
42
+ {
43
+ labelStyle: {
44
+ margin: {
45
+ left: config.leftMargin
46
+ }
47
+ }
48
+ }
39
49
  }
40
50
  if (config.bottomLabel) {
41
51
  horizontalBarGraph.config.main.bottomLabel =
@@ -11,6 +11,16 @@ export const buildLineGraph = (config, componentScope) => {
11
11
  if (config.height) {
12
12
  lineGraph.config.style.containerStyle.height = config.height;
13
13
  }
14
+ if (config.leftMargin) {
15
+ lineGraph.config.style =
16
+ {
17
+ labelStyle: {
18
+ margin: {
19
+ left: config.leftMargin
20
+ }
21
+ }
22
+ }
23
+ }
14
24
  if (config.bottomLabel) {
15
25
  lineGraph.config.main.bottomLabel = config.bottomLabel;
16
26
  }
@@ -25,6 +25,16 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
25
25
  if (config.height) {
26
26
  barGraph.config.style.containerStyle.height = config.height;
27
27
  }
28
+ if (config.leftMargin) {
29
+ barGraph.config.style =
30
+ {
31
+ labelStyle: {
32
+ margin: {
33
+ left: config.leftMargin
34
+ }
35
+ }
36
+ }
37
+ }
28
38
  if (config.bottomLabel) {
29
39
  barGraph.config.main.bottomLabel = config.bottomLabel;
30
40
  }
@@ -409,7 +409,8 @@ export const buildPropertiesSection = function (type: String) {
409
409
  getInputField("yAxisValue", "Y-AxisValue"),
410
410
  getInputField("xAxisValue", "X-AxisValue"),
411
411
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
412
- emptyBox("GraphEmpty1", {xs: 0, sm: 6, md: 6, lg: 0 }),
412
+ getInputField("leftMargin", "Left Margin"),
413
+ emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg: 8 }),
413
414
  getArrayControl("legendLabels", "label"),
414
415
  getArrayControl("pieArcColors", "color"),
415
416
  ];