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.
- package/dist/impaktapps-ui-builder.es.js +1401 -1379
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +90 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
- package/package.json +5 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +43 -44
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -11
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -13
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +25 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +18 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +102 -46
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +581 -487
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +177 -111
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +90 -59
- package/src/impaktapps-ui-builder/builder/services/component.ts +127 -30
- package/src/impaktapps-ui-builder/builder/services/event.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +32 -21
- 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", "
|
|
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:
|
|
491
|
-
lg:
|
|
490
|
+
md: 12,
|
|
491
|
+
lg: 12
|
|
492
492
|
},
|
|
493
|
-
main: {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
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/
|
|
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: "-
|
|
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: "
|
|
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:
|
|
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
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
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:
|
|
582
|
-
lg:
|
|
613
|
+
md: 12,
|
|
614
|
+
lg: 12
|
|
583
615
|
},
|
|
584
|
-
main: {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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/
|
|
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: "-
|
|
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: "
|
|
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:
|
|
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
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
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:
|
|
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/
|
|
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: "
|
|
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:
|
|
6645
|
-
|
|
6646
|
-
|
|
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/
|
|
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/
|
|
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
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
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/
|
|
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: "-
|
|
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: "
|
|
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:
|
|
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
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
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
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
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/
|
|
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: "-
|
|
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: "
|
|
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:
|
|
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
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
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:
|
|
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: "
|
|
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
|
-
|
|
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("
|
|
7697
|
-
|
|
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
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
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:
|
|
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
|
-
|
|
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 = (
|
|
8144
|
-
if (_.isEmpty(
|
|
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
|
-
|
|
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 = (
|
|
8159
|
-
if (
|
|
8319
|
+
const flatObjectValueInArray = (config2 = []) => {
|
|
8320
|
+
if (config2.length < 1) {
|
|
8160
8321
|
return;
|
|
8161
8322
|
}
|
|
8162
|
-
const keyName = Object.keys(
|
|
8163
|
-
const data =
|
|
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 = (
|
|
8332
|
+
const getNavigationHistory = (config2, path) => {
|
|
8172
8333
|
if (path) {
|
|
8173
|
-
let urlRoutes =
|
|
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(
|
|
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
|
|
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
|
|
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,
|
|
8227
|
-
navigateHandler(store2, true,
|
|
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
|
|
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
|
|
8768
|
+
const config2 = await funcParams.pageConfigProvider(id);
|
|
8524
8769
|
const formData = getFormdataFromSessionStorage();
|
|
8525
8770
|
if (formData) {
|
|
8526
8771
|
return formData;
|
|
8527
8772
|
}
|
|
8528
|
-
saveFormdataInSessionStorage(
|
|
8529
|
-
return
|
|
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:
|
|
9015
|
-
lg:
|
|
9259
|
+
md: 12,
|
|
9260
|
+
lg: 12
|
|
9016
9261
|
},
|
|
9017
|
-
main: {
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
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/
|
|
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: "-
|
|
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: "
|
|
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:
|
|
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
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
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:
|
|
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
|
|
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
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
...pre
|
|
9736
|
-
|
|
9737
|
-
...
|
|
9738
|
-
|
|
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)
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
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
|
|
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:
|
|
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(
|
|
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: "
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
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
|
-
|
|
10258
|
-
{
|
|
10259
|
-
|
|
10260
|
-
|
|
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 = (
|
|
10536
|
+
const buildLeaderBoard = (config2) => {
|
|
10581
10537
|
const LeaderBoard = _.cloneDeep(leaderBoard);
|
|
10582
|
-
if (
|
|
10583
|
-
const modifyColumns =
|
|
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
|
|
10546
|
+
LeaderBoard.elements = modifyColumns;
|
|
10591
10547
|
}
|
|
10592
|
-
LeaderBoard.config.main.label =
|
|
10593
|
-
if (
|
|
10594
|
-
LeaderBoard.
|
|
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 (
|
|
10603
|
-
LeaderBoard.
|
|
10552
|
+
if (config2.firstImage) {
|
|
10553
|
+
LeaderBoard.config.main.firstImage = config2.firstImage;
|
|
10604
10554
|
}
|
|
10605
|
-
if (
|
|
10606
|
-
LeaderBoard.
|
|
10555
|
+
if (config2.secondImage) {
|
|
10556
|
+
LeaderBoard.config.main.secondImage = config2.secondImage;
|
|
10607
10557
|
}
|
|
10608
|
-
if (
|
|
10609
|
-
LeaderBoard.
|
|
10558
|
+
if (config2.thirdImage) {
|
|
10559
|
+
LeaderBoard.config.main.thirdImage = config2.thirdImage;
|
|
10610
10560
|
}
|
|
10611
|
-
if (
|
|
10612
|
-
LeaderBoard.config.
|
|
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 = (
|
|
10593
|
+
const buildProgressBarCard = (config2, myScope) => {
|
|
10632
10594
|
const progressBarCard = _.cloneDeep(progressBar);
|
|
10633
10595
|
progressBarCard.scope = myScope;
|
|
10634
|
-
if (
|
|
10635
|
-
progressBarCard.config.main.heading =
|
|
10596
|
+
if (config2.heading) {
|
|
10597
|
+
progressBarCard.config.main.heading = config2.heading;
|
|
10636
10598
|
}
|
|
10637
|
-
if (
|
|
10638
|
-
progressBarCard.config.main.bottomLabel_3 =
|
|
10599
|
+
if (config2.bottomLabel_3) {
|
|
10600
|
+
progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10639
10601
|
}
|
|
10640
|
-
if (
|
|
10641
|
-
progressBarCard.config.main.bottomLabel_2 =
|
|
10602
|
+
if (config2.bottomLabel_2) {
|
|
10603
|
+
progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10642
10604
|
}
|
|
10643
|
-
if (
|
|
10644
|
-
progressBarCard.elements[0].config.main.bottomLabel_1 =
|
|
10605
|
+
if (config2.bottomLabel_1) {
|
|
10606
|
+
progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10645
10607
|
}
|
|
10646
|
-
if (
|
|
10647
|
-
progressBarCard.config.layout = createLayoutFormat(
|
|
10608
|
+
if (config2.layout) {
|
|
10609
|
+
progressBarCard.config.layout = createLayoutFormat(config2.layout);
|
|
10648
10610
|
}
|
|
10649
10611
|
return progressBarCard;
|
|
10650
10612
|
};
|
|
10651
|
-
const buildProgressBar = (
|
|
10613
|
+
const buildProgressBar = (config2, componentScope2) => {
|
|
10652
10614
|
const ProgressBar = _.cloneDeep(progressBar);
|
|
10653
|
-
ProgressBar.scope =
|
|
10654
|
-
if (
|
|
10655
|
-
ProgressBar.config.layout =
|
|
10615
|
+
ProgressBar.scope = componentScope2;
|
|
10616
|
+
if (config2.layout) {
|
|
10617
|
+
ProgressBar.config.layout = config2.layout;
|
|
10656
10618
|
}
|
|
10657
|
-
ProgressBar.config.main.heading =
|
|
10658
|
-
if (
|
|
10659
|
-
ProgressBar.config.main.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 (
|
|
10662
|
-
ProgressBar.config.layout = createLayoutFormat(
|
|
10623
|
+
if (config2.layout) {
|
|
10624
|
+
ProgressBar.config.layout = createLayoutFormat(config2.layout);
|
|
10663
10625
|
}
|
|
10664
|
-
if (
|
|
10665
|
-
ProgressBar.config.main.bottomLabel_2 =
|
|
10626
|
+
if (config2.bottomLabel_2) {
|
|
10627
|
+
ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10666
10628
|
}
|
|
10667
|
-
if (
|
|
10668
|
-
ProgressBar.config.main.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
|
-
|
|
10680
|
-
|
|
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
|
-
|
|
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 = (
|
|
10694
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
10747
10695
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10748
|
-
horizontalBarGraph.scope =
|
|
10749
|
-
if (
|
|
10750
|
-
horizontalBarGraph.config.layout = createLayoutFormat(
|
|
10696
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10697
|
+
if (config2.layout) {
|
|
10698
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10751
10699
|
}
|
|
10752
|
-
horizontalBarGraph.config.main.type =
|
|
10753
|
-
horizontalBarGraph.scope =
|
|
10754
|
-
horizontalBarGraph.config.main.header =
|
|
10755
|
-
if (
|
|
10756
|
-
horizontalBarGraph.config.
|
|
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 (
|
|
10759
|
-
horizontalBarGraph.config.main.
|
|
10706
|
+
if (config2.bottomAxisAngle) {
|
|
10707
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10760
10708
|
}
|
|
10761
|
-
if (
|
|
10762
|
-
horizontalBarGraph.config.
|
|
10709
|
+
if (config2.legendLabels) {
|
|
10710
|
+
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10763
10711
|
}
|
|
10764
|
-
if (
|
|
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 (
|
|
10772
|
-
horizontalBarGraph.config.main.
|
|
10715
|
+
if (config2.xAxisValue) {
|
|
10716
|
+
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10773
10717
|
}
|
|
10774
|
-
if (
|
|
10775
|
-
horizontalBarGraph.config.
|
|
10718
|
+
if (config2.height) {
|
|
10719
|
+
horizontalBarGraph.config.style.containerStyle.height = config2.height;
|
|
10776
10720
|
}
|
|
10777
|
-
if (
|
|
10721
|
+
if (config2.leftMargin) {
|
|
10778
10722
|
horizontalBarGraph.config.style.labelStyle.margin = {
|
|
10779
|
-
left:
|
|
10723
|
+
left: config2.leftMargin
|
|
10780
10724
|
};
|
|
10781
10725
|
}
|
|
10782
|
-
if (
|
|
10783
|
-
horizontalBarGraph.config.
|
|
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 = (
|
|
10780
|
+
const buildSpeedoMeter = (config2, componentScope2) => {
|
|
10834
10781
|
const speedoMeter = _.cloneDeep(SpeedoMeter);
|
|
10835
|
-
speedoMeter.scope =
|
|
10836
|
-
if (
|
|
10837
|
-
speedoMeter.config.layout = createLayoutFormat(
|
|
10782
|
+
speedoMeter.scope = componentScope2;
|
|
10783
|
+
if (config2.layout) {
|
|
10784
|
+
speedoMeter.config.layout = createLayoutFormat(config2.layout);
|
|
10838
10785
|
}
|
|
10839
|
-
if (
|
|
10840
|
-
speedoMeter.config.main.header =
|
|
10786
|
+
if (config2.heading) {
|
|
10787
|
+
speedoMeter.config.main.header = config2.heading;
|
|
10841
10788
|
}
|
|
10842
|
-
if (
|
|
10843
|
-
speedoMeter.config.main.segments =
|
|
10789
|
+
if (config2.segments) {
|
|
10790
|
+
speedoMeter.config.main.segments = config2.segments;
|
|
10844
10791
|
}
|
|
10845
|
-
if (
|
|
10846
|
-
const styleObj = JSON.parse(
|
|
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 (
|
|
10855
|
-
speedoMeter.config.main.width =
|
|
10801
|
+
if (config2.width) {
|
|
10802
|
+
speedoMeter.config.main.width = config2.width;
|
|
10856
10803
|
}
|
|
10857
|
-
if (
|
|
10858
|
-
speedoMeter.config.main.currentValueText =
|
|
10804
|
+
if (config2.speedoCaption) {
|
|
10805
|
+
speedoMeter.config.main.currentValueText = config2.speedoCaption;
|
|
10859
10806
|
}
|
|
10860
|
-
if (
|
|
10861
|
-
speedoMeter.config.main.data =
|
|
10807
|
+
if (config2.data) {
|
|
10808
|
+
speedoMeter.config.main.data = config2.data;
|
|
10862
10809
|
}
|
|
10863
|
-
if (
|
|
10864
|
-
speedoMeter.config.style.needleColor =
|
|
10810
|
+
if (config2.needleColor) {
|
|
10811
|
+
speedoMeter.config.style.needleColor = config2.needleColor;
|
|
10865
10812
|
}
|
|
10866
|
-
if (
|
|
10867
|
-
speedoMeter.config.style.segments =
|
|
10813
|
+
if (config2.segments) {
|
|
10814
|
+
speedoMeter.config.style.segments = config2.segments;
|
|
10868
10815
|
}
|
|
10869
|
-
if (
|
|
10870
|
-
speedoMeter.config.style.endColor =
|
|
10816
|
+
if (config2.endColor) {
|
|
10817
|
+
speedoMeter.config.style.endColor = config2.endColor;
|
|
10871
10818
|
}
|
|
10872
|
-
if (
|
|
10873
|
-
speedoMeter.config.style.startColor =
|
|
10819
|
+
if (config2.startColor) {
|
|
10820
|
+
speedoMeter.config.style.startColor = config2.startColor;
|
|
10874
10821
|
}
|
|
10875
|
-
if (
|
|
10876
|
-
speedoMeter.config.style.segmentColors =
|
|
10822
|
+
if (config2.segmentColors) {
|
|
10823
|
+
speedoMeter.config.style.segmentColors = config2.segmentColors;
|
|
10877
10824
|
}
|
|
10878
10825
|
return speedoMeter;
|
|
10879
10826
|
};
|
|
10880
|
-
const buildPieGraph = (
|
|
10827
|
+
const buildPieGraph = (config2, componentScope2) => {
|
|
10881
10828
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10882
|
-
if (
|
|
10883
|
-
pieGraph.config.layout = createLayoutFormat(
|
|
10829
|
+
if (config2.layout) {
|
|
10830
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10884
10831
|
}
|
|
10885
|
-
if (
|
|
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 (
|
|
10893
|
-
pieGraph.config.main.
|
|
10835
|
+
if (config2.legendHide) {
|
|
10836
|
+
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10894
10837
|
}
|
|
10895
|
-
pieGraph.scope =
|
|
10896
|
-
pieGraph.config.main.header =
|
|
10897
|
-
if (
|
|
10898
|
-
pieGraph.config.main.
|
|
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 (
|
|
10901
|
-
pieGraph.config.main.xAxisValue =
|
|
10843
|
+
if (config2.xAxisValue) {
|
|
10844
|
+
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10902
10845
|
}
|
|
10903
|
-
if (
|
|
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 = (
|
|
10851
|
+
const buildStackbarGraph = (config2, componentScope2) => {
|
|
10852
|
+
var _a;
|
|
10913
10853
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10914
|
-
if (
|
|
10915
|
-
barGraph.config.layout = createLayoutFormat(
|
|
10854
|
+
if (config2.layout) {
|
|
10855
|
+
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10916
10856
|
}
|
|
10917
|
-
if (
|
|
10918
|
-
barGraph.config.main.legendAvailable =
|
|
10857
|
+
if (config2.legendHide) {
|
|
10858
|
+
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10859
|
+
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10919
10860
|
}
|
|
10920
|
-
|
|
10921
|
-
|
|
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
|
-
|
|
10926
|
-
|
|
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 (
|
|
10929
|
-
barGraph.config.style.
|
|
10869
|
+
if (config2.pieArcColors) {
|
|
10870
|
+
barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10930
10871
|
}
|
|
10931
|
-
if (
|
|
10932
|
-
barGraph.config.main.
|
|
10872
|
+
if (config2.xAxisValue) {
|
|
10873
|
+
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10933
10874
|
}
|
|
10934
|
-
if (
|
|
10935
|
-
barGraph.config.
|
|
10875
|
+
if (config2.height) {
|
|
10876
|
+
barGraph.config.style.containerStyle.height = config2.height;
|
|
10936
10877
|
}
|
|
10937
|
-
if (
|
|
10878
|
+
if (config2.leftMargin) {
|
|
10938
10879
|
barGraph.config.style.labelStyle.margin = {
|
|
10939
|
-
left:
|
|
10880
|
+
left: config2.leftMargin
|
|
10940
10881
|
};
|
|
10941
10882
|
}
|
|
10942
|
-
if (
|
|
10943
|
-
barGraph.config.
|
|
10883
|
+
if (config2.bottomLabel) {
|
|
10884
|
+
barGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10944
10885
|
}
|
|
10945
|
-
|
|
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:
|
|
10899
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10956
10900
|
main: {}
|
|
10957
10901
|
}
|
|
10958
10902
|
};
|
|
10959
|
-
const RunnerBoyProgressbar = (
|
|
10903
|
+
const RunnerBoyProgressbar = (config2, componentScope2) => {
|
|
10960
10904
|
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
10961
|
-
RunnerBoy.scope =
|
|
10962
|
-
if (
|
|
10963
|
-
RunnerBoy.config.layout = createLayoutFormat(
|
|
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 = (
|
|
10922
|
+
const buildTabSection = (config2, componentScope2) => {
|
|
10979
10923
|
const tab = _.cloneDeep(Tabsection);
|
|
10980
|
-
tab.scope =
|
|
10981
|
-
if (
|
|
10982
|
-
tab.config.main.lazyLoad =
|
|
10924
|
+
tab.scope = componentScope2;
|
|
10925
|
+
if (config2.lazyLoad) {
|
|
10926
|
+
tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
|
|
10983
10927
|
}
|
|
10984
|
-
if (
|
|
10985
|
-
tab.config.main.orientation =
|
|
10928
|
+
if (config2.orientation) {
|
|
10929
|
+
tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
|
|
10986
10930
|
}
|
|
10987
|
-
if (
|
|
10988
|
-
tab.config.main.tabLabels =
|
|
10931
|
+
if (config2.sectionLabels) {
|
|
10932
|
+
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10989
10933
|
}
|
|
10990
|
-
tab.config.main.id =
|
|
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 = (
|
|
10949
|
+
const buildWrapperSection = (config2, componentScope2) => {
|
|
11006
10950
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
11007
|
-
wrapper.scope =
|
|
11008
|
-
wrapper.config.main.label =
|
|
11009
|
-
wrapper.config.main.divider =
|
|
11010
|
-
wrapper.config.main.isAccordion =
|
|
11011
|
-
if (
|
|
11012
|
-
wrapper.config.defaultStyle =
|
|
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 (
|
|
11015
|
-
wrapper.config.style = JSON.parse(
|
|
10958
|
+
if (config2.style) {
|
|
10959
|
+
wrapper.config.style = JSON.parse(config2.style);
|
|
11016
10960
|
}
|
|
11017
|
-
if (
|
|
11018
|
-
wrapper.config.layout = createLayoutFormat(
|
|
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 = (
|
|
10980
|
+
const buildTextField = (config2, componentScope2) => {
|
|
11037
10981
|
const inputField = _.cloneDeep(TextInputField);
|
|
11038
|
-
inputField.config.main.label =
|
|
11039
|
-
if (
|
|
11040
|
-
inputField.config.style = JSON.parse(
|
|
10982
|
+
inputField.config.main.label = config2.label;
|
|
10983
|
+
if (config2.style) {
|
|
10984
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11041
10985
|
}
|
|
11042
|
-
if (
|
|
11043
|
-
inputField.config.main.
|
|
10986
|
+
if (config2.multiline) {
|
|
10987
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
11044
10988
|
}
|
|
11045
|
-
if (
|
|
11046
|
-
inputField.config.main.
|
|
10989
|
+
if (config2.InputFormatingAndMasking) {
|
|
10990
|
+
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
11047
10991
|
}
|
|
11048
|
-
if (
|
|
11049
|
-
inputField.config.
|
|
10992
|
+
if (config2.placeholder) {
|
|
10993
|
+
inputField.config.main.placeholder = config2.placeholder;
|
|
11050
10994
|
}
|
|
11051
|
-
|
|
11052
|
-
|
|
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 = (
|
|
11017
|
+
const buildSelect = (config2, componentScope2) => {
|
|
11071
11018
|
const selectInputField = _.cloneDeep(SelectInputField);
|
|
11072
|
-
selectInputField.config.main.label =
|
|
11073
|
-
if (
|
|
11074
|
-
selectInputField.config.main.options =
|
|
11019
|
+
selectInputField.config.main.label = config2.label;
|
|
11020
|
+
if (config2.value) {
|
|
11021
|
+
selectInputField.config.main.options = config2.value;
|
|
11075
11022
|
}
|
|
11076
|
-
if (
|
|
11077
|
-
selectInputField.config.main.freeSolo =
|
|
11023
|
+
if (config2.freeSolo) {
|
|
11024
|
+
selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
|
|
11078
11025
|
}
|
|
11079
|
-
if (
|
|
11080
|
-
selectInputField.config.main.lazyLoading =
|
|
11026
|
+
if (config2.lazyLoading) {
|
|
11027
|
+
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11081
11028
|
}
|
|
11082
|
-
if (
|
|
11083
|
-
selectInputField.config.layout = createLayoutFormat(
|
|
11029
|
+
if (config2.layout) {
|
|
11030
|
+
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11084
11031
|
}
|
|
11085
|
-
selectInputField.scope =
|
|
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 = (
|
|
11056
|
+
const buildButton = (config2, componentScope2) => {
|
|
11111
11057
|
const button = _.cloneDeep(Button);
|
|
11112
|
-
if (
|
|
11113
|
-
button.options.widget =
|
|
11114
|
-
|
|
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 (
|
|
11117
|
-
button.config.layout = createLayoutFormat(
|
|
11062
|
+
if (config2.layout) {
|
|
11063
|
+
button.config.layout = createLayoutFormat(config2.layout);
|
|
11118
11064
|
}
|
|
11119
|
-
if (
|
|
11120
|
-
button.config.main.tooltipMessage =
|
|
11065
|
+
if (config2.tooltipMessage) {
|
|
11066
|
+
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
11121
11067
|
}
|
|
11122
|
-
if (
|
|
11123
|
-
if (
|
|
11124
|
-
button.config.main.styleDefault =
|
|
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 =
|
|
11072
|
+
button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
|
|
11127
11073
|
}
|
|
11128
11074
|
}
|
|
11129
|
-
button.scope =
|
|
11130
|
-
if (
|
|
11131
|
-
button.config.style = JSON.parse(
|
|
11075
|
+
button.scope = componentScope2;
|
|
11076
|
+
if (config2.style) {
|
|
11077
|
+
button.config.style = JSON.parse(config2.style);
|
|
11132
11078
|
}
|
|
11133
|
-
if (
|
|
11134
|
-
button.config.main.size =
|
|
11079
|
+
if (config2.size) {
|
|
11080
|
+
button.config.main.size = config2.size;
|
|
11135
11081
|
}
|
|
11136
|
-
if (
|
|
11137
|
-
button.config.main.color =
|
|
11082
|
+
if (config2.color) {
|
|
11083
|
+
button.config.main.color = config2.color;
|
|
11138
11084
|
}
|
|
11139
|
-
if (
|
|
11140
|
-
button.config.main.name =
|
|
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 = (
|
|
11110
|
+
const buildTable = (config2, componentScope2) => {
|
|
11165
11111
|
const table = _.cloneDeep(Table);
|
|
11166
|
-
table.scope =
|
|
11167
|
-
if (
|
|
11168
|
-
table.config.style = JSON.parse(
|
|
11112
|
+
table.scope = componentScope2;
|
|
11113
|
+
if (config2.style) {
|
|
11114
|
+
table.config.style = JSON.parse(config2.style);
|
|
11169
11115
|
}
|
|
11170
|
-
if (
|
|
11171
|
-
table.config.main.lazyLoading =
|
|
11116
|
+
if (config2.lazyLoading) {
|
|
11117
|
+
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11172
11118
|
}
|
|
11173
|
-
if (
|
|
11174
|
-
table.config.main.enableRowMovement =
|
|
11119
|
+
if (config2.enableRowMovement) {
|
|
11120
|
+
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
11175
11121
|
}
|
|
11176
|
-
if (
|
|
11177
|
-
table.config.main.enableExpanding =
|
|
11122
|
+
if (config2.enableExpanding) {
|
|
11123
|
+
table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
|
|
11178
11124
|
}
|
|
11179
|
-
if (
|
|
11180
|
-
table.config.main.enableExpandAll =
|
|
11125
|
+
if (config2.enableExpandAll) {
|
|
11126
|
+
table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
|
|
11181
11127
|
}
|
|
11182
|
-
if (
|
|
11183
|
-
table.config.main.paginateExpandedRows =
|
|
11128
|
+
if (config2.paginateExpandedRows) {
|
|
11129
|
+
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11184
11130
|
}
|
|
11185
|
-
if (
|
|
11186
|
-
table.config.main.treeStructure =
|
|
11131
|
+
if (config2.treeStructure) {
|
|
11132
|
+
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11187
11133
|
}
|
|
11188
|
-
if (
|
|
11189
|
-
table.config.main.Selection =
|
|
11134
|
+
if (config2.SelectionAvailable) {
|
|
11135
|
+
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11190
11136
|
}
|
|
11191
|
-
if (
|
|
11192
|
-
table.config.main.disableColumnResizing =
|
|
11137
|
+
if (config2.ColumnResizingAvailable) {
|
|
11138
|
+
table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
|
|
11193
11139
|
}
|
|
11194
|
-
if (
|
|
11195
|
-
table.config.main.enableDrag =
|
|
11140
|
+
if (config2.DragAvailable) {
|
|
11141
|
+
table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
|
|
11196
11142
|
}
|
|
11197
|
-
if (
|
|
11198
|
-
table.config.main.downloadAllData =
|
|
11143
|
+
if (config2.downloadAllData) {
|
|
11144
|
+
table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
|
|
11199
11145
|
}
|
|
11200
|
-
if (
|
|
11201
|
-
table.config.main.disableGlobalSearch =
|
|
11146
|
+
if (config2.disableGlobalSearch) {
|
|
11147
|
+
table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
|
|
11202
11148
|
}
|
|
11203
|
-
if (
|
|
11204
|
-
table.config.main.disableColumnFilter =
|
|
11149
|
+
if (config2.disableColumnFilter) {
|
|
11150
|
+
table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
|
|
11205
11151
|
}
|
|
11206
|
-
if (
|
|
11207
|
-
table.config.main.disableSorting =
|
|
11152
|
+
if (config2.disableSorting) {
|
|
11153
|
+
table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
|
|
11208
11154
|
}
|
|
11209
|
-
if (
|
|
11210
|
-
table.config.main.disableEditColumn =
|
|
11155
|
+
if (config2.disableEditColumn) {
|
|
11156
|
+
table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
|
|
11211
11157
|
}
|
|
11212
|
-
if (
|
|
11213
|
-
table.config.main.disableFullScreenToggle =
|
|
11158
|
+
if (config2.disableFullScreenToggle) {
|
|
11159
|
+
table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
|
|
11214
11160
|
}
|
|
11215
|
-
if (
|
|
11216
|
-
table.config.main.disableDensityToggle =
|
|
11161
|
+
if (config2.disableDensityToggle) {
|
|
11162
|
+
table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
|
|
11217
11163
|
}
|
|
11218
|
-
if (
|
|
11219
|
-
table.config.main.disableDownloadFile =
|
|
11164
|
+
if (config2.disableDownloadFile) {
|
|
11165
|
+
table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
|
|
11220
11166
|
}
|
|
11221
|
-
if (
|
|
11222
|
-
table.config.main.disablePagination =
|
|
11167
|
+
if (config2.disablePagination) {
|
|
11168
|
+
table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
|
|
11223
11169
|
}
|
|
11224
|
-
if (
|
|
11225
|
-
table.config.main.TableDownloadKeysName =
|
|
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 (
|
|
11228
|
-
table.config.main.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 = (
|
|
11190
|
+
const buildLabel = (config2, componentScope2) => {
|
|
11245
11191
|
const box = _.cloneDeep(Box);
|
|
11246
|
-
box.scope =
|
|
11247
|
-
box.config.main.heading =
|
|
11248
|
-
if (
|
|
11249
|
-
box.config.layout = createLayoutFormat(
|
|
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 (
|
|
11252
|
-
box.config.style = JSON.parse(
|
|
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 = (
|
|
11238
|
+
const buildUploadFile = (config2, componentScope2) => {
|
|
11293
11239
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
11294
|
-
UploadFile.scope =
|
|
11295
|
-
UploadFile.config.main.label =
|
|
11296
|
-
if (
|
|
11297
|
-
UploadFile.config.layout = createLayoutFormat(
|
|
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 (
|
|
11300
|
-
UploadFile.config.style =
|
|
11245
|
+
if (config2.style) {
|
|
11246
|
+
UploadFile.config.style = config2.style;
|
|
11301
11247
|
}
|
|
11302
|
-
if (
|
|
11248
|
+
if (config2.required) {
|
|
11303
11249
|
UploadFile.config.main.required = true;
|
|
11304
11250
|
}
|
|
11305
|
-
UploadFile.config.main.errorMessage =
|
|
11251
|
+
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11306
11252
|
return UploadFile;
|
|
11307
11253
|
};
|
|
11308
|
-
const buildDownloadFile = (
|
|
11254
|
+
const buildDownloadFile = (config2, componentScope2) => {
|
|
11309
11255
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
11310
|
-
DownloadFile.scope =
|
|
11311
|
-
if (
|
|
11312
|
-
DownloadFile.config.layout =
|
|
11256
|
+
DownloadFile.scope = componentScope2;
|
|
11257
|
+
if (config2.layout) {
|
|
11258
|
+
DownloadFile.config.layout = config2.layout;
|
|
11313
11259
|
}
|
|
11314
|
-
if (
|
|
11315
|
-
DownloadFile.config.style =
|
|
11260
|
+
if (config2.style) {
|
|
11261
|
+
DownloadFile.config.style = config2.style;
|
|
11316
11262
|
}
|
|
11317
|
-
if (
|
|
11263
|
+
if (config2.required) {
|
|
11318
11264
|
DownloadFile.config.main.required = true;
|
|
11319
11265
|
}
|
|
11320
|
-
if (
|
|
11321
|
-
DownloadFile.config.layout = createLayoutFormat(
|
|
11266
|
+
if (config2.layout) {
|
|
11267
|
+
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
11322
11268
|
}
|
|
11323
|
-
if (
|
|
11324
|
-
DownloadFile.config.main.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.
|
|
11340
|
-
borderRadius: "
|
|
11341
|
-
padding: "0px
|
|
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: "
|
|
11383
|
-
scope: "#/properties/programType",
|
|
11335
|
+
type: "WrapperLayout",
|
|
11384
11336
|
config: {
|
|
11385
11337
|
main: {
|
|
11386
|
-
|
|
11338
|
+
columnSpacing: 0,
|
|
11339
|
+
gap: 0
|
|
11387
11340
|
},
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
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
|
-
|
|
11401
|
-
|
|
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%+
|
|
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: "
|
|
11447
|
+
justifyContent: "end"
|
|
11443
11448
|
},
|
|
11444
11449
|
imageStyle: {
|
|
11445
|
-
height: "100%",
|
|
11446
11450
|
fontSize: "none",
|
|
11447
11451
|
padding: "4px",
|
|
11448
|
-
|
|
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,
|
|
11462
|
-
const card = _.cloneDeep(Card(
|
|
11466
|
+
const buildCard = (config, componentScope, store) => {
|
|
11467
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
11463
11468
|
if (config.style) {
|
|
11464
|
-
card.config.
|
|
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 = (
|
|
11520
|
+
const buildDate = (config2, componentScope2) => {
|
|
11512
11521
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11513
|
-
dateInputField.config.main.label =
|
|
11514
|
-
dateInputField.config.main.errorMessage = `${
|
|
11515
|
-
dateInputField.scope =
|
|
11516
|
-
if (
|
|
11517
|
-
dateInputField.config.layout = createLayoutFormat(
|
|
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 = (
|
|
11530
|
+
const buildDateTime = (config2, componentScope2) => {
|
|
11522
11531
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11523
|
-
dateTimeInputField.config.main.label =
|
|
11524
|
-
dateTimeInputField.config.main.errorMessage = `${
|
|
11525
|
-
dateTimeInputField.scope =
|
|
11526
|
-
if (
|
|
11527
|
-
dateTimeInputField.config.layout = createLayoutFormat(
|
|
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:
|
|
11547
|
+
layout: { xs: 12, sm: 6, md: 6, lg: 6 },
|
|
11539
11548
|
main: {}
|
|
11540
11549
|
}
|
|
11541
11550
|
};
|
|
11542
|
-
const buildRankCard = (
|
|
11551
|
+
const buildRankCard = (config2, componentScope2) => {
|
|
11543
11552
|
const rankCard = _.cloneDeep(RankCard);
|
|
11544
|
-
rankCard.scope =
|
|
11545
|
-
if (
|
|
11546
|
-
rankCard.config.main.
|
|
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 (
|
|
11552
|
-
rankCard.config.main.
|
|
11557
|
+
if (config2.height) {
|
|
11558
|
+
rankCard.config.main.height = `${config2.height}px`;
|
|
11553
11559
|
}
|
|
11554
|
-
if (
|
|
11555
|
-
rankCard.config.
|
|
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 = (
|
|
11576
|
+
const buildRollAndDice = (config2, componentScope2) => {
|
|
11574
11577
|
const rank = _.cloneDeep(RollAndDice);
|
|
11575
|
-
if (
|
|
11576
|
-
rank.scope =
|
|
11578
|
+
if (config2.name) {
|
|
11579
|
+
rank.scope = componentScope2;
|
|
11577
11580
|
}
|
|
11578
|
-
if (
|
|
11579
|
-
rank.config.layout = createLayoutFormat(
|
|
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:
|
|
11594
|
-
lg:
|
|
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 = (
|
|
11603
|
+
const buildTimer = (config2, componentScope2) => {
|
|
11614
11604
|
const timer = _.cloneDeep(Timer);
|
|
11615
|
-
timer.scope =
|
|
11616
|
-
if (
|
|
11617
|
-
timer.config.main.label =
|
|
11605
|
+
timer.scope = componentScope2;
|
|
11606
|
+
if (config2.label) {
|
|
11607
|
+
timer.config.main.label = config2.label;
|
|
11618
11608
|
}
|
|
11619
|
-
if (
|
|
11620
|
-
timer.config.layout = createLayoutFormat(
|
|
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 = (
|
|
11631
|
+
const buildMultiSelect = (config2, componentScope2) => {
|
|
11642
11632
|
const multipleSelect = _.cloneDeep(MultipleSelect);
|
|
11643
|
-
multipleSelect.scope =
|
|
11644
|
-
if (
|
|
11645
|
-
multipleSelect.config.main.label =
|
|
11633
|
+
multipleSelect.scope = componentScope2;
|
|
11634
|
+
if (config2.label) {
|
|
11635
|
+
multipleSelect.config.main.label = config2.label;
|
|
11646
11636
|
}
|
|
11647
|
-
if (
|
|
11648
|
-
multipleSelect.config.layout = createLayoutFormat(
|
|
11637
|
+
if (config2.layout) {
|
|
11638
|
+
multipleSelect.config.layout = createLayoutFormat(config2.layout);
|
|
11649
11639
|
}
|
|
11650
|
-
if (
|
|
11651
|
-
multipleSelect.config.main.options =
|
|
11640
|
+
if (config2.value) {
|
|
11641
|
+
multipleSelect.config.main.options = config2.value;
|
|
11652
11642
|
}
|
|
11653
|
-
if (
|
|
11654
|
-
multipleSelect.config.main.lazyLoading =
|
|
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 = (
|
|
11648
|
+
const buildBasicUiSchema = (config2) => {
|
|
11659
11649
|
return {
|
|
11660
11650
|
"type": "HorizontalLayout",
|
|
11661
|
-
pageName:
|
|
11662
|
-
name:
|
|
11663
|
-
accessorKey:
|
|
11664
|
-
heading:
|
|
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 = (
|
|
11685
|
+
const buildTextArea = (config2, componentScope2) => {
|
|
11696
11686
|
const textArea = _.cloneDeep(TextArea);
|
|
11697
|
-
textArea.config.main.heading =
|
|
11698
|
-
if (
|
|
11699
|
-
textArea.config.layout = createLayoutFormat(
|
|
11687
|
+
textArea.config.main.heading = config2.label;
|
|
11688
|
+
if (config2.layout) {
|
|
11689
|
+
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11700
11690
|
}
|
|
11701
|
-
if (
|
|
11702
|
-
textArea.config.style = JSON.parse(
|
|
11691
|
+
if (config2.style) {
|
|
11692
|
+
textArea.config.style = JSON.parse(config2.style);
|
|
11703
11693
|
}
|
|
11704
|
-
if (
|
|
11705
|
-
textArea.config.main.placeholder =
|
|
11694
|
+
if (config2.placeholder) {
|
|
11695
|
+
textArea.config.main.placeholder = config2.placeholder;
|
|
11706
11696
|
}
|
|
11707
|
-
if (
|
|
11708
|
-
textArea.config.main.enableCodeEditor =
|
|
11697
|
+
if (config2.enableCodeEditor) {
|
|
11698
|
+
textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
|
|
11709
11699
|
}
|
|
11710
|
-
if (
|
|
11711
|
-
textArea.config.main.codeEditorLanguage =
|
|
11700
|
+
if (config2.codeEditorLanguage) {
|
|
11701
|
+
textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
|
|
11712
11702
|
}
|
|
11713
|
-
textArea.scope =
|
|
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 = (
|
|
11718
|
+
const buildSlider = (config2, componentScope2) => {
|
|
11729
11719
|
const slider = _.cloneDeep(cardSlider);
|
|
11730
|
-
if (
|
|
11731
|
-
slider.scope =
|
|
11720
|
+
if (config2.name) {
|
|
11721
|
+
slider.scope = componentScope2;
|
|
11732
11722
|
}
|
|
11733
|
-
if (
|
|
11734
|
-
slider.config.layout = createLayoutFormat(
|
|
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 = (
|
|
11741
|
+
const buildCheckbox = (config2, componentScope2) => {
|
|
11752
11742
|
const check = _.cloneDeep(Checkbox);
|
|
11753
|
-
check.scope =
|
|
11754
|
-
check.config.main.label =
|
|
11755
|
-
if (
|
|
11756
|
-
check.config.layout = createLayoutFormat(
|
|
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 (
|
|
11759
|
-
check.config.style = JSON.parse(
|
|
11748
|
+
if (config2.style) {
|
|
11749
|
+
check.config.style = JSON.parse(config2.style);
|
|
11760
11750
|
}
|
|
11761
11751
|
return check;
|
|
11762
11752
|
};
|
|
11763
|
-
const buildLineGraph = (
|
|
11753
|
+
const buildLineGraph = (config2, componentScope2) => {
|
|
11764
11754
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11765
|
-
if (
|
|
11766
|
-
lineGraph.config.layout = createLayoutFormat(
|
|
11755
|
+
if (config2.layout) {
|
|
11756
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11767
11757
|
}
|
|
11768
|
-
lineGraph.config.main.header =
|
|
11769
|
-
if (
|
|
11770
|
-
lineGraph.config.style.containerStyle.height =
|
|
11758
|
+
lineGraph.config.main.header = config2.heading;
|
|
11759
|
+
if (config2.height) {
|
|
11760
|
+
lineGraph.config.style.containerStyle.height = config2.height;
|
|
11771
11761
|
}
|
|
11772
|
-
if (
|
|
11773
|
-
lineGraph.config.
|
|
11762
|
+
if (config2.leftMargin) {
|
|
11763
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11764
|
+
left: config2.leftMargin
|
|
11765
|
+
};
|
|
11774
11766
|
}
|
|
11775
|
-
if (
|
|
11776
|
-
lineGraph.config.main.
|
|
11767
|
+
if (config2.bottomLabel) {
|
|
11768
|
+
lineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
11777
11769
|
}
|
|
11778
|
-
if (
|
|
11779
|
-
lineGraph.config.main.
|
|
11770
|
+
if (config2.yAxisValue) {
|
|
11771
|
+
lineGraph.config.main.yAxisValue = config2.yAxisValue;
|
|
11780
11772
|
}
|
|
11781
|
-
if (
|
|
11782
|
-
lineGraph.config.main.
|
|
11773
|
+
if (config2.xAxisValue) {
|
|
11774
|
+
lineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11783
11775
|
}
|
|
11784
|
-
if (
|
|
11785
|
-
lineGraph.config.main.
|
|
11776
|
+
if (config2.leftLabel) {
|
|
11777
|
+
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11786
11778
|
}
|
|
11787
|
-
if (
|
|
11788
|
-
lineGraph.config.main.
|
|
11779
|
+
if (config2.legendHide) {
|
|
11780
|
+
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11789
11781
|
}
|
|
11790
|
-
if (
|
|
11791
|
-
lineGraph.config.
|
|
11782
|
+
if (config2.bottomAxisAngle) {
|
|
11783
|
+
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11792
11784
|
}
|
|
11793
|
-
if (
|
|
11794
|
-
lineGraph.config.
|
|
11795
|
-
left: config.leftLabelMargin
|
|
11796
|
-
};
|
|
11785
|
+
if (config2.legendLabels) {
|
|
11786
|
+
lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
11797
11787
|
}
|
|
11798
|
-
if (
|
|
11799
|
-
lineGraph.config.style.
|
|
11788
|
+
if (config2.pieArcColors) {
|
|
11789
|
+
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11800
11790
|
}
|
|
11801
|
-
lineGraph.scope =
|
|
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 = (
|
|
11809
|
+
const buildRadio = (config2, componentScope2) => {
|
|
11820
11810
|
const Radio = _.cloneDeep(RadioUiSchema);
|
|
11821
|
-
Radio.scope =
|
|
11822
|
-
Radio.config.main.label =
|
|
11823
|
-
if (
|
|
11824
|
-
Radio.config.layout = createLayoutFormat(
|
|
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 (
|
|
11827
|
-
Radio.config.main.options =
|
|
11816
|
+
if (config2.sectionLabels) {
|
|
11817
|
+
Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
|
|
11828
11818
|
}
|
|
11829
|
-
if (
|
|
11830
|
-
Radio.config.style = JSON.parse(
|
|
11819
|
+
if (config2.style) {
|
|
11820
|
+
Radio.config.style = JSON.parse(config2.style);
|
|
11831
11821
|
}
|
|
11832
11822
|
return Radio;
|
|
11833
11823
|
};
|
|
11834
|
-
const buildEmptyBox = (
|
|
11824
|
+
const buildEmptyBox = (config2, componentScope2) => {
|
|
11835
11825
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11836
|
-
if (
|
|
11837
|
-
EmptyBox.config.layout = createLayoutFormat(
|
|
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 = (
|
|
11842
|
+
const buildArray = (config2, componentScope2) => {
|
|
11853
11843
|
const array = _.cloneDeep(ArrayUiSchema);
|
|
11854
|
-
array.scope =
|
|
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 = (
|
|
11862
|
+
const buildAdhaarField = (config2, componentScope2) => {
|
|
11873
11863
|
const inputField = _.cloneDeep(TextField);
|
|
11874
|
-
inputField.config.main.label =
|
|
11875
|
-
if (
|
|
11876
|
-
inputField.config.style = JSON.parse(
|
|
11864
|
+
inputField.config.main.label = config2.label;
|
|
11865
|
+
if (config2.style) {
|
|
11866
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11877
11867
|
}
|
|
11878
|
-
if (
|
|
11879
|
-
inputField.config.layout = createLayoutFormat(
|
|
11868
|
+
if (config2.layout) {
|
|
11869
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11880
11870
|
}
|
|
11881
|
-
inputField.config.main.errorMessage = `${
|
|
11882
|
-
inputField.scope =
|
|
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 = (
|
|
11890
|
+
const buildPanField = (config2, componentScope2) => {
|
|
11901
11891
|
const inputField = _.cloneDeep(PanField);
|
|
11902
|
-
inputField.config.main.label =
|
|
11903
|
-
if (
|
|
11904
|
-
inputField.config.style = JSON.parse(
|
|
11892
|
+
inputField.config.main.label = config2.label;
|
|
11893
|
+
if (config2.style) {
|
|
11894
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11905
11895
|
}
|
|
11906
|
-
if (
|
|
11907
|
-
inputField.config.layout = createLayoutFormat(
|
|
11896
|
+
if (config2.layout) {
|
|
11897
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11908
11898
|
}
|
|
11909
|
-
inputField.config.main.errorMessage = `${
|
|
11910
|
-
inputField.scope =
|
|
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 = (
|
|
11922
|
+
const buildFileInput = (config2, componentScope2) => {
|
|
11933
11923
|
const box = _.cloneDeep(FileInput);
|
|
11934
|
-
box.scope =
|
|
11935
|
-
box.config.main.label =
|
|
11936
|
-
if (
|
|
11937
|
-
box.config.layout = createLayoutFormat(
|
|
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 (
|
|
11940
|
-
box.config.style = JSON.parse(
|
|
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 = (
|
|
11950
|
+
const buildStepper = (config2, componentScope2) => {
|
|
11961
11951
|
const stepper = _.cloneDeep(Stepper);
|
|
11962
|
-
stepper.scope =
|
|
11963
|
-
stepper.config.main.resetButton =
|
|
11964
|
-
if (
|
|
11965
|
-
stepper.config.main.defaultButtonAvailable =
|
|
11966
|
-
}
|
|
11967
|
-
stepper.config.main.resetText =
|
|
11968
|
-
stepper.config.main.completeText =
|
|
11969
|
-
stepper.config.main.orientation =
|
|
11970
|
-
if (
|
|
11971
|
-
stepper.config.main.steps =
|
|
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 (
|
|
11976
|
-
stepper.config.layout = createLayoutFormat(
|
|
11965
|
+
if (config2.layout) {
|
|
11966
|
+
stepper.config.layout = createLayoutFormat(config2.layout);
|
|
11977
11967
|
}
|
|
11978
|
-
if (
|
|
11979
|
-
stepper.config.style = JSON.parse(
|
|
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 = (
|
|
11997
|
+
const buildPopUp = (config2, componentScope2) => {
|
|
12008
11998
|
const popup = _.cloneDeep(PopUP);
|
|
12009
|
-
popup.scope =
|
|
12010
|
-
popup.config.main.title =
|
|
12011
|
-
popup.config.main.fullScreen =
|
|
12012
|
-
popup.config.main.fullWidth =
|
|
12013
|
-
popup.config.main.maxWidth =
|
|
12014
|
-
if (
|
|
12015
|
-
popup.config.layout = createLayoutFormat(
|
|
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 (
|
|
12018
|
-
PopUP.config.style = JSON.parse(
|
|
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 = (
|
|
12028
|
+
const buildDataGrid = (config2, componentScope2) => {
|
|
12039
12029
|
const DataGrid = _.cloneDeep(dataGrid);
|
|
12040
|
-
DataGrid.scope =
|
|
12041
|
-
if (
|
|
12042
|
-
DataGrid.config.main.elevation = +
|
|
12030
|
+
DataGrid.scope = componentScope2;
|
|
12031
|
+
if (config2.elevation) {
|
|
12032
|
+
DataGrid.config.main.elevation = +config2.elevation;
|
|
12043
12033
|
}
|
|
12044
|
-
DataGrid.config.main.divider =
|
|
12045
|
-
if (
|
|
12046
|
-
DataGrid.config.main.height = `${
|
|
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 (
|
|
12049
|
-
DataGrid.config.main.justifyContent =
|
|
12038
|
+
if (config2.justifyContent) {
|
|
12039
|
+
DataGrid.config.main.justifyContent = config2.justifyContent;
|
|
12050
12040
|
}
|
|
12051
|
-
if (
|
|
12052
|
-
DataGrid.config.main.label =
|
|
12041
|
+
if (config2.label) {
|
|
12042
|
+
DataGrid.config.main.label = config2.label;
|
|
12053
12043
|
}
|
|
12054
|
-
if (
|
|
12055
|
-
DataGrid.config.layout = createLayoutFormat(
|
|
12044
|
+
if (config2.layout) {
|
|
12045
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
12056
12046
|
}
|
|
12057
|
-
if (
|
|
12058
|
-
DataGrid.config.cardLayout = createLayoutFormat(
|
|
12047
|
+
if (config2.cardLayout) {
|
|
12048
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
12059
12049
|
}
|
|
12060
|
-
if (
|
|
12061
|
-
DataGrid.config.style = JSON.parse(
|
|
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 = (
|
|
12072
|
+
const buildInputSlider = (config2, componentScope2) => {
|
|
12083
12073
|
const inputSlider = _.cloneDeep(InputSlider);
|
|
12084
|
-
inputSlider.scope =
|
|
12085
|
-
inputSlider.config.main.label =
|
|
12086
|
-
if (
|
|
12087
|
-
inputSlider.config.layout = createLayoutFormat(
|
|
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 (
|
|
12090
|
-
inputSlider.config.main.limitToMax =
|
|
12079
|
+
if (config2.limitToMax) {
|
|
12080
|
+
inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
|
|
12091
12081
|
}
|
|
12092
|
-
if (
|
|
12093
|
-
inputSlider.config.main.max =
|
|
12082
|
+
if (config2.max) {
|
|
12083
|
+
inputSlider.config.main.max = config2.max;
|
|
12094
12084
|
}
|
|
12095
|
-
if (
|
|
12096
|
-
inputSlider.config.main.step =
|
|
12085
|
+
if (config2.step) {
|
|
12086
|
+
inputSlider.config.main.step = config2.step;
|
|
12097
12087
|
}
|
|
12098
|
-
if (
|
|
12099
|
-
inputSlider.config.main.min =
|
|
12088
|
+
if (config2.min) {
|
|
12089
|
+
inputSlider.config.main.min = config2.min;
|
|
12100
12090
|
}
|
|
12101
|
-
if (
|
|
12102
|
-
inputSlider.config.main.defaultStyle = JSON.parse(
|
|
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 = (
|
|
12118
|
+
const buildTreeMap = (config2, componentScope2) => {
|
|
12129
12119
|
const treMap = _.cloneDeep(TreeMap);
|
|
12130
|
-
treMap.scope =
|
|
12131
|
-
if (
|
|
12132
|
-
treMap.config.main.header =
|
|
12120
|
+
treMap.scope = componentScope2;
|
|
12121
|
+
if (config2.label) {
|
|
12122
|
+
treMap.config.main.header = config2.label;
|
|
12133
12123
|
}
|
|
12134
|
-
if (
|
|
12135
|
-
treMap.config.layout = createLayoutFormat(
|
|
12124
|
+
if (config2.layout) {
|
|
12125
|
+
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
12136
12126
|
}
|
|
12137
|
-
if (
|
|
12138
|
-
treMap.config.main.orientation =
|
|
12127
|
+
if (config2.orientation) {
|
|
12128
|
+
treMap.config.main.orientation = config2.orientation;
|
|
12139
12129
|
}
|
|
12140
|
-
if (
|
|
12141
|
-
treMap.config.main.linkType =
|
|
12130
|
+
if (config2.linkType) {
|
|
12131
|
+
treMap.config.main.linkType = config2.linkType;
|
|
12142
12132
|
}
|
|
12143
|
-
if (
|
|
12144
|
-
treMap.config.main.graphHeight =
|
|
12133
|
+
if (config2.graphHeight) {
|
|
12134
|
+
treMap.config.main.graphHeight = config2.graphHeight;
|
|
12145
12135
|
}
|
|
12146
|
-
if (
|
|
12147
|
-
treMap.config.main.graphWidth =
|
|
12136
|
+
if (config2.graphWidth) {
|
|
12137
|
+
treMap.config.main.graphWidth = config2.graphWidth;
|
|
12148
12138
|
}
|
|
12149
|
-
if (
|
|
12150
|
-
treMap.config.main.graphZoomHeight =
|
|
12139
|
+
if (config2.graphZoomHeight) {
|
|
12140
|
+
treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
|
|
12151
12141
|
}
|
|
12152
|
-
if (
|
|
12153
|
-
treMap.config.main.graphZoomWidth =
|
|
12142
|
+
if (config2.graphZoomWidth) {
|
|
12143
|
+
treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
|
|
12154
12144
|
}
|
|
12155
|
-
if (
|
|
12156
|
-
treMap.config.style = JSON.parse(
|
|
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 = (
|
|
12250
|
-
buildRule(
|
|
12251
|
-
if (
|
|
12252
|
-
if (
|
|
12253
|
-
if (!schema.properties[
|
|
12254
|
-
schema.properties[
|
|
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
|
-
|
|
12264
|
-
buildSchema(e,
|
|
12281
|
+
config2.elements.map((e, elemInd) => {
|
|
12282
|
+
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
12265
12283
|
});
|
|
12266
12284
|
} else {
|
|
12267
|
-
|
|
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 = (
|
|
12292
|
+
const buildUiSchema = (config2, store2) => {
|
|
12275
12293
|
let elements = {};
|
|
12276
|
-
const
|
|
12277
|
-
switch (
|
|
12294
|
+
const componentScope2 = `#/properties/${config2.name}`;
|
|
12295
|
+
switch (config2.type) {
|
|
12278
12296
|
case "TreeMap":
|
|
12279
|
-
elements = buildTreeMap(
|
|
12297
|
+
elements = buildTreeMap(config2, componentScope2);
|
|
12280
12298
|
break;
|
|
12281
12299
|
case "DateTime":
|
|
12282
|
-
elements = buildDateTime(
|
|
12300
|
+
elements = buildDateTime(config2, componentScope2);
|
|
12283
12301
|
break;
|
|
12284
12302
|
case "InputSlider":
|
|
12285
|
-
elements = buildInputSlider(
|
|
12303
|
+
elements = buildInputSlider(config2, componentScope2);
|
|
12286
12304
|
break;
|
|
12287
12305
|
case "DataGrid":
|
|
12288
|
-
elements = buildDataGrid(
|
|
12306
|
+
elements = buildDataGrid(config2, componentScope2);
|
|
12289
12307
|
break;
|
|
12290
12308
|
case "Stepper":
|
|
12291
|
-
elements = buildStepper(
|
|
12309
|
+
elements = buildStepper(config2, componentScope2);
|
|
12292
12310
|
break;
|
|
12293
12311
|
case "PopUp":
|
|
12294
|
-
elements = buildPopUp(
|
|
12312
|
+
elements = buildPopUp(config2, componentScope2);
|
|
12295
12313
|
break;
|
|
12296
12314
|
case "FileInput":
|
|
12297
|
-
elements = buildFileInput(
|
|
12315
|
+
elements = buildFileInput(config2, componentScope2);
|
|
12298
12316
|
break;
|
|
12299
12317
|
case "AadharcardText":
|
|
12300
|
-
elements = buildAdhaarField(
|
|
12318
|
+
elements = buildAdhaarField(config2, componentScope2);
|
|
12301
12319
|
break;
|
|
12302
12320
|
case "PanCardText":
|
|
12303
|
-
elements = buildPanField(
|
|
12321
|
+
elements = buildPanField(config2, componentScope2);
|
|
12304
12322
|
break;
|
|
12305
12323
|
case "TabSection":
|
|
12306
|
-
elements = buildTabSection(
|
|
12324
|
+
elements = buildTabSection(config2, componentScope2);
|
|
12307
12325
|
break;
|
|
12308
12326
|
case "RunnerBoyProgressBar":
|
|
12309
|
-
elements = RunnerBoyProgressbar(
|
|
12327
|
+
elements = RunnerBoyProgressbar(config2, componentScope2);
|
|
12310
12328
|
break;
|
|
12311
12329
|
case "WrapperSection":
|
|
12312
|
-
elements = buildWrapperSection(
|
|
12330
|
+
elements = buildWrapperSection(config2, componentScope2);
|
|
12313
12331
|
break;
|
|
12314
12332
|
case "Text":
|
|
12315
|
-
elements = buildTextField(
|
|
12333
|
+
elements = buildTextField(config2, componentScope2);
|
|
12316
12334
|
break;
|
|
12317
12335
|
case "TextArea":
|
|
12318
|
-
elements = buildTextArea(
|
|
12336
|
+
elements = buildTextArea(config2, componentScope2);
|
|
12319
12337
|
break;
|
|
12320
12338
|
case "Date":
|
|
12321
|
-
elements = buildDate(
|
|
12339
|
+
elements = buildDate(config2, componentScope2);
|
|
12322
12340
|
break;
|
|
12323
12341
|
case "Select":
|
|
12324
|
-
elements = buildSelect(
|
|
12342
|
+
elements = buildSelect(config2, componentScope2);
|
|
12325
12343
|
break;
|
|
12326
12344
|
case "Radio":
|
|
12327
|
-
elements = buildRadio(
|
|
12345
|
+
elements = buildRadio(config2, componentScope2);
|
|
12328
12346
|
break;
|
|
12329
12347
|
case "Button":
|
|
12330
|
-
elements = buildButton(
|
|
12348
|
+
elements = buildButton(config2, componentScope2);
|
|
12331
12349
|
break;
|
|
12332
12350
|
case "Table":
|
|
12333
|
-
elements = buildTable(
|
|
12351
|
+
elements = buildTable(config2, componentScope2);
|
|
12334
12352
|
break;
|
|
12335
12353
|
case "Array":
|
|
12336
|
-
elements = buildArray(
|
|
12354
|
+
elements = buildArray(config2, componentScope2);
|
|
12337
12355
|
break;
|
|
12338
12356
|
case "Box":
|
|
12339
|
-
elements = buildLabel(
|
|
12357
|
+
elements = buildLabel(config2, componentScope2);
|
|
12340
12358
|
break;
|
|
12341
12359
|
case "CheckBox":
|
|
12342
|
-
elements = buildCheckbox(
|
|
12360
|
+
elements = buildCheckbox(config2, componentScope2);
|
|
12343
12361
|
break;
|
|
12344
12362
|
case "UploadFile":
|
|
12345
|
-
elements = buildUploadFile(
|
|
12363
|
+
elements = buildUploadFile(config2, componentScope2);
|
|
12346
12364
|
break;
|
|
12347
12365
|
case "DownloadFile":
|
|
12348
|
-
elements = buildDownloadFile(
|
|
12366
|
+
elements = buildDownloadFile(config2, componentScope2);
|
|
12349
12367
|
break;
|
|
12350
12368
|
case "EmptyBox":
|
|
12351
|
-
elements = buildEmptyBox(
|
|
12369
|
+
elements = buildEmptyBox(config2);
|
|
12352
12370
|
break;
|
|
12353
12371
|
case "card":
|
|
12354
|
-
elements = buildCard(
|
|
12372
|
+
elements = buildCard(config2, componentScope2, store2);
|
|
12355
12373
|
break;
|
|
12356
12374
|
case "Graph":
|
|
12357
|
-
switch (
|
|
12375
|
+
switch (config2.graphType) {
|
|
12358
12376
|
case "BarGraph":
|
|
12359
12377
|
case "StackBarGraph":
|
|
12360
|
-
elements = buildStackbarGraph(
|
|
12378
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
12361
12379
|
break;
|
|
12362
12380
|
case "LineGraph":
|
|
12363
|
-
elements = buildLineGraph(
|
|
12381
|
+
elements = buildLineGraph(config2, componentScope2);
|
|
12364
12382
|
break;
|
|
12365
12383
|
case "PieGraph":
|
|
12366
|
-
elements = buildPieGraph(
|
|
12384
|
+
elements = buildPieGraph(config2, componentScope2);
|
|
12367
12385
|
break;
|
|
12368
12386
|
case "HorizontalBarGraph":
|
|
12369
12387
|
case "HorizontalStackBarGraph":
|
|
12370
|
-
elements = buildHorizontalBarGraph(
|
|
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(
|
|
12396
|
+
elements = buildProgressBar(config2, componentScope2);
|
|
12376
12397
|
break;
|
|
12377
12398
|
case "SpeedoMeter":
|
|
12378
|
-
elements = buildSpeedoMeter(
|
|
12399
|
+
elements = buildSpeedoMeter(config2, componentScope2);
|
|
12379
12400
|
break;
|
|
12380
12401
|
case "ProgressBarCard":
|
|
12381
|
-
elements = buildProgressBarCard(
|
|
12402
|
+
elements = buildProgressBarCard(config2, componentScope2);
|
|
12382
12403
|
break;
|
|
12383
12404
|
case "RankCard":
|
|
12384
|
-
elements = buildRankCard(
|
|
12405
|
+
elements = buildRankCard(config2, componentScope2);
|
|
12385
12406
|
break;
|
|
12386
12407
|
case "Rank":
|
|
12387
|
-
elements = buildRollAndDice(
|
|
12408
|
+
elements = buildRollAndDice(config2, componentScope2);
|
|
12388
12409
|
break;
|
|
12389
12410
|
case "Slider":
|
|
12390
|
-
elements = buildSlider(
|
|
12411
|
+
elements = buildSlider(config2, componentScope2);
|
|
12391
12412
|
break;
|
|
12392
12413
|
case "Timer":
|
|
12393
|
-
elements = buildTimer(
|
|
12414
|
+
elements = buildTimer(config2, componentScope2);
|
|
12394
12415
|
break;
|
|
12395
12416
|
case "ColumnGroup":
|
|
12396
12417
|
elements = {
|
|
12397
|
-
accessorKey:
|
|
12398
|
-
header:
|
|
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(
|
|
12424
|
+
elements = buildMultiSelect(config2, componentScope2);
|
|
12404
12425
|
break;
|
|
12405
12426
|
case "LeaderBoard":
|
|
12406
|
-
elements = buildLeaderBoard(
|
|
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(
|
|
12438
|
+
elements = buildBasicUiSchema(config2);
|
|
12415
12439
|
}
|
|
12416
|
-
if (
|
|
12417
|
-
if ((
|
|
12440
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12441
|
+
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12418
12442
|
return elements;
|
|
12419
|
-
} else if (
|
|
12443
|
+
} else if (config2.type == "ColumnGroup") {
|
|
12420
12444
|
const sizeMap = {};
|
|
12421
|
-
if (
|
|
12422
|
-
|
|
12445
|
+
if (config2.sizeHolder) {
|
|
12446
|
+
config2.sizeHolder.map((e, i) => {
|
|
12423
12447
|
sizeMap[e.keyName] = e.value;
|
|
12424
12448
|
});
|
|
12425
12449
|
}
|
|
12426
|
-
elements.elements =
|
|
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 (
|
|
12459
|
+
} else if (config2.type == "Table") {
|
|
12436
12460
|
const sizeMap = {};
|
|
12437
12461
|
const filterMap = {};
|
|
12438
|
-
if (
|
|
12439
|
-
|
|
12462
|
+
if (config2.sizeHolder) {
|
|
12463
|
+
config2.sizeHolder.map((e, i) => {
|
|
12440
12464
|
sizeMap[e.keyName] = e.value;
|
|
12441
12465
|
});
|
|
12442
12466
|
}
|
|
12443
|
-
if (
|
|
12444
|
-
|
|
12467
|
+
if (config2.enableColumnFilter) {
|
|
12468
|
+
config2.enableColumnFilter.map((e) => {
|
|
12445
12469
|
filterMap[e.keyName] = true;
|
|
12446
12470
|
});
|
|
12447
12471
|
}
|
|
12448
|
-
elements.elements =
|
|
12449
|
-
var _a
|
|
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
|
-
|
|
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 (
|
|
12473
|
-
elements.options.detail.elements =
|
|
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 =
|
|
12499
|
+
elements.elements = config2.elements.map((e, elemInd) => {
|
|
12478
12500
|
return buildUiSchema(e, store2);
|
|
12479
12501
|
});
|
|
12480
12502
|
}
|