@sumaris-net/ngx-components 1.17.0 → 1.17.1

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.17.0",
4
+ "version": "1.17.1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -34,8 +34,8 @@ export declare class PersonService extends BaseEntityService<Person, PersonFilte
34
34
  }): Promise<LoadResult<Person>>;
35
35
  suggest(value: any, filter?: PersonFilter, sortBy?: string, sortDirection?: SortDirection): Promise<LoadResult<Person>>;
36
36
  executeImport(filter: Partial<PersonFilter>, opts: {
37
- maxProgression?: number;
38
37
  progression?: BehaviorSubject<number>;
38
+ maxProgression?: number;
39
39
  }): Promise<void>;
40
40
  protected asObject(source: Person | any): any;
41
41
  }
@@ -27,7 +27,6 @@ export declare class MenuComponent implements OnInit {
27
27
  private readonly _debug;
28
28
  private _subscription;
29
29
  private _config;
30
- private _screenWidth;
31
30
  loading: boolean;
32
31
  isLogin: boolean;
33
32
  accountName: string;
@@ -41,7 +40,6 @@ export declare class MenuComponent implements OnInit {
41
40
  side: string;
42
41
  splitPane: IonSplitPane;
43
42
  constructor(platformService: PlatformService, accountService: AccountService, router: Router, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, items: MenuItem[]);
44
- onResize(event?: UIEvent): void;
45
43
  ngOnInit(): Promise<void>;
46
44
  onLogin(account: Account): Promise<void>;
47
45
  onLogout(skipRedirect?: boolean): Promise<void>;
@@ -81,4 +81,5 @@ export declare abstract class EntityUtils {
81
81
  static isLocal(entity: IEntity<any, any> | Entity<any, any>): boolean;
82
82
  static isRemote(entity: IEntity<any, any> | Entity<any, any>): boolean;
83
83
  static isLocalId(id: number): boolean;
84
+ static isRemoteId(id: number): boolean;
84
85
  }
@@ -1,7 +1,7 @@
1
1
  import { EventManager } from '@angular/platform-browser';
2
2
  import { Observable } from 'rxjs';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
- import { ModalController } from '@ionic/angular';
4
+ import { ModalController, PopoverController } from '@ionic/angular';
5
5
  interface Options {
6
6
  element: any;
7
7
  elementName: string;
@@ -14,10 +14,11 @@ export declare class Hotkeys {
14
14
  private dialog;
15
15
  private document;
16
16
  private modalController;
17
+ private popoverController;
17
18
  private _debug;
18
19
  private _hotkeys;
19
20
  private _defaults;
20
- constructor(eventManager: EventManager, dialog: MatDialog, document: any, modalController: ModalController);
21
+ constructor(eventManager: EventManager, dialog: MatDialog, document: any, modalController: ModalController, popoverController: PopoverController);
21
22
  addShortcut(options: Partial<Options>): Observable<UIEvent>;
22
23
  openHelpModal(): void;
23
24
  }
@@ -1,6 +1,6 @@
1
1
  import { BehaviorSubject, Observable } from 'rxjs';
2
2
  import { LoadResult, LoadResultByPageFn } from './entity-service.class';
3
- export declare type CallableWithProgressionFn<O extends CallableWithProgressionOptions> = (opts?: O) => Promise<void>;
3
+ export declare type CallableWithProgressionFn<O extends CallableWithProgressionOptions> = (opts?: O) => Promise<any>;
4
4
  export interface CallableWithProgressionOptions {
5
5
  maxProgression?: number;
6
6
  progression?: BehaviorSubject<number>;
@@ -11,8 +11,8 @@ export declare class JobUtils {
11
11
  static defer<O extends CallableWithProgressionOptions>(runnable: CallableWithProgressionFn<O>, opts?: O): Observable<number>;
12
12
  static run<O extends CallableWithProgressionOptions>(runnable: CallableWithProgressionFn<O>, opts: O): Observable<number>;
13
13
  static fetchAllPages<T>(loadPageFn: LoadResultByPageFn<T>, opts?: {
14
- maxProgression?: number;
15
14
  progression?: BehaviorSubject<number>;
15
+ maxProgression?: number;
16
16
  onPageLoaded?: (pageResult: LoadResult<T>) => any;
17
17
  logPrefix?: string;
18
18
  fetchSize?: number;
@@ -25,6 +25,7 @@
25
25
  "BTN_YES_DELETE": "Oui, delete",
26
26
  "BTN_YES_CONTINUE": "Oui, continue",
27
27
  "BTN_VALIDATE": "Validate",
28
+ "BTN_VALIDATE_WITH_SHORTCUT_HELP": "Validate (Ctrl+Enter)",
28
29
  "BTN_VALIDATE_AND_CONTINUE": "Validate and continue",
29
30
  "BTN_VALIDATE_AND_NEW": "Valider et new",
30
31
  "BTN_NOT_SAVE": "do NOT save",
@@ -25,6 +25,7 @@
25
25
  "BTN_YES_DELETE": "Oui, delete",
26
26
  "BTN_YES_CONTINUE": "Oui, continue",
27
27
  "BTN_VALIDATE": "Validate",
28
+ "BTN_VALIDATE_WITH_SHORTCUT_HELP": "Validate (Ctrl+Enter)",
28
29
  "BTN_VALIDATE_AND_CONTINUE": "Validate and continue",
29
30
  "BTN_VALIDATE_AND_NEW": "Valider et new",
30
31
  "BTN_NOT_SAVE": "do NOT save",
@@ -25,6 +25,7 @@
25
25
  "BTN_YES_DELETE": "Oui, supprimer",
26
26
  "BTN_YES_CONTINUE": "Oui, continuer",
27
27
  "BTN_VALIDATE": "Valider",
28
+ "BTN_VALIDATE_WITH_SHORTCUT_HELP": "Valider (Ctrl+Entrée)",
28
29
  "BTN_VALIDATE_AND_CONTINUE": "Valider et continuer",
29
30
  "BTN_VALIDATE_AND_NEW": "Valider et nouveau",
30
31
  "BTN_NOT_SAVE": "Ne PAS sauvegarder",