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

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.
@@ -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';
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",