@hmcts/ccd-case-ui-toolkit 6.13.11-welsh-release → 6.13.11-welsh-release-f
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 +11 -94
- 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/shared/components/palette/case-file-view/case-file-view-field.component.js +12 -5
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +1 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +1 -6
- package/esm2015/lib/shared/components/palette/palette.service.js +2 -3
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +12 -78
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +5 -2
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/index.d.ts +0 -1
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +40 -41
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +0 -72
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +0 -8
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +0 -1
|
@@ -11584,12 +11584,13 @@
|
|
|
11584
11584
|
}
|
|
11585
11585
|
}
|
|
11586
11586
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
11587
|
-
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
11587
|
+
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
|
|
11588
11588
|
this.elementRef = elementRef;
|
|
11589
11589
|
this.route = route;
|
|
11590
11590
|
this.caseFileViewService = caseFileViewService;
|
|
11591
11591
|
this.documentManagementService = documentManagementService;
|
|
11592
11592
|
this.loadingService = loadingService;
|
|
11593
|
+
this.sessionStorageService = sessionStorageService;
|
|
11593
11594
|
this.allowMoving = true;
|
|
11594
11595
|
this.getCategoriesAndDocumentsError = false;
|
|
11595
11596
|
}
|
|
@@ -11603,6 +11604,12 @@
|
|
|
11603
11604
|
},
|
|
11604
11605
|
error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
|
|
11605
11606
|
});
|
|
11607
|
+
// EXUI-8000
|
|
11608
|
+
var userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
11609
|
+
// Get acls that intersects from acl roles and user roles
|
|
11610
|
+
var acls = this.caseField.acls.filter(function (acl) { return userInfo.roles.includes(acl.role); });
|
|
11611
|
+
// As there can be more than one intersecting role, if any acls are update: true
|
|
11612
|
+
this.allowMoving = acls.some(function (acl) { return acl.update; });
|
|
11606
11613
|
};
|
|
11607
11614
|
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
11608
11615
|
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -11650,7 +11657,7 @@
|
|
|
11650
11657
|
return CaseFileViewFieldComponent;
|
|
11651
11658
|
}());
|
|
11652
11659
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
11653
|
-
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)); };
|
|
11660
|
+
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), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
11654
11661
|
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) {
|
|
11655
11662
|
if (rf & 1) {
|
|
11656
11663
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
@@ -11670,92 +11677,7 @@
|
|
|
11670
11677
|
templateUrl: './case-file-view-field.component.html',
|
|
11671
11678
|
styleUrls: ['./case-file-view-field.component.scss'],
|
|
11672
11679
|
}]
|
|
11673
|
-
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
|
|
11674
|
-
})();
|
|
11675
|
-
|
|
11676
|
-
function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
|
|
11677
|
-
if (rf & 1) {
|
|
11678
|
-
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
11679
|
-
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
11680
|
-
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11681
|
-
i0__namespace.ɵɵelementEnd();
|
|
11682
|
-
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
11683
|
-
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11684
|
-
i0__namespace.ɵɵelementEnd();
|
|
11685
|
-
i0__namespace.ɵɵelementEnd();
|
|
11686
|
-
}
|
|
11687
|
-
}
|
|
11688
|
-
function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
11689
|
-
if (rf & 1) {
|
|
11690
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
11691
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
|
|
11692
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
11693
|
-
}
|
|
11694
|
-
if (rf & 2) {
|
|
11695
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11696
|
-
i0__namespace.ɵɵadvance(1);
|
|
11697
|
-
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");
|
|
11698
|
-
}
|
|
11699
|
-
}
|
|
11700
|
-
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
11701
|
-
if (rf & 1) {
|
|
11702
|
-
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11703
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
11704
|
-
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
11705
|
-
i0__namespace.ɵɵtext(2, "Case file");
|
|
11706
|
-
i0__namespace.ɵɵelementEnd();
|
|
11707
|
-
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
11708
|
-
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
11709
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
11710
|
-
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
11711
|
-
i0__namespace.ɵɵelementEnd();
|
|
11712
|
-
i0__namespace.ɵɵelementEnd();
|
|
11713
|
-
i0__namespace.ɵɵelement(6, "div", 9);
|
|
11714
|
-
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
11715
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
11716
|
-
i0__namespace.ɵɵelementEnd();
|
|
11717
|
-
i0__namespace.ɵɵelementEnd();
|
|
11718
|
-
i0__namespace.ɵɵelementEnd();
|
|
11719
|
-
}
|
|
11720
|
-
if (rf & 2) {
|
|
11721
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
11722
|
-
i0__namespace.ɵɵadvance(5);
|
|
11723
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
11724
|
-
i0__namespace.ɵɵadvance(3);
|
|
11725
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
11726
|
-
}
|
|
11727
|
-
}
|
|
11728
|
-
var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
|
|
11729
|
-
__extends(CaseFileViewFieldReadComponent, _super);
|
|
11730
|
-
function CaseFileViewFieldReadComponent() {
|
|
11731
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
11732
|
-
_this.allowMoving = false;
|
|
11733
|
-
return _this;
|
|
11734
|
-
}
|
|
11735
|
-
return CaseFileViewFieldReadComponent;
|
|
11736
|
-
}(CaseFileViewFieldComponent));
|
|
11737
|
-
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
11738
|
-
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) {
|
|
11739
|
-
if (rf & 1) {
|
|
11740
|
-
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
11741
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
11742
|
-
}
|
|
11743
|
-
if (rf & 2) {
|
|
11744
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11745
|
-
i0__namespace.ɵɵadvance(1);
|
|
11746
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
11747
|
-
}
|
|
11748
|
-
}, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
11749
|
-
var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
|
|
11750
|
-
(function () {
|
|
11751
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
|
|
11752
|
-
type: i0.Component,
|
|
11753
|
-
args: [{
|
|
11754
|
-
selector: 'ccd-case-file-view-field',
|
|
11755
|
-
templateUrl: './case-file-view-field.component.html',
|
|
11756
|
-
styleUrls: ['./case-file-view-field.component.scss'],
|
|
11757
|
-
}]
|
|
11758
|
-
}], null, null);
|
|
11680
|
+
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
|
|
11759
11681
|
})();
|
|
11760
11682
|
|
|
11761
11683
|
exports.AddCommentsErrorMessage = void 0;
|
|
@@ -20512,7 +20434,7 @@
|
|
|
20512
20434
|
function PaletteService() {
|
|
20513
20435
|
var _b;
|
|
20514
20436
|
this.componentLauncherRegistry = (_b = {},
|
|
20515
|
-
_b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent,
|
|
20437
|
+
_b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
20516
20438
|
_b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
|
|
20517
20439
|
_b);
|
|
20518
20440
|
}
|
|
@@ -26220,7 +26142,6 @@
|
|
|
26220
26142
|
WriteCollectionFieldComponent,
|
|
26221
26143
|
// ComponentLauncher web components
|
|
26222
26144
|
CaseFileViewFieldComponent,
|
|
26223
|
-
CaseFileViewFieldReadComponent,
|
|
26224
26145
|
CaseFileViewFolderComponent,
|
|
26225
26146
|
CaseFileViewFolderSortComponent,
|
|
26226
26147
|
CaseFileViewOverlayMenuComponent,
|
|
@@ -26389,7 +26310,6 @@
|
|
|
26389
26310
|
WriteCollectionFieldComponent,
|
|
26390
26311
|
// ComponentLauncher web components
|
|
26391
26312
|
CaseFileViewFieldComponent,
|
|
26392
|
-
CaseFileViewFieldReadComponent,
|
|
26393
26313
|
CaseFileViewFolderComponent,
|
|
26394
26314
|
CaseFileViewFolderSortComponent,
|
|
26395
26315
|
CaseFileViewOverlayMenuComponent,
|
|
@@ -26516,7 +26436,6 @@
|
|
|
26516
26436
|
WriteCollectionFieldComponent,
|
|
26517
26437
|
// ComponentLauncher web components
|
|
26518
26438
|
CaseFileViewFieldComponent,
|
|
26519
|
-
CaseFileViewFieldReadComponent,
|
|
26520
26439
|
CaseFileViewFolderComponent,
|
|
26521
26440
|
CaseFileViewFolderSortComponent,
|
|
26522
26441
|
CaseFileViewOverlayMenuComponent,
|
|
@@ -26656,7 +26575,6 @@
|
|
|
26656
26575
|
i0__namespace.ɵɵsetComponentScope(
|
|
26657
26576
|
// ComponentLauncher web components
|
|
26658
26577
|
CaseFileViewFieldComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
26659
|
-
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
26660
26578
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i2__namespace.NgIf, i2__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26661
26579
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i2__namespace.NgIf, i2__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
26662
26580
|
i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i2__namespace.NgIf, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace.NgClass, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, i2__namespace$1.FormArrayName, i2__namespace.NgForOf, i2__namespace$1.FormGroupName, i2__namespace$1.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
@@ -37055,7 +36973,6 @@
|
|
|
37055
36973
|
exports.CaseField = CaseField;
|
|
37056
36974
|
exports.CaseFieldService = CaseFieldService;
|
|
37057
36975
|
exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
|
|
37058
|
-
exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
|
|
37059
36976
|
exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
|
|
37060
36977
|
exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
|
|
37061
36978
|
exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
|