@hmcts/ccd-case-ui-toolkit 7.1.34 → 7.1.35-qm-callbackerror
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/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 +13 -30
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +10 -12
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +53 -72
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.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/package.json +1 -1
|
@@ -16679,8 +16679,8 @@ class LinkCasesComponent {
|
|
|
16679
16679
|
})), this.validatorsUtils.formArraySelectedValidator());
|
|
16680
16680
|
}
|
|
16681
16681
|
toggleLinkCaseReasonOtherComments(event) {
|
|
16682
|
-
this.linkCaseReasons.find(
|
|
16683
|
-
this.showComments = this.linkCaseReasons.find(
|
|
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;
|
|
16684
16684
|
}
|
|
16685
16685
|
submitCaseInfo() {
|
|
16686
16686
|
this.errorMessages = [];
|
|
@@ -16719,7 +16719,7 @@ class LinkCasesComponent {
|
|
|
16719
16719
|
this.errorMessages.push({
|
|
16720
16720
|
title: 'dummy-case-number',
|
|
16721
16721
|
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
16722
|
-
fieldId: 'caseNumber'
|
|
16722
|
+
fieldId: 'caseNumber',
|
|
16723
16723
|
});
|
|
16724
16724
|
}
|
|
16725
16725
|
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
@@ -16727,17 +16727,17 @@ class LinkCasesComponent {
|
|
|
16727
16727
|
this.errorMessages.push({
|
|
16728
16728
|
title: 'dummy-case-reason',
|
|
16729
16729
|
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
16730
|
-
fieldId: 'caseReason'
|
|
16730
|
+
fieldId: 'caseReason',
|
|
16731
16731
|
});
|
|
16732
16732
|
}
|
|
16733
16733
|
if (this.linkCaseForm.controls.reasonType.valid
|
|
16734
|
-
&& this.linkCaseReasons.find(
|
|
16734
|
+
&& this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
|
|
16735
16735
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
|
|
16736
16736
|
this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
|
|
16737
16737
|
this.errorMessages.push({
|
|
16738
16738
|
title: 'dummy-case-reason-comments',
|
|
16739
16739
|
description: LinkedCasesErrorMessages.otherDescriptionError,
|
|
16740
|
-
fieldId: 'otherDescription'
|
|
16740
|
+
fieldId: 'otherDescription',
|
|
16741
16741
|
});
|
|
16742
16742
|
}
|
|
16743
16743
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
|
|
@@ -16745,7 +16745,7 @@ class LinkCasesComponent {
|
|
|
16745
16745
|
this.errorMessages.push({
|
|
16746
16746
|
title: 'dummy-case-reason-comments',
|
|
16747
16747
|
description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
|
|
16748
|
-
fieldId: 'otherDescription'
|
|
16748
|
+
fieldId: 'otherDescription',
|
|
16749
16749
|
});
|
|
16750
16750
|
}
|
|
16751
16751
|
}
|
|
@@ -16754,7 +16754,7 @@ class LinkCasesComponent {
|
|
|
16754
16754
|
this.errorMessages.push({
|
|
16755
16755
|
title: 'dummy-case-number',
|
|
16756
16756
|
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
16757
|
-
fieldId: 'caseNumber'
|
|
16757
|
+
fieldId: 'caseNumber',
|
|
16758
16758
|
});
|
|
16759
16759
|
}
|
|
16760
16760
|
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
@@ -16762,14 +16762,14 @@ class LinkCasesComponent {
|
|
|
16762
16762
|
this.errorMessages.push({
|
|
16763
16763
|
title: 'dummy-case-number',
|
|
16764
16764
|
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
16765
|
-
fieldId: 'caseNumber'
|
|
16765
|
+
fieldId: 'caseNumber',
|
|
16766
16766
|
});
|
|
16767
16767
|
}
|
|
16768
16768
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
16769
16769
|
this.errorMessages.push({
|
|
16770
16770
|
title: 'dummy-case-number',
|
|
16771
16771
|
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
16772
|
-
fieldId: 'caseNumber'
|
|
16772
|
+
fieldId: 'caseNumber',
|
|
16773
16773
|
});
|
|
16774
16774
|
}
|
|
16775
16775
|
window.scrollTo(0, 0);
|
|
@@ -16790,7 +16790,7 @@ class LinkCasesComponent {
|
|
|
16790
16790
|
caseState: caseView.state.name || '',
|
|
16791
16791
|
caseStateDescription: caseView.state.description || '',
|
|
16792
16792
|
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
16793
|
-
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16793
|
+
caseName: this.linkedCasesService.getCaseName(caseView),
|
|
16794
16794
|
};
|
|
16795
16795
|
const ccdApiCaseLinkData = {
|
|
16796
16796
|
CaseReference: caseView.case_id,
|
|
@@ -16803,7 +16803,7 @@ class LinkCasesComponent {
|
|
|
16803
16803
|
}
|
|
16804
16804
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16805
16805
|
this.selectedCases.push(caseLink);
|
|
16806
|
-
this.linkCaseReasons.forEach(
|
|
16806
|
+
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
16807
16807
|
this.initForm();
|
|
16808
16808
|
this.emitLinkedCasesState(false);
|
|
16809
16809
|
}, (error) => {
|
|
@@ -16811,7 +16811,7 @@ class LinkCasesComponent {
|
|
|
16811
16811
|
this.errorMessages.push({
|
|
16812
16812
|
title: 'dummy-case-number',
|
|
16813
16813
|
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
16814
|
-
fieldId: 'caseNumber'
|
|
16814
|
+
fieldId: 'caseNumber',
|
|
16815
16815
|
});
|
|
16816
16816
|
this.emitLinkedCasesState(false);
|
|
16817
16817
|
window.scrollTo(0, 0);
|
|
@@ -16823,7 +16823,7 @@ class LinkCasesComponent {
|
|
|
16823
16823
|
this.linkedCasesStateEmitter.emit({
|
|
16824
16824
|
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
16825
16825
|
errorMessages: this.errorMessages,
|
|
16826
|
-
navigateToNextPage: isNavigateToNextPage
|
|
16826
|
+
navigateToNextPage: isNavigateToNextPage,
|
|
16827
16827
|
});
|
|
16828
16828
|
}
|
|
16829
16829
|
getSelectedCaseReasons() {
|
|
@@ -16858,7 +16858,7 @@ class LinkCasesComponent {
|
|
|
16858
16858
|
}
|
|
16859
16859
|
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
16860
16860
|
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
16861
|
-
const updatedItems = caseFieldValue.filter(
|
|
16861
|
+
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16862
16862
|
if (updatedItems) {
|
|
16863
16863
|
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
16864
16864
|
}
|
|
@@ -16879,7 +16879,7 @@ class LinkCasesComponent {
|
|
|
16879
16879
|
this.errorMessages.push({
|
|
16880
16880
|
title: 'dummy-case-selection',
|
|
16881
16881
|
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
16882
|
-
fieldId: 'caseReason'
|
|
16882
|
+
fieldId: 'caseReason',
|
|
16883
16883
|
});
|
|
16884
16884
|
navigateToNextPage = false;
|
|
16885
16885
|
}
|
|
@@ -17614,7 +17614,7 @@ class UnLinkCasesComponent {
|
|
|
17614
17614
|
}
|
|
17615
17615
|
else {
|
|
17616
17616
|
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
17617
|
-
const linkedCasesTab = caseView.tabs.find(
|
|
17617
|
+
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17618
17618
|
if (linkedCasesTab) {
|
|
17619
17619
|
const linkedCases = linkedCasesTab.fields[0].value;
|
|
17620
17620
|
this.linkedCases = linkedCases;
|
|
@@ -17626,22 +17626,22 @@ class UnLinkCasesComponent {
|
|
|
17626
17626
|
}
|
|
17627
17627
|
getAllLinkedCaseInformation() {
|
|
17628
17628
|
const searchCasesResponse = [];
|
|
17629
|
-
this.linkedCases.forEach(
|
|
17629
|
+
this.linkedCases.forEach(linkedCase => {
|
|
17630
17630
|
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
17631
17631
|
});
|
|
17632
17632
|
if (searchCasesResponse.length) {
|
|
17633
17633
|
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
17634
17634
|
searchCases.forEach((response) => {
|
|
17635
|
-
const linkedCaseFromList = this.linkedCases.find(
|
|
17635
|
+
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
17636
17636
|
if (linkedCaseFromList) {
|
|
17637
17637
|
const caseName = this.linkedCasesService.getCaseName(response);
|
|
17638
|
-
this.linkedCases.find(
|
|
17638
|
+
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17639
17639
|
}
|
|
17640
17640
|
});
|
|
17641
17641
|
this.initForm();
|
|
17642
17642
|
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
17643
17643
|
this.isServerError = false;
|
|
17644
|
-
},
|
|
17644
|
+
}, err => {
|
|
17645
17645
|
this.isServerError = true;
|
|
17646
17646
|
this.notifyAPIFailure.emit(true);
|
|
17647
17647
|
});
|
|
@@ -17656,7 +17656,7 @@ class UnLinkCasesComponent {
|
|
|
17656
17656
|
});
|
|
17657
17657
|
}
|
|
17658
17658
|
get getLinkedCasesFormArray() {
|
|
17659
|
-
const formFieldArray = this.linkedCases.map(
|
|
17659
|
+
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
17660
17660
|
caseReference: val.caseReference,
|
|
17661
17661
|
reasons: val.reasons,
|
|
17662
17662
|
createdDateTime: val.createdDateTime,
|
|
@@ -17670,7 +17670,7 @@ class UnLinkCasesComponent {
|
|
|
17670
17670
|
}
|
|
17671
17671
|
onChange(caseSelected) {
|
|
17672
17672
|
this.resetErrorMessages();
|
|
17673
|
-
const selectedCase = this.linkedCases.find(
|
|
17673
|
+
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
17674
17674
|
if (selectedCase) {
|
|
17675
17675
|
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
17676
17676
|
}
|
|
@@ -17678,7 +17678,7 @@ class UnLinkCasesComponent {
|
|
|
17678
17678
|
onNext() {
|
|
17679
17679
|
this.resetErrorMessages();
|
|
17680
17680
|
let navigateToNextPage = true;
|
|
17681
|
-
const casesMarkedToUnlink = this.linkedCases.find(
|
|
17681
|
+
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
17682
17682
|
if (!casesMarkedToUnlink) {
|
|
17683
17683
|
this.errorMessages.push({
|
|
17684
17684
|
title: 'case-selection',
|
|
@@ -17696,7 +17696,7 @@ class UnLinkCasesComponent {
|
|
|
17696
17696
|
this.linkedCasesStateEmitter.emit({
|
|
17697
17697
|
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
17698
17698
|
errorMessages: this.errorMessages,
|
|
17699
|
-
navigateToNextPage: isNavigateToNextPage
|
|
17699
|
+
navigateToNextPage: isNavigateToNextPage,
|
|
17700
17700
|
});
|
|
17701
17701
|
}
|
|
17702
17702
|
resetErrorMessages() {
|
|
@@ -18039,16 +18039,14 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18039
18039
|
// Get linked case reasons from ref data
|
|
18040
18040
|
this.linkedCasesService.editMode = false;
|
|
18041
18041
|
this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
|
|
18042
|
-
next:
|
|
18043
|
-
this.initialiseCaseDetails(caseDetails);
|
|
18044
|
-
}
|
|
18042
|
+
next: caseDetails => { this.initialiseCaseDetails(caseDetails); }
|
|
18045
18043
|
}));
|
|
18046
18044
|
this.getOrgService();
|
|
18047
18045
|
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
18048
|
-
next:
|
|
18046
|
+
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18049
18047
|
}));
|
|
18050
18048
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18051
|
-
next:
|
|
18049
|
+
next: editForm => this.caseEditForm = editForm
|
|
18052
18050
|
}));
|
|
18053
18051
|
}
|
|
18054
18052
|
initialiseCaseDetails(caseDetails) {
|
|
@@ -18124,28 +18122,13 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18124
18122
|
}
|
|
18125
18123
|
}
|
|
18126
18124
|
submitLinkedCases() {
|
|
18127
|
-
let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
|
|
18128
18125
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18129
|
-
const
|
|
18130
|
-
|
|
18131
|
-
|
|
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 || []));
|
|
18126
|
+
const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
|
|
18127
|
+
const caseFieldValue = this.linkedCasesService.caseFieldValue;
|
|
18128
|
+
this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
|
|
18147
18129
|
}
|
|
18148
|
-
|
|
18130
|
+
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
18131
|
+
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
18149
18132
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
18150
18133
|
}
|
|
18151
18134
|
isAtFinalPage() {
|
|
@@ -18162,11 +18145,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18162
18145
|
}
|
|
18163
18146
|
getLinkedCases() {
|
|
18164
18147
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
18165
|
-
const caseViewFiltered = caseView.tabs.filter(
|
|
18148
|
+
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
18166
18149
|
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
18167
18150
|
});
|
|
18168
18151
|
if (caseViewFiltered) {
|
|
18169
|
-
const caseLinkFieldValue = caseViewFiltered.map(
|
|
18152
|
+
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18170
18153
|
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18171
18154
|
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18172
18155
|
}
|
|
@@ -18206,7 +18189,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18206
18189
|
type: Component,
|
|
18207
18190
|
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" }]
|
|
18208
18191
|
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18209
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
18192
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18210
18193
|
|
|
18211
18194
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18212
18195
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19593,10 +19576,8 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
19593
19576
|
i0.ɵɵtext(5);
|
|
19594
19577
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
19595
19578
|
i0.ɵɵelementEnd();
|
|
19596
|
-
i0.ɵɵ
|
|
19597
|
-
i0.ɵɵ
|
|
19598
|
-
i0.ɵɵpipe(9, "rpxTranslate");
|
|
19599
|
-
i0.ɵɵelementEnd();
|
|
19579
|
+
i0.ɵɵelement(7, "ccd-markdown", 3);
|
|
19580
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
19600
19581
|
i0.ɵɵelementContainerEnd();
|
|
19601
19582
|
} if (rf & 2) {
|
|
19602
19583
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -19604,25 +19585,25 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
19604
19585
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Are you contacting us about any of the following:"), " ");
|
|
19605
19586
|
i0.ɵɵadvance(3);
|
|
19606
19587
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx_r0.qualifyingQuestion.name), " ");
|
|
19607
|
-
i0.ɵɵadvance(
|
|
19608
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
19588
|
+
i0.ɵɵadvance(2);
|
|
19589
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(8, 7, ctx_r0.qualifyingQuestion.markdown));
|
|
19609
19590
|
} }
|
|
19610
19591
|
class QualifyingQuestionDetailComponent {
|
|
19611
19592
|
qualifyingQuestion;
|
|
19612
19593
|
static ɵfac = function QualifyingQuestionDetailComponent_Factory(t) { return new (t || QualifyingQuestionDetailComponent)(); };
|
|
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"], [
|
|
19614
|
-
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template,
|
|
19594
|
+
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) {
|
|
19595
|
+
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 9, 9, "ng-container", 0);
|
|
19615
19596
|
} if (rf & 2) {
|
|
19616
19597
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestion == null ? null : ctx.qualifyingQuestion.markdown);
|
|
19617
|
-
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe],
|
|
19598
|
+
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19618
19599
|
}
|
|
19619
19600
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionDetailComponent, [{
|
|
19620
19601
|
type: Component,
|
|
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 <
|
|
19602
|
+
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" }]
|
|
19622
19603
|
}], null, { qualifyingQuestion: [{
|
|
19623
19604
|
type: Input
|
|
19624
19605
|
}] }); })();
|
|
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:
|
|
19606
|
+
(() => { (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: 8 }); })();
|
|
19626
19607
|
|
|
19627
19608
|
var RaiseQueryErrorMessage;
|
|
19628
19609
|
(function (RaiseQueryErrorMessage) {
|
|
@@ -27670,7 +27651,7 @@ class EventLogTableComponent {
|
|
|
27670
27651
|
|
|
27671
27652
|
function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
27672
27653
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
27673
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27654
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 7);
|
|
27674
27655
|
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)); });
|
|
27675
27656
|
i0.ɵɵelementEnd();
|
|
27676
27657
|
} if (rf & 2) {
|
|
@@ -27679,7 +27660,7 @@ function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1)
|
|
|
27679
27660
|
} }
|
|
27680
27661
|
function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
27681
27662
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27682
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27663
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
|
|
27683
27664
|
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)); });
|
|
27684
27665
|
i0.ɵɵelementEnd();
|
|
27685
27666
|
} if (rf & 2) {
|
|
@@ -27687,7 +27668,7 @@ function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1)
|
|
|
27687
27668
|
i0.ɵɵproperty("events", ctx_r1.events)("selected", ctx_r1.selected);
|
|
27688
27669
|
} }
|
|
27689
27670
|
function EventLogComponent_ccd_event_log_details_7_Template(rf, ctx) { if (rf & 1) {
|
|
27690
|
-
i0.ɵɵelement(0, "ccd-event-log-details",
|
|
27671
|
+
i0.ɵɵelement(0, "ccd-event-log-details", 9);
|
|
27691
27672
|
} if (rf & 2) {
|
|
27692
27673
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27693
27674
|
i0.ɵɵproperty("event", ctx_r1.selected);
|
|
@@ -27708,14 +27689,14 @@ class EventLogComponent {
|
|
|
27708
27689
|
this.onCaseHistory.emit(eventId);
|
|
27709
27690
|
}
|
|
27710
27691
|
static ɵfac = function EventLogComponent_Factory(t) { return new (t || EventLogComponent)(); };
|
|
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"
|
|
27692
|
+
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) {
|
|
27712
27693
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
27713
27694
|
i0.ɵɵelementContainerStart(2, 2);
|
|
27714
27695
|
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);
|
|
27715
27696
|
i0.ɵɵelementContainerEnd();
|
|
27716
27697
|
i0.ɵɵelementEnd();
|
|
27717
|
-
i0.ɵɵelementStart(5, "div",
|
|
27718
|
-
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details",
|
|
27698
|
+
i0.ɵɵelementStart(5, "div", 1)(6, "div", 5);
|
|
27699
|
+
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 6);
|
|
27719
27700
|
i0.ɵɵelementEnd()()();
|
|
27720
27701
|
} if (rf & 2) {
|
|
27721
27702
|
i0.ɵɵadvance(2);
|
|
@@ -27726,11 +27707,11 @@ class EventLogComponent {
|
|
|
27726
27707
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
27727
27708
|
i0.ɵɵadvance(3);
|
|
27728
27709
|
i0.ɵɵproperty("ngIf", ctx.selected);
|
|
27729
|
-
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.
|
|
27710
|
+
} }, 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}"] });
|
|
27730
27711
|
}
|
|
27731
27712
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogComponent, [{
|
|
27732
27713
|
type: Component,
|
|
27733
|
-
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half
|
|
27714
|
+
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 *ngSwitchCase=\"true\" [events]=\"events\" [selected]=\"selected\" (onSelect)=\"select($event)\" (onCaseHistory)=\"caseHistoryClicked($event)\"></ccd-event-log-table>\n <ccd-event-log-table *ngSwitchCase=\"false\" [events]=\"events\" [selected]=\"selected\" (onSelect)=\"select($event)\"></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 *ngIf=\"selected\" [event]=\"selected\"></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
|
|
27734
27715
|
}], null, { events: [{
|
|
27735
27716
|
type: Input
|
|
27736
27717
|
}], onCaseHistory: [{
|