valtech-components 2.0.787 → 2.0.795

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 (1430) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/.editorconfig +16 -0
  3. package/.prettierignore +6 -0
  4. package/.prettierrc +30 -0
  5. package/.storybook/main.ts +21 -0
  6. package/.storybook/preview-body.html +60 -0
  7. package/.storybook/preview-head.html +48 -0
  8. package/.storybook/preview.ts +52 -0
  9. package/.storybook/tsconfig.json +12 -0
  10. package/CLAUDE.md +121 -0
  11. package/angular.json +60 -0
  12. package/ng-package.json +16 -0
  13. package/package.json +62 -16
  14. package/scripts/publish.sh +30 -0
  15. package/scripts/update-apps.sh +94 -0
  16. package/src/lib/components/atoms/avatar/avatar.component.scss +31 -0
  17. package/src/lib/components/atoms/avatar/avatar.component.ts +95 -0
  18. package/src/lib/components/atoms/avatar/avatar.stories.ts +243 -0
  19. package/src/lib/components/atoms/avatar/types.ts +15 -0
  20. package/src/lib/components/atoms/box/box.component.scss +57 -0
  21. package/src/lib/components/atoms/box/box.component.ts +77 -0
  22. package/src/lib/components/atoms/box/box.stories.ts +280 -0
  23. package/src/lib/components/atoms/box/types.ts +20 -0
  24. package/src/lib/components/atoms/button/button.component.scss +20 -0
  25. package/src/lib/components/atoms/button/button.component.ts +174 -0
  26. package/src/lib/components/atoms/button/button.stories.ts +293 -0
  27. package/src/lib/components/atoms/button/factory.ts +444 -0
  28. package/src/lib/components/atoms/container/container.component.scss +83 -0
  29. package/src/lib/components/atoms/container/container.component.ts +45 -0
  30. package/src/lib/components/atoms/container/container.stories.ts +128 -0
  31. package/src/lib/components/atoms/container/types.ts +12 -0
  32. package/src/lib/components/atoms/countdown/countdown.component.scss +256 -0
  33. package/src/lib/components/atoms/countdown/countdown.component.ts +293 -0
  34. package/src/lib/components/atoms/countdown/countdown.stories.ts +316 -0
  35. package/src/lib/components/atoms/countdown/types.ts +144 -0
  36. package/src/lib/components/atoms/display/display.component.scss +17 -0
  37. package/src/lib/components/atoms/display/display.component.ts +54 -0
  38. package/src/lib/components/atoms/display/display.stories.ts +185 -0
  39. package/src/lib/components/atoms/display/types.ts +35 -0
  40. package/src/lib/components/atoms/divider/divider.component.scss +62 -0
  41. package/src/lib/components/atoms/divider/divider.component.ts +35 -0
  42. package/src/lib/components/atoms/divider/divider.stories.ts +202 -0
  43. package/src/lib/components/atoms/divider/types.ts +12 -0
  44. package/src/lib/components/atoms/fab/fab.component.scss +26 -0
  45. package/src/lib/components/atoms/fab/fab.component.ts +166 -0
  46. package/src/lib/components/atoms/fab/fab.stories.ts +360 -0
  47. package/src/lib/components/atoms/fab/types.ts +47 -0
  48. package/src/lib/components/atoms/glass/glass.component.ts +132 -0
  49. package/src/lib/components/atoms/glass/types.ts +79 -0
  50. package/src/lib/components/atoms/glow/glow.component.scss +88 -0
  51. package/src/lib/components/atoms/glow/glow.component.ts +103 -0
  52. package/src/lib/components/atoms/glow/glow.stories.ts +215 -0
  53. package/src/lib/components/atoms/glow/types.ts +61 -0
  54. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.scss +39 -0
  55. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.ts +67 -0
  56. package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.stories.ts +351 -0
  57. package/src/lib/components/atoms/horizontal-scroll/types.ts +13 -0
  58. package/src/lib/components/atoms/href/href.component.scss +25 -0
  59. package/src/lib/components/atoms/href/href.component.ts +64 -0
  60. package/src/lib/components/atoms/href/href.stories.ts +214 -0
  61. package/src/lib/components/atoms/href/types.ts +20 -0
  62. package/src/lib/components/atoms/icon/icon.component.scss +33 -0
  63. package/src/lib/components/atoms/icon/icon.component.ts +38 -0
  64. package/src/lib/components/atoms/icon/icon.stories.ts +160 -0
  65. package/src/lib/components/atoms/icon/types.ts +14 -0
  66. package/src/lib/components/atoms/image/README.md +0 -0
  67. package/src/lib/components/atoms/image/image.component.scss +284 -0
  68. package/src/lib/components/atoms/image/image.component.ts +399 -0
  69. package/src/lib/components/atoms/image/image.stories.ts +317 -0
  70. package/src/lib/components/atoms/image/types.ts +37 -0
  71. package/src/lib/components/atoms/pattern/motifs.ts +205 -0
  72. package/src/lib/components/atoms/pattern/pattern.component.ts +216 -0
  73. package/src/lib/components/atoms/pattern/types.ts +70 -0
  74. package/src/lib/components/atoms/price-tag/price-tag.component.scss +228 -0
  75. package/src/lib/components/atoms/price-tag/price-tag.component.ts +188 -0
  76. package/src/lib/components/atoms/price-tag/price-tag.stories.ts +315 -0
  77. package/src/lib/components/atoms/price-tag/types.ts +78 -0
  78. package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +22 -0
  79. package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +88 -0
  80. package/src/lib/components/atoms/progress-bar/progress-bar.stories.ts +375 -0
  81. package/src/lib/components/atoms/progress-bar/types.ts +20 -0
  82. package/src/lib/components/atoms/progress-ring/progress-ring.component.scss +35 -0
  83. package/src/lib/components/atoms/progress-ring/progress-ring.component.ts +114 -0
  84. package/src/lib/components/atoms/progress-ring/progress-ring.stories.ts +323 -0
  85. package/src/lib/components/atoms/progress-ring/types.ts +25 -0
  86. package/src/lib/components/atoms/qr-code/qr-code.component.scss +373 -0
  87. package/src/lib/components/atoms/qr-code/qr-code.component.ts +313 -0
  88. package/src/lib/components/atoms/qr-code/qr-code.stories.ts +767 -0
  89. package/src/lib/components/atoms/qr-code/types.ts +173 -0
  90. package/src/lib/components/atoms/rights-footer/rights-footer.component.scss +20 -0
  91. package/src/lib/components/atoms/rights-footer/rights-footer.component.ts +98 -0
  92. package/src/lib/components/atoms/rights-footer/rights-footer.stories.ts +229 -0
  93. package/src/lib/components/atoms/rights-footer/types.ts +21 -0
  94. package/src/lib/components/atoms/skeleton/skeleton.component.scss +58 -0
  95. package/src/lib/components/atoms/skeleton/skeleton.component.ts +129 -0
  96. package/src/lib/components/atoms/skeleton/skeleton.stories.ts +242 -0
  97. package/src/lib/components/atoms/skeleton/types.ts +39 -0
  98. package/src/lib/components/atoms/text/text.component.scss +38 -0
  99. package/src/lib/components/atoms/text/text.component.ts +123 -0
  100. package/src/lib/components/atoms/text/text.stories.ts +174 -0
  101. package/src/lib/components/atoms/text/types.ts +50 -0
  102. package/src/lib/components/atoms/title/title.component.scss +33 -0
  103. package/src/lib/components/atoms/title/title.component.ts +65 -0
  104. package/src/lib/components/atoms/title/title.stories.ts +167 -0
  105. package/src/lib/components/atoms/title/types.ts +46 -0
  106. package/src/lib/components/atoms/user-avatar/types.ts +84 -0
  107. package/src/lib/components/atoms/user-avatar/user-avatar.component.ts +295 -0
  108. package/src/lib/components/molecules/accordion/accordion.component.scss +34 -0
  109. package/src/lib/components/molecules/accordion/accordion.component.ts +103 -0
  110. package/src/lib/components/molecules/accordion/accordion.stories.ts +236 -0
  111. package/src/lib/components/molecules/accordion/types.ts +49 -0
  112. package/src/lib/components/molecules/action-card/action-card.component.scss +218 -0
  113. package/src/lib/components/molecules/action-card/action-card.component.ts +221 -0
  114. package/src/lib/components/molecules/action-card/action-card.stories.ts +396 -0
  115. package/src/lib/components/molecules/action-card/types.ts +102 -0
  116. package/src/lib/components/molecules/action-header/action-header.component.ts +55 -0
  117. package/src/lib/components/molecules/action-header/action-header.stories.ts +481 -0
  118. package/src/lib/components/molecules/action-header/types.ts +29 -0
  119. package/src/lib/components/molecules/ad-slot/ad-slot.component.ts +352 -0
  120. package/src/lib/components/molecules/alert-box/alert-box.component.scss +10 -0
  121. package/src/lib/components/molecules/alert-box/alert-box.component.ts +125 -0
  122. package/src/lib/components/molecules/alert-box/alert-box.stories.ts +248 -0
  123. package/src/lib/components/molecules/alert-box/types.ts +39 -0
  124. package/src/lib/components/molecules/breadcrumb/breadcrumb.component.scss +34 -0
  125. package/src/lib/components/molecules/breadcrumb/breadcrumb.component.ts +109 -0
  126. package/src/lib/components/molecules/breadcrumb/breadcrumb.stories.ts +271 -0
  127. package/src/lib/components/molecules/breadcrumb/types.ts +47 -0
  128. package/src/lib/components/molecules/button-group/button-group.component.scss +41 -0
  129. package/src/lib/components/molecules/button-group/button-group.component.ts +65 -0
  130. package/src/lib/components/molecules/button-group/button-group.stories.ts +296 -0
  131. package/src/lib/components/molecules/button-group/types.ts +14 -0
  132. package/src/lib/components/molecules/card/card.component.scss +62 -0
  133. package/src/lib/components/molecules/card/card.component.ts +300 -0
  134. package/src/lib/components/molecules/card/card.stories.ts +360 -0
  135. package/src/lib/components/molecules/card/types.ts +36 -0
  136. package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
  137. package/src/lib/components/molecules/check-input/check-input.component.ts +88 -0
  138. package/src/lib/components/molecules/check-input/check-input.stories.ts +54 -0
  139. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.scss +12 -0
  140. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.ts +65 -0
  141. package/src/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.stories.ts +201 -0
  142. package/src/lib/components/molecules/checkbox-radio-input/index.ts +1 -0
  143. package/src/lib/components/molecules/chip-group/chip-group.component.scss +70 -0
  144. package/src/lib/components/molecules/chip-group/chip-group.component.ts +150 -0
  145. package/src/lib/components/molecules/chip-group/chip-group.stories.ts +307 -0
  146. package/src/lib/components/molecules/chip-group/types.ts +69 -0
  147. package/src/lib/components/molecules/code-display/code-display.component.scss +246 -0
  148. package/src/lib/components/molecules/code-display/code-display.component.ts +109 -0
  149. package/src/lib/components/molecules/code-display/code-display.stories.ts +402 -0
  150. package/src/lib/components/molecules/code-display/types.ts +11 -0
  151. package/src/lib/components/molecules/command-display/command-display.component.scss +38 -0
  152. package/src/lib/components/molecules/command-display/command-display.component.ts +45 -0
  153. package/src/lib/components/molecules/command-display/command-display.stories.ts +110 -0
  154. package/src/lib/components/molecules/command-display/types.ts +3 -0
  155. package/src/lib/components/molecules/comment/comment.component.scss +347 -0
  156. package/src/lib/components/molecules/comment/comment.component.ts +496 -0
  157. package/src/lib/components/molecules/comment/comment.stories.ts +384 -0
  158. package/src/lib/components/molecules/comment/types.ts +181 -0
  159. package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
  160. package/src/lib/components/molecules/comment-input/comment-input.component.ts +42 -0
  161. package/src/lib/components/molecules/comment-input/comment-input.stories.ts +124 -0
  162. package/src/lib/components/molecules/comment-input/types.ts +69 -0
  163. package/src/lib/components/molecules/content-loader/content-loader.component.scss +42 -0
  164. package/src/lib/components/molecules/content-loader/content-loader.component.ts +45 -0
  165. package/src/lib/components/molecules/content-loader/content-loader.stories.ts +370 -0
  166. package/src/lib/components/molecules/content-loader/types.ts +16 -0
  167. package/src/lib/components/molecules/content-reaction/content-reaction.component.html +81 -0
  168. package/src/lib/components/molecules/content-reaction/content-reaction.component.scss +157 -0
  169. package/src/lib/components/molecules/content-reaction/content-reaction.component.ts +273 -0
  170. package/src/lib/components/molecules/content-reaction/content-reaction.stories.ts +453 -0
  171. package/src/lib/components/molecules/content-reaction/types.ts +99 -0
  172. package/src/lib/components/molecules/currency-input/currency-input.component.scss +101 -0
  173. package/src/lib/components/molecules/currency-input/currency-input.component.ts +327 -0
  174. package/src/lib/components/molecules/currency-input/currency-input.stories.ts +279 -0
  175. package/src/lib/components/molecules/currency-input/types.ts +125 -0
  176. package/src/lib/components/molecules/date-input/date-input.component.scss +11 -0
  177. package/src/lib/components/molecules/date-input/date-input.component.ts +136 -0
  178. package/src/lib/components/molecules/date-input/date-input.stories.ts +205 -0
  179. package/src/lib/components/molecules/date-input/types.ts +84 -0
  180. package/src/lib/components/molecules/date-range-input/date-range-input.component.scss +119 -0
  181. package/src/lib/components/molecules/date-range-input/date-range-input.component.ts +364 -0
  182. package/src/lib/components/molecules/date-range-input/date-range-input.stories.ts +288 -0
  183. package/src/lib/components/molecules/date-range-input/types.ts +122 -0
  184. package/src/lib/components/molecules/docs-api-table/docs-api-table.component.scss +278 -0
  185. package/src/lib/components/molecules/docs-api-table/docs-api-table.component.ts +138 -0
  186. package/src/lib/components/molecules/docs-api-table/types.ts +81 -0
  187. package/src/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.ts +161 -0
  188. package/src/lib/components/molecules/docs-breadcrumb/types.ts +21 -0
  189. package/src/lib/components/molecules/docs-callout/docs-callout.component.scss +136 -0
  190. package/src/lib/components/molecules/docs-callout/docs-callout.component.ts +55 -0
  191. package/src/lib/components/molecules/docs-code-example/docs-code-example.component.ts +540 -0
  192. package/src/lib/components/molecules/docs-code-example/types.ts +75 -0
  193. package/src/lib/components/molecules/docs-nav-links/docs-nav-links.component.ts +216 -0
  194. package/src/lib/components/molecules/docs-nav-links/types.ts +36 -0
  195. package/src/lib/components/molecules/docs-search/docs-search.component.scss +195 -0
  196. package/src/lib/components/molecules/docs-search/docs-search.component.ts +228 -0
  197. package/src/lib/components/molecules/docs-search/types.ts +30 -0
  198. package/src/lib/components/molecules/docs-section/docs-section.component.ts +99 -0
  199. package/src/lib/components/molecules/docs-section/types.ts +31 -0
  200. package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
  201. package/src/lib/components/molecules/email-input/email-input.component.ts +77 -0
  202. package/src/lib/components/molecules/email-input/email-input.stories.ts +176 -0
  203. package/src/lib/components/molecules/expandable-text/expandable-text.component.ts +111 -0
  204. package/src/lib/components/molecules/expandable-text/expandable-text.stories.ts +287 -0
  205. package/src/lib/components/molecules/expandable-text/types.ts +14 -0
  206. package/src/lib/components/molecules/features-list/features-list.component.ts +247 -0
  207. package/src/lib/components/molecules/features-list/types.ts +44 -0
  208. package/src/lib/components/molecules/feedback-form/feedback-form.component.ts +355 -0
  209. package/src/lib/components/molecules/feedback-form/types.ts +77 -0
  210. package/src/lib/components/molecules/file-input/file-input.component.scss +11 -0
  211. package/src/lib/components/molecules/file-input/file-input.component.ts +87 -0
  212. package/src/lib/components/molecules/file-input/file-input.stories.ts +107 -0
  213. package/src/lib/components/molecules/file-input/types.ts +85 -0
  214. package/src/lib/components/molecules/footer-links/footer-links.component.scss +124 -0
  215. package/src/lib/components/molecules/footer-links/footer-links.component.ts +244 -0
  216. package/src/lib/components/molecules/footer-links/footer-links.stories.ts +188 -0
  217. package/src/lib/components/molecules/footer-links/types.ts +52 -0
  218. package/src/lib/components/molecules/glow-card/glow-card.component.scss +295 -0
  219. package/src/lib/components/molecules/glow-card/glow-card.component.ts +284 -0
  220. package/src/lib/components/molecules/glow-card/glow-card.stories.ts +680 -0
  221. package/src/lib/components/molecules/glow-card/types.ts +117 -0
  222. package/src/lib/components/molecules/hint/hint.component.scss +5 -0
  223. package/src/lib/components/molecules/hint/hint.component.ts +89 -0
  224. package/src/lib/components/molecules/hint/hint.stories.ts +233 -0
  225. package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
  226. package/src/lib/components/molecules/hour-input/hour-input.component.ts +34 -0
  227. package/src/lib/components/molecules/hour-input/hour-input.stories.ts +145 -0
  228. package/src/lib/components/molecules/image-crop/image-crop.component.ts +195 -0
  229. package/src/lib/components/molecules/info/info.component.ts +35 -0
  230. package/src/lib/components/molecules/info/info.stories.ts +276 -0
  231. package/src/lib/components/molecules/info/types.ts +11 -0
  232. package/src/lib/components/molecules/language-selector/language-selector.component.scss +128 -0
  233. package/src/lib/components/molecules/language-selector/language-selector.component.ts +204 -0
  234. package/src/lib/components/molecules/language-selector/language-selector.stories.ts +261 -0
  235. package/src/lib/components/molecules/language-selector/types.ts +84 -0
  236. package/src/lib/components/molecules/layered-card/layered-card.component.scss +93 -0
  237. package/src/lib/components/molecules/layered-card/layered-card.component.ts +66 -0
  238. package/src/lib/components/molecules/layered-card/layered-card.stories.ts +313 -0
  239. package/src/lib/components/molecules/layered-card/types.ts +16 -0
  240. package/src/lib/components/molecules/link/link.component.scss +11 -0
  241. package/src/lib/components/molecules/link/link.component.ts +73 -0
  242. package/src/lib/components/molecules/link/link.stories.ts +307 -0
  243. package/src/lib/components/molecules/link/types.ts +20 -0
  244. package/src/lib/components/molecules/linked-providers/index.ts +2 -0
  245. package/src/lib/components/molecules/linked-providers/linked-providers.component.ts +289 -0
  246. package/src/lib/components/molecules/linked-providers/types.ts +63 -0
  247. package/src/lib/components/molecules/links-accordion/links-accordion.component.scss +17 -0
  248. package/src/lib/components/molecules/links-accordion/links-accordion.component.ts +161 -0
  249. package/src/lib/components/molecules/links-accordion/links-accordion.stories.ts +209 -0
  250. package/src/lib/components/molecules/links-accordion/types.ts +41 -0
  251. package/src/lib/components/molecules/links-cake/links-cake.component.scss +9 -0
  252. package/src/lib/components/molecules/links-cake/links-cake.component.ts +49 -0
  253. package/src/lib/components/molecules/links-cake/links-cake.stories.ts +160 -0
  254. package/src/lib/components/molecules/links-cake/types.ts +14 -0
  255. package/src/lib/components/molecules/multi-select-search/multi-select-search.component.scss +172 -0
  256. package/src/lib/components/molecules/multi-select-search/multi-select-search.component.ts +471 -0
  257. package/src/lib/components/molecules/multi-select-search/multi-select-search.stories.ts +188 -0
  258. package/src/lib/components/molecules/notes-box/notes-box.component.scss +204 -0
  259. package/src/lib/components/molecules/notes-box/notes-box.component.ts +68 -0
  260. package/src/lib/components/molecules/notes-box/notes-box.stories.ts +308 -0
  261. package/src/lib/components/molecules/notes-box/types.ts +36 -0
  262. package/src/lib/components/molecules/number-from-to/number-from-to.component.scss +10 -0
  263. package/src/lib/components/molecules/number-from-to/number-from-to.component.ts +134 -0
  264. package/src/lib/components/molecules/number-from-to/number-from-to.stories.ts +203 -0
  265. package/src/lib/components/molecules/number-from-to/types.ts +91 -0
  266. package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
  267. package/src/lib/components/molecules/number-input/number-input.component.ts +41 -0
  268. package/src/lib/components/molecules/number-input/number-input.stories.ts +151 -0
  269. package/src/lib/components/molecules/number-stepper/number-stepper.component.scss +252 -0
  270. package/src/lib/components/molecules/number-stepper/number-stepper.component.ts +302 -0
  271. package/src/lib/components/molecules/number-stepper/number-stepper.stories.ts +417 -0
  272. package/src/lib/components/molecules/number-stepper/types.ts +101 -0
  273. package/src/lib/components/molecules/page-links/page-links.component.scss +93 -0
  274. package/src/lib/components/molecules/page-links/page-links.component.ts +103 -0
  275. package/src/lib/components/molecules/page-links/types.ts +39 -0
  276. package/src/lib/components/molecules/pagination/pagination.component.scss +50 -0
  277. package/src/lib/components/molecules/pagination/pagination.component.ts +194 -0
  278. package/src/lib/components/molecules/pagination/pagination.stories.ts +260 -0
  279. package/src/lib/components/molecules/pagination/types.ts +43 -0
  280. package/src/lib/components/molecules/password-input/password-input.component.scss +7 -0
  281. package/src/lib/components/molecules/password-input/password-input.component.ts +93 -0
  282. package/src/lib/components/molecules/password-input/password-input.stories.ts +187 -0
  283. package/src/lib/components/molecules/phone-input/phone-input.component.scss +175 -0
  284. package/src/lib/components/molecules/phone-input/phone-input.component.ts +359 -0
  285. package/src/lib/components/molecules/phone-input/phone-input.stories.ts +229 -0
  286. package/src/lib/components/molecules/phone-input/types.ts +126 -0
  287. package/src/lib/components/molecules/pill/pill.component.scss +35 -0
  288. package/src/lib/components/molecules/pill/pill.component.ts +89 -0
  289. package/src/lib/components/molecules/pill/pill.stories.ts +219 -0
  290. package/src/lib/components/molecules/pill/types.ts +10 -0
  291. package/src/lib/components/molecules/pin-input/pin-input.component.scss +22 -0
  292. package/src/lib/components/molecules/pin-input/pin-input.component.ts +83 -0
  293. package/src/lib/components/molecules/pin-input/pin-input.stories.ts +196 -0
  294. package/src/lib/components/molecules/pin-input/types.ts +80 -0
  295. package/src/lib/components/molecules/plain-code-box/plain-code-box.component.scss +191 -0
  296. package/src/lib/components/molecules/plain-code-box/plain-code-box.component.ts +86 -0
  297. package/src/lib/components/molecules/plain-code-box/plain-code-box.stories.ts +174 -0
  298. package/src/lib/components/molecules/plain-code-box/types.ts +12 -0
  299. package/src/lib/components/molecules/popover-selector/popover-selector.component.scss +224 -0
  300. package/src/lib/components/molecules/popover-selector/popover-selector.component.ts +163 -0
  301. package/src/lib/components/molecules/popover-selector/popover-selector.stories.ts +324 -0
  302. package/src/lib/components/molecules/popover-selector/types.ts +71 -0
  303. package/src/lib/components/molecules/progress-status/progress-status.component.scss +41 -0
  304. package/src/lib/components/molecules/progress-status/progress-status.component.ts +90 -0
  305. package/src/lib/components/molecules/progress-status/progress-status.stories.ts +415 -0
  306. package/src/lib/components/molecules/progress-status/types.ts +21 -0
  307. package/src/lib/components/molecules/prompter/prompter.component.scss +45 -0
  308. package/src/lib/components/molecules/prompter/prompter.component.ts +55 -0
  309. package/src/lib/components/molecules/prompter/prompter.stories.ts +193 -0
  310. package/src/lib/components/molecules/prompter/types.ts +26 -0
  311. package/src/lib/components/molecules/quote-box/quote-box.component.scss +253 -0
  312. package/src/lib/components/molecules/quote-box/quote-box.component.ts +104 -0
  313. package/src/lib/components/molecules/quote-box/quote-box.stories.ts +264 -0
  314. package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
  315. package/src/lib/components/molecules/radio-input/radio-input.component.ts +51 -0
  316. package/src/lib/components/molecules/radio-input/radio-input.stories.ts +197 -0
  317. package/src/lib/components/molecules/range-input/range-input.component.scss +15 -0
  318. package/src/lib/components/molecules/range-input/range-input.component.ts +106 -0
  319. package/src/lib/components/molecules/range-input/range-input.stories.ts +331 -0
  320. package/src/lib/components/molecules/range-input/types.ts +61 -0
  321. package/src/lib/components/molecules/rating/rating.component.scss +60 -0
  322. package/src/lib/components/molecules/rating/rating.component.ts +154 -0
  323. package/src/lib/components/molecules/rating/rating.stories.ts +332 -0
  324. package/src/lib/components/molecules/rating/types.ts +43 -0
  325. package/src/lib/components/molecules/refresher/refresher.component.ts +259 -0
  326. package/src/lib/components/molecules/refresher/types.ts +103 -0
  327. package/src/lib/components/molecules/searchbar/searchbar.component.scss +9 -0
  328. package/src/lib/components/molecules/searchbar/searchbar.component.ts +122 -0
  329. package/src/lib/components/molecules/searchbar/searchbar.stories.ts +192 -0
  330. package/src/lib/components/molecules/searchbar/types.ts +38 -0
  331. package/src/lib/components/molecules/segment-control/segment-control.component.scss +27 -0
  332. package/src/lib/components/molecules/segment-control/segment-control.component.ts +117 -0
  333. package/src/lib/components/molecules/segment-control/segment-control.stories.ts +296 -0
  334. package/src/lib/components/molecules/segment-control/types.ts +48 -0
  335. package/src/lib/components/molecules/select-input/select-input.component.scss +0 -0
  336. package/src/lib/components/molecules/select-input/select-input.component.ts +151 -0
  337. package/src/lib/components/molecules/select-input/select-input.stories.ts +330 -0
  338. package/src/lib/components/molecules/select-search/select-search.component.ts +432 -0
  339. package/src/lib/components/molecules/select-search/select-search.stories.ts +218 -0
  340. package/src/lib/components/molecules/share-buttons/share-buttons.component.scss +195 -0
  341. package/src/lib/components/molecules/share-buttons/share-buttons.component.ts +269 -0
  342. package/src/lib/components/molecules/share-buttons/share-buttons.stories.ts +343 -0
  343. package/src/lib/components/molecules/share-buttons/types.ts +211 -0
  344. package/src/lib/components/molecules/stats-card/stats-card.component.scss +198 -0
  345. package/src/lib/components/molecules/stats-card/stats-card.component.ts +155 -0
  346. package/src/lib/components/molecules/stats-card/stats-card.stories.ts +481 -0
  347. package/src/lib/components/molecules/stats-card/types.ts +63 -0
  348. package/src/lib/components/molecules/stepper/stepper.component.scss +156 -0
  349. package/src/lib/components/molecules/stepper/stepper.component.ts +201 -0
  350. package/src/lib/components/molecules/stepper/stepper.stories.ts +308 -0
  351. package/src/lib/components/molecules/stepper/types.ts +70 -0
  352. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.scss +164 -0
  353. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.ts +215 -0
  354. package/src/lib/components/molecules/swipe-carousel/swipe-carousel.stories.ts +406 -0
  355. package/src/lib/components/molecules/swipe-carousel/types.ts +32 -0
  356. package/src/lib/components/molecules/tabs/tabs.component.scss +35 -0
  357. package/src/lib/components/molecules/tabs/tabs.component.ts +125 -0
  358. package/src/lib/components/molecules/tabs/tabs.stories.ts +283 -0
  359. package/src/lib/components/molecules/tabs/types.ts +47 -0
  360. package/src/lib/components/molecules/testimonial-card/testimonial-card.component.scss +25 -0
  361. package/src/lib/components/molecules/testimonial-card/testimonial-card.component.ts +121 -0
  362. package/src/lib/components/molecules/testimonial-card/testimonial-card.stories.ts +130 -0
  363. package/src/lib/components/molecules/testimonial-card/types.ts +26 -0
  364. package/src/lib/components/molecules/text-input/text-input.component.scss +1 -0
  365. package/src/lib/components/molecules/text-input/text-input.component.ts +86 -0
  366. package/src/lib/components/molecules/text-input/text-input.stories.ts +301 -0
  367. package/src/lib/components/molecules/textarea-input/textarea-input.component.scss +62 -0
  368. package/src/lib/components/molecules/textarea-input/textarea-input.component.ts +195 -0
  369. package/src/lib/components/molecules/textarea-input/textarea-input.stories.ts +329 -0
  370. package/src/lib/components/molecules/textarea-input/types.ts +83 -0
  371. package/src/lib/components/molecules/timeline/timeline.component.scss +168 -0
  372. package/src/lib/components/molecules/timeline/timeline.component.ts +98 -0
  373. package/src/lib/components/molecules/timeline/timeline.stories.ts +259 -0
  374. package/src/lib/components/molecules/timeline/types.ts +41 -0
  375. package/src/lib/components/molecules/title-block/title-block.component.scss +48 -0
  376. package/src/lib/components/molecules/title-block/title-block.component.ts +72 -0
  377. package/src/lib/components/molecules/title-block/title-block.stories.ts +351 -0
  378. package/src/lib/components/molecules/title-block/types.ts +16 -0
  379. package/src/lib/components/molecules/toggle-input/toggle-input.component.scss +7 -0
  380. package/src/lib/components/molecules/toggle-input/toggle-input.component.ts +94 -0
  381. package/src/lib/components/molecules/toggle-input/toggle-input.stories.ts +240 -0
  382. package/src/lib/components/molecules/toggle-input/types.ts +31 -0
  383. package/src/lib/components/molecules/update-banner/index.ts +1 -0
  384. package/src/lib/components/molecules/update-banner/update-banner.component.ts +118 -0
  385. package/src/lib/components/molecules/username-input/index.ts +2 -0
  386. package/src/lib/components/molecules/username-input/types.ts +38 -0
  387. package/src/lib/components/molecules/username-input/username-input.component.ts +364 -0
  388. package/src/lib/components/organisms/article/README.md +569 -0
  389. package/src/lib/components/organisms/article/article.component.scss +435 -0
  390. package/src/lib/components/organisms/article/article.component.ts +474 -0
  391. package/src/lib/components/organisms/article/article.stories.ts +625 -0
  392. package/src/lib/components/organisms/article/types.ts +555 -0
  393. package/src/lib/components/organisms/avatar-upload/avatar-upload.component.scss +119 -0
  394. package/src/lib/components/organisms/avatar-upload/avatar-upload.component.ts +303 -0
  395. package/src/lib/components/organisms/avatar-upload/avatar-upload.stories.ts +282 -0
  396. package/src/lib/components/organisms/avatar-upload/index.ts +2 -0
  397. package/src/lib/components/organisms/avatar-upload/types.ts +71 -0
  398. package/src/lib/components/organisms/banner/banner.component.scss +51 -0
  399. package/src/lib/components/organisms/banner/banner.component.ts +95 -0
  400. package/src/lib/components/organisms/banner/banner.stories.ts +462 -0
  401. package/src/lib/components/organisms/banner/types.ts +30 -0
  402. package/src/lib/components/organisms/bottom-nav/bottom-nav.component.scss +343 -0
  403. package/src/lib/components/organisms/bottom-nav/bottom-nav.component.ts +361 -0
  404. package/src/lib/components/organisms/bottom-nav/bottom-nav.stories.ts +403 -0
  405. package/src/lib/components/organisms/bottom-nav/types.ts +142 -0
  406. package/src/lib/components/organisms/cards-carousel/cards-carousel.component.ts +118 -0
  407. package/src/lib/components/organisms/cards-carousel/cards-carousel.stories.ts +502 -0
  408. package/src/lib/components/organisms/cards-carousel/types.ts +41 -0
  409. package/src/lib/components/organisms/comment-section/comment-section.component.scss +277 -0
  410. package/src/lib/components/organisms/comment-section/comment-section.component.ts +429 -0
  411. package/src/lib/components/organisms/comment-section/comment-section.stories.ts +305 -0
  412. package/src/lib/components/organisms/comment-section/types.ts +169 -0
  413. package/src/lib/components/organisms/company-footer/company-footer.component.ts +73 -0
  414. package/src/lib/components/organisms/company-footer/company-footer.stories.ts +216 -0
  415. package/src/lib/components/organisms/company-footer/types.ts +16 -0
  416. package/src/lib/components/organisms/cookie-banner/cookie-banner.component.scss +166 -0
  417. package/src/lib/components/organisms/cookie-banner/cookie-banner.component.ts +123 -0
  418. package/src/lib/components/organisms/cookie-banner/cookie-banner.stories.ts +120 -0
  419. package/src/lib/components/organisms/cookie-banner/types.ts +74 -0
  420. package/src/lib/components/organisms/data-table/data-table.component.scss +919 -0
  421. package/src/lib/components/organisms/data-table/data-table.component.ts +821 -0
  422. package/src/lib/components/organisms/data-table/data-table.stories.ts +787 -0
  423. package/src/lib/components/organisms/data-table/types.ts +258 -0
  424. package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.scss +228 -0
  425. package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.ts +213 -0
  426. package/src/lib/components/organisms/docs-sidebar/types.ts +112 -0
  427. package/src/lib/components/organisms/docs-toc/docs-toc.component.scss +119 -0
  428. package/src/lib/components/organisms/docs-toc/docs-toc.component.ts +320 -0
  429. package/src/lib/components/organisms/docs-toc/types.ts +73 -0
  430. package/src/lib/components/organisms/footer/footer.component.scss +3 -0
  431. package/src/lib/components/organisms/footer/footer.component.ts +65 -0
  432. package/src/lib/components/organisms/footer/footer.stories.ts +278 -0
  433. package/src/lib/components/organisms/footer/types.ts +17 -0
  434. package/src/lib/components/organisms/form/factory.ts +46 -0
  435. package/src/lib/components/organisms/form/form-footer/form-footer.component.scss +0 -0
  436. package/src/lib/components/organisms/form/form-footer/form-footer.component.ts +72 -0
  437. package/src/lib/components/organisms/form/form.component.scss +24 -0
  438. package/src/lib/components/organisms/form/form.component.ts +448 -0
  439. package/src/lib/components/organisms/form/form.stories.ts +694 -0
  440. package/src/lib/components/organisms/fun-header/fun-header.component.scss +36 -0
  441. package/src/lib/components/organisms/fun-header/fun-header.component.ts +209 -0
  442. package/src/lib/components/organisms/fun-header/fun-header.stories.ts +272 -0
  443. package/src/lib/components/organisms/fun-header/types.ts +29 -0
  444. package/src/lib/components/organisms/header/header.component.scss +5 -0
  445. package/src/lib/components/organisms/header/header.component.ts +53 -0
  446. package/src/lib/components/organisms/header/header.stories.ts +293 -0
  447. package/src/lib/components/organisms/header/types.ts +17 -0
  448. package/src/lib/components/organisms/infinite-list/infinite-list.component.ts +602 -0
  449. package/src/lib/components/organisms/infinite-list/infinite-list.stories.ts +399 -0
  450. package/src/lib/components/organisms/infinite-list/types.ts +235 -0
  451. package/src/lib/components/organisms/item-list/item-list.component.scss +53 -0
  452. package/src/lib/components/organisms/item-list/item-list.component.ts +269 -0
  453. package/src/lib/components/organisms/item-list/item-list.stories.ts +363 -0
  454. package/src/lib/components/organisms/item-list/types.ts +130 -0
  455. package/src/lib/components/organisms/login/login.component.html +230 -0
  456. package/src/lib/components/organisms/login/login.component.scss +118 -0
  457. package/src/lib/components/organisms/login/login.component.ts +866 -0
  458. package/src/lib/components/organisms/login/login.stories.ts +283 -0
  459. package/src/lib/components/organisms/login/types.ts +89 -0
  460. package/src/lib/components/organisms/menu/menu.component.scss +23 -0
  461. package/src/lib/components/organisms/menu/menu.component.ts +152 -0
  462. package/src/lib/components/organisms/menu/menu.stories.ts +223 -0
  463. package/src/lib/components/organisms/menu/types.ts +24 -0
  464. package/src/lib/components/organisms/no-content/no-content.component.scss +11 -0
  465. package/src/lib/components/organisms/no-content/no-content.component.ts +68 -0
  466. package/src/lib/components/organisms/no-content/no-content.stories.ts +259 -0
  467. package/src/lib/components/organisms/no-content/types.ts +18 -0
  468. package/src/lib/components/organisms/rotating-text/rotating-text.component.ts +239 -0
  469. package/src/lib/components/organisms/rotating-text/types.ts +29 -0
  470. package/src/lib/components/organisms/tabbed-content/tabbed-content.component.scss +89 -0
  471. package/src/lib/components/organisms/tabbed-content/tabbed-content.component.ts +165 -0
  472. package/src/lib/components/organisms/tabbed-content/tabbed-content.stories.ts +326 -0
  473. package/src/lib/components/organisms/tabbed-content/types.ts +56 -0
  474. package/src/lib/components/organisms/terminal-404/terminal-404.component.ts +339 -0
  475. package/src/lib/components/organisms/terminal-404/terminal-404.stories.ts +229 -0
  476. package/src/lib/components/organisms/terminal-404/types.ts +22 -0
  477. package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.ts +70 -0
  478. package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.stories.ts +173 -0
  479. package/src/lib/components/organisms/testimonial-carousel/types.ts +9 -0
  480. package/src/lib/components/organisms/toolbar/toolbar.component.scss +13 -0
  481. package/src/lib/components/organisms/toolbar/toolbar.component.ts +205 -0
  482. package/src/lib/components/organisms/toolbar/toolbar.stories.ts +263 -0
  483. package/src/lib/components/organisms/toolbar/types.ts +32 -0
  484. package/src/lib/components/organisms/wizard/types.ts +46 -0
  485. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.scss +0 -0
  486. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.ts +104 -0
  487. package/src/lib/components/organisms/wizard/wizard.component.scss +16 -0
  488. package/src/lib/components/organisms/wizard/wizard.component.ts +165 -0
  489. package/src/lib/components/organisms/wizard/wizard.stories.ts +653 -0
  490. package/src/lib/components/styles/overrides.scss +2 -0
  491. package/src/lib/components/templates/auth-background/auth-background.component.ts +301 -0
  492. package/src/lib/components/templates/auth-background/types.ts +34 -0
  493. package/src/lib/components/templates/docs-layout/docs-layout.component.scss +218 -0
  494. package/src/lib/components/templates/docs-layout/docs-layout.component.ts +161 -0
  495. package/src/lib/components/templates/docs-layout/types.ts +45 -0
  496. package/src/lib/components/templates/docs-page/docs-page.component.ts +534 -0
  497. package/src/lib/components/templates/docs-page/types.ts +141 -0
  498. package/src/lib/components/templates/docs-shell/docs-shell.component.ts +494 -0
  499. package/src/lib/components/templates/docs-shell/types.ts +176 -0
  500. package/src/lib/components/templates/maintenance-page/index.ts +2 -0
  501. package/src/lib/components/templates/maintenance-page/maintenance-page.component.scss +44 -0
  502. package/src/lib/components/templates/maintenance-page/maintenance-page.component.ts +120 -0
  503. package/src/lib/components/templates/maintenance-page/types.ts +12 -0
  504. package/src/lib/components/templates/page-content/page-content.component.ts +188 -0
  505. package/src/lib/components/templates/page-content/page-content.stories.ts +169 -0
  506. package/src/lib/components/templates/page-content/types.ts +28 -0
  507. package/src/lib/components/templates/page-template/page-template.component.ts +164 -0
  508. package/src/lib/components/templates/page-template/page-template.stories.ts +174 -0
  509. package/src/lib/components/templates/page-template/types.ts +17 -0
  510. package/src/lib/components/templates/page-wrapper/page-composition.stories.ts +566 -0
  511. package/src/lib/components/templates/page-wrapper/page-wrapper.component.ts +188 -0
  512. package/src/lib/components/templates/page-wrapper/page-wrapper.stories.ts +149 -0
  513. package/src/lib/components/templates/page-wrapper/types.ts +27 -0
  514. package/src/lib/components/templates/simple/simple.component.scss +29 -0
  515. package/src/lib/components/templates/simple/simple.component.ts +86 -0
  516. package/src/lib/components/templates/simple/types.ts +11 -0
  517. package/src/lib/components/types.ts +321 -0
  518. package/src/lib/config/company-footer.config.ts +169 -0
  519. package/src/lib/services/ads/ads-consent.service.ts +166 -0
  520. package/src/lib/services/ads/ads-loader.service.ts +133 -0
  521. package/src/lib/services/ads/ads.service.ts +268 -0
  522. package/src/lib/services/ads/config.ts +92 -0
  523. package/src/lib/services/ads/index.ts +29 -0
  524. package/src/lib/services/ads/types.ts +187 -0
  525. package/src/lib/services/app-config/app-config.service.ts +228 -0
  526. package/src/lib/services/app-config/config.ts +62 -0
  527. package/src/lib/services/app-config/index.ts +48 -0
  528. package/src/lib/services/app-config/types.ts +62 -0
  529. package/src/lib/services/app-config/version.ts +104 -0
  530. package/src/lib/services/auth/auth-state.service.ts +248 -0
  531. package/src/lib/services/auth/auth.service.ts +1387 -0
  532. package/src/lib/services/auth/config.ts +87 -0
  533. package/src/lib/services/auth/device.service.ts +163 -0
  534. package/src/lib/services/auth/guards.ts +234 -0
  535. package/src/lib/services/auth/handoff.service.ts +225 -0
  536. package/src/lib/services/auth/index.ts +128 -0
  537. package/src/lib/services/auth/interceptor.ts +177 -0
  538. package/src/lib/services/auth/notification-action.service.ts +133 -0
  539. package/src/lib/services/auth/oauth-callback.component.ts +202 -0
  540. package/src/lib/services/auth/oauth.service.ts +352 -0
  541. package/src/lib/services/auth/org-switch.service.ts +165 -0
  542. package/src/lib/services/auth/session.service.ts +83 -0
  543. package/src/lib/services/auth/storage.service.ts +181 -0
  544. package/src/lib/services/auth/sync.service.ts +158 -0
  545. package/src/lib/services/auth/token.service.ts +132 -0
  546. package/src/lib/services/auth/types.ts +1042 -0
  547. package/src/lib/services/confirmation-dialog/confirmation-dialog.service.ts +206 -0
  548. package/src/lib/services/confirmation-dialog/types.ts +74 -0
  549. package/src/lib/services/content/content-types/blog.ts +324 -0
  550. package/src/lib/services/content/content-types/documentation.ts +369 -0
  551. package/src/lib/services/content/content-types/news.ts +328 -0
  552. package/src/lib/services/content/index.ts +71 -0
  553. package/src/lib/services/content/transformer.ts +312 -0
  554. package/src/lib/services/content/types.ts +276 -0
  555. package/src/lib/services/docs/docs-navigation.service.ts +91 -0
  556. package/src/lib/services/download.service.ts +75 -0
  557. package/src/lib/services/feedback/config.ts +61 -0
  558. package/src/lib/services/feedback/feedback.service.ts +348 -0
  559. package/src/lib/services/feedback/index.ts +59 -0
  560. package/src/lib/services/feedback/types.ts +239 -0
  561. package/src/lib/services/firebase/README.md +328 -0
  562. package/src/lib/services/firebase/analytics-error-handler.ts +155 -0
  563. package/src/lib/services/firebase/analytics-router-tracker.ts +109 -0
  564. package/src/lib/services/firebase/analytics-types.ts +277 -0
  565. package/src/lib/services/firebase/analytics.service.ts +707 -0
  566. package/src/lib/services/firebase/config.ts +172 -0
  567. package/src/lib/services/firebase/firebase.service.ts +502 -0
  568. package/src/lib/services/firebase/firestore-collection.ts +390 -0
  569. package/src/lib/services/firebase/firestore.service.ts +685 -0
  570. package/src/lib/services/firebase/index.ts +88 -0
  571. package/src/lib/services/firebase/messaging.service.ts +753 -0
  572. package/src/lib/services/firebase/notifications.service.ts +295 -0
  573. package/src/lib/services/firebase/shared-config.ts +212 -0
  574. package/src/lib/services/firebase/storage.service.ts +536 -0
  575. package/src/lib/services/firebase/types.ts +461 -0
  576. package/src/lib/services/firebase/utils/path-builder.ts +210 -0
  577. package/src/lib/services/firebase/utils/query-builder.ts +339 -0
  578. package/src/lib/services/i18n/config.ts +146 -0
  579. package/src/lib/services/i18n/default-content.ts +657 -0
  580. package/src/lib/services/i18n/i18n.service.ts +243 -0
  581. package/src/lib/services/i18n/index.ts +29 -0
  582. package/src/lib/services/i18n/input-i18n.helper.ts +141 -0
  583. package/src/lib/services/i18n/translate.pipe.ts +43 -0
  584. package/src/lib/services/i18n/types.ts +108 -0
  585. package/src/lib/services/icons.service.ts +136 -0
  586. package/src/lib/services/image/image.service.ts +328 -0
  587. package/src/lib/services/image/types.ts +79 -0
  588. package/src/lib/services/in-app-browser.service.ts +30 -0
  589. package/src/lib/services/legal-link/legal-link.service.ts +98 -0
  590. package/src/lib/services/link-processor.service.ts +311 -0
  591. package/src/lib/services/local-storage.service.ts +39 -0
  592. package/src/lib/services/locale.service.ts +86 -0
  593. package/src/lib/services/markdown-article/legal-content.service.ts +152 -0
  594. package/src/lib/services/markdown-article/markdown-article-parser.service.ts +15 -0
  595. package/src/lib/services/markdown-article/markdown-article-parser.ts +362 -0
  596. package/src/lib/services/meta/meta.service.ts +64 -0
  597. package/src/lib/services/meta/types.ts +13 -0
  598. package/src/lib/services/modal/modal.service.ts +244 -0
  599. package/src/lib/services/modal/simple-modal-content.component.ts +138 -0
  600. package/src/lib/services/modal/types.ts +180 -0
  601. package/src/lib/services/navigation/navigation.service.ts +255 -0
  602. package/src/lib/services/navigation/types.ts +86 -0
  603. package/src/lib/services/pagination/index.ts +13 -0
  604. package/src/lib/services/pagination/pagination.service.ts +243 -0
  605. package/src/lib/services/pagination/types.ts +133 -0
  606. package/src/lib/services/preferences/preferences.service.ts +179 -0
  607. package/src/lib/services/preferences/preferences.types.ts +37 -0
  608. package/src/lib/services/presets/config.ts +51 -0
  609. package/src/lib/services/presets/index.ts +8 -0
  610. package/src/lib/services/presets/preset.service.ts +105 -0
  611. package/src/lib/services/presets/types.ts +41 -0
  612. package/src/lib/services/qr-generator/qr-generator.service.ts +378 -0
  613. package/src/lib/services/qr-generator/types.ts +207 -0
  614. package/src/lib/services/skeleton/config.ts +82 -0
  615. package/src/lib/services/skeleton/directives/index.ts +1 -0
  616. package/src/lib/services/skeleton/directives/loading.directive.ts +230 -0
  617. package/src/lib/services/skeleton/index.ts +30 -0
  618. package/src/lib/services/skeleton/skeleton.service.ts +220 -0
  619. package/src/lib/services/skeleton/templates/detail-skeleton.component.ts +166 -0
  620. package/src/lib/services/skeleton/templates/form-skeleton.component.ts +115 -0
  621. package/src/lib/services/skeleton/templates/grid-skeleton.component.ts +127 -0
  622. package/src/lib/services/skeleton/templates/index.ts +6 -0
  623. package/src/lib/services/skeleton/templates/list-skeleton.component.ts +90 -0
  624. package/src/lib/services/skeleton/templates/profile-skeleton.component.ts +174 -0
  625. package/src/lib/services/skeleton/templates/table-skeleton.component.ts +113 -0
  626. package/src/lib/services/skeleton/types.ts +142 -0
  627. package/src/lib/services/theme.service.ts +163 -0
  628. package/src/lib/services/toast.service.ts +42 -0
  629. package/src/lib/services/types.ts +6 -0
  630. package/src/lib/shared/constants/storage.ts +2 -0
  631. package/src/lib/shared/pipes/process-links.pipe.ts +64 -0
  632. package/src/lib/shared/utils/datetime.ts +27 -0
  633. package/src/lib/shared/utils/dom.ts +29 -0
  634. package/src/lib/shared/utils/form-defaults.ts +119 -0
  635. package/src/lib/shared/utils/styles.ts +39 -0
  636. package/src/lib/shared/utils/text.ts +12 -0
  637. package/src/lib/version.ts +5 -0
  638. package/src/public-api.ts +373 -0
  639. package/src/stories/Introduction.mdx +649 -0
  640. package/src/stories/LayoutAndWidths.mdx +161 -0
  641. package/src/stories/helpers/mock-services.ts +27 -0
  642. package/src/stories/helpers/storybook-helpers.ts +89 -0
  643. package/tsconfig.json +32 -0
  644. package/tsconfig.lib.json +15 -0
  645. package/tsconfig.lib.prod.json +10 -0
  646. package/tsconfig.spec.json +14 -0
  647. package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +0 -94
  648. package/esm2022/lib/components/atoms/avatar/types.mjs +0 -2
  649. package/esm2022/lib/components/atoms/box/box.component.mjs +0 -88
  650. package/esm2022/lib/components/atoms/box/types.mjs +0 -2
  651. package/esm2022/lib/components/atoms/button/button.component.mjs +0 -174
  652. package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
  653. package/esm2022/lib/components/atoms/container/container.component.mjs +0 -52
  654. package/esm2022/lib/components/atoms/container/types.mjs +0 -2
  655. package/esm2022/lib/components/atoms/countdown/countdown.component.mjs +0 -340
  656. package/esm2022/lib/components/atoms/countdown/types.mjs +0 -27
  657. package/esm2022/lib/components/atoms/display/display.component.mjs +0 -51
  658. package/esm2022/lib/components/atoms/display/types.mjs +0 -2
  659. package/esm2022/lib/components/atoms/divider/divider.component.mjs +0 -27
  660. package/esm2022/lib/components/atoms/divider/types.mjs +0 -2
  661. package/esm2022/lib/components/atoms/fab/fab.component.mjs +0 -190
  662. package/esm2022/lib/components/atoms/fab/types.mjs +0 -2
  663. package/esm2022/lib/components/atoms/glass/glass.component.mjs +0 -125
  664. package/esm2022/lib/components/atoms/glass/types.mjs +0 -2
  665. package/esm2022/lib/components/atoms/glow/glow.component.mjs +0 -95
  666. package/esm2022/lib/components/atoms/glow/types.mjs +0 -2
  667. package/esm2022/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.mjs +0 -82
  668. package/esm2022/lib/components/atoms/horizontal-scroll/types.mjs +0 -2
  669. package/esm2022/lib/components/atoms/href/href.component.mjs +0 -62
  670. package/esm2022/lib/components/atoms/href/types.mjs +0 -2
  671. package/esm2022/lib/components/atoms/icon/icon.component.mjs +0 -29
  672. package/esm2022/lib/components/atoms/icon/types.mjs +0 -2
  673. package/esm2022/lib/components/atoms/image/image.component.mjs +0 -507
  674. package/esm2022/lib/components/atoms/image/types.mjs +0 -2
  675. package/esm2022/lib/components/atoms/pattern/motifs.mjs +0 -147
  676. package/esm2022/lib/components/atoms/pattern/pattern.component.mjs +0 -178
  677. package/esm2022/lib/components/atoms/pattern/types.mjs +0 -2
  678. package/esm2022/lib/components/atoms/price-tag/price-tag.component.mjs +0 -235
  679. package/esm2022/lib/components/atoms/price-tag/types.mjs +0 -15
  680. package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +0 -91
  681. package/esm2022/lib/components/atoms/progress-bar/types.mjs +0 -2
  682. package/esm2022/lib/components/atoms/progress-ring/progress-ring.component.mjs +0 -149
  683. package/esm2022/lib/components/atoms/progress-ring/types.mjs +0 -2
  684. package/esm2022/lib/components/atoms/qr-code/qr-code.component.mjs +0 -394
  685. package/esm2022/lib/components/atoms/qr-code/types.mjs +0 -2
  686. package/esm2022/lib/components/atoms/rights-footer/rights-footer.component.mjs +0 -108
  687. package/esm2022/lib/components/atoms/rights-footer/types.mjs +0 -2
  688. package/esm2022/lib/components/atoms/skeleton/skeleton.component.mjs +0 -193
  689. package/esm2022/lib/components/atoms/skeleton/types.mjs +0 -13
  690. package/esm2022/lib/components/atoms/text/text.component.mjs +0 -132
  691. package/esm2022/lib/components/atoms/text/types.mjs +0 -2
  692. package/esm2022/lib/components/atoms/title/title.component.mjs +0 -68
  693. package/esm2022/lib/components/atoms/title/types.mjs +0 -22
  694. package/esm2022/lib/components/atoms/user-avatar/types.mjs +0 -2
  695. package/esm2022/lib/components/atoms/user-avatar/user-avatar.component.mjs +0 -209
  696. package/esm2022/lib/components/molecules/accordion/accordion.component.mjs +0 -120
  697. package/esm2022/lib/components/molecules/accordion/types.mjs +0 -2
  698. package/esm2022/lib/components/molecules/action-card/action-card.component.mjs +0 -273
  699. package/esm2022/lib/components/molecules/action-card/types.mjs +0 -11
  700. package/esm2022/lib/components/molecules/action-header/action-header.component.mjs +0 -55
  701. package/esm2022/lib/components/molecules/action-header/types.mjs +0 -2
  702. package/esm2022/lib/components/molecules/ad-slot/ad-slot.component.mjs +0 -274
  703. package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +0 -119
  704. package/esm2022/lib/components/molecules/alert-box/types.mjs +0 -2
  705. package/esm2022/lib/components/molecules/breadcrumb/breadcrumb.component.mjs +0 -130
  706. package/esm2022/lib/components/molecules/breadcrumb/types.mjs +0 -2
  707. package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +0 -63
  708. package/esm2022/lib/components/molecules/button-group/types.mjs +0 -2
  709. package/esm2022/lib/components/molecules/card/card.component.mjs +0 -450
  710. package/esm2022/lib/components/molecules/card/types.mjs +0 -16
  711. package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +0 -82
  712. package/esm2022/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.mjs +0 -79
  713. package/esm2022/lib/components/molecules/chip-group/chip-group.component.mjs +0 -166
  714. package/esm2022/lib/components/molecules/chip-group/types.mjs +0 -2
  715. package/esm2022/lib/components/molecules/code-display/code-display.component.mjs +0 -115
  716. package/esm2022/lib/components/molecules/code-display/types.mjs +0 -2
  717. package/esm2022/lib/components/molecules/command-display/command-display.component.mjs +0 -49
  718. package/esm2022/lib/components/molecules/command-display/types.mjs +0 -2
  719. package/esm2022/lib/components/molecules/comment/comment.component.mjs +0 -618
  720. package/esm2022/lib/components/molecules/comment/types.mjs +0 -2
  721. package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +0 -41
  722. package/esm2022/lib/components/molecules/comment-input/types.mjs +0 -2
  723. package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +0 -42
  724. package/esm2022/lib/components/molecules/content-loader/types.mjs +0 -2
  725. package/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +0 -218
  726. package/esm2022/lib/components/molecules/content-reaction/types.mjs +0 -2
  727. package/esm2022/lib/components/molecules/currency-input/currency-input.component.mjs +0 -347
  728. package/esm2022/lib/components/molecules/currency-input/types.mjs +0 -18
  729. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +0 -148
  730. package/esm2022/lib/components/molecules/date-input/types.mjs +0 -2
  731. package/esm2022/lib/components/molecules/date-range-input/date-range-input.component.mjs +0 -416
  732. package/esm2022/lib/components/molecules/date-range-input/types.mjs +0 -2
  733. package/esm2022/lib/components/molecules/docs-api-table/docs-api-table.component.mjs +0 -222
  734. package/esm2022/lib/components/molecules/docs-api-table/types.mjs +0 -11
  735. package/esm2022/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.mjs +0 -144
  736. package/esm2022/lib/components/molecules/docs-breadcrumb/types.mjs +0 -2
  737. package/esm2022/lib/components/molecules/docs-callout/docs-callout.component.mjs +0 -60
  738. package/esm2022/lib/components/molecules/docs-code-example/docs-code-example.component.mjs +0 -249
  739. package/esm2022/lib/components/molecules/docs-code-example/types.mjs +0 -2
  740. package/esm2022/lib/components/molecules/docs-nav-links/docs-nav-links.component.mjs +0 -140
  741. package/esm2022/lib/components/molecules/docs-nav-links/types.mjs +0 -2
  742. package/esm2022/lib/components/molecules/docs-search/docs-search.component.mjs +0 -268
  743. package/esm2022/lib/components/molecules/docs-search/types.mjs +0 -2
  744. package/esm2022/lib/components/molecules/docs-section/docs-section.component.mjs +0 -85
  745. package/esm2022/lib/components/molecules/docs-section/types.mjs +0 -2
  746. package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +0 -68
  747. package/esm2022/lib/components/molecules/expandable-text/expandable-text.component.mjs +0 -77
  748. package/esm2022/lib/components/molecules/expandable-text/types.mjs +0 -2
  749. package/esm2022/lib/components/molecules/features-list/features-list.component.mjs +0 -179
  750. package/esm2022/lib/components/molecules/features-list/types.mjs +0 -11
  751. package/esm2022/lib/components/molecules/feedback-form/feedback-form.component.mjs +0 -354
  752. package/esm2022/lib/components/molecules/feedback-form/types.mjs +0 -2
  753. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +0 -90
  754. package/esm2022/lib/components/molecules/file-input/types.mjs +0 -2
  755. package/esm2022/lib/components/molecules/footer-links/footer-links.component.mjs +0 -391
  756. package/esm2022/lib/components/molecules/footer-links/types.mjs +0 -2
  757. package/esm2022/lib/components/molecules/glow-card/glow-card.component.mjs +0 -314
  758. package/esm2022/lib/components/molecules/glow-card/types.mjs +0 -11
  759. package/esm2022/lib/components/molecules/hint/hint.component.mjs +0 -90
  760. package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +0 -28
  761. package/esm2022/lib/components/molecules/image-crop/image-crop.component.mjs +0 -174
  762. package/esm2022/lib/components/molecules/image-crop/index.mjs +0 -2
  763. package/esm2022/lib/components/molecules/info/info.component.mjs +0 -49
  764. package/esm2022/lib/components/molecules/info/types.mjs +0 -2
  765. package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +0 -221
  766. package/esm2022/lib/components/molecules/language-selector/types.mjs +0 -2
  767. package/esm2022/lib/components/molecules/layered-card/layered-card.component.mjs +0 -104
  768. package/esm2022/lib/components/molecules/layered-card/types.mjs +0 -2
  769. package/esm2022/lib/components/molecules/link/link.component.mjs +0 -64
  770. package/esm2022/lib/components/molecules/link/types.mjs +0 -2
  771. package/esm2022/lib/components/molecules/linked-providers/linked-providers.component.mjs +0 -236
  772. package/esm2022/lib/components/molecules/linked-providers/types.mjs +0 -27
  773. package/esm2022/lib/components/molecules/links-accordion/links-accordion.component.mjs +0 -203
  774. package/esm2022/lib/components/molecules/links-accordion/types.mjs +0 -2
  775. package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +0 -51
  776. package/esm2022/lib/components/molecules/links-cake/types.mjs +0 -2
  777. package/esm2022/lib/components/molecules/multi-select-search/multi-select-search.component.mjs +0 -488
  778. package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +0 -92
  779. package/esm2022/lib/components/molecules/notes-box/types.mjs +0 -2
  780. package/esm2022/lib/components/molecules/number-from-to/number-from-to.component.mjs +0 -143
  781. package/esm2022/lib/components/molecules/number-from-to/types.mjs +0 -2
  782. package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +0 -34
  783. package/esm2022/lib/components/molecules/number-stepper/number-stepper.component.mjs +0 -379
  784. package/esm2022/lib/components/molecules/number-stepper/types.mjs +0 -2
  785. package/esm2022/lib/components/molecules/page-links/page-links.component.mjs +0 -150
  786. package/esm2022/lib/components/molecules/page-links/types.mjs +0 -2
  787. package/esm2022/lib/components/molecules/pagination/pagination.component.mjs +0 -253
  788. package/esm2022/lib/components/molecules/pagination/types.mjs +0 -2
  789. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +0 -93
  790. package/esm2022/lib/components/molecules/phone-input/phone-input.component.mjs +0 -365
  791. package/esm2022/lib/components/molecules/phone-input/types.mjs +0 -19
  792. package/esm2022/lib/components/molecules/pill/pill.component.mjs +0 -92
  793. package/esm2022/lib/components/molecules/pill/types.mjs +0 -2
  794. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +0 -78
  795. package/esm2022/lib/components/molecules/pin-input/types.mjs +0 -2
  796. package/esm2022/lib/components/molecules/plain-code-box/plain-code-box.component.mjs +0 -82
  797. package/esm2022/lib/components/molecules/plain-code-box/types.mjs +0 -2
  798. package/esm2022/lib/components/molecules/popover-selector/popover-selector.component.mjs +0 -188
  799. package/esm2022/lib/components/molecules/popover-selector/types.mjs +0 -2
  800. package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +0 -105
  801. package/esm2022/lib/components/molecules/progress-status/types.mjs +0 -2
  802. package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +0 -85
  803. package/esm2022/lib/components/molecules/prompter/types.mjs +0 -2
  804. package/esm2022/lib/components/molecules/quote-box/quote-box.component.mjs +0 -155
  805. package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +0 -52
  806. package/esm2022/lib/components/molecules/range-input/range-input.component.mjs +0 -127
  807. package/esm2022/lib/components/molecules/range-input/types.mjs +0 -2
  808. package/esm2022/lib/components/molecules/rating/rating.component.mjs +0 -166
  809. package/esm2022/lib/components/molecules/rating/types.mjs +0 -2
  810. package/esm2022/lib/components/molecules/refresher/refresher.component.mjs +0 -271
  811. package/esm2022/lib/components/molecules/refresher/types.mjs +0 -15
  812. package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +0 -127
  813. package/esm2022/lib/components/molecules/searchbar/types.mjs +0 -2
  814. package/esm2022/lib/components/molecules/segment-control/segment-control.component.mjs +0 -129
  815. package/esm2022/lib/components/molecules/segment-control/types.mjs +0 -2
  816. package/esm2022/lib/components/molecules/select-input/select-input.component.mjs +0 -130
  817. package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +0 -434
  818. package/esm2022/lib/components/molecules/share-buttons/share-buttons.component.mjs +0 -274
  819. package/esm2022/lib/components/molecules/share-buttons/types.mjs +0 -88
  820. package/esm2022/lib/components/molecules/stats-card/stats-card.component.mjs +0 -211
  821. package/esm2022/lib/components/molecules/stats-card/types.mjs +0 -2
  822. package/esm2022/lib/components/molecules/stepper/stepper.component.mjs +0 -242
  823. package/esm2022/lib/components/molecules/stepper/types.mjs +0 -2
  824. package/esm2022/lib/components/molecules/swipe-carousel/swipe-carousel.component.mjs +0 -206
  825. package/esm2022/lib/components/molecules/swipe-carousel/types.mjs +0 -2
  826. package/esm2022/lib/components/molecules/tabs/tabs.component.mjs +0 -139
  827. package/esm2022/lib/components/molecules/tabs/types.mjs +0 -2
  828. package/esm2022/lib/components/molecules/testimonial-card/testimonial-card.component.mjs +0 -138
  829. package/esm2022/lib/components/molecules/testimonial-card/types.mjs +0 -2
  830. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +0 -77
  831. package/esm2022/lib/components/molecules/textarea-input/textarea-input.component.mjs +0 -213
  832. package/esm2022/lib/components/molecules/textarea-input/types.mjs +0 -2
  833. package/esm2022/lib/components/molecules/timeline/timeline.component.mjs +0 -140
  834. package/esm2022/lib/components/molecules/timeline/types.mjs +0 -2
  835. package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +0 -102
  836. package/esm2022/lib/components/molecules/title-block/types.mjs +0 -2
  837. package/esm2022/lib/components/molecules/toggle-input/toggle-input.component.mjs +0 -93
  838. package/esm2022/lib/components/molecules/toggle-input/types.mjs +0 -2
  839. package/esm2022/lib/components/molecules/update-banner/update-banner.component.mjs +0 -112
  840. package/esm2022/lib/components/molecules/username-input/types.mjs +0 -2
  841. package/esm2022/lib/components/molecules/username-input/username-input.component.mjs +0 -295
  842. package/esm2022/lib/components/organisms/article/article.component.mjs +0 -578
  843. package/esm2022/lib/components/organisms/article/types.mjs +0 -183
  844. package/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +0 -325
  845. package/esm2022/lib/components/organisms/avatar-upload/types.mjs +0 -15
  846. package/esm2022/lib/components/organisms/banner/banner.component.mjs +0 -111
  847. package/esm2022/lib/components/organisms/banner/types.mjs +0 -2
  848. package/esm2022/lib/components/organisms/bottom-nav/bottom-nav.component.mjs +0 -383
  849. package/esm2022/lib/components/organisms/bottom-nav/types.mjs +0 -19
  850. package/esm2022/lib/components/organisms/cards-carousel/cards-carousel.component.mjs +0 -108
  851. package/esm2022/lib/components/organisms/cards-carousel/types.mjs +0 -2
  852. package/esm2022/lib/components/organisms/comment-section/comment-section.component.mjs +0 -537
  853. package/esm2022/lib/components/organisms/comment-section/types.mjs +0 -2
  854. package/esm2022/lib/components/organisms/company-footer/company-footer.component.mjs +0 -76
  855. package/esm2022/lib/components/organisms/company-footer/types.mjs +0 -2
  856. package/esm2022/lib/components/organisms/cookie-banner/cookie-banner.component.mjs +0 -199
  857. package/esm2022/lib/components/organisms/cookie-banner/types.mjs +0 -2
  858. package/esm2022/lib/components/organisms/data-table/data-table.component.mjs +0 -1081
  859. package/esm2022/lib/components/organisms/data-table/types.mjs +0 -13
  860. package/esm2022/lib/components/organisms/docs-sidebar/docs-sidebar.component.mjs +0 -290
  861. package/esm2022/lib/components/organisms/docs-sidebar/types.mjs +0 -2
  862. package/esm2022/lib/components/organisms/docs-toc/docs-toc.component.mjs +0 -307
  863. package/esm2022/lib/components/organisms/docs-toc/types.mjs +0 -2
  864. package/esm2022/lib/components/organisms/footer/footer.component.mjs +0 -73
  865. package/esm2022/lib/components/organisms/footer/types.mjs +0 -2
  866. package/esm2022/lib/components/organisms/form/factory.mjs +0 -29
  867. package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +0 -83
  868. package/esm2022/lib/components/organisms/form/form.component.mjs +0 -454
  869. package/esm2022/lib/components/organisms/fun-header/fun-header.component.mjs +0 -225
  870. package/esm2022/lib/components/organisms/fun-header/types.mjs +0 -2
  871. package/esm2022/lib/components/organisms/header/header.component.mjs +0 -51
  872. package/esm2022/lib/components/organisms/header/types.mjs +0 -2
  873. package/esm2022/lib/components/organisms/infinite-list/infinite-list.component.mjs +0 -620
  874. package/esm2022/lib/components/organisms/infinite-list/types.mjs +0 -15
  875. package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +0 -418
  876. package/esm2022/lib/components/organisms/item-list/types.mjs +0 -2
  877. package/esm2022/lib/components/organisms/login/login.component.mjs +0 -741
  878. package/esm2022/lib/components/organisms/login/types.mjs +0 -11
  879. package/esm2022/lib/components/organisms/menu/menu.component.mjs +0 -206
  880. package/esm2022/lib/components/organisms/menu/types.mjs +0 -2
  881. package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +0 -66
  882. package/esm2022/lib/components/organisms/no-content/types.mjs +0 -2
  883. package/esm2022/lib/components/organisms/rotating-text/rotating-text.component.mjs +0 -180
  884. package/esm2022/lib/components/organisms/rotating-text/types.mjs +0 -2
  885. package/esm2022/lib/components/organisms/tabbed-content/tabbed-content.component.mjs +0 -170
  886. package/esm2022/lib/components/organisms/tabbed-content/types.mjs +0 -2
  887. package/esm2022/lib/components/organisms/terminal-404/terminal-404.component.mjs +0 -214
  888. package/esm2022/lib/components/organisms/terminal-404/types.mjs +0 -2
  889. package/esm2022/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.mjs +0 -72
  890. package/esm2022/lib/components/organisms/testimonial-carousel/types.mjs +0 -2
  891. package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +0 -255
  892. package/esm2022/lib/components/organisms/toolbar/types.mjs +0 -2
  893. package/esm2022/lib/components/organisms/wizard/types.mjs +0 -10
  894. package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +0 -111
  895. package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +0 -161
  896. package/esm2022/lib/components/templates/auth-background/auth-background.component.mjs +0 -164
  897. package/esm2022/lib/components/templates/auth-background/types.mjs +0 -2
  898. package/esm2022/lib/components/templates/docs-layout/docs-layout.component.mjs +0 -221
  899. package/esm2022/lib/components/templates/docs-layout/types.mjs +0 -2
  900. package/esm2022/lib/components/templates/docs-page/docs-page.component.mjs +0 -251
  901. package/esm2022/lib/components/templates/docs-page/types.mjs +0 -2
  902. package/esm2022/lib/components/templates/docs-shell/docs-shell.component.mjs +0 -376
  903. package/esm2022/lib/components/templates/docs-shell/types.mjs +0 -2
  904. package/esm2022/lib/components/templates/maintenance-page/maintenance-page.component.mjs +0 -153
  905. package/esm2022/lib/components/templates/maintenance-page/types.mjs +0 -2
  906. package/esm2022/lib/components/templates/page-content/page-content.component.mjs +0 -193
  907. package/esm2022/lib/components/templates/page-content/types.mjs +0 -2
  908. package/esm2022/lib/components/templates/page-template/page-template.component.mjs +0 -188
  909. package/esm2022/lib/components/templates/page-template/types.mjs +0 -2
  910. package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +0 -192
  911. package/esm2022/lib/components/templates/page-wrapper/types.mjs +0 -2
  912. package/esm2022/lib/components/templates/simple/simple.component.mjs +0 -123
  913. package/esm2022/lib/components/templates/simple/types.mjs +0 -2
  914. package/esm2022/lib/components/types.mjs +0 -60
  915. package/esm2022/lib/config/company-footer.config.mjs +0 -123
  916. package/esm2022/lib/config/index.mjs +0 -5
  917. package/esm2022/lib/services/ads/ads-loader.service.mjs +0 -120
  918. package/esm2022/lib/services/ads/ads.service.mjs +0 -236
  919. package/esm2022/lib/services/ads/config.mjs +0 -81
  920. package/esm2022/lib/services/ads/index.mjs +0 -13
  921. package/esm2022/lib/services/ads/types.mjs +0 -23
  922. package/esm2022/lib/services/app-config/app-config.service.mjs +0 -209
  923. package/esm2022/lib/services/app-config/config.mjs +0 -47
  924. package/esm2022/lib/services/app-config/index.mjs +0 -48
  925. package/esm2022/lib/services/app-config/types.mjs +0 -13
  926. package/esm2022/lib/services/app-config/version.mjs +0 -85
  927. package/esm2022/lib/services/auth/auth-state.service.mjs +0 -207
  928. package/esm2022/lib/services/auth/auth.service.mjs +0 -1142
  929. package/esm2022/lib/services/auth/config.mjs +0 -75
  930. package/esm2022/lib/services/auth/device.service.mjs +0 -135
  931. package/esm2022/lib/services/auth/guards.mjs +0 -194
  932. package/esm2022/lib/services/auth/handoff.service.mjs +0 -152
  933. package/esm2022/lib/services/auth/index.mjs +0 -98
  934. package/esm2022/lib/services/auth/interceptor.mjs +0 -122
  935. package/esm2022/lib/services/auth/notification-action.service.mjs +0 -117
  936. package/esm2022/lib/services/auth/oauth-callback.component.mjs +0 -169
  937. package/esm2022/lib/services/auth/oauth.service.mjs +0 -318
  938. package/esm2022/lib/services/auth/org-switch.service.mjs +0 -137
  939. package/esm2022/lib/services/auth/session.service.mjs +0 -78
  940. package/esm2022/lib/services/auth/storage.service.mjs +0 -152
  941. package/esm2022/lib/services/auth/sync.service.mjs +0 -149
  942. package/esm2022/lib/services/auth/token.service.mjs +0 -122
  943. package/esm2022/lib/services/auth/types.mjs +0 -30
  944. package/esm2022/lib/services/confirmation-dialog/confirmation-dialog.service.mjs +0 -189
  945. package/esm2022/lib/services/confirmation-dialog/types.mjs +0 -14
  946. package/esm2022/lib/services/content/content-types/blog.mjs +0 -275
  947. package/esm2022/lib/services/content/content-types/documentation.mjs +0 -303
  948. package/esm2022/lib/services/content/content-types/news.mjs +0 -277
  949. package/esm2022/lib/services/content/index.mjs +0 -51
  950. package/esm2022/lib/services/content/transformer.mjs +0 -265
  951. package/esm2022/lib/services/content/types.mjs +0 -41
  952. package/esm2022/lib/services/docs/docs-navigation.service.mjs +0 -91
  953. package/esm2022/lib/services/download.service.mjs +0 -80
  954. package/esm2022/lib/services/feedback/config.mjs +0 -49
  955. package/esm2022/lib/services/feedback/feedback.service.mjs +0 -296
  956. package/esm2022/lib/services/feedback/index.mjs +0 -44
  957. package/esm2022/lib/services/feedback/types.mjs +0 -30
  958. package/esm2022/lib/services/firebase/analytics-error-handler.mjs +0 -141
  959. package/esm2022/lib/services/firebase/analytics-router-tracker.mjs +0 -99
  960. package/esm2022/lib/services/firebase/analytics-types.mjs +0 -7
  961. package/esm2022/lib/services/firebase/analytics.service.mjs +0 -620
  962. package/esm2022/lib/services/firebase/config.mjs +0 -131
  963. package/esm2022/lib/services/firebase/firebase.service.mjs +0 -456
  964. package/esm2022/lib/services/firebase/firestore-collection.mjs +0 -301
  965. package/esm2022/lib/services/firebase/firestore.service.mjs +0 -571
  966. package/esm2022/lib/services/firebase/index.mjs +0 -56
  967. package/esm2022/lib/services/firebase/messaging.service.mjs +0 -650
  968. package/esm2022/lib/services/firebase/notifications.service.mjs +0 -242
  969. package/esm2022/lib/services/firebase/shared-config.mjs +0 -147
  970. package/esm2022/lib/services/firebase/storage.service.mjs +0 -484
  971. package/esm2022/lib/services/firebase/types.mjs +0 -18
  972. package/esm2022/lib/services/firebase/utils/path-builder.mjs +0 -195
  973. package/esm2022/lib/services/firebase/utils/query-builder.mjs +0 -302
  974. package/esm2022/lib/services/i18n/config.mjs +0 -128
  975. package/esm2022/lib/services/i18n/default-content.mjs +0 -577
  976. package/esm2022/lib/services/i18n/i18n.service.mjs +0 -217
  977. package/esm2022/lib/services/i18n/index.mjs +0 -13
  978. package/esm2022/lib/services/i18n/input-i18n.helper.mjs +0 -97
  979. package/esm2022/lib/services/i18n/translate.pipe.mjs +0 -50
  980. package/esm2022/lib/services/i18n/types.mjs +0 -15
  981. package/esm2022/lib/services/icons.service.mjs +0 -83
  982. package/esm2022/lib/services/image/image.service.mjs +0 -244
  983. package/esm2022/lib/services/image/index.mjs +0 -3
  984. package/esm2022/lib/services/image/types.mjs +0 -13
  985. package/esm2022/lib/services/in-app-browser.service.mjs +0 -35
  986. package/esm2022/lib/services/legal-link/legal-link.service.mjs +0 -85
  987. package/esm2022/lib/services/link-processor.service.mjs +0 -259
  988. package/esm2022/lib/services/local-storage.service.mjs +0 -37
  989. package/esm2022/lib/services/locale.service.mjs +0 -75
  990. package/esm2022/lib/services/markdown-article/legal-content.service.mjs +0 -107
  991. package/esm2022/lib/services/markdown-article/markdown-article-parser.mjs +0 -302
  992. package/esm2022/lib/services/markdown-article/markdown-article-parser.service.mjs +0 -20
  993. package/esm2022/lib/services/meta/index.mjs +0 -3
  994. package/esm2022/lib/services/meta/meta.service.mjs +0 -63
  995. package/esm2022/lib/services/meta/types.mjs +0 -2
  996. package/esm2022/lib/services/modal/modal.service.mjs +0 -212
  997. package/esm2022/lib/services/modal/simple-modal-content.component.mjs +0 -133
  998. package/esm2022/lib/services/modal/types.mjs +0 -26
  999. package/esm2022/lib/services/navigation/index.mjs +0 -3
  1000. package/esm2022/lib/services/navigation/navigation.service.mjs +0 -216
  1001. package/esm2022/lib/services/navigation/types.mjs +0 -16
  1002. package/esm2022/lib/services/pagination/index.mjs +0 -5
  1003. package/esm2022/lib/services/pagination/pagination.service.mjs +0 -218
  1004. package/esm2022/lib/services/pagination/types.mjs +0 -14
  1005. package/esm2022/lib/services/preferences/index.mjs +0 -3
  1006. package/esm2022/lib/services/preferences/preferences.service.mjs +0 -172
  1007. package/esm2022/lib/services/preferences/preferences.types.mjs +0 -7
  1008. package/esm2022/lib/services/presets/config.mjs +0 -46
  1009. package/esm2022/lib/services/presets/index.mjs +0 -5
  1010. package/esm2022/lib/services/presets/preset.service.mjs +0 -104
  1011. package/esm2022/lib/services/presets/types.mjs +0 -2
  1012. package/esm2022/lib/services/qr-generator/qr-generator.service.mjs +0 -341
  1013. package/esm2022/lib/services/qr-generator/types.mjs +0 -46
  1014. package/esm2022/lib/services/skeleton/config.mjs +0 -79
  1015. package/esm2022/lib/services/skeleton/directives/loading.directive.mjs +0 -215
  1016. package/esm2022/lib/services/skeleton/index.mjs +0 -16
  1017. package/esm2022/lib/services/skeleton/skeleton.service.mjs +0 -198
  1018. package/esm2022/lib/services/skeleton/templates/detail-skeleton.component.mjs +0 -223
  1019. package/esm2022/lib/services/skeleton/templates/form-skeleton.component.mjs +0 -127
  1020. package/esm2022/lib/services/skeleton/templates/grid-skeleton.component.mjs +0 -154
  1021. package/esm2022/lib/services/skeleton/templates/list-skeleton.component.mjs +0 -110
  1022. package/esm2022/lib/services/skeleton/templates/profile-skeleton.component.mjs +0 -207
  1023. package/esm2022/lib/services/skeleton/templates/table-skeleton.component.mjs +0 -116
  1024. package/esm2022/lib/services/skeleton/types.mjs +0 -11
  1025. package/esm2022/lib/services/theme.service.mjs +0 -153
  1026. package/esm2022/lib/services/toast.service.mjs +0 -47
  1027. package/esm2022/lib/services/types.mjs +0 -5
  1028. package/esm2022/lib/shared/constants/storage.mjs +0 -3
  1029. package/esm2022/lib/shared/pipes/process-links.pipe.mjs +0 -69
  1030. package/esm2022/lib/shared/utils/datetime.mjs +0 -24
  1031. package/esm2022/lib/shared/utils/dom.mjs +0 -27
  1032. package/esm2022/lib/shared/utils/form-defaults.mjs +0 -112
  1033. package/esm2022/lib/shared/utils/styles.mjs +0 -37
  1034. package/esm2022/lib/shared/utils/text.mjs +0 -12
  1035. package/esm2022/lib/version.mjs +0 -6
  1036. package/esm2022/public-api.mjs +0 -349
  1037. package/esm2022/valtech-components.mjs +0 -5
  1038. package/fesm2022/valtech-components.mjs +0 -44076
  1039. package/fesm2022/valtech-components.mjs.map +0 -1
  1040. package/index.d.ts +0 -5
  1041. package/lib/components/atoms/avatar/avatar.component.d.ts +0 -36
  1042. package/lib/components/atoms/avatar/types.d.ts +0 -15
  1043. package/lib/components/atoms/box/box.component.d.ts +0 -26
  1044. package/lib/components/atoms/box/types.d.ts +0 -19
  1045. package/lib/components/atoms/button/button.component.d.ts +0 -63
  1046. package/lib/components/atoms/button/factory.d.ts +0 -71
  1047. package/lib/components/atoms/container/container.component.d.ts +0 -30
  1048. package/lib/components/atoms/container/types.d.ts +0 -11
  1049. package/lib/components/atoms/countdown/countdown.component.d.ts +0 -38
  1050. package/lib/components/atoms/countdown/types.d.ts +0 -108
  1051. package/lib/components/atoms/display/display.component.d.ts +0 -19
  1052. package/lib/components/atoms/display/types.d.ts +0 -33
  1053. package/lib/components/atoms/divider/divider.component.d.ts +0 -27
  1054. package/lib/components/atoms/divider/types.d.ts +0 -12
  1055. package/lib/components/atoms/fab/fab.component.d.ts +0 -36
  1056. package/lib/components/atoms/fab/types.d.ts +0 -45
  1057. package/lib/components/atoms/glass/glass.component.d.ts +0 -43
  1058. package/lib/components/atoms/glass/types.d.ts +0 -70
  1059. package/lib/components/atoms/glow/glow.component.d.ts +0 -42
  1060. package/lib/components/atoms/glow/types.d.ts +0 -40
  1061. package/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.d.ts +0 -41
  1062. package/lib/components/atoms/horizontal-scroll/types.d.ts +0 -13
  1063. package/lib/components/atoms/href/href.component.d.ts +0 -25
  1064. package/lib/components/atoms/href/types.d.ts +0 -19
  1065. package/lib/components/atoms/icon/icon.component.d.ts +0 -18
  1066. package/lib/components/atoms/icon/types.d.ts +0 -13
  1067. package/lib/components/atoms/image/image.component.d.ts +0 -41
  1068. package/lib/components/atoms/image/types.d.ts +0 -37
  1069. package/lib/components/atoms/pattern/motifs.d.ts +0 -60
  1070. package/lib/components/atoms/pattern/pattern.component.d.ts +0 -68
  1071. package/lib/components/atoms/pattern/types.d.ts +0 -61
  1072. package/lib/components/atoms/price-tag/price-tag.component.d.ts +0 -15
  1073. package/lib/components/atoms/price-tag/types.d.ts +0 -59
  1074. package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +0 -35
  1075. package/lib/components/atoms/progress-bar/types.d.ts +0 -19
  1076. package/lib/components/atoms/progress-ring/progress-ring.component.d.ts +0 -20
  1077. package/lib/components/atoms/progress-ring/types.d.ts +0 -24
  1078. package/lib/components/atoms/qr-code/qr-code.component.d.ts +0 -33
  1079. package/lib/components/atoms/qr-code/types.d.ts +0 -124
  1080. package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +0 -53
  1081. package/lib/components/atoms/rights-footer/types.d.ts +0 -21
  1082. package/lib/components/atoms/skeleton/skeleton.component.d.ts +0 -12
  1083. package/lib/components/atoms/skeleton/types.d.ts +0 -29
  1084. package/lib/components/atoms/text/text.component.d.ts +0 -33
  1085. package/lib/components/atoms/text/types.d.ts +0 -42
  1086. package/lib/components/atoms/title/title.component.d.ts +0 -21
  1087. package/lib/components/atoms/title/types.d.ts +0 -36
  1088. package/lib/components/atoms/user-avatar/types.d.ts +0 -74
  1089. package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +0 -55
  1090. package/lib/components/molecules/accordion/accordion.component.d.ts +0 -18
  1091. package/lib/components/molecules/accordion/types.d.ts +0 -47
  1092. package/lib/components/molecules/action-card/action-card.component.d.ts +0 -90
  1093. package/lib/components/molecules/action-card/types.d.ts +0 -83
  1094. package/lib/components/molecules/action-header/action-header.component.d.ts +0 -27
  1095. package/lib/components/molecules/action-header/types.d.ts +0 -27
  1096. package/lib/components/molecules/ad-slot/ad-slot.component.d.ts +0 -69
  1097. package/lib/components/molecules/alert-box/alert-box.component.d.ts +0 -39
  1098. package/lib/components/molecules/alert-box/types.d.ts +0 -37
  1099. package/lib/components/molecules/breadcrumb/breadcrumb.component.d.ts +0 -22
  1100. package/lib/components/molecules/breadcrumb/types.d.ts +0 -45
  1101. package/lib/components/molecules/button-group/button-group.component.d.ts +0 -23
  1102. package/lib/components/molecules/button-group/types.d.ts +0 -13
  1103. package/lib/components/molecules/card/card.component.d.ts +0 -49
  1104. package/lib/components/molecules/card/types.d.ts +0 -32
  1105. package/lib/components/molecules/check-input/check-input.component.d.ts +0 -36
  1106. package/lib/components/molecules/checkbox-radio-input/checkbox-radio-input.component.d.ts +0 -17
  1107. package/lib/components/molecules/chip-group/chip-group.component.d.ts +0 -22
  1108. package/lib/components/molecules/chip-group/types.d.ts +0 -65
  1109. package/lib/components/molecules/code-display/code-display.component.d.ts +0 -24
  1110. package/lib/components/molecules/code-display/types.d.ts +0 -10
  1111. package/lib/components/molecules/command-display/command-display.component.d.ts +0 -11
  1112. package/lib/components/molecules/command-display/types.d.ts +0 -3
  1113. package/lib/components/molecules/comment/comment.component.d.ts +0 -42
  1114. package/lib/components/molecules/comment/types.d.ts +0 -171
  1115. package/lib/components/molecules/comment-input/comment-input.component.d.ts +0 -16
  1116. package/lib/components/molecules/comment-input/types.d.ts +0 -59
  1117. package/lib/components/molecules/content-loader/content-loader.component.d.ts +0 -18
  1118. package/lib/components/molecules/content-loader/types.d.ts +0 -15
  1119. package/lib/components/molecules/content-reaction/content-reaction.component.d.ts +0 -58
  1120. package/lib/components/molecules/content-reaction/types.d.ts +0 -77
  1121. package/lib/components/molecules/currency-input/currency-input.component.d.ts +0 -40
  1122. package/lib/components/molecules/currency-input/types.d.ts +0 -96
  1123. package/lib/components/molecules/date-input/date-input.component.d.ts +0 -40
  1124. package/lib/components/molecules/date-input/types.d.ts +0 -74
  1125. package/lib/components/molecules/date-range-input/date-range-input.component.d.ts +0 -50
  1126. package/lib/components/molecules/date-range-input/types.d.ts +0 -109
  1127. package/lib/components/molecules/docs-api-table/docs-api-table.component.d.ts +0 -41
  1128. package/lib/components/molecules/docs-api-table/types.d.ts +0 -62
  1129. package/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.d.ts +0 -31
  1130. package/lib/components/molecules/docs-breadcrumb/types.d.ts +0 -20
  1131. package/lib/components/molecules/docs-callout/docs-callout.component.d.ts +0 -17
  1132. package/lib/components/molecules/docs-code-example/docs-code-example.component.d.ts +0 -45
  1133. package/lib/components/molecules/docs-code-example/types.d.ts +0 -63
  1134. package/lib/components/molecules/docs-nav-links/docs-nav-links.component.d.ts +0 -30
  1135. package/lib/components/molecules/docs-nav-links/types.d.ts +0 -31
  1136. package/lib/components/molecules/docs-search/docs-search.component.d.ts +0 -47
  1137. package/lib/components/molecules/docs-search/types.d.ts +0 -27
  1138. package/lib/components/molecules/docs-section/docs-section.component.d.ts +0 -29
  1139. package/lib/components/molecules/docs-section/types.d.ts +0 -27
  1140. package/lib/components/molecules/email-input/email-input.component.d.ts +0 -34
  1141. package/lib/components/molecules/expandable-text/expandable-text.component.d.ts +0 -23
  1142. package/lib/components/molecules/expandable-text/types.d.ts +0 -14
  1143. package/lib/components/molecules/features-list/features-list.component.d.ts +0 -66
  1144. package/lib/components/molecules/features-list/types.d.ts +0 -36
  1145. package/lib/components/molecules/feedback-form/feedback-form.component.d.ts +0 -58
  1146. package/lib/components/molecules/feedback-form/types.d.ts +0 -54
  1147. package/lib/components/molecules/file-input/file-input.component.d.ts +0 -25
  1148. package/lib/components/molecules/file-input/types.d.ts +0 -72
  1149. package/lib/components/molecules/footer-links/footer-links.component.d.ts +0 -47
  1150. package/lib/components/molecules/footer-links/types.d.ts +0 -50
  1151. package/lib/components/molecules/glow-card/glow-card.component.d.ts +0 -60
  1152. package/lib/components/molecules/glow-card/types.d.ts +0 -94
  1153. package/lib/components/molecules/hint/hint.component.d.ts +0 -19
  1154. package/lib/components/molecules/hour-input/hour-input.component.d.ts +0 -15
  1155. package/lib/components/molecules/image-crop/image-crop.component.d.ts +0 -59
  1156. package/lib/components/molecules/info/info.component.d.ts +0 -9
  1157. package/lib/components/molecules/info/types.d.ts +0 -10
  1158. package/lib/components/molecules/language-selector/language-selector.component.d.ts +0 -40
  1159. package/lib/components/molecules/language-selector/types.d.ts +0 -82
  1160. package/lib/components/molecules/layered-card/layered-card.component.d.ts +0 -10
  1161. package/lib/components/molecules/layered-card/types.d.ts +0 -15
  1162. package/lib/components/molecules/link/link.component.d.ts +0 -24
  1163. package/lib/components/molecules/link/types.d.ts +0 -19
  1164. package/lib/components/molecules/linked-providers/linked-providers.component.d.ts +0 -30
  1165. package/lib/components/molecules/linked-providers/types.d.ts +0 -38
  1166. package/lib/components/molecules/links-accordion/links-accordion.component.d.ts +0 -61
  1167. package/lib/components/molecules/links-accordion/types.d.ts +0 -39
  1168. package/lib/components/molecules/links-cake/links-cake.component.d.ts +0 -17
  1169. package/lib/components/molecules/links-cake/types.d.ts +0 -13
  1170. package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +0 -76
  1171. package/lib/components/molecules/notes-box/notes-box.component.d.ts +0 -33
  1172. package/lib/components/molecules/notes-box/types.d.ts +0 -35
  1173. package/lib/components/molecules/number-from-to/number-from-to.component.d.ts +0 -27
  1174. package/lib/components/molecules/number-from-to/types.d.ts +0 -76
  1175. package/lib/components/molecules/number-input/number-input.component.d.ts +0 -16
  1176. package/lib/components/molecules/number-stepper/number-stepper.component.d.ts +0 -38
  1177. package/lib/components/molecules/number-stepper/types.d.ts +0 -88
  1178. package/lib/components/molecules/page-links/page-links.component.d.ts +0 -29
  1179. package/lib/components/molecules/page-links/types.d.ts +0 -38
  1180. package/lib/components/molecules/pagination/pagination.component.d.ts +0 -15
  1181. package/lib/components/molecules/pagination/types.d.ts +0 -41
  1182. package/lib/components/molecules/password-input/password-input.component.d.ts +0 -37
  1183. package/lib/components/molecules/phone-input/phone-input.component.d.ts +0 -59
  1184. package/lib/components/molecules/phone-input/types.d.ts +0 -98
  1185. package/lib/components/molecules/pill/pill.component.d.ts +0 -33
  1186. package/lib/components/molecules/pill/types.d.ts +0 -9
  1187. package/lib/components/molecules/pin-input/pin-input.component.d.ts +0 -21
  1188. package/lib/components/molecules/pin-input/types.d.ts +0 -69
  1189. package/lib/components/molecules/plain-code-box/plain-code-box.component.d.ts +0 -22
  1190. package/lib/components/molecules/plain-code-box/types.d.ts +0 -10
  1191. package/lib/components/molecules/popover-selector/popover-selector.component.d.ts +0 -42
  1192. package/lib/components/molecules/popover-selector/types.d.ts +0 -69
  1193. package/lib/components/molecules/progress-status/progress-status.component.d.ts +0 -23
  1194. package/lib/components/molecules/progress-status/types.d.ts +0 -20
  1195. package/lib/components/molecules/prompter/prompter.component.d.ts +0 -10
  1196. package/lib/components/molecules/prompter/types.d.ts +0 -25
  1197. package/lib/components/molecules/quote-box/quote-box.component.d.ts +0 -26
  1198. package/lib/components/molecules/radio-input/radio-input.component.d.ts +0 -15
  1199. package/lib/components/molecules/range-input/range-input.component.d.ts +0 -25
  1200. package/lib/components/molecules/range-input/types.d.ts +0 -59
  1201. package/lib/components/molecules/rating/rating.component.d.ts +0 -23
  1202. package/lib/components/molecules/rating/types.d.ts +0 -41
  1203. package/lib/components/molecules/refresher/refresher.component.d.ts +0 -84
  1204. package/lib/components/molecules/refresher/types.d.ts +0 -86
  1205. package/lib/components/molecules/searchbar/searchbar.component.d.ts +0 -43
  1206. package/lib/components/molecules/searchbar/types.d.ts +0 -33
  1207. package/lib/components/molecules/segment-control/segment-control.component.d.ts +0 -35
  1208. package/lib/components/molecules/segment-control/types.d.ts +0 -46
  1209. package/lib/components/molecules/select-input/select-input.component.d.ts +0 -48
  1210. package/lib/components/molecules/select-search/select-search.component.d.ts +0 -78
  1211. package/lib/components/molecules/share-buttons/share-buttons.component.d.ts +0 -22
  1212. package/lib/components/molecules/share-buttons/types.d.ts +0 -108
  1213. package/lib/components/molecules/stats-card/stats-card.component.d.ts +0 -20
  1214. package/lib/components/molecules/stats-card/types.d.ts +0 -60
  1215. package/lib/components/molecules/stepper/stepper.component.d.ts +0 -31
  1216. package/lib/components/molecules/stepper/types.d.ts +0 -66
  1217. package/lib/components/molecules/swipe-carousel/swipe-carousel.component.d.ts +0 -66
  1218. package/lib/components/molecules/swipe-carousel/types.d.ts +0 -35
  1219. package/lib/components/molecules/tabs/tabs.component.d.ts +0 -34
  1220. package/lib/components/molecules/tabs/types.d.ts +0 -45
  1221. package/lib/components/molecules/testimonial-card/testimonial-card.component.d.ts +0 -41
  1222. package/lib/components/molecules/testimonial-card/types.d.ts +0 -25
  1223. package/lib/components/molecules/text-input/text-input.component.d.ts +0 -42
  1224. package/lib/components/molecules/textarea-input/textarea-input.component.d.ts +0 -46
  1225. package/lib/components/molecules/textarea-input/types.d.ts +0 -74
  1226. package/lib/components/molecules/timeline/timeline.component.d.ts +0 -14
  1227. package/lib/components/molecules/timeline/types.d.ts +0 -39
  1228. package/lib/components/molecules/title-block/title-block.component.d.ts +0 -12
  1229. package/lib/components/molecules/title-block/types.d.ts +0 -15
  1230. package/lib/components/molecules/toggle-input/toggle-input.component.d.ts +0 -39
  1231. package/lib/components/molecules/toggle-input/types.d.ts +0 -30
  1232. package/lib/components/molecules/update-banner/update-banner.component.d.ts +0 -42
  1233. package/lib/components/molecules/username-input/types.d.ts +0 -36
  1234. package/lib/components/molecules/username-input/username-input.component.d.ts +0 -58
  1235. package/lib/components/organisms/article/article.component.d.ts +0 -108
  1236. package/lib/components/organisms/article/types.d.ts +0 -367
  1237. package/lib/components/organisms/avatar-upload/avatar-upload.component.d.ts +0 -84
  1238. package/lib/components/organisms/avatar-upload/types.d.ts +0 -62
  1239. package/lib/components/organisms/banner/banner.component.d.ts +0 -16
  1240. package/lib/components/organisms/banner/types.d.ts +0 -29
  1241. package/lib/components/organisms/bottom-nav/bottom-nav.component.d.ts +0 -91
  1242. package/lib/components/organisms/bottom-nav/types.d.ts +0 -120
  1243. package/lib/components/organisms/cards-carousel/cards-carousel.component.d.ts +0 -36
  1244. package/lib/components/organisms/cards-carousel/types.d.ts +0 -40
  1245. package/lib/components/organisms/comment-section/comment-section.component.d.ts +0 -50
  1246. package/lib/components/organisms/comment-section/types.d.ts +0 -144
  1247. package/lib/components/organisms/company-footer/company-footer.component.d.ts +0 -37
  1248. package/lib/components/organisms/company-footer/types.d.ts +0 -15
  1249. package/lib/components/organisms/cookie-banner/cookie-banner.component.d.ts +0 -36
  1250. package/lib/components/organisms/cookie-banner/types.d.ts +0 -62
  1251. package/lib/components/organisms/data-table/data-table.component.d.ts +0 -63
  1252. package/lib/components/organisms/data-table/types.d.ts +0 -219
  1253. package/lib/components/organisms/docs-sidebar/docs-sidebar.component.d.ts +0 -51
  1254. package/lib/components/organisms/docs-sidebar/types.d.ts +0 -93
  1255. package/lib/components/organisms/docs-toc/docs-toc.component.d.ts +0 -62
  1256. package/lib/components/organisms/docs-toc/types.d.ts +0 -62
  1257. package/lib/components/organisms/footer/footer.component.d.ts +0 -36
  1258. package/lib/components/organisms/footer/types.d.ts +0 -16
  1259. package/lib/components/organisms/form/factory.d.ts +0 -17
  1260. package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +0 -17
  1261. package/lib/components/organisms/form/form.component.d.ts +0 -56
  1262. package/lib/components/organisms/fun-header/fun-header.component.d.ts +0 -72
  1263. package/lib/components/organisms/fun-header/types.d.ts +0 -28
  1264. package/lib/components/organisms/header/header.component.d.ts +0 -22
  1265. package/lib/components/organisms/header/types.d.ts +0 -16
  1266. package/lib/components/organisms/infinite-list/infinite-list.component.d.ts +0 -113
  1267. package/lib/components/organisms/infinite-list/types.d.ts +0 -197
  1268. package/lib/components/organisms/item-list/item-list.component.d.ts +0 -43
  1269. package/lib/components/organisms/item-list/types.d.ts +0 -126
  1270. package/lib/components/organisms/login/login.component.d.ts +0 -79
  1271. package/lib/components/organisms/login/types.d.ts +0 -70
  1272. package/lib/components/organisms/menu/menu.component.d.ts +0 -44
  1273. package/lib/components/organisms/menu/types.d.ts +0 -23
  1274. package/lib/components/organisms/no-content/no-content.component.d.ts +0 -14
  1275. package/lib/components/organisms/no-content/types.d.ts +0 -17
  1276. package/lib/components/organisms/rotating-text/rotating-text.component.d.ts +0 -47
  1277. package/lib/components/organisms/rotating-text/types.d.ts +0 -28
  1278. package/lib/components/organisms/tabbed-content/tabbed-content.component.d.ts +0 -65
  1279. package/lib/components/organisms/tabbed-content/types.d.ts +0 -53
  1280. package/lib/components/organisms/terminal-404/terminal-404.component.d.ts +0 -42
  1281. package/lib/components/organisms/terminal-404/types.d.ts +0 -22
  1282. package/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.d.ts +0 -33
  1283. package/lib/components/organisms/testimonial-carousel/types.d.ts +0 -8
  1284. package/lib/components/organisms/toolbar/toolbar.component.d.ts +0 -85
  1285. package/lib/components/organisms/toolbar/types.d.ts +0 -31
  1286. package/lib/components/organisms/wizard/types.d.ts +0 -42
  1287. package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +0 -23
  1288. package/lib/components/organisms/wizard/wizard.component.d.ts +0 -27
  1289. package/lib/components/templates/auth-background/auth-background.component.d.ts +0 -62
  1290. package/lib/components/templates/auth-background/types.d.ts +0 -30
  1291. package/lib/components/templates/docs-layout/docs-layout.component.d.ts +0 -42
  1292. package/lib/components/templates/docs-layout/types.d.ts +0 -39
  1293. package/lib/components/templates/docs-page/docs-page.component.d.ts +0 -61
  1294. package/lib/components/templates/docs-page/types.d.ts +0 -121
  1295. package/lib/components/templates/docs-shell/docs-shell.component.d.ts +0 -33
  1296. package/lib/components/templates/docs-shell/types.d.ts +0 -152
  1297. package/lib/components/templates/maintenance-page/maintenance-page.component.d.ts +0 -57
  1298. package/lib/components/templates/maintenance-page/types.d.ts +0 -12
  1299. package/lib/components/templates/page-content/page-content.component.d.ts +0 -107
  1300. package/lib/components/templates/page-content/types.d.ts +0 -27
  1301. package/lib/components/templates/page-template/page-template.component.d.ts +0 -54
  1302. package/lib/components/templates/page-template/types.d.ts +0 -17
  1303. package/lib/components/templates/page-wrapper/page-wrapper.component.d.ts +0 -91
  1304. package/lib/components/templates/page-wrapper/types.d.ts +0 -26
  1305. package/lib/components/templates/simple/simple.component.d.ts +0 -14
  1306. package/lib/components/templates/simple/types.d.ts +0 -10
  1307. package/lib/components/types.d.ts +0 -302
  1308. package/lib/config/company-footer.config.d.ts +0 -118
  1309. package/lib/services/ads/ads-loader.service.d.ts +0 -41
  1310. package/lib/services/ads/ads.service.d.ts +0 -99
  1311. package/lib/services/ads/config.d.ts +0 -53
  1312. package/lib/services/ads/index.d.ts +0 -9
  1313. package/lib/services/ads/types.d.ts +0 -106
  1314. package/lib/services/app-config/app-config.service.d.ts +0 -115
  1315. package/lib/services/app-config/config.d.ts +0 -31
  1316. package/lib/services/app-config/index.d.ts +0 -47
  1317. package/lib/services/app-config/types.d.ts +0 -54
  1318. package/lib/services/app-config/version.d.ts +0 -64
  1319. package/lib/services/auth/auth-state.service.d.ts +0 -106
  1320. package/lib/services/auth/auth.service.d.ts +0 -429
  1321. package/lib/services/auth/config.d.ts +0 -38
  1322. package/lib/services/auth/device.service.d.ts +0 -101
  1323. package/lib/services/auth/guards.d.ts +0 -123
  1324. package/lib/services/auth/handoff.service.d.ts +0 -159
  1325. package/lib/services/auth/index.d.ts +0 -89
  1326. package/lib/services/auth/interceptor.d.ts +0 -22
  1327. package/lib/services/auth/notification-action.service.d.ts +0 -34
  1328. package/lib/services/auth/oauth-callback.component.d.ts +0 -34
  1329. package/lib/services/auth/oauth.service.d.ts +0 -99
  1330. package/lib/services/auth/org-switch.service.d.ts +0 -127
  1331. package/lib/services/auth/session.service.d.ts +0 -60
  1332. package/lib/services/auth/storage.service.d.ts +0 -52
  1333. package/lib/services/auth/sync.service.d.ts +0 -49
  1334. package/lib/services/auth/token.service.d.ts +0 -57
  1335. package/lib/services/auth/types.d.ts +0 -862
  1336. package/lib/services/confirmation-dialog/confirmation-dialog.service.d.ts +0 -71
  1337. package/lib/services/confirmation-dialog/types.d.ts +0 -61
  1338. package/lib/services/content/content-types/blog.d.ts +0 -148
  1339. package/lib/services/content/content-types/documentation.d.ts +0 -183
  1340. package/lib/services/content/content-types/news.d.ts +0 -162
  1341. package/lib/services/content/index.d.ts +0 -49
  1342. package/lib/services/content/transformer.d.ts +0 -96
  1343. package/lib/services/content/types.d.ts +0 -220
  1344. package/lib/services/docs/docs-navigation.service.d.ts +0 -51
  1345. package/lib/services/download.service.d.ts +0 -21
  1346. package/lib/services/feedback/config.d.ts +0 -35
  1347. package/lib/services/feedback/feedback.service.d.ts +0 -134
  1348. package/lib/services/feedback/index.d.ts +0 -40
  1349. package/lib/services/feedback/types.d.ts +0 -173
  1350. package/lib/services/firebase/analytics-error-handler.d.ts +0 -54
  1351. package/lib/services/firebase/analytics-router-tracker.d.ts +0 -51
  1352. package/lib/services/firebase/analytics-types.d.ts +0 -221
  1353. package/lib/services/firebase/analytics.service.d.ts +0 -256
  1354. package/lib/services/firebase/config.d.ts +0 -49
  1355. package/lib/services/firebase/firebase.service.d.ts +0 -251
  1356. package/lib/services/firebase/firestore-collection.d.ts +0 -199
  1357. package/lib/services/firebase/firestore.service.d.ts +0 -335
  1358. package/lib/services/firebase/index.d.ts +0 -44
  1359. package/lib/services/firebase/messaging.service.d.ts +0 -315
  1360. package/lib/services/firebase/notifications.service.d.ts +0 -141
  1361. package/lib/services/firebase/shared-config.d.ts +0 -151
  1362. package/lib/services/firebase/storage.service.d.ts +0 -238
  1363. package/lib/services/firebase/types.d.ts +0 -374
  1364. package/lib/services/firebase/utils/path-builder.d.ts +0 -132
  1365. package/lib/services/firebase/utils/query-builder.d.ts +0 -210
  1366. package/lib/services/i18n/config.d.ts +0 -29
  1367. package/lib/services/i18n/default-content.d.ts +0 -30
  1368. package/lib/services/i18n/i18n.service.d.ts +0 -128
  1369. package/lib/services/i18n/index.d.ts +0 -6
  1370. package/lib/services/i18n/input-i18n.helper.d.ts +0 -70
  1371. package/lib/services/i18n/translate.pipe.d.ts +0 -36
  1372. package/lib/services/i18n/types.d.ts +0 -93
  1373. package/lib/services/icons.service.d.ts +0 -9
  1374. package/lib/services/image/image.service.d.ts +0 -76
  1375. package/lib/services/image/types.d.ts +0 -74
  1376. package/lib/services/in-app-browser.service.d.ts +0 -16
  1377. package/lib/services/legal-link/legal-link.service.d.ts +0 -73
  1378. package/lib/services/link-processor.service.d.ts +0 -104
  1379. package/lib/services/local-storage.service.d.ts +0 -27
  1380. package/lib/services/locale.service.d.ts +0 -52
  1381. package/lib/services/markdown-article/legal-content.service.d.ts +0 -73
  1382. package/lib/services/markdown-article/markdown-article-parser.d.ts +0 -38
  1383. package/lib/services/markdown-article/markdown-article-parser.service.d.ts +0 -12
  1384. package/lib/services/meta/meta.service.d.ts +0 -23
  1385. package/lib/services/meta/types.d.ts +0 -12
  1386. package/lib/services/modal/modal.service.d.ts +0 -100
  1387. package/lib/services/modal/simple-modal-content.component.d.ts +0 -19
  1388. package/lib/services/modal/types.d.ts +0 -155
  1389. package/lib/services/navigation/navigation.service.d.ts +0 -134
  1390. package/lib/services/navigation/types.d.ts +0 -67
  1391. package/lib/services/pagination/index.d.ts +0 -2
  1392. package/lib/services/pagination/pagination.service.d.ts +0 -43
  1393. package/lib/services/pagination/types.d.ts +0 -113
  1394. package/lib/services/preferences/preferences.service.d.ts +0 -51
  1395. package/lib/services/preferences/preferences.types.d.ts +0 -35
  1396. package/lib/services/presets/config.d.ts +0 -32
  1397. package/lib/services/presets/index.d.ts +0 -3
  1398. package/lib/services/presets/preset.service.d.ts +0 -69
  1399. package/lib/services/presets/types.d.ts +0 -39
  1400. package/lib/services/qr-generator/qr-generator.service.d.ts +0 -115
  1401. package/lib/services/qr-generator/types.d.ts +0 -141
  1402. package/lib/services/skeleton/config.d.ts +0 -30
  1403. package/lib/services/skeleton/directives/loading.directive.d.ts +0 -71
  1404. package/lib/services/skeleton/index.d.ts +0 -10
  1405. package/lib/services/skeleton/skeleton.service.d.ts +0 -127
  1406. package/lib/services/skeleton/templates/detail-skeleton.component.d.ts +0 -18
  1407. package/lib/services/skeleton/templates/form-skeleton.component.d.ts +0 -22
  1408. package/lib/services/skeleton/templates/grid-skeleton.component.d.ts +0 -18
  1409. package/lib/services/skeleton/templates/list-skeleton.component.d.ts +0 -17
  1410. package/lib/services/skeleton/templates/profile-skeleton.component.d.ts +0 -20
  1411. package/lib/services/skeleton/templates/table-skeleton.component.d.ts +0 -17
  1412. package/lib/services/skeleton/types.d.ts +0 -111
  1413. package/lib/services/theme.service.d.ts +0 -76
  1414. package/lib/services/toast.service.d.ts +0 -22
  1415. package/lib/services/types.d.ts +0 -1
  1416. package/lib/shared/constants/storage.d.ts +0 -2
  1417. package/lib/shared/pipes/process-links.pipe.d.ts +0 -55
  1418. package/lib/shared/utils/datetime.d.ts +0 -21
  1419. package/lib/shared/utils/dom.d.ts +0 -13
  1420. package/lib/shared/utils/form-defaults.d.ts +0 -30
  1421. package/lib/shared/utils/styles.d.ts +0 -13
  1422. package/lib/shared/utils/text.d.ts +0 -11
  1423. package/lib/version.d.ts +0 -5
  1424. package/public-api.d.ts +0 -307
  1425. /package/{lib/components/molecules/image-crop/index.d.ts → src/lib/components/molecules/image-crop/index.ts} +0 -0
  1426. /package/{lib/config/index.d.ts → src/lib/config/index.ts} +0 -0
  1427. /package/{lib/services/image/index.d.ts → src/lib/services/image/index.ts} +0 -0
  1428. /package/{lib/services/meta/index.d.ts → src/lib/services/meta/index.ts} +0 -0
  1429. /package/{lib/services/navigation/index.d.ts → src/lib/services/navigation/index.ts} +0 -0
  1430. /package/{lib/services/preferences/index.d.ts → src/lib/services/preferences/index.ts} +0 -0
@@ -1,650 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL3NlcnZpY2VzL2ZpcmViYXNlL21lc3NhZ2luZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFvQixXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDcEQsT0FBTyxFQUFhLFFBQVEsRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDdEYsT0FBTyxFQUFFLFdBQVcsSUFBS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c2U7XG4gICAgfVxuXG4gICAgaWYgKCEoJ3NlcnZpY2VXb3JrZXInIGluIG5hdmlnYXRvcikpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICAvLyBWZXJpZmljYXIgcXVlIG1lc3NhZ2luZyBlc3TDqSBkaXNwb25pYmxlIChhc3luYyDigJQgZXNwZXJhIEFQUF9JTklUSUFMSVpFUilcbiAgICBpZiAoIShhd2FpdCB0aGlzLmdldE1lc3NhZ2luZ0luc3RhbmNlKCkpKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRydWU7XG4gIH1cblxuICAvLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbiAgLy8gUEVSTUlTT1MgWSBUT0tFTlxuICAvLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuICAvKipcbiAgICogU29saWNpdGEgcGVybWlzbyBkZSBub3RpZmljYWNpb25lcyB5IG9idGllbmUgZWwgdG9rZW4gRkNNLlxuICAgKlxuICAgKiBAcmV0dXJucyBUb2tlbiBGQ00gc2kgc2Ugb3RvcmfDsyBwZXJtaXNvLCBudWxsIHNpIHNlIGRlbmVnw7NcbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBjb25zdCB0b2tlbiA9IGF3YWl0IG1lc3NhZ2luZy5yZXF1ZXN0UGVybWlzc2lvbigpO1xuICAgKiBpZiAodG9rZW4pIHtcbiAgICogICBjb25zb2xlLmxvZygnVG9rZW4gRkNNOicsIHRva2VuKTtcbiAgICogICAvLyBFbnZpYXIgYSBiYWNrZW5kXG4gICAqIH0gZWxzZSB7XG4gICAqICAgY29uc29sZS5sb2coJ1Blcm1pc28gZGVuZWdhZG8gbyBubyBzb3B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bnN1YnNjcmliZU9uTWVzc2FnZSkge1xuICAgICAgICB0aGlzLnVuc3Vic2NyaWJlT25NZXNzYWdlKCk7XG4gICAgICAgIHRoaXMudW5zdWJzY3JpYmVPbk1lc3NhZ2UgPSB1bmRlZmluZWQ7XG4gICAgICB9XG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgIGNvbnNvbGUuZXJyb3IoJ0Vycm9yIGVsaW1pbmFuZG8gdG9rZW4gRkNNOicsIGVycm9yKTtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTm8gc2UgcHVkbyBlbGltaW5hciBlbCB0b2tlbiBkZSBub3RpZmljYWNpb25lcycpO1xuICAgIH1cbiAgfVxuXG4gIC8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuICAvLyBNRU5TQUpFU1xuICAvLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuICAvKipcbiAgICogT2JzZXJ2YWJsZSBkZSBtZW5zYWplcyByZWNpYmlkb3MgZW4gZm9yZWdyb3VuZC5cbiAgICpcbiAgICogSU1QT1JUQU5URTogTG9zIG1lbnNhamVzIGVuIGJhY2tncm91bmQgc29uIG1hbmVqYWRvcyBwb3IgZWwgU2VydmljZSBXb3JrZXIuXG4gICAqXG4gICAqIEByZXR1cm5zIE9ic2VydmFibGUgcXVlIGVtaXRlIGN1YW5kbyBsbGVnYSB1biBtZW5zYWplIGVuIGZvcmVncm91bmRcbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBtZXNzYWdpbmcub25NZXNzYWdlKCkuc3Vic2NyaWJlKHBheWxvYWQgPT4ge1xuICAgKiAgIGNvbnNvbGUubG9nKCdNZW5zYWplIHJlY2liaWRvOicsIHBheWxvYWQpO1xuICAgKiAgIC8vIE1vc3R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gNTApKSk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgY29uc29sZS53YXJuKCdbTWVzc2FnaW5nXSBEZWJ1ZyBwZXJzaXN0ZW5jZSBmYWlsZWQ6JywgZSk7XG4gICAgfVxuICB9XG5cbiAgLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4gIC8vIEVTVEFETyBZIFVUSUxJREFERVNcbiAgLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbiAgLyoqXG4gICAqIE9idGllbmUgZWwgZXN0YWRvIGFjdHVhbCBkZWwgcGVybWlzbyBkZSBub3RpZmljYWNpb25lcy5cbiAgICpcbiAgICogQHJldHVybnMgJ2dyYW50ZWQnIHwgJ2RlbmllZCcgfCAnZGVmYXVsdCdcbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBjb25zdCBwZXJtaXNzaW9uID0gbWVzc2FnaW5nLmdldFBlcm1pc3Npb25TdGF0ZSgpO1xuICAgKiBpZiAocGVybWlzc2lvbiA9PT0gJ2dyYW50ZWQnKSB7XG4gICAqICAgLy8gWWEgdGllbmUgcGVybWlzb1xuICAgKiB9IGVsc2UgaWYgKHBlcm1pc3Npb24gPT09ICdkZWZhdWx0Jykge1xuICAgKiAgIC8vIFB1ZWRlIHNvbGljaXRhciBwZXJtaXNvXG4gICAqIH0gZWxzZSB7XG4gICAqICAgLy8gRGVuZWdhZG8sIGRlYmUgaGFiaWxpdGFyIG1hbnVhbG1lbnRlXG4gICAqIH1cbiAgICogYGBgXG4gICAqL1xuICBnZXRQZXJtaXNzaW9uU3RhdGUoKTogTm90aWZpY2F0aW9uUGVybWlzc2lvbiB7XG4gICAgaWYgKCFpc1BsYXRmb3JtQnJvd3Nlcih0aGlzLnBsYXRmb3JtSWQ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