impaktapps-ui-builder 1.0.303 → 1.0.305-test.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.
Files changed (27) hide show
  1. package/dist/impaktapps-ui-builder.es.js +203 -74
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +9 -9
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
  7. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +7 -1
  8. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
  9. package/package.json +1 -1
  10. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +2 -2
  11. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
  12. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +66 -0
  13. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -4
  14. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
  15. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +8 -22
  16. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -10
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/services/component.ts +28 -4
  21. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +7 -1
  22. package/src/impaktapps-ui-builder/builder/services/utils.ts +79 -6
  23. package/src/impaktapps-ui-builder/runtime/services/service.ts +19 -0
  24. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
  26. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -20
  27. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
@@ -6280,8 +6280,7 @@ const ComponentSchema = {
6280
6280
  { title: "Timer", const: "Timer" },
6281
6281
  { title: "Upload", const: "UploadFile" },
6282
6282
  { title: "Tree ", const: "TreeMap" },
6283
- { title: "Thought of the day", const: "Thought" },
6284
- { title: "PDF", const: "PdfViewer" }
6283
+ { title: "Thought of the day", const: "Thought" }
6285
6284
  ]
6286
6285
  },
6287
6286
  elementType: {
@@ -6363,15 +6362,6 @@ const ComponentSchema = {
6363
6362
  { title: "Right", const: "right" }
6364
6363
  ]
6365
6364
  },
6366
- maxWidth: {
6367
- oneOf: [
6368
- { title: "Extra Small", const: "xs" },
6369
- { title: "Small", const: "sm" },
6370
- { title: "Medium", const: "md" },
6371
- { title: "Large", const: "lg" },
6372
- { title: "Extra Large", const: "xl" }
6373
- ]
6374
- },
6375
6365
  toolTipPosition: {
6376
6366
  oneOf: [
6377
6367
  { title: "Top", const: "top" },
@@ -6666,7 +6656,8 @@ const ComponentSchema = {
6666
6656
  title: "Stack Horizontal Bar Graph",
6667
6657
  const: "HorizontalStackBarGraph"
6668
6658
  },
6669
- { title: "Area Graph", const: "AreaGraph" }
6659
+ { title: "Area Graph", const: "AreaGraph" },
6660
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6670
6661
  ]
6671
6662
  },
6672
6663
  iconName: {
@@ -8200,6 +8191,7 @@ const buildPropertiesSection = function(type) {
8200
8191
  getInputField("subHeader", "Sub Header"),
8201
8192
  getSelectField("graphType", "Graph Type"),
8202
8193
  getInputField("leftLabel", "Left Label"),
8194
+ getInputField("rightLabel", "Right Label"),
8203
8195
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8204
8196
  getInputField("bottomLabel", "Bottom Label"),
8205
8197
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
@@ -8210,7 +8202,7 @@ const buildPropertiesSection = function(type) {
8210
8202
  getSelectField("xAxisType", "X-AxisType"),
8211
8203
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8212
8204
  getInputField("leftMargin", "Left Margin"),
8213
- getInputField("xAxisTickCount", "X Axis TickCount"),
8205
+ getInputField("xAxisLabelMinWidth", "X Axis Label Width"),
8214
8206
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8215
8207
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8216
8208
  emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
@@ -8227,7 +8219,9 @@ const buildPropertiesSection = function(type) {
8227
8219
  getInputField("rowSpacing", "Row Spacing"),
8228
8220
  getInputField("columnSpacing", "Column Spacing"),
8229
8221
  getInputField("spacing", "Spacing"),
8230
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8222
+ getInputField("iconUrl", "Icon Url"),
8223
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8224
+ emptyBox$1("WrapperSectionEmpty2")
8231
8225
  ];
8232
8226
  break;
8233
8227
  case "TabSection":
@@ -8299,22 +8293,12 @@ const buildPropertiesSection = function(type) {
8299
8293
  getSelectField("toolTipPosition", "Tooltip Position")
8300
8294
  ];
8301
8295
  break;
8302
- case "PdfViewer":
8303
- uiSchema.elements = [
8304
- getInputField("title", "title"),
8305
- getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
8306
- getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
8307
- getSelectField("maxWidth", "Max Width"),
8308
- getInputField("scale", "Zoom"),
8309
- emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8310
- ];
8311
- break;
8312
8296
  case "Date":
8313
8297
  uiSchema.elements = [
8314
8298
  getSelectField("variant", "Variant"),
8315
8299
  getInputField("toolTip", "Tooltip"),
8316
8300
  getSelectField("toolTipPosition", "Tooltip Position"),
8317
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8301
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8318
8302
  ];
8319
8303
  break;
8320
8304
  case "DateTime":
@@ -8322,7 +8306,7 @@ const buildPropertiesSection = function(type) {
8322
8306
  getSelectField("variant", "Variant"),
8323
8307
  getInputField("toolTip", "Tooltip"),
8324
8308
  getSelectField("toolTipPosition", "Tooltip Position"),
8325
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8309
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8326
8310
  ];
8327
8311
  break;
8328
8312
  case "Thought":
@@ -8803,12 +8787,75 @@ const getFormdataFromSessionStorage = (path) => {
8803
8787
  }
8804
8788
  return returnValue || pageFormdata;
8805
8789
  };
8790
+ const collectScopeNames = (config2, scopeMap = {}) => {
8791
+ if (!config2 || typeof config2 !== "object")
8792
+ return scopeMap;
8793
+ if (Array.isArray(config2)) {
8794
+ config2.forEach((item) => collectScopeNames(item, scopeMap));
8795
+ return scopeMap;
8796
+ }
8797
+ if (config2.name) {
8798
+ scopeMap[config2.name] = true;
8799
+ }
8800
+ if (Array.isArray(config2.elements)) {
8801
+ collectScopeNames(config2.elements, scopeMap);
8802
+ }
8803
+ return scopeMap;
8804
+ };
8805
+ const initialiseScopeKey = () => {
8806
+ const config2 = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
8807
+ const names = config2 ? collectScopeNames(config2) : {};
8808
+ sessionStorage.setItem("scopeKey", JSON.stringify(names));
8809
+ };
8810
+ const getScopeKey = () => {
8811
+ const raw = sessionStorage.getItem("scopeKey");
8812
+ return raw ? JSON.parse(raw) : {};
8813
+ };
8814
+ const addToScopeKey = (name) => {
8815
+ if (!name)
8816
+ return;
8817
+ const scopeKey = getScopeKey();
8818
+ scopeKey[name] = true;
8819
+ sessionStorage.setItem("scopeKey", JSON.stringify(scopeKey));
8820
+ };
8821
+ const doesScopeNameExist = (name) => {
8822
+ if (!name)
8823
+ return false;
8824
+ const scopeKey = getScopeKey();
8825
+ return !!scopeKey[name];
8826
+ };
8827
+ const findDuplicateScopeNames = (config2) => {
8828
+ const scopeNameCount = {};
8829
+ const traverse = (currentNode) => {
8830
+ if (!currentNode || typeof currentNode !== "object")
8831
+ return;
8832
+ if (Array.isArray(currentNode)) {
8833
+ currentNode.forEach(traverse);
8834
+ return;
8835
+ }
8836
+ if (currentNode.name) {
8837
+ scopeNameCount[currentNode.name] = (scopeNameCount[currentNode.name] || 0) + 1;
8838
+ }
8839
+ if (Array.isArray(currentNode.elements))
8840
+ traverse(currentNode.elements);
8841
+ };
8842
+ traverse(config2);
8843
+ return Object.keys(scopeNameCount).filter((name) => scopeNameCount[name] > 1);
8844
+ };
8806
8845
  async function saveHandler(store2, service2, submitHandler) {
8807
- var _a, _b;
8808
- (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8809
- const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8846
+ var _a;
8847
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8810
8848
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8811
8849
  const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8850
+ const duplicates = findDuplicateScopeNames(config2);
8851
+ if (duplicates.length > 0) {
8852
+ store2.setValidation("ValidateAndShow");
8853
+ store2.setNotify({
8854
+ Fail: true,
8855
+ FailMessage: `Duplicate names found: ${duplicates.join(", ")}`
8856
+ });
8857
+ return;
8858
+ }
8812
8859
  if (_.isEmpty(store2.ctx.core.errors)) {
8813
8860
  try {
8814
8861
  const saveReturn = await submitHandler(store2, service2, config2);
@@ -8823,6 +8870,7 @@ async function saveHandler(store2, service2, submitHandler) {
8823
8870
  const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8824
8871
  if (isSubmitted) {
8825
8872
  sessionStorage.removeItem("pageFormdata");
8873
+ sessionStorage.removeItem("scopeKey");
8826
8874
  store2.navigate(pageName || -1);
8827
8875
  store2.setNotify({
8828
8876
  SuccessMessage: "Submit Successfully",
@@ -8841,6 +8889,7 @@ function okHandler(store2) {
8841
8889
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8842
8890
  if (_.isEmpty(store2.ctx.core.errors)) {
8843
8891
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8892
+ addToScopeKey(store2.ctx.core.data);
8844
8893
  store2.navigate(-1);
8845
8894
  store2.setNotify({
8846
8895
  SuccessMessage: "Save Successfully",
@@ -8884,7 +8933,6 @@ const sectionLabels = {
8884
8933
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8885
8934
  PopUp: ["Core", "Components", "Properties", "Style"],
8886
8935
  PopOver: ["Core", "Components", "Properties", "Style"],
8887
- PdfViewer: ["Core", "Components", "Properties", "Style"],
8888
8936
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8889
8937
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8890
8938
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -9043,6 +9091,15 @@ function refreshPage(type, store2) {
9043
9091
  }
9044
9092
  store2.setUiSchema(UiSchema);
9045
9093
  }
9094
+ const debouncedNameValidator = _.debounce((store2, newName) => {
9095
+ if (doesScopeNameExist(newName)) {
9096
+ store2.setValidation("ValidateAndShow");
9097
+ store2.setNotify({
9098
+ Fail: true,
9099
+ FailMessage: `Name "${newName}" already exists. Please use a unique name.`
9100
+ });
9101
+ }
9102
+ }, 400);
9046
9103
  var Component = (store2, dynamicData2, submitHandler, service2) => {
9047
9104
  return {
9048
9105
  setPage: async function() {
@@ -9089,13 +9146,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9089
9146
  schema2.properties.pageName.path = pathArray;
9090
9147
  return schema2;
9091
9148
  },
9092
- okHandler: () => okHandler(store2),
9149
+ okHandler: () => {
9150
+ okHandler(store2);
9151
+ addToScopeKey(store2.ctx.core.data);
9152
+ },
9093
9153
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9094
9154
  onChange: function() {
9095
- var _a, _b, _c, _d;
9155
+ var _a, _b, _c, _d, _e, _f, _g;
9096
9156
  if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
9097
9157
  this.refreshPage((_d = store2 == null ? void 0 : store2.newData) == null ? void 0 : _d.type, store2);
9098
9158
  }
9159
+ if (((_e = store2 == null ? void 0 : store2.formData) == null ? void 0 : _e.name) !== ((_f = store2 == null ? void 0 : store2.newData) == null ? void 0 : _f.name) && ((_g = store2 == null ? void 0 : store2.newData) == null ? void 0 : _g.name) !== void 0) {
9160
+ debouncedNameValidator(store2, store2.newData.name);
9161
+ }
9099
9162
  },
9100
9163
  editComponents: function() {
9101
9164
  var _a, _b, _c;
@@ -9105,6 +9168,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9105
9168
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9106
9169
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9107
9170
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9171
+ addToScopeKey(store2.ctx.core.data);
9108
9172
  if (path) {
9109
9173
  const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9110
9174
  const finalPath = `${path2}.elements[${rowId}]`;
@@ -9149,6 +9213,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9149
9213
  }
9150
9214
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9151
9215
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9216
+ addToScopeKey(store2.ctx.core.data);
9152
9217
  const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9153
9218
  store2.searchParams.set("path", finalPath);
9154
9219
  store2.setSearchParams(store2.searchParams);
@@ -9310,6 +9375,7 @@ var pageMaster = (funcParams) => {
9310
9375
  const schema2 = await this.getSchema();
9311
9376
  store2.setSchema(schema2);
9312
9377
  store2.setUiSchema(uiSchema);
9378
+ initialiseScopeKey();
9313
9379
  },
9314
9380
  getFormdata: async function() {
9315
9381
  var _a;
@@ -9338,6 +9404,7 @@ var pageMaster = (funcParams) => {
9338
9404
  },
9339
9405
  backHandler: () => {
9340
9406
  sessionStorage.removeItem("pageFormdata");
9407
+ sessionStorage.removeItem("scopeKey");
9341
9408
  store2.navigate("/PageMasterRecords");
9342
9409
  },
9343
9410
  onAddClickHandler: function() {
@@ -9349,6 +9416,7 @@ var pageMaster = (funcParams) => {
9349
9416
  store2.formData.elements = [];
9350
9417
  }
9351
9418
  const response = saveFormdataInSessionStorage(store2.ctx.core.data);
9419
+ addToScopeKey(store2.ctx.core.data);
9352
9420
  if (id) {
9353
9421
  store2.navigate(
9354
9422
  `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
@@ -9374,6 +9442,7 @@ var pageMaster = (funcParams) => {
9374
9442
  store2.formData.events = [];
9375
9443
  }
9376
9444
  saveFormdataInSessionStorage(store2.ctx.core.data);
9445
+ addToScopeKey(store2.ctx.core.data);
9377
9446
  const finalPath = `events[${store2.formData.events.length}]`;
9378
9447
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9379
9448
  },
@@ -9384,6 +9453,7 @@ var pageMaster = (funcParams) => {
9384
9453
  const rowId = dynamicData2.path.split(".")[1];
9385
9454
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9386
9455
  saveFormdataInSessionStorage(store2.ctx.core.data);
9456
+ addToScopeKey(store2.ctx.core.data);
9387
9457
  const finalPath = `events[${rowId}]`;
9388
9458
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9389
9459
  },
@@ -9468,7 +9538,8 @@ const EventSchema = {
9468
9538
  { title: "Row Movement", const: "onRowMovement" },
9469
9539
  { title: "Download", const: "onDownload" },
9470
9540
  { title: "Fail", const: "Fail" },
9471
- { title: "Key Down", const: "onKeyDown" }
9541
+ { title: "Key Down", const: "onKeyDown" },
9542
+ { title: "Set Style", const: "setStyle" }
9472
9543
  ]
9473
9544
  },
9474
9545
  Handler: {
@@ -10854,6 +10925,25 @@ var service = (funcParams) => {
10854
10925
  funcParams.store.setUiSchema(uiSchema);
10855
10926
  });
10856
10927
  },
10928
+ getStyle: () => {
10929
+ var _a, _b, _c, _d, _e;
10930
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10931
+ if (cloneEventGroup.setStyle) {
10932
+ let finalResponse = {};
10933
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10934
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10935
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _e[path]) {
10936
+ finalResponse = executeEvents({
10937
+ ...executeEventsParameters,
10938
+ config: eventConfig,
10939
+ componentName: path
10940
+ });
10941
+ }
10942
+ return finalResponse;
10943
+ }
10944
+ }
10945
+ return {};
10946
+ },
10857
10947
  onCellRenderer: (cellParams) => {
10858
10948
  var _a, _b, _c, _d, _e;
10859
10949
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -11232,6 +11322,21 @@ const AreaBarGraph = {
11232
11322
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11233
11323
  }
11234
11324
  };
11325
+ const StackBarLineG = {
11326
+ type: "Control",
11327
+ scope: "#/properties/graph",
11328
+ options: {
11329
+ widget: "Graph"
11330
+ },
11331
+ config: {
11332
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11333
+ main: {
11334
+ type: "StackBarLineGraph",
11335
+ legendLabels: null
11336
+ },
11337
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11338
+ }
11339
+ };
11235
11340
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11236
11341
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11237
11342
  horizontalBarGraph.scope = componentScope2;
@@ -11516,6 +11621,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11516
11621
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11517
11622
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11518
11623
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11624
+ wrapper.config.main.icon = config2.iconUrl;
11519
11625
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11520
11626
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11521
11627
  wrapper.config.main.spacing = Number(config2.spacing);
@@ -12160,7 +12266,6 @@ const DateTime = {
12160
12266
  const buildDate = (config2, componentScope2) => {
12161
12267
  const dateInputField = _.cloneDeep(DateInputField);
12162
12268
  dateInputField.config.main.label = config2.label;
12163
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12164
12269
  dateInputField.scope = componentScope2;
12165
12270
  if (config2.layout) {
12166
12271
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12182,7 +12287,6 @@ const buildDate = (config2, componentScope2) => {
12182
12287
  const buildDateTime = (config2, componentScope2) => {
12183
12288
  const dateTimeInputField = _.cloneDeep(DateTime);
12184
12289
  dateTimeInputField.config.main.label = config2.label;
12185
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12186
12290
  dateTimeInputField.scope = componentScope2;
12187
12291
  if (config2.layout) {
12188
12292
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -13001,8 +13105,8 @@ const buildAreaGraph = (config2, componentScope2) => {
13001
13105
  if (config2.xAxisFormatType) {
13002
13106
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13003
13107
  }
13004
- if (config2.xAxisTickCount) {
13005
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13108
+ if (config2.xAxisLabelMinWidth) {
13109
+ AreaGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13006
13110
  }
13007
13111
  if (config2.yAxisTickCount) {
13008
13112
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
@@ -13029,6 +13133,65 @@ const buildAreaGraph = (config2, componentScope2) => {
13029
13133
  }
13030
13134
  return AreaGraph;
13031
13135
  };
13136
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13137
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13138
+ StackBarLineGraph.scope = componentScope2;
13139
+ if (config2.layout) {
13140
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13141
+ }
13142
+ StackBarLineGraph.config.main.type = config2.graphType;
13143
+ StackBarLineGraph.scope = componentScope2;
13144
+ StackBarLineGraph.config.main.header = config2.heading;
13145
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13146
+ if (config2.legendHide) {
13147
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13148
+ }
13149
+ if (config2.bottomAxisAngle) {
13150
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13151
+ }
13152
+ if (config2.legendLabels) {
13153
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13154
+ }
13155
+ if (config2.legendDirection) {
13156
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13157
+ }
13158
+ if (config2.height) {
13159
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13160
+ }
13161
+ if (config2.pieArcColors) {
13162
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13163
+ }
13164
+ if (config2.xAxisLabelMinWidth) {
13165
+ StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13166
+ }
13167
+ if (config2.yAxisTickCount) {
13168
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13169
+ }
13170
+ if (config2.xAxisValue) {
13171
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13172
+ }
13173
+ if (config2.xAxisType) {
13174
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13175
+ }
13176
+ if (config2.bottomLabel) {
13177
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13178
+ }
13179
+ if (config2.leftLabel) {
13180
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13181
+ }
13182
+ if (config2.rightLabel) {
13183
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13184
+ }
13185
+ if (config2.disableLeftLabel) {
13186
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13187
+ }
13188
+ if (config2.leftMargin) {
13189
+ StackBarLineGraph.config.style.labelStyle.margin = {
13190
+ left: config2.leftMargin
13191
+ };
13192
+ }
13193
+ return StackBarLineGraph;
13194
+ };
13032
13195
  const cameraUiSchema = {
13033
13196
  type: "Control",
13034
13197
  scope: "#/properties/camera",
@@ -13182,40 +13345,6 @@ const buildOTP_Input = (config2, componentScope2) => {
13182
13345
  OTP.config.main.length = +config2.length;
13183
13346
  return OTP;
13184
13347
  };
13185
- var pdfViewer = {
13186
- type: "Control",
13187
- scope: "#/properties/pdfviewer",
13188
- options: {
13189
- widget: "PdfViewer"
13190
- },
13191
- config: {
13192
- layout: {
13193
- xs: 12,
13194
- sm: 12,
13195
- md: 12,
13196
- lg: 12
13197
- },
13198
- main: {
13199
- title: "PDF"
13200
- }
13201
- }
13202
- };
13203
- const buildPdfViewer = (config2, componentScope2) => {
13204
- const PdfViewer = _.cloneDeep(pdfViewer);
13205
- PdfViewer.scope = componentScope2;
13206
- PdfViewer.config.main.title = config2.label;
13207
- PdfViewer.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
13208
- PdfViewer.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
13209
- PdfViewer.config.main.maxWidth = config2.maxWidth || false;
13210
- PdfViewer.config.main.scale = config2.scale;
13211
- if (config2.layout) {
13212
- PdfViewer.config.layout = createLayoutFormat(config2.layout);
13213
- }
13214
- if (config2.style) {
13215
- PdfViewer.config.style = JSON.parse(config2.style);
13216
- }
13217
- return PdfViewer;
13218
- };
13219
13348
  let schema = {
13220
13349
  type: "object",
13221
13350
  properties: {},
@@ -13398,6 +13527,9 @@ const buildUiSchema = (config2, store2) => {
13398
13527
  case "AreaGraph":
13399
13528
  elements = buildAreaGraph(config2, componentScope2);
13400
13529
  break;
13530
+ case "StackBarLineGraph":
13531
+ elements = buildStackBarLineGraph(config2, componentScope2);
13532
+ break;
13401
13533
  default:
13402
13534
  elements = buildStackbarGraph(config2, componentScope2);
13403
13535
  break;
@@ -13446,9 +13578,6 @@ const buildUiSchema = (config2, store2) => {
13446
13578
  case "Camera":
13447
13579
  elements = buildCamera(config2, componentScope2);
13448
13580
  break;
13449
- case "PdfViewer":
13450
- elements = buildPdfViewer(config2, componentScope2);
13451
- break;
13452
13581
  default:
13453
13582
  schema = {
13454
13583
  type: "object",