impaktapps-ui-builder 0.0.99 → 0.0.101-alpha.1

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 (62) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1909 -1522
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +94 -23
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +28 -21
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  17. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  18. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  19. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  20. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  21. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  22. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  23. package/package.json +5 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
  26. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
  27. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -21
  28. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  30. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -8
  31. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +22 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
  33. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  34. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +8 -10
  35. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  38. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +13 -8
  39. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
  40. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +103 -46
  41. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  42. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +9 -27
  43. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
  44. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  45. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  46. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  48. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  49. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  50. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  51. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
  52. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
  53. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  54. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +479 -167
  55. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  56. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
  57. package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
  58. package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
  59. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
  60. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  61. package/src/impaktapps-ui-builder/runtime/services/events.ts +24 -20
  62. package/src/impaktapps-ui-builder/runtime/services/service.ts +151 -47
@@ -178,6 +178,106 @@ export const componentBasicUiSchema: any = (theme)=>{
178
178
  },
179
179
  ],
180
180
  },
181
+ {
182
+ type: "HorizontalLayout",
183
+ config: {
184
+ layout:{xs:12,sm: 6}
185
+ },
186
+ elements: [
187
+ {
188
+ type: "Control",
189
+ scope: "#/properties/RemoveItemButton",
190
+ options: {
191
+ widget: "IconButton",
192
+ },
193
+ config: {
194
+ layout: { xs: 1, sm: 1 },
195
+ main: {
196
+ onClick: "RemoveItemButton",
197
+ size: "large",
198
+ icon: "RejectIcon",
199
+ styleDefault: true,
200
+ },
201
+ style:{
202
+ marginLeft: "-10px"
203
+ }
204
+ },
205
+ },
206
+
207
+ {
208
+ type: "Control",
209
+ scope: "#/properties/copiedElementDetails",
210
+
211
+ options: {
212
+ widget: "Box",
213
+ },
214
+ config: {
215
+ layout: { xs: 6, sm: 6 },
216
+ main: {
217
+ heading: "No element copied",
218
+ },
219
+ style: {
220
+ color: "#535557",
221
+ marginLeft: "-10px",
222
+ fontSize: "12px",
223
+ marginTop: "4px"
224
+ },
225
+ },
226
+ },
227
+ {
228
+ type: "Control",
229
+ scope: "#/properties/EmptyBox",
230
+ options: {
231
+ widget: "EmptyBox",
232
+ },
233
+ config: {
234
+ layout: { xs: 1, sm: 5 },
235
+ },
236
+ },
237
+ ]
238
+ },
239
+ {
240
+ type: "Control",
241
+ scope: "#/properties/btn",
242
+ options: {
243
+ widget: "Button",
244
+ },
245
+
246
+ config: {
247
+ layout: { xs: 4, sm: 2 },
248
+ main: {
249
+ name: "Ok",
250
+ startIcon: "ApproveIcon",
251
+ variant: "contained",
252
+ // color: "info",
253
+ type: "text",
254
+ onClick: "okHandler",
255
+ size: "medium",
256
+ },
257
+ },
258
+ },
259
+ {
260
+ type: "Control",
261
+ scope: "#/properties/btnSubmit",
262
+ options: {
263
+ widget: "Button",
264
+ },
265
+
266
+ config: {
267
+ layout: { xs: 4, sm: 2 },
268
+ main: {
269
+ name: "Save & Exit",
270
+ startIcon: "ApproveIcon",
271
+ variant: "contained",
272
+ // color: "info",
273
+ type: "text",
274
+ onClick: "saveHandler",
275
+ size: "medium",
276
+ },
277
+ },
278
+ },
279
+
280
+
181
281
  {
182
282
  type: "Control",
183
283
  scope: "#/properties/popUpComponentSection",
@@ -192,82 +292,115 @@ export const componentBasicUiSchema: any = (theme)=>{
192
292
  lg: 12,
193
293
  },
194
294
  main: {
295
+ title: "WARNING!"
195
296
  },
196
297
  style: {
197
- "& .MuiPaper-root":{
198
- width: '30%',
199
- },
200
- "& .MuiTypography-root":{
201
- padding: 0
202
- },
203
298
  }
204
299
  },
205
300
  elements:
206
301
  [
207
302
  {
208
303
  type: "Control",
209
- scope: "#/properties/label",
304
+ scope: "#/properties/popupText",
210
305
  options: {
211
306
  widget: "Box",
212
307
  },
213
308
  config: {
214
- layout: 12,
309
+ layout: 11,
215
310
  main: {
216
311
  heading: "Are you sure you want to delete ?",
217
312
  },
218
313
  style:{
219
- marginTop: "-40px"
314
+ marginTop: "-20px",
315
+ fontSize: "20px",
316
+ "&.MuiTypography-root": {
317
+ padding: "10px 30px 20px 30px",
318
+ textAlign: "center",
319
+ lineHeight: "1"
320
+ }
220
321
  }
221
322
  },
222
323
  },
223
324
  {
224
- type: "Control",
225
- scope: "#/properties/EmptyBox",
226
- options: {
227
- widget: "EmptyBox",
228
- },
325
+ type: "WrapperLayout",
229
326
  config: {
230
- main:{},
231
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
232
- },
233
- },
234
- {
235
- type: "Control",
236
- scope: "#/properties/ConfirmDeleteCompButton",
237
- options: {
238
- widget: "Button",
327
+ layout: 11,
328
+ main: {},
329
+
239
330
  },
240
- config: {
241
- layout: 3,
242
- main: {
243
- name: "Yes",
244
- startIcon: "ApproveIcon",
245
- variant: "contained",
246
- color: "error",
247
- type: "text",
248
- onClick: "deleteComponents",
249
- size: "small",
331
+ elements: [
332
+ {
333
+ type: "Control",
334
+ scope: "#/properties/CancelDeleteCompButton",
335
+ options: {
336
+ widget: "Button",
337
+ },
338
+ config: {
339
+ layout: 6,
340
+ main: {
341
+ name: "No",
342
+ startIcon: "ApproveIcon",
343
+ variant: "contained",
344
+ color: "info",
345
+ type: "text",
346
+ onClick: "deletePopUpComponent",
347
+ size: "large",
348
+ },
349
+ style: {
350
+ position: "absolute",
351
+ bottom: 0,
352
+ left: 0,
353
+ width: "50%",
354
+ borderRadius: 0,
355
+ boxShadow: 0,
356
+ backgroundColor: "transparent",
357
+ color: theme.palette.primary.main,
358
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
359
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
360
+ "&:hover": {
361
+ color: theme.palette.primary.contrastText,
362
+ backgroundColor: theme.palette.primary.main,
363
+ boxShadow: "none"
364
+ }
365
+ }
366
+ },
250
367
  },
251
- },
252
- },
253
- {
254
- type: "Control",
255
- scope: "#/properties/CancelDeleteCompButton",
256
- options: {
257
- widget: "Button",
258
- },
259
- config: {
260
- layout: 3,
261
- main: {
262
- name: "No",
263
- startIcon: "ApproveIcon",
264
- variant: "contained",
265
- color: "info",
266
- type: "text",
267
- onClick: "deletePopUpComponent",
268
- size: "small",
368
+ {
369
+ type: "Control",
370
+ scope: "#/properties/ConfirmDeleteCompButton",
371
+ options: {
372
+ widget: "Button",
373
+ },
374
+ config: {
375
+ layout: 6,
376
+ main: {
377
+ name: "Yes",
378
+ startIcon: "ApproveIcon",
379
+ variant: "contained",
380
+ color: "error",
381
+ type: "text",
382
+ onClick: "deleteComponents",
383
+ size: "large",
384
+ },
385
+ style: {
386
+ position: "absolute",
387
+ bottom: 0,
388
+ right: 0,
389
+ width: "50%",
390
+ borderRadius: 0,
391
+ boxShadow: 0,
392
+ backgroundColor: "transparent",
393
+ color: theme.palette.error.main,
394
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
395
+ "&:hover": {
396
+ color: theme.palette.error.contrastText,
397
+ backgroundColor: theme.palette.error.main,
398
+ boxShadow: "none"
399
+ }
400
+ }
401
+ },
269
402
  },
270
- },
403
+ ]
271
404
  },
272
405
  ]
273
406
  },
@@ -285,134 +418,117 @@ export const componentBasicUiSchema: any = (theme)=>{
285
418
  lg: 12,
286
419
  },
287
420
  main: {
421
+ title: "WARNING!"
288
422
  },
289
423
  style: {
290
- "& .MuiPaper-root":{
291
- width: '30%',
292
- },
293
- "& .MuiTypography-root":{
294
- padding: 0
295
- },
296
424
  }
297
425
  },
298
426
  elements:
299
427
  [
300
428
  {
301
429
  type: "Control",
302
- scope: "#/properties/label",
430
+ scope: "#/properties/popupText1",
303
431
  options: {
304
432
  widget: "Box",
305
433
  },
306
434
  config: {
307
- layout: 12,
435
+ layout: 11,
308
436
  main: {
309
437
  heading: "Are you sure you want to delete ?",
310
438
  },
311
439
  style:{
312
- marginTop: "-40px"
440
+ marginTop: "-20px",
441
+ fontSize: "20px",
442
+ "&.MuiTypography-root": {
443
+ padding: "10px 30px 20px 30px",
444
+ textAlign: "center",
445
+ lineHeight: "1"
446
+ }
313
447
  }
314
448
  },
315
449
  },
316
450
  {
317
- type: "Control",
318
- scope: "#/properties/EmptyBox",
319
- options: {
320
- widget: "EmptyBox",
321
- },
451
+ type: "WrapperLayout",
322
452
  config: {
323
- main:{},
324
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
325
- },
326
- },
327
- {
328
- type: "Control",
329
- scope: "#/properties/ConfirmDeleteEventButton",
330
- options: {
331
- widget: "Button",
453
+ layout: 11,
454
+ main: {},
455
+
332
456
  },
333
- config: {
334
- layout: 3,
335
- main: {
336
- name: "Yes",
337
- startIcon: "ApproveIcon",
338
- variant: "contained",
339
- color: "info",
340
- type: "text",
341
- onClick: "deleteEvent",
342
- size: "small",
457
+ elements: [
458
+ {
459
+ type: "Control",
460
+ scope: "#/properties/CancelDeleteEventButton",
461
+ options: {
462
+ widget: "Button",
463
+ },
464
+ config: {
465
+ layout: 6,
466
+ main: {
467
+ name: "No",
468
+ startIcon: "ApproveIcon",
469
+ variant: "contained",
470
+ color: "info",
471
+ type: "text",
472
+ onClick: "deletePopUpEvent",
473
+ size: "large",
474
+ },
475
+ style: {
476
+ position: "absolute",
477
+ bottom: 0,
478
+ left: 0,
479
+ width: "50%",
480
+ borderRadius: 0,
481
+ boxShadow: 0,
482
+ backgroundColor: "transparent",
483
+ color: theme.palette.primary.main,
484
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
485
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
486
+ "&:hover": {
487
+ color: theme.palette.primary.contrastText,
488
+ backgroundColor: theme.palette.primary.main,
489
+ boxShadow: "none"
490
+ }
491
+ }
492
+ },
343
493
  },
344
- },
345
- },
346
- {
347
- type: "Control",
348
- scope: "#/properties/CancelDeleteEventButton",
349
- options: {
350
- widget: "Button",
351
- },
352
- config: {
353
- layout: 3,
354
- main: {
355
- name: "No",
356
- startIcon: "ApproveIcon",
357
- variant: "contained",
358
- color: "info",
359
- type: "text",
360
- onClick: "deletePopUpEvent",
361
- size: "small",
494
+ {
495
+ type: "Control",
496
+ scope: "#/properties/ConfirmDeleteEventButton",
497
+ options: {
498
+ widget: "Button",
499
+ },
500
+ config: {
501
+ layout: 6,
502
+ main: {
503
+ name: "Yes",
504
+ startIcon: "ApproveIcon",
505
+ variant: "contained",
506
+ color: "error",
507
+ type: "text",
508
+ onClick: "deleteEvent",
509
+ size: "large",
510
+ },
511
+ style: {
512
+ position: "absolute",
513
+ bottom: 0,
514
+ right: 0,
515
+ width: "50%",
516
+ borderRadius: 0,
517
+ boxShadow: 0,
518
+ backgroundColor: "transparent",
519
+ color: theme.palette.error.main,
520
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
521
+ "&:hover": {
522
+ color: theme.palette.error.contrastText,
523
+ backgroundColor: theme.palette.error.main,
524
+ boxShadow: "none"
525
+ }
526
+ }
527
+ },
362
528
  },
363
- },
529
+ ]
364
530
  },
365
531
  ]
366
- },
367
- {
368
- type: "Control",
369
- scope: "#/properties/EmptyBox",
370
- options: {
371
- widget: "EmptyBox",
372
- },
373
- config: {
374
- layout: { xs: 4, sm: 8 },
375
- },
376
- },
377
- {
378
- type: "Control",
379
- scope: "#/properties/btn",
380
- options: {
381
- widget: "Button",
382
- },
383
-
384
- config: {
385
- layout: { xs: 4, sm: 2 },
386
- main: {
387
- name: "Ok",
388
- startIcon: "ApproveIcon",
389
- variant: "contained",
390
- // color: "info",
391
- type: "text",
392
- onClick: "okHandler",
393
- size: "medium",
394
- },
395
- },
396
- },
397
- {
398
- type: "Control",
399
- scope: "#/properties/btnSubmit",
400
- options: {
401
- widget: "Button",
402
- },
403
-
404
- config: {
405
- layout: { xs: 4, sm: 2 },
406
- main: {
407
- name: "Save & Exit",
408
- startIcon: "ApproveIcon",
409
- variant: "contained",
410
- // color: "info",
411
- type: "text",
412
- onClick: "saveHandler",
413
- size: "medium",
414
- },
415
- },
416
532
  },
417
533
  {
418
534
  type: "Control",
@@ -422,26 +538,130 @@ export const componentBasicUiSchema: any = (theme)=>{
422
538
  },
423
539
  layout: 6,
424
540
  },
541
+ // {
542
+ // type: "HorizontalLayout",
543
+ // config: {
544
+ // main: {
545
+ // direction: 'row'
546
+ // },
547
+ // style: {
548
+ // flexDirection: "row",
549
+ // position: "absolute",
550
+ // bottom: 0,
551
+ // marginBottom: '-8px',
552
+ // height: 'fit-content',
553
+ // overflow: 'hidden',
554
+ // zIndex: 1000,
555
+ // width: 'inherit'
556
+ // }
557
+ // },
558
+ // elements: [
559
+ // {
560
+
561
+ // type: "Control",
562
+ // scope: "#/properties/FooterText",
563
+ // options: {
564
+ // widget: "Box",
565
+ // },
566
+ // config: {
567
+ // main: {
568
+ // heading: "Copywriter@ACT21.IO"
569
+ // },
570
+ // style: {
571
+ // color: theme?.palette?.text.disabled || "#AFAFAF",
572
+ // fontSize: '11px',
573
+ // textAlign: 'center',
574
+ // lineHeight: 2,
575
+ // width: 'fit-content',
576
+ // left: '50%',
577
+ // position: 'relative',
578
+ // margin: 0,
579
+ // flexGrow: 1,
580
+ // height: 0,
581
+ // transform: "translate(-50%,0%)"
582
+ // }
583
+ // },
584
+ // },
585
+ // {
586
+ // type: "Control",
587
+ // scope: "#/properties/backIcon",
588
+ // options: {
589
+ // widget: "Box",
590
+ // },
591
+ // config: {
592
+ // main: {
593
+ // iconName: 'PrevIcon',
594
+ // onClick: "backHandler",
595
+ // width: 'fit-content',
596
+ // },
597
+ // style: {
598
+ // fill: theme.palette.primary.main,
599
+ // width: 20,
600
+ // height: 0,
601
+ // margin: 0,
602
+ // top: 0,
603
+ // right: {xs: '12px', sm: '84px'},
604
+ // position: 'absolute',
605
+ // fontSize: '12px',
606
+ // cursor: 'pointer',
607
+ // ':hover': {
608
+ // fill: theme.palette.primary.dark,
609
+ // }
610
+ // }
611
+ // }
612
+ // },
613
+ // {
614
+ // type: "Control",
615
+ // scope: "#/properties/text",
616
+
617
+ // options: {
618
+ // widget: "Box",
619
+ // },
620
+ // config: {
621
+ // main: {
622
+ // heading: "Previous Page",
623
+ // onClick: "backHandler"
624
+ // },
625
+ // style: {
626
+ // display: {xs: 'none', sm: "flex"},
627
+ // textAlign: 'left',
628
+ // lineHeight: 1,
629
+ // height: 0,
630
+ // width: 'fit-content',
631
+ // color: theme.palette.primary.main,
632
+ // fontSize: "12px",
633
+ // cursor: 'pointer',
634
+ // marginLeft: '2px',
635
+ // marginRight: 0,
636
+ // top: 3,
637
+ // right: '12px',
638
+ // position: 'absolute',
639
+ // ':hover': {
640
+ // color: theme.palette.primary.dark,
641
+ // }
642
+ // }
643
+ // },
644
+ // },
645
+ // ]
646
+ // }
425
647
  {
426
648
  type: "HorizontalLayout",
427
649
  config: {
428
650
  main: {
429
- direction: 'row'
651
+ direction: "row",
430
652
  },
431
653
  style: {
432
654
  flexDirection: "row",
433
655
  position: "absolute",
434
656
  bottom: 0,
435
- marginBottom: '-8px',
436
- height: 'fit-content',
437
- overflow: 'hidden',
657
+ height: "fit-content",
658
+ overflow: "hidden",
438
659
  zIndex: 1000,
439
- width: 'inherit'
440
- }
660
+ width: "inherit",
661
+ },
441
662
  },
442
663
  elements: [
443
664
  {
444
-
445
665
  type: "Control",
446
666
  scope: "#/properties/FooterText",
447
667
  options: {
@@ -449,83 +669,85 @@ export const componentBasicUiSchema: any = (theme)=>{
449
669
  },
450
670
  config: {
451
671
  main: {
452
- heading: "Copywriter@ACT21.IO"
672
+ heading: "Copywriter@ACT21.IO",
453
673
  },
454
674
  style: {
455
- color: theme?.palette?.text.disabled || "#AFAFAF",
456
- fontSize: '12px',
457
- textAlign: 'center',
458
- lineHeight: 1,
459
- width: 'fit-content',
460
- left: '50%',
461
- position: 'relative',
675
+ color: theme?.palette?.text?.disabled || "#AFAFAF",
676
+ fontSize: "11px",
677
+ textAlign: "center",
678
+ lineHeight: 2,
679
+ width: "fit-content",
680
+ left: "50%",
681
+ position: "relative",
462
682
  margin: 0,
463
683
  flexGrow: 1,
464
- height: 0
465
- }
684
+ height: 0,
685
+ transform: "translate(-50%, 0%)",
686
+ },
466
687
  },
467
688
  },
468
689
  {
469
690
  type: "Control",
470
- scope: "#/properties/backIcon",
691
+ scope: "#/properties/FooterBackIcon",
471
692
  options: {
472
693
  widget: "Box",
473
694
  },
474
695
  config: {
475
696
  main: {
476
- iconName: 'PrevIcon',
697
+ iconName: "PrevIcon",
477
698
  onClick: "backHandler",
478
- width: 'fit-content',
699
+ width: "fit-content",
479
700
  },
480
701
  style: {
481
- fill: theme.palette.primary.main,
702
+ fill: theme?.palette?.primary?.main,
482
703
  width: 20,
483
704
  height: 0,
484
- margin: 0,
705
+ // margin: 0,
485
706
  top: 0,
486
- right: {xs: '12px', sm: '84px'},
487
- position: 'absolute',
488
- fontSize: '12px',
489
- cursor: 'pointer',
490
- ':hover': {
491
- fill: theme.palette.primary.dark,
492
- }
493
- }
494
- }
707
+ right: { xs: "12px", sm: "84px" },
708
+ position: "absolute",
709
+ fontSize: "12px",
710
+ cursor: "pointer",
711
+ ":hover": {
712
+ fill: theme?.palette?.primary?.dark,
713
+ },
714
+ marginRight: "20px",
715
+ },
716
+ },
495
717
  },
496
718
  {
497
719
  type: "Control",
498
- scope: "#/properties/text",
499
-
720
+ scope: "#/properties/FooterBackHandlerText",
500
721
  options: {
501
722
  widget: "Box",
502
723
  },
503
724
  config: {
504
725
  main: {
505
726
  heading: "Previous Page",
506
- onClick: "backHandler"
727
+ onClick: "backHandler",
507
728
  },
508
729
  style: {
509
- display: {xs: 'none', sm: "flex"},
510
- textAlign: 'left',
730
+ display: { xs: "none", sm: "flex" },
731
+ textAlign: "left",
511
732
  lineHeight: 1,
512
733
  height: 0,
513
- width: 'fit-content',
514
- color: theme.palette.primary.main,
734
+ width: "fit-content",
735
+ color: theme?.palette?.primary?.main,
515
736
  fontSize: "12px",
516
- cursor: 'pointer',
517
- marginLeft: '2px',
518
- marginRight: 0,
737
+ cursor: "pointer",
738
+ marginLeft: "2px",
739
+
519
740
  top: 3,
520
- right: '12px',
521
- position: 'absolute',
522
- ':hover': {
523
- color: theme.palette.primary.dark,
524
- }
525
- }
741
+ right: "12px",
742
+ position: "absolute",
743
+ ":hover": {
744
+ color: theme?.palette?.primary?.dark,
745
+ },
746
+ marginRight: "4px",
747
+ },
526
748
  },
527
749
  },
528
- ]
750
+ ],
529
751
  }
530
752
  ],
531
753
  };