@everymatrix/blog-articles-grid 1.44.0 → 1.45.2

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 (51) hide show
  1. package/dist/blog-articles-grid/blog-articles-grid.esm.js +1 -1
  2. package/dist/blog-articles-grid/p-786304d4.js +2 -0
  3. package/dist/blog-articles-grid/p-dde0107e.entry.js +1 -0
  4. package/dist/blog-articles-grid/p-e1255160.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/blog-articles-grid.cjs.js +17 -11
  7. package/dist/cjs/blog-articles-grid_2.cjs.entry.js +504 -567
  8. package/dist/cjs/index-fad8e671.js +1332 -0
  9. package/dist/cjs/loader.cjs.js +7 -13
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/blog-articles-grid/blog-articles-grid.js +676 -717
  12. package/dist/collection/components/blog-articles-grid/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +34 -34
  14. package/dist/collection/utils/utils.js +52 -52
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/blog-articles-grid.js +14 -11
  17. package/dist/esm/blog-articles-grid_2.entry.js +504 -567
  18. package/dist/esm/index-2c19cd94.js +1305 -0
  19. package/dist/esm/loader.js +7 -13
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/blog-articles-grid/.stencil/packages/stencil/blog-articles-grid/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/blog-articles-grid/.stencil/packages/stencil/blog-articles-grid/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/blog-articles-grid/blog-articles-grid.d.ts +114 -114
  25. package/dist/types/components/blog-articles-grid/index.d.ts +1 -0
  26. package/dist/types/components.d.ts +16 -1
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +9 -3
  35. package/dist/blog-articles-grid/p-cb7acb6b.js +0 -1
  36. package/dist/blog-articles-grid/p-cbc63da6.entry.js +0 -1
  37. package/dist/cjs/index-159efcd2.js +0 -1355
  38. package/dist/components/blog-articles-grid.d.ts +0 -11
  39. package/dist/components/blog-articles-grid.js +0 -485
  40. package/dist/components/helper-pagination.js +0 -6
  41. package/dist/components/helper-pagination2.js +0 -287
  42. package/dist/components/index.d.ts +0 -26
  43. package/dist/components/index.js +0 -1
  44. package/dist/esm/index-6c1af2f1.js +0 -1329
  45. package/dist/esm/polyfills/core-js.js +0 -11
  46. package/dist/esm/polyfills/css-shim.js +0 -1
  47. package/dist/esm/polyfills/dom.js +0 -79
  48. package/dist/esm/polyfills/es5-html-element.js +0 -1
  49. package/dist/esm/polyfills/index.js +0 -34
  50. package/dist/esm/polyfills/system.js +0 -6
  51. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/blog-articles-grid/.stencil/packages/blog-articles-grid/stencil.config.d.ts +0 -2
@@ -1,17 +1,11 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6c1af2f1.js';
1
+ import { b as bootstrapLazy } from './index-2c19cd94.js';
2
+ export { s as setNonce } from './index-2c19cd94.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
2
4
 
3
- /*
4
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
5
- */
6
- const patchEsm = () => {
7
- return promiseResolve();
8
- };
9
-
10
- const defineCustomElements = (win, options) => {
11
- if (typeof window === 'undefined') return Promise.resolve();
12
- return patchEsm().then(() => {
13
- return bootstrapLazy([["blog-articles-grid_2",[[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],"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]}]]]], options);
14
- });
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["blog-articles-grid_2",[[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],"isLoading":[32],"bannerMatrixReady":[32],"nextPage":[32],"previousPage":[32],"device":[32],"blogData":[32],"totalBlogs":[32]},[[8,"BannerMatrixReady","handleBannerReady"],[0,"hpPageChange","hpPageChange"]],{"page":["watchEndpoint"],"hasErrors":["watchEndpoint"],"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"cmsEnv":["watchEndpoint"],"userRoles":["watchEndpoint"],"blogsLimit":["watchEndpoint"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingChange"]}],[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]}]]]], options);
15
9
  };
16
10
 
17
11
  export { defineCustomElements };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'blog-article-grid',
4
+ taskQueue: 'async',
5
+ sourceMap: true,
6
+ minifyJs: false,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www',
14
+ serviceWorker: null // disable service workers
15
+ }
16
+ ]
17
+ };
@@ -1,22 +1,17 @@
1
- import { sass } from '@stencil/sass';
1
+ import { sass } from "@stencil/sass";
2
2
  export const config = {
3
- namespace: 'blog-articles-grid',
4
- taskQueue: 'async',
5
- plugins: [sass()],
6
- outputTargets: [
7
- {
8
- type: 'dist',
9
- esmLoaderPath: '../loader',
3
+ namespace: 'blog-articles-grid',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
10
9
  },
11
- {
12
- type: 'dist-custom-elements',
13
- },
14
- {
15
- type: 'docs-readme',
16
- },
17
- {
18
- type: 'www',
19
- serviceWorker: null, // disable service workers
20
- },
21
- ],
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
22
17
  };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -1,117 +1,117 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import '@everymatrix/helper-pagination';
2
+ import "../../../../../../dist/packages/stencil/helper-pagination/dist/types/index";
3
3
  export declare class BlogArticlesGrid {
4
- /**
5
- * Endpoint URL for the source of data
6
- */
7
- cmsEndpoint: string;
8
- /**
9
- * Language of the widget
10
- */
11
- language: string;
12
- /**
13
- * User roles
14
- */
15
- userRoles: string;
16
- /**
17
- * CMS Endpoint stage
18
- */
19
- cmsEnv: string;
20
- /**
21
- * Client custom styling via string
22
- */
23
- clientStyling: string;
24
- /**
25
- * Client custom styling via url
26
- */
27
- clientStylingUrl: string;
28
- /**
29
- * Property used to display the publishing date
30
- */
31
- showPublishingDate: boolean;
32
- /**
33
- * Property used to display the image
34
- */
35
- showImage: boolean;
36
- /**
37
- * Property used to display the image
38
- */
39
- showTitle: boolean;
40
- /**
41
- * Property used to display the description
42
- */
43
- showContent: boolean;
44
- /**
45
- * Property used to display the button
46
- */
47
- showButton: boolean;
48
- /**
49
- * Use postMessage event to communicate
50
- */
51
- usePostmessage: boolean;
52
- /**
53
- * Event name to be sent when the button is clicked
54
- */
55
- postMessageEvent: string;
56
- /**
57
- * Customize pagination: Activate pagination numbered navigation
58
- */
59
- blogsLimit: string;
60
- /**
61
- * Customize pagination: Activate pagination
62
- */
63
- paginationActive: boolean;
64
- /**
65
- * Customize pagination: Activate pagination arrows
66
- */
67
- arrowsActive: boolean;
68
- /**
69
- * Customize pagination: Activate pagination secondary arrows
70
- */
71
- secondaryArrowsActive: boolean;
72
- /**
73
- * Customize pagination: Activate pagination numbered navigation
74
- */
75
- numberedNavActive: boolean;
76
- /**
77
- * Intl date format
78
- */
79
- intlDateTimeFormat: string;
80
- /**
81
- * Page to particularly be opened on start
82
- */
83
- page: string;
84
- ArticleActionButton: EventEmitter<Object>;
85
- getArticleId(postId: number, slug: string, customPath: string): void;
86
- paginationBlogList: any;
87
- currentPage: number;
88
- hasErrors: boolean;
89
- private isLoading;
90
- bannerMatrixReady: boolean;
91
- nextPage: string;
92
- previousPage: string;
93
- device: string;
94
- blogData: any;
95
- totalBlogs: number;
96
- lastPage: number;
97
- clientStylingContent: string;
98
- handleBannerReady(): void;
99
- watchEndpoint(newValue: string, oldValue: string): void;
100
- handleStylingChange(newValue: string, oldValue: string): void;
101
- private stylingContainer;
102
- private defaultStyling;
103
- hpPageChange(event: CustomEvent<BlogArticlesGrid>): void;
104
- sortArticlesByDate(arr: any): any;
105
- findLatestFeatured(array: any): any;
106
- moveLatestFeatureToStart(articlesArray: any, latestFeatured: any): any;
107
- getBlogArticleGrid(page?: number): void;
108
- connectedCallback(): void;
109
- componentWillLoad(): Promise<string>;
110
- componentDidLoad(): void;
111
- setClientStyling: () => void;
112
- fetchClientStyling(): Promise<string>;
113
- setImage: (image: any) => string;
114
- formatDate(dateString: any): string;
115
- renderContentConditionally: (content: string) => HTMLElement;
116
- render(): void;
4
+ /**
5
+ * Endpoint URL for the source of data
6
+ */
7
+ cmsEndpoint: string;
8
+ /**
9
+ * Language of the widget
10
+ */
11
+ language: string;
12
+ /**
13
+ * User roles
14
+ */
15
+ userRoles: string;
16
+ /**
17
+ * CMS Endpoint stage
18
+ */
19
+ cmsEnv: string;
20
+ /**
21
+ * Client custom styling via string
22
+ */
23
+ clientStyling: string;
24
+ /**
25
+ * Client custom styling via url
26
+ */
27
+ clientStylingUrl: string;
28
+ /**
29
+ * Property used to display the publishing date
30
+ */
31
+ showPublishingDate: boolean;
32
+ /**
33
+ * Property used to display the image
34
+ */
35
+ showImage: boolean;
36
+ /**
37
+ * Property used to display the image
38
+ */
39
+ showTitle: boolean;
40
+ /**
41
+ * Property used to display the description
42
+ */
43
+ showContent: boolean;
44
+ /**
45
+ * Property used to display the button
46
+ */
47
+ showButton: boolean;
48
+ /**
49
+ * Use postMessage event to communicate
50
+ */
51
+ usePostmessage: boolean;
52
+ /**
53
+ * Event name to be sent when the button is clicked
54
+ */
55
+ postMessageEvent: string;
56
+ /**
57
+ * Customize pagination: Activate pagination numbered navigation
58
+ */
59
+ blogsLimit: string;
60
+ /**
61
+ * Customize pagination: Activate pagination
62
+ */
63
+ paginationActive: boolean;
64
+ /**
65
+ * Customize pagination: Activate pagination arrows
66
+ */
67
+ arrowsActive: boolean;
68
+ /**
69
+ * Customize pagination: Activate pagination secondary arrows
70
+ */
71
+ secondaryArrowsActive: boolean;
72
+ /**
73
+ * Customize pagination: Activate pagination numbered navigation
74
+ */
75
+ numberedNavActive: boolean;
76
+ /**
77
+ * Intl date format
78
+ */
79
+ intlDateTimeFormat: string;
80
+ /**
81
+ * Page to particularly be opened on start
82
+ */
83
+ page: string;
84
+ articleActionButton: EventEmitter<Object>;
85
+ getArticleId(postId: number, slug: string, customPath: string): void;
86
+ paginationBlogList: any;
87
+ currentPage: number;
88
+ hasErrors: boolean;
89
+ private isLoading;
90
+ bannerMatrixReady: boolean;
91
+ nextPage: string;
92
+ previousPage: string;
93
+ device: string;
94
+ blogData: any;
95
+ totalBlogs: number;
96
+ lastPage: number;
97
+ clientStylingContent: string;
98
+ handleBannerReady(): void;
99
+ watchEndpoint(newValue: string, oldValue: string): void;
100
+ handleStylingChange(newValue: string, oldValue: string): void;
101
+ private stylingContainer;
102
+ private defaultStyling;
103
+ hpPageChange(event: CustomEvent<BlogArticlesGrid>): void;
104
+ sortArticlesByDate(arr: any): any;
105
+ findLatestFeatured(array: any): any;
106
+ moveLatestFeatureToStart(articlesArray: any, latestFeatured: any): any;
107
+ getBlogArticleGrid(page?: number): void;
108
+ connectedCallback(): void;
109
+ componentWillLoad(): Promise<string>;
110
+ componentDidLoad(): void;
111
+ setClientStyling: () => void;
112
+ fetchClientStyling(): Promise<string>;
113
+ setImage: (image: any) => string;
114
+ formatDate(dateString: any): string;
115
+ renderContentConditionally: (content: string) => HTMLElement;
116
+ render(): void;
117
117
  }
@@ -0,0 +1 @@
1
+ export { BlogArticlesGrid } from './blog-articles-grid';
@@ -89,8 +89,23 @@ export namespace Components {
89
89
  "userRoles": string;
90
90
  }
91
91
  }
92
+ export interface BlogArticlesGridCustomEvent<T> extends CustomEvent<T> {
93
+ detail: T;
94
+ target: HTMLBlogArticlesGridElement;
95
+ }
92
96
  declare global {
97
+ interface HTMLBlogArticlesGridElementEventMap {
98
+ "articleActionButton": Object;
99
+ }
93
100
  interface HTMLBlogArticlesGridElement extends Components.BlogArticlesGrid, HTMLStencilElement {
101
+ addEventListener<K extends keyof HTMLBlogArticlesGridElementEventMap>(type: K, listener: (this: HTMLBlogArticlesGridElement, ev: BlogArticlesGridCustomEvent<HTMLBlogArticlesGridElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
102
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
103
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
104
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
105
+ removeEventListener<K extends keyof HTMLBlogArticlesGridElementEventMap>(type: K, listener: (this: HTMLBlogArticlesGridElement, ev: BlogArticlesGridCustomEvent<HTMLBlogArticlesGridElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
106
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
107
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
108
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
94
109
  }
95
110
  var HTMLBlogArticlesGridElement: {
96
111
  prototype: HTMLBlogArticlesGridElement;
@@ -138,7 +153,7 @@ declare namespace LocalJSX {
138
153
  * Customize pagination: Activate pagination numbered navigation
139
154
  */
140
155
  "numberedNavActive"?: boolean;
141
- "onArticleActionButton"?: (event: CustomEvent<Object>) => void;
156
+ "onArticleActionButton"?: (event: BlogArticlesGridCustomEvent<Object>) => void;
142
157
  /**
143
158
  * Page to particularly be opened on start
144
159
  */