impaktapps-ui-builder 0.0.974 → 0.0.1052

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 (45) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1401 -1379
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +11 -11
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +90 -23
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -23
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  13. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  14. package/package.json +5 -1
  15. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
  16. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +43 -44
  18. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  20. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -11
  21. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
  22. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  23. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -13
  24. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  25. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  26. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +25 -19
  27. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +18 -13
  28. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
  29. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +102 -46
  30. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
  31. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
  32. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  33. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  34. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  35. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  36. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +581 -487
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +177 -111
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +90 -59
  41. package/src/impaktapps-ui-builder/builder/services/component.ts +127 -30
  42. package/src/impaktapps-ui-builder/builder/services/event.ts +1 -1
  43. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  44. package/src/impaktapps-ui-builder/runtime/services/events.ts +32 -21
  45. package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
@@ -132,7 +132,7 @@ const PageMasterUiSchema = (theme) => {
132
132
  type: "TabLayout",
133
133
  config: {
134
134
  main: {
135
- tabLabels: ["Components", "events"],
135
+ tabLabels: ["Components", "Events"],
136
136
  divider: true
137
137
  },
138
138
  defaultStyle: true
@@ -487,23 +487,18 @@ const PageMasterUiSchema = (theme) => {
487
487
  layout: {
488
488
  xs: 12,
489
489
  sm: 12,
490
- md: 6,
491
- lg: 6
490
+ md: 12,
491
+ lg: 12
492
492
  },
493
- main: {},
494
- style: {
495
- "& .MuiPaper-root": {
496
- width: "30%"
497
- },
498
- "& .MuiTypography-root": {
499
- padding: 0
500
- }
501
- }
493
+ main: {
494
+ title: "WARNING!"
495
+ },
496
+ style: {}
502
497
  },
503
498
  elements: [
504
499
  {
505
500
  type: "Control",
506
- scope: "#/properties/label",
501
+ scope: "#/properties/popText",
507
502
  options: {
508
503
  widget: "Box"
509
504
  },
@@ -513,58 +508,95 @@ const PageMasterUiSchema = (theme) => {
513
508
  heading: "Are you sure you want to delete ?"
514
509
  },
515
510
  style: {
516
- marginTop: "-40px"
511
+ marginTop: "-20px",
512
+ fontSize: "20px",
513
+ "&.MuiTypography-root": {
514
+ padding: "10px 30px 20px 30px",
515
+ textAlign: "center",
516
+ lineHeight: "1"
517
+ }
517
518
  }
518
519
  }
519
520
  },
520
521
  {
521
- type: "Control",
522
- scope: "#/properties/EmptyBox",
523
- options: {
524
- widget: "EmptyBox"
525
- },
526
- config: {
527
- main: {},
528
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
529
- }
530
- },
531
- {
532
- type: "Control",
533
- scope: "#/properties/ConfirmDeleteCompButton",
534
- options: {
535
- widget: "Button"
536
- },
522
+ type: "WrapperLayout",
537
523
  config: {
538
- layout: 3,
539
- main: {
540
- name: "Yes",
541
- startIcon: "ApproveIcon",
542
- variant: "contained",
543
- color: "info",
544
- type: "text",
545
- onClick: "Delete_Components",
546
- size: "small"
547
- }
548
- }
549
- },
550
- {
551
- type: "Control",
552
- scope: "#/properties/CancelDeleteCompButton",
553
- options: {
554
- widget: "Button"
524
+ layout: 12,
525
+ main: {}
555
526
  },
556
- config: {
557
- layout: 3,
558
- main: {
559
- name: "No",
560
- startIcon: "ApproveIcon",
561
- variant: "contained",
562
- color: "info",
563
- type: "text",
564
- onClick: "deletePopUpComponent",
565
- 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
+ }
566
598
  }
567
- }
599
+ ]
568
600
  }
569
601
  ]
570
602
  },
@@ -578,23 +610,18 @@ const PageMasterUiSchema = (theme) => {
578
610
  layout: {
579
611
  xs: 12,
580
612
  sm: 12,
581
- md: 6,
582
- lg: 6
613
+ md: 12,
614
+ lg: 12
583
615
  },
584
- main: {},
585
- style: {
586
- "& .MuiPaper-root": {
587
- width: "30%"
588
- },
589
- "& .MuiTypography-root": {
590
- padding: 0
591
- }
592
- }
616
+ main: {
617
+ title: "WARNING!"
618
+ },
619
+ style: {}
593
620
  },
594
621
  elements: [
595
622
  {
596
623
  type: "Control",
597
- scope: "#/properties/label",
624
+ scope: "#/properties/popText1",
598
625
  options: {
599
626
  widget: "Box"
600
627
  },
@@ -604,58 +631,95 @@ const PageMasterUiSchema = (theme) => {
604
631
  heading: "Are you sure you want to delete ?"
605
632
  },
606
633
  style: {
607
- marginTop: "-40px"
634
+ marginTop: "-20px",
635
+ fontSize: "20px",
636
+ "&.MuiTypography-root": {
637
+ padding: "10px 30px 20px 30px",
638
+ textAlign: "center",
639
+ lineHeight: "1"
640
+ }
608
641
  }
609
642
  }
610
643
  },
611
644
  {
612
- type: "Control",
613
- scope: "#/properties/EmptyBox",
614
- options: {
615
- widget: "EmptyBox"
616
- },
617
- config: {
618
- main: {},
619
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
620
- }
621
- },
622
- {
623
- type: "Control",
624
- scope: "#/properties/ConfirmDeleteEventButton",
625
- options: {
626
- widget: "Button"
627
- },
645
+ type: "WrapperLayout",
628
646
  config: {
629
- layout: 3,
630
- main: {
631
- name: "Yes",
632
- startIcon: "ApproveIcon",
633
- variant: "contained",
634
- color: "info",
635
- type: "text",
636
- onClick: "deleteEvent",
637
- size: "small"
638
- }
639
- }
640
- },
641
- {
642
- type: "Control",
643
- scope: "#/properties/CancelDeleteEventButton",
644
- options: {
645
- widget: "Button"
647
+ layout: 12,
648
+ main: {}
646
649
  },
647
- config: {
648
- layout: 3,
649
- main: {
650
- name: "No",
651
- startIcon: "ApproveIcon",
652
- variant: "contained",
653
- color: "error",
654
- type: "text",
655
- onClick: "deletePopUpEvent",
656
- 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
+ }
657
721
  }
658
- }
722
+ ]
659
723
  }
660
724
  ]
661
725
  },
@@ -699,13 +763,14 @@ const PageMasterUiSchema = (theme) => {
699
763
  color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
700
764
  fontSize: "12px",
701
765
  textAlign: "center",
702
- lineHeight: 1,
766
+ lineHeight: 2,
703
767
  width: "fit-content",
704
768
  left: "50%",
705
769
  position: "relative",
706
770
  margin: 0,
707
771
  flexGrow: 1,
708
- height: 0
772
+ height: 0,
773
+ transform: "translate(-50%,0%)"
709
774
  }
710
775
  }
711
776
  },
@@ -6255,7 +6320,8 @@ const ComponentSchema = {
6255
6320
  { title: "Timer", const: "Timer" },
6256
6321
  { title: "Upload File", const: "UploadFile" },
6257
6322
  { title: "TreeMap", const: "TreeMap" },
6258
- { title: "ColumnGroup", const: "ColumnGroup" }
6323
+ { title: "ColumnGroup", const: "ColumnGroup" },
6324
+ { title: "Thought of the Day", const: "Thought" }
6259
6325
  ]
6260
6326
  },
6261
6327
  columnFormat: {
@@ -6636,20 +6702,47 @@ const componentBasicUiSchema = (theme) => {
6636
6702
  },
6637
6703
  {
6638
6704
  type: "Control",
6639
- scope: "#/properties/columnFormat",
6705
+ scope: "#/properties/proc1",
6706
+ config: {
6707
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6708
+ },
6709
+ options: {
6710
+ widget: "EmptyBox"
6711
+ }
6712
+ },
6713
+ {
6714
+ type: "Control",
6715
+ scope: "#/properties/proc2",
6716
+ config: {
6717
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6718
+ },
6640
6719
  options: {
6641
- widget: "SelectInputField"
6720
+ widget: "EmptyBox"
6721
+ }
6722
+ },
6723
+ {
6724
+ type: "Control",
6725
+ scope: "#/properties/proc3",
6726
+ config: {
6727
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6642
6728
  },
6729
+ options: {
6730
+ widget: "EmptyBox"
6731
+ }
6732
+ },
6733
+ {
6734
+ type: "Control",
6735
+ scope: "#/properties/proc4",
6643
6736
  config: {
6644
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6645
- main: {
6646
- label: "Column Format"
6647
- }
6737
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6738
+ },
6739
+ options: {
6740
+ widget: "EmptyBox"
6648
6741
  }
6649
6742
  },
6650
6743
  {
6651
6744
  type: "Control",
6652
- scope: "#/properties/proc",
6745
+ scope: "#/properties/proc5",
6653
6746
  config: {
6654
6747
  layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6655
6748
  },
@@ -6659,7 +6752,7 @@ const componentBasicUiSchema = (theme) => {
6659
6752
  },
6660
6753
  {
6661
6754
  type: "Control",
6662
- scope: "#/properties/proc",
6755
+ scope: "#/properties/proc8",
6663
6756
  config: {
6664
6757
  layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6665
6758
  },
@@ -6827,20 +6920,15 @@ const componentBasicUiSchema = (theme) => {
6827
6920
  md: 12,
6828
6921
  lg: 12
6829
6922
  },
6830
- main: {},
6831
- style: {
6832
- "& .MuiPaper-root": {
6833
- width: "30%"
6834
- },
6835
- "& .MuiTypography-root": {
6836
- padding: 0
6837
- }
6838
- }
6923
+ main: {
6924
+ title: "WARNING!"
6925
+ },
6926
+ style: {}
6839
6927
  },
6840
6928
  elements: [
6841
6929
  {
6842
6930
  type: "Control",
6843
- scope: "#/properties/label",
6931
+ scope: "#/properties/popupText",
6844
6932
  options: {
6845
6933
  widget: "Box"
6846
6934
  },
@@ -6850,58 +6938,95 @@ const componentBasicUiSchema = (theme) => {
6850
6938
  heading: "Are you sure you want to delete ?"
6851
6939
  },
6852
6940
  style: {
6853
- marginTop: "-40px"
6941
+ marginTop: "-20px",
6942
+ fontSize: "20px",
6943
+ "&.MuiTypography-root": {
6944
+ padding: "10px 30px 20px 30px",
6945
+ textAlign: "center",
6946
+ lineHeight: "1"
6947
+ }
6854
6948
  }
6855
6949
  }
6856
6950
  },
6857
6951
  {
6858
- type: "Control",
6859
- scope: "#/properties/EmptyBox",
6860
- options: {
6861
- widget: "EmptyBox"
6862
- },
6863
- config: {
6864
- main: {},
6865
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6866
- }
6867
- },
6868
- {
6869
- type: "Control",
6870
- scope: "#/properties/ConfirmDeleteCompButton",
6871
- options: {
6872
- widget: "Button"
6873
- },
6952
+ type: "WrapperLayout",
6874
6953
  config: {
6875
- layout: 3,
6876
- main: {
6877
- name: "Yes",
6878
- startIcon: "ApproveIcon",
6879
- variant: "contained",
6880
- color: "error",
6881
- type: "text",
6882
- onClick: "deleteComponents",
6883
- size: "small"
6884
- }
6885
- }
6886
- },
6887
- {
6888
- type: "Control",
6889
- scope: "#/properties/CancelDeleteCompButton",
6890
- options: {
6891
- widget: "Button"
6954
+ layout: 12,
6955
+ main: {}
6892
6956
  },
6893
- config: {
6894
- layout: 3,
6895
- main: {
6896
- name: "No",
6897
- startIcon: "ApproveIcon",
6898
- variant: "contained",
6899
- color: "info",
6900
- type: "text",
6901
- onClick: "deletePopUpComponent",
6902
- size: "small"
6957
+ elements: [
6958
+ {
6959
+ type: "Control",
6960
+ scope: "#/properties/CancelDeleteCompButton",
6961
+ options: {
6962
+ widget: "Button"
6963
+ },
6964
+ config: {
6965
+ layout: 6,
6966
+ main: {
6967
+ name: "No",
6968
+ startIcon: "ApproveIcon",
6969
+ variant: "contained",
6970
+ color: "info",
6971
+ type: "text",
6972
+ onClick: "deletePopUpComponent",
6973
+ size: "large"
6974
+ },
6975
+ style: {
6976
+ position: "absolute",
6977
+ bottom: 0,
6978
+ left: 0,
6979
+ width: "50%",
6980
+ borderRadius: 0,
6981
+ boxShadow: 0,
6982
+ backgroundColor: "transparent",
6983
+ color: theme.palette.primary.main,
6984
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
6985
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
6986
+ "&:hover": {
6987
+ color: theme.palette.primary.contrastText,
6988
+ backgroundColor: theme.palette.primary.main,
6989
+ boxShadow: "none"
6990
+ }
6991
+ }
6992
+ }
6993
+ },
6994
+ {
6995
+ type: "Control",
6996
+ scope: "#/properties/ConfirmDeleteCompButton",
6997
+ options: {
6998
+ widget: "Button"
6999
+ },
7000
+ config: {
7001
+ layout: 6,
7002
+ main: {
7003
+ name: "Yes",
7004
+ startIcon: "ApproveIcon",
7005
+ variant: "contained",
7006
+ color: "error",
7007
+ type: "text",
7008
+ onClick: "deleteComponents",
7009
+ size: "large"
7010
+ },
7011
+ style: {
7012
+ position: "absolute",
7013
+ bottom: 0,
7014
+ right: 0,
7015
+ width: "50%",
7016
+ borderRadius: 0,
7017
+ boxShadow: 0,
7018
+ backgroundColor: "transparent",
7019
+ color: theme.palette.error.main,
7020
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7021
+ "&:hover": {
7022
+ color: theme.palette.error.contrastText,
7023
+ backgroundColor: theme.palette.error.main,
7024
+ boxShadow: "none"
7025
+ }
7026
+ }
7027
+ }
6903
7028
  }
6904
- }
7029
+ ]
6905
7030
  }
6906
7031
  ]
6907
7032
  },
@@ -6918,20 +7043,15 @@ const componentBasicUiSchema = (theme) => {
6918
7043
  md: 12,
6919
7044
  lg: 12
6920
7045
  },
6921
- main: {},
6922
- style: {
6923
- "& .MuiPaper-root": {
6924
- width: "30%"
6925
- },
6926
- "& .MuiTypography-root": {
6927
- padding: 0
6928
- }
6929
- }
7046
+ main: {
7047
+ title: "WARNING!"
7048
+ },
7049
+ style: {}
6930
7050
  },
6931
7051
  elements: [
6932
7052
  {
6933
7053
  type: "Control",
6934
- scope: "#/properties/label",
7054
+ scope: "#/properties/popupText1",
6935
7055
  options: {
6936
7056
  widget: "Box"
6937
7057
  },
@@ -6941,59 +7061,96 @@ const componentBasicUiSchema = (theme) => {
6941
7061
  heading: "Are you sure you want to delete ?"
6942
7062
  },
6943
7063
  style: {
6944
- marginTop: "-40px"
7064
+ marginTop: "-20px",
7065
+ fontSize: "20px",
7066
+ "&.MuiTypography-root": {
7067
+ padding: "10px 30px 20px 30px",
7068
+ textAlign: "center",
7069
+ lineHeight: "1"
7070
+ }
6945
7071
  }
6946
7072
  }
6947
7073
  },
6948
7074
  {
6949
- type: "Control",
6950
- scope: "#/properties/EmptyBox",
6951
- options: {
6952
- widget: "EmptyBox"
6953
- },
6954
- config: {
6955
- main: {},
6956
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6957
- }
6958
- },
6959
- {
6960
- type: "Control",
6961
- scope: "#/properties/ConfirmDeleteEventButton",
6962
- options: {
6963
- widget: "Button"
6964
- },
7075
+ type: "WrapperLayout",
6965
7076
  config: {
6966
- layout: 3,
6967
- main: {
6968
- name: "Yes",
6969
- startIcon: "ApproveIcon",
6970
- variant: "contained",
6971
- color: "info",
6972
- type: "text",
6973
- onClick: "deleteEvent",
6974
- size: "small"
6975
- }
6976
- }
6977
- },
6978
- {
6979
- type: "Control",
6980
- scope: "#/properties/CancelDeleteEventButton",
6981
- options: {
6982
- widget: "Button"
7077
+ layout: 12,
7078
+ main: {}
6983
7079
  },
6984
- config: {
6985
- layout: 3,
6986
- main: {
6987
- name: "No",
6988
- startIcon: "ApproveIcon",
6989
- variant: "contained",
6990
- color: "info",
6991
- type: "text",
6992
- onClick: "deletePopUpEvent",
6993
- size: "small"
6994
- }
6995
- }
6996
- }
7080
+ elements: [
7081
+ {
7082
+ type: "Control",
7083
+ scope: "#/properties/CancelDeleteEventButton",
7084
+ options: {
7085
+ widget: "Button"
7086
+ },
7087
+ config: {
7088
+ layout: 6,
7089
+ main: {
7090
+ name: "No",
7091
+ startIcon: "ApproveIcon",
7092
+ variant: "contained",
7093
+ color: "info",
7094
+ type: "text",
7095
+ onClick: "deletePopUpEvent",
7096
+ size: "large"
7097
+ },
7098
+ style: {
7099
+ position: "absolute",
7100
+ bottom: 0,
7101
+ left: 0,
7102
+ width: "50%",
7103
+ borderRadius: 0,
7104
+ boxShadow: 0,
7105
+ backgroundColor: "transparent",
7106
+ color: theme.palette.primary.main,
7107
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7108
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
7109
+ "&:hover": {
7110
+ color: theme.palette.primary.contrastText,
7111
+ backgroundColor: theme.palette.primary.main,
7112
+ boxShadow: "none"
7113
+ }
7114
+ }
7115
+ }
7116
+ },
7117
+ {
7118
+ type: "Control",
7119
+ scope: "#/properties/ConfirmDeleteEventButton",
7120
+ options: {
7121
+ widget: "Button"
7122
+ },
7123
+ config: {
7124
+ layout: 6,
7125
+ main: {
7126
+ name: "Yes",
7127
+ startIcon: "ApproveIcon",
7128
+ variant: "contained",
7129
+ color: "error",
7130
+ type: "text",
7131
+ onClick: "deleteEvent",
7132
+ size: "large"
7133
+ },
7134
+ style: {
7135
+ position: "absolute",
7136
+ bottom: 0,
7137
+ right: 0,
7138
+ width: "50%",
7139
+ borderRadius: 0,
7140
+ boxShadow: 0,
7141
+ backgroundColor: "transparent",
7142
+ color: theme.palette.error.main,
7143
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
7144
+ "&:hover": {
7145
+ color: theme.palette.error.contrastText,
7146
+ backgroundColor: theme.palette.error.main,
7147
+ boxShadow: "none"
7148
+ }
7149
+ }
7150
+ }
7151
+ }
7152
+ ]
7153
+ }
6997
7154
  ]
6998
7155
  },
6999
7156
  {
@@ -7036,13 +7193,14 @@ const componentBasicUiSchema = (theme) => {
7036
7193
  color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
7037
7194
  fontSize: "12px",
7038
7195
  textAlign: "center",
7039
- lineHeight: 1,
7196
+ lineHeight: 2,
7040
7197
  width: "fit-content",
7041
7198
  left: "50%",
7042
7199
  position: "relative",
7043
7200
  margin: 0,
7044
7201
  flexGrow: 1,
7045
- height: 0
7202
+ height: 0,
7203
+ transform: "translate(-50%,0%)"
7046
7204
  }
7047
7205
  }
7048
7206
  },
@@ -7540,7 +7698,7 @@ const buildWrapper = (label, elements) => {
7540
7698
  width: "108%"
7541
7699
  },
7542
7700
  componentsBoxStyle: {
7543
- marginLeft: "24px"
7701
+ marginLeft: "12px"
7544
7702
  },
7545
7703
  defaultStyle: true
7546
7704
  },
@@ -7668,7 +7826,7 @@ const buildPropertiesSection = function(type) {
7668
7826
  case "Text":
7669
7827
  uiSchema.elements = [
7670
7828
  getInputField("placeholder", "Placeholder"),
7671
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7829
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7672
7830
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7673
7831
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7674
7832
  ];
@@ -7693,22 +7851,19 @@ const buildPropertiesSection = function(type) {
7693
7851
  case "RankCard":
7694
7852
  uiSchema.elements = [
7695
7853
  getInputField("rank", "Rank"),
7696
- getInputField("image", "Image Url"),
7697
- getInputField("title", "Card Title"),
7698
- getInputField("description", "Card Description"),
7699
- emptyBox$1("RankCardEmpty1"),
7700
- emptyBox$1("RankCardEmpty2")
7854
+ getInputField("height", "Height"),
7855
+ emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
7701
7856
  ];
7702
7857
  break;
7703
7858
  case "LeaderBoard":
7704
7859
  uiSchema.elements = [
7705
- getInputField("valueLabel", "Value Label"),
7706
7860
  getInputField("firstImage", "First Image url"),
7707
7861
  getInputField("secondImage", "Second Image url"),
7708
7862
  getInputField("thirdImage", "Third Image url"),
7709
- emptyBox$1("LeaderBoardEmpty1"),
7710
- emptyBox$1("LeaderBoardEmpty2"),
7711
- getTextArea("functionCode", "Write Compare Code", false)
7863
+ getInputField("nameKey", "Key for Name"),
7864
+ getInputField("imageKey", "Key for Image"),
7865
+ getInputField("scoreKey", "Key for comparing parameter"),
7866
+ emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
7712
7867
  ];
7713
7868
  break;
7714
7869
  case "CardSlider":
@@ -7732,8 +7887,9 @@ const buildPropertiesSection = function(type) {
7732
7887
  uiSchema.elements = [
7733
7888
  getInputField("url", "Image Url"),
7734
7889
  getInputField("label", "Label"),
7890
+ getInputField("titleIcon", "Unicode of Icon for title"),
7735
7891
  getInputField("description", "Description"),
7736
- emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7892
+ emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7737
7893
  ];
7738
7894
  break;
7739
7895
  case "Button":
@@ -7753,13 +7909,13 @@ const buildPropertiesSection = function(type) {
7753
7909
  getSelectField("graphType", "Graph Type"),
7754
7910
  getInputField("leftLabel", "Left Label"),
7755
7911
  getInputField("bottomLabel", "Bottom Label"),
7756
- getInputField("leftLabelMargin", "Left Label Margin"),
7757
- getInputField("leftLabelOffset", "Left Label Offset"),
7758
7912
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7759
7913
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7760
7914
  getInputField("yAxisValue", "Y-AxisValue"),
7761
7915
  getInputField("xAxisValue", "X-AxisValue"),
7762
- emptyBox$1("GraphEmpty2"),
7916
+ getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
7917
+ getInputField("leftMargin", "Left Margin"),
7918
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
7763
7919
  getArrayControl("legendLabels", "label"),
7764
7920
  getArrayControl("pieArcColors", "color")
7765
7921
  ];
@@ -7831,6 +7987,11 @@ const buildPropertiesSection = function(type) {
7831
7987
  emptyBox$1("MultipleSelectEmpty2")
7832
7988
  ];
7833
7989
  break;
7990
+ case "Thought":
7991
+ uiSchema.elements = [
7992
+ getTextArea("thought", "Today's thought", false)
7993
+ ];
7994
+ break;
7834
7995
  }
7835
7996
  return uiSchema;
7836
7997
  };
@@ -8140,8 +8301,8 @@ var buildConfig = (FormData) => {
8140
8301
  component = { ...formData, ...component };
8141
8302
  return component;
8142
8303
  };
8143
- const createLayoutFormat = (config) => {
8144
- if (_.isEmpty(config)) {
8304
+ const createLayoutFormat = (config2) => {
8305
+ if (_.isEmpty(config2)) {
8145
8306
  return {
8146
8307
  xs: 12,
8147
8308
  sm: 12,
@@ -8150,17 +8311,17 @@ const createLayoutFormat = (config) => {
8150
8311
  };
8151
8312
  }
8152
8313
  let data = {};
8153
- config.map((e) => {
8314
+ config2.map((e) => {
8154
8315
  data[e.key || "xs"] = +e.value || 5.5;
8155
8316
  });
8156
8317
  return data;
8157
8318
  };
8158
- const flatObjectValueInArray = (config = []) => {
8159
- if (config[0].length < 1) {
8319
+ const flatObjectValueInArray = (config2 = []) => {
8320
+ if (config2.length < 1) {
8160
8321
  return;
8161
8322
  }
8162
- const keyName = Object.keys(config[0])[0];
8163
- const data = config.map((e) => {
8323
+ const keyName = Object.keys(config2[0])[0];
8324
+ const data = config2.map((e) => {
8164
8325
  return e[keyName];
8165
8326
  });
8166
8327
  return data;
@@ -8168,9 +8329,9 @@ const flatObjectValueInArray = (config = []) => {
8168
8329
  const clearFromSessionStorage = () => {
8169
8330
  sessionStorage.removeItem("pageFormdata");
8170
8331
  };
8171
- const getNavigationHistory = (config, path) => {
8332
+ const getNavigationHistory = (config2, path) => {
8172
8333
  if (path) {
8173
- let urlRoutes = config.name;
8334
+ let urlRoutes = config2.name;
8174
8335
  const pathArrayAll = path.split(".");
8175
8336
  const arr = [];
8176
8337
  pathArrayAll.map((e, i) => {
@@ -8181,7 +8342,7 @@ const getNavigationHistory = (config, path) => {
8181
8342
  arr.push(`${arr[i - 1]}.${e}`);
8182
8343
  });
8183
8344
  arr.map((e) => {
8184
- const data = _.get(config, e);
8345
+ const data = _.get(config2, e);
8185
8346
  if (data) {
8186
8347
  urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
8187
8348
  } else {
@@ -8215,16 +8376,16 @@ const getFormdataFromSessionStorage = (path) => {
8215
8376
  }
8216
8377
  return returnValue || pageFormdata;
8217
8378
  };
8218
- async function saveHandler(store2, service2, submitHandler, pageName) {
8379
+ async function saveHandler(store2, service2, submitHandler) {
8219
8380
  var _a, _b;
8220
8381
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8221
8382
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8222
8383
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8223
- const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
8384
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8224
8385
  if (_.isEmpty(store2.ctx.core.errors)) {
8225
8386
  try {
8226
- const saveReturn = await submitHandler(store2, service2, config);
8227
- navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
8387
+ const saveReturn = await submitHandler(store2, service2, config2);
8388
+ navigateHandler(store2, true, "/PageMasterRecords");
8228
8389
  } catch (err) {
8229
8390
  navigateHandler(store2, false);
8230
8391
  }
@@ -8293,11 +8454,13 @@ const sectionLabels = {
8293
8454
  DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
8294
8455
  InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
8295
8456
  TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8296
- ColumnGroup: ["Core", "Components"]
8457
+ ColumnGroup: ["Core", "Components"],
8458
+ Thought: ["Core", "Properties", "Event", "Style", "Validation"]
8297
8459
  };
8298
8460
  function refreshPage(type, store2) {
8299
- var _a;
8461
+ var _a, _b;
8300
8462
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8463
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8301
8464
  if (type) {
8302
8465
  const sectionUiSchema = {
8303
8466
  Core: CoreSection,
@@ -8312,6 +8475,81 @@ function refreshPage(type, store2) {
8312
8475
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8313
8476
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8314
8477
  }
8478
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8479
+ const lastDotIndex = path.lastIndexOf(".");
8480
+ const parentPath = path.slice(0, lastDotIndex);
8481
+ const parentObj = _.get(currentConfig, parentPath);
8482
+ if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8483
+ UiSchema.elements[1].elements[0].elements[3] = {
8484
+ type: "Control",
8485
+ scope: "#/properties/columnFormat",
8486
+ options: {
8487
+ widget: "SelectInputField"
8488
+ },
8489
+ config: {
8490
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8491
+ main: {
8492
+ label: "Column Format"
8493
+ }
8494
+ }
8495
+ };
8496
+ UiSchema.elements[1].elements[0].elements[4] = {
8497
+ type: "Control",
8498
+ scope: "#/properties/enableFilter",
8499
+ options: {
8500
+ widget: "RadioInputField"
8501
+ },
8502
+ config: {
8503
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8504
+ main: {
8505
+ label: "Enable Filter",
8506
+ options: ["Yes", "No"]
8507
+ }
8508
+ }
8509
+ }, UiSchema.elements[1].elements[0].elements[5] = {
8510
+ type: "Control",
8511
+ scope: "#/properties/filteringOptions",
8512
+ options: {
8513
+ widget: "SelectInputField"
8514
+ },
8515
+ config: {
8516
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8517
+ main: {
8518
+ label: "Filter Mode",
8519
+ multiple: true
8520
+ }
8521
+ }
8522
+ };
8523
+ UiSchema.elements[1].elements[0].elements[6] = {
8524
+ type: "Control",
8525
+ scope: "#/properties/enableSorting",
8526
+ options: {
8527
+ widget: "RadioInputField"
8528
+ },
8529
+ config: {
8530
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8531
+ main: {
8532
+ label: "Enable Sorting",
8533
+ options: ["Yes", "No"]
8534
+ }
8535
+ }
8536
+ }, UiSchema.elements[1].elements[0].elements[7] = {
8537
+ type: "Control",
8538
+ scope: "#/properties/columnKey",
8539
+ options: {
8540
+ widget: "InputField"
8541
+ },
8542
+ config: {
8543
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8544
+ main: {
8545
+ label: "Column Key",
8546
+ options: [],
8547
+ color: "secondary",
8548
+ required: true
8549
+ }
8550
+ }
8551
+ };
8552
+ }
8315
8553
  if (sessionStorage.getItem("copiedConfig")) {
8316
8554
  this.ElementPathSetter(UiSchema);
8317
8555
  }
@@ -8340,7 +8578,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8340
8578
  return schema2;
8341
8579
  },
8342
8580
  okHandler: () => okHandler(store2),
8343
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
8581
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
8344
8582
  onChange: function() {
8345
8583
  var _a, _b, _c, _d;
8346
8584
  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) {
@@ -8462,6 +8700,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8462
8700
  return;
8463
8701
  }
8464
8702
  const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8703
+ if (!Array.isArray(store2.formData.elements)) {
8704
+ store2.formData.elements = [];
8705
+ }
8706
+ if (!Array.isArray(store2.formData.events)) {
8707
+ store2.formData.events = [];
8708
+ }
8709
+ saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
8465
8710
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8466
8711
  const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
8467
8712
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
@@ -8520,13 +8765,13 @@ var pageMaster = (funcParams) => {
8520
8765
  getFormdata: async function() {
8521
8766
  var _a;
8522
8767
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8523
- const config = await funcParams.pageConfigProvider(id);
8768
+ const config2 = await funcParams.pageConfigProvider(id);
8524
8769
  const formData = getFormdataFromSessionStorage();
8525
8770
  if (formData) {
8526
8771
  return formData;
8527
8772
  }
8528
- saveFormdataInSessionStorage(config);
8529
- return config;
8773
+ saveFormdataInSessionStorage(config2);
8774
+ return config2;
8530
8775
  },
8531
8776
  getUiSchema: function() {
8532
8777
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -9011,26 +9256,18 @@ const EventUiSchema = (theme) => {
9011
9256
  layout: {
9012
9257
  xs: 12,
9013
9258
  sm: 12,
9014
- md: 6,
9015
- lg: 6
9259
+ md: 12,
9260
+ lg: 12
9016
9261
  },
9017
- main: {},
9018
- style: {
9019
- "& .MuiPaper-root": {
9020
- width: "30%"
9021
- },
9022
- "& .MuiTypography-root": {
9023
- padding: 0
9024
- },
9025
- wrapperStyle: {
9026
- width: { xs: "100%", sm: "100%", md: "98%" }
9027
- }
9028
- }
9262
+ main: {
9263
+ title: "WARNING!"
9264
+ },
9265
+ style: {}
9029
9266
  },
9030
9267
  elements: [
9031
9268
  {
9032
9269
  type: "Control",
9033
- scope: "#/properties/label",
9270
+ scope: "#/properties/popupText",
9034
9271
  options: {
9035
9272
  widget: "Box"
9036
9273
  },
@@ -9040,58 +9277,95 @@ const EventUiSchema = (theme) => {
9040
9277
  heading: "Are you sure you want to delete ?"
9041
9278
  },
9042
9279
  style: {
9043
- marginTop: "-40px"
9280
+ marginTop: "-20px",
9281
+ fontSize: "20px",
9282
+ "&.MuiTypography-root": {
9283
+ padding: "10px 30px 20px 30px",
9284
+ textAlign: "center",
9285
+ lineHeight: "1"
9286
+ }
9044
9287
  }
9045
9288
  }
9046
9289
  },
9047
9290
  {
9048
- type: "Control",
9049
- scope: "#/properties/EmptyBox",
9050
- options: {
9051
- widget: "EmptyBox"
9052
- },
9053
- config: {
9054
- main: {},
9055
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
9056
- }
9057
- },
9058
- {
9059
- type: "Control",
9060
- scope: "#/properties/ConfirmDeleteEventButton",
9061
- options: {
9062
- widget: "Button"
9063
- },
9291
+ type: "WrapperLayout",
9064
9292
  config: {
9065
- layout: 3,
9066
- main: {
9067
- name: "Yes",
9068
- startIcon: "ApproveIcon",
9069
- variant: "contained",
9070
- color: "error",
9071
- type: "text",
9072
- onClick: "deleteEvent",
9073
- size: "small"
9074
- }
9075
- }
9076
- },
9077
- {
9078
- type: "Control",
9079
- scope: "#/properties/CancelDeleteEventButton",
9080
- options: {
9081
- widget: "Button"
9293
+ layout: 12,
9294
+ main: {}
9082
9295
  },
9083
- config: {
9084
- layout: 3,
9085
- main: {
9086
- name: "No",
9087
- startIcon: "ApproveIcon",
9088
- variant: "contained",
9089
- color: "info",
9090
- type: "text",
9091
- onClick: "deletePopUpEvent",
9092
- size: "small"
9296
+ elements: [
9297
+ {
9298
+ type: "Control",
9299
+ scope: "#/properties/CancelDeleteEventButton",
9300
+ options: {
9301
+ widget: "Button"
9302
+ },
9303
+ config: {
9304
+ layout: 6,
9305
+ main: {
9306
+ name: "No",
9307
+ startIcon: "ApproveIcon",
9308
+ variant: "contained",
9309
+ color: "info",
9310
+ type: "text",
9311
+ onClick: "deletePopUpEvent",
9312
+ size: "large"
9313
+ },
9314
+ style: {
9315
+ position: "absolute",
9316
+ bottom: 0,
9317
+ left: 0,
9318
+ width: "50%",
9319
+ borderRadius: 0,
9320
+ boxShadow: 0,
9321
+ backgroundColor: "transparent",
9322
+ color: theme.palette.primary.main,
9323
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9324
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
9325
+ "&:hover": {
9326
+ color: theme.palette.primary.contrastText,
9327
+ backgroundColor: theme.palette.primary.main,
9328
+ boxShadow: "none"
9329
+ }
9330
+ }
9331
+ }
9332
+ },
9333
+ {
9334
+ type: "Control",
9335
+ scope: "#/properties/ConfirmDeleteEventButton",
9336
+ options: {
9337
+ widget: "Button"
9338
+ },
9339
+ config: {
9340
+ layout: 6,
9341
+ main: {
9342
+ name: "Yes",
9343
+ startIcon: "ApproveIcon",
9344
+ variant: "contained",
9345
+ color: "error",
9346
+ type: "text",
9347
+ onClick: "deleteEvent",
9348
+ size: "large"
9349
+ },
9350
+ style: {
9351
+ position: "absolute",
9352
+ bottom: 0,
9353
+ right: 0,
9354
+ width: "50%",
9355
+ borderRadius: 0,
9356
+ boxShadow: 0,
9357
+ backgroundColor: "transparent",
9358
+ color: theme.palette.error.main,
9359
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
9360
+ "&:hover": {
9361
+ color: theme.palette.error.contrastText,
9362
+ backgroundColor: theme.palette.error.main,
9363
+ boxShadow: "none"
9364
+ }
9365
+ }
9366
+ }
9093
9367
  }
9094
- }
9368
+ ]
9095
9369
  }
9096
9370
  ]
9097
9371
  },
@@ -9135,13 +9409,14 @@ const EventUiSchema = (theme) => {
9135
9409
  color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9136
9410
  fontSize: "12px",
9137
9411
  textAlign: "center",
9138
- lineHeight: 1,
9412
+ lineHeight: 2,
9139
9413
  width: "fit-content",
9140
9414
  left: "50%",
9141
9415
  position: "relative",
9142
9416
  margin: 0,
9143
9417
  flexGrow: 1,
9144
- height: 0
9418
+ height: 0,
9419
+ transform: "translate(-50%,0%)"
9145
9420
  }
9146
9421
  }
9147
9422
  },
@@ -9510,7 +9785,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9510
9785
  return schema2;
9511
9786
  },
9512
9787
  okHandler: () => okHandler(store2),
9513
- saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
9788
+ saveHandler: async () => await saveHandler(store2, service2, submitHandler),
9514
9789
  onChange: function() {
9515
9790
  var _a, _b, _c;
9516
9791
  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) {
@@ -9726,37 +10001,42 @@ function executeCustomHandler(params) {
9726
10001
  }
9727
10002
  }
9728
10003
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9729
- if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9730
- store2.setSchema((pre) => {
9731
- var _a;
9732
- return {
9733
- ...pre,
9734
- properties: {
9735
- ...pre.properties,
9736
- [componentName]: {
9737
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9738
- oneOf: handlerResponse.data
10004
+ var _a, _b, _c;
10005
+ if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10006
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10007
+ store2.setSchema((pre) => {
10008
+ var _a2;
10009
+ return {
10010
+ ...pre,
10011
+ properties: {
10012
+ ...pre.properties,
10013
+ [componentName]: {
10014
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
10015
+ oneOf: handlerResponse.data
10016
+ }
9739
10017
  }
9740
- }
9741
- };
9742
- });
9743
- } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
9744
- store2.setSchema((pre) => {
9745
- var _a;
9746
- return {
9747
- ...pre,
9748
- properties: {
9749
- ...pre.properties,
9750
- [componentName]: {
9751
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
9752
- type: "array",
9753
- items: {
9754
- oneOf: handlerResponse == null ? void 0 : handlerResponse.data
10018
+ };
10019
+ });
10020
+ }
10021
+ } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10022
+ if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10023
+ store2.setSchema((pre) => {
10024
+ var _a2;
10025
+ return {
10026
+ ...pre,
10027
+ properties: {
10028
+ ...pre.properties,
10029
+ [componentName]: {
10030
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
10031
+ type: "array",
10032
+ items: {
10033
+ oneOf: handlerResponse == null ? void 0 : handlerResponse.data
10034
+ }
9755
10035
  }
9756
10036
  }
9757
- }
9758
- };
9759
- });
10037
+ };
10038
+ });
10039
+ }
9760
10040
  } else if (eventConfig.type === "page") {
9761
10041
  if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9762
10042
  store2.newData = {
@@ -9767,6 +10047,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9767
10047
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
9768
10048
  });
9769
10049
  }
10050
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10051
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10052
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10053
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10054
+ store2.setFormdata((pre) => {
10055
+ return { ...pre, ...formDataHolder };
10056
+ });
10057
+ }
9770
10058
  } else {
9771
10059
  if (handlerResponse) {
9772
10060
  formDataHolder[componentName] = handlerResponse.data;
@@ -9937,10 +10225,10 @@ var service = (funcParams) => {
9937
10225
  config: pageData == null ? void 0 : pageData.config
9938
10226
  }));
9939
10227
  }
9940
- const config = pageData == null ? void 0 : pageData.config;
10228
+ const config2 = pageData == null ? void 0 : pageData.config;
9941
10229
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
9942
10230
  const event2 = new CustomEvent("pageNameChanged", {
9943
- detail: { pageName: config.label }
10231
+ detail: { pageName: config2.label }
9944
10232
  });
9945
10233
  window.dispatchEvent(event2);
9946
10234
  const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -10050,7 +10338,7 @@ var service = (funcParams) => {
10050
10338
  }
10051
10339
  );
10052
10340
  const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
10053
- eventGroups = extractEvents(config);
10341
+ eventGroups = extractEvents(config2);
10054
10342
  executeEventsParameters = {
10055
10343
  config: {},
10056
10344
  componentName: "",
@@ -10072,7 +10360,7 @@ var service = (funcParams) => {
10072
10360
  service: funcParams.service,
10073
10361
  serviceHolder: this,
10074
10362
  eventGroups,
10075
- formDataHolder
10363
+ formDataHolder: {}
10076
10364
  });
10077
10365
  funcParams.store.setSchema(
10078
10366
  (pre) => {
@@ -10087,11 +10375,11 @@ var service = (funcParams) => {
10087
10375
  funcParams.store.setUiSchema(uiSchema);
10088
10376
  },
10089
10377
  onCellRenderer: (cellParams) => {
10090
- var _a, _b, _c;
10378
+ var _a, _b, _c, _d;
10091
10379
  if (eventGroups.onCellRenderer) {
10092
10380
  let finalResponse = {};
10093
10381
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10094
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10382
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10095
10383
  executeEventsParameters.store.functionParameters = cellParams;
10096
10384
  finalResponse = executeEvents({
10097
10385
  ...executeEventsParameters,
@@ -10235,381 +10523,55 @@ var service = (funcParams) => {
10235
10523
  };
10236
10524
  };
10237
10525
  var leaderBoard = {
10238
- type: "WrapperLayout",
10239
- config: {
10240
- main: {
10241
- rowSpacing: 3,
10242
- header: true,
10243
- label: "LeaderBoard",
10244
- divider: true
10245
- },
10246
- style: {},
10247
- wrapperStyle: {
10248
- position: "relative",
10249
- width: "100%"
10250
- },
10251
- componentsBoxStyle: {
10252
- display: "flex",
10253
- flexDirection: "column",
10254
- gap: "20px"
10255
- }
10526
+ type: "Control",
10527
+ scope: "#/properties/path",
10528
+ options: {
10529
+ widget: "LeaderBoard"
10256
10530
  },
10257
- elements: [
10258
- {
10259
- type: "Control",
10260
- scope: "#/properties/leaderBoard/properties/firstImage",
10261
- config: {
10262
- main: {
10263
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
10264
- },
10265
- style: {
10266
- imageStyle: {
10267
- objectFit: "cover",
10268
- width: "100%",
10269
- height: "100%",
10270
- borderRadius: "50%"
10271
- },
10272
- containerStyle: {
10273
- objectFit: "cover",
10274
- position: "absolute",
10275
- top: { xs: "90px", "md": "60px" },
10276
- left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
10277
- width: { "xs": "100px", "sm": "100px", "md": "200px" },
10278
- border: "5px solid rgb(179, 198, 255)",
10279
- height: { "xs": "100px", "sm": "100px", "md": "200px" },
10280
- borderRadius: "50%"
10281
- }
10282
- },
10283
- layout: 6
10284
- },
10285
- options: {
10286
- widget: "Image"
10287
- }
10288
- },
10289
- {
10290
- type: "Control",
10291
- scope: "#/properties/leaderBoard/properties/secondImage",
10292
- config: {
10293
- main: {
10294
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
10295
- },
10296
- style: {
10297
- imageStyle: {
10298
- objectFit: "cover",
10299
- width: "100%",
10300
- height: "100%",
10301
- borderRadius: "50%"
10302
- },
10303
- containerStyle: {
10304
- objectFit: "cover",
10305
- position: "absolute",
10306
- top: { xs: "160px", "md": "130px" },
10307
- left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
10308
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
10309
- border: "5px solid rgb(179, 198, 255)",
10310
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
10311
- borderRadius: "50%"
10312
- }
10313
- },
10314
- layout: 6
10315
- },
10316
- options: {
10317
- widget: "Image"
10318
- }
10319
- },
10320
- {
10321
- type: "Control",
10322
- scope: "#/properties/leaderBoard/properties/thirdImage",
10323
- config: {
10324
- main: {
10325
- url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
10326
- },
10327
- style: {
10328
- imageStyle: {
10329
- objectFit: "cover",
10330
- width: "100%",
10331
- height: "100%",
10332
- borderRadius: "50%"
10333
- },
10334
- containerStyle: {
10335
- objectFit: "cover",
10336
- position: "absolute",
10337
- top: { xs: "160px", "md": "130px" },
10338
- left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
10339
- width: { "xs": "80px", "sm": "80px", "md": "180px" },
10340
- border: "5px solid rgb(179, 198, 255)",
10341
- height: { "xs": "80px", "sm": "80px", "md": "180px" },
10342
- borderRadius: "50%"
10343
- }
10344
- },
10345
- layout: 6
10346
- },
10347
- options: {
10348
- widget: "Image"
10349
- }
10350
- },
10351
- {
10352
- type: "Control",
10353
- scope: "#/properties/leaderBoard/properties/firstName",
10354
- config: {
10355
- main: {
10356
- heading: "Satendra Raghav"
10357
- },
10358
- style: {
10359
- objectFit: "cover",
10360
- position: "absolute",
10361
- display: "flex",
10362
- justifyContent: "center",
10363
- alignItems: "center",
10364
- color: "black",
10365
- top: { xs: "190px", md: "270px" },
10366
- fontSize: { xs: "12px", md: "20px" },
10367
- left: "calc(50% - 90px)",
10368
- width: "180px",
10369
- fontWeight: "bold",
10370
- borderRadius: "50%",
10371
- zIndex: 7
10372
- },
10373
- layout: 6
10374
- },
10375
- options: {
10376
- widget: "Box"
10377
- }
10378
- },
10379
- {
10380
- type: "Control",
10381
- scope: "#/properties/leaderBoard/properties/secondName",
10382
- config: {
10383
- main: {
10384
- heading: "Satendra Raghav"
10385
- },
10386
- style: {
10387
- objectFit: "cover",
10388
- position: "absolute",
10389
- display: "flex",
10390
- justifyContent: "center",
10391
- alignItems: "center",
10392
- color: "black",
10393
- top: { xs: "240px", md: "320px" },
10394
- fontSize: { xs: "12px", md: "20px" },
10395
- left: "calc(25% - 90px)",
10396
- width: "180px",
10397
- fontWeight: "bold",
10398
- borderRadius: "50%"
10399
- },
10400
- layout: 6
10401
- },
10402
- options: {
10403
- widget: "Box"
10404
- }
10405
- },
10406
- {
10407
- type: "Control",
10408
- scope: "#/properties/leaderBoard/properties/thirdName",
10409
- config: {
10410
- main: {
10411
- heading: "Satendra Raghav"
10412
- },
10413
- style: {
10414
- objectFit: "cover",
10415
- position: "absolute",
10416
- display: "flex",
10417
- justifyContent: "center",
10418
- alignItems: "center",
10419
- color: "black",
10420
- top: { xs: "240px", md: "320px" },
10421
- fontSize: { xs: "12px", md: "20px" },
10422
- left: "calc(75% - 90px)",
10423
- width: "180px",
10424
- fontWeight: "bold",
10425
- borderRadius: "50%"
10426
- },
10427
- layout: 6
10428
- },
10429
- options: {
10430
- widget: "Box"
10431
- }
10432
- },
10433
- {
10434
- type: "Control",
10435
- scope: "#/properties/econd",
10436
- config: {
10437
- main: {
10438
- heading: "2"
10439
- },
10440
- style: {
10441
- objectFit: "cover",
10442
- position: "absolute",
10443
- display: "flex",
10444
- justifyContent: "center",
10445
- alignItems: "center",
10446
- textShadow: "2px 2px 5px #5065C7",
10447
- background: "green",
10448
- color: "white",
10449
- top: { xs: "225px", md: "280px" },
10450
- fontSize: { xs: "12px", md: "16px" },
10451
- left: { xs: "calc(25% - 12px)", md: "calc(25% - 16px)" },
10452
- width: { xs: "20px", md: "40px" },
10453
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10454
- height: { xs: "20px", md: "40px" },
10455
- "@keyframes rotateAnimation": {
10456
- from: {
10457
- transform: "rotate(0deg)"
10458
- },
10459
- to: {
10460
- transform: "rotate(360deg)"
10461
- }
10462
- },
10463
- animation: "rotateAnimation 4s infinite",
10464
- borderRadius: "50%",
10465
- zIndex: 5
10466
- },
10467
- layout: 6
10468
- },
10469
- options: {
10470
- widget: "Box"
10471
- }
10472
- },
10473
- {
10474
- type: "Control",
10475
- scope: "#/properties/first",
10476
- config: {
10477
- main: {
10478
- heading: "1"
10479
- },
10480
- style: {
10481
- objectFit: "cover",
10482
- position: "absolute",
10483
- display: "flex",
10484
- justifyContent: "center",
10485
- alignItems: "center",
10486
- textShadow: "2px 2px 5px #5065C7",
10487
- background: "green",
10488
- color: "white",
10489
- top: { xs: "175px", md: "230px" },
10490
- fontSize: { xs: "12px", md: "16px" },
10491
- left: { xs: "calc(50% - 12px)", md: "calc(50% - 16px)" },
10492
- "@keyframes rotateAnimation": {
10493
- from: {
10494
- transform: "rotate(0deg)"
10495
- },
10496
- to: {
10497
- transform: "rotate(360deg)"
10498
- }
10499
- },
10500
- animation: "rotateAnimation 4s infinite",
10501
- width: { xs: "20px", md: "40px" },
10502
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10503
- height: { xs: "20px", md: "40px" },
10504
- borderRadius: "50%",
10505
- zIndex: 5
10506
- },
10507
- layout: 6
10508
- },
10509
- options: {
10510
- widget: "Box"
10511
- }
10512
- },
10513
- {
10514
- type: "Control",
10515
- scope: "#/properties/third",
10516
- config: {
10517
- main: {
10518
- heading: "3"
10519
- },
10520
- style: {
10521
- objectFit: "cover",
10522
- position: "absolute",
10523
- display: "flex",
10524
- justifyContent: "center",
10525
- alignItems: "center",
10526
- textShadow: "2px 2px 5px #5065C7",
10527
- background: "green",
10528
- color: "white",
10529
- top: { xs: "225px", md: "280px" },
10530
- fontSize: { xs: "12px", md: "16px" },
10531
- left: { xs: "calc(75% - 12px)", md: "calc(75% - 16px)" },
10532
- width: { xs: "20px", md: "40px" },
10533
- border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
10534
- height: { xs: "20px", md: "40px" },
10535
- "@keyframes rotateAnimation": {
10536
- from: {
10537
- transform: "rotate(0deg)"
10538
- },
10539
- to: {
10540
- transform: "rotate(360deg)"
10541
- }
10542
- },
10543
- animation: "rotateAnimation 4s infinite",
10544
- borderRadius: "50%",
10545
- zIndex: 5
10546
- },
10547
- layout: 6
10548
- },
10549
- options: {
10550
- widget: "Box"
10551
- }
10552
- },
10553
- {
10554
- type: "Control",
10555
- scope: "#/properties/leaderBoard/properties/table",
10556
- options: {
10557
- widget: "Table"
10558
- },
10559
- elements: [],
10560
- config: {
10561
- style: {
10562
- tableHeadstyle: {
10563
- fontWeight: 900,
10564
- background: "rgb(179, 198, 255)"
10565
- },
10566
- top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
10567
- border: "2px solid rgb(179, 198, 255)",
10568
- width: "95%",
10569
- left: "2.5%",
10570
- margin: "auto"
10571
- },
10572
- main: {
10573
- disableAction: true,
10574
- disableSelection: true
10575
- }
10576
- }
10577
- }
10578
- ]
10531
+ config: {
10532
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
10533
+ main: {}
10534
+ }
10579
10535
  };
10580
- const buildLeaderBoard = (config) => {
10536
+ const buildLeaderBoard = (config2) => {
10581
10537
  const LeaderBoard = _.cloneDeep(leaderBoard);
10582
- if (config.elements) {
10583
- const modifyColumns = config.elements.map((e, i) => {
10538
+ if (config2.elements) {
10539
+ const modifyColumns = config2.elements.map((e, i) => {
10584
10540
  if (!e.type) {
10585
10541
  return { accessorKey: e.name, header: e.label || e.name };
10586
10542
  }
10587
10543
  const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
10588
10544
  return { ...widgetSchema };
10589
10545
  });
10590
- LeaderBoard.elements[9].elements = modifyColumns;
10546
+ LeaderBoard.elements = modifyColumns;
10591
10547
  }
10592
- LeaderBoard.config.main.label = config.label;
10593
- if (config.name) {
10594
- LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
10595
- LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
10596
- LeaderBoard.elements[1].scope = `#/properties/${config.name}/properties/secondImage`;
10597
- LeaderBoard.elements[4].scope = `#/properties/${config.name}/properties/secondName`;
10598
- LeaderBoard.elements[2].scope = `#/properties/${config.name}/properties/thirdImage`;
10599
- LeaderBoard.elements[5].scope = `#/properties/${config.name}/properties/thirdName`;
10600
- LeaderBoard.elements[9].scope = `#/properties/${config.name}/properties/table`;
10548
+ LeaderBoard.config.main.label = config2.label;
10549
+ if (config2.name) {
10550
+ LeaderBoard.scope = `#/properties/${config2.name}`;
10601
10551
  }
10602
- if (config.firstImage) {
10603
- LeaderBoard.elements[0].config.main.url = config.firstImage;
10552
+ if (config2.firstImage) {
10553
+ LeaderBoard.config.main.firstImage = config2.firstImage;
10604
10554
  }
10605
- if (config.secondImage) {
10606
- LeaderBoard.elements[1].config.main.url = config.secondImage;
10555
+ if (config2.secondImage) {
10556
+ LeaderBoard.config.main.secondImage = config2.secondImage;
10607
10557
  }
10608
- if (config.secondImage) {
10609
- LeaderBoard.elements[2].config.main.url = config.thirdImage;
10558
+ if (config2.thirdImage) {
10559
+ LeaderBoard.config.main.thirdImage = config2.thirdImage;
10610
10560
  }
10611
- if (config.layout) {
10612
- LeaderBoard.config.layout = createLayoutFormat(config.layout);
10561
+ if (config2.nameKey) {
10562
+ LeaderBoard.config.main.nameKey = config2.nameKey;
10563
+ }
10564
+ if (config2.imageKey) {
10565
+ LeaderBoard.config.main.imageKey = config2.imageKey;
10566
+ }
10567
+ if (config2.scoreKey) {
10568
+ LeaderBoard.config.main.scoreKey = config2.scoreKey;
10569
+ }
10570
+ if (config2.layout) {
10571
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout);
10572
+ }
10573
+ if (config2.style) {
10574
+ LeaderBoard.config.style = JSON.parse(config2.style);
10613
10575
  }
10614
10576
  return LeaderBoard;
10615
10577
  };
@@ -10620,7 +10582,7 @@ var progressBar = {
10620
10582
  widget: "ProgressBar"
10621
10583
  },
10622
10584
  config: {
10623
- layout: 6,
10585
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10624
10586
  main: {
10625
10587
  developOnlyProgresBar: false,
10626
10588
  bottomLabel_3: "Remaining",
@@ -10628,44 +10590,44 @@ var progressBar = {
10628
10590
  }
10629
10591
  }
10630
10592
  };
10631
- const buildProgressBarCard = (config, myScope) => {
10593
+ const buildProgressBarCard = (config2, myScope) => {
10632
10594
  const progressBarCard = _.cloneDeep(progressBar);
10633
10595
  progressBarCard.scope = myScope;
10634
- if (config.heading) {
10635
- progressBarCard.config.main.heading = config.heading;
10596
+ if (config2.heading) {
10597
+ progressBarCard.config.main.heading = config2.heading;
10636
10598
  }
10637
- if (config.bottomLabel_3) {
10638
- progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
10599
+ if (config2.bottomLabel_3) {
10600
+ progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
10639
10601
  }
10640
- if (config.bottomLabel_2) {
10641
- progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
10602
+ if (config2.bottomLabel_2) {
10603
+ progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
10642
10604
  }
10643
- if (config.bottomLabel_1) {
10644
- progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
10605
+ if (config2.bottomLabel_1) {
10606
+ progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
10645
10607
  }
10646
- if (config.layout) {
10647
- progressBarCard.config.layout = createLayoutFormat(config.layout);
10608
+ if (config2.layout) {
10609
+ progressBarCard.config.layout = createLayoutFormat(config2.layout);
10648
10610
  }
10649
10611
  return progressBarCard;
10650
10612
  };
10651
- const buildProgressBar = (config, componentScope) => {
10613
+ const buildProgressBar = (config2, componentScope2) => {
10652
10614
  const ProgressBar = _.cloneDeep(progressBar);
10653
- ProgressBar.scope = componentScope;
10654
- if (config.layout) {
10655
- ProgressBar.config.layout = config.layout;
10615
+ ProgressBar.scope = componentScope2;
10616
+ if (config2.layout) {
10617
+ ProgressBar.config.layout = config2.layout;
10656
10618
  }
10657
- ProgressBar.config.main.heading = config.label;
10658
- if (config.bottomLabel_3) {
10659
- ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
10619
+ ProgressBar.config.main.heading = config2.label;
10620
+ if (config2.bottomLabel_3) {
10621
+ ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10660
10622
  }
10661
- if (config.layout) {
10662
- ProgressBar.config.layout = createLayoutFormat(config.layout);
10623
+ if (config2.layout) {
10624
+ ProgressBar.config.layout = createLayoutFormat(config2.layout);
10663
10625
  }
10664
- if (config.bottomLabel_2) {
10665
- ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
10626
+ if (config2.bottomLabel_2) {
10627
+ ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
10666
10628
  }
10667
- if (config.bottomLabel_1) {
10668
- ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
10629
+ if (config2.bottomLabel_1) {
10630
+ ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
10669
10631
  }
10670
10632
  return ProgressBar;
10671
10633
  };
@@ -10676,8 +10638,12 @@ const BarGraph = {
10676
10638
  widget: "Graph"
10677
10639
  },
10678
10640
  config: {
10679
- main: {},
10680
- style: { containerStyle: {}, labelStyle: {} }
10641
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10642
+ main: {
10643
+ type: "BarGraph",
10644
+ legendLabels: null
10645
+ },
10646
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10681
10647
  }
10682
10648
  };
10683
10649
  const PieGraph = {
@@ -10687,10 +10653,12 @@ const PieGraph = {
10687
10653
  widget: "Graph"
10688
10654
  },
10689
10655
  config: {
10656
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10690
10657
  main: {
10691
- type: "PieGraph"
10658
+ type: "PieGraph",
10659
+ legendLabels: null
10692
10660
  },
10693
- style: {}
10661
+ style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
10694
10662
  }
10695
10663
  };
10696
10664
  const LineGraph = {
@@ -10700,32 +10668,12 @@ const LineGraph = {
10700
10668
  widget: "Graph"
10701
10669
  },
10702
10670
  config: {
10703
- layout: 12,
10671
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10704
10672
  main: {
10705
10673
  type: "LineGraph",
10706
- header: "Quartely Incentive in Thousand",
10707
- bottomLabel: "Years",
10708
- leftLabel: "Incentive",
10709
- gridHidden: true,
10710
- numHidden: false,
10711
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
10712
- axisLeft: true,
10713
- axisBottom: true,
10714
- hideLeftAxisLine: false,
10715
- hideBottomAxisLine: false,
10716
- legend: {
10717
- labelColor: "green",
10718
- direction: "row",
10719
- align: "right",
10720
- colorRectWidth: 20
10721
- }
10674
+ legendLabels: null
10722
10675
  },
10723
- style: {
10724
- containerStyle: {},
10725
- headerStyle: {},
10726
- labelStyle: {},
10727
- lineStyle: {}
10728
- }
10676
+ style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
10729
10677
  }
10730
10678
  };
10731
10679
  const HorizontalBarGraph = {
@@ -10735,52 +10683,51 @@ const HorizontalBarGraph = {
10735
10683
  widget: "Graph"
10736
10684
  },
10737
10685
  config: {
10686
+ layout: { xs: 12, sm: 12, md: 12, lg: 6 },
10738
10687
  main: {
10739
- type: "HorizontalBarGraph"
10688
+ type: "HorizontalBarGraph",
10689
+ legendLabels: null
10740
10690
  },
10741
- style: {
10742
- labelStyle: {}
10743
- }
10691
+ style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10744
10692
  }
10745
10693
  };
10746
- const buildHorizontalBarGraph = (config, componentScope) => {
10694
+ const buildHorizontalBarGraph = (config2, componentScope2) => {
10747
10695
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10748
- horizontalBarGraph.scope = componentScope;
10749
- if (config.layout) {
10750
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10696
+ horizontalBarGraph.scope = componentScope2;
10697
+ if (config2.layout) {
10698
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
10751
10699
  }
10752
- horizontalBarGraph.config.main.type = config.graphType;
10753
- horizontalBarGraph.scope = componentScope;
10754
- horizontalBarGraph.config.main.header = config.heading;
10755
- if (config.barColor) {
10756
- horizontalBarGraph.config.barStyle.color = config.barColor;
10700
+ horizontalBarGraph.config.main.type = config2.graphType;
10701
+ horizontalBarGraph.scope = componentScope2;
10702
+ horizontalBarGraph.config.main.header = config2.heading;
10703
+ if (config2.legendHide) {
10704
+ horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10757
10705
  }
10758
- if (config.xAxisValue) {
10759
- horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10706
+ if (config2.bottomAxisAngle) {
10707
+ horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10760
10708
  }
10761
- if (config.containerBackground) {
10762
- horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10709
+ if (config2.legendLabels) {
10710
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10763
10711
  }
10764
- if (config.height) {
10765
- horizontalBarGraph.config.style = {
10766
- containerStyle: {
10767
- height: config.height
10768
- }
10769
- };
10712
+ if (config2.pieArcColors) {
10713
+ horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10770
10714
  }
10771
- if (config.bottomLabel) {
10772
- horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10715
+ if (config2.xAxisValue) {
10716
+ horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
10773
10717
  }
10774
- if (config.leftLabel) {
10775
- horizontalBarGraph.config.main.leftLabel = config.leftLabel;
10718
+ if (config2.height) {
10719
+ horizontalBarGraph.config.style.containerStyle.height = config2.height;
10776
10720
  }
10777
- if (config.leftLabelMargin) {
10721
+ if (config2.leftMargin) {
10778
10722
  horizontalBarGraph.config.style.labelStyle.margin = {
10779
- left: config.leftLabelMargin
10723
+ left: config2.leftMargin
10780
10724
  };
10781
10725
  }
10782
- if (config.leftLabelOffset) {
10783
- horizontalBarGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10726
+ if (config2.bottomLabel) {
10727
+ horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
10728
+ }
10729
+ if (config2.leftLabel) {
10730
+ horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10784
10731
  }
10785
10732
  return horizontalBarGraph;
10786
10733
  };
@@ -10830,20 +10777,20 @@ var SpeedoMeter = {
10830
10777
  }
10831
10778
  }
10832
10779
  };
10833
- const buildSpeedoMeter = (config, componentScope) => {
10780
+ const buildSpeedoMeter = (config2, componentScope2) => {
10834
10781
  const speedoMeter = _.cloneDeep(SpeedoMeter);
10835
- speedoMeter.scope = componentScope;
10836
- if (config.layout) {
10837
- speedoMeter.config.layout = createLayoutFormat(config.layout);
10782
+ speedoMeter.scope = componentScope2;
10783
+ if (config2.layout) {
10784
+ speedoMeter.config.layout = createLayoutFormat(config2.layout);
10838
10785
  }
10839
- if (config.heading) {
10840
- speedoMeter.config.main.header = config.heading;
10786
+ if (config2.heading) {
10787
+ speedoMeter.config.main.header = config2.heading;
10841
10788
  }
10842
- if (config.segments) {
10843
- speedoMeter.config.main.segments = config.segments;
10789
+ if (config2.segments) {
10790
+ speedoMeter.config.main.segments = config2.segments;
10844
10791
  }
10845
- if (config.style) {
10846
- const styleObj = JSON.parse(config.style);
10792
+ if (config2.style) {
10793
+ const styleObj = JSON.parse(config2.style);
10847
10794
  if (styleObj == null ? void 0 : styleObj.style) {
10848
10795
  speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
10849
10796
  }
@@ -10851,98 +10798,95 @@ const buildSpeedoMeter = (config, componentScope) => {
10851
10798
  speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
10852
10799
  }
10853
10800
  }
10854
- if (config.width) {
10855
- speedoMeter.config.main.width = config.width;
10801
+ if (config2.width) {
10802
+ speedoMeter.config.main.width = config2.width;
10856
10803
  }
10857
- if (config.speedoCaption) {
10858
- speedoMeter.config.main.currentValueText = config.speedoCaption;
10804
+ if (config2.speedoCaption) {
10805
+ speedoMeter.config.main.currentValueText = config2.speedoCaption;
10859
10806
  }
10860
- if (config.data) {
10861
- speedoMeter.config.main.data = config.data;
10807
+ if (config2.data) {
10808
+ speedoMeter.config.main.data = config2.data;
10862
10809
  }
10863
- if (config.needleColor) {
10864
- speedoMeter.config.style.needleColor = config.needleColor;
10810
+ if (config2.needleColor) {
10811
+ speedoMeter.config.style.needleColor = config2.needleColor;
10865
10812
  }
10866
- if (config.segments) {
10867
- speedoMeter.config.style.segments = config.segments;
10813
+ if (config2.segments) {
10814
+ speedoMeter.config.style.segments = config2.segments;
10868
10815
  }
10869
- if (config.endColor) {
10870
- speedoMeter.config.style.endColor = config.endColor;
10816
+ if (config2.endColor) {
10817
+ speedoMeter.config.style.endColor = config2.endColor;
10871
10818
  }
10872
- if (config.startColor) {
10873
- speedoMeter.config.style.startColor = config.startColor;
10819
+ if (config2.startColor) {
10820
+ speedoMeter.config.style.startColor = config2.startColor;
10874
10821
  }
10875
- if (config.segmentColors) {
10876
- speedoMeter.config.style.segmentColors = config.segmentColors;
10822
+ if (config2.segmentColors) {
10823
+ speedoMeter.config.style.segmentColors = config2.segmentColors;
10877
10824
  }
10878
10825
  return speedoMeter;
10879
10826
  };
10880
- const buildPieGraph = (config, componentScope) => {
10827
+ const buildPieGraph = (config2, componentScope2) => {
10881
10828
  const pieGraph = _.cloneDeep(PieGraph);
10882
- if (config.layout) {
10883
- pieGraph.config.layout = createLayoutFormat(config.layout);
10829
+ if (config2.layout) {
10830
+ pieGraph.config.layout = createLayoutFormat(config2.layout);
10884
10831
  }
10885
- if (config.height) {
10886
- pieGraph.config.style = {
10887
- containerStyle: {
10888
- height: config.height
10889
- }
10890
- };
10832
+ if (config2.height) {
10833
+ pieGraph.config.style.containerStyle.height = config2.height;
10891
10834
  }
10892
- if (config.legendHide) {
10893
- pieGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
10835
+ if (config2.legendHide) {
10836
+ pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10894
10837
  }
10895
- pieGraph.scope = componentScope;
10896
- pieGraph.config.main.header = config.heading;
10897
- if (config.legendLabels) {
10898
- pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10838
+ pieGraph.scope = componentScope2;
10839
+ pieGraph.config.main.header = config2.heading;
10840
+ if (config2.legendLabels) {
10841
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10899
10842
  }
10900
- if (config.xAxisValue) {
10901
- pieGraph.config.main.xAxisValue = config.xAxisValue;
10843
+ if (config2.xAxisValue) {
10844
+ pieGraph.config.main.xAxisValue = config2.xAxisValue;
10902
10845
  }
10903
- if (config.pieArcColors) {
10904
- pieGraph.config.style = {
10905
- pieStyle: {
10906
- colorRange: flatObjectValueInArray(config.pieArcColors)
10907
- }
10908
- };
10846
+ if (config2.pieArcColors) {
10847
+ pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10909
10848
  }
10910
10849
  return pieGraph;
10911
10850
  };
10912
- const buildStackbarGraph = (config, componentScope) => {
10851
+ const buildStackbarGraph = (config2, componentScope2) => {
10852
+ var _a;
10913
10853
  const barGraph = _.cloneDeep(BarGraph);
10914
- if (config.layout) {
10915
- barGraph.config.layout = createLayoutFormat(config.layout);
10854
+ if (config2.layout) {
10855
+ barGraph.config.layout = createLayoutFormat(config2.layout);
10916
10856
  }
10917
- if (config.legendHide) {
10918
- barGraph.config.main.legendAvailable = config.legendHide;
10857
+ if (config2.legendHide) {
10858
+ barGraph.config.main.legendAvailable = config2.legendHide;
10859
+ barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10919
10860
  }
10920
- barGraph.config.main.type = config.graphType;
10921
- barGraph.config.main.header = config.heading;
10922
- if (config.barColor) {
10923
- barGraph.config.barStyle.color = config.barColor;
10861
+ if (config2.bottomAxisAngle) {
10862
+ barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10924
10863
  }
10925
- if (config.xAxisValue) {
10926
- barGraph.config.main.xAxisValue = config.xAxisValue;
10864
+ barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
10865
+ barGraph.config.main.header = config2.heading;
10866
+ if (config2.legendLabels) {
10867
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10927
10868
  }
10928
- if (config.height) {
10929
- barGraph.config.style.containerStyle.height = config.height;
10869
+ if (config2.pieArcColors) {
10870
+ barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10930
10871
  }
10931
- if (config.bottomLabel) {
10932
- barGraph.config.main.bottomLabel = config.bottomLabel;
10872
+ if (config2.xAxisValue) {
10873
+ barGraph.config.main.xAxisValue = config2.xAxisValue;
10933
10874
  }
10934
- if (config.leftLabel) {
10935
- barGraph.config.main.leftLabel = config.leftLabel;
10875
+ if (config2.height) {
10876
+ barGraph.config.style.containerStyle.height = config2.height;
10936
10877
  }
10937
- if (config.leftLabelMargin) {
10878
+ if (config2.leftMargin) {
10938
10879
  barGraph.config.style.labelStyle.margin = {
10939
- left: config.leftLabelMargin
10880
+ left: config2.leftMargin
10940
10881
  };
10941
10882
  }
10942
- if (config.leftLabelOffset) {
10943
- barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
10883
+ if (config2.bottomLabel) {
10884
+ barGraph.config.main.bottomLabel = config2.bottomLabel;
10944
10885
  }
10945
- barGraph.scope = componentScope;
10886
+ if (config2.leftLabel) {
10887
+ barGraph.config.main.leftLabel = config2.leftLabel;
10888
+ }
10889
+ barGraph.scope = componentScope2;
10946
10890
  return barGraph;
10947
10891
  };
10948
10892
  var RunnerBoyProgressBar = {
@@ -10952,15 +10896,15 @@ var RunnerBoyProgressBar = {
10952
10896
  widget: "RunnerBoyProgressBar"
10953
10897
  },
10954
10898
  config: {
10955
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10899
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
10956
10900
  main: {}
10957
10901
  }
10958
10902
  };
10959
- const RunnerBoyProgressbar = (config, componentScope) => {
10903
+ const RunnerBoyProgressbar = (config2, componentScope2) => {
10960
10904
  const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
10961
- RunnerBoy.scope = componentScope;
10962
- if (config.layout) {
10963
- RunnerBoy.config.layout = createLayoutFormat(config.layout);
10905
+ RunnerBoy.scope = componentScope2;
10906
+ if (config2.layout) {
10907
+ RunnerBoy.config.layout = createLayoutFormat(config2.layout);
10964
10908
  }
10965
10909
  return RunnerBoy;
10966
10910
  };
@@ -10975,19 +10919,19 @@ var Tabsection = {
10975
10919
  },
10976
10920
  elements: []
10977
10921
  };
10978
- const buildTabSection = (config, componentScope) => {
10922
+ const buildTabSection = (config2, componentScope2) => {
10979
10923
  const tab = _.cloneDeep(Tabsection);
10980
- tab.scope = componentScope;
10981
- if (config.lazyLoad) {
10982
- tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
10924
+ tab.scope = componentScope2;
10925
+ if (config2.lazyLoad) {
10926
+ tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
10983
10927
  }
10984
- if (config.orientation) {
10985
- tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
10928
+ if (config2.orientation) {
10929
+ tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
10986
10930
  }
10987
- if (config.sectionLabels) {
10988
- tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
10931
+ if (config2.sectionLabels) {
10932
+ tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
10989
10933
  }
10990
- tab.config.main.id = config.name;
10934
+ tab.config.main.id = config2.name;
10991
10935
  return tab;
10992
10936
  };
10993
10937
  var WrapperSection = {
@@ -11002,20 +10946,20 @@ var WrapperSection = {
11002
10946
  },
11003
10947
  elements: []
11004
10948
  };
11005
- const buildWrapperSection = (config, componentScope) => {
10949
+ const buildWrapperSection = (config2, componentScope2) => {
11006
10950
  const wrapper = _.cloneDeep(WrapperSection);
11007
- wrapper.scope = componentScope;
11008
- wrapper.config.main.label = config.label;
11009
- wrapper.config.main.divider = config.divider === "YES" ? true : false;
11010
- wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
11011
- if (config.defaultStyle) {
11012
- wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
10951
+ wrapper.scope = componentScope2;
10952
+ wrapper.config.main.label = config2.label;
10953
+ wrapper.config.main.divider = config2.divider === "YES" ? true : false;
10954
+ wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
10955
+ if (config2.defaultStyle) {
10956
+ wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11013
10957
  }
11014
- if (config.style) {
11015
- wrapper.config.style = JSON.parse(config.style);
10958
+ if (config2.style) {
10959
+ wrapper.config.style = JSON.parse(config2.style);
11016
10960
  }
11017
- if (config.layout) {
11018
- wrapper.config.layout = createLayoutFormat(config.layout);
10961
+ if (config2.layout) {
10962
+ wrapper.config.layout = createLayoutFormat(config2.layout);
11019
10963
  }
11020
10964
  return wrapper;
11021
10965
  };
@@ -11033,23 +10977,26 @@ var TextInputField = {
11033
10977
  style: {}
11034
10978
  }
11035
10979
  };
11036
- const buildTextField = (config, componentScope) => {
10980
+ const buildTextField = (config2, componentScope2) => {
11037
10981
  const inputField = _.cloneDeep(TextInputField);
11038
- inputField.config.main.label = config.label;
11039
- if (config.style) {
11040
- inputField.config.style = JSON.parse(config.style);
10982
+ inputField.config.main.label = config2.label;
10983
+ if (config2.style) {
10984
+ inputField.config.style = JSON.parse(config2.style);
11041
10985
  }
11042
- if (config.InputFormatingAndMasking) {
11043
- inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
10986
+ if (config2.multiline) {
10987
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11044
10988
  }
11045
- if (config.placeholder) {
11046
- inputField.config.main.placeholder = config.placeholder;
10989
+ if (config2.InputFormatingAndMasking) {
10990
+ inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
11047
10991
  }
11048
- if (config.layout) {
11049
- inputField.config.layout = createLayoutFormat(config.layout);
10992
+ if (config2.placeholder) {
10993
+ inputField.config.main.placeholder = config2.placeholder;
11050
10994
  }
11051
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11052
- inputField.scope = componentScope;
10995
+ if (config2.layout) {
10996
+ inputField.config.layout = createLayoutFormat(config2.layout);
10997
+ }
10998
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
10999
+ inputField.scope = componentScope2;
11053
11000
  return inputField;
11054
11001
  };
11055
11002
  var SelectInputField = {
@@ -11067,22 +11014,22 @@ var SelectInputField = {
11067
11014
  }
11068
11015
  }
11069
11016
  };
11070
- const buildSelect = (config, componentScope) => {
11017
+ const buildSelect = (config2, componentScope2) => {
11071
11018
  const selectInputField = _.cloneDeep(SelectInputField);
11072
- selectInputField.config.main.label = config.label;
11073
- if (config.value) {
11074
- selectInputField.config.main.options = config.value;
11019
+ selectInputField.config.main.label = config2.label;
11020
+ if (config2.value) {
11021
+ selectInputField.config.main.options = config2.value;
11075
11022
  }
11076
- if (config.freeSolo) {
11077
- selectInputField.config.main.freeSolo = config.freeSolo === "YES" ? true : false;
11023
+ if (config2.freeSolo) {
11024
+ selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
11078
11025
  }
11079
- if (config.lazyLoading) {
11080
- selectInputField.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11026
+ if (config2.lazyLoading) {
11027
+ selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11081
11028
  }
11082
- if (config.layout) {
11083
- selectInputField.config.layout = createLayoutFormat(config.layout);
11029
+ if (config2.layout) {
11030
+ selectInputField.config.layout = createLayoutFormat(config2.layout);
11084
11031
  }
11085
- selectInputField.scope = componentScope;
11032
+ selectInputField.scope = componentScope2;
11086
11033
  return selectInputField;
11087
11034
  };
11088
11035
  var Button = {
@@ -11096,7 +11043,6 @@ var Button = {
11096
11043
  main: {
11097
11044
  name: "Compare",
11098
11045
  variant: "contained",
11099
- color: "info",
11100
11046
  type: "text",
11101
11047
  startIcon: "",
11102
11048
  styleDefault: false,
@@ -11107,37 +11053,37 @@ var Button = {
11107
11053
  style: {}
11108
11054
  }
11109
11055
  };
11110
- const buildButton = (config, componentScope) => {
11056
+ const buildButton = (config2, componentScope2) => {
11111
11057
  const button = _.cloneDeep(Button);
11112
- if (config.buttonType) {
11113
- button.options.widget = config.buttonType === "IconButton" ? "IconButton" : "Button";
11114
- config.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config.iconName : button.config.main.icon = config.iconName;
11058
+ if (config2.buttonType) {
11059
+ button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
11060
+ config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11115
11061
  }
11116
- if (config.layout) {
11117
- button.config.layout = createLayoutFormat(config.layout);
11062
+ if (config2.layout) {
11063
+ button.config.layout = createLayoutFormat(config2.layout);
11118
11064
  }
11119
- if (config.tooltipMessage) {
11120
- button.config.main.tooltipMessage = config.tooltipMessage;
11065
+ if (config2.tooltipMessage) {
11066
+ button.config.main.tooltipMessage = config2.tooltipMessage;
11121
11067
  }
11122
- if (config.defaultStyle) {
11123
- if (config.buttonType === "IconButton") {
11124
- button.config.main.styleDefault = config.defaultStyle === "true" ? true : false;
11068
+ if (config2.defaultStyle) {
11069
+ if (config2.buttonType === "IconButton") {
11070
+ button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
11125
11071
  } else {
11126
- button.config.main.enableDefaultStyle = config.defaultStyle === "true" ? false : true;
11072
+ button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
11127
11073
  }
11128
11074
  }
11129
- button.scope = componentScope;
11130
- if (config.style) {
11131
- button.config.style = JSON.parse(config.style);
11075
+ button.scope = componentScope2;
11076
+ if (config2.style) {
11077
+ button.config.style = JSON.parse(config2.style);
11132
11078
  }
11133
- if (config.size) {
11134
- button.config.main.size = config.size;
11079
+ if (config2.size) {
11080
+ button.config.main.size = config2.size;
11135
11081
  }
11136
- if (config.color) {
11137
- button.config.main.color = config.color;
11082
+ if (config2.color) {
11083
+ button.config.main.color = config2.color;
11138
11084
  }
11139
- if (config.label) {
11140
- button.config.main.name = config.label;
11085
+ if (config2.label) {
11086
+ button.config.main.name = config2.label;
11141
11087
  }
11142
11088
  return button;
11143
11089
  };
@@ -11161,71 +11107,71 @@ var Table = {
11161
11107
  }
11162
11108
  }
11163
11109
  };
11164
- const buildTable = (config, componentScope) => {
11110
+ const buildTable = (config2, componentScope2) => {
11165
11111
  const table = _.cloneDeep(Table);
11166
- table.scope = componentScope;
11167
- if (config.style) {
11168
- table.config.style = JSON.parse(config.style);
11112
+ table.scope = componentScope2;
11113
+ if (config2.style) {
11114
+ table.config.style = JSON.parse(config2.style);
11169
11115
  }
11170
- if (config.lazyLoading) {
11171
- table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11116
+ if (config2.lazyLoading) {
11117
+ table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11172
11118
  }
11173
- if (config.enableRowMovement) {
11174
- table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
11119
+ if (config2.enableRowMovement) {
11120
+ table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11175
11121
  }
11176
- if (config.enableExpanding) {
11177
- table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
11122
+ if (config2.enableExpanding) {
11123
+ table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
11178
11124
  }
11179
- if (config.enableExpandAll) {
11180
- table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
11125
+ if (config2.enableExpandAll) {
11126
+ table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
11181
11127
  }
11182
- if (config.paginateExpandedRows) {
11183
- table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
11128
+ if (config2.paginateExpandedRows) {
11129
+ table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11184
11130
  }
11185
- if (config.treeStructure) {
11186
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
11131
+ if (config2.treeStructure) {
11132
+ table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11187
11133
  }
11188
- if (config.SelectionAvailable) {
11189
- table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
11134
+ if (config2.SelectionAvailable) {
11135
+ table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11190
11136
  }
11191
- if (config.ColumnResizingAvailable) {
11192
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
11137
+ if (config2.ColumnResizingAvailable) {
11138
+ table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
11193
11139
  }
11194
- if (config.DragAvailable) {
11195
- table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
11140
+ if (config2.DragAvailable) {
11141
+ table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
11196
11142
  }
11197
- if (config.downloadAllData) {
11198
- table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
11143
+ if (config2.downloadAllData) {
11144
+ table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
11199
11145
  }
11200
- if (config.disableGlobalSearch) {
11201
- table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
11146
+ if (config2.disableGlobalSearch) {
11147
+ table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
11202
11148
  }
11203
- if (config.disableColumnFilter) {
11204
- table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
11149
+ if (config2.disableColumnFilter) {
11150
+ table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
11205
11151
  }
11206
- if (config.disableSorting) {
11207
- table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
11152
+ if (config2.disableSorting) {
11153
+ table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
11208
11154
  }
11209
- if (config.disableEditColumn) {
11210
- table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
11155
+ if (config2.disableEditColumn) {
11156
+ table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
11211
11157
  }
11212
- if (config.disableFullScreenToggle) {
11213
- table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
11158
+ if (config2.disableFullScreenToggle) {
11159
+ table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
11214
11160
  }
11215
- if (config.disableDensityToggle) {
11216
- table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
11161
+ if (config2.disableDensityToggle) {
11162
+ table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
11217
11163
  }
11218
- if (config.disableDownloadFile) {
11219
- table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
11164
+ if (config2.disableDownloadFile) {
11165
+ table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
11220
11166
  }
11221
- if (config.disablePagination) {
11222
- table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
11167
+ if (config2.disablePagination) {
11168
+ table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
11223
11169
  }
11224
- if (config.Table_Download_Keys_Name) {
11225
- table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
11170
+ if (config2.Table_Download_Keys_Name) {
11171
+ table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
11226
11172
  }
11227
- if (config.selectKey) {
11228
- table.config.main.selectKey = config.selectKey;
11173
+ if (config2.selectKey) {
11174
+ table.config.main.selectKey = config2.selectKey;
11229
11175
  }
11230
11176
  return table;
11231
11177
  };
@@ -11241,15 +11187,15 @@ const Box = {
11241
11187
  style: {}
11242
11188
  }
11243
11189
  };
11244
- const buildLabel = (config, componentScope) => {
11190
+ const buildLabel = (config2, componentScope2) => {
11245
11191
  const box = _.cloneDeep(Box);
11246
- box.scope = componentScope;
11247
- box.config.main.heading = config.label;
11248
- if (config.layout) {
11249
- box.config.layout = createLayoutFormat(config.layout);
11192
+ box.scope = componentScope2;
11193
+ box.config.main.heading = config2.label;
11194
+ if (config2.layout) {
11195
+ box.config.layout = createLayoutFormat(config2.layout);
11250
11196
  }
11251
- if (config.style) {
11252
- box.config.style = JSON.parse(config.style);
11197
+ if (config2.style) {
11198
+ box.config.style = JSON.parse(config2.style);
11253
11199
  }
11254
11200
  return box;
11255
11201
  };
@@ -11289,39 +11235,39 @@ const downloadFile = {
11289
11235
  "widget": "DownloadFile"
11290
11236
  }
11291
11237
  };
11292
- const buildUploadFile = (config, componentScope) => {
11238
+ const buildUploadFile = (config2, componentScope2) => {
11293
11239
  const UploadFile = _.cloneDeep(uploadFile);
11294
- UploadFile.scope = componentScope;
11295
- UploadFile.config.main.label = config.label;
11296
- if (config.layout) {
11297
- UploadFile.config.layout = createLayoutFormat(config.layout);
11240
+ UploadFile.scope = componentScope2;
11241
+ UploadFile.config.main.label = config2.label;
11242
+ if (config2.layout) {
11243
+ UploadFile.config.layout = createLayoutFormat(config2.layout);
11298
11244
  }
11299
- if (config.style) {
11300
- UploadFile.config.style = config.style;
11245
+ if (config2.style) {
11246
+ UploadFile.config.style = config2.style;
11301
11247
  }
11302
- if (config.required) {
11248
+ if (config2.required) {
11303
11249
  UploadFile.config.main.required = true;
11304
11250
  }
11305
- UploadFile.config.main.errorMessage = config.errorMessage;
11251
+ UploadFile.config.main.errorMessage = config2.errorMessage;
11306
11252
  return UploadFile;
11307
11253
  };
11308
- const buildDownloadFile = (config, componentScope) => {
11254
+ const buildDownloadFile = (config2, componentScope2) => {
11309
11255
  const DownloadFile = _.cloneDeep(downloadFile);
11310
- DownloadFile.scope = componentScope;
11311
- if (config.layout) {
11312
- DownloadFile.config.layout = config.layout;
11256
+ DownloadFile.scope = componentScope2;
11257
+ if (config2.layout) {
11258
+ DownloadFile.config.layout = config2.layout;
11313
11259
  }
11314
- if (config.style) {
11315
- DownloadFile.config.style = config.style;
11260
+ if (config2.style) {
11261
+ DownloadFile.config.style = config2.style;
11316
11262
  }
11317
- if (config.required) {
11263
+ if (config2.required) {
11318
11264
  DownloadFile.config.main.required = true;
11319
11265
  }
11320
- if (config.layout) {
11321
- DownloadFile.config.layout = createLayoutFormat(config.layout);
11266
+ if (config2.layout) {
11267
+ DownloadFile.config.layout = createLayoutFormat(config2.layout);
11322
11268
  }
11323
- if (config.errorMessage) {
11324
- DownloadFile.config.main.errorMessage = config.errorMessage;
11269
+ if (config2.errorMessage) {
11270
+ DownloadFile.config.main.errorMessage = config2.errorMessage;
11325
11271
  }
11326
11272
  return DownloadFile;
11327
11273
  };
@@ -11330,15 +11276,23 @@ function Card(theme) {
11330
11276
  type: "WrapperLayout",
11331
11277
  config: {
11332
11278
  main: {},
11333
- wrapperStyle: {},
11279
+ wrapperStyle: {
11280
+ position: "relative",
11281
+ top: "50%",
11282
+ transform: "translateY(-50%)"
11283
+ },
11334
11284
  componentsBoxStyle: {
11285
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11335
11286
  flexDirection: "row",
11336
11287
  flexWrap: "nowrap",
11337
- width: "100%",
11288
+ width: "100% !important",
11338
11289
  background: "transparent",
11339
- border: `1.5px solid ${theme.palette.primary.main}`,
11340
- borderRadius: "20px",
11341
- padding: "0px 20px 0px 20px",
11290
+ border: `1.5px solid ${theme.palette.primary.light}`,
11291
+ borderRadius: "8px",
11292
+ padding: "0px 4px",
11293
+ height: "100%",
11294
+ alignItems: "center",
11295
+ marginLeft: "0px",
11342
11296
  "&: hover": {
11343
11297
  background: `${theme.palette.primary.main}`,
11344
11298
  border: `1.5px solid black`,
@@ -11364,7 +11318,6 @@ function Card(theme) {
11364
11318
  gap: 0
11365
11319
  },
11366
11320
  wrapperStyle: {
11367
- marginTop: "4px",
11368
11321
  background: "transparent"
11369
11322
  },
11370
11323
  componentsBoxStyle: {
@@ -11379,27 +11332,78 @@ function Card(theme) {
11379
11332
  },
11380
11333
  elements: [
11381
11334
  {
11382
- type: "Control",
11383
- scope: "#/properties/programType",
11335
+ type: "WrapperLayout",
11384
11336
  config: {
11385
11337
  main: {
11386
- heading: "$5000.00"
11338
+ columnSpacing: 0,
11339
+ gap: 0
11387
11340
  },
11388
- style: {
11389
- color: "black",
11390
- display: "flex",
11391
- fontSize: { xs: "24px", md: "28px" },
11392
- fontWeight: "bold",
11393
- background: "inherit",
11394
- justifyContent: "flex-start",
11395
- width: "calc(100%+8px)",
11396
- margin: "-8px"
11341
+ wrapperStyle: {
11342
+ background: "transparent"
11343
+ },
11344
+ componentsBoxStyle: {
11345
+ flexDirection: "row",
11346
+ flexWrap: "nowrap",
11347
+ width: "100%",
11348
+ height: "0",
11349
+ background: "transparent",
11350
+ borderRadius: "0px",
11351
+ marginLeft: "-10px",
11352
+ marginTop: "-8px",
11353
+ justifyContent: "start",
11354
+ position: "relative"
11397
11355
  },
11398
11356
  layout: 12
11399
11357
  },
11400
- options: {
11401
- widget: "Box"
11402
- }
11358
+ elements: [
11359
+ {
11360
+ type: "Control",
11361
+ scope: "#/properties/programType",
11362
+ config: {
11363
+ main: {
11364
+ heading: ""
11365
+ },
11366
+ style: {
11367
+ color: "black",
11368
+ display: "flex",
11369
+ fontSize: { xs: "24px", md: "28px" },
11370
+ fontWeight: "bold",
11371
+ background: "inherit",
11372
+ justifyContent: "flex-start",
11373
+ width: "auto",
11374
+ margin: "-8px",
11375
+ height: 0
11376
+ }
11377
+ },
11378
+ options: {
11379
+ widget: "Box"
11380
+ }
11381
+ },
11382
+ {
11383
+ type: "Control",
11384
+ scope: "#/properties/programType",
11385
+ config: {
11386
+ main: {
11387
+ heading: "5000.00"
11388
+ },
11389
+ style: {
11390
+ color: "black",
11391
+ display: "flex",
11392
+ fontSize: { xs: "24px", md: "28px" },
11393
+ fontWeight: "bold",
11394
+ background: "inherit",
11395
+ justifyContent: "flex-start",
11396
+ width: "auto",
11397
+ margin: "-8px",
11398
+ position: "absolute",
11399
+ left: "8px"
11400
+ }
11401
+ },
11402
+ options: {
11403
+ widget: "Box"
11404
+ }
11405
+ }
11406
+ ]
11403
11407
  },
11404
11408
  {
11405
11409
  type: "Control",
@@ -11414,8 +11418,9 @@ function Card(theme) {
11414
11418
  justifyContent: "center",
11415
11419
  textWrap: "wrap",
11416
11420
  background: "inherit",
11417
- width: "calc(100%+8pc)",
11421
+ width: "calc(100%+8px)",
11418
11422
  margin: "-8px",
11423
+ marginTop: "12px",
11419
11424
  lineHeight: "1"
11420
11425
  },
11421
11426
  layout: 12
@@ -11439,13 +11444,13 @@ function Card(theme) {
11439
11444
  containerStyle: {
11440
11445
  height: "100%",
11441
11446
  display: "flex",
11442
- justifyContent: "center"
11447
+ justifyContent: "end"
11443
11448
  },
11444
11449
  imageStyle: {
11445
- height: "100%",
11446
11450
  fontSize: "none",
11447
11451
  padding: "4px",
11448
- marginLeft: "8px"
11452
+ margin: "0px 0px 0px 8px",
11453
+ height: "64px"
11449
11454
  }
11450
11455
  },
11451
11456
  layout: 4
@@ -11458,19 +11463,23 @@ function Card(theme) {
11458
11463
  };
11459
11464
  return uiSchema;
11460
11465
  }
11461
- const buildCard = (config, componentScope, store2) => {
11462
- const card = _.cloneDeep(Card(store2.theme.myTheme));
11466
+ const buildCard = (config, componentScope, store) => {
11467
+ const card = _.cloneDeep(Card(store.theme.myTheme));
11463
11468
  if (config.style) {
11464
- card.config.style = JSON.parse(config.style);
11469
+ card.config.wrapperStyle = JSON.parse(config.style);
11465
11470
  }
11466
- card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
11471
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11467
11472
  card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11468
11473
  card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
11469
11474
  if (config.layout) {
11470
11475
  card.config.layout = createLayoutFormat(config.layout);
11471
11476
  }
11477
+ if (config == null ? void 0 : config.titleIcon) {
11478
+ card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
11479
+ card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11480
+ }
11472
11481
  if (config.label) {
11473
- card.elements[0].elements[0].elements[0].config.main.heading = config.label;
11482
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11474
11483
  }
11475
11484
  if (config.url) {
11476
11485
  card.elements[1].config.main.url = config.url;
@@ -11508,23 +11517,23 @@ const DateTime = {
11508
11517
  }
11509
11518
  }
11510
11519
  };
11511
- const buildDate = (config, componentScope) => {
11520
+ const buildDate = (config2, componentScope2) => {
11512
11521
  const dateInputField = _.cloneDeep(DateInputField);
11513
- dateInputField.config.main.label = config.label;
11514
- dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11515
- dateInputField.scope = componentScope;
11516
- if (config.layout) {
11517
- dateInputField.config.layout = createLayoutFormat(config.layout);
11522
+ dateInputField.config.main.label = config2.label;
11523
+ dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11524
+ dateInputField.scope = componentScope2;
11525
+ if (config2.layout) {
11526
+ dateInputField.config.layout = createLayoutFormat(config2.layout);
11518
11527
  }
11519
11528
  return dateInputField;
11520
11529
  };
11521
- const buildDateTime = (config, componentScope) => {
11530
+ const buildDateTime = (config2, componentScope2) => {
11522
11531
  const dateTimeInputField = _.cloneDeep(DateTime);
11523
- dateTimeInputField.config.main.label = config.label;
11524
- dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11525
- dateTimeInputField.scope = componentScope;
11526
- if (config.layout) {
11527
- dateTimeInputField.config.layout = createLayoutFormat(config.layout);
11532
+ dateTimeInputField.config.main.label = config2.label;
11533
+ dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11534
+ dateTimeInputField.scope = componentScope2;
11535
+ if (config2.layout) {
11536
+ dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11528
11537
  }
11529
11538
  return dateTimeInputField;
11530
11539
  };
@@ -11535,27 +11544,21 @@ var RankCard = {
11535
11544
  widget: "RankCard"
11536
11545
  },
11537
11546
  config: {
11538
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
11547
+ layout: { xs: 12, sm: 6, md: 6, lg: 6 },
11539
11548
  main: {}
11540
11549
  }
11541
11550
  };
11542
- const buildRankCard = (config, componentScope) => {
11551
+ const buildRankCard = (config2, componentScope2) => {
11543
11552
  const rankCard = _.cloneDeep(RankCard);
11544
- rankCard.scope = componentScope;
11545
- if (config.image) {
11546
- rankCard.config.main.url = config.image;
11547
- }
11548
- if (config.title) {
11549
- rankCard.config.main.title = config.title;
11553
+ rankCard.scope = componentScope2;
11554
+ if (config2.rank) {
11555
+ rankCard.config.main.rank = `${config2.rank}`;
11550
11556
  }
11551
- if (config.description) {
11552
- rankCard.config.main.description = config.description;
11557
+ if (config2.height) {
11558
+ rankCard.config.main.height = `${config2.height}px`;
11553
11559
  }
11554
- if (config.rank) {
11555
- rankCard.config.main.rank = `#${config.rank}`;
11556
- }
11557
- if (config.layout) {
11558
- rankCard.config.layout = createLayoutFormat(config.layout);
11560
+ if (config2.layout) {
11561
+ rankCard.config.layout = createLayoutFormat(config2.layout);
11559
11562
  }
11560
11563
  return rankCard;
11561
11564
  };
@@ -11570,13 +11573,13 @@ var RollAndDice = {
11570
11573
  main: {}
11571
11574
  }
11572
11575
  };
11573
- const buildRollAndDice = (config, componentScope) => {
11576
+ const buildRollAndDice = (config2, componentScope2) => {
11574
11577
  const rank = _.cloneDeep(RollAndDice);
11575
- if (config.name) {
11576
- rank.scope = componentScope;
11578
+ if (config2.name) {
11579
+ rank.scope = componentScope2;
11577
11580
  }
11578
- if (config.layout) {
11579
- rank.config.layout = createLayoutFormat(config.layout);
11581
+ if (config2.layout) {
11582
+ rank.config.layout = createLayoutFormat(config2.layout);
11580
11583
  }
11581
11584
  return rank;
11582
11585
  };
@@ -11590,34 +11593,21 @@ var Timer = {
11590
11593
  layout: {
11591
11594
  xs: 12,
11592
11595
  sm: 12,
11593
- md: 12,
11594
- lg: 12
11596
+ md: 6,
11597
+ lg: 6
11595
11598
  },
11596
11599
  main: {},
11597
- style: {
11598
- digitContainer: {
11599
- borderRadius: "4px",
11600
- textShawdow: "none",
11601
- width: "22%"
11602
- },
11603
- container: {
11604
- backgroundColor: "#FFFFFF",
11605
- borderRadius: "18px"
11606
- },
11607
- containerLabelColor: {
11608
- color: "red"
11609
- }
11610
- }
11600
+ style: {}
11611
11601
  }
11612
11602
  };
11613
- const buildTimer = (config, componentScope) => {
11603
+ const buildTimer = (config2, componentScope2) => {
11614
11604
  const timer = _.cloneDeep(Timer);
11615
- timer.scope = componentScope;
11616
- if (config.label) {
11617
- timer.config.main.label = config.label;
11605
+ timer.scope = componentScope2;
11606
+ if (config2.label) {
11607
+ timer.config.main.label = config2.label;
11618
11608
  }
11619
- if (config.layout) {
11620
- timer.config.layout = createLayoutFormat(config.layout);
11609
+ if (config2.layout) {
11610
+ timer.config.layout = createLayoutFormat(config2.layout);
11621
11611
  }
11622
11612
  return timer;
11623
11613
  };
@@ -11638,30 +11628,30 @@ var MultipleSelect = {
11638
11628
  }
11639
11629
  }
11640
11630
  };
11641
- const buildMultiSelect = (config, componentScope) => {
11631
+ const buildMultiSelect = (config2, componentScope2) => {
11642
11632
  const multipleSelect = _.cloneDeep(MultipleSelect);
11643
- multipleSelect.scope = componentScope;
11644
- if (config.label) {
11645
- multipleSelect.config.main.label = config.label;
11633
+ multipleSelect.scope = componentScope2;
11634
+ if (config2.label) {
11635
+ multipleSelect.config.main.label = config2.label;
11646
11636
  }
11647
- if (config.layout) {
11648
- multipleSelect.config.layout = createLayoutFormat(config.layout);
11637
+ if (config2.layout) {
11638
+ multipleSelect.config.layout = createLayoutFormat(config2.layout);
11649
11639
  }
11650
- if (config.value) {
11651
- multipleSelect.config.main.options = config.value;
11640
+ if (config2.value) {
11641
+ multipleSelect.config.main.options = config2.value;
11652
11642
  }
11653
- if (config.lazyLoading) {
11654
- multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11643
+ if (config2.lazyLoading) {
11644
+ multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11655
11645
  }
11656
11646
  return multipleSelect;
11657
11647
  };
11658
- const buildBasicUiSchema = (config) => {
11648
+ const buildBasicUiSchema = (config2) => {
11659
11649
  return {
11660
11650
  "type": "HorizontalLayout",
11661
- pageName: config.name,
11662
- name: config.name,
11663
- accessorKey: config.name,
11664
- heading: config.label || config.name,
11651
+ pageName: config2.name,
11652
+ name: config2.name,
11653
+ accessorKey: config2.name,
11654
+ heading: config2.label || config2.name,
11665
11655
  "elements": []
11666
11656
  };
11667
11657
  };
@@ -11692,25 +11682,25 @@ const TextArea = {
11692
11682
  }
11693
11683
  }
11694
11684
  };
11695
- const buildTextArea = (config, componentScope) => {
11685
+ const buildTextArea = (config2, componentScope2) => {
11696
11686
  const textArea = _.cloneDeep(TextArea);
11697
- textArea.config.main.heading = config.label;
11698
- if (config.layout) {
11699
- textArea.config.layout = createLayoutFormat(config.layout);
11687
+ textArea.config.main.heading = config2.label;
11688
+ if (config2.layout) {
11689
+ textArea.config.layout = createLayoutFormat(config2.layout);
11700
11690
  }
11701
- if (config.style) {
11702
- textArea.config.style = JSON.parse(config.style);
11691
+ if (config2.style) {
11692
+ textArea.config.style = JSON.parse(config2.style);
11703
11693
  }
11704
- if (config.placeholder) {
11705
- textArea.config.main.placeholder = config.placeholder;
11694
+ if (config2.placeholder) {
11695
+ textArea.config.main.placeholder = config2.placeholder;
11706
11696
  }
11707
- if (config.enableCodeEditor) {
11708
- textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
11697
+ if (config2.enableCodeEditor) {
11698
+ textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
11709
11699
  }
11710
- if (config.codeEditorLanguage) {
11711
- textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
11700
+ if (config2.codeEditorLanguage) {
11701
+ textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
11712
11702
  }
11713
- textArea.scope = componentScope;
11703
+ textArea.scope = componentScope2;
11714
11704
  return textArea;
11715
11705
  };
11716
11706
  var cardSlider = {
@@ -11725,13 +11715,13 @@ var cardSlider = {
11725
11715
  main: {}
11726
11716
  }
11727
11717
  };
11728
- const buildSlider = (config, componentScope) => {
11718
+ const buildSlider = (config2, componentScope2) => {
11729
11719
  const slider = _.cloneDeep(cardSlider);
11730
- if (config.name) {
11731
- slider.scope = componentScope;
11720
+ if (config2.name) {
11721
+ slider.scope = componentScope2;
11732
11722
  }
11733
- if (config.layout) {
11734
- slider.config.layout = createLayoutFormat(config.layout);
11723
+ if (config2.layout) {
11724
+ slider.config.layout = createLayoutFormat(config2.layout);
11735
11725
  }
11736
11726
  return slider;
11737
11727
  };
@@ -11748,57 +11738,57 @@ const Checkbox = {
11748
11738
  }
11749
11739
  }
11750
11740
  };
11751
- const buildCheckbox = (config, componentScope) => {
11741
+ const buildCheckbox = (config2, componentScope2) => {
11752
11742
  const check = _.cloneDeep(Checkbox);
11753
- check.scope = componentScope;
11754
- check.config.main.label = config.label;
11755
- if (config.layout) {
11756
- check.config.layout = createLayoutFormat(config.layout);
11743
+ check.scope = componentScope2;
11744
+ check.config.main.label = config2.label;
11745
+ if (config2.layout) {
11746
+ check.config.layout = createLayoutFormat(config2.layout);
11757
11747
  }
11758
- if (config.style) {
11759
- check.config.style = JSON.parse(config.style);
11748
+ if (config2.style) {
11749
+ check.config.style = JSON.parse(config2.style);
11760
11750
  }
11761
11751
  return check;
11762
11752
  };
11763
- const buildLineGraph = (config, componentScope) => {
11753
+ const buildLineGraph = (config2, componentScope2) => {
11764
11754
  const lineGraph = _.cloneDeep(LineGraph);
11765
- if (config.layout) {
11766
- lineGraph.config.layout = createLayoutFormat(config.layout);
11755
+ if (config2.layout) {
11756
+ lineGraph.config.layout = createLayoutFormat(config2.layout);
11767
11757
  }
11768
- lineGraph.config.main.header = config.heading;
11769
- if (config.height) {
11770
- lineGraph.config.style.containerStyle.height = config.height;
11758
+ lineGraph.config.main.header = config2.heading;
11759
+ if (config2.height) {
11760
+ lineGraph.config.style.containerStyle.height = config2.height;
11771
11761
  }
11772
- if (config.bottomLabel) {
11773
- lineGraph.config.main.bottomLabel = config.bottomLabel;
11762
+ if (config2.leftMargin) {
11763
+ lineGraph.config.style.labelStyle.margin = {
11764
+ left: config2.leftMargin
11765
+ };
11774
11766
  }
11775
- if (config.yAxisValue) {
11776
- lineGraph.config.main.yAxisValue = config.yAxisValue;
11767
+ if (config2.bottomLabel) {
11768
+ lineGraph.config.main.bottomLabel = config2.bottomLabel;
11777
11769
  }
11778
- if (config.xAxisValue) {
11779
- lineGraph.config.main.xAxisValue = config.xAxisValue;
11770
+ if (config2.yAxisValue) {
11771
+ lineGraph.config.main.yAxisValue = config2.yAxisValue;
11780
11772
  }
11781
- if (config.leftLabel) {
11782
- lineGraph.config.main.leftLabel = config.leftLabel;
11773
+ if (config2.xAxisValue) {
11774
+ lineGraph.config.main.xAxisValue = config2.xAxisValue;
11783
11775
  }
11784
- if (config.legendHide) {
11785
- lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
11776
+ if (config2.leftLabel) {
11777
+ lineGraph.config.main.leftLabel = config2.leftLabel;
11786
11778
  }
11787
- if (config.legendLabels) {
11788
- lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
11779
+ if (config2.legendHide) {
11780
+ lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11789
11781
  }
11790
- if (config.pieArcColors) {
11791
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11782
+ if (config2.bottomAxisAngle) {
11783
+ lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11792
11784
  }
11793
- if (config.leftLabelMargin) {
11794
- lineGraph.config.style.labelStyle.margin = {
11795
- left: config.leftLabelMargin
11796
- };
11785
+ if (config2.legendLabels) {
11786
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11797
11787
  }
11798
- if (config.leftLabelOffset) {
11799
- lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
11788
+ if (config2.pieArcColors) {
11789
+ lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11800
11790
  }
11801
- lineGraph.scope = componentScope;
11791
+ lineGraph.scope = componentScope2;
11802
11792
  return lineGraph;
11803
11793
  };
11804
11794
  const RadioUiSchema = {
@@ -11816,25 +11806,25 @@ const RadioUiSchema = {
11816
11806
  }
11817
11807
  }
11818
11808
  };
11819
- const buildRadio = (config, componentScope) => {
11809
+ const buildRadio = (config2, componentScope2) => {
11820
11810
  const Radio = _.cloneDeep(RadioUiSchema);
11821
- Radio.scope = componentScope;
11822
- Radio.config.main.label = config.label;
11823
- if (config.layout) {
11824
- Radio.config.layout = createLayoutFormat(config.layout);
11811
+ Radio.scope = componentScope2;
11812
+ Radio.config.main.label = config2.label;
11813
+ if (config2.layout) {
11814
+ Radio.config.layout = createLayoutFormat(config2.layout);
11825
11815
  }
11826
- if (config.sectionLabels) {
11827
- Radio.config.main.options = config.sectionLabels.map((e) => e.label || e.Options);
11816
+ if (config2.sectionLabels) {
11817
+ Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
11828
11818
  }
11829
- if (config.style) {
11830
- Radio.config.style = JSON.parse(config.style);
11819
+ if (config2.style) {
11820
+ Radio.config.style = JSON.parse(config2.style);
11831
11821
  }
11832
11822
  return Radio;
11833
11823
  };
11834
- const buildEmptyBox = (config, componentScope) => {
11824
+ const buildEmptyBox = (config2, componentScope2) => {
11835
11825
  const EmptyBox = _.cloneDeep(emptyBox);
11836
- if (config.layout) {
11837
- EmptyBox.config.layout = createLayoutFormat(config.layout);
11826
+ if (config2.layout) {
11827
+ EmptyBox.config.layout = createLayoutFormat(config2.layout);
11838
11828
  }
11839
11829
  return EmptyBox;
11840
11830
  };
@@ -11849,9 +11839,9 @@ const ArrayUiSchema = {
11849
11839
  }
11850
11840
  }
11851
11841
  };
11852
- const buildArray = (config, componentScope) => {
11842
+ const buildArray = (config2, componentScope2) => {
11853
11843
  const array = _.cloneDeep(ArrayUiSchema);
11854
- array.scope = componentScope;
11844
+ array.scope = componentScope2;
11855
11845
  return array;
11856
11846
  };
11857
11847
  const TextField = {
@@ -11869,17 +11859,17 @@ const TextField = {
11869
11859
  }
11870
11860
  }
11871
11861
  };
11872
- const buildAdhaarField = (config, componentScope) => {
11862
+ const buildAdhaarField = (config2, componentScope2) => {
11873
11863
  const inputField = _.cloneDeep(TextField);
11874
- inputField.config.main.label = config.label;
11875
- if (config.style) {
11876
- inputField.config.style = JSON.parse(config.style);
11864
+ inputField.config.main.label = config2.label;
11865
+ if (config2.style) {
11866
+ inputField.config.style = JSON.parse(config2.style);
11877
11867
  }
11878
- if (config.layout) {
11879
- inputField.config.layout = createLayoutFormat(config.layout);
11868
+ if (config2.layout) {
11869
+ inputField.config.layout = createLayoutFormat(config2.layout);
11880
11870
  }
11881
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11882
- inputField.scope = componentScope;
11871
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11872
+ inputField.scope = componentScope2;
11883
11873
  return inputField;
11884
11874
  };
11885
11875
  const PanField = {
@@ -11897,17 +11887,17 @@ const PanField = {
11897
11887
  }
11898
11888
  }
11899
11889
  };
11900
- const buildPanField = (config, componentScope) => {
11890
+ const buildPanField = (config2, componentScope2) => {
11901
11891
  const inputField = _.cloneDeep(PanField);
11902
- inputField.config.main.label = config.label;
11903
- if (config.style) {
11904
- inputField.config.style = JSON.parse(config.style);
11892
+ inputField.config.main.label = config2.label;
11893
+ if (config2.style) {
11894
+ inputField.config.style = JSON.parse(config2.style);
11905
11895
  }
11906
- if (config.layout) {
11907
- inputField.config.layout = createLayoutFormat(config.layout);
11896
+ if (config2.layout) {
11897
+ inputField.config.layout = createLayoutFormat(config2.layout);
11908
11898
  }
11909
- inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11910
- inputField.scope = componentScope;
11899
+ inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11900
+ inputField.scope = componentScope2;
11911
11901
  return inputField;
11912
11902
  };
11913
11903
  const FileInput = {
@@ -11929,15 +11919,15 @@ const FileInput = {
11929
11919
  }
11930
11920
  }
11931
11921
  };
11932
- const buildFileInput = (config, componentScope) => {
11922
+ const buildFileInput = (config2, componentScope2) => {
11933
11923
  const box = _.cloneDeep(FileInput);
11934
- box.scope = componentScope;
11935
- box.config.main.label = config.label;
11936
- if (config.layout) {
11937
- box.config.layout = createLayoutFormat(config.layout);
11924
+ box.scope = componentScope2;
11925
+ box.config.main.label = config2.label;
11926
+ if (config2.layout) {
11927
+ box.config.layout = createLayoutFormat(config2.layout);
11938
11928
  }
11939
- if (config.style) {
11940
- box.config.style = JSON.parse(config.style);
11929
+ if (config2.style) {
11930
+ box.config.style = JSON.parse(config2.style);
11941
11931
  }
11942
11932
  return box;
11943
11933
  };
@@ -11957,26 +11947,26 @@ const Stepper = {
11957
11947
  },
11958
11948
  "elements": []
11959
11949
  };
11960
- const buildStepper = (config, componentScope) => {
11950
+ const buildStepper = (config2, componentScope2) => {
11961
11951
  const stepper = _.cloneDeep(Stepper);
11962
- stepper.scope = componentScope;
11963
- stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
11964
- if (config.defaultButtonAvailable) {
11965
- stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
11966
- }
11967
- stepper.config.main.resetText = config.resetText || "ResetData";
11968
- stepper.config.main.completeText = config.completeText || "Complete Text";
11969
- stepper.config.main.orientation = config.orientation || "horizontal";
11970
- if (config.sectionLabels) {
11971
- stepper.config.main.steps = config.sectionLabels.map((e, i) => {
11952
+ stepper.scope = componentScope2;
11953
+ stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
11954
+ if (config2.defaultButtonAvailable) {
11955
+ stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
11956
+ }
11957
+ stepper.config.main.resetText = config2.resetText || "ResetData";
11958
+ stepper.config.main.completeText = config2.completeText || "Complete Text";
11959
+ stepper.config.main.orientation = config2.orientation || "horizontal";
11960
+ if (config2.sectionLabels) {
11961
+ stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
11972
11962
  return { label: e.label, id: i };
11973
11963
  });
11974
11964
  }
11975
- if (config.layout) {
11976
- stepper.config.layout = createLayoutFormat(config.layout);
11965
+ if (config2.layout) {
11966
+ stepper.config.layout = createLayoutFormat(config2.layout);
11977
11967
  }
11978
- if (config.style) {
11979
- stepper.config.style = JSON.parse(config.style);
11968
+ if (config2.style) {
11969
+ stepper.config.style = JSON.parse(config2.style);
11980
11970
  }
11981
11971
  return stepper;
11982
11972
  };
@@ -12004,18 +11994,18 @@ const PopUP = {
12004
11994
  style: {}
12005
11995
  }
12006
11996
  };
12007
- const buildPopUp = (config, componentScope) => {
11997
+ const buildPopUp = (config2, componentScope2) => {
12008
11998
  const popup = _.cloneDeep(PopUP);
12009
- popup.scope = componentScope;
12010
- popup.config.main.title = config.label;
12011
- popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
12012
- popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
12013
- popup.config.main.maxWidth = config.maxWidth || false;
12014
- if (config.layout) {
12015
- popup.config.layout = createLayoutFormat(config.layout);
11999
+ popup.scope = componentScope2;
12000
+ popup.config.main.title = config2.label;
12001
+ popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
12002
+ popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12003
+ popup.config.main.maxWidth = config2.maxWidth || false;
12004
+ if (config2.layout) {
12005
+ popup.config.layout = createLayoutFormat(config2.layout);
12016
12006
  }
12017
- if (config.style) {
12018
- PopUP.config.style = JSON.parse(config.style);
12007
+ if (config2.style) {
12008
+ PopUP.config.style = JSON.parse(config2.style);
12019
12009
  }
12020
12010
  return popup;
12021
12011
  };
@@ -12035,30 +12025,30 @@ const dataGrid = {
12035
12025
  style: {}
12036
12026
  }
12037
12027
  };
12038
- const buildDataGrid = (config, componentScope) => {
12028
+ const buildDataGrid = (config2, componentScope2) => {
12039
12029
  const DataGrid = _.cloneDeep(dataGrid);
12040
- DataGrid.scope = componentScope;
12041
- if (config.elevation) {
12042
- DataGrid.config.main.elevation = +config.elevation;
12030
+ DataGrid.scope = componentScope2;
12031
+ if (config2.elevation) {
12032
+ DataGrid.config.main.elevation = +config2.elevation;
12043
12033
  }
12044
- DataGrid.config.main.divider = config.divider === "NO" ? false : true;
12045
- if (config.height) {
12046
- DataGrid.config.main.height = `${config.height}px`;
12034
+ DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
12035
+ if (config2.height) {
12036
+ DataGrid.config.main.height = `${config2.height}px`;
12047
12037
  }
12048
- if (config.justifyContent) {
12049
- DataGrid.config.main.justifyContent = config.justifyContent;
12038
+ if (config2.justifyContent) {
12039
+ DataGrid.config.main.justifyContent = config2.justifyContent;
12050
12040
  }
12051
- if (config.label) {
12052
- DataGrid.config.main.label = config.label;
12041
+ if (config2.label) {
12042
+ DataGrid.config.main.label = config2.label;
12053
12043
  }
12054
- if (config.layout) {
12055
- DataGrid.config.layout = createLayoutFormat(config.layout);
12044
+ if (config2.layout) {
12045
+ DataGrid.config.layout = createLayoutFormat(config2.layout);
12056
12046
  }
12057
- if (config.cardLayout) {
12058
- DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout);
12047
+ if (config2.cardLayout) {
12048
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12059
12049
  }
12060
- if (config.style) {
12061
- DataGrid.config.style = JSON.parse(config.style);
12050
+ if (config2.style) {
12051
+ DataGrid.config.style = JSON.parse(config2.style);
12062
12052
  }
12063
12053
  return DataGrid;
12064
12054
  };
@@ -12069,7 +12059,7 @@ const InputSlider = {
12069
12059
  widget: "InputSlider"
12070
12060
  },
12071
12061
  config: {
12072
- layout: 12,
12062
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
12073
12063
  main: {
12074
12064
  limitToMax: false,
12075
12065
  max: 1e4,
@@ -12079,27 +12069,27 @@ const InputSlider = {
12079
12069
  }
12080
12070
  }
12081
12071
  };
12082
- const buildInputSlider = (config, componentScope) => {
12072
+ const buildInputSlider = (config2, componentScope2) => {
12083
12073
  const inputSlider = _.cloneDeep(InputSlider);
12084
- inputSlider.scope = componentScope;
12085
- inputSlider.config.main.label = config.label;
12086
- if (config.layout) {
12087
- inputSlider.config.layout = createLayoutFormat(config.layout);
12074
+ inputSlider.scope = componentScope2;
12075
+ inputSlider.config.main.label = config2.label;
12076
+ if (config2.layout) {
12077
+ inputSlider.config.layout = createLayoutFormat(config2.layout);
12088
12078
  }
12089
- if (config.limitToMax) {
12090
- inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
12079
+ if (config2.limitToMax) {
12080
+ inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
12091
12081
  }
12092
- if (config.max) {
12093
- inputSlider.config.main.max = config.max;
12082
+ if (config2.max) {
12083
+ inputSlider.config.main.max = config2.max;
12094
12084
  }
12095
- if (config.step) {
12096
- inputSlider.config.main.step = config.step;
12085
+ if (config2.step) {
12086
+ inputSlider.config.main.step = config2.step;
12097
12087
  }
12098
- if (config.min) {
12099
- inputSlider.config.main.min = config.min;
12088
+ if (config2.min) {
12089
+ inputSlider.config.main.min = config2.min;
12100
12090
  }
12101
- if (config.style) {
12102
- inputSlider.config.main.defaultStyle = JSON.parse(config.style);
12091
+ if (config2.style) {
12092
+ inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
12103
12093
  }
12104
12094
  return inputSlider;
12105
12095
  };
@@ -12125,38 +12115,66 @@ const TreeMap = {
12125
12115
  },
12126
12116
  elements: []
12127
12117
  };
12128
- const buildTreeMap = (config, componentScope) => {
12118
+ const buildTreeMap = (config2, componentScope2) => {
12129
12119
  const treMap = _.cloneDeep(TreeMap);
12130
- treMap.scope = componentScope;
12131
- if (config.label) {
12132
- treMap.config.main.header = config.label;
12120
+ treMap.scope = componentScope2;
12121
+ if (config2.label) {
12122
+ treMap.config.main.header = config2.label;
12133
12123
  }
12134
- if (config.layout) {
12135
- treMap.config.layout = createLayoutFormat(config.layout);
12124
+ if (config2.layout) {
12125
+ treMap.config.layout = createLayoutFormat(config2.layout);
12136
12126
  }
12137
- if (config.orientation) {
12138
- treMap.config.main.orientation = config.orientation;
12127
+ if (config2.orientation) {
12128
+ treMap.config.main.orientation = config2.orientation;
12139
12129
  }
12140
- if (config.linkType) {
12141
- treMap.config.main.linkType = config.linkType;
12130
+ if (config2.linkType) {
12131
+ treMap.config.main.linkType = config2.linkType;
12142
12132
  }
12143
- if (config.graphHeight) {
12144
- treMap.config.main.graphHeight = config.graphHeight;
12133
+ if (config2.graphHeight) {
12134
+ treMap.config.main.graphHeight = config2.graphHeight;
12145
12135
  }
12146
- if (config.graphWidth) {
12147
- treMap.config.main.graphWidth = config.graphWidth;
12136
+ if (config2.graphWidth) {
12137
+ treMap.config.main.graphWidth = config2.graphWidth;
12148
12138
  }
12149
- if (config.graphZoomHeight) {
12150
- treMap.config.main.graphZoomHeight = config.graphZoomHeight;
12139
+ if (config2.graphZoomHeight) {
12140
+ treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
12151
12141
  }
12152
- if (config.graphZoomWidth) {
12153
- treMap.config.main.graphZoomWidth = config.graphZoomWidth;
12142
+ if (config2.graphZoomWidth) {
12143
+ treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
12154
12144
  }
12155
- if (config.style) {
12156
- treMap.config.style = JSON.parse(config.style);
12145
+ if (config2.style) {
12146
+ treMap.config.style = JSON.parse(config2.style);
12157
12147
  }
12158
12148
  return treMap;
12159
12149
  };
12150
+ var Thought = {
12151
+ type: "Control",
12152
+ scope: "#/properties/path",
12153
+ options: {
12154
+ widget: "Thought"
12155
+ },
12156
+ config: {
12157
+ layout: { xs: 11.5, sm: 11.5, md: 8, lg: 8 },
12158
+ main: {}
12159
+ }
12160
+ };
12161
+ const buildThoughtOfTheDay = (config2, componentScope2) => {
12162
+ const thought = _.cloneDeep(Thought);
12163
+ thought.scope = componentScope2;
12164
+ if (config2.thought) {
12165
+ thought.config.main.thought = `${config2.thought}`;
12166
+ }
12167
+ if (config2.layout) {
12168
+ thought.config.layout = createLayoutFormat(config2.layout);
12169
+ }
12170
+ if (config2.label) {
12171
+ thought.config.main.label = config2.label;
12172
+ }
12173
+ if (config2.style) {
12174
+ thought.config.style = JSON.parse(config2.style);
12175
+ }
12176
+ return thought;
12177
+ };
12160
12178
  let schema = {
12161
12179
  type: "object",
12162
12180
  properties: {},
@@ -12246,12 +12264,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
12246
12264
  });
12247
12265
  }
12248
12266
  }
12249
- const buildSchema = (config, tableName, isArrayType) => {
12250
- buildRule(config, tableName, isArrayType);
12251
- if (config == null ? void 0 : config.elements) {
12252
- if (config.type == "Table" || config.type == "Array") {
12253
- if (!schema.properties[config.name]) {
12254
- schema.properties[config.name] = {
12267
+ const buildSchema = (config2, tableName, isArrayType) => {
12268
+ buildRule(config2, tableName, isArrayType);
12269
+ if (config2 == null ? void 0 : config2.elements) {
12270
+ if (config2.type == "Table" || config2.type == "Array") {
12271
+ if (!schema.properties[config2.name]) {
12272
+ schema.properties[config2.name] = {
12255
12273
  type: "array",
12256
12274
  items: {
12257
12275
  type: "object",
@@ -12260,150 +12278,156 @@ const buildSchema = (config, tableName, isArrayType) => {
12260
12278
  }
12261
12279
  };
12262
12280
  }
12263
- config.elements.map((e, elemInd) => {
12264
- buildSchema(e, config.name, config.type === "Array" ? true : false);
12281
+ config2.elements.map((e, elemInd) => {
12282
+ buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12265
12283
  });
12266
12284
  } else {
12267
- config.elements.map((e, elemInd) => {
12285
+ config2.elements.map((e, elemInd) => {
12268
12286
  buildSchema(e);
12269
12287
  });
12270
12288
  }
12271
12289
  }
12272
12290
  return schema;
12273
12291
  };
12274
- const buildUiSchema = (config, store2) => {
12292
+ const buildUiSchema = (config2, store2) => {
12275
12293
  let elements = {};
12276
- const componentScope = `#/properties/${config.name}`;
12277
- switch (config.type) {
12294
+ const componentScope2 = `#/properties/${config2.name}`;
12295
+ switch (config2.type) {
12278
12296
  case "TreeMap":
12279
- elements = buildTreeMap(config, componentScope);
12297
+ elements = buildTreeMap(config2, componentScope2);
12280
12298
  break;
12281
12299
  case "DateTime":
12282
- elements = buildDateTime(config, componentScope);
12300
+ elements = buildDateTime(config2, componentScope2);
12283
12301
  break;
12284
12302
  case "InputSlider":
12285
- elements = buildInputSlider(config, componentScope);
12303
+ elements = buildInputSlider(config2, componentScope2);
12286
12304
  break;
12287
12305
  case "DataGrid":
12288
- elements = buildDataGrid(config, componentScope);
12306
+ elements = buildDataGrid(config2, componentScope2);
12289
12307
  break;
12290
12308
  case "Stepper":
12291
- elements = buildStepper(config, componentScope);
12309
+ elements = buildStepper(config2, componentScope2);
12292
12310
  break;
12293
12311
  case "PopUp":
12294
- elements = buildPopUp(config, componentScope);
12312
+ elements = buildPopUp(config2, componentScope2);
12295
12313
  break;
12296
12314
  case "FileInput":
12297
- elements = buildFileInput(config, componentScope);
12315
+ elements = buildFileInput(config2, componentScope2);
12298
12316
  break;
12299
12317
  case "AadharcardText":
12300
- elements = buildAdhaarField(config, componentScope);
12318
+ elements = buildAdhaarField(config2, componentScope2);
12301
12319
  break;
12302
12320
  case "PanCardText":
12303
- elements = buildPanField(config, componentScope);
12321
+ elements = buildPanField(config2, componentScope2);
12304
12322
  break;
12305
12323
  case "TabSection":
12306
- elements = buildTabSection(config, componentScope);
12324
+ elements = buildTabSection(config2, componentScope2);
12307
12325
  break;
12308
12326
  case "RunnerBoyProgressBar":
12309
- elements = RunnerBoyProgressbar(config, componentScope);
12327
+ elements = RunnerBoyProgressbar(config2, componentScope2);
12310
12328
  break;
12311
12329
  case "WrapperSection":
12312
- elements = buildWrapperSection(config, componentScope);
12330
+ elements = buildWrapperSection(config2, componentScope2);
12313
12331
  break;
12314
12332
  case "Text":
12315
- elements = buildTextField(config, componentScope);
12333
+ elements = buildTextField(config2, componentScope2);
12316
12334
  break;
12317
12335
  case "TextArea":
12318
- elements = buildTextArea(config, componentScope);
12336
+ elements = buildTextArea(config2, componentScope2);
12319
12337
  break;
12320
12338
  case "Date":
12321
- elements = buildDate(config, componentScope);
12339
+ elements = buildDate(config2, componentScope2);
12322
12340
  break;
12323
12341
  case "Select":
12324
- elements = buildSelect(config, componentScope);
12342
+ elements = buildSelect(config2, componentScope2);
12325
12343
  break;
12326
12344
  case "Radio":
12327
- elements = buildRadio(config, componentScope);
12345
+ elements = buildRadio(config2, componentScope2);
12328
12346
  break;
12329
12347
  case "Button":
12330
- elements = buildButton(config, componentScope);
12348
+ elements = buildButton(config2, componentScope2);
12331
12349
  break;
12332
12350
  case "Table":
12333
- elements = buildTable(config, componentScope);
12351
+ elements = buildTable(config2, componentScope2);
12334
12352
  break;
12335
12353
  case "Array":
12336
- elements = buildArray(config, componentScope);
12354
+ elements = buildArray(config2, componentScope2);
12337
12355
  break;
12338
12356
  case "Box":
12339
- elements = buildLabel(config, componentScope);
12357
+ elements = buildLabel(config2, componentScope2);
12340
12358
  break;
12341
12359
  case "CheckBox":
12342
- elements = buildCheckbox(config, componentScope);
12360
+ elements = buildCheckbox(config2, componentScope2);
12343
12361
  break;
12344
12362
  case "UploadFile":
12345
- elements = buildUploadFile(config, componentScope);
12363
+ elements = buildUploadFile(config2, componentScope2);
12346
12364
  break;
12347
12365
  case "DownloadFile":
12348
- elements = buildDownloadFile(config, componentScope);
12366
+ elements = buildDownloadFile(config2, componentScope2);
12349
12367
  break;
12350
12368
  case "EmptyBox":
12351
- elements = buildEmptyBox(config);
12369
+ elements = buildEmptyBox(config2);
12352
12370
  break;
12353
12371
  case "card":
12354
- elements = buildCard(config, componentScope, store2);
12372
+ elements = buildCard(config2, componentScope2, store2);
12355
12373
  break;
12356
12374
  case "Graph":
12357
- switch (config.graphType) {
12375
+ switch (config2.graphType) {
12358
12376
  case "BarGraph":
12359
12377
  case "StackBarGraph":
12360
- elements = buildStackbarGraph(config, componentScope);
12378
+ elements = buildStackbarGraph(config2, componentScope2);
12361
12379
  break;
12362
12380
  case "LineGraph":
12363
- elements = buildLineGraph(config, componentScope);
12381
+ elements = buildLineGraph(config2, componentScope2);
12364
12382
  break;
12365
12383
  case "PieGraph":
12366
- elements = buildPieGraph(config, componentScope);
12384
+ elements = buildPieGraph(config2, componentScope2);
12367
12385
  break;
12368
12386
  case "HorizontalBarGraph":
12369
12387
  case "HorizontalStackBarGraph":
12370
- elements = buildHorizontalBarGraph(config, componentScope);
12388
+ elements = buildHorizontalBarGraph(config2, componentScope2);
12389
+ break;
12390
+ default:
12391
+ elements = buildStackbarGraph(config2, componentScope2);
12371
12392
  break;
12372
12393
  }
12373
12394
  break;
12374
12395
  case "ProgressBar":
12375
- elements = buildProgressBar(config, componentScope);
12396
+ elements = buildProgressBar(config2, componentScope2);
12376
12397
  break;
12377
12398
  case "SpeedoMeter":
12378
- elements = buildSpeedoMeter(config, componentScope);
12399
+ elements = buildSpeedoMeter(config2, componentScope2);
12379
12400
  break;
12380
12401
  case "ProgressBarCard":
12381
- elements = buildProgressBarCard(config, componentScope);
12402
+ elements = buildProgressBarCard(config2, componentScope2);
12382
12403
  break;
12383
12404
  case "RankCard":
12384
- elements = buildRankCard(config, componentScope);
12405
+ elements = buildRankCard(config2, componentScope2);
12385
12406
  break;
12386
12407
  case "Rank":
12387
- elements = buildRollAndDice(config, componentScope);
12408
+ elements = buildRollAndDice(config2, componentScope2);
12388
12409
  break;
12389
12410
  case "Slider":
12390
- elements = buildSlider(config, componentScope);
12411
+ elements = buildSlider(config2, componentScope2);
12391
12412
  break;
12392
12413
  case "Timer":
12393
- elements = buildTimer(config, componentScope);
12414
+ elements = buildTimer(config2, componentScope2);
12394
12415
  break;
12395
12416
  case "ColumnGroup":
12396
12417
  elements = {
12397
- accessorKey: config.name,
12398
- header: config.label || config.name,
12418
+ accessorKey: config2.name,
12419
+ header: config2.label || config2.name,
12399
12420
  elements: []
12400
12421
  };
12401
12422
  break;
12402
12423
  case "MultipleSelect":
12403
- elements = buildMultiSelect(config, componentScope);
12424
+ elements = buildMultiSelect(config2, componentScope2);
12404
12425
  break;
12405
12426
  case "LeaderBoard":
12406
- elements = buildLeaderBoard(config);
12427
+ elements = buildLeaderBoard(config2);
12428
+ break;
12429
+ case "Thought":
12430
+ elements = buildThoughtOfTheDay(config2, componentScope2);
12407
12431
  break;
12408
12432
  default:
12409
12433
  schema = {
@@ -12411,19 +12435,19 @@ const buildUiSchema = (config, store2) => {
12411
12435
  properties: {},
12412
12436
  required: []
12413
12437
  };
12414
- elements = buildBasicUiSchema(config);
12438
+ elements = buildBasicUiSchema(config2);
12415
12439
  }
12416
- if (config == null ? void 0 : config.elements) {
12417
- if ((config == null ? void 0 : config.type) === "LeaderBoard") {
12440
+ if (config2 == null ? void 0 : config2.elements) {
12441
+ if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12418
12442
  return elements;
12419
- } else if (config.type == "ColumnGroup") {
12443
+ } else if (config2.type == "ColumnGroup") {
12420
12444
  const sizeMap = {};
12421
- if (config.sizeHolder) {
12422
- config.sizeHolder.map((e, i) => {
12445
+ if (config2.sizeHolder) {
12446
+ config2.sizeHolder.map((e, i) => {
12423
12447
  sizeMap[e.keyName] = e.value;
12424
12448
  });
12425
12449
  }
12426
- elements.elements = config.elements.map((cellElem, elemInd) => {
12450
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
12427
12451
  return {
12428
12452
  accessorKey: cellElem.name,
12429
12453
  header: cellElem.label || cellElem.name,
@@ -12432,49 +12456,47 @@ const buildUiSchema = (config, store2) => {
12432
12456
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
12433
12457
  };
12434
12458
  });
12435
- } else if (config.type == "Table") {
12459
+ } else if (config2.type == "Table") {
12436
12460
  const sizeMap = {};
12437
12461
  const filterMap = {};
12438
- if (config.sizeHolder) {
12439
- config.sizeHolder.map((e, i) => {
12462
+ if (config2.sizeHolder) {
12463
+ config2.sizeHolder.map((e, i) => {
12440
12464
  sizeMap[e.keyName] = e.value;
12441
12465
  });
12442
12466
  }
12443
- if (config.enableColumnFilter) {
12444
- config.enableColumnFilter.map((e) => {
12467
+ if (config2.enableColumnFilter) {
12468
+ config2.enableColumnFilter.map((e) => {
12445
12469
  filterMap[e.keyName] = true;
12446
12470
  });
12447
12471
  }
12448
- elements.elements = config.elements.map((cellElem, elemInd) => {
12449
- var _a, _b;
12472
+ elements.elements = config2.elements.map((cellElem, elemInd) => {
12473
+ var _a;
12474
+ const commonProperties = {
12475
+ accessorKey: cellElem.name,
12476
+ type: cellElem.columnFormat,
12477
+ header: cellElem.label || cellElem.name,
12478
+ size: sizeMap[cellElem.name] || 180,
12479
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12480
+ columnFilterModeOptions: config2.filteringOptions,
12481
+ enableSorting: config2.enableSorting === "No" ? false : true,
12482
+ columnKey: config2.columnKey
12483
+ };
12450
12484
  if (cellElem.type) {
12451
12485
  return {
12452
- accessorKey: cellElem.name,
12453
- header: cellElem.label || cellElem.name,
12454
- size: sizeMap[cellElem.name] || 180,
12455
- type: cellElem.columnFormat,
12456
12486
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
12457
12487
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
12458
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12459
- columnFilterModeOptions: config.filteringOptions
12488
+ ...commonProperties
12460
12489
  };
12461
12490
  } else {
12462
- return {
12463
- accessorKey: cellElem.name,
12464
- type: cellElem.columnFormat,
12465
- header: cellElem.label || cellElem.name,
12466
- size: sizeMap[cellElem.name] || 180,
12467
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12468
- columnFilterModeOptions: config.filteringOptions
12469
- };
12491
+ return commonProperties;
12470
12492
  }
12471
12493
  });
12472
- } else if (config.type == "Array") {
12473
- elements.options.detail.elements = config.elements.map((e, elemInd) => {
12494
+ } else if (config2.type == "Array") {
12495
+ elements.options.detail.elements = config2.elements.map((e, elemInd) => {
12474
12496
  return buildUiSchema(e, store2);
12475
12497
  });
12476
12498
  } else {
12477
- elements.elements = config.elements.map((e, elemInd) => {
12499
+ elements.elements = config2.elements.map((e, elemInd) => {
12478
12500
  return buildUiSchema(e, store2);
12479
12501
  });
12480
12502
  }