@hmcts/ccd-case-ui-toolkit 5.0.40-case-edit-module-for-integration → 5.0.41-case-link-integration-fixes

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.
@@ -3036,6 +3036,14 @@
3036
3036
  if (!field || !field.field_type || !field.field_type.type) {
3037
3037
  return false;
3038
3038
  }
3039
+ // Case link tab spacing alignment fix
3040
+ // This Pipe needs to be re-visited
3041
+ // to make it more generic to support and fix alignments issues for multiple tabs
3042
+ if (field.field_type.collection_field_type &&
3043
+ field.field_type.collection_field_type.id &&
3044
+ field.field_type.collection_field_type.id === IsCompoundPipe.CASE_LINK_FIELD_TYPE) {
3045
+ return true;
3046
+ }
3039
3047
  if (IsCompoundPipe.COMPOUND_TYPES.indexOf(field.field_type.type) !== -1) {
3040
3048
  if (IsCompoundPipe.EXCLUDE.indexOf(field.field_type.id) !== -1) {
3041
3049
  return false;
@@ -3046,6 +3054,7 @@
3046
3054
  };
3047
3055
  return IsCompoundPipe;
3048
3056
  }());
3057
+ IsCompoundPipe.CASE_LINK_FIELD_TYPE = 'CaseLink';
3049
3058
  IsCompoundPipe.COMPOUND_TYPES = [
3050
3059
  'Complex',
3051
3060
  'Label',
@@ -21342,10 +21351,10 @@
21342
21351
  this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
21343
21352
  }
21344
21353
  LinkCasesComponent.prototype.ngOnInit = function () {
21345
- this.initForm();
21346
21354
  this.caseId = this.linkedCasesService.caseId;
21347
21355
  this.caseName = this.linkedCasesService.caseName;
21348
21356
  this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
21357
+ this.initForm();
21349
21358
  if (this.linkedCasesService.editMode) {
21350
21359
  // this may have includes the currently added one but yet to be submitted.
21351
21360
  this.selectedCases = this.linkedCasesService.linkedCases;
@@ -22594,6 +22603,7 @@
22594
22603
  }
22595
22604
  WriteLinkedCasesComponent.prototype.ngOnInit = function () {
22596
22605
  var _this = this;
22606
+ this.caseEditDataService.clearFormValidationErrors();
22597
22607
  this.linkedCasesService.caseId = this.caseEdit.caseDetails.case_id;
22598
22608
  this.linkedCasesService.caseName = this.linkedCasesService.getCaseName(this.caseEdit.caseDetails);
22599
22609
  this.linkedCasesService.caseDetails = this.caseEdit.caseDetails;