@sumaris-net/ngx-components 2.18.0-beta13 → 2.18.0-beta15

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.18.0-beta13",
4
+ "version": "2.18.0-beta15",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -216,6 +216,7 @@ export * from './src/app/core/account/account.page';
216
216
  export * from './src/app/core/account/account.module';
217
217
  export * from './src/app/core/account/account.page';
218
218
  export * from './src/app/core/account/token.table';
219
+ export * from './src/app/core/account/new-token.form';
219
220
  export * from './src/app/core/account/new-token.modal';
220
221
  export * from './src/app/core/account/password/change-password.module';
221
222
  export * from './src/app/core/account/password/change-password.form';
@@ -1,16 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./account.page";
3
3
  import * as i2 from "./token.table";
4
- import * as i3 from "./new-token.modal";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "../../shared/shared.module";
7
- import * as i6 from "@ngx-translate/core";
8
- import * as i7 from "../form/buttons/form-buttons-bar.module";
9
- import * as i8 from "../form/properties/properties.module";
10
- import * as i9 from "../table/table.module";
11
- import * as i10 from "./password/change-password.module";
4
+ import * as i3 from "./new-token.form";
5
+ import * as i4 from "./new-token.modal";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "../../shared/shared.module";
8
+ import * as i7 from "@ngx-translate/core";
9
+ import * as i8 from "../form/buttons/form-buttons-bar.module";
10
+ import * as i9 from "../form/properties/properties.module";
11
+ import * as i10 from "../table/table.module";
12
+ import * as i11 from "./password/change-password.module";
12
13
  export declare class AppAccountModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<AppAccountModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppAccountModule, [typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenModal], [typeof i4.CommonModule, typeof i5.SharedModule, typeof i6.TranslateModule, typeof i7.AppFormButtonsBarModule, typeof i8.AppPropertiesFormModule, typeof i9.AppTableModule, typeof i10.AppChangePasswordModule], [typeof i6.TranslateModule, typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenModal, typeof i10.AppChangePasswordModule]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppAccountModule, [typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.TranslateModule, typeof i8.AppFormButtonsBarModule, typeof i9.AppPropertiesFormModule, typeof i10.AppTableModule, typeof i11.AppChangePasswordModule], [typeof i7.TranslateModule, typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal, typeof i11.AppChangePasswordModule]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<AppAccountModule>;
16
17
  }
@@ -0,0 +1,29 @@
1
+ import { TokenScope, UserToken } from '../services/model/token.model';
2
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
3
+ import { UserTokenValidatorService } from '../services/validator/user-token.validator';
4
+ import { MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete.config';
5
+ import { AppForm } from '../form/form.class';
6
+ import { AccountService } from '../services/account.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class NewTokenForm extends AppForm<UserToken> implements OnInit {
9
+ protected validator: UserTokenValidatorService;
10
+ protected accountService: AccountService;
11
+ protected cd: ChangeDetectorRef;
12
+ protected tokenConfig: MatAutocompleteFieldConfig;
13
+ showScopes: boolean;
14
+ tokenScopes: TokenScope[];
15
+ existingNames: string[];
16
+ mobile: boolean;
17
+ private readonly platform;
18
+ constructor(injector: Injector, validator: UserTokenValidatorService, accountService: AccountService, cd: ChangeDetectorRef);
19
+ get valid(): boolean;
20
+ get invalid(): boolean;
21
+ ngOnInit(): void;
22
+ generate(event: UIEvent): Promise<void>;
23
+ copy(event: UIEvent): Promise<void>;
24
+ getValue(): Promise<UserToken>;
25
+ protected getFlags(scopes: TokenScope[]): number;
26
+ protected markForCheck(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTokenForm, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewTokenForm, "app-new-token-form", never, { "showScopes": { "alias": "showScopes"; "required": false; }; "tokenScopes": { "alias": "tokenScopes"; "required": false; }; "existingNames": { "alias": "existingNames"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; }, {}, never, never, false, never>;
29
+ }
@@ -2,30 +2,21 @@ import { AppEntityEditorModal, IEntityEditorModalOptions } from '../form/entity/
2
2
  import { TokenScope, UserToken } from '../services/model/token.model';
3
3
  import { UntypedFormGroup } from '@angular/forms';
4
4
  import { Injector, OnInit } from '@angular/core';
5
- import { UserTokenValidatorService } from '../services/validator/user-token.validator';
6
- import { MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete.config';
7
- import { IAppForm } from '../form/form.utils';
8
5
  import { AccountService } from '../services/account.service';
6
+ import { NewTokenForm } from './new-token.form';
9
7
  import * as i0 from "@angular/core";
10
- export interface INewTokenModalOptions extends IEntityEditorModalOptions<UserToken> {
8
+ export interface INewTokenOptions extends IEntityEditorModalOptions<UserToken> {
11
9
  showScopes: boolean;
12
10
  tokenScopes: TokenScope[];
13
11
  existingNames: string[];
14
12
  }
15
- export declare class NewTokenModal extends AppEntityEditorModal<UserToken> implements OnInit, INewTokenModalOptions {
16
- private injector;
17
- protected validator: UserTokenValidatorService;
13
+ export declare class NewTokenModal extends AppEntityEditorModal<UserToken> implements OnInit, INewTokenOptions {
18
14
  protected accountService: AccountService;
19
- tokenForm: UntypedFormGroup;
20
- tokenAppForm: IAppForm;
21
- tokenConfig: MatAutocompleteFieldConfig;
22
15
  showScopes: boolean;
23
16
  tokenScopes: TokenScope[];
24
17
  existingNames: string[];
25
- private readonly platform;
26
- constructor(injector: Injector, validator: UserTokenValidatorService, accountService: AccountService);
27
- get valid(): boolean;
28
- get invalid(): boolean;
18
+ newTokenForm: NewTokenForm;
19
+ constructor(injector: Injector, accountService: AccountService);
29
20
  ngOnInit(): void;
30
21
  protected computeTitle(data: UserToken): Promise<string>;
31
22
  protected get form(): UntypedFormGroup;
@@ -33,9 +24,6 @@ export declare class NewTokenModal extends AppEntityEditorModal<UserToken> imple
33
24
  protected registerForms(): void;
34
25
  setValue(data: UserToken): Promise<void> | void;
35
26
  protected getValue(): Promise<UserToken>;
36
- generate(event: UIEvent): Promise<void>;
37
- copy(event: UIEvent): Promise<void>;
38
- protected getFlags(scopes: TokenScope[]): number;
39
27
  static ɵfac: i0.ɵɵFactoryDeclaration<NewTokenModal, never>;
40
28
  static ɵcmp: i0.ɵɵComponentDeclaration<NewTokenModal, "app-new-token-modal", never, { "showScopes": { "alias": "showScopes"; "required": false; }; "tokenScopes": { "alias": "tokenScopes"; "required": false; }; "existingNames": { "alias": "existingNames"; "required": false; }; }, {}, never, ["*"], false, never>;
41
29
  }
@@ -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.18.0-beta13",
5
+ "version": "2.18.0-beta15",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{