@sumaris-net/ngx-components 0.26.7 → 0.27.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/bundles/sumaris-net.ngx-components.umd.js +142 -138
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +1 -2
- package/esm2015/src/app/core/services/config.service.js +1 -1
- package/esm2015/src/app/core/services/platform.service.js +67 -83
- package/esm2015/src/app/shared/services/startable-service.class.js +12 -5
- package/fesm2015/sumaris-net.ngx-components.js +74 -86
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +2 -2
- package/src/app/core/services/platform.service.d.ts +3 -15
- package/src/app/shared/services/startable-service.class.d.ts +2 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumaris-net/ngx-components",
|
|
3
3
|
"description": "SUMARiS Angular components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components/-/issues"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">= 12.
|
|
28
|
+
"node": ">= 12.20.1",
|
|
29
29
|
"npm": ">= 6.14.4"
|
|
30
30
|
},
|
|
31
31
|
"cordova": {
|
|
@@ -19,7 +19,8 @@ import { Observable } from 'rxjs';
|
|
|
19
19
|
import { ConfigService } from './config.service';
|
|
20
20
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
21
21
|
import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
|
|
22
|
-
|
|
22
|
+
import { StartableService } from '../../shared/services/startable-service.class';
|
|
23
|
+
export declare class PlatformService extends StartableService {
|
|
23
24
|
private platform;
|
|
24
25
|
private cdkPlatform;
|
|
25
26
|
private toastController;
|
|
@@ -39,15 +40,11 @@ export declare class PlatformService {
|
|
|
39
40
|
private splashScreen;
|
|
40
41
|
private browser;
|
|
41
42
|
private downloader;
|
|
42
|
-
private readonly _debug;
|
|
43
|
-
private _started;
|
|
44
|
-
private _startPromise;
|
|
45
43
|
private _mobile;
|
|
46
44
|
private _cordova;
|
|
47
45
|
private _android;
|
|
48
46
|
private _downloadingJobs;
|
|
49
47
|
touchUi: boolean;
|
|
50
|
-
get started(): boolean;
|
|
51
48
|
get mobile(): boolean;
|
|
52
49
|
constructor(platform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, storage: Storage, audioProvider: AudioProvider, environment: any, statusBar: StatusBar, keyboard: Keyboard, splashScreen: SplashScreen, browser: InAppBrowser, downloader: Downloader);
|
|
53
50
|
is(platformName: Platforms): boolean;
|
|
@@ -60,16 +57,7 @@ export declare class PlatformService {
|
|
|
60
57
|
get canDownload(): boolean;
|
|
61
58
|
width(): number;
|
|
62
59
|
height(): number;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Wait platform is ready.<br/>
|
|
66
|
-
* Important: this will NOT start the platform, has it should be started by the AppComponent
|
|
67
|
-
*
|
|
68
|
-
* @param opts
|
|
69
|
-
*/
|
|
70
|
-
ready(opts?: {
|
|
71
|
-
checkPeriod: number;
|
|
72
|
-
}): Promise<any>;
|
|
60
|
+
protected ngOnStart(): Promise<any>;
|
|
73
61
|
open(url: string, target?: string, features?: string, replace?: boolean): void;
|
|
74
62
|
getDownloadingJob(uri: string): Observable<string>;
|
|
75
63
|
download(request: {
|
|
@@ -8,11 +8,12 @@ export interface IStartableService<T = any> {
|
|
|
8
8
|
export declare abstract class StartableService<T = any> implements IStartableService<T> {
|
|
9
9
|
onStart: Subject<T>;
|
|
10
10
|
protected _debug: boolean;
|
|
11
|
+
protected _startByReadyFunction: boolean;
|
|
11
12
|
protected _data: T;
|
|
12
13
|
private _started;
|
|
13
14
|
private _startPromise;
|
|
14
15
|
private _startPrerequisite;
|
|
15
|
-
protected constructor(
|
|
16
|
+
protected constructor(prerequisiteService: {
|
|
16
17
|
ready: () => Promise<any>;
|
|
17
18
|
});
|
|
18
19
|
start(): Promise<T>;
|