impaktapps-ui-builder 0.0.382-alpha.32 → 0.0.382-alpha.34
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 +223 -235
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +15 -15
|
@@ -43,278 +43,266 @@ const PageMasterUiSchema = (theme) => {
|
|
|
43
43
|
heading: "Page Master",
|
|
44
44
|
elements: [
|
|
45
45
|
{
|
|
46
|
-
type: "
|
|
46
|
+
type: "Control",
|
|
47
|
+
scope: "#/properties/name",
|
|
48
|
+
options: {
|
|
49
|
+
widget: "InputField"
|
|
50
|
+
},
|
|
51
|
+
config: {
|
|
52
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
53
|
+
main: {
|
|
54
|
+
label: "Name",
|
|
55
|
+
options: [],
|
|
56
|
+
color: "secondary",
|
|
57
|
+
errorMessage: "Name should be start with 'page_'",
|
|
58
|
+
helperText: 'Name should be start with "page_"',
|
|
59
|
+
required: true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "Control",
|
|
65
|
+
scope: "#/properties/label",
|
|
66
|
+
options: {
|
|
67
|
+
widget: "InputField"
|
|
68
|
+
},
|
|
69
|
+
config: {
|
|
70
|
+
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
71
|
+
main: {
|
|
72
|
+
label: "Label",
|
|
73
|
+
options: [],
|
|
74
|
+
color: "secondary",
|
|
75
|
+
required: true
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "Control",
|
|
81
|
+
scope: "#/properties/emptyBox",
|
|
82
|
+
options: {
|
|
83
|
+
widget: "EmptyBox"
|
|
84
|
+
},
|
|
85
|
+
config: {
|
|
86
|
+
layout: { xs: 0, sm: 4 }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "TabLayout",
|
|
47
91
|
config: {
|
|
48
|
-
main: {
|
|
49
|
-
|
|
50
|
-
|
|
92
|
+
main: {
|
|
93
|
+
tabLabels: ["Components", "events"],
|
|
94
|
+
divider: true
|
|
51
95
|
},
|
|
52
96
|
defaultStyle: true
|
|
53
97
|
},
|
|
54
98
|
elements: [
|
|
55
99
|
{
|
|
56
100
|
type: "Control",
|
|
57
|
-
scope: "#/properties/
|
|
101
|
+
scope: "#/properties/elements",
|
|
58
102
|
options: {
|
|
59
|
-
widget: "
|
|
103
|
+
widget: "Table"
|
|
60
104
|
},
|
|
61
105
|
config: {
|
|
62
|
-
layout: { xs: 11, sm: 4, md: 4, lg: 4 },
|
|
63
106
|
main: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
107
|
+
headerIcons: {
|
|
108
|
+
elements: [
|
|
109
|
+
{
|
|
110
|
+
widget: {
|
|
111
|
+
type: "Control",
|
|
112
|
+
scope: "#/properties/New_Record",
|
|
113
|
+
options: {
|
|
114
|
+
widget: "IconButton"
|
|
115
|
+
},
|
|
116
|
+
config: {
|
|
117
|
+
main: {
|
|
118
|
+
color: "info",
|
|
119
|
+
onClick: "onAddClickHandler",
|
|
120
|
+
size: "small",
|
|
121
|
+
icon: "AddIcon",
|
|
122
|
+
iconLabel: "Add New",
|
|
123
|
+
styleDefault: true
|
|
124
|
+
},
|
|
125
|
+
style: {
|
|
126
|
+
mt: "6px"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
disableAction: true,
|
|
134
|
+
disableSelection: true,
|
|
135
|
+
enableDrag: true
|
|
70
136
|
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: "Control",
|
|
75
|
-
scope: "#/properties/label",
|
|
76
|
-
options: {
|
|
77
|
-
widget: "InputField"
|
|
78
137
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
138
|
+
elements: [
|
|
139
|
+
{
|
|
140
|
+
accessorKey: "name",
|
|
141
|
+
header: "Name"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
accessorKey: "type",
|
|
145
|
+
header: "Type"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
header: "Edit",
|
|
149
|
+
field: "Reject_Records",
|
|
150
|
+
flex: 1,
|
|
151
|
+
widget: {
|
|
152
|
+
type: "Control",
|
|
153
|
+
scope: "#/properties/RejectButton",
|
|
154
|
+
options: {
|
|
155
|
+
widget: "IconButton"
|
|
156
|
+
},
|
|
157
|
+
config: {
|
|
158
|
+
main: {
|
|
159
|
+
icon: "EditIcon",
|
|
160
|
+
color: "primary",
|
|
161
|
+
onClick: "Edit_Components",
|
|
162
|
+
tooltipMessage: "Edit This Record"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
header: "Delete",
|
|
169
|
+
field: "Reject_Records",
|
|
170
|
+
flex: 1,
|
|
171
|
+
widget: {
|
|
172
|
+
type: "Control",
|
|
173
|
+
scope: "#/properties/RejectButton",
|
|
174
|
+
options: {
|
|
175
|
+
widget: "IconButton"
|
|
176
|
+
},
|
|
177
|
+
config: {
|
|
178
|
+
main: {
|
|
179
|
+
icon: "RejectIcon",
|
|
180
|
+
color: "error",
|
|
181
|
+
onClick: "Delete_Components",
|
|
182
|
+
tooltipMessage: "Reject This Record"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
86
186
|
}
|
|
87
|
-
|
|
187
|
+
]
|
|
88
188
|
},
|
|
89
189
|
{
|
|
90
190
|
type: "Control",
|
|
91
|
-
scope: "#/properties/
|
|
191
|
+
scope: "#/properties/events",
|
|
92
192
|
options: {
|
|
93
|
-
widget: "
|
|
193
|
+
widget: "Table"
|
|
94
194
|
},
|
|
95
|
-
config: {
|
|
96
|
-
layout: { xs: 0, sm: 4 }
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
type: "TabLayout",
|
|
101
195
|
config: {
|
|
102
196
|
main: {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
options: {
|
|
124
|
-
widget: "IconButton"
|
|
125
|
-
},
|
|
126
|
-
config: {
|
|
127
|
-
main: {
|
|
128
|
-
color: "info",
|
|
129
|
-
onClick: "onAddClickHandler",
|
|
130
|
-
size: "small",
|
|
131
|
-
icon: "AddIcon",
|
|
132
|
-
iconLabel: "Add New",
|
|
133
|
-
styleDefault: true
|
|
134
|
-
},
|
|
135
|
-
style: {
|
|
136
|
-
mt: "6px"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
197
|
+
headerIcons: {
|
|
198
|
+
elements: [
|
|
199
|
+
{
|
|
200
|
+
widget: {
|
|
201
|
+
type: "Control",
|
|
202
|
+
scope: "#/properties/New_Record",
|
|
203
|
+
options: {
|
|
204
|
+
widget: "IconButton"
|
|
205
|
+
},
|
|
206
|
+
config: {
|
|
207
|
+
main: {
|
|
208
|
+
color: "info",
|
|
209
|
+
onClick: "eventAddHandler",
|
|
210
|
+
size: "small",
|
|
211
|
+
icon: "AddIcon",
|
|
212
|
+
iconLabel: "Add New",
|
|
213
|
+
styleDefault: true
|
|
214
|
+
},
|
|
215
|
+
style: {
|
|
216
|
+
mt: "6px"
|
|
139
217
|
}
|
|
140
218
|
}
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
disableAction: true,
|
|
144
|
-
disableSelection: true,
|
|
145
|
-
enableDrag: true
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
elements: [
|
|
149
|
-
{
|
|
150
|
-
accessorKey: "name",
|
|
151
|
-
header: "Name"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
accessorKey: "type",
|
|
155
|
-
header: "Type"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
header: "Edit",
|
|
159
|
-
field: "Reject_Records",
|
|
160
|
-
flex: 1,
|
|
161
|
-
widget: {
|
|
162
|
-
type: "Control",
|
|
163
|
-
scope: "#/properties/RejectButton",
|
|
164
|
-
options: {
|
|
165
|
-
widget: "IconButton"
|
|
166
|
-
},
|
|
167
|
-
config: {
|
|
168
|
-
main: {
|
|
169
|
-
icon: "EditIcon",
|
|
170
|
-
color: "primary",
|
|
171
|
-
onClick: "Edit_Components",
|
|
172
|
-
tooltipMessage: "Edit This Record"
|
|
173
|
-
}
|
|
174
219
|
}
|
|
175
220
|
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
disableAction: true,
|
|
224
|
+
disableSelection: true,
|
|
225
|
+
enableDrag: true
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
elements: [
|
|
229
|
+
{
|
|
230
|
+
accessorKey: "eventType",
|
|
231
|
+
header: "Event Type"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
accessorKey: "Handler",
|
|
235
|
+
header: "Handler"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
accessorKey: "Edit_Approve_Records",
|
|
239
|
+
header: "Edit Widget",
|
|
240
|
+
widget: {
|
|
241
|
+
type: "Control",
|
|
242
|
+
scope: "#/properties/Edit_Records",
|
|
243
|
+
options: {
|
|
244
|
+
widget: "IconButton"
|
|
176
245
|
},
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
config: {
|
|
188
|
-
main: {
|
|
189
|
-
icon: "RejectIcon",
|
|
190
|
-
color: "error",
|
|
191
|
-
onClick: "Delete_Components",
|
|
192
|
-
tooltipMessage: "Reject This Record"
|
|
193
|
-
}
|
|
194
|
-
}
|
|
246
|
+
config: {
|
|
247
|
+
main: {
|
|
248
|
+
color: "info",
|
|
249
|
+
size: "small",
|
|
250
|
+
icon: "EditIcon",
|
|
251
|
+
tooltipMessage: "Edit This Record",
|
|
252
|
+
onClick: "editEvent"
|
|
253
|
+
},
|
|
254
|
+
style: {
|
|
255
|
+
color: "#3949ab"
|
|
195
256
|
}
|
|
196
257
|
}
|
|
197
|
-
|
|
258
|
+
}
|
|
198
259
|
},
|
|
199
260
|
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
headerIcons: {
|
|
208
|
-
elements: [
|
|
209
|
-
{
|
|
210
|
-
widget: {
|
|
211
|
-
type: "Control",
|
|
212
|
-
scope: "#/properties/New_Record",
|
|
213
|
-
options: {
|
|
214
|
-
widget: "IconButton"
|
|
215
|
-
},
|
|
216
|
-
config: {
|
|
217
|
-
main: {
|
|
218
|
-
color: "info",
|
|
219
|
-
onClick: "eventAddHandler",
|
|
220
|
-
size: "small",
|
|
221
|
-
icon: "AddIcon",
|
|
222
|
-
iconLabel: "Add New",
|
|
223
|
-
styleDefault: true
|
|
224
|
-
},
|
|
225
|
-
style: {
|
|
226
|
-
mt: "6px"
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
disableAction: true,
|
|
234
|
-
disableSelection: true,
|
|
235
|
-
enableDrag: true
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
elements: [
|
|
239
|
-
{
|
|
240
|
-
accessorKey: "eventType",
|
|
241
|
-
header: "Event Type"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
accessorKey: "Handler",
|
|
245
|
-
header: "Handler"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
accessorKey: "Edit_Approve_Records",
|
|
249
|
-
header: "Edit Widget",
|
|
250
|
-
widget: {
|
|
251
|
-
type: "Control",
|
|
252
|
-
scope: "#/properties/Edit_Records",
|
|
253
|
-
options: {
|
|
254
|
-
widget: "IconButton"
|
|
255
|
-
},
|
|
256
|
-
config: {
|
|
257
|
-
main: {
|
|
258
|
-
color: "info",
|
|
259
|
-
size: "small",
|
|
260
|
-
icon: "EditIcon",
|
|
261
|
-
tooltipMessage: "Edit This Record",
|
|
262
|
-
onClick: "editEvent"
|
|
263
|
-
},
|
|
264
|
-
style: {
|
|
265
|
-
color: "#3949ab"
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
261
|
+
accessorKey: "Reject_Records",
|
|
262
|
+
header: "Delete",
|
|
263
|
+
widget: {
|
|
264
|
+
type: "Control",
|
|
265
|
+
scope: "#/properties/RejectButton",
|
|
266
|
+
options: {
|
|
267
|
+
widget: "IconButton"
|
|
269
268
|
},
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
options: {
|
|
277
|
-
widget: "IconButton"
|
|
278
|
-
},
|
|
279
|
-
config: {
|
|
280
|
-
main: {
|
|
281
|
-
icon: "RejectIcon",
|
|
282
|
-
color: "error",
|
|
283
|
-
tooltipMessage: "Reject This Record",
|
|
284
|
-
onClick: "deleteEvent"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
269
|
+
config: {
|
|
270
|
+
main: {
|
|
271
|
+
icon: "RejectIcon",
|
|
272
|
+
color: "error",
|
|
273
|
+
tooltipMessage: "Reject This Record",
|
|
274
|
+
onClick: "deleteEvent"
|
|
287
275
|
}
|
|
288
276
|
}
|
|
289
|
-
|
|
277
|
+
}
|
|
290
278
|
}
|
|
291
279
|
]
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
type: "Control",
|
|
295
|
-
scope: "#/properties/btn",
|
|
296
|
-
options: {
|
|
297
|
-
widget: "Button"
|
|
298
|
-
},
|
|
299
|
-
config: {
|
|
300
|
-
layout: 11.9,
|
|
301
|
-
main: {
|
|
302
|
-
name: "Save",
|
|
303
|
-
startIcon: "ApproveIcon",
|
|
304
|
-
variant: "contained",
|
|
305
|
-
color: "info",
|
|
306
|
-
type: "text",
|
|
307
|
-
onClick: "saveHandler",
|
|
308
|
-
size: "medium"
|
|
309
|
-
},
|
|
310
|
-
style: {
|
|
311
|
-
width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
|
|
312
|
-
float: "right"
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
280
|
}
|
|
316
281
|
]
|
|
317
282
|
},
|
|
283
|
+
{
|
|
284
|
+
type: "Control",
|
|
285
|
+
scope: "#/properties/btn",
|
|
286
|
+
options: {
|
|
287
|
+
widget: "Button"
|
|
288
|
+
},
|
|
289
|
+
config: {
|
|
290
|
+
layout: 11.9,
|
|
291
|
+
main: {
|
|
292
|
+
name: "Save",
|
|
293
|
+
startIcon: "ApproveIcon",
|
|
294
|
+
variant: "contained",
|
|
295
|
+
color: "info",
|
|
296
|
+
type: "text",
|
|
297
|
+
onClick: "saveHandler",
|
|
298
|
+
size: "medium"
|
|
299
|
+
},
|
|
300
|
+
style: {
|
|
301
|
+
width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
|
|
302
|
+
float: "right"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
318
306
|
{
|
|
319
307
|
type: "Control",
|
|
320
308
|
scope: "#/properties/notify",
|
|
@@ -10215,7 +10203,7 @@ const buildBasicUiSchema = (config) => {
|
|
|
10215
10203
|
return {
|
|
10216
10204
|
"type": "HorizontalLayout",
|
|
10217
10205
|
pageName: `${config.name}`,
|
|
10218
|
-
heading: `${config.label
|
|
10206
|
+
heading: `${config.label}`,
|
|
10219
10207
|
"elements": []
|
|
10220
10208
|
};
|
|
10221
10209
|
};
|