impaktapps-ui-builder 1.0.312 → 1.0.321

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 (33) hide show
  1. package/dist/impaktapps-ui-builder.es.js +233 -148
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +7 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  10. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +1 -1
  11. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  12. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -7
  13. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
  14. package/package.json +1 -1
  15. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +3 -3
  16. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
  17. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  18. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  19. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  20. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -0
  21. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
  22. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +30 -21
  23. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  24. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
  25. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  26. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  27. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +13 -6
  28. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
  29. package/src/impaktapps-ui-builder/builder/services/component.ts +43 -38
  30. package/src/impaktapps-ui-builder/builder/services/event.ts +2 -8
  31. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -7
  32. package/src/impaktapps-ui-builder/builder/services/utils.ts +6 -79
  33. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -3
@@ -6272,7 +6272,7 @@ const ComponentSchema = {
6272
6272
  { title: "Rank", const: "Rank" },
6273
6273
  { title: "Rank Card", const: "RankCard" },
6274
6274
  { title: "Metric Card", const: "MetricCard" },
6275
- { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6275
+ { title: "Bow and Arrow", const: "RunnerBoyProgressBar" },
6276
6276
  { title: "Table", const: "Table" },
6277
6277
  { title: "Tabs", const: "TabSection" },
6278
6278
  { title: "Text", const: "Text" },
@@ -6280,7 +6280,8 @@ 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" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "PDF", const: "PdfViewer" }
6284
6285
  ]
6285
6286
  },
6286
6287
  elementType: {
@@ -6656,7 +6657,8 @@ const ComponentSchema = {
6656
6657
  title: "Stack Horizontal Bar Graph",
6657
6658
  const: "HorizontalStackBarGraph"
6658
6659
  },
6659
- { title: "Area Graph", const: "AreaGraph" }
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6660
6662
  ]
6661
6663
  },
6662
6664
  iconName: {
@@ -6709,7 +6711,12 @@ const ComponentSchema = {
6709
6711
  { title: "Clone Icon", const: "CloneIcon" },
6710
6712
  { title: "Detail Icon", const: "DetailIcon" },
6711
6713
  { title: "Report View Icon", const: "ReportViewIcon" },
6712
- { title: "Payout", const: "Payout" }
6714
+ { title: "Payout", const: "Payout" },
6715
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6716
+ { title: "Territory Add", const: "TerritoryAdd" },
6717
+ { title: "Territory Edit", const: "TerritoryEdit" },
6718
+ { title: "Territory Delete", const: "TerritoryDelete" },
6719
+ { title: "Git Compare", const: "GitCompare" }
6713
6720
  ]
6714
6721
  },
6715
6722
  color: {
@@ -7815,7 +7822,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7815
7822
  ]
7816
7823
  };
7817
7824
  };
7818
- const getArrayControlMultiField = (parentScope, heading, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
7825
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7819
7826
  return {
7820
7827
  type: "Control",
7821
7828
  scope: `#/properties/${parentScope}`,
@@ -7825,7 +7832,7 @@ const getArrayControlMultiField = (parentScope, heading, firstFieldScope, second
7825
7832
  config: {
7826
7833
  layout: 12,
7827
7834
  main: {
7828
- label: heading
7835
+ label: arrayLabel
7829
7836
  },
7830
7837
  style: {
7831
7838
  marginLeft: "-24px",
@@ -8060,7 +8067,7 @@ const buildPropertiesSection = function(type) {
8060
8067
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
8061
8068
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
8062
8069
  getInputField("maxWidth", "Max. Width"),
8063
- emptyBox$1("PopUpEmpty", { xs: 0, sm: 0, md: 0, lg: 3 })
8070
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
8064
8071
  ];
8065
8072
  break;
8066
8073
  case "PopOver":
@@ -8108,7 +8115,7 @@ const buildPropertiesSection = function(type) {
8108
8115
  uiSchema.elements = [
8109
8116
  getInputField("rank", "Rank"),
8110
8117
  getInputField("height", "Height"),
8111
- emptyBox$1("RankCardEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8118
+ emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
8112
8119
  ];
8113
8120
  break;
8114
8121
  case "LeaderBoard":
@@ -8138,7 +8145,6 @@ const buildPropertiesSection = function(type) {
8138
8145
  getInputField("bottomLabel_3", "Third BottomLabel"),
8139
8146
  getInputField("size", "Size"),
8140
8147
  getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8141
- emptyBox$1("ProgressBarCardEmpty", { xs: 6, sm: 0, md: 8, lg: 6 }),
8142
8148
  getArrayControl("pieArcColors", "color", "Color")
8143
8149
  ];
8144
8150
  break;
@@ -8159,7 +8165,7 @@ const buildPropertiesSection = function(type) {
8159
8165
  getInputField("description", "Description"),
8160
8166
  getSelectField("growthRate", "Growth Rate"),
8161
8167
  getInputField("color", "Card Color"),
8162
- emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8168
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8163
8169
  ];
8164
8170
  break;
8165
8171
  case "Button":
@@ -8177,7 +8183,7 @@ const buildPropertiesSection = function(type) {
8177
8183
  getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8178
8184
  getInputField("size", "Size"),
8179
8185
  getSelectField("color", "Color"),
8180
- emptyBox$1("ButtonEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8186
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8181
8187
  ];
8182
8188
  break;
8183
8189
  case "Box":
@@ -8193,22 +8199,24 @@ const buildPropertiesSection = function(type) {
8193
8199
  getInputField("subHeader", "Sub Header"),
8194
8200
  getSelectField("graphType", "Graph Type"),
8195
8201
  getInputField("leftLabel", "Left Label"),
8202
+ getInputField("rightLabel", "Right Label"),
8196
8203
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8197
8204
  getInputField("bottomLabel", "Bottom Label"),
8198
8205
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8199
8206
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8200
8207
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8201
- getInputField("yAxisValue", "Y-AxisValue"),
8202
- getInputField("xAxisValue", "X-AxisValue"),
8208
+ getInputField("yAxisValue", "Y-Axis Key"),
8209
+ getInputField("xAxisValue", "X-Axis Key"),
8203
8210
  getSelectField("xAxisType", "X-AxisType"),
8204
8211
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8205
8212
  getInputField("leftMargin", "Left Margin"),
8206
- getInputField("xAxisTickCount", "X Axis TickCount"),
8207
8213
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8214
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8208
8215
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8209
- emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8210
- getArrayControlMultiField("legendLabels", "Legend Labels", "key", "value", "Key", "Label"),
8211
- getArrayControlMultiField("pieArcColors", "Colors", "key", "value", "Key", "Color")
8216
+ getInputField("growthRateKey", "Growth Rate Key"),
8217
+ getInputField("tooltipUnit", "Tooltip Unit"),
8218
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8219
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8212
8220
  ];
8213
8221
  break;
8214
8222
  case "WrapperSection":
@@ -8220,7 +8228,9 @@ const buildPropertiesSection = function(type) {
8220
8228
  getInputField("rowSpacing", "Row Spacing"),
8221
8229
  getInputField("columnSpacing", "Column Spacing"),
8222
8230
  getInputField("spacing", "Spacing"),
8223
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8231
+ getInputField("iconUrl", "Icon Url"),
8232
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8233
+ emptyBox$1("WrapperSectionEmpty2")
8224
8234
  ];
8225
8235
  break;
8226
8236
  case "TabSection":
@@ -8228,7 +8238,7 @@ const buildPropertiesSection = function(type) {
8228
8238
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
8229
8239
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
8230
8240
  emptyBox$1("TabEmpty"),
8231
- getArrayControlMultiField("sectionLabels", "Display Element", "label", "icon", "Label", "Icon")
8241
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
8232
8242
  ];
8233
8243
  break;
8234
8244
  case "Table":
@@ -8257,7 +8267,8 @@ const buildPropertiesSection = function(type) {
8257
8267
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8258
8268
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8259
8269
  getInputField("defaultColumnSize", "Default Column Size"),
8260
- emptyBox$1("LazyLoadingTableEmpty3", { xs: 0, sm: 0, md: 4, lg: 6 })
8270
+ ,
8271
+ emptyBox$1("LazyLoadingTableEmpty3")
8261
8272
  ]),
8262
8273
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
8263
8274
  sizeHolder,
@@ -8291,12 +8302,18 @@ const buildPropertiesSection = function(type) {
8291
8302
  getSelectField("toolTipPosition", "Tooltip Position")
8292
8303
  ];
8293
8304
  break;
8305
+ case "PdfViewer":
8306
+ uiSchema.elements = [
8307
+ getInputField("scale", "Zoom"),
8308
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8309
+ ];
8310
+ break;
8294
8311
  case "Date":
8295
8312
  uiSchema.elements = [
8296
8313
  getSelectField("variant", "Variant"),
8297
8314
  getInputField("toolTip", "Tooltip"),
8298
8315
  getSelectField("toolTipPosition", "Tooltip Position"),
8299
- emptyBox$1("dateEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
8316
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8300
8317
  ];
8301
8318
  break;
8302
8319
  case "DateTime":
@@ -8304,7 +8321,7 @@ const buildPropertiesSection = function(type) {
8304
8321
  getSelectField("variant", "Variant"),
8305
8322
  getInputField("toolTip", "Tooltip"),
8306
8323
  getSelectField("toolTipPosition", "Tooltip Position"),
8307
- emptyBox$1("dateTimeEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
8324
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8308
8325
  ];
8309
8326
  break;
8310
8327
  case "Thought":
@@ -8334,7 +8351,7 @@ const buildPropertiesSection = function(type) {
8334
8351
  getInputField("noFileAvailableMessage", "No Found Message"),
8335
8352
  getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8336
8353
  getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8337
- emptyBox$1("fileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
8354
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8338
8355
  ];
8339
8356
  break;
8340
8357
  case "Camera":
@@ -8383,13 +8400,13 @@ const StyleSection = {
8383
8400
  }
8384
8401
  ]
8385
8402
  };
8386
- const TableSection = (theme) => {
8403
+ const TableSection = (theme, scopeName = "elements") => {
8387
8404
  const uiSchema = {
8388
8405
  type: "HorizontalLayout",
8389
8406
  elements: [
8390
8407
  {
8391
8408
  type: "Control",
8392
- scope: "#/properties/elements",
8409
+ scope: `#/properties/${scopeName}`,
8393
8410
  options: {
8394
8411
  widget: "Table"
8395
8412
  },
@@ -8400,7 +8417,7 @@ const TableSection = (theme) => {
8400
8417
  {
8401
8418
  widget: {
8402
8419
  type: "Control",
8403
- scope: "#/properties/New_Record",
8420
+ scope: `#/properties/${scopeName}_New_Record`,
8404
8421
  options: {
8405
8422
  widget: "IconButton"
8406
8423
  },
@@ -8427,7 +8444,7 @@ const TableSection = (theme) => {
8427
8444
  {
8428
8445
  widget: {
8429
8446
  type: "Control",
8430
- scope: "#/properties/Paste_Component",
8447
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8431
8448
  options: {
8432
8449
  widget: "IconButton"
8433
8450
  },
@@ -8492,7 +8509,7 @@ const TableSection = (theme) => {
8492
8509
  },
8493
8510
  {
8494
8511
  type: "Control",
8495
- scope: "#/properties/Copy_Component",
8512
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8496
8513
  options: {
8497
8514
  widget: "Button"
8498
8515
  },
@@ -8685,6 +8702,10 @@ var buildConfig = (FormData) => {
8685
8702
  if (formData.events) {
8686
8703
  delete formData.events;
8687
8704
  }
8705
+ if (formData.tabLabelElements) {
8706
+ component.tabLabelElements = formData.tabLabelElements || [];
8707
+ delete formData.tabLabelElements;
8708
+ }
8688
8709
  component = { ...formData, ...component };
8689
8710
  return component;
8690
8711
  };
@@ -8785,75 +8806,12 @@ const getFormdataFromSessionStorage = (path) => {
8785
8806
  }
8786
8807
  return returnValue || pageFormdata;
8787
8808
  };
8788
- const collectScopeNames = (config2, scopeMap = {}) => {
8789
- if (!config2 || typeof config2 !== "object")
8790
- return scopeMap;
8791
- if (Array.isArray(config2)) {
8792
- config2.forEach((item) => collectScopeNames(item, scopeMap));
8793
- return scopeMap;
8794
- }
8795
- if (config2.name) {
8796
- scopeMap[config2.name] = true;
8797
- }
8798
- if (Array.isArray(config2.elements)) {
8799
- collectScopeNames(config2.elements, scopeMap);
8800
- }
8801
- return scopeMap;
8802
- };
8803
- const initialiseScopeKey = () => {
8804
- const config2 = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
8805
- const names = config2 ? collectScopeNames(config2) : {};
8806
- sessionStorage.setItem("scopeKey", JSON.stringify(names));
8807
- };
8808
- const getScopeKey = () => {
8809
- const raw = sessionStorage.getItem("scopeKey");
8810
- return raw ? JSON.parse(raw) : {};
8811
- };
8812
- const addToScopeKey = (name) => {
8813
- if (!name)
8814
- return;
8815
- const scopeKey = getScopeKey();
8816
- scopeKey[name] = true;
8817
- sessionStorage.setItem("scopeKey", JSON.stringify(scopeKey));
8818
- };
8819
- const doesScopeNameExist = (name) => {
8820
- if (!name)
8821
- return false;
8822
- const scopeKey = getScopeKey();
8823
- return !!scopeKey[name];
8824
- };
8825
- const findDuplicateScopeNames = (config2) => {
8826
- const scopeNameCount = {};
8827
- const traverse = (currentNode) => {
8828
- if (!currentNode || typeof currentNode !== "object")
8829
- return;
8830
- if (Array.isArray(currentNode)) {
8831
- currentNode.forEach(traverse);
8832
- return;
8833
- }
8834
- if (currentNode.name) {
8835
- scopeNameCount[currentNode.name] = (scopeNameCount[currentNode.name] || 0) + 1;
8836
- }
8837
- if (Array.isArray(currentNode.elements))
8838
- traverse(currentNode.elements);
8839
- };
8840
- traverse(config2);
8841
- return Object.keys(scopeNameCount).filter((name) => scopeNameCount[name] > 1);
8842
- };
8843
8809
  async function saveHandler(store2, service2, submitHandler) {
8844
- var _a;
8845
- const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8810
+ var _a, _b;
8811
+ (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8812
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8846
8813
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8847
8814
  const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8848
- const duplicates = findDuplicateScopeNames(config2);
8849
- if (duplicates.length > 0) {
8850
- store2.setValidation("ValidateAndShow");
8851
- store2.setNotify({
8852
- Fail: true,
8853
- FailMessage: `Duplicate names found: ${duplicates.join(", ")}`
8854
- });
8855
- return;
8856
- }
8857
8815
  if (_.isEmpty(store2.ctx.core.errors)) {
8858
8816
  try {
8859
8817
  const saveReturn = await submitHandler(store2, service2, config2);
@@ -8868,7 +8826,6 @@ async function saveHandler(store2, service2, submitHandler) {
8868
8826
  const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8869
8827
  if (isSubmitted) {
8870
8828
  sessionStorage.removeItem("pageFormdata");
8871
- sessionStorage.removeItem("scopeKey");
8872
8829
  store2.navigate(pageName || -1);
8873
8830
  store2.setNotify({
8874
8831
  SuccessMessage: "Submit Successfully",
@@ -8887,7 +8844,6 @@ function okHandler(store2) {
8887
8844
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8888
8845
  if (_.isEmpty(store2.ctx.core.errors)) {
8889
8846
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8890
- addToScopeKey(store2.ctx.core.data.name);
8891
8847
  store2.navigate(-1);
8892
8848
  store2.setNotify({
8893
8849
  SuccessMessage: "Save Successfully",
@@ -8908,7 +8864,7 @@ const sectionLabels = {
8908
8864
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8909
8865
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8910
8866
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8911
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8867
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8912
8868
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8913
8869
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8914
8870
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8929,8 +8885,9 @@ const sectionLabels = {
8929
8885
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8930
8886
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8931
8887
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8932
- PopUp: ["Core", "Components", "Properties", "Style"],
8888
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8933
8889
  PopOver: ["Core", "Components", "Properties", "Style"],
8890
+ PdfViewer: ["Core", "Properties", "Style"],
8934
8891
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8935
8892
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8936
8893
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8944,7 +8901,7 @@ const sectionLabels = {
8944
8901
  Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8945
8902
  OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8946
8903
  };
8947
- function refreshPage(type, store2, formdata) {
8904
+ function refreshPage(type, store2) {
8948
8905
  var _a, _b;
8949
8906
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8950
8907
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
@@ -8955,13 +8912,11 @@ function refreshPage(type, store2, formdata) {
8955
8912
  Style: StyleSection,
8956
8913
  Events: EventSection(store2.theme.myTheme),
8957
8914
  Components: TableSection(store2.theme.myTheme),
8915
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8958
8916
  Properties: buildPropertiesSection(type),
8959
8917
  Validation: ValidationSection
8960
8918
  };
8961
8919
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
8962
- if (!(formdata == null ? void 0 : formdata.style)) {
8963
- store2.setFormdata((prev) => ({ ...prev, style: "{\n}" }));
8964
- }
8965
8920
  UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
8966
8921
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8967
8922
  }
@@ -9092,15 +9047,6 @@ function refreshPage(type, store2, formdata) {
9092
9047
  }
9093
9048
  store2.setUiSchema(UiSchema);
9094
9049
  }
9095
- const debouncedScopeNameValidator = _.debounce((store2, newName) => {
9096
- if (doesScopeNameExist(newName)) {
9097
- store2.setValidation("ValidateAndShow");
9098
- store2.setNotify({
9099
- Fail: true,
9100
- FailMessage: `Name "${newName}" already exists. Please use a unique name.`
9101
- });
9102
- }
9103
- }, 400);
9104
9050
  var Component = (store2, dynamicData2, submitHandler, service2) => {
9105
9051
  return {
9106
9052
  setPage: async function() {
@@ -9108,7 +9054,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9108
9054
  store2.setFormdata(formdata);
9109
9055
  const schema2 = this.getSchema();
9110
9056
  store2.setSchema(schema2);
9111
- this.refreshPage(formdata == null ? void 0 : formdata.type, store2, formdata);
9057
+ this.refreshPage(formdata == null ? void 0 : formdata.type, store2);
9112
9058
  },
9113
9059
  refreshPage,
9114
9060
  getFormdata: function() {
@@ -9147,18 +9093,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9147
9093
  schema2.properties.pageName.path = pathArray;
9148
9094
  return schema2;
9149
9095
  },
9150
- okHandler: () => {
9151
- okHandler(store2);
9152
- },
9096
+ okHandler: () => okHandler(store2),
9153
9097
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9154
9098
  onChange: function() {
9155
- var _a, _b, _c, _d, _e, _f, _g;
9099
+ var _a, _b, _c, _d;
9156
9100
  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) {
9157
9101
  this.refreshPage((_d = store2 == null ? void 0 : store2.newData) == null ? void 0 : _d.type, store2);
9158
9102
  }
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
- debouncedScopeNameValidator(store2, store2.newData.name);
9161
- }
9162
9103
  },
9163
9104
  editComponents: function() {
9164
9105
  var _a, _b, _c;
@@ -9168,10 +9109,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9168
9109
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9169
9110
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9170
9111
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9171
- addToScopeKey(store2.ctx.core.data.name);
9172
9112
  if (path) {
9173
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9174
- const finalPath = `${path2}.elements[${rowId}]`;
9113
+ let finalPath = `${path}`;
9114
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9115
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9116
+ } else {
9117
+ finalPath = `${finalPath}.elements[${rowId}]`;
9118
+ }
9175
9119
  store2.searchParams.set("path", finalPath);
9176
9120
  store2.setSearchParams(store2.searchParams);
9177
9121
  this.setPage();
@@ -9183,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9183
9127
  var _a;
9184
9128
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9185
9129
  const rowId = sessionStorage.getItem("rowId");
9186
- store2.formData.elements.splice(rowId, 1);
9130
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9131
+ if (isTabLabelElements) {
9132
+ store2.formData.tabLabelElements.splice(rowId, 1);
9133
+ } else {
9134
+ store2.formData.elements.splice(rowId, 1);
9135
+ }
9187
9136
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9188
9137
  const data = path ? _.get(response, path) : response;
9189
9138
  store2.setFormdata(data);
@@ -9191,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9191
9140
  store2.updateDialog("popUpComponentSection");
9192
9141
  }
9193
9142
  sessionStorage.removeItem("rowId");
9143
+ sessionStorage.removeItem("isTabLabelElements");
9194
9144
  },
9195
9145
  deleteEvent: function(shouldUpdateDialog = true) {
9196
9146
  var _a;
@@ -9211,10 +9161,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9211
9161
  if (!Array.isArray(store2.formData.elements)) {
9212
9162
  store2.formData.elements = [];
9213
9163
  }
9164
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9165
+ store2.formData.tabLabelElements = [];
9166
+ }
9214
9167
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9215
9168
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9216
- addToScopeKey(store2.ctx.core.data.name);
9217
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9169
+ let finalPath = `${path}`;
9170
+ if (dynamicData2.path.startsWith("tabLabel")) {
9171
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9172
+ } else {
9173
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9174
+ }
9218
9175
  store2.searchParams.set("path", finalPath);
9219
9176
  store2.setSearchParams(store2.searchParams);
9220
9177
  this.setPage();
@@ -9249,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9249
9206
  deletePopUpComponent: function() {
9250
9207
  const rowId = dynamicData2.path.split(".")[1];
9251
9208
  sessionStorage.setItem("rowId", rowId);
9209
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9252
9210
  store2.updateDialog("popUpComponentSection");
9253
9211
  },
9254
9212
  deletePopUpEvent: function() {
@@ -9295,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9295
9253
  if (!Array.isArray(store2.formData.events)) {
9296
9254
  store2.formData.events = [];
9297
9255
  }
9256
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9257
+ store2.formData.tabLabelElements = [];
9258
+ }
9298
9259
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9299
9260
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9300
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9261
+ const currentLength = {
9262
+ "TabsComponent": formData.tabLabelElements.length,
9263
+ "Component": formData.elements.length,
9264
+ "Events": formData.events.length
9265
+ };
9266
+ const insertElementIndex = currentLength[elementType] || 0;
9301
9267
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9302
9268
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9303
9269
  const notificationMessages = {
@@ -9332,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9332
9298
  if (elementType === "Component") {
9333
9299
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9334
9300
  }
9301
+ if (elementType === "TabsComponent") {
9302
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9303
+ }
9335
9304
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9336
9305
  },
9337
9306
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -9375,7 +9344,6 @@ var pageMaster = (funcParams) => {
9375
9344
  const schema2 = await this.getSchema();
9376
9345
  store2.setSchema(schema2);
9377
9346
  store2.setUiSchema(uiSchema);
9378
- initialiseScopeKey();
9379
9347
  },
9380
9348
  getFormdata: async function() {
9381
9349
  var _a;
@@ -9404,7 +9372,6 @@ var pageMaster = (funcParams) => {
9404
9372
  },
9405
9373
  backHandler: () => {
9406
9374
  sessionStorage.removeItem("pageFormdata");
9407
- sessionStorage.removeItem("scopeKey");
9408
9375
  store2.navigate("/PageMasterRecords");
9409
9376
  },
9410
9377
  onAddClickHandler: function() {
@@ -9416,7 +9383,6 @@ var pageMaster = (funcParams) => {
9416
9383
  store2.formData.elements = [];
9417
9384
  }
9418
9385
  const response = saveFormdataInSessionStorage(store2.ctx.core.data);
9419
- addToScopeKey(store2.ctx.core.data.name);
9420
9386
  if (id) {
9421
9387
  store2.navigate(
9422
9388
  `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
@@ -9442,7 +9408,6 @@ var pageMaster = (funcParams) => {
9442
9408
  store2.formData.events = [];
9443
9409
  }
9444
9410
  saveFormdataInSessionStorage(store2.ctx.core.data);
9445
- addToScopeKey(store2.ctx.core.data.name);
9446
9411
  const finalPath = `events[${store2.formData.events.length}]`;
9447
9412
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9448
9413
  },
@@ -9453,7 +9418,6 @@ var pageMaster = (funcParams) => {
9453
9418
  const rowId = dynamicData2.path.split(".")[1];
9454
9419
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9455
9420
  saveFormdataInSessionStorage(store2.ctx.core.data);
9456
- addToScopeKey(store2.ctx.core.data.name);
9457
9421
  const finalPath = `events[${rowId}]`;
9458
9422
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
9459
9423
  },
@@ -9538,6 +9502,7 @@ const EventSchema = {
9538
9502
  { title: "Row Movement", const: "onRowMovement" },
9539
9503
  { title: "Download", const: "onDownload" },
9540
9504
  { title: "Fail", const: "Fail" },
9505
+ { title: "onClose", const: "onClose" },
9541
9506
  { title: "Key Down", const: "onKeyDown" },
9542
9507
  { title: "Set Style", const: "setStyle" }
9543
9508
  ]
@@ -10269,9 +10234,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10269
10234
  const schema2 = await this.getSchema();
10270
10235
  console.log("SettingSchema>>", schema2);
10271
10236
  store2.setSchema(schema2);
10272
- this.refreshPage(formdata.Handler, store2, formdata);
10237
+ this.refreshPage(formdata.Handler, store2);
10273
10238
  },
10274
- refreshPage: (handlerType, store22, formdata) => {
10239
+ refreshPage: (handlerType, store22) => {
10275
10240
  var _a, _b, _c;
10276
10241
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
10277
10242
  const schema2 = _.cloneDeep(EventSchema);
@@ -10299,9 +10264,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10299
10264
  "Write Custom Code",
10300
10265
  false
10301
10266
  );
10302
- if (!(formdata == null ? void 0 : formdata.eventCode)) {
10303
- store22.setFormdata((prev) => ({ ...prev, eventCode: "async (store, dynamicData, user, parentEventOutput, service, componentName) => {\n\n\n}" }));
10304
- }
10305
10267
  schema2.required = ["eventType", "Handler", "eventCode"];
10306
10268
  } else if (handlerType === "api") {
10307
10269
  uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
@@ -10311,9 +10273,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10311
10273
  lg: 6
10312
10274
  });
10313
10275
  uiSchema.elements[0].elements[0].elements[3] = APISection;
10314
- if (!(formdata == null ? void 0 : formdata.apiBody)) {
10315
- store22.setFormdata((prev) => ({ ...prev, apiBody: "(store, dynamicData, user, body, service) => {\n\n\n}" }));
10316
- }
10317
10276
  schema2.required = ["eventType", "Handler", "method", "path"];
10318
10277
  } else if (handlerType === "inBuiltFunction") {
10319
10278
  uiSchema.elements[0].elements[0].elements[2] = getSelectField(
@@ -10932,13 +10891,13 @@ var service = (funcParams) => {
10932
10891
  });
10933
10892
  },
10934
10893
  getStyle: () => {
10935
- var _a, _b, _c, _d, _e;
10894
+ var _a, _b, _c, _d;
10936
10895
  const cloneEventGroup = _.cloneDeep(eventGroups);
10937
10896
  if (cloneEventGroup.setStyle) {
10938
10897
  let finalResponse = {};
10939
- 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]);
10940
- if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10941
- for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _e[path]) {
10898
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10899
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10900
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10942
10901
  finalResponse = executeEvents({
10943
10902
  ...executeEventsParameters,
10944
10903
  config: eventConfig,
@@ -10979,6 +10938,9 @@ var service = (funcParams) => {
10979
10938
  onFileDelete: async function() {
10980
10939
  this.callHandler("onFileDelete");
10981
10940
  },
10941
+ onClose: function() {
10942
+ this.callHandler("onClose");
10943
+ },
10982
10944
  onMount: function() {
10983
10945
  this.callHandler("onMount");
10984
10946
  },
@@ -11029,8 +10991,8 @@ var service = (funcParams) => {
11029
10991
  return;
11030
10992
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
11031
10993
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
11032
- var _a, _b;
11033
- if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName] || ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) === void 0) {
10994
+ var _a;
10995
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
11034
10996
  return [];
11035
10997
  }
11036
10998
  return eventGroups.onChange[componentName].map(
@@ -11328,6 +11290,21 @@ const AreaBarGraph = {
11328
11290
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11329
11291
  }
11330
11292
  };
11293
+ const StackBarLineG = {
11294
+ type: "Control",
11295
+ scope: "#/properties/graph",
11296
+ options: {
11297
+ widget: "Graph"
11298
+ },
11299
+ config: {
11300
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11301
+ main: {
11302
+ type: "StackBarLineGraph",
11303
+ legendLabels: null
11304
+ },
11305
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11306
+ }
11307
+ };
11331
11308
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11332
11309
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11333
11310
  horizontalBarGraph.scope = componentScope2;
@@ -11612,6 +11589,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11612
11589
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11613
11590
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11614
11591
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11592
+ wrapper.config.main.icon = config2.iconUrl;
11615
11593
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11616
11594
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11617
11595
  wrapper.config.main.spacing = Number(config2.spacing);
@@ -12818,6 +12796,7 @@ const PopUP = {
12818
12796
  },
12819
12797
  main: {
12820
12798
  label: "PopUp",
12799
+ onClose: "onClose",
12821
12800
  fullScreen: false,
12822
12801
  fullWidth: false,
12823
12802
  maxWidth: false,
@@ -13095,12 +13074,12 @@ const buildAreaGraph = (config2, componentScope2) => {
13095
13074
  if (config2.xAxisFormatType) {
13096
13075
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13097
13076
  }
13098
- if (config2.xAxisTickCount) {
13099
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13100
- }
13101
13077
  if (config2.yAxisTickCount) {
13102
13078
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13103
13079
  }
13080
+ if (config2.xAxisTickCount) {
13081
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13082
+ }
13104
13083
  if (config2.xAxisValue) {
13105
13084
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13106
13085
  }
@@ -13123,6 +13102,71 @@ const buildAreaGraph = (config2, componentScope2) => {
13123
13102
  }
13124
13103
  return AreaGraph;
13125
13104
  };
13105
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13106
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13107
+ StackBarLineGraph.scope = componentScope2;
13108
+ if (config2.layout) {
13109
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13110
+ }
13111
+ StackBarLineGraph.config.main.type = config2.graphType;
13112
+ StackBarLineGraph.scope = componentScope2;
13113
+ StackBarLineGraph.config.main.header = config2.heading;
13114
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13115
+ if (config2.legendHide) {
13116
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13117
+ }
13118
+ if (config2.bottomAxisAngle) {
13119
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13120
+ }
13121
+ if (config2.legendLabels) {
13122
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13123
+ }
13124
+ if (config2.legendDirection) {
13125
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13126
+ }
13127
+ if (config2.height) {
13128
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13129
+ }
13130
+ if (config2.pieArcColors) {
13131
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13132
+ }
13133
+ if (config2.yAxisTickCount) {
13134
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13135
+ }
13136
+ if (config2.xAxisTickCount) {
13137
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13138
+ }
13139
+ if (config2.xAxisValue) {
13140
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13141
+ }
13142
+ if (config2.xAxisType) {
13143
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13144
+ }
13145
+ if (config2.bottomLabel) {
13146
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13147
+ }
13148
+ if (config2.leftLabel) {
13149
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13150
+ }
13151
+ if (config2.rightLabel) {
13152
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13153
+ }
13154
+ if (config2.disableLeftLabel) {
13155
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13156
+ }
13157
+ if (config2.growthRateKey) {
13158
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13159
+ }
13160
+ if (config2.tooltipUnit) {
13161
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13162
+ }
13163
+ if (config2.leftMargin) {
13164
+ StackBarLineGraph.config.style.labelStyle.margin = {
13165
+ left: config2.leftMargin
13166
+ };
13167
+ }
13168
+ return StackBarLineGraph;
13169
+ };
13126
13170
  const cameraUiSchema = {
13127
13171
  type: "Control",
13128
13172
  scope: "#/properties/camera",
@@ -13276,6 +13320,36 @@ const buildOTP_Input = (config2, componentScope2) => {
13276
13320
  OTP.config.main.length = +config2.length;
13277
13321
  return OTP;
13278
13322
  };
13323
+ var pdfViewer = {
13324
+ type: "Control",
13325
+ scope: "#/properties/pdfviewer",
13326
+ options: {
13327
+ widget: "PdfViewer"
13328
+ },
13329
+ config: {
13330
+ layout: {
13331
+ xs: 12,
13332
+ sm: 12,
13333
+ md: 12,
13334
+ lg: 12
13335
+ },
13336
+ main: {
13337
+ title: "PDF"
13338
+ }
13339
+ }
13340
+ };
13341
+ const buildPdfViewer = (config2, componentScope2) => {
13342
+ const PdfViewer = _.cloneDeep(pdfViewer);
13343
+ PdfViewer.scope = componentScope2;
13344
+ PdfViewer.config.main.scale = config2.scale;
13345
+ if (config2.layout) {
13346
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13347
+ }
13348
+ if (config2.style) {
13349
+ PdfViewer.config.style = JSON.parse(config2.style);
13350
+ }
13351
+ return PdfViewer;
13352
+ };
13279
13353
  let schema = {
13280
13354
  type: "object",
13281
13355
  properties: {},
@@ -13458,6 +13532,9 @@ const buildUiSchema = (config2, store2) => {
13458
13532
  case "AreaGraph":
13459
13533
  elements = buildAreaGraph(config2, componentScope2);
13460
13534
  break;
13535
+ case "StackBarLineGraph":
13536
+ elements = buildStackBarLineGraph(config2, componentScope2);
13537
+ break;
13461
13538
  default:
13462
13539
  elements = buildStackbarGraph(config2, componentScope2);
13463
13540
  break;
@@ -13506,6 +13583,9 @@ const buildUiSchema = (config2, store2) => {
13506
13583
  case "Camera":
13507
13584
  elements = buildCamera(config2, componentScope2);
13508
13585
  break;
13586
+ case "PdfViewer":
13587
+ elements = buildPdfViewer(config2, componentScope2);
13588
+ break;
13509
13589
  default:
13510
13590
  schema = {
13511
13591
  type: "object",
@@ -13609,6 +13689,11 @@ const buildUiSchema = (config2, store2) => {
13609
13689
  });
13610
13690
  }
13611
13691
  }
13692
+ if (config2.tabLabelElements) {
13693
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13694
+ return buildUiSchema(e, store2);
13695
+ });
13696
+ }
13612
13697
  return elements;
13613
13698
  };
13614
13699
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };