impaktapps-ui-builder 0.0.277 → 0.0.279
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 +111 -107
- 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 +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +7 -1
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +85 -83
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +35 -35
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +4 -29
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +35 -35
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +10 -10
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
|
@@ -43,8 +43,8 @@ export declare const APISection: {
|
|
|
43
43
|
label: string;
|
|
44
44
|
type: string;
|
|
45
45
|
options: {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
title: string;
|
|
47
|
+
const: string;
|
|
48
48
|
}[];
|
|
49
49
|
multiple?: undefined;
|
|
50
50
|
};
|
|
@@ -114,7 +114,7 @@ export declare const APISectionSchema: {
|
|
|
114
114
|
key: {
|
|
115
115
|
type: string;
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
const: {
|
|
118
118
|
type: string;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
@@ -128,7 +128,7 @@ export declare const APISectionSchema: {
|
|
|
128
128
|
key: {
|
|
129
129
|
type: string;
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
const: {
|
|
132
132
|
type: string;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
@@ -24,8 +24,8 @@ export declare const getTextArea: (scope: string, heading: string, hideButton: b
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare const getSelectField: (scope: string, label: string, options: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
title: string;
|
|
28
|
+
const: string;
|
|
29
29
|
}[]) => {
|
|
30
30
|
type: string;
|
|
31
31
|
scope: string;
|
|
@@ -43,8 +43,8 @@ export declare const getSelectField: (scope: string, label: string, options: {
|
|
|
43
43
|
label: string;
|
|
44
44
|
type: string;
|
|
45
45
|
options: {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
title: string;
|
|
47
|
+
const: string;
|
|
48
48
|
}[];
|
|
49
49
|
};
|
|
50
50
|
};
|
|
@@ -19,8 +19,8 @@ export declare const CoreSection: {
|
|
|
19
19
|
label: string;
|
|
20
20
|
type: string;
|
|
21
21
|
options: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
title: string;
|
|
23
|
+
const: string;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -89,8 +89,8 @@ export declare const CoreSection: {
|
|
|
89
89
|
main: {
|
|
90
90
|
label: string;
|
|
91
91
|
options: {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
title: string;
|
|
93
|
+
const: string;
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
96
|
};
|
package/package.json
CHANGED
|
@@ -6,11 +6,17 @@ export const buildMultiSelect = (config,componentScope) =>{
|
|
|
6
6
|
const multipleSelect: any = _.cloneDeep(MultipleSelect);
|
|
7
7
|
multipleSelect.scope = componentScope;
|
|
8
8
|
if (config.label) {
|
|
9
|
+
|
|
9
10
|
multipleSelect.config.main.label = config.label;
|
|
10
11
|
}
|
|
11
12
|
if(config.layout){
|
|
12
13
|
multipleSelect.config.layout = createLayoutFormat(config.layout)
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
if(config.value){
|
|
16
|
+
const options = config.value.map((e:any)=>{
|
|
17
|
+
return {title:e.label,const:e.value}
|
|
18
|
+
});
|
|
19
|
+
multipleSelect.config.main.options = options??[];
|
|
20
|
+
}
|
|
15
21
|
return multipleSelect;
|
|
16
22
|
}
|
|
@@ -7,7 +7,7 @@ export const buildSelect = (config:any,componentScope:string) =>{
|
|
|
7
7
|
selectInputField.config.main.label = config.label;
|
|
8
8
|
if(config.value){
|
|
9
9
|
const options = config.value.map((e:any)=>{
|
|
10
|
-
return {
|
|
10
|
+
return {title:e.label,const:e.value}
|
|
11
11
|
});
|
|
12
12
|
selectInputField.config.main.options = options;
|
|
13
13
|
};
|
|
@@ -16,10 +16,10 @@ export const APISection = {
|
|
|
16
16
|
label: "Method",
|
|
17
17
|
type: "text",
|
|
18
18
|
options: [
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
19
|
+
{ title: "Get", const: "get" },
|
|
20
|
+
{ title: "Post", const: "post" },
|
|
21
|
+
{ title: "Delete", const: "delete" },
|
|
22
|
+
{ title: "Put", const: "put" },
|
|
23
23
|
],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -155,7 +155,7 @@ export const APISectionSchema = {
|
|
|
155
155
|
key: {
|
|
156
156
|
type: "string",
|
|
157
157
|
},
|
|
158
|
-
|
|
158
|
+
const: {
|
|
159
159
|
type: "string",
|
|
160
160
|
},
|
|
161
161
|
},
|
|
@@ -169,7 +169,7 @@ export const APISectionSchema = {
|
|
|
169
169
|
key: {
|
|
170
170
|
type: "string",
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
const: {
|
|
173
173
|
type: "string",
|
|
174
174
|
},
|
|
175
175
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
const EmptyBox =
|
|
3
|
+
const EmptyBox = {
|
|
4
4
|
type: "Control",
|
|
5
5
|
scope: `#/properties/empty`,
|
|
6
6
|
|
|
@@ -15,12 +15,12 @@ const EmptyBox = {
|
|
|
15
15
|
lg: 5.5,
|
|
16
16
|
},
|
|
17
17
|
main: {
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
const getArrayControl = (parentScope:string,childScope:string,childLabel?:string,) =>{
|
|
23
|
-
return
|
|
22
|
+
const getArrayControl = (parentScope: string, childScope: string, childLabel?: string,) => {
|
|
23
|
+
return {
|
|
24
24
|
type: "Control",
|
|
25
25
|
scope: `#/properties/${parentScope}`,
|
|
26
26
|
layout: 11.5,
|
|
@@ -32,7 +32,7 @@ const getArrayControl = (parentScope:string,childScope:string,childLabel?:string
|
|
|
32
32
|
{
|
|
33
33
|
type: "Control",
|
|
34
34
|
scope: `#/properties/${childScope}`,
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
options: {
|
|
37
37
|
widget: "InputField",
|
|
38
38
|
},
|
|
@@ -44,7 +44,7 @@ const getArrayControl = (parentScope:string,childScope:string,childLabel?:string
|
|
|
44
44
|
lg: 5.5,
|
|
45
45
|
},
|
|
46
46
|
main: {
|
|
47
|
-
label: childLabel||"Labels for Tab",
|
|
47
|
+
label: childLabel || "Labels for Tab",
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
},
|
|
@@ -75,7 +75,7 @@ const getInputField = (scope: String, label: String) => {
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const getRadioInputField = (scope: String, label: String,options:string[]) => {
|
|
78
|
+
const getRadioInputField = (scope: String, label: String, options: string[]) => {
|
|
79
79
|
return {
|
|
80
80
|
type: "Control",
|
|
81
81
|
scope: `#/properties/${scope}`,
|
|
@@ -92,15 +92,15 @@ const getRadioInputField = (scope: String, label: String,options:string[]) => {
|
|
|
92
92
|
},
|
|
93
93
|
main: {
|
|
94
94
|
label: label,
|
|
95
|
-
|
|
96
|
-
options:options,
|
|
95
|
+
|
|
96
|
+
options: options,
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
export const getTextArea = (scope:string,heading:string,hideButton:boolean,layout?:any)=>{
|
|
103
|
-
return
|
|
102
|
+
export const getTextArea = (scope: string, heading: string, hideButton: boolean, layout?: any) => {
|
|
103
|
+
return {
|
|
104
104
|
type: "Control",
|
|
105
105
|
scope: `#/properties/${scope}`,
|
|
106
106
|
|
|
@@ -108,30 +108,30 @@ export const getTextArea = (scope:string,heading:string,hideButton:boolean,layou
|
|
|
108
108
|
widget: "TextArea",
|
|
109
109
|
},
|
|
110
110
|
config: {
|
|
111
|
-
layout:layout||12,
|
|
112
|
-
style:{
|
|
113
|
-
containerStyle:{
|
|
114
|
-
borderRadius:"20px",
|
|
111
|
+
layout: layout || 12,
|
|
112
|
+
style: {
|
|
113
|
+
containerStyle: {
|
|
114
|
+
borderRadius: "20px",
|
|
115
115
|
},
|
|
116
|
-
headerContainerStyle:{
|
|
117
|
-
|
|
116
|
+
headerContainerStyle: {
|
|
117
|
+
|
|
118
118
|
},
|
|
119
|
-
textAreaStyle:{
|
|
120
|
-
borderRadius:"20px",
|
|
121
|
-
padding:"20px"
|
|
119
|
+
textAreaStyle: {
|
|
120
|
+
borderRadius: "20px",
|
|
121
|
+
padding: "20px"
|
|
122
122
|
// background:"black",
|
|
123
123
|
// color:"white"
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
main: {
|
|
127
|
-
heading:heading,
|
|
128
|
-
minRows:8,
|
|
129
|
-
hideButton:hideButton
|
|
127
|
+
heading: heading,
|
|
128
|
+
minRows: 8,
|
|
129
|
+
hideButton: hideButton
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
export const getSelectField = (scope: string, label: string, options: {
|
|
134
|
+
export const getSelectField = (scope: string, label: string, options: { title: string, const: string }[]) => {
|
|
135
135
|
return {
|
|
136
136
|
type: "Control",
|
|
137
137
|
scope: `#/properties/${scope}`,
|
|
@@ -158,28 +158,28 @@ const GraphSection = {
|
|
|
158
158
|
|
|
159
159
|
export const buildPropertiesSection = function (type: String) {
|
|
160
160
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
161
|
-
if(type === "SpeedoMeter"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
else if (
|
|
161
|
+
if (type === "SpeedoMeter") {
|
|
162
|
+
uiSchema.elements = [
|
|
163
|
+
getInputField("segments", "Segments Count"),
|
|
164
|
+
getInputField("heading", "Container Heading"),
|
|
165
|
+
getInputField("heading", "Container Heading"),
|
|
166
|
+
getInputField("speedoCaption", "Speedometer Caption"),
|
|
167
|
+
getInputField("width", "Speedometer Width")
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
else if (type === "RankCard") {
|
|
171
171
|
uiSchema.elements = [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
172
|
+
getInputField("rank", "Rank"),
|
|
173
|
+
getInputField("image", "Image Url"),
|
|
174
|
+
getInputField("title", "Card Title"),
|
|
175
|
+
getInputField("description", "Card Description")];
|
|
176
|
+
}
|
|
177
177
|
else if (type === "LeaderBoard") {
|
|
178
|
-
uiSchema.elements = [getInputField("valueLabel", "Value Label"),
|
|
178
|
+
uiSchema.elements = [getInputField("valueLabel", "Value Label"),
|
|
179
179
|
getInputField("firstImage", "First Image url"),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
getInputField("secondImage", "Second Image url"),
|
|
181
|
+
getInputField("thirdImage", "Third Image url"),
|
|
182
|
+
getTextArea("functionCode", "Write Compare Code", false)
|
|
183
183
|
];
|
|
184
184
|
}
|
|
185
185
|
else if (type === "CardSlider") {
|
|
@@ -193,64 +193,66 @@ if(type === "SpeedoMeter" ){
|
|
|
193
193
|
const bottomLabel_3 = getInputField("bottomLabel_3", "Third BottomLabel");
|
|
194
194
|
uiSchema.elements = [heading, bottomLabel_1, bottomLabel_2, bottomLabel_3];
|
|
195
195
|
} else if (type === "card") {
|
|
196
|
-
uiSchema.elements = [getInputField("url", "Image Url"),getInputField("label", "Label"),getInputField("description", "Description"),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
196
|
+
uiSchema.elements = [getInputField("url", "Image Url"), getInputField("label", "Label"), getInputField("description", "Description"),];
|
|
197
|
+
}
|
|
198
|
+
else if (type === "Box") {
|
|
199
|
+
const iconName = getInputField("value", "Value");
|
|
200
|
+
uiSchema.elements = [getSelectField("graphType", "Label Type", [
|
|
201
|
+
{ title: "URL", const: "url" },
|
|
202
|
+
{ title: "Heading", const: "heading" }
|
|
203
|
+
]), iconName];
|
|
204
|
+
}
|
|
205
|
+
else if (type === "Button") {
|
|
206
|
+
const caption = getInputField("color", "Color");
|
|
207
|
+
const size = getInputField("size", "Size");
|
|
208
|
+
const iconName = getInputField("iconName", "Icon Name");
|
|
209
|
+
uiSchema.elements = [getSelectField("buttonType", "Button Type", [
|
|
210
|
+
{ title: "Button With Text", const: "Button" },
|
|
211
|
+
{ title: "Button With Icon", const: "IconButton" },
|
|
212
|
+
{ title: "Button With Icon and Text", const: "ButtonWithIconAndText" },
|
|
213
|
+
]), iconName, size, caption,
|
|
214
|
+
getSelectField("defaultStyle", "Default Style", [
|
|
215
|
+
{ title: "Apply Default Style", const: "true" },
|
|
216
|
+
{ title: "No Style", const: "false" },
|
|
217
|
+
]),
|
|
218
|
+
JSON.parse(JSON.stringify(EmptyBox))
|
|
217
219
|
];
|
|
218
220
|
} else if (type === "Graph") {
|
|
219
221
|
const height = getInputField("height", "Height");
|
|
220
222
|
const heading = getInputField("heading", "Heading");
|
|
221
223
|
const leftLabel = getInputField("leftLabel", "Left Label");
|
|
222
224
|
const bottomLabel = getInputField("bottomLabel", "Bottom Label");
|
|
223
|
-
|
|
225
|
+
const legendAvailabe = getRadioInputField("legendHide", "Legend Hide", ["YES", "No"])
|
|
224
226
|
|
|
225
227
|
uiSchema.elements = [
|
|
226
228
|
heading,
|
|
227
229
|
height,
|
|
228
|
-
getSelectField("graphType","Graph Type",[
|
|
229
|
-
{
|
|
230
|
-
{
|
|
231
|
-
{
|
|
232
|
-
{
|
|
233
|
-
{
|
|
230
|
+
getSelectField("graphType", "Graph Type", [
|
|
231
|
+
{ title: "Bar Graph", const: "BarGraph" },
|
|
232
|
+
{ title: "Stack Bar Graph", const: "StackBarGraph" },
|
|
233
|
+
{ title: "Line Graph", const: "LineGraph" },
|
|
234
|
+
{ title: "Pie Graph", const: "PieGraph" },
|
|
235
|
+
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
234
236
|
]),
|
|
235
237
|
leftLabel,
|
|
236
238
|
bottomLabel,
|
|
237
239
|
legendAvailabe,
|
|
238
|
-
getArrayControl("legendLabels","label"),
|
|
239
|
-
getArrayControl("pieArcColors","color"),
|
|
240
|
+
getArrayControl("legendLabels", "label"),
|
|
241
|
+
getArrayControl("pieArcColors", "color"),
|
|
240
242
|
];
|
|
241
|
-
}else if(type === "WrapperSection"){
|
|
242
|
-
|
|
243
|
+
} else if (type === "WrapperSection") {
|
|
244
|
+
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), getRadioInputField("heading", "Page Heading", ["YES", "No"])]
|
|
243
245
|
}
|
|
244
|
-
else if(type === "TabSection"){
|
|
245
|
-
|
|
246
|
-
getArrayControl("sectionLabels","label"),
|
|
247
|
-
|
|
246
|
+
else if (type === "TabSection") {
|
|
247
|
+
uiSchema.elements = [
|
|
248
|
+
getArrayControl("sectionLabels", "label"),
|
|
249
|
+
]
|
|
248
250
|
}
|
|
249
|
-
else if(type === "Radio"){
|
|
250
|
-
uiSchema.elements =[
|
|
251
|
-
getArrayControl("sectionLabels","label","Options Of Radio"),
|
|
251
|
+
else if (type === "Radio") {
|
|
252
|
+
uiSchema.elements = [
|
|
253
|
+
getArrayControl("sectionLabels", "label", "Options Of Radio"),
|
|
252
254
|
]
|
|
253
|
-
|
|
255
|
+
}
|
|
254
256
|
|
|
255
257
|
return uiSchema;
|
|
256
258
|
};
|
|
@@ -14,33 +14,33 @@ export const CoreSection = {
|
|
|
14
14
|
label: "Type",
|
|
15
15
|
type: "text",
|
|
16
16
|
options: [
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
17
|
+
{ title: "Select", const: "Select" },
|
|
18
|
+
{ title: "Date", const: "Date" },
|
|
19
|
+
{ title: "CheckBox", const: "CheckBox" },
|
|
20
|
+
{ title: "Table", const: "Table" },
|
|
21
|
+
{ title: "Array", const: "Array" },
|
|
22
|
+
{ title: "Container", const: "WrapperSection" },
|
|
23
|
+
{ title: "Tabs", const: "TabSection" },
|
|
24
|
+
{ title: "Text", const: "Text" },
|
|
25
|
+
{ title: "Text Area", const: "TextArea" },
|
|
26
|
+
{ title: "Button", const: "Button" },
|
|
27
|
+
{ title: "Card", const: "card" },
|
|
28
|
+
{ title: "Radio", const: "Radio" },
|
|
29
|
+
{ title: "Rank", const: "Rank" },
|
|
30
|
+
{ title: "SpeedoMeter", const: "SpeedoMeter" },
|
|
31
|
+
{ title: "ProgressBar", const: "ProgressBar" },
|
|
32
|
+
{ title: "Graph", const: "Graph" },
|
|
33
|
+
{ title: "Label", const: "Box" },
|
|
34
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
35
|
+
{ title: "Download File", const: "DownloadFile" },
|
|
36
|
+
{ title: "Empty Box", const: "EmptyBox" },
|
|
37
|
+
{ title: "ProgressBar Card", const: "ProgressBarCard" },
|
|
38
|
+
{ title: "Rank Card", const: "RankCard" },
|
|
39
|
+
{ title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
|
|
40
|
+
{ title: "Slider", const: "Slider" },
|
|
41
|
+
{ title: "Timer", const: "Timer" },
|
|
42
|
+
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
43
|
+
{ title: "LeaderBoard", const: "LeaderBoard" },],
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
46
|
},
|
|
@@ -118,10 +118,10 @@ export const CoreSection = {
|
|
|
118
118
|
main: {
|
|
119
119
|
label: "Screen Size",
|
|
120
120
|
options: [
|
|
121
|
-
{
|
|
122
|
-
{
|
|
123
|
-
{
|
|
124
|
-
{
|
|
121
|
+
{ title: "Extra Small", const: "xs" },
|
|
122
|
+
{ title: "Small", const: "sm" },
|
|
123
|
+
{ title: "Medium", const: "md" },
|
|
124
|
+
{ title: "Large", const: "lg" },
|
|
125
125
|
],
|
|
126
126
|
},
|
|
127
127
|
},
|
|
@@ -143,10 +143,10 @@ export const CoreSection = {
|
|
|
143
143
|
main: {
|
|
144
144
|
label: "Value",
|
|
145
145
|
options: [
|
|
146
|
-
{
|
|
147
|
-
{
|
|
148
|
-
{
|
|
149
|
-
{
|
|
146
|
+
{ title: "3", const: "3" },
|
|
147
|
+
{ title: "5.5", const: "5.5" },
|
|
148
|
+
{ title: "8", const: "8" },
|
|
149
|
+
{ title: "12", const: "12" },
|
|
150
150
|
],
|
|
151
151
|
},
|
|
152
152
|
},
|
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
export const ValidationSection = {
|
|
2
2
|
type: "HorizontalLayout",
|
|
3
3
|
elements: [
|
|
4
|
-
// {
|
|
5
|
-
// type: "Control",
|
|
6
|
-
// scope: "#/properties/validationType",
|
|
7
|
-
|
|
8
|
-
// options: {
|
|
9
|
-
// widget: "SelectInputField",
|
|
10
|
-
// },
|
|
11
|
-
// config: {
|
|
12
|
-
// layout: {
|
|
13
|
-
// xs: 11,
|
|
14
|
-
// sm: 11,
|
|
15
|
-
// md: 5.5,
|
|
16
|
-
// lg: 5.5,
|
|
17
|
-
// },
|
|
18
|
-
// main: {
|
|
19
|
-
// label: "Validation Type",
|
|
20
|
-
// options: [
|
|
21
|
-
// { value: "String", label: "string" },
|
|
22
|
-
// { value: "minLength", label: "Minimum Length" },
|
|
23
|
-
// { value: "maxLength", label: "Maximum Length" },
|
|
24
|
-
// { value: "pattern", label: "Pattern" },
|
|
25
|
-
// ]
|
|
26
|
-
// },
|
|
27
|
-
// },
|
|
28
|
-
// },
|
|
29
4
|
{
|
|
30
5
|
type: "Control",
|
|
31
6
|
scope: "#/properties/validation",
|
|
@@ -52,10 +27,10 @@ export const ValidationSection = {
|
|
|
52
27
|
main: {
|
|
53
28
|
label: "Validation Type",
|
|
54
29
|
options: [
|
|
55
|
-
{
|
|
56
|
-
{
|
|
57
|
-
{
|
|
58
|
-
{
|
|
30
|
+
{ title: "required", const: "Required" },
|
|
31
|
+
{ title: "minLength", const: "Minimum Length" },
|
|
32
|
+
{ title: "maxLength", const: "Maximum Length" },
|
|
33
|
+
{ title: "pattern", const: "Pattern" },
|
|
59
34
|
]
|
|
60
35
|
},
|
|
61
36
|
},
|