impaktapps-ui-builder 1.0.154 → 1.0.155

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.
@@ -7734,7 +7734,7 @@ sizeHolder.elements[1] = {
7734
7734
  }
7735
7735
  };
7736
7736
  sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
7737
- const getInputField = (scope, label) => {
7737
+ const getInputField = (scope, label, type) => {
7738
7738
  return {
7739
7739
  type: "Control",
7740
7740
  scope: `#/properties/${scope}`,
@@ -7744,7 +7744,8 @@ const getInputField = (scope, label) => {
7744
7744
  config: {
7745
7745
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7746
7746
  main: {
7747
- label
7747
+ label,
7748
+ type
7748
7749
  }
7749
7750
  }
7750
7751
  };
@@ -7991,6 +7992,13 @@ const buildPropertiesSection = function(type) {
7991
7992
  emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
7992
7993
  ];
7993
7994
  break;
7995
+ case "SegmentChart":
7996
+ uiSchema.elements = [
7997
+ getInputField("height", "Height", "number"),
7998
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 }),
7999
+ getArrayControl("pieArcColors", "color", "Color")
8000
+ ];
8001
+ break;
7994
8002
  case "Graph":
7995
8003
  uiSchema.elements = [
7996
8004
  getInputField("height", "Height"),
@@ -12572,6 +12580,9 @@ const buildSegmentChart = (config2, componentScope2) => {
12572
12580
  if (config2.pieArcColors) {
12573
12581
  segment.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
12574
12582
  }
12583
+ if (config2.height) {
12584
+ segment.config.main.height = Number(config2.height);
12585
+ }
12575
12586
  if (config2.style) {
12576
12587
  segment.config.style = JSON.parse(config2.style);
12577
12588
  }