[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { NumberInput } from '@angular/cdk/coercion';
|
---|
| 9 | import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy } from '@angular/core';
|
---|
| 10 | import { CanColor } from '@angular/material/core';
|
---|
| 11 | /** Last animation end data. */
|
---|
| 12 | export interface ProgressAnimationEnd {
|
---|
| 13 | value: number;
|
---|
| 14 | }
|
---|
| 15 | /** @docs-private */
|
---|
| 16 | declare const _MatProgressBarBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanColor> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanColor> & {
|
---|
| 17 | new (_elementRef: ElementRef): {
|
---|
| 18 | _elementRef: ElementRef;
|
---|
| 19 | };
|
---|
| 20 | };
|
---|
| 21 | /**
|
---|
| 22 | * Injection token used to provide the current location to `MatProgressBar`.
|
---|
| 23 | * Used to handle server-side rendering and to stub out during unit tests.
|
---|
| 24 | * @docs-private
|
---|
| 25 | */
|
---|
| 26 | export declare const MAT_PROGRESS_BAR_LOCATION: InjectionToken<MatProgressBarLocation>;
|
---|
| 27 | /**
|
---|
| 28 | * Stubbed out location for `MatProgressBar`.
|
---|
| 29 | * @docs-private
|
---|
| 30 | */
|
---|
| 31 | export interface MatProgressBarLocation {
|
---|
| 32 | getPathname: () => string;
|
---|
| 33 | }
|
---|
| 34 | /** @docs-private */
|
---|
| 35 | export declare function MAT_PROGRESS_BAR_LOCATION_FACTORY(): MatProgressBarLocation;
|
---|
| 36 | export declare type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
---|
| 37 | /**
|
---|
| 38 | * `<mat-progress-bar>` component.
|
---|
| 39 | */
|
---|
| 40 | export declare class MatProgressBar extends _MatProgressBarBase implements CanColor, AfterViewInit, OnDestroy {
|
---|
| 41 | private _ngZone;
|
---|
| 42 | _animationMode?: string | undefined;
|
---|
| 43 | constructor(elementRef: ElementRef, _ngZone: NgZone, _animationMode?: string | undefined,
|
---|
| 44 | /**
|
---|
| 45 | * @deprecated `location` parameter to be made required.
|
---|
| 46 | * @breaking-change 8.0.0
|
---|
| 47 | */
|
---|
| 48 | location?: MatProgressBarLocation);
|
---|
| 49 | /** Flag that indicates whether NoopAnimations mode is set to true. */
|
---|
| 50 | _isNoopAnimation: boolean;
|
---|
| 51 | /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
---|
| 52 | get value(): number;
|
---|
| 53 | set value(v: number);
|
---|
| 54 | private _value;
|
---|
| 55 | /** Buffer value of the progress bar. Defaults to zero. */
|
---|
| 56 | get bufferValue(): number;
|
---|
| 57 | set bufferValue(v: number);
|
---|
| 58 | private _bufferValue;
|
---|
| 59 | _primaryValueBar: ElementRef;
|
---|
| 60 | /**
|
---|
| 61 | * Event emitted when animation of the primary progress bar completes. This event will not
|
---|
| 62 | * be emitted when animations are disabled, nor will it be emitted for modes with continuous
|
---|
| 63 | * animations (indeterminate and query).
|
---|
| 64 | */
|
---|
| 65 | readonly animationEnd: EventEmitter<ProgressAnimationEnd>;
|
---|
| 66 | /** Reference to animation end subscription to be unsubscribed on destroy. */
|
---|
| 67 | private _animationEndSubscription;
|
---|
| 68 | /**
|
---|
| 69 | * Mode of the progress bar.
|
---|
| 70 | *
|
---|
| 71 | * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
---|
| 72 | * 'determinate'.
|
---|
| 73 | * Mirrored to mode attribute.
|
---|
| 74 | */
|
---|
| 75 | mode: ProgressBarMode;
|
---|
| 76 | /** ID of the progress bar. */
|
---|
| 77 | progressbarId: string;
|
---|
| 78 | /** Attribute to be used for the `fill` attribute on the internal `rect` element. */
|
---|
| 79 | _rectangleFillValue: string;
|
---|
| 80 | /** Gets the current transform value for the progress bar's primary indicator. */
|
---|
| 81 | _primaryTransform(): {
|
---|
| 82 | transform: string;
|
---|
| 83 | };
|
---|
| 84 | /**
|
---|
| 85 | * Gets the current transform value for the progress bar's buffer indicator. Only used if the
|
---|
| 86 | * progress mode is set to buffer, otherwise returns an undefined, causing no transformation.
|
---|
| 87 | */
|
---|
| 88 | _bufferTransform(): {
|
---|
| 89 | transform: string;
|
---|
| 90 | } | null;
|
---|
| 91 | ngAfterViewInit(): void;
|
---|
| 92 | ngOnDestroy(): void;
|
---|
| 93 | static ngAcceptInputType_value: NumberInput;
|
---|
| 94 | }
|
---|
| 95 | export {};
|
---|