forked from devsecopsmaturitymodel/DevSecOps-MaturityModel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapping.component.html
More file actions
277 lines (268 loc) · 8.92 KB
/
mapping.component.html
File metadata and controls
277 lines (268 loc) · 8.92 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<div class="content">
<app-top-header section="Mappings"></app-top-header>
<div class="filterandsort">
<mat-form-field class="filterSection" appearance="fill">
<mat-label>Filter</mat-label>
<mat-chip-list #chipList aria-label="Filter" color="primary">
<mat-chip *ngFor="let chip of currentChip" (removed)="removeChip(chip)">
{{ chip }}
<button matChipRemove>
<mat-icon>cancel</mat-icon>
</button>
</mat-chip>
<input
#chipInput
[formControl]="FilterCtrl"
[matAutocomplete]="auto"
[matChipInputFor]="chipList"
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" />
</mat-chip-list>
<mat-autocomplete
#auto="matAutocomplete"
(optionSelected)="addChip($event)">
<mat-option
*ngFor="let filter of filteredChips | async"
[value]="filter">
{{ filter }}
</mat-option>
</mat-autocomplete>
</mat-form-field>
<div class="right-section">
<section class="export-button">
<button mat-raised-button color="primary" (click)="exportToExcel()">
<mat-icon>file_download</mat-icon>
</button>
</section>
<section class="sort-section">
<mat-button-toggle-group [formControl]="SortCtrl" aria-label="Sort By">
<mat-button-toggle
value="sortByActivity"
(click)="changeTableBasedOnCurrentSort()"
>Activity</mat-button-toggle
>
<mat-button-toggle
value="sortBySAMM"
(click)="changeTableBasedOnCurrentSort()"
>SAMM</mat-button-toggle
>
<mat-button-toggle
value="sortByISO"
(click)="changeTableBasedOnCurrentSort()"
>ISO 27001:2017</mat-button-toggle
>
<mat-button-toggle
value="sortByISO22"
(click)="changeTableBasedOnCurrentSort()"
>ISO 27001:2022</mat-button-toggle
>
</mat-button-toggle-group>
</section>
</div>
</div>
<table
mat-table
[dataSource]="dataSource"
class="mat-elevation-z8 matrix-table">
<ng-container matColumnDef="dimension">
<th mat-header-cell *matHeaderCellDef>Dimension</th>
<td mat-cell *matCellDef="let element">{{ element.dimension }}</td>
</ng-container>
<ng-container matColumnDef="subDimension">
<th mat-header-cell *matHeaderCellDef>Sub-Dimension</th>
<td mat-cell *matCellDef="let element">{{ element.subDimension }}</td>
</ng-container>
<ng-container matColumnDef="activityName">
<th mat-header-cell *matHeaderCellDef>Activity</th>
<td mat-cell *matCellDef="let element">{{ element.activityName }}</td>
</ng-container>
<ng-container matColumnDef="samm2">
<ng-container *ngIf="currentlySortingBySAMM">
<th mat-header-cell *matHeaderCellDef>SAMM</th>
<td mat-cell *matCellDef="let element">{{ element.samm2 }}</td>
</ng-container>
<ng-container
*ngIf="
currentlySortingByActivity ||
currentlySortingByISO17 ||
currentlySortingByISO22
">
<th mat-header-cell *matHeaderCellDef>SAMM</th>
<td mat-cell *matCellDef="let element">
<ul>
<li *ngFor="let sammElement of element.samm2">
{{ sammElement }}
</li>
</ul>
</td>
</ng-container>
</ng-container>
<ng-container matColumnDef="ISO17">
<ng-container *ngIf="currentlySortingByISO17">
<th mat-header-cell *matHeaderCellDef>ISO 27001:2017</th>
<td mat-cell *matCellDef="let element">{{ element.ISO17 }}</td>
</ng-container>
<ng-container
*ngIf="
currentlySortingByActivity ||
currentlySortingBySAMM ||
currentlySortingByISO22
">
<th mat-header-cell *matHeaderCellDef>ISO 27001:2017</th>
<td mat-cell *matCellDef="let element">
<ul>
<li *ngFor="let ISOElement of element.ISO17">
{{ ISOElement }}
</li>
</ul>
</td>
</ng-container>
</ng-container>
<ng-container matColumnDef="ISO22">
<ng-container *ngIf="currentlySortingByISO22">
<th mat-header-cell *matHeaderCellDef>ISO 27001:2022</th>
<td mat-cell *matCellDef="let element">{{ element.ISO22 }}</td>
</ng-container>
<ng-container
*ngIf="
currentlySortingByActivity ||
currentlySortingBySAMM ||
currentlySortingByISO17
">
<th mat-header-cell *matHeaderCellDef>ISO 27001:2022</th>
<td mat-cell *matCellDef="let element">
<ul>
<li *ngFor="let ISO22Element of element.ISO22">
{{ ISO22Element }}
</li>
</ul>
</td>
</ng-container>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
</table>
<table id="excel-table" class="hide">
<tr>
<th>Dimension</th>
<th>Sub Dimension</th>
<th>Activity</th>
<th>Description</th>
<th>Risk</th>
<th>Measure</th>
<th>Knowledge</th>
<th>Resources</th>
<th>Time</th>
<th>Usefulness</th>
<th>Implementation</th>
<th>Assessment</th>
<th>Evidence</th>
<th>Comments</th>
<th>Depends On</th>
<th>SAMM</th>
<th>ISO 27001:2017</th>
<th>ISO 27001:2022</th>
<th *ngFor="let team of allTeams">
{{ team }}
</th>
</tr>
<tr *ngFor="let item of allMappingDataSortedByISO17">
<!-- checking if item is defined and set & truncating at 32767 characters per cell to fit to excel limitations-->
<td>
<ng-container *ngIf="item.dimension && item.dimension.length > 0">
{{ item.dimension | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.subDimension && item.subDimension.length > 0">
{{ item.subDimension | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.activityName && item.activityName.length > 0">
{{ item.activityName | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.description && item.description.length > 0">
{{ item.description | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.risk && item.risk.length > 0">
{{ item.risk | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.measure && item.measure.length > 0">
{{ item.measure | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.knowledge && item.knowledge.length > 0">
{{ item.knowledge | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.resources && item.resources.length > 0">
{{ item.resources | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.time && item.time.length > 0">
{{ item.time | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.usefulness && item.usefulness.length > 0">
{{ item.usefulness | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container
*ngIf="item.implementation && item.implementation.length > 0">
{{ item.implementation | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.assessment && item.assessment.length > 0">
{{ item.assessment | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.evidence && item.evidence.length > 0">
{{ item.evidence | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.comments && item.comments.length > 0">
{{ item.comments | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.dependsOn && item.dependsOn.length > 0">
{{ item.dependsOn | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.samm2 && item.samm2.length > 0">
{{ item.samm2 | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.ISO17 && item.ISO17.length > 0">
{{ item.ISO17 | slice : 0 : 32767 }}</ng-container
>
</td>
<td>
<ng-container *ngIf="item.ISO22 && item.ISO22.length > 0">
{{ item.ISO22 | slice : 0 : 32767 }}</ng-container
>
</td>
<td *ngFor="let key of allTeams">
<ng-container>
{{ item.teamImplementation[key] }}
</ng-container>
</td>
</tr>
</table>
</div>