@sumaris-net/ngx-components 2.12.27 → 2.12.29-beta1
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/esm2022/public_api.mjs +2 -1
- package/esm2022/src/app/core/account/account.module.mjs +6 -3
- package/esm2022/src/app/core/account/new-token.form.mjs +106 -0
- package/esm2022/src/app/core/account/new-token.modal.mjs +23 -89
- package/esm2022/src/app/core/account/token.table.mjs +3 -2
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +4 -4
- package/fesm2022/sumaris-net.ngx-components.mjs +88 -51
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/account/account.module.d.ts +10 -9
- package/src/app/core/account/new-token.form.d.ts +29 -0
- package/src/app/core/account/new-token.modal.d.ts +5 -17
- package/src/app/core/form/entity/entity-editor.class.d.ts +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -214,6 +214,7 @@ export * from './src/app/core/account/account.page';
|
|
|
214
214
|
export * from './src/app/core/account/account.module';
|
|
215
215
|
export * from './src/app/core/account/account.page';
|
|
216
216
|
export * from './src/app/core/account/token.table';
|
|
217
|
+
export * from './src/app/core/account/new-token.form';
|
|
217
218
|
export * from './src/app/core/account/new-token.modal';
|
|
218
219
|
export * from './src/app/core/account/password/change-password.module';
|
|
219
220
|
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.
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "../form/
|
|
10
|
-
import * as i9 from "../
|
|
11
|
-
import * as i10 from "
|
|
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
|
|
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
|
|
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,
|
|
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
|
-
|
|
26
|
-
constructor(injector: Injector,
|
|
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
|
}
|
|
@@ -50,8 +50,8 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
50
50
|
* @deprecated
|
|
51
51
|
*/
|
|
52
52
|
protected get $title(): Subject<string>;
|
|
53
|
-
protected readonly dateFormat: DateFormatService;
|
|
54
53
|
protected readonly cd: ChangeDetectorRef;
|
|
54
|
+
protected readonly dateFormat: DateFormatService;
|
|
55
55
|
protected readonly settings: LocalSettingsService;
|
|
56
56
|
protected readonly environment: Environment;
|
|
57
57
|
protected readonly routerOutlet: IonRouterOutlet;
|
|
@@ -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): 0 | 1 | -1;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.12.
|
|
5
|
+
"version": "2.12.28",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|