@rededor/site-front-end-lib 4.0.0-alpha.5 → 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 -41
- 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,547 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, PLATFORM_ID, input, model, output, signal, viewChild, computed, effect, forwardRef, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@angular/forms';
|
|
6
|
-
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
8
|
-
import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
|
|
9
|
-
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
10
|
-
import { CuraLoaderCircleComponent } from '@rededor/site-front-end-lib/cura/loaders/cura-loader-circle';
|
|
11
|
-
import IMask from 'imask';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Mask configuration for different presets
|
|
15
|
-
*/
|
|
16
|
-
const maskOptions = {
|
|
17
|
-
cpf_cnpj: {
|
|
18
|
-
mask: [{ mask: '000.000.000-00' }, { mask: '00.000.000/0000-00' }],
|
|
19
|
-
placeholderChar: '_',
|
|
20
|
-
},
|
|
21
|
-
cpf: {
|
|
22
|
-
mask: '000.000.000-00',
|
|
23
|
-
placeholderChar: '_',
|
|
24
|
-
},
|
|
25
|
-
cnpj: {
|
|
26
|
-
mask: '00.000.000/0000-00',
|
|
27
|
-
placeholderChar: '_',
|
|
28
|
-
},
|
|
29
|
-
phone: {
|
|
30
|
-
mask: '(00) 00000-0000',
|
|
31
|
-
blocks: {
|
|
32
|
-
'(00)': {
|
|
33
|
-
mask: '(00)',
|
|
34
|
-
maxLength: 2,
|
|
35
|
-
placeholderChar: '',
|
|
36
|
-
},
|
|
37
|
-
'00000': {
|
|
38
|
-
mask: '00000',
|
|
39
|
-
maxLength: 5,
|
|
40
|
-
placeholderChar: '_',
|
|
41
|
-
},
|
|
42
|
-
'-': {
|
|
43
|
-
mask: '-',
|
|
44
|
-
},
|
|
45
|
-
'0000': {
|
|
46
|
-
mask: '0000',
|
|
47
|
-
maxLength: 4,
|
|
48
|
-
placeholderChar: '_',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
placeholderChar: '_',
|
|
52
|
-
},
|
|
53
|
-
date: {
|
|
54
|
-
mask: '00/00/0000',
|
|
55
|
-
},
|
|
56
|
-
dateRange: {
|
|
57
|
-
mask: '00/00/0000 - 00/00/0000',
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
class CuraInputTextComponent {
|
|
62
|
-
// Utility functions (equivalent to Stencil utils)
|
|
63
|
-
checkMobile() {
|
|
64
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
65
|
-
return window?.innerWidth < 768; // Static.breakpoints.medium.min equivalent
|
|
66
|
-
}
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
checkIOS() {
|
|
70
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
71
|
-
return (['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.userAgent) ||
|
|
72
|
-
// iPad on iOS 13 detection
|
|
73
|
-
(navigator.userAgent.includes('Mac') && 'ontouchend' in document));
|
|
74
|
-
}
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
fakeInputIOSHack(targetElement) {
|
|
78
|
-
if (!this.checkMobile() || !this.checkIOS())
|
|
79
|
-
return null;
|
|
80
|
-
const fakeInput = document.createElement('input');
|
|
81
|
-
fakeInput.setAttribute('type', 'text');
|
|
82
|
-
fakeInput.style.position = 'absolute';
|
|
83
|
-
fakeInput.style.opacity = '0';
|
|
84
|
-
fakeInput.style.height = '0';
|
|
85
|
-
fakeInput.style.fontSize = '16px'; // disable auto zoom
|
|
86
|
-
targetElement.prepend(fakeInput);
|
|
87
|
-
// focus so that subsequent async focus will work
|
|
88
|
-
fakeInput.focus();
|
|
89
|
-
return fakeInput;
|
|
90
|
-
}
|
|
91
|
-
constructor() {
|
|
92
|
-
this.curaApi = inject(CuraApiService);
|
|
93
|
-
this.elementRef = inject(ElementRef);
|
|
94
|
-
this.platformId = inject(PLATFORM_ID);
|
|
95
|
-
/**
|
|
96
|
-
* Mode of the input: 'default' or 'transparent'
|
|
97
|
-
*/
|
|
98
|
-
this.mode = input('default', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
99
|
-
/**
|
|
100
|
-
* Status of the input component
|
|
101
|
-
*/
|
|
102
|
-
this.status = input('default', ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
103
|
-
/**
|
|
104
|
-
* Size of the input component
|
|
105
|
-
*/
|
|
106
|
-
this.size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
107
|
-
/**
|
|
108
|
-
* Type of the input
|
|
109
|
-
*/
|
|
110
|
-
this.type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
111
|
-
/**
|
|
112
|
-
* Input mode for mobile keyboards
|
|
113
|
-
*/
|
|
114
|
-
this.inputMode = input('text', ...(ngDevMode ? [{ debugName: "inputMode" }] : []));
|
|
115
|
-
/**
|
|
116
|
-
* Label text for the input
|
|
117
|
-
*/
|
|
118
|
-
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
119
|
-
/**
|
|
120
|
-
* Name attribute for the input
|
|
121
|
-
*/
|
|
122
|
-
this.name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
123
|
-
/**
|
|
124
|
-
* Placeholder text for the input
|
|
125
|
-
*/
|
|
126
|
-
this.placeholder = input(null, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
127
|
-
/**
|
|
128
|
-
* Current value of the input
|
|
129
|
-
*/
|
|
130
|
-
this.value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
131
|
-
/**
|
|
132
|
-
* Icon name to display
|
|
133
|
-
*/
|
|
134
|
-
this.iconName = input('', ...(ngDevMode ? [{ debugName: "iconName" }] : []));
|
|
135
|
-
/**
|
|
136
|
-
* Helper text displayed below the input
|
|
137
|
-
*/
|
|
138
|
-
// helperText = input<string>(''); // Não está sendo usado
|
|
139
|
-
/**
|
|
140
|
-
* Whether the input is disabled
|
|
141
|
-
*/
|
|
142
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
143
|
-
/**
|
|
144
|
-
* Whether the input is required
|
|
145
|
-
*/
|
|
146
|
-
this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
|
|
147
|
-
/**
|
|
148
|
-
* Mask preset for input formatting
|
|
149
|
-
*/
|
|
150
|
-
this.maskPreset = input(undefined, ...(ngDevMode ? [{ debugName: "maskPreset" }] : []));
|
|
151
|
-
/**
|
|
152
|
-
* Controls whether the selection functionality is active
|
|
153
|
-
*/
|
|
154
|
-
this.enableSelectionMode = input(false, ...(ngDevMode ? [{ debugName: "enableSelectionMode" }] : []));
|
|
155
|
-
/**
|
|
156
|
-
* Regular expression for custom input masking
|
|
157
|
-
*/
|
|
158
|
-
this.maskRegex = input(null, ...(ngDevMode ? [{ debugName: "maskRegex" }] : []));
|
|
159
|
-
/**
|
|
160
|
-
* Advanced mask object for IMask library
|
|
161
|
-
*/
|
|
162
|
-
this.maskAdvanced = input(null, ...(ngDevMode ? [{ debugName: "maskAdvanced" }] : []));
|
|
163
|
-
/**
|
|
164
|
-
* Maximum length of the input value
|
|
165
|
-
*/
|
|
166
|
-
this.maxlength = input(undefined, ...(ngDevMode ? [{ debugName: "maxlength" }] : []));
|
|
167
|
-
/**
|
|
168
|
-
* Whether the input is read-only
|
|
169
|
-
*/
|
|
170
|
-
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
171
|
-
/**
|
|
172
|
-
* Whether the input is in loading state
|
|
173
|
-
*/
|
|
174
|
-
this.isLoading = input(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
175
|
-
/**
|
|
176
|
-
* Whether to show the clear button
|
|
177
|
-
*/
|
|
178
|
-
this.clearIcon = input(true, ...(ngDevMode ? [{ debugName: "clearIcon" }] : []));
|
|
179
|
-
/**
|
|
180
|
-
* Removes the error icon when necessary
|
|
181
|
-
*/
|
|
182
|
-
this.hideErrorIcon = input(false, ...(ngDevMode ? [{ debugName: "hideErrorIcon" }] : []));
|
|
183
|
-
/**
|
|
184
|
-
* Autocomplete attribute for the input
|
|
185
|
-
*/
|
|
186
|
-
this.autocomplete = input('on', ...(ngDevMode ? [{ debugName: "autocomplete" }] : []));
|
|
187
|
-
/**
|
|
188
|
-
* Event emitted when the value changes
|
|
189
|
-
*/
|
|
190
|
-
this.valueChange = output();
|
|
191
|
-
/**
|
|
192
|
-
* Event emitted when the clear button is clicked
|
|
193
|
-
*/
|
|
194
|
-
this.inputClear = output();
|
|
195
|
-
// Internal state signals
|
|
196
|
-
this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
|
|
197
|
-
this.isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : []));
|
|
198
|
-
// Form control callbacks
|
|
199
|
-
this.onChange = (value) => { };
|
|
200
|
-
this.onTouched = () => { };
|
|
201
|
-
// ViewChild references
|
|
202
|
-
this.inputElement = viewChild('inputElement', ...(ngDevMode ? [{ debugName: "inputElement" }] : []));
|
|
203
|
-
// Computed styles
|
|
204
|
-
this.styles = computed(() => {
|
|
205
|
-
const { fonts, colors } = this.curaApi?.theme || { fonts: null, colors: null };
|
|
206
|
-
const baseStyles = {};
|
|
207
|
-
if (fonts) {
|
|
208
|
-
const fontWeights = fonts.getWeights();
|
|
209
|
-
baseStyles['--font-weight-medium'] = fontWeights.medium;
|
|
210
|
-
baseStyles['--font-weight-bold'] = fontWeights.bold;
|
|
211
|
-
baseStyles['--font-weight-regular'] = fontWeights.regular;
|
|
212
|
-
baseStyles['--font-color'] = fonts.getColor();
|
|
213
|
-
baseStyles['--font-family'] = fonts.getFamily();
|
|
214
|
-
baseStyles['--font-size'] = fonts.getSize();
|
|
215
|
-
}
|
|
216
|
-
if (colors) {
|
|
217
|
-
const colorKeys = [
|
|
218
|
-
'primary-base',
|
|
219
|
-
'neutral-purewhite',
|
|
220
|
-
'neutral-white',
|
|
221
|
-
'neutral-black',
|
|
222
|
-
'neutral-medium',
|
|
223
|
-
'neutral-base',
|
|
224
|
-
'neutral-dark',
|
|
225
|
-
'success-dark',
|
|
226
|
-
'success-darker',
|
|
227
|
-
'success-lighter',
|
|
228
|
-
'error-lighter',
|
|
229
|
-
'error-dark',
|
|
230
|
-
'error-darker',
|
|
231
|
-
'error-base',
|
|
232
|
-
'info-base',
|
|
233
|
-
];
|
|
234
|
-
colorKeys.forEach((key) => {
|
|
235
|
-
baseStyles[`--${key}`] = colors.getColor(key);
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
return baseStyles;
|
|
239
|
-
}, ...(ngDevMode ? [{ debugName: "styles" }] : []));
|
|
240
|
-
// Computed signals
|
|
241
|
-
this.classes = computed(() => ({
|
|
242
|
-
[this.size().toLowerCase()]: this.mode() === 'default',
|
|
243
|
-
disabled: this.disabled(),
|
|
244
|
-
isLoading: this.isLoading(),
|
|
245
|
-
isFocused: this.isFocused() && !this.disabled() && !this.readOnly() && !this.isLoading(),
|
|
246
|
-
isHovered: this.isHovered(),
|
|
247
|
-
[this.status()]: true,
|
|
248
|
-
transparent: this.mode() === 'transparent',
|
|
249
|
-
selection: this.enableSelectionMode(),
|
|
250
|
-
}), ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
251
|
-
this.labelColor = computed(() => {
|
|
252
|
-
if (this.disabled()) {
|
|
253
|
-
return 'neutral-medium';
|
|
254
|
-
}
|
|
255
|
-
else if (this.isLoading() && this.mode() === 'transparent' && !this.isHovered()) {
|
|
256
|
-
return 'neutral-dark';
|
|
257
|
-
}
|
|
258
|
-
else if (((this.isFocused() || this.isHovered() || this.status() === 'success' || this.status() === 'error') && !this.readOnly()) || this.isHovered()) {
|
|
259
|
-
return 'neutral-black';
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return 'neutral-dark';
|
|
263
|
-
}
|
|
264
|
-
}, ...(ngDevMode ? [{ debugName: "labelColor" }] : []));
|
|
265
|
-
this.iconConfig = computed(() => {
|
|
266
|
-
const shouldShowIcon = (() => {
|
|
267
|
-
if ((this.iconName() === '' && this.status() === 'default') ||
|
|
268
|
-
(this.mode() === 'transparent' && this.isLoading()) ||
|
|
269
|
-
(this.mode() === 'transparent' && this.status() === 'default')) {
|
|
270
|
-
return false;
|
|
271
|
-
}
|
|
272
|
-
if (this.status() === 'error' && this.hideErrorIcon()) {
|
|
273
|
-
return false;
|
|
274
|
-
}
|
|
275
|
-
return true;
|
|
276
|
-
})();
|
|
277
|
-
if (!shouldShowIcon) {
|
|
278
|
-
return {
|
|
279
|
-
icon: null,
|
|
280
|
-
size: 0,
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
const iconSizeDefaultMode = this.size() === 'large' ? 20 : 16;
|
|
284
|
-
const size = this.mode() === 'transparent' ? 20 : iconSizeDefaultMode;
|
|
285
|
-
const iconMap = {
|
|
286
|
-
loading: { name: this.iconName(), color: 'primary-base' },
|
|
287
|
-
success: { name: 'checkCircle', color: 'success-dark' },
|
|
288
|
-
error: { name: 'alertCircle', color: 'error-dark' },
|
|
289
|
-
default: { name: this.iconName(), color: 'neutral-dark' },
|
|
290
|
-
disabled: { name: this.iconName(), color: 'neutral-medium' },
|
|
291
|
-
};
|
|
292
|
-
const icon = iconMap[this.isLoading() ? 'loading' : this.disabled() ? 'disabled' : this.status() || 'default'];
|
|
293
|
-
return {
|
|
294
|
-
icon,
|
|
295
|
-
size,
|
|
296
|
-
};
|
|
297
|
-
}, ...(ngDevMode ? [{ debugName: "iconConfig" }] : []));
|
|
298
|
-
this.helperText = computed(() => {
|
|
299
|
-
const isError = this.status() === 'error';
|
|
300
|
-
const isSuccess = this.status() === 'success';
|
|
301
|
-
const isDefault = this.status() === 'default';
|
|
302
|
-
const helperTextSize = this.size() === 'large' ? 'small' : 'xsmall';
|
|
303
|
-
const colorText = (() => {
|
|
304
|
-
if (this.disabled())
|
|
305
|
-
return 'neutral-medium';
|
|
306
|
-
if (this.isLoading())
|
|
307
|
-
return 'primary-base';
|
|
308
|
-
if (this.isFocused() || this.isHovered())
|
|
309
|
-
return 'neutral-black';
|
|
310
|
-
return 'neutral-dark';
|
|
311
|
-
})();
|
|
312
|
-
return {
|
|
313
|
-
size: helperTextSize,
|
|
314
|
-
color: isDefault ? colorText : isError ? (this.mode() === 'transparent' ? 'neutral-black' : 'error-dark') : isSuccess ? 'success-dark' : colorText,
|
|
315
|
-
};
|
|
316
|
-
}, ...(ngDevMode ? [{ debugName: "helperText" }] : []));
|
|
317
|
-
this.shouldShowClearButton = computed(() => {
|
|
318
|
-
return !!(this.clearIcon() && !this.readOnly() && !this.isLoading() && !this.disabled() && this.value() && this.isFocused());
|
|
319
|
-
}, ...(ngDevMode ? [{ debugName: "shouldShowClearButton" }] : []));
|
|
320
|
-
effect(() => {
|
|
321
|
-
if (this.inputRef && (this.maskPreset() || this.maskRegex() || this.maskAdvanced())) {
|
|
322
|
-
this.initializeMask();
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
this.destroyMask();
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
ngAfterViewInit() {
|
|
330
|
-
const inputEl = this.inputElement();
|
|
331
|
-
if (inputEl) {
|
|
332
|
-
this.inputRef = inputEl.nativeElement;
|
|
333
|
-
this.initializeMask();
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
ngOnDestroy() {
|
|
337
|
-
this.destroyMask();
|
|
338
|
-
}
|
|
339
|
-
// ControlValueAccessor implementation
|
|
340
|
-
writeValue(value) {
|
|
341
|
-
this.value.set(value);
|
|
342
|
-
}
|
|
343
|
-
registerOnChange(fn) {
|
|
344
|
-
this.onChange = fn;
|
|
345
|
-
}
|
|
346
|
-
registerOnTouched(fn) {
|
|
347
|
-
this.onTouched = fn;
|
|
348
|
-
}
|
|
349
|
-
// Public methods
|
|
350
|
-
async setFocus() {
|
|
351
|
-
// IOS needs large timeout value to work
|
|
352
|
-
const timeoutMs = this.checkMobile() && this.checkIOS() ? 1000 : 200;
|
|
353
|
-
// IOS fake input hack
|
|
354
|
-
let fakeInput = this.fakeInputIOSHack(this.elementRef.nativeElement);
|
|
355
|
-
setTimeout(() => {
|
|
356
|
-
if (this.inputRef) {
|
|
357
|
-
this.inputRef.focus();
|
|
358
|
-
}
|
|
359
|
-
if (fakeInput) {
|
|
360
|
-
fakeInput.remove();
|
|
361
|
-
}
|
|
362
|
-
}, timeoutMs);
|
|
363
|
-
}
|
|
364
|
-
// Event handlers
|
|
365
|
-
handleMouseEnter() {
|
|
366
|
-
this.isHovered.set(true);
|
|
367
|
-
}
|
|
368
|
-
handleMouseLeave() {
|
|
369
|
-
this.isHovered.set(false);
|
|
370
|
-
}
|
|
371
|
-
handleInputFocus() {
|
|
372
|
-
this.handleMaskUpdate();
|
|
373
|
-
this.isFocused.set(true);
|
|
374
|
-
}
|
|
375
|
-
handleInputBlur() {
|
|
376
|
-
this.handleMaskUpdate();
|
|
377
|
-
this.onTouched();
|
|
378
|
-
setTimeout(() => {
|
|
379
|
-
this.isFocused.set(false);
|
|
380
|
-
}, 150);
|
|
381
|
-
}
|
|
382
|
-
handleInputChange(event) {
|
|
383
|
-
const inputValue = event.target.value;
|
|
384
|
-
if (this.type() === 'number') {
|
|
385
|
-
this.handleNumberInputChange(inputValue);
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
this.handleTextInputChange(inputValue);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
handleKeyDown(event) {
|
|
392
|
-
if (this.type() === 'number') {
|
|
393
|
-
this.handleBlockInvalidNumber(event);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
handleClearInput() {
|
|
397
|
-
this.handleMaskUpdate();
|
|
398
|
-
this.value.set('');
|
|
399
|
-
if (this.inputRef) {
|
|
400
|
-
this.inputRef.value = '';
|
|
401
|
-
}
|
|
402
|
-
this.valueChange.emit({ value: this.value() });
|
|
403
|
-
this.inputClear.emit({ value: this.value() });
|
|
404
|
-
this.onChange(this.value());
|
|
405
|
-
this.handleMaskUpdate();
|
|
406
|
-
this.setFocus();
|
|
407
|
-
}
|
|
408
|
-
// Private methods
|
|
409
|
-
handleNumberInputChange(inputValue) {
|
|
410
|
-
const numericValue = parseFloat(inputValue);
|
|
411
|
-
if (!isNaN(numericValue)) {
|
|
412
|
-
this.value.set(numericValue);
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
console.error('Invalid numeric input:', inputValue);
|
|
416
|
-
}
|
|
417
|
-
this.valueChange.emit({ value: inputValue });
|
|
418
|
-
}
|
|
419
|
-
handleTextInputChange(inputValue) {
|
|
420
|
-
if (this.maskedInput) {
|
|
421
|
-
if (this.maskedInput.mask instanceof Date || this.maskedInput.mask === Number) {
|
|
422
|
-
this.maskedInput.typedValue = inputValue;
|
|
423
|
-
}
|
|
424
|
-
this.maskedInput.value = inputValue;
|
|
425
|
-
this.valueChange.emit({ value: this.maskedInput.value });
|
|
426
|
-
}
|
|
427
|
-
else {
|
|
428
|
-
this.valueChange.emit({ value: inputValue });
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
handleBlockInvalidNumber(e) {
|
|
432
|
-
if (['e', 'E', '+', '-'].includes(e.key)) {
|
|
433
|
-
e.preventDefault();
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
shouldDisplayMask() {
|
|
437
|
-
return !!(this.maskPreset() || this.maskRegex() || this.maskAdvanced());
|
|
438
|
-
}
|
|
439
|
-
initializeMask() {
|
|
440
|
-
if (this.shouldDisplayMask()) {
|
|
441
|
-
if (this.maskedInput) {
|
|
442
|
-
this.destroyMask();
|
|
443
|
-
}
|
|
444
|
-
if (this.maskPreset()) {
|
|
445
|
-
this.initializePresetMask();
|
|
446
|
-
}
|
|
447
|
-
else if (this.maskRegex()) {
|
|
448
|
-
this.initializeRegexMask();
|
|
449
|
-
}
|
|
450
|
-
else if (this.maskAdvanced()) {
|
|
451
|
-
this.initializeAdvancedMask();
|
|
452
|
-
}
|
|
453
|
-
this.applyValueToMask();
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
this.clearMaskValue();
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
initializePresetMask() {
|
|
460
|
-
const preset = this.maskPreset();
|
|
461
|
-
if (!preset)
|
|
462
|
-
return;
|
|
463
|
-
const options = maskOptions[preset];
|
|
464
|
-
if (options && this.inputRef) {
|
|
465
|
-
this.maskedInput = IMask(this.inputRef, options);
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
console.error(`Mask preset "${preset}" not found.`);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
initializeRegexMask() {
|
|
472
|
-
const regex = this.maskRegex();
|
|
473
|
-
if (!regex || !this.inputRef)
|
|
474
|
-
return;
|
|
475
|
-
const cleanedRegexString = regex.replace(/^\/|\/[gimsuy]*$/g, '');
|
|
476
|
-
const flags = (regex.match(/\/[gimsuy]*$/g) || [''])[0].slice(1);
|
|
477
|
-
this.maskedInput = IMask(this.inputRef, { mask: new RegExp(cleanedRegexString, flags) });
|
|
478
|
-
}
|
|
479
|
-
initializeAdvancedMask() {
|
|
480
|
-
if (!this.inputRef)
|
|
481
|
-
return;
|
|
482
|
-
try {
|
|
483
|
-
const config = typeof this.maskAdvanced() === 'string' ? JSON.parse(this.maskAdvanced()) : this.maskAdvanced();
|
|
484
|
-
this.maskedInput = IMask(this.inputRef, config);
|
|
485
|
-
}
|
|
486
|
-
catch (error) {
|
|
487
|
-
console.error('Error defining maskAdvanced:', error);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
applyValueToMask() {
|
|
491
|
-
if (this.maskedInput) {
|
|
492
|
-
if (this.maskedInput.mask === Date || this.maskedInput.mask === Number) {
|
|
493
|
-
this.maskedInput.typedValue = this.value();
|
|
494
|
-
}
|
|
495
|
-
else {
|
|
496
|
-
this.maskedInput.value = this.value();
|
|
497
|
-
}
|
|
498
|
-
this.handleMaskUpdate();
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
clearMaskValue() {
|
|
502
|
-
if (this.inputRef) {
|
|
503
|
-
this.inputRef.value = this.value();
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
destroyMask() {
|
|
507
|
-
if (this.maskedInput) {
|
|
508
|
-
this.maskedInput.destroy();
|
|
509
|
-
this.maskedInput = undefined;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
handleMaskUpdate() {
|
|
513
|
-
if (this.maskedInput) {
|
|
514
|
-
this.maskedInput.updateValue();
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraInputTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
518
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: CuraInputTextComponent, isStandalone: true, selector: "cura-input-text", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, inputMode: { classPropertyName: "inputMode", publicName: "inputMode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, maskPreset: { classPropertyName: "maskPreset", publicName: "maskPreset", isSignal: true, isRequired: false, transformFunction: null }, enableSelectionMode: { classPropertyName: "enableSelectionMode", publicName: "enableSelectionMode", isSignal: true, isRequired: false, transformFunction: null }, maskRegex: { classPropertyName: "maskRegex", publicName: "maskRegex", isSignal: true, isRequired: false, transformFunction: null }, maskAdvanced: { classPropertyName: "maskAdvanced", publicName: "maskAdvanced", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, clearIcon: { classPropertyName: "clearIcon", publicName: "clearIcon", isSignal: true, isRequired: false, transformFunction: null }, hideErrorIcon: { classPropertyName: "hideErrorIcon", publicName: "hideErrorIcon", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", inputClear: "inputClear" }, host: { attributes: { "role": "textbox" }, properties: { "attr.aria-disabled": "disabled()", "attr.aria-required": "required()", "attr.aria-invalid": "status() === \"error\"" } }, providers: [
|
|
519
|
-
{
|
|
520
|
-
provide: NG_VALUE_ACCESSOR,
|
|
521
|
-
useExisting: forwardRef(() => CuraInputTextComponent),
|
|
522
|
-
multi: true,
|
|
523
|
-
},
|
|
524
|
-
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"cura-input-group\" [ngClass]=\"classes()\" [style]=\"styles()\" (mouseenter)=\"handleMouseEnter()\" (mouseleave)=\"handleMouseLeave()\">\r\n <div class=\"input-wrapper\">\r\n @if (label()) {\r\n <cura-label class=\"label\" weight=\"bold\" [size]=\"size() === 'large' ? 'small' : 'xsmall'\" [color]=\"labelColor()\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"required\">*</span>\r\n }\r\n </cura-label>\r\n }\r\n\r\n <div class=\"cura-input-field\" [style]=\"styles()\">\r\n @if (iconConfig().icon) {\r\n <div class=\"feedback-icon\" [style]=\"styles()\">\r\n <cura-icon [name]=\"iconConfig().icon!.name\" iconset=\"default\" [size]=\"iconConfig().size\" [color]=\"iconConfig().icon!.color\"> </cura-icon>\r\n </div>\r\n }\r\n\r\n <input\r\n #inputElement\r\n [name]=\"name() || ''\"\r\n [type]=\"type()\"\r\n [placeholder]=\"placeholder()\"\r\n [disabled]=\"disabled() || isLoading()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readOnly()\"\r\n [attr.maxlength]=\"maxlength()\"\r\n [(ngModel)]=\"value\"\r\n [attr.inputmode]=\"maskPreset() ? 'tel' : inputMode()\"\r\n [autocomplete]=\"autocomplete()\"\r\n [ngClass]=\"classes()\"\r\n [style]=\"styles()\"\r\n (focus)=\"handleInputFocus()\"\r\n (blur)=\"handleInputBlur()\"\r\n (input)=\"handleInputChange($event)\"\r\n (keydown)=\"handleKeyDown($event)\"\r\n />\r\n\r\n @if (shouldShowClearButton()) {\r\n <cura-icon\r\n [size]=\"size() === 'large' || mode() === 'transparent' ? 20 : 16\"\r\n color=\"primary-base\"\r\n name=\"closeCircle\"\r\n iconset=\"default\"\r\n class=\"clear-button\"\r\n (click)=\"handleClearInput()\"\r\n >\r\n </cura-icon>\r\n }\r\n\r\n @if (isLoading()) {\r\n <cura-loader-circle [size]=\"size() === 'large' ? 'medium' : 'small'\" color=\"primary-base\"> </cura-loader-circle>\r\n }\r\n </div>\r\n\r\n @if (helperText()) {\r\n <div [style]=\"styles()\" class=\"helper-text\" part=\"cura-input-text-helper\">\r\n <cura-label size=\"xsmall\" lineHeight=\"xsmall\" [color]=\"helperText().color\">\r\n <ng-content></ng-content>\r\n </cura-label>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left!important}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group .cura-input-field cura-loader-circle{margin:0 12px}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px;padding-top:6px}.cura-input-group .cura-input-field .clear-button{margin-right:12px;cursor:pointer}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base)!important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black)!important}.cura-input-group:focus-within.selection .cura-input-field{border-radius:4px 4px 0 0}.cura-input-group.isLoading{cursor:wait}.cura-input-group.isLoading .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:var(--neutral-white)!important;border:2px solid var(--primary-base)!important}.cura-input-group.isLoading .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.isLoading .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.isLoading .cura-input-field input{cursor:wait;color:var(--primary-base)!important}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--primary-base)!important}.cura-input-group.readOnly[read-only] .cura-input-field,.cura-input-group.readOnly[read-only] .cura-input-field input{cursor:default}.cura-input-group.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field input{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.cura-input-group.transparent{background-color:transparent;padding:0;max-height:80px}.cura-input-group.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent!important;border:none!important;border-radius:0;height:27px}.cura-input-group.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent .cura-input-field input{color:var(--neutral-black)!important;font-size:16px;font-weight:var(--font-weight-bold)!important;padding:0}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.cura-input-group.transparent:focus-within .cura-input-field{border:none!important;background-color:transparent!important}.cura-input-group.transparent:focus-within .cura-input-field input{border:none!important;outline:none}.cura-input-group.transparent .helper-text{margin-top:0}.cura-input-group.transparent.transparent{display:flex;background-color:transparent;padding:0;justify-content:start;align-items:center;max-height:80px;gap:4px}.cura-input-group.transparent.transparent .input-wrapper{display:flex;width:100%;flex-direction:column;justify-content:start}.cura-input-group.transparent.transparent cura-label{margin-bottom:4px;--color-body: var(--neutral-dark) !important}.cura-input-group.transparent.transparent.error cura-label{--color-body: var(--neutral-black) !important}.cura-input-group.transparent.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);color:var(--primary-base);letter-spacing:.32px;line-height:20px;box-sizing:border-box;background-color:transparent!important;border:none!important;border-radius:0;height:27px;overflow:hidden}.cura-input-group.transparent.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent.transparent .cura-input-field input{order:1;color:var(--neutral-black)!important;font-size:16px;font-weight:var(--font-weight-bold)!important;padding:0}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent.transparent .cura-input-field .clear-button{order:2;cursor:pointer;margin:0 20px 0 0;padding:0}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding:6px 0 0}.cura-input-group.transparent.transparent .cura-input-field cura-loader-circle{order:2;margin:0 20px 0 0}.cura-input-group.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker)!important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker)!important}.cura-input-group.error.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.error.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.error.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.error:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker)!important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker)!important}.cura-input-group.success.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.success.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.success.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.success:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraLoaderCircleComponent, selector: "cura-loader-circle", inputs: ["size", "color"] }] }); }
|
|
525
|
-
}
|
|
526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CuraInputTextComponent, decorators: [{
|
|
527
|
-
type: Component,
|
|
528
|
-
args: [{ selector: 'cura-input-text', imports: [CommonModule, FormsModule, CuraLabelComponent, CuraIconComponent, CuraLoaderCircleComponent], host: {
|
|
529
|
-
role: 'textbox',
|
|
530
|
-
'[attr.aria-disabled]': 'disabled()',
|
|
531
|
-
'[attr.aria-required]': 'required()',
|
|
532
|
-
'[attr.aria-invalid]': 'status() === "error"',
|
|
533
|
-
}, providers: [
|
|
534
|
-
{
|
|
535
|
-
provide: NG_VALUE_ACCESSOR,
|
|
536
|
-
useExisting: forwardRef(() => CuraInputTextComponent),
|
|
537
|
-
multi: true,
|
|
538
|
-
},
|
|
539
|
-
], template: "<div class=\"cura-input-group\" [ngClass]=\"classes()\" [style]=\"styles()\" (mouseenter)=\"handleMouseEnter()\" (mouseleave)=\"handleMouseLeave()\">\r\n <div class=\"input-wrapper\">\r\n @if (label()) {\r\n <cura-label class=\"label\" weight=\"bold\" [size]=\"size() === 'large' ? 'small' : 'xsmall'\" [color]=\"labelColor()\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"required\">*</span>\r\n }\r\n </cura-label>\r\n }\r\n\r\n <div class=\"cura-input-field\" [style]=\"styles()\">\r\n @if (iconConfig().icon) {\r\n <div class=\"feedback-icon\" [style]=\"styles()\">\r\n <cura-icon [name]=\"iconConfig().icon!.name\" iconset=\"default\" [size]=\"iconConfig().size\" [color]=\"iconConfig().icon!.color\"> </cura-icon>\r\n </div>\r\n }\r\n\r\n <input\r\n #inputElement\r\n [name]=\"name() || ''\"\r\n [type]=\"type()\"\r\n [placeholder]=\"placeholder()\"\r\n [disabled]=\"disabled() || isLoading()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readOnly()\"\r\n [attr.maxlength]=\"maxlength()\"\r\n [(ngModel)]=\"value\"\r\n [attr.inputmode]=\"maskPreset() ? 'tel' : inputMode()\"\r\n [autocomplete]=\"autocomplete()\"\r\n [ngClass]=\"classes()\"\r\n [style]=\"styles()\"\r\n (focus)=\"handleInputFocus()\"\r\n (blur)=\"handleInputBlur()\"\r\n (input)=\"handleInputChange($event)\"\r\n (keydown)=\"handleKeyDown($event)\"\r\n />\r\n\r\n @if (shouldShowClearButton()) {\r\n <cura-icon\r\n [size]=\"size() === 'large' || mode() === 'transparent' ? 20 : 16\"\r\n color=\"primary-base\"\r\n name=\"closeCircle\"\r\n iconset=\"default\"\r\n class=\"clear-button\"\r\n (click)=\"handleClearInput()\"\r\n >\r\n </cura-icon>\r\n }\r\n\r\n @if (isLoading()) {\r\n <cura-loader-circle [size]=\"size() === 'large' ? 'medium' : 'small'\" color=\"primary-base\"> </cura-loader-circle>\r\n }\r\n </div>\r\n\r\n @if (helperText()) {\r\n <div [style]=\"styles()\" class=\"helper-text\" part=\"cura-input-text-helper\">\r\n <cura-label size=\"xsmall\" lineHeight=\"xsmall\" [color]=\"helperText().color\">\r\n <ng-content></ng-content>\r\n </cura-label>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left!important}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group .cura-input-field cura-loader-circle{margin:0 12px}.cura-input-group .cura-input-field .feedback-icon{padding-left:12px;padding-top:6px}.cura-input-group .cura-input-field .clear-button{margin-right:12px;cursor:pointer}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base)!important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black)!important}.cura-input-group:focus-within.selection .cura-input-field{border-radius:4px 4px 0 0}.cura-input-group.isLoading{cursor:wait}.cura-input-group.isLoading .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:var(--neutral-white)!important;border:2px solid var(--primary-base)!important}.cura-input-group.isLoading .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.isLoading .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.isLoading .cura-input-field input{cursor:wait;color:var(--primary-base)!important}.cura-input-group.isLoading .cura-input-field input::placeholder{color:var(--primary-base)!important}.cura-input-group.readOnly[read-only] .cura-input-field,.cura-input-group.readOnly[read-only] .cura-input-field input{cursor:default}.cura-input-group.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field input{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.cura-input-group.transparent{background-color:transparent;padding:0;max-height:80px}.cura-input-group.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent!important;border:none!important;border-radius:0;height:27px}.cura-input-group.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent .cura-input-field input{color:var(--neutral-black)!important;font-size:16px;font-weight:var(--font-weight-bold)!important;padding:0}.cura-input-group.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.cura-input-group.transparent:focus-within .cura-input-field{border:none!important;background-color:transparent!important}.cura-input-group.transparent:focus-within .cura-input-field input{border:none!important;outline:none}.cura-input-group.transparent .helper-text{margin-top:0}.cura-input-group.transparent.transparent{display:flex;background-color:transparent;padding:0;justify-content:start;align-items:center;max-height:80px;gap:4px}.cura-input-group.transparent.transparent .input-wrapper{display:flex;width:100%;flex-direction:column;justify-content:start}.cura-input-group.transparent.transparent cura-label{margin-bottom:4px;--color-body: var(--neutral-dark) !important}.cura-input-group.transparent.transparent.error cura-label{--color-body: var(--neutral-black) !important}.cura-input-group.transparent.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);color:var(--primary-base);letter-spacing:.32px;line-height:20px;box-sizing:border-box;background-color:transparent!important;border:none!important;border-radius:0;height:27px;overflow:hidden}.cura-input-group.transparent.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.transparent.transparent .cura-input-field input{order:1;color:var(--neutral-black)!important;font-size:16px;font-weight:var(--font-weight-bold)!important;padding:0}.cura-input-group.transparent.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.cura-input-group.transparent.transparent .cura-input-field .clear-button{order:2;cursor:pointer;margin:0 20px 0 0;padding:0}.cura-input-group.transparent.transparent .cura-input-field .feedback-icon{padding:6px 0 0}.cura-input-group.transparent.transparent .cura-input-field cura-loader-circle{order:2;margin:0 20px 0 0}.cura-input-group.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error .cura-input-field input{color:var(--error-darker)!important}.cura-input-group.error .cura-input-field input::placeholder{color:var(--error-darker)!important}.cura-input-group.error.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.error.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.error.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.error.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.error.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.error.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.error:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.error:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.error:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success .cura-input-field input{color:var(--success-darker)!important}.cura-input-group.success .cura-input-field input::placeholder{color:var(--success-darker)!important}.cura-input-group.success.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.small .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.small .cura-input-field input{line-height:13px;letter-spacing:.72px}.cura-input-group.success.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.medium .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.medium .cura-input-field input{line-height:16px;letter-spacing:.56px}.cura-input-group.success.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.success.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-input-group.success.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success.large .cura-input-field .feedback-icon{padding-left:12px}.cura-input-group.success.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.success:not(.transparent).large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success:not(.transparent).large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0 12px 0 8px}.cura-input-group.success:not(.transparent).large .cura-input-field input::placeholder{color:var(--neutral-dark)}.cura-input-group.success:not(.transparent).large .cura-input-field .feedback-icon{padding-left:12px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}\n"] }]
|
|
540
|
-
}], ctorParameters: () => [] });
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* Generated bundle index. Do not edit.
|
|
544
|
-
*/
|
|
545
|
-
|
|
546
|
-
export { CuraInputTextComponent, maskOptions };
|
|
547
|
-
//# sourceMappingURL=rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map
|