@rededor/site-front-end-lib 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/section-navigation/section-navigation.component.mjs +43 -9
- package/fesm2022/rededor-site-front-end-lib.mjs +41 -8
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/lib/components/section-navigation/section-navigation.component.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ElementRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, ElementRef, QueryList, OnDestroy } from '@angular/core';
|
|
2
2
|
import { SectionNavigationData, SectionNavigationConfig } from '../../models/section-navigation.model';
|
|
3
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SectionNavigationComponent implements OnInit {
|
|
5
|
+
export declare class SectionNavigationComponent implements OnInit, OnDestroy {
|
|
5
6
|
private readonly curaService;
|
|
6
7
|
readonly sections: import("@angular/core").WritableSignal<SectionNavigationData[]>;
|
|
7
8
|
readonly config: import("@angular/core").WritableSignal<SectionNavigationConfig | undefined>;
|
|
8
9
|
readonly activeSection: import("@angular/core").WritableSignal<string>;
|
|
9
10
|
isMobile: boolean;
|
|
11
|
+
scrollToMenuAnchorSubscription: Subscription | null;
|
|
12
|
+
scrollToMenuAnchorSubject: BehaviorSubject<string>;
|
|
13
|
+
containerEl: ElementRef<HTMLDivElement>;
|
|
14
|
+
anchorsEl: QueryList<ElementRef<HTMLAnchorElement>>;
|
|
10
15
|
onWindowResize(): void;
|
|
11
16
|
onWindowScroll(): void;
|
|
12
17
|
set navigationSections(value: SectionNavigationData[]);
|
|
@@ -24,6 +29,8 @@ export declare class SectionNavigationComponent implements OnInit {
|
|
|
24
29
|
constructor();
|
|
25
30
|
ngOnInit(): void;
|
|
26
31
|
private windowScroll;
|
|
32
|
+
scrollToMenuAnchor(anchorId: string): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
27
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionNavigationComponent, never>;
|
|
28
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<SectionNavigationComponent, "nav[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>;
|
|
29
36
|
}
|