impaktapps-ui-builder 0.0.97-alpha.18 → 0.0.97-alpha.20

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.
@@ -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: {}, barStyle: {} }
10229
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10229
10230
  }
10230
10231
  };
10231
10232
  const PieGraph = {
@@ -10240,10 +10241,7 @@ const PieGraph = {
10240
10241
  type: "PieGraph",
10241
10242
  legendLabels: null
10242
10243
  },
10243
- style: {
10244
- containerStyle: {},
10245
- pieStyle: {}
10246
- }
10244
+ style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
10247
10245
  }
10248
10246
  };
10249
10247
  const LineGraph = {
@@ -10258,10 +10256,7 @@ const LineGraph = {
10258
10256
  type: "LineGraph",
10259
10257
  legendLabels: null
10260
10258
  },
10261
- style: {
10262
- containerStyle: {},
10263
- lineStyle: {}
10264
- }
10259
+ style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
10265
10260
  }
10266
10261
  };
10267
10262
  const HorizontalBarGraph = {
@@ -10276,10 +10271,7 @@ const HorizontalBarGraph = {
10276
10271
  type: "HorizontalBarGraph",
10277
10272
  legendLabels: null
10278
10273
  },
10279
- style: {
10280
- containerStyle: {},
10281
- barStyle: {}
10282
- }
10274
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10283
10275
  }
10284
10276
  };
10285
10277
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10306,23 +10298,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10306
10298
  if (config.xAxisValue) {
10307
10299
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10308
10300
  }
10309
- if (config.containerBackground) {
10310
- horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10311
- }
10312
10301
  if (config.height) {
10313
- horizontalBarGraph.config.style = {
10314
- containerStyle: {
10315
- height: config.height
10316
- }
10317
- };
10302
+ horizontalBarGraph.config.style.containerStyle.height = config.height;
10318
10303
  }
10319
10304
  if (config.leftMargin) {
10320
- horizontalBarGraph.config.style = {
10321
- labelStyle: {
10322
- margin: {
10323
- left: config.leftMargin
10324
- }
10325
- }
10305
+ horizontalBarGraph.config.style.labelStyle.margin = {
10306
+ left: config.leftMargin
10326
10307
  };
10327
10308
  }
10328
10309
  if (config.bottomLabel) {
@@ -10432,11 +10413,7 @@ const buildPieGraph = (config, componentScope) => {
10432
10413
  pieGraph.config.layout = createLayoutFormat(config.layout);
10433
10414
  }
10434
10415
  if (config.height) {
10435
- pieGraph.config.style = {
10436
- containerStyle: {
10437
- height: config.height
10438
- }
10439
- };
10416
+ pieGraph.config.style.containerStyle.height = config.height;
10440
10417
  }
10441
10418
  if (config.legendHide) {
10442
10419
  pieGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
@@ -10450,11 +10427,7 @@ const buildPieGraph = (config, componentScope) => {
10450
10427
  pieGraph.config.main.xAxisValue = config.xAxisValue;
10451
10428
  }
10452
10429
  if (config.pieArcColors) {
10453
- pieGraph.config.style = {
10454
- pieStyle: {
10455
- colorRange: flatObjectValueInArray(config.pieArcColors)
10456
- }
10457
- };
10430
+ pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10458
10431
  }
10459
10432
  return pieGraph;
10460
10433
  };
@@ -10486,12 +10459,8 @@ const buildStackbarGraph = (config, componentScope) => {
10486
10459
  barGraph.config.style.containerStyle.height = config.height;
10487
10460
  }
10488
10461
  if (config.leftMargin) {
10489
- barGraph.config.style = {
10490
- labelStyle: {
10491
- margin: {
10492
- left: config.leftMargin
10493
- }
10494
- }
10462
+ barGraph.config.style.labelStyle.margin = {
10463
+ left: config.leftMargin
10495
10464
  };
10496
10465
  }
10497
10466
  if (config.bottomLabel) {
@@ -11328,12 +11297,8 @@ const buildLineGraph = (config, componentScope) => {
11328
11297
  lineGraph.config.style.containerStyle.height = config.height;
11329
11298
  }
11330
11299
  if (config.leftMargin) {
11331
- lineGraph.config.style = {
11332
- labelStyle: {
11333
- margin: {
11334
- left: config.leftMargin
11335
- }
11336
- }
11300
+ lineGraph.config.style.labelStyle.margin = {
11301
+ left: config.leftMargin
11337
11302
  };
11338
11303
  }
11339
11304
  if (config.bottomLabel) {