@hmcts/ccd-case-ui-toolkit 7.1.22-case-links-fix → 7.1.23-event-spinner
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/services/cases.service.mjs +1 -1
- package/esm2022/lib/shared/components/case-editor/services/page-validation.service.mjs +7 -10
- package/esm2022/lib/shared/components/case-header/case-header.component.mjs +10 -4
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +10 -5
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +10 -6
- package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +10 -5
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +1 -15
- 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-options/qualifying-question-options.component.mjs +14 -36
- package/esm2022/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.mjs +11 -23
- package/esm2022/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.mjs +2 -1
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +7 -2
- package/esm2022/lib/shared/services/jurisdiction/jurisdiction.service.mjs +1 -2
- package/esm2022/lib/shared/services/loading/loading.service.mjs +7 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +105 -142
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
- package/lib/shared/components/case-header/case-header.component.d.ts +2 -1
- package/lib/shared/components/case-header/case-header.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +3 -2
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +3 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts +3 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.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/query-case-details-header/query-case-details-header.component.d.ts +1 -5
- package/lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts +2 -1
- package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/lib/shared/services/loading/loading.service.d.ts +2 -0
- package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7121,7 +7121,6 @@ class JurisdictionService {
|
|
|
7121
7121
|
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7122
7122
|
}
|
|
7123
7123
|
announceSelectedJurisdiction(jurisdiction) {
|
|
7124
|
-
console.info('Announcing selected jurisdiction = ' + jurisdiction?.id);
|
|
7125
7124
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7126
7125
|
this.selectedJurisdictionBS.next(jurisdiction);
|
|
7127
7126
|
}
|
|
@@ -7323,6 +7322,7 @@ class RequestOptionsBuilder {
|
|
|
7323
7322
|
class LoadingService {
|
|
7324
7323
|
registered = new Map();
|
|
7325
7324
|
loading = new BehaviorSubject(false);
|
|
7325
|
+
storedSpinner;
|
|
7326
7326
|
get isLoading() {
|
|
7327
7327
|
return this.loading.pipe(distinctUntilChanged());
|
|
7328
7328
|
}
|
|
@@ -7336,6 +7336,11 @@ class LoadingService {
|
|
|
7336
7336
|
this.registered.delete(token);
|
|
7337
7337
|
this.loading.next(this.registered.size > 0);
|
|
7338
7338
|
}
|
|
7339
|
+
unregisterStoredSpinner() {
|
|
7340
|
+
this.registered.delete(this.storedSpinner);
|
|
7341
|
+
this.storedSpinner = null;
|
|
7342
|
+
this.loading.next(this.registered.size > 0);
|
|
7343
|
+
}
|
|
7339
7344
|
generateToken() {
|
|
7340
7345
|
const timestamp = window.performance.now();
|
|
7341
7346
|
return `toolkit-loading-${timestamp}`; // format: [source-library]-[unique incrementing number]
|
|
@@ -9000,16 +9005,15 @@ class PageValidationService {
|
|
|
9000
9005
|
getInvalidFields(page, editForm) {
|
|
9001
9006
|
const failingCaseFields = [];
|
|
9002
9007
|
page.case_fields
|
|
9003
|
-
.filter(caseField => !this.caseFieldService.isReadOnly(caseField))
|
|
9004
|
-
.filter(caseField => !this.isHidden(caseField, editForm))
|
|
9005
|
-
.forEach(caseField => {
|
|
9008
|
+
.filter((caseField) => !this.caseFieldService.isReadOnly(caseField))
|
|
9009
|
+
.filter((caseField) => !this.isHidden(caseField, editForm))
|
|
9010
|
+
.forEach((caseField) => {
|
|
9006
9011
|
const theControl = FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])
|
|
9007
|
-
? editForm.controls
|
|
9008
|
-
: editForm.controls
|
|
9012
|
+
? editForm.controls.data.get(`${caseField.id}_judicialUserControl`)
|
|
9013
|
+
: editForm.controls.data.get(caseField.id);
|
|
9009
9014
|
if (!(this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl))) {
|
|
9010
9015
|
failingCaseFields.push(caseField);
|
|
9011
9016
|
}
|
|
9012
|
-
;
|
|
9013
9017
|
});
|
|
9014
9018
|
return failingCaseFields;
|
|
9015
9019
|
}
|
|
@@ -9031,9 +9035,7 @@ class PageValidationService {
|
|
|
9031
9035
|
if (!theControl) {
|
|
9032
9036
|
return this.caseFieldService.isOptional(caseField);
|
|
9033
9037
|
}
|
|
9034
|
-
|
|
9035
|
-
return theControl.valid || theControl.disabled;
|
|
9036
|
-
}
|
|
9038
|
+
return theControl.valid || theControl.disabled;
|
|
9037
9039
|
}
|
|
9038
9040
|
checkMandatoryField(caseField, theControl) {
|
|
9039
9041
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
@@ -16655,8 +16657,8 @@ class LinkCasesComponent {
|
|
|
16655
16657
|
})), this.validatorsUtils.formArraySelectedValidator());
|
|
16656
16658
|
}
|
|
16657
16659
|
toggleLinkCaseReasonOtherComments(event) {
|
|
16658
|
-
this.linkCaseReasons.find(
|
|
16659
|
-
this.showComments = this.linkCaseReasons.find(
|
|
16660
|
+
this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16661
|
+
this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected;
|
|
16660
16662
|
}
|
|
16661
16663
|
submitCaseInfo() {
|
|
16662
16664
|
this.errorMessages = [];
|
|
@@ -16695,7 +16697,7 @@ class LinkCasesComponent {
|
|
|
16695
16697
|
this.errorMessages.push({
|
|
16696
16698
|
title: 'dummy-case-number',
|
|
16697
16699
|
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
16698
|
-
fieldId: 'caseNumber'
|
|
16700
|
+
fieldId: 'caseNumber',
|
|
16699
16701
|
});
|
|
16700
16702
|
}
|
|
16701
16703
|
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
@@ -16703,17 +16705,17 @@ class LinkCasesComponent {
|
|
|
16703
16705
|
this.errorMessages.push({
|
|
16704
16706
|
title: 'dummy-case-reason',
|
|
16705
16707
|
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
16706
|
-
fieldId: 'caseReason'
|
|
16708
|
+
fieldId: 'caseReason',
|
|
16707
16709
|
});
|
|
16708
16710
|
}
|
|
16709
16711
|
if (this.linkCaseForm.controls.reasonType.valid
|
|
16710
|
-
&& this.linkCaseReasons.find(
|
|
16712
|
+
&& this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
|
|
16711
16713
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
|
|
16712
16714
|
this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
|
|
16713
16715
|
this.errorMessages.push({
|
|
16714
16716
|
title: 'dummy-case-reason-comments',
|
|
16715
16717
|
description: LinkedCasesErrorMessages.otherDescriptionError,
|
|
16716
|
-
fieldId: 'otherDescription'
|
|
16718
|
+
fieldId: 'otherDescription',
|
|
16717
16719
|
});
|
|
16718
16720
|
}
|
|
16719
16721
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
|
|
@@ -16721,7 +16723,7 @@ class LinkCasesComponent {
|
|
|
16721
16723
|
this.errorMessages.push({
|
|
16722
16724
|
title: 'dummy-case-reason-comments',
|
|
16723
16725
|
description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
|
|
16724
|
-
fieldId: 'otherDescription'
|
|
16726
|
+
fieldId: 'otherDescription',
|
|
16725
16727
|
});
|
|
16726
16728
|
}
|
|
16727
16729
|
}
|
|
@@ -16730,7 +16732,7 @@ class LinkCasesComponent {
|
|
|
16730
16732
|
this.errorMessages.push({
|
|
16731
16733
|
title: 'dummy-case-number',
|
|
16732
16734
|
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
16733
|
-
fieldId: 'caseNumber'
|
|
16735
|
+
fieldId: 'caseNumber',
|
|
16734
16736
|
});
|
|
16735
16737
|
}
|
|
16736
16738
|
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
@@ -16738,14 +16740,14 @@ class LinkCasesComponent {
|
|
|
16738
16740
|
this.errorMessages.push({
|
|
16739
16741
|
title: 'dummy-case-number',
|
|
16740
16742
|
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
16741
|
-
fieldId: 'caseNumber'
|
|
16743
|
+
fieldId: 'caseNumber',
|
|
16742
16744
|
});
|
|
16743
16745
|
}
|
|
16744
16746
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
16745
16747
|
this.errorMessages.push({
|
|
16746
16748
|
title: 'dummy-case-number',
|
|
16747
16749
|
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
16748
|
-
fieldId: 'caseNumber'
|
|
16750
|
+
fieldId: 'caseNumber',
|
|
16749
16751
|
});
|
|
16750
16752
|
}
|
|
16751
16753
|
window.scrollTo(0, 0);
|
|
@@ -16766,7 +16768,7 @@ class LinkCasesComponent {
|
|
|
16766
16768
|
caseState: caseView.state.name || '',
|
|
16767
16769
|
caseStateDescription: caseView.state.description || '',
|
|
16768
16770
|
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
16769
|
-
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16771
|
+
caseName: this.linkedCasesService.getCaseName(caseView),
|
|
16770
16772
|
};
|
|
16771
16773
|
const ccdApiCaseLinkData = {
|
|
16772
16774
|
CaseReference: caseView.case_id,
|
|
@@ -16779,7 +16781,7 @@ class LinkCasesComponent {
|
|
|
16779
16781
|
}
|
|
16780
16782
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16781
16783
|
this.selectedCases.push(caseLink);
|
|
16782
|
-
this.linkCaseReasons.forEach(
|
|
16784
|
+
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
16783
16785
|
this.initForm();
|
|
16784
16786
|
this.emitLinkedCasesState(false);
|
|
16785
16787
|
}, (error) => {
|
|
@@ -16787,7 +16789,7 @@ class LinkCasesComponent {
|
|
|
16787
16789
|
this.errorMessages.push({
|
|
16788
16790
|
title: 'dummy-case-number',
|
|
16789
16791
|
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
16790
|
-
fieldId: 'caseNumber'
|
|
16792
|
+
fieldId: 'caseNumber',
|
|
16791
16793
|
});
|
|
16792
16794
|
this.emitLinkedCasesState(false);
|
|
16793
16795
|
window.scrollTo(0, 0);
|
|
@@ -16799,7 +16801,7 @@ class LinkCasesComponent {
|
|
|
16799
16801
|
this.linkedCasesStateEmitter.emit({
|
|
16800
16802
|
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
16801
16803
|
errorMessages: this.errorMessages,
|
|
16802
|
-
navigateToNextPage: isNavigateToNextPage
|
|
16804
|
+
navigateToNextPage: isNavigateToNextPage,
|
|
16803
16805
|
});
|
|
16804
16806
|
}
|
|
16805
16807
|
getSelectedCaseReasons() {
|
|
@@ -16834,7 +16836,7 @@ class LinkCasesComponent {
|
|
|
16834
16836
|
}
|
|
16835
16837
|
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
16836
16838
|
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
16837
|
-
const updatedItems = caseFieldValue.filter(
|
|
16839
|
+
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16838
16840
|
if (updatedItems) {
|
|
16839
16841
|
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
16840
16842
|
}
|
|
@@ -16855,7 +16857,7 @@ class LinkCasesComponent {
|
|
|
16855
16857
|
this.errorMessages.push({
|
|
16856
16858
|
title: 'dummy-case-selection',
|
|
16857
16859
|
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
16858
|
-
fieldId: 'caseReason'
|
|
16860
|
+
fieldId: 'caseReason',
|
|
16859
16861
|
});
|
|
16860
16862
|
navigateToNextPage = false;
|
|
16861
16863
|
}
|
|
@@ -17590,7 +17592,7 @@ class UnLinkCasesComponent {
|
|
|
17590
17592
|
}
|
|
17591
17593
|
else {
|
|
17592
17594
|
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
17593
|
-
const linkedCasesTab = caseView.tabs.find(
|
|
17595
|
+
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17594
17596
|
if (linkedCasesTab) {
|
|
17595
17597
|
const linkedCases = linkedCasesTab.fields[0].value;
|
|
17596
17598
|
this.linkedCases = linkedCases;
|
|
@@ -17602,22 +17604,22 @@ class UnLinkCasesComponent {
|
|
|
17602
17604
|
}
|
|
17603
17605
|
getAllLinkedCaseInformation() {
|
|
17604
17606
|
const searchCasesResponse = [];
|
|
17605
|
-
this.linkedCases.forEach(
|
|
17607
|
+
this.linkedCases.forEach(linkedCase => {
|
|
17606
17608
|
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
17607
17609
|
});
|
|
17608
17610
|
if (searchCasesResponse.length) {
|
|
17609
17611
|
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
17610
17612
|
searchCases.forEach((response) => {
|
|
17611
|
-
const linkedCaseFromList = this.linkedCases.find(
|
|
17613
|
+
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
17612
17614
|
if (linkedCaseFromList) {
|
|
17613
17615
|
const caseName = this.linkedCasesService.getCaseName(response);
|
|
17614
|
-
this.linkedCases.find(
|
|
17616
|
+
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17615
17617
|
}
|
|
17616
17618
|
});
|
|
17617
17619
|
this.initForm();
|
|
17618
17620
|
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
17619
17621
|
this.isServerError = false;
|
|
17620
|
-
},
|
|
17622
|
+
}, err => {
|
|
17621
17623
|
this.isServerError = true;
|
|
17622
17624
|
this.notifyAPIFailure.emit(true);
|
|
17623
17625
|
});
|
|
@@ -17632,7 +17634,7 @@ class UnLinkCasesComponent {
|
|
|
17632
17634
|
});
|
|
17633
17635
|
}
|
|
17634
17636
|
get getLinkedCasesFormArray() {
|
|
17635
|
-
const formFieldArray = this.linkedCases.map(
|
|
17637
|
+
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
17636
17638
|
caseReference: val.caseReference,
|
|
17637
17639
|
reasons: val.reasons,
|
|
17638
17640
|
createdDateTime: val.createdDateTime,
|
|
@@ -17646,7 +17648,7 @@ class UnLinkCasesComponent {
|
|
|
17646
17648
|
}
|
|
17647
17649
|
onChange(caseSelected) {
|
|
17648
17650
|
this.resetErrorMessages();
|
|
17649
|
-
const selectedCase = this.linkedCases.find(
|
|
17651
|
+
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
17650
17652
|
if (selectedCase) {
|
|
17651
17653
|
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
17652
17654
|
}
|
|
@@ -17654,7 +17656,7 @@ class UnLinkCasesComponent {
|
|
|
17654
17656
|
onNext() {
|
|
17655
17657
|
this.resetErrorMessages();
|
|
17656
17658
|
let navigateToNextPage = true;
|
|
17657
|
-
const casesMarkedToUnlink = this.linkedCases.find(
|
|
17659
|
+
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
17658
17660
|
if (!casesMarkedToUnlink) {
|
|
17659
17661
|
this.errorMessages.push({
|
|
17660
17662
|
title: 'case-selection',
|
|
@@ -17672,7 +17674,7 @@ class UnLinkCasesComponent {
|
|
|
17672
17674
|
this.linkedCasesStateEmitter.emit({
|
|
17673
17675
|
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
17674
17676
|
errorMessages: this.errorMessages,
|
|
17675
|
-
navigateToNextPage: isNavigateToNextPage
|
|
17677
|
+
navigateToNextPage: isNavigateToNextPage,
|
|
17676
17678
|
});
|
|
17677
17679
|
}
|
|
17678
17680
|
resetErrorMessages() {
|
|
@@ -18015,16 +18017,14 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18015
18017
|
// Get linked case reasons from ref data
|
|
18016
18018
|
this.linkedCasesService.editMode = false;
|
|
18017
18019
|
this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
|
|
18018
|
-
next:
|
|
18019
|
-
this.initialiseCaseDetails(caseDetails);
|
|
18020
|
-
}
|
|
18020
|
+
next: caseDetails => { this.initialiseCaseDetails(caseDetails); }
|
|
18021
18021
|
}));
|
|
18022
18022
|
this.getOrgService();
|
|
18023
18023
|
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
18024
|
-
next:
|
|
18024
|
+
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18025
18025
|
}));
|
|
18026
18026
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18027
|
-
next:
|
|
18027
|
+
next: editForm => this.caseEditForm = editForm
|
|
18028
18028
|
}));
|
|
18029
18029
|
}
|
|
18030
18030
|
initialiseCaseDetails(caseDetails) {
|
|
@@ -18100,28 +18100,13 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18100
18100
|
}
|
|
18101
18101
|
}
|
|
18102
18102
|
submitLinkedCases() {
|
|
18103
|
-
let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
|
|
18104
18103
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18105
|
-
const
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
|
|
18109
|
-
}
|
|
18110
|
-
// Replace the caseLinks value in this.formGroup
|
|
18111
|
-
this.formGroup.patchValue({
|
|
18112
|
-
caseLinks: caseFieldValue
|
|
18113
|
-
});
|
|
18114
|
-
// Replace the caseLinks control in caseEditForm.controls.data
|
|
18115
|
-
const dataFormGroup = this.caseEditForm.controls.data;
|
|
18116
|
-
if (dataFormGroup) {
|
|
18117
|
-
// Remove the existing caseLinks control (if it exists)
|
|
18118
|
-
if (dataFormGroup.contains('caseLinks')) {
|
|
18119
|
-
dataFormGroup.removeControl('caseLinks');
|
|
18120
|
-
}
|
|
18121
|
-
// Add the new control with the replacement value
|
|
18122
|
-
dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
|
|
18104
|
+
const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
|
|
18105
|
+
const caseFieldValue = this.linkedCasesService.caseFieldValue;
|
|
18106
|
+
this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
|
|
18123
18107
|
}
|
|
18124
|
-
|
|
18108
|
+
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
18109
|
+
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
18125
18110
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
18126
18111
|
}
|
|
18127
18112
|
isAtFinalPage() {
|
|
@@ -18138,11 +18123,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18138
18123
|
}
|
|
18139
18124
|
getLinkedCases() {
|
|
18140
18125
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
18141
|
-
const caseViewFiltered = caseView.tabs.filter(
|
|
18126
|
+
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
18142
18127
|
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
18143
18128
|
});
|
|
18144
18129
|
if (caseViewFiltered) {
|
|
18145
|
-
const caseLinkFieldValue = caseViewFiltered.map(
|
|
18130
|
+
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18146
18131
|
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18147
18132
|
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18148
18133
|
}
|
|
@@ -18182,7 +18167,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18182
18167
|
type: Component,
|
|
18183
18168
|
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" }]
|
|
18184
18169
|
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18185
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
18170
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18186
18171
|
|
|
18187
18172
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18188
18173
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19612,6 +19597,7 @@ var QueryItemResponseStatus;
|
|
|
19612
19597
|
(function (QueryItemResponseStatus) {
|
|
19613
19598
|
QueryItemResponseStatus["NEW"] = "New";
|
|
19614
19599
|
QueryItemResponseStatus["RESPONDED"] = "Responded";
|
|
19600
|
+
QueryItemResponseStatus["AWAITING"] = "Awaiting Response";
|
|
19615
19601
|
})(QueryItemResponseStatus || (QueryItemResponseStatus = {}));
|
|
19616
19602
|
|
|
19617
19603
|
var RespondToQueryErrorMessages;
|
|
@@ -19665,7 +19651,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Templ
|
|
|
19665
19651
|
} }
|
|
19666
19652
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
19667
19653
|
i0.ɵɵelementContainerStart(0);
|
|
19668
|
-
i0.ɵɵelementStart(1, "div",
|
|
19654
|
+
i0.ɵɵelementStart(1, "div", 13);
|
|
19669
19655
|
i0.ɵɵtext(2);
|
|
19670
19656
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
19671
19657
|
i0.ɵɵelementEnd();
|
|
@@ -19674,24 +19660,6 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
19674
19660
|
i0.ɵɵadvance(2);
|
|
19675
19661
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "or"));
|
|
19676
19662
|
} }
|
|
19677
|
-
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
19678
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
19679
|
-
i0.ɵɵelementStart(0, "div", 15);
|
|
19680
|
-
i0.ɵɵtext(1);
|
|
19681
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
19682
|
-
i0.ɵɵelementStart(3, "a", 16);
|
|
19683
|
-
i0.ɵɵlistener("click", function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.click()); });
|
|
19684
|
-
i0.ɵɵtext(4);
|
|
19685
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
19686
|
-
i0.ɵɵelementEnd();
|
|
19687
|
-
i0.ɵɵtext(6, ".) ");
|
|
19688
|
-
i0.ɵɵelementEnd();
|
|
19689
|
-
} if (rf & 2) {
|
|
19690
|
-
i0.ɵɵadvance();
|
|
19691
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "(To follow-up on an existing query"), " ");
|
|
19692
|
-
i0.ɵɵadvance(3);
|
|
19693
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "click here"));
|
|
19694
|
-
} }
|
|
19695
19663
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
19696
19664
|
i0.ɵɵelementContainerStart(0);
|
|
19697
19665
|
i0.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
|
|
@@ -19700,25 +19668,21 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Templ
|
|
|
19700
19668
|
i0.ɵɵelementStart(4, "label", 12);
|
|
19701
19669
|
i0.ɵɵtext(5);
|
|
19702
19670
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
19703
|
-
i0.ɵɵelementEnd();
|
|
19704
|
-
i0.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template, 7, 6, "div", 13);
|
|
19705
|
-
i0.ɵɵelementEnd();
|
|
19671
|
+
i0.ɵɵelementEnd()();
|
|
19706
19672
|
i0.ɵɵelementContainerEnd();
|
|
19707
19673
|
} if (rf & 2) {
|
|
19708
|
-
const
|
|
19709
|
-
const
|
|
19674
|
+
const qualifyingQuestion_r2 = ctx.$implicit;
|
|
19675
|
+
const isLast_r3 = ctx.last;
|
|
19710
19676
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
19711
19677
|
i0.ɵɵadvance();
|
|
19712
|
-
i0.ɵɵproperty("ngIf",
|
|
19678
|
+
i0.ɵɵproperty("ngIf", isLast_r3);
|
|
19713
19679
|
i0.ɵɵadvance(2);
|
|
19714
|
-
i0.ɵɵpropertyInterpolate("id",
|
|
19715
|
-
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value",
|
|
19680
|
+
i0.ɵɵpropertyInterpolate("id", qualifyingQuestion_r2.name);
|
|
19681
|
+
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value", qualifyingQuestion_r2);
|
|
19716
19682
|
i0.ɵɵadvance();
|
|
19717
|
-
i0.ɵɵproperty("for",
|
|
19683
|
+
i0.ɵɵproperty("for", qualifyingQuestion_r2.name);
|
|
19718
19684
|
i0.ɵɵadvance();
|
|
19719
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6,
|
|
19720
|
-
i0.ɵɵadvance(2);
|
|
19721
|
-
i0.ɵɵproperty("ngIf", isLast_r4);
|
|
19685
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, qualifyingQuestion_r2.name));
|
|
19722
19686
|
} }
|
|
19723
19687
|
function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
19724
19688
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19732,7 +19696,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
19732
19696
|
i0.ɵɵelementEnd();
|
|
19733
19697
|
i0.ɵɵtemplate(10, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template, 7, 6, "ng-container", 0);
|
|
19734
19698
|
i0.ɵɵelementStart(11, "div", 6);
|
|
19735
|
-
i0.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template,
|
|
19699
|
+
i0.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template, 7, 8, "ng-container", 7);
|
|
19736
19700
|
i0.ɵɵpipe(13, "async");
|
|
19737
19701
|
i0.ɵɵelementEnd()()();
|
|
19738
19702
|
i0.ɵɵelementContainerEnd();
|
|
@@ -19771,13 +19735,13 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19771
19735
|
}
|
|
19772
19736
|
}
|
|
19773
19737
|
click() {
|
|
19774
|
-
this.router.navigate(['cases', 'case-details', this.caseId], { fragment: '
|
|
19738
|
+
this.router.navigate(['cases', 'case-details', this.caseId], { fragment: 'Queries' });
|
|
19775
19739
|
}
|
|
19776
19740
|
get displayError() {
|
|
19777
19741
|
return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
|
|
19778
19742
|
}
|
|
19779
19743
|
static ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
19780
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [
|
|
19744
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-radios__divider"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19781
19745
|
i0.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
|
|
19782
19746
|
} if (rf & 2) {
|
|
19783
19747
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
|
|
@@ -19785,7 +19749,7 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19785
19749
|
}
|
|
19786
19750
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
19787
19751
|
type: Component,
|
|
19788
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n
|
|
19752
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
19789
19753
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
19790
19754
|
type: Input
|
|
19791
19755
|
}], qualifyingQuestions$: [{
|
|
@@ -19878,27 +19842,18 @@ class QueryCaseDetailsHeaderComponent {
|
|
|
19878
19842
|
caseDetails;
|
|
19879
19843
|
caseTitle;
|
|
19880
19844
|
caseFields;
|
|
19881
|
-
caseView;
|
|
19882
|
-
constructor(activatedRoute) {
|
|
19883
|
-
this.caseView = activatedRoute.snapshot.data.case;
|
|
19884
|
-
}
|
|
19885
19845
|
ngOnInit() {
|
|
19886
19846
|
this.caseTitle = new CaseField();
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
this.caseFields = this.getCaseFields();
|
|
19890
|
-
}
|
|
19891
|
-
}
|
|
19892
|
-
isDraft() {
|
|
19893
|
-
return Draft.isDraft(this.caseDetails.case_id);
|
|
19847
|
+
this.caseTitle.label = this.caseDetails.state.title_display;
|
|
19848
|
+
this.caseFields = this.getCaseFieldsInfo();
|
|
19894
19849
|
}
|
|
19895
|
-
|
|
19850
|
+
getCaseFieldsInfo() {
|
|
19896
19851
|
const caseDataFields = this.caseDetails.tabs.reduce((acc, tab) => {
|
|
19897
19852
|
return acc.concat(tab.fields);
|
|
19898
19853
|
}, []);
|
|
19899
19854
|
return caseDataFields.concat(this.caseDetails.metadataFields);
|
|
19900
19855
|
}
|
|
19901
|
-
static ɵfac = function QueryCaseDetailsHeaderComponent_Factory(t) { return new (t || QueryCaseDetailsHeaderComponent)(
|
|
19856
|
+
static ɵfac = function QueryCaseDetailsHeaderComponent_Factory(t) { return new (t || QueryCaseDetailsHeaderComponent)(); };
|
|
19902
19857
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCaseDetailsHeaderComponent, selectors: [["ccd-query-case-details-header"]], inputs: { caseDetails: "caseDetails" }, decls: 2, vars: 2, consts: [["class", "heading-h1", 4, "ngIf"], ["class", "case-title", 4, "ngIf"], [1, "heading-h1"], [1, "case-title"], [3, "caseField", "caseFields"]], template: function QueryCaseDetailsHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19903
19858
|
i0.ɵɵtemplate(0, QueryCaseDetailsHeaderComponent_h1_0_Template, 3, 3, "h1", 0)(1, QueryCaseDetailsHeaderComponent_div_1_Template, 2, 2, "div", 1);
|
|
19904
19859
|
} if (rf & 2) {
|
|
@@ -19910,10 +19865,10 @@ class QueryCaseDetailsHeaderComponent {
|
|
|
19910
19865
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCaseDetailsHeaderComponent, [{
|
|
19911
19866
|
type: Component,
|
|
19912
19867
|
args: [{ selector: 'ccd-query-case-details-header', template: "<h1 *ngIf=\"!caseTitle.label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n<div *ngIf=\"caseTitle.label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n" }]
|
|
19913
|
-
}],
|
|
19868
|
+
}], null, { caseDetails: [{
|
|
19914
19869
|
type: Input
|
|
19915
19870
|
}] }); })();
|
|
19916
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCaseDetailsHeaderComponent, { className: "QueryCaseDetailsHeaderComponent", filePath: "lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.ts", lineNumber:
|
|
19871
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCaseDetailsHeaderComponent, { className: "QueryCaseDetailsHeaderComponent", filePath: "lib/shared/components/palette/query-management/components/query-case-details-header/query-case-details-header.component.ts", lineNumber: 10 }); })();
|
|
19917
19872
|
|
|
19918
19873
|
var QueryCreateContext;
|
|
19919
19874
|
(function (QueryCreateContext) {
|
|
@@ -19964,7 +19919,12 @@ class QueryListItem {
|
|
|
19964
19919
|
return this.children?.length > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
|
|
19965
19920
|
}
|
|
19966
19921
|
get responseStatus() {
|
|
19967
|
-
|
|
19922
|
+
if (this.children?.length > 0) {
|
|
19923
|
+
return this.children.length % 2 === 1
|
|
19924
|
+
? QueryItemResponseStatus.RESPONDED
|
|
19925
|
+
: QueryItemResponseStatus.AWAITING;
|
|
19926
|
+
}
|
|
19927
|
+
return QueryItemResponseStatus.AWAITING;
|
|
19968
19928
|
}
|
|
19969
19929
|
}
|
|
19970
19930
|
|
|
@@ -25114,20 +25074,6 @@ class SelectFlagTypeComponent {
|
|
|
25114
25074
|
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
25115
25075
|
});
|
|
25116
25076
|
});
|
|
25117
|
-
this.formGroup.addControl(CaseFlagFormFields.FLAG_TYPE, new FormControl(''));
|
|
25118
|
-
this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(''));
|
|
25119
|
-
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(''));
|
|
25120
|
-
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
25121
|
-
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE).valueChanges
|
|
25122
|
-
.subscribe(_ => {
|
|
25123
|
-
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION).setValue('');
|
|
25124
|
-
this.cachedPath = [];
|
|
25125
|
-
// required to clear language interpreter
|
|
25126
|
-
this.formGroup.patchValue({
|
|
25127
|
-
[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM]: '',
|
|
25128
|
-
[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
|
|
25129
|
-
});
|
|
25130
|
-
});
|
|
25131
25077
|
// If hmctsServiceId is present, use this to retrieve the relevant list of flag types
|
|
25132
25078
|
if (this.hmctsServiceId) {
|
|
25133
25079
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
@@ -30305,10 +30251,15 @@ class CaseHeaderComponent {
|
|
|
30305
30251
|
caseFields;
|
|
30306
30252
|
ngOnInit() {
|
|
30307
30253
|
this.caseTitle = new CaseField();
|
|
30308
|
-
this.
|
|
30309
|
-
|
|
30254
|
+
if (!this.isDraft() && this.caseDetails.state.title_display) {
|
|
30255
|
+
this.caseTitle.label = this.caseDetails.state.title_display;
|
|
30256
|
+
this.caseFields = this.getCaseFields();
|
|
30257
|
+
}
|
|
30310
30258
|
}
|
|
30311
|
-
|
|
30259
|
+
isDraft() {
|
|
30260
|
+
return Draft.isDraft(this.caseDetails.case_id);
|
|
30261
|
+
}
|
|
30262
|
+
getCaseFields() {
|
|
30312
30263
|
const caseDataFields = this.caseDetails.tabs.reduce((acc, tab) => {
|
|
30313
30264
|
return acc.concat(tab.fields);
|
|
30314
30265
|
}, []);
|
|
@@ -32289,13 +32240,14 @@ class EventTriggerResolver {
|
|
|
32289
32240
|
router;
|
|
32290
32241
|
appConfig;
|
|
32291
32242
|
errorNotifier;
|
|
32243
|
+
loadingService;
|
|
32292
32244
|
static PARAM_CASE_ID = 'cid';
|
|
32293
32245
|
static PARAM_EVENT_ID = 'eid';
|
|
32294
32246
|
static IGNORE_WARNING = 'ignoreWarning';
|
|
32295
32247
|
static IGNORE_WARNING_VALUES = ['true', 'false'];
|
|
32296
32248
|
cachedEventTrigger;
|
|
32297
32249
|
cachedProfile;
|
|
32298
|
-
constructor(casesService, alertService, profileService, profileNotifier, router, appConfig, errorNotifier) {
|
|
32250
|
+
constructor(casesService, alertService, profileService, profileNotifier, router, appConfig, errorNotifier, loadingService) {
|
|
32299
32251
|
this.casesService = casesService;
|
|
32300
32252
|
this.alertService = alertService;
|
|
32301
32253
|
this.profileService = profileService;
|
|
@@ -32303,6 +32255,7 @@ class EventTriggerResolver {
|
|
|
32303
32255
|
this.router = router;
|
|
32304
32256
|
this.appConfig = appConfig;
|
|
32305
32257
|
this.errorNotifier = errorNotifier;
|
|
32258
|
+
this.loadingService = loadingService;
|
|
32306
32259
|
}
|
|
32307
32260
|
resolve(route) {
|
|
32308
32261
|
return this.isRootTriggerEventRoute(route) ? this.getAndCacheEventTrigger(route)
|
|
@@ -32333,21 +32286,22 @@ class EventTriggerResolver {
|
|
|
32333
32286
|
}
|
|
32334
32287
|
return this.casesService
|
|
32335
32288
|
.getEventTrigger(caseTypeId, eventTriggerId, cid, ignoreWarning)
|
|
32336
|
-
.pipe(map(eventTrigger => this.cachedEventTrigger = eventTrigger), catchError(error => {
|
|
32289
|
+
.pipe(map((eventTrigger) => this.cachedEventTrigger = eventTrigger), catchError((error) => {
|
|
32337
32290
|
error.details = { eventId: eventTriggerId, ...error.details };
|
|
32338
32291
|
this.alertService.setPreserveAlerts(true);
|
|
32339
32292
|
this.alertService.error(error.message);
|
|
32340
32293
|
this.errorNotifier.announceError(error);
|
|
32341
32294
|
this.router.navigate([`/cases/case-details/${cid}/tasks`]);
|
|
32295
|
+
this.loadingService.unregisterStoredSpinner();
|
|
32342
32296
|
return throwError(error);
|
|
32343
32297
|
})).toPromise();
|
|
32344
32298
|
}
|
|
32345
|
-
static ɵfac = function EventTriggerResolver_Factory(t) { return new (t || EventTriggerResolver)(i0.ɵɵinject(CasesService), i0.ɵɵinject(AlertService), i0.ɵɵinject(ProfileService), i0.ɵɵinject(ProfileNotifier), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(ErrorNotifierService)); };
|
|
32299
|
+
static ɵfac = function EventTriggerResolver_Factory(t) { return new (t || EventTriggerResolver)(i0.ɵɵinject(CasesService), i0.ɵɵinject(AlertService), i0.ɵɵinject(ProfileService), i0.ɵɵinject(ProfileNotifier), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(ErrorNotifierService), i0.ɵɵinject(LoadingService)); };
|
|
32346
32300
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventTriggerResolver, factory: EventTriggerResolver.ɵfac });
|
|
32347
32301
|
}
|
|
32348
32302
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventTriggerResolver, [{
|
|
32349
32303
|
type: Injectable
|
|
32350
|
-
}], () => [{ type: CasesService }, { type: AlertService }, { type: ProfileService }, { type: ProfileNotifier }, { type: i1$1.Router }, { type: AbstractAppConfig }, { type: ErrorNotifierService }], null); })();
|
|
32304
|
+
}], () => [{ type: CasesService }, { type: AlertService }, { type: ProfileService }, { type: ProfileNotifier }, { type: i1$1.Router }, { type: AbstractAppConfig }, { type: ErrorNotifierService }, { type: LoadingService }], null); })();
|
|
32351
32305
|
|
|
32352
32306
|
function CaseEventTriggerComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
32353
32307
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -32373,6 +32327,7 @@ class CaseEventTriggerComponent {
|
|
|
32373
32327
|
caseReferencePipe;
|
|
32374
32328
|
activityPollingService;
|
|
32375
32329
|
sessionStorageService;
|
|
32330
|
+
loadingService;
|
|
32376
32331
|
static EVENT_COMPLETION_MESSAGE = `Case #%CASEREFERENCE% has been updated with event: %NAME%`;
|
|
32377
32332
|
static CALLBACK_FAILED_MESSAGE = ' but the callback service cannot be completed';
|
|
32378
32333
|
BANNER = DisplayMode.BANNER;
|
|
@@ -32381,7 +32336,7 @@ class CaseEventTriggerComponent {
|
|
|
32381
32336
|
activitySubscription;
|
|
32382
32337
|
caseSubscription;
|
|
32383
32338
|
parentUrl;
|
|
32384
|
-
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32339
|
+
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService, loadingService) {
|
|
32385
32340
|
this.ngZone = ngZone;
|
|
32386
32341
|
this.casesService = casesService;
|
|
32387
32342
|
this.caseNotifier = caseNotifier;
|
|
@@ -32391,8 +32346,12 @@ class CaseEventTriggerComponent {
|
|
|
32391
32346
|
this.caseReferencePipe = caseReferencePipe;
|
|
32392
32347
|
this.activityPollingService = activityPollingService;
|
|
32393
32348
|
this.sessionStorageService = sessionStorageService;
|
|
32349
|
+
this.loadingService = loadingService;
|
|
32394
32350
|
}
|
|
32395
32351
|
ngOnInit() {
|
|
32352
|
+
if (this.loadingService.storedSpinner) {
|
|
32353
|
+
this.loadingService.unregisterStoredSpinner();
|
|
32354
|
+
}
|
|
32396
32355
|
if (this.route.snapshot.data.case) {
|
|
32397
32356
|
this.caseDetails = this.route.snapshot.data.case;
|
|
32398
32357
|
}
|
|
@@ -32479,7 +32438,7 @@ class CaseEventTriggerComponent {
|
|
|
32479
32438
|
isDataLoaded() {
|
|
32480
32439
|
return !!(this.eventTrigger && this.caseDetails);
|
|
32481
32440
|
}
|
|
32482
|
-
static ɵfac = function CaseEventTriggerComponent_Factory(t) { return new (t || CaseEventTriggerComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
32441
|
+
static ɵfac = function CaseEventTriggerComponent_Factory(t) { return new (t || CaseEventTriggerComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
32483
32442
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEventTriggerComponent, selectors: [["ccd-case-event-trigger"]], decls: 1, vars: 1, consts: [["class", "screen-990", 4, "ngIf"], [1, "screen-990"], [3, "caseId", "displayMode"], [3, "cancelled", "submitted", "caseDetails", "submit", "validate", "eventTrigger"]], template: function CaseEventTriggerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32484
32443
|
i0.ɵɵtemplate(0, CaseEventTriggerComponent_div_0_Template, 3, 6, "div", 0);
|
|
32485
32444
|
} if (rf & 2) {
|
|
@@ -32489,7 +32448,7 @@ class CaseEventTriggerComponent {
|
|
|
32489
32448
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEventTriggerComponent, [{
|
|
32490
32449
|
type: Component,
|
|
32491
32450
|
args: [{ selector: 'ccd-case-event-trigger', template: "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n <ccd-case-edit [caseDetails]=\"caseDetails\"\n [submit]=\"submit()\"\n [validate]=\"validate()\"\n [eventTrigger]=\"eventTrigger\"\n (cancelled)=\"cancel()\"\n (submitted)=\"submitted($event)\"></ccd-case-edit>\n</div>\n" }]
|
|
32492
|
-
}], () => [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }, { type: SessionStorageService }], null); })();
|
|
32451
|
+
}], () => [{ type: i0.NgZone }, { type: CasesService }, { type: CaseNotifier }, { type: i1$1.Router }, { type: AlertService }, { type: i1$1.ActivatedRoute }, { type: CaseReferencePipe }, { type: ActivityPollingService }, { type: SessionStorageService }, { type: LoadingService }], null); })();
|
|
32493
32452
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventTriggerComponent, { className: "CaseEventTriggerComponent", filePath: "lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.ts", lineNumber: 14 }); })();
|
|
32494
32453
|
|
|
32495
32454
|
function CaseViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -33153,6 +33112,7 @@ class CaseFullAccessViewComponent {
|
|
|
33153
33112
|
crf;
|
|
33154
33113
|
sessionStorageService;
|
|
33155
33114
|
rpxTranslationPipe;
|
|
33115
|
+
loadingService;
|
|
33156
33116
|
static ORIGIN_QUERY_PARAM = 'origin';
|
|
33157
33117
|
static TRIGGER_TEXT_START = 'Go';
|
|
33158
33118
|
static TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
@@ -33189,7 +33149,7 @@ class CaseFullAccessViewComponent {
|
|
|
33189
33149
|
eventId;
|
|
33190
33150
|
callbackErrorsSubject;
|
|
33191
33151
|
tabGroup;
|
|
33192
|
-
constructor(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, rpxTranslationPipe) {
|
|
33152
|
+
constructor(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, rpxTranslationPipe, loadingService) {
|
|
33193
33153
|
this.ngZone = ngZone;
|
|
33194
33154
|
this.route = route;
|
|
33195
33155
|
this.router = router;
|
|
@@ -33205,6 +33165,7 @@ class CaseFullAccessViewComponent {
|
|
|
33205
33165
|
this.crf = crf;
|
|
33206
33166
|
this.sessionStorageService = sessionStorageService;
|
|
33207
33167
|
this.rpxTranslationPipe = rpxTranslationPipe;
|
|
33168
|
+
this.loadingService = loadingService;
|
|
33208
33169
|
}
|
|
33209
33170
|
ngOnInit() {
|
|
33210
33171
|
this.callbackErrorsSubject = this.errorNotifierService.errorSource.pipe(filter((x) => {
|
|
@@ -33286,6 +33247,8 @@ class CaseFullAccessViewComponent {
|
|
|
33286
33247
|
this.triggerText = CaseFullAccessViewComponent.TRIGGER_TEXT_START;
|
|
33287
33248
|
}
|
|
33288
33249
|
async applyTrigger(trigger) {
|
|
33250
|
+
const spinner = this.loadingService.register();
|
|
33251
|
+
this.loadingService.storedSpinner = spinner;
|
|
33289
33252
|
this.errorNotifierService.announceError(null);
|
|
33290
33253
|
const theQueryParams = {};
|
|
33291
33254
|
if (this.ignoreWarning) {
|
|
@@ -33536,7 +33499,7 @@ class CaseFullAccessViewComponent {
|
|
|
33536
33499
|
this.errorNotifierService.announceError(null);
|
|
33537
33500
|
this.alertService.clear();
|
|
33538
33501
|
}
|
|
33539
|
-
static ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
|
|
33502
|
+
static ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
33540
33503
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
33541
33504
|
i0.ɵɵviewQuery(_c0$b, 5);
|
|
33542
33505
|
} if (rf & 2) {
|
|
@@ -33581,7 +33544,7 @@ class CaseFullAccessViewComponent {
|
|
|
33581
33544
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
33582
33545
|
type: Component,
|
|
33583
33546
|
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
33584
|
-
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }], { hasPrint: [{
|
|
33547
|
+
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }], { hasPrint: [{
|
|
33585
33548
|
type: Input
|
|
33586
33549
|
}], hasEventSelector: [{
|
|
33587
33550
|
type: Input
|
|
@@ -33595,7 +33558,7 @@ class CaseFullAccessViewComponent {
|
|
|
33595
33558
|
type: ViewChild,
|
|
33596
33559
|
args: ['tabGroup', { static: false }]
|
|
33597
33560
|
}] }); })();
|
|
33598
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber:
|
|
33561
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 44 }); })();
|
|
33599
33562
|
|
|
33600
33563
|
class PrintUrlPipe {
|
|
33601
33564
|
appConfig;
|