From aa8a343c3e4a4b3a2d58a336766f8a62bdc3251a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20D=C3=ADaz=20Roussel?= Date: Fri, 23 Sep 2022 10:41:24 +0200 Subject: [PATCH 1/5] Add section select box --- src/app/app.module.ts | 6 +- .../document-detail.component.html | 63 +++++++++++-------- .../document-detail.component.ts | 2 + 3 files changed, 43 insertions(+), 28 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b5da66d..d312301 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -21,7 +21,7 @@ import { MatTabsModule } from '@angular/material/tabs'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { LogoutComponent } from './logout/logout.component'; import { HistoryTrackingComponent } from './history-tracking/history-tracking.component'; -import { MatProgressSpinnerModule, MatProgressBarModule, MatDialogModule } from '@angular/material' +import { MatProgressSpinnerModule, MatProgressBarModule, MatDialogModule, MatSelectModule, MatOptionModule } from '@angular/material' import { OAuthModule } from "angular-oauth2-oidc"; import { UploadFilesComponent } from './upload-files/upload-files.component'; import { authConfigFactory } from './auth-config-factory'; @@ -67,7 +67,9 @@ import { DeleteReportDialog } from './delete-report-dialog/delete-report-dialog. MatProgressSpinnerModule, MatProgressBarModule, OAuthModule.forRoot(), - MatDialogModule + MatDialogModule, + MatSelectModule, + MatOptionModule /*OAuthModule.forRoot({ resourceServer: { //allowedUrls: [environment.apiUrl], diff --git a/src/app/document-detail/document-detail.component.html b/src/app/document-detail/document-detail.component.html index d117238..a1de795 100644 --- a/src/app/document-detail/document-detail.component.html +++ b/src/app/document-detail/document-detail.component.html @@ -17,14 +17,15 @@

{{report.name}}

-
- - - - - - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + All + + {{section.name}} + + + +
diff --git a/src/app/document-detail/document-detail.component.ts b/src/app/document-detail/document-detail.component.ts index 777d8bc..2b0d855 100644 --- a/src/app/document-detail/document-detail.component.ts +++ b/src/app/document-detail/document-detail.component.ts @@ -62,6 +62,8 @@ export class DocumentDetailComponent implements OnInit { addFindingEnabled: boolean; + currentSection = "all"; + data: SafeHtml; docData: string; -- GitLab From 2a30872cc3f5f043c059ce36b5fae2e2a60ff3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20D=C3=ADaz=20Roussel?= Date: Tue, 27 Sep 2022 17:07:36 +0200 Subject: [PATCH 2/5] Add select box with sections --- .../document-detail.component.html | 6 +- .../document-detail.component.ts | 170 ++++++++++-------- .../pretoxsentences-tabulator.component.ts | 33 ++-- src/app/services/event.service.ts | 2 + src/app/services/report.service.ts | 2 +- .../srdomaintemplate-tabulator.component.ts | 37 ++-- 6 files changed, 139 insertions(+), 111 deletions(-) diff --git a/src/app/document-detail/document-detail.component.html b/src/app/document-detail/document-detail.component.html index a1de795..b40b2e5 100644 --- a/src/app/document-detail/document-detail.component.html +++ b/src/app/document-detail/document-detail.component.html @@ -14,7 +14,7 @@
-

{{report.name}}

+

{{report.fileName}}