impaktapps-ui-builder 1.0.4 → 1.0.6
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.
- package/dist/impaktapps-ui-builder.es.js +2268 -1162
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +1 -11
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +10 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +82 -72
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +48 -38
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -3
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +10 -4
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +35 -15
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +34 -16
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +10 -4
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -4
- package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +12 -0
- package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -4
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +3 -2
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +11 -3
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +12 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +10 -4
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -11
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +12 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +140 -130
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +5 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +396 -142
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +127 -133
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +58 -113
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +228 -59
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +121 -119
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +173 -86
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
- package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
- package/src/impaktapps-ui-builder/lib/index.ts +10 -9
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +33 -18
- package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
- 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
|
-
|
|
19
|
-
|
|
18
|
+
type: "Control",
|
|
19
|
+
scope: "#/properties/empty",
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
113
|
-
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "Control",
|
|
66
|
+
scope: "#/properties/value",
|
|
114
67
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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,64 @@ 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
|
-
|
|
373
|
-
|
|
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
|
+
emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
444
|
+
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
445
|
+
getInputField("keyName", "Event Key Name"),
|
|
374
446
|
]
|
|
375
447
|
break;
|
|
376
448
|
case "TextArea":
|
|
377
449
|
uiSchema.elements = [
|
|
378
450
|
getInputField("placeholder", "Placeholder"),
|
|
379
|
-
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
451
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
380
452
|
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
381
|
-
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 0, lg: 3 }),
|
|
453
|
+
emptyBox("TextEmpty1", { xs: 0, sm: 0, md: 0, lg: 3 }),
|
|
382
454
|
]
|
|
383
455
|
break;
|
|
384
456
|
|
|
@@ -389,14 +461,14 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
389
461
|
getInputField("heading", "Container Heading"),
|
|
390
462
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
391
463
|
getInputField("width", "Speedometer Width"),
|
|
392
|
-
emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
464
|
+
emptyBox("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
393
465
|
]
|
|
394
466
|
break;
|
|
395
467
|
case "RankCard":
|
|
396
468
|
uiSchema.elements = [
|
|
397
469
|
getInputField("rank", "Rank"),
|
|
398
470
|
getInputField("height", "Height"),
|
|
399
|
-
emptyBox("RankCardEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
471
|
+
emptyBox("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
400
472
|
break;
|
|
401
473
|
case "LeaderBoard":
|
|
402
474
|
uiSchema.elements = [
|
|
@@ -406,7 +478,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
406
478
|
getInputField("nameKey", "Key for Name"),
|
|
407
479
|
getInputField("imageKey", "Key for Image"),
|
|
408
480
|
getInputField("scoreKey", "Key for comparing parameter"),
|
|
409
|
-
|
|
481
|
+
getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
|
|
482
|
+
emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
410
483
|
];
|
|
411
484
|
break;
|
|
412
485
|
case "CardSlider":
|
|
@@ -420,7 +493,10 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
420
493
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
421
494
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
422
495
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
423
|
-
|
|
496
|
+
getInputField("size", "Size"),
|
|
497
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
498
|
+
|
|
499
|
+
getArrayControl("pieArcColors", "color", "Color"),
|
|
424
500
|
];
|
|
425
501
|
break;
|
|
426
502
|
case "card":
|
|
@@ -429,7 +505,21 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
429
505
|
getInputField("label", "Label"),
|
|
430
506
|
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
431
507
|
getInputField("description", "Description"),
|
|
432
|
-
emptyBox("cardEmpty", {xs: 0, sm: 0, md: 8, lg: 8 })
|
|
508
|
+
emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
509
|
+
];
|
|
510
|
+
break;
|
|
511
|
+
case "MetricCard":
|
|
512
|
+
uiSchema.elements = [
|
|
513
|
+
getInputField("url", "Image Url"),
|
|
514
|
+
getInputField("label", "Label"),
|
|
515
|
+
getInputField("cardValue", "Value"),
|
|
516
|
+
getInputField("description", "Description"),
|
|
517
|
+
getSelectField("growthRate", "Growth Rate", [
|
|
518
|
+
{ label: "Positive", value: "positive" },
|
|
519
|
+
{ label: "Negative", value: "negative" }
|
|
520
|
+
]),
|
|
521
|
+
getInputField("color", "Card Color"),
|
|
522
|
+
emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
433
523
|
];
|
|
434
524
|
break;
|
|
435
525
|
case "Button":
|
|
@@ -442,40 +532,77 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
442
532
|
{ label: "Apply Default Style", value: "true" },
|
|
443
533
|
{ label: "No Style", value: "false" },
|
|
444
534
|
]),
|
|
445
|
-
emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
535
|
+
emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
536
|
+
];
|
|
537
|
+
break;
|
|
538
|
+
case "ButtonGroup":
|
|
539
|
+
uiSchema.elements = [
|
|
540
|
+
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
541
|
+
getInputField("size", "Size"),
|
|
542
|
+
getSelectField("color", "Color", []),
|
|
543
|
+
emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
544
|
+
];
|
|
545
|
+
break;
|
|
546
|
+
case "Box":
|
|
547
|
+
uiSchema.elements = [
|
|
548
|
+
getSelectField("iconName", "Icon Name", []),
|
|
549
|
+
emptyBox("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
446
550
|
];
|
|
447
551
|
break;
|
|
448
552
|
case "Graph":
|
|
449
553
|
uiSchema.elements = [
|
|
450
554
|
getInputField("height", "Height"),
|
|
451
555
|
getInputField("heading", "Heading"),
|
|
556
|
+
getInputField("subHeader", "Sub Header"),
|
|
452
557
|
getSelectField("graphType", "Graph Type", [
|
|
453
558
|
{ label: "Bar Graph", value: "BarGraph" },
|
|
454
559
|
{ label: "Stack Bar Graph", value: "StackBarGraph" },
|
|
455
560
|
{ label: "Line Graph", value: "LineGraph" },
|
|
456
561
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
457
562
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
458
|
-
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
|
|
563
|
+
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
|
|
564
|
+
{ label: "Area Graph", value: "AreaGraph" },
|
|
565
|
+
{ label: "StackBar And Line Graph", value: "StackBarLineGraph" }
|
|
459
566
|
]),
|
|
460
567
|
getInputField("leftLabel", "Left Label"),
|
|
568
|
+
getInputField("rightLabel", "Right Label"),
|
|
569
|
+
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
461
570
|
getInputField("bottomLabel", "Bottom Label"),
|
|
462
|
-
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
571
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
463
572
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
464
|
-
|
|
465
|
-
getInputField("
|
|
573
|
+
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
574
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
575
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
576
|
+
getSelectField("xAxisType", "X-AxisType", [
|
|
577
|
+
{ label: "Date", value: "date" },
|
|
578
|
+
{ label: "String", value: "string" },
|
|
579
|
+
{ label: "number", value: "number" }
|
|
580
|
+
]),
|
|
466
581
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
467
582
|
getInputField("leftMargin", "Left Margin"),
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
583
|
+
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
584
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
585
|
+
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
586
|
+
{ label: "Date and Month", value: "Date and Month" },
|
|
587
|
+
{ label: "Month and Year", value: "Month and Year" }
|
|
588
|
+
]),
|
|
589
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
590
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
591
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
592
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
|
|
471
593
|
];
|
|
472
594
|
break;
|
|
473
595
|
case "WrapperSection":
|
|
474
596
|
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
475
597
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
476
598
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
599
|
+
|
|
600
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
477
601
|
getInputField("rowSpacing", "Row Spacing"),
|
|
478
|
-
|
|
602
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
603
|
+
getInputField("spacing", "Spacing"),
|
|
604
|
+
getInputField("iconUrl", "Icon Url"),
|
|
605
|
+
emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
|
|
479
606
|
]
|
|
480
607
|
break;
|
|
481
608
|
|
|
@@ -484,7 +611,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
484
611
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
485
612
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
486
613
|
emptyBox("TabEmpty"),
|
|
487
|
-
|
|
614
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
488
615
|
]
|
|
489
616
|
break;
|
|
490
617
|
case "Table":
|
|
@@ -503,16 +630,28 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
503
630
|
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
504
631
|
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
505
632
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
506
|
-
getInputField("selectKey", "Selection Key")
|
|
633
|
+
getInputField("selectKey", "Selection Key"),//defaultColumnSize
|
|
507
634
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
635
|
+
getSelectField("maxPageSize", "Max Page Size", [
|
|
636
|
+
{ label: "10", value: 10 },
|
|
637
|
+
{ label: "20", value: 20 },
|
|
638
|
+
{ label: "30", value: 30 },
|
|
639
|
+
{ label: "50", value: 50 },
|
|
640
|
+
{ label: "100", value: 100 },
|
|
641
|
+
{ label: "500", value: 500 }
|
|
642
|
+
]),
|
|
643
|
+
getSelectField("initialDensity", "Initial Toggle Density", [
|
|
644
|
+
{ label: "Compact", value: "compact" },
|
|
645
|
+
{ label: "Comfortable", value: "comfortable" },
|
|
646
|
+
{ label: "Spacious", value: "spacious" }
|
|
647
|
+
]),
|
|
508
648
|
buildWrapper("Tree Table Properties", [
|
|
509
649
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
510
650
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
511
651
|
// getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
|
|
512
652
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
513
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
514
653
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
515
|
-
|
|
654
|
+
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
|
|
516
655
|
]),
|
|
517
656
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
518
657
|
sizeHolder,
|
|
@@ -521,6 +660,15 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
521
660
|
break;
|
|
522
661
|
case "Radio":
|
|
523
662
|
uiSchema.elements = [
|
|
663
|
+
getInputField("errorMessage", "Error Message"),
|
|
664
|
+
getInputField("toolTip", "Tooltip"),
|
|
665
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
666
|
+
{ label: "Top", value: "top" },
|
|
667
|
+
{ label: "Left", value: "left" },
|
|
668
|
+
{ label: "Right", value: "right" },
|
|
669
|
+
{ label: "Bottom", value: "bottom" }
|
|
670
|
+
]),
|
|
671
|
+
emptyBox("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
524
672
|
getArrayControl("sectionLabels", "label", "Options Of Radio"),
|
|
525
673
|
]
|
|
526
674
|
break;
|
|
@@ -528,14 +676,76 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
528
676
|
uiSchema.elements = [
|
|
529
677
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
530
678
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
531
|
-
|
|
679
|
+
getSelectField("variant", "Variant", [
|
|
680
|
+
{ label: "Outlined", value: "outlined" },
|
|
681
|
+
{ label: "Filled", value: "filled" },
|
|
682
|
+
{ label: "Standard", value: "standard" },
|
|
683
|
+
]),
|
|
684
|
+
getInputField("toolTip", "Tooltip"),
|
|
685
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
686
|
+
{ label: "Top", value: "top" },
|
|
687
|
+
{ label: "Left", value: "left" },
|
|
688
|
+
{ label: "Right", value: "right" },
|
|
689
|
+
{ label: "Bottom", value: "bottom" }
|
|
690
|
+
]),
|
|
691
|
+
emptyBox("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
532
692
|
]
|
|
533
693
|
break;
|
|
534
694
|
case "MultipleSelect":
|
|
535
695
|
uiSchema.elements = [
|
|
536
696
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
537
|
-
|
|
538
|
-
|
|
697
|
+
getSelectField("variant", "Variant", [
|
|
698
|
+
{ label: "Outlined", value: "outlined" },
|
|
699
|
+
{ label: "Filled", value: "filled" },
|
|
700
|
+
{ label: "Standard", value: "standard" },
|
|
701
|
+
]),
|
|
702
|
+
getInputField("toolTip", "Tooltip"),
|
|
703
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
704
|
+
{ label: "Top", value: "top" },
|
|
705
|
+
{ label: "Left", value: "left" },
|
|
706
|
+
{ label: "Right", value: "right" },
|
|
707
|
+
{ label: "Bottom", value: "bottom" }
|
|
708
|
+
])
|
|
709
|
+
]
|
|
710
|
+
break;
|
|
711
|
+
case "PdfViewer":
|
|
712
|
+
uiSchema.elements = [
|
|
713
|
+
getInputField("scale", "Zoom"),
|
|
714
|
+
emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
715
|
+
]
|
|
716
|
+
break;
|
|
717
|
+
case "Date":
|
|
718
|
+
uiSchema.elements = [
|
|
719
|
+
getSelectField("variant", "Variant", [
|
|
720
|
+
{ label: "Outlined", value: "outlined" },
|
|
721
|
+
{ label: "Filled", value: "filled" },
|
|
722
|
+
{ label: "Standard", value: "standard" },
|
|
723
|
+
]),
|
|
724
|
+
getInputField("toolTip", "Tooltip"),
|
|
725
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
726
|
+
{ label: "Top", value: "top" },
|
|
727
|
+
{ label: "Left", value: "left" },
|
|
728
|
+
{ label: "Right", value: "right" },
|
|
729
|
+
{ label: "Bottom", value: "bottom" }
|
|
730
|
+
]),
|
|
731
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
732
|
+
]
|
|
733
|
+
break;
|
|
734
|
+
case "DateTime":
|
|
735
|
+
uiSchema.elements = [
|
|
736
|
+
getSelectField("variant", "Variant", [
|
|
737
|
+
{ label: "Outlined", value: "outlined" },
|
|
738
|
+
{ label: "Filled", value: "filled" },
|
|
739
|
+
{ label: "Standard", value: "standard" },
|
|
740
|
+
]),
|
|
741
|
+
getInputField("toolTip", "Tooltip"),
|
|
742
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
743
|
+
{ label: "Top", value: "top" },
|
|
744
|
+
{ label: "Left", value: "left" },
|
|
745
|
+
{ label: "Right", value: "right" },
|
|
746
|
+
{ label: "Bottom", value: "bottom" }
|
|
747
|
+
]),
|
|
748
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
539
749
|
]
|
|
540
750
|
break;
|
|
541
751
|
case "Thought":
|
|
@@ -543,6 +753,50 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
543
753
|
getTextArea("thought", "Today's thought", false),
|
|
544
754
|
]
|
|
545
755
|
break;
|
|
756
|
+
case "Image":
|
|
757
|
+
uiSchema.elements = [
|
|
758
|
+
getInputField("imageUrl", "Image URL"),
|
|
759
|
+
getInputField("height", "Image Height"),
|
|
760
|
+
getInputField("toolTip", "Tooltip"),
|
|
761
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
762
|
+
{ label: "Top", value: "top" },
|
|
763
|
+
{ label: "Left", value: "left" },
|
|
764
|
+
{ label: "Right", value: "right" },
|
|
765
|
+
{ label: "Bottom", value: "bottom" }
|
|
766
|
+
]),
|
|
767
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
768
|
+
]
|
|
769
|
+
break;
|
|
770
|
+
case "FileInput":
|
|
771
|
+
uiSchema.elements = [
|
|
772
|
+
getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
|
|
773
|
+
getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
|
|
774
|
+
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
775
|
+
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
776
|
+
getInputField("description", "Enter description"),
|
|
777
|
+
getInputField("toolTip", "Tooltip"),
|
|
778
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
779
|
+
{ label: "Top", value: "top" },
|
|
780
|
+
{ label: "Left", value: "left" },
|
|
781
|
+
{ label: "Right", value: "right" },
|
|
782
|
+
{ label: "Bottom", value: "bottom" }
|
|
783
|
+
]),
|
|
784
|
+
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
785
|
+
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
786
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
787
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
788
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
789
|
+
]
|
|
790
|
+
break;
|
|
791
|
+
case "Camera":
|
|
792
|
+
uiSchema.elements = [
|
|
793
|
+
getSelectField("iconName", "Icon Name", []),
|
|
794
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
795
|
+
getSelectField("color", "Color", []),
|
|
796
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
797
|
+
getSelectField("variant", "Variant", []),
|
|
798
|
+
emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
799
|
+
];
|
|
546
800
|
}
|
|
547
801
|
return uiSchema;
|
|
548
802
|
};
|