@sumaris-net/ngx-components 0.23.0 → 0.24.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/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.23.0",
4
+ "version": "0.24.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -32,7 +32,7 @@ export declare class PersonService extends BaseEntityService<Person, PersonFilte
32
32
  withTotal?: boolean;
33
33
  toEntity?: boolean;
34
34
  }): Promise<LoadResult<Person>>;
35
- suggest(value: any, filter?: PersonFilter): Promise<LoadResult<Person>>;
35
+ suggest(value: any, filter?: PersonFilter, sortBy?: string, sortDirection?: SortDirection): Promise<LoadResult<Person>>;
36
36
  executeImport(progression: BehaviorSubject<number>, opts?: {
37
37
  maxProgression?: number;
38
38
  }): Promise<void>;
@@ -9,6 +9,8 @@ export declare interface InstallAppLink {
9
9
  platform?: 'android' | 'ios';
10
10
  version?: string;
11
11
  downloadFilename?: string;
12
+ description?: string;
13
+ mimeType?: string;
12
14
  }
13
15
  export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
14
16
  private modalCtrl;
@@ -26,23 +28,24 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
26
28
  updateLinks: InstallAppLink[];
27
29
  offline: boolean;
28
30
  upgradeVersion: string;
31
+ isAndroidCordova: boolean;
29
32
  isLogin: boolean;
30
33
  showUpgradeWarning: boolean;
31
34
  showOfflineWarning: boolean;
32
35
  showInstallButton: boolean;
33
36
  set showUpdateOfflineFeature(value: boolean);
34
37
  get showUpdateOfflineFeature(): boolean;
35
- onUpdateOfflineModeClick: EventEmitter<UIEvent>;
36
38
  constructor(modalCtrl: ModalController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, environment: any);
39
+ onUpdateOfflineModeClick: EventEmitter<UIEvent>;
37
40
  ngOnInit(): Promise<void>;
38
41
  ngOnDestroy(): void;
39
- openDownloadLink(event: UIEvent, url: string): boolean;
42
+ downloadLink(event: UIEvent, link: InstallAppLink): void;
40
43
  tryOnline(): void;
41
44
  getPlatformName(platform: 'android' | 'ios'): "" | "Android" | "iOS";
42
- getAppFileName(): string;
45
+ asLink(value: any): InstallAppLink;
43
46
  private getCompatibleInstallLinks;
44
47
  private getCompatibleUpgradeLinks;
45
48
  private getAllInstallLinks;
46
- protected getFilename(url: string): string;
47
- protected markForCheck(): void;
49
+ private getFilename;
50
+ private markForCheck;
48
51
  }
@@ -17,6 +17,7 @@ import { TranslateService } from '@ngx-translate/core';
17
17
  import { AccountService } from './account.service';
18
18
  import { ConfigService } from './config.service';
19
19
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
20
+ import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
20
21
  export declare class PlatformService {
21
22
  private platform;
22
23
  private cdkPlatform;
@@ -36,20 +37,24 @@ export declare class PlatformService {
36
37
  private keyboard;
37
38
  private splashScreen;
38
39
  private browser;
40
+ private downloader;
39
41
  private readonly _debug;
40
42
  private _started;
41
43
  private _startPromise;
42
44
  private _mobile;
45
+ private _cordova;
46
+ private _android;
43
47
  touchUi: boolean;
44
48
  get started(): boolean;
45
49
  get mobile(): boolean;
46
- 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);
50
+ 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);
47
51
  is(platformName: Platforms): boolean;
48
52
  /**
49
53
  * Say if opened has been opened from a web browser (and NOT inside an Android or iOs App).
50
54
  * This is used to known if there is cordova features
51
55
  */
52
56
  isWebOrDesktop(): boolean;
57
+ isAndroidCordova(): boolean;
53
58
  width(): number;
54
59
  height(): number;
55
60
  start(): Promise<void>;
@@ -63,6 +68,10 @@ export declare class PlatformService {
63
68
  checkPeriod: number;
64
69
  }): Promise<any>;
65
70
  open(url: string, target?: string, features?: string, replace?: boolean): void;
71
+ download(request: {
72
+ uri: string;
73
+ filename?: string;
74
+ } & Partial<DownloadRequest>): void;
66
75
  protected configureCordovaPlugins(mobile: boolean): void;
67
76
  protected configureTranslate(): void;
68
77
  protected configureCache(online?: boolean): void;