ngx-scandoc 15.0.6 → 15.0.8
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/interfaces/config.d.ts +1 -0
- package/esm2020/core/interfaces/config.mjs +1 -1
- package/esm2020/providers/auth.provider.mjs +7 -9
- package/esm2020/providers/scan.provider.mjs +7 -9
- package/esm2020/providers/translation.provider.mjs +16 -11
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-scandoc.mjs +26 -31
- package/fesm2015/ngx-scandoc.mjs.map +1 -1
- package/fesm2020/ngx-scandoc.mjs +26 -27
- package/fesm2020/ngx-scandoc.mjs.map +1 -1
- package/package.json +1 -1
- package/providers/auth.provider.d.ts +4 -2
- package/providers/scan.provider.d.ts +4 -2
- package/providers/translation.provider.d.ts +5 -2
- package/public-api.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { HttpClient } from '@angular/common/http';
|
|
3
4
|
import { AuthConfig } from '../core/interfaces/config';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AuthProvider {
|
|
6
7
|
private http;
|
|
7
|
-
|
|
8
|
+
private injector;
|
|
8
9
|
subClient: string;
|
|
9
|
-
|
|
10
|
+
config: AuthConfig;
|
|
11
|
+
constructor(http: HttpClient, injector: Injector);
|
|
10
12
|
setSubClient(name: string): void;
|
|
11
13
|
setConfig(): void;
|
|
12
14
|
token: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { HttpClient } from '@angular/common/http';
|
|
3
4
|
import { ScanConfig } from '../core/interfaces/config';
|
|
@@ -5,10 +6,11 @@ import { GuestData } from '../core/interfaces/guest.data';
|
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ScanProvider {
|
|
7
8
|
private http;
|
|
8
|
-
|
|
9
|
+
private injector;
|
|
9
10
|
countriesData: any;
|
|
10
11
|
canStoreImages: boolean;
|
|
11
|
-
|
|
12
|
+
config: ScanConfig;
|
|
13
|
+
constructor(http: HttpClient, injector: Injector);
|
|
12
14
|
genderList(): {
|
|
13
15
|
M: string;
|
|
14
16
|
'M/M': string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PlatformLocation } from '@angular/common';
|
|
2
|
+
import { Injector } from '@angular/core';
|
|
2
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -8,11 +9,13 @@ interface TranslationProvider {
|
|
|
8
9
|
}
|
|
9
10
|
export declare class NgxScanDocTranslationProvider {
|
|
10
11
|
translate: TranslateService;
|
|
12
|
+
private injector;
|
|
11
13
|
private platformLocation;
|
|
12
14
|
defaultLang: string;
|
|
13
15
|
userLang: string;
|
|
14
16
|
private customLoader;
|
|
15
|
-
|
|
17
|
+
private config;
|
|
18
|
+
constructor(translate: TranslateService, injector: Injector, providers: TranslationProvider[], platformLocation: PlatformLocation);
|
|
16
19
|
private path;
|
|
17
20
|
addTranslationFolder(name?: string, path?: string): void;
|
|
18
21
|
loadTranslation(lang: string, fallback?: string, useLang?: boolean): void;
|
|
@@ -20,7 +23,7 @@ export declare class NgxScanDocTranslationProvider {
|
|
|
20
23
|
private onTranslationChanged;
|
|
21
24
|
use(lang: string): Observable<any>;
|
|
22
25
|
forms(item: any, namespace?: null): any;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxScanDocTranslationProvider, [null, { optional: true; }, null]>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxScanDocTranslationProvider, [null, null, { optional: true; }, null]>;
|
|
24
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgxScanDocTranslationProvider>;
|
|
25
28
|
}
|
|
26
29
|
export {};
|
package/public-api.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export { ScanComponent } from './core/components/scan/scan.component';
|
|
|
24
24
|
export { CameraSwitchComponent } from './core/components/camera-switch/camera-switch.component';
|
|
25
25
|
export { PromptManualComponent } from './dialogs/components/prompt-manual/prompt-manual.component';
|
|
26
26
|
export { ManualScanComponent } from './core/components/manual-scan/manual-scan.component';
|
|
27
|
+
export { SCAN_CONFIG_TOKEN, AUTH_CONFIG_TOKEN } from './core/tokens/config.tokens';
|