@hmcts/ccd-case-ui-toolkit 5.0.46-case-file-view-styling-fixes → 5.0.46-fix-case-link

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.
@@ -17853,6 +17853,8 @@
17853
17853
  return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
17854
17854
  case 'JudicialUser':
17855
17855
  return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
17856
+ case 'CaseLink':
17857
+ return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
17856
17858
  default:
17857
17859
  return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
17858
17860
  }
@@ -18178,16 +18180,16 @@
18178
18180
  }] });
18179
18181
  })();
18180
18182
 
18181
- function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
18183
+ function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
18182
18184
  if (rf & 1) {
18183
18185
  i0__namespace.ɵɵelementContainer(0);
18184
18186
  }
18185
18187
  }
18186
18188
  var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
18187
- function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
18189
+ function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
18188
18190
  if (rf & 1) {
18189
18191
  i0__namespace.ɵɵelementContainerStart(0);
18190
- i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
18192
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18191
18193
  i0__namespace.ɵɵelementContainerEnd();
18192
18194
  }
18193
18195
  if (rf & 2) {
@@ -18230,7 +18232,7 @@
18230
18232
  i0__namespace.ɵɵelement(3, "img", 12);
18231
18233
  i0__namespace.ɵɵtext(4);
18232
18234
  i0__namespace.ɵɵelementEnd();
18233
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
18235
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
18234
18236
  i0__namespace.ɵɵelementEnd();
18235
18237
  }
18236
18238
  if (rf & 2) {
@@ -18326,47 +18328,46 @@
18326
18328
  return CaseFileViewFolderSelectorComponent;
18327
18329
  }());
18328
18330
  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)); };
18329
- 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) {
18331
+ 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"], [1, "close", 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) {
18330
18332
  if (rf & 1) {
18331
- i0__namespace.ɵɵelementStart(0, "div", 0);
18332
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
18333
+ i0__namespace.ɵɵelementStart(0, "h2", 0);
18334
+ i0__namespace.ɵɵtext(1, "Move File");
18333
18335
  i0__namespace.ɵɵelementEnd();
18334
- i0__namespace.ɵɵelementStart(1, "h2", 1);
18335
- i0__namespace.ɵɵtext(2, "Move File");
18336
+ i0__namespace.ɵɵelementStart(2, "p");
18337
+ i0__namespace.ɵɵtext(3);
18336
18338
  i0__namespace.ɵɵelementEnd();
18337
- i0__namespace.ɵɵelementStart(3, "p");
18338
- i0__namespace.ɵɵtext(4);
18339
+ i0__namespace.ɵɵelementStart(4, "div", 1);
18340
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
18339
18341
  i0__namespace.ɵɵelementEnd();
18340
- i0__namespace.ɵɵelementStart(5, "div", 2);
18341
- i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
18342
+ i0__namespace.ɵɵelementStart(6, "div", 3);
18343
+ i0__namespace.ɵɵelementStart(7, "button", 4);
18344
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
18345
+ i0__namespace.ɵɵtext(8, "Save");
18342
18346
  i0__namespace.ɵɵelementEnd();
18343
- i0__namespace.ɵɵelementStart(7, "div", 4);
18344
- i0__namespace.ɵɵelementStart(8, "button", 5);
18345
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
18346
- i0__namespace.ɵɵtext(9, "Save");
18347
+ i0__namespace.ɵɵelementStart(9, "a", 5);
18348
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
18349
+ i0__namespace.ɵɵtext(10, "Cancel");
18347
18350
  i0__namespace.ɵɵelementEnd();
18348
- i0__namespace.ɵɵelementStart(10, "a", 6);
18349
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
18350
- i0__namespace.ɵɵtext(11, "Cancel");
18351
18351
  i0__namespace.ɵɵelementEnd();
18352
+ i0__namespace.ɵɵelementStart(11, "div", 6);
18353
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
18352
18354
  i0__namespace.ɵɵelementEnd();
18353
18355
  i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
18354
18356
  }
18355
18357
  if (rf & 2) {
18356
- i0__namespace.ɵɵadvance(4);
18358
+ i0__namespace.ɵɵadvance(3);
18357
18359
  i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
18358
18360
  i0__namespace.ɵɵadvance(2);
18359
18361
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18360
18362
  }
18361
- }, 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 });
18363
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
18362
18364
  (function () {
18363
18365
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18364
18366
  type: i0.Component,
18365
18367
  args: [{
18366
18368
  selector: 'xui-case-file-view-folder-selector',
18367
18369
  templateUrl: './case-file-view-folder-selector.component.html',
18368
- styleUrls: ['./case-file-view-folder-selector.component.scss'],
18369
- encapsulation: i0.ViewEncapsulation.None
18370
+ styleUrls: ['./case-file-view-folder-selector.component.scss']
18370
18371
  }]
18371
18372
  }], function () {
18372
18373
  return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
@@ -18918,7 +18919,7 @@
18918
18919
  return Object.assign(documentTreeNode, node);
18919
18920
  }
18920
18921
  var filteredData = this.documentTreeData;
18921
- if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
18922
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
18922
18923
  filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
18923
18924
  if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
18924
18925
  return true;
@@ -19000,6 +19001,7 @@
19000
19001
  CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
19001
19002
  var _this = this;
19002
19003
  var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
19004
+ width: '570px',
19003
19005
  data: { categories: this.categories, document: node }
19004
19006
  });
19005
19007
  dialogRef.afterClosed().subscribe(function (newCatId) {
@@ -19025,7 +19027,7 @@
19025
19027
  }());
19026
19028
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
19027
19029
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
19028
- CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
19030
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
19029
19031
  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)); };
19030
19032
  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) {
19031
19033
  if (rf & 1) {
@@ -30060,7 +30062,7 @@
30060
30062
  if (rf & 1) {
30061
30063
  i0__namespace.ɵɵelementStart(0, "tr");
30062
30064
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 33);
30063
- i0__namespace.ɵɵelementStart(2, "th", 34);
30065
+ i0__namespace.ɵɵelementStart(2, "td", 34);
30064
30066
  i0__namespace.ɵɵelementStart(3, "span", 35);
30065
30067
  i0__namespace.ɵɵelement(4, "ccd-field-read", 36);
30066
30068
  i0__namespace.ɵɵelementEnd();