impaktapps-ui-builder 0.0.412-hj → 0.0.412-mtreemap.2
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 +1237 -1394
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -108
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +30 -26
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +11 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +29 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +9 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -26
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +99 -125
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +109 -108
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +2 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +85 -57
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +311 -286
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +367 -362
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +380 -284
- package/src/impaktapps-ui-builder/builder/services/component.ts +18 -18
- package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -5,7 +5,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
5
5
|
setPage: () => Promise<void>;
|
|
6
6
|
refreshPage: (handlerType: any, store: any) => void;
|
|
7
7
|
getFormData: () => any;
|
|
8
|
-
getUiSchema: () => any
|
|
8
|
+
getUiSchema: () => Promise<any>;
|
|
9
9
|
getSchema: () => {
|
|
10
10
|
type: string;
|
|
11
11
|
properties: {
|
package/package.json
CHANGED
|
@@ -3,33 +3,37 @@ import { HorizontalBarGraph } from "./uischema/graph";
|
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const buildHorizontalBarGraph = (config: any, componentScope: string) => {
|
|
7
|
+
const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
|
|
8
|
+
horizontalBarGraph.scope = componentScope;
|
|
9
|
+
if (config.layout) {
|
|
10
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
|
|
11
|
+
}
|
|
12
|
+
horizontalBarGraph.scope = componentScope;
|
|
13
|
+
horizontalBarGraph.config.main.header = config.heading;
|
|
14
|
+
if (config.barColor) {
|
|
15
|
+
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
16
|
+
}
|
|
17
|
+
if (config.containerBackground) {
|
|
18
|
+
horizontalBarGraph.config.containerStyle.background =
|
|
19
|
+
config.containerBackground;
|
|
20
|
+
}
|
|
21
|
+
if (config.height) {
|
|
22
|
+
horizontalBarGraph.config.style =
|
|
23
|
+
{
|
|
24
|
+
containerStyle: {
|
|
25
|
+
height: config.height
|
|
26
|
+
}
|
|
11
27
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (config.height) {
|
|
22
|
-
horizontalBarGraph.config.style.containerStyle.height =
|
|
23
|
-
config.height;
|
|
24
|
-
}
|
|
25
|
-
if (config.bottomLabel) {
|
|
26
|
-
horizontalBarGraph.config.main.bottomLabel =
|
|
27
|
-
config.bottomLabel;
|
|
28
|
-
}
|
|
29
|
-
if (config.leftLabel) {
|
|
30
|
-
horizontalBarGraph.config.main.leftLabel = config.leftLabel;
|
|
31
|
-
}
|
|
32
|
-
return horizontalBarGraph
|
|
28
|
+
}
|
|
29
|
+
if (config.bottomLabel) {
|
|
30
|
+
horizontalBarGraph.config.main.bottomLabel =
|
|
31
|
+
config.bottomLabel;
|
|
32
|
+
}
|
|
33
|
+
if (config.leftLabel) {
|
|
34
|
+
horizontalBarGraph.config.main.leftLabel = config.leftLabel;
|
|
35
|
+
}
|
|
36
|
+
return horizontalBarGraph
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export default buildHorizontalBarGraph
|
|
@@ -7,7 +7,12 @@ export const buildPieGraph = (config, componentScope) => {
|
|
|
7
7
|
pieGraph.config.layout = createLayoutFormat(config.layout);
|
|
8
8
|
}
|
|
9
9
|
if (config.height) {
|
|
10
|
-
pieGraph.config.style
|
|
10
|
+
pieGraph.config.style =
|
|
11
|
+
{
|
|
12
|
+
containerStyle: {
|
|
13
|
+
height: config.height
|
|
14
|
+
}
|
|
15
|
+
};
|
|
11
16
|
}
|
|
12
17
|
if (config.legendHide) {
|
|
13
18
|
pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
|
|
@@ -20,7 +25,11 @@ export const buildPieGraph = (config, componentScope) => {
|
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
if (config.pieArcColors) {
|
|
23
|
-
pieGraph.config.style
|
|
28
|
+
pieGraph.config.style = {
|
|
29
|
+
pieStyle: {
|
|
30
|
+
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
return pieGraph;
|
|
26
35
|
}
|
|
@@ -8,17 +8,17 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
8
8
|
barGraph.config.layout = createLayoutFormat(config.layout);
|
|
9
9
|
}
|
|
10
10
|
if (config.legendHide) {
|
|
11
|
-
barGraph.config.main.legendAvailable =
|
|
11
|
+
barGraph.config.main.legendAvailable = config.legendHide;
|
|
12
12
|
}
|
|
13
13
|
barGraph.config.main.type = config.graphType;
|
|
14
14
|
barGraph.config.main.header = config.heading;
|
|
15
15
|
if (config.barColor) {
|
|
16
16
|
barGraph.config.barStyle.color = config.barColor;
|
|
17
17
|
}
|
|
18
|
-
if (config.containerBackground) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
// if (config.containerBackground) {
|
|
19
|
+
// barGraph.config.containerStyle.background =
|
|
20
|
+
// config.containerBackground;
|
|
21
|
+
// }
|
|
22
22
|
if (config.height) {
|
|
23
23
|
barGraph.config.style.containerStyle.height = config.height;
|
|
24
24
|
}
|
|
@@ -28,6 +28,6 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
28
28
|
if (config.leftLabel) {
|
|
29
29
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
30
30
|
}
|
|
31
|
-
barGraph.scope = componentScope;
|
|
31
|
+
// barGraph.scope = componentScope;
|
|
32
32
|
return barGraph;
|
|
33
33
|
}
|
|
@@ -11,7 +11,7 @@ export const APISection = {
|
|
|
11
11
|
widget: "SelectInputField",
|
|
12
12
|
},
|
|
13
13
|
config: {
|
|
14
|
-
layout: { xs: 11, sm:
|
|
14
|
+
layout: { xs: 11, sm: 4, 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: 11, sm:
|
|
29
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
30
30
|
main: {
|
|
31
31
|
label: "Path",
|
|
32
32
|
type: "text",
|
|
@@ -35,6 +35,28 @@ export const APISection = {
|
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
type: "Control",
|
|
40
|
+
scope: "#/properties/emptyBox",
|
|
41
|
+
|
|
42
|
+
options: {
|
|
43
|
+
widget: "EmptyBox",
|
|
44
|
+
},
|
|
45
|
+
config: {
|
|
46
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "Control",
|
|
51
|
+
scope: "#/properties/emptyBox",
|
|
52
|
+
|
|
53
|
+
options: {
|
|
54
|
+
widget: "EmptyBox",
|
|
55
|
+
},
|
|
56
|
+
config: {
|
|
57
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
38
60
|
{
|
|
39
61
|
type: "Control",
|
|
40
62
|
scope: "#/properties/headers",
|
|
@@ -51,12 +73,7 @@ export const APISection = {
|
|
|
51
73
|
widget: "InputField",
|
|
52
74
|
},
|
|
53
75
|
config: {
|
|
54
|
-
layout: {
|
|
55
|
-
xs: 11,
|
|
56
|
-
sm: 11,
|
|
57
|
-
md: 5.5,
|
|
58
|
-
lg: 5.5,
|
|
59
|
-
},
|
|
76
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
60
77
|
main: {
|
|
61
78
|
label: "Key",
|
|
62
79
|
},
|
|
@@ -70,17 +87,23 @@ export const APISection = {
|
|
|
70
87
|
widget: "InputField",
|
|
71
88
|
},
|
|
72
89
|
config: {
|
|
73
|
-
layout: {
|
|
74
|
-
xs: 11,
|
|
75
|
-
sm: 11,
|
|
76
|
-
md: 5.5,
|
|
77
|
-
lg: 5.5,
|
|
78
|
-
},
|
|
90
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
79
91
|
main: {
|
|
80
92
|
label: "Value",
|
|
81
93
|
},
|
|
82
94
|
},
|
|
83
95
|
},
|
|
96
|
+
{
|
|
97
|
+
type: "Control",
|
|
98
|
+
scope: "#/properties/emptyBox",
|
|
99
|
+
|
|
100
|
+
options: {
|
|
101
|
+
widget: "EmptyBox",
|
|
102
|
+
},
|
|
103
|
+
config: {
|
|
104
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
84
107
|
],
|
|
85
108
|
},
|
|
86
109
|
},
|
|
@@ -101,12 +124,7 @@ export const APISection = {
|
|
|
101
124
|
widget: "InputField",
|
|
102
125
|
},
|
|
103
126
|
config: {
|
|
104
|
-
layout: {
|
|
105
|
-
xs: 11,
|
|
106
|
-
sm: 11,
|
|
107
|
-
md: 5.5,
|
|
108
|
-
lg: 5.5,
|
|
109
|
-
},
|
|
127
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
110
128
|
main: {
|
|
111
129
|
label: "Key",
|
|
112
130
|
},
|
|
@@ -120,18 +138,23 @@ export const APISection = {
|
|
|
120
138
|
widget: "InputField",
|
|
121
139
|
},
|
|
122
140
|
config: {
|
|
123
|
-
layout: {
|
|
124
|
-
xs: 11,
|
|
125
|
-
sm: 11,
|
|
126
|
-
md: 5.5,
|
|
127
|
-
lg: 5.5,
|
|
128
|
-
},
|
|
141
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
129
142
|
main: {
|
|
130
143
|
label: "Value",
|
|
131
144
|
},
|
|
132
145
|
},
|
|
133
146
|
},
|
|
134
|
-
|
|
147
|
+
{
|
|
148
|
+
type: "Control",
|
|
149
|
+
scope: "#/properties/emptyBox",
|
|
150
|
+
|
|
151
|
+
options: {
|
|
152
|
+
widget: "EmptyBox",
|
|
153
|
+
},
|
|
154
|
+
config: {
|
|
155
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
156
|
+
},
|
|
157
|
+
},
|
|
135
158
|
],
|
|
136
159
|
},
|
|
137
160
|
},
|
|
@@ -9,12 +9,7 @@ const EmptyBox = {
|
|
|
9
9
|
widget: "EmptyBox",
|
|
10
10
|
},
|
|
11
11
|
config: {
|
|
12
|
-
layout: {
|
|
13
|
-
xs: 11,
|
|
14
|
-
sm: 11,
|
|
15
|
-
md: 5.5,
|
|
16
|
-
lg: 5.5,
|
|
17
|
-
},
|
|
12
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
18
13
|
main: {
|
|
19
14
|
|
|
20
15
|
},
|
|
@@ -35,12 +30,7 @@ const cardLayout = {
|
|
|
35
30
|
widget: "SelectInputField",
|
|
36
31
|
},
|
|
37
32
|
config: {
|
|
38
|
-
layout: {
|
|
39
|
-
xs: 11,
|
|
40
|
-
sm: 11,
|
|
41
|
-
md: 5.5,
|
|
42
|
-
lg: 5.5,
|
|
43
|
-
},
|
|
33
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
44
34
|
main: {
|
|
45
35
|
label: "Screen Size",
|
|
46
36
|
|
|
@@ -55,12 +45,7 @@ const cardLayout = {
|
|
|
55
45
|
widget: "InputField",
|
|
56
46
|
},
|
|
57
47
|
config: {
|
|
58
|
-
layout: {
|
|
59
|
-
xs: 11,
|
|
60
|
-
sm: 11,
|
|
61
|
-
md: 5.5,
|
|
62
|
-
lg: 5.5,
|
|
63
|
-
},
|
|
48
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
64
49
|
main: {
|
|
65
50
|
label: "Value",
|
|
66
51
|
type: "number",
|
|
@@ -71,6 +56,7 @@ const cardLayout = {
|
|
|
71
56
|
},
|
|
72
57
|
},
|
|
73
58
|
},
|
|
59
|
+
EmptyBox,
|
|
74
60
|
],
|
|
75
61
|
},
|
|
76
62
|
},
|
|
@@ -93,17 +79,13 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
93
79
|
widget: "InputField",
|
|
94
80
|
},
|
|
95
81
|
config: {
|
|
96
|
-
layout: {
|
|
97
|
-
xs: 11,
|
|
98
|
-
sm: 11,
|
|
99
|
-
md: 5.5,
|
|
100
|
-
lg: 5.5,
|
|
101
|
-
},
|
|
82
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
102
83
|
main: {
|
|
103
84
|
label: childLabel || "Labels for Tab",
|
|
104
85
|
},
|
|
105
86
|
},
|
|
106
87
|
},
|
|
88
|
+
EmptyBox,
|
|
107
89
|
EmptyBox
|
|
108
90
|
],
|
|
109
91
|
},
|
|
@@ -119,12 +101,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
119
101
|
widget: "InputField",
|
|
120
102
|
},
|
|
121
103
|
config: {
|
|
122
|
-
layout: {
|
|
123
|
-
xs: 11,
|
|
124
|
-
sm: 11,
|
|
125
|
-
md: 5.5,
|
|
126
|
-
lg: 5.5,
|
|
127
|
-
},
|
|
104
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
128
105
|
main: {
|
|
129
106
|
label: "Size",
|
|
130
107
|
},
|
|
@@ -139,12 +116,7 @@ const getInputField = (scope: String, label: String) => {
|
|
|
139
116
|
widget: "InputField",
|
|
140
117
|
},
|
|
141
118
|
config: {
|
|
142
|
-
layout: {
|
|
143
|
-
xs: 11,
|
|
144
|
-
sm: 11,
|
|
145
|
-
md: 5.5,
|
|
146
|
-
lg: 5.5,
|
|
147
|
-
},
|
|
119
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
148
120
|
main: {
|
|
149
121
|
label: label,
|
|
150
122
|
},
|
|
@@ -161,12 +133,7 @@ export const getRadioInputField = (scope: String, label: String, options: string
|
|
|
161
133
|
widget: "RadioInputField",
|
|
162
134
|
},
|
|
163
135
|
config: {
|
|
164
|
-
layout: {
|
|
165
|
-
xs: 11,
|
|
166
|
-
sm: 11,
|
|
167
|
-
md: 5.5,
|
|
168
|
-
lg: 5.5,
|
|
169
|
-
},
|
|
136
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
170
137
|
main: {
|
|
171
138
|
label: label,
|
|
172
139
|
|
|
@@ -217,7 +184,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
217
184
|
widget: "SelectInputField",
|
|
218
185
|
},
|
|
219
186
|
config: {
|
|
220
|
-
layout: { xs: 11, sm:
|
|
187
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
221
188
|
main: {
|
|
222
189
|
label: label,
|
|
223
190
|
type: "text",
|
|
@@ -260,6 +227,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
260
227
|
getInputField("elevation", "Card Elevation"),
|
|
261
228
|
getInputField("height", "Grid height"),
|
|
262
229
|
getInputField("justifyContent", "justifyContent"),
|
|
230
|
+
EmptyBox,
|
|
231
|
+
EmptyBox,
|
|
263
232
|
cardLayout,
|
|
264
233
|
]
|
|
265
234
|
break;
|
|
@@ -273,7 +242,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
273
242
|
{ label: "Horizontal", value: "horizontal" },
|
|
274
243
|
{ label: "Vertical", value: "vertical" },
|
|
275
244
|
]),
|
|
276
|
-
|
|
245
|
+
EmptyBox,
|
|
277
246
|
getArrayControl("sectionLabels", "label")
|
|
278
247
|
|
|
279
248
|
]
|
|
@@ -290,13 +259,15 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
290
259
|
uiSchema.elements = [
|
|
291
260
|
getInputField("placeholder", "Placeholder"),
|
|
292
261
|
EmptyBox,
|
|
262
|
+
EmptyBox,
|
|
293
263
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
294
264
|
]
|
|
295
265
|
break;
|
|
296
266
|
case "TextArea":
|
|
297
267
|
uiSchema.elements = [
|
|
298
268
|
getInputField("placeholder", "Placeholder"),
|
|
299
|
-
EmptyBox,
|
|
269
|
+
EmptyBox,
|
|
270
|
+
EmptyBox]
|
|
300
271
|
break;
|
|
301
272
|
|
|
302
273
|
case "SpeedoMeter":
|
|
@@ -305,7 +276,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
305
276
|
getInputField("heading", "Container Heading"),
|
|
306
277
|
getInputField("heading", "Container Heading"),
|
|
307
278
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
308
|
-
getInputField("width", "Speedometer Width")
|
|
279
|
+
getInputField("width", "Speedometer Width"),
|
|
280
|
+
EmptyBox
|
|
309
281
|
]
|
|
310
282
|
break;
|
|
311
283
|
case "RankCard":
|
|
@@ -313,7 +285,10 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
313
285
|
getInputField("rank", "Rank"),
|
|
314
286
|
getInputField("image", "Image Url"),
|
|
315
287
|
getInputField("title", "Card Title"),
|
|
316
|
-
getInputField("description", "Card Description")
|
|
288
|
+
getInputField("description", "Card Description"),
|
|
289
|
+
EmptyBox,
|
|
290
|
+
EmptyBox
|
|
291
|
+
];
|
|
317
292
|
break;
|
|
318
293
|
case "LeaderBoard":
|
|
319
294
|
uiSchema.elements = [
|
|
@@ -321,6 +296,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
321
296
|
getInputField("firstImage", "First Image url"),
|
|
322
297
|
getInputField("secondImage", "Second Image url"),
|
|
323
298
|
getInputField("thirdImage", "Third Image url"),
|
|
299
|
+
EmptyBox,
|
|
300
|
+
EmptyBox,
|
|
324
301
|
getTextArea("functionCode", "Write Compare Code", false)
|
|
325
302
|
];
|
|
326
303
|
break;
|
|
@@ -334,7 +311,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
334
311
|
getInputField("heading", "Heading"),
|
|
335
312
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
336
313
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
337
|
-
getInputField("bottomLabel_3", "Third BottomLabel")
|
|
314
|
+
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
315
|
+
EmptyBox,
|
|
316
|
+
EmptyBox
|
|
338
317
|
];
|
|
339
318
|
break;
|
|
340
319
|
case "card":
|
|
@@ -415,11 +394,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
415
394
|
uiSchema.elements = [
|
|
416
395
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
417
396
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
397
|
+
EmptyBox
|
|
418
398
|
]
|
|
419
399
|
break;
|
|
420
400
|
case "MultipleSelect":
|
|
421
401
|
uiSchema.elements = [
|
|
422
402
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
403
|
+
EmptyBox,
|
|
423
404
|
EmptyBox
|
|
424
405
|
]
|
|
425
406
|
break;
|
|
@@ -4,16 +4,15 @@ export default {
|
|
|
4
4
|
main: {
|
|
5
5
|
rowSpacing: 0.5,
|
|
6
6
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
7
|
+
|
|
8
|
+
componentsBoxStyle: {
|
|
9
|
+
position : "relative",
|
|
10
|
+
color: "white",
|
|
11
|
+
height: {xs:"120px",md:"160px"},
|
|
12
|
+
width: "100%",
|
|
13
|
+
textAlign: "left",
|
|
14
|
+
background: "#3f51b5",
|
|
15
|
+
borderRadius: "20px",
|
|
17
16
|
},
|
|
18
17
|
layout: { xs: 12, sm: 12,md: 6,lg: 6, },},
|
|
19
18
|
elements: [
|
|
@@ -9,7 +9,7 @@ export const CoreSection = {
|
|
|
9
9
|
widget: "SelectInputField",
|
|
10
10
|
},
|
|
11
11
|
config: {
|
|
12
|
-
layout: { xs:
|
|
12
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
13
13
|
main: {
|
|
14
14
|
label: "Type",
|
|
15
15
|
type: "text",
|
|
@@ -24,12 +24,7 @@ export const CoreSection = {
|
|
|
24
24
|
widget: "InputField",
|
|
25
25
|
},
|
|
26
26
|
config: {
|
|
27
|
-
layout: {
|
|
28
|
-
xs: 12,
|
|
29
|
-
sm: 12,
|
|
30
|
-
md: 6,
|
|
31
|
-
lg: 6,
|
|
32
|
-
},
|
|
27
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
33
28
|
main: {
|
|
34
29
|
label: "Name",
|
|
35
30
|
},
|
|
@@ -43,12 +38,7 @@ export const CoreSection = {
|
|
|
43
38
|
widget: "InputField",
|
|
44
39
|
},
|
|
45
40
|
config: {
|
|
46
|
-
layout: {
|
|
47
|
-
xs: 12,
|
|
48
|
-
sm: 12,
|
|
49
|
-
md: 6,
|
|
50
|
-
lg: 6,
|
|
51
|
-
},
|
|
41
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
52
42
|
main: {
|
|
53
43
|
label: "Label",
|
|
54
44
|
},
|
|
@@ -86,7 +76,7 @@ export const CoreSection = {
|
|
|
86
76
|
{
|
|
87
77
|
type: "Control",
|
|
88
78
|
scope: "#/properties/layout",
|
|
89
|
-
layout:
|
|
79
|
+
layout: 12,
|
|
90
80
|
options: {
|
|
91
81
|
"elementLabelProp": "key",
|
|
92
82
|
detail: {
|
|
@@ -100,12 +90,7 @@ export const CoreSection = {
|
|
|
100
90
|
widget: "SelectInputField",
|
|
101
91
|
},
|
|
102
92
|
config: {
|
|
103
|
-
layout: {
|
|
104
|
-
xs: 11,
|
|
105
|
-
sm: 11,
|
|
106
|
-
md: 5.5,
|
|
107
|
-
lg: 5.5,
|
|
108
|
-
},
|
|
93
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
109
94
|
main: {
|
|
110
95
|
label: "Screen Size",
|
|
111
96
|
|
|
@@ -120,12 +105,7 @@ export const CoreSection = {
|
|
|
120
105
|
widget: "InputField",
|
|
121
106
|
},
|
|
122
107
|
config: {
|
|
123
|
-
layout: {
|
|
124
|
-
xs: 11,
|
|
125
|
-
sm: 11,
|
|
126
|
-
md: 5.5,
|
|
127
|
-
lg: 5.5,
|
|
128
|
-
},
|
|
108
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
129
109
|
main: {
|
|
130
110
|
label: "Value",
|
|
131
111
|
type:"number",
|
|
@@ -135,6 +115,16 @@ export const CoreSection = {
|
|
|
135
115
|
},
|
|
136
116
|
},
|
|
137
117
|
},
|
|
118
|
+
{
|
|
119
|
+
type: 'Control',
|
|
120
|
+
scope: '#/properties/emptyBox',
|
|
121
|
+
options: {
|
|
122
|
+
widget: "EmptyBox"
|
|
123
|
+
},
|
|
124
|
+
config: {
|
|
125
|
+
layout: {xs: 0, sm: 4}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
138
128
|
],
|
|
139
129
|
},
|
|
140
130
|
},
|