impaktapps-ui-builder 0.0.97-alpha.11 → 0.0.97-alpha.13
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 +5 -2
- 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/uischema/graph.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
|
@@ -10225,7 +10225,6 @@ const BarGraph = {
|
|
|
10225
10225
|
config: {
|
|
10226
10226
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10227
10227
|
main: {
|
|
10228
|
-
type: "BarGraph",
|
|
10229
10228
|
legendLabels: null
|
|
10230
10229
|
},
|
|
10231
10230
|
style: { containerStyle: {}, labelStyle: {} }
|
|
@@ -10460,6 +10459,7 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10460
10459
|
return pieGraph;
|
|
10461
10460
|
};
|
|
10462
10461
|
const buildStackbarGraph = (config, componentScope) => {
|
|
10462
|
+
var _a;
|
|
10463
10463
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10464
10464
|
if (config.layout) {
|
|
10465
10465
|
barGraph.config.layout = createLayoutFormat(config.layout);
|
|
@@ -10471,7 +10471,7 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10471
10471
|
if (config.bottomAxisAngle) {
|
|
10472
10472
|
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10473
10473
|
}
|
|
10474
|
-
barGraph.config.main.type = config.graphType;
|
|
10474
|
+
barGraph.config.main.type = (_a = config == null ? void 0 : config.graphType) != null ? _a : "BarGraph";
|
|
10475
10475
|
barGraph.config.main.header = config.heading;
|
|
10476
10476
|
if (config.legendLabels) {
|
|
10477
10477
|
barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
@@ -11947,6 +11947,9 @@ const buildUiSchema = (config, store2) => {
|
|
|
11947
11947
|
case "HorizontalStackBarGraph":
|
|
11948
11948
|
elements = buildHorizontalBarGraph(config, componentScope);
|
|
11949
11949
|
break;
|
|
11950
|
+
default:
|
|
11951
|
+
elements = buildStackbarGraph(config, componentScope);
|
|
11952
|
+
break;
|
|
11950
11953
|
}
|
|
11951
11954
|
break;
|
|
11952
11955
|
case "ProgressBar":
|