-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
12 changed files
with
159 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test list-loader | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
paths: | ||
- 'projects/list-loader/**' | ||
|
||
concurrency: | ||
group: ci-test-list-loader-group-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci_test_list-loader: | ||
uses: ./.github/workflows/ci_job.yml | ||
with: | ||
working-directory: projects/list-loader | ||
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]' | ||
node-versions: '[18, 20]' |
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,7 +1,14 @@ | ||
{ | ||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", | ||
"dest": "../../dist/list-loader", | ||
"assets": [ | ||
{ | ||
"input": "src/", | ||
"glob": "_list-loader-theme.scss", | ||
"output": "." | ||
} | ||
], | ||
"lib": { | ||
"entryFile": "src/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@use "@angular/material" as mat; | ||
|
||
@mixin theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$foreground: map-get($theme, foreground); | ||
|
||
list-loader > .container { | ||
> .spinner { | ||
> .bounce1 { | ||
background-color: mat.get-color-from-palette($foreground, disabled); | ||
} | ||
|
||
> .bounce2 { | ||
background-color: mat.get-color-from-palette($primary, 600); | ||
} | ||
|
||
> .bounce3 { | ||
background-color: mat.get-color-from-palette($accent, 500); | ||
} | ||
} | ||
|
||
> .label { | ||
color: mat.get-color-from-palette($foreground, text); | ||
} | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
projects/list-loader/src/example/example.component.spec.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
/* | ||
* Public API Surface of lib | ||
*/ | ||
|
||
export * from './example/example.service'; | ||
export * from './example/example.component'; | ||
export * from './list-loader.component'; |
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 @@ | ||
<div class="container"> | ||
<div class="spinner"> | ||
<div class="bounce1"></div> | ||
<div class="bounce2"></div> | ||
<div class="bounce3"></div> | ||
</div> | ||
<div class="label" *ngIf="label">{{ label }}</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
list-loader { | ||
display: flex; | ||
flex: 1 1 auto; | ||
height: 100%; | ||
align-items: center; | ||
|
||
>.container { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 1 auto; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
|
||
>.spinner { | ||
margin: auto; | ||
width: 60px; | ||
text-align: center; | ||
display: flex; | ||
justify-content: space-around; | ||
|
||
> div { | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 100%; | ||
display: inline-block; | ||
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both; | ||
animation: sk-bouncedelay 1.4s infinite ease-in-out both; | ||
} | ||
|
||
>.bounce1 { | ||
-webkit-animation-delay: -0.32s; | ||
animation-delay: -0.32s; | ||
} | ||
|
||
>.bounce2 { | ||
-webkit-animation-delay: -0.16s; | ||
animation-delay: -0.16s; | ||
} | ||
} | ||
|
||
@-webkit-keyframes sk-bouncedelay { | ||
0%, 80%, 100% { | ||
-webkit-transform: scale(0); | ||
} | ||
40% { | ||
-webkit-transform: scale(1.0); | ||
} | ||
} | ||
|
||
@keyframes sk-bouncedelay { | ||
0%, 80%, 100% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
} | ||
40% { | ||
-webkit-transform: scale(1.0); | ||
transform: scale(1.0); | ||
} | ||
} | ||
|
||
>.label { | ||
text-align: center; | ||
font-size: 0.9rem; | ||
margin-top: 1rem; | ||
} | ||
} | ||
} |
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 { CommonModule } from '@angular/common'; | ||
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'list-loader', | ||
templateUrl: './list-loader.component.html', | ||
styleUrls: ['./list-loader.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.None, | ||
standalone: true, | ||
imports: [ | ||
CommonModule | ||
] | ||
}) | ||
export class ListLoaderComponent { | ||
@Input() | ||
public label?: string; | ||
} |