@aiconomy/aico-components 0.0.53 → 0.0.78
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.
- package/README.md +67 -57
- package/dist/aico-components/aico-components.css +1 -1
- package/dist/aico-components/aico-components.esm.js +1 -1
- package/dist/aico-components/aico-components.esm.js.map +1 -1
- package/dist/aico-components/p-0b6e7469.entry.js +2 -0
- package/dist/aico-components/p-0b6e7469.entry.js.map +1 -0
- package/dist/aico-components/p-19752961.entry.js +2 -0
- package/dist/aico-components/p-19752961.entry.js.map +1 -0
- package/dist/aico-components/p-2677f2ab.js +2 -0
- package/dist/aico-components/p-2677f2ab.js.map +1 -0
- package/dist/aico-components/{p-a58972e9.entry.js → p-368503ee.entry.js} +3 -3
- package/dist/aico-components/p-368503ee.entry.js.map +1 -0
- package/dist/aico-components/{p-b78d7799.entry.js → p-68930822.entry.js} +2 -2
- package/dist/aico-components/p-7e0074f7.entry.js +2 -0
- package/dist/aico-components/p-7e0074f7.entry.js.map +1 -0
- package/dist/aico-components/{p-1a6625c0.entry.js → p-90c2d3dc.entry.js} +2 -2
- package/dist/aico-components/p-9ea26390.entry.js +2 -0
- package/dist/aico-components/p-9ea26390.entry.js.map +1 -0
- package/dist/aico-components/p-ae20e789.js +3 -0
- package/dist/aico-components/{p-2aae1a0e.js.map → p-ae20e789.js.map} +1 -1
- package/dist/aico-components/p-bccf08d0.entry.js +2 -0
- package/dist/aico-components/p-bccf08d0.entry.js.map +1 -0
- package/dist/aico-components/p-c9eea1b1.entry.js +2 -0
- package/dist/aico-components/p-c9eea1b1.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_19.cjs.entry.js +78 -57
- package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-article-detail.cjs.entry.js +19 -18
- package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-asking-list-content.cjs.entry.js +1 -1
- package/dist/cjs/aico-collection-content.cjs.entry.js +1 -1
- package/dist/cjs/aico-components.cjs.js +2 -2
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +12 -3
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list-item.cjs.entry.js +6 -3
- package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list.cjs.entry.js +9 -8
- package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-no-content_2.cjs.entry.js +6 -4
- package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js +5 -4
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-75c0e002.js → index-e52034b7.js} +1 -6
- package/dist/cjs/index-e52034b7.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-406a9df3.js → utils-c1b7a052.js} +20 -5
- package/dist/cjs/utils-c1b7a052.js.map +1 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +36 -17
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +49 -5
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +6 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.css +0 -113
- package/dist/collection/components/aico-news-list/aico-news-list.js +23 -6
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.stories.js +3 -0
- package/dist/collection/components/aico-news-list/aico-news-list.stories.js.map +1 -1
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +6 -3
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -1
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +19 -2
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +22 -3
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +16 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +21 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +18 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +25 -5
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +29 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +25 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +35 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +22 -3
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +10 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +21 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +9 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.js +22 -3
- package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +11 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +21 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +25 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +22 -2
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +10 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-html-content/aico-html-content.js +22 -4
- package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.js +22 -3
- package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +24 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.js +23 -4
- package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +11 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.js +26 -6
- package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +58 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.js +27 -11
- package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +55 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.js +23 -3
- package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +12 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +22 -2
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +8 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.js +22 -2
- package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +17 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -1
- package/dist/collection/model/article/content/CarouselContent.js.map +1 -1
- package/dist/collection/utils/utils.js +18 -4
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/aico-article-detail2.js +20 -18
- package/dist/components/aico-article-detail2.js.map +1 -1
- package/dist/components/aico-asking-content2.js +6 -4
- package/dist/components/aico-asking-content2.js.map +1 -1
- package/dist/components/aico-block-quote-content2.js +5 -2
- package/dist/components/aico-block-quote-content2.js.map +1 -1
- package/dist/components/aico-bullet-content2.js +9 -6
- package/dist/components/aico-bullet-content2.js.map +1 -1
- package/dist/components/aico-carousel-content2.js +9 -4
- package/dist/components/aico-carousel-content2.js.map +1 -1
- package/dist/components/aico-content-card-content2.js +6 -4
- package/dist/components/aico-content-card-content2.js.map +1 -1
- package/dist/components/aico-divider-content2.js +5 -2
- package/dist/components/aico-divider-content2.js.map +1 -1
- package/dist/components/aico-document-content2.js +6 -4
- package/dist/components/aico-document-content2.js.map +1 -1
- package/dist/components/aico-faq-content2.js +5 -2
- package/dist/components/aico-faq-content2.js.map +1 -1
- package/dist/components/aico-fetch-article-detail.js +14 -3
- package/dist/components/aico-fetch-article-detail.js.map +1 -1
- package/dist/components/aico-heading-content2.js +6 -3
- package/dist/components/aico-heading-content2.js.map +1 -1
- package/dist/components/aico-html-content2.js +7 -12
- package/dist/components/aico-html-content2.js.map +1 -1
- package/dist/components/aico-link-content2.js +6 -4
- package/dist/components/aico-link-content2.js.map +1 -1
- package/dist/components/aico-news-list-item2.js +5 -2
- package/dist/components/aico-news-list-item2.js.map +1 -1
- package/dist/components/aico-news-list.js +9 -7
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-page-content2.js +7 -5
- package/dist/components/aico-page-content2.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +5 -3
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/aico-table-content2.js +10 -7
- package/dist/components/aico-table-content2.js.map +1 -1
- package/dist/components/aico-text-content2.js +10 -13
- package/dist/components/aico-text-content2.js.map +1 -1
- package/dist/components/aico-title-content2.js +7 -4
- package/dist/components/aico-title-content2.js.map +1 -1
- package/dist/components/aico-upload-content2.js +6 -3
- package/dist/components/aico-upload-content2.js.map +1 -1
- package/dist/components/aico-video-content2.js +6 -3
- package/dist/components/aico-video-content2.js.map +1 -1
- package/dist/components/utils.js +19 -5
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_19.entry.js +78 -57
- package/dist/esm/aico-album-content_19.entry.js.map +1 -1
- package/dist/esm/aico-article-detail.entry.js +19 -18
- package/dist/esm/aico-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-asking-list-content.entry.js +1 -1
- package/dist/esm/aico-collection-content.entry.js +1 -1
- package/dist/esm/aico-components.js +3 -3
- package/dist/esm/aico-fetch-article-detail.entry.js +12 -3
- package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-news-list-item.entry.js +6 -3
- package/dist/esm/aico-news-list-item.entry.js.map +1 -1
- package/dist/esm/aico-news-list.entry.js +9 -8
- package/dist/esm/aico-news-list.entry.js.map +1 -1
- package/dist/esm/aico-no-content_2.entry.js +6 -4
- package/dist/esm/aico-no-content_2.entry.js.map +1 -1
- package/dist/esm/aico-special-news-carousel.entry.js +5 -4
- package/dist/esm/aico-special-news-carousel.entry.js.map +1 -1
- package/dist/esm/{index-f9f11572.js → index-4621a8ba.js} +2 -6
- package/dist/esm/index-4621a8ba.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-2b7ec879.js → utils-b4eec8e9.js} +20 -6
- package/dist/esm/utils-b4eec8e9.js.map +1 -0
- package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +1 -0
- package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +15 -1
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +2 -1
- package/dist/types/components/aico-news-list/aico-news-list.stories.d.ts +2 -1
- package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +1 -1
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +1 -0
- package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +1 -0
- package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +1 -0
- package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +1 -0
- package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +1 -0
- package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +1 -0
- package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +1 -0
- package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +1 -0
- package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +1 -0
- package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +1 -0
- package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +1 -0
- package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +1 -0
- package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +1 -0
- package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +1 -0
- package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +1 -0
- package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +1 -0
- package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +1 -0
- package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +1 -0
- package/dist/types/components.d.ts +62 -19
- package/dist/types/model/article/content/CarouselContent.d.ts +4 -2
- package/dist/types/utils/utils.d.ts +3 -2
- package/package.json +3 -2
- package/dist/aico-components/p-2aae1a0e.js +0 -3
- package/dist/aico-components/p-31666f10.js +0 -2
- package/dist/aico-components/p-31666f10.js.map +0 -1
- package/dist/aico-components/p-42b98baf.entry.js +0 -2
- package/dist/aico-components/p-42b98baf.entry.js.map +0 -1
- package/dist/aico-components/p-54708dd0.entry.js +0 -2
- package/dist/aico-components/p-54708dd0.entry.js.map +0 -1
- package/dist/aico-components/p-776352ba.entry.js +0 -2
- package/dist/aico-components/p-776352ba.entry.js.map +0 -1
- package/dist/aico-components/p-7c05cd02.entry.js +0 -2
- package/dist/aico-components/p-7c05cd02.entry.js.map +0 -1
- package/dist/aico-components/p-83655dd4.entry.js +0 -2
- package/dist/aico-components/p-83655dd4.entry.js.map +0 -1
- package/dist/aico-components/p-a58972e9.entry.js.map +0 -1
- package/dist/aico-components/p-b0325a83.entry.js +0 -2
- package/dist/aico-components/p-b0325a83.entry.js.map +0 -1
- package/dist/aico-components/p-c99617a8.entry.js +0 -2
- package/dist/aico-components/p-c99617a8.entry.js.map +0 -1
- package/dist/cjs/bootstrap-slick-test.cjs.entry.js +0 -38
- package/dist/cjs/bootstrap-slick-test.cjs.entry.js.map +0 -1
- package/dist/cjs/index-75c0e002.js.map +0 -1
- package/dist/cjs/utils-406a9df3.js.map +0 -1
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.css +0 -6
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js +0 -37
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js.map +0 -1
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js +0 -6
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js.map +0 -1
- package/dist/collection/components/content/content-styles.css +0 -113
- package/dist/components/bootstrap-slick-test.d.ts +0 -11
- package/dist/components/bootstrap-slick-test.js +0 -51
- package/dist/components/bootstrap-slick-test.js.map +0 -1
- package/dist/esm/bootstrap-slick-test.entry.js +0 -34
- package/dist/esm/bootstrap-slick-test.entry.js.map +0 -1
- package/dist/esm/index-f9f11572.js.map +0 -1
- package/dist/esm/utils-2b7ec879.js.map +0 -1
- package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.d.ts +0 -5
- package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.stories.d.ts +0 -5
- /package/dist/aico-components/{p-b78d7799.entry.js.map → p-68930822.entry.js.map} +0 -0
- /package/dist/aico-components/{p-1a6625c0.entry.js.map → p-90c2d3dc.entry.js.map} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-4621a8ba.js';
|
|
2
|
+
export { s as setNonce } from './index-4621a8ba.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
|
-
return bootstrapLazy([["aico-fetch-article-detail",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"articleId":[1,"article-id"],"article":[32]}]]],["aico-news-list",[[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"newsResponse":[32],"pageNumber":[32]}]]],["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-special-news-carousel",[[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"numberOfArticles":[2,"number-of-articles"],"newsResponse":[32]}]]],["
|
|
6
|
+
return bootstrapLazy([["aico-fetch-article-detail",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}]]],["aico-news-list",[[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"newsResponse":[32],"pageNumber":[32]}]]],["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-special-news-carousel",[[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[16],"numberOfArticles":[2,"number-of-articles"],"newsResponse":[32]}]]],["aico-no-content_2",[[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]],["aico-album-content_19",[[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}]]],["aico-article-detail",[[2,"aico-article-detail",{"article":[16],"locale":[1]}]]],["aico-news-list-item",[[2,"aico-news-list-item",{"article":[16]}]]]], options);
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { defineCustomElements };
|
|
@@ -11,26 +11,32 @@ const getAuthenticatedRequest = (api, route, query, signal) => {
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
async function fetchNewsArticles(api, page, size, signal) {
|
|
14
|
+
async function fetchNewsArticles(api, page, size, signal, newsChannels = []) {
|
|
15
15
|
const queryParams = new URLSearchParams();
|
|
16
16
|
queryParams.set('page[number]', String(page));
|
|
17
17
|
queryParams.set('page[size]', String(size));
|
|
18
|
+
queryParams.set('sort', '-publishDate');
|
|
18
19
|
queryParams.set('filter[isActive]', '1');
|
|
19
20
|
queryParams.set('filter[excludeTag][]', 'Eisnull');
|
|
20
|
-
|
|
21
|
+
for (const newsChannel of newsChannels) {
|
|
22
|
+
queryParams.set('filter[channel][]', newsChannel);
|
|
23
|
+
}
|
|
21
24
|
const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
|
|
22
25
|
const response = await fetch(request);
|
|
23
26
|
return await response.json();
|
|
24
27
|
}
|
|
25
|
-
async function fetchSpecialNewsArticles(api, page, size, signal) {
|
|
28
|
+
async function fetchSpecialNewsArticles(api, page, size, signal, newsChannels = []) {
|
|
26
29
|
const queryParams = new URLSearchParams();
|
|
27
30
|
queryParams.set('page[number]', String(page));
|
|
28
31
|
queryParams.set('page[size]', String(size));
|
|
32
|
+
queryParams.set('sort', '-publishDate');
|
|
29
33
|
queryParams.set('filter[isActive]', '1');
|
|
30
34
|
queryParams.set('filter[isSpecialArticle]', '1');
|
|
31
35
|
queryParams.set('filter[isLightVersion]', 'true');
|
|
32
36
|
queryParams.set('filter[excludeTag][]', 'Eisnull');
|
|
33
|
-
|
|
37
|
+
for (const newsChannel of newsChannels) {
|
|
38
|
+
queryParams.set('filter[channel][]', newsChannel);
|
|
39
|
+
}
|
|
34
40
|
const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
|
|
35
41
|
const response = await fetch(request);
|
|
36
42
|
return await response.json();
|
|
@@ -41,6 +47,14 @@ async function fetchNewsArticle(api, articleId, signal) {
|
|
|
41
47
|
const article = await response.json();
|
|
42
48
|
return article.data;
|
|
43
49
|
}
|
|
50
|
+
async function fetchNewsArticleByHandle(api, urlHandle, signal) {
|
|
51
|
+
const queryParams = new URLSearchParams();
|
|
52
|
+
queryParams.set('filter[urlHandle]', urlHandle);
|
|
53
|
+
const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
|
|
54
|
+
const response = await fetch(request);
|
|
55
|
+
const articles = await response.json();
|
|
56
|
+
return articles.data[0];
|
|
57
|
+
}
|
|
44
58
|
function getImageWidthPrc(pictureSize) {
|
|
45
59
|
switch (pictureSize) {
|
|
46
60
|
case 'extra-small':
|
|
@@ -79,6 +93,6 @@ function getClass(conditions) {
|
|
|
79
93
|
return classes.join(' ');
|
|
80
94
|
}
|
|
81
95
|
|
|
82
|
-
export {
|
|
96
|
+
export { fetchNewsArticle as a, fetchNewsArticles as b, fetchSpecialNewsArticles as c, getClass as d, getYoutubeURL as e, fetchNewsArticleByHandle as f, getImageWidthPrc as g, strIsNullOrEmptyOrWhitespace as s };
|
|
83
97
|
|
|
84
|
-
//# sourceMappingURL=utils-
|
|
98
|
+
//# sourceMappingURL=utils-b4eec8e9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-b4eec8e9.js","mappings":"AAKO,MAAM,uBAAuB,GAAG,CAAC,WA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IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
|
|
@@ -3,7 +3,21 @@ export declare class AicoFetchArticleDetail {
|
|
|
3
3
|
article: Article;
|
|
4
4
|
aicoUrl: string;
|
|
5
5
|
aicoBearerToken: string;
|
|
6
|
-
|
|
6
|
+
locale: string;
|
|
7
|
+
/**
|
|
8
|
+
* The id will be used to fetch the article.
|
|
9
|
+
*
|
|
10
|
+
* If both the {@link AicoFetchArticleDetail#articleId} and {@link AicoFetchArticleDetail#articleUrlHandle} are
|
|
11
|
+
* provided, the latter will be used. If neither are provided, an error is thrown.
|
|
12
|
+
*/
|
|
13
|
+
articleId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The url handle will be used to fetch the article.
|
|
16
|
+
*
|
|
17
|
+
* If both the {@link AicoFetchArticleDetail#articleId} and {@link AicoFetchArticleDetail#articleUrlHandle} are
|
|
18
|
+
* provided, the latter will be used. If neither are provided, an error is thrown.
|
|
19
|
+
*/
|
|
20
|
+
articleUrlHandle?: string;
|
|
7
21
|
private api?;
|
|
8
22
|
private articleFetchController?;
|
|
9
23
|
connectedCallback(): void;
|
|
@@ -7,9 +7,10 @@ export declare class AicoNewsList {
|
|
|
7
7
|
pageNumber: number;
|
|
8
8
|
aicoUrl: string;
|
|
9
9
|
aicoBearerToken: string;
|
|
10
|
+
newsChannels: string[];
|
|
10
11
|
nextButtonText: string;
|
|
11
12
|
previousButtonText: string;
|
|
12
|
-
|
|
13
|
+
articleClick?: EventEmitter<Article>;
|
|
13
14
|
private api?;
|
|
14
15
|
private newsListFetchController?;
|
|
15
16
|
connectedCallback(): void;
|
|
@@ -2,6 +2,6 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import { Article } from '../../model/Article';
|
|
3
3
|
export declare class AicoNewsListItem {
|
|
4
4
|
article: Article;
|
|
5
|
-
|
|
5
|
+
articleClick?: EventEmitter<Article>;
|
|
6
6
|
render(): any;
|
|
7
7
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
2
2
|
import type { PageContent } from '../../../model/article/content/PageContent';
|
|
3
3
|
export declare class AicoPageContent {
|
|
4
4
|
content: PageContent;
|
|
5
|
+
locale: string;
|
|
5
6
|
pageClicked?: EventEmitter<PageContent>;
|
|
6
7
|
render(): any;
|
|
7
8
|
}
|
|
@@ -55,49 +55,69 @@ export namespace Components {
|
|
|
55
55
|
}
|
|
56
56
|
interface AicoArticleDetail {
|
|
57
57
|
"article": Article;
|
|
58
|
+
"locale": string;
|
|
58
59
|
}
|
|
59
60
|
interface AicoAskingContent {
|
|
60
61
|
"content": AskingContent;
|
|
62
|
+
"locale": string;
|
|
61
63
|
}
|
|
62
64
|
interface AicoAskingListContent {
|
|
63
65
|
}
|
|
64
66
|
interface AicoBlockQuoteContent {
|
|
65
67
|
"content": BlockQuoteContent;
|
|
68
|
+
"locale": string;
|
|
66
69
|
}
|
|
67
70
|
interface AicoBulletContent {
|
|
68
71
|
"content": BulletContent;
|
|
72
|
+
"locale": string;
|
|
69
73
|
}
|
|
70
74
|
interface AicoCarouselContent {
|
|
71
75
|
"content": CarouselContent;
|
|
72
76
|
"hasArrows": boolean;
|
|
77
|
+
"locale": string;
|
|
73
78
|
}
|
|
74
79
|
interface AicoCollectionContent {
|
|
75
80
|
}
|
|
76
81
|
interface AicoContentCardContent {
|
|
77
82
|
"content": CardContent;
|
|
83
|
+
"locale": string;
|
|
78
84
|
}
|
|
79
85
|
interface AicoDividerContent {
|
|
80
86
|
"content": DividerContent;
|
|
87
|
+
"locale": string;
|
|
81
88
|
}
|
|
82
89
|
interface AicoDocumentContent {
|
|
83
90
|
"content": DocumentContent;
|
|
91
|
+
"locale": string;
|
|
84
92
|
}
|
|
85
93
|
interface AicoFaqContent {
|
|
86
94
|
"content": FaqContent;
|
|
95
|
+
"locale": string;
|
|
87
96
|
}
|
|
88
97
|
interface AicoFetchArticleDetail {
|
|
89
98
|
"aicoBearerToken": string;
|
|
90
99
|
"aicoUrl": string;
|
|
91
|
-
|
|
100
|
+
/**
|
|
101
|
+
* The id will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
102
|
+
*/
|
|
103
|
+
"articleId"?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The url handle will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
106
|
+
*/
|
|
107
|
+
"articleUrlHandle"?: string;
|
|
108
|
+
"locale": string;
|
|
92
109
|
}
|
|
93
110
|
interface AicoHeadingContent {
|
|
94
111
|
"content": HeadingContent;
|
|
112
|
+
"locale": string;
|
|
95
113
|
}
|
|
96
114
|
interface AicoHtmlContent {
|
|
97
115
|
"content": HtmlContent;
|
|
116
|
+
"locale": string;
|
|
98
117
|
}
|
|
99
118
|
interface AicoLinkContent {
|
|
100
119
|
"content": LinkContent;
|
|
120
|
+
"locale": string;
|
|
101
121
|
}
|
|
102
122
|
interface AicoNewsContent {
|
|
103
123
|
"content": NewsContent;
|
|
@@ -105,6 +125,7 @@ export namespace Components {
|
|
|
105
125
|
interface AicoNewsList {
|
|
106
126
|
"aicoBearerToken": string;
|
|
107
127
|
"aicoUrl": string;
|
|
128
|
+
"newsChannels": string[];
|
|
108
129
|
"nextButtonText": string;
|
|
109
130
|
"previousButtonText": string;
|
|
110
131
|
}
|
|
@@ -115,31 +136,36 @@ export namespace Components {
|
|
|
115
136
|
}
|
|
116
137
|
interface AicoPageContent {
|
|
117
138
|
"content": PageContent;
|
|
139
|
+
"locale": string;
|
|
118
140
|
}
|
|
119
141
|
interface AicoSpecialNewsCarousel {
|
|
120
142
|
"aicoBearerToken": string;
|
|
121
143
|
"aicoUrl": string;
|
|
144
|
+
"newsChannels": string[];
|
|
122
145
|
"numberOfArticles": number;
|
|
123
146
|
}
|
|
124
147
|
interface AicoTableContent {
|
|
125
148
|
"content": TableContent;
|
|
149
|
+
"locale": string;
|
|
126
150
|
}
|
|
127
151
|
interface AicoTestimonialContent {
|
|
128
152
|
"content": TestimonialContent;
|
|
129
153
|
}
|
|
130
154
|
interface AicoTextContent {
|
|
131
155
|
"content": TextContent;
|
|
156
|
+
"locale": string;
|
|
132
157
|
}
|
|
133
158
|
interface AicoTitleContent {
|
|
134
159
|
"content": TitleContent;
|
|
160
|
+
"locale": string;
|
|
135
161
|
}
|
|
136
162
|
interface AicoUploadContent {
|
|
137
163
|
"content": UploadContent;
|
|
164
|
+
"locale": string;
|
|
138
165
|
}
|
|
139
166
|
interface AicoVideoContent {
|
|
140
167
|
"content": VideoContent;
|
|
141
|
-
|
|
142
|
-
interface BootstrapSlickTest {
|
|
168
|
+
"locale": string;
|
|
143
169
|
}
|
|
144
170
|
}
|
|
145
171
|
export interface AicoNewsContentCustomEvent<T> extends CustomEvent<T> {
|
|
@@ -277,7 +303,7 @@ declare global {
|
|
|
277
303
|
new (): HTMLAicoNewsContentElement;
|
|
278
304
|
};
|
|
279
305
|
interface HTMLAicoNewsListElementEventMap {
|
|
280
|
-
"
|
|
306
|
+
"articleClick": Article;
|
|
281
307
|
}
|
|
282
308
|
interface HTMLAicoNewsListElement extends Components.AicoNewsList, HTMLStencilElement {
|
|
283
309
|
addEventListener<K extends keyof HTMLAicoNewsListElementEventMap>(type: K, listener: (this: HTMLAicoNewsListElement, ev: AicoNewsListCustomEvent<HTMLAicoNewsListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -294,7 +320,7 @@ declare global {
|
|
|
294
320
|
new (): HTMLAicoNewsListElement;
|
|
295
321
|
};
|
|
296
322
|
interface HTMLAicoNewsListItemElementEventMap {
|
|
297
|
-
"
|
|
323
|
+
"articleClick": Article;
|
|
298
324
|
}
|
|
299
325
|
interface HTMLAicoNewsListItemElement extends Components.AicoNewsListItem, HTMLStencilElement {
|
|
300
326
|
addEventListener<K extends keyof HTMLAicoNewsListItemElementEventMap>(type: K, listener: (this: HTMLAicoNewsListItemElement, ev: AicoNewsListItemCustomEvent<HTMLAicoNewsListItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -386,12 +412,6 @@ declare global {
|
|
|
386
412
|
prototype: HTMLAicoVideoContentElement;
|
|
387
413
|
new (): HTMLAicoVideoContentElement;
|
|
388
414
|
};
|
|
389
|
-
interface HTMLBootstrapSlickTestElement extends Components.BootstrapSlickTest, HTMLStencilElement {
|
|
390
|
-
}
|
|
391
|
-
var HTMLBootstrapSlickTestElement: {
|
|
392
|
-
prototype: HTMLBootstrapSlickTestElement;
|
|
393
|
-
new (): HTMLBootstrapSlickTestElement;
|
|
394
|
-
};
|
|
395
415
|
interface HTMLElementTagNameMap {
|
|
396
416
|
"aico-album-content": HTMLAicoAlbumContentElement;
|
|
397
417
|
"aico-article-detail": HTMLAicoArticleDetailElement;
|
|
@@ -421,7 +441,6 @@ declare global {
|
|
|
421
441
|
"aico-title-content": HTMLAicoTitleContentElement;
|
|
422
442
|
"aico-upload-content": HTMLAicoUploadContentElement;
|
|
423
443
|
"aico-video-content": HTMLAicoVideoContentElement;
|
|
424
|
-
"bootstrap-slick-test": HTMLBootstrapSlickTestElement;
|
|
425
444
|
}
|
|
426
445
|
}
|
|
427
446
|
declare namespace LocalJSX {
|
|
@@ -430,49 +449,69 @@ declare namespace LocalJSX {
|
|
|
430
449
|
}
|
|
431
450
|
interface AicoArticleDetail {
|
|
432
451
|
"article": Article;
|
|
452
|
+
"locale"?: string;
|
|
433
453
|
}
|
|
434
454
|
interface AicoAskingContent {
|
|
435
455
|
"content": AskingContent;
|
|
456
|
+
"locale"?: string;
|
|
436
457
|
}
|
|
437
458
|
interface AicoAskingListContent {
|
|
438
459
|
}
|
|
439
460
|
interface AicoBlockQuoteContent {
|
|
440
461
|
"content": BlockQuoteContent;
|
|
462
|
+
"locale"?: string;
|
|
441
463
|
}
|
|
442
464
|
interface AicoBulletContent {
|
|
443
465
|
"content": BulletContent;
|
|
466
|
+
"locale"?: string;
|
|
444
467
|
}
|
|
445
468
|
interface AicoCarouselContent {
|
|
446
469
|
"content": CarouselContent;
|
|
447
470
|
"hasArrows"?: boolean;
|
|
471
|
+
"locale"?: string;
|
|
448
472
|
}
|
|
449
473
|
interface AicoCollectionContent {
|
|
450
474
|
}
|
|
451
475
|
interface AicoContentCardContent {
|
|
452
476
|
"content": CardContent;
|
|
477
|
+
"locale"?: string;
|
|
453
478
|
}
|
|
454
479
|
interface AicoDividerContent {
|
|
455
480
|
"content": DividerContent;
|
|
481
|
+
"locale"?: string;
|
|
456
482
|
}
|
|
457
483
|
interface AicoDocumentContent {
|
|
458
484
|
"content": DocumentContent;
|
|
485
|
+
"locale"?: string;
|
|
459
486
|
}
|
|
460
487
|
interface AicoFaqContent {
|
|
461
488
|
"content": FaqContent;
|
|
489
|
+
"locale"?: string;
|
|
462
490
|
}
|
|
463
491
|
interface AicoFetchArticleDetail {
|
|
464
492
|
"aicoBearerToken": string;
|
|
465
493
|
"aicoUrl": string;
|
|
466
|
-
|
|
494
|
+
/**
|
|
495
|
+
* The id will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
496
|
+
*/
|
|
497
|
+
"articleId"?: string;
|
|
498
|
+
/**
|
|
499
|
+
* The url handle will be used to fetch the article. If both the {@link AicoFetchArticleDetail#articleId } and {@link AicoFetchArticleDetail#articleUrlHandle } are provided, the latter will be used. If neither are provided, an error is thrown.
|
|
500
|
+
*/
|
|
501
|
+
"articleUrlHandle"?: string;
|
|
502
|
+
"locale"?: string;
|
|
467
503
|
}
|
|
468
504
|
interface AicoHeadingContent {
|
|
469
505
|
"content": HeadingContent;
|
|
506
|
+
"locale"?: string;
|
|
470
507
|
}
|
|
471
508
|
interface AicoHtmlContent {
|
|
472
509
|
"content": HtmlContent;
|
|
510
|
+
"locale"?: string;
|
|
473
511
|
}
|
|
474
512
|
interface AicoLinkContent {
|
|
475
513
|
"content": LinkContent;
|
|
514
|
+
"locale"?: string;
|
|
476
515
|
}
|
|
477
516
|
interface AicoNewsContent {
|
|
478
517
|
"content": NewsContent;
|
|
@@ -481,45 +520,51 @@ declare namespace LocalJSX {
|
|
|
481
520
|
interface AicoNewsList {
|
|
482
521
|
"aicoBearerToken": string;
|
|
483
522
|
"aicoUrl": string;
|
|
523
|
+
"newsChannels"?: string[];
|
|
484
524
|
"nextButtonText"?: string;
|
|
485
|
-
"
|
|
525
|
+
"onArticleClick"?: (event: AicoNewsListCustomEvent<Article>) => void;
|
|
486
526
|
"previousButtonText"?: string;
|
|
487
527
|
}
|
|
488
528
|
interface AicoNewsListItem {
|
|
489
529
|
"article": Article;
|
|
490
|
-
"
|
|
530
|
+
"onArticleClick"?: (event: AicoNewsListItemCustomEvent<Article>) => void;
|
|
491
531
|
}
|
|
492
532
|
interface AicoNoContent {
|
|
493
533
|
}
|
|
494
534
|
interface AicoPageContent {
|
|
495
535
|
"content": PageContent;
|
|
536
|
+
"locale"?: string;
|
|
496
537
|
"onPageClicked"?: (event: AicoPageContentCustomEvent<PageContent>) => void;
|
|
497
538
|
}
|
|
498
539
|
interface AicoSpecialNewsCarousel {
|
|
499
540
|
"aicoBearerToken": string;
|
|
500
541
|
"aicoUrl": string;
|
|
542
|
+
"newsChannels"?: string[];
|
|
501
543
|
"numberOfArticles"?: number;
|
|
502
544
|
"onArticleClicked"?: (event: AicoSpecialNewsCarouselCustomEvent<Article>) => void;
|
|
503
545
|
}
|
|
504
546
|
interface AicoTableContent {
|
|
505
547
|
"content": TableContent;
|
|
548
|
+
"locale"?: string;
|
|
506
549
|
}
|
|
507
550
|
interface AicoTestimonialContent {
|
|
508
551
|
"content": TestimonialContent;
|
|
509
552
|
}
|
|
510
553
|
interface AicoTextContent {
|
|
511
554
|
"content": TextContent;
|
|
555
|
+
"locale"?: string;
|
|
512
556
|
}
|
|
513
557
|
interface AicoTitleContent {
|
|
514
558
|
"content": TitleContent;
|
|
559
|
+
"locale"?: string;
|
|
515
560
|
}
|
|
516
561
|
interface AicoUploadContent {
|
|
517
562
|
"content": UploadContent;
|
|
563
|
+
"locale"?: string;
|
|
518
564
|
}
|
|
519
565
|
interface AicoVideoContent {
|
|
520
566
|
"content": VideoContent;
|
|
521
|
-
|
|
522
|
-
interface BootstrapSlickTest {
|
|
567
|
+
"locale"?: string;
|
|
523
568
|
}
|
|
524
569
|
interface IntrinsicElements {
|
|
525
570
|
"aico-album-content": AicoAlbumContent;
|
|
@@ -550,7 +595,6 @@ declare namespace LocalJSX {
|
|
|
550
595
|
"aico-title-content": AicoTitleContent;
|
|
551
596
|
"aico-upload-content": AicoUploadContent;
|
|
552
597
|
"aico-video-content": AicoVideoContent;
|
|
553
|
-
"bootstrap-slick-test": BootstrapSlickTest;
|
|
554
598
|
}
|
|
555
599
|
}
|
|
556
600
|
export { LocalJSX as JSX };
|
|
@@ -585,7 +629,6 @@ declare module "@stencil/core" {
|
|
|
585
629
|
"aico-title-content": LocalJSX.AicoTitleContent & JSXBase.HTMLAttributes<HTMLAicoTitleContentElement>;
|
|
586
630
|
"aico-upload-content": LocalJSX.AicoUploadContent & JSXBase.HTMLAttributes<HTMLAicoUploadContentElement>;
|
|
587
631
|
"aico-video-content": LocalJSX.AicoVideoContent & JSXBase.HTMLAttributes<HTMLAicoVideoContentElement>;
|
|
588
|
-
"bootstrap-slick-test": LocalJSX.BootstrapSlickTest & JSXBase.HTMLAttributes<HTMLBootstrapSlickTestElement>;
|
|
589
632
|
}
|
|
590
633
|
}
|
|
591
634
|
}
|
|
@@ -2,8 +2,10 @@ import { Entity } from '../../Entity';
|
|
|
2
2
|
import { Translation } from '../Translation';
|
|
3
3
|
export type CarouselImage = Entity & {
|
|
4
4
|
order: number;
|
|
5
|
-
picture
|
|
6
|
-
translations: Translation
|
|
5
|
+
picture?: string;
|
|
6
|
+
translations: (Translation & {
|
|
7
|
+
picture?: string;
|
|
8
|
+
})[];
|
|
7
9
|
};
|
|
8
10
|
export type CarouselContent = Entity & {
|
|
9
11
|
translations: Translation[];
|