valtech-components 2.0.795 → 2.0.796

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 (1429) hide show
  1. package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +94 -0
  2. package/esm2022/lib/components/atoms/avatar/types.mjs +2 -0
  3. package/esm2022/lib/components/atoms/box/box.component.mjs +88 -0
  4. package/esm2022/lib/components/atoms/box/types.mjs +2 -0
  5. package/esm2022/lib/components/atoms/button/button.component.mjs +174 -0
  6. package/esm2022/lib/components/atoms/button/factory.mjs +217 -0
  7. package/esm2022/lib/components/atoms/container/container.component.mjs +52 -0
  8. package/esm2022/lib/components/atoms/container/types.mjs +2 -0
  9. package/esm2022/lib/components/atoms/countdown/countdown.component.mjs +340 -0
  10. package/esm2022/lib/components/atoms/countdown/types.mjs +27 -0
  11. package/esm2022/lib/components/atoms/display/display.component.mjs +51 -0
  12. package/esm2022/lib/components/atoms/display/types.mjs +2 -0
  13. package/esm2022/lib/components/atoms/divider/divider.component.mjs +27 -0
  14. package/esm2022/lib/components/atoms/divider/types.mjs +2 -0
  15. package/esm2022/lib/components/atoms/fab/fab.component.mjs +190 -0
  16. package/esm2022/lib/components/atoms/fab/types.mjs +2 -0
  17. package/esm2022/lib/components/atoms/glass/glass.component.mjs +125 -0
  18. package/esm2022/lib/components/atoms/glass/types.mjs +2 -0
  19. package/esm2022/lib/components/atoms/glow/glow.component.mjs +95 -0
  20. package/esm2022/lib/components/atoms/glow/types.mjs +2 -0
  21. package/esm2022/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.mjs +82 -0
  22. package/esm2022/lib/components/atoms/horizontal-scroll/types.mjs +2 -0
  23. package/esm2022/lib/components/atoms/href/href.component.mjs +62 -0
  24. package/esm2022/lib/components/atoms/href/types.mjs +2 -0
  25. package/esm2022/lib/components/atoms/icon/icon.component.mjs +29 -0
  26. package/esm2022/lib/components/atoms/icon/types.mjs +2 -0
  27. package/esm2022/lib/components/atoms/image/image.component.mjs +507 -0
  28. package/esm2022/lib/components/atoms/image/types.mjs +2 -0
  29. package/esm2022/lib/components/atoms/pattern/motifs.mjs +147 -0
  30. package/esm2022/lib/components/atoms/pattern/pattern.component.mjs +178 -0
  31. package/esm2022/lib/components/atoms/pattern/types.mjs +2 -0
  32. package/esm2022/lib/components/atoms/price-tag/price-tag.component.mjs +235 -0
  33. package/esm2022/lib/components/atoms/price-tag/types.mjs +15 -0
  34. package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +91 -0
  35. package/esm2022/lib/components/atoms/progress-bar/types.mjs +2 -0
  36. package/esm2022/lib/components/atoms/progress-ring/progress-ring.component.mjs +149 -0
  37. package/esm2022/lib/components/atoms/progress-ring/types.mjs +2 -0
  38. package/esm2022/lib/components/atoms/qr-code/qr-code.component.mjs +394 -0
  39. package/esm2022/lib/components/atoms/qr-code/types.mjs +2 -0
  40. package/esm2022/lib/components/atoms/rights-footer/rights-footer.component.mjs +108 -0
  41. package/esm2022/lib/components/atoms/rights-footer/types.mjs +2 -0
  42. package/esm2022/lib/components/atoms/skeleton/skeleton.component.mjs +193 -0
  43. package/esm2022/lib/components/atoms/skeleton/types.mjs +13 -0
  44. package/esm2022/lib/components/atoms/text/text.component.mjs +132 -0
  45. package/esm2022/lib/components/atoms/text/types.mjs +2 -0
  46. package/esm2022/lib/components/atoms/title/title.component.mjs +68 -0
  47. package/esm2022/lib/components/atoms/title/types.mjs +22 -0
  48. package/esm2022/lib/components/atoms/user-avatar/types.mjs +2 -0
  49. package/esm2022/lib/components/atoms/user-avatar/user-avatar.component.mjs +209 -0
  50. package/esm2022/lib/components/molecules/accordion/accordion.component.mjs +120 -0
  51. package/esm2022/lib/components/molecules/accordion/types.mjs +2 -0
  52. package/esm2022/lib/components/molecules/action-card/action-card.component.mjs +273 -0
  53. package/esm2022/lib/components/molecules/action-card/types.mjs +11 -0
  54. package/esm2022/lib/components/molecules/action-header/action-header.component.mjs +55 -0
  55. package/esm2022/lib/components/molecules/action-header/types.mjs +2 -0
  56. package/esm2022/lib/components/molecules/ad-slot/ad-slot.component.mjs +274 -0
  57. package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +119 -0
  58. package/esm2022/lib/components/molecules/alert-box/types.mjs +2 -0
  59. package/esm2022/lib/components/molecules/breadcrumb/breadcrumb.component.mjs +130 -0
  60. package/esm2022/lib/components/molecules/breadcrumb/types.mjs +2 -0
  61. package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +63 -0
  62. package/esm2022/lib/components/molecules/button-group/types.mjs +2 -0
  63. package/esm2022/lib/components/molecules/card/card.component.mjs +450 -0
  64. package/esm2022/lib/components/molecules/card/types.mjs +16 -0
  65. package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +82 -0
  66. package/esm2022/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.mjs +79 -0
  67. package/esm2022/lib/components/molecules/chip-group/chip-group.component.mjs +166 -0
  68. package/esm2022/lib/components/molecules/chip-group/types.mjs +2 -0
  69. package/esm2022/lib/components/molecules/code-display/code-display.component.mjs +115 -0
  70. package/esm2022/lib/components/molecules/code-display/types.mjs +2 -0
  71. package/esm2022/lib/components/molecules/command-display/command-display.component.mjs +49 -0
  72. package/esm2022/lib/components/molecules/command-display/types.mjs +2 -0
  73. package/esm2022/lib/components/molecules/comment/comment.component.mjs +618 -0
  74. package/esm2022/lib/components/molecules/comment/types.mjs +2 -0
  75. package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +41 -0
  76. package/esm2022/lib/components/molecules/comment-input/types.mjs +2 -0
  77. package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +42 -0
  78. package/esm2022/lib/components/molecules/content-loader/types.mjs +2 -0
  79. package/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +218 -0
  80. package/esm2022/lib/components/molecules/content-reaction/types.mjs +2 -0
  81. package/esm2022/lib/components/molecules/currency-input/currency-input.component.mjs +347 -0
  82. package/esm2022/lib/components/molecules/currency-input/types.mjs +18 -0
  83. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +148 -0
  84. package/esm2022/lib/components/molecules/date-input/types.mjs +2 -0
  85. package/esm2022/lib/components/molecules/date-range-input/date-range-input.component.mjs +416 -0
  86. package/esm2022/lib/components/molecules/date-range-input/types.mjs +2 -0
  87. package/esm2022/lib/components/molecules/docs-api-table/docs-api-table.component.mjs +222 -0
  88. package/esm2022/lib/components/molecules/docs-api-table/types.mjs +11 -0
  89. package/esm2022/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.mjs +144 -0
  90. package/esm2022/lib/components/molecules/docs-breadcrumb/types.mjs +2 -0
  91. package/esm2022/lib/components/molecules/docs-callout/docs-callout.component.mjs +60 -0
  92. package/esm2022/lib/components/molecules/docs-code-example/docs-code-example.component.mjs +249 -0
  93. package/esm2022/lib/components/molecules/docs-code-example/types.mjs +2 -0
  94. package/esm2022/lib/components/molecules/docs-nav-links/docs-nav-links.component.mjs +140 -0
  95. package/esm2022/lib/components/molecules/docs-nav-links/types.mjs +2 -0
  96. package/esm2022/lib/components/molecules/docs-search/docs-search.component.mjs +268 -0
  97. package/esm2022/lib/components/molecules/docs-search/types.mjs +2 -0
  98. package/esm2022/lib/components/molecules/docs-section/docs-section.component.mjs +85 -0
  99. package/esm2022/lib/components/molecules/docs-section/types.mjs +2 -0
  100. package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +68 -0
  101. package/esm2022/lib/components/molecules/expandable-text/expandable-text.component.mjs +77 -0
  102. package/esm2022/lib/components/molecules/expandable-text/types.mjs +2 -0
  103. package/esm2022/lib/components/molecules/features-list/features-list.component.mjs +179 -0
  104. package/esm2022/lib/components/molecules/features-list/types.mjs +11 -0
  105. package/esm2022/lib/components/molecules/feedback-form/feedback-form.component.mjs +354 -0
  106. package/esm2022/lib/components/molecules/feedback-form/types.mjs +2 -0
  107. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +90 -0
  108. package/esm2022/lib/components/molecules/file-input/types.mjs +2 -0
  109. package/esm2022/lib/components/molecules/footer-links/footer-links.component.mjs +391 -0
  110. package/esm2022/lib/components/molecules/footer-links/types.mjs +2 -0
  111. package/esm2022/lib/components/molecules/glow-card/glow-card.component.mjs +314 -0
  112. package/esm2022/lib/components/molecules/glow-card/types.mjs +11 -0
  113. package/esm2022/lib/components/molecules/hint/hint.component.mjs +90 -0
  114. package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +28 -0
  115. package/esm2022/lib/components/molecules/image-crop/image-crop.component.mjs +174 -0
  116. package/esm2022/lib/components/molecules/image-crop/index.mjs +2 -0
  117. package/esm2022/lib/components/molecules/info/info.component.mjs +49 -0
  118. package/esm2022/lib/components/molecules/info/types.mjs +2 -0
  119. package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +221 -0
  120. package/esm2022/lib/components/molecules/language-selector/types.mjs +2 -0
  121. package/esm2022/lib/components/molecules/layered-card/layered-card.component.mjs +104 -0
  122. package/esm2022/lib/components/molecules/layered-card/types.mjs +2 -0
  123. package/esm2022/lib/components/molecules/link/link.component.mjs +64 -0
  124. package/esm2022/lib/components/molecules/link/types.mjs +2 -0
  125. package/esm2022/lib/components/molecules/linked-providers/linked-providers.component.mjs +236 -0
  126. package/esm2022/lib/components/molecules/linked-providers/types.mjs +27 -0
  127. package/esm2022/lib/components/molecules/links-accordion/links-accordion.component.mjs +203 -0
  128. package/esm2022/lib/components/molecules/links-accordion/types.mjs +2 -0
  129. package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +51 -0
  130. package/esm2022/lib/components/molecules/links-cake/types.mjs +2 -0
  131. package/esm2022/lib/components/molecules/multi-select-search/multi-select-search.component.mjs +488 -0
  132. package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +92 -0
  133. package/esm2022/lib/components/molecules/notes-box/types.mjs +2 -0
  134. package/esm2022/lib/components/molecules/number-from-to/number-from-to.component.mjs +143 -0
  135. package/esm2022/lib/components/molecules/number-from-to/types.mjs +2 -0
  136. package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +34 -0
  137. package/esm2022/lib/components/molecules/number-stepper/number-stepper.component.mjs +379 -0
  138. package/esm2022/lib/components/molecules/number-stepper/types.mjs +2 -0
  139. package/esm2022/lib/components/molecules/page-links/page-links.component.mjs +150 -0
  140. package/esm2022/lib/components/molecules/page-links/types.mjs +2 -0
  141. package/esm2022/lib/components/molecules/pagination/pagination.component.mjs +253 -0
  142. package/esm2022/lib/components/molecules/pagination/types.mjs +2 -0
  143. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +93 -0
  144. package/esm2022/lib/components/molecules/phone-input/phone-input.component.mjs +365 -0
  145. package/esm2022/lib/components/molecules/phone-input/types.mjs +19 -0
  146. package/esm2022/lib/components/molecules/pill/pill.component.mjs +92 -0
  147. package/esm2022/lib/components/molecules/pill/types.mjs +2 -0
  148. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +78 -0
  149. package/esm2022/lib/components/molecules/pin-input/types.mjs +2 -0
  150. package/esm2022/lib/components/molecules/plain-code-box/plain-code-box.component.mjs +82 -0
  151. package/esm2022/lib/components/molecules/plain-code-box/types.mjs +2 -0
  152. package/esm2022/lib/components/molecules/popover-selector/popover-selector.component.mjs +188 -0
  153. package/esm2022/lib/components/molecules/popover-selector/types.mjs +2 -0
  154. package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +105 -0
  155. package/esm2022/lib/components/molecules/progress-status/types.mjs +2 -0
  156. package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +85 -0
  157. package/esm2022/lib/components/molecules/prompter/types.mjs +2 -0
  158. package/esm2022/lib/components/molecules/quote-box/quote-box.component.mjs +155 -0
  159. package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +52 -0
  160. package/esm2022/lib/components/molecules/range-input/range-input.component.mjs +127 -0
  161. package/esm2022/lib/components/molecules/range-input/types.mjs +2 -0
  162. package/esm2022/lib/components/molecules/rating/rating.component.mjs +166 -0
  163. package/esm2022/lib/components/molecules/rating/types.mjs +2 -0
  164. package/esm2022/lib/components/molecules/refresher/refresher.component.mjs +271 -0
  165. package/esm2022/lib/components/molecules/refresher/types.mjs +15 -0
  166. package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +127 -0
  167. package/esm2022/lib/components/molecules/searchbar/types.mjs +2 -0
  168. package/esm2022/lib/components/molecules/segment-control/segment-control.component.mjs +129 -0
  169. package/esm2022/lib/components/molecules/segment-control/types.mjs +2 -0
  170. package/esm2022/lib/components/molecules/select-input/select-input.component.mjs +148 -0
  171. package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +434 -0
  172. package/esm2022/lib/components/molecules/share-buttons/share-buttons.component.mjs +274 -0
  173. package/esm2022/lib/components/molecules/share-buttons/types.mjs +88 -0
  174. package/esm2022/lib/components/molecules/stats-card/stats-card.component.mjs +211 -0
  175. package/esm2022/lib/components/molecules/stats-card/types.mjs +2 -0
  176. package/esm2022/lib/components/molecules/stepper/stepper.component.mjs +242 -0
  177. package/esm2022/lib/components/molecules/stepper/types.mjs +2 -0
  178. package/esm2022/lib/components/molecules/swipe-carousel/swipe-carousel.component.mjs +206 -0
  179. package/esm2022/lib/components/molecules/swipe-carousel/types.mjs +2 -0
  180. package/esm2022/lib/components/molecules/tabs/tabs.component.mjs +139 -0
  181. package/esm2022/lib/components/molecules/tabs/types.mjs +2 -0
  182. package/esm2022/lib/components/molecules/testimonial-card/testimonial-card.component.mjs +138 -0
  183. package/esm2022/lib/components/molecules/testimonial-card/types.mjs +2 -0
  184. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +77 -0
  185. package/esm2022/lib/components/molecules/textarea-input/textarea-input.component.mjs +213 -0
  186. package/esm2022/lib/components/molecules/textarea-input/types.mjs +2 -0
  187. package/esm2022/lib/components/molecules/timeline/timeline.component.mjs +140 -0
  188. package/esm2022/lib/components/molecules/timeline/types.mjs +2 -0
  189. package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +102 -0
  190. package/esm2022/lib/components/molecules/title-block/types.mjs +2 -0
  191. package/esm2022/lib/components/molecules/toggle-input/toggle-input.component.mjs +93 -0
  192. package/esm2022/lib/components/molecules/toggle-input/types.mjs +2 -0
  193. package/esm2022/lib/components/molecules/update-banner/update-banner.component.mjs +112 -0
  194. package/esm2022/lib/components/molecules/username-input/types.mjs +2 -0
  195. package/esm2022/lib/components/molecules/username-input/username-input.component.mjs +295 -0
  196. package/esm2022/lib/components/organisms/article/article.component.mjs +578 -0
  197. package/esm2022/lib/components/organisms/article/types.mjs +183 -0
  198. package/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +325 -0
  199. package/esm2022/lib/components/organisms/avatar-upload/types.mjs +15 -0
  200. package/esm2022/lib/components/organisms/banner/banner.component.mjs +111 -0
  201. package/esm2022/lib/components/organisms/banner/types.mjs +2 -0
  202. package/esm2022/lib/components/organisms/bottom-nav/bottom-nav.component.mjs +383 -0
  203. package/esm2022/lib/components/organisms/bottom-nav/types.mjs +19 -0
  204. package/esm2022/lib/components/organisms/cards-carousel/cards-carousel.component.mjs +108 -0
  205. package/esm2022/lib/components/organisms/cards-carousel/types.mjs +2 -0
  206. package/esm2022/lib/components/organisms/comment-section/comment-section.component.mjs +537 -0
  207. package/esm2022/lib/components/organisms/comment-section/types.mjs +2 -0
  208. package/esm2022/lib/components/organisms/company-footer/company-footer.component.mjs +76 -0
  209. package/esm2022/lib/components/organisms/company-footer/types.mjs +2 -0
  210. package/esm2022/lib/components/organisms/cookie-banner/cookie-banner.component.mjs +199 -0
  211. package/esm2022/lib/components/organisms/cookie-banner/types.mjs +2 -0
  212. package/esm2022/lib/components/organisms/data-table/data-table.component.mjs +1081 -0
  213. package/esm2022/lib/components/organisms/data-table/types.mjs +13 -0
  214. package/esm2022/lib/components/organisms/docs-sidebar/docs-sidebar.component.mjs +290 -0
  215. package/esm2022/lib/components/organisms/docs-sidebar/types.mjs +2 -0
  216. package/esm2022/lib/components/organisms/docs-toc/docs-toc.component.mjs +307 -0
  217. package/esm2022/lib/components/organisms/docs-toc/types.mjs +2 -0
  218. package/esm2022/lib/components/organisms/footer/footer.component.mjs +73 -0
  219. package/esm2022/lib/components/organisms/footer/types.mjs +2 -0
  220. package/esm2022/lib/components/organisms/form/factory.mjs +29 -0
  221. package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +83 -0
  222. package/esm2022/lib/components/organisms/form/form.component.mjs +508 -0
  223. package/esm2022/lib/components/organisms/fun-header/fun-header.component.mjs +225 -0
  224. package/esm2022/lib/components/organisms/fun-header/types.mjs +2 -0
  225. package/esm2022/lib/components/organisms/header/header.component.mjs +51 -0
  226. package/esm2022/lib/components/organisms/header/types.mjs +2 -0
  227. package/esm2022/lib/components/organisms/infinite-list/infinite-list.component.mjs +620 -0
  228. package/esm2022/lib/components/organisms/infinite-list/types.mjs +15 -0
  229. package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +418 -0
  230. package/esm2022/lib/components/organisms/item-list/types.mjs +2 -0
  231. package/esm2022/lib/components/organisms/login/login.component.mjs +741 -0
  232. package/esm2022/lib/components/organisms/login/types.mjs +11 -0
  233. package/esm2022/lib/components/organisms/menu/menu.component.mjs +206 -0
  234. package/esm2022/lib/components/organisms/menu/types.mjs +2 -0
  235. package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +66 -0
  236. package/esm2022/lib/components/organisms/no-content/types.mjs +2 -0
  237. package/esm2022/lib/components/organisms/rotating-text/rotating-text.component.mjs +180 -0
  238. package/esm2022/lib/components/organisms/rotating-text/types.mjs +2 -0
  239. package/esm2022/lib/components/organisms/tabbed-content/tabbed-content.component.mjs +170 -0
  240. package/esm2022/lib/components/organisms/tabbed-content/types.mjs +2 -0
  241. package/esm2022/lib/components/organisms/terminal-404/terminal-404.component.mjs +214 -0
  242. package/esm2022/lib/components/organisms/terminal-404/types.mjs +2 -0
  243. package/esm2022/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.mjs +72 -0
  244. package/esm2022/lib/components/organisms/testimonial-carousel/types.mjs +2 -0
  245. package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +255 -0
  246. package/esm2022/lib/components/organisms/toolbar/types.mjs +2 -0
  247. package/esm2022/lib/components/organisms/wizard/types.mjs +10 -0
  248. package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +111 -0
  249. package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +161 -0
  250. package/esm2022/lib/components/templates/auth-background/auth-background.component.mjs +164 -0
  251. package/esm2022/lib/components/templates/auth-background/types.mjs +2 -0
  252. package/esm2022/lib/components/templates/docs-layout/docs-layout.component.mjs +221 -0
  253. package/esm2022/lib/components/templates/docs-layout/types.mjs +2 -0
  254. package/esm2022/lib/components/templates/docs-page/docs-page.component.mjs +251 -0
  255. package/esm2022/lib/components/templates/docs-page/types.mjs +2 -0
  256. package/esm2022/lib/components/templates/docs-shell/docs-shell.component.mjs +376 -0
  257. package/esm2022/lib/components/templates/docs-shell/types.mjs +2 -0
  258. package/esm2022/lib/components/templates/maintenance-page/maintenance-page.component.mjs +153 -0
  259. package/esm2022/lib/components/templates/maintenance-page/types.mjs +2 -0
  260. package/esm2022/lib/components/templates/page-content/page-content.component.mjs +193 -0
  261. package/esm2022/lib/components/templates/page-content/types.mjs +2 -0
  262. package/esm2022/lib/components/templates/page-template/page-template.component.mjs +188 -0
  263. package/esm2022/lib/components/templates/page-template/types.mjs +2 -0
  264. package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +192 -0
  265. package/esm2022/lib/components/templates/page-wrapper/types.mjs +2 -0
  266. package/esm2022/lib/components/templates/simple/simple.component.mjs +123 -0
  267. package/esm2022/lib/components/templates/simple/types.mjs +2 -0
  268. package/esm2022/lib/components/types.mjs +60 -0
  269. package/esm2022/lib/config/company-footer.config.mjs +123 -0
  270. package/esm2022/lib/config/index.mjs +5 -0
  271. package/esm2022/lib/services/ads/ads-loader.service.mjs +120 -0
  272. package/esm2022/lib/services/ads/ads.service.mjs +236 -0
  273. package/esm2022/lib/services/ads/config.mjs +81 -0
  274. package/esm2022/lib/services/ads/index.mjs +13 -0
  275. package/esm2022/lib/services/ads/types.mjs +23 -0
  276. package/esm2022/lib/services/app-config/app-config.service.mjs +209 -0
  277. package/esm2022/lib/services/app-config/config.mjs +47 -0
  278. package/esm2022/lib/services/app-config/index.mjs +48 -0
  279. package/esm2022/lib/services/app-config/types.mjs +13 -0
  280. package/esm2022/lib/services/app-config/version.mjs +85 -0
  281. package/esm2022/lib/services/auth/auth-state.service.mjs +207 -0
  282. package/esm2022/lib/services/auth/auth.service.mjs +1142 -0
  283. package/esm2022/lib/services/auth/config.mjs +75 -0
  284. package/esm2022/lib/services/auth/device.service.mjs +135 -0
  285. package/esm2022/lib/services/auth/guards.mjs +194 -0
  286. package/esm2022/lib/services/auth/handoff.service.mjs +152 -0
  287. package/esm2022/lib/services/auth/index.mjs +98 -0
  288. package/esm2022/lib/services/auth/interceptor.mjs +122 -0
  289. package/esm2022/lib/services/auth/notification-action.service.mjs +117 -0
  290. package/esm2022/lib/services/auth/oauth-callback.component.mjs +169 -0
  291. package/esm2022/lib/services/auth/oauth.service.mjs +318 -0
  292. package/esm2022/lib/services/auth/org-switch.service.mjs +137 -0
  293. package/esm2022/lib/services/auth/session.service.mjs +78 -0
  294. package/esm2022/lib/services/auth/storage.service.mjs +152 -0
  295. package/esm2022/lib/services/auth/sync.service.mjs +149 -0
  296. package/esm2022/lib/services/auth/token.service.mjs +122 -0
  297. package/esm2022/lib/services/auth/types.mjs +30 -0
  298. package/esm2022/lib/services/confirmation-dialog/confirmation-dialog.service.mjs +189 -0
  299. package/esm2022/lib/services/confirmation-dialog/types.mjs +14 -0
  300. package/esm2022/lib/services/content/content-types/blog.mjs +275 -0
  301. package/esm2022/lib/services/content/content-types/documentation.mjs +303 -0
  302. package/esm2022/lib/services/content/content-types/news.mjs +277 -0
  303. package/esm2022/lib/services/content/index.mjs +51 -0
  304. package/esm2022/lib/services/content/transformer.mjs +265 -0
  305. package/esm2022/lib/services/content/types.mjs +41 -0
  306. package/esm2022/lib/services/docs/docs-navigation.service.mjs +91 -0
  307. package/esm2022/lib/services/download.service.mjs +80 -0
  308. package/esm2022/lib/services/feedback/config.mjs +49 -0
  309. package/esm2022/lib/services/feedback/feedback.service.mjs +296 -0
  310. package/esm2022/lib/services/feedback/index.mjs +44 -0
  311. package/esm2022/lib/services/feedback/types.mjs +30 -0
  312. package/esm2022/lib/services/firebase/analytics-error-handler.mjs +141 -0
  313. package/esm2022/lib/services/firebase/analytics-router-tracker.mjs +99 -0
  314. package/esm2022/lib/services/firebase/analytics-types.mjs +7 -0
  315. package/esm2022/lib/services/firebase/analytics.service.mjs +620 -0
  316. package/esm2022/lib/services/firebase/config.mjs +131 -0
  317. package/esm2022/lib/services/firebase/firebase.service.mjs +456 -0
  318. package/esm2022/lib/services/firebase/firestore-collection.mjs +301 -0
  319. package/esm2022/lib/services/firebase/firestore.service.mjs +571 -0
  320. package/esm2022/lib/services/firebase/index.mjs +56 -0
  321. package/esm2022/lib/services/firebase/messaging.service.mjs +650 -0
  322. package/esm2022/lib/services/firebase/notifications.service.mjs +242 -0
  323. package/esm2022/lib/services/firebase/shared-config.mjs +147 -0
  324. package/esm2022/lib/services/firebase/storage.service.mjs +484 -0
  325. package/esm2022/lib/services/firebase/types.mjs +18 -0
  326. package/esm2022/lib/services/firebase/utils/path-builder.mjs +195 -0
  327. package/esm2022/lib/services/firebase/utils/query-builder.mjs +302 -0
  328. package/esm2022/lib/services/i18n/config.mjs +128 -0
  329. package/esm2022/lib/services/i18n/default-content.mjs +577 -0
  330. package/esm2022/lib/services/i18n/i18n.service.mjs +217 -0
  331. package/esm2022/lib/services/i18n/index.mjs +13 -0
  332. package/esm2022/lib/services/i18n/input-i18n.helper.mjs +97 -0
  333. package/esm2022/lib/services/i18n/translate.pipe.mjs +50 -0
  334. package/esm2022/lib/services/i18n/types.mjs +15 -0
  335. package/esm2022/lib/services/icons.service.mjs +83 -0
  336. package/esm2022/lib/services/image/image.service.mjs +244 -0
  337. package/esm2022/lib/services/image/index.mjs +3 -0
  338. package/esm2022/lib/services/image/types.mjs +13 -0
  339. package/esm2022/lib/services/in-app-browser.service.mjs +35 -0
  340. package/esm2022/lib/services/legal-link/legal-link.service.mjs +85 -0
  341. package/esm2022/lib/services/link-processor.service.mjs +259 -0
  342. package/esm2022/lib/services/local-storage.service.mjs +37 -0
  343. package/esm2022/lib/services/locale.service.mjs +75 -0
  344. package/esm2022/lib/services/markdown-article/legal-content.service.mjs +107 -0
  345. package/esm2022/lib/services/markdown-article/markdown-article-parser.mjs +302 -0
  346. package/esm2022/lib/services/markdown-article/markdown-article-parser.service.mjs +20 -0
  347. package/esm2022/lib/services/meta/index.mjs +3 -0
  348. package/esm2022/lib/services/meta/meta.service.mjs +63 -0
  349. package/esm2022/lib/services/meta/types.mjs +2 -0
  350. package/esm2022/lib/services/modal/modal.service.mjs +212 -0
  351. package/esm2022/lib/services/modal/simple-modal-content.component.mjs +133 -0
  352. package/esm2022/lib/services/modal/types.mjs +26 -0
  353. package/esm2022/lib/services/navigation/index.mjs +3 -0
  354. package/esm2022/lib/services/navigation/navigation.service.mjs +216 -0
  355. package/esm2022/lib/services/navigation/types.mjs +16 -0
  356. package/esm2022/lib/services/pagination/index.mjs +5 -0
  357. package/esm2022/lib/services/pagination/pagination.service.mjs +218 -0
  358. package/esm2022/lib/services/pagination/types.mjs +14 -0
  359. package/esm2022/lib/services/preferences/index.mjs +3 -0
  360. package/esm2022/lib/services/preferences/preferences.service.mjs +172 -0
  361. package/esm2022/lib/services/preferences/preferences.types.mjs +7 -0
  362. package/esm2022/lib/services/presets/config.mjs +46 -0
  363. package/esm2022/lib/services/presets/index.mjs +5 -0
  364. package/esm2022/lib/services/presets/preset.service.mjs +104 -0
  365. package/esm2022/lib/services/presets/types.mjs +2 -0
  366. package/esm2022/lib/services/qr-generator/qr-generator.service.mjs +341 -0
  367. package/esm2022/lib/services/qr-generator/types.mjs +46 -0
  368. package/esm2022/lib/services/skeleton/config.mjs +79 -0
  369. package/esm2022/lib/services/skeleton/directives/loading.directive.mjs +215 -0
  370. package/esm2022/lib/services/skeleton/index.mjs +16 -0
  371. package/esm2022/lib/services/skeleton/skeleton.service.mjs +198 -0
  372. package/esm2022/lib/services/skeleton/templates/detail-skeleton.component.mjs +223 -0
  373. package/esm2022/lib/services/skeleton/templates/form-skeleton.component.mjs +127 -0
  374. package/esm2022/lib/services/skeleton/templates/grid-skeleton.component.mjs +154 -0
  375. package/esm2022/lib/services/skeleton/templates/list-skeleton.component.mjs +110 -0
  376. package/esm2022/lib/services/skeleton/templates/profile-skeleton.component.mjs +207 -0
  377. package/esm2022/lib/services/skeleton/templates/table-skeleton.component.mjs +116 -0
  378. package/esm2022/lib/services/skeleton/types.mjs +11 -0
  379. package/esm2022/lib/services/theme.service.mjs +153 -0
  380. package/esm2022/lib/services/toast.service.mjs +47 -0
  381. package/esm2022/lib/services/types.mjs +5 -0
  382. package/esm2022/lib/shared/constants/storage.mjs +3 -0
  383. package/esm2022/lib/shared/pipes/process-links.pipe.mjs +69 -0
  384. package/esm2022/lib/shared/utils/datetime.mjs +24 -0
  385. package/esm2022/lib/shared/utils/dom.mjs +27 -0
  386. package/esm2022/lib/shared/utils/form-defaults.mjs +112 -0
  387. package/esm2022/lib/shared/utils/styles.mjs +37 -0
  388. package/esm2022/lib/shared/utils/text.mjs +12 -0
  389. package/esm2022/lib/version.mjs +6 -0
  390. package/esm2022/public-api.mjs +349 -0
  391. package/esm2022/valtech-components.mjs +5 -0
  392. package/fesm2022/valtech-components.mjs +44147 -0
  393. package/fesm2022/valtech-components.mjs.map +1 -0
  394. package/index.d.ts +5 -0
  395. package/lib/components/atoms/avatar/avatar.component.d.ts +36 -0
  396. package/lib/components/atoms/avatar/types.d.ts +15 -0
  397. package/lib/components/atoms/box/box.component.d.ts +26 -0
  398. package/lib/components/atoms/box/types.d.ts +19 -0
  399. package/lib/components/atoms/button/button.component.d.ts +63 -0
  400. package/lib/components/atoms/button/factory.d.ts +71 -0
  401. package/lib/components/atoms/container/container.component.d.ts +30 -0
  402. package/lib/components/atoms/container/types.d.ts +11 -0
  403. package/lib/components/atoms/countdown/countdown.component.d.ts +38 -0
  404. package/lib/components/atoms/countdown/types.d.ts +108 -0
  405. package/lib/components/atoms/display/display.component.d.ts +19 -0
  406. package/lib/components/atoms/display/types.d.ts +33 -0
  407. package/lib/components/atoms/divider/divider.component.d.ts +27 -0
  408. package/lib/components/atoms/divider/types.d.ts +12 -0
  409. package/lib/components/atoms/fab/fab.component.d.ts +36 -0
  410. package/lib/components/atoms/fab/types.d.ts +45 -0
  411. package/lib/components/atoms/glass/glass.component.d.ts +43 -0
  412. package/lib/components/atoms/glass/types.d.ts +70 -0
  413. package/lib/components/atoms/glow/glow.component.d.ts +42 -0
  414. package/lib/components/atoms/glow/types.d.ts +40 -0
  415. package/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.d.ts +41 -0
  416. package/lib/components/atoms/horizontal-scroll/types.d.ts +13 -0
  417. package/lib/components/atoms/href/href.component.d.ts +25 -0
  418. package/lib/components/atoms/href/types.d.ts +19 -0
  419. package/lib/components/atoms/icon/icon.component.d.ts +18 -0
  420. package/lib/components/atoms/icon/types.d.ts +13 -0
  421. package/lib/components/atoms/image/image.component.d.ts +41 -0
  422. package/lib/components/atoms/image/types.d.ts +37 -0
  423. package/lib/components/atoms/pattern/motifs.d.ts +60 -0
  424. package/lib/components/atoms/pattern/pattern.component.d.ts +68 -0
  425. package/lib/components/atoms/pattern/types.d.ts +61 -0
  426. package/lib/components/atoms/price-tag/price-tag.component.d.ts +15 -0
  427. package/lib/components/atoms/price-tag/types.d.ts +59 -0
  428. package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +35 -0
  429. package/lib/components/atoms/progress-bar/types.d.ts +19 -0
  430. package/lib/components/atoms/progress-ring/progress-ring.component.d.ts +20 -0
  431. package/lib/components/atoms/progress-ring/types.d.ts +24 -0
  432. package/lib/components/atoms/qr-code/qr-code.component.d.ts +33 -0
  433. package/lib/components/atoms/qr-code/types.d.ts +124 -0
  434. package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +53 -0
  435. package/lib/components/atoms/rights-footer/types.d.ts +21 -0
  436. package/lib/components/atoms/skeleton/skeleton.component.d.ts +12 -0
  437. package/lib/components/atoms/skeleton/types.d.ts +29 -0
  438. package/lib/components/atoms/text/text.component.d.ts +33 -0
  439. package/lib/components/atoms/text/types.d.ts +42 -0
  440. package/lib/components/atoms/title/title.component.d.ts +21 -0
  441. package/lib/components/atoms/title/types.d.ts +36 -0
  442. package/lib/components/atoms/user-avatar/types.d.ts +74 -0
  443. package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +55 -0
  444. package/lib/components/molecules/accordion/accordion.component.d.ts +18 -0
  445. package/lib/components/molecules/accordion/types.d.ts +47 -0
  446. package/lib/components/molecules/action-card/action-card.component.d.ts +90 -0
  447. package/lib/components/molecules/action-card/types.d.ts +83 -0
  448. package/lib/components/molecules/action-header/action-header.component.d.ts +27 -0
  449. package/lib/components/molecules/action-header/types.d.ts +27 -0
  450. package/lib/components/molecules/ad-slot/ad-slot.component.d.ts +69 -0
  451. package/lib/components/molecules/alert-box/alert-box.component.d.ts +39 -0
  452. package/lib/components/molecules/alert-box/types.d.ts +37 -0
  453. package/lib/components/molecules/breadcrumb/breadcrumb.component.d.ts +22 -0
  454. package/lib/components/molecules/breadcrumb/types.d.ts +45 -0
  455. package/lib/components/molecules/button-group/button-group.component.d.ts +23 -0
  456. package/lib/components/molecules/button-group/types.d.ts +13 -0
  457. package/lib/components/molecules/card/card.component.d.ts +49 -0
  458. package/lib/components/molecules/card/types.d.ts +32 -0
  459. package/lib/components/molecules/check-input/check-input.component.d.ts +36 -0
  460. package/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.d.ts +17 -0
  461. package/lib/components/molecules/chip-group/chip-group.component.d.ts +22 -0
  462. package/lib/components/molecules/chip-group/types.d.ts +65 -0
  463. package/lib/components/molecules/code-display/code-display.component.d.ts +24 -0
  464. package/lib/components/molecules/code-display/types.d.ts +10 -0
  465. package/lib/components/molecules/command-display/command-display.component.d.ts +11 -0
  466. package/lib/components/molecules/command-display/types.d.ts +3 -0
  467. package/lib/components/molecules/comment/comment.component.d.ts +42 -0
  468. package/lib/components/molecules/comment/types.d.ts +171 -0
  469. package/lib/components/molecules/comment-input/comment-input.component.d.ts +16 -0
  470. package/lib/components/molecules/comment-input/types.d.ts +59 -0
  471. package/lib/components/molecules/content-loader/content-loader.component.d.ts +18 -0
  472. package/lib/components/molecules/content-loader/types.d.ts +15 -0
  473. package/lib/components/molecules/content-reaction/content-reaction.component.d.ts +58 -0
  474. package/lib/components/molecules/content-reaction/types.d.ts +77 -0
  475. package/lib/components/molecules/currency-input/currency-input.component.d.ts +40 -0
  476. package/lib/components/molecules/currency-input/types.d.ts +96 -0
  477. package/lib/components/molecules/date-input/date-input.component.d.ts +40 -0
  478. package/lib/components/molecules/date-input/types.d.ts +74 -0
  479. package/lib/components/molecules/date-range-input/date-range-input.component.d.ts +50 -0
  480. package/lib/components/molecules/date-range-input/types.d.ts +109 -0
  481. package/lib/components/molecules/docs-api-table/docs-api-table.component.d.ts +41 -0
  482. package/lib/components/molecules/docs-api-table/types.d.ts +62 -0
  483. package/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.d.ts +31 -0
  484. package/lib/components/molecules/docs-breadcrumb/types.d.ts +20 -0
  485. package/lib/components/molecules/docs-callout/docs-callout.component.d.ts +17 -0
  486. package/lib/components/molecules/docs-code-example/docs-code-example.component.d.ts +45 -0
  487. package/lib/components/molecules/docs-code-example/types.d.ts +63 -0
  488. package/lib/components/molecules/docs-nav-links/docs-nav-links.component.d.ts +30 -0
  489. package/lib/components/molecules/docs-nav-links/types.d.ts +31 -0
  490. package/lib/components/molecules/docs-search/docs-search.component.d.ts +47 -0
  491. package/lib/components/molecules/docs-search/types.d.ts +27 -0
  492. package/lib/components/molecules/docs-section/docs-section.component.d.ts +29 -0
  493. package/lib/components/molecules/docs-section/types.d.ts +27 -0
  494. package/lib/components/molecules/email-input/email-input.component.d.ts +34 -0
  495. package/lib/components/molecules/expandable-text/expandable-text.component.d.ts +23 -0
  496. package/lib/components/molecules/expandable-text/types.d.ts +14 -0
  497. package/lib/components/molecules/features-list/features-list.component.d.ts +66 -0
  498. package/lib/components/molecules/features-list/types.d.ts +36 -0
  499. package/lib/components/molecules/feedback-form/feedback-form.component.d.ts +58 -0
  500. package/lib/components/molecules/feedback-form/types.d.ts +54 -0
  501. package/lib/components/molecules/file-input/file-input.component.d.ts +25 -0
  502. package/lib/components/molecules/file-input/types.d.ts +72 -0
  503. package/lib/components/molecules/footer-links/footer-links.component.d.ts +47 -0
  504. package/lib/components/molecules/footer-links/types.d.ts +50 -0
  505. package/lib/components/molecules/glow-card/glow-card.component.d.ts +60 -0
  506. package/lib/components/molecules/glow-card/types.d.ts +94 -0
  507. package/lib/components/molecules/hint/hint.component.d.ts +19 -0
  508. package/lib/components/molecules/hour-input/hour-input.component.d.ts +15 -0
  509. package/lib/components/molecules/image-crop/image-crop.component.d.ts +59 -0
  510. package/lib/components/molecules/info/info.component.d.ts +9 -0
  511. package/lib/components/molecules/info/types.d.ts +10 -0
  512. package/lib/components/molecules/language-selector/language-selector.component.d.ts +40 -0
  513. package/lib/components/molecules/language-selector/types.d.ts +82 -0
  514. package/lib/components/molecules/layered-card/layered-card.component.d.ts +10 -0
  515. package/lib/components/molecules/layered-card/types.d.ts +15 -0
  516. package/lib/components/molecules/link/link.component.d.ts +24 -0
  517. package/lib/components/molecules/link/types.d.ts +19 -0
  518. package/lib/components/molecules/linked-providers/linked-providers.component.d.ts +30 -0
  519. package/lib/components/molecules/linked-providers/types.d.ts +38 -0
  520. package/lib/components/molecules/links-accordion/links-accordion.component.d.ts +61 -0
  521. package/lib/components/molecules/links-accordion/types.d.ts +39 -0
  522. package/lib/components/molecules/links-cake/links-cake.component.d.ts +17 -0
  523. package/lib/components/molecules/links-cake/types.d.ts +13 -0
  524. package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +76 -0
  525. package/lib/components/molecules/notes-box/notes-box.component.d.ts +33 -0
  526. package/lib/components/molecules/notes-box/types.d.ts +35 -0
  527. package/lib/components/molecules/number-from-to/number-from-to.component.d.ts +27 -0
  528. package/lib/components/molecules/number-from-to/types.d.ts +76 -0
  529. package/lib/components/molecules/number-input/number-input.component.d.ts +16 -0
  530. package/lib/components/molecules/number-stepper/number-stepper.component.d.ts +38 -0
  531. package/lib/components/molecules/number-stepper/types.d.ts +88 -0
  532. package/lib/components/molecules/page-links/page-links.component.d.ts +29 -0
  533. package/lib/components/molecules/page-links/types.d.ts +38 -0
  534. package/lib/components/molecules/pagination/pagination.component.d.ts +15 -0
  535. package/lib/components/molecules/pagination/types.d.ts +41 -0
  536. package/lib/components/molecules/password-input/password-input.component.d.ts +37 -0
  537. package/lib/components/molecules/phone-input/phone-input.component.d.ts +59 -0
  538. package/lib/components/molecules/phone-input/types.d.ts +98 -0
  539. package/lib/components/molecules/pill/pill.component.d.ts +33 -0
  540. package/lib/components/molecules/pill/types.d.ts +9 -0
  541. package/lib/components/molecules/pin-input/pin-input.component.d.ts +21 -0
  542. package/lib/components/molecules/pin-input/types.d.ts +69 -0
  543. package/lib/components/molecules/plain-code-box/plain-code-box.component.d.ts +22 -0
  544. package/lib/components/molecules/plain-code-box/types.d.ts +10 -0
  545. package/lib/components/molecules/popover-selector/popover-selector.component.d.ts +42 -0
  546. package/lib/components/molecules/popover-selector/types.d.ts +69 -0
  547. package/lib/components/molecules/progress-status/progress-status.component.d.ts +23 -0
  548. package/lib/components/molecules/progress-status/types.d.ts +20 -0
  549. package/lib/components/molecules/prompter/prompter.component.d.ts +10 -0
  550. package/lib/components/molecules/prompter/types.d.ts +25 -0
  551. package/lib/components/molecules/quote-box/quote-box.component.d.ts +26 -0
  552. package/lib/components/molecules/radio-input/radio-input.component.d.ts +15 -0
  553. package/lib/components/molecules/range-input/range-input.component.d.ts +25 -0
  554. package/lib/components/molecules/range-input/types.d.ts +59 -0
  555. package/lib/components/molecules/rating/rating.component.d.ts +23 -0
  556. package/lib/components/molecules/rating/types.d.ts +41 -0
  557. package/lib/components/molecules/refresher/refresher.component.d.ts +84 -0
  558. package/lib/components/molecules/refresher/types.d.ts +86 -0
  559. package/lib/components/molecules/searchbar/searchbar.component.d.ts +43 -0
  560. package/lib/components/molecules/searchbar/types.d.ts +33 -0
  561. package/lib/components/molecules/segment-control/segment-control.component.d.ts +35 -0
  562. package/lib/components/molecules/segment-control/types.d.ts +46 -0
  563. package/lib/components/molecules/select-input/select-input.component.d.ts +57 -0
  564. package/lib/components/molecules/select-search/select-search.component.d.ts +78 -0
  565. package/lib/components/molecules/share-buttons/share-buttons.component.d.ts +22 -0
  566. package/lib/components/molecules/share-buttons/types.d.ts +108 -0
  567. package/lib/components/molecules/stats-card/stats-card.component.d.ts +20 -0
  568. package/lib/components/molecules/stats-card/types.d.ts +60 -0
  569. package/lib/components/molecules/stepper/stepper.component.d.ts +31 -0
  570. package/lib/components/molecules/stepper/types.d.ts +66 -0
  571. package/lib/components/molecules/swipe-carousel/swipe-carousel.component.d.ts +66 -0
  572. package/lib/components/molecules/swipe-carousel/types.d.ts +35 -0
  573. package/lib/components/molecules/tabs/tabs.component.d.ts +34 -0
  574. package/lib/components/molecules/tabs/types.d.ts +45 -0
  575. package/lib/components/molecules/testimonial-card/testimonial-card.component.d.ts +41 -0
  576. package/lib/components/molecules/testimonial-card/types.d.ts +25 -0
  577. package/lib/components/molecules/text-input/text-input.component.d.ts +42 -0
  578. package/lib/components/molecules/textarea-input/textarea-input.component.d.ts +46 -0
  579. package/lib/components/molecules/textarea-input/types.d.ts +74 -0
  580. package/lib/components/molecules/timeline/timeline.component.d.ts +14 -0
  581. package/lib/components/molecules/timeline/types.d.ts +39 -0
  582. package/lib/components/molecules/title-block/title-block.component.d.ts +12 -0
  583. package/lib/components/molecules/title-block/types.d.ts +15 -0
  584. package/lib/components/molecules/toggle-input/toggle-input.component.d.ts +39 -0
  585. package/lib/components/molecules/toggle-input/types.d.ts +30 -0
  586. package/lib/components/molecules/update-banner/update-banner.component.d.ts +42 -0
  587. package/lib/components/molecules/username-input/types.d.ts +36 -0
  588. package/lib/components/molecules/username-input/username-input.component.d.ts +58 -0
  589. package/lib/components/organisms/article/article.component.d.ts +108 -0
  590. package/lib/components/organisms/article/types.d.ts +367 -0
  591. package/lib/components/organisms/avatar-upload/avatar-upload.component.d.ts +84 -0
  592. package/lib/components/organisms/avatar-upload/types.d.ts +62 -0
  593. package/lib/components/organisms/banner/banner.component.d.ts +16 -0
  594. package/lib/components/organisms/banner/types.d.ts +29 -0
  595. package/lib/components/organisms/bottom-nav/bottom-nav.component.d.ts +91 -0
  596. package/lib/components/organisms/bottom-nav/types.d.ts +120 -0
  597. package/lib/components/organisms/cards-carousel/cards-carousel.component.d.ts +36 -0
  598. package/lib/components/organisms/cards-carousel/types.d.ts +40 -0
  599. package/lib/components/organisms/comment-section/comment-section.component.d.ts +50 -0
  600. package/lib/components/organisms/comment-section/types.d.ts +144 -0
  601. package/lib/components/organisms/company-footer/company-footer.component.d.ts +37 -0
  602. package/lib/components/organisms/company-footer/types.d.ts +15 -0
  603. package/lib/components/organisms/cookie-banner/cookie-banner.component.d.ts +36 -0
  604. package/lib/components/organisms/cookie-banner/types.d.ts +62 -0
  605. package/lib/components/organisms/data-table/data-table.component.d.ts +63 -0
  606. package/lib/components/organisms/data-table/types.d.ts +219 -0
  607. package/lib/components/organisms/docs-sidebar/docs-sidebar.component.d.ts +51 -0
  608. package/lib/components/organisms/docs-sidebar/types.d.ts +93 -0
  609. package/lib/components/organisms/docs-toc/docs-toc.component.d.ts +62 -0
  610. package/lib/components/organisms/docs-toc/types.d.ts +62 -0
  611. package/lib/components/organisms/footer/footer.component.d.ts +36 -0
  612. package/lib/components/organisms/footer/types.d.ts +16 -0
  613. package/lib/components/organisms/form/factory.d.ts +17 -0
  614. package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +17 -0
  615. package/lib/components/organisms/form/form.component.d.ts +72 -0
  616. package/lib/components/organisms/fun-header/fun-header.component.d.ts +72 -0
  617. package/lib/components/organisms/fun-header/types.d.ts +28 -0
  618. package/lib/components/organisms/header/header.component.d.ts +22 -0
  619. package/lib/components/organisms/header/types.d.ts +16 -0
  620. package/lib/components/organisms/infinite-list/infinite-list.component.d.ts +113 -0
  621. package/lib/components/organisms/infinite-list/types.d.ts +197 -0
  622. package/lib/components/organisms/item-list/item-list.component.d.ts +43 -0
  623. package/lib/components/organisms/item-list/types.d.ts +126 -0
  624. package/lib/components/organisms/login/login.component.d.ts +79 -0
  625. package/lib/components/organisms/login/types.d.ts +70 -0
  626. package/lib/components/organisms/menu/menu.component.d.ts +44 -0
  627. package/lib/components/organisms/menu/types.d.ts +23 -0
  628. package/lib/components/organisms/no-content/no-content.component.d.ts +14 -0
  629. package/lib/components/organisms/no-content/types.d.ts +17 -0
  630. package/lib/components/organisms/rotating-text/rotating-text.component.d.ts +47 -0
  631. package/lib/components/organisms/rotating-text/types.d.ts +28 -0
  632. package/lib/components/organisms/tabbed-content/tabbed-content.component.d.ts +65 -0
  633. package/lib/components/organisms/tabbed-content/types.d.ts +53 -0
  634. package/lib/components/organisms/terminal-404/terminal-404.component.d.ts +42 -0
  635. package/lib/components/organisms/terminal-404/types.d.ts +22 -0
  636. package/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.d.ts +33 -0
  637. package/lib/components/organisms/testimonial-carousel/types.d.ts +8 -0
  638. package/lib/components/organisms/toolbar/toolbar.component.d.ts +85 -0
  639. package/lib/components/organisms/toolbar/types.d.ts +31 -0
  640. package/lib/components/organisms/wizard/types.d.ts +42 -0
  641. package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +23 -0
  642. package/lib/components/organisms/wizard/wizard.component.d.ts +27 -0
  643. package/lib/components/templates/auth-background/auth-background.component.d.ts +62 -0
  644. package/lib/components/templates/auth-background/types.d.ts +30 -0
  645. package/lib/components/templates/docs-layout/docs-layout.component.d.ts +42 -0
  646. package/lib/components/templates/docs-layout/types.d.ts +39 -0
  647. package/lib/components/templates/docs-page/docs-page.component.d.ts +61 -0
  648. package/lib/components/templates/docs-page/types.d.ts +121 -0
  649. package/lib/components/templates/docs-shell/docs-shell.component.d.ts +33 -0
  650. package/lib/components/templates/docs-shell/types.d.ts +152 -0
  651. package/lib/components/templates/maintenance-page/maintenance-page.component.d.ts +57 -0
  652. package/lib/components/templates/maintenance-page/types.d.ts +12 -0
  653. package/lib/components/templates/page-content/page-content.component.d.ts +107 -0
  654. package/lib/components/templates/page-content/types.d.ts +27 -0
  655. package/lib/components/templates/page-template/page-template.component.d.ts +54 -0
  656. package/lib/components/templates/page-template/types.d.ts +17 -0
  657. package/lib/components/templates/page-wrapper/page-wrapper.component.d.ts +91 -0
  658. package/lib/components/templates/page-wrapper/types.d.ts +26 -0
  659. package/lib/components/templates/simple/simple.component.d.ts +14 -0
  660. package/lib/components/templates/simple/types.d.ts +10 -0
  661. package/lib/components/types.d.ts +304 -0
  662. package/lib/config/company-footer.config.d.ts +118 -0
  663. package/lib/services/ads/ads-loader.service.d.ts +41 -0
  664. package/lib/services/ads/ads.service.d.ts +99 -0
  665. package/lib/services/ads/config.d.ts +53 -0
  666. package/lib/services/ads/index.d.ts +9 -0
  667. package/lib/services/ads/types.d.ts +106 -0
  668. package/lib/services/app-config/app-config.service.d.ts +115 -0
  669. package/lib/services/app-config/config.d.ts +31 -0
  670. package/lib/services/app-config/index.d.ts +47 -0
  671. package/lib/services/app-config/types.d.ts +54 -0
  672. package/lib/services/app-config/version.d.ts +64 -0
  673. package/lib/services/auth/auth-state.service.d.ts +106 -0
  674. package/lib/services/auth/auth.service.d.ts +429 -0
  675. package/lib/services/auth/config.d.ts +38 -0
  676. package/lib/services/auth/device.service.d.ts +101 -0
  677. package/lib/services/auth/guards.d.ts +123 -0
  678. package/lib/services/auth/handoff.service.d.ts +159 -0
  679. package/lib/services/auth/index.d.ts +89 -0
  680. package/lib/services/auth/interceptor.d.ts +22 -0
  681. package/lib/services/auth/notification-action.service.d.ts +34 -0
  682. package/lib/services/auth/oauth-callback.component.d.ts +34 -0
  683. package/lib/services/auth/oauth.service.d.ts +99 -0
  684. package/lib/services/auth/org-switch.service.d.ts +127 -0
  685. package/lib/services/auth/session.service.d.ts +60 -0
  686. package/lib/services/auth/storage.service.d.ts +52 -0
  687. package/lib/services/auth/sync.service.d.ts +49 -0
  688. package/lib/services/auth/token.service.d.ts +57 -0
  689. package/lib/services/auth/types.d.ts +862 -0
  690. package/lib/services/confirmation-dialog/confirmation-dialog.service.d.ts +71 -0
  691. package/lib/services/confirmation-dialog/types.d.ts +61 -0
  692. package/lib/services/content/content-types/blog.d.ts +148 -0
  693. package/lib/services/content/content-types/documentation.d.ts +183 -0
  694. package/lib/services/content/content-types/news.d.ts +162 -0
  695. package/lib/services/content/index.d.ts +49 -0
  696. package/lib/services/content/transformer.d.ts +96 -0
  697. package/lib/services/content/types.d.ts +220 -0
  698. package/lib/services/docs/docs-navigation.service.d.ts +51 -0
  699. package/lib/services/download.service.d.ts +21 -0
  700. package/lib/services/feedback/config.d.ts +35 -0
  701. package/lib/services/feedback/feedback.service.d.ts +134 -0
  702. package/lib/services/feedback/index.d.ts +40 -0
  703. package/lib/services/feedback/types.d.ts +173 -0
  704. package/lib/services/firebase/analytics-error-handler.d.ts +54 -0
  705. package/lib/services/firebase/analytics-router-tracker.d.ts +51 -0
  706. package/lib/services/firebase/analytics-types.d.ts +221 -0
  707. package/lib/services/firebase/analytics.service.d.ts +256 -0
  708. package/lib/services/firebase/config.d.ts +49 -0
  709. package/lib/services/firebase/firebase.service.d.ts +251 -0
  710. package/lib/services/firebase/firestore-collection.d.ts +199 -0
  711. package/lib/services/firebase/firestore.service.d.ts +335 -0
  712. package/lib/services/firebase/index.d.ts +44 -0
  713. package/lib/services/firebase/messaging.service.d.ts +315 -0
  714. package/lib/services/firebase/notifications.service.d.ts +141 -0
  715. package/lib/services/firebase/shared-config.d.ts +151 -0
  716. package/lib/services/firebase/storage.service.d.ts +238 -0
  717. package/lib/services/firebase/types.d.ts +374 -0
  718. package/lib/services/firebase/utils/path-builder.d.ts +132 -0
  719. package/lib/services/firebase/utils/query-builder.d.ts +210 -0
  720. package/lib/services/i18n/config.d.ts +29 -0
  721. package/lib/services/i18n/default-content.d.ts +30 -0
  722. package/lib/services/i18n/i18n.service.d.ts +128 -0
  723. package/lib/services/i18n/index.d.ts +6 -0
  724. package/lib/services/i18n/input-i18n.helper.d.ts +70 -0
  725. package/lib/services/i18n/translate.pipe.d.ts +36 -0
  726. package/lib/services/i18n/types.d.ts +93 -0
  727. package/lib/services/icons.service.d.ts +9 -0
  728. package/lib/services/image/image.service.d.ts +76 -0
  729. package/lib/services/image/types.d.ts +74 -0
  730. package/lib/services/in-app-browser.service.d.ts +16 -0
  731. package/lib/services/legal-link/legal-link.service.d.ts +73 -0
  732. package/lib/services/link-processor.service.d.ts +104 -0
  733. package/lib/services/local-storage.service.d.ts +27 -0
  734. package/lib/services/locale.service.d.ts +52 -0
  735. package/lib/services/markdown-article/legal-content.service.d.ts +73 -0
  736. package/lib/services/markdown-article/markdown-article-parser.d.ts +38 -0
  737. package/lib/services/markdown-article/markdown-article-parser.service.d.ts +12 -0
  738. package/lib/services/meta/meta.service.d.ts +23 -0
  739. package/lib/services/meta/types.d.ts +12 -0
  740. package/lib/services/modal/modal.service.d.ts +100 -0
  741. package/lib/services/modal/simple-modal-content.component.d.ts +19 -0
  742. package/lib/services/modal/types.d.ts +155 -0
  743. package/lib/services/navigation/navigation.service.d.ts +134 -0
  744. package/lib/services/navigation/types.d.ts +67 -0
  745. package/lib/services/pagination/index.d.ts +2 -0
  746. package/lib/services/pagination/pagination.service.d.ts +43 -0
  747. package/lib/services/pagination/types.d.ts +113 -0
  748. package/lib/services/preferences/preferences.service.d.ts +51 -0
  749. package/lib/services/preferences/preferences.types.d.ts +35 -0
  750. package/lib/services/presets/config.d.ts +32 -0
  751. package/lib/services/presets/index.d.ts +3 -0
  752. package/lib/services/presets/preset.service.d.ts +69 -0
  753. package/lib/services/presets/types.d.ts +39 -0
  754. package/lib/services/qr-generator/qr-generator.service.d.ts +115 -0
  755. package/lib/services/qr-generator/types.d.ts +141 -0
  756. package/lib/services/skeleton/config.d.ts +30 -0
  757. package/lib/services/skeleton/directives/loading.directive.d.ts +71 -0
  758. package/lib/services/skeleton/index.d.ts +10 -0
  759. package/lib/services/skeleton/skeleton.service.d.ts +127 -0
  760. package/lib/services/skeleton/templates/detail-skeleton.component.d.ts +18 -0
  761. package/lib/services/skeleton/templates/form-skeleton.component.d.ts +22 -0
  762. package/lib/services/skeleton/templates/grid-skeleton.component.d.ts +18 -0
  763. package/lib/services/skeleton/templates/list-skeleton.component.d.ts +17 -0
  764. package/lib/services/skeleton/templates/profile-skeleton.component.d.ts +20 -0
  765. package/lib/services/skeleton/templates/table-skeleton.component.d.ts +17 -0
  766. package/lib/services/skeleton/types.d.ts +111 -0
  767. package/lib/services/theme.service.d.ts +76 -0
  768. package/lib/services/toast.service.d.ts +22 -0
  769. package/lib/services/types.d.ts +1 -0
  770. package/lib/shared/constants/storage.d.ts +2 -0
  771. package/lib/shared/pipes/process-links.pipe.d.ts +55 -0
  772. package/lib/shared/utils/datetime.d.ts +21 -0
  773. package/lib/shared/utils/dom.d.ts +13 -0
  774. package/lib/shared/utils/form-defaults.d.ts +30 -0
  775. package/lib/shared/utils/styles.d.ts +13 -0
  776. package/lib/shared/utils/text.d.ts +11 -0
  777. package/lib/version.d.ts +5 -0
  778. package/package.json +16 -62
  779. package/public-api.d.ts +307 -0
  780. package/.claude/settings.local.json +0 -7
  781. package/.editorconfig +0 -16
  782. package/.prettierignore +0 -6
  783. package/.prettierrc +0 -30
  784. package/.storybook/main.ts +0 -21
  785. package/.storybook/preview-body.html +0 -60
  786. package/.storybook/preview-head.html +0 -48
  787. package/.storybook/preview.ts +0 -52
  788. package/.storybook/tsconfig.json +0 -12
  789. package/CLAUDE.md +0 -121
  790. package/angular.json +0 -60
  791. package/ng-package.json +0 -16
  792. package/scripts/publish.sh +0 -30
  793. package/scripts/update-apps.sh +0 -94
  794. package/src/lib/components/atoms/avatar/avatar.component.scss +0 -31
  795. package/src/lib/components/atoms/avatar/avatar.component.ts +0 -95
  796. package/src/lib/components/atoms/avatar/avatar.stories.ts +0 -243
  797. package/src/lib/components/atoms/avatar/types.ts +0 -15
  798. package/src/lib/components/atoms/box/box.component.scss +0 -57
  799. package/src/lib/components/atoms/box/box.component.ts +0 -77
  800. package/src/lib/components/atoms/box/box.stories.ts +0 -280
  801. package/src/lib/components/atoms/box/types.ts +0 -20
  802. package/src/lib/components/atoms/button/button.component.scss +0 -20
  803. package/src/lib/components/atoms/button/button.component.ts +0 -174
  804. package/src/lib/components/atoms/button/button.stories.ts +0 -293
  805. package/src/lib/components/atoms/button/factory.ts +0 -444
  806. package/src/lib/components/atoms/container/container.component.scss +0 -83
  807. package/src/lib/components/atoms/container/container.component.ts +0 -45
  808. package/src/lib/components/atoms/container/container.stories.ts +0 -128
  809. package/src/lib/components/atoms/container/types.ts +0 -12
  810. package/src/lib/components/atoms/countdown/countdown.component.scss +0 -256
  811. package/src/lib/components/atoms/countdown/countdown.component.ts +0 -293
  812. package/src/lib/components/atoms/countdown/countdown.stories.ts +0 -316
  813. package/src/lib/components/atoms/countdown/types.ts +0 -144
  814. package/src/lib/components/atoms/display/display.component.scss +0 -17
  815. package/src/lib/components/atoms/display/display.component.ts +0 -54
  816. package/src/lib/components/atoms/display/display.stories.ts +0 -185
  817. package/src/lib/components/atoms/display/types.ts +0 -35
  818. package/src/lib/components/atoms/divider/divider.component.scss +0 -62
  819. package/src/lib/components/atoms/divider/divider.component.ts +0 -35
  820. package/src/lib/components/atoms/divider/divider.stories.ts +0 -202
  821. package/src/lib/components/atoms/divider/types.ts +0 -12
  822. package/src/lib/components/atoms/fab/fab.component.scss +0 -26
  823. package/src/lib/components/atoms/fab/fab.component.ts +0 -166
  824. package/src/lib/components/atoms/fab/fab.stories.ts +0 -360
  825. package/src/lib/components/atoms/fab/types.ts +0 -47
  826. package/src/lib/components/atoms/glass/glass.component.ts +0 -132
  827. package/src/lib/components/atoms/glass/types.ts +0 -79
  828. package/src/lib/components/atoms/glow/glow.component.scss +0 -88
  829. package/src/lib/components/atoms/glow/glow.component.ts +0 -103
  830. package/src/lib/components/atoms/glow/glow.stories.ts +0 -215
  831. package/src/lib/components/atoms/glow/types.ts +0 -61
  832. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.scss +0 -39
  833. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.ts +0 -67
  834. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.stories.ts +0 -351
  835. package/src/lib/components/atoms/horizontal-scroll/types.ts +0 -13
  836. package/src/lib/components/atoms/href/href.component.scss +0 -25
  837. package/src/lib/components/atoms/href/href.component.ts +0 -64
  838. package/src/lib/components/atoms/href/href.stories.ts +0 -214
  839. package/src/lib/components/atoms/href/types.ts +0 -20
  840. package/src/lib/components/atoms/icon/icon.component.scss +0 -33
  841. package/src/lib/components/atoms/icon/icon.component.ts +0 -38
  842. package/src/lib/components/atoms/icon/icon.stories.ts +0 -160
  843. package/src/lib/components/atoms/icon/types.ts +0 -14
  844. package/src/lib/components/atoms/image/README.md +0 -0
  845. package/src/lib/components/atoms/image/image.component.scss +0 -284
  846. package/src/lib/components/atoms/image/image.component.ts +0 -399
  847. package/src/lib/components/atoms/image/image.stories.ts +0 -317
  848. package/src/lib/components/atoms/image/types.ts +0 -37
  849. package/src/lib/components/atoms/pattern/motifs.ts +0 -205
  850. package/src/lib/components/atoms/pattern/pattern.component.ts +0 -216
  851. package/src/lib/components/atoms/pattern/types.ts +0 -70
  852. package/src/lib/components/atoms/price-tag/price-tag.component.scss +0 -228
  853. package/src/lib/components/atoms/price-tag/price-tag.component.ts +0 -188
  854. package/src/lib/components/atoms/price-tag/price-tag.stories.ts +0 -315
  855. package/src/lib/components/atoms/price-tag/types.ts +0 -78
  856. package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +0 -22
  857. package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +0 -88
  858. package/src/lib/components/atoms/progress-bar/progress-bar.stories.ts +0 -375
  859. package/src/lib/components/atoms/progress-bar/types.ts +0 -20
  860. package/src/lib/components/atoms/progress-ring/progress-ring.component.scss +0 -35
  861. package/src/lib/components/atoms/progress-ring/progress-ring.component.ts +0 -114
  862. package/src/lib/components/atoms/progress-ring/progress-ring.stories.ts +0 -323
  863. package/src/lib/components/atoms/progress-ring/types.ts +0 -25
  864. package/src/lib/components/atoms/qr-code/qr-code.component.scss +0 -373
  865. package/src/lib/components/atoms/qr-code/qr-code.component.ts +0 -313
  866. package/src/lib/components/atoms/qr-code/qr-code.stories.ts +0 -767
  867. package/src/lib/components/atoms/qr-code/types.ts +0 -173
  868. package/src/lib/components/atoms/rights-footer/rights-footer.component.scss +0 -20
  869. package/src/lib/components/atoms/rights-footer/rights-footer.component.ts +0 -98
  870. package/src/lib/components/atoms/rights-footer/rights-footer.stories.ts +0 -229
  871. package/src/lib/components/atoms/rights-footer/types.ts +0 -21
  872. package/src/lib/components/atoms/skeleton/skeleton.component.scss +0 -58
  873. package/src/lib/components/atoms/skeleton/skeleton.component.ts +0 -129
  874. package/src/lib/components/atoms/skeleton/skeleton.stories.ts +0 -242
  875. package/src/lib/components/atoms/skeleton/types.ts +0 -39
  876. package/src/lib/components/atoms/text/text.component.scss +0 -38
  877. package/src/lib/components/atoms/text/text.component.ts +0 -123
  878. package/src/lib/components/atoms/text/text.stories.ts +0 -174
  879. package/src/lib/components/atoms/text/types.ts +0 -50
  880. package/src/lib/components/atoms/title/title.component.scss +0 -33
  881. package/src/lib/components/atoms/title/title.component.ts +0 -65
  882. package/src/lib/components/atoms/title/title.stories.ts +0 -167
  883. package/src/lib/components/atoms/title/types.ts +0 -46
  884. package/src/lib/components/atoms/user-avatar/types.ts +0 -84
  885. package/src/lib/components/atoms/user-avatar/user-avatar.component.ts +0 -295
  886. package/src/lib/components/molecules/accordion/accordion.component.scss +0 -34
  887. package/src/lib/components/molecules/accordion/accordion.component.ts +0 -103
  888. package/src/lib/components/molecules/accordion/accordion.stories.ts +0 -236
  889. package/src/lib/components/molecules/accordion/types.ts +0 -49
  890. package/src/lib/components/molecules/action-card/action-card.component.scss +0 -218
  891. package/src/lib/components/molecules/action-card/action-card.component.ts +0 -221
  892. package/src/lib/components/molecules/action-card/action-card.stories.ts +0 -396
  893. package/src/lib/components/molecules/action-card/types.ts +0 -102
  894. package/src/lib/components/molecules/action-header/action-header.component.ts +0 -55
  895. package/src/lib/components/molecules/action-header/action-header.stories.ts +0 -481
  896. package/src/lib/components/molecules/action-header/types.ts +0 -29
  897. package/src/lib/components/molecules/ad-slot/ad-slot.component.ts +0 -352
  898. package/src/lib/components/molecules/alert-box/alert-box.component.scss +0 -10
  899. package/src/lib/components/molecules/alert-box/alert-box.component.ts +0 -125
  900. package/src/lib/components/molecules/alert-box/alert-box.stories.ts +0 -248
  901. package/src/lib/components/molecules/alert-box/types.ts +0 -39
  902. package/src/lib/components/molecules/breadcrumb/breadcrumb.component.scss +0 -34
  903. package/src/lib/components/molecules/breadcrumb/breadcrumb.component.ts +0 -109
  904. package/src/lib/components/molecules/breadcrumb/breadcrumb.stories.ts +0 -271
  905. package/src/lib/components/molecules/breadcrumb/types.ts +0 -47
  906. package/src/lib/components/molecules/button-group/button-group.component.scss +0 -41
  907. package/src/lib/components/molecules/button-group/button-group.component.ts +0 -65
  908. package/src/lib/components/molecules/button-group/button-group.stories.ts +0 -296
  909. package/src/lib/components/molecules/button-group/types.ts +0 -14
  910. package/src/lib/components/molecules/card/card.component.scss +0 -62
  911. package/src/lib/components/molecules/card/card.component.ts +0 -300
  912. package/src/lib/components/molecules/card/card.stories.ts +0 -360
  913. package/src/lib/components/molecules/card/types.ts +0 -36
  914. package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
  915. package/src/lib/components/molecules/check-input/check-input.component.ts +0 -88
  916. package/src/lib/components/molecules/check-input/check-input.stories.ts +0 -54
  917. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.scss +0 -12
  918. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.ts +0 -65
  919. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.stories.ts +0 -201
  920. package/src/lib/components/molecules/checkbox-radio-input/index.ts +0 -1
  921. package/src/lib/components/molecules/chip-group/chip-group.component.scss +0 -70
  922. package/src/lib/components/molecules/chip-group/chip-group.component.ts +0 -150
  923. package/src/lib/components/molecules/chip-group/chip-group.stories.ts +0 -307
  924. package/src/lib/components/molecules/chip-group/types.ts +0 -69
  925. package/src/lib/components/molecules/code-display/code-display.component.scss +0 -246
  926. package/src/lib/components/molecules/code-display/code-display.component.ts +0 -109
  927. package/src/lib/components/molecules/code-display/code-display.stories.ts +0 -402
  928. package/src/lib/components/molecules/code-display/types.ts +0 -11
  929. package/src/lib/components/molecules/command-display/command-display.component.scss +0 -38
  930. package/src/lib/components/molecules/command-display/command-display.component.ts +0 -45
  931. package/src/lib/components/molecules/command-display/command-display.stories.ts +0 -110
  932. package/src/lib/components/molecules/command-display/types.ts +0 -3
  933. package/src/lib/components/molecules/comment/comment.component.scss +0 -347
  934. package/src/lib/components/molecules/comment/comment.component.ts +0 -496
  935. package/src/lib/components/molecules/comment/comment.stories.ts +0 -384
  936. package/src/lib/components/molecules/comment/types.ts +0 -181
  937. package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
  938. package/src/lib/components/molecules/comment-input/comment-input.component.ts +0 -42
  939. package/src/lib/components/molecules/comment-input/comment-input.stories.ts +0 -124
  940. package/src/lib/components/molecules/comment-input/types.ts +0 -69
  941. package/src/lib/components/molecules/content-loader/content-loader.component.scss +0 -42
  942. package/src/lib/components/molecules/content-loader/content-loader.component.ts +0 -45
  943. package/src/lib/components/molecules/content-loader/content-loader.stories.ts +0 -370
  944. package/src/lib/components/molecules/content-loader/types.ts +0 -16
  945. package/src/lib/components/molecules/content-reaction/content-reaction.component.html +0 -81
  946. package/src/lib/components/molecules/content-reaction/content-reaction.component.scss +0 -157
  947. package/src/lib/components/molecules/content-reaction/content-reaction.component.ts +0 -273
  948. package/src/lib/components/molecules/content-reaction/content-reaction.stories.ts +0 -453
  949. package/src/lib/components/molecules/content-reaction/types.ts +0 -99
  950. package/src/lib/components/molecules/currency-input/currency-input.component.scss +0 -101
  951. package/src/lib/components/molecules/currency-input/currency-input.component.ts +0 -327
  952. package/src/lib/components/molecules/currency-input/currency-input.stories.ts +0 -279
  953. package/src/lib/components/molecules/currency-input/types.ts +0 -125
  954. package/src/lib/components/molecules/date-input/date-input.component.scss +0 -11
  955. package/src/lib/components/molecules/date-input/date-input.component.ts +0 -136
  956. package/src/lib/components/molecules/date-input/date-input.stories.ts +0 -205
  957. package/src/lib/components/molecules/date-input/types.ts +0 -84
  958. package/src/lib/components/molecules/date-range-input/date-range-input.component.scss +0 -119
  959. package/src/lib/components/molecules/date-range-input/date-range-input.component.ts +0 -364
  960. package/src/lib/components/molecules/date-range-input/date-range-input.stories.ts +0 -288
  961. package/src/lib/components/molecules/date-range-input/types.ts +0 -122
  962. package/src/lib/components/molecules/docs-api-table/docs-api-table.component.scss +0 -278
  963. package/src/lib/components/molecules/docs-api-table/docs-api-table.component.ts +0 -138
  964. package/src/lib/components/molecules/docs-api-table/types.ts +0 -81
  965. package/src/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.ts +0 -161
  966. package/src/lib/components/molecules/docs-breadcrumb/types.ts +0 -21
  967. package/src/lib/components/molecules/docs-callout/docs-callout.component.scss +0 -136
  968. package/src/lib/components/molecules/docs-callout/docs-callout.component.ts +0 -55
  969. package/src/lib/components/molecules/docs-code-example/docs-code-example.component.ts +0 -540
  970. package/src/lib/components/molecules/docs-code-example/types.ts +0 -75
  971. package/src/lib/components/molecules/docs-nav-links/docs-nav-links.component.ts +0 -216
  972. package/src/lib/components/molecules/docs-nav-links/types.ts +0 -36
  973. package/src/lib/components/molecules/docs-search/docs-search.component.scss +0 -195
  974. package/src/lib/components/molecules/docs-search/docs-search.component.ts +0 -228
  975. package/src/lib/components/molecules/docs-search/types.ts +0 -30
  976. package/src/lib/components/molecules/docs-section/docs-section.component.ts +0 -99
  977. package/src/lib/components/molecules/docs-section/types.ts +0 -31
  978. package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
  979. package/src/lib/components/molecules/email-input/email-input.component.ts +0 -77
  980. package/src/lib/components/molecules/email-input/email-input.stories.ts +0 -176
  981. package/src/lib/components/molecules/expandable-text/expandable-text.component.ts +0 -111
  982. package/src/lib/components/molecules/expandable-text/expandable-text.stories.ts +0 -287
  983. package/src/lib/components/molecules/expandable-text/types.ts +0 -14
  984. package/src/lib/components/molecules/features-list/features-list.component.ts +0 -247
  985. package/src/lib/components/molecules/features-list/types.ts +0 -44
  986. package/src/lib/components/molecules/feedback-form/feedback-form.component.ts +0 -355
  987. package/src/lib/components/molecules/feedback-form/types.ts +0 -77
  988. package/src/lib/components/molecules/file-input/file-input.component.scss +0 -11
  989. package/src/lib/components/molecules/file-input/file-input.component.ts +0 -87
  990. package/src/lib/components/molecules/file-input/file-input.stories.ts +0 -107
  991. package/src/lib/components/molecules/file-input/types.ts +0 -85
  992. package/src/lib/components/molecules/footer-links/footer-links.component.scss +0 -124
  993. package/src/lib/components/molecules/footer-links/footer-links.component.ts +0 -244
  994. package/src/lib/components/molecules/footer-links/footer-links.stories.ts +0 -188
  995. package/src/lib/components/molecules/footer-links/types.ts +0 -52
  996. package/src/lib/components/molecules/glow-card/glow-card.component.scss +0 -295
  997. package/src/lib/components/molecules/glow-card/glow-card.component.ts +0 -284
  998. package/src/lib/components/molecules/glow-card/glow-card.stories.ts +0 -680
  999. package/src/lib/components/molecules/glow-card/types.ts +0 -117
  1000. package/src/lib/components/molecules/hint/hint.component.scss +0 -5
  1001. package/src/lib/components/molecules/hint/hint.component.ts +0 -89
  1002. package/src/lib/components/molecules/hint/hint.stories.ts +0 -233
  1003. package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
  1004. package/src/lib/components/molecules/hour-input/hour-input.component.ts +0 -34
  1005. package/src/lib/components/molecules/hour-input/hour-input.stories.ts +0 -145
  1006. package/src/lib/components/molecules/image-crop/image-crop.component.ts +0 -195
  1007. package/src/lib/components/molecules/info/info.component.ts +0 -35
  1008. package/src/lib/components/molecules/info/info.stories.ts +0 -276
  1009. package/src/lib/components/molecules/info/types.ts +0 -11
  1010. package/src/lib/components/molecules/language-selector/language-selector.component.scss +0 -128
  1011. package/src/lib/components/molecules/language-selector/language-selector.component.ts +0 -204
  1012. package/src/lib/components/molecules/language-selector/language-selector.stories.ts +0 -261
  1013. package/src/lib/components/molecules/language-selector/types.ts +0 -84
  1014. package/src/lib/components/molecules/layered-card/layered-card.component.scss +0 -93
  1015. package/src/lib/components/molecules/layered-card/layered-card.component.ts +0 -66
  1016. package/src/lib/components/molecules/layered-card/layered-card.stories.ts +0 -313
  1017. package/src/lib/components/molecules/layered-card/types.ts +0 -16
  1018. package/src/lib/components/molecules/link/link.component.scss +0 -11
  1019. package/src/lib/components/molecules/link/link.component.ts +0 -73
  1020. package/src/lib/components/molecules/link/link.stories.ts +0 -307
  1021. package/src/lib/components/molecules/link/types.ts +0 -20
  1022. package/src/lib/components/molecules/linked-providers/index.ts +0 -2
  1023. package/src/lib/components/molecules/linked-providers/linked-providers.component.ts +0 -289
  1024. package/src/lib/components/molecules/linked-providers/types.ts +0 -63
  1025. package/src/lib/components/molecules/links-accordion/links-accordion.component.scss +0 -17
  1026. package/src/lib/components/molecules/links-accordion/links-accordion.component.ts +0 -161
  1027. package/src/lib/components/molecules/links-accordion/links-accordion.stories.ts +0 -209
  1028. package/src/lib/components/molecules/links-accordion/types.ts +0 -41
  1029. package/src/lib/components/molecules/links-cake/links-cake.component.scss +0 -9
  1030. package/src/lib/components/molecules/links-cake/links-cake.component.ts +0 -49
  1031. package/src/lib/components/molecules/links-cake/links-cake.stories.ts +0 -160
  1032. package/src/lib/components/molecules/links-cake/types.ts +0 -14
  1033. package/src/lib/components/molecules/multi-select-search/multi-select-search.component.scss +0 -172
  1034. package/src/lib/components/molecules/multi-select-search/multi-select-search.component.ts +0 -471
  1035. package/src/lib/components/molecules/multi-select-search/multi-select-search.stories.ts +0 -188
  1036. package/src/lib/components/molecules/notes-box/notes-box.component.scss +0 -204
  1037. package/src/lib/components/molecules/notes-box/notes-box.component.ts +0 -68
  1038. package/src/lib/components/molecules/notes-box/notes-box.stories.ts +0 -308
  1039. package/src/lib/components/molecules/notes-box/types.ts +0 -36
  1040. package/src/lib/components/molecules/number-from-to/number-from-to.component.scss +0 -10
  1041. package/src/lib/components/molecules/number-from-to/number-from-to.component.ts +0 -134
  1042. package/src/lib/components/molecules/number-from-to/number-from-to.stories.ts +0 -203
  1043. package/src/lib/components/molecules/number-from-to/types.ts +0 -91
  1044. package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
  1045. package/src/lib/components/molecules/number-input/number-input.component.ts +0 -41
  1046. package/src/lib/components/molecules/number-input/number-input.stories.ts +0 -151
  1047. package/src/lib/components/molecules/number-stepper/number-stepper.component.scss +0 -252
  1048. package/src/lib/components/molecules/number-stepper/number-stepper.component.ts +0 -302
  1049. package/src/lib/components/molecules/number-stepper/number-stepper.stories.ts +0 -417
  1050. package/src/lib/components/molecules/number-stepper/types.ts +0 -101
  1051. package/src/lib/components/molecules/page-links/page-links.component.scss +0 -93
  1052. package/src/lib/components/molecules/page-links/page-links.component.ts +0 -103
  1053. package/src/lib/components/molecules/page-links/types.ts +0 -39
  1054. package/src/lib/components/molecules/pagination/pagination.component.scss +0 -50
  1055. package/src/lib/components/molecules/pagination/pagination.component.ts +0 -194
  1056. package/src/lib/components/molecules/pagination/pagination.stories.ts +0 -260
  1057. package/src/lib/components/molecules/pagination/types.ts +0 -43
  1058. package/src/lib/components/molecules/password-input/password-input.component.scss +0 -7
  1059. package/src/lib/components/molecules/password-input/password-input.component.ts +0 -93
  1060. package/src/lib/components/molecules/password-input/password-input.stories.ts +0 -187
  1061. package/src/lib/components/molecules/phone-input/phone-input.component.scss +0 -175
  1062. package/src/lib/components/molecules/phone-input/phone-input.component.ts +0 -359
  1063. package/src/lib/components/molecules/phone-input/phone-input.stories.ts +0 -229
  1064. package/src/lib/components/molecules/phone-input/types.ts +0 -126
  1065. package/src/lib/components/molecules/pill/pill.component.scss +0 -35
  1066. package/src/lib/components/molecules/pill/pill.component.ts +0 -89
  1067. package/src/lib/components/molecules/pill/pill.stories.ts +0 -219
  1068. package/src/lib/components/molecules/pill/types.ts +0 -10
  1069. package/src/lib/components/molecules/pin-input/pin-input.component.scss +0 -22
  1070. package/src/lib/components/molecules/pin-input/pin-input.component.ts +0 -83
  1071. package/src/lib/components/molecules/pin-input/pin-input.stories.ts +0 -196
  1072. package/src/lib/components/molecules/pin-input/types.ts +0 -80
  1073. package/src/lib/components/molecules/plain-code-box/plain-code-box.component.scss +0 -191
  1074. package/src/lib/components/molecules/plain-code-box/plain-code-box.component.ts +0 -86
  1075. package/src/lib/components/molecules/plain-code-box/plain-code-box.stories.ts +0 -174
  1076. package/src/lib/components/molecules/plain-code-box/types.ts +0 -12
  1077. package/src/lib/components/molecules/popover-selector/popover-selector.component.scss +0 -224
  1078. package/src/lib/components/molecules/popover-selector/popover-selector.component.ts +0 -163
  1079. package/src/lib/components/molecules/popover-selector/popover-selector.stories.ts +0 -324
  1080. package/src/lib/components/molecules/popover-selector/types.ts +0 -71
  1081. package/src/lib/components/molecules/progress-status/progress-status.component.scss +0 -41
  1082. package/src/lib/components/molecules/progress-status/progress-status.component.ts +0 -90
  1083. package/src/lib/components/molecules/progress-status/progress-status.stories.ts +0 -415
  1084. package/src/lib/components/molecules/progress-status/types.ts +0 -21
  1085. package/src/lib/components/molecules/prompter/prompter.component.scss +0 -45
  1086. package/src/lib/components/molecules/prompter/prompter.component.ts +0 -55
  1087. package/src/lib/components/molecules/prompter/prompter.stories.ts +0 -193
  1088. package/src/lib/components/molecules/prompter/types.ts +0 -26
  1089. package/src/lib/components/molecules/quote-box/quote-box.component.scss +0 -253
  1090. package/src/lib/components/molecules/quote-box/quote-box.component.ts +0 -104
  1091. package/src/lib/components/molecules/quote-box/quote-box.stories.ts +0 -264
  1092. package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
  1093. package/src/lib/components/molecules/radio-input/radio-input.component.ts +0 -51
  1094. package/src/lib/components/molecules/radio-input/radio-input.stories.ts +0 -197
  1095. package/src/lib/components/molecules/range-input/range-input.component.scss +0 -15
  1096. package/src/lib/components/molecules/range-input/range-input.component.ts +0 -106
  1097. package/src/lib/components/molecules/range-input/range-input.stories.ts +0 -331
  1098. package/src/lib/components/molecules/range-input/types.ts +0 -61
  1099. package/src/lib/components/molecules/rating/rating.component.scss +0 -60
  1100. package/src/lib/components/molecules/rating/rating.component.ts +0 -154
  1101. package/src/lib/components/molecules/rating/rating.stories.ts +0 -332
  1102. package/src/lib/components/molecules/rating/types.ts +0 -43
  1103. package/src/lib/components/molecules/refresher/refresher.component.ts +0 -259
  1104. package/src/lib/components/molecules/refresher/types.ts +0 -103
  1105. package/src/lib/components/molecules/searchbar/searchbar.component.scss +0 -9
  1106. package/src/lib/components/molecules/searchbar/searchbar.component.ts +0 -122
  1107. package/src/lib/components/molecules/searchbar/searchbar.stories.ts +0 -192
  1108. package/src/lib/components/molecules/searchbar/types.ts +0 -38
  1109. package/src/lib/components/molecules/segment-control/segment-control.component.scss +0 -27
  1110. package/src/lib/components/molecules/segment-control/segment-control.component.ts +0 -117
  1111. package/src/lib/components/molecules/segment-control/segment-control.stories.ts +0 -296
  1112. package/src/lib/components/molecules/segment-control/types.ts +0 -48
  1113. package/src/lib/components/molecules/select-input/select-input.component.scss +0 -0
  1114. package/src/lib/components/molecules/select-input/select-input.component.ts +0 -151
  1115. package/src/lib/components/molecules/select-input/select-input.stories.ts +0 -330
  1116. package/src/lib/components/molecules/select-search/select-search.component.ts +0 -432
  1117. package/src/lib/components/molecules/select-search/select-search.stories.ts +0 -218
  1118. package/src/lib/components/molecules/share-buttons/share-buttons.component.scss +0 -195
  1119. package/src/lib/components/molecules/share-buttons/share-buttons.component.ts +0 -269
  1120. package/src/lib/components/molecules/share-buttons/share-buttons.stories.ts +0 -343
  1121. package/src/lib/components/molecules/share-buttons/types.ts +0 -211
  1122. package/src/lib/components/molecules/stats-card/stats-card.component.scss +0 -198
  1123. package/src/lib/components/molecules/stats-card/stats-card.component.ts +0 -155
  1124. package/src/lib/components/molecules/stats-card/stats-card.stories.ts +0 -481
  1125. package/src/lib/components/molecules/stats-card/types.ts +0 -63
  1126. package/src/lib/components/molecules/stepper/stepper.component.scss +0 -156
  1127. package/src/lib/components/molecules/stepper/stepper.component.ts +0 -201
  1128. package/src/lib/components/molecules/stepper/stepper.stories.ts +0 -308
  1129. package/src/lib/components/molecules/stepper/types.ts +0 -70
  1130. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.scss +0 -164
  1131. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.ts +0 -215
  1132. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.stories.ts +0 -406
  1133. package/src/lib/components/molecules/swipe-carousel/types.ts +0 -32
  1134. package/src/lib/components/molecules/tabs/tabs.component.scss +0 -35
  1135. package/src/lib/components/molecules/tabs/tabs.component.ts +0 -125
  1136. package/src/lib/components/molecules/tabs/tabs.stories.ts +0 -283
  1137. package/src/lib/components/molecules/tabs/types.ts +0 -47
  1138. package/src/lib/components/molecules/testimonial-card/testimonial-card.component.scss +0 -25
  1139. package/src/lib/components/molecules/testimonial-card/testimonial-card.component.ts +0 -121
  1140. package/src/lib/components/molecules/testimonial-card/testimonial-card.stories.ts +0 -130
  1141. package/src/lib/components/molecules/testimonial-card/types.ts +0 -26
  1142. package/src/lib/components/molecules/text-input/text-input.component.scss +0 -1
  1143. package/src/lib/components/molecules/text-input/text-input.component.ts +0 -86
  1144. package/src/lib/components/molecules/text-input/text-input.stories.ts +0 -301
  1145. package/src/lib/components/molecules/textarea-input/textarea-input.component.scss +0 -62
  1146. package/src/lib/components/molecules/textarea-input/textarea-input.component.ts +0 -195
  1147. package/src/lib/components/molecules/textarea-input/textarea-input.stories.ts +0 -329
  1148. package/src/lib/components/molecules/textarea-input/types.ts +0 -83
  1149. package/src/lib/components/molecules/timeline/timeline.component.scss +0 -168
  1150. package/src/lib/components/molecules/timeline/timeline.component.ts +0 -98
  1151. package/src/lib/components/molecules/timeline/timeline.stories.ts +0 -259
  1152. package/src/lib/components/molecules/timeline/types.ts +0 -41
  1153. package/src/lib/components/molecules/title-block/title-block.component.scss +0 -48
  1154. package/src/lib/components/molecules/title-block/title-block.component.ts +0 -72
  1155. package/src/lib/components/molecules/title-block/title-block.stories.ts +0 -351
  1156. package/src/lib/components/molecules/title-block/types.ts +0 -16
  1157. package/src/lib/components/molecules/toggle-input/toggle-input.component.scss +0 -7
  1158. package/src/lib/components/molecules/toggle-input/toggle-input.component.ts +0 -94
  1159. package/src/lib/components/molecules/toggle-input/toggle-input.stories.ts +0 -240
  1160. package/src/lib/components/molecules/toggle-input/types.ts +0 -31
  1161. package/src/lib/components/molecules/update-banner/index.ts +0 -1
  1162. package/src/lib/components/molecules/update-banner/update-banner.component.ts +0 -118
  1163. package/src/lib/components/molecules/username-input/index.ts +0 -2
  1164. package/src/lib/components/molecules/username-input/types.ts +0 -38
  1165. package/src/lib/components/molecules/username-input/username-input.component.ts +0 -364
  1166. package/src/lib/components/organisms/article/README.md +0 -569
  1167. package/src/lib/components/organisms/article/article.component.scss +0 -435
  1168. package/src/lib/components/organisms/article/article.component.ts +0 -474
  1169. package/src/lib/components/organisms/article/article.stories.ts +0 -625
  1170. package/src/lib/components/organisms/article/types.ts +0 -555
  1171. package/src/lib/components/organisms/avatar-upload/avatar-upload.component.scss +0 -119
  1172. package/src/lib/components/organisms/avatar-upload/avatar-upload.component.ts +0 -303
  1173. package/src/lib/components/organisms/avatar-upload/avatar-upload.stories.ts +0 -282
  1174. package/src/lib/components/organisms/avatar-upload/index.ts +0 -2
  1175. package/src/lib/components/organisms/avatar-upload/types.ts +0 -71
  1176. package/src/lib/components/organisms/banner/banner.component.scss +0 -51
  1177. package/src/lib/components/organisms/banner/banner.component.ts +0 -95
  1178. package/src/lib/components/organisms/banner/banner.stories.ts +0 -462
  1179. package/src/lib/components/organisms/banner/types.ts +0 -30
  1180. package/src/lib/components/organisms/bottom-nav/bottom-nav.component.scss +0 -343
  1181. package/src/lib/components/organisms/bottom-nav/bottom-nav.component.ts +0 -361
  1182. package/src/lib/components/organisms/bottom-nav/bottom-nav.stories.ts +0 -403
  1183. package/src/lib/components/organisms/bottom-nav/types.ts +0 -142
  1184. package/src/lib/components/organisms/cards-carousel/cards-carousel.component.ts +0 -118
  1185. package/src/lib/components/organisms/cards-carousel/cards-carousel.stories.ts +0 -502
  1186. package/src/lib/components/organisms/cards-carousel/types.ts +0 -41
  1187. package/src/lib/components/organisms/comment-section/comment-section.component.scss +0 -277
  1188. package/src/lib/components/organisms/comment-section/comment-section.component.ts +0 -429
  1189. package/src/lib/components/organisms/comment-section/comment-section.stories.ts +0 -305
  1190. package/src/lib/components/organisms/comment-section/types.ts +0 -169
  1191. package/src/lib/components/organisms/company-footer/company-footer.component.ts +0 -73
  1192. package/src/lib/components/organisms/company-footer/company-footer.stories.ts +0 -216
  1193. package/src/lib/components/organisms/company-footer/types.ts +0 -16
  1194. package/src/lib/components/organisms/cookie-banner/cookie-banner.component.scss +0 -166
  1195. package/src/lib/components/organisms/cookie-banner/cookie-banner.component.ts +0 -123
  1196. package/src/lib/components/organisms/cookie-banner/cookie-banner.stories.ts +0 -120
  1197. package/src/lib/components/organisms/cookie-banner/types.ts +0 -74
  1198. package/src/lib/components/organisms/data-table/data-table.component.scss +0 -919
  1199. package/src/lib/components/organisms/data-table/data-table.component.ts +0 -821
  1200. package/src/lib/components/organisms/data-table/data-table.stories.ts +0 -787
  1201. package/src/lib/components/organisms/data-table/types.ts +0 -258
  1202. package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.scss +0 -228
  1203. package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.ts +0 -213
  1204. package/src/lib/components/organisms/docs-sidebar/types.ts +0 -112
  1205. package/src/lib/components/organisms/docs-toc/docs-toc.component.scss +0 -119
  1206. package/src/lib/components/organisms/docs-toc/docs-toc.component.ts +0 -320
  1207. package/src/lib/components/organisms/docs-toc/types.ts +0 -73
  1208. package/src/lib/components/organisms/footer/footer.component.scss +0 -3
  1209. package/src/lib/components/organisms/footer/footer.component.ts +0 -65
  1210. package/src/lib/components/organisms/footer/footer.stories.ts +0 -278
  1211. package/src/lib/components/organisms/footer/types.ts +0 -17
  1212. package/src/lib/components/organisms/form/factory.ts +0 -46
  1213. package/src/lib/components/organisms/form/form-footer/form-footer.component.scss +0 -0
  1214. package/src/lib/components/organisms/form/form-footer/form-footer.component.ts +0 -72
  1215. package/src/lib/components/organisms/form/form.component.scss +0 -24
  1216. package/src/lib/components/organisms/form/form.component.ts +0 -448
  1217. package/src/lib/components/organisms/form/form.stories.ts +0 -694
  1218. package/src/lib/components/organisms/fun-header/fun-header.component.scss +0 -36
  1219. package/src/lib/components/organisms/fun-header/fun-header.component.ts +0 -209
  1220. package/src/lib/components/organisms/fun-header/fun-header.stories.ts +0 -272
  1221. package/src/lib/components/organisms/fun-header/types.ts +0 -29
  1222. package/src/lib/components/organisms/header/header.component.scss +0 -5
  1223. package/src/lib/components/organisms/header/header.component.ts +0 -53
  1224. package/src/lib/components/organisms/header/header.stories.ts +0 -293
  1225. package/src/lib/components/organisms/header/types.ts +0 -17
  1226. package/src/lib/components/organisms/infinite-list/infinite-list.component.ts +0 -602
  1227. package/src/lib/components/organisms/infinite-list/infinite-list.stories.ts +0 -399
  1228. package/src/lib/components/organisms/infinite-list/types.ts +0 -235
  1229. package/src/lib/components/organisms/item-list/item-list.component.scss +0 -53
  1230. package/src/lib/components/organisms/item-list/item-list.component.ts +0 -269
  1231. package/src/lib/components/organisms/item-list/item-list.stories.ts +0 -363
  1232. package/src/lib/components/organisms/item-list/types.ts +0 -130
  1233. package/src/lib/components/organisms/login/login.component.html +0 -230
  1234. package/src/lib/components/organisms/login/login.component.scss +0 -118
  1235. package/src/lib/components/organisms/login/login.component.ts +0 -866
  1236. package/src/lib/components/organisms/login/login.stories.ts +0 -283
  1237. package/src/lib/components/organisms/login/types.ts +0 -89
  1238. package/src/lib/components/organisms/menu/menu.component.scss +0 -23
  1239. package/src/lib/components/organisms/menu/menu.component.ts +0 -152
  1240. package/src/lib/components/organisms/menu/menu.stories.ts +0 -223
  1241. package/src/lib/components/organisms/menu/types.ts +0 -24
  1242. package/src/lib/components/organisms/no-content/no-content.component.scss +0 -11
  1243. package/src/lib/components/organisms/no-content/no-content.component.ts +0 -68
  1244. package/src/lib/components/organisms/no-content/no-content.stories.ts +0 -259
  1245. package/src/lib/components/organisms/no-content/types.ts +0 -18
  1246. package/src/lib/components/organisms/rotating-text/rotating-text.component.ts +0 -239
  1247. package/src/lib/components/organisms/rotating-text/types.ts +0 -29
  1248. package/src/lib/components/organisms/tabbed-content/tabbed-content.component.scss +0 -89
  1249. package/src/lib/components/organisms/tabbed-content/tabbed-content.component.ts +0 -165
  1250. package/src/lib/components/organisms/tabbed-content/tabbed-content.stories.ts +0 -326
  1251. package/src/lib/components/organisms/tabbed-content/types.ts +0 -56
  1252. package/src/lib/components/organisms/terminal-404/terminal-404.component.ts +0 -339
  1253. package/src/lib/components/organisms/terminal-404/terminal-404.stories.ts +0 -229
  1254. package/src/lib/components/organisms/terminal-404/types.ts +0 -22
  1255. package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.ts +0 -70
  1256. package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.stories.ts +0 -173
  1257. package/src/lib/components/organisms/testimonial-carousel/types.ts +0 -9
  1258. package/src/lib/components/organisms/toolbar/toolbar.component.scss +0 -13
  1259. package/src/lib/components/organisms/toolbar/toolbar.component.ts +0 -205
  1260. package/src/lib/components/organisms/toolbar/toolbar.stories.ts +0 -263
  1261. package/src/lib/components/organisms/toolbar/types.ts +0 -32
  1262. package/src/lib/components/organisms/wizard/types.ts +0 -46
  1263. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.scss +0 -0
  1264. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.ts +0 -104
  1265. package/src/lib/components/organisms/wizard/wizard.component.scss +0 -16
  1266. package/src/lib/components/organisms/wizard/wizard.component.ts +0 -165
  1267. package/src/lib/components/organisms/wizard/wizard.stories.ts +0 -653
  1268. package/src/lib/components/templates/auth-background/auth-background.component.ts +0 -301
  1269. package/src/lib/components/templates/auth-background/types.ts +0 -34
  1270. package/src/lib/components/templates/docs-layout/docs-layout.component.scss +0 -218
  1271. package/src/lib/components/templates/docs-layout/docs-layout.component.ts +0 -161
  1272. package/src/lib/components/templates/docs-layout/types.ts +0 -45
  1273. package/src/lib/components/templates/docs-page/docs-page.component.ts +0 -534
  1274. package/src/lib/components/templates/docs-page/types.ts +0 -141
  1275. package/src/lib/components/templates/docs-shell/docs-shell.component.ts +0 -494
  1276. package/src/lib/components/templates/docs-shell/types.ts +0 -176
  1277. package/src/lib/components/templates/maintenance-page/index.ts +0 -2
  1278. package/src/lib/components/templates/maintenance-page/maintenance-page.component.scss +0 -44
  1279. package/src/lib/components/templates/maintenance-page/maintenance-page.component.ts +0 -120
  1280. package/src/lib/components/templates/maintenance-page/types.ts +0 -12
  1281. package/src/lib/components/templates/page-content/page-content.component.ts +0 -188
  1282. package/src/lib/components/templates/page-content/page-content.stories.ts +0 -169
  1283. package/src/lib/components/templates/page-content/types.ts +0 -28
  1284. package/src/lib/components/templates/page-template/page-template.component.ts +0 -164
  1285. package/src/lib/components/templates/page-template/page-template.stories.ts +0 -174
  1286. package/src/lib/components/templates/page-template/types.ts +0 -17
  1287. package/src/lib/components/templates/page-wrapper/page-composition.stories.ts +0 -566
  1288. package/src/lib/components/templates/page-wrapper/page-wrapper.component.ts +0 -188
  1289. package/src/lib/components/templates/page-wrapper/page-wrapper.stories.ts +0 -149
  1290. package/src/lib/components/templates/page-wrapper/types.ts +0 -27
  1291. package/src/lib/components/templates/simple/simple.component.scss +0 -29
  1292. package/src/lib/components/templates/simple/simple.component.ts +0 -86
  1293. package/src/lib/components/templates/simple/types.ts +0 -11
  1294. package/src/lib/components/types.ts +0 -321
  1295. package/src/lib/config/company-footer.config.ts +0 -169
  1296. package/src/lib/services/ads/ads-consent.service.ts +0 -166
  1297. package/src/lib/services/ads/ads-loader.service.ts +0 -133
  1298. package/src/lib/services/ads/ads.service.ts +0 -268
  1299. package/src/lib/services/ads/config.ts +0 -92
  1300. package/src/lib/services/ads/index.ts +0 -29
  1301. package/src/lib/services/ads/types.ts +0 -187
  1302. package/src/lib/services/app-config/app-config.service.ts +0 -228
  1303. package/src/lib/services/app-config/config.ts +0 -62
  1304. package/src/lib/services/app-config/index.ts +0 -48
  1305. package/src/lib/services/app-config/types.ts +0 -62
  1306. package/src/lib/services/app-config/version.ts +0 -104
  1307. package/src/lib/services/auth/auth-state.service.ts +0 -248
  1308. package/src/lib/services/auth/auth.service.ts +0 -1387
  1309. package/src/lib/services/auth/config.ts +0 -87
  1310. package/src/lib/services/auth/device.service.ts +0 -163
  1311. package/src/lib/services/auth/guards.ts +0 -234
  1312. package/src/lib/services/auth/handoff.service.ts +0 -225
  1313. package/src/lib/services/auth/index.ts +0 -128
  1314. package/src/lib/services/auth/interceptor.ts +0 -177
  1315. package/src/lib/services/auth/notification-action.service.ts +0 -133
  1316. package/src/lib/services/auth/oauth-callback.component.ts +0 -202
  1317. package/src/lib/services/auth/oauth.service.ts +0 -352
  1318. package/src/lib/services/auth/org-switch.service.ts +0 -165
  1319. package/src/lib/services/auth/session.service.ts +0 -83
  1320. package/src/lib/services/auth/storage.service.ts +0 -181
  1321. package/src/lib/services/auth/sync.service.ts +0 -158
  1322. package/src/lib/services/auth/token.service.ts +0 -132
  1323. package/src/lib/services/auth/types.ts +0 -1042
  1324. package/src/lib/services/confirmation-dialog/confirmation-dialog.service.ts +0 -206
  1325. package/src/lib/services/confirmation-dialog/types.ts +0 -74
  1326. package/src/lib/services/content/content-types/blog.ts +0 -324
  1327. package/src/lib/services/content/content-types/documentation.ts +0 -369
  1328. package/src/lib/services/content/content-types/news.ts +0 -328
  1329. package/src/lib/services/content/index.ts +0 -71
  1330. package/src/lib/services/content/transformer.ts +0 -312
  1331. package/src/lib/services/content/types.ts +0 -276
  1332. package/src/lib/services/docs/docs-navigation.service.ts +0 -91
  1333. package/src/lib/services/download.service.ts +0 -75
  1334. package/src/lib/services/feedback/config.ts +0 -61
  1335. package/src/lib/services/feedback/feedback.service.ts +0 -348
  1336. package/src/lib/services/feedback/index.ts +0 -59
  1337. package/src/lib/services/feedback/types.ts +0 -239
  1338. package/src/lib/services/firebase/README.md +0 -328
  1339. package/src/lib/services/firebase/analytics-error-handler.ts +0 -155
  1340. package/src/lib/services/firebase/analytics-router-tracker.ts +0 -109
  1341. package/src/lib/services/firebase/analytics-types.ts +0 -277
  1342. package/src/lib/services/firebase/analytics.service.ts +0 -707
  1343. package/src/lib/services/firebase/config.ts +0 -172
  1344. package/src/lib/services/firebase/firebase.service.ts +0 -502
  1345. package/src/lib/services/firebase/firestore-collection.ts +0 -390
  1346. package/src/lib/services/firebase/firestore.service.ts +0 -685
  1347. package/src/lib/services/firebase/index.ts +0 -88
  1348. package/src/lib/services/firebase/messaging.service.ts +0 -753
  1349. package/src/lib/services/firebase/notifications.service.ts +0 -295
  1350. package/src/lib/services/firebase/shared-config.ts +0 -212
  1351. package/src/lib/services/firebase/storage.service.ts +0 -536
  1352. package/src/lib/services/firebase/types.ts +0 -461
  1353. package/src/lib/services/firebase/utils/path-builder.ts +0 -210
  1354. package/src/lib/services/firebase/utils/query-builder.ts +0 -339
  1355. package/src/lib/services/i18n/config.ts +0 -146
  1356. package/src/lib/services/i18n/default-content.ts +0 -657
  1357. package/src/lib/services/i18n/i18n.service.ts +0 -243
  1358. package/src/lib/services/i18n/index.ts +0 -29
  1359. package/src/lib/services/i18n/input-i18n.helper.ts +0 -141
  1360. package/src/lib/services/i18n/translate.pipe.ts +0 -43
  1361. package/src/lib/services/i18n/types.ts +0 -108
  1362. package/src/lib/services/icons.service.ts +0 -136
  1363. package/src/lib/services/image/image.service.ts +0 -328
  1364. package/src/lib/services/image/types.ts +0 -79
  1365. package/src/lib/services/in-app-browser.service.ts +0 -30
  1366. package/src/lib/services/legal-link/legal-link.service.ts +0 -98
  1367. package/src/lib/services/link-processor.service.ts +0 -311
  1368. package/src/lib/services/local-storage.service.ts +0 -39
  1369. package/src/lib/services/locale.service.ts +0 -86
  1370. package/src/lib/services/markdown-article/legal-content.service.ts +0 -152
  1371. package/src/lib/services/markdown-article/markdown-article-parser.service.ts +0 -15
  1372. package/src/lib/services/markdown-article/markdown-article-parser.ts +0 -362
  1373. package/src/lib/services/meta/meta.service.ts +0 -64
  1374. package/src/lib/services/meta/types.ts +0 -13
  1375. package/src/lib/services/modal/modal.service.ts +0 -244
  1376. package/src/lib/services/modal/simple-modal-content.component.ts +0 -138
  1377. package/src/lib/services/modal/types.ts +0 -180
  1378. package/src/lib/services/navigation/navigation.service.ts +0 -255
  1379. package/src/lib/services/navigation/types.ts +0 -86
  1380. package/src/lib/services/pagination/index.ts +0 -13
  1381. package/src/lib/services/pagination/pagination.service.ts +0 -243
  1382. package/src/lib/services/pagination/types.ts +0 -133
  1383. package/src/lib/services/preferences/preferences.service.ts +0 -179
  1384. package/src/lib/services/preferences/preferences.types.ts +0 -37
  1385. package/src/lib/services/presets/config.ts +0 -51
  1386. package/src/lib/services/presets/index.ts +0 -8
  1387. package/src/lib/services/presets/preset.service.ts +0 -105
  1388. package/src/lib/services/presets/types.ts +0 -41
  1389. package/src/lib/services/qr-generator/qr-generator.service.ts +0 -378
  1390. package/src/lib/services/qr-generator/types.ts +0 -207
  1391. package/src/lib/services/skeleton/config.ts +0 -82
  1392. package/src/lib/services/skeleton/directives/index.ts +0 -1
  1393. package/src/lib/services/skeleton/directives/loading.directive.ts +0 -230
  1394. package/src/lib/services/skeleton/index.ts +0 -30
  1395. package/src/lib/services/skeleton/skeleton.service.ts +0 -220
  1396. package/src/lib/services/skeleton/templates/detail-skeleton.component.ts +0 -166
  1397. package/src/lib/services/skeleton/templates/form-skeleton.component.ts +0 -115
  1398. package/src/lib/services/skeleton/templates/grid-skeleton.component.ts +0 -127
  1399. package/src/lib/services/skeleton/templates/index.ts +0 -6
  1400. package/src/lib/services/skeleton/templates/list-skeleton.component.ts +0 -90
  1401. package/src/lib/services/skeleton/templates/profile-skeleton.component.ts +0 -174
  1402. package/src/lib/services/skeleton/templates/table-skeleton.component.ts +0 -113
  1403. package/src/lib/services/skeleton/types.ts +0 -142
  1404. package/src/lib/services/theme.service.ts +0 -163
  1405. package/src/lib/services/toast.service.ts +0 -42
  1406. package/src/lib/services/types.ts +0 -6
  1407. package/src/lib/shared/constants/storage.ts +0 -2
  1408. package/src/lib/shared/pipes/process-links.pipe.ts +0 -64
  1409. package/src/lib/shared/utils/datetime.ts +0 -27
  1410. package/src/lib/shared/utils/dom.ts +0 -29
  1411. package/src/lib/shared/utils/form-defaults.ts +0 -119
  1412. package/src/lib/shared/utils/styles.ts +0 -39
  1413. package/src/lib/shared/utils/text.ts +0 -12
  1414. package/src/lib/version.ts +0 -5
  1415. package/src/public-api.ts +0 -373
  1416. package/src/stories/Introduction.mdx +0 -649
  1417. package/src/stories/LayoutAndWidths.mdx +0 -161
  1418. package/src/stories/helpers/mock-services.ts +0 -27
  1419. package/src/stories/helpers/storybook-helpers.ts +0 -89
  1420. package/tsconfig.json +0 -32
  1421. package/tsconfig.lib.json +0 -15
  1422. package/tsconfig.lib.prod.json +0 -10
  1423. package/tsconfig.spec.json +0 -14
  1424. /package/{src/lib/components/molecules/image-crop/index.ts → lib/components/molecules/image-crop/index.d.ts} +0 -0
  1425. /package/{src/lib/config/index.ts → lib/config/index.d.ts} +0 -0
  1426. /package/{src/lib/services/image/index.ts → lib/services/image/index.d.ts} +0 -0
  1427. /package/{src/lib/services/meta/index.ts → lib/services/meta/index.d.ts} +0 -0
  1428. /package/{src/lib/services/navigation/index.ts → lib/services/navigation/index.d.ts} +0 -0
  1429. /package/{src/lib/services/preferences/index.ts → lib/services/preferences/index.d.ts} +0 -0
@@ -0,0 +1,650 @@
1
+ /**
2
+ * Messaging Service (FCM)
3
+ *
4
+ * Servicio para Firebase Cloud Messaging (Push Notifications).
5
+ * Permite solicitar permisos, obtener tokens, escuchar mensajes y manejar
6
+ * navegación (deep linking) cuando el usuario toca una notificación.
7
+ */
8
+ import { Inject, Injectable, PLATFORM_ID } from '@angular/core';
9
+ import { isPlatformBrowser } from '@angular/common';
10
+ import { getToken, deleteToken, onMessage } from '@angular/fire/messaging';
11
+ import { isSupported as fcmIsSupported, getMessaging as fcmGetMessaging } from 'firebase/messaging';
12
+ import { getApp, getApps, initializeApp } from 'firebase/app';
13
+ import { Subject, BehaviorSubject } from 'rxjs';
14
+ import { VALTECH_FIREBASE_CONFIG } from './config';
15
+ import * as i0 from "@angular/core";
16
+ /**
17
+ * Servicio para Firebase Cloud Messaging (FCM).
18
+ *
19
+ * Permite recibir notificaciones push en la aplicación web.
20
+ * Requiere VAPID key configurada en ValtechFirebaseConfig.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * @Component({...})
25
+ * export class NotificationComponent {
26
+ * private messaging = inject(MessagingService);
27
+ *
28
+ * token = signal<string | null>(null);
29
+ *
30
+ * async enableNotifications() {
31
+ * // Solicitar permiso y obtener token
32
+ * const token = await this.messaging.requestPermission();
33
+ *
34
+ * if (token) {
35
+ * this.token.set(token);
36
+ * // Enviar token a tu backend para almacenarlo
37
+ * await this.backend.registerDeviceToken(token);
38
+ * }
39
+ * }
40
+ *
41
+ * // Escuchar mensajes en foreground
42
+ * messages$ = this.messaging.onMessage();
43
+ * }
44
+ * ```
45
+ */
46
+ export class MessagingService {
47
+ constructor(injector, config, platformId, ngZone) {
48
+ this.injector = injector;
49
+ this.config = config;
50
+ this.platformId = platformId;
51
+ this.ngZone = ngZone;
52
+ this.messageSubject = new Subject();
53
+ this.notificationClickSubject = new Subject();
54
+ this.stateSubject = new BehaviorSubject({
55
+ token: null,
56
+ permission: 'default',
57
+ isSupported: false,
58
+ });
59
+ /** Key para localStorage de mensajes FCM (debugging) */
60
+ this.DEBUG_STORAGE_KEY = 'fcm_debug_messages';
61
+ this.debugPersistence = this.config?.debugMessagePersistence ?? false;
62
+ this.initializeMessaging();
63
+ }
64
+ async getMessagingInstance() {
65
+ if (!isPlatformBrowser(this.platformId))
66
+ return null;
67
+ if (!this.fcmSupportPromise) {
68
+ this.fcmSupportPromise = fcmIsSupported().catch(err => {
69
+ console.warn('[Messaging] fcmIsSupported threw:', err);
70
+ return false;
71
+ });
72
+ }
73
+ const supported = await this.fcmSupportPromise;
74
+ if (!supported) {
75
+ console.warn('[Messaging] FCM not supported in this browser');
76
+ return null;
77
+ }
78
+ try {
79
+ const app = getApps().length > 0 ? getApp() : initializeApp(this.config.firebase);
80
+ // Cast a Messaging (token de AngularFire) — el tipo subyacente del SDK
81
+ // es el mismo. Las funciones getToken/deleteToken/onMessage de
82
+ // @angular/fire/messaging son re-exports del SDK y aceptan esta instance.
83
+ return fcmGetMessaging(app);
84
+ }
85
+ catch (err) {
86
+ console.error('[Messaging] firebase getMessaging() threw:', err);
87
+ return null;
88
+ }
89
+ }
90
+ // ===========================================================================
91
+ // INICIALIZACIÓN
92
+ // ===========================================================================
93
+ /**
94
+ * Inicializa el servicio de messaging
95
+ */
96
+ async initializeMessaging() {
97
+ if (!isPlatformBrowser(this.platformId)) {
98
+ return;
99
+ }
100
+ const supported = await this.checkSupport();
101
+ const permission = this.getPermissionState();
102
+ this.stateSubject.next({
103
+ ...this.stateSubject.value,
104
+ isSupported: supported,
105
+ permission,
106
+ });
107
+ // Si ya tiene permiso, configurar listeners
108
+ if (supported && permission === 'granted') {
109
+ this.setupMessageListener();
110
+ }
111
+ // Escuchar mensajes del Service Worker (clicks en notificaciones background)
112
+ this.setupServiceWorkerListener();
113
+ }
114
+ /**
115
+ * Configura listener para mensajes del Service Worker.
116
+ * Recibe eventos cuando el usuario hace click en una notificación background.
117
+ */
118
+ setupServiceWorkerListener() {
119
+ if (!isPlatformBrowser(this.platformId) || !('serviceWorker' in navigator)) {
120
+ return;
121
+ }
122
+ navigator.serviceWorker.addEventListener('message', event => {
123
+ // Solo procesar mensajes de notificación click bien formados.
124
+ // En apps con múltiples SW (PWA ngsw-worker + firebase-messaging-sw),
125
+ // o variantes del payload, `notification` puede no existir aunque
126
+ // `data.type` coincida → guard defensivo evita TypeError.
127
+ if (event.data?.type !== 'NOTIFICATION_CLICK')
128
+ return;
129
+ const notification = event.data.notification;
130
+ if (!notification)
131
+ return;
132
+ this.ngZone.run(() => {
133
+ const action = this.extractActionFromData(notification.data);
134
+ this.notificationClickSubject.next({
135
+ notification,
136
+ action,
137
+ timestamp: new Date(),
138
+ });
139
+ });
140
+ });
141
+ }
142
+ /**
143
+ * Verifica si FCM está soportado en el navegador actual
144
+ */
145
+ async checkSupport() {
146
+ if (!isPlatformBrowser(this.platformId)) {
147
+ return false;
148
+ }
149
+ // Verificar APIs necesarias
150
+ if (!('Notification' in window)) {
151
+ return false;
152
+ }
153
+ if (!('serviceWorker' in navigator)) {
154
+ return false;
155
+ }
156
+ // Verificar que messaging esté disponible (async — espera APP_INITIALIZER)
157
+ if (!(await this.getMessagingInstance())) {
158
+ return false;
159
+ }
160
+ return true;
161
+ }
162
+ // ===========================================================================
163
+ // PERMISOS Y TOKEN
164
+ // ===========================================================================
165
+ /**
166
+ * Solicita permiso de notificaciones y obtiene el token FCM.
167
+ *
168
+ * @returns Token FCM si se otorgó permiso, null si se denegó
169
+ *
170
+ * @example
171
+ * ```typescript
172
+ * const token = await messaging.requestPermission();
173
+ * if (token) {
174
+ * console.log('Token FCM:', token);
175
+ * // Enviar a backend
176
+ * } else {
177
+ * console.log('Permiso denegado o no soportado');
178
+ * }
179
+ * ```
180
+ */
181
+ async requestPermission() {
182
+ if (!(await this.isSupported())) {
183
+ console.warn('FCM no está soportado en este navegador');
184
+ return null;
185
+ }
186
+ try {
187
+ // Solicitar permiso de notificaciones
188
+ const permission = await Notification.requestPermission();
189
+ this.stateSubject.next({
190
+ ...this.stateSubject.value,
191
+ permission: permission,
192
+ });
193
+ if (permission !== 'granted') {
194
+ console.warn('Permiso de notificaciones denegado');
195
+ return null;
196
+ }
197
+ // Obtener token FCM
198
+ const token = await this.getToken();
199
+ if (token) {
200
+ // Configurar listener de mensajes
201
+ this.setupMessageListener();
202
+ }
203
+ return token;
204
+ }
205
+ catch (error) {
206
+ console.error('Error solicitando permiso de notificaciones:', error);
207
+ return null;
208
+ }
209
+ }
210
+ /**
211
+ * Obtiene el token FCM actual (sin solicitar permiso).
212
+ *
213
+ * @returns Token FCM si está disponible, null si no
214
+ *
215
+ * @example
216
+ * ```typescript
217
+ * const token = await messaging.getToken();
218
+ * ```
219
+ */
220
+ async getToken() {
221
+ console.log('[Messaging] getToken() start');
222
+ const messaging = await this.getMessagingInstance();
223
+ if (!messaging) {
224
+ console.warn('[Messaging] getToken aborted: no Messaging instance');
225
+ return null;
226
+ }
227
+ const vapidKey = this.config.messagingVapidKey;
228
+ if (!vapidKey) {
229
+ console.warn('[Messaging] VAPID key no configurada (config.messagingVapidKey). FCM no funcionará.');
230
+ return null;
231
+ }
232
+ try {
233
+ // Registrar SW personalizado antes de obtener token
234
+ // Esto es necesario cuando usamos un SW custom (firebase-messaging-sw.js)
235
+ const registration = await navigator.serviceWorker.register('/firebase-messaging-sw.js');
236
+ console.log('[Messaging] SW registered, waiting ready...');
237
+ // Esperar a que el SW esté activo
238
+ await navigator.serviceWorker.ready;
239
+ console.log('[Messaging] SW ready, calling Firebase getToken()...');
240
+ const token = await getToken(messaging, {
241
+ vapidKey,
242
+ serviceWorkerRegistration: registration,
243
+ });
244
+ console.log('[Messaging] Firebase getToken returned:', token ? `${token.slice(0, 16)}…` : 'null/empty');
245
+ this.stateSubject.next({
246
+ ...this.stateSubject.value,
247
+ token,
248
+ });
249
+ return token;
250
+ }
251
+ catch (error) {
252
+ console.error('[Messaging] getToken error:', error);
253
+ return null;
254
+ }
255
+ }
256
+ /**
257
+ * Elimina el token FCM actual (unsubscribe de notificaciones).
258
+ *
259
+ * @example
260
+ * ```typescript
261
+ * await messaging.deleteToken();
262
+ * console.log('Token eliminado, no recibirá más notificaciones');
263
+ * ```
264
+ */
265
+ async deleteToken() {
266
+ const messaging = await this.getMessagingInstance();
267
+ if (!messaging) {
268
+ return;
269
+ }
270
+ try {
271
+ await deleteToken(messaging);
272
+ this.stateSubject.next({
273
+ ...this.stateSubject.value,
274
+ token: null,
275
+ });
276
+ // Limpiar listener de mensajes
277
+ if (this.unsubscribeOnMessage) {
278
+ this.unsubscribeOnMessage();
279
+ this.unsubscribeOnMessage = undefined;
280
+ }
281
+ }
282
+ catch (error) {
283
+ console.error('Error eliminando token FCM:', error);
284
+ throw new Error('No se pudo eliminar el token de notificaciones');
285
+ }
286
+ }
287
+ // ===========================================================================
288
+ // MENSAJES
289
+ // ===========================================================================
290
+ /**
291
+ * Observable de mensajes recibidos en foreground.
292
+ *
293
+ * IMPORTANTE: Los mensajes en background son manejados por el Service Worker.
294
+ *
295
+ * @returns Observable que emite cuando llega un mensaje en foreground
296
+ *
297
+ * @example
298
+ * ```typescript
299
+ * messaging.onMessage().subscribe(payload => {
300
+ * console.log('Mensaje recibido:', payload);
301
+ * // Mostrar notificación custom o actualizar UI
302
+ * });
303
+ * ```
304
+ */
305
+ onMessage() {
306
+ return this.messageSubject.asObservable();
307
+ }
308
+ /**
309
+ * Configura el listener de mensajes en foreground
310
+ */
311
+ async setupMessageListener() {
312
+ const messaging = await this.getMessagingInstance();
313
+ if (!messaging || this.unsubscribeOnMessage) {
314
+ return;
315
+ }
316
+ this.unsubscribeOnMessage = onMessage(messaging, payload => {
317
+ const notification = {
318
+ title: payload.notification?.title,
319
+ body: payload.notification?.body,
320
+ image: payload.notification?.image,
321
+ data: payload.data,
322
+ messageId: payload.messageId,
323
+ };
324
+ this.messageSubject.next(notification);
325
+ // Persistir en localStorage para debugging si está habilitado
326
+ if (this.debugPersistence) {
327
+ this.persistMessageForDebug(notification);
328
+ }
329
+ });
330
+ }
331
+ /**
332
+ * Persiste un mensaje FCM en localStorage para debugging.
333
+ * Solo se usa cuando debugMessagePersistence está habilitado.
334
+ * Mantiene los últimos 50 mensajes.
335
+ */
336
+ persistMessageForDebug(message) {
337
+ try {
338
+ const stored = localStorage.getItem(this.DEBUG_STORAGE_KEY);
339
+ const messages = stored ? JSON.parse(stored) : [];
340
+ messages.unshift({ ...message, receivedAt: new Date().toISOString() });
341
+ // Mantener solo últimos 50
342
+ localStorage.setItem(this.DEBUG_STORAGE_KEY, JSON.stringify(messages.slice(0, 50)));
343
+ }
344
+ catch (e) {
345
+ console.warn('[Messaging] Debug persistence failed:', e);
346
+ }
347
+ }
348
+ // ===========================================================================
349
+ // ESTADO Y UTILIDADES
350
+ // ===========================================================================
351
+ /**
352
+ * Obtiene el estado actual del permiso de notificaciones.
353
+ *
354
+ * @returns 'granted' | 'denied' | 'default'
355
+ *
356
+ * @example
357
+ * ```typescript
358
+ * const permission = messaging.getPermissionState();
359
+ * if (permission === 'granted') {
360
+ * // Ya tiene permiso
361
+ * } else if (permission === 'default') {
362
+ * // Puede solicitar permiso
363
+ * } else {
364
+ * // Denegado, debe habilitar manualmente
365
+ * }
366
+ * ```
367
+ */
368
+ getPermissionState() {
369
+ if (!isPlatformBrowser(this.platformId)) {
370
+ return 'default';
371
+ }
372
+ if (!('Notification' in window)) {
373
+ return 'denied';
374
+ }
375
+ return Notification.permission;
376
+ }
377
+ /**
378
+ * Verifica si FCM está soportado en el navegador actual.
379
+ * Usa lógica inteligente para evitar falsos negativos por timing del Injector.
380
+ *
381
+ * @returns true si FCM está soportado
382
+ *
383
+ * @example
384
+ * ```typescript
385
+ * if (await messaging.isSupported()) {
386
+ * // Puede usar notificaciones push
387
+ * } else {
388
+ * // Navegador no soporta o no tiene Service Worker
389
+ * }
390
+ * ```
391
+ */
392
+ async isSupported() {
393
+ // Si ya tenemos token en estado, claramente FCM funciona
394
+ if (this.stateSubject.value.token) {
395
+ return true;
396
+ }
397
+ // Si ya calculamos soporte exitosamente, usarlo
398
+ if (this.stateSubject.value.isSupported) {
399
+ return true;
400
+ }
401
+ // Verificaciones básicas — APIs del browser
402
+ if (!isPlatformBrowser(this.platformId)) {
403
+ return false;
404
+ }
405
+ if (!('Notification' in window) || !('serviceWorker' in navigator)) {
406
+ return false;
407
+ }
408
+ // iOS — solo soporta push web cuando la PWA está instalada en home screen
409
+ // (iOS 16.4+). Edge/Chrome/Firefox en iOS comparten esta limitación porque
410
+ // están obligados a usar WebKit. Retornamos false aquí para que la UI muestre
411
+ // el flujo "instala la app" en lugar de un CTA que va a fallar.
412
+ if (this.isIOSWithoutStandalone()) {
413
+ return false;
414
+ }
415
+ // NOTA: deliberadamente NO chequeamos `getMessagingInstance()` aquí porque
416
+ // el factory `provideMessaging(() => getMessaging())` es lazy en Angular
417
+ // Fire y puede no estar resuelto cuando esta función se llama temprano
418
+ // en el ciclo de vida. Eso causaba falsos negativos. Si FCM realmente no
419
+ // está disponible (proyecto sin Messaging habilitado, VAPID inválido), el
420
+ // flow downstream (`getToken`/`requestPermission`) fallará con error real,
421
+ // que es mejor UX que un "no soportado" prematuro.
422
+ return true;
423
+ }
424
+ /**
425
+ * iOS sin estar instalado como PWA standalone — push web no disponible.
426
+ * Aplica a Safari y a Edge/Chrome/Firefox en iOS (todos WebKit por mandato Apple).
427
+ */
428
+ isIOSWithoutStandalone() {
429
+ if (!isPlatformBrowser(this.platformId))
430
+ return false;
431
+ const ua = navigator.userAgent || '';
432
+ const isIOS = /iPad|iPhone|iPod/.test(ua);
433
+ if (!isIOS)
434
+ return false;
435
+ const isStandalone = window.matchMedia?.('(display-mode: standalone)').matches ||
436
+ navigator.standalone === true;
437
+ return !isStandalone;
438
+ }
439
+ /**
440
+ * Obtiene el token actual sin hacer request.
441
+ *
442
+ * @returns Token almacenado o null
443
+ */
444
+ get currentToken() {
445
+ return this.stateSubject.value.token;
446
+ }
447
+ /**
448
+ * Observable del estado completo del servicio de messaging.
449
+ */
450
+ get state$() {
451
+ return this.stateSubject.asObservable();
452
+ }
453
+ /**
454
+ * Verifica si el usuario ya otorgó permiso de notificaciones.
455
+ */
456
+ get hasPermission() {
457
+ return this.stateSubject.value.permission === 'granted';
458
+ }
459
+ /**
460
+ * Hidrata el estado del token desde un valor externo (ej: localStorage).
461
+ * Útil cuando el token ya existe pero el MessagingService no lo tiene en memoria.
462
+ *
463
+ * @param token Token FCM a setear
464
+ *
465
+ * @example
466
+ * ```typescript
467
+ * const storedToken = localStorage.getItem('fcm_token');
468
+ * if (storedToken) {
469
+ * messaging.setTokenFromStorage(storedToken);
470
+ * }
471
+ * ```
472
+ */
473
+ setTokenFromStorage(token) {
474
+ if (!token)
475
+ return;
476
+ this.stateSubject.next({
477
+ ...this.stateSubject.value,
478
+ token,
479
+ isSupported: true, // Si hay token, claramente FCM funciona
480
+ });
481
+ }
482
+ // ===========================================================================
483
+ // DEEP LINKING / NAVEGACIÓN
484
+ // ===========================================================================
485
+ /**
486
+ * Observable de clicks en notificaciones.
487
+ *
488
+ * Emite cuando el usuario hace click en una notificación (foreground o background).
489
+ * Usa este observable para navegar a la página correspondiente.
490
+ *
491
+ * @returns Observable que emite NotificationClickEvent
492
+ *
493
+ * @example
494
+ * ```typescript
495
+ * @Component({...})
496
+ * export class AppComponent {
497
+ * private messaging = inject(MessagingService);
498
+ * private router = inject(Router);
499
+ *
500
+ * constructor() {
501
+ * this.messaging.onNotificationClick().subscribe(event => {
502
+ * if (event.action.route) {
503
+ * this.router.navigate([event.action.route], {
504
+ * queryParams: event.action.queryParams
505
+ * });
506
+ * }
507
+ * });
508
+ * }
509
+ * }
510
+ * ```
511
+ */
512
+ onNotificationClick() {
513
+ return this.notificationClickSubject.asObservable();
514
+ }
515
+ /**
516
+ * Extrae la acción de navegación de los datos de una notificación.
517
+ *
518
+ * Busca campos específicos en el payload de datos:
519
+ * - `route`: Ruta interna de la app (ej: '/orders/123')
520
+ * - `url`: URL externa (ej: 'https://example.com')
521
+ * - `action_type`: Tipo de acción personalizada
522
+ * - Campos con prefijo `action_`: Datos adicionales
523
+ *
524
+ * @param data - Datos del payload de la notificación
525
+ * @returns Acción de navegación extraída
526
+ *
527
+ * @example
528
+ * ```typescript
529
+ * // Payload desde el backend:
530
+ * // { route: '/orders/123', action_type: 'view_order', action_orderId: '123' }
531
+ *
532
+ * const action = messaging.extractActionFromData(notification.data);
533
+ * // { route: '/orders/123', actionType: 'view_order', actionData: { orderId: '123' } }
534
+ * ```
535
+ */
536
+ extractActionFromData(data) {
537
+ if (!data) {
538
+ return {};
539
+ }
540
+ const action = {};
541
+ // Ruta interna
542
+ if (data['route']) {
543
+ action.route = data['route'];
544
+ }
545
+ // URL externa
546
+ if (data['url']) {
547
+ action.url = data['url'];
548
+ }
549
+ // Tipo de acción
550
+ if (data['action_type']) {
551
+ action.actionType = data['action_type'];
552
+ }
553
+ // Query params (puede venir como JSON string)
554
+ if (data['query_params']) {
555
+ try {
556
+ action.queryParams = JSON.parse(data['query_params']);
557
+ }
558
+ catch {
559
+ // Si no es JSON válido, intentar parsear como key=value
560
+ action.queryParams = this.parseQueryString(data['query_params']);
561
+ }
562
+ }
563
+ // Datos adicionales con prefijo action_
564
+ const actionData = {};
565
+ for (const [key, value] of Object.entries(data)) {
566
+ if (key.startsWith('action_') && key !== 'action_type') {
567
+ const cleanKey = key.replace('action_', '');
568
+ // Intentar parsear JSON si es posible
569
+ try {
570
+ actionData[cleanKey] = JSON.parse(value);
571
+ }
572
+ catch {
573
+ actionData[cleanKey] = value;
574
+ }
575
+ }
576
+ }
577
+ if (Object.keys(actionData).length > 0) {
578
+ action.actionData = actionData;
579
+ }
580
+ return action;
581
+ }
582
+ /**
583
+ * Emite manualmente un evento de click en notificación.
584
+ *
585
+ * Útil para manejar clicks en notificaciones foreground donde
586
+ * la app decide mostrar un banner custom.
587
+ *
588
+ * @param notification - Payload de la notificación
589
+ *
590
+ * @example
591
+ * ```typescript
592
+ * messaging.onMessage().subscribe(notification => {
593
+ * // Mostrar banner custom
594
+ * this.showBanner(notification, () => {
595
+ * // Usuario hizo click en el banner
596
+ * messaging.handleNotificationClick(notification);
597
+ * });
598
+ * });
599
+ * ```
600
+ */
601
+ handleNotificationClick(notification) {
602
+ const action = this.extractActionFromData(notification.data);
603
+ this.notificationClickSubject.next({
604
+ notification,
605
+ action,
606
+ timestamp: new Date(),
607
+ });
608
+ }
609
+ /**
610
+ * Verifica si una notificación tiene acción de navegación.
611
+ *
612
+ * @param data - Datos del payload
613
+ * @returns true si tiene route o url
614
+ */
615
+ hasNavigationAction(data) {
616
+ if (!data)
617
+ return false;
618
+ return !!(data['route'] || data['url']);
619
+ }
620
+ /**
621
+ * Parsea un query string en un objeto.
622
+ */
623
+ parseQueryString(queryString) {
624
+ const params = {};
625
+ if (!queryString)
626
+ return params;
627
+ // Remover ? inicial si existe
628
+ const cleanQuery = queryString.startsWith('?') ? queryString.slice(1) : queryString;
629
+ for (const pair of cleanQuery.split('&')) {
630
+ const [key, value] = pair.split('=');
631
+ if (key) {
632
+ params[decodeURIComponent(key)] = decodeURIComponent(value || '');
633
+ }
634
+ }
635
+ return params;
636
+ }
637
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessagingService, deps: [{ token: i0.Injector }, { token: VALTECH_FIREBASE_CONFIG }, { token: PLATFORM_ID }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
638
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessagingService, providedIn: 'root' }); }
639
+ }
640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MessagingService, decorators: [{
641
+ type: Injectable,
642
+ args: [{ providedIn: 'root' }]
643
+ }], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
644
+ type: Inject,
645
+ args: [VALTECH_FIREBASE_CONFIG]
646
+ }] }, { type: Object, decorators: [{
647
+ type: Inject,
648
+ args: [PLATFORM_ID]
649
+ }] }, { type: i0.NgZone }] });
650
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL3NlcnZpY2VzL2ZpcmViYXNlL21lc3NhZ2luZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFvQixXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDcEQsT0FBTyxFQUFhLFFBQVEsRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDdEYsT0FBTyxFQUFFLFdBQVcsSUFBSSxjQUFjLEVBQUUsWUFBWSxJQUFJLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxNQUFNLEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUM5RCxPQUFPLEVBQWMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUU1RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxVQUFVLENBQUM7O0FBa0JuRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0E2Qkc7QUFFSCxNQUFNLE9BQU8sZ0JBQWdCO0lBZ0IzQixZQUNVLFFBQWtCLEVBQ2UsTUFB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