@hmcts/ccd-case-ui-toolkit 6.19.12-exui-997 → 6.19.12-exui-997-rc2

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.
@@ -14696,15 +14696,6 @@
14696
14696
  _this.valid = true;
14697
14697
  return _this;
14698
14698
  }
14699
- WriteDocumentFieldComponent.prototype.clickout = function (event) {
14700
- // Capturing the event of the associated ElementRef <input type="file" #fileInpu
14701
- if (this.fileInput.nativeElement.contains(event.target)) {
14702
- this.clickInsideTheDocument = true;
14703
- }
14704
- else {
14705
- this.fileValidations();
14706
- }
14707
- };
14708
14699
  WriteDocumentFieldComponent.prototype.ngOnInit = function () {
14709
14700
  this.secureModeOn = this.appConfig.getDocumentSecureMode();
14710
14701
  if (this.secureModeOn) {
@@ -14966,10 +14957,6 @@
14966
14957
  var _t = void 0;
14967
14958
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
14968
14959
  }
14969
- }, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) {
14970
- if (rf & 1) {
14971
- i0__namespace.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0__namespace.ɵɵresolveDocument);
14972
- }
14973
14960
  }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) {
14974
14961
  if (rf & 1) {
14975
14962
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -15038,9 +15025,6 @@
15038
15025
  }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
15039
15026
  type: i0.ViewChild,
15040
15027
  args: ['fileInput', { static: false }]
15041
- }], clickout: [{
15042
- type: i0.HostListener,
15043
- args: ['document:click', ['$event']]
15044
15028
  }] });
15045
15029
  })();
15046
15030
 
@@ -26561,7 +26545,7 @@
26561
26545
  /**
26562
26546
  * Filter out fields having no data to display and harmonise field values coming parent's value.
26563
26547
  */
26564
- ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix, metadataFieldsObject) {
26548
+ ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix) {
26565
26549
  if (setupHidden === void 0) { setupHidden = false; }
26566
26550
  if (!complexField || !complexField.field_type) {
26567
26551
  return [];
@@ -26571,8 +26555,7 @@
26571
26555
  var checkConditionalShowAgainst = values;
26572
26556
  var formGroupAvailable = false;
26573
26557
  if (formGroup) {
26574
- checkConditionalShowAgainst = metadataFieldsObject ?
26575
- Object.assign(formGroup.parent.getRawValue().data, metadataFieldsObject) : formGroup.parent.getRawValue().data;
26558
+ checkConditionalShowAgainst = formGroup.value ? formGroup.parent.getRawValue().data : formGroup;
26576
26559
  formGroupAvailable = true;
26577
26560
  if (idPrefix !== undefined) {
26578
26561
  if (idPrefix !== '') {
@@ -27576,7 +27559,7 @@
27576
27559
  i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
27577
27560
  }
27578
27561
  }
27579
- var _c0$f = function (a0, a4, a7) { return [a0, false, undefined, true, a4, undefined, undefined, a7]; };
27562
+ var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
27580
27563
  function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template(rf, ctx) {
27581
27564
  if (rf & 1) {
27582
27565
  i0__namespace.ɵɵelementContainerStart(0);
@@ -27590,13 +27573,13 @@
27590
27573
  var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
27591
27574
  var ctx_r14 = i0__namespace.ɵɵnextContext(3);
27592
27575
  i0__namespace.ɵɵadvance(1);
27593
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction3(15, _c0$f, i0__namespace.ɵɵpipeBind2(4, 12, page_r13, ctx_r14.editForm), ctx_r14.editForm.controls["data"], ctx_r14.metadataFieldsObject))));
27576
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.allFieldsValues))));
27594
27577
  }
27595
27578
  }
27596
27579
  function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template(rf, ctx) {
27597
27580
  if (rf & 1) {
27598
27581
  i0__namespace.ɵɵelementContainerStart(0);
27599
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template, 5, 19, "ng-container", 0);
27582
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template, 5, 15, "ng-container", 0);
27600
27583
  i0__namespace.ɵɵelementContainerEnd();
27601
27584
  }
27602
27585
  if (rf & 2) {
@@ -27856,6 +27839,7 @@
27856
27839
  var _d;
27857
27840
  return Object.assign(o, (_d = {}, _d[key.id] = key.value, _d));
27858
27841
  }, {});
27842
+ this.allFieldsValues = Object.assign(this.metadataFieldsObject, this.editForm.getRawValue().data);
27859
27843
  // Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
27860
27844
  // a FlagLauncher field in the event trigger
27861
27845
  this.caseEdit.isCaseFlagSubmission =