moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
30 lines (29 loc) • 1.03 kB
TypeScript
import { OnInit, ElementRef, QueryList, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { WizardProgressItem } from '../../models/container';
/**
* NPM Dependencies:
* a) rxjs
* b) ngx-bootstrap
*/
export declare class WizardProgressBarComponent implements OnInit, OnDestroy {
private router;
private cd;
progressSteps: WizardProgressItem[];
stepContainer: ElementRef;
steps: QueryList<ElementRef<HTMLAnchorElement>>;
activeIndex: number;
private routerEvents$;
constructor(router: Router, cd: ChangeDetectorRef);
ngOnInit(): void;
ngOnDestroy(): void;
calculateProgressPercentage(): number;
getActiveIndex(url: any): number;
/**
* Primarily for mobile, this horizontally scrolls the step into view.
*
* Note - be very careful with any changes to this function because it steps
* outside of Angular to call native browser functions.
*/
private scrollStepIntoView;
}