ngx-sp-auth 4.20.3 → 4.20.5
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.
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { BsModalService } from 'ngx-bootstrap/modal';
|
|
5
|
+
import { CheckPasswordRecord, FormUtils, MessageService, PasswordPolicyRecord, RetCheckPassword, RetPasswordPolicy, Usuario } from 'ngx-sp-infra';
|
|
6
|
+
import { AuthUtilService } from '../../utils/auth-utils.service';
|
|
7
|
+
import { MenuServicesService } from '../menu-lateral/menu-services.service';
|
|
8
|
+
import { InfraUsuarioImg } from '../menu-lateral/model/infrausuarioimg';
|
|
9
|
+
import { MeuPerfilService } from './meu-perfil.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class MeuPerfilComponent {
|
|
12
|
+
private _authUtils;
|
|
13
|
+
private _bsModalService;
|
|
14
|
+
private _menuServices;
|
|
15
|
+
private _messageService;
|
|
16
|
+
private _perfilService;
|
|
17
|
+
private _router;
|
|
18
|
+
private readonly _authStorageService;
|
|
19
|
+
photoUser: HTMLImageElement | any;
|
|
20
|
+
reader: FileReader;
|
|
21
|
+
filename?: string;
|
|
22
|
+
showIcon?: boolean;
|
|
23
|
+
showEye1: boolean;
|
|
24
|
+
showEye2: boolean;
|
|
25
|
+
showEye3: boolean;
|
|
26
|
+
mostrarTodos: boolean;
|
|
27
|
+
infraUsuarioImgData: InfraUsuarioImg;
|
|
28
|
+
usuarioData: Usuario;
|
|
29
|
+
teste: string;
|
|
30
|
+
alertsEnabled: boolean;
|
|
31
|
+
$retPasswordPolicy: RetPasswordPolicy;
|
|
32
|
+
$PasswordPolicyList: PasswordPolicyRecord[];
|
|
33
|
+
$retCheckPassword: RetCheckPassword;
|
|
34
|
+
$CheckPasswordResponse: CheckPasswordRecord;
|
|
35
|
+
isPasswordValid: boolean;
|
|
36
|
+
adminId: string;
|
|
37
|
+
isRenderingFinished: boolean;
|
|
38
|
+
isLoading: boolean;
|
|
39
|
+
isLoadingBtn: boolean;
|
|
40
|
+
get FormUtils(): typeof FormUtils;
|
|
41
|
+
get nome(): string;
|
|
42
|
+
get email(): string;
|
|
43
|
+
get telefone(): string;
|
|
44
|
+
ActivateFormAlterarSenha(): void;
|
|
45
|
+
formMeuPerfil: FormGroup;
|
|
46
|
+
formAlterarSenha: FormGroup;
|
|
47
|
+
constructor(_authUtils: AuthUtilService, _bsModalService: BsModalService, _menuServices: MenuServicesService, _messageService: MessageService, _perfilService: MeuPerfilService, _router: Router);
|
|
48
|
+
ngOnInit(): Promise<void>;
|
|
49
|
+
private getPerfil;
|
|
50
|
+
getInfraUsuarioImg(usuarioId: string): Promise<void>;
|
|
51
|
+
GetPasswordPolicyList(): Promise<void>;
|
|
52
|
+
CheckPassword(senha?: string): void;
|
|
53
|
+
GetAdminId(): Promise<void>;
|
|
54
|
+
updateUsuario(usuario: Usuario): void;
|
|
55
|
+
updateSenha(tenantId: number | undefined, id: string, senhaAntiga: string, senhaNova: string, senhaNovaConfirmar: string): void;
|
|
56
|
+
updateImage(imagem: string, filename: string, usuarioId: string): void;
|
|
57
|
+
readImage(file?: File | null): void;
|
|
58
|
+
onPasswordValidityChange(isValid: boolean): void;
|
|
59
|
+
uploadFile(): void;
|
|
60
|
+
removeIcon(inputFile?: HTMLInputElement | null): void;
|
|
61
|
+
openModal(template: TemplateRef<any>): void;
|
|
62
|
+
closeModal(): void;
|
|
63
|
+
return(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeuPerfilComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MeuPerfilComponent, "lib-meu-perfil", never, {}, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RetCheckPassword, RetError, RetPasswordPolicy, RetString, RetUpdatePasswordUsuario, RetUsuario, Usuario } from 'ngx-sp-infra';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RetInfraUsuarioImg } from '../menu-lateral/model/ret-infrausuarioimg';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MeuPerfilService {
|
|
6
|
+
private readonly _customEnvironment;
|
|
7
|
+
private readonly _http;
|
|
8
|
+
private readonly _BASE_URL;
|
|
9
|
+
private readonly _HEADERS;
|
|
10
|
+
private showErrorMessage;
|
|
11
|
+
constructor();
|
|
12
|
+
getUsuario(usuarioID: string): Observable<RetUsuario>;
|
|
13
|
+
getImagemUsuario(usuarioID: string): Observable<RetInfraUsuarioImg>;
|
|
14
|
+
getPasswordPolicy(): Observable<RetPasswordPolicy>;
|
|
15
|
+
checkPassword(senha: string): Observable<RetCheckPassword>;
|
|
16
|
+
getAdminId(): Observable<RetString>;
|
|
17
|
+
updateUsuario(usuario: Usuario): Observable<RetUsuario>;
|
|
18
|
+
updatePasswordMeuPerfil(id: string, oldPass: string, newPass: string, newPassConfirmation: string): Observable<RetUpdatePasswordUsuario>;
|
|
19
|
+
updatePhoto(imagem: string, filename: string, usuarioId: string): Observable<RetError>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeuPerfilService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MeuPerfilService>;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-sp-auth",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.5",
|
|
4
4
|
"description": "Biblioteca de utilitários de autenticação.",
|
|
5
5
|
"author": "P&D",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"@azure/msal-angular": "^4.0.16",
|
|
24
24
|
"@azure/msal-browser": "^4.18.0",
|
|
25
25
|
"idb": "^8.0.3",
|
|
26
|
-
"ngx-
|
|
26
|
+
"ngx-mask": "^19.0.7",
|
|
27
|
+
"ngx-sp-infra": "^6.20.15",
|
|
27
28
|
"ngx-toastr": "^19.0.0"
|
|
28
29
|
},
|
|
29
30
|
"sideEffects": false,
|
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** Modules */
|
|
2
1
|
export * from './lib/auth.module';
|
|
3
|
-
/** Services */
|
|
4
2
|
export * from './lib/auth.service';
|
|
5
3
|
export * from './lib/components/menu-lateral/menu-services.service';
|
|
6
4
|
export * from './lib/custom/lib-custom-environment.service';
|
|
@@ -12,7 +10,6 @@ export * from './lib/services/indexed-db.service';
|
|
|
12
10
|
export * from './lib/services/pesquisa-telas-global.service';
|
|
13
11
|
export * from './lib/storage/auth-storage.service';
|
|
14
12
|
export * from './lib/utils/auth-utils.service';
|
|
15
|
-
/** Components */
|
|
16
13
|
export * from './lib/components/error-menu-not-allowed/error-menu-not-allowed.component';
|
|
17
14
|
export * from './lib/components/login-os/login-os.component';
|
|
18
15
|
export * from './lib/components/login/login.component';
|
|
@@ -23,40 +20,34 @@ export * from './lib/components/menu-lateral/menu/selecao-estabelecimentos-modal
|
|
|
23
20
|
export * from './lib/components/menu-lateral/submenus/dynamic-menu/dynamic-menu.component';
|
|
24
21
|
export * from './lib/components/menu-lateral/submenus/notif-submenu/notif-submenu.component';
|
|
25
22
|
export * from './lib/components/nova-senha/nova-senhacomponent';
|
|
26
|
-
|
|
23
|
+
export * from './lib/components/menu-lateral/model/favoritarModel';
|
|
27
24
|
export * from './lib/components/menu-lateral/model/imenu-item-structure.model';
|
|
28
25
|
export * from './lib/components/menu-lateral/model/imenu.model';
|
|
26
|
+
export * from './lib/components/menu-lateral/model/InfraEstabelecimentoFavoritoDefault';
|
|
29
27
|
export * from './lib/components/menu-lateral/model/infrausuarioimg';
|
|
30
28
|
export * from './lib/components/menu-lateral/model/navsubmenu-searchitem';
|
|
29
|
+
export * from './lib/components/menu-lateral/model/ret-estabelecimentos-modal';
|
|
31
30
|
export * from './lib/components/menu-lateral/model/ret-infrausuarioimg';
|
|
32
31
|
export * from './lib/components/menu-lateral/model/ret-menu-item-structure';
|
|
33
32
|
export * from './lib/components/menu-lateral/model/ret-menu-lateral';
|
|
34
33
|
export * from './lib/components/menu-lateral/model/ret-menu-promise';
|
|
35
34
|
export * from './lib/components/menu-lateral/model/ret-navsubmenu';
|
|
36
|
-
export * from './lib/components/
|
|
37
|
-
export * from './lib/components/menu-lateral/model/InfraEstabelecimentoFavoritoDefault';
|
|
38
|
-
export * from './lib/components/menu-lateral/model/ret-estabelecimentos-modal';
|
|
39
|
-
/** Custom */
|
|
35
|
+
export * from './lib/components/meu-perfil/meu-perfil.component';
|
|
40
36
|
export * from './lib/custom/models/icustom-environment-service';
|
|
41
37
|
export * from './lib/custom/models/icustom-login-service';
|
|
42
38
|
export * from './lib/custom/models/icustom-menu-service';
|
|
43
39
|
export * from './lib/custom/models/icustom-storage-service';
|
|
44
40
|
export * from './lib/custom/models/imenu-config';
|
|
45
|
-
/** Guards */
|
|
46
41
|
export * from './lib/guards/auth-guard';
|
|
47
42
|
export * from './lib/guards/external-login-guard';
|
|
48
43
|
export * from './lib/guards/is-menu-allowed-guard';
|
|
49
44
|
export * from './lib/guards/login-guard';
|
|
50
45
|
export * from './lib/guards/login-os.guard';
|
|
51
|
-
/** Interceptors */
|
|
52
46
|
export * from './lib/interceptors/auth-aplic.interceptor';
|
|
53
47
|
export * from './lib/interceptors/auth-infra.interceptor';
|
|
54
|
-
/** Routes */
|
|
55
48
|
export * from './lib/auth.routes';
|
|
56
|
-
/** Widgets */
|
|
57
49
|
export * from './lib/widgets/sub-menu-card/sub-menu-card.component';
|
|
58
50
|
export * from './lib/widgets/sub-menu/list/list.component';
|
|
59
51
|
export * from './lib/widgets/sub-menu/nav-tabs/nav-tabs.component';
|
|
60
52
|
export * from './lib/widgets/sub-menu/sub-menu.component';
|
|
61
|
-
/** Providers */
|
|
62
53
|
export * from './lib/custom/token';
|