@mjhls/mjh-framework 1.0.889-publication-filename-v1 → 1.0.890
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 +168 -168
- package/dist/cjs/AlgoliaSearch.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +7 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +7 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/GridContentPaginated.js +6 -2
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueLanding.js +29 -29
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +35 -12
- package/dist/cjs/{MediaSeriesCard-3d5c69ba.js → MediaSeriesCard-8b4efd28.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +12 -10
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-4a929dd5.js +90 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +8 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +12 -2
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +4 -4
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-9d509319.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-8647570b.js} +7 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/AlgoliaSearch.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +7 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +7 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/GridContentPaginated.js +6 -2
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueLanding.js +29 -29
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +35 -12
- package/dist/esm/{MediaSeriesCard-5b1d13dd.js → MediaSeriesCard-51ebf1c0.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +12 -10
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-b1ec9ba8.js +82 -0
- package/dist/esm/PartnerDetailListingPaginated.js +8 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +12 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +4 -4
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-4061f839.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index.esm-d4932dea.js → index.esm-0a31ab97.js} +6 -2
- package/dist/esm/index.js +3 -3
- package/package.json +112 -112
- package/dist/cjs/Pagination-3effd8c6.js +0 -60
- package/dist/esm/Pagination-0173504c.js +0 -54
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -223,14 +223,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
// please leave this for later debug purpose : Yong Jun.
|
|
226
|
-
/* console.log('page change reported', {
|
|
227
|
-
currentPage: currentPage,
|
|
228
|
-
pageNumber: pageNumber,
|
|
229
|
-
pathname: pathname,
|
|
230
|
-
path: path,
|
|
231
|
-
newPath: newPath,
|
|
232
|
-
firstPage: pageNumber === 1,
|
|
233
|
-
queryString: queryString
|
|
226
|
+
/* console.log('page change reported', {
|
|
227
|
+
currentPage: currentPage,
|
|
228
|
+
pageNumber: pageNumber,
|
|
229
|
+
pathname: pathname,
|
|
230
|
+
path: path,
|
|
231
|
+
newPath: newPath,
|
|
232
|
+
firstPage: pageNumber === 1,
|
|
233
|
+
queryString: queryString
|
|
234
234
|
}) */
|
|
235
235
|
|
|
236
236
|
if (pageview) {
|
|
@@ -12,7 +12,7 @@ import { l as lodash } from './lodash-f97fd99a.js';
|
|
|
12
12
|
import { m as main_43 } from './main-1894c974.js';
|
|
13
13
|
import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
|
|
14
14
|
import { A as ADInfeed } from './ADInfeed-0a55cd2d.js';
|
|
15
|
-
import { P as Pagination } from './Pagination-
|
|
15
|
+
import { P as Pagination } from './Pagination-b1ec9ba8.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
18
18
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -33,6 +33,10 @@ import './isSymbol-a7e9aafe.js';
|
|
|
33
33
|
import './toNumber-5aeba6e7.js';
|
|
34
34
|
import './Beam.js';
|
|
35
35
|
import './Segment.js';
|
|
36
|
+
import 'react-paginate';
|
|
37
|
+
import 'react-bootstrap/Button';
|
|
38
|
+
import './index.esm-0a31ab97.js';
|
|
39
|
+
import './iconBase-ccc56b97.js';
|
|
36
40
|
|
|
37
41
|
var MasterDeck = function (_React$Component) {
|
|
38
42
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -104,14 +108,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
// please leave this for later debug purpose : Yong Jun.
|
|
107
|
-
/* console.log('page change reported', {
|
|
108
|
-
currentPage: currentPage,
|
|
109
|
-
pageNumber: pageNumber,
|
|
110
|
-
pathname: pathname,
|
|
111
|
-
path: path,
|
|
112
|
-
newPath: newPath,
|
|
113
|
-
firstPage: pageNumber === 1,
|
|
114
|
-
queryString: queryString
|
|
111
|
+
/* console.log('page change reported', {
|
|
112
|
+
currentPage: currentPage,
|
|
113
|
+
pageNumber: pageNumber,
|
|
114
|
+
pathname: pathname,
|
|
115
|
+
path: path,
|
|
116
|
+
newPath: newPath,
|
|
117
|
+
firstPage: pageNumber === 1,
|
|
118
|
+
queryString: queryString
|
|
115
119
|
}) */
|
|
116
120
|
|
|
117
121
|
if (pageview) {
|
|
@@ -222,7 +226,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
222
226
|
return React__default.createElement(
|
|
223
227
|
React__default.Fragment,
|
|
224
228
|
{ key: index },
|
|
225
|
-
React__default.createElement(_this2.Deck, {
|
|
229
|
+
React__default.createElement(_this2.Deck, {
|
|
230
|
+
data: row,
|
|
231
|
+
currentPage: _this.state.currentPage,
|
|
232
|
+
itemsPerPage: _this.state.itemsPerPage,
|
|
233
|
+
variant: variant,
|
|
234
|
+
index: index,
|
|
235
|
+
client: _this.props.client,
|
|
236
|
+
defaultImage: _this.defaultImage,
|
|
237
|
+
isSeriesLanding: _this.isSeriesLanding
|
|
238
|
+
}),
|
|
226
239
|
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
227
240
|
'div',
|
|
228
241
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
@@ -238,7 +251,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
238
251
|
return React__default.createElement(
|
|
239
252
|
React__default.Fragment,
|
|
240
253
|
{ key: index },
|
|
241
|
-
React__default.createElement(_this2.Deck, {
|
|
254
|
+
React__default.createElement(_this2.Deck, {
|
|
255
|
+
data: row,
|
|
256
|
+
currentPage: _this.state.currentPage,
|
|
257
|
+
itemsPerPage: _this.state.itemsPerPage,
|
|
258
|
+
variant: variant,
|
|
259
|
+
index: index,
|
|
260
|
+
client: _this.props.client,
|
|
261
|
+
defaultImage: _this.defaultImage,
|
|
262
|
+
isSeriesLanding: _this.isSeriesLanding
|
|
263
|
+
})
|
|
242
264
|
);
|
|
243
265
|
}
|
|
244
266
|
}) : React__default.createElement(
|
|
@@ -402,7 +424,8 @@ var MasterDeck = function (_React$Component) {
|
|
|
402
424
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
403
425
|
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
404
426
|
currentPage: currentPage,
|
|
405
|
-
onPageChange: this.handlePageChange
|
|
427
|
+
onPageChange: this.handlePageChange,
|
|
428
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
406
429
|
}),
|
|
407
430
|
React__default.createElement(
|
|
408
431
|
'style',
|
|
@@ -9427,7 +9427,7 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9427
9427
|
Tooltip.defaultProps = defaultProps;
|
|
9428
9428
|
Tooltip.displayName = 'Tooltip';
|
|
9429
9429
|
|
|
9430
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9430
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9431
9431
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9432
9432
|
styleInject(css);
|
|
9433
9433
|
|
|
@@ -4,7 +4,7 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
4
4
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
5
5
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
6
6
|
import React__default, { useState, useEffect } from 'react';
|
|
7
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
7
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-51ebf1c0.js';
|
|
8
8
|
import './index-98ca9cec.js';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import Link from 'next/link';
|
|
@@ -90,11 +90,11 @@ var Filter = function Filter(_ref) {
|
|
|
90
90
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
91
91
|
grandChildData = _useState6[0],
|
|
92
92
|
setGrandChildData = _useState6[1];
|
|
93
|
-
/*
|
|
94
|
-
{parent: showAll,
|
|
95
|
-
chidlren: show selected from parent,
|
|
96
|
-
grandchildren: show selected from children
|
|
97
|
-
}
|
|
93
|
+
/*
|
|
94
|
+
{parent: showAll,
|
|
95
|
+
chidlren: show selected from parent,
|
|
96
|
+
grandchildren: show selected from children
|
|
97
|
+
}
|
|
98
98
|
*/
|
|
99
99
|
|
|
100
100
|
|
|
@@ -3,7 +3,7 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-51ebf1c0.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
@@ -44,7 +44,11 @@ import './toNumber-5aeba6e7.js';
|
|
|
44
44
|
import './Beam.js';
|
|
45
45
|
import './Segment.js';
|
|
46
46
|
import './ADInfeed-0a55cd2d.js';
|
|
47
|
-
import './Pagination-
|
|
47
|
+
import './Pagination-b1ec9ba8.js';
|
|
48
|
+
import 'react-paginate';
|
|
49
|
+
import 'react-bootstrap/Button';
|
|
50
|
+
import './index.esm-0a31ab97.js';
|
|
51
|
+
import './iconBase-ccc56b97.js';
|
|
48
52
|
import 'react-bootstrap';
|
|
49
53
|
import './index-c7e2ac95.js';
|
|
50
54
|
import './util-8ed16d48.js';
|
|
@@ -56,12 +60,10 @@ import 'next/head';
|
|
|
56
60
|
import 'react-share';
|
|
57
61
|
import './_object-to-array-2300e51b.js';
|
|
58
62
|
import 'react-bootstrap/Pagination';
|
|
59
|
-
import 'react-bootstrap/Button';
|
|
60
63
|
import './entities-6d9154b4.js';
|
|
61
64
|
import 'react-bootstrap/Row';
|
|
62
65
|
import 'react-bootstrap/Col';
|
|
63
66
|
import './index.esm-f6156a57.js';
|
|
64
|
-
import './iconBase-ccc56b97.js';
|
|
65
67
|
import 'react-bootstrap/Figure';
|
|
66
68
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
69
|
import 'react-bootstrap/Tooltip';
|
|
@@ -89,11 +91,11 @@ var Filter = function Filter(_ref) {
|
|
|
89
91
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
90
92
|
grandChildData = _useState6[0],
|
|
91
93
|
setGrandChildData = _useState6[1];
|
|
92
|
-
/*
|
|
93
|
-
{parent: showAll,
|
|
94
|
-
chidlren: show selected from parent,
|
|
95
|
-
grandchildren: show selected from children
|
|
96
|
-
}
|
|
94
|
+
/*
|
|
95
|
+
{parent: showAll,
|
|
96
|
+
chidlren: show selected from parent,
|
|
97
|
+
grandchildren: show selected from children
|
|
98
|
+
}
|
|
97
99
|
*/
|
|
98
100
|
|
|
99
101
|
|
|
@@ -383,7 +385,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
383
385
|
params: params && params,
|
|
384
386
|
currentPage: currentPage,
|
|
385
387
|
pageview: pageview,
|
|
386
|
-
|
|
388
|
+
needLargePaginateButtons: props.needLargePaginateButtons,
|
|
387
389
|
seoPaginate: true
|
|
388
390
|
})
|
|
389
391
|
);
|
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -26,16 +26,16 @@ import 'react-bootstrap/FormControl';
|
|
|
26
26
|
import 'react-bootstrap/Button';
|
|
27
27
|
|
|
28
28
|
var NavMagazine = function NavMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
user={props.cache.user}
|
|
34
|
-
logo={props.settings.logo}
|
|
35
|
-
dataObject={props.cache.mainNavCache}
|
|
36
|
-
website={website}
|
|
37
|
-
subNav={props.cache.subNavCache}
|
|
38
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
user={props.cache.user}
|
|
34
|
+
logo={props.settings.logo}
|
|
35
|
+
dataObject={props.cache.mainNavCache}
|
|
36
|
+
website={website}
|
|
37
|
+
subNav={props.cache.subNavCache}
|
|
38
|
+
/>
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/esm/NavNative.js
CHANGED
|
@@ -300,15 +300,15 @@ function chunk(array, size, guard) {
|
|
|
300
300
|
var chunk_1 = chunk;
|
|
301
301
|
|
|
302
302
|
var NavNative = function NavNative(props) {
|
|
303
|
-
/*
|
|
304
|
-
Example Nav with acceptable props
|
|
305
|
-
<MagazineNav
|
|
306
|
-
showLogin
|
|
307
|
-
logo={props.settings.logo}
|
|
308
|
-
dataObject={props.cache.mainNavCache}
|
|
309
|
-
website={website}
|
|
310
|
-
subNav={props.cache.subNavCache}
|
|
311
|
-
/>
|
|
303
|
+
/*
|
|
304
|
+
Example Nav with acceptable props
|
|
305
|
+
<MagazineNav
|
|
306
|
+
showLogin
|
|
307
|
+
logo={props.settings.logo}
|
|
308
|
+
dataObject={props.cache.mainNavCache}
|
|
309
|
+
website={website}
|
|
310
|
+
subNav={props.cache.subNavCache}
|
|
311
|
+
/>
|
|
312
312
|
*/
|
|
313
313
|
// Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
|
|
314
314
|
var logo = props.logo,
|
|
@@ -0,0 +1,82 @@
|
|
|
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-0a31ab97.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: '?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: 'disbaled',
|
|
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: '?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 .disbaled 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 };
|
|
@@ -44,7 +44,11 @@ import './AuthorComponent-11adff02.js';
|
|
|
44
44
|
import './ADlgInfeed-013e1f4a.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './timeDifferenceCalc.js';
|
|
47
|
-
import './Pagination-
|
|
47
|
+
import './Pagination-b1ec9ba8.js';
|
|
48
|
+
import 'react-paginate';
|
|
49
|
+
import 'react-bootstrap/Button';
|
|
50
|
+
import './index.esm-0a31ab97.js';
|
|
51
|
+
import './iconBase-ccc56b97.js';
|
|
48
52
|
import './index-3f5c03b2.js';
|
|
49
53
|
import 'react-bootstrap/Breadcrumb';
|
|
50
54
|
import 'react-bootstrap/Carousel';
|
|
@@ -59,14 +63,12 @@ import 'next/head';
|
|
|
59
63
|
import 'react-share';
|
|
60
64
|
import './_object-to-array-2300e51b.js';
|
|
61
65
|
import 'react-bootstrap/Pagination';
|
|
62
|
-
import 'react-bootstrap/Button';
|
|
63
66
|
import 'react-bootstrap/Row';
|
|
64
67
|
import 'react-bootstrap/Col';
|
|
65
68
|
import './inherits-a6ba2ec4.js';
|
|
66
69
|
import './_object-sap-7cee6f84.js';
|
|
67
70
|
import './define-property-5f1bda73.js';
|
|
68
71
|
import './index.esm-f6156a57.js';
|
|
69
|
-
import './iconBase-ccc56b97.js';
|
|
70
72
|
import 'react-bootstrap/Figure';
|
|
71
73
|
import 'react-bootstrap/OverlayTrigger';
|
|
72
74
|
import 'react-bootstrap/Tooltip';
|
|
@@ -90,7 +92,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
90
92
|
client = _ref.client,
|
|
91
93
|
Settings = _ref.Settings,
|
|
92
94
|
pageview = _ref.pageview,
|
|
93
|
-
page = _ref.page
|
|
95
|
+
page = _ref.page,
|
|
96
|
+
needLargePaginateButtons = _ref.needLargePaginateButtons;
|
|
94
97
|
|
|
95
98
|
return React__default.createElement(
|
|
96
99
|
React__default.Fragment,
|
|
@@ -211,7 +214,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
211
214
|
columns: 'rotate',
|
|
212
215
|
variant: 'top',
|
|
213
216
|
page: page,
|
|
214
|
-
|
|
217
|
+
needLargePaginateButtons: needLargePaginateButtons,
|
|
215
218
|
defaultImage: Settings.logo,
|
|
216
219
|
showPublished: true,
|
|
217
220
|
showCategory: true,
|
|
@@ -375,32 +375,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
375
375
|
|
|
376
376
|
var _Set = unwrapExports(set);
|
|
377
377
|
|
|
378
|
-
/* usage & query
|
|
379
|
-
const Publication = (props) => {
|
|
380
|
-
const { cache, pub, year } = props
|
|
381
|
-
const targeting = {
|
|
382
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
-
}
|
|
385
|
-
return (
|
|
386
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
-
</Shell>
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
Publication.getInitialProps = async (ctx) => {
|
|
392
|
-
const { query } = ctx
|
|
393
|
-
const {
|
|
394
|
-
query: { year },
|
|
395
|
-
} = ctx
|
|
396
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
-
**import urlFor from framework**
|
|
398
|
-
pub.issues.map((issue) => {
|
|
399
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
-
})
|
|
401
|
-
return { pub, year }
|
|
402
|
-
}
|
|
403
|
-
export default Publication
|
|
378
|
+
/* usage & query
|
|
379
|
+
const Publication = (props) => {
|
|
380
|
+
const { cache, pub, year } = props
|
|
381
|
+
const targeting = {
|
|
382
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
+
}
|
|
385
|
+
return (
|
|
386
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
+
</Shell>
|
|
389
|
+
)
|
|
390
|
+
}
|
|
391
|
+
Publication.getInitialProps = async (ctx) => {
|
|
392
|
+
const { query } = ctx
|
|
393
|
+
const {
|
|
394
|
+
query: { year },
|
|
395
|
+
} = ctx
|
|
396
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
+
**import urlFor from framework**
|
|
398
|
+
pub.issues.map((issue) => {
|
|
399
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
+
})
|
|
401
|
+
return { pub, year }
|
|
402
|
+
}
|
|
403
|
+
export default Publication
|
|
404
404
|
*/
|
|
405
405
|
|
|
406
406
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -17,7 +17,7 @@ import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
|
|
|
17
17
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
18
18
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
19
19
|
import urlFor from './urlFor.js';
|
|
20
|
-
import { P as Pagination } from './Pagination-
|
|
20
|
+
import { P as Pagination } from './Pagination-b1ec9ba8.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './core.get-iterator-method-ea258bb1.js';
|
|
23
23
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -36,6 +36,10 @@ import './Beam.js';
|
|
|
36
36
|
import './stringify-2b084bee.js';
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
|
+
import 'react-paginate';
|
|
40
|
+
import 'react-bootstrap/Button';
|
|
41
|
+
import './index.esm-0a31ab97.js';
|
|
42
|
+
import './iconBase-ccc56b97.js';
|
|
39
43
|
|
|
40
44
|
var _this = undefined;
|
|
41
45
|
|
|
@@ -1357,7 +1361,13 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1357
1361
|
React__default.createElement(
|
|
1358
1362
|
'div',
|
|
1359
1363
|
{ className: 'pagination-wrapper' },
|
|
1360
|
-
React__default.createElement(Pagination, {
|
|
1364
|
+
React__default.createElement(Pagination, {
|
|
1365
|
+
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
1366
|
+
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
1367
|
+
currentPage: currentPage,
|
|
1368
|
+
onPageChange: handlePageChange,
|
|
1369
|
+
needLargePaginateButtons: props.needLargePaginateButtons
|
|
1370
|
+
}),
|
|
1361
1371
|
React__default.createElement(
|
|
1362
1372
|
'style',
|
|
1363
1373
|
{ jsx: 'true' },
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -11,34 +11,34 @@ import './index-3f5c03b2.js';
|
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
|
-
Sample query
|
|
16
|
-
let references = ''
|
|
17
|
-
if(article.taxonomyMapping.length > 0){
|
|
18
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
-
references = references + `references('${ref._ref}') `
|
|
20
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
-
references = references + ` && `
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
-
...,
|
|
28
|
-
title,
|
|
29
|
-
summary,
|
|
30
|
-
thumbnail,
|
|
31
|
-
url,
|
|
32
|
-
published,
|
|
33
|
-
authorMapping[]->,
|
|
34
|
-
contentCategory->
|
|
35
|
-
}`
|
|
36
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
-
|
|
38
|
-
Sample usage
|
|
39
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
var RelatedContent = function RelatedContent(props) {
|
|
44
44
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -6,10 +6,10 @@ import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
7
|
import { m as main_43, a as main_49, b as main_42 } from './main-1894c974.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -32,8 +32,8 @@ var renderLink = function renderLink(row) {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
var SideFooter = function SideFooter(props) {
|
|
35
|
-
/*
|
|
36
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
35
|
+
/*
|
|
36
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
37
37
|
*/
|
|
38
38
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
39
39
|
socialLinks = _get.socialLinks,
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
4
4
|
import { c as IoIosOpen } from './index.esm-f6156a57.js';
|
|
5
|
-
import { F as FaRegWindowClose } from './index.esm-
|
|
5
|
+
import { F as FaRegWindowClose } from './index.esm-0a31ab97.js';
|
|
6
6
|
import { m as main_43 } from './main-1894c974.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|