impaktapps-ui-builder 1.0.174 → 1.0.180

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 (64) hide show
  1. package/dist/impaktapps-ui-builder.es.js +746 -80
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +11 -11
  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/runtime/services/service.d.ts +2 -0
  23. package/package.json +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  26. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
  27. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  28. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +26 -22
  29. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -49
  30. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  31. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  32. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  33. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  34. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  35. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  39. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  41. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
  42. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  43. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
  46. package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +33 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
  49. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  50. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +172 -16
  51. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  52. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  53. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  54. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  55. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  56. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  57. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  58. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  59. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  60. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +80 -1
  61. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  62. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
  63. package/src/impaktapps-ui-builder/builder/services/component.ts +143 -108
  64. package/src/impaktapps-ui-builder/runtime/services/service.ts +26 -4
@@ -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,34 @@ 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
+ },
6317
6366
  toolTipPosition: {
6318
6367
  oneOf: [
6319
6368
  { title: "Top", const: "top" },
@@ -6322,6 +6371,12 @@ const ComponentSchema = {
6322
6371
  { title: "Bottom", const: "bottom" }
6323
6372
  ]
6324
6373
  },
6374
+ growthRate: {
6375
+ oneOf: [
6376
+ { title: "Positive", const: "positive" },
6377
+ { title: "Negative", const: "negative" }
6378
+ ]
6379
+ },
6325
6380
  orientation: {
6326
6381
  oneOf: [
6327
6382
  { title: "Horizontal", const: "horizontal" },
@@ -6356,6 +6411,21 @@ const ComponentSchema = {
6356
6411
  { title: "Spacious", const: "spacious" }
6357
6412
  ]
6358
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
+ },
6359
6429
  layout: {
6360
6430
  type: "array",
6361
6431
  items: {
@@ -6491,6 +6561,9 @@ const ComponentSchema = {
6491
6561
  items: {
6492
6562
  type: "object",
6493
6563
  properties: {
6564
+ key: {
6565
+ type: "string"
6566
+ },
6494
6567
  label: {
6495
6568
  type: "string"
6496
6569
  }
@@ -6502,12 +6575,26 @@ const ComponentSchema = {
6502
6575
  items: {
6503
6576
  type: "object",
6504
6577
  properties: {
6578
+ key: {
6579
+ type: "string"
6580
+ },
6505
6581
  label: {
6506
6582
  type: "string"
6507
6583
  }
6508
6584
  }
6509
6585
  }
6510
6586
  },
6587
+ tabIcons: {
6588
+ type: "array",
6589
+ items: {
6590
+ type: "object",
6591
+ properties: {
6592
+ url: {
6593
+ type: "string"
6594
+ }
6595
+ }
6596
+ }
6597
+ },
6511
6598
  InputFormatingAndMasking: {
6512
6599
  type: "array",
6513
6600
  items: {
@@ -6569,7 +6656,9 @@ const ComponentSchema = {
6569
6656
  {
6570
6657
  title: "Stack Horizontal Bar Graph",
6571
6658
  const: "HorizontalStackBarGraph"
6572
- }
6659
+ },
6660
+ { title: "Area Graph", const: "AreaGraph" },
6661
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6573
6662
  ]
6574
6663
  },
6575
6664
  iconName: {
@@ -6605,6 +6694,7 @@ const ComponentSchema = {
6605
6694
  { title: "Drafts Icon", const: "DraftsIcon" },
6606
6695
  { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6607
6696
  { title: "Paste Icon", const: "PasteIcon" },
6697
+ { title: "Calendar", const: "Calendar" },
6608
6698
  { title: "Prev Icon", const: "PrevIcon" },
6609
6699
  { title: "Verified Icon", const: "VerifiedIcon" },
6610
6700
  { title: "Table Add Icon", const: "TableAddIcon" },
@@ -6621,7 +6711,12 @@ const ComponentSchema = {
6621
6711
  { title: "Clone Icon", const: "CloneIcon" },
6622
6712
  { title: "Detail Icon", const: "DetailIcon" },
6623
6713
  { title: "Report View Icon", const: "ReportViewIcon" },
6624
- { 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" }
6625
6720
  ]
6626
6721
  },
6627
6722
  color: {
@@ -7727,6 +7822,60 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7727
7822
  ]
7728
7823
  };
7729
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
+ };
7730
7879
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
7731
7880
  sizeHolder.elements[1] = {
7732
7881
  type: "Control",
@@ -7849,6 +7998,14 @@ const BaseSection = {
7849
7998
  const buildPropertiesSection = function(type) {
7850
7999
  let uiSchema = _.cloneDeep(BaseSection);
7851
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;
7852
8009
  case "Array":
7853
8010
  uiSchema.elements = [
7854
8011
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
@@ -7856,6 +8013,10 @@ const buildPropertiesSection = function(type) {
7856
8013
  getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
7857
8014
  getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
7858
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"),
7859
8020
  emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7860
8021
  ];
7861
8022
  break;
@@ -7909,6 +8070,17 @@ const buildPropertiesSection = function(type) {
7909
8070
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7910
8071
  ];
7911
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;
7912
8084
  case "Text":
7913
8085
  uiSchema.elements = [
7914
8086
  getInputField("placeholder", "Placeholder"),
@@ -7916,7 +8088,8 @@ const buildPropertiesSection = function(type) {
7916
8088
  getSelectField("variant", "Variant"),
7917
8089
  getInputField("toolTip", "Tooltip"),
7918
8090
  getSelectField("toolTipPosition", "Tooltip Position"),
7919
- emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8091
+ getSelectField("iconName", "Start Icon"),
8092
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
7920
8093
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
7921
8094
  getInputField("keyName", "Event Key Name")
7922
8095
  ];
@@ -7985,6 +8158,17 @@ const buildPropertiesSection = function(type) {
7985
8158
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7986
8159
  ];
7987
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;
7988
8172
  case "Button":
7989
8173
  uiSchema.elements = [
7990
8174
  getSelectField("buttonType", "Button Type"),
@@ -7995,6 +8179,14 @@ const buildPropertiesSection = function(type) {
7995
8179
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7996
8180
  ];
7997
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;
7998
8190
  case "Box":
7999
8191
  uiSchema.elements = [
8000
8192
  getSelectField("iconName", "Icon Name"),
@@ -8005,20 +8197,27 @@ const buildPropertiesSection = function(type) {
8005
8197
  uiSchema.elements = [
8006
8198
  getInputField("height", "Height"),
8007
8199
  getInputField("heading", "Heading"),
8200
+ getInputField("subHeader", "Sub Header"),
8008
8201
  getSelectField("graphType", "Graph Type"),
8009
8202
  getInputField("leftLabel", "Left Label"),
8203
+ getInputField("rightLabel", "Right Label"),
8010
8204
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8011
8205
  getInputField("bottomLabel", "Bottom Label"),
8012
8206
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8013
8207
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8014
8208
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8015
- getInputField("yAxisValue", "Y-AxisValue"),
8016
- getInputField("xAxisValue", "X-AxisValue"),
8209
+ getInputField("yAxisValue", "Y-Axis Key"),
8210
+ getInputField("xAxisValue", "X-Axis Key"),
8211
+ getSelectField("xAxisType", "X-AxisType"),
8017
8212
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8018
8213
  getInputField("leftMargin", "Left Margin"),
8019
- emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
8020
- getArrayControl("legendLabels", "label"),
8021
- 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")
8022
8221
  ];
8023
8222
  break;
8024
8223
  case "WrapperSection":
@@ -8026,9 +8225,12 @@ const buildPropertiesSection = function(type) {
8026
8225
  getRadioInputField("divider", "Divider", ["YES", "No"]),
8027
8226
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
8028
8227
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8029
- getInputField("rowSpacing", "Row Spacing"),
8030
8228
  getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
8031
- 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 }),
8032
8234
  emptyBox$1("WrapperSectionEmpty2")
8033
8235
  ];
8034
8236
  break;
@@ -8037,7 +8239,7 @@ const buildPropertiesSection = function(type) {
8037
8239
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
8038
8240
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
8039
8241
  emptyBox$1("TabEmpty"),
8040
- getArrayControl("sectionLabels", "label")
8242
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
8041
8243
  ];
8042
8244
  break;
8043
8245
  case "Table":
@@ -8063,7 +8265,6 @@ const buildPropertiesSection = function(type) {
8063
8265
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8064
8266
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8065
8267
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8066
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8067
8268
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8068
8269
  getInputField("defaultColumnSize", "Default Column Size"),
8069
8270
  ,
@@ -8101,12 +8302,18 @@ const buildPropertiesSection = function(type) {
8101
8302
  getSelectField("toolTipPosition", "Tooltip Position")
8102
8303
  ];
8103
8304
  break;
8305
+ case "PdfViewer":
8306
+ uiSchema.elements = [
8307
+ getInputField("scale", "Zoom"),
8308
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8309
+ ];
8310
+ break;
8104
8311
  case "Date":
8105
8312
  uiSchema.elements = [
8106
8313
  getSelectField("variant", "Variant"),
8107
8314
  getInputField("toolTip", "Tooltip"),
8108
8315
  getSelectField("toolTipPosition", "Tooltip Position"),
8109
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8316
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8110
8317
  ];
8111
8318
  break;
8112
8319
  case "DateTime":
@@ -8114,7 +8321,7 @@ const buildPropertiesSection = function(type) {
8114
8321
  getSelectField("variant", "Variant"),
8115
8322
  getInputField("toolTip", "Tooltip"),
8116
8323
  getSelectField("toolTipPosition", "Tooltip Position"),
8117
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8324
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8118
8325
  ];
8119
8326
  break;
8120
8327
  case "Thought":
@@ -8126,6 +8333,8 @@ const buildPropertiesSection = function(type) {
8126
8333
  uiSchema.elements = [
8127
8334
  getInputField("imageUrl", "Image URL"),
8128
8335
  getInputField("height", "Image Height"),
8336
+ getInputField("toolTip", "Tooltip"),
8337
+ getSelectField("toolTipPosition", "Tooltip Position"),
8129
8338
  emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8130
8339
  ];
8131
8340
  break;
@@ -8138,7 +8347,11 @@ const buildPropertiesSection = function(type) {
8138
8347
  getInputField("description", "Enter description"),
8139
8348
  getInputField("toolTip", "Tooltip"),
8140
8349
  getSelectField("toolTipPosition", "Tooltip Position"),
8141
- emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
8350
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8351
+ getInputField("noFileAvailableMessage", "No Found Message"),
8352
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
8353
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
8354
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8142
8355
  ];
8143
8356
  break;
8144
8357
  case "Camera":
@@ -8187,13 +8400,13 @@ const StyleSection = {
8187
8400
  }
8188
8401
  ]
8189
8402
  };
8190
- const TableSection = (theme) => {
8403
+ const TableSection = (theme, scopeName = "elements") => {
8191
8404
  const uiSchema = {
8192
8405
  type: "HorizontalLayout",
8193
8406
  elements: [
8194
8407
  {
8195
8408
  type: "Control",
8196
- scope: "#/properties/elements",
8409
+ scope: `#/properties/${scopeName}`,
8197
8410
  options: {
8198
8411
  widget: "Table"
8199
8412
  },
@@ -8204,7 +8417,7 @@ const TableSection = (theme) => {
8204
8417
  {
8205
8418
  widget: {
8206
8419
  type: "Control",
8207
- scope: "#/properties/New_Record",
8420
+ scope: `#/properties/${scopeName}_New_Record`,
8208
8421
  options: {
8209
8422
  widget: "IconButton"
8210
8423
  },
@@ -8231,7 +8444,7 @@ const TableSection = (theme) => {
8231
8444
  {
8232
8445
  widget: {
8233
8446
  type: "Control",
8234
- scope: "#/properties/Paste_Component",
8447
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8235
8448
  options: {
8236
8449
  widget: "IconButton"
8237
8450
  },
@@ -8296,7 +8509,7 @@ const TableSection = (theme) => {
8296
8509
  },
8297
8510
  {
8298
8511
  type: "Control",
8299
- scope: "#/properties/Copy_Component",
8512
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8300
8513
  options: {
8301
8514
  widget: "Button"
8302
8515
  },
@@ -8489,6 +8702,10 @@ var buildConfig = (FormData) => {
8489
8702
  if (formData.events) {
8490
8703
  delete formData.events;
8491
8704
  }
8705
+ if (formData.tabLabelElements) {
8706
+ component.tabLabelElements = formData.tabLabelElements || [];
8707
+ delete formData.tabLabelElements;
8708
+ }
8492
8709
  component = { ...formData, ...component };
8493
8710
  return component;
8494
8711
  };
@@ -8521,6 +8738,14 @@ const flatObjectValueInArray = (config2 = []) => {
8521
8738
  });
8522
8739
  return data;
8523
8740
  };
8741
+ const createKeyValueMap = (config2 = []) => {
8742
+ return config2.reduce((acc, item) => {
8743
+ if (!item.key)
8744
+ return acc;
8745
+ acc[item.key] = item.value;
8746
+ return acc;
8747
+ }, {});
8748
+ };
8524
8749
  const clearFromSessionStorage = () => {
8525
8750
  sessionStorage.removeItem("pageFormdata");
8526
8751
  };
@@ -8639,7 +8864,7 @@ const sectionLabels = {
8639
8864
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8640
8865
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8641
8866
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8642
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8867
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8643
8868
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8644
8869
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8645
8870
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8650,15 +8875,19 @@ const sectionLabels = {
8650
8875
  ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8651
8876
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8652
8877
  RankCard: ["Core", "Properties", "Events", "Style"],
8878
+ MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8653
8879
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8654
8880
  Timer: ["Core", "Events", "Style"],
8655
8881
  Rank: ["Core", "Events", "Style"],
8656
8882
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8657
- Array: ["Core", "Components", "Properties", "Events", "Validation"],
8883
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8884
+ Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8658
8885
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8659
8886
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8660
8887
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8661
- PopUp: ["Core", "Components", "Properties", "Style"],
8888
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8889
+ PopOver: ["Core", "Components", "Properties", "Style"],
8890
+ PdfViewer: ["Core", "Properties", "Style"],
8662
8891
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8663
8892
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8664
8893
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8667,9 +8896,10 @@ const sectionLabels = {
8667
8896
  Thought: ["Core", "Properties", "Events", "Style"],
8668
8897
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8669
8898
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8670
- Image: ["Core", "Properties", "Style"],
8899
+ Image: ["Core", "Properties", "Events", "Style"],
8671
8900
  FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8672
- Camera: ["Core", "Properties", "Events", "Style", "Validation"]
8901
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8902
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8673
8903
  };
8674
8904
  function refreshPage(type, store2) {
8675
8905
  var _a, _b;
@@ -8682,6 +8912,7 @@ function refreshPage(type, store2) {
8682
8912
  Style: StyleSection,
8683
8913
  Events: EventSection(store2.theme.myTheme),
8684
8914
  Components: TableSection(store2.theme.myTheme),
8915
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8685
8916
  Properties: buildPropertiesSection(type),
8686
8917
  Validation: ValidationSection
8687
8918
  };
@@ -8879,8 +9110,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8879
9110
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8880
9111
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8881
9112
  if (path) {
8882
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8883
- const finalPath = `${path2}.elements[${rowId}]`;
9113
+ let finalPath = `${path}`;
9114
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9115
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9116
+ } else {
9117
+ finalPath = `${finalPath}.elements[${rowId}]`;
9118
+ }
8884
9119
  store2.searchParams.set("path", finalPath);
8885
9120
  store2.setSearchParams(store2.searchParams);
8886
9121
  this.setPage();
@@ -8892,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8892
9127
  var _a;
8893
9128
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8894
9129
  const rowId = sessionStorage.getItem("rowId");
8895
- store2.formData.elements.splice(rowId, 1);
9130
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9131
+ if (isTabLabelElements) {
9132
+ store2.formData.tabLabelElements.splice(rowId, 1);
9133
+ } else {
9134
+ store2.formData.elements.splice(rowId, 1);
9135
+ }
8896
9136
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8897
9137
  const data = path ? _.get(response, path) : response;
8898
9138
  store2.setFormdata(data);
@@ -8900,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8900
9140
  store2.updateDialog("popUpComponentSection");
8901
9141
  }
8902
9142
  sessionStorage.removeItem("rowId");
9143
+ sessionStorage.removeItem("isTabLabelElements");
8903
9144
  },
8904
9145
  deleteEvent: function(shouldUpdateDialog = true) {
8905
9146
  var _a;
@@ -8920,9 +9161,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8920
9161
  if (!Array.isArray(store2.formData.elements)) {
8921
9162
  store2.formData.elements = [];
8922
9163
  }
9164
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9165
+ store2.formData.tabLabelElements = [];
9166
+ }
8923
9167
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8924
9168
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8925
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9169
+ let finalPath = `${path}`;
9170
+ if (dynamicData2.path.startsWith("tabLabel")) {
9171
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9172
+ } else {
9173
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9174
+ }
8926
9175
  store2.searchParams.set("path", finalPath);
8927
9176
  store2.setSearchParams(store2.searchParams);
8928
9177
  this.setPage();
@@ -8957,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8957
9206
  deletePopUpComponent: function() {
8958
9207
  const rowId = dynamicData2.path.split(".")[1];
8959
9208
  sessionStorage.setItem("rowId", rowId);
9209
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
8960
9210
  store2.updateDialog("popUpComponentSection");
8961
9211
  },
8962
9212
  deletePopUpEvent: function() {
@@ -9003,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9003
9253
  if (!Array.isArray(store2.formData.events)) {
9004
9254
  store2.formData.events = [];
9005
9255
  }
9256
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9257
+ store2.formData.tabLabelElements = [];
9258
+ }
9006
9259
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9007
9260
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9008
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9261
+ const currentLength = {
9262
+ "TabsComponent": formData.tabLabelElements.length,
9263
+ "Component": formData.elements.length,
9264
+ "Events": formData.events.length
9265
+ };
9266
+ const insertElementIndex = currentLength[elementType] || 0;
9009
9267
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9010
9268
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9011
9269
  const notificationMessages = {
@@ -9040,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9040
9298
  if (elementType === "Component") {
9041
9299
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9042
9300
  }
9301
+ if (elementType === "TabsComponent") {
9302
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9303
+ }
9043
9304
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9044
9305
  },
9045
9306
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -9241,7 +9502,9 @@ const EventSchema = {
9241
9502
  { title: "Row Movement", const: "onRowMovement" },
9242
9503
  { title: "Download", const: "onDownload" },
9243
9504
  { title: "Fail", const: "Fail" },
9244
- { title: "Key Down", const: "onKeyDown" }
9505
+ { title: "onClose", const: "onClose" },
9506
+ { title: "Key Down", const: "onKeyDown" },
9507
+ { title: "Set Style", const: "setStyle" }
9245
9508
  ]
9246
9509
  },
9247
9510
  Handler: {
@@ -10584,7 +10847,7 @@ var service = (funcParams) => {
10584
10847
  const config2 = pageData == null ? void 0 : pageData.config;
10585
10848
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10586
10849
  const event2 = new CustomEvent("pageNameChanged", {
10587
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10850
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10588
10851
  });
10589
10852
  window.dispatchEvent(event2);
10590
10853
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -10627,6 +10890,25 @@ var service = (funcParams) => {
10627
10890
  funcParams.store.setUiSchema(uiSchema);
10628
10891
  });
10629
10892
  },
10893
+ getStyle: () => {
10894
+ var _a, _b, _c, _d;
10895
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10896
+ if (cloneEventGroup.setStyle) {
10897
+ let finalResponse = {};
10898
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10899
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10900
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10901
+ finalResponse = executeEvents({
10902
+ ...executeEventsParameters,
10903
+ config: eventConfig,
10904
+ componentName: path
10905
+ });
10906
+ }
10907
+ return finalResponse;
10908
+ }
10909
+ }
10910
+ return {};
10911
+ },
10630
10912
  onCellRenderer: (cellParams) => {
10631
10913
  var _a, _b, _c, _d, _e;
10632
10914
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10656,6 +10938,9 @@ var service = (funcParams) => {
10656
10938
  onFileDelete: async function() {
10657
10939
  this.callHandler("onFileDelete");
10658
10940
  },
10941
+ onClose: function() {
10942
+ this.callHandler("onClose");
10943
+ },
10659
10944
  onMount: function() {
10660
10945
  this.callHandler("onMount");
10661
10946
  },
@@ -10679,14 +10964,15 @@ var service = (funcParams) => {
10679
10964
  return response == null ? void 0 : response.data;
10680
10965
  },
10681
10966
  onPaginationChange: async function(paginationValues) {
10682
- var _a, _b;
10967
+ var _a;
10683
10968
  const apiBody = [
10684
10969
  { key: "size", value: paginationValues.pagination.pageSize },
10685
10970
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10686
10971
  { key: "sorting", value: paginationValues.sorting || [] },
10687
10972
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10688
10973
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10689
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10974
+ { key: "parentIds", value: paginationValues.parentIds },
10975
+ { key: "isExpandAll", value: paginationValues.isExpandAll }
10690
10976
  ];
10691
10977
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10692
10978
  return response == null ? void 0 : response.data;
@@ -10706,8 +10992,8 @@ var service = (funcParams) => {
10706
10992
  return;
10707
10993
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10708
10994
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10709
- var _a, _b;
10710
- 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) {
10995
+ var _a;
10996
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10711
10997
  return [];
10712
10998
  }
10713
10999
  return eventGroups.onChange[componentName].map(
@@ -10942,7 +11228,7 @@ const BarGraph = {
10942
11228
  type: "BarGraph",
10943
11229
  legendLabels: null
10944
11230
  },
10945
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11231
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10946
11232
  }
10947
11233
  };
10948
11234
  const PieGraph = {
@@ -10957,7 +11243,7 @@ const PieGraph = {
10957
11243
  type: "PieGraph",
10958
11244
  legendLabels: null
10959
11245
  },
10960
- style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
11246
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10961
11247
  }
10962
11248
  };
10963
11249
  const LineGraph = {
@@ -10972,7 +11258,7 @@ const LineGraph = {
10972
11258
  type: "LineGraph",
10973
11259
  legendLabels: null
10974
11260
  },
10975
- style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
11261
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10976
11262
  }
10977
11263
  };
10978
11264
  const HorizontalBarGraph = {
@@ -10987,7 +11273,37 @@ const HorizontalBarGraph = {
10987
11273
  type: "HorizontalBarGraph",
10988
11274
  legendLabels: null
10989
11275
  },
10990
- style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
11276
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11277
+ }
11278
+ };
11279
+ const AreaBarGraph = {
11280
+ type: "Control",
11281
+ scope: "#/properties/graph",
11282
+ options: {
11283
+ widget: "Graph"
11284
+ },
11285
+ config: {
11286
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11287
+ main: {
11288
+ type: "AreaGraph",
11289
+ legendLabels: null
11290
+ },
11291
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11292
+ }
11293
+ };
11294
+ const StackBarLineG = {
11295
+ type: "Control",
11296
+ scope: "#/properties/graph",
11297
+ options: {
11298
+ widget: "Graph"
11299
+ },
11300
+ config: {
11301
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11302
+ main: {
11303
+ type: "StackBarLineGraph",
11304
+ legendLabels: null
11305
+ },
11306
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
10991
11307
  }
10992
11308
  };
10993
11309
  const buildHorizontalBarGraph = (config2, componentScope2) => {
@@ -11006,13 +11322,13 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
11006
11322
  horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11007
11323
  }
11008
11324
  if (config2.legendLabels) {
11009
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11325
+ horizontalBarGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11010
11326
  }
11011
11327
  if (config2.legendDirection) {
11012
11328
  horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11013
11329
  }
11014
11330
  if (config2.pieArcColors) {
11015
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11331
+ horizontalBarGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11016
11332
  }
11017
11333
  if (config2.xAxisValue) {
11018
11334
  horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11146,13 +11462,13 @@ const buildPieGraph = (config2, componentScope2) => {
11146
11462
  pieGraph.scope = componentScope2;
11147
11463
  pieGraph.config.main.header = config2.heading;
11148
11464
  if (config2.legendLabels) {
11149
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11465
+ pieGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11150
11466
  }
11151
11467
  if (config2.xAxisValue) {
11152
11468
  pieGraph.config.main.xAxisValue = config2.xAxisValue;
11153
11469
  }
11154
11470
  if (config2.pieArcColors) {
11155
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11471
+ pieGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11156
11472
  }
11157
11473
  return pieGraph;
11158
11474
  };
@@ -11175,10 +11491,10 @@ const buildStackbarGraph = (config2, componentScope2) => {
11175
11491
  barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
11176
11492
  barGraph.config.main.header = config2.heading;
11177
11493
  if (config2.legendLabels) {
11178
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11494
+ barGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
11179
11495
  }
11180
11496
  if (config2.pieArcColors) {
11181
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11497
+ barGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
11182
11498
  }
11183
11499
  if (config2.xAxisValue) {
11184
11500
  barGraph.config.main.xAxisValue = config2.xAxisValue;
@@ -11244,6 +11560,7 @@ const buildTabSection = (config2, componentScope2) => {
11244
11560
  }
11245
11561
  if (config2.sectionLabels) {
11246
11562
  tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11563
+ tab.config.main.tabIcons = config2.sectionLabels.map((e) => e.icon);
11247
11564
  }
11248
11565
  if (config2.style) {
11249
11566
  tab.config.style = JSON.parse(config2.style);
@@ -11256,9 +11573,11 @@ var WrapperSection = {
11256
11573
  config: {
11257
11574
  layout: 12,
11258
11575
  main: {
11259
- rowSpacing: 3,
11260
11576
  divider: true,
11261
- label: "Default Label"
11577
+ label: "Default Label",
11578
+ rowSpacing: 2,
11579
+ columnSpacing: 2,
11580
+ spacing: 2
11262
11581
  },
11263
11582
  defaultStyle: true
11264
11583
  },
@@ -11271,6 +11590,10 @@ const buildWrapperSection = (config2, componentScope2) => {
11271
11590
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11272
11591
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11273
11592
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11593
+ wrapper.config.main.icon = config2.iconUrl;
11594
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11595
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11596
+ wrapper.config.main.spacing = Number(config2.spacing);
11274
11597
  if (config2.defaultStyle) {
11275
11598
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11276
11599
  }
@@ -11326,6 +11649,9 @@ const buildTextField = (config2, componentScope2) => {
11326
11649
  if (config2.toolTipPosition) {
11327
11650
  inputField.config.main.toolTipPosition = config2.toolTipPosition;
11328
11651
  }
11652
+ if (config2.iconName) {
11653
+ inputField.config.main.startIcon = config2.iconName;
11654
+ }
11329
11655
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11330
11656
  inputField.scope = componentScope2;
11331
11657
  return inputField;
@@ -11342,7 +11668,8 @@ var SelectInputField = {
11342
11668
  label: "",
11343
11669
  type: "text",
11344
11670
  freeSole: false
11345
- }
11671
+ },
11672
+ style: {}
11346
11673
  }
11347
11674
  };
11348
11675
  const buildSelect = (config2, componentScope2) => {
@@ -11369,6 +11696,9 @@ const buildSelect = (config2, componentScope2) => {
11369
11696
  if (config2.toolTipPosition) {
11370
11697
  selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11371
11698
  }
11699
+ if (config2.style) {
11700
+ selectInputField.config.style = JSON.parse(config2.style);
11701
+ }
11372
11702
  selectInputField.scope = componentScope2;
11373
11703
  return selectInputField;
11374
11704
  };
@@ -11476,9 +11806,6 @@ const buildTable = (config2, componentScope2) => {
11476
11806
  if (config2.paginateExpandedRows) {
11477
11807
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11478
11808
  }
11479
- if (config2.treeStructure) {
11480
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11481
- }
11482
11809
  if (config2.SelectionAvailable) {
11483
11810
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11484
11811
  }
@@ -11541,7 +11868,8 @@ const Box = {
11541
11868
  config: {
11542
11869
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11543
11870
  main: {
11544
- iconName: ""
11871
+ iconName: "",
11872
+ onClick: "onClick"
11545
11873
  },
11546
11874
  style: {}
11547
11875
  }
@@ -11836,6 +12164,46 @@ const buildCard = (config, componentScope, store) => {
11836
12164
  }
11837
12165
  return card;
11838
12166
  };
12167
+ var MetricCard = {
12168
+ type: "Control",
12169
+ scope: "#/properties/metricpath",
12170
+ options: {
12171
+ widget: "MetricCard"
12172
+ },
12173
+ config: {
12174
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
12175
+ main: {}
12176
+ }
12177
+ };
12178
+ const buildMetricCard = (config2, componentScope2, store2) => {
12179
+ const card2 = _.cloneDeep(MetricCard);
12180
+ card2.scope = componentScope2;
12181
+ if (config2.style) {
12182
+ card2.config.style = JSON.parse(config2.style);
12183
+ }
12184
+ if (config2.layout) {
12185
+ card2.config.layout = createLayoutFormat(config2.layout);
12186
+ }
12187
+ if (config2.label) {
12188
+ card2.config.main.label = config2.label;
12189
+ }
12190
+ if (config2.url) {
12191
+ card2.config.main.url = config2.url;
12192
+ }
12193
+ if (config2.description) {
12194
+ card2.config.main.description = config2.description;
12195
+ }
12196
+ if (config2.cardValue) {
12197
+ card2.config.main.cardValue = config2.cardValue;
12198
+ }
12199
+ if (config2.growthRate) {
12200
+ card2.config.main.growthRate = config2.growthRate;
12201
+ }
12202
+ if (config2.color) {
12203
+ card2.config.main.color = config2.color;
12204
+ }
12205
+ return card2;
12206
+ };
11839
12207
  var DateInputField = {
11840
12208
  type: "Control",
11841
12209
  scope: "#/properties/date",
@@ -11867,7 +12235,6 @@ const DateTime = {
11867
12235
  const buildDate = (config2, componentScope2) => {
11868
12236
  const dateInputField = _.cloneDeep(DateInputField);
11869
12237
  dateInputField.config.main.label = config2.label;
11870
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11871
12238
  dateInputField.scope = componentScope2;
11872
12239
  if (config2.layout) {
11873
12240
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11881,12 +12248,14 @@ const buildDate = (config2, componentScope2) => {
11881
12248
  if (config2.toolTipPosition) {
11882
12249
  dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
11883
12250
  }
12251
+ if (config2.style) {
12252
+ dateInputField.config.style = JSON.parse(config2.style);
12253
+ }
11884
12254
  return dateInputField;
11885
12255
  };
11886
12256
  const buildDateTime = (config2, componentScope2) => {
11887
12257
  const dateTimeInputField = _.cloneDeep(DateTime);
11888
12258
  dateTimeInputField.config.main.label = config2.label;
11889
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11890
12259
  dateTimeInputField.scope = componentScope2;
11891
12260
  if (config2.layout) {
11892
12261
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -11900,6 +12269,9 @@ const buildDateTime = (config2, componentScope2) => {
11900
12269
  if (config2.toolTipPosition) {
11901
12270
  dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
11902
12271
  }
12272
+ if (config2.style) {
12273
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12274
+ }
11903
12275
  return dateTimeInputField;
11904
12276
  };
11905
12277
  var RankCard = {
@@ -11990,7 +12362,8 @@ var MultipleSelect = {
11990
12362
  multiple: true,
11991
12363
  variant: "outlined",
11992
12364
  options: []
11993
- }
12365
+ },
12366
+ style: {}
11994
12367
  }
11995
12368
  };
11996
12369
  const buildMultiSelect = (config2, componentScope2) => {
@@ -12017,6 +12390,9 @@ const buildMultiSelect = (config2, componentScope2) => {
12017
12390
  if (config2.toolTipPosition) {
12018
12391
  multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12019
12392
  }
12393
+ if (config2.style) {
12394
+ multipleSelect.config.style = JSON.parse(config2.style);
12395
+ }
12020
12396
  return multipleSelect;
12021
12397
  };
12022
12398
  const buildBasicUiSchema = (config2) => {
@@ -12163,10 +12539,10 @@ const buildLineGraph = (config2, componentScope2) => {
12163
12539
  lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
12164
12540
  }
12165
12541
  if (config2.legendLabels) {
12166
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12542
+ lineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
12167
12543
  }
12168
12544
  if (config2.pieArcColors) {
12169
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12545
+ lineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
12170
12546
  }
12171
12547
  lineGraph.scope = componentScope2;
12172
12548
  return lineGraph;
@@ -12255,7 +12631,11 @@ const buildArray = (config2, componentScope2) => {
12255
12631
  if (config2.style) {
12256
12632
  array.config.style = JSON.parse(config2.style);
12257
12633
  }
12634
+ array.config.main.rowSpacing = Number(config2.rowSpacing);
12635
+ array.config.main.columnSpacing = Number(config2.columnSpacing);
12636
+ array.config.main.spacing = Number(config2.spacing);
12258
12637
  array.config.main.childElementLabel = config2.childElementLabel;
12638
+ array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
12259
12639
  array.config.main.label = config2.label;
12260
12640
  array.scope = componentScope2;
12261
12641
  return array;
@@ -12330,7 +12710,8 @@ const FileInput = {
12330
12710
  required: false,
12331
12711
  onUpload: "onFileUpload",
12332
12712
  onDownload: "onFileDownload",
12333
- label: "Aggrement Copy"
12713
+ label: "Aggrement Copy",
12714
+ "onClick": "onClick"
12334
12715
  },
12335
12716
  style: {
12336
12717
  backgroundColor: "none"
@@ -12347,27 +12728,19 @@ const buildFileInput = (config2, componentScope2) => {
12347
12728
  if (config2.style) {
12348
12729
  box.config.style = JSON.parse(config2.style);
12349
12730
  }
12350
- if (config2.variant) {
12351
- box.config.main.variant = config2.variant;
12352
- }
12353
- if (config2.disableUpload) {
12354
- box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12355
- }
12356
- if (config2.disableDownload) {
12357
- box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12358
- }
12359
- if (config2.disableDelete) {
12360
- box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12361
- }
12362
- if (config2.description) {
12363
- box.config.main.description = config2.description;
12364
- }
12365
- if (config2.toolTip) {
12366
- box.config.main.toolTip = config2.toolTip;
12367
- }
12731
+ box.config.main.variant = config2.variant;
12732
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12733
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12734
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12735
+ box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
12736
+ box.config.main.description = config2.description;
12737
+ box.config.main.toolTip = config2.toolTip;
12738
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12739
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12368
12740
  if (config2.toolTipPosition) {
12369
12741
  box.config.main.toolTipPosition = config2.toolTipPosition;
12370
12742
  }
12743
+ box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
12371
12744
  return box;
12372
12745
  };
12373
12746
  const Stepper = {
@@ -12424,6 +12797,7 @@ const PopUP = {
12424
12797
  },
12425
12798
  main: {
12426
12799
  label: "PopUp",
12800
+ onClose: "onClose",
12427
12801
  fullScreen: false,
12428
12802
  fullWidth: false,
12429
12803
  maxWidth: false,
@@ -12647,7 +13021,8 @@ const imageUiSchema = {
12647
13021
  config: {
12648
13022
  layout: 3,
12649
13023
  main: {
12650
- url: ""
13024
+ url: "",
13025
+ onClick: "onClick"
12651
13026
  },
12652
13027
  style: {}
12653
13028
  }
@@ -12665,8 +13040,134 @@ const buildImage = (config2, componentScope2) => {
12665
13040
  if (config2.height) {
12666
13041
  image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
12667
13042
  }
13043
+ image.config.main.toolTip = config2.toolTip;
13044
+ image.config.main.toolTipPosition = config2.toolTipPosition;
12668
13045
  return image;
12669
13046
  };
13047
+ const buildAreaGraph = (config2, componentScope2) => {
13048
+ const AreaGraph = _.cloneDeep(AreaBarGraph);
13049
+ AreaGraph.scope = componentScope2;
13050
+ if (config2.layout) {
13051
+ AreaGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13052
+ }
13053
+ AreaGraph.config.main.type = config2.graphType;
13054
+ AreaGraph.scope = componentScope2;
13055
+ AreaGraph.config.main.header = config2.heading;
13056
+ AreaGraph.config.main.subHeader = config2.subHeader;
13057
+ if (config2.legendHide) {
13058
+ AreaGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13059
+ }
13060
+ if (config2.bottomAxisAngle) {
13061
+ AreaGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13062
+ }
13063
+ if (config2.legendLabels) {
13064
+ AreaGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13065
+ }
13066
+ if (config2.legendDirection) {
13067
+ AreaGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13068
+ }
13069
+ if (config2.height) {
13070
+ AreaGraph.config.style.containerStyle.height = config2.height;
13071
+ }
13072
+ if (config2.pieArcColors) {
13073
+ AreaGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13074
+ }
13075
+ if (config2.xAxisFormatType) {
13076
+ AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
13077
+ }
13078
+ if (config2.yAxisTickCount) {
13079
+ AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13080
+ }
13081
+ if (config2.xAxisTickCount) {
13082
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13083
+ }
13084
+ if (config2.xAxisValue) {
13085
+ AreaGraph.config.main.xAxisValue = config2.xAxisValue;
13086
+ }
13087
+ if (config2.xAxisType) {
13088
+ AreaGraph.config.main.xAxisType = config2.xAxisType;
13089
+ }
13090
+ if (config2.bottomLabel) {
13091
+ AreaGraph.config.main.bottomLabel = config2.bottomLabel;
13092
+ }
13093
+ if (config2.leftLabel) {
13094
+ AreaGraph.config.main.leftLabel = config2.leftLabel;
13095
+ }
13096
+ if (config2.disableLeftLabel) {
13097
+ AreaGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13098
+ }
13099
+ if (config2.leftMargin) {
13100
+ AreaGraph.config.style.labelStyle.margin = {
13101
+ left: config2.leftMargin
13102
+ };
13103
+ }
13104
+ return AreaGraph;
13105
+ };
13106
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13107
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13108
+ StackBarLineGraph.scope = componentScope2;
13109
+ if (config2.layout) {
13110
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13111
+ }
13112
+ StackBarLineGraph.config.main.type = config2.graphType;
13113
+ StackBarLineGraph.scope = componentScope2;
13114
+ StackBarLineGraph.config.main.header = config2.heading;
13115
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13116
+ if (config2.legendHide) {
13117
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13118
+ }
13119
+ if (config2.bottomAxisAngle) {
13120
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13121
+ }
13122
+ if (config2.legendLabels) {
13123
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13124
+ }
13125
+ if (config2.legendDirection) {
13126
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13127
+ }
13128
+ if (config2.height) {
13129
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13130
+ }
13131
+ if (config2.pieArcColors) {
13132
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13133
+ }
13134
+ if (config2.yAxisTickCount) {
13135
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13136
+ }
13137
+ if (config2.xAxisTickCount) {
13138
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13139
+ }
13140
+ if (config2.xAxisValue) {
13141
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13142
+ }
13143
+ if (config2.xAxisType) {
13144
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13145
+ }
13146
+ if (config2.bottomLabel) {
13147
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13148
+ }
13149
+ if (config2.leftLabel) {
13150
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13151
+ }
13152
+ if (config2.rightLabel) {
13153
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13154
+ }
13155
+ if (config2.disableLeftLabel) {
13156
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13157
+ }
13158
+ if (config2.growthRateKey) {
13159
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13160
+ }
13161
+ if (config2.tooltipUnit) {
13162
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13163
+ }
13164
+ if (config2.leftMargin) {
13165
+ StackBarLineGraph.config.style.labelStyle.margin = {
13166
+ left: config2.leftMargin
13167
+ };
13168
+ }
13169
+ return StackBarLineGraph;
13170
+ };
12670
13171
  const cameraUiSchema = {
12671
13172
  type: "Control",
12672
13173
  scope: "#/properties/camera",
@@ -12707,10 +13208,149 @@ const buildCamera = (config2, componentScope2) => {
12707
13208
  camera.config.main.color = config2.color;
12708
13209
  }
12709
13210
  if (config2.label) {
12710
- camera.config.main.name = config2.label;
13211
+ camera.config.main.label = config2.label;
12711
13212
  }
12712
13213
  return camera;
12713
13214
  };
13215
+ var ButtonGroup = {
13216
+ type: "Control",
13217
+ scope: "#/properties/buttonGroup",
13218
+ options: {
13219
+ widget: "ButtonGroup"
13220
+ },
13221
+ config: {
13222
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13223
+ main: {
13224
+ variant: "contained",
13225
+ styleDefault: false,
13226
+ size: "small"
13227
+ },
13228
+ style: {}
13229
+ }
13230
+ };
13231
+ const buildButtonGroup = (config2, componentScope2) => {
13232
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13233
+ if (config2.layout) {
13234
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13235
+ }
13236
+ buttonGroup.scope = componentScope2;
13237
+ if (config2.multiSelect) {
13238
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13239
+ }
13240
+ if (config2.style) {
13241
+ buttonGroup.config.style = JSON.parse(config2.style);
13242
+ }
13243
+ if (config2.size) {
13244
+ buttonGroup.config.main.size = config2.size;
13245
+ }
13246
+ if (config2.color) {
13247
+ buttonGroup.config.main.color = config2.color;
13248
+ }
13249
+ return buttonGroup;
13250
+ };
13251
+ const PopOver = {
13252
+ type: "Control",
13253
+ scope: "#/properties/text",
13254
+ options: {
13255
+ widget: "Popover"
13256
+ },
13257
+ config: {
13258
+ layout: {
13259
+ xs: 12,
13260
+ sm: 12,
13261
+ md: 12,
13262
+ lg: 12
13263
+ },
13264
+ main: {
13265
+ label: "PopOver"
13266
+ },
13267
+ style: {}
13268
+ }
13269
+ };
13270
+ const buildPopOver = (config2, componentScope2) => {
13271
+ const popOver = _.cloneDeep(PopOver);
13272
+ popOver.scope = componentScope2;
13273
+ popOver.config.main.positionVertical = config2.positionVertical;
13274
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13275
+ popOver.config.main.contentVertical = config2.contentVertical;
13276
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13277
+ popOver.config.main.width = config2.width;
13278
+ popOver.config.main.gap = config2.gap;
13279
+ if (config2.layout) {
13280
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13281
+ }
13282
+ if (config2.style) {
13283
+ popOver.config.style = JSON.parse(config2.style);
13284
+ }
13285
+ return popOver;
13286
+ };
13287
+ const OTPSchema = {
13288
+ type: "Control",
13289
+ scope: "#/properties/OTPInput",
13290
+ options: {
13291
+ widget: "OTPInput"
13292
+ },
13293
+ config: {
13294
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13295
+ main: {
13296
+ seperator: "",
13297
+ length: 4,
13298
+ type: "number",
13299
+ masking: true
13300
+ }
13301
+ }
13302
+ };
13303
+ const buildOTP_Input = (config2, componentScope2) => {
13304
+ const OTP = _.cloneDeep(OTPSchema);
13305
+ OTP.scope = componentScope2;
13306
+ if (config2.layout) {
13307
+ OTP.config.layout = createLayoutFormat(config2.layout);
13308
+ }
13309
+ if (config2.style) {
13310
+ OTP.config.style = JSON.parse(config2.style);
13311
+ }
13312
+ if (config2.errorMessage) {
13313
+ OTP.config.main.errorMessage = config2.errorMessage;
13314
+ }
13315
+ if (config2.toolTip) {
13316
+ OTP.config.main.toolTip = config2.toolTip;
13317
+ }
13318
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13319
+ OTP.config.main.type = config2.OTP_Format;
13320
+ OTP.config.main.seperator = config2.seperator;
13321
+ OTP.config.main.length = +config2.length;
13322
+ return OTP;
13323
+ };
13324
+ var pdfViewer = {
13325
+ type: "Control",
13326
+ scope: "#/properties/pdfviewer",
13327
+ options: {
13328
+ widget: "PdfViewer"
13329
+ },
13330
+ config: {
13331
+ layout: {
13332
+ xs: 12,
13333
+ sm: 12,
13334
+ md: 12,
13335
+ lg: 12
13336
+ },
13337
+ main: {
13338
+ title: "PDF"
13339
+ }
13340
+ }
13341
+ };
13342
+ const buildPdfViewer = (config2, componentScope2) => {
13343
+ const PdfViewer = _.cloneDeep(pdfViewer);
13344
+ PdfViewer.scope = componentScope2;
13345
+ PdfViewer.config.main.scale = config2.scale;
13346
+ if (config2.layout) {
13347
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13348
+ }
13349
+ if (config2.style) {
13350
+ PdfViewer.config.style = JSON.parse(config2.style);
13351
+ }
13352
+ return PdfViewer;
13353
+ };
12714
13354
  let schema = {
12715
13355
  type: "object",
12716
13356
  properties: {},
@@ -12781,6 +13421,9 @@ const buildUiSchema = (config2, store2) => {
12781
13421
  let elements = {};
12782
13422
  const componentScope2 = `#/properties/${config2.name}`;
12783
13423
  switch (config2.type) {
13424
+ case "OTP_Input":
13425
+ elements = buildOTP_Input(config2, componentScope2);
13426
+ break;
12784
13427
  case "TreeMap":
12785
13428
  elements = buildTreeMap(config2, componentScope2);
12786
13429
  break;
@@ -12799,6 +13442,9 @@ const buildUiSchema = (config2, store2) => {
12799
13442
  case "PopUp":
12800
13443
  elements = buildPopUp(config2, componentScope2);
12801
13444
  break;
13445
+ case "PopOver":
13446
+ elements = buildPopOver(config2, componentScope2);
13447
+ break;
12802
13448
  case "FileInput":
12803
13449
  elements = buildFileInput(config2, componentScope2);
12804
13450
  break;
@@ -12838,6 +13484,9 @@ const buildUiSchema = (config2, store2) => {
12838
13484
  case "Button":
12839
13485
  elements = buildButton(config2, componentScope2);
12840
13486
  break;
13487
+ case "ButtonGroup":
13488
+ elements = buildButtonGroup(config2, componentScope2);
13489
+ break;
12841
13490
  case "Table":
12842
13491
  elements = buildTable(config2, componentScope2);
12843
13492
  break;
@@ -12862,6 +13511,9 @@ const buildUiSchema = (config2, store2) => {
12862
13511
  case "card":
12863
13512
  elements = buildCard(config2, componentScope2, store2);
12864
13513
  break;
13514
+ case "MetricCard":
13515
+ elements = buildMetricCard(config2, componentScope2);
13516
+ break;
12865
13517
  case "Graph":
12866
13518
  switch (config2.graphType) {
12867
13519
  case "BarGraph":
@@ -12878,6 +13530,12 @@ const buildUiSchema = (config2, store2) => {
12878
13530
  case "HorizontalStackBarGraph":
12879
13531
  elements = buildHorizontalBarGraph(config2, componentScope2);
12880
13532
  break;
13533
+ case "AreaGraph":
13534
+ elements = buildAreaGraph(config2, componentScope2);
13535
+ break;
13536
+ case "StackBarLineGraph":
13537
+ elements = buildStackBarLineGraph(config2, componentScope2);
13538
+ break;
12881
13539
  default:
12882
13540
  elements = buildStackbarGraph(config2, componentScope2);
12883
13541
  break;
@@ -12926,6 +13584,9 @@ const buildUiSchema = (config2, store2) => {
12926
13584
  case "Camera":
12927
13585
  elements = buildCamera(config2, componentScope2);
12928
13586
  break;
13587
+ case "PdfViewer":
13588
+ elements = buildPdfViewer(config2, componentScope2);
13589
+ break;
12929
13590
  default:
12930
13591
  schema = {
12931
13592
  type: "object",
@@ -13029,6 +13690,11 @@ const buildUiSchema = (config2, store2) => {
13029
13690
  });
13030
13691
  }
13031
13692
  }
13693
+ if (config2.tabLabelElements) {
13694
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13695
+ return buildUiSchema(e, store2);
13696
+ });
13697
+ }
13032
13698
  return elements;
13033
13699
  };
13034
13700
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };