@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
|
@@ -11409,6 +11409,7 @@
|
|
|
11409
11409
|
this.isLinkedCasesEventTrigger = false;
|
|
11410
11410
|
this.linkCaseReasons = [];
|
|
11411
11411
|
this.linkedCases = [];
|
|
11412
|
+
this.linkedCasesFrom = [];
|
|
11412
11413
|
this.initialCaseLinks = [];
|
|
11413
11414
|
this.editMode = false;
|
|
11414
11415
|
this.jurisdictionsResponse = [];
|
|
@@ -12003,7 +12004,7 @@
|
|
|
12003
12004
|
if (rf & 2) {
|
|
12004
12005
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12005
12006
|
i0__namespace.ɵɵadvance(1);
|
|
12006
|
-
i0__namespace.ɵɵ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);
|
|
12007
|
+
i0__namespace.ɵɵ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");
|
|
12007
12008
|
}
|
|
12008
12009
|
}
|
|
12009
12010
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
@@ -12021,7 +12022,7 @@
|
|
|
12021
12022
|
i0__namespace.ɵɵelementEnd();
|
|
12022
12023
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12023
12024
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12024
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
12025
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12025
12026
|
i0__namespace.ɵɵelementEnd();
|
|
12026
12027
|
i0__namespace.ɵɵelementEnd();
|
|
12027
12028
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12102,7 +12103,7 @@
|
|
|
12102
12103
|
}());
|
|
12103
12104
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12104
12105
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
12105
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
12106
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
12106
12107
|
if (rf & 1) {
|
|
12107
12108
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12108
12109
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12145,7 +12146,7 @@
|
|
|
12145
12146
|
if (rf & 2) {
|
|
12146
12147
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12147
12148
|
i0__namespace.ɵɵadvance(1);
|
|
12148
|
-
i0__namespace.ɵɵ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);
|
|
12149
|
+
i0__namespace.ɵɵ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");
|
|
12149
12150
|
}
|
|
12150
12151
|
}
|
|
12151
12152
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
@@ -12163,7 +12164,7 @@
|
|
|
12163
12164
|
i0__namespace.ɵɵelementEnd();
|
|
12164
12165
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12165
12166
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12166
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
12167
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12167
12168
|
i0__namespace.ɵɵelementEnd();
|
|
12168
12169
|
i0__namespace.ɵɵelementEnd();
|
|
12169
12170
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12186,7 +12187,7 @@
|
|
|
12186
12187
|
return CaseFileViewFieldReadComponent;
|
|
12187
12188
|
}(CaseFileViewFieldComponent));
|
|
12188
12189
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
12189
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵ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) {
|
|
12190
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵ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) {
|
|
12190
12191
|
if (rf & 1) {
|
|
12191
12192
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12192
12193
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -17137,9 +17138,6 @@
|
|
|
17137
17138
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
17138
17139
|
return this.appConfig.getRefundsUrl();
|
|
17139
17140
|
};
|
|
17140
|
-
PaymentField.prototype.getNotificationUrl = function () {
|
|
17141
|
-
return this.appConfig.getNotificationUrl();
|
|
17142
|
-
};
|
|
17143
17141
|
PaymentField.prototype.getUserRoles = function () {
|
|
17144
17142
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
17145
17143
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -17165,12 +17163,12 @@
|
|
|
17165
17163
|
return CasePaymentHistoryViewerFieldComponent;
|
|
17166
17164
|
}(PaymentField));
|
|
17167
17165
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17168
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
17166
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵ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) {
|
|
17169
17167
|
if (rf & 1) {
|
|
17170
17168
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
17171
17169
|
}
|
|
17172
17170
|
if (rf & 2) {
|
|
17173
|
-
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())("
|
|
17171
|
+
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");
|
|
17174
17172
|
}
|
|
17175
17173
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
17176
17174
|
(function () {
|
|
@@ -17578,7 +17576,7 @@
|
|
|
17578
17576
|
}
|
|
17579
17577
|
if (rf & 2) {
|
|
17580
17578
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
17581
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("
|
|
17579
|
+
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");
|
|
17582
17580
|
}
|
|
17583
17581
|
}
|
|
17584
17582
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -17592,9 +17590,9 @@
|
|
|
17592
17590
|
return WaysToPayFieldComponent;
|
|
17593
17591
|
}(PaymentField));
|
|
17594
17592
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17595
|
-
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", "
|
|
17593
|
+
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) {
|
|
17596
17594
|
if (rf & 1) {
|
|
17597
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
17595
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 14, "ccpay-payment-lib", 0);
|
|
17598
17596
|
}
|
|
17599
17597
|
if (rf & 2) {
|
|
17600
17598
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -17856,8 +17854,6 @@
|
|
|
17856
17854
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
17857
17855
|
case 'JudicialUser':
|
|
17858
17856
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
17859
|
-
case 'CaseLink':
|
|
17860
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17861
17857
|
default:
|
|
17862
17858
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
17863
17859
|
}
|
|
@@ -18183,16 +18179,16 @@
|
|
|
18183
18179
|
}] });
|
|
18184
18180
|
})();
|
|
18185
18181
|
|
|
18186
|
-
function
|
|
18182
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
18187
18183
|
if (rf & 1) {
|
|
18188
18184
|
i0__namespace.ɵɵelementContainer(0);
|
|
18189
18185
|
}
|
|
18190
18186
|
}
|
|
18191
18187
|
var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
18192
|
-
function
|
|
18188
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
18193
18189
|
if (rf & 1) {
|
|
18194
18190
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18195
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18191
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18196
18192
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18197
18193
|
}
|
|
18198
18194
|
if (rf & 2) {
|
|
@@ -18235,7 +18231,7 @@
|
|
|
18235
18231
|
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18236
18232
|
i0__namespace.ɵɵtext(4);
|
|
18237
18233
|
i0__namespace.ɵɵelementEnd();
|
|
18238
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
18234
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
18239
18235
|
i0__namespace.ɵɵelementEnd();
|
|
18240
18236
|
}
|
|
18241
18237
|
if (rf & 2) {
|
|
@@ -18331,46 +18327,47 @@
|
|
|
18331
18327
|
return CaseFileViewFolderSelectorComponent;
|
|
18332
18328
|
}());
|
|
18333
18329
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
|
|
18334
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵ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"], [
|
|
18330
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
18335
18331
|
if (rf & 1) {
|
|
18336
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
18337
|
-
i0__namespace.ɵɵ
|
|
18332
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18333
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
18338
18334
|
i0__namespace.ɵɵelementEnd();
|
|
18339
|
-
i0__namespace.ɵɵelementStart(
|
|
18340
|
-
i0__namespace.ɵɵtext(
|
|
18335
|
+
i0__namespace.ɵɵelementStart(1, "h2", 1);
|
|
18336
|
+
i0__namespace.ɵɵtext(2, "Move File");
|
|
18341
18337
|
i0__namespace.ɵɵelementEnd();
|
|
18342
|
-
i0__namespace.ɵɵelementStart(
|
|
18343
|
-
i0__namespace.ɵɵ
|
|
18338
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
18339
|
+
i0__namespace.ɵɵtext(4);
|
|
18344
18340
|
i0__namespace.ɵɵelementEnd();
|
|
18345
|
-
i0__namespace.ɵɵelementStart(
|
|
18346
|
-
i0__namespace.ɵɵ
|
|
18347
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18348
|
-
i0__namespace.ɵɵtext(8, "Save");
|
|
18341
|
+
i0__namespace.ɵɵelementStart(5, "div", 2);
|
|
18342
|
+
i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
18349
18343
|
i0__namespace.ɵɵelementEnd();
|
|
18350
|
-
i0__namespace.ɵɵelementStart(
|
|
18351
|
-
i0__namespace.ɵɵ
|
|
18352
|
-
i0__namespace.ɵɵ
|
|
18344
|
+
i0__namespace.ɵɵelementStart(7, "div", 4);
|
|
18345
|
+
i0__namespace.ɵɵelementStart(8, "button", 5);
|
|
18346
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
18347
|
+
i0__namespace.ɵɵtext(9, "Save");
|
|
18353
18348
|
i0__namespace.ɵɵelementEnd();
|
|
18349
|
+
i0__namespace.ɵɵelementStart(10, "a", 6);
|
|
18350
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
18351
|
+
i0__namespace.ɵɵtext(11, "Cancel");
|
|
18354
18352
|
i0__namespace.ɵɵelementEnd();
|
|
18355
|
-
i0__namespace.ɵɵelementStart(11, "div", 6);
|
|
18356
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
18357
18353
|
i0__namespace.ɵɵelementEnd();
|
|
18358
18354
|
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18359
18355
|
}
|
|
18360
18356
|
if (rf & 2) {
|
|
18361
|
-
i0__namespace.ɵɵadvance(
|
|
18357
|
+
i0__namespace.ɵɵadvance(4);
|
|
18362
18358
|
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18363
18359
|
i0__namespace.ɵɵadvance(2);
|
|
18364
18360
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18365
18361
|
}
|
|
18366
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["
|
|
18362
|
+
}, 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 });
|
|
18367
18363
|
(function () {
|
|
18368
18364
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18369
18365
|
type: i0.Component,
|
|
18370
18366
|
args: [{
|
|
18371
18367
|
selector: 'xui-case-file-view-folder-selector',
|
|
18372
18368
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18373
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18369
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
18370
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18374
18371
|
}]
|
|
18375
18372
|
}], function () {
|
|
18376
18373
|
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
@@ -18922,7 +18919,7 @@
|
|
|
18922
18919
|
return Object.assign(documentTreeNode, node);
|
|
18923
18920
|
}
|
|
18924
18921
|
var filteredData = this.documentTreeData;
|
|
18925
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
18922
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
18926
18923
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
18927
18924
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
18928
18925
|
return true;
|
|
@@ -19004,7 +19001,6 @@
|
|
|
19004
19001
|
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
19005
19002
|
var _this = this;
|
|
19006
19003
|
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
19007
|
-
width: '570px',
|
|
19008
19004
|
data: { categories: this.categories, document: node }
|
|
19009
19005
|
});
|
|
19010
19006
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
@@ -19030,7 +19026,7 @@
|
|
|
19030
19026
|
}());
|
|
19031
19027
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19032
19028
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19033
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
19029
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19034
19030
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
19035
19031
|
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
19036
19032
|
if (rf & 1) {
|
|
@@ -21423,7 +21419,8 @@
|
|
|
21423
21419
|
if (this.linkCaseForm.valid &&
|
|
21424
21420
|
!this.isCaseSelected(this.selectedCases) &&
|
|
21425
21421
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
21426
|
-
!this.isCaseSelectedSameAsCurrentCase()
|
|
21422
|
+
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
21423
|
+
!this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
21427
21424
|
this.getCaseInfo();
|
|
21428
21425
|
}
|
|
21429
21426
|
else {
|
|
@@ -21473,6 +21470,14 @@
|
|
|
21473
21470
|
fieldId: 'caseNumber',
|
|
21474
21471
|
});
|
|
21475
21472
|
}
|
|
21473
|
+
if (this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
21474
|
+
this.caseSelectionError = exports.LinkedCasesErrorMessages.CasesLinkedError;
|
|
21475
|
+
this.errorMessages.push({
|
|
21476
|
+
title: 'dummy-case-number',
|
|
21477
|
+
description: exports.LinkedCasesErrorMessages.CasesLinkedError,
|
|
21478
|
+
fieldId: 'caseNumber',
|
|
21479
|
+
});
|
|
21480
|
+
}
|
|
21476
21481
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
21477
21482
|
this.errorMessages.push({
|
|
21478
21483
|
title: 'dummy-case-number',
|
|
@@ -21860,6 +21865,9 @@
|
|
|
21860
21865
|
this.caseId = this.route.snapshot.data.case.case_id;
|
|
21861
21866
|
this.getLinkedCases().subscribe(function (response) {
|
|
21862
21867
|
_this.isServerError = false;
|
|
21868
|
+
if (response.linkedCases) {
|
|
21869
|
+
_this.setLinkiedCasesFrom(response.linkedCases);
|
|
21870
|
+
}
|
|
21863
21871
|
_this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(function (item) {
|
|
21864
21872
|
var mappedCasetype = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
21865
21873
|
var mappedCasetypeDescription = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
@@ -21874,6 +21882,16 @@
|
|
|
21874
21882
|
_this.notifyAPIFailure.emit(true);
|
|
21875
21883
|
});
|
|
21876
21884
|
};
|
|
21885
|
+
LinkedCasesFromTableComponent.prototype.setLinkiedCasesFrom = function (linkedCases) {
|
|
21886
|
+
var caseLinks = linkedCases.map(function (item) {
|
|
21887
|
+
return {
|
|
21888
|
+
caseReference: item.caseReference,
|
|
21889
|
+
caseService: item.ccdJurisdiction,
|
|
21890
|
+
caseType: item.ccdCaseType,
|
|
21891
|
+
};
|
|
21892
|
+
});
|
|
21893
|
+
this.linkedCasesService.linkedCasesFrom = caseLinks;
|
|
21894
|
+
};
|
|
21877
21895
|
LinkedCasesFromTableComponent.prototype.getLinkedCases = function () {
|
|
21878
21896
|
return this.casesService.getLinkedCases(this.caseId);
|
|
21879
21897
|
};
|