@hmcts/ccd-case-ui-toolkit 6.13.10-eui-8000 → 6.13.10-merge-3.5-improvements

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.
@@ -11516,12 +11516,10 @@
11516
11516
  var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
11517
11517
  __extends(CaseFileViewFieldReadComponent, _super);
11518
11518
  function CaseFileViewFieldReadComponent() {
11519
- return _super !== null && _super.apply(this, arguments) || this;
11519
+ var _this = _super.apply(this, __spread(arguments)) || this;
11520
+ _this.allowMoving = false;
11521
+ return _this;
11520
11522
  }
11521
- CaseFileViewFieldReadComponent.prototype.ngOnInit = function () {
11522
- _super.prototype.ngOnInit.call(this);
11523
- this.allowMoving = this.caseField.acls.some(function (acl) { return acl.update; });
11524
- };
11525
11523
  return CaseFileViewFieldReadComponent;
11526
11524
  }(CaseFileViewFieldComponent));
11527
11525
  CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
@@ -20413,7 +20411,7 @@
20413
20411
  i0__namespace.ɵɵadvance(2);
20414
20412
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
20415
20413
  }
20416
- }, 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,.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 });
20414
+ }, 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 });
20417
20415
  (function () {
20418
20416
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
20419
20417
  type: i0.Component,
@@ -25011,23 +25009,26 @@
25011
25009
  || !ReadFieldsFilterPipe.isEmpty(value[field.id]);
25012
25010
  };
25013
25011
  ReadFieldsFilterPipe.getValue = function (field, values, index) {
25014
- var value;
25015
- if (index >= 0) {
25016
- value = values[index].value[field.id];
25017
- }
25018
- else {
25019
- value = values[field.id];
25012
+ if (ReadFieldsFilterPipe.isEmpty(field.value)) {
25013
+ var value = void 0;
25014
+ if (index >= 0) {
25015
+ value = values[index].value[field.id];
25016
+ }
25017
+ else {
25018
+ value = values[field.id];
25019
+ }
25020
+ return value;
25020
25021
  }
25021
- return ReadFieldsFilterPipe.isEmpty(field.value) ? value : field.value;
25022
+ return field.value;
25022
25023
  };
25023
- ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvaliable, fieldId) {
25024
+ ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
25024
25025
  if (field.display_context === 'HIDDEN') {
25025
25026
  field.hidden = true;
25026
25027
  }
25027
25028
  else if (field.show_condition) {
25028
25029
  var cond = void 0;
25029
- if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !formGroupAvaliable && !!Object.keys(formValue).length) {
25030
- var search = fieldId + '.';
25030
+ if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
25031
+ var search = fieldId + ".";
25031
25032
  var searchRegExp = new RegExp(search, 'g');
25032
25033
  var replaceWith = '';
25033
25034
  cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
@@ -25490,7 +25491,6 @@
25490
25491
  FileUploadStateService,
25491
25492
  FileUploadProgressGuard,
25492
25493
  WindowService,
25493
- LinkedCasesService,
25494
25494
  CommonDataService,
25495
25495
  JurisdictionService,
25496
25496
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
@@ -25818,7 +25818,6 @@
25818
25818
  FileUploadStateService,
25819
25819
  FileUploadProgressGuard,
25820
25820
  WindowService,
25821
- LinkedCasesService,
25822
25821
  CommonDataService,
25823
25822
  JurisdictionService,
25824
25823
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }