@mjhls/mjh-framework 1.0.1050-pdfGating → 1.0.1050-pdfGating-v2
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.
|
@@ -646,6 +646,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
646
646
|
}, [activeYear, activeContentPlacement, issueData]);
|
|
647
647
|
|
|
648
648
|
var handleFormInput = function handleFormInput(e) {
|
|
649
|
+
console.dir(e.currentTarget);
|
|
649
650
|
switch (e.currentTarget.name) {
|
|
650
651
|
case 'firstName':
|
|
651
652
|
setFirstName(e.currentTarget.value);
|
|
@@ -657,12 +658,15 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
657
658
|
setEmail(e.currentTarget.value);
|
|
658
659
|
break;
|
|
659
660
|
default:
|
|
661
|
+
console.log(e.currentTarget.dataset['key']);
|
|
660
662
|
closeOverlay(e.currentTarget.dataset['key']);
|
|
661
663
|
break;
|
|
662
664
|
}
|
|
663
665
|
};
|
|
664
666
|
|
|
665
667
|
var closeOverlay = function closeOverlay(key) {
|
|
668
|
+
console.dir(overLayRef);
|
|
669
|
+
console.log(key);
|
|
666
670
|
overLayRef.current[key].handleHide();
|
|
667
671
|
};
|
|
668
672
|
|
|
@@ -847,13 +851,13 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
847
851
|
Button__default["default"],
|
|
848
852
|
{ disabled: sendingData, className: 'btn btn-primary mb-3', type: 'submit' },
|
|
849
853
|
'Submit'
|
|
850
|
-
)
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
)
|
|
854
|
+
)
|
|
855
|
+
),
|
|
856
|
+
errorMsg ? React__default["default"].createElement(
|
|
857
|
+
'div',
|
|
858
|
+
{ style: { color: 'red' } },
|
|
859
|
+
errorMsg
|
|
860
|
+
) : null
|
|
857
861
|
)
|
|
858
862
|
)
|
|
859
863
|
);
|
|
@@ -1098,7 +1102,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
1098
1102
|
React__default["default"].createElement(
|
|
1099
1103
|
'style',
|
|
1100
1104
|
{ jsx: 'true' },
|
|
1101
|
-
'\n .gatedPdfForm {\n justify-content: center;\n }\n .popoverClose {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n .popoverClose button {\n border: none;\n background: transparent;\n color: #2780e3;\n }\n .card-footer button:not(:first-child) {\n color: #fff;\n margin-left: 1rem;\n }\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|
|
1105
|
+
'\n .gatedPdfForm {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0 2rem;\n }\n .popoverClose {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n .popoverClose button {\n border: none;\n background: transparent;\n color: #2780e3;\n }\n .card-footer button:not(:first-child) {\n color: #fff;\n margin-left: 1rem;\n }\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|
|
1102
1106
|
)
|
|
1103
1107
|
);
|
|
1104
1108
|
};
|
|
@@ -632,6 +632,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
632
632
|
}, [activeYear, activeContentPlacement, issueData]);
|
|
633
633
|
|
|
634
634
|
var handleFormInput = function handleFormInput(e) {
|
|
635
|
+
console.dir(e.currentTarget);
|
|
635
636
|
switch (e.currentTarget.name) {
|
|
636
637
|
case 'firstName':
|
|
637
638
|
setFirstName(e.currentTarget.value);
|
|
@@ -643,12 +644,15 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
643
644
|
setEmail(e.currentTarget.value);
|
|
644
645
|
break;
|
|
645
646
|
default:
|
|
647
|
+
console.log(e.currentTarget.dataset['key']);
|
|
646
648
|
closeOverlay(e.currentTarget.dataset['key']);
|
|
647
649
|
break;
|
|
648
650
|
}
|
|
649
651
|
};
|
|
650
652
|
|
|
651
653
|
var closeOverlay = function closeOverlay(key) {
|
|
654
|
+
console.dir(overLayRef);
|
|
655
|
+
console.log(key);
|
|
652
656
|
overLayRef.current[key].handleHide();
|
|
653
657
|
};
|
|
654
658
|
|
|
@@ -833,13 +837,13 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
833
837
|
Button,
|
|
834
838
|
{ disabled: sendingData, className: 'btn btn-primary mb-3', type: 'submit' },
|
|
835
839
|
'Submit'
|
|
836
|
-
)
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
)
|
|
840
|
+
)
|
|
841
|
+
),
|
|
842
|
+
errorMsg ? React__default.createElement(
|
|
843
|
+
'div',
|
|
844
|
+
{ style: { color: 'red' } },
|
|
845
|
+
errorMsg
|
|
846
|
+
) : null
|
|
843
847
|
)
|
|
844
848
|
)
|
|
845
849
|
);
|
|
@@ -1084,7 +1088,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
1084
1088
|
React__default.createElement(
|
|
1085
1089
|
'style',
|
|
1086
1090
|
{ jsx: 'true' },
|
|
1087
|
-
'\n .gatedPdfForm {\n justify-content: center;\n }\n .popoverClose {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n .popoverClose button {\n border: none;\n background: transparent;\n color: #2780e3;\n }\n .card-footer button:not(:first-child) {\n color: #fff;\n margin-left: 1rem;\n }\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|
|
1091
|
+
'\n .gatedPdfForm {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0 2rem;\n }\n .popoverClose {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n .popoverClose button {\n border: none;\n background: transparent;\n color: #2780e3;\n }\n .card-footer button:not(:first-child) {\n color: #fff;\n margin-left: 1rem;\n }\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|
|
1088
1092
|
)
|
|
1089
1093
|
);
|
|
1090
1094
|
};
|