-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathtable-selection-dialog.component.html
More file actions
59 lines (52 loc) · 2.21 KB
/
table-selection-dialog.component.html
File metadata and controls
59 lines (52 loc) · 2.21 KB
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
<div style="display: flex; height: 80vh">
<div style="flex: 1; overflow-y: auto; padding: 1rem; border-right: 1px solid #ccc">
<h2>Tabellen auswählen</h2>
<div *ngFor="let db of data">
<h3>📦 {{ db.name }}</h3>
<div *ngFor="let schema of db.schemas">
<h4>📁 {{ schema.name }}</h4>
<ul>
<li *ngFor="let table of schema.tables">
<label>
📄 {{ db.name }}.{{ schema.name }}.{{ table.name }}
</label>
<ul>
<li *ngFor="let attr of table.attributes">
<label>
<input type="checkbox" [(ngModel)]="attr.selected"/>
🔹 {{ attr.name }} : {{ attr.type }}
</label>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div style="margin-top: 1rem">
<button (click)="close()">Schließen</button>
<button (click)="showSelectedMetadata()">Ausgewählte anzeigen</button>
<button (click)="sendMetadataInfos()">Sende Metadaten</button>
</div>
</div>
<div style="flex: 2.5; padding: 1rem; overflow-x: auto; display: flex; gap: 2rem; border-left: 1px solid #ccc">
<div *ngFor="let name of getTableNames()">
<div *ngIf="tablePreviewAll[name]?.length">
<h3>{{ name }}</h3>
<table border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<th *ngFor="let key of getKeys(tablePreviewAll[name])">{{ key }}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let row of tablePreviewAll[name]">
<td *ngFor="let key of getKeys(tablePreviewAll[name])">
{{ row[key] }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>