@sumaris-net/ngx-components 1.10.6 → 1.10.8

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.10.6",
4
+ "version": "1.10.8",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -13,6 +13,7 @@ import { LocalSettingsService } from '../services/local-settings.service';
13
13
  import { NetworkService } from '../services/network.service';
14
14
  import { MenuItem } from '../menu/menu.model';
15
15
  import { ShowToastOptions } from '../../shared/toast/toasts';
16
+ import { Environment } from '../../../environments/environment.class';
16
17
  import { HistoryPageReference } from '../services/model/history.model';
17
18
  export declare function getRandomImage(files: String[]): String;
18
19
  export declare const APP_HOME_BUTTONS: InjectionToken<MenuItem[]>;
@@ -26,7 +27,7 @@ export declare class HomePage implements OnDestroy {
26
27
  private cd;
27
28
  network: NetworkService;
28
29
  settings: LocalSettingsService;
29
- protected environment: any;
30
+ protected environment: Environment;
30
31
  locales: LocaleConfig[];
31
32
  buttons: MenuItem[];
32
33
  private readonly _debug;
@@ -49,8 +50,9 @@ export declare class HomePage implements OnDestroy {
49
50
  pageHistory: HistoryPageReference[];
50
51
  offline: boolean;
51
52
  $filteredButtons: BehaviorSubject<MenuItem[]>;
53
+ readonly showAccountButton: boolean;
52
54
  get currentLocaleCode(): string;
53
- constructor(accountService: AccountService, modalCtrl: ModalController, translate: TranslateService, toastController: ToastController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, settings: LocalSettingsService, environment: any, locales: LocaleConfig[], buttons: MenuItem[]);
55
+ constructor(accountService: AccountService, modalCtrl: ModalController, translate: TranslateService, toastController: ToastController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, settings: LocalSettingsService, environment: Environment, locales: LocaleConfig[], buttons: MenuItem[]);
54
56
  ngOnDestroy(): void;
55
57
  login(): Promise<void>;
56
58
  register(): Promise<void>;
@@ -45,6 +45,7 @@ export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = numbe
45
45
  */
46
46
  export declare function isInstanceOf<T>(obj: any, constructor: new (...args: any[]) => T): obj is T;
47
47
  export declare abstract class EntityUtils {
48
+ static isEntity<T extends IEntity<any>>(obj: T | any): obj is T;
48
49
  static isNotEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
49
50
  static isEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
50
51
  static equals<T extends IEntity<any> | any>(o1: T, o2: T, checkAttribute?: keyof T): boolean;
@@ -39,6 +39,7 @@ export declare class Environment {
39
39
  password?: string;
40
40
  };
41
41
  account?: {
42
+ showAccountButton?: boolean;
42
43
  enableListenChanges?: boolean;
43
44
  listenIntervalInSeconds?: number;
44
45
  };