UNPKG

@blox/material

Version:

Material Components for Angular

63 lines (62 loc) 2.29 kB
import { AfterContentInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; /** * Directive for creating a Material Design linear progress indicator. * The current implementation will add and manage all DOM child elements that * are required for the wrapped <code>mdc-linear-progress</code> component. * Future implementations will also support supplying (customized) * DOM children. */ export declare class MdcLinearProgressDirective implements AfterContentInit, OnDestroy { private _rndr; private _root; private _progress; private _buffer; private _closed; private _elmBuffer; private _elmPrimaryBar; /** * Label indicationg how the progress bar should be announced to the user. * Determines the ària-label` attribute value. */ label: string | null; private mdcAdapter; private foundation; constructor(_rndr: Renderer2, _root: ElementRef); ngAfterContentInit(): void; ngOnDestroy(): void; private initElements; private addElement; /** * Puts the progress indicator in 'indeterminate' state, signaling * that the exact progress on a measured task is not known. */ get indeterminate(): boolean; set indeterminate(value: boolean); static ngAcceptInputType_indeterminate: boolean | ''; /** * Reverses the direction of the linear progress indicator. */ get reversed(): boolean; set reversed(value: boolean); static ngAcceptInputType_reversed: boolean | ''; /** * Set the progress, the value should be between [0, 1]. */ get progressValue(): number; set progressValue(value: number); static ngAcceptInputType_progressValue: number | string; /** * Set the buffer progress, the value should be between [0, 1]. */ get bufferValue(): number; set bufferValue(value: number); static ngAcceptInputType_bufferValue: number | string; /** * When set to true this closes (animates away) the progress bar, * when set to false this opens (animates into view) the progress bar. */ get closed(): boolean; set closed(value: boolean); static ngAcceptInputType_closed: boolean | ''; } export declare const LINEAR_PROGRESS_DIRECTIVES: (typeof MdcLinearProgressDirective)[];