@sumaris-net/ngx-components 0.26.6 → 0.27.2

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.26.6",
4
+ "version": "0.27.2",
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.19.1",
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
- export declare class PlatformService {
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
- start(): Promise<void>;
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: {
@@ -107,7 +107,6 @@ export declare class MatAutocompleteField implements OnInit, InputElement, OnDes
107
107
  onDropButtonClick: EventEmitter<UIEvent>;
108
108
  onKeydownEscape: EventEmitter<any>;
109
109
  onKeyupEnter: EventEmitter<any>;
110
- onKeydownTab: EventEmitter<any>;
111
110
  matSelect: MatSelect;
112
111
  matInputText: ElementRef;
113
112
  matAutocomplete: MatAutocomplete;
@@ -1,4 +1,4 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  export declare class NumberFormatPipe implements PipeTransform {
3
- transform(val: number): string | Promise<string>;
3
+ transform(val: number, numberFormatOptions?: Intl.NumberFormatOptions): string | Promise<string>;
4
4
  }
@@ -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(platform: {
16
+ protected constructor(prerequisiteService: {
16
17
  ready: () => Promise<any>;
17
18
  });
18
19
  start(): Promise<T>;