forked from porscheinformatik/material-addons
-
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.
implemented page layouts, implemented demo for page layouts (porschei…
- Loading branch information
1 parent
17d50d0
commit c312c39
Showing
44 changed files
with
1,145 additions
and
150 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
projects/material-addons/src/lib/content-panel/content-header/content-header.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,3 @@ | ||
<div class="content-header"> | ||
<ng-content></ng-content> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
projects/material-addons/src/lib/content-panel/content-header/content-header.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,3 @@ | ||
.content-header { | ||
padding-right: 0.5rem; | ||
} |
15 changes: 15 additions & 0 deletions
15
projects/material-addons/src/lib/content-panel/content-header/content-header.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mad-content-header', | ||
templateUrl: './content-header.component.html', | ||
styleUrls: ['./content-header.component.scss'] | ||
}) | ||
export class ContentHeaderComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
...tent-panel/content-panel-container-content/content-panel-container-content.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 @@ | ||
<ng-content></ng-content> |
7 changes: 7 additions & 0 deletions
7
...tent-panel/content-panel-container-content/content-panel-container-content.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,7 @@ | ||
:host { | ||
flex: 1 1 auto; | ||
overflow-y: auto; | ||
border-top: 0.05rem solid #cccccc; | ||
padding: 1rem; | ||
height: 1rem; | ||
} |
15 changes: 15 additions & 0 deletions
15
...ontent-panel/content-panel-container-content/content-panel-container-content.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mad-content-panel-container-content', | ||
templateUrl: './content-panel-container-content.component.html', | ||
styleUrls: ['./content-panel-container-content.component.scss'] | ||
}) | ||
export class ContentPanelContainerContentComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
...ontent-panel/content-panel-container-footer/content-panel-container-footer.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 @@ | ||
<ng-content></ng-content> |
9 changes: 9 additions & 0 deletions
9
...ontent-panel/content-panel-container-footer/content-panel-container-footer.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,9 @@ | ||
:host { | ||
border-top: 0.05rem solid #cccccc; | ||
padding: 0.25rem 1rem; | ||
min-height: 2rem; | ||
display: flex; | ||
flex: 0 0 auto; | ||
align-items: center; | ||
min-height: 2rem; | ||
} |
15 changes: 15 additions & 0 deletions
15
.../content-panel/content-panel-container-footer/content-panel-container-footer.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mad-content-panel-container-footer', | ||
templateUrl: './content-panel-container-footer.component.html', | ||
styleUrls: ['./content-panel-container-footer.component.scss'] | ||
}) | ||
export class ContentPanelContainerFooterComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
...dons/src/lib/content-panel/content-panel-container/content-panel-container.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,4 @@ | ||
<div class="content-panel-outer-wrapper"> | ||
<ng-content select="mad-content-panel-container-content"></ng-content> | ||
<ng-content select="mad-content-panel-container-footer"></ng-content> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
...dons/src/lib/content-panel/content-panel-container/content-panel-container.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,13 @@ | ||
:host { | ||
position: relative; | ||
overflow: hidden; | ||
display: flex; | ||
flex: 1 1 auto; | ||
min-height: .05rem; | ||
} | ||
|
||
.content-panel-outer-wrapper { | ||
display: flex; | ||
flex: 1 1 auto; | ||
flex-direction: column; | ||
} |
15 changes: 15 additions & 0 deletions
15
...addons/src/lib/content-panel/content-panel-container/content-panel-container.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mad-content-panel-container', | ||
templateUrl: './content-panel-container.component.html', | ||
styleUrls: ['./content-panel-container.component.scss'] | ||
}) | ||
export class ContentPanelContainerComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
projects/material-addons/src/lib/content-panel/content-panel.module.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,26 @@ | ||
import { ContentHeaderComponent } from './content-header/content-header.component'; | ||
import { ContentPanelContainerComponent } from './content-panel-container/content-panel-container.component'; | ||
import { ContentPanelContainerContentComponent } from './content-panel-container-content/content-panel-container-content.component'; | ||
import { ContentPanelContainerFooterComponent } from './content-panel-container-footer/content-panel-container-footer.component'; | ||
import { MainContainerComponent } from './main-container/main-container.component'; | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
ContentHeaderComponent, | ||
ContentPanelContainerComponent, | ||
ContentPanelContainerContentComponent, | ||
ContentPanelContainerFooterComponent, | ||
MainContainerComponent, | ||
], | ||
imports: [CommonModule], | ||
exports: [ | ||
ContentHeaderComponent, | ||
ContentPanelContainerComponent, | ||
ContentPanelContainerContentComponent, | ||
ContentPanelContainerFooterComponent, | ||
MainContainerComponent, | ||
], | ||
}) | ||
export class ContentPanelModule {} |
5 changes: 5 additions & 0 deletions
5
projects/material-addons/src/lib/content-panel/main-container/main-container.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,5 @@ | ||
<div class="main-container"> | ||
<ng-content select="mad-content-header"></ng-content> | ||
<ng-content select="mad-flowbar"></ng-content> | ||
<ng-content select="mad-content-panel-container"></ng-content> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
projects/material-addons/src/lib/content-panel/main-container/main-container.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,5 @@ | ||
.main-container { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column | ||
} |
15 changes: 15 additions & 0 deletions
15
projects/material-addons/src/lib/content-panel/main-container/main-container.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mad-main-container', | ||
templateUrl: './main-container.component.html', | ||
styleUrls: ['./main-container.component.scss'] | ||
}) | ||
export class MainContainerComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
projects/material-addons/src/lib/flowbar/flowbar.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,10 @@ | ||
<div class="stepper-container"> | ||
<mat-horizontal-stepper #stepper (click)="triggerClick()"> | ||
<mat-step *ngFor="let step of _steps" [aria-labelledby]="!step.enabled ? 'disabled' : null"> | ||
<ng-template matStepLabel> | ||
<div class="step-header-overlay" *ngIf="this._headerClick.observers.length > 0" (click)="headerClick($event, step)"></div> | ||
<span>{{step.label}}</span> | ||
</ng-template> | ||
</mat-step> | ||
</mat-horizontal-stepper> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
projects/material-addons/src/lib/flowbar/flowbar.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,29 @@ | ||
.stepper-container { | ||
display: flex; | ||
padding: 0 1rem; | ||
} | ||
|
||
::ng-deep .mat-stepper-horizontal .mat-horizontal-stepper-header { | ||
padding: 0; | ||
height:auto; | ||
} | ||
|
||
::ng-deep .mat-step-header[aria-labelledby="disabled"] { | ||
pointer-events: none !important; | ||
cursor: not-allowed; | ||
} | ||
|
||
::ng-deep .mat-stepper-horizontal .mat-horizontal-content-container { | ||
padding: 0 0 10px 0; | ||
} | ||
|
||
::ng-deep .mat-stepper-horizontal .mat-stepper-horizontal-line { | ||
margin: 0 5px; | ||
border-top-width: 4px; | ||
} | ||
|
||
.step-header-overlay { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
} |
Oops, something went wrong.