impaktapps-ui-builder 0.0.97-alpha.17 → 0.0.97-alpha.19
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 +14 -47
- 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 +20 -5
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +2 -17
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -13
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +5 -11
|
@@ -10223,9 +10223,10 @@ const BarGraph = {
|
|
|
10223
10223
|
config: {
|
|
10224
10224
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10225
10225
|
main: {
|
|
10226
|
+
type: "BarGraph",
|
|
10226
10227
|
legendLabels: null
|
|
10227
10228
|
},
|
|
10228
|
-
style: { containerStyle: {}, labelStyle: {} }
|
|
10229
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10229
10230
|
}
|
|
10230
10231
|
};
|
|
10231
10232
|
const PieGraph = {
|
|
@@ -10240,7 +10241,7 @@ const PieGraph = {
|
|
|
10240
10241
|
type: "PieGraph",
|
|
10241
10242
|
legendLabels: null
|
|
10242
10243
|
},
|
|
10243
|
-
style: {}
|
|
10244
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
|
|
10244
10245
|
}
|
|
10245
10246
|
};
|
|
10246
10247
|
const LineGraph = {
|
|
@@ -10255,12 +10256,7 @@ const LineGraph = {
|
|
|
10255
10256
|
type: "LineGraph",
|
|
10256
10257
|
legendLabels: null
|
|
10257
10258
|
},
|
|
10258
|
-
style: {
|
|
10259
|
-
containerStyle: {},
|
|
10260
|
-
headerStyle: {},
|
|
10261
|
-
labelStyle: {},
|
|
10262
|
-
lineStyle: {}
|
|
10263
|
-
}
|
|
10259
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
|
|
10264
10260
|
}
|
|
10265
10261
|
};
|
|
10266
10262
|
const HorizontalBarGraph = {
|
|
@@ -10275,9 +10271,7 @@ const HorizontalBarGraph = {
|
|
|
10275
10271
|
type: "HorizontalBarGraph",
|
|
10276
10272
|
legendLabels: null
|
|
10277
10273
|
},
|
|
10278
|
-
style: {
|
|
10279
|
-
labelStyle: {}
|
|
10280
|
-
}
|
|
10274
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10281
10275
|
}
|
|
10282
10276
|
};
|
|
10283
10277
|
const buildHorizontalBarGraph = (config, componentScope) => {
|
|
@@ -10304,23 +10298,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10304
10298
|
if (config.xAxisValue) {
|
|
10305
10299
|
horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10306
10300
|
}
|
|
10307
|
-
if (config.containerBackground) {
|
|
10308
|
-
horizontalBarGraph.config.containerStyle.background = config.containerBackground;
|
|
10309
|
-
}
|
|
10310
10301
|
if (config.height) {
|
|
10311
|
-
horizontalBarGraph.config.style =
|
|
10312
|
-
containerStyle: {
|
|
10313
|
-
height: config.height
|
|
10314
|
-
}
|
|
10315
|
-
};
|
|
10302
|
+
horizontalBarGraph.config.style.containerStyle.height = config.height;
|
|
10316
10303
|
}
|
|
10317
10304
|
if (config.leftMargin) {
|
|
10318
|
-
horizontalBarGraph.config.style = {
|
|
10319
|
-
|
|
10320
|
-
margin: {
|
|
10321
|
-
left: config.leftMargin
|
|
10322
|
-
}
|
|
10323
|
-
}
|
|
10305
|
+
horizontalBarGraph.config.style.labelStyle.margin = {
|
|
10306
|
+
left: config.leftMargin
|
|
10324
10307
|
};
|
|
10325
10308
|
}
|
|
10326
10309
|
if (config.bottomLabel) {
|
|
@@ -10430,11 +10413,7 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10430
10413
|
pieGraph.config.layout = createLayoutFormat(config.layout);
|
|
10431
10414
|
}
|
|
10432
10415
|
if (config.height) {
|
|
10433
|
-
pieGraph.config.style =
|
|
10434
|
-
containerStyle: {
|
|
10435
|
-
height: config.height
|
|
10436
|
-
}
|
|
10437
|
-
};
|
|
10416
|
+
pieGraph.config.style.containerStyle.height = config.height;
|
|
10438
10417
|
}
|
|
10439
10418
|
if (config.legendHide) {
|
|
10440
10419
|
pieGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
@@ -10448,11 +10427,7 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10448
10427
|
pieGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10449
10428
|
}
|
|
10450
10429
|
if (config.pieArcColors) {
|
|
10451
|
-
pieGraph.config.style =
|
|
10452
|
-
pieStyle: {
|
|
10453
|
-
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
10454
|
-
}
|
|
10455
|
-
};
|
|
10430
|
+
pieGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
10456
10431
|
}
|
|
10457
10432
|
return pieGraph;
|
|
10458
10433
|
};
|
|
@@ -10484,12 +10459,8 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10484
10459
|
barGraph.config.style.containerStyle.height = config.height;
|
|
10485
10460
|
}
|
|
10486
10461
|
if (config.leftMargin) {
|
|
10487
|
-
barGraph.config.style = {
|
|
10488
|
-
|
|
10489
|
-
margin: {
|
|
10490
|
-
left: config.leftMargin
|
|
10491
|
-
}
|
|
10492
|
-
}
|
|
10462
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10463
|
+
left: config.leftMargin
|
|
10493
10464
|
};
|
|
10494
10465
|
}
|
|
10495
10466
|
if (config.bottomLabel) {
|
|
@@ -11326,12 +11297,8 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11326
11297
|
lineGraph.config.style.containerStyle.height = config.height;
|
|
11327
11298
|
}
|
|
11328
11299
|
if (config.leftMargin) {
|
|
11329
|
-
lineGraph.config.style = {
|
|
11330
|
-
|
|
11331
|
-
margin: {
|
|
11332
|
-
left: config.leftMargin
|
|
11333
|
-
}
|
|
11334
|
-
}
|
|
11300
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11301
|
+
left: config.leftMargin
|
|
11335
11302
|
};
|
|
11336
11303
|
}
|
|
11337
11304
|
if (config.bottomLabel) {
|