impaktapps-ui-builder 1.0.4 → 1.0.5

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 (122) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2272 -1158
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  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/buildArray.d.ts +1 -11
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +2 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -3
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +10 -2
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -3
  32. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  33. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  35. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
  36. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
  37. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +4 -1
  38. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  39. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  40. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  41. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +10 -4
  42. package/package.json +1 -1
  43. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
  44. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +35 -15
  46. package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  49. package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
  50. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +34 -16
  51. package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
  52. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  53. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  54. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  56. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -4
  58. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  59. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +4 -1
  62. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -4
  63. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +12 -0
  65. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -4
  68. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +3 -2
  69. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  70. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  71. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +11 -3
  72. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +12 -0
  73. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -4
  74. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  75. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  76. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -8
  77. package/src/impaktapps-ui-builder/builder/build/buildText.ts +15 -0
  78. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
  79. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
  80. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
  81. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +140 -130
  82. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  83. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -3
  84. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
  85. package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
  86. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +5 -2
  87. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +397 -141
  88. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
  89. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  90. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  91. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +127 -133
  92. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
  93. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  94. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  95. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
  96. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  97. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  98. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  99. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +4 -2
  100. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  101. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
  102. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +3 -1
  103. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  104. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
  105. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  106. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
  107. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
  108. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +4 -1
  109. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +228 -59
  110. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +121 -119
  111. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  112. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  113. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -5
  114. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  115. package/src/impaktapps-ui-builder/builder/services/component.ts +173 -86
  116. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  117. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  118. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  119. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  120. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
  121. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  122. package/src/impaktapps-ui-builder/runtime/services/service.ts +121 -162
@@ -1,8 +1,8 @@
1
1
 
2
2
  import _ from "lodash";
3
- export const emptyBox = (scope:string,layout?: any) => {
3
+ export const emptyBox = (scope: string, layout?: any) => {
4
4
 
5
- if(layout !== undefined){
5
+ if (layout !== undefined) {
6
6
  return {
7
7
  type: "Control",
8
8
  scope: `#/properties/${scope}`,
@@ -15,123 +15,75 @@ export const emptyBox = (scope:string,layout?: any) => {
15
15
  }
16
16
  }
17
17
  return {
18
- type: "Control",
19
- scope: "#/properties/empty",
18
+ type: "Control",
19
+ scope: "#/properties/empty",
20
20
 
21
- options: {
22
- widget: "EmptyBox",
23
- },
24
- config: {
25
- layout: { xs: 0, sm: 0, md: 4, lg: 4 },
26
- },
27
- }
21
+ options: {
22
+ widget: "EmptyBox",
23
+ },
24
+ config: {
25
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
26
+ },
27
+ }
28
28
  }
29
- // const cardLayout = {
30
- // type: "Control",
31
- // scope: "#/properties/cardLayout",
32
- // options: {
33
- // widget: "Array",
34
- // },
35
- // config: {
36
- // layout: 12,
37
- // main: {
38
- // label: "Card Layout",
39
- // childElementLabel: "Card Layout",
40
- // },
41
- // style: {
42
- // marginLeft: "-24px",
43
- // marginBottom: "24px !important",
44
- // labelStyle: {
45
- // marginLeft: "24px",
46
- // },
47
- // detailsStyle: {
48
- // marginLeft: "24px",
49
- // }
50
- // }
51
- // },
52
- // elements: [
53
- // {
54
- // type: "Control",
55
- // scope: "#/properties/key",
56
- // options: {
57
- // widget: "SelectInputField",
58
- // },
59
- // config: {
60
- // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
61
- // main: {
62
- // label: "Screen Size",
63
-
64
- // },
65
- // },
66
- // },
67
- // {
68
- // type: "Control",
69
- // scope: "#/properties/value",
70
-
71
- // options: {
72
- // widget: "InputField",
73
- // },
74
- // config: {
75
- // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
76
- // main: {
77
- // label: "Value",
78
- // type: "number",
79
- // // freeSolo:true,
80
- // helperText: 'Number should be in range of 0 to 12',
81
- // errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
82
-
83
- // },
84
- // },
85
- // },
86
- // emptyBox("cardEmpty")
87
- // ],
88
- // };
89
29
  const cardLayout = {
90
30
  type: "Control",
91
31
  scope: "#/properties/cardLayout",
92
- layout: 12,
93
- options: {
94
- detail: {
95
- type: "HorizontalLayout",
96
- elements: [
97
- {
98
- type: "Control",
99
- scope: "#/properties/key",
100
- options: {
101
- widget: "SelectInputField",
102
- },
103
- config: {
104
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
105
- main: {
106
- label: "Screen Size",
32
+ config: {
33
+ layout: 12,
34
+ main: {
35
+ label: "Card Layout",
36
+ childElementLabel: "Card Layout",
37
+ },
38
+ style: {
39
+ marginLeft: "-24px",
40
+ marginBottom: "24px !important",
41
+ labelStyle: {
42
+ marginLeft: "24px",
43
+ },
44
+ detailsStyle: {
45
+ marginLeft: "24px",
46
+ }
47
+ }
48
+ },
49
+ elements: [
50
+ {
51
+ type: "Control",
52
+ scope: "#/properties/key",
53
+ options: {
54
+ widget: "SelectInputField",
55
+ },
56
+ config: {
57
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
58
+ main: {
59
+ label: "Screen Size",
107
60
 
108
- },
109
- },
110
61
  },
111
- {
112
- type: "Control",
113
- scope: "#/properties/value",
62
+ },
63
+ },
64
+ {
65
+ type: "Control",
66
+ scope: "#/properties/value",
114
67
 
115
- options: {
116
- widget: "InputField",
117
- },
118
- config: {
119
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
120
- main: {
121
- label: "Value",
122
- type: "number",
123
- // freeSolo:true,
124
- helperText: 'Number should be in range of 0 to 12',
125
- errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
68
+ options: {
69
+ widget: "InputField",
70
+ },
71
+ config: {
72
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
73
+ main: {
74
+ label: "Value",
75
+ type: "number",
76
+ // freeSolo:true,
77
+ helperText: 'Number should be in range of 0 to 12',
78
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
126
79
 
127
- },
128
- },
129
80
  },
130
- emptyBox("cardEmpty")
131
- ],
81
+ },
132
82
  },
133
- },
83
+ emptyBox("cardEmpty")
84
+ ],
134
85
  };
86
+
135
87
  const getArrayControl = (parentScope: string, childScope: string, childLabel?: string,) => {
136
88
  return {
137
89
  type: "Control",
@@ -171,7 +123,63 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
171
123
  },
172
124
  },
173
125
  },
174
- emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 8, lg: 8 }),
126
+ emptyBox("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 }),
127
+ ],
128
+ }
129
+ };
130
+ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string, arrayLabel?: string) => {
131
+ return {
132
+ type: "Control",
133
+ scope: `#/properties/${parentScope}`,
134
+ options: {
135
+ widget: "Array"
136
+ },
137
+ config: {
138
+ layout: 12,
139
+ main: {
140
+ label: arrayLabel,
141
+ },
142
+ style: {
143
+ marginLeft: "-24px",
144
+ marginBottom: "24px !important",
145
+ labelStyle: {
146
+ marginLeft: "24px",
147
+ },
148
+ detailsStyle: {
149
+ marginLeft: "24px",
150
+ }
151
+ }
152
+ },
153
+ elements: [
154
+ {
155
+ type: "Control",
156
+ scope: `#/properties/${firstFieldScope}`,
157
+
158
+ options: {
159
+ widget: "InputField",
160
+ },
161
+ config: {
162
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
163
+ main: {
164
+ label: firstFieldLabel || "Labels for Tab",
165
+ },
166
+ },
167
+ },
168
+ {
169
+ type: "Control",
170
+ scope: `#/properties/${secondFieldScope}`,
171
+
172
+ options: {
173
+ widget: "InputField",
174
+ },
175
+ config: {
176
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
177
+ main: {
178
+ label: secondFieldLabel || "Labels for Tab",
179
+ },
180
+ },
181
+ },
182
+ emptyBox("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 }),
175
183
  ],
176
184
  }
177
185
  };
@@ -257,7 +265,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
257
265
  },
258
266
  }
259
267
  }
260
- export const getSelectField = (scope: string, label: string, options: { label: string, value: string }[]) => {
268
+ export const getSelectField = (scope: string, label: string, options: { label: string, value: string | number }[]) => {
261
269
  return {
262
270
  type: "Control",
263
271
  scope: `#/properties/${scope}`,
@@ -276,7 +284,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
276
284
  }
277
285
  }
278
286
  export const getMultiSelectField = (scope: string, label: string) => {
279
- return {
287
+ return {
280
288
  type: "Control",
281
289
  scope: `#/properties/${scope}`,
282
290
 
@@ -309,7 +317,30 @@ const BaseSection = {
309
317
  export const buildPropertiesSection = function (type: String) {
310
318
  let uiSchema = _.cloneDeep(BaseSection);
311
319
  switch (type) {
320
+ case "OTP_Input":
321
+ uiSchema.elements = [
322
+ getInputField("seperator", "Seperator"),
323
+ getInputField("length", "OTP Length"),
324
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
325
+ emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
326
+
327
+ ]
328
+ break;
329
+ case "Array":
330
+ uiSchema.elements = [
331
+ getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
332
+ getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
333
+ getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
334
+ getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
335
+ getInputField("childElementLabel", "Child Element Label"),
336
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
337
+ getInputField("rowSpacing", "Row Spacing"),
338
+ getInputField("columnSpacing", "Column Spacing"),
339
+ getInputField("spacing", "Spacing"),
340
+ emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
312
341
 
342
+ ]
343
+ break;
313
344
  case "TreeMap":
314
345
  uiSchema.elements = [
315
346
  getSelectField("orientation", "orientation", []),
@@ -317,7 +348,7 @@ export const buildPropertiesSection = function (type: String) {
317
348
  getInputField("graphHeight", "Graph Height"),
318
349
  getInputField("graphWidth", "Graph Width"),
319
350
  getInputField("graphZoomHeight", "Zoom Height"),
320
- emptyBox("TreeEmpty", {xs: 6, sm: 6, md: 4, lg: 4})
351
+ emptyBox("TreeEmpty", { xs: 6, sm: 6, md: 4, lg: 4 })
321
352
  ]
322
353
  break;
323
354
  case "InputSlider":
@@ -325,9 +356,9 @@ export const buildPropertiesSection = function (type: String) {
325
356
  getInputField("max", "Max Limit"),
326
357
  getInputField("step", "Step"),
327
358
  getInputField("min", "Min Limit"),
328
- emptyBox("InputSliderEmpty1", {xs: 6, sm: 0, md: 0, lg: 0}),
359
+ emptyBox("InputSliderEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
329
360
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
330
- emptyBox("InputSliderEmpty2", {xs: 0, sm: 0, md: 8, lg: 8})
361
+ emptyBox("InputSliderEmpty2", { xs: 0, sm: 0, md: 8, lg: 8 })
331
362
  ]
332
363
  break;
333
364
  case "DataGrid":
@@ -336,8 +367,8 @@ export const buildPropertiesSection = function (type: String) {
336
367
  getInputField("elevation", "Card Elevation"),
337
368
  getInputField("height", "Grid height"),
338
369
  getInputField("justifyContent", "justifyContent"),
339
- emptyBox("DataGridEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
340
- emptyBox("DataGridEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
370
+ emptyBox("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
371
+ emptyBox("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
341
372
  cardLayout,
342
373
  ]
343
374
  break;
@@ -351,7 +382,7 @@ export const buildPropertiesSection = function (type: String) {
351
382
  { label: "Horizontal", value: "horizontal" },
352
383
  { label: "Vertical", value: "vertical" },
353
384
  ]),
354
- emptyBox("Stepper", {xs: 6, sm: 6, md: 4, lg: 4 }),
385
+ emptyBox("Stepper", { xs: 6, sm: 6, md: 4, lg: 4 }),
355
386
 
356
387
  getArrayControl("sectionLabels", "label")
357
388
 
@@ -362,23 +393,65 @@ export const buildPropertiesSection = function (type: String) {
362
393
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
363
394
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
364
395
  getInputField("maxWidth", "Max. Width"),
365
- emptyBox("PopUpEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
396
+ emptyBox("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
397
+ ]
398
+ break;
399
+
400
+ case "PopOver":
401
+ uiSchema.elements = [
402
+ getSelectField("positionVertical", "Attach To (Vertical)", [
403
+ { label: "Top", value: "top" },
404
+ { label: "Center", value: "center" },
405
+ { label: "Bottom", value: "bottom" }
406
+ ]),
407
+ getSelectField("positionHorizontal", "Attach To (Horizontal)", [
408
+ { label: "Left", value: "left" },
409
+ { label: "Center", value: "center" },
410
+ { label: "Right", value: "right" }
411
+ ]),
412
+ getSelectField("contentVertical", "Popover Start (Vertical)", [
413
+ { label: "Top", value: "top" },
414
+ { label: "Center", value: "center" },
415
+ { label: "Bottom", value: "bottom" }
416
+ ]),
417
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)", [
418
+ { label: "Left", value: "left" },
419
+ { label: "Center", value: "center" },
420
+ { label: "Right", value: "right" }
421
+ ]),
422
+ getInputField("width", "Width"),
423
+ getInputField("gap", "Gap"),
424
+ emptyBox("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
366
425
  ]
367
426
  break;
368
427
  case "Text":
369
428
  uiSchema.elements = [
370
429
  getInputField("placeholder", "Placeholder"),
371
430
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
372
- emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
373
- getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
431
+ getSelectField("variant", "Variant", [
432
+ { label: "Outlined", value: "outlined" },
433
+ { label: "Filled", value: "filled" },
434
+ { label: "Standard", value: "standard" },
435
+ ]),
436
+ getInputField("toolTip", "Tooltip"),
437
+ getSelectField("toolTipPosition", "Tooltip Position", [
438
+ { label: "Top", value: "top" },
439
+ { label: "Left", value: "left" },
440
+ { label: "Right", value: "right" },
441
+ { label: "Bottom", value: "bottom" }
442
+ ]),
443
+ getSelectField("iconName", "Start Icon", []),
444
+ emptyBox("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
445
+ getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
446
+ getInputField("keyName", "Event Key Name"),
374
447
  ]
375
448
  break;
376
449
  case "TextArea":
377
450
  uiSchema.elements = [
378
451
  getInputField("placeholder", "Placeholder"),
379
- getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
452
+ getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
380
453
  getInputField("codeEditorLanguage", "Enter Code Language"),
381
- emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 0, lg: 3 }),
454
+ emptyBox("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 }),
382
455
  ]
383
456
  break;
384
457
 
@@ -389,14 +462,14 @@ export const buildPropertiesSection = function (type: String) {
389
462
  getInputField("heading", "Container Heading"),
390
463
  getInputField("speedoCaption", "Speedometer Caption"),
391
464
  getInputField("width", "Speedometer Width"),
392
- emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
465
+ emptyBox("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
393
466
  ]
394
467
  break;
395
468
  case "RankCard":
396
469
  uiSchema.elements = [
397
470
  getInputField("rank", "Rank"),
398
471
  getInputField("height", "Height"),
399
- emptyBox("RankCardEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 })];
472
+ emptyBox("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })];
400
473
  break;
401
474
  case "LeaderBoard":
402
475
  uiSchema.elements = [
@@ -406,7 +479,8 @@ export const buildPropertiesSection = function (type: String) {
406
479
  getInputField("nameKey", "Key for Name"),
407
480
  getInputField("imageKey", "Key for Image"),
408
481
  getInputField("scoreKey", "Key for comparing parameter"),
409
- emptyBox("LeaderBoardEmpty1", {xs: 6, sm: 6, md: 0, lg: 0 }),
482
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
483
+ emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
410
484
  ];
411
485
  break;
412
486
  case "CardSlider":
@@ -420,7 +494,10 @@ export const buildPropertiesSection = function (type: String) {
420
494
  getInputField("bottomLabel_1", "First BottomLabel"),
421
495
  getInputField("bottomLabel_2", "Second BottomLabel"),
422
496
  getInputField("bottomLabel_3", "Third BottomLabel"),
423
- emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
497
+ getInputField("size", "Size"),
498
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
499
+
500
+ getArrayControl("pieArcColors", "color", "Color"),
424
501
  ];
425
502
  break;
426
503
  case "card":
@@ -429,7 +506,21 @@ export const buildPropertiesSection = function (type: String) {
429
506
  getInputField("label", "Label"),
430
507
  getInputField("titleIcon", "Unicode of Icon for title"),
431
508
  getInputField("description", "Description"),
432
- emptyBox("cardEmpty", {xs: 0, sm: 0, md: 8, lg: 8 })
509
+ emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
510
+ ];
511
+ break;
512
+ case "MetricCard":
513
+ uiSchema.elements = [
514
+ getInputField("url", "Image Url"),
515
+ getInputField("label", "Label"),
516
+ getInputField("cardValue", "Value"),
517
+ getInputField("description", "Description"),
518
+ getSelectField("growthRate", "Growth Rate", [
519
+ { label: "Positive", value: "positive" },
520
+ { label: "Negative", value: "negative" }
521
+ ]),
522
+ getInputField("color", "Card Color"),
523
+ emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
433
524
  ];
434
525
  break;
435
526
  case "Button":
@@ -442,40 +533,77 @@ export const buildPropertiesSection = function (type: String) {
442
533
  { label: "Apply Default Style", value: "true" },
443
534
  { label: "No Style", value: "false" },
444
535
  ]),
445
- emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
536
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
537
+ ];
538
+ break;
539
+ case "ButtonGroup":
540
+ uiSchema.elements = [
541
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
542
+ getInputField("size", "Size"),
543
+ getSelectField("color", "Color", []),
544
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
545
+ ];
546
+ break;
547
+ case "Box":
548
+ uiSchema.elements = [
549
+ getSelectField("iconName", "Icon Name", []),
550
+ emptyBox("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
446
551
  ];
447
552
  break;
448
553
  case "Graph":
449
554
  uiSchema.elements = [
450
555
  getInputField("height", "Height"),
451
556
  getInputField("heading", "Heading"),
557
+ getInputField("subHeader", "Sub Header"),
452
558
  getSelectField("graphType", "Graph Type", [
453
559
  { label: "Bar Graph", value: "BarGraph" },
454
560
  { label: "Stack Bar Graph", value: "StackBarGraph" },
455
561
  { label: "Line Graph", value: "LineGraph" },
456
562
  { label: "Pie Graph", value: "PieGraph" },
457
563
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
458
- { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
564
+ { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
565
+ { label: "Area Graph", value: "AreaGraph" },
566
+ { label: "StackBar And Line Graph", value: "StackBarLineGraph" }
459
567
  ]),
460
568
  getInputField("leftLabel", "Left Label"),
569
+ getInputField("rightLabel", "Right Label"),
570
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
461
571
  getInputField("bottomLabel", "Bottom Label"),
462
- emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
572
+ emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
463
573
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
464
- getInputField("yAxisValue", "Y-AxisValue"),
465
- getInputField("xAxisValue", "X-AxisValue"),
574
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
575
+ getInputField("yAxisValue", "Y-Axis Key"),
576
+ getInputField("xAxisValue", "X-Axis Key"),
577
+ getSelectField("xAxisType", "X-AxisType", [
578
+ { label: "Date", value: "date" },
579
+ { label: "String", value: "string" },
580
+ { label: "number", value: "number" }
581
+ ]),
466
582
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
467
583
  getInputField("leftMargin", "Left Margin"),
468
- emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg: 6 }),
469
- getArrayControl("legendLabels", "label"),
470
- getArrayControl("pieArcColors", "color"),
584
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
585
+ getInputField("xAxisTickCount", "X Axis TickCount"),
586
+ getSelectField("xAxisFormatType", "X Axis Format Type", [
587
+ { label: "Date and Month", value: "Date and Month" },
588
+ { label: "Month and Year", value: "Month and Year" }
589
+ ]),
590
+ getInputField("growthRateKey", "Growth Rate Key"),
591
+ getInputField("tooltipUnit", "Tooltip Unit"),
592
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
593
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
471
594
  ];
472
595
  break;
473
596
  case "WrapperSection":
474
597
  uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
475
598
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
476
599
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
600
+
601
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
477
602
  getInputField("rowSpacing", "Row Spacing"),
478
- emptyBox("WrapperSectionEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
603
+ getInputField("columnSpacing", "Column Spacing"),
604
+ getInputField("spacing", "Spacing"),
605
+ getInputField("iconUrl", "Icon Url"),
606
+ emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
479
607
  ]
480
608
  break;
481
609
 
@@ -484,7 +612,7 @@ export const buildPropertiesSection = function (type: String) {
484
612
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
485
613
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
486
614
  emptyBox("TabEmpty"),
487
- getArrayControl("sectionLabels", "label"),
615
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
488
616
  ]
489
617
  break;
490
618
  case "Table":
@@ -503,8 +631,21 @@ export const buildPropertiesSection = function (type: String) {
503
631
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
504
632
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
505
633
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
506
- getInputField("selectKey", "Selection Key"),
634
+ getInputField("selectKey", "Selection Key"),//defaultColumnSize
507
635
  getMultiSelectField("filteringOptions", "Filtering Options"),
636
+ getSelectField("maxPageSize", "Max Page Size", [
637
+ { label: "10", value: 10 },
638
+ { label: "20", value: 20 },
639
+ { label: "30", value: 30 },
640
+ { label: "50", value: 50 },
641
+ { label: "100", value: 100 },
642
+ { label: "500", value: 500 }
643
+ ]),
644
+ getSelectField("initialDensity", "Initial Toggle Density", [
645
+ { label: "Compact", value: "compact" },
646
+ { label: "Comfortable", value: "comfortable" },
647
+ { label: "Spacious", value: "spacious" }
648
+ ]),
508
649
  buildWrapper("Tree Table Properties", [
509
650
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
510
651
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -512,7 +653,7 @@ export const buildPropertiesSection = function (type: String) {
512
653
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
513
654
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
514
655
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
515
- emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
656
+ getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
516
657
  ]),
517
658
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
518
659
  sizeHolder,
@@ -521,6 +662,15 @@ export const buildPropertiesSection = function (type: String) {
521
662
  break;
522
663
  case "Radio":
523
664
  uiSchema.elements = [
665
+ getInputField("errorMessage", "Error Message"),
666
+ getInputField("toolTip", "Tooltip"),
667
+ getSelectField("toolTipPosition", "Tooltip Position", [
668
+ { label: "Top", value: "top" },
669
+ { label: "Left", value: "left" },
670
+ { label: "Right", value: "right" },
671
+ { label: "Bottom", value: "bottom" }
672
+ ]),
673
+ emptyBox("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
524
674
  getArrayControl("sectionLabels", "label", "Options Of Radio"),
525
675
  ]
526
676
  break;
@@ -528,14 +678,76 @@ export const buildPropertiesSection = function (type: String) {
528
678
  uiSchema.elements = [
529
679
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
530
680
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
531
- emptyBox("SelectEmpty")
681
+ getSelectField("variant", "Variant", [
682
+ { label: "Outlined", value: "outlined" },
683
+ { label: "Filled", value: "filled" },
684
+ { label: "Standard", value: "standard" },
685
+ ]),
686
+ getInputField("toolTip", "Tooltip"),
687
+ getSelectField("toolTipPosition", "Tooltip Position", [
688
+ { label: "Top", value: "top" },
689
+ { label: "Left", value: "left" },
690
+ { label: "Right", value: "right" },
691
+ { label: "Bottom", value: "bottom" }
692
+ ]),
693
+ emptyBox("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
532
694
  ]
533
695
  break;
534
696
  case "MultipleSelect":
535
697
  uiSchema.elements = [
536
698
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
537
- emptyBox("MultipleSelectEmpty1", {xs: 0, sm: 6, md: 4, lg: 4 }),
538
- emptyBox("MultipleSelectEmpty2")
699
+ getSelectField("variant", "Variant", [
700
+ { label: "Outlined", value: "outlined" },
701
+ { label: "Filled", value: "filled" },
702
+ { label: "Standard", value: "standard" },
703
+ ]),
704
+ getInputField("toolTip", "Tooltip"),
705
+ getSelectField("toolTipPosition", "Tooltip Position", [
706
+ { label: "Top", value: "top" },
707
+ { label: "Left", value: "left" },
708
+ { label: "Right", value: "right" },
709
+ { label: "Bottom", value: "bottom" }
710
+ ])
711
+ ]
712
+ break;
713
+ case "PdfViewer":
714
+ uiSchema.elements = [
715
+ getInputField("scale", "Zoom"),
716
+ emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
717
+ ]
718
+ break;
719
+ case "Date":
720
+ uiSchema.elements = [
721
+ getSelectField("variant", "Variant", [
722
+ { label: "Outlined", value: "outlined" },
723
+ { label: "Filled", value: "filled" },
724
+ { label: "Standard", value: "standard" },
725
+ ]),
726
+ getInputField("toolTip", "Tooltip"),
727
+ getSelectField("toolTipPosition", "Tooltip Position", [
728
+ { label: "Top", value: "top" },
729
+ { label: "Left", value: "left" },
730
+ { label: "Right", value: "right" },
731
+ { label: "Bottom", value: "bottom" }
732
+ ]),
733
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
734
+ ]
735
+ break;
736
+ case "DateTime":
737
+ uiSchema.elements = [
738
+ getSelectField("variant", "Variant", [
739
+ { label: "Outlined", value: "outlined" },
740
+ { label: "Filled", value: "filled" },
741
+ { label: "Standard", value: "standard" },
742
+ ]),
743
+ getInputField("toolTip", "Tooltip"),
744
+ getSelectField("toolTipPosition", "Tooltip Position", [
745
+ { label: "Top", value: "top" },
746
+ { label: "Left", value: "left" },
747
+ { label: "Right", value: "right" },
748
+ { label: "Bottom", value: "bottom" }
749
+ ]),
750
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
539
751
  ]
540
752
  break;
541
753
  case "Thought":
@@ -543,6 +755,50 @@ export const buildPropertiesSection = function (type: String) {
543
755
  getTextArea("thought", "Today's thought", false),
544
756
  ]
545
757
  break;
758
+ case "Image":
759
+ uiSchema.elements = [
760
+ getInputField("imageUrl", "Image URL"),
761
+ getInputField("height", "Image Height"),
762
+ getInputField("toolTip", "Tooltip"),
763
+ getSelectField("toolTipPosition", "Tooltip Position", [
764
+ { label: "Top", value: "top" },
765
+ { label: "Left", value: "left" },
766
+ { label: "Right", value: "right" },
767
+ { label: "Bottom", value: "bottom" }
768
+ ]),
769
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
770
+ ]
771
+ break;
772
+ case "FileInput":
773
+ uiSchema.elements = [
774
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
775
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
776
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
777
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
778
+ getInputField("description", "Enter description"),
779
+ getInputField("toolTip", "Tooltip"),
780
+ getSelectField("toolTipPosition", "Tooltip Position", [
781
+ { label: "Top", value: "top" },
782
+ { label: "Left", value: "left" },
783
+ { label: "Right", value: "right" },
784
+ { label: "Bottom", value: "bottom" }
785
+ ]),
786
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
787
+ getInputField("noFileAvailableMessage", "No Found Message"),
788
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
789
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
790
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
791
+ ]
792
+ break;
793
+ case "Camera":
794
+ uiSchema.elements = [
795
+ getSelectField("iconName", "Icon Name", []),
796
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
797
+ getSelectField("color", "Color", []),
798
+ getInputField("tooltipMessage", "Tooltip Message"),
799
+ getSelectField("variant", "Variant", []),
800
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
801
+ ];
546
802
  }
547
803
  return uiSchema;
548
804
  };