| import { ChangeDetectorRef, ElementRef, DoCheck } from '@angular/core'; |
| import { AnimationEvent } from '@angular/animations'; |
| import { TemplatePortal } from '@angular/cdk/portal'; |
| import { Observable } from 'rxjs'; |
| export declare enum LoadingType { |
| Circular = "circular", |
| Linear = "linear" |
| } |
| export declare enum LoadingMode { |
| Determinate = "determinate", |
| Indeterminate = "indeterminate" |
| } |
| export declare enum LoadingStrategy { |
| Overlay = "overlay", |
| Replace = "replace" |
| } |
| export declare enum LoadingStyle { |
| FullScreen = "fullscreen", |
| Overlay = "overlay", |
| None = "none" |
| } |
| export declare const TD_CIRCLE_DIAMETER: number; |
| export declare class TdLoadingComponent implements DoCheck { |
| private _elementRef; |
| private _changeDetectorRef; |
| private _animationIn; |
| private _animationOut; |
| private _mode; |
| private _defaultMode; |
| private _value; |
| private _circleDiameter; |
| /** |
| * Flag for animation |
| */ |
| animation: boolean; |
| /** |
| * Content injected into loading component. |
| */ |
| content: TemplatePortal<any>; |
| /** |
| * Sets mode of [TdLoadingComponent] to LoadingMode.Determinate or LoadingMode.Indeterminate |
| */ |
| mode: LoadingMode; |
| /** |
| * Sets value of [TdLoadingComponent] if mode is 'LoadingMode.Determinate' |
| */ |
| value: number; |
| style: LoadingStyle; |
| /** |
| * height: number |
| * Sets height of [TdLoadingComponent]. |
| */ |
| height: number; |
| /** |
| * type: LoadingType |
| * Sets type of [TdLoadingComponent] rendered. |
| */ |
| type: LoadingType; |
| /** |
| * color: primary' | 'accent' | 'warn' |
| * Sets theme color of [TdLoadingComponent] rendered. |
| */ |
| color: 'primary' | 'accent' | 'warn'; |
| constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef); |
| ngDoCheck(): void; |
| getHeight(): string; |
| getCircleDiameter(): number; |
| getCircleStrokeWidth(): number; |
| isCircular(): boolean; |
| isLinear(): boolean; |
| isFullScreen(): boolean; |
| isOverlay(): boolean; |
| animationComplete(event: AnimationEvent): void; |
| inAnimationCompleted(): void; |
| outAnimationCompleted(): void; |
| /** |
| * Starts in animation and returns an observable for completition event. |
| */ |
| startInAnimation(): Observable<any>; |
| /** |
| * Starts out animation and returns an observable for completition event. |
| */ |
| startOutAnimation(): Observable<any>; |
| /** |
| * Calculate the proper diameter for the circle and set it |
| */ |
| private _setCircleDiameter; |
| /** |
| * Returns the host height of the loading component |
| */ |
| private _hostHeight; |
| } |