@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.
Files changed (593) hide show
  1. package/dist/aico-components/aico-components.css +6 -0
  2. package/dist/aico-components/aico-components.esm.js +2 -0
  3. package/dist/aico-components/aico-components.esm.js.map +1 -0
  4. package/dist/aico-components/assets/slick/ajax-loader.gif +0 -0
  5. package/dist/aico-components/assets/slick/slick.eot +0 -0
  6. package/dist/aico-components/assets/slick/slick.svg +14 -0
  7. package/dist/aico-components/assets/slick/slick.ttf +0 -0
  8. package/dist/aico-components/assets/slick/slick.woff +0 -0
  9. package/dist/aico-components/index.esm.js +2 -0
  10. package/dist/aico-components/index.esm.js.map +1 -0
  11. package/dist/aico-components/p-1a6625c0.entry.js +2 -0
  12. package/dist/aico-components/p-1a6625c0.entry.js.map +1 -0
  13. package/dist/aico-components/p-2aae1a0e.js +3 -0
  14. package/dist/aico-components/p-2aae1a0e.js.map +1 -0
  15. package/dist/aico-components/p-31666f10.js +2 -0
  16. package/dist/aico-components/p-31666f10.js.map +1 -0
  17. package/dist/aico-components/p-42b98baf.entry.js +2 -0
  18. package/dist/aico-components/p-42b98baf.entry.js.map +1 -0
  19. package/dist/aico-components/p-54708dd0.entry.js +2 -0
  20. package/dist/aico-components/p-54708dd0.entry.js.map +1 -0
  21. package/dist/aico-components/p-776352ba.entry.js +2 -0
  22. package/dist/aico-components/p-776352ba.entry.js.map +1 -0
  23. package/dist/aico-components/p-7c05cd02.entry.js +2 -0
  24. package/dist/aico-components/p-7c05cd02.entry.js.map +1 -0
  25. package/dist/aico-components/p-83655dd4.entry.js +2 -0
  26. package/dist/aico-components/p-83655dd4.entry.js.map +1 -0
  27. package/dist/aico-components/p-86c7fdc7.js +13 -0
  28. package/dist/aico-components/p-86c7fdc7.js.map +1 -0
  29. package/dist/aico-components/p-a58972e9.entry.js +7 -0
  30. package/dist/aico-components/p-a58972e9.entry.js.map +1 -0
  31. package/dist/aico-components/p-b0325a83.entry.js +2 -0
  32. package/dist/aico-components/p-b0325a83.entry.js.map +1 -0
  33. package/dist/aico-components/p-b78d7799.entry.js +2 -0
  34. package/dist/aico-components/p-b78d7799.entry.js.map +1 -0
  35. package/dist/aico-components/p-c99617a8.entry.js +2 -0
  36. package/dist/aico-components/p-c99617a8.entry.js.map +1 -0
  37. package/dist/cjs/aico-album-content_19.cjs.entry.js +6906 -0
  38. package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -0
  39. package/dist/cjs/aico-article-detail.cjs.entry.js +124 -0
  40. package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -0
  41. package/dist/cjs/aico-asking-list-content.cjs.entry.js +21 -0
  42. package/dist/cjs/aico-asking-list-content.cjs.entry.js.map +1 -0
  43. package/dist/cjs/aico-collection-content.cjs.entry.js +21 -0
  44. package/dist/cjs/aico-collection-content.cjs.entry.js.map +1 -0
  45. package/dist/cjs/aico-components.cjs.js +25 -0
  46. package/dist/cjs/aico-components.cjs.js.map +1 -0
  47. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +36 -0
  48. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -0
  49. package/dist/cjs/aico-news-list-item.cjs.entry.js +24 -0
  50. package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -0
  51. package/dist/cjs/aico-news-list.cjs.entry.js +92 -0
  52. package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -0
  53. package/dist/cjs/aico-no-content_2.cjs.entry.js +49 -0
  54. package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -0
  55. package/dist/cjs/aico-special-news-carousel.cjs.entry.js +60 -0
  56. package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -0
  57. package/dist/cjs/bootstrap-slick-test.cjs.entry.js +38 -0
  58. package/dist/cjs/bootstrap-slick-test.cjs.entry.js.map +1 -0
  59. package/dist/cjs/index-75c0e002.js +2280 -0
  60. package/dist/cjs/index-75c0e002.js.map +1 -0
  61. package/dist/cjs/index.cjs.js +4 -0
  62. package/dist/cjs/index.cjs.js.map +1 -0
  63. package/dist/cjs/loader.cjs.js +15 -0
  64. package/dist/cjs/loader.cjs.js.map +1 -0
  65. package/dist/cjs/slick-d0dfbd94.js +13662 -0
  66. package/dist/cjs/slick-d0dfbd94.js.map +1 -0
  67. package/dist/cjs/utils-406a9df3.js +92 -0
  68. package/dist/cjs/utils-406a9df3.js.map +1 -0
  69. package/dist/collection/assets/slick/ajax-loader.gif +0 -0
  70. package/dist/collection/assets/slick/slick.eot +0 -0
  71. package/dist/collection/assets/slick/slick.svg +14 -0
  72. package/dist/collection/assets/slick/slick.ttf +0 -0
  73. package/dist/collection/assets/slick/slick.woff +0 -0
  74. package/dist/collection/collection-manifest.json +40 -0
  75. package/dist/collection/components/aico-article-detail/aico-article-detail.css +0 -0
  76. package/dist/collection/components/aico-article-detail/aico-article-detail.js +117 -0
  77. package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -0
  78. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js +6 -0
  79. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js.map +1 -0
  80. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js +6 -0
  81. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js.map +1 -0
  82. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.css +0 -0
  83. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +96 -0
  84. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -0
  85. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +19 -0
  86. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -0
  87. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js +6 -0
  88. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js.map +1 -0
  89. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js +6 -0
  90. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js.map +1 -0
  91. package/dist/collection/components/aico-news-list/aico-news-list.css +113 -0
  92. package/dist/collection/components/aico-news-list/aico-news-list.js +195 -0
  93. package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -0
  94. package/dist/collection/components/aico-news-list/aico-news-list.stories.js +21 -0
  95. package/dist/collection/components/aico-news-list/aico-news-list.stories.js.map +1 -0
  96. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js +6 -0
  97. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js.map +1 -0
  98. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js +6 -0
  99. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js.map +1 -0
  100. package/dist/collection/components/aico-news-list-item/aico-news-list-item.css +0 -0
  101. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +72 -0
  102. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -0
  103. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js +61 -0
  104. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js.map +1 -0
  105. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js +6 -0
  106. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js.map +1 -0
  107. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js +6 -0
  108. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js.map +1 -0
  109. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.css +3 -0
  110. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +145 -0
  111. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -0
  112. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js +30 -0
  113. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js.map +1 -0
  114. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js +6 -0
  115. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js.map +1 -0
  116. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js +6 -0
  117. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js.map +1 -0
  118. package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.css +6 -0
  119. package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js +37 -0
  120. package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.js.map +1 -0
  121. package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js +6 -0
  122. package/dist/collection/components/bootstrap-slick-test/bootstrap-slick-test.stories.js.map +1 -0
  123. package/dist/collection/components/content/aico-album-content/aico-album-content.css +0 -0
  124. package/dist/collection/components/content/aico-album-content/aico-album-content.js +104 -0
  125. package/dist/collection/components/content/aico-album-content/aico-album-content.js.map +1 -0
  126. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js +70 -0
  127. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js.map +1 -0
  128. package/dist/collection/components/content/aico-asking-content/aico-asking-content.css +63 -0
  129. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +49 -0
  130. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -0
  131. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +37 -0
  132. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -0
  133. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.css +85 -0
  134. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js +19 -0
  135. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js.map +1 -0
  136. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.css +0 -0
  137. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +49 -0
  138. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -0
  139. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +26 -0
  140. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -0
  141. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.css +0 -0
  142. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +79 -0
  143. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -0
  144. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +71 -0
  145. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -0
  146. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.css +1 -0
  147. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +95 -0
  148. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -0
  149. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +73 -0
  150. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -0
  151. package/dist/collection/components/content/aico-collection-content/aico-collection-content.css +3 -0
  152. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js +19 -0
  153. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js.map +1 -0
  154. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.css +0 -0
  155. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +62 -0
  156. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -0
  157. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +26 -0
  158. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -0
  159. package/dist/collection/components/content/aico-divider-content/aico-divider-content.css +0 -0
  160. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +49 -0
  161. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -0
  162. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +23 -0
  163. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -0
  164. package/dist/collection/components/content/aico-document-content/aico-document-content.css +8 -0
  165. package/dist/collection/components/content/aico-document-content/aico-document-content.js +73 -0
  166. package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -0
  167. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +30 -0
  168. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -0
  169. package/dist/collection/components/content/aico-faq-content/aico-faq-content.css +0 -0
  170. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +54 -0
  171. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -0
  172. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +60 -0
  173. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -0
  174. package/dist/collection/components/content/aico-heading-content/aico-heading-content.css +36 -0
  175. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +81 -0
  176. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -0
  177. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +31 -0
  178. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -0
  179. package/dist/collection/components/content/aico-html-content/aico-html-content.css +3 -0
  180. package/dist/collection/components/content/aico-html-content/aico-html-content.js +52 -0
  181. package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -0
  182. package/dist/collection/components/content/aico-link-content/aico-link-content.css +37 -0
  183. package/dist/collection/components/content/aico-link-content/aico-link-content.js +68 -0
  184. package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -0
  185. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +59 -0
  186. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -0
  187. package/dist/collection/components/content/aico-news-content/aico-news-content.css +11 -0
  188. package/dist/collection/components/content/aico-news-content/aico-news-content.js +79 -0
  189. package/dist/collection/components/content/aico-news-content/aico-news-content.js.map +1 -0
  190. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js +43 -0
  191. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js.map +1 -0
  192. package/dist/collection/components/content/aico-no-content/aico-no-content.css +3 -0
  193. package/dist/collection/components/content/aico-no-content/aico-no-content.js +19 -0
  194. package/dist/collection/components/content/aico-no-content/aico-no-content.js.map +1 -0
  195. package/dist/collection/components/content/aico-page-content/aico-page-content.css +3 -0
  196. package/dist/collection/components/content/aico-page-content/aico-page-content.js +79 -0
  197. package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -0
  198. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +37 -0
  199. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -0
  200. package/dist/collection/components/content/aico-table-content/aico-table-content.css +21 -0
  201. package/dist/collection/components/content/aico-table-content/aico-table-content.js +73 -0
  202. package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -0
  203. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +130 -0
  204. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -0
  205. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.css +93 -0
  206. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js +51 -0
  207. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js.map +1 -0
  208. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js +23 -0
  209. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js.map +1 -0
  210. package/dist/collection/components/content/aico-text-content/aico-text-content.css +0 -0
  211. package/dist/collection/components/content/aico-text-content/aico-text-content.js +127 -0
  212. package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -0
  213. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +173 -0
  214. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -0
  215. package/dist/collection/components/content/aico-title-content/aico-title-content.css +3 -0
  216. package/dist/collection/components/content/aico-title-content/aico-title-content.js +61 -0
  217. package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -0
  218. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +28 -0
  219. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -0
  220. package/dist/collection/components/content/aico-upload-content/aico-upload-content.css +3 -0
  221. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +66 -0
  222. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -0
  223. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +39 -0
  224. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -0
  225. package/dist/collection/components/content/aico-video-content/aico-video-content.css +10 -0
  226. package/dist/collection/components/content/aico-video-content/aico-video-content.js +62 -0
  227. package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -0
  228. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +43 -0
  229. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -0
  230. package/dist/collection/components/content/content-styles.css +113 -0
  231. package/dist/collection/index.js +2 -0
  232. package/dist/collection/index.js.map +1 -0
  233. package/dist/collection/model/AicoApiRequestInfo.js +13 -0
  234. package/dist/collection/model/AicoApiRequestInfo.js.map +1 -0
  235. package/dist/collection/model/Article.js +2 -0
  236. package/dist/collection/model/Article.js.map +1 -0
  237. package/dist/collection/model/Entity.js +7 -0
  238. package/dist/collection/model/Entity.js.map +1 -0
  239. package/dist/collection/model/NewsCategory.js +2 -0
  240. package/dist/collection/model/NewsCategory.js.map +1 -0
  241. package/dist/collection/model/NewsResponse.js +2 -0
  242. package/dist/collection/model/NewsResponse.js.map +1 -0
  243. package/dist/collection/model/article/ContentType.js +33 -0
  244. package/dist/collection/model/article/ContentType.js.map +1 -0
  245. package/dist/collection/model/article/Translation.js +8 -0
  246. package/dist/collection/model/article/Translation.js.map +1 -0
  247. package/dist/collection/model/article/content/AlbumContent.js +2 -0
  248. package/dist/collection/model/article/content/AlbumContent.js.map +1 -0
  249. package/dist/collection/model/article/content/AskingContent.js +21 -0
  250. package/dist/collection/model/article/content/AskingContent.js.map +1 -0
  251. package/dist/collection/model/article/content/AskingListContent.js +7 -0
  252. package/dist/collection/model/article/content/AskingListContent.js.map +1 -0
  253. package/dist/collection/model/article/content/BlockQuoteContent.js +2 -0
  254. package/dist/collection/model/article/content/BlockQuoteContent.js.map +1 -0
  255. package/dist/collection/model/article/content/BulletContent.js +2 -0
  256. package/dist/collection/model/article/content/BulletContent.js.map +1 -0
  257. package/dist/collection/model/article/content/CardContent.js +2 -0
  258. package/dist/collection/model/article/content/CardContent.js.map +1 -0
  259. package/dist/collection/model/article/content/CarouselContent.js +2 -0
  260. package/dist/collection/model/article/content/CarouselContent.js.map +1 -0
  261. package/dist/collection/model/article/content/CollectionContent.js +52 -0
  262. package/dist/collection/model/article/content/CollectionContent.js.map +1 -0
  263. package/dist/collection/model/article/content/DividerContent.js +2 -0
  264. package/dist/collection/model/article/content/DividerContent.js.map +1 -0
  265. package/dist/collection/model/article/content/DocumentContent.js +2 -0
  266. package/dist/collection/model/article/content/DocumentContent.js.map +1 -0
  267. package/dist/collection/model/article/content/FaqContent.js +12 -0
  268. package/dist/collection/model/article/content/FaqContent.js.map +1 -0
  269. package/dist/collection/model/article/content/HeadingContent.js +2 -0
  270. package/dist/collection/model/article/content/HeadingContent.js.map +1 -0
  271. package/dist/collection/model/article/content/HtmlContent.js +2 -0
  272. package/dist/collection/model/article/content/HtmlContent.js.map +1 -0
  273. package/dist/collection/model/article/content/LinkContent.js +2 -0
  274. package/dist/collection/model/article/content/LinkContent.js.map +1 -0
  275. package/dist/collection/model/article/content/NewsContent.js +19 -0
  276. package/dist/collection/model/article/content/NewsContent.js.map +1 -0
  277. package/dist/collection/model/article/content/PageContent.js +37 -0
  278. package/dist/collection/model/article/content/PageContent.js.map +1 -0
  279. package/dist/collection/model/article/content/TableContet.js +2 -0
  280. package/dist/collection/model/article/content/TableContet.js.map +1 -0
  281. package/dist/collection/model/article/content/TestimonialContent.js +2 -0
  282. package/dist/collection/model/article/content/TestimonialContent.js.map +1 -0
  283. package/dist/collection/model/article/content/TextContent.js +2 -0
  284. package/dist/collection/model/article/content/TextContent.js.map +1 -0
  285. package/dist/collection/model/article/content/TitleContent.js +2 -0
  286. package/dist/collection/model/article/content/TitleContent.js.map +1 -0
  287. package/dist/collection/model/article/content/UploadContent.js +13 -0
  288. package/dist/collection/model/article/content/UploadContent.js.map +1 -0
  289. package/dist/collection/model/article/content/VideoContent.js +2 -0
  290. package/dist/collection/model/article/content/VideoContent.js.map +1 -0
  291. package/dist/collection/model/article/content/news/NewsAlbum.js +20 -0
  292. package/dist/collection/model/article/content/news/NewsAlbum.js.map +1 -0
  293. package/dist/collection/model/article/content/news/NewsArticle.js +43 -0
  294. package/dist/collection/model/article/content/news/NewsArticle.js.map +1 -0
  295. package/dist/collection/model/article/content/news/NewsCategory.js +17 -0
  296. package/dist/collection/model/article/content/news/NewsCategory.js.map +1 -0
  297. package/dist/collection/model/article/content/news/NewsTag.js +10 -0
  298. package/dist/collection/model/article/content/news/NewsTag.js.map +1 -0
  299. package/dist/collection/utils/ConditionalRender.js +5 -0
  300. package/dist/collection/utils/ConditionalRender.js.map +1 -0
  301. package/dist/collection/utils/ConditionalWrap.js +5 -0
  302. package/dist/collection/utils/ConditionalWrap.js.map +1 -0
  303. package/dist/collection/utils/utils.js +77 -0
  304. package/dist/collection/utils/utils.js.map +1 -0
  305. package/dist/collection/utils/utils.spec.js +6 -0
  306. package/dist/collection/utils/utils.spec.js.map +1 -0
  307. package/dist/components/ConditionalRender.js +7 -0
  308. package/dist/components/ConditionalRender.js.map +1 -0
  309. package/dist/components/aico-album-content.d.ts +11 -0
  310. package/dist/components/aico-album-content.js +8 -0
  311. package/dist/components/aico-album-content.js.map +1 -0
  312. package/dist/components/aico-album-content2.js +90 -0
  313. package/dist/components/aico-album-content2.js.map +1 -0
  314. package/dist/components/aico-article-detail.d.ts +11 -0
  315. package/dist/components/aico-article-detail.js +8 -0
  316. package/dist/components/aico-article-detail.js.map +1 -0
  317. package/dist/components/aico-article-detail2.js +262 -0
  318. package/dist/components/aico-article-detail2.js.map +1 -0
  319. package/dist/components/aico-asking-content.d.ts +11 -0
  320. package/dist/components/aico-asking-content.js +8 -0
  321. package/dist/components/aico-asking-content.js.map +1 -0
  322. package/dist/components/aico-asking-content2.js +36 -0
  323. package/dist/components/aico-asking-content2.js.map +1 -0
  324. package/dist/components/aico-asking-list-content.d.ts +11 -0
  325. package/dist/components/aico-asking-list-content.js +34 -0
  326. package/dist/components/aico-asking-list-content.js.map +1 -0
  327. package/dist/components/aico-block-quote-content.d.ts +11 -0
  328. package/dist/components/aico-block-quote-content.js +8 -0
  329. package/dist/components/aico-block-quote-content.js.map +1 -0
  330. package/dist/components/aico-block-quote-content2.js +36 -0
  331. package/dist/components/aico-block-quote-content2.js.map +1 -0
  332. package/dist/components/aico-bullet-content.d.ts +11 -0
  333. package/dist/components/aico-bullet-content.js +8 -0
  334. package/dist/components/aico-bullet-content.js.map +1 -0
  335. package/dist/components/aico-bullet-content2.js +78 -0
  336. package/dist/components/aico-bullet-content2.js.map +1 -0
  337. package/dist/components/aico-carousel-content.d.ts +11 -0
  338. package/dist/components/aico-carousel-content.js +8 -0
  339. package/dist/components/aico-carousel-content.js.map +1 -0
  340. package/dist/components/aico-carousel-content2.js +76 -0
  341. package/dist/components/aico-carousel-content2.js.map +1 -0
  342. package/dist/components/aico-collection-content.d.ts +11 -0
  343. package/dist/components/aico-collection-content.js +34 -0
  344. package/dist/components/aico-collection-content.js.map +1 -0
  345. package/dist/components/aico-content-card-content.d.ts +11 -0
  346. package/dist/components/aico-content-card-content.js +8 -0
  347. package/dist/components/aico-content-card-content.js.map +1 -0
  348. package/dist/components/aico-content-card-content2.js +61 -0
  349. package/dist/components/aico-content-card-content2.js.map +1 -0
  350. package/dist/components/aico-divider-content.d.ts +11 -0
  351. package/dist/components/aico-divider-content.js +8 -0
  352. package/dist/components/aico-divider-content.js.map +1 -0
  353. package/dist/components/aico-divider-content2.js +36 -0
  354. package/dist/components/aico-divider-content2.js.map +1 -0
  355. package/dist/components/aico-document-content.d.ts +11 -0
  356. package/dist/components/aico-document-content.js +8 -0
  357. package/dist/components/aico-document-content.js.map +1 -0
  358. package/dist/components/aico-document-content2.js +60 -0
  359. package/dist/components/aico-document-content2.js.map +1 -0
  360. package/dist/components/aico-faq-content.d.ts +11 -0
  361. package/dist/components/aico-faq-content.js +8 -0
  362. package/dist/components/aico-faq-content.js.map +1 -0
  363. package/dist/components/aico-faq-content2.js +41 -0
  364. package/dist/components/aico-faq-content2.js.map +1 -0
  365. package/dist/components/aico-fetch-article-detail.d.ts +11 -0
  366. package/dist/components/aico-fetch-article-detail.js +186 -0
  367. package/dist/components/aico-fetch-article-detail.js.map +1 -0
  368. package/dist/components/aico-heading-content.d.ts +11 -0
  369. package/dist/components/aico-heading-content.js +8 -0
  370. package/dist/components/aico-heading-content.js.map +1 -0
  371. package/dist/components/aico-heading-content2.js +80 -0
  372. package/dist/components/aico-heading-content2.js.map +1 -0
  373. package/dist/components/aico-html-content.d.ts +11 -0
  374. package/dist/components/aico-html-content.js +8 -0
  375. package/dist/components/aico-html-content.js.map +1 -0
  376. package/dist/components/aico-html-content2.js +45 -0
  377. package/dist/components/aico-html-content2.js.map +1 -0
  378. package/dist/components/aico-link-content.d.ts +11 -0
  379. package/dist/components/aico-link-content.js +8 -0
  380. package/dist/components/aico-link-content.js.map +1 -0
  381. package/dist/components/aico-link-content2.js +55 -0
  382. package/dist/components/aico-link-content2.js.map +1 -0
  383. package/dist/components/aico-news-content.d.ts +11 -0
  384. package/dist/components/aico-news-content.js +8 -0
  385. package/dist/components/aico-news-content.js.map +1 -0
  386. package/dist/components/aico-news-content2.js +43 -0
  387. package/dist/components/aico-news-content2.js.map +1 -0
  388. package/dist/components/aico-news-list-item.d.ts +11 -0
  389. package/dist/components/aico-news-list-item.js +8 -0
  390. package/dist/components/aico-news-list-item.js.map +1 -0
  391. package/dist/components/aico-news-list-item2.js +36 -0
  392. package/dist/components/aico-news-list-item2.js.map +1 -0
  393. package/dist/components/aico-news-list.d.ts +11 -0
  394. package/dist/components/aico-news-list.js +118 -0
  395. package/dist/components/aico-news-list.js.map +1 -0
  396. package/dist/components/aico-no-content.d.ts +11 -0
  397. package/dist/components/aico-no-content.js +8 -0
  398. package/dist/components/aico-no-content.js.map +1 -0
  399. package/dist/components/aico-no-content2.js +31 -0
  400. package/dist/components/aico-no-content2.js.map +1 -0
  401. package/dist/components/aico-page-content.d.ts +11 -0
  402. package/dist/components/aico-page-content.js +8 -0
  403. package/dist/components/aico-page-content.js.map +1 -0
  404. package/dist/components/aico-page-content2.js +43 -0
  405. package/dist/components/aico-page-content2.js.map +1 -0
  406. package/dist/components/aico-special-news-carousel.d.ts +11 -0
  407. package/dist/components/aico-special-news-carousel.js +78 -0
  408. package/dist/components/aico-special-news-carousel.js.map +1 -0
  409. package/dist/components/aico-table-content.d.ts +11 -0
  410. package/dist/components/aico-table-content.js +8 -0
  411. package/dist/components/aico-table-content.js.map +1 -0
  412. package/dist/components/aico-table-content2.js +72 -0
  413. package/dist/components/aico-table-content2.js.map +1 -0
  414. package/dist/components/aico-testimonial-content.d.ts +11 -0
  415. package/dist/components/aico-testimonial-content.js +8 -0
  416. package/dist/components/aico-testimonial-content.js.map +1 -0
  417. package/dist/components/aico-testimonial-content2.js +38 -0
  418. package/dist/components/aico-testimonial-content2.js.map +1 -0
  419. package/dist/components/aico-text-content.d.ts +11 -0
  420. package/dist/components/aico-text-content.js +8 -0
  421. package/dist/components/aico-text-content.js.map +1 -0
  422. package/dist/components/aico-text-content2.js +127 -0
  423. package/dist/components/aico-text-content2.js.map +1 -0
  424. package/dist/components/aico-title-content.d.ts +11 -0
  425. package/dist/components/aico-title-content.js +8 -0
  426. package/dist/components/aico-title-content.js.map +1 -0
  427. package/dist/components/aico-title-content2.js +54 -0
  428. package/dist/components/aico-title-content2.js.map +1 -0
  429. package/dist/components/aico-upload-content.d.ts +11 -0
  430. package/dist/components/aico-upload-content.js +8 -0
  431. package/dist/components/aico-upload-content.js.map +1 -0
  432. package/dist/components/aico-upload-content2.js +65 -0
  433. package/dist/components/aico-upload-content2.js.map +1 -0
  434. package/dist/components/aico-video-content.d.ts +11 -0
  435. package/dist/components/aico-video-content.js +8 -0
  436. package/dist/components/aico-video-content.js.map +1 -0
  437. package/dist/components/aico-video-content2.js +61 -0
  438. package/dist/components/aico-video-content2.js.map +1 -0
  439. package/dist/components/assets/slick/ajax-loader.gif +0 -0
  440. package/dist/components/assets/slick/slick.eot +0 -0
  441. package/dist/components/assets/slick/slick.svg +14 -0
  442. package/dist/components/assets/slick/slick.ttf +0 -0
  443. package/dist/components/assets/slick/slick.woff +0 -0
  444. package/dist/components/bootstrap-slick-test.d.ts +11 -0
  445. package/dist/components/bootstrap-slick-test.js +51 -0
  446. package/dist/components/bootstrap-slick-test.js.map +1 -0
  447. package/dist/components/bootstrap.esm.js +6265 -0
  448. package/dist/components/bootstrap.esm.js.map +1 -0
  449. package/dist/components/index.d.ts +33 -0
  450. package/dist/components/index.js +3 -0
  451. package/dist/components/index.js.map +1 -0
  452. package/dist/components/slick.js +13660 -0
  453. package/dist/components/slick.js.map +1 -0
  454. package/dist/components/utils.js +84 -0
  455. package/dist/components/utils.js.map +1 -0
  456. package/dist/esm/aico-album-content_19.entry.js +6884 -0
  457. package/dist/esm/aico-album-content_19.entry.js.map +1 -0
  458. package/dist/esm/aico-article-detail.entry.js +120 -0
  459. package/dist/esm/aico-article-detail.entry.js.map +1 -0
  460. package/dist/esm/aico-asking-list-content.entry.js +17 -0
  461. package/dist/esm/aico-asking-list-content.entry.js.map +1 -0
  462. package/dist/esm/aico-collection-content.entry.js +17 -0
  463. package/dist/esm/aico-collection-content.entry.js.map +1 -0
  464. package/dist/esm/aico-components.js +20 -0
  465. package/dist/esm/aico-components.js.map +1 -0
  466. package/dist/esm/aico-fetch-article-detail.entry.js +32 -0
  467. package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -0
  468. package/dist/esm/aico-news-list-item.entry.js +20 -0
  469. package/dist/esm/aico-news-list-item.entry.js.map +1 -0
  470. package/dist/esm/aico-news-list.entry.js +88 -0
  471. package/dist/esm/aico-news-list.entry.js.map +1 -0
  472. package/dist/esm/aico-no-content_2.entry.js +44 -0
  473. package/dist/esm/aico-no-content_2.entry.js.map +1 -0
  474. package/dist/esm/aico-special-news-carousel.entry.js +56 -0
  475. package/dist/esm/aico-special-news-carousel.entry.js.map +1 -0
  476. package/dist/esm/bootstrap-slick-test.entry.js +34 -0
  477. package/dist/esm/bootstrap-slick-test.entry.js.map +1 -0
  478. package/dist/esm/index-f9f11572.js +2250 -0
  479. package/dist/esm/index-f9f11572.js.map +1 -0
  480. package/dist/esm/index.js +3 -0
  481. package/dist/esm/index.js.map +1 -0
  482. package/dist/esm/loader.js +11 -0
  483. package/dist/esm/loader.js.map +1 -0
  484. package/dist/esm/polyfills/core-js.js +11 -0
  485. package/dist/esm/polyfills/dom.js +79 -0
  486. package/dist/esm/polyfills/es5-html-element.js +1 -0
  487. package/dist/esm/polyfills/index.js +34 -0
  488. package/dist/esm/polyfills/system.js +6 -0
  489. package/dist/esm/slick-d11cf173.js +13660 -0
  490. package/dist/esm/slick-d11cf173.js.map +1 -0
  491. package/dist/esm/utils-2b7ec879.js +84 -0
  492. package/dist/esm/utils-2b7ec879.js.map +1 -0
  493. package/dist/index.cjs.js +1 -0
  494. package/dist/index.js +1 -0
  495. package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +10 -0
  496. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +13 -0
  497. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.d.ts +7 -0
  498. package/dist/types/components/aico-news-list/aico-news-list.d.ts +21 -0
  499. package/dist/types/components/aico-news-list/aico-news-list.stories.d.ts +6 -0
  500. package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +7 -0
  501. package/dist/types/components/aico-news-list-item/aico-news-list-item.stories.d.ts +6 -0
  502. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +19 -0
  503. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.stories.d.ts +7 -0
  504. package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.d.ts +5 -0
  505. package/dist/types/components/bootstrap-slick-test/bootstrap-slick-test.stories.d.ts +5 -0
  506. package/dist/types/components/content/aico-album-content/aico-album-content.d.ts +7 -0
  507. package/dist/types/components/content/aico-album-content/aico-album-content.stories.d.ts +5 -0
  508. package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +5 -0
  509. package/dist/types/components/content/aico-asking-content/aico-asking-content.stories.d.ts +5 -0
  510. package/dist/types/components/content/aico-asking-list-content/aico-asking-list-content.d.ts +3 -0
  511. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +5 -0
  512. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.stories.d.ts +6 -0
  513. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +6 -0
  514. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.stories.d.ts +6 -0
  515. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +9 -0
  516. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.stories.d.ts +6 -0
  517. package/dist/types/components/content/aico-collection-content/aico-collection-content.d.ts +3 -0
  518. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +6 -0
  519. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.stories.d.ts +6 -0
  520. package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +5 -0
  521. package/dist/types/components/content/aico-divider-content/aico-divider-content.stories.d.ts +6 -0
  522. package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +5 -0
  523. package/dist/types/components/content/aico-document-content/aico-document-content.stories.d.ts +6 -0
  524. package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +6 -0
  525. package/dist/types/components/content/aico-faq-content/aico-faq-content.stories.d.ts +6 -0
  526. package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +6 -0
  527. package/dist/types/components/content/aico-heading-content/aico-heading-content.stories.d.ts +6 -0
  528. package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +5 -0
  529. package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +5 -0
  530. package/dist/types/components/content/aico-link-content/aico-link-content.stories.d.ts +7 -0
  531. package/dist/types/components/content/aico-news-content/aico-news-content.d.ts +8 -0
  532. package/dist/types/components/content/aico-news-content/aico-news-content.stories.d.ts +5 -0
  533. package/dist/types/components/content/aico-no-content/aico-no-content.d.ts +3 -0
  534. package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +7 -0
  535. package/dist/types/components/content/aico-page-content/aico-page-content.stories.d.ts +5 -0
  536. package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +6 -0
  537. package/dist/types/components/content/aico-table-content/aico-table-content.stories.d.ts +6 -0
  538. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.d.ts +5 -0
  539. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.stories.d.ts +6 -0
  540. package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +12 -0
  541. package/dist/types/components/content/aico-text-content/aico-text-content.stories.d.ts +10 -0
  542. package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +5 -0
  543. package/dist/types/components/content/aico-title-content/aico-title-content.stories.d.ts +5 -0
  544. package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +6 -0
  545. package/dist/types/components/content/aico-upload-content/aico-upload-content.stories.d.ts +5 -0
  546. package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +6 -0
  547. package/dist/types/components/content/aico-video-content/aico-video-content.stories.d.ts +7 -0
  548. package/dist/types/components.d.ts +591 -0
  549. package/dist/types/index.d.ts +1 -0
  550. package/dist/types/model/AicoApiRequestInfo.d.ts +6 -0
  551. package/dist/types/model/Article.d.ts +103 -0
  552. package/dist/types/model/Entity.d.ts +15 -0
  553. package/dist/types/model/NewsCategory.d.ts +14 -0
  554. package/dist/types/model/NewsResponse.d.ts +25 -0
  555. package/dist/types/model/article/ContentType.d.ts +31 -0
  556. package/dist/types/model/article/Translation.d.ts +24 -0
  557. package/dist/types/model/article/content/AlbumContent.d.ts +26 -0
  558. package/dist/types/model/article/content/AskingContent.d.ts +152 -0
  559. package/dist/types/model/article/content/AskingListContent.d.ts +17 -0
  560. package/dist/types/model/article/content/BlockQuoteContent.d.ts +11 -0
  561. package/dist/types/model/article/content/BulletContent.d.ts +14 -0
  562. package/dist/types/model/article/content/CardContent.d.ts +10 -0
  563. package/dist/types/model/article/content/CarouselContent.d.ts +12 -0
  564. package/dist/types/model/article/content/CollectionContent.d.ts +364 -0
  565. package/dist/types/model/article/content/DividerContent.d.ts +8 -0
  566. package/dist/types/model/article/content/DocumentContent.d.ts +19 -0
  567. package/dist/types/model/article/content/FaqContent.d.ts +106 -0
  568. package/dist/types/model/article/content/HeadingContent.d.ts +16 -0
  569. package/dist/types/model/article/content/HtmlContent.d.ts +5 -0
  570. package/dist/types/model/article/content/LinkContent.d.ts +23 -0
  571. package/dist/types/model/article/content/NewsContent.d.ts +836 -0
  572. package/dist/types/model/article/content/PageContent.d.ts +313 -0
  573. package/dist/types/model/article/content/TableContet.d.ts +30 -0
  574. package/dist/types/model/article/content/TestimonialContent.d.ts +9 -0
  575. package/dist/types/model/article/content/TextContent.d.ts +39 -0
  576. package/dist/types/model/article/content/TitleContent.d.ts +9 -0
  577. package/dist/types/model/article/content/UploadContent.d.ts +77 -0
  578. package/dist/types/model/article/content/VideoContent.d.ts +14 -0
  579. package/dist/types/model/article/content/news/NewsAlbum.d.ts +150 -0
  580. package/dist/types/model/article/content/news/NewsArticle.d.ts +577 -0
  581. package/dist/types/model/article/content/news/NewsCategory.d.ts +88 -0
  582. package/dist/types/model/article/content/news/NewsTag.d.ts +63 -0
  583. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  584. package/dist/types/utils/ConditionalRender.d.ts +6 -0
  585. package/dist/types/utils/ConditionalWrap.d.ts +7 -0
  586. package/dist/types/utils/utils.d.ts +13 -0
  587. package/loader/cdn.js +3 -0
  588. package/loader/index.cjs.js +3 -0
  589. package/loader/index.d.ts +21 -0
  590. package/loader/index.es2017.js +3 -0
  591. package/loader/index.js +4 -0
  592. package/loader/package.json +11 -0
  593. package/package.json +13 -4
@@ -0,0 +1,92 @@
1
+ 'use strict';
2
+
3
+ const getAuthenticatedHeaders = (bearerToken) => {
4
+ const headers = new Headers();
5
+ headers.append('Accept', 'application/vnd.api+json');
6
+ headers.append('Authorization', `Bearer ${bearerToken}`);
7
+ return headers;
8
+ };
9
+ const getAuthenticatedRequest = (api, route, query, signal) => {
10
+ return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {
11
+ headers: getAuthenticatedHeaders(api.bearerToken),
12
+ signal,
13
+ });
14
+ };
15
+
16
+ async function fetchNewsArticles(api, page, size, signal) {
17
+ const queryParams = new URLSearchParams();
18
+ queryParams.set('page[number]', String(page));
19
+ queryParams.set('page[size]', String(size));
20
+ queryParams.set('filter[isActive]', '1');
21
+ queryParams.set('filter[excludeTag][]', 'Eisnull');
22
+ queryParams.set('sort', '-publishDate');
23
+ const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
24
+ const response = await fetch(request);
25
+ return await response.json();
26
+ }
27
+ async function fetchSpecialNewsArticles(api, page, size, signal) {
28
+ const queryParams = new URLSearchParams();
29
+ queryParams.set('page[number]', String(page));
30
+ queryParams.set('page[size]', String(size));
31
+ queryParams.set('filter[isActive]', '1');
32
+ queryParams.set('filter[isSpecialArticle]', '1');
33
+ queryParams.set('filter[isLightVersion]', 'true');
34
+ queryParams.set('filter[excludeTag][]', 'Eisnull');
35
+ queryParams.set('sort', '-publishDate');
36
+ const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
37
+ const response = await fetch(request);
38
+ return await response.json();
39
+ }
40
+ async function fetchNewsArticle(api, articleId, signal) {
41
+ const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);
42
+ const response = await fetch(request);
43
+ const article = await response.json();
44
+ return article.data;
45
+ }
46
+ function getImageWidthPrc(pictureSize) {
47
+ switch (pictureSize) {
48
+ case 'extra-small':
49
+ return '28%';
50
+ case 'small':
51
+ return '40%';
52
+ case 'large':
53
+ return '80%';
54
+ case 'extra large': // TODO: has - or not?
55
+ return '100%';
56
+ default:
57
+ return '60%';
58
+ }
59
+ }
60
+ function getYoutubeURL(url) {
61
+ const regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#&?]*).*/;
62
+ const match = url.match(regExp);
63
+ if (match && match[1].length == 11) {
64
+ return `https://www.youtube.com/embed/${match[1]}`;
65
+ }
66
+ return null;
67
+ }
68
+ function strIsNullOrEmptyOrWhitespace(str) {
69
+ if (!str || str === ' ') {
70
+ return true;
71
+ }
72
+ return false;
73
+ }
74
+ function getClass(conditions) {
75
+ const classes = [];
76
+ for (const kvp of Object.entries(conditions)) {
77
+ if (kvp[1]) {
78
+ classes.push(kvp[0]);
79
+ }
80
+ }
81
+ return classes.join(' ');
82
+ }
83
+
84
+ exports.fetchNewsArticle = fetchNewsArticle;
85
+ exports.fetchNewsArticles = fetchNewsArticles;
86
+ exports.fetchSpecialNewsArticles = fetchSpecialNewsArticles;
87
+ exports.getClass = getClass;
88
+ exports.getImageWidthPrc = getImageWidthPrc;
89
+ exports.getYoutubeURL = getYoutubeURL;
90
+ exports.strIsNullOrEmptyOrWhitespace = strIsNullOrEmptyOrWhitespace;
91
+
92
+ //# sourceMappingURL=utils-406a9df3.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-406a9df3.js","mappings":"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","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n queryParams.set('sort', '-publishDate');\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n queryParams.set('sort', '-publishDate');\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by Fontastic.me</metadata>
5
+ <defs>
6
+ <font id="slick" horiz-adv-x="512">
7
+ <font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
8
+ <missing-glyph horiz-adv-x="512" />
9
+
10
+ <glyph unicode="&#8594;" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
11
+ <glyph unicode="&#8592;" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
12
+ <glyph unicode="&#8226;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
13
+ <glyph unicode="&#97;" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
14
+ </font></defs></svg>
@@ -0,0 +1,40 @@
1
+ {
2
+ "entries": [
3
+ "components/aico-article-detail/aico-article-detail.js",
4
+ "components/aico-fetch-article-detail/aico-fetch-article-detail.js",
5
+ "components/aico-news-list/aico-news-list.js",
6
+ "components/aico-news-list-item/aico-news-list-item.js",
7
+ "components/aico-special-news-carousel/aico-special-news-carousel.js",
8
+ "components/bootstrap-slick-test/bootstrap-slick-test.js",
9
+ "components/content/aico-album-content/aico-album-content.js",
10
+ "components/content/aico-asking-content/aico-asking-content.js",
11
+ "components/content/aico-asking-list-content/aico-asking-list-content.js",
12
+ "components/content/aico-block-quote-content/aico-block-quote-content.js",
13
+ "components/content/aico-bullet-content/aico-bullet-content.js",
14
+ "components/content/aico-carousel-content/aico-carousel-content.js",
15
+ "components/content/aico-collection-content/aico-collection-content.js",
16
+ "components/content/aico-content-card-content/aico-content-card-content.js",
17
+ "components/content/aico-divider-content/aico-divider-content.js",
18
+ "components/content/aico-document-content/aico-document-content.js",
19
+ "components/content/aico-faq-content/aico-faq-content.js",
20
+ "components/content/aico-heading-content/aico-heading-content.js",
21
+ "components/content/aico-html-content/aico-html-content.js",
22
+ "components/content/aico-link-content/aico-link-content.js",
23
+ "components/content/aico-news-content/aico-news-content.js",
24
+ "components/content/aico-no-content/aico-no-content.js",
25
+ "components/content/aico-page-content/aico-page-content.js",
26
+ "components/content/aico-table-content/aico-table-content.js",
27
+ "components/content/aico-testimonial-content/aico-testimonial-content.js",
28
+ "components/content/aico-text-content/aico-text-content.js",
29
+ "components/content/aico-title-content/aico-title-content.js",
30
+ "components/content/aico-upload-content/aico-upload-content.js",
31
+ "components/content/aico-video-content/aico-video-content.js"
32
+ ],
33
+ "compiler": {
34
+ "name": "@stencil/core",
35
+ "version": "4.9.0",
36
+ "typescriptVersion": "5.2.2"
37
+ },
38
+ "collections": [],
39
+ "bundles": []
40
+ }
@@ -0,0 +1,117 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { ContentType } from "../../model/article/ContentType";
3
+ export class AicoArticleDetail {
4
+ constructor() {
5
+ this.dateOptions = { day: 'numeric', month: 'long', year: 'numeric' };
6
+ this.article = undefined;
7
+ }
8
+ render() {
9
+ const articleDate = new Date(this.article.attributes.publishDate);
10
+ const content = this.article.attributes.contentBuilder.rows.sort((a, b) => a.order - b.order).map((row, index) => this.mapRowContent(row, index));
11
+ return (h(Host, null, h("figure", null, h("blockquote", { class: "blockquote" }, h("h2", { class: "text-uppercase" }, this.article.attributes.name)), h("figcaption", { class: "blockquote-footer" }, articleDate.toLocaleDateString('en-US', this.dateOptions), " by ", h("cite", { title: "Author" }, this.article.attributes.author))), h("div", { class: "content-wrapper" }, content)));
12
+ }
13
+ mapRowContent(row, index) {
14
+ const rowContent = row.columns.map((column, columnIndex) => this.mapColumnContent(column, columnIndex));
15
+ return h("div", { class: `content-row content-row-index-${index}` }, rowContent);
16
+ }
17
+ mapColumnContent(column, index) {
18
+ const columnContent = column.contentContainer.contents.sort((a, b) => { var _a, _b; return ((_a = a.sort) !== null && _a !== void 0 ? _a : 0) - ((_b = b.sort) !== null && _b !== void 0 ? _b : 0); }).map((content, contentIndex) => this.mapContent(content, contentIndex));
19
+ return h("div", { class: `content-column content-column-index-${index}` }, columnContent);
20
+ }
21
+ mapContent(content, index) {
22
+ return h("div", { class: `content-data-wrapper content-data-wrapper-index-${index}` }, this.mapContentData(content.type, content.contentData));
23
+ }
24
+ mapContentData(contentType, content) {
25
+ switch (contentType) {
26
+ case ContentType.ALBUM:
27
+ return h("aico-album-content", { content: content });
28
+ case ContentType.ASKING:
29
+ return h("aico-asking-content", { content: content });
30
+ case ContentType.BLOCK_QUOTE:
31
+ return h("aico-block-quote-content", { content: content });
32
+ case ContentType.BULLET:
33
+ return h("aico-bullet-content", { content: content });
34
+ case ContentType.CAROUSEL:
35
+ return h("aico-carousel-content", { content: content });
36
+ case ContentType.CONTENT_CARD:
37
+ return h("aico-content-card-content", { content: content });
38
+ case ContentType.DIVIDER:
39
+ return h("aico-divider-content", { content: content });
40
+ case ContentType.DOCUMENT:
41
+ return h("aico-document-content", { content: content });
42
+ case ContentType.FAQ:
43
+ return h("aico-faq-content", { content: content });
44
+ case ContentType.HEADING:
45
+ return h("aico-heading-content", { content: content });
46
+ case ContentType.HTML:
47
+ return h("aico-html-content", { content: content });
48
+ case ContentType.LINK:
49
+ return h("aico-link-content", { content: content });
50
+ case ContentType.NEWS:
51
+ return h("aico-news-content", { content: content });
52
+ case ContentType.PAGE:
53
+ return h("aico-page-content", { content: content });
54
+ case ContentType.TABLE:
55
+ return h("aico-table-content", { content: content });
56
+ case ContentType.TESTIMONIAL:
57
+ return h("aico-testimonial-content", { content: content });
58
+ case ContentType.TEXT:
59
+ return h("aico-text-content", { content: content });
60
+ case ContentType.TITLE:
61
+ return h("aico-title-content", { content: content });
62
+ case ContentType.UPLOAD:
63
+ return h("aico-upload-content", { content: content });
64
+ case ContentType.VIDEO:
65
+ return h("aico-video-content", { content: content });
66
+ case ContentType.PRODUCT:
67
+ case ContentType.AGENDA:
68
+ case ContentType.LIST_ASKING:
69
+ case ContentType.LIST_AGENDA:
70
+ case ContentType.CRM:
71
+ case ContentType.B2B:
72
+ case ContentType.FORM_BUILDER:
73
+ case ContentType.COURSE:
74
+ case ContentType.COLLECTION:
75
+ default:
76
+ return h("div", { class: "content-data content-data-not-handled" }, "Content type not handled.");
77
+ }
78
+ }
79
+ static get is() { return "aico-article-detail"; }
80
+ static get encapsulation() { return "scoped"; }
81
+ static get originalStyleUrls() {
82
+ return {
83
+ "$": ["aico-article-detail.css"]
84
+ };
85
+ }
86
+ static get styleUrls() {
87
+ return {
88
+ "$": ["aico-article-detail.css"]
89
+ };
90
+ }
91
+ static get properties() {
92
+ return {
93
+ "article": {
94
+ "type": "unknown",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "Article",
98
+ "resolved": "{ id: string; type: string; links: { self: string; }; attributes: ArticleAttributes; }",
99
+ "references": {
100
+ "Article": {
101
+ "location": "import",
102
+ "path": "../../model/Article",
103
+ "id": "src/model/Article.ts::Article"
104
+ }
105
+ }
106
+ },
107
+ "required": true,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": ""
112
+ }
113
+ }
114
+ };
115
+ }
116
+ }
117
+ //# sourceMappingURL=aico-article-detail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-article-detail.js","sourceRoot":"","sources":["../../../src/components/aico-article-detail/aico-article-detail.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { ContentType } from '../../model/article/ContentType';\nimport type { Article, ArticleContent, ArticleContentBuilderColumn, ArticleContentBuilderRow } from '../../model/Article';\nimport type { HtmlContent } from '../../model/article/content/HtmlContent';\nimport type { AlbumContent } from '../../model/article/content/AlbumContent';\nimport type { TitleContent } from '../../model/article/content/TitleContent';\nimport type { BlockQuoteContent } from '../../model/article/content/BlockQuoteContent';\nimport type { BulletContent } from '../../model/article/content/BulletContent';\nimport type { CardContent } from '../../model/article/content/CardContent';\nimport type { CarouselContent } from '../../model/article/content/CarouselContent';\nimport type { DividerContent } from '../../model/article/content/DividerContent';\nimport type { DocumentContent } from '../../model/article/content/DocumentContent';\nimport type { HeadingContent } from '../../model/article/content/HeadingContent';\nimport type { LinkContent } from '../../model/article/content/LinkContent';\nimport type { TableContent } from '../../model/article/content/TableContet';\nimport type { TestimonialContent } from '../../model/article/content/TestimonialContent';\nimport type { TextContent } from '../../model/article/content/TextContent';\nimport type { VideoContent } from '../../model/article/content/VideoContent';\nimport type { AskingContent } from '../../model/article/content/AskingContent';\nimport type { FaqContent } from '../../model/article/content/FaqContent';\nimport type { NewsContent } from '../../model/article/content/NewsContent';\nimport type { PageContent } from '../../model/article/content/PageContent';\nimport type { UploadContent } from '../../model/article/content/UploadContent';\n\n@Component({\n tag: 'aico-article-detail',\n styleUrl: 'aico-article-detail.css',\n scoped: true,\n})\nexport class AicoArticleDetail {\n @Prop() article!: Article;\n\n private readonly dateOptions: Intl.DateTimeFormatOptions = { day: 'numeric', month: 'long', year: 'numeric' };\n\n render() {\n const articleDate = new Date(this.article.attributes.publishDate);\n const content = this.article.attributes.contentBuilder.rows.sort((a, b) => a.order - b.order).map((row, index) => this.mapRowContent(row, index));\n return (\n <Host>\n <figure>\n <blockquote class=\"blockquote\">\n <h2 class=\"text-uppercase\">{this.article.attributes.name}</h2>\n </blockquote>\n <figcaption class=\"blockquote-footer\">\n {articleDate.toLocaleDateString('en-US', this.dateOptions)} by <cite title=\"Author\">{this.article.attributes.author}</cite>\n </figcaption>\n </figure>\n <div class=\"content-wrapper\">{content}</div>\n </Host>\n );\n }\n\n private mapRowContent(row: ArticleContentBuilderRow, index: number) {\n const rowContent = row.columns.map((column, columnIndex) => this.mapColumnContent(column, columnIndex));\n return <div class={`content-row content-row-index-${index}`}>{rowContent}</div>;\n }\n\n private mapColumnContent(column: ArticleContentBuilderColumn, index: number) {\n const columnContent = column.contentContainer.contents.sort((a, b) => (a.sort ?? 0) - (b.sort ?? 0)).map((content, contentIndex) => this.mapContent(content, contentIndex));\n return <div class={`content-column content-column-index-${index}`}>{columnContent}</div>;\n }\n\n private mapContent(content: ArticleContent, index: number) {\n return <div class={`content-data-wrapper content-data-wrapper-index-${index}`}>{this.mapContentData(content.type, content.contentData)}</div>;\n }\n\n private mapContentData(contentType: ContentType | undefined, content: object) {\n switch (contentType) {\n case ContentType.ALBUM:\n return <aico-album-content content={content as AlbumContent} />;\n\n case ContentType.ASKING:\n return <aico-asking-content content={content as AskingContent} />;\n\n case ContentType.BLOCK_QUOTE:\n return <aico-block-quote-content content={content as BlockQuoteContent} />;\n\n case ContentType.BULLET:\n return <aico-bullet-content content={content as BulletContent} />;\n\n case ContentType.CAROUSEL:\n return <aico-carousel-content content={content as CarouselContent} />;\n\n case ContentType.CONTENT_CARD:\n return <aico-content-card-content content={content as CardContent} />;\n\n case ContentType.DIVIDER:\n return <aico-divider-content content={content as DividerContent} />;\n\n case ContentType.DOCUMENT:\n return <aico-document-content content={content as DocumentContent} />;\n\n case ContentType.FAQ:\n return <aico-faq-content content={content as FaqContent} />;\n\n case ContentType.HEADING:\n return <aico-heading-content content={content as HeadingContent} />;\n\n case ContentType.HTML:\n return <aico-html-content content={content as HtmlContent} />;\n\n case ContentType.LINK:\n return <aico-link-content content={content as LinkContent} />;\n\n case ContentType.NEWS:\n return <aico-news-content content={content as NewsContent} />;\n\n case ContentType.PAGE:\n return <aico-page-content content={content as PageContent} />;\n\n case ContentType.TABLE:\n return <aico-table-content content={content as TableContent} />;\n\n case ContentType.TESTIMONIAL:\n return <aico-testimonial-content content={content as TestimonialContent} />;\n\n case ContentType.TEXT:\n return <aico-text-content content={content as TextContent} />;\n\n case ContentType.TITLE:\n return <aico-title-content content={content as TitleContent} />;\n\n case ContentType.UPLOAD:\n return <aico-upload-content content={content as UploadContent} />;\n\n case ContentType.VIDEO:\n return <aico-video-content content={content as VideoContent} />;\n\n case ContentType.PRODUCT:\n case ContentType.AGENDA:\n case ContentType.LIST_ASKING:\n case ContentType.LIST_AGENDA:\n case ContentType.CRM:\n case ContentType.B2B:\n case ContentType.FORM_BUILDER:\n case ContentType.COURSE:\n case ContentType.COLLECTION:\n default:\n return <div class=\"content-data content-data-not-handled\">Content type not handled.</div>;\n }\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ describe('aico-article-detail', () => {
3
+ it('renders', async () => {
4
+ expect(true).toBeTruthy();
5
+ });
6
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-article-detail.e2e.js","sourceRoot":"","sources":["../../../../src/components/aico-article-detail/test/aico-article-detail.e2e.ts"],"names":[],"mappings":";AAAA,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["describe('aico-article-detail', () => {\n it('renders', async () => {\n expect(true).toBeTruthy();\n });\n});\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ describe('aico-article-detail', () => {
3
+ it('renders', async () => {
4
+ expect(true).toBeTruthy();
5
+ });
6
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-article-detail.spec.js","sourceRoot":"","sources":["../../../../src/components/aico-article-detail/test/aico-article-detail.spec.tsx"],"names":[],"mappings":";AAAA,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["describe('aico-article-detail', () => {\n it('renders', async () => {\n expect(true).toBeTruthy();\n });\n});\n"]}
@@ -0,0 +1,96 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { fetchNewsArticle } from "../../utils/utils";
3
+ export class AicoFetchArticleDetail {
4
+ constructor() {
5
+ this.article = undefined;
6
+ this.aicoUrl = undefined;
7
+ this.aicoBearerToken = undefined;
8
+ this.articleId = undefined;
9
+ }
10
+ connectedCallback() {
11
+ this.articleFetchController = new AbortController();
12
+ this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
13
+ }
14
+ disconnectedCallback() {
15
+ this.articleFetchController.abort('disconnected');
16
+ }
17
+ async componentWillLoad() {
18
+ this.article = await fetchNewsArticle(this.api, this.articleId, this.articleFetchController.signal);
19
+ }
20
+ render() {
21
+ return (h(Host, null, h("aico-article-detail", { article: this.article })));
22
+ }
23
+ static get is() { return "aico-fetch-article-detail"; }
24
+ static get encapsulation() { return "scoped"; }
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["aico-fetch-article-detail.css"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["aico-fetch-article-detail.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "aicoUrl": {
38
+ "type": "string",
39
+ "mutable": false,
40
+ "complexType": {
41
+ "original": "string",
42
+ "resolved": "string",
43
+ "references": {}
44
+ },
45
+ "required": true,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": ""
50
+ },
51
+ "attribute": "aico-url",
52
+ "reflect": false
53
+ },
54
+ "aicoBearerToken": {
55
+ "type": "string",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "string",
59
+ "resolved": "string",
60
+ "references": {}
61
+ },
62
+ "required": true,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": ""
67
+ },
68
+ "attribute": "aico-bearer-token",
69
+ "reflect": false
70
+ },
71
+ "articleId": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "string",
76
+ "resolved": "string",
77
+ "references": {}
78
+ },
79
+ "required": true,
80
+ "optional": false,
81
+ "docs": {
82
+ "tags": [],
83
+ "text": ""
84
+ },
85
+ "attribute": "article-id",
86
+ "reflect": false
87
+ }
88
+ };
89
+ }
90
+ static get states() {
91
+ return {
92
+ "article": {}
93
+ };
94
+ }
95
+ }
96
+ //# sourceMappingURL=aico-fetch-article-detail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-fetch-article-detail.js","sourceRoot":"","sources":["../../../src/components/aico-fetch-article-detail/aico-fetch-article-detail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AASrD,MAAM,OAAO,sBAAsB;;;;;;;IAYjC,iBAAiB;QACf,IAAI,CAAC,sBAAsB,GAAG,IAAI,eAAe,EAAE,CAAC;QACpD,IAAI,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC;IAC1E,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,sBAAuB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,GAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAuB,CAAC,MAAM,CAAC,CAAC;IACxG,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,2BAAqB,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CACzC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, State, h } from '@stencil/core';\nimport { fetchNewsArticle } from '../../utils/utils';\nimport { Article } from '../../model/Article';\nimport { AicoApiRequestInfo } from '../../model/AicoApiRequestInfo';\n\n@Component({\n tag: 'aico-fetch-article-detail',\n styleUrl: 'aico-fetch-article-detail.css',\n scoped: true,\n})\nexport class AicoFetchArticleDetail {\n @State() article!: Article;\n\n @Prop() aicoUrl!: string;\n\n @Prop() aicoBearerToken!: string;\n\n @Prop() articleId!: string;\n\n private api?: AicoApiRequestInfo;\n private articleFetchController?: AbortController;\n\n connectedCallback() {\n this.articleFetchController = new AbortController();\n this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };\n }\n\n disconnectedCallback() {\n this.articleFetchController!.abort('disconnected');\n }\n\n async componentWillLoad(): Promise<void> {\n this.article = await fetchNewsArticle(this.api!, this.articleId, this.articleFetchController!.signal);\n }\n\n render() {\n return (\n <Host>\n <aico-article-detail article={this.article} />\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ const meta = {
2
+ component: 'aico-fetch-article-detail',
3
+ };
4
+ export default meta;
5
+ export const Kj = {
6
+ args: {
7
+ aicoUrl: 'https://kj-acceptance.aico.swiss/api/v1/',
8
+ aicoBearerToken: 'Sq4WkveRPJ64SHR9zqZW8oLjIDjnlBg0gXHSuIMweb966802',
9
+ articleId: '32',
10
+ },
11
+ };
12
+ export const Fcz = {
13
+ args: {
14
+ aicoUrl: 'https://app.aico.swiss/19838/api/v1/',
15
+ aicoBearerToken: 'B3NXuTbnCeppJl9NHu27Kjs7Hm3EOKSGCkR6CVwO',
16
+ articleId: '44239',
17
+ },
18
+ };
19
+ //# sourceMappingURL=aico-fetch-article-detail.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-fetch-article-detail.stories.js","sourceRoot":"","sources":["../../../src/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAAqC;IAC7C,SAAS,EAAE,2BAA2B;CACvC,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,EAAE,GAAU;IACvB,IAAI,EAAE;QACJ,OAAO,EAAE,0CAA0C;QACnD,eAAe,EAAE,kDAAkD;QACnE,SAAS,EAAE,IAAI;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAU;IACxB,IAAI,EAAE;QACJ,OAAO,EAAE,sCAAsC;QAC/C,eAAe,EAAE,0CAA0C;QAC3D,SAAS,EAAE,OAAO;KACnB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { JSX } from '../../components';\n\nconst meta: Meta<JSX.AicoFetchArticleDetail> = {\n component: 'aico-fetch-article-detail',\n};\n\nexport default meta;\n\ntype Story = StoryObj;\n\nexport const Kj: Story = {\n args: {\n aicoUrl: 'https://kj-acceptance.aico.swiss/api/v1/',\n aicoBearerToken: 'Sq4WkveRPJ64SHR9zqZW8oLjIDjnlBg0gXHSuIMweb966802',\n articleId: '32',\n },\n};\n\nexport const Fcz: Story = {\n args: {\n aicoUrl: 'https://app.aico.swiss/19838/api/v1/',\n aicoBearerToken: 'B3NXuTbnCeppJl9NHu27Kjs7Hm3EOKSGCkR6CVwO',\n articleId: '44239',\n },\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ describe('aico-fetch-article-detail', () => {
3
+ it('renders', async () => {
4
+ expect(true).toBeTruthy();
5
+ });
6
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-fetch-article-detail.e2e.js","sourceRoot":"","sources":["../../../../src/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.ts"],"names":[],"mappings":";AAAA,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["describe('aico-fetch-article-detail', () => {\n it('renders', async () => {\n expect(true).toBeTruthy();\n });\n});\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ describe('aico-fetch-article-detail', () => {
3
+ it('renders', async () => {
4
+ expect(true).toBeTruthy();
5
+ });
6
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aico-fetch-article-detail.spec.js","sourceRoot":"","sources":["../../../../src/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.tsx"],"names":[],"mappings":";AAAA,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["describe('aico-fetch-article-detail', () => {\n it('renders', async () => {\n expect(true).toBeTruthy();\n });\n});\n"]}
@@ -0,0 +1,113 @@
1
+ /* :host { */
2
+ /* display: block; */
3
+ /* } */
4
+ /**/
5
+ /* .grid-wrapper { */
6
+ /* display: grid; */
7
+ /* height: 100%; */
8
+ /* width: 100%; */
9
+ /* justify-items: center; */
10
+ /* align-items: stretch; */
11
+ /* grid-template-columns: repeat(4, minmax(auto, 1fr)); */
12
+ /* grid-auto-rows: minmax(0, 1fr); */
13
+ /* grid-gap: 10px; */
14
+ /* } */
15
+ /**/
16
+ /* .navigation-wrapper { */
17
+ /* display: flex; */
18
+ /* justify-content: space-around; */
19
+ /* justify-items: center; */
20
+ /* align-content: center; */
21
+ /* } */
22
+ /**/
23
+ /* .navigation-button { */
24
+ /* display: inline-block; */
25
+ /* outline: none; */
26
+ /* cursor: pointer; */
27
+ /* font-size: 14px; */
28
+ /* padding: 0 12px; */
29
+ /* line-height: 20px; */
30
+ /* height: 30px; */
31
+ /* max-height: 30px; */
32
+ /* background: none; */
33
+ /* font-weight: 700; */
34
+ /* border: 0; */
35
+ /* border-radius: 0; */
36
+ /* color: #9ca3af; */
37
+ /* transition-timing-function: ease-in-out; */
38
+ /* transition-property: background; */
39
+ /* transition-duration: 150ms; */
40
+ /* box-shadow: none; */
41
+ /* &:enabled &:hover { */
42
+ /* color: #374151; */
43
+ /* } */
44
+ /* } */
45
+ /**/
46
+ /* .navigation-pages { */
47
+ /* display: inline-flex; */
48
+ /* list-style-type: none; */
49
+ /* margin: 0; */
50
+ /* padding: 0; */
51
+ /* margin-left: -1px; */
52
+ /* font-size: 14px; */
53
+ /* line-height: 20px; */
54
+ /* } */
55
+ /**/
56
+ /* .navigation-pages > li { */
57
+ /* display: flex; */
58
+ /* padding-left: 12px; */
59
+ /* padding-right: 12px; */
60
+ /* justify-content: center; */
61
+ /* align-items: center; */
62
+ /* border-width: 1px; */
63
+ /* border-color: #d1d5db; */
64
+ /* border-radius: 8px; */
65
+ /* height: 2rem; */
66
+ /* line-height: 1.25; */
67
+ /* color: #6b7280; */
68
+ /* background-color: #ffffff; */
69
+ /* } */
70
+ /**/
71
+ /* .navigation-pages > li.page-number { */
72
+ /* cursor: pointer; */
73
+ /* &:hover { */
74
+ /* color: #374151; */
75
+ /* background-color: #f3f4f6; */
76
+ /* } */
77
+ /* } */
78
+ /**/
79
+ /* .navigation-pages > li.page-selected { */
80
+ /* display: flex; */
81
+ /* padding-left: 12px; */
82
+ /* padding-right: 12px; */
83
+ /* justify-content: center; */
84
+ /* align-items: center; */
85
+ /* border-width: 1px; */
86
+ /* border-color: #d1d5db; */
87
+ /* border-radius: 8px; */
88
+ /* height: 2rem; */
89
+ /* color: #2563eb; */
90
+ /* background-color: #eff6ff; */
91
+ /**/
92
+ /* &:hover { */
93
+ /* color: #1d4ed8; */
94
+ /* background-color: #dbeafe; */
95
+ /* } */
96
+ /* } */
97
+ /**/
98
+ /* /* Tablet */ */
99
+ /* @media only screen and (min-width: 768px) and (max-width: 1023px) { */
100
+ /* .grid-wrapper { */
101
+ /* grid-template-columns: repeat(2, minmax(auto, 1fr)); */
102
+ /* } */
103
+ /* } */
104
+ /**/
105
+ /* /* Mobile */ */
106
+ /* @media only screen and (max-width: 767px) { */
107
+ /* .grid-wrapper { */
108
+ /* grid-template-columns: minmax(auto, 1fr); */
109
+ /* } */
110
+ /* .navigation-pages { */
111
+ /* display: none; */
112
+ /* } */
113
+ /* } */