valtech-components 2.0.687 → 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 -254
- 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 -199
- 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 -42048
- 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 -175
- 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 -121
- 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,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Path Builder
|
|
3
|
-
*
|
|
4
|
-
* Utilidades para construir rutas de Firestore con templates.
|
|
5
|
-
* Soporta rutas multi-nivel y anidadas.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Construye una ruta de Firestore reemplazando placeholders.
|
|
9
|
-
*
|
|
10
|
-
* @param template - Template con placeholders en formato {param}
|
|
11
|
-
* @param params - Objeto con los valores a reemplazar
|
|
12
|
-
* @returns Ruta construida
|
|
13
|
-
* @throws Error si faltan parámetros requeridos
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* // Ruta simple
|
|
18
|
-
* buildPath('users/{userId}', { userId: 'abc123' });
|
|
19
|
-
* // => 'users/abc123'
|
|
20
|
-
*
|
|
21
|
-
* // Ruta anidada
|
|
22
|
-
* buildPath('users/{userId}/documents/{docId}', {
|
|
23
|
-
* userId: 'abc123',
|
|
24
|
-
* docId: 'doc456'
|
|
25
|
-
* });
|
|
26
|
-
* // => 'users/abc123/documents/doc456'
|
|
27
|
-
*
|
|
28
|
-
* // Múltiples niveles
|
|
29
|
-
* buildPath('orgs/{orgId}/teams/{teamId}/members/{memberId}', {
|
|
30
|
-
* orgId: 'org1',
|
|
31
|
-
* teamId: 'team2',
|
|
32
|
-
* memberId: 'member3'
|
|
33
|
-
* });
|
|
34
|
-
* // => 'orgs/org1/teams/team2/members/member3'
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export function buildPath(template, params) {
|
|
38
|
-
let result = template;
|
|
39
|
-
// Encontrar todos los placeholders
|
|
40
|
-
const placeholders = template.match(/\{([^}]+)\}/g);
|
|
41
|
-
if (!placeholders) {
|
|
42
|
-
return template;
|
|
43
|
-
}
|
|
44
|
-
for (const placeholder of placeholders) {
|
|
45
|
-
const key = placeholder.slice(1, -1); // Remover { y }
|
|
46
|
-
const value = params[key];
|
|
47
|
-
if (value === undefined || value === null) {
|
|
48
|
-
throw new Error(`Parámetro requerido '${key}' no proporcionado para la ruta: ${template}`);
|
|
49
|
-
}
|
|
50
|
-
if (typeof value !== 'string' || value.trim() === '') {
|
|
51
|
-
throw new Error(`El parámetro '${key}' debe ser un string no vacío`);
|
|
52
|
-
}
|
|
53
|
-
// Validar que no contenga caracteres inválidos para Firestore
|
|
54
|
-
if (value.includes('/')) {
|
|
55
|
-
throw new Error(`El parámetro '${key}' no puede contener '/'`);
|
|
56
|
-
}
|
|
57
|
-
result = result.replace(placeholder, value);
|
|
58
|
-
}
|
|
59
|
-
return result;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Extrae los nombres de los parámetros de un template de ruta.
|
|
63
|
-
*
|
|
64
|
-
* @param template - Template de ruta
|
|
65
|
-
* @returns Array con los nombres de los parámetros
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* extractParams('users/{userId}/documents/{docId}');
|
|
70
|
-
* // => ['userId', 'docId']
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
export function extractPathParams(template) {
|
|
74
|
-
const matches = template.match(/\{([^}]+)\}/g);
|
|
75
|
-
if (!matches)
|
|
76
|
-
return [];
|
|
77
|
-
return matches.map((m) => m.slice(1, -1));
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Valida que una ruta de Firestore sea válida.
|
|
81
|
-
*
|
|
82
|
-
* @param path - Ruta a validar
|
|
83
|
-
* @returns true si la ruta es válida
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* isValidPath('users/abc123'); // true
|
|
88
|
-
* isValidPath('users/abc123/documents'); // true
|
|
89
|
-
* isValidPath('users//documents'); // false (segmento vacío)
|
|
90
|
-
* isValidPath(''); // false (vacío)
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
export function isValidPath(path) {
|
|
94
|
-
if (!path || path.trim() === '')
|
|
95
|
-
return false;
|
|
96
|
-
const segments = path.split('/');
|
|
97
|
-
// No puede tener segmentos vacíos
|
|
98
|
-
if (segments.some((s) => s.trim() === ''))
|
|
99
|
-
return false;
|
|
100
|
-
// No puede empezar o terminar con /
|
|
101
|
-
if (path.startsWith('/') || path.endsWith('/'))
|
|
102
|
-
return false;
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Obtiene la ruta de la colección padre de un documento.
|
|
107
|
-
*
|
|
108
|
-
* @param documentPath - Ruta completa del documento
|
|
109
|
-
* @returns Ruta de la colección padre
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* getCollectionPath('users/abc123');
|
|
114
|
-
* // => 'users'
|
|
115
|
-
*
|
|
116
|
-
* getCollectionPath('users/abc123/documents/doc456');
|
|
117
|
-
* // => 'users/abc123/documents'
|
|
118
|
-
* ```
|
|
119
|
-
*/
|
|
120
|
-
export function getCollectionPath(documentPath) {
|
|
121
|
-
const segments = documentPath.split('/');
|
|
122
|
-
if (segments.length < 2) {
|
|
123
|
-
throw new Error(`Ruta de documento inválida: ${documentPath}`);
|
|
124
|
-
}
|
|
125
|
-
return segments.slice(0, -1).join('/');
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Obtiene el ID del documento de una ruta.
|
|
129
|
-
*
|
|
130
|
-
* @param documentPath - Ruta completa del documento
|
|
131
|
-
* @returns ID del documento
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* getDocumentId('users/abc123');
|
|
136
|
-
* // => 'abc123'
|
|
137
|
-
*
|
|
138
|
-
* getDocumentId('users/abc123/documents/doc456');
|
|
139
|
-
* // => 'doc456'
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
export function getDocumentId(documentPath) {
|
|
143
|
-
const segments = documentPath.split('/');
|
|
144
|
-
if (segments.length < 2 || segments.length % 2 !== 0) {
|
|
145
|
-
throw new Error(`Ruta de documento inválida: ${documentPath}`);
|
|
146
|
-
}
|
|
147
|
-
return segments[segments.length - 1];
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Verifica si una ruta apunta a un documento (número par de segmentos).
|
|
151
|
-
*
|
|
152
|
-
* @param path - Ruta a verificar
|
|
153
|
-
* @returns true si es una ruta de documento
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```typescript
|
|
157
|
-
* isDocumentPath('users/abc123'); // true
|
|
158
|
-
* isDocumentPath('users'); // false (colección)
|
|
159
|
-
* isDocumentPath('users/abc123/documents'); // false (colección)
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
export function isDocumentPath(path) {
|
|
163
|
-
const segments = path.split('/').filter((s) => s.trim() !== '');
|
|
164
|
-
return segments.length > 0 && segments.length % 2 === 0;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Verifica si una ruta apunta a una colección (número impar de segmentos).
|
|
168
|
-
*
|
|
169
|
-
* @param path - Ruta a verificar
|
|
170
|
-
* @returns true si es una ruta de colección
|
|
171
|
-
*/
|
|
172
|
-
export function isCollectionPath(path) {
|
|
173
|
-
const segments = path.split('/').filter((s) => s.trim() !== '');
|
|
174
|
-
return segments.length > 0 && segments.length % 2 !== 0;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Combina una ruta base con segmentos adicionales.
|
|
178
|
-
*
|
|
179
|
-
* @param basePath - Ruta base
|
|
180
|
-
* @param segments - Segmentos adicionales
|
|
181
|
-
* @returns Ruta combinada
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* ```typescript
|
|
185
|
-
* joinPath('users', 'abc123', 'documents');
|
|
186
|
-
* // => 'users/abc123/documents'
|
|
187
|
-
* ```
|
|
188
|
-
*/
|
|
189
|
-
export function joinPath(...segments) {
|
|
190
|
-
return segments
|
|
191
|
-
.filter((s) => s && s.trim() !== '')
|
|
192
|
-
.map((s) => s.replace(/^\/+|\/+$/g, '')) // Remover / al inicio y final
|
|
193
|
-
.join('/');
|
|
194
|
-
}
|
|
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B1bmEgcnV0YSBiYXNlIGNvbiBzZWdtZW50b3MgYWRpY2lvbmFsZXMuXG4gKlxuICogQHBhcmFtIGJhc2VQYXRoIC0gUnV0YSBiYXNlXG4gKiBAcGFyYW0gc2VnbWVudHMgLSBTZWdtZW50b3MgYWRpY2lvbmFsZXNcbiAqIEByZXR1cm5zIFJ1dGEgY29tYmluYWRhXG4gKlxuICogQGV4YW1wbGVcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGpvaW5QYXRoKCd1c2VycycsICdhYmMxMjMnLCAnZG9jdW1lbnRzJyk7XG4gKiAvLyA9PiAndXNlcnMvYWJjMTIzL2RvY3VtZW50cydcbiAqIGBgYFxuICovXG5leHBvcnQgZnVuY3Rpb24gam9pblBhdGgoLi4uc2VnbWVudHM6IHN0cmluZ1tdKTogc3RyaW5nIHtcbiAgcmV0dXJuIHNlZ21lbnRzXG4gICAgLmZpbHRlcigocykgPT4gcyAmJiBzLnRyaW0oKSAhPT0gJycpXG4gICAgLm1hcCgocykgPT4gcy5yZXBsYWNlKC9eXFwvK3xcXC8rJC9nLCAnJykpIC8vIFJlbW92ZXIgLyBhbCBpbmljaW8geSBmaW5hbFxuICAgIC5qb2luKCcvJyk7XG59XG4iXX0=
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query Builder
|
|
3
|
-
*
|
|
4
|
-
* Builder fluido para construir queries de Firestore de manera legible.
|
|
5
|
-
* Alternativa más expresiva a pasar objetos QueryOptions directamente.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Builder fluido para queries de Firestore.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* // Construir query con builder
|
|
13
|
-
* const options = new QueryBuilder()
|
|
14
|
-
* .where('status', '==', 'active')
|
|
15
|
-
* .where('age', '>=', 18)
|
|
16
|
-
* .orderBy('createdAt', 'desc')
|
|
17
|
-
* .limit(10)
|
|
18
|
-
* .build();
|
|
19
|
-
*
|
|
20
|
-
* // Usar con FirestoreService
|
|
21
|
-
* const users = await firestoreService.getDocs<User>('users', options);
|
|
22
|
-
*
|
|
23
|
-
* // O con método estático
|
|
24
|
-
* const options2 = QueryBuilder.create()
|
|
25
|
-
* .where('category', '==', 'electronics')
|
|
26
|
-
* .orderBy('price', 'asc')
|
|
27
|
-
* .build();
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export class QueryBuilder {
|
|
31
|
-
constructor() {
|
|
32
|
-
this.whereConditions = [];
|
|
33
|
-
this.orderByConditions = [];
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Crea una nueva instancia del builder (método estático alternativo).
|
|
37
|
-
*/
|
|
38
|
-
static create() {
|
|
39
|
-
return new QueryBuilder();
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Agrega una condición where.
|
|
43
|
-
*
|
|
44
|
-
* @param field - Campo a filtrar
|
|
45
|
-
* @param operator - Operador de comparación
|
|
46
|
-
* @param value - Valor a comparar
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```typescript
|
|
50
|
-
* builder.where('status', '==', 'active')
|
|
51
|
-
* builder.where('price', '>=', 100)
|
|
52
|
-
* builder.where('tags', 'array-contains', 'featured')
|
|
53
|
-
* builder.where('category', 'in', ['electronics', 'books'])
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
where(field, operator, value) {
|
|
57
|
-
this.whereConditions.push({ field, operator, value });
|
|
58
|
-
return this;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Shortcut para where con operador '=='.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```typescript
|
|
65
|
-
* builder.whereEquals('status', 'active')
|
|
66
|
-
* // equivalente a: builder.where('status', '==', 'active')
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
whereEquals(field, value) {
|
|
70
|
-
return this.where(field, '==', value);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Shortcut para where con operador '!='.
|
|
74
|
-
*/
|
|
75
|
-
whereNotEquals(field, value) {
|
|
76
|
-
return this.where(field, '!=', value);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Shortcut para where con operador '>'.
|
|
80
|
-
*/
|
|
81
|
-
whereGreaterThan(field, value) {
|
|
82
|
-
return this.where(field, '>', value);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Shortcut para where con operador '>='.
|
|
86
|
-
*/
|
|
87
|
-
whereGreaterOrEqual(field, value) {
|
|
88
|
-
return this.where(field, '>=', value);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Shortcut para where con operador '<'.
|
|
92
|
-
*/
|
|
93
|
-
whereLessThan(field, value) {
|
|
94
|
-
return this.where(field, '<', value);
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Shortcut para where con operador '<='.
|
|
98
|
-
*/
|
|
99
|
-
whereLessOrEqual(field, value) {
|
|
100
|
-
return this.where(field, '<=', value);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Shortcut para where con operador 'array-contains'.
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```typescript
|
|
107
|
-
* builder.whereArrayContains('tags', 'featured')
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
whereArrayContains(field, value) {
|
|
111
|
-
return this.where(field, 'array-contains', value);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Shortcut para where con operador 'array-contains-any'.
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* builder.whereArrayContainsAny('tags', ['featured', 'new'])
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
whereArrayContainsAny(field, values) {
|
|
122
|
-
return this.where(field, 'array-contains-any', values);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Shortcut para where con operador 'in'.
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* builder.whereIn('status', ['active', 'pending'])
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
whereIn(field, values) {
|
|
133
|
-
return this.where(field, 'in', values);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Shortcut para where con operador 'not-in'.
|
|
137
|
-
*/
|
|
138
|
-
whereNotIn(field, values) {
|
|
139
|
-
return this.where(field, 'not-in', values);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Agrega ordenamiento por un campo.
|
|
143
|
-
*
|
|
144
|
-
* @param field - Campo por el cual ordenar
|
|
145
|
-
* @param direction - Dirección: 'asc' o 'desc' (default: 'asc')
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```typescript
|
|
149
|
-
* builder.orderBy('createdAt', 'desc')
|
|
150
|
-
* builder.orderBy('name') // asc por defecto
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
orderBy(field, direction = 'asc') {
|
|
154
|
-
this.orderByConditions.push({ field, direction });
|
|
155
|
-
return this;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Shortcut para orderBy descendente.
|
|
159
|
-
*/
|
|
160
|
-
orderByDesc(field) {
|
|
161
|
-
return this.orderBy(field, 'desc');
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Shortcut para orderBy ascendente.
|
|
165
|
-
*/
|
|
166
|
-
orderByAsc(field) {
|
|
167
|
-
return this.orderBy(field, 'asc');
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Limita el número de resultados.
|
|
171
|
-
*
|
|
172
|
-
* @param count - Número máximo de documentos
|
|
173
|
-
*
|
|
174
|
-
* @example
|
|
175
|
-
* ```typescript
|
|
176
|
-
* builder.limit(10)
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
limit(count) {
|
|
180
|
-
if (count <= 0) {
|
|
181
|
-
throw new Error('El límite debe ser mayor a 0');
|
|
182
|
-
}
|
|
183
|
-
this.limitValue = count;
|
|
184
|
-
return this;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Cursor para paginación: empezar después de un documento.
|
|
188
|
-
*
|
|
189
|
-
* @param cursor - Documento o snapshot desde donde continuar
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```typescript
|
|
193
|
-
* // Primera página
|
|
194
|
-
* const page1 = await service.getPaginated('users', builder.limit(10).build());
|
|
195
|
-
*
|
|
196
|
-
* // Siguiente página
|
|
197
|
-
* const page2 = await service.getPaginated('users',
|
|
198
|
-
* builder.startAfter(page1.lastDoc).limit(10).build()
|
|
199
|
-
* );
|
|
200
|
-
* ```
|
|
201
|
-
*/
|
|
202
|
-
startAfter(cursor) {
|
|
203
|
-
this.startAfterValue = cursor;
|
|
204
|
-
return this;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Cursor para paginación: empezar en un documento.
|
|
208
|
-
*/
|
|
209
|
-
startAt(cursor) {
|
|
210
|
-
this.startAtValue = cursor;
|
|
211
|
-
return this;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Cursor para paginación: terminar antes de un documento.
|
|
215
|
-
*/
|
|
216
|
-
endBefore(cursor) {
|
|
217
|
-
this.endBeforeValue = cursor;
|
|
218
|
-
return this;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Cursor para paginación: terminar en un documento.
|
|
222
|
-
*/
|
|
223
|
-
endAt(cursor) {
|
|
224
|
-
this.endAtValue = cursor;
|
|
225
|
-
return this;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Construye el objeto QueryOptions.
|
|
229
|
-
*
|
|
230
|
-
* @returns QueryOptions para usar con FirestoreService
|
|
231
|
-
*/
|
|
232
|
-
build() {
|
|
233
|
-
const options = {};
|
|
234
|
-
if (this.whereConditions.length > 0) {
|
|
235
|
-
options.where = [...this.whereConditions];
|
|
236
|
-
}
|
|
237
|
-
if (this.orderByConditions.length > 0) {
|
|
238
|
-
options.orderBy = [...this.orderByConditions];
|
|
239
|
-
}
|
|
240
|
-
if (this.limitValue !== undefined) {
|
|
241
|
-
options.limit = this.limitValue;
|
|
242
|
-
}
|
|
243
|
-
if (this.startAfterValue !== undefined) {
|
|
244
|
-
options.startAfter = this.startAfterValue;
|
|
245
|
-
}
|
|
246
|
-
if (this.startAtValue !== undefined) {
|
|
247
|
-
options.startAt = this.startAtValue;
|
|
248
|
-
}
|
|
249
|
-
if (this.endBeforeValue !== undefined) {
|
|
250
|
-
options.endBefore = this.endBeforeValue;
|
|
251
|
-
}
|
|
252
|
-
if (this.endAtValue !== undefined) {
|
|
253
|
-
options.endAt = this.endAtValue;
|
|
254
|
-
}
|
|
255
|
-
return options;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Resetea el builder para reutilización.
|
|
259
|
-
*/
|
|
260
|
-
reset() {
|
|
261
|
-
this.whereConditions = [];
|
|
262
|
-
this.orderByConditions = [];
|
|
263
|
-
this.limitValue = undefined;
|
|
264
|
-
this.startAfterValue = undefined;
|
|
265
|
-
this.startAtValue = undefined;
|
|
266
|
-
this.endBeforeValue = undefined;
|
|
267
|
-
this.endAtValue = undefined;
|
|
268
|
-
return this;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Clona el builder actual.
|
|
272
|
-
*/
|
|
273
|
-
clone() {
|
|
274
|
-
const cloned = new QueryBuilder();
|
|
275
|
-
cloned.whereConditions = [...this.whereConditions];
|
|
276
|
-
cloned.orderByConditions = [...this.orderByConditions];
|
|
277
|
-
cloned.limitValue = this.limitValue;
|
|
278
|
-
cloned.startAfterValue = this.startAfterValue;
|
|
279
|
-
cloned.startAtValue = this.startAtValue;
|
|
280
|
-
cloned.endBeforeValue = this.endBeforeValue;
|
|
281
|
-
cloned.endAtValue = this.endAtValue;
|
|
282
|
-
return cloned;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Función helper para crear un QueryBuilder.
|
|
287
|
-
*
|
|
288
|
-
* @example
|
|
289
|
-
* ```typescript
|
|
290
|
-
* import { query } from 'valtech-components';
|
|
291
|
-
*
|
|
292
|
-
* const options = query()
|
|
293
|
-
* .where('status', '==', 'active')
|
|
294
|
-
* .orderBy('createdAt', 'desc')
|
|
295
|
-
* .limit(10)
|
|
296
|
-
* .build();
|
|
297
|
-
* ```
|
|
298
|
-
*/
|
|
299
|
-
export function query() {
|
|
300
|
-
return new QueryBuilder();
|
|
301
|
-
}
|
|
302
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYnVpbGRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VydmljZXMvZmlyZWJhc2UvdXRpbHMvcXVlcnktYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7R0FLRztBQUlIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBc0JHO0FBQ0gsTUFBTSxPQUFPLFlBQVk7SUFBekI7UUFDVSxvQkFBZSxHQUFrQixFQUFFLENBQUM7UUFDcEMsc0JBQWlCLEdBQW9CLEVBQUUsQ0FBQztJQThSbEQsQ0FBQztJQXZSQzs7T0FFRztJQUNILE1BQU0sQ0FBQyxNQUFNO1FBQ1gsT0FBTyxJQUFJLFlBQVksRUFBRSxDQUFDO0lBQzVCLENBQUM7SUFFRDs7Ozs7Ozs7Ozs7Ozs7T0FjRztJQUNILEtBQUssQ0FBQyxLQUFhLEVBQUUsUUFBdUIsRUFBRSxLQUFjO1FBQzFELElBQUksQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLEVBQUUsS0FBSyxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsQ0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EF0VmFsdWUgPSB0aGlzLnN0YXJ0QXRWYWx1ZTtcbiAgICBjbG9uZWQuZW5kQmVmb3JlVmFsdWUgPSB0aGlzLmVuZEJlZm9yZVZhbHVlO1xuICAgIGNsb25lZC5lbmRBdFZhbHVlID0gdGhpcy5lbmRBdFZhbHVlO1xuICAgIHJldHVybiBjbG9uZWQ7XG4gIH1cbn1cblxuLyoqXG4gKiBGdW5jacOzbiBoZWxwZXIgcGFyYSBjcmVhciB1biBRdWVyeUJ1aWxkZXIuXG4gKlxuICogQGV4YW1wbGVcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGltcG9ydCB7IHF1ZXJ5IH0gZnJvbSAndmFsdGVjaC1jb21wb25lbnRzJztcbiAqXG4gKiBjb25zdCBvcHRpb25zID0gcXVlcnkoKVxuICogICAud2hlcmUoJ3N0YXR1cycsICc9PScsICdhY3RpdmUnKVxuICogICAub3JkZXJCeSgnY3JlYXRlZEF0JywgJ2Rlc2MnKVxuICogICAubGltaXQoMTApXG4gKiAgIC5idWlsZCgpO1xuICogYGBgXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBxdWVyeSgpOiBRdWVyeUJ1aWxkZXIge1xuICByZXR1cm4gbmV3IFF1ZXJ5QnVpbGRlcigpO1xufVxuIl19
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { makeEnvironmentProviders, APP_INITIALIZER, } from '@angular/core';
|
|
2
|
-
import { DEFAULT_I18N_CONFIG } from './types';
|
|
3
|
-
import { I18nService } from './i18n.service';
|
|
4
|
-
import { VALTECH_DEFAULT_CONTENT } from './default-content';
|
|
5
|
-
/**
|
|
6
|
-
* Configura el sistema de internacionalización de Valtech Components.
|
|
7
|
-
*
|
|
8
|
-
* @param config Configuración de i18n
|
|
9
|
-
* @returns Providers para agregar en app.config.ts
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* // app.config.ts
|
|
13
|
-
* import { provideValtechI18n } from 'valtech-components';
|
|
14
|
-
* import { GLOBAL_CONTENT } from './i18n/_global';
|
|
15
|
-
* import { LOGIN_CONTENT } from './i18n/login.i18n';
|
|
16
|
-
*
|
|
17
|
-
* export const appConfig: ApplicationConfig = {
|
|
18
|
-
* providers: [
|
|
19
|
-
* provideValtechI18n({
|
|
20
|
-
* defaultLanguage: 'es',
|
|
21
|
-
* supportedLanguages: ['es', 'en'],
|
|
22
|
-
* detectBrowserLanguage: true,
|
|
23
|
-
* content: {
|
|
24
|
-
* '_global': GLOBAL_CONTENT,
|
|
25
|
-
* 'Login': LOGIN_CONTENT,
|
|
26
|
-
* }
|
|
27
|
-
* }),
|
|
28
|
-
* ]
|
|
29
|
-
* };
|
|
30
|
-
*/
|
|
31
|
-
export function provideValtechI18n(config = {}) {
|
|
32
|
-
const mergedConfig = { ...DEFAULT_I18N_CONFIG, ...config };
|
|
33
|
-
return makeEnvironmentProviders([
|
|
34
|
-
{
|
|
35
|
-
provide: APP_INITIALIZER,
|
|
36
|
-
useFactory: (i18n) => {
|
|
37
|
-
return () => {
|
|
38
|
-
// Configurar idiomas soportados
|
|
39
|
-
i18n.setI18nLanguages(mergedConfig.supportedLanguages);
|
|
40
|
-
// Determinar contenido a registrar
|
|
41
|
-
let contentToRegister = {};
|
|
42
|
-
if (mergedConfig.includeDefaultContent !== false) {
|
|
43
|
-
// Merge: defaults + user config (user gana)
|
|
44
|
-
contentToRegister = deepMergeContent(VALTECH_DEFAULT_CONTENT, mergedConfig.content || {});
|
|
45
|
-
}
|
|
46
|
-
else if (mergedConfig.content) {
|
|
47
|
-
// Solo contenido del usuario
|
|
48
|
-
contentToRegister = mergedConfig.content;
|
|
49
|
-
}
|
|
50
|
-
// Registrar contenido
|
|
51
|
-
if (Object.keys(contentToRegister).length > 0) {
|
|
52
|
-
i18n.registerContentBulk(contentToRegister);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
deps: [I18nService],
|
|
57
|
-
multi: true,
|
|
58
|
-
},
|
|
59
|
-
]);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Deep merge de ContentStore.
|
|
63
|
-
* El contenido de `override` sobrescribe keys específicas de `base`.
|
|
64
|
-
*
|
|
65
|
-
* @param base - Contenido base (defaults de valtech-components)
|
|
66
|
-
* @param override - Contenido del usuario que sobrescribe
|
|
67
|
-
* @returns ContentStore mergeado
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* const base = { _global: { es: { ok: 'Aceptar' } } };
|
|
71
|
-
* const override = { _global: { es: { ok: 'Dale' } } };
|
|
72
|
-
* // Resultado: { _global: { es: { ok: 'Dale' } } }
|
|
73
|
-
*/
|
|
74
|
-
function deepMergeContent(base, override) {
|
|
75
|
-
const result = {};
|
|
76
|
-
// Copiar todos los namespaces del base
|
|
77
|
-
for (const namespace of Object.keys(base)) {
|
|
78
|
-
result[namespace] = deepMergeLanguagesContent(base[namespace], {});
|
|
79
|
-
}
|
|
80
|
-
// Mergear namespaces del override
|
|
81
|
-
for (const namespace of Object.keys(override)) {
|
|
82
|
-
if (result[namespace]) {
|
|
83
|
-
// Namespace existe en base, hacer deep merge
|
|
84
|
-
result[namespace] = deepMergeLanguagesContent(result[namespace], override[namespace]);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
// Namespace nuevo, copiar completo
|
|
88
|
-
result[namespace] = deepMergeLanguagesContent({}, override[namespace]);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return result;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Deep merge de LanguagesContent (un namespace).
|
|
95
|
-
*/
|
|
96
|
-
function deepMergeLanguagesContent(base, override) {
|
|
97
|
-
const result = {};
|
|
98
|
-
const allLangs = new Set([
|
|
99
|
-
...Object.keys(base),
|
|
100
|
-
...Object.keys(override),
|
|
101
|
-
]);
|
|
102
|
-
for (const lang of allLangs) {
|
|
103
|
-
result[lang] = {
|
|
104
|
-
...(base[lang] || {}),
|
|
105
|
-
...(override[lang] || {}),
|
|
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ZGVEZWZhdWx0Q29udGVudCAhPT0gZmFsc2UpIHtcbiAgICAgICAgICAgIC8vIE1lcmdlOiBkZWZhdWx0cyArIHVzZXIgY29uZmlnICh1c2VyIGdhbmEpXG4gICAgICAgICAgICBjb250ZW50VG9SZWdpc3RlciA9IGRlZXBNZXJnZUNvbnRlbnQoXG4gICAgICAgICAgICAgIFZBTFRFQ0hfREVGQVVMVF9DT05URU5ULFxuICAgICAgICAgICAgICBtZXJnZWRDb25maWcuY29udGVudCB8fCB7fVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9IGVsc2UgaWYgKG1lcmdlZENvbmZpZy5jb250ZW50KSB7XG4gICAgICAgICAgICAvLyBTb2xvIGNvbnRlbmlkbyBkZWwgdXN1YXJpb1xuICAgICAgICAgICAgY29udGVudFRvUmVnaXN0ZXIgPSBtZXJnZWRDb25maWcuY29udGVudDtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAvLyBSZWdpc3RyYXIgY29udGVuaWRvXG4gICAgICAgICAgaWYgKE9iamVjdC5rZXlzKGNvbnRlbnRUb1JlZ2lzdGVyKS5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICBpMThuLnJlZ2lzdGVyQ29udGVudEJ1bGsoY29udGVudFRvUmVnaXN0ZXIpO1xuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgIH0sXG4gICAgICBkZXBzOiBbSTE4blNlcnZpY2VdLFxuICAgICAgbXVsdGk6IHRydWUsXG4gICAgfSxcbiAgXSk7XG59XG5cbi8qKlxuICogRGVlcCBtZXJnZSBkZSBDb250ZW50U3RvcmUuXG4gKiBFbCBjb250ZW5pZG8gZGUgYG92ZXJyaWRlYCBzb2JyZXNjcmliZSBrZXlzIGVzcGVjw61maWNhcyBkZSBgYmFzZWAuXG4gKlxuICogQHBhcmFtIGJhc2UgLSBDb250ZW5pZG8gYmFzZSAoZGVmYXVsdHMgZGUgdmFsdGVjaC1jb21wb25lbnRzKVxuICogQHBhcmFtIG92ZXJy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