impaktapps-ui-builder 1.0.200 → 1.0.202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1125 -525
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -197
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -5
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  26. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  27. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
  28. package/package.json +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +22 -14
  30. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  31. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  33. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  34. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
  35. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
  38. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  41. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  42. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  43. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  46. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  48. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  49. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  51. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  54. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -3
  57. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +41 -3
  59. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
  61. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  62. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +242 -25
  63. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  64. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -188
  65. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  66. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +22 -6
  67. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  68. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  69. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  70. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  71. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  72. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  73. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  74. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +96 -2
  75. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  76. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
  77. package/src/impaktapps-ui-builder/builder/services/component.ts +150 -107
  78. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  79. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
  80. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  81. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +6 -7
  82. package/src/impaktapps-ui-builder/runtime/services/service.ts +34 -5
  83. package/dist/src/impaktapps-ui-builder/builder/build/buildDataCard.d.ts +0 -1
  84. package/dist/src/impaktapps-ui-builder/builder/build/uischema/dataCard.d.ts +0 -320
  85. package/src/impaktapps-ui-builder/builder/build/buildDataCard.tsx +0 -44
  86. package/src/impaktapps-ui-builder/builder/build/uischema/dataCard.ts +0 -207
@@ -0,0 +1,16 @@
1
+ import pdfViewer from "./uischema/pdfViewer";
2
+ import _ from "lodash";
3
+ import { createLayoutFormat } from "./buildConfig";
4
+
5
+ export const buildPdfViewer = (config, componentScope: string) => {
6
+ const PdfViewer: any = _.cloneDeep(pdfViewer)
7
+ PdfViewer.scope = componentScope;
8
+ PdfViewer.config.main.scale = config.scale;
9
+ if (config.layout) {
10
+ PdfViewer.config.layout = createLayoutFormat(config.layout);
11
+ }
12
+ if (config.style) {
13
+ PdfViewer.config.style = JSON.parse(config.style)
14
+ }
15
+ return PdfViewer
16
+ }
@@ -1,4 +1,4 @@
1
- import { createLayoutFormat, flatObjectValueInArray } from "./buildConfig";
1
+ import { createLayoutFormat, createKeyValueMap } from "./buildConfig";
2
2
  import { PieGraph } from "./uischema/graph";
3
3
  import _ from "lodash";
4
4
  export const buildPieGraph = (config, componentScope) => {
@@ -19,13 +19,13 @@ export const buildPieGraph = (config, componentScope) => {
19
19
  pieGraph.config.main.header = config.heading;
20
20
 
21
21
  if (config.legendLabels) {
22
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
22
+ pieGraph.config.main.legendLabels = createKeyValueMap(config.legendLabels);
23
23
  }
24
24
  if (config.xAxisValue) {
25
25
  pieGraph.config.main.xAxisValue = config.xAxisValue;
26
26
  }
27
27
  if (config.pieArcColors) {
28
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
28
+ pieGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
29
29
  }
30
30
  return pieGraph;
31
31
  }
@@ -17,6 +17,7 @@ const PopUP = {
17
17
  },
18
18
  main: {
19
19
  label: "PopUp",
20
+ onClose:"onClose",
20
21
  fullScreen:false,
21
22
  fullWidth:false,
22
23
  maxWidth:false,
@@ -0,0 +1,40 @@
1
+ import { createLayoutFormat } from "./buildConfig";
2
+ import _ from "lodash";
3
+
4
+ const PopOver = {
5
+ type: "Control",
6
+ scope: "#/properties/text",
7
+ options: {
8
+ widget: "Popover",
9
+ },
10
+ config: {
11
+ layout: {
12
+ xs: 12,
13
+ sm: 12,
14
+ md: 12,
15
+ lg: 12,
16
+ },
17
+ main: {
18
+ label: "PopOver"
19
+ },
20
+ style:{}
21
+ },
22
+ }
23
+ export const buildPopOver = (config,componentScope) =>{
24
+ const popOver: any = _.cloneDeep(PopOver);
25
+ popOver.scope = componentScope;
26
+ popOver.config.main.positionVertical = config.positionVertical;
27
+ popOver.config.main.positionHorizontal = config.positionHorizontal;
28
+ popOver.config.main.contentVertical = config.contentVertical;
29
+ popOver.config.main.contentHorizontal = config.contentHorizontal;
30
+ popOver.config.main.width = config.width;
31
+ popOver.config.main.gap = config.gap;
32
+
33
+ if (config.layout) {
34
+ popOver.config.layout = createLayoutFormat(config.layout, config.type)
35
+ }
36
+ if (config.style) {
37
+ popOver.config.style = JSON.parse(config.style)
38
+ }
39
+ return popOver;
40
+ }
@@ -1,26 +1,36 @@
1
1
  import progressBar from "./uischema/progressBar";
2
2
  import _ from "lodash";
3
- import { createLayoutFormat } from "./buildConfig";
3
+ import { createLayoutFormat, flatObjectValueInArray } from "./buildConfig";
4
4
 
5
- export const buildProgressBar = (config:any,componentScope:any) =>{
6
- const ProgressBar: any = _.cloneDeep(progressBar);
7
- ProgressBar.scope = componentScope;
8
- if (config.layout) {
9
- ProgressBar.config.layout = config.layout;
10
- }
11
- ProgressBar.config.main.heading = config.label;
12
- if (config.bottomLabel_3) {
13
- ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
14
- }
15
- if(config.layout){
16
- ProgressBar.config.layout = createLayoutFormat(config.layout)
17
- }
18
- if (config.bottomLabel_2) {
19
- ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
20
- }
21
- if (config.bottomLabel_1) {
22
- ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
23
- }
24
- return ProgressBar;
5
+ export const buildProgressBar = (config: any, componentScope: any) => {
6
+ const ProgressBar: any = _.cloneDeep(progressBar);
7
+ ProgressBar.scope = componentScope;
8
+ if (config.layout) {
9
+ ProgressBar.config.layout = config.layout;
10
+ }
11
+
12
+ ProgressBar.config.main.heading = config.label;
13
+ if(config.variant){
14
+ ProgressBar.config.main.variant = config.variant
15
+ }
16
+ if (config.pieArcColors) {
17
+ ProgressBar.config.main.colorRange = flatObjectValueInArray(config.pieArcColors);
18
+ }
19
+ if (config.size) {
20
+ ProgressBar.config.main.size = Number(config.size);
21
+ }
22
+ if (config.bottomLabel_3) {
23
+ ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
24
+ }
25
+ if (config.layout) {
26
+ ProgressBar.config.layout = createLayoutFormat(config.layout)
27
+ }
28
+ if (config.bottomLabel_2) {
29
+ ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
30
+ }
31
+ if (config.bottomLabel_1) {
32
+ ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
33
+ }
34
+ return ProgressBar;
25
35
 
26
36
  }
@@ -33,5 +33,11 @@ const RadioUiSchema = {
33
33
  if (config.errorMessage) {
34
34
  Radio.config.main.errorMessage = config.errorMessage
35
35
  }
36
+ if (config.toolTip) {
37
+ Radio.config.main.toolTip = config.toolTip;
38
+ }
39
+ if (config.toolTipPosition) {
40
+ Radio.config.main.toolTipPosition = config.toolTipPosition;
41
+ }
36
42
  return Radio;
37
43
  }
@@ -20,6 +20,15 @@ export const buildSelect = (config: any, componentScope: string) => {
20
20
  if (config.layout) {
21
21
  selectInputField.config.layout = createLayoutFormat(config.layout)
22
22
  }
23
+ if (config.toolTip) {
24
+ selectInputField.config.main.toolTip = config.toolTip;
25
+ }
26
+ if (config.toolTipPosition) {
27
+ selectInputField.config.main.toolTipPosition = config.toolTipPosition;
28
+ }
29
+ if (config.style) {
30
+ selectInputField.config.style = JSON.parse(config.style);
31
+ }
23
32
  selectInputField.scope = componentScope;
24
33
  return selectInputField;
25
34
  }
@@ -1,4 +1,4 @@
1
- import { createLayoutFormat, flatObjectValueInArray } from "./buildConfig";
1
+ import { createLayoutFormat, createKeyValueMap } from "./buildConfig";
2
2
  import { BarGraph } from "./uischema/graph";
3
3
  import _ from "lodash";
4
4
 
@@ -20,10 +20,10 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
20
20
  barGraph.config.main.type = config?.graphType ?? "BarGraph";
21
21
  barGraph.config.main.header = config.heading;
22
22
  if (config.legendLabels) {
23
- barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
23
+ barGraph.config.main.legendLabels = createKeyValueMap(config.legendLabels);
24
24
  }
25
25
  if (config.pieArcColors) {
26
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
26
+ barGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
27
27
  }
28
28
  if (config.xAxisValue) {
29
29
  barGraph.config.main.xAxisValue = config.xAxisValue;
@@ -0,0 +1,72 @@
1
+ import { createLayoutFormat, createKeyValueMap } from "./buildConfig";
2
+ import { StackBarLineG } from "./uischema/graph";
3
+ import _ from "lodash";
4
+
5
+
6
+ const buildStackBarLineGraph = (config:any,componentScope:string) => {
7
+ const StackBarLineGraph: any = _.cloneDeep(StackBarLineG);
8
+ StackBarLineGraph.scope = componentScope;
9
+ if (config.layout) {
10
+ StackBarLineGraph.config.layout = createLayoutFormat(config.layout, config.type);
11
+ }
12
+ StackBarLineGraph.config.main.type = config.graphType;
13
+ StackBarLineGraph.scope = componentScope;
14
+ StackBarLineGraph.config.main.header = config.heading;
15
+ StackBarLineGraph.config.main.subHeader = config.subHeader;
16
+ if (config.legendHide) {
17
+ StackBarLineGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
18
+ }
19
+ if (config.bottomAxisAngle) {
20
+ StackBarLineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
21
+ }
22
+ if (config.legendLabels) {
23
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config.legendLabels);
24
+ }
25
+ if(config.legendDirection){
26
+ StackBarLineGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
27
+ }
28
+ if (config.height) {
29
+ StackBarLineGraph.config.style.containerStyle.height = config.height;
30
+ }
31
+ if (config.pieArcColors) {
32
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
33
+ }
34
+ if(config.yAxisTickCount){
35
+ StackBarLineGraph.config.main.yAxisTickCount = config.yAxisTickCount
36
+ }
37
+ if(config.xAxisTickCount){
38
+ StackBarLineGraph.config.main.xAxisTickCount = config.xAxisTickCount
39
+ }
40
+ if (config.xAxisValue) {
41
+ StackBarLineGraph.config.main.xAxisValue = config.xAxisValue;
42
+ }
43
+ if(config.xAxisType) {
44
+ StackBarLineGraph.config.main.xAxisType = config.xAxisType;
45
+ }
46
+ if (config.bottomLabel) {
47
+ StackBarLineGraph.config.main.bottomLabel = config.bottomLabel;
48
+ }
49
+ if (config.leftLabel) {
50
+ StackBarLineGraph.config.main.leftLabel = config.leftLabel;
51
+ }
52
+ if (config.rightLabel) {
53
+ StackBarLineGraph.config.main.rightLabel = config.rightLabel;
54
+ }
55
+ if (config.disableLeftLabel) {
56
+ StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
57
+ }
58
+ if (config.growthRateKey) {
59
+ StackBarLineGraph.config.main.growthRateKey = config.growthRateKey;
60
+ }
61
+ if (config.tooltipUnit) {
62
+ StackBarLineGraph.config.main.tooltipUnit = config.tooltipUnit;
63
+ }
64
+ if (config.leftMargin) {
65
+ StackBarLineGraph.config.style.labelStyle.margin ={
66
+ left: config.leftMargin
67
+ }
68
+ }
69
+ return StackBarLineGraph
70
+ }
71
+
72
+ export default buildStackBarLineGraph;
@@ -1,3 +1,4 @@
1
+ import { flatObjectValueInArray } from "./buildConfig";
1
2
  import Tabsection from "./uischema/tabsection";
2
3
  import _ from "lodash";
3
4
 
@@ -13,6 +14,7 @@ export const buildTabSection = (config:any,componentScope:string) => {
13
14
  }
14
15
  if (config.sectionLabels) {
15
16
  tab.config.main.tabLabels = config.sectionLabels.map(e => e.label);
17
+ tab.config.main.tabIcons = config.sectionLabels.map(e => e.icon);
16
18
  }
17
19
  if (config.style) {
18
20
  tab.config.style = JSON.parse(config.style)
@@ -1,3 +1,4 @@
1
+ import { createLayoutFormat } from "./buildConfig";
1
2
  import Table from "./uischema/table";
2
3
  import _ from "lodash";
3
4
 
@@ -29,9 +30,6 @@ export const buildTable = (config: any, componentScope: string) => {
29
30
  if (config.paginateExpandedRows) {
30
31
  table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
31
32
  }
32
- if (config.treeStructure) {
33
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
34
- }
35
33
  if (config.SelectionAvailable) {
36
34
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
37
35
  };
@@ -80,5 +78,8 @@ export const buildTable = (config: any, componentScope: string) => {
80
78
  if(config.initialDensity){
81
79
  table.config.main.initialDensity = config.initialDensity
82
80
  }
81
+ if(config.layout){
82
+ table.config.layout = createLayoutFormat(config.layout)
83
+ }
83
84
  return table;
84
85
  };
@@ -26,6 +26,15 @@ export const buildTextField = (config: any, componentScope: string) => {
26
26
  if (config.layout) {
27
27
  inputField.config.layout = createLayoutFormat(config.layout)
28
28
  }
29
+ if (config.toolTip) {
30
+ inputField.config.main.toolTip = config.toolTip;
31
+ }
32
+ if (config.toolTipPosition) {
33
+ inputField.config.main.toolTipPosition = config.toolTipPosition;
34
+ }
35
+ if(config.iconName){
36
+ inputField.config.main.startIcon = config.iconName;
37
+ }
29
38
  inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
30
39
  inputField.scope = componentScope;
31
40
  return inputField;
@@ -17,7 +17,7 @@ import { buildLabel } from "./buildLabel";
17
17
  import { buildUploadFile } from "./buildUplaodFile";
18
18
  import { buildDownloadFile } from "./buildDownloadFile";
19
19
  import { buildCard } from "./buildCard";
20
- import { buildDataCard } from "./buildDataCard";
20
+ import { buildMetricCard } from "./buildMetricCard";
21
21
  import { buildDate, buildDateTime } from "./buildDate";
22
22
  import { buildRankCard } from "./buildRankCard";
23
23
  import { buildRollAndDice } from "./buildRollAndDice";
@@ -41,6 +41,14 @@ import { buildTreeMap } from "./buildTreeMap";
41
41
  import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
42
42
  import { buildHorizontalLayout } from "./buildHorizontalLayout";
43
43
  import { buildImage } from "./buildImage";
44
+ import buildAreaGraph from "./buildAreaGraph";
45
+ import buildStackBarLineGraph from "./buildStackBarLineGraph";
46
+ import { buildCamera } from "./buildCamera";
47
+ import { buildButtonGroup } from "./buildGroupButton";
48
+ import { buildPopOver } from "./buildPopover";
49
+ import { buildOTP_Input } from "./buildOTP_inputs";
50
+ import { buildPdfViewer } from "./buildPdfViewer";
51
+ import { buildHierarchyChart } from "./buildHierarchyChart";
44
52
  export let schema = {
45
53
  type: "object",
46
54
  properties: {},
@@ -121,6 +129,9 @@ const buildUiSchema = (config: any, store?: any) => {
121
129
  let elements: any = {};
122
130
  const componentScope = `#/properties/${config.name}`;
123
131
  switch (config.type) {
132
+ case "OTP_Input":
133
+ elements = buildOTP_Input(config, componentScope);
134
+ break;
124
135
  case "TreeMap":
125
136
  elements = buildTreeMap(config, componentScope)
126
137
  break;
@@ -139,6 +150,9 @@ const buildUiSchema = (config: any, store?: any) => {
139
150
  case "PopUp":
140
151
  elements = buildPopUp(config, componentScope);
141
152
  break;
153
+ case "PopOver":
154
+ elements = buildPopOver(config, componentScope);
155
+ break;
142
156
  case "FileInput":
143
157
  elements = buildFileInput(config, componentScope);
144
158
  break;
@@ -179,6 +193,9 @@ const buildUiSchema = (config: any, store?: any) => {
179
193
 
180
194
  elements = buildButton(config, componentScope);
181
195
  break;
196
+ case "ButtonGroup":
197
+ elements = buildButtonGroup(config, componentScope);
198
+ break;
182
199
  case "Table":
183
200
  elements = buildTable(config, componentScope);
184
201
  break;
@@ -203,8 +220,12 @@ const buildUiSchema = (config: any, store?: any) => {
203
220
  case "card":
204
221
  elements = buildCard(config, componentScope, store);
205
222
  break;
206
- case "DataCard":
207
- elements = buildDataCard(config, componentScope, store);
223
+ case "MetricCard":
224
+ elements = buildMetricCard(config, componentScope, store);
225
+ break;
226
+ case "HierarchyChart":
227
+ elements = buildHierarchyChart(config, componentScope, store);
228
+ break;
208
229
  case "Graph":
209
230
  switch (config.graphType) {
210
231
  case "BarGraph":
@@ -221,6 +242,12 @@ const buildUiSchema = (config: any, store?: any) => {
221
242
  case "HorizontalStackBarGraph":
222
243
  elements = buildHorizontalBarGraph(config, componentScope);
223
244
  break;
245
+ case "AreaGraph":
246
+ elements = buildAreaGraph(config, componentScope);
247
+ break;
248
+ case "StackBarLineGraph":
249
+ elements = buildStackBarLineGraph(config, componentScope);
250
+ break;
224
251
  default:
225
252
  elements = buildStackbarGraph(config, componentScope);
226
253
  break;
@@ -266,6 +293,12 @@ const buildUiSchema = (config: any, store?: any) => {
266
293
  case "Image":
267
294
  elements = buildImage(config, componentScope);
268
295
  break;
296
+ case "Camera":
297
+ elements = buildCamera(config, componentScope)
298
+ break;
299
+ case "PdfViewer":
300
+ elements = buildPdfViewer(config, componentScope);
301
+ break;
269
302
  default:
270
303
  schema = {
271
304
  type: "object",
@@ -374,6 +407,11 @@ const buildUiSchema = (config: any, store?: any) => {
374
407
  });
375
408
  }
376
409
  }
410
+ if (config.tabLabelElements) {
411
+ elements.tabLabelElements = config.tabLabelElements.map((e: any, elemInd: number) => {
412
+ return buildUiSchema(e, store)
413
+ });
414
+ }
377
415
  return elements;
378
416
  }
379
417
 
@@ -16,6 +16,12 @@ export const buildUploadFile = (config, componentScope) => {
16
16
  if (config.required) {
17
17
  UploadFile.config.main.required = true;
18
18
  }
19
+ if (config.toolTip) {
20
+ UploadFile.config.main.toolTip = config.toolTip;
21
+ }
22
+ if (config.toolTipPosition) {
23
+ UploadFile.config.main.toolTipPosition = config.toolTipPosition;
24
+ }
19
25
  UploadFile.config.main.errorMessage = config.errorMessage;
20
26
  return UploadFile;
21
27
  }
@@ -8,8 +8,13 @@ export const buildWrapperSection = (config, componentScope) => {
8
8
  wrapper.config.main.label = config.label;
9
9
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
10
10
  wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
11
- if(config.defaultStyle){
12
- wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
11
+ wrapper.config.main.defaultClosed = config.defaultClosed === "YES" ? true : false;
12
+ wrapper.config.main.icon = config.iconUrl;
13
+ wrapper.config.main.rowSpacing = Number(config.rowSpacing);
14
+ wrapper.config.main.columnSpacing = Number(config.columnSpacing);
15
+ wrapper.config.main.spacing = Number(config.spacing);
16
+ if (config.defaultStyle) {
17
+ wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
13
18
  }
14
19
  if (config.style) {
15
20
  wrapper.config.style = JSON.parse(config.style)
@@ -8,7 +8,8 @@
8
8
 
9
9
  config: { layout: { xs: 6, sm: 6, md: 4, lg: 3 },
10
10
  main: {
11
- iconName: ""
11
+ iconName: "",
12
+ onClick: "onClick",
12
13
  },
13
14
  style:{
14
15
  // fontWeight:300