-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathprogress-spinner.d-96c586e2.d.ts
executable file
·97 lines (95 loc) · 4.57 KB
/
progress-spinner.d-96c586e2.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import * as i0 from '@angular/core';
import { InjectionToken, ElementRef } from '@angular/core';
import { T as ThemePalette } from './palette.d-f5ca9a2b.js';
/** Possible mode for a progress spinner. */
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
/** Default `mat-progress-spinner` options that can be overridden. */
interface MatProgressSpinnerDefaultOptions {
/**
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
*
* For information on applying color variants in M3, see
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
*/
color?: ThemePalette;
/** Diameter of the spinner. */
diameter?: number;
/** Width of the spinner's stroke. */
strokeWidth?: number;
/**
* Whether the animations should be force to be enabled, ignoring if the current environment is
* using NoopAnimationsModule.
*/
_forceAnimations?: boolean;
}
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
/**
* @docs-private
* @deprecated No longer used, will be removed.
* @breaking-change 21.0.0
*/
declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
declare class MatProgressSpinner {
readonly _elementRef: ElementRef<HTMLElement>;
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
_noopAnimations: boolean;
/**
* Theme color of the progress spinner. This API is supported in M2 themes only, it
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
*
* For information on applying color variants in M3, see
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
*/
get color(): string | null | undefined;
set color(value: string | null | undefined);
private _color;
private _defaultColor;
/** The element of the determinate spinner. */
_determinateCircle: ElementRef<HTMLElement>;
constructor(...args: unknown[]);
/**
* Mode of the progress bar.
*
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
* 'determinate'.
* Mirrored to mode attribute.
*/
mode: ProgressSpinnerMode;
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
get value(): number;
set value(v: number);
private _value;
/** The diameter of the progress spinner (will set width and height of svg). */
get diameter(): number;
set diameter(size: number);
private _diameter;
/** Stroke width of the progress spinner. */
get strokeWidth(): number;
set strokeWidth(value: number);
private _strokeWidth;
/** The radius of the spinner, adjusted for stroke width. */
_circleRadius(): number;
/** The view box of the spinner's svg element. */
_viewBox(): string;
/** The stroke circumference of the svg circle. */
_strokeCircumference(): number;
/** The dash offset of the svg circle. */
_strokeDashOffset(): number | null;
/** Stroke width of the circle in percent. */
_circleStrokeWidth(): number;
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_value: unknown;
static ngAcceptInputType_diameter: unknown;
static ngAcceptInputType_strokeWidth: unknown;
}
/**
* @deprecated Import Progress Spinner instead. Note that the
* `mat-spinner` selector isn't deprecated.
* @breaking-change 16.0.0
*/
declare const MatSpinner: typeof MatProgressSpinner;
export { MatProgressSpinner as M, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS as b, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY as c, MatSpinner as d };
export type { ProgressSpinnerMode as P, MatProgressSpinnerDefaultOptions as a };