impaktapps-ui-builder 0.0.97-alpha.6 → 0.0.97-alpha.8

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.
@@ -7534,6 +7534,8 @@ const buildPropertiesSection = function(type) {
7534
7534
  getSelectField("graphType", "Graph Type"),
7535
7535
  getInputField("leftLabel", "Left Label"),
7536
7536
  getInputField("bottomLabel", "Bottom Label"),
7537
+ getInputField("leftLabelMargin", "Left Label Margin"),
7538
+ getInputField("leftLabelOffset", "Left Label Offset"),
7537
7539
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7538
7540
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7539
7541
  getInputField("yAxisValue", "Y-AxisValue"),
@@ -9271,7 +9273,7 @@ function executeCustomHandler(params) {
9271
9273
  }
9272
9274
  }
9273
9275
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9274
- if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9276
+ if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9275
9277
  store2.setSchema((pre) => {
9276
9278
  var _a;
9277
9279
  return {
@@ -9285,7 +9287,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9285
9287
  }
9286
9288
  };
9287
9289
  });
9288
- } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9290
+ } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9289
9291
  store2.setSchema((pre) => {
9290
9292
  var _a;
9291
9293
  return {
@@ -9468,7 +9470,7 @@ var service = (funcParams) => {
9468
9470
  };
9469
9471
  return {
9470
9472
  setPage: async function() {
9471
- var _a, _b, _c, _d;
9473
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
9472
9474
  funcParams.store.setFormdata({});
9473
9475
  funcParams.store.newData = {};
9474
9476
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -9500,7 +9502,6 @@ var service = (funcParams) => {
9500
9502
  flexDirection: "row",
9501
9503
  position: "absolute",
9502
9504
  bottom: 0,
9503
- marginBottom: "-8px",
9504
9505
  height: "fit-content",
9505
9506
  overflow: "hidden",
9506
9507
  zIndex: 1e3,
@@ -9519,7 +9520,7 @@ var service = (funcParams) => {
9519
9520
  heading: "Copywriter@ACT21.IO"
9520
9521
  },
9521
9522
  style: {
9522
- color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9523
+ color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
9523
9524
  fontSize: "12px",
9524
9525
  textAlign: "center",
9525
9526
  lineHeight: 2,
@@ -9529,13 +9530,13 @@ var service = (funcParams) => {
9529
9530
  margin: 0,
9530
9531
  flexGrow: 1,
9531
9532
  height: 0,
9532
- transform: "translate(-50%,0%)"
9533
+ transform: "translate(-50%, 0%)"
9533
9534
  }
9534
9535
  }
9535
9536
  },
9536
9537
  {
9537
9538
  type: "Control",
9538
- scope: "#/properties/backIcon",
9539
+ scope: "#/properties/FooterBackIcon",
9539
9540
  options: {
9540
9541
  widget: "Box"
9541
9542
  },
@@ -9546,24 +9547,24 @@ var service = (funcParams) => {
9546
9547
  width: "fit-content"
9547
9548
  },
9548
9549
  style: {
9549
- fill: theme.palette.primary.main,
9550
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
9550
9551
  width: 20,
9551
9552
  height: 0,
9552
- margin: 0,
9553
9553
  top: 0,
9554
9554
  right: { xs: "12px", sm: "84px" },
9555
9555
  position: "absolute",
9556
9556
  fontSize: "12px",
9557
9557
  cursor: "pointer",
9558
9558
  ":hover": {
9559
- fill: theme.palette.primary.dark
9560
- }
9559
+ fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
9560
+ },
9561
+ marginRight: "13px"
9561
9562
  }
9562
9563
  }
9563
9564
  },
9564
9565
  {
9565
9566
  type: "Control",
9566
- scope: "#/properties/text",
9567
+ scope: "#/properties/FooterBackHandlerText",
9567
9568
  options: {
9568
9569
  widget: "Box"
9569
9570
  },
@@ -9578,24 +9579,24 @@ var service = (funcParams) => {
9578
9579
  lineHeight: 1,
9579
9580
  height: 0,
9580
9581
  width: "fit-content",
9581
- color: theme.palette.primary.main,
9582
- fontSize: "12px",
9582
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
9583
+ fontSize: "14px",
9583
9584
  cursor: "pointer",
9584
9585
  marginLeft: "2px",
9585
- marginRight: 0,
9586
9586
  top: 3,
9587
9587
  right: "12px",
9588
9588
  position: "absolute",
9589
9589
  ":hover": {
9590
- color: theme.palette.primary.dark
9591
- }
9590
+ color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
9591
+ },
9592
+ marginRight: "4px"
9592
9593
  }
9593
9594
  }
9594
9595
  }
9595
9596
  ]
9596
9597
  }
9597
9598
  );
9598
- const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
9599
+ const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
9599
9600
  eventGroups = extractEvents(config);
9600
9601
  executeEventsParameters = {
9601
9602
  config: {},
@@ -10223,8 +10224,10 @@ const BarGraph = {
10223
10224
  },
10224
10225
  config: {
10225
10226
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10226
- main: {},
10227
- style: { containerStyle: {} }
10227
+ main: {
10228
+ legendLabels: null
10229
+ },
10230
+ style: { containerStyle: {}, labelStyle: {} }
10228
10231
  }
10229
10232
  };
10230
10233
  const PieGraph = {
@@ -10236,7 +10239,8 @@ const PieGraph = {
10236
10239
  config: {
10237
10240
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10238
10241
  main: {
10239
- type: "PieGraph"
10242
+ type: "PieGraph",
10243
+ legendLabels: null
10240
10244
  },
10241
10245
  style: {}
10242
10246
  }
@@ -10250,29 +10254,11 @@ const LineGraph = {
10250
10254
  config: {
10251
10255
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10252
10256
  main: {
10253
- type: "LineGraph",
10254
- header: "Quartely Incentive in Thousand",
10255
- bottomLabel: "Years",
10256
- leftLabel: "Incentive",
10257
- gridHidden: true,
10258
- numHidden: false,
10259
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10260
- axisLeft: true,
10261
- axisBottom: true,
10262
- hideLeftAxisLine: false,
10263
- hideBottomAxisLine: false,
10264
- legend: {
10265
- labelColor: "green",
10266
- direction: "row",
10267
- align: "right",
10268
- colorRectWidth: 20
10269
- }
10257
+ legendLabels: null
10270
10258
  },
10271
10259
  style: {
10272
10260
  containerStyle: {},
10273
- headerStyle: {},
10274
- labelStyle: {},
10275
- lineStyle: {}
10261
+ labelStyle: {}
10276
10262
  }
10277
10263
  }
10278
10264
  };
@@ -10285,9 +10271,12 @@ const HorizontalBarGraph = {
10285
10271
  config: {
10286
10272
  layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10287
10273
  main: {
10288
- type: "HorizontalBarGraph"
10274
+ type: "HorizontalBarGraph",
10275
+ legendLabels: null
10289
10276
  },
10290
- style: {}
10277
+ style: {
10278
+ labelStyle: {}
10279
+ }
10291
10280
  }
10292
10281
  };
10293
10282
  const buildHorizontalBarGraph = (config, componentScope) => {
@@ -10305,8 +10294,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10305
10294
  if (config.bottomAxisAngle) {
10306
10295
  horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10307
10296
  }
10308
- if (config.barColor) {
10309
- horizontalBarGraph.config.barStyle.color = config.barColor;
10297
+ if (config.legendLabels) {
10298
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10299
+ }
10300
+ if (config.pieArcColors) {
10301
+ horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10310
10302
  }
10311
10303
  if (config.xAxisValue) {
10312
10304
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10449,7 +10441,7 @@ const buildPieGraph = (config, componentScope) => {
10449
10441
  pieGraph.scope = componentScope;
10450
10442
  pieGraph.config.main.header = config.heading;
10451
10443
  if (config.legendLabels) {
10452
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10444
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10453
10445
  }
10454
10446
  if (config.xAxisValue) {
10455
10447
  pieGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10477,8 +10469,11 @@ const buildStackbarGraph = (config, componentScope) => {
10477
10469
  }
10478
10470
  barGraph.config.main.type = config.graphType;
10479
10471
  barGraph.config.main.header = config.heading;
10480
- if (config.barColor) {
10481
- barGraph.config.barStyle.color = config.barColor;
10472
+ if (config.legendLabels) {
10473
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10474
+ }
10475
+ if (config.pieArcColors) {
10476
+ barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10482
10477
  }
10483
10478
  if (config.xAxisValue) {
10484
10479
  barGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10501,6 +10496,14 @@ const buildStackbarGraph = (config, componentScope) => {
10501
10496
  if (config.leftLabel) {
10502
10497
  barGraph.config.main.leftLabel = config.leftLabel;
10503
10498
  }
10499
+ if (config.leftLabelMargin) {
10500
+ barGraph.config.style.labelStyle.margin = {
10501
+ left: config.leftLabelMargin
10502
+ };
10503
+ }
10504
+ if (config.leftLabelOffset) {
10505
+ barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10506
+ }
10504
10507
  barGraph.scope = componentScope;
10505
10508
  return barGraph;
10506
10509
  };
@@ -10853,10 +10856,7 @@ const buildUploadFile = (config, componentScope) => {
10853
10856
  UploadFile.scope = componentScope;
10854
10857
  UploadFile.config.main.label = config.label;
10855
10858
  if (config.layout) {
10856
- UploadFile.config.layout = config.layout;
10857
- }
10858
- if (config.layout) {
10859
- uploadFile.config.layout = createLayoutFormat(config.layout);
10859
+ UploadFile.config.layout = createLayoutFormat(config.layout);
10860
10860
  }
10861
10861
  if (config.style) {
10862
10862
  UploadFile.config.style = config.style;
@@ -11359,11 +11359,19 @@ const buildLineGraph = (config, componentScope) => {
11359
11359
  lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11360
11360
  }
11361
11361
  if (config.legendLabels) {
11362
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11362
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
11363
11363
  }
11364
11364
  if (config.pieArcColors) {
11365
11365
  lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11366
11366
  }
11367
+ if (config.leftLabelMargin) {
11368
+ lineGraph.config.style.labelStyle.margin = {
11369
+ left: config.leftLabelMargin
11370
+ };
11371
+ }
11372
+ if (config.leftLabelOffset) {
11373
+ lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
11374
+ }
11367
11375
  lineGraph.scope = componentScope;
11368
11376
  return lineGraph;
11369
11377
  };