@rededor/site-front-end-lib 20.0.26 → 20.0.27
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/CHANGELOG.md +828 -0
- package/components/algolia-dropdown/algolia-dropdown.component.html +19 -0
- package/components/algolia-dropdown/algolia-dropdown.component.scss +0 -0
- package/components/algolia-dropdown/algolia-dropdown.component.spec.ts +22 -0
- package/components/algolia-dropdown/algolia-dropdown.component.ts +103 -0
- package/components/algolia-dropdown/index.ts +1 -0
- package/components/algolia-dropdown/ng-package.json +6 -0
- package/components/algolia-dropdown/public-api.ts +1 -0
- package/components/algolia-search/components/algolia-search/algolia-search.component.html +96 -0
- package/components/algolia-search/components/algolia-search/algolia-search.component.scss +588 -0
- package/components/algolia-search/components/algolia-search/algolia-search.component.spec.ts +21 -0
- package/components/algolia-search/components/algolia-search/algolia-search.component.ts +415 -0
- package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.html +23 -0
- package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.scss +5 -0
- package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.spec.ts +22 -0
- package/components/algolia-search/components/algolia-search-field/algolia-search-field.component.ts +90 -0
- package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.html +70 -0
- package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.scss +27 -0
- package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.spec.ts +21 -0
- package/components/algolia-search/components/algolia-search-result-item/algolia-search-result-item.component.ts +77 -0
- package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.html +6 -0
- package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.scss +0 -0
- package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.spec.ts +21 -0
- package/components/algolia-search/components/algolia-search-results/algolia-search-results.component.ts +90 -0
- package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.html +1 -0
- package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.scss +0 -0
- package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.spec.ts +21 -0
- package/components/algolia-search/components/algolia-search-tooltip/algolia-search-tooltip.component.ts +9 -0
- package/components/algolia-search/index.ts +1 -0
- package/components/algolia-search/models/algolia-component-style.enum.ts +4 -0
- package/components/algolia-search/models/algolia-config.model.ts +8 -0
- package/components/algolia-search/models/algolia-hint.model.ts +4 -0
- package/components/algolia-search/models/algolia-hit-description.model.ts +6 -0
- package/components/algolia-search/models/algolia-multiple-index.model.ts +7 -0
- package/components/algolia-search/models/algolia-results-item.model.ts +8 -0
- package/components/algolia-search/models/algolia-results-multiple.model.ts +6 -0
- package/components/algolia-search/models/algolia-search-params.model.ts +83 -0
- package/components/algolia-search/ng-package.json +6 -0
- package/components/algolia-search/public-api.ts +13 -0
- package/components/banner/content-banner/content-banner.component.html +51 -0
- package/components/banner/content-banner/content-banner.component.scss +91 -0
- package/components/banner/content-banner/content-banner.component.spec.ts +27 -0
- package/components/banner/content-banner/content-banner.component.ts +36 -0
- package/components/banner/index.ts +1 -0
- package/components/banner/ng-package.json +6 -0
- package/components/banner/public-api.ts +1 -0
- package/components/breadcrumbs/breadcrumbs.component.html +56 -0
- package/components/breadcrumbs/breadcrumbs.component.scss +55 -0
- package/components/breadcrumbs/breadcrumbs.component.spec.ts +22 -0
- package/components/breadcrumbs/breadcrumbs.component.ts +142 -0
- package/components/breadcrumbs/index.ts +1 -0
- package/components/breadcrumbs/ng-package.json +6 -0
- package/components/breadcrumbs/public-api.ts +1 -0
- package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.html +91 -0
- package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.scss +143 -0
- package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.spec.ts +22 -0
- package/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.ts +66 -0
- package/components/cards/expandable-card/expandable-card.component.html +30 -0
- package/components/cards/expandable-card/expandable-card.component.scss +100 -0
- package/components/cards/expandable-card/expandable-card.component.spec.ts +27 -0
- package/components/cards/expandable-card/expandable-card.component.ts +60 -0
- package/components/cards/index.ts +1 -0
- package/components/cards/ng-package.json +6 -0
- package/components/cards/public-api.ts +3 -0
- package/components/cards/testimonial-card/testimonial-card.component.html +41 -0
- package/components/cards/testimonial-card/testimonial-card.component.scss +96 -0
- package/components/cards/testimonial-card/testimonial-card.component.spec.ts +27 -0
- package/components/cards/testimonial-card/testimonial-card.component.ts +65 -0
- package/components/carousels/index.ts +1 -0
- package/components/carousels/ng-package.json +6 -0
- package/components/carousels/public-api.ts +1 -0
- package/components/carousels/testimonials-carousel/testimonials-carousel.component.html +30 -0
- package/components/carousels/testimonials-carousel/testimonials-carousel.component.scss +91 -0
- package/components/carousels/testimonials-carousel/testimonials-carousel.component.spec.ts +27 -0
- package/components/carousels/testimonials-carousel/testimonials-carousel.component.ts +73 -0
- package/components/cta-wrapper/cta-wrapper.component.html +54 -0
- package/components/cta-wrapper/cta-wrapper.component.scss +123 -0
- package/components/cta-wrapper/cta-wrapper.component.spec.ts +22 -0
- package/components/cta-wrapper/cta-wrapper.component.ts +77 -0
- package/components/cta-wrapper/index.ts +1 -0
- package/components/cta-wrapper/ng-package.json +6 -0
- package/components/cta-wrapper/public-api.ts +1 -0
- package/components/error/error.component.html +65 -0
- package/components/error/error.component.scss +26 -0
- package/components/error/error.component.spec.ts +22 -0
- package/components/error/error.component.ts +182 -0
- package/components/error/index.ts +1 -0
- package/components/error/ng-package.json +6 -0
- package/components/error/public-api.ts +1 -0
- package/components/filter-letter-and-terms/filter-letter-and-terms.component.html +33 -0
- package/components/filter-letter-and-terms/filter-letter-and-terms.component.scss +98 -0
- package/components/filter-letter-and-terms/filter-letter-and-terms.component.spec.ts +22 -0
- package/components/filter-letter-and-terms/filter-letter-and-terms.component.ts +87 -0
- package/components/filter-letter-and-terms/index.ts +1 -0
- package/components/filter-letter-and-terms/ng-package.json +6 -0
- package/components/filter-letter-and-terms/public-api.ts +1 -0
- package/components/filters/filter-generic/USAGE.md +147 -0
- package/components/filters/filter-generic/filter-generic.component.html +174 -0
- package/components/filters/filter-generic/filter-generic.component.scss +266 -0
- package/components/filters/filter-generic/filter-generic.component.spec.ts +21 -0
- package/components/filters/filter-generic/filter-generic.component.ts +266 -0
- package/components/filters/filter-generic/index.ts +1 -0
- package/components/filters/filter-generic/ng-package.json +6 -0
- package/components/filters/filter-generic/public-api.ts +1 -0
- package/components/filters/filter-planos-convenios/filter-planos-convenios.component.html +76 -0
- package/components/filters/filter-planos-convenios/filter-planos-convenios.component.scss +84 -0
- package/components/filters/filter-planos-convenios/filter-planos-convenios.component.spec.ts +21 -0
- package/components/filters/filter-planos-convenios/filter-planos-convenios.component.ts +149 -0
- package/components/filters/filter-planos-convenios/index.ts +1 -0
- package/components/filters/filter-planos-convenios/ng-package.json +6 -0
- package/components/filters/filter-planos-convenios/public-api.ts +1 -0
- package/components/footer/footer.component.html +125 -0
- package/components/footer/footer.component.scss +451 -0
- package/components/footer/footer.component.spec.ts +22 -0
- package/components/footer/footer.component.ts +94 -0
- package/components/footer/helpers/footerTheme.func.ts +119 -0
- package/components/footer/index.ts +1 -0
- package/components/footer/models/FooterTheme.model.ts +8 -0
- package/components/footer/ng-package.json +6 -0
- package/components/footer/public-api.ts +1 -0
- package/components/header/components/action/header-action-menu/header-action-menu.component.html +41 -0
- package/components/header/components/action/header-action-menu/header-action-menu.component.scss +158 -0
- package/components/header/components/action/header-action-menu/header-action-menu.component.spec.ts +22 -0
- package/components/header/components/action/header-action-menu/header-action-menu.component.ts +30 -0
- package/components/header/components/action/index.ts +1 -0
- package/components/header/components/action/ng-package.json +6 -0
- package/components/header/components/action/public-api.ts +1 -0
- package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.html +33 -0
- package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.scss +60 -0
- package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.spec.ts +22 -0
- package/components/header/components/auxiliar/header-aux-menu-item/header-aux-menu-item.component.ts +46 -0
- package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.html +7 -0
- package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.scss +27 -0
- package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.spec.ts +22 -0
- package/components/header/components/auxiliar/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.ts +19 -0
- package/components/header/components/auxiliar/index.ts +1 -0
- package/components/header/components/auxiliar/ng-package.json +6 -0
- package/components/header/components/auxiliar/public-api.ts +2 -0
- package/components/header/components/header-logo/header-logo.component.html +5 -0
- package/components/header/components/header-logo/header-logo.component.scss +20 -0
- package/components/header/components/header-logo/header-logo.component.spec.ts +22 -0
- package/components/header/components/header-logo/header-logo.component.ts +23 -0
- package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.html +30 -0
- package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.scss +53 -0
- package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.spec.ts +22 -0
- package/components/header/components/main/header-main-menu-item/header-main-menu-item.component.ts +88 -0
- package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.html +112 -0
- package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.scss +259 -0
- package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.spec.ts +22 -0
- package/components/header/components/main/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.ts +107 -0
- package/components/header/components/main/index.ts +1 -0
- package/components/header/components/main/ng-package.json +6 -0
- package/components/header/components/main/public-api.ts +2 -0
- package/components/header/components/side/header-side-menu/header-side-menu.component.html +32 -0
- package/components/header/components/side/header-side-menu/header-side-menu.component.scss +81 -0
- package/components/header/components/side/header-side-menu/header-side-menu.component.spec.ts +22 -0
- package/components/header/components/side/header-side-menu/header-side-menu.component.ts +29 -0
- package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.html +26 -0
- package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.scss +104 -0
- package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.spec.ts +22 -0
- package/components/header/components/side/header-side-menu-item/header-side-menu-item.component.ts +45 -0
- package/components/header/components/side/index.ts +1 -0
- package/components/header/components/side/ng-package.json +6 -0
- package/components/header/components/side/public-api.ts +2 -0
- package/components/header/header.component.html +81 -0
- package/components/header/header.component.scss +171 -0
- package/components/header/header.component.spec.ts +22 -0
- package/components/header/header.component.ts +135 -0
- package/components/header/helpers/headerTheme.func.ts +288 -0
- package/components/header/index.ts +1 -0
- package/components/header/models/HeaderTheme.model.ts +9 -0
- package/components/header/ng-package.json +6 -0
- package/components/header/public-api.ts +2 -0
- package/components/header/services/header.service.spec.ts +16 -0
- package/components/header/services/header.service.ts +40 -0
- package/components/header/services/index.ts +1 -0
- package/components/header/services/ng-package.json +6 -0
- package/components/header/services/public-api.ts +1 -0
- package/components/image/image.component.html +9 -0
- package/components/image/image.component.scss +12 -0
- package/components/image/image.component.spec.ts +22 -0
- package/components/image/image.component.ts +43 -0
- package/components/image/index.ts +1 -0
- package/components/image/ng-package.json +6 -0
- package/components/image/public-api.ts +1 -0
- package/components/load-screen/index.ts +1 -0
- package/components/load-screen/load-screen.component.html +128 -0
- package/components/load-screen/load-screen.component.scss +46 -0
- package/components/load-screen/load-screen.component.spec.ts +27 -0
- package/components/load-screen/load-screen.component.ts +18 -0
- package/components/load-screen/ng-package.json +6 -0
- package/components/load-screen/public-api.ts +1 -0
- package/components/modal/index.ts +1 -0
- package/components/modal/modal.component.html +12 -0
- package/components/modal/modal.component.scss +34 -0
- package/components/modal/modal.component.spec.ts +22 -0
- package/components/modal/modal.component.ts +74 -0
- package/components/modal/ng-package.json +6 -0
- package/components/modal/public-api.ts +1 -0
- package/components/modal-drawer/index.ts +1 -0
- package/components/modal-drawer/modal-drawer.component.html +22 -0
- package/components/modal-drawer/modal-drawer.component.scss +250 -0
- package/components/modal-drawer/modal-drawer.component.spec.ts +22 -0
- package/components/modal-drawer/modal-drawer.component.ts +148 -0
- package/components/modal-drawer/ng-package.json +6 -0
- package/components/modal-drawer/public-api.ts +1 -0
- package/components/overlay/index.ts +1 -0
- package/components/overlay/ng-package.json +6 -0
- package/components/overlay/overlay.component.html +1 -0
- package/components/overlay/overlay.component.scss +13 -0
- package/components/overlay/overlay.component.spec.ts +22 -0
- package/components/overlay/overlay.component.ts +15 -0
- package/components/overlay/public-api.ts +1 -0
- package/components/page-header/index.ts +1 -0
- package/components/page-header/ng-package.json +6 -0
- package/components/page-header/page-header.component.html +25 -0
- package/components/page-header/page-header.component.scss +110 -0
- package/components/page-header/page-header.component.spec.ts +22 -0
- package/components/page-header/page-header.component.ts +41 -0
- package/components/page-header/public-api.ts +1 -0
- package/components/page-template-fullcontent/index.ts +1 -0
- package/components/page-template-fullcontent/ng-package.json +6 -0
- package/components/page-template-fullcontent/page-template-fullcontent.component.html +37 -0
- package/components/page-template-fullcontent/page-template-fullcontent.component.scss +41 -0
- package/components/page-template-fullcontent/page-template-fullcontent.component.ts +22 -0
- package/components/page-template-fullcontent/public-api.ts +1 -0
- package/components/page-template-sidebar/index.ts +1 -0
- package/components/page-template-sidebar/ng-package.json +6 -0
- package/components/page-template-sidebar/page-template-sidebar.component.html +50 -0
- package/components/page-template-sidebar/page-template-sidebar.component.scss +80 -0
- package/components/page-template-sidebar/page-template-sidebar.component.spec.ts +22 -0
- package/components/page-template-sidebar/page-template-sidebar.component.ts +25 -0
- package/components/page-template-sidebar/public-api.ts +1 -0
- package/components/pagination/index.ts +1 -0
- package/components/pagination/ng-package.json +6 -0
- package/components/pagination/pagination.component.html +53 -0
- package/components/pagination/pagination.component.scss +124 -0
- package/components/pagination/pagination.component.spec.ts +22 -0
- package/components/pagination/pagination.component.ts +48 -0
- package/components/pagination/public-api.ts +1 -0
- package/components/search/index.ts +1 -0
- package/components/search/ng-package.json +6 -0
- package/components/search/public-api.ts +1 -0
- package/components/search/search.component.html +32 -0
- package/components/search/search.component.scss +59 -0
- package/components/search/search.component.spec.ts +22 -0
- package/components/search/search.component.ts +122 -0
- package/components/section-navigation/index.ts +1 -0
- package/components/section-navigation/ng-package.json +6 -0
- package/components/section-navigation/public-api.ts +1 -0
- package/components/section-navigation/section-navigation.component.html +23 -0
- package/components/section-navigation/section-navigation.component.scss +50 -0
- package/components/section-navigation/section-navigation.component.spec.ts +22 -0
- package/components/section-navigation/section-navigation.component.ts +159 -0
- package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.html +8 -0
- package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.scss +56 -0
- package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.spec.ts +22 -0
- package/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.ts +31 -0
- package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.html +11 -0
- package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.scss +0 -0
- package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.spec.ts +22 -0
- package/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.ts +23 -0
- package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.html +10 -0
- package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.scss +54 -0
- package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.spec.ts +22 -0
- package/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.ts +30 -0
- package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.html +1 -0
- package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.scss +11 -0
- package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.spec.ts +22 -0
- package/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.ts +9 -0
- package/components/side-ctas/index.ts +1 -0
- package/components/side-ctas/models/SideCta.model.ts +5 -0
- package/components/side-ctas/ng-package.json +6 -0
- package/components/side-ctas/public-api.ts +6 -0
- package/components/side-ctas/side-ctas.component.html +28 -0
- package/components/side-ctas/side-ctas.component.scss +62 -0
- package/components/side-ctas/side-ctas.component.spec.ts +22 -0
- package/components/side-ctas/side-ctas.component.ts +17 -0
- package/components/sidebar-navigation/index.ts +1 -0
- package/components/sidebar-navigation/ng-package.json +6 -0
- package/components/sidebar-navigation/public-api.ts +1 -0
- package/components/sidebar-navigation/sidebar-navigation.component.html +42 -0
- package/components/sidebar-navigation/sidebar-navigation.component.scss +25 -0
- package/components/sidebar-navigation/sidebar-navigation.component.ts +122 -0
- package/components/sticky-navigation/index.ts +1 -0
- package/components/sticky-navigation/ng-package.json +6 -0
- package/components/sticky-navigation/public-api.ts +1 -0
- package/components/sticky-navigation/sticky-navigation.component.html +39 -0
- package/components/sticky-navigation/sticky-navigation.component.scss +48 -0
- package/components/sticky-navigation/sticky-navigation.component.ts +134 -0
- package/components/whatsapp/index.ts +1 -0
- package/components/whatsapp/ng-package.json +6 -0
- package/components/whatsapp/public-api.ts +1 -0
- package/components/whatsapp/whatsapp.component.html +23 -0
- package/components/whatsapp/whatsapp.component.scss +113 -0
- package/components/whatsapp/whatsapp.component.spec.ts +22 -0
- package/components/whatsapp/whatsapp.component.ts +40 -0
- package/core/directives/rdsite-link/rdsite-link.directive.spec.ts +8 -0
- package/core/directives/rdsite-link/rdsite-link.directive.ts +200 -0
- package/core/directives/rdsite-phone-modal/rdsite-phone-modal.directive.spec.ts +8 -0
- package/core/directives/rdsite-phone-modal/rdsite-phone-modal.directive.ts +41 -0
- package/core/enums/RdsiteModalComponentStyle.enum.ts +13 -0
- package/core/enums/RdsiteModalDrawerComponentStyle.enum.ts +7 -0
- package/core/helpers/check-safari-agent.func.ts +6 -0
- package/core/helpers/djb2Hash.func.ts +18 -0
- package/core/helpers/executeWithRetry.func.ts +25 -0
- package/core/helpers/formatPhone.func.ts +22 -0
- package/core/helpers/getCircularReplacer.func.ts +45 -0
- package/core/helpers/getSiteUrl.func.ts +7 -0
- package/core/helpers/removeHtmlTags.func.ts +6 -0
- package/core/helpers/toQueryParams.func.ts +11 -0
- package/core/index.ts +1 -0
- package/core/interceptors/error.interceptor.ts +39 -0
- package/core/interceptors/log.interceptor.ts +35 -0
- package/core/interceptors/transfer-state-url.interceptor.ts +137 -0
- package/core/models/algolia-search-api.model.ts +213 -0
- package/core/models/breadcrumbs/breadcrumbs-items.model.ts +10 -0
- package/core/models/breadcrumbs/breadcrumbs-json-item.model.ts +8 -0
- package/core/models/centro-estudos-backend.model.ts +8 -0
- package/core/models/centro-medico.model.ts +33 -0
- package/core/models/content-banner.model.ts +7 -0
- package/core/models/cta-wrapper.model.ts +9 -0
- package/core/models/doenca-backend.model.ts +27 -0
- package/core/models/doenca-taxonomy.model.ts +21 -0
- package/core/models/especialidade-backend.model.ts +25 -0
- package/core/models/exame-backend.model.ts +26 -0
- package/core/models/filters/filter-planos-convenios.model.ts +34 -0
- package/core/models/filters/filter-section.type.ts +18 -0
- package/core/models/filters/filter-sections.model.ts +66 -0
- package/core/models/images/rdsite-image.model.ts +5 -0
- package/core/models/index.ts +1 -0
- package/core/models/medico-cv.model.ts +10 -0
- package/core/models/menu-de-unidade.model.ts +16 -0
- package/core/models/menu-item.model.ts +71 -0
- package/core/models/privacy-tools/privacy-tools.model.ts +9 -0
- package/core/models/rdsl-cobertura.model.ts +72 -0
- package/core/models/rdsl-convenio.model.ts +18 -0
- package/core/models/rdsl-especialidade.model.ts +36 -0
- package/core/models/rdsl-planos.model.ts +14 -0
- package/core/models/rdsl-post-category.model.ts +8 -0
- package/core/models/rdsl-unidade.model.ts +52 -0
- package/core/models/section-navigation.model.ts +10 -0
- package/core/models/seo/seo-data.model.ts +11 -0
- package/core/models/seo/seo-unidade.model.ts +6 -0
- package/core/models/social-meta-properties.model.ts +9 -0
- package/core/models/wordpress/WpEnvelopeResponse.model.ts +12 -0
- package/core/models/wordpress/WpHttpParams.model.ts +5 -0
- package/core/models/wordpress/WpQueryParams.model.ts +32 -0
- package/core/models/wordpress/WpResponse.model.ts +35 -0
- package/core/models/wordpress/category/wpCategory.model.ts +15 -0
- package/core/models/wordpress/category/wpCategoryRequestParams.model.ts +9 -0
- package/core/models/wordpress/flexiblecontent/flexiblecontent.model.ts +4 -0
- package/core/models/wordpress/general/content.model.ts +4 -0
- package/core/models/wordpress/general/excerpt.model.ts +4 -0
- package/core/models/wordpress/general/featuredMedia.model.ts +27 -0
- package/core/models/wordpress/general/guid.model.ts +3 -0
- package/core/models/wordpress/general/index.ts +10 -0
- package/core/models/wordpress/general/links.model.ts +47 -0
- package/core/models/wordpress/general/meta.model.ts +3 -0
- package/core/models/wordpress/general/title.model.ts +3 -0
- package/core/models/wordpress/general/yoastData.model.ts +4 -0
- package/core/models/wordpress/general/yoastHeadJson.model.ts +55 -0
- package/core/models/wordpress/general/yoastMeta.model.ts +5 -0
- package/core/models/wordpress/page/page.model.ts +11 -0
- package/core/models/wordpress/page/pageRequestParams.model.ts +11 -0
- package/core/models/wordpress/post/post.model.ts +37 -0
- package/core/models/wordpress/post/postRequestParams.model.ts +23 -0
- package/core/models/wordpress/unidade/wp-unidade-onco.model.ts +62 -0
- package/core/models/wordpress/unidade/wp-unidade-site-detalhe.model.ts +173 -0
- package/core/models/wordpress/unidade/wp-unidade-site.model.ts +48 -0
- package/core/ng-package.json +6 -0
- package/core/public-api.ts +79 -0
- package/core/services/error/error.service.spec.ts +16 -0
- package/core/services/error/error.service.ts +10 -0
- package/core/services/geoloc/geoloc.service.spec.ts +16 -0
- package/core/services/geoloc/geoloc.service.ts +225 -0
- package/core/services/http-client/http-client.service.spec.ts +16 -0
- package/core/services/http-client/http-client.service.ts +49 -0
- package/core/services/log/log.service.spec.ts +16 -0
- package/core/services/log/log.service.ts +36 -0
- package/core/services/mapbox/mapbox.service.spec.ts +16 -0
- package/core/services/mapbox/mapbox.service.ts +84 -0
- package/core/services/modal/modal.service.spec.ts +16 -0
- package/core/services/modal/modal.service.ts +124 -0
- package/core/services/modal-drawer/modal-drawer.service.spec.ts +16 -0
- package/core/services/modal-drawer/modal-drawer.service.ts +104 -0
- package/core/services/phone/phone.service.spec.ts +16 -0
- package/core/services/phone/phone.service.ts +19 -0
- package/core/services/privacy-tools/privacy-tools.service.spec.ts +16 -0
- package/core/services/privacy-tools/privacy-tools.service.ts +96 -0
- package/core/services/seo/seo.service.spec.ts +16 -0
- package/core/services/seo/seo.service.ts +537 -0
- package/core/services/server-response/server-response.service.spec.ts +16 -0
- package/core/services/server-response/server-response.service.ts +107 -0
- package/core/services/site-back-end/site-back-end.service.spec.ts +16 -0
- package/core/services/site-back-end/site-back-end.service.ts +48 -0
- package/core/services/ssr-response/ssr-response.service.spec.ts +16 -0
- package/core/services/ssr-response/ssr-response.service.ts +57 -0
- package/core/tokens/LibConfig.ts +64 -0
- package/core/tokens/express.tokens.ts +5 -0
- package/cura/accordion/cura-accordion/cura-accordion.component.html +1 -0
- package/cura/accordion/cura-accordion/cura-accordion.component.scss +7 -0
- package/cura/accordion/cura-accordion/cura-accordion.component.ts +203 -0
- package/cura/accordion/cura-accordion-item/cura-accordion-item.component.html +20 -0
- package/cura/accordion/cura-accordion-item/cura-accordion-item.component.scss +139 -0
- package/cura/accordion/cura-accordion-item/cura-accordion-item.component.ts +75 -0
- package/cura/accordion/cura-accordion.definitions.ts +5 -0
- package/cura/accordion/index.ts +1 -0
- package/cura/accordion/ng-package.json +6 -0
- package/cura/accordion/public-api.ts +3 -0
- package/cura/api/CuraConfig.ts +5 -0
- package/cura/api/cura-api.service.spec.ts +138 -0
- package/cura/api/cura-api.service.ts +104 -0
- package/cura/api/cura-api.types.ts +79 -0
- package/cura/api/index.ts +1 -0
- package/cura/api/modules/cura-theme-breakpoints.module.ts +22 -0
- package/cura/api/modules/cura-theme-colors.module.ts +89 -0
- package/cura/api/modules/cura-theme-fonts.module.ts +54 -0
- package/cura/api/modules/cura-theme-spacing.module.ts +23 -0
- package/cura/api/modules/cura-theme.module.ts +116 -0
- package/cura/api/ng-package.json +6 -0
- package/cura/api/public-api.ts +11 -0
- package/cura/api/theme-presets/static.ts +70 -0
- package/cura/api/theme-presets/theme-default.ts +49 -0
- package/cura/api/theme-presets/theme-maternidade-star.ts +49 -0
- package/cura/api/theme-presets/theme-presets.ts +13 -0
- package/cura/api/theme-presets/theme-star.ts +49 -0
- package/cura/badges/cura-badge-counter/cura-badge-counter.component.html +7 -0
- package/cura/badges/cura-badge-counter/cura-badge-counter.component.scss +41 -0
- package/cura/badges/cura-badge-counter/cura-badge-counter.component.ts +94 -0
- package/cura/badges/cura-badge-counter/index.ts +1 -0
- package/cura/badges/cura-badge-counter/ng-package.json +6 -0
- package/cura/badges/cura-badge-counter/public-api.ts +1 -0
- package/cura/badges/cura-badge-distance/cura-badge-distance.component.html +8 -0
- package/cura/badges/cura-badge-distance/cura-badge-distance.component.scss +16 -0
- package/cura/badges/cura-badge-distance/cura-badge-distance.component.ts +53 -0
- package/cura/badges/cura-badge-distance/index.ts +1 -0
- package/cura/badges/cura-badge-distance/ng-package.json +6 -0
- package/cura/badges/cura-badge-distance/public-api.ts +1 -0
- package/cura/badges/cura-badge-dot/cura-badge-dot.component.html +1 -0
- package/cura/badges/cura-badge-dot/cura-badge-dot.component.scss +50 -0
- package/cura/badges/cura-badge-dot/cura-badge-dot.component.ts +69 -0
- package/cura/badges/cura-badge-dot/index.ts +1 -0
- package/cura/badges/cura-badge-dot/ng-package.json +6 -0
- package/cura/badges/cura-badge-dot/public-api.ts +1 -0
- package/cura/badges/cura-badge-pill/cura-badge-pill.component.html +8 -0
- package/cura/badges/cura-badge-pill/cura-badge-pill.component.scss +74 -0
- package/cura/badges/cura-badge-pill/cura-badge-pill.component.ts +105 -0
- package/cura/badges/cura-badge-pill/index.ts +1 -0
- package/cura/badges/cura-badge-pill/ng-package.json +6 -0
- package/cura/badges/cura-badge-pill/public-api.ts +1 -0
- package/cura/badges/cura-badges.definitions.ts +5 -0
- package/cura/badges/index.ts +1 -0
- package/cura/badges/ng-package.json +6 -0
- package/cura/badges/public-api.ts +1 -0
- package/cura/buttons/cura-button/cura-button.component.html +47 -0
- package/cura/buttons/cura-button/cura-button.component.scss +66 -0
- package/cura/buttons/cura-button/cura-button.component.spec.ts +105 -0
- package/cura/buttons/cura-button/cura-button.component.ts +184 -0
- package/cura/buttons/cura-button/index.ts +1 -0
- package/cura/buttons/cura-button/ng-package.json +6 -0
- package/cura/buttons/cura-button/public-api.ts +1 -0
- package/cura/buttons/cura-button-outline/cura-button-outline.component.html +47 -0
- package/cura/buttons/cura-button-outline/cura-button-outline.component.scss +55 -0
- package/cura/buttons/cura-button-outline/cura-button-outline.component.spec.ts +57 -0
- package/cura/buttons/cura-button-outline/cura-button-outline.component.ts +184 -0
- package/cura/buttons/cura-button-outline/index.ts +1 -0
- package/cura/buttons/cura-button-outline/ng-package.json +6 -0
- package/cura/buttons/cura-button-outline/public-api.ts +1 -0
- package/cura/buttons/cura-button-select/cura-button-select.component.html +27 -0
- package/cura/buttons/cura-button-select/cura-button-select.component.scss +76 -0
- package/cura/buttons/cura-button-select/cura-button-select.component.spec.ts +96 -0
- package/cura/buttons/cura-button-select/cura-button-select.component.ts +140 -0
- package/cura/buttons/cura-button-select/index.ts +1 -0
- package/cura/buttons/cura-button-select/ng-package.json +6 -0
- package/cura/buttons/cura-button-select/public-api.ts +1 -0
- package/cura/buttons/cura-button-transparent/cura-button-transparent.component.html +47 -0
- package/cura/buttons/cura-button-transparent/cura-button-transparent.component.scss +29 -0
- package/cura/buttons/cura-button-transparent/cura-button-transparent.component.spec.ts +63 -0
- package/cura/buttons/cura-button-transparent/cura-button-transparent.component.ts +172 -0
- package/cura/buttons/cura-button-transparent/index.ts +1 -0
- package/cura/buttons/cura-button-transparent/ng-package.json +6 -0
- package/cura/buttons/cura-button-transparent/public-api.ts +1 -0
- package/cura/buttons/cura-button.definitions.ts +13 -0
- package/cura/buttons/index.ts +1 -0
- package/cura/buttons/ng-package.json +6 -0
- package/cura/buttons/public-api.ts +1 -0
- package/cura/cards/cura-card/cura-card.component.html +11 -0
- package/cura/cards/cura-card/cura-card.component.scss +167 -0
- package/cura/cards/cura-card/cura-card.component.ts +89 -0
- package/cura/cards/cura-card/cura-cards.definitions.ts +5 -0
- package/cura/cards/cura-card/index.ts +1 -0
- package/cura/cards/cura-card/ng-package.json +6 -0
- package/cura/cards/cura-card/public-api.ts +1 -0
- package/cura/feedback/cura-alert/cura-alert.component.html +21 -0
- package/cura/feedback/cura-alert/cura-alert.component.scss +32 -0
- package/cura/feedback/cura-alert/cura-alert.component.ts +94 -0
- package/cura/feedback/cura-alert/cura-alert.definitions.ts +15 -0
- package/cura/feedback/cura-alert/index.ts +1 -0
- package/cura/feedback/cura-alert/ng-package.json +6 -0
- package/cura/feedback/cura-alert/public-api.ts +2 -0
- package/cura/feedback/cura-modal/cura-modal.component.html +20 -0
- package/cura/feedback/cura-modal/cura-modal.component.scss +149 -0
- package/cura/feedback/cura-modal/cura-modal.component.ts +112 -0
- package/cura/feedback/cura-modal/cura-modal.definitions.ts +36 -0
- package/cura/feedback/cura-modal/index.ts +1 -0
- package/cura/feedback/cura-modal/ng-package.json +6 -0
- package/cura/feedback/cura-modal/public-api.ts +2 -0
- package/cura/feedback/cura-toast/cura-toast.component.html +23 -0
- package/cura/feedback/cura-toast/cura-toast.component.scss +96 -0
- package/cura/feedback/cura-toast/cura-toast.component.ts +213 -0
- package/cura/feedback/cura-toast/cura-toast.definitions.ts +22 -0
- package/cura/feedback/cura-toast/index.ts +1 -0
- package/cura/feedback/cura-toast/ng-package.json +6 -0
- package/cura/feedback/cura-toast/public-api.ts +2 -0
- package/cura/forms/cura-checkbox/cura-checkbox.component.html +35 -0
- package/cura/forms/cura-checkbox/cura-checkbox.component.scss +219 -0
- package/cura/forms/cura-checkbox/cura-checkbox.component.ts +284 -0
- package/cura/forms/cura-checkbox/cura-checkbox.definitions.ts +44 -0
- package/cura/forms/cura-checkbox/index.ts +1 -0
- package/cura/forms/cura-checkbox/ng-package.json +6 -0
- package/cura/forms/cura-checkbox/public-api.ts +2 -0
- package/cura/forms/cura-forms.definitions.ts +18 -0
- package/cura/forms/cura-input-text/cura-input-text.component.html +65 -0
- package/cura/forms/cura-input-text/cura-input-text.component.scss +165 -0
- package/cura/forms/cura-input-text/cura-input-text.component.ts +621 -0
- package/cura/forms/cura-input-text/cura-input-text.definitions.ts +104 -0
- package/cura/forms/cura-input-text/index.ts +1 -0
- package/cura/forms/cura-input-text/ng-package.json +6 -0
- package/cura/forms/cura-input-text/public-api.ts +2 -0
- package/cura/forms/cura-label/cura-label.component.html +3 -0
- package/cura/forms/cura-label/cura-label.component.scss +68 -0
- package/cura/forms/cura-label/cura-label.component.ts +93 -0
- package/cura/forms/cura-label/index.ts +1 -0
- package/cura/forms/cura-label/ng-package.json +6 -0
- package/cura/forms/cura-label/public-api.ts +1 -0
- package/cura/forms/cura-radio/cura-radio.component.html +28 -0
- package/cura/forms/cura-radio/cura-radio.component.scss +232 -0
- package/cura/forms/cura-radio/cura-radio.component.ts +261 -0
- package/cura/forms/cura-radio/cura-radio.definitions.ts +46 -0
- package/cura/forms/cura-radio/index.ts +1 -0
- package/cura/forms/cura-radio/ng-package.json +6 -0
- package/cura/forms/cura-radio/public-api.ts +2 -0
- package/cura/forms/cura-select/cura-select.component.html +88 -0
- package/cura/forms/cura-select/cura-select.component.scss +112 -0
- package/cura/forms/cura-select/cura-select.component.ts +459 -0
- package/cura/forms/cura-select/cura-select.definitions.ts +34 -0
- package/cura/forms/cura-select/index.ts +1 -0
- package/cura/forms/cura-select/ng-package.json +6 -0
- package/cura/forms/cura-select/public-api.ts +2 -0
- package/cura/forms/cura-select-option/cura-select-option.component.html +9 -0
- package/cura/forms/cura-select-option/cura-select-option.component.scss +33 -0
- package/cura/forms/cura-select-option/cura-select-option.component.ts +93 -0
- package/cura/forms/cura-select-option/cura-select-option.definitions.ts +12 -0
- package/cura/forms/cura-select-option/index.ts +1 -0
- package/cura/forms/cura-select-option/ng-package.json +6 -0
- package/cura/forms/cura-select-option/public-api.ts +2 -0
- package/cura/forms/cura-select-state/cura-select-state.component.html +14 -0
- package/cura/forms/cura-select-state/cura-select-state.component.ts +125 -0
- package/cura/forms/cura-select-state/cura-select-state.definitions.ts +19 -0
- package/cura/forms/cura-select-state/index.ts +1 -0
- package/cura/forms/cura-select-state/ng-package.json +6 -0
- package/cura/forms/cura-select-state/public-api.ts +2 -0
- package/cura/forms/cura-switch/cura-switch.component.html +25 -0
- package/cura/forms/cura-switch/cura-switch.component.scss +134 -0
- package/cura/forms/cura-switch/cura-switch.component.ts +196 -0
- package/cura/forms/cura-switch/cura-switch.definitions.ts +35 -0
- package/cura/forms/cura-switch/index.ts +1 -0
- package/cura/forms/cura-switch/ng-package.json +6 -0
- package/cura/forms/cura-switch/public-api.ts +2 -0
- package/cura/forms/cura-textarea/cura-textarea.component.html +44 -0
- package/cura/forms/cura-textarea/cura-textarea.component.scss +173 -0
- package/cura/forms/cura-textarea/cura-textarea.component.ts +226 -0
- package/cura/forms/cura-textarea/cura-textarea.definitions.ts +24 -0
- package/cura/forms/cura-textarea/index.ts +1 -0
- package/cura/forms/cura-textarea/ng-package.json +6 -0
- package/cura/forms/cura-textarea/public-api.ts +2 -0
- package/cura/forms/index.ts +1 -0
- package/cura/forms/ng-package.json +6 -0
- package/cura/forms/public-api.ts +1 -0
- package/cura/icons/cura-icon/cura-icon.component.html +3 -0
- package/cura/icons/cura-icon/cura-icon.component.scss +14 -0
- package/cura/icons/cura-icon/cura-icon.component.spec.ts +89 -0
- package/cura/icons/cura-icon/cura-icon.component.ts +79 -0
- package/cura/icons/cura-icon/cura-icon.definitions.ts +20 -0
- package/cura/icons/cura-icon/index.ts +1 -0
- package/cura/icons/cura-icon/ng-package.json +6 -0
- package/cura/icons/cura-icon/public-api.ts +2 -0
- package/cura/loaders/cura-loader-bar/cura-loader-bar.component.html +3 -0
- package/cura/loaders/cura-loader-bar/cura-loader-bar.component.scss +23 -0
- package/cura/loaders/cura-loader-bar/cura-loader-bar.component.ts +37 -0
- package/cura/loaders/cura-loader-bar/index.ts +1 -0
- package/cura/loaders/cura-loader-bar/ng-package.json +6 -0
- package/cura/loaders/cura-loader-bar/public-api.ts +1 -0
- package/cura/loaders/cura-loader-circle/cura-loader-circle.component.html +12 -0
- package/cura/loaders/cura-loader-circle/cura-loader-circle.component.scss +39 -0
- package/cura/loaders/cura-loader-circle/cura-loader-circle.component.ts +45 -0
- package/cura/loaders/cura-loader-circle/index.ts +1 -0
- package/cura/loaders/cura-loader-circle/ng-package.json +6 -0
- package/cura/loaders/cura-loader-circle/public-api.ts +1 -0
- package/cura/scss/mixins/buttons.scss +244 -0
- package/cura/scss/mixins/forms.scss +298 -0
- package/cura/scss/mixins/responsive.scss +69 -0
- package/cura/scss/mixins/shadows.scss +71 -0
- package/cura/scss/mixins/spacing.scss +33 -0
- package/cura/scss/mixins/text.scss +11 -0
- package/cura/texts/cura-display/cura-display.component.html +41 -0
- package/cura/texts/cura-display/cura-display.component.scss +91 -0
- package/cura/texts/cura-display/cura-display.component.ts +85 -0
- package/cura/texts/cura-display/index.ts +1 -0
- package/cura/texts/cura-display/ng-package.json +6 -0
- package/cura/texts/cura-display/public-api.ts +1 -0
- package/cura/texts/cura-heading/cura-heading.component.html +41 -0
- package/cura/texts/cura-heading/cura-heading.component.scss +160 -0
- package/cura/texts/cura-heading/cura-heading.component.ts +111 -0
- package/cura/texts/cura-heading/index.ts +1 -0
- package/cura/texts/cura-heading/ng-package.json +6 -0
- package/cura/texts/cura-heading/public-api.ts +1 -0
- package/cura/texts/cura-paragraph/cura-paragraph.component.html +3 -0
- package/cura/texts/cura-paragraph/cura-paragraph.component.scss +130 -0
- package/cura/texts/cura-paragraph/cura-paragraph.component.ts +94 -0
- package/cura/texts/cura-paragraph/index.ts +1 -0
- package/cura/texts/cura-paragraph/ng-package.json +6 -0
- package/cura/texts/cura-paragraph/public-api.ts +1 -0
- package/cura/texts/cura-texts.definitions.ts +9 -0
- package/cura/texts/index.ts +1 -0
- package/cura/texts/ng-package.json +6 -0
- package/cura/texts/public-api.ts +1 -0
- package/enums/EnumError.enum.ts +4 -0
- package/enums/EnumThemes.enum.ts +8 -0
- package/enums/Estados.enum.ts +29 -0
- package/enums/IconCuraDefaultType.enum.ts +119 -0
- package/enums/ImageMimeType.enum.ts +5 -0
- package/enums/UnidadeCoverageType.enum.ts +5 -0
- package/enums/index.ts +1 -0
- package/enums/ng-package.json +6 -0
- package/enums/public-api.ts +6 -0
- package/ng-package.json +8 -0
- package/package.json +9 -312
- package/services/algolia/algolia.service.spec.ts +16 -0
- package/services/algolia/algolia.service.ts +36 -0
- package/services/algolia/index.ts +1 -0
- package/services/algolia/ng-package.json +6 -0
- package/services/algolia/public-api.ts +1 -0
- package/services/algolia-search-api/algolia-search-api.service.spec.ts +16 -0
- package/services/algolia-search-api/algolia-search-api.service.ts +72 -0
- package/services/algolia-search-api/index.ts +1 -0
- package/services/algolia-search-api/ng-package.json +6 -0
- package/services/algolia-search-api/public-api.ts +1 -0
- package/services/ngu-carousel/index.ts +1 -0
- package/services/ngu-carousel/ng-package.json +6 -0
- package/services/ngu-carousel/ngu-carousel.service.spec.ts +16 -0
- package/services/ngu-carousel/ngu-carousel.service.ts +80 -0
- package/services/ngu-carousel/public-api.ts +1 -0
- package/services/ssr-loading/index.ts +1 -0
- package/services/ssr-loading/ng-package.json +6 -0
- package/services/ssr-loading/public-api.ts +1 -0
- package/services/ssr-loading/ssr-loading.service.spec.ts +16 -0
- package/services/ssr-loading/ssr-loading.service.ts +41 -0
- package/services/transfer-state/index.ts +1 -0
- package/services/transfer-state/ng-package.json +6 -0
- package/services/transfer-state/public-api.ts +1 -0
- package/services/transfer-state/transfer-state.service.spec.ts +16 -0
- package/services/transfer-state/transfer-state.service.ts +38 -0
- package/services/youtube/index.ts +1 -0
- package/services/youtube/ng-package.json +6 -0
- package/services/youtube/public-api.ts +1 -0
- package/services/youtube/youtube.service.spec.ts +16 -0
- package/services/youtube/youtube.service.ts +28 -0
- package/shared/directives/rdsite-click-outside/rdsite-click-outside.directive.spec.ts +8 -0
- package/shared/directives/rdsite-click-outside/rdsite-click-outside.directive.ts +18 -0
- package/shared/helpers/clean-text.func.ts +15 -0
- package/shared/helpers/mediaQueries.ts +11 -0
- package/shared/helpers/removeDuplicateObjectsFromArray.func.ts +5 -0
- package/shared/helpers/removeDuplicateValuesFromArray.func.ts +5 -0
- package/shared/helpers/stringToSlug.func.ts +32 -0
- package/shared/index.ts +1 -0
- package/shared/ng-package.json +6 -0
- package/shared/pipes/phone/phone.pipe.spec.ts +8 -0
- package/shared/pipes/phone/phone.pipe.ts +11 -0
- package/shared/public-api.ts +9 -0
- package/src/public-api.ts +5 -0
- package/styles/_mixins.scss +49 -0
- package/styles/_utilities.scss +22 -0
- package/tsconfig.lib.json +13 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/components/algolia-dropdown/index.d.ts +0 -38
- package/components/algolia-search/index.d.ts +0 -304
- package/components/banner/index.d.ts +0 -20
- package/components/breadcrumbs/index.d.ts +0 -42
- package/components/cards/index.d.ts +0 -102
- package/components/carousels/index.d.ts +0 -28
- package/components/cta-wrapper/index.d.ts +0 -33
- package/components/error/index.d.ts +0 -47
- package/components/filter-letter-and-terms/index.d.ts +0 -38
- package/components/filters/filter-generic/index.d.ts +0 -70
- package/components/filters/filter-planos-convenios/index.d.ts +0 -41
- package/components/footer/index.d.ts +0 -44
- package/components/header/components/action/index.d.ts +0 -17
- package/components/header/components/auxiliar/index.d.ts +0 -31
- package/components/header/components/main/index.d.ts +0 -72
- package/components/header/components/side/index.d.ts +0 -35
- package/components/header/index.d.ts +0 -63
- package/components/header/services/index.d.ts +0 -14
- package/components/image/index.d.ts +0 -23
- package/components/load-screen/index.d.ts +0 -14
- package/components/modal/index.d.ts +0 -28
- package/components/modal-drawer/index.d.ts +0 -46
- package/components/overlay/index.d.ts +0 -10
- package/components/page-header/index.d.ts +0 -30
- package/components/page-template-fullcontent/index.d.ts +0 -17
- package/components/page-template-sidebar/index.d.ts +0 -20
- package/components/pagination/index.d.ts +0 -30
- package/components/search/index.d.ts +0 -45
- package/components/section-navigation/index.d.ts +0 -45
- package/components/side-ctas/index.d.ts +0 -70
- package/components/sidebar-navigation/index.d.ts +0 -40
- package/components/sticky-navigation/index.d.ts +0 -42
- package/components/whatsapp/index.d.ts +0 -27
- package/core/index.d.ts +0 -2049
- package/cura/accordion/index.d.ts +0 -120
- package/cura/api/index.d.ts +0 -359
- package/cura/badges/cura-badge-counter/index.d.ts +0 -38
- package/cura/badges/cura-badge-distance/index.d.ts +0 -21
- package/cura/badges/cura-badge-dot/index.d.ts +0 -29
- package/cura/badges/cura-badge-pill/index.d.ts +0 -42
- package/cura/badges/index.d.ts +0 -5
- package/cura/buttons/cura-button/index.d.ts +0 -90
- package/cura/buttons/cura-button-outline/index.d.ts +0 -90
- package/cura/buttons/cura-button-select/index.d.ts +0 -39
- package/cura/buttons/cura-button-transparent/index.d.ts +0 -87
- package/cura/buttons/index.d.ts +0 -15
- package/cura/cards/cura-card/index.d.ts +0 -49
- package/cura/feedback/cura-alert/index.d.ts +0 -55
- package/cura/feedback/cura-modal/index.d.ts +0 -97
- package/cura/feedback/cura-toast/index.d.ts +0 -104
- package/cura/forms/cura-checkbox/index.d.ts +0 -157
- package/cura/forms/cura-input-text/index.d.ts +0 -236
- package/cura/forms/cura-label/index.d.ts +0 -47
- package/cura/forms/cura-radio/index.d.ts +0 -148
- package/cura/forms/cura-select/index.d.ts +0 -155
- package/cura/forms/cura-select-option/index.d.ts +0 -54
- package/cura/forms/cura-select-state/index.d.ts +0 -72
- package/cura/forms/cura-switch/index.d.ts +0 -113
- package/cura/forms/cura-textarea/index.d.ts +0 -113
- package/cura/forms/index.d.ts +0 -20
- package/cura/icons/cura-icon/index.d.ts +0 -46
- package/cura/loaders/cura-loader-bar/index.d.ts +0 -22
- package/cura/loaders/cura-loader-circle/index.d.ts +0 -24
- package/cura/texts/cura-display/index.d.ts +0 -54
- package/cura/texts/cura-heading/index.d.ts +0 -65
- package/cura/texts/cura-paragraph/index.d.ts +0 -54
- package/cura/texts/index.d.ts +0 -7
- package/enums/index.d.ts +0 -177
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +0 -108
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +0 -604
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +0 -44
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +0 -120
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +0 -178
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +0 -75
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +0 -78
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +0 -176
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +0 -93
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +0 -245
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +0 -139
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +0 -199
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +0 -34
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +0 -62
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +0 -167
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +0 -71
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +0 -50
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +0 -416
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs +0 -48
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +0 -30
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +0 -145
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +0 -82
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +0 -24
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +0 -52
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +0 -27
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +0 -30
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +0 -55
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +0 -119
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +0 -141
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +0 -118
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +0 -109
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +0 -120
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +0 -1812
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +0 -252
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +0 -643
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +0 -55
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +0 -66
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +0 -91
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +0 -170
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +0 -135
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +0 -161
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +0 -170
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs +0 -13
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +0 -72
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +0 -105
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +0 -198
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +0 -258
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +0 -587
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +0 -82
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +0 -243
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +0 -89
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs +0 -123
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +0 -389
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +0 -182
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs +0 -209
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs +0 -21
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +0 -44
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +0 -84
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +0 -104
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +0 -89
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-enums.mjs +0 -188
- package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +0 -74
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +0 -41
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +0 -52
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +0 -40
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-shared.mjs +0 -110
- package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib.mjs +0 -11
- package/fesm2022/rededor-site-front-end-lib.mjs.map +0 -1
- package/index.d.ts +0 -3
- package/services/algolia/index.d.ts +0 -18
- package/services/algolia-search-api/index.d.ts +0 -17
- package/services/ngu-carousel/index.d.ts +0 -16
- package/services/ssr-loading/index.d.ts +0 -14
- package/services/transfer-state/index.d.ts +0 -13
- package/services/youtube/index.d.ts +0 -13
- package/shared/index.d.ts +0 -40
|
@@ -1,643 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, DOCUMENT, Injectable, InjectionToken, signal } from '@angular/core';
|
|
3
|
-
import { DOCUMENT as DOCUMENT$1 } from '@angular/common';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Cura Default Theme
|
|
7
|
-
*/
|
|
8
|
-
const ThemeDefault = {
|
|
9
|
-
/* Colors */
|
|
10
|
-
color: {
|
|
11
|
-
primary: {
|
|
12
|
-
'100': '113,197,232',
|
|
13
|
-
'300': '68,142,205',
|
|
14
|
-
'500': '0,61,165',
|
|
15
|
-
'700': '0,48,117',
|
|
16
|
-
'900': '0,40,85',
|
|
17
|
-
},
|
|
18
|
-
secondary: {
|
|
19
|
-
'100': '245,236,227',
|
|
20
|
-
'300': '221,192,162',
|
|
21
|
-
'500': '204,160,116',
|
|
22
|
-
'700': '136,107,77',
|
|
23
|
-
'900': '41,32,23',
|
|
24
|
-
},
|
|
25
|
-
accent: {
|
|
26
|
-
'100': '255,194,123',
|
|
27
|
-
'300': '255,168,74',
|
|
28
|
-
'500': '255,130,0',
|
|
29
|
-
'700': '215,114,10',
|
|
30
|
-
'900': '155,90,26',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
/* Spacing */
|
|
34
|
-
spacing: {
|
|
35
|
-
base: 4,
|
|
36
|
-
},
|
|
37
|
-
/* Fonts */
|
|
38
|
-
font: {
|
|
39
|
-
size: '14px',
|
|
40
|
-
color: '#4A4A4A',
|
|
41
|
-
body: "'Gotham', Arial, Helvetica, sans-serif",
|
|
42
|
-
heading: "'Gotham', Arial, Helvetica, sans-serif",
|
|
43
|
-
display: "'Gotham', Arial, Helvetica, sans-serif",
|
|
44
|
-
weights: {
|
|
45
|
-
thin: 100,
|
|
46
|
-
light: 300,
|
|
47
|
-
regular: 400,
|
|
48
|
-
medium: 500,
|
|
49
|
-
bold: 700,
|
|
50
|
-
black: 900,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Cura MaternidadeStar Theme
|
|
57
|
-
*/
|
|
58
|
-
const ThemeMaternidadeStar = {
|
|
59
|
-
/* Colors */
|
|
60
|
-
color: {
|
|
61
|
-
primary: {
|
|
62
|
-
'100': '283, 223, 210',
|
|
63
|
-
'300': '222, 192, 164',
|
|
64
|
-
'500': '205, 160, 119',
|
|
65
|
-
'700': '171, 133, 99',
|
|
66
|
-
'900': '103, 80, 60',
|
|
67
|
-
},
|
|
68
|
-
secondary: {
|
|
69
|
-
'100': '251, 239, 230',
|
|
70
|
-
'300': '247, 223, 205',
|
|
71
|
-
'500': '242, 208, 179',
|
|
72
|
-
'700': '202, 172, 149',
|
|
73
|
-
'900': '122, 104, 90',
|
|
74
|
-
},
|
|
75
|
-
accent: {
|
|
76
|
-
'100': '283, 223, 210',
|
|
77
|
-
'300': '222, 192, 164',
|
|
78
|
-
'500': '205, 160, 119',
|
|
79
|
-
'700': '171, 133, 99',
|
|
80
|
-
'900': '103, 80, 60',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
/* Spacing */
|
|
84
|
-
spacing: {
|
|
85
|
-
base: 4,
|
|
86
|
-
},
|
|
87
|
-
/* Fonts */
|
|
88
|
-
font: {
|
|
89
|
-
size: '14px',
|
|
90
|
-
color: '#4A4A4A',
|
|
91
|
-
body: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
92
|
-
heading: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
93
|
-
display: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
94
|
-
weights: {
|
|
95
|
-
thin: 100,
|
|
96
|
-
light: 300,
|
|
97
|
-
regular: 400,
|
|
98
|
-
medium: 500,
|
|
99
|
-
bold: 700,
|
|
100
|
-
black: 900,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Cura Star Theme
|
|
107
|
-
*/
|
|
108
|
-
const ThemeStar = {
|
|
109
|
-
/* Colors */
|
|
110
|
-
color: {
|
|
111
|
-
primary: {
|
|
112
|
-
'100': '182, 141, 115',
|
|
113
|
-
'300': '142, 103, 79',
|
|
114
|
-
'500': '119, 77, 51',
|
|
115
|
-
'700': '78, 43, 28',
|
|
116
|
-
'900': '47, 22, 12',
|
|
117
|
-
},
|
|
118
|
-
secondary: {
|
|
119
|
-
'100': '219, 193, 178',
|
|
120
|
-
'300': '190, 159, 143',
|
|
121
|
-
'500': '175, 150, 138',
|
|
122
|
-
'700': '139, 112, 99',
|
|
123
|
-
'900': '80, 59, 49',
|
|
124
|
-
},
|
|
125
|
-
accent: {
|
|
126
|
-
'100': '229, 196, 158',
|
|
127
|
-
'300': '198, 162, 122',
|
|
128
|
-
'500': '145, 107, 59',
|
|
129
|
-
'700': '110, 72, 23',
|
|
130
|
-
'900': '83, 46, 6',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
/* Spacing */
|
|
134
|
-
spacing: {
|
|
135
|
-
base: 4,
|
|
136
|
-
},
|
|
137
|
-
/* Fonts */
|
|
138
|
-
font: {
|
|
139
|
-
size: '14px',
|
|
140
|
-
color: '#4A4A4A',
|
|
141
|
-
body: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
142
|
-
heading: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
143
|
-
display: "'SkolaSans', Arial, Helvetica, sans-serif",
|
|
144
|
-
weights: {
|
|
145
|
-
thin: 100,
|
|
146
|
-
light: 300,
|
|
147
|
-
regular: 400,
|
|
148
|
-
medium: 500,
|
|
149
|
-
bold: 700,
|
|
150
|
-
black: 900,
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
const ThemePresets = {
|
|
156
|
-
default: ThemeDefault,
|
|
157
|
-
// 'maternidade': ThemeMaternity,
|
|
158
|
-
// 'oncologia': ThemeOncology,
|
|
159
|
-
// 'richet': ThemeRichet,
|
|
160
|
-
// 'legacyDefault': ThemeLegacyDefault
|
|
161
|
-
star: ThemeStar,
|
|
162
|
-
maternidadeStar: ThemeMaternidadeStar,
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Static theme data
|
|
167
|
-
*/
|
|
168
|
-
const Static = {
|
|
169
|
-
/* Colors */
|
|
170
|
-
color: {
|
|
171
|
-
success: {
|
|
172
|
-
'100': '223,246,233',
|
|
173
|
-
'300': '148,225,181',
|
|
174
|
-
'500': '95,210,144',
|
|
175
|
-
'700': '49,115,77',
|
|
176
|
-
'900': '19,42,29',
|
|
177
|
-
},
|
|
178
|
-
info: {
|
|
179
|
-
'100': '207,226,255',
|
|
180
|
-
'300': '149,191,255',
|
|
181
|
-
'500': '110,168,255',
|
|
182
|
-
'700': '66,100,153',
|
|
183
|
-
'900': '37,56,85',
|
|
184
|
-
},
|
|
185
|
-
error: {
|
|
186
|
-
'100': '251,221,221',
|
|
187
|
-
'300': '242,143,143',
|
|
188
|
-
'500': '235,87,87',
|
|
189
|
-
'700': '157,58,58',
|
|
190
|
-
'900': '47,17,17',
|
|
191
|
-
},
|
|
192
|
-
warning: {
|
|
193
|
-
'100': '252,250,196',
|
|
194
|
-
'300': '248,244,137',
|
|
195
|
-
'500': '245,239,78',
|
|
196
|
-
'700': '108,106,32',
|
|
197
|
-
'900': '49,48,16',
|
|
198
|
-
},
|
|
199
|
-
neutral: {
|
|
200
|
-
'0': '255,255,255',
|
|
201
|
-
'100': '246,246,246',
|
|
202
|
-
'200': '233,233,233',
|
|
203
|
-
'300': '226,226,226',
|
|
204
|
-
'400': '212,212,212',
|
|
205
|
-
'500': '183,183,183',
|
|
206
|
-
'600': '146,146,146',
|
|
207
|
-
'700': '110,110,110',
|
|
208
|
-
'800': '74,74,74',
|
|
209
|
-
'900': '38,38,38',
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
breakpoints: {
|
|
213
|
-
xsmall: {
|
|
214
|
-
min: 0,
|
|
215
|
-
max: 480,
|
|
216
|
-
},
|
|
217
|
-
small: {
|
|
218
|
-
min: 481,
|
|
219
|
-
max: 768,
|
|
220
|
-
},
|
|
221
|
-
medium: {
|
|
222
|
-
min: 769,
|
|
223
|
-
max: 992,
|
|
224
|
-
},
|
|
225
|
-
large: {
|
|
226
|
-
min: 993,
|
|
227
|
-
max: 1920,
|
|
228
|
-
},
|
|
229
|
-
xlarge: {
|
|
230
|
-
min: 1921,
|
|
231
|
-
max: 4096,
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
class CuraThemeColorsModule {
|
|
237
|
-
constructor() {
|
|
238
|
-
this.document = inject(DOCUMENT);
|
|
239
|
-
this.neutralDepthAlias = {
|
|
240
|
-
purewhite: '0',
|
|
241
|
-
white: '100',
|
|
242
|
-
pale: '200',
|
|
243
|
-
lighter: '300',
|
|
244
|
-
light: '400',
|
|
245
|
-
base: '500',
|
|
246
|
-
medium: '600',
|
|
247
|
-
dark: '700',
|
|
248
|
-
darker: '800',
|
|
249
|
-
black: '900',
|
|
250
|
-
};
|
|
251
|
-
this.colorDepthAlias = {
|
|
252
|
-
lighter: '100',
|
|
253
|
-
light: '300',
|
|
254
|
-
base: '500',
|
|
255
|
-
dark: '700',
|
|
256
|
-
darker: '900',
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Get theme color.
|
|
261
|
-
* @param colorWithDepth string Ex.: primary-light
|
|
262
|
-
* @param opacity number Opacity value (0-1)
|
|
263
|
-
* @returns RGBA value.
|
|
264
|
-
*/
|
|
265
|
-
getColor(colorWithDepth = 'primary-base', opacity = 1) {
|
|
266
|
-
const { color, depth } = this.splitColorDepth(colorWithDepth);
|
|
267
|
-
const staticColor = this.getStatic(color, depth, opacity);
|
|
268
|
-
if (staticColor)
|
|
269
|
-
return staticColor;
|
|
270
|
-
return this.getDynamic(color, depth, opacity);
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Internal: Look for static color by name and depth.
|
|
274
|
-
* @param color Color name.
|
|
275
|
-
* @param depth Depth number or alias.
|
|
276
|
-
* @param opacity Opacity value.
|
|
277
|
-
* @returns RGBA value.
|
|
278
|
-
*/
|
|
279
|
-
getStatic(color, depth, opacity = 1) {
|
|
280
|
-
const colorObj = Static.color[color];
|
|
281
|
-
if (!colorObj)
|
|
282
|
-
return null;
|
|
283
|
-
const alias = color === 'neutral' ? this.neutralDepthAlias[depth] : this.colorDepthAlias[depth];
|
|
284
|
-
const colorValue = colorObj[alias] || colorObj[depth];
|
|
285
|
-
return colorValue ? `rgba(${colorValue}, ${opacity})` : null;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Internal: Look for theme dynamic colors.
|
|
289
|
-
* @param color Color name.
|
|
290
|
-
* @param depth Color depth.
|
|
291
|
-
* @param opacity Opacity value.
|
|
292
|
-
* @returns RGBA value.
|
|
293
|
-
*/
|
|
294
|
-
getDynamic(color, depth, opacity) {
|
|
295
|
-
const themeVar = this.colorDepthAlias[depth] ? `--cura-color-${color}-${this.colorDepthAlias[depth]}` : `--cura-color-${color}-${depth}`;
|
|
296
|
-
if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {
|
|
297
|
-
const computedValue = getComputedStyle(this.document.documentElement).getPropertyValue(themeVar);
|
|
298
|
-
return computedValue ? `rgba(var(${themeVar}), ${opacity})` : `rgba(var(--cura-color-primary-500), ${opacity})`;
|
|
299
|
-
}
|
|
300
|
-
// Fallback para SSR
|
|
301
|
-
return `rgba(var(${themeVar}), ${opacity})`;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Internal: Split color strings
|
|
305
|
-
* @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
|
|
306
|
-
* @returns Object { color: string, depth: string }.
|
|
307
|
-
*/
|
|
308
|
-
splitColorDepth(colorWithDepth) {
|
|
309
|
-
const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
|
|
310
|
-
return { color: color ?? 'primary', depth: depth ?? 'base' };
|
|
311
|
-
}
|
|
312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
313
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, providedIn: 'root' }); }
|
|
314
|
-
}
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, decorators: [{
|
|
316
|
-
type: Injectable,
|
|
317
|
-
args: [{
|
|
318
|
-
providedIn: 'root',
|
|
319
|
-
}]
|
|
320
|
-
}] });
|
|
321
|
-
|
|
322
|
-
class CuraThemeSpacingModule {
|
|
323
|
-
constructor() {
|
|
324
|
-
this.document = inject(DOCUMENT);
|
|
325
|
-
this.curaSpacing = '--cura-spacing-base';
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Returns the base spacing var defined in the theme
|
|
329
|
-
* @returns CSS variable string or fallback value
|
|
330
|
-
*/
|
|
331
|
-
getSpacing() {
|
|
332
|
-
if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {
|
|
333
|
-
const computedValue = getComputedStyle(this.document.body).getPropertyValue(this.curaSpacing);
|
|
334
|
-
return computedValue ? `var(${this.curaSpacing})` : '4';
|
|
335
|
-
}
|
|
336
|
-
// Fallback para SSR
|
|
337
|
-
return `var(${this.curaSpacing})`;
|
|
338
|
-
}
|
|
339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
340
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, providedIn: 'root' }); }
|
|
341
|
-
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, decorators: [{
|
|
343
|
-
type: Injectable,
|
|
344
|
-
args: [{
|
|
345
|
-
providedIn: 'root',
|
|
346
|
-
}]
|
|
347
|
-
}] });
|
|
348
|
-
|
|
349
|
-
class CuraThemeFontsModule {
|
|
350
|
-
constructor() {
|
|
351
|
-
this.document = inject(DOCUMENT);
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Get the CSS variable related to the font family defined by the theme.
|
|
355
|
-
* @param type 'body' | 'heading' | 'display'
|
|
356
|
-
* @returns Related css variable as a string.
|
|
357
|
-
*/
|
|
358
|
-
getFamily(type = 'body') {
|
|
359
|
-
const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;
|
|
360
|
-
if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {
|
|
361
|
-
const computedValue = getComputedStyle(this.document.body).getPropertyValue(curaFontFamilyCSSVar);
|
|
362
|
-
return computedValue ? `var(${curaFontFamilyCSSVar})` : 'var(--cura-font-body)';
|
|
363
|
-
}
|
|
364
|
-
// Fallback para SSR
|
|
365
|
-
return `var(${curaFontFamilyCSSVar})`;
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* Get the CSS variables related to font weights defined by the theme.
|
|
369
|
-
* @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.
|
|
370
|
-
*/
|
|
371
|
-
getWeights() {
|
|
372
|
-
const weights = {};
|
|
373
|
-
Object.keys(ThemeDefault.font.weights).forEach((key) => {
|
|
374
|
-
weights[key] = `var(--cura-font-weights-${key})`;
|
|
375
|
-
});
|
|
376
|
-
return weights;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Get the CSS variable related to the font size base defined by the theme.
|
|
380
|
-
* @returns Related CSS variable as a string.
|
|
381
|
-
*/
|
|
382
|
-
getSize() {
|
|
383
|
-
return `var(--cura-font-size)`;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Get CSS variable related to the font color defined by the theme.
|
|
387
|
-
* @returns Related CSS variable as a string.
|
|
388
|
-
*/
|
|
389
|
-
getColor() {
|
|
390
|
-
return `var(--cura-font-color)`;
|
|
391
|
-
}
|
|
392
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
393
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, providedIn: 'root' }); }
|
|
394
|
-
}
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, decorators: [{
|
|
396
|
-
type: Injectable,
|
|
397
|
-
args: [{
|
|
398
|
-
providedIn: 'root',
|
|
399
|
-
}]
|
|
400
|
-
}] });
|
|
401
|
-
|
|
402
|
-
class CuraThemeBreakpointsModule {
|
|
403
|
-
/**
|
|
404
|
-
* Returns breakpoint values defined in the theme
|
|
405
|
-
* @param size Breakpoint size
|
|
406
|
-
* @param position Min or max position
|
|
407
|
-
* @returns Breakpoint value or all breakpoints
|
|
408
|
-
*/
|
|
409
|
-
get(size = null, position = null) {
|
|
410
|
-
if (size) {
|
|
411
|
-
const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];
|
|
412
|
-
if (breakpoint || breakpoint === 0)
|
|
413
|
-
return breakpoint;
|
|
414
|
-
}
|
|
415
|
-
return Static.breakpoints;
|
|
416
|
-
}
|
|
417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
418
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, providedIn: 'root' }); }
|
|
419
|
-
}
|
|
420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, decorators: [{
|
|
421
|
-
type: Injectable,
|
|
422
|
-
args: [{
|
|
423
|
-
providedIn: 'root',
|
|
424
|
-
}]
|
|
425
|
-
}] });
|
|
426
|
-
|
|
427
|
-
class CuraThemeModule {
|
|
428
|
-
constructor() {
|
|
429
|
-
this.colors = inject(CuraThemeColorsModule);
|
|
430
|
-
this.spacing = inject(CuraThemeSpacingModule);
|
|
431
|
-
this.fonts = inject(CuraThemeFontsModule);
|
|
432
|
-
this.breakpoints = inject(CuraThemeBreakpointsModule);
|
|
433
|
-
this.document = inject(DOCUMENT);
|
|
434
|
-
this.rootElement = null;
|
|
435
|
-
this.prefix = '--cura';
|
|
436
|
-
this.groupObject = {};
|
|
437
|
-
/* Private methods */
|
|
438
|
-
/**
|
|
439
|
-
* Set css var based on object structure
|
|
440
|
-
*/
|
|
441
|
-
this.setCssVar = (prop, path) => {
|
|
442
|
-
if (!this.rootElement)
|
|
443
|
-
return;
|
|
444
|
-
const varName = this.groupPath(path, prop[0]);
|
|
445
|
-
this.rootElement.style.setProperty(varName, prop[1]);
|
|
446
|
-
};
|
|
447
|
-
this.groupPath = (a, b) => `${a}-${b}`;
|
|
448
|
-
this.isObject = (val) => {
|
|
449
|
-
return val && typeof val === 'object' && !Array.isArray(val);
|
|
450
|
-
};
|
|
451
|
-
/**
|
|
452
|
-
* Deep merge objects
|
|
453
|
-
*/
|
|
454
|
-
this.mergeObject = (from, to) => {
|
|
455
|
-
const entries = Object.entries(from);
|
|
456
|
-
for (let e of entries) {
|
|
457
|
-
if (this.isObject(e[1])) {
|
|
458
|
-
this.mergeObject(e[1], to[e[0]]);
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
to[e[0]] = e[1];
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* Set css vars from preset object
|
|
467
|
-
*/
|
|
468
|
-
this.buildCssVars = (path, obj, isGroup = false) => {
|
|
469
|
-
const entries = Object.entries(obj);
|
|
470
|
-
for (let e of entries) {
|
|
471
|
-
if (this.isObject(e[1])) {
|
|
472
|
-
this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
if (isGroup) {
|
|
476
|
-
const varName = this.groupPath(path, e[0]);
|
|
477
|
-
this.groupObject[varName] = e[1];
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
this.setCssVar(e, path);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
if (this.document?.defaultView) {
|
|
486
|
-
this.rootElement = this.document.defaultView.document.documentElement;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Load a theme.
|
|
491
|
-
* @param theme Theme tag.
|
|
492
|
-
*/
|
|
493
|
-
load(theme = 'default') {
|
|
494
|
-
const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];
|
|
495
|
-
this.buildCssVars(this.prefix, preset);
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Load variables for SSR
|
|
499
|
-
* @param theme Theme tag
|
|
500
|
-
* @returns Object with CSS variables
|
|
501
|
-
*/
|
|
502
|
-
loadVarsSSR(theme = 'default') {
|
|
503
|
-
const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];
|
|
504
|
-
this.buildCssVars(this.prefix, preset, true);
|
|
505
|
-
return this.groupObject;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Define a custom theme
|
|
509
|
-
* @param customTheme Custom theme object definition
|
|
510
|
-
*/
|
|
511
|
-
setCustom(customTheme) {
|
|
512
|
-
const customTag = customTheme.name;
|
|
513
|
-
if (customTag in ThemePresets) {
|
|
514
|
-
console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);
|
|
515
|
-
this.load('default');
|
|
516
|
-
}
|
|
517
|
-
else {
|
|
518
|
-
const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets['default'];
|
|
519
|
-
const newTheme = { ...JSON.parse(JSON.stringify(preset)) };
|
|
520
|
-
this.mergeObject(customTheme.definitions, newTheme);
|
|
521
|
-
ThemePresets[customTag] = newTheme;
|
|
522
|
-
this.load(customTag);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
526
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, providedIn: 'root' }); }
|
|
527
|
-
}
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, decorators: [{
|
|
529
|
-
type: Injectable,
|
|
530
|
-
args: [{
|
|
531
|
-
providedIn: 'root',
|
|
532
|
-
}]
|
|
533
|
-
}], ctorParameters: () => [] });
|
|
534
|
-
|
|
535
|
-
// Configura o cura com informações especificas de cada projeto.
|
|
536
|
-
const CURA_CONFIG = new InjectionToken('curaConfig');
|
|
537
|
-
|
|
538
|
-
class CuraApiService {
|
|
539
|
-
constructor() {
|
|
540
|
-
this.curaConfig = inject(CURA_CONFIG);
|
|
541
|
-
this.document = inject(DOCUMENT$1);
|
|
542
|
-
this.themeModule = new CuraThemeModule();
|
|
543
|
-
this.localAssetsPath = signal(this.curaConfig?.localAssetsPath ? this.curaConfig?.localAssetsPath : `/assets`, ...(ngDevMode ? [{ debugName: "localAssetsPath" }] : []));
|
|
544
|
-
this.theme = {
|
|
545
|
-
load: (themeTag) => this.themeModule.load(themeTag),
|
|
546
|
-
setCustom: (customThemeDefinitions) => this.themeModule.setCustom(customThemeDefinitions),
|
|
547
|
-
colors: {
|
|
548
|
-
getColor: (colorWithDepth, opacity) => this.themeModule.colors.getColor(colorWithDepth, opacity),
|
|
549
|
-
},
|
|
550
|
-
fonts: {
|
|
551
|
-
getFamily: (type) => this.themeModule.fonts.getFamily(type),
|
|
552
|
-
getWeights: () => this.themeModule.fonts.getWeights(),
|
|
553
|
-
getSize: () => this.themeModule.fonts.getSize(),
|
|
554
|
-
getColor: () => this.themeModule.fonts.getColor(),
|
|
555
|
-
},
|
|
556
|
-
spacing: {
|
|
557
|
-
getSpacing: () => this.themeModule.spacing.getSpacing(),
|
|
558
|
-
},
|
|
559
|
-
breakpoints: {
|
|
560
|
-
get: (size, position) => this.themeModule.breakpoints.get(size, position),
|
|
561
|
-
},
|
|
562
|
-
};
|
|
563
|
-
this.addGlobalClasses();
|
|
564
|
-
if (this.curaConfig && this.curaConfig.customTheme) {
|
|
565
|
-
this.theme.setCustom(this.curaConfig.customTheme);
|
|
566
|
-
}
|
|
567
|
-
else {
|
|
568
|
-
const theme = this.curaConfig && this.curaConfig.theme ? this.curaConfig.theme : 'default';
|
|
569
|
-
this.theme.load(theme);
|
|
570
|
-
}
|
|
571
|
-
// Chama callback onReady se fornecido
|
|
572
|
-
if (this.curaConfig && this.curaConfig.onReady) {
|
|
573
|
-
this.curaConfig.onReady(this);
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* Adiciona classes CSS globais necessárias
|
|
578
|
-
*/
|
|
579
|
-
addGlobalClasses() {
|
|
580
|
-
if (!this.document)
|
|
581
|
-
return;
|
|
582
|
-
const styleId = 'cura_global_classes';
|
|
583
|
-
let styleElement = this.document.head.querySelector(`#${styleId}`);
|
|
584
|
-
if (!styleElement) {
|
|
585
|
-
styleElement = this.document.createElement('style');
|
|
586
|
-
styleElement.id = styleId;
|
|
587
|
-
styleElement.textContent = `
|
|
588
|
-
.cura-body-scroll-lock {
|
|
589
|
-
overflow: hidden;
|
|
590
|
-
position: fixed;
|
|
591
|
-
left: 0;
|
|
592
|
-
right: 0;
|
|
593
|
-
top: 0;
|
|
594
|
-
}
|
|
595
|
-
`;
|
|
596
|
-
this.document.head.appendChild(styleElement);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
/**
|
|
600
|
-
* Método para obter variáveis CSS para SSR
|
|
601
|
-
* @param theme Nome do tema
|
|
602
|
-
* @returns Objeto com variáveis CSS
|
|
603
|
-
*/
|
|
604
|
-
getSSRVars(theme = 'default') {
|
|
605
|
-
return this.themeModule.loadVarsSSR(theme);
|
|
606
|
-
}
|
|
607
|
-
/**
|
|
608
|
-
* Método utilitário para adicionar/remover classe de scroll lock
|
|
609
|
-
* @param lock Se deve bloquear o scroll
|
|
610
|
-
*/
|
|
611
|
-
toggleBodyScrollLock(lock) {
|
|
612
|
-
if (!this.document)
|
|
613
|
-
return;
|
|
614
|
-
const body = this.document.body;
|
|
615
|
-
if (lock) {
|
|
616
|
-
body.classList.add('cura-body-scroll-lock');
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
body.classList.remove('cura-body-scroll-lock');
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
623
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, providedIn: 'root' }); }
|
|
624
|
-
}
|
|
625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, decorators: [{
|
|
626
|
-
type: Injectable,
|
|
627
|
-
args: [{
|
|
628
|
-
providedIn: 'root',
|
|
629
|
-
}]
|
|
630
|
-
}], ctorParameters: () => [] });
|
|
631
|
-
|
|
632
|
-
var InterfaceModes;
|
|
633
|
-
(function (InterfaceModes) {
|
|
634
|
-
InterfaceModes["LIGHT"] = "light";
|
|
635
|
-
InterfaceModes["DARK"] = "dark";
|
|
636
|
-
})(InterfaceModes || (InterfaceModes = {}));
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Generated bundle index. Do not edit.
|
|
640
|
-
*/
|
|
641
|
-
|
|
642
|
-
export { CURA_CONFIG, CuraApiService, CuraThemeBreakpointsModule, CuraThemeColorsModule, CuraThemeFontsModule, CuraThemeModule, CuraThemeSpacingModule, InterfaceModes, Static, ThemeDefault, ThemePresets };
|
|
643
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-api.mjs.map
|