impaktapps-ui-builder 0.0.100 → 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 +1908 -1475
  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 +52 -22
  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 +18 -14
  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 +10 -2
  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 +16 -4
  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 +17 -10
  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 +13 -28
  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 +23 -19
  62. package/src/impaktapps-ui-builder/runtime/services/service.ts +108 -3
@@ -39,12 +39,15 @@ const PageMasterSchema = {
39
39
  }
40
40
  }
41
41
  }
42
+ },
43
+ RemoveItemButton: {
44
+ disabled: true
42
45
  }
43
46
  },
44
47
  required: ["template", "name", "label"]
45
48
  };
46
49
  const PageMasterUiSchema = (theme) => {
47
- var _a;
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
48
51
  const uiSchema = {
49
52
  type: "HorizontalLayout",
50
53
  heading: "Page Master",
@@ -129,7 +132,7 @@ const PageMasterUiSchema = (theme) => {
129
132
  type: "TabLayout",
130
133
  config: {
131
134
  main: {
132
- tabLabels: ["Components", "events"],
135
+ tabLabels: ["Components", "Events"],
133
136
  divider: true
134
137
  },
135
138
  defaultStyle: true
@@ -165,6 +168,27 @@ const PageMasterUiSchema = (theme) => {
165
168
  }
166
169
  }
167
170
  }
171
+ },
172
+ {
173
+ widget: {
174
+ type: "Control",
175
+ scope: "#/properties/Paste_Component",
176
+ options: {
177
+ widget: "IconButton"
178
+ },
179
+ config: {
180
+ main: {
181
+ onClick: "copyPasteElement",
182
+ size: "small",
183
+ icon: "PasteIcon",
184
+ iconLabel: "Paste",
185
+ styleDefault: true
186
+ },
187
+ style: {
188
+ mt: "6px"
189
+ }
190
+ }
191
+ }
168
192
  }
169
193
  ]
170
194
  },
@@ -224,6 +248,25 @@ const PageMasterUiSchema = (theme) => {
224
248
  }
225
249
  }
226
250
  }
251
+ },
252
+ {
253
+ header: "Copy",
254
+ field: "Copy_Component",
255
+ flex: 1,
256
+ widget: {
257
+ type: "Control",
258
+ scope: "#/properties/Copy_Component",
259
+ options: {
260
+ widget: "IconButton"
261
+ },
262
+ config: {
263
+ main: {
264
+ icon: "FileCopyIcon",
265
+ onClick: "copyPasteElement",
266
+ styleDefault: true
267
+ }
268
+ }
269
+ }
227
270
  }
228
271
  ]
229
272
  },
@@ -257,6 +300,27 @@ const PageMasterUiSchema = (theme) => {
257
300
  }
258
301
  }
259
302
  }
303
+ },
304
+ {
305
+ widget: {
306
+ type: "Control",
307
+ scope: "#/properties/Paste_Event",
308
+ options: {
309
+ widget: "IconButton"
310
+ },
311
+ config: {
312
+ main: {
313
+ onClick: "copyPasteElement",
314
+ size: "small",
315
+ icon: "PasteIcon",
316
+ iconLabel: "Paste",
317
+ styleDefault: true
318
+ },
319
+ style: {
320
+ mt: "6px"
321
+ }
322
+ }
323
+ }
260
324
  }
261
325
  ]
262
326
  },
@@ -315,20 +379,85 @@ const PageMasterUiSchema = (theme) => {
315
379
  }
316
380
  }
317
381
  }
382
+ },
383
+ {
384
+ header: "Copy",
385
+ field: "Copy_Event",
386
+ flex: 1,
387
+ widget: {
388
+ type: "Control",
389
+ scope: "#/properties/Copy_Event",
390
+ options: {
391
+ widget: "IconButton"
392
+ },
393
+ config: {
394
+ main: {
395
+ icon: "FileCopyIcon",
396
+ onClick: "copyPasteElement",
397
+ styleDefault: true
398
+ }
399
+ }
400
+ }
318
401
  }
319
402
  ]
320
403
  }
321
404
  ]
322
405
  },
323
406
  {
324
- type: "Control",
325
- scope: "#/properties/btn",
326
- options: {
327
- widget: "EmptyBox"
328
- },
407
+ type: "HorizontalLayout",
329
408
  config: {
330
- layout: { xs: 8, sm: 10 }
331
- }
409
+ layout: { xs: 12, sm: 9 }
410
+ },
411
+ elements: [
412
+ {
413
+ type: "Control",
414
+ scope: "#/properties/RemoveItemButton",
415
+ options: {
416
+ widget: "IconButton"
417
+ },
418
+ config: {
419
+ layout: { xs: 1, sm: 1 },
420
+ main: {
421
+ onClick: "RemoveItemButton",
422
+ size: "large",
423
+ icon: "RejectIcon",
424
+ styleDefault: true
425
+ },
426
+ style: {
427
+ marginLeft: "-5px"
428
+ }
429
+ }
430
+ },
431
+ {
432
+ type: "Control",
433
+ scope: "#/properties/copiedElementDetails",
434
+ options: {
435
+ widget: "Box"
436
+ },
437
+ config: {
438
+ layout: { xs: 6, sm: 6 },
439
+ main: {
440
+ heading: "No element copied"
441
+ },
442
+ style: {
443
+ color: "#535557",
444
+ marginLeft: "-30px",
445
+ fontSize: "12px",
446
+ marginTop: "4px"
447
+ }
448
+ }
449
+ },
450
+ {
451
+ type: "Control",
452
+ scope: "#/properties/EmptyBox",
453
+ options: {
454
+ widget: "EmptyBox"
455
+ },
456
+ config: {
457
+ layout: { xs: 1, sm: 5 }
458
+ }
459
+ }
460
+ ]
332
461
  },
333
462
  {
334
463
  type: "Control",
@@ -358,84 +487,116 @@ const PageMasterUiSchema = (theme) => {
358
487
  layout: {
359
488
  xs: 12,
360
489
  sm: 12,
361
- md: 6,
362
- lg: 6
490
+ md: 12,
491
+ lg: 12
363
492
  },
364
- main: {},
365
- style: {
366
- "& .MuiPaper-root": {
367
- width: "30%"
368
- },
369
- "& .MuiTypography-root": {
370
- padding: 0
371
- }
372
- }
493
+ main: {
494
+ title: "WARNING!"
495
+ },
496
+ style: {}
373
497
  },
374
498
  elements: [
375
499
  {
376
500
  type: "Control",
377
- scope: "#/properties/label",
501
+ scope: "#/properties/popText",
378
502
  options: {
379
503
  widget: "Box"
380
504
  },
381
505
  config: {
382
- layout: 12,
506
+ layout: 11,
383
507
  main: {
384
508
  heading: "Are you sure you want to delete ?"
385
509
  },
386
510
  style: {
387
- marginTop: "-40px"
511
+ marginTop: "-20px",
512
+ fontSize: "20px",
513
+ "&.MuiTypography-root": {
514
+ padding: "10px 30px 20px 30px",
515
+ textAlign: "center",
516
+ lineHeight: "1"
517
+ }
388
518
  }
389
519
  }
390
520
  },
391
521
  {
392
- type: "Control",
393
- scope: "#/properties/EmptyBox",
394
- options: {
395
- widget: "EmptyBox"
396
- },
397
- config: {
398
- main: {},
399
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
400
- }
401
- },
402
- {
403
- type: "Control",
404
- scope: "#/properties/ConfirmDeleteCompButton",
405
- options: {
406
- widget: "Button"
407
- },
522
+ type: "WrapperLayout",
408
523
  config: {
409
- layout: 3,
410
- main: {
411
- name: "Yes",
412
- startIcon: "ApproveIcon",
413
- variant: "contained",
414
- color: "info",
415
- type: "text",
416
- onClick: "Delete_Components",
417
- size: "small"
418
- }
419
- }
420
- },
421
- {
422
- type: "Control",
423
- scope: "#/properties/CancelDeleteCompButton",
424
- options: {
425
- widget: "Button"
524
+ layout: 11,
525
+ main: {}
426
526
  },
427
- config: {
428
- layout: 3,
429
- main: {
430
- name: "No",
431
- startIcon: "ApproveIcon",
432
- variant: "contained",
433
- color: "info",
434
- type: "text",
435
- onClick: "deletePopUpComponent",
436
- size: "small"
527
+ elements: [
528
+ {
529
+ type: "Control",
530
+ scope: "#/properties/CancelDeleteCompButton",
531
+ options: {
532
+ widget: "Button"
533
+ },
534
+ config: {
535
+ layout: 6,
536
+ main: {
537
+ name: "No",
538
+ startIcon: "ApproveIcon",
539
+ variant: "contained",
540
+ color: "info",
541
+ type: "text",
542
+ onClick: "deletePopUpComponent",
543
+ size: "large"
544
+ },
545
+ style: {
546
+ position: "absolute",
547
+ bottom: 0,
548
+ left: 0,
549
+ width: "50%",
550
+ borderRadius: 0,
551
+ boxShadow: 0,
552
+ backgroundColor: "transparent",
553
+ color: theme.palette.primary.main,
554
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
555
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
556
+ "&:hover": {
557
+ color: theme.palette.primary.contrastText,
558
+ backgroundColor: theme.palette.primary.main,
559
+ boxShadow: "none"
560
+ }
561
+ }
562
+ }
563
+ },
564
+ {
565
+ type: "Control",
566
+ scope: "#/properties/ConfirmDeleteCompButton",
567
+ options: {
568
+ widget: "Button"
569
+ },
570
+ config: {
571
+ layout: 6,
572
+ main: {
573
+ name: "Yes",
574
+ startIcon: "ApproveIcon",
575
+ variant: "contained",
576
+ color: "error",
577
+ type: "text",
578
+ onClick: "Delete_Components",
579
+ size: "large"
580
+ },
581
+ style: {
582
+ position: "absolute",
583
+ bottom: 0,
584
+ right: 0,
585
+ width: "50%",
586
+ borderRadius: 0,
587
+ boxShadow: 0,
588
+ backgroundColor: "transparent",
589
+ color: theme.palette.error.main,
590
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
591
+ "&:hover": {
592
+ color: theme.palette.error.contrastText,
593
+ backgroundColor: theme.palette.error.main,
594
+ boxShadow: "none"
595
+ }
596
+ }
597
+ }
437
598
  }
438
- }
599
+ ]
439
600
  }
440
601
  ]
441
602
  },
@@ -449,84 +610,116 @@ const PageMasterUiSchema = (theme) => {
449
610
  layout: {
450
611
  xs: 12,
451
612
  sm: 12,
452
- md: 6,
453
- lg: 6
613
+ md: 12,
614
+ lg: 12
454
615
  },
455
- main: {},
456
- style: {
457
- "& .MuiPaper-root": {
458
- width: "30%"
459
- },
460
- "& .MuiTypography-root": {
461
- padding: 0
462
- }
463
- }
616
+ main: {
617
+ title: "WARNING!"
618
+ },
619
+ style: {}
464
620
  },
465
621
  elements: [
466
622
  {
467
623
  type: "Control",
468
- scope: "#/properties/label",
624
+ scope: "#/properties/popText1",
469
625
  options: {
470
626
  widget: "Box"
471
627
  },
472
628
  config: {
473
- layout: 12,
629
+ layout: 11,
474
630
  main: {
475
631
  heading: "Are you sure you want to delete ?"
476
632
  },
477
633
  style: {
478
- marginTop: "-40px"
634
+ marginTop: "-20px",
635
+ fontSize: "20px",
636
+ "&.MuiTypography-root": {
637
+ padding: "10px 30px 20px 30px",
638
+ textAlign: "center",
639
+ lineHeight: "1"
640
+ }
479
641
  }
480
642
  }
481
643
  },
482
644
  {
483
- type: "Control",
484
- scope: "#/properties/EmptyBox",
485
- options: {
486
- widget: "EmptyBox"
487
- },
488
- config: {
489
- main: {},
490
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
491
- }
492
- },
493
- {
494
- type: "Control",
495
- scope: "#/properties/ConfirmDeleteEventButton",
496
- options: {
497
- widget: "Button"
498
- },
645
+ type: "WrapperLayout",
499
646
  config: {
500
- layout: 3,
501
- main: {
502
- name: "Yes",
503
- startIcon: "ApproveIcon",
504
- variant: "contained",
505
- color: "info",
506
- type: "text",
507
- onClick: "deleteEvent",
508
- size: "small"
509
- }
510
- }
511
- },
512
- {
513
- type: "Control",
514
- scope: "#/properties/CancelDeleteEventButton",
515
- options: {
516
- widget: "Button"
647
+ layout: 11,
648
+ main: {}
517
649
  },
518
- config: {
519
- layout: 3,
520
- main: {
521
- name: "No",
522
- startIcon: "ApproveIcon",
523
- variant: "contained",
524
- color: "error",
525
- type: "text",
526
- onClick: "deletePopUpEvent",
527
- size: "small"
650
+ elements: [
651
+ {
652
+ type: "Control",
653
+ scope: "#/properties/CancelDeleteEventButton",
654
+ options: {
655
+ widget: "Button"
656
+ },
657
+ config: {
658
+ layout: 6,
659
+ main: {
660
+ name: "No",
661
+ startIcon: "ApproveIcon",
662
+ variant: "contained",
663
+ color: "info",
664
+ type: "text",
665
+ onClick: "deletePopUpEvent",
666
+ size: "large"
667
+ },
668
+ style: {
669
+ position: "absolute",
670
+ bottom: 0,
671
+ left: 0,
672
+ width: "50%",
673
+ borderRadius: 0,
674
+ boxShadow: 0,
675
+ backgroundColor: "transparent",
676
+ color: theme.palette.primary.main,
677
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
678
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
679
+ "&:hover": {
680
+ color: theme.palette.primary.contrastText,
681
+ backgroundColor: theme.palette.primary.main,
682
+ boxShadow: "none"
683
+ }
684
+ }
685
+ }
686
+ },
687
+ {
688
+ type: "Control",
689
+ scope: "#/properties/ConfirmDeleteEventButton",
690
+ options: {
691
+ widget: "Button"
692
+ },
693
+ config: {
694
+ layout: 6,
695
+ main: {
696
+ name: "Yes",
697
+ startIcon: "ApproveIcon",
698
+ variant: "contained",
699
+ color: "error",
700
+ type: "text",
701
+ onClick: "deleteEvent",
702
+ size: "large"
703
+ },
704
+ style: {
705
+ position: "absolute",
706
+ bottom: 0,
707
+ right: 0,
708
+ width: "50%",
709
+ borderRadius: 0,
710
+ boxShadow: 0,
711
+ backgroundColor: "transparent",
712
+ color: theme.palette.error.main,
713
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
714
+ "&:hover": {
715
+ color: theme.palette.error.contrastText,
716
+ backgroundColor: theme.palette.error.main,
717
+ boxShadow: "none"
718
+ }
719
+ }
720
+ }
528
721
  }
529
- }
722
+ ]
530
723
  }
531
724
  ]
532
725
  },
@@ -548,7 +741,6 @@ const PageMasterUiSchema = (theme) => {
548
741
  flexDirection: "row",
549
742
  position: "absolute",
550
743
  bottom: 0,
551
- marginBottom: "-8px",
552
744
  height: "fit-content",
553
745
  overflow: "hidden",
554
746
  zIndex: 1e3,
@@ -567,22 +759,23 @@ const PageMasterUiSchema = (theme) => {
567
759
  heading: "Copywriter@ACT21.IO"
568
760
  },
569
761
  style: {
570
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
571
- fontSize: "12px",
762
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
763
+ fontSize: "11px",
572
764
  textAlign: "center",
573
- lineHeight: 1,
765
+ lineHeight: 2,
574
766
  width: "fit-content",
575
767
  left: "50%",
576
768
  position: "relative",
577
769
  margin: 0,
578
770
  flexGrow: 1,
579
- height: 0
771
+ height: 0,
772
+ transform: "translate(-50%, 0%)"
580
773
  }
581
774
  }
582
775
  },
583
776
  {
584
777
  type: "Control",
585
- scope: "#/properties/backIcon",
778
+ scope: "#/properties/FooterBackIcon",
586
779
  options: {
587
780
  widget: "Box"
588
781
  },
@@ -593,24 +786,24 @@ const PageMasterUiSchema = (theme) => {
593
786
  width: "fit-content"
594
787
  },
595
788
  style: {
596
- fill: theme.palette.primary.main,
789
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
597
790
  width: 20,
598
791
  height: 0,
599
- margin: 0,
600
792
  top: 0,
601
793
  right: { xs: "12px", sm: "84px" },
602
794
  position: "absolute",
603
795
  fontSize: "12px",
604
796
  cursor: "pointer",
605
797
  ":hover": {
606
- fill: theme.palette.primary.dark
607
- }
798
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
799
+ },
800
+ marginRight: "20px"
608
801
  }
609
802
  }
610
803
  },
611
804
  {
612
805
  type: "Control",
613
- scope: "#/properties/text",
806
+ scope: "#/properties/FooterBackHandlerText",
614
807
  options: {
615
808
  widget: "Box"
616
809
  },
@@ -625,17 +818,17 @@ const PageMasterUiSchema = (theme) => {
625
818
  lineHeight: 1,
626
819
  height: 0,
627
820
  width: "fit-content",
628
- color: theme.palette.primary.main,
821
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
629
822
  fontSize: "12px",
630
823
  cursor: "pointer",
631
824
  marginLeft: "2px",
632
- marginRight: 0,
633
825
  top: 3,
634
826
  right: "12px",
635
827
  position: "absolute",
636
828
  ":hover": {
637
- color: theme.palette.primary.dark
638
- }
829
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
830
+ },
831
+ marginRight: "4px"
639
832
  }
640
833
  }
641
834
  }
@@ -6126,7 +6319,9 @@ const ComponentSchema = {
6126
6319
  { title: "Timer", const: "Timer" },
6127
6320
  { title: "Upload File", const: "UploadFile" },
6128
6321
  { title: "TreeMap", const: "TreeMap" },
6129
- { title: "ColumnGroup", const: "ColumnGroup" }
6322
+ { title: "ColumnGroup", const: "ColumnGroup" },
6323
+ { title: "Thought of the Day", const: "Thought" },
6324
+ { title: "Pdf Viewer", const: "PdfViewer" }
6130
6325
  ]
6131
6326
  },
6132
6327
  columnFormat: {
@@ -6415,12 +6610,15 @@ const ComponentSchema = {
6415
6610
  name: {
6416
6611
  type: "string"
6417
6612
  },
6418
- label: { type: "string" }
6613
+ label: { type: "string" },
6614
+ RemoveItemButton: {
6615
+ disabled: true
6616
+ }
6419
6617
  },
6420
6618
  required: ["name"]
6421
6619
  };
6422
6620
  const componentBasicUiSchema = (theme) => {
6423
- var _a;
6621
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
6424
6622
  const uiSchema = {
6425
6623
  type: "HorizontalLayout",
6426
6624
  heading: "Component",
@@ -6591,99 +6789,100 @@ const componentBasicUiSchema = (theme) => {
6591
6789
  ]
6592
6790
  },
6593
6791
  {
6594
- type: "Control",
6595
- scope: "#/properties/popUpComponentSection",
6596
- options: {
6597
- widget: "PopUp"
6598
- },
6792
+ type: "HorizontalLayout",
6599
6793
  config: {
6600
- layout: {
6601
- xs: 12,
6602
- sm: 12,
6603
- md: 12,
6604
- lg: 12
6605
- },
6606
- main: {},
6607
- style: {
6608
- "& .MuiPaper-root": {
6609
- width: "30%"
6610
- },
6611
- "& .MuiTypography-root": {
6612
- padding: 0
6613
- }
6614
- }
6794
+ layout: { xs: 12, sm: 6 }
6615
6795
  },
6616
6796
  elements: [
6617
6797
  {
6618
6798
  type: "Control",
6619
- scope: "#/properties/label",
6799
+ scope: "#/properties/RemoveItemButton",
6620
6800
  options: {
6621
- widget: "Box"
6801
+ widget: "IconButton"
6622
6802
  },
6623
6803
  config: {
6624
- layout: 12,
6804
+ layout: { xs: 1, sm: 1 },
6625
6805
  main: {
6626
- heading: "Are you sure you want to delete ?"
6806
+ onClick: "RemoveItemButton",
6807
+ size: "large",
6808
+ icon: "RejectIcon",
6809
+ styleDefault: true
6627
6810
  },
6628
6811
  style: {
6629
- marginTop: "-40px"
6812
+ marginLeft: "-10px"
6630
6813
  }
6631
6814
  }
6632
6815
  },
6633
6816
  {
6634
6817
  type: "Control",
6635
- scope: "#/properties/EmptyBox",
6636
- options: {
6637
- widget: "EmptyBox"
6638
- },
6639
- config: {
6640
- main: {},
6641
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6642
- }
6643
- },
6644
- {
6645
- type: "Control",
6646
- scope: "#/properties/ConfirmDeleteCompButton",
6818
+ scope: "#/properties/copiedElementDetails",
6647
6819
  options: {
6648
- widget: "Button"
6820
+ widget: "Box"
6649
6821
  },
6650
6822
  config: {
6651
- layout: 3,
6823
+ layout: { xs: 6, sm: 6 },
6652
6824
  main: {
6653
- name: "Yes",
6654
- startIcon: "ApproveIcon",
6655
- variant: "contained",
6656
- color: "error",
6657
- type: "text",
6658
- onClick: "deleteComponents",
6659
- size: "small"
6825
+ heading: "No element copied"
6826
+ },
6827
+ style: {
6828
+ color: "#535557",
6829
+ marginLeft: "-10px",
6830
+ fontSize: "12px",
6831
+ marginTop: "4px"
6660
6832
  }
6661
6833
  }
6662
6834
  },
6663
6835
  {
6664
6836
  type: "Control",
6665
- scope: "#/properties/CancelDeleteCompButton",
6837
+ scope: "#/properties/EmptyBox",
6666
6838
  options: {
6667
- widget: "Button"
6839
+ widget: "EmptyBox"
6668
6840
  },
6669
6841
  config: {
6670
- layout: 3,
6671
- main: {
6672
- name: "No",
6673
- startIcon: "ApproveIcon",
6674
- variant: "contained",
6675
- color: "info",
6676
- type: "text",
6677
- onClick: "deletePopUpComponent",
6678
- size: "small"
6679
- }
6842
+ layout: { xs: 1, sm: 5 }
6680
6843
  }
6681
6844
  }
6682
6845
  ]
6683
6846
  },
6684
6847
  {
6685
6848
  type: "Control",
6686
- scope: "#/properties/popUpEventSection",
6849
+ scope: "#/properties/btn",
6850
+ options: {
6851
+ widget: "Button"
6852
+ },
6853
+ config: {
6854
+ layout: { xs: 4, sm: 2 },
6855
+ main: {
6856
+ name: "Ok",
6857
+ startIcon: "ApproveIcon",
6858
+ variant: "contained",
6859
+ type: "text",
6860
+ onClick: "okHandler",
6861
+ size: "medium"
6862
+ }
6863
+ }
6864
+ },
6865
+ {
6866
+ type: "Control",
6867
+ scope: "#/properties/btnSubmit",
6868
+ options: {
6869
+ widget: "Button"
6870
+ },
6871
+ config: {
6872
+ layout: { xs: 4, sm: 2 },
6873
+ main: {
6874
+ name: "Save & Exit",
6875
+ startIcon: "ApproveIcon",
6876
+ variant: "contained",
6877
+ type: "text",
6878
+ onClick: "saveHandler",
6879
+ size: "medium"
6880
+ }
6881
+ }
6882
+ },
6883
+ {
6884
+ type: "Control",
6885
+ scope: "#/properties/popUpComponentSection",
6687
6886
  options: {
6688
6887
  widget: "PopUp"
6689
6888
  },
@@ -6694,130 +6893,239 @@ const componentBasicUiSchema = (theme) => {
6694
6893
  md: 12,
6695
6894
  lg: 12
6696
6895
  },
6697
- main: {},
6698
- style: {
6699
- "& .MuiPaper-root": {
6700
- width: "30%"
6701
- },
6702
- "& .MuiTypography-root": {
6703
- padding: 0
6704
- }
6705
- }
6896
+ main: {
6897
+ title: "WARNING!"
6898
+ },
6899
+ style: {}
6706
6900
  },
6707
6901
  elements: [
6708
6902
  {
6709
6903
  type: "Control",
6710
- scope: "#/properties/label",
6904
+ scope: "#/properties/popupText",
6711
6905
  options: {
6712
6906
  widget: "Box"
6713
6907
  },
6714
6908
  config: {
6715
- layout: 12,
6909
+ layout: 11,
6716
6910
  main: {
6717
6911
  heading: "Are you sure you want to delete ?"
6718
6912
  },
6719
6913
  style: {
6720
- marginTop: "-40px"
6914
+ marginTop: "-20px",
6915
+ fontSize: "20px",
6916
+ "&.MuiTypography-root": {
6917
+ padding: "10px 30px 20px 30px",
6918
+ textAlign: "center",
6919
+ lineHeight: "1"
6920
+ }
6721
6921
  }
6722
6922
  }
6723
6923
  },
6724
6924
  {
6725
- type: "Control",
6726
- scope: "#/properties/EmptyBox",
6727
- options: {
6728
- widget: "EmptyBox"
6729
- },
6925
+ type: "WrapperLayout",
6730
6926
  config: {
6731
- main: {},
6732
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6733
- }
6927
+ layout: 11,
6928
+ main: {}
6929
+ },
6930
+ elements: [
6931
+ {
6932
+ type: "Control",
6933
+ scope: "#/properties/CancelDeleteCompButton",
6934
+ options: {
6935
+ widget: "Button"
6936
+ },
6937
+ config: {
6938
+ layout: 6,
6939
+ main: {
6940
+ name: "No",
6941
+ startIcon: "ApproveIcon",
6942
+ variant: "contained",
6943
+ color: "info",
6944
+ type: "text",
6945
+ onClick: "deletePopUpComponent",
6946
+ size: "large"
6947
+ },
6948
+ style: {
6949
+ position: "absolute",
6950
+ bottom: 0,
6951
+ left: 0,
6952
+ width: "50%",
6953
+ borderRadius: 0,
6954
+ boxShadow: 0,
6955
+ backgroundColor: "transparent",
6956
+ color: theme.palette.primary.main,
6957
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
6958
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
6959
+ "&:hover": {
6960
+ color: theme.palette.primary.contrastText,
6961
+ backgroundColor: theme.palette.primary.main,
6962
+ boxShadow: "none"
6963
+ }
6964
+ }
6965
+ }
6966
+ },
6967
+ {
6968
+ type: "Control",
6969
+ scope: "#/properties/ConfirmDeleteCompButton",
6970
+ options: {
6971
+ widget: "Button"
6972
+ },
6973
+ config: {
6974
+ layout: 6,
6975
+ main: {
6976
+ name: "Yes",
6977
+ startIcon: "ApproveIcon",
6978
+ variant: "contained",
6979
+ color: "error",
6980
+ type: "text",
6981
+ onClick: "deleteComponents",
6982
+ size: "large"
6983
+ },
6984
+ style: {
6985
+ position: "absolute",
6986
+ bottom: 0,
6987
+ right: 0,
6988
+ width: "50%",
6989
+ borderRadius: 0,
6990
+ boxShadow: 0,
6991
+ backgroundColor: "transparent",
6992
+ color: theme.palette.error.main,
6993
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
6994
+ "&:hover": {
6995
+ color: theme.palette.error.contrastText,
6996
+ backgroundColor: theme.palette.error.main,
6997
+ boxShadow: "none"
6998
+ }
6999
+ }
7000
+ }
7001
+ }
7002
+ ]
7003
+ }
7004
+ ]
7005
+ },
7006
+ {
7007
+ type: "Control",
7008
+ scope: "#/properties/popUpEventSection",
7009
+ options: {
7010
+ widget: "PopUp"
7011
+ },
7012
+ config: {
7013
+ layout: {
7014
+ xs: 12,
7015
+ sm: 12,
7016
+ md: 12,
7017
+ lg: 12
6734
7018
  },
7019
+ main: {
7020
+ title: "WARNING!"
7021
+ },
7022
+ style: {}
7023
+ },
7024
+ elements: [
6735
7025
  {
6736
7026
  type: "Control",
6737
- scope: "#/properties/ConfirmDeleteEventButton",
7027
+ scope: "#/properties/popupText1",
6738
7028
  options: {
6739
- widget: "Button"
7029
+ widget: "Box"
6740
7030
  },
6741
7031
  config: {
6742
- layout: 3,
7032
+ layout: 11,
6743
7033
  main: {
6744
- name: "Yes",
6745
- startIcon: "ApproveIcon",
6746
- variant: "contained",
6747
- color: "info",
6748
- type: "text",
6749
- onClick: "deleteEvent",
6750
- size: "small"
7034
+ heading: "Are you sure you want to delete ?"
7035
+ },
7036
+ style: {
7037
+ marginTop: "-20px",
7038
+ fontSize: "20px",
7039
+ "&.MuiTypography-root": {
7040
+ padding: "10px 30px 20px 30px",
7041
+ textAlign: "center",
7042
+ lineHeight: "1"
7043
+ }
6751
7044
  }
6752
7045
  }
6753
7046
  },
6754
7047
  {
6755
- type: "Control",
6756
- scope: "#/properties/CancelDeleteEventButton",
6757
- options: {
6758
- widget: "Button"
6759
- },
7048
+ type: "WrapperLayout",
6760
7049
  config: {
6761
- layout: 3,
6762
- main: {
6763
- name: "No",
6764
- startIcon: "ApproveIcon",
6765
- variant: "contained",
6766
- color: "info",
6767
- type: "text",
6768
- onClick: "deletePopUpEvent",
6769
- size: "small"
7050
+ layout: 11,
7051
+ main: {}
7052
+ },
7053
+ elements: [
7054
+ {
7055
+ type: "Control",
7056
+ scope: "#/properties/CancelDeleteEventButton",
7057
+ options: {
7058
+ widget: "Button"
7059
+ },
7060
+ config: {
7061
+ layout: 6,
7062
+ main: {
7063
+ name: "No",
7064
+ startIcon: "ApproveIcon",
7065
+ variant: "contained",
7066
+ color: "info",
7067
+ type: "text",
7068
+ onClick: "deletePopUpEvent",
7069
+ size: "large"
7070
+ },
7071
+ style: {
7072
+ position: "absolute",
7073
+ bottom: 0,
7074
+ left: 0,
7075
+ width: "50%",
7076
+ borderRadius: 0,
7077
+ boxShadow: 0,
7078
+ backgroundColor: "transparent",
7079
+ color: theme.palette.primary.main,
7080
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7081
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
7082
+ "&:hover": {
7083
+ color: theme.palette.primary.contrastText,
7084
+ backgroundColor: theme.palette.primary.main,
7085
+ boxShadow: "none"
7086
+ }
7087
+ }
7088
+ }
7089
+ },
7090
+ {
7091
+ type: "Control",
7092
+ scope: "#/properties/ConfirmDeleteEventButton",
7093
+ options: {
7094
+ widget: "Button"
7095
+ },
7096
+ config: {
7097
+ layout: 6,
7098
+ main: {
7099
+ name: "Yes",
7100
+ startIcon: "ApproveIcon",
7101
+ variant: "contained",
7102
+ color: "error",
7103
+ type: "text",
7104
+ onClick: "deleteEvent",
7105
+ size: "large"
7106
+ },
7107
+ style: {
7108
+ position: "absolute",
7109
+ bottom: 0,
7110
+ right: 0,
7111
+ width: "50%",
7112
+ borderRadius: 0,
7113
+ boxShadow: 0,
7114
+ backgroundColor: "transparent",
7115
+ color: theme.palette.error.main,
7116
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7117
+ "&:hover": {
7118
+ color: theme.palette.error.contrastText,
7119
+ backgroundColor: theme.palette.error.main,
7120
+ boxShadow: "none"
7121
+ }
7122
+ }
7123
+ }
6770
7124
  }
6771
- }
7125
+ ]
6772
7126
  }
6773
7127
  ]
6774
7128
  },
6775
- {
6776
- type: "Control",
6777
- scope: "#/properties/EmptyBox",
6778
- options: {
6779
- widget: "EmptyBox"
6780
- },
6781
- config: {
6782
- layout: { xs: 4, sm: 8 }
6783
- }
6784
- },
6785
- {
6786
- type: "Control",
6787
- scope: "#/properties/btn",
6788
- options: {
6789
- widget: "Button"
6790
- },
6791
- config: {
6792
- layout: { xs: 4, sm: 2 },
6793
- main: {
6794
- name: "Ok",
6795
- startIcon: "ApproveIcon",
6796
- variant: "contained",
6797
- type: "text",
6798
- onClick: "okHandler",
6799
- size: "medium"
6800
- }
6801
- }
6802
- },
6803
- {
6804
- type: "Control",
6805
- scope: "#/properties/btnSubmit",
6806
- options: {
6807
- widget: "Button"
6808
- },
6809
- config: {
6810
- layout: { xs: 4, sm: 2 },
6811
- main: {
6812
- name: "Save & Exit",
6813
- startIcon: "ApproveIcon",
6814
- variant: "contained",
6815
- type: "text",
6816
- onClick: "saveHandler",
6817
- size: "medium"
6818
- }
6819
- }
6820
- },
6821
7129
  {
6822
7130
  type: "Control",
6823
7131
  scope: "#/properties/notify",
@@ -6836,7 +7144,6 @@ const componentBasicUiSchema = (theme) => {
6836
7144
  flexDirection: "row",
6837
7145
  position: "absolute",
6838
7146
  bottom: 0,
6839
- marginBottom: "-8px",
6840
7147
  height: "fit-content",
6841
7148
  overflow: "hidden",
6842
7149
  zIndex: 1e3,
@@ -6855,22 +7162,23 @@ const componentBasicUiSchema = (theme) => {
6855
7162
  heading: "Copywriter@ACT21.IO"
6856
7163
  },
6857
7164
  style: {
6858
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6859
- fontSize: "12px",
7165
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
7166
+ fontSize: "11px",
6860
7167
  textAlign: "center",
6861
- lineHeight: 1,
7168
+ lineHeight: 2,
6862
7169
  width: "fit-content",
6863
7170
  left: "50%",
6864
7171
  position: "relative",
6865
7172
  margin: 0,
6866
7173
  flexGrow: 1,
6867
- height: 0
7174
+ height: 0,
7175
+ transform: "translate(-50%, 0%)"
6868
7176
  }
6869
7177
  }
6870
7178
  },
6871
7179
  {
6872
7180
  type: "Control",
6873
- scope: "#/properties/backIcon",
7181
+ scope: "#/properties/FooterBackIcon",
6874
7182
  options: {
6875
7183
  widget: "Box"
6876
7184
  },
@@ -6881,24 +7189,24 @@ const componentBasicUiSchema = (theme) => {
6881
7189
  width: "fit-content"
6882
7190
  },
6883
7191
  style: {
6884
- fill: theme.palette.primary.main,
7192
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
6885
7193
  width: 20,
6886
7194
  height: 0,
6887
- margin: 0,
6888
7195
  top: 0,
6889
7196
  right: { xs: "12px", sm: "84px" },
6890
7197
  position: "absolute",
6891
7198
  fontSize: "12px",
6892
7199
  cursor: "pointer",
6893
7200
  ":hover": {
6894
- fill: theme.palette.primary.dark
6895
- }
7201
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
7202
+ },
7203
+ marginRight: "20px"
6896
7204
  }
6897
7205
  }
6898
7206
  },
6899
7207
  {
6900
7208
  type: "Control",
6901
- scope: "#/properties/text",
7209
+ scope: "#/properties/FooterBackHandlerText",
6902
7210
  options: {
6903
7211
  widget: "Box"
6904
7212
  },
@@ -6913,17 +7221,17 @@ const componentBasicUiSchema = (theme) => {
6913
7221
  lineHeight: 1,
6914
7222
  height: 0,
6915
7223
  width: "fit-content",
6916
- color: theme.palette.primary.main,
7224
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
6917
7225
  fontSize: "12px",
6918
7226
  cursor: "pointer",
6919
7227
  marginLeft: "2px",
6920
- marginRight: 0,
6921
7228
  top: 3,
6922
7229
  right: "12px",
6923
7230
  position: "absolute",
6924
7231
  ":hover": {
6925
- color: theme.palette.primary.dark
6926
- }
7232
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
7233
+ },
7234
+ marginRight: "4px"
6927
7235
  }
6928
7236
  }
6929
7237
  }
@@ -7098,6 +7406,27 @@ const EventSection = (theme) => {
7098
7406
  }
7099
7407
  }
7100
7408
  }
7409
+ },
7410
+ {
7411
+ widget: {
7412
+ type: "Control",
7413
+ scope: "#/properties/Paste_Event",
7414
+ options: {
7415
+ widget: "IconButton"
7416
+ },
7417
+ config: {
7418
+ main: {
7419
+ onClick: "copyPasteElement",
7420
+ size: "small",
7421
+ icon: "PasteIcon",
7422
+ iconLabel: "Paste",
7423
+ styleDefault: true
7424
+ },
7425
+ style: {
7426
+ mt: "6px"
7427
+ }
7428
+ }
7429
+ }
7101
7430
  }
7102
7431
  ]
7103
7432
  },
@@ -7157,6 +7486,26 @@ const EventSection = (theme) => {
7157
7486
  }
7158
7487
  }
7159
7488
  }
7489
+ },
7490
+ {
7491
+ header: "Copy",
7492
+ field: "Copy_Event",
7493
+ flex: 1,
7494
+ widget: {
7495
+ type: "Control",
7496
+ scope: "#/properties/Copy_Event",
7497
+ options: {
7498
+ widget: "IconButton"
7499
+ },
7500
+ config: {
7501
+ main: {
7502
+ icon: "FileCopyIcon",
7503
+ onClick: "copyPasteElement",
7504
+ tooltipMessage: "Reject This Record",
7505
+ styleDefault: true
7506
+ }
7507
+ }
7508
+ }
7160
7509
  }
7161
7510
  ]
7162
7511
  }
@@ -7321,7 +7670,7 @@ const buildWrapper = (label, elements) => {
7321
7670
  width: "108%"
7322
7671
  },
7323
7672
  componentsBoxStyle: {
7324
- marginLeft: "24px"
7673
+ marginLeft: "12px"
7325
7674
  },
7326
7675
  defaultStyle: true
7327
7676
  },
@@ -7474,22 +7823,19 @@ const buildPropertiesSection = function(type) {
7474
7823
  case "RankCard":
7475
7824
  uiSchema.elements = [
7476
7825
  getInputField("rank", "Rank"),
7477
- getInputField("image", "Image Url"),
7478
- getInputField("title", "Card Title"),
7479
- getInputField("description", "Card Description"),
7480
- emptyBox$1("RankCardEmpty1"),
7481
- emptyBox$1("RankCardEmpty2")
7826
+ getInputField("height", "Height"),
7827
+ emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
7482
7828
  ];
7483
7829
  break;
7484
7830
  case "LeaderBoard":
7485
7831
  uiSchema.elements = [
7486
- getInputField("valueLabel", "Value Label"),
7487
7832
  getInputField("firstImage", "First Image url"),
7488
7833
  getInputField("secondImage", "Second Image url"),
7489
7834
  getInputField("thirdImage", "Third Image url"),
7490
- emptyBox$1("LeaderBoardEmpty1"),
7491
- emptyBox$1("LeaderBoardEmpty2"),
7492
- getTextArea("functionCode", "Write Compare Code", false)
7835
+ getInputField("nameKey", "Key for Name"),
7836
+ getInputField("imageKey", "Key for Image"),
7837
+ getInputField("scoreKey", "Key for comparing parameter"),
7838
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
7493
7839
  ];
7494
7840
  break;
7495
7841
  case "CardSlider":
@@ -7513,8 +7859,9 @@ const buildPropertiesSection = function(type) {
7513
7859
  uiSchema.elements = [
7514
7860
  getInputField("url", "Image Url"),
7515
7861
  getInputField("label", "Label"),
7862
+ getInputField("titleIcon", "Unicode of Icon for title"),
7516
7863
  getInputField("description", "Description"),
7517
- emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7864
+ emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7518
7865
  ];
7519
7866
  break;
7520
7867
  case "Button":
@@ -7538,7 +7885,9 @@ const buildPropertiesSection = function(type) {
7538
7885
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7539
7886
  getInputField("yAxisValue", "Y-AxisValue"),
7540
7887
  getInputField("xAxisValue", "X-AxisValue"),
7541
- emptyBox$1("GraphEmpty2"),
7888
+ getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7889
+ getInputField("leftMargin", "Left Margin"),
7890
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7542
7891
  getArrayControl("legendLabels", "label"),
7543
7892
  getArrayControl("pieArcColors", "color")
7544
7893
  ];
@@ -7610,6 +7959,11 @@ const buildPropertiesSection = function(type) {
7610
7959
  emptyBox$1("MultipleSelectEmpty2")
7611
7960
  ];
7612
7961
  break;
7962
+ case "Thought":
7963
+ uiSchema.elements = [
7964
+ getTextArea("thought", "Today's thought", false)
7965
+ ];
7966
+ break;
7613
7967
  }
7614
7968
  return uiSchema;
7615
7969
  };
@@ -7683,6 +8037,27 @@ const TableSection = (theme) => {
7683
8037
  }
7684
8038
  }
7685
8039
  }
8040
+ },
8041
+ {
8042
+ widget: {
8043
+ type: "Control",
8044
+ scope: "#/properties/Paste_Component",
8045
+ options: {
8046
+ widget: "IconButton"
8047
+ },
8048
+ config: {
8049
+ main: {
8050
+ onClick: "copyPasteElement",
8051
+ size: "small",
8052
+ icon: "PasteIcon",
8053
+ iconLabel: "Paste",
8054
+ styleDefault: true
8055
+ },
8056
+ style: {
8057
+ mt: "6px"
8058
+ }
8059
+ }
8060
+ }
7686
8061
  }
7687
8062
  ]
7688
8063
  },
@@ -7742,6 +8117,26 @@ const TableSection = (theme) => {
7742
8117
  }
7743
8118
  }
7744
8119
  }
8120
+ },
8121
+ {
8122
+ header: "Copy",
8123
+ field: "Copy_Component",
8124
+ flex: 1,
8125
+ widget: {
8126
+ type: "Control",
8127
+ scope: "#/properties/Copy_Component",
8128
+ options: {
8129
+ widget: "IconButton"
8130
+ },
8131
+ config: {
8132
+ main: {
8133
+ icon: "FileCopyIcon",
8134
+ onClick: "copyPasteElement",
8135
+ styleDefault: true,
8136
+ disabled: false
8137
+ }
8138
+ }
8139
+ }
7745
8140
  }
7746
8141
  ]
7747
8142
  }
@@ -7878,8 +8273,8 @@ var buildConfig = (FormData) => {
7878
8273
  component = { ...formData, ...component };
7879
8274
  return component;
7880
8275
  };
7881
- const createLayoutFormat = (config) => {
7882
- if (_.isEmpty(config)) {
8276
+ const createLayoutFormat = (config2) => {
8277
+ if (_.isEmpty(config2)) {
7883
8278
  return {
7884
8279
  xs: 12,
7885
8280
  sm: 12,
@@ -7887,18 +8282,23 @@ const createLayoutFormat = (config) => {
7887
8282
  lg: 12
7888
8283
  };
7889
8284
  }
7890
- let data = {};
7891
- config.map((e) => {
8285
+ let data = {
8286
+ xs: 12,
8287
+ sm: 12,
8288
+ md: 6,
8289
+ lg: 6
8290
+ };
8291
+ config2.map((e) => {
7892
8292
  data[e.key || "xs"] = +e.value || 5.5;
7893
8293
  });
7894
8294
  return data;
7895
8295
  };
7896
- const flatObjectValueInArray = (config = []) => {
7897
- if (config[0].length < 1) {
8296
+ const flatObjectValueInArray = (config2 = []) => {
8297
+ if (config2.length < 1) {
7898
8298
  return;
7899
8299
  }
7900
- const keyName = Object.keys(config[0])[0];
7901
- const data = config.map((e) => {
8300
+ const keyName = Object.keys(config2[0])[0];
8301
+ const data = config2.map((e) => {
7902
8302
  return e[keyName];
7903
8303
  });
7904
8304
  return data;
@@ -7906,9 +8306,9 @@ const flatObjectValueInArray = (config = []) => {
7906
8306
  const clearFromSessionStorage = () => {
7907
8307
  sessionStorage.removeItem("pageFormdata");
7908
8308
  };
7909
- const getNavigationHistory = (config, path) => {
8309
+ const getNavigationHistory = (config2, path) => {
7910
8310
  if (path) {
7911
- let urlRoutes = config.name;
8311
+ let urlRoutes = config2.name;
7912
8312
  const pathArrayAll = path.split(".");
7913
8313
  const arr = [];
7914
8314
  pathArrayAll.map((e, i) => {
@@ -7919,7 +8319,7 @@ const getNavigationHistory = (config, path) => {
7919
8319
  arr.push(`${arr[i - 1]}.${e}`);
7920
8320
  });
7921
8321
  arr.map((e) => {
7922
- const data = _.get(config, e);
8322
+ const data = _.get(config2, e);
7923
8323
  if (data) {
7924
8324
  urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
7925
8325
  } else {
@@ -7953,16 +8353,16 @@ const getFormdataFromSessionStorage = (path) => {
7953
8353
  }
7954
8354
  return returnValue || pageFormdata;
7955
8355
  };
7956
- async function saveHandler(store2, service2, submitHandler, pageName) {
8356
+ async function saveHandler(store2, service2, submitHandler) {
7957
8357
  var _a, _b;
7958
8358
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7959
8359
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7960
8360
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
7961
- const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
8361
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
7962
8362
  if (_.isEmpty(store2.ctx.core.errors)) {
7963
8363
  try {
7964
- const saveReturn = await submitHandler(store2, service2, config);
7965
- navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
8364
+ const saveReturn = await submitHandler(store2, service2, config2);
8365
+ navigateHandler(store2, true, "/PageMasterRecords");
7966
8366
  } catch (err) {
7967
8367
  navigateHandler(store2, false);
7968
8368
  }
@@ -8031,9 +8431,10 @@ const sectionLabels = {
8031
8431
  DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8032
8432
  InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8033
8433
  TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8034
- ColumnGroup: ["Core", "Components"]
8434
+ ColumnGroup: ["Core", "Components"],
8435
+ Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8035
8436
  };
8036
- const refreshPage = (type, store2) => {
8437
+ function refreshPage(type, store2) {
8037
8438
  var _a;
8038
8439
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8039
8440
  if (type) {
@@ -8050,8 +8451,11 @@ const refreshPage = (type, store2) => {
8050
8451
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8051
8452
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8052
8453
  }
8454
+ if (sessionStorage.getItem("copiedConfig")) {
8455
+ this.ElementPathSetter(UiSchema);
8456
+ }
8053
8457
  store2.setUiSchema(UiSchema);
8054
- };
8458
+ }
8055
8459
  var Component = (store2, dynamicData2, submitHandler, service2) => {
8056
8460
  return {
8057
8461
  setPage: async function() {
@@ -8068,10 +8472,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8068
8472
  return getFormdataFromSessionStorage(path);
8069
8473
  },
8070
8474
  getSchema: function() {
8071
- return ComponentSchema;
8475
+ const schema2 = _.cloneDeep(ComponentSchema);
8476
+ if (sessionStorage.getItem("copiedConfig")) {
8477
+ schema2.properties.RemoveItemButton.disabled = false;
8478
+ }
8479
+ return schema2;
8072
8480
  },
8073
8481
  okHandler: () => okHandler(store2),
8074
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
8482
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
8075
8483
  onChange: function() {
8076
8484
  var _a, _b, _c, _d;
8077
8485
  if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
@@ -8163,6 +8571,84 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8163
8571
  const rowId = dynamicData2.path.split(".")[1];
8164
8572
  sessionStorage.setItem("rowId", rowId);
8165
8573
  store2.updateDialog("popUpEventSection");
8574
+ },
8575
+ copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
8576
+ var _a;
8577
+ const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
8578
+ actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
8579
+ },
8580
+ CopyElement: function(paramStore = store2, elementType) {
8581
+ var _a;
8582
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8583
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8584
+ schema2.properties.RemoveItemButton.disabled = false;
8585
+ const rowId = dynamicData2.path.split(".")[1];
8586
+ const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8587
+ const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
8588
+ const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8589
+ this.ElementPathSetter(uiSchema, copiedFormData);
8590
+ sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8591
+ store2.setSchema(schema2);
8592
+ store2.setUiSchema(uiSchema);
8593
+ },
8594
+ PasteElement: function(setPage, elementType) {
8595
+ var _a;
8596
+ if (!sessionStorage.getItem("copiedConfig")) {
8597
+ store2.setNotify({
8598
+ FailMessage: "No item has been copied.",
8599
+ Fail: true
8600
+ });
8601
+ return;
8602
+ }
8603
+ const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8604
+ if (!Array.isArray(store2.formData.elements)) {
8605
+ store2.formData.elements = [];
8606
+ }
8607
+ if (!Array.isArray(store2.formData.events)) {
8608
+ store2.formData.events = [];
8609
+ }
8610
+ saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8611
+ const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8612
+ const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
8613
+ const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8614
+ const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8615
+ const notificationMessages = {
8616
+ Event: " The event cannot be integrated into the component section.",
8617
+ Component: "The component cannot be integrated into the event section."
8618
+ };
8619
+ if (copiedConfig.Handler && elementType === "Component") {
8620
+ store2.setNotify({
8621
+ FailMessage: notificationMessages.Event,
8622
+ Fail: true
8623
+ });
8624
+ } else if (copiedConfig.name && elementType === "Event") {
8625
+ store2.setNotify({
8626
+ FailMessage: notificationMessages.Component,
8627
+ Fail: true
8628
+ });
8629
+ } else {
8630
+ saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
8631
+ setPage();
8632
+ }
8633
+ },
8634
+ RemoveItemButton: function(paramStore = store2) {
8635
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8636
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8637
+ schema2.properties.RemoveItemButton.disabled = true;
8638
+ uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
8639
+ sessionStorage.removeItem("copiedConfig");
8640
+ store2.setSchema(schema2);
8641
+ store2.setUiSchema(uiSchema);
8642
+ },
8643
+ elementPathHandler: function(parentPath, rowId, elementType) {
8644
+ if (elementType === "Component") {
8645
+ return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8646
+ }
8647
+ return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8648
+ },
8649
+ ElementPathSetter: function(uiSchema, copiedFormData) {
8650
+ const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8651
+ uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
8166
8652
  }
8167
8653
  };
8168
8654
  };
@@ -8180,19 +8666,27 @@ var pageMaster = (funcParams) => {
8180
8666
  getFormdata: async function() {
8181
8667
  var _a;
8182
8668
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8183
- const config = await funcParams.pageConfigProvider(id);
8669
+ const config2 = await funcParams.pageConfigProvider(id);
8184
8670
  const formData = getFormdataFromSessionStorage();
8185
8671
  if (formData) {
8186
8672
  return formData;
8187
8673
  }
8188
- saveFormdataInSessionStorage(config);
8189
- return config;
8674
+ saveFormdataInSessionStorage(config2);
8675
+ return config2;
8190
8676
  },
8191
8677
  getUiSchema: function() {
8192
- return PageMasterUiSchema(store2.theme.myTheme);
8678
+ const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
8679
+ if (sessionStorage.getItem("copiedConfig")) {
8680
+ Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
8681
+ }
8682
+ return UiSchema;
8193
8683
  },
8194
8684
  getSchema: () => {
8195
- return PageMasterSchema;
8685
+ const schema2 = _.cloneDeep(PageMasterSchema);
8686
+ if (sessionStorage.getItem("copiedConfig")) {
8687
+ schema2.properties.RemoveItemButton.disabled = false;
8688
+ }
8689
+ return schema2;
8196
8690
  },
8197
8691
  backHandler: () => {
8198
8692
  sessionStorage.removeItem("pageFormdata");
@@ -8256,6 +8750,12 @@ var pageMaster = (funcParams) => {
8256
8750
  const rowId = dynamicData2.path.split(".")[1];
8257
8751
  sessionStorage.setItem("rowId", rowId);
8258
8752
  store2.updateDialog("popUpPageMasterEvent");
8753
+ },
8754
+ copyPasteElement: function() {
8755
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
8756
+ },
8757
+ RemoveItemButton: function() {
8758
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
8259
8759
  }
8260
8760
  };
8261
8761
  };
@@ -8344,12 +8844,15 @@ const EventSchema = {
8344
8844
  }
8345
8845
  }
8346
8846
  }
8847
+ },
8848
+ RemoveItemButton: {
8849
+ disabled: true
8347
8850
  }
8348
8851
  },
8349
8852
  required: ["eventType", "Handler"]
8350
8853
  };
8351
8854
  const EventUiSchema = (theme) => {
8352
- var _a;
8855
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8353
8856
  const uiSchema = {
8354
8857
  type: "HorizontalLayout",
8355
8858
  heading: "Component",
@@ -8443,6 +8946,27 @@ const EventUiSchema = (theme) => {
8443
8946
  }
8444
8947
  }
8445
8948
  }
8949
+ },
8950
+ {
8951
+ widget: {
8952
+ type: "Control",
8953
+ scope: "#/properties/Paste_Event",
8954
+ options: {
8955
+ widget: "IconButton"
8956
+ },
8957
+ config: {
8958
+ main: {
8959
+ onClick: "copyPasteElement",
8960
+ size: "small",
8961
+ icon: "PasteIcon",
8962
+ iconLabel: "Paste",
8963
+ styleDefault: true
8964
+ },
8965
+ style: {
8966
+ mt: "6px"
8967
+ }
8968
+ }
8969
+ }
8446
8970
  }
8447
8971
  ]
8448
8972
  },
@@ -8501,21 +9025,86 @@ const EventUiSchema = (theme) => {
8501
9025
  }
8502
9026
  }
8503
9027
  }
9028
+ },
9029
+ {
9030
+ header: "Copy",
9031
+ field: "Copy_Event",
9032
+ flex: 1,
9033
+ widget: {
9034
+ type: "Control",
9035
+ scope: "#/properties/Copy_Event",
9036
+ options: {
9037
+ widget: "IconButton"
9038
+ },
9039
+ config: {
9040
+ main: {
9041
+ icon: "FileCopyIcon",
9042
+ onClick: "copyPasteElement",
9043
+ styleDefault: true
9044
+ }
9045
+ }
9046
+ }
8504
9047
  }
8505
9048
  ]
8506
9049
  }
8507
9050
  ]
8508
9051
  },
8509
- {
8510
- type: "Control",
8511
- scope: "#/properties/EmptyBox",
8512
- options: {
8513
- widget: "EmptyBox"
8514
- },
8515
- config: {
8516
- layout: { xs: 4, sm: 8 }
8517
- }
8518
- },
9052
+ {
9053
+ type: "HorizontalLayout",
9054
+ config: {
9055
+ layout: { xs: 12, sm: 6 }
9056
+ },
9057
+ elements: [
9058
+ {
9059
+ type: "Control",
9060
+ scope: "#/properties/RemoveItemButton",
9061
+ options: {
9062
+ widget: "IconButton"
9063
+ },
9064
+ config: {
9065
+ layout: { xs: 1, sm: 1 },
9066
+ main: {
9067
+ onClick: "RemoveItemButton",
9068
+ size: "large",
9069
+ icon: "RejectIcon",
9070
+ styleDefault: true
9071
+ },
9072
+ style: {
9073
+ marginLeft: "-10px"
9074
+ }
9075
+ }
9076
+ },
9077
+ {
9078
+ type: "Control",
9079
+ scope: "#/properties/copiedElementDetails",
9080
+ options: {
9081
+ widget: "Box"
9082
+ },
9083
+ config: {
9084
+ layout: { xs: 6, sm: 6 },
9085
+ main: {
9086
+ heading: "No element copied"
9087
+ },
9088
+ style: {
9089
+ color: "#535557",
9090
+ marginLeft: "-10px",
9091
+ fontSize: "12px",
9092
+ marginTop: "4px"
9093
+ }
9094
+ }
9095
+ },
9096
+ {
9097
+ type: "Control",
9098
+ scope: "#/properties/EmptyBox",
9099
+ options: {
9100
+ widget: "EmptyBox"
9101
+ },
9102
+ config: {
9103
+ layout: { xs: 1, sm: 5 }
9104
+ }
9105
+ }
9106
+ ]
9107
+ },
8519
9108
  {
8520
9109
  type: "Control",
8521
9110
  scope: "#/properties/btn",
@@ -8568,87 +9157,116 @@ const EventUiSchema = (theme) => {
8568
9157
  layout: {
8569
9158
  xs: 12,
8570
9159
  sm: 12,
8571
- md: 6,
8572
- lg: 6
9160
+ md: 12,
9161
+ lg: 12
8573
9162
  },
8574
- main: {},
8575
- style: {
8576
- "& .MuiPaper-root": {
8577
- width: "30%"
8578
- },
8579
- "& .MuiTypography-root": {
8580
- padding: 0
8581
- },
8582
- wrapperStyle: {
8583
- width: { xs: "100%", sm: "100%", md: "98%" }
8584
- }
8585
- }
9163
+ main: {
9164
+ title: "WARNING!"
9165
+ },
9166
+ style: {}
8586
9167
  },
8587
9168
  elements: [
8588
9169
  {
8589
9170
  type: "Control",
8590
- scope: "#/properties/label",
9171
+ scope: "#/properties/popupText",
8591
9172
  options: {
8592
9173
  widget: "Box"
8593
9174
  },
8594
9175
  config: {
8595
- layout: 12,
9176
+ layout: 11,
8596
9177
  main: {
8597
9178
  heading: "Are you sure you want to delete ?"
8598
9179
  },
8599
9180
  style: {
8600
- marginTop: "-40px"
9181
+ marginTop: "-20px",
9182
+ fontSize: "20px",
9183
+ "&.MuiTypography-root": {
9184
+ padding: "10px 30px 20px 30px",
9185
+ textAlign: "center",
9186
+ lineHeight: "1"
9187
+ }
8601
9188
  }
8602
9189
  }
8603
9190
  },
8604
9191
  {
8605
- type: "Control",
8606
- scope: "#/properties/EmptyBox",
8607
- options: {
8608
- widget: "EmptyBox"
8609
- },
8610
- config: {
8611
- main: {},
8612
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8613
- }
8614
- },
8615
- {
8616
- type: "Control",
8617
- scope: "#/properties/ConfirmDeleteEventButton",
8618
- options: {
8619
- widget: "Button"
8620
- },
9192
+ type: "WrapperLayout",
8621
9193
  config: {
8622
- layout: 3,
8623
- main: {
8624
- name: "Yes",
8625
- startIcon: "ApproveIcon",
8626
- variant: "contained",
8627
- color: "error",
8628
- type: "text",
8629
- onClick: "deleteEvent",
8630
- size: "small"
8631
- }
8632
- }
8633
- },
8634
- {
8635
- type: "Control",
8636
- scope: "#/properties/CancelDeleteEventButton",
8637
- options: {
8638
- widget: "Button"
9194
+ layout: 11,
9195
+ main: {}
8639
9196
  },
8640
- config: {
8641
- layout: 3,
8642
- main: {
8643
- name: "No",
8644
- startIcon: "ApproveIcon",
8645
- variant: "contained",
8646
- color: "info",
8647
- type: "text",
8648
- onClick: "deletePopUpEvent",
8649
- size: "small"
9197
+ elements: [
9198
+ {
9199
+ type: "Control",
9200
+ scope: "#/properties/CancelDeleteEventButton",
9201
+ options: {
9202
+ widget: "Button"
9203
+ },
9204
+ config: {
9205
+ layout: 6,
9206
+ main: {
9207
+ name: "No",
9208
+ startIcon: "ApproveIcon",
9209
+ variant: "contained",
9210
+ color: "info",
9211
+ type: "text",
9212
+ onClick: "deletePopUpEvent",
9213
+ size: "large"
9214
+ },
9215
+ style: {
9216
+ position: "absolute",
9217
+ bottom: 0,
9218
+ left: 0,
9219
+ width: "50%",
9220
+ borderRadius: 0,
9221
+ boxShadow: 0,
9222
+ backgroundColor: "transparent",
9223
+ color: theme.palette.primary.main,
9224
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9225
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
9226
+ "&:hover": {
9227
+ color: theme.palette.primary.contrastText,
9228
+ backgroundColor: theme.palette.primary.main,
9229
+ boxShadow: "none"
9230
+ }
9231
+ }
9232
+ }
9233
+ },
9234
+ {
9235
+ type: "Control",
9236
+ scope: "#/properties/ConfirmDeleteEventButton",
9237
+ options: {
9238
+ widget: "Button"
9239
+ },
9240
+ config: {
9241
+ layout: 6,
9242
+ main: {
9243
+ name: "Yes",
9244
+ startIcon: "ApproveIcon",
9245
+ variant: "contained",
9246
+ color: "error",
9247
+ type: "text",
9248
+ onClick: "deleteEvent",
9249
+ size: "large"
9250
+ },
9251
+ style: {
9252
+ position: "absolute",
9253
+ bottom: 0,
9254
+ right: 0,
9255
+ width: "50%",
9256
+ borderRadius: 0,
9257
+ boxShadow: 0,
9258
+ backgroundColor: "transparent",
9259
+ color: theme.palette.error.main,
9260
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9261
+ "&:hover": {
9262
+ color: theme.palette.error.contrastText,
9263
+ backgroundColor: theme.palette.error.main,
9264
+ boxShadow: "none"
9265
+ }
9266
+ }
9267
+ }
8650
9268
  }
8651
- }
9269
+ ]
8652
9270
  }
8653
9271
  ]
8654
9272
  },
@@ -8670,7 +9288,6 @@ const EventUiSchema = (theme) => {
8670
9288
  flexDirection: "row",
8671
9289
  position: "absolute",
8672
9290
  bottom: 0,
8673
- marginBottom: "-8px",
8674
9291
  height: "fit-content",
8675
9292
  overflow: "hidden",
8676
9293
  zIndex: 1e3,
@@ -8689,22 +9306,23 @@ const EventUiSchema = (theme) => {
8689
9306
  heading: "Copywriter@ACT21.IO"
8690
9307
  },
8691
9308
  style: {
8692
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
8693
- fontSize: "12px",
9309
+ color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
9310
+ fontSize: "11px",
8694
9311
  textAlign: "center",
8695
- lineHeight: 1,
9312
+ lineHeight: 2,
8696
9313
  width: "fit-content",
8697
9314
  left: "50%",
8698
9315
  position: "relative",
8699
9316
  margin: 0,
8700
9317
  flexGrow: 1,
8701
- height: 0
9318
+ height: 0,
9319
+ transform: "translate(-50%, 0%)"
8702
9320
  }
8703
9321
  }
8704
9322
  },
8705
9323
  {
8706
9324
  type: "Control",
8707
- scope: "#/properties/backIcon",
9325
+ scope: "#/properties/FooterBackIcon",
8708
9326
  options: {
8709
9327
  widget: "Box"
8710
9328
  },
@@ -8715,24 +9333,24 @@ const EventUiSchema = (theme) => {
8715
9333
  width: "fit-content"
8716
9334
  },
8717
9335
  style: {
8718
- fill: theme.palette.primary.main,
9336
+ fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
8719
9337
  width: 20,
8720
9338
  height: 0,
8721
- margin: 0,
8722
9339
  top: 0,
8723
9340
  right: { xs: "12px", sm: "84px" },
8724
9341
  position: "absolute",
8725
9342
  fontSize: "12px",
8726
9343
  cursor: "pointer",
8727
9344
  ":hover": {
8728
- fill: theme.palette.primary.dark
8729
- }
9345
+ fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
9346
+ },
9347
+ marginRight: "20px"
8730
9348
  }
8731
9349
  }
8732
9350
  },
8733
9351
  {
8734
9352
  type: "Control",
8735
- scope: "#/properties/text",
9353
+ scope: "#/properties/FooterBackHandlerText",
8736
9354
  options: {
8737
9355
  widget: "Box"
8738
9356
  },
@@ -8747,17 +9365,17 @@ const EventUiSchema = (theme) => {
8747
9365
  lineHeight: 1,
8748
9366
  height: 0,
8749
9367
  width: "fit-content",
8750
- color: theme.palette.primary.main,
9368
+ color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
8751
9369
  fontSize: "12px",
8752
9370
  cursor: "pointer",
8753
9371
  marginLeft: "2px",
8754
- marginRight: 0,
8755
9372
  top: 3,
8756
9373
  right: "12px",
8757
9374
  position: "absolute",
8758
9375
  ":hover": {
8759
- color: theme.palette.primary.dark
8760
- }
9376
+ color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
9377
+ },
9378
+ marginRight: "4px"
8761
9379
  }
8762
9380
  }
8763
9381
  }
@@ -9048,6 +9666,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9048
9666
  ...functionsName
9049
9667
  ];
9050
9668
  }
9669
+ if (sessionStorage.getItem("copiedConfig")) {
9670
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9671
+ schema2.properties.RemoveItemButton.disabled = false;
9672
+ }
9051
9673
  store22.setSchema(schema2);
9052
9674
  store22.setUiSchema(uiSchema);
9053
9675
  },
@@ -9056,10 +9678,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9056
9678
  return EventUiSchema;
9057
9679
  },
9058
9680
  getSchema: () => {
9059
- return EventSchema;
9681
+ const schema2 = _.cloneDeep(EventSchema);
9682
+ if (sessionStorage.getItem("copiedConfig")) {
9683
+ schema2.properties.RemoveItemButton.disabled = false;
9684
+ }
9685
+ return schema2;
9060
9686
  },
9061
9687
  okHandler: () => okHandler(store2),
9062
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
9688
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9063
9689
  onChange: function() {
9064
9690
  var _a, _b, _c;
9065
9691
  if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
@@ -9099,6 +9725,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9099
9725
  const rowId = dynamicData2.path.split(".")[1];
9100
9726
  sessionStorage.setItem("rowId", rowId);
9101
9727
  store2.updateDialog("popUpEvent");
9728
+ },
9729
+ copyPasteElement: function() {
9730
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9731
+ },
9732
+ RemoveItemButton: function() {
9733
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9102
9734
  }
9103
9735
  };
9104
9736
  };
@@ -9270,36 +9902,40 @@ function executeCustomHandler(params) {
9270
9902
  }
9271
9903
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9272
9904
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9273
- store2.setSchema((pre) => {
9274
- var _a;
9275
- return {
9276
- ...pre,
9277
- properties: {
9278
- ...pre.properties,
9279
- [componentName]: {
9280
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9281
- oneOf: handlerResponse.data
9905
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9906
+ store2.setSchema((pre) => {
9907
+ var _a;
9908
+ return {
9909
+ ...pre,
9910
+ properties: {
9911
+ ...pre.properties,
9912
+ [componentName]: {
9913
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9914
+ oneOf: handlerResponse.data
9915
+ }
9282
9916
  }
9283
- }
9284
- };
9285
- });
9917
+ };
9918
+ });
9919
+ }
9286
9920
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
9287
- store2.setSchema((pre) => {
9288
- var _a;
9289
- return {
9290
- ...pre,
9291
- properties: {
9292
- ...pre.properties,
9293
- [componentName]: {
9294
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9295
- type: "array",
9296
- items: {
9297
- oneOf: handlerResponse == null ? void 0 : handlerResponse.data
9921
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9922
+ store2.setSchema((pre) => {
9923
+ var _a;
9924
+ return {
9925
+ ...pre,
9926
+ properties: {
9927
+ ...pre.properties,
9928
+ [componentName]: {
9929
+ ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9930
+ type: "array",
9931
+ items: {
9932
+ oneOf: handlerResponse == null ? void 0 : handlerResponse.data
9933
+ }
9298
9934
  }
9299
9935
  }
9300
- }
9301
- };
9302
- });
9936
+ };
9937
+ });
9938
+ }
9303
9939
  } else if (eventConfig.type === "page") {
9304
9940
  if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9305
9941
  store2.newData = {
@@ -9480,10 +10116,10 @@ var service = (funcParams) => {
9480
10116
  config: pageData == null ? void 0 : pageData.config
9481
10117
  }));
9482
10118
  }
9483
- const config = pageData == null ? void 0 : pageData.config;
10119
+ const config2 = pageData == null ? void 0 : pageData.config;
9484
10120
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
9485
10121
  const event2 = new CustomEvent("pageNameChanged", {
9486
- detail: { pageName: config.label }
10122
+ detail: { pageName: config2.label }
9487
10123
  });
9488
10124
  window.dispatchEvent(event2);
9489
10125
  const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -9517,7 +10153,7 @@ var service = (funcParams) => {
9517
10153
  },
9518
10154
  style: {
9519
10155
  color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
9520
- fontSize: "12px",
10156
+ fontSize: "11px",
9521
10157
  textAlign: "center",
9522
10158
  lineHeight: 2,
9523
10159
  width: "fit-content",
@@ -9554,7 +10190,7 @@ var service = (funcParams) => {
9554
10190
  ":hover": {
9555
10191
  fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
9556
10192
  },
9557
- marginRight: "13px"
10193
+ marginRight: "20px"
9558
10194
  }
9559
10195
  }
9560
10196
  },
@@ -9576,7 +10212,7 @@ var service = (funcParams) => {
9576
10212
  height: 0,
9577
10213
  width: "fit-content",
9578
10214
  color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
9579
- fontSize: "14px",
10215
+ fontSize: "12px",
9580
10216
  cursor: "pointer",
9581
10217
  marginLeft: "2px",
9582
10218
  top: 3,
@@ -9593,7 +10229,7 @@ var service = (funcParams) => {
9593
10229
  }
9594
10230
  );
9595
10231
  const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
9596
- eventGroups = extractEvents(config);
10232
+ eventGroups = extractEvents(config2);
9597
10233
  executeEventsParameters = {
9598
10234
  config: {},
9599
10235
  componentName: "",
@@ -9744,415 +10380,89 @@ var service = (funcParams) => {
9744
10380
  },
9745
10381
  onNext: async function(functionParameters) {
9746
10382
  var _a, _b;
9747
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9748
- await this.callHandler("onNext", functionParameters);
9749
- if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
9750
- functionParameters == null ? void 0 : functionParameters.handleNext();
9751
- }
9752
- },
9753
- onReset: async function(functionParameters) {
9754
- var _a, _b;
9755
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9756
- await this.callHandler("onReset", functionParameters);
9757
- if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
9758
- functionParameters == null ? void 0 : functionParameters.handleReset();
9759
- }
9760
- },
9761
- callHandler: async function(eventType, functionParameters) {
9762
- var _a, _b, _c;
9763
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
9764
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
9765
- Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
9766
- executeEventsParameters.store.functionParameters = functionParameters;
9767
- executeEvents({
9768
- ...executeEventsParameters,
9769
- config: eventConfig,
9770
- componentName: path
9771
- });
9772
- }));
9773
- }
9774
- },
9775
- downloadFile: downloadFile$1,
9776
- download: doDownload,
9777
- ...funcParams.functionsProvider
9778
- };
9779
- };
9780
- var leaderBoard = {
9781
- type: "WrapperLayout",
9782
- config: {
9783
- main: {
9784
- rowSpacing: 3,
9785
- header: true,
9786
- label: "LeaderBoard",
9787
- divider: true
9788
- },
9789
- style: {},
9790
- wrapperStyle: {
9791
- position: "relative",
9792
- width: "100%"
9793
- },
9794
- componentsBoxStyle: {
9795
- display: "flex",
9796
- flexDirection: "column",
9797
- gap: "20px"
9798
- }
9799
- },
9800
- elements: [
9801
- {
9802
- type: "Control",
9803
- scope: "#/properties/leaderBoard/properties/firstImage",
9804
- config: {
9805
- main: {
9806
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9807
- },
9808
- style: {
9809
- imageStyle: {
9810
- objectFit: "cover",
9811
- width: "100%",
9812
- height: "100%",
9813
- borderRadius: "50%"
9814
- },
9815
- containerStyle: {
9816
- objectFit: "cover",
9817
- position: "absolute",
9818
- top: { xs: "90px", "md": "60px" },
9819
- left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
9820
- width: { "xs": "100px", "sm": "100px", "md": "200px" },
9821
- border: "5px solid rgb(179, 198, 255)",
9822
- height: { "xs": "100px", "sm": "100px", "md": "200px" },
9823
- borderRadius: "50%"
9824
- }
9825
- },
9826
- layout: 6
9827
- },
9828
- options: {
9829
- widget: "Image"
9830
- }
9831
- },
9832
- {
9833
- type: "Control",
9834
- scope: "#/properties/leaderBoard/properties/secondImage",
9835
- config: {
9836
- main: {
9837
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9838
- },
9839
- style: {
9840
- imageStyle: {
9841
- objectFit: "cover",
9842
- width: "100%",
9843
- height: "100%",
9844
- borderRadius: "50%"
9845
- },
9846
- containerStyle: {
9847
- objectFit: "cover",
9848
- position: "absolute",
9849
- top: { xs: "160px", "md": "130px" },
9850
- left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
9851
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9852
- border: "5px solid rgb(179, 198, 255)",
9853
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9854
- borderRadius: "50%"
9855
- }
9856
- },
9857
- layout: 6
9858
- },
9859
- options: {
9860
- widget: "Image"
9861
- }
9862
- },
9863
- {
9864
- type: "Control",
9865
- scope: "#/properties/leaderBoard/properties/thirdImage",
9866
- config: {
9867
- main: {
9868
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
9869
- },
9870
- style: {
9871
- imageStyle: {
9872
- objectFit: "cover",
9873
- width: "100%",
9874
- height: "100%",
9875
- borderRadius: "50%"
9876
- },
9877
- containerStyle: {
9878
- objectFit: "cover",
9879
- position: "absolute",
9880
- top: { xs: "160px", "md": "130px" },
9881
- left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
9882
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
9883
- border: "5px solid rgb(179, 198, 255)",
9884
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
9885
- borderRadius: "50%"
9886
- }
9887
- },
9888
- layout: 6
9889
- },
9890
- options: {
9891
- widget: "Image"
9892
- }
9893
- },
9894
- {
9895
- type: "Control",
9896
- scope: "#/properties/leaderBoard/properties/firstName",
9897
- config: {
9898
- main: {
9899
- heading: "Satendra Raghav"
9900
- },
9901
- style: {
9902
- objectFit: "cover",
9903
- position: "absolute",
9904
- display: "flex",
9905
- justifyContent: "center",
9906
- alignItems: "center",
9907
- color: "black",
9908
- top: { xs: "190px", md: "270px" },
9909
- fontSize: { xs: "12px", md: "20px" },
9910
- left: "calc(50% - 90px)",
9911
- width: "180px",
9912
- fontWeight: "bold",
9913
- borderRadius: "50%",
9914
- zIndex: 7
9915
- },
9916
- layout: 6
9917
- },
9918
- options: {
9919
- widget: "Box"
9920
- }
9921
- },
9922
- {
9923
- type: "Control",
9924
- scope: "#/properties/leaderBoard/properties/secondName",
9925
- config: {
9926
- main: {
9927
- heading: "Satendra Raghav"
9928
- },
9929
- style: {
9930
- objectFit: "cover",
9931
- position: "absolute",
9932
- display: "flex",
9933
- justifyContent: "center",
9934
- alignItems: "center",
9935
- color: "black",
9936
- top: { xs: "240px", md: "320px" },
9937
- fontSize: { xs: "12px", md: "20px" },
9938
- left: "calc(25% - 90px)",
9939
- width: "180px",
9940
- fontWeight: "bold",
9941
- borderRadius: "50%"
9942
- },
9943
- layout: 6
9944
- },
9945
- options: {
9946
- widget: "Box"
9947
- }
9948
- },
9949
- {
9950
- type: "Control",
9951
- scope: "#/properties/leaderBoard/properties/thirdName",
9952
- config: {
9953
- main: {
9954
- heading: "Satendra Raghav"
9955
- },
9956
- style: {
9957
- objectFit: "cover",
9958
- position: "absolute",
9959
- display: "flex",
9960
- justifyContent: "center",
9961
- alignItems: "center",
9962
- color: "black",
9963
- top: { xs: "240px", md: "320px" },
9964
- fontSize: { xs: "12px", md: "20px" },
9965
- left: "calc(75% - 90px)",
9966
- width: "180px",
9967
- fontWeight: "bold",
9968
- borderRadius: "50%"
9969
- },
9970
- layout: 6
9971
- },
9972
- options: {
9973
- widget: "Box"
9974
- }
9975
- },
9976
- {
9977
- type: "Control",
9978
- scope: "#/properties/econd",
9979
- config: {
9980
- main: {
9981
- heading: "2"
9982
- },
9983
- style: {
9984
- objectFit: "cover",
9985
- position: "absolute",
9986
- display: "flex",
9987
- justifyContent: "center",
9988
- alignItems: "center",
9989
- textShadow: "2px 2px 5px #5065C7",
9990
- background: "green",
9991
- color: "white",
9992
- top: { xs: "225px", md: "280px" },
9993
- fontSize: { xs: "12px", md: "16px" },
9994
- left: { xs: "calc(25% - 12px)", md: "calc(25% - 16px)" },
9995
- width: { xs: "20px", md: "40px" },
9996
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
9997
- height: { xs: "20px", md: "40px" },
9998
- "@keyframes rotateAnimation": {
9999
- from: {
10000
- transform: "rotate(0deg)"
10001
- },
10002
- to: {
10003
- transform: "rotate(360deg)"
10004
- }
10005
- },
10006
- animation: "rotateAnimation 4s infinite",
10007
- borderRadius: "50%",
10008
- zIndex: 5
10009
- },
10010
- layout: 6
10011
- },
10012
- options: {
10013
- widget: "Box"
10383
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10384
+ await this.callHandler("onNext", functionParameters);
10385
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10386
+ functionParameters == null ? void 0 : functionParameters.handleNext();
10014
10387
  }
10015
10388
  },
10016
- {
10017
- type: "Control",
10018
- scope: "#/properties/first",
10019
- config: {
10020
- main: {
10021
- heading: "1"
10022
- },
10023
- style: {
10024
- objectFit: "cover",
10025
- position: "absolute",
10026
- display: "flex",
10027
- justifyContent: "center",
10028
- alignItems: "center",
10029
- textShadow: "2px 2px 5px #5065C7",
10030
- background: "green",
10031
- color: "white",
10032
- top: { xs: "175px", md: "230px" },
10033
- fontSize: { xs: "12px", md: "16px" },
10034
- left: { xs: "calc(50% - 12px)", md: "calc(50% - 16px)" },
10035
- "@keyframes rotateAnimation": {
10036
- from: {
10037
- transform: "rotate(0deg)"
10038
- },
10039
- to: {
10040
- transform: "rotate(360deg)"
10041
- }
10042
- },
10043
- animation: "rotateAnimation 4s infinite",
10044
- width: { xs: "20px", md: "40px" },
10045
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10046
- height: { xs: "20px", md: "40px" },
10047
- borderRadius: "50%",
10048
- zIndex: 5
10049
- },
10050
- layout: 6
10051
- },
10052
- options: {
10053
- widget: "Box"
10389
+ onReset: async function(functionParameters) {
10390
+ var _a, _b;
10391
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10392
+ await this.callHandler("onReset", functionParameters);
10393
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
10394
+ functionParameters == null ? void 0 : functionParameters.handleReset();
10054
10395
  }
10055
10396
  },
10056
- {
10057
- type: "Control",
10058
- scope: "#/properties/third",
10059
- config: {
10060
- main: {
10061
- heading: "3"
10062
- },
10063
- style: {
10064
- objectFit: "cover",
10065
- position: "absolute",
10066
- display: "flex",
10067
- justifyContent: "center",
10068
- alignItems: "center",
10069
- textShadow: "2px 2px 5px #5065C7",
10070
- background: "green",
10071
- color: "white",
10072
- top: { xs: "225px", md: "280px" },
10073
- fontSize: { xs: "12px", md: "16px" },
10074
- left: { xs: "calc(75% - 12px)", md: "calc(75% - 16px)" },
10075
- width: { xs: "20px", md: "40px" },
10076
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10077
- height: { xs: "20px", md: "40px" },
10078
- "@keyframes rotateAnimation": {
10079
- from: {
10080
- transform: "rotate(0deg)"
10081
- },
10082
- to: {
10083
- transform: "rotate(360deg)"
10084
- }
10085
- },
10086
- animation: "rotateAnimation 4s infinite",
10087
- borderRadius: "50%",
10088
- zIndex: 5
10089
- },
10090
- layout: 6
10091
- },
10092
- options: {
10093
- widget: "Box"
10397
+ callHandler: async function(eventType, functionParameters) {
10398
+ var _a, _b, _c;
10399
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10400
+ if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10401
+ Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10402
+ executeEventsParameters.store.functionParameters = functionParameters;
10403
+ executeEvents({
10404
+ ...executeEventsParameters,
10405
+ config: eventConfig,
10406
+ componentName: path
10407
+ });
10408
+ }));
10094
10409
  }
10095
10410
  },
10096
- {
10097
- type: "Control",
10098
- scope: "#/properties/leaderBoard/properties/table",
10099
- options: {
10100
- widget: "Table"
10101
- },
10102
- elements: [],
10103
- config: {
10104
- style: {
10105
- tableHeadstyle: {
10106
- fontWeight: 900,
10107
- background: "rgb(179, 198, 255)"
10108
- },
10109
- top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
10110
- border: "2px solid rgb(179, 198, 255)",
10111
- width: "95%",
10112
- left: "2.5%",
10113
- margin: "auto"
10114
- },
10115
- main: {
10116
- disableAction: true,
10117
- disableSelection: true
10118
- }
10119
- }
10120
- }
10121
- ]
10411
+ downloadFile: downloadFile$1,
10412
+ download: doDownload,
10413
+ ...funcParams.functionsProvider
10414
+ };
10415
+ };
10416
+ var leaderBoard = {
10417
+ type: "Control",
10418
+ scope: "#/properties/path",
10419
+ options: {
10420
+ widget: "LeaderBoard"
10421
+ },
10422
+ config: {
10423
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
10424
+ main: {}
10425
+ }
10122
10426
  };
10123
- const buildLeaderBoard = (config) => {
10427
+ const buildLeaderBoard = (config2) => {
10124
10428
  const LeaderBoard = _.cloneDeep(leaderBoard);
10125
- if (config.elements) {
10126
- const modifyColumns = config.elements.map((e, i) => {
10429
+ if (config2.elements) {
10430
+ const modifyColumns = config2.elements.map((e, i) => {
10127
10431
  if (!e.type) {
10128
10432
  return { accessorKey: e.name, header: e.label || e.name };
10129
10433
  }
10130
10434
  const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
10131
10435
  return { ...widgetSchema };
10132
10436
  });
10133
- LeaderBoard.elements[9].elements = modifyColumns;
10437
+ LeaderBoard.elements = modifyColumns;
10134
10438
  }
10135
- LeaderBoard.config.main.label = config.label;
10136
- if (config.name) {
10137
- LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
10138
- LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
10139
- LeaderBoard.elements[1].scope = `#/properties/${config.name}/properties/secondImage`;
10140
- LeaderBoard.elements[4].scope = `#/properties/${config.name}/properties/secondName`;
10141
- LeaderBoard.elements[2].scope = `#/properties/${config.name}/properties/thirdImage`;
10142
- LeaderBoard.elements[5].scope = `#/properties/${config.name}/properties/thirdName`;
10143
- LeaderBoard.elements[9].scope = `#/properties/${config.name}/properties/table`;
10439
+ LeaderBoard.config.main.label = config2.label;
10440
+ if (config2.name) {
10441
+ LeaderBoard.scope = `#/properties/${config2.name}`;
10144
10442
  }
10145
- if (config.firstImage) {
10146
- LeaderBoard.elements[0].config.main.url = config.firstImage;
10443
+ if (config2.firstImage) {
10444
+ LeaderBoard.config.main.firstImage = config2.firstImage;
10147
10445
  }
10148
- if (config.secondImage) {
10149
- LeaderBoard.elements[1].config.main.url = config.secondImage;
10446
+ if (config2.secondImage) {
10447
+ LeaderBoard.config.main.secondImage = config2.secondImage;
10150
10448
  }
10151
- if (config.secondImage) {
10152
- LeaderBoard.elements[2].config.main.url = config.thirdImage;
10449
+ if (config2.thirdImage) {
10450
+ LeaderBoard.config.main.thirdImage = config2.thirdImage;
10153
10451
  }
10154
- if (config.layout) {
10155
- LeaderBoard.config.layout = createLayoutFormat(config.layout);
10452
+ if (config2.nameKey) {
10453
+ LeaderBoard.config.main.nameKey = config2.nameKey;
10454
+ }
10455
+ if (config2.imageKey) {
10456
+ LeaderBoard.config.main.imageKey = config2.imageKey;
10457
+ }
10458
+ if (config2.scoreKey) {
10459
+ LeaderBoard.config.main.scoreKey = config2.scoreKey;
10460
+ }
10461
+ if (config2.layout) {
10462
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout);
10463
+ }
10464
+ if (config2.style) {
10465
+ LeaderBoard.config.style = JSON.parse(config2.style);
10156
10466
  }
10157
10467
  return LeaderBoard;
10158
10468
  };
@@ -10163,7 +10473,7 @@ var progressBar = {
10163
10473
  widget: "ProgressBar"
10164
10474
  },
10165
10475
  config: {
10166
- layout: 6,
10476
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10167
10477
  main: {
10168
10478
  developOnlyProgresBar: false,
10169
10479
  bottomLabel_3: "Remaining",
@@ -10171,44 +10481,44 @@ var progressBar = {
10171
10481
  }
10172
10482
  }
10173
10483
  };
10174
- const buildProgressBarCard = (config, myScope) => {
10484
+ const buildProgressBarCard = (config2, myScope) => {
10175
10485
  const progressBarCard = _.cloneDeep(progressBar);
10176
10486
  progressBarCard.scope = myScope;
10177
- if (config.heading) {
10178
- progressBarCard.config.main.heading = config.heading;
10487
+ if (config2.heading) {
10488
+ progressBarCard.config.main.heading = config2.heading;
10179
10489
  }
10180
- if (config.bottomLabel_3) {
10181
- progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
10490
+ if (config2.bottomLabel_3) {
10491
+ progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
10182
10492
  }
10183
- if (config.bottomLabel_2) {
10184
- progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
10493
+ if (config2.bottomLabel_2) {
10494
+ progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
10185
10495
  }
10186
- if (config.bottomLabel_1) {
10187
- progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
10496
+ if (config2.bottomLabel_1) {
10497
+ progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
10188
10498
  }
10189
- if (config.layout) {
10190
- progressBarCard.config.layout = createLayoutFormat(config.layout);
10499
+ if (config2.layout) {
10500
+ progressBarCard.config.layout = createLayoutFormat(config2.layout);
10191
10501
  }
10192
10502
  return progressBarCard;
10193
10503
  };
10194
- const buildProgressBar = (config, componentScope) => {
10504
+ const buildProgressBar = (config2, componentScope2) => {
10195
10505
  const ProgressBar = _.cloneDeep(progressBar);
10196
- ProgressBar.scope = componentScope;
10197
- if (config.layout) {
10198
- ProgressBar.config.layout = config.layout;
10506
+ ProgressBar.scope = componentScope2;
10507
+ if (config2.layout) {
10508
+ ProgressBar.config.layout = config2.layout;
10199
10509
  }
10200
- ProgressBar.config.main.heading = config.label;
10201
- if (config.bottomLabel_3) {
10202
- ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
10510
+ ProgressBar.config.main.heading = config2.label;
10511
+ if (config2.bottomLabel_3) {
10512
+ ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10203
10513
  }
10204
- if (config.layout) {
10205
- ProgressBar.config.layout = createLayoutFormat(config.layout);
10514
+ if (config2.layout) {
10515
+ ProgressBar.config.layout = createLayoutFormat(config2.layout);
10206
10516
  }
10207
- if (config.bottomLabel_2) {
10208
- ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
10517
+ if (config2.bottomLabel_2) {
10518
+ ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
10209
10519
  }
10210
- if (config.bottomLabel_1) {
10211
- ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
10520
+ if (config2.bottomLabel_1) {
10521
+ ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
10212
10522
  }
10213
10523
  return ProgressBar;
10214
10524
  };
@@ -10219,8 +10529,12 @@ const BarGraph = {
10219
10529
  widget: "Graph"
10220
10530
  },
10221
10531
  config: {
10222
- main: {},
10223
- style: { containerStyle: {} }
10532
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10533
+ main: {
10534
+ type: "BarGraph",
10535
+ legendLabels: null
10536
+ },
10537
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10224
10538
  }
10225
10539
  };
10226
10540
  const PieGraph = {
@@ -10230,10 +10544,12 @@ const PieGraph = {
10230
10544
  widget: "Graph"
10231
10545
  },
10232
10546
  config: {
10547
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10233
10548
  main: {
10234
- type: "PieGraph"
10549
+ type: "PieGraph",
10550
+ legendLabels: null
10235
10551
  },
10236
- style: {}
10552
+ style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
10237
10553
  }
10238
10554
  };
10239
10555
  const LineGraph = {
@@ -10243,32 +10559,12 @@ const LineGraph = {
10243
10559
  widget: "Graph"
10244
10560
  },
10245
10561
  config: {
10246
- layout: 12,
10562
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10247
10563
  main: {
10248
10564
  type: "LineGraph",
10249
- header: "Quartely Incentive in Thousand",
10250
- bottomLabel: "Years",
10251
- leftLabel: "Incentive",
10252
- gridHidden: true,
10253
- numHidden: false,
10254
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10255
- axisLeft: true,
10256
- axisBottom: true,
10257
- hideLeftAxisLine: false,
10258
- hideBottomAxisLine: false,
10259
- legend: {
10260
- labelColor: "green",
10261
- direction: "row",
10262
- align: "right",
10263
- colorRectWidth: 20
10264
- }
10565
+ legendLabels: null
10265
10566
  },
10266
- style: {
10267
- containerStyle: {},
10268
- headerStyle: {},
10269
- labelStyle: {},
10270
- lineStyle: {}
10271
- }
10567
+ style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
10272
10568
  }
10273
10569
  };
10274
10570
  const HorizontalBarGraph = {
@@ -10278,42 +10574,51 @@ const HorizontalBarGraph = {
10278
10574
  widget: "Graph"
10279
10575
  },
10280
10576
  config: {
10577
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10281
10578
  main: {
10282
- type: "HorizontalBarGraph"
10579
+ type: "HorizontalBarGraph",
10580
+ legendLabels: null
10283
10581
  },
10284
- style: {}
10582
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10285
10583
  }
10286
10584
  };
10287
- const buildHorizontalBarGraph = (config, componentScope) => {
10585
+ const buildHorizontalBarGraph = (config2, componentScope2) => {
10288
10586
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10289
- horizontalBarGraph.scope = componentScope;
10290
- if (config.layout) {
10291
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10587
+ horizontalBarGraph.scope = componentScope2;
10588
+ if (config2.layout) {
10589
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
10292
10590
  }
10293
- horizontalBarGraph.config.main.type = config.graphType;
10294
- horizontalBarGraph.scope = componentScope;
10295
- horizontalBarGraph.config.main.header = config.heading;
10296
- if (config.barColor) {
10297
- horizontalBarGraph.config.barStyle.color = config.barColor;
10591
+ horizontalBarGraph.config.main.type = config2.graphType;
10592
+ horizontalBarGraph.scope = componentScope2;
10593
+ horizontalBarGraph.config.main.header = config2.heading;
10594
+ if (config2.legendHide) {
10595
+ horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10298
10596
  }
10299
- if (config.xAxisValue) {
10300
- horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10597
+ if (config2.bottomAxisAngle) {
10598
+ horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10301
10599
  }
10302
- if (config.containerBackground) {
10303
- horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10600
+ if (config2.legendLabels) {
10601
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10304
10602
  }
10305
- if (config.height) {
10306
- horizontalBarGraph.config.style = {
10307
- containerStyle: {
10308
- height: config.height
10309
- }
10603
+ if (config2.pieArcColors) {
10604
+ horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10605
+ }
10606
+ if (config2.xAxisValue) {
10607
+ horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
10608
+ }
10609
+ if (config2.height) {
10610
+ horizontalBarGraph.config.style.containerStyle.height = config2.height;
10611
+ }
10612
+ if (config2.leftMargin) {
10613
+ horizontalBarGraph.config.style.labelStyle.margin = {
10614
+ left: config2.leftMargin
10310
10615
  };
10311
10616
  }
10312
- if (config.bottomLabel) {
10313
- horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10617
+ if (config2.bottomLabel) {
10618
+ horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
10314
10619
  }
10315
- if (config.leftLabel) {
10316
- horizontalBarGraph.config.main.leftLabel = config.leftLabel;
10620
+ if (config2.leftLabel) {
10621
+ horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10317
10622
  }
10318
10623
  return horizontalBarGraph;
10319
10624
  };
@@ -10363,20 +10668,20 @@ var SpeedoMeter = {
10363
10668
  }
10364
10669
  }
10365
10670
  };
10366
- const buildSpeedoMeter = (config, componentScope) => {
10671
+ const buildSpeedoMeter = (config2, componentScope2) => {
10367
10672
  const speedoMeter = _.cloneDeep(SpeedoMeter);
10368
- speedoMeter.scope = componentScope;
10369
- if (config.layout) {
10370
- speedoMeter.config.layout = createLayoutFormat(config.layout);
10673
+ speedoMeter.scope = componentScope2;
10674
+ if (config2.layout) {
10675
+ speedoMeter.config.layout = createLayoutFormat(config2.layout);
10371
10676
  }
10372
- if (config.heading) {
10373
- speedoMeter.config.main.header = config.heading;
10677
+ if (config2.heading) {
10678
+ speedoMeter.config.main.header = config2.heading;
10374
10679
  }
10375
- if (config.segments) {
10376
- speedoMeter.config.main.segments = config.segments;
10680
+ if (config2.segments) {
10681
+ speedoMeter.config.main.segments = config2.segments;
10377
10682
  }
10378
- if (config.style) {
10379
- const styleObj = JSON.parse(config.style);
10683
+ if (config2.style) {
10684
+ const styleObj = JSON.parse(config2.style);
10380
10685
  if (styleObj == null ? void 0 : styleObj.style) {
10381
10686
  speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
10382
10687
  }
@@ -10384,90 +10689,95 @@ const buildSpeedoMeter = (config, componentScope) => {
10384
10689
  speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
10385
10690
  }
10386
10691
  }
10387
- if (config.width) {
10388
- speedoMeter.config.main.width = config.width;
10692
+ if (config2.width) {
10693
+ speedoMeter.config.main.width = config2.width;
10389
10694
  }
10390
- if (config.speedoCaption) {
10391
- speedoMeter.config.main.currentValueText = config.speedoCaption;
10695
+ if (config2.speedoCaption) {
10696
+ speedoMeter.config.main.currentValueText = config2.speedoCaption;
10392
10697
  }
10393
- if (config.data) {
10394
- speedoMeter.config.main.data = config.data;
10698
+ if (config2.data) {
10699
+ speedoMeter.config.main.data = config2.data;
10395
10700
  }
10396
- if (config.needleColor) {
10397
- speedoMeter.config.style.needleColor = config.needleColor;
10701
+ if (config2.needleColor) {
10702
+ speedoMeter.config.style.needleColor = config2.needleColor;
10398
10703
  }
10399
- if (config.segments) {
10400
- speedoMeter.config.style.segments = config.segments;
10704
+ if (config2.segments) {
10705
+ speedoMeter.config.style.segments = config2.segments;
10401
10706
  }
10402
- if (config.endColor) {
10403
- speedoMeter.config.style.endColor = config.endColor;
10707
+ if (config2.endColor) {
10708
+ speedoMeter.config.style.endColor = config2.endColor;
10404
10709
  }
10405
- if (config.startColor) {
10406
- speedoMeter.config.style.startColor = config.startColor;
10710
+ if (config2.startColor) {
10711
+ speedoMeter.config.style.startColor = config2.startColor;
10407
10712
  }
10408
- if (config.segmentColors) {
10409
- speedoMeter.config.style.segmentColors = config.segmentColors;
10713
+ if (config2.segmentColors) {
10714
+ speedoMeter.config.style.segmentColors = config2.segmentColors;
10410
10715
  }
10411
10716
  return speedoMeter;
10412
10717
  };
10413
- const buildPieGraph = (config, componentScope) => {
10718
+ const buildPieGraph = (config2, componentScope2) => {
10414
10719
  const pieGraph = _.cloneDeep(PieGraph);
10415
- if (config.layout) {
10416
- pieGraph.config.layout = createLayoutFormat(config.layout);
10720
+ if (config2.layout) {
10721
+ pieGraph.config.layout = createLayoutFormat(config2.layout);
10417
10722
  }
10418
- if (config.height) {
10419
- pieGraph.config.style = {
10420
- containerStyle: {
10421
- height: config.height
10422
- }
10423
- };
10723
+ if (config2.height) {
10724
+ pieGraph.config.style.containerStyle.height = config2.height;
10424
10725
  }
10425
- if (config.legendHide) {
10426
- pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
10726
+ if (config2.legendHide) {
10727
+ pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10427
10728
  }
10428
- pieGraph.scope = componentScope;
10429
- pieGraph.config.main.header = config.heading;
10430
- if (config.legendLabels) {
10431
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10729
+ pieGraph.scope = componentScope2;
10730
+ pieGraph.config.main.header = config2.heading;
10731
+ if (config2.legendLabels) {
10732
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10432
10733
  }
10433
- if (config.xAxisValue) {
10434
- pieGraph.config.main.xAxisValue = config.xAxisValue;
10734
+ if (config2.xAxisValue) {
10735
+ pieGraph.config.main.xAxisValue = config2.xAxisValue;
10435
10736
  }
10436
- if (config.pieArcColors) {
10437
- pieGraph.config.style = {
10438
- pieStyle: {
10439
- colorRange: flatObjectValueInArray(config.pieArcColors)
10440
- }
10441
- };
10737
+ if (config2.pieArcColors) {
10738
+ pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10442
10739
  }
10443
10740
  return pieGraph;
10444
10741
  };
10445
- const buildStackbarGraph = (config, componentScope) => {
10742
+ const buildStackbarGraph = (config2, componentScope2) => {
10743
+ var _a;
10446
10744
  const barGraph = _.cloneDeep(BarGraph);
10447
- if (config.layout) {
10448
- barGraph.config.layout = createLayoutFormat(config.layout);
10745
+ if (config2.layout) {
10746
+ barGraph.config.layout = createLayoutFormat(config2.layout);
10747
+ }
10748
+ if (config2.legendHide) {
10749
+ barGraph.config.main.legendAvailable = config2.legendHide;
10750
+ barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10449
10751
  }
10450
- if (config.legendHide) {
10451
- barGraph.config.main.legendAvailable = config.legendHide;
10752
+ if (config2.bottomAxisAngle) {
10753
+ barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10452
10754
  }
10453
- barGraph.config.main.type = config.graphType;
10454
- barGraph.config.main.header = config.heading;
10455
- if (config.barColor) {
10456
- barGraph.config.barStyle.color = config.barColor;
10755
+ barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10756
+ barGraph.config.main.header = config2.heading;
10757
+ if (config2.legendLabels) {
10758
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10457
10759
  }
10458
- if (config.xAxisValue) {
10459
- barGraph.config.main.xAxisValue = config.xAxisValue;
10760
+ if (config2.pieArcColors) {
10761
+ barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10460
10762
  }
10461
- if (config.height) {
10462
- barGraph.config.style.containerStyle.height = config.height;
10763
+ if (config2.xAxisValue) {
10764
+ barGraph.config.main.xAxisValue = config2.xAxisValue;
10463
10765
  }
10464
- if (config.bottomLabel) {
10465
- barGraph.config.main.bottomLabel = config.bottomLabel;
10766
+ if (config2.height) {
10767
+ barGraph.config.style.containerStyle.height = config2.height;
10466
10768
  }
10467
- if (config.leftLabel) {
10468
- barGraph.config.main.leftLabel = config.leftLabel;
10769
+ if (config2.leftMargin) {
10770
+ barGraph.config.style.labelStyle.margin = {
10771
+ left: config2.leftMargin
10772
+ };
10773
+ }
10774
+ if (config2.bottomLabel) {
10775
+ barGraph.config.main.bottomLabel = config2.bottomLabel;
10469
10776
  }
10470
- barGraph.scope = componentScope;
10777
+ if (config2.leftLabel) {
10778
+ barGraph.config.main.leftLabel = config2.leftLabel;
10779
+ }
10780
+ barGraph.scope = componentScope2;
10471
10781
  return barGraph;
10472
10782
  };
10473
10783
  var RunnerBoyProgressBar = {
@@ -10477,15 +10787,15 @@ var RunnerBoyProgressBar = {
10477
10787
  widget: "RunnerBoyProgressBar"
10478
10788
  },
10479
10789
  config: {
10480
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10790
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10481
10791
  main: {}
10482
10792
  }
10483
10793
  };
10484
- const RunnerBoyProgressbar = (config, componentScope) => {
10794
+ const RunnerBoyProgressbar = (config2, componentScope2) => {
10485
10795
  const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
10486
- RunnerBoy.scope = componentScope;
10487
- if (config.layout) {
10488
- RunnerBoy.config.layout = createLayoutFormat(config.layout);
10796
+ RunnerBoy.scope = componentScope2;
10797
+ if (config2.layout) {
10798
+ RunnerBoy.config.layout = createLayoutFormat(config2.layout);
10489
10799
  }
10490
10800
  return RunnerBoy;
10491
10801
  };
@@ -10500,19 +10810,19 @@ var Tabsection = {
10500
10810
  },
10501
10811
  elements: []
10502
10812
  };
10503
- const buildTabSection = (config, componentScope) => {
10813
+ const buildTabSection = (config2, componentScope2) => {
10504
10814
  const tab = _.cloneDeep(Tabsection);
10505
- tab.scope = componentScope;
10506
- if (config.lazyLoad) {
10507
- tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
10815
+ tab.scope = componentScope2;
10816
+ if (config2.lazyLoad) {
10817
+ tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
10508
10818
  }
10509
- if (config.orientation) {
10510
- tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
10819
+ if (config2.orientation) {
10820
+ tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
10511
10821
  }
10512
- if (config.sectionLabels) {
10513
- tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
10822
+ if (config2.sectionLabels) {
10823
+ tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
10514
10824
  }
10515
- tab.config.main.id = config.name;
10825
+ tab.config.main.id = config2.name;
10516
10826
  return tab;
10517
10827
  };
10518
10828
  var WrapperSection = {
@@ -10527,20 +10837,20 @@ var WrapperSection = {
10527
10837
  },
10528
10838
  elements: []
10529
10839
  };
10530
- const buildWrapperSection = (config, componentScope) => {
10840
+ const buildWrapperSection = (config2, componentScope2) => {
10531
10841
  const wrapper = _.cloneDeep(WrapperSection);
10532
- wrapper.scope = componentScope;
10533
- wrapper.config.main.label = config.label;
10534
- wrapper.config.main.divider = config.divider === "YES" ? true : false;
10535
- wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
10536
- if (config.defaultStyle) {
10537
- wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
10842
+ wrapper.scope = componentScope2;
10843
+ wrapper.config.main.label = config2.label;
10844
+ wrapper.config.main.divider = config2.divider === "YES" ? true : false;
10845
+ wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
10846
+ if (config2.defaultStyle) {
10847
+ wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
10538
10848
  }
10539
- if (config.style) {
10540
- wrapper.config.style = JSON.parse(config.style);
10849
+ if (config2.style) {
10850
+ wrapper.config.style = JSON.parse(config2.style);
10541
10851
  }
10542
- if (config.layout) {
10543
- wrapper.config.layout = createLayoutFormat(config.layout);
10852
+ if (config2.layout) {
10853
+ wrapper.config.layout = createLayoutFormat(config2.layout);
10544
10854
  }
10545
10855
  return wrapper;
10546
10856
  };
@@ -10558,23 +10868,23 @@ var TextInputField = {
10558
10868
  style: {}
10559
10869
  }
10560
10870
  };
10561
- const buildTextField = (config, componentScope) => {
10871
+ const buildTextField = (config2, componentScope2) => {
10562
10872
  const inputField = _.cloneDeep(TextInputField);
10563
- inputField.config.main.label = config.label;
10564
- if (config.style) {
10565
- inputField.config.style = JSON.parse(config.style);
10873
+ inputField.config.main.label = config2.label;
10874
+ if (config2.style) {
10875
+ inputField.config.style = JSON.parse(config2.style);
10566
10876
  }
10567
- if (config.InputFormatingAndMasking) {
10568
- inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
10877
+ if (config2.InputFormatingAndMasking) {
10878
+ inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10569
10879
  }
10570
- if (config.placeholder) {
10571
- inputField.config.main.placeholder = config.placeholder;
10880
+ if (config2.placeholder) {
10881
+ inputField.config.main.placeholder = config2.placeholder;
10572
10882
  }
10573
- if (config.layout) {
10574
- inputField.config.layout = createLayoutFormat(config.layout);
10883
+ if (config2.layout) {
10884
+ inputField.config.layout = createLayoutFormat(config2.layout);
10575
10885
  }
10576
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
10577
- inputField.scope = componentScope;
10886
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
10887
+ inputField.scope = componentScope2;
10578
10888
  return inputField;
10579
10889
  };
10580
10890
  var SelectInputField = {
@@ -10592,22 +10902,22 @@ var SelectInputField = {
10592
10902
  }
10593
10903
  }
10594
10904
  };
10595
- const buildSelect = (config, componentScope) => {
10905
+ const buildSelect = (config2, componentScope2) => {
10596
10906
  const selectInputField = _.cloneDeep(SelectInputField);
10597
- selectInputField.config.main.label = config.label;
10598
- if (config.value) {
10599
- selectInputField.config.main.options = config.value;
10907
+ selectInputField.config.main.label = config2.label;
10908
+ if (config2.value) {
10909
+ selectInputField.config.main.options = config2.value;
10600
10910
  }
10601
- if (config.freeSolo) {
10602
- selectInputField.config.main.freeSolo = config.freeSolo === "YES" ? true : false;
10911
+ if (config2.freeSolo) {
10912
+ selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
10603
10913
  }
10604
- if (config.lazyLoading) {
10605
- selectInputField.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
10914
+ if (config2.lazyLoading) {
10915
+ selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
10606
10916
  }
10607
- if (config.layout) {
10608
- selectInputField.config.layout = createLayoutFormat(config.layout);
10917
+ if (config2.layout) {
10918
+ selectInputField.config.layout = createLayoutFormat(config2.layout);
10609
10919
  }
10610
- selectInputField.scope = componentScope;
10920
+ selectInputField.scope = componentScope2;
10611
10921
  return selectInputField;
10612
10922
  };
10613
10923
  var Button = {
@@ -10621,7 +10931,6 @@ var Button = {
10621
10931
  main: {
10622
10932
  name: "Compare",
10623
10933
  variant: "contained",
10624
- color: "info",
10625
10934
  type: "text",
10626
10935
  startIcon: "",
10627
10936
  styleDefault: false,
@@ -10632,37 +10941,37 @@ var Button = {
10632
10941
  style: {}
10633
10942
  }
10634
10943
  };
10635
- const buildButton = (config, componentScope) => {
10944
+ const buildButton = (config2, componentScope2) => {
10636
10945
  const button = _.cloneDeep(Button);
10637
- if (config.buttonType) {
10638
- button.options.widget = config.buttonType === "IconButton" ? "IconButton" : "Button";
10639
- config.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config.iconName : button.config.main.icon = config.iconName;
10946
+ if (config2.buttonType) {
10947
+ button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
10948
+ config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
10640
10949
  }
10641
- if (config.layout) {
10642
- button.config.layout = createLayoutFormat(config.layout);
10950
+ if (config2.layout) {
10951
+ button.config.layout = createLayoutFormat(config2.layout);
10643
10952
  }
10644
- if (config.tooltipMessage) {
10645
- button.config.main.tooltipMessage = config.tooltipMessage;
10953
+ if (config2.tooltipMessage) {
10954
+ button.config.main.tooltipMessage = config2.tooltipMessage;
10646
10955
  }
10647
- if (config.defaultStyle) {
10648
- if (config.buttonType === "IconButton") {
10649
- button.config.main.styleDefault = config.defaultStyle === "true" ? true : false;
10956
+ if (config2.defaultStyle) {
10957
+ if (config2.buttonType === "IconButton") {
10958
+ button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
10650
10959
  } else {
10651
- button.config.main.enableDefaultStyle = config.defaultStyle === "true" ? false : true;
10960
+ button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
10652
10961
  }
10653
10962
  }
10654
- button.scope = componentScope;
10655
- if (config.style) {
10656
- button.config.style = JSON.parse(config.style);
10963
+ button.scope = componentScope2;
10964
+ if (config2.style) {
10965
+ button.config.style = JSON.parse(config2.style);
10657
10966
  }
10658
- if (config.size) {
10659
- button.config.main.size = config.size;
10967
+ if (config2.size) {
10968
+ button.config.main.size = config2.size;
10660
10969
  }
10661
- if (config.color) {
10662
- button.config.main.color = config.color;
10970
+ if (config2.color) {
10971
+ button.config.main.color = config2.color;
10663
10972
  }
10664
- if (config.label) {
10665
- button.config.main.name = config.label;
10973
+ if (config2.label) {
10974
+ button.config.main.name = config2.label;
10666
10975
  }
10667
10976
  return button;
10668
10977
  };
@@ -10686,71 +10995,71 @@ var Table = {
10686
10995
  }
10687
10996
  }
10688
10997
  };
10689
- const buildTable = (config, componentScope) => {
10998
+ const buildTable = (config2, componentScope2) => {
10690
10999
  const table = _.cloneDeep(Table);
10691
- table.scope = componentScope;
10692
- if (config.style) {
10693
- table.config.style = JSON.parse(config.style);
11000
+ table.scope = componentScope2;
11001
+ if (config2.style) {
11002
+ table.config.style = JSON.parse(config2.style);
10694
11003
  }
10695
- if (config.lazyLoading) {
10696
- table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11004
+ if (config2.lazyLoading) {
11005
+ table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
10697
11006
  }
10698
- if (config.enableRowMovement) {
10699
- table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
11007
+ if (config2.enableRowMovement) {
11008
+ table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
10700
11009
  }
10701
- if (config.enableExpanding) {
10702
- table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
11010
+ if (config2.enableExpanding) {
11011
+ table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
10703
11012
  }
10704
- if (config.enableExpandAll) {
10705
- table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
11013
+ if (config2.enableExpandAll) {
11014
+ table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
10706
11015
  }
10707
- if (config.paginateExpandedRows) {
10708
- table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
11016
+ if (config2.paginateExpandedRows) {
11017
+ table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
10709
11018
  }
10710
- if (config.treeStructure) {
10711
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
11019
+ if (config2.treeStructure) {
11020
+ table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
10712
11021
  }
10713
- if (config.SelectionAvailable) {
10714
- table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
11022
+ if (config2.SelectionAvailable) {
11023
+ table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
10715
11024
  }
10716
- if (config.ColumnResizingAvailable) {
10717
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
11025
+ if (config2.ColumnResizingAvailable) {
11026
+ table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
10718
11027
  }
10719
- if (config.DragAvailable) {
10720
- table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
11028
+ if (config2.DragAvailable) {
11029
+ table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
10721
11030
  }
10722
- if (config.downloadAllData) {
10723
- table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
11031
+ if (config2.downloadAllData) {
11032
+ table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
10724
11033
  }
10725
- if (config.disableGlobalSearch) {
10726
- table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
11034
+ if (config2.disableGlobalSearch) {
11035
+ table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
10727
11036
  }
10728
- if (config.disableColumnFilter) {
10729
- table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
11037
+ if (config2.disableColumnFilter) {
11038
+ table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
10730
11039
  }
10731
- if (config.disableSorting) {
10732
- table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
11040
+ if (config2.disableSorting) {
11041
+ table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
10733
11042
  }
10734
- if (config.disableEditColumn) {
10735
- table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
11043
+ if (config2.disableEditColumn) {
11044
+ table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
10736
11045
  }
10737
- if (config.disableFullScreenToggle) {
10738
- table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
11046
+ if (config2.disableFullScreenToggle) {
11047
+ table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
10739
11048
  }
10740
- if (config.disableDensityToggle) {
10741
- table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
11049
+ if (config2.disableDensityToggle) {
11050
+ table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
10742
11051
  }
10743
- if (config.disableDownloadFile) {
10744
- table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
11052
+ if (config2.disableDownloadFile) {
11053
+ table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
10745
11054
  }
10746
- if (config.disablePagination) {
10747
- table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
11055
+ if (config2.disablePagination) {
11056
+ table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
10748
11057
  }
10749
- if (config.Table_Download_Keys_Name) {
10750
- table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
11058
+ if (config2.Table_Download_Keys_Name) {
11059
+ table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
10751
11060
  }
10752
- if (config.selectKey) {
10753
- table.config.main.selectKey = config.selectKey;
11061
+ if (config2.selectKey) {
11062
+ table.config.main.selectKey = config2.selectKey;
10754
11063
  }
10755
11064
  return table;
10756
11065
  };
@@ -10766,15 +11075,15 @@ const Box = {
10766
11075
  style: {}
10767
11076
  }
10768
11077
  };
10769
- const buildLabel = (config, componentScope) => {
11078
+ const buildLabel = (config2, componentScope2) => {
10770
11079
  const box = _.cloneDeep(Box);
10771
- box.scope = componentScope;
10772
- box.config.main.heading = config.label;
10773
- if (config.layout) {
10774
- box.config.layout = createLayoutFormat(config.layout);
11080
+ box.scope = componentScope2;
11081
+ box.config.main.heading = config2.label;
11082
+ if (config2.layout) {
11083
+ box.config.layout = createLayoutFormat(config2.layout);
10775
11084
  }
10776
- if (config.style) {
10777
- box.config.style = JSON.parse(config.style);
11085
+ if (config2.style) {
11086
+ box.config.style = JSON.parse(config2.style);
10778
11087
  }
10779
11088
  return box;
10780
11089
  };
@@ -10814,42 +11123,39 @@ const downloadFile = {
10814
11123
  "widget": "DownloadFile"
10815
11124
  }
10816
11125
  };
10817
- const buildUploadFile = (config, componentScope) => {
11126
+ const buildUploadFile = (config2, componentScope2) => {
10818
11127
  const UploadFile = _.cloneDeep(uploadFile);
10819
- UploadFile.scope = componentScope;
10820
- UploadFile.config.main.label = config.label;
10821
- if (config.layout) {
10822
- UploadFile.config.layout = config.layout;
10823
- }
10824
- if (config.layout) {
10825
- uploadFile.config.layout = createLayoutFormat(config.layout);
11128
+ UploadFile.scope = componentScope2;
11129
+ UploadFile.config.main.label = config2.label;
11130
+ if (config2.layout) {
11131
+ UploadFile.config.layout = createLayoutFormat(config2.layout);
10826
11132
  }
10827
- if (config.style) {
10828
- UploadFile.config.style = config.style;
11133
+ if (config2.style) {
11134
+ UploadFile.config.style = config2.style;
10829
11135
  }
10830
- if (config.required) {
11136
+ if (config2.required) {
10831
11137
  UploadFile.config.main.required = true;
10832
11138
  }
10833
- UploadFile.config.main.errorMessage = config.errorMessage;
11139
+ UploadFile.config.main.errorMessage = config2.errorMessage;
10834
11140
  return UploadFile;
10835
11141
  };
10836
- const buildDownloadFile = (config, componentScope) => {
11142
+ const buildDownloadFile = (config2, componentScope2) => {
10837
11143
  const DownloadFile = _.cloneDeep(downloadFile);
10838
- DownloadFile.scope = componentScope;
10839
- if (config.layout) {
10840
- DownloadFile.config.layout = config.layout;
11144
+ DownloadFile.scope = componentScope2;
11145
+ if (config2.layout) {
11146
+ DownloadFile.config.layout = config2.layout;
10841
11147
  }
10842
- if (config.style) {
10843
- DownloadFile.config.style = config.style;
11148
+ if (config2.style) {
11149
+ DownloadFile.config.style = config2.style;
10844
11150
  }
10845
- if (config.required) {
11151
+ if (config2.required) {
10846
11152
  DownloadFile.config.main.required = true;
10847
11153
  }
10848
- if (config.layout) {
10849
- DownloadFile.config.layout = createLayoutFormat(config.layout);
11154
+ if (config2.layout) {
11155
+ DownloadFile.config.layout = createLayoutFormat(config2.layout);
10850
11156
  }
10851
- if (config.errorMessage) {
10852
- DownloadFile.config.main.errorMessage = config.errorMessage;
11157
+ if (config2.errorMessage) {
11158
+ DownloadFile.config.main.errorMessage = config2.errorMessage;
10853
11159
  }
10854
11160
  return DownloadFile;
10855
11161
  };
@@ -10858,15 +11164,23 @@ function Card(theme) {
10858
11164
  type: "WrapperLayout",
10859
11165
  config: {
10860
11166
  main: {},
10861
- wrapperStyle: {},
11167
+ wrapperStyle: {
11168
+ position: "relative",
11169
+ top: "50%",
11170
+ transform: "translateY(-50%)"
11171
+ },
10862
11172
  componentsBoxStyle: {
11173
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
10863
11174
  flexDirection: "row",
10864
11175
  flexWrap: "nowrap",
10865
- width: "100%",
11176
+ width: "100% !important",
10866
11177
  background: "transparent",
10867
- border: `1.5px solid ${theme.palette.primary.main}`,
10868
- borderRadius: "20px",
10869
- padding: "0px 20px 0px 20px",
11178
+ border: `1.5px solid ${theme.palette.primary.light}`,
11179
+ borderRadius: "8px",
11180
+ padding: "0px 4px",
11181
+ height: "100%",
11182
+ alignItems: "center",
11183
+ marginLeft: "0px",
10870
11184
  "&: hover": {
10871
11185
  background: `${theme.palette.primary.main}`,
10872
11186
  border: `1.5px solid black`,
@@ -10892,7 +11206,6 @@ function Card(theme) {
10892
11206
  gap: 0
10893
11207
  },
10894
11208
  wrapperStyle: {
10895
- marginTop: "4px",
10896
11209
  background: "transparent"
10897
11210
  },
10898
11211
  componentsBoxStyle: {
@@ -10907,27 +11220,78 @@ function Card(theme) {
10907
11220
  },
10908
11221
  elements: [
10909
11222
  {
10910
- type: "Control",
10911
- scope: "#/properties/programType",
11223
+ type: "WrapperLayout",
10912
11224
  config: {
10913
11225
  main: {
10914
- heading: "$5000.00"
11226
+ columnSpacing: 0,
11227
+ gap: 0
10915
11228
  },
10916
- style: {
10917
- color: "black",
10918
- display: "flex",
10919
- fontSize: { xs: "24px", md: "28px" },
10920
- fontWeight: "bold",
10921
- background: "inherit",
10922
- justifyContent: "flex-start",
10923
- width: "calc(100%+8px)",
10924
- margin: "-8px"
11229
+ wrapperStyle: {
11230
+ background: "transparent"
11231
+ },
11232
+ componentsBoxStyle: {
11233
+ flexDirection: "row",
11234
+ flexWrap: "nowrap",
11235
+ width: "100%",
11236
+ height: "0",
11237
+ background: "transparent",
11238
+ borderRadius: "0px",
11239
+ marginLeft: "-10px",
11240
+ marginTop: "-8px",
11241
+ justifyContent: "start",
11242
+ position: "relative"
10925
11243
  },
10926
11244
  layout: 12
10927
11245
  },
10928
- options: {
10929
- widget: "Box"
10930
- }
11246
+ elements: [
11247
+ {
11248
+ type: "Control",
11249
+ scope: "#/properties/programType",
11250
+ config: {
11251
+ main: {
11252
+ heading: ""
11253
+ },
11254
+ style: {
11255
+ color: "black",
11256
+ display: "flex",
11257
+ fontSize: { xs: "24px", md: "28px" },
11258
+ fontWeight: "bold",
11259
+ background: "inherit",
11260
+ justifyContent: "flex-start",
11261
+ width: "auto",
11262
+ margin: "-8px",
11263
+ height: 0
11264
+ }
11265
+ },
11266
+ options: {
11267
+ widget: "Box"
11268
+ }
11269
+ },
11270
+ {
11271
+ type: "Control",
11272
+ scope: "#/properties/programType",
11273
+ config: {
11274
+ main: {
11275
+ heading: "5000.00"
11276
+ },
11277
+ style: {
11278
+ color: "black",
11279
+ display: "flex",
11280
+ fontSize: { xs: "24px", md: "28px" },
11281
+ fontWeight: "bold",
11282
+ background: "inherit",
11283
+ justifyContent: "flex-start",
11284
+ width: "auto",
11285
+ margin: "-8px",
11286
+ position: "absolute",
11287
+ left: "8px"
11288
+ }
11289
+ },
11290
+ options: {
11291
+ widget: "Box"
11292
+ }
11293
+ }
11294
+ ]
10931
11295
  },
10932
11296
  {
10933
11297
  type: "Control",
@@ -10942,8 +11306,9 @@ function Card(theme) {
10942
11306
  justifyContent: "center",
10943
11307
  textWrap: "wrap",
10944
11308
  background: "inherit",
10945
- width: "calc(100%+8pc)",
11309
+ width: "calc(100%+8px)",
10946
11310
  margin: "-8px",
11311
+ marginTop: { xs: "0px", md: "12px" },
10947
11312
  lineHeight: "1"
10948
11313
  },
10949
11314
  layout: 12
@@ -10967,13 +11332,14 @@ function Card(theme) {
10967
11332
  containerStyle: {
10968
11333
  height: "100%",
10969
11334
  display: "flex",
10970
- justifyContent: "center"
11335
+ justifyContent: "end"
10971
11336
  },
10972
11337
  imageStyle: {
10973
- height: "100%",
11338
+ width: "unset",
10974
11339
  fontSize: "none",
10975
11340
  padding: "4px",
10976
- marginLeft: "8px"
11341
+ margin: "0px 0px 0px 8px",
11342
+ height: "64px"
10977
11343
  }
10978
11344
  },
10979
11345
  layout: 4
@@ -10986,19 +11352,23 @@ function Card(theme) {
10986
11352
  };
10987
11353
  return uiSchema;
10988
11354
  }
10989
- const buildCard = (config, componentScope, store2) => {
10990
- const card = _.cloneDeep(Card(store2.theme.myTheme));
11355
+ const buildCard = (config, componentScope, store) => {
11356
+ const card = _.cloneDeep(Card(store.theme.myTheme));
10991
11357
  if (config.style) {
10992
- card.config.style = JSON.parse(config.style);
11358
+ card.config.wrapperStyle = JSON.parse(config.style);
10993
11359
  }
10994
- card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
11360
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
10995
11361
  card.elements[1].scope = `#/properties/${config.name}/properties/url`;
10996
11362
  card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
10997
11363
  if (config.layout) {
10998
11364
  card.config.layout = createLayoutFormat(config.layout);
10999
11365
  }
11366
+ if (config == null ? void 0 : config.titleIcon) {
11367
+ card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
11368
+ card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11369
+ }
11000
11370
  if (config.label) {
11001
- card.elements[0].elements[0].elements[0].config.main.heading = config.label;
11371
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11002
11372
  }
11003
11373
  if (config.url) {
11004
11374
  card.elements[1].config.main.url = config.url;
@@ -11036,23 +11406,23 @@ const DateTime = {
11036
11406
  }
11037
11407
  }
11038
11408
  };
11039
- const buildDate = (config, componentScope) => {
11409
+ const buildDate = (config2, componentScope2) => {
11040
11410
  const dateInputField = _.cloneDeep(DateInputField);
11041
- dateInputField.config.main.label = config.label;
11042
- dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11043
- dateInputField.scope = componentScope;
11044
- if (config.layout) {
11045
- dateInputField.config.layout = createLayoutFormat(config.layout);
11411
+ dateInputField.config.main.label = config2.label;
11412
+ dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11413
+ dateInputField.scope = componentScope2;
11414
+ if (config2.layout) {
11415
+ dateInputField.config.layout = createLayoutFormat(config2.layout);
11046
11416
  }
11047
11417
  return dateInputField;
11048
11418
  };
11049
- const buildDateTime = (config, componentScope) => {
11419
+ const buildDateTime = (config2, componentScope2) => {
11050
11420
  const dateTimeInputField = _.cloneDeep(DateTime);
11051
- dateTimeInputField.config.main.label = config.label;
11052
- dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11053
- dateTimeInputField.scope = componentScope;
11054
- if (config.layout) {
11055
- dateTimeInputField.config.layout = createLayoutFormat(config.layout);
11421
+ dateTimeInputField.config.main.label = config2.label;
11422
+ dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11423
+ dateTimeInputField.scope = componentScope2;
11424
+ if (config2.layout) {
11425
+ dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11056
11426
  }
11057
11427
  return dateTimeInputField;
11058
11428
  };
@@ -11063,27 +11433,21 @@ var RankCard = {
11063
11433
  widget: "RankCard"
11064
11434
  },
11065
11435
  config: {
11066
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11436
+ layout: { xs: 12, sm: 6, md: 6, lg: 6 },
11067
11437
  main: {}
11068
11438
  }
11069
11439
  };
11070
- const buildRankCard = (config, componentScope) => {
11440
+ const buildRankCard = (config2, componentScope2) => {
11071
11441
  const rankCard = _.cloneDeep(RankCard);
11072
- rankCard.scope = componentScope;
11073
- if (config.image) {
11074
- rankCard.config.main.url = config.image;
11075
- }
11076
- if (config.title) {
11077
- rankCard.config.main.title = config.title;
11442
+ rankCard.scope = componentScope2;
11443
+ if (config2.rank) {
11444
+ rankCard.config.main.rank = `${config2.rank}`;
11078
11445
  }
11079
- if (config.description) {
11080
- rankCard.config.main.description = config.description;
11081
- }
11082
- if (config.rank) {
11083
- rankCard.config.main.rank = `#${config.rank}`;
11446
+ if (config2.height) {
11447
+ rankCard.config.main.height = `${config2.height}px`;
11084
11448
  }
11085
- if (config.layout) {
11086
- rankCard.config.layout = createLayoutFormat(config.layout);
11449
+ if (config2.layout) {
11450
+ rankCard.config.layout = createLayoutFormat(config2.layout);
11087
11451
  }
11088
11452
  return rankCard;
11089
11453
  };
@@ -11098,13 +11462,13 @@ var RollAndDice = {
11098
11462
  main: {}
11099
11463
  }
11100
11464
  };
11101
- const buildRollAndDice = (config, componentScope) => {
11465
+ const buildRollAndDice = (config2, componentScope2) => {
11102
11466
  const rank = _.cloneDeep(RollAndDice);
11103
- if (config.name) {
11104
- rank.scope = componentScope;
11467
+ if (config2.name) {
11468
+ rank.scope = componentScope2;
11105
11469
  }
11106
- if (config.layout) {
11107
- rank.config.layout = createLayoutFormat(config.layout);
11470
+ if (config2.layout) {
11471
+ rank.config.layout = createLayoutFormat(config2.layout);
11108
11472
  }
11109
11473
  return rank;
11110
11474
  };
@@ -11118,34 +11482,21 @@ var Timer = {
11118
11482
  layout: {
11119
11483
  xs: 12,
11120
11484
  sm: 12,
11121
- md: 12,
11122
- lg: 12
11485
+ md: 6,
11486
+ lg: 6
11123
11487
  },
11124
11488
  main: {},
11125
- style: {
11126
- digitContainer: {
11127
- borderRadius: "4px",
11128
- textShawdow: "none",
11129
- width: "22%"
11130
- },
11131
- container: {
11132
- backgroundColor: "#FFFFFF",
11133
- borderRadius: "18px"
11134
- },
11135
- containerLabelColor: {
11136
- color: "red"
11137
- }
11138
- }
11489
+ style: {}
11139
11490
  }
11140
11491
  };
11141
- const buildTimer = (config, componentScope) => {
11492
+ const buildTimer = (config2, componentScope2) => {
11142
11493
  const timer = _.cloneDeep(Timer);
11143
- timer.scope = componentScope;
11144
- if (config.label) {
11145
- timer.config.main.label = config.label;
11494
+ timer.scope = componentScope2;
11495
+ if (config2.label) {
11496
+ timer.config.main.label = config2.label;
11146
11497
  }
11147
- if (config.layout) {
11148
- timer.config.layout = createLayoutFormat(config.layout);
11498
+ if (config2.layout) {
11499
+ timer.config.layout = createLayoutFormat(config2.layout);
11149
11500
  }
11150
11501
  return timer;
11151
11502
  };
@@ -11166,30 +11517,30 @@ var MultipleSelect = {
11166
11517
  }
11167
11518
  }
11168
11519
  };
11169
- const buildMultiSelect = (config, componentScope) => {
11520
+ const buildMultiSelect = (config2, componentScope2) => {
11170
11521
  const multipleSelect = _.cloneDeep(MultipleSelect);
11171
- multipleSelect.scope = componentScope;
11172
- if (config.label) {
11173
- multipleSelect.config.main.label = config.label;
11522
+ multipleSelect.scope = componentScope2;
11523
+ if (config2.label) {
11524
+ multipleSelect.config.main.label = config2.label;
11174
11525
  }
11175
- if (config.layout) {
11176
- multipleSelect.config.layout = createLayoutFormat(config.layout);
11526
+ if (config2.layout) {
11527
+ multipleSelect.config.layout = createLayoutFormat(config2.layout);
11177
11528
  }
11178
- if (config.value) {
11179
- multipleSelect.config.main.options = config.value;
11529
+ if (config2.value) {
11530
+ multipleSelect.config.main.options = config2.value;
11180
11531
  }
11181
- if (config.lazyLoading) {
11182
- multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11532
+ if (config2.lazyLoading) {
11533
+ multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11183
11534
  }
11184
11535
  return multipleSelect;
11185
11536
  };
11186
- const buildBasicUiSchema = (config) => {
11537
+ const buildBasicUiSchema = (config2) => {
11187
11538
  return {
11188
11539
  "type": "HorizontalLayout",
11189
- pageName: config.name,
11190
- name: config.name,
11191
- accessorKey: config.name,
11192
- heading: config.label || config.name,
11540
+ pageName: config2.name,
11541
+ name: config2.name,
11542
+ accessorKey: config2.name,
11543
+ heading: config2.label || config2.name,
11193
11544
  "elements": []
11194
11545
  };
11195
11546
  };
@@ -11220,25 +11571,25 @@ const TextArea = {
11220
11571
  }
11221
11572
  }
11222
11573
  };
11223
- const buildTextArea = (config, componentScope) => {
11574
+ const buildTextArea = (config2, componentScope2) => {
11224
11575
  const textArea = _.cloneDeep(TextArea);
11225
- textArea.config.main.heading = config.label;
11226
- if (config.layout) {
11227
- textArea.config.layout = createLayoutFormat(config.layout);
11576
+ textArea.config.main.heading = config2.label;
11577
+ if (config2.layout) {
11578
+ textArea.config.layout = createLayoutFormat(config2.layout);
11228
11579
  }
11229
- if (config.style) {
11230
- textArea.config.style = JSON.parse(config.style);
11580
+ if (config2.style) {
11581
+ textArea.config.style = JSON.parse(config2.style);
11231
11582
  }
11232
- if (config.placeholder) {
11233
- textArea.config.main.placeholder = config.placeholder;
11583
+ if (config2.placeholder) {
11584
+ textArea.config.main.placeholder = config2.placeholder;
11234
11585
  }
11235
- if (config.enableCodeEditor) {
11236
- textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11586
+ if (config2.enableCodeEditor) {
11587
+ textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
11237
11588
  }
11238
- if (config.codeEditorLanguage) {
11239
- textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11589
+ if (config2.codeEditorLanguage) {
11590
+ textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
11240
11591
  }
11241
- textArea.scope = componentScope;
11592
+ textArea.scope = componentScope2;
11242
11593
  return textArea;
11243
11594
  };
11244
11595
  var cardSlider = {
@@ -11253,13 +11604,13 @@ var cardSlider = {
11253
11604
  main: {}
11254
11605
  }
11255
11606
  };
11256
- const buildSlider = (config, componentScope) => {
11607
+ const buildSlider = (config2, componentScope2) => {
11257
11608
  const slider = _.cloneDeep(cardSlider);
11258
- if (config.name) {
11259
- slider.scope = componentScope;
11609
+ if (config2.name) {
11610
+ slider.scope = componentScope2;
11260
11611
  }
11261
- if (config.layout) {
11262
- slider.config.layout = createLayoutFormat(config.layout);
11612
+ if (config2.layout) {
11613
+ slider.config.layout = createLayoutFormat(config2.layout);
11263
11614
  }
11264
11615
  return slider;
11265
11616
  };
@@ -11276,49 +11627,57 @@ const Checkbox = {
11276
11627
  }
11277
11628
  }
11278
11629
  };
11279
- const buildCheckbox = (config, componentScope) => {
11630
+ const buildCheckbox = (config2, componentScope2) => {
11280
11631
  const check = _.cloneDeep(Checkbox);
11281
- check.scope = componentScope;
11282
- check.config.main.label = config.label;
11283
- if (config.layout) {
11284
- check.config.layout = createLayoutFormat(config.layout);
11632
+ check.scope = componentScope2;
11633
+ check.config.main.label = config2.label;
11634
+ if (config2.layout) {
11635
+ check.config.layout = createLayoutFormat(config2.layout);
11285
11636
  }
11286
- if (config.style) {
11287
- check.config.style = JSON.parse(config.style);
11637
+ if (config2.style) {
11638
+ check.config.style = JSON.parse(config2.style);
11288
11639
  }
11289
11640
  return check;
11290
11641
  };
11291
- const buildLineGraph = (config, componentScope) => {
11642
+ const buildLineGraph = (config2, componentScope2) => {
11292
11643
  const lineGraph = _.cloneDeep(LineGraph);
11293
- if (config.layout) {
11294
- lineGraph.config.layout = createLayoutFormat(config.layout);
11644
+ if (config2.layout) {
11645
+ lineGraph.config.layout = createLayoutFormat(config2.layout);
11646
+ }
11647
+ lineGraph.config.main.header = config2.heading;
11648
+ if (config2.height) {
11649
+ lineGraph.config.style.containerStyle.height = config2.height;
11650
+ }
11651
+ if (config2.leftMargin) {
11652
+ lineGraph.config.style.labelStyle.margin = {
11653
+ left: config2.leftMargin
11654
+ };
11295
11655
  }
11296
- lineGraph.config.main.header = config.heading;
11297
- if (config.height) {
11298
- lineGraph.config.style.containerStyle.height = config.height;
11656
+ if (config2.bottomLabel) {
11657
+ lineGraph.config.main.bottomLabel = config2.bottomLabel;
11299
11658
  }
11300
- if (config.bottomLabel) {
11301
- lineGraph.config.main.bottomLabel = config.bottomLabel;
11659
+ if (config2.yAxisValue) {
11660
+ lineGraph.config.main.yAxisValue = config2.yAxisValue;
11302
11661
  }
11303
- if (config.yAxisValue) {
11304
- lineGraph.config.main.yAxisValue = config.yAxisValue;
11662
+ if (config2.xAxisValue) {
11663
+ lineGraph.config.main.xAxisValue = config2.xAxisValue;
11305
11664
  }
11306
- if (config.xAxisValue) {
11307
- lineGraph.config.main.xAxisValue = config.xAxisValue;
11665
+ if (config2.leftLabel) {
11666
+ lineGraph.config.main.leftLabel = config2.leftLabel;
11308
11667
  }
11309
- if (config.leftLabel) {
11310
- lineGraph.config.main.leftLabel = config.leftLabel;
11668
+ if (config2.legendHide) {
11669
+ lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11311
11670
  }
11312
- if (config.legendHide) {
11313
- lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
11671
+ if (config2.bottomAxisAngle) {
11672
+ lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11314
11673
  }
11315
- if (config.legendLabels) {
11316
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11674
+ if (config2.legendLabels) {
11675
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11317
11676
  }
11318
- if (config.pieArcColors) {
11319
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11677
+ if (config2.pieArcColors) {
11678
+ lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11320
11679
  }
11321
- lineGraph.scope = componentScope;
11680
+ lineGraph.scope = componentScope2;
11322
11681
  return lineGraph;
11323
11682
  };
11324
11683
  const RadioUiSchema = {
@@ -11336,25 +11695,25 @@ const RadioUiSchema = {
11336
11695
  }
11337
11696
  }
11338
11697
  };
11339
- const buildRadio = (config, componentScope) => {
11698
+ const buildRadio = (config2, componentScope2) => {
11340
11699
  const Radio = _.cloneDeep(RadioUiSchema);
11341
- Radio.scope = componentScope;
11342
- Radio.config.main.label = config.label;
11343
- if (config.layout) {
11344
- Radio.config.layout = createLayoutFormat(config.layout);
11700
+ Radio.scope = componentScope2;
11701
+ Radio.config.main.label = config2.label;
11702
+ if (config2.layout) {
11703
+ Radio.config.layout = createLayoutFormat(config2.layout);
11345
11704
  }
11346
- if (config.sectionLabels) {
11347
- Radio.config.main.options = config.sectionLabels.map((e) => e.label || e.Options);
11705
+ if (config2.sectionLabels) {
11706
+ Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
11348
11707
  }
11349
- if (config.style) {
11350
- Radio.config.style = JSON.parse(config.style);
11708
+ if (config2.style) {
11709
+ Radio.config.style = JSON.parse(config2.style);
11351
11710
  }
11352
11711
  return Radio;
11353
11712
  };
11354
- const buildEmptyBox = (config, componentScope) => {
11713
+ const buildEmptyBox = (config2, componentScope2) => {
11355
11714
  const EmptyBox = _.cloneDeep(emptyBox);
11356
- if (config.layout) {
11357
- EmptyBox.config.layout = createLayoutFormat(config.layout);
11715
+ if (config2.layout) {
11716
+ EmptyBox.config.layout = createLayoutFormat(config2.layout);
11358
11717
  }
11359
11718
  return EmptyBox;
11360
11719
  };
@@ -11369,9 +11728,9 @@ const ArrayUiSchema = {
11369
11728
  }
11370
11729
  }
11371
11730
  };
11372
- const buildArray = (config, componentScope) => {
11731
+ const buildArray = (config2, componentScope2) => {
11373
11732
  const array = _.cloneDeep(ArrayUiSchema);
11374
- array.scope = componentScope;
11733
+ array.scope = componentScope2;
11375
11734
  return array;
11376
11735
  };
11377
11736
  const TextField = {
@@ -11382,6 +11741,7 @@ const TextField = {
11382
11741
  "widget": "InputField"
11383
11742
  },
11384
11743
  config: {
11744
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11385
11745
  main: {
11386
11746
  label: "Adhaar Card",
11387
11747
  formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
@@ -11389,17 +11749,17 @@ const TextField = {
11389
11749
  }
11390
11750
  }
11391
11751
  };
11392
- const buildAdhaarField = (config, componentScope) => {
11752
+ const buildAdhaarField = (config2, componentScope2) => {
11393
11753
  const inputField = _.cloneDeep(TextField);
11394
- inputField.config.main.label = config.label;
11395
- if (config.style) {
11396
- inputField.config.style = JSON.parse(config.style);
11754
+ inputField.config.main.label = config2.label;
11755
+ if (config2.style) {
11756
+ inputField.config.style = JSON.parse(config2.style);
11397
11757
  }
11398
- if (config.layout) {
11399
- inputField.config.layout = createLayoutFormat(config.layout);
11758
+ if (config2.layout) {
11759
+ inputField.config.layout = createLayoutFormat(config2.layout);
11400
11760
  }
11401
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11402
- inputField.scope = componentScope;
11761
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11762
+ inputField.scope = componentScope2;
11403
11763
  return inputField;
11404
11764
  };
11405
11765
  const PanField = {
@@ -11410,6 +11770,7 @@ const PanField = {
11410
11770
  "widget": "InputField"
11411
11771
  },
11412
11772
  config: {
11773
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11413
11774
  main: {
11414
11775
  label: "Pan Card",
11415
11776
  placeholder: "AAAAA0000A",
@@ -11417,17 +11778,17 @@ const PanField = {
11417
11778
  }
11418
11779
  }
11419
11780
  };
11420
- const buildPanField = (config, componentScope) => {
11781
+ const buildPanField = (config2, componentScope2) => {
11421
11782
  const inputField = _.cloneDeep(PanField);
11422
- inputField.config.main.label = config.label;
11423
- if (config.style) {
11424
- inputField.config.style = JSON.parse(config.style);
11783
+ inputField.config.main.label = config2.label;
11784
+ if (config2.style) {
11785
+ inputField.config.style = JSON.parse(config2.style);
11425
11786
  }
11426
- if (config.layout) {
11427
- inputField.config.layout = createLayoutFormat(config.layout);
11787
+ if (config2.layout) {
11788
+ inputField.config.layout = createLayoutFormat(config2.layout);
11428
11789
  }
11429
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11430
- inputField.scope = componentScope;
11790
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11791
+ inputField.scope = componentScope2;
11431
11792
  return inputField;
11432
11793
  };
11433
11794
  const FileInput = {
@@ -11449,15 +11810,15 @@ const FileInput = {
11449
11810
  }
11450
11811
  }
11451
11812
  };
11452
- const buildFileInput = (config, componentScope) => {
11813
+ const buildFileInput = (config2, componentScope2) => {
11453
11814
  const box = _.cloneDeep(FileInput);
11454
- box.scope = componentScope;
11455
- box.config.main.label = config.label;
11456
- if (config.layout) {
11457
- box.config.layout = createLayoutFormat(config.layout);
11815
+ box.scope = componentScope2;
11816
+ box.config.main.label = config2.label;
11817
+ if (config2.layout) {
11818
+ box.config.layout = createLayoutFormat(config2.layout);
11458
11819
  }
11459
- if (config.style) {
11460
- box.config.style = JSON.parse(config.style);
11820
+ if (config2.style) {
11821
+ box.config.style = JSON.parse(config2.style);
11461
11822
  }
11462
11823
  return box;
11463
11824
  };
@@ -11477,26 +11838,26 @@ const Stepper = {
11477
11838
  },
11478
11839
  "elements": []
11479
11840
  };
11480
- const buildStepper = (config, componentScope) => {
11841
+ const buildStepper = (config2, componentScope2) => {
11481
11842
  const stepper = _.cloneDeep(Stepper);
11482
- stepper.scope = componentScope;
11483
- stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
11484
- if (config.defaultButtonAvailable) {
11485
- stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
11486
- }
11487
- stepper.config.main.resetText = config.resetText || "ResetData";
11488
- stepper.config.main.completeText = config.completeText || "Complete Text";
11489
- stepper.config.main.orientation = config.orientation || "horizontal";
11490
- if (config.sectionLabels) {
11491
- stepper.config.main.steps = config.sectionLabels.map((e, i) => {
11843
+ stepper.scope = componentScope2;
11844
+ stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
11845
+ if (config2.defaultButtonAvailable) {
11846
+ stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
11847
+ }
11848
+ stepper.config.main.resetText = config2.resetText || "ResetData";
11849
+ stepper.config.main.completeText = config2.completeText || "Complete Text";
11850
+ stepper.config.main.orientation = config2.orientation || "horizontal";
11851
+ if (config2.sectionLabels) {
11852
+ stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
11492
11853
  return { label: e.label, id: i };
11493
11854
  });
11494
11855
  }
11495
- if (config.layout) {
11496
- stepper.config.layout = createLayoutFormat(config.layout);
11856
+ if (config2.layout) {
11857
+ stepper.config.layout = createLayoutFormat(config2.layout);
11497
11858
  }
11498
- if (config.style) {
11499
- stepper.config.style = JSON.parse(config.style);
11859
+ if (config2.style) {
11860
+ stepper.config.style = JSON.parse(config2.style);
11500
11861
  }
11501
11862
  return stepper;
11502
11863
  };
@@ -11524,18 +11885,18 @@ const PopUP = {
11524
11885
  style: {}
11525
11886
  }
11526
11887
  };
11527
- const buildPopUp = (config, componentScope) => {
11888
+ const buildPopUp = (config2, componentScope2) => {
11528
11889
  const popup = _.cloneDeep(PopUP);
11529
- popup.scope = componentScope;
11530
- popup.config.main.title = config.label;
11531
- popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
11532
- popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
11533
- popup.config.main.maxWidth = config.maxWidth || false;
11534
- if (config.layout) {
11535
- popup.config.layout = createLayoutFormat(config.layout);
11890
+ popup.scope = componentScope2;
11891
+ popup.config.main.title = config2.label;
11892
+ popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
11893
+ popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
11894
+ popup.config.main.maxWidth = config2.maxWidth || false;
11895
+ if (config2.layout) {
11896
+ popup.config.layout = createLayoutFormat(config2.layout);
11536
11897
  }
11537
- if (config.style) {
11538
- PopUP.config.style = JSON.parse(config.style);
11898
+ if (config2.style) {
11899
+ PopUP.config.style = JSON.parse(config2.style);
11539
11900
  }
11540
11901
  return popup;
11541
11902
  };
@@ -11555,30 +11916,30 @@ const dataGrid = {
11555
11916
  style: {}
11556
11917
  }
11557
11918
  };
11558
- const buildDataGrid = (config, componentScope) => {
11919
+ const buildDataGrid = (config2, componentScope2) => {
11559
11920
  const DataGrid = _.cloneDeep(dataGrid);
11560
- DataGrid.scope = componentScope;
11561
- if (config.elevation) {
11562
- DataGrid.config.main.elevation = +config.elevation;
11921
+ DataGrid.scope = componentScope2;
11922
+ if (config2.elevation) {
11923
+ DataGrid.config.main.elevation = +config2.elevation;
11563
11924
  }
11564
- DataGrid.config.main.divider = config.divider === "NO" ? false : true;
11565
- if (config.height) {
11566
- DataGrid.config.main.height = `${config.height}px`;
11925
+ DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
11926
+ if (config2.height) {
11927
+ DataGrid.config.main.height = `${config2.height}px`;
11567
11928
  }
11568
- if (config.justifyContent) {
11569
- DataGrid.config.main.justifyContent = config.justifyContent;
11929
+ if (config2.justifyContent) {
11930
+ DataGrid.config.main.justifyContent = config2.justifyContent;
11570
11931
  }
11571
- if (config.label) {
11572
- DataGrid.config.main.label = config.label;
11932
+ if (config2.label) {
11933
+ DataGrid.config.main.label = config2.label;
11573
11934
  }
11574
- if (config.layout) {
11575
- DataGrid.config.layout = createLayoutFormat(config.layout);
11935
+ if (config2.layout) {
11936
+ DataGrid.config.layout = createLayoutFormat(config2.layout);
11576
11937
  }
11577
- if (config.cardLayout) {
11578
- DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout);
11938
+ if (config2.cardLayout) {
11939
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
11579
11940
  }
11580
- if (config.style) {
11581
- DataGrid.config.style = JSON.parse(config.style);
11941
+ if (config2.style) {
11942
+ DataGrid.config.style = JSON.parse(config2.style);
11582
11943
  }
11583
11944
  return DataGrid;
11584
11945
  };
@@ -11589,7 +11950,7 @@ const InputSlider = {
11589
11950
  widget: "InputSlider"
11590
11951
  },
11591
11952
  config: {
11592
- layout: 12,
11953
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
11593
11954
  main: {
11594
11955
  limitToMax: false,
11595
11956
  max: 1e4,
@@ -11599,27 +11960,27 @@ const InputSlider = {
11599
11960
  }
11600
11961
  }
11601
11962
  };
11602
- const buildInputSlider = (config, componentScope) => {
11963
+ const buildInputSlider = (config2, componentScope2) => {
11603
11964
  const inputSlider = _.cloneDeep(InputSlider);
11604
- inputSlider.scope = componentScope;
11605
- inputSlider.config.main.label = config.label;
11606
- if (config.layout) {
11607
- inputSlider.config.layout = createLayoutFormat(config.layout);
11965
+ inputSlider.scope = componentScope2;
11966
+ inputSlider.config.main.label = config2.label;
11967
+ if (config2.layout) {
11968
+ inputSlider.config.layout = createLayoutFormat(config2.layout);
11608
11969
  }
11609
- if (config.limitToMax) {
11610
- inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
11970
+ if (config2.limitToMax) {
11971
+ inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
11611
11972
  }
11612
- if (config.max) {
11613
- inputSlider.config.main.max = config.max;
11973
+ if (config2.max) {
11974
+ inputSlider.config.main.max = config2.max;
11614
11975
  }
11615
- if (config.step) {
11616
- inputSlider.config.main.step = config.step;
11976
+ if (config2.step) {
11977
+ inputSlider.config.main.step = config2.step;
11617
11978
  }
11618
- if (config.min) {
11619
- inputSlider.config.main.min = config.min;
11979
+ if (config2.min) {
11980
+ inputSlider.config.main.min = config2.min;
11620
11981
  }
11621
- if (config.style) {
11622
- inputSlider.config.main.defaultStyle = JSON.parse(config.style);
11982
+ if (config2.style) {
11983
+ inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
11623
11984
  }
11624
11985
  return inputSlider;
11625
11986
  };
@@ -11645,38 +12006,101 @@ const TreeMap = {
11645
12006
  },
11646
12007
  elements: []
11647
12008
  };
11648
- const buildTreeMap = (config, componentScope) => {
12009
+ const buildTreeMap = (config2, componentScope2) => {
11649
12010
  const treMap = _.cloneDeep(TreeMap);
11650
- treMap.scope = componentScope;
11651
- if (config.label) {
11652
- treMap.config.main.header = config.label;
12011
+ treMap.scope = componentScope2;
12012
+ if (config2.label) {
12013
+ treMap.config.main.header = config2.label;
11653
12014
  }
11654
- if (config.layout) {
11655
- treMap.config.layout = createLayoutFormat(config.layout);
12015
+ if (config2.layout) {
12016
+ treMap.config.layout = createLayoutFormat(config2.layout);
11656
12017
  }
11657
- if (config.orientation) {
11658
- treMap.config.main.orientation = config.orientation;
12018
+ if (config2.orientation) {
12019
+ treMap.config.main.orientation = config2.orientation;
11659
12020
  }
11660
- if (config.linkType) {
11661
- treMap.config.main.linkType = config.linkType;
12021
+ if (config2.linkType) {
12022
+ treMap.config.main.linkType = config2.linkType;
11662
12023
  }
11663
- if (config.graphHeight) {
11664
- treMap.config.main.graphHeight = config.graphHeight;
12024
+ if (config2.graphHeight) {
12025
+ treMap.config.main.graphHeight = config2.graphHeight;
11665
12026
  }
11666
- if (config.graphWidth) {
11667
- treMap.config.main.graphWidth = config.graphWidth;
12027
+ if (config2.graphWidth) {
12028
+ treMap.config.main.graphWidth = config2.graphWidth;
11668
12029
  }
11669
- if (config.graphZoomHeight) {
11670
- treMap.config.main.graphZoomHeight = config.graphZoomHeight;
12030
+ if (config2.graphZoomHeight) {
12031
+ treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
11671
12032
  }
11672
- if (config.graphZoomWidth) {
11673
- treMap.config.main.graphZoomWidth = config.graphZoomWidth;
12033
+ if (config2.graphZoomWidth) {
12034
+ treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
11674
12035
  }
11675
- if (config.style) {
11676
- treMap.config.style = JSON.parse(config.style);
12036
+ if (config2.style) {
12037
+ treMap.config.style = JSON.parse(config2.style);
11677
12038
  }
11678
12039
  return treMap;
11679
12040
  };
12041
+ var Thought = {
12042
+ type: "Control",
12043
+ scope: "#/properties/path",
12044
+ options: {
12045
+ widget: "Thought"
12046
+ },
12047
+ config: {
12048
+ layout: { xs: 11.5, sm: 11.5, md: 8, lg: 8 },
12049
+ main: {}
12050
+ }
12051
+ };
12052
+ const buildThoughtOfTheDay = (config2, componentScope2) => {
12053
+ const thought = _.cloneDeep(Thought);
12054
+ thought.scope = componentScope2;
12055
+ if (config2.thought) {
12056
+ thought.config.main.thought = `${config2.thought}`;
12057
+ }
12058
+ if (config2.layout) {
12059
+ thought.config.layout = createLayoutFormat(config2.layout);
12060
+ }
12061
+ if (config2.label) {
12062
+ thought.config.main.label = config2.label;
12063
+ }
12064
+ if (config2.style) {
12065
+ thought.config.style = JSON.parse(config2.style);
12066
+ }
12067
+ return thought;
12068
+ };
12069
+ var pdfViewer = {
12070
+ type: "Control",
12071
+ scope: "#/properties/pdfviewer",
12072
+ options: {
12073
+ widget: "PdfViewer"
12074
+ },
12075
+ config: {
12076
+ layout: {
12077
+ xs: 12,
12078
+ sm: 12,
12079
+ md: 12,
12080
+ lg: 12
12081
+ },
12082
+ main: {
12083
+ title: "PDF"
12084
+ }
12085
+ }
12086
+ };
12087
+ const buildPdfViewer = (config2) => {
12088
+ const PdfViewer = _.cloneDeep(pdfViewer);
12089
+ PdfViewer.config.main.label = config2.label;
12090
+ if (config2.name) {
12091
+ PdfViewer.scope = `#/properties/${config2.name}`;
12092
+ }
12093
+ if (config2.layout) {
12094
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
12095
+ }
12096
+ if (config2.label) {
12097
+ PdfViewer.config.main.title = config2.label;
12098
+ }
12099
+ if (config2.style) {
12100
+ PdfViewer.config.style = JSON.parse(config2.style);
12101
+ }
12102
+ return PdfViewer;
12103
+ };
11680
12104
  let schema = {
11681
12105
  type: "object",
11682
12106
  properties: {},
@@ -11766,12 +12190,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
11766
12190
  });
11767
12191
  }
11768
12192
  }
11769
- const buildSchema = (config, tableName, isArrayType) => {
11770
- buildRule(config, tableName, isArrayType);
11771
- if (config == null ? void 0 : config.elements) {
11772
- if (config.type == "Table" || config.type == "Array") {
11773
- if (!schema.properties[config.name]) {
11774
- schema.properties[config.name] = {
12193
+ const buildSchema = (config2, tableName, isArrayType) => {
12194
+ buildRule(config2, tableName, isArrayType);
12195
+ if (config2 == null ? void 0 : config2.elements) {
12196
+ if (config2.type == "Table" || config2.type == "Array") {
12197
+ if (!schema.properties[config2.name]) {
12198
+ schema.properties[config2.name] = {
11775
12199
  type: "array",
11776
12200
  items: {
11777
12201
  type: "object",
@@ -11780,150 +12204,159 @@ const buildSchema = (config, tableName, isArrayType) => {
11780
12204
  }
11781
12205
  };
11782
12206
  }
11783
- config.elements.map((e, elemInd) => {
11784
- buildSchema(e, config.name, config.type === "Array" ? true : false);
12207
+ config2.elements.map((e, elemInd) => {
12208
+ buildSchema(e, config2.name, config2.type === "Array" ? true : false);
11785
12209
  });
11786
12210
  } else {
11787
- config.elements.map((e, elemInd) => {
12211
+ config2.elements.map((e, elemInd) => {
11788
12212
  buildSchema(e);
11789
12213
  });
11790
12214
  }
11791
12215
  }
11792
12216
  return schema;
11793
12217
  };
11794
- const buildUiSchema = (config, store2) => {
12218
+ const buildUiSchema = (config2, store2) => {
11795
12219
  let elements = {};
11796
- const componentScope = `#/properties/${config.name}`;
11797
- switch (config.type) {
12220
+ const componentScope2 = `#/properties/${config2.name}`;
12221
+ switch (config2.type) {
11798
12222
  case "TreeMap":
11799
- elements = buildTreeMap(config, componentScope);
12223
+ elements = buildTreeMap(config2, componentScope2);
11800
12224
  break;
11801
12225
  case "DateTime":
11802
- elements = buildDateTime(config, componentScope);
12226
+ elements = buildDateTime(config2, componentScope2);
11803
12227
  break;
11804
12228
  case "InputSlider":
11805
- elements = buildInputSlider(config, componentScope);
12229
+ elements = buildInputSlider(config2, componentScope2);
11806
12230
  break;
11807
12231
  case "DataGrid":
11808
- elements = buildDataGrid(config, componentScope);
12232
+ elements = buildDataGrid(config2, componentScope2);
11809
12233
  break;
11810
12234
  case "Stepper":
11811
- elements = buildStepper(config, componentScope);
12235
+ elements = buildStepper(config2, componentScope2);
11812
12236
  break;
11813
12237
  case "PopUp":
11814
- elements = buildPopUp(config, componentScope);
12238
+ elements = buildPopUp(config2, componentScope2);
11815
12239
  break;
11816
12240
  case "FileInput":
11817
- elements = buildFileInput(config, componentScope);
12241
+ elements = buildFileInput(config2, componentScope2);
11818
12242
  break;
11819
12243
  case "AadharcardText":
11820
- elements = buildAdhaarField(config, componentScope);
12244
+ elements = buildAdhaarField(config2, componentScope2);
11821
12245
  break;
11822
12246
  case "PanCardText":
11823
- elements = buildPanField(config, componentScope);
12247
+ elements = buildPanField(config2, componentScope2);
11824
12248
  break;
11825
12249
  case "TabSection":
11826
- elements = buildTabSection(config, componentScope);
12250
+ elements = buildTabSection(config2, componentScope2);
11827
12251
  break;
11828
12252
  case "RunnerBoyProgressBar":
11829
- elements = RunnerBoyProgressbar(config, componentScope);
12253
+ elements = RunnerBoyProgressbar(config2, componentScope2);
11830
12254
  break;
11831
12255
  case "WrapperSection":
11832
- elements = buildWrapperSection(config, componentScope);
12256
+ elements = buildWrapperSection(config2, componentScope2);
11833
12257
  break;
11834
12258
  case "Text":
11835
- elements = buildTextField(config, componentScope);
12259
+ elements = buildTextField(config2, componentScope2);
11836
12260
  break;
11837
12261
  case "TextArea":
11838
- elements = buildTextArea(config, componentScope);
12262
+ elements = buildTextArea(config2, componentScope2);
11839
12263
  break;
11840
12264
  case "Date":
11841
- elements = buildDate(config, componentScope);
12265
+ elements = buildDate(config2, componentScope2);
11842
12266
  break;
11843
12267
  case "Select":
11844
- elements = buildSelect(config, componentScope);
12268
+ elements = buildSelect(config2, componentScope2);
11845
12269
  break;
11846
12270
  case "Radio":
11847
- elements = buildRadio(config, componentScope);
12271
+ elements = buildRadio(config2, componentScope2);
11848
12272
  break;
11849
12273
  case "Button":
11850
- elements = buildButton(config, componentScope);
12274
+ elements = buildButton(config2, componentScope2);
11851
12275
  break;
11852
12276
  case "Table":
11853
- elements = buildTable(config, componentScope);
12277
+ elements = buildTable(config2, componentScope2);
11854
12278
  break;
11855
12279
  case "Array":
11856
- elements = buildArray(config, componentScope);
12280
+ elements = buildArray(config2, componentScope2);
11857
12281
  break;
11858
12282
  case "Box":
11859
- elements = buildLabel(config, componentScope);
12283
+ elements = buildLabel(config2, componentScope2);
11860
12284
  break;
11861
12285
  case "CheckBox":
11862
- elements = buildCheckbox(config, componentScope);
12286
+ elements = buildCheckbox(config2, componentScope2);
11863
12287
  break;
11864
12288
  case "UploadFile":
11865
- elements = buildUploadFile(config, componentScope);
12289
+ elements = buildUploadFile(config2, componentScope2);
11866
12290
  break;
11867
12291
  case "DownloadFile":
11868
- elements = buildDownloadFile(config, componentScope);
12292
+ elements = buildDownloadFile(config2, componentScope2);
11869
12293
  break;
11870
12294
  case "EmptyBox":
11871
- elements = buildEmptyBox(config);
12295
+ elements = buildEmptyBox(config2);
11872
12296
  break;
11873
12297
  case "card":
11874
- elements = buildCard(config, componentScope, store2);
12298
+ elements = buildCard(config2, componentScope2, store2);
11875
12299
  break;
11876
12300
  case "Graph":
11877
- switch (config.graphType) {
12301
+ switch (config2.graphType) {
11878
12302
  case "BarGraph":
11879
12303
  case "StackBarGraph":
11880
- elements = buildStackbarGraph(config, componentScope);
12304
+ elements = buildStackbarGraph(config2, componentScope2);
11881
12305
  break;
11882
12306
  case "LineGraph":
11883
- elements = buildLineGraph(config, componentScope);
12307
+ elements = buildLineGraph(config2, componentScope2);
11884
12308
  break;
11885
12309
  case "PieGraph":
11886
- elements = buildPieGraph(config, componentScope);
12310
+ elements = buildPieGraph(config2, componentScope2);
11887
12311
  break;
11888
12312
  case "HorizontalBarGraph":
11889
12313
  case "HorizontalStackBarGraph":
11890
- elements = buildHorizontalBarGraph(config, componentScope);
12314
+ elements = buildHorizontalBarGraph(config2, componentScope2);
12315
+ break;
12316
+ default:
12317
+ elements = buildStackbarGraph(config2, componentScope2);
11891
12318
  break;
11892
12319
  }
11893
12320
  break;
11894
12321
  case "ProgressBar":
11895
- elements = buildProgressBar(config, componentScope);
12322
+ elements = buildProgressBar(config2, componentScope2);
11896
12323
  break;
11897
12324
  case "SpeedoMeter":
11898
- elements = buildSpeedoMeter(config, componentScope);
12325
+ elements = buildSpeedoMeter(config2, componentScope2);
11899
12326
  break;
11900
12327
  case "ProgressBarCard":
11901
- elements = buildProgressBarCard(config, componentScope);
12328
+ elements = buildProgressBarCard(config2, componentScope2);
11902
12329
  break;
11903
12330
  case "RankCard":
11904
- elements = buildRankCard(config, componentScope);
12331
+ elements = buildRankCard(config2, componentScope2);
11905
12332
  break;
11906
12333
  case "Rank":
11907
- elements = buildRollAndDice(config, componentScope);
12334
+ elements = buildRollAndDice(config2, componentScope2);
11908
12335
  break;
11909
12336
  case "Slider":
11910
- elements = buildSlider(config, componentScope);
12337
+ elements = buildSlider(config2, componentScope2);
11911
12338
  break;
11912
12339
  case "Timer":
11913
- elements = buildTimer(config, componentScope);
12340
+ elements = buildTimer(config2, componentScope2);
11914
12341
  break;
11915
12342
  case "ColumnGroup":
11916
12343
  elements = {
11917
- accessorKey: config.name,
11918
- header: config.label || config.name,
12344
+ accessorKey: config2.name,
12345
+ header: config2.label || config2.name,
11919
12346
  elements: []
11920
12347
  };
11921
12348
  break;
11922
12349
  case "MultipleSelect":
11923
- elements = buildMultiSelect(config, componentScope);
12350
+ elements = buildMultiSelect(config2, componentScope2);
11924
12351
  break;
11925
12352
  case "LeaderBoard":
11926
- elements = buildLeaderBoard(config);
12353
+ elements = buildLeaderBoard(config2);
12354
+ break;
12355
+ case "Thought":
12356
+ elements = buildThoughtOfTheDay(config2, componentScope2);
12357
+ break;
12358
+ case "PdfViewer":
12359
+ elements = buildPdfViewer(config2);
11927
12360
  break;
11928
12361
  default:
11929
12362
  schema = {
@@ -11931,19 +12364,19 @@ const buildUiSchema = (config, store2) => {
11931
12364
  properties: {},
11932
12365
  required: []
11933
12366
  };
11934
- elements = buildBasicUiSchema(config);
12367
+ elements = buildBasicUiSchema(config2);
11935
12368
  }
11936
- if (config == null ? void 0 : config.elements) {
11937
- if ((config == null ? void 0 : config.type) === "LeaderBoard") {
12369
+ if (config2 == null ? void 0 : config2.elements) {
12370
+ if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
11938
12371
  return elements;
11939
- } else if (config.type == "ColumnGroup") {
12372
+ } else if (config2.type == "ColumnGroup") {
11940
12373
  const sizeMap = {};
11941
- if (config.sizeHolder) {
11942
- config.sizeHolder.map((e, i) => {
12374
+ if (config2.sizeHolder) {
12375
+ config2.sizeHolder.map((e, i) => {
11943
12376
  sizeMap[e.keyName] = e.value;
11944
12377
  });
11945
12378
  }
11946
- elements.elements = config.elements.map((cellElem, elemInd) => {
12379
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
11947
12380
  return {
11948
12381
  accessorKey: cellElem.name,
11949
12382
  header: cellElem.label || cellElem.name,
@@ -11952,20 +12385,20 @@ const buildUiSchema = (config, store2) => {
11952
12385
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
11953
12386
  };
11954
12387
  });
11955
- } else if (config.type == "Table") {
12388
+ } else if (config2.type == "Table") {
11956
12389
  const sizeMap = {};
11957
12390
  const filterMap = {};
11958
- if (config.sizeHolder) {
11959
- config.sizeHolder.map((e, i) => {
12391
+ if (config2.sizeHolder) {
12392
+ config2.sizeHolder.map((e, i) => {
11960
12393
  sizeMap[e.keyName] = e.value;
11961
12394
  });
11962
12395
  }
11963
- if (config.enableColumnFilter) {
11964
- config.enableColumnFilter.map((e) => {
12396
+ if (config2.enableColumnFilter) {
12397
+ config2.enableColumnFilter.map((e) => {
11965
12398
  filterMap[e.keyName] = true;
11966
12399
  });
11967
12400
  }
11968
- elements.elements = config.elements.map((cellElem, elemInd) => {
12401
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
11969
12402
  var _a, _b;
11970
12403
  if (cellElem.type) {
11971
12404
  return {
@@ -11976,7 +12409,7 @@ const buildUiSchema = (config, store2) => {
11976
12409
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11977
12410
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
11978
12411
  enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
11979
- columnFilterModeOptions: config.filteringOptions
12412
+ columnFilterModeOptions: config2.filteringOptions
11980
12413
  };
11981
12414
  } else {
11982
12415
  return {
@@ -11985,16 +12418,16 @@ const buildUiSchema = (config, store2) => {
11985
12418
  header: cellElem.label || cellElem.name,
11986
12419
  size: sizeMap[cellElem.name] || 180,
11987
12420
  enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
11988
- columnFilterModeOptions: config.filteringOptions
12421
+ columnFilterModeOptions: config2.filteringOptions
11989
12422
  };
11990
12423
  }
11991
12424
  });
11992
- } else if (config.type == "Array") {
11993
- elements.options.detail.elements = config.elements.map((e, elemInd) => {
12425
+ } else if (config2.type == "Array") {
12426
+ elements.options.detail.elements = config2.elements.map((e, elemInd) => {
11994
12427
  return buildUiSchema(e, store2);
11995
12428
  });
11996
12429
  } else {
11997
- elements.elements = config.elements.map((e, elemInd) => {
12430
+ elements.elements = config2.elements.map((e, elemInd) => {
11998
12431
  return buildUiSchema(e, store2);
11999
12432
  });
12000
12433
  }