-
-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathcircular-heatmap.component.html
More file actions
135 lines (135 loc) · 5.71 KB
/
circular-heatmap.component.html
File metadata and controls
135 lines (135 loc) · 5.71 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<div id="cont" class="container-fluid text-center">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="overlay-details" [hidden]="!showOverlay">
<div *ngIf="showActivityDetails; then activityTrue; else activityFalse"></div>
<ng-template #activityTrue>
<div class="overlay-modal">
<app-activity-description
[activity]="showActivityDetails"
[iconName]="dataStore?.meta?.getIcon(showActivityDetails?.category || '') || ''"
[showCloseButton]="true"
(activityClicked)="onDependencyClicked($event)"
(closeRequested)="closeOverlay()">
</app-activity-description>
</div>
</ng-template>
<ng-template #activityFalse>
<div class="overlay-modal">
<div class="overlay-header">
<button class="overlay-close" (click)="closeOverlay()">
<mat-icon class="white-icon">close</mat-icon>
</button>
<h2>Nothing to show</h2>
</div>
</div>
</ng-template>
</div>
<div class="heatmapClass">
<div id="chart" class="heatmapChart"></div>
<div class="filter-container">
<button class="filter-toggle" mat-button color="primary" (click)="toggleFilters()">
<mat-icon [class.hidden]="!showFilters">keyboard_arrow_up</mat-icon>
<mat-icon [class.hidden]="showFilters">filter_alt</mat-icon>
</button>
<div class="team-filter" [class.hidden]="!showFilters">
<mat-form-field class="team-chip-list">
<mat-label
>{{ settings.getTeamLabel() }} {{ settings.getGroupLabel() }} Filter</mat-label
>
<mat-chip-list selectable>
<mat-chip
#chip="matChip"
*ngFor="let group of filtersTeamGroups | keyvalue : unsorted"
(click)="toggleTeamGroupFilter(chip)"
[selected]="filtersTeamGroups[group.key]">
{{ group.key }}
</mat-chip>
</mat-chip-list>
</mat-form-field>
<mat-form-field>
<mat-label>{{ settings.getTeamLabel() }} Filter</mat-label>
<mat-chip-list selectable multiple>
<mat-chip
#chip="matChip"
*ngFor="let team of filtersTeams | keyvalue"
(click)="toggleTeamFilter(chip)"
[value]="team.key"
[selected]="team.value">
{{ team.key }}
</mat-chip>
</mat-chip-list>
</mat-form-field>
</div>
</div>
<mat-card class="activity-card" *ngIf="showActivityCard">
<mat-card-title-group>
<mat-card-title>{{ showActivityCard.dimension }}</mat-card-title>
<mat-card-subtitle>Level {{ showActivityCard.level }}</mat-card-subtitle>
</mat-card-title-group>
<mat-card-content
*ngFor="let activity of showActivityCard.activities; index as activityIndex">
<mat-expansion-panel
(opened)="onPanelOpened(activity)"
(closed)="onPanelClosed(activity)">
<mat-expansion-panel-header>
<mat-panel-title>
<span class="title-text">
{{ activity['name'] }}
</span>
<button
mat-icon-button
class="info-button"
matTooltip="Open activity description"
matTooltipClass="compact-tooltip"
(click)="openActivityDetails(activity['uuid']); $event.stopPropagation()">
<mat-icon class="info-icon">info</mat-icon>
</button>
</mat-panel-title>
</mat-expansion-panel-header>
<ng-template matExpansionPanelContent>
<ul class="team-list">
<ng-container *ngFor="let team of filtersTeams | keyvalue">
<li *ngIf="team.value || !hasTeamsFilter">
<label class="team-label"> {{ team.key }}: </label>
<app-progress-slider
[DBG_name]="activity['name']"
[steps]="progressStates"
[state]="getTeamProgressState(activity['uuid'], team.key)"
[originalState]="getBackedupTeamProgressState(activity['uuid'], team.key)"
(progressChange)="
onProgressChange(activity['uuid'], team.key, $event)
"></app-progress-slider>
</li>
</ng-container>
</ul>
<div class="smaller-italics">
<span>* Has been modified</span><br />
<span>** Has been modified to less complete stage than before</span>
</div>
</ng-template>
</mat-expansion-panel>
</mat-card-content>
</mat-card>
<div class="footer-buttons">
<button
class="normal-button"
mat-raised-button
class="downloadButtonClass"
(click)="exportTeamProgress()">
Download {{ settings.getTeamLabel() | lowercase }} progress
</button>
<button
class="normal-button"
mat-raised-button
class="resetButtonClass"
(click)="deleteLocalTeamsProgress()">
Delete {{ settings.getTeamLabel() | lowercase }} progress
</button>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
</div>