impaktapps-ui-builder 1.0.201 → 1.0.202

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 (80) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1103 -298
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -197
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -5
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  24. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  25. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
  26. package/package.json +1 -1
  27. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +22 -14
  28. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  29. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  30. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  31. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  32. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
  33. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
  34. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  35. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
  36. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  39. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  40. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  41. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +2 -2
  42. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  43. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  46. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  49. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  52. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  54. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -3
  55. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +37 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
  59. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  60. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +237 -22
  61. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  62. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -188
  63. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  64. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +22 -6
  65. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  66. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +1 -1
  67. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  68. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  69. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  70. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  71. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  72. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +89 -2
  73. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  74. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
  75. package/src/impaktapps-ui-builder/builder/services/component.ts +149 -107
  76. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  77. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
  78. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  79. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +6 -7
  80. package/src/impaktapps-ui-builder/runtime/services/service.ts +34 -5
@@ -96,6 +96,22 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/pageIconUrl",
102
+ options: {
103
+ widget: "InputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Page Icon URL",
109
+ options: [],
110
+ color: "secondary",
111
+ required: true
112
+ }
113
+ }
114
+ },
99
115
  {
100
116
  type: "Control",
101
117
  scope: "#/properties/hasBackIcon",
@@ -6223,8 +6239,11 @@ const ComponentSchema = {
6223
6239
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6224
6240
  { title: "Array", const: "Array" },
6225
6241
  { title: "Button", const: "Button" },
6242
+ { title: "ButtonGroup", const: "ButtonGroup" },
6226
6243
  { title: "Data Card", const: "card" },
6227
6244
  { title: "Check Box", const: "CheckBox" },
6245
+ { title: "Camera", const: "Camera" },
6246
+ { title: "Column Group", const: "ColumnGroup" },
6228
6247
  { title: "Container", const: "WrapperSection" },
6229
6248
  { title: "Tab Container", const: "HorizontalLayout" },
6230
6249
  { title: "Data Grid", const: "DataGrid" },
@@ -6239,8 +6258,10 @@ const ComponentSchema = {
6239
6258
  { title: "Label", const: "Box" },
6240
6259
  { title: "Leaderboard", const: "LeaderBoard" },
6241
6260
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6261
+ { title: "OTP_Input", const: "OTP_Input" },
6242
6262
  { title: "Pan Card Masked", const: "PanCardText" },
6243
6263
  { title: "Pop Up", const: "PopUp" },
6264
+ { title: "Pop Over", const: "PopOver" },
6244
6265
  { title: "Progress Bar", const: "ProgressBar" },
6245
6266
  { title: "Progress Bar Card", const: "ProgressBarCard" },
6246
6267
  { title: "Dropdown", const: "Select" },
@@ -6251,6 +6272,7 @@ const ComponentSchema = {
6251
6272
  { title: "Rank", const: "Rank" },
6252
6273
  { title: "Rank Card", const: "RankCard" },
6253
6274
  { title: "Metric Card", const: "MetricCard" },
6275
+ { title: "Hierarchy Chart", const: "HierarchyChart" },
6254
6276
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6255
6277
  { title: "Table", const: "Table" },
6256
6278
  { title: "Tabs", const: "TabSection" },
@@ -6259,8 +6281,8 @@ const ComponentSchema = {
6259
6281
  { title: "Timer", const: "Timer" },
6260
6282
  { title: "Upload", const: "UploadFile" },
6261
6283
  { title: "Tree ", const: "TreeMap" },
6262
- { title: "Column Group", const: "ColumnGroup" },
6263
- { title: "Thought of the day", const: "Thought" }
6284
+ { title: "Thought of the day", const: "Thought" },
6285
+ { title: "PDF", const: "PdfViewer" }
6264
6286
  ]
6265
6287
  },
6266
6288
  elementType: {
@@ -6314,6 +6336,49 @@ const ComponentSchema = {
6314
6336
  { title: "Standard", const: "standard" }
6315
6337
  ]
6316
6338
  },
6339
+ linkType: {
6340
+ oneOf: [
6341
+ { title: "Step", const: "step" },
6342
+ { title: "Diagonal", const: "diagonal" },
6343
+ { title: "Line", const: "line" }
6344
+ ]
6345
+ },
6346
+ positionVertical: {
6347
+ oneOf: [
6348
+ { title: "Top", const: "top" },
6349
+ { title: "Center", const: "center" },
6350
+ { title: "Bottom", const: "bottom" }
6351
+ ]
6352
+ },
6353
+ positionHorizontal: {
6354
+ oneOf: [
6355
+ { title: "Left", const: "left" },
6356
+ { title: "Center", const: "center" },
6357
+ { title: "Right", const: "right" }
6358
+ ]
6359
+ },
6360
+ contentVertical: {
6361
+ oneOf: [
6362
+ { title: "Top", const: "top" },
6363
+ { title: "Center", const: "center" },
6364
+ { title: "Bottom", const: "bottom" }
6365
+ ]
6366
+ },
6367
+ contentHorizontal: {
6368
+ oneOf: [
6369
+ { title: "Left", const: "left" },
6370
+ { title: "Center", const: "center" },
6371
+ { title: "Right", const: "right" }
6372
+ ]
6373
+ },
6374
+ toolTipPosition: {
6375
+ oneOf: [
6376
+ { title: "Top", const: "top" },
6377
+ { title: "Left", const: "left" },
6378
+ { title: "Right", const: "right" },
6379
+ { title: "Bottom", const: "bottom" }
6380
+ ]
6381
+ },
6317
6382
  growthRate: {
6318
6383
  oneOf: [
6319
6384
  { title: "Positive", const: "positive" },
@@ -6354,6 +6419,21 @@ const ComponentSchema = {
6354
6419
  { title: "Spacious", const: "spacious" }
6355
6420
  ]
6356
6421
  },
6422
+ xAxisFormatType: {
6423
+ type: "string",
6424
+ oneOf: [
6425
+ { title: "Date and Month", const: "Date and Month" },
6426
+ { title: "Month and Year", const: "Month and Year" }
6427
+ ]
6428
+ },
6429
+ xAxisType: {
6430
+ type: "string",
6431
+ oneOf: [
6432
+ { title: "Date", const: "date" },
6433
+ { title: "String", const: "string" },
6434
+ { title: "Number", const: "number" }
6435
+ ]
6436
+ },
6357
6437
  layout: {
6358
6438
  type: "array",
6359
6439
  items: {
@@ -6489,6 +6569,9 @@ const ComponentSchema = {
6489
6569
  items: {
6490
6570
  type: "object",
6491
6571
  properties: {
6572
+ key: {
6573
+ type: "string"
6574
+ },
6492
6575
  label: {
6493
6576
  type: "string"
6494
6577
  }
@@ -6500,12 +6583,26 @@ const ComponentSchema = {
6500
6583
  items: {
6501
6584
  type: "object",
6502
6585
  properties: {
6586
+ key: {
6587
+ type: "string"
6588
+ },
6503
6589
  label: {
6504
6590
  type: "string"
6505
6591
  }
6506
6592
  }
6507
6593
  }
6508
6594
  },
6595
+ tabIcons: {
6596
+ type: "array",
6597
+ items: {
6598
+ type: "object",
6599
+ properties: {
6600
+ url: {
6601
+ type: "string"
6602
+ }
6603
+ }
6604
+ }
6605
+ },
6509
6606
  InputFormatingAndMasking: {
6510
6607
  type: "array",
6511
6608
  items: {
@@ -6568,7 +6665,8 @@ const ComponentSchema = {
6568
6665
  title: "Stack Horizontal Bar Graph",
6569
6666
  const: "HorizontalStackBarGraph"
6570
6667
  },
6571
- { title: "Area Graph", const: "AreaGraph" }
6668
+ { title: "Area Graph", const: "AreaGraph" },
6669
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6572
6670
  ]
6573
6671
  },
6574
6672
  iconName: {
@@ -6604,6 +6702,7 @@ const ComponentSchema = {
6604
6702
  { title: "Drafts Icon", const: "DraftsIcon" },
6605
6703
  { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6606
6704
  { title: "Paste Icon", const: "PasteIcon" },
6705
+ { title: "Calendar", const: "Calendar" },
6607
6706
  { title: "Prev Icon", const: "PrevIcon" },
6608
6707
  { title: "Verified Icon", const: "VerifiedIcon" },
6609
6708
  { title: "Table Add Icon", const: "TableAddIcon" },
@@ -6620,7 +6719,12 @@ const ComponentSchema = {
6620
6719
  { title: "Clone Icon", const: "CloneIcon" },
6621
6720
  { title: "Detail Icon", const: "DetailIcon" },
6622
6721
  { title: "Report View Icon", const: "ReportViewIcon" },
6623
- { title: "Payout", const: "Payout" }
6722
+ { title: "Payout", const: "Payout" },
6723
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6724
+ { title: "Territory Add", const: "TerritoryAdd" },
6725
+ { title: "Territory Edit", const: "TerritoryEdit" },
6726
+ { title: "Territory Delete", const: "TerritoryDelete" },
6727
+ { title: "Git Compare", const: "GitCompare" }
6624
6728
  ]
6625
6729
  },
6626
6730
  color: {
@@ -7726,6 +7830,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7726
7830
  ]
7727
7831
  };
7728
7832
  };
7833
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7834
+ return {
7835
+ type: "Control",
7836
+ scope: `#/properties/${parentScope}`,
7837
+ options: {
7838
+ widget: "Array"
7839
+ },
7840
+ config: {
7841
+ layout: 12,
7842
+ main: {
7843
+ label: arrayLabel
7844
+ },
7845
+ style: {
7846
+ marginLeft: "-24px",
7847
+ marginBottom: "24px !important",
7848
+ labelStyle: {
7849
+ marginLeft: "24px"
7850
+ },
7851
+ detailsStyle: {
7852
+ marginLeft: "24px"
7853
+ }
7854
+ }
7855
+ },
7856
+ elements: [
7857
+ {
7858
+ type: "Control",
7859
+ scope: `#/properties/${firstFieldScope}`,
7860
+ options: {
7861
+ widget: "InputField"
7862
+ },
7863
+ config: {
7864
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7865
+ main: {
7866
+ label: firstFieldLabel || "Labels for Tab"
7867
+ }
7868
+ }
7869
+ },
7870
+ {
7871
+ type: "Control",
7872
+ scope: `#/properties/${secondFieldScope}`,
7873
+ options: {
7874
+ widget: "InputField"
7875
+ },
7876
+ config: {
7877
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7878
+ main: {
7879
+ label: secondFieldLabel || "Labels for Tab"
7880
+ }
7881
+ }
7882
+ },
7883
+ emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
7884
+ ]
7885
+ };
7886
+ };
7729
7887
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7730
7888
  sizeHolder.elements[1] = {
7731
7889
  type: "Control",
@@ -7848,6 +8006,14 @@ const BaseSection = {
7848
8006
  const buildPropertiesSection = function(type) {
7849
8007
  let uiSchema = _.cloneDeep(BaseSection);
7850
8008
  switch (type) {
8009
+ case "OTP_Input":
8010
+ uiSchema.elements = [
8011
+ getInputField("seperator", "Seperator"),
8012
+ getInputField("length", "OTP Length"),
8013
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
8014
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8015
+ ];
8016
+ break;
7851
8017
  case "Array":
7852
8018
  uiSchema.elements = [
7853
8019
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
@@ -7855,6 +8021,10 @@ const buildPropertiesSection = function(type) {
7855
8021
  getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
7856
8022
  getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
7857
8023
  getInputField("childElementLabel", "Child Element Label"),
8024
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
8025
+ getInputField("rowSpacing", "Row Spacing"),
8026
+ getInputField("columnSpacing", "Column Spacing"),
8027
+ getInputField("spacing", "Spacing"),
7858
8028
  emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7859
8029
  ];
7860
8030
  break;
@@ -7908,12 +8078,26 @@ const buildPropertiesSection = function(type) {
7908
8078
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7909
8079
  ];
7910
8080
  break;
8081
+ case "PopOver":
8082
+ uiSchema.elements = [
8083
+ getSelectField("positionVertical", "Attach To (Vertical)"),
8084
+ getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8085
+ getSelectField("contentVertical", "Popover Start (Vertical)"),
8086
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8087
+ getInputField("width", "Width"),
8088
+ getInputField("gap", "Gap"),
8089
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
8090
+ ];
8091
+ break;
7911
8092
  case "Text":
7912
8093
  uiSchema.elements = [
7913
8094
  getInputField("placeholder", "Placeholder"),
7914
8095
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7915
8096
  getSelectField("variant", "Variant"),
7916
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
8097
+ getInputField("toolTip", "Tooltip"),
8098
+ getSelectField("toolTipPosition", "Tooltip Position"),
8099
+ getSelectField("iconName", "Start Icon"),
8100
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
7917
8101
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
7918
8102
  getInputField("keyName", "Event Key Name")
7919
8103
  ];
@@ -7968,8 +8152,9 @@ const buildPropertiesSection = function(type) {
7968
8152
  getInputField("bottomLabel_1", "First BottomLabel"),
7969
8153
  getInputField("bottomLabel_2", "Second BottomLabel"),
7970
8154
  getInputField("bottomLabel_3", "Third BottomLabel"),
7971
- emptyBox$1("ProgressBarCardEmpty1"),
7972
- emptyBox$1("ProgressBarCardEmpty2")
8155
+ getInputField("size", "Size"),
8156
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
8157
+ getArrayControl("pieArcColors", "color", "Color")
7973
8158
  ];
7974
8159
  break;
7975
8160
  case "card":
@@ -7981,14 +8166,26 @@ const buildPropertiesSection = function(type) {
7981
8166
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7982
8167
  ];
7983
8168
  break;
8169
+ case "HierarchyChart":
8170
+ uiSchema.elements = [
8171
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8172
+ getSelectField("linkType", "Link Type"),
8173
+ getInputField("nodeWidth", "Node Width"),
8174
+ getInputField("nodeHeight", "Node Height"),
8175
+ getInputField("chartHeight", "Chart Height"),
8176
+ getInputField("stepPercent", "Link Bend Position"),
8177
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8178
+ ];
8179
+ break;
7984
8180
  case "MetricCard":
7985
8181
  uiSchema.elements = [
7986
8182
  getInputField("url", "Image Url"),
7987
8183
  getInputField("label", "Label"),
7988
- getInputField("description", "Description"),
7989
8184
  getInputField("cardValue", "Value"),
8185
+ getInputField("description", "Description"),
7990
8186
  getSelectField("growthRate", "Growth Rate"),
7991
- getInputField("color", "Card Color")
8187
+ getInputField("color", "Card Color"),
8188
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
7992
8189
  ];
7993
8190
  break;
7994
8191
  case "Button":
@@ -8001,6 +8198,14 @@ const buildPropertiesSection = function(type) {
8001
8198
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8002
8199
  ];
8003
8200
  break;
8201
+ case "ButtonGroup":
8202
+ uiSchema.elements = [
8203
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8204
+ getInputField("size", "Size"),
8205
+ getSelectField("color", "Color"),
8206
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8207
+ ];
8208
+ break;
8004
8209
  case "Box":
8005
8210
  uiSchema.elements = [
8006
8211
  getSelectField("iconName", "Icon Name"),
@@ -8014,19 +8219,24 @@ const buildPropertiesSection = function(type) {
8014
8219
  getInputField("subHeader", "Sub Header"),
8015
8220
  getSelectField("graphType", "Graph Type"),
8016
8221
  getInputField("leftLabel", "Left Label"),
8222
+ getInputField("rightLabel", "Right Label"),
8017
8223
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8018
8224
  getInputField("bottomLabel", "Bottom Label"),
8019
8225
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8020
8226
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8021
8227
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8022
- getInputField("yAxisValue", "Y-AxisValue"),
8023
- getInputField("xAxisValue", "X-AxisValue"),
8228
+ getInputField("yAxisValue", "Y-Axis Key"),
8229
+ getInputField("xAxisValue", "X-Axis Key"),
8230
+ getSelectField("xAxisType", "X-AxisType"),
8024
8231
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8025
8232
  getInputField("leftMargin", "Left Margin"),
8026
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
8027
- getArrayControl("legendLabels", "label"),
8028
- getArrayControl("pieArcColors", "color"),
8029
- getRadioInputField("xAxisFormatType", "X Axis Format Type", ["Date and Month", "Month and Year"])
8233
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8234
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8235
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8236
+ getInputField("growthRateKey", "Growth Rate Key"),
8237
+ getInputField("tooltipUnit", "Tooltip Unit"),
8238
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8239
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8030
8240
  ];
8031
8241
  break;
8032
8242
  case "WrapperSection":
@@ -8034,8 +8244,12 @@ const buildPropertiesSection = function(type) {
8034
8244
  getRadioInputField("divider", "Divider", ["YES", "No"]),
8035
8245
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
8036
8246
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8247
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
8037
8248
  getInputField("rowSpacing", "Row Spacing"),
8038
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8249
+ getInputField("columnSpacing", "Column Spacing"),
8250
+ getInputField("spacing", "Spacing"),
8251
+ getInputField("iconUrl", "Icon Url"),
8252
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8039
8253
  emptyBox$1("WrapperSectionEmpty2")
8040
8254
  ];
8041
8255
  break;
@@ -8044,7 +8258,7 @@ const buildPropertiesSection = function(type) {
8044
8258
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
8045
8259
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
8046
8260
  emptyBox$1("TabEmpty"),
8047
- getArrayControl("sectionLabels", "label")
8261
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
8048
8262
  ];
8049
8263
  break;
8050
8264
  case "Table":
@@ -8070,7 +8284,6 @@ const buildPropertiesSection = function(type) {
8070
8284
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8071
8285
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8072
8286
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8073
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8074
8287
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8075
8288
  getInputField("defaultColumnSize", "Default Column Size"),
8076
8289
  ,
@@ -8084,7 +8297,9 @@ const buildPropertiesSection = function(type) {
8084
8297
  case "Radio":
8085
8298
  uiSchema.elements = [
8086
8299
  getInputField("errorMessage", "Error Message"),
8087
- emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8300
+ getInputField("toolTip", "Tooltip"),
8301
+ getSelectField("toolTipPosition", "Tooltip Position"),
8302
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8088
8303
  getArrayControl("sectionLabels", "label", "Options Of Radio")
8089
8304
  ];
8090
8305
  break;
@@ -8093,27 +8308,39 @@ const buildPropertiesSection = function(type) {
8093
8308
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8094
8309
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
8095
8310
  getSelectField("variant", "Variant"),
8096
- emptyBox$1("SelectEmpty")
8311
+ getInputField("toolTip", "Tooltip"),
8312
+ getSelectField("toolTipPosition", "Tooltip Position"),
8313
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8097
8314
  ];
8098
8315
  break;
8099
8316
  case "MultipleSelect":
8100
8317
  uiSchema.elements = [
8101
8318
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8102
8319
  getSelectField("variant", "Variant"),
8103
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
8104
- emptyBox$1("MultipleSelectEmpty2")
8320
+ getInputField("toolTip", "Tooltip"),
8321
+ getSelectField("toolTipPosition", "Tooltip Position")
8322
+ ];
8323
+ break;
8324
+ case "PdfViewer":
8325
+ uiSchema.elements = [
8326
+ getInputField("scale", "Zoom"),
8327
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8105
8328
  ];
8106
8329
  break;
8107
8330
  case "Date":
8108
8331
  uiSchema.elements = [
8109
8332
  getSelectField("variant", "Variant"),
8110
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8333
+ getInputField("toolTip", "Tooltip"),
8334
+ getSelectField("toolTipPosition", "Tooltip Position"),
8335
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8111
8336
  ];
8112
8337
  break;
8113
8338
  case "DateTime":
8114
8339
  uiSchema.elements = [
8115
8340
  getSelectField("variant", "Variant"),
8116
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8341
+ getInputField("toolTip", "Tooltip"),
8342
+ getSelectField("toolTipPosition", "Tooltip Position"),
8343
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8117
8344
  ];
8118
8345
  break;
8119
8346
  case "Thought":
@@ -8125,6 +8352,8 @@ const buildPropertiesSection = function(type) {
8125
8352
  uiSchema.elements = [
8126
8353
  getInputField("imageUrl", "Image URL"),
8127
8354
  getInputField("height", "Image Height"),
8355
+ getInputField("toolTip", "Tooltip"),
8356
+ getSelectField("toolTipPosition", "Tooltip Position"),
8128
8357
  emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8129
8358
  ];
8130
8359
  break;
@@ -8135,9 +8364,24 @@ const buildPropertiesSection = function(type) {
8135
8364
  getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8136
8365
  getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8137
8366
  getInputField("description", "Enter description"),
8138
- emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8367
+ getInputField("toolTip", "Tooltip"),
8368
+ getSelectField("toolTipPosition", "Tooltip Position"),
8369
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8370
+ getInputField("noFileAvailableMessage", "No Found Message"),
8371
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8372
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8373
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8139
8374
  ];
8140
8375
  break;
8376
+ case "Camera":
8377
+ uiSchema.elements = [
8378
+ getSelectField("iconName", "Icon Name"),
8379
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8380
+ getSelectField("color", "Color"),
8381
+ getInputField("tooltipMessage", "Tooltip Message"),
8382
+ getSelectField("variant", "Variant"),
8383
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8384
+ ];
8141
8385
  }
8142
8386
  return uiSchema;
8143
8387
  };
@@ -8175,13 +8419,13 @@ const StyleSection = {
8175
8419
  }
8176
8420
  ]
8177
8421
  };
8178
- const TableSection = (theme) => {
8422
+ const TableSection = (theme, scopeName = "elements") => {
8179
8423
  const uiSchema = {
8180
8424
  type: "HorizontalLayout",
8181
8425
  elements: [
8182
8426
  {
8183
8427
  type: "Control",
8184
- scope: "#/properties/elements",
8428
+ scope: `#/properties/${scopeName}`,
8185
8429
  options: {
8186
8430
  widget: "Table"
8187
8431
  },
@@ -8192,7 +8436,7 @@ const TableSection = (theme) => {
8192
8436
  {
8193
8437
  widget: {
8194
8438
  type: "Control",
8195
- scope: "#/properties/New_Record",
8439
+ scope: `#/properties/${scopeName}_New_Record`,
8196
8440
  options: {
8197
8441
  widget: "IconButton"
8198
8442
  },
@@ -8219,7 +8463,7 @@ const TableSection = (theme) => {
8219
8463
  {
8220
8464
  widget: {
8221
8465
  type: "Control",
8222
- scope: "#/properties/Paste_Component",
8466
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8223
8467
  options: {
8224
8468
  widget: "IconButton"
8225
8469
  },
@@ -8284,7 +8528,7 @@ const TableSection = (theme) => {
8284
8528
  },
8285
8529
  {
8286
8530
  type: "Control",
8287
- scope: "#/properties/Copy_Component",
8531
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8288
8532
  options: {
8289
8533
  widget: "Button"
8290
8534
  },
@@ -8477,12 +8721,16 @@ var buildConfig = (FormData) => {
8477
8721
  if (formData.events) {
8478
8722
  delete formData.events;
8479
8723
  }
8724
+ if (formData.tabLabelElements) {
8725
+ component.tabLabelElements = formData.tabLabelElements || [];
8726
+ delete formData.tabLabelElements;
8727
+ }
8480
8728
  component = { ...formData, ...component };
8481
8729
  return component;
8482
8730
  };
8483
8731
  const createLayoutFormat = (layout, type) => {
8484
8732
  if (_.isEmpty(layout)) {
8485
- const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
8733
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
8486
8734
  if (fullLayoutComponents.includes(type)) {
8487
8735
  return { xs: 12, sm: 12, md: 12, lg: 12 };
8488
8736
  } else if (type === "Graph") {
@@ -8509,9 +8757,27 @@ const flatObjectValueInArray = (config2 = []) => {
8509
8757
  });
8510
8758
  return data;
8511
8759
  };
8760
+ const createKeyValueMap = (config2 = []) => {
8761
+ return config2.reduce((acc, item) => {
8762
+ if (!item.key)
8763
+ return acc;
8764
+ acc[item.key] = item.value;
8765
+ return acc;
8766
+ }, {});
8767
+ };
8512
8768
  const clearFromSessionStorage = () => {
8513
8769
  sessionStorage.removeItem("pageFormdata");
8514
8770
  };
8771
+ const validateAndShowErrors = (store2) => {
8772
+ if (_.isEmpty(store2.ctx.core.errors))
8773
+ return false;
8774
+ store2.setValidation("ValidateAndShow");
8775
+ store2.setNotify({
8776
+ Fail: true,
8777
+ FailMessage: "Error on Page"
8778
+ });
8779
+ return true;
8780
+ };
8515
8781
  const getNavigationHistory = (config2, path) => {
8516
8782
  if (path) {
8517
8783
  let urlRoutes = config2.name;
@@ -8570,11 +8836,13 @@ async function saveHandler(store2, service2, submitHandler) {
8570
8836
  const saveReturn = await submitHandler(store2, service2, config2);
8571
8837
  navigateHandler(store2, true, "/PageMasterRecords");
8572
8838
  } catch (err) {
8573
- navigateHandler(store2, false);
8839
+ navigateHandler(store2, false, void 0, err.message);
8574
8840
  }
8841
+ } else {
8842
+ navigateHandler(store2, false);
8575
8843
  }
8576
8844
  }
8577
- const navigateHandler = (store2, isSubmitted, pageName) => {
8845
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8578
8846
  if (isSubmitted) {
8579
8847
  sessionStorage.removeItem("pageFormdata");
8580
8848
  store2.navigate(pageName || -1);
@@ -8586,7 +8854,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8586
8854
  store2.setValidation("ValidateAndShow");
8587
8855
  store2.setNotify({
8588
8856
  Fail: true,
8589
- FailMessage: "Errors on Page"
8857
+ FailMessage: errorMessage || "Errors on Page"
8590
8858
  });
8591
8859
  }
8592
8860
  };
@@ -8611,40 +8879,47 @@ function okHandler(store2) {
8611
8879
  const sectionLabels = {
8612
8880
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8613
8881
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8614
- Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8615
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8616
- WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8617
- HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
8618
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8619
- SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8882
+ Table: ["Core", "Components", "Properties", "Events", "Style"],
8883
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8884
+ WrapperSection: ["Core", "Components", "Properties", "Style"],
8885
+ HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8886
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8887
+ SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8620
8888
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8621
8889
  UploadFile: ["Core", "Events", "Style", "Validation"],
8622
8890
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8623
8891
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8624
8892
  Box: ["Core", "Properties", "Events", "Style", "Validation"],
8625
8893
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8626
- ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8627
- RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8894
+ ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8895
+ ProgressBar: ["Core", "Properties", "Events", "Style"],
8896
+ RankCard: ["Core", "Properties", "Events", "Style"],
8628
8897
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8898
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8629
8899
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8630
- Timer: ["Core", "Events", "Style", "Validation"],
8631
- Rank: ["Core", "Events", "Style", "Validation"],
8900
+ Timer: ["Core", "Events", "Style"],
8901
+ Rank: ["Core", "Events", "Style"],
8632
8902
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8633
- Array: ["Core", "Components", "Properties", "Events", "Validation"],
8903
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8904
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8634
8905
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8635
8906
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8636
8907
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8637
- PopUp: ["Core", "Components", "Properties", "Style"],
8908
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8909
+ PopOver: ["Core", "Components", "Properties", "Style"],
8910
+ PdfViewer: ["Core", "Properties", "Style"],
8638
8911
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8639
8912
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8640
8913
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8641
8914
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8642
8915
  ColumnGroup: ["Core", "Components"],
8643
- Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8916
+ Thought: ["Core", "Properties", "Events", "Style"],
8644
8917
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8645
8918
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8646
- Image: ["Core", "Properties", "Style"],
8647
- FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
8919
+ Image: ["Core", "Properties", "Events", "Style"],
8920
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8921
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8922
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8648
8923
  };
8649
8924
  function refreshPage(type, store2) {
8650
8925
  var _a, _b;
@@ -8657,6 +8932,7 @@ function refreshPage(type, store2) {
8657
8932
  Style: StyleSection,
8658
8933
  Events: EventSection(store2.theme.myTheme),
8659
8934
  Components: TableSection(store2.theme.myTheme),
8935
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8660
8936
  Properties: buildPropertiesSection(type),
8661
8937
  Validation: ValidationSection
8662
8938
  };
@@ -8847,13 +9123,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8847
9123
  },
8848
9124
  editComponents: function() {
8849
9125
  var _a, _b, _c;
9126
+ if (validateAndShowErrors(store2))
9127
+ return;
8850
9128
  const rowId = dynamicData2.path.split(".")[1];
8851
9129
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8852
9130
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8853
9131
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8854
9132
  if (path) {
8855
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8856
- const finalPath = `${path2}.elements[${rowId}]`;
9133
+ let finalPath = `${path}`;
9134
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9135
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9136
+ } else {
9137
+ finalPath = `${finalPath}.elements[${rowId}]`;
9138
+ }
8857
9139
  store2.searchParams.set("path", finalPath);
8858
9140
  store2.setSearchParams(store2.searchParams);
8859
9141
  this.setPage();
@@ -8865,7 +9147,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8865
9147
  var _a;
8866
9148
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8867
9149
  const rowId = sessionStorage.getItem("rowId");
8868
- store2.formData.elements.splice(rowId, 1);
9150
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9151
+ if (isTabLabelElements) {
9152
+ store2.formData.tabLabelElements.splice(rowId, 1);
9153
+ } else {
9154
+ store2.formData.elements.splice(rowId, 1);
9155
+ }
8869
9156
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8870
9157
  const data = path ? _.get(response, path) : response;
8871
9158
  store2.setFormdata(data);
@@ -8873,6 +9160,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8873
9160
  store2.updateDialog("popUpComponentSection");
8874
9161
  }
8875
9162
  sessionStorage.removeItem("rowId");
9163
+ sessionStorage.removeItem("isTabLabelElements");
8876
9164
  },
8877
9165
  deleteEvent: function(shouldUpdateDialog = true) {
8878
9166
  var _a;
@@ -8888,18 +9176,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8888
9176
  },
8889
9177
  widgetAddClickHandler: function() {
8890
9178
  var _a;
9179
+ if (validateAndShowErrors(store2))
9180
+ return;
8891
9181
  if (!Array.isArray(store2.formData.elements)) {
8892
9182
  store2.formData.elements = [];
8893
9183
  }
9184
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9185
+ store2.formData.tabLabelElements = [];
9186
+ }
8894
9187
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8895
9188
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8896
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9189
+ let finalPath = `${path}`;
9190
+ if (dynamicData2.path.startsWith("tabLabel")) {
9191
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9192
+ } else {
9193
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9194
+ }
8897
9195
  store2.searchParams.set("path", finalPath);
8898
9196
  store2.setSearchParams(store2.searchParams);
8899
9197
  this.setPage();
8900
9198
  },
8901
9199
  eventEditHandler: function() {
8902
9200
  var _a, _b;
9201
+ if (validateAndShowErrors(store2))
9202
+ return;
8903
9203
  const rowId = dynamicData2.path.split(".")[1];
8904
9204
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8905
9205
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8909,6 +9209,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8909
9209
  },
8910
9210
  eventAddHandler: function() {
8911
9211
  var _a, _b;
9212
+ if (validateAndShowErrors(store2))
9213
+ return;
8912
9214
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8913
9215
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8914
9216
  if (!Array.isArray(store2.formData.events)) {
@@ -8924,6 +9226,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8924
9226
  deletePopUpComponent: function() {
8925
9227
  const rowId = dynamicData2.path.split(".")[1];
8926
9228
  sessionStorage.setItem("rowId", rowId);
9229
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8927
9230
  store2.updateDialog("popUpComponentSection");
8928
9231
  },
8929
9232
  deletePopUpEvent: function() {
@@ -8970,9 +9273,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8970
9273
  if (!Array.isArray(store2.formData.events)) {
8971
9274
  store2.formData.events = [];
8972
9275
  }
9276
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9277
+ store2.formData.tabLabelElements = [];
9278
+ }
8973
9279
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8974
9280
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8975
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9281
+ const currentLength = {
9282
+ "TabsComponent": formData.tabLabelElements.length,
9283
+ "Component": formData.elements.length,
9284
+ "Events": formData.events.length
9285
+ };
9286
+ const insertElementIndex = currentLength[elementType] || 0;
8976
9287
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8977
9288
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8978
9289
  const notificationMessages = {
@@ -9007,6 +9318,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9007
9318
  if (elementType === "Component") {
9008
9319
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9009
9320
  }
9321
+ if (elementType === "TabsComponent") {
9322
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9323
+ }
9010
9324
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9011
9325
  },
9012
9326
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -9082,6 +9396,8 @@ var pageMaster = (funcParams) => {
9082
9396
  },
9083
9397
  onAddClickHandler: function() {
9084
9398
  var _a;
9399
+ if (validateAndShowErrors(store2))
9400
+ return;
9085
9401
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9086
9402
  if (!Array.isArray(store2.formData.elements)) {
9087
9403
  store2.formData.elements = [];
@@ -9105,6 +9421,8 @@ var pageMaster = (funcParams) => {
9105
9421
  },
9106
9422
  eventAddHandler: function() {
9107
9423
  var _a;
9424
+ if (validateAndShowErrors(store2))
9425
+ return;
9108
9426
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9109
9427
  if (!Array.isArray(store2.formData.events)) {
9110
9428
  store2.formData.events = [];
@@ -9115,6 +9433,8 @@ var pageMaster = (funcParams) => {
9115
9433
  },
9116
9434
  editEvent: function() {
9117
9435
  var _a;
9436
+ if (validateAndShowErrors(store2))
9437
+ return;
9118
9438
  const rowId = dynamicData2.path.split(".")[1];
9119
9439
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9120
9440
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -9202,7 +9522,10 @@ const EventSchema = {
9202
9522
  { title: "Row Movement", const: "onRowMovement" },
9203
9523
  { title: "Download", const: "onDownload" },
9204
9524
  { title: "Fail", const: "Fail" },
9205
- { title: "Key Down", const: "onKeyDown" }
9525
+ { title: "onClose", const: "onClose" },
9526
+ { title: "Key Down", const: "onKeyDown" },
9527
+ { title: "Set Style", const: "setStyle" },
9528
+ { title: "Expand Node", const: "onNodeExpandChange" }
9206
9529
  ]
9207
9530
  },
9208
9531
  Handler: {
@@ -10094,6 +10417,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10094
10417
  },
10095
10418
  addEvent: function() {
10096
10419
  var _a, _b, _c;
10420
+ if (validateAndShowErrors(store2))
10421
+ return;
10097
10422
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10098
10423
  if (!Array.isArray(store2.formData.events)) {
10099
10424
  store2.formData.events = [];
@@ -10106,6 +10431,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10106
10431
  },
10107
10432
  editEvent: function() {
10108
10433
  var _a;
10434
+ if (validateAndShowErrors(store2))
10435
+ return;
10109
10436
  const rowId = dynamicData2.path.split(".")[1];
10110
10437
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10111
10438
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -10183,15 +10510,14 @@ function downloadFile$1({ data, name }) {
10183
10510
  URL.revokeObjectURL(url);
10184
10511
  }
10185
10512
  const downloadFileFromUrl = (response, service2) => {
10186
- let url = `${service2.defaults.baseURL}/${response.path}`;
10513
+ let url = new URL(response.path, service2.defaults.baseURL);
10187
10514
  if (response == null ? void 0 : response.params) {
10188
- const keysArray = Object.keys(response == null ? void 0 : response.params);
10189
- keysArray.map((e, i) => {
10190
- url = url + `${i === 0 ? "?" : "&"}${e}=${response == null ? void 0 : response.params[e]}`;
10515
+ Object.keys(response.params).forEach((key) => {
10516
+ url.searchParams.append(key, response.params[key]);
10191
10517
  });
10192
10518
  }
10193
10519
  const link = document.createElement("a");
10194
- link.href = url;
10520
+ link.href = url.toString();
10195
10521
  document.body.appendChild(link);
10196
10522
  link.click();
10197
10523
  link.parentNode.removeChild(link);
@@ -10524,7 +10850,7 @@ var service = (funcParams) => {
10524
10850
  dynamicData: funcParams.dynamicData,
10525
10851
  userValue: funcParams.userValue,
10526
10852
  service: funcParams.service,
10527
- serviceHolder: { downloadFile: downloadFile$1, download: downloadFileFromUrl, ...funcParams.functionsProvider },
10853
+ serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
10528
10854
  eventGroups,
10529
10855
  functionsProvider: funcParams.functionsProvider,
10530
10856
  formDataHolder
@@ -10541,7 +10867,7 @@ var service = (funcParams) => {
10541
10867
  const config2 = pageData == null ? void 0 : pageData.config;
10542
10868
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10543
10869
  const event2 = new CustomEvent("pageNameChanged", {
10544
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10870
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10545
10871
  });
10546
10872
  window.dispatchEvent(event2);
10547
10873
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -10584,6 +10910,25 @@ var service = (funcParams) => {
10584
10910
  funcParams.store.setUiSchema(uiSchema);
10585
10911
  });
10586
10912
  },
10913
+ getStyle: () => {
10914
+ var _a, _b, _c, _d;
10915
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10916
+ if (cloneEventGroup.setStyle) {
10917
+ let finalResponse = {};
10918
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10919
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10920
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10921
+ finalResponse = executeEvents({
10922
+ ...executeEventsParameters,
10923
+ config: eventConfig,
10924
+ componentName: path
10925
+ });
10926
+ }
10927
+ return finalResponse;
10928
+ }
10929
+ }
10930
+ return {};
10931
+ },
10587
10932
  onCellRenderer: (cellParams) => {
10588
10933
  var _a, _b, _c, _d, _e;
10589
10934
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10613,6 +10958,9 @@ var service = (funcParams) => {
10613
10958
  onFileDelete: async function() {
10614
10959
  this.callHandler("onFileDelete");
10615
10960
  },
10961
+ onClose: function() {
10962
+ this.callHandler("onClose");
10963
+ },
10616
10964
  onMount: function() {
10617
10965
  this.callHandler("onMount");
10618
10966
  },
@@ -10636,18 +10984,26 @@ var service = (funcParams) => {
10636
10984
  return response == null ? void 0 : response.data;
10637
10985
  },
10638
10986
  onPaginationChange: async function(paginationValues) {
10639
- var _a, _b;
10987
+ var _a;
10640
10988
  const apiBody = [
10641
10989
  { key: "size", value: paginationValues.pagination.pageSize },
10642
10990
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10643
10991
  { key: "sorting", value: paginationValues.sorting || [] },
10644
10992
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10645
10993
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10646
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10994
+ { key: "parentIds", value: paginationValues.parentIds },
10995
+ { key: "isExpandAll", value: paginationValues.isExpandAll }
10647
10996
  ];
10648
10997
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10649
10998
  return response == null ? void 0 : response.data;
10650
10999
  },
11000
+ onNodeExpandChange: async function(param) {
11001
+ const apiBody = [
11002
+ { key: "expandedNodeId", value: param.expandedNodeId }
11003
+ ];
11004
+ const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
11005
+ return response == null ? void 0 : response.data;
11006
+ },
10651
11007
  getSelectOptions: async function(param) {
10652
11008
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10653
11009
  const apiBody = [
@@ -10663,8 +11019,8 @@ var service = (funcParams) => {
10663
11019
  return;
10664
11020
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10665
11021
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10666
- var _a, _b;
10667
- 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) {
11022
+ var _a;
11023
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10668
11024
  return [];
10669
11025
  }
10670
11026
  return eventGroups.onChange[componentName].map(
@@ -10864,6 +11220,15 @@ const buildProgressBar = (config2, componentScope2) => {
10864
11220
  ProgressBar.config.layout = config2.layout;
10865
11221
  }
10866
11222
  ProgressBar.config.main.heading = config2.label;
11223
+ if (config2.variant) {
11224
+ ProgressBar.config.main.variant = config2.variant;
11225
+ }
11226
+ if (config2.pieArcColors) {
11227
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
11228
+ }
11229
+ if (config2.size) {
11230
+ ProgressBar.config.main.size = Number(config2.size);
11231
+ }
10867
11232
  if (config2.bottomLabel_3) {
10868
11233
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10869
11234
  }
@@ -10890,7 +11255,7 @@ const BarGraph = {
10890
11255
  type: "BarGraph",
10891
11256
  legendLabels: null
10892
11257
  },
10893
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11258
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10894
11259
  }
10895
11260
  };
10896
11261
  const PieGraph = {
@@ -10905,7 +11270,7 @@ const PieGraph = {
10905
11270
  type: "PieGraph",
10906
11271
  legendLabels: null
10907
11272
  },
10908
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11273
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10909
11274
  }
10910
11275
  };
10911
11276
  const LineGraph = {
@@ -10920,7 +11285,7 @@ const LineGraph = {
10920
11285
  type: "LineGraph",
10921
11286
  legendLabels: null
10922
11287
  },
10923
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11288
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10924
11289
  }
10925
11290
  };
10926
11291
  const HorizontalBarGraph = {
@@ -10935,7 +11300,37 @@ const HorizontalBarGraph = {
10935
11300
  type: "HorizontalBarGraph",
10936
11301
  legendLabels: null
10937
11302
  },
10938
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11303
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11304
+ }
11305
+ };
11306
+ const AreaBarGraph = {
11307
+ type: "Control",
11308
+ scope: "#/properties/graph",
11309
+ options: {
11310
+ widget: "Graph"
11311
+ },
11312
+ config: {
11313
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11314
+ main: {
11315
+ type: "AreaGraph",
11316
+ legendLabels: null
11317
+ },
11318
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11319
+ }
11320
+ };
11321
+ const StackBarLineG = {
11322
+ type: "Control",
11323
+ scope: "#/properties/graph",
11324
+ options: {
11325
+ widget: "Graph"
11326
+ },
11327
+ config: {
11328
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11329
+ main: {
11330
+ type: "StackBarLineGraph",
11331
+ legendLabels: null
11332
+ },
11333
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10939
11334
  }
10940
11335
  };
10941
11336
  const buildHorizontalBarGraph = (config2, componentScope2) => {
@@ -10954,13 +11349,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10954
11349
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10955
11350
  }
10956
11351
  if (config2.legendLabels) {
10957
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11352
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10958
11353
  }
10959
11354
  if (config2.legendDirection) {
10960
11355
  horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10961
11356
  }
10962
11357
  if (config2.pieArcColors) {
10963
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11358
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10964
11359
  }
10965
11360
  if (config2.xAxisValue) {
10966
11361
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11094,13 +11489,13 @@ const buildPieGraph = (config2, componentScope2) => {
11094
11489
  pieGraph.scope = componentScope2;
11095
11490
  pieGraph.config.main.header = config2.heading;
11096
11491
  if (config2.legendLabels) {
11097
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11492
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11098
11493
  }
11099
11494
  if (config2.xAxisValue) {
11100
11495
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
11101
11496
  }
11102
11497
  if (config2.pieArcColors) {
11103
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11498
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11104
11499
  }
11105
11500
  return pieGraph;
11106
11501
  };
@@ -11123,10 +11518,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
11123
11518
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
11124
11519
  barGraph.config.main.header = config2.heading;
11125
11520
  if (config2.legendLabels) {
11126
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11521
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11127
11522
  }
11128
11523
  if (config2.pieArcColors) {
11129
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11524
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11130
11525
  }
11131
11526
  if (config2.xAxisValue) {
11132
11527
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11192,6 +11587,7 @@ const buildTabSection = (config2, componentScope2) => {
11192
11587
  }
11193
11588
  if (config2.sectionLabels) {
11194
11589
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11590
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11195
11591
  }
11196
11592
  if (config2.style) {
11197
11593
  tab.config.style = JSON.parse(config2.style);
@@ -11204,9 +11600,11 @@ var WrapperSection = {
11204
11600
  config: {
11205
11601
  layout: 12,
11206
11602
  main: {
11207
- rowSpacing: 3,
11208
11603
  divider: true,
11209
- label: "Default Label"
11604
+ label: "Default Label",
11605
+ rowSpacing: 2,
11606
+ columnSpacing: 2,
11607
+ spacing: 2
11210
11608
  },
11211
11609
  defaultStyle: true
11212
11610
  },
@@ -11218,6 +11616,11 @@ const buildWrapperSection = (config2, componentScope2) => {
11218
11616
  wrapper.config.main.label = config2.label;
11219
11617
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11220
11618
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11619
+ wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11620
+ wrapper.config.main.icon = config2.iconUrl;
11621
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11622
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11623
+ wrapper.config.main.spacing = Number(config2.spacing);
11221
11624
  if (config2.defaultStyle) {
11222
11625
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11223
11626
  }
@@ -11267,6 +11670,15 @@ const buildTextField = (config2, componentScope2) => {
11267
11670
  if (config2.layout) {
11268
11671
  inputField.config.layout = createLayoutFormat(config2.layout);
11269
11672
  }
11673
+ if (config2.toolTip) {
11674
+ inputField.config.main.toolTip = config2.toolTip;
11675
+ }
11676
+ if (config2.toolTipPosition) {
11677
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11678
+ }
11679
+ if (config2.iconName) {
11680
+ inputField.config.main.startIcon = config2.iconName;
11681
+ }
11270
11682
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11271
11683
  inputField.scope = componentScope2;
11272
11684
  return inputField;
@@ -11283,7 +11695,8 @@ var SelectInputField = {
11283
11695
  label: "",
11284
11696
  type: "text",
11285
11697
  freeSole: false
11286
- }
11698
+ },
11699
+ style: {}
11287
11700
  }
11288
11701
  };
11289
11702
  const buildSelect = (config2, componentScope2) => {
@@ -11304,6 +11717,15 @@ const buildSelect = (config2, componentScope2) => {
11304
11717
  if (config2.layout) {
11305
11718
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11306
11719
  }
11720
+ if (config2.toolTip) {
11721
+ selectInputField.config.main.toolTip = config2.toolTip;
11722
+ }
11723
+ if (config2.toolTipPosition) {
11724
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11725
+ }
11726
+ if (config2.style) {
11727
+ selectInputField.config.style = JSON.parse(config2.style);
11728
+ }
11307
11729
  selectInputField.scope = componentScope2;
11308
11730
  return selectInputField;
11309
11731
  };
@@ -11411,9 +11833,6 @@ const buildTable = (config2, componentScope2) => {
11411
11833
  if (config2.paginateExpandedRows) {
11412
11834
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11413
11835
  }
11414
- if (config2.treeStructure) {
11415
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11416
- }
11417
11836
  if (config2.SelectionAvailable) {
11418
11837
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11419
11838
  }
@@ -11462,6 +11881,9 @@ const buildTable = (config2, componentScope2) => {
11462
11881
  if (config2.initialDensity) {
11463
11882
  table.config.main.initialDensity = config2.initialDensity;
11464
11883
  }
11884
+ if (config2.layout) {
11885
+ table.config.layout = createLayoutFormat(config2.layout);
11886
+ }
11465
11887
  return table;
11466
11888
  };
11467
11889
  const Box = {
@@ -11473,7 +11895,8 @@ const Box = {
11473
11895
  config: {
11474
11896
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11475
11897
  main: {
11476
- iconName: ""
11898
+ iconName: "",
11899
+ onClick: "onClick"
11477
11900
  },
11478
11901
  style: {}
11479
11902
  }
@@ -11542,6 +11965,12 @@ const buildUploadFile = (config2, componentScope2) => {
11542
11965
  if (config2.required) {
11543
11966
  UploadFile.config.main.required = true;
11544
11967
  }
11968
+ if (config2.toolTip) {
11969
+ UploadFile.config.main.toolTip = config2.toolTip;
11970
+ }
11971
+ if (config2.toolTipPosition) {
11972
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11973
+ }
11545
11974
  UploadFile.config.main.errorMessage = config2.errorMessage;
11546
11975
  return UploadFile;
11547
11976
  };
@@ -11564,6 +11993,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11564
11993
  if (config2.errorMessage) {
11565
11994
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11566
11995
  }
11996
+ if (config2.toolTip) {
11997
+ DownloadFile.config.main.toolTip = config2.toolTip;
11998
+ }
11999
+ if (config2.toolTipPosition) {
12000
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
12001
+ }
11567
12002
  return DownloadFile;
11568
12003
  };
11569
12004
  function Card(theme) {
@@ -11571,209 +12006,158 @@ function Card(theme) {
11571
12006
  type: "WrapperLayout",
11572
12007
  config: {
11573
12008
  main: {},
11574
- wrapperStyle: {
11575
- position: "relative",
11576
- top: "50%",
11577
- transform: "translateY(-50%)",
11578
- marginBottom: 0
11579
- },
11580
- componentsBoxStyle: {
11581
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11582
- flexDirection: "row",
11583
- flexWrap: "nowrap",
11584
- width: "100% !important",
11585
- background: "transparent",
11586
- border: `1.5px solid ${theme.palette.primary.light}`,
11587
- borderRadius: "8px",
11588
- padding: "0px 4px",
11589
- height: "100%",
11590
- alignItems: "center",
11591
- marginLeft: "0px",
11592
- "&: hover": {
11593
- background: `${theme.palette.primary.main}`,
11594
- border: `1.5px solid black`,
11595
- "& p": {
11596
- color: "white"
12009
+ style: {
12010
+ wrapperStyle: {
12011
+ position: "relative",
12012
+ top: "50%",
12013
+ transform: "translateY(-50%)",
12014
+ marginBottom: 0,
12015
+ borderRadius: "12px",
12016
+ fontFamily: "poppins"
12017
+ },
12018
+ componentsBoxStyle: {
12019
+ boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
12020
+ flexDirection: "column",
12021
+ overflow: "hidden",
12022
+ flexWrap: "nowrap",
12023
+ width: "100% !important",
12024
+ background: "transparent",
12025
+ borderRadius: "12px",
12026
+ padding: "20px 20px 20px 14px",
12027
+ height: "100%",
12028
+ minHeight: "100px",
12029
+ position: "relative",
12030
+ marginLeft: "0px",
12031
+ "&: hover": {
12032
+ background: `${theme.palette.primary.main}`,
12033
+ color: `${theme.palette.primary.contrastText}`
11597
12034
  }
11598
12035
  }
11599
12036
  },
11600
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
12037
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11601
12038
  },
11602
12039
  elements: [
11603
12040
  {
11604
- type: "HorizontalLayout",
12041
+ type: "Control",
12042
+ scope: "#/properties/initilCardScope",
11605
12043
  config: {
11606
- layout: 9
11607
- },
11608
- elements: [
11609
- {
11610
- type: "WrapperLayout",
11611
- config: {
11612
- main: {
11613
- columnSpacing: 0,
11614
- gap: 0
11615
- },
11616
- wrapperStyle: {
11617
- background: "transparent",
11618
- marginBottom: 0
11619
- },
11620
- componentsBoxStyle: {
11621
- flexDirection: "column",
11622
- flexWrap: "nowrap",
11623
- width: "100%",
11624
- height: "inherit",
11625
- background: "transparent",
11626
- borderRadius: "0px",
11627
- paddingRight: 0
11628
- },
11629
- layout: 12
12044
+ main: {
12045
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
12046
+ },
12047
+ style: {
12048
+ containerStyle: {
12049
+ position: "absolute",
12050
+ color: "inherit",
12051
+ top: "4px",
12052
+ right: "4px",
12053
+ display: "flex",
12054
+ justifyContent: "flex-end",
12055
+ alignItems: "flex-start"
11630
12056
  },
11631
- elements: [
11632
- {
11633
- type: "WrapperLayout",
11634
- config: {
11635
- main: {
11636
- columnSpacing: 0,
11637
- gap: 0
11638
- },
11639
- wrapperStyle: {
11640
- background: "transparent",
11641
- marginBottom: 0
11642
- },
11643
- componentsBoxStyle: {
11644
- flexDirection: "row",
11645
- flexWrap: "nowrap",
11646
- width: "100%",
11647
- height: "0",
11648
- background: "transparent",
11649
- borderRadius: "0px",
11650
- marginLeft: "-10px",
11651
- marginTop: "-8px",
11652
- justifyContent: "start",
11653
- position: "relative"
11654
- },
11655
- layout: 12
11656
- },
11657
- elements: [
11658
- {
11659
- type: "Control",
11660
- scope: "#/properties/programType",
11661
- config: {
11662
- main: {
11663
- heading: ""
11664
- },
11665
- style: {
11666
- color: "black",
11667
- display: "flex",
11668
- fontSize: { xs: "24px", md: "28px" },
11669
- fontWeight: "bold",
11670
- background: "inherit",
11671
- justifyContent: "flex-start",
11672
- width: "auto",
11673
- margin: "-8px",
11674
- marginLeft: "-24px",
11675
- height: 0
11676
- }
11677
- },
11678
- options: {
11679
- widget: "Box"
11680
- }
11681
- },
11682
- {
11683
- type: "Control",
11684
- scope: "#/properties/programType",
11685
- config: {
11686
- main: {
11687
- heading: "5000.00"
11688
- },
11689
- style: {
11690
- color: "black",
11691
- display: "flex",
11692
- fontSize: { xs: "24px", md: "25px" },
11693
- fontWeight: "bold",
11694
- background: "inherit",
11695
- justifyContent: "flex-start",
11696
- width: "auto",
11697
- margin: "-8px",
11698
- marginTop: "-6px",
11699
- position: "absolute",
11700
- left: "7px",
11701
- whiteSpace: "nowrap",
11702
- overflowX: "auto",
11703
- overflowY: "hidden",
11704
- scrollbarWidth: "none",
11705
- msOverflowStyle: "none",
11706
- maxWidth: "calc(100% + 20px)",
11707
- "&::-webkit-scrollbar": {
11708
- display: "none"
11709
- }
11710
- }
11711
- },
11712
- options: {
11713
- widget: "Box"
11714
- }
11715
- }
11716
- ]
11717
- },
11718
- {
11719
- type: "Control",
11720
- scope: "#/properties/programType",
11721
- config: {
11722
- main: {
11723
- heading: "Total Earnings"
11724
- },
11725
- style: {
11726
- color: "black",
11727
- fontSize: "16px",
11728
- justifyContent: "center",
11729
- whiteSpace: "nowrap",
11730
- overflowX: "auto",
11731
- overflowY: "hidden",
11732
- scrollbarWidth: "none",
11733
- msOverflowStyle: "none",
11734
- background: "inherit",
11735
- width: "calc(100% + 8px)",
11736
- margin: "-8px",
11737
- marginTop: { xs: "16px", md: "20px" },
11738
- "&::-webkit-scrollbar": {
11739
- display: "none"
11740
- }
11741
- },
11742
- layout: 12
11743
- },
11744
- options: {
11745
- widget: "Box"
11746
- }
11747
- }
11748
- ]
12057
+ imageStyle: {
12058
+ color: "inherit",
12059
+ width: "32px",
12060
+ height: "32px",
12061
+ padding: "0px",
12062
+ margin: "0px"
12063
+ }
11749
12064
  }
11750
- ]
12065
+ },
12066
+ options: {
12067
+ widget: "Image"
12068
+ }
11751
12069
  },
11752
12070
  {
11753
12071
  type: "Control",
11754
- scope: "#/properties/programType",
12072
+ scope: "#/properties/initilCardScope",
11755
12073
  config: {
11756
12074
  main: {
11757
- url: "https://www.svgrepo.com/show/500606/loading.svg"
12075
+ heading: "Total Earnings"
11758
12076
  },
11759
12077
  style: {
11760
- containerStyle: {
11761
- height: "100%",
11762
- display: "flex",
11763
- justifyContent: "end"
11764
- },
11765
- imageStyle: {
11766
- width: "unset",
11767
- fontSize: "none",
11768
- padding: "4px",
11769
- margin: "0px 0px 0px 8px",
11770
- height: "64px"
12078
+ color: "inherit",
12079
+ fontSize: "16px",
12080
+ fontWeight: 300,
12081
+ fontFamily: "Poppins",
12082
+ justifyContent: "flex-start",
12083
+ background: "inherit",
12084
+ position: "absolute",
12085
+ top: "8px",
12086
+ left: "12px",
12087
+ display: "flex",
12088
+ maxWidth: "200px",
12089
+ whiteSpace: "nowrap",
12090
+ overflowX: "auto",
12091
+ scrollbarWidth: "none",
12092
+ "&::-webkit-scrollbar": {
12093
+ display: "none"
11771
12094
  }
12095
+ }
12096
+ },
12097
+ options: {
12098
+ widget: "Box"
12099
+ }
12100
+ },
12101
+ {
12102
+ type: "Control",
12103
+ scope: "#/properties/initilCardScope",
12104
+ config: {
12105
+ main: {
12106
+ heading: "5000.00"
11772
12107
  },
11773
- layout: 3
12108
+ style: {
12109
+ color: "inherit",
12110
+ display: "flex",
12111
+ fontSize: { xs: "22px", md: "40px" },
12112
+ fontWeight: 600,
12113
+ background: "inherit",
12114
+ justifyContent: "flex-start",
12115
+ width: "100%",
12116
+ margin: "0px",
12117
+ marginBottom: "4px",
12118
+ marginTop: "8px",
12119
+ lineHeight: "1",
12120
+ maxWidth: "300px",
12121
+ whiteSpace: "nowrap",
12122
+ overflowX: "auto",
12123
+ overflowY: "hidden",
12124
+ scrollbarWidth: "none",
12125
+ "&::-webkit-scrollbar": {
12126
+ display: "none"
12127
+ }
12128
+ }
11774
12129
  },
11775
12130
  options: {
11776
- widget: "Image"
12131
+ widget: "Box"
12132
+ }
12133
+ },
12134
+ {
12135
+ type: "Control",
12136
+ scope: "#/properties/initilCardScope",
12137
+ config: {
12138
+ main: {
12139
+ heading: "Increased from last month"
12140
+ },
12141
+ style: {
12142
+ color: "inherit",
12143
+ fontSize: "12px",
12144
+ fontWeight: "400",
12145
+ justifyContent: "flex-start",
12146
+ background: "inherit",
12147
+ margin: "0px",
12148
+ paddingLeft: "2px",
12149
+ marginBottom: "8px",
12150
+ maxWidth: "200px",
12151
+ whiteSpace: "nowrap",
12152
+ overflowX: "auto",
12153
+ scrollbarWidth: "none",
12154
+ "&::-webkit-scrollbar": {
12155
+ display: "none"
12156
+ }
12157
+ }
12158
+ },
12159
+ options: {
12160
+ widget: "Box"
11777
12161
  }
11778
12162
  }
11779
12163
  ]
@@ -11785,9 +12169,10 @@ const buildCard = (config, componentScope, store) => {
11785
12169
  if (config.style) {
11786
12170
  card.config.wrapperStyle = JSON.parse(config.style);
11787
12171
  }
11788
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11789
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11790
- card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
12172
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
12173
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
12174
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
12175
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11791
12176
  if (config.layout) {
11792
12177
  card.config.layout = createLayoutFormat(config.layout);
11793
12178
  }
@@ -11796,13 +12181,13 @@ const buildCard = (config, componentScope, store) => {
11796
12181
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11797
12182
  }
11798
12183
  if (config.label) {
11799
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
12184
+ card.elements[1].config.main.heading = config.label;
11800
12185
  }
11801
12186
  if (config.url) {
11802
- card.elements[1].config.main.url = config.url;
12187
+ card.elements[0].config.main.url = config.url;
11803
12188
  }
11804
12189
  if (config.description) {
11805
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
12190
+ card.elements[3].config.main.heading = config.description;
11806
12191
  }
11807
12192
  return card;
11808
12193
  };
@@ -11813,7 +12198,7 @@ var MetricCard = {
11813
12198
  widget: "MetricCard"
11814
12199
  },
11815
12200
  config: {
11816
- layout: { xs: 12, sm: 12, md: 12, lg: 12 },
12201
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
11817
12202
  main: {}
11818
12203
  }
11819
12204
  };
@@ -11835,8 +12220,8 @@ const buildMetricCard = (config2, componentScope2, store2) => {
11835
12220
  if (config2.description) {
11836
12221
  card2.config.main.description = config2.description;
11837
12222
  }
11838
- if (config2.values) {
11839
- card2.config.main.cardValue = config2.value;
12223
+ if (config2.cardValue) {
12224
+ card2.config.main.cardValue = config2.cardValue;
11840
12225
  }
11841
12226
  if (config2.growthRate) {
11842
12227
  card2.config.main.growthRate = config2.growthRate;
@@ -11877,7 +12262,6 @@ const DateTime = {
11877
12262
  const buildDate = (config2, componentScope2) => {
11878
12263
  const dateInputField = _.cloneDeep(DateInputField);
11879
12264
  dateInputField.config.main.label = config2.label;
11880
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11881
12265
  dateInputField.scope = componentScope2;
11882
12266
  if (config2.layout) {
11883
12267
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11885,12 +12269,20 @@ const buildDate = (config2, componentScope2) => {
11885
12269
  if (config2.variant) {
11886
12270
  dateInputField.config.main.variant = config2.variant;
11887
12271
  }
12272
+ if (config2.toolTip) {
12273
+ dateInputField.config.main.toolTip = config2.toolTip;
12274
+ }
12275
+ if (config2.toolTipPosition) {
12276
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12277
+ }
12278
+ if (config2.style) {
12279
+ dateInputField.config.style = JSON.parse(config2.style);
12280
+ }
11888
12281
  return dateInputField;
11889
12282
  };
11890
12283
  const buildDateTime = (config2, componentScope2) => {
11891
12284
  const dateTimeInputField = _.cloneDeep(DateTime);
11892
12285
  dateTimeInputField.config.main.label = config2.label;
11893
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11894
12286
  dateTimeInputField.scope = componentScope2;
11895
12287
  if (config2.layout) {
11896
12288
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11898,6 +12290,15 @@ const buildDateTime = (config2, componentScope2) => {
11898
12290
  if (config2.variant) {
11899
12291
  dateTimeInputField.config.main.variant = config2.variant;
11900
12292
  }
12293
+ if (config2.toolTip) {
12294
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12295
+ }
12296
+ if (config2.toolTipPosition) {
12297
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12298
+ }
12299
+ if (config2.style) {
12300
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12301
+ }
11901
12302
  return dateTimeInputField;
11902
12303
  };
11903
12304
  var RankCard = {
@@ -11988,7 +12389,8 @@ var MultipleSelect = {
11988
12389
  multiple: true,
11989
12390
  variant: "outlined",
11990
12391
  options: []
11991
- }
12392
+ },
12393
+ style: {}
11992
12394
  }
11993
12395
  };
11994
12396
  const buildMultiSelect = (config2, componentScope2) => {
@@ -12009,6 +12411,15 @@ const buildMultiSelect = (config2, componentScope2) => {
12009
12411
  if (config2.lazyLoading) {
12010
12412
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
12011
12413
  }
12414
+ if (config2.toolTip) {
12415
+ multipleSelect.config.main.toolTip = config2.toolTip;
12416
+ }
12417
+ if (config2.toolTipPosition) {
12418
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12419
+ }
12420
+ if (config2.style) {
12421
+ multipleSelect.config.style = JSON.parse(config2.style);
12422
+ }
12012
12423
  return multipleSelect;
12013
12424
  };
12014
12425
  const buildBasicUiSchema = (config2) => {
@@ -12155,10 +12566,10 @@ const buildLineGraph = (config2, componentScope2) => {
12155
12566
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
12156
12567
  }
12157
12568
  if (config2.legendLabels) {
12158
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12569
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
12159
12570
  }
12160
12571
  if (config2.pieArcColors) {
12161
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12572
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
12162
12573
  }
12163
12574
  lineGraph.scope = componentScope2;
12164
12575
  return lineGraph;
@@ -12193,6 +12604,12 @@ const buildRadio = (config2, componentScope2) => {
12193
12604
  if (config2.errorMessage) {
12194
12605
  Radio.config.main.errorMessage = config2.errorMessage;
12195
12606
  }
12607
+ if (config2.toolTip) {
12608
+ Radio.config.main.toolTip = config2.toolTip;
12609
+ }
12610
+ if (config2.toolTipPosition) {
12611
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12612
+ }
12196
12613
  return Radio;
12197
12614
  };
12198
12615
  var emptyBox = {
@@ -12209,9 +12626,13 @@ var emptyBox = {
12209
12626
  };
12210
12627
  const buildEmptyBox = (config2, componentScope2) => {
12211
12628
  const EmptyBox = _.cloneDeep(emptyBox);
12629
+ EmptyBox.scope = componentScope2;
12212
12630
  if (config2.layout) {
12213
12631
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
12214
12632
  }
12633
+ if (config2.style) {
12634
+ EmptyBox.config.style = JSON.parse(config2.style);
12635
+ }
12215
12636
  return EmptyBox;
12216
12637
  };
12217
12638
  const ArrayUiSchema = {
@@ -12240,7 +12661,11 @@ const buildArray = (config2, componentScope2) => {
12240
12661
  if (config2.style) {
12241
12662
  array.config.style = JSON.parse(config2.style);
12242
12663
  }
12664
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12665
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12666
+ array.config.main.spacing = Number(config2.spacing);
12243
12667
  array.config.main.childElementLabel = config2.childElementLabel;
12668
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12244
12669
  array.config.main.label = config2.label;
12245
12670
  array.scope = componentScope2;
12246
12671
  return array;
@@ -12315,7 +12740,8 @@ const FileInput = {
12315
12740
  required: false,
12316
12741
  onUpload: "onFileUpload",
12317
12742
  onDownload: "onFileDownload",
12318
- label: "Aggrement Copy"
12743
+ label: "Aggrement Copy",
12744
+ "onClick": "onClick"
12319
12745
  },
12320
12746
  style: {
12321
12747
  backgroundColor: "none"
@@ -12332,21 +12758,19 @@ const buildFileInput = (config2, componentScope2) => {
12332
12758
  if (config2.style) {
12333
12759
  box.config.style = JSON.parse(config2.style);
12334
12760
  }
12335
- if (config2.variant) {
12336
- box.config.main.variant = config2.variant;
12337
- }
12338
- if (config2.disableUpload) {
12339
- box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12340
- }
12341
- if (config2.disableDownload) {
12342
- box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12343
- }
12344
- if (config2.disableDelete) {
12345
- box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12346
- }
12347
- if (config2.description) {
12348
- box.config.main.description = config2.description;
12349
- }
12761
+ box.config.main.variant = config2.variant;
12762
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12763
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12764
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12765
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12766
+ box.config.main.description = config2.description;
12767
+ box.config.main.toolTip = config2.toolTip;
12768
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12769
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12770
+ if (config2.toolTipPosition) {
12771
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12772
+ }
12773
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12350
12774
  return box;
12351
12775
  };
12352
12776
  const Stepper = {
@@ -12403,6 +12827,7 @@ const PopUP = {
12403
12827
  },
12404
12828
  main: {
12405
12829
  label: "PopUp",
12830
+ onClose: "onClose",
12406
12831
  fullScreen: false,
12407
12832
  fullWidth: false,
12408
12833
  maxWidth: false,
@@ -12626,7 +13051,8 @@ const imageUiSchema = {
12626
13051
  config: {
12627
13052
  layout: 3,
12628
13053
  main: {
12629
- url: ""
13054
+ url: "",
13055
+ onClick: "onClick"
12630
13056
  },
12631
13057
  style: {}
12632
13058
  }
@@ -12644,8 +13070,358 @@ const buildImage = (config2, componentScope2) => {
12644
13070
  if (config2.height) {
12645
13071
  image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
12646
13072
  }
13073
+ image.config.main.toolTip = config2.toolTip;
13074
+ image.config.main.toolTipPosition = config2.toolTipPosition;
12647
13075
  return image;
12648
13076
  };
13077
+ const buildAreaGraph = (config2, componentScope2) => {
13078
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13079
+ AreaGraph.scope = componentScope2;
13080
+ if (config2.layout) {
13081
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13082
+ }
13083
+ AreaGraph.config.main.type = config2.graphType;
13084
+ AreaGraph.scope = componentScope2;
13085
+ AreaGraph.config.main.header = config2.heading;
13086
+ AreaGraph.config.main.subHeader = config2.subHeader;
13087
+ if (config2.legendHide) {
13088
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13089
+ }
13090
+ if (config2.bottomAxisAngle) {
13091
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13092
+ }
13093
+ if (config2.legendLabels) {
13094
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13095
+ }
13096
+ if (config2.legendDirection) {
13097
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13098
+ }
13099
+ if (config2.height) {
13100
+ AreaGraph.config.style.containerStyle.height = config2.height;
13101
+ }
13102
+ if (config2.pieArcColors) {
13103
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13104
+ }
13105
+ if (config2.xAxisFormatType) {
13106
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13107
+ }
13108
+ if (config2.yAxisTickCount) {
13109
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13110
+ }
13111
+ if (config2.xAxisTickCount) {
13112
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13113
+ }
13114
+ if (config2.xAxisValue) {
13115
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13116
+ }
13117
+ if (config2.xAxisType) {
13118
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13119
+ }
13120
+ if (config2.bottomLabel) {
13121
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13122
+ }
13123
+ if (config2.leftLabel) {
13124
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13125
+ }
13126
+ if (config2.disableLeftLabel) {
13127
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13128
+ }
13129
+ if (config2.leftMargin) {
13130
+ AreaGraph.config.style.labelStyle.margin = {
13131
+ left: config2.leftMargin
13132
+ };
13133
+ }
13134
+ return AreaGraph;
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.yAxisTickCount) {
13165
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13166
+ }
13167
+ if (config2.xAxisTickCount) {
13168
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
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.growthRateKey) {
13189
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13190
+ }
13191
+ if (config2.tooltipUnit) {
13192
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13193
+ }
13194
+ if (config2.leftMargin) {
13195
+ StackBarLineGraph.config.style.labelStyle.margin = {
13196
+ left: config2.leftMargin
13197
+ };
13198
+ }
13199
+ return StackBarLineGraph;
13200
+ };
13201
+ const cameraUiSchema = {
13202
+ type: "Control",
13203
+ scope: "#/properties/camera",
13204
+ options: {
13205
+ widget: "Camera"
13206
+ },
13207
+ config: {
13208
+ main: {
13209
+ label: "Upload Photo",
13210
+ multiUplaod: false,
13211
+ onUpload: "onFileUpload"
13212
+ }
13213
+ }
13214
+ };
13215
+ const buildCamera = (config2, componentScope2) => {
13216
+ const camera = _.cloneDeep(cameraUiSchema);
13217
+ camera.scope = componentScope2;
13218
+ if (config2.iconName) {
13219
+ camera.config.main.startIcon = config2.iconName;
13220
+ }
13221
+ if (config2.layout) {
13222
+ camera.config.layout = createLayoutFormat(config2.layout, config2.type);
13223
+ }
13224
+ if (config2.tooltipMessage) {
13225
+ camera.config.main.tooltipMessage = config2.tooltipMessage;
13226
+ }
13227
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
13228
+ if (config2.style) {
13229
+ camera.config.style = JSON.parse(config2.style);
13230
+ }
13231
+ if (config2.size) {
13232
+ camera.config.main.size = config2.size;
13233
+ }
13234
+ if (config2.variant) {
13235
+ camera.config.main.variant = config2.variant;
13236
+ }
13237
+ if (config2.color) {
13238
+ camera.config.main.color = config2.color;
13239
+ }
13240
+ if (config2.label) {
13241
+ camera.config.main.label = config2.label;
13242
+ }
13243
+ return camera;
13244
+ };
13245
+ var ButtonGroup = {
13246
+ type: "Control",
13247
+ scope: "#/properties/buttonGroup",
13248
+ options: {
13249
+ widget: "ButtonGroup"
13250
+ },
13251
+ config: {
13252
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13253
+ main: {
13254
+ variant: "contained",
13255
+ styleDefault: false,
13256
+ size: "small"
13257
+ },
13258
+ style: {}
13259
+ }
13260
+ };
13261
+ const buildButtonGroup = (config2, componentScope2) => {
13262
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13263
+ if (config2.layout) {
13264
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13265
+ }
13266
+ buttonGroup.scope = componentScope2;
13267
+ if (config2.multiSelect) {
13268
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13269
+ }
13270
+ if (config2.style) {
13271
+ buttonGroup.config.style = JSON.parse(config2.style);
13272
+ }
13273
+ if (config2.size) {
13274
+ buttonGroup.config.main.size = config2.size;
13275
+ }
13276
+ if (config2.color) {
13277
+ buttonGroup.config.main.color = config2.color;
13278
+ }
13279
+ return buttonGroup;
13280
+ };
13281
+ const PopOver = {
13282
+ type: "Control",
13283
+ scope: "#/properties/text",
13284
+ options: {
13285
+ widget: "Popover"
13286
+ },
13287
+ config: {
13288
+ layout: {
13289
+ xs: 12,
13290
+ sm: 12,
13291
+ md: 12,
13292
+ lg: 12
13293
+ },
13294
+ main: {
13295
+ label: "PopOver"
13296
+ },
13297
+ style: {}
13298
+ }
13299
+ };
13300
+ const buildPopOver = (config2, componentScope2) => {
13301
+ const popOver = _.cloneDeep(PopOver);
13302
+ popOver.scope = componentScope2;
13303
+ popOver.config.main.positionVertical = config2.positionVertical;
13304
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13305
+ popOver.config.main.contentVertical = config2.contentVertical;
13306
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13307
+ popOver.config.main.width = config2.width;
13308
+ popOver.config.main.gap = config2.gap;
13309
+ if (config2.layout) {
13310
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13311
+ }
13312
+ if (config2.style) {
13313
+ popOver.config.style = JSON.parse(config2.style);
13314
+ }
13315
+ return popOver;
13316
+ };
13317
+ const OTPSchema = {
13318
+ type: "Control",
13319
+ scope: "#/properties/OTPInput",
13320
+ options: {
13321
+ widget: "OTPInput"
13322
+ },
13323
+ config: {
13324
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13325
+ main: {
13326
+ seperator: "",
13327
+ length: 4,
13328
+ type: "number",
13329
+ masking: true
13330
+ }
13331
+ }
13332
+ };
13333
+ const buildOTP_Input = (config2, componentScope2) => {
13334
+ const OTP = _.cloneDeep(OTPSchema);
13335
+ OTP.scope = componentScope2;
13336
+ if (config2.layout) {
13337
+ OTP.config.layout = createLayoutFormat(config2.layout);
13338
+ }
13339
+ if (config2.style) {
13340
+ OTP.config.style = JSON.parse(config2.style);
13341
+ }
13342
+ if (config2.errorMessage) {
13343
+ OTP.config.main.errorMessage = config2.errorMessage;
13344
+ }
13345
+ if (config2.toolTip) {
13346
+ OTP.config.main.toolTip = config2.toolTip;
13347
+ }
13348
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13349
+ OTP.config.main.type = config2.OTP_Format;
13350
+ OTP.config.main.seperator = config2.seperator;
13351
+ OTP.config.main.length = +config2.length;
13352
+ return OTP;
13353
+ };
13354
+ var pdfViewer = {
13355
+ type: "Control",
13356
+ scope: "#/properties/pdfviewer",
13357
+ options: {
13358
+ widget: "PdfViewer"
13359
+ },
13360
+ config: {
13361
+ layout: {
13362
+ xs: 12,
13363
+ sm: 12,
13364
+ md: 12,
13365
+ lg: 12
13366
+ },
13367
+ main: {
13368
+ title: "PDF"
13369
+ }
13370
+ }
13371
+ };
13372
+ const buildPdfViewer = (config2, componentScope2) => {
13373
+ const PdfViewer = _.cloneDeep(pdfViewer);
13374
+ PdfViewer.scope = componentScope2;
13375
+ PdfViewer.config.main.scale = config2.scale;
13376
+ if (config2.layout) {
13377
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13378
+ }
13379
+ if (config2.style) {
13380
+ PdfViewer.config.style = JSON.parse(config2.style);
13381
+ }
13382
+ return PdfViewer;
13383
+ };
13384
+ const HierarchyChart = {
13385
+ type: "Control",
13386
+ scope: "#/properties/HierarchyChart",
13387
+ options: {
13388
+ widget: "HierarchyChart"
13389
+ },
13390
+ config: {
13391
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13392
+ main: {},
13393
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13394
+ }
13395
+ };
13396
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13397
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13398
+ hierarchyChart.scope = componentScope2;
13399
+ if (config2.style) {
13400
+ hierarchyChart.config.style = JSON.parse(config2.style);
13401
+ }
13402
+ if (config2.layout) {
13403
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13404
+ }
13405
+ if (config2.linkType) {
13406
+ hierarchyChart.config.main.linkType = config2.linkType;
13407
+ }
13408
+ if (config2.stepPercent) {
13409
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13410
+ }
13411
+ if (config2.nodeWidth) {
13412
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13413
+ }
13414
+ if (config2.nodeHeight) {
13415
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13416
+ }
13417
+ if (config2.chartHeight) {
13418
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13419
+ }
13420
+ if (config2.lazyLoading) {
13421
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13422
+ }
13423
+ return hierarchyChart;
13424
+ };
12649
13425
  let schema = {
12650
13426
  type: "object",
12651
13427
  properties: {},
@@ -12716,6 +13492,9 @@ const buildUiSchema = (config2, store2) => {
12716
13492
  let elements = {};
12717
13493
  const componentScope2 = `#/properties/${config2.name}`;
12718
13494
  switch (config2.type) {
13495
+ case "OTP_Input":
13496
+ elements = buildOTP_Input(config2, componentScope2);
13497
+ break;
12719
13498
  case "TreeMap":
12720
13499
  elements = buildTreeMap(config2, componentScope2);
12721
13500
  break;
@@ -12734,6 +13513,9 @@ const buildUiSchema = (config2, store2) => {
12734
13513
  case "PopUp":
12735
13514
  elements = buildPopUp(config2, componentScope2);
12736
13515
  break;
13516
+ case "PopOver":
13517
+ elements = buildPopOver(config2, componentScope2);
13518
+ break;
12737
13519
  case "FileInput":
12738
13520
  elements = buildFileInput(config2, componentScope2);
12739
13521
  break;
@@ -12773,6 +13555,9 @@ const buildUiSchema = (config2, store2) => {
12773
13555
  case "Button":
12774
13556
  elements = buildButton(config2, componentScope2);
12775
13557
  break;
13558
+ case "ButtonGroup":
13559
+ elements = buildButtonGroup(config2, componentScope2);
13560
+ break;
12776
13561
  case "Table":
12777
13562
  elements = buildTable(config2, componentScope2);
12778
13563
  break;
@@ -12792,7 +13577,7 @@ const buildUiSchema = (config2, store2) => {
12792
13577
  elements = buildDownloadFile(config2, componentScope2);
12793
13578
  break;
12794
13579
  case "EmptyBox":
12795
- elements = buildEmptyBox(config2);
13580
+ elements = buildEmptyBox(config2, componentScope2);
12796
13581
  break;
12797
13582
  case "card":
12798
13583
  elements = buildCard(config2, componentScope2, store2);
@@ -12800,6 +13585,9 @@ const buildUiSchema = (config2, store2) => {
12800
13585
  case "MetricCard":
12801
13586
  elements = buildMetricCard(config2, componentScope2);
12802
13587
  break;
13588
+ case "HierarchyChart":
13589
+ elements = buildHierarchyChart(config2, componentScope2);
13590
+ break;
12803
13591
  case "Graph":
12804
13592
  switch (config2.graphType) {
12805
13593
  case "BarGraph":
@@ -12816,6 +13604,12 @@ const buildUiSchema = (config2, store2) => {
12816
13604
  case "HorizontalStackBarGraph":
12817
13605
  elements = buildHorizontalBarGraph(config2, componentScope2);
12818
13606
  break;
13607
+ case "AreaGraph":
13608
+ elements = buildAreaGraph(config2, componentScope2);
13609
+ break;
13610
+ case "StackBarLineGraph":
13611
+ elements = buildStackBarLineGraph(config2, componentScope2);
13612
+ break;
12819
13613
  default:
12820
13614
  elements = buildStackbarGraph(config2, componentScope2);
12821
13615
  break;
@@ -12861,6 +13655,12 @@ const buildUiSchema = (config2, store2) => {
12861
13655
  case "Image":
12862
13656
  elements = buildImage(config2, componentScope2);
12863
13657
  break;
13658
+ case "Camera":
13659
+ elements = buildCamera(config2, componentScope2);
13660
+ break;
13661
+ case "PdfViewer":
13662
+ elements = buildPdfViewer(config2, componentScope2);
13663
+ break;
12864
13664
  default:
12865
13665
  schema = {
12866
13666
  type: "object",
@@ -12964,6 +13764,11 @@ const buildUiSchema = (config2, store2) => {
12964
13764
  });
12965
13765
  }
12966
13766
  }
13767
+ if (config2.tabLabelElements) {
13768
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13769
+ return buildUiSchema(e, store2);
13770
+ });
13771
+ }
12967
13772
  return elements;
12968
13773
  };
12969
13774
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };