impaktapps-ui-builder 0.0.382-alpha.553 → 0.0.382-alpha.57

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 (46) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1231 -1821
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -18
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -115
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -4
  15. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -3
  16. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +1 -3
  17. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
  18. package/package.json +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -0
  20. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +30 -26
  21. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +30 -21
  22. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -6
  23. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +3 -1
  24. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  25. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +30 -49
  26. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +9 -10
  27. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -36
  28. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
  29. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  30. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +99 -125
  31. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +108 -110
  32. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  33. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +2 -12
  34. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  35. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +84 -58
  36. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  37. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  38. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +448 -440
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +456 -515
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +520 -367
  42. package/src/impaktapps-ui-builder/builder/services/component.ts +7 -25
  43. package/src/impaktapps-ui-builder/builder/services/event.ts +9 -17
  44. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +3 -19
  45. package/src/impaktapps-ui-builder/runtime/services/events.ts +4 -0
  46. package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -14
@@ -36,555 +36,396 @@ const PageMasterSchema = {
36
36
  },
37
37
  required: ["label", "name"]
38
38
  };
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"
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
57
51
  },
58
- config: {
59
- layout: 8,
60
- main: {
61
- heading: "Page Master"
62
- }
63
- }
52
+ defaultStyle: true
64
53
  },
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"
54
+ elements: [
55
+ {
56
+ type: "Control",
57
+ scope: "#/properties/name",
58
+ options: {
59
+ widget: "InputField"
79
60
  },
80
- style: {
81
- float: "right"
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
+ }
82
71
  }
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"
102
72
  },
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
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
+ }
112
87
  }
113
- }
114
- },
115
- {
116
- type: "Control",
117
- scope: "#/properties/label",
118
- options: {
119
- widget: "InputField"
120
88
  },
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
89
+ {
90
+ type: "Control",
91
+ scope: "#/properties/emptyBox",
92
+ options: {
93
+ widget: "EmptyBox"
148
94
  },
149
- wrapperStyle: {
150
- border: "1px solid gray"
95
+ config: {
96
+ layout: { xs: 0, sm: 4 }
151
97
  }
152
98
  },
153
- elements: [
154
- {
155
- type: "Control",
156
- scope: "#/properties/heading",
157
- options: {
158
- widget: "Box"
159
- },
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
- }
172
- },
173
- {
174
- type: "Control",
175
- scope: "#/properties/AddButton",
176
- options: {
177
- widget: "IconButton"
99
+ {
100
+ type: "TabLayout",
101
+ config: {
102
+ main: {
103
+ tabLabels: ["Components", "events"],
104
+ divider: true
178
105
  },
179
- config: {
180
- layout: 3,
181
- main: {
182
- icon: "AddIcon",
183
- styleDefault: true,
184
- size: "small",
185
- onClick: "onAddClickHandler",
186
- tooltipMessage: "Add New"
187
- },
188
- style: {
189
- float: "right"
190
- }
191
- }
106
+ defaultStyle: true
192
107
  },
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"
210
- },
211
- {
212
- accessorKey: "type",
213
- header: "Type"
108
+ elements: [
109
+ {
110
+ type: "Control",
111
+ scope: "#/properties/elements",
112
+ options: {
113
+ widget: "Table"
214
114
  },
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"
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
+ ]
224
141
  },
225
- config: {
226
- main: {
227
- icon: "EditIcon",
228
- color: "primary",
229
- onClick: "Edit_Components",
230
- tooltipMessage: "Edit This Record"
231
- }
232
- }
142
+ disableAction: true,
143
+ disableSelection: true,
144
+ enableDrag: true
233
145
  }
234
146
  },
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"
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
+ }
172
+ }
173
+ }
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
+ }
251
192
  }
252
193
  }
253
194
  }
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"
275
- },
276
- config: {
277
- layout: 8,
278
- main: {
279
- heading: "Event Table"
280
- },
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"
195
+ ]
294
196
  },
295
- config: {
296
- layout: 3,
297
- main: {
298
- icon: "AddIcon",
299
- styleDefault: true,
300
- size: "small",
301
- onClick: "eventAddHandler",
302
- tooltipMessage: "Back"
303
- },
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"
197
+ {
198
+ type: "Control",
199
+ scope: "#/properties/events",
200
+ options: {
201
+ widget: "Table"
330
202
  },
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"
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
+ ]
339
229
  },
340
- config: {
341
- main: {
342
- color: "info",
343
- size: "small",
344
- icon: "EditIcon",
345
- tooltipMessage: "Edit This Record",
346
- onClick: "editEvent"
230
+ disableAction: true,
231
+ disableSelection: true,
232
+ enableDrag: true
233
+ }
234
+ },
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"
347
252
  },
348
- style: {
349
- color: "#3949ab"
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
+ }
350
263
  }
351
264
  }
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"
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
+ }
369
282
  }
370
283
  }
371
284
  }
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"
285
+ ]
286
+ }
287
+ ]
400
288
  },
401
- config: {
402
- layout: 12,
403
- main: {
404
- heading: "Are you sure you want to delete ?"
289
+ {
290
+ type: "Control",
291
+ scope: "#/properties/btn",
292
+ options: {
293
+ widget: "Button"
405
294
  },
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"
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
+ }
457
309
  }
458
310
  }
459
- }
460
- ]
461
- },
462
- {
463
- type: "Control",
464
- scope: "#/properties/popUpPageMasterComponent",
465
- options: {
466
- widget: "PopUp"
311
+ ]
467
312
  },
468
- config: {
469
- layout: {
470
- xs: 12,
471
- sm: 12,
472
- md: 12,
473
- lg: 12
313
+ {
314
+ type: "Control",
315
+ scope: "#/properties/notify",
316
+ options: {
317
+ widget: "Notify"
474
318
  },
475
- main: {}
319
+ layout: 6
476
320
  },
477
- elements: [
478
- {
479
- type: "Control",
480
- scope: "#/properties/label",
481
- options: {
482
- widget: "Box"
483
- },
484
- config: {
485
- layout: 12,
486
- main: {
487
- heading: "Are you sure you want to delete ?"
488
- },
489
- style: {
490
- marginTop: "-40px"
491
- }
492
- }
493
- },
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 }
321
+ {
322
+ type: "HorizontalLayout",
323
+ config: {
324
+ layout: 12,
325
+ style: {
326
+ position: "absolute",
327
+ bottom: 5,
328
+ overflow: "hidden"
503
329
  }
504
330
  },
505
- {
506
- type: "Control",
507
- scope: "#/properties/ConfirmDeleteCompButton",
508
- options: {
509
- widget: "Button"
510
- },
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"
331
+ elements: [
332
+ {
333
+ type: "Control",
334
+ scope: "#/properties/FooterText",
335
+ options: {
336
+ widget: "Box"
337
+ },
338
+ config: {
339
+ layout: 9.5,
340
+ main: {
341
+ heading: "Copywriter@ACT21.IO"
342
+ },
343
+ style: {
344
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
345
+ fontSize: "12px",
346
+ textAlign: "center"
347
+ }
521
348
  }
522
- }
523
- },
524
- {
525
- type: "Control",
526
- scope: "#/properties/CancelDeleteCompButton",
527
- options: {
528
- widget: "Button"
529
349
  },
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
- }
350
+ {
351
+ type: "HorizontalLayout",
352
+ config: {
353
+ layout: 2.5,
354
+ style: {}
355
+ },
356
+ elements: [
357
+ {
358
+ type: "Control",
359
+ scope: "#/properties/EmptyBox",
360
+ options: {
361
+ widget: "EmptyBox"
362
+ },
363
+ config: {
364
+ layout: 6,
365
+ style: {
366
+ flexGrow: 1
367
+ }
368
+ }
369
+ },
370
+ {
371
+ type: "Control",
372
+ scope: "#/properties/backIcon",
373
+ options: {
374
+ widget: "Box"
375
+ },
376
+ config: {
377
+ layout: 1,
378
+ main: {
379
+ iconName: "PrevIcon",
380
+ onClick: "backHandler"
381
+ },
382
+ style: {
383
+ fill: theme.palette.primary.main,
384
+ width: 20,
385
+ height: 20,
386
+ display: "flex",
387
+ alignItems: "center",
388
+ justifyContent: "center",
389
+ marginRight: "-8px",
390
+ cursor: "pointer",
391
+ ":hover": {
392
+ fill: theme.palette.primary.dark
393
+ }
394
+ }
395
+ }
396
+ },
397
+ {
398
+ type: "Control",
399
+ scope: "#/properties/text",
400
+ options: {
401
+ widget: "Box"
402
+ },
403
+ config: {
404
+ layout: 5,
405
+ main: {
406
+ heading: "Previous Page",
407
+ onClick: "backHandler"
408
+ },
409
+ style: {
410
+ width: "fit-content",
411
+ color: theme.palette.primary.main,
412
+ fontSize: "12px",
413
+ cursor: "pointer",
414
+ marginLeft: "2px",
415
+ marginRight: 0,
416
+ ":hover": {
417
+ color: theme.palette.primary.dark
418
+ }
419
+ }
420
+ }
421
+ }
422
+ ]
541
423
  }
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 }
553
- }
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
- }
424
+ ]
577
425
  }
578
- },
579
- {
580
- type: "Control",
581
- scope: "#/properties/notify",
582
- options: {
583
- widget: "Notify"
584
- },
585
- layout: 6
586
- }
587
- ]
426
+ ]
427
+ };
428
+ return uiSchema;
588
429
  };
589
430
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
590
431
  var lodash = { exports: {} };
@@ -6318,451 +6159,303 @@ const ComponentSchema = {
6318
6159
  },
6319
6160
  required: ["name"]
6320
6161
  };
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
- }
6348
- }
6349
- },
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
- }
6162
+ const componentBasicUiSchema = (theme) => {
6163
+ var _a;
6164
+ const uiSchema = {
6165
+ type: "HorizontalLayout",
6166
+ heading: "Component",
6167
+ elements: [
6168
+ {
6169
+ type: "TabLayout",
6170
+ config: {
6171
+ main: {
6172
+ tabLabels: ["Core"],
6173
+ defaultStyle: true,
6174
+ id: `component`
6368
6175
  }
6369
6176
  },
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"
6177
+ elements: [
6178
+ {
6179
+ type: "HorizontalLayout",
6180
+ elements: [
6181
+ {
6182
+ type: "Control",
6183
+ scope: "#/properties/type",
6184
+ options: {
6185
+ widget: "SelectInputField"
6186
+ },
6187
+ config: {
6188
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6189
+ main: {
6190
+ label: "Type"
6191
+ }
6415
6192
  }
6416
- }
6417
- },
6418
- {
6419
- type: "Control",
6420
- scope: "#/properties/name",
6421
- options: {
6422
- widget: "InputField"
6423
6193
  },
6424
- config: {
6425
- layout: {
6426
- xs: 12,
6427
- sm: 12,
6428
- md: 6,
6429
- lg: 6
6194
+ {
6195
+ type: "Control",
6196
+ scope: "#/properties/name",
6197
+ options: {
6198
+ widget: "InputField"
6430
6199
  },
6431
- main: {
6432
- label: "Name",
6433
- options: [],
6434
- color: "secondary",
6435
- required: true
6200
+ config: {
6201
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6202
+ main: {
6203
+ label: "Name",
6204
+ options: [],
6205
+ color: "secondary",
6206
+ required: true
6207
+ }
6436
6208
  }
6437
- }
6438
- },
6439
- {
6440
- type: "Control",
6441
- scope: "#/properties/label",
6442
- options: {
6443
- widget: "InputField"
6444
6209
  },
6445
- config: {
6446
- layout: {
6447
- xs: 12,
6448
- sm: 12,
6449
- md: 6,
6450
- lg: 6
6210
+ {
6211
+ type: "Control",
6212
+ scope: "#/properties/label",
6213
+ options: {
6214
+ widget: "InputField"
6451
6215
  },
6452
- main: {
6453
- label: "Label",
6454
- options: [],
6455
- color: "secondary",
6456
- required: true
6216
+ config: {
6217
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6218
+ main: {
6219
+ label: "Label",
6220
+ options: [],
6221
+ color: "secondary",
6222
+ required: true
6223
+ }
6457
6224
  }
6458
- }
6459
- },
6460
- {
6461
- type: "Control",
6462
- scope: "#/properties/proc",
6463
- config: {
6464
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6465
6225
  },
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"
6226
+ {
6227
+ type: "Control",
6228
+ scope: "#/properties/layout",
6229
+ layout: 12,
6230
+ options: {
6231
+ detail: {
6232
+ type: "HorizontalLayout",
6233
+ elements: [
6234
+ {
6235
+ type: "Control",
6236
+ scope: "#/properties/key",
6237
+ options: {
6238
+ widget: "SelectInputField"
6239
+ },
6240
+ config: {
6241
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6242
+ main: {
6243
+ label: "Screen Size"
6244
+ }
6245
+ }
6483
6246
  },
6484
- config: {
6485
- layout: {
6486
- xs: 11,
6487
- sm: 11,
6488
- md: 5.5,
6489
- lg: 5.5
6247
+ {
6248
+ type: "Control",
6249
+ scope: "#/properties/value",
6250
+ options: {
6251
+ widget: "InputField"
6490
6252
  },
6491
- main: {
6492
- label: "Screen Size"
6253
+ config: {
6254
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6255
+ main: {
6256
+ label: "Value",
6257
+ type: "number",
6258
+ helperText: "Number should be in range of 0 to 12",
6259
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6260
+ }
6493
6261
  }
6494
- }
6495
- },
6496
- {
6497
- type: "Control",
6498
- scope: "#/properties/value",
6499
- options: {
6500
- widget: "InputField"
6501
6262
  },
6502
- config: {
6503
- layout: {
6504
- xs: 11,
6505
- sm: 11,
6506
- md: 5.5,
6507
- lg: 5.5
6263
+ {
6264
+ type: "Control",
6265
+ scope: "#/properties/emptyBox",
6266
+ options: {
6267
+ widget: "EmptyBox"
6508
6268
  },
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
+ config: {
6270
+ layout: { xs: 0, sm: 4 }
6514
6271
  }
6515
6272
  }
6516
- }
6517
- ]
6273
+ ]
6274
+ }
6518
6275
  }
6519
6276
  }
6520
- }
6521
- ]
6522
- }
6523
- ]
6524
- },
6525
- {
6526
- type: "Control",
6527
- scope: "#/properties/popUpComponentSection",
6528
- options: {
6529
- widget: "PopUp"
6530
- },
6531
- config: {
6532
- layout: {
6533
- xs: 12,
6534
- sm: 12,
6535
- md: 12,
6536
- lg: 12
6537
- },
6538
- main: {}
6539
- },
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
- }
6556
- },
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
- }
6567
- },
6568
- {
6569
- type: "Control",
6570
- scope: "#/properties/ConfirmDeleteCompButton",
6571
- options: {
6572
- widget: "Button"
6573
- },
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
- }
6585
- }
6586
- },
6587
- {
6588
- type: "Control",
6589
- scope: "#/properties/CancelDeleteCompButton",
6590
- options: {
6591
- widget: "Button"
6592
- },
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
- }
6277
+ ]
6604
6278
  }
6605
- }
6606
- ]
6607
- },
6608
- {
6609
- type: "Control",
6610
- scope: "#/properties/popUpEventSection",
6611
- options: {
6612
- widget: "PopUp"
6279
+ ]
6613
6280
  },
6614
- config: {
6615
- layout: {
6616
- xs: 12,
6617
- sm: 12,
6618
- md: 12,
6619
- lg: 12
6281
+ {
6282
+ type: "Control",
6283
+ scope: "#/properties/EmptyBox",
6284
+ options: {
6285
+ widget: "EmptyBox"
6620
6286
  },
6621
- main: {}
6287
+ config: {
6288
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6289
+ }
6622
6290
  },
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 ?"
6634
- },
6635
- style: {
6636
- marginTop: "-40px"
6637
- }
6638
- }
6291
+ {
6292
+ type: "Control",
6293
+ scope: "#/properties/EmptyBox",
6294
+ options: {
6295
+ widget: "EmptyBox"
6639
6296
  },
6640
- {
6641
- type: "Control",
6642
- scope: "#/properties/EmptyBox",
6643
- options: {
6644
- widget: "EmptyBox"
6645
- },
6646
- config: {
6647
- main: {},
6648
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6649
- }
6297
+ config: {
6298
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6299
+ }
6300
+ },
6301
+ {
6302
+ type: "Control",
6303
+ scope: "#/properties/btn",
6304
+ options: {
6305
+ widget: "Button"
6650
6306
  },
6651
- {
6652
- type: "Control",
6653
- scope: "#/properties/ConfirmDeleteEventButton",
6654
- options: {
6655
- widget: "Button"
6307
+ config: {
6308
+ layout: 1.8,
6309
+ main: {
6310
+ name: "Ok",
6311
+ startIcon: "ApproveIcon",
6312
+ variant: "contained",
6313
+ type: "text",
6314
+ onClick: "okHandler",
6315
+ size: "medium"
6656
6316
  },
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"
6667
- }
6317
+ style: {
6318
+ float: "right"
6668
6319
  }
6320
+ }
6321
+ },
6322
+ {
6323
+ type: "Control",
6324
+ scope: "#/properties/btnSubmit",
6325
+ options: {
6326
+ widget: "Button"
6669
6327
  },
6670
- {
6671
- type: "Control",
6672
- scope: "#/properties/CancelDeleteEventButton",
6673
- options: {
6674
- widget: "Button"
6328
+ config: {
6329
+ layout: 1.8,
6330
+ main: {
6331
+ name: "Save & Exit",
6332
+ startIcon: "ApproveIcon",
6333
+ variant: "contained",
6334
+ type: "text",
6335
+ onClick: "saveHandler",
6336
+ size: "medium"
6675
6337
  },
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
- }
6338
+ style: {
6339
+ float: "right"
6687
6340
  }
6688
6341
  }
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"
6699
- }
6700
- },
6701
- {
6702
- type: "Control",
6703
- scope: "#/properties/btn",
6704
- options: {
6705
- widget: "Button"
6706
6342
  },
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"
6343
+ {
6344
+ type: "Control",
6345
+ scope: "#/properties/notify",
6346
+ options: {
6347
+ widget: "Notify"
6722
6348
  },
6723
- style: {
6724
- marginBottom: "8px",
6725
- float: "right"
6726
- }
6727
- }
6728
- },
6729
- {
6730
- type: "Control",
6731
- scope: "#/properties/btnSubmit",
6732
- options: {
6733
- widget: "Button"
6349
+ layout: 6
6734
6350
  },
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"
6351
+ {
6352
+ type: "HorizontalLayout",
6353
+ config: {
6354
+ layout: 12,
6355
+ style: {
6356
+ position: "absolute",
6357
+ bottom: 5,
6358
+ overflow: "hidden"
6359
+ }
6750
6360
  },
6751
- style: {
6752
- marginBottom: "8px",
6753
- float: "right"
6754
- }
6361
+ elements: [
6362
+ {
6363
+ type: "Control",
6364
+ scope: "#/properties/FooterText",
6365
+ options: {
6366
+ widget: "Box"
6367
+ },
6368
+ config: {
6369
+ layout: 9.5,
6370
+ main: {
6371
+ heading: "Copywriter@ACT21.IO"
6372
+ },
6373
+ style: {
6374
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6375
+ fontSize: "12px",
6376
+ textAlign: "center"
6377
+ }
6378
+ }
6379
+ },
6380
+ {
6381
+ type: "HorizontalLayout",
6382
+ config: {
6383
+ layout: 2.5,
6384
+ style: {}
6385
+ },
6386
+ elements: [
6387
+ {
6388
+ type: "Control",
6389
+ scope: "#/properties/EmptyBox",
6390
+ options: {
6391
+ widget: "EmptyBox"
6392
+ },
6393
+ config: {
6394
+ layout: 6,
6395
+ style: {
6396
+ flexGrow: 1
6397
+ }
6398
+ }
6399
+ },
6400
+ {
6401
+ type: "Control",
6402
+ scope: "#/properties/backIcon",
6403
+ options: {
6404
+ widget: "Box"
6405
+ },
6406
+ config: {
6407
+ layout: 1,
6408
+ main: {
6409
+ iconName: "PrevIcon",
6410
+ onClick: "backHandler"
6411
+ },
6412
+ style: {
6413
+ fill: theme.palette.primary.main,
6414
+ width: 20,
6415
+ height: 20,
6416
+ display: "flex",
6417
+ alignItems: "center",
6418
+ justifyContent: "center",
6419
+ marginRight: "-8px",
6420
+ cursor: "pointer",
6421
+ ":hover": {
6422
+ fill: theme.palette.primary.dark
6423
+ }
6424
+ }
6425
+ }
6426
+ },
6427
+ {
6428
+ type: "Control",
6429
+ scope: "#/properties/text",
6430
+ options: {
6431
+ widget: "Box"
6432
+ },
6433
+ config: {
6434
+ layout: 5,
6435
+ main: {
6436
+ heading: "Previous Page",
6437
+ onClick: "backHandler"
6438
+ },
6439
+ style: {
6440
+ width: "fit-content",
6441
+ color: theme.palette.primary.main,
6442
+ fontSize: "12px",
6443
+ cursor: "pointer",
6444
+ marginLeft: "2px",
6445
+ marginRight: 0,
6446
+ ":hover": {
6447
+ color: theme.palette.primary.dark
6448
+ }
6449
+ }
6450
+ }
6451
+ }
6452
+ ]
6453
+ }
6454
+ ]
6755
6455
  }
6756
- },
6757
- {
6758
- type: "Control",
6759
- scope: "#/properties/notify",
6760
- options: {
6761
- widget: "Notify"
6762
- },
6763
- layout: 6
6764
- }
6765
- ]
6456
+ ]
6457
+ };
6458
+ return uiSchema;
6766
6459
  };
6767
6460
  const CoreSection = {
6768
6461
  type: "HorizontalLayout",
@@ -6774,7 +6467,7 @@ const CoreSection = {
6774
6467
  widget: "SelectInputField"
6775
6468
  },
6776
6469
  config: {
6777
- layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6470
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6778
6471
  main: {
6779
6472
  label: "Type",
6780
6473
  type: "text"
@@ -6788,12 +6481,7 @@ const CoreSection = {
6788
6481
  widget: "InputField"
6789
6482
  },
6790
6483
  config: {
6791
- layout: {
6792
- xs: 12,
6793
- sm: 12,
6794
- md: 6,
6795
- lg: 6
6796
- },
6484
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6797
6485
  main: {
6798
6486
  label: "Name"
6799
6487
  }
@@ -6806,31 +6494,16 @@ const CoreSection = {
6806
6494
  widget: "InputField"
6807
6495
  },
6808
6496
  config: {
6809
- layout: {
6810
- xs: 12,
6811
- sm: 12,
6812
- md: 6,
6813
- lg: 6
6814
- },
6497
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6815
6498
  main: {
6816
6499
  label: "Label"
6817
6500
  }
6818
6501
  }
6819
6502
  },
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
- },
6830
6503
  {
6831
6504
  type: "Control",
6832
6505
  scope: "#/properties/layout",
6833
- layout: 11.5,
6506
+ layout: 12,
6834
6507
  options: {
6835
6508
  "elementLabelProp": "key",
6836
6509
  detail: {
@@ -6843,12 +6516,7 @@ const CoreSection = {
6843
6516
  widget: "SelectInputField"
6844
6517
  },
6845
6518
  config: {
6846
- layout: {
6847
- xs: 11,
6848
- sm: 11,
6849
- md: 5.5,
6850
- lg: 5.5
6851
- },
6519
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6852
6520
  main: {
6853
6521
  label: "Screen Size"
6854
6522
  }
@@ -6861,12 +6529,7 @@ const CoreSection = {
6861
6529
  widget: "InputField"
6862
6530
  },
6863
6531
  config: {
6864
- layout: {
6865
- xs: 11,
6866
- sm: 11,
6867
- md: 5.5,
6868
- lg: 5.5
6869
- },
6532
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6870
6533
  main: {
6871
6534
  label: "Value",
6872
6535
  type: "number",
@@ -6874,6 +6537,16 @@ const CoreSection = {
6874
6537
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6875
6538
  }
6876
6539
  }
6540
+ },
6541
+ {
6542
+ type: "Control",
6543
+ scope: "#/properties/emptyBox",
6544
+ options: {
6545
+ widget: "EmptyBox"
6546
+ },
6547
+ config: {
6548
+ layout: { xs: 0, sm: 4 }
6549
+ }
6877
6550
  }
6878
6551
  ]
6879
6552
  }
@@ -6885,121 +6558,95 @@ const EventSection = {
6885
6558
  type: "HorizontalLayout",
6886
6559
  elements: [
6887
6560
  {
6888
- type: "WrapperLayout",
6561
+ type: "Control",
6562
+ scope: "#/properties/events",
6563
+ options: {
6564
+ widget: "Table"
6565
+ },
6889
6566
  config: {
6890
6567
  main: {
6891
- divider: true
6892
- },
6893
- wrapperStyle: {
6894
- border: "1px solid gray"
6568
+ headerIcons: {
6569
+ elements: [
6570
+ {
6571
+ widget: {
6572
+ type: "Control",
6573
+ scope: "#/properties/New_Record",
6574
+ options: {
6575
+ widget: "IconButton"
6576
+ },
6577
+ config: {
6578
+ main: {
6579
+ color: "info",
6580
+ onClick: "eventAddHandler",
6581
+ size: "small",
6582
+ icon: "AddIcon",
6583
+ iconLabel: "Add New",
6584
+ styleDefault: true
6585
+ },
6586
+ style: {
6587
+ mt: "6px"
6588
+ }
6589
+ }
6590
+ }
6591
+ }
6592
+ ]
6593
+ },
6594
+ disableAction: true,
6595
+ disableSelection: true,
6596
+ enableDrag: true
6895
6597
  }
6896
6598
  },
6897
6599
  elements: [
6898
6600
  {
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
- }
6601
+ accessorKey: "eventType",
6602
+ header: "Event Type"
6916
6603
  },
6917
6604
  {
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"
6605
+ accessorKey: "Handler",
6606
+ header: "Handler"
6607
+ },
6608
+ {
6609
+ accessorKey: "Edit_Approve_Records",
6610
+ header: "Edit Widget",
6611
+ widget: {
6612
+ type: "Control",
6613
+ scope: "#/properties/Edit_Records",
6614
+ options: {
6615
+ widget: "IconButton"
6931
6616
  },
6932
- style: {
6933
- float: "right"
6617
+ config: {
6618
+ main: {
6619
+ color: "info",
6620
+ size: "small",
6621
+ icon: "EditIcon",
6622
+ tooltipMessage: "Edit This Record",
6623
+ onClick: "eventEditHandler"
6624
+ },
6625
+ style: {
6626
+ color: "#3949ab"
6627
+ }
6934
6628
  }
6935
6629
  }
6936
6630
  },
6937
6631
  {
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"
6954
- },
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
- }
6980
- }
6632
+ accessorKey: "Reject_Records",
6633
+ header: "Delete",
6634
+ widget: {
6635
+ type: "Control",
6636
+ scope: "#/properties/RejectButton",
6637
+ accessorKeyName: "Reject_Records",
6638
+ options: {
6639
+ widget: "IconButton"
6981
6640
  },
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
- }
6641
+ config: {
6642
+ main: {
6643
+ icon: "RejectIcon",
6644
+ color: "error",
6645
+ tooltipMessage: "Reject This Record",
6646
+ onClick: "deleteEvent"
7000
6647
  }
7001
6648
  }
7002
- ]
6649
+ }
7003
6650
  }
7004
6651
  ]
7005
6652
  }
@@ -7012,12 +6659,7 @@ const EmptyBox = {
7012
6659
  widget: "EmptyBox"
7013
6660
  },
7014
6661
  config: {
7015
- layout: {
7016
- xs: 11,
7017
- sm: 11,
7018
- md: 5.5,
7019
- lg: 5.5
7020
- },
6662
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
7021
6663
  main: {}
7022
6664
  }
7023
6665
  };
@@ -7036,12 +6678,7 @@ const cardLayout = {
7036
6678
  widget: "SelectInputField"
7037
6679
  },
7038
6680
  config: {
7039
- layout: {
7040
- xs: 11,
7041
- sm: 11,
7042
- md: 5.5,
7043
- lg: 5.5
7044
- },
6681
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7045
6682
  main: {
7046
6683
  label: "Screen Size"
7047
6684
  }
@@ -7054,12 +6691,7 @@ const cardLayout = {
7054
6691
  widget: "InputField"
7055
6692
  },
7056
6693
  config: {
7057
- layout: {
7058
- xs: 11,
7059
- sm: 11,
7060
- md: 5.5,
7061
- lg: 5.5
7062
- },
6694
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7063
6695
  main: {
7064
6696
  label: "Value",
7065
6697
  type: "number",
@@ -7067,7 +6699,8 @@ const cardLayout = {
7067
6699
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7068
6700
  }
7069
6701
  }
7070
- }
6702
+ },
6703
+ EmptyBox
7071
6704
  ]
7072
6705
  }
7073
6706
  }
@@ -7089,17 +6722,13 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7089
6722
  widget: "InputField"
7090
6723
  },
7091
6724
  config: {
7092
- layout: {
7093
- xs: 11,
7094
- sm: 11,
7095
- md: 5.5,
7096
- lg: 5.5
7097
- },
6725
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7098
6726
  main: {
7099
6727
  label: childLabel || "Labels for Tab"
7100
6728
  }
7101
6729
  }
7102
6730
  },
6731
+ EmptyBox,
7103
6732
  EmptyBox
7104
6733
  ]
7105
6734
  }
@@ -7114,12 +6743,7 @@ sizeHolder.options.detail.elements[1] = {
7114
6743
  widget: "InputField"
7115
6744
  },
7116
6745
  config: {
7117
- layout: {
7118
- xs: 11,
7119
- sm: 11,
7120
- md: 5.5,
7121
- lg: 5.5
7122
- },
6746
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7123
6747
  main: {
7124
6748
  label: "Size"
7125
6749
  }
@@ -7133,12 +6757,7 @@ const getInputField = (scope, label) => {
7133
6757
  widget: "InputField"
7134
6758
  },
7135
6759
  config: {
7136
- layout: {
7137
- xs: 11,
7138
- sm: 11,
7139
- md: 5.5,
7140
- lg: 5.5
7141
- },
6760
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7142
6761
  main: {
7143
6762
  label
7144
6763
  }
@@ -7153,12 +6772,7 @@ const getRadioInputField = (scope, label, options) => {
7153
6772
  widget: "RadioInputField"
7154
6773
  },
7155
6774
  config: {
7156
- layout: {
7157
- xs: 11,
7158
- sm: 11,
7159
- md: 5.5,
7160
- lg: 5.5
7161
- },
6775
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7162
6776
  main: {
7163
6777
  label,
7164
6778
  options
@@ -7201,7 +6815,7 @@ const getSelectField = (scope, label, options) => {
7201
6815
  widget: "SelectInputField"
7202
6816
  },
7203
6817
  config: {
7204
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
6818
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7205
6819
  main: {
7206
6820
  label,
7207
6821
  type: "text"
@@ -7222,6 +6836,8 @@ const buildPropertiesSection = function(type) {
7222
6836
  getInputField("elevation", "Card Elevation"),
7223
6837
  getInputField("height", "Grid height"),
7224
6838
  getInputField("justifyContent", "justifyContent"),
6839
+ EmptyBox,
6840
+ EmptyBox,
7225
6841
  cardLayout
7226
6842
  ];
7227
6843
  break;
@@ -7232,6 +6848,7 @@ const buildPropertiesSection = function(type) {
7232
6848
  getInputField("resetText", "Reset Text"),
7233
6849
  getInputField("completeText", "Complete Text"),
7234
6850
  getSelectField("orientation", "Orientation Type"),
6851
+ EmptyBox,
7235
6852
  getArrayControl("sectionLabels", "label")
7236
6853
  ];
7237
6854
  break;
@@ -7247,12 +6864,14 @@ const buildPropertiesSection = function(type) {
7247
6864
  uiSchema.elements = [
7248
6865
  getInputField("placeholder", "Placeholder"),
7249
6866
  EmptyBox,
6867
+ EmptyBox,
7250
6868
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7251
6869
  ];
7252
6870
  break;
7253
6871
  case "TextArea":
7254
6872
  uiSchema.elements = [
7255
6873
  getInputField("placeholder", "Placeholder"),
6874
+ EmptyBox,
7256
6875
  EmptyBox
7257
6876
  ];
7258
6877
  break;
@@ -7262,7 +6881,8 @@ const buildPropertiesSection = function(type) {
7262
6881
  getInputField("heading", "Container Heading"),
7263
6882
  getInputField("heading", "Container Heading"),
7264
6883
  getInputField("speedoCaption", "Speedometer Caption"),
7265
- getInputField("width", "Speedometer Width")
6884
+ getInputField("width", "Speedometer Width"),
6885
+ EmptyBox
7266
6886
  ];
7267
6887
  break;
7268
6888
  case "RankCard":
@@ -7270,7 +6890,9 @@ const buildPropertiesSection = function(type) {
7270
6890
  getInputField("rank", "Rank"),
7271
6891
  getInputField("image", "Image Url"),
7272
6892
  getInputField("title", "Card Title"),
7273
- getInputField("description", "Card Description")
6893
+ getInputField("description", "Card Description"),
6894
+ EmptyBox,
6895
+ EmptyBox
7274
6896
  ];
7275
6897
  break;
7276
6898
  case "LeaderBoard":
@@ -7279,6 +6901,8 @@ const buildPropertiesSection = function(type) {
7279
6901
  getInputField("firstImage", "First Image url"),
7280
6902
  getInputField("secondImage", "Second Image url"),
7281
6903
  getInputField("thirdImage", "Third Image url"),
6904
+ EmptyBox,
6905
+ EmptyBox,
7282
6906
  getTextArea("functionCode", "Write Compare Code", false)
7283
6907
  ];
7284
6908
  break;
@@ -7294,7 +6918,9 @@ const buildPropertiesSection = function(type) {
7294
6918
  getInputField("heading", "Heading"),
7295
6919
  getInputField("bottomLabel_1", "First BottomLabel"),
7296
6920
  getInputField("bottomLabel_2", "Second BottomLabel"),
7297
- getInputField("bottomLabel_3", "Third BottomLabel")
6921
+ getInputField("bottomLabel_3", "Third BottomLabel"),
6922
+ EmptyBox,
6923
+ EmptyBox
7298
6924
  ];
7299
6925
  break;
7300
6926
  case "card":
@@ -7328,7 +6954,7 @@ const buildPropertiesSection = function(type) {
7328
6954
  ];
7329
6955
  break;
7330
6956
  case "WrapperSection":
7331
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
6957
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), getRadioInputField("isAccordion", "Accordion", ["YES", "No"]), EmptyBox];
7332
6958
  break;
7333
6959
  case "TabSection":
7334
6960
  uiSchema.elements = [
@@ -7356,12 +6982,14 @@ const buildPropertiesSection = function(type) {
7356
6982
  case "Select":
7357
6983
  uiSchema.elements = [
7358
6984
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7359
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
6985
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
6986
+ EmptyBox
7360
6987
  ];
7361
6988
  break;
7362
6989
  case "MultipleSelect":
7363
6990
  uiSchema.elements = [
7364
6991
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6992
+ EmptyBox,
7365
6993
  EmptyBox
7366
6994
  ];
7367
6995
  break;
@@ -7407,116 +7035,92 @@ const TableSection = {
7407
7035
  type: "HorizontalLayout",
7408
7036
  elements: [
7409
7037
  {
7410
- type: "WrapperLayout",
7038
+ type: "Control",
7039
+ scope: "#/properties/elements",
7040
+ options: {
7041
+ widget: "Table"
7042
+ },
7411
7043
  config: {
7412
- main: {},
7413
- wrapperStyle: {
7414
- border: "1px solid gray"
7044
+ main: {
7045
+ headerIcons: {
7046
+ elements: [
7047
+ {
7048
+ widget: {
7049
+ type: "Control",
7050
+ scope: "#/properties/New_Record",
7051
+ options: {
7052
+ widget: "IconButton"
7053
+ },
7054
+ config: {
7055
+ main: {
7056
+ color: "info",
7057
+ onClick: "widgetAddClickHandler",
7058
+ size: "small",
7059
+ icon: "AddIcon",
7060
+ iconLabel: "Add New",
7061
+ styleDefault: true
7062
+ },
7063
+ style: {
7064
+ mt: "6px"
7065
+ }
7066
+ }
7067
+ }
7068
+ }
7069
+ ]
7070
+ },
7071
+ disableAction: true,
7072
+ disableSelection: true,
7073
+ enableDrag: true
7415
7074
  }
7416
7075
  },
7417
7076
  elements: [
7418
7077
  {
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
- }
7078
+ accessorKey: "name",
7079
+ header: "Name"
7436
7080
  },
7437
7081
  {
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"
7082
+ accessorKey: "type",
7083
+ header: "Type"
7084
+ },
7085
+ {
7086
+ header: "Edit Record",
7087
+ field: "Reject_Records",
7088
+ flex: 1,
7089
+ widget: {
7090
+ type: "Control",
7091
+ scope: "#/properties/RejectButton",
7092
+ options: {
7093
+ widget: "IconButton"
7451
7094
  },
7452
- style: {
7453
- float: "right"
7095
+ config: {
7096
+ main: {
7097
+ icon: "EditIcon",
7098
+ color: "primary",
7099
+ onClick: "editComponents",
7100
+ tooltipMessage: "Reject This Record"
7101
+ }
7454
7102
  }
7455
7103
  }
7456
7104
  },
7457
7105
  {
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"
7474
- },
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
- }
7106
+ header: "Delete",
7107
+ field: "Reject_Records",
7108
+ flex: 1,
7109
+ widget: {
7110
+ type: "Control",
7111
+ scope: "#/properties/RejectButton",
7112
+ options: {
7113
+ widget: "IconButton"
7498
7114
  },
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
- }
7115
+ config: {
7116
+ main: {
7117
+ icon: "RejectIcon",
7118
+ color: "error",
7119
+ onClick: "deleteComponents",
7120
+ tooltipMessage: "Reject This Record"
7517
7121
  }
7518
7122
  }
7519
- ]
7123
+ }
7520
7124
  }
7521
7125
  ]
7522
7126
  }
@@ -7540,12 +7144,7 @@ const ValueTab = {
7540
7144
  widget: "InputField"
7541
7145
  },
7542
7146
  config: {
7543
- layout: {
7544
- xs: 11,
7545
- sm: 11,
7546
- md: 5.5,
7547
- lg: 5.5
7548
- },
7147
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7549
7148
  main: {
7550
7149
  label: "Label"
7551
7150
  }
@@ -7558,16 +7157,21 @@ const ValueTab = {
7558
7157
  widget: "InputField"
7559
7158
  },
7560
7159
  config: {
7561
- layout: {
7562
- xs: 11,
7563
- sm: 11,
7564
- md: 5.5,
7565
- lg: 5.5
7566
- },
7160
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7567
7161
  main: {
7568
7162
  label: "Value"
7569
7163
  }
7570
7164
  }
7165
+ },
7166
+ {
7167
+ type: "Control",
7168
+ scope: "#/properties/emptyBox",
7169
+ options: {
7170
+ widget: "EmptyBox"
7171
+ },
7172
+ config: {
7173
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7174
+ }
7571
7175
  }
7572
7176
  ]
7573
7177
  }
@@ -7594,12 +7198,7 @@ const ValidationSection = {
7594
7198
  widget: "SelectInputField"
7595
7199
  },
7596
7200
  config: {
7597
- layout: {
7598
- xs: 11,
7599
- sm: 11,
7600
- md: 5.5,
7601
- lg: 5.5
7602
- },
7201
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7603
7202
  main: {
7604
7203
  label: "Validation Type"
7605
7204
  }
@@ -7612,16 +7211,21 @@ const ValidationSection = {
7612
7211
  widget: "InputField"
7613
7212
  },
7614
7213
  config: {
7615
- layout: {
7616
- xs: 11,
7617
- sm: 11,
7618
- md: 5.5,
7619
- lg: 5.5
7620
- },
7214
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7621
7215
  main: {
7622
7216
  label: "Validation Value"
7623
7217
  }
7624
7218
  }
7219
+ },
7220
+ {
7221
+ type: "Control",
7222
+ scope: "#/properties/emptyBox",
7223
+ options: {
7224
+ widget: "EmptyBox"
7225
+ },
7226
+ config: {
7227
+ layout: { xs: 0, sm: 4 }
7228
+ }
7625
7229
  }
7626
7230
  ]
7627
7231
  }
@@ -7803,7 +7407,7 @@ const sectionLabels = {
7803
7407
  };
7804
7408
  const refreshPage = (type, store2) => {
7805
7409
  var _a;
7806
- const UiSchema = _.cloneDeep(componentBasicUiSchema);
7410
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
7807
7411
  if (type) {
7808
7412
  const sectionUiSchema = {
7809
7413
  Core: CoreSection,
@@ -7815,8 +7419,8 @@ const refreshPage = (type, store2) => {
7815
7419
  Validation: ValidationSection
7816
7420
  };
7817
7421
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7818
- UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7819
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7422
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7423
+ UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7820
7424
  }
7821
7425
  store2.setUiSchema(UiSchema);
7822
7426
  };
@@ -7862,30 +7466,22 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7862
7466
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7863
7467
  }
7864
7468
  },
7865
- deleteComponents: function(shouldUpdateDialog = true) {
7469
+ deleteComponents: function() {
7866
7470
  var _a;
7867
7471
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7868
- const rowId = localStorage.getItem("rowId");
7472
+ const rowId = dynamicData2.path.split(".")[1];
7869
7473
  store2.formData.elements.splice(rowId, 1);
7870
7474
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7871
7475
  const data2 = path ? _.get(response2, path) : response2;
7872
7476
  store2.setFormdata(data2);
7873
- if (shouldUpdateDialog) {
7874
- store2.updateDialog("popUpComponentSection");
7875
- }
7876
- localStorage.removeItem("rowId");
7877
7477
  },
7878
- deleteEvent: function(shouldUpdateDialog = true) {
7478
+ deleteEvent: function() {
7879
7479
  var _a;
7880
7480
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7881
- const rowId = localStorage.getItem("rowId");
7481
+ const rowId = dynamicData2.path.split(".")[1];
7882
7482
  store2.formData.events.splice(rowId, 1);
7883
7483
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7884
7484
  store2.setFormdata(_.get(response2, path));
7885
- if (shouldUpdateDialog) {
7886
- store2.updateDialog("popUpEventSection");
7887
- }
7888
- localStorage.removeItem("rowId");
7889
7485
  },
7890
7486
  widgetAddClickHandler: function() {
7891
7487
  var _a;
@@ -7921,16 +7517,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7921
7517
  },
7922
7518
  backHandler: function() {
7923
7519
  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");
7934
7520
  }
7935
7521
  };
7936
7522
  };
@@ -7956,7 +7542,7 @@ var pageMaster = (funcParams) => {
7956
7542
  return config;
7957
7543
  },
7958
7544
  getUiSchema: function() {
7959
- return PageMasterUiSchema;
7545
+ return PageMasterUiSchema(store2.theme.myTheme);
7960
7546
  },
7961
7547
  getSchema: () => {
7962
7548
  return PageMasterSchema;
@@ -7978,10 +7564,7 @@ var pageMaster = (funcParams) => {
7978
7564
  },
7979
7565
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7980
7566
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7981
- Delete_Components: async function() {
7982
- await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7983
- store2.updateDialog("popUpPageMasterComponent");
7984
- },
7567
+ Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
7985
7568
  eventAddHandler: function() {
7986
7569
  var _a;
7987
7570
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -8001,22 +7584,10 @@ var pageMaster = (funcParams) => {
8001
7584
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8002
7585
  },
8003
7586
  deleteEvent: function() {
8004
- const rowId = localStorage.getItem("rowId");
7587
+ const rowId = dynamicData2.path.split(".")[1];
8005
7588
  store2.formData.events.splice(rowId, 1);
8006
7589
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
8007
7590
  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");
8020
7591
  }
8021
7592
  };
8022
7593
  };
@@ -8106,385 +7677,335 @@ const EventSchema = {
8106
7677
  },
8107
7678
  required: ["eventType", "Handler"]
8108
7679
  };
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
- }
8136
- }
8137
- },
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
- }
7680
+ const EventUiSchema = (theme) => {
7681
+ var _a;
7682
+ const uiSchema = {
7683
+ type: "HorizontalLayout",
7684
+ heading: "Component",
7685
+ elements: [
7686
+ {
7687
+ type: "TabLayout",
7688
+ config: {
7689
+ main: {
7690
+ tabLabels: ["Core", "Response Event"],
7691
+ defaultStyle: true,
7692
+ id: "event"
8156
7693
  }
8157
7694
  },
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"
7695
+ elements: [
7696
+ {
7697
+ type: "HorizontalLayout",
7698
+ elements: [
7699
+ {
7700
+ type: "Control",
7701
+ scope: `#/properties/eventType`,
7702
+ options: {
7703
+ widget: "SelectInputField"
7704
+ },
7705
+ config: {
7706
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7707
+ main: {
7708
+ label: "Event Type",
7709
+ type: "text"
7710
+ }
7711
+ }
8198
7712
  },
8199
- config: {
8200
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8201
- main: {
8202
- label: "Event Type",
8203
- type: "text"
7713
+ {
7714
+ type: "Control",
7715
+ scope: `#/properties/Handler`,
7716
+ options: {
7717
+ widget: "SelectInputField"
7718
+ },
7719
+ config: {
7720
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7721
+ main: {
7722
+ label: "Handler",
7723
+ type: "text"
7724
+ }
8204
7725
  }
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"
8226
7726
  },
8227
- config: {
8228
- layout: 8,
8229
- main: {
8230
- heading: "Response Event"
7727
+ {
7728
+ type: "Control",
7729
+ scope: "#/properties/emptyBox",
7730
+ options: {
7731
+ widget: "EmptyBox"
8231
7732
  },
8232
- style: {
8233
- fontFamily: "Roboto",
8234
- fontWeight: "500",
8235
- paddingLeft: "-10px",
8236
- fontSize: "20px"
7733
+ config: {
7734
+ layout: { xs: 0, sm: 4 }
8237
7735
  }
8238
7736
  }
7737
+ ]
7738
+ },
7739
+ {
7740
+ type: "Control",
7741
+ scope: "#/properties/events",
7742
+ options: {
7743
+ widget: "Table"
8239
7744
  },
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"
7745
+ config: {
7746
+ main: {
7747
+ headerIcons: {
7748
+ elements: [
7749
+ {
7750
+ widget: {
7751
+ type: "Control",
7752
+ scope: "#/properties/New_Record",
7753
+ options: {
7754
+ widget: "IconButton"
7755
+ },
7756
+ config: {
7757
+ main: {
7758
+ onClick: "addEvent",
7759
+ size: "small",
7760
+ icon: "AddIcon",
7761
+ iconLabel: "Add New",
7762
+ styleDefault: true
7763
+ },
7764
+ style: {
7765
+ mt: "6px"
7766
+ }
7767
+ }
7768
+ }
7769
+ }
7770
+ ]
8254
7771
  },
8255
- style: {
8256
- float: "right"
8257
- }
7772
+ disableAction: true,
7773
+ disableSelection: true,
7774
+ enableDrag: true
8258
7775
  }
8259
7776
  },
8260
- {
8261
- type: "Control",
8262
- scope: "#/properties/events",
8263
- options: {
8264
- widget: "Table"
7777
+ elements: [
7778
+ {
7779
+ accessorKey: "eventType",
7780
+ header: "Event Type"
8265
7781
  },
8266
- config: {
8267
- main: {
8268
- disableAction: true,
8269
- disableSelection: true,
8270
- enableDrag: true
8271
- }
7782
+ {
7783
+ accessorKey: "Handler",
7784
+ header: "Handler"
8272
7785
  },
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"
7786
+ {
7787
+ accessorKey: "Edit_Approve_Records",
7788
+ header: "Edit Widget",
7789
+ widget: {
7790
+ type: "Control",
7791
+ scope: "#/properties/Edit_Records",
7792
+ options: {
7793
+ widget: "IconButton"
7794
+ },
7795
+ config: {
7796
+ main: {
7797
+ size: "small",
7798
+ icon: "EditIcon",
7799
+ tooltipMessage: "Edit This Record",
7800
+ onClick: "editEvent"
8290
7801
  },
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
- }
7802
+ style: {
7803
+ color: "#3949ab"
8302
7804
  }
8303
7805
  }
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
- }
7806
+ }
7807
+ },
7808
+ {
7809
+ accessorKey: "Reject_Records",
7810
+ header: "Delete",
7811
+ widget: {
7812
+ type: "Control",
7813
+ scope: "#/properties/RejectButton",
7814
+ options: {
7815
+ widget: "IconButton"
7816
+ },
7817
+ config: {
7818
+ main: {
7819
+ icon: "RejectIcon",
7820
+ color: "error",
7821
+ tooltipMessage: "Reject This Record",
7822
+ onClick: "deleteEvent"
8321
7823
  }
8322
7824
  }
8323
7825
  }
8324
- ]
8325
- }
8326
- ]
8327
- }
8328
- ]
8329
- },
8330
- {
8331
- type: "Control",
8332
- scope: "#/properties/popUpEvent",
8333
- options: {
8334
- widget: "PopUp"
8335
- },
8336
- config: {
8337
- layout: {
8338
- xs: 12,
8339
- sm: 12,
8340
- md: 12,
8341
- lg: 12
8342
- },
8343
- main: {}
8344
- },
8345
- elements: [
8346
- {
8347
- type: "Control",
8348
- scope: "#/properties/label",
8349
- options: {
8350
- widget: "Box"
8351
- },
8352
- config: {
8353
- layout: 12,
8354
- main: {
8355
- heading: "Are you sure you want to delete ?"
8356
- },
8357
- style: {
8358
- marginTop: "-40px"
8359
- }
7826
+ }
7827
+ ]
8360
7828
  }
7829
+ ]
7830
+ },
7831
+ {
7832
+ type: "Control",
7833
+ scope: "#/properties/EmptyBox",
7834
+ options: {
7835
+ widget: "EmptyBox"
8361
7836
  },
8362
- {
8363
- type: "Control",
8364
- scope: "#/properties/EmptyBox",
8365
- options: {
8366
- widget: "EmptyBox"
8367
- },
8368
- config: {
8369
- main: {},
8370
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8371
- }
7837
+ config: {
7838
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7839
+ }
7840
+ },
7841
+ {
7842
+ type: "Control",
7843
+ scope: "#/properties/EmptyBox",
7844
+ options: {
7845
+ widget: "EmptyBox"
8372
7846
  },
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
- }
8390
- }
7847
+ config: {
7848
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7849
+ }
7850
+ },
7851
+ {
7852
+ type: "Control",
7853
+ scope: "#/properties/btn",
7854
+ options: {
7855
+ widget: "Button"
8391
7856
  },
8392
- {
8393
- type: "Control",
8394
- scope: "#/properties/CancelDeleteEventButton",
8395
- options: {
8396
- widget: "Button"
7857
+ config: {
7858
+ layout: 1.8,
7859
+ main: {
7860
+ name: "Ok",
7861
+ startIcon: "ApproveIcon",
7862
+ variant: "contained",
7863
+ type: "text",
7864
+ onClick: "okHandler",
7865
+ size: "medium"
8397
7866
  },
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"
8408
- }
7867
+ style: {
7868
+ float: "right"
8409
7869
  }
8410
7870
  }
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"
8421
- }
8422
- },
8423
- {
8424
- type: "Control",
8425
- scope: "#/properties/btn",
8426
- options: {
8427
- widget: "Button"
8428
7871
  },
8429
- config: {
8430
- layout: {
8431
- xs: 11,
8432
- sm: 11,
8433
- md: 2.5,
8434
- lg: 2.5
8435
- },
8436
- main: {
8437
- name: "Ok",
8438
- startIcon: "ApproveIcon",
8439
- variant: "contained",
8440
- color: "info",
8441
- type: "text",
8442
- onClick: "okHandler",
8443
- size: "small"
7872
+ {
7873
+ type: "Control",
7874
+ scope: "#/properties/btnSubmit",
7875
+ options: {
7876
+ widget: "Button"
8444
7877
  },
8445
- style: {
8446
- marginBottom: "8px",
8447
- float: "right"
7878
+ config: {
7879
+ layout: 1.8,
7880
+ main: {
7881
+ name: "Save & Exit",
7882
+ startIcon: "ApproveIcon",
7883
+ variant: "contained",
7884
+ type: "text",
7885
+ onClick: "saveHandler",
7886
+ size: "medium"
7887
+ },
7888
+ style: {
7889
+ float: "right"
7890
+ }
8448
7891
  }
8449
- }
8450
- },
8451
- {
8452
- type: "Control",
8453
- scope: "#/properties/btnSubmit",
8454
- options: {
8455
- widget: "Button"
8456
7892
  },
8457
- config: {
8458
- layout: {
8459
- xs: 11,
8460
- sm: 11,
8461
- md: 2.5,
8462
- lg: 2.5
7893
+ {
7894
+ type: "Control",
7895
+ scope: "#/properties/notify",
7896
+ options: {
7897
+ widget: "Notify"
8463
7898
  },
8464
- main: {
8465
- name: "Save & Exit",
8466
- startIcon: "ApproveIcon",
8467
- variant: "contained",
8468
- color: "info",
8469
- type: "text",
8470
- onClick: "saveHandler",
8471
- size: "small"
7899
+ layout: 6
7900
+ },
7901
+ {
7902
+ type: "HorizontalLayout",
7903
+ config: {
7904
+ layout: 12,
7905
+ style: {
7906
+ position: "absolute",
7907
+ bottom: 5,
7908
+ overflow: "hidden"
7909
+ }
8472
7910
  },
8473
- style: {
8474
- marginBottom: "8px",
8475
- float: "right"
8476
- }
7911
+ elements: [
7912
+ {
7913
+ type: "Control",
7914
+ scope: "#/properties/FooterText",
7915
+ options: {
7916
+ widget: "Box"
7917
+ },
7918
+ config: {
7919
+ layout: 9.5,
7920
+ main: {
7921
+ heading: "Copywriter@ACT21.IO"
7922
+ },
7923
+ style: {
7924
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
7925
+ fontSize: "12px",
7926
+ textAlign: "center"
7927
+ }
7928
+ }
7929
+ },
7930
+ {
7931
+ type: "HorizontalLayout",
7932
+ config: {
7933
+ layout: 2.5,
7934
+ style: {}
7935
+ },
7936
+ elements: [
7937
+ {
7938
+ type: "Control",
7939
+ scope: "#/properties/EmptyBox",
7940
+ options: {
7941
+ widget: "EmptyBox"
7942
+ },
7943
+ config: {
7944
+ layout: 6,
7945
+ style: {
7946
+ flexGrow: 1
7947
+ }
7948
+ }
7949
+ },
7950
+ {
7951
+ type: "Control",
7952
+ scope: "#/properties/backIcon",
7953
+ options: {
7954
+ widget: "Box"
7955
+ },
7956
+ config: {
7957
+ layout: 1,
7958
+ main: {
7959
+ iconName: "PrevIcon",
7960
+ onClick: "backHandler"
7961
+ },
7962
+ style: {
7963
+ fill: theme.palette.primary.main,
7964
+ width: 20,
7965
+ height: 20,
7966
+ display: "flex",
7967
+ alignItems: "center",
7968
+ justifyContent: "center",
7969
+ marginRight: "-8px",
7970
+ cursor: "pointer",
7971
+ ":hover": {
7972
+ fill: theme.palette.primary.dark
7973
+ }
7974
+ }
7975
+ }
7976
+ },
7977
+ {
7978
+ type: "Control",
7979
+ scope: "#/properties/text",
7980
+ options: {
7981
+ widget: "Box"
7982
+ },
7983
+ config: {
7984
+ layout: 5,
7985
+ main: {
7986
+ heading: "Previous Page",
7987
+ onClick: "backHandler"
7988
+ },
7989
+ style: {
7990
+ width: "fit-content",
7991
+ color: theme.palette.primary.main,
7992
+ fontSize: "12px",
7993
+ cursor: "pointer",
7994
+ marginLeft: "2px",
7995
+ marginRight: 0,
7996
+ ":hover": {
7997
+ color: theme.palette.primary.dark
7998
+ }
7999
+ }
8000
+ }
8001
+ }
8002
+ ]
8003
+ }
8004
+ ]
8477
8005
  }
8478
- },
8479
- {
8480
- type: "Control",
8481
- scope: "#/properties/notify",
8482
- options: {
8483
- widget: "Notify"
8484
- },
8485
- layout: 6
8486
- }
8487
- ]
8006
+ ]
8007
+ };
8008
+ return uiSchema;
8488
8009
  };
8489
8010
  const APISection = {
8490
8011
  type: "HorizontalLayout",
@@ -8496,7 +8017,7 @@ const APISection = {
8496
8017
  widget: "SelectInputField"
8497
8018
  },
8498
8019
  config: {
8499
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8020
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8500
8021
  main: {
8501
8022
  label: "Method",
8502
8023
  type: "text"
@@ -8510,7 +8031,7 @@ const APISection = {
8510
8031
  widget: "InputField"
8511
8032
  },
8512
8033
  config: {
8513
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8034
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8514
8035
  main: {
8515
8036
  label: "Path",
8516
8037
  type: "text",
@@ -8519,6 +8040,26 @@ const APISection = {
8519
8040
  }
8520
8041
  }
8521
8042
  },
8043
+ {
8044
+ type: "Control",
8045
+ scope: "#/properties/emptyBox",
8046
+ options: {
8047
+ widget: "EmptyBox"
8048
+ },
8049
+ config: {
8050
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8051
+ }
8052
+ },
8053
+ {
8054
+ type: "Control",
8055
+ scope: "#/properties/emptyBox",
8056
+ options: {
8057
+ widget: "EmptyBox"
8058
+ },
8059
+ config: {
8060
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8061
+ }
8062
+ },
8522
8063
  {
8523
8064
  type: "Control",
8524
8065
  scope: "#/properties/headers",
@@ -8535,12 +8076,7 @@ const APISection = {
8535
8076
  widget: "InputField"
8536
8077
  },
8537
8078
  config: {
8538
- layout: {
8539
- xs: 11,
8540
- sm: 11,
8541
- md: 5.5,
8542
- lg: 5.5
8543
- },
8079
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8544
8080
  main: {
8545
8081
  label: "Key"
8546
8082
  }
@@ -8553,16 +8089,21 @@ const APISection = {
8553
8089
  widget: "InputField"
8554
8090
  },
8555
8091
  config: {
8556
- layout: {
8557
- xs: 11,
8558
- sm: 11,
8559
- md: 5.5,
8560
- lg: 5.5
8561
- },
8092
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8562
8093
  main: {
8563
8094
  label: "Value"
8564
8095
  }
8565
8096
  }
8097
+ },
8098
+ {
8099
+ type: "Control",
8100
+ scope: "#/properties/emptyBox",
8101
+ options: {
8102
+ widget: "EmptyBox"
8103
+ },
8104
+ config: {
8105
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8106
+ }
8566
8107
  }
8567
8108
  ]
8568
8109
  }
@@ -8584,12 +8125,7 @@ const APISection = {
8584
8125
  widget: "InputField"
8585
8126
  },
8586
8127
  config: {
8587
- layout: {
8588
- xs: 11,
8589
- sm: 11,
8590
- md: 5.5,
8591
- lg: 5.5
8592
- },
8128
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8593
8129
  main: {
8594
8130
  label: "Key"
8595
8131
  }
@@ -8602,16 +8138,21 @@ const APISection = {
8602
8138
  widget: "InputField"
8603
8139
  },
8604
8140
  config: {
8605
- layout: {
8606
- xs: 11,
8607
- sm: 11,
8608
- md: 5.5,
8609
- lg: 5.5
8610
- },
8141
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8611
8142
  main: {
8612
8143
  label: "Value"
8613
8144
  }
8614
8145
  }
8146
+ },
8147
+ {
8148
+ type: "Control",
8149
+ scope: "#/properties/emptyBox",
8150
+ options: {
8151
+ widget: "EmptyBox"
8152
+ },
8153
+ config: {
8154
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8155
+ }
8615
8156
  }
8616
8157
  ]
8617
8158
  }
@@ -8638,12 +8179,7 @@ const refreshSectionUiSchema = {
8638
8179
  widget: "InputField"
8639
8180
  },
8640
8181
  config: {
8641
- layout: {
8642
- xs: 11,
8643
- sm: 11,
8644
- md: 5.5,
8645
- lg: 5.5
8646
- },
8182
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8647
8183
  main: {
8648
8184
  label: "Value"
8649
8185
  }
@@ -8656,12 +8192,7 @@ const refreshSectionUiSchema = {
8656
8192
  widget: "EmptyBox"
8657
8193
  },
8658
8194
  config: {
8659
- layout: {
8660
- xs: 11,
8661
- sm: 11,
8662
- md: 5.5,
8663
- lg: 5.5
8664
- },
8195
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8665
8196
  main: {}
8666
8197
  }
8667
8198
  }
@@ -8681,21 +8212,21 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8681
8212
  this.refreshPage(formdata.Handler, store2);
8682
8213
  },
8683
8214
  refreshPage: (handlerType, store22) => {
8684
- const uiSchema = _.cloneDeep(EventUiSchema);
8215
+ const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
8685
8216
  const schema2 = _.cloneDeep(EventSchema);
8686
8217
  if (handlerType) {
8687
8218
  if (handlerType === "custom") {
8688
- uiSchema.elements[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false);
8219
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8689
8220
  schema2.required = ["eventType", "Handler", "eventCode"];
8690
8221
  } else if (handlerType === "api") {
8691
- uiSchema.elements[1].elements[0].elements[2] = APISection;
8222
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
8692
8223
  schema2.required = ["eventType", "Handler", "method", "path"];
8693
8224
  } else if (handlerType === "inBuiltFunction") {
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 });
8225
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8226
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
8696
8227
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8697
8228
  } else if (handlerType === "refresh") {
8698
- uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
8229
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8699
8230
  schema2.properties.refreshElements.required = ["value"];
8700
8231
  schema2.properties.refreshElements.items.required = ["value"];
8701
8232
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -8705,8 +8236,8 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8705
8236
  store22.setUiSchema(uiSchema);
8706
8237
  },
8707
8238
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8708
- getUiSchema: function() {
8709
- return EventUiSchema;
8239
+ getUiSchema: async function() {
8240
+ return await EventUiSchema(store2.theme.myTheme);
8710
8241
  },
8711
8242
  getSchema: () => {
8712
8243
  return EventSchema;
@@ -8741,17 +8272,9 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8741
8272
  store2.setSearchParams(store2.searchParams);
8742
8273
  this.setPage();
8743
8274
  },
8744
- deleteEvent: async function() {
8745
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8746
- store2.updateDialog("popUpEvent");
8747
- },
8275
+ deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8748
8276
  backHandler: function() {
8749
8277
  store2.navigate(-1);
8750
- },
8751
- deletePopUpEvent: function() {
8752
- const rowId = dynamicData2.path.split(".")[1];
8753
- localStorage.setItem("rowId", rowId);
8754
- store2.updateDialog("popUpEvent");
8755
8278
  }
8756
8279
  };
8757
8280
  };
@@ -8820,6 +8343,7 @@ async function executeEventsHandler(params2) {
8820
8343
  } else if (params2.config.Handler === "refresh") {
8821
8344
  return await executeRefreshHandler(params2);
8822
8345
  } else if (params2.config.Handler === "mergeFormdata") {
8346
+ console.log("params : ", params2);
8823
8347
  const result = await mergeFormdata(
8824
8348
  params2.parentEventOutput,
8825
8349
  params2.componentName,
@@ -8905,13 +8429,16 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8905
8429
  };
8906
8430
  });
8907
8431
  } else if (eventConfig.type === "page") {
8432
+ console.log("console1 : ", handlerResponse);
8908
8433
  if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8434
+ console.log("console2 : ", handlerResponse);
8909
8435
  store2.setFormdata((pre) => {
8910
8436
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
8911
8437
  });
8912
8438
  }
8913
8439
  } else {
8914
8440
  if (handlerResponse) {
8441
+ console.log("console3 : ", handlerResponse);
8915
8442
  store2.setFormdata((pre) => {
8916
8443
  return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
8917
8444
  });
@@ -9057,9 +8584,7 @@ var service = (funcParams) => {
9057
8584
  };
9058
8585
  return {
9059
8586
  setPage: async function() {
9060
- funcParams.store.setFormdata((prev) => {
9061
- return {};
9062
- });
8587
+ funcParams.store.setFormdata({});
9063
8588
  executeEventsParameters = {
9064
8589
  config: {},
9065
8590
  componentName: "",
@@ -9080,12 +8605,6 @@ var service = (funcParams) => {
9080
8605
  );
9081
8606
  funcParams.uiSchema.elements.push(notifyUiSchema);
9082
8607
  funcParams.store.setUiSchema(funcParams.uiSchema);
9083
- const simulateDelay = async (time) => {
9084
- return new Promise((resolve) => {
9085
- return setTimeout(resolve, time);
9086
- });
9087
- };
9088
- await simulateDelay(3e3);
9089
8608
  await executeRefreshHandler({
9090
8609
  config: {},
9091
8610
  componentName: "",
@@ -9184,6 +8703,9 @@ var service = (funcParams) => {
9184
8703
  functionParameters == null ? void 0 : functionParameters.handleNext();
9185
8704
  }
9186
8705
  },
8706
+ backHandler: () => {
8707
+ funcParams.store.navigate(-1);
8708
+ },
9187
8709
  onReset: async function(functionParameters) {
9188
8710
  var _a, _b;
9189
8711
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
@@ -9642,62 +9164,7 @@ const BarGraph = {
9642
9164
  widget: "Graph"
9643
9165
  },
9644
9166
  config: {
9645
- main: {
9646
- header: "Bar Graph",
9647
- bottomLabel: "Name of Employe",
9648
- numTicks: 6,
9649
- leftLabel: "Value in lakhs",
9650
- axisLeft: true,
9651
- axisBottom: true,
9652
- hideTicks: false,
9653
- hideLeftAxisLine: false,
9654
- hideBottomAxisLine: false,
9655
- bottomAxisWidth: "10px",
9656
- legend: {
9657
- labelColor: "green",
9658
- legendTitle: "",
9659
- direction: "row",
9660
- align: "none"
9661
- }
9662
- },
9663
- style: {
9664
- containerStyle: {
9665
- width: "100%",
9666
- height: 300
9667
- },
9668
- headerStyle: {},
9669
- tooltipStyle: {},
9670
- labelStyle: {
9671
- margin: { left: 80, bottom: 20 },
9672
- leftLabelOffset: 50,
9673
- bottomLabelOffset: 10
9674
- },
9675
- barStyle: {
9676
- color: {
9677
- firstBarColor: "#6c5efb",
9678
- secondBarColor: "#3f51b5"
9679
- }
9680
- },
9681
- legendStyle: {
9682
- legend: {
9683
- lineHeight: "0.9em",
9684
- fontSize: "8px",
9685
- fontFamily: "arial",
9686
- padding: "10px 10px",
9687
- width: "30%",
9688
- display: "flex",
9689
- justifyContent: "center",
9690
- border: "1px solid rgba(255, 255, 255, 0.3)",
9691
- borderRadius: " 8px",
9692
- marginRight: "auto"
9693
- },
9694
- legendTitle: {
9695
- fontSize: "10px",
9696
- marginBottom: "10px",
9697
- fontWeight: "100"
9698
- }
9699
- }
9700
- }
9167
+ main: {}
9701
9168
  }
9702
9169
  };
9703
9170
  const PieGraph = {
@@ -9708,35 +9175,7 @@ const PieGraph = {
9708
9175
  },
9709
9176
  config: {
9710
9177
  main: {
9711
- header: "Incentive Branch category wise",
9712
- type: "PieGraph",
9713
- bottomLabel: "Name of Employe",
9714
- leftLabel: "Value",
9715
- axisLeft: true,
9716
- axisBottom: true,
9717
- legendAvailable: true,
9718
- legend: {
9719
- labelColor: "green",
9720
- legendTitle: "Branches",
9721
- direction: "row",
9722
- align: "right"
9723
- }
9724
- },
9725
- style: {
9726
- containerStyle: {
9727
- height: "340"
9728
- },
9729
- headerStyle: {},
9730
- tooltipStyle: {
9731
- backgroundColor: "black",
9732
- width: "80px"
9733
- },
9734
- labelStyle: {},
9735
- legendStyle: {
9736
- legend: {},
9737
- legendTitle: {}
9738
- },
9739
- pieStyle: {}
9178
+ type: "PieGraph"
9740
9179
  }
9741
9180
  }
9742
9181
  };
@@ -9784,30 +9223,7 @@ const HorizontalBarGraph = {
9784
9223
  },
9785
9224
  config: {
9786
9225
  main: {
9787
- header: " ",
9788
- type: "HorizontalBarGraph",
9789
- bottomLabel: " ",
9790
- leftLabel: "Value",
9791
- axisLeft: false,
9792
- axisBottom: true,
9793
- hideBottomTicks: false,
9794
- hideLeftTicks: false,
9795
- hideLeftAxisLine: true,
9796
- hideBottomAxisLine: false,
9797
- bottomAxisWidth: "10px"
9798
- },
9799
- style: {
9800
- containerStyle: {
9801
- width: "100%"
9802
- },
9803
- headerStyle: {},
9804
- tooltipStyle: {},
9805
- labelStyle: {
9806
- margin: { top: 10, left: 180, right: 40, bottom: 40 }
9807
- },
9808
- barStyle: {
9809
- color: "#6c5efb"
9810
- }
9226
+ type: "HorizontalBarGraph"
9811
9227
  }
9812
9228
  }
9813
9229
  };
@@ -9826,7 +9242,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
9826
9242
  horizontalBarGraph.config.containerStyle.background = config.containerBackground;
9827
9243
  }
9828
9244
  if (config.height) {
9829
- horizontalBarGraph.config.style.containerStyle.height = config.height;
9245
+ horizontalBarGraph.config.style = {
9246
+ containerStyle: {
9247
+ height: config.height
9248
+ }
9249
+ };
9830
9250
  }
9831
9251
  if (config.bottomLabel) {
9832
9252
  horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
@@ -9935,7 +9355,11 @@ const buildPieGraph = (config, componentScope) => {
9935
9355
  pieGraph.config.layout = createLayoutFormat(config.layout);
9936
9356
  }
9937
9357
  if (config.height) {
9938
- pieGraph.config.style.containerStyle.height = config.height;
9358
+ pieGraph.config.style = {
9359
+ containerStyle: {
9360
+ height: config.height
9361
+ }
9362
+ };
9939
9363
  }
9940
9364
  if (config.legendHide) {
9941
9365
  pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
@@ -9946,7 +9370,11 @@ const buildPieGraph = (config, componentScope) => {
9946
9370
  pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
9947
9371
  }
9948
9372
  if (config.pieArcColors) {
9949
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
9373
+ pieGraph.config.style = {
9374
+ pieStyle: {
9375
+ colorRange: flatObjectValueInArray(config.pieArcColors)
9376
+ }
9377
+ };
9950
9378
  }
9951
9379
  return pieGraph;
9952
9380
  };
@@ -9956,16 +9384,13 @@ const buildStackbarGraph = (config, componentScope) => {
9956
9384
  barGraph.config.layout = createLayoutFormat(config.layout);
9957
9385
  }
9958
9386
  if (config.legendHide) {
9959
- barGraph.config.main.legendAvailable = false;
9387
+ barGraph.config.main.legendAvailable = config.legendHide;
9960
9388
  }
9961
9389
  barGraph.config.main.type = config.graphType;
9962
9390
  barGraph.config.main.header = config.heading;
9963
9391
  if (config.barColor) {
9964
9392
  barGraph.config.barStyle.color = config.barColor;
9965
9393
  }
9966
- if (config.containerBackground) {
9967
- barGraph.config.containerStyle.background = config.containerBackground;
9968
- }
9969
9394
  if (config.height) {
9970
9395
  barGraph.config.style.containerStyle.height = config.height;
9971
9396
  }
@@ -9975,7 +9400,6 @@ const buildStackbarGraph = (config, componentScope) => {
9975
9400
  if (config.leftLabel) {
9976
9401
  barGraph.config.main.leftLabel = config.leftLabel;
9977
9402
  }
9978
- barGraph.scope = componentScope;
9979
9403
  return barGraph;
9980
9404
  };
9981
9405
  var RunnerBoyProgressBar = {
@@ -10029,8 +9453,10 @@ var WrapperSection = {
10029
9453
  };
10030
9454
  const buildWrapperSection = (config, componentScope) => {
10031
9455
  const wrapper = _.cloneDeep(WrapperSection);
9456
+ wrapper.scope = componentScope;
10032
9457
  wrapper.config.main.label = config.label;
10033
9458
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9459
+ wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10034
9460
  if (config.style) {
10035
9461
  wrapper.config.style = JSON.parse(config.style);
10036
9462
  }
@@ -10046,12 +9472,7 @@ var TextInputField = {
10046
9472
  widget: "InputField"
10047
9473
  },
10048
9474
  config: {
10049
- layout: {
10050
- xs: 11,
10051
- sm: 11,
10052
- md: 5.5,
10053
- lg: 5.5
10054
- },
9475
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10055
9476
  main: {
10056
9477
  label: ""
10057
9478
  },
@@ -10084,12 +9505,7 @@ var SelectInputField = {
10084
9505
  widget: "SelectInputField"
10085
9506
  },
10086
9507
  config: {
10087
- "layout": {
10088
- "xs": 11,
10089
- "sm": 11,
10090
- "md": 5.5,
10091
- "lg": 5.5
10092
- },
9508
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10093
9509
  main: {
10094
9510
  label: "",
10095
9511
  type: "text",
@@ -10378,16 +9794,14 @@ var Card = {
10378
9794
  main: {
10379
9795
  rowSpacing: 0.5
10380
9796
  },
10381
- style: {
10382
- wrapperStyle: {
10383
- position: "relative",
10384
- color: "white",
10385
- height: { xs: "120px", md: "160px" },
10386
- width: "100%",
10387
- textAlign: "left",
10388
- background: "#3f51b5",
10389
- borderRadius: "20px"
10390
- }
9797
+ componentsBoxStyle: {
9798
+ position: "relative",
9799
+ color: "white",
9800
+ height: { xs: "120px", md: "160px" },
9801
+ width: "100%",
9802
+ textAlign: "left",
9803
+ background: "#3f51b5",
9804
+ borderRadius: "20px"
10391
9805
  },
10392
9806
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10393
9807
  },
@@ -10499,12 +9913,7 @@ var DateInputField = {
10499
9913
  widget: "DateInputField"
10500
9914
  },
10501
9915
  config: {
10502
- layout: {
10503
- xs: 11,
10504
- sm: 11,
10505
- md: 5.5,
10506
- lg: 5.5
10507
- },
9916
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10508
9917
  main: {
10509
9918
  label: "",
10510
9919
  type: "date"
@@ -10621,7 +10030,7 @@ var MultipleSelect = {
10621
10030
  widget: "MultipleSelect"
10622
10031
  },
10623
10032
  config: {
10624
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10033
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10625
10034
  main: {
10626
10035
  label: "",
10627
10036
  type: "text",
@@ -10652,6 +10061,7 @@ const buildBasicUiSchema = (config) => {
10652
10061
  return {
10653
10062
  "type": "HorizontalLayout",
10654
10063
  pageName: `${config.name}`,
10064
+ heading: `${config.label}`,
10655
10065
  "elements": []
10656
10066
  };
10657
10067
  };
@@ -10808,7 +10218,7 @@ var emptyBox = {
10808
10218
  widget: "EmptyBox"
10809
10219
  },
10810
10220
  config: {
10811
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
10221
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
10812
10222
  main: {},
10813
10223
  style: {}
10814
10224
  }
@@ -11187,7 +10597,7 @@ const buildUiSchema = (config) => {
11187
10597
  elements = RunnerBoyProgressbar(config, componentScope);
11188
10598
  break;
11189
10599
  case "WrapperSection":
11190
- elements = buildWrapperSection(config);
10600
+ elements = buildWrapperSection(config, componentScope);
11191
10601
  break;
11192
10602
  case "Text":
11193
10603
  elements = buildTextField(config, componentScope);
@@ -11238,7 +10648,7 @@ const buildUiSchema = (config) => {
11238
10648
  switch (config.graphType) {
11239
10649
  case "BarGraph":
11240
10650
  case "StackBarGraph":
11241
- elements = buildStackbarGraph(config, componentScope);
10651
+ elements = buildStackbarGraph(config);
11242
10652
  break;
11243
10653
  case "LineGraph":
11244
10654
  elements = buildLineGraph(config, componentScope);