@hmcts/ccd-case-ui-toolkit 7.1.34-qm-wa → 7.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +3 -3
- package/esm2022/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +14 -2
- package/esm2022/lib/shared/components/case-editor/services/work-allocation.service.mjs +5 -1
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +17 -5
- package/esm2022/lib/shared/components/palette/history/event-log/event-log.component.mjs +9 -9
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +17 -17
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +10 -10
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +30 -13
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +12 -10
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +1 -22
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +5 -19
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +114 -103
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +45 -35
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +268 -233
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +3 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +0 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +4 -11
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +2 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +2 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8847,7 +8847,7 @@ class EventCompletionStateMachineService {
|
|
|
8847
8847
|
entryActionForStateCheckTasksCanBeCompleted(state, context) {
|
|
8848
8848
|
const assignNeeded = context.sessionStorageService.getItem('assignNeeded');
|
|
8849
8849
|
context.workAllocationService.getTask(context.task.id).subscribe(taskResponse => {
|
|
8850
|
-
if (taskResponse
|
|
8850
|
+
if (taskResponse?.task?.task_state) {
|
|
8851
8851
|
switch (taskResponse.task.task_state.toUpperCase()) {
|
|
8852
8852
|
case TaskState.Unassigned:
|
|
8853
8853
|
// Task unassigned
|
|
@@ -8882,6 +8882,14 @@ class EventCompletionStateMachineService {
|
|
|
8882
8882
|
break;
|
|
8883
8883
|
}
|
|
8884
8884
|
}
|
|
8885
|
+
else if (!taskResponse?.task) {
|
|
8886
|
+
context.alertService.setPreserveAlerts(true);
|
|
8887
|
+
context.alertService.warning({ phrase: 'Task statecheck : no task available for completion', replacements: {} });
|
|
8888
|
+
}
|
|
8889
|
+
else {
|
|
8890
|
+
context.alertService.setPreserveAlerts(true);
|
|
8891
|
+
context.alertService.warning({ phrase: 'Task statecheck : no task state available for completion', replacements: {} });
|
|
8892
|
+
}
|
|
8885
8893
|
}, error => {
|
|
8886
8894
|
context.alertService.error(error.message);
|
|
8887
8895
|
return throwError(error);
|
|
@@ -8904,6 +8912,8 @@ class EventCompletionStateMachineService {
|
|
|
8904
8912
|
context.component.eventCanBeCompleted.emit(true);
|
|
8905
8913
|
}
|
|
8906
8914
|
else {
|
|
8915
|
+
context.alertService.setPreserveAlerts(true);
|
|
8916
|
+
context.alertService.warning({ phrase: 'CompleteEventAndTask : no task available for completion', replacements: {} });
|
|
8907
8917
|
// Emit event cannot be completed event
|
|
8908
8918
|
context.component.eventCanBeCompleted.emit(false);
|
|
8909
8919
|
}
|
|
@@ -8924,6 +8934,8 @@ class EventCompletionStateMachineService {
|
|
|
8924
8934
|
context.component.eventCanBeCompleted.emit(true);
|
|
8925
8935
|
}
|
|
8926
8936
|
else {
|
|
8937
|
+
context.alertService.setPreserveAlerts(true);
|
|
8938
|
+
context.alertService.warning({ phrase: 'Unassigned task : no task available for completion', replacements: {} });
|
|
8927
8939
|
// Emit event cannot be completed event
|
|
8928
8940
|
context.component.eventCanBeCompleted.emit(false);
|
|
8929
8941
|
}
|
|
@@ -9131,6 +9143,8 @@ class WorkAllocationService {
|
|
|
9131
9143
|
*/
|
|
9132
9144
|
completeTask(taskId, eventName) {
|
|
9133
9145
|
if (!this.isWAEnabled()) {
|
|
9146
|
+
this.alertService.setPreserveAlerts(true);
|
|
9147
|
+
this.alertService.warning({ phrase: 'completeTask: Work Allocation is not enabled, so the task could not be completed. Please complete the task associated with the case manually.' });
|
|
9134
9148
|
return of(null);
|
|
9135
9149
|
}
|
|
9136
9150
|
this.appConfig.logMessage(`completeTask: completing ${taskId}`);
|
|
@@ -9152,6 +9166,8 @@ class WorkAllocationService {
|
|
|
9152
9166
|
*/
|
|
9153
9167
|
assignAndCompleteTask(taskId, eventName) {
|
|
9154
9168
|
if (!this.isWAEnabled()) {
|
|
9169
|
+
this.alertService.setPreserveAlerts(true);
|
|
9170
|
+
this.alertService.warning({ phrase: 'assignAndCompleteTask: Work Allocation is not enabled, so the task could not be completed. Please complete the task associated with the case manually.' });
|
|
9155
9171
|
return of(null);
|
|
9156
9172
|
}
|
|
9157
9173
|
this.appConfig.logMessage(`assignAndCompleteTask: completing ${taskId}`);
|
|
@@ -9618,8 +9634,8 @@ class CaseEditComponent {
|
|
|
9618
9634
|
const caseField = caseFieldsLookup[key];
|
|
9619
9635
|
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
9620
9636
|
// both null and undefined are equal to *neither false nor true*)
|
|
9621
|
-
if (caseField
|
|
9622
|
-
(caseField
|
|
9637
|
+
if (caseField?.retain_hidden_value &&
|
|
9638
|
+
(caseField?.hidden || (caseField?.hidden !== false && parentField?.hidden))) {
|
|
9623
9639
|
if (caseField.field_type.type === 'Complex') {
|
|
9624
9640
|
this.handleComplexField(caseField, formGroup, key, rawFormValueData);
|
|
9625
9641
|
}
|
|
@@ -14247,6 +14263,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14247
14263
|
static UPLOAD_TIMESTAMP = 'upload_timestamp';
|
|
14248
14264
|
static UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
14249
14265
|
static UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
14266
|
+
static UPLOAD_ERROR_INVALID_FORMAT = 'Document format is not supported';
|
|
14250
14267
|
static UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
14251
14268
|
static ERROR_UPLOADING_FILE = 'Error Uploading File';
|
|
14252
14269
|
fileInput;
|
|
@@ -14324,8 +14341,15 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14324
14341
|
}
|
|
14325
14342
|
}
|
|
14326
14343
|
}
|
|
14327
|
-
fileChangeEvent(fileInput) {
|
|
14328
|
-
|
|
14344
|
+
fileChangeEvent(fileInput, allowedRegex) {
|
|
14345
|
+
let fileTypeRegex;
|
|
14346
|
+
if (allowedRegex) {
|
|
14347
|
+
fileTypeRegex = new RegExp(`(${allowedRegex.replace(/,/g, '|')})`);
|
|
14348
|
+
}
|
|
14349
|
+
if (fileInput.target?.files[0] && !fileInput.target?.files[0]?.name?.match(fileTypeRegex)) {
|
|
14350
|
+
this.invalidFileFormat();
|
|
14351
|
+
}
|
|
14352
|
+
else if (fileInput.target.files[0]) {
|
|
14329
14353
|
this.selectedFile = fileInput.target.files[0];
|
|
14330
14354
|
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
|
|
14331
14355
|
const documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
@@ -14358,6 +14382,10 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14358
14382
|
}
|
|
14359
14383
|
return false;
|
|
14360
14384
|
}
|
|
14385
|
+
invalidFileFormat() {
|
|
14386
|
+
this.updateDocumentForm(null, null, null);
|
|
14387
|
+
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_ERROR_INVALID_FORMAT);
|
|
14388
|
+
}
|
|
14361
14389
|
getUploadedFileName() {
|
|
14362
14390
|
if (this.uploadedDocument) {
|
|
14363
14391
|
return this.uploadedDocument.get(WriteDocumentFieldComponent.DOCUMENT_FILENAME).value;
|
|
@@ -14575,7 +14603,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14575
14603
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); })("keyup", function WriteDocumentFieldComponent_Template_div_keyup_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); });
|
|
14576
14604
|
i0.ɵɵelementEnd();
|
|
14577
14605
|
i0.ɵɵelementStart(12, "input", 9, 0);
|
|
14578
|
-
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event)); });
|
|
14606
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
|
|
14579
14607
|
i0.ɵɵelementEnd()()();
|
|
14580
14608
|
i0.ɵɵelementStart(14, "div", 10)(15, "button", 11);
|
|
14581
14609
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
|
|
@@ -14609,7 +14637,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14609
14637
|
}
|
|
14610
14638
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14611
14639
|
type: Component,
|
|
14612
|
-
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
14640
|
+
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
14613
14641
|
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
|
|
14614
14642
|
type: ViewChild,
|
|
14615
14643
|
args: ['fileInput', { static: false }]
|
|
@@ -16651,8 +16679,8 @@ class LinkCasesComponent {
|
|
|
16651
16679
|
})), this.validatorsUtils.formArraySelectedValidator());
|
|
16652
16680
|
}
|
|
16653
16681
|
toggleLinkCaseReasonOtherComments(event) {
|
|
16654
|
-
this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16655
|
-
this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other')
|
|
16682
|
+
this.linkCaseReasons.find((reason) => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16683
|
+
this.showComments = this.linkCaseReasons.find((reason) => reason.value_en === 'Other')?.selected;
|
|
16656
16684
|
}
|
|
16657
16685
|
submitCaseInfo() {
|
|
16658
16686
|
this.errorMessages = [];
|
|
@@ -16691,7 +16719,7 @@ class LinkCasesComponent {
|
|
|
16691
16719
|
this.errorMessages.push({
|
|
16692
16720
|
title: 'dummy-case-number',
|
|
16693
16721
|
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
16694
|
-
fieldId: 'caseNumber'
|
|
16722
|
+
fieldId: 'caseNumber'
|
|
16695
16723
|
});
|
|
16696
16724
|
}
|
|
16697
16725
|
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
@@ -16699,17 +16727,17 @@ class LinkCasesComponent {
|
|
|
16699
16727
|
this.errorMessages.push({
|
|
16700
16728
|
title: 'dummy-case-reason',
|
|
16701
16729
|
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
16702
|
-
fieldId: 'caseReason'
|
|
16730
|
+
fieldId: 'caseReason'
|
|
16703
16731
|
});
|
|
16704
16732
|
}
|
|
16705
16733
|
if (this.linkCaseForm.controls.reasonType.valid
|
|
16706
|
-
&& this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
|
|
16734
|
+
&& this.linkCaseReasons.find((reason) => reason.value_en === 'Other').selected) {
|
|
16707
16735
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
|
|
16708
16736
|
this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
|
|
16709
16737
|
this.errorMessages.push({
|
|
16710
16738
|
title: 'dummy-case-reason-comments',
|
|
16711
16739
|
description: LinkedCasesErrorMessages.otherDescriptionError,
|
|
16712
|
-
fieldId: 'otherDescription'
|
|
16740
|
+
fieldId: 'otherDescription'
|
|
16713
16741
|
});
|
|
16714
16742
|
}
|
|
16715
16743
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
|
|
@@ -16717,7 +16745,7 @@ class LinkCasesComponent {
|
|
|
16717
16745
|
this.errorMessages.push({
|
|
16718
16746
|
title: 'dummy-case-reason-comments',
|
|
16719
16747
|
description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
|
|
16720
|
-
fieldId: 'otherDescription'
|
|
16748
|
+
fieldId: 'otherDescription'
|
|
16721
16749
|
});
|
|
16722
16750
|
}
|
|
16723
16751
|
}
|
|
@@ -16726,7 +16754,7 @@ class LinkCasesComponent {
|
|
|
16726
16754
|
this.errorMessages.push({
|
|
16727
16755
|
title: 'dummy-case-number',
|
|
16728
16756
|
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
16729
|
-
fieldId: 'caseNumber'
|
|
16757
|
+
fieldId: 'caseNumber'
|
|
16730
16758
|
});
|
|
16731
16759
|
}
|
|
16732
16760
|
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
@@ -16734,14 +16762,14 @@ class LinkCasesComponent {
|
|
|
16734
16762
|
this.errorMessages.push({
|
|
16735
16763
|
title: 'dummy-case-number',
|
|
16736
16764
|
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
16737
|
-
fieldId: 'caseNumber'
|
|
16765
|
+
fieldId: 'caseNumber'
|
|
16738
16766
|
});
|
|
16739
16767
|
}
|
|
16740
16768
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
16741
16769
|
this.errorMessages.push({
|
|
16742
16770
|
title: 'dummy-case-number',
|
|
16743
16771
|
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
16744
|
-
fieldId: 'caseNumber'
|
|
16772
|
+
fieldId: 'caseNumber'
|
|
16745
16773
|
});
|
|
16746
16774
|
}
|
|
16747
16775
|
window.scrollTo(0, 0);
|
|
@@ -16762,7 +16790,7 @@ class LinkCasesComponent {
|
|
|
16762
16790
|
caseState: caseView.state.name || '',
|
|
16763
16791
|
caseStateDescription: caseView.state.description || '',
|
|
16764
16792
|
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
16765
|
-
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16793
|
+
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16766
16794
|
};
|
|
16767
16795
|
const ccdApiCaseLinkData = {
|
|
16768
16796
|
CaseReference: caseView.case_id,
|
|
@@ -16775,7 +16803,7 @@ class LinkCasesComponent {
|
|
|
16775
16803
|
}
|
|
16776
16804
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16777
16805
|
this.selectedCases.push(caseLink);
|
|
16778
|
-
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
16806
|
+
this.linkCaseReasons.forEach((reason) => reason.selected = false);
|
|
16779
16807
|
this.initForm();
|
|
16780
16808
|
this.emitLinkedCasesState(false);
|
|
16781
16809
|
}, (error) => {
|
|
@@ -16783,7 +16811,7 @@ class LinkCasesComponent {
|
|
|
16783
16811
|
this.errorMessages.push({
|
|
16784
16812
|
title: 'dummy-case-number',
|
|
16785
16813
|
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
16786
|
-
fieldId: 'caseNumber'
|
|
16814
|
+
fieldId: 'caseNumber'
|
|
16787
16815
|
});
|
|
16788
16816
|
this.emitLinkedCasesState(false);
|
|
16789
16817
|
window.scrollTo(0, 0);
|
|
@@ -16795,7 +16823,7 @@ class LinkCasesComponent {
|
|
|
16795
16823
|
this.linkedCasesStateEmitter.emit({
|
|
16796
16824
|
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
16797
16825
|
errorMessages: this.errorMessages,
|
|
16798
|
-
navigateToNextPage: isNavigateToNextPage
|
|
16826
|
+
navigateToNextPage: isNavigateToNextPage
|
|
16799
16827
|
});
|
|
16800
16828
|
}
|
|
16801
16829
|
getSelectedCaseReasons() {
|
|
@@ -16830,7 +16858,7 @@ class LinkCasesComponent {
|
|
|
16830
16858
|
}
|
|
16831
16859
|
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
16832
16860
|
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
16833
|
-
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16861
|
+
const updatedItems = caseFieldValue.filter((item) => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16834
16862
|
if (updatedItems) {
|
|
16835
16863
|
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
16836
16864
|
}
|
|
@@ -16851,7 +16879,7 @@ class LinkCasesComponent {
|
|
|
16851
16879
|
this.errorMessages.push({
|
|
16852
16880
|
title: 'dummy-case-selection',
|
|
16853
16881
|
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
16854
|
-
fieldId: 'caseReason'
|
|
16882
|
+
fieldId: 'caseReason'
|
|
16855
16883
|
});
|
|
16856
16884
|
navigateToNextPage = false;
|
|
16857
16885
|
}
|
|
@@ -17586,7 +17614,7 @@ class UnLinkCasesComponent {
|
|
|
17586
17614
|
}
|
|
17587
17615
|
else {
|
|
17588
17616
|
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
17589
|
-
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17617
|
+
const linkedCasesTab = caseView.tabs.find((tab) => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17590
17618
|
if (linkedCasesTab) {
|
|
17591
17619
|
const linkedCases = linkedCasesTab.fields[0].value;
|
|
17592
17620
|
this.linkedCases = linkedCases;
|
|
@@ -17598,22 +17626,22 @@ class UnLinkCasesComponent {
|
|
|
17598
17626
|
}
|
|
17599
17627
|
getAllLinkedCaseInformation() {
|
|
17600
17628
|
const searchCasesResponse = [];
|
|
17601
|
-
this.linkedCases.forEach(linkedCase => {
|
|
17629
|
+
this.linkedCases.forEach((linkedCase) => {
|
|
17602
17630
|
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
17603
17631
|
});
|
|
17604
17632
|
if (searchCasesResponse.length) {
|
|
17605
17633
|
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
17606
17634
|
searchCases.forEach((response) => {
|
|
17607
|
-
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
17635
|
+
const linkedCaseFromList = this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id);
|
|
17608
17636
|
if (linkedCaseFromList) {
|
|
17609
17637
|
const caseName = this.linkedCasesService.getCaseName(response);
|
|
17610
|
-
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17638
|
+
this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17611
17639
|
}
|
|
17612
17640
|
});
|
|
17613
17641
|
this.initForm();
|
|
17614
17642
|
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
17615
17643
|
this.isServerError = false;
|
|
17616
|
-
}, err => {
|
|
17644
|
+
}, (err) => {
|
|
17617
17645
|
this.isServerError = true;
|
|
17618
17646
|
this.notifyAPIFailure.emit(true);
|
|
17619
17647
|
});
|
|
@@ -17628,7 +17656,7 @@ class UnLinkCasesComponent {
|
|
|
17628
17656
|
});
|
|
17629
17657
|
}
|
|
17630
17658
|
get getLinkedCasesFormArray() {
|
|
17631
|
-
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
17659
|
+
const formFieldArray = this.linkedCases.map((val) => this.fb.group({
|
|
17632
17660
|
caseReference: val.caseReference,
|
|
17633
17661
|
reasons: val.reasons,
|
|
17634
17662
|
createdDateTime: val.createdDateTime,
|
|
@@ -17642,7 +17670,7 @@ class UnLinkCasesComponent {
|
|
|
17642
17670
|
}
|
|
17643
17671
|
onChange(caseSelected) {
|
|
17644
17672
|
this.resetErrorMessages();
|
|
17645
|
-
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
17673
|
+
const selectedCase = this.linkedCases.find((linkedCase) => linkedCase.caseReference === caseSelected.value);
|
|
17646
17674
|
if (selectedCase) {
|
|
17647
17675
|
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
17648
17676
|
}
|
|
@@ -17650,7 +17678,7 @@ class UnLinkCasesComponent {
|
|
|
17650
17678
|
onNext() {
|
|
17651
17679
|
this.resetErrorMessages();
|
|
17652
17680
|
let navigateToNextPage = true;
|
|
17653
|
-
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
17681
|
+
const casesMarkedToUnlink = this.linkedCases.find((linkedCase) => linkedCase.unlink && linkedCase.unlink === true);
|
|
17654
17682
|
if (!casesMarkedToUnlink) {
|
|
17655
17683
|
this.errorMessages.push({
|
|
17656
17684
|
title: 'case-selection',
|
|
@@ -17668,7 +17696,7 @@ class UnLinkCasesComponent {
|
|
|
17668
17696
|
this.linkedCasesStateEmitter.emit({
|
|
17669
17697
|
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
17670
17698
|
errorMessages: this.errorMessages,
|
|
17671
|
-
navigateToNextPage: isNavigateToNextPage
|
|
17699
|
+
navigateToNextPage: isNavigateToNextPage
|
|
17672
17700
|
});
|
|
17673
17701
|
}
|
|
17674
17702
|
resetErrorMessages() {
|
|
@@ -18011,14 +18039,16 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18011
18039
|
// Get linked case reasons from ref data
|
|
18012
18040
|
this.linkedCasesService.editMode = false;
|
|
18013
18041
|
this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
|
|
18014
|
-
next: caseDetails => {
|
|
18042
|
+
next: (caseDetails) => {
|
|
18043
|
+
this.initialiseCaseDetails(caseDetails);
|
|
18044
|
+
}
|
|
18015
18045
|
}));
|
|
18016
18046
|
this.getOrgService();
|
|
18017
18047
|
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
18018
|
-
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18048
|
+
next: (name) => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18019
18049
|
}));
|
|
18020
18050
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18021
|
-
next: editForm => this.caseEditForm = editForm
|
|
18051
|
+
next: (editForm) => this.caseEditForm = editForm
|
|
18022
18052
|
}));
|
|
18023
18053
|
}
|
|
18024
18054
|
initialiseCaseDetails(caseDetails) {
|
|
@@ -18094,13 +18124,28 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18094
18124
|
}
|
|
18095
18125
|
}
|
|
18096
18126
|
submitLinkedCases() {
|
|
18127
|
+
let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
|
|
18097
18128
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18098
|
-
const
|
|
18099
|
-
|
|
18100
|
-
|
|
18129
|
+
const unlinkedCaseReferenceIds = this.linkedCasesService.linkedCases
|
|
18130
|
+
.filter((item) => item.unlink)
|
|
18131
|
+
.map((item) => item.caseReference);
|
|
18132
|
+
caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
|
|
18133
|
+
}
|
|
18134
|
+
// Replace the caseLinks value in this.formGroup
|
|
18135
|
+
this.formGroup.patchValue({
|
|
18136
|
+
caseLinks: caseFieldValue
|
|
18137
|
+
});
|
|
18138
|
+
// Replace the caseLinks control in caseEditForm.controls.data
|
|
18139
|
+
const dataFormGroup = this.caseEditForm.controls.data;
|
|
18140
|
+
if (dataFormGroup) {
|
|
18141
|
+
// Remove the existing caseLinks control (if it exists)
|
|
18142
|
+
if (dataFormGroup.contains('caseLinks')) {
|
|
18143
|
+
dataFormGroup.removeControl('caseLinks');
|
|
18144
|
+
}
|
|
18145
|
+
// Add the new control with the replacement value
|
|
18146
|
+
dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
|
|
18101
18147
|
}
|
|
18102
|
-
|
|
18103
|
-
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
18148
|
+
// Set the updated form in the caseEditDataService
|
|
18104
18149
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
18105
18150
|
}
|
|
18106
18151
|
isAtFinalPage() {
|
|
@@ -18117,11 +18162,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18117
18162
|
}
|
|
18118
18163
|
getLinkedCases() {
|
|
18119
18164
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
18120
|
-
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
18165
|
+
const caseViewFiltered = caseView.tabs.filter((tab) => {
|
|
18121
18166
|
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
18122
18167
|
});
|
|
18123
18168
|
if (caseViewFiltered) {
|
|
18124
|
-
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18169
|
+
const caseLinkFieldValue = caseViewFiltered.map((filtered) => filtered.fields?.length > 0 && filtered.fields.filter((field) => field.id === 'caseLinks')[0].value);
|
|
18125
18170
|
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18126
18171
|
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18127
18172
|
}
|
|
@@ -18161,7 +18206,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18161
18206
|
type: Component,
|
|
18162
18207
|
args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
18163
18208
|
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18164
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
18209
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 18 }); })();
|
|
18165
18210
|
|
|
18166
18211
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18167
18212
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19548,8 +19593,10 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
19548
19593
|
i0.ɵɵtext(5);
|
|
19549
19594
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
19550
19595
|
i0.ɵɵelementEnd();
|
|
19551
|
-
i0.ɵɵ
|
|
19552
|
-
i0.ɵɵ
|
|
19596
|
+
i0.ɵɵelementStart(7, "div", 3);
|
|
19597
|
+
i0.ɵɵelement(8, "ccd-markdown", 4);
|
|
19598
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
19599
|
+
i0.ɵɵelementEnd();
|
|
19553
19600
|
i0.ɵɵelementContainerEnd();
|
|
19554
19601
|
} if (rf & 2) {
|
|
19555
19602
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -19557,25 +19604,25 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
19557
19604
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Are you contacting us about any of the following:"), " ");
|
|
19558
19605
|
i0.ɵɵadvance(3);
|
|
19559
19606
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx_r0.qualifyingQuestion.name), " ");
|
|
19560
|
-
i0.ɵɵadvance(
|
|
19561
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
19607
|
+
i0.ɵɵadvance(3);
|
|
19608
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(9, 7, ctx_r0.qualifyingQuestion.markdown));
|
|
19562
19609
|
} }
|
|
19563
19610
|
class QualifyingQuestionDetailComponent {
|
|
19564
19611
|
qualifyingQuestion;
|
|
19565
19612
|
static ɵfac = function QualifyingQuestionDetailComponent_Factory(t) { return new (t || QualifyingQuestionDetailComponent)(); };
|
|
19566
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-caption-l"], [1, "govuk-heading-l"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19567
|
-
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template,
|
|
19613
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-caption-l"], [1, "govuk-heading-l"], [1, "qm-qualifying-question"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19614
|
+
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 10, 9, "ng-container", 0);
|
|
19568
19615
|
} if (rf & 2) {
|
|
19569
19616
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestion == null ? null : ctx.qualifyingQuestion.markdown);
|
|
19570
|
-
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe],
|
|
19617
|
+
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], styles: [".qm-qualifying-question[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{font-size:19px}"] });
|
|
19571
19618
|
}
|
|
19572
19619
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionDetailComponent, [{
|
|
19573
19620
|
type: Component,
|
|
19574
|
-
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <span class=\"govuk-caption-l\">\n {{ 'Are you contacting us about any of the following:' | rpxTranslate }}\n </span>\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n</ng-container>\n" }]
|
|
19621
|
+
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <span class=\"govuk-caption-l\">\n {{ 'Are you contacting us about any of the following:' | rpxTranslate }}\n </span>\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <div class=\"qm-qualifying-question\">\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n </div>\n</ng-container>\n", styles: [".qm-qualifying-question .markdown{font-size:19px}\n"] }]
|
|
19575
19622
|
}], null, { qualifyingQuestion: [{
|
|
19576
19623
|
type: Input
|
|
19577
19624
|
}] }); })();
|
|
19578
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber:
|
|
19625
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber: 9 }); })();
|
|
19579
19626
|
|
|
19580
19627
|
var RaiseQueryErrorMessage;
|
|
19581
19628
|
(function (RaiseQueryErrorMessage) {
|
|
@@ -20234,7 +20281,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
20234
20281
|
caseViewTrigger;
|
|
20235
20282
|
caseDetails;
|
|
20236
20283
|
queryId;
|
|
20237
|
-
tid;
|
|
20238
20284
|
createEventSubscription;
|
|
20239
20285
|
searchTasksSubscription;
|
|
20240
20286
|
queryCreateContextEnum = QueryCreateContext;
|
|
@@ -20254,11 +20300,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
20254
20300
|
}
|
|
20255
20301
|
ngOnInit() {
|
|
20256
20302
|
this.queryId = this.route.snapshot.params.qid;
|
|
20257
|
-
this.tid = this.route.snapshot.queryParams?.tid;
|
|
20258
|
-
console.log('tid:', this.tid);
|
|
20259
20303
|
this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
|
|
20260
20304
|
this.caseDetails = caseDetails;
|
|
20261
|
-
console.log('caseDetails:', this.caseDetails.case_id, this.caseDetails);
|
|
20262
20305
|
// Find the appropriate event trigger based on the queryCreateContext
|
|
20263
20306
|
this.caseViewTrigger = this.caseDetails.triggers.find((trigger) => this.queryCreateContext !== QueryCreateContext.RESPOND
|
|
20264
20307
|
// If the context is not 'RESPOND', find the trigger with the ID for raising a query
|
|
@@ -20269,23 +20312,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
20269
20312
|
// Get the document attachments
|
|
20270
20313
|
this.getDocumentAttachments();
|
|
20271
20314
|
this.setCaseQueriesCollectionData();
|
|
20272
|
-
this.workAllocationService.getTasksByCaseIdAndEventId('queryManagementRespondToQuery', this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
|
|
20273
|
-
.subscribe((response) => {
|
|
20274
|
-
console.log('response:-queryManagementRespondToQ', response);
|
|
20275
|
-
});
|
|
20276
|
-
if (this.tid) {
|
|
20277
|
-
this.workAllocationService.getTask(this.tid).subscribe((response) => {
|
|
20278
|
-
console.log('response-tid------:', response);
|
|
20279
|
-
}, (error) => {
|
|
20280
|
-
console.error('Error in getTask:', error);
|
|
20281
|
-
// Handle error appropriately
|
|
20282
|
-
});
|
|
20283
|
-
}
|
|
20284
|
-
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20285
|
-
this.workAllocationService.searchTasks(searchParameter)
|
|
20286
|
-
.subscribe((response) => {
|
|
20287
|
-
console.log('response:searchTasks', response);
|
|
20288
|
-
});
|
|
20289
20315
|
}
|
|
20290
20316
|
ngOnDestroy() {
|
|
20291
20317
|
this.createEventSubscription?.unsubscribe();
|
|
@@ -20863,16 +20889,11 @@ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
20863
20889
|
} }
|
|
20864
20890
|
class QueryDetailsComponent {
|
|
20865
20891
|
sessionStorageService;
|
|
20866
|
-
route;
|
|
20867
20892
|
query;
|
|
20868
20893
|
backClicked = new EventEmitter();
|
|
20869
20894
|
caseId;
|
|
20870
|
-
|
|
20871
|
-
static QUERY_ITEM_RESPOND = '3';
|
|
20872
|
-
queryItemId;
|
|
20873
|
-
constructor(sessionStorageService, route) {
|
|
20895
|
+
constructor(sessionStorageService) {
|
|
20874
20896
|
this.sessionStorageService = sessionStorageService;
|
|
20875
|
-
this.route = route;
|
|
20876
20897
|
}
|
|
20877
20898
|
onBack() {
|
|
20878
20899
|
this.backClicked.emit(true);
|
|
@@ -20883,15 +20904,8 @@ class QueryDetailsComponent {
|
|
|
20883
20904
|
&& !(userDetails.roles.includes('pui-case-manager')
|
|
20884
20905
|
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
20885
20906
|
}
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
}
|
|
20889
|
-
toggleLinkVisibility() {
|
|
20890
|
-
this.queryItemId = this.route.snapshot.params.qid;
|
|
20891
|
-
this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
|
|
20892
|
-
}
|
|
20893
|
-
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
20894
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20907
|
+
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20908
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20895
20909
|
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 49, 43, "ng-container", 1);
|
|
20896
20910
|
} if (rf & 2) {
|
|
20897
20911
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
@@ -20900,7 +20914,7 @@ class QueryDetailsComponent {
|
|
|
20900
20914
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20901
20915
|
type: Component,
|
|
20902
20916
|
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
20903
|
-
}], () => [{ type: SessionStorageService }
|
|
20917
|
+
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20904
20918
|
type: Input
|
|
20905
20919
|
}], backClicked: [{
|
|
20906
20920
|
type: Output
|
|
@@ -21286,8 +21300,8 @@ class QueryWriteDateInputComponent {
|
|
|
21286
21300
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 15 }); })();
|
|
21287
21301
|
|
|
21288
21302
|
const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
|
|
21289
|
-
function
|
|
21290
|
-
i0.ɵɵelementStart(0, "p",
|
|
21303
|
+
function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21304
|
+
i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
|
|
21291
21305
|
i0.ɵɵtext(2);
|
|
21292
21306
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21293
21307
|
i0.ɵɵelementEnd();
|
|
@@ -21295,14 +21309,14 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
21295
21309
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21296
21310
|
i0.ɵɵelementEnd();
|
|
21297
21311
|
} if (rf & 2) {
|
|
21298
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21312
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21299
21313
|
i0.ɵɵadvance(2);
|
|
21300
21314
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21301
21315
|
i0.ɵɵadvance(2);
|
|
21302
21316
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
|
|
21303
21317
|
} }
|
|
21304
|
-
function
|
|
21305
|
-
i0.ɵɵelementStart(0, "p",
|
|
21318
|
+
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
21319
|
+
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
21306
21320
|
i0.ɵɵtext(2);
|
|
21307
21321
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21308
21322
|
i0.ɵɵelementEnd();
|
|
@@ -21310,14 +21324,14 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
21310
21324
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21311
21325
|
i0.ɵɵelementEnd();
|
|
21312
21326
|
} if (rf & 2) {
|
|
21313
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21327
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21314
21328
|
i0.ɵɵadvance(2);
|
|
21315
21329
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21316
21330
|
i0.ɵɵadvance(2);
|
|
21317
21331
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
21318
21332
|
} }
|
|
21319
|
-
function
|
|
21320
|
-
i0.ɵɵelementStart(0, "p",
|
|
21333
|
+
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
21334
|
+
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
21321
21335
|
i0.ɵɵtext(2);
|
|
21322
21336
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21323
21337
|
i0.ɵɵelementEnd();
|
|
@@ -21325,14 +21339,14 @@ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
|
|
|
21325
21339
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21326
21340
|
i0.ɵɵelementEnd();
|
|
21327
21341
|
} if (rf & 2) {
|
|
21328
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21342
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21329
21343
|
i0.ɵɵadvance(2);
|
|
21330
21344
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21331
21345
|
i0.ɵɵadvance(2);
|
|
21332
21346
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
21333
21347
|
} }
|
|
21334
|
-
function
|
|
21335
|
-
i0.ɵɵelementStart(0, "p",
|
|
21348
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
21349
|
+
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
21336
21350
|
i0.ɵɵtext(2);
|
|
21337
21351
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21338
21352
|
i0.ɵɵelementEnd();
|
|
@@ -21340,24 +21354,24 @@ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { i
|
|
|
21340
21354
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21341
21355
|
i0.ɵɵelementEnd();
|
|
21342
21356
|
} if (rf & 2) {
|
|
21343
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21357
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21344
21358
|
i0.ɵɵadvance(2);
|
|
21345
21359
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21346
21360
|
i0.ɵɵadvance(2);
|
|
21347
21361
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
21348
21362
|
} }
|
|
21349
|
-
function
|
|
21363
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
21350
21364
|
i0.ɵɵelementContainerStart(0);
|
|
21351
|
-
i0.ɵɵelementStart(1, "div",
|
|
21365
|
+
i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
|
|
21352
21366
|
i0.ɵɵtext(5);
|
|
21353
21367
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
21354
21368
|
i0.ɵɵelementEnd()();
|
|
21355
|
-
i0.ɵɵtemplate(7,
|
|
21356
|
-
i0.ɵɵelement(8, "ccd-query-write-date-input",
|
|
21369
|
+
i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
|
|
21370
|
+
i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
|
|
21357
21371
|
i0.ɵɵelementEnd()();
|
|
21358
21372
|
i0.ɵɵelementContainerEnd();
|
|
21359
21373
|
} if (rf & 2) {
|
|
21360
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21374
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21361
21375
|
i0.ɵɵadvance();
|
|
21362
21376
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
|
|
21363
21377
|
i0.ɵɵadvance(4);
|
|
@@ -21365,13 +21379,101 @@ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (r
|
|
|
21365
21379
|
i0.ɵɵadvance(2);
|
|
21366
21380
|
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
|
|
21367
21381
|
} }
|
|
21382
|
+
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
21383
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
21384
|
+
i0.ɵɵtext(6);
|
|
21385
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21386
|
+
i0.ɵɵelementEnd()();
|
|
21387
|
+
i0.ɵɵelementStart(8, "div", 10);
|
|
21388
|
+
i0.ɵɵtext(9);
|
|
21389
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21390
|
+
i0.ɵɵelementEnd();
|
|
21391
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
21392
|
+
i0.ɵɵelement(12, "input", 12);
|
|
21393
|
+
i0.ɵɵelementEnd()();
|
|
21394
|
+
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
21395
|
+
i0.ɵɵtext(16);
|
|
21396
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21397
|
+
i0.ɵɵelementEnd()();
|
|
21398
|
+
i0.ɵɵelementStart(18, "div", 14);
|
|
21399
|
+
i0.ɵɵtext(19);
|
|
21400
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
21401
|
+
i0.ɵɵelementEnd();
|
|
21402
|
+
i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
|
|
21403
|
+
i0.ɵɵelementStart(22, "textarea", 16);
|
|
21404
|
+
i0.ɵɵtext(23, " ");
|
|
21405
|
+
i0.ɵɵelementEnd()();
|
|
21406
|
+
i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
|
|
21407
|
+
i0.ɵɵtext(28);
|
|
21408
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
21409
|
+
i0.ɵɵelementEnd()();
|
|
21410
|
+
i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
|
|
21411
|
+
i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
|
|
21412
|
+
i0.ɵɵelement(33, "input", 22);
|
|
21413
|
+
i0.ɵɵelementStart(34, "label", 23);
|
|
21414
|
+
i0.ɵɵtext(35);
|
|
21415
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
21416
|
+
i0.ɵɵelementEnd()();
|
|
21417
|
+
i0.ɵɵelementStart(37, "div", 21);
|
|
21418
|
+
i0.ɵɵelement(38, "input", 24);
|
|
21419
|
+
i0.ɵɵelementStart(39, "label", 25);
|
|
21420
|
+
i0.ɵɵtext(40);
|
|
21421
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
21422
|
+
i0.ɵɵelementEnd()()()();
|
|
21423
|
+
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
21424
|
+
i0.ɵɵelementEnd()()();
|
|
21425
|
+
} if (rf & 2) {
|
|
21426
|
+
let tmp_6_0;
|
|
21427
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21428
|
+
i0.ɵɵadvance();
|
|
21429
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21430
|
+
i0.ɵɵadvance(2);
|
|
21431
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
21432
|
+
i0.ɵɵadvance(3);
|
|
21433
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
|
|
21434
|
+
i0.ɵɵadvance(3);
|
|
21435
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
|
|
21436
|
+
i0.ɵɵadvance(2);
|
|
21437
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
|
|
21438
|
+
i0.ɵɵadvance();
|
|
21439
|
+
i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
|
|
21440
|
+
i0.ɵɵproperty("formControlName", "subject");
|
|
21441
|
+
i0.ɵɵadvance();
|
|
21442
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
21443
|
+
i0.ɵɵadvance(3);
|
|
21444
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
|
|
21445
|
+
i0.ɵɵadvance(3);
|
|
21446
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21447
|
+
i0.ɵɵadvance(2);
|
|
21448
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21449
|
+
i0.ɵɵadvance();
|
|
21450
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21451
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21452
|
+
i0.ɵɵadvance(2);
|
|
21453
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
21454
|
+
i0.ɵɵadvance(4);
|
|
21455
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
|
|
21456
|
+
i0.ɵɵadvance(2);
|
|
21457
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
|
|
21458
|
+
i0.ɵɵadvance(3);
|
|
21459
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21460
|
+
i0.ɵɵadvance(2);
|
|
21461
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
|
|
21462
|
+
i0.ɵɵadvance(3);
|
|
21463
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21464
|
+
i0.ɵɵadvance(2);
|
|
21465
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
|
|
21466
|
+
i0.ɵɵadvance(2);
|
|
21467
|
+
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
|
|
21468
|
+
} }
|
|
21368
21469
|
class QueryWriteRaiseQueryComponent {
|
|
21369
21470
|
formGroup;
|
|
21370
21471
|
submitted;
|
|
21371
21472
|
caseDetails;
|
|
21473
|
+
showForm;
|
|
21372
21474
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
21373
21475
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
21374
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls:
|
|
21476
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-radios__conditional", "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21375
21477
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
21376
21478
|
i0.ɵɵtext(3);
|
|
21377
21479
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21384,112 +21486,35 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21384
21486
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
21385
21487
|
i0.ɵɵelementEnd();
|
|
21386
21488
|
i0.ɵɵelement(10, "hr");
|
|
21387
|
-
i0.ɵɵ
|
|
21388
|
-
i0.ɵɵtext(17);
|
|
21389
|
-
i0.ɵɵpipe(18, "rpxTranslate");
|
|
21390
|
-
i0.ɵɵelementEnd()();
|
|
21391
|
-
i0.ɵɵelementStart(19, "div", 9);
|
|
21392
|
-
i0.ɵɵtext(20);
|
|
21393
|
-
i0.ɵɵpipe(21, "rpxTranslate");
|
|
21489
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
|
|
21394
21490
|
i0.ɵɵelementEnd();
|
|
21395
|
-
i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
|
|
21396
|
-
i0.ɵɵelement(23, "input", 11);
|
|
21397
|
-
i0.ɵɵelementEnd()();
|
|
21398
|
-
i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
|
|
21399
|
-
i0.ɵɵtext(27);
|
|
21400
|
-
i0.ɵɵpipe(28, "rpxTranslate");
|
|
21401
|
-
i0.ɵɵelementEnd()();
|
|
21402
|
-
i0.ɵɵelementStart(29, "div", 13);
|
|
21403
|
-
i0.ɵɵtext(30);
|
|
21404
|
-
i0.ɵɵpipe(31, "rpxTranslate");
|
|
21405
|
-
i0.ɵɵelementEnd();
|
|
21406
|
-
i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
|
|
21407
|
-
i0.ɵɵelementStart(33, "textarea", 15);
|
|
21408
|
-
i0.ɵɵtext(34, " ");
|
|
21409
|
-
i0.ɵɵelementEnd()();
|
|
21410
|
-
i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
|
|
21411
|
-
i0.ɵɵtext(39);
|
|
21412
|
-
i0.ɵɵpipe(40, "rpxTranslate");
|
|
21413
|
-
i0.ɵɵelementEnd()();
|
|
21414
|
-
i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
|
|
21415
|
-
i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
|
|
21416
|
-
i0.ɵɵelement(44, "input", 21);
|
|
21417
|
-
i0.ɵɵelementStart(45, "label", 22);
|
|
21418
|
-
i0.ɵɵtext(46);
|
|
21419
|
-
i0.ɵɵpipe(47, "rpxTranslate");
|
|
21420
|
-
i0.ɵɵelementEnd()();
|
|
21421
|
-
i0.ɵɵelementStart(48, "div", 20);
|
|
21422
|
-
i0.ɵɵelement(49, "input", 23);
|
|
21423
|
-
i0.ɵɵelementStart(50, "label", 24);
|
|
21424
|
-
i0.ɵɵtext(51);
|
|
21425
|
-
i0.ɵɵpipe(52, "rpxTranslate");
|
|
21426
|
-
i0.ɵɵelementEnd()()()();
|
|
21427
|
-
i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
|
|
21428
|
-
i0.ɵɵelementEnd()()()();
|
|
21429
21491
|
} if (rf & 2) {
|
|
21430
|
-
let tmp_8_0;
|
|
21431
21492
|
i0.ɵɵadvance(3);
|
|
21432
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21493
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
|
|
21433
21494
|
i0.ɵɵadvance(3);
|
|
21434
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21495
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
|
|
21435
21496
|
i0.ɵɵadvance(3);
|
|
21436
21497
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21437
|
-
i0.ɵɵadvance(3);
|
|
21438
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21439
|
-
i0.ɵɵadvance(2);
|
|
21440
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
|
|
21441
|
-
i0.ɵɵadvance(3);
|
|
21442
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
|
|
21443
|
-
i0.ɵɵadvance(3);
|
|
21444
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
|
|
21445
|
-
i0.ɵɵadvance(2);
|
|
21446
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
|
|
21447
|
-
i0.ɵɵadvance();
|
|
21448
|
-
i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
|
|
21449
|
-
i0.ɵɵproperty("formControlName", "subject");
|
|
21450
|
-
i0.ɵɵadvance();
|
|
21451
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
|
|
21452
|
-
i0.ɵɵadvance(3);
|
|
21453
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
|
|
21454
|
-
i0.ɵɵadvance(3);
|
|
21455
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21456
|
-
i0.ɵɵadvance(2);
|
|
21457
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21458
|
-
i0.ɵɵadvance();
|
|
21459
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21460
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21461
|
-
i0.ɵɵadvance(2);
|
|
21462
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(54, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
|
|
21463
|
-
i0.ɵɵadvance(4);
|
|
21464
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
|
|
21465
|
-
i0.ɵɵadvance(2);
|
|
21466
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
|
|
21467
|
-
i0.ɵɵadvance(3);
|
|
21468
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21469
|
-
i0.ɵɵadvance(2);
|
|
21470
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
|
|
21471
|
-
i0.ɵɵadvance(3);
|
|
21472
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21473
21498
|
i0.ɵɵadvance(2);
|
|
21474
|
-
i0.ɵɵ
|
|
21475
|
-
i0.ɵɵadvance(2);
|
|
21476
|
-
i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
|
|
21499
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21477
21500
|
} }, encapsulation: 2 });
|
|
21478
21501
|
}
|
|
21479
21502
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
21480
21503
|
type: Component,
|
|
21481
|
-
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
21504
|
+
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
21482
21505
|
}], null, { formGroup: [{
|
|
21483
21506
|
type: Input
|
|
21484
21507
|
}], submitted: [{
|
|
21485
21508
|
type: Input
|
|
21486
21509
|
}], caseDetails: [{
|
|
21487
21510
|
type: Input
|
|
21511
|
+
}], showForm: [{
|
|
21512
|
+
type: Input
|
|
21488
21513
|
}] }); })();
|
|
21489
21514
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 8 }); })();
|
|
21490
21515
|
|
|
21491
|
-
function
|
|
21492
|
-
i0.ɵɵelementStart(0, "p",
|
|
21516
|
+
function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21517
|
+
i0.ɵɵelementStart(0, "p", 15)(1, "span", 16);
|
|
21493
21518
|
i0.ɵɵtext(2);
|
|
21494
21519
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21495
21520
|
i0.ɵɵelementEnd();
|
|
@@ -21497,18 +21522,51 @@ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) { if (rf & 1)
|
|
|
21497
21522
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21498
21523
|
i0.ɵɵelementEnd();
|
|
21499
21524
|
} if (rf & 2) {
|
|
21500
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21525
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21501
21526
|
i0.ɵɵadvance(2);
|
|
21502
21527
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21503
21528
|
i0.ɵɵadvance(2);
|
|
21504
21529
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21505
21530
|
} }
|
|
21531
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21532
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div")(2, "h1", 8);
|
|
21533
|
+
i0.ɵɵtext(3);
|
|
21534
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21535
|
+
i0.ɵɵelementEnd();
|
|
21536
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "div", 10)(7, "div", 11)(8, "label", 12);
|
|
21537
|
+
i0.ɵɵtext(9);
|
|
21538
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21539
|
+
i0.ɵɵelementEnd()();
|
|
21540
|
+
i0.ɵɵtemplate(11, QueryWriteRespondToQueryComponent_div_12_p_11_Template, 6, 6, "p", 13);
|
|
21541
|
+
i0.ɵɵelementStart(12, "textarea", 14);
|
|
21542
|
+
i0.ɵɵtext(13, " ");
|
|
21543
|
+
i0.ɵɵelementEnd()()()()();
|
|
21544
|
+
} if (rf & 2) {
|
|
21545
|
+
let tmp_3_0;
|
|
21546
|
+
let tmp_5_0;
|
|
21547
|
+
let tmp_6_0;
|
|
21548
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21549
|
+
i0.ɵɵadvance(3);
|
|
21550
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(4, 9, "Ask a follow-up question"), " ");
|
|
21551
|
+
i0.ɵɵadvance(2);
|
|
21552
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21553
|
+
i0.ɵɵadvance();
|
|
21554
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_3_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_3_0.hasError("required")));
|
|
21555
|
+
i0.ɵɵadvance(3);
|
|
21556
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(10, 11, "Query Body"), " ");
|
|
21557
|
+
i0.ɵɵadvance(2);
|
|
21558
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_5_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
|
|
21559
|
+
i0.ɵɵadvance();
|
|
21560
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21561
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21562
|
+
} }
|
|
21506
21563
|
class QueryWriteRespondToQueryComponent {
|
|
21507
21564
|
caseNotifier;
|
|
21508
21565
|
queryItem;
|
|
21509
21566
|
formGroup;
|
|
21510
21567
|
queryCreateContext;
|
|
21511
21568
|
submitted = false;
|
|
21569
|
+
showForm;
|
|
21512
21570
|
queryCreateContextEnum = QueryCreateContext;
|
|
21513
21571
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21514
21572
|
caseId;
|
|
@@ -21523,7 +21581,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21523
21581
|
});
|
|
21524
21582
|
}
|
|
21525
21583
|
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21526
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls:
|
|
21584
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", showForm: "showForm" }, decls: 13, vars: 9, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "query"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21527
21585
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21528
21586
|
i0.ɵɵtext(3);
|
|
21529
21587
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21538,48 +21596,23 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21538
21596
|
i0.ɵɵelementStart(10, "div");
|
|
21539
21597
|
i0.ɵɵelement(11, "ccd-query-details", 5);
|
|
21540
21598
|
i0.ɵɵelementEnd()();
|
|
21541
|
-
i0.ɵɵ
|
|
21542
|
-
i0.ɵɵtext(15);
|
|
21543
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
21544
|
-
i0.ɵɵelementEnd();
|
|
21545
|
-
i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "label", 11);
|
|
21546
|
-
i0.ɵɵtext(21);
|
|
21547
|
-
i0.ɵɵpipe(22, "rpxTranslate");
|
|
21548
|
-
i0.ɵɵelementEnd()();
|
|
21549
|
-
i0.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 12);
|
|
21550
|
-
i0.ɵɵelementStart(24, "textarea", 13);
|
|
21551
|
-
i0.ɵɵtext(25, " ");
|
|
21552
|
-
i0.ɵɵelementEnd()()()()();
|
|
21599
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
|
|
21553
21600
|
} if (rf & 2) {
|
|
21554
|
-
let tmp_6_0;
|
|
21555
|
-
let tmp_8_0;
|
|
21556
|
-
let tmp_9_0;
|
|
21557
21601
|
i0.ɵɵadvance(3);
|
|
21558
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21602
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Respond to a query"));
|
|
21559
21603
|
i0.ɵɵadvance(3);
|
|
21560
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21604
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Query details"));
|
|
21561
21605
|
i0.ɵɵadvance(3);
|
|
21562
21606
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21563
21607
|
i0.ɵɵadvance(2);
|
|
21564
21608
|
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21565
|
-
i0.ɵɵadvance(4);
|
|
21566
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(16, 17, "Ask a follow-up question"), " ");
|
|
21567
|
-
i0.ɵɵadvance(2);
|
|
21568
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21569
|
-
i0.ɵɵadvance();
|
|
21570
|
-
i0.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21571
|
-
i0.ɵɵadvance(3);
|
|
21572
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(22, 19, "Query Body"), " ");
|
|
21573
|
-
i0.ɵɵadvance(2);
|
|
21574
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
|
|
21575
21609
|
i0.ɵɵadvance();
|
|
21576
|
-
i0.ɵɵ
|
|
21577
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21610
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21578
21611
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21579
21612
|
}
|
|
21580
21613
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21581
21614
|
type: Component,
|
|
21582
|
-
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
|
|
21615
|
+
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
|
|
21583
21616
|
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21584
21617
|
type: Input
|
|
21585
21618
|
}], formGroup: [{
|
|
@@ -21588,6 +21621,8 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21588
21621
|
type: Input
|
|
21589
21622
|
}], submitted: [{
|
|
21590
21623
|
type: Input
|
|
21624
|
+
}], showForm: [{
|
|
21625
|
+
type: Input
|
|
21591
21626
|
}] }); })();
|
|
21592
21627
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
|
|
21593
21628
|
|
|
@@ -27635,7 +27670,7 @@ class EventLogTableComponent {
|
|
|
27635
27670
|
|
|
27636
27671
|
function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
27637
27672
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
27638
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27673
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
|
|
27639
27674
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); })("onCaseHistory", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onCaseHistory_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.caseHistoryClicked($event)); });
|
|
27640
27675
|
i0.ɵɵelementEnd();
|
|
27641
27676
|
} if (rf & 2) {
|
|
@@ -27644,7 +27679,7 @@ function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1)
|
|
|
27644
27679
|
} }
|
|
27645
27680
|
function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
27646
27681
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27647
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27682
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 9);
|
|
27648
27683
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_4_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); });
|
|
27649
27684
|
i0.ɵɵelementEnd();
|
|
27650
27685
|
} if (rf & 2) {
|
|
@@ -27652,7 +27687,7 @@ function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1)
|
|
|
27652
27687
|
i0.ɵɵproperty("events", ctx_r1.events)("selected", ctx_r1.selected);
|
|
27653
27688
|
} }
|
|
27654
27689
|
function EventLogComponent_ccd_event_log_details_7_Template(rf, ctx) { if (rf & 1) {
|
|
27655
|
-
i0.ɵɵelement(0, "ccd-event-log-details",
|
|
27690
|
+
i0.ɵɵelement(0, "ccd-event-log-details", 10);
|
|
27656
27691
|
} if (rf & 2) {
|
|
27657
27692
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27658
27693
|
i0.ɵɵproperty("event", ctx_r1.selected);
|
|
@@ -27673,14 +27708,14 @@ class EventLogComponent {
|
|
|
27673
27708
|
this.onCaseHistory.emit(eventId);
|
|
27674
27709
|
}
|
|
27675
27710
|
static ɵfac = function EventLogComponent_Factory(t) { return new (t || EventLogComponent)(); };
|
|
27676
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27711
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half", "scrollbar"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "column-one-half"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27677
27712
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
27678
27713
|
i0.ɵɵelementContainerStart(2, 2);
|
|
27679
27714
|
i0.ɵɵtemplate(3, EventLogComponent_ccd_event_log_table_3_Template, 1, 2, "ccd-event-log-table", 3)(4, EventLogComponent_ccd_event_log_table_4_Template, 1, 2, "ccd-event-log-table", 4);
|
|
27680
27715
|
i0.ɵɵelementContainerEnd();
|
|
27681
27716
|
i0.ɵɵelementEnd();
|
|
27682
|
-
i0.ɵɵelementStart(5, "div",
|
|
27683
|
-
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details",
|
|
27717
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6);
|
|
27718
|
+
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 7);
|
|
27684
27719
|
i0.ɵɵelementEnd()()();
|
|
27685
27720
|
} if (rf & 2) {
|
|
27686
27721
|
i0.ɵɵadvance(2);
|
|
@@ -27691,11 +27726,11 @@ class EventLogComponent {
|
|
|
27691
27726
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
27692
27727
|
i0.ɵɵadvance(3);
|
|
27693
27728
|
i0.ɵɵproperty("ngIf", ctx.selected);
|
|
27694
|
-
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27729
|
+
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.column-half[_ngcontent-%COMP%], .column-one-half[_ngcontent-%COMP%]{float:left;width:50%}@media (min-width: 641px){.scrollbar[_ngcontent-%COMP%]{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27695
27730
|
}
|
|
27696
27731
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogComponent, [{
|
|
27697
27732
|
type: Component,
|
|
27698
|
-
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table
|
|
27733
|
+
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half scrollbar\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table\n *ngSwitchCase=\"true\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n (onCaseHistory)=\"caseHistoryClicked($event)\"\n ></ccd-event-log-table>\n <ccd-event-log-table\n *ngSwitchCase=\"false\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n ></ccd-event-log-table>\n </ng-container>\n </div>\n <div class=\"column-one-half\">\n <div class=\"EventLog-DetailsPanel\">\n <ccd-event-log-details\n *ngIf=\"selected\"\n [event]=\"selected\"\n ></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.column-half,.column-one-half{float:left;width:50%}@media (min-width: 641px){.scrollbar{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
|
|
27699
27734
|
}], null, { events: [{
|
|
27700
27735
|
type: Input
|
|
27701
27736
|
}], onCaseHistory: [{
|