ngx-scandoc 1.1.3 → 1.2.1

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.
@@ -1832,7 +1832,7 @@ class AuthProvider {
1832
1832
  constructor(http, config) {
1833
1833
  this.http = http;
1834
1834
  this.config = config;
1835
- this.token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJDbGllbnQiOiJQcm90ZWwiLCJTdWJDbGllbnQiOiJIMSIsIklzc3VlVGltZSI6IjA5LjAzLjIwMjIsIDA5OjQ3OjAwIn0.u_FP16TGuZ4LtGbsIxBjy8vCJJuTyBbRs2gPPZU2vgaeSvLdfi1iEVcRjRVh873hkluOtotUGmw0v3Jdh-cHgQ';
1835
+ this.token = '';
1836
1836
  this.tokenTimestamps = {
1837
1837
  exp: 0,
1838
1838
  iat: 0,
@@ -1840,7 +1840,6 @@ class AuthProvider {
1840
1840
  }
1841
1841
  setConfig() { }
1842
1842
  get tokenExpired() {
1843
- return false;
1844
1843
  if (this.token == '' || this.tokenTimestamps.exp === 0) {
1845
1844
  console.log('EXPIRED');
1846
1845
  return true;
@@ -2855,9 +2854,11 @@ class ScanComponent extends BaseComponent {
2855
2854
  console.log(this.logData);
2856
2855
  }
2857
2856
  this.actions.emit({
2858
- type: 'scanDataUse',
2859
- model: this.model,
2860
- images: this.images,
2857
+ type: 'scanDataClose',
2858
+ data: {
2859
+ model: this.model,
2860
+ images: this.images,
2861
+ },
2861
2862
  });
2862
2863
  // this.dialogRef?.close({
2863
2864
  // model: this.model,
@@ -3962,6 +3963,9 @@ class ScanProfileComponent extends BaseComponent {
3962
3963
  actions(event) {
3963
3964
  console.log(event);
3964
3965
  switch (event.type) {
3966
+ case 'scanDataClose':
3967
+ this.dialogRef?.close(event.data);
3968
+ break;
3965
3969
  case 'turnDocumentOver':
3966
3970
  this.dialogs.turnDocument(event.side).subscribe(() => {
3967
3971
  this.showDialog = false;