impaktapps-ui-builder 0.0.382-alpha.44 → 0.0.382-alpha.550

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.
Files changed (43) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1701 -1197
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +12 -12
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +0 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +2 -35
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +18 -15
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +121 -70
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -1
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +102 -53
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -17
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +2 -17
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  17. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -1
  18. package/package.json +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +5 -5
  21. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -3
  22. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +27 -50
  23. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +49 -30
  24. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  25. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -16
  26. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +6 -1
  27. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  28. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +125 -99
  29. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
  30. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +12 -2
  32. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +6 -1
  33. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +58 -84
  34. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +6 -1
  35. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  36. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +442 -342
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +496 -329
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +353 -398
  40. package/src/impaktapps-ui-builder/builder/services/component.ts +25 -7
  41. package/src/impaktapps-ui-builder/builder/services/event.ts +17 -9
  42. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  43. package/src/impaktapps-ui-builder/runtime/services/service.ts +14 -6
@@ -36,394 +36,555 @@ const PageMasterSchema = {
36
36
  },
37
37
  required: ["label", "name"]
38
38
  };
39
- const PageMasterUiSchema = (theme) => {
40
- var _a;
41
- const uiSchema = {
42
- type: "HorizontalLayout",
43
- heading: "Page Master",
44
- elements: [
45
- {
46
- type: "WrapperLayout",
47
- config: {
48
- main: {},
49
- wrapperStyle: {
50
- backgroundColor: theme.palette.background.default
39
+ const PageMasterUiSchema = {
40
+ type: "HorizontalLayout",
41
+ elements: [
42
+ {
43
+ type: "WrapperLayout",
44
+ config: {
45
+ main: {
46
+ rowSpacing: 1,
47
+ header: true
48
+ },
49
+ defaultStyle: true
50
+ },
51
+ elements: [
52
+ {
53
+ type: "Control",
54
+ scope: "#/properties/pageMaster",
55
+ options: {
56
+ widget: "Box"
51
57
  },
52
- defaultStyle: true
58
+ config: {
59
+ layout: 8,
60
+ main: {
61
+ heading: "Page Master"
62
+ }
63
+ }
53
64
  },
54
- elements: [
55
- {
56
- type: "Control",
57
- scope: "#/properties/name",
58
- options: {
59
- widget: "InputField"
65
+ {
66
+ type: "Control",
67
+ scope: "#/properties/Back_Button",
68
+ options: {
69
+ widget: "IconButton"
70
+ },
71
+ config: {
72
+ layout: 3,
73
+ main: {
74
+ icon: "BackIcon",
75
+ styleDefault: true,
76
+ size: "small",
77
+ onClick: "backHandler",
78
+ tooltipMessage: "Back"
60
79
  },
61
- config: {
62
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
63
- main: {
64
- label: "Name",
65
- options: [],
66
- color: "secondary",
67
- errorMessage: "Name should be start with 'page_'",
68
- helperText: 'Name should be start with "page_"',
69
- required: true
70
- }
80
+ style: {
81
+ float: "right"
71
82
  }
83
+ }
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ type: "WrapperLayout",
89
+ config: {
90
+ main: {
91
+ label: "Page Template",
92
+ divider: true
93
+ },
94
+ defaultStyle: true
95
+ },
96
+ elements: [
97
+ {
98
+ type: "Control",
99
+ scope: "#/properties/name",
100
+ options: {
101
+ widget: "InputField"
72
102
  },
73
- {
74
- type: "Control",
75
- scope: "#/properties/label",
76
- options: {
77
- widget: "InputField"
78
- },
79
- config: {
80
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
81
- main: {
82
- label: "Label",
83
- options: [],
84
- color: "secondary",
85
- required: true
86
- }
103
+ config: {
104
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
105
+ main: {
106
+ label: "Name",
107
+ options: [],
108
+ color: "secondary",
109
+ errorMessage: "Name should be start with 'page_'",
110
+ helperText: 'Name should be start with "page_"',
111
+ required: true
87
112
  }
113
+ }
114
+ },
115
+ {
116
+ type: "Control",
117
+ scope: "#/properties/label",
118
+ options: {
119
+ widget: "InputField"
88
120
  },
89
- {
90
- type: "Control",
91
- scope: "#/properties/emptyBox",
92
- options: {
93
- widget: "EmptyBox"
121
+ config: {
122
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
123
+ main: {
124
+ label: "Label",
125
+ options: [],
126
+ color: "secondary",
127
+ required: true
128
+ }
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ type: "TabLayout",
135
+ config: {
136
+ main: {
137
+ tabLabels: ["Components", "events"],
138
+ divider: true
139
+ },
140
+ defaultStyle: true
141
+ },
142
+ elements: [
143
+ {
144
+ type: "WrapperLayout",
145
+ config: {
146
+ main: {
147
+ divider: true
94
148
  },
95
- config: {
96
- layout: { xs: 0, sm: 4 }
149
+ wrapperStyle: {
150
+ border: "1px solid gray"
97
151
  }
98
152
  },
99
- {
100
- type: "TabLayout",
101
- config: {
102
- main: {
103
- tabLabels: ["Components", "events"],
104
- divider: true
153
+ elements: [
154
+ {
155
+ type: "Control",
156
+ scope: "#/properties/heading",
157
+ options: {
158
+ widget: "Box"
105
159
  },
106
- defaultStyle: true
160
+ config: {
161
+ layout: 8,
162
+ main: {
163
+ heading: "Components Table"
164
+ },
165
+ style: {
166
+ fontFamily: "Roboto",
167
+ fontWeight: "500",
168
+ paddingLeft: "-10px",
169
+ fontSize: "20px"
170
+ }
171
+ }
107
172
  },
108
- elements: [
109
- {
110
- type: "Control",
111
- scope: "#/properties/elements",
112
- options: {
113
- widget: "Table"
173
+ {
174
+ type: "Control",
175
+ scope: "#/properties/AddButton",
176
+ options: {
177
+ widget: "IconButton"
178
+ },
179
+ config: {
180
+ layout: 3,
181
+ main: {
182
+ icon: "AddIcon",
183
+ styleDefault: true,
184
+ size: "small",
185
+ onClick: "onAddClickHandler",
186
+ tooltipMessage: "Add New"
114
187
  },
115
- config: {
116
- main: {
117
- headerIcons: {
118
- elements: [
119
- {
120
- widget: {
121
- type: "Control",
122
- scope: "#/properties/New_Record",
123
- options: {
124
- widget: "IconButton"
125
- },
126
- config: {
127
- main: {
128
- onClick: "onAddClickHandler",
129
- size: "small",
130
- icon: "AddIcon",
131
- iconLabel: "Add New",
132
- styleDefault: true
133
- },
134
- style: {
135
- mt: "6px"
136
- }
137
- }
138
- }
139
- }
140
- ]
141
- },
142
- disableAction: true,
143
- disableSelection: true,
144
- enableDrag: true
145
- }
188
+ style: {
189
+ float: "right"
190
+ }
191
+ }
192
+ },
193
+ {
194
+ type: "Control",
195
+ scope: "#/properties/elements",
196
+ options: {
197
+ widget: "Table"
198
+ },
199
+ config: {
200
+ main: {
201
+ disableAction: true,
202
+ disableSelection: true,
203
+ enableDrag: true
204
+ }
205
+ },
206
+ elements: [
207
+ {
208
+ accessorKey: "name",
209
+ header: "Name"
146
210
  },
147
- elements: [
148
- {
149
- accessorKey: "name",
150
- header: "Name"
151
- },
152
- {
153
- accessorKey: "type",
154
- header: "Type"
155
- },
156
- {
157
- header: "Edit",
158
- field: "Reject_Records",
159
- flex: 1,
160
- widget: {
161
- type: "Control",
162
- scope: "#/properties/RejectButton",
163
- options: {
164
- widget: "IconButton"
165
- },
166
- config: {
167
- main: {
168
- icon: "EditIcon",
169
- onClick: "Edit_Components",
170
- tooltipMessage: "Edit This Record"
171
- }
211
+ {
212
+ accessorKey: "type",
213
+ header: "Type"
214
+ },
215
+ {
216
+ header: "Edit",
217
+ field: "Reject_Records",
218
+ flex: 1,
219
+ widget: {
220
+ type: "Control",
221
+ scope: "#/properties/RejectButton",
222
+ options: {
223
+ widget: "IconButton"
224
+ },
225
+ config: {
226
+ main: {
227
+ icon: "EditIcon",
228
+ color: "primary",
229
+ onClick: "Edit_Components",
230
+ tooltipMessage: "Edit This Record"
172
231
  }
173
232
  }
174
- },
175
- {
176
- header: "Delete",
177
- field: "Reject_Records",
178
- flex: 1,
179
- widget: {
180
- type: "Control",
181
- scope: "#/properties/RejectButton",
182
- options: {
183
- widget: "IconButton"
184
- },
185
- config: {
186
- main: {
187
- icon: "RejectIcon",
188
- color: "error",
189
- onClick: "Delete_Components",
190
- tooltipMessage: "Reject This Record"
191
- }
233
+ }
234
+ },
235
+ {
236
+ header: "Delete",
237
+ field: "Reject_Records",
238
+ flex: 1,
239
+ widget: {
240
+ type: "Control",
241
+ scope: "#/properties/RejectButton",
242
+ options: {
243
+ widget: "IconButton"
244
+ },
245
+ config: {
246
+ main: {
247
+ icon: "RejectIcon",
248
+ color: "error",
249
+ onClick: "deletePopUpComponent",
250
+ tooltipMessage: "Reject This Record"
192
251
  }
193
252
  }
194
253
  }
195
- ]
254
+ }
255
+ ]
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ type: "WrapperLayout",
261
+ config: {
262
+ main: {
263
+ divider: true
264
+ },
265
+ wrapperStyle: {
266
+ border: "1px solid gray"
267
+ }
268
+ },
269
+ elements: [
270
+ {
271
+ type: "Control",
272
+ scope: "#/properties/heading",
273
+ options: {
274
+ widget: "Box"
196
275
  },
197
- {
198
- type: "Control",
199
- scope: "#/properties/events",
200
- options: {
201
- widget: "Table"
276
+ config: {
277
+ layout: 8,
278
+ main: {
279
+ heading: "Event Table"
202
280
  },
203
- config: {
204
- main: {
205
- headerIcons: {
206
- elements: [
207
- {
208
- widget: {
209
- type: "Control",
210
- scope: "#/properties/New_Record",
211
- options: {
212
- widget: "IconButton"
213
- },
214
- config: {
215
- main: {
216
- onClick: "eventAddHandler",
217
- size: "small",
218
- icon: "AddIcon",
219
- iconLabel: "Add New",
220
- styleDefault: true
221
- },
222
- style: {
223
- mt: "6px"
224
- }
225
- }
226
- }
227
- }
228
- ]
229
- },
230
- disableAction: true,
231
- disableSelection: true,
232
- enableDrag: true
233
- }
281
+ style: {
282
+ fontFamily: "Roboto",
283
+ fontWeight: "500",
284
+ paddingLeft: "-10px",
285
+ fontSize: "20px"
286
+ }
287
+ }
288
+ },
289
+ {
290
+ type: "Control",
291
+ scope: "#/properties/AddButton",
292
+ options: {
293
+ widget: "IconButton"
294
+ },
295
+ config: {
296
+ layout: 3,
297
+ main: {
298
+ icon: "AddIcon",
299
+ styleDefault: true,
300
+ size: "small",
301
+ onClick: "eventAddHandler",
302
+ tooltipMessage: "Back"
234
303
  },
235
- elements: [
236
- {
237
- accessorKey: "eventType",
238
- header: "Event Type"
239
- },
240
- {
241
- accessorKey: "Handler",
242
- header: "Handler"
243
- },
244
- {
245
- accessorKey: "Edit_Approve_Records",
246
- header: "Edit Widget",
247
- widget: {
248
- type: "Control",
249
- scope: "#/properties/Edit_Records",
250
- options: {
251
- widget: "IconButton"
304
+ style: {
305
+ float: "right"
306
+ }
307
+ }
308
+ },
309
+ {
310
+ type: "Control",
311
+ scope: "#/properties/events",
312
+ options: {
313
+ widget: "Table"
314
+ },
315
+ config: {
316
+ main: {
317
+ disableAction: true,
318
+ disableSelection: true,
319
+ enableDrag: true
320
+ }
321
+ },
322
+ elements: [
323
+ {
324
+ accessorKey: "eventType",
325
+ header: "Event Type"
326
+ },
327
+ {
328
+ accessorKey: "Handler",
329
+ header: "Handler"
330
+ },
331
+ {
332
+ accessorKey: "Edit_Approve_Records",
333
+ header: "Edit Widget",
334
+ widget: {
335
+ type: "Control",
336
+ scope: "#/properties/Edit_Records",
337
+ options: {
338
+ widget: "IconButton"
339
+ },
340
+ config: {
341
+ main: {
342
+ color: "info",
343
+ size: "small",
344
+ icon: "EditIcon",
345
+ tooltipMessage: "Edit This Record",
346
+ onClick: "editEvent"
252
347
  },
253
- config: {
254
- main: {
255
- size: "small",
256
- icon: "EditIcon",
257
- tooltipMessage: "Edit This Record",
258
- onClick: "editEvent"
259
- },
260
- style: {
261
- color: "#3949ab"
262
- }
348
+ style: {
349
+ color: "#3949ab"
263
350
  }
264
351
  }
265
- },
266
- {
267
- accessorKey: "Reject_Records",
268
- header: "Delete",
269
- widget: {
270
- type: "Control",
271
- scope: "#/properties/RejectButton",
272
- options: {
273
- widget: "IconButton"
274
- },
275
- config: {
276
- main: {
277
- icon: "RejectIcon",
278
- color: "error",
279
- tooltipMessage: "Reject This Record",
280
- onClick: "deleteEvent"
281
- }
352
+ }
353
+ },
354
+ {
355
+ accessorKey: "Reject_Records",
356
+ header: "Delete",
357
+ widget: {
358
+ type: "Control",
359
+ scope: "#/properties/RejectButton",
360
+ options: {
361
+ widget: "IconButton"
362
+ },
363
+ config: {
364
+ main: {
365
+ icon: "RejectIcon",
366
+ color: "error",
367
+ tooltipMessage: "Reject This Record",
368
+ onClick: "deletePopUpEvent"
282
369
  }
283
370
  }
284
371
  }
285
- ]
286
- }
287
- ]
372
+ }
373
+ ]
374
+ }
375
+ ]
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ type: "Control",
381
+ scope: "#/properties/popUpPageMasterEvent",
382
+ options: {
383
+ widget: "PopUp"
384
+ },
385
+ config: {
386
+ layout: {
387
+ xs: 12,
388
+ sm: 12,
389
+ md: 12,
390
+ lg: 12
391
+ },
392
+ main: {}
393
+ },
394
+ elements: [
395
+ {
396
+ type: "Control",
397
+ scope: "#/properties/label",
398
+ options: {
399
+ widget: "Box"
400
+ },
401
+ config: {
402
+ layout: 12,
403
+ main: {
404
+ heading: "Are you sure you want to delete ?"
405
+ },
406
+ style: {
407
+ marginTop: "-40px"
408
+ }
409
+ }
410
+ },
411
+ {
412
+ type: "Control",
413
+ scope: "#/properties/EmptyBox",
414
+ options: {
415
+ widget: "EmptyBox"
416
+ },
417
+ config: {
418
+ main: {},
419
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
420
+ }
421
+ },
422
+ {
423
+ type: "Control",
424
+ scope: "#/properties/ConfirmDeleteEventButton",
425
+ options: {
426
+ widget: "Button"
427
+ },
428
+ config: {
429
+ layout: 3,
430
+ main: {
431
+ name: "Yes",
432
+ startIcon: "ApproveIcon",
433
+ variant: "contained",
434
+ color: "info",
435
+ type: "text",
436
+ onClick: "deleteEvent",
437
+ size: "small"
438
+ }
439
+ }
440
+ },
441
+ {
442
+ type: "Control",
443
+ scope: "#/properties/CancelDeleteEventButton",
444
+ options: {
445
+ widget: "Button"
446
+ },
447
+ config: {
448
+ layout: 3,
449
+ main: {
450
+ name: "No",
451
+ startIcon: "ApproveIcon",
452
+ variant: "contained",
453
+ color: "info",
454
+ type: "text",
455
+ onClick: "deletePopUpEvent",
456
+ size: "small"
457
+ }
458
+ }
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ type: "Control",
464
+ scope: "#/properties/popUpPageMasterComponent",
465
+ options: {
466
+ widget: "PopUp"
467
+ },
468
+ config: {
469
+ layout: {
470
+ xs: 12,
471
+ sm: 12,
472
+ md: 12,
473
+ lg: 12
474
+ },
475
+ main: {}
476
+ },
477
+ elements: [
478
+ {
479
+ type: "Control",
480
+ scope: "#/properties/label",
481
+ options: {
482
+ widget: "Box"
288
483
  },
289
- {
290
- type: "Control",
291
- scope: "#/properties/btn",
292
- options: {
293
- widget: "Button"
484
+ config: {
485
+ layout: 12,
486
+ main: {
487
+ heading: "Are you sure you want to delete ?"
294
488
  },
295
- config: {
296
- layout: 11.9,
297
- main: {
298
- name: "Save",
299
- startIcon: "ApproveIcon",
300
- variant: "contained",
301
- type: "text",
302
- onClick: "saveHandler",
303
- size: "medium"
304
- },
305
- style: {
306
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
307
- float: "right"
308
- }
489
+ style: {
490
+ marginTop: "-40px"
309
491
  }
310
492
  }
311
- ]
312
- },
313
- {
314
- type: "Control",
315
- scope: "#/properties/notify",
316
- options: {
317
- widget: "Notify"
318
493
  },
319
- layout: 6
320
- },
321
- {
322
- type: "HorizontalLayout",
323
- config: {
324
- style: {
325
- position: "fixed",
326
- bottom: 5,
327
- overflow: "visible",
328
- margin: "0",
329
- width: "100vw"
494
+ {
495
+ type: "Control",
496
+ scope: "#/properties/EmptyBox",
497
+ options: {
498
+ widget: "EmptyBox"
499
+ },
500
+ config: {
501
+ main: {},
502
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
330
503
  }
331
504
  },
332
- elements: [
333
- {
334
- type: "Control",
335
- scope: "#/properties/EmptyBox",
336
- options: {
337
- widget: "EmptyBox"
338
- },
339
- config: {
340
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
341
- }
505
+ {
506
+ type: "Control",
507
+ scope: "#/properties/ConfirmDeleteCompButton",
508
+ options: {
509
+ widget: "Button"
342
510
  },
343
- {
344
- type: "Control",
345
- scope: "#/properties/FooterText",
346
- options: {
347
- widget: "Box"
348
- },
349
- config: {
350
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
351
- main: {
352
- heading: "Copywriter@ACT21.IO"
353
- },
354
- style: {
355
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
356
- fontSize: "12px"
357
- }
511
+ config: {
512
+ layout: 3,
513
+ main: {
514
+ name: "Yes",
515
+ startIcon: "ApproveIcon",
516
+ variant: "contained",
517
+ color: "info",
518
+ type: "text",
519
+ onClick: "Delete_Components",
520
+ size: "small"
358
521
  }
522
+ }
523
+ },
524
+ {
525
+ type: "Control",
526
+ scope: "#/properties/CancelDeleteCompButton",
527
+ options: {
528
+ widget: "Button"
359
529
  },
360
- {
361
- type: "HorizontalLayout",
362
- config: {
363
- layout: { xs: 11, sm: 4, md: 4, lg: 4 }
364
- },
365
- elements: [
366
- {
367
- type: "Control",
368
- scope: "#/properties/EmptyBox",
369
- options: {
370
- widget: "EmptyBox"
371
- },
372
- config: {
373
- layout: 2
374
- }
375
- },
376
- {
377
- type: "Control",
378
- scope: "#/properties/backIcon",
379
- options: {
380
- widget: "Box"
381
- },
382
- config: {
383
- layout: 1,
384
- main: {
385
- iconName: "PrevIcon",
386
- onClick: "backHandler"
387
- },
388
- style: {
389
- fill: theme.palette.primary.dark,
390
- width: 20,
391
- height: 20,
392
- display: "flex",
393
- alignItems: "center",
394
- justifyContent: "center",
395
- marginRight: "-8px",
396
- cursor: "pointer"
397
- }
398
- }
399
- },
400
- {
401
- type: "Control",
402
- scope: "#/properties/text",
403
- options: {
404
- widget: "Box"
405
- },
406
- config: {
407
- layout: 9,
408
- main: {
409
- heading: "Previous Page",
410
- onClick: "backHandler"
411
- },
412
- style: {
413
- color: theme.palette.primary.dark,
414
- fontSize: "12px",
415
- cursor: "pointer",
416
- marginLeft: "-6px"
417
- }
418
- }
419
- }
420
- ]
530
+ config: {
531
+ layout: 3,
532
+ main: {
533
+ name: "No",
534
+ startIcon: "ApproveIcon",
535
+ variant: "contained",
536
+ color: "info",
537
+ type: "text",
538
+ onClick: "deletePopUpComponent",
539
+ size: "small"
540
+ }
421
541
  }
422
- ]
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ type: "Control",
547
+ scope: "#/properties/btn",
548
+ options: {
549
+ widget: "EmptyBox"
550
+ },
551
+ config: {
552
+ layout: { xs: 0, sm: 0, md: 8, lg: 7 }
423
553
  }
424
- ]
425
- };
426
- return uiSchema;
554
+ },
555
+ {
556
+ type: "Control",
557
+ scope: "#/properties/btn",
558
+ options: {
559
+ widget: "Button"
560
+ },
561
+ config: {
562
+ layout: 11.7,
563
+ main: {
564
+ name: "Save",
565
+ startIcon: "ApproveIcon",
566
+ variant: "contained",
567
+ color: "info",
568
+ type: "text",
569
+ onClick: "saveHandler",
570
+ size: "small"
571
+ },
572
+ style: {
573
+ marginBottom: "8px",
574
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
575
+ float: "right"
576
+ }
577
+ }
578
+ },
579
+ {
580
+ type: "Control",
581
+ scope: "#/properties/notify",
582
+ options: {
583
+ widget: "Notify"
584
+ },
585
+ layout: 6
586
+ }
587
+ ]
427
588
  };
428
589
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
429
590
  var lodash = { exports: {} };
@@ -6157,301 +6318,451 @@ const ComponentSchema = {
6157
6318
  },
6158
6319
  required: ["name"]
6159
6320
  };
6160
- const componentBasicUiSchema = (theme) => {
6161
- var _a;
6162
- const uiSchema = {
6163
- type: "HorizontalLayout",
6164
- heading: "Component",
6165
- elements: [
6166
- {
6167
- type: "TabLayout",
6168
- config: {
6169
- main: {
6170
- tabLabels: ["Core"],
6171
- defaultStyle: true,
6172
- id: `component`
6321
+ const componentBasicUiSchema = {
6322
+ type: "HorizontalLayout",
6323
+ elements: [
6324
+ {
6325
+ type: "WrapperLayout",
6326
+ config: {
6327
+ main: {
6328
+ rowSpacing: 1,
6329
+ header: true
6330
+ },
6331
+ defaultStyle: true
6332
+ },
6333
+ elements: [
6334
+ {
6335
+ type: "Control",
6336
+ scope: "#/properties/Component",
6337
+ options: {
6338
+ widget: "Box"
6339
+ },
6340
+ config: {
6341
+ layout: { xs: 12, sm: 12, md: 2 },
6342
+ main: {
6343
+ heading: "Component"
6344
+ },
6345
+ style: {
6346
+ "float": "left"
6347
+ }
6173
6348
  }
6174
6349
  },
6175
- elements: [
6176
- {
6177
- type: "HorizontalLayout",
6178
- elements: [
6179
- {
6180
- type: "Control",
6181
- scope: "#/properties/type",
6182
- options: {
6183
- widget: "SelectInputField"
6184
- },
6185
- config: {
6186
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6187
- main: {
6188
- label: "Type"
6189
- }
6350
+ {
6351
+ type: "Control",
6352
+ scope: "#/properties/pageName",
6353
+ options: {
6354
+ widget: "Box"
6355
+ },
6356
+ config: {
6357
+ layout: { xs: 7, sm: 7, md: 9 },
6358
+ main: {
6359
+ heading: " "
6360
+ },
6361
+ style: {
6362
+ float: "right",
6363
+ width: "auto",
6364
+ fontSize: "12px",
6365
+ color: "gray",
6366
+ paddingTop: "10px"
6367
+ }
6368
+ }
6369
+ },
6370
+ {
6371
+ type: "Control",
6372
+ scope: "#/properties/Back_Button",
6373
+ options: {
6374
+ widget: "IconButton"
6375
+ },
6376
+ config: {
6377
+ layout: { xs: 2, sm: 2, md: 0.5 },
6378
+ main: {
6379
+ icon: "BackIcon",
6380
+ styleDefault: true,
6381
+ size: "small",
6382
+ onClick: "backHandler",
6383
+ tooltipMessage: "Back"
6384
+ },
6385
+ style: {
6386
+ float: "right"
6387
+ }
6388
+ }
6389
+ }
6390
+ ]
6391
+ },
6392
+ {
6393
+ type: "TabLayout",
6394
+ config: {
6395
+ main: {
6396
+ tabLabels: ["Core"],
6397
+ defaultStyle: true,
6398
+ id: `component`
6399
+ }
6400
+ },
6401
+ elements: [
6402
+ {
6403
+ type: "HorizontalLayout",
6404
+ elements: [
6405
+ {
6406
+ type: "Control",
6407
+ scope: "#/properties/type",
6408
+ options: {
6409
+ widget: "SelectInputField"
6410
+ },
6411
+ config: {
6412
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6413
+ main: {
6414
+ label: "Type"
6190
6415
  }
6416
+ }
6417
+ },
6418
+ {
6419
+ type: "Control",
6420
+ scope: "#/properties/name",
6421
+ options: {
6422
+ widget: "InputField"
6191
6423
  },
6192
- {
6193
- type: "Control",
6194
- scope: "#/properties/name",
6195
- options: {
6196
- widget: "InputField"
6424
+ config: {
6425
+ layout: {
6426
+ xs: 12,
6427
+ sm: 12,
6428
+ md: 6,
6429
+ lg: 6
6197
6430
  },
6198
- config: {
6199
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6200
- main: {
6201
- label: "Name",
6202
- options: [],
6203
- color: "secondary",
6204
- required: true
6205
- }
6431
+ main: {
6432
+ label: "Name",
6433
+ options: [],
6434
+ color: "secondary",
6435
+ required: true
6206
6436
  }
6437
+ }
6438
+ },
6439
+ {
6440
+ type: "Control",
6441
+ scope: "#/properties/label",
6442
+ options: {
6443
+ widget: "InputField"
6207
6444
  },
6208
- {
6209
- type: "Control",
6210
- scope: "#/properties/label",
6211
- options: {
6212
- widget: "InputField"
6445
+ config: {
6446
+ layout: {
6447
+ xs: 12,
6448
+ sm: 12,
6449
+ md: 6,
6450
+ lg: 6
6213
6451
  },
6214
- config: {
6215
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6216
- main: {
6217
- label: "Label",
6218
- options: [],
6219
- color: "secondary",
6220
- required: true
6221
- }
6452
+ main: {
6453
+ label: "Label",
6454
+ options: [],
6455
+ color: "secondary",
6456
+ required: true
6222
6457
  }
6458
+ }
6459
+ },
6460
+ {
6461
+ type: "Control",
6462
+ scope: "#/properties/proc",
6463
+ config: {
6464
+ layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6223
6465
  },
6224
- {
6225
- type: "Control",
6226
- scope: "#/properties/layout",
6227
- layout: 12,
6228
- options: {
6229
- detail: {
6230
- type: "HorizontalLayout",
6231
- elements: [
6232
- {
6233
- type: "Control",
6234
- scope: "#/properties/key",
6235
- options: {
6236
- widget: "SelectInputField"
6237
- },
6238
- config: {
6239
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6240
- main: {
6241
- label: "Screen Size"
6242
- }
6243
- }
6466
+ options: {
6467
+ widget: "EmptyBox"
6468
+ }
6469
+ },
6470
+ {
6471
+ type: "Control",
6472
+ scope: "#/properties/layout",
6473
+ layout: 11.5,
6474
+ options: {
6475
+ detail: {
6476
+ type: "HorizontalLayout",
6477
+ elements: [
6478
+ {
6479
+ type: "Control",
6480
+ scope: "#/properties/key",
6481
+ options: {
6482
+ widget: "SelectInputField"
6244
6483
  },
6245
- {
6246
- type: "Control",
6247
- scope: "#/properties/value",
6248
- options: {
6249
- widget: "InputField"
6484
+ config: {
6485
+ layout: {
6486
+ xs: 11,
6487
+ sm: 11,
6488
+ md: 5.5,
6489
+ lg: 5.5
6250
6490
  },
6251
- config: {
6252
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6253
- main: {
6254
- label: "Value",
6255
- type: "number",
6256
- helperText: "Number should be in range of 0 to 12",
6257
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6258
- }
6491
+ main: {
6492
+ label: "Screen Size"
6259
6493
  }
6494
+ }
6495
+ },
6496
+ {
6497
+ type: "Control",
6498
+ scope: "#/properties/value",
6499
+ options: {
6500
+ widget: "InputField"
6260
6501
  },
6261
- {
6262
- type: "Control",
6263
- scope: "#/properties/emptyBox",
6264
- options: {
6265
- widget: "EmptyBox"
6502
+ config: {
6503
+ layout: {
6504
+ xs: 11,
6505
+ sm: 11,
6506
+ md: 5.5,
6507
+ lg: 5.5
6266
6508
  },
6267
- config: {
6268
- layout: { xs: 0, sm: 4 }
6509
+ main: {
6510
+ label: "Value",
6511
+ type: "number",
6512
+ helperText: "Number should be in range of 0 to 12",
6513
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6269
6514
  }
6270
6515
  }
6271
- ]
6272
- }
6516
+ }
6517
+ ]
6273
6518
  }
6274
6519
  }
6275
- ]
6276
- }
6277
- ]
6520
+ }
6521
+ ]
6522
+ }
6523
+ ]
6524
+ },
6525
+ {
6526
+ type: "Control",
6527
+ scope: "#/properties/popUpComponentSection",
6528
+ options: {
6529
+ widget: "PopUp"
6278
6530
  },
6279
- {
6280
- type: "Control",
6281
- scope: "#/properties/EmptyBox",
6282
- options: {
6283
- widget: "EmptyBox"
6531
+ config: {
6532
+ layout: {
6533
+ xs: 12,
6534
+ sm: 12,
6535
+ md: 12,
6536
+ lg: 12
6284
6537
  },
6285
- config: {
6286
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6287
- }
6538
+ main: {}
6288
6539
  },
6289
- {
6290
- type: "Control",
6291
- scope: "#/properties/EmptyBox",
6292
- options: {
6293
- widget: "EmptyBox"
6540
+ elements: [
6541
+ {
6542
+ type: "Control",
6543
+ scope: "#/properties/label",
6544
+ options: {
6545
+ widget: "Box"
6546
+ },
6547
+ config: {
6548
+ layout: 12,
6549
+ main: {
6550
+ heading: "Are you sure you want to delete ?"
6551
+ },
6552
+ style: {
6553
+ marginTop: "-40px"
6554
+ }
6555
+ }
6294
6556
  },
6295
- config: {
6296
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6297
- }
6298
- },
6299
- {
6300
- type: "Control",
6301
- scope: "#/properties/btn",
6302
- options: {
6303
- widget: "Button"
6557
+ {
6558
+ type: "Control",
6559
+ scope: "#/properties/EmptyBox",
6560
+ options: {
6561
+ widget: "EmptyBox"
6562
+ },
6563
+ config: {
6564
+ main: {},
6565
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6566
+ }
6304
6567
  },
6305
- config: {
6306
- layout: 1.8,
6307
- main: {
6308
- name: "Ok",
6309
- startIcon: "ApproveIcon",
6310
- variant: "contained",
6311
- type: "text",
6312
- onClick: "okHandler",
6313
- size: "medium"
6568
+ {
6569
+ type: "Control",
6570
+ scope: "#/properties/ConfirmDeleteCompButton",
6571
+ options: {
6572
+ widget: "Button"
6314
6573
  },
6315
- style: {
6316
- float: "right"
6574
+ config: {
6575
+ layout: 3,
6576
+ main: {
6577
+ name: "Yes",
6578
+ startIcon: "ApproveIcon",
6579
+ variant: "contained",
6580
+ color: "info",
6581
+ type: "text",
6582
+ onClick: "deleteComponents",
6583
+ size: "small"
6584
+ }
6317
6585
  }
6318
- }
6319
- },
6320
- {
6321
- type: "Control",
6322
- scope: "#/properties/btnSubmit",
6323
- options: {
6324
- widget: "Button"
6325
6586
  },
6326
- config: {
6327
- layout: 1.8,
6328
- main: {
6329
- name: "Save & Exit",
6330
- startIcon: "ApproveIcon",
6331
- variant: "contained",
6332
- type: "text",
6333
- onClick: "saveHandler",
6334
- size: "medium"
6587
+ {
6588
+ type: "Control",
6589
+ scope: "#/properties/CancelDeleteCompButton",
6590
+ options: {
6591
+ widget: "Button"
6335
6592
  },
6336
- style: {
6337
- float: "right"
6593
+ config: {
6594
+ layout: 3,
6595
+ main: {
6596
+ name: "No",
6597
+ startIcon: "ApproveIcon",
6598
+ variant: "contained",
6599
+ color: "info",
6600
+ type: "text",
6601
+ onClick: "deletePopUpComponent",
6602
+ size: "small"
6603
+ }
6338
6604
  }
6339
6605
  }
6606
+ ]
6607
+ },
6608
+ {
6609
+ type: "Control",
6610
+ scope: "#/properties/popUpEventSection",
6611
+ options: {
6612
+ widget: "PopUp"
6340
6613
  },
6341
- {
6342
- type: "Control",
6343
- scope: "#/properties/notify",
6344
- options: {
6345
- widget: "Notify"
6614
+ config: {
6615
+ layout: {
6616
+ xs: 12,
6617
+ sm: 12,
6618
+ md: 12,
6619
+ lg: 12
6346
6620
  },
6347
- layout: 6
6621
+ main: {}
6348
6622
  },
6349
- {
6350
- type: "HorizontalLayout",
6351
- config: {
6352
- style: {
6353
- position: "fixed",
6354
- bottom: 5,
6355
- overflow: "visible",
6356
- margin: "0",
6357
- width: "100vw"
6358
- }
6359
- },
6360
- elements: [
6361
- {
6362
- type: "Control",
6363
- scope: "#/properties/EmptyBox",
6364
- options: {
6365
- widget: "EmptyBox"
6623
+ elements: [
6624
+ {
6625
+ type: "Control",
6626
+ scope: "#/properties/label",
6627
+ options: {
6628
+ widget: "Box"
6629
+ },
6630
+ config: {
6631
+ layout: 12,
6632
+ main: {
6633
+ heading: "Are you sure you want to delete ?"
6366
6634
  },
6367
- config: {
6368
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6635
+ style: {
6636
+ marginTop: "-40px"
6369
6637
  }
6638
+ }
6639
+ },
6640
+ {
6641
+ type: "Control",
6642
+ scope: "#/properties/EmptyBox",
6643
+ options: {
6644
+ widget: "EmptyBox"
6370
6645
  },
6371
- {
6372
- type: "Control",
6373
- scope: "#/properties/FooterText",
6374
- options: {
6375
- widget: "Box"
6376
- },
6377
- config: {
6378
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6379
- main: {
6380
- heading: "Copywriter@ACT21.IO"
6381
- },
6382
- style: {
6383
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6384
- fontSize: "12px"
6385
- }
6646
+ config: {
6647
+ main: {},
6648
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6649
+ }
6650
+ },
6651
+ {
6652
+ type: "Control",
6653
+ scope: "#/properties/ConfirmDeleteEventButton",
6654
+ options: {
6655
+ widget: "Button"
6656
+ },
6657
+ config: {
6658
+ layout: 3,
6659
+ main: {
6660
+ name: "Yes",
6661
+ startIcon: "ApproveIcon",
6662
+ variant: "contained",
6663
+ color: "info",
6664
+ type: "text",
6665
+ onClick: "deleteEvent",
6666
+ size: "small"
6386
6667
  }
6668
+ }
6669
+ },
6670
+ {
6671
+ type: "Control",
6672
+ scope: "#/properties/CancelDeleteEventButton",
6673
+ options: {
6674
+ widget: "Button"
6387
6675
  },
6388
- {
6389
- type: "HorizontalLayout",
6390
- config: {
6391
- layout: { xs: 11, sm: 4, md: 4, lg: 4 }
6392
- },
6393
- elements: [
6394
- {
6395
- type: "Control",
6396
- scope: "#/properties/EmptyBox",
6397
- options: {
6398
- widget: "EmptyBox"
6399
- },
6400
- config: {
6401
- layout: 2
6402
- }
6403
- },
6404
- {
6405
- type: "Control",
6406
- scope: "#/properties/backIcon",
6407
- options: {
6408
- widget: "Box"
6409
- },
6410
- config: {
6411
- layout: 1,
6412
- main: {
6413
- iconName: "PrevIcon",
6414
- onClick: "backHandler"
6415
- },
6416
- style: {
6417
- fill: theme.palette.primary.dark,
6418
- width: 20,
6419
- height: 20,
6420
- display: "flex",
6421
- alignItems: "center",
6422
- justifyContent: "center",
6423
- marginRight: "-8px",
6424
- cursor: "pointer"
6425
- }
6426
- }
6427
- },
6428
- {
6429
- type: "Control",
6430
- scope: "#/properties/text",
6431
- options: {
6432
- widget: "Box"
6433
- },
6434
- config: {
6435
- layout: 9,
6436
- main: {
6437
- heading: "Previous Page",
6438
- onClick: "backHandler"
6439
- },
6440
- style: {
6441
- color: theme.palette.primary.dark,
6442
- fontSize: "12px",
6443
- cursor: "pointer",
6444
- marginLeft: "-6px"
6445
- }
6446
- }
6447
- }
6448
- ]
6676
+ config: {
6677
+ layout: 3,
6678
+ main: {
6679
+ name: "No",
6680
+ startIcon: "ApproveIcon",
6681
+ variant: "contained",
6682
+ color: "info",
6683
+ type: "text",
6684
+ onClick: "deletePopUpEvent",
6685
+ size: "small"
6686
+ }
6449
6687
  }
6450
- ]
6688
+ }
6689
+ ]
6690
+ },
6691
+ {
6692
+ type: "Control",
6693
+ scope: "#/properties/proc",
6694
+ config: {
6695
+ layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6696
+ },
6697
+ options: {
6698
+ widget: "EmptyBox"
6451
6699
  }
6452
- ]
6453
- };
6454
- return uiSchema;
6700
+ },
6701
+ {
6702
+ type: "Control",
6703
+ scope: "#/properties/btn",
6704
+ options: {
6705
+ widget: "Button"
6706
+ },
6707
+ config: {
6708
+ layout: {
6709
+ xs: 11,
6710
+ sm: 11,
6711
+ md: 2.5,
6712
+ lg: 2.5
6713
+ },
6714
+ main: {
6715
+ name: "Ok",
6716
+ startIcon: "ApproveIcon",
6717
+ variant: "contained",
6718
+ color: "info",
6719
+ type: "text",
6720
+ onClick: "okHandler",
6721
+ size: "small"
6722
+ },
6723
+ style: {
6724
+ marginBottom: "8px",
6725
+ float: "right"
6726
+ }
6727
+ }
6728
+ },
6729
+ {
6730
+ type: "Control",
6731
+ scope: "#/properties/btnSubmit",
6732
+ options: {
6733
+ widget: "Button"
6734
+ },
6735
+ config: {
6736
+ layout: {
6737
+ xs: 11,
6738
+ sm: 11,
6739
+ md: 2.5,
6740
+ lg: 2.5
6741
+ },
6742
+ main: {
6743
+ name: "Save & Exit",
6744
+ startIcon: "ApproveIcon",
6745
+ variant: "contained",
6746
+ color: "info",
6747
+ type: "text",
6748
+ onClick: "saveHandler",
6749
+ size: "small"
6750
+ },
6751
+ style: {
6752
+ marginBottom: "8px",
6753
+ float: "right"
6754
+ }
6755
+ }
6756
+ },
6757
+ {
6758
+ type: "Control",
6759
+ scope: "#/properties/notify",
6760
+ options: {
6761
+ widget: "Notify"
6762
+ },
6763
+ layout: 6
6764
+ }
6765
+ ]
6455
6766
  };
6456
6767
  const CoreSection = {
6457
6768
  type: "HorizontalLayout",
@@ -6463,7 +6774,7 @@ const CoreSection = {
6463
6774
  widget: "SelectInputField"
6464
6775
  },
6465
6776
  config: {
6466
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6777
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6467
6778
  main: {
6468
6779
  label: "Type",
6469
6780
  type: "text"
@@ -6477,7 +6788,12 @@ const CoreSection = {
6477
6788
  widget: "InputField"
6478
6789
  },
6479
6790
  config: {
6480
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6791
+ layout: {
6792
+ xs: 12,
6793
+ sm: 12,
6794
+ md: 6,
6795
+ lg: 6
6796
+ },
6481
6797
  main: {
6482
6798
  label: "Name"
6483
6799
  }
@@ -6490,16 +6806,31 @@ const CoreSection = {
6490
6806
  widget: "InputField"
6491
6807
  },
6492
6808
  config: {
6493
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6809
+ layout: {
6810
+ xs: 12,
6811
+ sm: 12,
6812
+ md: 6,
6813
+ lg: 6
6814
+ },
6494
6815
  main: {
6495
6816
  label: "Label"
6496
6817
  }
6497
6818
  }
6498
6819
  },
6820
+ {
6821
+ type: "Control",
6822
+ scope: "#/properties/proc",
6823
+ config: {
6824
+ layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6825
+ },
6826
+ options: {
6827
+ widget: "EmptyBox"
6828
+ }
6829
+ },
6499
6830
  {
6500
6831
  type: "Control",
6501
6832
  scope: "#/properties/layout",
6502
- layout: 12,
6833
+ layout: 11.5,
6503
6834
  options: {
6504
6835
  "elementLabelProp": "key",
6505
6836
  detail: {
@@ -6512,7 +6843,12 @@ const CoreSection = {
6512
6843
  widget: "SelectInputField"
6513
6844
  },
6514
6845
  config: {
6515
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6846
+ layout: {
6847
+ xs: 11,
6848
+ sm: 11,
6849
+ md: 5.5,
6850
+ lg: 5.5
6851
+ },
6516
6852
  main: {
6517
6853
  label: "Screen Size"
6518
6854
  }
@@ -6525,7 +6861,12 @@ const CoreSection = {
6525
6861
  widget: "InputField"
6526
6862
  },
6527
6863
  config: {
6528
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6864
+ layout: {
6865
+ xs: 11,
6866
+ sm: 11,
6867
+ md: 5.5,
6868
+ lg: 5.5
6869
+ },
6529
6870
  main: {
6530
6871
  label: "Value",
6531
6872
  type: "number",
@@ -6533,16 +6874,6 @@ const CoreSection = {
6533
6874
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6534
6875
  }
6535
6876
  }
6536
- },
6537
- {
6538
- type: "Control",
6539
- scope: "#/properties/emptyBox",
6540
- options: {
6541
- widget: "EmptyBox"
6542
- },
6543
- config: {
6544
- layout: { xs: 0, sm: 4 }
6545
- }
6546
6877
  }
6547
6878
  ]
6548
6879
  }
@@ -6554,95 +6885,121 @@ const EventSection = {
6554
6885
  type: "HorizontalLayout",
6555
6886
  elements: [
6556
6887
  {
6557
- type: "Control",
6558
- scope: "#/properties/events",
6559
- options: {
6560
- widget: "Table"
6561
- },
6888
+ type: "WrapperLayout",
6562
6889
  config: {
6563
6890
  main: {
6564
- headerIcons: {
6565
- elements: [
6566
- {
6567
- widget: {
6568
- type: "Control",
6569
- scope: "#/properties/New_Record",
6570
- options: {
6571
- widget: "IconButton"
6572
- },
6573
- config: {
6574
- main: {
6575
- color: "info",
6576
- onClick: "eventAddHandler",
6577
- size: "small",
6578
- icon: "AddIcon",
6579
- iconLabel: "Add New",
6580
- styleDefault: true
6581
- },
6582
- style: {
6583
- mt: "6px"
6584
- }
6585
- }
6586
- }
6587
- }
6588
- ]
6589
- },
6590
- disableAction: true,
6591
- disableSelection: true,
6592
- enableDrag: true
6891
+ divider: true
6892
+ },
6893
+ wrapperStyle: {
6894
+ border: "1px solid gray"
6593
6895
  }
6594
6896
  },
6595
6897
  elements: [
6596
6898
  {
6597
- accessorKey: "eventType",
6598
- header: "Event Type"
6899
+ type: "Control",
6900
+ scope: "#/properties/programType",
6901
+ options: {
6902
+ widget: "Box"
6903
+ },
6904
+ config: {
6905
+ layout: 8,
6906
+ main: {
6907
+ heading: "Event Table"
6908
+ },
6909
+ style: {
6910
+ fontFamily: "Roboto",
6911
+ fontWeight: "500",
6912
+ paddingLeft: "-10px",
6913
+ fontSize: "20px"
6914
+ }
6915
+ }
6599
6916
  },
6600
6917
  {
6601
- accessorKey: "Handler",
6602
- header: "Handler"
6918
+ type: "Control",
6919
+ scope: "#/properties/Back_Button",
6920
+ options: {
6921
+ widget: "IconButton"
6922
+ },
6923
+ config: {
6924
+ layout: 3,
6925
+ main: {
6926
+ icon: "AddIcon",
6927
+ styleDefault: true,
6928
+ size: "small",
6929
+ onClick: "eventAddHandler",
6930
+ tooltipMessage: "Back"
6931
+ },
6932
+ style: {
6933
+ float: "right"
6934
+ }
6935
+ }
6603
6936
  },
6604
6937
  {
6605
- accessorKey: "Edit_Approve_Records",
6606
- header: "Edit Widget",
6607
- widget: {
6608
- type: "Control",
6609
- scope: "#/properties/Edit_Records",
6610
- options: {
6611
- widget: "IconButton"
6938
+ type: "Control",
6939
+ scope: "#/properties/events",
6940
+ options: {
6941
+ widget: "Table"
6942
+ },
6943
+ config: {
6944
+ main: {
6945
+ disableAction: true,
6946
+ disableSelection: true,
6947
+ enableDrag: true
6948
+ }
6949
+ },
6950
+ elements: [
6951
+ {
6952
+ accessorKey: "eventType",
6953
+ header: "Event Type"
6612
6954
  },
6613
- config: {
6614
- main: {
6615
- color: "info",
6616
- size: "small",
6617
- icon: "EditIcon",
6618
- tooltipMessage: "Edit This Record",
6619
- onClick: "eventEditHandler"
6620
- },
6621
- style: {
6622
- color: "#3949ab"
6955
+ {
6956
+ accessorKey: "Handler",
6957
+ header: "Handler"
6958
+ },
6959
+ {
6960
+ accessorKey: "Edit_Approve_Records",
6961
+ header: "Edit Widget",
6962
+ widget: {
6963
+ type: "Control",
6964
+ scope: "#/properties/Edit_Records",
6965
+ options: {
6966
+ widget: "IconButton"
6967
+ },
6968
+ config: {
6969
+ main: {
6970
+ color: "info",
6971
+ size: "small",
6972
+ icon: "EditIcon",
6973
+ tooltipMessage: "Edit This Record",
6974
+ onClick: "eventEditHandler"
6975
+ },
6976
+ style: {
6977
+ color: "#3949ab"
6978
+ }
6979
+ }
6623
6980
  }
6624
- }
6625
- }
6626
- },
6627
- {
6628
- accessorKey: "Reject_Records",
6629
- header: "Delete",
6630
- widget: {
6631
- type: "Control",
6632
- scope: "#/properties/RejectButton",
6633
- accessorKeyName: "Reject_Records",
6634
- options: {
6635
- widget: "IconButton"
6636
6981
  },
6637
- config: {
6638
- main: {
6639
- icon: "RejectIcon",
6640
- color: "error",
6641
- tooltipMessage: "Reject This Record",
6642
- onClick: "deleteEvent"
6982
+ {
6983
+ accessorKey: "Reject_Records",
6984
+ header: "Delete",
6985
+ widget: {
6986
+ type: "Control",
6987
+ scope: "#/properties/RejectButton",
6988
+ accessorKeyName: "Reject_Records",
6989
+ options: {
6990
+ widget: "IconButton"
6991
+ },
6992
+ config: {
6993
+ main: {
6994
+ icon: "RejectIcon",
6995
+ color: "error",
6996
+ tooltipMessage: "Reject This Record",
6997
+ onClick: "deletePopUpEvent"
6998
+ }
6999
+ }
6643
7000
  }
6644
7001
  }
6645
- }
7002
+ ]
6646
7003
  }
6647
7004
  ]
6648
7005
  }
@@ -6655,7 +7012,12 @@ const EmptyBox = {
6655
7012
  widget: "EmptyBox"
6656
7013
  },
6657
7014
  config: {
6658
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
7015
+ layout: {
7016
+ xs: 11,
7017
+ sm: 11,
7018
+ md: 5.5,
7019
+ lg: 5.5
7020
+ },
6659
7021
  main: {}
6660
7022
  }
6661
7023
  };
@@ -6674,7 +7036,12 @@ const cardLayout = {
6674
7036
  widget: "SelectInputField"
6675
7037
  },
6676
7038
  config: {
6677
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7039
+ layout: {
7040
+ xs: 11,
7041
+ sm: 11,
7042
+ md: 5.5,
7043
+ lg: 5.5
7044
+ },
6678
7045
  main: {
6679
7046
  label: "Screen Size"
6680
7047
  }
@@ -6687,7 +7054,12 @@ const cardLayout = {
6687
7054
  widget: "InputField"
6688
7055
  },
6689
7056
  config: {
6690
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7057
+ layout: {
7058
+ xs: 11,
7059
+ sm: 11,
7060
+ md: 5.5,
7061
+ lg: 5.5
7062
+ },
6691
7063
  main: {
6692
7064
  label: "Value",
6693
7065
  type: "number",
@@ -6695,8 +7067,7 @@ const cardLayout = {
6695
7067
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6696
7068
  }
6697
7069
  }
6698
- },
6699
- EmptyBox
7070
+ }
6700
7071
  ]
6701
7072
  }
6702
7073
  }
@@ -6718,13 +7089,17 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6718
7089
  widget: "InputField"
6719
7090
  },
6720
7091
  config: {
6721
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7092
+ layout: {
7093
+ xs: 11,
7094
+ sm: 11,
7095
+ md: 5.5,
7096
+ lg: 5.5
7097
+ },
6722
7098
  main: {
6723
7099
  label: childLabel || "Labels for Tab"
6724
7100
  }
6725
7101
  }
6726
7102
  },
6727
- EmptyBox,
6728
7103
  EmptyBox
6729
7104
  ]
6730
7105
  }
@@ -6739,7 +7114,12 @@ sizeHolder.options.detail.elements[1] = {
6739
7114
  widget: "InputField"
6740
7115
  },
6741
7116
  config: {
6742
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7117
+ layout: {
7118
+ xs: 11,
7119
+ sm: 11,
7120
+ md: 5.5,
7121
+ lg: 5.5
7122
+ },
6743
7123
  main: {
6744
7124
  label: "Size"
6745
7125
  }
@@ -6753,7 +7133,12 @@ const getInputField = (scope, label) => {
6753
7133
  widget: "InputField"
6754
7134
  },
6755
7135
  config: {
6756
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7136
+ layout: {
7137
+ xs: 11,
7138
+ sm: 11,
7139
+ md: 5.5,
7140
+ lg: 5.5
7141
+ },
6757
7142
  main: {
6758
7143
  label
6759
7144
  }
@@ -6768,7 +7153,12 @@ const getRadioInputField = (scope, label, options) => {
6768
7153
  widget: "RadioInputField"
6769
7154
  },
6770
7155
  config: {
6771
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7156
+ layout: {
7157
+ xs: 11,
7158
+ sm: 11,
7159
+ md: 5.5,
7160
+ lg: 5.5
7161
+ },
6772
7162
  main: {
6773
7163
  label,
6774
7164
  options
@@ -6811,7 +7201,7 @@ const getSelectField = (scope, label, options) => {
6811
7201
  widget: "SelectInputField"
6812
7202
  },
6813
7203
  config: {
6814
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7204
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
6815
7205
  main: {
6816
7206
  label,
6817
7207
  type: "text"
@@ -6832,8 +7222,6 @@ const buildPropertiesSection = function(type) {
6832
7222
  getInputField("elevation", "Card Elevation"),
6833
7223
  getInputField("height", "Grid height"),
6834
7224
  getInputField("justifyContent", "justifyContent"),
6835
- EmptyBox,
6836
- EmptyBox,
6837
7225
  cardLayout
6838
7226
  ];
6839
7227
  break;
@@ -6844,7 +7232,6 @@ const buildPropertiesSection = function(type) {
6844
7232
  getInputField("resetText", "Reset Text"),
6845
7233
  getInputField("completeText", "Complete Text"),
6846
7234
  getSelectField("orientation", "Orientation Type"),
6847
- EmptyBox,
6848
7235
  getArrayControl("sectionLabels", "label")
6849
7236
  ];
6850
7237
  break;
@@ -6860,14 +7247,12 @@ const buildPropertiesSection = function(type) {
6860
7247
  uiSchema.elements = [
6861
7248
  getInputField("placeholder", "Placeholder"),
6862
7249
  EmptyBox,
6863
- EmptyBox,
6864
7250
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6865
7251
  ];
6866
7252
  break;
6867
7253
  case "TextArea":
6868
7254
  uiSchema.elements = [
6869
7255
  getInputField("placeholder", "Placeholder"),
6870
- EmptyBox,
6871
7256
  EmptyBox
6872
7257
  ];
6873
7258
  break;
@@ -6877,8 +7262,7 @@ const buildPropertiesSection = function(type) {
6877
7262
  getInputField("heading", "Container Heading"),
6878
7263
  getInputField("heading", "Container Heading"),
6879
7264
  getInputField("speedoCaption", "Speedometer Caption"),
6880
- getInputField("width", "Speedometer Width"),
6881
- EmptyBox
7265
+ getInputField("width", "Speedometer Width")
6882
7266
  ];
6883
7267
  break;
6884
7268
  case "RankCard":
@@ -6886,9 +7270,7 @@ const buildPropertiesSection = function(type) {
6886
7270
  getInputField("rank", "Rank"),
6887
7271
  getInputField("image", "Image Url"),
6888
7272
  getInputField("title", "Card Title"),
6889
- getInputField("description", "Card Description"),
6890
- EmptyBox,
6891
- EmptyBox
7273
+ getInputField("description", "Card Description")
6892
7274
  ];
6893
7275
  break;
6894
7276
  case "LeaderBoard":
@@ -6897,8 +7279,6 @@ const buildPropertiesSection = function(type) {
6897
7279
  getInputField("firstImage", "First Image url"),
6898
7280
  getInputField("secondImage", "Second Image url"),
6899
7281
  getInputField("thirdImage", "Third Image url"),
6900
- EmptyBox,
6901
- EmptyBox,
6902
7282
  getTextArea("functionCode", "Write Compare Code", false)
6903
7283
  ];
6904
7284
  break;
@@ -6914,9 +7294,7 @@ const buildPropertiesSection = function(type) {
6914
7294
  getInputField("heading", "Heading"),
6915
7295
  getInputField("bottomLabel_1", "First BottomLabel"),
6916
7296
  getInputField("bottomLabel_2", "Second BottomLabel"),
6917
- getInputField("bottomLabel_3", "Third BottomLabel"),
6918
- EmptyBox,
6919
- EmptyBox
7297
+ getInputField("bottomLabel_3", "Third BottomLabel")
6920
7298
  ];
6921
7299
  break;
6922
7300
  case "card":
@@ -6950,7 +7328,7 @@ const buildPropertiesSection = function(type) {
6950
7328
  ];
6951
7329
  break;
6952
7330
  case "WrapperSection":
6953
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), getRadioInputField("isAccordion", "Accordion", ["YES", "No"]), EmptyBox];
7331
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
6954
7332
  break;
6955
7333
  case "TabSection":
6956
7334
  uiSchema.elements = [
@@ -6978,14 +7356,12 @@ const buildPropertiesSection = function(type) {
6978
7356
  case "Select":
6979
7357
  uiSchema.elements = [
6980
7358
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6981
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
6982
- EmptyBox
7359
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
6983
7360
  ];
6984
7361
  break;
6985
7362
  case "MultipleSelect":
6986
7363
  uiSchema.elements = [
6987
7364
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6988
- EmptyBox,
6989
7365
  EmptyBox
6990
7366
  ];
6991
7367
  break;
@@ -7031,92 +7407,116 @@ const TableSection = {
7031
7407
  type: "HorizontalLayout",
7032
7408
  elements: [
7033
7409
  {
7034
- type: "Control",
7035
- scope: "#/properties/elements",
7036
- options: {
7037
- widget: "Table"
7038
- },
7410
+ type: "WrapperLayout",
7039
7411
  config: {
7040
- main: {
7041
- headerIcons: {
7042
- elements: [
7043
- {
7044
- widget: {
7045
- type: "Control",
7046
- scope: "#/properties/New_Record",
7047
- options: {
7048
- widget: "IconButton"
7049
- },
7050
- config: {
7051
- main: {
7052
- color: "info",
7053
- onClick: "widgetAddClickHandler",
7054
- size: "small",
7055
- icon: "AddIcon",
7056
- iconLabel: "Add New",
7057
- styleDefault: true
7058
- },
7059
- style: {
7060
- mt: "6px"
7061
- }
7062
- }
7063
- }
7064
- }
7065
- ]
7066
- },
7067
- disableAction: true,
7068
- disableSelection: true,
7069
- enableDrag: true
7412
+ main: {},
7413
+ wrapperStyle: {
7414
+ border: "1px solid gray"
7070
7415
  }
7071
7416
  },
7072
7417
  elements: [
7073
7418
  {
7074
- accessorKey: "name",
7075
- header: "Name"
7076
- },
7077
- {
7078
- accessorKey: "type",
7079
- header: "Type"
7419
+ type: "Control",
7420
+ scope: "#/properties/programType",
7421
+ options: {
7422
+ widget: "Box"
7423
+ },
7424
+ config: {
7425
+ layout: 8,
7426
+ main: {
7427
+ heading: "Components Table"
7428
+ },
7429
+ style: {
7430
+ fontFamily: "Roboto",
7431
+ fontWeight: "500",
7432
+ paddingLeft: "-10px",
7433
+ fontSize: "20px"
7434
+ }
7435
+ }
7080
7436
  },
7081
7437
  {
7082
- header: "Edit Record",
7083
- field: "Reject_Records",
7084
- flex: 1,
7085
- widget: {
7086
- type: "Control",
7087
- scope: "#/properties/RejectButton",
7088
- options: {
7089
- widget: "IconButton"
7438
+ type: "Control",
7439
+ scope: "#/properties/Back_Button",
7440
+ options: {
7441
+ widget: "IconButton"
7442
+ },
7443
+ config: {
7444
+ layout: 3,
7445
+ main: {
7446
+ icon: "AddIcon",
7447
+ styleDefault: true,
7448
+ size: "small",
7449
+ onClick: "widgetAddClickHandler",
7450
+ tooltipMessage: "Add New"
7090
7451
  },
7091
- config: {
7092
- main: {
7093
- icon: "EditIcon",
7094
- color: "primary",
7095
- onClick: "editComponents",
7096
- tooltipMessage: "Reject This Record"
7097
- }
7452
+ style: {
7453
+ float: "right"
7098
7454
  }
7099
7455
  }
7100
7456
  },
7101
7457
  {
7102
- header: "Delete",
7103
- field: "Reject_Records",
7104
- flex: 1,
7105
- widget: {
7106
- type: "Control",
7107
- scope: "#/properties/RejectButton",
7108
- options: {
7109
- widget: "IconButton"
7458
+ type: "Control",
7459
+ scope: "#/properties/elements",
7460
+ options: {
7461
+ widget: "Table"
7462
+ },
7463
+ config: {
7464
+ main: {
7465
+ disableAction: true,
7466
+ disableSelection: true,
7467
+ enableDrag: true
7468
+ }
7469
+ },
7470
+ elements: [
7471
+ {
7472
+ accessorKey: "name",
7473
+ header: "Name"
7110
7474
  },
7111
- config: {
7112
- main: {
7113
- icon: "RejectIcon",
7114
- color: "error",
7115
- onClick: "deleteComponents",
7116
- tooltipMessage: "Reject This Record"
7475
+ {
7476
+ accessorKey: "type",
7477
+ header: "Type"
7478
+ },
7479
+ {
7480
+ header: "Edit Record",
7481
+ field: "Reject_Records",
7482
+ flex: 1,
7483
+ widget: {
7484
+ type: "Control",
7485
+ scope: "#/properties/RejectButton",
7486
+ options: {
7487
+ widget: "IconButton"
7488
+ },
7489
+ config: {
7490
+ main: {
7491
+ icon: "EditIcon",
7492
+ color: "primary",
7493
+ onClick: "editComponents",
7494
+ tooltipMessage: "Reject This Record"
7495
+ }
7496
+ }
7497
+ }
7498
+ },
7499
+ {
7500
+ header: "Delete",
7501
+ field: "Reject_Records",
7502
+ flex: 1,
7503
+ widget: {
7504
+ type: "Control",
7505
+ scope: "#/properties/RejectButton",
7506
+ options: {
7507
+ widget: "IconButton"
7508
+ },
7509
+ config: {
7510
+ main: {
7511
+ icon: "RejectIcon",
7512
+ color: "error",
7513
+ onClick: "deletePopUpComponent",
7514
+ tooltipMessage: "Reject This Record"
7515
+ }
7516
+ }
7117
7517
  }
7118
7518
  }
7119
- }
7519
+ ]
7120
7520
  }
7121
7521
  ]
7122
7522
  }
@@ -7140,7 +7540,12 @@ const ValueTab = {
7140
7540
  widget: "InputField"
7141
7541
  },
7142
7542
  config: {
7143
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7543
+ layout: {
7544
+ xs: 11,
7545
+ sm: 11,
7546
+ md: 5.5,
7547
+ lg: 5.5
7548
+ },
7144
7549
  main: {
7145
7550
  label: "Label"
7146
7551
  }
@@ -7153,21 +7558,16 @@ const ValueTab = {
7153
7558
  widget: "InputField"
7154
7559
  },
7155
7560
  config: {
7156
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7561
+ layout: {
7562
+ xs: 11,
7563
+ sm: 11,
7564
+ md: 5.5,
7565
+ lg: 5.5
7566
+ },
7157
7567
  main: {
7158
7568
  label: "Value"
7159
7569
  }
7160
7570
  }
7161
- },
7162
- {
7163
- type: "Control",
7164
- scope: "#/properties/emptyBox",
7165
- options: {
7166
- widget: "EmptyBox"
7167
- },
7168
- config: {
7169
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7170
- }
7171
7571
  }
7172
7572
  ]
7173
7573
  }
@@ -7194,7 +7594,12 @@ const ValidationSection = {
7194
7594
  widget: "SelectInputField"
7195
7595
  },
7196
7596
  config: {
7197
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7597
+ layout: {
7598
+ xs: 11,
7599
+ sm: 11,
7600
+ md: 5.5,
7601
+ lg: 5.5
7602
+ },
7198
7603
  main: {
7199
7604
  label: "Validation Type"
7200
7605
  }
@@ -7207,21 +7612,16 @@ const ValidationSection = {
7207
7612
  widget: "InputField"
7208
7613
  },
7209
7614
  config: {
7210
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7615
+ layout: {
7616
+ xs: 11,
7617
+ sm: 11,
7618
+ md: 5.5,
7619
+ lg: 5.5
7620
+ },
7211
7621
  main: {
7212
7622
  label: "Validation Value"
7213
7623
  }
7214
7624
  }
7215
- },
7216
- {
7217
- type: "Control",
7218
- scope: "#/properties/emptyBox",
7219
- options: {
7220
- widget: "EmptyBox"
7221
- },
7222
- config: {
7223
- layout: { xs: 0, sm: 4 }
7224
- }
7225
7625
  }
7226
7626
  ]
7227
7627
  }
@@ -7403,7 +7803,7 @@ const sectionLabels = {
7403
7803
  };
7404
7804
  const refreshPage = (type, store2) => {
7405
7805
  var _a;
7406
- const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
7806
+ const UiSchema = _.cloneDeep(componentBasicUiSchema);
7407
7807
  if (type) {
7408
7808
  const sectionUiSchema = {
7409
7809
  Core: CoreSection,
@@ -7415,8 +7815,8 @@ const refreshPage = (type, store2) => {
7415
7815
  Validation: ValidationSection
7416
7816
  };
7417
7817
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7418
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7419
- UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7818
+ UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7819
+ UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7420
7820
  }
7421
7821
  store2.setUiSchema(UiSchema);
7422
7822
  };
@@ -7462,22 +7862,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7462
7862
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7463
7863
  }
7464
7864
  },
7465
- deleteComponents: function() {
7865
+ deleteComponents: function(shouldUpdateDialog = true) {
7466
7866
  var _a;
7467
7867
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7468
- const rowId = dynamicData2.path.split(".")[1];
7868
+ const rowId = localStorage.getItem("rowId");
7469
7869
  store2.formData.elements.splice(rowId, 1);
7470
7870
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7471
7871
  const data2 = path ? _.get(response2, path) : response2;
7472
7872
  store2.setFormdata(data2);
7873
+ if (shouldUpdateDialog) {
7874
+ store2.updateDialog("popUpComponentSection");
7875
+ }
7876
+ localStorage.removeItem("rowId");
7473
7877
  },
7474
- deleteEvent: function() {
7878
+ deleteEvent: function(shouldUpdateDialog = true) {
7475
7879
  var _a;
7476
7880
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7477
- const rowId = dynamicData2.path.split(".")[1];
7881
+ const rowId = localStorage.getItem("rowId");
7478
7882
  store2.formData.events.splice(rowId, 1);
7479
7883
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7480
7884
  store2.setFormdata(_.get(response2, path));
7885
+ if (shouldUpdateDialog) {
7886
+ store2.updateDialog("popUpEventSection");
7887
+ }
7888
+ localStorage.removeItem("rowId");
7481
7889
  },
7482
7890
  widgetAddClickHandler: function() {
7483
7891
  var _a;
@@ -7513,6 +7921,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7513
7921
  },
7514
7922
  backHandler: function() {
7515
7923
  store2.navigate(-1);
7924
+ },
7925
+ deletePopUpComponent: function() {
7926
+ const rowId = dynamicData2.path.split(".")[1];
7927
+ localStorage.setItem("rowId", rowId);
7928
+ store2.updateDialog("popUpComponentSection");
7929
+ },
7930
+ deletePopUpEvent: function() {
7931
+ const rowId = dynamicData2.path.split(".")[1];
7932
+ localStorage.setItem("rowId", rowId);
7933
+ store2.updateDialog("popUpEventSection");
7516
7934
  }
7517
7935
  };
7518
7936
  };
@@ -7538,7 +7956,7 @@ var pageMaster = (funcParams) => {
7538
7956
  return config;
7539
7957
  },
7540
7958
  getUiSchema: function() {
7541
- return PageMasterUiSchema(store2.theme.myTheme);
7959
+ return PageMasterUiSchema;
7542
7960
  },
7543
7961
  getSchema: () => {
7544
7962
  return PageMasterSchema;
@@ -7560,7 +7978,10 @@ var pageMaster = (funcParams) => {
7560
7978
  },
7561
7979
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7562
7980
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7563
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
7981
+ Delete_Components: async function() {
7982
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7983
+ store2.updateDialog("popUpPageMasterComponent");
7984
+ },
7564
7985
  eventAddHandler: function() {
7565
7986
  var _a;
7566
7987
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7580,10 +8001,22 @@ var pageMaster = (funcParams) => {
7580
8001
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7581
8002
  },
7582
8003
  deleteEvent: function() {
7583
- const rowId = dynamicData2.path.split(".")[1];
8004
+ const rowId = localStorage.getItem("rowId");
7584
8005
  store2.formData.events.splice(rowId, 1);
7585
8006
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7586
8007
  store2.setFormdata(response2);
8008
+ store2.updateDialog("popUpPageMasterEvent");
8009
+ localStorage.removeItem("rowId");
8010
+ },
8011
+ deletePopUpComponent: function() {
8012
+ const rowId = dynamicData2.path.split(".")[1];
8013
+ localStorage.setItem("rowId", rowId);
8014
+ store2.updateDialog("popUpPageMasterComponent");
8015
+ },
8016
+ deletePopUpEvent: function() {
8017
+ const rowId = dynamicData2.path.split(".")[1];
8018
+ localStorage.setItem("rowId", rowId);
8019
+ store2.updateDialog("popUpPageMasterEvent");
7587
8020
  }
7588
8021
  };
7589
8022
  };
@@ -7673,385 +8106,417 @@ const EventSchema = {
7673
8106
  },
7674
8107
  required: ["eventType", "Handler"]
7675
8108
  };
7676
- const EventUiSchema = (theme) => {
7677
- var _a;
7678
- const uiSchema = {
7679
- type: "HorizontalLayout",
7680
- heading: "Component",
7681
- elements: [
7682
- {
7683
- type: "TabLayout",
7684
- config: {
7685
- main: {
7686
- tabLabels: ["Core", "Response Event"],
7687
- defaultStyle: true,
7688
- id: "event"
8109
+ const EventUiSchema = {
8110
+ type: "HorizontalLayout",
8111
+ elements: [
8112
+ {
8113
+ type: "WrapperLayout",
8114
+ config: {
8115
+ main: {
8116
+ rowSpacing: 1,
8117
+ header: true
8118
+ },
8119
+ defaultStyle: true
8120
+ },
8121
+ elements: [
8122
+ {
8123
+ type: "Control",
8124
+ scope: "#/properties/Component",
8125
+ options: {
8126
+ widget: "Box"
8127
+ },
8128
+ config: {
8129
+ layout: { xs: 12, sm: 12, md: 2 },
8130
+ main: {
8131
+ heading: "Component"
8132
+ },
8133
+ style: {
8134
+ "float": "left"
8135
+ }
7689
8136
  }
7690
8137
  },
7691
- elements: [
7692
- {
7693
- type: "HorizontalLayout",
7694
- elements: [
7695
- {
7696
- type: "Control",
7697
- scope: `#/properties/eventType`,
7698
- options: {
7699
- widget: "SelectInputField"
7700
- },
7701
- config: {
7702
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7703
- main: {
7704
- label: "Event Type",
7705
- type: "text"
7706
- }
7707
- }
8138
+ {
8139
+ type: "Control",
8140
+ scope: "#/properties/pageName",
8141
+ options: {
8142
+ widget: "Box"
8143
+ },
8144
+ config: {
8145
+ layout: { xs: 7, sm: 7, md: 9 },
8146
+ main: {
8147
+ heading: " "
8148
+ },
8149
+ style: {
8150
+ float: "right",
8151
+ width: "auto",
8152
+ fontSize: "12px",
8153
+ color: "gray",
8154
+ paddingTop: "10px"
8155
+ }
8156
+ }
8157
+ },
8158
+ {
8159
+ type: "Control",
8160
+ scope: "#/properties/Back_Button",
8161
+ options: {
8162
+ widget: "IconButton"
8163
+ },
8164
+ config: {
8165
+ layout: { xs: 2, sm: 2, md: 0.5 },
8166
+ main: {
8167
+ icon: "BackIcon",
8168
+ styleDefault: true,
8169
+ size: "small",
8170
+ onClick: "backHandler",
8171
+ tooltipMessage: "Back"
8172
+ },
8173
+ style: {
8174
+ float: "right"
8175
+ }
8176
+ }
8177
+ }
8178
+ ]
8179
+ },
8180
+ {
8181
+ type: "TabLayout",
8182
+ config: {
8183
+ main: {
8184
+ tabLabels: ["Core", "Response Event"],
8185
+ defaultStyle: true,
8186
+ id: "event"
8187
+ }
8188
+ },
8189
+ elements: [
8190
+ {
8191
+ type: "HorizontalLayout",
8192
+ elements: [
8193
+ {
8194
+ type: "Control",
8195
+ scope: `#/properties/eventType`,
8196
+ options: {
8197
+ widget: "SelectInputField"
7708
8198
  },
7709
- {
7710
- type: "Control",
7711
- scope: `#/properties/Handler`,
7712
- options: {
7713
- widget: "SelectInputField"
7714
- },
7715
- config: {
7716
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7717
- main: {
7718
- label: "Handler",
7719
- type: "text"
7720
- }
8199
+ config: {
8200
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8201
+ main: {
8202
+ label: "Event Type",
8203
+ type: "text"
7721
8204
  }
8205
+ }
8206
+ },
8207
+ getSelectField("Handler", "Handler")
8208
+ ]
8209
+ },
8210
+ {
8211
+ type: "WrapperLayout",
8212
+ config: {
8213
+ main: {
8214
+ divider: true
8215
+ },
8216
+ wrapperStyle: {
8217
+ border: "1px solid gray"
8218
+ }
8219
+ },
8220
+ elements: [
8221
+ {
8222
+ type: "Control",
8223
+ scope: "#/properties/heading",
8224
+ options: {
8225
+ widget: "Box"
7722
8226
  },
7723
- {
7724
- type: "Control",
7725
- scope: "#/properties/emptyBox",
7726
- options: {
7727
- widget: "EmptyBox"
8227
+ config: {
8228
+ layout: 8,
8229
+ main: {
8230
+ heading: "Response Event"
7728
8231
  },
7729
- config: {
7730
- layout: { xs: 0, sm: 4 }
8232
+ style: {
8233
+ fontFamily: "Roboto",
8234
+ fontWeight: "500",
8235
+ paddingLeft: "-10px",
8236
+ fontSize: "20px"
7731
8237
  }
7732
8238
  }
7733
- ]
7734
- },
7735
- {
7736
- type: "Control",
7737
- scope: "#/properties/events",
7738
- options: {
7739
- widget: "Table"
7740
8239
  },
7741
- config: {
7742
- main: {
7743
- headerIcons: {
7744
- elements: [
7745
- {
7746
- widget: {
7747
- type: "Control",
7748
- scope: "#/properties/New_Record",
7749
- options: {
7750
- widget: "IconButton"
7751
- },
7752
- config: {
7753
- main: {
7754
- onClick: "addEvent",
7755
- size: "small",
7756
- icon: "AddIcon",
7757
- iconLabel: "Add New",
7758
- styleDefault: true
7759
- },
7760
- style: {
7761
- mt: "6px"
7762
- }
7763
- }
7764
- }
7765
- }
7766
- ]
8240
+ {
8241
+ type: "Control",
8242
+ scope: "#/properties/AddButton",
8243
+ options: {
8244
+ widget: "IconButton"
8245
+ },
8246
+ config: {
8247
+ layout: 3,
8248
+ main: {
8249
+ icon: "AddIcon",
8250
+ styleDefault: true,
8251
+ size: "small",
8252
+ onClick: "addEvent",
8253
+ tooltipMessage: "Back"
7767
8254
  },
7768
- disableAction: true,
7769
- disableSelection: true,
7770
- enableDrag: true
8255
+ style: {
8256
+ float: "right"
8257
+ }
7771
8258
  }
7772
8259
  },
7773
- elements: [
7774
- {
7775
- accessorKey: "eventType",
7776
- header: "Event Type"
8260
+ {
8261
+ type: "Control",
8262
+ scope: "#/properties/events",
8263
+ options: {
8264
+ widget: "Table"
7777
8265
  },
7778
- {
7779
- accessorKey: "Handler",
7780
- header: "Handler"
8266
+ config: {
8267
+ main: {
8268
+ disableAction: true,
8269
+ disableSelection: true,
8270
+ enableDrag: true
8271
+ }
7781
8272
  },
7782
- {
7783
- accessorKey: "Edit_Approve_Records",
7784
- header: "Edit Widget",
7785
- widget: {
7786
- type: "Control",
7787
- scope: "#/properties/Edit_Records",
7788
- options: {
7789
- widget: "IconButton"
7790
- },
7791
- config: {
7792
- main: {
7793
- size: "small",
7794
- icon: "EditIcon",
7795
- tooltipMessage: "Edit This Record",
7796
- onClick: "editEvent"
8273
+ elements: [
8274
+ {
8275
+ accessorKey: "eventType",
8276
+ header: "Event Type"
8277
+ },
8278
+ {
8279
+ accessorKey: "Handler",
8280
+ header: "Handler"
8281
+ },
8282
+ {
8283
+ accessorKey: "Edit_Approve_Records",
8284
+ header: "Edit Widget",
8285
+ widget: {
8286
+ type: "Control",
8287
+ scope: "#/properties/Edit_Records",
8288
+ options: {
8289
+ widget: "IconButton"
7797
8290
  },
7798
- style: {
7799
- color: "#3949ab"
8291
+ config: {
8292
+ main: {
8293
+ color: "info",
8294
+ size: "small",
8295
+ icon: "EditIcon",
8296
+ tooltipMessage: "Edit This Record",
8297
+ onClick: "editEvent"
8298
+ },
8299
+ style: {
8300
+ color: "#3949ab"
8301
+ }
7800
8302
  }
7801
8303
  }
7802
- }
7803
- },
7804
- {
7805
- accessorKey: "Reject_Records",
7806
- header: "Delete",
7807
- widget: {
7808
- type: "Control",
7809
- scope: "#/properties/RejectButton",
7810
- options: {
7811
- widget: "IconButton"
7812
- },
7813
- config: {
7814
- main: {
7815
- icon: "RejectIcon",
7816
- color: "error",
7817
- tooltipMessage: "Reject This Record",
7818
- onClick: "deleteEvent"
8304
+ },
8305
+ {
8306
+ accessorKey: "Reject_Records",
8307
+ header: "Delete",
8308
+ widget: {
8309
+ type: "Control",
8310
+ scope: "#/properties/RejectButton",
8311
+ options: {
8312
+ widget: "IconButton"
8313
+ },
8314
+ config: {
8315
+ main: {
8316
+ icon: "RejectIcon",
8317
+ color: "error",
8318
+ tooltipMessage: "Reject This Record",
8319
+ onClick: "deletePopUpEvent"
8320
+ }
7819
8321
  }
7820
8322
  }
7821
8323
  }
7822
- }
7823
- ]
7824
- }
7825
- ]
7826
- },
7827
- {
7828
- type: "Control",
7829
- scope: "#/properties/EmptyBox",
7830
- options: {
7831
- widget: "EmptyBox"
7832
- },
7833
- config: {
7834
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8324
+ ]
8325
+ }
8326
+ ]
7835
8327
  }
8328
+ ]
8329
+ },
8330
+ {
8331
+ type: "Control",
8332
+ scope: "#/properties/popUpEvent",
8333
+ options: {
8334
+ widget: "PopUp"
7836
8335
  },
7837
- {
7838
- type: "Control",
7839
- scope: "#/properties/EmptyBox",
7840
- options: {
7841
- widget: "EmptyBox"
8336
+ config: {
8337
+ layout: {
8338
+ xs: 12,
8339
+ sm: 12,
8340
+ md: 12,
8341
+ lg: 12
7842
8342
  },
7843
- config: {
7844
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7845
- }
8343
+ main: {}
7846
8344
  },
7847
- {
7848
- type: "Control",
7849
- scope: "#/properties/btn",
7850
- options: {
7851
- widget: "Button"
7852
- },
7853
- config: {
7854
- layout: 1.8,
7855
- main: {
7856
- name: "Ok",
7857
- startIcon: "ApproveIcon",
7858
- variant: "contained",
7859
- type: "text",
7860
- onClick: "okHandler",
7861
- size: "medium"
8345
+ elements: [
8346
+ {
8347
+ type: "Control",
8348
+ scope: "#/properties/label",
8349
+ options: {
8350
+ widget: "Box"
7862
8351
  },
7863
- style: {
7864
- float: "right"
8352
+ config: {
8353
+ layout: 12,
8354
+ main: {
8355
+ heading: "Are you sure you want to delete ?"
8356
+ },
8357
+ style: {
8358
+ marginTop: "-40px"
8359
+ }
7865
8360
  }
7866
- }
7867
- },
7868
- {
7869
- type: "Control",
7870
- scope: "#/properties/btnSubmit",
7871
- options: {
7872
- widget: "Button"
7873
8361
  },
7874
- config: {
7875
- layout: 1.8,
7876
- main: {
7877
- name: "Save & Exit",
7878
- startIcon: "ApproveIcon",
7879
- variant: "contained",
7880
- type: "text",
7881
- onClick: "saveHandler",
7882
- size: "medium"
8362
+ {
8363
+ type: "Control",
8364
+ scope: "#/properties/EmptyBox",
8365
+ options: {
8366
+ widget: "EmptyBox"
7883
8367
  },
7884
- style: {
7885
- float: "right"
8368
+ config: {
8369
+ main: {},
8370
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
7886
8371
  }
7887
- }
7888
- },
7889
- {
7890
- type: "Control",
7891
- scope: "#/properties/notify",
7892
- options: {
7893
- widget: "Notify"
7894
8372
  },
7895
- layout: 6
7896
- },
7897
- {
7898
- type: "HorizontalLayout",
7899
- config: {
7900
- style: {
7901
- position: "fixed",
7902
- bottom: 5,
7903
- overflow: "visible",
7904
- margin: "0",
7905
- width: "100vw"
8373
+ {
8374
+ type: "Control",
8375
+ scope: "#/properties/ConfirmDeleteEventButton",
8376
+ options: {
8377
+ widget: "Button"
8378
+ },
8379
+ config: {
8380
+ layout: 3,
8381
+ main: {
8382
+ name: "Yes",
8383
+ startIcon: "ApproveIcon",
8384
+ variant: "contained",
8385
+ color: "info",
8386
+ type: "text",
8387
+ onClick: "deleteEvent",
8388
+ size: "small"
8389
+ }
7906
8390
  }
7907
8391
  },
7908
- elements: [
7909
- {
7910
- type: "Control",
7911
- scope: "#/properties/EmptyBox",
7912
- options: {
7913
- widget: "EmptyBox"
7914
- },
7915
- config: {
7916
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7917
- }
8392
+ {
8393
+ type: "Control",
8394
+ scope: "#/properties/CancelDeleteEventButton",
8395
+ options: {
8396
+ widget: "Button"
7918
8397
  },
7919
- {
7920
- type: "Control",
7921
- scope: "#/properties/FooterText",
7922
- options: {
7923
- widget: "Box"
7924
- },
7925
- config: {
7926
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7927
- main: {
7928
- heading: "Copywriter@ACT21.IO"
7929
- },
7930
- style: {
7931
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
7932
- fontSize: "12px"
7933
- }
8398
+ config: {
8399
+ layout: 3,
8400
+ main: {
8401
+ name: "No",
8402
+ startIcon: "ApproveIcon",
8403
+ variant: "contained",
8404
+ color: "info",
8405
+ type: "text",
8406
+ onClick: "deletePopUpEvent",
8407
+ size: "small"
7934
8408
  }
7935
- },
7936
- {
7937
- type: "HorizontalLayout",
7938
- config: {
7939
- layout: { xs: 11, sm: 4, md: 4, lg: 4 }
7940
- },
7941
- elements: [
7942
- {
7943
- type: "Control",
7944
- scope: "#/properties/EmptyBox",
7945
- options: {
7946
- widget: "EmptyBox"
7947
- },
7948
- config: {
7949
- layout: 2
7950
- }
7951
- },
7952
- {
7953
- type: "Control",
7954
- scope: "#/properties/backIcon",
7955
- options: {
7956
- widget: "Box"
7957
- },
7958
- config: {
7959
- layout: 1,
7960
- main: {
7961
- iconName: "PrevIcon",
7962
- onClick: "backHandler"
7963
- },
7964
- style: {
7965
- fill: theme.palette.primary.dark,
7966
- width: 20,
7967
- height: 20,
7968
- display: "flex",
7969
- alignItems: "center",
7970
- justifyContent: "center",
7971
- marginRight: "-8px",
7972
- cursor: "pointer"
7973
- }
7974
- }
7975
- },
7976
- {
7977
- type: "Control",
7978
- scope: "#/properties/text",
7979
- options: {
7980
- widget: "Box"
7981
- },
7982
- config: {
7983
- layout: 9,
7984
- main: {
7985
- heading: "Previous Page",
7986
- onClick: "backHandler"
7987
- },
7988
- style: {
7989
- color: theme.palette.primary.dark,
7990
- fontSize: "12px",
7991
- cursor: "pointer",
7992
- marginLeft: "-6px"
7993
- }
7994
- }
7995
- }
7996
- ]
7997
8409
  }
7998
- ]
8410
+ }
8411
+ ]
8412
+ },
8413
+ {
8414
+ type: "Control",
8415
+ scope: "#/properties/proc",
8416
+ config: {
8417
+ layout: { xs: 11, sm: 11, md: 6, lg: 6 }
8418
+ },
8419
+ options: {
8420
+ widget: "EmptyBox"
7999
8421
  }
8000
- ]
8001
- };
8002
- return uiSchema;
8003
- };
8004
- const APISection = {
8005
- type: "HorizontalLayout",
8006
- elements: [
8422
+ },
8007
8423
  {
8008
8424
  type: "Control",
8009
- scope: "#/properties/method",
8425
+ scope: "#/properties/btn",
8010
8426
  options: {
8011
- widget: "SelectInputField"
8427
+ widget: "Button"
8012
8428
  },
8013
8429
  config: {
8014
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8430
+ layout: {
8431
+ xs: 11,
8432
+ sm: 11,
8433
+ md: 2.5,
8434
+ lg: 2.5
8435
+ },
8015
8436
  main: {
8016
- label: "Method",
8017
- type: "text"
8437
+ name: "Ok",
8438
+ startIcon: "ApproveIcon",
8439
+ variant: "contained",
8440
+ color: "info",
8441
+ type: "text",
8442
+ onClick: "okHandler",
8443
+ size: "small"
8444
+ },
8445
+ style: {
8446
+ marginBottom: "8px",
8447
+ float: "right"
8018
8448
  }
8019
8449
  }
8020
8450
  },
8021
8451
  {
8022
8452
  type: "Control",
8023
- scope: "#/properties/path",
8453
+ scope: "#/properties/btnSubmit",
8024
8454
  options: {
8025
- widget: "InputField"
8455
+ widget: "Button"
8026
8456
  },
8027
8457
  config: {
8028
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8458
+ layout: {
8459
+ xs: 11,
8460
+ sm: 11,
8461
+ md: 2.5,
8462
+ lg: 2.5
8463
+ },
8029
8464
  main: {
8030
- label: "Path",
8465
+ name: "Save & Exit",
8466
+ startIcon: "ApproveIcon",
8467
+ variant: "contained",
8468
+ color: "info",
8031
8469
  type: "text",
8032
- multiple: false,
8033
- options: []
8470
+ onClick: "saveHandler",
8471
+ size: "small"
8472
+ },
8473
+ style: {
8474
+ marginBottom: "8px",
8475
+ float: "right"
8034
8476
  }
8035
8477
  }
8036
8478
  },
8037
8479
  {
8038
8480
  type: "Control",
8039
- scope: "#/properties/emptyBox",
8481
+ scope: "#/properties/notify",
8040
8482
  options: {
8041
- widget: "EmptyBox"
8483
+ widget: "Notify"
8484
+ },
8485
+ layout: 6
8486
+ }
8487
+ ]
8488
+ };
8489
+ const APISection = {
8490
+ type: "HorizontalLayout",
8491
+ elements: [
8492
+ {
8493
+ type: "Control",
8494
+ scope: "#/properties/method",
8495
+ options: {
8496
+ widget: "SelectInputField"
8042
8497
  },
8043
8498
  config: {
8044
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8499
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8500
+ main: {
8501
+ label: "Method",
8502
+ type: "text"
8503
+ }
8045
8504
  }
8046
8505
  },
8047
8506
  {
8048
8507
  type: "Control",
8049
- scope: "#/properties/emptyBox",
8508
+ scope: "#/properties/path",
8050
8509
  options: {
8051
- widget: "EmptyBox"
8510
+ widget: "InputField"
8052
8511
  },
8053
8512
  config: {
8054
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8513
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8514
+ main: {
8515
+ label: "Path",
8516
+ type: "text",
8517
+ multiple: false,
8518
+ options: []
8519
+ }
8055
8520
  }
8056
8521
  },
8057
8522
  {
@@ -8070,7 +8535,12 @@ const APISection = {
8070
8535
  widget: "InputField"
8071
8536
  },
8072
8537
  config: {
8073
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8538
+ layout: {
8539
+ xs: 11,
8540
+ sm: 11,
8541
+ md: 5.5,
8542
+ lg: 5.5
8543
+ },
8074
8544
  main: {
8075
8545
  label: "Key"
8076
8546
  }
@@ -8083,21 +8553,16 @@ const APISection = {
8083
8553
  widget: "InputField"
8084
8554
  },
8085
8555
  config: {
8086
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8556
+ layout: {
8557
+ xs: 11,
8558
+ sm: 11,
8559
+ md: 5.5,
8560
+ lg: 5.5
8561
+ },
8087
8562
  main: {
8088
8563
  label: "Value"
8089
8564
  }
8090
8565
  }
8091
- },
8092
- {
8093
- type: "Control",
8094
- scope: "#/properties/emptyBox",
8095
- options: {
8096
- widget: "EmptyBox"
8097
- },
8098
- config: {
8099
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8100
- }
8101
8566
  }
8102
8567
  ]
8103
8568
  }
@@ -8119,7 +8584,12 @@ const APISection = {
8119
8584
  widget: "InputField"
8120
8585
  },
8121
8586
  config: {
8122
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8587
+ layout: {
8588
+ xs: 11,
8589
+ sm: 11,
8590
+ md: 5.5,
8591
+ lg: 5.5
8592
+ },
8123
8593
  main: {
8124
8594
  label: "Key"
8125
8595
  }
@@ -8132,21 +8602,16 @@ const APISection = {
8132
8602
  widget: "InputField"
8133
8603
  },
8134
8604
  config: {
8135
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8605
+ layout: {
8606
+ xs: 11,
8607
+ sm: 11,
8608
+ md: 5.5,
8609
+ lg: 5.5
8610
+ },
8136
8611
  main: {
8137
8612
  label: "Value"
8138
8613
  }
8139
8614
  }
8140
- },
8141
- {
8142
- type: "Control",
8143
- scope: "#/properties/emptyBox",
8144
- options: {
8145
- widget: "EmptyBox"
8146
- },
8147
- config: {
8148
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8149
- }
8150
8615
  }
8151
8616
  ]
8152
8617
  }
@@ -8173,7 +8638,12 @@ const refreshSectionUiSchema = {
8173
8638
  widget: "InputField"
8174
8639
  },
8175
8640
  config: {
8176
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8641
+ layout: {
8642
+ xs: 11,
8643
+ sm: 11,
8644
+ md: 5.5,
8645
+ lg: 5.5
8646
+ },
8177
8647
  main: {
8178
8648
  label: "Value"
8179
8649
  }
@@ -8186,7 +8656,12 @@ const refreshSectionUiSchema = {
8186
8656
  widget: "EmptyBox"
8187
8657
  },
8188
8658
  config: {
8189
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8659
+ layout: {
8660
+ xs: 11,
8661
+ sm: 11,
8662
+ md: 5.5,
8663
+ lg: 5.5
8664
+ },
8190
8665
  main: {}
8191
8666
  }
8192
8667
  }
@@ -8206,21 +8681,21 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8206
8681
  this.refreshPage(formdata.Handler, store2);
8207
8682
  },
8208
8683
  refreshPage: (handlerType, store22) => {
8209
- const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
8684
+ const uiSchema = _.cloneDeep(EventUiSchema);
8210
8685
  const schema2 = _.cloneDeep(EventSchema);
8211
8686
  if (handlerType) {
8212
8687
  if (handlerType === "custom") {
8213
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8688
+ uiSchema.elements[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false);
8214
8689
  schema2.required = ["eventType", "Handler", "eventCode"];
8215
8690
  } else if (handlerType === "api") {
8216
- uiSchema.elements[0].elements[0].elements[3] = APISection;
8691
+ uiSchema.elements[1].elements[0].elements[2] = APISection;
8217
8692
  schema2.required = ["eventType", "Handler", "method", "path"];
8218
8693
  } else if (handlerType === "inBuiltFunction") {
8219
- uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8220
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
8694
+ uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8695
+ uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
8221
8696
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8222
8697
  } else if (handlerType === "refresh") {
8223
- uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8698
+ uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
8224
8699
  schema2.properties.refreshElements.required = ["value"];
8225
8700
  schema2.properties.refreshElements.items.required = ["value"];
8226
8701
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -8230,8 +8705,8 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8230
8705
  store22.setUiSchema(uiSchema);
8231
8706
  },
8232
8707
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8233
- getUiSchema: async function() {
8234
- return await EventUiSchema(store2.theme.myTheme);
8708
+ getUiSchema: function() {
8709
+ return EventUiSchema;
8235
8710
  },
8236
8711
  getSchema: () => {
8237
8712
  return EventSchema;
@@ -8266,9 +8741,17 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8266
8741
  store2.setSearchParams(store2.searchParams);
8267
8742
  this.setPage();
8268
8743
  },
8269
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8744
+ deleteEvent: async function() {
8745
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8746
+ store2.updateDialog("popUpEvent");
8747
+ },
8270
8748
  backHandler: function() {
8271
8749
  store2.navigate(-1);
8750
+ },
8751
+ deletePopUpEvent: function() {
8752
+ const rowId = dynamicData2.path.split(".")[1];
8753
+ localStorage.setItem("rowId", rowId);
8754
+ store2.updateDialog("popUpEvent");
8272
8755
  }
8273
8756
  };
8274
8757
  };
@@ -8595,6 +9078,12 @@ var service = (funcParams) => {
8595
9078
  );
8596
9079
  funcParams.uiSchema.elements.push(notifyUiSchema);
8597
9080
  funcParams.store.setUiSchema(funcParams.uiSchema);
9081
+ const simulateDelay = async (time) => {
9082
+ return new Promise((resolve) => {
9083
+ return setTimeout(resolve, time);
9084
+ });
9085
+ };
9086
+ await simulateDelay(3e3);
8598
9087
  await executeRefreshHandler({
8599
9088
  config: {},
8600
9089
  componentName: "",
@@ -8693,9 +9182,6 @@ var service = (funcParams) => {
8693
9182
  functionParameters == null ? void 0 : functionParameters.handleNext();
8694
9183
  }
8695
9184
  },
8696
- backHandler: () => {
8697
- funcParams.store.navigate(-1);
8698
- },
8699
9185
  onReset: async function(functionParameters) {
8700
9186
  var _a, _b;
8701
9187
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
@@ -9175,7 +9661,7 @@ const BarGraph = {
9175
9661
  style: {
9176
9662
  containerStyle: {
9177
9663
  width: "100%",
9178
- height: "450"
9664
+ height: 300
9179
9665
  },
9180
9666
  headerStyle: {},
9181
9667
  tooltipStyle: {},
@@ -9473,6 +9959,9 @@ const buildStackbarGraph = (config, componentScope) => {
9473
9959
  if (config.barColor) {
9474
9960
  barGraph.config.barStyle.color = config.barColor;
9475
9961
  }
9962
+ if (config.containerBackground) {
9963
+ barGraph.config.containerStyle.background = config.containerBackground;
9964
+ }
9476
9965
  if (config.height) {
9477
9966
  barGraph.config.style.containerStyle.height = config.height;
9478
9967
  }
@@ -9482,6 +9971,7 @@ const buildStackbarGraph = (config, componentScope) => {
9482
9971
  if (config.leftLabel) {
9483
9972
  barGraph.config.main.leftLabel = config.leftLabel;
9484
9973
  }
9974
+ barGraph.scope = componentScope;
9485
9975
  return barGraph;
9486
9976
  };
9487
9977
  var RunnerBoyProgressBar = {
@@ -9535,10 +10025,8 @@ var WrapperSection = {
9535
10025
  };
9536
10026
  const buildWrapperSection = (config, componentScope) => {
9537
10027
  const wrapper = _.cloneDeep(WrapperSection);
9538
- wrapper.scope = componentScope;
9539
10028
  wrapper.config.main.label = config.label;
9540
10029
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9541
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
9542
10030
  if (config.style) {
9543
10031
  wrapper.config.style = JSON.parse(config.style);
9544
10032
  }
@@ -9554,7 +10042,12 @@ var TextInputField = {
9554
10042
  widget: "InputField"
9555
10043
  },
9556
10044
  config: {
9557
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10045
+ layout: {
10046
+ xs: 11,
10047
+ sm: 11,
10048
+ md: 5.5,
10049
+ lg: 5.5
10050
+ },
9558
10051
  main: {
9559
10052
  label: ""
9560
10053
  },
@@ -9587,7 +10080,12 @@ var SelectInputField = {
9587
10080
  widget: "SelectInputField"
9588
10081
  },
9589
10082
  config: {
9590
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10083
+ "layout": {
10084
+ "xs": 11,
10085
+ "sm": 11,
10086
+ "md": 5.5,
10087
+ "lg": 5.5
10088
+ },
9591
10089
  main: {
9592
10090
  label: "",
9593
10091
  type: "text",
@@ -9876,14 +10374,16 @@ var Card = {
9876
10374
  main: {
9877
10375
  rowSpacing: 0.5
9878
10376
  },
9879
- componentsBoxStyle: {
9880
- position: "relative",
9881
- color: "white",
9882
- height: { xs: "120px", md: "160px" },
9883
- width: "100%",
9884
- textAlign: "left",
9885
- background: "#3f51b5",
9886
- borderRadius: "20px"
10377
+ style: {
10378
+ wrapperStyle: {
10379
+ position: "relative",
10380
+ color: "white",
10381
+ height: { xs: "120px", md: "160px" },
10382
+ width: "100%",
10383
+ textAlign: "left",
10384
+ background: "#3f51b5",
10385
+ borderRadius: "20px"
10386
+ }
9887
10387
  },
9888
10388
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
9889
10389
  },
@@ -9995,7 +10495,12 @@ var DateInputField = {
9995
10495
  widget: "DateInputField"
9996
10496
  },
9997
10497
  config: {
9998
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10498
+ layout: {
10499
+ xs: 11,
10500
+ sm: 11,
10501
+ md: 5.5,
10502
+ lg: 5.5
10503
+ },
9999
10504
  main: {
10000
10505
  label: "",
10001
10506
  type: "date"
@@ -10112,7 +10617,7 @@ var MultipleSelect = {
10112
10617
  widget: "MultipleSelect"
10113
10618
  },
10114
10619
  config: {
10115
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10620
+ layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10116
10621
  main: {
10117
10622
  label: "",
10118
10623
  type: "text",
@@ -10143,7 +10648,6 @@ const buildBasicUiSchema = (config) => {
10143
10648
  return {
10144
10649
  "type": "HorizontalLayout",
10145
10650
  pageName: `${config.name}`,
10146
- heading: `${config.label}`,
10147
10651
  "elements": []
10148
10652
  };
10149
10653
  };
@@ -10300,7 +10804,7 @@ var emptyBox = {
10300
10804
  widget: "EmptyBox"
10301
10805
  },
10302
10806
  config: {
10303
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
10807
+ layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
10304
10808
  main: {},
10305
10809
  style: {}
10306
10810
  }
@@ -10679,7 +11183,7 @@ const buildUiSchema = (config) => {
10679
11183
  elements = RunnerBoyProgressbar(config, componentScope);
10680
11184
  break;
10681
11185
  case "WrapperSection":
10682
- elements = buildWrapperSection(config, componentScope);
11186
+ elements = buildWrapperSection(config);
10683
11187
  break;
10684
11188
  case "Text":
10685
11189
  elements = buildTextField(config, componentScope);
@@ -10730,7 +11234,7 @@ const buildUiSchema = (config) => {
10730
11234
  switch (config.graphType) {
10731
11235
  case "BarGraph":
10732
11236
  case "StackBarGraph":
10733
- elements = buildStackbarGraph(config);
11237
+ elements = buildStackbarGraph(config, componentScope);
10734
11238
  break;
10735
11239
  case "LineGraph":
10736
11240
  elements = buildLineGraph(config, componentScope);