@rededor/site-front-end-lib 0.0.52 → 0.0.54

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.
Files changed (25) hide show
  1. package/esm2022/lib/components/algolia/algolia.component.mjs +12 -11
  2. package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +38 -17
  3. package/esm2022/lib/components/cta-wrapper/cta-wrapper.component.mjs +11 -8
  4. package/esm2022/lib/components/error/error.component.mjs +3 -3
  5. package/esm2022/lib/components/index.mjs +2 -1
  6. package/esm2022/lib/components/page-header/page-header.component.mjs +16 -35
  7. package/esm2022/lib/components/page-template-sidebar/page-template-sidebar.component.mjs +14 -9
  8. package/esm2022/lib/components/section-navigation/section-navigation.component.mjs +67 -0
  9. package/esm2022/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.mjs +2 -2
  10. package/esm2022/lib/components/side-ctas/side-ctas.component.mjs +3 -3
  11. package/esm2022/lib/models/section-navigation.model.mjs +2 -0
  12. package/esm2022/lib/services/scroll-service/scroll-service.service.mjs +39 -0
  13. package/fesm2022/rededor-site-front-end-lib.mjs +186 -79
  14. package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
  15. package/lib/components/algolia/algolia.component.d.ts +4 -2
  16. package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +12 -9
  17. package/lib/components/cta-wrapper/cta-wrapper.component.d.ts +9 -3
  18. package/lib/components/index.d.ts +1 -0
  19. package/lib/components/page-header/page-header.component.d.ts +8 -14
  20. package/lib/components/page-template-sidebar/page-template-sidebar.component.d.ts +6 -7
  21. package/lib/components/section-navigation/section-navigation.component.d.ts +19 -0
  22. package/lib/models/section-navigation.model.d.ts +9 -0
  23. package/lib/services/scroll-service/scroll-service.service.d.ts +7 -0
  24. package/package.json +2 -2
  25. package/styles/_breakpoints.scss +1 -0
@@ -31,14 +31,16 @@ export declare class AlgoliaComponent implements OnInit {
31
31
  scrollY: number | null;
32
32
  resetItem: EventEmitter<{}>;
33
33
  algoliaResults: EventEmitter<{}>;
34
+ focusEmit: EventEmitter<{}>;
35
+ blurEmit: EventEmitter<{}>;
34
36
  constructor(algoliaSearchApiService: AlgoliaSearchApiService, platformId: object);
35
37
  ngOnInit(): void;
36
38
  manageFocus(): void;
37
- manageScrollPosition(): void;
39
+ manageBlur(): void;
38
40
  resetValues(): void;
39
41
  termChange(event: any): void;
40
42
  setupAlgolia(config: AlgoliaConfig): boolean;
41
43
  search(): void;
42
44
  static ɵfac: i0.ɵɵFactoryDeclaration<AlgoliaComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<AlgoliaComponent, "rdsite-algolia", never, { "algoliaConfig": { "alias": "algoliaConfig"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "deleteButton": { "alias": "deleteButton"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "status": { "alias": "status"; "required": false; }; "startSearchAtCharLen": { "alias": "startSearchAtCharLen"; "required": false; }; "hintTitle": { "alias": "hintTitle"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "searchParams": { "alias": "searchParams"; "required": false; }; }, { "resetItem": "resetItem"; "algoliaResults": "algoliaResults"; }, never, ["*"], true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlgoliaComponent, "rdsite-algolia", never, { "algoliaConfig": { "alias": "algoliaConfig"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "deleteButton": { "alias": "deleteButton"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "status": { "alias": "status"; "required": false; }; "startSearchAtCharLen": { "alias": "startSearchAtCharLen"; "required": false; }; "hintTitle": { "alias": "hintTitle"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "searchParams": { "alias": "searchParams"; "required": false; }; }, { "resetItem": "resetItem"; "algoliaResults": "algoliaResults"; "focusEmit": "focusEmit"; "blurEmit": "blurEmit"; }, never, ["*", "app-planos-e-convenios-tooltip"], true, never>;
44
46
  }
@@ -1,28 +1,31 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
1
2
  import { BreadcrumbsItems } from '../../models/breadcrumbs/breadcrumbs-items.model';
2
3
  import { CuraService } from '../../services/cura/cura.service';
3
4
  import { LibConfig } from '../../tokens/LibConfig';
4
5
  import * as i0 from "@angular/core";
5
- export declare class BreadcrumbsComponent {
6
+ export declare class BreadcrumbsComponent implements AfterViewInit {
6
7
  private curaService;
7
8
  private libConfig;
8
9
  private document;
9
- fontColor: string | null;
10
+ private readonly platformId;
11
+ labelIconColor: string;
12
+ isDesktop: boolean;
10
13
  private _breadcrumbs;
11
14
  set breadcrumbs(value: BreadcrumbsItems[]);
12
15
  get breadcrumbs(): BreadcrumbsItems[];
13
16
  private breadcrumbsJsonTag;
14
17
  private breadcrumbsJsonTagId;
15
- style: {
16
- '--font-size': string;
17
- '--font-color': string | null;
18
- '--symbol-color': string | null;
19
- };
20
- constructor(curaService: CuraService, libConfig: LibConfig, document: Document);
18
+ breadCrumbsElement: ElementRef<HTMLDivElement>;
19
+ onWindowResize(): void;
20
+ constructor(curaService: CuraService, libConfig: LibConfig, document: Document, platformId: object);
21
+ ngAfterViewInit(): void;
22
+ setIsDesktop(): void;
23
+ getColors(color: string): void;
21
24
  getUrl(urls?: string[]): string;
22
25
  private setBreadcrumbsJson;
23
26
  private getBreadcrumbsJSONTag;
24
27
  private createBreadcrumbsJSONTag;
25
28
  private getJsonBreadcrumbItems;
26
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "rdsite-breadcrumbs", never, { "fontColor": { "alias": "fontColor"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "rdsite-breadcrumbs", never, { "labelIconColor": { "alias": "labelIconColor"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, true, never>;
28
31
  }
@@ -5,11 +5,15 @@ export declare class CtaWrapperComponent {
5
5
  private readonly curaService;
6
6
  private nguService;
7
7
  private readonly platformId;
8
+ title: string;
9
+ text: string;
8
10
  ctas: any;
9
- colors: {
11
+ colors: Partial<{
10
12
  border: string;
11
13
  icon: string;
12
- };
14
+ text: string;
15
+ title: string;
16
+ }>;
13
17
  carouselCtasConfig: NguCarouselConfig;
14
18
  bannerControl: boolean;
15
19
  seeMoreControl: boolean;
@@ -19,11 +23,13 @@ export declare class CtaWrapperComponent {
19
23
  '--more-options-color': string | null;
20
24
  '--border-color': string | null;
21
25
  '--label-color': string | null;
26
+ '--title-color': string | null;
27
+ '--text-color': string | null;
22
28
  };
23
29
  class: boolean;
24
30
  constructor(curaService: CuraService, nguService: NguCarouselService, platformId: object);
25
31
  ngOnInit(): void;
26
32
  moreOptions(): void;
27
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CtaWrapperComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<CtaWrapperComponent, "rdsite-cta-wrapper", never, { "ctas": { "alias": "ctas"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, {}, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<CtaWrapperComponent, "rdsite-cta-wrapper", never, { "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "ctas": { "alias": "ctas"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, {}, never, never, true, never>;
29
35
  }
@@ -32,3 +32,4 @@ export * from './page-header/page-header.component';
32
32
  export * from './breadcrumbs/breadcrumbs.component';
33
33
  export * from './page-template-sidebar/page-template-sidebar.component';
34
34
  export * from './filter-letter-and-terms/filter-letter-and-terms.component';
35
+ export * from './section-navigation/section-navigation.component';
@@ -3,22 +3,16 @@ import { BreadcrumbsItems } from '../../models/breadcrumbs/breadcrumbs-items.mod
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PageHeaderComponent {
5
5
  private readonly curaService;
6
- layoutStyle: 'aligned' | 'centered';
7
6
  pageTitle: string;
8
- pageSubtitle: string;
9
- headerImageUrl?: string;
10
- useBackgroundImage: boolean;
11
- showBreadcrumbs: boolean;
12
- breadcrumbsItems: BreadcrumbsItems[];
13
- get headerClasses(): string;
14
- get shouldShowHeaderImage(): boolean;
15
- get shouldShowBreadcrumbs(): boolean;
16
- get hostStyles(): {
17
- '--header-bg-color': string | null;
18
- '--header-title-color': string | null;
19
- '--font-color': string | null;
7
+ pageHeaderText: string;
8
+ hasPadding: boolean;
9
+ breadcrumbs: BreadcrumbsItems[];
10
+ style: {
11
+ '--spacing': string | null;
12
+ '--color': string | null;
13
+ '--bg-color': string | null;
20
14
  };
21
15
  constructor(curaService: CuraService);
22
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "rdsite-page-header", never, { "layoutStyle": { "alias": "layoutStyle"; "required": false; }; "pageTitle": { "alias": "pageTitle"; "required": false; }; "pageSubtitle": { "alias": "pageSubtitle"; "required": false; }; "headerImageUrl": { "alias": "headerImageUrl"; "required": false; }; "useBackgroundImage": { "alias": "useBackgroundImage"; "required": false; }; "showBreadcrumbs": { "alias": "showBreadcrumbs"; "required": false; }; "breadcrumbsItems": { "alias": "breadcrumbsItems"; "required": false; }; }, {}, never, ["*"], true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "rdsite-page-header", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "pageHeaderText": { "alias": "pageHeaderText"; "required": false; }; "hasPadding": { "alias": "hasPadding"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, ["*"], true, never>;
24
18
  }
@@ -1,12 +1,11 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PageTemplateSidebarComponent {
4
- headerContent?: TemplateRef<any>;
5
- beforeContent?: TemplateRef<any>;
6
- mainContent?: TemplateRef<any>;
7
- mainSidebar?: TemplateRef<any>;
8
- sidebarContent?: TemplateRef<any>;
9
- afterContent?: TemplateRef<any>;
4
+ header: TemplateRef<any> | null;
5
+ beforeContent: TemplateRef<any> | null;
6
+ content: TemplateRef<any> | null;
7
+ afterContent: TemplateRef<any> | null;
8
+ sidebarContent: TemplateRef<any> | null;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<PageTemplateSidebarComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<PageTemplateSidebarComponent, "rdsite-page-template-sidebar", never, { "headerContent": { "alias": "headerContent"; "required": false; }; "beforeContent": { "alias": "beforeContent"; "required": false; }; "mainContent": { "alias": "mainContent"; "required": false; }; "mainSidebar": { "alias": "mainSidebar"; "required": false; }; "sidebarContent": { "alias": "sidebarContent"; "required": false; }; "afterContent": { "alias": "afterContent"; "required": false; }; }, {}, never, never, true, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageTemplateSidebarComponent, "rdsite-page-template-sidebar", never, { "header": { "alias": "header"; "required": false; }; "beforeContent": { "alias": "beforeContent"; "required": false; }; "content": { "alias": "content"; "required": false; }; "afterContent": { "alias": "afterContent"; "required": false; }; "sidebarContent": { "alias": "sidebarContent"; "required": false; }; }, {}, never, never, true, never>;
12
11
  }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { NavigationSection, SectionNavigationConfig } from '../../models/section-navigation.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SectionNavigationComponent implements OnInit {
5
+ private readonly scrollService;
6
+ private readonly curaService;
7
+ readonly sections: import("@angular/core").WritableSignal<NavigationSection[]>;
8
+ readonly config: import("@angular/core").WritableSignal<SectionNavigationConfig | undefined>;
9
+ readonly activeSection: import("@angular/core").WritableSignal<string>;
10
+ set navigationSections(value: NavigationSection[]);
11
+ set navigationConfig(value: SectionNavigationConfig);
12
+ ariaLabel: string;
13
+ sectionChange: EventEmitter<NavigationSection>;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ onSectionClick(section: NavigationSection): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionNavigationComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionNavigationComponent, "rdsite-section-navigation", never, { "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
19
+ }
@@ -0,0 +1,9 @@
1
+ export interface NavigationSection {
2
+ id: string;
3
+ title: string;
4
+ }
5
+ export interface SectionNavigationConfig {
6
+ offsetTop?: number;
7
+ smoothScroll?: boolean;
8
+ containerClass?: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ScrollService {
3
+ private document;
4
+ scrollToElement(elementId: string, offset?: number, smooth?: boolean): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScrollService>;
7
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
7
7
  "@ngu/carousel": "^9.0.0",
8
- "@rededor/cura": ">=0.5.1 <2.0.0 || ^1.0.0-alpha",
8
+ "@rededor/cura": ">=0.5.1 <2.0.0 || ^1.4.0-alpha.1",
9
9
  "algoliasearch": "^4.16.0",
10
10
  "express": "^4.18.2",
11
11
  "he": "^1.2.0",
@@ -1,4 +1,5 @@
1
1
  $breakpoint-xsmall: 361px !default;
2
2
  $breakpoint-small: 769px !default;
3
+ $breakpoint-medium-large: 992px !default;
3
4
  $breakpoint-medium: 1024px !default;
4
5
  $breakpoint-large: 1366px !default;