From 87282a36a405b9c5e3b50d009f74d013395623fb Mon Sep 17 00:00:00 2001
From: David Rajkumar Jayakumar
<107850923+DavidJayakumar@users.noreply.github.com>
Date: Wed, 23 Aug 2023 13:27:59 +0100
Subject: [PATCH] Move modules (#1549)
* Move modules
* Fix tests
* Remove unwanted changes
* Add new test
* update version
* remove code
---
package.json | 2 +-
projects/ccd-case-ui-toolkit/package.json | 2 +-
.../case-editor/case-editor.module.ts | 8 --
...ent-completion-task-cancelled.component.ts | 2 +-
...nt-completion-task-reassigned.component.ts | 2 +-
.../lib/shared/components/palette/index.ts | 1 +
.../components/palette/palette.module.ts | 12 ++-
.../query-management/components/index.ts | 5 +-
.../query-check-your-answers.component.html | 5 +-
...query-check-your-answers.component.spec.ts | 85 +++++++++++++++++++
.../query-check-your-answers.component.ts | 56 +++++++++++-
.../query-details/query-details.component.ts | 2 +-
.../query-event-completion.component.html | 3 +
.../query-event-completion.component.spec.ts | 25 ++++++
.../query-event-completion.component.ts | 14 +++
15 files changed, 204 insertions(+), 20 deletions(-)
create mode 100644 projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.html
create mode 100644 projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.spec.ts
create mode 100644 projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-event-completion/query-event-completion.component.ts
diff --git a/package.json b/package.json
index d4f14d8e5d..5f33a7ce59 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
- "version": "6.19.3-RetryCaseRetrievals.1",
+ "version": "6.19.3-qm-respond-event-completion",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
diff --git a/projects/ccd-case-ui-toolkit/package.json b/projects/ccd-case-ui-toolkit/package.json
index 698960c4e5..fc9bd6ad77 100644
--- a/projects/ccd-case-ui-toolkit/package.json
+++ b/projects/ccd-case-ui-toolkit/package.json
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
- "version": "6.19.3-RetryCaseRetrievals.1",
+ "version": "6.19.3-qm-respond-event-completion",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-editor.module.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-editor.module.ts
index fb384dedc7..8f534cc384 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-editor.module.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-editor.module.ts
@@ -37,11 +37,6 @@ import { CaseEditGenericErrorsComponent } from './case-edit-generic-errors/case-
import { CaseEditPageComponent } from './case-edit-page/case-edit-page.component';
import { CaseEditSubmitComponent } from './case-edit-submit/case-edit-submit.component';
import { CaseEditComponent } from './case-edit/case-edit.component';
-import {
- CaseEventCompletionComponent,
- CaseEventCompletionTaskCancelledComponent,
- CaseEventCompletionTaskReassignedComponent
-} from './case-event-completion';
import { CaseProgressComponent } from './case-progress/case-progress.component';
import {
CaseNotifier,
@@ -78,9 +73,6 @@ import { CaseworkerService } from './services/case-worker.service';
CaseEditPageComponent,
CaseEditFormComponent,
CaseEditSubmitComponent,
- CaseEventCompletionComponent,
- CaseEventCompletionTaskCancelledComponent,
- CaseEventCompletionTaskReassignedComponent,
CaseCreateComponent,
CaseProgressComponent,
CaseEditGenericErrorsComponent
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts
index dee1e635b9..1550ecffda 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts
@@ -1,5 +1,5 @@
import { Component, Inject } from '@angular/core';
-import { CaseEventCompletionComponent, COMPONENT_PORTAL_INJECTION_TOKEN } from '../../case-event-completion.component';
+import { COMPONENT_PORTAL_INJECTION_TOKEN, CaseEventCompletionComponent } from '../../case-event-completion.component';
@Component({
selector: 'app-case-event-completion-task-cancelled',
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.ts
index ffd9dfe312..a8bfc3213d 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.ts
@@ -7,7 +7,7 @@ import { SessionStorageService } from '../../../../../services/session/session-s
import { CaseworkerService } from '../../../services/case-worker.service';
import { JudicialworkerService } from '../../../services/judicial-worker.service';
import { WorkAllocationService } from '../../../services/work-allocation.service';
-import { CaseEventCompletionComponent, COMPONENT_PORTAL_INJECTION_TOKEN } from '../../case-event-completion.component';
+import { COMPONENT_PORTAL_INJECTION_TOKEN, CaseEventCompletionComponent } from '../../case-event-completion.component';
@Component({
selector: 'app-case-event-completion-task-reassigned',
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/index.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/index.ts
index ed4bd8f0e6..416165866c 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/index.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/index.ts
@@ -1,3 +1,4 @@
+export * from './../case-editor/case-event-completion';
export * from './address';
export * from './base-field';
export * from './case-file-view';
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts
index dbc86f6bd1..b13d1ccda1 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts
@@ -30,6 +30,7 @@ import { FormValidatorsService } from '../../services/form/form-validators.servi
import { JurisdictionService } from '../../services/jurisdiction/jurisdiction.service';
import { LoadingModule } from '../../services/loading/loading.module';
import { WindowService } from '../../services/window';
+import { CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent } from '../case-editor/case-event-completion';
import { WriteAddressFieldComponent } from './address/write-address-field.component';
import { FieldReadComponent, FieldReadLabelComponent, FieldWriteComponent } from './base-field';
import { CaseFileViewOverlayMenuComponent } from './case-file-view';
@@ -125,6 +126,7 @@ import {
QueryCaseDetailsHeaderComponent,
QueryCheckYourAnswersComponent,
QueryDetailsComponent,
+ QueryEventCompletionComponent,
QueryListComponent,
QueryWriteAddDocumentsComponent,
QueryWriteDateInputComponent,
@@ -263,7 +265,13 @@ const PALETTE_COMPONENTS = [
QueryWriteDateInputComponent,
QualifyingQuestionOptionsComponent,
QualifyingQuestionDetailComponent,
- QueryAttachmentsReadComponent
+ QueryAttachmentsReadComponent,
+ QueryEventCompletionComponent,
+
+ // Case event completion
+ CaseEventCompletionComponent,
+ CaseEventCompletionTaskCancelledComponent,
+ CaseEventCompletionTaskReassignedComponent
];
@NgModule({
@@ -313,7 +321,7 @@ const PALETTE_COMPONENTS = [
LanguageInterpreterDisplayPipe,
ManageCaseFlagsLabelDisplayPipe,
UpdateFlagTitleDisplayPipe,
- ...PALETTE_COMPONENTS,
+ ...PALETTE_COMPONENTS
],
exports: [
NgxMatDatetimePickerModule,
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/index.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/index.ts
index 19b6cd673c..50b03c4f31 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/index.ts
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/index.ts
@@ -1,12 +1,13 @@
export * from './qualifying-questions/qualifying-question-detail/qualifying-question-detail.component';
export * from './qualifying-questions/qualifying-question-options/qualifying-question-options.component';
+export * from './query-attachments-read/query-attachments-read.component';
export * from './query-case-details-header/query-case-details-header.component';
export * from './query-check-your-answers/query-check-your-answers.component';
export * from './query-details/query-details.component';
+export * from './query-event-completion/query-event-completion.component';
export * from './query-list/query-list.component';
-export * from './query-write/query-write-date-input/query-write-date-input.component';
export * from './query-write/query-write-add-documents/query-write-add-documents.component';
export * from './query-write/query-write-date-input/query-write-date-input.component';
export * from './query-write/query-write-raise-query/query-write-raise-query.component';
export * from './query-write/query-write-respond-to-query/query-write-respond-to-query.component';
-export * from './query-attachments-read/query-attachments-read.component';
+
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.html
index 02604a5eff..77f33ee42c 100644
--- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.html
+++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.html
@@ -114,9 +114,12 @@
(click)="goBack()">
{{ 'Previous' | rpxTranslate }}
-