Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shared): split shared module for optimal loading
1. removed MaterialModule, 2. fixed 'escape form zone' issue for ngxs, 3. explicitly loading required material modules
- Loading branch information
Showing
54 changed files
with
2,350 additions
and
1,460 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
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
16 changes: 16 additions & 0 deletions
16
libs/experiments/src/lib/containers/dashing/dashing.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="grid-container" style="height: 615px; overflow: hidden;"> | ||
<mat-grid-list cols="8" rowHeight="1:1" gutterSize="15px"> | ||
<mat-grid-tile *ngFor="let card of cards; let i = index;" | ||
[colspan]="card.cols" [rowspan]="card.rows"> | ||
<cdk-drop-list [cdkDropListConnectedTo]="drops" [cdkDropListData]="i" > | ||
<mat-card cdkDrag (cdkDragEntered)="entered($event)" [cdkDragData]="i" | ||
class="dashboard-card" [style.backgroundColor]="card.color"> | ||
<mat-icon cdkDragHandle class="more-button">drag_handle</mat-icon> | ||
<mat-card-content class="dashboard-card-content"> | ||
<h1>{{card.title}}</h1> | ||
</mat-card-content> | ||
</mat-card> | ||
</cdk-drop-list> | ||
</mat-grid-tile> | ||
</mat-grid-list> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
libs/experiments/src/lib/containers/dashing/dashing.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,39 @@ | ||
.grid-container { | ||
margin: 10px; | ||
} | ||
|
||
.dashboard-card { | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
right: 0px; | ||
bottom: 0px; | ||
} | ||
|
||
.more-button { | ||
float: right; | ||
font-size: 2em; | ||
} | ||
|
||
.dashboard-card-content { | ||
text-align: center; | ||
} | ||
|
||
.cdk-drop-list { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
|
||
.cdk-drag-preview { | ||
box-sizing: border-box; | ||
opacity: 0.5; | ||
} | ||
|
||
.cdk-drag-animating { | ||
transition: unset; | ||
} | ||
|
||
.cdk-drag-placeholder { | ||
display: none; | ||
} |
Oops, something went wrong.