ngx-scandoc 1.1.2 → 1.1.4

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.
@@ -2854,10 +2854,17 @@ class ScanComponent extends BaseComponent {
2854
2854
  this.__subs(this.scanProvider.sendLog(this.logData)).subscribe();
2855
2855
  console.log(this.logData);
2856
2856
  }
2857
- this.dialogRef?.close({
2858
- model: this.model,
2859
- images: this.images,
2857
+ this.actions.emit({
2858
+ type: 'scanDataClose',
2859
+ data: {
2860
+ model: this.model,
2861
+ images: this.images,
2862
+ },
2860
2863
  });
2864
+ // this.dialogRef?.close({
2865
+ // model: this.model,
2866
+ // images: this.images,
2867
+ // });
2861
2868
  }
2862
2869
  selfie() {
2863
2870
  this.dialogs
@@ -3957,6 +3964,9 @@ class ScanProfileComponent extends BaseComponent {
3957
3964
  actions(event) {
3958
3965
  console.log(event);
3959
3966
  switch (event.type) {
3967
+ case 'scanDataClose':
3968
+ this.dialogRef?.close(event.data);
3969
+ break;
3960
3970
  case 'turnDocumentOver':
3961
3971
  this.dialogs.turnDocument(event.side).subscribe(() => {
3962
3972
  this.showDialog = false;