ngx-sp-auth 4.2.1 → 4.2.2
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/fesm2022/ngx-sp-auth.mjs +77 -62
- package/fesm2022/ngx-sp-auth.mjs.map +1 -1
- package/lib/components/menu-lateral/menu/menu-lateral.component.d.ts +3 -3
- package/lib/models/ret-telas-pesquisa.model.d.ts +6 -0
- package/lib/services/pesquisa-telas-global.service.d.ts +30 -22
- package/package.json +2 -2
|
@@ -20,7 +20,6 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
private _msalGuardConfiguration;
|
|
21
21
|
private _msalService;
|
|
22
22
|
private _toastrService;
|
|
23
|
-
_customMenuService: LibCustomMenuService;
|
|
24
23
|
private _customEnvironmentService;
|
|
25
24
|
private _authStorageService;
|
|
26
25
|
private _bsModalService;
|
|
@@ -29,8 +28,9 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
|
|
|
29
28
|
private _projectUtilService;
|
|
30
29
|
private _router;
|
|
31
30
|
private _authService;
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
_customMenuService: LibCustomMenuService;
|
|
32
|
+
_pesquisaTelas: PesquisaTelasGlobalService;
|
|
33
|
+
constructor(_msalGuardConfiguration: MsalGuardConfiguration, _msalService: MsalService, _toastrService: ToastrService, _customEnvironmentService: LibCustomEnvironmentService, _authStorageService: AuthStorageService, _bsModalService: BsModalService, _menuServices: MenuServicesService, _messageService: MessageService, _projectUtilService: ProjectUtilservice, _router: Router, _authService: AuthService, _customMenuService: LibCustomMenuService, _pesquisaTelas: PesquisaTelasGlobalService);
|
|
34
34
|
ngOnInit(): Promise<void>;
|
|
35
35
|
ngOnDestroy(): void;
|
|
36
36
|
sidebar: ElementRef<HTMLDivElement>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
2
3
|
import { ITelaRota } from 'ngx-sp-infra';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
|
|
6
|
+
import { RetTelasPesquisa } from '../models/ret-telas-pesquisa.model';
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
4
8
|
/**
|
|
5
9
|
* Serviço responsável por criar e gerenciar uma instância global do componente SearchInput.
|
|
@@ -23,9 +27,11 @@ import * as i0 from "@angular/core";
|
|
|
23
27
|
* }
|
|
24
28
|
*/
|
|
25
29
|
export declare class PesquisaTelasGlobalService {
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
30
|
+
private _componentFactoryResolver;
|
|
31
|
+
private _appRef;
|
|
32
|
+
private _injector;
|
|
33
|
+
private _httpClient;
|
|
34
|
+
private _customEnvironmentService;
|
|
29
35
|
/**
|
|
30
36
|
* Referência ao componente dinâmico criado.
|
|
31
37
|
* Usado para gerenciar o ciclo de vida e estado do componente.
|
|
@@ -49,9 +55,24 @@ export declare class PesquisaTelasGlobalService {
|
|
|
49
55
|
* Null quando não há componente ativo.
|
|
50
56
|
*/
|
|
51
57
|
private _componentCloseSub;
|
|
58
|
+
private readonly _BASE_URL;
|
|
59
|
+
private readonly _HTTP_HEADERS;
|
|
52
60
|
telas: ITelaRota[];
|
|
53
|
-
constructor(
|
|
54
|
-
|
|
61
|
+
constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService);
|
|
62
|
+
/**
|
|
63
|
+
* Lifecycle hook do Angular chamado quando o serviço é destruído.
|
|
64
|
+
*
|
|
65
|
+
* Realiza limpeza completa de recursos para evitar memory leaks:
|
|
66
|
+
* 1. Destrói qualquer instância ativa do componente
|
|
67
|
+
* 2. Cancela todas as inscrições de longa duração
|
|
68
|
+
* 3. Completa o Subject de eventos
|
|
69
|
+
*
|
|
70
|
+
* NOTA: Como este serviço é providedIn: 'root', ele normalmente
|
|
71
|
+
* só será destruído quando a aplicação for encerrada. Ainda assim,
|
|
72
|
+
* manter essa limpeza é uma boa prática e ajuda em testes.
|
|
73
|
+
*/
|
|
74
|
+
ngOnDestroy(): void;
|
|
75
|
+
getTelas(pesquisa: string): Observable<RetTelasPesquisa>;
|
|
55
76
|
/**
|
|
56
77
|
* Cria e exibe uma instância do componente SearchInput na tela.
|
|
57
78
|
*
|
|
@@ -73,27 +94,14 @@ export declare class PesquisaTelasGlobalService {
|
|
|
73
94
|
* Esconde e destrói a instância atual do componente.
|
|
74
95
|
*
|
|
75
96
|
* Este método realiza a limpeza completa do componente:
|
|
76
|
-
* 1.
|
|
77
|
-
* 2.
|
|
78
|
-
* 3.
|
|
79
|
-
* 4. Remove referências e cancela inscrições
|
|
97
|
+
* 1. Remove o componente do ciclo de detecção de mudanças
|
|
98
|
+
* 2. Destrói o componente e sua árvore de componentes
|
|
99
|
+
* 3. Remove referências e cancela inscrições
|
|
80
100
|
*
|
|
81
101
|
* IMPORTANTE: Este método é idempotente - é seguro chamá-lo múltiplas vezes ou quando não há componente ativo.
|
|
82
102
|
*/
|
|
83
103
|
hide(): void;
|
|
84
|
-
|
|
85
|
-
* Lifecycle hook do Angular chamado quando o serviço é destruído.
|
|
86
|
-
*
|
|
87
|
-
* Realiza limpeza completa de recursos para evitar memory leaks:
|
|
88
|
-
* 1. Destrói qualquer instância ativa do componente
|
|
89
|
-
* 2. Cancela todas as inscrições de longa duração
|
|
90
|
-
* 3. Completa o Subject de eventos
|
|
91
|
-
*
|
|
92
|
-
* NOTA: Como este serviço é providedIn: 'root', ele normalmente
|
|
93
|
-
* só será destruído quando a aplicação for encerrada. Ainda assim,
|
|
94
|
-
* manter essa limpeza é uma boa prática e ajuda em testes.
|
|
95
|
-
*/
|
|
96
|
-
ngOnDestroy(): void;
|
|
104
|
+
private showErrorMessage;
|
|
97
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<PesquisaTelasGlobalService, never>;
|
|
98
106
|
static ɵprov: i0.ɵɵInjectableDeclaration<PesquisaTelasGlobalService>;
|
|
99
107
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-sp-auth",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Biblioteca de utilitários de autenticação.",
|
|
5
5
|
"author": "P&D",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@azure/msal-angular": "^4.0.16",
|
|
24
24
|
"@azure/msal-browser": "^4.18.0",
|
|
25
|
-
"ngx-sp-infra": "^6.4.
|
|
25
|
+
"ngx-sp-infra": "^6.4.3",
|
|
26
26
|
"ngx-toastr": "^19.0.0"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|