| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- import { coerceNumberProperty } from '@angular/cdk/coercion';
- import * as i1 from '@angular/cdk/platform';
- import { _getShadowRoot } from '@angular/cdk/platform';
- import * as i2 from '@angular/cdk/scrolling';
- import * as i3 from '@angular/common';
- import { DOCUMENT, CommonModule } from '@angular/common';
- import * as i0 from '@angular/core';
- import { CSP_NONCE, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, Input, NgModule } from '@angular/core';
- import { mixinColor, MatCommonModule } from '@angular/material/core';
- import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
- import { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS } from '@angular/material/progress-spinner';
- export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS as MAT_LEGACY_PROGRESS_SPINNER_DEFAULT_OPTIONS, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY as MAT_LEGACY_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY } from '@angular/material/progress-spinner';
- import { Subscription } from 'rxjs';
- /**
- * Base reference size of the spinner.
- * @docs-private
- */
- const BASE_SIZE = 100;
- /**
- * Base reference stroke width of the spinner.
- * @docs-private
- */
- const BASE_STROKE_WIDTH = 10;
- // Boilerplate for applying mixins to MatLegacyProgressSpinner.
- /** @docs-private */
- const _MatProgressSpinnerBase = mixinColor(class {
- constructor(_elementRef) {
- this._elementRef = _elementRef;
- }
- }, 'primary');
- // .0001 percentage difference is necessary in order to avoid unwanted animation frames
- // for example because the animation duration is 4 seconds, .1% accounts to 4ms
- // which are enough to see the flicker described in
- // https://github.com/angular/components/issues/8984
- const INDETERMINATE_ANIMATION_TEMPLATE = `
- @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {
- 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }
- 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }
- 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }
- 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }
- 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }
- 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }
- 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }
- 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }
- 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }
- 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }
- 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }
- 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }
- 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }
- 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }
- 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }
- 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }
- }
- `;
- /**
- * `<mat-progress-spinner>` component.
- * @deprecated Use `MatProgressSpinner` from `@angular/material/progress-spinner` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
- * @breaking-change 17.0.0
- */
- class MatLegacyProgressSpinner extends _MatProgressSpinnerBase {
- /**
- * Tracks diameters of existing instances to de-dupe generated styles (default d = 100).
- * We need to keep track of which elements the diameters were attached to, because for
- * elements in the Shadow DOM the style tags are attached to the shadow root, rather
- * than the document head.
- */
- static { this._diameters = new WeakMap(); }
- /** The diameter of the progress spinner (will set width and height of svg). */
- get diameter() {
- return this._diameter;
- }
- set diameter(size) {
- this._diameter = coerceNumberProperty(size);
- this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();
- // If this is set before `ngOnInit`, the style root may not have been resolved yet.
- if (this._styleRoot) {
- this._attachStyleNode();
- }
- }
- /** Stroke width of the progress spinner. */
- get strokeWidth() {
- return this._strokeWidth || this.diameter / 10;
- }
- set strokeWidth(value) {
- this._strokeWidth = coerceNumberProperty(value);
- }
- /** Value of the progress circle. */
- get value() {
- return this.mode === 'determinate' ? this._value : 0;
- }
- set value(newValue) {
- this._value = Math.max(0, Math.min(100, coerceNumberProperty(newValue)));
- }
- constructor(elementRef, _platform, _document, animationMode, defaults,
- /**
- * @deprecated `changeDetectorRef`, `viewportRuler` and `ngZone`
- * parameters to become required.
- * @breaking-change 14.0.0
- */
- changeDetectorRef, viewportRuler, ngZone, _nonce) {
- super(elementRef);
- this._document = _document;
- this._nonce = _nonce;
- this._diameter = BASE_SIZE;
- this._value = 0;
- this._resizeSubscription = Subscription.EMPTY;
- /** Mode of the progress circle */
- this.mode = 'determinate';
- const trackedDiameters = MatLegacyProgressSpinner._diameters;
- this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();
- // The base size is already inserted via the component's structural styles. We still
- // need to track it so we don't end up adding the same styles again.
- if (!trackedDiameters.has(_document.head)) {
- trackedDiameters.set(_document.head, new Set([BASE_SIZE]));
- }
- this._noopAnimations =
- animationMode === 'NoopAnimations' && !!defaults && !defaults._forceAnimations;
- if (elementRef.nativeElement.nodeName.toLowerCase() === 'mat-spinner') {
- this.mode = 'indeterminate';
- }
- if (defaults) {
- if (defaults.color) {
- this.color = this.defaultColor = defaults.color;
- }
- if (defaults.diameter) {
- this.diameter = defaults.diameter;
- }
- if (defaults.strokeWidth) {
- this.strokeWidth = defaults.strokeWidth;
- }
- }
- // Safari has an issue where the circle isn't positioned correctly when the page has a
- // different zoom level from the default. This handler triggers a recalculation of the
- // `transform-origin` when the page zoom level changes.
- // See `_getCircleTransformOrigin` for more info.
- // @breaking-change 14.0.0 Remove null checks for `_changeDetectorRef`,
- // `viewportRuler` and `ngZone`.
- if (_platform.isBrowser && _platform.SAFARI && viewportRuler && changeDetectorRef && ngZone) {
- this._resizeSubscription = viewportRuler.change(150).subscribe(() => {
- // When the window is resize while the spinner is in `indeterminate` mode, we
- // have to mark for check so the transform origin of the circle can be recomputed.
- if (this.mode === 'indeterminate') {
- ngZone.run(() => changeDetectorRef.markForCheck());
- }
- });
- }
- }
- ngOnInit() {
- const element = this._elementRef.nativeElement;
- // Note that we need to look up the root node in ngOnInit, rather than the constructor, because
- // Angular seems to create the element outside the shadow root and then moves it inside, if the
- // node is inside an `ngIf` and a ShadowDom-encapsulated component.
- this._styleRoot = _getShadowRoot(element) || this._document.head;
- this._attachStyleNode();
- element.classList.add('mat-progress-spinner-indeterminate-animation');
- }
- ngOnDestroy() {
- this._resizeSubscription.unsubscribe();
- }
- /** The radius of the spinner, adjusted for stroke width. */
- _getCircleRadius() {
- return (this.diameter - BASE_STROKE_WIDTH) / 2;
- }
- /** The view box of the spinner's svg element. */
- _getViewBox() {
- const viewBox = this._getCircleRadius() * 2 + this.strokeWidth;
- return `0 0 ${viewBox} ${viewBox}`;
- }
- /** The stroke circumference of the svg circle. */
- _getStrokeCircumference() {
- return 2 * Math.PI * this._getCircleRadius();
- }
- /** The dash offset of the svg circle. */
- _getStrokeDashOffset() {
- if (this.mode === 'determinate') {
- return (this._getStrokeCircumference() * (100 - this._value)) / 100;
- }
- return null;
- }
- /** Stroke width of the circle in percent. */
- _getCircleStrokeWidth() {
- return (this.strokeWidth / this.diameter) * 100;
- }
- /** Gets the `transform-origin` for the inner circle element. */
- _getCircleTransformOrigin(svg) {
- // Safari has an issue where the `transform-origin` doesn't work as expected when the page
- // has a different zoom level from the default. The problem appears to be that a zoom
- // is applied on the `svg` node itself. We can work around it by calculating the origin
- // based on the zoom level. On all other browsers the `currentScale` appears to always be 1.
- const scale = (svg.currentScale ?? 1) * 50;
- return `${scale}% ${scale}%`;
- }
- /** Dynamically generates a style tag containing the correct animation for this diameter. */
- _attachStyleNode() {
- const styleRoot = this._styleRoot;
- const currentDiameter = this._diameter;
- const diameters = MatLegacyProgressSpinner._diameters;
- let diametersForElement = diameters.get(styleRoot);
- if (!diametersForElement || !diametersForElement.has(currentDiameter)) {
- const styleTag = this._document.createElement('style');
- if (this._nonce) {
- styleTag.nonce = this._nonce;
- }
- styleTag.setAttribute('mat-spinner-animation', this._spinnerAnimationLabel);
- styleTag.textContent = this._getAnimationText();
- styleRoot.appendChild(styleTag);
- if (!diametersForElement) {
- diametersForElement = new Set();
- diameters.set(styleRoot, diametersForElement);
- }
- diametersForElement.add(currentDiameter);
- }
- }
- /** Generates animation styles adjusted for the spinner's diameter. */
- _getAnimationText() {
- const strokeCircumference = this._getStrokeCircumference();
- return (INDETERMINATE_ANIMATION_TEMPLATE
- // Animation should begin at 5% and end at 80%
- .replace(/START_VALUE/g, `${0.95 * strokeCircumference}`)
- .replace(/END_VALUE/g, `${0.2 * strokeCircumference}`)
- .replace(/DIAMETER/g, `${this._spinnerAnimationLabel}`));
- }
- /** Returns the circle diameter formatted for use with the animation-name CSS property. */
- _getSpinnerAnimationLabel() {
- // The string of a float point number will include a period ‘.’ character,
- // which is not valid for a CSS animation-name.
- return this.diameter.toString().replace('.', '_');
- }
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinner, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: DOCUMENT, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS }, { token: i0.ChangeDetectorRef }, { token: i2.ViewportRuler }, { token: i0.NgZone }, { token: CSP_NONCE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatLegacyProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: { color: "color", diameter: "diameter", strokeWidth: "strokeWidth", mode: "mode", value: "value" }, host: { attributes: { "role": "progressbar", "tabindex": "-1" }, properties: { "class._mat-animation-noopable": "_noopAnimations", "style.width.px": "diameter", "style.height.px": "diameter", "attr.aria-valuemin": "mode === \"determinate\" ? 0 : null", "attr.aria-valuemax": "mode === \"determinate\" ? 100 : null", "attr.aria-valuenow": "mode === \"determinate\" ? value : null", "attr.mode": "mode" }, classAttribute: "mat-progress-spinner mat-spinner" }, exportAs: ["matProgressSpinner"], usesInheritance: true, ngImport: i0, 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.\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 #svg>\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()\"\n [style.transform-origin]=\"_getCircleTransformOrigin(svg)\"></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()\"\n [style.transform-origin]=\"_getCircleTransformOrigin(svg)\"></circle>\n</svg>\n", 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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"], dependencies: [{ kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
- }
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinner, decorators: [{
- type: Component,
- args: [{ selector: 'mat-progress-spinner, mat-spinner', exportAs: 'matProgressSpinner', host: {
- 'role': 'progressbar',
- // `mat-spinner` is here for backward compatibility.
- 'class': 'mat-progress-spinner mat-spinner',
- // set tab index to -1 so screen readers will read the aria-label
- // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
- 'tabindex': '-1',
- '[class._mat-animation-noopable]': `_noopAnimations`,
- '[style.width.px]': 'diameter',
- '[style.height.px]': 'diameter',
- '[attr.aria-valuemin]': 'mode === "determinate" ? 0 : null',
- '[attr.aria-valuemax]': 'mode === "determinate" ? 100 : null',
- '[attr.aria-valuenow]': 'mode === "determinate" ? value : null',
- '[attr.mode]': 'mode',
- }, inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, 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.\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 #svg>\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()\"\n [style.transform-origin]=\"_getCircleTransformOrigin(svg)\"></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()\"\n [style.transform-origin]=\"_getCircleTransformOrigin(svg)\"></circle>\n</svg>\n", 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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"] }]
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: undefined, decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [DOCUMENT]
- }] }, { type: undefined, decorators: [{
- type: Optional
- }, {
- type: Inject,
- args: [ANIMATION_MODULE_TYPE]
- }] }, { type: undefined, decorators: [{
- type: Inject,
- args: [MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS]
- }] }, { type: i0.ChangeDetectorRef }, { type: i2.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{
- type: Inject,
- args: [CSP_NONCE]
- }, {
- type: Optional
- }] }]; }, propDecorators: { diameter: [{
- type: Input
- }], strokeWidth: [{
- type: Input
- }], mode: [{
- type: Input
- }], value: [{
- type: Input
- }] } });
- /**
- * @deprecated Use `MatProgressSpinnerModule` from `@angular/material/progress-spinner` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
- * @breaking-change 17.0.0
- */
- class MatLegacyProgressSpinnerModule {
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinnerModule, declarations: [MatLegacyProgressSpinner], imports: [MatCommonModule, CommonModule], exports: [MatLegacyProgressSpinner, MatCommonModule] }); }
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinnerModule, imports: [MatCommonModule, CommonModule, MatCommonModule] }); }
- }
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatLegacyProgressSpinnerModule, decorators: [{
- type: NgModule,
- args: [{
- imports: [MatCommonModule, CommonModule],
- exports: [MatLegacyProgressSpinner, MatCommonModule],
- declarations: [MatLegacyProgressSpinner],
- }]
- }] });
- /**
- * @deprecated Import Progress Spinner instead. Note that the
- * `mat-spinner` selector isn't deprecated.
- * @breaking-change 8.0.0
- */
- // tslint:disable-next-line:variable-name
- const MatLegacySpinner = MatLegacyProgressSpinner;
- /**
- * Generated bundle index. Do not edit.
- */
- export { MatLegacyProgressSpinner, MatLegacyProgressSpinnerModule, MatLegacySpinner };
- //# sourceMappingURL=legacy-progress-spinner.mjs.map
|