mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(progress-spinner): remove md-progress-circle alias (#3735)
Removes the deprecated `md-progress-circle` alias.
This commit is contained in:
committed by
tinayuangao
parent
68db6ba118
commit
ccdd0f23cc
+3
-3
@@ -1,6 +1,6 @@
|
||||
<md-card>
|
||||
<md-card-content>
|
||||
<h2 class="example-h2">Progress circle configuration</h2>
|
||||
<h2 class="example-h2">Progress spinner configuration</h2>
|
||||
|
||||
<section class="example-section">
|
||||
<label class="example-margin">Color:</label>
|
||||
@@ -39,11 +39,11 @@
|
||||
<md-card-content>
|
||||
<h2 class="example-h2">Result</h2>
|
||||
|
||||
<md-progress-circle
|
||||
<md-progress-spinner
|
||||
class="example-margin"
|
||||
[attr.color]="color"
|
||||
[mode]="mode"
|
||||
[value]="value">
|
||||
</md-progress-circle>
|
||||
</md-progress-spinner>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
|
||||
@@ -59,7 +59,6 @@ export const MAT_ELEMENTS_SELECTOR = `
|
||||
mat-option,
|
||||
mat-placeholder,
|
||||
mat-progress-bar,
|
||||
mat-progress-circle,
|
||||
mat-pseudo-checkbox,
|
||||
mat-radio-button,
|
||||
mat-radio-group,
|
||||
@@ -120,7 +119,6 @@ export const MD_ELEMENTS_SELECTOR = `
|
||||
md-option,
|
||||
md-placeholder,
|
||||
md-progress-bar,
|
||||
md-progress-circle,
|
||||
md-pseudo-checkbox,
|
||||
md-radio-button,
|
||||
md-radio-group,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
$accent: map-get($theme, accent);
|
||||
$warn: map-get($theme, warn);
|
||||
|
||||
.mat-progress-spinner, .mat-progress-circle, .mat-spinner {
|
||||
.mat-progress-spinner, .mat-spinner {
|
||||
path {
|
||||
stroke: mat-color($primary, 600);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import {
|
||||
MdProgressSpinner,
|
||||
MdSpinner,
|
||||
MdProgressSpinnerCssMatStyler,
|
||||
MdProgressCircleCssMatStyler
|
||||
} from './progress-spinner';
|
||||
|
||||
|
||||
@@ -14,14 +13,12 @@ import {
|
||||
MdProgressSpinner,
|
||||
MdSpinner,
|
||||
CompatibilityModule,
|
||||
MdProgressSpinnerCssMatStyler,
|
||||
MdProgressCircleCssMatStyler
|
||||
MdProgressSpinnerCssMatStyler
|
||||
],
|
||||
declarations: [
|
||||
MdProgressSpinner,
|
||||
MdSpinner,
|
||||
MdProgressSpinnerCssMatStyler,
|
||||
MdProgressCircleCssMatStyler
|
||||
MdProgressSpinnerCssMatStyler
|
||||
],
|
||||
})
|
||||
class MdProgressSpinnerModule {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!--
|
||||
preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's
|
||||
center. The center of the circle with remain at the center of the md-progress-circle
|
||||
center. The center of the circle will remain at the center of the md-progress-spinner
|
||||
element containing the SVG.
|
||||
-->
|
||||
<svg viewBox="0 0 100 100"
|
||||
|
||||
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
@@ -44,25 +44,12 @@ type EasingFn = (currentTime: number, startValue: number,
|
||||
export class MdProgressSpinnerCssMatStyler {}
|
||||
|
||||
|
||||
/**
|
||||
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
||||
* @docs-private
|
||||
*/
|
||||
@Directive({
|
||||
selector: 'md-progress-circle, mat-progress-circle',
|
||||
host: {
|
||||
'[class.mat-progress-circle]': 'true'
|
||||
}
|
||||
})
|
||||
export class MdProgressCircleCssMatStyler {}
|
||||
|
||||
|
||||
/**
|
||||
* <md-progress-spinner> component.
|
||||
*/
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'md-progress-spinner, mat-progress-spinner, md-progress-circle, mat-progress-circle',
|
||||
selector: 'md-progress-spinner, mat-progress-spinner',
|
||||
host: {
|
||||
'role': 'progressbar',
|
||||
'[attr.aria-valuemin]': '_ariaValueMin',
|
||||
|
||||
Reference in New Issue
Block a user