@rededor/site-front-end-lib 4.0.0-alpha.4 → 17.0.0
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/README.md +0 -9
- package/esm2022/lib/components/algolia-dropdown/algolia-dropdown.component.mjs +126 -0
- package/esm2022/lib/components/avatar/avatar.component.mjs +66 -0
- package/esm2022/lib/components/banner/content-banner/content-banner.component.mjs +41 -0
- package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +133 -0
- package/esm2022/lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.mjs +65 -0
- package/esm2022/lib/components/cards/expandable-card/expandable-card.component.mjs +69 -0
- package/esm2022/lib/components/cards/testimonial-card/testimonial-card.component.mjs +63 -0
- package/esm2022/lib/components/carousels/testimonials-carousel/testimonials-carousel.component.mjs +64 -0
- package/esm2022/lib/components/cta-wrapper/cta-wrapper.component.mjs +84 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-category.component.mjs +24 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-not-found.component.mjs +24 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-option.component.mjs +65 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search.component.mjs +292 -0
- package/esm2022/lib/components/error/error-service/error.service.mjs +17 -0
- package/esm2022/lib/components/error/error.component.mjs +183 -0
- package/esm2022/lib/components/filter-letter-and-terms/filter-letter-and-terms.component.mjs +103 -0
- package/esm2022/lib/components/filters/filter-generic/filter-generic.component.mjs +235 -0
- package/esm2022/lib/components/filters/filter-planos-convenios/filter-planos-convenios.component.mjs +150 -0
- package/esm2022/lib/components/footer/footer.component.mjs +125 -0
- package/esm2022/lib/components/footer/helpers/footerTheme.func.mjs +70 -0
- package/esm2022/lib/components/footer/models/FooterTheme.model.mjs +2 -0
- package/esm2022/lib/components/header/components/header-action-menu/header-action-menu.component.mjs +36 -0
- package/esm2022/lib/components/header/components/header-aux-menu/header-aux-menu.component.mjs +12 -0
- package/esm2022/lib/components/header/components/header-aux-menu-container/header-aux-menu-container.component.mjs +17 -0
- package/esm2022/lib/components/header/components/header-aux-menu-item/header-aux-menu-item.component.mjs +51 -0
- package/esm2022/lib/components/header/components/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.mjs +23 -0
- package/esm2022/lib/components/header/components/header-logo/header-logo.component.mjs +32 -0
- package/esm2022/lib/components/header/components/header-main-menu/header-main-menu.component.mjs +11 -0
- package/esm2022/lib/components/header/components/header-main-menu-item/header-main-menu-item.component.mjs +77 -0
- package/esm2022/lib/components/header/components/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.mjs +99 -0
- package/esm2022/lib/components/header/components/header-side-menu/header-side-menu.component.mjs +26 -0
- package/esm2022/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.mjs +54 -0
- package/esm2022/lib/components/header/header.component.mjs +104 -0
- package/esm2022/lib/components/header/helpers/headerTheme.func.mjs +136 -0
- package/esm2022/lib/components/header/models/HeaderTheme.model.mjs +2 -0
- package/esm2022/lib/components/header/services/header.service.mjs +43 -0
- package/esm2022/lib/components/image/image.component.mjs +61 -0
- package/esm2022/lib/components/index.mjs +52 -0
- package/esm2022/lib/components/input-file/input-file.component.mjs +304 -0
- package/esm2022/lib/components/load-screen/load-screen.component.mjs +23 -0
- package/esm2022/lib/components/overlay/overlay.component.mjs +19 -0
- package/esm2022/lib/components/page-header/page-header.component.mjs +47 -0
- package/esm2022/lib/components/page-template-fullcontent/page-template-fullcontent.component.mjs +30 -0
- package/esm2022/lib/components/page-template-sidebar/page-template-sidebar.component.mjs +39 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +64 -0
- package/esm2022/lib/components/post-header/post-header.component.mjs +56 -0
- package/esm2022/lib/components/search/search.component.mjs +147 -0
- package/esm2022/lib/components/section-navigation/section-navigation.component.mjs +149 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.mjs +43 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.mjs +43 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.mjs +42 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.mjs +11 -0
- package/esm2022/lib/components/side-ctas/models/SideCta.model.mjs +2 -0
- package/esm2022/lib/components/side-ctas/side-ctas.component.mjs +23 -0
- package/esm2022/lib/components/sidebar-navigation/sidebar-navigation.component.mjs +119 -0
- package/esm2022/lib/components/sticky-navigation/sticky-navigation.component.mjs +132 -0
- package/esm2022/lib/components/whatsapp/whatsapp.component.mjs +60 -0
- package/esm2022/lib/directives/index.mjs +4 -0
- package/esm2022/lib/directives/rdsite-click-outside/rdsite-click-outside.directive.mjs +29 -0
- package/esm2022/lib/directives/rdsite-link/rdsite-link.directive.mjs +197 -0
- package/esm2022/lib/directives/rdsite-phone-modal/rdsite-phone-modal.directive.mjs +52 -0
- package/esm2022/lib/enums/EnumDoencaTaxonomy.enum.mjs +11 -0
- package/esm2022/lib/enums/EnumError.enum.mjs +6 -0
- package/esm2022/lib/enums/EnumThemes.enum.mjs +9 -0
- package/esm2022/lib/enums/Estados.enum.mjs +31 -0
- package/esm2022/lib/enums/Filter.enum.mjs +9 -0
- package/esm2022/lib/enums/IconCuraDefaultType.enum.mjs +121 -0
- package/esm2022/lib/enums/ImageMimeType.enum.mjs +7 -0
- package/esm2022/lib/enums/RdsiteModalComponentStyle.enum.mjs +16 -0
- package/esm2022/lib/enums/RdsiteModalDrawerComponentStyle.enum.mjs +9 -0
- package/esm2022/lib/enums/UnidadeCoverageType.enum.mjs +7 -0
- package/esm2022/lib/enums/index.mjs +11 -0
- package/esm2022/lib/helpers/check-safari-agent.func.mjs +7 -0
- package/esm2022/lib/helpers/formatPhone.func.mjs +29 -0
- package/esm2022/lib/helpers/getCircularReplacer.func.mjs +38 -0
- package/esm2022/lib/helpers/getSiteUrl.func.mjs +11 -0
- package/esm2022/lib/helpers/index.mjs +9 -0
- package/esm2022/lib/helpers/mediaQueries.mjs +11 -0
- package/esm2022/lib/helpers/removeDuplicateObjectsFromArray.func.mjs +5 -0
- package/esm2022/lib/helpers/removeDuplicateValuesFromArray.func.mjs +5 -0
- package/esm2022/lib/helpers/removeHtmlTags.func.mjs +6 -0
- package/esm2022/lib/helpers/toQueryParams.func.mjs +8 -0
- package/esm2022/lib/interceptors/error.interceptor.mjs +36 -0
- package/esm2022/lib/interceptors/index.mjs +3 -0
- package/esm2022/lib/interceptors/log.interceptor.mjs +35 -0
- package/esm2022/lib/middlewares/index.mjs +5 -0
- package/esm2022/lib/middlewares/ssr-initialization.middleware.mjs +8 -0
- package/esm2022/lib/middlewares/url-validation-default-logo.mjs +38 -0
- package/esm2022/lib/middlewares/url-validation-error-page.mjs +209 -0
- package/esm2022/lib/middlewares/url-validation.middleware.mjs +41 -0
- package/esm2022/lib/models/algolia-search-api.model.mjs +2 -0
- package/esm2022/lib/models/breadcrumbs/breadcrumbs-items.model.mjs +2 -0
- package/esm2022/lib/models/breadcrumbs/breadcrumbs-json-item.model.mjs +2 -0
- package/esm2022/lib/models/centro-estudos-backend.model.mjs +2 -0
- package/esm2022/lib/models/centro-medico.model.mjs +2 -0
- package/esm2022/lib/models/content-banner.model.mjs +2 -0
- package/esm2022/lib/models/cta-wrapper.model.mjs +2 -0
- package/esm2022/lib/models/doenca-backend.model.mjs +2 -0
- package/esm2022/lib/models/doenca-taxonomy.model.mjs +2 -0
- package/esm2022/lib/models/especialidade-backend.model.mjs +2 -0
- package/esm2022/lib/models/exame-backend.model.mjs +2 -0
- package/esm2022/lib/models/filters/filter-planos-convenios.model.mjs +2 -0
- package/esm2022/lib/models/filters/filter-section.type.mjs +2 -0
- package/esm2022/lib/models/filters/filter-sections.model.mjs +2 -0
- package/esm2022/lib/models/images/rdsite-image.model.mjs +2 -0
- package/esm2022/lib/models/medico-cv.model.mjs +2 -0
- package/esm2022/lib/models/medico.model.mjs +2 -0
- package/esm2022/lib/models/menu-de-unidade.model.mjs +2 -0
- package/esm2022/lib/models/menu-item.model.mjs +2 -0
- package/esm2022/lib/models/privacy-tools/privacy-tools.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-cobertura.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-convenio.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-especialidade.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-planos.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-post-category.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-unidade.model.mjs +2 -0
- package/esm2022/lib/models/section-navigation.model.mjs +2 -0
- package/esm2022/lib/models/seo/seo-data.model.mjs +2 -0
- package/esm2022/lib/models/seo/seo-unidade.model.mjs +2 -0
- package/esm2022/lib/models/social-meta-properties.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/WpResponse.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/category/wpCategory.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/content.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/excerpt.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/featuredMedia.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/guid.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/index.mjs +11 -0
- package/esm2022/lib/models/wordpress/general/links.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/meta.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/title.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastData.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastHeadJson.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastMeta.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/page/page.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/post/post.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-onco.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-site.model.mjs +2 -0
- package/esm2022/lib/pipes/index.mjs +2 -0
- package/esm2022/lib/pipes/phone/phone.pipe.mjs +18 -0
- package/esm2022/lib/services/algolia/algolia.service.mjs +37 -0
- package/esm2022/lib/services/algolia-search-api/algolia-search-api.service.mjs +71 -0
- package/esm2022/lib/services/geoloc/geoloc.service.mjs +202 -0
- package/esm2022/lib/services/http-client/http-client.service.mjs +55 -0
- package/esm2022/lib/services/index.mjs +19 -0
- package/esm2022/lib/services/log/log.service.mjs +46 -0
- package/esm2022/lib/services/mapbox/mapbox.service.mjs +69 -0
- package/esm2022/lib/services/modal/modal.service.mjs +56 -0
- package/esm2022/lib/services/modal-drawer/modal-drawer.service.mjs +42 -0
- package/esm2022/lib/services/ngu-carousel/ngu-carousel.service.mjs +81 -0
- package/esm2022/lib/services/phone/phone.service.mjs +28 -0
- package/esm2022/lib/services/privacy-tools/privacy-tools.service.mjs +92 -0
- package/esm2022/lib/services/seo/seo.service.mjs +489 -0
- package/esm2022/lib/services/server-response/server-response.service.mjs +92 -0
- package/esm2022/lib/services/site-back-end/site-back-end.service.mjs +197 -0
- package/esm2022/lib/services/ssr-loading/ssr-loading.service.mjs +48 -0
- package/esm2022/lib/services/transfer-state/transfer-state.service.mjs +33 -0
- package/esm2022/lib/services/youtube/youtube.service.mjs +39 -0
- package/esm2022/lib/tokens/LibConfig.mjs +4 -0
- package/esm2022/lib/tokens/express.tokens.mjs +4 -0
- package/esm2022/public-api.mjs +23 -0
- package/esm2022/rededor-site-front-end-lib.mjs +5 -0
- package/fesm2022/rededor-site-front-end-lib.mjs +6408 -2
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/lib/components/algolia-dropdown/algolia-dropdown.component.d.ts +38 -0
- package/lib/components/avatar/avatar.component.d.ts +26 -0
- package/lib/components/banner/content-banner/content-banner.component.d.ts +20 -0
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +36 -0
- package/lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.d.ts +41 -0
- package/lib/components/cards/expandable-card/expandable-card.component.d.ts +29 -0
- package/lib/components/cards/testimonial-card/testimonial-card.component.d.ts +31 -0
- package/lib/components/carousels/testimonials-carousel/testimonials-carousel.component.d.ts +28 -0
- package/lib/components/cta-wrapper/cta-wrapper.component.d.ts +33 -0
- package/lib/components/dropdown-search/dropdown-search-category.component.d.ts +9 -0
- package/lib/components/dropdown-search/dropdown-search-not-found.component.d.ts +9 -0
- package/lib/components/dropdown-search/dropdown-search-option.component.d.ts +26 -0
- package/lib/components/dropdown-search/dropdown-search.component.d.ts +71 -0
- package/lib/components/error/error-service/error.service.d.ts +8 -0
- package/lib/components/error/error.component.d.ts +48 -0
- package/lib/components/filter-letter-and-terms/filter-letter-and-terms.component.d.ts +36 -0
- package/lib/components/filters/filter-generic/filter-generic.component.d.ts +77 -0
- package/lib/components/filters/filter-planos-convenios/filter-planos-convenios.component.d.ts +45 -0
- package/lib/components/footer/footer.component.d.ts +49 -0
- package/lib/components/footer/helpers/footerTheme.func.d.ts +3 -0
- package/lib/components/footer/models/FooterTheme.model.d.ts +7 -0
- package/lib/components/header/components/header-action-menu/header-action-menu.component.d.ts +16 -0
- package/lib/components/header/components/header-aux-menu/header-aux-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-aux-menu-container/header-aux-menu-container.component.d.ts +6 -0
- package/lib/components/header/components/header-aux-menu-item/header-aux-menu-item.component.d.ts +21 -0
- package/lib/components/header/components/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.d.ts +10 -0
- package/lib/components/header/components/header-logo/header-logo.component.d.ts +12 -0
- package/lib/components/header/components/header-main-menu/header-main-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-main-menu-item/header-main-menu-item.component.d.ts +29 -0
- package/lib/components/header/components/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.d.ts +41 -0
- package/lib/components/header/components/header-side-menu/header-side-menu.component.d.ts +11 -0
- package/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.d.ts +22 -0
- package/lib/components/header/header.component.d.ts +36 -0
- package/lib/components/header/helpers/headerTheme.func.d.ts +3 -0
- package/lib/components/header/models/HeaderTheme.model.d.ts +8 -0
- package/lib/components/header/services/header.service.d.ts +11 -0
- package/lib/components/image/image.component.d.ts +22 -0
- package/lib/components/index.d.ts +50 -0
- package/lib/components/input-file/input-file.component.d.ts +88 -0
- package/{components/load-screen/index.d.ts → lib/components/load-screen/load-screen.component.d.ts} +5 -6
- package/{components/overlay/index.d.ts → lib/components/overlay/overlay.component.d.ts} +4 -6
- package/lib/components/page-header/page-header.component.d.ts +20 -0
- package/lib/components/page-template-fullcontent/page-template-fullcontent.component.d.ts +14 -0
- package/lib/components/page-template-sidebar/page-template-sidebar.component.d.ts +17 -0
- package/lib/components/pagination/pagination.component.d.ts +30 -0
- package/lib/components/post-header/post-header.component.d.ts +31 -0
- package/lib/components/search/search.component.d.ts +48 -0
- package/lib/components/section-navigation/section-navigation.component.d.ts +44 -0
- package/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.d.ts +23 -0
- package/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.d.ts +15 -0
- package/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.d.ts +22 -0
- package/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.d.ts +5 -0
- package/lib/components/side-ctas/models/SideCta.model.d.ts +5 -0
- package/lib/components/side-ctas/side-ctas.component.d.ts +11 -0
- package/lib/components/sidebar-navigation/sidebar-navigation.component.d.ts +39 -0
- package/lib/components/sticky-navigation/sticky-navigation.component.d.ts +43 -0
- package/lib/components/whatsapp/whatsapp.component.d.ts +29 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/rdsite-click-outside/rdsite-click-outside.directive.d.ts +10 -0
- package/lib/directives/rdsite-link/rdsite-link.directive.d.ts +40 -0
- package/lib/directives/rdsite-phone-modal/rdsite-phone-modal.directive.d.ts +17 -0
- package/lib/enums/EnumDoencaTaxonomy.enum.d.ts +8 -0
- package/lib/enums/EnumError.enum.d.ts +4 -0
- package/lib/enums/EnumThemes.enum.d.ts +7 -0
- package/lib/enums/Estados.enum.d.ts +29 -0
- package/lib/enums/Filter.enum.d.ts +7 -0
- package/{enums/index.d.ts → lib/enums/IconCuraDefaultType.enum.d.ts} +1 -58
- package/lib/enums/ImageMimeType.enum.d.ts +5 -0
- package/lib/enums/RdsiteModalComponentStyle.enum.d.ts +14 -0
- package/lib/enums/RdsiteModalDrawerComponentStyle.enum.d.ts +7 -0
- package/lib/enums/UnidadeCoverageType.enum.d.ts +5 -0
- package/lib/enums/index.d.ts +10 -0
- package/lib/helpers/check-safari-agent.func.d.ts +2 -0
- package/lib/helpers/formatPhone.func.d.ts +1 -0
- package/lib/helpers/getCircularReplacer.func.d.ts +7 -0
- package/lib/helpers/getSiteUrl.func.d.ts +2 -0
- package/lib/helpers/index.d.ts +8 -0
- package/lib/helpers/mediaQueries.d.ts +6 -0
- package/lib/helpers/removeDuplicateObjectsFromArray.func.d.ts +2 -0
- package/lib/helpers/removeDuplicateValuesFromArray.func.d.ts +2 -0
- package/lib/helpers/removeHtmlTags.func.d.ts +2 -0
- package/lib/helpers/toQueryParams.func.d.ts +5 -0
- package/lib/interceptors/error.interceptor.d.ts +13 -0
- package/lib/interceptors/index.d.ts +2 -0
- package/lib/interceptors/log.interceptor.d.ts +11 -0
- package/lib/middlewares/index.d.ts +4 -0
- package/lib/middlewares/ssr-initialization.middleware.d.ts +2 -0
- package/lib/middlewares/url-validation-default-logo.d.ts +1 -0
- package/lib/middlewares/url-validation-error-page.d.ts +22 -0
- package/lib/middlewares/url-validation.middleware.d.ts +13 -0
- package/lib/models/algolia-search-api.model.d.ts +179 -0
- package/lib/models/breadcrumbs/breadcrumbs-items.model.d.ts +10 -0
- package/lib/models/breadcrumbs/breadcrumbs-json-item.model.d.ts +8 -0
- package/lib/models/centro-estudos-backend.model.d.ts +8 -0
- package/lib/models/centro-medico.model.d.ts +33 -0
- package/lib/models/content-banner.model.d.ts +15 -0
- package/lib/models/cta-wrapper.model.d.ts +9 -0
- package/lib/models/doenca-backend.model.d.ts +25 -0
- package/lib/models/doenca-taxonomy.model.d.ts +11 -0
- package/lib/models/especialidade-backend.model.d.ts +24 -0
- package/lib/models/exame-backend.model.d.ts +25 -0
- package/lib/models/filters/filter-planos-convenios.model.d.ts +28 -0
- package/lib/models/filters/filter-section.type.d.ts +13 -0
- package/lib/models/filters/filter-sections.model.d.ts +52 -0
- package/lib/models/images/rdsite-image.model.d.ts +5 -0
- package/lib/models/medico-cv.model.d.ts +10 -0
- package/lib/models/medico.model.d.ts +68 -0
- package/lib/models/menu-de-unidade.model.d.ts +14 -0
- package/lib/models/menu-item.model.d.ts +67 -0
- package/lib/models/privacy-tools/privacy-tools.model.d.ts +8 -0
- package/lib/models/rdsl-cobertura.model.d.ts +71 -0
- package/lib/models/rdsl-convenio.model.d.ts +17 -0
- package/lib/models/rdsl-especialidade.model.d.ts +33 -0
- package/lib/models/rdsl-planos.model.d.ts +13 -0
- package/lib/models/rdsl-post-category.model.d.ts +8 -0
- package/lib/models/rdsl-unidade.model.d.ts +50 -0
- package/lib/models/section-navigation.model.d.ts +9 -0
- package/lib/models/seo/seo-data.model.d.ts +11 -0
- package/lib/models/seo/seo-unidade.model.d.ts +6 -0
- package/lib/models/social-meta-properties.model.d.ts +9 -0
- package/lib/models/wordpress/WpResponse.model.d.ts +31 -0
- package/lib/models/wordpress/category/wpCategory.model.d.ts +14 -0
- package/lib/models/wordpress/general/content.model.d.ts +4 -0
- package/lib/models/wordpress/general/excerpt.model.d.ts +4 -0
- package/lib/models/wordpress/general/featuredMedia.model.d.ts +26 -0
- package/lib/models/wordpress/general/guid.model.d.ts +3 -0
- package/lib/models/wordpress/general/index.d.ts +10 -0
- package/lib/models/wordpress/general/links.model.d.ts +47 -0
- package/lib/models/wordpress/general/meta.model.d.ts +3 -0
- package/lib/models/wordpress/general/title.model.d.ts +3 -0
- package/lib/models/wordpress/general/yoastData.model.d.ts +4 -0
- package/lib/models/wordpress/general/yoastHeadJson.model.d.ts +56 -0
- package/lib/models/wordpress/general/yoastMeta.model.d.ts +5 -0
- package/lib/models/wordpress/page/page.model.d.ts +10 -0
- package/lib/models/wordpress/post/post.model.d.ts +33 -0
- package/lib/models/wordpress/unidade/wp-unidade-onco.model.d.ts +56 -0
- package/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.d.ts +166 -0
- package/lib/models/wordpress/unidade/wp-unidade-site.model.d.ts +45 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/phone/phone.pipe.d.ts +7 -0
- package/{services/algolia/index.d.ts → lib/services/algolia/algolia.service.d.ts} +4 -6
- package/{services/algolia-search-api/index.d.ts → lib/services/algolia-search-api/algolia-search-api.service.d.ts} +7 -6
- package/lib/services/geoloc/geoloc.service.d.ts +49 -0
- package/lib/services/http-client/http-client.service.d.ts +19 -0
- package/lib/services/index.d.ts +18 -0
- package/lib/services/log/log.service.d.ts +16 -0
- package/lib/services/mapbox/mapbox.service.d.ts +55 -0
- package/lib/services/modal/modal.service.d.ts +31 -0
- package/lib/services/modal-drawer/modal-drawer.service.d.ts +37 -0
- package/{services/ngu-carousel/index.d.ts → lib/services/ngu-carousel/ngu-carousel.service.d.ts} +3 -6
- package/lib/services/phone/phone.service.d.ts +11 -0
- package/lib/services/privacy-tools/privacy-tools.service.d.ts +20 -0
- package/lib/services/seo/seo.service.d.ts +142 -0
- package/lib/services/server-response/server-response.service.d.ts +39 -0
- package/lib/services/site-back-end/site-back-end.service.d.ts +87 -0
- package/{services/ssr-loading/index.d.ts → lib/services/ssr-loading/ssr-loading.service.d.ts} +4 -5
- package/lib/services/transfer-state/transfer-state.service.d.ts +12 -0
- package/{services/youtube/index.d.ts → lib/services/youtube/youtube.service.d.ts} +3 -5
- package/lib/tokens/LibConfig.d.ts +38 -0
- package/lib/tokens/express.tokens.d.ts +4 -0
- package/package.json +13 -283
- package/public-api.d.ts +10 -0
- package/components/algolia-dropdown/index.d.ts +0 -38
- package/components/algolia-search/index.d.ts +0 -292
- package/components/banner/index.d.ts +0 -20
- package/components/breadcrumbs/index.d.ts +0 -35
- package/components/cards/index.d.ts +0 -96
- package/components/carousels/index.d.ts +0 -28
- package/components/cta-wrapper/index.d.ts +0 -31
- package/components/error/index.d.ts +0 -46
- package/components/filter-letter-and-terms/index.d.ts +0 -36
- package/components/filters/filter-generic/index.d.ts +0 -68
- package/components/filters/filter-planos-convenios/index.d.ts +0 -41
- package/components/footer/index.d.ts +0 -38
- package/components/header/components/action/index.d.ts +0 -17
- package/components/header/components/auxiliar/index.d.ts +0 -29
- package/components/header/components/main/index.d.ts +0 -70
- package/components/header/components/side/index.d.ts +0 -33
- package/components/header/index.d.ts +0 -60
- package/components/header/services/index.d.ts +0 -14
- package/components/image/index.d.ts +0 -23
- package/components/modal/index.d.ts +0 -29
- package/components/modal-drawer/index.d.ts +0 -49
- package/components/page-header/index.d.ts +0 -20
- 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 -41
- package/components/side-ctas/index.d.ts +0 -70
- package/components/whatsapp/index.d.ts +0 -27
- package/core/index.d.ts +0 -1984
- 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 -47
- package/cura/badges/index.d.ts +0 -5
- package/cura/buttons/cura-button/index.d.ts +0 -85
- package/cura/buttons/cura-button-outline/index.d.ts +0 -85
- package/cura/buttons/cura-button-select/index.d.ts +0 -34
- package/cura/buttons/cura-button-transparent/index.d.ts +0 -82
- package/cura/buttons/index.d.ts +0 -15
- package/cura/cards/cura-card/index.d.ts +0 -54
- package/cura/feedback/cura-alert/index.d.ts +0 -55
- package/cura/feedback/cura-modal/index.d.ts +0 -97
- package/cura/forms/cura-checkbox/index.d.ts +0 -152
- package/cura/forms/cura-input-text/index.d.ts +0 -234
- package/cura/forms/cura-label/index.d.ts +0 -51
- package/cura/forms/cura-radio/index.d.ts +0 -143
- package/cura/forms/cura-select/index.d.ts +0 -151
- package/cura/forms/cura-select-option/index.d.ts +0 -49
- package/cura/forms/cura-switch/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/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 -583
- 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 -119
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +0 -152
- 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 -74
- 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 -173
- 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 -91
- 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 -243
- 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 -150
- 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 -31
- 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 -59
- 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 -164
- 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 -68
- 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 -259
- 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 -162
- 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 -41
- package/fesm2022/rededor-site-front-end-lib-components-page-header.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 -134
- 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-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 -1600
- 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 -541
- 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 -96
- 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 -165
- 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 -130
- 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 -156
- 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 -165
- 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 -96
- 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-forms-cura-checkbox.mjs +0 -253
- 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 -547
- 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 -88
- 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 -237
- 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 -82
- 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.mjs +0 -377
- 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.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 -187
- 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-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/shared/index.d.ts +0 -40
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, model, input, output, computed, forwardRef, Component } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
6
|
-
import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
|
|
7
|
-
import { formsSizes } from '@rededor/site-front-end-lib/cura/forms';
|
|
8
|
-
|
|
9
|
-
class CuraSwitchComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.curaApi = inject(CuraApiService);
|
|
12
|
-
/**
|
|
13
|
-
* Indicates whether the switch is checked or not.
|
|
14
|
-
*/
|
|
15
|
-
this.checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
16
|
-
/**
|
|
17
|
-
* Indicates whether the switch is disabled or not.
|
|
18
|
-
*/
|
|
19
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
20
|
-
/**
|
|
21
|
-
* The label text to display next to the switch.
|
|
22
|
-
*/
|
|
23
|
-
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
24
|
-
/**
|
|
25
|
-
* Tab index for the switch element.
|
|
26
|
-
*/
|
|
27
|
-
this.tabindex = input(0, ...(ngDevMode ? [{ debugName: "tabindex" }] : []));
|
|
28
|
-
/**
|
|
29
|
-
* Controls how the label text should handle overflow.
|
|
30
|
-
* - 'none': No overflow handling; the label displays normally.
|
|
31
|
-
* - 'single': The label will be truncated with an ellipsis if it overflows a single line.
|
|
32
|
-
* - string: Custom overflow handling mode.
|
|
33
|
-
*/
|
|
34
|
-
this.overflowLabel = input('none', ...(ngDevMode ? [{ debugName: "overflowLabel" }] : []));
|
|
35
|
-
/**
|
|
36
|
-
* Controls how the helper text should handle overflow.
|
|
37
|
-
* - 'none': No overflow handling; the label displays normally.
|
|
38
|
-
* - 'single': The label will be truncated with an ellipsis if it overflows a single line.
|
|
39
|
-
* - string: Custom overflow handling mode.
|
|
40
|
-
*/
|
|
41
|
-
this.overflowHelper = input('none', ...(ngDevMode ? [{ debugName: "overflowHelper" }] : []));
|
|
42
|
-
/**
|
|
43
|
-
* Position of the label relative to the switch.
|
|
44
|
-
*/
|
|
45
|
-
this.position = input('left', ...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
46
|
-
/**
|
|
47
|
-
* Size of the switch.
|
|
48
|
-
*/
|
|
49
|
-
this.size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
50
|
-
/**
|
|
51
|
-
* Background style of the switch.
|
|
52
|
-
*/
|
|
53
|
-
this.background = input('light', ...(ngDevMode ? [{ debugName: "background" }] : []));
|
|
54
|
-
/**
|
|
55
|
-
* Accent color of the switch.
|
|
56
|
-
*/
|
|
57
|
-
this.color = input('accent', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
58
|
-
/**
|
|
59
|
-
* Change event emitter
|
|
60
|
-
*/
|
|
61
|
-
this.onchange = output();
|
|
62
|
-
// Form control callbacks
|
|
63
|
-
this.onChange = (value) => { };
|
|
64
|
-
this.onTouched = () => { };
|
|
65
|
-
this.sizes = {
|
|
66
|
-
large: { size: 64 },
|
|
67
|
-
medium: { size: 48 },
|
|
68
|
-
small: { size: 40 },
|
|
69
|
-
};
|
|
70
|
-
// Computed signals
|
|
71
|
-
this.colorConfig = computed(() => {
|
|
72
|
-
if (this.disabled()) {
|
|
73
|
-
return {
|
|
74
|
-
label: this.isDarkBackground() ? 'neutral-dark' : 'neutral-dark',
|
|
75
|
-
message: this.isDarkBackground() ? 'neutral-dark' : 'neutral-dark',
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
const darkBackground = this.isDarkBackground();
|
|
79
|
-
return {
|
|
80
|
-
label: darkBackground ? 'neutral-white' : 'neutral-black',
|
|
81
|
-
message: darkBackground ? 'primary-lighter' : 'neutral-dark',
|
|
82
|
-
};
|
|
83
|
-
}, ...(ngDevMode ? [{ debugName: "colorConfig" }] : []));
|
|
84
|
-
this.containerClasses = computed(() => {
|
|
85
|
-
const classes = ['container'];
|
|
86
|
-
if (this.checked())
|
|
87
|
-
classes.push('checked');
|
|
88
|
-
if (this.disabled())
|
|
89
|
-
classes.push('disabled');
|
|
90
|
-
if (this.position() === 'right')
|
|
91
|
-
classes.push('position');
|
|
92
|
-
return classes.join(' ');
|
|
93
|
-
}, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
|
|
94
|
-
this.labelColor = computed(() => this.colorConfig().label, ...(ngDevMode ? [{ debugName: "labelColor" }] : []));
|
|
95
|
-
this.messageColor = computed(() => this.colorConfig().message, ...(ngDevMode ? [{ debugName: "messageColor" }] : []));
|
|
96
|
-
this.labelSize = computed(() => (this.size() === 'large' ? 'medium' : 'xsmall'), ...(ngDevMode ? [{ debugName: "labelSize" }] : []));
|
|
97
|
-
this.labelTextAlign = computed(() => (this.position() === 'right' ? 'right' : 'left'), ...(ngDevMode ? [{ debugName: "labelTextAlign" }] : []));
|
|
98
|
-
this.styles = computed(() => {
|
|
99
|
-
const sizeConfig = this.sizes[this.size()];
|
|
100
|
-
const formsSize = formsSizes[this.size()];
|
|
101
|
-
const sizeStyles = {
|
|
102
|
-
'--size-track': `${sizeConfig.size}px`,
|
|
103
|
-
'--size': `${formsSize.size}px`,
|
|
104
|
-
'--gap': `${formsSize.gap}px`,
|
|
105
|
-
};
|
|
106
|
-
const darkBackground = this.isDarkBackground();
|
|
107
|
-
const colorValue = this.color();
|
|
108
|
-
const colors = [
|
|
109
|
-
{ name: '--info-base', background: 'info-base' },
|
|
110
|
-
{ name: '--neutral-black-shadow', background: 'neutral-black', opacity: 0.16 },
|
|
111
|
-
{ name: '--neutral-purewhite', background: 'neutral-purewhite' },
|
|
112
|
-
{ name: '--neutral-medium', background: 'neutral-medium' },
|
|
113
|
-
{ name: '--neutral-pale', background: 'neutral-pale' },
|
|
114
|
-
{ name: '--neutral-dark-base', background: `neutral-${darkBackground ? 'dark' : 'base'}` },
|
|
115
|
-
{ name: '--neutral-darker-medium', background: `neutral-${darkBackground ? 'darker' : 'medium'}` },
|
|
116
|
-
{ name: '--neutral-black-neutral-pale', background: `${darkBackground ? 'neutral-black' : 'neutral-pale'}` },
|
|
117
|
-
{ name: '--neutral-black-neutral-base', background: `${darkBackground ? 'neutral-dark' : 'neutral-base'}` },
|
|
118
|
-
{ name: '--color-base-light', background: `${colorValue}-light` },
|
|
119
|
-
{ name: '--color-dark', background: `${colorValue}-dark` },
|
|
120
|
-
];
|
|
121
|
-
const colorStyles = {};
|
|
122
|
-
colors.forEach((color) => {
|
|
123
|
-
if (this.curaApi) {
|
|
124
|
-
colorStyles[color.name] = this.curaApi.theme.colors.getColor(color.background, color?.opacity);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
return { ...sizeStyles, ...colorStyles };
|
|
128
|
-
}, ...(ngDevMode ? [{ debugName: "styles" }] : []));
|
|
129
|
-
}
|
|
130
|
-
// ControlValueAccessor implementation
|
|
131
|
-
writeValue(value) {
|
|
132
|
-
this.checked.set(value || false);
|
|
133
|
-
}
|
|
134
|
-
registerOnChange(fn) {
|
|
135
|
-
this.onChange = fn;
|
|
136
|
-
}
|
|
137
|
-
registerOnTouched(fn) {
|
|
138
|
-
this.onTouched = fn;
|
|
139
|
-
}
|
|
140
|
-
isDarkBackground() {
|
|
141
|
-
return this.background() === 'dark';
|
|
142
|
-
}
|
|
143
|
-
toggleSwitch() {
|
|
144
|
-
if (this.disabled())
|
|
145
|
-
return;
|
|
146
|
-
this.checked.update((value) => !value);
|
|
147
|
-
// Notify form control
|
|
148
|
-
this.onChange(this.checked());
|
|
149
|
-
this.onTouched();
|
|
150
|
-
this.onchange.emit({ checked: this.checked() });
|
|
151
|
-
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
153
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.2", type: CuraSwitchComponent, isStandalone: true, selector: "cura-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, overflowHelper: { classPropertyName: "overflowHelper", publicName: "overflowHelper", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, background: { classPropertyName: "background", publicName: "background", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", onchange: "onchange" }, host: { attributes: { "role": "switch" }, properties: { "attr.aria-checked": "checked()", "attr.aria-disabled": "disabled()", "attr.tabindex": "tabindex()" } }, providers: [
|
|
154
|
-
{
|
|
155
|
-
provide: NG_VALUE_ACCESSOR,
|
|
156
|
-
useExisting: forwardRef(() => CuraSwitchComponent),
|
|
157
|
-
multi: true,
|
|
158
|
-
},
|
|
159
|
-
], ngImport: i0, template: "<div [class]=\"containerClasses()\" [style]=\"styles()\" (click)=\"toggleSwitch()\">\r\n <div class=\"info\">\r\n <cura-label\r\n [textOverflow]=\"overflowLabel()\"\r\n [style.textAlign]=\"labelTextAlign()\"\r\n class=\"label\"\r\n weight=\"bold\"\r\n [size]=\"labelSize()\"\r\n lineHeight=\"125%\"\r\n [color]=\"labelColor()\"\r\n >\r\n {{ label() }}\r\n </cura-label>\r\n\r\n <cura-label [textOverflow]=\"overflowHelper()\" [style.textAlign]=\"labelTextAlign()\" [color]=\"messageColor()\" size=\"xsmall\" class=\"message\">\r\n <ng-content></ng-content>\r\n </cura-label>\r\n </div>\r\n\r\n <div class=\"control\">\r\n <div [class]=\"'track ' + size().toLowerCase()\">\r\n <div [class]=\"'thumb ' + size().toLowerCase()\" [tabIndex]=\"tabindex()\" (keydown.space)=\"toggleSwitch()\" (keydown.enter)=\"toggleSwitch()\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";:host{display:block;box-sizing:border-box;min-width:0}.container{display:flex;align-items:center;flex-direction:row-reverse;justify-content:start;gap:var(--gap);text-align:left;cursor:pointer}.position{flex-direction:row}.info{overflow:hidden}.label,.message{text-align:left}.control{width:fit-content}.track{background:var(--neutral-dark-base);border-radius:16px;transition:background-color .3s;align-items:flex-start;flex-shrink:0;box-sizing:border-box;width:var(--size-track);height:var(--size);position:relative}.thumb{background:var(--neutral-purewhite);border:2px solid var(--neutral-darker-medium);border-radius:50%;position:absolute;transition:transform .3s,outline .3s;display:inline-block;cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:var(--size);height:var(--size);top:50%;transform:translateY(-50%)}.checked .thumb{border-color:var(--color-dark);box-shadow:0 4px 8px 0 var(--neutral-black-shadow, rgba(38, 38, 38, .16));background:var(--neutral-purewhite);transform:translate(var(--size)) translateY(-50%)}.checked .thumb:hover{background:var(--neutral-pale)!important;border-color:var(--neutral-darker-medium)!important}.checked .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}.checked .track{background:var(--color-base-light)}.disabled .track{background:var(--neutral-black-neutral-pale)}.disabled .thumb{background:var(--neutral-black-neutral-base)!important;border-color:var(--neutral-black-neutral-pale)!important;cursor:not-allowed}.disabled.checked .track{background:var(--neutral-black-neutral-pale)}.container.disabled .thumb:focus{outline:none!important;border-color:var(--neutral-black-neutral-pale)!important}:not(.disabled):not(.checked) .thumb:hover{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled):not(.checked) .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled) .thumb:focus{outline:2px solid var(--info-base)!important;border:2px solid var(--neutral-darker-medium);z-index:1}:not(.disabled) .checked .thumb:focus{outline:2px solid var(--info-base)!important;border-color:var(--color-dark)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
160
|
-
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraSwitchComponent, decorators: [{
|
|
162
|
-
type: Component,
|
|
163
|
-
args: [{ selector: 'cura-switch', imports: [CommonModule, CuraLabelComponent], host: {
|
|
164
|
-
role: 'switch',
|
|
165
|
-
'[attr.aria-checked]': 'checked()',
|
|
166
|
-
'[attr.aria-disabled]': 'disabled()',
|
|
167
|
-
'[attr.tabindex]': 'tabindex()',
|
|
168
|
-
}, providers: [
|
|
169
|
-
{
|
|
170
|
-
provide: NG_VALUE_ACCESSOR,
|
|
171
|
-
useExisting: forwardRef(() => CuraSwitchComponent),
|
|
172
|
-
multi: true,
|
|
173
|
-
},
|
|
174
|
-
], template: "<div [class]=\"containerClasses()\" [style]=\"styles()\" (click)=\"toggleSwitch()\">\r\n <div class=\"info\">\r\n <cura-label\r\n [textOverflow]=\"overflowLabel()\"\r\n [style.textAlign]=\"labelTextAlign()\"\r\n class=\"label\"\r\n weight=\"bold\"\r\n [size]=\"labelSize()\"\r\n lineHeight=\"125%\"\r\n [color]=\"labelColor()\"\r\n >\r\n {{ label() }}\r\n </cura-label>\r\n\r\n <cura-label [textOverflow]=\"overflowHelper()\" [style.textAlign]=\"labelTextAlign()\" [color]=\"messageColor()\" size=\"xsmall\" class=\"message\">\r\n <ng-content></ng-content>\r\n </cura-label>\r\n </div>\r\n\r\n <div class=\"control\">\r\n <div [class]=\"'track ' + size().toLowerCase()\">\r\n <div [class]=\"'thumb ' + size().toLowerCase()\" [tabIndex]=\"tabindex()\" (keydown.space)=\"toggleSwitch()\" (keydown.enter)=\"toggleSwitch()\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";:host{display:block;box-sizing:border-box;min-width:0}.container{display:flex;align-items:center;flex-direction:row-reverse;justify-content:start;gap:var(--gap);text-align:left;cursor:pointer}.position{flex-direction:row}.info{overflow:hidden}.label,.message{text-align:left}.control{width:fit-content}.track{background:var(--neutral-dark-base);border-radius:16px;transition:background-color .3s;align-items:flex-start;flex-shrink:0;box-sizing:border-box;width:var(--size-track);height:var(--size);position:relative}.thumb{background:var(--neutral-purewhite);border:2px solid var(--neutral-darker-medium);border-radius:50%;position:absolute;transition:transform .3s,outline .3s;display:inline-block;cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:var(--size);height:var(--size);top:50%;transform:translateY(-50%)}.checked .thumb{border-color:var(--color-dark);box-shadow:0 4px 8px 0 var(--neutral-black-shadow, rgba(38, 38, 38, .16));background:var(--neutral-purewhite);transform:translate(var(--size)) translateY(-50%)}.checked .thumb:hover{background:var(--neutral-pale)!important;border-color:var(--neutral-darker-medium)!important}.checked .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}.checked .track{background:var(--color-base-light)}.disabled .track{background:var(--neutral-black-neutral-pale)}.disabled .thumb{background:var(--neutral-black-neutral-base)!important;border-color:var(--neutral-black-neutral-pale)!important;cursor:not-allowed}.disabled.checked .track{background:var(--neutral-black-neutral-pale)}.container.disabled .thumb:focus{outline:none!important;border-color:var(--neutral-black-neutral-pale)!important}:not(.disabled):not(.checked) .thumb:hover{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled):not(.checked) .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled) .thumb:focus{outline:2px solid var(--info-base)!important;border:2px solid var(--neutral-darker-medium);z-index:1}:not(.disabled) .checked .thumb:focus{outline:2px solid var(--info-base)!important;border-color:var(--color-dark)}\n"] }]
|
|
175
|
-
}] });
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Generated bundle index. Do not edit.
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
export { CuraSwitchComponent };
|
|
182
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-forms-cura-switch.mjs","sources":["../../../projects/site-front-end-lib/cura/forms/cura-switch/cura-switch.component.ts","../../../projects/site-front-end-lib/cura/forms/cura-switch/cura-switch.component.html","../../../projects/site-front-end-lib/cura/forms/cura-switch/rededor-site-front-end-lib-cura-forms-cura-switch.ts"],"sourcesContent":["import { Component, input, output, inject, computed, forwardRef, model } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\r\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\r\nimport { formsSizes, TextOverflow } from '@rededor/site-front-end-lib/cura/forms';\r\nimport { SwitchSize, SwitchPosition, SwitchBackground, SwitchChangeEvent } from './cura-switch.definitions';\r\n\r\n@Component({\r\n selector: 'cura-switch',\r\n imports: [CommonModule, CuraLabelComponent],\r\n templateUrl: './cura-switch.component.html',\r\n styleUrls: ['./cura-switch.component.scss'],\r\n host: {\r\n role: 'switch',\r\n '[attr.aria-checked]': 'checked()',\r\n '[attr.aria-disabled]': 'disabled()',\r\n '[attr.tabindex]': 'tabindex()',\r\n },\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => CuraSwitchComponent),\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class CuraSwitchComponent implements ControlValueAccessor {\r\n private curaApi: CuraApiService = inject(CuraApiService);\r\n\r\n /**\r\n * Indicates whether the switch is checked or not.\r\n */\r\n checked = model<boolean>(false);\r\n\r\n /**\r\n * Indicates whether the switch is disabled or not.\r\n */\r\n disabled = input<boolean>(false);\r\n\r\n /**\r\n * The label text to display next to the switch.\r\n */\r\n label = input<string>('');\r\n\r\n /**\r\n * Tab index for the switch element.\r\n */\r\n tabindex = input<number>(0);\r\n\r\n /**\r\n * Controls how the label text should handle overflow.\r\n * - 'none': No overflow handling; the label displays normally.\r\n * - 'single': The label will be truncated with an ellipsis if it overflows a single line.\r\n * - string: Custom overflow handling mode.\r\n */\r\n overflowLabel = input<TextOverflow>('none');\r\n\r\n /**\r\n * Controls how the helper text should handle overflow.\r\n * - 'none': No overflow handling; the label displays normally.\r\n * - 'single': The label will be truncated with an ellipsis if it overflows a single line.\r\n * - string: Custom overflow handling mode.\r\n */\r\n overflowHelper = input<TextOverflow>('none');\r\n\r\n /**\r\n * Position of the label relative to the switch.\r\n */\r\n position = input<SwitchPosition>('left');\r\n\r\n /**\r\n * Size of the switch.\r\n */\r\n size = input<SwitchSize>('medium');\r\n\r\n /**\r\n * Background style of the switch.\r\n */\r\n background = input<SwitchBackground>('light');\r\n\r\n /**\r\n * Accent color of the switch.\r\n */\r\n color = input<string>('accent');\r\n\r\n /**\r\n * Change event emitter\r\n */\r\n onchange = output<SwitchChangeEvent>();\r\n\r\n // Form control callbacks\r\n private onChange = (value: boolean) => {};\r\n private onTouched = () => {};\r\n\r\n private sizes = {\r\n large: { size: 64 },\r\n medium: { size: 48 },\r\n small: { size: 40 },\r\n };\r\n\r\n // Computed signals\r\n private colorConfig = computed(() => {\r\n if (this.disabled()) {\r\n return {\r\n label: this.isDarkBackground() ? 'neutral-dark' : 'neutral-dark',\r\n message: this.isDarkBackground() ? 'neutral-dark' : 'neutral-dark',\r\n };\r\n }\r\n\r\n const darkBackground = this.isDarkBackground();\r\n return {\r\n label: darkBackground ? 'neutral-white' : 'neutral-black',\r\n message: darkBackground ? 'primary-lighter' : 'neutral-dark',\r\n };\r\n });\r\n\r\n containerClasses = computed(() => {\r\n const classes = ['container'];\r\n if (this.checked()) classes.push('checked');\r\n if (this.disabled()) classes.push('disabled');\r\n if (this.position() === 'right') classes.push('position');\r\n return classes.join(' ');\r\n });\r\n\r\n labelColor = computed(() => this.colorConfig().label);\r\n messageColor = computed(() => this.colorConfig().message);\r\n labelSize = computed(() => (this.size() === 'large' ? 'medium' : 'xsmall'));\r\n labelTextAlign = computed(() => (this.position() === 'right' ? 'right' : 'left'));\r\n\r\n styles = computed(() => {\r\n const sizeConfig = this.sizes[this.size()];\r\n const formsSize = formsSizes[this.size()];\r\n\r\n const sizeStyles = {\r\n '--size-track': `${sizeConfig.size}px`,\r\n '--size': `${formsSize.size}px`,\r\n '--gap': `${formsSize.gap}px`,\r\n };\r\n\r\n const darkBackground = this.isDarkBackground();\r\n const colorValue = this.color();\r\n\r\n const colors = [\r\n { name: '--info-base', background: 'info-base' },\r\n { name: '--neutral-black-shadow', background: 'neutral-black', opacity: 0.16 },\r\n { name: '--neutral-purewhite', background: 'neutral-purewhite' },\r\n { name: '--neutral-medium', background: 'neutral-medium' },\r\n { name: '--neutral-pale', background: 'neutral-pale' },\r\n { name: '--neutral-dark-base', background: `neutral-${darkBackground ? 'dark' : 'base'}` },\r\n { name: '--neutral-darker-medium', background: `neutral-${darkBackground ? 'darker' : 'medium'}` },\r\n { name: '--neutral-black-neutral-pale', background: `${darkBackground ? 'neutral-black' : 'neutral-pale'}` },\r\n { name: '--neutral-black-neutral-base', background: `${darkBackground ? 'neutral-dark' : 'neutral-base'}` },\r\n { name: '--color-base-light', background: `${colorValue}-light` },\r\n { name: '--color-dark', background: `${colorValue}-dark` },\r\n ];\r\n\r\n const colorStyles: { [key: string]: string } = {};\r\n colors.forEach((color) => {\r\n if (this.curaApi) {\r\n colorStyles[color.name] = this.curaApi.theme.colors.getColor(color.background, color?.opacity);\r\n }\r\n });\r\n\r\n return { ...sizeStyles, ...colorStyles };\r\n });\r\n\r\n // ControlValueAccessor implementation\r\n writeValue(value: boolean): void {\r\n this.checked.set(value || false);\r\n }\r\n\r\n registerOnChange(fn: (value: boolean) => void): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n private isDarkBackground(): boolean {\r\n return this.background() === 'dark';\r\n }\r\n\r\n toggleSwitch(): void {\r\n if (this.disabled()) return;\r\n\r\n this.checked.update((value) => !value);\r\n\r\n // Notify form control\r\n this.onChange(this.checked());\r\n this.onTouched();\r\n\r\n this.onchange.emit({ checked: this.checked() });\r\n }\r\n}\r\n","<div [class]=\"containerClasses()\" [style]=\"styles()\" (click)=\"toggleSwitch()\">\r\n <div class=\"info\">\r\n <cura-label\r\n [textOverflow]=\"overflowLabel()\"\r\n [style.textAlign]=\"labelTextAlign()\"\r\n class=\"label\"\r\n weight=\"bold\"\r\n [size]=\"labelSize()\"\r\n lineHeight=\"125%\"\r\n [color]=\"labelColor()\"\r\n >\r\n {{ label() }}\r\n </cura-label>\r\n\r\n <cura-label [textOverflow]=\"overflowHelper()\" [style.textAlign]=\"labelTextAlign()\" [color]=\"messageColor()\" size=\"xsmall\" class=\"message\">\r\n <ng-content></ng-content>\r\n </cura-label>\r\n </div>\r\n\r\n <div class=\"control\">\r\n <div [class]=\"'track ' + size().toLowerCase()\">\r\n <div [class]=\"'thumb ' + size().toLowerCase()\" [tabIndex]=\"tabindex()\" (keydown.space)=\"toggleSwitch()\" (keydown.enter)=\"toggleSwitch()\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MA2Ba,mBAAmB,CAAA;AAnBhC,IAAA,WAAA,GAAA;AAoBU,QAAA,IAAA,CAAA,OAAO,GAAmB,MAAM,CAAC,cAAc,CAAC;AAExD;;AAEG;AACH,QAAA,IAAA,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@@ -1,21 +0,0 @@
|
|
|
1
|
-
const formsSizes = {
|
|
2
|
-
large: {
|
|
3
|
-
size: 32,
|
|
4
|
-
gap: 16,
|
|
5
|
-
},
|
|
6
|
-
medium: {
|
|
7
|
-
size: 24,
|
|
8
|
-
gap: 12,
|
|
9
|
-
},
|
|
10
|
-
small: {
|
|
11
|
-
size: 20,
|
|
12
|
-
gap: 8,
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Generated bundle index. Do not edit.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
export { formsSizes };
|
|
21
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-forms.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-forms.mjs","sources":["../../../projects/site-front-end-lib/cura/forms/cura-forms.definitions.ts","../../../projects/site-front-end-lib/cura/forms/rededor-site-front-end-lib-cura-forms.ts"],"sourcesContent":["export const formsSizes = {\r\n large: {\r\n size: 32,\r\n gap: 16,\r\n },\r\n medium: {\r\n size: 24,\r\n gap: 12,\r\n },\r\n small: {\r\n size: 20,\r\n gap: 8,\r\n },\r\n};\r\n\r\nexport type LabelSize = 'medium' | 'large' | 'small' | 'xsmall';\r\nexport type LabelWeight = 'regular' | 'bold';\r\nexport type TextOverflow = 'none' | 'single';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,GAAG,EAAE,EAAE;AACR,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,GAAG,EAAE,EAAE;AACR,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,GAAG,EAAE,CAAC;AACP,KAAA;;;ACZH;;AAEG;;;;"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, Component } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
5
|
-
|
|
6
|
-
const iconSizes = {
|
|
7
|
-
'128': { size: 128, stroke: 5.25 },
|
|
8
|
-
'72': { size: 72, stroke: 3.5 },
|
|
9
|
-
'64': { size: 64, stroke: 3.25 },
|
|
10
|
-
'48': { size: 48, stroke: 2.75 },
|
|
11
|
-
'40': { size: 40, stroke: 2.5 },
|
|
12
|
-
'32': { size: 32, stroke: 2.25 },
|
|
13
|
-
'24': { size: 24, stroke: 2 },
|
|
14
|
-
'20': { size: 20, stroke: 1.75 },
|
|
15
|
-
'16': { size: 16, stroke: 1.5 },
|
|
16
|
-
micro: { size: 12, stroke: 1.25 },
|
|
17
|
-
default: { size: 24, stroke: 2 },
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
class CuraIconComponent {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.curaApi = inject(CuraApiService);
|
|
23
|
-
/**
|
|
24
|
-
* Name of the icon to be used from iconset.
|
|
25
|
-
*/
|
|
26
|
-
this.name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
27
|
-
/**
|
|
28
|
-
* Color of the icon. Uses theme color tokens.
|
|
29
|
-
*/
|
|
30
|
-
this.color = input('neutral-base', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
31
|
-
/**
|
|
32
|
-
* Size of the icon. Can be a predefined size or custom number.
|
|
33
|
-
*/
|
|
34
|
-
this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
35
|
-
/**
|
|
36
|
-
* Custom iconset if needed.
|
|
37
|
-
*/
|
|
38
|
-
this.iconset = input('default', ...(ngDevMode ? [{ debugName: "iconset" }] : []));
|
|
39
|
-
/**
|
|
40
|
-
* Disabled state. Boolean.
|
|
41
|
-
*/
|
|
42
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
43
|
-
// Computed signals
|
|
44
|
-
this.assetsPath = computed(() => this.curaApi.localAssetsPath(), ...(ngDevMode ? [{ debugName: "assetsPath" }] : []));
|
|
45
|
-
this.iconSize = computed(() => {
|
|
46
|
-
const sizeValue = this.size();
|
|
47
|
-
const scaledStroke = (iconSize) => {
|
|
48
|
-
return iconSizes[iconSize].stroke * (iconSizes['default'].size / iconSizes[iconSize].size);
|
|
49
|
-
};
|
|
50
|
-
const size = iconSizes[`${sizeValue}`] ? iconSizes[sizeValue].size : iconSizes['default'].size;
|
|
51
|
-
const stroke = iconSizes[`${sizeValue}`] ? scaledStroke(sizeValue) : scaledStroke('default');
|
|
52
|
-
return { size, stroke };
|
|
53
|
-
}, ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
|
|
54
|
-
this.iconColor = computed(() => {
|
|
55
|
-
const colorValue = this.disabled() ? 'neutral-medium' : this.color();
|
|
56
|
-
return this.curaApi.theme.colors.getColor(colorValue);
|
|
57
|
-
}, ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
|
|
58
|
-
this.iconPath = computed(() => {
|
|
59
|
-
return `${this.assetsPath()}/icons/iconset-${this.iconset()}.svg#${this.name()}`;
|
|
60
|
-
}, ...(ngDevMode ? [{ debugName: "iconPath" }] : []));
|
|
61
|
-
this.iconStyles = computed(() => {
|
|
62
|
-
const sizeData = this.iconSize();
|
|
63
|
-
return {
|
|
64
|
-
size: `${sizeData.size}px`,
|
|
65
|
-
stroke: `${sizeData.stroke}px`,
|
|
66
|
-
color: this.iconColor(),
|
|
67
|
-
};
|
|
68
|
-
}, ...(ngDevMode ? [{ debugName: "iconStyles" }] : []));
|
|
69
|
-
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
71
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.2", type: CuraIconComponent, isStandalone: true, selector: "cura-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, iconset: { classPropertyName: "iconset", publicName: "iconset", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "style.--size": "iconStyles().size", "style.--stroke": "iconStyles().stroke", "style.--color": "iconStyles().color" } }, ngImport: i0, template: "<svg version=\"1.1\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <use [attr.xlink:href]=\"iconPath()\"></use>\r\n</svg>\r\n", styles: [":host{width:var(--size);height:var(--size);display:inline-block}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
72
|
-
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraIconComponent, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{ selector: 'cura-icon', imports: [CommonModule], host: {
|
|
76
|
-
role: 'img',
|
|
77
|
-
'[style.--size]': 'iconStyles().size',
|
|
78
|
-
'[style.--stroke]': 'iconStyles().stroke',
|
|
79
|
-
'[style.--color]': 'iconStyles().color',
|
|
80
|
-
}, template: "<svg version=\"1.1\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <use [attr.xlink:href]=\"iconPath()\"></use>\r\n</svg>\r\n", styles: [":host{width:var(--size);height:var(--size);display:inline-block}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}\n"] }]
|
|
81
|
-
}] });
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Generated bundle index. Do not edit.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
export { CuraIconComponent, iconSizes };
|
|
88
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-icons-cura-icon.mjs","sources":["../../../projects/site-front-end-lib/cura/icons/cura-icon/cura-icon.definitions.ts","../../../projects/site-front-end-lib/cura/icons/cura-icon/cura-icon.component.ts","../../../projects/site-front-end-lib/cura/icons/cura-icon/cura-icon.component.html","../../../projects/site-front-end-lib/cura/icons/cura-icon/rededor-site-front-end-lib-cura-icons-cura-icon.ts"],"sourcesContent":["export interface IconSize {\r\n size: number;\r\n stroke: number;\r\n}\r\n\r\nexport const iconSizes: Record<string, IconSize> = {\r\n '128': { size: 128, stroke: 5.25 },\r\n '72': { size: 72, stroke: 3.5 },\r\n '64': { size: 64, stroke: 3.25 },\r\n '48': { size: 48, stroke: 2.75 },\r\n '40': { size: 40, stroke: 2.5 },\r\n '32': { size: 32, stroke: 2.25 },\r\n '24': { size: 24, stroke: 2 },\r\n '20': { size: 20, stroke: 1.75 },\r\n '16': { size: 16, stroke: 1.5 },\r\n micro: { size: 12, stroke: 1.25 },\r\n default: { size: 24, stroke: 2 },\r\n};\r\n\r\nexport type IconSizeType = keyof typeof iconSizes | string | number;\r\n","import { Component, inject, input, computed } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { iconSizes, IconSizeType } from './cura-icon.definitions';\n\n@Component({\n selector: 'cura-icon',\n imports: [CommonModule],\n templateUrl: './cura-icon.component.html',\n styleUrls: ['./cura-icon.component.scss'],\n host: {\n role: 'img',\n '[style.--size]': 'iconStyles().size',\n '[style.--stroke]': 'iconStyles().stroke',\n '[style.--color]': 'iconStyles().color',\n },\n})\nexport class CuraIconComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Name of the icon to be used from iconset.\n */\n name = input<string>('');\n\n /**\n * Color of the icon. Uses theme color tokens.\n */\n color = input<string>('neutral-base');\n\n /**\n * Size of the icon. Can be a predefined size or custom number.\n */\n size = input<IconSizeType>('default');\n\n /**\n * Custom iconset if needed.\n */\n iconset = input<string>('default');\n\n /**\n * Disabled state. Boolean.\n */\n disabled = input<boolean>(false);\n\n // Computed signals\n private assetsPath = computed(() => this.curaApi.localAssetsPath());\n\n private iconSize = computed(() => {\n const sizeValue = this.size();\n\n const scaledStroke = (iconSize: string | number) => {\n return iconSizes[iconSize].stroke * (iconSizes['default'].size / iconSizes[iconSize].size);\n };\n\n const size = iconSizes[`${sizeValue}`] ? iconSizes[sizeValue].size : iconSizes['default'].size;\n const stroke = iconSizes[`${sizeValue}`] ? scaledStroke(sizeValue) : scaledStroke('default');\n\n return { size, stroke };\n });\n\n private iconColor = computed(() => {\n const colorValue = this.disabled() ? 'neutral-medium' : this.color();\n return this.curaApi.theme.colors.getColor(colorValue);\n });\n\n iconPath = computed(() => {\n return `${this.assetsPath()}/icons/iconset-${this.iconset()}.svg#${this.name()}`;\n });\n\n iconStyles = computed(() => {\n const sizeData = this.iconSize();\n return {\n size: `${sizeData.size}px`,\n stroke: `${sizeData.stroke}px`,\n color: this.iconColor(),\n };\n });\n}\n","<svg version=\"1.1\" viewBox=\"0 0 24 24\" preserveAspectRatio=\"xMidYMid meet\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <use [attr.xlink:href]=\"iconPath()\"></use>\r\n</svg>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKO,MAAM,SAAS,GAA6B;IACjD,KAAK,EA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,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,KAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjB9B,wLAGA,EAAA,MAAA,EAAA,CAAA,iMAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDIY,YAAY,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAUX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,OAAA,EACZ,CAAC,YAAY,CAAC,EAAA,IAAA,EAGjB;AACJ,wBAAA,IAAI,EAAE,KAAK;AACX,wBAAA,gBAAgB,EAAE,mBAAmB;AACrC,wBAAA,kBAAkB,EAAE,qBAAqB;AACzC,wBAAA,iBAAiB,EAAE,oBAAoB;AACxC,qBAAA,EAAA,QAAA,EAAA,wLAAA,EAAA,MAAA,EAAA,CAAA,iMAAA,CAAA,EAAA;;;AEfH;;AAEG;;;;"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
6
|
-
|
|
7
|
-
class CuraLoaderBarComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.curaApi = inject(CuraApiService);
|
|
10
|
-
/**
|
|
11
|
-
* One from color scheme. Default: primary-base.
|
|
12
|
-
*/
|
|
13
|
-
this.color = input('primary-base', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
14
|
-
/**
|
|
15
|
-
* Progress percentage (0-100).
|
|
16
|
-
*/
|
|
17
|
-
this.progress = input(0, ...(ngDevMode ? [{ debugName: "progress" }] : []));
|
|
18
|
-
this.loaderStyles = computed(() => {
|
|
19
|
-
return {
|
|
20
|
-
'--neutral-base': this.curaApi.theme.colors.getColor('neutral-base', 0.2),
|
|
21
|
-
'--color-base': this.curaApi.theme.colors.getColor(this.color()),
|
|
22
|
-
'--bar-width': `${this.progress()}%`,
|
|
23
|
-
};
|
|
24
|
-
}, ...(ngDevMode ? [{ debugName: "loaderStyles" }] : []));
|
|
25
|
-
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraLoaderBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.2", type: CuraLoaderBarComponent, isStandalone: true, selector: "cura-loader-bar", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, progress: { classPropertyName: "progress", publicName: "progress", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "attr.aria-valuenow": "progress()", "attr.aria-valuemin": "0", "attr.aria-valuemax": "100" } }, ngImport: i0, template: "<div id=\"progress-bar\" class=\"progress-bar\" [ngStyle]=\"loaderStyles()\">\r\n <span class=\"progress-bar-fill\"></span>\r\n</div>\r\n", styles: [":host{display:block}:host .progress-bar{position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:var(--neutral-base)}:host .progress-bar .progress-bar-fill{position:absolute;left:0;bottom:0;width:var(--bar-width);height:100%;border-radius:0 2px 2px 0;background-color:var(--color-base);transition:width .2s linear}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
28
|
-
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraLoaderBarComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'cura-loader-bar', imports: [CommonModule], host: {
|
|
32
|
-
role: 'progressbar',
|
|
33
|
-
'[attr.aria-valuenow]': 'progress()',
|
|
34
|
-
'[attr.aria-valuemin]': '0',
|
|
35
|
-
'[attr.aria-valuemax]': '100',
|
|
36
|
-
}, template: "<div id=\"progress-bar\" class=\"progress-bar\" [ngStyle]=\"loaderStyles()\">\r\n <span class=\"progress-bar-fill\"></span>\r\n</div>\r\n", styles: [":host{display:block}:host .progress-bar{position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:var(--neutral-base)}:host .progress-bar .progress-bar-fill{position:absolute;left:0;bottom:0;width:var(--bar-width);height:100%;border-radius:0 2px 2px 0;background-color:var(--color-base);transition:width .2s linear}\n"] }]
|
|
37
|
-
}] });
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generated bundle index. Do not edit.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export { CuraLoaderBarComponent };
|
|
44
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs","sources":["../../../projects/site-front-end-lib/cura/loaders/cura-loader-bar/cura-loader-bar.component.ts","../../../projects/site-front-end-lib/cura/loaders/cura-loader-bar/cura-loader-bar.component.html","../../../projects/site-front-end-lib/cura/loaders/cura-loader-bar/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\r\n\r\n@Component({\r\n selector: 'cura-loader-bar',\r\n imports: [CommonModule],\r\n templateUrl: './cura-loader-bar.component.html',\r\n styleUrls: ['./cura-loader-bar.component.scss'],\r\n host: {\r\n role: 'progressbar',\r\n '[attr.aria-valuenow]': 'progress()',\r\n '[attr.aria-valuemin]': '0',\r\n '[attr.aria-valuemax]': '100',\r\n },\r\n})\r\nexport class CuraLoaderBarComponent {\r\n private curaApi = inject(CuraApiService);\r\n\r\n /**\r\n * One from color scheme. Default: primary-base.\r\n */\r\n color = input<string>('primary-base');\r\n\r\n /**\r\n * Progress percentage (0-100).\r\n */\r\n progress = input<number>(0);\r\n\r\n loaderStyles = computed(() => {\r\n return {\r\n '--neutral-base': this.curaApi.theme.colors.getColor('neutral-base', 0.2),\r\n '--color-base': this.curaApi.theme.colors.getColor(this.color()),\r\n '--bar-width': `${this.progress()}%`,\r\n };\r\n });\r\n}\r\n","<div id=\"progress-bar\" class=\"progress-bar\" [ngStyle]=\"loaderStyles()\">\r\n <span class=\"progress-bar-fill\"></span>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAgBa,sBAAsB,CAAA;AAZnC,IAAA,WAAA,GAAA;AAaU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,cAAc,iDAAC;AAErC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC,oDAAC;AAE3B,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;YAC3B,OAAO;AACL,gBAAA,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC;AACzE,gBAAA,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,KA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AAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAClB,CAAC,YAAY,CAAC,EAAA,IAAA,EAGjB;AACJ,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,sBAAsB,EAAE,YAAY;AACpC,wBAAA,sBAAsB,EAAE,GAAG;AAC3B,wBAAA,sBAAsB,EAAE,KAAK;AAC9B,qBAAA,EAAA,QAAA,EAAA,4IAAA,EAAA,MAAA,EAAA,CAAA,8UAAA,CAAA,EAAA;;;AEdH;;AAEG;;;;"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, Component } from '@angular/core';
|
|
3
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
4
|
-
|
|
5
|
-
class CuraLoaderCircleComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.curaApi = inject(CuraApiService);
|
|
8
|
-
/**
|
|
9
|
-
* Loader size. Values: small, medium, large or xlarge.
|
|
10
|
-
*/
|
|
11
|
-
this.size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
12
|
-
/**
|
|
13
|
-
* One from color scheme. Default: neutral-white.
|
|
14
|
-
*/
|
|
15
|
-
this.color = input('neutral-white', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
16
|
-
this.sizes = {
|
|
17
|
-
xlarge: 32,
|
|
18
|
-
large: 24,
|
|
19
|
-
medium: 20,
|
|
20
|
-
small: 16,
|
|
21
|
-
default: 16,
|
|
22
|
-
};
|
|
23
|
-
// Computed signal
|
|
24
|
-
this.loaderStyles = computed(() => {
|
|
25
|
-
const pxSize = this.sizes[this.size()] || this.sizes['default'];
|
|
26
|
-
return {
|
|
27
|
-
size: `${pxSize}px`,
|
|
28
|
-
color: this.curaApi.theme.colors.getColor(this.color()),
|
|
29
|
-
};
|
|
30
|
-
}, ...(ngDevMode ? [{ debugName: "loaderStyles" }] : []));
|
|
31
|
-
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraLoaderCircleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.2", type: CuraLoaderCircleComponent, isStandalone: true, selector: "cura-loader-circle", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "style.--size": "loaderStyles().size", "style.--color": "loaderStyles().color" } }, ngImport: i0, template: "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <g>\r\n <circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"url(#paint0_linear_13485_11488)\" stroke-width=\"2\" />\r\n <path d=\"M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5\" stroke-width=\"2\" />\r\n </g>\r\n <defs>\r\n <linearGradient id=\"paint0_linear_13485_11488\" x1=\"15.7\" y1=\"4.5\" x2=\"4.15\" y2=\"11.5\" gradientUnits=\"userSpaceOnUse\">\r\n <stop />\r\n <stop offset=\"1\" />\r\n </linearGradient>\r\n </defs>\r\n</svg>\r\n", styles: [":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate .7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:.14}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }); }
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraLoaderCircleComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{ selector: 'cura-loader-circle', host: {
|
|
38
|
-
role: 'progressbar',
|
|
39
|
-
'[style.--size]': 'loaderStyles().size',
|
|
40
|
-
'[style.--color]': 'loaderStyles().color',
|
|
41
|
-
}, template: "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <g>\r\n <circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"url(#paint0_linear_13485_11488)\" stroke-width=\"2\" />\r\n <path d=\"M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5\" stroke-width=\"2\" />\r\n </g>\r\n <defs>\r\n <linearGradient id=\"paint0_linear_13485_11488\" x1=\"15.7\" y1=\"4.5\" x2=\"4.15\" y2=\"11.5\" gradientUnits=\"userSpaceOnUse\">\r\n <stop />\r\n <stop offset=\"1\" />\r\n </linearGradient>\r\n </defs>\r\n</svg>\r\n", styles: [":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);animation:rotate .7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:.14}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
42
|
-
}] });
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Generated bundle index. Do not edit.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
export { CuraLoaderCircleComponent };
|
|
49
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs","sources":["../../../projects/site-front-end-lib/cura/loaders/cura-loader-circle/cura-loader-circle.component.ts","../../../projects/site-front-end-lib/cura/loaders/cura-loader-circle/cura-loader-circle.component.html","../../../projects/site-front-end-lib/cura/loaders/cura-loader-circle/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\r\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\r\n\r\nexport type LoaderSize = 'small' | 'medium' | 'large' | 'xlarge';\r\n\r\n@Component({\r\n selector: 'cura-loader-circle',\r\n templateUrl: './cura-loader-circle.component.html',\r\n styleUrls: ['./cura-loader-circle.component.scss'],\r\n host: {\r\n role: 'progressbar',\r\n '[style.--size]': 'loaderStyles().size',\r\n '[style.--color]': 'loaderStyles().color',\r\n },\r\n})\r\nexport class CuraLoaderCircleComponent {\r\n private curaApi = inject(CuraApiService);\r\n\r\n /**\r\n * Loader size. Values: small, medium, large or xlarge.\r\n */\r\n size = input<LoaderSize>('medium');\r\n\r\n /**\r\n * One from color scheme. Default: neutral-white.\r\n */\r\n color = input<string>('neutral-white');\r\n\r\n private sizes = {\r\n xlarge: 32,\r\n large: 24,\r\n medium: 20,\r\n small: 16,\r\n default: 16,\r\n };\r\n\r\n // Computed signal\r\n loaderStyles = computed(() => {\r\n const pxSize = this.sizes[this.size()] || this.sizes['default'];\r\n return {\r\n size: `${pxSize}px`,\r\n color: this.curaApi.theme.colors.getColor(this.color()),\r\n };\r\n });\r\n}\r\n","<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <g>\r\n <circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"url(#paint0_linear_13485_11488)\" stroke-width=\"2\" />\r\n <path d=\"M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5\" stroke-width=\"2\" />\r\n </g>\r\n <defs>\r\n <linearGradient id=\"paint0_linear_13485_11488\" x1=\"15.7\" y1=\"4.5\" x2=\"4.15\" y2=\"11.5\" gradientUnits=\"userSpaceOnUse\">\r\n <stop />\r\n <stop offset=\"1\" />\r\n </linearGradient>\r\n </defs>\r\n</svg>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAea,yBAAyB,CAAA;AAVtC,IAAA,WAAA,GAAA;AAWU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,QAAQ,gDAAC;AAElC;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,eAAe,iDAAC;AAE9B,QAAA,IAAA,CAAA,KAAK,GAAG;AACd,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,OAAO,EAAE,EAAE;SACZ;;AAGD,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC3B,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YAC/D,OAAO;gBACL,IAAI,EAAE,CAAA,EAAG,MAAM,CAAA,EAAA,CAAI;AACnB,gBAAA,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;aACxD;AACH,QAAA,CAAC,wDAAC;AACH,IAAA;8GA7BY,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,wdCftC,gmBAYA,EAAA,MAAA,EAAA,CAAA,+aAAA,CAAA,EAAA,CAAA,CAAA;;2FDGa,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAVrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAAA,IAAA,EAGxB;AACJ,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,gBAAgB,EAAE,qBAAqB;AACvC,wBAAA,iBAAiB,EAAE,sBAAsB;AAC1C,qBAAA,EAAA,QAAA,EAAA,gmBAAA,EAAA,MAAA,EAAA,CAAA,+aAAA,CAAA,EAAA;;;AEbH;;AAEG;;;;"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
6
|
-
|
|
7
|
-
class CuraDisplayComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.curaApi = inject(CuraApiService);
|
|
10
|
-
/**
|
|
11
|
-
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...
|
|
12
|
-
* Values: 1(default) to 6.
|
|
13
|
-
*/
|
|
14
|
-
this.level = input(1, ...(ngDevMode ? [{ debugName: "level" }] : []));
|
|
15
|
-
/**
|
|
16
|
-
* Display size.
|
|
17
|
-
* Values: 'large' (default) | 'small'.
|
|
18
|
-
*/
|
|
19
|
-
this.size = input('large', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
20
|
-
/**
|
|
21
|
-
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
22
|
-
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
23
|
-
*/
|
|
24
|
-
this.spotColor = input('accent-dark', ...(ngDevMode ? [{ debugName: "spotColor" }] : []));
|
|
25
|
-
/**
|
|
26
|
-
* Text color.
|
|
27
|
-
* Values: Color from design system scheme. Default to the font color from the theme.
|
|
28
|
-
*/
|
|
29
|
-
this.color = input('', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
30
|
-
/**
|
|
31
|
-
* CSS margin-block property values.
|
|
32
|
-
* Default to 1.25em
|
|
33
|
-
*/
|
|
34
|
-
this.marginBlock = input('1.25em', ...(ngDevMode ? [{ debugName: "marginBlock" }] : []));
|
|
35
|
-
/**
|
|
36
|
-
* CSS line-height property values.
|
|
37
|
-
* Default to 120%
|
|
38
|
-
*/
|
|
39
|
-
this.lineHeight = input('120%', ...(ngDevMode ? [{ debugName: "lineHeight" }] : []));
|
|
40
|
-
this.containerClasses = computed(() => {
|
|
41
|
-
return this.size().toLowerCase();
|
|
42
|
-
}, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
|
|
43
|
-
this.displayStyles = computed(() => {
|
|
44
|
-
return {
|
|
45
|
-
marginBlock: this.marginBlock(),
|
|
46
|
-
fontSizeBase: this.curaApi.theme.fonts.getSize(),
|
|
47
|
-
lineHeight: this.lineHeight(),
|
|
48
|
-
};
|
|
49
|
-
}, ...(ngDevMode ? [{ debugName: "displayStyles" }] : []));
|
|
50
|
-
this.headingStyles = computed(() => {
|
|
51
|
-
const weights = this.curaApi.theme.fonts.getWeights();
|
|
52
|
-
const bodyColor = this.color()
|
|
53
|
-
? this.curaApi.theme.colors.getColor(this.color())
|
|
54
|
-
: this.curaApi.theme.fonts.getColor() || this.curaApi.theme.colors.getColor('neutral-darker');
|
|
55
|
-
return {
|
|
56
|
-
'--font-family': this.curaApi.theme.fonts.getFamily('display'),
|
|
57
|
-
'--font-size': this.curaApi.theme.fonts.getSize(),
|
|
58
|
-
'--font-weight-bold': weights.bold,
|
|
59
|
-
'--font-weight-medium': weights.medium,
|
|
60
|
-
'--color-body': bodyColor,
|
|
61
|
-
'--color-link': this.curaApi.theme.colors.getColor(this.spotColor()),
|
|
62
|
-
};
|
|
63
|
-
}, ...(ngDevMode ? [{ debugName: "headingStyles" }] : []));
|
|
64
|
-
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: CuraDisplayComponent, isStandalone: true, selector: "cura-display", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, spotColor: { classPropertyName: "spotColor", publicName: "spotColor", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, marginBlock: { classPropertyName: "marginBlock", publicName: "marginBlock", isSignal: true, isRequired: false, transformFunction: null }, lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "heading" }, properties: { "attr.aria-level": "level()", "style.--margin-block": "displayStyles().marginBlock", "style.--font-size-base": "displayStyles().fontSizeBase", "style.--line-height": "displayStyles().lineHeight" } }, ngImport: i0, template: "<ng-template #display>\r\n <ng-content></ng-content>\r\n</ng-template>\r\n\r\n@switch (level()) {\r\n @case (1) {\r\n <h1 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h1>\r\n }\r\n @case (2) {\r\n <h2 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h2>\r\n }\r\n @case (3) {\r\n <h3 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h3>\r\n }\r\n @case (4) {\r\n <h4 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h4>\r\n }\r\n @case (5) {\r\n <h5 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h5>\r\n }\r\n @case (6) {\r\n <h6 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h6>\r\n }\r\n @default {\r\n <h1 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h1>\r\n }\r\n}\r\n", styles: [":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:3em;font-weight:var(--font-weight-bold);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.2857142857em;letter-spacing:-1.68px}:host h1 ::ng-deep b,:host h1 ::ng-deep strong,:host h2 ::ng-deep b,:host h2 ::ng-deep strong,:host h3 ::ng-deep b,:host h3 ::ng-deep strong,:host h4 ::ng-deep b,:host h4 ::ng-deep strong,:host h5 ::ng-deep b,:host h5 ::ng-deep strong,:host h6 ::ng-deep b,:host h6 ::ng-deep strong{font-weight:var(--font-weight-bold)}:host h1 ::ng-deep a,:host h2 ::ng-deep a,:host h3 ::ng-deep a,:host h4 ::ng-deep a,:host h5 ::ng-deep a,:host h6 ::ng-deep a{font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host h1 ::ng-deep u,:host h2 ::ng-deep u,:host h3 ::ng-deep u,:host h4 ::ng-deep u,:host h5 ::ng-deep u,:host h6 ::ng-deep u{text-underline-offset:10%}:host h1 ::ng-deep i,:host h1 ::ng-deep em,:host h2 ::ng-deep i,:host h2 ::ng-deep em,:host h3 ::ng-deep i,:host h3 ::ng-deep em,:host h4 ::ng-deep i,:host h4 ::ng-deep em,:host h5 ::ng-deep i,:host h5 ::ng-deep em,:host h6 ::ng-deep i,:host h6 ::ng-deep em{font-style:italic;font-weight:var(--font-weight-medium)}:host h1 ::ng-deep abbr,:host h2 ::ng-deep abbr,:host h3 ::ng-deep abbr,:host h4 ::ng-deep abbr,:host h5 ::ng-deep abbr,:host h6 ::ng-deep abbr{color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:3.429em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.8571428571em;letter-spacing:-1.92px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.286em;line-height:calc(var(--line-height) + 5%)}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.5714285714em;letter-spacing:-1.2px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
67
|
-
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraDisplayComponent, decorators: [{
|
|
69
|
-
type: Component,
|
|
70
|
-
args: [{ selector: 'cura-display', imports: [CommonModule], host: {
|
|
71
|
-
role: 'heading',
|
|
72
|
-
'[attr.aria-level]': 'level()',
|
|
73
|
-
'[style.--margin-block]': 'displayStyles().marginBlock',
|
|
74
|
-
'[style.--font-size-base]': 'displayStyles().fontSizeBase',
|
|
75
|
-
'[style.--line-height]': 'displayStyles().lineHeight',
|
|
76
|
-
}, template: "<ng-template #display>\r\n <ng-content></ng-content>\r\n</ng-template>\r\n\r\n@switch (level()) {\r\n @case (1) {\r\n <h1 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h1>\r\n }\r\n @case (2) {\r\n <h2 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h2>\r\n }\r\n @case (3) {\r\n <h3 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h3>\r\n }\r\n @case (4) {\r\n <h4 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h4>\r\n }\r\n @case (5) {\r\n <h5 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h5>\r\n }\r\n @case (6) {\r\n <h6 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h6>\r\n }\r\n @default {\r\n <h1 [class]=\"containerClasses()\" [ngStyle]=\"headingStyles()\">\r\n <ng-container *ngTemplateOutlet=\"display\"></ng-container>\r\n </h1>\r\n }\r\n}\r\n", styles: [":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:3em;font-weight:var(--font-weight-bold);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.2857142857em;letter-spacing:-1.68px}:host h1 ::ng-deep b,:host h1 ::ng-deep strong,:host h2 ::ng-deep b,:host h2 ::ng-deep strong,:host h3 ::ng-deep b,:host h3 ::ng-deep strong,:host h4 ::ng-deep b,:host h4 ::ng-deep strong,:host h5 ::ng-deep b,:host h5 ::ng-deep strong,:host h6 ::ng-deep b,:host h6 ::ng-deep strong{font-weight:var(--font-weight-bold)}:host h1 ::ng-deep a,:host h2 ::ng-deep a,:host h3 ::ng-deep a,:host h4 ::ng-deep a,:host h5 ::ng-deep a,:host h6 ::ng-deep a{font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host h1 ::ng-deep u,:host h2 ::ng-deep u,:host h3 ::ng-deep u,:host h4 ::ng-deep u,:host h5 ::ng-deep u,:host h6 ::ng-deep u{text-underline-offset:10%}:host h1 ::ng-deep i,:host h1 ::ng-deep em,:host h2 ::ng-deep i,:host h2 ::ng-deep em,:host h3 ::ng-deep i,:host h3 ::ng-deep em,:host h4 ::ng-deep i,:host h4 ::ng-deep em,:host h5 ::ng-deep i,:host h5 ::ng-deep em,:host h6 ::ng-deep i,:host h6 ::ng-deep em{font-style:italic;font-weight:var(--font-weight-medium)}:host h1 ::ng-deep abbr,:host h2 ::ng-deep abbr,:host h3 ::ng-deep abbr,:host h4 ::ng-deep abbr,:host h5 ::ng-deep abbr,:host h6 ::ng-deep abbr{color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:3.429em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.8571428571em;letter-spacing:-1.92px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.286em;line-height:calc(var(--line-height) + 5%)}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.5714285714em;letter-spacing:-1.2px}}\n"] }]
|
|
77
|
-
}] });
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Generated bundle index. Do not edit.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
export { CuraDisplayComponent };
|
|
84
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-texts-cura-display.mjs.map
|