@rededor/site-front-end-lib 1.3.26 → 1.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/index.mjs +3 -1
- package/esm2022/lib/components/page-template-sidebar/page-template-sidebar.component.mjs +2 -2
- package/esm2022/lib/components/sidebar-navigation/sidebar-navigation.component.mjs +72 -0
- package/esm2022/lib/components/sticky-navigation/sticky-navigation.component.mjs +81 -0
- package/esm2022/lib/enums/RdsiteModalComponentStyle.enum.mjs +2 -1
- package/esm2022/lib/enums/RdsiteModalDrawerComponentStyle.enum.mjs +2 -1
- package/fesm2022/rededor-site-front-end-lib.mjs +151 -3
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/sidebar-navigation/sidebar-navigation.component.d.ts +19 -0
- package/lib/components/sticky-navigation/sticky-navigation.component.d.ts +27 -0
- package/lib/enums/RdsiteModalComponentStyle.enum.d.ts +2 -1
- package/lib/enums/RdsiteModalDrawerComponentStyle.enum.d.ts +2 -1
- package/package.json +1 -1
|
@@ -39,4 +39,6 @@ export * from './banner/content-banner/content-banner.component';
|
|
|
39
39
|
export * from './pagination/pagination.component';
|
|
40
40
|
export * from './cards/testimonial-card/testimonial-card.component';
|
|
41
41
|
export * from './carousels/testimonials-carousel/testimonials-carousel.component';
|
|
42
|
-
|
|
42
|
+
export * from './sidebar-navigation/sidebar-navigation.component';
|
|
43
|
+
export * from './sticky-navigation/sticky-navigation.component';
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaXRlLWZyb250LWVuZC1saWIvc3JjL2xpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGFB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14
|
this.reverseSidebar = false;
|
|
15
15
|
}
|
|
16
16
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PageTemplateSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: "header", stickyContent: "stickyContent", beforeContent: "beforeContent", content: "content", afterContent: "afterContent", sidebarContent: "sidebarContent", isArticle: "isArticle", reverseSidebar: "reverseSidebar" }, ngImport: i0, template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: "header", stickyContent: "stickyContent", beforeContent: "beforeContent", content: "content", afterContent: "afterContent", sidebarContent: "sidebarContent", isArticle: "isArticle", reverseSidebar: "reverseSidebar" }, ngImport: i0, template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
18
18
|
}
|
|
19
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PageTemplateSidebarComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
|
-
args: [{ selector: 'rdsite-page-template-sidebar', standalone: true, imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr
|
|
21
|
+
args: [{ selector: 'rdsite-page-template-sidebar', standalone: true, imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"] }]
|
|
22
22
|
}], propDecorators: { header: [{
|
|
23
23
|
type: Input
|
|
24
24
|
}], stickyContent: [{
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, signal, ViewChildren, EventEmitter, HostListener } from '@angular/core';
|
|
2
|
+
import { RdsiteLinkDirective } from '../../directives';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class SidebarNavigationComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.sections = signal([]);
|
|
7
|
+
this.config = signal(undefined);
|
|
8
|
+
this.activeSection = signal('');
|
|
9
|
+
this.anchorAdjustment = 0;
|
|
10
|
+
this.title = 'Nesta página';
|
|
11
|
+
this.ariaLabel = 'Navegação da página';
|
|
12
|
+
this.sectionChange = new EventEmitter();
|
|
13
|
+
}
|
|
14
|
+
set navigationSections(value) {
|
|
15
|
+
if (!value?.length) {
|
|
16
|
+
throw new Error('O SectionNavigationComponent requer pelo menos uma seção.');
|
|
17
|
+
}
|
|
18
|
+
this.sections.set(value);
|
|
19
|
+
if (!this.activeSection()) {
|
|
20
|
+
this.activeSection.set(value[0].id);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
set navigationConfig(value) {
|
|
24
|
+
this.config.set(value);
|
|
25
|
+
}
|
|
26
|
+
onWindowScroll() {
|
|
27
|
+
this.windowScroll();
|
|
28
|
+
}
|
|
29
|
+
windowScroll() {
|
|
30
|
+
const pageHeaderHeight = document.querySelector('.page-header')?.offsetHeight || 0;
|
|
31
|
+
let selectedIndex = -1;
|
|
32
|
+
this.sections()?.forEach((section, index) => {
|
|
33
|
+
const element = document.querySelector(`#${section.id}`);
|
|
34
|
+
if (!element)
|
|
35
|
+
return;
|
|
36
|
+
const elementTop = element.getBoundingClientRect().top + window.scrollY;
|
|
37
|
+
const currentScroll = window.scrollY + 110 + pageHeaderHeight;
|
|
38
|
+
if (currentScroll >= elementTop) {
|
|
39
|
+
selectedIndex = index;
|
|
40
|
+
if (this.sections()?.[selectedIndex]) {
|
|
41
|
+
this.activeSection.set(this.sections()?.[selectedIndex]?.id);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SidebarNavigationComponent, isStandalone: true, selector: "nav[rdsite-sidebar-navigation]", inputs: { anchorAdjustment: "anchorAdjustment", title: "title", ariaLabel: "ariaLabel", navigationSections: "navigationSections", navigationConfig: "navigationConfig" }, outputs: { sectionChange: "sectionChange" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, viewQueries: [{ propertyName: "anchorsEl", predicate: ["anchorEl"], descendants: true }], ngImport: i0, template: "<nav class=\"rdsite-sidebar-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n <cura-card class=\"only-mobile\" has-padding=\"true\" margin-block=\"8px\" has-shadow=\"false\" type=\"solid\" color-mode=\"light\" target=\"_self\">\n @if (title) {\n <cura-paragraph size=\"small\" color=\"neutral-black\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n }\n <ul role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n #anchorEl\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sidebar-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>\n {{ section.title }}\n </b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n </cura-card>\n</nav>\n", styles: ["ul{display:flex;flex-direction:column}ul li{width:100%}ul li cura-paragraph,ul li a{text-align:left}ul li a{color:unset}\n"], dependencies: [{ kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }] }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SidebarNavigationComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{ selector: 'nav[rdsite-sidebar-navigation]', standalone: true, imports: [RdsiteLinkDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<nav class=\"rdsite-sidebar-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n <cura-card class=\"only-mobile\" has-padding=\"true\" margin-block=\"8px\" has-shadow=\"false\" type=\"solid\" color-mode=\"light\" target=\"_self\">\n @if (title) {\n <cura-paragraph size=\"small\" color=\"neutral-black\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n }\n <ul role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n #anchorEl\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sidebar-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>\n {{ section.title }}\n </b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n </cura-card>\n</nav>\n", styles: ["ul{display:flex;flex-direction:column}ul li{width:100%}ul li cura-paragraph,ul li a{text-align:left}ul li a{color:unset}\n"] }]
|
|
52
|
+
}], propDecorators: { anchorAdjustment: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], title: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], ariaLabel: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], navigationSections: [{
|
|
59
|
+
type: Input,
|
|
60
|
+
args: [{ required: true }]
|
|
61
|
+
}], navigationConfig: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], anchorsEl: [{
|
|
64
|
+
type: ViewChildren,
|
|
65
|
+
args: ['anchorEl']
|
|
66
|
+
}], sectionChange: [{
|
|
67
|
+
type: Output
|
|
68
|
+
}], onWindowScroll: [{
|
|
69
|
+
type: HostListener,
|
|
70
|
+
args: ['window:scroll']
|
|
71
|
+
}] } });
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZWJhci1uYXZpZ2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpdGUtZnJvbnQtZW5kLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvc2lkZWJhci1uYXZpZ2F0aW9uL3NpZGViYXItbmF2aWdhdGlvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaXRlLWZyb250LWVuZC1saWIvc3JjL2xpYi9jb21wb25lbnRzL3NpZGViYXItbmF2aWdhdGlvbi9zaWRlYmFyLW5hdmlnYXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUF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PlxuICAgICAgICAgICAgICAgIHt7IHNlY3Rpb24udGl0bGUgfX1cbiAgICAgICAgICAgICAgPC9iPlxuICAgICAgICAgICAgPC9hPlxuICAgICAgICAgIDwvY3VyYS1wYXJhZ3JhcGg+XG4gICAgICAgIDwvbGk+XG4gICAgICB9XG4gICAgPC91bD5cbiAgPC9jdXJhLWNhcmQ+XG48L25hdj5cbiJdfQ==
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, signal, ViewChildren, EventEmitter, HostListener, HostBinding, } from '@angular/core';
|
|
2
|
+
import { RdsiteLinkDirective } from '../../directives';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../services";
|
|
5
|
+
export class StickyNavigationComponent {
|
|
6
|
+
set navigationSections(value) {
|
|
7
|
+
if (!value?.length) {
|
|
8
|
+
throw new Error('O SectionNavigationComponent requer pelo menos uma seção.');
|
|
9
|
+
}
|
|
10
|
+
this.sections.set(value);
|
|
11
|
+
if (!this.activeSection()) {
|
|
12
|
+
this.activeSection.set(value[0].id);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
set navigationConfig(value) {
|
|
16
|
+
this.config.set(value);
|
|
17
|
+
}
|
|
18
|
+
onWindowScroll() {
|
|
19
|
+
this.windowScroll();
|
|
20
|
+
}
|
|
21
|
+
constructor(curaService) {
|
|
22
|
+
this.curaService = curaService;
|
|
23
|
+
this.sections = signal([]);
|
|
24
|
+
this.config = signal(undefined);
|
|
25
|
+
this.activeSection = signal('');
|
|
26
|
+
this.isOpen = false;
|
|
27
|
+
this.selectedIndex = 0;
|
|
28
|
+
this.anchorAdjustment = 0;
|
|
29
|
+
this.title = 'Nesta página';
|
|
30
|
+
this.ariaLabel = 'Navegação da página';
|
|
31
|
+
this.sectionChange = new EventEmitter();
|
|
32
|
+
this.styleBinding = {
|
|
33
|
+
'--neutral-purewhite': this.curaService.getColor('neutral-purewhite'),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
windowScroll() {
|
|
37
|
+
const pageHeaderHeight = document.querySelector('.page-header')?.offsetHeight || 0;
|
|
38
|
+
this.sections()?.forEach((section, index) => {
|
|
39
|
+
const element = document.querySelector(`#${section.id}`);
|
|
40
|
+
if (!element)
|
|
41
|
+
return;
|
|
42
|
+
const elementTop = element.getBoundingClientRect().top + window.scrollY;
|
|
43
|
+
const currentScroll = window.scrollY + 110 + pageHeaderHeight;
|
|
44
|
+
if (currentScroll >= elementTop) {
|
|
45
|
+
this.selectedIndex = index;
|
|
46
|
+
if (this.sections()?.[this.selectedIndex]) {
|
|
47
|
+
this.activeSection.set(this.sections()?.[this.selectedIndex]?.id);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StickyNavigationComponent, deps: [{ token: i1.CuraService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
53
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: StickyNavigationComponent, isStandalone: true, selector: "nav[rdsite-sticky-navigation]", inputs: { anchorAdjustment: "anchorAdjustment", title: "title", ariaLabel: "ariaLabel", navigationSections: "navigationSections", navigationConfig: "navigationConfig" }, outputs: { sectionChange: "sectionChange" }, host: { listeners: { "window:scroll": "onWindowScroll()" }, properties: { "style": "this.styleBinding" } }, viewQueries: [{ propertyName: "anchorsEl", predicate: ["anchorEl"], descendants: true }], ngImport: i0, template: "<nav class=\"rdsite-sticky-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n @if (title) {\n <div class=\"title-bar\" (click)=\"isOpen = !isOpen\" [attr.aria-expanded]=\"isOpen\" role=\"button\" tabindex=\"0\" (keydown.enter)=\"isOpen = !isOpen\">\n <cura-paragraph size=\"small\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n <cura-icon [attr.name]=\"isOpen ? 'up' : 'down'\" size=\"16\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\"></cura-icon>\n </div>\n @if (sections().length && !isOpen) {\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" color=\"neutral-black\">\n <b>{{ sections()[selectedIndex].title }}</b>\n </cura-paragraph>\n }\n }\n\n <ul class=\"menu\" [class.open]=\"isOpen\" role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sticky-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n (click)=\"isOpen = !isOpen\"\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>{{ section.title }}</b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n</nav>\n", styles: ["nav{border-radius:2px;background:var(--neutral-purewhite);box-shadow:0 1px 4px #26262629;padding:8px 20px}nav .title-bar{display:flex;justify-content:space-between;align-items:center;cursor:pointer}nav ul.menu{display:flex;flex-direction:column;overflow:hidden;max-height:0;opacity:0;transform:scaleY(0);transform-origin:top;transition:max-height .3s ease,transform .3s ease,opacity .3s ease}nav ul.menu.open{max-height:fit-content;transform:scaleY(1);opacity:1}nav ul.menu li{width:100%}nav ul.menu li cura-paragraph,nav ul.menu li a{text-align:left}nav ul.menu li a{color:unset}\n"], dependencies: [{ kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }] }); }
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StickyNavigationComponent, decorators: [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ selector: 'nav[rdsite-sticky-navigation]', standalone: true, imports: [RdsiteLinkDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<nav class=\"rdsite-sticky-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n @if (title) {\n <div class=\"title-bar\" (click)=\"isOpen = !isOpen\" [attr.aria-expanded]=\"isOpen\" role=\"button\" tabindex=\"0\" (keydown.enter)=\"isOpen = !isOpen\">\n <cura-paragraph size=\"small\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n <cura-icon [attr.name]=\"isOpen ? 'up' : 'down'\" size=\"16\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\"></cura-icon>\n </div>\n @if (sections().length && !isOpen) {\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" color=\"neutral-black\">\n <b>{{ sections()[selectedIndex].title }}</b>\n </cura-paragraph>\n }\n }\n\n <ul class=\"menu\" [class.open]=\"isOpen\" role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sticky-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n (click)=\"isOpen = !isOpen\"\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>{{ section.title }}</b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n</nav>\n", styles: ["nav{border-radius:2px;background:var(--neutral-purewhite);box-shadow:0 1px 4px #26262629;padding:8px 20px}nav .title-bar{display:flex;justify-content:space-between;align-items:center;cursor:pointer}nav ul.menu{display:flex;flex-direction:column;overflow:hidden;max-height:0;opacity:0;transform:scaleY(0);transform-origin:top;transition:max-height .3s ease,transform .3s ease,opacity .3s ease}nav ul.menu.open{max-height:fit-content;transform:scaleY(1);opacity:1}nav ul.menu li{width:100%}nav ul.menu li cura-paragraph,nav ul.menu li a{text-align:left}nav ul.menu li a{color:unset}\n"] }]
|
|
58
|
+
}], ctorParameters: () => [{ type: i1.CuraService }], propDecorators: { anchorAdjustment: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], title: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], ariaLabel: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], navigationSections: [{
|
|
65
|
+
type: Input,
|
|
66
|
+
args: [{ required: true }]
|
|
67
|
+
}], navigationConfig: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], anchorsEl: [{
|
|
70
|
+
type: ViewChildren,
|
|
71
|
+
args: ['anchorEl']
|
|
72
|
+
}], sectionChange: [{
|
|
73
|
+
type: Output
|
|
74
|
+
}], onWindowScroll: [{
|
|
75
|
+
type: HostListener,
|
|
76
|
+
args: ['window:scroll']
|
|
77
|
+
}], styleBinding: [{
|
|
78
|
+
type: HostBinding,
|
|
79
|
+
args: ['style']
|
|
80
|
+
}] } });
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RpY2t5LW5hdmlnYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2l0ZS1mcm9udC1lbmQtbGliL3NyYy9saWIvY29tcG9uZW50cy9zdGlja3ktbmF2aWdhdGlvbi9zdGlja3ktbmF2aWdhdGlvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaXRlLWZyb250LWV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ICAgcmRzaXRlbGlua1xuICAgICAgICAgICAgKGNsaWNrKT1cImlzT3BlbiA9ICFpc09wZW5cIlxuICAgICAgICAgICAgW2FuY2hvckFkanVzdG1lbnRdPVwiYW5jaG9yQWRqdXN0bWVudFwiXG4gICAgICAgICAgICBbYXR0ci5hcmlhLWN1cnJlbnRdPVwiYWN0aXZlU2VjdGlvbigpID09PSBzZWN0aW9uLmlkID8gJ3BhZ2UnIDogbnVsbFwiXG4gICAgICAgICAgICBbYXR0ci5hcmlhLWxhYmVsXT1cIidOYXZlZ2FyIHBhcmEgJyArIHNlY3Rpb24udGl0bGVcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxiPnt7IHNlY3Rpb24udGl0bGUgfX08L2I+XG4gICAgICAgICAgPC9hPlxuICAgICAgICA8L2N1cmEtcGFyYWdyYXBoPlxuICAgICAgPC9saT5cbiAgICB9XG4gIDwvdWw+XG48L25hdj5cbiJdfQ==
|
|
@@ -10,5 +10,6 @@ export var RdsiteModalComponentStyle;
|
|
|
10
10
|
RdsiteModalComponentStyle["FORMFALLBACK"] = "form-fallback";
|
|
11
11
|
RdsiteModalComponentStyle["FILTER"] = "filter";
|
|
12
12
|
RdsiteModalComponentStyle["FILTERDOENCAS"] = "filter-doencas";
|
|
13
|
+
RdsiteModalComponentStyle["PHOTOGALLERY"] = "photo-gallery";
|
|
13
14
|
})(RdsiteModalComponentStyle || (RdsiteModalComponentStyle = {}));
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmRzaXRlTW9kYWxDb21wb25lbnRTdHlsZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2l0ZS1mcm9udC1lbmQtbGliL3NyYy9saWIvZW51bXMvUmRzaXRlTW9kYWxDb21wb25lbnRTdHlsZS5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLHlCQVlYO0FBWkQsV0FBWSx5QkFBeUI7SUFDbkMsZ0RBQW1CLENBQUE7SUFDbkIsNENBQWUsQ0FBQTtJQUNmLDRDQUFlLENBQUE7SUFDZix1REFBMEIsQ0FBQTtJQUMxQixxREFBd0IsQ0FBQTtJQUN4Qiw0Q0FBZSxDQUFBO0lBQ2YsZ0RBQW1CLENBQUE7SUFDbkIsMkRBQThCLENBQUE7SUFDOUIsOENBQWlCLENBQUE7SUFDakIsNkRBQWdDLENBQUE7SUFDaEMsMkRBQThCLENBQUE7QUFDaEMsQ0FBQyxFQVpXLHlCQUF5QixLQUF6Qix5QkFBeUIsUUFZcEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBSZHNpdGVNb2RhbENvbXBvbmVudFN0eWxlIHtcbiAgREVGQVVMVCA9ICdkZWZhdWx0JyxcbiAgQUxFUlQgPSAnYWxlcnQnLFxuICBMSUdIVCA9ICdsaWdodCcsXG4gIERPQ1RPUkNBUkQgPSAnZG9jdG9yLWNhcmQnLFxuICBIT01FU0xJREUgPSAnaG9tZS1zbGlkZScsXG4gIEJBU0lDID0gJ2Jhc2ljJyxcbiAgU0hBUklORyA9ICdzaGFyaW5nJyxcbiAgRk9STUZBTExCQUNLID0gJ2Zvcm0tZmFsbGJhY2snLFxuICBGSUxURVIgPSAnZmlsdGVyJyxcbiAgRklMVEVSRE9FTkNBUyA9ICdmaWx0ZXItZG9lbmNhcycsXG4gIFBIT1RPR0FMTEVSWSA9ICdwaG90by1nYWxsZXJ5Jyxcbn1cbiJdfQ==
|
|
@@ -4,5 +4,6 @@ export var RdsiteModalDrawerComponentStyle;
|
|
|
4
4
|
RdsiteModalDrawerComponentStyle["DRAWERDOCTOR"] = "doctor-card";
|
|
5
5
|
RdsiteModalDrawerComponentStyle["FORMFALLBACK"] = "form-fallback";
|
|
6
6
|
RdsiteModalDrawerComponentStyle["FILTERDOENCAS"] = "filter-doencas";
|
|
7
|
+
RdsiteModalDrawerComponentStyle["PHOTOGALLERY"] = "photo-gallery";
|
|
7
8
|
})(RdsiteModalDrawerComponentStyle || (RdsiteModalDrawerComponentStyle = {}));
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmRzaXRlTW9kYWxEcmF3ZXJDb21wb25lbnRTdHlsZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2l0ZS1mcm9udC1lbmQtbGliL3NyYy9saWIvZW51bXMvUmRzaXRlTW9kYWxEcmF3ZXJDb21wb25lbnRTdHlsZS5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLCtCQU1YO0FBTkQsV0FBWSwrQkFBK0I7SUFDekMsc0RBQW1CLENBQUE7SUFDbkIsK0RBQTRCLENBQUE7SUFDNUIsaUVBQThCLENBQUE7SUFDOUIsbUVBQWdDLENBQUE7SUFDaEMsaUVBQThCLENBQUE7QUFDaEMsQ0FBQyxFQU5XLCtCQUErQixLQUEvQiwrQkFBK0IsUUFNMUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBSZHNpdGVNb2RhbERyYXdlckNvbXBvbmVudFN0eWxlIHtcbiAgREVGQVVMVCA9ICdkZWZhdWx0JyxcbiAgRFJBV0VSRE9DVE9SID0gJ2RvY3Rvci1jYXJkJyxcbiAgRk9STUZBTExCQUNLID0gJ2Zvcm0tZmFsbGJhY2snLFxuICBGSUxURVJET0VOQ0FTID0gJ2ZpbHRlci1kb2VuY2FzJyxcbiAgUEhPVE9HQUxMRVJZID0gJ3Bob3RvLWdhbGxlcnknLFxufVxuIl19
|
|
@@ -131,6 +131,7 @@ var RdsiteModalComponentStyle;
|
|
|
131
131
|
RdsiteModalComponentStyle["FORMFALLBACK"] = "form-fallback";
|
|
132
132
|
RdsiteModalComponentStyle["FILTER"] = "filter";
|
|
133
133
|
RdsiteModalComponentStyle["FILTERDOENCAS"] = "filter-doencas";
|
|
134
|
+
RdsiteModalComponentStyle["PHOTOGALLERY"] = "photo-gallery";
|
|
134
135
|
})(RdsiteModalComponentStyle || (RdsiteModalComponentStyle = {}));
|
|
135
136
|
|
|
136
137
|
const formatPhone = (phone) => {
|
|
@@ -3781,6 +3782,7 @@ var RdsiteModalDrawerComponentStyle;
|
|
|
3781
3782
|
RdsiteModalDrawerComponentStyle["DRAWERDOCTOR"] = "doctor-card";
|
|
3782
3783
|
RdsiteModalDrawerComponentStyle["FORMFALLBACK"] = "form-fallback";
|
|
3783
3784
|
RdsiteModalDrawerComponentStyle["FILTERDOENCAS"] = "filter-doencas";
|
|
3785
|
+
RdsiteModalDrawerComponentStyle["PHOTOGALLERY"] = "photo-gallery";
|
|
3784
3786
|
})(RdsiteModalDrawerComponentStyle || (RdsiteModalDrawerComponentStyle = {}));
|
|
3785
3787
|
|
|
3786
3788
|
var Themes;
|
|
@@ -4036,11 +4038,11 @@ class PageTemplateSidebarComponent {
|
|
|
4036
4038
|
this.reverseSidebar = false;
|
|
4037
4039
|
}
|
|
4038
4040
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PageTemplateSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4039
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: "header", stickyContent: "stickyContent", beforeContent: "beforeContent", content: "content", afterContent: "afterContent", sidebarContent: "sidebarContent", isArticle: "isArticle", reverseSidebar: "reverseSidebar" }, ngImport: i0, template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr
|
|
4041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PageTemplateSidebarComponent, isStandalone: true, selector: "rdsite-page-template-sidebar", inputs: { header: "header", stickyContent: "stickyContent", beforeContent: "beforeContent", content: "content", afterContent: "afterContent", sidebarContent: "sidebarContent", isArticle: "isArticle", reverseSidebar: "reverseSidebar" }, ngImport: i0, template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
4040
4042
|
}
|
|
4041
4043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PageTemplateSidebarComponent, decorators: [{
|
|
4042
4044
|
type: Component,
|
|
4043
|
-
args: [{ selector: 'rdsite-page-template-sidebar', standalone: true, imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr
|
|
4045
|
+
args: [{ selector: 'rdsite-page-template-sidebar', standalone: true, imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "@if (isArticle) {\n <article class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </article>\n} @else {\n <section class=\"rdsite-template-sidebar\" [class.reverse]=\"reverseSidebar\">\n <ng-container *ngTemplateOutlet=\"mainContent\"></ng-container>\n </section>\n}\n<ng-template #mainContent>\n @if (header) {\n <header class=\"rdsite-template-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </header>\n }\n @if (stickyContent) {\n <div class=\"rdsite-template-sticky-content\">\n <ng-container *ngTemplateOutlet=\"stickyContent\"></ng-container>\n </div>\n }\n\n @if (beforeContent) {\n <div class=\"rdsite-template-before-content\">\n <ng-container *ngTemplateOutlet=\"beforeContent\"></ng-container>\n </div>\n }\n <div class=\"rdsite-template-container\">\n @if (content) {\n <section class=\"rdsite-content-container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </section>\n }\n\n @if (sidebarContent) {\n <aside class=\"rdsite-sidebar-content-container\">\n <ng-container *ngTemplateOutlet=\"sidebarContent\"></ng-container>\n </aside>\n }\n </div>\n</ng-template>\n\n@if (afterContent?.length) {\n @for (tpl of afterContent; track $index) {\n @if (tpl.show) {\n <aside class=\"rdsite-template-after-content\">\n <ng-container *ngTemplateOutlet=\"tpl.template\"></ng-container>\n </aside>\n }\n }\n}\n", styles: ["article.rdsite-template-sidebar,section.rdsite-template-sidebar{display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(5%,1fr) minmax(auto,90%) minmax(5%,1fr);grid-template-areas:\"header header header\" \"stickycontent stickycontent stickycontent\" \"beforecontent beforecontent beforecontent\" \". pagecontent .\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar,section.rdsite-template-sidebar{grid-template-columns:minmax(5%,1fr) minmax(auto,1366px) minmax(5%,1fr)}}article.rdsite-template-sidebar .rdsite-template-header,section.rdsite-template-sidebar .rdsite-template-header{grid-area:header}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{grid-area:stickycontent}article.rdsite-template-sidebar .rdsite-template-before-content,section.rdsite-template-sidebar .rdsite-template-before-content{grid-area:beforecontent}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-area:pagecontent}article.rdsite-template-sidebar .rdsite-template-sticky-content,section.rdsite-template-sidebar .rdsite-template-sticky-content{position:sticky;top:0;z-index:3002}article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{display:grid;position:relative;width:100%;grid-template-rows:auto;grid-template-columns:1fr;grid-template-areas:\"content\" \"sidebarcontent\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar .rdsite-template-container,section.rdsite-template-sidebar .rdsite-template-container{grid-template-rows:1fr;grid-template-columns:3fr 20px 1fr;grid-template-areas:\"content . sidebarcontent\"}}article.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container,section.rdsite-template-sidebar .rdsite-template-container section.rdsite-content-container{grid-area:content;position:relative;max-width:100%}article.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container,section.rdsite-template-sidebar .rdsite-template-container aside.rdsite-sidebar-content-container{grid-area:sidebarcontent;position:relative;z-index:3001}article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-areas:\"sidebarcontent\" \"content\"}@media screen and (min-width: 1024px){article.rdsite-template-sidebar.reverse .rdsite-template-container,section.rdsite-template-sidebar.reverse .rdsite-template-container{grid-template-columns:1fr 48px 3fr;grid-template-areas:\"sidebarcontent . content\"}}\n"] }]
|
|
4044
4046
|
}], propDecorators: { header: [{
|
|
4045
4047
|
type: Input
|
|
4046
4048
|
}], stickyContent: [{
|
|
@@ -5017,6 +5019,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
5017
5019
|
args: ['style']
|
|
5018
5020
|
}] } });
|
|
5019
5021
|
|
|
5022
|
+
class SidebarNavigationComponent {
|
|
5023
|
+
constructor() {
|
|
5024
|
+
this.sections = signal([]);
|
|
5025
|
+
this.config = signal(undefined);
|
|
5026
|
+
this.activeSection = signal('');
|
|
5027
|
+
this.anchorAdjustment = 0;
|
|
5028
|
+
this.title = 'Nesta página';
|
|
5029
|
+
this.ariaLabel = 'Navegação da página';
|
|
5030
|
+
this.sectionChange = new EventEmitter();
|
|
5031
|
+
}
|
|
5032
|
+
set navigationSections(value) {
|
|
5033
|
+
if (!value?.length) {
|
|
5034
|
+
throw new Error('O SectionNavigationComponent requer pelo menos uma seção.');
|
|
5035
|
+
}
|
|
5036
|
+
this.sections.set(value);
|
|
5037
|
+
if (!this.activeSection()) {
|
|
5038
|
+
this.activeSection.set(value[0].id);
|
|
5039
|
+
}
|
|
5040
|
+
}
|
|
5041
|
+
set navigationConfig(value) {
|
|
5042
|
+
this.config.set(value);
|
|
5043
|
+
}
|
|
5044
|
+
onWindowScroll() {
|
|
5045
|
+
this.windowScroll();
|
|
5046
|
+
}
|
|
5047
|
+
windowScroll() {
|
|
5048
|
+
const pageHeaderHeight = document.querySelector('.page-header')?.offsetHeight || 0;
|
|
5049
|
+
let selectedIndex = -1;
|
|
5050
|
+
this.sections()?.forEach((section, index) => {
|
|
5051
|
+
const element = document.querySelector(`#${section.id}`);
|
|
5052
|
+
if (!element)
|
|
5053
|
+
return;
|
|
5054
|
+
const elementTop = element.getBoundingClientRect().top + window.scrollY;
|
|
5055
|
+
const currentScroll = window.scrollY + 110 + pageHeaderHeight;
|
|
5056
|
+
if (currentScroll >= elementTop) {
|
|
5057
|
+
selectedIndex = index;
|
|
5058
|
+
if (this.sections()?.[selectedIndex]) {
|
|
5059
|
+
this.activeSection.set(this.sections()?.[selectedIndex]?.id);
|
|
5060
|
+
}
|
|
5061
|
+
}
|
|
5062
|
+
});
|
|
5063
|
+
}
|
|
5064
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5065
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SidebarNavigationComponent, isStandalone: true, selector: "nav[rdsite-sidebar-navigation]", inputs: { anchorAdjustment: "anchorAdjustment", title: "title", ariaLabel: "ariaLabel", navigationSections: "navigationSections", navigationConfig: "navigationConfig" }, outputs: { sectionChange: "sectionChange" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, viewQueries: [{ propertyName: "anchorsEl", predicate: ["anchorEl"], descendants: true }], ngImport: i0, template: "<nav class=\"rdsite-sidebar-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n <cura-card class=\"only-mobile\" has-padding=\"true\" margin-block=\"8px\" has-shadow=\"false\" type=\"solid\" color-mode=\"light\" target=\"_self\">\n @if (title) {\n <cura-paragraph size=\"small\" color=\"neutral-black\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n }\n <ul role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n #anchorEl\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sidebar-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>\n {{ section.title }}\n </b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n </cura-card>\n</nav>\n", styles: ["ul{display:flex;flex-direction:column}ul li{width:100%}ul li cura-paragraph,ul li a{text-align:left}ul li a{color:unset}\n"], dependencies: [{ kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }] }); }
|
|
5066
|
+
}
|
|
5067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SidebarNavigationComponent, decorators: [{
|
|
5068
|
+
type: Component,
|
|
5069
|
+
args: [{ selector: 'nav[rdsite-sidebar-navigation]', standalone: true, imports: [RdsiteLinkDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<nav class=\"rdsite-sidebar-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n <cura-card class=\"only-mobile\" has-padding=\"true\" margin-block=\"8px\" has-shadow=\"false\" type=\"solid\" color-mode=\"light\" target=\"_self\">\n @if (title) {\n <cura-paragraph size=\"small\" color=\"neutral-black\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n }\n <ul role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n #anchorEl\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sidebar-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>\n {{ section.title }}\n </b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n </cura-card>\n</nav>\n", styles: ["ul{display:flex;flex-direction:column}ul li{width:100%}ul li cura-paragraph,ul li a{text-align:left}ul li a{color:unset}\n"] }]
|
|
5070
|
+
}], propDecorators: { anchorAdjustment: [{
|
|
5071
|
+
type: Input
|
|
5072
|
+
}], title: [{
|
|
5073
|
+
type: Input
|
|
5074
|
+
}], ariaLabel: [{
|
|
5075
|
+
type: Input
|
|
5076
|
+
}], navigationSections: [{
|
|
5077
|
+
type: Input,
|
|
5078
|
+
args: [{ required: true }]
|
|
5079
|
+
}], navigationConfig: [{
|
|
5080
|
+
type: Input
|
|
5081
|
+
}], anchorsEl: [{
|
|
5082
|
+
type: ViewChildren,
|
|
5083
|
+
args: ['anchorEl']
|
|
5084
|
+
}], sectionChange: [{
|
|
5085
|
+
type: Output
|
|
5086
|
+
}], onWindowScroll: [{
|
|
5087
|
+
type: HostListener,
|
|
5088
|
+
args: ['window:scroll']
|
|
5089
|
+
}] } });
|
|
5090
|
+
|
|
5091
|
+
class StickyNavigationComponent {
|
|
5092
|
+
set navigationSections(value) {
|
|
5093
|
+
if (!value?.length) {
|
|
5094
|
+
throw new Error('O SectionNavigationComponent requer pelo menos uma seção.');
|
|
5095
|
+
}
|
|
5096
|
+
this.sections.set(value);
|
|
5097
|
+
if (!this.activeSection()) {
|
|
5098
|
+
this.activeSection.set(value[0].id);
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
set navigationConfig(value) {
|
|
5102
|
+
this.config.set(value);
|
|
5103
|
+
}
|
|
5104
|
+
onWindowScroll() {
|
|
5105
|
+
this.windowScroll();
|
|
5106
|
+
}
|
|
5107
|
+
constructor(curaService) {
|
|
5108
|
+
this.curaService = curaService;
|
|
5109
|
+
this.sections = signal([]);
|
|
5110
|
+
this.config = signal(undefined);
|
|
5111
|
+
this.activeSection = signal('');
|
|
5112
|
+
this.isOpen = false;
|
|
5113
|
+
this.selectedIndex = 0;
|
|
5114
|
+
this.anchorAdjustment = 0;
|
|
5115
|
+
this.title = 'Nesta página';
|
|
5116
|
+
this.ariaLabel = 'Navegação da página';
|
|
5117
|
+
this.sectionChange = new EventEmitter();
|
|
5118
|
+
this.styleBinding = {
|
|
5119
|
+
'--neutral-purewhite': this.curaService.getColor('neutral-purewhite'),
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5122
|
+
windowScroll() {
|
|
5123
|
+
const pageHeaderHeight = document.querySelector('.page-header')?.offsetHeight || 0;
|
|
5124
|
+
this.sections()?.forEach((section, index) => {
|
|
5125
|
+
const element = document.querySelector(`#${section.id}`);
|
|
5126
|
+
if (!element)
|
|
5127
|
+
return;
|
|
5128
|
+
const elementTop = element.getBoundingClientRect().top + window.scrollY;
|
|
5129
|
+
const currentScroll = window.scrollY + 110 + pageHeaderHeight;
|
|
5130
|
+
if (currentScroll >= elementTop) {
|
|
5131
|
+
this.selectedIndex = index;
|
|
5132
|
+
if (this.sections()?.[this.selectedIndex]) {
|
|
5133
|
+
this.activeSection.set(this.sections()?.[this.selectedIndex]?.id);
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
5136
|
+
});
|
|
5137
|
+
}
|
|
5138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StickyNavigationComponent, deps: [{ token: CuraService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5139
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: StickyNavigationComponent, isStandalone: true, selector: "nav[rdsite-sticky-navigation]", inputs: { anchorAdjustment: "anchorAdjustment", title: "title", ariaLabel: "ariaLabel", navigationSections: "navigationSections", navigationConfig: "navigationConfig" }, outputs: { sectionChange: "sectionChange" }, host: { listeners: { "window:scroll": "onWindowScroll()" }, properties: { "style": "this.styleBinding" } }, viewQueries: [{ propertyName: "anchorsEl", predicate: ["anchorEl"], descendants: true }], ngImport: i0, template: "<nav class=\"rdsite-sticky-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n @if (title) {\n <div class=\"title-bar\" (click)=\"isOpen = !isOpen\" [attr.aria-expanded]=\"isOpen\" role=\"button\" tabindex=\"0\" (keydown.enter)=\"isOpen = !isOpen\">\n <cura-paragraph size=\"small\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n <cura-icon [attr.name]=\"isOpen ? 'up' : 'down'\" size=\"16\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\"></cura-icon>\n </div>\n @if (sections().length && !isOpen) {\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" color=\"neutral-black\">\n <b>{{ sections()[selectedIndex].title }}</b>\n </cura-paragraph>\n }\n }\n\n <ul class=\"menu\" [class.open]=\"isOpen\" role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sticky-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n (click)=\"isOpen = !isOpen\"\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>{{ section.title }}</b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n</nav>\n", styles: ["nav{border-radius:2px;background:var(--neutral-purewhite);box-shadow:0 1px 4px #26262629;padding:8px 20px}nav .title-bar{display:flex;justify-content:space-between;align-items:center;cursor:pointer}nav ul.menu{display:flex;flex-direction:column;overflow:hidden;max-height:0;opacity:0;transform:scaleY(0);transform-origin:top;transition:max-height .3s ease,transform .3s ease,opacity .3s ease}nav ul.menu.open{max-height:fit-content;transform:scaleY(1);opacity:1}nav ul.menu li{width:100%}nav ul.menu li cura-paragraph,nav ul.menu li a{text-align:left}nav ul.menu li a{color:unset}\n"], dependencies: [{ kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }] }); }
|
|
5140
|
+
}
|
|
5141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StickyNavigationComponent, decorators: [{
|
|
5142
|
+
type: Component,
|
|
5143
|
+
args: [{ selector: 'nav[rdsite-sticky-navigation]', standalone: true, imports: [RdsiteLinkDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<nav class=\"rdsite-sticky-navigation\" [attr.aria-label]=\"ariaLabel\" [style.top.px]=\"config()?.offsetTop || 0\">\n @if (title) {\n <div class=\"title-bar\" (click)=\"isOpen = !isOpen\" [attr.aria-expanded]=\"isOpen\" role=\"button\" tabindex=\"0\" (keydown.enter)=\"isOpen = !isOpen\">\n <cura-paragraph size=\"small\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\" margin-block=\"8px\">\n <b>{{ title }}</b>\n </cura-paragraph>\n <cura-icon [attr.name]=\"isOpen ? 'up' : 'down'\" size=\"16\" [attr.color]=\"isOpen ? 'neutraldark' : 'primary-base'\"></cura-icon>\n </div>\n @if (sections().length && !isOpen) {\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" color=\"neutral-black\">\n <b>{{ sections()[selectedIndex].title }}</b>\n </cura-paragraph>\n }\n }\n\n <ul class=\"menu\" [class.open]=\"isOpen\" role=\"menubar\">\n @for (section of sections(); track section.id) {\n <li role=\"none\">\n <cura-paragraph size=\"xsmall\" margin-block=\"8px\" [color]=\"activeSection() === section.id ? 'neutral-black' : 'primary-base'\">\n <a\n id=\"anchor-{{ section.id }}\"\n class=\"rdsite-sticky-link\"\n role=\"menuitem\"\n [href]=\"'#' + section.id\"\n rdsitelink\n (click)=\"isOpen = !isOpen\"\n [anchorAdjustment]=\"anchorAdjustment\"\n [attr.aria-current]=\"activeSection() === section.id ? 'page' : null\"\n [attr.aria-label]=\"'Navegar para ' + section.title\"\n >\n <b>{{ section.title }}</b>\n </a>\n </cura-paragraph>\n </li>\n }\n </ul>\n</nav>\n", styles: ["nav{border-radius:2px;background:var(--neutral-purewhite);box-shadow:0 1px 4px #26262629;padding:8px 20px}nav .title-bar{display:flex;justify-content:space-between;align-items:center;cursor:pointer}nav ul.menu{display:flex;flex-direction:column;overflow:hidden;max-height:0;opacity:0;transform:scaleY(0);transform-origin:top;transition:max-height .3s ease,transform .3s ease,opacity .3s ease}nav ul.menu.open{max-height:fit-content;transform:scaleY(1);opacity:1}nav ul.menu li{width:100%}nav ul.menu li cura-paragraph,nav ul.menu li a{text-align:left}nav ul.menu li a{color:unset}\n"] }]
|
|
5144
|
+
}], ctorParameters: () => [{ type: CuraService }], propDecorators: { anchorAdjustment: [{
|
|
5145
|
+
type: Input
|
|
5146
|
+
}], title: [{
|
|
5147
|
+
type: Input
|
|
5148
|
+
}], ariaLabel: [{
|
|
5149
|
+
type: Input
|
|
5150
|
+
}], navigationSections: [{
|
|
5151
|
+
type: Input,
|
|
5152
|
+
args: [{ required: true }]
|
|
5153
|
+
}], navigationConfig: [{
|
|
5154
|
+
type: Input
|
|
5155
|
+
}], anchorsEl: [{
|
|
5156
|
+
type: ViewChildren,
|
|
5157
|
+
args: ['anchorEl']
|
|
5158
|
+
}], sectionChange: [{
|
|
5159
|
+
type: Output
|
|
5160
|
+
}], onWindowScroll: [{
|
|
5161
|
+
type: HostListener,
|
|
5162
|
+
args: ['window:scroll']
|
|
5163
|
+
}], styleBinding: [{
|
|
5164
|
+
type: HostBinding,
|
|
5165
|
+
args: ['style']
|
|
5166
|
+
}] } });
|
|
5167
|
+
|
|
5020
5168
|
// Components
|
|
5021
5169
|
|
|
5022
5170
|
class PhonePipe {
|
|
@@ -5098,5 +5246,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
5098
5246
|
* Generated bundle index. Do not edit.
|
|
5099
5247
|
*/
|
|
5100
5248
|
|
|
5101
|
-
export { AbstractModalComponent, AbstractModalDrawerComponent, AlgoliaDropdownComponent, AlgoliaSearchApiService, AlgoliaService, BreadcrumbsComponent, CardUnidadePlanosConveniosComponent, ContentBannerComponent, CtaWrapperComponent, CuraService, EnumDoencaTaxonomy, EnumDoencaTaxonomyCat, ErrorComponent, ErrorInterceptor, ErrorService, Errors, Estados, ExpandableCardComponent, FilterGenericComponent, FilterLetterAndTermsComponent, FilterPlanosConveniosComponent, FilterType, FooterComponent, GeolocService, GeolocationPermissions, HeaderActionMenuComponent, HeaderAuxMenuComponent, HeaderAuxMenuContainerComponent, HeaderAuxMenuItemComponent, HeaderAuxMenuItemDropdownComponent, HeaderComponent, HeaderLogoComponent, HeaderMainMenuComponent, HeaderMainMenuItemComponent, HeaderMainMenuItemDropdownComponent, HeaderService, HeaderSideMenuComponent, HeaderSideMenuItemComponent, HttpClientService, IconCuraDefaultType, ImageComponent, ImageMimeType, LIB_CONFIG, LoadScreenComponent, LogInterceptor, LogService, MapBoxService, ModalDrawerService, ModalService, NguCarouselService, OverlayComponent, PageHeaderComponent, PageTemplateSidebarComponent, PaginationComponent, PhonePipe, PhoneService, PrivacyToolsService, REQUEST, RESPONSE, RdsiteClickOutsideDirective, RdsiteLinkDirective, RdsiteModalComponentStyle, RdsiteModalDrawerComponentStyle, RdsitePhoneModalDirective, SSR_CURA_API, SearchComponent, SectionNavigationComponent, SeoService, ServerResponseService, SideCtasBottomComponent, SideCtasComponent, SideCtasRightBottomComponent, SideCtasRightMiddleComponent, SideCtasRightTopComponent, SiteBackendService, SsrLoadingService, TestimonialCardComponent, TestimonialsCarouselComponent, Themes, TransferStateService, UnidadeCoverageType, WhatsappComponent, YoutubeService, formatPhone, getCircularReplacer, getSiteUrl, removeDuplicateObjectsFromArray, removeDuplicateValuesFromArray, removeHtmlTags, toQueryParams };
|
|
5249
|
+
export { AbstractModalComponent, AbstractModalDrawerComponent, AlgoliaDropdownComponent, AlgoliaSearchApiService, AlgoliaService, BreadcrumbsComponent, CardUnidadePlanosConveniosComponent, ContentBannerComponent, CtaWrapperComponent, CuraService, EnumDoencaTaxonomy, EnumDoencaTaxonomyCat, ErrorComponent, ErrorInterceptor, ErrorService, Errors, Estados, ExpandableCardComponent, FilterGenericComponent, FilterLetterAndTermsComponent, FilterPlanosConveniosComponent, FilterType, FooterComponent, GeolocService, GeolocationPermissions, HeaderActionMenuComponent, HeaderAuxMenuComponent, HeaderAuxMenuContainerComponent, HeaderAuxMenuItemComponent, HeaderAuxMenuItemDropdownComponent, HeaderComponent, HeaderLogoComponent, HeaderMainMenuComponent, HeaderMainMenuItemComponent, HeaderMainMenuItemDropdownComponent, HeaderService, HeaderSideMenuComponent, HeaderSideMenuItemComponent, HttpClientService, IconCuraDefaultType, ImageComponent, ImageMimeType, LIB_CONFIG, LoadScreenComponent, LogInterceptor, LogService, MapBoxService, ModalDrawerService, ModalService, NguCarouselService, OverlayComponent, PageHeaderComponent, PageTemplateSidebarComponent, PaginationComponent, PhonePipe, PhoneService, PrivacyToolsService, REQUEST, RESPONSE, RdsiteClickOutsideDirective, RdsiteLinkDirective, RdsiteModalComponentStyle, RdsiteModalDrawerComponentStyle, RdsitePhoneModalDirective, SSR_CURA_API, SearchComponent, SectionNavigationComponent, SeoService, ServerResponseService, SideCtasBottomComponent, SideCtasComponent, SideCtasRightBottomComponent, SideCtasRightMiddleComponent, SideCtasRightTopComponent, SidebarNavigationComponent, SiteBackendService, SsrLoadingService, StickyNavigationComponent, TestimonialCardComponent, TestimonialsCarouselComponent, Themes, TransferStateService, UnidadeCoverageType, WhatsappComponent, YoutubeService, formatPhone, getCircularReplacer, getSiteUrl, removeDuplicateObjectsFromArray, removeDuplicateValuesFromArray, removeHtmlTags, toQueryParams };
|
|
5102
5250
|
//# sourceMappingURL=rededor-site-front-end-lib.mjs.map
|