impaktapps-ui-builder 0.0.101-alpha.12 → 0.0.101-alpha.14
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 +192 -141
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +98 -95
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +56 -37
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +189 -110
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +37 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +117 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +0 -2
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export const CoreSection = {
|
|
2
|
-
type: "
|
|
2
|
+
type: "WrapperLayout",
|
|
3
|
+
config: {
|
|
4
|
+
main: {
|
|
5
|
+
label: " ",
|
|
6
|
+
gap: "8px"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
3
9
|
elements: [
|
|
4
10
|
{
|
|
5
11
|
type: "Control",
|
|
@@ -9,13 +15,23 @@ export const CoreSection = {
|
|
|
9
15
|
widget: "SelectInputField",
|
|
10
16
|
},
|
|
11
17
|
config: {
|
|
12
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
18
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
13
19
|
main: {
|
|
14
20
|
label: "Type",
|
|
15
21
|
type: "text",
|
|
16
22
|
},
|
|
17
23
|
},
|
|
18
24
|
},
|
|
25
|
+
{
|
|
26
|
+
type: "Control",
|
|
27
|
+
scope: "#/properties/proc",
|
|
28
|
+
config: {
|
|
29
|
+
layout: { xs: 6, sm: 0, md: 0, lg: 0 },
|
|
30
|
+
},
|
|
31
|
+
options: {
|
|
32
|
+
widget: "EmptyBox",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
19
35
|
{
|
|
20
36
|
type: "Control",
|
|
21
37
|
scope: "#/properties/name",
|
|
@@ -24,9 +40,10 @@ export const CoreSection = {
|
|
|
24
40
|
widget: "InputField",
|
|
25
41
|
},
|
|
26
42
|
config: {
|
|
27
|
-
layout: { xs:
|
|
43
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
28
44
|
main: {
|
|
29
|
-
label: "
|
|
45
|
+
label: "Component ID",
|
|
46
|
+
required: true,
|
|
30
47
|
},
|
|
31
48
|
},
|
|
32
49
|
},
|
|
@@ -38,123 +55,130 @@ export const CoreSection = {
|
|
|
38
55
|
widget: "InputField",
|
|
39
56
|
},
|
|
40
57
|
config: {
|
|
41
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
58
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
42
59
|
main: {
|
|
43
60
|
label: "Label",
|
|
61
|
+
required: true,
|
|
44
62
|
},
|
|
45
63
|
},
|
|
46
64
|
},
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
// {
|
|
66
|
+
// type: "Control",
|
|
67
|
+
// scope: "#/properties/columnFormat",
|
|
68
|
+
// options: {
|
|
69
|
+
// widget: "SelectInputField",
|
|
70
|
+
// },
|
|
71
|
+
// config: {
|
|
72
|
+
// layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
73
|
+
// main: {
|
|
74
|
+
// label: "Column Format",
|
|
57
75
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: "Control",
|
|
63
|
-
scope: "#/properties/proc",
|
|
64
|
-
config: {
|
|
65
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
66
|
-
},
|
|
67
|
-
options: {
|
|
68
|
-
widget: "EmptyBox",
|
|
69
|
-
},
|
|
70
|
-
},
|
|
76
|
+
// },
|
|
77
|
+
// },
|
|
78
|
+
// },
|
|
71
79
|
{
|
|
72
80
|
type: "Control",
|
|
73
81
|
scope: "#/properties/proc",
|
|
74
82
|
config: {
|
|
75
|
-
layout: { xs:
|
|
83
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
76
84
|
},
|
|
77
85
|
options: {
|
|
78
86
|
widget: "EmptyBox",
|
|
79
87
|
},
|
|
80
88
|
},
|
|
89
|
+
// {
|
|
90
|
+
// type: "Control",
|
|
91
|
+
// scope: "#/properties/layout",
|
|
92
|
+
// layout: 12,
|
|
93
|
+
// options: {
|
|
94
|
+
// "elementLabelProp": "key",
|
|
95
|
+
// detail: {
|
|
96
|
+
// type: "HorizontalLayout",
|
|
97
|
+
|
|
98
|
+
// elements: [
|
|
99
|
+
// {
|
|
100
|
+
// type: "Control",
|
|
101
|
+
// scope: "#/properties/key",
|
|
102
|
+
// options: {
|
|
103
|
+
// widget: "SelectInputField",
|
|
104
|
+
// },
|
|
105
|
+
// config: {
|
|
106
|
+
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
107
|
+
// main: {
|
|
108
|
+
// label: "Screen Size",
|
|
109
|
+
|
|
110
|
+
// },
|
|
111
|
+
// },
|
|
112
|
+
// },
|
|
113
|
+
// {
|
|
114
|
+
// type: "Control",
|
|
115
|
+
// scope: "#/properties/value",
|
|
116
|
+
|
|
117
|
+
// options: {
|
|
118
|
+
// widget: "InputField",
|
|
119
|
+
// },
|
|
120
|
+
// config: {
|
|
121
|
+
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
122
|
+
// main: {
|
|
123
|
+
// label: "Value",
|
|
124
|
+
// type:"number",
|
|
125
|
+
// // freeSolo:true,
|
|
126
|
+
// helperText:'Number should be in range of 0 to 12',
|
|
127
|
+
// errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
128
|
+
// },
|
|
129
|
+
// },
|
|
130
|
+
// },
|
|
131
|
+
// {
|
|
132
|
+
// type: "Control",
|
|
133
|
+
// scope: "#/properties/proc",
|
|
134
|
+
// config: {
|
|
135
|
+
// layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
136
|
+
// },
|
|
137
|
+
// options: {
|
|
138
|
+
// widget: "EmptyBox",
|
|
139
|
+
// },
|
|
140
|
+
// },
|
|
141
|
+
// ],
|
|
142
|
+
// },
|
|
143
|
+
// },
|
|
144
|
+
// },
|
|
145
|
+
|
|
146
|
+
|
|
81
147
|
{
|
|
82
148
|
type: "Control",
|
|
83
149
|
scope: "#/properties/layout",
|
|
84
|
-
layout: 12,
|
|
85
150
|
options: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
scope: "#/properties/key",
|
|
94
|
-
options: {
|
|
95
|
-
widget: "SelectInputField",
|
|
96
|
-
},
|
|
97
|
-
config: {
|
|
98
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
99
|
-
main: {
|
|
100
|
-
label: "Screen Size",
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
type: "Control",
|
|
107
|
-
scope: "#/properties/value",
|
|
108
|
-
|
|
109
|
-
options: {
|
|
110
|
-
widget: "InputField",
|
|
111
|
-
},
|
|
112
|
-
config: {
|
|
113
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
114
|
-
main: {
|
|
115
|
-
label: "Value",
|
|
116
|
-
type:"number",
|
|
117
|
-
// freeSolo:true,
|
|
118
|
-
helperText:'Number should be in range of 0 to 12',
|
|
119
|
-
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: "Control",
|
|
125
|
-
scope: "#/properties/proc",
|
|
126
|
-
config: {
|
|
127
|
-
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
128
|
-
},
|
|
129
|
-
options: {
|
|
130
|
-
widget: "EmptyBox",
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
],
|
|
151
|
+
widget: "Array",
|
|
152
|
+
},
|
|
153
|
+
config: {
|
|
154
|
+
layout: 12,
|
|
155
|
+
main: {
|
|
156
|
+
label: "Layout",
|
|
157
|
+
childElementLabel: "Layout",
|
|
134
158
|
},
|
|
159
|
+
style: {
|
|
160
|
+
marginLeft: "-24px",
|
|
161
|
+
marginBottom: "24px !important",
|
|
162
|
+
labelStyle: {
|
|
163
|
+
marginLeft: "24px",
|
|
164
|
+
},
|
|
165
|
+
detailsStyle: {
|
|
166
|
+
marginLeft: "24px",
|
|
167
|
+
}
|
|
168
|
+
}
|
|
135
169
|
},
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export const OptionArray: any = {
|
|
141
|
-
type: "Control",
|
|
142
|
-
scope: "#/properties/value",
|
|
143
|
-
layout: 11.5,
|
|
144
|
-
options: {
|
|
145
|
-
detail: {
|
|
146
|
-
type: "HorizontalLayout",
|
|
147
170
|
elements: [
|
|
148
171
|
{
|
|
149
172
|
type: "Control",
|
|
150
|
-
scope: "#/properties/
|
|
173
|
+
scope: "#/properties/key",
|
|
151
174
|
options: {
|
|
152
175
|
widget: "SelectInputField",
|
|
153
176
|
},
|
|
154
177
|
config: {
|
|
155
178
|
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
156
179
|
main: {
|
|
157
|
-
label: "
|
|
180
|
+
label: "Screen Size",
|
|
181
|
+
|
|
158
182
|
},
|
|
159
183
|
},
|
|
160
184
|
},
|
|
@@ -169,29 +193,84 @@ export const OptionArray: any = {
|
|
|
169
193
|
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
170
194
|
main: {
|
|
171
195
|
label: "Value",
|
|
172
|
-
|
|
173
|
-
|
|
196
|
+
type:"number",
|
|
197
|
+
// freeSolo:true,
|
|
198
|
+
helperText:'Number should be in range of 0 to 12',
|
|
199
|
+
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
200
|
+
|
|
174
201
|
},
|
|
175
202
|
},
|
|
176
203
|
},
|
|
204
|
+
{
|
|
205
|
+
type: "Control",
|
|
206
|
+
scope: "#/properties/proc",
|
|
207
|
+
config: {
|
|
208
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
209
|
+
},
|
|
210
|
+
options: {
|
|
211
|
+
widget: "EmptyBox",
|
|
212
|
+
},
|
|
213
|
+
},
|
|
177
214
|
],
|
|
178
215
|
},
|
|
179
|
-
|
|
216
|
+
],
|
|
180
217
|
};
|
|
181
218
|
|
|
182
|
-
export const
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
219
|
+
// export const OptionArray: any = {
|
|
220
|
+
// type: "Control",
|
|
221
|
+
// scope: "#/properties/value",
|
|
222
|
+
// layout: 11.5,
|
|
223
|
+
// options: {
|
|
224
|
+
// detail: {
|
|
225
|
+
// type: "HorizontalLayout",
|
|
226
|
+
// elements: [
|
|
227
|
+
// {
|
|
228
|
+
// type: "Control",
|
|
229
|
+
// scope: "#/properties/label",
|
|
230
|
+
// options: {
|
|
231
|
+
// widget: "SelectInputField",
|
|
232
|
+
// },
|
|
233
|
+
// config: {
|
|
234
|
+
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
235
|
+
// main: {
|
|
236
|
+
// label: "Label",
|
|
237
|
+
// },
|
|
238
|
+
// },
|
|
239
|
+
// },
|
|
240
|
+
// {
|
|
241
|
+
// type: "Control",
|
|
242
|
+
// scope: "#/properties/value",
|
|
243
|
+
|
|
244
|
+
// options: {
|
|
245
|
+
// widget: "InputField",
|
|
246
|
+
// },
|
|
247
|
+
// config: {
|
|
248
|
+
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
249
|
+
// main: {
|
|
250
|
+
// label: "Value",
|
|
251
|
+
// helperText: 'Number should be in range of 0 to 12',
|
|
252
|
+
// errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
253
|
+
// },
|
|
254
|
+
// },
|
|
255
|
+
// },
|
|
256
|
+
// ],
|
|
257
|
+
// },
|
|
258
|
+
// },
|
|
259
|
+
// };
|
|
260
|
+
|
|
261
|
+
// export const OptionArraySchema = {
|
|
262
|
+
// value: {
|
|
263
|
+
// type: "array",
|
|
264
|
+
// items: {
|
|
265
|
+
// type: "object",
|
|
266
|
+
// properties: {
|
|
267
|
+
// label: {
|
|
268
|
+
// type: "string",
|
|
269
|
+
// },
|
|
270
|
+
// value: {
|
|
271
|
+
// type: "string",
|
|
272
|
+
// },
|
|
273
|
+
// },
|
|
274
|
+
// },
|
|
275
|
+
// },
|
|
276
|
+
// };
|
|
@@ -16,21 +16,25 @@ export const EventSection = (theme)=>{
|
|
|
16
16
|
widget: {
|
|
17
17
|
type: "Control",
|
|
18
18
|
scope: "#/properties/New_Record",
|
|
19
|
-
|
|
20
19
|
options: {
|
|
21
20
|
widget: "IconButton",
|
|
22
21
|
},
|
|
23
22
|
config: {
|
|
24
23
|
main: {
|
|
25
|
-
color: "info",
|
|
26
24
|
onClick: "eventAddHandler",
|
|
27
25
|
size: "small",
|
|
28
|
-
icon: "
|
|
29
|
-
iconLabel: "Add
|
|
26
|
+
icon: "TableAddIcon",
|
|
27
|
+
iconLabel: "Add",
|
|
30
28
|
styleDefault: true,
|
|
31
29
|
},
|
|
32
30
|
style: {
|
|
33
31
|
mt: "6px",
|
|
32
|
+
color: "inherit",
|
|
33
|
+
fill: "inherit",
|
|
34
|
+
"&:hover": {
|
|
35
|
+
color: "inherit",
|
|
36
|
+
fill: "inherit",
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
},
|
|
36
40
|
}
|
|
@@ -45,15 +49,20 @@ export const EventSection = (theme)=>{
|
|
|
45
49
|
},
|
|
46
50
|
config: {
|
|
47
51
|
main: {
|
|
48
|
-
// color: "info",
|
|
49
52
|
onClick: "copyPasteElement",
|
|
50
53
|
size: "small",
|
|
51
|
-
icon: "
|
|
54
|
+
icon: "TablePaste",
|
|
52
55
|
iconLabel: "Paste",
|
|
53
56
|
styleDefault: true,
|
|
54
57
|
},
|
|
55
58
|
style: {
|
|
56
59
|
mt: "6px",
|
|
60
|
+
color: "inherit",
|
|
61
|
+
fill: "inherit",
|
|
62
|
+
"&:hover": {
|
|
63
|
+
color: "inherit",
|
|
64
|
+
fill: "inherit",
|
|
65
|
+
}
|
|
57
66
|
},
|
|
58
67
|
},
|
|
59
68
|
}
|
|
@@ -71,15 +80,20 @@ export const EventSection = (theme)=>{
|
|
|
71
80
|
{
|
|
72
81
|
accessorKey: "eventType",
|
|
73
82
|
header: "Event Type",
|
|
83
|
+
type: "string",
|
|
84
|
+
size: 300,
|
|
74
85
|
},
|
|
75
86
|
{
|
|
76
87
|
accessorKey: "Handler",
|
|
77
88
|
header: "Handler",
|
|
89
|
+
type: "string",
|
|
90
|
+
size: 200,
|
|
78
91
|
},
|
|
79
92
|
{
|
|
80
93
|
accessorKey: "Edit_Approve_Records",
|
|
81
94
|
header: "Edit Widget",
|
|
82
|
-
|
|
95
|
+
size: 150,
|
|
96
|
+
type: "action",
|
|
83
97
|
widget: {
|
|
84
98
|
type: "Control",
|
|
85
99
|
scope: "#/properties/Edit_Records",
|
|
@@ -88,14 +102,16 @@ export const EventSection = (theme)=>{
|
|
|
88
102
|
},
|
|
89
103
|
config: {
|
|
90
104
|
main: {
|
|
91
|
-
color: "info",
|
|
92
105
|
size: "small",
|
|
93
|
-
icon: "
|
|
106
|
+
icon: "TableEditIcon",
|
|
94
107
|
tooltipMessage: "Edit This Record",
|
|
95
108
|
onClick: "eventEditHandler",
|
|
96
109
|
},
|
|
97
110
|
style: {
|
|
98
|
-
|
|
111
|
+
fill: theme.palette.primary.main,
|
|
112
|
+
"& :hover": {
|
|
113
|
+
fill: theme.palette.primary.dark,
|
|
114
|
+
},
|
|
99
115
|
},
|
|
100
116
|
},
|
|
101
117
|
},
|
|
@@ -103,7 +119,8 @@ export const EventSection = (theme)=>{
|
|
|
103
119
|
{
|
|
104
120
|
accessorKey: "Reject_Records",
|
|
105
121
|
header: "Delete",
|
|
106
|
-
|
|
122
|
+
size: 150,
|
|
123
|
+
type: "action",
|
|
107
124
|
widget: {
|
|
108
125
|
type: "Control",
|
|
109
126
|
scope: "#/properties/RejectButton",
|
|
@@ -113,18 +130,24 @@ export const EventSection = (theme)=>{
|
|
|
113
130
|
},
|
|
114
131
|
config: {
|
|
115
132
|
main: {
|
|
116
|
-
icon: "
|
|
117
|
-
color: "error",
|
|
133
|
+
icon: "Bin",
|
|
118
134
|
tooltipMessage: "Reject This Record",
|
|
119
135
|
onClick: "deletePopUpEvent",
|
|
120
136
|
},
|
|
137
|
+
style: {
|
|
138
|
+
fill: theme.palette.primary.main,
|
|
139
|
+
"& :hover": {
|
|
140
|
+
fill: theme.palette.primary.dark,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
121
143
|
},
|
|
122
144
|
},
|
|
123
145
|
},
|
|
124
146
|
{
|
|
125
147
|
header: "Copy",
|
|
126
148
|
field: "Copy_Event",
|
|
127
|
-
|
|
149
|
+
size: 150,
|
|
150
|
+
type: "action",
|
|
128
151
|
widget: {
|
|
129
152
|
type: "Control",
|
|
130
153
|
scope: "#/properties/Copy_Event",
|
|
@@ -134,7 +157,6 @@ export const EventSection = (theme)=>{
|
|
|
134
157
|
config: {
|
|
135
158
|
main: {
|
|
136
159
|
icon: "FileCopyIcon",
|
|
137
|
-
// color: "error",
|
|
138
160
|
onClick: "copyPasteElement",
|
|
139
161
|
tooltipMessage: "Reject This Record",
|
|
140
162
|
styleDefault: true,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export const StyleSection = {
|
|
2
|
-
|
|
2
|
+
type: "WrapperLayout",
|
|
3
|
+
config: {
|
|
4
|
+
main: {
|
|
5
|
+
label: " ",
|
|
6
|
+
gap: "8px"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
3
9
|
elements: [
|
|
4
10
|
{
|
|
5
11
|
type: "Control",
|
|
@@ -15,18 +21,8 @@ export const StyleSection = {
|
|
|
15
21
|
md: 12,
|
|
16
22
|
lg: 12,
|
|
17
23
|
},
|
|
18
|
-
style:{
|
|
19
|
-
|
|
20
|
-
// background:"gray"
|
|
21
|
-
borderRadius:"20px"
|
|
22
|
-
},
|
|
23
|
-
headerContainerStyle:{
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
textAreaStyle:{
|
|
27
|
-
borderRadius:"20px",
|
|
28
|
-
padding:"20px"
|
|
29
|
-
}
|
|
24
|
+
style: {
|
|
25
|
+
"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {},
|
|
30
26
|
},
|
|
31
27
|
main: {
|
|
32
28
|
heading:"JSON Style",
|