import { EventEmitter, OnInit } from '@angular/core'; import { ProgressItem } from './progress-item.interface'; import { ProgressItemStatus } from './progress-item-status'; import { ProgressBarSelectionMode } from './progress-bar-selection-mode'; import { BreakpointObserver } from '@angular/cdk/layout'; export declare class ProgressBarComponent implements OnInit { breakpointObserver: BreakpointObserver; allowSkipAhead: boolean; height: string; breakPoint: string; selectionMode: ProgressBarSelectionMode; /** * Control whether the main color is $wcf-red (primary) or $wcf-blue (secondary). Default is primary. */ progressBarStyle: string; _fillColor: string; private _showMobile; showMobile: boolean; private _items; items: ProgressItem[]; progressItemClicked: EventEmitter; progressItemSelected: EventEmitter; progressBarCompleted: EventEmitter; currentSelectedItem: ProgressItem; allItemsCompleted: boolean; dropdownVisible: boolean; ProgressItemStatus: typeof ProgressItemStatus; constructor(breakpointObserver: BreakpointObserver); ngOnInit(): void; /** * Finds the index of the focused item in the given array * @param items */ findFocusedIndexFromItems(items: ProgressItem[]): number; /** * Determines which item should be selected. Prefers the item after the last item to have been completed. */ getNextItemToSelectFromItems(items: ProgressItem[], greatestCompletedItemIndex: number): ProgressItem; selectProgressItem(itemToSelect: ProgressItem, emit?: boolean): void; /** * Mark the current item as completed and select the next uncompleted item */ completeCurrent(): void; /** * Handles the user clicking a progress Item. * * Ensures that the clicked item can be navigated to and also checks which seletion strategy (INTERNAL, EXTERNAL) should be used. * * INTERNAL: handles the selection all internally and then notifies (emits) the selection event. * * EXTERNAL: only handles the click event by emitting a notification of which item was clicked. This allows the consuming application to * run validation or other logic and then can signal the ProgressBarComponent to select the item by using via @ViewChild and invoking * .selectProgressItem(item) */ itemClicked(item: ProgressItem): void; previousItem(): void; nextItem(): void; toggleItemDropdown(): void; _canNavigateTo(item: ProgressItem): boolean; _canNavigateToNextItem(): boolean; _canNavigateToPreviousItem(): boolean; private _predecessorComplete; }