@mjhls/mjh-framework 1.0.981 → 1.0.982-ptce-profession-v1
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/cjs/AlgoliaSearch.js +140 -18
- package/dist/cjs/Auth.js +20 -17
- package/dist/cjs/AuthWrapper.js +18 -12
- package/dist/cjs/CMEDeck.js +5 -1
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/Dfp-9be904d5.js +1 -1
- package/dist/cjs/GridContentPaginated.js +1 -2
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeckPaginated.js +1 -2
- package/dist/cjs/{MediaSeriesCard-958db77e.js → MediaSeriesCard-d6a5fc83.js} +64 -42
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -3
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/Pagination-2a3d0103.js +97 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- package/dist/cjs/View.js +72 -31
- package/dist/cjs/getPtceActivities.js +13 -5
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +142 -20
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +20 -18
- package/dist/esm/AuthWrapper.js +19 -13
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +6 -2
- package/dist/esm/Column1.js +1 -2
- package/dist/esm/Column2.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +2 -3
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +2 -3
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +1 -1
- package/dist/esm/GridContentPaginated.js +2 -3
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +1 -2
- package/dist/esm/Header.js +1 -2
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +1 -1
- package/dist/esm/MasterDeckPaginated.js +2 -3
- package/dist/esm/{MediaSeriesCard-4279b0c5.js → MediaSeriesCard-41efffe9.js} +64 -42
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +3 -4
- package/dist/esm/NavDvm.js +1 -2
- package/dist/esm/NavMagazine.js +1 -2
- package/dist/esm/NavNative.js +1 -2
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-dc30727b.js +90 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -3
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +1 -1
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -3
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/RelatedTopicsDropdown.js +1 -1
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +1 -1
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +73 -31
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getPtceActivities.js +13 -5
- package/dist/esm/getQuery.js +4 -4
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
- package/dist/esm/Pagination-cd21f8c2.js +0 -82
package/dist/esm/View.js
CHANGED
|
@@ -28,7 +28,7 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import { DiscussionEmbed } from 'disqus-react';
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
|
-
import
|
|
31
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
32
32
|
import { PixelTrackingArticle } from './PixelTracking.js';
|
|
33
33
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
34
34
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
@@ -36,7 +36,6 @@ import { l as lib_3 } from './index-f0fc23eb.js';
|
|
|
36
36
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
37
37
|
import getQuery from './getQuery.js';
|
|
38
38
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
39
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
40
39
|
import './core.get-iterator-method-ea258bb1.js';
|
|
41
40
|
import './web.dom.iterable-ab4dea5c.js';
|
|
42
41
|
import './_library-528f1934.js';
|
|
@@ -463,6 +462,12 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
463
462
|
return showSocialShare;
|
|
464
463
|
};
|
|
465
464
|
|
|
465
|
+
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
466
|
+
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
});
|
|
470
|
+
|
|
466
471
|
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}";
|
|
467
472
|
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
468
473
|
styleInject(css);
|
|
@@ -1093,6 +1098,15 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1093
1098
|
}, client.config()));
|
|
1094
1099
|
}
|
|
1095
1100
|
};
|
|
1101
|
+
|
|
1102
|
+
var getAbstract = function getAbstract() {
|
|
1103
|
+
return article.abstract && article.abstract.map(function (block) {
|
|
1104
|
+
if (block.children) return block.children.map(function (child) {
|
|
1105
|
+
if (child._type === 'span') return child.text;
|
|
1106
|
+
});
|
|
1107
|
+
}).join(' ');
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1096
1110
|
var renderIsiContent = function renderIsiContent(article) {
|
|
1097
1111
|
var url = article.url.current;
|
|
1098
1112
|
|
|
@@ -1112,7 +1126,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1112
1126
|
}
|
|
1113
1127
|
if (authorDetails && authorDetails.length) {
|
|
1114
1128
|
authorDetails.map(function (authorDetail, index) {
|
|
1115
|
-
return fileContent += 'AU - ' + authorDetail.displayName + '\n';
|
|
1129
|
+
return fileContent += 'AU - ' + (authorDetail.firstName && authorDetail.lastName ? authorDetail.lastName + ', ' + authorDetail.firstName : '' + authorDetail.displayName) + '\n';
|
|
1116
1130
|
} //Author
|
|
1117
1131
|
);
|
|
1118
1132
|
}
|
|
@@ -1120,10 +1134,14 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1120
1134
|
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
1121
1135
|
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
1122
1136
|
}
|
|
1137
|
+
if (issue.name) {
|
|
1138
|
+
fileContent += 'T3 - ' + issue.name + '\n'; //Issue Name - T3
|
|
1139
|
+
}
|
|
1123
1140
|
if (issue.abbreviatedJournal) {
|
|
1124
1141
|
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1125
1142
|
}
|
|
1126
|
-
if (article.
|
|
1143
|
+
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
|
|
1144
|
+
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
|
|
1127
1145
|
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1128
1146
|
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1129
1147
|
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
@@ -1151,10 +1169,19 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1151
1169
|
fileContent += 'ER -\n'; //End of Record
|
|
1152
1170
|
return fileContent;
|
|
1153
1171
|
};
|
|
1172
|
+
var getAuthorList = function getAuthorList() {
|
|
1173
|
+
var authorList = '';
|
|
1174
|
+
if (authorDetails && authorDetails.length > 0) {
|
|
1175
|
+
authorDetails.map(function (author) {
|
|
1176
|
+
if (author.lastName && author.firstName) authorList += author.lastName + ',' + author.firstName + ';';else if (author.displayName) authorList += author.displayName + ';';
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
return authorList;
|
|
1180
|
+
};
|
|
1154
1181
|
var downloadRIS = function downloadRIS() {
|
|
1155
1182
|
var fileContent = generateRIS();
|
|
1156
1183
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1157
|
-
|
|
1184
|
+
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
1158
1185
|
};
|
|
1159
1186
|
|
|
1160
1187
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -1617,6 +1644,17 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1617
1644
|
React__default.createElement(
|
|
1618
1645
|
'div',
|
|
1619
1646
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1647
|
+
issue && React__default.createElement(
|
|
1648
|
+
Head,
|
|
1649
|
+
null,
|
|
1650
|
+
article.title && React__default.createElement('meta', { name: 'citation_title', content: article.title }),
|
|
1651
|
+
published && React__default.createElement('meta', { name: 'citation_date', content: moment(published).format('LL') }),
|
|
1652
|
+
issue.year && React__default.createElement('meta', { name: 'citation_year', content: issue.year }),
|
|
1653
|
+
issue.isbn_issn && React__default.createElement('meta', { name: 'citation_isbn', content: issue.isbn_issn }),
|
|
1654
|
+
article.abstract && React__default.createElement('meta', { name: 'citation_abstract', content: getAbstract() }),
|
|
1655
|
+
React__default.createElement('meta', { name: 'citation_author', content: getAuthorList() }),
|
|
1656
|
+
issue.pdf && React__default.createElement('meta', { name: 'citation_pdf_url', content: urlForFile({ asset: issue.pdf }) })
|
|
1657
|
+
),
|
|
1620
1658
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1621
1659
|
!isVideoSeries && React__default.createElement(
|
|
1622
1660
|
'div',
|
|
@@ -1638,7 +1676,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1638
1676
|
React__default.createElement(
|
|
1639
1677
|
'style',
|
|
1640
1678
|
{ jsx: 'true' },
|
|
1641
|
-
'\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
|
|
1679
|
+
'\n .social-ris-container {\n display: flex;\n justify-content: space-between;\n }\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n .social-ris-container {\n flex-direction: column;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n .left-wrap {\n width: 100%;\n }\n '
|
|
1642
1680
|
),
|
|
1643
1681
|
React__default.createElement(
|
|
1644
1682
|
'div',
|
|
@@ -1722,23 +1760,34 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1722
1760
|
'Pages: ' + pageNumber
|
|
1723
1761
|
)
|
|
1724
1762
|
),
|
|
1725
|
-
|
|
1726
|
-
'
|
|
1727
|
-
|
|
1728
|
-
React__default.createElement(
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1763
|
+
React__default.createElement(
|
|
1764
|
+
'div',
|
|
1765
|
+
{ className: 'social-ris-container' },
|
|
1766
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1767
|
+
'p',
|
|
1768
|
+
null,
|
|
1769
|
+
React__default.createElement(SocialShare, {
|
|
1770
|
+
shareUrl: shareUrl,
|
|
1771
|
+
shareTitle: shareTitle,
|
|
1772
|
+
shareVia: shareVia,
|
|
1773
|
+
shareSummary: shareSummary,
|
|
1774
|
+
shareSubject: shareSubject,
|
|
1775
|
+
shareImage: shareImage,
|
|
1776
|
+
size: 32,
|
|
1777
|
+
siteName: siteName,
|
|
1778
|
+
twitterSiteName: twitterSiteName,
|
|
1779
|
+
disableMeta: true,
|
|
1780
|
+
hidePinterest: hidePinterestShare,
|
|
1781
|
+
hideFacebook: hideFBShare
|
|
1782
|
+
})
|
|
1783
|
+
),
|
|
1784
|
+
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1785
|
+
Button,
|
|
1786
|
+
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1787
|
+
return downloadRIS();
|
|
1788
|
+
} },
|
|
1789
|
+
'Download RIS'
|
|
1790
|
+
)
|
|
1742
1791
|
)
|
|
1743
1792
|
),
|
|
1744
1793
|
React__default.createElement(
|
|
@@ -1806,13 +1855,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1806
1855
|
React__default.createElement(
|
|
1807
1856
|
'div',
|
|
1808
1857
|
{ className: 'downloads-container' },
|
|
1809
|
-
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1810
|
-
Button,
|
|
1811
|
-
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1812
|
-
return downloadRIS();
|
|
1813
|
-
} },
|
|
1814
|
-
'Download RIS'
|
|
1815
|
-
),
|
|
1816
1858
|
issue && issue.pdf && React__default.createElement(
|
|
1817
1859
|
'a',
|
|
1818
1860
|
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
@@ -2551,4 +2593,4 @@ View.returnGetInitialProps = function () {
|
|
|
2551
2593
|
};
|
|
2552
2594
|
}();
|
|
2553
2595
|
|
|
2554
|
-
export default
|
|
2596
|
+
export { View as default };
|
package/dist/esm/YahooHero.js
CHANGED
package/dist/esm/YoutubeGroup.js
CHANGED
package/dist/esm/getKeywords.js
CHANGED
|
@@ -7,6 +7,8 @@ import './_iter-detect-98db3b07.js';
|
|
|
7
7
|
|
|
8
8
|
var getPtceActivities = function () {
|
|
9
9
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(params) {
|
|
10
|
+
var filterProfession = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11
|
+
var filterQuery = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
10
12
|
var hasMore, response, data;
|
|
11
13
|
return regenerator.wrap(function _callee$(_context) {
|
|
12
14
|
while (1) {
|
|
@@ -21,7 +23,7 @@ var getPtceActivities = function () {
|
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
_context.next = 5;
|
|
24
|
-
return fetch('https://www.pharmacytimes.org/incoming/v2/content?types[]=courses&sort=publishDate:desc&query=status:published&limit=25' + hasMore, {
|
|
26
|
+
return fetch('https://www.pharmacytimes.org/incoming/v2/content?types[]=courses&sort=publishDate:desc&query=status:published&profession:"Managed Care Pharmacist"&limit=25' + hasMore, {
|
|
25
27
|
method: 'GET',
|
|
26
28
|
headers: { Authorization: 'Bearer drnc4y57arj3f190cpvqiwxt3cxpbken' }
|
|
27
29
|
});
|
|
@@ -35,6 +37,12 @@ var getPtceActivities = function () {
|
|
|
35
37
|
data = _context.sent;
|
|
36
38
|
|
|
37
39
|
|
|
40
|
+
if (filterProfession && filterQuery.length) {
|
|
41
|
+
data.contentItems = data.contentItems.filter(function (course) {
|
|
42
|
+
if (course && course.customFields && course.customFields.profession && course.customFields.profession.includes(filterQuery)) return true;else return false;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
data.contentItems = data.contentItems.filter(function (course) {
|
|
39
47
|
if (course.tags && course.tags[0] && course.tags[0].label == 'Hidden') {
|
|
40
48
|
return false;
|
|
@@ -48,19 +56,19 @@ var getPtceActivities = function () {
|
|
|
48
56
|
|
|
49
57
|
return _context.abrupt('return', data);
|
|
50
58
|
|
|
51
|
-
case
|
|
52
|
-
_context.prev =
|
|
59
|
+
case 14:
|
|
60
|
+
_context.prev = 14;
|
|
53
61
|
_context.t0 = _context['catch'](0);
|
|
54
62
|
|
|
55
63
|
console.log(_context.t0);
|
|
56
64
|
return _context.abrupt('return', []);
|
|
57
65
|
|
|
58
|
-
case
|
|
66
|
+
case 18:
|
|
59
67
|
case 'end':
|
|
60
68
|
return _context.stop();
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
|
-
}, _callee, this, [[0,
|
|
71
|
+
}, _callee, this, [[0, 14]]);
|
|
64
72
|
}));
|
|
65
73
|
|
|
66
74
|
return function getPtceActivities(_x) {
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -7,11 +7,11 @@ var getQuery = function getQuery(type) {
|
|
|
7
7
|
//Site level conditions should start with && (logical AND), and site level params should end with , (comma) in order to execute query
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
|
-
// quiz video series and slideshow
|
|
10
|
+
// quiz video series and slideshow
|
|
11
11
|
case 'related':
|
|
12
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n
|
|
12
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
13
13
|
case 'article':
|
|
14
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n
|
|
14
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
15
15
|
case 'publication':
|
|
16
16
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
17
17
|
case 'issue':
|
|
@@ -23,4 +23,4 @@ var getQuery = function getQuery(type) {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export { getQuery as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -195,7 +195,6 @@ import './md5-4e42248e.js';
|
|
|
195
195
|
import './SeriesSlider-f771e20d.js';
|
|
196
196
|
import './style-inject.es-1f59c1d0.js';
|
|
197
197
|
import 'disqus-react';
|
|
198
|
-
import 'file-saver';
|
|
199
198
|
import 'react-twitter-embed';
|
|
200
199
|
import './ImageSlider-f84174cb.js';
|
|
201
200
|
import './defineProperty-23a8f8cd.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
3
3
|
|
|
4
4
|
var $JSON = _core.JSON || (_core.JSON = { stringify: JSON.stringify });
|
package/dist/esm/urlFor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var ReactPaginate = require('react-paginate');
|
|
5
|
-
var Button = require('react-bootstrap/Button');
|
|
6
|
-
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
12
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
13
|
-
|
|
14
|
-
var Pagination = function Pagination(props) {
|
|
15
|
-
var pageCount = props.pageCount,
|
|
16
|
-
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
17
|
-
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
18
|
-
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
19
|
-
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
20
|
-
_props$currentPage = props.currentPage,
|
|
21
|
-
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
22
|
-
_onPageChange = props.onPageChange,
|
|
23
|
-
_props$needLargePagin = props.needLargePaginateButtons,
|
|
24
|
-
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
25
|
-
|
|
26
|
-
if (!pageCount || pageCount <= 1) return null;
|
|
27
|
-
return React__default['default'].createElement(
|
|
28
|
-
React__default['default'].Fragment,
|
|
29
|
-
null,
|
|
30
|
-
needLargePaginateButtons && React__default['default'].createElement(
|
|
31
|
-
'div',
|
|
32
|
-
{ className: 'pagination-lg-btn-nxt' },
|
|
33
|
-
React__default['default'].createElement(
|
|
34
|
-
Button__default['default'],
|
|
35
|
-
{
|
|
36
|
-
onClick: function onClick(e) {
|
|
37
|
-
e.preventDefault();
|
|
38
|
-
_onPageChange(currentPage + 1);
|
|
39
|
-
},
|
|
40
|
-
disabled: currentPage === pageCount,
|
|
41
|
-
href: currentPage === pageCount ? '' : '?page=' + (currentPage + 1) },
|
|
42
|
-
'NEXT PAGE',
|
|
43
|
-
React__default['default'].createElement(index_esm.FaArrowRight, { className: 'fa-arrow-right' })
|
|
44
|
-
)
|
|
45
|
-
),
|
|
46
|
-
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
47
|
-
pageCount: pageCount,
|
|
48
|
-
marginPagesDisplayed: marginPagesDisplayed,
|
|
49
|
-
pageRangeDisplayed: pageRangeDisplayed,
|
|
50
|
-
forcePage: currentPage - 1,
|
|
51
|
-
onPageChange: function onPageChange(_ref) {
|
|
52
|
-
var selected = _ref.selected;
|
|
53
|
-
return _onPageChange(selected + 1);
|
|
54
|
-
},
|
|
55
|
-
hrefBuilder: function hrefBuilder(page) {
|
|
56
|
-
return '?page=' + page;
|
|
57
|
-
},
|
|
58
|
-
previousLabel: '<',
|
|
59
|
-
nextLabel: '>',
|
|
60
|
-
containerClassName: 'pagination-container',
|
|
61
|
-
previousLinkClassName: 'previous',
|
|
62
|
-
nextLinkClassName: 'next',
|
|
63
|
-
disabledClassName: 'disabled',
|
|
64
|
-
activeClassName: 'active'
|
|
65
|
-
}),
|
|
66
|
-
needLargePaginateButtons && React__default['default'].createElement(
|
|
67
|
-
'div',
|
|
68
|
-
{ className: 'pagination-lg-btn-prv' },
|
|
69
|
-
React__default['default'].createElement(
|
|
70
|
-
Button__default['default'],
|
|
71
|
-
{
|
|
72
|
-
onClick: function onClick(e) {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
_onPageChange(currentPage - 1);
|
|
75
|
-
},
|
|
76
|
-
disabled: currentPage === 1,
|
|
77
|
-
href: currentPage <= 1 ? '?page=1' : '?page=' + (currentPage - 1) },
|
|
78
|
-
React__default['default'].createElement(index_esm.FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
79
|
-
'PREVIOUS PAGE'
|
|
80
|
-
)
|
|
81
|
-
),
|
|
82
|
-
React__default['default'].createElement(
|
|
83
|
-
'style',
|
|
84
|
-
{ jsx: 'true' },
|
|
85
|
-
'\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disabled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
exports.Pagination = Pagination;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import ReactPaginate from 'react-paginate';
|
|
3
|
-
import Button from 'react-bootstrap/Button';
|
|
4
|
-
import { d as FaArrowRight, e as FaArrowLeft } from './index.esm-1bd8a0a8.js';
|
|
5
|
-
|
|
6
|
-
var Pagination = function Pagination(props) {
|
|
7
|
-
var pageCount = props.pageCount,
|
|
8
|
-
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
9
|
-
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
10
|
-
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
11
|
-
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
12
|
-
_props$currentPage = props.currentPage,
|
|
13
|
-
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
14
|
-
_onPageChange = props.onPageChange,
|
|
15
|
-
_props$needLargePagin = props.needLargePaginateButtons,
|
|
16
|
-
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
17
|
-
|
|
18
|
-
if (!pageCount || pageCount <= 1) return null;
|
|
19
|
-
return React__default.createElement(
|
|
20
|
-
React__default.Fragment,
|
|
21
|
-
null,
|
|
22
|
-
needLargePaginateButtons && React__default.createElement(
|
|
23
|
-
'div',
|
|
24
|
-
{ className: 'pagination-lg-btn-nxt' },
|
|
25
|
-
React__default.createElement(
|
|
26
|
-
Button,
|
|
27
|
-
{
|
|
28
|
-
onClick: function onClick(e) {
|
|
29
|
-
e.preventDefault();
|
|
30
|
-
_onPageChange(currentPage + 1);
|
|
31
|
-
},
|
|
32
|
-
disabled: currentPage === pageCount,
|
|
33
|
-
href: currentPage === pageCount ? '' : '?page=' + (currentPage + 1) },
|
|
34
|
-
'NEXT PAGE',
|
|
35
|
-
React__default.createElement(FaArrowRight, { className: 'fa-arrow-right' })
|
|
36
|
-
)
|
|
37
|
-
),
|
|
38
|
-
React__default.createElement(ReactPaginate, {
|
|
39
|
-
pageCount: pageCount,
|
|
40
|
-
marginPagesDisplayed: marginPagesDisplayed,
|
|
41
|
-
pageRangeDisplayed: pageRangeDisplayed,
|
|
42
|
-
forcePage: currentPage - 1,
|
|
43
|
-
onPageChange: function onPageChange(_ref) {
|
|
44
|
-
var selected = _ref.selected;
|
|
45
|
-
return _onPageChange(selected + 1);
|
|
46
|
-
},
|
|
47
|
-
hrefBuilder: function hrefBuilder(page) {
|
|
48
|
-
return '?page=' + page;
|
|
49
|
-
},
|
|
50
|
-
previousLabel: '<',
|
|
51
|
-
nextLabel: '>',
|
|
52
|
-
containerClassName: 'pagination-container',
|
|
53
|
-
previousLinkClassName: 'previous',
|
|
54
|
-
nextLinkClassName: 'next',
|
|
55
|
-
disabledClassName: 'disabled',
|
|
56
|
-
activeClassName: 'active'
|
|
57
|
-
}),
|
|
58
|
-
needLargePaginateButtons && React__default.createElement(
|
|
59
|
-
'div',
|
|
60
|
-
{ className: 'pagination-lg-btn-prv' },
|
|
61
|
-
React__default.createElement(
|
|
62
|
-
Button,
|
|
63
|
-
{
|
|
64
|
-
onClick: function onClick(e) {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
_onPageChange(currentPage - 1);
|
|
67
|
-
},
|
|
68
|
-
disabled: currentPage === 1,
|
|
69
|
-
href: currentPage <= 1 ? '?page=1' : '?page=' + (currentPage - 1) },
|
|
70
|
-
React__default.createElement(FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
71
|
-
'PREVIOUS PAGE'
|
|
72
|
-
)
|
|
73
|
-
),
|
|
74
|
-
React__default.createElement(
|
|
75
|
-
'style',
|
|
76
|
-
{ jsx: 'true' },
|
|
77
|
-
'\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disabled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
|
|
78
|
-
)
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export { Pagination as P };
|