Skip to content

Commit 2ac0764

Browse files
committed
prepared ISO 27k1 2022 mapping
Committer: Jonas Hirner <git commit jonas.hirner@sda.se>
1 parent c08dc6d commit 2ac0764

27 files changed

Lines changed: 9361 additions & 5 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ testem.log
4343
.DS_Store
4444
Thumbs.db
4545
/yaml-generation/vendor/
46+
src/assets/YAML/generated/generated.yaml

src/app/component/mapping/mapping.component.html

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
(click)="changeTableBasedOnCurrentSort()"
5252
>ISO</mat-button-toggle
5353
>
54+
<mat-button-toggle
55+
value="sortByISO22"
56+
(click)="changeTableBasedOnCurrentSort()"
57+
>ISO22</mat-button-toggle
58+
>
5459
</mat-button-toggle-group>
5560
</section>
5661
</div>
@@ -80,7 +85,7 @@
8085
<th mat-header-cell *matHeaderCellDef>SAMM</th>
8186
<td mat-cell *matCellDef="let element">{{ element.samm2 }}</td>
8287
</ng-container>
83-
<ng-container *ngIf="currentlySortingByTask || currentlySortingByISO">
88+
<ng-container *ngIf="currentlySortingByTask || currentlySortingByISO || currentlySortingByISO22">
8489
<th mat-header-cell *matHeaderCellDef>SAMM</th>
8590
<td mat-cell *matCellDef="let element">
8691
<ul>
@@ -98,7 +103,7 @@
98103
<td mat-cell *matCellDef="let element">{{ element.ISO }}</td>
99104
</ng-container>
100105

101-
<ng-container *ngIf="currentlySortingByTask || currentlySortingBySAMM">
106+
<ng-container *ngIf="currentlySortingByTask || currentlySortingBySAMM || currentlySortingByISO22">
102107
<th mat-header-cell *matHeaderCellDef>ISO</th>
103108
<td mat-cell *matCellDef="let element">
104109
<ul>
@@ -110,6 +115,24 @@
110115
</ng-container>
111116
</ng-container>
112117

118+
<ng-container matColumnDef="ISO22">
119+
<ng-container *ngIf="currentlySortingByISO22">
120+
<th mat-header-cell *matHeaderCellDef>ISO22</th>
121+
<td mat-cell *matCellDef="let element">{{ element.ISO22 }}</td>
122+
</ng-container>
123+
124+
<ng-container *ngIf="currentlySortingByTask || currentlySortingBySAMM || currentlySortingByISO">
125+
<th mat-header-cell *matHeaderCellDef>ISO22</th>
126+
<td mat-cell *matCellDef="let element">
127+
<ul>
128+
<li *ngFor="let ISO22Element of element.ISO22">
129+
{{ ISO22Element }}
130+
</li>
131+
</ul>
132+
</td>
133+
</ng-container>
134+
</ng-container>
135+
113136
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
114137
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
115138
</table>
@@ -133,6 +156,7 @@
133156
<th>Depends On</th>
134157
<th>SAMM</th>
135158
<th>ISO</th>
159+
<th>ISO22</th>
136160
</tr>
137161
<tr *ngFor="let item of allMappingDataSortedByISO">
138162
<td>{{ item.dimension }}</td>
@@ -152,6 +176,7 @@
152176
<td>{{ item.dependsOn }}</td>
153177
<td>{{ item.samm2 }}</td>
154178
<td>{{ item.ISO }}</td>
179+
<td>{{ item.ISO22 }}</td>
155180
</tr>
156181
</table>
157182
</div>

0 commit comments

Comments
 (0)