@sumaris-net/ngx-components 2.8.2-beta2 → 2.8.2-beta3
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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/services/account.service.mjs +30 -4
- package/fesm2022/sumaris-net.ngx-components.mjs +29 -3
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/account.service.d.ts +6 -2
- package/src/app/shared/inputs.d.ts +1 -1
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ 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';
|
|
24
25
|
import * as i0 from "@angular/core";
|
|
25
26
|
export declare interface AccountDetails {
|
|
26
27
|
loaded: boolean;
|
|
@@ -45,6 +46,7 @@ export interface UserSettingsOptions {
|
|
|
45
46
|
}
|
|
46
47
|
export declare const APP_USER_SETTINGS_OPTIONS: InjectionToken<UserSettingsOptions>;
|
|
47
48
|
export declare const APP_USER_TOKEN_SCOPES: InjectionToken<TokenScope[]>;
|
|
49
|
+
export declare const APP_INVALIDATE_TOKEN_QUERY: InjectionToken<DocumentNode>;
|
|
48
50
|
export declare interface IsEmailExistsVariables {
|
|
49
51
|
email: string;
|
|
50
52
|
hash: string;
|
|
@@ -66,6 +68,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
66
68
|
private translate;
|
|
67
69
|
private toastController;
|
|
68
70
|
protected environment: Environment;
|
|
71
|
+
protected invalidateTokenQuery: DocumentNode;
|
|
69
72
|
onLogin: Subject<Account>;
|
|
70
73
|
onLogout: Subject<void>;
|
|
71
74
|
onChange: Subject<Account>;
|
|
@@ -86,7 +89,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
86
89
|
set tokenType(value: AuthTokenType);
|
|
87
90
|
get apiTokenEnabled(): boolean;
|
|
88
91
|
set apiTokenEnabled(value: boolean);
|
|
89
|
-
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions);
|
|
92
|
+
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions, invalidateTokenQuery: DocumentNode);
|
|
90
93
|
ngOnStart(): Promise<Account>;
|
|
91
94
|
protected ngOnStop(): Promise<void>;
|
|
92
95
|
isLogin(): boolean;
|
|
@@ -122,6 +125,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
122
125
|
*/
|
|
123
126
|
save(account: Account): Promise<Account>;
|
|
124
127
|
logout(): Promise<void>;
|
|
128
|
+
invalidateToken(token: string): Promise<void>;
|
|
125
129
|
/**
|
|
126
130
|
* Load a account
|
|
127
131
|
*
|
|
@@ -190,7 +194,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
190
194
|
protected copyIdAndUpdateDateSettings(source: UserSettings | undefined, target: UserSettings): void;
|
|
191
195
|
protected copyIdAndUpdateDateToken(sources: UserToken[] | undefined, targets: UserToken[]): void;
|
|
192
196
|
protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
193
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
194
198
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
195
199
|
}
|
|
196
200
|
export {};
|
|
@@ -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):
|
|
19
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|