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.
- package/esm2020/core/components/scan/scan.component.mjs +6 -4
- package/esm2020/dialogs/components/scan-profile/scan-profile.component.mjs +4 -1
- package/esm2020/providers/auth.provider.mjs +2 -3
- package/fesm2015/ngx-scandoc.mjs +10 -5
- package/fesm2015/ngx-scandoc.mjs.map +1 -1
- package/fesm2020/ngx-scandoc.mjs +9 -5
- package/fesm2020/ngx-scandoc.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ngx-scandoc.mjs
CHANGED
|
@@ -1832,7 +1832,7 @@ class AuthProvider {
|
|
|
1832
1832
|
constructor(http, config) {
|
|
1833
1833
|
this.http = http;
|
|
1834
1834
|
this.config = config;
|
|
1835
|
-
this.token = '
|
|
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: '
|
|
2859
|
-
|
|
2860
|
-
|
|
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;
|