@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
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
input,
|
|
4
|
+
output,
|
|
5
|
+
signal,
|
|
6
|
+
computed,
|
|
7
|
+
inject,
|
|
8
|
+
forwardRef,
|
|
9
|
+
ElementRef,
|
|
10
|
+
AfterViewInit,
|
|
11
|
+
OnDestroy,
|
|
12
|
+
viewChild,
|
|
13
|
+
contentChildren,
|
|
14
|
+
model,
|
|
15
|
+
effect,
|
|
16
|
+
PLATFORM_ID,
|
|
17
|
+
} from '@angular/core';
|
|
18
|
+
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
19
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
20
|
+
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
21
|
+
import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
|
|
22
|
+
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
23
|
+
import { CuraSelectOptionComponent } from '@rededor/site-front-end-lib/cura/forms/cura-select-option';
|
|
24
|
+
import { SelectMode, SelectSize, SelectStatus, SelectSelectedEvent, SelectSearchEvent } from './cura-select.definitions';
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'cura-select',
|
|
28
|
+
imports: [CommonModule, CuraLabelComponent, CuraIconComponent],
|
|
29
|
+
templateUrl: './cura-select.component.html',
|
|
30
|
+
styleUrls: ['./cura-select.component.scss'],
|
|
31
|
+
host: {
|
|
32
|
+
role: 'combobox',
|
|
33
|
+
'[attr.aria-label]': 'label()',
|
|
34
|
+
'[attr.aria-required]': 'required()',
|
|
35
|
+
'[attr.aria-disabled]': 'disabled()',
|
|
36
|
+
'[attr.aria-invalid]': 'status() === "error"',
|
|
37
|
+
'[attr.aria-expanded]': 'isOpen()',
|
|
38
|
+
'[attr.aria-controls]': 'listboxId()',
|
|
39
|
+
'[attr.aria-activedescendant]': 'activeOptionId()',
|
|
40
|
+
},
|
|
41
|
+
providers: [
|
|
42
|
+
{
|
|
43
|
+
provide: NG_VALUE_ACCESSOR,
|
|
44
|
+
useExisting: forwardRef(() => CuraSelectComponent),
|
|
45
|
+
multi: true,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
})
|
|
49
|
+
export class CuraSelectComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
50
|
+
private curaApi: CuraApiService = inject(CuraApiService);
|
|
51
|
+
private elementRef = inject(ElementRef);
|
|
52
|
+
private platformId = inject(PLATFORM_ID);
|
|
53
|
+
|
|
54
|
+
name = input<string>('');
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The label text for the select component
|
|
58
|
+
*/
|
|
59
|
+
label = input<string>('');
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Placeholder text for the input field
|
|
63
|
+
*/
|
|
64
|
+
placeholder = input<string>('');
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Current value of the select component
|
|
68
|
+
*/
|
|
69
|
+
value = model<string | any>('');
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Display mode of the select component
|
|
73
|
+
*/
|
|
74
|
+
mode = input<SelectMode>('default');
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Size of the select component
|
|
78
|
+
*/
|
|
79
|
+
size = input<SelectSize>('medium');
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Icon name for the select component
|
|
83
|
+
*/
|
|
84
|
+
iconName = input<string | undefined>(undefined);
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Status of the select component
|
|
88
|
+
*/
|
|
89
|
+
status = input<SelectStatus>('default');
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Whether the select component is disabled
|
|
93
|
+
*/
|
|
94
|
+
disabled = input<boolean>(false);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Whether the select component is required
|
|
98
|
+
*/
|
|
99
|
+
required = input<boolean>(false);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Enable/Disable search at options by term
|
|
103
|
+
*/
|
|
104
|
+
searchBehavior = input<boolean>(false);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The search will be sensitive to accents
|
|
108
|
+
*/
|
|
109
|
+
caseSensitive = input<boolean>(true);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* CSS max-height property for dropdown item.
|
|
113
|
+
* Can also be used by css property --max-height.
|
|
114
|
+
* Default: 285px
|
|
115
|
+
*/
|
|
116
|
+
maxHeight = input<string>('285px');
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Event emitted when an option is selected
|
|
120
|
+
*/
|
|
121
|
+
selected = output<SelectSelectedEvent>();
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Event emitted when search term changes
|
|
125
|
+
*/
|
|
126
|
+
searchTermInput = output<SelectSearchEvent>();
|
|
127
|
+
|
|
128
|
+
// Internal state signals
|
|
129
|
+
isHovered = signal<boolean>(false);
|
|
130
|
+
isFocused = signal<boolean>(false);
|
|
131
|
+
isOpen = signal<boolean>(false);
|
|
132
|
+
activeIndex = signal<number>(-1);
|
|
133
|
+
textInput = signal<string>('');
|
|
134
|
+
|
|
135
|
+
// Unique ID for accessibility
|
|
136
|
+
private componentId = `cura-select-${Math.random().toString(36).substring(2, 8)}`;
|
|
137
|
+
|
|
138
|
+
// Form control callbacks
|
|
139
|
+
private onChange = (value: string) => {};
|
|
140
|
+
private onTouched = () => {};
|
|
141
|
+
|
|
142
|
+
// ViewChild references
|
|
143
|
+
inputElement = viewChild<ElementRef<HTMLInputElement>>('inputElement');
|
|
144
|
+
options = contentChildren<CuraSelectOptionComponent>(CuraSelectOptionComponent);
|
|
145
|
+
|
|
146
|
+
// Computed signals
|
|
147
|
+
currentIconName = computed(() => {
|
|
148
|
+
const iconMap = {
|
|
149
|
+
default: this.iconName() || '',
|
|
150
|
+
success: 'checkCircle',
|
|
151
|
+
error: 'alertCircle',
|
|
152
|
+
};
|
|
153
|
+
return iconMap[this.status()];
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
private colorConfig = computed(() => {
|
|
157
|
+
if (this.disabled()) {
|
|
158
|
+
return {
|
|
159
|
+
label: 'neutral-medium',
|
|
160
|
+
text: 'neutral-medium',
|
|
161
|
+
icon: 'neutral-medium',
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const isStatusDefault = this.status() === 'default';
|
|
166
|
+
const isHoveredOrFocused = this.isFocused() || this.isHovered();
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
label: !isStatusDefault || isHoveredOrFocused ? 'neutral-black' : 'neutral-dark',
|
|
170
|
+
text: this.getTextColor(isHoveredOrFocused, isStatusDefault),
|
|
171
|
+
icon: this.getTextColor(isHoveredOrFocused, isStatusDefault),
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
containerClasses = computed(() => {
|
|
176
|
+
return {
|
|
177
|
+
wrapper: true,
|
|
178
|
+
label: !!this.label(),
|
|
179
|
+
disabled: this.disabled(),
|
|
180
|
+
transparent: this.mode() === 'transparent',
|
|
181
|
+
[this.size().toLowerCase()]: true,
|
|
182
|
+
[this.status().toLowerCase()]: true,
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
labelColor = computed(() => this.colorConfig().label);
|
|
187
|
+
textColor = computed(() => this.colorConfig().text);
|
|
188
|
+
iconColor = computed(() => this.colorConfig().icon);
|
|
189
|
+
|
|
190
|
+
// Accessibility computed signals
|
|
191
|
+
listboxId = computed(() => `${this.componentId}-listbox`);
|
|
192
|
+
activeOptionId = computed(() => {
|
|
193
|
+
const activeOption = this.options()?.[this.activeIndex()];
|
|
194
|
+
return activeOption?.optionId() || '';
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
styles = computed(() => {
|
|
198
|
+
const { fonts, colors } = this.curaApi?.theme || { fonts: null, colors: null };
|
|
199
|
+
|
|
200
|
+
const baseStyles: { [key: string]: string } = {};
|
|
201
|
+
|
|
202
|
+
if (fonts) {
|
|
203
|
+
const fontWeights = fonts.getWeights();
|
|
204
|
+
baseStyles['--font-weight-medium'] = fontWeights.medium;
|
|
205
|
+
baseStyles['--font-weight-bold'] = fontWeights.bold;
|
|
206
|
+
baseStyles['--font-weight-regular'] = fontWeights.regular;
|
|
207
|
+
baseStyles['--font-color'] = fonts.getColor();
|
|
208
|
+
baseStyles['--font-family'] = fonts.getFamily();
|
|
209
|
+
baseStyles['--font-size'] = fonts.getSize();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (colors) {
|
|
213
|
+
const colorKeys = [
|
|
214
|
+
'primary-base',
|
|
215
|
+
'neutral-purewhite',
|
|
216
|
+
'neutral-white',
|
|
217
|
+
'neutral-black',
|
|
218
|
+
'neutral-medium',
|
|
219
|
+
'neutral-light',
|
|
220
|
+
'neutral-base',
|
|
221
|
+
'neutral-dark',
|
|
222
|
+
'success-dark',
|
|
223
|
+
'success-darker',
|
|
224
|
+
'success-lighter',
|
|
225
|
+
'error-lighter',
|
|
226
|
+
'error-dark',
|
|
227
|
+
'error-darker',
|
|
228
|
+
'error-base',
|
|
229
|
+
'info-base',
|
|
230
|
+
];
|
|
231
|
+
|
|
232
|
+
colorKeys.forEach((key) => {
|
|
233
|
+
baseStyles[`--${key}`] = colors.getColor(key);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return baseStyles;
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
constructor() {
|
|
241
|
+
effect(() => {
|
|
242
|
+
this.updateOptionHighlights(this.activeIndex());
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
effect(() => {
|
|
246
|
+
if (!this.options() || this.options().length === 0) return;
|
|
247
|
+
|
|
248
|
+
const selectedOption = this.options().find((option) => option.selected());
|
|
249
|
+
if (selectedOption && selectedOption.value() !== this.value()) {
|
|
250
|
+
this.handleOptionSelected(selectedOption);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
ngAfterViewInit() {
|
|
256
|
+
this.initializeOptions();
|
|
257
|
+
this.addOutsideClickListener();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
ngOnDestroy() {
|
|
261
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
262
|
+
this.removeOutsideClickListener();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// ControlValueAccessor implementation
|
|
267
|
+
writeValue(value: string): void {
|
|
268
|
+
this.value.set(value);
|
|
269
|
+
if (!this.options) return;
|
|
270
|
+
|
|
271
|
+
const option = this.options().find((opt) => opt.value() === value);
|
|
272
|
+
if (option) {
|
|
273
|
+
this.textInput.set(option.elementRef?.nativeElement?.textContent || '');
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
registerOnChange(fn: (value: string) => void): void {
|
|
278
|
+
this.onChange = fn;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
registerOnTouched(fn: () => void): void {
|
|
282
|
+
this.onTouched = fn;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
private getTextColor(isHoveredOrFocused: boolean, isStatusDefault: boolean): string {
|
|
286
|
+
if (isHoveredOrFocused && isStatusDefault) return 'neutral-black';
|
|
287
|
+
if (this.status() === 'success') return 'success-dark';
|
|
288
|
+
if (this.status() === 'error') return 'error-dark';
|
|
289
|
+
return 'neutral-dark';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
private initializeOptions() {
|
|
293
|
+
if (!this.options()) return;
|
|
294
|
+
|
|
295
|
+
this.options().forEach((option) => {
|
|
296
|
+
option.size.set(this.size());
|
|
297
|
+
option.active.set(false);
|
|
298
|
+
option.visible.set(true);
|
|
299
|
+
|
|
300
|
+
const isSelected = this.value() === option.value();
|
|
301
|
+
option.selected.set(isSelected);
|
|
302
|
+
if (isSelected) {
|
|
303
|
+
this.value.set(option.value());
|
|
304
|
+
this.textInput.update((value) => option.elementRef?.nativeElement?.textContent || value);
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
private handleOptionSelected(selectedOption: CuraSelectOptionComponent) {
|
|
310
|
+
const value = selectedOption.value();
|
|
311
|
+
this.value.set(value);
|
|
312
|
+
|
|
313
|
+
const optionText = selectedOption.elementRef?.nativeElement?.textContent || '';
|
|
314
|
+
if (this.textInput() !== optionText) {
|
|
315
|
+
this.onChange(value);
|
|
316
|
+
this.textInput.set(optionText);
|
|
317
|
+
this.isOpen.set(false);
|
|
318
|
+
this.filterOptions(optionText);
|
|
319
|
+
this.selected.emit({ value });
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
private clearSelectedAttributes() {
|
|
324
|
+
if (!this.options()) return;
|
|
325
|
+
|
|
326
|
+
this.options().forEach((option) => {
|
|
327
|
+
option.selected.set(false);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
private removeAccents(str: string): string {
|
|
332
|
+
return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
private filterOptions(searchTerm: string) {
|
|
336
|
+
if (!this.searchBehavior()) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
this.searchTermInput.emit({ searchTerm });
|
|
341
|
+
|
|
342
|
+
let processedSearchTerm = searchTerm;
|
|
343
|
+
if (!this.caseSensitive()) {
|
|
344
|
+
processedSearchTerm = this.removeAccents(searchTerm).toLowerCase();
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
this.options().forEach((option) => {
|
|
348
|
+
let optionText = option.elementRef?.nativeElement?.textContent || '';
|
|
349
|
+
if (!this.caseSensitive()) {
|
|
350
|
+
optionText = this.removeAccents(optionText.toLowerCase());
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const isVisible = optionText.includes(processedSearchTerm);
|
|
354
|
+
option.visible.set(isVisible);
|
|
355
|
+
option.elementRef.nativeElement.style.display = isVisible ? 'block' : 'none';
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// Event handlers
|
|
360
|
+
handleKeyNavigation(event: KeyboardEvent) {
|
|
361
|
+
const { code: keyCode } = event;
|
|
362
|
+
|
|
363
|
+
if (!this.isOpen() && keyCode === 'ArrowDown') {
|
|
364
|
+
this.isOpen.set(true);
|
|
365
|
+
this.activeIndex.set(0);
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (keyCode === 'ArrowDown') {
|
|
370
|
+
event.preventDefault();
|
|
371
|
+
this.updateActiveIndex(1);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if (keyCode === 'ArrowUp') {
|
|
375
|
+
event.preventDefault();
|
|
376
|
+
this.updateActiveIndex(-1);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (keyCode === 'Enter' || keyCode === 'Space') {
|
|
380
|
+
this.options()?.[this.activeIndex()]?.elementRef?.nativeElement?.click();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
if (keyCode === 'Escape') {
|
|
384
|
+
this.isOpen.set(false);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
private updateActiveIndex(direction: number) {
|
|
389
|
+
const visibleOptions = this.options();
|
|
390
|
+
if (!visibleOptions || visibleOptions.length === 0) return;
|
|
391
|
+
|
|
392
|
+
this.activeIndex.update((index) => (index + direction + visibleOptions.length) % visibleOptions.length);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
handleInputChange(event: Event) {
|
|
396
|
+
const value = (event.target as HTMLInputElement).value;
|
|
397
|
+
this.textInput.set(value);
|
|
398
|
+
this.isOpen.set(value.length > 0);
|
|
399
|
+
this.onChange(value);
|
|
400
|
+
this.filterOptions(value);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
handleClick(event: MouseEvent) {
|
|
404
|
+
if (this.disabled()) {
|
|
405
|
+
event.preventDefault();
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const target = event.target as HTMLElement;
|
|
410
|
+
|
|
411
|
+
// Procura pelo elemento cura-select-option mais próximo
|
|
412
|
+
const optionElement = target.closest('cura-select-option') as HTMLElement;
|
|
413
|
+
|
|
414
|
+
if (optionElement) {
|
|
415
|
+
this.clearSelectedAttributes();
|
|
416
|
+
const clickedOption = this.options()?.find((option) => option.elementRef?.nativeElement === optionElement);
|
|
417
|
+
if (clickedOption) {
|
|
418
|
+
clickedOption.selected.set(true);
|
|
419
|
+
}
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
this.isOpen.update((value) => !value);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
private updateOptionHighlights(newActiveIndex: number): void {
|
|
427
|
+
this.options().forEach((option, index) => {
|
|
428
|
+
option.active.set(index === newActiveIndex);
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Controla o clique fora do componente
|
|
434
|
+
*/
|
|
435
|
+
private addOutsideClickListener(): void {
|
|
436
|
+
if (!isPlatformBrowser(this.platformId)) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
document.addEventListener('click', this.handleClickOutside);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
private removeOutsideClickListener(): void {
|
|
443
|
+
if (!isPlatformBrowser(this.platformId)) {
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
document.removeEventListener('click', this.handleClickOutside);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
private handleClickOutside = (event: MouseEvent): void => {
|
|
450
|
+
if (!isPlatformBrowser(this.platformId)) {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
const clickedOutside = !this.elementRef.nativeElement.contains(event.target as Node);
|
|
455
|
+
if (clickedOutside && this.isOpen()) {
|
|
456
|
+
this.isOpen.set(false);
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Display mode options for the select component
|
|
3
|
+
*/
|
|
4
|
+
export type SelectMode = 'default' | 'transparent';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Size options for the select component
|
|
8
|
+
*/
|
|
9
|
+
export type SelectSize = 'small' | 'medium' | 'large';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Status options for the select component
|
|
13
|
+
*/
|
|
14
|
+
export type SelectStatus = 'success' | 'error' | 'default';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Event payload emitted when an option is selected
|
|
18
|
+
*/
|
|
19
|
+
export interface SelectSelectedEvent {
|
|
20
|
+
/**
|
|
21
|
+
* The value of the selected option
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Event payload emitted when search term changes
|
|
28
|
+
*/
|
|
29
|
+
export interface SelectSearchEvent {
|
|
30
|
+
/**
|
|
31
|
+
* The search term entered by the user
|
|
32
|
+
*/
|
|
33
|
+
searchTerm: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div [class]="classes()" [style]="styles()" [hidden]="!visible()">
|
|
2
|
+
<cura-label [color]="selected() ? 'primary-base' : 'neutral-black'" [size]="internalSize().label" marginBlock="0">
|
|
3
|
+
<ng-content></ng-content>
|
|
4
|
+
</cura-label>
|
|
5
|
+
|
|
6
|
+
@if (selected()) {
|
|
7
|
+
<cura-icon name="check" [size]="internalSize().icon" color="primary-base"> </cura-icon>
|
|
8
|
+
}
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.item {
|
|
6
|
+
display: flex;
|
|
7
|
+
padding: 12px 8px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
background: var(--neutral-purewhite);
|
|
13
|
+
|
|
14
|
+
&.selected {
|
|
15
|
+
background-color: var(--primary-lighter-50);
|
|
16
|
+
border-bottom: 1px solid var(--primary-light);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:hover:not(.selected) {
|
|
20
|
+
background: var(--neutral-white);
|
|
21
|
+
border-bottom: 1px solid var(--neutral-light);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.active {
|
|
25
|
+
background: var(--neutral-white) !important;
|
|
26
|
+
border-bottom: 1px solid var(--neutral-light);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.selected.active {
|
|
30
|
+
background-color: var(--primary-lighter-50) !important;
|
|
31
|
+
box-shadow: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Component, input, computed, inject, model, ElementRef } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
4
|
+
import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
|
|
5
|
+
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
6
|
+
import { SelectOptionSize, SelectOptionSizeConfig } from './cura-select-option.definitions';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'cura-select-option',
|
|
10
|
+
imports: [CommonModule, CuraLabelComponent, CuraIconComponent],
|
|
11
|
+
templateUrl: './cura-select-option.component.html',
|
|
12
|
+
styleUrls: ['./cura-select-option.component.scss'],
|
|
13
|
+
host: {
|
|
14
|
+
role: 'option',
|
|
15
|
+
'[attr.aria-selected]': 'selected()',
|
|
16
|
+
'[attr.id]': 'optionId()',
|
|
17
|
+
'[attr.aria-disabled]': 'false',
|
|
18
|
+
},
|
|
19
|
+
})
|
|
20
|
+
export class CuraSelectOptionComponent {
|
|
21
|
+
private curaApi: CuraApiService = inject(CuraApiService);
|
|
22
|
+
public elementRef = inject(ElementRef);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Value associated with the select option
|
|
26
|
+
*/
|
|
27
|
+
value = input<string | any>('');
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Whether the option is selected
|
|
31
|
+
*/
|
|
32
|
+
selected = model<boolean>(false);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Whether the option is active (highlighted)
|
|
36
|
+
*/
|
|
37
|
+
active = model<boolean>(false);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Size of the select option
|
|
41
|
+
*/
|
|
42
|
+
size = model<SelectOptionSize>('small');
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Whether the option is visible (for search filtering)
|
|
46
|
+
*/
|
|
47
|
+
visible = model<boolean>(true);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Unique ID for the option (for accessibility)
|
|
51
|
+
*/
|
|
52
|
+
private componentId = `cura-select-option-${Math.random().toString(36).substring(2, 8)}`;
|
|
53
|
+
|
|
54
|
+
// Computed signals
|
|
55
|
+
optionId = computed(() => this.componentId);
|
|
56
|
+
|
|
57
|
+
internalSize = computed(() => {
|
|
58
|
+
const sizeMap: { [key in SelectOptionSize]: SelectOptionSizeConfig } = {
|
|
59
|
+
large: { label: 'medium', icon: 20 },
|
|
60
|
+
medium: { label: 'small', icon: 16 },
|
|
61
|
+
small: { label: 'xsmall', icon: 'micro' },
|
|
62
|
+
xsmall: { label: 'xsmall', icon: 'micro' },
|
|
63
|
+
};
|
|
64
|
+
return sizeMap[this.size()] || sizeMap['medium'];
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
styles = computed(() => {
|
|
68
|
+
const colors = [
|
|
69
|
+
{ name: '--primary-lighter-50', theme: 'primary-lighter', opacity: 0.5 },
|
|
70
|
+
{ name: '--primary-light', theme: 'primary-light' },
|
|
71
|
+
{ name: '--neutral-light', theme: 'neutral-light' },
|
|
72
|
+
{ name: '--neutral-purewhite', theme: 'neutral-purewhite' },
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
const colorStyles: { [key: string]: string } = {};
|
|
76
|
+
colors.forEach((color) => {
|
|
77
|
+
if (this.curaApi) {
|
|
78
|
+
colorStyles[color.name] = this.curaApi.theme.colors.getColor(color.theme, color.opacity);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return { ...colorStyles };
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
classes = computed(() => {
|
|
86
|
+
const classes = ['item'];
|
|
87
|
+
|
|
88
|
+
if (this.selected()) classes.push('selected');
|
|
89
|
+
if (this.active()) classes.push('active');
|
|
90
|
+
|
|
91
|
+
return classes.join(' ');
|
|
92
|
+
});
|
|
93
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Size options for the select option component
|
|
3
|
+
*/
|
|
4
|
+
export type SelectOptionSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Interface for size mapping configuration
|
|
8
|
+
*/
|
|
9
|
+
export interface SelectOptionSizeConfig {
|
|
10
|
+
label: 'xsmall' | 'small' | 'medium';
|
|
11
|
+
icon: number | string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<cura-select
|
|
2
|
+
[label]="label()"
|
|
3
|
+
[placeholder]="placeholder()"
|
|
4
|
+
[required]="required()"
|
|
5
|
+
[disabled]="disabled()"
|
|
6
|
+
[size]="size()"
|
|
7
|
+
[status]="status()"
|
|
8
|
+
[(value)]="value"
|
|
9
|
+
(selected)="handleSelected($event)"
|
|
10
|
+
>
|
|
11
|
+
@for (state of states(); track state.value) {
|
|
12
|
+
<cura-select-option [value]="state.value">{{ state.label }}</cura-select-option>
|
|
13
|
+
}
|
|
14
|
+
</cura-select>
|