impaktapps-ui-builder 0.0.596 → 0.0.961
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 +492 -359
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +16 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +23 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +104 -83
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +23 -29
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +20 -12
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +98 -50
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +132 -90
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +15 -31
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +18 -11
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +7 -16
- package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
- package/src/impaktapps-ui-builder/builder/services/event.ts +33 -7
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
- package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +4 -5
- package/src/impaktapps-ui-builder/runtime/services/service.ts +15 -16
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +0 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
|
@@ -2,23 +2,20 @@ import { uploadFile } from "./uischema/file";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import { createLayoutFormat } from "./buildConfig";
|
|
4
4
|
|
|
5
|
-
export const buildUploadFile = (config,componentScope)=>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
UploadFile.config.main.errorMessage = config.errorMessage;
|
|
23
|
-
return UploadFile;
|
|
5
|
+
export const buildUploadFile = (config, componentScope) => {
|
|
6
|
+
const UploadFile: any = _.cloneDeep(uploadFile);
|
|
7
|
+
|
|
8
|
+
UploadFile.scope = componentScope;
|
|
9
|
+
UploadFile.config.main.label = config.label;
|
|
10
|
+
if (config.layout) {
|
|
11
|
+
UploadFile.config.layout = createLayoutFormat(config.layout)
|
|
12
|
+
}
|
|
13
|
+
if (config.style) {
|
|
14
|
+
UploadFile.config.style = config.style;
|
|
15
|
+
}
|
|
16
|
+
if (config.required) {
|
|
17
|
+
UploadFile.config.main.required = true;
|
|
18
|
+
}
|
|
19
|
+
UploadFile.config.main.errorMessage = config.errorMessage;
|
|
20
|
+
return UploadFile;
|
|
24
21
|
}
|
|
@@ -11,7 +11,7 @@ export const APISection = {
|
|
|
11
11
|
widget: "SelectInputField",
|
|
12
12
|
},
|
|
13
13
|
config: {
|
|
14
|
-
layout: { xs:
|
|
14
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
15
15
|
main: {
|
|
16
16
|
label: "Method",
|
|
17
17
|
type: "text",
|
|
@@ -26,7 +26,7 @@ export const APISection = {
|
|
|
26
26
|
widget: "InputField",
|
|
27
27
|
},
|
|
28
28
|
config: {
|
|
29
|
-
layout: { xs:
|
|
29
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
30
30
|
main: {
|
|
31
31
|
label: "Path",
|
|
32
32
|
type: "text",
|
|
@@ -43,7 +43,7 @@ export const APISection = {
|
|
|
43
43
|
widget: "EmptyBox",
|
|
44
44
|
},
|
|
45
45
|
config: {
|
|
46
|
-
layout: { xs: 0, sm:
|
|
46
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -54,7 +54,7 @@ export const APISection = {
|
|
|
54
54
|
widget: "EmptyBox",
|
|
55
55
|
},
|
|
56
56
|
config: {
|
|
57
|
-
layout: { xs: 0, sm:
|
|
57
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
{
|
|
@@ -73,7 +73,7 @@ export const APISection = {
|
|
|
73
73
|
widget: "InputField",
|
|
74
74
|
},
|
|
75
75
|
config: {
|
|
76
|
-
layout: { xs:
|
|
76
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
77
77
|
main: {
|
|
78
78
|
label: "Key",
|
|
79
79
|
},
|
|
@@ -87,7 +87,7 @@ export const APISection = {
|
|
|
87
87
|
widget: "InputField",
|
|
88
88
|
},
|
|
89
89
|
config: {
|
|
90
|
-
layout: { xs:
|
|
90
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
91
91
|
main: {
|
|
92
92
|
label: "Value",
|
|
93
93
|
},
|
|
@@ -101,7 +101,7 @@ export const APISection = {
|
|
|
101
101
|
widget: "EmptyBox",
|
|
102
102
|
},
|
|
103
103
|
config: {
|
|
104
|
-
layout: { xs: 0, sm:
|
|
104
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
],
|
|
@@ -124,7 +124,7 @@ export const APISection = {
|
|
|
124
124
|
widget: "InputField",
|
|
125
125
|
},
|
|
126
126
|
config: {
|
|
127
|
-
layout: { xs:
|
|
127
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
128
128
|
main: {
|
|
129
129
|
label: "Key",
|
|
130
130
|
},
|
|
@@ -138,7 +138,7 @@ export const APISection = {
|
|
|
138
138
|
widget: "InputField",
|
|
139
139
|
},
|
|
140
140
|
config: {
|
|
141
|
-
layout: { xs:
|
|
141
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
142
142
|
main: {
|
|
143
143
|
label: "Value",
|
|
144
144
|
},
|
|
@@ -152,7 +152,7 @@ export const APISection = {
|
|
|
152
152
|
widget: "EmptyBox",
|
|
153
153
|
},
|
|
154
154
|
config: {
|
|
155
|
-
layout: { xs: 0, sm:
|
|
155
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
156
156
|
},
|
|
157
157
|
},
|
|
158
158
|
],
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import emptyBox from "./emptyBox";
|
|
4
3
|
import { buildLabel } from "../buildLabel";
|
|
5
4
|
import Box from "./box";
|
|
6
|
-
|
|
7
|
-
// type: "Control",
|
|
8
|
-
// scope: `#/properties/empty`,
|
|
5
|
+
const emptyBox = (scope:string,layout?: any) => {
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
if(layout !== undefined){
|
|
8
|
+
return {
|
|
9
|
+
type: "Control",
|
|
10
|
+
scope: `#/properties/${scope}`,
|
|
11
|
+
options: {
|
|
12
|
+
widget: "EmptyBox",
|
|
13
|
+
},
|
|
14
|
+
config: {
|
|
15
|
+
//[{},{},{}]
|
|
16
|
+
layout: layout,
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
type: "Control",
|
|
22
|
+
scope: "#/properties/empty",
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
options: {
|
|
25
|
+
widget: "EmptyBox",
|
|
26
|
+
},
|
|
27
|
+
config: {
|
|
28
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
}
|
|
20
32
|
const cardLayout = {
|
|
21
33
|
type: "Control",
|
|
22
34
|
scope: "#/properties/cardLayout",
|
|
@@ -32,7 +44,7 @@ const cardLayout = {
|
|
|
32
44
|
widget: "SelectInputField",
|
|
33
45
|
},
|
|
34
46
|
config: {
|
|
35
|
-
layout: { xs:
|
|
47
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
36
48
|
main: {
|
|
37
49
|
label: "Screen Size",
|
|
38
50
|
|
|
@@ -47,7 +59,7 @@ const cardLayout = {
|
|
|
47
59
|
widget: "InputField",
|
|
48
60
|
},
|
|
49
61
|
config: {
|
|
50
|
-
layout: { xs:
|
|
62
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
51
63
|
main: {
|
|
52
64
|
label: "Value",
|
|
53
65
|
type: "number",
|
|
@@ -58,7 +70,7 @@ const cardLayout = {
|
|
|
58
70
|
},
|
|
59
71
|
},
|
|
60
72
|
},
|
|
61
|
-
emptyBox
|
|
73
|
+
emptyBox("cardEmpty")
|
|
62
74
|
],
|
|
63
75
|
},
|
|
64
76
|
},
|
|
@@ -81,14 +93,14 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
81
93
|
widget: "InputField",
|
|
82
94
|
},
|
|
83
95
|
config: {
|
|
84
|
-
layout: { xs:
|
|
96
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
85
97
|
main: {
|
|
86
98
|
label: childLabel || "Labels for Tab",
|
|
87
99
|
},
|
|
88
100
|
},
|
|
89
101
|
},
|
|
90
|
-
emptyBox,
|
|
91
|
-
emptyBox
|
|
102
|
+
emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
103
|
+
emptyBox("ArrayControlEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })
|
|
92
104
|
],
|
|
93
105
|
},
|
|
94
106
|
},
|
|
@@ -103,13 +115,13 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
103
115
|
widget: "InputField",
|
|
104
116
|
},
|
|
105
117
|
config: {
|
|
106
|
-
layout: { xs:
|
|
118
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
107
119
|
main: {
|
|
108
120
|
label: "Size",
|
|
109
121
|
},
|
|
110
122
|
},
|
|
111
123
|
};
|
|
112
|
-
sizeHolder.options.detail.elements[2] = emptyBox
|
|
124
|
+
sizeHolder.options.detail.elements[2] = emptyBox("sizeHolderempty")
|
|
113
125
|
const getInputField = (scope: String, label: String) => {
|
|
114
126
|
return {
|
|
115
127
|
type: "Control",
|
|
@@ -119,7 +131,7 @@ const getInputField = (scope: String, label: String) => {
|
|
|
119
131
|
widget: "InputField",
|
|
120
132
|
},
|
|
121
133
|
config: {
|
|
122
|
-
layout: { xs:
|
|
134
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
123
135
|
main: {
|
|
124
136
|
label: label,
|
|
125
137
|
},
|
|
@@ -136,7 +148,7 @@ export const getRadioInputField = (scope: String, label: String, options: string
|
|
|
136
148
|
widget: "RadioInputField",
|
|
137
149
|
},
|
|
138
150
|
config: {
|
|
139
|
-
layout: { xs:
|
|
151
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
140
152
|
main: {
|
|
141
153
|
label: label,
|
|
142
154
|
|
|
@@ -156,6 +168,8 @@ export const buildWrapper = (label: string, elements: any[]) => {
|
|
|
156
168
|
wrapperStyle: {
|
|
157
169
|
marginTop: '-6px',
|
|
158
170
|
marginBottom: '-8px',
|
|
171
|
+
marginLeft: "-34px",
|
|
172
|
+
width: "108%"
|
|
159
173
|
},
|
|
160
174
|
componentsBoxStyle: {
|
|
161
175
|
marginLeft: "24px",
|
|
@@ -192,7 +206,8 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
|
|
|
192
206
|
main: {
|
|
193
207
|
heading: heading,
|
|
194
208
|
minRows: 8,
|
|
195
|
-
hideButton: hideButton
|
|
209
|
+
hideButton: hideButton,
|
|
210
|
+
enableCodeEditor: true
|
|
196
211
|
},
|
|
197
212
|
},
|
|
198
213
|
}
|
|
@@ -206,7 +221,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
206
221
|
widget: "SelectInputField",
|
|
207
222
|
},
|
|
208
223
|
config: {
|
|
209
|
-
layout: { xs:
|
|
224
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
210
225
|
main: {
|
|
211
226
|
label: label,
|
|
212
227
|
type: "text",
|
|
@@ -215,10 +230,28 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
215
230
|
},
|
|
216
231
|
}
|
|
217
232
|
}
|
|
233
|
+
export const getMultiSelectField = (scope: string, label: string) => {
|
|
234
|
+
return {
|
|
235
|
+
type: "Control",
|
|
236
|
+
scope: `#/properties/${scope}`,
|
|
237
|
+
|
|
238
|
+
options: {
|
|
239
|
+
widget: "MultipleSelect",
|
|
240
|
+
},
|
|
241
|
+
config: {
|
|
242
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
243
|
+
main: {
|
|
244
|
+
multiple: true,
|
|
245
|
+
label: label,
|
|
246
|
+
options: [],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
}
|
|
250
|
+
}
|
|
218
251
|
|
|
219
252
|
|
|
220
253
|
const GraphSection = {
|
|
221
|
-
type: "
|
|
254
|
+
type: "WrapperLayout",
|
|
222
255
|
elements: [],
|
|
223
256
|
};
|
|
224
257
|
|
|
@@ -233,7 +266,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
233
266
|
getInputField("graphHeight", "Graph Height"),
|
|
234
267
|
getInputField("graphWidth", "Graph Width"),
|
|
235
268
|
getInputField("graphZoomHeight", "Zoom Height"),
|
|
236
|
-
emptyBox
|
|
269
|
+
emptyBox("TreeEmpty", {xs: 6, sm: 6, md: 4, lg: 4})
|
|
237
270
|
]
|
|
238
271
|
break;
|
|
239
272
|
case "InputSlider":
|
|
@@ -241,8 +274,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
241
274
|
getInputField("max", "Max Limit"),
|
|
242
275
|
getInputField("step", "Step"),
|
|
243
276
|
getInputField("min", "Min Limit"),
|
|
277
|
+
emptyBox("InputSliderEmpty1", {xs: 6, sm: 0, md: 0, lg: 0}),
|
|
244
278
|
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
|
|
245
|
-
emptyBox,
|
|
279
|
+
emptyBox("InputSliderEmpty2", {xs: 0, sm: 0, md: 8, lg: 8})
|
|
246
280
|
]
|
|
247
281
|
break;
|
|
248
282
|
case "DataGrid":
|
|
@@ -251,8 +285,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
251
285
|
getInputField("elevation", "Card Elevation"),
|
|
252
286
|
getInputField("height", "Grid height"),
|
|
253
287
|
getInputField("justifyContent", "justifyContent"),
|
|
254
|
-
emptyBox,
|
|
255
|
-
emptyBox,
|
|
288
|
+
emptyBox("DataGridEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
289
|
+
emptyBox("DataGridEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
256
290
|
cardLayout,
|
|
257
291
|
]
|
|
258
292
|
break;
|
|
@@ -266,7 +300,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
266
300
|
{ label: "Horizontal", value: "horizontal" },
|
|
267
301
|
{ label: "Vertical", value: "vertical" },
|
|
268
302
|
]),
|
|
269
|
-
emptyBox,
|
|
303
|
+
emptyBox("Stepper", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
270
304
|
|
|
271
305
|
getArrayControl("sectionLabels", "label")
|
|
272
306
|
|
|
@@ -277,20 +311,23 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
277
311
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
278
312
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
279
313
|
getInputField("maxWidth", "Max. Width"),
|
|
314
|
+
emptyBox("PopUpEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
|
|
280
315
|
]
|
|
281
316
|
break;
|
|
282
317
|
case "Text":
|
|
283
318
|
uiSchema.elements = [
|
|
284
319
|
getInputField("placeholder", "Placeholder"),
|
|
285
|
-
emptyBox,
|
|
286
|
-
emptyBox,
|
|
320
|
+
emptyBox("TextEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
321
|
+
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
287
322
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
288
323
|
]
|
|
289
324
|
break;
|
|
290
325
|
case "TextArea":
|
|
291
326
|
uiSchema.elements = [
|
|
292
327
|
getInputField("placeholder", "Placeholder"),
|
|
293
|
-
|
|
328
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
329
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
330
|
+
]
|
|
294
331
|
break;
|
|
295
332
|
|
|
296
333
|
case "SpeedoMeter":
|
|
@@ -300,7 +337,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
300
337
|
getInputField("heading", "Container Heading"),
|
|
301
338
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
302
339
|
getInputField("width", "Speedometer Width"),
|
|
303
|
-
emptyBox
|
|
340
|
+
emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
304
341
|
]
|
|
305
342
|
break;
|
|
306
343
|
case "RankCard":
|
|
@@ -309,7 +346,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
309
346
|
getInputField("image", "Image Url"),
|
|
310
347
|
getInputField("title", "Card Title"),
|
|
311
348
|
getInputField("description", "Card Description"),
|
|
312
|
-
emptyBox, emptyBox];
|
|
349
|
+
emptyBox("RankCardEmpty1"), emptyBox("RankCardEmpty2")];
|
|
313
350
|
break;
|
|
314
351
|
case "LeaderBoard":
|
|
315
352
|
uiSchema.elements = [
|
|
@@ -317,7 +354,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
317
354
|
getInputField("firstImage", "First Image url"),
|
|
318
355
|
getInputField("secondImage", "Second Image url"),
|
|
319
356
|
getInputField("thirdImage", "Third Image url"),
|
|
320
|
-
emptyBox, emptyBox,
|
|
357
|
+
emptyBox("LeaderBoardEmpty1"), emptyBox("LeaderBoardEmpty2"),
|
|
321
358
|
getTextArea("functionCode", "Write Compare Code", false),
|
|
322
359
|
];
|
|
323
360
|
break;
|
|
@@ -332,7 +369,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
332
369
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
333
370
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
334
371
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
335
|
-
emptyBox, emptyBox
|
|
372
|
+
emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
|
|
336
373
|
];
|
|
337
374
|
break;
|
|
338
375
|
case "card":
|
|
@@ -340,7 +377,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
340
377
|
getInputField("url", "Image Url"),
|
|
341
378
|
getInputField("label", "Label"),
|
|
342
379
|
getInputField("description", "Description"),
|
|
343
|
-
emptyBox
|
|
380
|
+
emptyBox("cardEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
|
|
344
381
|
];
|
|
345
382
|
break;
|
|
346
383
|
case "Button":
|
|
@@ -353,7 +390,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
353
390
|
{ label: "Apply Default Style", value: "true" },
|
|
354
391
|
{ label: "No Style", value: "false" },
|
|
355
392
|
]),
|
|
356
|
-
emptyBox
|
|
393
|
+
emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
357
394
|
];
|
|
358
395
|
break;
|
|
359
396
|
case "Graph":
|
|
@@ -366,13 +403,15 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
366
403
|
{ label: "Line Graph", value: "LineGraph" },
|
|
367
404
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
368
405
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
406
|
+
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
|
|
369
407
|
]),
|
|
370
408
|
getInputField("leftLabel", "Left Label"),
|
|
371
409
|
getInputField("bottomLabel", "Bottom Label"),
|
|
410
|
+
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
372
411
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
373
412
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
374
413
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
375
|
-
emptyBox,
|
|
414
|
+
emptyBox("GraphEmpty2"),
|
|
376
415
|
getArrayControl("legendLabels", "label"),
|
|
377
416
|
getArrayControl("pieArcColors", "color"),
|
|
378
417
|
];
|
|
@@ -382,7 +421,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
382
421
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
383
422
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
384
423
|
getInputField("rowSpacing", "Row Spacing"),
|
|
385
|
-
emptyBox, emptyBox
|
|
424
|
+
emptyBox("WrapperSectionEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
|
|
386
425
|
]
|
|
387
426
|
break;
|
|
388
427
|
|
|
@@ -390,30 +429,39 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
390
429
|
uiSchema.elements = [
|
|
391
430
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
392
431
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
393
|
-
emptyBox,
|
|
432
|
+
emptyBox("TabEmpty"),
|
|
394
433
|
getArrayControl("sectionLabels", "label"),
|
|
395
434
|
]
|
|
396
435
|
break;
|
|
397
436
|
case "Table":
|
|
398
|
-
case "LazyLoadingTable":
|
|
399
437
|
uiSchema.elements = [
|
|
400
438
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
401
439
|
getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
|
|
402
440
|
getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
|
|
403
441
|
getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
|
|
404
442
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
405
|
-
|
|
443
|
+
getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
|
|
444
|
+
getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
|
|
445
|
+
getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
|
|
446
|
+
|
|
447
|
+
getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
|
|
448
|
+
getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
|
|
449
|
+
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
450
|
+
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
451
|
+
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
452
|
+
getInputField("selectKey", "Selection Key"),
|
|
453
|
+
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
406
454
|
buildWrapper("Tree Table Properties", [
|
|
407
455
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
408
456
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
409
457
|
// getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
|
|
410
458
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
411
459
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
412
|
-
emptyBox, emptyBox
|
|
460
|
+
emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
|
|
413
461
|
]),
|
|
414
462
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
415
463
|
sizeHolder,
|
|
416
|
-
|
|
464
|
+
getArrayControl("enableColumnFilter", "keyName", "Component Name"),
|
|
417
465
|
]
|
|
418
466
|
break;
|
|
419
467
|
case "Radio":
|
|
@@ -425,14 +473,14 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
425
473
|
uiSchema.elements = [
|
|
426
474
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
427
475
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
428
|
-
emptyBox
|
|
476
|
+
emptyBox("SelectEmpty")
|
|
429
477
|
]
|
|
430
478
|
break;
|
|
431
479
|
case "MultipleSelect":
|
|
432
480
|
uiSchema.elements = [
|
|
433
481
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
434
|
-
emptyBox,
|
|
435
|
-
emptyBox
|
|
482
|
+
emptyBox("MultipleSelectEmpty1", {xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
483
|
+
emptyBox("MultipleSelectEmpty2")
|
|
436
484
|
]
|
|
437
485
|
break;
|
|
438
486
|
}
|