impaktapps-ui-builder 0.0.592-alpha.1 → 0.0.592-alpha.11

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.
Files changed (23) hide show
  1. package/dist/impaktapps-ui-builder.es.js +68 -48
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
  6. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  7. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  8. package/package.json +1 -1
  9. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
  10. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
  12. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
  13. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -0
  14. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +9 -0
  15. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
  16. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
  17. package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
  18. package/src/impaktapps-ui-builder/builder/services/event.ts +4 -4
  19. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
  20. package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
  21. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  22. package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
  23. package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -3
@@ -6346,7 +6346,8 @@ const ComponentSchema = {
6346
6346
  { title: "Stack Bar Graph", const: "StackBarGraph" },
6347
6347
  { title: "Line Graph", const: "LineGraph" },
6348
6348
  { title: "Pie Graph", const: "PieGraph" },
6349
- { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" }
6349
+ { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6350
+ { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6350
6351
  ]
6351
6352
  },
6352
6353
  iconName: {
@@ -7450,6 +7451,15 @@ const buildPropertiesSection = function(type) {
7450
7451
  ];
7451
7452
  break;
7452
7453
  case "ProgressBar":
7454
+ uiSchema.elements = [
7455
+ getInputField("heading", "Heading"),
7456
+ getInputField("bottomLabel_1", "First BottomLabel"),
7457
+ getInputField("bottomLabel_2", "Second BottomLabel"),
7458
+ getInputField("bottomLabel_3", "Third BottomLabel"),
7459
+ emptyBox$1("ProgressBarCardEmpty1"),
7460
+ emptyBox$1("ProgressBarCardEmpty2")
7461
+ ];
7462
+ break;
7453
7463
  case "ProgressBarCard":
7454
7464
  uiSchema.elements = [
7455
7465
  getInputField("heading", "Heading"),
@@ -7846,8 +7856,8 @@ const flatObjectValueInArray = (config = []) => {
7846
7856
  });
7847
7857
  return data;
7848
7858
  };
7849
- const clearFromLocalStorage = () => {
7850
- localStorage.removeItem("pageFormdata");
7859
+ const clearFromSessionStorage = () => {
7860
+ sessionStorage.removeItem("pageFormdata");
7851
7861
  };
7852
7862
  const getNavigationHistory = (config, path) => {
7853
7863
  if (path) {
@@ -7873,19 +7883,19 @@ const getNavigationHistory = (config, path) => {
7873
7883
  }
7874
7884
  return void 0;
7875
7885
  };
7876
- const saveFormdataInLocalStorage = (formData, path) => {
7886
+ const saveFormdataInSessionStorage = (formData, path) => {
7877
7887
  let updatedFormdata;
7878
7888
  if (path) {
7879
- const pageFormdata = getFormdataFromLocalStorage();
7889
+ const pageFormdata = getFormdataFromSessionStorage();
7880
7890
  updatedFormdata = _.set(pageFormdata, path, buildConfig(formData));
7881
7891
  } else {
7882
7892
  updatedFormdata = buildConfig(formData);
7883
7893
  }
7884
- localStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
7894
+ sessionStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
7885
7895
  return updatedFormdata;
7886
7896
  };
7887
- const getFormdataFromLocalStorage = (path) => {
7888
- const pageFormdata = localStorage.getItem("pageFormdata") ? JSON.parse(localStorage.getItem("pageFormdata")) : void 0;
7897
+ const getFormdataFromSessionStorage = (path) => {
7898
+ const pageFormdata = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
7889
7899
  let returnValue;
7890
7900
  if (path) {
7891
7901
  returnValue = _.get(pageFormdata, path);
@@ -7900,8 +7910,8 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
7900
7910
  var _a, _b;
7901
7911
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7902
7912
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7903
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
7904
- const config = JSON.parse(localStorage.getItem("pageFormdata"));
7913
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
7914
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
7905
7915
  if (_.isEmpty(store2.ctx.core.errors)) {
7906
7916
  try {
7907
7917
  const saveReturn = await submitHandler(store2, service2, config);
@@ -7913,7 +7923,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
7913
7923
  }
7914
7924
  const navigateHandler = (store2, isSubmitted, pageName) => {
7915
7925
  if (isSubmitted) {
7916
- localStorage.removeItem("pageFormdata");
7926
+ sessionStorage.removeItem("pageFormdata");
7917
7927
  store2.navigate(pageName || -1);
7918
7928
  store2.setNotify({
7919
7929
  SuccessMessage: "Submit Successfully",
@@ -7931,7 +7941,7 @@ function okHandler(store2) {
7931
7941
  var _a;
7932
7942
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7933
7943
  if (_.isEmpty(store2.ctx.core.errors)) {
7934
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
7944
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
7935
7945
  store2.navigate(-1);
7936
7946
  store2.setNotify({
7937
7947
  SuccessMessage: "Save Successfully",
@@ -8008,7 +8018,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8008
8018
  getFormdata: function() {
8009
8019
  var _a;
8010
8020
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8011
- return getFormdataFromLocalStorage(path);
8021
+ return getFormdataFromSessionStorage(path);
8012
8022
  },
8013
8023
  getSchema: function() {
8014
8024
  return ComponentSchema;
@@ -8026,7 +8036,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8026
8036
  const rowId = dynamicData2.path.split(".")[1];
8027
8037
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8028
8038
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8029
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8039
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8030
8040
  if (path) {
8031
8041
  const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8032
8042
  const finalPath = `${path2}.elements[${rowId}]`;
@@ -8040,27 +8050,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8040
8050
  deleteComponents: function(shouldUpdateDialog = true) {
8041
8051
  var _a;
8042
8052
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8043
- const rowId = localStorage.getItem("rowId");
8053
+ const rowId = sessionStorage.getItem("rowId");
8044
8054
  store2.formData.elements.splice(rowId, 1);
8045
- const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
8055
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8046
8056
  const data = path ? _.get(response, path) : response;
8047
8057
  store2.setFormdata(data);
8048
8058
  if (shouldUpdateDialog) {
8049
8059
  store2.updateDialog("popUpComponentSection");
8050
8060
  }
8051
- localStorage.removeItem("rowId");
8061
+ sessionStorage.removeItem("rowId");
8052
8062
  },
8053
8063
  deleteEvent: function(shouldUpdateDialog = true) {
8054
8064
  var _a;
8055
8065
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8056
- const rowId = localStorage.getItem("rowId");
8066
+ const rowId = sessionStorage.getItem("rowId");
8057
8067
  store2.formData.events.splice(rowId, 1);
8058
- const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
8068
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8059
8069
  store2.setFormdata(_.get(response, path));
8060
8070
  if (shouldUpdateDialog) {
8061
8071
  store2.updateDialog("popUpEventSection");
8062
8072
  }
8063
- localStorage.removeItem("rowId");
8073
+ sessionStorage.removeItem("rowId");
8064
8074
  },
8065
8075
  widgetAddClickHandler: function() {
8066
8076
  var _a;
@@ -8068,7 +8078,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8068
8078
  store2.formData.elements = [];
8069
8079
  }
8070
8080
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8071
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8081
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8072
8082
  const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
8073
8083
  store2.searchParams.set("path", finalPath);
8074
8084
  store2.setSearchParams(store2.searchParams);
@@ -8079,7 +8089,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8079
8089
  const rowId = dynamicData2.path.split(".")[1];
8080
8090
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8081
8091
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8082
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8092
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8083
8093
  const finalPath = `${path}.events[${rowId}]`;
8084
8094
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8085
8095
  },
@@ -8090,7 +8100,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8090
8100
  if (!Array.isArray(store2.formData.events)) {
8091
8101
  store2.formData.events = [];
8092
8102
  }
8093
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8103
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8094
8104
  const finalPath = `${path}.events[${store2.formData.events.length}]`;
8095
8105
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8096
8106
  },
@@ -8099,12 +8109,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8099
8109
  },
8100
8110
  deletePopUpComponent: function() {
8101
8111
  const rowId = dynamicData2.path.split(".")[1];
8102
- localStorage.setItem("rowId", rowId);
8112
+ sessionStorage.setItem("rowId", rowId);
8103
8113
  store2.updateDialog("popUpComponentSection");
8104
8114
  },
8105
8115
  deletePopUpEvent: function() {
8106
8116
  const rowId = dynamicData2.path.split(".")[1];
8107
- localStorage.setItem("rowId", rowId);
8117
+ sessionStorage.setItem("rowId", rowId);
8108
8118
  store2.updateDialog("popUpEventSection");
8109
8119
  }
8110
8120
  };
@@ -8124,11 +8134,11 @@ var pageMaster = (funcParams) => {
8124
8134
  var _a;
8125
8135
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8126
8136
  const config = await funcParams.pageConfigProvider(id);
8127
- const formData = getFormdataFromLocalStorage();
8137
+ const formData = getFormdataFromSessionStorage();
8128
8138
  if (formData) {
8129
8139
  return formData;
8130
8140
  }
8131
- saveFormdataInLocalStorage(config);
8141
+ saveFormdataInSessionStorage(config);
8132
8142
  return config;
8133
8143
  },
8134
8144
  getUiSchema: function() {
@@ -8138,7 +8148,7 @@ var pageMaster = (funcParams) => {
8138
8148
  return PageMasterSchema;
8139
8149
  },
8140
8150
  backHandler: () => {
8141
- localStorage.removeItem("pageFormdata");
8151
+ sessionStorage.removeItem("pageFormdata");
8142
8152
  store2.navigate("/PageMasterRecords");
8143
8153
  },
8144
8154
  onAddClickHandler: function() {
@@ -8147,7 +8157,7 @@ var pageMaster = (funcParams) => {
8147
8157
  if (!Array.isArray(store2.formData.elements)) {
8148
8158
  store2.formData.elements = [];
8149
8159
  }
8150
- const response = saveFormdataInLocalStorage(store2.ctx.core.data);
8160
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data);
8151
8161
  if (id) {
8152
8162
  store2.navigate(
8153
8163
  `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
@@ -8170,7 +8180,7 @@ var pageMaster = (funcParams) => {
8170
8180
  if (!Array.isArray(store2.formData.events)) {
8171
8181
  store2.formData.events = [];
8172
8182
  }
8173
- saveFormdataInLocalStorage(store2.ctx.core.data);
8183
+ saveFormdataInSessionStorage(store2.ctx.core.data);
8174
8184
  const finalPath = `events[${store2.formData.events.length}]`;
8175
8185
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8176
8186
  },
@@ -8178,26 +8188,26 @@ var pageMaster = (funcParams) => {
8178
8188
  var _a;
8179
8189
  const rowId = dynamicData2.path.split(".")[1];
8180
8190
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8181
- saveFormdataInLocalStorage(store2.ctx.core.data);
8191
+ saveFormdataInSessionStorage(store2.ctx.core.data);
8182
8192
  const finalPath = `events[${rowId}]`;
8183
8193
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8184
8194
  },
8185
8195
  deleteEvent: function() {
8186
- const rowId = localStorage.getItem("rowId");
8196
+ const rowId = sessionStorage.getItem("rowId");
8187
8197
  store2.formData.events.splice(rowId, 1);
8188
- const response = saveFormdataInLocalStorage(store2.ctx.core.data);
8198
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data);
8189
8199
  store2.setFormdata(response);
8190
8200
  store2.updateDialog("popUpPageMasterEvent");
8191
- localStorage.removeItem("rowId");
8201
+ sessionStorage.removeItem("rowId");
8192
8202
  },
8193
8203
  deletePopUpComponent: function() {
8194
8204
  const rowId = dynamicData2.path.split(".")[1];
8195
- localStorage.setItem("rowId", rowId);
8205
+ sessionStorage.setItem("rowId", rowId);
8196
8206
  store2.updateDialog("popUpPageMasterComponent");
8197
8207
  },
8198
8208
  deletePopUpEvent: function() {
8199
8209
  const rowId = dynamicData2.path.split(".")[1];
8200
- localStorage.setItem("rowId", rowId);
8210
+ sessionStorage.setItem("rowId", rowId);
8201
8211
  store2.updateDialog("popUpPageMasterEvent");
8202
8212
  }
8203
8213
  };
@@ -9015,7 +9025,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9015
9025
  if (!Array.isArray(store2.formData.events)) {
9016
9026
  store2.formData.events = [];
9017
9027
  }
9018
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
9028
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
9019
9029
  const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
9020
9030
  store2.searchParams.set("path", finalPath);
9021
9031
  store2.setSearchParams(store2.searchParams);
@@ -9025,7 +9035,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9025
9035
  var _a;
9026
9036
  const rowId = dynamicData2.path.split(".")[1];
9027
9037
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9028
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
9038
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
9029
9039
  const finalPath = `${path}.events[${rowId}]`;
9030
9040
  store2.searchParams.set("path", finalPath);
9031
9041
  store2.setSearchParams(store2.searchParams);
@@ -9040,7 +9050,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9040
9050
  },
9041
9051
  deletePopUpEvent: function() {
9042
9052
  const rowId = dynamicData2.path.split(".")[1];
9043
- localStorage.setItem("rowId", rowId);
9053
+ sessionStorage.setItem("rowId", rowId);
9044
9054
  store2.updateDialog("popUpEvent");
9045
9055
  }
9046
9056
  };
@@ -9212,7 +9222,7 @@ function executeCustomHandler(params) {
9212
9222
  return response;
9213
9223
  }
9214
9224
  }
9215
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder2) {
9225
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9216
9226
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9217
9227
  store2.setSchema((pre) => {
9218
9228
  var _a;
@@ -9256,9 +9266,9 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9256
9266
  }
9257
9267
  } else {
9258
9268
  if (handlerResponse) {
9259
- formDataHolder2[componentName] = handlerResponse.data;
9269
+ formDataHolder[componentName] = handlerResponse.data;
9260
9270
  store2.setFormdata((pre) => {
9261
- return { ...pre, ...formDataHolder2 };
9271
+ return { ...pre, ...formDataHolder };
9262
9272
  });
9263
9273
  }
9264
9274
  }
@@ -9279,7 +9289,7 @@ const buildBodyFormat = (body2, formData, userValue2, store2) => {
9279
9289
  finalBody[elem.key] = value;
9280
9290
  } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
9281
9291
  const finalpath = elem.value.substring(7);
9282
- const value = JSON.parse(localStorage.getItem(finalpath) || '""');
9292
+ const value = JSON.parse(sessionStorage.getItem(finalpath) || '""');
9283
9293
  finalBody[elem.key] = value;
9284
9294
  } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
9285
9295
  const finalpath = elem.value.substring(1);
@@ -9348,7 +9358,6 @@ const notifyUiSchema = {
9348
9358
  },
9349
9359
  layout: 6
9350
9360
  };
9351
- let formDataHolder = {};
9352
9361
  let pageData = false;
9353
9362
  const extractEvents = (eventConfig) => {
9354
9363
  function extractsConfigEvents(eventConfigObj) {
@@ -9391,6 +9400,7 @@ const extractEvents = (eventConfig) => {
9391
9400
  };
9392
9401
  var service = (funcParams) => {
9393
9402
  eventGroups = {};
9403
+ const formDataHolder = {};
9394
9404
  if (pageData) {
9395
9405
  if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
9396
9406
  eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
@@ -9413,12 +9423,12 @@ var service = (funcParams) => {
9413
9423
  var _a, _b, _c, _d;
9414
9424
  funcParams.store.setFormdata({});
9415
9425
  funcParams.store.newData = {};
9416
- const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
9426
+ const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
9417
9427
  if (pageBasicDetailString) {
9418
9428
  pageData = JSON.parse(pageBasicDetailString);
9419
9429
  } else {
9420
9430
  pageData = await funcParams.pageDataProvider();
9421
- localStorage.setItem("pagemasterMetaData", JSON.stringify({
9431
+ sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
9422
9432
  schema: pageData == null ? void 0 : pageData.schema,
9423
9433
  uiSchema: pageData == null ? void 0 : pageData.uiSchema,
9424
9434
  config: pageData == null ? void 0 : pageData.config
@@ -10202,7 +10212,6 @@ const LineGraph = {
10202
10212
  hideBottomAxisLine: false,
10203
10213
  legend: {
10204
10214
  labelColor: "green",
10205
- legendTitle: "Our Assests",
10206
10215
  direction: "row",
10207
10216
  align: "right",
10208
10217
  colorRectWidth: 20
@@ -10235,11 +10244,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10235
10244
  if (config.layout) {
10236
10245
  horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10237
10246
  }
10247
+ horizontalBarGraph.config.main.type = config.graphType;
10238
10248
  horizontalBarGraph.scope = componentScope;
10239
10249
  horizontalBarGraph.config.main.header = config.heading;
10240
10250
  if (config.barColor) {
10241
10251
  horizontalBarGraph.config.barStyle.color = config.barColor;
10242
10252
  }
10253
+ if (config.xAxisValue) {
10254
+ horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10255
+ }
10243
10256
  if (config.containerBackground) {
10244
10257
  horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10245
10258
  }
@@ -10371,6 +10384,9 @@ const buildPieGraph = (config, componentScope) => {
10371
10384
  if (config.legendLabels) {
10372
10385
  pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10373
10386
  }
10387
+ if (config.xAxisValue) {
10388
+ pieGraph.config.main.xAxisValue = config.xAxisValue;
10389
+ }
10374
10390
  if (config.pieArcColors) {
10375
10391
  pieGraph.config.style = {
10376
10392
  pieStyle: {
@@ -10393,6 +10409,9 @@ const buildStackbarGraph = (config, componentScope) => {
10393
10409
  if (config.barColor) {
10394
10410
  barGraph.config.barStyle.color = config.barColor;
10395
10411
  }
10412
+ if (config.xAxisValue) {
10413
+ barGraph.config.main.xAxisValue = config.xAxisValue;
10414
+ }
10396
10415
  if (config.height) {
10397
10416
  barGraph.config.style.containerStyle.height = config.height;
10398
10417
  }
@@ -11835,6 +11854,7 @@ const buildUiSchema = (config, store2) => {
11835
11854
  elements = buildPieGraph(config, componentScope);
11836
11855
  break;
11837
11856
  case "HorizontalBarGraph":
11857
+ case "HorizontalStackBarGraph":
11838
11858
  elements = buildHorizontalBarGraph(config, componentScope);
11839
11859
  break;
11840
11860
  }
@@ -11938,5 +11958,5 @@ const buildUiSchema = (config, store2) => {
11938
11958
  }
11939
11959
  return elements;
11940
11960
  };
11941
- export { buildConfig, buildSchema, buildUiSchema, clearFromLocalStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
11961
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
11942
11962
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map