@everymatrix/blog-articles-grid 1.0.69

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 (44) hide show
  1. package/dist/blog-articles-grid/blog-articles-grid.esm.js +1 -0
  2. package/dist/blog-articles-grid/index.esm.js +0 -0
  3. package/dist/blog-articles-grid/p-786304d4.js +2 -0
  4. package/dist/blog-articles-grid/p-b88c9233.entry.js +1 -0
  5. package/dist/blog-articles-grid/p-e1255160.js +1 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/blog-articles-grid.cjs.js +25 -0
  8. package/dist/cjs/blog-articles-grid_2.cjs.entry.js +623 -0
  9. package/dist/cjs/index-fad8e671.js +1332 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +19 -0
  13. package/dist/collection/components/blog-articles-grid/blog-articles-grid.css +167 -0
  14. package/dist/collection/components/blog-articles-grid/blog-articles-grid.js +740 -0
  15. package/dist/collection/components/blog-articles-grid/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/locale.utils.js +40 -0
  18. package/dist/collection/utils/utils.js +67 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/blog-articles-grid.js +20 -0
  21. package/dist/esm/blog-articles-grid_2.entry.js +618 -0
  22. package/dist/esm/index-2c19cd94.js +1305 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/blog-articles-grid/.stencil/packages/stencil/blog-articles-grid/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/blog-articles-grid/.stencil/packages/stencil/blog-articles-grid/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/blog-articles-grid/blog-articles-grid.d.ts +117 -0
  32. package/dist/types/components/blog-articles-grid/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +213 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +1 -0
  37. package/dist/types/utils/utils.d.ts +4 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +29 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
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';
4
+
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);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -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
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'blog-articles-grid',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
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;
@@ -0,0 +1,117 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import "../../../../../../dist/packages/stencil/helper-pagination/dist/types/index";
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;
117
+ }
@@ -0,0 +1 @@
1
+ export { BlogArticlesGrid } from './blog-articles-grid';
@@ -0,0 +1,213 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface BlogArticlesGrid {
10
+ /**
11
+ * Customize pagination: Activate pagination arrows
12
+ */
13
+ "arrowsActive": boolean;
14
+ /**
15
+ * Customize pagination: Activate pagination numbered navigation
16
+ */
17
+ "blogsLimit": string;
18
+ /**
19
+ * Client custom styling via string
20
+ */
21
+ "clientStyling": string;
22
+ /**
23
+ * Client custom styling via url
24
+ */
25
+ "clientStylingUrl": string;
26
+ /**
27
+ * Endpoint URL for the source of data
28
+ */
29
+ "cmsEndpoint": string;
30
+ /**
31
+ * CMS Endpoint stage
32
+ */
33
+ "cmsEnv": string;
34
+ /**
35
+ * Intl date format
36
+ */
37
+ "intlDateTimeFormat": string;
38
+ /**
39
+ * Language of the widget
40
+ */
41
+ "language": string;
42
+ /**
43
+ * Customize pagination: Activate pagination numbered navigation
44
+ */
45
+ "numberedNavActive": boolean;
46
+ /**
47
+ * Page to particularly be opened on start
48
+ */
49
+ "page": string;
50
+ /**
51
+ * Customize pagination: Activate pagination
52
+ */
53
+ "paginationActive": boolean;
54
+ /**
55
+ * Event name to be sent when the button is clicked
56
+ */
57
+ "postMessageEvent": string;
58
+ /**
59
+ * Customize pagination: Activate pagination secondary arrows
60
+ */
61
+ "secondaryArrowsActive": boolean;
62
+ /**
63
+ * Property used to display the button
64
+ */
65
+ "showButton": boolean;
66
+ /**
67
+ * Property used to display the description
68
+ */
69
+ "showContent": boolean;
70
+ /**
71
+ * Property used to display the image
72
+ */
73
+ "showImage": boolean;
74
+ /**
75
+ * Property used to display the publishing date
76
+ */
77
+ "showPublishingDate": boolean;
78
+ /**
79
+ * Property used to display the image
80
+ */
81
+ "showTitle": boolean;
82
+ /**
83
+ * Use postMessage event to communicate
84
+ */
85
+ "usePostmessage": boolean;
86
+ /**
87
+ * User roles
88
+ */
89
+ "userRoles": string;
90
+ }
91
+ }
92
+ export interface BlogArticlesGridCustomEvent<T> extends CustomEvent<T> {
93
+ detail: T;
94
+ target: HTMLBlogArticlesGridElement;
95
+ }
96
+ declare global {
97
+ interface HTMLBlogArticlesGridElementEventMap {
98
+ "articleActionButton": Object;
99
+ }
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;
109
+ }
110
+ var HTMLBlogArticlesGridElement: {
111
+ prototype: HTMLBlogArticlesGridElement;
112
+ new (): HTMLBlogArticlesGridElement;
113
+ };
114
+ interface HTMLElementTagNameMap {
115
+ "blog-articles-grid": HTMLBlogArticlesGridElement;
116
+ }
117
+ }
118
+ declare namespace LocalJSX {
119
+ interface BlogArticlesGrid {
120
+ /**
121
+ * Customize pagination: Activate pagination arrows
122
+ */
123
+ "arrowsActive"?: boolean;
124
+ /**
125
+ * Customize pagination: Activate pagination numbered navigation
126
+ */
127
+ "blogsLimit"?: string;
128
+ /**
129
+ * Client custom styling via string
130
+ */
131
+ "clientStyling"?: string;
132
+ /**
133
+ * Client custom styling via url
134
+ */
135
+ "clientStylingUrl"?: string;
136
+ /**
137
+ * Endpoint URL for the source of data
138
+ */
139
+ "cmsEndpoint"?: string;
140
+ /**
141
+ * CMS Endpoint stage
142
+ */
143
+ "cmsEnv"?: string;
144
+ /**
145
+ * Intl date format
146
+ */
147
+ "intlDateTimeFormat"?: string;
148
+ /**
149
+ * Language of the widget
150
+ */
151
+ "language"?: string;
152
+ /**
153
+ * Customize pagination: Activate pagination numbered navigation
154
+ */
155
+ "numberedNavActive"?: boolean;
156
+ "onArticleActionButton"?: (event: BlogArticlesGridCustomEvent<Object>) => void;
157
+ /**
158
+ * Page to particularly be opened on start
159
+ */
160
+ "page"?: string;
161
+ /**
162
+ * Customize pagination: Activate pagination
163
+ */
164
+ "paginationActive"?: boolean;
165
+ /**
166
+ * Event name to be sent when the button is clicked
167
+ */
168
+ "postMessageEvent"?: string;
169
+ /**
170
+ * Customize pagination: Activate pagination secondary arrows
171
+ */
172
+ "secondaryArrowsActive"?: boolean;
173
+ /**
174
+ * Property used to display the button
175
+ */
176
+ "showButton"?: boolean;
177
+ /**
178
+ * Property used to display the description
179
+ */
180
+ "showContent"?: boolean;
181
+ /**
182
+ * Property used to display the image
183
+ */
184
+ "showImage"?: boolean;
185
+ /**
186
+ * Property used to display the publishing date
187
+ */
188
+ "showPublishingDate"?: boolean;
189
+ /**
190
+ * Property used to display the image
191
+ */
192
+ "showTitle"?: boolean;
193
+ /**
194
+ * Use postMessage event to communicate
195
+ */
196
+ "usePostmessage": boolean;
197
+ /**
198
+ * User roles
199
+ */
200
+ "userRoles"?: string;
201
+ }
202
+ interface IntrinsicElements {
203
+ "blog-articles-grid": BlogArticlesGrid;
204
+ }
205
+ }
206
+ export { LocalJSX as JSX };
207
+ declare module "@stencil/core" {
208
+ export namespace JSX {
209
+ interface IntrinsicElements {
210
+ "blog-articles-grid": LocalJSX.BlogArticlesGrid & JSXBase.HTMLAttributes<HTMLBlogArticlesGridElement>;
211
+ }
212
+ }
213
+ }
@@ -0,0 +1 @@
1
+ export * from './components';