This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
/
connection-table-selector.component.html
75 lines (75 loc) · 3.04 KB
/
connection-table-selector.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div>
<div *ngIf="connectionsLoading">
<span class="spinner spinner-sm spinner-inline"></span>
</div> <div *ngIf="connectionsLoadedInvalid">
<div class="alert alert-info">
<span class="pficon pficon-info"></span>
<strong>Problem Loading Connections!</strong>
</div>
</div>
<div class="col-sm-3" *ngIf="connectionsLoadedValid">
<ngx-datatable [rows]="rows"
[columns]="columns"
[messages]="tableMessages"
[footerHeight]="24"
[scrollbarV]="true"
[scrollbarH]="true"
[columnMode]="'force'"
[reorderable]="false"
[selectionType]="'single'"
(select)="onSelect($event)"
[cssClasses]="customClasses">
<ngx-datatable-column name="Connections" [prop]="'name'" [sortable]="true" [resizeable]="false">
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
<i class="fa fa-plug list-view-pf-icon-sm"></i>
{{ row.name }}
</ng-template>
</ngx-datatable-column>
</ngx-datatable>
</div>
<!-- ------------------------------------------- -->
<!-- Connection Content Area -->
<!-- 1) JDBC Connection selected -->
<!-- 2) Non-JDBC Connection selected -->
<!-- 3) No Connection selected -->
<!-- ------------------------------------------- -->
<div class="col-sm-6 jdbc-column-title">
<strong>Table Selection</strong>
</div>
<div class="col-sm-3 jdbc-column-title">
<strong>Current Selections</strong>
</div>
<div class="col-sm-6 jdbc-selector-container">
<app-jdbc-table-selector [connection]="selectedConnection"
(tableSelectionAdded)="onTableSelectionAdded($event)"
(tableSelectionRemoved)="onTableSelectionRemoved($event)"
*ngIf="hasJdbcConnectionSelected()">
</app-jdbc-table-selector>
</div>
<div class="col-sm-6" *ngIf="hasNonJdbcConnectionSelected()">
<div class="alert alert-info">
<span class="pficon pficon-info"></span>
<strong>Non-JDBC Connections are not supported</strong>
</div>
</div>
<div class="col-sm-6" *ngIf="!hasSelectedConnection()">
<div class="alert alert-info">
<span class="pficon pficon-info"></span>
<strong>Please select a Connection</strong>
</div>
</div>
<!-- ----------------------- -->
<!-- Selected Tables List -->
<!-- ----------------------- -->
<div class="col-sm-3" *ngIf="!hasSelectedTables">
<div class="alert alert-info">
<span class="pficon pficon-info"></span>
<strong>No tables selected</strong>
</div>
</div>
<div class = "list-div col-sm-3 jdbc-column-results" *ngIf="hasSelectedTables">
<div *ngFor="let table of getSelectedTables()">
<app-selected-table [table]="table" (selectionListTableRemoved)="onTableSelectionRemoved($event)"></app-selected-table>
</div>
</div>
</div>