ngx-scandoc 1.2.4 → 1.3.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/core/components/components.module.d.ts +10 -7
- package/core/components/manual-scan/manual-scan.component.d.ts +61 -0
- package/core/components/scan/scan.component.d.ts +21 -24
- package/core/components/scan-results/scan-results.component.d.ts +11 -4
- package/core/components/webcam/util/webcam.util.d.ts +1 -1
- package/core/components/webcam/webcam/webcam.component.d.ts +26 -180
- package/core/components/webcam/webcam.module.d.ts +2 -0
- package/core/interfaces/config.d.ts +4 -0
- package/dialogs/components/prompt-manual/prompt-manual.component.d.ts +12 -0
- package/dialogs/components/scan-profile/scan-profile.component.d.ts +6 -1
- package/dialogs/components/scan-selfie/scan-selfie.component.d.ts +15 -61
- package/dialogs/dialogs.core.provider.d.ts +1 -0
- package/dialogs/dialogs.module.d.ts +12 -9
- package/esm2020/core/components/camera-switch/camera-switch.component.mjs +6 -4
- package/esm2020/core/components/components.module.mjs +32 -10
- package/esm2020/core/components/manual-scan/manual-scan.component.mjs +290 -0
- package/esm2020/core/components/scan/scan.component.mjs +290 -181
- package/esm2020/core/components/scan-results/scan-results.component.mjs +38 -12
- package/esm2020/core/components/webcam/util/webcam.util.mjs +7 -5
- package/esm2020/core/components/webcam/webcam/webcam.component.mjs +296 -772
- package/esm2020/core/components/webcam/webcam.module.mjs +8 -1
- package/esm2020/core/interfaces/config.mjs +1 -1
- package/esm2020/dialogs/components/confirm/confirm.component.mjs +3 -3
- package/esm2020/dialogs/components/prompt-manual/prompt-manual.component.mjs +30 -0
- package/esm2020/dialogs/components/scan-profile/scan-profile.component.mjs +36 -17
- package/esm2020/dialogs/components/scan-selfie/scan-selfie.component.mjs +41 -336
- package/esm2020/dialogs/dialogs.core.provider.mjs +12 -1
- package/esm2020/dialogs/dialogs.module.mjs +24 -11
- package/esm2020/forms/types/avatar.type.mjs +26 -21
- package/esm2020/forms/types/profile.image.type.mjs +51 -41
- package/esm2020/forms/types/title.type.mjs +7 -35
- package/esm2020/lib/ngx-scandoc.module.mjs +8 -6
- package/esm2020/providers/auth.provider.mjs +15 -2
- package/esm2020/providers/camera.provider.mjs +37 -4
- package/esm2020/providers/interceptor.provider.mjs +2 -2
- package/esm2020/providers/layout.provider.mjs +7 -5
- package/esm2020/providers/scan.form.mjs +173 -215
- package/esm2020/providers/scan.provider.mjs +264 -7
- package/esm2020/providers/translation.provider.mjs +18 -23
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ngx-scandoc.mjs +1722 -1988
- package/fesm2015/ngx-scandoc.mjs.map +1 -1
- package/fesm2020/ngx-scandoc.mjs +1719 -1982
- package/fesm2020/ngx-scandoc.mjs.map +1 -1
- package/forms/types/avatar.type.d.ts +1 -0
- package/forms/types/profile.image.type.d.ts +6 -1
- package/lib/ngx-scandoc.module.d.ts +2 -3
- package/package.json +1 -1
- package/providers/camera.provider.d.ts +17 -1
- package/providers/layout.provider.d.ts +3 -1
- package/providers/scan.form.d.ts +2 -0
- package/providers/scan.provider.d.ts +6 -1
- package/public-api.d.ts +2 -0
- package/src/assets/i18n/en.json +14 -3
|
@@ -8,6 +8,7 @@ export declare class AvatarTypeComponent extends FieldType<any> implements After
|
|
|
8
8
|
name: any;
|
|
9
9
|
constructor(cd: ChangeDetectorRef);
|
|
10
10
|
ngOnChange(): void;
|
|
11
|
+
selfie(): void;
|
|
11
12
|
ngAfterViewInit(): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarTypeComponent, never>;
|
|
13
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarTypeComponent, "app-formly-avatar-type", never, {}, {}, never, never, false>;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/material';
|
|
3
|
+
import { NgxScandocCameraProvider } from '../../providers/camera.provider';
|
|
4
|
+
import { ScanProvider } from '../../providers/scan.provider';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class ProfileImageTypeComponent extends FieldType<any> implements AfterViewInit {
|
|
5
7
|
private cd;
|
|
8
|
+
private cameraProvider;
|
|
9
|
+
scanProvider: ScanProvider;
|
|
6
10
|
name: any;
|
|
7
11
|
width: any;
|
|
8
12
|
padding: any;
|
|
9
|
-
constructor(cd: ChangeDetectorRef);
|
|
13
|
+
constructor(cd: ChangeDetectorRef, cameraProvider: NgxScandocCameraProvider, scanProvider: ScanProvider);
|
|
14
|
+
selfie(): void;
|
|
10
15
|
ngOnChange(): void;
|
|
11
16
|
ngAfterViewInit(): void;
|
|
12
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileImageTypeComponent, never>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { ScanDataConfig } from '../core/interfaces/config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../
|
|
5
|
-
import * as i2 from "../dialogs/dialogs.module";
|
|
4
|
+
import * as i1 from "../dialogs/dialogs.module";
|
|
6
5
|
export declare class NgxScandocModule {
|
|
7
6
|
static forRoot(config: ScanDataConfig): ModuleWithProviders<NgxScandocModule>;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxScandocModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxScandocModule, never, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxScandocModule, never, [typeof i1.DialogsModule], [typeof i1.DialogsModule]>;
|
|
10
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxScandocModule>;
|
|
11
10
|
}
|
package/package.json
CHANGED
|
@@ -3,15 +3,31 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class NgxScandocCameraProvider {
|
|
4
4
|
mediaDevices: any;
|
|
5
5
|
deviceId: any;
|
|
6
|
+
selfie$: Subject<unknown>;
|
|
7
|
+
rectPosition: {
|
|
8
|
+
l: number;
|
|
9
|
+
t: number;
|
|
10
|
+
h: number;
|
|
11
|
+
w: number;
|
|
12
|
+
_w: number;
|
|
13
|
+
_h: number;
|
|
14
|
+
};
|
|
6
15
|
switchCamera: Subject<unknown>;
|
|
16
|
+
$showSwitchSelfie: Subject<unknown>;
|
|
7
17
|
cameraReady: boolean;
|
|
18
|
+
$showSwitch: Subject<unknown>;
|
|
8
19
|
cameraSwitched: Subject<unknown>;
|
|
20
|
+
devices: Subject<unknown>;
|
|
9
21
|
multipleWebcamsAvailable: boolean;
|
|
22
|
+
id: number;
|
|
10
23
|
constructor();
|
|
24
|
+
get hintPosition(): number;
|
|
25
|
+
getDevices(): import("rxjs").Observable<any>;
|
|
11
26
|
setup(): void;
|
|
27
|
+
setDefault(): void;
|
|
12
28
|
selectCamera(event: any): void;
|
|
13
29
|
cameraWasSwitched(deviceId: string): void;
|
|
14
|
-
get
|
|
30
|
+
get webcamObservable(): import("rxjs").Observable<unknown>;
|
|
15
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxScandocCameraProvider, never>;
|
|
16
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgxScandocCameraProvider>;
|
|
17
33
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { Platform } from '@angular/cdk/platform';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LayoutProvider {
|
|
4
5
|
private breakpointObserver;
|
|
6
|
+
private platform;
|
|
5
7
|
isMobile: boolean;
|
|
6
8
|
readonly breakpoint$: import("rxjs").Observable<import("@angular/cdk/layout").BreakpointState>;
|
|
7
|
-
constructor(breakpointObserver: BreakpointObserver);
|
|
9
|
+
constructor(breakpointObserver: BreakpointObserver, platform: Platform);
|
|
8
10
|
init(): void;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutProvider, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutProvider>;
|
package/providers/scan.form.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import { ScanProvider } from './scan.provider';
|
|
3
4
|
import { NgxScanDocTranslationProvider } from './translation.provider';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ScanFieldsProvider {
|
|
6
7
|
private translate;
|
|
7
8
|
private provider;
|
|
9
|
+
selfie$: Subject<unknown>;
|
|
8
10
|
constructor(translate: NgxScanDocTranslationProvider, provider: ScanProvider);
|
|
9
11
|
update(): FormlyFieldConfig[];
|
|
10
12
|
document(): FormlyFieldConfig[];
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class ScanProvider {
|
|
6
6
|
private http;
|
|
7
7
|
config: ScanConfig;
|
|
8
|
-
|
|
8
|
+
countriesData: any;
|
|
9
9
|
canStoreImages: boolean;
|
|
10
10
|
constructor(http: HttpClient, config: ScanConfig);
|
|
11
11
|
genderList(): {
|
|
@@ -14,10 +14,15 @@ export declare class ScanProvider {
|
|
|
14
14
|
F: string;
|
|
15
15
|
'F/F': string;
|
|
16
16
|
};
|
|
17
|
+
get enableVerification(): boolean;
|
|
17
18
|
stateless(DocumentFaceImage: any, LiveFaceImage: any): Observable<Object>;
|
|
18
19
|
sendLog(data: any): Observable<Object>;
|
|
19
20
|
burst(Images: string[]): Observable<Object>;
|
|
20
21
|
countries(): Observable<any>;
|
|
22
|
+
get countryNames(): {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
21
26
|
countryList(): {
|
|
22
27
|
AFG: string;
|
|
23
28
|
ALB: string;
|
package/public-api.d.ts
CHANGED
|
@@ -22,3 +22,5 @@ export { WebcamModule } from './core/components/webcam/webcam.module';
|
|
|
22
22
|
export { NgxScandocModule } from './lib/ngx-scandoc.module';
|
|
23
23
|
export { ScanComponent } from './core/components/scan/scan.component';
|
|
24
24
|
export { CameraSwitchComponent } from './core/components/camera-switch/camera-switch.component';
|
|
25
|
+
export { PromptManualComponent } from './dialogs/components/prompt-manual/prompt-manual.component';
|
|
26
|
+
export { ManualScanComponent } from './core/components/manual-scan/manual-scan.component';
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scandoc": {
|
|
3
3
|
"title": "Scan Profile",
|
|
4
|
+
"cancel": "Cancel",
|
|
5
|
+
"ok": "Ok",
|
|
6
|
+
"confirm":"Confirm",
|
|
4
7
|
"camera": "Camera",
|
|
5
8
|
"reTake": "ReTake",
|
|
6
9
|
"useData": "Use Data",
|
|
@@ -25,11 +28,19 @@
|
|
|
25
28
|
"driverLicence": "Driver's Licence",
|
|
26
29
|
"select": "Please select document type:",
|
|
27
30
|
"retry": "Retry",
|
|
28
|
-
"continueWithSelectedImage": "Continue
|
|
29
|
-
|
|
31
|
+
"continueWithSelectedImage": "Continue",
|
|
30
32
|
"back": "Back Image",
|
|
31
33
|
"remove": "Remove",
|
|
32
|
-
|
|
34
|
+
"yes": "Yes",
|
|
35
|
+
"no": "No",
|
|
36
|
+
"rotate": "Rotate Image",
|
|
37
|
+
"manual": "Do you want to manually capture/upload image?",
|
|
38
|
+
"scanCamera": "Scan with camera",
|
|
39
|
+
"useFromDisk": "Use from disk",
|
|
40
|
+
"front": "Front Image",
|
|
41
|
+
"frontDescription": "Please upload or scan front image of document",
|
|
42
|
+
"backDescription": "Please upload or scan back image of document",
|
|
43
|
+
"upload": "Upload",
|
|
33
44
|
"info": {
|
|
34
45
|
"position": "Position document inside rectange and hold steady.",
|
|
35
46
|
"turn": "Please turn the document over!",
|