ngx-sp-auth 4.2.2 → 4.2.3

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.
@@ -1,6 +1,9 @@
1
- import { IError, ITelaRota } from 'ngx-sp-infra';
1
+ import { IError, ITelaRota, IV6Menu, IV6Submenu, IV6Tela } from 'ngx-sp-infra';
2
2
  export declare class RetTelasPesquisa implements IError {
3
3
  Error: boolean;
4
4
  ErrorMessage: string;
5
5
  Telas: ITelaRota[];
6
+ _Telas: IV6Tela[];
7
+ Menus: IV6Menu[];
8
+ Submenus: IV6Submenu[];
6
9
  }
@@ -1,9 +1,9 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
3
- import { ITelaRota } from 'ngx-sp-infra';
4
3
  import { Observable } from 'rxjs';
5
4
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
6
5
  import { RetTelasPesquisa } from '../models/ret-telas-pesquisa.model';
6
+ import { ProjectUtilservice } from '../project/project-utils.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Serviço responsável por criar e gerenciar uma instância global do componente SearchInput.
@@ -32,6 +32,7 @@ export declare class PesquisaTelasGlobalService {
32
32
  private _injector;
33
33
  private _httpClient;
34
34
  private _customEnvironmentService;
35
+ private _projectUtils;
35
36
  /**
36
37
  * Referência ao componente dinâmico criado.
37
38
  * Usado para gerenciar o ciclo de vida e estado do componente.
@@ -43,6 +44,11 @@ export declare class PesquisaTelasGlobalService {
43
44
  * Ao invés de tratar o evento onClose diretamente, emitimos neste Subject para permitir um ponto único de tratamento no serviço.
44
45
  */
45
46
  private _onClose$;
47
+ /**
48
+ * Subject que centraliza eventos de pesquisa do componente.
49
+ * Ao invés de tratar o evento onSearch diretamente, emitimos neste Subject para permitir um ponto único de tratamento no serviço.
50
+ */
51
+ private _onSearch$;
46
52
  /**
47
53
  * Agregador de subscriptions de longa duração.
48
54
  * Contém principalmente a inscrição do constructor que observa _onClose$.
@@ -55,10 +61,14 @@ export declare class PesquisaTelasGlobalService {
55
61
  * Null quando não há componente ativo.
56
62
  */
57
63
  private _componentCloseSub;
64
+ /**
65
+ * Subscription específica do evento onSearch do componente atual.
66
+ * Null quando não há componente ativo.
67
+ */
68
+ private _componentSearchSub;
58
69
  private readonly _BASE_URL;
59
70
  private readonly _HTTP_HEADERS;
60
- telas: ITelaRota[];
61
- constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService);
71
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService, _projectUtils: ProjectUtilservice);
62
72
  /**
63
73
  * Lifecycle hook do Angular chamado quando o serviço é destruído.
64
74
  *
@@ -72,6 +82,12 @@ export declare class PesquisaTelasGlobalService {
72
82
  * manter essa limpeza é uma boa prática e ajuda em testes.
73
83
  */
74
84
  ngOnDestroy(): void;
85
+ /**
86
+ * Método responsável pela busca por telas via API.
87
+ *
88
+ * @param pesquisa Termo de pesquisa para filtrar as telas.
89
+ * @returns Observable emitindo o resultado da pesquisa de telas.
90
+ */
75
91
  getTelas(pesquisa: string): Observable<RetTelasPesquisa>;
76
92
  /**
77
93
  * Cria e exibe uma instância do componente SearchInput na tela.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
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.3",
25
+ "ngx-sp-infra": "^6.4.4",
26
26
  "ngx-toastr": "^19.0.0"
27
27
  },
28
28
  "sideEffects": false,