@hmcts/ccd-case-ui-toolkit 5.0.47-fee-pay-props → 5.0.47-linked-cases-from-table-check
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 +61 -43
- 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/palette/base-field/payment-field.component.js +1 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +3 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +11 -2
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.js +14 -1
- package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +2 -1
- package/esm2015/lib/shared/components/palette/palette.service.js +1 -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/fesm2015/hmcts-ccd-case-ui-toolkit.js +61 -43
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +0 -2
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +0 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts +1 -0
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +1 -0
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9855,6 +9855,7 @@ class LinkedCasesService {
|
|
|
9855
9855
|
this.isLinkedCasesEventTrigger = false;
|
|
9856
9856
|
this.linkCaseReasons = [];
|
|
9857
9857
|
this.linkedCases = [];
|
|
9858
|
+
this.linkedCasesFrom = [];
|
|
9858
9859
|
this.initialCaseLinks = [];
|
|
9859
9860
|
this.editMode = false;
|
|
9860
9861
|
this.jurisdictionsResponse = [];
|
|
@@ -10557,7 +10558,7 @@ function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if
|
|
|
10557
10558
|
} if (rf & 2) {
|
|
10558
10559
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10559
10560
|
i0.ɵɵadvance(1);
|
|
10560
|
-
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
10561
|
+
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
10561
10562
|
} }
|
|
10562
10563
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10563
10564
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10573,7 +10574,7 @@ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10573
10574
|
i0.ɵɵelementEnd();
|
|
10574
10575
|
i0.ɵɵelement(6, "div", 9);
|
|
10575
10576
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10576
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
10577
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10577
10578
|
i0.ɵɵelementEnd();
|
|
10578
10579
|
i0.ɵɵelementEnd();
|
|
10579
10580
|
i0.ɵɵelementEnd();
|
|
@@ -10649,7 +10650,7 @@ class CaseFileViewFieldComponent {
|
|
|
10649
10650
|
}
|
|
10650
10651
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10651
10652
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
10652
|
-
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10653
|
+
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10653
10654
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10654
10655
|
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
10655
10656
|
} if (rf & 2) {
|
|
@@ -10683,7 +10684,7 @@ function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
|
10683
10684
|
} if (rf & 2) {
|
|
10684
10685
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10685
10686
|
i0.ɵɵadvance(1);
|
|
10686
|
-
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
10687
|
+
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
10687
10688
|
} }
|
|
10688
10689
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10689
10690
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10699,7 +10700,7 @@ function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10699
10700
|
i0.ɵɵelementEnd();
|
|
10700
10701
|
i0.ɵɵelement(6, "div", 9);
|
|
10701
10702
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10702
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
10703
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10703
10704
|
i0.ɵɵelementEnd();
|
|
10704
10705
|
i0.ɵɵelementEnd();
|
|
10705
10706
|
i0.ɵɵelementEnd();
|
|
@@ -10717,7 +10718,7 @@ class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
|
10717
10718
|
}
|
|
10718
10719
|
}
|
|
10719
10720
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10720
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10721
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10721
10722
|
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10722
10723
|
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10723
10724
|
} if (rf & 2) {
|
|
@@ -14763,9 +14764,6 @@ class PaymentField extends AbstractFieldReadComponent {
|
|
|
14763
14764
|
getRefundsUrl() {
|
|
14764
14765
|
return this.appConfig.getRefundsUrl();
|
|
14765
14766
|
}
|
|
14766
|
-
getNotificationUrl() {
|
|
14767
|
-
return this.appConfig.getNotificationUrl();
|
|
14768
|
-
}
|
|
14769
14767
|
getUserRoles() {
|
|
14770
14768
|
const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
14771
14769
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -14788,10 +14786,10 @@ class CasePaymentHistoryViewerFieldComponent extends PaymentField {
|
|
|
14788
14786
|
}
|
|
14789
14787
|
}
|
|
14790
14788
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
14791
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
14789
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 15, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14792
14790
|
i0.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
14793
14791
|
} if (rf & 2) {
|
|
14794
|
-
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())("
|
|
14792
|
+
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");
|
|
14795
14793
|
} }, directives: [i3.PaymentLibComponent], encapsulation: 2 });
|
|
14796
14794
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
|
|
14797
14795
|
type: Component,
|
|
@@ -15102,7 +15100,7 @@ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf
|
|
|
15102
15100
|
i0.ɵɵelement(0, "ccpay-payment-lib", 1);
|
|
15103
15101
|
} if (rf & 2) {
|
|
15104
15102
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15105
|
-
i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("
|
|
15103
|
+
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");
|
|
15106
15104
|
} }
|
|
15107
15105
|
class WaysToPayFieldComponent extends PaymentField {
|
|
15108
15106
|
constructor(appConfig, sessionStorage) {
|
|
@@ -15113,8 +15111,8 @@ class WaysToPayFieldComponent extends PaymentField {
|
|
|
15113
15111
|
}
|
|
15114
15112
|
}
|
|
15115
15113
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
15116
|
-
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", "
|
|
15117
|
-
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
15114
|
+
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) {
|
|
15115
|
+
i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 14, "ccpay-payment-lib", 0);
|
|
15118
15116
|
} if (rf & 2) {
|
|
15119
15117
|
i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
15120
15118
|
} }, directives: [i1.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
|
|
@@ -15339,8 +15337,6 @@ class PaletteService {
|
|
|
15339
15337
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
15340
15338
|
case 'JudicialUser':
|
|
15341
15339
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
15342
|
-
case 'CaseLink':
|
|
15343
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15344
15340
|
default:
|
|
15345
15341
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
15346
15342
|
}
|
|
@@ -15625,13 +15621,13 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15625
15621
|
type: Input
|
|
15626
15622
|
}] }); })();
|
|
15627
15623
|
|
|
15628
|
-
function
|
|
15624
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15629
15625
|
i0.ɵɵelementContainer(0);
|
|
15630
15626
|
} }
|
|
15631
15627
|
const _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
15632
|
-
function
|
|
15628
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
15633
15629
|
i0.ɵɵelementContainerStart(0);
|
|
15634
|
-
i0.ɵɵtemplate(1,
|
|
15630
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15635
15631
|
i0.ɵɵelementContainerEnd();
|
|
15636
15632
|
} if (rf & 2) {
|
|
15637
15633
|
const cat_r3 = ctx.$implicit;
|
|
@@ -15666,7 +15662,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
|
15666
15662
|
i0.ɵɵelement(3, "img", 12);
|
|
15667
15663
|
i0.ɵɵtext(4);
|
|
15668
15664
|
i0.ɵɵelementEnd();
|
|
15669
|
-
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
15665
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
15670
15666
|
i0.ɵɵelementEnd();
|
|
15671
15667
|
} if (rf & 2) {
|
|
15672
15668
|
const cat_r5 = ctx.cat;
|
|
@@ -15737,42 +15733,43 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
15737
15733
|
}
|
|
15738
15734
|
}
|
|
15739
15735
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
15740
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [
|
|
15741
|
-
i0.ɵɵelementStart(0, "
|
|
15742
|
-
i0.ɵɵ
|
|
15736
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15737
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
15738
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
15743
15739
|
i0.ɵɵelementEnd();
|
|
15744
|
-
i0.ɵɵelementStart(
|
|
15745
|
-
i0.ɵɵtext(
|
|
15740
|
+
i0.ɵɵelementStart(1, "h2", 1);
|
|
15741
|
+
i0.ɵɵtext(2, "Move File");
|
|
15746
15742
|
i0.ɵɵelementEnd();
|
|
15747
|
-
i0.ɵɵelementStart(
|
|
15748
|
-
i0.ɵɵ
|
|
15743
|
+
i0.ɵɵelementStart(3, "p");
|
|
15744
|
+
i0.ɵɵtext(4);
|
|
15749
15745
|
i0.ɵɵelementEnd();
|
|
15750
|
-
i0.ɵɵelementStart(
|
|
15751
|
-
i0.ɵɵ
|
|
15752
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
15753
|
-
i0.ɵɵtext(8, "Save");
|
|
15746
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
15747
|
+
i0.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
15754
15748
|
i0.ɵɵelementEnd();
|
|
15755
|
-
i0.ɵɵelementStart(
|
|
15756
|
-
i0.ɵɵ
|
|
15757
|
-
i0.ɵɵ
|
|
15749
|
+
i0.ɵɵelementStart(7, "div", 4);
|
|
15750
|
+
i0.ɵɵelementStart(8, "button", 5);
|
|
15751
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
15752
|
+
i0.ɵɵtext(9, "Save");
|
|
15758
15753
|
i0.ɵɵelementEnd();
|
|
15754
|
+
i0.ɵɵelementStart(10, "a", 6);
|
|
15755
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
15756
|
+
i0.ɵɵtext(11, "Cancel");
|
|
15759
15757
|
i0.ɵɵelementEnd();
|
|
15760
|
-
i0.ɵɵelementStart(11, "div", 6);
|
|
15761
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
15762
15758
|
i0.ɵɵelementEnd();
|
|
15763
15759
|
i0.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
15764
15760
|
} if (rf & 2) {
|
|
15765
|
-
i0.ɵɵadvance(
|
|
15761
|
+
i0.ɵɵadvance(4);
|
|
15766
15762
|
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
15767
15763
|
i0.ɵɵadvance(2);
|
|
15768
15764
|
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
15769
|
-
} }, directives: [i1.NgForOf, i1.NgTemplateOutlet], styles: ["
|
|
15765
|
+
} }, 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 });
|
|
15770
15766
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
15771
15767
|
type: Component,
|
|
15772
15768
|
args: [{
|
|
15773
15769
|
selector: 'xui-case-file-view-folder-selector',
|
|
15774
15770
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
15775
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
15771
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
15772
|
+
encapsulation: ViewEncapsulation.None
|
|
15776
15773
|
}]
|
|
15777
15774
|
}], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
15778
15775
|
type: Inject,
|
|
@@ -16253,7 +16250,7 @@ class CaseFileViewFolderComponent {
|
|
|
16253
16250
|
return Object.assign(documentTreeNode, node);
|
|
16254
16251
|
}
|
|
16255
16252
|
let filteredData = this.documentTreeData;
|
|
16256
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
16253
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
16257
16254
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
16258
16255
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
16259
16256
|
return true;
|
|
@@ -16333,7 +16330,6 @@ class CaseFileViewFolderComponent {
|
|
|
16333
16330
|
}
|
|
16334
16331
|
openMoveDialog(node) {
|
|
16335
16332
|
const dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
16336
|
-
width: '570px',
|
|
16337
16333
|
data: { categories: this.categories, document: node }
|
|
16338
16334
|
});
|
|
16339
16335
|
dialogRef.afterClosed().subscribe(newCatId => {
|
|
@@ -16358,7 +16354,7 @@ class CaseFileViewFolderComponent {
|
|
|
16358
16354
|
}
|
|
16359
16355
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
16360
16356
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
16361
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
16357
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
16362
16358
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
16363
16359
|
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16364
16360
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -18502,7 +18498,8 @@ class LinkCasesComponent {
|
|
|
18502
18498
|
if (this.linkCaseForm.valid &&
|
|
18503
18499
|
!this.isCaseSelected(this.selectedCases) &&
|
|
18504
18500
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
18505
|
-
!this.isCaseSelectedSameAsCurrentCase()
|
|
18501
|
+
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
18502
|
+
!this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
18506
18503
|
this.getCaseInfo();
|
|
18507
18504
|
}
|
|
18508
18505
|
else {
|
|
@@ -18552,6 +18549,14 @@ class LinkCasesComponent {
|
|
|
18552
18549
|
fieldId: 'caseNumber',
|
|
18553
18550
|
});
|
|
18554
18551
|
}
|
|
18552
|
+
if (this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
18553
|
+
this.caseSelectionError = LinkedCasesErrorMessages.CasesLinkedError;
|
|
18554
|
+
this.errorMessages.push({
|
|
18555
|
+
title: 'dummy-case-number',
|
|
18556
|
+
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
18557
|
+
fieldId: 'caseNumber',
|
|
18558
|
+
});
|
|
18559
|
+
}
|
|
18555
18560
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
18556
18561
|
this.errorMessages.push({
|
|
18557
18562
|
title: 'dummy-case-number',
|
|
@@ -18911,6 +18916,9 @@ class LinkedCasesFromTableComponent {
|
|
|
18911
18916
|
this.caseId = this.route.snapshot.data.case.case_id;
|
|
18912
18917
|
this.getLinkedCases().subscribe(response => {
|
|
18913
18918
|
this.isServerError = false;
|
|
18919
|
+
if (response.linkedCases) {
|
|
18920
|
+
this.setLinkiedCasesFrom(response.linkedCases);
|
|
18921
|
+
}
|
|
18914
18922
|
this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(item => {
|
|
18915
18923
|
const mappedCasetype = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
18916
18924
|
const mappedCasetypeDescription = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
@@ -18925,6 +18933,16 @@ class LinkedCasesFromTableComponent {
|
|
|
18925
18933
|
this.notifyAPIFailure.emit(true);
|
|
18926
18934
|
});
|
|
18927
18935
|
}
|
|
18936
|
+
setLinkiedCasesFrom(linkedCases) {
|
|
18937
|
+
const caseLinks = linkedCases.map(item => {
|
|
18938
|
+
return {
|
|
18939
|
+
caseReference: item.caseReference,
|
|
18940
|
+
caseService: item.ccdJurisdiction,
|
|
18941
|
+
caseType: item.ccdCaseType,
|
|
18942
|
+
};
|
|
18943
|
+
});
|
|
18944
|
+
this.linkedCasesService.linkedCasesFrom = caseLinks;
|
|
18945
|
+
}
|
|
18928
18946
|
getLinkedCases() {
|
|
18929
18947
|
return this.casesService.getLinkedCases(this.caseId);
|
|
18930
18948
|
}
|