@rededor/site-front-end-lib 20.0.8 → 20.0.9
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 +124 -124
- package/components/cards/index.d.ts +6 -6
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +20 -20
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +24 -19
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +20 -20
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +51 -51
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +26 -26
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-shared.mjs +6 -6
- package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_breakpoints.scss +5 -5
|
@@ -57,14 +57,14 @@ class CuraAccordionItemComponent {
|
|
|
57
57
|
// Emitir evento customizado para o MutationObserver do parent
|
|
58
58
|
this.elementRef.nativeElement.setAttribute('opened', this.opened().toString());
|
|
59
59
|
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraAccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraAccordionItemComponent, isStandalone: true, selector: "cura-accordion-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.opened": "opened().toString()" } }, ngImport: i0, template: "<div [ngClass]=\"containerClasses()\">\n <div class=\"label\" (click)=\"accordionItemClick($event)\">\n <div class=\"label-container\">\n <div class=\"label-content\">\n @if (labelIcon()) {\n <cura-icon [name]=\"labelIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n }\n <cura-heading size=\"small\" [level]=\"level()\" weight=\"bold\" marginBlock=\"0\" color=\"neutral-black\">\n {{ label() }}\n </cura-heading>\n </div>\n <cura-icon [name]=\"currentIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n </div>\n </div>\n <div class=\"content\">\n <div class=\"content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}:host .accordion-item{width:100%}:host .accordion-item:after{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item:hover:not(.active):after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover);width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--cura-spacing-base) * 3px);padding:calc(var(--cura-spacing-base) * 3px);word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular)}:host .accordion-item .label .label-container .label-content{display:flex;justify-content:center;align-items:center;gap:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item .label .label-container .label-content cura-icon{--color: var(--acc-color) !important}:host .accordion-item .label .label-container .label-content cura-heading{--color-body: var(--acc-color) !important}:host .accordion-item .label .label-container cura-icon{--color: var(--acc-color-icon) !important;margin-right:4px}:host .accordion-item .label .label-container:hover cura-heading{--color-body: var(--acc-color-hover) !important}:host .accordion-item .label .label-container:hover cura-icon{--color: var(--acc-color-icon-hover) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height .25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item.inverted:hover:not(.active):after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover-inverted);width:100%}:host .accordion-item.inverted .label .label-container cura-heading{--color-body: var(--acc-color-inverted) !important}:host .accordion-item.inverted .label .label-container cura-icon{--color: var(--acc-color-icon-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-heading{--color-body: var(--acc-color-hover-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color: var(--acc-color-icon-hover-inverted) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height .5s ease .14s}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraHeadingComponent, selector: "cura-heading", inputs: ["level", "size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraAccordionItemComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
65
|
args: [{ selector: 'cura-accordion-item', imports: [CommonModule, CuraIconComponent, CuraHeadingComponent], host: {
|
|
66
66
|
'[attr.opened]': 'opened().toString()',
|
|
67
|
-
}, template: "<div [ngClass]=\"containerClasses()\">\
|
|
67
|
+
}, template: "<div [ngClass]=\"containerClasses()\">\n <div class=\"label\" (click)=\"accordionItemClick($event)\">\n <div class=\"label-container\">\n <div class=\"label-content\">\n @if (labelIcon()) {\n <cura-icon [name]=\"labelIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n }\n <cura-heading size=\"small\" [level]=\"level()\" weight=\"bold\" marginBlock=\"0\" color=\"neutral-black\">\n {{ label() }}\n </cura-heading>\n </div>\n <cura-icon [name]=\"currentIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n </div>\n </div>\n <div class=\"content\">\n <div class=\"content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}:host .accordion-item{width:100%}:host .accordion-item:after{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item:hover:not(.active):after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover);width:100%}:host .accordion-item .label{display:flex;flex-direction:column}:host .accordion-item .label .label-container{display:flex;flex-grow:1;justify-content:space-between;align-items:center;gap:calc(var(--cura-spacing-base) * 3px);padding:calc(var(--cura-spacing-base) * 3px);word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular)}:host .accordion-item .label .label-container .label-content{display:flex;justify-content:center;align-items:center;gap:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item .label .label-container .label-content cura-icon{--color: var(--acc-color) !important}:host .accordion-item .label .label-container .label-content cura-heading{--color-body: var(--acc-color) !important}:host .accordion-item .label .label-container cura-icon{--color: var(--acc-color-icon) !important;margin-right:4px}:host .accordion-item .label .label-container:hover cura-heading{--color-body: var(--acc-color-hover) !important}:host .accordion-item .label .label-container:hover cura-icon{--color: var(--acc-color-icon-hover) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;transition:max-height .25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--cura-spacing-base) * 3px)}:host .accordion-item.inverted:hover:not(.active):after{content:\"\";display:block;border-top:solid 1px var(--acc-color-icon-hover-inverted);width:100%}:host .accordion-item.inverted .label .label-container cura-heading{--color-body: var(--acc-color-inverted) !important}:host .accordion-item.inverted .label .label-container cura-icon{--color: var(--acc-color-icon-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-heading{--color-body: var(--acc-color-hover-inverted) !important}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color: var(--acc-color-icon-hover-inverted) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;transition:max-height .5s ease .14s}@media (min-width: 769px) and (max-width: 992px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 993px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}\n"] }]
|
|
68
68
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
69
69
|
|
|
70
70
|
class CuraAccordionComponent {
|
|
@@ -221,10 +221,10 @@ class CuraAccordionComponent {
|
|
|
221
221
|
item.closeIcon.set(config.closeIcon);
|
|
222
222
|
item.level.set(config.level);
|
|
223
223
|
}
|
|
224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.16", type: CuraAccordionComponent, isStandalone: true, selector: "cura-accordion", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, colorMode: { classPropertyName: "colorMode", publicName: "colorMode", isSignal: true, isRequired: false, transformFunction: null }, iconSize: { classPropertyName: "iconSize", publicName: "iconSize", isSignal: true, isRequired: false, transformFunction: null }, labelIcon: { classPropertyName: "labelIcon", publicName: "labelIcon", isSignal: true, isRequired: false, transformFunction: null }, openIcon: { classPropertyName: "openIcon", publicName: "openIcon", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, iconColor: { classPropertyName: "iconColor", publicName: "iconColor", isSignal: true, isRequired: false, transformFunction: null }, behavior: { classPropertyName: "behavior", publicName: "behavior", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--base-spacing": "baseSpacing()", "style.--neutral-base": "neutralBase()", "style.--font-size": "fontSize()", "style.--font-color": "fontColor()", "style.--font-family": "fontFamily()", "style.--font-weight-regular": "weights().regular", "style.--acc-color": "accordionColors().accColor", "style.--acc-color-hover": "accordionColors().accColorHover", "style.--acc-color-icon": "accordionColors().accColorIcon", "style.--acc-color-icon-hover": "accordionColors().accColorIconHover", "style.--acc-color-inverted": "accordionColors().accColorInverted", "style.--acc-color-hover-inverted": "accordionColors().accColorHoverInverted", "style.--acc-color-icon-inverted": "accordionColors().accColorIconInverted", "style.--acc-color-icon-hover-inverted": "accordionColors().accColorIconHoverInverted" } }, queries: [{ propertyName: "accordionItems", predicate: CuraAccordionItemComponent, isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block;color:var(--font-color);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}\n"] }); }
|
|
226
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraAccordionComponent, decorators: [{
|
|
228
228
|
type: Component,
|
|
229
229
|
args: [{ selector: 'cura-accordion', host: {
|
|
230
230
|
'[style.--base-spacing]': 'baseSpacing()',
|
|
@@ -241,7 +241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
241
241
|
'[style.--acc-color-hover-inverted]': 'accordionColors().accColorHoverInverted',
|
|
242
242
|
'[style.--acc-color-icon-inverted]': 'accordionColors().accColorIconInverted',
|
|
243
243
|
'[style.--acc-color-icon-hover-inverted]': 'accordionColors().accColorIconHoverInverted',
|
|
244
|
-
}, template: "<ng-content></ng-content>\
|
|
244
|
+
}, template: "<ng-content></ng-content>\n", styles: [":host{display:block;color:var(--font-color);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}\n"] }]
|
|
245
245
|
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], colorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMode", required: false }] }], iconSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSize", required: false }] }], labelIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelIcon", required: false }] }], openIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "openIcon", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], iconColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconColor", required: false }] }], behavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "behavior", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], accordionItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CuraAccordionItemComponent), { isSignal: true }] }] } });
|
|
246
246
|
|
|
247
247
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-accordion.mjs","sources":["../../../projects/site-front-end-lib/cura/accordion/cura-accordion-item/cura-accordion-item.component.ts","../../../projects/site-front-end-lib/cura/accordion/cura-accordion-item/cura-accordion-item.component.html","../../../projects/site-front-end-lib/cura/accordion/cura-accordion/cura-accordion.component.ts","../../../projects/site-front-end-lib/cura/accordion/cura-accordion/cura-accordion.component.html","../../../projects/site-front-end-lib/cura/accordion/rededor-site-front-end-lib-cura-accordion.ts"],"sourcesContent":["import { Component, inject, input, signal, ElementRef, computed } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\r\nimport { CuraHeadingComponent } from '@rededor/site-front-end-lib/cura/texts/cura-heading';\r\nimport { AccordionColorMode, AccordionLevel } from '../cura-accordion.definitions';\r\n\r\n@Component({\r\n selector: 'cura-accordion-item',\r\n imports: [CommonModule, CuraIconComponent, CuraHeadingComponent],\r\n templateUrl: './cura-accordion-item.component.html',\r\n styleUrls: ['./cura-accordion-item.component.scss'],\r\n host: {\r\n '[attr.opened]': 'opened().toString()',\r\n },\r\n})\r\nexport class CuraAccordionItemComponent {\r\n public elementRef = inject(ElementRef);\r\n\r\n /**\r\n * Text label for accordion item\r\n */\r\n label = input<string>('');\r\n\r\n /** ***Properties below are inherited from the cura-accordion*** */\r\n /**\r\n * Accordion items icons\r\n */\r\n iconSize = signal<number>(20);\r\n labelIcon = signal<string>('');\r\n openIcon = signal<string>('down');\r\n closeIcon = signal<string>('up');\r\n\r\n /**\r\n * Color scheme base color\r\n * (By default, the icon will use the same color of 'color')\r\n */\r\n iconColor = signal<string>('');\r\n\r\n /**\r\n * Set the color mode to dark or light\r\n */\r\n colorMode = signal<AccordionColorMode>('dark');\r\n\r\n /**\r\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\r\n * Values: 1 to 6 (3 default).\r\n */\r\n level = signal<AccordionLevel>(3);\r\n\r\n /**\r\n * Controls if the accordion item is opened\r\n */\r\n opened = signal<boolean>(false);\r\n\r\n // Computed signal para classes (equivalente ao Stencil)\r\n containerClasses = computed(() => {\r\n const classes: { [key: string]: boolean } = {};\r\n classes['accordion-item'] = true;\r\n classes['active'] = this.opened();\r\n classes['inverted'] = this.colorMode() === 'light';\r\n return classes;\r\n });\r\n\r\n currentIcon = computed(() => {\r\n return this.opened() ? this.closeIcon() : this.openIcon();\r\n });\r\n\r\n accordionItemClick(event: Event) {\r\n event.preventDefault();\r\n this.opened.set(!this.opened());\r\n\r\n // Emitir evento customizado para o MutationObserver do parent\r\n this.elementRef.nativeElement.setAttribute('opened', this.opened().toString());\r\n }\r\n}\r\n","<div [ngClass]=\"containerClasses()\">\r\n <div class=\"label\" (click)=\"accordionItemClick($event)\">\r\n <div class=\"label-container\">\r\n <div class=\"label-content\">\r\n @if (labelIcon()) {\r\n <cura-icon [name]=\"labelIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\r\n }\r\n <cura-heading size=\"small\" [level]=\"level()\" weight=\"bold\" marginBlock=\"0\" color=\"neutral-black\">\r\n {{ label() }}\r\n </cura-heading>\r\n </div>\r\n <cura-icon [name]=\"currentIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\r\n </div>\r\n </div>\r\n <div class=\"content\">\r\n <div class=\"content-wrapper\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, inject, input, computed, AfterViewInit, OnDestroy, ElementRef, contentChildren } from '@angular/core';\r\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\r\nimport { AccordionColorMode, AccordionBehavior, AccordionLevel } from '../cura-accordion.definitions';\r\nimport { CuraAccordionItemComponent } from '../cura-accordion-item/cura-accordion-item.component';\r\n\r\n@Component({\r\n selector: 'cura-accordion',\r\n templateUrl: './cura-accordion.component.html',\r\n styleUrls: ['./cura-accordion.component.scss'],\r\n host: {\r\n '[style.--base-spacing]': 'baseSpacing()',\r\n '[style.--neutral-base]': 'neutralBase()',\r\n '[style.--font-size]': 'fontSize()',\r\n '[style.--font-color]': 'fontColor()',\r\n '[style.--font-family]': 'fontFamily()',\r\n '[style.--font-weight-regular]': 'weights().regular',\r\n '[style.--acc-color]': 'accordionColors().accColor',\r\n '[style.--acc-color-hover]': 'accordionColors().accColorHover',\r\n '[style.--acc-color-icon]': 'accordionColors().accColorIcon',\r\n '[style.--acc-color-icon-hover]': 'accordionColors().accColorIconHover',\r\n '[style.--acc-color-inverted]': 'accordionColors().accColorInverted',\r\n '[style.--acc-color-hover-inverted]': 'accordionColors().accColorHoverInverted',\r\n '[style.--acc-color-icon-inverted]': 'accordionColors().accColorIconInverted',\r\n '[style.--acc-color-icon-hover-inverted]': 'accordionColors().accColorIconHoverInverted',\r\n },\r\n})\r\nexport class CuraAccordionComponent implements AfterViewInit, OnDestroy {\r\n private curaApi = inject(CuraApiService);\r\n private elementRef = inject(ElementRef);\r\n\r\n /**\r\n * Color scheme base color\r\n */\r\n color = input<string>('primary');\r\n\r\n /**\r\n * Set the color mode to dark or light\r\n */\r\n colorMode = input<AccordionColorMode>('dark');\r\n\r\n /**\r\n * Accordion items icons\r\n */\r\n iconSize = input<number>(20);\r\n labelIcon = input<string>('');\r\n openIcon = input<string>('down');\r\n closeIcon = input<string>('up');\r\n\r\n /**\r\n * Color scheme base color\r\n * (By default, the icon will use the same color of 'color')\r\n */\r\n iconColor = input<string>('');\r\n\r\n /**\r\n * Accordion behavior when item is clicked\r\n * (The default will close all items except the current one)\r\n */\r\n behavior = input<AccordionBehavior>('default');\r\n\r\n /**\r\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\r\n * Values: 1 to 6 (3 default).\r\n */\r\n level = input<AccordionLevel>(3);\r\n\r\n accordionItems = contentChildren(CuraAccordionItemComponent);\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n // Computed properties para estilos\r\n weights = computed(() => {\r\n return this.curaApi.theme.fonts.getWeights();\r\n });\r\n\r\n baseSpacing = computed(() => {\r\n return this.curaApi.theme.spacing.getSpacing();\r\n });\r\n\r\n neutralBase = computed(() => {\r\n return this.curaApi.theme.colors.getColor('neutral-base');\r\n });\r\n\r\n fontSize = computed(() => {\r\n return this.curaApi.theme.fonts.getSize();\r\n });\r\n\r\n fontColor = computed(() => {\r\n return this.curaApi.theme.fonts.getColor();\r\n });\r\n\r\n fontFamily = computed(() => {\r\n return this.curaApi.theme.fonts.getFamily();\r\n });\r\n\r\n accordionColors = computed(() => {\r\n const iconColorValue = this.iconColor() || this.color();\r\n return {\r\n accColor: this.curaApi.theme.colors.getColor('neutral-black'),\r\n accColorHover: this.curaApi.theme.colors.getColor(`${this.color()}-base`),\r\n accColorIcon: this.curaApi.theme.colors.getColor(`${iconColorValue}-base`),\r\n accColorIconHover: this.curaApi.theme.colors.getColor(`${iconColorValue}-darker`),\r\n accColorInverted: this.curaApi.theme.colors.getColor('neutral-white'),\r\n accColorHoverInverted: this.curaApi.theme.colors.getColor(`${this.color()}-lighter`),\r\n accColorIconInverted: this.curaApi.theme.colors.getColor('neutral-white'),\r\n accColorIconHoverInverted: this.curaApi.theme.colors.getColor(`${iconColorValue}-lighter`),\r\n };\r\n });\r\n\r\n childConfiguration = computed(() => {\r\n return {\r\n colorMode: this.colorMode(),\r\n iconColor: this.iconColor() || this.color(),\r\n iconSize: this.iconSize(),\r\n labelIcon: this.labelIcon(),\r\n openIcon: this.openIcon(),\r\n closeIcon: this.closeIcon(),\r\n level: this.level(),\r\n };\r\n });\r\n\r\n ngAfterViewInit() {\r\n // Configurar propriedades dos cura-accordion-item\r\n this.setChildrenProperties();\r\n\r\n // Observar mudanças nos cura-accordion-item\r\n this.setupMutationObserver();\r\n }\r\n\r\n ngOnDestroy() {\r\n if (this.mutationObserver) {\r\n this.mutationObserver.disconnect();\r\n }\r\n }\r\n\r\n private setupMutationObserver() {\r\n if (typeof MutationObserver === 'undefined') return;\r\n\r\n this.mutationObserver = new MutationObserver((mutations) => {\r\n for (const mutation of mutations) {\r\n if (mutation.type === 'attributes' && mutation.attributeName === 'opened') {\r\n const target = mutation.target as any;\r\n if ((target as HTMLElement)?.getAttribute('opened') === 'true' && this.behavior() === 'default') {\r\n // Fechar todos os outros itens\r\n this.accordionItems().forEach((item) => {\r\n if (item.elementRef.nativeElement !== target) {\r\n item.opened.set(false);\r\n }\r\n });\r\n }\r\n }\r\n if (mutation.type === 'childList') {\r\n const addedNodes = Array.from(mutation.addedNodes || []);\r\n for (let node of addedNodes) {\r\n if (node.nodeType === Node.ELEMENT_NODE) {\r\n this.setChildProperties(node as HTMLElement);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\r\n const options: MutationObserverInit = {\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n attributeFilter: ['opened'],\r\n };\r\n\r\n this.mutationObserver.observe(this.elementRef.nativeElement, options);\r\n }\r\n\r\n private setChildrenProperties() {\r\n this.accordionItems().forEach((item) => {\r\n this.setChildProperties(item.elementRef.nativeElement);\r\n this.setItemProperties(item);\r\n });\r\n }\r\n\r\n private setChildProperties(element: HTMLElement) {\r\n // Configurar propriedades via atributos para compatibilidade\r\n const config = this.childConfiguration();\r\n element.setAttribute('color-mode', config.colorMode);\r\n element.setAttribute('icon-color', config.iconColor);\r\n element.setAttribute('icon-size', config.iconSize.toString());\r\n if (config.labelIcon) element.setAttribute('label-icon', config.labelIcon);\r\n element.setAttribute('open-icon', config.openIcon);\r\n element.setAttribute('close-icon', config.closeIcon);\r\n element.setAttribute('level', config.level.toString());\r\n }\r\n\r\n private setItemProperties(item: CuraAccordionItemComponent) {\r\n // Configurar propriedades diretamente no componente\r\n const config = this.childConfiguration();\r\n item.colorMode.set(config.colorMode);\r\n item.iconColor.set(config.iconColor);\r\n item.iconSize.set(config.iconSize);\r\n if (config.labelIcon) item.labelIcon.set(config.labelIcon);\r\n item.openIcon.set(config.openIcon);\r\n item.closeIcon.set(config.closeIcon);\r\n item.level.set(config.level);\r\n }\r\n}\r\n","<ng-content></ng-content>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAea,0BAA0B,CAAA;AATvC,IAAA,WAAA,GAAA;AAUS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEtC;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;;AAGzB;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAS,EAAE,oDAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,EAAE,qDAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAS,MAAM,oDAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,IAAI,qDAAC;AAEhC;;;AAGG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,EAAE,qDAAC;AAE9B;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAqB,MAAM,qDAAC;AAE9C;;;AAGG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAiB,CAAC,iDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAU,KAAK,kDAAC;;AAG/B,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAK;YAC/B,MAAM,OAAO,GAA+B,EAAE;AAC9C,YAAA,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;YAChC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;YACjC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAClD,YAAA,OAAO,OAAO;AA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cura-accordion-item.component.ts","../../../projects/site-front-end-lib/cura/accordion/cura-accordion-item/cura-accordion-item.component.html","../../../projects/site-front-end-lib/cura/accordion/cura-accordion/cura-accordion.component.ts","../../../projects/site-front-end-lib/cura/accordion/cura-accordion/cura-accordion.component.html","../../../projects/site-front-end-lib/cura/accordion/rededor-site-front-end-lib-cura-accordion.ts"],"sourcesContent":["import { Component, inject, input, signal, ElementRef, computed } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraHeadingComponent } from '@rededor/site-front-end-lib/cura/texts/cura-heading';\nimport { AccordionColorMode, AccordionLevel } from '../cura-accordion.definitions';\n\n@Component({\n selector: 'cura-accordion-item',\n imports: [CommonModule, CuraIconComponent, CuraHeadingComponent],\n templateUrl: './cura-accordion-item.component.html',\n styleUrls: ['./cura-accordion-item.component.scss'],\n host: {\n '[attr.opened]': 'opened().toString()',\n },\n})\nexport class CuraAccordionItemComponent {\n public elementRef = inject(ElementRef);\n\n /**\n * Text label for accordion item\n */\n label = input<string>('');\n\n /** ***Properties below are inherited from the cura-accordion*** */\n /**\n * Accordion items icons\n */\n iconSize = signal<number>(20);\n labelIcon = signal<string>('');\n openIcon = signal<string>('down');\n closeIcon = signal<string>('up');\n\n /**\n * Color scheme base color\n * (By default, the icon will use the same color of 'color')\n */\n iconColor = signal<string>('');\n\n /**\n * Set the color mode to dark or light\n */\n colorMode = signal<AccordionColorMode>('dark');\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1 to 6 (3 default).\n */\n level = signal<AccordionLevel>(3);\n\n /**\n * Controls if the accordion item is opened\n */\n opened = signal<boolean>(false);\n\n // Computed signal para classes (equivalente ao Stencil)\n containerClasses = computed(() => {\n const classes: { [key: string]: boolean } = {};\n classes['accordion-item'] = true;\n classes['active'] = this.opened();\n classes['inverted'] = this.colorMode() === 'light';\n return classes;\n });\n\n currentIcon = computed(() => {\n return this.opened() ? this.closeIcon() : this.openIcon();\n });\n\n accordionItemClick(event: Event) {\n event.preventDefault();\n this.opened.set(!this.opened());\n\n // Emitir evento customizado para o MutationObserver do parent\n this.elementRef.nativeElement.setAttribute('opened', this.opened().toString());\n }\n}\n","<div [ngClass]=\"containerClasses()\">\n <div class=\"label\" (click)=\"accordionItemClick($event)\">\n <div class=\"label-container\">\n <div class=\"label-content\">\n @if (labelIcon()) {\n <cura-icon [name]=\"labelIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n }\n <cura-heading size=\"small\" [level]=\"level()\" weight=\"bold\" marginBlock=\"0\" color=\"neutral-black\">\n {{ label() }}\n </cura-heading>\n </div>\n <cura-icon [name]=\"currentIcon()\" [size]=\"iconSize()\" color=\"neutral-black\"> </cura-icon>\n </div>\n </div>\n <div class=\"content\">\n <div class=\"content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n","import { Component, inject, input, computed, AfterViewInit, OnDestroy, ElementRef, contentChildren } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { AccordionColorMode, AccordionBehavior, AccordionLevel } from '../cura-accordion.definitions';\nimport { CuraAccordionItemComponent } from '../cura-accordion-item/cura-accordion-item.component';\n\n@Component({\n selector: 'cura-accordion',\n templateUrl: './cura-accordion.component.html',\n styleUrls: ['./cura-accordion.component.scss'],\n host: {\n '[style.--base-spacing]': 'baseSpacing()',\n '[style.--neutral-base]': 'neutralBase()',\n '[style.--font-size]': 'fontSize()',\n '[style.--font-color]': 'fontColor()',\n '[style.--font-family]': 'fontFamily()',\n '[style.--font-weight-regular]': 'weights().regular',\n '[style.--acc-color]': 'accordionColors().accColor',\n '[style.--acc-color-hover]': 'accordionColors().accColorHover',\n '[style.--acc-color-icon]': 'accordionColors().accColorIcon',\n '[style.--acc-color-icon-hover]': 'accordionColors().accColorIconHover',\n '[style.--acc-color-inverted]': 'accordionColors().accColorInverted',\n '[style.--acc-color-hover-inverted]': 'accordionColors().accColorHoverInverted',\n '[style.--acc-color-icon-inverted]': 'accordionColors().accColorIconInverted',\n '[style.--acc-color-icon-hover-inverted]': 'accordionColors().accColorIconHoverInverted',\n },\n})\nexport class CuraAccordionComponent implements AfterViewInit, OnDestroy {\n private curaApi = inject(CuraApiService);\n private elementRef = inject(ElementRef);\n\n /**\n * Color scheme base color\n */\n color = input<string>('primary');\n\n /**\n * Set the color mode to dark or light\n */\n colorMode = input<AccordionColorMode>('dark');\n\n /**\n * Accordion items icons\n */\n iconSize = input<number>(20);\n labelIcon = input<string>('');\n openIcon = input<string>('down');\n closeIcon = input<string>('up');\n\n /**\n * Color scheme base color\n * (By default, the icon will use the same color of 'color')\n */\n iconColor = input<string>('');\n\n /**\n * Accordion behavior when item is clicked\n * (The default will close all items except the current one)\n */\n behavior = input<AccordionBehavior>('default');\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1 to 6 (3 default).\n */\n level = input<AccordionLevel>(3);\n\n accordionItems = contentChildren(CuraAccordionItemComponent);\n\n private mutationObserver?: MutationObserver;\n\n // Computed properties para estilos\n weights = computed(() => {\n return this.curaApi.theme.fonts.getWeights();\n });\n\n baseSpacing = computed(() => {\n return this.curaApi.theme.spacing.getSpacing();\n });\n\n neutralBase = computed(() => {\n return this.curaApi.theme.colors.getColor('neutral-base');\n });\n\n fontSize = computed(() => {\n return this.curaApi.theme.fonts.getSize();\n });\n\n fontColor = computed(() => {\n return this.curaApi.theme.fonts.getColor();\n });\n\n fontFamily = computed(() => {\n return this.curaApi.theme.fonts.getFamily();\n });\n\n accordionColors = computed(() => {\n const iconColorValue = this.iconColor() || this.color();\n return {\n accColor: this.curaApi.theme.colors.getColor('neutral-black'),\n accColorHover: this.curaApi.theme.colors.getColor(`${this.color()}-base`),\n accColorIcon: this.curaApi.theme.colors.getColor(`${iconColorValue}-base`),\n accColorIconHover: this.curaApi.theme.colors.getColor(`${iconColorValue}-darker`),\n accColorInverted: this.curaApi.theme.colors.getColor('neutral-white'),\n accColorHoverInverted: this.curaApi.theme.colors.getColor(`${this.color()}-lighter`),\n accColorIconInverted: this.curaApi.theme.colors.getColor('neutral-white'),\n accColorIconHoverInverted: this.curaApi.theme.colors.getColor(`${iconColorValue}-lighter`),\n };\n });\n\n childConfiguration = computed(() => {\n return {\n colorMode: this.colorMode(),\n iconColor: this.iconColor() || this.color(),\n iconSize: this.iconSize(),\n labelIcon: this.labelIcon(),\n openIcon: this.openIcon(),\n closeIcon: this.closeIcon(),\n level: this.level(),\n };\n });\n\n ngAfterViewInit() {\n // Configurar propriedades dos cura-accordion-item\n this.setChildrenProperties();\n\n // Observar mudanças nos cura-accordion-item\n this.setupMutationObserver();\n }\n\n ngOnDestroy() {\n if (this.mutationObserver) {\n this.mutationObserver.disconnect();\n }\n }\n\n private setupMutationObserver() {\n if (typeof MutationObserver === 'undefined') return;\n\n this.mutationObserver = new MutationObserver((mutations) => {\n for (const mutation of mutations) {\n if (mutation.type === 'attributes' && mutation.attributeName === 'opened') {\n const target = mutation.target as any;\n if ((target as HTMLElement)?.getAttribute('opened') === 'true' && this.behavior() === 'default') {\n // Fechar todos os outros itens\n this.accordionItems().forEach((item) => {\n if (item.elementRef.nativeElement !== target) {\n item.opened.set(false);\n }\n });\n }\n }\n if (mutation.type === 'childList') {\n const addedNodes = Array.from(mutation.addedNodes || []);\n for (let node of addedNodes) {\n if (node.nodeType === Node.ELEMENT_NODE) {\n this.setChildProperties(node as HTMLElement);\n }\n }\n }\n }\n });\n\n const options: MutationObserverInit = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['opened'],\n };\n\n this.mutationObserver.observe(this.elementRef.nativeElement, options);\n }\n\n private setChildrenProperties() {\n this.accordionItems().forEach((item) => {\n this.setChildProperties(item.elementRef.nativeElement);\n this.setItemProperties(item);\n });\n }\n\n private setChildProperties(element: HTMLElement) {\n // Configurar propriedades via atributos para compatibilidade\n const config = this.childConfiguration();\n element.setAttribute('color-mode', config.colorMode);\n element.setAttribute('icon-color', config.iconColor);\n element.setAttribute('icon-size', config.iconSize.toString());\n if (config.labelIcon) element.setAttribute('label-icon', config.labelIcon);\n element.setAttribute('open-icon', config.openIcon);\n element.setAttribute('close-icon', config.closeIcon);\n element.setAttribute('level', config.level.toString());\n }\n\n private setItemProperties(item: CuraAccordionItemComponent) {\n // Configurar propriedades diretamente no componente\n const config = this.childConfiguration();\n item.colorMode.set(config.colorMode);\n item.iconColor.set(config.iconColor);\n item.iconSize.set(config.iconSize);\n if (config.labelIcon) item.labelIcon.set(config.labelIcon);\n item.openIcon.set(config.openIcon);\n item.closeIcon.set(config.closeIcon);\n item.level.set(config.level);\n }\n}\n","<ng-content></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAea,0BAA0B,CAAA;AATvC,IAAA,WAAA,GAAA;AAUS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEtC;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;;AAGzB;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAS,EAAE,oDAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,EAAE,qDAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAS,MAAM,oDAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,IAAI,qDAAC;AAEhC;;;AAGG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAS,EAAE,qDAAC;AAE9B;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAqB,MAAM,qDAAC;AAE9C;;;AAGG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAiB,CAAC,iDAAC;AAEjC;;AAEG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,MAA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AA,yCAAyC,EAAE,6CAA6C;AACzF,qBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,iJAAA,CAAA,EAAA;k8BA0CgC,0BAA0B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElE7D;;AAEG;;;;"}
|
|
@@ -207,10 +207,10 @@ class CuraThemeColorsModule {
|
|
|
207
207
|
const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
|
|
208
208
|
return { color: color ?? 'primary', depth: depth ?? 'base' };
|
|
209
209
|
}
|
|
210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
211
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
211
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, providedIn: 'root' }); }
|
|
212
212
|
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeColorsModule, decorators: [{
|
|
214
214
|
type: Injectable,
|
|
215
215
|
args: [{
|
|
216
216
|
providedIn: 'root',
|
|
@@ -234,10 +234,10 @@ class CuraThemeSpacingModule {
|
|
|
234
234
|
// Fallback para SSR
|
|
235
235
|
return `var(${this.curaSpacing})`;
|
|
236
236
|
}
|
|
237
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
238
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
238
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, providedIn: 'root' }); }
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeSpacingModule, decorators: [{
|
|
241
241
|
type: Injectable,
|
|
242
242
|
args: [{
|
|
243
243
|
providedIn: 'root',
|
|
@@ -287,10 +287,10 @@ class CuraThemeFontsModule {
|
|
|
287
287
|
getColor() {
|
|
288
288
|
return `var(--cura-font-color)`;
|
|
289
289
|
}
|
|
290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
291
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
291
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, providedIn: 'root' }); }
|
|
292
292
|
}
|
|
293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeFontsModule, decorators: [{
|
|
294
294
|
type: Injectable,
|
|
295
295
|
args: [{
|
|
296
296
|
providedIn: 'root',
|
|
@@ -312,10 +312,10 @@ class CuraThemeBreakpointsModule {
|
|
|
312
312
|
}
|
|
313
313
|
return Static.breakpoints;
|
|
314
314
|
}
|
|
315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
316
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
316
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, providedIn: 'root' }); }
|
|
317
317
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeBreakpointsModule, decorators: [{
|
|
319
319
|
type: Injectable,
|
|
320
320
|
args: [{
|
|
321
321
|
providedIn: 'root',
|
|
@@ -420,10 +420,10 @@ class CuraThemeModule {
|
|
|
420
420
|
this.load(customTag);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
424
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
424
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, providedIn: 'root' }); }
|
|
425
425
|
}
|
|
426
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraThemeModule, decorators: [{
|
|
427
427
|
type: Injectable,
|
|
428
428
|
args: [{
|
|
429
429
|
providedIn: 'root',
|
|
@@ -482,14 +482,14 @@ class CuraApiService {
|
|
|
482
482
|
if (!styleElement) {
|
|
483
483
|
styleElement = this.document.createElement('style');
|
|
484
484
|
styleElement.id = styleId;
|
|
485
|
-
styleElement.textContent = `
|
|
486
|
-
.cura-body-scroll-lock {
|
|
487
|
-
overflow: hidden;
|
|
488
|
-
position: fixed;
|
|
489
|
-
left: 0;
|
|
490
|
-
right: 0;
|
|
491
|
-
top: 0;
|
|
492
|
-
}
|
|
485
|
+
styleElement.textContent = `
|
|
486
|
+
.cura-body-scroll-lock {
|
|
487
|
+
overflow: hidden;
|
|
488
|
+
position: fixed;
|
|
489
|
+
left: 0;
|
|
490
|
+
right: 0;
|
|
491
|
+
top: 0;
|
|
492
|
+
}
|
|
493
493
|
`;
|
|
494
494
|
this.document.head.appendChild(styleElement);
|
|
495
495
|
}
|
|
@@ -517,10 +517,10 @@ class CuraApiService {
|
|
|
517
517
|
body.classList.remove('cura-body-scroll-lock');
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
521
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
520
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
521
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, providedIn: 'root' }); }
|
|
522
522
|
}
|
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraApiService, decorators: [{
|
|
524
524
|
type: Injectable,
|
|
525
525
|
args: [{
|
|
526
526
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-api.mjs","sources":["../../../projects/site-front-end-lib/cura/api/theme-presets/theme-default.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-presets.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/static.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-colors.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-spacing.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-fonts.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-breakpoints.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme.module.ts","../../../projects/site-front-end-lib/cura/api/CuraConfig.ts","../../../projects/site-front-end-lib/cura/api/cura-api.service.ts","../../../projects/site-front-end-lib/cura/api/cura-api.types.ts","../../../projects/site-front-end-lib/cura/api/rededor-site-front-end-lib-cura-api.ts"],"sourcesContent":["/**\r\n * Cura Default Theme\r\n */\r\nexport const ThemeDefault = {\r\n /* Colors */\r\n color: {\r\n primary: {\r\n '100': '113,197,232',\r\n '300': '68,142,205',\r\n '500': '0,61,165',\r\n '700': '0,48,117',\r\n '900': '0,40,85',\r\n },\r\n secondary: {\r\n '100': '245,236,227',\r\n '300': '221,192,162',\r\n '500': '204,160,116',\r\n '700': '136,107,77',\r\n '900': '41,32,23',\r\n },\r\n accent: {\r\n '100': '255,194,123',\r\n '300': '255,168,74',\r\n '500': '255,130,0',\r\n '700': '215,114,10',\r\n '900': '155,90,26',\r\n },\r\n },\r\n /* Spacing */\r\n spacing: {\r\n base: 4,\r\n },\r\n /* Fonts */\r\n font: {\r\n size: '14px',\r\n color: '#4A4A4A',\r\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n weights: {\r\n thin: 100,\r\n light: 300,\r\n regular: 400,\r\n medium: 500,\r\n bold: 700,\r\n black: 900,\r\n },\r\n },\r\n};\r\n","import { ThemeDefault } from './theme-default';\r\n\r\nexport const ThemePresets: { [key: string]: any } = {\r\n default: ThemeDefault,\r\n // 'maternidade': ThemeMaternity,\r\n // 'oncologia': ThemeOncology,\r\n // 'richet': ThemeRichet,\r\n // 'legacyDefault': ThemeLegacyDefault\r\n};\r\n","/**\r\n * Static theme data\r\n */\r\nexport const Static = {\r\n /* Colors */\r\n color: {\r\n success: {\r\n '100': '223,246,233',\r\n '300': '148,225,181',\r\n '500': '95,210,144',\r\n '700': '49,115,77',\r\n '900': '19,42,29',\r\n },\r\n info: {\r\n '100': '207,226,255',\r\n '300': '149,191,255',\r\n '500': '110,168,255',\r\n '700': '66,100,153',\r\n '900': '37,56,85',\r\n },\r\n error: {\r\n '100': '251,221,221',\r\n '300': '242,143,143',\r\n '500': '235,87,87',\r\n '700': '157,58,58',\r\n '900': '47,17,17',\r\n },\r\n warning: {\r\n '100': '252,250,196',\r\n '300': '248,244,137',\r\n '500': '245,239,78',\r\n '700': '108,106,32',\r\n '900': '49,48,16',\r\n },\r\n neutral: {\r\n '0': '255,255,255',\r\n '100': '246,246,246',\r\n '200': '233,233,233',\r\n '300': '226,226,226',\r\n '400': '212,212,212',\r\n '500': '183,183,183',\r\n '600': '146,146,146',\r\n '700': '110,110,110',\r\n '800': '74,74,74',\r\n '900': '38,38,38',\r\n },\r\n },\r\n breakpoints: {\r\n xsmall: {\r\n min: 0,\r\n max: 480,\r\n },\r\n small: {\r\n min: 481,\r\n max: 768,\r\n },\r\n medium: {\r\n min: 769,\r\n max: 992,\r\n },\r\n large: {\r\n min: 993,\r\n max: 1920,\r\n },\r\n xlarge: {\r\n min: 1921,\r\n max: 4096,\r\n },\r\n },\r\n};\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { Static } from '../theme-presets/static';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeColorsModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private readonly neutralDepthAlias: { [key: string]: string } = {\r\n purewhite: '0',\r\n white: '100',\r\n pale: '200',\r\n lighter: '300',\r\n light: '400',\r\n base: '500',\r\n medium: '600',\r\n dark: '700',\r\n darker: '800',\r\n black: '900',\r\n };\r\n\r\n private readonly colorDepthAlias: { [key: string]: string } = {\r\n lighter: '100',\r\n light: '300',\r\n base: '500',\r\n dark: '700',\r\n darker: '900',\r\n };\r\n\r\n /**\r\n * Get theme color.\r\n * @param colorWithDepth string Ex.: primary-light\r\n * @param opacity number Opacity value (0-1)\r\n * @returns RGBA value.\r\n */\r\n getColor(colorWithDepth: string = 'primary-base', opacity = 1): string {\r\n const { color, depth } = this.splitColorDepth(colorWithDepth);\r\n const staticColor = this.getStatic(color, depth, opacity);\r\n if (staticColor) return staticColor;\r\n return this.getDynamic(color, depth, opacity);\r\n }\r\n\r\n /**\r\n * Internal: Look for static color by name and depth.\r\n * @param color Color name.\r\n * @param depth Depth number or alias.\r\n * @param opacity Opacity value.\r\n * @returns RGBA value.\r\n */\r\n private getStatic(color: string, depth: string, opacity = 1): string | null {\r\n const colorObj = (Static.color as any)[color];\r\n if (!colorObj) return null;\r\n\r\n const alias = color === 'neutral' ? this.neutralDepthAlias[depth] : this.colorDepthAlias[depth];\r\n const colorValue = colorObj[alias] || colorObj[depth];\r\n\r\n return colorValue ? `rgba(${colorValue}, ${opacity})` : null;\r\n }\r\n\r\n /**\r\n * Internal: Look for theme dynamic colors.\r\n * @param color Color name.\r\n * @param depth Color depth.\r\n * @param opacity Opacity value.\r\n * @returns RGBA value.\r\n */\r\n private getDynamic(color: string, depth: string, opacity: number): string {\r\n const themeVar = this.colorDepthAlias[depth] ? `--cura-color-${color}-${this.colorDepthAlias[depth]}` : `--cura-color-${color}-${depth}`;\r\n\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.documentElement).getPropertyValue(themeVar);\r\n return computedValue ? `rgba(var(${themeVar}), ${opacity})` : `rgba(var(--cura-color-primary-500), ${opacity})`;\r\n }\r\n\r\n // Fallback para SSR\r\n return `rgba(var(${themeVar}), ${opacity})`;\r\n }\r\n\r\n /**\r\n * Internal: Split color strings\r\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\r\n * @returns Object { color: string, depth: string }.\r\n */\r\n private splitColorDepth(colorWithDepth: string): { color: string; depth: string } {\r\n const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);\r\n return { color: color ?? 'primary', depth: depth ?? 'base' };\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeSpacingModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private readonly curaSpacing = '--cura-spacing-base';\r\n /**\r\n * Returns the base spacing var defined in the theme\r\n * @returns CSS variable string or fallback value\r\n */\r\n getSpacing(): string {\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(this.curaSpacing);\r\n return computedValue ? `var(${this.curaSpacing})` : '4';\r\n }\r\n\r\n // Fallback para SSR\r\n return `var(${this.curaSpacing})`;\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { ThemeDefault } from '../theme-presets/theme-default';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeFontsModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n /**\r\n * Get the CSS variable related to the font family defined by the theme.\r\n * @param type 'body' | 'heading' | 'display'\r\n * @returns Related css variable as a string.\r\n */\r\n getFamily(type: string = 'body'): string {\r\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\r\n\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(curaFontFamilyCSSVar);\r\n return computedValue ? `var(${curaFontFamilyCSSVar})` : 'var(--cura-font-body)';\r\n }\r\n\r\n // Fallback para SSR\r\n return `var(${curaFontFamilyCSSVar})`;\r\n }\r\n\r\n /**\r\n * Get the CSS variables related to font weights defined by the theme.\r\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\r\n */\r\n getWeights(): any {\r\n const weights: { [key: string]: string } = {};\r\n Object.keys(ThemeDefault.font.weights).forEach((key) => {\r\n weights[key] = `var(--cura-font-weights-${key})`;\r\n });\r\n return weights;\r\n }\r\n\r\n /**\r\n * Get the CSS variable related to the font size base defined by the theme.\r\n * @returns Related CSS variable as a string.\r\n */\r\n getSize(): string {\r\n return `var(--cura-font-size)`;\r\n }\r\n\r\n /**\r\n * Get CSS variable related to the font color defined by the theme.\r\n * @returns Related CSS variable as a string.\r\n */\r\n getColor(): string {\r\n return `var(--cura-font-color)`;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Static } from '../theme-presets/static';\r\nimport { BreakpointSize, BreakpointPosition } from '../cura-api.types';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeBreakpointsModule {\r\n /**\r\n * Returns breakpoint values defined in the theme\r\n * @param size Breakpoint size\r\n * @param position Min or max position\r\n * @returns Breakpoint value or all breakpoints\r\n */\r\n get(size: BreakpointSize | null = null, position: BreakpointPosition | null = null): any {\r\n if (size) {\r\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\r\n if (breakpoint || breakpoint === 0) return breakpoint;\r\n }\r\n return Static.breakpoints;\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { ThemePresets } from '../theme-presets/theme-presets';\r\nimport { CuraCustomTheme } from '../cura-api.types';\r\nimport { CuraThemeColorsModule } from './cura-theme-colors.module';\r\nimport { CuraThemeSpacingModule } from './cura-theme-spacing.module';\r\nimport { CuraThemeFontsModule } from './cura-theme-fonts.module';\r\nimport { CuraThemeBreakpointsModule } from './cura-theme-breakpoints.module';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeModule {\r\n public colors: CuraThemeColorsModule = inject(CuraThemeColorsModule);\r\n public spacing: CuraThemeSpacingModule = inject(CuraThemeSpacingModule);\r\n public fonts: CuraThemeFontsModule = inject(CuraThemeFontsModule);\r\n public breakpoints: CuraThemeBreakpointsModule = inject(CuraThemeBreakpointsModule);\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private rootElement: HTMLElement | null = null;\r\n private readonly prefix = '--cura';\r\n private groupObject: { [key: string]: any } = {};\r\n\r\n constructor() {\r\n if (this.document?.defaultView) {\r\n this.rootElement = this.document.defaultView.document.documentElement;\r\n }\r\n }\r\n\r\n /**\r\n * Load a theme.\r\n * @param theme Theme tag.\r\n */\r\n load(theme = 'default'): void {\r\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\r\n this.buildCssVars(this.prefix, preset);\r\n }\r\n\r\n /**\r\n * Load variables for SSR\r\n * @param theme Theme tag\r\n * @returns Object with CSS variables\r\n */\r\n loadVarsSSR(theme = 'default'): { [key: string]: any } {\r\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\r\n this.buildCssVars(this.prefix, preset, true);\r\n return this.groupObject;\r\n }\r\n\r\n /**\r\n * Define a custom theme\r\n * @param customTheme Custom theme object definition\r\n */\r\n setCustom(customTheme: CuraCustomTheme): void {\r\n const customTag = customTheme.name;\r\n if (customTag in ThemePresets) {\r\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\r\n this.load('default');\r\n } else {\r\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets['default'];\r\n const newTheme = { ...JSON.parse(JSON.stringify(preset)) };\r\n this.mergeObject(customTheme.definitions, newTheme);\r\n ThemePresets[customTag] = newTheme;\r\n this.load(customTag);\r\n }\r\n }\r\n\r\n /* Private methods */\r\n\r\n /**\r\n * Set css var based on object structure\r\n */\r\n private setCssVar = (prop: [string, any], path: string): void => {\r\n if (!this.rootElement) return;\r\n const varName = this.groupPath(path, prop[0]);\r\n this.rootElement.style.setProperty(varName, prop[1]);\r\n };\r\n\r\n private groupPath = (a: string, b: string): string => `${a}-${b}`;\r\n\r\n private isObject = (val: any): boolean => {\r\n return val && typeof val === 'object' && !Array.isArray(val);\r\n };\r\n\r\n /**\r\n * Deep merge objects\r\n */\r\n private mergeObject = (from: any, to: any): void => {\r\n const entries = Object.entries(from);\r\n for (let e of entries) {\r\n if (this.isObject(e[1])) {\r\n this.mergeObject(e[1], to[e[0]]);\r\n } else {\r\n to[e[0]] = e[1];\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Set css vars from preset object\r\n */\r\n private buildCssVars = (path: string, obj: any, isGroup = false): void => {\r\n const entries = Object.entries(obj);\r\n for (let e of entries) {\r\n if (this.isObject(e[1])) {\r\n this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);\r\n } else {\r\n if (isGroup) {\r\n const varName = this.groupPath(path, e[0]);\r\n this.groupObject[varName] = e[1];\r\n } else {\r\n this.setCssVar(e, path);\r\n }\r\n }\r\n }\r\n };\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { CuraConfig } from './cura-api.types';\r\n\r\n// Configura o cura com informações especificas de cada projeto.\r\nexport const CURA_CONFIG = new InjectionToken<CuraConfig>('curaConfig');\r\n","import { Injectable, WritableSignal, inject, signal } from '@angular/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.types';\r\nimport { CuraThemeModule } from './modules/cura-theme.module';\r\nimport { CURA_CONFIG } from './CuraConfig';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraApiService {\r\n private curaConfig: CuraConfig = inject(CURA_CONFIG);\r\n private document: Document = inject(DOCUMENT);\r\n private themeModule: CuraThemeModule = new CuraThemeModule();\r\n\r\n theme: APIThemeFunctions;\r\n localAssetsPath: WritableSignal<string>;\r\n\r\n constructor() {\r\n this.localAssetsPath = signal(this.curaConfig?.localAssetsPath ? this.curaConfig?.localAssetsPath : `/assets`);\r\n\r\n this.theme = {\r\n load: (themeTag: string) => this.themeModule.load(themeTag),\r\n setCustom: (customThemeDefinitions: CuraCustomTheme) => this.themeModule.setCustom(customThemeDefinitions),\r\n colors: {\r\n getColor: (colorWithDepth?: string, opacity?: number) => this.themeModule.colors.getColor(colorWithDepth, opacity),\r\n },\r\n fonts: {\r\n getFamily: (type?: string) => this.themeModule.fonts.getFamily(type),\r\n getWeights: () => this.themeModule.fonts.getWeights(),\r\n getSize: () => this.themeModule.fonts.getSize(),\r\n getColor: () => this.themeModule.fonts.getColor(),\r\n },\r\n spacing: {\r\n getSpacing: () => this.themeModule.spacing.getSpacing(),\r\n },\r\n breakpoints: {\r\n get: (size?: string, position?: string) => this.themeModule.breakpoints.get(size as any, position as any),\r\n },\r\n };\r\n\r\n this.addGlobalClasses();\r\n\r\n if (this.curaConfig && this.curaConfig.customTheme) {\r\n this.theme.setCustom(this.curaConfig.customTheme);\r\n } else {\r\n const theme = this.curaConfig && this.curaConfig.theme ? this.curaConfig.theme : 'default';\r\n this.theme.load(theme);\r\n }\r\n\r\n // Chama callback onReady se fornecido\r\n if (this.curaConfig && this.curaConfig.onReady) {\r\n this.curaConfig.onReady(this);\r\n }\r\n }\r\n\r\n /**\r\n * Adiciona classes CSS globais necessárias\r\n */\r\n private addGlobalClasses(): void {\r\n if (!this.document) return;\r\n\r\n const styleId = 'cura_global_classes';\r\n let styleElement = this.document.head.querySelector(`#${styleId}`);\r\n\r\n if (!styleElement) {\r\n styleElement = this.document.createElement('style');\r\n styleElement.id = styleId;\r\n styleElement.textContent = `\r\n .cura-body-scroll-lock {\r\n overflow: hidden;\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n }\r\n `;\r\n this.document.head.appendChild(styleElement);\r\n }\r\n }\r\n\r\n /**\r\n * Método para obter variáveis CSS para SSR\r\n * @param theme Nome do tema\r\n * @returns Objeto com variáveis CSS\r\n */\r\n getSSRVars(theme = 'default'): { [key: string]: any } {\r\n return this.themeModule.loadVarsSSR(theme);\r\n }\r\n\r\n /**\r\n * Método utilitário para adicionar/remover classe de scroll lock\r\n * @param lock Se deve bloquear o scroll\r\n */\r\n toggleBodyScrollLock(lock: boolean): void {\r\n if (!this.document) return;\r\n\r\n const body = this.document.body;\r\n if (lock) {\r\n body.classList.add('cura-body-scroll-lock');\r\n } else {\r\n body.classList.remove('cura-body-scroll-lock');\r\n }\r\n }\r\n}\r\n","export interface CuraCustomThemeColorDepth {\r\n base?: string;\r\n depth0?: string;\r\n depth20?: string;\r\n depth40?: string;\r\n depth80?: string;\r\n depth100?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeColors {\r\n primary?: CuraCustomThemeColorDepth;\r\n secondary?: CuraCustomThemeColorDepth;\r\n accent?: CuraCustomThemeColorDepth;\r\n}\r\n\r\nexport interface CuraCustomThemeSpacing {\r\n base?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFontFamily {\r\n title?: string;\r\n body?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFontSize {\r\n base?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFont {\r\n family?: CuraCustomThemeFontFamily;\r\n size?: CuraCustomThemeFontSize;\r\n}\r\n\r\nexport interface CuraCustomThemeDefinitions {\r\n colors?: CuraCustomThemeColors;\r\n spacing?: CuraCustomThemeSpacing;\r\n font?: CuraCustomThemeFont;\r\n}\r\n\r\nexport interface CuraCustomTheme {\r\n name: string;\r\n definitions: CuraCustomThemeDefinitions;\r\n fromPreset?: string;\r\n}\r\n\r\nexport interface CuraConfig {\r\n localAssetsPath?: string;\r\n theme?: string;\r\n customTheme?: CuraCustomTheme;\r\n onReady?(api?: any): any;\r\n}\r\n\r\nexport enum InterfaceModes {\r\n LIGHT = 'light',\r\n DARK = 'dark',\r\n}\r\n\r\nexport interface APIThemeFunctions {\r\n load(themeTag: string): unknown;\r\n setCustom(customThemeDefinitions: CuraCustomTheme): unknown;\r\n colors: {\r\n getColor(colorWithDepth?: string, opacity?: number): string;\r\n };\r\n fonts: {\r\n getFamily(type?: string): string;\r\n getWeights(): any;\r\n getSize(): string;\r\n getColor(): string;\r\n };\r\n spacing: {\r\n getSpacing(): string;\r\n };\r\n breakpoints: {\r\n get(size?: string, position?: string): any;\r\n };\r\n}\r\n\r\nexport type BreakpointSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';\r\nexport type BreakpointPosition = 'min' | 'max';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;AAAA;;AAEG;AACI,MAAM,YAAY,GAAG;;AAE1B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;AACP,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AA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,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA,CAAA;;4FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;IC4CW;AAAZ,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;ACpD1B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-api.mjs","sources":["../../../projects/site-front-end-lib/cura/api/theme-presets/theme-default.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-presets.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/static.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-colors.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-spacing.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-fonts.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-breakpoints.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme.module.ts","../../../projects/site-front-end-lib/cura/api/CuraConfig.ts","../../../projects/site-front-end-lib/cura/api/cura-api.service.ts","../../../projects/site-front-end-lib/cura/api/cura-api.types.ts","../../../projects/site-front-end-lib/cura/api/rededor-site-front-end-lib-cura-api.ts"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85',\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23',\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26',\n },\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900,\n },\n },\n};\n","import { ThemeDefault } from './theme-default';\n\nexport const ThemePresets: { [key: string]: any } = {\n default: ThemeDefault,\n // 'maternidade': ThemeMaternity,\n // 'oncologia': ThemeOncology,\n // 'richet': ThemeRichet,\n // 'legacyDefault': ThemeLegacyDefault\n};\n","/**\n * Static theme data\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480,\n },\n small: {\n min: 481,\n max: 768,\n },\n medium: {\n min: 769,\n max: 992,\n },\n large: {\n min: 993,\n max: 1920,\n },\n xlarge: {\n min: 1921,\n max: 4096,\n },\n },\n};\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { Static } from '../theme-presets/static';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeColorsModule {\n private document: Document = inject(DOCUMENT);\n\n private readonly neutralDepthAlias: { [key: string]: string } = {\n purewhite: '0',\n white: '100',\n pale: '200',\n lighter: '300',\n light: '400',\n base: '500',\n medium: '600',\n dark: '700',\n darker: '800',\n black: '900',\n };\n\n private readonly colorDepthAlias: { [key: string]: string } = {\n lighter: '100',\n light: '300',\n base: '500',\n dark: '700',\n darker: '900',\n };\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @param opacity number Opacity value (0-1)\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = 'primary-base', opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth, opacity);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @param opacity Opacity value.\n * @returns RGBA value.\n */\n private getStatic(color: string, depth: string, opacity = 1): string | null {\n const colorObj = (Static.color as any)[color];\n if (!colorObj) return null;\n\n const alias = color === 'neutral' ? this.neutralDepthAlias[depth] : this.colorDepthAlias[depth];\n const colorValue = colorObj[alias] || colorObj[depth];\n\n return colorValue ? `rgba(${colorValue}, ${opacity})` : null;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @param opacity Opacity value.\n * @returns RGBA value.\n */\n private getDynamic(color: string, depth: string, opacity: number): string {\n const themeVar = this.colorDepthAlias[depth] ? `--cura-color-${color}-${this.colorDepthAlias[depth]}` : `--cura-color-${color}-${depth}`;\n\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.documentElement).getPropertyValue(themeVar);\n return computedValue ? `rgba(var(${themeVar}), ${opacity})` : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n // Fallback para SSR\n return `rgba(var(${themeVar}), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string; depth: string } {\n const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? 'primary', depth: depth ?? 'base' };\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeSpacingModule {\n private document: Document = inject(DOCUMENT);\n\n private readonly curaSpacing = '--cura-spacing-base';\n /**\n * Returns the base spacing var defined in the theme\n * @returns CSS variable string or fallback value\n */\n getSpacing(): string {\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(this.curaSpacing);\n return computedValue ? `var(${this.curaSpacing})` : '4';\n }\n\n // Fallback para SSR\n return `var(${this.curaSpacing})`;\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { ThemeDefault } from '../theme-presets/theme-default';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeFontsModule {\n private document: Document = inject(DOCUMENT);\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = 'body'): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(curaFontFamilyCSSVar);\n return computedValue ? `var(${curaFontFamilyCSSVar})` : 'var(--cura-font-body)';\n }\n\n // Fallback para SSR\n return `var(${curaFontFamilyCSSVar})`;\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights: { [key: string]: string } = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => {\n weights[key] = `var(--cura-font-weights-${key})`;\n });\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize(): string {\n return `var(--cura-font-size)`;\n }\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor(): string {\n return `var(--cura-font-color)`;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Static } from '../theme-presets/static';\nimport { BreakpointSize, BreakpointPosition } from '../cura-api.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeBreakpointsModule {\n /**\n * Returns breakpoint values defined in the theme\n * @param size Breakpoint size\n * @param position Min or max position\n * @returns Breakpoint value or all breakpoints\n */\n get(size: BreakpointSize | null = null, position: BreakpointPosition | null = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint || breakpoint === 0) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { ThemePresets } from '../theme-presets/theme-presets';\nimport { CuraCustomTheme } from '../cura-api.types';\nimport { CuraThemeColorsModule } from './cura-theme-colors.module';\nimport { CuraThemeSpacingModule } from './cura-theme-spacing.module';\nimport { CuraThemeFontsModule } from './cura-theme-fonts.module';\nimport { CuraThemeBreakpointsModule } from './cura-theme-breakpoints.module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeModule {\n public colors: CuraThemeColorsModule = inject(CuraThemeColorsModule);\n public spacing: CuraThemeSpacingModule = inject(CuraThemeSpacingModule);\n public fonts: CuraThemeFontsModule = inject(CuraThemeFontsModule);\n public breakpoints: CuraThemeBreakpointsModule = inject(CuraThemeBreakpointsModule);\n private document: Document = inject(DOCUMENT);\n\n private rootElement: HTMLElement | null = null;\n private readonly prefix = '--cura';\n private groupObject: { [key: string]: any } = {};\n\n constructor() {\n if (this.document?.defaultView) {\n this.rootElement = this.document.defaultView.document.documentElement;\n }\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default'): void {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\n this.buildCssVars(this.prefix, preset);\n }\n\n /**\n * Load variables for SSR\n * @param theme Theme tag\n * @returns Object with CSS variables\n */\n loadVarsSSR(theme = 'default'): { [key: string]: any } {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\n this.buildCssVars(this.prefix, preset, true);\n return this.groupObject;\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme): void {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets['default'];\n const newTheme = { ...JSON.parse(JSON.stringify(preset)) };\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private methods */\n\n /**\n * Set css var based on object structure\n */\n private setCssVar = (prop: [string, any], path: string): void => {\n if (!this.rootElement) return;\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n };\n\n private groupPath = (a: string, b: string): string => `${a}-${b}`;\n\n private isObject = (val: any): boolean => {\n return val && typeof val === 'object' && !Array.isArray(val);\n };\n\n /**\n * Deep merge objects\n */\n private mergeObject = (from: any, to: any): void => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n };\n\n /**\n * Set css vars from preset object\n */\n private buildCssVars = (path: string, obj: any, isGroup = false): void => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);\n } else {\n if (isGroup) {\n const varName = this.groupPath(path, e[0]);\n this.groupObject[varName] = e[1];\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n };\n}\n","import { InjectionToken } from '@angular/core';\nimport { CuraConfig } from './cura-api.types';\n\n// Configura o cura com informações especificas de cada projeto.\nexport const CURA_CONFIG = new InjectionToken<CuraConfig>('curaConfig');\n","import { Injectable, WritableSignal, inject, signal } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.types';\nimport { CuraThemeModule } from './modules/cura-theme.module';\nimport { CURA_CONFIG } from './CuraConfig';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraApiService {\n private curaConfig: CuraConfig = inject(CURA_CONFIG);\n private document: Document = inject(DOCUMENT);\n private themeModule: CuraThemeModule = new CuraThemeModule();\n\n theme: APIThemeFunctions;\n localAssetsPath: WritableSignal<string>;\n\n constructor() {\n this.localAssetsPath = signal(this.curaConfig?.localAssetsPath ? this.curaConfig?.localAssetsPath : `/assets`);\n\n this.theme = {\n load: (themeTag: string) => this.themeModule.load(themeTag),\n setCustom: (customThemeDefinitions: CuraCustomTheme) => this.themeModule.setCustom(customThemeDefinitions),\n colors: {\n getColor: (colorWithDepth?: string, opacity?: number) => this.themeModule.colors.getColor(colorWithDepth, opacity),\n },\n fonts: {\n getFamily: (type?: string) => this.themeModule.fonts.getFamily(type),\n getWeights: () => this.themeModule.fonts.getWeights(),\n getSize: () => this.themeModule.fonts.getSize(),\n getColor: () => this.themeModule.fonts.getColor(),\n },\n spacing: {\n getSpacing: () => this.themeModule.spacing.getSpacing(),\n },\n breakpoints: {\n get: (size?: string, position?: string) => this.themeModule.breakpoints.get(size as any, position as any),\n },\n };\n\n this.addGlobalClasses();\n\n if (this.curaConfig && this.curaConfig.customTheme) {\n this.theme.setCustom(this.curaConfig.customTheme);\n } else {\n const theme = this.curaConfig && this.curaConfig.theme ? this.curaConfig.theme : 'default';\n this.theme.load(theme);\n }\n\n // Chama callback onReady se fornecido\n if (this.curaConfig && this.curaConfig.onReady) {\n this.curaConfig.onReady(this);\n }\n }\n\n /**\n * Adiciona classes CSS globais necessárias\n */\n private addGlobalClasses(): void {\n if (!this.document) return;\n\n const styleId = 'cura_global_classes';\n let styleElement = this.document.head.querySelector(`#${styleId}`);\n\n if (!styleElement) {\n styleElement = this.document.createElement('style');\n styleElement.id = styleId;\n styleElement.textContent = `\n .cura-body-scroll-lock {\n overflow: hidden;\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n }\n `;\n this.document.head.appendChild(styleElement);\n }\n }\n\n /**\n * Método para obter variáveis CSS para SSR\n * @param theme Nome do tema\n * @returns Objeto com variáveis CSS\n */\n getSSRVars(theme = 'default'): { [key: string]: any } {\n return this.themeModule.loadVarsSSR(theme);\n }\n\n /**\n * Método utilitário para adicionar/remover classe de scroll lock\n * @param lock Se deve bloquear o scroll\n */\n toggleBodyScrollLock(lock: boolean): void {\n if (!this.document) return;\n\n const body = this.document.body;\n if (lock) {\n body.classList.add('cura-body-scroll-lock');\n } else {\n body.classList.remove('cura-body-scroll-lock');\n }\n }\n}\n","export interface CuraCustomThemeColorDepth {\n base?: string;\n depth0?: string;\n depth20?: string;\n depth40?: string;\n depth80?: string;\n depth100?: string;\n}\n\nexport interface CuraCustomThemeColors {\n primary?: CuraCustomThemeColorDepth;\n secondary?: CuraCustomThemeColorDepth;\n accent?: CuraCustomThemeColorDepth;\n}\n\nexport interface CuraCustomThemeSpacing {\n base?: string;\n}\n\nexport interface CuraCustomThemeFontFamily {\n title?: string;\n body?: string;\n}\n\nexport interface CuraCustomThemeFontSize {\n base?: string;\n}\n\nexport interface CuraCustomThemeFont {\n family?: CuraCustomThemeFontFamily;\n size?: CuraCustomThemeFontSize;\n}\n\nexport interface CuraCustomThemeDefinitions {\n colors?: CuraCustomThemeColors;\n spacing?: CuraCustomThemeSpacing;\n font?: CuraCustomThemeFont;\n}\n\nexport interface CuraCustomTheme {\n name: string;\n definitions: CuraCustomThemeDefinitions;\n fromPreset?: string;\n}\n\nexport interface CuraConfig {\n localAssetsPath?: string;\n theme?: string;\n customTheme?: CuraCustomTheme;\n onReady?(api?: any): any;\n}\n\nexport enum InterfaceModes {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nexport interface APIThemeFunctions {\n load(themeTag: string): unknown;\n setCustom(customThemeDefinitions: CuraCustomTheme): unknown;\n colors: {\n getColor(colorWithDepth?: string, opacity?: number): string;\n };\n fonts: {\n getFamily(type?: string): string;\n getWeights(): any;\n getSize(): string;\n getColor(): string;\n };\n spacing: {\n getSpacing(): string;\n };\n breakpoints: {\n get(size?: string, position?: string): any;\n };\n}\n\nexport type BreakpointSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';\nexport type BreakpointPosition = 'min' | 'max';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;AAAA;;AAEG;AACI,MAAM,YAAY,GAAG;;AAE1B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;AACP,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AAClB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AACnB,SAAA;AACF,KAAA;;AAED,IAAA,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,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;IC4CW;AAAZ,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;ACpD1B;;AAEG;;;;"}
|
|
@@ -71,15 +71,15 @@ class CuraBadgeCounterComponent {
|
|
|
71
71
|
return this.colorStyles().labelColor;
|
|
72
72
|
}, ...(ngDevMode ? [{ debugName: "labelColor" }] : []));
|
|
73
73
|
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraBadgeCounterComponent, isStandalone: true, selector: "cura-badge-counter", inputs: { number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--base-spacing": "baseSpacing()", "style.--background-color": "colorStyles().backgroundColor" } }, ngImport: i0, template: "@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\n {{ displayText() }}\n </cura-label>\n </div>\n}\n", styles: [":host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent!important}:host .container.outline:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}\n"], dependencies: [{ kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeCounterComponent, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
79
|
args: [{ selector: 'cura-badge-counter', imports: [CuraLabelComponent], host: {
|
|
80
80
|
'[style.--base-spacing]': 'baseSpacing()',
|
|
81
81
|
'[style.--background-color]': 'colorStyles().backgroundColor',
|
|
82
|
-
}, template: "@if (shouldShow()) {\
|
|
82
|
+
}, template: "@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\n {{ displayText() }}\n </cura-label>\n </div>\n}\n", styles: [":host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent!important}:host .container.outline:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}\n"] }]
|
|
83
83
|
}], propDecorators: { number: [{ type: i0.Input, args: [{ isSignal: true, alias: "number", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/rededor-site-front-end-lib-cura-badges-cura-badge-counter.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/rededor-site-front-end-lib-cura-badges-cura-badge-counter.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { BadgeType } from '@rededor/site-front-end-lib/cura/badges';\n\n@Component({\n selector: 'cura-badge-counter',\n imports: [CuraLabelComponent],\n templateUrl: './cura-badge-counter.component.html',\n styleUrls: ['./cura-badge-counter.component.scss'],\n host: {\n '[style.--base-spacing]': 'baseSpacing()',\n '[style.--background-color]': 'colorStyles().backgroundColor',\n },\n})\nexport class CuraBadgeCounterComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Número a ser representado no badge.\n * Apresentará 99+ para números acima desse valor.\n */\n number = input<number | null>(null);\n\n /**\n * Cor fundamental do design system sem profundidade.\n * Ex.: primary (padrão)\n */\n color = input<string>('primary');\n\n /**\n * Define o estado do badge como desabilitado ou habilitado.\n */\n disabled = input<boolean>(false);\n\n /**\n * Define o estilo visual entre solid (default), outline ou transparent.\n */\n type = input<BadgeType>('solid');\n\n // Computed properties para cores e estilos\n baseSpacing = computed(() => {\n return this.curaApi.theme.spacing.getSpacing();\n });\n\n colorStyles = computed(() => {\n const color = this.color().toLowerCase();\n const type = this.type();\n const disabled = this.disabled();\n\n let bgColorName: string;\n let labelColor: string;\n\n // type outline and transparent\n if (type === 'outline' || type === 'transparent') {\n bgColorName = disabled ? 'neutral-medium' : `${color}-dark`;\n labelColor = bgColorName;\n // type solid - default\n } else {\n bgColorName = color === 'neutral' || disabled ? 'neutral-pale' : `${color}-lighter`;\n labelColor = disabled ? 'neutral-medium' : `${color}-dark`;\n }\n\n return {\n backgroundColor: this.curaApi.theme.colors.getColor(bgColorName),\n labelColor,\n };\n });\n\n private displayNumber = computed(() => {\n const num = this.number();\n if (num === null || (num && num <= 0)) return '';\n return num >= 100 ? '99+' : num.toString();\n });\n\n containerClasses = computed(() => {\n const classes = [];\n classes.push('container');\n classes.push(this.type().toLowerCase());\n return classes.join(' ');\n });\n\n shouldShow = computed(() => {\n return this.displayNumber() !== null;\n });\n\n displayText = computed(() => {\n return this.displayNumber() || '';\n });\n\n labelColor = computed(() => {\n return this.colorStyles().labelColor;\n });\n}\n","@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\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