@everymatrix/blog-articles-grid
Advanced tools
Comparing version 1.27.3 to 1.27.4
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-13642dde.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-e850d485",[[1,"blog-articles-grid",{cmsEndpoint:[513,"cms-endpoint"],language:[513],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],showPublishingDate:[516,"show-publishing-date"],showImage:[516,"show-image"],showTitle:[516,"show-title"],showContent:[516,"show-content"],showButton:[516,"show-button"],usePostmessage:[516,"use-postmessage"],postMessageEvent:[513,"post-message-event"],blogsLimit:[513,"blogs-limit"],paginationActive:[516,"pagination-active"],arrowsActive:[516,"arrows-active"],secondaryArrowsActive:[516,"secondary-arrows-active"],numberedNavActive:[516,"numbered-nav-active"],intlDateTimeFormat:[513,"intl-date-time-format"],page:[513],paginationBlogList:[32],currentPage:[32],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],bannerMatrixReady:[32],nextPage:[32],previousPage:[32],device:[32],blogData:[32],totalBlogs:[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-13642dde.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-9b993759",[[1,"blog-articles-grid",{cmsEndpoint:[513,"cms-endpoint"],language:[513],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],showPublishingDate:[516,"show-publishing-date"],showImage:[516,"show-image"],showTitle:[516,"show-title"],showContent:[516,"show-content"],showButton:[516,"show-button"],usePostmessage:[516,"use-postmessage"],postMessageEvent:[513,"post-message-event"],blogsLimit:[513,"blogs-limit"],paginationActive:[516,"pagination-active"],arrowsActive:[516,"arrows-active"],secondaryArrowsActive:[516,"secondary-arrows-active"],numberedNavActive:[516,"numbered-nav-active"],intlDateTimeFormat:[513,"intl-date-time-format"],page:[513],paginationBlogList:[32],currentPage:[32],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],bannerMatrixReady:[32],nextPage:[32],previousPage:[32],device:[32],blogData:[32],totalBlogs:[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))); |
@@ -88,3 +88,3 @@ 'use strict'; | ||
index.registerInstance(this, hostRef); | ||
this.articleActionButton = index.createEvent(this, "articleActionButton", 7); | ||
this.ArticleActionButton = index.createEvent(this, "ArticleActionButton", 7); | ||
/** | ||
@@ -133,3 +133,3 @@ * Language of the widget | ||
*/ | ||
this.postMessageEvent = 'articleActionButton'; | ||
this.postMessageEvent = ''; | ||
/** | ||
@@ -223,3 +223,3 @@ * Customize pagination: Activate pagination numbered navigation | ||
.catch((err) => { | ||
console.log('error ', err); | ||
console.log('Error ', err); | ||
}); | ||
@@ -256,6 +256,11 @@ }; | ||
getArticleId(postId, slug, customPath) { | ||
this.articleActionButton.emit({ postId, slug, customPath }); | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
else { | ||
this.ArticleActionButton.emit({ postId, slug, customPath }); | ||
} | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
} | ||
@@ -290,3 +295,3 @@ // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS. | ||
connectedCallback() { | ||
if (this.cmsEndpoint && this.language) { | ||
if (this.cmsEndpoint && this.language && this.blogsLimit) { | ||
if (this.page) { | ||
@@ -400,3 +405,4 @@ this.currentPage = this.currentPage + +this.page - 1; | ||
"cmsEnv": ["watchEndpoint"], | ||
"userRoles": ["watchEndpoint"] | ||
"userRoles": ["watchEndpoint"], | ||
"blogsLimit": ["watchEndpoint"] | ||
}; } | ||
@@ -403,0 +409,0 @@ }; |
@@ -50,3 +50,3 @@ import { Component, Prop, State, Event, Watch, h, Listen } from '@stencil/core'; | ||
*/ | ||
this.postMessageEvent = 'articleActionButton'; | ||
this.postMessageEvent = ''; | ||
/** | ||
@@ -140,3 +140,3 @@ * Customize pagination: Activate pagination numbered navigation | ||
.catch((err) => { | ||
console.log('error ', err); | ||
console.log('Error ', err); | ||
}); | ||
@@ -173,6 +173,11 @@ }; | ||
getArticleId(postId, slug, customPath) { | ||
this.articleActionButton.emit({ postId, slug, customPath }); | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
else { | ||
this.ArticleActionButton.emit({ postId, slug, customPath }); | ||
} | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
} | ||
@@ -207,3 +212,3 @@ // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS. | ||
connectedCallback() { | ||
if (this.cmsEndpoint && this.language) { | ||
if (this.cmsEndpoint && this.language && this.blogsLimit) { | ||
if (this.page) { | ||
@@ -565,3 +570,3 @@ this.currentPage = this.currentPage + +this.page - 1; | ||
"reflect": true, | ||
"defaultValue": "'articleActionButton'" | ||
"defaultValue": "''" | ||
}, | ||
@@ -705,4 +710,4 @@ "blogsLimit": { | ||
static get events() { return [{ | ||
"method": "articleActionButton", | ||
"name": "articleActionButton", | ||
"method": "ArticleActionButton", | ||
"name": "ArticleActionButton", | ||
"bubbles": true, | ||
@@ -737,2 +742,5 @@ "cancelable": true, | ||
"methodName": "watchEndpoint" | ||
}, { | ||
"propName": "blogsLimit", | ||
"methodName": "watchEndpoint" | ||
}]; } | ||
@@ -739,0 +747,0 @@ static get listeners() { return [{ |
@@ -87,3 +87,3 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client'; | ||
this.__attachShadow(); | ||
this.articleActionButton = createEvent(this, "articleActionButton", 7); | ||
this.ArticleActionButton = createEvent(this, "ArticleActionButton", 7); | ||
/** | ||
@@ -132,3 +132,3 @@ * Language of the widget | ||
*/ | ||
this.postMessageEvent = 'articleActionButton'; | ||
this.postMessageEvent = ''; | ||
/** | ||
@@ -222,3 +222,3 @@ * Customize pagination: Activate pagination numbered navigation | ||
.catch((err) => { | ||
console.log('error ', err); | ||
console.log('Error ', err); | ||
}); | ||
@@ -255,6 +255,11 @@ }; | ||
getArticleId(postId, slug, customPath) { | ||
this.articleActionButton.emit({ postId, slug, customPath }); | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
else { | ||
this.ArticleActionButton.emit({ postId, slug, customPath }); | ||
} | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
} | ||
@@ -289,3 +294,3 @@ // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS. | ||
connectedCallback() { | ||
if (this.cmsEndpoint && this.language) { | ||
if (this.cmsEndpoint && this.language && this.blogsLimit) { | ||
if (this.page) { | ||
@@ -399,3 +404,4 @@ this.currentPage = this.currentPage + +this.page - 1; | ||
"cmsEnv": ["watchEndpoint"], | ||
"userRoles": ["watchEndpoint"] | ||
"userRoles": ["watchEndpoint"], | ||
"blogsLimit": ["watchEndpoint"] | ||
}; } | ||
@@ -402,0 +408,0 @@ static get style() { return blogArticlesGridCss; } |
@@ -84,3 +84,3 @@ import { r as registerInstance, c as createEvent, h } from './index-3600ba1b.js'; | ||
registerInstance(this, hostRef); | ||
this.articleActionButton = createEvent(this, "articleActionButton", 7); | ||
this.ArticleActionButton = createEvent(this, "ArticleActionButton", 7); | ||
/** | ||
@@ -129,3 +129,3 @@ * Language of the widget | ||
*/ | ||
this.postMessageEvent = 'articleActionButton'; | ||
this.postMessageEvent = ''; | ||
/** | ||
@@ -219,3 +219,3 @@ * Customize pagination: Activate pagination numbered navigation | ||
.catch((err) => { | ||
console.log('error ', err); | ||
console.log('Error ', err); | ||
}); | ||
@@ -252,6 +252,11 @@ }; | ||
getArticleId(postId, slug, customPath) { | ||
this.articleActionButton.emit({ postId, slug, customPath }); | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
else { | ||
this.ArticleActionButton.emit({ postId, slug, customPath }); | ||
} | ||
if (this.usePostmessage) { | ||
window.postMessage({ type: this.postMessageEvent, postId, slug, customPath }); | ||
} | ||
} | ||
@@ -286,3 +291,3 @@ // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS. | ||
connectedCallback() { | ||
if (this.cmsEndpoint && this.language) { | ||
if (this.cmsEndpoint && this.language && this.blogsLimit) { | ||
if (this.page) { | ||
@@ -396,3 +401,4 @@ this.currentPage = this.currentPage + +this.page - 1; | ||
"cmsEnv": ["watchEndpoint"], | ||
"userRoles": ["watchEndpoint"] | ||
"userRoles": ["watchEndpoint"], | ||
"blogsLimit": ["watchEndpoint"] | ||
}; } | ||
@@ -399,0 +405,0 @@ }; |
@@ -84,3 +84,3 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
page: string; | ||
articleActionButton: EventEmitter<Object>; | ||
ArticleActionButton: EventEmitter<Object>; | ||
getArticleId(postId: number, slug: string, customPath: string): void; | ||
@@ -87,0 +87,0 @@ paginationBlogList: any; |
{ | ||
"name": "@everymatrix/blog-articles-grid", | ||
"version": "1.27.3", | ||
"version": "1.27.4", | ||
"main": "./dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
460206
8329