impaktapps-ui-builder 0.0.382-alpha.3 → 0.0.382-alpha.300

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.
@@ -1,411 +1,494 @@
1
- export const PageMasterUiSchema: any = (theme) => {
2
- const uiSchema = {
3
- type: "HorizontalLayout",
4
- heading: "Page Master",
5
- elements: [
6
- {
7
- type: "WrapperLayout",
8
- config: {
9
- main: {
10
- label: "Page Template",
11
- isAccordion: true,
12
- },
13
- wrapperStyle: {
14
- marginTop: '-6px',
15
- marginBottom: '-8px',
1
+ import { EventUiSchema } from "../event/uiSchema"
2
+ export const PageMasterUiSchema: any = {
3
+ type: "HorizontalLayout",
4
+ elements: [
5
+ {
6
+ type: "WrapperLayout",
7
+ config: {
8
+ main: {
9
+ rowSpacing: 1,
10
+ header: true,
11
+ },
12
+ defaultStyle: true,
13
+ },
14
+ elements: [
15
+ {
16
+ type: "Control",
17
+ scope: "#/properties/pageMaster",
18
+
19
+ options: {
20
+ widget: "Box",
16
21
  },
17
- componentsBoxStyle: {
18
- marginLeft: "24px",
22
+ config: {
23
+ layout: 8,
24
+ main: {
25
+ heading: "Page Master",
26
+ },
19
27
  },
20
- defaultStyle: true,
21
28
  },
22
- elements: [
23
- {
24
- type: "Control",
25
- scope: "#/properties/name",
29
+ {
30
+ type: "Control",
31
+ scope: "#/properties/Back_Button",
26
32
 
27
- options: {
28
- widget: "InputField",
33
+ options: {
34
+ widget: "IconButton",
35
+ },
36
+ config: {
37
+ layout: 3,
38
+ main: {
39
+ icon: "BackIcon",
40
+ styleDefault: true,
41
+ size: "small",
42
+ onClick: "backHandler",
43
+ tooltipMessage: "Back",
29
44
  },
30
- config: {
31
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
32
- main: {
33
- label: "Name",
34
- options: [],
35
- color: "secondary",
36
- errorMessage: "Name should be start with 'page_'",
37
- helperText: 'Name should be start with "page_"',
38
- required: true,
39
- },
45
+ style: {
46
+ float: "right",
40
47
  },
41
48
  },
42
- {
43
- type: "Control",
44
- scope: "#/properties/label",
49
+ },
50
+ ],
51
+ },
52
+ {
53
+ type: "WrapperLayout",
54
+ config: {
55
+ main: {
56
+ label: "Page Template",
57
+ divider: true,
58
+ },
59
+ defaultStyle: true,
60
+ },
61
+ elements: [
62
+ {
63
+ type: "Control",
64
+ scope: "#/properties/name",
45
65
 
46
- options: {
47
- widget: "InputField",
48
- },
49
- config: {
50
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
51
- main: {
52
- label: "Label",
53
- options: [],
54
- color: "secondary",
55
- required: true,
56
- },
66
+ options: {
67
+ widget: "InputField",
68
+ },
69
+ config: {
70
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
71
+ main: {
72
+ label: "Name",
73
+ options: [],
74
+ color: "secondary",
75
+ errorMessage:"Name should be start with 'page_'",
76
+ helperText:'Name should be start with "page_"',
77
+ required: true,
57
78
  },
58
79
  },
59
- {
60
- type: "Control",
61
- scope: "#/properties/emptyBox",
62
- options: {
63
- widget: "EmptyBox"
80
+ },
81
+ {
82
+ type: "Control",
83
+ scope: "#/properties/label",
84
+
85
+ options: {
86
+ widget: "InputField",
87
+ },
88
+ config: {
89
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
90
+ main: {
91
+ label: "Label",
92
+ options: [],
93
+ color: "secondary",
94
+ required: true,
64
95
  },
65
- config: {
66
- layout: { xs: 0, sm: 4 }
67
- }
68
- }
69
- ],
70
- },
71
- {
72
- type: "TabLayout",
73
- config: {
74
- main: {
75
- tabLabels: ["Components", "events"],
76
- divider: true,
77
96
  },
78
- defaultStyle: true,
97
+ }
98
+ ],
99
+ },
100
+ {
101
+ type: "TabLayout",
102
+ config: {
103
+ main: {
104
+ tabLabels: ["Components", "events"],
105
+ divider: true,
79
106
  },
80
- elements: [
81
- {
82
- type: "Control",
83
- scope: "#/properties/elements",
84
- options: {
85
- widget: "Table",
107
+ defaultStyle: true,
108
+ },
109
+ elements: [
110
+ {
111
+ type: "WrapperLayout",
112
+ config: {
113
+ main: {
114
+ // label: "Success Case Event",
115
+ divider: true,
86
116
  },
87
- config: {
88
- main: {
89
- headerIcons: {
90
- elements: [
91
- {
92
- widget: {
93
- type: "Control",
94
- scope: "#/properties/New_Record",
95
-
96
- options: {
97
- widget: "IconButton",
98
- },
99
- config: {
100
- main: {
101
- color: "info",
102
- onClick: "onAddClickHandler",
103
- size: "small",
104
- icon: "AddIcon",
105
- iconLabel: "Add New",
106
- styleDefault: true,
107
- },
108
- style: {
109
- mt: "6px",
110
- },
111
- },
112
- }
113
- },
114
- ]
115
- },
116
- disableAction: true,
117
- disableSelection: true,
118
- enableDrag: true,
119
- }
117
+ wrapperStyle: {
118
+ border: "1px solid gray"
120
119
  },
121
- elements: [
122
- {
123
- accessorKey: "name",
124
-
125
- header: "Name",
126
- },
127
- {
128
- accessorKey: "type",
129
-
130
- header: "Type",
120
+ },
121
+ elements: [
122
+ {
123
+ type: "Control",
124
+ scope: "#/properties/heading",
125
+
126
+ options: {
127
+ widget: "Box",
131
128
  },
132
- {
133
- header: "Edit",
134
- field: "Reject_Records",
135
- flex: 1,
136
- widget: {
137
- type: "Control",
138
- scope: "#/properties/RejectButton",
139
- options: {
140
- widget: "IconButton",
141
- },
142
- config: {
143
- main: {
144
- icon: "EditIcon",
145
- color: "primary",
146
- onClick: "Edit_Components",
147
- tooltipMessage: "Edit This Record",
148
- },
149
- },
129
+ config: {
130
+ layout: 8,
131
+ main: {
132
+ heading: "Components Table",
150
133
  },
151
- },
152
- {
153
- header: "Delete",
154
- field: "Reject_Records",
155
- flex: 1,
156
- widget: {
157
- type: "Control",
158
- scope: "#/properties/RejectButton",
159
- options: {
160
- widget: "IconButton",
161
- },
162
- config: {
163
- main: {
164
- icon: "RejectIcon",
165
- color: "error",
166
- onClick: "Delete_Components",
167
- tooltipMessage: "Reject This Record",
168
- },
169
- },
134
+ style: {
135
+ fontFamily: "Roboto",
136
+ fontWeight: "500",
137
+ paddingLeft: "-10px",
138
+ fontSize: "20px",
170
139
  },
171
- }]
172
- },
173
- {
174
- type: "Control",
175
- scope: "#/properties/events",
176
- options: {
177
- widget: "Table",
140
+ },
178
141
  },
179
- config: {
180
- main: {
181
- headerIcons: {
182
- elements: [
183
- {
184
- widget: {
185
- type: "Control",
186
- scope: "#/properties/New_Record",
187
-
188
- options: {
189
- widget: "IconButton",
190
- },
191
- config: {
192
- main: {
193
- color: "info",
194
- onClick: "eventAddHandler",
195
- size: "small",
196
- icon: "AddIcon",
197
- iconLabel: "Add New",
198
- styleDefault: true,
199
- },
200
- style: {
201
- mt: "6px",
202
- },
203
- },
204
- }
205
- },
206
- ]
142
+ {
143
+ type: "Control",
144
+ scope: "#/properties/AddButton",
145
+ options: {
146
+ widget: "IconButton",
147
+ },
148
+ config: {
149
+ layout: 3,
150
+ main: {
151
+ icon: "AddIcon",
152
+ styleDefault: true,
153
+ size: "small",
154
+ onClick: "onAddClickHandler",
155
+ tooltipMessage: "Add New",
156
+ },
157
+ style: {
158
+ float: "right",
207
159
  },
208
- disableAction: true,
209
- disableSelection: true,
210
- enableDrag: true,
211
-
212
160
  },
213
161
  },
214
- elements: [
215
-
216
- {
217
- accessorKey: "eventType",
218
- header: "Event Type",
162
+ {
163
+ type: "Control",
164
+ scope: "#/properties/elements",
165
+ options: {
166
+ widget: "Table",
219
167
  },
220
- {
221
- accessorKey: "Handler",
222
- header: "Handler",
168
+ config: {
169
+ main: {
170
+ disableAction: true,
171
+ disableSelection: true,
172
+ enableDrag: true,
173
+ }
223
174
  },
224
- {
225
- accessorKey: "Edit_Approve_Records",
226
- header: "Edit Widget",
227
- widget: {
228
- type: "Control",
229
- scope: "#/properties/Edit_Records",
230
- options: {
231
- widget: "IconButton",
175
+ elements: [
176
+ {
177
+ accessorKey: "name",
178
+
179
+ header: "Name",
180
+ },
181
+ {
182
+ accessorKey: "type",
183
+
184
+ header: "Type",
185
+ },
186
+ {
187
+ header: "Edit",
188
+ field: "Reject_Records",
189
+ flex: 1,
190
+ widget: {
191
+ type: "Control",
192
+ scope: "#/properties/RejectButton",
193
+ options: {
194
+ widget: "IconButton",
195
+ },
196
+ config: {
197
+ main: {
198
+ icon: "EditIcon",
199
+ color: "primary",
200
+ onClick: "Edit_Components",
201
+ tooltipMessage: "Edit This Record",
202
+ },
203
+ },
232
204
  },
233
- config: {
234
- main: {
235
- color: "info",
236
- size: "small",
237
- icon: "EditIcon",
238
- tooltipMessage: "Edit This Record",
239
- onClick: "editEvent",
205
+ },
206
+ {
207
+ header: "Delete",
208
+ field: "Reject_Records",
209
+ flex: 1,
210
+ widget: {
211
+ type: "Control",
212
+ scope: "#/properties/RejectButton",
213
+ options: {
214
+ widget: "IconButton",
240
215
  },
241
- style: {
242
- color: "#3949ab",
216
+ config: {
217
+ main: {
218
+ icon: "RejectIcon",
219
+ color: "error",
220
+ onClick: "popUpComponent",
221
+ tooltipMessage: "Reject This Record",
222
+ },
243
223
  },
244
224
  },
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ type: "Control",
230
+ scope: "#/properties/popUpComponent",
231
+ options: {
232
+ widget: "PopUp"
233
+ },
234
+ config: {
235
+ layout: {
236
+ xs: 12,
237
+ sm: 12,
238
+ md: 12,
239
+ lg: 12,
240
+ },
241
+ main: {
245
242
  },
246
243
  },
247
- {
248
- accessorKey: "Reject_Records",
249
- header: "Delete",
250
- widget: {
251
- type: "Control",
252
- scope: "#/properties/RejectButton",
253
- options: {
254
- widget: "IconButton",
244
+ elements:
245
+ [
246
+ {
247
+ type: "Control",
248
+ scope: "#/properties/label",
249
+
250
+ options: {
251
+ widget: "Box",
252
+ },
253
+ config: {
254
+ layout: 12,
255
+ main: {
256
+ heading: "Are you sure you want to delete ?",
257
+ },
258
+ },
255
259
  },
256
- config: {
257
- main: {
258
- icon: "RejectIcon",
259
- color: "error",
260
- tooltipMessage: "Reject This Record",
261
- onClick: "deleteEvent",
260
+ {
261
+ type: "Control",
262
+ scope: "#/properties/ConfirmDeleteCompButton",
263
+ options: {
264
+ widget: "Button",
265
+ },
266
+ config: {
267
+ layout: 3,
268
+ main: {
269
+ name: "No",
270
+ startIcon: "ApproveIcon",
271
+ variant: "contained",
272
+ color: "info",
273
+ type: "text",
274
+ onClick: "deletePopUpComponent",
275
+ size: "small",
276
+ },
277
+ style: {
278
+ // marginBottom: "8px",
279
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
280
+ // float: "left",
281
+ },
262
282
  },
263
283
  },
264
- },
284
+ {
285
+ type: "Control",
286
+ scope: "#/properties/CancelDeleteCompButton",
287
+ options: {
288
+ widget: "Button",
289
+ },
290
+ config: {
291
+ layout: 3,
292
+ main: {
293
+ name: "Yes",
294
+ startIcon: "ApproveIcon",
295
+ variant: "contained",
296
+ color: "info",
297
+ type: "text",
298
+ onClick: "deletePopUpComponent",
299
+ size: "small",
300
+ },
301
+
302
+ style: {
303
+ // marginBottom: "8px",
304
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
305
+ // float: "left",
306
+ },
307
+ },
308
+ },
309
+ {
310
+ type: "Control",
311
+ scope: "#/properties/emptyBox",
312
+
313
+ options: {
314
+ widget: "Box",
315
+ },
316
+ config: {
317
+ layout: 6,
318
+ },
319
+ },
320
+ ]
265
321
  },
266
322
  ]
267
- },
268
-
269
- ],
270
- },
271
- {
272
- type: "Control",
273
- scope: "#/properties/btn",
274
- options: {
275
- widget: "Button",
276
323
  },
277
-
278
- config: {
279
- layout: 11.9,
280
- main: {
281
- name: "Save",
282
- startIcon: "ApproveIcon",
283
- variant: "contained",
284
- color: "info",
285
- type: "text",
286
- onClick: "saveHandler",
287
- size: "medium",
288
- },
289
- style: {
290
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
291
- float: "right",
292
- },
293
- },
294
- },
295
- {
296
- type: "Control",
297
- scope: "#/properties/notify",
298
- options: {
299
- widget: "Notify",
300
- },
301
- layout: 6,
302
- },
303
- {
304
- type: "HorizontalLayout",
305
- config: {
306
- style: {
307
- position: "fixed",
308
- bottom: 5,
309
- overflow: 'visible',
310
- margin: "0",
311
- width: "100vw",
312
- }
313
- },
314
- elements: [
315
- {
316
- type: "Control",
317
- scope: "#/properties/EmptyBox",
318
- options: {
319
- widget: "EmptyBox",
324
+ {
325
+ type: "WrapperLayout",
326
+ config: {
327
+ main: {
328
+ // label: "Success Case Event",
329
+ divider: true,
320
330
  },
321
- config: {
322
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
331
+ wrapperStyle: {
332
+ border: "1px solid gray"
323
333
  },
324
334
  },
325
- {
326
-
327
- type: "Control",
328
- scope: "#/properties/FooterText",
329
- options: {
330
- widget: "Box",
331
- },
332
- config: {
333
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
334
- main: {
335
- heading: "Copywriter@ACT21.IO"
335
+ elements: [
336
+ {
337
+ type: "Control",
338
+ scope: "#/properties/heading",
339
+
340
+ options: {
341
+ widget: "Box",
342
+ },
343
+ config: {
344
+ layout: 8,
345
+ main: {
346
+ heading: "Event Table",
347
+ },
348
+ style: {
349
+ fontFamily: "Roboto",
350
+ fontWeight: "500",
351
+ paddingLeft: "-10px",
352
+ fontSize: "20px",
353
+ },
336
354
  },
337
- style: {
338
- color: theme?.palette?.text.disabled || "#AFAFAF",
339
- fontSize: '12px',
340
- }
341
- },
342
- },
343
- {
344
- type: "HorizontalLayout",
345
- config: {
346
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
347
355
  },
348
- elements: [
349
- {
350
- type: "Control",
351
- scope: "#/properties/EmptyBox",
352
- options: {
353
- widget: "EmptyBox",
356
+ {
357
+ type: "Control",
358
+ scope: "#/properties/AddButton",
359
+ options: {
360
+ widget: "IconButton",
361
+ },
362
+ config: {
363
+ layout: 3,
364
+ main: {
365
+ icon: "AddIcon",
366
+ styleDefault: true,
367
+ size: "small",
368
+ onClick: "eventAddHandler",
369
+ tooltipMessage: "Back",
354
370
  },
355
- config: {
356
- layout: 2,
371
+ style: {
372
+ float: "right",
357
373
  },
358
374
  },
359
- {
360
- type: "Control",
361
- scope: "#/properties/backIcon",
362
- options: {
363
- widget: "Box",
375
+ },
376
+
377
+ {
378
+ type: "Control",
379
+ scope: "#/properties/events",
380
+ options: {
381
+ widget: "Table",
382
+ },
383
+ config: {
384
+ main: {
385
+ disableAction: true,
386
+ disableSelection: true,
387
+ enableDrag: true,
388
+
364
389
  },
365
- config: {
366
- layout: 1,
367
- main: {
368
- iconName: 'PrevIcon',
369
- onClick: "backHandler"
370
- },
371
- style: {
372
- fill: theme.palette.primary.dark,
373
- width: 20,
374
- height: 20,
375
- display: 'flex',
376
- alignItems: 'center',
377
- justifyContent: 'center',
378
- marginRight: '-8px',
379
- cursor: 'pointer'
380
- }
381
- }
382
390
  },
383
- {
384
- type: "Control",
385
- scope: "#/properties/text",
386
-
387
- options: {
388
- widget: "Box",
391
+ elements: [
392
+
393
+ {
394
+ accessorKey: "eventType",
395
+ header: "Event Type",
396
+ },
397
+ {
398
+ accessorKey: "Handler",
399
+ header: "Handler",
389
400
  },
390
- config: {
391
- layout: 9,
392
- main: {
393
- heading: "Previous Page",
394
- onClick: "backHandler"
401
+ {
402
+ accessorKey: "Edit_Approve_Records",
403
+ header: "Edit Widget",
404
+ widget: {
405
+ type: "Control",
406
+ scope: "#/properties/Edit_Records",
407
+ options: {
408
+ widget: "IconButton",
409
+ },
410
+ config: {
411
+ main: {
412
+ color: "info",
413
+ size: "small",
414
+ icon: "EditIcon",
415
+ tooltipMessage: "Edit This Record",
416
+ onClick: "editEvent",
417
+ },
418
+ style: {
419
+ color: "#3949ab",
420
+ },
421
+ },
395
422
  },
396
- style: {
397
- color: theme.palette.primary.dark,
398
- fontSize: "12px",
399
- cursor: 'pointer',
400
- marginLeft: '-6px'
401
- }
402
423
  },
403
- },
404
- ],
405
- },
406
- ]
424
+ {
425
+ accessorKey: "Reject_Records",
426
+ header: "Delete",
427
+ widget: {
428
+ type: "Control",
429
+ scope: "#/properties/RejectButton",
430
+ options: {
431
+ widget: "IconButton",
432
+ },
433
+ config: {
434
+ main: {
435
+ icon: "RejectIcon",
436
+ color: "error",
437
+ tooltipMessage: "Reject This Record",
438
+ onClick: "deleteEvent",
439
+ },
440
+ },
441
+ },
442
+ },
443
+ ]
444
+ }]
445
+ },
446
+
447
+ ],
448
+ },
449
+ {
450
+ type: "Control",
451
+ scope: "#/properties/btn",
452
+ options: {
453
+ widget: "EmptyBox",
454
+ },
455
+ config: {
456
+ layout: { xs: 0, sm: 0, md: 8, lg: 7 },
407
457
  }
408
- ]
409
- };
410
- return uiSchema
411
- }
458
+ },
459
+ {
460
+ type: "Control",
461
+ scope: "#/properties/btn",
462
+ options: {
463
+ widget: "Button",
464
+ },
465
+
466
+ config: {
467
+ layout: 11.7,
468
+ main: {
469
+ name: "Save",
470
+ startIcon: "ApproveIcon",
471
+ variant: "contained",
472
+ color: "info",
473
+ type: "text",
474
+ onClick: "saveHandler",
475
+ size: "small",
476
+ },
477
+ style: {
478
+ marginBottom: "8px",
479
+ width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
480
+ float: "right",
481
+ },
482
+ },
483
+ },
484
+ {
485
+ type: "Control",
486
+ scope: "#/properties/notify",
487
+ options: {
488
+ widget: "Notify",
489
+ },
490
+ layout: 6,
491
+ }
492
+ ]
493
+ }
494
+