impaktapps-ui-builder 1.0.406 → 1.0.408

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.
@@ -6657,7 +6657,8 @@ const ComponentSchema = {
6657
6657
  title: "Stack Horizontal Bar Graph",
6658
6658
  const: "HorizontalStackBarGraph"
6659
6659
  },
6660
- { title: "Area Graph", const: "AreaGraph" }
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6661
6662
  ]
6662
6663
  },
6663
6664
  iconName: {
@@ -7816,7 +7817,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7816
7817
  ]
7817
7818
  };
7818
7819
  };
7819
- const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
7820
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7820
7821
  return {
7821
7822
  type: "Control",
7822
7823
  scope: `#/properties/${parentScope}`,
@@ -7825,7 +7826,9 @@ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScop
7825
7826
  },
7826
7827
  config: {
7827
7828
  layout: 12,
7828
- main: {},
7829
+ main: {
7830
+ label: arrayLabel
7831
+ },
7829
7832
  style: {
7830
7833
  marginLeft: "-24px",
7831
7834
  marginBottom: "24px !important",
@@ -8191,6 +8194,7 @@ const buildPropertiesSection = function(type) {
8191
8194
  getInputField("subHeader", "Sub Header"),
8192
8195
  getSelectField("graphType", "Graph Type"),
8193
8196
  getInputField("leftLabel", "Left Label"),
8197
+ getInputField("rightLabel", "Right Label"),
8194
8198
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8195
8199
  getInputField("bottomLabel", "Bottom Label"),
8196
8200
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
@@ -8201,12 +8205,12 @@ const buildPropertiesSection = function(type) {
8201
8205
  getSelectField("xAxisType", "X-AxisType"),
8202
8206
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8203
8207
  getInputField("leftMargin", "Left Margin"),
8204
- getInputField("xAxisTickCount", "X Axis TickCount"),
8208
+ getInputField("xAxisLabelMinWidth", "X Axis Label Width"),
8205
8209
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8206
8210
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8207
8211
  emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8208
- getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
8209
- getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color")
8212
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8213
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8210
8214
  ];
8211
8215
  break;
8212
8216
  case "WrapperSection":
@@ -8218,7 +8222,9 @@ const buildPropertiesSection = function(type) {
8218
8222
  getInputField("rowSpacing", "Row Spacing"),
8219
8223
  getInputField("columnSpacing", "Column Spacing"),
8220
8224
  getInputField("spacing", "Spacing"),
8221
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8225
+ getInputField("iconUrl", "Icon Url"),
8226
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8227
+ emptyBox$1("WrapperSectionEmpty2")
8222
8228
  ];
8223
8229
  break;
8224
8230
  case "TabSection":
@@ -11243,6 +11249,21 @@ const AreaBarGraph = {
11243
11249
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11244
11250
  }
11245
11251
  };
11252
+ const StackBarLineG = {
11253
+ type: "Control",
11254
+ scope: "#/properties/graph",
11255
+ options: {
11256
+ widget: "Graph"
11257
+ },
11258
+ config: {
11259
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11260
+ main: {
11261
+ type: "StackBarLineGraph",
11262
+ legendLabels: null
11263
+ },
11264
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11265
+ }
11266
+ };
11246
11267
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11247
11268
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11248
11269
  horizontalBarGraph.scope = componentScope2;
@@ -11527,6 +11548,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11527
11548
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11528
11549
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11529
11550
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11551
+ wrapper.config.main.icon = config2.iconUrl;
11530
11552
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11531
11553
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11532
11554
  wrapper.config.main.spacing = Number(config2.spacing);
@@ -13011,8 +13033,8 @@ const buildAreaGraph = (config2, componentScope2) => {
13011
13033
  if (config2.xAxisFormatType) {
13012
13034
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13013
13035
  }
13014
- if (config2.xAxisTickCount) {
13015
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13036
+ if (config2.xAxisLabelMinWidth) {
13037
+ AreaGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13016
13038
  }
13017
13039
  if (config2.yAxisTickCount) {
13018
13040
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
@@ -13039,6 +13061,65 @@ const buildAreaGraph = (config2, componentScope2) => {
13039
13061
  }
13040
13062
  return AreaGraph;
13041
13063
  };
13064
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13065
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13066
+ StackBarLineGraph.scope = componentScope2;
13067
+ if (config2.layout) {
13068
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13069
+ }
13070
+ StackBarLineGraph.config.main.type = config2.graphType;
13071
+ StackBarLineGraph.scope = componentScope2;
13072
+ StackBarLineGraph.config.main.header = config2.heading;
13073
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13074
+ if (config2.legendHide) {
13075
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13076
+ }
13077
+ if (config2.bottomAxisAngle) {
13078
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13079
+ }
13080
+ if (config2.legendLabels) {
13081
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13082
+ }
13083
+ if (config2.legendDirection) {
13084
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13085
+ }
13086
+ if (config2.height) {
13087
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13088
+ }
13089
+ if (config2.pieArcColors) {
13090
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13091
+ }
13092
+ if (config2.xAxisLabelMinWidth) {
13093
+ StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13094
+ }
13095
+ if (config2.yAxisTickCount) {
13096
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13097
+ }
13098
+ if (config2.xAxisValue) {
13099
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13100
+ }
13101
+ if (config2.xAxisType) {
13102
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13103
+ }
13104
+ if (config2.bottomLabel) {
13105
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13106
+ }
13107
+ if (config2.leftLabel) {
13108
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13109
+ }
13110
+ if (config2.rightLabel) {
13111
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13112
+ }
13113
+ if (config2.disableLeftLabel) {
13114
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13115
+ }
13116
+ if (config2.leftMargin) {
13117
+ StackBarLineGraph.config.style.labelStyle.margin = {
13118
+ left: config2.leftMargin
13119
+ };
13120
+ }
13121
+ return StackBarLineGraph;
13122
+ };
13042
13123
  const cameraUiSchema = {
13043
13124
  type: "Control",
13044
13125
  scope: "#/properties/camera",
@@ -13404,6 +13485,9 @@ const buildUiSchema = (config2, store2) => {
13404
13485
  case "AreaGraph":
13405
13486
  elements = buildAreaGraph(config2, componentScope2);
13406
13487
  break;
13488
+ case "StackBarLineGraph":
13489
+ elements = buildStackBarLineGraph(config2, componentScope2);
13490
+ break;
13407
13491
  default:
13408
13492
  elements = buildStackbarGraph(config2, componentScope2);
13409
13493
  break;