@everymatrix/blog-articles-grid 1.34.2 → 1.34.3

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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +1 -1
  3. package/dist/blog-articles-grid/blog-articles-grid.esm.js +0 -1
  4. package/dist/blog-articles-grid/index.esm.js +0 -0
  5. package/dist/blog-articles-grid/p-13642dde.js +0 -1
  6. package/dist/blog-articles-grid/p-430e371b.entry.js +0 -1
  7. package/dist/cjs/blog-articles-grid.cjs.js +0 -19
  8. package/dist/cjs/blog-articles-grid_2.cjs.entry.js +0 -681
  9. package/dist/cjs/index-a88a1a42.js +0 -1352
  10. package/dist/cjs/index.cjs.js +0 -2
  11. package/dist/cjs/loader.cjs.js +0 -21
  12. package/dist/collection/collection-manifest.json +0 -19
  13. package/dist/collection/components/blog-articles-grid/blog-articles-grid.css +0 -167
  14. package/dist/collection/components/blog-articles-grid/blog-articles-grid.js +0 -773
  15. package/dist/collection/index.js +0 -1
  16. package/dist/collection/utils/locale.utils.js +0 -40
  17. package/dist/collection/utils/utils.js +0 -67
  18. package/dist/components/blog-articles-grid.d.ts +0 -11
  19. package/dist/components/blog-articles-grid.js +0 -482
  20. package/dist/components/helper-pagination.js +0 -6
  21. package/dist/components/helper-pagination2.js +0 -288
  22. package/dist/components/index.d.ts +0 -26
  23. package/dist/components/index.js +0 -1
  24. package/dist/esm/blog-articles-grid.js +0 -17
  25. package/dist/esm/blog-articles-grid_2.entry.js +0 -676
  26. package/dist/esm/index-3600ba1b.js +0 -1326
  27. package/dist/esm/index.js +0 -1
  28. package/dist/esm/loader.js +0 -17
  29. package/dist/esm/polyfills/core-js.js +0 -11
  30. package/dist/esm/polyfills/css-shim.js +0 -1
  31. package/dist/esm/polyfills/dom.js +0 -79
  32. package/dist/esm/polyfills/es5-html-element.js +0 -1
  33. package/dist/esm/polyfills/index.js +0 -34
  34. package/dist/esm/polyfills/system.js +0 -6
  35. package/dist/index.cjs.js +0 -1
  36. package/dist/index.js +0 -1
  37. package/dist/stencil.config.js +0 -22
  38. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/blog-articles-grid/.stencil/packages/blog-articles-grid/stencil.config.d.ts +0 -2
  39. package/dist/types/components/blog-articles-grid/blog-articles-grid.d.ts +0 -116
  40. package/dist/types/components.d.ts +0 -198
  41. package/dist/types/index.d.ts +0 -1
  42. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  43. package/dist/types/utils/locale.utils.d.ts +0 -1
  44. package/dist/types/utils/utils.d.ts +0 -4
  45. package/loader/cdn.js +0 -3
  46. package/loader/index.cjs.js +0 -3
  47. package/loader/index.d.ts +0 -12
  48. package/loader/index.es2017.js +0 -3
  49. package/loader/index.js +0 -4
  50. package/loader/package.json +0 -10
@@ -1,773 +0,0 @@
1
- import { Component, Prop, State, Event, Watch, h, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import { getDevicePlatform, getDeviceCustom } from '../../utils/utils';
4
- import '@everymatrix/helper-pagination';
5
- export class BlogArticlesGrid {
6
- constructor() {
7
- /**
8
- * Language of the widget
9
- */
10
- this.language = 'en';
11
- /**
12
- * User roles
13
- */
14
- this.userRoles = 'everyone';
15
- /**
16
- * CMS Endpoint stage
17
- */
18
- this.cmsEnv = 'stage';
19
- /**
20
- * Client custom styling via string
21
- */
22
- this.clientStyling = '';
23
- /**
24
- * Client custom styling via url
25
- */
26
- this.clientStylingUrl = '';
27
- /**
28
- * Property used to display the publishing date
29
- */
30
- this.showPublishingDate = true;
31
- /**
32
- * Property used to display the image
33
- */
34
- this.showImage = true;
35
- /**
36
- * Property used to display the image
37
- */
38
- this.showTitle = true;
39
- /**
40
- * Property used to display the description
41
- */
42
- this.showContent = true;
43
- /**
44
- * Property used to display the button
45
- */
46
- this.showButton = true;
47
- /**
48
- * Event name to be sent when the button is clicked
49
- */
50
- this.postMessageEvent = '';
51
- /**
52
- * Customize pagination: Activate pagination numbered navigation
53
- */
54
- this.blogsLimit = '0';
55
- /**
56
- * Intl date format
57
- */
58
- this.intlDateTimeFormat = '';
59
- /**
60
- * Page to particularly be opened on start
61
- */
62
- this.page = '1';
63
- this.paginationBlogList = {
64
- offset: 0
65
- };
66
- this.currentPage = 0;
67
- this.hasErrors = false;
68
- this.limitStylingAppends = false;
69
- this.isLoading = true;
70
- this.bannerMatrixReady = false;
71
- this.nextPage = '';
72
- this.previousPage = '';
73
- this.device = '';
74
- this.totalBlogs = 0;
75
- this.defaultStyling = `
76
- div#PaginationContainer {
77
- justify-content: right;
78
- }
79
- .LeftItems button .NavigationButton {
80
- display: none;
81
- }
82
- .LeftItems button:after, .RightItems button:after {
83
- padding: 7px 12px;
84
- font-size: 18px;
85
- font-weight: 700;
86
- line-height: 46px;
87
- }
88
- .LeftItems button:after {
89
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.2em' viewBox='0 0 320 512'%3E%3C!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z'/%3E%3C/svg%3E");
90
- }
91
- .RightItems button:after {
92
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1.2em' viewBox='0 0 320 512'%3E%3C!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");
93
- display: block;
94
- height: 38px;
95
- }
96
- div.LeftItems button, div.RightItems button {
97
- width: unset;
98
- height: 40px;
99
- background-color: #fff;
100
- color: #000;
101
- border: 1px solid #000;
102
- overflow: hidden;
103
- &:disabled {
104
- background-color: #989898;
105
- }
106
- }
107
- div.LeftItems button {
108
- min-width: 60px;
109
- border-radius: 20px 0 0 20px;
110
- border-right: 0;
111
- }
112
- div.RightItems button {
113
- display: flex;
114
- min-width: 100px;
115
- justify-content: space-evenly;
116
- align-items: center;
117
- border-radius: 0 20px 20px 0;
118
- text-transform: none;
119
- }
120
- .RightItems button .NavigationButton {
121
- padding: 12px 0 12px 12px;
122
- font-weight: 700;
123
- }`;
124
- this.setClientStyling = () => {
125
- let sheet = document.createElement('style');
126
- sheet.innerHTML = this.clientStyling;
127
- this.stylingContainer.prepend(sheet);
128
- };
129
- this.setClientStylingURL = () => {
130
- let url = new URL(this.clientStylingUrl);
131
- let cssFile = document.createElement('style');
132
- fetch(url.href)
133
- .then((res) => res.text())
134
- .then((data) => {
135
- cssFile.innerHTML = data;
136
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
137
- })
138
- .catch((err) => {
139
- console.log('Error ', err);
140
- });
141
- };
142
- this.setImage = (image) => {
143
- let source = '';
144
- switch (this.device) {
145
- case 'mobile':
146
- source = image.sources[0].pictureSource;
147
- break;
148
- case 'tablet':
149
- source = image.sources[1].pictureSource;
150
- break;
151
- case 'desktop':
152
- source = image.sources[2].pictureSource;
153
- break;
154
- }
155
- return source;
156
- };
157
- this.renderContentConditionally = (content) => {
158
- if (!content)
159
- return;
160
- const hasBanner = content.indexOf('<bannermatrix-banner') !== -1;
161
- if (!hasBanner) {
162
- return h("div", { class: "BlogContent", innerHTML: content });
163
- }
164
- if (this.bannerMatrixReady) {
165
- return h("div", { class: "BlogContent", innerHTML: content });
166
- }
167
- return null;
168
- };
169
- }
170
- getArticleId(postId, slug, customPath) {
171
- if (this.usePostmessage) {
172
- window.postMessage({ type: this.postMessageEvent, postId, slug, customPath });
173
- }
174
- else {
175
- this.ArticleActionButton.emit({ postId, slug, customPath });
176
- }
177
- }
178
- // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS.
179
- handleBannerReady() {
180
- this.bannerMatrixReady = true;
181
- }
182
- watchEndpoint(newValue, oldValue) {
183
- this.currentPage = parseInt(this.page) - 1;
184
- if (newValue && newValue != oldValue && this.cmsEndpoint && this.language) {
185
- this.getBlogArticleGrid();
186
- }
187
- }
188
- hpPageChange(event) {
189
- var _a, _b;
190
- this.paginationBlogList = event.detail;
191
- 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));
192
- if (this.page) {
193
- this.currentPage = this.currentPage + +this.page - 1;
194
- }
195
- if (this.currentPage + 1 > this.lastPage) {
196
- this.nextPage = null;
197
- return;
198
- }
199
- if (this.currentPage < 0) {
200
- this.previousPage = null;
201
- return;
202
- }
203
- window.postMessage({ type: 'BlogArticlesGridActivePagination', currentPage: this.currentPage }, window.location.href);
204
- this.getBlogArticleGrid();
205
- }
206
- connectedCallback() {
207
- if (this.cmsEndpoint && this.language && this.blogsLimit) {
208
- if (this.page) {
209
- this.currentPage = this.currentPage + +this.page - 1;
210
- this.getBlogArticleGrid(+this.page);
211
- }
212
- else {
213
- this.getBlogArticleGrid();
214
- }
215
- }
216
- }
217
- componentDidLoad() {
218
- window.postMessage({ type: 'BlogArticlesGridLoaded' }, window.location.href);
219
- this.device = getDeviceCustom();
220
- }
221
- sortArticlesByDate(arr) {
222
- arr.sort((a, b) => {
223
- if (a.publishingDate > b.publishingDate)
224
- return -1;
225
- if (a.publishingDate < b.publishingDate)
226
- return 1;
227
- return 0;
228
- });
229
- return arr;
230
- }
231
- findLatestFeatured(array) {
232
- let featuredItems = array.filter(item => item.isFeaturedPost);
233
- if (featuredItems.length === 0) {
234
- return null;
235
- }
236
- featuredItems = this.sortArticlesByDate(featuredItems);
237
- return featuredItems[0];
238
- }
239
- moveLatestFeatureToStart(articlesArray, latestFeatured) {
240
- const index = articlesArray.indexOf(latestFeatured);
241
- if (index !== -1) {
242
- articlesArray.splice(index, 1);
243
- articlesArray.unshift(latestFeatured);
244
- }
245
- return articlesArray;
246
- }
247
- getBlogArticleGrid(page) {
248
- this.isLoading = true;
249
- let url = new URL(`${this.cmsEndpoint}/${this.language}/blog-posts`);
250
- url.searchParams.append('per_page', this.blogsLimit);
251
- url.searchParams.append('page', JSON.stringify(page ? page : this.currentPage + 1));
252
- url.searchParams.append('env', this.cmsEnv);
253
- url.searchParams.append('userRoles', this.userRoles);
254
- url.searchParams.append('device', getDevicePlatform());
255
- fetch(url.href)
256
- .then((res) => {
257
- if (res.status >= 300) {
258
- this.hasErrors = true;
259
- throw new Error('There was an error while fetching the data');
260
- }
261
- return res.json();
262
- })
263
- .then((blogContent) => {
264
- this.lastPage = +blogContent.pages.last.match(/&page=(\d+)/)[1];
265
- let blogItems = blogContent.items;
266
- this.nextPage = blogContent.pages.next;
267
- this.previousPage = blogContent.pages.previous;
268
- this.totalBlogs = blogContent.total;
269
- const latestFeatured = this.findLatestFeatured(blogItems);
270
- this.blogData = this.sortArticlesByDate(blogItems);
271
- this.blogData = this.moveLatestFeatureToStart(blogItems, latestFeatured);
272
- this.blogData.items = blogItems.map((item) => {
273
- return Object.assign(Object.assign({}, item), { publishingDate: new Date(item.publishingDate).toLocaleDateString() });
274
- });
275
- this.isLoading = false;
276
- this.hasErrors = false;
277
- })
278
- .catch((err) => {
279
- this.hasErrors = true;
280
- console.log('Error', err);
281
- })
282
- .finally(() => this.isLoading = false);
283
- }
284
- componentDidRender() {
285
- // start custom styling area
286
- if (!this.limitStylingAppends && this.stylingContainer) {
287
- if (this.clientStyling)
288
- this.setClientStyling();
289
- if (this.clientStylingUrl)
290
- this.setClientStylingURL();
291
- this.limitStylingAppends = true;
292
- }
293
- // end custom styling area
294
- }
295
- formatDate(dateString) {
296
- return new Intl.DateTimeFormat(this.intlDateTimeFormat).format(new Date(dateString));
297
- }
298
- render() {
299
- var _a, _b;
300
- if (this.hasErrors) {
301
- return (h("div", { class: "BlogsContainer" },
302
- h("div", { class: "ErrorMessage" }, translate('error', this.language))));
303
- }
304
- // Create an array to store the placeholder elements for each card
305
- const placeholderCards = [];
306
- // Loop through the blogsLimit in order to generate the desired number of cards
307
- for (let i = 0; i < parseInt(this.blogsLimit); i++) {
308
- placeholderCards.push(h("div", { class: "GridContainer FeaturedPost" },
309
- h("div", { class: "GridWrapper" },
310
- h("div", { class: "GridSector" },
311
- h("div", { class: "VisualContent LoadingImage" })),
312
- h("div", { class: "GridSector" },
313
- h("div", { class: "BlogTitle LoadingStripe LoadingSmallStripe" }),
314
- h("div", { class: "BlogDetails LoadingStripe LoadingMediumStripe" }),
315
- h("div", { class: "BlogLink LoadingStripe LoadingLongStripe" })))));
316
- }
317
- return (h("div", { ref: el => this.stylingContainer = el },
318
- h("div", { class: "BlogPageContainer" },
319
- h("div", { class: "BlogGridPaginationWrapper" }, this.paginationActive == true && this.totalBlogs > +this.blogsLimit && h("helper-pagination", { "next-page": this.nextPage, "prev-page": this.previousPage, offset: this.paginationBlogList.offset, limit: this.blogsLimit, total: (_b = (_a = this.blogData) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length, language: this.language, "client-styling": this.clientStyling || this.defaultStyling, "arrows-active": this.arrowsActive || true, "secondary-arrows-active": this.secondaryArrowsActive || false, "numbered-nav-active": this.numberedNavActive || false })),
320
- (!this.isLoading) &&
321
- h("div", { class: `GridContainerWrapper BlogPage-${this.currentPage}` }, this.blogData && this.blogData.map((data) => {
322
- var _a, _b;
323
- return h("div", { key: data.postID, class: data.isFeaturedPost ? 'GridContainer FeaturedPost' : 'GridContainer' },
324
- h("div", { class: "GridWrapper" },
325
- h("div", { class: "GridSector" },
326
- this.showPublishingDate &&
327
- h("div", { class: "BlogDate" }, this.formatDate(data === null || data === void 0 ? void 0 : data.publishingDate)),
328
- this.showImage && ((_a = data.image) === null || _a === void 0 ? void 0 : _a.src) ? (h("div", { class: "VisualContent", style: { background: `url(${this.setImage(data.image)}) no-repeat center center / cover` } })) : (((_b = data.video) === null || _b === void 0 ? void 0 : _b.sources[this.device]) ? (h("video", { class: "VisualContent", src: data.video.sources[this.device], controls: true })) : (h("h1", { class: "VisualContent", style: { color: "#fff" } }, "No Image")))),
329
- h("div", { class: "GridSector" },
330
- this.showTitle &&
331
- h("div", { class: "BlogTitle" }, data === null || data === void 0 ? void 0 : data.title),
332
- this.showContent &&
333
- this.renderContentConditionally(data === null || data === void 0 ? void 0 : data.descriptionPreview),
334
- this.showButton &&
335
- h("div", { class: "BlogLink" },
336
- h("button", { onClick: () => this.getArticleId(data === null || data === void 0 ? void 0 : data.postID, data === null || data === void 0 ? void 0 : data.slug, data === null || data === void 0 ? void 0 : data.customPath) }, translate('readmore', this.language))))));
337
- })),
338
- (this.isLoading) &&
339
- h("div", { class: "GridContainerWrapper LoadingGrid" }, placeholderCards))));
340
- }
341
- static get is() { return "blog-articles-grid"; }
342
- static get encapsulation() { return "shadow"; }
343
- static get originalStyleUrls() { return {
344
- "$": ["blog-articles-grid.scss"]
345
- }; }
346
- static get styleUrls() { return {
347
- "$": ["blog-articles-grid.css"]
348
- }; }
349
- static get properties() { return {
350
- "cmsEndpoint": {
351
- "type": "string",
352
- "mutable": false,
353
- "complexType": {
354
- "original": "string",
355
- "resolved": "string",
356
- "references": {}
357
- },
358
- "required": false,
359
- "optional": false,
360
- "docs": {
361
- "tags": [],
362
- "text": "Endpoint URL for the source of data"
363
- },
364
- "attribute": "cms-endpoint",
365
- "reflect": true
366
- },
367
- "language": {
368
- "type": "string",
369
- "mutable": false,
370
- "complexType": {
371
- "original": "string",
372
- "resolved": "string",
373
- "references": {}
374
- },
375
- "required": false,
376
- "optional": false,
377
- "docs": {
378
- "tags": [],
379
- "text": "Language of the widget"
380
- },
381
- "attribute": "language",
382
- "reflect": true,
383
- "defaultValue": "'en'"
384
- },
385
- "userRoles": {
386
- "type": "string",
387
- "mutable": false,
388
- "complexType": {
389
- "original": "string",
390
- "resolved": "string",
391
- "references": {}
392
- },
393
- "required": false,
394
- "optional": false,
395
- "docs": {
396
- "tags": [],
397
- "text": "User roles"
398
- },
399
- "attribute": "user-roles",
400
- "reflect": true,
401
- "defaultValue": "'everyone'"
402
- },
403
- "cmsEnv": {
404
- "type": "string",
405
- "mutable": false,
406
- "complexType": {
407
- "original": "string",
408
- "resolved": "string",
409
- "references": {}
410
- },
411
- "required": false,
412
- "optional": false,
413
- "docs": {
414
- "tags": [],
415
- "text": "CMS Endpoint stage"
416
- },
417
- "attribute": "cms-env",
418
- "reflect": true,
419
- "defaultValue": "'stage'"
420
- },
421
- "clientStyling": {
422
- "type": "string",
423
- "mutable": false,
424
- "complexType": {
425
- "original": "string",
426
- "resolved": "string",
427
- "references": {}
428
- },
429
- "required": false,
430
- "optional": false,
431
- "docs": {
432
- "tags": [],
433
- "text": "Client custom styling via string"
434
- },
435
- "attribute": "client-styling",
436
- "reflect": true,
437
- "defaultValue": "''"
438
- },
439
- "clientStylingUrl": {
440
- "type": "string",
441
- "mutable": false,
442
- "complexType": {
443
- "original": "string",
444
- "resolved": "string",
445
- "references": {}
446
- },
447
- "required": false,
448
- "optional": false,
449
- "docs": {
450
- "tags": [],
451
- "text": "Client custom styling via url"
452
- },
453
- "attribute": "client-styling-url",
454
- "reflect": true,
455
- "defaultValue": "''"
456
- },
457
- "showPublishingDate": {
458
- "type": "boolean",
459
- "mutable": false,
460
- "complexType": {
461
- "original": "boolean",
462
- "resolved": "boolean",
463
- "references": {}
464
- },
465
- "required": false,
466
- "optional": false,
467
- "docs": {
468
- "tags": [],
469
- "text": "Property used to display the publishing date"
470
- },
471
- "attribute": "show-publishing-date",
472
- "reflect": true,
473
- "defaultValue": "true"
474
- },
475
- "showImage": {
476
- "type": "boolean",
477
- "mutable": false,
478
- "complexType": {
479
- "original": "boolean",
480
- "resolved": "boolean",
481
- "references": {}
482
- },
483
- "required": false,
484
- "optional": false,
485
- "docs": {
486
- "tags": [],
487
- "text": "Property used to display the image"
488
- },
489
- "attribute": "show-image",
490
- "reflect": true,
491
- "defaultValue": "true"
492
- },
493
- "showTitle": {
494
- "type": "boolean",
495
- "mutable": false,
496
- "complexType": {
497
- "original": "boolean",
498
- "resolved": "boolean",
499
- "references": {}
500
- },
501
- "required": false,
502
- "optional": false,
503
- "docs": {
504
- "tags": [],
505
- "text": "Property used to display the image"
506
- },
507
- "attribute": "show-title",
508
- "reflect": true,
509
- "defaultValue": "true"
510
- },
511
- "showContent": {
512
- "type": "boolean",
513
- "mutable": false,
514
- "complexType": {
515
- "original": "boolean",
516
- "resolved": "boolean",
517
- "references": {}
518
- },
519
- "required": false,
520
- "optional": false,
521
- "docs": {
522
- "tags": [],
523
- "text": "Property used to display the description"
524
- },
525
- "attribute": "show-content",
526
- "reflect": true,
527
- "defaultValue": "true"
528
- },
529
- "showButton": {
530
- "type": "boolean",
531
- "mutable": false,
532
- "complexType": {
533
- "original": "boolean",
534
- "resolved": "boolean",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": false,
539
- "docs": {
540
- "tags": [],
541
- "text": "Property used to display the button"
542
- },
543
- "attribute": "show-button",
544
- "reflect": true,
545
- "defaultValue": "true"
546
- },
547
- "usePostmessage": {
548
- "type": "boolean",
549
- "mutable": false,
550
- "complexType": {
551
- "original": "boolean",
552
- "resolved": "boolean",
553
- "references": {}
554
- },
555
- "required": true,
556
- "optional": false,
557
- "docs": {
558
- "tags": [],
559
- "text": "Use postMessage event to communicate"
560
- },
561
- "attribute": "use-postmessage",
562
- "reflect": true
563
- },
564
- "postMessageEvent": {
565
- "type": "string",
566
- "mutable": false,
567
- "complexType": {
568
- "original": "string",
569
- "resolved": "string",
570
- "references": {}
571
- },
572
- "required": false,
573
- "optional": false,
574
- "docs": {
575
- "tags": [],
576
- "text": "Event name to be sent when the button is clicked"
577
- },
578
- "attribute": "post-message-event",
579
- "reflect": true,
580
- "defaultValue": "''"
581
- },
582
- "blogsLimit": {
583
- "type": "string",
584
- "mutable": false,
585
- "complexType": {
586
- "original": "string",
587
- "resolved": "string",
588
- "references": {}
589
- },
590
- "required": false,
591
- "optional": false,
592
- "docs": {
593
- "tags": [],
594
- "text": "Customize pagination: Activate pagination numbered navigation"
595
- },
596
- "attribute": "blogs-limit",
597
- "reflect": true,
598
- "defaultValue": "'0'"
599
- },
600
- "paginationActive": {
601
- "type": "boolean",
602
- "mutable": false,
603
- "complexType": {
604
- "original": "boolean",
605
- "resolved": "boolean",
606
- "references": {}
607
- },
608
- "required": false,
609
- "optional": false,
610
- "docs": {
611
- "tags": [],
612
- "text": "Customize pagination: Activate pagination"
613
- },
614
- "attribute": "pagination-active",
615
- "reflect": true
616
- },
617
- "arrowsActive": {
618
- "type": "boolean",
619
- "mutable": false,
620
- "complexType": {
621
- "original": "boolean",
622
- "resolved": "boolean",
623
- "references": {}
624
- },
625
- "required": false,
626
- "optional": false,
627
- "docs": {
628
- "tags": [],
629
- "text": "Customize pagination: Activate pagination arrows"
630
- },
631
- "attribute": "arrows-active",
632
- "reflect": true
633
- },
634
- "secondaryArrowsActive": {
635
- "type": "boolean",
636
- "mutable": false,
637
- "complexType": {
638
- "original": "boolean",
639
- "resolved": "boolean",
640
- "references": {}
641
- },
642
- "required": false,
643
- "optional": false,
644
- "docs": {
645
- "tags": [],
646
- "text": "Customize pagination: Activate pagination secondary arrows"
647
- },
648
- "attribute": "secondary-arrows-active",
649
- "reflect": true
650
- },
651
- "numberedNavActive": {
652
- "type": "boolean",
653
- "mutable": false,
654
- "complexType": {
655
- "original": "boolean",
656
- "resolved": "boolean",
657
- "references": {}
658
- },
659
- "required": false,
660
- "optional": false,
661
- "docs": {
662
- "tags": [],
663
- "text": "Customize pagination: Activate pagination numbered navigation"
664
- },
665
- "attribute": "numbered-nav-active",
666
- "reflect": true
667
- },
668
- "intlDateTimeFormat": {
669
- "type": "string",
670
- "mutable": false,
671
- "complexType": {
672
- "original": "string",
673
- "resolved": "string",
674
- "references": {}
675
- },
676
- "required": false,
677
- "optional": false,
678
- "docs": {
679
- "tags": [],
680
- "text": "Intl date format"
681
- },
682
- "attribute": "intl-date-time-format",
683
- "reflect": true,
684
- "defaultValue": "''"
685
- },
686
- "page": {
687
- "type": "string",
688
- "mutable": false,
689
- "complexType": {
690
- "original": "string",
691
- "resolved": "string",
692
- "references": {}
693
- },
694
- "required": false,
695
- "optional": false,
696
- "docs": {
697
- "tags": [],
698
- "text": "Page to particularly be opened on start"
699
- },
700
- "attribute": "page",
701
- "reflect": true,
702
- "defaultValue": "'1'"
703
- }
704
- }; }
705
- static get states() { return {
706
- "paginationBlogList": {},
707
- "currentPage": {},
708
- "hasErrors": {},
709
- "limitStylingAppends": {},
710
- "isLoading": {},
711
- "bannerMatrixReady": {},
712
- "nextPage": {},
713
- "previousPage": {},
714
- "device": {},
715
- "blogData": {},
716
- "totalBlogs": {}
717
- }; }
718
- static get events() { return [{
719
- "method": "ArticleActionButton",
720
- "name": "ArticleActionButton",
721
- "bubbles": true,
722
- "cancelable": true,
723
- "composed": true,
724
- "docs": {
725
- "tags": [],
726
- "text": ""
727
- },
728
- "complexType": {
729
- "original": "Object",
730
- "resolved": "Object",
731
- "references": {
732
- "Object": {
733
- "location": "global"
734
- }
735
- }
736
- }
737
- }]; }
738
- static get watchers() { return [{
739
- "propName": "page",
740
- "methodName": "watchEndpoint"
741
- }, {
742
- "propName": "hasErrors",
743
- "methodName": "watchEndpoint"
744
- }, {
745
- "propName": "cmsEndpoint",
746
- "methodName": "watchEndpoint"
747
- }, {
748
- "propName": "language",
749
- "methodName": "watchEndpoint"
750
- }, {
751
- "propName": "cmsEnv",
752
- "methodName": "watchEndpoint"
753
- }, {
754
- "propName": "userRoles",
755
- "methodName": "watchEndpoint"
756
- }, {
757
- "propName": "blogsLimit",
758
- "methodName": "watchEndpoint"
759
- }]; }
760
- static get listeners() { return [{
761
- "name": "BannerMatrixReady",
762
- "method": "handleBannerReady",
763
- "target": "window",
764
- "capture": false,
765
- "passive": false
766
- }, {
767
- "name": "hpPageChange",
768
- "method": "hpPageChange",
769
- "target": undefined,
770
- "capture": false,
771
- "passive": false
772
- }]; }
773
- }