-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
661fc6a
commit f4823d7
Showing
12 changed files
with
97 additions
and
8 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@uiowa/spinner", | ||
"version": "13.0.0", | ||
"version": "13.1.0", | ||
"author": "Changhui Xu <[email protected]>", | ||
"description": "(action-spinner) rotating circle spinner, used for actions such as button clicks. (loading-bar) beeping blocks, used for loading promises. (uiowa-ring) rotating golden and black spinner, used as loading indicator.", | ||
"license": "MIT", | ||
|
3 changes: 2 additions & 1 deletion
3
projects/uiowa/spinner/src/lib/action-spinner/action-spinner.component.ts
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
3 changes: 2 additions & 1 deletion
3
projects/uiowa/spinner/src/lib/loading-bar/loading-bar.component.ts
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
30 changes: 30 additions & 0 deletions
30
projects/uiowa/spinner/src/lib/loading-placeholder/loading-placeholder.component.css
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,30 @@ | ||
.placeholder-item { | ||
box-shadow: 0 4px 10px 0 rgba(33, 33, 33, 0.15); | ||
position: relative; | ||
overflow: hidden; | ||
height: 100%; | ||
} | ||
.placeholder-item::before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
left: -200px; | ||
top: 0; | ||
height: 100%; | ||
width: 200px; | ||
background: linear-gradient( | ||
to right, | ||
transparent 0%, | ||
#e8e8e8 50%, | ||
transparent 100% | ||
); | ||
animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) infinite; | ||
} | ||
@keyframes load { | ||
from { | ||
left: -200px; | ||
} | ||
to { | ||
left: 100%; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
projects/uiowa/spinner/src/lib/loading-placeholder/loading-placeholder.component.ts
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,18 @@ | ||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
Input, | ||
OnInit, | ||
} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'loading-placeholder', | ||
template: `<div class="placeholder-item"></div>`, | ||
styleUrls: ['./loading-placeholder.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class LoadingPlaceholderComponent implements OnInit { | ||
constructor() {} | ||
|
||
ngOnInit(): void {} | ||
} |
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
3 changes: 2 additions & 1 deletion
3
projects/uiowa/spinner/src/lib/uiowa-ring/uiowa-ring.component.ts
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