@hmcts/ccd-case-ui-toolkit 6.14.5-duplicate-tabs → 6.14.5-testing
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +62 -48
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +4 -2
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +25 -23
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +15 -13
- package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +4 -2
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +4 -2
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +4 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +3 -3
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +3 -3
- package/esm2015/lib/shared/pipes/index.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +61 -47
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts +2 -2
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/pipes/index.d.ts +1 -0
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -4050,7 +4050,7 @@ class ConditionParser {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
static unquoted(str) {
|
|
4053
|
-
const res = str.replace(/^"|"$/g, '');
|
|
4053
|
+
const res = str.replace(/^"|"$/g, ''); // NOSONAR
|
|
4054
4054
|
return res;
|
|
4055
4055
|
}
|
|
4056
4056
|
static findValueForComplexCondition(fields, head, tail, path) {
|
|
@@ -13502,7 +13502,9 @@ class BeforeYouStartComponent {
|
|
|
13502
13502
|
});
|
|
13503
13503
|
}
|
|
13504
13504
|
onBack() {
|
|
13505
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
13505
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
13506
|
+
window.location.hash = 'Linked cases';
|
|
13507
|
+
});
|
|
13506
13508
|
}
|
|
13507
13509
|
}
|
|
13508
13510
|
BeforeYouStartComponent.ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
@@ -14842,7 +14844,9 @@ class NoLinkedCasesComponent {
|
|
|
14842
14844
|
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
14843
14845
|
}
|
|
14844
14846
|
onBack() {
|
|
14845
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
14847
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
14848
|
+
window.location.hash = 'Linked cases';
|
|
14849
|
+
});
|
|
14846
14850
|
}
|
|
14847
14851
|
}
|
|
14848
14852
|
NoLinkedCasesComponent.ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
@@ -15228,7 +15232,9 @@ class ReadLinkedCasesFieldComponent {
|
|
|
15228
15232
|
}
|
|
15229
15233
|
}
|
|
15230
15234
|
reloadCurrentRoute() {
|
|
15231
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]
|
|
15235
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(() => {
|
|
15236
|
+
window.location.hash = 'Linked cases';
|
|
15237
|
+
});
|
|
15232
15238
|
}
|
|
15233
15239
|
getFailureLinkedToNotification(evt) {
|
|
15234
15240
|
this.isServerLinkedToError = true;
|
|
@@ -16602,6 +16608,9 @@ class PaymentField extends AbstractFieldReadComponent {
|
|
|
16602
16608
|
getRefundsUrl() {
|
|
16603
16609
|
return this.appConfig.getRefundsUrl();
|
|
16604
16610
|
}
|
|
16611
|
+
getNotificationUrl() {
|
|
16612
|
+
return this.appConfig.getNotificationUrl();
|
|
16613
|
+
}
|
|
16605
16614
|
getUserRoles() {
|
|
16606
16615
|
const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
16607
16616
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -16624,10 +16633,10 @@ class CasePaymentHistoryViewerFieldComponent extends PaymentField {
|
|
|
16624
16633
|
}
|
|
16625
16634
|
}
|
|
16626
16635
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
16627
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
16636
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16628
16637
|
i0.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
16629
16638
|
} if (rf & 2) {
|
|
16630
|
-
i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
16639
|
+
i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
16631
16640
|
} }, directives: [i3.PaymentLibComponent], encapsulation: 2 });
|
|
16632
16641
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
|
|
16633
16642
|
type: Component,
|
|
@@ -17126,7 +17135,7 @@ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf
|
|
|
17126
17135
|
i0.ɵɵelement(0, "ccpay-payment-lib", 1);
|
|
17127
17136
|
} if (rf & 2) {
|
|
17128
17137
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
17129
|
-
i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17138
|
+
i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17130
17139
|
} }
|
|
17131
17140
|
class WaysToPayFieldComponent extends PaymentField {
|
|
17132
17141
|
constructor(appConfig, sessionStorage) {
|
|
@@ -17137,8 +17146,8 @@ class WaysToPayFieldComponent extends PaymentField {
|
|
|
17137
17146
|
}
|
|
17138
17147
|
}
|
|
17139
17148
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17140
|
-
WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17141
|
-
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
17149
|
+
WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17150
|
+
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
17142
17151
|
} if (rf & 2) {
|
|
17143
17152
|
i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
17144
17153
|
} }, directives: [i1.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
|
|
@@ -17794,7 +17803,7 @@ CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseF
|
|
|
17794
17803
|
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
17795
17804
|
i0.ɵɵadvance(2);
|
|
17796
17805
|
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
17797
|
-
} }, directives: [i1.NgForOf, i1.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder
|
|
17806
|
+
} }, directives: [i1.NgForOf, i1.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
17798
17807
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
17799
17808
|
type: Component,
|
|
17800
17809
|
args: [{
|
|
@@ -22290,9 +22299,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22290
22299
|
FileUploadStateService,
|
|
22291
22300
|
FileUploadProgressGuard,
|
|
22292
22301
|
WindowService,
|
|
22293
|
-
LinkedCasesService,
|
|
22294
22302
|
CommonDataService,
|
|
22295
22303
|
JurisdictionService,
|
|
22304
|
+
LinkedCasesService,
|
|
22296
22305
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
22297
22306
|
], imports: [[
|
|
22298
22307
|
CommonModule,
|
|
@@ -22633,9 +22642,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22633
22642
|
FileUploadStateService,
|
|
22634
22643
|
FileUploadProgressGuard,
|
|
22635
22644
|
WindowService,
|
|
22636
|
-
LinkedCasesService,
|
|
22637
22645
|
CommonDataService,
|
|
22638
22646
|
JurisdictionService,
|
|
22647
|
+
LinkedCasesService,
|
|
22639
22648
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
22640
22649
|
],
|
|
22641
22650
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
@@ -26157,7 +26166,9 @@ class CaseEventTriggerComponent {
|
|
|
26157
26166
|
}
|
|
26158
26167
|
cancel() {
|
|
26159
26168
|
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
26160
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
26169
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(() => {
|
|
26170
|
+
window.location.hash = 'Linked cases';
|
|
26171
|
+
});
|
|
26161
26172
|
}
|
|
26162
26173
|
else {
|
|
26163
26174
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -26670,9 +26681,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
26670
26681
|
i0.ɵɵelementEnd();
|
|
26671
26682
|
i0.ɵɵelementEnd();
|
|
26672
26683
|
} if (rf & 2) {
|
|
26673
|
-
const
|
|
26684
|
+
const field_r24 = i0.ɵɵnextContext(2).$implicit;
|
|
26674
26685
|
i0.ɵɵadvance(2);
|
|
26675
|
-
i0.ɵɵtextInterpolate(
|
|
26686
|
+
i0.ɵɵtextInterpolate(field_r24.label);
|
|
26676
26687
|
} }
|
|
26677
26688
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
26678
26689
|
i0.ɵɵelementStart(0, "tr");
|
|
@@ -26684,14 +26695,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
26684
26695
|
i0.ɵɵelementEnd();
|
|
26685
26696
|
i0.ɵɵelementEnd();
|
|
26686
26697
|
} if (rf & 2) {
|
|
26687
|
-
const
|
|
26688
|
-
const
|
|
26698
|
+
const field_r24 = i0.ɵɵnextContext().$implicit;
|
|
26699
|
+
const ctx_r25 = i0.ɵɵnextContext(4);
|
|
26689
26700
|
i0.ɵɵadvance(1);
|
|
26690
|
-
i0.ɵɵproperty("ngIf", !
|
|
26701
|
+
i0.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
26691
26702
|
i0.ɵɵadvance(1);
|
|
26692
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
26703
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26693
26704
|
i0.ɵɵadvance(2);
|
|
26694
|
-
i0.ɵɵproperty("topLevelFormGroup",
|
|
26705
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
26695
26706
|
} }
|
|
26696
26707
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
26697
26708
|
i0.ɵɵelementStart(0, "tr", 39);
|
|
@@ -26702,12 +26713,12 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
26702
26713
|
i0.ɵɵelementEnd();
|
|
26703
26714
|
i0.ɵɵelementEnd();
|
|
26704
26715
|
} if (rf & 2) {
|
|
26705
|
-
const
|
|
26706
|
-
const
|
|
26716
|
+
const field_r24 = i0.ɵɵnextContext().$implicit;
|
|
26717
|
+
const ctx_r26 = i0.ɵɵnextContext(4);
|
|
26707
26718
|
i0.ɵɵadvance(1);
|
|
26708
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
26719
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26709
26720
|
i0.ɵɵadvance(2);
|
|
26710
|
-
i0.ɵɵproperty("topLevelFormGroup",
|
|
26721
|
+
i0.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
26711
26722
|
} }
|
|
26712
26723
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
26713
26724
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -26720,12 +26731,12 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
26720
26731
|
i0.ɵɵelementEnd();
|
|
26721
26732
|
i0.ɵɵelementContainerEnd();
|
|
26722
26733
|
} if (rf & 2) {
|
|
26723
|
-
const
|
|
26724
|
-
const
|
|
26734
|
+
const field_r24 = ctx.$implicit;
|
|
26735
|
+
const ctx_r23 = i0.ɵɵnextContext(4);
|
|
26725
26736
|
i0.ɵɵadvance(1);
|
|
26726
|
-
i0.ɵɵproperty("caseField",
|
|
26737
|
+
i0.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
|
|
26727
26738
|
i0.ɵɵadvance(1);
|
|
26728
|
-
i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6,
|
|
26739
|
+
i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6, field_r24));
|
|
26729
26740
|
i0.ɵɵadvance(2);
|
|
26730
26741
|
i0.ɵɵproperty("ngSwitchCase", true);
|
|
26731
26742
|
i0.ɵɵadvance(1);
|
|
@@ -26742,10 +26753,10 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_Tem
|
|
|
26742
26753
|
i0.ɵɵelementEnd();
|
|
26743
26754
|
} if (rf & 2) {
|
|
26744
26755
|
const tab_r20 = i0.ɵɵnextContext().$implicit;
|
|
26745
|
-
const
|
|
26756
|
+
const ctx_r22 = i0.ɵɵnextContext(2);
|
|
26746
26757
|
i0.ɵɵclassMap(tab_r20.id);
|
|
26747
26758
|
i0.ɵɵadvance(2);
|
|
26748
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(3, 3, i0.ɵɵpureFunction2(11, _c1$3, i0.ɵɵpipeBind1(4, 9, tab_r20),
|
|
26759
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(3, 3, i0.ɵɵpureFunction2(11, _c1$3, i0.ɵɵpipeBind1(4, 9, tab_r20), ctx_r22.formGroup.controls["data"])));
|
|
26749
26760
|
} }
|
|
26750
26761
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) { if (rf & 1) {
|
|
26751
26762
|
i0.ɵɵelementStart(0, "mat-tab", 26);
|
|
@@ -26758,17 +26769,17 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx)
|
|
|
26758
26769
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template(rf, ctx) { if (rf & 1) {
|
|
26759
26770
|
i0.ɵɵelement(0, "mat-tab", 26);
|
|
26760
26771
|
} if (rf & 2) {
|
|
26761
|
-
const
|
|
26762
|
-
i0.ɵɵproperty("id",
|
|
26772
|
+
const tab_r32 = ctx.$implicit;
|
|
26773
|
+
i0.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
|
|
26763
26774
|
} }
|
|
26764
26775
|
function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) { if (rf & 1) {
|
|
26765
26776
|
i0.ɵɵelement(0, "router-outlet");
|
|
26766
26777
|
} }
|
|
26767
26778
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
26768
|
-
const
|
|
26779
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
26769
26780
|
i0.ɵɵelementContainerStart(0);
|
|
26770
26781
|
i0.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
26771
|
-
i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(
|
|
26782
|
+
i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
26772
26783
|
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
26773
26784
|
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
26774
26785
|
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -27020,7 +27031,9 @@ class CaseFullAccessViewComponent {
|
|
|
27020
27031
|
}
|
|
27021
27032
|
else {
|
|
27022
27033
|
const label = tabChangeEvent.tab.textLabel;
|
|
27023
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
27034
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(() => {
|
|
27035
|
+
window.location.hash = label;
|
|
27036
|
+
});
|
|
27024
27037
|
}
|
|
27025
27038
|
}
|
|
27026
27039
|
onLinkClicked(triggerOutputEventText) {
|
|
@@ -27385,24 +27398,23 @@ class CaseViewerComponent {
|
|
|
27385
27398
|
}
|
|
27386
27399
|
}
|
|
27387
27400
|
loadCaseDetails() {
|
|
27388
|
-
if (this.route.snapshot.data.case) {
|
|
27389
|
-
this.caseDetails = this.route.snapshot.data.case;
|
|
27390
|
-
this.caseDetails.tabs = [...new Map(this.caseDetails.tabs.map(item => [item['label'], item])).values()];
|
|
27391
|
-
this.setUserAccessType(this.caseDetails);
|
|
27392
|
-
}
|
|
27393
|
-
else {
|
|
27401
|
+
if (!this.route.snapshot.data.case) {
|
|
27394
27402
|
this.caseSubscription = this.caseNotifier.caseView.subscribe(caseDetails => {
|
|
27395
27403
|
this.caseDetails = caseDetails;
|
|
27396
27404
|
this.setUserAccessType(this.caseDetails);
|
|
27397
27405
|
});
|
|
27398
27406
|
}
|
|
27407
|
+
else {
|
|
27408
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
27409
|
+
this.setUserAccessType(this.caseDetails);
|
|
27410
|
+
}
|
|
27399
27411
|
}
|
|
27400
27412
|
setUserAccessType(caseDetails) {
|
|
27401
27413
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
27402
|
-
const
|
|
27403
|
-
const
|
|
27404
|
-
this.accessGranted =
|
|
27405
|
-
this.userAccessType =
|
|
27414
|
+
const access_process = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
|
|
27415
|
+
const access_granted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
|
|
27416
|
+
this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
27417
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
27406
27418
|
}
|
|
27407
27419
|
}
|
|
27408
27420
|
isDataLoaded() {
|
|
@@ -27415,12 +27427,12 @@ class CaseViewerComponent {
|
|
|
27415
27427
|
: true;
|
|
27416
27428
|
}
|
|
27417
27429
|
}
|
|
27418
|
-
CaseViewerComponent.
|
|
27430
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
27419
27431
|
CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
|
|
27420
27432
|
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
27421
27433
|
CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
27422
27434
|
CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
27423
|
-
CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27435
|
+
CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs", caseDetails: "caseDetails" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27424
27436
|
i0.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
27425
27437
|
} if (rf & 2) {
|
|
27426
27438
|
i0.ɵɵproperty("ngIf", ctx.isDataLoaded());
|
|
@@ -27439,6 +27451,8 @@ CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent,
|
|
|
27439
27451
|
type: Input
|
|
27440
27452
|
}], appendedTabs: [{
|
|
27441
27453
|
type: Input
|
|
27454
|
+
}], caseDetails: [{
|
|
27455
|
+
type: Input
|
|
27442
27456
|
}] }); })();
|
|
27443
27457
|
|
|
27444
27458
|
/**
|