-
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.
Merge pull request #83 from PatternAtlas/fix/pattern-navigation
Fix/pattern navigation
- Loading branch information
Showing
37 changed files
with
1,023 additions
and
318 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/app/core/component/action-button-bar/action-button-bar.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
.mat-form-field { | ||
margin-left: 2.5rem !important; | ||
} | ||
|
||
.mat-input-element { | ||
height: 1.125em; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/app/core/component/delete-confirmation-dialog/delete-confirmation-dialog.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,7 @@ | ||
<h1 mat-dialog-title>Edit or Delete Relation</h1> | ||
<div mat-dialog-actions> | ||
<button mat-button (click)="onNoClick()">Cancle</button> | ||
<button [mat-dialog-close]="data" class="pattern-button" mat-raised-button color="warn"> | ||
<i class="material-icons">delete</i> | ||
</button> | ||
</div> |
Empty file.
25 changes: 25 additions & 0 deletions
25
...pp/core/component/delete-confirmation-dialog/delete-confirmation-dialog.component.spec.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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { DeleteConfirmationDialogComponent } from './delete-confirmation-dialog.component'; | ||
|
||
describe('DeleteConfirmationDialogComponent', () => { | ||
let component: DeleteConfirmationDialogComponent; | ||
let fixture: ComponentFixture<DeleteConfirmationDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ DeleteConfirmationDialogComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(DeleteConfirmationDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
src/app/core/component/delete-confirmation-dialog/delete-confirmation-dialog.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,19 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'pp-delete-confirmation-dialog', | ||
templateUrl: './delete-confirmation-dialog.component.html', | ||
styleUrls: ['./delete-confirmation-dialog.component.scss'] | ||
}) | ||
export class DeleteConfirmationDialogComponent { | ||
|
||
constructor( | ||
public dialogRef: MatDialogRef<DeleteConfirmationDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) public data) { | ||
} | ||
|
||
onNoClick(): void { | ||
this.dialogRef.close(); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
src/app/core/component/edit-url-dialog/edit-url-dialog.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,15 @@ | ||
<h1 mat-dialog-title>Edit Title or Icon for {{data.pattern.name}}</h1> | ||
<div mat-dialog-content> | ||
<mat-form-field> | ||
<mat-label>Adjust Pattern Name</mat-label> | ||
<input matInput placeholder={{data.pattern.name}} [(ngModel)]="data.name" > | ||
</mat-form-field> | ||
<mat-form-field> | ||
<mat-label>Adjust Icon URL</mat-label> | ||
<input matInput placeholder={{data.pattern.iconUrl}} [(ngModel)]="data.icon" > | ||
</mat-form-field> | ||
</div> | ||
<mat-dialog-actions align="end"> | ||
<button mat-button (click)="onNoClick()">Cancle</button> | ||
<button mat-button [mat-dialog-close]="data" cdkFocusInitial>Ok</button> | ||
</mat-dialog-actions> |
3 changes: 3 additions & 0 deletions
3
src/app/core/component/edit-url-dialog/edit-url-dialog.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 @@ | ||
.mat-form-field{ | ||
width: 100%; | ||
} |
Oops, something went wrong.