-
-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathreport-config-modal.component.html
More file actions
212 lines (196 loc) · 7.23 KB
/
report-config-modal.component.html
File metadata and controls
212 lines (196 loc) · 7.23 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<h2 mat-dialog-title align="center">Report Configuration</h2>
<mat-dialog-content class="config-content">
<!-- Display Configuration -->
<div class="config-section">
<h3>Display Configuration</h3>
<div class="config-row">
<span class="config-row-label">Column Grouping:</span>
<mat-button-toggle-group
class="column-toggle"
[value]="config.columnGrouping"
(change)="setColumnGrouping($event.value)">
<mat-button-toggle value="byProgress">By Progress Stage</mat-button-toggle>
<mat-button-toggle value="byTeam">By {{ settings.getTeamLabel() }}</mat-button-toggle>
</mat-button-toggle-group>
</div>
</div>
<mat-divider></mat-divider>
<!-- Activity Attributes -->
<div class="config-section">
<h3>Activity Attributes</h3>
<p class="config-hint">Choose which activity fields to show as columns in the report.</p>
<div class="checkbox-grid">
<mat-checkbox
[checked]="config.activityAttributes.showUuid"
(change)="toggleActivityAttribute('showUuid')">
UUID
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showDescription"
(change)="toggleActivityAttribute('showDescription')">
Description
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showRisk"
(change)="toggleActivityAttribute('showRisk')">
Risk
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showMeasure"
(change)="toggleActivityAttribute('showMeasure')">
Measure
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showDifficultyOfImplementation"
(change)="toggleActivityAttribute('showDifficultyOfImplementation')">
Difficulty of Implementation
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showUsefulness"
(change)="toggleActivityAttribute('showUsefulness')">
Usefulness
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showImplementation"
(change)="toggleActivityAttribute('showImplementation')">
Implementation
</mat-checkbox>
<mat-checkbox
[checked]="config.activityAttributes.showDependsOn"
(change)="toggleActivityAttribute('showDependsOn')">
Depends On
</mat-checkbox>
</div>
<!-- References with sub-toggles -->
<div class="references-section">
<mat-checkbox
[checked]="config.activityAttributes.showReferences"
(change)="toggleActivityAttribute('showReferences')">
References
</mat-checkbox>
<div class="references-subtoggle" *ngIf="config.activityAttributes.showReferences">
<mat-checkbox
class="subtoggle-checkbox"
[checked]="config.activityAttributes.showReferencesIso27001_2017"
(change)="toggleActivityAttribute('showReferencesIso27001_2017')">
ISO 27001:2017
</mat-checkbox>
<mat-checkbox
class="subtoggle-checkbox"
[checked]="config.activityAttributes.showReferencesIso27001_2022"
(change)="toggleActivityAttribute('showReferencesIso27001_2022')">
ISO 27001:2022
</mat-checkbox>
<mat-checkbox
class="subtoggle-checkbox"
[checked]="config.activityAttributes.showReferencesSamm2"
(change)="toggleActivityAttribute('showReferencesSamm2')">
SAMM2
</mat-checkbox>
<mat-checkbox
class="subtoggle-checkbox"
[checked]="config.activityAttributes.showReferencesOpenCRE"
(change)="toggleActivityAttribute('showReferencesOpenCRE')">
OpenCRE
</mat-checkbox>
</div>
</div>
<div class="checkbox-grid" style="margin-top: 8px">
<!-- To be implemented after issue #501 -->
<!-- <mat-checkbox [checked]="config.activityAttributes.showEvidence"
(change)="toggleActivityAttribute('showEvidence')">
Evidence
</mat-checkbox> -->
<mat-checkbox
[checked]="config.activityAttributes.showTags"
(change)="toggleActivityAttribute('showTags')">
Tags
</mat-checkbox>
</div>
<div class="config-row slider-row" *ngIf="hasAnyMarkdownAttribute">
<span class="config-row-label">
Word Cap
<mat-icon
matTooltip="Limits the number of words shown for description, risk, measure, and evidence fields. Set to a high value to show full text."
matTooltipClass="compact-tooltip info-icon"
>info</mat-icon
>
:
<strong>{{ config.descriptionWordCap }}</strong>
</span>
<mat-slider
class="word-cap-slider"
min="5"
[max]="maxWordCap"
step="5"
thumbLabel
[displayWith]="wordCapLabel"
[value]="config.descriptionWordCap"
(input)="onWordCapChange($event)">
</mat-slider>
</div>
</div>
<mat-divider></mat-divider>
<!-- Dimensions -->
<div class="config-section">
<h3>Dimensions</h3>
<p class="config-hint">Uncheck dimensions to exclude all their activities.</p>
<div class="checkbox-grid">
<mat-checkbox
*ngFor="let dim of allDimensions"
[checked]="!isDimensionExcluded(dim)"
(change)="toggleDimension(dim)">
{{ dim }}
</mat-checkbox>
</div>
</div>
<mat-divider></mat-divider>
<!-- Subdimensions -->
<div class="config-section">
<h3>Subdimensions</h3>
<p class="config-hint">Uncheck subdimensions to exclude their activities.</p>
<div class="checkbox-grid subdimension-grid">
<mat-checkbox
*ngFor="let subdim of allSubdimensions"
[checked]="!isSubdimensionExcluded(subdim)"
(change)="toggleSubdimension(subdim)">
{{ subdim }}
</mat-checkbox>
</div>
</div>
<mat-divider></mat-divider>
<!-- Individual Activities -->
<div class="config-section">
<h3>Individual Activities</h3>
<p class="config-hint">Search and uncheck individual activities to exclude them.</p>
<mat-form-field appearance="outline" class="search-field">
<mat-label>Search activities or dimensions</mat-label>
<input matInput [(ngModel)]="activitySearchQuery" placeholder="Type to filter..." />
<mat-icon matSuffix>search</mat-icon>
</mat-form-field>
<div class="activity-list">
<mat-checkbox
*ngFor="let activity of filteredActivities"
[checked]="!isActivityExcluded(activity.uuid)"
(change)="toggleActivity(activity.uuid)">
<span class="activity-checkbox-label">
<span class="activity-name">{{ activity.name }}</span>
<span class="activity-meta">{{ activity.dimension }} · Level {{ activity.level }}</span>
</span>
</mat-checkbox>
</div>
</div>
<mat-divider></mat-divider>
<!-- Teams -->
<app-team-selector
[allTeams]="allTeams"
[(selectedTeams)]="config.selectedTeams"
[teamGroups]="teamGroups"></app-team-selector>
<mat-divider></mat-divider>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button (click)="onCancel()">Cancel</button>
<button mat-raised-button color="primary" (click)="onSave()">
Save Configuration and Generate Report
</button>
</mat-dialog-actions>