This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progressLinear, progressCircular): sync logic, fix linear animati…
…ons, perf upgrades synchronize progressLinear with similar logic used in progressCircular. * improve animation performances * watch md-mode for changes * refactor animation SCSS * enable hiding and no-animations with undefined/empty md-mode attributes * for both indicators, use `display:inline-block;` * update demos with enable switch * fix query mode * update Select to use enhanced progressCircular component * fix autocomplete styling of progress-linear.md-mode-indeterminate BREAKING-CHANGES Before: ```css md-progress-linear { display: block; } md-progress-circular { // display not set // position not set } ``` ```css md-progress-linear { display: inline-block; position: relative; } md-progress-circular { display: inline-block; position: relative; } ``` Fixes #4421. Fixes #4409. Fixes #2540. Fixes #2364. Fixes #1926. Fixes #3802.
- Loading branch information
1 parent
ffbcff3
commit 7991599
Showing
11 changed files
with
366 additions
and
184 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,7 @@ md-progress-circular { | |
#loaders > h5 { | ||
padding-top: 8px; | ||
} | ||
|
||
#loaders > p { | ||
margin-right: 20px; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
<div ng-controller="AppCtrl" layout="column" layout-margin style="padding:25px;"> | ||
<div ng-controller="AppCtrl as vm" layout="column" layout-margin style="padding:25px;"> | ||
|
||
<h2 class="md-title">Determinate</h2> | ||
<p>For operations where the percentage of the operation completed can be determined, use a determinate indicator. They give users a quick sense of how long an operation will take.</p> | ||
<md-progress-linear md-mode="determinate" value="{{determinateValue}}"></md-progress-linear> | ||
<p>Buffer indicates loading from the server</p> | ||
<md-progress-linear class="md-warn" md-mode="buffer" value="{{determinateValue}}" md-buffer-value="{{determinateValue2}}"></md-progress-linear> | ||
|
||
<p> | ||
For operations where the percentage of the operation completed can be determined, use a <b>determinate</b> indicator. | ||
They give users a quick sense of how long an operation will take. | ||
</p> | ||
<md-progress-linear md-mode="determinate" value="{{vm.determinateValue}}"></md-progress-linear> | ||
|
||
<h4 class="md-title">Indeterminate</h4> | ||
<p>For operations where the user is asked to wait a moment while something finishes up, and it's not necessary to expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.</p> | ||
<p> | ||
For operations where the user is asked to wait a moment while something finishes up, and it's not | ||
necessary to expose what's happening behind the scenes and how long it will take, use an | ||
<b>indeterminate</b> indicator: | ||
</p> | ||
<md-progress-linear md-mode="indeterminate"></md-progress-linear> | ||
<p>Query indicates pre-loading situation until the loading can actually be made</p> | ||
<md-progress-linear md-mode="query"></md-progress-linear> | ||
|
||
<h4 class="md-title">Buffer</h4> | ||
<p> | ||
For operations where the user wants to indicate some activity or loading from the server, use the <b>buffer</b> indicator: | ||
</p> | ||
<md-progress-linear class="md-warn" md-mode="{{vm.modes[0]}}" value="{{vm.determinateValue}}" | ||
md-buffer-value="{{vm.determinateValue2}}"></md-progress-linear> | ||
|
||
<h4 class="md-title">Query</h4> | ||
<p> | ||
For situations where the user wants to indicate pre-loading (until the loading can actually be made), use the <b>query</b> indicator: | ||
</p> | ||
<md-progress-linear md-mode="{{vm.modes[1]}}"></md-progress-linear> | ||
|
||
|
||
<hr> | ||
|
||
<div layout="row" id="loaders"> | ||
|
||
<p>'Query' & 'Buffer' linear progress indicators: </p> | ||
|
||
<h5>Off</h5> | ||
<md-switch | ||
ng-model="vm.activated" | ||
ng-change="vm.toggleActivation()" | ||
aria-label="Enable Indicators"> | ||
<h5>On</h5> | ||
</md-switch> | ||
</div> | ||
|
||
<p class="small"> | ||
Note: the above switch simply sets the <code>md-mode = ""</code> to easily | ||
disable the animations and hide the Query and Buffer progress indicators.</p> | ||
|
||
|
||
</div> |
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
Oops, something went wrong.