@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
|
@@ -4631,7 +4631,7 @@
|
|
|
4631
4631
|
}
|
|
4632
4632
|
};
|
|
4633
4633
|
ConditionParser.unquoted = function (str) {
|
|
4634
|
-
var res = str.replace(/^"|"$/g, '');
|
|
4634
|
+
var res = str.replace(/^"|"$/g, ''); // NOSONAR
|
|
4635
4635
|
return res;
|
|
4636
4636
|
};
|
|
4637
4637
|
ConditionParser.findValueForComplexCondition = function (fields, head, tail, path) {
|
|
@@ -15566,7 +15566,9 @@
|
|
|
15566
15566
|
});
|
|
15567
15567
|
};
|
|
15568
15568
|
BeforeYouStartComponent.prototype.onBack = function () {
|
|
15569
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
15569
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
15570
|
+
window.location.hash = 'Linked cases';
|
|
15571
|
+
});
|
|
15570
15572
|
};
|
|
15571
15573
|
return BeforeYouStartComponent;
|
|
15572
15574
|
}());
|
|
@@ -17057,7 +17059,9 @@
|
|
|
17057
17059
|
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
17058
17060
|
};
|
|
17059
17061
|
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
17060
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
17062
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
17063
|
+
window.location.hash = 'Linked cases';
|
|
17064
|
+
});
|
|
17061
17065
|
};
|
|
17062
17066
|
return NoLinkedCasesComponent;
|
|
17063
17067
|
}());
|
|
@@ -17522,7 +17526,9 @@
|
|
|
17522
17526
|
}
|
|
17523
17527
|
};
|
|
17524
17528
|
ReadLinkedCasesFieldComponent.prototype.reloadCurrentRoute = function () {
|
|
17525
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]
|
|
17529
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(function () {
|
|
17530
|
+
window.location.hash = 'Linked cases';
|
|
17531
|
+
});
|
|
17526
17532
|
};
|
|
17527
17533
|
ReadLinkedCasesFieldComponent.prototype.getFailureLinkedToNotification = function (evt) {
|
|
17528
17534
|
this.isServerLinkedToError = true;
|
|
@@ -19129,6 +19135,9 @@
|
|
|
19129
19135
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
19130
19136
|
return this.appConfig.getRefundsUrl();
|
|
19131
19137
|
};
|
|
19138
|
+
PaymentField.prototype.getNotificationUrl = function () {
|
|
19139
|
+
return this.appConfig.getNotificationUrl();
|
|
19140
|
+
};
|
|
19132
19141
|
PaymentField.prototype.getUserRoles = function () {
|
|
19133
19142
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
19134
19143
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -19154,12 +19163,12 @@
|
|
|
19154
19163
|
return CasePaymentHistoryViewerFieldComponent;
|
|
19155
19164
|
}(PaymentField));
|
|
19156
19165
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
19157
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
19166
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵ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) {
|
|
19158
19167
|
if (rf & 1) {
|
|
19159
19168
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
19160
19169
|
}
|
|
19161
19170
|
if (rf & 2) {
|
|
19162
|
-
i0__namespace.ɵɵ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");
|
|
19171
|
+
i0__namespace.ɵɵ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");
|
|
19163
19172
|
}
|
|
19164
19173
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
19165
19174
|
(function () {
|
|
@@ -19792,7 +19801,7 @@
|
|
|
19792
19801
|
}
|
|
19793
19802
|
if (rf & 2) {
|
|
19794
19803
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19795
|
-
i0__namespace.ɵɵ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");
|
|
19804
|
+
i0__namespace.ɵɵ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");
|
|
19796
19805
|
}
|
|
19797
19806
|
}
|
|
19798
19807
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -19806,9 +19815,9 @@
|
|
|
19806
19815
|
return WaysToPayFieldComponent;
|
|
19807
19816
|
}(PaymentField));
|
|
19808
19817
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
19809
|
-
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵ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) {
|
|
19818
|
+
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵ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) {
|
|
19810
19819
|
if (rf & 1) {
|
|
19811
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
19820
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
19812
19821
|
}
|
|
19813
19822
|
if (rf & 2) {
|
|
19814
19823
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -20582,7 +20591,7 @@
|
|
|
20582
20591
|
i0__namespace.ɵɵadvance(2);
|
|
20583
20592
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
20584
20593
|
}
|
|
20585
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder
|
|
20594
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.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 });
|
|
20586
20595
|
(function () {
|
|
20587
20596
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
20588
20597
|
type: i0.Component,
|
|
@@ -25670,9 +25679,9 @@
|
|
|
25670
25679
|
FileUploadStateService,
|
|
25671
25680
|
FileUploadProgressGuard,
|
|
25672
25681
|
WindowService,
|
|
25673
|
-
LinkedCasesService,
|
|
25674
25682
|
CommonDataService,
|
|
25675
25683
|
JurisdictionService,
|
|
25684
|
+
LinkedCasesService,
|
|
25676
25685
|
{ provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25677
25686
|
], imports: [[
|
|
25678
25687
|
i1.CommonModule,
|
|
@@ -26014,9 +26023,9 @@
|
|
|
26014
26023
|
FileUploadStateService,
|
|
26015
26024
|
FileUploadProgressGuard,
|
|
26016
26025
|
WindowService,
|
|
26017
|
-
LinkedCasesService,
|
|
26018
26026
|
CommonDataService,
|
|
26019
26027
|
JurisdictionService,
|
|
26028
|
+
LinkedCasesService,
|
|
26020
26029
|
{ provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
26021
26030
|
],
|
|
26022
26031
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
@@ -30001,7 +30010,9 @@
|
|
|
30001
30010
|
};
|
|
30002
30011
|
CaseEventTriggerComponent.prototype.cancel = function () {
|
|
30003
30012
|
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
30004
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
30013
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
30014
|
+
window.location.hash = 'Linked cases';
|
|
30015
|
+
});
|
|
30005
30016
|
}
|
|
30006
30017
|
else {
|
|
30007
30018
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -30599,9 +30610,9 @@
|
|
|
30599
30610
|
i0__namespace.ɵɵelementEnd();
|
|
30600
30611
|
}
|
|
30601
30612
|
if (rf & 2) {
|
|
30602
|
-
var
|
|
30613
|
+
var field_r24 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
30603
30614
|
i0__namespace.ɵɵadvance(2);
|
|
30604
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
30615
|
+
i0__namespace.ɵɵtextInterpolate(field_r24.label);
|
|
30605
30616
|
}
|
|
30606
30617
|
}
|
|
30607
30618
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
|
|
@@ -30616,14 +30627,14 @@
|
|
|
30616
30627
|
i0__namespace.ɵɵelementEnd();
|
|
30617
30628
|
}
|
|
30618
30629
|
if (rf & 2) {
|
|
30619
|
-
var
|
|
30620
|
-
var
|
|
30630
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30631
|
+
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
30621
30632
|
i0__namespace.ɵɵadvance(1);
|
|
30622
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
30633
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
30623
30634
|
i0__namespace.ɵɵadvance(1);
|
|
30624
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30635
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30625
30636
|
i0__namespace.ɵɵadvance(2);
|
|
30626
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30637
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
30627
30638
|
}
|
|
30628
30639
|
}
|
|
30629
30640
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
@@ -30637,12 +30648,12 @@
|
|
|
30637
30648
|
i0__namespace.ɵɵelementEnd();
|
|
30638
30649
|
}
|
|
30639
30650
|
if (rf & 2) {
|
|
30640
|
-
var
|
|
30641
|
-
var
|
|
30651
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30652
|
+
var ctx_r26 = i0__namespace.ɵɵnextContext(4);
|
|
30642
30653
|
i0__namespace.ɵɵadvance(1);
|
|
30643
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30654
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30644
30655
|
i0__namespace.ɵɵadvance(2);
|
|
30645
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30656
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
30646
30657
|
}
|
|
30647
30658
|
}
|
|
30648
30659
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) {
|
|
@@ -30658,12 +30669,12 @@
|
|
|
30658
30669
|
i0__namespace.ɵɵelementContainerEnd();
|
|
30659
30670
|
}
|
|
30660
30671
|
if (rf & 2) {
|
|
30661
|
-
var
|
|
30662
|
-
var
|
|
30672
|
+
var field_r24 = ctx.$implicit;
|
|
30673
|
+
var ctx_r23 = i0__namespace.ɵɵnextContext(4);
|
|
30663
30674
|
i0__namespace.ɵɵadvance(1);
|
|
30664
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
30675
|
+
i0__namespace.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
|
|
30665
30676
|
i0__namespace.ɵɵadvance(1);
|
|
30666
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6,
|
|
30677
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r24));
|
|
30667
30678
|
i0__namespace.ɵɵadvance(2);
|
|
30668
30679
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
30669
30680
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -30683,10 +30694,10 @@
|
|
|
30683
30694
|
}
|
|
30684
30695
|
if (rf & 2) {
|
|
30685
30696
|
var tab_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30686
|
-
var
|
|
30697
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(2);
|
|
30687
30698
|
i0__namespace.ɵɵclassMap(tab_r20.id);
|
|
30688
30699
|
i0__namespace.ɵɵadvance(2);
|
|
30689
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20),
|
|
30700
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20), ctx_r22.formGroup.controls["data"])));
|
|
30690
30701
|
}
|
|
30691
30702
|
}
|
|
30692
30703
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) {
|
|
@@ -30705,8 +30716,8 @@
|
|
|
30705
30716
|
i0__namespace.ɵɵelement(0, "mat-tab", 26);
|
|
30706
30717
|
}
|
|
30707
30718
|
if (rf & 2) {
|
|
30708
|
-
var
|
|
30709
|
-
i0__namespace.ɵɵproperty("id",
|
|
30719
|
+
var tab_r32 = ctx.$implicit;
|
|
30720
|
+
i0__namespace.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
|
|
30710
30721
|
}
|
|
30711
30722
|
}
|
|
30712
30723
|
function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) {
|
|
@@ -30716,10 +30727,10 @@
|
|
|
30716
30727
|
}
|
|
30717
30728
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) {
|
|
30718
30729
|
if (rf & 1) {
|
|
30719
|
-
var
|
|
30730
|
+
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30720
30731
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30721
30732
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30722
|
-
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
30733
|
+
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
30723
30734
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30724
30735
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30725
30736
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -30976,8 +30987,10 @@
|
|
|
30976
30987
|
this.router.navigate([id], { relativeTo: this.route });
|
|
30977
30988
|
}
|
|
30978
30989
|
else {
|
|
30979
|
-
var
|
|
30980
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
30990
|
+
var label_1 = tabChangeEvent.tab.textLabel;
|
|
30991
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
30992
|
+
window.location.hash = label_1;
|
|
30993
|
+
});
|
|
30981
30994
|
}
|
|
30982
30995
|
};
|
|
30983
30996
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31379,24 +31392,23 @@
|
|
|
31379
31392
|
};
|
|
31380
31393
|
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
31381
31394
|
var _this = this;
|
|
31382
|
-
if (this.route.snapshot.data.case) {
|
|
31383
|
-
this.caseDetails = this.route.snapshot.data.case;
|
|
31384
|
-
this.caseDetails.tabs = __spread(new Map(this.caseDetails.tabs.map(function (item) { return [item['label'], item]; })).values());
|
|
31385
|
-
this.setUserAccessType(this.caseDetails);
|
|
31386
|
-
}
|
|
31387
|
-
else {
|
|
31395
|
+
if (!this.route.snapshot.data.case) {
|
|
31388
31396
|
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
31389
31397
|
_this.caseDetails = caseDetails;
|
|
31390
31398
|
_this.setUserAccessType(_this.caseDetails);
|
|
31391
31399
|
});
|
|
31392
31400
|
}
|
|
31401
|
+
else {
|
|
31402
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
31403
|
+
this.setUserAccessType(this.caseDetails);
|
|
31404
|
+
}
|
|
31393
31405
|
};
|
|
31394
31406
|
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
31395
31407
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
31396
|
-
var
|
|
31397
|
-
var
|
|
31398
|
-
this.accessGranted =
|
|
31399
|
-
this.userAccessType =
|
|
31408
|
+
var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
|
|
31409
|
+
var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
|
|
31410
|
+
this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
31411
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
31400
31412
|
}
|
|
31401
31413
|
};
|
|
31402
31414
|
CaseViewerComponent.prototype.isDataLoaded = function () {
|
|
@@ -31410,12 +31422,12 @@
|
|
|
31410
31422
|
};
|
|
31411
31423
|
return CaseViewerComponent;
|
|
31412
31424
|
}());
|
|
31413
|
-
CaseViewerComponent.
|
|
31425
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
31414
31426
|
CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
|
|
31415
31427
|
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
31416
31428
|
CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
31417
31429
|
CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
31418
|
-
CaseViewerComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
31430
|
+
CaseViewerComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
31419
31431
|
if (rf & 1) {
|
|
31420
31432
|
i0__namespace.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
31421
31433
|
}
|
|
@@ -31438,6 +31450,8 @@
|
|
|
31438
31450
|
type: i0.Input
|
|
31439
31451
|
}], appendedTabs: [{
|
|
31440
31452
|
type: i0.Input
|
|
31453
|
+
}], caseDetails: [{
|
|
31454
|
+
type: i0.Input
|
|
31441
31455
|
}] });
|
|
31442
31456
|
})();
|
|
31443
31457
|
|