From fa9816f75ca6815f1da66c0e0db8cb921e25df8d Mon Sep 17 00:00:00 2001 From: Aryan Date: Tue, 10 Sep 2024 23:21:44 +0530 Subject: [PATCH 1/2] added teamsEvidence to excel Signed-off-by: Aryan --- .../component/mapping/mapping.component.html | 84 ++++++++++--------- .../component/mapping/mapping.component.ts | 12 +-- 2 files changed, 50 insertions(+), 46 deletions(-) diff --git a/src/app/component/mapping/mapping.component.html b/src/app/component/mapping/mapping.component.html index fc6e3fbc..3f8cefb7 100644 --- a/src/app/component/mapping/mapping.component.html +++ b/src/app/component/mapping/mapping.component.html @@ -164,114 +164,116 @@ Usefulness Implementation Assessment - Evidence Comments Depends On SAMM ISO 27001:2017 ISO 27001:2022 - {{ team }} + {{ team + '- Implemented' }} + + + {{ team + '- Evidence' }} - {{ item.dimension | slice : 0 : 32767 }} + {{ item.dimension | slice : 0 : 32767 }} + - {{ item.subDimension | slice : 0 : 32767 }} + {{ item.subDimension | slice : 0 : 32767 }} + - {{ item.activityName | slice : 0 : 32767 }} + {{ item.activityName | slice : 0 : 32767 }} + - {{ item.description | slice : 0 : 32767 }} + {{ item.description | slice : 0 : 32767 }} + - {{ item.risk | slice : 0 : 32767 }} + {{ item.risk | slice : 0 : 32767 }} + - {{ item.measure | slice : 0 : 32767 }} + {{ item.measure | slice : 0 : 32767 }} + - {{ item.knowledge | slice : 0 : 32767 }} + {{ item.knowledge | slice : 0 : 32767 }} + - {{ item.resources | slice : 0 : 32767 }} + {{ item.resources | slice : 0 : 32767 }} + - {{ item.time | slice : 0 : 32767 }} + {{ item.time | slice : 0 : 32767 }} + - {{ item.usefulness | slice : 0 : 32767 }} + {{ item.usefulness | slice : 0 : 32767 }} + - {{ item.implementation | slice : 0 : 32767 }} + {{ item.implementation | slice : 0 : 32767 }} + - {{ item.assessment | slice : 0 : 32767 }} - - - - {{ item.evidence | slice : 0 : 32767 }} + {{ item.assessment | slice : 0 : 32767 }} + - {{ item.comments | slice : 0 : 32767 }} + {{ item.comments | slice : 0 : 32767 }} + - {{ item.dependsOn | slice : 0 : 32767 }} + {{ item.dependsOn | slice : 0 : 32767 }} + - {{ item.samm2 | slice : 0 : 32767 }} + {{ item.samm2 | slice : 0 : 32767 }} + - {{ item.ISO17 | slice : 0 : 32767 }} + {{ item.ISO17 | slice : 0 : 32767 }} + - {{ item.ISO22 | slice : 0 : 32767 }} + {{ item.ISO22 | slice : 0 : 32767 }} + {{ item.teamImplementation[key] }} + + + {{ item.teamsEvidence[key] }} + + diff --git a/src/app/component/mapping/mapping.component.ts b/src/app/component/mapping/mapping.component.ts index 103bab85..25e930af 100644 --- a/src/app/component/mapping/mapping.component.ts +++ b/src/app/component/mapping/mapping.component.ts @@ -42,13 +42,15 @@ export interface MappingElementSortedByISO17 { time: string; usefulness: string; dependsOn: string[]; - evidence: string; comments: string; assessment: string; implementation: any; teamImplementation: { [key: string]: boolean; }; + teamsEvidence: { + [key: string]: string | undefined; + }; } export interface MappingElementSortedByISO22 { @@ -317,9 +319,6 @@ export class MappingComponent implements OnInit { var CurrentUsefulness: string = this.generalLabels[this.YamlObject[dim][subDim][activity]['usefulness']]; - var CurrentEvidence: string = - this.YamlObject[dim][subDim][activity]['evidence']; - var CurrentComments: string = this.YamlObject[dim][subDim][activity]['comments']; @@ -343,6 +342,9 @@ export class MappingComponent implements OnInit { var CurrentTeamsAndImplementation = this.YamlObject[dim][subDim][activity]['teamsImplemented']; + var CurrentTeamsEvidence = + this.YamlObject[dim][subDim][activity]['teamsEvidence']; + this.temporaryMappingElement = { dimension: dim, subDimension: subDim, @@ -359,10 +361,10 @@ export class MappingComponent implements OnInit { usefulness: CurrentUsefulness, dependsOn: CurrentDependsOn, implementation: CurrentImplementation, - evidence: CurrentEvidence, comments: CurrentComments, assessment: CurrentAssessment, teamImplementation: CurrentTeamsAndImplementation, + teamsEvidence: CurrentTeamsEvidence, }; console.log(this.temporaryMappingElement); From e986d0a594311e366e4ba9b934b90155bcc4742f Mon Sep 17 00:00:00 2001 From: Aryan Date: Thu, 12 Sep 2024 12:33:50 +0530 Subject: [PATCH 2/2] removed redundant code changes --- src/app/component/mapping/mapping.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/component/mapping/mapping.component.ts b/src/app/component/mapping/mapping.component.ts index 25e930af..254859f5 100644 --- a/src/app/component/mapping/mapping.component.ts +++ b/src/app/component/mapping/mapping.component.ts @@ -49,7 +49,7 @@ export interface MappingElementSortedByISO17 { [key: string]: boolean; }; teamsEvidence: { - [key: string]: string | undefined; + [key: string]: string; }; }