-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
theme-block.component.html
43 lines (38 loc) · 1.37 KB
/
theme-block.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
<nb-card>
<nb-card-body>
<h2>{{ vm.themeTitle }} Theme</h2>
<p *ngIf="vm.parentTheme">inherited from {{ vm.parentTheme }} theme</p>
<div class="search-wrapper">
<input class="search-control" placeholder="Search for..." [formControl]="searchControl">
</div>
<table class="striped">
<thead>
<tr>
<td>Name</td>
<td>Value</td>
<td>Parent</td>
</tr>
</thead>
<tbody>
<tr *ngFor="let prop of vm.filteredThemeProperties | async"
[ngdFragment]="prop.name"
[ngdFragmentSync]="false"
ngdFragmentClass="highlighted-row">
<td>
<a [routerLink]="" fragment="{{ prop.name }}">{{ prop.name }}</a>
</td>
<td ngdColorSwatch>{{ prop.value }}</td>
<td>
<a [routerLink]="['/docs/themes', parent.theme]" fragment="{{ parent.prop }}"
[class.inheritance-property]="index > 0"
*ngFor="let parent of prop.parents; let index = index">
<nb-icon *ngIf="index > 0" class="inheritance-icon" icon="arrow-back-outline"></nb-icon>
<span>{{ parent.prop }}</span>
<span *ngIf="parent.theme !== vm.themeName" class="parent-theme-name">({{ parent.theme }})</span>
</a>
</td>
</tr>
</tbody>
</table>
</nb-card-body>
</nb-card>