-
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
3de3f85
commit 21038fe
Showing
8 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
projects/ngsuite/src/lib/core/components/loading/animation/animation.component.html
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,13 +1,13 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"> | ||
<radialGradient id="a4" cx=".66" fx=".66" cy=".3125" fy=".3125" gradientTransform="scale(1.5)"> | ||
<stop offset="0" stop-color="#333333"></stop> | ||
<stop offset=".3" stop-color="#333333" stop-opacity=".9"></stop> | ||
<stop offset=".6" stop-color="#333333" stop-opacity=".6"></stop> | ||
<stop offset=".8" stop-color="#333333" stop-opacity=".3"></stop> | ||
<stop offset="1" stop-color="#333333" stop-opacity="0"></stop> | ||
<stop offset="0" stop-color="#FFFFFF"></stop> | ||
<stop offset=".3" stop-color="#FFFFFF" stop-opacity=".9"></stop> | ||
<stop offset=".6" stop-color="#FFFFFF" stop-opacity=".6"></stop> | ||
<stop offset=".8" stop-color="#FFFFFF" stop-opacity=".3"></stop> | ||
<stop offset="1" stop-color="#FFFFFF" stop-opacity="0"></stop> | ||
</radialGradient> | ||
<circle transform-origin="center" fill="none" stroke="url(#a4)" stroke-width="15" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70"> | ||
<animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="5" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform> | ||
</circle> | ||
<circle transform-origin="center" fill="none" opacity=".2" stroke="#333333" stroke-width="15" stroke-linecap="round" cx="100" cy="100" r="70"></circle> | ||
<circle transform-origin="center" fill="none" opacity=".2" stroke="#FFFFFF" stroke-width="15" stroke-linecap="round" cx="100" cy="100" r="70"></circle> | ||
</svg> |
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
6 changes: 5 additions & 1 deletion
6
projects/ngsuite/src/lib/core/components/loading/root/root.component.html
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 +1,5 @@ | ||
<ngs-loading-page [attr.data-visible]="visible"></ngs-loading-page> | ||
<ngs-loading-page | ||
[text]="text" | ||
[counter]="instances" | ||
[attr.data-visible]="visible" | ||
></ngs-loading-page> |
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,14 @@ | ||
import { Observable } from "rxjs"; | ||
import { LoadingWriter } from "./LoadingWriter"; | ||
|
||
export class LoadingReader { | ||
|
||
readonly text: Observable<string>; | ||
readonly counter: Observable<number>; | ||
|
||
constructor(writer: LoadingWriter) { | ||
this.text = writer.text.asObservable(); | ||
this.counter = writer.counter.asObservable(); | ||
} | ||
|
||
} |
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,13 @@ | ||
import { BehaviorSubject } from "rxjs"; | ||
|
||
export class LoadingWriter { | ||
|
||
readonly text: BehaviorSubject<string>; | ||
readonly counter: BehaviorSubject<number>; | ||
|
||
constructor() { | ||
this.text = new BehaviorSubject(''); | ||
this.counter = new BehaviorSubject(0); | ||
} | ||
|
||
} |
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,2 +1,4 @@ | ||
export * from './Loading'; | ||
export * from './LoadingWriter'; | ||
export * from './LoadingReader'; | ||
export * from './RouteLoading'; |