@aiconomy/aico-components 0.0.14 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/README.md +67 -57
  2. package/dist/aico-components/aico-components.css +6 -0
  3. package/dist/aico-components/aico-components.esm.js +1 -1
  4. package/dist/aico-components/aico-components.esm.js.map +1 -1
  5. package/dist/aico-components/assets/slick/ajax-loader.gif +0 -0
  6. package/dist/aico-components/assets/slick/slick.eot +0 -0
  7. package/dist/aico-components/assets/slick/slick.svg +14 -0
  8. package/dist/aico-components/assets/slick/slick.ttf +0 -0
  9. package/dist/aico-components/assets/slick/slick.woff +0 -0
  10. package/dist/aico-components/p-0ca1f065.entry.js +2 -0
  11. package/dist/aico-components/p-0ca1f065.entry.js.map +1 -0
  12. package/dist/aico-components/p-1c4a07ef.entry.js +7 -0
  13. package/dist/aico-components/p-1c4a07ef.entry.js.map +1 -0
  14. package/dist/aico-components/p-406fa2e5.entry.js +2 -0
  15. package/dist/aico-components/p-406fa2e5.entry.js.map +1 -0
  16. package/dist/aico-components/p-4c0f3325.entry.js +2 -0
  17. package/dist/aico-components/p-4c0f3325.entry.js.map +1 -0
  18. package/dist/aico-components/p-5109399b.entry.js +2 -0
  19. package/dist/aico-components/p-5109399b.entry.js.map +1 -0
  20. package/dist/aico-components/p-6464810e.entry.js +2 -0
  21. package/dist/aico-components/p-6464810e.entry.js.map +1 -0
  22. package/dist/aico-components/p-68930822.entry.js +2 -0
  23. package/dist/aico-components/p-68930822.entry.js.map +1 -0
  24. package/dist/aico-components/p-86c7fdc7.js +13 -0
  25. package/dist/aico-components/p-86c7fdc7.js.map +1 -0
  26. package/dist/aico-components/p-90c2d3dc.entry.js +2 -0
  27. package/dist/aico-components/p-90c2d3dc.entry.js.map +1 -0
  28. package/dist/aico-components/p-ae20e789.js +3 -0
  29. package/dist/aico-components/p-ae20e789.js.map +1 -0
  30. package/dist/aico-components/p-b1f8308f.entry.js +2 -0
  31. package/dist/aico-components/p-b1f8308f.entry.js.map +1 -0
  32. package/dist/aico-components/p-dfd3b0d3.js +2 -0
  33. package/dist/aico-components/p-dfd3b0d3.js.map +1 -0
  34. package/dist/cjs/aico-album-content_19.cjs.entry.js +6904 -0
  35. package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -0
  36. package/dist/cjs/aico-article-detail.cjs.entry.js +124 -0
  37. package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -0
  38. package/dist/cjs/aico-asking-list-content.cjs.entry.js +21 -0
  39. package/dist/cjs/aico-asking-list-content.cjs.entry.js.map +1 -0
  40. package/dist/cjs/aico-collection-content.cjs.entry.js +21 -0
  41. package/dist/cjs/aico-collection-content.cjs.entry.js.map +1 -0
  42. package/dist/cjs/aico-components.cjs.js +2 -2
  43. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +44 -0
  44. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -0
  45. package/dist/cjs/aico-news-list-item.cjs.entry.js +27 -0
  46. package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -0
  47. package/dist/cjs/aico-news-list.cjs.entry.js +92 -0
  48. package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -0
  49. package/dist/cjs/aico-no-content_2.cjs.entry.js +49 -0
  50. package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -0
  51. package/dist/cjs/aico-special-news-carousel.cjs.entry.js +60 -0
  52. package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -0
  53. package/dist/cjs/{index-222c33f1.js → index-e52034b7.js} +864 -28
  54. package/dist/cjs/index-e52034b7.js.map +1 -0
  55. package/dist/cjs/loader.cjs.js +2 -2
  56. package/dist/cjs/slick-d0dfbd94.js +13662 -0
  57. package/dist/cjs/slick-d0dfbd94.js.map +1 -0
  58. package/dist/cjs/utils-095ed22b.js +101 -0
  59. package/dist/cjs/utils-095ed22b.js.map +1 -0
  60. package/dist/collection/assets/slick/ajax-loader.gif +0 -0
  61. package/dist/collection/assets/slick/slick.eot +0 -0
  62. package/dist/collection/assets/slick/slick.svg +14 -0
  63. package/dist/collection/assets/slick/slick.ttf +0 -0
  64. package/dist/collection/assets/slick/slick.woff +0 -0
  65. package/dist/collection/collection-manifest.json +28 -1
  66. package/dist/collection/components/aico-article-detail/aico-article-detail.css +0 -0
  67. package/dist/collection/components/aico-article-detail/aico-article-detail.js +117 -0
  68. package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -0
  69. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js +6 -0
  70. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js.map +1 -0
  71. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js +6 -0
  72. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js.map +1 -0
  73. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.css +0 -0
  74. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +121 -0
  75. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -0
  76. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +25 -0
  77. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -0
  78. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js +6 -0
  79. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js.map +1 -0
  80. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js +6 -0
  81. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js.map +1 -0
  82. package/dist/collection/components/aico-news-list/aico-news-list.css +0 -0
  83. package/dist/collection/components/aico-news-list/aico-news-list.js +195 -0
  84. package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -0
  85. package/dist/collection/components/aico-news-list/aico-news-list.stories.js +24 -0
  86. package/dist/collection/components/aico-news-list/aico-news-list.stories.js.map +1 -0
  87. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js +6 -0
  88. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js.map +1 -0
  89. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js +6 -0
  90. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js.map +1 -0
  91. package/dist/collection/components/aico-news-list-item/aico-news-list-item.css +0 -0
  92. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +75 -0
  93. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -0
  94. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js +61 -0
  95. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js.map +1 -0
  96. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js +6 -0
  97. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js.map +1 -0
  98. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js +6 -0
  99. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js.map +1 -0
  100. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.css +3 -0
  101. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +145 -0
  102. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -0
  103. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js +30 -0
  104. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js.map +1 -0
  105. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js +6 -0
  106. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js.map +1 -0
  107. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js +6 -0
  108. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js.map +1 -0
  109. package/dist/collection/components/content/aico-album-content/aico-album-content.css +0 -0
  110. package/dist/collection/components/content/aico-album-content/aico-album-content.js +104 -0
  111. package/dist/collection/components/content/aico-album-content/aico-album-content.js.map +1 -0
  112. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js +70 -0
  113. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js.map +1 -0
  114. package/dist/collection/components/content/aico-asking-content/aico-asking-content.css +63 -0
  115. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +49 -0
  116. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -0
  117. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +37 -0
  118. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -0
  119. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.css +85 -0
  120. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js +19 -0
  121. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js.map +1 -0
  122. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.css +0 -0
  123. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +49 -0
  124. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -0
  125. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +26 -0
  126. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -0
  127. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.css +0 -0
  128. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +79 -0
  129. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -0
  130. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +71 -0
  131. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -0
  132. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.css +1 -0
  133. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +95 -0
  134. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -0
  135. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +73 -0
  136. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -0
  137. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js +19 -0
  138. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js.map +1 -0
  139. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.css +0 -0
  140. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +62 -0
  141. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -0
  142. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +26 -0
  143. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -0
  144. package/dist/collection/components/content/aico-divider-content/aico-divider-content.css +0 -0
  145. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +49 -0
  146. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -0
  147. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +23 -0
  148. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -0
  149. package/dist/collection/components/content/aico-document-content/aico-document-content.css +8 -0
  150. package/dist/collection/components/content/aico-document-content/aico-document-content.js +73 -0
  151. package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -0
  152. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +30 -0
  153. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -0
  154. package/dist/collection/components/content/aico-faq-content/aico-faq-content.css +0 -0
  155. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +54 -0
  156. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -0
  157. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +60 -0
  158. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -0
  159. package/dist/collection/components/content/aico-heading-content/aico-heading-content.css +36 -0
  160. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +81 -0
  161. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -0
  162. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +31 -0
  163. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -0
  164. package/dist/collection/components/content/aico-html-content/aico-html-content.css +3 -0
  165. package/dist/collection/components/content/aico-html-content/aico-html-content.js +52 -0
  166. package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -0
  167. package/dist/collection/components/content/aico-link-content/aico-link-content.css +37 -0
  168. package/dist/collection/components/content/aico-link-content/aico-link-content.js +68 -0
  169. package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -0
  170. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +59 -0
  171. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -0
  172. package/dist/collection/components/content/aico-news-content/aico-news-content.css +11 -0
  173. package/dist/collection/components/content/aico-news-content/aico-news-content.js +79 -0
  174. package/dist/collection/components/content/aico-news-content/aico-news-content.js.map +1 -0
  175. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js +43 -0
  176. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js.map +1 -0
  177. package/dist/collection/components/content/aico-no-content/aico-no-content.css +3 -0
  178. package/dist/collection/components/content/aico-no-content/aico-no-content.js +19 -0
  179. package/dist/collection/components/content/aico-no-content/aico-no-content.js.map +1 -0
  180. package/dist/collection/components/content/aico-page-content/aico-page-content.css +3 -0
  181. package/dist/collection/components/content/aico-page-content/aico-page-content.js +79 -0
  182. package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -0
  183. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +37 -0
  184. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -0
  185. package/dist/collection/components/content/aico-table-content/aico-table-content.css +21 -0
  186. package/dist/collection/components/content/aico-table-content/aico-table-content.js +73 -0
  187. package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -0
  188. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +130 -0
  189. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -0
  190. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.css +93 -0
  191. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js +51 -0
  192. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js.map +1 -0
  193. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js +23 -0
  194. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js.map +1 -0
  195. package/dist/collection/components/content/aico-text-content/aico-text-content.css +0 -0
  196. package/dist/collection/components/content/aico-text-content/aico-text-content.js +127 -0
  197. package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -0
  198. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +173 -0
  199. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -0
  200. package/dist/collection/components/content/aico-title-content/aico-title-content.css +3 -0
  201. package/dist/collection/components/content/aico-title-content/aico-title-content.js +61 -0
  202. package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -0
  203. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +28 -0
  204. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -0
  205. package/dist/collection/components/content/aico-upload-content/aico-upload-content.css +3 -0
  206. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +66 -0
  207. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -0
  208. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +39 -0
  209. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -0
  210. package/dist/collection/components/content/aico-video-content/aico-video-content.css +10 -0
  211. package/dist/collection/components/content/aico-video-content/aico-video-content.js +62 -0
  212. package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -0
  213. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +43 -0
  214. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -0
  215. package/dist/collection/model/AicoApiRequestInfo.js +13 -0
  216. package/dist/collection/model/AicoApiRequestInfo.js.map +1 -0
  217. package/dist/collection/model/Article.js +2 -0
  218. package/dist/collection/model/Article.js.map +1 -0
  219. package/dist/collection/model/Entity.js +7 -0
  220. package/dist/collection/model/Entity.js.map +1 -0
  221. package/dist/collection/model/NewsCategory.js +2 -0
  222. package/dist/collection/model/NewsCategory.js.map +1 -0
  223. package/dist/collection/model/NewsResponse.js +2 -0
  224. package/dist/collection/model/NewsResponse.js.map +1 -0
  225. package/dist/collection/model/article/ContentType.js +33 -0
  226. package/dist/collection/model/article/ContentType.js.map +1 -0
  227. package/dist/collection/model/article/Translation.js +8 -0
  228. package/dist/collection/model/article/Translation.js.map +1 -0
  229. package/dist/collection/model/article/content/AlbumContent.js +2 -0
  230. package/dist/collection/model/article/content/AlbumContent.js.map +1 -0
  231. package/dist/collection/model/article/content/AskingContent.js +21 -0
  232. package/dist/collection/model/article/content/AskingContent.js.map +1 -0
  233. package/dist/collection/model/article/content/AskingListContent.js +7 -0
  234. package/dist/collection/model/article/content/AskingListContent.js.map +1 -0
  235. package/dist/collection/model/article/content/BlockQuoteContent.js +2 -0
  236. package/dist/collection/model/article/content/BlockQuoteContent.js.map +1 -0
  237. package/dist/collection/model/article/content/BulletContent.js +2 -0
  238. package/dist/collection/model/article/content/BulletContent.js.map +1 -0
  239. package/dist/collection/model/article/content/CardContent.js +2 -0
  240. package/dist/collection/model/article/content/CardContent.js.map +1 -0
  241. package/dist/collection/model/article/content/CarouselContent.js +2 -0
  242. package/dist/collection/model/article/content/CarouselContent.js.map +1 -0
  243. package/dist/collection/model/article/content/CollectionContent.js +52 -0
  244. package/dist/collection/model/article/content/CollectionContent.js.map +1 -0
  245. package/dist/collection/model/article/content/DividerContent.js +2 -0
  246. package/dist/collection/model/article/content/DividerContent.js.map +1 -0
  247. package/dist/collection/model/article/content/DocumentContent.js +2 -0
  248. package/dist/collection/model/article/content/DocumentContent.js.map +1 -0
  249. package/dist/collection/model/article/content/FaqContent.js +12 -0
  250. package/dist/collection/model/article/content/FaqContent.js.map +1 -0
  251. package/dist/collection/model/article/content/HeadingContent.js +2 -0
  252. package/dist/collection/model/article/content/HeadingContent.js.map +1 -0
  253. package/dist/collection/model/article/content/HtmlContent.js +2 -0
  254. package/dist/collection/model/article/content/HtmlContent.js.map +1 -0
  255. package/dist/collection/model/article/content/LinkContent.js +2 -0
  256. package/dist/collection/model/article/content/LinkContent.js.map +1 -0
  257. package/dist/collection/model/article/content/NewsContent.js +19 -0
  258. package/dist/collection/model/article/content/NewsContent.js.map +1 -0
  259. package/dist/collection/model/article/content/PageContent.js +37 -0
  260. package/dist/collection/model/article/content/PageContent.js.map +1 -0
  261. package/dist/collection/model/article/content/TableContet.js +2 -0
  262. package/dist/collection/model/article/content/TableContet.js.map +1 -0
  263. package/dist/collection/model/article/content/TestimonialContent.js +2 -0
  264. package/dist/collection/model/article/content/TestimonialContent.js.map +1 -0
  265. package/dist/collection/model/article/content/TextContent.js +2 -0
  266. package/dist/collection/model/article/content/TextContent.js.map +1 -0
  267. package/dist/collection/model/article/content/TitleContent.js +2 -0
  268. package/dist/collection/model/article/content/TitleContent.js.map +1 -0
  269. package/dist/collection/model/article/content/UploadContent.js +13 -0
  270. package/dist/collection/model/article/content/UploadContent.js.map +1 -0
  271. package/dist/collection/model/article/content/VideoContent.js +2 -0
  272. package/dist/collection/model/article/content/VideoContent.js.map +1 -0
  273. package/dist/collection/model/article/content/news/NewsAlbum.js +20 -0
  274. package/dist/collection/model/article/content/news/NewsAlbum.js.map +1 -0
  275. package/dist/collection/model/article/content/news/NewsArticle.js +43 -0
  276. package/dist/collection/model/article/content/news/NewsArticle.js.map +1 -0
  277. package/dist/collection/model/article/content/news/NewsCategory.js +17 -0
  278. package/dist/collection/model/article/content/news/NewsCategory.js.map +1 -0
  279. package/dist/collection/model/article/content/news/NewsTag.js +10 -0
  280. package/dist/collection/model/article/content/news/NewsTag.js.map +1 -0
  281. package/dist/collection/utils/ConditionalRender.js +5 -0
  282. package/dist/collection/utils/ConditionalRender.js.map +1 -0
  283. package/dist/collection/utils/ConditionalWrap.js +5 -0
  284. package/dist/collection/utils/ConditionalWrap.js.map +1 -0
  285. package/dist/collection/utils/utils.js +83 -2
  286. package/dist/collection/utils/utils.js.map +1 -1
  287. package/dist/collection/utils/utils.spec.js +4 -14
  288. package/dist/collection/utils/utils.spec.js.map +1 -1
  289. package/dist/components/ConditionalRender.js +7 -0
  290. package/dist/components/ConditionalRender.js.map +1 -0
  291. package/dist/components/aico-album-content.d.ts +11 -0
  292. package/dist/components/aico-album-content.js +8 -0
  293. package/dist/components/aico-album-content.js.map +1 -0
  294. package/dist/components/aico-album-content2.js +90 -0
  295. package/dist/components/aico-album-content2.js.map +1 -0
  296. package/dist/components/aico-article-detail.d.ts +11 -0
  297. package/dist/components/aico-article-detail.js +8 -0
  298. package/dist/components/aico-article-detail.js.map +1 -0
  299. package/dist/components/aico-article-detail2.js +262 -0
  300. package/dist/components/aico-article-detail2.js.map +1 -0
  301. package/dist/components/aico-asking-content.d.ts +11 -0
  302. package/dist/components/aico-asking-content.js +8 -0
  303. package/dist/components/aico-asking-content.js.map +1 -0
  304. package/dist/components/aico-asking-content2.js +36 -0
  305. package/dist/components/aico-asking-content2.js.map +1 -0
  306. package/dist/components/aico-asking-list-content.d.ts +11 -0
  307. package/dist/components/aico-asking-list-content.js +34 -0
  308. package/dist/components/aico-asking-list-content.js.map +1 -0
  309. package/dist/components/aico-block-quote-content.d.ts +11 -0
  310. package/dist/components/aico-block-quote-content.js +8 -0
  311. package/dist/components/aico-block-quote-content.js.map +1 -0
  312. package/dist/components/aico-block-quote-content2.js +36 -0
  313. package/dist/components/aico-block-quote-content2.js.map +1 -0
  314. package/dist/components/aico-bullet-content.d.ts +11 -0
  315. package/dist/components/aico-bullet-content.js +8 -0
  316. package/dist/components/aico-bullet-content.js.map +1 -0
  317. package/dist/components/aico-bullet-content2.js +78 -0
  318. package/dist/components/aico-bullet-content2.js.map +1 -0
  319. package/dist/components/aico-carousel-content.d.ts +11 -0
  320. package/dist/components/aico-carousel-content.js +8 -0
  321. package/dist/components/aico-carousel-content.js.map +1 -0
  322. package/dist/components/aico-carousel-content2.js +76 -0
  323. package/dist/components/aico-carousel-content2.js.map +1 -0
  324. package/dist/components/aico-collection-content.d.ts +11 -0
  325. package/dist/components/aico-collection-content.js +34 -0
  326. package/dist/components/aico-collection-content.js.map +1 -0
  327. package/dist/components/aico-content-card-content.d.ts +11 -0
  328. package/dist/components/aico-content-card-content.js +8 -0
  329. package/dist/components/aico-content-card-content.js.map +1 -0
  330. package/dist/components/aico-content-card-content2.js +61 -0
  331. package/dist/components/aico-content-card-content2.js.map +1 -0
  332. package/dist/components/aico-divider-content.d.ts +11 -0
  333. package/dist/components/aico-divider-content.js +8 -0
  334. package/dist/components/aico-divider-content.js.map +1 -0
  335. package/dist/components/aico-divider-content2.js +36 -0
  336. package/dist/components/aico-divider-content2.js.map +1 -0
  337. package/dist/components/aico-document-content.d.ts +11 -0
  338. package/dist/components/aico-document-content.js +8 -0
  339. package/dist/components/aico-document-content.js.map +1 -0
  340. package/dist/components/aico-document-content2.js +60 -0
  341. package/dist/components/aico-document-content2.js.map +1 -0
  342. package/dist/components/aico-faq-content.d.ts +11 -0
  343. package/dist/components/aico-faq-content.js +8 -0
  344. package/dist/components/aico-faq-content.js.map +1 -0
  345. package/dist/components/aico-faq-content2.js +41 -0
  346. package/dist/components/aico-faq-content2.js.map +1 -0
  347. package/dist/components/aico-fetch-article-detail.d.ts +11 -0
  348. package/dist/components/aico-fetch-article-detail.js +195 -0
  349. package/dist/components/aico-fetch-article-detail.js.map +1 -0
  350. package/dist/components/aico-heading-content.d.ts +11 -0
  351. package/dist/components/aico-heading-content.js +8 -0
  352. package/dist/components/aico-heading-content.js.map +1 -0
  353. package/dist/components/aico-heading-content2.js +80 -0
  354. package/dist/components/aico-heading-content2.js.map +1 -0
  355. package/dist/components/aico-html-content.d.ts +11 -0
  356. package/dist/components/aico-html-content.js +8 -0
  357. package/dist/components/aico-html-content.js.map +1 -0
  358. package/dist/components/aico-html-content2.js +45 -0
  359. package/dist/components/aico-html-content2.js.map +1 -0
  360. package/dist/components/aico-link-content.d.ts +11 -0
  361. package/dist/components/aico-link-content.js +8 -0
  362. package/dist/components/aico-link-content.js.map +1 -0
  363. package/dist/components/aico-link-content2.js +55 -0
  364. package/dist/components/aico-link-content2.js.map +1 -0
  365. package/dist/components/aico-news-content.d.ts +11 -0
  366. package/dist/components/aico-news-content.js +8 -0
  367. package/dist/components/aico-news-content.js.map +1 -0
  368. package/dist/components/aico-news-content2.js +43 -0
  369. package/dist/components/aico-news-content2.js.map +1 -0
  370. package/dist/components/aico-news-list-item.d.ts +11 -0
  371. package/dist/components/aico-news-list-item.js +8 -0
  372. package/dist/components/aico-news-list-item.js.map +1 -0
  373. package/dist/components/aico-news-list-item2.js +39 -0
  374. package/dist/components/aico-news-list-item2.js.map +1 -0
  375. package/dist/components/{my-component.d.ts → aico-news-list.d.ts} +4 -4
  376. package/dist/components/aico-news-list.js +118 -0
  377. package/dist/components/aico-news-list.js.map +1 -0
  378. package/dist/components/aico-no-content.d.ts +11 -0
  379. package/dist/components/aico-no-content.js +8 -0
  380. package/dist/components/aico-no-content.js.map +1 -0
  381. package/dist/components/aico-no-content2.js +31 -0
  382. package/dist/components/aico-no-content2.js.map +1 -0
  383. package/dist/components/aico-page-content.d.ts +11 -0
  384. package/dist/components/aico-page-content.js +8 -0
  385. package/dist/components/aico-page-content.js.map +1 -0
  386. package/dist/components/aico-page-content2.js +43 -0
  387. package/dist/components/aico-page-content2.js.map +1 -0
  388. package/dist/components/aico-special-news-carousel.d.ts +11 -0
  389. package/dist/components/aico-special-news-carousel.js +78 -0
  390. package/dist/components/aico-special-news-carousel.js.map +1 -0
  391. package/dist/components/aico-table-content.d.ts +11 -0
  392. package/dist/components/aico-table-content.js +8 -0
  393. package/dist/components/aico-table-content.js.map +1 -0
  394. package/dist/components/aico-table-content2.js +72 -0
  395. package/dist/components/aico-table-content2.js.map +1 -0
  396. package/dist/components/aico-testimonial-content.d.ts +11 -0
  397. package/dist/components/aico-testimonial-content.js +8 -0
  398. package/dist/components/aico-testimonial-content.js.map +1 -0
  399. package/dist/components/aico-testimonial-content2.js +38 -0
  400. package/dist/components/aico-testimonial-content2.js.map +1 -0
  401. package/dist/components/aico-text-content.d.ts +11 -0
  402. package/dist/components/aico-text-content.js +8 -0
  403. package/dist/components/aico-text-content.js.map +1 -0
  404. package/dist/components/aico-text-content2.js +125 -0
  405. package/dist/components/aico-text-content2.js.map +1 -0
  406. package/dist/components/aico-title-content.d.ts +11 -0
  407. package/dist/components/aico-title-content.js +8 -0
  408. package/dist/components/aico-title-content.js.map +1 -0
  409. package/dist/components/aico-title-content2.js +54 -0
  410. package/dist/components/aico-title-content2.js.map +1 -0
  411. package/dist/components/aico-upload-content.d.ts +11 -0
  412. package/dist/components/aico-upload-content.js +8 -0
  413. package/dist/components/aico-upload-content.js.map +1 -0
  414. package/dist/components/aico-upload-content2.js +65 -0
  415. package/dist/components/aico-upload-content2.js.map +1 -0
  416. package/dist/components/aico-video-content.d.ts +11 -0
  417. package/dist/components/aico-video-content.js +8 -0
  418. package/dist/components/aico-video-content.js.map +1 -0
  419. package/dist/components/aico-video-content2.js +61 -0
  420. package/dist/components/aico-video-content2.js.map +1 -0
  421. package/dist/components/assets/slick/ajax-loader.gif +0 -0
  422. package/dist/components/assets/slick/slick.eot +0 -0
  423. package/dist/components/assets/slick/slick.svg +14 -0
  424. package/dist/components/assets/slick/slick.ttf +0 -0
  425. package/dist/components/assets/slick/slick.woff +0 -0
  426. package/dist/components/bootstrap.esm.js +6265 -0
  427. package/dist/components/bootstrap.esm.js.map +1 -0
  428. package/dist/components/slick.js +13660 -0
  429. package/dist/components/slick.js.map +1 -0
  430. package/dist/components/utils.js +92 -0
  431. package/dist/components/utils.js.map +1 -0
  432. package/dist/esm/aico-album-content_19.entry.js +6882 -0
  433. package/dist/esm/aico-album-content_19.entry.js.map +1 -0
  434. package/dist/esm/aico-article-detail.entry.js +120 -0
  435. package/dist/esm/aico-article-detail.entry.js.map +1 -0
  436. package/dist/esm/aico-asking-list-content.entry.js +17 -0
  437. package/dist/esm/aico-asking-list-content.entry.js.map +1 -0
  438. package/dist/esm/aico-collection-content.entry.js +17 -0
  439. package/dist/esm/aico-collection-content.entry.js.map +1 -0
  440. package/dist/esm/aico-components.js +3 -3
  441. package/dist/esm/aico-fetch-article-detail.entry.js +40 -0
  442. package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -0
  443. package/dist/esm/aico-news-list-item.entry.js +23 -0
  444. package/dist/esm/aico-news-list-item.entry.js.map +1 -0
  445. package/dist/esm/aico-news-list.entry.js +88 -0
  446. package/dist/esm/aico-news-list.entry.js.map +1 -0
  447. package/dist/esm/aico-no-content_2.entry.js +44 -0
  448. package/dist/esm/aico-no-content_2.entry.js.map +1 -0
  449. package/dist/esm/aico-special-news-carousel.entry.js +56 -0
  450. package/dist/esm/aico-special-news-carousel.entry.js.map +1 -0
  451. package/dist/esm/{index-72708389.js → index-4621a8ba.js} +862 -29
  452. package/dist/esm/index-4621a8ba.js.map +1 -0
  453. package/dist/esm/loader.js +3 -3
  454. package/dist/esm/slick-d11cf173.js +13660 -0
  455. package/dist/esm/slick-d11cf173.js.map +1 -0
  456. package/dist/esm/utils-54ffec33.js +92 -0
  457. package/dist/esm/utils-54ffec33.js.map +1 -0
  458. package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +10 -0
  459. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +26 -0
  460. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.d.ts +7 -0
  461. package/dist/types/components/aico-news-list/aico-news-list.d.ts +21 -0
  462. package/dist/types/components/aico-news-list/aico-news-list.stories.d.ts +7 -0
  463. package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +7 -0
  464. package/dist/types/components/aico-news-list-item/aico-news-list-item.stories.d.ts +6 -0
  465. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +19 -0
  466. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.stories.d.ts +7 -0
  467. package/dist/types/components/content/aico-album-content/aico-album-content.d.ts +7 -0
  468. package/dist/types/components/content/aico-album-content/aico-album-content.stories.d.ts +5 -0
  469. package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +5 -0
  470. package/dist/types/components/content/aico-asking-list-content/aico-asking-list-content.d.ts +3 -0
  471. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +5 -0
  472. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.stories.d.ts +6 -0
  473. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +6 -0
  474. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.stories.d.ts +6 -0
  475. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +9 -0
  476. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.stories.d.ts +6 -0
  477. package/dist/types/components/content/aico-collection-content/aico-collection-content.d.ts +3 -0
  478. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +6 -0
  479. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.stories.d.ts +6 -0
  480. package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +5 -0
  481. package/dist/types/components/content/aico-divider-content/aico-divider-content.stories.d.ts +6 -0
  482. package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +5 -0
  483. package/dist/types/components/content/aico-document-content/aico-document-content.stories.d.ts +6 -0
  484. package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +6 -0
  485. package/dist/types/components/content/aico-faq-content/aico-faq-content.stories.d.ts +6 -0
  486. package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +6 -0
  487. package/dist/types/components/content/aico-heading-content/aico-heading-content.stories.d.ts +6 -0
  488. package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +5 -0
  489. package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +5 -0
  490. package/dist/types/components/content/aico-link-content/aico-link-content.stories.d.ts +7 -0
  491. package/dist/types/components/content/aico-news-content/aico-news-content.d.ts +8 -0
  492. package/dist/types/components/content/aico-news-content/aico-news-content.stories.d.ts +5 -0
  493. package/dist/types/components/content/aico-no-content/aico-no-content.d.ts +3 -0
  494. package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +7 -0
  495. package/dist/types/components/content/aico-page-content/aico-page-content.stories.d.ts +5 -0
  496. package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +6 -0
  497. package/dist/types/components/content/aico-table-content/aico-table-content.stories.d.ts +6 -0
  498. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.d.ts +5 -0
  499. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.stories.d.ts +6 -0
  500. package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +12 -0
  501. package/dist/types/components/content/aico-text-content/aico-text-content.stories.d.ts +10 -0
  502. package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +5 -0
  503. package/dist/types/components/content/aico-title-content/aico-title-content.stories.d.ts +5 -0
  504. package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +6 -0
  505. package/dist/types/components/content/aico-upload-content/aico-upload-content.stories.d.ts +5 -0
  506. package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +6 -0
  507. package/dist/types/components/content/aico-video-content/aico-video-content.stories.d.ts +7 -0
  508. package/dist/types/components.d.ts +556 -25
  509. package/dist/types/model/AicoApiRequestInfo.d.ts +6 -0
  510. package/dist/types/model/Article.d.ts +103 -0
  511. package/dist/types/model/Entity.d.ts +15 -0
  512. package/dist/types/model/NewsCategory.d.ts +14 -0
  513. package/dist/types/model/NewsResponse.d.ts +25 -0
  514. package/dist/types/model/article/ContentType.d.ts +31 -0
  515. package/dist/types/model/article/Translation.d.ts +24 -0
  516. package/dist/types/model/article/content/AlbumContent.d.ts +26 -0
  517. package/dist/types/model/article/content/AskingContent.d.ts +152 -0
  518. package/dist/types/model/article/content/AskingListContent.d.ts +17 -0
  519. package/dist/types/model/article/content/BlockQuoteContent.d.ts +11 -0
  520. package/dist/types/model/article/content/BulletContent.d.ts +14 -0
  521. package/dist/types/model/article/content/CardContent.d.ts +10 -0
  522. package/dist/types/model/article/content/CarouselContent.d.ts +12 -0
  523. package/dist/types/model/article/content/CollectionContent.d.ts +364 -0
  524. package/dist/types/model/article/content/DividerContent.d.ts +8 -0
  525. package/dist/types/model/article/content/DocumentContent.d.ts +19 -0
  526. package/dist/types/model/article/content/FaqContent.d.ts +106 -0
  527. package/dist/types/model/article/content/HeadingContent.d.ts +16 -0
  528. package/dist/types/model/article/content/HtmlContent.d.ts +5 -0
  529. package/dist/types/model/article/content/LinkContent.d.ts +23 -0
  530. package/dist/types/model/article/content/NewsContent.d.ts +836 -0
  531. package/dist/types/model/article/content/PageContent.d.ts +313 -0
  532. package/dist/types/model/article/content/TableContet.d.ts +30 -0
  533. package/dist/types/model/article/content/TestimonialContent.d.ts +9 -0
  534. package/dist/types/model/article/content/TextContent.d.ts +39 -0
  535. package/dist/types/model/article/content/TitleContent.d.ts +9 -0
  536. package/dist/types/model/article/content/UploadContent.d.ts +77 -0
  537. package/dist/types/model/article/content/VideoContent.d.ts +14 -0
  538. package/dist/types/model/article/content/news/NewsAlbum.d.ts +150 -0
  539. package/dist/types/model/article/content/news/NewsArticle.d.ts +577 -0
  540. package/dist/types/model/article/content/news/NewsCategory.d.ts +88 -0
  541. package/dist/types/model/article/content/news/NewsTag.d.ts +63 -0
  542. package/dist/types/utils/ConditionalRender.d.ts +6 -0
  543. package/dist/types/utils/ConditionalWrap.d.ts +7 -0
  544. package/dist/types/utils/utils.d.ts +14 -1
  545. package/package.json +13 -4
  546. package/dist/aico-components/p-23b28a55.js +0 -3
  547. package/dist/aico-components/p-23b28a55.js.map +0 -1
  548. package/dist/aico-components/p-efd6913d.entry.js +0 -2
  549. package/dist/aico-components/p-efd6913d.entry.js.map +0 -1
  550. package/dist/cjs/index-222c33f1.js.map +0 -1
  551. package/dist/cjs/my-component.cjs.entry.js +0 -31
  552. package/dist/cjs/my-component.cjs.entry.js.map +0 -1
  553. package/dist/collection/components/my-component/my-component.e2e.js +0 -26
  554. package/dist/collection/components/my-component/my-component.e2e.js.map +0 -1
  555. package/dist/collection/components/my-component/my-component.js +0 -83
  556. package/dist/collection/components/my-component/my-component.js.map +0 -1
  557. package/dist/collection/components/my-component/my-component.spec.js +0 -35
  558. package/dist/collection/components/my-component/my-component.spec.js.map +0 -1
  559. package/dist/collection/components/my-component/my-component.stories.js +0 -13
  560. package/dist/collection/components/my-component/my-component.stories.js.map +0 -1
  561. package/dist/components/my-component.js +0 -49
  562. package/dist/components/my-component.js.map +0 -1
  563. package/dist/esm/index-72708389.js.map +0 -1
  564. package/dist/esm/my-component.entry.js +0 -27
  565. package/dist/esm/my-component.entry.js.map +0 -1
  566. package/dist/types/components/my-component/my-component.d.ts +0 -16
  567. /package/dist/collection/components/{my-component/my-component.css → content/aico-collection-content/aico-collection-content.css} +0 -0
  568. /package/dist/types/components/{my-component/my-component.stories.d.ts → content/aico-asking-content/aico-asking-content.stories.d.ts} +0 -0
@@ -0,0 +1,39 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ const aicoNewsListItemCss = "";
4
+
5
+ const AicoNewsListItem = /*@__PURE__*/ proxyCustomElement(class AicoNewsListItem extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.articleClick = createEvent(this, "articleClick", 7);
10
+ this.article = undefined;
11
+ }
12
+ render() {
13
+ var _a, _b;
14
+ return (h("div", { class: "card h-100 pe-auto", style: { cursor: 'pointer' }, onClick: () => {
15
+ var _a;
16
+ (_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(this.article);
17
+ } }, h("div", { class: "ratio ratio-4x3 mb-3" }, h("img", { class: "card-img-top w-100 object-fit-cover", style: { 'min-height': '15rem' }, alt: "Article image", src: (_b = (_a = this.article.attributes.optimizedListImage) !== null && _a !== void 0 ? _a : this.article.attributes.optimizedImage) !== null && _b !== void 0 ? _b : this.article.attributes.image })), h("div", { class: "card-img-overlay d-flex justify-content-end" }), h("div", { class: "card-body" }, h("h5", { class: "card-title" }, this.article.attributes.name), h("p", { class: "card-text" }, this.article.attributes.excerpt))));
18
+ }
19
+ static get style() { return aicoNewsListItemCss; }
20
+ }, [2, "aico-news-list-item", {
21
+ "article": [16]
22
+ }]);
23
+ function defineCustomElement() {
24
+ if (typeof customElements === "undefined") {
25
+ return;
26
+ }
27
+ const components = ["aico-news-list-item"];
28
+ components.forEach(tagName => { switch (tagName) {
29
+ case "aico-news-list-item":
30
+ if (!customElements.get(tagName)) {
31
+ customElements.define(tagName, AicoNewsListItem);
32
+ }
33
+ break;
34
+ } });
35
+ }
36
+
37
+ export { AicoNewsListItem as A, defineCustomElement as d };
38
+
39
+ //# sourceMappingURL=aico-news-list-item2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-news-list-item2.js","mappings":";;AAAA,MAAM,mBAAmB,GAAG,EAAE;;MCQjB,gBAAgB;;;;;;;IAK3B,MAAM;;QACJ,QACE,WACE,KAAK,EAAC,oBAAoB,EAC1B,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAC5B,OAAO,EAAE;;gBACP,MAAA,IAAI,CAAC,YAAY,0CAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACvC,IAED,WAAK,KAAK,EAAC,sBAAsB,IAC/B,WACE,KAAK,EAAC,qCAAqC,EAC3C,KAAK,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,EAChC,GAAG,EAAC,eAAe,EACnB,GAAG,EAAE,MAAA,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,mCAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,mCAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,GAC1H,CACE,EACN,WAAK,KAAK,EAAC,6CAA6C,GAA0C,EAClG,WAAK,KAAK,EAAC,WAAW,IACpB,UAAI,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAM,EAC1D,SAAG,KAAK,EAAC,WAAW,IAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAK,CACtD,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/aico-news-list-item/aico-news-list-item.css?tag=aico-news-list-item&encapsulation=scoped","src/components/aico-news-list-item/aico-news-list-item.tsx"],"sourcesContent":["","import { Component, Prop, Event, EventEmitter, h } from '@stencil/core';\nimport { Article } from '../../model/Article';\n\n@Component({\n tag: 'aico-news-list-item',\n styleUrl: 'aico-news-list-item.css',\n scoped: true,\n})\nexport class AicoNewsListItem {\n @Prop() article!: Article;\n\n @Event() articleClick?: EventEmitter<Article>;\n\n render() {\n return (\n <div\n class=\"card h-100 pe-auto\"\n style={{ cursor: 'pointer' }}\n onClick={() => {\n this.articleClick?.emit(this.article);\n }}\n >\n <div class=\"ratio ratio-4x3 mb-3\">\n <img\n class=\"card-img-top w-100 object-fit-cover\"\n style={{ 'min-height': '15rem' }}\n alt=\"Article image\"\n src={this.article.attributes.optimizedListImage ?? this.article.attributes.optimizedImage ?? this.article.attributes.image}\n />\n </div>\n <div class=\"card-img-overlay d-flex justify-content-end\">{/*TODO: set the date top-right?*/}</div>\n <div class=\"card-body\">\n <h5 class=\"card-title\">{this.article.attributes.name}</h5>\n <p class=\"card-text\">{this.article.attributes.excerpt}</p>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface MyComponent extends Components.MyComponent, HTMLElement {}
4
- export const MyComponent: {
5
- prototype: MyComponent;
6
- new (): MyComponent;
3
+ interface AicoNewsList extends Components.AicoNewsList, HTMLElement {}
4
+ export const AicoNewsList: {
5
+ prototype: AicoNewsList;
6
+ new (): AicoNewsList;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1,118 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { d as fetchNewsArticles } from './utils.js';
3
+ import { d as defineCustomElement$2 } from './aico-news-list-item2.js';
4
+
5
+ const aicoNewsListCss = "";
6
+
7
+ const AicoNewsList$1 = /*@__PURE__*/ proxyCustomElement(class AicoNewsList extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.articleClick = createEvent(this, "articleClick", 7);
12
+ this.pageSize = 16;
13
+ this.newsResponse = undefined;
14
+ this.pageNumber = 1;
15
+ this.aicoUrl = undefined;
16
+ this.aicoBearerToken = undefined;
17
+ this.nextButtonText = 'Next';
18
+ this.previousButtonText = 'Previous';
19
+ }
20
+ connectedCallback() {
21
+ this.newsListFetchController = new AbortController();
22
+ this.pageNumber = 1;
23
+ this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
24
+ }
25
+ disconnectedCallback() {
26
+ this.newsListFetchController.abort('disconnected');
27
+ }
28
+ async componentWillLoad() {
29
+ this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal);
30
+ }
31
+ async componentWillUpdate() {
32
+ this.newsListFetchController = new AbortController();
33
+ this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal);
34
+ }
35
+ render() {
36
+ var _a, _b, _c;
37
+ return (h(Host, null, h("div", { class: "row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4 mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.map(article => (h("div", { class: "col" }, h("aico-news-list-item", { article: article, onArticleClick: e => {
38
+ var _a;
39
+ (_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
40
+ } }))))), h("nav", { class: "w-100", "aria-label": "News navigation" }, h("ul", { class: "pagination justify-content-center" }, h("li", { class: `page-item page-link user-select-none d-flex align-items-center ${!((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.links.prev) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
41
+ if (this.pageNumber > 1) {
42
+ this.pageNumber -= 1;
43
+ }
44
+ return false;
45
+ } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-left me-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, h("path", { "fill-rule": "evenodd", d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0" })), this.previousButtonText), this.getViewablePages().map(page => (h("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
46
+ if (page !== '...') {
47
+ this.pageNumber = Number(page);
48
+ }
49
+ return false;
50
+ } }, page))), h("li", { class: `page-item page-link user-select-none d-flex align-items-center ${!((_c = this.newsResponse) === null || _c === void 0 ? void 0 : _c.links.next) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
51
+ var _a, _b;
52
+ if (((_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.meta.page.lastPage) && this.pageNumber < ((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.meta.page.lastPage)) {
53
+ this.pageNumber += 1;
54
+ }
55
+ } }, this.nextButtonText, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-right ms-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, h("path", { "fill-rule": "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708" })))))));
56
+ }
57
+ getViewablePages(lookAhead = 2) {
58
+ var _a, _b, _c, _d, _e, _f, _g;
59
+ const pages = [];
60
+ if (this.pageNumber - lookAhead >= 2) {
61
+ pages.push('1');
62
+ }
63
+ if (this.pageNumber - lookAhead > 2) {
64
+ pages.push('...');
65
+ }
66
+ for (let i = this.pageNumber - lookAhead; i < this.pageNumber; i += 1) {
67
+ if (i >= 1) {
68
+ pages.push(`${i}`);
69
+ }
70
+ }
71
+ pages.push(`${this.pageNumber}`);
72
+ for (let i = this.pageNumber + 1; i <= this.pageNumber + lookAhead; i += 1) {
73
+ if (i <= ((_b = (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.meta.page.lastPage) !== null && _b !== void 0 ? _b : 0)) {
74
+ pages.push(`${i}`);
75
+ }
76
+ }
77
+ if (this.pageNumber + lookAhead < ((_d = (_c = this.newsResponse) === null || _c === void 0 ? void 0 : _c.meta.page.lastPage) !== null && _d !== void 0 ? _d : 0) - 1) {
78
+ pages.push('...');
79
+ }
80
+ if (this.pageNumber + lookAhead <= ((_f = (_e = this.newsResponse) === null || _e === void 0 ? void 0 : _e.meta.page.lastPage) !== null && _f !== void 0 ? _f : 0) - 1) {
81
+ pages.push(`${(_g = this.newsResponse) === null || _g === void 0 ? void 0 : _g.meta.page.lastPage}`);
82
+ }
83
+ return pages;
84
+ }
85
+ static get style() { return aicoNewsListCss; }
86
+ }, [2, "aico-news-list", {
87
+ "aicoUrl": [1, "aico-url"],
88
+ "aicoBearerToken": [1, "aico-bearer-token"],
89
+ "nextButtonText": [1, "next-button-text"],
90
+ "previousButtonText": [1, "previous-button-text"],
91
+ "newsResponse": [32],
92
+ "pageNumber": [32]
93
+ }]);
94
+ function defineCustomElement$1() {
95
+ if (typeof customElements === "undefined") {
96
+ return;
97
+ }
98
+ const components = ["aico-news-list", "aico-news-list-item"];
99
+ components.forEach(tagName => { switch (tagName) {
100
+ case "aico-news-list":
101
+ if (!customElements.get(tagName)) {
102
+ customElements.define(tagName, AicoNewsList$1);
103
+ }
104
+ break;
105
+ case "aico-news-list-item":
106
+ if (!customElements.get(tagName)) {
107
+ defineCustomElement$2();
108
+ }
109
+ break;
110
+ } });
111
+ }
112
+
113
+ const AicoNewsList = AicoNewsList$1;
114
+ const defineCustomElement = defineCustomElement$1;
115
+
116
+ export { AicoNewsList, defineCustomElement };
117
+
118
+ //# sourceMappingURL=aico-news-list.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-news-list.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,EAAE;;MCWbA,cAAY;;;;;QACN,aAAQ,GAAG,EAAE,CAAC;;0BAIT,CAAC;;;8BAMU,MAAM;kCAEF,UAAU;;IAO/C,iBAAiB;QACf,IAAI,CAAC,uBAAuB,GAAG,IAAI,eAAe,EAAE,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QAEpB,IAAI,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC;KACzE;IAED,oBAAoB;QAClB,IAAI,CAAC,uBAAwB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;KACrD;IAED,MAAM,iBAAiB;QACrB,IAAI,CAAC,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,GAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,uBAAwB,CAAC,MAAM,CAAC,CAAC;KAC9H;IAED,MAAM,mBAAmB;QACvB,IAAI,CAAC,uBAAuB,GAAG,IAAI,eAAe,EAAE,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,GAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IA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AicoNewsList"],"sources":["src/components/aico-news-list/aico-news-list.css?tag=aico-news-list&encapsulation=scoped","src/components/aico-news-list/aico-news-list.tsx"],"sourcesContent":["","import { Component, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\nimport { fetchNewsArticles } from '../../utils/utils';\nimport { NewsResponse } from '../../model/NewsResponse';\nimport { AicoApiRequestInfo } from '../../model/AicoApiRequestInfo';\nimport { Article } from '../../model/Article';\n\n@Component({\n tag: 'aico-news-list',\n styleUrl: 'aico-news-list.css',\n scoped: true,\n})\nexport class AicoNewsList {\n private readonly pageSize = 16;\n\n @State() newsResponse?: NewsResponse;\n\n @State() pageNumber = 1;\n\n @Prop() aicoUrl!: string;\n\n @Prop() aicoBearerToken!: string;\n\n @Prop() nextButtonText: string = 'Next';\n\n @Prop() previousButtonText: string = 'Previous';\n\n @Event() articleClick?: EventEmitter<Article>;\n\n private api?: AicoApiRequestInfo;\n private newsListFetchController?: AbortController;\n\n connectedCallback() {\n this.newsListFetchController = new AbortController();\n this.pageNumber = 1;\n\n this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };\n }\n\n disconnectedCallback() {\n this.newsListFetchController!.abort('disconnected');\n }\n\n async componentWillLoad(): Promise<void> {\n this.newsResponse = await fetchNewsArticles(this.api!, this.pageNumber, this.pageSize, this.newsListFetchController!.signal);\n }\n\n async componentWillUpdate(): Promise<void> {\n this.newsListFetchController = new AbortController();\n this.newsResponse = await fetchNewsArticles(this.api!, this.pageNumber, this.pageSize, this.newsListFetchController.signal);\n }\n\n render() {\n return (\n <Host>\n <div class=\"row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4 mb-4\">\n {this.newsResponse?.data.map(article => (\n <div class=\"col\">\n <aico-news-list-item\n article={article}\n onArticleClick={e => {\n this.articleClick?.emit(e.detail);\n }}\n />\n </div>\n ))}\n </div>\n <nav class=\"w-100\" aria-label=\"News navigation\">\n <ul class=\"pagination justify-content-center\">\n <li\n class={`page-item page-link user-select-none d-flex align-items-center ${!this.newsResponse?.links.prev ? 'disabled' : ''}`}\n style={{ cursor: 'pointer' }}\n onClick={() => {\n if (this.pageNumber > 1) {\n this.pageNumber -= 1;\n }\n\n return false;\n }}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" class=\"bi bi-chevron-left me-1 fs-4\" style={{ width: '1em', height: '1em' }} viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0\" />\n </svg>\n {this.previousButtonText}\n </li>\n {this.getViewablePages().map(page => (\n <li\n class={`page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`}\n style={{ cursor: 'pointer' }}\n onClick={() => {\n if (page !== '...') {\n this.pageNumber = Number(page);\n }\n return false;\n }}\n >\n {page}\n </li>\n ))}\n <li\n class={`page-item page-link user-select-none d-flex align-items-center ${!this.newsResponse?.links.next ? 'disabled' : ''}`}\n style={{ cursor: 'pointer' }}\n onClick={() => {\n if (this.newsResponse?.meta.page.lastPage && this.pageNumber < this.newsResponse?.meta.page.lastPage) {\n this.pageNumber += 1;\n }\n }}\n >\n {this.nextButtonText}\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" class=\"bi bi-chevron-right ms-1 fs-4\" style={{ width: '1em', height: '1em' }} viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708\" />\n </svg>\n </li>\n </ul>\n </nav>\n </Host>\n );\n }\n\n private getViewablePages(lookAhead: number = 2) {\n const pages: string[] = [];\n if (this.pageNumber - lookAhead >= 2) {\n pages.push('1');\n }\n\n if (this.pageNumber - lookAhead > 2) {\n pages.push('...');\n }\n\n for (let i = this.pageNumber - lookAhead; i < this.pageNumber; i += 1) {\n if (i >= 1) {\n pages.push(`${i}`);\n }\n }\n\n pages.push(`${this.pageNumber}`);\n for (let i = this.pageNumber + 1; i <= this.pageNumber + lookAhead; i += 1) {\n if (i <= (this.newsResponse?.meta.page.lastPage ?? 0)) {\n pages.push(`${i}`);\n }\n }\n\n if (this.pageNumber + lookAhead < (this.newsResponse?.meta.page.lastPage ?? 0) - 1) {\n pages.push('...');\n }\n\n if (this.pageNumber + lookAhead <= (this.newsResponse?.meta.page.lastPage ?? 0) - 1) {\n pages.push(`${this.newsResponse?.meta.page.lastPage}`);\n }\n\n return pages;\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoNoContent extends Components.AicoNoContent, HTMLElement {}
4
+ export const AicoNoContent: {
5
+ prototype: AicoNoContent;
6
+ new (): AicoNoContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoNoContent$1, d as defineCustomElement$1 } from './aico-no-content2.js';
2
+
3
+ const AicoNoContent = AicoNoContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoNoContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-no-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-no-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,31 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const aicoNoContentCss = ".sc-aico-no-content-h{display:block}";
4
+
5
+ const AicoNoContent = /*@__PURE__*/ proxyCustomElement(class AicoNoContent extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ }
10
+ render() {
11
+ return (h("div", null, h("span", null, "The content cannot be rendered because it is either malformed or not supported.")));
12
+ }
13
+ static get style() { return aicoNoContentCss; }
14
+ }, [2, "aico-no-content"]);
15
+ function defineCustomElement() {
16
+ if (typeof customElements === "undefined") {
17
+ return;
18
+ }
19
+ const components = ["aico-no-content"];
20
+ components.forEach(tagName => { switch (tagName) {
21
+ case "aico-no-content":
22
+ if (!customElements.get(tagName)) {
23
+ customElements.define(tagName, AicoNoContent);
24
+ }
25
+ break;
26
+ } });
27
+ }
28
+
29
+ export { AicoNoContent as A, defineCustomElement as d };
30
+
31
+ //# sourceMappingURL=aico-no-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-no-content2.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,sCAAsC;;MCOlD,aAAa;;;;;IACxB,MAAM;QACJ,QACE,eACE,kGAA4F,CACxF,EACN;KACH;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-no-content/aico-no-content.css?tag=aico-no-content&encapsulation=scoped","src/components/content/aico-no-content/aico-no-content.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoPageContent extends Components.AicoPageContent, HTMLElement {}
4
+ export const AicoPageContent: {
5
+ prototype: AicoPageContent;
6
+ new (): AicoPageContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoPageContent$1, d as defineCustomElement$1 } from './aico-page-content2.js';
2
+
3
+ const AicoPageContent = AicoPageContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoPageContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-page-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-page-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,43 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { s as strIsNullOrEmptyOrWhitespace } from './utils.js';
3
+ import { C as ConditionalRender } from './ConditionalRender.js';
4
+
5
+ const aicoPageContentCss = ".sc-aico-page-content-h{display:block}";
6
+
7
+ const AicoPageContent = /*@__PURE__*/ proxyCustomElement(class AicoPageContent extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.pageClicked = createEvent(this, "pageClicked", 7);
12
+ this.content = undefined;
13
+ }
14
+ render() {
15
+ var _a, _b, _c, _d;
16
+ const translation = this.content.landingPage.translations.length > 0 ? this.content.landingPage.translations[0] : null;
17
+ 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 => {
18
+ var _a;
19
+ e.preventDefault();
20
+ (_a = this.pageClicked) === null || _a === void 0 ? void 0 : _a.emit(this.content);
21
+ } }, (_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))))));
22
+ }
23
+ static get style() { return aicoPageContentCss; }
24
+ }, [2, "aico-page-content", {
25
+ "content": [16]
26
+ }]);
27
+ function defineCustomElement() {
28
+ if (typeof customElements === "undefined") {
29
+ return;
30
+ }
31
+ const components = ["aico-page-content"];
32
+ components.forEach(tagName => { switch (tagName) {
33
+ case "aico-page-content":
34
+ if (!customElements.get(tagName)) {
35
+ customElements.define(tagName, AicoPageContent);
36
+ }
37
+ break;
38
+ } });
39
+ }
40
+
41
+ export { AicoPageContent as A, defineCustomElement as d };
42
+
43
+ //# sourceMappingURL=aico-page-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-page-content2.js","mappings":";;;;AAAA,MAAM,kBAAkB,GAAG,wCAAwC;;MCUtD,eAAe;;;;;;;IAK1B,MAAM;;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;QACvH,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,IACnC,WAAK,KAAK,EAAC,cAAc,IACvB,WAAK,KAAK,EAAC,iBAAiB,IAC1B,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,EACN,WAAK,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,IACpD,UAAI,KAAK,EAAC,YAAY,IAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAM,EAC/C,EAAC,iBAAiB,IAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,gBAAgB,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IACrH,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,EACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,IAC1D,SACE,IAAI,EAAC,GAAG,EACR,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,CAAC;;gBACR,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACtC,IAEA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,mCAAI,kBAAkB,CAC5C,CACc,CAChB,EACN,EAAC,iBAAiB,IAAC,SAAS,EAAE,WAAW,KAAK,IAAI,IAAI,CAAC,4BAA4B,CAAC,WAAW,CAAC,OAAO,CAAC,IACtG,WAAK,KAAK,EAAC,aAAa,IACtB,aAAO,KAAK,EAAC,YAAY,IAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAS,CACpD,CACY,CAChB,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-page-content/aico-page-content.css?tag=aico-page-content&encapsulation=scoped","src/components/content/aico-page-content/aico-page-content.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoSpecialNewsCarousel extends Components.AicoSpecialNewsCarousel, HTMLElement {}
4
+ export const AicoSpecialNewsCarousel: {
5
+ prototype: AicoSpecialNewsCarousel;
6
+ new (): AicoSpecialNewsCarousel;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,78 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { e as fetchSpecialNewsArticles } from './utils.js';
3
+ import { j as jquery } from './slick.js';
4
+
5
+ const aicoSpecialNewsCarouselCss = ".slick-slide.sc-aico-special-news-carousel>div.sc-aico-special-news-carousel{height:100% !important}";
6
+
7
+ const AicoSpecialNewsCarousel$1 = /*@__PURE__*/ proxyCustomElement(class AicoSpecialNewsCarousel extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.articleClicked = createEvent(this, "articleClicked", 7);
12
+ this.newsResponse = undefined;
13
+ this.aicoUrl = undefined;
14
+ this.aicoBearerToken = undefined;
15
+ this.numberOfArticles = 6;
16
+ }
17
+ connectedCallback() {
18
+ this.newsListFetchController = new AbortController();
19
+ this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
20
+ }
21
+ disconnectedCallback() {
22
+ this.newsListFetchController.abort('disconnected');
23
+ }
24
+ async componentWillLoad() {
25
+ this.newsResponse = await fetchSpecialNewsArticles(this.api, 1, this.numberOfArticles, this.newsListFetchController.signal);
26
+ }
27
+ async componentWillUpdate() {
28
+ this.newsListFetchController = new AbortController();
29
+ this.newsResponse = await fetchSpecialNewsArticles(this.api, 1, this.numberOfArticles, this.newsListFetchController.signal);
30
+ }
31
+ componentDidLoad() {
32
+ jquery('.carousel').slick({
33
+ autoplay: true,
34
+ autoplaySpeed: 6000,
35
+ dots: true,
36
+ arrows: false,
37
+ pauseOnDotsHover: true,
38
+ });
39
+ }
40
+ render() {
41
+ return (h("div", { class: "carousel" }, this.newsResponse.data.map(article => {
42
+ var _a;
43
+ const focusX = article.attributes.focusXPercentage ? `${article.attributes.focusXPercentage}%` : 'center';
44
+ const focusY = article.attributes.focusYPercentage ? `${article.attributes.focusYPercentage}%` : 'center';
45
+ return (h("div", { class: "carousel-item card border-0" }, h("div", { class: "card-body" }, h("h5", { class: "card-title text-center text-uppercase" }, h("a", { class: "text-reset text-decoration-none", href: "#", onClick: e => {
46
+ var _a;
47
+ e.preventDefault();
48
+ (_a = this.articleClicked) === null || _a === void 0 ? void 0 : _a.emit(article);
49
+ } }, article.attributes.name))), h("div", { class: "ratio ratio-16x9 mx-auto", style: { 'max-width': '50%' } }, h("img", { class: "card-img-bottom object-fit-cover", style: { 'object-position': `${focusX} ${focusY}`, 'min-height': '15rem' }, alt: "News Picture", "data-lazy": (_a = article.attributes.optimizedImage) !== null && _a !== void 0 ? _a : article.attributes.image }))));
50
+ })));
51
+ }
52
+ static get style() { return aicoSpecialNewsCarouselCss; }
53
+ }, [2, "aico-special-news-carousel", {
54
+ "aicoUrl": [1, "aico-url"],
55
+ "aicoBearerToken": [1, "aico-bearer-token"],
56
+ "numberOfArticles": [2, "number-of-articles"],
57
+ "newsResponse": [32]
58
+ }]);
59
+ function defineCustomElement$1() {
60
+ if (typeof customElements === "undefined") {
61
+ return;
62
+ }
63
+ const components = ["aico-special-news-carousel"];
64
+ components.forEach(tagName => { switch (tagName) {
65
+ case "aico-special-news-carousel":
66
+ if (!customElements.get(tagName)) {
67
+ customElements.define(tagName, AicoSpecialNewsCarousel$1);
68
+ }
69
+ break;
70
+ } });
71
+ }
72
+
73
+ const AicoSpecialNewsCarousel = AicoSpecialNewsCarousel$1;
74
+ const defineCustomElement = defineCustomElement$1;
75
+
76
+ export { AicoSpecialNewsCarousel, defineCustomElement };
77
+
78
+ //# sourceMappingURL=aico-special-news-carousel.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-special-news-carousel.js","mappings":";;;;AAAA,MAAM,0BAA0B,GAAG,sGAAsG;;MCc5HA,yBAAuB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AAO,CAAC,UAAU,CAAC,gBAAgB,GAAG,GAAG,QAAQ,CAAC;YAC1G,QACE,WAAK,KAAK,EAAC,6BAA6B,IACtC,WAAK,KAAK,EAAC,WAAW,IACpB,UAAI,KAAK,EAAC,uCAAuC,IAC/C,SACE,KAAK,EAAC,iCAAiC,EACvC,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,CAAC;;oBACR,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,MAAA,IAAI,CAAC,cAAc,0CAAE,IAAI,CAAC,OAAO,CAAC,CAAC;iBACpC,IAEA,OAAO,CAAC,UAAU,CAAC,IAAI,CACtB,CACD,CACD,EACN,WAAK,KAAK,EAAC,0BAA0B,EAAC,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,IACjE,WACE,KAAK,EAAC,kCAAkC,EACxC,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,EAC1E,GAAG,EAAC,cAAc,eACP,MAAA,OAAO,CAAC,UAAU,CAAC,cAAc,mCAAI,OAAO,CAAC,UAAU,CAAC,KAAK,GACxE,CACE,CACF,EACN;SACH,CAAC,CACE,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["AicoSpecialNewsCarousel","$"],"sources":["src/components/aico-special-news-carousel/aico-special-news-carousel.css?tag=aico-special-news-carousel&encapsulation=scoped","src/components/aico-special-news-carousel/aico-special-news-carousel.tsx"],"sourcesContent":[".slick-slide > div {\n height: 100% !important;\n}\n","import { Component, Event, EventEmitter, Prop, State, h } from '@stencil/core';\nimport type { NewsResponse } from '../../model/NewsResponse';\nimport type { AicoApiRequestInfo } from '../../model/AicoApiRequestInfo';\nimport type { Article } from '../../model/Article';\nimport { fetchSpecialNewsArticles } from '../../utils/utils';\n\nimport $ from 'jquery';\nimport 'slick-carousel';\n\n@Component({\n tag: 'aico-special-news-carousel',\n styleUrl: 'aico-special-news-carousel.css',\n scoped: true,\n})\nexport class AicoSpecialNewsCarousel {\n @State() newsResponse!: NewsResponse;\n\n @Prop() aicoUrl!: string;\n\n @Prop() aicoBearerToken!: string;\n\n @Prop() numberOfArticles: number = 6;\n\n @Event() articleClicked?: EventEmitter<Article>;\n\n private api?: AicoApiRequestInfo;\n private newsListFetchController?: AbortController;\n\n connectedCallback() {\n this.newsListFetchController = new AbortController();\n this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };\n }\n\n disconnectedCallback() {\n this.newsListFetchController!.abort('disconnected');\n }\n\n async componentWillLoad(): Promise<void> {\n this.newsResponse = await fetchSpecialNewsArticles(this.api!, 1, this.numberOfArticles, this.newsListFetchController!.signal);\n }\n\n async componentWillUpdate(): Promise<void> {\n this.newsListFetchController = new AbortController();\n this.newsResponse = await fetchSpecialNewsArticles(this.api!, 1, this.numberOfArticles, this.newsListFetchController.signal);\n }\n\n componentDidLoad() {\n $('.carousel').slick({\n autoplay: true,\n autoplaySpeed: 6000,\n dots: true,\n arrows: false,\n pauseOnDotsHover: true,\n });\n }\n\n render() {\n return (\n <div class=\"carousel\">\n {this.newsResponse.data.map(article => {\n const focusX = article.attributes.focusXPercentage ? `${article.attributes.focusXPercentage}%` : 'center';\n const focusY = article.attributes.focusYPercentage ? `${article.attributes.focusYPercentage}%` : 'center';\n return (\n <div class=\"carousel-item card border-0\">\n <div class=\"card-body\">\n <h5 class=\"card-title text-center text-uppercase\">\n <a\n class=\"text-reset text-decoration-none\"\n href=\"#\"\n onClick={e => {\n e.preventDefault();\n this.articleClicked?.emit(article);\n }}\n >\n {article.attributes.name}\n </a>\n </h5>\n </div>\n <div class=\"ratio ratio-16x9 mx-auto\" style={{ 'max-width': '50%' }}>\n <img\n class=\"card-img-bottom object-fit-cover\"\n style={{ 'object-position': `${focusX} ${focusY}`, 'min-height': '15rem' }}\n alt=\"News Picture\"\n data-lazy={article.attributes.optimizedImage ?? article.attributes.image}\n />\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoTableContent extends Components.AicoTableContent, HTMLElement {}
4
+ export const AicoTableContent: {
5
+ prototype: AicoTableContent;
6
+ new (): AicoTableContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoTableContent$1, d as defineCustomElement$1 } from './aico-table-content2.js';
2
+
3
+ const AicoTableContent = AicoTableContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoTableContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-table-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-table-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,72 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { C as ConditionalRender } from './ConditionalRender.js';
3
+ import { d as defineCustomElement$2 } from './aico-no-content2.js';
4
+ import { d as defineCustomElement$1 } from './aico-title-content2.js';
5
+
6
+ const aicoTableContentCss = ".table-content.sc-aico-table-content{width:100%;overflow-x:auto;white-space:nowrap;text-align:center}.table-content.sc-aico-table-content:not([class]) td.sc-aico-table-content,.table-content.sc-aico-table-content:not([class]) th.sc-aico-table-content{padding:10px !important;border:none !important}.table-content.sc-aico-table-content th.sc-aico-table-content{font-weight:700 !important}.table-content.sc-aico-table-content td.sc-aico-table-content,.table-content.sc-aico-table-content th.sc-aico-table-content{white-space:pre-line}";
7
+
8
+ const AicoTableContent = /*@__PURE__*/ proxyCustomElement(class AicoTableContent extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.content = undefined;
13
+ }
14
+ render() {
15
+ var _a, _b;
16
+ const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
17
+ const firstBackgroundColor = (_a = this.content.firstColor) !== null && _a !== void 0 ? _a : '#d6dfe1';
18
+ const secondBackgroundColor = (_b = this.content.secondColor) !== null && _b !== void 0 ? _b : '#e6eced';
19
+ 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
20
+ .sort((a, b) => a.sort - b.sort)
21
+ .map((row, index) => {
22
+ return (h("tr", { style: { 'font-weight': '400', 'background-color': index % 2 === 0 ? firstBackgroundColor : secondBackgroundColor } }, row.rowColumns.map(col => {
23
+ const translation = col.translations.length > 0 ? col.translations[0] : null;
24
+ if (!translation) {
25
+ return row.isHeading ? h("th", null) : h("td", null);
26
+ }
27
+ return row.isHeading ? h("th", null, translation.columnData) : h("td", null, translation.columnData);
28
+ })));
29
+ })))));
30
+ }
31
+ makeTitleContent(translation) {
32
+ var _a;
33
+ return {
34
+ id: this.content.id,
35
+ createdAt: this.content.createdAt,
36
+ updatedAt: this.content.updatedAt,
37
+ hasUnderscore: false,
38
+ size: (_a = this.content.titleSize) !== null && _a !== void 0 ? _a : 'h2',
39
+ translations: [Object.assign({}, translation)],
40
+ };
41
+ }
42
+ static get style() { return aicoTableContentCss; }
43
+ }, [2, "aico-table-content", {
44
+ "content": [16]
45
+ }]);
46
+ function defineCustomElement() {
47
+ if (typeof customElements === "undefined") {
48
+ return;
49
+ }
50
+ const components = ["aico-table-content", "aico-no-content", "aico-title-content"];
51
+ components.forEach(tagName => { switch (tagName) {
52
+ case "aico-table-content":
53
+ if (!customElements.get(tagName)) {
54
+ customElements.define(tagName, AicoTableContent);
55
+ }
56
+ break;
57
+ case "aico-no-content":
58
+ if (!customElements.get(tagName)) {
59
+ defineCustomElement$2();
60
+ }
61
+ break;
62
+ case "aico-title-content":
63
+ if (!customElements.get(tagName)) {
64
+ defineCustomElement$1();
65
+ }
66
+ break;
67
+ } });
68
+ }
69
+
70
+ export { AicoTable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GAAG,CAAC,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC7E,IAAI,CAAC,WAAW,EAAE;oBAChB,OAAO,GAAG,CAAC,SAAS,GAAG,aAAS,GAAG,aAAS,CAAC;iBAC9C;gBAED,OAAO,GAAG,CAAC,SAAS,GAAG,cAAK,WAAW,CAAC,UAAU,CAAM,GAAG,cAAK,WAAW,CAAC,UAAU,CAAM,CAAC;aAC9F,CAAC,CACC,EACL;SACH,CAAC,CACE,CACJ,CACF,EACN;KACH;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;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-table-content/aico-table-content.css?tag=aico-table-content&encapsulation=scoped","src/components/content/aico-table-content/aico-table-content.tsx"],"sourcesContent":[".table-content {\n width: 100%;\n overflow-x: auto;\n white-space: nowrap;\n text-align: center;\n}\n\n.table-content:not([class]) td,\n.table-content:not([class]) th {\n padding: 10px !important;\n border: none !important;\n}\n\n.table-content th {\n font-weight: 700 !important;\n}\n\n.table-content td,\n.table-content th {\n white-space: pre-line;\n}\n","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"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoTestimonialContent extends Components.AicoTestimonialContent, HTMLElement {}
4
+ export const AicoTestimonialContent: {
5
+ prototype: AicoTestimonialContent;
6
+ new (): AicoTestimonialContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoTestimonialContent$1, d as defineCustomElement$1 } from './aico-testimonial-content2.js';
2
+
3
+ const AicoTestimonialContent = AicoTestimonialContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoTestimonialContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-testimonial-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-testimonial-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}