impaktapps-ui-builder 1.0.410 → 1.0.412
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 +15 -16
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +9 -10
package/package.json
CHANGED
|
@@ -34,9 +34,6 @@ const buildAreaGraph = (config:any,componentScope:string) => {
|
|
|
34
34
|
if(config.xAxisFormatType){
|
|
35
35
|
AreaGraph.config.main.xAxisFormatType = config.xAxisFormatType
|
|
36
36
|
}
|
|
37
|
-
if(config.xAxisLabelMinWidth){
|
|
38
|
-
AreaGraph.config.main.xAxisLabelMinWidth = config.xAxisLabelMinWidth
|
|
39
|
-
}
|
|
40
37
|
if(config.yAxisTickCount){
|
|
41
38
|
AreaGraph.config.main.yAxisTickCount = config.yAxisTickCount
|
|
42
39
|
}
|
|
@@ -31,9 +31,6 @@ const buildStackBarLineGraph = (config:any,componentScope:string) => {
|
|
|
31
31
|
if (config.pieArcColors) {
|
|
32
32
|
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
|
|
33
33
|
}
|
|
34
|
-
if(config.xAxisLabelMinWidth){
|
|
35
|
-
StackBarLineGraph.config.main.xAxisLabelMinWidth = config.xAxisLabelMinWidth
|
|
36
|
-
}
|
|
37
34
|
if(config.yAxisTickCount){
|
|
38
35
|
StackBarLineGraph.config.main.yAxisTickCount = config.yAxisTickCount
|
|
39
36
|
}
|
|
@@ -55,6 +52,12 @@ const buildStackBarLineGraph = (config:any,componentScope:string) => {
|
|
|
55
52
|
if (config.disableLeftLabel) {
|
|
56
53
|
StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
57
54
|
}
|
|
55
|
+
if (config.growthRateKey) {
|
|
56
|
+
StackBarLineGraph.config.main.growthRateKey = config.growthRateKey;
|
|
57
|
+
}
|
|
58
|
+
if (config.tooltipUnit) {
|
|
59
|
+
StackBarLineGraph.config.main.tooltipUnit = config.tooltipUnit;
|
|
60
|
+
}
|
|
58
61
|
if (config.leftMargin) {
|
|
59
62
|
StackBarLineGraph.config.style.labelStyle.margin ={
|
|
60
63
|
left: config.leftMargin
|
|
@@ -127,7 +127,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
127
127
|
],
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string
|
|
130
|
+
const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string) => {
|
|
131
131
|
return {
|
|
132
132
|
type: "Control",
|
|
133
133
|
scope: `#/properties/${parentScope}`,
|
|
@@ -136,9 +136,7 @@ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string,
|
|
|
136
136
|
},
|
|
137
137
|
config: {
|
|
138
138
|
layout: 12,
|
|
139
|
-
main: {
|
|
140
|
-
label: arrayLabel,
|
|
141
|
-
},
|
|
139
|
+
main: {},
|
|
142
140
|
style: {
|
|
143
141
|
marginLeft: "-24px",
|
|
144
142
|
marginBottom: "24px !important",
|
|
@@ -571,8 +569,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
571
569
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
572
570
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
573
571
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
574
|
-
getInputField("yAxisValue", "Y-
|
|
575
|
-
getInputField("xAxisValue", "X-
|
|
572
|
+
getInputField("yAxisValue", "Y-AxisValue"),
|
|
573
|
+
getInputField("xAxisValue", "X-AxisValue"),
|
|
576
574
|
getSelectField("xAxisType", "X-AxisType", [
|
|
577
575
|
{ label: "Date", value: "date" },
|
|
578
576
|
{ label: "String", value: "string" },
|
|
@@ -580,15 +578,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
580
578
|
]),
|
|
581
579
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
582
580
|
getInputField("leftMargin", "Left Margin"),
|
|
583
|
-
getInputField("xAxisLabelMinWidth", "X Axis Label Width"),
|
|
584
581
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
585
582
|
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
586
583
|
{ label: "Date and Month", value: "Date and Month" },
|
|
587
584
|
{ label: "Month and Year", value: "Month and Year" }
|
|
588
585
|
]),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
586
|
+
getInputField("growthRateKey", "Growth Rate Key (StackBarLineGraph)"),
|
|
587
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
588
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
589
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
|
|
590
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color"),
|
|
592
591
|
];
|
|
593
592
|
break;
|
|
594
593
|
case "WrapperSection":
|