@sumaris-net/ngx-components 2.6.6 → 2.6.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": "2.6.6",
4
+ "version": "2.6.8",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -14,6 +14,7 @@ import { ConfigService } from '../services/config.service';
14
14
  import { AppPropertiesTable } from '../form/properties/properties.table';
15
15
  import { UserTokenTable } from './token.table';
16
16
  import { NavController } from '@ionic/angular';
17
+ import { Configuration } from '../services/model/config.model';
17
18
  import * as i0 from "@angular/core";
18
19
  export declare class AccountPage extends AppForm<Account> implements OnInit, OnDestroy, CanLeave {
19
20
  formBuilder: UntypedFormBuilder;
@@ -41,7 +42,7 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
41
42
  accountReadOnly: boolean;
42
43
  readonly mobile: boolean;
43
44
  get valid(): boolean;
44
- protected authTokenEnabled: boolean;
45
+ protected showApiTokens: boolean;
45
46
  constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService, navController: NavController, validatorService: AccountValidatorService, configService: ConfigService, cd: ChangeDetectorRef, locales: LocaleConfig[]);
46
47
  ngOnInit(): void;
47
48
  ngOnDestroy(): void;
@@ -57,12 +58,12 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
57
58
  sendConfirmationEmail(event: MouseEvent): Promise<boolean>;
58
59
  save(event: any): Promise<boolean>;
59
60
  enable(opts?: {
60
- accountReadOnly?: boolean;
61
61
  onlySelf?: boolean;
62
62
  emitEvent?: boolean;
63
63
  }): void;
64
64
  cancel(): Promise<void>;
65
65
  close(_?: Event): Promise<boolean>;
66
+ protected onConfigLoaded(config: Configuration): void;
66
67
  protected markForCheck(): void;
67
68
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountPage, never>;
68
69
  static ɵcmp: i0.ɵɵComponentDeclaration<AccountPage, "app-account-page", never, {}, {}, never, never, false>;
@@ -78,11 +78,14 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
78
78
  private readonly _optionDefs;
79
79
  private _$additionalFields;
80
80
  private _tokenType$;
81
+ private _apiTokenEnabled;
81
82
  get account(): Account;
82
83
  get person(): Person;
83
84
  get department(): Department;
84
85
  get tokenType(): AuthTokenType;
85
86
  set tokenType(value: AuthTokenType);
87
+ get apiTokenEnabled(): boolean;
88
+ set apiTokenEnabled(value: boolean);
86
89
  constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions);
87
90
  ngOnStart(): Promise<Account>;
88
91
  protected ngOnStop(): Promise<void>;
@@ -127,6 +130,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
127
130
  load(opts?: {
128
131
  offline?: boolean;
129
132
  fetchPolicy?: FetchPolicy;
133
+ query?: any;
130
134
  }): Promise<Account | undefined>;
131
135
  generateToken(flags: number): Promise<string | undefined>;
132
136
  /**
@@ -6,7 +6,7 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
6
6
  DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
7
7
  REGISTRATION_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
8
8
  AUTH_TOKEN_TYPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
9
- AUTH_TOKEN_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
9
+ AUTH_API_TOKEN_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
10
10
  GRAVATAR_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
11
11
  GRAVATAR_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
12
12
  TESTING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
@@ -16,7 +16,7 @@ export declare interface LoadResult<T> {
16
16
  fetchMore?: FetchMoreFn<LoadResult<T>>;
17
17
  }
18
18
  export declare type SuggestFn<T, F> = (value: any, filter?: F, sortBy?: string | keyof T, sortDirection?: SortDirection, opts?: {
19
- fetchPolicy: FetchPolicy;
19
+ fetchPolicy?: FetchPolicy;
20
20
  [key: string]: any;
21
21
  }) => Promise<T[] | LoadResult<T>>;
22
22
  export declare interface SuggestService<T, F> {
@@ -198,9 +198,7 @@
198
198
  "TOKEN": "Crypto",
199
199
  "BASIC_AND_TOKEN": "Basic and crypto"
200
200
  },
201
- "ACCOUNT": {
202
- "ENABLE_AUTH_TOKENS": "Activer les jetons d'authentifications"
203
- }
201
+ "ENABLE_AUTH_API_TOKENS": "API > Enable auth tokens"
204
202
  }
205
203
  },
206
204
  "MENU": {
@@ -214,7 +212,12 @@
214
212
  "LOCAL_SETTINGS": "Settings",
215
213
  "LOGOUT": "Logout",
216
214
  "ABOUT": "About",
217
- "BTN_MY_ACCOUNT": "My account"
215
+ "BTN_MY_ACCOUNT": "My account",
216
+
217
+ "TRIPS": "Trips",
218
+ "LOGBOOKS": "Logbooks",
219
+ "OCCASIONS": "Occasions",
220
+ "AUCTION_OCCASIONS": "Auction occasions"
218
221
  },
219
222
  "ABOUT": {
220
223
  "TITLE": "About",
@@ -198,9 +198,7 @@
198
198
  "TOKEN": "Crypto",
199
199
  "BASIC_AND_TOKEN": "Basic and crypto"
200
200
  },
201
- "ACCOUNT": {
202
- "ENABLE_AUTH_TOKENS": "Enable auth tokens"
203
- }
201
+ "ENABLE_AUTH_API_TOKENS": "API > Enable auth tokens"
204
202
  }
205
203
  },
206
204
  "MENU": {
@@ -214,7 +212,12 @@
214
212
  "LOCAL_SETTINGS": "Settings",
215
213
  "LOGOUT": "Logout",
216
214
  "ABOUT": "About",
217
- "BTN_MY_ACCOUNT": "My account"
215
+ "BTN_MY_ACCOUNT": "My account",
216
+
217
+ "TRIPS": "Trips",
218
+ "LOGBOOKS": "Logbooks",
219
+ "OCCASIONS": "Occasions",
220
+ "AUCTION_OCCASIONS": "Auction occasions"
218
221
  },
219
222
  "ABOUT": {
220
223
  "TITLE": "About",
@@ -199,9 +199,7 @@
199
199
  "TOKEN": "Cryptographique",
200
200
  "BASIC_AND_TOKEN": "Basique et cryptographique"
201
201
  },
202
- "ACCOUNT": {
203
- "ENABLE_AUTH_TOKENS": "Activer les jetons d'authentification"
204
- }
202
+ "ENABLE_AUTH_API_TOKENS": "API > Activer les jetons d'authentification"
205
203
  }
206
204
  },
207
205
  "MENU": {
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.6.6",
5
+ "version": "2.6.8",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{