@mjhls/mjh-framework 1.0.207 → 1.0.208
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/README.md +1 -1
- package/dist/cjs/index.js +9 -5
- package/dist/esm/index.js +9 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -10163,8 +10163,12 @@ var Poll = function Poll(_ref) {
|
|
|
10163
10163
|
};
|
|
10164
10164
|
|
|
10165
10165
|
var choicesTotalCount = choices && choices.reduce(function (acc, choice) {
|
|
10166
|
-
|
|
10167
|
-
|
|
10166
|
+
if (choice.choiceCount) {
|
|
10167
|
+
acc = acc + parseInt(choice.choiceCount);
|
|
10168
|
+
return acc;
|
|
10169
|
+
} else {
|
|
10170
|
+
return acc;
|
|
10171
|
+
}
|
|
10168
10172
|
}, 0);
|
|
10169
10173
|
return React__default.createElement(
|
|
10170
10174
|
React__default.Fragment,
|
|
@@ -10203,7 +10207,7 @@ var Poll = function Poll(_ref) {
|
|
|
10203
10207
|
'div',
|
|
10204
10208
|
{ className: 'progress-container' },
|
|
10205
10209
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
10206
|
-
var percentage = choicesTotalCount && choicesTotalCount > 0 ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0;
|
|
10210
|
+
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
10207
10211
|
return React__default.createElement(
|
|
10208
10212
|
'div',
|
|
10209
10213
|
{ key: choice._key, className: 'mb-3' },
|
|
@@ -10218,7 +10222,7 @@ var Poll = function Poll(_ref) {
|
|
|
10218
10222
|
{ className: 'float-right' },
|
|
10219
10223
|
percentage,
|
|
10220
10224
|
'% (',
|
|
10221
|
-
choice.choiceCount,
|
|
10225
|
+
choice.choiceCount ? choice.choiceCount : 0,
|
|
10222
10226
|
' Votes)'
|
|
10223
10227
|
)
|
|
10224
10228
|
);
|
|
@@ -11760,7 +11764,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
11760
11764
|
React__default.createElement(
|
|
11761
11765
|
'style',
|
|
11762
11766
|
{ jsx: 'true' },
|
|
11763
|
-
'\n .article-hero-container {\n display: flex;\n
|
|
11767
|
+
'\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
|
|
11764
11768
|
)
|
|
11765
11769
|
);
|
|
11766
11770
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -10161,8 +10161,12 @@ var Poll = function Poll(_ref) {
|
|
|
10161
10161
|
};
|
|
10162
10162
|
|
|
10163
10163
|
var choicesTotalCount = choices && choices.reduce(function (acc, choice) {
|
|
10164
|
-
|
|
10165
|
-
|
|
10164
|
+
if (choice.choiceCount) {
|
|
10165
|
+
acc = acc + parseInt(choice.choiceCount);
|
|
10166
|
+
return acc;
|
|
10167
|
+
} else {
|
|
10168
|
+
return acc;
|
|
10169
|
+
}
|
|
10166
10170
|
}, 0);
|
|
10167
10171
|
return React__default.createElement(
|
|
10168
10172
|
React__default.Fragment,
|
|
@@ -10201,7 +10205,7 @@ var Poll = function Poll(_ref) {
|
|
|
10201
10205
|
'div',
|
|
10202
10206
|
{ className: 'progress-container' },
|
|
10203
10207
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
10204
|
-
var percentage = choicesTotalCount && choicesTotalCount > 0 ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0;
|
|
10208
|
+
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
10205
10209
|
return React__default.createElement(
|
|
10206
10210
|
'div',
|
|
10207
10211
|
{ key: choice._key, className: 'mb-3' },
|
|
@@ -10216,7 +10220,7 @@ var Poll = function Poll(_ref) {
|
|
|
10216
10220
|
{ className: 'float-right' },
|
|
10217
10221
|
percentage,
|
|
10218
10222
|
'% (',
|
|
10219
|
-
choice.choiceCount,
|
|
10223
|
+
choice.choiceCount ? choice.choiceCount : 0,
|
|
10220
10224
|
' Votes)'
|
|
10221
10225
|
)
|
|
10222
10226
|
);
|
|
@@ -11758,7 +11762,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
11758
11762
|
React__default.createElement(
|
|
11759
11763
|
'style',
|
|
11760
11764
|
{ jsx: 'true' },
|
|
11761
|
-
'\n .article-hero-container {\n display: flex;\n
|
|
11765
|
+
'\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
|
|
11762
11766
|
)
|
|
11763
11767
|
);
|
|
11764
11768
|
};
|