@everymatrix/blog-articles-grid
Advanced tools
Comparing version 1.13.13 to 1.13.14
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-ed2f13d0.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-a9245245",[[1,"blog-articles-grid",{cmsEndpoint:[1,"cms-endpoint"],language:[1],handleClick:[1,"handle-click"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],showPublishingDate:[4,"show-publishing-date"],showImage:[4,"show-image"],showTitle:[4,"show-title"],showContent:[4,"show-content"],showButton:[4,"show-button"],usePostmessage:[4,"use-postmessage"],postMessageEvent:[1,"post-message-event"],blogsLimit:[514,"blogs-limit"],paginationActive:[516,"pagination-active"],arrowsActive:[516,"arrows-active"],secondaryArrowsActive:[516,"secondary-arrows-active"],numberedNavActive:[516,"numbered-nav-active"],paginationBlogList:[32],currentPage:[32],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],bannerMatrixReady:[32],nextPage:[32],previousPage:[32],device:[32]},[[8,"BannerMatrixReady","handleBannerReady"],[0,"hpPageChange","hpPageChange"]]],[1,"helper-pagination",{nextPage:[1537,"next-page"],prevPage:[1537,"prev-page"],offset:[1538],limit:[1538],total:[1538],language:[1537],clientStyling:[1537,"client-styling"],clientStylingUrlContent:[1537,"client-styling-url-content"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],numberedNavActive:[1540,"numbered-nav-active"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32],limitStylingAppends:[32]}]]]],e))); | ||
import{p as e,b as t}from"./p-ed2f13d0.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-f8722d8c",[[1,"blog-articles-grid",{cmsEndpoint:[1,"cms-endpoint"],language:[1],handleClick:[1,"handle-click"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],showPublishingDate:[4,"show-publishing-date"],showImage:[4,"show-image"],showTitle:[4,"show-title"],showContent:[4,"show-content"],showButton:[4,"show-button"],usePostmessage:[4,"use-postmessage"],postMessageEvent:[1,"post-message-event"],blogsLimit:[514,"blogs-limit"],paginationActive:[516,"pagination-active"],arrowsActive:[516,"arrows-active"],secondaryArrowsActive:[516,"secondary-arrows-active"],numberedNavActive:[516,"numbered-nav-active"],paginationBlogList:[32],currentPage:[32],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],bannerMatrixReady:[32],nextPage:[32],previousPage:[32],device:[32]},[[8,"BannerMatrixReady","handleBannerReady"],[0,"hpPageChange","hpPageChange"]]],[1,"helper-pagination",{nextPage:[1537,"next-page"],prevPage:[1537,"prev-page"],offset:[1538],limit:[1538],total:[1538],language:[1537],clientStyling:[1537,"client-styling"],clientStylingUrlContent:[1537,"client-styling-url-content"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],numberedNavActive:[1540,"numbered-nav-active"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32],limitStylingAppends:[32]}]]]],e))); |
@@ -206,6 +206,10 @@ 'use strict'; | ||
this.currentPage = Math.floor(((_a = this.paginationBlogList) === null || _a === void 0 ? void 0 : _a.offset) / ((_b = this.paginationBlogList) === null || _b === void 0 ? void 0 : _b.limit)); | ||
if (this.currentPage + 1 > this.lastPage) | ||
if (this.currentPage + 1 > this.lastPage) { | ||
this.nextPage = null; | ||
return; | ||
if (this.currentPage - 1 < this.firstPage) | ||
} | ||
if (this.currentPage < 0) { | ||
this.previousPage = null; | ||
return; | ||
} | ||
this.getBlogArticleGrid(); | ||
@@ -266,3 +270,2 @@ } | ||
this.lastPage = +blogContent.pages.last.slice(blogContent.pages.last.lastIndexOf('=') + 1); | ||
this.firstPage = +blogContent.pages.first.slice(blogContent.pages.first.lastIndexOf('=') + 1); | ||
let blogItems = blogContent.items; | ||
@@ -269,0 +272,0 @@ this.nextPage = blogContent.pages.next; |
@@ -153,6 +153,10 @@ import { Component, Prop, State, Event, Watch, h, Listen } from '@stencil/core'; | ||
this.currentPage = Math.floor(((_a = this.paginationBlogList) === null || _a === void 0 ? void 0 : _a.offset) / ((_b = this.paginationBlogList) === null || _b === void 0 ? void 0 : _b.limit)); | ||
if (this.currentPage + 1 > this.lastPage) | ||
if (this.currentPage + 1 > this.lastPage) { | ||
this.nextPage = null; | ||
return; | ||
if (this.currentPage - 1 < this.firstPage) | ||
} | ||
if (this.currentPage < 0) { | ||
this.previousPage = null; | ||
return; | ||
} | ||
this.getBlogArticleGrid(); | ||
@@ -213,3 +217,2 @@ } | ||
this.lastPage = +blogContent.pages.last.slice(blogContent.pages.last.lastIndexOf('=') + 1); | ||
this.firstPage = +blogContent.pages.first.slice(blogContent.pages.first.lastIndexOf('=') + 1); | ||
let blogItems = blogContent.items; | ||
@@ -216,0 +219,0 @@ this.nextPage = blogContent.pages.next; |
@@ -205,6 +205,10 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client'; | ||
this.currentPage = Math.floor(((_a = this.paginationBlogList) === null || _a === void 0 ? void 0 : _a.offset) / ((_b = this.paginationBlogList) === null || _b === void 0 ? void 0 : _b.limit)); | ||
if (this.currentPage + 1 > this.lastPage) | ||
if (this.currentPage + 1 > this.lastPage) { | ||
this.nextPage = null; | ||
return; | ||
if (this.currentPage - 1 < this.firstPage) | ||
} | ||
if (this.currentPage < 0) { | ||
this.previousPage = null; | ||
return; | ||
} | ||
this.getBlogArticleGrid(); | ||
@@ -265,3 +269,2 @@ } | ||
this.lastPage = +blogContent.pages.last.slice(blogContent.pages.last.lastIndexOf('=') + 1); | ||
this.firstPage = +blogContent.pages.first.slice(blogContent.pages.first.lastIndexOf('=') + 1); | ||
let blogItems = blogContent.items; | ||
@@ -268,0 +271,0 @@ this.nextPage = blogContent.pages.next; |
@@ -202,6 +202,10 @@ import { r as registerInstance, c as createEvent, h } from './index-c02b7464.js'; | ||
this.currentPage = Math.floor(((_a = this.paginationBlogList) === null || _a === void 0 ? void 0 : _a.offset) / ((_b = this.paginationBlogList) === null || _b === void 0 ? void 0 : _b.limit)); | ||
if (this.currentPage + 1 > this.lastPage) | ||
if (this.currentPage + 1 > this.lastPage) { | ||
this.nextPage = null; | ||
return; | ||
if (this.currentPage - 1 < this.firstPage) | ||
} | ||
if (this.currentPage < 0) { | ||
this.previousPage = null; | ||
return; | ||
} | ||
this.getBlogArticleGrid(); | ||
@@ -262,3 +266,2 @@ } | ||
this.lastPage = +blogContent.pages.last.slice(blogContent.pages.last.lastIndexOf('=') + 1); | ||
this.firstPage = +blogContent.pages.first.slice(blogContent.pages.first.lastIndexOf('=') + 1); | ||
let blogItems = blogContent.items; | ||
@@ -265,0 +268,0 @@ this.nextPage = blogContent.pages.next; |
@@ -84,3 +84,2 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
lastPage: number; | ||
firstPage: number; | ||
handleBannerReady(): void; | ||
@@ -87,0 +86,0 @@ watchEndpoint(newValue: string, oldValue: string): void; |
{ | ||
"name": "@everymatrix/blog-articles-grid", | ||
"version": "1.13.13", | ||
"version": "1.13.14", | ||
"main": "./dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
7804
444006