@sumaris-net/ngx-components 18.6.22 → 18.6.23
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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/services/platform.service.mjs +16 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +14 -0
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/install/install-upgrade-card.component.d.ts +1 -1
- package/src/app/core/services/platform.service.d.ts +7 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
46
46
|
download(event: Event, link: InstallAppLink): Promise<void>;
|
|
47
47
|
openFile(event: Event, link: InstallAppLink): Promise<void>;
|
|
48
48
|
tryOnline(): Promise<void>;
|
|
49
|
-
getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "
|
|
49
|
+
getPlatformName(platform: 'android' | 'ios' | 'electron'): "desktop" | "" | "Android" | "iOS";
|
|
50
50
|
asLink(value: any): InstallAppLink;
|
|
51
51
|
private checkNeedInstallOrUpdate;
|
|
52
52
|
private getCompatibleInstallLinks;
|
|
@@ -9,7 +9,7 @@ import { EntitiesStorage } from './storage/entities-storage.service';
|
|
|
9
9
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
10
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
11
|
import { AccountService } from './account.service';
|
|
12
|
-
import { Observable } from 'rxjs';
|
|
12
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
13
13
|
import { Environment } from '../../../environments/environment.class';
|
|
14
14
|
import { ConfigService } from './config.service';
|
|
15
15
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
@@ -47,6 +47,7 @@ export declare class PlatformService extends StartableService {
|
|
|
47
47
|
private _capacitor;
|
|
48
48
|
private _android;
|
|
49
49
|
private _ios;
|
|
50
|
+
busySubject: BehaviorSubject<boolean>;
|
|
50
51
|
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, cdkClipboard: CdkClipboard, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
|
|
51
52
|
private _downloadingJobs;
|
|
52
53
|
private checkAppVersionTimer;
|
|
@@ -78,6 +79,11 @@ export declare class PlatformService extends StartableService {
|
|
|
78
79
|
width(): number;
|
|
79
80
|
height(): number;
|
|
80
81
|
protected ngOnStart(): Promise<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Used to show a backdrop when platform is busy (e.g. from the app.component.ts)
|
|
84
|
+
*/
|
|
85
|
+
markAsBusy(): void;
|
|
86
|
+
markAsNotBusy(): void;
|
|
81
87
|
open(url: string, opts?: Omit<OpenOptions, 'url'>): Promise<void>;
|
|
82
88
|
getDownloadingJob(uri: string): Observable<string>;
|
|
83
89
|
download(request: {
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.6.
|
|
5
|
+
"version": "18.6.23",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|