impaktapps-ui-builder 1.0.406 → 1.0.407
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 +87 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- 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/buildAreaGraph.ts +2 -2
- 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/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -3
- 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
|
@@ -6657,7 +6657,8 @@ const ComponentSchema = {
|
|
|
6657
6657
|
title: "Stack Horizontal Bar Graph",
|
|
6658
6658
|
const: "HorizontalStackBarGraph"
|
|
6659
6659
|
},
|
|
6660
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6660
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6661
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6661
6662
|
]
|
|
6662
6663
|
},
|
|
6663
6664
|
iconName: {
|
|
@@ -8191,6 +8192,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8191
8192
|
getInputField("subHeader", "Sub Header"),
|
|
8192
8193
|
getSelectField("graphType", "Graph Type"),
|
|
8193
8194
|
getInputField("leftLabel", "Left Label"),
|
|
8195
|
+
getInputField("rightLabel", "Right Label"),
|
|
8194
8196
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8195
8197
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8196
8198
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8201,7 +8203,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8201
8203
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8202
8204
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8203
8205
|
getInputField("leftMargin", "Left Margin"),
|
|
8204
|
-
getInputField("
|
|
8206
|
+
getInputField("xAxisLabelMinWidth", "X Axis Label Width"),
|
|
8205
8207
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8206
8208
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8207
8209
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
@@ -8218,7 +8220,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8218
8220
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8219
8221
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8220
8222
|
getInputField("spacing", "Spacing"),
|
|
8221
|
-
|
|
8223
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8224
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8225
|
+
emptyBox$1("WrapperSectionEmpty2")
|
|
8222
8226
|
];
|
|
8223
8227
|
break;
|
|
8224
8228
|
case "TabSection":
|
|
@@ -11243,6 +11247,21 @@ const AreaBarGraph = {
|
|
|
11243
11247
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11244
11248
|
}
|
|
11245
11249
|
};
|
|
11250
|
+
const StackBarLineG = {
|
|
11251
|
+
type: "Control",
|
|
11252
|
+
scope: "#/properties/graph",
|
|
11253
|
+
options: {
|
|
11254
|
+
widget: "Graph"
|
|
11255
|
+
},
|
|
11256
|
+
config: {
|
|
11257
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11258
|
+
main: {
|
|
11259
|
+
type: "StackBarLineGraph",
|
|
11260
|
+
legendLabels: null
|
|
11261
|
+
},
|
|
11262
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11263
|
+
}
|
|
11264
|
+
};
|
|
11246
11265
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11247
11266
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11248
11267
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11527,6 +11546,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11527
11546
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11528
11547
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11529
11548
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11549
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11530
11550
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11531
11551
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11532
11552
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
@@ -13011,8 +13031,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13011
13031
|
if (config2.xAxisFormatType) {
|
|
13012
13032
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13013
13033
|
}
|
|
13014
|
-
if (config2.
|
|
13015
|
-
AreaGraph.config.main.
|
|
13034
|
+
if (config2.xAxisLabelMinWidth) {
|
|
13035
|
+
AreaGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
|
|
13016
13036
|
}
|
|
13017
13037
|
if (config2.yAxisTickCount) {
|
|
13018
13038
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -13039,6 +13059,65 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13039
13059
|
}
|
|
13040
13060
|
return AreaGraph;
|
|
13041
13061
|
};
|
|
13062
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13063
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13064
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13065
|
+
if (config2.layout) {
|
|
13066
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13067
|
+
}
|
|
13068
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13069
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13070
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13071
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13072
|
+
if (config2.legendHide) {
|
|
13073
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13074
|
+
}
|
|
13075
|
+
if (config2.bottomAxisAngle) {
|
|
13076
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13077
|
+
}
|
|
13078
|
+
if (config2.legendLabels) {
|
|
13079
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13080
|
+
}
|
|
13081
|
+
if (config2.legendDirection) {
|
|
13082
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13083
|
+
}
|
|
13084
|
+
if (config2.height) {
|
|
13085
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13086
|
+
}
|
|
13087
|
+
if (config2.pieArcColors) {
|
|
13088
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13089
|
+
}
|
|
13090
|
+
if (config2.xAxisLabelMinWidth) {
|
|
13091
|
+
StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
|
|
13092
|
+
}
|
|
13093
|
+
if (config2.yAxisTickCount) {
|
|
13094
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13095
|
+
}
|
|
13096
|
+
if (config2.xAxisValue) {
|
|
13097
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13098
|
+
}
|
|
13099
|
+
if (config2.xAxisType) {
|
|
13100
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13101
|
+
}
|
|
13102
|
+
if (config2.bottomLabel) {
|
|
13103
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13104
|
+
}
|
|
13105
|
+
if (config2.leftLabel) {
|
|
13106
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13107
|
+
}
|
|
13108
|
+
if (config2.rightLabel) {
|
|
13109
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13110
|
+
}
|
|
13111
|
+
if (config2.disableLeftLabel) {
|
|
13112
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13113
|
+
}
|
|
13114
|
+
if (config2.leftMargin) {
|
|
13115
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13116
|
+
left: config2.leftMargin
|
|
13117
|
+
};
|
|
13118
|
+
}
|
|
13119
|
+
return StackBarLineGraph;
|
|
13120
|
+
};
|
|
13042
13121
|
const cameraUiSchema = {
|
|
13043
13122
|
type: "Control",
|
|
13044
13123
|
scope: "#/properties/camera",
|
|
@@ -13404,6 +13483,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13404
13483
|
case "AreaGraph":
|
|
13405
13484
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13406
13485
|
break;
|
|
13486
|
+
case "StackBarLineGraph":
|
|
13487
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13488
|
+
break;
|
|
13407
13489
|
default:
|
|
13408
13490
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13409
13491
|
break;
|