@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,52 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../Entity";
3
+ import { TranslationSchema } from "../Translation";
4
+ export const CollectionContentSchema = EntitySchema.extend({
5
+ translations: z.array(TranslationSchema.extend({
6
+ description: z.string().nullable().optional(),
7
+ })),
8
+ nrOfProductsVisible: z.number().nullable().optional(),
9
+ titleSize: z.string().nullable().optional(),
10
+ brandId: z.number().nullable().optional(),
11
+ warehouseId: z.number().nullable().optional(),
12
+ products: z.array(EntitySchema.extend({
13
+ translations: z.array(TranslationSchema.extend({
14
+ name: z.string().nullable().optional(),
15
+ webName: z.string().nullable().optional(),
16
+ description: z.string().nullable().optional(),
17
+ smallDescription: z.string().nullable().optional(),
18
+ metaDescription: z.string().nullable().optional(),
19
+ manufacturer: z.string().nullable().optional(),
20
+ pageTitle: z.string().nullable().optional(),
21
+ image: z.string().nullable().optional(),
22
+ })),
23
+ releaseDate: z.date().nullable().optional(),
24
+ sku: z.string().nullable().optional(),
25
+ shopifyShops: z.any(),
26
+ urlHandle: z.string().nullable().optional(),
27
+ price: z.array(EntitySchema.extend({
28
+ value: z.number(),
29
+ buyingPrice: z.number(),
30
+ discountPrice: z.number(),
31
+ calculatedPrice: z.number().nullable(),
32
+ calculatedBuyingPrice: z.number().nullable(),
33
+ calculatedDiscountPrice: z.number().nullable(),
34
+ unitPrice: z.number().nullable(),
35
+ measurementUnitValue: z.number().nullable(),
36
+ measurementUnit: z.string().nullable(),
37
+ currencyId: z.number().nullable(),
38
+ currencyName: z.string().nullable().optional(),
39
+ isFree: z.boolean(),
40
+ }).nullable()),
41
+ priceLists: z.array(z.any()),
42
+ // TODO: will be removed
43
+ IMPORTANT: z.string().nullable().optional(),
44
+ // TODO: will be removed
45
+ pageTitle: z.string().nullable().optional(),
46
+ // TODO: will be removed
47
+ metaDescription: z.string().nullable().optional(),
48
+ // TODO: will be removed
49
+ image: z.string().nullable().optional(),
50
+ })),
51
+ });
52
+ //# sourceMappingURL=CollectionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/CollectionContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IACzD,YAAY,EAAE,CAAC,CAAC,KAAK,CACnB,iBAAiB,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE,CAAC,CAAC,MAAM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AS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,wBAAwB;QACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACjD,wBAAwB;QACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../Entity';\nimport { TranslationSchema } from '../Translation';\n\nexport const CollectionContentSchema = EntitySchema.extend({\n translations: z.array(\n TranslationSchema.extend({\n description: z.string().nullable().optional(),\n }),\n ),\n nrOfProductsVisible: z.number().nullable().optional(),\n titleSize: z.string().nullable().optional(),\n brandId: z.number().nullable().optional(),\n warehouseId: z.number().nullable().optional(),\n products: z.array(\n EntitySchema.extend({\n translations: z.array(\n TranslationSchema.extend({\n name: z.string().nullable().optional(),\n webName: z.string().nullable().optional(),\n\n description: z.string().nullable().optional(),\n smallDescription: z.string().nullable().optional(),\n metaDescription: z.string().nullable().optional(),\n\n manufacturer: z.string().nullable().optional(),\n pageTitle: z.string().nullable().optional(),\n image: z.string().nullable().optional(),\n }),\n ),\n releaseDate: z.date().nullable().optional(),\n sku: z.string().nullable().optional(),\n shopifyShops: z.any(), // TODO: too nested, maybe not needed?\n urlHandle: z.string().nullable().optional(),\n price: z.array(\n EntitySchema.extend({\n value: z.number(),\n buyingPrice: z.number(),\n discountPrice: z.number(),\n calculatedPrice: z.number().nullable(),\n calculatedBuyingPrice: z.number().nullable(),\n calculatedDiscountPrice: z.number().nullable(),\n unitPrice: z.number().nullable(),\n measurementUnitValue: z.number().nullable(),\n measurementUnit: z.string().nullable(),\n currencyId: z.number().nullable(),\n currencyName: z.string().nullable().optional(),\n isFree: z.boolean(),\n }).nullable(),\n ),\n priceLists: z.array(z.any()), // TODO: too nested, maybe not needed?\n // TODO: will be removed\n IMPORTANT: z.string().nullable().optional(),\n // TODO: will be removed\n pageTitle: z.string().nullable().optional(),\n // TODO: will be removed\n metaDescription: z.string().nullable().optional(),\n // TODO: will be removed\n image: z.string().nullable().optional(),\n }),\n ),\n});\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DividerContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DividerContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/DividerContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type DividerContent = Entity & {\n translations: (Translation & { isOnlyMargin: boolean })[];\n isOnlyMargin: boolean;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DocumentContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/DocumentContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type DocumentContent = Entity & {\n translations: (Translation & {\n document?: string;\n picture?: string;\n })[];\n document: null;\n picture: null;\n title: null;\n link?: string;\n isDocumentDisplayedAsButton: boolean;\n buttonBackgroundColor?: string;\n buttonTextColor?: string;\n buttonHoverColor?: string;\n buttonBorderColor?: string;\n fontSize?: string;\n fontFamily?: string;\n};\n"]}
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../Entity";
3
+ import { TranslationSchema } from "../Translation";
4
+ export const FaqContentSchema = EntitySchema.extend({
5
+ faqItems: z.array(EntitySchema.extend({
6
+ translations: z.array(TranslationSchema.extend({
7
+ question: z.string().nullable().optional(),
8
+ answer: z.string().nullable().optional(),
9
+ })),
10
+ })),
11
+ });
12
+ //# sourceMappingURL=FaqContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FaqContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/FaqContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,YAAY,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,CAAC,CAAC,KAAK,CACnB,iBAAiB,CAAC,MAAM,CAAC;YACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACzC,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../Entity';\nimport { TranslationSchema } from '../Translation';\n\nexport const FaqContentSchema = EntitySchema.extend({\n faqItems: z.array(\n EntitySchema.extend({\n translations: z.array(\n TranslationSchema.extend({\n question: z.string().nullable().optional(),\n answer: z.string().nullable().optional(),\n }),\n ),\n }),\n ),\n});\n\nexport type FaqContent = z.infer<typeof FaqContentSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HeadingContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeadingContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/HeadingContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type HeadingContent = Entity & {\n translations: (Translation & {\n description?: string;\n })[];\n picture?: string;\n titleSize?: string;\n textColor?: string;\n textBackgroundColor: string;\n isImageHeightHalfSize: boolean;\n isHeadingAlignedWithText: boolean;\n isTextAtMiddleOfImage: boolean;\n fontFamily?: string;\n fontSize?: number;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HtmlContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HtmlContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/HtmlContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type HtmlContent = Entity & {\n translations: Translation[];\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LinkContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/LinkContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type LinkContent = Entity & {\n translations: (Translation & {\n link?: string;\n linkText?: string;\n imageUrl?: string;\n })[];\n link?: string;\n linkText?: string;\n title?: string;\n imageUrl?: string;\n\n pictureSize: string;\n picturePosition?: string;\n\n isButtonLink: boolean;\n isImageFullSize: boolean;\n isImageLink?: boolean;\n\n backgroundButtonColor?: string;\n textButtonColor?: string;\n hoverColor?: string;\n\n fontSize?: number;\n fontFamily?: string;\n};\n"]}
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../Entity";
3
+ import { NewsArticleSchema } from "./news/NewsArticle";
4
+ export const NewsContentSchema = EntitySchema.extend({
5
+ landscapePicture: z.string().nullable().optional(),
6
+ portraitPicture: z.string().nullable().optional(),
7
+ titleSize: z.string(),
8
+ title: z.string().nullable().optional(),
9
+ text: z.string().nullable().optional(),
10
+ textColor: z.string().nullable().optional(),
11
+ textBackgroundColor: z.string().nullable().optional(),
12
+ textHoverColor: z.string().nullable().optional(),
13
+ maxPerRow: z.number(),
14
+ maxToDisplay: z.number(),
15
+ IMPORTANT: z.string().nullable().optional(),
16
+ text_hover_color: z.string().nullable().optional(),
17
+ aicoShopNews: z.array(NewsArticleSchema),
18
+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AAC,KAAK,CAAC,iBAAiB,CAAC;CACzC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../Entity';\nimport { NewsArticleSchema } from './news/NewsArticle';\n\nexport const NewsContentSchema = EntitySchema.extend({\n landscapePicture: z.string().nullable().optional(),\n portraitPicture: z.string().nullable().optional(),\n titleSize: z.string(),\n title: z.string().nullable().optional(),\n text: z.string().nullable().optional(),\n textColor: z.string().nullable().optional(),\n textBackgroundColor: z.string().nullable().optional(),\n textHoverColor: z.string().nullable().optional(),\n maxPerRow: z.number(),\n maxToDisplay: z.number(),\n IMPORTANT: z.string().nullable().optional(), // TODO: will be deleted on BE\n text_hover_color: z.string().nullable().optional(), // TODO: will be deleted on BE\n\n aicoShopNews: z.array(NewsArticleSchema),\n});\n\nexport type NewsContent = z.infer<typeof NewsContentSchema>;\n"]}
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../Entity";
3
+ import { TranslationSchema } from "../Translation";
4
+ export const LandingPageSchema = EntitySchema.extend({
5
+ translations: z.array(TranslationSchema.extend({
6
+ name: z.string().nullable().optional(),
7
+ imageAlt: z.string().nullable().optional(),
8
+ excerpt: z.string().nullable().optional(),
9
+ buttonText: z.string().nullable().optional(),
10
+ })),
11
+ lastSyncAt: z.date().nullable().optional(),
12
+ pageTitle: z.string().nullable().optional(),
13
+ metaDescription: z.string().nullable().optional(),
14
+ urlHandle: z.string().nullable().optional(),
15
+ image: z.string().nullable().optional(),
16
+ focusXCoordinate: z.number().nullable().optional(),
17
+ focusYCoordinate: z.number().nullable().optional(),
18
+ focusXPercentage: z.number().nullable().optional(),
19
+ focusYPercentage: z.number().nullable().optional(),
20
+ isTemplate: z.boolean(),
21
+ isPublic: z.boolean(),
22
+ });
23
+ export const PageContetSchema = EntitySchema.extend({
24
+ buttonBackgroundColor: z.string().nullable().optional(),
25
+ buttonTextColor: z.string().nullable().optional(),
26
+ textColor: z.string().nullable().optional(),
27
+ backgroundColor: z.string().nullable().optional(),
28
+ externalLink: z.string().nullable().optional(),
29
+ fontType: z.string().nullable().optional(),
30
+ fontSize: z.number().nullable().optional(),
31
+ borderColor: z.string().nullable().optional(),
32
+ titleColor: z.string().nullable().optional(),
33
+ openExternalLink: z.boolean(),
34
+ isImageZoomedIn: z.boolean(),
35
+ landingPage: LandingPageSchema,
36
+ });
37
+ //# sourceMappingURL=PageContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/PageContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IACnD,YAAY,EAAE,CAAC,CAAC,KAAK,CACnB,iBAAiB,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC1C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC7C,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACjD,SAAS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AW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../Entity';\nimport { TranslationSchema } from '../Translation';\n\nexport const LandingPageSchema = EntitySchema.extend({\n translations: z.array(\n TranslationSchema.extend({\n name: z.string().nullable().optional(),\n imageAlt: z.string().nullable().optional(),\n excerpt: z.string().nullable().optional(),\n buttonText: z.string().nullable().optional(),\n }),\n ),\n lastSyncAt: z.date().nullable().optional(),\n pageTitle: z.string().nullable().optional(),\n metaDescription: z.string().nullable().optional(),\n urlHandle: z.string().nullable().optional(),\n image: z.string().nullable().optional(),\n focusXCoordinate: z.number().nullable().optional(),\n focusYCoordinate: z.number().nullable().optional(),\n focusXPercentage: z.number().nullable().optional(),\n focusYPercentage: z.number().nullable().optional(),\n isTemplate: z.boolean(),\n isPublic: z.boolean(),\n});\n\nexport type LandingPage = z.infer<typeof LandingPageSchema>;\n\nexport const PageContetSchema = EntitySchema.extend({\n buttonBackgroundColor: z.string().nullable().optional(),\n buttonTextColor: z.string().nullable().optional(),\n textColor: z.string().nullable().optional(),\n backgroundColor: z.string().nullable().optional(),\n externalLink: z.string().nullable().optional(),\n fontType: z.string().nullable().optional(),\n fontSize: z.number().nullable().optional(),\n borderColor: z.string().nullable().optional(),\n titleColor: z.string().nullable().optional(),\n openExternalLink: z.boolean(),\n isImageZoomedIn: z.boolean(),\n landingPage: LandingPageSchema,\n});\n\nexport type PageContent = z.infer<typeof PageContetSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableContet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableContet.js","sourceRoot":"","sources":["../../../../src/model/article/content/TableContet.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type TableContentColumn = Entity & {\n translations: (Translation & {\n columnData?: string;\n\n // ATTENTION! Deprecated fields, will be deleted, use field from translation\n IMPORTANT?: string;\n label?: object;\n content?: object;\n })[];\n\n // ATTENTION! Deprecated fields, will be deleted, use field from translation\n IMPORTANT?: string;\n sort?: null;\n isHeading?: null;\n};\n\nexport type TableContentRow = Entity & {\n sort: number;\n isHeading: boolean;\n rowColumns: TableContentColumn[];\n};\n\nexport type TableContent = Entity & {\n translations: (Translation & {\n additionalText?: string;\n })[];\n\n sort: number;\n titleSize?: string;\n\n firstColor?: string;\n secondColor?: string;\n\n tableRows: TableContentRow[];\n\n // ATTENTION! Deprecated fields, will be deleted, use field from translation\n IMPORTANT?: string;\n bulletBullets?: object[];\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TestimonialContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestimonialContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/TestimonialContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type TestimonialContent = Entity & {\n testimonial: Translation & {\n image?: string;\n link?: string;\n rating?: number;\n };\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/TextContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type TextContentTranslation = Translation & {\n linkText?: string;\n pictureLabel?: string;\n picture?: string;\n link?: string;\n optimizedPicture?: string;\n promptText?: string;\n};\n\nexport type TextContent = Entity & {\n translations: TextContentTranslation[];\n\n sort?: number;\n\n picturePosition?: string;\n pictureSize?: string;\n pictureLabelPosition?: string;\n\n titleSize?: string;\n\n fontSize?: string;\n fontFamily?: string;\n\n verticalAlign: string;\n alignmentEnabled: boolean;\n\n hasBackgroundColor: boolean;\n backgroundColor?: string;\n\n shouldJustifyText: boolean;\n textColor?: string;\n isButtonRightUnderText: boolean;\n isContentDisplayedAsPrompt: boolean;\n\n pictureFontOption: string;\n addBorder: boolean;\n borderColor?: string;\n\n focusXCoordinate?: number;\n focusYCoordinate?: number;\n focusXPercentage?: number;\n focusYPercentage?: number;\n\n // ATTENTION! Deprecated fields, will be deleted, use field from translation\n promptText?: string;\n link?: string;\n picture?: string;\n IMPORTANT?: string;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TitleContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/TitleContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type TitleContent = Entity & {\n translations: Translation[];\n size?: string;\n hasUnderscore: boolean;\n underscoreColor?: string;\n titleColor?: string;\n};\n"]}
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../Entity";
3
+ import { TranslationSchema } from "../Translation";
4
+ export const UploadContentSchema = EntitySchema.extend({
5
+ translations: z.array(TranslationSchema),
6
+ videoUrl: z.string().nullable().optional(),
7
+ shouldHideFile: z.boolean(),
8
+ uploads: z.array(z.object({
9
+ name: z.string().nullable().optional(),
10
+ path: z.string().nullable().optional(),
11
+ })),
12
+ });
13
+ //# sourceMappingURL=UploadContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UploadContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/UploadContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IACrD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../Entity';\nimport { TranslationSchema } from '../Translation';\n\nexport const UploadContentSchema = EntitySchema.extend({\n translations: z.array(TranslationSchema),\n videoUrl: z.string().nullable().optional(),\n shouldHideFile: z.boolean(),\n uploads: z.array(\n z.object({\n name: z.string().nullable().optional(),\n path: z.string().nullable().optional(),\n }),\n ),\n});\n\nexport type UploadContent = z.infer<typeof UploadContentSchema>;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VideoContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoContent.js","sourceRoot":"","sources":["../../../../src/model/article/content/VideoContent.ts"],"names":[],"mappings":"","sourcesContent":["import { Entity } from '../../Entity';\nimport { Translation } from '../Translation';\n\nexport type VideoContent = Entity & {\n translations: (Translation & {\n videoUrl?: string;\n })[];\n\n sort?: number;\n titleSize?: string;\n isVideoMinimized: boolean;\n\n localVideoUrl?: string;\n\n // ATTENTION! Deprecated fields, will be deleted, use field from translation\n IMPORTANT?: string;\n videoUrl?: string;\n video?: string;\n};\n"]}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../../Entity";
3
+ import { TranslationSchema } from "../../Translation";
4
+ export const NewsAlbumSchema = EntitySchema.extend({
5
+ name: z.string().nullable().optional(),
6
+ images: z.array(EntitySchema.extend({
7
+ url: z.string().nullable().optional(),
8
+ type: z.string().nullable().optional(),
9
+ order: z.number().nullable().optional(),
10
+ optimizedImage: z.string().nullable().optional(),
11
+ translations: z.array(TranslationSchema.extend({
12
+ name: z.string().nullable().optional(),
13
+ description: z.string().nullable().optional(),
14
+ alternativeText: z.string().nullable().optional(),
15
+ caption: z.string().nullable().optional(),
16
+ alternative_text: z.string().nullable().optional(), // TODO: will be removed on backend
17
+ })),
18
+ })),
19
+ });
20
+ //# sourceMappingURL=NewsAlbum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsAlbum.js","sourceRoot":"","sources":["../../../../../src/model/article/content/news/NewsAlbum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,YAAY,CAAC,MAAM,CAAC;QAClB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAChD,YAAY,EAAE,CAAC,CAAC,KAAK,CACnB,iBAAiB,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YAC7C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YAEzC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,mCAAmC;SACxF,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../../Entity';\nimport { TranslationSchema } from '../../Translation';\n\nexport const NewsAlbumSchema = EntitySchema.extend({\n name: z.string().nullable().optional(),\n images: z.array(\n EntitySchema.extend({\n url: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n order: z.number().nullable().optional(),\n optimizedImage: z.string().nullable().optional(),\n translations: z.array(\n TranslationSchema.extend({\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n alternativeText: z.string().nullable().optional(),\n caption: z.string().nullable().optional(),\n\n alternative_text: z.string().nullable().optional(), // TODO: will be removed on backend\n }),\n ),\n }),\n ),\n});\n\nexport type NewsAlbum = z.infer<typeof NewsAlbumSchema>;\n"]}
@@ -0,0 +1,43 @@
1
+ import { z } from "zod";
2
+ import { NewsCategorySchema } from "./NewsCategory";
3
+ import { TranslationSchema } from "../../Translation";
4
+ import { NewsTagSchema } from "./NewsTag";
5
+ import { NewsAlbumSchema } from "./NewsAlbum";
6
+ export const NewsArticleSchema = z.object({
7
+ id: z.number().or(z.string()),
8
+ translations: z.array(TranslationSchema.extend({
9
+ name: z.string().nullable().optional(),
10
+ description: z.string().nullable().optional(),
11
+ excerpt: z.string().nullable().optional(),
12
+ shouldShowTranslation: z.boolean(),
13
+ image: z.string().nullable().optional(),
14
+ optimizedImage: z.string().nullable().optional(),
15
+ portraitImage: z.string().nullable().optional(),
16
+ optimizedPortraitImage: z.string().nullable().optional(),
17
+ optimizedListImage: z.string().nullable().optional(),
18
+ })),
19
+ name: z.string().nullable().optional(),
20
+ description: z.string().nullable().optional(),
21
+ pageTitle: z.string().nullable().optional(),
22
+ metaDescription: z.string().nullable().optional(),
23
+ urlHandle: z.string().nullable().optional(),
24
+ excerpt: z.string().nullable().optional(),
25
+ publishDate: z.date().nullable().optional(),
26
+ author: z.string().nullable().optional(),
27
+ videoUrl: z.string().nullable().optional(),
28
+ isActive: z.boolean(),
29
+ isSpecialArticle: z.boolean(),
30
+ image: z.string().nullable().optional(),
31
+ headlineImage: z.string().nullable().optional(),
32
+ portraitImage: z.string().nullable().optional(),
33
+ optimizedPortraitImage: z.string().nullable().optional(),
34
+ optimizedImage: z.string().nullable().optional(),
35
+ optimizedListImage: z.string().nullable().optional(),
36
+ brandIds: z.array(z.number().or(z.string())),
37
+ sellerIds: z.array(z.number().or(z.string())),
38
+ newsCategory: NewsCategorySchema,
39
+ newsTags: z.array(NewsTagSchema),
40
+ album: NewsAlbumSchema,
41
+ contentBuilder: z.any().nullable().optional(),
42
+ });
43
+ //# sourceMappingURL=NewsArticle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../../src/model/article/content/news/NewsArticle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAA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C,MAAM,EAAE,CAAC,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE,kBAAkB;IAChC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAChC,KAAK,EAAE,eAAe;IACtB,cAAc,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { NewsCategorySchema } from './NewsCategory';\nimport { TranslationSchema } from '../../Translation';\nimport { NewsTagSchema } from './NewsTag';\nimport { NewsAlbumSchema } from './NewsAlbum';\n\nexport const NewsArticleSchema = z.object({\n id: z.number().or(z.string()),\n translations: z.array(\n TranslationSchema.extend({\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n excerpt: z.string().nullable().optional(),\n shouldShowTranslation: z.boolean(),\n image: z.string().nullable().optional(),\n optimizedImage: z.string().nullable().optional(),\n portraitImage: z.string().nullable().optional(),\n optimizedPortraitImage: z.string().nullable().optional(),\n optimizedListImage: z.string().nullable().optional(),\n }),\n ),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n pageTitle: z.string().nullable().optional(),\n metaDescription: z.string().nullable().optional(),\n urlHandle: z.string().nullable().optional(),\n excerpt: z.string().nullable().optional(),\n publishDate: z.date().nullable().optional(),\n author: z.string().nullable().optional(),\n videoUrl: z.string().nullable().optional(),\n isActive: z.boolean(),\n isSpecialArticle: z.boolean(),\n image: z.string().nullable().optional(),\n headlineImage: z.string().nullable().optional(),\n portraitImage: z.string().nullable().optional(),\n optimizedPortraitImage: z.string().nullable().optional(),\n optimizedImage: z.string().nullable().optional(),\n optimizedListImage: z.string().nullable().optional(),\n brandIds: z.array(z.number().or(z.string())),\n sellerIds: z.array(z.number().or(z.string())),\n newsCategory: NewsCategorySchema,\n newsTags: z.array(NewsTagSchema),\n album: NewsAlbumSchema,\n contentBuilder: z.any().nullable().optional(),\n});\n\nexport type NewsArticle = z.infer<typeof NewsArticleSchema>;\n"]}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../../Entity";
3
+ import { TranslationSchema } from "../../Translation";
4
+ export const NewsCategorySchema = EntitySchema.extend({
5
+ translations: z.array(TranslationSchema.extend({
6
+ name: z.string().nullable().optional(),
7
+ webName: z.string().nullable().optional(),
8
+ description: z.string().nullable().optional(),
9
+ smallDescription: z.string().nullable().optional(),
10
+ })),
11
+ image: z.string().nullable().optional(),
12
+ sortingNumber: z.number(),
13
+ isActive: z.boolean(),
14
+ sorting_number: z.number(),
15
+ is_active: z.boolean(), // TODO: will be removed on backend
16
+ });
17
+ //# sourceMappingURL=NewsCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsCategory.js","sourceRoot":"","sources":["../../../../../src/model/article/content/news/NewsCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,MAAM,CAAC;IACpD,YAAY,EAAE,CAAC,CAAC,KAAK,CACnB,iBAAiB,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC7C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACnD,CAAC,CACH;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,mCAAmC;CAC5D,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../../Entity';\nimport { TranslationSchema } from '../../Translation';\n\nexport const NewsCategorySchema = EntitySchema.extend({\n translations: z.array(\n TranslationSchema.extend({\n name: z.string().nullable().optional(),\n webName: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n smallDescription: z.string().nullable().optional(),\n }),\n ),\n image: z.string().nullable().optional(),\n sortingNumber: z.number(),\n isActive: z.boolean(),\n sorting_number: z.number(), // TODO: will be removed on backend\n is_active: z.boolean(), // TODO: will be removed on backend\n});\n\nexport type NewsCategory = z.infer<typeof NewsCategorySchema>;\n"]}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ import { EntitySchema } from "../../../Entity";
3
+ import { TranslationSchema } from "../../Translation";
4
+ export const NewsTagSchema = EntitySchema.extend({
5
+ translations: TranslationSchema.extend({
6
+ name: z.string().nullable().optional(),
7
+ webName: z.string().nullable().optional(),
8
+ }),
9
+ });
10
+ //# sourceMappingURL=NewsTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsTag.js","sourceRoot":"","sources":["../../../../../src/model/article/content/news/NewsTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,iBAAiB,CAAC,MAAM,CAAC;QACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC1C,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EntitySchema } from '../../../Entity';\nimport { TranslationSchema } from '../../Translation';\n\nexport const NewsTagSchema = EntitySchema.extend({\n translations: TranslationSchema.extend({\n name: z.string().nullable().optional(),\n webName: z.string().nullable().optional(),\n }),\n});\n\nexport type NewsTag = z.infer<typeof NewsTagSchema>;\n"]}
@@ -0,0 +1,5 @@
1
+ const ConditionalRender = ({ condition }, children) => {
2
+ return condition && children && children.length > 0 ? children : [];
3
+ };
4
+ export default ConditionalRender;
5
+ //# sourceMappingURL=ConditionalRender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalRender.js","sourceRoot":"","sources":["../../src/utils/ConditionalRender.tsx"],"names":[],"mappings":"AAMA,MAAM,iBAAiB,GAAgD,CAAC,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE;IACjG,OAAO,SAAS,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACtE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { FunctionalComponent } from '@stencil/core';\n\nexport type ConditionalRenderProps = {\n condition: boolean;\n};\n\nconst ConditionalRender: FunctionalComponent<ConditionalRenderProps> = ({ condition }, children) => {\n return condition && children && children.length > 0 ? children : [];\n};\n\nexport default ConditionalRender;\n"]}
@@ -0,0 +1,5 @@
1
+ const ConditionalWrap = ({ condition, wrap }, children) => {
2
+ return condition ? wrap(children) : children;
3
+ };
4
+ export default ConditionalWrap;
5
+ //# sourceMappingURL=ConditionalWrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalWrap.js","sourceRoot":"","sources":["../../src/utils/ConditionalWrap.tsx"],"names":[],"mappings":"AAOA,MAAM,eAAe,GAA8C,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE;IACnG,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC/C,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { FunctionalComponent, VNode } from '@stencil/core';\n\nexport type ConditionalWrapProps = {\n condition: boolean;\n wrap: (children: VNode | VNode[]) => VNode;\n};\n\nconst ConditionalWrap: FunctionalComponent<ConditionalWrapProps> = ({ condition, wrap }, children) => {\n return condition ? wrap(children) : children;\n};\n\nexport default ConditionalWrap;\n"]}
@@ -1,4 +1,85 @@
1
- export function format(first, middle, last) {
2
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
1
+ import { getAuthenticatedHeaders, getAuthenticatedRequest } from "../model/AicoApiRequestInfo";
2
+ export async function fetchNewsArticles(api, page, size, signal) {
3
+ const queryParams = new URLSearchParams();
4
+ queryParams.set('page[number]', String(page));
5
+ queryParams.set('page[size]', String(size));
6
+ queryParams.set('filter[isActive]', '1');
7
+ queryParams.set('filter[excludeTag][]', 'Eisnull');
8
+ queryParams.set('sort', '-publishDate');
9
+ const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
10
+ const response = await fetch(request);
11
+ return await response.json();
12
+ }
13
+ export async function fetchSpecialNewsArticles(api, page, size, signal) {
14
+ const queryParams = new URLSearchParams();
15
+ queryParams.set('page[number]', String(page));
16
+ queryParams.set('page[size]', String(size));
17
+ queryParams.set('filter[isActive]', '1');
18
+ queryParams.set('filter[isSpecialArticle]', '1');
19
+ queryParams.set('filter[isLightVersion]', 'true');
20
+ queryParams.set('filter[excludeTag][]', 'Eisnull');
21
+ queryParams.set('sort', '-publishDate');
22
+ const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
23
+ const response = await fetch(request);
24
+ return await response.json();
25
+ }
26
+ export async function fetchNewsArticle(api, articleId, signal) {
27
+ const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);
28
+ const response = await fetch(request);
29
+ const article = await response.json();
30
+ return article.data;
31
+ }
32
+ export async function fetchNewsArticleByHandle(api, urlHandle, signal) {
33
+ const queryParams = new URLSearchParams();
34
+ queryParams.set('filter[urlHandle]', urlHandle);
35
+ const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
36
+ const response = await fetch(request);
37
+ const articles = await response.json();
38
+ return articles.data[0];
39
+ }
40
+ export async function fetchArticle(url, bearerToken, signal) {
41
+ const request = new Request(new URL(url), {
42
+ headers: getAuthenticatedHeaders(bearerToken),
43
+ signal,
44
+ });
45
+ const response = await fetch(request);
46
+ return await response.json();
47
+ }
48
+ export function getImageWidthPrc(pictureSize) {
49
+ switch (pictureSize) {
50
+ case 'extra-small':
51
+ return '28%';
52
+ case 'small':
53
+ return '40%';
54
+ case 'large':
55
+ return '80%';
56
+ case 'extra large': // TODO: has - or not?
57
+ return '100%';
58
+ default:
59
+ return '60%';
60
+ }
61
+ }
62
+ export function getYoutubeURL(url) {
63
+ const regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#&?]*).*/;
64
+ const match = url.match(regExp);
65
+ if (match && match[1].length == 11) {
66
+ return `https://www.youtube.com/embed/${match[1]}`;
67
+ }
68
+ return null;
69
+ }
70
+ export function strIsNullOrEmptyOrWhitespace(str) {
71
+ if (!str || str === ' ') {
72
+ return true;
73
+ }
74
+ return false;
75
+ }
76
+ export function getClass(conditions) {
77
+ const classes = [];
78
+ for (const kvp of Object.entries(conditions)) {
79
+ if (kvp[1]) {
80
+ classes.push(kvp[0]);
81
+ }
82
+ }
83
+ return classes.join(' ');
3
84
  }
4
85
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAChE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGnH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,EAAE,MAAmB;IAC9G,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAC1C,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9C,WAAW,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,WAAW,CAAC,GAAG,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;IACzC,WAAW,CAAC,GAAG,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;IACnD,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAC1E,MAAM,QAAQ,GAAG,M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2D,CAAC;IAC3E,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;QAClC,OAAO,iCAAiC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,GAAmB;IAC9D,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["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 fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"]}
@@ -1,16 +1,6 @@
1
- import { format } from "./utils";
2
- describe('format', () => {
3
- it('returns empty string for no names defined', () => {
4
- expect(format(undefined, undefined, undefined)).toEqual('');
5
- });
6
- it('formats just first names', () => {
7
- expect(format('Joseph', undefined, undefined)).toEqual('Joseph');
8
- });
9
- it('formats first and last names', () => {
10
- expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');
11
- });
12
- it('formats first, middle and last names', () => {
13
- expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');
1
+ "use strict";
2
+ describe('runs', () => {
3
+ it('hello-world', () => {
4
+ expect(true).toBeTruthy();
14
5
  });
15
6
  });
16
- //# sourceMappingURL=utils.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../src/utils/utils.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { format } from './utils';\n\ndescribe('format', () => {\n it('returns empty string for no names defined', () => {\n expect(format(undefined, undefined, undefined)).toEqual('');\n });\n\n it('formats just first names', () => {\n expect(format('Joseph', undefined, undefined)).toEqual('Joseph');\n });\n\n it('formats first and last names', () => {\n expect(format('Joseph', undefined, 'Publique')).toEqual('Joseph Publique');\n });\n\n it('formats first, middle and last names', () => {\n expect(format('Joseph', 'Quincy', 'Publique')).toEqual('Joseph Quincy Publique');\n });\n});\n"]}
1
+ {"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../src/utils/utils.spec.ts"],"names":[],"mappings":";AAAA,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE;QACrB,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["describe('runs', () => {\n it('hello-world', () => {\n expect(true).toBeTruthy();\n });\n});\n"]}
@@ -0,0 +1,7 @@
1
+ const ConditionalRender = ({ condition }, children) => {
2
+ return condition && children && children.length > 0 ? children : [];
3
+ };
4
+
5
+ export { ConditionalRender as C };
6
+
7
+ //# sourceMappingURL=ConditionalRender.js.map
@@ -0,0 +1 @@
1
+ {"file":"ConditionalRender.js","mappings":"MAMM,iBAAiB,GAAgD,CAAC,EAAE,SAAS,EAAE,EAAE,QAAQ;IAC7F,OAAO,SAAS,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,QAAQ,GAAG,EAAE,CAAC;AACtE;;;;","names":[],"sources":["src/utils/ConditionalRender.tsx"],"sourcesContent":["import { FunctionalComponent } from '@stencil/core';\n\nexport type ConditionalRenderProps = {\n condition: boolean;\n};\n\nconst ConditionalRender: FunctionalComponent<ConditionalRenderProps> = ({ condition }, children) => {\n return condition && children && children.length > 0 ? children : [];\n};\n\nexport default ConditionalRender;\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoAlbumContent extends Components.AicoAlbumContent, HTMLElement {}
4
+ export const AicoAlbumContent: {
5
+ prototype: AicoAlbumContent;
6
+ new (): AicoAlbumContent;
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 AicoAlbumContent$1, d as defineCustomElement$1 } from './aico-album-content2.js';
2
+
3
+ const AicoAlbumContent = AicoAlbumContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoAlbumContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-album-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-album-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}