impaktapps-ui-builder 0.0.88 → 0.0.89-graphTest.2

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" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (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" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (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
  },
@@ -9592,7 +9593,6 @@ var service = (funcParams) => {
9592
9593
  }
9593
9594
  );
9594
9595
  const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
9595
- eventGroups = {};
9596
9596
  eventGroups = extractEvents(config);
9597
9597
  executeEventsParameters = {
9598
9598
  config: {},
@@ -10219,6 +10219,7 @@ const BarGraph = {
10219
10219
  widget: "Graph"
10220
10220
  },
10221
10221
  config: {
10222
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10222
10223
  main: {},
10223
10224
  style: { containerStyle: {} }
10224
10225
  }
@@ -10230,6 +10231,7 @@ const PieGraph = {
10230
10231
  widget: "Graph"
10231
10232
  },
10232
10233
  config: {
10234
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10233
10235
  main: {
10234
10236
  type: "PieGraph"
10235
10237
  },
@@ -10243,7 +10245,7 @@ const LineGraph = {
10243
10245
  widget: "Graph"
10244
10246
  },
10245
10247
  config: {
10246
- layout: 12,
10248
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10247
10249
  main: {
10248
10250
  type: "LineGraph",
10249
10251
  header: "Quartely Incentive in Thousand",
@@ -10278,6 +10280,7 @@ const HorizontalBarGraph = {
10278
10280
  widget: "Graph"
10279
10281
  },
10280
10282
  config: {
10283
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10281
10284
  main: {
10282
10285
  type: "HorizontalBarGraph"
10283
10286
  },
@@ -10293,6 +10296,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10293
10296
  horizontalBarGraph.config.main.type = config.graphType;
10294
10297
  horizontalBarGraph.scope = componentScope;
10295
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
+ }
10296
10305
  if (config.barColor) {
10297
10306
  horizontalBarGraph.config.barStyle.color = config.barColor;
10298
10307
  }
@@ -10449,6 +10458,10 @@ const buildStackbarGraph = (config, componentScope) => {
10449
10458
  }
10450
10459
  if (config.legendHide) {
10451
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;
10452
10465
  }
10453
10466
  barGraph.config.main.type = config.graphType;
10454
10467
  barGraph.config.main.header = config.heading;
@@ -11303,6 +11316,9 @@ const buildLineGraph = (config, componentScope) => {
11303
11316
  if (config.legendHide) {
11304
11317
  lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
11305
11318
  }
11319
+ if (config.bottomAxisAngle) {
11320
+ lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11321
+ }
11306
11322
  if (config.legendLabels) {
11307
11323
  lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11308
11324
  }