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 { coerceNumberProperty } from '@angular/cdk/coercion';
|
---|
9 | import { Platform, _getShadowRoot } from '@angular/cdk/platform';
|
---|
10 | import { DOCUMENT } from '@angular/common';
|
---|
11 | import { ChangeDetectionStrategy, Component, ElementRef, Inject, InjectionToken, Input, Optional, ViewEncapsulation, } from '@angular/core';
|
---|
12 | import { mixinColor } from '@angular/material/core';
|
---|
13 | import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
---|
14 | /**
|
---|
15 | * Base reference size of the spinner.
|
---|
16 | * @docs-private
|
---|
17 | */
|
---|
18 | const BASE_SIZE = 100;
|
---|
19 | /**
|
---|
20 | * Base reference stroke width of the spinner.
|
---|
21 | * @docs-private
|
---|
22 | */
|
---|
23 | const BASE_STROKE_WIDTH = 10;
|
---|
24 | // Boilerplate for applying mixins to MatProgressSpinner.
|
---|
25 | /** @docs-private */
|
---|
26 | const _MatProgressSpinnerBase = mixinColor(class {
|
---|
27 | constructor(_elementRef) {
|
---|
28 | this._elementRef = _elementRef;
|
---|
29 | }
|
---|
30 | }, 'primary');
|
---|
31 | /** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
---|
32 | export const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS = new InjectionToken('mat-progress-spinner-default-options', {
|
---|
33 | providedIn: 'root',
|
---|
34 | factory: MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY,
|
---|
35 | });
|
---|
36 | /** @docs-private */
|
---|
37 | export function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY() {
|
---|
38 | return { diameter: BASE_SIZE };
|
---|
39 | }
|
---|
40 | // .0001 percentage difference is necessary in order to avoid unwanted animation frames
|
---|
41 | // for example because the animation duration is 4 seconds, .1% accounts to 4ms
|
---|
42 | // which are enough to see the flicker described in
|
---|
43 | // https://github.com/angular/components/issues/8984
|
---|
44 | const INDETERMINATE_ANIMATION_TEMPLATE = `
|
---|
45 | @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {
|
---|
46 | 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }
|
---|
47 | 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }
|
---|
48 | 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }
|
---|
49 | 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }
|
---|
50 |
|
---|
51 | 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }
|
---|
52 | 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }
|
---|
53 | 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }
|
---|
54 | 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }
|
---|
55 |
|
---|
56 | 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }
|
---|
57 | 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }
|
---|
58 | 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }
|
---|
59 | 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }
|
---|
60 |
|
---|
61 | 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }
|
---|
62 | 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }
|
---|
63 | 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }
|
---|
64 | 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }
|
---|
65 | }
|
---|
66 | `;
|
---|
67 | /**
|
---|
68 | * `<mat-progress-spinner>` component.
|
---|
69 | */
|
---|
70 | export class MatProgressSpinner extends _MatProgressSpinnerBase {
|
---|
71 | constructor(elementRef, platform, _document, animationMode, defaults) {
|
---|
72 | super(elementRef);
|
---|
73 | this._document = _document;
|
---|
74 | this._diameter = BASE_SIZE;
|
---|
75 | this._value = 0;
|
---|
76 | this._fallbackAnimation = false;
|
---|
77 | /** Mode of the progress circle */
|
---|
78 | this.mode = 'determinate';
|
---|
79 | const trackedDiameters = MatProgressSpinner._diameters;
|
---|
80 | this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();
|
---|
81 | // The base size is already inserted via the component's structural styles. We still
|
---|
82 | // need to track it so we don't end up adding the same styles again.
|
---|
83 | if (!trackedDiameters.has(_document.head)) {
|
---|
84 | trackedDiameters.set(_document.head, new Set([BASE_SIZE]));
|
---|
85 | }
|
---|
86 | this._fallbackAnimation = platform.EDGE || platform.TRIDENT;
|
---|
87 | this._noopAnimations = animationMode === 'NoopAnimations' &&
|
---|
88 | (!!defaults && !defaults._forceAnimations);
|
---|
89 | if (defaults) {
|
---|
90 | if (defaults.diameter) {
|
---|
91 | this.diameter = defaults.diameter;
|
---|
92 | }
|
---|
93 | if (defaults.strokeWidth) {
|
---|
94 | this.strokeWidth = defaults.strokeWidth;
|
---|
95 | }
|
---|
96 | }
|
---|
97 | }
|
---|
98 | /** The diameter of the progress spinner (will set width and height of svg). */
|
---|
99 | get diameter() { return this._diameter; }
|
---|
100 | set diameter(size) {
|
---|
101 | this._diameter = coerceNumberProperty(size);
|
---|
102 | this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();
|
---|
103 | // If this is set before `ngOnInit`, the style root may not have been resolved yet.
|
---|
104 | if (!this._fallbackAnimation && this._styleRoot) {
|
---|
105 | this._attachStyleNode();
|
---|
106 | }
|
---|
107 | }
|
---|
108 | /** Stroke width of the progress spinner. */
|
---|
109 | get strokeWidth() {
|
---|
110 | return this._strokeWidth || this.diameter / 10;
|
---|
111 | }
|
---|
112 | set strokeWidth(value) {
|
---|
113 | this._strokeWidth = coerceNumberProperty(value);
|
---|
114 | }
|
---|
115 | /** Value of the progress circle. */
|
---|
116 | get value() {
|
---|
117 | return this.mode === 'determinate' ? this._value : 0;
|
---|
118 | }
|
---|
119 | set value(newValue) {
|
---|
120 | this._value = Math.max(0, Math.min(100, coerceNumberProperty(newValue)));
|
---|
121 | }
|
---|
122 | ngOnInit() {
|
---|
123 | const element = this._elementRef.nativeElement;
|
---|
124 | // Note that we need to look up the root node in ngOnInit, rather than the constructor, because
|
---|
125 | // Angular seems to create the element outside the shadow root and then moves it inside, if the
|
---|
126 | // node is inside an `ngIf` and a ShadowDom-encapsulated component.
|
---|
127 | this._styleRoot = _getShadowRoot(element) || this._document.head;
|
---|
128 | this._attachStyleNode();
|
---|
129 | // On IE and Edge, we can't animate the `stroke-dashoffset`
|
---|
130 | // reliably so we fall back to a non-spec animation.
|
---|
131 | const animationClass = `mat-progress-spinner-indeterminate${this._fallbackAnimation ? '-fallback' : ''}-animation`;
|
---|
132 | element.classList.add(animationClass);
|
---|
133 | }
|
---|
134 | /** The radius of the spinner, adjusted for stroke width. */
|
---|
135 | _getCircleRadius() {
|
---|
136 | return (this.diameter - BASE_STROKE_WIDTH) / 2;
|
---|
137 | }
|
---|
138 | /** The view box of the spinner's svg element. */
|
---|
139 | _getViewBox() {
|
---|
140 | const viewBox = this._getCircleRadius() * 2 + this.strokeWidth;
|
---|
141 | return `0 0 ${viewBox} ${viewBox}`;
|
---|
142 | }
|
---|
143 | /** The stroke circumference of the svg circle. */
|
---|
144 | _getStrokeCircumference() {
|
---|
145 | return 2 * Math.PI * this._getCircleRadius();
|
---|
146 | }
|
---|
147 | /** The dash offset of the svg circle. */
|
---|
148 | _getStrokeDashOffset() {
|
---|
149 | if (this.mode === 'determinate') {
|
---|
150 | return this._getStrokeCircumference() * (100 - this._value) / 100;
|
---|
151 | }
|
---|
152 | // In fallback mode set the circle to 80% and rotate it with CSS.
|
---|
153 | if (this._fallbackAnimation && this.mode === 'indeterminate') {
|
---|
154 | return this._getStrokeCircumference() * 0.2;
|
---|
155 | }
|
---|
156 | return null;
|
---|
157 | }
|
---|
158 | /** Stroke width of the circle in percent. */
|
---|
159 | _getCircleStrokeWidth() {
|
---|
160 | return this.strokeWidth / this.diameter * 100;
|
---|
161 | }
|
---|
162 | /** Dynamically generates a style tag containing the correct animation for this diameter. */
|
---|
163 | _attachStyleNode() {
|
---|
164 | const styleRoot = this._styleRoot;
|
---|
165 | const currentDiameter = this._diameter;
|
---|
166 | const diameters = MatProgressSpinner._diameters;
|
---|
167 | let diametersForElement = diameters.get(styleRoot);
|
---|
168 | if (!diametersForElement || !diametersForElement.has(currentDiameter)) {
|
---|
169 | const styleTag = this._document.createElement('style');
|
---|
170 | styleTag.setAttribute('mat-spinner-animation', this._spinnerAnimationLabel);
|
---|
171 | styleTag.textContent = this._getAnimationText();
|
---|
172 | styleRoot.appendChild(styleTag);
|
---|
173 | if (!diametersForElement) {
|
---|
174 | diametersForElement = new Set();
|
---|
175 | diameters.set(styleRoot, diametersForElement);
|
---|
176 | }
|
---|
177 | diametersForElement.add(currentDiameter);
|
---|
178 | }
|
---|
179 | }
|
---|
180 | /** Generates animation styles adjusted for the spinner's diameter. */
|
---|
181 | _getAnimationText() {
|
---|
182 | const strokeCircumference = this._getStrokeCircumference();
|
---|
183 | return INDETERMINATE_ANIMATION_TEMPLATE
|
---|
184 | // Animation should begin at 5% and end at 80%
|
---|
185 | .replace(/START_VALUE/g, `${0.95 * strokeCircumference}`)
|
---|
186 | .replace(/END_VALUE/g, `${0.2 * strokeCircumference}`)
|
---|
187 | .replace(/DIAMETER/g, `${this._spinnerAnimationLabel}`);
|
---|
188 | }
|
---|
189 | /** Returns the circle diameter formatted for use with the animation-name CSS property. */
|
---|
190 | _getSpinnerAnimationLabel() {
|
---|
191 | // The string of a float point number will include a period ‘.’ character,
|
---|
192 | // which is not valid for a CSS animation-name.
|
---|
193 | return this.diameter.toString().replace('.', '_');
|
---|
194 | }
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * Tracks diameters of existing instances to de-dupe generated styles (default d = 100).
|
---|
198 | * We need to keep track of which elements the diameters were attached to, because for
|
---|
199 | * elements in the Shadow DOM the style tags are attached to the shadow root, rather
|
---|
200 | * than the document head.
|
---|
201 | */
|
---|
202 | MatProgressSpinner._diameters = new WeakMap();
|
---|
203 | MatProgressSpinner.decorators = [
|
---|
204 | { type: Component, args: [{
|
---|
205 | selector: 'mat-progress-spinner',
|
---|
206 | exportAs: 'matProgressSpinner',
|
---|
207 | host: {
|
---|
208 | 'role': 'progressbar',
|
---|
209 | 'class': 'mat-progress-spinner',
|
---|
210 | // set tab index to -1 so screen readers will read the aria-label
|
---|
211 | // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
|
---|
212 | 'tabindex': '-1',
|
---|
213 | '[class._mat-animation-noopable]': `_noopAnimations`,
|
---|
214 | '[style.width.px]': 'diameter',
|
---|
215 | '[style.height.px]': 'diameter',
|
---|
216 | '[attr.aria-valuemin]': 'mode === "determinate" ? 0 : null',
|
---|
217 | '[attr.aria-valuemax]': 'mode === "determinate" ? 100 : null',
|
---|
218 | '[attr.aria-valuenow]': 'mode === "determinate" ? value : null',
|
---|
219 | '[attr.mode]': 'mode',
|
---|
220 | },
|
---|
221 | inputs: ['color'],
|
---|
222 | template: "<!--\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\n center. The center of the circle will remain at the center of the mat-progress-spinner\n element containing the SVG. `focusable=\"false\"` prevents IE from allowing the user to\n tab into the SVG element.\n-->\n<!--\n All children need to be hidden for screen readers in order to support ChromeVox.\n More context in the issue: https://github.com/angular/components/issues/22165.\n-->\n<svg\n [style.width.px]=\"diameter\"\n [style.height.px]=\"diameter\"\n [attr.viewBox]=\"_getViewBox()\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n [ngSwitch]=\"mode === 'indeterminate'\"\n aria-hidden=\"true\">\n\n <!--\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\n Using a different element avoids the issue. An alternative to this is adding `display: none`\n for a split second and then removing it when switching between modes, but it's hard to know\n for how long to hide the element and it can cause the UI to blink.\n -->\n <circle\n *ngSwitchCase=\"true\"\n cx=\"50%\"\n cy=\"50%\"\n [attr.r]=\"_getCircleRadius()\"\n [style.animation-name]=\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\"\n [style.stroke-dashoffset.px]=\"_getStrokeDashOffset()\"\n [style.stroke-dasharray.px]=\"_getStrokeCircumference()\"\n [style.stroke-width.%]=\"_getCircleStrokeWidth()\"></circle>\n\n <circle\n *ngSwitchCase=\"false\"\n cx=\"50%\"\n cy=\"50%\"\n [attr.r]=\"_getCircleRadius()\"\n [style.stroke-dashoffset.px]=\"_getStrokeDashOffset()\"\n [style.stroke-dasharray.px]=\"_getStrokeCircumference()\"\n [style.stroke-width.%]=\"_getCircleStrokeWidth()\"></circle>\n</svg>\n",
|
---|
223 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
224 | encapsulation: ViewEncapsulation.None,
|
---|
225 | styles: [".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"]
|
---|
226 | },] }
|
---|
227 | ];
|
---|
228 | MatProgressSpinner.ctorParameters = () => [
|
---|
229 | { type: ElementRef },
|
---|
230 | { type: Platform },
|
---|
231 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] },
|
---|
232 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] },
|
---|
233 | { type: undefined, decorators: [{ type: Inject, args: [MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS,] }] }
|
---|
234 | ];
|
---|
235 | MatProgressSpinner.propDecorators = {
|
---|
236 | diameter: [{ type: Input }],
|
---|
237 | strokeWidth: [{ type: Input }],
|
---|
238 | mode: [{ type: Input }],
|
---|
239 | value: [{ type: Input }]
|
---|
240 | };
|
---|
241 | /**
|
---|
242 | * `<mat-spinner>` component.
|
---|
243 | *
|
---|
244 | * This is a component definition to be used as a convenience reference to create an
|
---|
245 | * indeterminate `<mat-progress-spinner>` instance.
|
---|
246 | */
|
---|
247 | export class MatSpinner extends MatProgressSpinner {
|
---|
248 | constructor(elementRef, platform, document, animationMode, defaults) {
|
---|
249 | super(elementRef, platform, document, animationMode, defaults);
|
---|
250 | this.mode = 'indeterminate';
|
---|
251 | }
|
---|
252 | }
|
---|
253 | MatSpinner.decorators = [
|
---|
254 | { type: Component, args: [{
|
---|
255 | selector: 'mat-spinner',
|
---|
256 | host: {
|
---|
257 | 'role': 'progressbar',
|
---|
258 | 'mode': 'indeterminate',
|
---|
259 | 'class': 'mat-spinner mat-progress-spinner',
|
---|
260 | '[class._mat-animation-noopable]': `_noopAnimations`,
|
---|
261 | '[style.width.px]': 'diameter',
|
---|
262 | '[style.height.px]': 'diameter',
|
---|
263 | },
|
---|
264 | inputs: ['color'],
|
---|
265 | template: "<!--\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\n center. The center of the circle will remain at the center of the mat-progress-spinner\n element containing the SVG. `focusable=\"false\"` prevents IE from allowing the user to\n tab into the SVG element.\n-->\n<!--\n All children need to be hidden for screen readers in order to support ChromeVox.\n More context in the issue: https://github.com/angular/components/issues/22165.\n-->\n<svg\n [style.width.px]=\"diameter\"\n [style.height.px]=\"diameter\"\n [attr.viewBox]=\"_getViewBox()\"\n preserveAspectRatio=\"xMidYMid meet\"\n focusable=\"false\"\n [ngSwitch]=\"mode === 'indeterminate'\"\n aria-hidden=\"true\">\n\n <!--\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\n Using a different element avoids the issue. An alternative to this is adding `display: none`\n for a split second and then removing it when switching between modes, but it's hard to know\n for how long to hide the element and it can cause the UI to blink.\n -->\n <circle\n *ngSwitchCase=\"true\"\n cx=\"50%\"\n cy=\"50%\"\n [attr.r]=\"_getCircleRadius()\"\n [style.animation-name]=\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\"\n [style.stroke-dashoffset.px]=\"_getStrokeDashOffset()\"\n [style.stroke-dasharray.px]=\"_getStrokeCircumference()\"\n [style.stroke-width.%]=\"_getCircleStrokeWidth()\"></circle>\n\n <circle\n *ngSwitchCase=\"false\"\n cx=\"50%\"\n cy=\"50%\"\n [attr.r]=\"_getCircleRadius()\"\n [style.stroke-dashoffset.px]=\"_getStrokeDashOffset()\"\n [style.stroke-dasharray.px]=\"_getStrokeCircumference()\"\n [style.stroke-width.%]=\"_getCircleStrokeWidth()\"></circle>\n</svg>\n",
|
---|
266 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
267 | encapsulation: ViewEncapsulation.None,
|
---|
268 | styles: [".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"]
|
---|
269 | },] }
|
---|
270 | ];
|
---|
271 | MatSpinner.ctorParameters = () => [
|
---|
272 | { type: ElementRef },
|
---|
273 | { type: Platform },
|
---|
274 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] },
|
---|
275 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] },
|
---|
276 | { type: undefined, decorators: [{ type: Inject, args: [MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS,] }] }
|
---|
277 | ];
|
---|
278 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3Mtc3Bpbm5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9wcm9ncmVzcy1zcGlubmVyL3Byb2dyZXNzLXNwaW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozt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