impaktapps-ui-builder 1.0.302 → 1.0.305-test.1

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 +216 -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 +33 -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 +43 -4
  21. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +28 -6
  22. package/src/impaktapps-ui-builder/builder/services/utils.ts +139 -8
  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
- getInputField("maxWidth", "Max. Width"),
8308
- getSelectField("maxWidth", "Max Width"),
8309
- getInputField("scale", "Zoom Factor")
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,86 @@ const getFormdataFromSessionStorage = (path) => {
8803
8787
  }
8804
8788
  return returnValue || pageFormdata;
8805
8789
  };
8790
+ const collectAllNames = (config2, accumulated = {}) => {
8791
+ if (!config2 || typeof config2 !== "object")
8792
+ return accumulated;
8793
+ if (Array.isArray(config2)) {
8794
+ config2.forEach((item) => collectAllNames(item, accumulated));
8795
+ return accumulated;
8796
+ }
8797
+ if (config2.name && typeof config2.name === "string") {
8798
+ accumulated[config2.name] = true;
8799
+ }
8800
+ if (Array.isArray(config2.elements)) {
8801
+ collectAllNames(config2.elements, accumulated);
8802
+ }
8803
+ if (Array.isArray(config2.events)) {
8804
+ collectAllNames(config2.events, accumulated);
8805
+ }
8806
+ return accumulated;
8807
+ };
8808
+ const initialiseScopeKey = () => {
8809
+ const config2 = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
8810
+ if (!config2) {
8811
+ sessionStorage.setItem("scopeKey", JSON.stringify({}));
8812
+ return;
8813
+ }
8814
+ const names = collectAllNames(config2);
8815
+ sessionStorage.setItem("scopeKey", JSON.stringify(names));
8816
+ };
8817
+ const getScopeKey = () => {
8818
+ const raw = sessionStorage.getItem("scopeKey");
8819
+ return raw ? JSON.parse(raw) : {};
8820
+ };
8821
+ const addToScopeKey = (name) => {
8822
+ if (!name)
8823
+ return;
8824
+ const scopeKey = getScopeKey();
8825
+ scopeKey[name] = true;
8826
+ sessionStorage.setItem("scopeKey", JSON.stringify(scopeKey));
8827
+ };
8828
+ const isNameDuplicate = (name, currentName) => {
8829
+ if (!name)
8830
+ return false;
8831
+ const scopeKey = getScopeKey();
8832
+ if (currentName && name === currentName)
8833
+ return false;
8834
+ return !!scopeKey[name];
8835
+ };
8836
+ const findDuplicateNames = (config2) => {
8837
+ const seen = {};
8838
+ const traverse = (node) => {
8839
+ if (!node || typeof node !== "object")
8840
+ return;
8841
+ if (Array.isArray(node)) {
8842
+ node.forEach(traverse);
8843
+ return;
8844
+ }
8845
+ if (node.name && typeof node.name === "string") {
8846
+ seen[node.name] = (seen[node.name] || 0) + 1;
8847
+ }
8848
+ if (Array.isArray(node.elements))
8849
+ traverse(node.elements);
8850
+ if (Array.isArray(node.events))
8851
+ traverse(node.events);
8852
+ };
8853
+ traverse(config2);
8854
+ return Object.keys(seen).filter((name) => seen[name] > 1);
8855
+ };
8806
8856
  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");
8857
+ var _a;
8858
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8810
8859
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8811
8860
  const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8861
+ const duplicates = findDuplicateNames(config2);
8862
+ if (duplicates.length > 0) {
8863
+ store2.setValidation("ValidateAndShow");
8864
+ store2.setNotify({
8865
+ Fail: true,
8866
+ FailMessage: `Duplicate names found: ${duplicates.join(", ")}`
8867
+ });
8868
+ return;
8869
+ }
8812
8870
  if (_.isEmpty(store2.ctx.core.errors)) {
8813
8871
  try {
8814
8872
  const saveReturn = await submitHandler(store2, service2, config2);
@@ -8823,6 +8881,7 @@ async function saveHandler(store2, service2, submitHandler) {
8823
8881
  const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8824
8882
  if (isSubmitted) {
8825
8883
  sessionStorage.removeItem("pageFormdata");
8884
+ sessionStorage.removeItem("scopeKey");
8826
8885
  store2.navigate(pageName || -1);
8827
8886
  store2.setNotify({
8828
8887
  SuccessMessage: "Submit Successfully",
@@ -8841,6 +8900,7 @@ function okHandler(store2) {
8841
8900
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8842
8901
  if (_.isEmpty(store2.ctx.core.errors)) {
8843
8902
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8903
+ initialiseScopeKey();
8844
8904
  store2.navigate(-1);
8845
8905
  store2.setNotify({
8846
8906
  SuccessMessage: "Save Successfully",
@@ -8884,7 +8944,6 @@ const sectionLabels = {
8884
8944
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8885
8945
  PopUp: ["Core", "Components", "Properties", "Style"],
8886
8946
  PopOver: ["Core", "Components", "Properties", "Style"],
8887
- PdfViewer: ["Core", "Components", "Properties", "Style"],
8888
8947
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8889
8948
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8890
8949
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -9043,6 +9102,15 @@ function refreshPage(type, store2) {
9043
9102
  }
9044
9103
  store2.setUiSchema(UiSchema);
9045
9104
  }
9105
+ const debouncedNameValidator = _.debounce((store2, newName, currentName) => {
9106
+ if (isNameDuplicate(newName, currentName)) {
9107
+ store2.setValidation("ValidateAndShow");
9108
+ store2.setNotify({
9109
+ Fail: true,
9110
+ FailMessage: `Name "${newName}" already exists. Please use a unique name.`
9111
+ });
9112
+ }
9113
+ }, 400);
9046
9114
  var Component = (store2, dynamicData2, submitHandler, service2) => {
9047
9115
  return {
9048
9116
  setPage: async function() {
@@ -9089,13 +9157,20 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9089
9157
  schema2.properties.pageName.path = pathArray;
9090
9158
  return schema2;
9091
9159
  },
9092
- okHandler: () => okHandler(store2),
9160
+ okHandler: () => {
9161
+ okHandler(store2);
9162
+ addToScopeKey(store2.ctx.core.data);
9163
+ },
9093
9164
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9094
9165
  onChange: function() {
9095
- var _a, _b, _c, _d;
9166
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9096
9167
  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
9168
  this.refreshPage((_d = store2 == null ? void 0 : store2.newData) == null ? void 0 : _d.type, store2);
9098
9169
  }
9170
+ 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) {
9171
+ const currentName = (_h = store2 == null ? void 0 : store2.formData) == null ? void 0 : _h.name;
9172
+ debouncedNameValidator(store2, store2.newData.name, currentName);
9173
+ }
9099
9174
  },
9100
9175
  editComponents: function() {
9101
9176
  var _a, _b, _c;
@@ -9105,6 +9180,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9105
9180
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9106
9181
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9107
9182
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9183
+ addToScopeKey(store2.ctx.core.data);
9108
9184
  if (path) {
9109
9185
  const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9110
9186
  const finalPath = `${path2}.elements[${rowId}]`;
@@ -9149,6 +9225,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9149
9225
  }
9150
9226
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9151
9227
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9228
+ addToScopeKey(store2.ctx.core.data);
9152
9229
  const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9153
9230
  store2.searchParams.set("path", finalPath);
9154
9231
  store2.setSearchParams(store2.searchParams);
@@ -9310,6 +9387,7 @@ var pageMaster = (funcParams) => {
9310
9387
  const schema2 = await this.getSchema();
9311
9388
  store2.setSchema(schema2);
9312
9389
  store2.setUiSchema(uiSchema);
9390
+ initialiseScopeKey();
9313
9391
  },
9314
9392
  getFormdata: async function() {
9315
9393
  var _a;
@@ -9338,6 +9416,7 @@ var pageMaster = (funcParams) => {
9338
9416
  },
9339
9417
  backHandler: () => {
9340
9418
  sessionStorage.removeItem("pageFormdata");
9419
+ sessionStorage.removeItem("scopeKey");
9341
9420
  store2.navigate("/PageMasterRecords");
9342
9421
  },
9343
9422
  onAddClickHandler: function() {
@@ -9349,6 +9428,7 @@ var pageMaster = (funcParams) => {
9349
9428
  store2.formData.elements = [];
9350
9429
  }
9351
9430
  const response = saveFormdataInSessionStorage(store2.ctx.core.data);
9431
+ addToScopeKey(store2.ctx.core.data);
9352
9432
  if (id) {
9353
9433
  store2.navigate(
9354
9434
  `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
@@ -9363,6 +9443,7 @@ var pageMaster = (funcParams) => {
9363
9443
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
9364
9444
  Delete_Components: async function() {
9365
9445
  await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
9446
+ addToScopeKey(store2.ctx.core.data);
9366
9447
  store2.updateDialog("popUpPageMasterComponent");
9367
9448
  },
9368
9449
  eventAddHandler: function() {
@@ -9374,6 +9455,7 @@ var pageMaster = (funcParams) => {
9374
9455
  store2.formData.events = [];
9375
9456
  }
9376
9457
  saveFormdataInSessionStorage(store2.ctx.core.data);
9458
+ addToScopeKey(store2.ctx.core.data);
9377
9459
  const finalPath = `events[${store2.formData.events.length}]`;
9378
9460
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9379
9461
  },
@@ -9384,6 +9466,7 @@ var pageMaster = (funcParams) => {
9384
9466
  const rowId = dynamicData2.path.split(".")[1];
9385
9467
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9386
9468
  saveFormdataInSessionStorage(store2.ctx.core.data);
9469
+ initialiseScopeKey();
9387
9470
  const finalPath = `events[${rowId}]`;
9388
9471
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9389
9472
  },
@@ -9468,7 +9551,8 @@ const EventSchema = {
9468
9551
  { title: "Row Movement", const: "onRowMovement" },
9469
9552
  { title: "Download", const: "onDownload" },
9470
9553
  { title: "Fail", const: "Fail" },
9471
- { title: "Key Down", const: "onKeyDown" }
9554
+ { title: "Key Down", const: "onKeyDown" },
9555
+ { title: "Set Style", const: "setStyle" }
9472
9556
  ]
9473
9557
  },
9474
9558
  Handler: {
@@ -10854,6 +10938,25 @@ var service = (funcParams) => {
10854
10938
  funcParams.store.setUiSchema(uiSchema);
10855
10939
  });
10856
10940
  },
10941
+ getStyle: () => {
10942
+ var _a, _b, _c, _d, _e;
10943
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10944
+ if (cloneEventGroup.setStyle) {
10945
+ let finalResponse = {};
10946
+ 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]);
10947
+ if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10948
+ for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _e[path]) {
10949
+ finalResponse = executeEvents({
10950
+ ...executeEventsParameters,
10951
+ config: eventConfig,
10952
+ componentName: path
10953
+ });
10954
+ }
10955
+ return finalResponse;
10956
+ }
10957
+ }
10958
+ return {};
10959
+ },
10857
10960
  onCellRenderer: (cellParams) => {
10858
10961
  var _a, _b, _c, _d, _e;
10859
10962
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -11232,6 +11335,21 @@ const AreaBarGraph = {
11232
11335
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11233
11336
  }
11234
11337
  };
11338
+ const StackBarLineG = {
11339
+ type: "Control",
11340
+ scope: "#/properties/graph",
11341
+ options: {
11342
+ widget: "Graph"
11343
+ },
11344
+ config: {
11345
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11346
+ main: {
11347
+ type: "StackBarLineGraph",
11348
+ legendLabels: null
11349
+ },
11350
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11351
+ }
11352
+ };
11235
11353
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11236
11354
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11237
11355
  horizontalBarGraph.scope = componentScope2;
@@ -11516,6 +11634,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11516
11634
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11517
11635
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11518
11636
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11637
+ wrapper.config.main.icon = config2.iconUrl;
11519
11638
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11520
11639
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11521
11640
  wrapper.config.main.spacing = Number(config2.spacing);
@@ -12160,7 +12279,6 @@ const DateTime = {
12160
12279
  const buildDate = (config2, componentScope2) => {
12161
12280
  const dateInputField = _.cloneDeep(DateInputField);
12162
12281
  dateInputField.config.main.label = config2.label;
12163
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12164
12282
  dateInputField.scope = componentScope2;
12165
12283
  if (config2.layout) {
12166
12284
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12182,7 +12300,6 @@ const buildDate = (config2, componentScope2) => {
12182
12300
  const buildDateTime = (config2, componentScope2) => {
12183
12301
  const dateTimeInputField = _.cloneDeep(DateTime);
12184
12302
  dateTimeInputField.config.main.label = config2.label;
12185
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12186
12303
  dateTimeInputField.scope = componentScope2;
12187
12304
  if (config2.layout) {
12188
12305
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -13001,8 +13118,8 @@ const buildAreaGraph = (config2, componentScope2) => {
13001
13118
  if (config2.xAxisFormatType) {
13002
13119
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13003
13120
  }
13004
- if (config2.xAxisTickCount) {
13005
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13121
+ if (config2.xAxisLabelMinWidth) {
13122
+ AreaGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13006
13123
  }
13007
13124
  if (config2.yAxisTickCount) {
13008
13125
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
@@ -13029,6 +13146,65 @@ const buildAreaGraph = (config2, componentScope2) => {
13029
13146
  }
13030
13147
  return AreaGraph;
13031
13148
  };
13149
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13150
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13151
+ StackBarLineGraph.scope = componentScope2;
13152
+ if (config2.layout) {
13153
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13154
+ }
13155
+ StackBarLineGraph.config.main.type = config2.graphType;
13156
+ StackBarLineGraph.scope = componentScope2;
13157
+ StackBarLineGraph.config.main.header = config2.heading;
13158
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13159
+ if (config2.legendHide) {
13160
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13161
+ }
13162
+ if (config2.bottomAxisAngle) {
13163
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13164
+ }
13165
+ if (config2.legendLabels) {
13166
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13167
+ }
13168
+ if (config2.legendDirection) {
13169
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13170
+ }
13171
+ if (config2.height) {
13172
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13173
+ }
13174
+ if (config2.pieArcColors) {
13175
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13176
+ }
13177
+ if (config2.xAxisLabelMinWidth) {
13178
+ StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
13179
+ }
13180
+ if (config2.yAxisTickCount) {
13181
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13182
+ }
13183
+ if (config2.xAxisValue) {
13184
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13185
+ }
13186
+ if (config2.xAxisType) {
13187
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13188
+ }
13189
+ if (config2.bottomLabel) {
13190
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13191
+ }
13192
+ if (config2.leftLabel) {
13193
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13194
+ }
13195
+ if (config2.rightLabel) {
13196
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13197
+ }
13198
+ if (config2.disableLeftLabel) {
13199
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13200
+ }
13201
+ if (config2.leftMargin) {
13202
+ StackBarLineGraph.config.style.labelStyle.margin = {
13203
+ left: config2.leftMargin
13204
+ };
13205
+ }
13206
+ return StackBarLineGraph;
13207
+ };
13032
13208
  const cameraUiSchema = {
13033
13209
  type: "Control",
13034
13210
  scope: "#/properties/camera",
@@ -13182,40 +13358,6 @@ const buildOTP_Input = (config2, componentScope2) => {
13182
13358
  OTP.config.main.length = +config2.length;
13183
13359
  return OTP;
13184
13360
  };
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
13361
  let schema = {
13220
13362
  type: "object",
13221
13363
  properties: {},
@@ -13398,6 +13540,9 @@ const buildUiSchema = (config2, store2) => {
13398
13540
  case "AreaGraph":
13399
13541
  elements = buildAreaGraph(config2, componentScope2);
13400
13542
  break;
13543
+ case "StackBarLineGraph":
13544
+ elements = buildStackBarLineGraph(config2, componentScope2);
13545
+ break;
13401
13546
  default:
13402
13547
  elements = buildStackbarGraph(config2, componentScope2);
13403
13548
  break;
@@ -13446,9 +13591,6 @@ const buildUiSchema = (config2, store2) => {
13446
13591
  case "Camera":
13447
13592
  elements = buildCamera(config2, componentScope2);
13448
13593
  break;
13449
- case "PdfViewer":
13450
- elements = buildPdfViewer(config2, componentScope2);
13451
- break;
13452
13594
  default:
13453
13595
  schema = {
13454
13596
  type: "object",