valtech-components 2.0.688 → 2.0.689
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.
- package/.editorconfig +16 -0
- package/.prettierignore +6 -0
- package/.prettierrc +30 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/preview-body.html +60 -0
- package/.storybook/preview-head.html +48 -0
- package/.storybook/preview.ts +52 -0
- package/.storybook/tsconfig.json +12 -0
- package/I18N-COMPONENTS-MIGRATION.md +496 -0
- package/angular.json +60 -0
- package/ng-package.json +16 -0
- package/package.json +64 -16
- package/scripts/publish.sh +30 -0
- package/scripts/update-apps.sh +94 -0
- package/src/lib/components/atoms/avatar/avatar.component.scss +31 -0
- package/src/lib/components/atoms/avatar/avatar.component.ts +95 -0
- package/src/lib/components/atoms/avatar/avatar.stories.ts +243 -0
- package/src/lib/components/atoms/avatar/types.ts +15 -0
- package/src/lib/components/atoms/box/box.component.scss +57 -0
- package/src/lib/components/atoms/box/box.component.ts +77 -0
- package/src/lib/components/atoms/box/box.stories.ts +280 -0
- package/src/lib/components/atoms/box/types.ts +20 -0
- package/src/lib/components/atoms/button/button.component.scss +20 -0
- package/src/lib/components/atoms/button/button.component.ts +174 -0
- package/src/lib/components/atoms/button/button.stories.ts +293 -0
- package/src/lib/components/atoms/button/factory.ts +444 -0
- package/src/lib/components/atoms/countdown/countdown.component.scss +256 -0
- package/src/lib/components/atoms/countdown/countdown.component.ts +293 -0
- package/src/lib/components/atoms/countdown/countdown.stories.ts +316 -0
- package/src/lib/components/atoms/countdown/types.ts +144 -0
- package/src/lib/components/atoms/display/display.component.scss +17 -0
- package/src/lib/components/atoms/display/display.component.ts +54 -0
- package/src/lib/components/atoms/display/display.stories.ts +185 -0
- package/src/lib/components/atoms/display/types.ts +35 -0
- package/src/lib/components/atoms/divider/divider.component.scss +62 -0
- package/src/lib/components/atoms/divider/divider.component.ts +35 -0
- package/src/lib/components/atoms/divider/divider.stories.ts +202 -0
- package/src/lib/components/atoms/divider/types.ts +12 -0
- package/src/lib/components/atoms/fab/fab.component.scss +26 -0
- package/src/lib/components/atoms/fab/fab.component.ts +166 -0
- package/src/lib/components/atoms/fab/fab.stories.ts +360 -0
- package/src/lib/components/atoms/fab/types.ts +47 -0
- package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.scss +39 -0
- package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.ts +67 -0
- package/src/lib/components/atoms/horizontal-scroll/horizontal-scroll.stories.ts +351 -0
- package/src/lib/components/atoms/horizontal-scroll/types.ts +13 -0
- package/src/lib/components/atoms/href/href.component.scss +25 -0
- package/src/lib/components/atoms/href/href.component.ts +64 -0
- package/src/lib/components/atoms/href/href.stories.ts +214 -0
- package/src/lib/components/atoms/href/types.ts +20 -0
- package/src/lib/components/atoms/icon/icon.component.scss +33 -0
- package/src/lib/components/atoms/icon/icon.component.ts +38 -0
- package/src/lib/components/atoms/icon/icon.stories.ts +160 -0
- package/src/lib/components/atoms/icon/types.ts +14 -0
- package/src/lib/components/atoms/image/README.md +0 -0
- package/src/lib/components/atoms/image/image.component.scss +281 -0
- package/src/lib/components/atoms/image/image.component.ts +399 -0
- package/src/lib/components/atoms/image/image.stories.ts +317 -0
- package/src/lib/components/atoms/image/types.ts +37 -0
- package/src/lib/components/atoms/price-tag/price-tag.component.scss +228 -0
- package/src/lib/components/atoms/price-tag/price-tag.component.ts +188 -0
- package/src/lib/components/atoms/price-tag/price-tag.stories.ts +315 -0
- package/src/lib/components/atoms/price-tag/types.ts +78 -0
- package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +22 -0
- package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +88 -0
- package/src/lib/components/atoms/progress-bar/progress-bar.stories.ts +375 -0
- package/src/lib/components/atoms/progress-bar/types.ts +20 -0
- package/src/lib/components/atoms/progress-ring/progress-ring.component.scss +35 -0
- package/src/lib/components/atoms/progress-ring/progress-ring.component.ts +114 -0
- package/src/lib/components/atoms/progress-ring/progress-ring.stories.ts +323 -0
- package/src/lib/components/atoms/progress-ring/types.ts +25 -0
- package/src/lib/components/atoms/qr-code/qr-code.component.scss +353 -0
- package/src/lib/components/atoms/qr-code/qr-code.component.ts +313 -0
- package/src/lib/components/atoms/qr-code/qr-code.stories.ts +767 -0
- package/src/lib/components/atoms/qr-code/types.ts +173 -0
- package/src/lib/components/atoms/rights-footer/rights-footer.component.scss +20 -0
- package/src/lib/components/atoms/rights-footer/rights-footer.component.ts +98 -0
- package/src/lib/components/atoms/rights-footer/rights-footer.stories.ts +229 -0
- package/src/lib/components/atoms/rights-footer/types.ts +21 -0
- package/src/lib/components/atoms/skeleton/skeleton.component.scss +58 -0
- package/src/lib/components/atoms/skeleton/skeleton.component.ts +129 -0
- package/src/lib/components/atoms/skeleton/skeleton.stories.ts +242 -0
- package/src/lib/components/atoms/skeleton/types.ts +39 -0
- package/src/lib/components/atoms/text/text.component.scss +38 -0
- package/src/lib/components/atoms/text/text.component.ts +123 -0
- package/src/lib/components/atoms/text/text.stories.ts +174 -0
- package/src/lib/components/atoms/text/types.ts +50 -0
- package/src/lib/components/atoms/title/title.component.scss +33 -0
- package/src/lib/components/atoms/title/title.component.ts +65 -0
- package/src/lib/components/atoms/title/title.stories.ts +167 -0
- package/src/lib/components/atoms/title/types.ts +46 -0
- package/src/lib/components/molecules/accordion/accordion.component.scss +34 -0
- package/src/lib/components/molecules/accordion/accordion.component.ts +103 -0
- package/src/lib/components/molecules/accordion/accordion.stories.ts +236 -0
- package/src/lib/components/molecules/accordion/types.ts +49 -0
- package/src/lib/components/molecules/action-card/action-card.component.scss +226 -0
- package/src/lib/components/molecules/action-card/action-card.component.ts +246 -0
- package/src/lib/components/molecules/action-card/action-card.stories.ts +396 -0
- package/src/lib/components/molecules/action-card/types.ts +102 -0
- package/src/lib/components/molecules/action-header/action-header.component.ts +28 -0
- package/src/lib/components/molecules/action-header/action-header.stories.ts +481 -0
- package/src/lib/components/molecules/action-header/types.ts +7 -0
- package/src/lib/components/molecules/ad-slot/ad-slot.component.ts +352 -0
- package/src/lib/components/molecules/alert-box/alert-box.component.scss +10 -0
- package/src/lib/components/molecules/alert-box/alert-box.component.ts +125 -0
- package/src/lib/components/molecules/alert-box/alert-box.stories.ts +248 -0
- package/src/lib/components/molecules/alert-box/types.ts +39 -0
- package/src/lib/components/molecules/breadcrumb/breadcrumb.component.scss +34 -0
- package/src/lib/components/molecules/breadcrumb/breadcrumb.component.ts +109 -0
- package/src/lib/components/molecules/breadcrumb/breadcrumb.stories.ts +271 -0
- package/src/lib/components/molecules/breadcrumb/types.ts +47 -0
- package/src/lib/components/molecules/button-group/button-group.component.scss +41 -0
- package/src/lib/components/molecules/button-group/button-group.component.ts +65 -0
- package/src/lib/components/molecules/button-group/button-group.stories.ts +296 -0
- package/src/lib/components/molecules/button-group/types.ts +14 -0
- package/src/lib/components/molecules/card/card.component.scss +62 -0
- package/src/lib/components/molecules/card/card.component.ts +300 -0
- package/src/lib/components/molecules/card/card.stories.ts +360 -0
- package/src/lib/components/molecules/card/types.ts +36 -0
- package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
- package/src/lib/components/molecules/check-input/check-input.component.ts +88 -0
- package/src/lib/components/molecules/check-input/check-input.stories.ts +54 -0
- package/src/lib/components/molecules/chip-group/chip-group.component.scss +70 -0
- package/src/lib/components/molecules/chip-group/chip-group.component.ts +150 -0
- package/src/lib/components/molecules/chip-group/chip-group.stories.ts +307 -0
- package/src/lib/components/molecules/chip-group/types.ts +69 -0
- package/src/lib/components/molecules/code-display/code-display.component.scss +239 -0
- package/src/lib/components/molecules/code-display/code-display.component.ts +109 -0
- package/src/lib/components/molecules/code-display/code-display.stories.ts +402 -0
- package/src/lib/components/molecules/code-display/types.ts +11 -0
- package/src/lib/components/molecules/command-display/command-display.component.scss +38 -0
- package/src/lib/components/molecules/command-display/command-display.component.ts +45 -0
- package/src/lib/components/molecules/command-display/command-display.stories.ts +110 -0
- package/src/lib/components/molecules/command-display/types.ts +3 -0
- package/src/lib/components/molecules/comment/comment.component.scss +339 -0
- package/src/lib/components/molecules/comment/comment.component.ts +496 -0
- package/src/lib/components/molecules/comment/comment.stories.ts +384 -0
- package/src/lib/components/molecules/comment/types.ts +181 -0
- package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
- package/src/lib/components/molecules/comment-input/comment-input.component.ts +42 -0
- package/src/lib/components/molecules/comment-input/comment-input.stories.ts +124 -0
- package/src/lib/components/molecules/comment-input/types.ts +69 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.scss +42 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.ts +45 -0
- package/src/lib/components/molecules/content-loader/content-loader.stories.ts +370 -0
- package/src/lib/components/molecules/content-loader/types.ts +16 -0
- package/src/lib/components/molecules/content-reaction/content-reaction.component.html +81 -0
- package/src/lib/components/molecules/content-reaction/content-reaction.component.scss +157 -0
- package/src/lib/components/molecules/content-reaction/content-reaction.component.ts +273 -0
- package/src/lib/components/molecules/content-reaction/content-reaction.stories.ts +453 -0
- package/src/lib/components/molecules/content-reaction/types.ts +99 -0
- package/src/lib/components/molecules/currency-input/currency-input.component.scss +101 -0
- package/src/lib/components/molecules/currency-input/currency-input.component.ts +327 -0
- package/src/lib/components/molecules/currency-input/currency-input.stories.ts +279 -0
- package/src/lib/components/molecules/currency-input/types.ts +125 -0
- package/src/lib/components/molecules/date-input/date-input.component.scss +11 -0
- package/src/lib/components/molecules/date-input/date-input.component.ts +136 -0
- package/src/lib/components/molecules/date-input/date-input.stories.ts +205 -0
- package/src/lib/components/molecules/date-input/types.ts +84 -0
- package/src/lib/components/molecules/date-range-input/date-range-input.component.scss +119 -0
- package/src/lib/components/molecules/date-range-input/date-range-input.component.ts +364 -0
- package/src/lib/components/molecules/date-range-input/date-range-input.stories.ts +288 -0
- package/src/lib/components/molecules/date-range-input/types.ts +122 -0
- package/src/lib/components/molecules/docs-api-table/docs-api-table.component.scss +278 -0
- package/src/lib/components/molecules/docs-api-table/docs-api-table.component.ts +138 -0
- package/src/lib/components/molecules/docs-api-table/types.ts +81 -0
- package/src/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.ts +161 -0
- package/src/lib/components/molecules/docs-breadcrumb/types.ts +21 -0
- package/src/lib/components/molecules/docs-callout/docs-callout.component.scss +136 -0
- package/src/lib/components/molecules/docs-callout/docs-callout.component.ts +55 -0
- package/src/lib/components/molecules/docs-code-example/docs-code-example.component.ts +535 -0
- package/src/lib/components/molecules/docs-code-example/types.ts +75 -0
- package/src/lib/components/molecules/docs-nav-links/docs-nav-links.component.ts +216 -0
- package/src/lib/components/molecules/docs-nav-links/types.ts +36 -0
- package/src/lib/components/molecules/docs-search/docs-search.component.scss +195 -0
- package/src/lib/components/molecules/docs-search/docs-search.component.ts +228 -0
- package/src/lib/components/molecules/docs-search/types.ts +30 -0
- package/src/lib/components/molecules/docs-section/docs-section.component.ts +99 -0
- package/src/lib/components/molecules/docs-section/types.ts +31 -0
- package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
- package/src/lib/components/molecules/email-input/email-input.component.ts +77 -0
- package/src/lib/components/molecules/email-input/email-input.stories.ts +176 -0
- package/src/lib/components/molecules/expandable-text/expandable-text.component.ts +111 -0
- package/src/lib/components/molecules/expandable-text/expandable-text.stories.ts +287 -0
- package/src/lib/components/molecules/expandable-text/types.ts +14 -0
- package/src/lib/components/molecules/features-list/features-list.component.ts +251 -0
- package/src/lib/components/molecules/features-list/types.ts +44 -0
- package/src/lib/components/molecules/feedback-form/feedback-form.component.ts +355 -0
- package/src/lib/components/molecules/feedback-form/types.ts +77 -0
- package/src/lib/components/molecules/file-input/file-input.component.scss +11 -0
- package/src/lib/components/molecules/file-input/file-input.component.ts +87 -0
- package/src/lib/components/molecules/file-input/file-input.stories.ts +107 -0
- package/src/lib/components/molecules/file-input/types.ts +85 -0
- package/src/lib/components/molecules/footer-links/footer-links.component.scss +130 -0
- package/src/lib/components/molecules/footer-links/footer-links.component.ts +244 -0
- package/src/lib/components/molecules/footer-links/footer-links.stories.ts +188 -0
- package/src/lib/components/molecules/footer-links/types.ts +52 -0
- package/src/lib/components/molecules/glow-card/glow-card.component.scss +295 -0
- package/src/lib/components/molecules/glow-card/glow-card.component.ts +284 -0
- package/src/lib/components/molecules/glow-card/glow-card.stories.ts +680 -0
- package/src/lib/components/molecules/glow-card/types.ts +117 -0
- package/src/lib/components/molecules/hint/hint.component.scss +5 -0
- package/src/lib/components/molecules/hint/hint.component.ts +89 -0
- package/src/lib/components/molecules/hint/hint.stories.ts +233 -0
- package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
- package/src/lib/components/molecules/hour-input/hour-input.component.ts +34 -0
- package/src/lib/components/molecules/hour-input/hour-input.stories.ts +145 -0
- package/src/lib/components/molecules/image-crop/image-crop.component.ts +195 -0
- package/src/lib/components/molecules/info/info.component.ts +35 -0
- package/src/lib/components/molecules/info/info.stories.ts +276 -0
- package/src/lib/components/molecules/info/types.ts +11 -0
- package/src/lib/components/molecules/language-selector/language-selector.component.scss +128 -0
- package/src/lib/components/molecules/language-selector/language-selector.component.ts +204 -0
- package/src/lib/components/molecules/language-selector/language-selector.stories.ts +261 -0
- package/src/lib/components/molecules/language-selector/types.ts +84 -0
- package/src/lib/components/molecules/layered-card/layered-card.component.scss +84 -0
- package/src/lib/components/molecules/layered-card/layered-card.component.ts +66 -0
- package/src/lib/components/molecules/layered-card/layered-card.stories.ts +313 -0
- package/src/lib/components/molecules/layered-card/types.ts +16 -0
- package/src/lib/components/molecules/link/link.component.scss +11 -0
- package/src/lib/components/molecules/link/link.component.ts +73 -0
- package/src/lib/components/molecules/link/link.stories.ts +307 -0
- package/src/lib/components/molecules/link/types.ts +20 -0
- package/src/lib/components/molecules/linked-providers/index.ts +2 -0
- package/src/lib/components/molecules/linked-providers/linked-providers.component.ts +289 -0
- package/src/lib/components/molecules/linked-providers/types.ts +63 -0
- package/src/lib/components/molecules/links-accordion/links-accordion.component.scss +17 -0
- package/src/lib/components/molecules/links-accordion/links-accordion.component.ts +152 -0
- package/src/lib/components/molecules/links-accordion/links-accordion.stories.ts +209 -0
- package/src/lib/components/molecules/links-accordion/types.ts +41 -0
- package/src/lib/components/molecules/links-cake/links-cake.component.scss +9 -0
- package/src/lib/components/molecules/links-cake/links-cake.component.ts +49 -0
- package/src/lib/components/molecules/links-cake/links-cake.stories.ts +160 -0
- package/src/lib/components/molecules/links-cake/types.ts +14 -0
- package/src/lib/components/molecules/multi-select-search/multi-select-search.component.scss +168 -0
- package/src/lib/components/molecules/multi-select-search/multi-select-search.component.ts +471 -0
- package/src/lib/components/molecules/multi-select-search/multi-select-search.stories.ts +188 -0
- package/src/lib/components/molecules/notes-box/notes-box.component.scss +5 -0
- package/src/lib/components/molecules/notes-box/notes-box.component.ts +62 -0
- package/src/lib/components/molecules/notes-box/notes-box.stories.ts +308 -0
- package/src/lib/components/molecules/notes-box/types.ts +22 -0
- package/src/lib/components/molecules/number-from-to/number-from-to.component.scss +10 -0
- package/src/lib/components/molecules/number-from-to/number-from-to.component.ts +134 -0
- package/src/lib/components/molecules/number-from-to/number-from-to.stories.ts +203 -0
- package/src/lib/components/molecules/number-from-to/types.ts +91 -0
- package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
- package/src/lib/components/molecules/number-input/number-input.component.ts +41 -0
- package/src/lib/components/molecules/number-input/number-input.stories.ts +151 -0
- package/src/lib/components/molecules/number-stepper/number-stepper.component.scss +252 -0
- package/src/lib/components/molecules/number-stepper/number-stepper.component.ts +302 -0
- package/src/lib/components/molecules/number-stepper/number-stepper.stories.ts +417 -0
- package/src/lib/components/molecules/number-stepper/types.ts +101 -0
- package/src/lib/components/molecules/pagination/pagination.component.scss +50 -0
- package/src/lib/components/molecules/pagination/pagination.component.ts +194 -0
- package/src/lib/components/molecules/pagination/pagination.stories.ts +260 -0
- package/src/lib/components/molecules/pagination/types.ts +43 -0
- package/src/lib/components/molecules/participant-card/participant-card.component.scss +371 -0
- package/src/lib/components/molecules/participant-card/participant-card.component.ts +402 -0
- package/src/lib/components/molecules/participant-card/participant-card.stories.ts +479 -0
- package/src/lib/components/molecules/participant-card/types.ts +170 -0
- package/src/lib/components/molecules/password-input/password-input.component.scss +7 -0
- package/src/lib/components/molecules/password-input/password-input.component.ts +93 -0
- package/src/lib/components/molecules/password-input/password-input.stories.ts +187 -0
- package/src/lib/components/molecules/phone-input/phone-input.component.scss +157 -0
- package/src/lib/components/molecules/phone-input/phone-input.component.ts +354 -0
- package/src/lib/components/molecules/phone-input/phone-input.stories.ts +229 -0
- package/src/lib/components/molecules/phone-input/types.ts +126 -0
- package/src/lib/components/molecules/pill/pill.component.scss +35 -0
- package/src/lib/components/molecules/pill/pill.component.ts +89 -0
- package/src/lib/components/molecules/pill/pill.stories.ts +219 -0
- package/src/lib/components/molecules/pill/types.ts +10 -0
- package/src/lib/components/molecules/pin-input/pin-input.component.scss +22 -0
- package/src/lib/components/molecules/pin-input/pin-input.component.ts +83 -0
- package/src/lib/components/molecules/pin-input/pin-input.stories.ts +196 -0
- package/src/lib/components/molecules/pin-input/types.ts +80 -0
- package/src/lib/components/molecules/plain-code-box/plain-code-box.component.scss +191 -0
- package/src/lib/components/molecules/plain-code-box/plain-code-box.component.ts +86 -0
- package/src/lib/components/molecules/plain-code-box/plain-code-box.stories.ts +174 -0
- package/src/lib/components/molecules/plain-code-box/types.ts +12 -0
- package/src/lib/components/molecules/popover-selector/popover-selector.component.scss +220 -0
- package/src/lib/components/molecules/popover-selector/popover-selector.component.ts +163 -0
- package/src/lib/components/molecules/popover-selector/popover-selector.stories.ts +324 -0
- package/src/lib/components/molecules/popover-selector/types.ts +71 -0
- package/src/lib/components/molecules/progress-status/progress-status.component.scss +41 -0
- package/src/lib/components/molecules/progress-status/progress-status.component.ts +90 -0
- package/src/lib/components/molecules/progress-status/progress-status.stories.ts +415 -0
- package/src/lib/components/molecules/progress-status/types.ts +21 -0
- package/src/lib/components/molecules/prompter/prompter.component.scss +45 -0
- package/src/lib/components/molecules/prompter/prompter.component.ts +55 -0
- package/src/lib/components/molecules/prompter/prompter.stories.ts +193 -0
- package/src/lib/components/molecules/prompter/types.ts +26 -0
- package/src/lib/components/molecules/quote-box/quote-box.component.scss +253 -0
- package/src/lib/components/molecules/quote-box/quote-box.component.ts +104 -0
- package/src/lib/components/molecules/quote-box/quote-box.stories.ts +264 -0
- package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
- package/src/lib/components/molecules/radio-input/radio-input.component.ts +51 -0
- package/src/lib/components/molecules/radio-input/radio-input.stories.ts +197 -0
- package/src/lib/components/molecules/raffle-status-card/raffle-status-card.component.scss +418 -0
- package/src/lib/components/molecules/raffle-status-card/raffle-status-card.component.ts +320 -0
- package/src/lib/components/molecules/raffle-status-card/raffle-status-card.stories.ts +509 -0
- package/src/lib/components/molecules/raffle-status-card/types.ts +150 -0
- package/src/lib/components/molecules/range-input/range-input.component.scss +15 -0
- package/src/lib/components/molecules/range-input/range-input.component.ts +106 -0
- package/src/lib/components/molecules/range-input/range-input.stories.ts +331 -0
- package/src/lib/components/molecules/range-input/types.ts +61 -0
- package/src/lib/components/molecules/rating/rating.component.scss +60 -0
- package/src/lib/components/molecules/rating/rating.component.ts +154 -0
- package/src/lib/components/molecules/rating/rating.stories.ts +332 -0
- package/src/lib/components/molecules/rating/types.ts +43 -0
- package/src/lib/components/molecules/recap-card/recap-card.component.scss +35 -0
- package/src/lib/components/molecules/recap-card/recap-card.component.ts +64 -0
- package/src/lib/components/molecules/recap-card/recap-card.stories.ts +174 -0
- package/src/lib/components/molecules/recap-card/types.ts +30 -0
- package/src/lib/components/molecules/refresher/refresher.component.ts +257 -0
- package/src/lib/components/molecules/refresher/types.ts +103 -0
- package/src/lib/components/molecules/searchbar/searchbar.component.scss +9 -0
- package/src/lib/components/molecules/searchbar/searchbar.component.ts +122 -0
- package/src/lib/components/molecules/searchbar/searchbar.stories.ts +192 -0
- package/src/lib/components/molecules/searchbar/types.ts +38 -0
- package/src/lib/components/molecules/segment-control/segment-control.component.scss +27 -0
- package/src/lib/components/molecules/segment-control/segment-control.component.ts +121 -0
- package/src/lib/components/molecules/segment-control/segment-control.stories.ts +296 -0
- package/src/lib/components/molecules/segment-control/types.ts +48 -0
- package/src/lib/components/molecules/select-input/select-input.component.scss +0 -0
- package/src/lib/components/molecules/select-input/select-input.component.ts +133 -0
- package/src/lib/components/molecules/select-input/select-input.stories.ts +330 -0
- package/src/lib/components/molecules/select-search/select-search.component.ts +420 -0
- package/src/lib/components/molecules/select-search/select-search.stories.ts +218 -0
- package/src/lib/components/molecules/share-buttons/share-buttons.component.scss +195 -0
- package/src/lib/components/molecules/share-buttons/share-buttons.component.ts +269 -0
- package/src/lib/components/molecules/share-buttons/share-buttons.stories.ts +343 -0
- package/src/lib/components/molecules/share-buttons/types.ts +211 -0
- package/src/lib/components/molecules/stats-card/stats-card.component.scss +198 -0
- package/src/lib/components/molecules/stats-card/stats-card.component.ts +157 -0
- package/src/lib/components/molecules/stats-card/stats-card.stories.ts +481 -0
- package/src/lib/components/molecules/stats-card/types.ts +63 -0
- package/src/lib/components/molecules/stepper/stepper.component.scss +156 -0
- package/src/lib/components/molecules/stepper/stepper.component.ts +201 -0
- package/src/lib/components/molecules/stepper/stepper.stories.ts +308 -0
- package/src/lib/components/molecules/stepper/types.ts +70 -0
- package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.scss +164 -0
- package/src/lib/components/molecules/swipe-carousel/swipe-carousel.component.ts +215 -0
- package/src/lib/components/molecules/swipe-carousel/swipe-carousel.stories.ts +406 -0
- package/src/lib/components/molecules/swipe-carousel/types.ts +32 -0
- package/src/lib/components/molecules/tabs/tabs.component.scss +35 -0
- package/src/lib/components/molecules/tabs/tabs.component.ts +125 -0
- package/src/lib/components/molecules/tabs/tabs.stories.ts +283 -0
- package/src/lib/components/molecules/tabs/types.ts +47 -0
- package/src/lib/components/molecules/testimonial-card/testimonial-card.component.scss +25 -0
- package/src/lib/components/molecules/testimonial-card/testimonial-card.component.ts +121 -0
- package/src/lib/components/molecules/testimonial-card/testimonial-card.stories.ts +130 -0
- package/src/lib/components/molecules/testimonial-card/types.ts +26 -0
- package/src/lib/components/molecules/text-input/text-input.component.scss +1 -0
- package/src/lib/components/molecules/text-input/text-input.component.ts +86 -0
- package/src/lib/components/molecules/text-input/text-input.stories.ts +301 -0
- package/src/lib/components/molecules/textarea-input/textarea-input.component.scss +62 -0
- package/src/lib/components/molecules/textarea-input/textarea-input.component.ts +195 -0
- package/src/lib/components/molecules/textarea-input/textarea-input.stories.ts +329 -0
- package/src/lib/components/molecules/textarea-input/types.ts +83 -0
- package/src/lib/components/molecules/ticket-grid/ticket-grid.component.scss +270 -0
- package/src/lib/components/molecules/ticket-grid/ticket-grid.component.ts +429 -0
- package/src/lib/components/molecules/ticket-grid/ticket-grid.stories.ts +436 -0
- package/src/lib/components/molecules/ticket-grid/types.ts +145 -0
- package/src/lib/components/molecules/timeline/timeline.component.scss +168 -0
- package/src/lib/components/molecules/timeline/timeline.component.ts +98 -0
- package/src/lib/components/molecules/timeline/timeline.stories.ts +259 -0
- package/src/lib/components/molecules/timeline/types.ts +41 -0
- package/src/lib/components/molecules/title-block/title-block.component.scss +48 -0
- package/src/lib/components/molecules/title-block/title-block.component.ts +72 -0
- package/src/lib/components/molecules/title-block/title-block.stories.ts +351 -0
- package/src/lib/components/molecules/title-block/types.ts +16 -0
- package/src/lib/components/molecules/toggle-input/toggle-input.component.scss +7 -0
- package/src/lib/components/molecules/toggle-input/toggle-input.component.ts +94 -0
- package/src/lib/components/molecules/toggle-input/toggle-input.stories.ts +240 -0
- package/src/lib/components/molecules/toggle-input/types.ts +31 -0
- package/src/lib/components/molecules/update-banner/index.ts +1 -0
- package/src/lib/components/molecules/update-banner/update-banner.component.ts +118 -0
- package/src/lib/components/molecules/username-input/index.ts +2 -0
- package/src/lib/components/molecules/username-input/types.ts +36 -0
- package/src/lib/components/molecules/username-input/username-input.component.ts +336 -0
- package/src/lib/components/molecules/winner-display/types.ts +129 -0
- package/src/lib/components/molecules/winner-display/winner-display.component.scss +501 -0
- package/src/lib/components/molecules/winner-display/winner-display.component.ts +284 -0
- package/src/lib/components/molecules/winner-display/winner-display.stories.ts +468 -0
- package/src/lib/components/organisms/article/README.md +569 -0
- package/src/lib/components/organisms/article/article.component.scss +433 -0
- package/src/lib/components/organisms/article/article.component.ts +469 -0
- package/src/lib/components/organisms/article/article.stories.ts +625 -0
- package/src/lib/components/organisms/article/types.ts +550 -0
- package/src/lib/components/organisms/avatar-upload/avatar-upload.component.scss +119 -0
- package/src/lib/components/organisms/avatar-upload/avatar-upload.component.ts +349 -0
- package/src/lib/components/organisms/avatar-upload/index.ts +2 -0
- package/src/lib/components/organisms/avatar-upload/types.ts +71 -0
- package/src/lib/components/organisms/banner/banner.component.scss +51 -0
- package/src/lib/components/organisms/banner/banner.component.ts +95 -0
- package/src/lib/components/organisms/banner/banner.stories.ts +462 -0
- package/src/lib/components/organisms/banner/types.ts +30 -0
- package/src/lib/components/organisms/bottom-nav/bottom-nav.component.scss +350 -0
- package/src/lib/components/organisms/bottom-nav/bottom-nav.component.ts +362 -0
- package/src/lib/components/organisms/bottom-nav/types.ts +139 -0
- package/src/lib/components/organisms/cards-carousel/cards-carousel.component.ts +53 -0
- package/src/lib/components/organisms/cards-carousel/cards-carousel.stories.ts +241 -0
- package/src/lib/components/organisms/cards-carousel/types.ts +12 -0
- package/src/lib/components/organisms/comment-section/comment-section.component.scss +269 -0
- package/src/lib/components/organisms/comment-section/comment-section.component.ts +429 -0
- package/src/lib/components/organisms/comment-section/comment-section.stories.ts +305 -0
- package/src/lib/components/organisms/comment-section/types.ts +169 -0
- package/src/lib/components/organisms/company-footer/company-footer.component.ts +73 -0
- package/src/lib/components/organisms/company-footer/company-footer.stories.ts +216 -0
- package/src/lib/components/organisms/company-footer/types.ts +16 -0
- package/src/lib/components/organisms/data-table/data-table.component.scss +907 -0
- package/src/lib/components/organisms/data-table/data-table.component.ts +821 -0
- package/src/lib/components/organisms/data-table/data-table.stories.ts +787 -0
- package/src/lib/components/organisms/data-table/types.ts +258 -0
- package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.scss +228 -0
- package/src/lib/components/organisms/docs-sidebar/docs-sidebar.component.ts +213 -0
- package/src/lib/components/organisms/docs-sidebar/types.ts +112 -0
- package/src/lib/components/organisms/docs-toc/docs-toc.component.scss +119 -0
- package/src/lib/components/organisms/docs-toc/docs-toc.component.ts +320 -0
- package/src/lib/components/organisms/docs-toc/types.ts +73 -0
- package/src/lib/components/organisms/footer/footer.component.scss +3 -0
- package/src/lib/components/organisms/footer/footer.component.ts +65 -0
- package/src/lib/components/organisms/footer/footer.stories.ts +278 -0
- package/src/lib/components/organisms/footer/types.ts +17 -0
- package/src/lib/components/organisms/form/factory.ts +46 -0
- package/src/lib/components/organisms/form/form-footer/form-footer.component.scss +0 -0
- package/src/lib/components/organisms/form/form-footer/form-footer.component.ts +72 -0
- package/src/lib/components/organisms/form/form.component.scss +24 -0
- package/src/lib/components/organisms/form/form.component.ts +367 -0
- package/src/lib/components/organisms/form/form.stories.ts +505 -0
- package/src/lib/components/organisms/fun-header/fun-header.component.scss +36 -0
- package/src/lib/components/organisms/fun-header/fun-header.component.ts +209 -0
- package/src/lib/components/organisms/fun-header/fun-header.stories.ts +272 -0
- package/src/lib/components/organisms/fun-header/types.ts +29 -0
- package/src/lib/components/organisms/header/header.component.scss +5 -0
- package/src/lib/components/organisms/header/header.component.ts +53 -0
- package/src/lib/components/organisms/header/header.stories.ts +293 -0
- package/src/lib/components/organisms/header/types.ts +17 -0
- package/src/lib/components/organisms/infinite-list/infinite-list.component.ts +602 -0
- package/src/lib/components/organisms/infinite-list/types.ts +235 -0
- package/src/lib/components/organisms/item-list/item-list.component.scss +53 -0
- package/src/lib/components/organisms/item-list/item-list.component.ts +269 -0
- package/src/lib/components/organisms/item-list/item-list.stories.ts +363 -0
- package/src/lib/components/organisms/item-list/types.ts +130 -0
- package/src/lib/components/organisms/login/login.component.html +244 -0
- package/src/lib/components/organisms/login/login.component.scss +118 -0
- package/src/lib/components/organisms/login/login.component.ts +866 -0
- package/src/lib/components/organisms/login/types.ts +89 -0
- package/src/lib/components/organisms/menu/menu.component.scss +23 -0
- package/src/lib/components/organisms/menu/menu.component.ts +152 -0
- package/src/lib/components/organisms/menu/menu.stories.ts +223 -0
- package/src/lib/components/organisms/menu/types.ts +24 -0
- package/src/lib/components/organisms/no-content/no-content.component.scss +11 -0
- package/src/lib/components/organisms/no-content/no-content.component.ts +68 -0
- package/src/lib/components/organisms/no-content/no-content.stories.ts +259 -0
- package/src/lib/components/organisms/no-content/types.ts +18 -0
- package/src/lib/components/organisms/rotating-text/rotating-text.component.ts +239 -0
- package/src/lib/components/organisms/rotating-text/types.ts +29 -0
- package/src/lib/components/organisms/tabbed-content/tabbed-content.component.scss +89 -0
- package/src/lib/components/organisms/tabbed-content/tabbed-content.component.ts +165 -0
- package/src/lib/components/organisms/tabbed-content/tabbed-content.stories.ts +326 -0
- package/src/lib/components/organisms/tabbed-content/types.ts +56 -0
- package/src/lib/components/organisms/terminal-404/terminal-404.component.ts +339 -0
- package/src/lib/components/organisms/terminal-404/types.ts +22 -0
- package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.ts +70 -0
- package/src/lib/components/organisms/testimonial-carousel/testimonial-carousel.stories.ts +173 -0
- package/src/lib/components/organisms/testimonial-carousel/types.ts +9 -0
- package/src/lib/components/organisms/toolbar/toolbar.component.scss +13 -0
- package/src/lib/components/organisms/toolbar/toolbar.component.ts +195 -0
- package/src/lib/components/organisms/toolbar/toolbar.stories.ts +263 -0
- package/src/lib/components/organisms/toolbar/types.ts +32 -0
- package/src/lib/components/organisms/wizard/types.ts +46 -0
- package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.scss +0 -0
- package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.ts +104 -0
- package/src/lib/components/organisms/wizard/wizard.component.scss +16 -0
- package/src/lib/components/organisms/wizard/wizard.component.ts +165 -0
- package/src/lib/components/organisms/wizard/wizard.stories.ts +653 -0
- package/src/lib/components/templates/auth-background/auth-background.component.ts +258 -0
- package/src/lib/components/templates/auth-background/types.ts +34 -0
- package/src/lib/components/templates/docs-layout/docs-layout.component.scss +218 -0
- package/src/lib/components/templates/docs-layout/docs-layout.component.ts +161 -0
- package/src/lib/components/templates/docs-layout/types.ts +45 -0
- package/src/lib/components/templates/docs-page/docs-page.component.ts +534 -0
- package/src/lib/components/templates/docs-page/types.ts +141 -0
- package/src/lib/components/templates/docs-shell/docs-shell.component.ts +494 -0
- package/src/lib/components/templates/docs-shell/types.ts +176 -0
- package/src/lib/components/templates/layout/layout.component.scss +25 -0
- package/src/lib/components/templates/layout/layout.component.ts +14 -0
- package/src/lib/components/templates/maintenance-page/index.ts +2 -0
- package/src/lib/components/templates/maintenance-page/maintenance-page.component.scss +44 -0
- package/src/lib/components/templates/maintenance-page/maintenance-page.component.ts +120 -0
- package/src/lib/components/templates/maintenance-page/types.ts +12 -0
- package/src/lib/components/templates/page-content/page-content.component.ts +188 -0
- package/src/lib/components/templates/page-content/page-content.stories.ts +169 -0
- package/src/lib/components/templates/page-content/types.ts +28 -0
- package/src/lib/components/templates/page-template/page-template.component.ts +164 -0
- package/src/lib/components/templates/page-template/page-template.stories.ts +174 -0
- package/src/lib/components/templates/page-template/types.ts +17 -0
- package/src/lib/components/templates/page-wrapper/page-wrapper.component.ts +183 -0
- package/src/lib/components/templates/page-wrapper/page-wrapper.stories.ts +149 -0
- package/src/lib/components/templates/page-wrapper/types.ts +20 -0
- package/src/lib/components/templates/simple/simple.component.ts +92 -0
- package/src/lib/components/templates/simple/types.ts +11 -0
- package/src/lib/components/types.ts +311 -0
- package/src/lib/config/company-footer.config.ts +137 -0
- package/src/lib/services/ads/ads-consent.service.ts +166 -0
- package/src/lib/services/ads/ads-loader.service.ts +133 -0
- package/src/lib/services/ads/ads.service.ts +268 -0
- package/src/lib/services/ads/config.ts +92 -0
- package/src/lib/services/ads/index.ts +29 -0
- package/src/lib/services/ads/types.ts +187 -0
- package/src/lib/services/app-config/app-config.service.ts +228 -0
- package/src/lib/services/app-config/config.ts +62 -0
- package/src/lib/services/app-config/index.ts +48 -0
- package/src/lib/services/app-config/types.ts +62 -0
- package/src/lib/services/app-config/version.ts +104 -0
- package/src/lib/services/auth/auth-state.service.ts +225 -0
- package/src/lib/services/auth/auth.service.ts +1306 -0
- package/src/lib/services/auth/config.ts +93 -0
- package/src/lib/services/auth/device.service.ts +163 -0
- package/src/lib/services/auth/guards.ts +234 -0
- package/src/lib/services/auth/index.ts +111 -0
- package/src/lib/services/auth/interceptor.ts +177 -0
- package/src/lib/services/auth/oauth-callback.component.ts +202 -0
- package/src/lib/services/auth/oauth.service.ts +352 -0
- package/src/lib/services/auth/session.service.ts +83 -0
- package/src/lib/services/auth/storage.service.ts +181 -0
- package/src/lib/services/auth/sync.service.ts +158 -0
- package/src/lib/services/auth/token.service.ts +132 -0
- package/src/lib/services/auth/types.ts +1023 -0
- package/src/lib/services/confirmation-dialog/confirmation-dialog.service.ts +199 -0
- package/src/lib/services/confirmation-dialog/types.ts +74 -0
- package/src/lib/services/content/content-types/blog.ts +324 -0
- package/src/lib/services/content/content-types/documentation.ts +369 -0
- package/src/lib/services/content/content-types/news.ts +328 -0
- package/src/lib/services/content/index.ts +71 -0
- package/src/lib/services/content/transformer.ts +312 -0
- package/src/lib/services/content/types.ts +276 -0
- package/src/lib/services/docs/docs-navigation.service.ts +91 -0
- package/src/lib/services/download.service.ts +75 -0
- package/src/lib/services/feedback/config.ts +61 -0
- package/src/lib/services/feedback/feedback.service.ts +348 -0
- package/src/lib/services/feedback/index.ts +59 -0
- package/src/lib/services/feedback/types.ts +239 -0
- package/src/lib/services/firebase/README.md +328 -0
- package/src/lib/services/firebase/analytics-error-handler.ts +155 -0
- package/src/lib/services/firebase/analytics-router-tracker.ts +109 -0
- package/src/lib/services/firebase/analytics-types.ts +277 -0
- package/src/lib/services/firebase/analytics.service.ts +707 -0
- package/src/lib/services/firebase/config.ts +172 -0
- package/src/lib/services/firebase/firebase.service.ts +502 -0
- package/src/lib/services/firebase/firestore-collection.ts +336 -0
- package/src/lib/services/firebase/firestore.service.ts +649 -0
- package/src/lib/services/firebase/index.ts +88 -0
- package/src/lib/services/firebase/messaging.service.ts +672 -0
- package/src/lib/services/firebase/notifications.service.ts +253 -0
- package/src/lib/services/firebase/shared-config.ts +167 -0
- package/src/lib/services/firebase/storage.service.ts +519 -0
- package/src/lib/services/firebase/types.ts +461 -0
- package/src/lib/services/firebase/utils/path-builder.ts +210 -0
- package/src/lib/services/firebase/utils/query-builder.ts +339 -0
- package/src/lib/services/i18n/config.ts +129 -0
- package/src/lib/services/i18n/default-content.ts +640 -0
- package/src/lib/services/i18n/i18n.service.ts +223 -0
- package/src/lib/services/i18n/index.ts +29 -0
- package/src/lib/services/i18n/input-i18n.helper.ts +141 -0
- package/src/lib/services/i18n/translate.pipe.ts +43 -0
- package/src/lib/services/i18n/types.ts +108 -0
- package/src/lib/services/icons.service.ts +122 -0
- package/src/lib/services/image/image.service.ts +328 -0
- package/src/lib/services/image/types.ts +79 -0
- package/src/lib/services/in-app-browser.service.ts +30 -0
- package/src/lib/services/link-processor.service.ts +311 -0
- package/src/lib/services/local-storage.service.ts +39 -0
- package/src/lib/services/locale.service.ts +86 -0
- package/src/lib/services/meta/meta.service.ts +64 -0
- package/src/lib/services/meta/types.ts +13 -0
- package/src/lib/services/modal/modal.service.ts +244 -0
- package/src/lib/services/modal/simple-modal-content.component.ts +138 -0
- package/src/lib/services/modal/types.ts +180 -0
- package/src/lib/services/navigation/navigation.service.ts +255 -0
- package/src/lib/services/navigation/types.ts +86 -0
- package/src/lib/services/pagination/index.ts +13 -0
- package/src/lib/services/pagination/pagination.service.ts +243 -0
- package/src/lib/services/pagination/types.ts +133 -0
- package/src/lib/services/presets/config.ts +51 -0
- package/src/lib/services/presets/index.ts +8 -0
- package/src/lib/services/presets/preset.service.ts +105 -0
- package/src/lib/services/presets/types.ts +41 -0
- package/src/lib/services/qr-generator/qr-generator.service.ts +378 -0
- package/src/lib/services/qr-generator/types.ts +207 -0
- package/src/lib/services/skeleton/config.ts +82 -0
- package/src/lib/services/skeleton/directives/index.ts +1 -0
- package/src/lib/services/skeleton/directives/loading.directive.ts +230 -0
- package/src/lib/services/skeleton/index.ts +30 -0
- package/src/lib/services/skeleton/skeleton.service.ts +220 -0
- package/src/lib/services/skeleton/templates/detail-skeleton.component.ts +166 -0
- package/src/lib/services/skeleton/templates/form-skeleton.component.ts +115 -0
- package/src/lib/services/skeleton/templates/grid-skeleton.component.ts +127 -0
- package/src/lib/services/skeleton/templates/index.ts +6 -0
- package/src/lib/services/skeleton/templates/list-skeleton.component.ts +90 -0
- package/src/lib/services/skeleton/templates/profile-skeleton.component.ts +174 -0
- package/src/lib/services/skeleton/templates/table-skeleton.component.ts +113 -0
- package/src/lib/services/skeleton/types.ts +142 -0
- package/src/lib/services/theme.service.ts +154 -0
- package/src/lib/services/toast.service.ts +42 -0
- package/src/lib/services/types.ts +6 -0
- package/src/lib/shared/constants/storage.ts +2 -0
- package/src/lib/shared/pipes/process-links.pipe.ts +64 -0
- package/src/lib/shared/utils/dom.ts +29 -0
- package/src/lib/shared/utils/form-defaults.ts +119 -0
- package/src/lib/shared/utils/styles.ts +39 -0
- package/src/lib/shared/utils/text.ts +12 -0
- package/src/lib/version.ts +5 -0
- package/src/public-api.ts +352 -0
- package/src/stories/Introduction.mdx +649 -0
- package/src/stories/helpers/mock-services.ts +27 -0
- package/src/stories/helpers/storybook-helpers.ts +89 -0
- package/tsconfig.json +32 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +0 -94
- package/esm2022/lib/components/atoms/avatar/types.mjs +0 -2
- package/esm2022/lib/components/atoms/box/box.component.mjs +0 -88
- package/esm2022/lib/components/atoms/box/types.mjs +0 -2
- package/esm2022/lib/components/atoms/button/button.component.mjs +0 -174
- package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
- package/esm2022/lib/components/atoms/countdown/countdown.component.mjs +0 -340
- package/esm2022/lib/components/atoms/countdown/types.mjs +0 -27
- package/esm2022/lib/components/atoms/display/display.component.mjs +0 -51
- package/esm2022/lib/components/atoms/display/types.mjs +0 -2
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +0 -27
- package/esm2022/lib/components/atoms/divider/types.mjs +0 -2
- package/esm2022/lib/components/atoms/fab/fab.component.mjs +0 -190
- package/esm2022/lib/components/atoms/fab/types.mjs +0 -2
- package/esm2022/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.mjs +0 -82
- package/esm2022/lib/components/atoms/horizontal-scroll/types.mjs +0 -2
- package/esm2022/lib/components/atoms/href/href.component.mjs +0 -62
- package/esm2022/lib/components/atoms/href/types.mjs +0 -2
- package/esm2022/lib/components/atoms/icon/icon.component.mjs +0 -29
- package/esm2022/lib/components/atoms/icon/types.mjs +0 -2
- package/esm2022/lib/components/atoms/image/image.component.mjs +0 -507
- package/esm2022/lib/components/atoms/image/types.mjs +0 -2
- package/esm2022/lib/components/atoms/price-tag/price-tag.component.mjs +0 -235
- package/esm2022/lib/components/atoms/price-tag/types.mjs +0 -15
- package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +0 -91
- package/esm2022/lib/components/atoms/progress-bar/types.mjs +0 -2
- package/esm2022/lib/components/atoms/progress-ring/progress-ring.component.mjs +0 -149
- package/esm2022/lib/components/atoms/progress-ring/types.mjs +0 -2
- package/esm2022/lib/components/atoms/qr-code/qr-code.component.mjs +0 -394
- package/esm2022/lib/components/atoms/qr-code/types.mjs +0 -2
- package/esm2022/lib/components/atoms/rights-footer/rights-footer.component.mjs +0 -108
- package/esm2022/lib/components/atoms/rights-footer/types.mjs +0 -2
- package/esm2022/lib/components/atoms/skeleton/skeleton.component.mjs +0 -193
- package/esm2022/lib/components/atoms/skeleton/types.mjs +0 -13
- package/esm2022/lib/components/atoms/text/text.component.mjs +0 -132
- package/esm2022/lib/components/atoms/text/types.mjs +0 -2
- package/esm2022/lib/components/atoms/title/title.component.mjs +0 -68
- package/esm2022/lib/components/atoms/title/types.mjs +0 -22
- package/esm2022/lib/components/molecules/accordion/accordion.component.mjs +0 -120
- package/esm2022/lib/components/molecules/accordion/types.mjs +0 -2
- package/esm2022/lib/components/molecules/action-card/action-card.component.mjs +0 -298
- package/esm2022/lib/components/molecules/action-card/types.mjs +0 -11
- package/esm2022/lib/components/molecules/action-header/action-header.component.mjs +0 -26
- package/esm2022/lib/components/molecules/action-header/types.mjs +0 -2
- package/esm2022/lib/components/molecules/ad-slot/ad-slot.component.mjs +0 -274
- package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +0 -119
- package/esm2022/lib/components/molecules/alert-box/types.mjs +0 -2
- package/esm2022/lib/components/molecules/breadcrumb/breadcrumb.component.mjs +0 -130
- package/esm2022/lib/components/molecules/breadcrumb/types.mjs +0 -2
- package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +0 -63
- package/esm2022/lib/components/molecules/button-group/types.mjs +0 -2
- package/esm2022/lib/components/molecules/card/card.component.mjs +0 -450
- package/esm2022/lib/components/molecules/card/types.mjs +0 -16
- package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +0 -82
- package/esm2022/lib/components/molecules/chip-group/chip-group.component.mjs +0 -166
- package/esm2022/lib/components/molecules/chip-group/types.mjs +0 -2
- package/esm2022/lib/components/molecules/code-display/code-display.component.mjs +0 -115
- package/esm2022/lib/components/molecules/code-display/types.mjs +0 -2
- package/esm2022/lib/components/molecules/command-display/command-display.component.mjs +0 -49
- package/esm2022/lib/components/molecules/command-display/types.mjs +0 -2
- package/esm2022/lib/components/molecules/comment/comment.component.mjs +0 -618
- package/esm2022/lib/components/molecules/comment/types.mjs +0 -2
- package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +0 -41
- package/esm2022/lib/components/molecules/comment-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +0 -42
- package/esm2022/lib/components/molecules/content-loader/types.mjs +0 -2
- package/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +0 -218
- package/esm2022/lib/components/molecules/content-reaction/types.mjs +0 -2
- package/esm2022/lib/components/molecules/currency-input/currency-input.component.mjs +0 -347
- package/esm2022/lib/components/molecules/currency-input/types.mjs +0 -18
- package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +0 -148
- package/esm2022/lib/components/molecules/date-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/date-range-input/date-range-input.component.mjs +0 -416
- package/esm2022/lib/components/molecules/date-range-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/docs-api-table/docs-api-table.component.mjs +0 -222
- package/esm2022/lib/components/molecules/docs-api-table/types.mjs +0 -11
- package/esm2022/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.mjs +0 -144
- package/esm2022/lib/components/molecules/docs-breadcrumb/types.mjs +0 -2
- package/esm2022/lib/components/molecules/docs-callout/docs-callout.component.mjs +0 -60
- package/esm2022/lib/components/molecules/docs-code-example/docs-code-example.component.mjs +0 -255
- package/esm2022/lib/components/molecules/docs-code-example/types.mjs +0 -2
- package/esm2022/lib/components/molecules/docs-nav-links/docs-nav-links.component.mjs +0 -140
- package/esm2022/lib/components/molecules/docs-nav-links/types.mjs +0 -2
- package/esm2022/lib/components/molecules/docs-search/docs-search.component.mjs +0 -268
- package/esm2022/lib/components/molecules/docs-search/types.mjs +0 -2
- package/esm2022/lib/components/molecules/docs-section/docs-section.component.mjs +0 -85
- package/esm2022/lib/components/molecules/docs-section/types.mjs +0 -2
- package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +0 -68
- package/esm2022/lib/components/molecules/expandable-text/expandable-text.component.mjs +0 -77
- package/esm2022/lib/components/molecules/expandable-text/types.mjs +0 -2
- package/esm2022/lib/components/molecules/features-list/features-list.component.mjs +0 -185
- package/esm2022/lib/components/molecules/features-list/types.mjs +0 -11
- package/esm2022/lib/components/molecules/feedback-form/feedback-form.component.mjs +0 -354
- package/esm2022/lib/components/molecules/feedback-form/types.mjs +0 -2
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +0 -90
- package/esm2022/lib/components/molecules/file-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/footer-links/footer-links.component.mjs +0 -391
- package/esm2022/lib/components/molecules/footer-links/types.mjs +0 -2
- package/esm2022/lib/components/molecules/glow-card/glow-card.component.mjs +0 -314
- package/esm2022/lib/components/molecules/glow-card/types.mjs +0 -11
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +0 -90
- package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +0 -28
- package/esm2022/lib/components/molecules/image-crop/image-crop.component.mjs +0 -174
- package/esm2022/lib/components/molecules/image-crop/index.mjs +0 -2
- package/esm2022/lib/components/molecules/info/info.component.mjs +0 -49
- package/esm2022/lib/components/molecules/info/types.mjs +0 -2
- package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +0 -221
- package/esm2022/lib/components/molecules/language-selector/types.mjs +0 -2
- package/esm2022/lib/components/molecules/layered-card/layered-card.component.mjs +0 -104
- package/esm2022/lib/components/molecules/layered-card/types.mjs +0 -2
- package/esm2022/lib/components/molecules/link/link.component.mjs +0 -64
- package/esm2022/lib/components/molecules/link/types.mjs +0 -2
- package/esm2022/lib/components/molecules/linked-providers/linked-providers.component.mjs +0 -236
- package/esm2022/lib/components/molecules/linked-providers/types.mjs +0 -27
- package/esm2022/lib/components/molecules/links-accordion/links-accordion.component.mjs +0 -185
- package/esm2022/lib/components/molecules/links-accordion/types.mjs +0 -2
- package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +0 -51
- package/esm2022/lib/components/molecules/links-cake/types.mjs +0 -2
- package/esm2022/lib/components/molecules/multi-select-search/multi-select-search.component.mjs +0 -488
- package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +0 -69
- package/esm2022/lib/components/molecules/notes-box/types.mjs +0 -2
- package/esm2022/lib/components/molecules/number-from-to/number-from-to.component.mjs +0 -143
- package/esm2022/lib/components/molecules/number-from-to/types.mjs +0 -2
- package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +0 -34
- package/esm2022/lib/components/molecules/number-stepper/number-stepper.component.mjs +0 -379
- package/esm2022/lib/components/molecules/number-stepper/types.mjs +0 -2
- package/esm2022/lib/components/molecules/pagination/pagination.component.mjs +0 -253
- package/esm2022/lib/components/molecules/pagination/types.mjs +0 -2
- package/esm2022/lib/components/molecules/participant-card/participant-card.component.mjs +0 -514
- package/esm2022/lib/components/molecules/participant-card/types.mjs +0 -21
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +0 -93
- package/esm2022/lib/components/molecules/phone-input/phone-input.component.mjs +0 -365
- package/esm2022/lib/components/molecules/phone-input/types.mjs +0 -19
- package/esm2022/lib/components/molecules/pill/pill.component.mjs +0 -92
- package/esm2022/lib/components/molecules/pill/types.mjs +0 -2
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +0 -78
- package/esm2022/lib/components/molecules/pin-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/plain-code-box/plain-code-box.component.mjs +0 -82
- package/esm2022/lib/components/molecules/plain-code-box/types.mjs +0 -2
- package/esm2022/lib/components/molecules/popover-selector/popover-selector.component.mjs +0 -188
- package/esm2022/lib/components/molecules/popover-selector/types.mjs +0 -2
- package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +0 -105
- package/esm2022/lib/components/molecules/progress-status/types.mjs +0 -2
- package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +0 -85
- package/esm2022/lib/components/molecules/prompter/types.mjs +0 -2
- package/esm2022/lib/components/molecules/quote-box/quote-box.component.mjs +0 -155
- package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +0 -52
- package/esm2022/lib/components/molecules/raffle-status-card/raffle-status-card.component.mjs +0 -476
- package/esm2022/lib/components/molecules/raffle-status-card/types.mjs +0 -23
- package/esm2022/lib/components/molecules/range-input/range-input.component.mjs +0 -127
- package/esm2022/lib/components/molecules/range-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/rating/rating.component.mjs +0 -166
- package/esm2022/lib/components/molecules/rating/types.mjs +0 -2
- package/esm2022/lib/components/molecules/recap-card/recap-card.component.mjs +0 -78
- package/esm2022/lib/components/molecules/recap-card/types.mjs +0 -2
- package/esm2022/lib/components/molecules/refresher/refresher.component.mjs +0 -269
- package/esm2022/lib/components/molecules/refresher/types.mjs +0 -15
- package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +0 -127
- package/esm2022/lib/components/molecules/searchbar/types.mjs +0 -2
- package/esm2022/lib/components/molecules/segment-control/segment-control.component.mjs +0 -137
- package/esm2022/lib/components/molecules/segment-control/types.mjs +0 -2
- package/esm2022/lib/components/molecules/select-input/select-input.component.mjs +0 -130
- package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +0 -420
- package/esm2022/lib/components/molecules/share-buttons/share-buttons.component.mjs +0 -274
- package/esm2022/lib/components/molecules/share-buttons/types.mjs +0 -88
- package/esm2022/lib/components/molecules/stats-card/stats-card.component.mjs +0 -213
- package/esm2022/lib/components/molecules/stats-card/types.mjs +0 -2
- package/esm2022/lib/components/molecules/stepper/stepper.component.mjs +0 -242
- package/esm2022/lib/components/molecules/stepper/types.mjs +0 -2
- package/esm2022/lib/components/molecules/swipe-carousel/swipe-carousel.component.mjs +0 -206
- package/esm2022/lib/components/molecules/swipe-carousel/types.mjs +0 -2
- package/esm2022/lib/components/molecules/tabs/tabs.component.mjs +0 -139
- package/esm2022/lib/components/molecules/tabs/types.mjs +0 -2
- package/esm2022/lib/components/molecules/testimonial-card/testimonial-card.component.mjs +0 -138
- package/esm2022/lib/components/molecules/testimonial-card/types.mjs +0 -2
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +0 -77
- package/esm2022/lib/components/molecules/textarea-input/textarea-input.component.mjs +0 -213
- package/esm2022/lib/components/molecules/textarea-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/ticket-grid/ticket-grid.component.mjs +0 -489
- package/esm2022/lib/components/molecules/ticket-grid/types.mjs +0 -11
- package/esm2022/lib/components/molecules/timeline/timeline.component.mjs +0 -140
- package/esm2022/lib/components/molecules/timeline/types.mjs +0 -2
- package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +0 -102
- package/esm2022/lib/components/molecules/title-block/types.mjs +0 -2
- package/esm2022/lib/components/molecules/toggle-input/toggle-input.component.mjs +0 -93
- package/esm2022/lib/components/molecules/toggle-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/update-banner/update-banner.component.mjs +0 -112
- package/esm2022/lib/components/molecules/username-input/types.mjs +0 -2
- package/esm2022/lib/components/molecules/username-input/username-input.component.mjs +0 -260
- package/esm2022/lib/components/molecules/winner-display/types.mjs +0 -9
- package/esm2022/lib/components/molecules/winner-display/winner-display.component.mjs +0 -359
- package/esm2022/lib/components/organisms/article/article.component.mjs +0 -573
- package/esm2022/lib/components/organisms/article/types.mjs +0 -183
- package/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +0 -372
- package/esm2022/lib/components/organisms/avatar-upload/types.mjs +0 -15
- package/esm2022/lib/components/organisms/banner/banner.component.mjs +0 -111
- package/esm2022/lib/components/organisms/banner/types.mjs +0 -2
- package/esm2022/lib/components/organisms/bottom-nav/bottom-nav.component.mjs +0 -368
- package/esm2022/lib/components/organisms/bottom-nav/types.mjs +0 -18
- package/esm2022/lib/components/organisms/cards-carousel/cards-carousel.component.mjs +0 -61
- package/esm2022/lib/components/organisms/cards-carousel/types.mjs +0 -2
- package/esm2022/lib/components/organisms/comment-section/comment-section.component.mjs +0 -537
- package/esm2022/lib/components/organisms/comment-section/types.mjs +0 -2
- package/esm2022/lib/components/organisms/company-footer/company-footer.component.mjs +0 -76
- package/esm2022/lib/components/organisms/company-footer/types.mjs +0 -2
- package/esm2022/lib/components/organisms/data-table/data-table.component.mjs +0 -1081
- package/esm2022/lib/components/organisms/data-table/types.mjs +0 -13
- package/esm2022/lib/components/organisms/docs-sidebar/docs-sidebar.component.mjs +0 -290
- package/esm2022/lib/components/organisms/docs-sidebar/types.mjs +0 -2
- package/esm2022/lib/components/organisms/docs-toc/docs-toc.component.mjs +0 -307
- package/esm2022/lib/components/organisms/docs-toc/types.mjs +0 -2
- package/esm2022/lib/components/organisms/footer/footer.component.mjs +0 -73
- package/esm2022/lib/components/organisms/footer/types.mjs +0 -2
- package/esm2022/lib/components/organisms/form/factory.mjs +0 -29
- package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +0 -83
- package/esm2022/lib/components/organisms/form/form.component.mjs +0 -417
- package/esm2022/lib/components/organisms/fun-header/fun-header.component.mjs +0 -225
- package/esm2022/lib/components/organisms/fun-header/types.mjs +0 -2
- package/esm2022/lib/components/organisms/header/header.component.mjs +0 -51
- package/esm2022/lib/components/organisms/header/types.mjs +0 -2
- package/esm2022/lib/components/organisms/infinite-list/infinite-list.component.mjs +0 -620
- package/esm2022/lib/components/organisms/infinite-list/types.mjs +0 -15
- package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +0 -418
- package/esm2022/lib/components/organisms/item-list/types.mjs +0 -2
- package/esm2022/lib/components/organisms/login/login.component.mjs +0 -741
- package/esm2022/lib/components/organisms/login/types.mjs +0 -11
- package/esm2022/lib/components/organisms/menu/menu.component.mjs +0 -206
- package/esm2022/lib/components/organisms/menu/types.mjs +0 -2
- package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +0 -66
- package/esm2022/lib/components/organisms/no-content/types.mjs +0 -2
- package/esm2022/lib/components/organisms/rotating-text/rotating-text.component.mjs +0 -180
- package/esm2022/lib/components/organisms/rotating-text/types.mjs +0 -2
- package/esm2022/lib/components/organisms/tabbed-content/tabbed-content.component.mjs +0 -170
- package/esm2022/lib/components/organisms/tabbed-content/types.mjs +0 -2
- package/esm2022/lib/components/organisms/terminal-404/terminal-404.component.mjs +0 -214
- package/esm2022/lib/components/organisms/terminal-404/types.mjs +0 -2
- package/esm2022/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.mjs +0 -72
- package/esm2022/lib/components/organisms/testimonial-carousel/types.mjs +0 -2
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +0 -237
- package/esm2022/lib/components/organisms/toolbar/types.mjs +0 -2
- package/esm2022/lib/components/organisms/wizard/types.mjs +0 -10
- package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +0 -111
- package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +0 -161
- package/esm2022/lib/components/templates/auth-background/auth-background.component.mjs +0 -149
- package/esm2022/lib/components/templates/auth-background/types.mjs +0 -2
- package/esm2022/lib/components/templates/docs-layout/docs-layout.component.mjs +0 -221
- package/esm2022/lib/components/templates/docs-layout/types.mjs +0 -2
- package/esm2022/lib/components/templates/docs-page/docs-page.component.mjs +0 -251
- package/esm2022/lib/components/templates/docs-page/types.mjs +0 -2
- package/esm2022/lib/components/templates/docs-shell/docs-shell.component.mjs +0 -376
- package/esm2022/lib/components/templates/docs-shell/types.mjs +0 -2
- package/esm2022/lib/components/templates/layout/layout.component.mjs +0 -19
- package/esm2022/lib/components/templates/maintenance-page/maintenance-page.component.mjs +0 -153
- package/esm2022/lib/components/templates/maintenance-page/types.mjs +0 -2
- package/esm2022/lib/components/templates/page-content/page-content.component.mjs +0 -193
- package/esm2022/lib/components/templates/page-content/types.mjs +0 -2
- package/esm2022/lib/components/templates/page-template/page-template.component.mjs +0 -188
- package/esm2022/lib/components/templates/page-template/types.mjs +0 -2
- package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +0 -192
- package/esm2022/lib/components/templates/page-wrapper/types.mjs +0 -2
- package/esm2022/lib/components/templates/simple/simple.component.mjs +0 -125
- package/esm2022/lib/components/templates/simple/types.mjs +0 -2
- package/esm2022/lib/components/types.mjs +0 -58
- package/esm2022/lib/config/company-footer.config.mjs +0 -109
- package/esm2022/lib/config/index.mjs +0 -5
- package/esm2022/lib/services/ads/ads-loader.service.mjs +0 -120
- package/esm2022/lib/services/ads/ads.service.mjs +0 -236
- package/esm2022/lib/services/ads/config.mjs +0 -81
- package/esm2022/lib/services/ads/index.mjs +0 -13
- package/esm2022/lib/services/ads/types.mjs +0 -23
- package/esm2022/lib/services/app-config/app-config.service.mjs +0 -209
- package/esm2022/lib/services/app-config/config.mjs +0 -47
- package/esm2022/lib/services/app-config/index.mjs +0 -48
- package/esm2022/lib/services/app-config/types.mjs +0 -13
- package/esm2022/lib/services/app-config/version.mjs +0 -85
- package/esm2022/lib/services/auth/auth-state.service.mjs +0 -186
- package/esm2022/lib/services/auth/auth.service.mjs +0 -1087
- package/esm2022/lib/services/auth/config.mjs +0 -77
- package/esm2022/lib/services/auth/device.service.mjs +0 -135
- package/esm2022/lib/services/auth/guards.mjs +0 -194
- package/esm2022/lib/services/auth/index.mjs +0 -92
- package/esm2022/lib/services/auth/interceptor.mjs +0 -122
- package/esm2022/lib/services/auth/oauth-callback.component.mjs +0 -169
- package/esm2022/lib/services/auth/oauth.service.mjs +0 -318
- package/esm2022/lib/services/auth/session.service.mjs +0 -78
- package/esm2022/lib/services/auth/storage.service.mjs +0 -152
- package/esm2022/lib/services/auth/sync.service.mjs +0 -149
- package/esm2022/lib/services/auth/token.service.mjs +0 -122
- package/esm2022/lib/services/auth/types.mjs +0 -30
- package/esm2022/lib/services/confirmation-dialog/confirmation-dialog.service.mjs +0 -180
- package/esm2022/lib/services/confirmation-dialog/types.mjs +0 -14
- package/esm2022/lib/services/docs/docs-navigation.service.mjs +0 -91
- package/esm2022/lib/services/download.service.mjs +0 -80
- package/esm2022/lib/services/feedback/config.mjs +0 -49
- package/esm2022/lib/services/feedback/feedback.service.mjs +0 -296
- package/esm2022/lib/services/feedback/index.mjs +0 -44
- package/esm2022/lib/services/feedback/types.mjs +0 -30
- package/esm2022/lib/services/firebase/analytics-error-handler.mjs +0 -141
- package/esm2022/lib/services/firebase/analytics-router-tracker.mjs +0 -99
- package/esm2022/lib/services/firebase/analytics-types.mjs +0 -7
- package/esm2022/lib/services/firebase/analytics.service.mjs +0 -620
- package/esm2022/lib/services/firebase/config.mjs +0 -131
- package/esm2022/lib/services/firebase/firebase.service.mjs +0 -456
- package/esm2022/lib/services/firebase/firestore-collection.mjs +0 -262
- package/esm2022/lib/services/firebase/firestore.service.mjs +0 -536
- package/esm2022/lib/services/firebase/index.mjs +0 -56
- package/esm2022/lib/services/firebase/messaging.service.mjs +0 -597
- package/esm2022/lib/services/firebase/notifications.service.mjs +0 -210
- package/esm2022/lib/services/firebase/shared-config.mjs +0 -114
- package/esm2022/lib/services/firebase/storage.service.mjs +0 -472
- package/esm2022/lib/services/firebase/types.mjs +0 -18
- package/esm2022/lib/services/firebase/utils/path-builder.mjs +0 -195
- package/esm2022/lib/services/firebase/utils/query-builder.mjs +0 -302
- package/esm2022/lib/services/i18n/config.mjs +0 -110
- package/esm2022/lib/services/i18n/default-content.mjs +0 -563
- package/esm2022/lib/services/i18n/i18n.service.mjs +0 -196
- package/esm2022/lib/services/i18n/index.mjs +0 -13
- package/esm2022/lib/services/i18n/input-i18n.helper.mjs +0 -97
- package/esm2022/lib/services/i18n/translate.pipe.mjs +0 -50
- package/esm2022/lib/services/i18n/types.mjs +0 -15
- package/esm2022/lib/services/icons.service.mjs +0 -76
- package/esm2022/lib/services/image/image.service.mjs +0 -244
- package/esm2022/lib/services/image/index.mjs +0 -3
- package/esm2022/lib/services/image/types.mjs +0 -13
- package/esm2022/lib/services/in-app-browser.service.mjs +0 -35
- package/esm2022/lib/services/link-processor.service.mjs +0 -259
- package/esm2022/lib/services/local-storage.service.mjs +0 -37
- package/esm2022/lib/services/locale.service.mjs +0 -75
- package/esm2022/lib/services/meta/index.mjs +0 -3
- package/esm2022/lib/services/meta/meta.service.mjs +0 -63
- package/esm2022/lib/services/meta/types.mjs +0 -2
- package/esm2022/lib/services/modal/modal.service.mjs +0 -212
- package/esm2022/lib/services/modal/simple-modal-content.component.mjs +0 -133
- package/esm2022/lib/services/modal/types.mjs +0 -26
- package/esm2022/lib/services/navigation/index.mjs +0 -3
- package/esm2022/lib/services/navigation/navigation.service.mjs +0 -216
- package/esm2022/lib/services/navigation/types.mjs +0 -16
- package/esm2022/lib/services/pagination/index.mjs +0 -5
- package/esm2022/lib/services/pagination/pagination.service.mjs +0 -218
- package/esm2022/lib/services/pagination/types.mjs +0 -14
- package/esm2022/lib/services/presets/config.mjs +0 -46
- package/esm2022/lib/services/presets/index.mjs +0 -5
- package/esm2022/lib/services/presets/preset.service.mjs +0 -104
- package/esm2022/lib/services/presets/types.mjs +0 -2
- package/esm2022/lib/services/qr-generator/qr-generator.service.mjs +0 -341
- package/esm2022/lib/services/qr-generator/types.mjs +0 -46
- package/esm2022/lib/services/skeleton/config.mjs +0 -79
- package/esm2022/lib/services/skeleton/directives/loading.directive.mjs +0 -215
- package/esm2022/lib/services/skeleton/index.mjs +0 -16
- package/esm2022/lib/services/skeleton/skeleton.service.mjs +0 -198
- package/esm2022/lib/services/skeleton/templates/detail-skeleton.component.mjs +0 -223
- package/esm2022/lib/services/skeleton/templates/form-skeleton.component.mjs +0 -127
- package/esm2022/lib/services/skeleton/templates/grid-skeleton.component.mjs +0 -154
- package/esm2022/lib/services/skeleton/templates/list-skeleton.component.mjs +0 -110
- package/esm2022/lib/services/skeleton/templates/profile-skeleton.component.mjs +0 -207
- package/esm2022/lib/services/skeleton/templates/table-skeleton.component.mjs +0 -116
- package/esm2022/lib/services/skeleton/types.mjs +0 -11
- package/esm2022/lib/services/theme.service.mjs +0 -144
- package/esm2022/lib/services/toast.service.mjs +0 -47
- package/esm2022/lib/services/types.mjs +0 -5
- package/esm2022/lib/shared/constants/storage.mjs +0 -3
- package/esm2022/lib/shared/pipes/process-links.pipe.mjs +0 -69
- package/esm2022/lib/shared/utils/dom.mjs +0 -27
- package/esm2022/lib/shared/utils/form-defaults.mjs +0 -112
- package/esm2022/lib/shared/utils/styles.mjs +0 -37
- package/esm2022/lib/shared/utils/text.mjs +0 -12
- package/esm2022/lib/version.mjs +0 -6
- package/esm2022/public-api.mjs +0 -333
- package/esm2022/valtech-components.mjs +0 -5
- package/fesm2022/valtech-components.mjs +0 -42067
- package/fesm2022/valtech-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/atoms/avatar/avatar.component.d.ts +0 -36
- package/lib/components/atoms/avatar/types.d.ts +0 -15
- package/lib/components/atoms/box/box.component.d.ts +0 -26
- package/lib/components/atoms/box/types.d.ts +0 -19
- package/lib/components/atoms/button/button.component.d.ts +0 -63
- package/lib/components/atoms/button/factory.d.ts +0 -71
- package/lib/components/atoms/countdown/countdown.component.d.ts +0 -38
- package/lib/components/atoms/countdown/types.d.ts +0 -108
- package/lib/components/atoms/display/display.component.d.ts +0 -19
- package/lib/components/atoms/display/types.d.ts +0 -33
- package/lib/components/atoms/divider/divider.component.d.ts +0 -27
- package/lib/components/atoms/divider/types.d.ts +0 -12
- package/lib/components/atoms/fab/fab.component.d.ts +0 -36
- package/lib/components/atoms/fab/types.d.ts +0 -45
- package/lib/components/atoms/horizontal-scroll/horizontal-scroll.component.d.ts +0 -41
- package/lib/components/atoms/horizontal-scroll/types.d.ts +0 -13
- package/lib/components/atoms/href/href.component.d.ts +0 -25
- package/lib/components/atoms/href/types.d.ts +0 -19
- package/lib/components/atoms/icon/icon.component.d.ts +0 -18
- package/lib/components/atoms/icon/types.d.ts +0 -13
- package/lib/components/atoms/image/image.component.d.ts +0 -41
- package/lib/components/atoms/image/types.d.ts +0 -37
- package/lib/components/atoms/price-tag/price-tag.component.d.ts +0 -15
- package/lib/components/atoms/price-tag/types.d.ts +0 -59
- package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +0 -35
- package/lib/components/atoms/progress-bar/types.d.ts +0 -19
- package/lib/components/atoms/progress-ring/progress-ring.component.d.ts +0 -20
- package/lib/components/atoms/progress-ring/types.d.ts +0 -24
- package/lib/components/atoms/qr-code/qr-code.component.d.ts +0 -33
- package/lib/components/atoms/qr-code/types.d.ts +0 -124
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +0 -53
- package/lib/components/atoms/rights-footer/types.d.ts +0 -21
- package/lib/components/atoms/skeleton/skeleton.component.d.ts +0 -12
- package/lib/components/atoms/skeleton/types.d.ts +0 -29
- package/lib/components/atoms/text/text.component.d.ts +0 -33
- package/lib/components/atoms/text/types.d.ts +0 -42
- package/lib/components/atoms/title/title.component.d.ts +0 -21
- package/lib/components/atoms/title/types.d.ts +0 -36
- package/lib/components/molecules/accordion/accordion.component.d.ts +0 -18
- package/lib/components/molecules/accordion/types.d.ts +0 -47
- package/lib/components/molecules/action-card/action-card.component.d.ts +0 -90
- package/lib/components/molecules/action-card/types.d.ts +0 -83
- package/lib/components/molecules/action-header/action-header.component.d.ts +0 -7
- package/lib/components/molecules/action-header/types.d.ts +0 -6
- package/lib/components/molecules/ad-slot/ad-slot.component.d.ts +0 -69
- package/lib/components/molecules/alert-box/alert-box.component.d.ts +0 -39
- package/lib/components/molecules/alert-box/types.d.ts +0 -37
- package/lib/components/molecules/breadcrumb/breadcrumb.component.d.ts +0 -22
- package/lib/components/molecules/breadcrumb/types.d.ts +0 -45
- package/lib/components/molecules/button-group/button-group.component.d.ts +0 -23
- package/lib/components/molecules/button-group/types.d.ts +0 -13
- package/lib/components/molecules/card/card.component.d.ts +0 -49
- package/lib/components/molecules/card/types.d.ts +0 -32
- package/lib/components/molecules/check-input/check-input.component.d.ts +0 -36
- package/lib/components/molecules/chip-group/chip-group.component.d.ts +0 -22
- package/lib/components/molecules/chip-group/types.d.ts +0 -65
- package/lib/components/molecules/code-display/code-display.component.d.ts +0 -24
- package/lib/components/molecules/code-display/types.d.ts +0 -10
- package/lib/components/molecules/command-display/command-display.component.d.ts +0 -11
- package/lib/components/molecules/command-display/types.d.ts +0 -3
- package/lib/components/molecules/comment/comment.component.d.ts +0 -42
- package/lib/components/molecules/comment/types.d.ts +0 -171
- package/lib/components/molecules/comment-input/comment-input.component.d.ts +0 -16
- package/lib/components/molecules/comment-input/types.d.ts +0 -59
- package/lib/components/molecules/content-loader/content-loader.component.d.ts +0 -18
- package/lib/components/molecules/content-loader/types.d.ts +0 -15
- package/lib/components/molecules/content-reaction/content-reaction.component.d.ts +0 -58
- package/lib/components/molecules/content-reaction/types.d.ts +0 -77
- package/lib/components/molecules/currency-input/currency-input.component.d.ts +0 -40
- package/lib/components/molecules/currency-input/types.d.ts +0 -96
- package/lib/components/molecules/date-input/date-input.component.d.ts +0 -40
- package/lib/components/molecules/date-input/types.d.ts +0 -74
- package/lib/components/molecules/date-range-input/date-range-input.component.d.ts +0 -50
- package/lib/components/molecules/date-range-input/types.d.ts +0 -109
- package/lib/components/molecules/docs-api-table/docs-api-table.component.d.ts +0 -41
- package/lib/components/molecules/docs-api-table/types.d.ts +0 -62
- package/lib/components/molecules/docs-breadcrumb/docs-breadcrumb.component.d.ts +0 -31
- package/lib/components/molecules/docs-breadcrumb/types.d.ts +0 -20
- package/lib/components/molecules/docs-callout/docs-callout.component.d.ts +0 -17
- package/lib/components/molecules/docs-code-example/docs-code-example.component.d.ts +0 -45
- package/lib/components/molecules/docs-code-example/types.d.ts +0 -63
- package/lib/components/molecules/docs-nav-links/docs-nav-links.component.d.ts +0 -30
- package/lib/components/molecules/docs-nav-links/types.d.ts +0 -31
- package/lib/components/molecules/docs-search/docs-search.component.d.ts +0 -47
- package/lib/components/molecules/docs-search/types.d.ts +0 -27
- package/lib/components/molecules/docs-section/docs-section.component.d.ts +0 -29
- package/lib/components/molecules/docs-section/types.d.ts +0 -27
- package/lib/components/molecules/email-input/email-input.component.d.ts +0 -34
- package/lib/components/molecules/expandable-text/expandable-text.component.d.ts +0 -23
- package/lib/components/molecules/expandable-text/types.d.ts +0 -14
- package/lib/components/molecules/features-list/features-list.component.d.ts +0 -66
- package/lib/components/molecules/features-list/types.d.ts +0 -36
- package/lib/components/molecules/feedback-form/feedback-form.component.d.ts +0 -58
- package/lib/components/molecules/feedback-form/types.d.ts +0 -54
- package/lib/components/molecules/file-input/file-input.component.d.ts +0 -25
- package/lib/components/molecules/file-input/types.d.ts +0 -72
- package/lib/components/molecules/footer-links/footer-links.component.d.ts +0 -47
- package/lib/components/molecules/footer-links/types.d.ts +0 -50
- package/lib/components/molecules/glow-card/glow-card.component.d.ts +0 -60
- package/lib/components/molecules/glow-card/types.d.ts +0 -94
- package/lib/components/molecules/hint/hint.component.d.ts +0 -19
- package/lib/components/molecules/hour-input/hour-input.component.d.ts +0 -15
- package/lib/components/molecules/image-crop/image-crop.component.d.ts +0 -59
- package/lib/components/molecules/info/info.component.d.ts +0 -9
- package/lib/components/molecules/info/types.d.ts +0 -10
- package/lib/components/molecules/language-selector/language-selector.component.d.ts +0 -40
- package/lib/components/molecules/language-selector/types.d.ts +0 -82
- package/lib/components/molecules/layered-card/layered-card.component.d.ts +0 -10
- package/lib/components/molecules/layered-card/types.d.ts +0 -15
- package/lib/components/molecules/link/link.component.d.ts +0 -24
- package/lib/components/molecules/link/types.d.ts +0 -19
- package/lib/components/molecules/linked-providers/linked-providers.component.d.ts +0 -30
- package/lib/components/molecules/linked-providers/types.d.ts +0 -38
- package/lib/components/molecules/links-accordion/links-accordion.component.d.ts +0 -61
- package/lib/components/molecules/links-accordion/types.d.ts +0 -39
- package/lib/components/molecules/links-cake/links-cake.component.d.ts +0 -17
- package/lib/components/molecules/links-cake/types.d.ts +0 -13
- package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +0 -76
- package/lib/components/molecules/notes-box/notes-box.component.d.ts +0 -21
- package/lib/components/molecules/notes-box/types.d.ts +0 -21
- package/lib/components/molecules/number-from-to/number-from-to.component.d.ts +0 -27
- package/lib/components/molecules/number-from-to/types.d.ts +0 -76
- package/lib/components/molecules/number-input/number-input.component.d.ts +0 -16
- package/lib/components/molecules/number-stepper/number-stepper.component.d.ts +0 -38
- package/lib/components/molecules/number-stepper/types.d.ts +0 -88
- package/lib/components/molecules/pagination/pagination.component.d.ts +0 -15
- package/lib/components/molecules/pagination/types.d.ts +0 -41
- package/lib/components/molecules/participant-card/participant-card.component.d.ts +0 -34
- package/lib/components/molecules/participant-card/types.d.ts +0 -132
- package/lib/components/molecules/password-input/password-input.component.d.ts +0 -37
- package/lib/components/molecules/phone-input/phone-input.component.d.ts +0 -59
- package/lib/components/molecules/phone-input/types.d.ts +0 -98
- package/lib/components/molecules/pill/pill.component.d.ts +0 -33
- package/lib/components/molecules/pill/types.d.ts +0 -9
- package/lib/components/molecules/pin-input/pin-input.component.d.ts +0 -21
- package/lib/components/molecules/pin-input/types.d.ts +0 -69
- package/lib/components/molecules/plain-code-box/plain-code-box.component.d.ts +0 -22
- package/lib/components/molecules/plain-code-box/types.d.ts +0 -10
- package/lib/components/molecules/popover-selector/popover-selector.component.d.ts +0 -42
- package/lib/components/molecules/popover-selector/types.d.ts +0 -69
- package/lib/components/molecules/progress-status/progress-status.component.d.ts +0 -23
- package/lib/components/molecules/progress-status/types.d.ts +0 -20
- package/lib/components/molecules/prompter/prompter.component.d.ts +0 -10
- package/lib/components/molecules/prompter/types.d.ts +0 -25
- package/lib/components/molecules/quote-box/quote-box.component.d.ts +0 -26
- package/lib/components/molecules/radio-input/radio-input.component.d.ts +0 -15
- package/lib/components/molecules/raffle-status-card/raffle-status-card.component.d.ts +0 -21
- package/lib/components/molecules/raffle-status-card/types.d.ts +0 -108
- package/lib/components/molecules/range-input/range-input.component.d.ts +0 -25
- package/lib/components/molecules/range-input/types.d.ts +0 -59
- package/lib/components/molecules/rating/rating.component.d.ts +0 -23
- package/lib/components/molecules/rating/types.d.ts +0 -41
- package/lib/components/molecules/recap-card/recap-card.component.d.ts +0 -36
- package/lib/components/molecules/recap-card/types.d.ts +0 -30
- package/lib/components/molecules/refresher/refresher.component.d.ts +0 -84
- package/lib/components/molecules/refresher/types.d.ts +0 -86
- package/lib/components/molecules/searchbar/searchbar.component.d.ts +0 -43
- package/lib/components/molecules/searchbar/types.d.ts +0 -33
- package/lib/components/molecules/segment-control/segment-control.component.d.ts +0 -35
- package/lib/components/molecules/segment-control/types.d.ts +0 -46
- package/lib/components/molecules/select-input/select-input.component.d.ts +0 -48
- package/lib/components/molecules/select-search/select-search.component.d.ts +0 -76
- package/lib/components/molecules/share-buttons/share-buttons.component.d.ts +0 -22
- package/lib/components/molecules/share-buttons/types.d.ts +0 -108
- package/lib/components/molecules/stats-card/stats-card.component.d.ts +0 -20
- package/lib/components/molecules/stats-card/types.d.ts +0 -60
- package/lib/components/molecules/stepper/stepper.component.d.ts +0 -31
- package/lib/components/molecules/stepper/types.d.ts +0 -66
- package/lib/components/molecules/swipe-carousel/swipe-carousel.component.d.ts +0 -66
- package/lib/components/molecules/swipe-carousel/types.d.ts +0 -35
- package/lib/components/molecules/tabs/tabs.component.d.ts +0 -34
- package/lib/components/molecules/tabs/types.d.ts +0 -45
- package/lib/components/molecules/testimonial-card/testimonial-card.component.d.ts +0 -41
- package/lib/components/molecules/testimonial-card/types.d.ts +0 -25
- package/lib/components/molecules/text-input/text-input.component.d.ts +0 -42
- package/lib/components/molecules/textarea-input/textarea-input.component.d.ts +0 -46
- package/lib/components/molecules/textarea-input/types.d.ts +0 -74
- package/lib/components/molecules/ticket-grid/ticket-grid.component.d.ts +0 -40
- package/lib/components/molecules/ticket-grid/types.d.ts +0 -122
- package/lib/components/molecules/timeline/timeline.component.d.ts +0 -14
- package/lib/components/molecules/timeline/types.d.ts +0 -39
- package/lib/components/molecules/title-block/title-block.component.d.ts +0 -12
- package/lib/components/molecules/title-block/types.d.ts +0 -15
- package/lib/components/molecules/toggle-input/toggle-input.component.d.ts +0 -39
- package/lib/components/molecules/toggle-input/types.d.ts +0 -30
- package/lib/components/molecules/update-banner/update-banner.component.d.ts +0 -42
- package/lib/components/molecules/username-input/types.d.ts +0 -34
- package/lib/components/molecules/username-input/username-input.component.d.ts +0 -45
- package/lib/components/molecules/winner-display/types.d.ts +0 -103
- package/lib/components/molecules/winner-display/winner-display.component.d.ts +0 -36
- package/lib/components/organisms/article/article.component.d.ts +0 -108
- package/lib/components/organisms/article/types.d.ts +0 -359
- package/lib/components/organisms/avatar-upload/avatar-upload.component.d.ts +0 -84
- package/lib/components/organisms/avatar-upload/types.d.ts +0 -62
- package/lib/components/organisms/banner/banner.component.d.ts +0 -16
- package/lib/components/organisms/banner/types.d.ts +0 -29
- package/lib/components/organisms/bottom-nav/bottom-nav.component.d.ts +0 -88
- package/lib/components/organisms/bottom-nav/types.d.ts +0 -118
- package/lib/components/organisms/cards-carousel/cards-carousel.component.d.ts +0 -30
- package/lib/components/organisms/cards-carousel/types.d.ts +0 -11
- package/lib/components/organisms/comment-section/comment-section.component.d.ts +0 -50
- package/lib/components/organisms/comment-section/types.d.ts +0 -144
- package/lib/components/organisms/company-footer/company-footer.component.d.ts +0 -37
- package/lib/components/organisms/company-footer/types.d.ts +0 -15
- package/lib/components/organisms/data-table/data-table.component.d.ts +0 -63
- package/lib/components/organisms/data-table/types.d.ts +0 -219
- package/lib/components/organisms/docs-sidebar/docs-sidebar.component.d.ts +0 -51
- package/lib/components/organisms/docs-sidebar/types.d.ts +0 -93
- package/lib/components/organisms/docs-toc/docs-toc.component.d.ts +0 -62
- package/lib/components/organisms/docs-toc/types.d.ts +0 -62
- package/lib/components/organisms/footer/footer.component.d.ts +0 -36
- package/lib/components/organisms/footer/types.d.ts +0 -16
- package/lib/components/organisms/form/factory.d.ts +0 -17
- package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +0 -17
- package/lib/components/organisms/form/form.component.d.ts +0 -48
- package/lib/components/organisms/fun-header/fun-header.component.d.ts +0 -72
- package/lib/components/organisms/fun-header/types.d.ts +0 -28
- package/lib/components/organisms/header/header.component.d.ts +0 -22
- package/lib/components/organisms/header/types.d.ts +0 -16
- package/lib/components/organisms/infinite-list/infinite-list.component.d.ts +0 -113
- package/lib/components/organisms/infinite-list/types.d.ts +0 -197
- package/lib/components/organisms/item-list/item-list.component.d.ts +0 -43
- package/lib/components/organisms/item-list/types.d.ts +0 -126
- package/lib/components/organisms/login/login.component.d.ts +0 -79
- package/lib/components/organisms/login/types.d.ts +0 -70
- package/lib/components/organisms/menu/menu.component.d.ts +0 -44
- package/lib/components/organisms/menu/types.d.ts +0 -23
- package/lib/components/organisms/no-content/no-content.component.d.ts +0 -14
- package/lib/components/organisms/no-content/types.d.ts +0 -17
- package/lib/components/organisms/rotating-text/rotating-text.component.d.ts +0 -47
- package/lib/components/organisms/rotating-text/types.d.ts +0 -28
- package/lib/components/organisms/tabbed-content/tabbed-content.component.d.ts +0 -65
- package/lib/components/organisms/tabbed-content/types.d.ts +0 -53
- package/lib/components/organisms/terminal-404/terminal-404.component.d.ts +0 -42
- package/lib/components/organisms/terminal-404/types.d.ts +0 -22
- package/lib/components/organisms/testimonial-carousel/testimonial-carousel.component.d.ts +0 -33
- package/lib/components/organisms/testimonial-carousel/types.d.ts +0 -8
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +0 -85
- package/lib/components/organisms/toolbar/types.d.ts +0 -31
- package/lib/components/organisms/wizard/types.d.ts +0 -42
- package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +0 -23
- package/lib/components/organisms/wizard/wizard.component.d.ts +0 -27
- package/lib/components/templates/auth-background/auth-background.component.d.ts +0 -59
- package/lib/components/templates/auth-background/types.d.ts +0 -30
- package/lib/components/templates/docs-layout/docs-layout.component.d.ts +0 -42
- package/lib/components/templates/docs-layout/types.d.ts +0 -39
- package/lib/components/templates/docs-page/docs-page.component.d.ts +0 -61
- package/lib/components/templates/docs-page/types.d.ts +0 -121
- package/lib/components/templates/docs-shell/docs-shell.component.d.ts +0 -33
- package/lib/components/templates/docs-shell/types.d.ts +0 -152
- package/lib/components/templates/layout/layout.component.d.ts +0 -5
- package/lib/components/templates/maintenance-page/maintenance-page.component.d.ts +0 -57
- package/lib/components/templates/maintenance-page/types.d.ts +0 -12
- package/lib/components/templates/page-content/page-content.component.d.ts +0 -107
- package/lib/components/templates/page-content/types.d.ts +0 -27
- package/lib/components/templates/page-template/page-template.component.d.ts +0 -54
- package/lib/components/templates/page-template/types.d.ts +0 -17
- package/lib/components/templates/page-wrapper/page-wrapper.component.d.ts +0 -89
- package/lib/components/templates/page-wrapper/types.d.ts +0 -19
- package/lib/components/templates/simple/simple.component.d.ts +0 -14
- package/lib/components/templates/simple/types.d.ts +0 -10
- package/lib/components/types.d.ts +0 -289
- package/lib/config/company-footer.config.d.ts +0 -98
- package/lib/services/ads/ads-loader.service.d.ts +0 -41
- package/lib/services/ads/ads.service.d.ts +0 -99
- package/lib/services/ads/config.d.ts +0 -53
- package/lib/services/ads/index.d.ts +0 -9
- package/lib/services/ads/types.d.ts +0 -106
- package/lib/services/app-config/app-config.service.d.ts +0 -115
- package/lib/services/app-config/config.d.ts +0 -31
- package/lib/services/app-config/index.d.ts +0 -47
- package/lib/services/app-config/types.d.ts +0 -54
- package/lib/services/app-config/version.d.ts +0 -64
- package/lib/services/auth/auth-state.service.d.ts +0 -92
- package/lib/services/auth/auth.service.d.ts +0 -401
- package/lib/services/auth/config.d.ts +0 -38
- package/lib/services/auth/device.service.d.ts +0 -101
- package/lib/services/auth/guards.d.ts +0 -123
- package/lib/services/auth/index.d.ts +0 -83
- package/lib/services/auth/interceptor.d.ts +0 -22
- package/lib/services/auth/oauth-callback.component.d.ts +0 -34
- package/lib/services/auth/oauth.service.d.ts +0 -99
- package/lib/services/auth/session.service.d.ts +0 -60
- package/lib/services/auth/storage.service.d.ts +0 -52
- package/lib/services/auth/sync.service.d.ts +0 -49
- package/lib/services/auth/token.service.d.ts +0 -57
- package/lib/services/auth/types.d.ts +0 -842
- package/lib/services/confirmation-dialog/confirmation-dialog.service.d.ts +0 -71
- package/lib/services/confirmation-dialog/types.d.ts +0 -61
- package/lib/services/docs/docs-navigation.service.d.ts +0 -51
- package/lib/services/download.service.d.ts +0 -21
- package/lib/services/feedback/config.d.ts +0 -35
- package/lib/services/feedback/feedback.service.d.ts +0 -134
- package/lib/services/feedback/index.d.ts +0 -40
- package/lib/services/feedback/types.d.ts +0 -173
- package/lib/services/firebase/analytics-error-handler.d.ts +0 -54
- package/lib/services/firebase/analytics-router-tracker.d.ts +0 -51
- package/lib/services/firebase/analytics-types.d.ts +0 -221
- package/lib/services/firebase/analytics.service.d.ts +0 -256
- package/lib/services/firebase/config.d.ts +0 -49
- package/lib/services/firebase/firebase.service.d.ts +0 -251
- package/lib/services/firebase/firestore-collection.d.ts +0 -180
- package/lib/services/firebase/firestore.service.d.ts +0 -312
- package/lib/services/firebase/index.d.ts +0 -44
- package/lib/services/firebase/messaging.service.d.ts +0 -293
- package/lib/services/firebase/notifications.service.d.ts +0 -126
- package/lib/services/firebase/shared-config.d.ts +0 -118
- package/lib/services/firebase/storage.service.d.ts +0 -238
- package/lib/services/firebase/types.d.ts +0 -374
- package/lib/services/firebase/utils/path-builder.d.ts +0 -132
- package/lib/services/firebase/utils/query-builder.d.ts +0 -210
- package/lib/services/i18n/config.d.ts +0 -29
- package/lib/services/i18n/default-content.d.ts +0 -30
- package/lib/services/i18n/i18n.service.d.ts +0 -112
- package/lib/services/i18n/index.d.ts +0 -6
- package/lib/services/i18n/input-i18n.helper.d.ts +0 -70
- package/lib/services/i18n/translate.pipe.d.ts +0 -36
- package/lib/services/i18n/types.d.ts +0 -93
- package/lib/services/icons.service.d.ts +0 -9
- package/lib/services/image/image.service.d.ts +0 -76
- package/lib/services/image/types.d.ts +0 -74
- package/lib/services/in-app-browser.service.d.ts +0 -16
- package/lib/services/link-processor.service.d.ts +0 -104
- package/lib/services/local-storage.service.d.ts +0 -27
- package/lib/services/locale.service.d.ts +0 -52
- package/lib/services/meta/meta.service.d.ts +0 -23
- package/lib/services/meta/types.d.ts +0 -12
- package/lib/services/modal/modal.service.d.ts +0 -100
- package/lib/services/modal/simple-modal-content.component.d.ts +0 -19
- package/lib/services/modal/types.d.ts +0 -155
- package/lib/services/navigation/navigation.service.d.ts +0 -134
- package/lib/services/navigation/types.d.ts +0 -67
- package/lib/services/pagination/index.d.ts +0 -2
- package/lib/services/pagination/pagination.service.d.ts +0 -43
- package/lib/services/pagination/types.d.ts +0 -113
- package/lib/services/presets/config.d.ts +0 -32
- package/lib/services/presets/index.d.ts +0 -3
- package/lib/services/presets/preset.service.d.ts +0 -69
- package/lib/services/presets/types.d.ts +0 -39
- package/lib/services/qr-generator/qr-generator.service.d.ts +0 -115
- package/lib/services/qr-generator/types.d.ts +0 -141
- package/lib/services/skeleton/config.d.ts +0 -30
- package/lib/services/skeleton/directives/loading.directive.d.ts +0 -71
- package/lib/services/skeleton/index.d.ts +0 -10
- package/lib/services/skeleton/skeleton.service.d.ts +0 -127
- package/lib/services/skeleton/templates/detail-skeleton.component.d.ts +0 -18
- package/lib/services/skeleton/templates/form-skeleton.component.d.ts +0 -22
- package/lib/services/skeleton/templates/grid-skeleton.component.d.ts +0 -18
- package/lib/services/skeleton/templates/list-skeleton.component.d.ts +0 -17
- package/lib/services/skeleton/templates/profile-skeleton.component.d.ts +0 -20
- package/lib/services/skeleton/templates/table-skeleton.component.d.ts +0 -17
- package/lib/services/skeleton/types.d.ts +0 -111
- package/lib/services/theme.service.d.ts +0 -70
- package/lib/services/toast.service.d.ts +0 -22
- package/lib/services/types.d.ts +0 -1
- package/lib/shared/constants/storage.d.ts +0 -2
- package/lib/shared/pipes/process-links.pipe.d.ts +0 -55
- package/lib/shared/utils/dom.d.ts +0 -13
- package/lib/shared/utils/form-defaults.d.ts +0 -30
- package/lib/shared/utils/styles.d.ts +0 -13
- package/lib/shared/utils/text.d.ts +0 -11
- package/lib/version.d.ts +0 -5
- package/public-api.d.ts +0 -295
- /package/{lib/components/molecules/image-crop/index.d.ts → src/lib/components/molecules/image-crop/index.ts} +0 -0
- /package/{lib/config/index.d.ts → src/lib/config/index.ts} +0 -0
- /package/{lib/services/image/index.d.ts → src/lib/services/image/index.ts} +0 -0
- /package/{lib/services/meta/index.d.ts → src/lib/services/meta/index.ts} +0 -0
- /package/{lib/services/navigation/index.d.ts → src/lib/services/navigation/index.ts} +0 -0
|
@@ -1,456 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Firebase Service
|
|
3
|
-
*
|
|
4
|
-
* Servicio principal para la autenticación con Firebase usando Custom Tokens.
|
|
5
|
-
* Permite que usuarios autenticados con tu backend (Cognito, etc.) accedan
|
|
6
|
-
* a servicios de Firebase (Firestore, Storage, FCM) de manera segura.
|
|
7
|
-
*/
|
|
8
|
-
import { Inject, Injectable } from '@angular/core';
|
|
9
|
-
import { authState, signInWithCustomToken, signOut } from '@angular/fire/auth';
|
|
10
|
-
import { BehaviorSubject, distinctUntilChanged, map } from 'rxjs';
|
|
11
|
-
import { VALTECH_FIREBASE_CONFIG } from './config';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "@angular/fire/auth";
|
|
14
|
-
/**
|
|
15
|
-
* Servicio de autenticación de Firebase.
|
|
16
|
-
*
|
|
17
|
-
* Este servicio NO maneja el login de usuarios directamente.
|
|
18
|
-
* En su lugar, trabaja con Custom Tokens generados por tu backend.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* // Después de autenticarte con tu backend (ej: Cognito)
|
|
23
|
-
* @Component({...})
|
|
24
|
-
* export class LoginComponent {
|
|
25
|
-
* private authService = inject(AuthService); // Tu servicio de auth
|
|
26
|
-
* private firebase = inject(FirebaseService); // Este servicio
|
|
27
|
-
*
|
|
28
|
-
* async login(email: string, password: string) {
|
|
29
|
-
* // 1. Autenticar con tu backend
|
|
30
|
-
* const response = await this.authService.login(email, password);
|
|
31
|
-
*
|
|
32
|
-
* // 2. El backend devuelve un Firebase Custom Token
|
|
33
|
-
* if (response.firebaseToken) {
|
|
34
|
-
* await this.firebase.signInWithCustomToken(response.firebaseToken);
|
|
35
|
-
* }
|
|
36
|
-
*
|
|
37
|
-
* // Ahora el usuario puede acceder a Firestore, Storage, etc.
|
|
38
|
-
* }
|
|
39
|
-
*
|
|
40
|
-
* async logout() {
|
|
41
|
-
* await this.authService.logout();
|
|
42
|
-
* await this.firebase.signOut();
|
|
43
|
-
* }
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export class FirebaseService {
|
|
48
|
-
constructor(auth, config) {
|
|
49
|
-
this.auth = auth;
|
|
50
|
-
this.config = config;
|
|
51
|
-
/** Estado interno de la sesión */
|
|
52
|
-
this.sessionState = new BehaviorSubject({
|
|
53
|
-
user: null,
|
|
54
|
-
isAuthenticated: false,
|
|
55
|
-
isLoading: true,
|
|
56
|
-
error: null,
|
|
57
|
-
});
|
|
58
|
-
/** Estado actual de la sesión como Observable */
|
|
59
|
-
this.state$ = this.sessionState.asObservable();
|
|
60
|
-
// Inicializar observables que dependen de auth
|
|
61
|
-
this.user$ = authState(this.auth).pipe(map((user) => (user ? this.mapUser(user) : null)), distinctUntilChanged((a, b) => a?.uid === b?.uid));
|
|
62
|
-
this.isAuthenticated$ = this.user$.pipe(map((user) => !!user), distinctUntilChanged());
|
|
63
|
-
// Escuchar cambios en el estado de autenticación
|
|
64
|
-
authState(this.auth).subscribe({
|
|
65
|
-
next: (user) => {
|
|
66
|
-
this.sessionState.next({
|
|
67
|
-
user: user ? this.mapUser(user) : null,
|
|
68
|
-
isAuthenticated: !!user,
|
|
69
|
-
isLoading: false,
|
|
70
|
-
error: null,
|
|
71
|
-
});
|
|
72
|
-
},
|
|
73
|
-
error: (error) => {
|
|
74
|
-
this.sessionState.next({
|
|
75
|
-
user: null,
|
|
76
|
-
isAuthenticated: false,
|
|
77
|
-
isLoading: false,
|
|
78
|
-
error,
|
|
79
|
-
});
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
// ===========================================================================
|
|
84
|
-
// AUTENTICACIÓN
|
|
85
|
-
// ===========================================================================
|
|
86
|
-
/**
|
|
87
|
-
* Autentica al usuario con un Custom Token generado por el backend.
|
|
88
|
-
*
|
|
89
|
-
* @param token - Firebase Custom Token generado por tu backend
|
|
90
|
-
* @returns UserCredential con la información del usuario
|
|
91
|
-
* @throws Error si el token es inválido o expiró
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```typescript
|
|
95
|
-
* // Después de login exitoso con tu backend
|
|
96
|
-
* const { firebaseToken } = await backendAuth.login(email, password);
|
|
97
|
-
* await firebaseService.signInWithCustomToken(firebaseToken);
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
async signInWithCustomToken(token) {
|
|
101
|
-
try {
|
|
102
|
-
const credential = await signInWithCustomToken(this.auth, token);
|
|
103
|
-
// Forzar refresh del token para asegurar que los claims estén actualizados
|
|
104
|
-
// Esto es necesario porque getIdTokenResult() cachea el resultado
|
|
105
|
-
if (credential.user) {
|
|
106
|
-
await credential.user.getIdToken(true);
|
|
107
|
-
}
|
|
108
|
-
return credential;
|
|
109
|
-
}
|
|
110
|
-
catch (error) {
|
|
111
|
-
const message = this.getErrorMessage(error);
|
|
112
|
-
throw new Error(message);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Cierra la sesión de Firebase.
|
|
117
|
-
* Llamar junto con el logout de tu sistema de autenticación principal.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* async logout() {
|
|
122
|
-
* await this.backendAuth.logout(); // Tu auth
|
|
123
|
-
* await this.firebase.signOut(); // Firebase
|
|
124
|
-
* }
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
async signOut() {
|
|
128
|
-
try {
|
|
129
|
-
await signOut(this.auth);
|
|
130
|
-
}
|
|
131
|
-
catch (error) {
|
|
132
|
-
const message = this.getErrorMessage(error);
|
|
133
|
-
throw new Error(message);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
// ===========================================================================
|
|
137
|
-
// GETTERS SÍNCRONOS
|
|
138
|
-
// ===========================================================================
|
|
139
|
-
/**
|
|
140
|
-
* Obtiene el usuario actual de Firebase (síncrono).
|
|
141
|
-
* Retorna null si no hay usuario autenticado.
|
|
142
|
-
*/
|
|
143
|
-
get currentUser() {
|
|
144
|
-
const user = this.auth.currentUser;
|
|
145
|
-
return user ? this.mapUser(user) : null;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Obtiene el UID del usuario actual.
|
|
149
|
-
* Retorna null si no hay usuario autenticado.
|
|
150
|
-
*/
|
|
151
|
-
get uid() {
|
|
152
|
-
return this.auth.currentUser?.uid ?? null;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Indica si hay un usuario autenticado actualmente.
|
|
156
|
-
*/
|
|
157
|
-
get isAuthenticated() {
|
|
158
|
-
return !!this.auth.currentUser;
|
|
159
|
-
}
|
|
160
|
-
// ===========================================================================
|
|
161
|
-
// TOKENS
|
|
162
|
-
// ===========================================================================
|
|
163
|
-
/**
|
|
164
|
-
* Obtiene el ID Token de Firebase para el usuario actual.
|
|
165
|
-
* Útil para validar el usuario en tu backend.
|
|
166
|
-
*
|
|
167
|
-
* @param forceRefresh - Si true, fuerza la renovación del token
|
|
168
|
-
* @returns ID Token o null si no hay usuario
|
|
169
|
-
*/
|
|
170
|
-
async getIdToken(forceRefresh = false) {
|
|
171
|
-
const user = this.auth.currentUser;
|
|
172
|
-
if (!user)
|
|
173
|
-
return null;
|
|
174
|
-
try {
|
|
175
|
-
return await user.getIdToken(forceRefresh);
|
|
176
|
-
}
|
|
177
|
-
catch {
|
|
178
|
-
return null;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Obtiene los claims personalizados del token del usuario.
|
|
183
|
-
* Los claims son establecidos por tu backend al crear el Custom Token.
|
|
184
|
-
*
|
|
185
|
-
* @param forceRefresh - Si true, fuerza la renovación del token para obtener claims actualizados
|
|
186
|
-
* @returns Objeto con los claims o vacío si no hay usuario
|
|
187
|
-
*/
|
|
188
|
-
async getClaims(forceRefresh = false) {
|
|
189
|
-
const user = this.auth.currentUser;
|
|
190
|
-
if (!user)
|
|
191
|
-
return {};
|
|
192
|
-
try {
|
|
193
|
-
const result = await user.getIdTokenResult(forceRefresh);
|
|
194
|
-
return result.claims;
|
|
195
|
-
}
|
|
196
|
-
catch {
|
|
197
|
-
return {};
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Verifica si el usuario tiene un rol específico.
|
|
202
|
-
* El rol debe estar definido en los claims del Custom Token.
|
|
203
|
-
*
|
|
204
|
-
* @param role - Nombre del rol a verificar
|
|
205
|
-
* @returns true si el usuario tiene el rol
|
|
206
|
-
*/
|
|
207
|
-
async hasRole(role) {
|
|
208
|
-
const claims = await this.getClaims();
|
|
209
|
-
return claims['role'] === role || (Array.isArray(claims['roles']) && claims['roles'].includes(role));
|
|
210
|
-
}
|
|
211
|
-
// ===========================================================================
|
|
212
|
-
// RBAC - PERMISOS Y ORGANIZACIONES
|
|
213
|
-
// ===========================================================================
|
|
214
|
-
/**
|
|
215
|
-
* Obtiene las memberships (organizaciones) del usuario.
|
|
216
|
-
* Cada membership contiene el rol y permisos en esa organización.
|
|
217
|
-
*
|
|
218
|
-
* @param forceRefresh - Si true, fuerza la renovación del token
|
|
219
|
-
* @returns Mapa de orgId → MembershipInfo
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* ```typescript
|
|
223
|
-
* const memberships = await firebaseService.getMemberships();
|
|
224
|
-
* // { 'org_abc': { roleId: 'admin', roleName: 'admin', permissions: ['users:*', ...] } }
|
|
225
|
-
* ```
|
|
226
|
-
*/
|
|
227
|
-
async getMemberships(forceRefresh = false) {
|
|
228
|
-
const claims = await this.getClaims(forceRefresh);
|
|
229
|
-
return claims['memberships'] || {};
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Obtiene la organización activa del usuario.
|
|
233
|
-
* La organización activa se establece al hacer login o al cambiar de org.
|
|
234
|
-
*
|
|
235
|
-
* @param forceRefresh - Si true, fuerza la renovación del token
|
|
236
|
-
* @returns ID de la organización activa o null si no hay ninguna
|
|
237
|
-
*/
|
|
238
|
-
async getActiveOrg(forceRefresh = false) {
|
|
239
|
-
const claims = await this.getClaims(forceRefresh);
|
|
240
|
-
return claims['activeOrg'] || null;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Obtiene información de todas las organizaciones del usuario.
|
|
244
|
-
*
|
|
245
|
-
* @param forceRefresh - Si true, fuerza la renovación del token
|
|
246
|
-
* @returns Array con información de cada organización
|
|
247
|
-
*/
|
|
248
|
-
async getOrganizations(forceRefresh = false) {
|
|
249
|
-
const memberships = await this.getMemberships(forceRefresh);
|
|
250
|
-
return Object.entries(memberships).map(([id, info]) => ({
|
|
251
|
-
id,
|
|
252
|
-
roleId: info.roleId,
|
|
253
|
-
roleName: info.roleName,
|
|
254
|
-
permissions: info.permissions,
|
|
255
|
-
}));
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Obtiene los IDs de todas las organizaciones del usuario.
|
|
259
|
-
*
|
|
260
|
-
* @returns Array de IDs de organizaciones
|
|
261
|
-
*/
|
|
262
|
-
async getOrganizationIds() {
|
|
263
|
-
const memberships = await this.getMemberships();
|
|
264
|
-
return Object.keys(memberships);
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Verifica si el usuario pertenece a una organización.
|
|
268
|
-
*
|
|
269
|
-
* @param orgId - ID de la organización
|
|
270
|
-
* @returns true si el usuario es miembro
|
|
271
|
-
*/
|
|
272
|
-
async isMemberOf(orgId) {
|
|
273
|
-
const memberships = await this.getMemberships();
|
|
274
|
-
return orgId in memberships;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Obtiene el rol del usuario en una organización.
|
|
278
|
-
*
|
|
279
|
-
* @param orgId - ID de la organización
|
|
280
|
-
* @returns ID del rol o null si no es miembro
|
|
281
|
-
*/
|
|
282
|
-
async getRoleInOrg(orgId) {
|
|
283
|
-
const memberships = await this.getMemberships();
|
|
284
|
-
return memberships[orgId]?.roleId || null;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Obtiene los permisos del usuario en una organización.
|
|
288
|
-
*
|
|
289
|
-
* @param orgId - ID de la organización
|
|
290
|
-
* @returns Array de permisos en formato 'resource:action'
|
|
291
|
-
*/
|
|
292
|
-
async getPermissionsInOrg(orgId) {
|
|
293
|
-
const memberships = await this.getMemberships();
|
|
294
|
-
return memberships[orgId]?.permissions || [];
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Verifica si el usuario tiene un permiso específico en una organización.
|
|
298
|
-
* Soporta wildcards: 'resource:*' y '*:*' (super admin).
|
|
299
|
-
*
|
|
300
|
-
* @param orgId - ID de la organización
|
|
301
|
-
* @param resource - Recurso a verificar (ej: 'users', 'documents')
|
|
302
|
-
* @param action - Acción a verificar (ej: 'read', 'write', 'create', 'delete')
|
|
303
|
-
* @returns true si tiene el permiso
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```typescript
|
|
307
|
-
* // Verificar permiso específico
|
|
308
|
-
* const canReadUsers = await firebaseService.hasPermission('org_abc', 'users', 'read');
|
|
309
|
-
*
|
|
310
|
-
* // Verificar en la organización activa
|
|
311
|
-
* const orgId = await firebaseService.getActiveOrg();
|
|
312
|
-
* const canEdit = await firebaseService.hasPermission(orgId!, 'documents', 'write');
|
|
313
|
-
* ```
|
|
314
|
-
*/
|
|
315
|
-
async hasPermission(orgId, resource, action) {
|
|
316
|
-
const permissions = await this.getPermissionsInOrg(orgId);
|
|
317
|
-
const permission = `${resource}:${action}`;
|
|
318
|
-
return (permissions.includes(permission) ||
|
|
319
|
-
permissions.includes(`${resource}:*`) ||
|
|
320
|
-
permissions.includes('*:*'));
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Verifica si el usuario puede leer un recurso en una organización.
|
|
324
|
-
* Atajo para hasPermission(orgId, resource, 'read').
|
|
325
|
-
*/
|
|
326
|
-
async canRead(orgId, resource) {
|
|
327
|
-
return this.hasPermission(orgId, resource, 'read');
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Verifica si el usuario puede escribir un recurso en una organización.
|
|
331
|
-
* Atajo para hasPermission(orgId, resource, 'write').
|
|
332
|
-
*/
|
|
333
|
-
async canWrite(orgId, resource) {
|
|
334
|
-
return this.hasPermission(orgId, resource, 'write');
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Verifica si el usuario puede crear un recurso en una organización.
|
|
338
|
-
* Atajo para hasPermission(orgId, resource, 'create').
|
|
339
|
-
*/
|
|
340
|
-
async canCreate(orgId, resource) {
|
|
341
|
-
return this.hasPermission(orgId, resource, 'create');
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Verifica si el usuario puede eliminar un recurso en una organización.
|
|
345
|
-
* Atajo para hasPermission(orgId, resource, 'delete').
|
|
346
|
-
*/
|
|
347
|
-
async canDelete(orgId, resource) {
|
|
348
|
-
return this.hasPermission(orgId, resource, 'delete');
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Verifica si el usuario puede administrar un recurso en una organización.
|
|
352
|
-
* Equivale a tener 'resource:*' o '*:*'.
|
|
353
|
-
*/
|
|
354
|
-
async canManage(orgId, resource) {
|
|
355
|
-
const permissions = await this.getPermissionsInOrg(orgId);
|
|
356
|
-
return permissions.includes(`${resource}:*`) || permissions.includes('*:*');
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Verifica si el usuario es super admin en una organización.
|
|
360
|
-
* Super admin tiene el permiso '*:*'.
|
|
361
|
-
*/
|
|
362
|
-
async isSuperAdmin(orgId) {
|
|
363
|
-
const permissions = await this.getPermissionsInOrg(orgId);
|
|
364
|
-
return permissions.includes('*:*');
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Verifica si el usuario es admin en una organización.
|
|
368
|
-
*/
|
|
369
|
-
async isAdminInOrg(orgId) {
|
|
370
|
-
const role = await this.getRoleInOrg(orgId);
|
|
371
|
-
return role === 'admin' || role === 'super_admin';
|
|
372
|
-
}
|
|
373
|
-
// ===========================================================================
|
|
374
|
-
// UTILIDADES
|
|
375
|
-
// ===========================================================================
|
|
376
|
-
/**
|
|
377
|
-
* Espera a que el estado de autenticación esté determinado.
|
|
378
|
-
* Útil en guards o al inicializar la app.
|
|
379
|
-
*
|
|
380
|
-
* @returns Usuario actual o null
|
|
381
|
-
*/
|
|
382
|
-
waitForAuth() {
|
|
383
|
-
return new Promise((resolve) => {
|
|
384
|
-
const subscription = this.state$.subscribe((state) => {
|
|
385
|
-
if (!state.isLoading) {
|
|
386
|
-
subscription.unsubscribe();
|
|
387
|
-
resolve(state.user);
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Obtiene la configuración actual de Firebase.
|
|
394
|
-
*/
|
|
395
|
-
getConfig() {
|
|
396
|
-
return this.config;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Indica si los emuladores están habilitados.
|
|
400
|
-
*/
|
|
401
|
-
isUsingEmulators() {
|
|
402
|
-
return !!(this.config.emulator?.firestore || this.config.emulator?.auth || this.config.emulator?.storage);
|
|
403
|
-
}
|
|
404
|
-
// ===========================================================================
|
|
405
|
-
// MÉTODOS PRIVADOS
|
|
406
|
-
// ===========================================================================
|
|
407
|
-
/**
|
|
408
|
-
* Mapea un User de Firebase a nuestra interface FirebaseUser
|
|
409
|
-
*/
|
|
410
|
-
mapUser(user) {
|
|
411
|
-
return {
|
|
412
|
-
uid: user.uid,
|
|
413
|
-
email: user.email,
|
|
414
|
-
displayName: user.displayName,
|
|
415
|
-
photoURL: user.photoURL,
|
|
416
|
-
emailVerified: user.emailVerified,
|
|
417
|
-
isAnonymous: user.isAnonymous,
|
|
418
|
-
providerId: user.providerId,
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Convierte errores de Firebase a mensajes en español
|
|
423
|
-
*/
|
|
424
|
-
getErrorMessage(error) {
|
|
425
|
-
if (error instanceof Error) {
|
|
426
|
-
const code = error.code;
|
|
427
|
-
switch (code) {
|
|
428
|
-
case 'auth/invalid-custom-token':
|
|
429
|
-
return 'Token de autenticación inválido';
|
|
430
|
-
case 'auth/custom-token-mismatch':
|
|
431
|
-
return 'El token no corresponde a este proyecto';
|
|
432
|
-
case 'auth/network-request-failed':
|
|
433
|
-
return 'Error de conexión. Verifica tu conexión a internet';
|
|
434
|
-
case 'auth/too-many-requests':
|
|
435
|
-
return 'Demasiados intentos. Intenta de nuevo más tarde';
|
|
436
|
-
case 'auth/user-disabled':
|
|
437
|
-
return 'Esta cuenta ha sido deshabilitada';
|
|
438
|
-
case 'auth/user-not-found':
|
|
439
|
-
return 'Usuario no encontrado';
|
|
440
|
-
default:
|
|
441
|
-
return error.message || 'Error de autenticación desconocido';
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return 'Error de autenticación desconocido';
|
|
445
|
-
}
|
|
446
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FirebaseService, deps: [{ token: i1.Auth }, { token: VALTECH_FIREBASE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
447
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FirebaseService, providedIn: 'root' }); }
|
|
448
|
-
}
|
|
449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FirebaseService, decorators: [{
|
|
450
|
-
type: Injectable,
|
|
451
|
-
args: [{ providedIn: 'root' }]
|
|
452
|
-
}], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
453
|
-
type: Inject,
|
|
454
|
-
args: [VALTECH_FIREBASE_CONFIG]
|
|
455
|
-
}] }] });
|
|
456
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlyZWJhc2Uuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjp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XG4gICAgICAgICAgaXNMb2FkaW5nOiBmYWxzZSxcbiAgICAgICAgICBlcnJvcjogbnVsbCxcbiAgICAgICAgfSk7XG4gICAgICB9LFxuICAgICAgZXJyb3I6IChlcnJvcikgPT4ge1xuICAgICAgICB0aGlzLnNlc3Npb25TdGF0ZS5uZXh0KHtcbiAgICAgICAgICB1c2VyOiBudWxsLFxuICAgICAgICAgIGlzQXV0aGVudGljYXRlZDogZmFsc2UsXG4gICAgICAgICAgaXNMb2FkaW5nOiBmYWxzZSxcbiAgICAgICAgICBlcnJvcixcbiAgICAgICAgfSk7XG4gICAgICB9LFxuICAgIH0pO1xuICB9XG5cbiAgLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4gIC8vIEFVVEVOVElDQUNJw5NOXG4gIC8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG4gIC8qKlxuICAgKiBBdXRlbnRpY2EgYWwgdXN1YXJpbyBjb24gdW4gQ3VzdG9tIFRva2VuIGdlbmVyYWRvIHBvciBlbCBiYWNrZW5kLlxuICAgKlxuICAgKiBAcGFyYW0gdG9rZW4gLSBGaXJlYmFzZSBDdXN0b20gVG9rZW4gZ2VuZXJhZG8gcG9yIHR1IGJhY2tlbmRcbiAgICogQHJldHVybnMgVXNlckNyZWRlbnRpYWwgY29uIGxhIGluZm9ybWFjacOzbiBkZWwgdXN1YXJpb1xuICAgKiBAdGhyb3dzIEVycm9yIHNpIGVsIHRva2VuIGVzIGludsOhbGlkbyBvIGV4cGlyw7NcbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiAvLyBEZXNwdcOpcyBkZSBsb2dpbiBleGl0b3NvIGNvbiB0dSBiYWNrZW5kXG4gICAqIGNvbnN0IHsgZmlyZWJhc2VUb2tlbiB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iBgYGB0eXBlc2NyaXB0XG4gICAqIGFzeW5jIGxvZ291dCgpIHtcbiAgICogICBhd2FpdCB0aGlzLmJhY2tlbmRBdXRoLmxvZ291dCgpOyAgICAvLyBUdSBhdXRoXG4gICAqICAgYXdhaXQgdGhpcy5maXJlYmFzZS5zaWduT3V0KCk7ICAgICAgIC8vIEZpcmViYXNlXG4gICAqIH1cbiAgICogYGBgXG4gICAqL1xuICBhc3luYyBzaWduT3V0KCk6IFByb21pc2U8dm9pZD4ge1xuICAgIHRyeSB7XG4gICAgICBhd2FpdCBzaWduT3V0KHRoaXMuYXV0aCk7XG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgIGNvbnN0IG1lc3NhZ2UgPSB0aGlzLmdldEVycm9yTWVzc2FnZShlcnJvcik7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSk7XG4gICAgfVxuICB9XG5cbiAgLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4gIC8vIEdFVFRFUlMgU8ONTkNST05PU1xuICAvLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuICAvKipcbiAgICogT2J0aWVuZSBlbCB1c3VhcmlvIGFjdHVhbCBkZSBGaXJlYmFzZSAoc8OtbmNyb25vKS5cbiAgICogUmV0b3JuYSBudWxsIHNpIG5vIGhheSB1c3VhcmlvIGF1dGVudGljYWRvLlxuICAgKi9cbiAgZ2V0IGN1cnJlbnRVc2VyKCk6IEZpcmViYXNlVXNlciB8IG51bGwge1xuICAgIGNvbnN0IHVzZXIgPSB0aGlzLmF1dGguY3VycmVudFVzZXI7XG4gICAgcmV0dXJuIHVzZXIgPyB0aGlzLm1hcFVzZXIodXNlcikgOiBudWxsO1xuICB9XG5cbiAgLyoqXG4gICAqIE9idGllbmUgZWwgVUlEI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RlLmlzTG9hZGluZykge1xuICAgICAgICAgIHN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICAgIHJlc29sdmUoc3RhdGUudXNlcik7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH0pO1xuICB9XG5cbiAgLyoqXG4gICAqIE9idGllbmUgbGEgY29uZmlndXJhY2nDs24gYWN0dWFsIGRlIEZpcmViYXNlLlxuICAgKi9cbiAgZ2V0Q29uZmlnKCk6IFZhbHRlY2hGaXJlYmFzZUNvbmZpZyB7XG4gICAgcmV0dXJuIHRoaXMuY29uZmlnO1xuICB9XG5cbiAgLyoqXG4gICAqIEluZGljYSBzaSBsb3MgZW11bGFkb3JlcyBlc3TDoW4gaGFiaWxpdGFkb3MuXG4gICAqL1xuICBpc1VzaW5nRW11bGF0b3JzKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAhISh0aGlzLmNvbmZpZy5lbXVsYXRvcj8uZmlyZXN0b3JlIHx8IHRoaXMuY29uZmlnLmVtdWxhdG9yPy5hdXRoIHx8IHRoaXMuY29uZmlnLmVtdWxhdG9yPy5zdG9yYWdlKTtcbiAgfVxuXG4gIC8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuICAvLyBNw4lUT0RPUyBQUklWQURPU1xuICAvLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuICAvKipcbiAgICogTWFwZWEgdW4gVXNlciBkZSBGaXJlYmFzZSBhIG51ZXN0cmEgaW50ZXJmYWNlIEZpcmViYXNlVXNlclxuICAgKi9cbiAgcHJpdmF0ZSBtYXBVc2VyKHVzZXI6IFVzZXIpOiBGaXJlYmFzZVVzZXIge1xuICAgIHJldHVybiB7XG4gICAgICB1aWQ6IHVzZXIudWlkLFxuICAgICAgZW1haWw6IHVzZXIuZW1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