impaktapps-ui-builder 1.0.3 → 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.
- package/dist/impaktapps-ui-builder.es.js +2278 -1161
- 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 +24 -8
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +15 -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 +398 -141
- 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 +123 -165
|
@@ -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,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
|
-
|
|
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
|
+
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
465
|
-
getInputField("
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
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
|
-
|
|
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
|
-
|
|
615
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
488
616
|
]
|
|
489
617
|
break;
|
|
490
618
|
case "Table":
|
|
@@ -503,15 +631,29 @@ 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"]),
|
|
511
652
|
// getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
|
|
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"]),
|
|
656
|
+
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
|
|
515
657
|
]),
|
|
516
658
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
517
659
|
sizeHolder,
|
|
@@ -520,6 +662,15 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
520
662
|
break;
|
|
521
663
|
case "Radio":
|
|
522
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 }),
|
|
523
674
|
getArrayControl("sectionLabels", "label", "Options Of Radio"),
|
|
524
675
|
]
|
|
525
676
|
break;
|
|
@@ -527,14 +678,76 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
527
678
|
uiSchema.elements = [
|
|
528
679
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
529
680
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
530
|
-
|
|
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 })
|
|
531
694
|
]
|
|
532
695
|
break;
|
|
533
696
|
case "MultipleSelect":
|
|
534
697
|
uiSchema.elements = [
|
|
535
698
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
536
|
-
|
|
537
|
-
|
|
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 }),
|
|
538
751
|
]
|
|
539
752
|
break;
|
|
540
753
|
case "Thought":
|
|
@@ -542,6 +755,50 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
542
755
|
getTextArea("thought", "Today's thought", false),
|
|
543
756
|
]
|
|
544
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
|
+
];
|
|
545
802
|
}
|
|
546
803
|
return uiSchema;
|
|
547
804
|
};
|