-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progress-spinner): Rename ProgressCircle to ProgressSpinner (#2300)
* Rename ProgressCircle to ProgressSpinner * Make old selectors work * Added progres-circle file
- Loading branch information
1 parent
bde8734
commit 221c234
Showing
28 changed files
with
125 additions
and
120 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {browser, by, element} from 'protractor'; | ||
|
||
describe('progress-spinner', () => { | ||
beforeEach(() => browser.get('/progress-spinner')); | ||
|
||
it('should render a determinate progress spinner', () => { | ||
expect(element(by.css('md-progress-spinner')).isPresent()).toBe(true); | ||
}); | ||
|
||
it('should render an indeterminate progress spinner', () => { | ||
expect(element(by.css('md-progress-spinner[mode="indeterminate"]')).isPresent()).toBe(true); | ||
}); | ||
|
||
it('should render a spinner', () => { | ||
expect(element(by.css('md-spinner')).isPresent()).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<h1>Determinate</h1> | ||
<div class="demo-progress-spinner"> | ||
<md-progress-spinner mode="determinate" | ||
[value]="progressValue" | ||
class="md-primary"></md-progress-spinner> | ||
<md-progress-spinner [value]="progressValue" | ||
color="accent"></md-progress-spinner> | ||
</div> | ||
<span>Value: {{progressValue}}</span> | ||
<button md-raised-button (click)="step(10)">Increase</button> | ||
<button md-raised-button (click)="step(-10)">Decrease</button> | ||
|
||
|
||
|
||
<h1>Indeterminate</h1> | ||
<div class="demo-progress-spinner"> | ||
<md-progress-spinner mode="indeterminate"></md-progress-spinner> | ||
<md-progress-spinner mode="indeterminate" | ||
color="accent"></md-progress-spinner> | ||
<md-spinner></md-spinner> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
...progress-circle/progress-circle-demo.scss → ...ogress-spinner/progress-spinner-demo.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<md-progress-spinner [value]="57"></md-progress-spinner> | ||
<md-progress-spinner mode="indeterminate"></md-progress-spinner> | ||
<md-spinner></md-spinner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'progress-spinner-e2e', | ||
templateUrl: 'progress-spinner-e2e.html', | ||
}) | ||
export class ProgressSpinnerE2E { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './progress-circle'; | ||
export * from './progress-spinner'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** @deprecated */ | ||
export {MdProgressSpinner as MdProgressCircle} from './progress-spinner'; | ||
/** @deprecated */ | ||
export {MdProgressSpinnerModule as MdProgressCircleModule} from './progress-spinner'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.