impaktapps-ui-builder 1.0.272 → 1.0.274
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 +81 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +66 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
|
@@ -6640,7 +6640,8 @@ const ComponentSchema = {
|
|
|
6640
6640
|
title: "Stack Horizontal Bar Graph",
|
|
6641
6641
|
const: "HorizontalStackBarGraph"
|
|
6642
6642
|
},
|
|
6643
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6643
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6644
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6644
6645
|
]
|
|
6645
6646
|
},
|
|
6646
6647
|
iconName: {
|
|
@@ -8170,6 +8171,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8170
8171
|
getInputField("subHeader", "Sub Header"),
|
|
8171
8172
|
getSelectField("graphType", "Graph Type"),
|
|
8172
8173
|
getInputField("leftLabel", "Left Label"),
|
|
8174
|
+
getInputField("rightLabel", "Right Label"),
|
|
8173
8175
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8174
8176
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8175
8177
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8183,7 +8185,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8183
8185
|
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8184
8186
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8185
8187
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8186
|
-
emptyBox$1("GraphEmpty1", { xs:
|
|
8188
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8187
8189
|
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
|
|
8188
8190
|
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color")
|
|
8189
8191
|
];
|
|
@@ -11187,6 +11189,21 @@ const AreaBarGraph = {
|
|
|
11187
11189
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11188
11190
|
}
|
|
11189
11191
|
};
|
|
11192
|
+
const StackBarLineG = {
|
|
11193
|
+
type: "Control",
|
|
11194
|
+
scope: "#/properties/graph",
|
|
11195
|
+
options: {
|
|
11196
|
+
widget: "Graph"
|
|
11197
|
+
},
|
|
11198
|
+
config: {
|
|
11199
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11200
|
+
main: {
|
|
11201
|
+
type: "StackBarLineGraph",
|
|
11202
|
+
legendLabels: null
|
|
11203
|
+
},
|
|
11204
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11205
|
+
}
|
|
11206
|
+
};
|
|
11190
11207
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11191
11208
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11192
11209
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -12969,6 +12986,65 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12969
12986
|
}
|
|
12970
12987
|
return AreaGraph;
|
|
12971
12988
|
};
|
|
12989
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
12990
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
12991
|
+
StackBarLineGraph.scope = componentScope2;
|
|
12992
|
+
if (config2.layout) {
|
|
12993
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12994
|
+
}
|
|
12995
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
12996
|
+
StackBarLineGraph.scope = componentScope2;
|
|
12997
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
12998
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
12999
|
+
if (config2.legendHide) {
|
|
13000
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13001
|
+
}
|
|
13002
|
+
if (config2.bottomAxisAngle) {
|
|
13003
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13004
|
+
}
|
|
13005
|
+
if (config2.legendLabels) {
|
|
13006
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13007
|
+
}
|
|
13008
|
+
if (config2.legendDirection) {
|
|
13009
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13010
|
+
}
|
|
13011
|
+
if (config2.height) {
|
|
13012
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13013
|
+
}
|
|
13014
|
+
if (config2.pieArcColors) {
|
|
13015
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13016
|
+
}
|
|
13017
|
+
if (config2.xAxisTickCount) {
|
|
13018
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13019
|
+
}
|
|
13020
|
+
if (config2.yAxisTickCount) {
|
|
13021
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13022
|
+
}
|
|
13023
|
+
if (config2.xAxisValue) {
|
|
13024
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13025
|
+
}
|
|
13026
|
+
if (config2.xAxisType) {
|
|
13027
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13028
|
+
}
|
|
13029
|
+
if (config2.bottomLabel) {
|
|
13030
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13031
|
+
}
|
|
13032
|
+
if (config2.leftLabel) {
|
|
13033
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13034
|
+
}
|
|
13035
|
+
if (config2.rightLabel) {
|
|
13036
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13037
|
+
}
|
|
13038
|
+
if (config2.disableLeftLabel) {
|
|
13039
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13040
|
+
}
|
|
13041
|
+
if (config2.leftMargin) {
|
|
13042
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13043
|
+
left: config2.leftMargin
|
|
13044
|
+
};
|
|
13045
|
+
}
|
|
13046
|
+
return StackBarLineGraph;
|
|
13047
|
+
};
|
|
12972
13048
|
const cameraUiSchema = {
|
|
12973
13049
|
type: "Control",
|
|
12974
13050
|
scope: "#/properties/camera",
|
|
@@ -13304,6 +13380,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13304
13380
|
case "AreaGraph":
|
|
13305
13381
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13306
13382
|
break;
|
|
13383
|
+
case "StackBarLineGraph":
|
|
13384
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13385
|
+
break;
|
|
13307
13386
|
default:
|
|
13308
13387
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13309
13388
|
break;
|