This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
teiidtools-339: Upgraded dataservices list to pfng and fixed layout i…
…ssues related to pfng upgrade.
- Loading branch information
Showing
8 changed files
with
317 additions
and
62 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ngapp/src/app/dataservices/dataservices-list/basic-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,16 @@ | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<p> | ||
<span class="list-pf-title">Name</span> | ||
</p> | ||
<p> | ||
<span class="dataservice-list-name">{{item.getId()}}</span> | ||
</p> | ||
<p> | ||
<span class="list-pf-title">Description</span> | ||
</p> | ||
<p> | ||
<span class="dataservice-list-description">{{item.getDescription()}}</span> | ||
</p> | ||
</div> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
ngapp/src/app/dataservices/dataservices-list/basic-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,24 @@ | ||
import { | ||
Component, | ||
Input, | ||
OnInit, | ||
ViewEncapsulation | ||
} from '@angular/core'; | ||
|
||
@Component({ | ||
encapsulation: ViewEncapsulation.None, | ||
selector: 'basic-content', | ||
templateUrl: 'basic-content.component.html' | ||
}) | ||
export class BasicContentComponent implements OnInit { | ||
@Input() item: any; | ||
|
||
constructor() { | ||
} | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngDoCheck(): void { | ||
} | ||
} |
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
94 changes: 46 additions & 48 deletions
94
ngapp/src/app/dataservices/dataservices-list/dataservices-list.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
24 changes: 24 additions & 0 deletions
24
ngapp/src/app/dataservices/dataservices-list/views-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,24 @@ | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<div class="form-group"> | ||
<pfng-list | ||
[config]="listConfig" | ||
[itemTemplate]="itemTemplate" | ||
[expandTemplate]="expandTemplate" | ||
[items]="getViews( item )"> | ||
<ng-template #itemTemplate let-item="item"> | ||
<div class="list-pf-main-content"> | ||
<a class="list-pf-title view-name"><span class="fa fa-table dataservice-list-action-icon"></span>{{ item }}</a> | ||
</div> | ||
</ng-template> | ||
<ng-template #expandTemplate let-item="item" let-index="index"> | ||
<div class="row" *ngFor="let connection of getConnections( item )"> | ||
<div class="col-sm-9 list-view-pf-icon-sm"> | ||
{{ connection.getId() }} | ||
</div> | ||
</div> | ||
</ng-template> | ||
</pfng-list> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.