@sumaris-net/ngx-components 1.2.3 → 1.2.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.2.3",
4
+ "version": "1.2.7",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -14,6 +14,7 @@ export declare interface InstallAppLink {
14
14
  description?: string;
15
15
  mimeType?: string;
16
16
  downloading?: boolean;
17
+ location?: string;
17
18
  }
18
19
  export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
19
20
  private modalCtrl;
@@ -46,6 +47,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
46
47
  ngOnInit(): void;
47
48
  ngOnDestroy(): void;
48
49
  download(event: UIEvent, link: InstallAppLink): Promise<void>;
50
+ openFile(event: UIEvent, link: InstallAppLink): Promise<void>;
49
51
  tryOnline(): Promise<void>;
50
52
  getPlatformName(platform: 'android' | 'ios'): "" | "Android" | "iOS";
51
53
  asLink(value: any): InstallAppLink;
@@ -3,6 +3,7 @@ import { Platform, ToastController } from '@ionic/angular';
3
3
  import { NetworkService } from './network.service';
4
4
  import { Platforms } from '@ionic/core';
5
5
  import { SplashScreen } from '@ionic-native/splash-screen/ngx';
6
+ import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
6
7
  import { StatusBar } from '@ionic-native/status-bar/ngx';
7
8
  import { Keyboard } from '@ionic-native/keyboard/ngx';
8
9
  import { LocalSettingsService } from './local-settings.service';
@@ -40,13 +41,14 @@ export declare class PlatformService extends StartableService {
40
41
  private splashScreen;
41
42
  private browser;
42
43
  private downloader;
44
+ private fileOpener;
43
45
  private _mobile;
44
46
  private _cordova;
45
47
  private _android;
46
48
  private _downloadingJobs;
47
49
  touchUi: boolean;
48
50
  get mobile(): boolean;
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);
51
+ 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, fileOpener: FileOpener);
50
52
  is(platformName: Platforms): boolean;
51
53
  /**
52
54
  * Say if opened has been opened from a web browser (and NOT inside an Android or iOs App).
@@ -55,6 +57,7 @@ export declare class PlatformService extends StartableService {
55
57
  isWebOrDesktop(): boolean;
56
58
  isAndroidCordova(): boolean;
57
59
  get canDownload(): boolean;
60
+ get canOpenFile(): boolean;
58
61
  width(): number;
59
62
  height(): number;
60
63
  protected ngOnStart(): Promise<any>;
@@ -64,6 +67,7 @@ export declare class PlatformService extends StartableService {
64
67
  uri: string;
65
68
  filename?: string;
66
69
  } & Partial<DownloadRequest>): Observable<string>;
70
+ openFile(filePath: string, fileMimeType: string): Promise<any>;
67
71
  protected configureCordovaPlugins(mobile: boolean): void;
68
72
  protected configureTranslate(): void;
69
73
  protected configureCache(online?: boolean): void;