-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support table loader #INFR-6879 (#329)
- Loading branch information
Showing
12 changed files
with
214 additions
and
5 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
90 changes: 90 additions & 0 deletions
90
packages/gantt/src/components/loader/loader.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@use '../../styles/variables.scss'; | ||
|
||
.gantt-loader { | ||
&-overlay { | ||
position: absolute; | ||
width: 100%; | ||
height: calc(100% - 40px); | ||
top: 40px; | ||
left: 0; | ||
background: rgba(255, 255, 255, 0.6); | ||
z-index: 1001; | ||
} | ||
|
||
&-wrapper { | ||
position: absolute; | ||
padding-top: 20px; | ||
top: 0; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
&-loading { | ||
display: inline-block; | ||
position: relative; | ||
height: 8px; | ||
border-radius: 4px; | ||
transform: translateX(-18px); | ||
|
||
&:before, | ||
&:after { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
height: 8px; | ||
width: 8px; | ||
border-radius: 4px; | ||
} | ||
|
||
&:before { | ||
animation: gantt-loader-loading-ellipsis-b 1s ease-in-out infinite; | ||
background: variables.$gantt-loader-loading-color; | ||
opacity: 0.4; | ||
} | ||
|
||
&:after { | ||
animation: gantt-loader-loading-ellipsis-a 1s ease-in-out infinite; | ||
background: variables.$gantt-loader-loading-color; | ||
opacity: 0.8; | ||
} | ||
|
||
&-spot { | ||
position: absolute; | ||
left: 13px; | ||
height: 8px; | ||
width: 8px; | ||
background: variables.$gantt-loader-loading-color; | ||
border-radius: 4px; | ||
} | ||
} | ||
} | ||
|
||
@keyframes gantt-loader-loading-ellipsis-b { | ||
0% { | ||
left: 0; | ||
transform: scale(1.1); | ||
} | ||
50% { | ||
left: 25px; | ||
transform: scale(1); | ||
} | ||
100% { | ||
left: 0; | ||
transform: scale(1.1); | ||
} | ||
} | ||
|
||
@keyframes gantt-loader-loading-ellipsis-a { | ||
0% { | ||
left: 25px; | ||
transform: scale(1.1); | ||
} | ||
50% { | ||
left: 0; | ||
transform: scale(1); | ||
} | ||
100% { | ||
left: 25px; | ||
transform: scale(1.1); | ||
} | ||
} |
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,16 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gantt-loader', | ||
template: ` | ||
<div class="gantt-loader-wrapper"> | ||
<div class="gantt-loader-loading"> | ||
<span class="gantt-loader-loading-spot"></span> | ||
</div> | ||
</div> | ||
`, | ||
host: { | ||
class: 'gantt-loader gantt-loader-overlay' | ||
} | ||
}) | ||
export class GanttLoaderComponent {} |
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 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