@mjhls/mjh-framework 1.0.889 → 1.0.891
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/ContentCardPaginated.js +6 -2
- package/dist/cjs/DeckQueuePaginated.js +6 -2
- package/dist/cjs/GridContentPaginated.js +5 -2
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/MasterDeckPaginated.js +26 -4
- package/dist/cjs/MediaSeriesLandingPaginated.js +5 -4
- package/dist/cjs/Pagination-4a929dd5.js +90 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -5
- package/dist/cjs/QueueDeckExpandedPaginated.js +11 -2
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/View.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-8647570b.js} +7 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ContentCardPaginated.js +6 -2
- package/dist/esm/DeckQueuePaginated.js +6 -2
- package/dist/esm/GridContentPaginated.js +5 -2
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/MasterDeckPaginated.js +26 -4
- package/dist/esm/MediaSeriesLandingPaginated.js +5 -4
- package/dist/esm/Pagination-b1ec9ba8.js +82 -0
- package/dist/esm/PartnerDetailListingPaginated.js +7 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +11 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/View.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/{index.esm-d4932dea.js → index.esm-0a31ab97.js} +6 -2
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Pagination-be11c32e.js +0 -53
- package/dist/esm/Pagination-4ece8cb4.js +0 -46
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.891
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ var index$1 = require('./index-eadd5035.js');
|
|
|
17
17
|
var main = require('./main-f1c77adb.js');
|
|
18
18
|
var entities = require('./entities-df1aed86.js');
|
|
19
19
|
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
20
|
-
var Pagination = require('./Pagination-
|
|
20
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
21
21
|
var Spinner = require('react-bootstrap/Spinner');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -42,6 +42,9 @@ require('./Beam.js');
|
|
|
42
42
|
require('./stringify-f7a37a8d.js');
|
|
43
43
|
require('./Segment.js');
|
|
44
44
|
require('react-paginate');
|
|
45
|
+
require('react-bootstrap/Button');
|
|
46
|
+
require('./index.esm-8647570b.js');
|
|
47
|
+
require('./iconBase-be4097c0.js');
|
|
45
48
|
|
|
46
49
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
47
50
|
|
|
@@ -393,7 +396,8 @@ var DeckContent = function (_React$Component) {
|
|
|
393
396
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
394
397
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
395
398
|
currentPage: this.state.currentPage,
|
|
396
|
-
onPageChange: this.handlePageChange
|
|
399
|
+
onPageChange: this.handlePageChange,
|
|
400
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
397
401
|
}),
|
|
398
402
|
React__default['default'].createElement(
|
|
399
403
|
'style',
|
|
@@ -18,7 +18,7 @@ var get = require('./get-5839e5b5.js');
|
|
|
18
18
|
var main = require('./main-f1c77adb.js');
|
|
19
19
|
var urlFor = require('./urlFor.js');
|
|
20
20
|
var entities = require('./entities-df1aed86.js');
|
|
21
|
-
var Pagination = require('./Pagination-
|
|
21
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
24
24
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -37,6 +37,9 @@ require('./eq-5fc26c07.js');
|
|
|
37
37
|
require('./slicedToArray-067dd3bc.js');
|
|
38
38
|
require('./index-d48b231c.js');
|
|
39
39
|
require('react-paginate');
|
|
40
|
+
require('react-bootstrap/Button');
|
|
41
|
+
require('./index.esm-8647570b.js');
|
|
42
|
+
require('./iconBase-be4097c0.js');
|
|
40
43
|
|
|
41
44
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
42
45
|
|
|
@@ -312,7 +315,8 @@ var DeckQueue = function (_React$Component) {
|
|
|
312
315
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
313
316
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
314
317
|
currentPage: currentPage,
|
|
315
|
-
onPageChange: this.handlePageChange
|
|
318
|
+
onPageChange: this.handlePageChange,
|
|
319
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
316
320
|
}),
|
|
317
321
|
React__default['default'].createElement(
|
|
318
322
|
'style',
|
|
@@ -24,7 +24,7 @@ var urlFor = require('./urlFor.js');
|
|
|
24
24
|
var main = require('./main-f1c77adb.js');
|
|
25
25
|
var AuthorComponent = require('./AuthorComponent-39b37d84.js');
|
|
26
26
|
var PublicationFeature = require('./PublicationFeature-5ccf9b13.js');
|
|
27
|
-
var Pagination = require('./Pagination-
|
|
27
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
28
28
|
var Spinner = require('react-bootstrap/Spinner');
|
|
29
29
|
require('./_commonjsHelpers-06173234.js');
|
|
30
30
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -50,6 +50,8 @@ require('./eq-5fc26c07.js');
|
|
|
50
50
|
require('./index-d48b231c.js');
|
|
51
51
|
require('react-bootstrap/Button');
|
|
52
52
|
require('react-paginate');
|
|
53
|
+
require('./index.esm-8647570b.js');
|
|
54
|
+
require('./iconBase-be4097c0.js');
|
|
53
55
|
|
|
54
56
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
55
57
|
|
|
@@ -667,7 +669,8 @@ var GridContent = function (_React$Component) {
|
|
|
667
669
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
668
670
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
669
671
|
currentPage: this.state.currentPage,
|
|
670
|
-
onPageChange: this.handlePageChange
|
|
672
|
+
onPageChange: this.handlePageChange,
|
|
673
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
671
674
|
}),
|
|
672
675
|
React__default['default'].createElement(
|
|
673
676
|
'style',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
require('./moment-aca40de1.js');
|
|
5
5
|
var urlFor = require('./urlFor.js');
|
|
6
|
-
var index_esm = require('./index.esm-
|
|
6
|
+
var index_esm = require('./index.esm-8647570b.js');
|
|
7
7
|
require('./_commonjsHelpers-06173234.js');
|
|
8
8
|
require('./slicedToArray-067dd3bc.js');
|
|
9
9
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -14,7 +14,7 @@ var lodash = require('./lodash-f0783643.js');
|
|
|
14
14
|
var main = require('./main-f1c77adb.js');
|
|
15
15
|
var ADlgInfeed = require('./ADlgInfeed-950b414b.js');
|
|
16
16
|
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
17
|
-
var Pagination = require('./Pagination-
|
|
17
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
20
20
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -36,6 +36,9 @@ require('./toNumber-5e1fac58.js');
|
|
|
36
36
|
require('./Beam.js');
|
|
37
37
|
require('./Segment.js');
|
|
38
38
|
require('react-paginate');
|
|
39
|
+
require('react-bootstrap/Button');
|
|
40
|
+
require('./index.esm-8647570b.js');
|
|
41
|
+
require('./iconBase-be4097c0.js');
|
|
39
42
|
|
|
40
43
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
41
44
|
|
|
@@ -231,7 +234,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
231
234
|
return React__default['default'].createElement(
|
|
232
235
|
React__default['default'].Fragment,
|
|
233
236
|
{ key: index },
|
|
234
|
-
React__default['default'].createElement(_this2.Deck, {
|
|
237
|
+
React__default['default'].createElement(_this2.Deck, {
|
|
238
|
+
data: row,
|
|
239
|
+
currentPage: _this.state.currentPage,
|
|
240
|
+
itemsPerPage: _this.state.itemsPerPage,
|
|
241
|
+
variant: variant,
|
|
242
|
+
index: index,
|
|
243
|
+
client: _this.props.client,
|
|
244
|
+
defaultImage: _this.defaultImage,
|
|
245
|
+
isSeriesLanding: _this.isSeriesLanding
|
|
246
|
+
}),
|
|
235
247
|
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default['default'].createElement(
|
|
236
248
|
'div',
|
|
237
249
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
@@ -247,7 +259,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
247
259
|
return React__default['default'].createElement(
|
|
248
260
|
React__default['default'].Fragment,
|
|
249
261
|
{ key: index },
|
|
250
|
-
React__default['default'].createElement(_this2.Deck, {
|
|
262
|
+
React__default['default'].createElement(_this2.Deck, {
|
|
263
|
+
data: row,
|
|
264
|
+
currentPage: _this.state.currentPage,
|
|
265
|
+
itemsPerPage: _this.state.itemsPerPage,
|
|
266
|
+
variant: variant,
|
|
267
|
+
index: index,
|
|
268
|
+
client: _this.props.client,
|
|
269
|
+
defaultImage: _this.defaultImage,
|
|
270
|
+
isSeriesLanding: _this.isSeriesLanding
|
|
271
|
+
})
|
|
251
272
|
);
|
|
252
273
|
}
|
|
253
274
|
}) : React__default['default'].createElement(
|
|
@@ -411,7 +432,8 @@ var MasterDeck = function (_React$Component) {
|
|
|
411
432
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
412
433
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
413
434
|
currentPage: currentPage,
|
|
414
|
-
onPageChange: this.handlePageChange
|
|
435
|
+
onPageChange: this.handlePageChange,
|
|
436
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
415
437
|
}),
|
|
416
438
|
React__default['default'].createElement(
|
|
417
439
|
'style',
|
|
@@ -46,8 +46,11 @@ require('./toNumber-5e1fac58.js');
|
|
|
46
46
|
require('./Beam.js');
|
|
47
47
|
require('./Segment.js');
|
|
48
48
|
require('./ADInfeed-bce0ba07.js');
|
|
49
|
-
require('./Pagination-
|
|
49
|
+
require('./Pagination-4a929dd5.js');
|
|
50
50
|
require('react-paginate');
|
|
51
|
+
require('react-bootstrap/Button');
|
|
52
|
+
require('./index.esm-8647570b.js');
|
|
53
|
+
require('./iconBase-be4097c0.js');
|
|
51
54
|
require('react-bootstrap');
|
|
52
55
|
require('./index-187c967e.js');
|
|
53
56
|
require('./util-93a37fd0.js');
|
|
@@ -59,12 +62,10 @@ require('next/head');
|
|
|
59
62
|
require('react-share');
|
|
60
63
|
require('./_object-to-array-ce86cae7.js');
|
|
61
64
|
require('react-bootstrap/Pagination');
|
|
62
|
-
require('react-bootstrap/Button');
|
|
63
65
|
require('./entities-df1aed86.js');
|
|
64
66
|
require('react-bootstrap/Row');
|
|
65
67
|
require('react-bootstrap/Col');
|
|
66
68
|
require('./index.esm-00a6aade.js');
|
|
67
|
-
require('./iconBase-be4097c0.js');
|
|
68
69
|
require('react-bootstrap/Figure');
|
|
69
70
|
require('react-bootstrap/OverlayTrigger');
|
|
70
71
|
require('react-bootstrap/Tooltip');
|
|
@@ -391,7 +392,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
391
392
|
params: params && params,
|
|
392
393
|
currentPage: currentPage,
|
|
393
394
|
pageview: pageview,
|
|
394
|
-
|
|
395
|
+
needLargePaginateButtons: props.needLargePaginateButtons,
|
|
395
396
|
seoPaginate: true
|
|
396
397
|
})
|
|
397
398
|
);
|
|
@@ -0,0 +1,90 @@
|
|
|
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-8647570b.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: '?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: 'disbaled',
|
|
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: '?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 .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 '
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.Pagination = Pagination;
|
|
@@ -46,8 +46,11 @@ require('./AuthorComponent-39b37d84.js');
|
|
|
46
46
|
require('./ADlgInfeed-950b414b.js');
|
|
47
47
|
require('./getContentCategory-f38a4c00.js');
|
|
48
48
|
require('./timeDifferenceCalc.js');
|
|
49
|
-
require('./Pagination-
|
|
49
|
+
require('./Pagination-4a929dd5.js');
|
|
50
50
|
require('react-paginate');
|
|
51
|
+
require('react-bootstrap/Button');
|
|
52
|
+
require('./index.esm-8647570b.js');
|
|
53
|
+
require('./iconBase-be4097c0.js');
|
|
51
54
|
require('./index-d48b231c.js');
|
|
52
55
|
require('react-bootstrap/Breadcrumb');
|
|
53
56
|
require('react-bootstrap/Carousel');
|
|
@@ -62,14 +65,12 @@ require('next/head');
|
|
|
62
65
|
require('react-share');
|
|
63
66
|
require('./_object-to-array-ce86cae7.js');
|
|
64
67
|
require('react-bootstrap/Pagination');
|
|
65
|
-
require('react-bootstrap/Button');
|
|
66
68
|
require('react-bootstrap/Row');
|
|
67
69
|
require('react-bootstrap/Col');
|
|
68
70
|
require('./inherits-de66ea16.js');
|
|
69
71
|
require('./_object-sap-d1978572.js');
|
|
70
72
|
require('./define-property-e8404b64.js');
|
|
71
73
|
require('./index.esm-00a6aade.js');
|
|
72
|
-
require('./iconBase-be4097c0.js');
|
|
73
74
|
require('react-bootstrap/Figure');
|
|
74
75
|
require('react-bootstrap/OverlayTrigger');
|
|
75
76
|
require('react-bootstrap/Tooltip');
|
|
@@ -97,7 +98,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
97
98
|
client = _ref.client,
|
|
98
99
|
Settings = _ref.Settings,
|
|
99
100
|
pageview = _ref.pageview,
|
|
100
|
-
page = _ref.page
|
|
101
|
+
page = _ref.page,
|
|
102
|
+
needLargePaginateButtons = _ref.needLargePaginateButtons;
|
|
101
103
|
|
|
102
104
|
return React__default['default'].createElement(
|
|
103
105
|
React__default['default'].Fragment,
|
|
@@ -218,7 +220,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
218
220
|
columns: 'rotate',
|
|
219
221
|
variant: 'top',
|
|
220
222
|
page: page,
|
|
221
|
-
|
|
223
|
+
needLargePaginateButtons: needLargePaginateButtons,
|
|
222
224
|
defaultImage: Settings.logo,
|
|
223
225
|
showPublished: true,
|
|
224
226
|
showCategory: true,
|
|
@@ -19,7 +19,7 @@ var ADlgInfeed = require('./ADlgInfeed-950b414b.js');
|
|
|
19
19
|
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
20
20
|
var timeDifferenceCalc = require('./timeDifferenceCalc.js');
|
|
21
21
|
var urlFor = require('./urlFor.js');
|
|
22
|
-
var Pagination = require('./Pagination-
|
|
22
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
23
23
|
require('./_commonjsHelpers-06173234.js');
|
|
24
24
|
require('./core.get-iterator-method-5643aa10.js');
|
|
25
25
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -39,6 +39,9 @@ require('./stringify-f7a37a8d.js');
|
|
|
39
39
|
require('./Segment.js');
|
|
40
40
|
require('./index-d48b231c.js');
|
|
41
41
|
require('react-paginate');
|
|
42
|
+
require('react-bootstrap/Button');
|
|
43
|
+
require('./index.esm-8647570b.js');
|
|
44
|
+
require('./iconBase-be4097c0.js');
|
|
42
45
|
|
|
43
46
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
44
47
|
|
|
@@ -1364,7 +1367,13 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1364
1367
|
React__default['default'].createElement(
|
|
1365
1368
|
'div',
|
|
1366
1369
|
{ className: 'pagination-wrapper' },
|
|
1367
|
-
React__default['default'].createElement(Pagination.Pagination, {
|
|
1370
|
+
React__default['default'].createElement(Pagination.Pagination, {
|
|
1371
|
+
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
1372
|
+
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
1373
|
+
currentPage: currentPage,
|
|
1374
|
+
onPageChange: handlePageChange,
|
|
1375
|
+
needLargePaginateButtons: props.needLargePaginateButtons
|
|
1376
|
+
}),
|
|
1368
1377
|
React__default['default'].createElement(
|
|
1369
1378
|
'style',
|
|
1370
1379
|
{ jsx: 'true' },
|
package/dist/cjs/RecentNews.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index_esm = require('./index.esm-
|
|
4
|
+
var index_esm = require('./index.esm-8647570b.js');
|
|
5
5
|
require('./iconBase-be4097c0.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
package/dist/cjs/Ustream.js
CHANGED
|
@@ -4,7 +4,7 @@ var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index_esm$1 = require('./index.esm-00a6aade.js');
|
|
7
|
-
var index_esm = require('./index.esm-
|
|
7
|
+
var index_esm = require('./index.esm-8647570b.js');
|
|
8
8
|
var main = require('./main-f1c77adb.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -24,7 +24,7 @@ var getTargeting = require('./getTargeting-9d509319.js');
|
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var _typeof = require('./typeof-567e31ff.js');
|
|
27
|
-
var index_esm = require('./index.esm-
|
|
27
|
+
var index_esm = require('./index.esm-8647570b.js');
|
|
28
28
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
29
29
|
require('./index-eadd5035.js');
|
|
30
30
|
var disqusReact = require('disqus-react');
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -16,9 +16,9 @@ var getQuery = function getQuery(type) {
|
|
|
16
16
|
case 'publication':
|
|
17
17
|
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 }';
|
|
18
18
|
case 'issue':
|
|
19
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
|
|
19
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n thumbnail{ ..., asset-> },\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
|
|
20
20
|
case 'externalResources':
|
|
21
|
-
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
|
|
21
|
+
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc){ ..., thumbnail{ ..., asset-> }},\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc){ ..., thumbnail{ ..., asset-> }}\n }';
|
|
22
22
|
case 'mediaseries':
|
|
23
23
|
return '\n \n ';
|
|
24
24
|
}
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
var iconBase = require('./iconBase-be4097c0.js');
|
|
4
4
|
|
|
5
5
|
// THIS FILE IS AUTO GENERATED
|
|
6
|
-
function
|
|
6
|
+
function FaArrowLeft (props) {
|
|
7
|
+
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(props);
|
|
8
|
+
}function FaArrowRight (props) {
|
|
9
|
+
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(props);
|
|
10
|
+
}function FaLongArrowAltRight (props) {
|
|
7
11
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"}}]})(props);
|
|
8
12
|
}function FaMinus (props) {
|
|
9
13
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
@@ -13,6 +17,8 @@ function FaLongArrowAltRight (props) {
|
|
|
13
17
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"}}]})(props);
|
|
14
18
|
}
|
|
15
19
|
|
|
20
|
+
exports.FaArrowLeft = FaArrowLeft;
|
|
21
|
+
exports.FaArrowRight = FaArrowRight;
|
|
16
22
|
exports.FaLongArrowAltRight = FaLongArrowAltRight;
|
|
17
23
|
exports.FaMinus = FaMinus;
|
|
18
24
|
exports.FaPlus = FaPlus;
|
package/dist/cjs/index.js
CHANGED
|
@@ -178,7 +178,7 @@ require('react-bootstrap/Breadcrumb');
|
|
|
178
178
|
require('./keys-e982b3fa.js');
|
|
179
179
|
require('react-bootstrap/DropdownButton');
|
|
180
180
|
require('react-bootstrap/Dropdown');
|
|
181
|
-
require('./index.esm-
|
|
181
|
+
require('./index.esm-8647570b.js');
|
|
182
182
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
183
183
|
require('react-bootstrap/Modal');
|
|
184
184
|
require('./util-93a37fd0.js');
|
|
@@ -15,7 +15,7 @@ import { L as LazyLoad } from './index-755f2cc2.js';
|
|
|
15
15
|
import { m as main_43 } from './main-1894c974.js';
|
|
16
16
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
17
17
|
import { A as ADInfeed } from './ADInfeed-0a55cd2d.js';
|
|
18
|
-
import { P as Pagination } from './Pagination-
|
|
18
|
+
import { P as Pagination } from './Pagination-b1ec9ba8.js';
|
|
19
19
|
import Spinner from 'react-bootstrap/Spinner';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -40,6 +40,9 @@ import './Beam.js';
|
|
|
40
40
|
import './stringify-2b084bee.js';
|
|
41
41
|
import './Segment.js';
|
|
42
42
|
import 'react-paginate';
|
|
43
|
+
import 'react-bootstrap/Button';
|
|
44
|
+
import './index.esm-0a31ab97.js';
|
|
45
|
+
import './iconBase-ccc56b97.js';
|
|
43
46
|
|
|
44
47
|
var DeckContent = function (_React$Component) {
|
|
45
48
|
_inherits(DeckContent, _React$Component);
|
|
@@ -382,7 +385,8 @@ var DeckContent = function (_React$Component) {
|
|
|
382
385
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
383
386
|
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
384
387
|
currentPage: this.state.currentPage,
|
|
385
|
-
onPageChange: this.handlePageChange
|
|
388
|
+
onPageChange: this.handlePageChange,
|
|
389
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
386
390
|
}),
|
|
387
391
|
React__default.createElement(
|
|
388
392
|
'style',
|
|
@@ -16,7 +16,7 @@ import { g as get_1 } from './get-3c308da4.js';
|
|
|
16
16
|
import { m as main_43 } from './main-1894c974.js';
|
|
17
17
|
import urlFor from './urlFor.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
19
|
-
import { P as Pagination } from './Pagination-
|
|
19
|
+
import { P as Pagination } from './Pagination-b1ec9ba8.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-ea258bb1.js';
|
|
22
22
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -35,6 +35,9 @@ import './eq-bdcbf886.js';
|
|
|
35
35
|
import './slicedToArray-6ebcbfea.js';
|
|
36
36
|
import './index-3f5c03b2.js';
|
|
37
37
|
import 'react-paginate';
|
|
38
|
+
import 'react-bootstrap/Button';
|
|
39
|
+
import './index.esm-0a31ab97.js';
|
|
40
|
+
import './iconBase-ccc56b97.js';
|
|
38
41
|
|
|
39
42
|
var DeckQueue = function (_React$Component) {
|
|
40
43
|
_inherits(DeckQueue, _React$Component);
|
|
@@ -301,7 +304,8 @@ var DeckQueue = function (_React$Component) {
|
|
|
301
304
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
302
305
|
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
303
306
|
currentPage: currentPage,
|
|
304
|
-
onPageChange: this.handlePageChange
|
|
307
|
+
onPageChange: this.handlePageChange,
|
|
308
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
305
309
|
}),
|
|
306
310
|
React__default.createElement(
|
|
307
311
|
'style',
|
|
@@ -22,7 +22,7 @@ import urlFor from './urlFor.js';
|
|
|
22
22
|
import { m as main_43 } from './main-1894c974.js';
|
|
23
23
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
24
24
|
import { P as PublicationFeature } from './PublicationFeature-d88e76b9.js';
|
|
25
|
-
import { P as Pagination } from './Pagination-
|
|
25
|
+
import { P as Pagination } from './Pagination-b1ec9ba8.js';
|
|
26
26
|
import Spinner from 'react-bootstrap/Spinner';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -48,6 +48,8 @@ import './eq-bdcbf886.js';
|
|
|
48
48
|
import './index-3f5c03b2.js';
|
|
49
49
|
import 'react-bootstrap/Button';
|
|
50
50
|
import 'react-paginate';
|
|
51
|
+
import './index.esm-0a31ab97.js';
|
|
52
|
+
import './iconBase-ccc56b97.js';
|
|
51
53
|
|
|
52
54
|
var GridContent = function (_React$Component) {
|
|
53
55
|
_inherits(GridContent, _React$Component);
|
|
@@ -656,7 +658,8 @@ var GridContent = function (_React$Component) {
|
|
|
656
658
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
657
659
|
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
658
660
|
currentPage: this.state.currentPage,
|
|
659
|
-
onPageChange: this.handlePageChange
|
|
661
|
+
onPageChange: this.handlePageChange,
|
|
662
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
660
663
|
}),
|
|
661
664
|
React__default.createElement(
|
|
662
665
|
'style',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import './moment-bc12cb97.js';
|
|
3
3
|
import urlFor from './urlFor.js';
|
|
4
|
-
import { a as FaLongArrowAltRight } from './index.esm-
|
|
4
|
+
import { a as FaLongArrowAltRight } from './index.esm-0a31ab97.js';
|
|
5
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
6
|
import './slicedToArray-6ebcbfea.js';
|
|
7
7
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -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';
|
|
@@ -34,6 +34,9 @@ import './toNumber-5aeba6e7.js';
|
|
|
34
34
|
import './Beam.js';
|
|
35
35
|
import './Segment.js';
|
|
36
36
|
import 'react-paginate';
|
|
37
|
+
import 'react-bootstrap/Button';
|
|
38
|
+
import './index.esm-0a31ab97.js';
|
|
39
|
+
import './iconBase-ccc56b97.js';
|
|
37
40
|
|
|
38
41
|
var MasterDeck = function (_React$Component) {
|
|
39
42
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -223,7 +226,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
223
226
|
return React__default.createElement(
|
|
224
227
|
React__default.Fragment,
|
|
225
228
|
{ key: index },
|
|
226
|
-
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
|
+
}),
|
|
227
239
|
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
228
240
|
'div',
|
|
229
241
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
@@ -239,7 +251,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
239
251
|
return React__default.createElement(
|
|
240
252
|
React__default.Fragment,
|
|
241
253
|
{ key: index },
|
|
242
|
-
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
|
+
})
|
|
243
264
|
);
|
|
244
265
|
}
|
|
245
266
|
}) : React__default.createElement(
|
|
@@ -403,7 +424,8 @@ var MasterDeck = function (_React$Component) {
|
|
|
403
424
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
404
425
|
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
405
426
|
currentPage: currentPage,
|
|
406
|
-
onPageChange: this.handlePageChange
|
|
427
|
+
onPageChange: this.handlePageChange,
|
|
428
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
407
429
|
}),
|
|
408
430
|
React__default.createElement(
|
|
409
431
|
'style',
|
|
@@ -44,8 +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
48
|
import 'react-paginate';
|
|
49
|
+
import 'react-bootstrap/Button';
|
|
50
|
+
import './index.esm-0a31ab97.js';
|
|
51
|
+
import './iconBase-ccc56b97.js';
|
|
49
52
|
import 'react-bootstrap';
|
|
50
53
|
import './index-c7e2ac95.js';
|
|
51
54
|
import './util-8ed16d48.js';
|
|
@@ -57,12 +60,10 @@ import 'next/head';
|
|
|
57
60
|
import 'react-share';
|
|
58
61
|
import './_object-to-array-2300e51b.js';
|
|
59
62
|
import 'react-bootstrap/Pagination';
|
|
60
|
-
import 'react-bootstrap/Button';
|
|
61
63
|
import './entities-6d9154b4.js';
|
|
62
64
|
import 'react-bootstrap/Row';
|
|
63
65
|
import 'react-bootstrap/Col';
|
|
64
66
|
import './index.esm-f6156a57.js';
|
|
65
|
-
import './iconBase-ccc56b97.js';
|
|
66
67
|
import 'react-bootstrap/Figure';
|
|
67
68
|
import 'react-bootstrap/OverlayTrigger';
|
|
68
69
|
import 'react-bootstrap/Tooltip';
|
|
@@ -384,7 +385,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
384
385
|
params: params && params,
|
|
385
386
|
currentPage: currentPage,
|
|
386
387
|
pageview: pageview,
|
|
387
|
-
|
|
388
|
+
needLargePaginateButtons: props.needLargePaginateButtons,
|
|
388
389
|
seoPaginate: true
|
|
389
390
|
})
|
|
390
391
|
);
|
|
@@ -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,8 +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
48
|
import 'react-paginate';
|
|
49
|
+
import 'react-bootstrap/Button';
|
|
50
|
+
import './index.esm-0a31ab97.js';
|
|
51
|
+
import './iconBase-ccc56b97.js';
|
|
49
52
|
import './index-3f5c03b2.js';
|
|
50
53
|
import 'react-bootstrap/Breadcrumb';
|
|
51
54
|
import 'react-bootstrap/Carousel';
|
|
@@ -60,14 +63,12 @@ import 'next/head';
|
|
|
60
63
|
import 'react-share';
|
|
61
64
|
import './_object-to-array-2300e51b.js';
|
|
62
65
|
import 'react-bootstrap/Pagination';
|
|
63
|
-
import 'react-bootstrap/Button';
|
|
64
66
|
import 'react-bootstrap/Row';
|
|
65
67
|
import 'react-bootstrap/Col';
|
|
66
68
|
import './inherits-a6ba2ec4.js';
|
|
67
69
|
import './_object-sap-7cee6f84.js';
|
|
68
70
|
import './define-property-5f1bda73.js';
|
|
69
71
|
import './index.esm-f6156a57.js';
|
|
70
|
-
import './iconBase-ccc56b97.js';
|
|
71
72
|
import 'react-bootstrap/Figure';
|
|
72
73
|
import 'react-bootstrap/OverlayTrigger';
|
|
73
74
|
import 'react-bootstrap/Tooltip';
|
|
@@ -91,7 +92,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
91
92
|
client = _ref.client,
|
|
92
93
|
Settings = _ref.Settings,
|
|
93
94
|
pageview = _ref.pageview,
|
|
94
|
-
page = _ref.page
|
|
95
|
+
page = _ref.page,
|
|
96
|
+
needLargePaginateButtons = _ref.needLargePaginateButtons;
|
|
95
97
|
|
|
96
98
|
return React__default.createElement(
|
|
97
99
|
React__default.Fragment,
|
|
@@ -212,7 +214,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
212
214
|
columns: 'rotate',
|
|
213
215
|
variant: 'top',
|
|
214
216
|
page: page,
|
|
215
|
-
|
|
217
|
+
needLargePaginateButtons: needLargePaginateButtons,
|
|
216
218
|
defaultImage: Settings.logo,
|
|
217
219
|
showPublished: true,
|
|
218
220
|
showCategory: true,
|
|
@@ -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';
|
|
@@ -37,6 +37,9 @@ import './stringify-2b084bee.js';
|
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
39
|
import 'react-paginate';
|
|
40
|
+
import 'react-bootstrap/Button';
|
|
41
|
+
import './index.esm-0a31ab97.js';
|
|
42
|
+
import './iconBase-ccc56b97.js';
|
|
40
43
|
|
|
41
44
|
var _this = undefined;
|
|
42
45
|
|
|
@@ -1358,7 +1361,13 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1358
1361
|
React__default.createElement(
|
|
1359
1362
|
'div',
|
|
1360
1363
|
{ className: 'pagination-wrapper' },
|
|
1361
|
-
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
|
+
}),
|
|
1362
1371
|
React__default.createElement(
|
|
1363
1372
|
'style',
|
|
1364
1373
|
{ jsx: 'true' },
|
package/dist/esm/RecentNews.js
CHANGED
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';
|
package/dist/esm/View.js
CHANGED
|
@@ -22,7 +22,7 @@ import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-4
|
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
25
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-
|
|
25
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-0a31ab97.js';
|
|
26
26
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
27
|
import './index-755f2cc2.js';
|
|
28
28
|
import { DiscussionEmbed } from 'disqus-react';
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -14,9 +14,9 @@ var getQuery = function getQuery(type) {
|
|
|
14
14
|
case 'publication':
|
|
15
15
|
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 }';
|
|
16
16
|
case 'issue':
|
|
17
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
|
|
17
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n thumbnail{ ..., asset-> },\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
|
|
18
18
|
case 'externalResources':
|
|
19
|
-
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
|
|
19
|
+
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc){ ..., thumbnail{ ..., asset-> }},\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc){ ..., thumbnail{ ..., asset-> }}\n }';
|
|
20
20
|
case 'mediaseries':
|
|
21
21
|
return '\n \n ';
|
|
22
22
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { G as GenIcon } from './iconBase-ccc56b97.js';
|
|
2
2
|
|
|
3
3
|
// THIS FILE IS AUTO GENERATED
|
|
4
|
-
function
|
|
4
|
+
function FaArrowLeft (props) {
|
|
5
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(props);
|
|
6
|
+
}function FaArrowRight (props) {
|
|
7
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(props);
|
|
8
|
+
}function FaLongArrowAltRight (props) {
|
|
5
9
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"}}]})(props);
|
|
6
10
|
}function FaMinus (props) {
|
|
7
11
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
@@ -11,4 +15,4 @@ function FaLongArrowAltRight (props) {
|
|
|
11
15
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"}}]})(props);
|
|
12
16
|
}
|
|
13
17
|
|
|
14
|
-
export { FaRegWindowClose as F, FaLongArrowAltRight as a, FaMinus as b, FaPlus as c };
|
|
18
|
+
export { FaRegWindowClose as F, FaLongArrowAltRight as a, FaMinus as b, FaPlus as c, FaArrowRight as d, FaArrowLeft as e };
|
package/dist/esm/index.js
CHANGED
|
@@ -175,7 +175,7 @@ import 'react-bootstrap/Breadcrumb';
|
|
|
175
175
|
import './keys-31dcdb31.js';
|
|
176
176
|
import 'react-bootstrap/DropdownButton';
|
|
177
177
|
import 'react-bootstrap/Dropdown';
|
|
178
|
-
import './index.esm-
|
|
178
|
+
import './index.esm-0a31ab97.js';
|
|
179
179
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
180
180
|
import 'react-bootstrap/Modal';
|
|
181
181
|
import './util-8ed16d48.js';
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var ReactPaginate = require('react-paginate');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
-
|
|
8
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
-
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
10
|
-
|
|
11
|
-
var Pagination = function Pagination(props) {
|
|
12
|
-
var pageCount = props.pageCount,
|
|
13
|
-
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
14
|
-
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
15
|
-
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
16
|
-
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
17
|
-
_props$currentPage = props.currentPage,
|
|
18
|
-
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
19
|
-
_onPageChange = props.onPageChange;
|
|
20
|
-
|
|
21
|
-
if (!pageCount || pageCount <= 1) return null;
|
|
22
|
-
return React__default['default'].createElement(
|
|
23
|
-
React__default['default'].Fragment,
|
|
24
|
-
null,
|
|
25
|
-
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
26
|
-
pageCount: pageCount,
|
|
27
|
-
marginPagesDisplayed: marginPagesDisplayed,
|
|
28
|
-
pageRangeDisplayed: pageRangeDisplayed,
|
|
29
|
-
forcePage: currentPage - 1,
|
|
30
|
-
onPageChange: function onPageChange(_ref) {
|
|
31
|
-
var selected = _ref.selected;
|
|
32
|
-
return _onPageChange(selected + 1);
|
|
33
|
-
},
|
|
34
|
-
hrefBuilder: function hrefBuilder(page) {
|
|
35
|
-
return '?page=' + page;
|
|
36
|
-
},
|
|
37
|
-
previousLabel: '<',
|
|
38
|
-
nextLabel: '>',
|
|
39
|
-
containerClassName: 'pagination-container',
|
|
40
|
-
previousLinkClassName: 'previous',
|
|
41
|
-
nextLinkClassName: 'next',
|
|
42
|
-
disabledClassName: 'disbaled',
|
|
43
|
-
activeClassName: 'active'
|
|
44
|
-
}),
|
|
45
|
-
React__default['default'].createElement(
|
|
46
|
-
'style',
|
|
47
|
-
{ jsx: 'true' },
|
|
48
|
-
'\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::-webkit-scrollbar {\n height: 6px;\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 .previous a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container .next a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n '
|
|
49
|
-
)
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.Pagination = Pagination;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import ReactPaginate from 'react-paginate';
|
|
3
|
-
|
|
4
|
-
var Pagination = function Pagination(props) {
|
|
5
|
-
var pageCount = props.pageCount,
|
|
6
|
-
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
7
|
-
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
8
|
-
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
9
|
-
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
10
|
-
_props$currentPage = props.currentPage,
|
|
11
|
-
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
12
|
-
_onPageChange = props.onPageChange;
|
|
13
|
-
|
|
14
|
-
if (!pageCount || pageCount <= 1) return null;
|
|
15
|
-
return React__default.createElement(
|
|
16
|
-
React__default.Fragment,
|
|
17
|
-
null,
|
|
18
|
-
React__default.createElement(ReactPaginate, {
|
|
19
|
-
pageCount: pageCount,
|
|
20
|
-
marginPagesDisplayed: marginPagesDisplayed,
|
|
21
|
-
pageRangeDisplayed: pageRangeDisplayed,
|
|
22
|
-
forcePage: currentPage - 1,
|
|
23
|
-
onPageChange: function onPageChange(_ref) {
|
|
24
|
-
var selected = _ref.selected;
|
|
25
|
-
return _onPageChange(selected + 1);
|
|
26
|
-
},
|
|
27
|
-
hrefBuilder: function hrefBuilder(page) {
|
|
28
|
-
return '?page=' + page;
|
|
29
|
-
},
|
|
30
|
-
previousLabel: '<',
|
|
31
|
-
nextLabel: '>',
|
|
32
|
-
containerClassName: 'pagination-container',
|
|
33
|
-
previousLinkClassName: 'previous',
|
|
34
|
-
nextLinkClassName: 'next',
|
|
35
|
-
disabledClassName: 'disbaled',
|
|
36
|
-
activeClassName: 'active'
|
|
37
|
-
}),
|
|
38
|
-
React__default.createElement(
|
|
39
|
-
'style',
|
|
40
|
-
{ jsx: 'true' },
|
|
41
|
-
'\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::-webkit-scrollbar {\n height: 6px;\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 .previous a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container .next a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n '
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export { Pagination as P };
|