@sumaris-net/ngx-components 2.8.2-beta3 → 2.8.2-beta5

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": "2.8.2-beta3",
4
+ "version": "2.8.2-beta5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -21,7 +21,6 @@ import { OverlayEventDetail } from '@ionic/core';
21
21
  import { ToastController } from '@ionic/angular';
22
22
  import { TranslateService } from '@ngx-translate/core';
23
23
  import { TokenScope, UserToken } from './model/token.model';
24
- import { DocumentNode } from 'graphql/language/ast';
25
24
  import * as i0 from "@angular/core";
26
25
  export declare interface AccountDetails {
27
26
  loaded: boolean;
@@ -46,7 +45,6 @@ export interface UserSettingsOptions {
46
45
  }
47
46
  export declare const APP_USER_SETTINGS_OPTIONS: InjectionToken<UserSettingsOptions>;
48
47
  export declare const APP_USER_TOKEN_SCOPES: InjectionToken<TokenScope[]>;
49
- export declare const APP_INVALIDATE_TOKEN_QUERY: InjectionToken<DocumentNode>;
50
48
  export declare interface IsEmailExistsVariables {
51
49
  email: string;
52
50
  hash: string;
@@ -68,8 +66,8 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
68
66
  private translate;
69
67
  private toastController;
70
68
  protected environment: Environment;
71
- protected invalidateTokenQuery: DocumentNode;
72
69
  onLogin: Subject<Account>;
70
+ onWillLogout: Subject<Account>;
73
71
  onLogout: Subject<void>;
74
72
  onChange: Subject<Account>;
75
73
  onAuthTokenChange: BehaviorSubject<string>;
@@ -89,7 +87,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
89
87
  set tokenType(value: AuthTokenType);
90
88
  get apiTokenEnabled(): boolean;
91
89
  set apiTokenEnabled(value: boolean);
92
- constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions, invalidateTokenQuery: DocumentNode);
90
+ constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions);
93
91
  ngOnStart(): Promise<Account>;
94
92
  protected ngOnStop(): Promise<void>;
95
93
  isLogin(): boolean;
@@ -125,7 +123,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
125
123
  */
126
124
  save(account: Account): Promise<Account>;
127
125
  logout(): Promise<void>;
128
- invalidateToken(token: string): Promise<void>;
129
126
  /**
130
127
  * Load a account
131
128
  *
@@ -194,7 +191,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
194
191
  protected copyIdAndUpdateDateSettings(source: UserSettings | undefined, target: UserSettings): void;
195
192
  protected copyIdAndUpdateDateToken(sources: UserToken[] | undefined, targets: UserToken[]): void;
196
193
  protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
197
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
198
195
  static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
199
196
  }
200
197
  export {};
@@ -361,6 +361,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
361
361
  }): void;
362
362
  protected getPageSettings<T = any>(propertyName?: string): T;
363
363
  protected savePageSettings(value: any, propertyName?: string): Promise<void>;
364
+ protected emitRefresh(value?: any): void;
364
365
  private listenSortAndPaginationEvents;
365
366
  private editRowById;
366
367
  private setLoading;
@@ -374,6 +374,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
374
374
  * @protected
375
375
  */
376
376
  protected initPermanentSelection(): void;
377
+ protected emitRefresh(value?: any): void;
377
378
  private listenSortAndPaginationEvents;
378
379
  private editRowById;
379
380
  private setLoading;
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
16
16
  }
17
17
  export declare function isInputElement(object: any): object is InputElement;
18
18
  export declare function asInputElement(object: ElementRef): InputElement | undefined;
19
- export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
19
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
20
20
  export interface CanGainFocusOptions {
21
21
  minTabindex?: number;
22
22
  maxTabindex?: number;