@regulaforensics/ionic-native-document-reader 7.1.0 → 7.2.0
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/example/package.json +3 -3
- package/example/src/app/home/home.page.ts +6 -6
- package/index.d.ts +579 -267
- package/index.js +732 -230
- package/ngx/index.d.ts +579 -267
- package/ngx/index.js +733 -231
- package/package.json +1 -1
- package/reactExample/package.json +3 -3
- package/reactExample/src/pages/Home.tsx +6 -6
package/example/package.json
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"private": true,
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "7.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "7.
|
|
18
|
-
"@regulaforensics/ionic-native-document-reader": "7.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "7.2.0",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "7.2.0",
|
|
18
|
+
"@regulaforensics/ionic-native-document-reader": "7.2.0",
|
|
19
19
|
"cordova-plugin-camera": "7.0.0",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/core": "6.6.0",
|
|
@@ -2,7 +2,7 @@ import { Component, ViewChild, ElementRef } from '@angular/core'
|
|
|
2
2
|
import { File } from '@awesome-cordova-plugins/file'
|
|
3
3
|
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera/ngx'
|
|
4
4
|
import { Platform } from '@ionic/angular'
|
|
5
|
-
import { DocumentReader, DocumentReaderScenario, Enum, DocumentReaderCompletion, DocumentReaderResults, DocumentReaderNotification, ScannerConfig, RecognizeConfig, DocReaderConfig } from '@regulaforensics/ionic-native-document-reader/ngx'
|
|
5
|
+
import { DocumentReader, DocumentReaderScenario, Enum, DocumentReaderCompletion, DocumentReaderResults, DocumentReaderNotification, ScannerConfig, RecognizeConfig, DocReaderConfig, Functionality } from '@regulaforensics/ionic-native-document-reader/ngx'
|
|
6
6
|
|
|
7
7
|
var selectedScenario = "Mrz"
|
|
8
8
|
var doRfid: boolean = false
|
|
@@ -43,9 +43,9 @@ export class HomePage {
|
|
|
43
43
|
app.status.nativeElement.innerHTML = "Ready"
|
|
44
44
|
app.status.nativeElement.style.backgroundColor = "green"
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
var functionality = new Functionality()
|
|
47
|
+
functionality.showCaptureButton = true
|
|
48
|
+
DocumentReader.setFunctionality(functionality)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
var app = this
|
|
@@ -107,7 +107,7 @@ export class HomePage {
|
|
|
107
107
|
hideRfidUI()
|
|
108
108
|
displayResults(completion.results)
|
|
109
109
|
}
|
|
110
|
-
} else if (actionSuccess(completion.action))
|
|
110
|
+
} else if (actionSuccess(completion.action) || actionError(completion.action))
|
|
111
111
|
handleResults(completion.results)
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -213,7 +213,7 @@ export class HomePage {
|
|
|
213
213
|
|
|
214
214
|
function handleResults(results: DocumentReaderResults) {
|
|
215
215
|
clearResults()
|
|
216
|
-
if (doRfid && !isReadingRfid && results != null) {
|
|
216
|
+
if (doRfid && !isReadingRfid && results != null && results.chipPage != 0) {
|
|
217
217
|
// customRFID()
|
|
218
218
|
usualRFID()
|
|
219
219
|
} else {
|