@aiconomy/aico-components 0.0.13 → 0.0.53
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/dist/aico-components/aico-components.css +6 -0
- package/dist/aico-components/aico-components.esm.js +2 -0
- package/dist/aico-components/aico-components.esm.js.map +1 -0
- package/dist/aico-components/assets/slick/ajax-loader.gif +0 -0
- package/dist/aico-components/assets/slick/slick.eot +0 -0
- package/dist/aico-components/assets/slick/slick.svg +14 -0
- package/dist/aico-components/assets/slick/slick.ttf +0 -0
- package/dist/aico-components/assets/slick/slick.woff +0 -0
- package/dist/aico-components/index.esm.js +2 -0
- package/dist/aico-components/index.esm.js.map +1 -0
- package/dist/aico-components/p-1a6625c0.entry.js +2 -0
- package/dist/aico-components/p-1a6625c0.entry.js.map +1 -0
- package/dist/aico-components/p-2aae1a0e.js +3 -0
- package/dist/aico-components/p-2aae1a0e.js.map +1 -0
- package/dist/aico-components/p-31666f10.js +2 -0
- package/dist/aico-components/p-31666f10.js.map +1 -0
- package/dist/aico-components/p-42b98baf.entry.js +2 -0
- package/dist/aico-components/p-42b98baf.entry.js.map +1 -0
- package/dist/aico-components/p-54708dd0.entry.js +2 -0
- package/dist/aico-components/p-54708dd0.entry.js.map +1 -0
- package/dist/aico-components/p-776352ba.entry.js +2 -0
- package/dist/aico-components/p-776352ba.entry.js.map +1 -0
- package/dist/aico-components/p-7c05cd02.entry.js +2 -0
- package/dist/aico-components/p-7c05cd02.entry.js.map +1 -0
- package/dist/aico-components/p-83655dd4.entry.js +2 -0
- package/dist/aico-components/p-83655dd4.entry.js.map +1 -0
- package/dist/aico-components/p-86c7fdc7.js +13 -0
- package/dist/aico-components/p-86c7fdc7.js.map +1 -0
- package/dist/aico-components/p-a58972e9.entry.js +7 -0
- package/dist/aico-components/p-a58972e9.entry.js.map +1 -0
- package/dist/aico-components/p-b0325a83.entry.js +2 -0
- package/dist/aico-components/p-b0325a83.entry.js.map +1 -0
- package/dist/aico-components/p-b78d7799.entry.js +2 -0
- package/dist/aico-components/p-b78d7799.entry.js.map +1 -0
- package/dist/aico-components/p-c99617a8.entry.js +2 -0
- package/dist/aico-components/p-c99617a8.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_19.cjs.entry.js +6906 -0
- package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-article-detail.cjs.entry.js +124 -0
- package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-asking-list-content.cjs.entry.js +21 -0
- package/dist/cjs/aico-asking-list-content.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-collection-content.cjs.entry.js +21 -0
- package/dist/cjs/aico-collection-content.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-components.cjs.js +25 -0
- package/dist/cjs/aico-components.cjs.js.map +1 -0
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +36 -0
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-news-list-item.cjs.entry.js +24 -0
- package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-news-list.cjs.entry.js +92 -0
- package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-no-content_2.cjs.entry.js +49 -0
- package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -0
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js +60 -0
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -0
- package/dist/cjs/bootstrap-slick-test.cjs.entry.js +38 -0
- package/dist/cjs/bootstrap-slick-test.cjs.entry.js.map +1 -0
- package/dist/cjs/index-75c0e002.js +2280 -0
- package/dist/cjs/index-75c0e002.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/slick-d0dfbd94.js +13662 -0
- package/dist/cjs/slick-d0dfbd94.js.map +1 -0
- package/dist/cjs/utils-406a9df3.js +92 -0
- package/dist/cjs/utils-406a9df3.js.map +1 -0
- package/dist/collection/assets/slick/ajax-loader.gif +0 -0
- package/dist/collection/assets/slick/slick.eot +0 -0
- package/dist/collection/assets/slick/slick.svg +14 -0
- package/dist/collection/assets/slick/slick.ttf +0 -0
- package/dist/collection/assets/slick/slick.woff +0 -0
- package/dist/collection/collection-manifest.json +40 -0
- package/dist/collection/components/aico-article-detail/aico-article-detail.css +0 -0
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +117 -0
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -0
- package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js +6 -0
- package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js.map +1 -0
- package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js +6 -0
- package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js.map +1 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.css +0 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +96 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +19 -0
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -0
- package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js +6 -0
- package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js.map +1 -0
- package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js +6 -0
- package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js.map +1 -0
- package/dist/collection/components/aico-news-list/aico-news-list.css +113 -0
- package/dist/collection/components/aico-news-list/aico-news-list.js +195 -0
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -0
- package/dist/collection/components/aico-news-list/aico-news-list.stories.js +21 -0
- package/dist/collection/components/aico-news-list/aico-news-list.stories.js.map +1 -0
- package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js +6 -0
- package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js.map +1 -0
- package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js +6 -0
- package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js.map +1 -0
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.css +0 -0
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +72 -0
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -0
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js +61 -0
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js.map +1 -0
- package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js +6 -0
- package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js.map +1 -0
- package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js +6 -0
- package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js.map +1 -0
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.css +3 -0
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +145 -0
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -0
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js +30 -0
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js.map +1 -0
- package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js +6 -0
- package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js.map +1 -0
- package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js +6 -0
- package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js.map +1 -0
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.css +6 -0
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js +37 -0
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js.map +1 -0
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js +6 -0
- package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js.map +1 -0
- package/dist/collection/components/content/aico-album-content/aico-album-content.css +0 -0
- package/dist/collection/components/content/aico-album-content/aico-album-content.js +104 -0
- package/dist/collection/components/content/aico-album-content/aico-album-content.js.map +1 -0
- package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js +70 -0
- package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.css +63 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +49 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +37 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.css +85 -0
- package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js +19 -0
- package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js.map +1 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.css +0 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +49 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +26 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.css +0 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +79 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +71 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.css +1 -0
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +95 -0
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -0
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +73 -0
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-collection-content/aico-collection-content.css +3 -0
- package/dist/collection/components/content/aico-collection-content/aico-collection-content.js +19 -0
- package/dist/collection/components/content/aico-collection-content/aico-collection-content.js.map +1 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.css +0 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +62 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +26 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.css +0 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +49 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +23 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.css +8 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.js +73 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +30 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.css +0 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +54 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +60 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.css +36 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +81 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +31 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-html-content/aico-html-content.css +3 -0
- package/dist/collection/components/content/aico-html-content/aico-html-content.js +52 -0
- package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.css +37 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.js +68 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +59 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-news-content/aico-news-content.css +11 -0
- package/dist/collection/components/content/aico-news-content/aico-news-content.js +79 -0
- package/dist/collection/components/content/aico-news-content/aico-news-content.js.map +1 -0
- package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js +43 -0
- package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-no-content/aico-no-content.css +3 -0
- package/dist/collection/components/content/aico-no-content/aico-no-content.js +19 -0
- package/dist/collection/components/content/aico-no-content/aico-no-content.js.map +1 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.css +3 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.js +79 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +37 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.css +21 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.js +73 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +130 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.css +93 -0
- package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js +51 -0
- package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js.map +1 -0
- package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js +23 -0
- package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.css +0 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.js +127 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +173 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-title-content/aico-title-content.css +3 -0
- package/dist/collection/components/content/aico-title-content/aico-title-content.js +61 -0
- package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -0
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +28 -0
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.css +3 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +66 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +39 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.css +10 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.js +62 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +43 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -0
- package/dist/collection/components/content/content-styles.css +113 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/model/AicoApiRequestInfo.js +13 -0
- package/dist/collection/model/AicoApiRequestInfo.js.map +1 -0
- package/dist/collection/model/Article.js +2 -0
- package/dist/collection/model/Article.js.map +1 -0
- package/dist/collection/model/Entity.js +7 -0
- package/dist/collection/model/Entity.js.map +1 -0
- package/dist/collection/model/NewsCategory.js +2 -0
- package/dist/collection/model/NewsCategory.js.map +1 -0
- package/dist/collection/model/NewsResponse.js +2 -0
- package/dist/collection/model/NewsResponse.js.map +1 -0
- package/dist/collection/model/article/ContentType.js +33 -0
- package/dist/collection/model/article/ContentType.js.map +1 -0
- package/dist/collection/model/article/Translation.js +8 -0
- package/dist/collection/model/article/Translation.js.map +1 -0
- package/dist/collection/model/article/content/AlbumContent.js +2 -0
- package/dist/collection/model/article/content/AlbumContent.js.map +1 -0
- package/dist/collection/model/article/content/AskingContent.js +21 -0
- package/dist/collection/model/article/content/AskingContent.js.map +1 -0
- package/dist/collection/model/article/content/AskingListContent.js +7 -0
- package/dist/collection/model/article/content/AskingListContent.js.map +1 -0
- package/dist/collection/model/article/content/BlockQuoteContent.js +2 -0
- package/dist/collection/model/article/content/BlockQuoteContent.js.map +1 -0
- package/dist/collection/model/article/content/BulletContent.js +2 -0
- package/dist/collection/model/article/content/BulletContent.js.map +1 -0
- package/dist/collection/model/article/content/CardContent.js +2 -0
- package/dist/collection/model/article/content/CardContent.js.map +1 -0
- package/dist/collection/model/article/content/CarouselContent.js +2 -0
- package/dist/collection/model/article/content/CarouselContent.js.map +1 -0
- package/dist/collection/model/article/content/CollectionContent.js +52 -0
- package/dist/collection/model/article/content/CollectionContent.js.map +1 -0
- package/dist/collection/model/article/content/DividerContent.js +2 -0
- package/dist/collection/model/article/content/DividerContent.js.map +1 -0
- package/dist/collection/model/article/content/DocumentContent.js +2 -0
- package/dist/collection/model/article/content/DocumentContent.js.map +1 -0
- package/dist/collection/model/article/content/FaqContent.js +12 -0
- package/dist/collection/model/article/content/FaqContent.js.map +1 -0
- package/dist/collection/model/article/content/HeadingContent.js +2 -0
- package/dist/collection/model/article/content/HeadingContent.js.map +1 -0
- package/dist/collection/model/article/content/HtmlContent.js +2 -0
- package/dist/collection/model/article/content/HtmlContent.js.map +1 -0
- package/dist/collection/model/article/content/LinkContent.js +2 -0
- package/dist/collection/model/article/content/LinkContent.js.map +1 -0
- package/dist/collection/model/article/content/NewsContent.js +19 -0
- package/dist/collection/model/article/content/NewsContent.js.map +1 -0
- package/dist/collection/model/article/content/PageContent.js +37 -0
- package/dist/collection/model/article/content/PageContent.js.map +1 -0
- package/dist/collection/model/article/content/TableContet.js +2 -0
- package/dist/collection/model/article/content/TableContet.js.map +1 -0
- package/dist/collection/model/article/content/TestimonialContent.js +2 -0
- package/dist/collection/model/article/content/TestimonialContent.js.map +1 -0
- package/dist/collection/model/article/content/TextContent.js +2 -0
- package/dist/collection/model/article/content/TextContent.js.map +1 -0
- package/dist/collection/model/article/content/TitleContent.js +2 -0
- package/dist/collection/model/article/content/TitleContent.js.map +1 -0
- package/dist/collection/model/article/content/UploadContent.js +13 -0
- package/dist/collection/model/article/content/UploadContent.js.map +1 -0
- package/dist/collection/model/article/content/VideoContent.js +2 -0
- package/dist/collection/model/article/content/VideoContent.js.map +1 -0
- package/dist/collection/model/article/content/news/NewsAlbum.js +20 -0
- package/dist/collection/model/article/content/news/NewsAlbum.js.map +1 -0
- package/dist/collection/model/article/content/news/NewsArticle.js +43 -0
- package/dist/collection/model/article/content/news/NewsArticle.js.map +1 -0
- package/dist/collection/model/article/content/news/NewsCategory.js +17 -0
- package/dist/collection/model/article/content/news/NewsCategory.js.map +1 -0
- package/dist/collection/model/article/content/news/NewsTag.js +10 -0
- package/dist/collection/model/article/content/news/NewsTag.js.map +1 -0
- package/dist/collection/utils/ConditionalRender.js +5 -0
- package/dist/collection/utils/ConditionalRender.js.map +1 -0
- package/dist/collection/utils/ConditionalWrap.js +5 -0
- package/dist/collection/utils/ConditionalWrap.js.map +1 -0
- package/dist/collection/utils/utils.js +77 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/collection/utils/utils.spec.js +6 -0
- package/dist/collection/utils/utils.spec.js.map +1 -0
- package/dist/components/ConditionalRender.js +7 -0
- package/dist/components/ConditionalRender.js.map +1 -0
- package/dist/components/aico-album-content.d.ts +11 -0
- package/dist/components/aico-album-content.js +8 -0
- package/dist/components/aico-album-content.js.map +1 -0
- package/dist/components/aico-album-content2.js +90 -0
- package/dist/components/aico-album-content2.js.map +1 -0
- package/dist/components/aico-article-detail.d.ts +11 -0
- package/dist/components/aico-article-detail.js +8 -0
- package/dist/components/aico-article-detail.js.map +1 -0
- package/dist/components/aico-article-detail2.js +262 -0
- package/dist/components/aico-article-detail2.js.map +1 -0
- package/dist/components/aico-asking-content.d.ts +11 -0
- package/dist/components/aico-asking-content.js +8 -0
- package/dist/components/aico-asking-content.js.map +1 -0
- package/dist/components/aico-asking-content2.js +36 -0
- package/dist/components/aico-asking-content2.js.map +1 -0
- package/dist/components/aico-asking-list-content.d.ts +11 -0
- package/dist/components/aico-asking-list-content.js +34 -0
- package/dist/components/aico-asking-list-content.js.map +1 -0
- package/dist/components/aico-block-quote-content.d.ts +11 -0
- package/dist/components/aico-block-quote-content.js +8 -0
- package/dist/components/aico-block-quote-content.js.map +1 -0
- package/dist/components/aico-block-quote-content2.js +36 -0
- package/dist/components/aico-block-quote-content2.js.map +1 -0
- package/dist/components/aico-bullet-content.d.ts +11 -0
- package/dist/components/aico-bullet-content.js +8 -0
- package/dist/components/aico-bullet-content.js.map +1 -0
- package/dist/components/aico-bullet-content2.js +78 -0
- package/dist/components/aico-bullet-content2.js.map +1 -0
- package/dist/components/aico-carousel-content.d.ts +11 -0
- package/dist/components/aico-carousel-content.js +8 -0
- package/dist/components/aico-carousel-content.js.map +1 -0
- package/dist/components/aico-carousel-content2.js +76 -0
- package/dist/components/aico-carousel-content2.js.map +1 -0
- package/dist/components/aico-collection-content.d.ts +11 -0
- package/dist/components/aico-collection-content.js +34 -0
- package/dist/components/aico-collection-content.js.map +1 -0
- package/dist/components/aico-content-card-content.d.ts +11 -0
- package/dist/components/aico-content-card-content.js +8 -0
- package/dist/components/aico-content-card-content.js.map +1 -0
- package/dist/components/aico-content-card-content2.js +61 -0
- package/dist/components/aico-content-card-content2.js.map +1 -0
- package/dist/components/aico-divider-content.d.ts +11 -0
- package/dist/components/aico-divider-content.js +8 -0
- package/dist/components/aico-divider-content.js.map +1 -0
- package/dist/components/aico-divider-content2.js +36 -0
- package/dist/components/aico-divider-content2.js.map +1 -0
- package/dist/components/aico-document-content.d.ts +11 -0
- package/dist/components/aico-document-content.js +8 -0
- package/dist/components/aico-document-content.js.map +1 -0
- package/dist/components/aico-document-content2.js +60 -0
- package/dist/components/aico-document-content2.js.map +1 -0
- package/dist/components/aico-faq-content.d.ts +11 -0
- package/dist/components/aico-faq-content.js +8 -0
- package/dist/components/aico-faq-content.js.map +1 -0
- package/dist/components/aico-faq-content2.js +41 -0
- package/dist/components/aico-faq-content2.js.map +1 -0
- package/dist/components/aico-fetch-article-detail.d.ts +11 -0
- package/dist/components/aico-fetch-article-detail.js +186 -0
- package/dist/components/aico-fetch-article-detail.js.map +1 -0
- package/dist/components/aico-heading-content.d.ts +11 -0
- package/dist/components/aico-heading-content.js +8 -0
- package/dist/components/aico-heading-content.js.map +1 -0
- package/dist/components/aico-heading-content2.js +80 -0
- package/dist/components/aico-heading-content2.js.map +1 -0
- package/dist/components/aico-html-content.d.ts +11 -0
- package/dist/components/aico-html-content.js +8 -0
- package/dist/components/aico-html-content.js.map +1 -0
- package/dist/components/aico-html-content2.js +45 -0
- package/dist/components/aico-html-content2.js.map +1 -0
- package/dist/components/aico-link-content.d.ts +11 -0
- package/dist/components/aico-link-content.js +8 -0
- package/dist/components/aico-link-content.js.map +1 -0
- package/dist/components/aico-link-content2.js +55 -0
- package/dist/components/aico-link-content2.js.map +1 -0
- package/dist/components/aico-news-content.d.ts +11 -0
- package/dist/components/aico-news-content.js +8 -0
- package/dist/components/aico-news-content.js.map +1 -0
- package/dist/components/aico-news-content2.js +43 -0
- package/dist/components/aico-news-content2.js.map +1 -0
- package/dist/components/aico-news-list-item.d.ts +11 -0
- package/dist/components/aico-news-list-item.js +8 -0
- package/dist/components/aico-news-list-item.js.map +1 -0
- package/dist/components/aico-news-list-item2.js +36 -0
- package/dist/components/aico-news-list-item2.js.map +1 -0
- package/dist/components/aico-news-list.d.ts +11 -0
- package/dist/components/aico-news-list.js +118 -0
- package/dist/components/aico-news-list.js.map +1 -0
- package/dist/components/aico-no-content.d.ts +11 -0
- package/dist/components/aico-no-content.js +8 -0
- package/dist/components/aico-no-content.js.map +1 -0
- package/dist/components/aico-no-content2.js +31 -0
- package/dist/components/aico-no-content2.js.map +1 -0
- package/dist/components/aico-page-content.d.ts +11 -0
- package/dist/components/aico-page-content.js +8 -0
- package/dist/components/aico-page-content.js.map +1 -0
- package/dist/components/aico-page-content2.js +43 -0
- package/dist/components/aico-page-content2.js.map +1 -0
- package/dist/components/aico-special-news-carousel.d.ts +11 -0
- package/dist/components/aico-special-news-carousel.js +78 -0
- package/dist/components/aico-special-news-carousel.js.map +1 -0
- package/dist/components/aico-table-content.d.ts +11 -0
- package/dist/components/aico-table-content.js +8 -0
- package/dist/components/aico-table-content.js.map +1 -0
- package/dist/components/aico-table-content2.js +72 -0
- package/dist/components/aico-table-content2.js.map +1 -0
- package/dist/components/aico-testimonial-content.d.ts +11 -0
- package/dist/components/aico-testimonial-content.js +8 -0
- package/dist/components/aico-testimonial-content.js.map +1 -0
- package/dist/components/aico-testimonial-content2.js +38 -0
- package/dist/components/aico-testimonial-content2.js.map +1 -0
- package/dist/components/aico-text-content.d.ts +11 -0
- package/dist/components/aico-text-content.js +8 -0
- package/dist/components/aico-text-content.js.map +1 -0
- package/dist/components/aico-text-content2.js +127 -0
- package/dist/components/aico-text-content2.js.map +1 -0
- package/dist/components/aico-title-content.d.ts +11 -0
- package/dist/components/aico-title-content.js +8 -0
- package/dist/components/aico-title-content.js.map +1 -0
- package/dist/components/aico-title-content2.js +54 -0
- package/dist/components/aico-title-content2.js.map +1 -0
- package/dist/components/aico-upload-content.d.ts +11 -0
- package/dist/components/aico-upload-content.js +8 -0
- package/dist/components/aico-upload-content.js.map +1 -0
- package/dist/components/aico-upload-content2.js +65 -0
- package/dist/components/aico-upload-content2.js.map +1 -0
- package/dist/components/aico-video-content.d.ts +11 -0
- package/dist/components/aico-video-content.js +8 -0
- package/dist/components/aico-video-content.js.map +1 -0
- package/dist/components/aico-video-content2.js +61 -0
- package/dist/components/aico-video-content2.js.map +1 -0
- package/dist/components/assets/slick/ajax-loader.gif +0 -0
- package/dist/components/assets/slick/slick.eot +0 -0
- package/dist/components/assets/slick/slick.svg +14 -0
- package/dist/components/assets/slick/slick.ttf +0 -0
- package/dist/components/assets/slick/slick.woff +0 -0
- package/dist/components/bootstrap-slick-test.d.ts +11 -0
- package/dist/components/bootstrap-slick-test.js +51 -0
- package/dist/components/bootstrap-slick-test.js.map +1 -0
- package/dist/components/bootstrap.esm.js +6265 -0
- package/dist/components/bootstrap.esm.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/slick.js +13660 -0
- package/dist/components/slick.js.map +1 -0
- package/dist/components/utils.js +84 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/aico-album-content_19.entry.js +6884 -0
- package/dist/esm/aico-album-content_19.entry.js.map +1 -0
- package/dist/esm/aico-article-detail.entry.js +120 -0
- package/dist/esm/aico-article-detail.entry.js.map +1 -0
- package/dist/esm/aico-asking-list-content.entry.js +17 -0
- package/dist/esm/aico-asking-list-content.entry.js.map +1 -0
- package/dist/esm/aico-collection-content.entry.js +17 -0
- package/dist/esm/aico-collection-content.entry.js.map +1 -0
- package/dist/esm/aico-components.js +20 -0
- package/dist/esm/aico-components.js.map +1 -0
- package/dist/esm/aico-fetch-article-detail.entry.js +32 -0
- package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -0
- package/dist/esm/aico-news-list-item.entry.js +20 -0
- package/dist/esm/aico-news-list-item.entry.js.map +1 -0
- package/dist/esm/aico-news-list.entry.js +88 -0
- package/dist/esm/aico-news-list.entry.js.map +1 -0
- package/dist/esm/aico-no-content_2.entry.js +44 -0
- package/dist/esm/aico-no-content_2.entry.js.map +1 -0
- package/dist/esm/aico-special-news-carousel.entry.js +56 -0
- package/dist/esm/aico-special-news-carousel.entry.js.map +1 -0
- package/dist/esm/bootstrap-slick-test.entry.js +34 -0
- package/dist/esm/bootstrap-slick-test.entry.js.map +1 -0
- package/dist/esm/index-f9f11572.js +2250 -0
- package/dist/esm/index-f9f11572.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/slick-d11cf173.js +13660 -0
- package/dist/esm/slick-d11cf173.js.map +1 -0
- package/dist/esm/utils-2b7ec879.js +84 -0
- package/dist/esm/utils-2b7ec879.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +10 -0
- package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +13 -0
- package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.d.ts +7 -0
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +21 -0
- package/dist/types/components/aico-news-list/aico-news-list.stories.d.ts +6 -0
- package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +7 -0
- package/dist/types/components/aico-news-list-item/aico-news-list-item.stories.d.ts +6 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +19 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.stories.d.ts +7 -0
- package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.d.ts +5 -0
- package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.stories.d.ts +5 -0
- package/dist/types/components/content/aico-album-content/aico-album-content.d.ts +7 -0
- package/dist/types/components/content/aico-album-content/aico-album-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +5 -0
- package/dist/types/components/content/aico-asking-content/aico-asking-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-asking-list-content/aico-asking-list-content.d.ts +3 -0
- package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +5 -0
- package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +6 -0
- package/dist/types/components/content/aico-bullet-content/aico-bullet-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +9 -0
- package/dist/types/components/content/aico-carousel-content/aico-carousel-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-collection-content/aico-collection-content.d.ts +3 -0
- package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +6 -0
- package/dist/types/components/content/aico-content-card-content/aico-content-card-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +5 -0
- package/dist/types/components/content/aico-divider-content/aico-divider-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +5 -0
- package/dist/types/components/content/aico-document-content/aico-document-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +6 -0
- package/dist/types/components/content/aico-faq-content/aico-faq-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +6 -0
- package/dist/types/components/content/aico-heading-content/aico-heading-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +5 -0
- package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +5 -0
- package/dist/types/components/content/aico-link-content/aico-link-content.stories.d.ts +7 -0
- package/dist/types/components/content/aico-news-content/aico-news-content.d.ts +8 -0
- package/dist/types/components/content/aico-news-content/aico-news-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-no-content/aico-no-content.d.ts +3 -0
- package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +7 -0
- package/dist/types/components/content/aico-page-content/aico-page-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +6 -0
- package/dist/types/components/content/aico-table-content/aico-table-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.d.ts +5 -0
- package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.stories.d.ts +6 -0
- package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +12 -0
- package/dist/types/components/content/aico-text-content/aico-text-content.stories.d.ts +10 -0
- package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +5 -0
- package/dist/types/components/content/aico-title-content/aico-title-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +6 -0
- package/dist/types/components/content/aico-upload-content/aico-upload-content.stories.d.ts +5 -0
- package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +6 -0
- package/dist/types/components/content/aico-video-content/aico-video-content.stories.d.ts +7 -0
- package/dist/types/components.d.ts +591 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model/AicoApiRequestInfo.d.ts +6 -0
- package/dist/types/model/Article.d.ts +103 -0
- package/dist/types/model/Entity.d.ts +15 -0
- package/dist/types/model/NewsCategory.d.ts +14 -0
- package/dist/types/model/NewsResponse.d.ts +25 -0
- package/dist/types/model/article/ContentType.d.ts +31 -0
- package/dist/types/model/article/Translation.d.ts +24 -0
- package/dist/types/model/article/content/AlbumContent.d.ts +26 -0
- package/dist/types/model/article/content/AskingContent.d.ts +152 -0
- package/dist/types/model/article/content/AskingListContent.d.ts +17 -0
- package/dist/types/model/article/content/BlockQuoteContent.d.ts +11 -0
- package/dist/types/model/article/content/BulletContent.d.ts +14 -0
- package/dist/types/model/article/content/CardContent.d.ts +10 -0
- package/dist/types/model/article/content/CarouselContent.d.ts +12 -0
- package/dist/types/model/article/content/CollectionContent.d.ts +364 -0
- package/dist/types/model/article/content/DividerContent.d.ts +8 -0
- package/dist/types/model/article/content/DocumentContent.d.ts +19 -0
- package/dist/types/model/article/content/FaqContent.d.ts +106 -0
- package/dist/types/model/article/content/HeadingContent.d.ts +16 -0
- package/dist/types/model/article/content/HtmlContent.d.ts +5 -0
- package/dist/types/model/article/content/LinkContent.d.ts +23 -0
- package/dist/types/model/article/content/NewsContent.d.ts +836 -0
- package/dist/types/model/article/content/PageContent.d.ts +313 -0
- package/dist/types/model/article/content/TableContet.d.ts +30 -0
- package/dist/types/model/article/content/TestimonialContent.d.ts +9 -0
- package/dist/types/model/article/content/TextContent.d.ts +39 -0
- package/dist/types/model/article/content/TitleContent.d.ts +9 -0
- package/dist/types/model/article/content/UploadContent.d.ts +77 -0
- package/dist/types/model/article/content/VideoContent.d.ts +14 -0
- package/dist/types/model/article/content/news/NewsAlbum.d.ts +150 -0
- package/dist/types/model/article/content/news/NewsArticle.d.ts +577 -0
- package/dist/types/model/article/content/news/NewsCategory.d.ts +88 -0
- package/dist/types/model/article/content/news/NewsTag.d.ts +63 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/utils/ConditionalRender.d.ts +6 -0
- package/dist/types/utils/ConditionalWrap.d.ts +7 -0
- package/dist/types/utils/utils.d.ts +13 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +13 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const meta = {
|
|
2
|
+
component: 'aico-link-content',
|
|
3
|
+
};
|
|
4
|
+
export default meta;
|
|
5
|
+
export const ImageLink = {
|
|
6
|
+
args: {
|
|
7
|
+
content: {
|
|
8
|
+
id: 1234,
|
|
9
|
+
createdAt: new Date(),
|
|
10
|
+
updatedAt: new Date(),
|
|
11
|
+
translations: [
|
|
12
|
+
{
|
|
13
|
+
id: 1234,
|
|
14
|
+
createdAt: new Date(),
|
|
15
|
+
updatedAt: new Date(),
|
|
16
|
+
title: 'Link title',
|
|
17
|
+
link: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',
|
|
18
|
+
linkText: 'Rick :)',
|
|
19
|
+
imageUrl: 'https://source.unsplash.com/random/320x240',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
pictureSize: 'medium',
|
|
23
|
+
isButtonLink: true,
|
|
24
|
+
isImageFullSize: false,
|
|
25
|
+
isImageLink: true,
|
|
26
|
+
backgroundButtonColor: '#efefef',
|
|
27
|
+
textButtonColor: 'red',
|
|
28
|
+
hoverColor: 'pink',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export const ButtonLink = {
|
|
33
|
+
args: {
|
|
34
|
+
content: {
|
|
35
|
+
id: 1234,
|
|
36
|
+
createdAt: new Date(),
|
|
37
|
+
updatedAt: new Date(),
|
|
38
|
+
translations: [
|
|
39
|
+
{
|
|
40
|
+
id: 1234,
|
|
41
|
+
createdAt: new Date(),
|
|
42
|
+
updatedAt: new Date(),
|
|
43
|
+
title: 'Link title',
|
|
44
|
+
link: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',
|
|
45
|
+
linkText: 'Rick :)',
|
|
46
|
+
imageUrl: 'https://source.unsplash.com/random/320x240',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
pictureSize: 'medium',
|
|
50
|
+
isButtonLink: true,
|
|
51
|
+
isImageFullSize: false,
|
|
52
|
+
isImageLink: false,
|
|
53
|
+
backgroundButtonColor: '#efefef',
|
|
54
|
+
textButtonColor: 'red',
|
|
55
|
+
hoverColor: 'pink',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=aico-link-content.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-link-content.stories.js","sourceRoot":"","sources":["../../../../src/components/content/aico-link-content/aico-link-content.stories.ts"],"names":[],"mappings":"AAIA,MAAM,IAAI,GAA8B;IACtC,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,YAAY,EAAE;gBACZ;oBACE,EAAE,EAAE,IAAI;oBACR,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,6CAA6C;oBACnD,QAAQ,EAAE,SAAS;oBACnB,QAAQ,EAAE,4CAA4C;iBACvD;aACF;YAED,WAAW,EAAE,QAAQ;YAErB,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,WAAW,EAAE,IAAI;YAEjB,qBAAqB,EAAE,SAAS;YAChC,eAAe,EAAE,KAAK;YACtB,UAAU,EAAE,MAAM;SACJ;KACjB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,YAAY,EAAE;gBACZ;oBACE,EAAE,EAAE,IAAI;oBACR,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,6CAA6C;oBACnD,QAAQ,EAAE,SAAS;oBACnB,QAAQ,EAAE,4CAA4C;iBACvD;aACF;YAED,WAAW,EAAE,QAAQ;YAErB,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,WAAW,EAAE,KAAK;YAElB,qBAAqB,EAAE,SAAS;YAChC,eAAe,EAAE,KAAK;YACtB,UAAU,EAAE,MAAM;SACJ;KACjB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport type { LinkContent } from '../../../model/article/content/LinkContent';\nimport { JSX } from '../../../components';\n\nconst meta: Meta<JSX.AicoLinkContent> = {\n component: 'aico-link-content',\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const ImageLink: Story = {\n args: {\n content: {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n translations: [\n {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n title: 'Link title',\n link: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',\n linkText: 'Rick :)',\n imageUrl: 'https://source.unsplash.com/random/320x240',\n },\n ],\n\n pictureSize: 'medium',\n\n isButtonLink: true,\n isImageFullSize: false,\n isImageLink: true,\n\n backgroundButtonColor: '#efefef',\n textButtonColor: 'red',\n hoverColor: 'pink',\n } as LinkContent,\n },\n};\n\nexport const ButtonLink: Story = {\n args: {\n content: {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n translations: [\n {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n title: 'Link title',\n link: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',\n linkText: 'Rick :)',\n imageUrl: 'https://source.unsplash.com/random/320x240',\n },\n ],\n\n pictureSize: 'medium',\n\n isButtonLink: true,\n isImageFullSize: false,\n isImageLink: false,\n\n backgroundButtonColor: '#efefef',\n textButtonColor: 'red',\n hoverColor: 'pink',\n } as LinkContent,\n },\n};\n"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import ConditionalRender from "../../../utils/ConditionalRender";
|
|
3
|
+
import { strIsNullOrEmptyOrWhitespace } from "../../../utils/utils";
|
|
4
|
+
export class AicoNewsContent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.content = undefined;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return (h("div", { class: "card-group" }, this.content.aicoShopNews.map(news => {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
11
|
+
return (h("div", { class: "news-article card h-100 pe-auto", onClick: () => {
|
|
12
|
+
var _a;
|
|
13
|
+
(_a = this.newsArticleClicked) === null || _a === void 0 ? void 0 : _a.emit(news);
|
|
14
|
+
} }, h("div", { class: "ratio ratio-4x3 overflow-hidden " }, h("img", { class: "news-article-img card-img-top img-fluid object-fit-cover", style: { 'object-position': 'center' }, src: (_b = (_a = news.image) !== null && _a !== void 0 ? _a : news.headlineImage) !== null && _b !== void 0 ? _b : 'https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w' })), h("div", { class: "card-body", style: { 'min-height': '6rem', 'background-color': (_c = this.content.textBackgroundColor) !== null && _c !== void 0 ? _c : 'royalBlue' } }, h("h5", { class: "card-title" }, news.name)), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(news.excerpt) }, h("div", { class: "card-footer", style: { 'background-color': (_d = this.content.textBackgroundColor) !== null && _d !== void 0 ? _d : 'royalBlue', 'color': 'white' } }, h("small", { class: "text-muted" }, news.excerpt)))));
|
|
15
|
+
})));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "aico-news-content"; }
|
|
18
|
+
static get encapsulation() { return "scoped"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["aico-news-content.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["aico-news-content.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"content": {
|
|
32
|
+
"type": "unknown",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "NewsContent",
|
|
36
|
+
"resolved": "{ id: string | number; createdAt: Date; updatedAt: Date; titleSize: string; maxPerRow: number; maxToDisplay: number; aicoShopNews: { id: string | number; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; shouldShowTranslation: boolean; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; description?: string | null | undefined; excerpt?: string | null | undefined; image?: string | null | undefined; optimizedImage?: string | null | undefined; portraitImage?: string | null | undefined; optimizedPortraitImage?: string | null | undefined; optimizedListImage?: string | null | undefined; }[]; isActive: boolean; isSpecialArticle: boolean; brandIds: (string | number)[]; sellerIds: (string | number)[]; newsCategory: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; webName?: string | null | undefined; description?: string | null | undefined; smallDescription?: string | null | undefined; }[]; isActive: boolean; sortingNumber: number; sorting_number: number; is_active: boolean; image?: string | null | undefined; }; newsTags: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; webName?: string | null | undefined; }; }[]; album: { id: string | number; createdAt: Date; updatedAt: Date; images: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; description?: string | null | undefined; alternativeText?: string | null | undefined; caption?: string | null | undefined; alternative_text?: string | null | undefined; }[]; url?: string | null | undefined; type?: string | null | undefined; order?: number | null | undefined; optimizedImage?: string | null | undefined; }[]; name?: string | null | undefined; }; name?: string | null | undefined; description?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; urlHandle?: string | null | undefined; excerpt?: string | null | undefined; publishDate?: Date | null | undefined; author?: string | null | undefined; videoUrl?: string | null | undefined; image?: string | null | undefined; headlineImage?: string | null | undefined; portraitImage?: string | null | undefined; optimizedPortraitImage?: string | null | undefined; optimizedImage?: string | null | undefined; optimizedListImage?: string | null | undefined; contentBuilder?: any; }[]; landscapePicture?: string | null | undefined; portraitPicture?: string | null | undefined; title?: string | null | undefined; text?: string | null | undefined; textColor?: string | null | undefined; textBackgroundColor?: string | null | undefined; textHoverColor?: string | null | undefined; IMPORTANT?: string | null | undefined; text_hover_color?: string | null | undefined; }",
|
|
37
|
+
"references": {
|
|
38
|
+
"NewsContent": {
|
|
39
|
+
"location": "import",
|
|
40
|
+
"path": "../../../model/article/content/NewsContent",
|
|
41
|
+
"id": "src/model/article/content/NewsContent.ts::NewsContent"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": true,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": ""
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get events() {
|
|
55
|
+
return [{
|
|
56
|
+
"method": "newsArticleClicked",
|
|
57
|
+
"name": "newsArticleClicked",
|
|
58
|
+
"bubbles": true,
|
|
59
|
+
"cancelable": true,
|
|
60
|
+
"composed": true,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "NewsArticle",
|
|
67
|
+
"resolved": "{ id: string | number; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; shouldShowTranslation: boolean; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; description?: string | null | undefined; excerpt?: string | null | undefined; image?: string | null | undefined; optimizedImage?: string | null | undefined; portraitImage?: string | null | undefined; optimizedPortraitImage?: string | null | undefined; optimizedListImage?: string | null | undefined; }[]; isActive: boolean; isSpecialArticle: boolean; brandIds: (string | number)[]; sellerIds: (string | number)[]; newsCategory: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; webName?: string | null | undefined; description?: string | null | undefined; smallDescription?: string | null | undefined; }[]; isActive: boolean; sortingNumber: number; sorting_number: number; is_active: boolean; image?: string | null | undefined; }; newsTags: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; webName?: string | null | undefined; }; }[]; album: { id: string | number; createdAt: Date; updatedAt: Date; images: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; description?: string | null | undefined; alternativeText?: string | null | undefined; caption?: string | null | undefined; alternative_text?: string | null | undefined; }[]; url?: string | null | undefined; type?: string | null | undefined; order?: number | null | undefined; optimizedImage?: string | null | undefined; }[]; name?: string | null | undefined; }; name?: string | null | undefined; description?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; urlHandle?: string | null | undefined; excerpt?: string | null | undefined; publishDate?: Date | null | undefined; author?: string | null | undefined; videoUrl?: string | null | undefined; image?: string | null | undefined; headlineImage?: string | null | undefined; portraitImage?: string | null | undefined; optimizedPortraitImage?: string | null | undefined; optimizedImage?: string | null | undefined; optimizedListImage?: string | null | undefined; contentBuilder?: any; }",
|
|
68
|
+
"references": {
|
|
69
|
+
"NewsArticle": {
|
|
70
|
+
"location": "import",
|
|
71
|
+
"path": "../../../model/article/content/news/NewsArticle",
|
|
72
|
+
"id": "src/model/article/content/news/NewsArticle.ts::NewsArticle"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=aico-news-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-news-content.js","sourceRoot":"","sources":["../../../../src/components/content/aico-news-content/aico-news-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAGxE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAOpE,MAAM,OAAO,eAAe;;;;IAK1B,MAAM;QACJ,OAAO,CACL,WAAK,KAAK,EAAC,YAAY,IACpB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;;YACpC,OAAO,CACL,WACE,KAAK,EAAC,iCAAiC,EACvC,OAAO,EAAE,GAAG,EAAE;;oBACZ,MAAA,IAAI,CAAC,kBAAkB,0CAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtC,CAAC;gBAED,WAAK,KAAK,EAAC,kCAAkC;oBAC3C,WACE,KAAK,EAAC,0DAA0D,EAChE,KAAK,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EACtC,GAAG,EAAE,MAAA,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,CAAC,aAAa,mCAAI,oGAAoG,GAC7I,CACE;gBACN,WAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,mBAAmB,mCAAI,WAAW,EAAE;oBACzH,UAAI,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,IAAI,CAAM,CACnC;gBACN,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC;oBACvE,WAAK,KAAK,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,kBAAkB,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,mBAAmB,mCAAI,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE;wBACvH,aAAO,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,OAAO,CAAS,CAC5C,CACY,CAChB,CACP,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Prop, h } from '@stencil/core';\nimport type { NewsContent } from '../../../model/article/content/NewsContent';\nimport type { NewsArticle } from '../../../model/article/content/news/NewsArticle';\nimport ConditionalRender from '../../../utils/ConditionalRender';\nimport { strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\n\n@Component({\n tag: 'aico-news-content',\n styleUrl: 'aico-news-content.css',\n scoped: true,\n})\nexport class AicoNewsContent {\n @Prop() content!: NewsContent;\n\n @Event() newsArticleClicked?: EventEmitter<NewsArticle>;\n\n render() {\n return (\n <div class=\"card-group\">\n {this.content.aicoShopNews.map(news => {\n return (\n <div\n class=\"news-article card h-100 pe-auto\"\n onClick={() => {\n this.newsArticleClicked?.emit(news);\n }}\n >\n <div class=\"ratio ratio-4x3 overflow-hidden \">\n <img\n class=\"news-article-img card-img-top img-fluid object-fit-cover\"\n style={{ 'object-position': 'center' }}\n src={news.image ?? news.headlineImage ?? 'https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w'}\n />\n </div>\n <div class=\"card-body\" style={{ 'min-height': '6rem', 'background-color': this.content.textBackgroundColor ?? 'royalBlue' }}>\n <h5 class=\"card-title\">{news.name}</h5>\n </div>\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(news.excerpt)}>\n <div class=\"card-footer\" style={{ 'background-color': this.content.textBackgroundColor ?? 'royalBlue', 'color': 'white' }}>\n <small class=\"text-muted\">{news.excerpt}</small>\n </div>\n </ConditionalRender>\n </div>\n );\n })}\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const meta = {
|
|
2
|
+
component: 'aico-news-content',
|
|
3
|
+
};
|
|
4
|
+
export default meta;
|
|
5
|
+
export const Example = {
|
|
6
|
+
args: {
|
|
7
|
+
content: {
|
|
8
|
+
id: 1234,
|
|
9
|
+
createdAt: new Date(),
|
|
10
|
+
updatedAt: new Date(),
|
|
11
|
+
maxPerRow: 3,
|
|
12
|
+
maxToDisplay: 6,
|
|
13
|
+
titleSize: 'h1',
|
|
14
|
+
aicoShopNews: [
|
|
15
|
+
{
|
|
16
|
+
id: 1234,
|
|
17
|
+
name: 'Article 1',
|
|
18
|
+
image: 'https://source.unsplash.com/random/320x240',
|
|
19
|
+
excerpt: 'Tomorrow at 7 PM',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 1234,
|
|
23
|
+
name: 'Article 2',
|
|
24
|
+
image: 'https://source.unsplash.com/random/320x240',
|
|
25
|
+
excerpt: 'Tomorrow at 8 PM',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 1234,
|
|
29
|
+
name: 'Article 3',
|
|
30
|
+
image: 'https://source.unsplash.com/random/320x240',
|
|
31
|
+
excerpt: 'Tomorrow at 9 PM',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 1234,
|
|
35
|
+
name: 'Article 4',
|
|
36
|
+
image: 'https://source.unsplash.com/random/320x240',
|
|
37
|
+
excerpt: 'Tomorrow at 10 PM',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=aico-news-content.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-news-content.stories.js","sourceRoot":"","sources":["../../../../src/components/content/aico-news-content/aico-news-content.stories.ts"],"names":[],"mappings":"AAIA,MAAM,IAAI,GAA8B;IACtC,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,OAAO,GAAa;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,CAAC;YACZ,YAAY,EAAE,CAAC;YACf,SAAS,EAAE,IAAI;YACf,YAAY,EAAE;gBACZ;oBACE,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,4CAA4C;oBACnD,OAAO,EAAE,kBAAkB;iBAC5B;gBACD;oBACE,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,4CAA4C;oBACnD,OAAO,EAAE,kBAAkB;iBAC5B;gBACD;oBACE,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,4CAA4C;oBACnD,OAAO,EAAE,kBAAkB;iBAC5B;gBACD;oBACE,EAAE,EAAE,IAAI;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,4CAA4C;oBACnD,OAAO,EAAE,mBAAmB;iBAC7B;aACF;SACa;KACjB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport type { NewsContent } from '../../../model/article/content/NewsContent';\nimport { JSX } from '../../../components';\n\nconst meta: Meta<JSX.AicoNewsContent> = {\n component: 'aico-news-content',\n};\n\nexport default meta;\n\nexport const Example: StoryObj = {\n args: {\n content: {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n maxPerRow: 3,\n maxToDisplay: 6,\n titleSize: 'h1',\n aicoShopNews: [\n {\n id: 1234,\n name: 'Article 1',\n image: 'https://source.unsplash.com/random/320x240',\n excerpt: 'Tomorrow at 7 PM',\n },\n {\n id: 1234,\n name: 'Article 2',\n image: 'https://source.unsplash.com/random/320x240',\n excerpt: 'Tomorrow at 8 PM',\n },\n {\n id: 1234,\n name: 'Article 3',\n image: 'https://source.unsplash.com/random/320x240',\n excerpt: 'Tomorrow at 9 PM',\n },\n {\n id: 1234,\n name: 'Article 4',\n image: 'https://source.unsplash.com/random/320x240',\n excerpt: 'Tomorrow at 10 PM',\n },\n ],\n } as NewsContent,\n },\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class AicoNoContent {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", null, h("span", null, "The content cannot be rendered because it is either malformed or not supported.")));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "aico-no-content"; }
|
|
7
|
+
static get encapsulation() { return "scoped"; }
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["aico-no-content.css"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["aico-no-content.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=aico-no-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-no-content.js","sourceRoot":"","sources":["../../../../src/components/content/aico-no-content/aico-no-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO7C,MAAM,OAAO,aAAa;IACxB,MAAM;QACJ,OAAO,CACL;YACE,kGAA4F,CACxF,CACP,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'aico-no-content',\n styleUrl: 'aico-no-content.css',\n scoped: true,\n})\nexport class AicoNoContent {\n render() {\n return (\n <div>\n <span>The content cannot be rendered because it is either malformed or not supported.</span>\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { strIsNullOrEmptyOrWhitespace } from "../../../utils/utils";
|
|
3
|
+
import ConditionalRender from "../../../utils/ConditionalRender";
|
|
4
|
+
export class AicoPageContent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.content = undefined;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
|
+
const translation = this.content.landingPage.translations.length > 0 ? this.content.landingPage.translations[0] : null;
|
|
11
|
+
return (h(Host, { style: { 'max-width': '300px' } }, h("div", { class: "card pe-auto" }, h("div", { class: "ratio ratio-4x3" }, h("img", { class: "card-img-top img-fluid object-fit-cover", style: { 'object-position': 'center' }, src: (_a = this.content.landingPage.image) !== null && _a !== void 0 ? _a : 'https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w', alt: (_b = translation === null || translation === void 0 ? void 0 : translation.imageAlt) !== null && _b !== void 0 ? _b : 'Landing page image' })), h("div", { class: "card-body", style: { 'min-height': '6rem' } }, h("h5", { class: "card-title" }, translation === null || translation === void 0 ? void 0 : translation.name), h(ConditionalRender, { condition: this.content.openExternalLink && !strIsNullOrEmptyOrWhitespace(this.content.externalLink) }, h("a", { href: this.content.externalLink, class: "card-link" }, (_c = translation === null || translation === void 0 ? void 0 : translation.buttonText) !== null && _c !== void 0 ? _c : 'Navigate to page')), h(ConditionalRender, { condition: !this.content.openExternalLink }, h("a", { href: "#", class: "card-link", onClick: e => {
|
|
12
|
+
var _a;
|
|
13
|
+
e.preventDefault();
|
|
14
|
+
(_a = this.pageClicked) === null || _a === void 0 ? void 0 : _a.emit(this.content);
|
|
15
|
+
} }, (_d = translation === null || translation === void 0 ? void 0 : translation.buttonText) !== null && _d !== void 0 ? _d : 'Navigate to page'))), h(ConditionalRender, { condition: translation !== null && !strIsNullOrEmptyOrWhitespace(translation.excerpt) }, h("div", { class: "card-footer" }, h("small", { class: "text-muted" }, translation === null || translation === void 0 ? void 0 : translation.excerpt))))));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "aico-page-content"; }
|
|
18
|
+
static get encapsulation() { return "scoped"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["aico-page-content.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["aico-page-content.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"content": {
|
|
32
|
+
"type": "unknown",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "PageContent",
|
|
36
|
+
"resolved": "{ id: string | number; createdAt: Date; updatedAt: Date; openExternalLink: boolean; isImageZoomedIn: boolean; landingPage: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; imageAlt?: string | null | undefined; excerpt?: string | null | undefined; buttonText?: string | null | undefined; }[]; isTemplate: boolean; isPublic: boolean; lastSyncAt?: Date | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; urlHandle?: string | null | undefined; image?: string | null | undefined; focusXCoordinate?: number | null | undefined; focusYCoordinate?: number | null | undefined; focusXPercentage?: number | null | undefined; focusYPercentage?: number | null | undefined; }; buttonBackgroundColor?: string | null | undefined; buttonTextColor?: string | null | undefined; textColor?: string | null | undefined; backgroundColor?: string | null | undefined; externalLink?: string | null | undefined; fontType?: string | null | undefined; fontSize?: number | null | undefined; borderColor?: string | null | undefined; titleColor?: string | null | undefined; }",
|
|
37
|
+
"references": {
|
|
38
|
+
"PageContent": {
|
|
39
|
+
"location": "import",
|
|
40
|
+
"path": "../../../model/article/content/PageContent",
|
|
41
|
+
"id": "src/model/article/content/PageContent.ts::PageContent"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": true,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": ""
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get events() {
|
|
55
|
+
return [{
|
|
56
|
+
"method": "pageClicked",
|
|
57
|
+
"name": "pageClicked",
|
|
58
|
+
"bubbles": true,
|
|
59
|
+
"cancelable": true,
|
|
60
|
+
"composed": true,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "PageContent",
|
|
67
|
+
"resolved": "{ id: string | number; createdAt: Date; updatedAt: Date; openExternalLink: boolean; isImageZoomedIn: boolean; landingPage: { id: string | number; createdAt: Date; updatedAt: Date; translations: { id: string | number; createdAt: Date; updatedAt: Date; locale: string; title?: string | null | undefined; text?: string | null | undefined; name?: string | null | undefined; imageAlt?: string | null | undefined; excerpt?: string | null | undefined; buttonText?: string | null | undefined; }[]; isTemplate: boolean; isPublic: boolean; lastSyncAt?: Date | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; urlHandle?: string | null | undefined; image?: string | null | undefined; focusXCoordinate?: number | null | undefined; focusYCoordinate?: number | null | undefined; focusXPercentage?: number | null | undefined; focusYPercentage?: number | null | undefined; }; buttonBackgroundColor?: string | null | undefined; buttonTextColor?: string | null | undefined; textColor?: string | null | undefined; backgroundColor?: string | null | undefined; externalLink?: string | null | undefined; fontType?: string | null | undefined; fontSize?: number | null | undefined; borderColor?: string | null | undefined; titleColor?: string | null | undefined; }",
|
|
68
|
+
"references": {
|
|
69
|
+
"PageContent": {
|
|
70
|
+
"location": "import",
|
|
71
|
+
"path": "../../../model/article/content/PageContent",
|
|
72
|
+
"id": "src/model/article/content/PageContent.ts::PageContent"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=aico-page-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-page-content.js","sourceRoot":"","sources":["../../../../src/components/content/aico-page-content/aico-page-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAOjE,MAAM,OAAO,eAAe;;;;IAK1B,MAAM;;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACvH,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE;YACnC,WAAK,KAAK,EAAC,cAAc;gBACvB,WAAK,KAAK,EAAC,iBAAiB;oBAC1B,WACE,KAAK,EAAC,yCAAyC,EAC/C,KAAK,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EACtC,GAAG,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,mCAAI,oGAAoG,EAC3I,GAAG,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,mCAAI,oBAAoB,GAClD,CACE;gBACN,WAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE;oBACpD,UAAI,KAAK,EAAC,YAAY,IAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAM;oBAC/C,EAAC,iBAAiB,IAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,gBAAgB,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;wBACrH,SAAG,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,YAAa,EAAE,KAAK,EAAC,WAAW,IACnD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,mCAAI,kBAAkB,CAC5C,CACc;oBACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB;wBAC1D,SACE,IAAI,EAAC,GAAG,EACR,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,CAAC,CAAC,EAAE;;gCACX,CAAC,CAAC,cAAc,EAAE,CAAC;gCACnB,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;4BACvC,CAAC,IAEA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,mCAAI,kBAAkB,CAC5C,CACc,CAChB;gBACN,EAAC,iBAAiB,IAAC,SAAS,EAAE,WAAW,KAAK,IAAI,IAAI,CAAC,4BAA4B,CAAC,WAAW,CAAC,OAAO,CAAC;oBACtG,WAAK,KAAK,EAAC,aAAa;wBACtB,aAAO,KAAK,EAAC,YAAY,IAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAS,CACpD,CACY,CAChB,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, h } from '@stencil/core';\nimport type { PageContent } from '../../../model/article/content/PageContent';\nimport { strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\nimport ConditionalRender from '../../../utils/ConditionalRender';\n\n@Component({\n tag: 'aico-page-content',\n styleUrl: 'aico-page-content.css',\n scoped: true,\n})\nexport class AicoPageContent {\n @Prop() content!: PageContent;\n\n @Event() pageClicked?: EventEmitter<PageContent>;\n\n render() {\n const translation = this.content.landingPage.translations.length > 0 ? this.content.landingPage.translations[0] : null;\n return (\n <Host style={{ 'max-width': '300px' }}>\n <div class=\"card pe-auto\">\n <div class=\"ratio ratio-4x3\">\n <img\n class=\"card-img-top img-fluid object-fit-cover\"\n style={{ 'object-position': 'center' }}\n src={this.content.landingPage.image ?? 'https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w'}\n alt={translation?.imageAlt ?? 'Landing page image'}\n />\n </div>\n <div class=\"card-body\" style={{ 'min-height': '6rem' }}>\n <h5 class=\"card-title\">{translation?.name}</h5>\n <ConditionalRender condition={this.content.openExternalLink && !strIsNullOrEmptyOrWhitespace(this.content.externalLink)}>\n <a href={this.content.externalLink!} class=\"card-link\">\n {translation?.buttonText ?? 'Navigate to page'}\n </a>\n </ConditionalRender>\n <ConditionalRender condition={!this.content.openExternalLink}>\n <a\n href=\"#\"\n class=\"card-link\"\n onClick={e => {\n e.preventDefault();\n this.pageClicked?.emit(this.content);\n }}\n >\n {translation?.buttonText ?? 'Navigate to page'}\n </a>\n </ConditionalRender>\n </div>\n <ConditionalRender condition={translation !== null && !strIsNullOrEmptyOrWhitespace(translation.excerpt)}>\n <div class=\"card-footer\">\n <small class=\"text-muted\">{translation?.excerpt}</small>\n </div>\n </ConditionalRender>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const meta = {
|
|
2
|
+
component: 'aico-page-content',
|
|
3
|
+
};
|
|
4
|
+
export default meta;
|
|
5
|
+
export const Exampl = {
|
|
6
|
+
args: {
|
|
7
|
+
content: {
|
|
8
|
+
id: 1234,
|
|
9
|
+
createdAt: new Date(),
|
|
10
|
+
updatedAt: new Date(),
|
|
11
|
+
openExternalLink: true,
|
|
12
|
+
externalLink: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',
|
|
13
|
+
isImageZoomedIn: false,
|
|
14
|
+
landingPage: {
|
|
15
|
+
id: 1234,
|
|
16
|
+
createdAt: new Date(),
|
|
17
|
+
updatedAt: new Date(),
|
|
18
|
+
translations: [
|
|
19
|
+
{
|
|
20
|
+
id: 1234,
|
|
21
|
+
createdAt: new Date(),
|
|
22
|
+
updatedAt: new Date(),
|
|
23
|
+
locale: 'en-GB',
|
|
24
|
+
name: 'Page name',
|
|
25
|
+
buttonText: 'See the article',
|
|
26
|
+
imageAlt: 'Image alt',
|
|
27
|
+
excerpt: 'Soon',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
isPublic: false,
|
|
31
|
+
isTemplate: false,
|
|
32
|
+
image: 'https://source.unsplash.com/random/320x240',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=aico-page-content.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-page-content.stories.js","sourceRoot":"","sources":["../../../../src/components/content/aico-page-content/aico-page-content.stories.ts"],"names":[],"mappings":"AAIA,MAAM,IAAI,GAA8B;IACtC,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,MAAM,GAAa;IAC9B,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,gBAAgB,EAAE,IAAI;YACtB,YAAY,EAAE,6CAA6C;YAC3D,eAAe,EAAE,KAAK;YACtB,WAAW,EAAE;gBACX,EAAE,EAAE,IAAI;gBACR,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,YAAY,EAAE;oBACZ;wBACE,EAAE,EAAE,IAAI;wBACR,SAAS,EAAE,IAAI,IAAI,EAAE;wBACrB,SAAS,EAAE,IAAI,IAAI,EAAE;wBACrB,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,WAAW;wBACjB,UAAU,EAAE,iBAAiB;wBAC7B,QAAQ,EAAE,WAAW;wBACrB,OAAO,EAAE,MAAM;qBAChB;iBACF;gBACD,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;gBACjB,KAAK,EAAE,4CAA4C;aACpD;SACa;KACjB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport type { PageContent } from '../../../model/article/content/PageContent';\nimport { JSX } from '../../../components';\n\nconst meta: Meta<JSX.AicoPageContent> = {\n component: 'aico-page-content',\n};\n\nexport default meta;\n\nexport const Exampl: StoryObj = {\n args: {\n content: {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n openExternalLink: true,\n externalLink: 'https://www.youtube.com/watch?v=xvFZjo5PgG0',\n isImageZoomedIn: false,\n landingPage: {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n translations: [\n {\n id: 1234,\n createdAt: new Date(),\n updatedAt: new Date(),\n locale: 'en-GB',\n name: 'Page name',\n buttonText: 'See the article',\n imageAlt: 'Image alt',\n excerpt: 'Soon',\n },\n ],\n isPublic: false,\n isTemplate: false,\n image: 'https://source.unsplash.com/random/320x240',\n },\n } as PageContent,\n },\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.table-content {
|
|
2
|
+
width: 100%;
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.table-content:not([class]) td,
|
|
9
|
+
.table-content:not([class]) th {
|
|
10
|
+
padding: 10px !important;
|
|
11
|
+
border: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.table-content th {
|
|
15
|
+
font-weight: 700 !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.table-content td,
|
|
19
|
+
.table-content th {
|
|
20
|
+
white-space: pre-line;
|
|
21
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import ConditionalRender from "../../../utils/ConditionalRender";
|
|
3
|
+
export class AicoTableContent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.content = undefined;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
|
|
10
|
+
const firstBackgroundColor = (_a = this.content.firstColor) !== null && _a !== void 0 ? _a : '#d6dfe1';
|
|
11
|
+
const secondBackgroundColor = (_b = this.content.secondColor) !== null && _b !== void 0 ? _b : '#e6eced';
|
|
12
|
+
return (h("div", { class: "content-table card" }, h("div", { class: "card-body" }, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { class: "card-title mt-0", content: this.makeTitleContent(translation) }), h("p", { class: "card-text" }, translation.additionalText)), h("table", { class: "table-content" }, this.content.tableRows
|
|
13
|
+
.sort((a, b) => a.sort - b.sort)
|
|
14
|
+
.map((row, index) => {
|
|
15
|
+
return (h("tr", { style: { 'font-weight': '400', 'background-color': index % 2 === 0 ? firstBackgroundColor : secondBackgroundColor } }, row.rowColumns.map(col => {
|
|
16
|
+
const translation = col.translations.length > 0 ? col.translations[0] : null;
|
|
17
|
+
if (!translation) {
|
|
18
|
+
return row.isHeading ? h("th", null) : h("td", null);
|
|
19
|
+
}
|
|
20
|
+
return row.isHeading ? h("th", null, translation.columnData) : h("td", null, translation.columnData);
|
|
21
|
+
})));
|
|
22
|
+
})))));
|
|
23
|
+
}
|
|
24
|
+
makeTitleContent(translation) {
|
|
25
|
+
var _a;
|
|
26
|
+
return {
|
|
27
|
+
id: this.content.id,
|
|
28
|
+
createdAt: this.content.createdAt,
|
|
29
|
+
updatedAt: this.content.updatedAt,
|
|
30
|
+
hasUnderscore: false,
|
|
31
|
+
size: (_a = this.content.titleSize) !== null && _a !== void 0 ? _a : 'h2',
|
|
32
|
+
translations: [Object.assign({}, translation)],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get is() { return "aico-table-content"; }
|
|
36
|
+
static get encapsulation() { return "scoped"; }
|
|
37
|
+
static get originalStyleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["aico-table-content.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get styleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["aico-table-content.css"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get properties() {
|
|
48
|
+
return {
|
|
49
|
+
"content": {
|
|
50
|
+
"type": "unknown",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "TableContent",
|
|
54
|
+
"resolved": "{ id: string | number; createdAt: Date; updatedAt: Date; } & { translations: ({ id: string | number; createdAt: Date; updatedAt: Date; locale: string; text?: string | null | undefined; title?: string | null | undefined; } & { additionalText?: string | undefined; })[]; sort: number; titleSize?: string | undefined; firstColor?: string | undefined; secondColor?: string | undefined; tableRows: TableContentRow[]; IMPORTANT?: string | undefined; bulletBullets?: object[] | undefined; }",
|
|
55
|
+
"references": {
|
|
56
|
+
"TableContent": {
|
|
57
|
+
"location": "import",
|
|
58
|
+
"path": "../../../model/article/content/TableContet",
|
|
59
|
+
"id": "src/model/article/content/TableContet.ts::TableContent"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": true,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=aico-table-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aico-table-content.js","sourceRoot":"","sources":["../../../../src/components/content/aico-table-content/aico-table-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAInD,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAOjE,MAAM,OAAO,gBAAgB;;;;IAG3B,MAAM;;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAE/F,MAAM,oBAAoB,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,SAAS,CAAC;QAClE,MAAM,qBAAqB,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,WAAW,mCAAI,SAAS,CAAC;QAEpE,OAAO,CACL,WAAK,KAAK,EAAC,oBAAoB;YAC7B,WAAK,KAAK,EAAC,WAAW;gBACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,WAAW,KAAK,IAAI;oBAChD,0BAAoB,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,WAAY,CAAC,GAAI;oBAC5F,SAAG,KAAK,EAAC,WAAW,IAAE,WAAY,CAAC,cAAc,CAAK,CACpC;gBACpB,aAAO,KAAK,EAAC,eAAe,IACzB,IAAI,CAAC,OAAO,CAAC,SAAS;qBACpB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;qBAC/B,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;oBAClB,OAAO,CACL,UAAI,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,qBAAqB,EAAE,IACpH,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;wBACxB,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;wBAC7E,IAAI,CAAC,WAAW,EAAE;4BAChB,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,aAAS,CAAC,CAAC,CAAC,aAAS,CAAC;yBAC9C;wBAED,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,cAAK,WAAW,CAAC,UAAU,CAAM,CAAC,CAAC,CAAC,cAAK,WAAW,CAAC,UAAU,CAAM,CAAC;oBAC/F,CAAC,CAAC,CACC,CACN,CAAC;gBACJ,CAAC,CAAC,CACE,CACJ,CACF,CACP,CAAC;IACJ,CAAC;IAEO,gBAAgB,CAAC,WAAwB;;QAC/C,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;YACnB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,SAAS,mCAAI,IAAI;YACpC,YAAY,EAAE,mBAAM,WAAW,EAAG;SACnC,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport type { TableContent } from '../../../model/article/content/TableContet';\nimport type { Translation } from '../../../model/article/Translation';\nimport type { TitleContent } from '../../../model/article/content/TitleContent';\nimport ConditionalRender from '../../../utils/ConditionalRender';\n\n@Component({\n tag: 'aico-table-content',\n styleUrl: 'aico-table-content.css',\n scoped: true,\n})\nexport class AicoTableContent {\n @Prop() content!: TableContent;\n\n render() {\n const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;\n\n const firstBackgroundColor = this.content.firstColor ?? '#d6dfe1';\n const secondBackgroundColor = this.content.secondColor ?? '#e6eced';\n\n return (\n <div class=\"content-table card\">\n <div class=\"card-body\">\n <ConditionalRender condition={translation !== null}>\n <aico-title-content class=\"card-title mt-0\" content={this.makeTitleContent(translation!)} />\n <p class=\"card-text\">{translation!.additionalText}</p>\n </ConditionalRender>\n <table class=\"table-content\">\n {this.content.tableRows\n .sort((a, b) => a.sort - b.sort)\n .map((row, index) => {\n return (\n <tr style={{ 'font-weight': '400', 'background-color': index % 2 === 0 ? firstBackgroundColor : secondBackgroundColor }}>\n {row.rowColumns.map(col => {\n const translation = col.translations.length > 0 ? col.translations[0] : null;\n if (!translation) {\n return row.isHeading ? <th></th> : <td></td>;\n }\n\n return row.isHeading ? <th>{translation.columnData}</th> : <td>{translation.columnData}</td>;\n })}\n </tr>\n );\n })}\n </table>\n </div>\n </div>\n );\n }\n\n private makeTitleContent(translation: Translation): TitleContent {\n return {\n id: this.content.id,\n createdAt: this.content.createdAt,\n updatedAt: this.content.updatedAt,\n hasUnderscore: false,\n size: this.content.titleSize ?? 'h2',\n translations: [{ ...translation }],\n };\n }\n}\n"]}
|