impaktapps-ui-builder 0.0.93 → 0.0.95-offset.1
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/dist/impaktapps-ui-builder.es.js +30 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
package/package.json
CHANGED
|
@@ -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,6 +409,7 @@ 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
|
+
getInputField("leftMargin", "Left Margin"),
|
|
412
413
|
emptyBox("GraphEmpty1", {xs: 0, sm: 6, md: 6, lg: 0 }),
|
|
413
414
|
getArrayControl("legendLabels", "label"),
|
|
414
415
|
getArrayControl("pieArcColors", "color"),
|
|
@@ -93,7 +93,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
93
93
|
const event = new CustomEvent('pageNameChanged', {
|
|
94
94
|
detail: { pageName: config.label }
|
|
95
95
|
});
|
|
96
|
-
|
|
96
|
+
window.dispatchEvent(event)
|
|
97
97
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
98
98
|
uiSchema.elements.push(
|
|
99
99
|
|