impaktapps-ui-builder 0.0.91 → 0.0.93

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.
@@ -7321,7 +7321,7 @@ const buildWrapper = (label, elements) => {
7321
7321
  width: "108%"
7322
7322
  },
7323
7323
  componentsBoxStyle: {
7324
- marginLeft: "24px"
7324
+ marginLeft: "12px"
7325
7325
  },
7326
7326
  defaultStyle: true
7327
7327
  },
@@ -7537,7 +7537,8 @@ const buildPropertiesSection = function(type) {
7537
7537
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7538
7538
  getInputField("yAxisValue", "Y-AxisValue"),
7539
7539
  getInputField("xAxisValue", "X-AxisValue"),
7540
- emptyBox$1("GraphEmpty2"),
7540
+ getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7541
+ emptyBox$1("GraphEmpty1", { xs: 0, sm: 6, md: 6, lg: 0 }),
7541
7542
  getArrayControl("legendLabels", "label"),
7542
7543
  getArrayControl("pieArcColors", "color")
7543
7544
  ];
@@ -9268,7 +9269,7 @@ function executeCustomHandler(params) {
9268
9269
  }
9269
9270
  }
9270
9271
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9271
- if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9272
+ if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9272
9273
  store2.setSchema((pre) => {
9273
9274
  var _a;
9274
9275
  return {
@@ -9282,7 +9283,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9282
9283
  }
9283
9284
  };
9284
9285
  });
9285
- } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9286
+ } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9286
9287
  store2.setSchema((pre) => {
9287
9288
  var _a;
9288
9289
  return {
@@ -9481,10 +9482,9 @@ var service = (funcParams) => {
9481
9482
  }
9482
9483
  const config = pageData == null ? void 0 : pageData.config;
9483
9484
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
9484
- const event2 = new CustomEvent("pageNameChanged", {
9485
+ new CustomEvent("pageNameChanged", {
9485
9486
  detail: { pageName: config.label }
9486
9487
  });
9487
- window.dispatchEvent(event2);
9488
9488
  const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
9489
9489
  uiSchema.elements.push(
9490
9490
  {
@@ -9519,13 +9519,14 @@ var service = (funcParams) => {
9519
9519
  color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9520
9520
  fontSize: "12px",
9521
9521
  textAlign: "center",
9522
- lineHeight: 1,
9522
+ lineHeight: 2,
9523
9523
  width: "fit-content",
9524
9524
  left: "50%",
9525
9525
  position: "relative",
9526
9526
  margin: 0,
9527
9527
  flexGrow: 1,
9528
- height: 0
9528
+ height: 0,
9529
+ transform: "translate(-50%,0%)"
9529
9530
  }
9530
9531
  }
9531
9532
  },
@@ -10218,6 +10219,7 @@ const BarGraph = {
10218
10219
  widget: "Graph"
10219
10220
  },
10220
10221
  config: {
10222
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10221
10223
  main: {},
10222
10224
  style: { containerStyle: {} }
10223
10225
  }
@@ -10229,6 +10231,7 @@ const PieGraph = {
10229
10231
  widget: "Graph"
10230
10232
  },
10231
10233
  config: {
10234
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10232
10235
  main: {
10233
10236
  type: "PieGraph"
10234
10237
  },
@@ -10242,7 +10245,7 @@ const LineGraph = {
10242
10245
  widget: "Graph"
10243
10246
  },
10244
10247
  config: {
10245
- layout: 12,
10248
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10246
10249
  main: {
10247
10250
  type: "LineGraph",
10248
10251
  header: "Quartely Incentive in Thousand",
@@ -10277,6 +10280,7 @@ const HorizontalBarGraph = {
10277
10280
  widget: "Graph"
10278
10281
  },
10279
10282
  config: {
10283
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10280
10284
  main: {
10281
10285
  type: "HorizontalBarGraph"
10282
10286
  },
@@ -10292,6 +10296,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10292
10296
  horizontalBarGraph.config.main.type = config.graphType;
10293
10297
  horizontalBarGraph.scope = componentScope;
10294
10298
  horizontalBarGraph.config.main.header = config.heading;
10299
+ if (config.legendHide) {
10300
+ horizontalBarGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
10301
+ }
10302
+ if (config.bottomAxisAngle) {
10303
+ horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10304
+ }
10295
10305
  if (config.barColor) {
10296
10306
  horizontalBarGraph.config.barStyle.color = config.barColor;
10297
10307
  }
@@ -10448,6 +10458,10 @@ const buildStackbarGraph = (config, componentScope) => {
10448
10458
  }
10449
10459
  if (config.legendHide) {
10450
10460
  barGraph.config.main.legendAvailable = config.legendHide;
10461
+ barGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
10462
+ }
10463
+ if (config.bottomAxisAngle) {
10464
+ barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10451
10465
  }
10452
10466
  barGraph.config.main.type = config.graphType;
10453
10467
  barGraph.config.main.header = config.heading;
@@ -11302,6 +11316,9 @@ const buildLineGraph = (config, componentScope) => {
11302
11316
  if (config.legendHide) {
11303
11317
  lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
11304
11318
  }
11319
+ if (config.bottomAxisAngle) {
11320
+ lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11321
+ }
11305
11322
  if (config.legendLabels) {
11306
11323
  lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11307
11324
  }