impaktapps-ui-builder 1.0.1585 → 1.1.0

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 (71) hide show
  1. package/dist/impaktapps-ui-builder.es.js +865 -80
  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/buildConfig.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  22. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  23. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
  24. package/package.json +1 -1
  25. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  26. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  27. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +2 -2
  28. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  29. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
  30. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
  31. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
  32. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  33. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  34. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  35. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  36. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  41. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  42. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  43. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  46. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +9 -0
  49. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +33 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
  53. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  54. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +229 -23
  55. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  56. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  57. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  58. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  59. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  60. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  61. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  62. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  63. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  64. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +87 -0
  65. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  66. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
  67. package/src/impaktapps-ui-builder/builder/services/component.ts +146 -105
  68. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  69. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
  70. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  71. package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -3
@@ -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,6 +6239,7 @@ 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" },
6228
6245
  { title: "Camera", const: "Camera" },
@@ -6241,8 +6258,10 @@ const ComponentSchema = {
6241
6258
  { title: "Label", const: "Box" },
6242
6259
  { title: "Leaderboard", const: "LeaderBoard" },
6243
6260
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6261
+ { title: "OTP_Input", const: "OTP_Input" },
6244
6262
  { title: "Pan Card Masked", const: "PanCardText" },
6245
6263
  { title: "Pop Up", const: "PopUp" },
6264
+ { title: "Pop Over", const: "PopOver" },
6246
6265
  { title: "Progress Bar", const: "ProgressBar" },
6247
6266
  { title: "Progress Bar Card", const: "ProgressBarCard" },
6248
6267
  { title: "Dropdown", const: "Select" },
@@ -6252,6 +6271,7 @@ const ComponentSchema = {
6252
6271
  { title: "Radio", const: "Radio" },
6253
6272
  { title: "Rank", const: "Rank" },
6254
6273
  { title: "Rank Card", const: "RankCard" },
6274
+ { title: "Metric Card", const: "MetricCard" },
6255
6275
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6256
6276
  { title: "Table", const: "Table" },
6257
6277
  { title: "Tabs", const: "TabSection" },
@@ -6260,7 +6280,8 @@ const ComponentSchema = {
6260
6280
  { title: "Timer", const: "Timer" },
6261
6281
  { title: "Upload", const: "UploadFile" },
6262
6282
  { title: "Tree ", const: "TreeMap" },
6263
- { title: "Thought of the day", const: "Thought" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "PDF", const: "PdfViewer" }
6264
6285
  ]
6265
6286
  },
6266
6287
  elementType: {
@@ -6314,6 +6335,48 @@ const ComponentSchema = {
6314
6335
  { title: "Standard", const: "standard" }
6315
6336
  ]
6316
6337
  },
6338
+ positionVertical: {
6339
+ oneOf: [
6340
+ { title: "Top", const: "top" },
6341
+ { title: "Center", const: "center" },
6342
+ { title: "Bottom", const: "bottom" }
6343
+ ]
6344
+ },
6345
+ positionHorizontal: {
6346
+ oneOf: [
6347
+ { title: "Left", const: "left" },
6348
+ { title: "Center", const: "center" },
6349
+ { title: "Right", const: "right" }
6350
+ ]
6351
+ },
6352
+ contentVertical: {
6353
+ oneOf: [
6354
+ { title: "Top", const: "top" },
6355
+ { title: "Center", const: "center" },
6356
+ { title: "Bottom", const: "bottom" }
6357
+ ]
6358
+ },
6359
+ contentHorizontal: {
6360
+ oneOf: [
6361
+ { title: "Left", const: "left" },
6362
+ { title: "Center", const: "center" },
6363
+ { title: "Right", const: "right" }
6364
+ ]
6365
+ },
6366
+ toolTipPosition: {
6367
+ oneOf: [
6368
+ { title: "Top", const: "top" },
6369
+ { title: "Left", const: "left" },
6370
+ { title: "Right", const: "right" },
6371
+ { title: "Bottom", const: "bottom" }
6372
+ ]
6373
+ },
6374
+ growthRate: {
6375
+ oneOf: [
6376
+ { title: "Positive", const: "positive" },
6377
+ { title: "Negative", const: "negative" }
6378
+ ]
6379
+ },
6317
6380
  orientation: {
6318
6381
  oneOf: [
6319
6382
  { title: "Horizontal", const: "horizontal" },
@@ -6348,6 +6411,21 @@ const ComponentSchema = {
6348
6411
  { title: "Spacious", const: "spacious" }
6349
6412
  ]
6350
6413
  },
6414
+ xAxisFormatType: {
6415
+ type: "string",
6416
+ oneOf: [
6417
+ { title: "Date and Month", const: "Date and Month" },
6418
+ { title: "Month and Year", const: "Month and Year" }
6419
+ ]
6420
+ },
6421
+ xAxisType: {
6422
+ type: "string",
6423
+ oneOf: [
6424
+ { title: "Date", const: "date" },
6425
+ { title: "String", const: "string" },
6426
+ { title: "Number", const: "number" }
6427
+ ]
6428
+ },
6351
6429
  layout: {
6352
6430
  type: "array",
6353
6431
  items: {
@@ -6483,6 +6561,9 @@ const ComponentSchema = {
6483
6561
  items: {
6484
6562
  type: "object",
6485
6563
  properties: {
6564
+ key: {
6565
+ type: "string"
6566
+ },
6486
6567
  label: {
6487
6568
  type: "string"
6488
6569
  }
@@ -6494,12 +6575,26 @@ const ComponentSchema = {
6494
6575
  items: {
6495
6576
  type: "object",
6496
6577
  properties: {
6578
+ key: {
6579
+ type: "string"
6580
+ },
6497
6581
  label: {
6498
6582
  type: "string"
6499
6583
  }
6500
6584
  }
6501
6585
  }
6502
6586
  },
6587
+ tabIcons: {
6588
+ type: "array",
6589
+ items: {
6590
+ type: "object",
6591
+ properties: {
6592
+ url: {
6593
+ type: "string"
6594
+ }
6595
+ }
6596
+ }
6597
+ },
6503
6598
  InputFormatingAndMasking: {
6504
6599
  type: "array",
6505
6600
  items: {
@@ -6561,7 +6656,9 @@ const ComponentSchema = {
6561
6656
  {
6562
6657
  title: "Stack Horizontal Bar Graph",
6563
6658
  const: "HorizontalStackBarGraph"
6564
- }
6659
+ },
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6565
6662
  ]
6566
6663
  },
6567
6664
  iconName: {
@@ -6597,6 +6694,7 @@ const ComponentSchema = {
6597
6694
  { title: "Drafts Icon", const: "DraftsIcon" },
6598
6695
  { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6599
6696
  { title: "Paste Icon", const: "PasteIcon" },
6697
+ { title: "Calendar", const: "Calendar" },
6600
6698
  { title: "Prev Icon", const: "PrevIcon" },
6601
6699
  { title: "Verified Icon", const: "VerifiedIcon" },
6602
6700
  { title: "Table Add Icon", const: "TableAddIcon" },
@@ -6613,7 +6711,12 @@ const ComponentSchema = {
6613
6711
  { title: "Clone Icon", const: "CloneIcon" },
6614
6712
  { title: "Detail Icon", const: "DetailIcon" },
6615
6713
  { title: "Report View Icon", const: "ReportViewIcon" },
6616
- { title: "Payout", const: "Payout" }
6714
+ { title: "Payout", const: "Payout" },
6715
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6716
+ { title: "Territory Add", const: "TerritoryAdd" },
6717
+ { title: "Territory Edit", const: "TerritoryEdit" },
6718
+ { title: "Territory Delete", const: "TerritoryDelete" },
6719
+ { title: "Git Compare", const: "GitCompare" }
6617
6720
  ]
6618
6721
  },
6619
6722
  color: {
@@ -7719,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7719
7822
  ]
7720
7823
  };
7721
7824
  };
7825
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7826
+ return {
7827
+ type: "Control",
7828
+ scope: `#/properties/${parentScope}`,
7829
+ options: {
7830
+ widget: "Array"
7831
+ },
7832
+ config: {
7833
+ layout: 12,
7834
+ main: {
7835
+ label: arrayLabel
7836
+ },
7837
+ style: {
7838
+ marginLeft: "-24px",
7839
+ marginBottom: "24px !important",
7840
+ labelStyle: {
7841
+ marginLeft: "24px"
7842
+ },
7843
+ detailsStyle: {
7844
+ marginLeft: "24px"
7845
+ }
7846
+ }
7847
+ },
7848
+ elements: [
7849
+ {
7850
+ type: "Control",
7851
+ scope: `#/properties/${firstFieldScope}`,
7852
+ options: {
7853
+ widget: "InputField"
7854
+ },
7855
+ config: {
7856
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7857
+ main: {
7858
+ label: firstFieldLabel || "Labels for Tab"
7859
+ }
7860
+ }
7861
+ },
7862
+ {
7863
+ type: "Control",
7864
+ scope: `#/properties/${secondFieldScope}`,
7865
+ options: {
7866
+ widget: "InputField"
7867
+ },
7868
+ config: {
7869
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7870
+ main: {
7871
+ label: secondFieldLabel || "Labels for Tab"
7872
+ }
7873
+ }
7874
+ },
7875
+ emptyBox$1("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 })
7876
+ ]
7877
+ };
7878
+ };
7722
7879
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7723
7880
  sizeHolder.elements[1] = {
7724
7881
  type: "Control",
@@ -7841,6 +7998,14 @@ const BaseSection = {
7841
7998
  const buildPropertiesSection = function(type) {
7842
7999
  let uiSchema = _.cloneDeep(BaseSection);
7843
8000
  switch (type) {
8001
+ case "OTP_Input":
8002
+ uiSchema.elements = [
8003
+ getInputField("seperator", "Seperator"),
8004
+ getInputField("length", "OTP Length"),
8005
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
8006
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
8007
+ ];
8008
+ break;
7844
8009
  case "Array":
7845
8010
  uiSchema.elements = [
7846
8011
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
@@ -7848,6 +8013,10 @@ const buildPropertiesSection = function(type) {
7848
8013
  getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
7849
8014
  getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
7850
8015
  getInputField("childElementLabel", "Child Element Label"),
8016
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
8017
+ getInputField("rowSpacing", "Row Spacing"),
8018
+ getInputField("columnSpacing", "Column Spacing"),
8019
+ getInputField("spacing", "Spacing"),
7851
8020
  emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7852
8021
  ];
7853
8022
  break;
@@ -7901,12 +8070,26 @@ const buildPropertiesSection = function(type) {
7901
8070
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7902
8071
  ];
7903
8072
  break;
8073
+ case "PopOver":
8074
+ uiSchema.elements = [
8075
+ getSelectField("positionVertical", "Attach To (Vertical)"),
8076
+ getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8077
+ getSelectField("contentVertical", "Popover Start (Vertical)"),
8078
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8079
+ getInputField("width", "Width"),
8080
+ getInputField("gap", "Gap"),
8081
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
8082
+ ];
8083
+ break;
7904
8084
  case "Text":
7905
8085
  uiSchema.elements = [
7906
8086
  getInputField("placeholder", "Placeholder"),
7907
8087
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7908
8088
  getSelectField("variant", "Variant"),
7909
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
8089
+ getInputField("toolTip", "Tooltip"),
8090
+ getSelectField("toolTipPosition", "Tooltip Position"),
8091
+ getSelectField("iconName", "Icon Name"),
8092
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
7910
8093
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
7911
8094
  getInputField("keyName", "Event Key Name")
7912
8095
  ];
@@ -7975,6 +8158,17 @@ const buildPropertiesSection = function(type) {
7975
8158
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7976
8159
  ];
7977
8160
  break;
8161
+ case "MetricCard":
8162
+ uiSchema.elements = [
8163
+ getInputField("url", "Image Url"),
8164
+ getInputField("label", "Label"),
8165
+ getInputField("cardValue", "Value"),
8166
+ getInputField("description", "Description"),
8167
+ getSelectField("growthRate", "Growth Rate"),
8168
+ getInputField("color", "Card Color"),
8169
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8170
+ ];
8171
+ break;
7978
8172
  case "Button":
7979
8173
  uiSchema.elements = [
7980
8174
  getSelectField("buttonType", "Button Type"),
@@ -7985,6 +8179,14 @@ const buildPropertiesSection = function(type) {
7985
8179
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7986
8180
  ];
7987
8181
  break;
8182
+ case "ButtonGroup":
8183
+ uiSchema.elements = [
8184
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8185
+ getInputField("size", "Size"),
8186
+ getSelectField("color", "Color"),
8187
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8188
+ ];
8189
+ break;
7988
8190
  case "Box":
7989
8191
  uiSchema.elements = [
7990
8192
  getSelectField("iconName", "Icon Name"),
@@ -7995,20 +8197,27 @@ const buildPropertiesSection = function(type) {
7995
8197
  uiSchema.elements = [
7996
8198
  getInputField("height", "Height"),
7997
8199
  getInputField("heading", "Heading"),
8200
+ getInputField("subHeader", "Sub Header"),
7998
8201
  getSelectField("graphType", "Graph Type"),
7999
8202
  getInputField("leftLabel", "Left Label"),
8203
+ getInputField("rightLabel", "Right Label"),
8000
8204
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8001
8205
  getInputField("bottomLabel", "Bottom Label"),
8002
8206
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8003
8207
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8004
8208
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8005
- getInputField("yAxisValue", "Y-AxisValue"),
8006
- getInputField("xAxisValue", "X-AxisValue"),
8209
+ getInputField("yAxisValue", "Y-Axis Key"),
8210
+ getInputField("xAxisValue", "X-Axis Key"),
8211
+ getSelectField("xAxisType", "X-AxisType"),
8007
8212
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8008
8213
  getInputField("leftMargin", "Left Margin"),
8009
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
8010
- getArrayControl("legendLabels", "label"),
8011
- getArrayControl("pieArcColors", "color")
8214
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
8215
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8216
+ getSelectField("xAxisFormatType", "X Axis Format Type"),
8217
+ getInputField("growthRateKey", "Growth Rate Key"),
8218
+ getInputField("tooltipUnit", "Tooltip Unit"),
8219
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8220
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8012
8221
  ];
8013
8222
  break;
8014
8223
  case "WrapperSection":
@@ -8016,9 +8225,12 @@ const buildPropertiesSection = function(type) {
8016
8225
  getRadioInputField("divider", "Divider", ["YES", "No"]),
8017
8226
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
8018
8227
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8019
- getInputField("rowSpacing", "Row Spacing"),
8020
8228
  getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
8021
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8229
+ getInputField("rowSpacing", "Row Spacing"),
8230
+ getInputField("columnSpacing", "Column Spacing"),
8231
+ getInputField("spacing", "Spacing"),
8232
+ getInputField("iconUrl", "Icon Url"),
8233
+ emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8022
8234
  emptyBox$1("WrapperSectionEmpty2")
8023
8235
  ];
8024
8236
  break;
@@ -8027,7 +8239,7 @@ const buildPropertiesSection = function(type) {
8027
8239
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
8028
8240
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
8029
8241
  emptyBox$1("TabEmpty"),
8030
- getArrayControl("sectionLabels", "label")
8242
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
8031
8243
  ];
8032
8244
  break;
8033
8245
  case "Table":
@@ -8052,12 +8264,13 @@ const buildPropertiesSection = function(type) {
8052
8264
  buildWrapper("Tree Table Properties", [
8053
8265
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8054
8266
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8267
+ getRadioInputField("mergeExpandIcon", "Merge Expand Icon", ["YES", "NO"]),
8055
8268
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8056
8269
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8057
8270
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8058
8271
  getInputField("defaultColumnSize", "Default Column Size"),
8059
- ,
8060
- emptyBox$1("LazyLoadingTableEmpty3")
8272
+ getInputField("expandedKey", "Expanded Key"),
8273
+ getInputField("parentIdKey", "Parent Key")
8061
8274
  ]),
8062
8275
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
8063
8276
  sizeHolder,
@@ -8067,7 +8280,9 @@ const buildPropertiesSection = function(type) {
8067
8280
  case "Radio":
8068
8281
  uiSchema.elements = [
8069
8282
  getInputField("errorMessage", "Error Message"),
8070
- emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8283
+ getInputField("toolTip", "Tooltip"),
8284
+ getSelectField("toolTipPosition", "Tooltip Position"),
8285
+ emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8071
8286
  getArrayControl("sectionLabels", "label", "Options Of Radio")
8072
8287
  ];
8073
8288
  break;
@@ -8076,27 +8291,39 @@ const buildPropertiesSection = function(type) {
8076
8291
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8077
8292
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
8078
8293
  getSelectField("variant", "Variant"),
8079
- emptyBox$1("SelectEmpty")
8294
+ getInputField("toolTip", "Tooltip"),
8295
+ getSelectField("toolTipPosition", "Tooltip Position"),
8296
+ emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8080
8297
  ];
8081
8298
  break;
8082
8299
  case "MultipleSelect":
8083
8300
  uiSchema.elements = [
8084
8301
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8085
8302
  getSelectField("variant", "Variant"),
8086
- emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
8087
- emptyBox$1("MultipleSelectEmpty2")
8303
+ getInputField("toolTip", "Tooltip"),
8304
+ getSelectField("toolTipPosition", "Tooltip Position")
8305
+ ];
8306
+ break;
8307
+ case "PdfViewer":
8308
+ uiSchema.elements = [
8309
+ getInputField("scale", "Zoom"),
8310
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8088
8311
  ];
8089
8312
  break;
8090
8313
  case "Date":
8091
8314
  uiSchema.elements = [
8092
8315
  getSelectField("variant", "Variant"),
8093
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8316
+ getInputField("toolTip", "Tooltip"),
8317
+ getSelectField("toolTipPosition", "Tooltip Position"),
8318
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8094
8319
  ];
8095
8320
  break;
8096
8321
  case "DateTime":
8097
8322
  uiSchema.elements = [
8098
8323
  getSelectField("variant", "Variant"),
8099
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8324
+ getInputField("toolTip", "Tooltip"),
8325
+ getSelectField("toolTipPosition", "Tooltip Position"),
8326
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8100
8327
  ];
8101
8328
  break;
8102
8329
  case "Thought":
@@ -8108,6 +8335,8 @@ const buildPropertiesSection = function(type) {
8108
8335
  uiSchema.elements = [
8109
8336
  getInputField("imageUrl", "Image URL"),
8110
8337
  getInputField("height", "Image Height"),
8338
+ getInputField("toolTip", "Tooltip"),
8339
+ getSelectField("toolTipPosition", "Tooltip Position"),
8111
8340
  emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8112
8341
  ];
8113
8342
  break;
@@ -8118,12 +8347,19 @@ const buildPropertiesSection = function(type) {
8118
8347
  getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8119
8348
  getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8120
8349
  getInputField("description", "Enter description"),
8121
- emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8350
+ getInputField("toolTip", "Tooltip"),
8351
+ getSelectField("toolTipPosition", "Tooltip Position"),
8352
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8353
+ getInputField("noFileAvailableMessage", "No Found Message"),
8354
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8355
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8356
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8122
8357
  ];
8123
8358
  break;
8124
8359
  case "Camera":
8125
8360
  uiSchema.elements = [
8126
8361
  getSelectField("iconName", "Icon Name"),
8362
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
8127
8363
  getSelectField("color", "Color"),
8128
8364
  getInputField("tooltipMessage", "Tooltip Message"),
8129
8365
  getSelectField("variant", "Variant"),
@@ -8166,13 +8402,13 @@ const StyleSection = {
8166
8402
  }
8167
8403
  ]
8168
8404
  };
8169
- const TableSection = (theme) => {
8405
+ const TableSection = (theme, scopeName = "elements") => {
8170
8406
  const uiSchema = {
8171
8407
  type: "HorizontalLayout",
8172
8408
  elements: [
8173
8409
  {
8174
8410
  type: "Control",
8175
- scope: "#/properties/elements",
8411
+ scope: `#/properties/${scopeName}`,
8176
8412
  options: {
8177
8413
  widget: "Table"
8178
8414
  },
@@ -8183,7 +8419,7 @@ const TableSection = (theme) => {
8183
8419
  {
8184
8420
  widget: {
8185
8421
  type: "Control",
8186
- scope: "#/properties/New_Record",
8422
+ scope: `#/properties/${scopeName}_New_Record`,
8187
8423
  options: {
8188
8424
  widget: "IconButton"
8189
8425
  },
@@ -8210,7 +8446,7 @@ const TableSection = (theme) => {
8210
8446
  {
8211
8447
  widget: {
8212
8448
  type: "Control",
8213
- scope: "#/properties/Paste_Component",
8449
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8214
8450
  options: {
8215
8451
  widget: "IconButton"
8216
8452
  },
@@ -8275,7 +8511,7 @@ const TableSection = (theme) => {
8275
8511
  },
8276
8512
  {
8277
8513
  type: "Control",
8278
- scope: "#/properties/Copy_Component",
8514
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8279
8515
  options: {
8280
8516
  widget: "Button"
8281
8517
  },
@@ -8468,6 +8704,10 @@ var buildConfig = (FormData) => {
8468
8704
  if (formData.events) {
8469
8705
  delete formData.events;
8470
8706
  }
8707
+ if (formData.tabLabelElements) {
8708
+ component.tabLabelElements = formData.tabLabelElements || [];
8709
+ delete formData.tabLabelElements;
8710
+ }
8471
8711
  component = { ...formData, ...component };
8472
8712
  return component;
8473
8713
  };
@@ -8500,9 +8740,27 @@ const flatObjectValueInArray = (config2 = []) => {
8500
8740
  });
8501
8741
  return data;
8502
8742
  };
8743
+ const createKeyValueMap = (config2 = []) => {
8744
+ return config2.reduce((acc, item) => {
8745
+ if (!item.key)
8746
+ return acc;
8747
+ acc[item.key] = item.value;
8748
+ return acc;
8749
+ }, {});
8750
+ };
8503
8751
  const clearFromSessionStorage = () => {
8504
8752
  sessionStorage.removeItem("pageFormdata");
8505
8753
  };
8754
+ const validateAndShowErrors = (store2) => {
8755
+ if (_.isEmpty(store2.ctx.core.errors))
8756
+ return false;
8757
+ store2.setValidation("ValidateAndShow");
8758
+ store2.setNotify({
8759
+ Fail: true,
8760
+ FailMessage: "Error on Page"
8761
+ });
8762
+ return true;
8763
+ };
8506
8764
  const getNavigationHistory = (config2, path) => {
8507
8765
  if (path) {
8508
8766
  let urlRoutes = config2.name;
@@ -8561,11 +8819,13 @@ async function saveHandler(store2, service2, submitHandler) {
8561
8819
  const saveReturn = await submitHandler(store2, service2, config2);
8562
8820
  navigateHandler(store2, true, "/PageMasterRecords");
8563
8821
  } catch (err) {
8564
- navigateHandler(store2, false);
8822
+ navigateHandler(store2, false, void 0, err.message);
8565
8823
  }
8824
+ } else {
8825
+ navigateHandler(store2, false);
8566
8826
  }
8567
8827
  }
8568
- const navigateHandler = (store2, isSubmitted, pageName) => {
8828
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8569
8829
  if (isSubmitted) {
8570
8830
  sessionStorage.removeItem("pageFormdata");
8571
8831
  store2.navigate(pageName || -1);
@@ -8577,7 +8837,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8577
8837
  store2.setValidation("ValidateAndShow");
8578
8838
  store2.setNotify({
8579
8839
  Fail: true,
8580
- FailMessage: "Errors on Page"
8840
+ FailMessage: errorMessage || "Errors on Page"
8581
8841
  });
8582
8842
  }
8583
8843
  };
@@ -8606,7 +8866,7 @@ const sectionLabels = {
8606
8866
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8607
8867
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8608
8868
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8609
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8869
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8610
8870
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8611
8871
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8612
8872
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8617,15 +8877,19 @@ const sectionLabels = {
8617
8877
  ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8618
8878
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8619
8879
  RankCard: ["Core", "Properties", "Events", "Style"],
8880
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8620
8881
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8621
8882
  Timer: ["Core", "Events", "Style"],
8622
8883
  Rank: ["Core", "Events", "Style"],
8623
8884
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8624
- Array: ["Core", "Components", "Properties", "Events", "Validation"],
8885
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8886
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8625
8887
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8626
8888
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8627
8889
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8628
- PopUp: ["Core", "Components", "Properties", "Style"],
8890
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8891
+ PopOver: ["Core", "Components", "Properties", "Style"],
8892
+ PdfViewer: ["Core", "Properties", "Style"],
8629
8893
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8630
8894
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8631
8895
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8634,9 +8898,10 @@ const sectionLabels = {
8634
8898
  Thought: ["Core", "Properties", "Events", "Style"],
8635
8899
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8636
8900
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8637
- Image: ["Core", "Properties", "Style"],
8901
+ Image: ["Core", "Properties", "Events", "Style"],
8638
8902
  FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8639
- Camera: ["Core", "Properties", "Events", "Style", "Validation"]
8903
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8904
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8640
8905
  };
8641
8906
  function refreshPage(type, store2) {
8642
8907
  var _a, _b;
@@ -8649,6 +8914,7 @@ function refreshPage(type, store2) {
8649
8914
  Style: StyleSection,
8650
8915
  Events: EventSection(store2.theme.myTheme),
8651
8916
  Components: TableSection(store2.theme.myTheme),
8917
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8652
8918
  Properties: buildPropertiesSection(type),
8653
8919
  Validation: ValidationSection
8654
8920
  };
@@ -8839,13 +9105,19 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8839
9105
  },
8840
9106
  editComponents: function() {
8841
9107
  var _a, _b, _c;
9108
+ if (validateAndShowErrors(store2))
9109
+ return;
8842
9110
  const rowId = dynamicData2.path.split(".")[1];
8843
9111
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8844
9112
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8845
9113
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8846
9114
  if (path) {
8847
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8848
- const finalPath = `${path2}.elements[${rowId}]`;
9115
+ let finalPath = `${path}`;
9116
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9117
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9118
+ } else {
9119
+ finalPath = `${finalPath}.elements[${rowId}]`;
9120
+ }
8849
9121
  store2.searchParams.set("path", finalPath);
8850
9122
  store2.setSearchParams(store2.searchParams);
8851
9123
  this.setPage();
@@ -8857,7 +9129,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8857
9129
  var _a;
8858
9130
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8859
9131
  const rowId = sessionStorage.getItem("rowId");
8860
- store2.formData.elements.splice(rowId, 1);
9132
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9133
+ if (isTabLabelElements) {
9134
+ store2.formData.tabLabelElements.splice(rowId, 1);
9135
+ } else {
9136
+ store2.formData.elements.splice(rowId, 1);
9137
+ }
8861
9138
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8862
9139
  const data = path ? _.get(response, path) : response;
8863
9140
  store2.setFormdata(data);
@@ -8865,6 +9142,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8865
9142
  store2.updateDialog("popUpComponentSection");
8866
9143
  }
8867
9144
  sessionStorage.removeItem("rowId");
9145
+ sessionStorage.removeItem("isTabLabelElements");
8868
9146
  },
8869
9147
  deleteEvent: function(shouldUpdateDialog = true) {
8870
9148
  var _a;
@@ -8880,18 +9158,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8880
9158
  },
8881
9159
  widgetAddClickHandler: function() {
8882
9160
  var _a;
9161
+ if (validateAndShowErrors(store2))
9162
+ return;
8883
9163
  if (!Array.isArray(store2.formData.elements)) {
8884
9164
  store2.formData.elements = [];
8885
9165
  }
9166
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9167
+ store2.formData.tabLabelElements = [];
9168
+ }
8886
9169
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8887
9170
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8888
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9171
+ let finalPath = `${path}`;
9172
+ if (dynamicData2.path.startsWith("tabLabel")) {
9173
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9174
+ } else {
9175
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9176
+ }
8889
9177
  store2.searchParams.set("path", finalPath);
8890
9178
  store2.setSearchParams(store2.searchParams);
8891
9179
  this.setPage();
8892
9180
  },
8893
9181
  eventEditHandler: function() {
8894
9182
  var _a, _b;
9183
+ if (validateAndShowErrors(store2))
9184
+ return;
8895
9185
  const rowId = dynamicData2.path.split(".")[1];
8896
9186
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8897
9187
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -8901,6 +9191,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8901
9191
  },
8902
9192
  eventAddHandler: function() {
8903
9193
  var _a, _b;
9194
+ if (validateAndShowErrors(store2))
9195
+ return;
8904
9196
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8905
9197
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8906
9198
  if (!Array.isArray(store2.formData.events)) {
@@ -8916,6 +9208,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8916
9208
  deletePopUpComponent: function() {
8917
9209
  const rowId = dynamicData2.path.split(".")[1];
8918
9210
  sessionStorage.setItem("rowId", rowId);
9211
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8919
9212
  store2.updateDialog("popUpComponentSection");
8920
9213
  },
8921
9214
  deletePopUpEvent: function() {
@@ -8962,9 +9255,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8962
9255
  if (!Array.isArray(store2.formData.events)) {
8963
9256
  store2.formData.events = [];
8964
9257
  }
9258
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9259
+ store2.formData.tabLabelElements = [];
9260
+ }
8965
9261
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8966
9262
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8967
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9263
+ const currentLength = {
9264
+ "TabsComponent": formData.tabLabelElements.length,
9265
+ "Component": formData.elements.length,
9266
+ "Events": formData.events.length
9267
+ };
9268
+ const insertElementIndex = currentLength[elementType] || 0;
8968
9269
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8969
9270
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8970
9271
  const notificationMessages = {
@@ -8999,6 +9300,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8999
9300
  if (elementType === "Component") {
9000
9301
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9001
9302
  }
9303
+ if (elementType === "TabsComponent") {
9304
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9305
+ }
9002
9306
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9003
9307
  },
9004
9308
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -9074,6 +9378,8 @@ var pageMaster = (funcParams) => {
9074
9378
  },
9075
9379
  onAddClickHandler: function() {
9076
9380
  var _a;
9381
+ if (validateAndShowErrors(store2))
9382
+ return;
9077
9383
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9078
9384
  if (!Array.isArray(store2.formData.elements)) {
9079
9385
  store2.formData.elements = [];
@@ -9097,6 +9403,8 @@ var pageMaster = (funcParams) => {
9097
9403
  },
9098
9404
  eventAddHandler: function() {
9099
9405
  var _a;
9406
+ if (validateAndShowErrors(store2))
9407
+ return;
9100
9408
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9101
9409
  if (!Array.isArray(store2.formData.events)) {
9102
9410
  store2.formData.events = [];
@@ -9107,6 +9415,8 @@ var pageMaster = (funcParams) => {
9107
9415
  },
9108
9416
  editEvent: function() {
9109
9417
  var _a;
9418
+ if (validateAndShowErrors(store2))
9419
+ return;
9110
9420
  const rowId = dynamicData2.path.split(".")[1];
9111
9421
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9112
9422
  saveFormdataInSessionStorage(store2.ctx.core.data);
@@ -9194,7 +9504,9 @@ const EventSchema = {
9194
9504
  { title: "Row Movement", const: "onRowMovement" },
9195
9505
  { title: "Download", const: "onDownload" },
9196
9506
  { title: "Fail", const: "Fail" },
9197
- { title: "Key Down", const: "onKeyDown" }
9507
+ { title: "onClose", const: "onClose" },
9508
+ { title: "Key Down", const: "onKeyDown" },
9509
+ { title: "Set Style", const: "setStyle" }
9198
9510
  ]
9199
9511
  },
9200
9512
  Handler: {
@@ -10086,6 +10398,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10086
10398
  },
10087
10399
  addEvent: function() {
10088
10400
  var _a, _b, _c;
10401
+ if (validateAndShowErrors(store2))
10402
+ return;
10089
10403
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10090
10404
  if (!Array.isArray(store2.formData.events)) {
10091
10405
  store2.formData.events = [];
@@ -10098,6 +10412,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10098
10412
  },
10099
10413
  editEvent: function() {
10100
10414
  var _a;
10415
+ if (validateAndShowErrors(store2))
10416
+ return;
10101
10417
  const rowId = dynamicData2.path.split(".")[1];
10102
10418
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10103
10419
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
@@ -10533,7 +10849,7 @@ var service = (funcParams) => {
10533
10849
  const config2 = pageData == null ? void 0 : pageData.config;
10534
10850
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10535
10851
  const event2 = new CustomEvent("pageNameChanged", {
10536
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10852
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10537
10853
  });
10538
10854
  window.dispatchEvent(event2);
10539
10855
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -10576,6 +10892,25 @@ var service = (funcParams) => {
10576
10892
  funcParams.store.setUiSchema(uiSchema);
10577
10893
  });
10578
10894
  },
10895
+ getStyle: () => {
10896
+ var _a, _b, _c, _d;
10897
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10898
+ if (cloneEventGroup.setStyle) {
10899
+ let finalResponse = {};
10900
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10901
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10902
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10903
+ finalResponse = executeEvents({
10904
+ ...executeEventsParameters,
10905
+ config: eventConfig,
10906
+ componentName: path
10907
+ });
10908
+ }
10909
+ return finalResponse;
10910
+ }
10911
+ }
10912
+ return {};
10913
+ },
10579
10914
  onCellRenderer: (cellParams) => {
10580
10915
  var _a, _b, _c, _d, _e;
10581
10916
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10605,6 +10940,9 @@ var service = (funcParams) => {
10605
10940
  onFileDelete: async function() {
10606
10941
  this.callHandler("onFileDelete");
10607
10942
  },
10943
+ onClose: function() {
10944
+ this.callHandler("onClose");
10945
+ },
10608
10946
  onMount: function() {
10609
10947
  this.callHandler("onMount");
10610
10948
  },
@@ -10655,8 +10993,8 @@ var service = (funcParams) => {
10655
10993
  return;
10656
10994
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10657
10995
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10658
- var _a, _b;
10659
- 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) {
10996
+ var _a;
10997
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10660
10998
  return [];
10661
10999
  }
10662
11000
  return eventGroups.onChange[componentName].map(
@@ -10891,7 +11229,7 @@ const BarGraph = {
10891
11229
  type: "BarGraph",
10892
11230
  legendLabels: null
10893
11231
  },
10894
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11232
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10895
11233
  }
10896
11234
  };
10897
11235
  const PieGraph = {
@@ -10906,7 +11244,7 @@ const PieGraph = {
10906
11244
  type: "PieGraph",
10907
11245
  legendLabels: null
10908
11246
  },
10909
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11247
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10910
11248
  }
10911
11249
  };
10912
11250
  const LineGraph = {
@@ -10921,7 +11259,7 @@ const LineGraph = {
10921
11259
  type: "LineGraph",
10922
11260
  legendLabels: null
10923
11261
  },
10924
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11262
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10925
11263
  }
10926
11264
  };
10927
11265
  const HorizontalBarGraph = {
@@ -10936,7 +11274,37 @@ const HorizontalBarGraph = {
10936
11274
  type: "HorizontalBarGraph",
10937
11275
  legendLabels: null
10938
11276
  },
10939
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11277
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11278
+ }
11279
+ };
11280
+ const AreaBarGraph = {
11281
+ type: "Control",
11282
+ scope: "#/properties/graph",
11283
+ options: {
11284
+ widget: "Graph"
11285
+ },
11286
+ config: {
11287
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11288
+ main: {
11289
+ type: "AreaGraph",
11290
+ legendLabels: null
11291
+ },
11292
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11293
+ }
11294
+ };
11295
+ const StackBarLineG = {
11296
+ type: "Control",
11297
+ scope: "#/properties/graph",
11298
+ options: {
11299
+ widget: "Graph"
11300
+ },
11301
+ config: {
11302
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11303
+ main: {
11304
+ type: "StackBarLineGraph",
11305
+ legendLabels: null
11306
+ },
11307
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10940
11308
  }
10941
11309
  };
10942
11310
  const buildHorizontalBarGraph = (config2, componentScope2) => {
@@ -10955,13 +11323,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10955
11323
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10956
11324
  }
10957
11325
  if (config2.legendLabels) {
10958
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11326
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
10959
11327
  }
10960
11328
  if (config2.legendDirection) {
10961
11329
  horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10962
11330
  }
10963
11331
  if (config2.pieArcColors) {
10964
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11332
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
10965
11333
  }
10966
11334
  if (config2.xAxisValue) {
10967
11335
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11095,13 +11463,13 @@ const buildPieGraph = (config2, componentScope2) => {
11095
11463
  pieGraph.scope = componentScope2;
11096
11464
  pieGraph.config.main.header = config2.heading;
11097
11465
  if (config2.legendLabels) {
11098
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11466
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11099
11467
  }
11100
11468
  if (config2.xAxisValue) {
11101
11469
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
11102
11470
  }
11103
11471
  if (config2.pieArcColors) {
11104
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11472
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11105
11473
  }
11106
11474
  return pieGraph;
11107
11475
  };
@@ -11124,10 +11492,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
11124
11492
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
11125
11493
  barGraph.config.main.header = config2.heading;
11126
11494
  if (config2.legendLabels) {
11127
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11495
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11128
11496
  }
11129
11497
  if (config2.pieArcColors) {
11130
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11498
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11131
11499
  }
11132
11500
  if (config2.xAxisValue) {
11133
11501
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11193,6 +11561,7 @@ const buildTabSection = (config2, componentScope2) => {
11193
11561
  }
11194
11562
  if (config2.sectionLabels) {
11195
11563
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11564
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11196
11565
  }
11197
11566
  if (config2.style) {
11198
11567
  tab.config.style = JSON.parse(config2.style);
@@ -11205,9 +11574,11 @@ var WrapperSection = {
11205
11574
  config: {
11206
11575
  layout: 12,
11207
11576
  main: {
11208
- rowSpacing: 3,
11209
11577
  divider: true,
11210
- label: "Default Label"
11578
+ label: "Default Label",
11579
+ rowSpacing: 2,
11580
+ columnSpacing: 2,
11581
+ spacing: 2
11211
11582
  },
11212
11583
  defaultStyle: true
11213
11584
  },
@@ -11220,6 +11591,10 @@ const buildWrapperSection = (config2, componentScope2) => {
11220
11591
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11221
11592
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11222
11593
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11594
+ wrapper.config.main.icon = config2.iconUrl;
11595
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11596
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11597
+ wrapper.config.main.spacing = Number(config2.spacing);
11223
11598
  if (config2.defaultStyle) {
11224
11599
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11225
11600
  }
@@ -11269,6 +11644,15 @@ const buildTextField = (config2, componentScope2) => {
11269
11644
  if (config2.layout) {
11270
11645
  inputField.config.layout = createLayoutFormat(config2.layout);
11271
11646
  }
11647
+ if (config2.toolTip) {
11648
+ inputField.config.main.toolTip = config2.toolTip;
11649
+ }
11650
+ if (config2.toolTipPosition) {
11651
+ inputField.config.main.toolTipPosition = config2.toolTipPosition;
11652
+ }
11653
+ if (config2.iconName) {
11654
+ inputField.config.main.startIcon = config2.iconName;
11655
+ }
11272
11656
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11273
11657
  inputField.scope = componentScope2;
11274
11658
  return inputField;
@@ -11285,7 +11669,8 @@ var SelectInputField = {
11285
11669
  label: "",
11286
11670
  type: "text",
11287
11671
  freeSole: false
11288
- }
11672
+ },
11673
+ style: {}
11289
11674
  }
11290
11675
  };
11291
11676
  const buildSelect = (config2, componentScope2) => {
@@ -11306,6 +11691,15 @@ const buildSelect = (config2, componentScope2) => {
11306
11691
  if (config2.layout) {
11307
11692
  selectInputField.config.layout = createLayoutFormat(config2.layout);
11308
11693
  }
11694
+ if (config2.toolTip) {
11695
+ selectInputField.config.main.toolTip = config2.toolTip;
11696
+ }
11697
+ if (config2.toolTipPosition) {
11698
+ selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11699
+ }
11700
+ if (config2.style) {
11701
+ selectInputField.config.style = JSON.parse(config2.style);
11702
+ }
11309
11703
  selectInputField.scope = componentScope2;
11310
11704
  return selectInputField;
11311
11705
  };
@@ -11467,6 +11861,15 @@ const buildTable = (config2, componentScope2) => {
11467
11861
  if (config2.layout) {
11468
11862
  table.config.layout = createLayoutFormat(config2.layout);
11469
11863
  }
11864
+ if (config2.mergeExpandIcon) {
11865
+ table.config.main.mergeExpandIcon = config2.mergeExpandIcon === "YES" ? true : false;
11866
+ }
11867
+ if (config2.expandedKey) {
11868
+ table.config.main.expandedKey = config2.expandedKey;
11869
+ }
11870
+ if (config2.parentIdKey) {
11871
+ table.config.main.parentIdKey = config2.parentIdKey;
11872
+ }
11470
11873
  return table;
11471
11874
  };
11472
11875
  const Box = {
@@ -11478,7 +11881,8 @@ const Box = {
11478
11881
  config: {
11479
11882
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11480
11883
  main: {
11481
- iconName: ""
11884
+ iconName: "",
11885
+ onClick: "onClick"
11482
11886
  },
11483
11887
  style: {}
11484
11888
  }
@@ -11547,6 +11951,12 @@ const buildUploadFile = (config2, componentScope2) => {
11547
11951
  if (config2.required) {
11548
11952
  UploadFile.config.main.required = true;
11549
11953
  }
11954
+ if (config2.toolTip) {
11955
+ UploadFile.config.main.toolTip = config2.toolTip;
11956
+ }
11957
+ if (config2.toolTipPosition) {
11958
+ UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
11959
+ }
11550
11960
  UploadFile.config.main.errorMessage = config2.errorMessage;
11551
11961
  return UploadFile;
11552
11962
  };
@@ -11569,6 +11979,12 @@ const buildDownloadFile = (config2, componentScope2) => {
11569
11979
  if (config2.errorMessage) {
11570
11980
  DownloadFile.config.main.errorMessage = config2.errorMessage;
11571
11981
  }
11982
+ if (config2.toolTip) {
11983
+ DownloadFile.config.main.toolTip = config2.toolTip;
11984
+ }
11985
+ if (config2.toolTipPosition) {
11986
+ DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
11987
+ }
11572
11988
  return DownloadFile;
11573
11989
  };
11574
11990
  function Card(theme) {
@@ -11761,6 +12177,46 @@ const buildCard = (config, componentScope, store) => {
11761
12177
  }
11762
12178
  return card;
11763
12179
  };
12180
+ var MetricCard = {
12181
+ type: "Control",
12182
+ scope: "#/properties/metricpath",
12183
+ options: {
12184
+ widget: "MetricCard"
12185
+ },
12186
+ config: {
12187
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12188
+ main: {}
12189
+ }
12190
+ };
12191
+ const buildMetricCard = (config2, componentScope2, store2) => {
12192
+ const card2 = _.cloneDeep(MetricCard);
12193
+ card2.scope = componentScope2;
12194
+ if (config2.style) {
12195
+ card2.config.style = JSON.parse(config2.style);
12196
+ }
12197
+ if (config2.layout) {
12198
+ card2.config.layout = createLayoutFormat(config2.layout);
12199
+ }
12200
+ if (config2.label) {
12201
+ card2.config.main.label = config2.label;
12202
+ }
12203
+ if (config2.url) {
12204
+ card2.config.main.url = config2.url;
12205
+ }
12206
+ if (config2.description) {
12207
+ card2.config.main.description = config2.description;
12208
+ }
12209
+ if (config2.cardValue) {
12210
+ card2.config.main.cardValue = config2.cardValue;
12211
+ }
12212
+ if (config2.growthRate) {
12213
+ card2.config.main.growthRate = config2.growthRate;
12214
+ }
12215
+ if (config2.color) {
12216
+ card2.config.main.color = config2.color;
12217
+ }
12218
+ return card2;
12219
+ };
11764
12220
  var DateInputField = {
11765
12221
  type: "Control",
11766
12222
  scope: "#/properties/date",
@@ -11792,7 +12248,6 @@ const DateTime = {
11792
12248
  const buildDate = (config2, componentScope2) => {
11793
12249
  const dateInputField = _.cloneDeep(DateInputField);
11794
12250
  dateInputField.config.main.label = config2.label;
11795
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11796
12251
  dateInputField.scope = componentScope2;
11797
12252
  if (config2.layout) {
11798
12253
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11800,12 +12255,20 @@ const buildDate = (config2, componentScope2) => {
11800
12255
  if (config2.variant) {
11801
12256
  dateInputField.config.main.variant = config2.variant;
11802
12257
  }
12258
+ if (config2.toolTip) {
12259
+ dateInputField.config.main.toolTip = config2.toolTip;
12260
+ }
12261
+ if (config2.toolTipPosition) {
12262
+ dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12263
+ }
12264
+ if (config2.style) {
12265
+ dateInputField.config.style = JSON.parse(config2.style);
12266
+ }
11803
12267
  return dateInputField;
11804
12268
  };
11805
12269
  const buildDateTime = (config2, componentScope2) => {
11806
12270
  const dateTimeInputField = _.cloneDeep(DateTime);
11807
12271
  dateTimeInputField.config.main.label = config2.label;
11808
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11809
12272
  dateTimeInputField.scope = componentScope2;
11810
12273
  if (config2.layout) {
11811
12274
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11813,6 +12276,15 @@ const buildDateTime = (config2, componentScope2) => {
11813
12276
  if (config2.variant) {
11814
12277
  dateTimeInputField.config.main.variant = config2.variant;
11815
12278
  }
12279
+ if (config2.toolTip) {
12280
+ dateTimeInputField.config.main.toolTip = config2.toolTip;
12281
+ }
12282
+ if (config2.toolTipPosition) {
12283
+ dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12284
+ }
12285
+ if (config2.style) {
12286
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12287
+ }
11816
12288
  return dateTimeInputField;
11817
12289
  };
11818
12290
  var RankCard = {
@@ -11903,7 +12375,8 @@ var MultipleSelect = {
11903
12375
  multiple: true,
11904
12376
  variant: "outlined",
11905
12377
  options: []
11906
- }
12378
+ },
12379
+ style: {}
11907
12380
  }
11908
12381
  };
11909
12382
  const buildMultiSelect = (config2, componentScope2) => {
@@ -11924,6 +12397,15 @@ const buildMultiSelect = (config2, componentScope2) => {
11924
12397
  if (config2.lazyLoading) {
11925
12398
  multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11926
12399
  }
12400
+ if (config2.toolTip) {
12401
+ multipleSelect.config.main.toolTip = config2.toolTip;
12402
+ }
12403
+ if (config2.toolTipPosition) {
12404
+ multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12405
+ }
12406
+ if (config2.style) {
12407
+ multipleSelect.config.style = JSON.parse(config2.style);
12408
+ }
11927
12409
  return multipleSelect;
11928
12410
  };
11929
12411
  const buildBasicUiSchema = (config2) => {
@@ -12070,10 +12552,10 @@ const buildLineGraph = (config2, componentScope2) => {
12070
12552
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
12071
12553
  }
12072
12554
  if (config2.legendLabels) {
12073
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12555
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
12074
12556
  }
12075
12557
  if (config2.pieArcColors) {
12076
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12558
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
12077
12559
  }
12078
12560
  lineGraph.scope = componentScope2;
12079
12561
  return lineGraph;
@@ -12108,6 +12590,12 @@ const buildRadio = (config2, componentScope2) => {
12108
12590
  if (config2.errorMessage) {
12109
12591
  Radio.config.main.errorMessage = config2.errorMessage;
12110
12592
  }
12593
+ if (config2.toolTip) {
12594
+ Radio.config.main.toolTip = config2.toolTip;
12595
+ }
12596
+ if (config2.toolTipPosition) {
12597
+ Radio.config.main.toolTipPosition = config2.toolTipPosition;
12598
+ }
12111
12599
  return Radio;
12112
12600
  };
12113
12601
  var emptyBox = {
@@ -12156,7 +12644,11 @@ const buildArray = (config2, componentScope2) => {
12156
12644
  if (config2.style) {
12157
12645
  array.config.style = JSON.parse(config2.style);
12158
12646
  }
12647
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12648
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12649
+ array.config.main.spacing = Number(config2.spacing);
12159
12650
  array.config.main.childElementLabel = config2.childElementLabel;
12651
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12160
12652
  array.config.main.label = config2.label;
12161
12653
  array.scope = componentScope2;
12162
12654
  return array;
@@ -12231,7 +12723,8 @@ const FileInput = {
12231
12723
  required: false,
12232
12724
  onUpload: "onFileUpload",
12233
12725
  onDownload: "onFileDownload",
12234
- label: "Aggrement Copy"
12726
+ label: "Aggrement Copy",
12727
+ "onClick": "onClick"
12235
12728
  },
12236
12729
  style: {
12237
12730
  backgroundColor: "none"
@@ -12248,21 +12741,19 @@ const buildFileInput = (config2, componentScope2) => {
12248
12741
  if (config2.style) {
12249
12742
  box.config.style = JSON.parse(config2.style);
12250
12743
  }
12251
- if (config2.variant) {
12252
- box.config.main.variant = config2.variant;
12253
- }
12254
- if (config2.disableUpload) {
12255
- box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12256
- }
12257
- if (config2.disableDownload) {
12258
- box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12259
- }
12260
- if (config2.disableDelete) {
12261
- box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12262
- }
12263
- if (config2.description) {
12264
- box.config.main.description = config2.description;
12265
- }
12744
+ box.config.main.variant = config2.variant;
12745
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12746
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12747
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12748
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12749
+ box.config.main.description = config2.description;
12750
+ box.config.main.toolTip = config2.toolTip;
12751
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12752
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12753
+ if (config2.toolTipPosition) {
12754
+ box.config.main.toolTipPosition = config2.toolTipPosition;
12755
+ }
12756
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12266
12757
  return box;
12267
12758
  };
12268
12759
  const Stepper = {
@@ -12319,6 +12810,7 @@ const PopUP = {
12319
12810
  },
12320
12811
  main: {
12321
12812
  label: "PopUp",
12813
+ onClose: "onClose",
12322
12814
  fullScreen: false,
12323
12815
  fullWidth: false,
12324
12816
  maxWidth: false,
@@ -12542,7 +13034,8 @@ const imageUiSchema = {
12542
13034
  config: {
12543
13035
  layout: 3,
12544
13036
  main: {
12545
- url: ""
13037
+ url: "",
13038
+ onClick: "onClick"
12546
13039
  },
12547
13040
  style: {}
12548
13041
  }
@@ -12560,8 +13053,134 @@ const buildImage = (config2, componentScope2) => {
12560
13053
  if (config2.height) {
12561
13054
  image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
12562
13055
  }
13056
+ image.config.main.toolTip = config2.toolTip;
13057
+ image.config.main.toolTipPosition = config2.toolTipPosition;
12563
13058
  return image;
12564
13059
  };
13060
+ const buildAreaGraph = (config2, componentScope2) => {
13061
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13062
+ AreaGraph.scope = componentScope2;
13063
+ if (config2.layout) {
13064
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13065
+ }
13066
+ AreaGraph.config.main.type = config2.graphType;
13067
+ AreaGraph.scope = componentScope2;
13068
+ AreaGraph.config.main.header = config2.heading;
13069
+ AreaGraph.config.main.subHeader = config2.subHeader;
13070
+ if (config2.legendHide) {
13071
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13072
+ }
13073
+ if (config2.bottomAxisAngle) {
13074
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13075
+ }
13076
+ if (config2.legendLabels) {
13077
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13078
+ }
13079
+ if (config2.legendDirection) {
13080
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13081
+ }
13082
+ if (config2.height) {
13083
+ AreaGraph.config.style.containerStyle.height = config2.height;
13084
+ }
13085
+ if (config2.pieArcColors) {
13086
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13087
+ }
13088
+ if (config2.xAxisFormatType) {
13089
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13090
+ }
13091
+ if (config2.yAxisTickCount) {
13092
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13093
+ }
13094
+ if (config2.xAxisTickCount) {
13095
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13096
+ }
13097
+ if (config2.xAxisValue) {
13098
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13099
+ }
13100
+ if (config2.xAxisType) {
13101
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13102
+ }
13103
+ if (config2.bottomLabel) {
13104
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13105
+ }
13106
+ if (config2.leftLabel) {
13107
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13108
+ }
13109
+ if (config2.disableLeftLabel) {
13110
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13111
+ }
13112
+ if (config2.leftMargin) {
13113
+ AreaGraph.config.style.labelStyle.margin = {
13114
+ left: config2.leftMargin
13115
+ };
13116
+ }
13117
+ return AreaGraph;
13118
+ };
13119
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13120
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13121
+ StackBarLineGraph.scope = componentScope2;
13122
+ if (config2.layout) {
13123
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13124
+ }
13125
+ StackBarLineGraph.config.main.type = config2.graphType;
13126
+ StackBarLineGraph.scope = componentScope2;
13127
+ StackBarLineGraph.config.main.header = config2.heading;
13128
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13129
+ if (config2.legendHide) {
13130
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13131
+ }
13132
+ if (config2.bottomAxisAngle) {
13133
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13134
+ }
13135
+ if (config2.legendLabels) {
13136
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13137
+ }
13138
+ if (config2.legendDirection) {
13139
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13140
+ }
13141
+ if (config2.height) {
13142
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13143
+ }
13144
+ if (config2.pieArcColors) {
13145
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13146
+ }
13147
+ if (config2.yAxisTickCount) {
13148
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13149
+ }
13150
+ if (config2.xAxisTickCount) {
13151
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13152
+ }
13153
+ if (config2.xAxisValue) {
13154
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13155
+ }
13156
+ if (config2.xAxisType) {
13157
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13158
+ }
13159
+ if (config2.bottomLabel) {
13160
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13161
+ }
13162
+ if (config2.leftLabel) {
13163
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13164
+ }
13165
+ if (config2.rightLabel) {
13166
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13167
+ }
13168
+ if (config2.disableLeftLabel) {
13169
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13170
+ }
13171
+ if (config2.growthRateKey) {
13172
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13173
+ }
13174
+ if (config2.tooltipUnit) {
13175
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13176
+ }
13177
+ if (config2.leftMargin) {
13178
+ StackBarLineGraph.config.style.labelStyle.margin = {
13179
+ left: config2.leftMargin
13180
+ };
13181
+ }
13182
+ return StackBarLineGraph;
13183
+ };
12565
13184
  const cameraUiSchema = {
12566
13185
  type: "Control",
12567
13186
  scope: "#/properties/camera",
@@ -12588,6 +13207,7 @@ const buildCamera = (config2, componentScope2) => {
12588
13207
  if (config2.tooltipMessage) {
12589
13208
  camera.config.main.tooltipMessage = config2.tooltipMessage;
12590
13209
  }
13210
+ camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
12591
13211
  if (config2.style) {
12592
13212
  camera.config.style = JSON.parse(config2.style);
12593
13213
  }
@@ -12601,10 +13221,149 @@ const buildCamera = (config2, componentScope2) => {
12601
13221
  camera.config.main.color = config2.color;
12602
13222
  }
12603
13223
  if (config2.label) {
12604
- camera.config.main.name = config2.label;
13224
+ camera.config.main.label = config2.label;
12605
13225
  }
12606
13226
  return camera;
12607
13227
  };
13228
+ var ButtonGroup = {
13229
+ type: "Control",
13230
+ scope: "#/properties/buttonGroup",
13231
+ options: {
13232
+ widget: "ButtonGroup"
13233
+ },
13234
+ config: {
13235
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13236
+ main: {
13237
+ variant: "contained",
13238
+ styleDefault: false,
13239
+ size: "small"
13240
+ },
13241
+ style: {}
13242
+ }
13243
+ };
13244
+ const buildButtonGroup = (config2, componentScope2) => {
13245
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13246
+ if (config2.layout) {
13247
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13248
+ }
13249
+ buttonGroup.scope = componentScope2;
13250
+ if (config2.multiSelect) {
13251
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13252
+ }
13253
+ if (config2.style) {
13254
+ buttonGroup.config.style = JSON.parse(config2.style);
13255
+ }
13256
+ if (config2.size) {
13257
+ buttonGroup.config.main.size = config2.size;
13258
+ }
13259
+ if (config2.color) {
13260
+ buttonGroup.config.main.color = config2.color;
13261
+ }
13262
+ return buttonGroup;
13263
+ };
13264
+ const PopOver = {
13265
+ type: "Control",
13266
+ scope: "#/properties/text",
13267
+ options: {
13268
+ widget: "Popover"
13269
+ },
13270
+ config: {
13271
+ layout: {
13272
+ xs: 12,
13273
+ sm: 12,
13274
+ md: 12,
13275
+ lg: 12
13276
+ },
13277
+ main: {
13278
+ label: "PopOver"
13279
+ },
13280
+ style: {}
13281
+ }
13282
+ };
13283
+ const buildPopOver = (config2, componentScope2) => {
13284
+ const popOver = _.cloneDeep(PopOver);
13285
+ popOver.scope = componentScope2;
13286
+ popOver.config.main.positionVertical = config2.positionVertical;
13287
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13288
+ popOver.config.main.contentVertical = config2.contentVertical;
13289
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13290
+ popOver.config.main.width = config2.width;
13291
+ popOver.config.main.gap = config2.gap;
13292
+ if (config2.layout) {
13293
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13294
+ }
13295
+ if (config2.style) {
13296
+ popOver.config.style = JSON.parse(config2.style);
13297
+ }
13298
+ return popOver;
13299
+ };
13300
+ const OTPSchema = {
13301
+ type: "Control",
13302
+ scope: "#/properties/OTPInput",
13303
+ options: {
13304
+ widget: "OTPInput"
13305
+ },
13306
+ config: {
13307
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13308
+ main: {
13309
+ seperator: "",
13310
+ length: 4,
13311
+ type: "number",
13312
+ masking: true
13313
+ }
13314
+ }
13315
+ };
13316
+ const buildOTP_Input = (config2, componentScope2) => {
13317
+ const OTP = _.cloneDeep(OTPSchema);
13318
+ OTP.scope = componentScope2;
13319
+ if (config2.layout) {
13320
+ OTP.config.layout = createLayoutFormat(config2.layout);
13321
+ }
13322
+ if (config2.style) {
13323
+ OTP.config.style = JSON.parse(config2.style);
13324
+ }
13325
+ if (config2.errorMessage) {
13326
+ OTP.config.main.errorMessage = config2.errorMessage;
13327
+ }
13328
+ if (config2.toolTip) {
13329
+ OTP.config.main.toolTip = config2.toolTip;
13330
+ }
13331
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13332
+ OTP.config.main.type = config2.OTP_Format;
13333
+ OTP.config.main.seperator = config2.seperator;
13334
+ OTP.config.main.length = +config2.length;
13335
+ return OTP;
13336
+ };
13337
+ var pdfViewer = {
13338
+ type: "Control",
13339
+ scope: "#/properties/pdfviewer",
13340
+ options: {
13341
+ widget: "PdfViewer"
13342
+ },
13343
+ config: {
13344
+ layout: {
13345
+ xs: 12,
13346
+ sm: 12,
13347
+ md: 12,
13348
+ lg: 12
13349
+ },
13350
+ main: {
13351
+ title: "PDF"
13352
+ }
13353
+ }
13354
+ };
13355
+ const buildPdfViewer = (config2, componentScope2) => {
13356
+ const PdfViewer = _.cloneDeep(pdfViewer);
13357
+ PdfViewer.scope = componentScope2;
13358
+ PdfViewer.config.main.scale = config2.scale;
13359
+ if (config2.layout) {
13360
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13361
+ }
13362
+ if (config2.style) {
13363
+ PdfViewer.config.style = JSON.parse(config2.style);
13364
+ }
13365
+ return PdfViewer;
13366
+ };
12608
13367
  let schema = {
12609
13368
  type: "object",
12610
13369
  properties: {},
@@ -12675,6 +13434,9 @@ const buildUiSchema = (config2, store2) => {
12675
13434
  let elements = {};
12676
13435
  const componentScope2 = `#/properties/${config2.name}`;
12677
13436
  switch (config2.type) {
13437
+ case "OTP_Input":
13438
+ elements = buildOTP_Input(config2, componentScope2);
13439
+ break;
12678
13440
  case "TreeMap":
12679
13441
  elements = buildTreeMap(config2, componentScope2);
12680
13442
  break;
@@ -12693,6 +13455,9 @@ const buildUiSchema = (config2, store2) => {
12693
13455
  case "PopUp":
12694
13456
  elements = buildPopUp(config2, componentScope2);
12695
13457
  break;
13458
+ case "PopOver":
13459
+ elements = buildPopOver(config2, componentScope2);
13460
+ break;
12696
13461
  case "FileInput":
12697
13462
  elements = buildFileInput(config2, componentScope2);
12698
13463
  break;
@@ -12732,6 +13497,9 @@ const buildUiSchema = (config2, store2) => {
12732
13497
  case "Button":
12733
13498
  elements = buildButton(config2, componentScope2);
12734
13499
  break;
13500
+ case "ButtonGroup":
13501
+ elements = buildButtonGroup(config2, componentScope2);
13502
+ break;
12735
13503
  case "Table":
12736
13504
  elements = buildTable(config2, componentScope2);
12737
13505
  break;
@@ -12756,6 +13524,9 @@ const buildUiSchema = (config2, store2) => {
12756
13524
  case "card":
12757
13525
  elements = buildCard(config2, componentScope2, store2);
12758
13526
  break;
13527
+ case "MetricCard":
13528
+ elements = buildMetricCard(config2, componentScope2);
13529
+ break;
12759
13530
  case "Graph":
12760
13531
  switch (config2.graphType) {
12761
13532
  case "BarGraph":
@@ -12772,6 +13543,12 @@ const buildUiSchema = (config2, store2) => {
12772
13543
  case "HorizontalStackBarGraph":
12773
13544
  elements = buildHorizontalBarGraph(config2, componentScope2);
12774
13545
  break;
13546
+ case "AreaGraph":
13547
+ elements = buildAreaGraph(config2, componentScope2);
13548
+ break;
13549
+ case "StackBarLineGraph":
13550
+ elements = buildStackBarLineGraph(config2, componentScope2);
13551
+ break;
12775
13552
  default:
12776
13553
  elements = buildStackbarGraph(config2, componentScope2);
12777
13554
  break;
@@ -12820,6 +13597,9 @@ const buildUiSchema = (config2, store2) => {
12820
13597
  case "Camera":
12821
13598
  elements = buildCamera(config2, componentScope2);
12822
13599
  break;
13600
+ case "PdfViewer":
13601
+ elements = buildPdfViewer(config2, componentScope2);
13602
+ break;
12823
13603
  default:
12824
13604
  schema = {
12825
13605
  type: "object",
@@ -12923,6 +13703,11 @@ const buildUiSchema = (config2, store2) => {
12923
13703
  });
12924
13704
  }
12925
13705
  }
13706
+ if (config2.tabLabelElements) {
13707
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13708
+ return buildUiSchema(e, store2);
13709
+ });
13710
+ }
12926
13711
  return elements;
12927
13712
  };
12928
13713
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };