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

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