@mjhls/mjh-framework 1.0.939-nojs-pagination-v3 → 1.0.939-nojs-pagination-v5

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.
@@ -380,7 +380,8 @@ var DeckContent = function (_React$Component) {
380
380
  { md: 12, style: { display: 'flex', flex: '1 0 auto' } },
381
381
  rightItems[i].component
382
382
  );
383
- }, _this.renderManualPagination = function () {
383
+ }, _this.renderManualPagination = function (_ref2) {
384
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
384
385
  var currentPage = _this.state.currentPage;
385
386
 
386
387
  return React__default['default'].createElement(
@@ -391,7 +392,7 @@ var DeckContent = function (_React$Component) {
391
392
  { href: '?page=' + (currentPage - 1) },
392
393
  '<< Previous'
393
394
  ),
394
- !(_this.state.lastDataSize < _this.state.itemsPerPage) && React__default['default'].createElement(
395
+ !(_this.state.lastDataSize < _this.state.itemsPerPage) && nextPagePostsCount > 0 && React__default['default'].createElement(
395
396
  'a',
396
397
  { href: '?page=' + (currentPage + 1) },
397
398
  'Next >>'
@@ -435,7 +436,9 @@ var DeckContent = function (_React$Component) {
435
436
  page = _props.page,
436
437
  showBI = _props.showBI,
437
438
  brandInsight = _props.brandInsight,
438
- biStart = _props.biStart;
439
+ biStart = _props.biStart,
440
+ _props$nextPagePostsC = _props.nextPagePostsCount,
441
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
439
442
 
440
443
 
441
444
  return React__default['default'].createElement(
@@ -456,7 +459,7 @@ var DeckContent = function (_React$Component) {
456
459
  React__default['default'].createElement(
457
460
  'noscript',
458
461
  null,
459
- this.renderManualPagination()
462
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
460
463
  )
461
464
  ) : React__default['default'].createElement(
462
465
  React__default['default'].Fragment,
@@ -490,7 +493,7 @@ var DeckContent = function (_React$Component) {
490
493
  React__default['default'].createElement(
491
494
  'noscript',
492
495
  null,
493
- this.renderManualPagination()
496
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
494
497
  )
495
498
  )
496
499
  );
@@ -239,7 +239,8 @@ var GridContent = function (_React$Component) {
239
239
  { style: { display: 'flex', flex: '1 0 auto' } },
240
240
  rightItems[i].component
241
241
  );
242
- }, _this.renderManualPagination = function () {
242
+ }, _this.renderManualPagination = function (_ref2) {
243
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
243
244
  var currentPage = _this.state.currentPage;
244
245
 
245
246
  return React__default['default'].createElement(
@@ -250,7 +251,7 @@ var GridContent = function (_React$Component) {
250
251
  { href: '?page=' + (currentPage - 1) },
251
252
  '<< Previous'
252
253
  ),
253
- !(_this.state.lastDataSize < _this.state.per) && React__default['default'].createElement(
254
+ !(_this.state.lastDataSize < _this.state.itemsPerPage) && nextPagePostsCount > 0 && React__default['default'].createElement(
254
255
  'a',
255
256
  { href: '?page=' + (currentPage + 1) },
256
257
  'Next >>'
@@ -742,7 +743,9 @@ var GridContent = function (_React$Component) {
742
743
  showVideo = _props.showVideo,
743
744
  VideoPlayer = _props.VideoPlayer,
744
745
  showBI = _props.showBI,
745
- brandInsight = _props.brandInsight;
746
+ brandInsight = _props.brandInsight,
747
+ _props$nextPagePostsC = _props.nextPagePostsCount,
748
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
746
749
 
747
750
 
748
751
  return React__default['default'].createElement(
@@ -763,7 +766,7 @@ var GridContent = function (_React$Component) {
763
766
  React__default['default'].createElement(
764
767
  'noscript',
765
768
  null,
766
- this.renderManualPagination()
769
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
767
770
  )
768
771
  ) : React__default['default'].createElement(
769
772
  React__default['default'].Fragment,
@@ -797,7 +800,7 @@ var GridContent = function (_React$Component) {
797
800
  React__default['default'].createElement(
798
801
  'noscript',
799
802
  null,
800
- this.renderManualPagination()
803
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
801
804
  )
802
805
  )
803
806
  );
@@ -403,7 +403,8 @@ var MasterDeck = function (_React$Component) {
403
403
  { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
404
404
  rightItems[i].component
405
405
  );
406
- }, _this.renderManualPagination = function () {
406
+ }, _this.renderManualPagination = function (_ref2) {
407
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
407
408
  var _this$state3 = _this.state,
408
409
  currentPage = _this$state3.currentPage,
409
410
  itemsPerPage = _this$state3.itemsPerPage,
@@ -411,7 +412,7 @@ var MasterDeck = function (_React$Component) {
411
412
 
412
413
  console.log('lastDataSize:', lastDataSize);
413
414
  console.log('itemsPerPage:', itemsPerPage);
414
-
415
+ console.log('nextPagePostsCount:', nextPagePostsCount);
415
416
  return React__default['default'].createElement(
416
417
  'div',
417
418
  { className: 'd-flex justify-content-between' },
@@ -420,7 +421,7 @@ var MasterDeck = function (_React$Component) {
420
421
  { href: '?page=' + (currentPage - 1) },
421
422
  '<< Previous'
422
423
  ),
423
- !(lastDataSize < itemsPerPage) && React__default['default'].createElement(
424
+ !(lastDataSize < itemsPerPage) && nextPagePostsCount > 0 && React__default['default'].createElement(
424
425
  'a',
425
426
  { href: '?page=' + (currentPage + 1) },
426
427
  'Next >>'
@@ -482,7 +483,9 @@ var MasterDeck = function (_React$Component) {
482
483
  _props$showBI = _props.showBI,
483
484
  showBI = _props$showBI === undefined ? false : _props$showBI,
484
485
  _props$lgInfeedAd = _props.lgInfeedAd,
485
- lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
486
+ lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
487
+ _props$nextPagePostsC = _props.nextPagePostsCount,
488
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 2 : _props$nextPagePostsC;
486
489
 
487
490
  return React__default['default'].createElement(
488
491
  'div',
@@ -502,7 +505,7 @@ var MasterDeck = function (_React$Component) {
502
505
  React__default['default'].createElement(
503
506
  'noscript',
504
507
  null,
505
- this.renderManualPagination()
508
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
506
509
  )
507
510
  ) : React__default['default'].createElement(
508
511
  React__default['default'].Fragment,
@@ -538,7 +541,7 @@ var MasterDeck = function (_React$Component) {
538
541
  React__default['default'].createElement(
539
542
  'noscript',
540
543
  null,
541
- this.renderManualPagination()
544
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
542
545
  )
543
546
  )
544
547
  );
@@ -1367,6 +1367,8 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1367
1367
  imageFit = props.imageFit,
1368
1368
  rightItems = props.rightItems,
1369
1369
  brandInsightAd = props.brandInsightAd,
1370
+ _props$nextPagePostsC = props.nextPagePostsCount,
1371
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC,
1370
1372
  _props$showBI = props.showBI,
1371
1373
  showBI = _props$showBI === undefined ? false : _props$showBI,
1372
1374
  _props$heroContent = props.heroContent,
@@ -1428,7 +1430,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1428
1430
  { href: '?page=' + (currentPage - 1) },
1429
1431
  '<< Previous'
1430
1432
  ),
1431
- !(lastDataSize < itemsPerPage) && React__default['default'].createElement(
1433
+ !(lastDataSize < itemsPerPage) && nextPagePostsCount > 0 && React__default['default'].createElement(
1432
1434
  'a',
1433
1435
  { href: '?page=' + (currentPage + 1) },
1434
1436
  'Next >>'
@@ -201,7 +201,8 @@ var VideoSeriesListing = function (_React$Component) {
201
201
  });
202
202
  }
203
203
  }
204
- }, _this.renderManualPagination = function () {
204
+ }, _this.renderManualPagination = function (_ref2) {
205
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
205
206
  var currentPage = _this.state.currentPage;
206
207
 
207
208
 
@@ -213,7 +214,7 @@ var VideoSeriesListing = function (_React$Component) {
213
214
  { href: '?page=' + (currentPage - 1) },
214
215
  '<< Previous'
215
216
  ),
216
- !(_this.state.lastDataSize < _this.state.per) && React__default['default'].createElement(
217
+ !(_this.state.lastDataSize < _this.state.per) && nextPagePostsCount > 0 && React__default['default'].createElement(
217
218
  'a',
218
219
  { href: '?page=' + (currentPage + 1) },
219
220
  'Next >>'
@@ -272,8 +273,11 @@ var VideoSeriesListing = function (_React$Component) {
272
273
  value: function render() {
273
274
  var _this2 = this;
274
275
 
275
- var _props$autoScroll = this.props.autoScroll,
276
- autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll;
276
+ var _props = this.props,
277
+ _props$autoScroll = _props.autoScroll,
278
+ autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
279
+ _props$nextPagePostsC = _props.nextPagePostsCount,
280
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
277
281
 
278
282
 
279
283
  if (autoScroll) {
@@ -312,7 +316,7 @@ var VideoSeriesListing = function (_React$Component) {
312
316
  React__default['default'].createElement(
313
317
  'noscript',
314
318
  null,
315
- this.renderManualPagination()
319
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
316
320
  )
317
321
  )
318
322
  ) : React__default['default'].createElement(
@@ -389,7 +393,7 @@ var VideoSeriesListing = function (_React$Component) {
389
393
  React__default['default'].createElement(
390
394
  'noscript',
391
395
  null,
392
- _this2.renderManualPagination()
396
+ _this2.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
393
397
  )
394
398
  );
395
399
  })
@@ -370,7 +370,8 @@ var DeckContent = function (_React$Component) {
370
370
  { md: 12, style: { display: 'flex', flex: '1 0 auto' } },
371
371
  rightItems[i].component
372
372
  );
373
- }, _this.renderManualPagination = function () {
373
+ }, _this.renderManualPagination = function (_ref2) {
374
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
374
375
  var currentPage = _this.state.currentPage;
375
376
 
376
377
  return React__default.createElement(
@@ -381,7 +382,7 @@ var DeckContent = function (_React$Component) {
381
382
  { href: '?page=' + (currentPage - 1) },
382
383
  '<< Previous'
383
384
  ),
384
- !(_this.state.lastDataSize < _this.state.itemsPerPage) && React__default.createElement(
385
+ !(_this.state.lastDataSize < _this.state.itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
385
386
  'a',
386
387
  { href: '?page=' + (currentPage + 1) },
387
388
  'Next >>'
@@ -425,7 +426,9 @@ var DeckContent = function (_React$Component) {
425
426
  page = _props.page,
426
427
  showBI = _props.showBI,
427
428
  brandInsight = _props.brandInsight,
428
- biStart = _props.biStart;
429
+ biStart = _props.biStart,
430
+ _props$nextPagePostsC = _props.nextPagePostsCount,
431
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
429
432
 
430
433
 
431
434
  return React__default.createElement(
@@ -446,7 +449,7 @@ var DeckContent = function (_React$Component) {
446
449
  React__default.createElement(
447
450
  'noscript',
448
451
  null,
449
- this.renderManualPagination()
452
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
450
453
  )
451
454
  ) : React__default.createElement(
452
455
  React__default.Fragment,
@@ -480,7 +483,7 @@ var DeckContent = function (_React$Component) {
480
483
  React__default.createElement(
481
484
  'noscript',
482
485
  null,
483
- this.renderManualPagination()
486
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
484
487
  )
485
488
  )
486
489
  );
@@ -229,7 +229,8 @@ var GridContent = function (_React$Component) {
229
229
  { style: { display: 'flex', flex: '1 0 auto' } },
230
230
  rightItems[i].component
231
231
  );
232
- }, _this.renderManualPagination = function () {
232
+ }, _this.renderManualPagination = function (_ref2) {
233
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
233
234
  var currentPage = _this.state.currentPage;
234
235
 
235
236
  return React__default.createElement(
@@ -240,7 +241,7 @@ var GridContent = function (_React$Component) {
240
241
  { href: '?page=' + (currentPage - 1) },
241
242
  '<< Previous'
242
243
  ),
243
- !(_this.state.lastDataSize < _this.state.per) && React__default.createElement(
244
+ !(_this.state.lastDataSize < _this.state.itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
244
245
  'a',
245
246
  { href: '?page=' + (currentPage + 1) },
246
247
  'Next >>'
@@ -732,7 +733,9 @@ var GridContent = function (_React$Component) {
732
733
  showVideo = _props.showVideo,
733
734
  VideoPlayer = _props.VideoPlayer,
734
735
  showBI = _props.showBI,
735
- brandInsight = _props.brandInsight;
736
+ brandInsight = _props.brandInsight,
737
+ _props$nextPagePostsC = _props.nextPagePostsCount,
738
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
736
739
 
737
740
 
738
741
  return React__default.createElement(
@@ -753,7 +756,7 @@ var GridContent = function (_React$Component) {
753
756
  React__default.createElement(
754
757
  'noscript',
755
758
  null,
756
- this.renderManualPagination()
759
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
757
760
  )
758
761
  ) : React__default.createElement(
759
762
  React__default.Fragment,
@@ -787,7 +790,7 @@ var GridContent = function (_React$Component) {
787
790
  React__default.createElement(
788
791
  'noscript',
789
792
  null,
790
- this.renderManualPagination()
793
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
791
794
  )
792
795
  )
793
796
  );
@@ -396,7 +396,8 @@ var MasterDeck = function (_React$Component) {
396
396
  { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
397
397
  rightItems[i].component
398
398
  );
399
- }, _this.renderManualPagination = function () {
399
+ }, _this.renderManualPagination = function (_ref2) {
400
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
400
401
  var _this$state3 = _this.state,
401
402
  currentPage = _this$state3.currentPage,
402
403
  itemsPerPage = _this$state3.itemsPerPage,
@@ -404,7 +405,7 @@ var MasterDeck = function (_React$Component) {
404
405
 
405
406
  console.log('lastDataSize:', lastDataSize);
406
407
  console.log('itemsPerPage:', itemsPerPage);
407
-
408
+ console.log('nextPagePostsCount:', nextPagePostsCount);
408
409
  return React__default.createElement(
409
410
  'div',
410
411
  { className: 'd-flex justify-content-between' },
@@ -413,7 +414,7 @@ var MasterDeck = function (_React$Component) {
413
414
  { href: '?page=' + (currentPage - 1) },
414
415
  '<< Previous'
415
416
  ),
416
- !(lastDataSize < itemsPerPage) && React__default.createElement(
417
+ !(lastDataSize < itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
417
418
  'a',
418
419
  { href: '?page=' + (currentPage + 1) },
419
420
  'Next >>'
@@ -475,7 +476,9 @@ var MasterDeck = function (_React$Component) {
475
476
  _props$showBI = _props.showBI,
476
477
  showBI = _props$showBI === undefined ? false : _props$showBI,
477
478
  _props$lgInfeedAd = _props.lgInfeedAd,
478
- lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
479
+ lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
480
+ _props$nextPagePostsC = _props.nextPagePostsCount,
481
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 2 : _props$nextPagePostsC;
479
482
 
480
483
  return React__default.createElement(
481
484
  'div',
@@ -495,7 +498,7 @@ var MasterDeck = function (_React$Component) {
495
498
  React__default.createElement(
496
499
  'noscript',
497
500
  null,
498
- this.renderManualPagination()
501
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
499
502
  )
500
503
  ) : React__default.createElement(
501
504
  React__default.Fragment,
@@ -531,7 +534,7 @@ var MasterDeck = function (_React$Component) {
531
534
  React__default.createElement(
532
535
  'noscript',
533
536
  null,
534
- this.renderManualPagination()
537
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
535
538
  )
536
539
  )
537
540
  );
@@ -1361,6 +1361,8 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1361
1361
  imageFit = props.imageFit,
1362
1362
  rightItems = props.rightItems,
1363
1363
  brandInsightAd = props.brandInsightAd,
1364
+ _props$nextPagePostsC = props.nextPagePostsCount,
1365
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC,
1364
1366
  _props$showBI = props.showBI,
1365
1367
  showBI = _props$showBI === undefined ? false : _props$showBI,
1366
1368
  _props$heroContent = props.heroContent,
@@ -1422,7 +1424,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1422
1424
  { href: '?page=' + (currentPage - 1) },
1423
1425
  '<< Previous'
1424
1426
  ),
1425
- !(lastDataSize < itemsPerPage) && React__default.createElement(
1427
+ !(lastDataSize < itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
1426
1428
  'a',
1427
1429
  { href: '?page=' + (currentPage + 1) },
1428
1430
  'Next >>'
@@ -194,7 +194,8 @@ var VideoSeriesListing = function (_React$Component) {
194
194
  });
195
195
  }
196
196
  }
197
- }, _this.renderManualPagination = function () {
197
+ }, _this.renderManualPagination = function (_ref2) {
198
+ var nextPagePostsCount = _ref2.nextPagePostsCount;
198
199
  var currentPage = _this.state.currentPage;
199
200
 
200
201
 
@@ -206,7 +207,7 @@ var VideoSeriesListing = function (_React$Component) {
206
207
  { href: '?page=' + (currentPage - 1) },
207
208
  '<< Previous'
208
209
  ),
209
- !(_this.state.lastDataSize < _this.state.per) && React__default.createElement(
210
+ !(_this.state.lastDataSize < _this.state.per) && nextPagePostsCount > 0 && React__default.createElement(
210
211
  'a',
211
212
  { href: '?page=' + (currentPage + 1) },
212
213
  'Next >>'
@@ -265,8 +266,11 @@ var VideoSeriesListing = function (_React$Component) {
265
266
  value: function render() {
266
267
  var _this2 = this;
267
268
 
268
- var _props$autoScroll = this.props.autoScroll,
269
- autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll;
269
+ var _props = this.props,
270
+ _props$autoScroll = _props.autoScroll,
271
+ autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
272
+ _props$nextPagePostsC = _props.nextPagePostsCount,
273
+ nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
270
274
 
271
275
 
272
276
  if (autoScroll) {
@@ -305,7 +309,7 @@ var VideoSeriesListing = function (_React$Component) {
305
309
  React__default.createElement(
306
310
  'noscript',
307
311
  null,
308
- this.renderManualPagination()
312
+ this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
309
313
  )
310
314
  )
311
315
  ) : React__default.createElement(
@@ -382,7 +386,7 @@ var VideoSeriesListing = function (_React$Component) {
382
386
  React__default.createElement(
383
387
  'noscript',
384
388
  null,
385
- _this2.renderManualPagination()
389
+ _this2.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
386
390
  )
387
391
  );
388
392
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.939-nojs-pagination-v3",
3
+ "version": "1.0.939-nojs-pagination-v5",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",