ngx-sp-auth 4.5.1 → 4.5.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.
@@ -9,9 +9,9 @@ import { RetLogin } from './models/ret-login';
9
9
  import { IpServiceService, RetError } from 'ngx-sp-infra';
10
10
  import { LibCustomEnvironmentService } from './custom/lib-custom-environment.service';
11
11
  import { LibCustomLoginService } from './custom/lib-custom-login.service';
12
- import { ProjectUtilservice } from './project/project-utils.service';
13
12
  import { IndexedDBService } from './services/indexed-db.service';
14
13
  import { AuthStorageService } from './storage/auth-storage.service';
14
+ import { AuthUtilService } from './utils/auth-utils.service';
15
15
  import * as i0 from "@angular/core";
16
16
  export declare class AuthService {
17
17
  private _httpClient;
@@ -19,7 +19,7 @@ export declare class AuthService {
19
19
  private _authStorageService;
20
20
  private _ipServiceService;
21
21
  private _customLoginService;
22
- private _projectUtilservice;
22
+ private _authUtilService;
23
23
  private _customEnvironmentService;
24
24
  private _indexedDBService;
25
25
  private _pendingWarning;
@@ -31,7 +31,7 @@ export declare class AuthService {
31
31
  private city;
32
32
  private state;
33
33
  private country;
34
- constructor(_httpClient: HttpClient, _router: Router, _authStorageService: AuthStorageService, _ipServiceService: IpServiceService, _customLoginService: LibCustomLoginService, _projectUtilservice: ProjectUtilservice, _customEnvironmentService: LibCustomEnvironmentService, _indexedDBService: IndexedDBService);
34
+ constructor(_httpClient: HttpClient, _router: Router, _authStorageService: AuthStorageService, _ipServiceService: IpServiceService, _customLoginService: LibCustomLoginService, _authUtilService: AuthUtilService, _customEnvironmentService: LibCustomEnvironmentService, _indexedDBService: IndexedDBService);
35
35
  private getParms;
36
36
  private getHostName;
37
37
  /** Obtém o método de autenticação
@@ -8,8 +8,8 @@ import { FormUtils, MessageService } from 'ngx-sp-infra';
8
8
  import { AuthService } from '../../auth.service';
9
9
  import { LibCustomEnvironmentService } from '../../custom/lib-custom-environment.service';
10
10
  import { LibCustomLoginService } from '../../custom/lib-custom-login.service';
11
- import { ProjectUtilservice } from '../../project/project-utils.service';
12
11
  import { AuthStorageService } from '../../storage/auth-storage.service';
12
+ import { AuthUtilService } from '../../utils/auth-utils.service';
13
13
  import * as i0 from "@angular/core";
14
14
  export declare enum LoginProgress {
15
15
  Domain = 1,
@@ -26,7 +26,7 @@ export declare class LoginComponent implements OnInit {
26
26
  private _msalService;
27
27
  _customLoginService: LibCustomLoginService;
28
28
  private _formBuilder;
29
- private _projectUtilservice;
29
+ private _authUtilService;
30
30
  private _authService;
31
31
  private _customEnvironmentService;
32
32
  private _authStorageService;
@@ -34,7 +34,7 @@ export declare class LoginComponent implements OnInit {
34
34
  private _router;
35
35
  private _toastrService;
36
36
  private _messageService;
37
- constructor(_msalGuardConfiguration: MsalGuardConfiguration, _msalService: MsalService, _customLoginService: LibCustomLoginService, _formBuilder: FormBuilder, _projectUtilservice: ProjectUtilservice, _authService: AuthService, _customEnvironmentService: LibCustomEnvironmentService, _authStorageService: AuthStorageService, _title: Title, _router: Router, _toastrService: ToastrService, _messageService: MessageService);
37
+ constructor(_msalGuardConfiguration: MsalGuardConfiguration, _msalService: MsalService, _customLoginService: LibCustomLoginService, _formBuilder: FormBuilder, _authUtilService: AuthUtilService, _authService: AuthService, _customEnvironmentService: LibCustomEnvironmentService, _authStorageService: AuthStorageService, _title: Title, _router: Router, _toastrService: ToastrService, _messageService: MessageService);
38
38
  private _situacaoLogin;
39
39
  currentTime: Date;
40
40
  year: number;
@@ -2,12 +2,12 @@ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { MessageService } from 'ngx-sp-infra';
4
4
  import { AuthService } from '../../auth.service';
5
- import { ProjectUtilservice } from '../../project/project-utils.service';
6
5
  import { AuthStorageService } from '../../storage/auth-storage.service';
6
+ import { AuthUtilService } from '../../utils/auth-utils.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class LoginOSComponent implements OnInit, OnDestroy {
9
9
  private _authService;
10
- private _projectUtilService;
10
+ private _authUtilService;
11
11
  private _route;
12
12
  private _router;
13
13
  private _storageService;
@@ -17,7 +17,7 @@ export declare class LoginOSComponent implements OnInit, OnDestroy {
17
17
  private _timerSubscription;
18
18
  loginStatus: "loading" | "success" | "error" | "updated";
19
19
  timer: number;
20
- constructor(_authService: AuthService, _projectUtilService: ProjectUtilservice, _route: ActivatedRoute, _router: Router, _storageService: AuthStorageService, _messageService: MessageService);
20
+ constructor(_authService: AuthService, _authUtilService: AuthUtilService, _route: ActivatedRoute, _router: Router, _storageService: AuthStorageService, _messageService: MessageService);
21
21
  ngOnInit(): void;
22
22
  logOn(): void;
23
23
  redirect(): void;
@@ -1,19 +1,19 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { LibCustomMenuService } from '../../../../custom/lib-custom-menu.service';
4
- import { ProjectUtilservice } from '../../../../project/project-utils.service';
4
+ import { AuthUtilService } from '../../../../utils/auth-utils.service';
5
5
  import { MenuServicesService } from '../../menu-services.service';
6
6
  import { IProjeto } from '../../model/iprojeto';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class PrimaryDropdownComponent implements OnInit {
9
9
  private _customMenuService;
10
- private _projectUtilservice;
10
+ private _authUtilService;
11
11
  private _menuServices;
12
12
  selectDataState: boolean;
13
13
  modulo: any;
14
14
  buttonWasClicked: Observable<boolean>;
15
15
  primaryDropdown: Array<any>;
16
- constructor(_customMenuService: LibCustomMenuService, _projectUtilservice: ProjectUtilservice, _menuServices: MenuServicesService);
16
+ constructor(_customMenuService: LibCustomMenuService, _authUtilService: AuthUtilService, _menuServices: MenuServicesService);
17
17
  ngOnInit(): void;
18
18
  openDropdown(modulo: any, desiredDropdown: TemplateRef<any>): void;
19
19
  onClickedOutside(e: Event, ref: HTMLDivElement): void;
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { ProjectUtilservice } from '../../../../project/project-utils.service';
2
+ import { AuthUtilService } from '../../../../utils/auth-utils.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SecondaryDropdownComponent implements OnInit {
5
- private _projectUtilservice;
5
+ private _authUtilService;
6
6
  modulo: any;
7
7
  backPrimaryDropdown: EventEmitter<boolean>;
8
- constructor(_projectUtilservice: ProjectUtilservice);
8
+ constructor(_authUtilService: AuthUtilService);
9
9
  ngOnInit(): void;
10
10
  backToPrimary(): void;
11
11
  redirectToModulo(urlModulo: string): void;
@@ -6,8 +6,8 @@ import { BsModalService } from 'ngx-bootstrap/modal';
6
6
  import { ToastrService } from 'ngx-toastr';
7
7
  import { MessageService } from 'ngx-sp-infra';
8
8
  import { LibCustomMenuService } from '../../../custom/lib-custom-menu.service';
9
- import { ProjectUtilservice } from '../../../project/project-utils.service';
10
9
  import { AuthStorageService } from '../../../storage/auth-storage.service';
10
+ import { AuthUtilService } from '../../../utils/auth-utils.service';
11
11
  import { MenuServicesService } from '../menu-services.service';
12
12
  import { BreakpointObserver } from '@angular/cdk/layout';
13
13
  import { AuthService } from '../../../auth.service';
@@ -27,14 +27,14 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
27
27
  private _bsModalService;
28
28
  private _menuServices;
29
29
  private _messageService;
30
- private _projectUtilService;
30
+ private _authUtilService;
31
31
  private _router;
32
32
  private _authService;
33
33
  private _breakpointObserver;
34
34
  _customMenuService: LibCustomMenuService;
35
35
  _pesquisaTelas: PesquisaTelasGlobalService;
36
36
  idb: IndexedDBService;
37
- constructor(_msalGuardConfiguration: MsalGuardConfiguration, _msalService: MsalService, _toastrService: ToastrService, _customEnvironmentService: LibCustomEnvironmentService, _authStorageService: AuthStorageService, _bsModalService: BsModalService, _menuServices: MenuServicesService, _messageService: MessageService, _projectUtilService: ProjectUtilservice, _router: Router, _authService: AuthService, _breakpointObserver: BreakpointObserver, _customMenuService: LibCustomMenuService, _pesquisaTelas: PesquisaTelasGlobalService, idb: IndexedDBService);
37
+ constructor(_msalGuardConfiguration: MsalGuardConfiguration, _msalService: MsalService, _toastrService: ToastrService, _customEnvironmentService: LibCustomEnvironmentService, _authStorageService: AuthStorageService, _bsModalService: BsModalService, _menuServices: MenuServicesService, _messageService: MessageService, _authUtilService: AuthUtilService, _router: Router, _authService: AuthService, _breakpointObserver: BreakpointObserver, _customMenuService: LibCustomMenuService, _pesquisaTelas: PesquisaTelasGlobalService, idb: IndexedDBService);
38
38
  ngOnInit(): Promise<void>;
39
39
  ngOnDestroy(): void;
40
40
  sidebar: ElementRef<HTMLDivElement>;
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { InfraEstabelecimentoFavoritoDefault, MessageService } from 'ngx-sp-infra';
3
- import { AuthStorageService } from '../../../../storage/auth-storage.service';
4
- import { ProjectUtilservice } from '../../../../project/project-utils.service';
5
3
  import { LibCustomMenuService } from '../../../../custom/lib-custom-menu.service';
4
+ import { AuthStorageService } from '../../../../storage/auth-storage.service';
5
+ import { AuthUtilService } from '../../../../utils/auth-utils.service';
6
6
  import { MenuServicesService } from '../../menu-services.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class SelecaoEstabelecimentosModalComponent implements OnInit {
@@ -10,8 +10,8 @@ export declare class SelecaoEstabelecimentosModalComponent implements OnInit {
10
10
  private _customMenuService;
11
11
  private _menuServicesService;
12
12
  private _messageService;
13
- private _projectUtilService;
14
- constructor(_authStorageService: AuthStorageService, _customMenuService: LibCustomMenuService, _menuServicesService: MenuServicesService, _messageService: MessageService, _projectUtilService: ProjectUtilservice);
13
+ private _authUtilService;
14
+ constructor(_authStorageService: AuthStorageService, _customMenuService: LibCustomMenuService, _menuServicesService: MenuServicesService, _messageService: MessageService, _authUtilService: AuthUtilService);
15
15
  ngOnInit(): void;
16
16
  onClose: EventEmitter<any>;
17
17
  onSelected: EventEmitter<any>;
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { ProjectUtilservice } from '../../../../project/project-utils.service';
2
+ import { AuthUtilService } from '../../../../utils/auth-utils.service';
3
3
  import { MenuServicesService } from '../../menu-services.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class VersoesModalComponent implements OnInit {
6
6
  private _menuServicesService;
7
- private _projectUtilService;
8
- constructor(_menuServicesService: MenuServicesService, _projectUtilService: ProjectUtilservice);
7
+ private _authUtilService;
8
+ constructor(_menuServicesService: MenuServicesService, _authUtilService: AuthUtilService);
9
9
  ngOnInit(): void;
10
10
  onClose: EventEmitter<any>;
11
11
  versionInfra: string;
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
- import { ProjectUtilservice } from '../../../../project/project-utils.service';
3
+ import { AuthUtilService } from '../../../../utils/auth-utils.service';
4
4
  import { IMenuItemStructure } from '../../model/imenu-item-structure.model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DynamicMenuComponent implements OnInit {
7
7
  router: Router;
8
- private _projectUtilService;
8
+ private _authUtilService;
9
9
  selectTemplate: EventEmitter<any>;
10
10
  submenuRef: HTMLDivElement;
11
11
  recebeParam: Function;
@@ -17,7 +17,7 @@ export declare class DynamicMenuComponent implements OnInit {
17
17
  selectedMenuItem: number[];
18
18
  selectedItem: number;
19
19
  desiredContent?: TemplateRef<any>;
20
- constructor(router: Router, _projectUtilService: ProjectUtilservice);
20
+ constructor(router: Router, _authUtilService: AuthUtilService);
21
21
  ngOnInit(): void;
22
22
  onClickedOutside(e: Event, ref: HTMLDivElement): void;
23
23
  indicateSelectedMenuItem(): void;
@@ -3,20 +3,20 @@ import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { Title } from '@angular/platform-browser';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { FormUtils, MessageService } from 'ngx-sp-infra';
6
- import { ProjectUtilservice } from '../../project/project-utils.service';
7
6
  import { AuthService } from '../../auth.service';
8
7
  import { AuthStorageService } from '../../storage/auth-storage.service';
8
+ import { AuthUtilService } from '../../utils/auth-utils.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class NovaSenhaComponent implements OnInit {
11
11
  private _formBuilder;
12
- private _projectUtilservice;
12
+ private _authUtilService;
13
13
  private _messageService;
14
14
  private _authService;
15
15
  private _authStorageService;
16
16
  private _title;
17
17
  private _router;
18
18
  private _route;
19
- constructor(_formBuilder: FormBuilder, _projectUtilservice: ProjectUtilservice, _messageService: MessageService, _authService: AuthService, _authStorageService: AuthStorageService, _title: Title, _router: Router, _route: ActivatedRoute);
19
+ constructor(_formBuilder: FormBuilder, _authUtilService: AuthUtilService, _messageService: MessageService, _authService: AuthService, _authStorageService: AuthStorageService, _title: Title, _router: Router, _route: ActivatedRoute);
20
20
  ngOnInit(): void;
21
21
  private domain;
22
22
  private user;
@@ -19,7 +19,9 @@ export declare class IndexedDBService {
19
19
  private _customEnvironment;
20
20
  private _restored?;
21
21
  private _dbName;
22
- protected database?: IDBDatabase;
22
+ private _lock;
23
+ private _isInitialized;
24
+ private _initPromise?;
23
25
  protected request?: IDBPDatabase<unknown>;
24
26
  constructor(_customEnvironment: LibCustomEnvironmentService);
25
27
  /**
@@ -32,7 +34,6 @@ export declare class IndexedDBService {
32
34
  /**
33
35
  * Busca um valor na base dentro de um objectStore.
34
36
  *
35
- * @param storeName Nome do objectStore
36
37
  * @param key Valor da chave única
37
38
  * @returns Promise<> com o valor encontrado ou undefined se não encontrar
38
39
  */
@@ -49,28 +50,60 @@ export declare class IndexedDBService {
49
50
  * @param key Valor da chave única
50
51
  */
51
52
  delete(key: string): Promise<void>;
53
+ /**
54
+ * Garante que a database foi inicializada antes de usar qualquer operação.
55
+ * Se `initializeDatabase()` foi chamado mas ainda não completou, aguarda a promise.
56
+ * Previne race conditions ao tentar usar operações durante a inicialização.
57
+ *
58
+ * @private
59
+ */
60
+ private _ensureInitialized;
52
61
  /**
53
62
  * Inicializa as configurações iniciais do IndexedDB e já cria o objectStore que será utilizado caso não exista.
54
63
  *
55
- * O object store que será criado terá sua chave inline na propriedade `key` e o índice será a propriedade `context`, portanto todos os valores que forem inseridos **DEVEM** ser um objeto com pelo menos a propriedade `key` e `context`.
56
- * Deve ser chamado no constructor do seu componente para garantir inicialização correta pelo componente
64
+ * ⚠️ IMPORTANTE: Deve ser chamado com `await` no ngOnInit() do seu componente, não no constructor!
57
65
  *
58
- * @param dbName Nome da base de dados que será usada
66
+ * O object store que será criado terá sua chave inline na propriedade `key` e o índice será a propriedade `context`,
67
+ * portanto todos os valores que forem inseridos **DEVEM** ser um objeto com pelo menos a propriedade `key` e `context`.
68
+ *
69
+ * @example
70
+ * async ngOnInit() {
71
+ * await this._indexedDB.initializeDatabase();
72
+ * const restored = await this._indexedDB.get('minha-chave');
73
+ * }
59
74
  */
60
75
  initializeDatabase(): Promise<void>;
76
+ /**
77
+ * Executa a inicialização real da database.
78
+ * @private
79
+ */
80
+ private _performInitialization;
61
81
  /**
62
82
  * Exclui uma database do IndexedDB com base no nome.
63
83
  *
64
- * @param name Nome da database
84
+ * Deve ser chamado durante o logout para limpar dados do usuário.
85
+ *
86
+ * @example
87
+ * await this._indexedDB.closeOpenConnection();
88
+ * await this._indexedDB.deleteDatabase();
65
89
  */
66
90
  deleteDatabase(): Promise<void>;
67
91
  /**
68
92
  * Fecha a conexão persistente (se existir) sem excluir a database.
69
93
  * Útil para cenários onde se precisa liberar a conexão antes de chamar `deleteDatabase()`.
94
+ *
95
+ * @example
96
+ * await this._indexedDB.closeOpenConnection();
70
97
  */
71
98
  closeOpenConnection(): Promise<void>;
72
99
  /**
73
- * Valida se existe um valor cadastrado na base com a chave-única que foi informada, se houver retorna ele, caso contrário cria um registro placeholder para poder atualizar depois.
100
+ * Executa o fechamento real da conexão.
101
+ * @private
102
+ */
103
+ private _closeConnection;
104
+ /**
105
+ * Valida se já existe um valor cadastrado na base com a chave-única que foi informada,
106
+ * se houver retorna ele, caso contrário cria um registro placeholder para poder atualizar depois.
74
107
  *
75
108
  * @param key Valor da chave única
76
109
  * @param value (opcional) Valor placeholder caso não exista um valor previamente criado
@@ -3,7 +3,7 @@ import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/cor
3
3
  import { Observable } from 'rxjs';
4
4
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
5
5
  import { RetTelasPesquisa } from '../models/ret-telas-pesquisa.model';
6
- import { ProjectUtilservice } from '../project/project-utils.service';
6
+ import { AuthUtilService } from '../utils/auth-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,7 +32,7 @@ export declare class PesquisaTelasGlobalService {
32
32
  private _injector;
33
33
  private _httpClient;
34
34
  private _customEnvironmentService;
35
- private _projectUtils;
35
+ private _authUtils;
36
36
  /**
37
37
  * Referência ao componente dinâmico criado.
38
38
  * Usado para gerenciar o ciclo de vida e estado do componente.
@@ -68,7 +68,7 @@ export declare class PesquisaTelasGlobalService {
68
68
  private _componentSearchSub;
69
69
  private readonly _BASE_URL;
70
70
  private readonly _HTTP_HEADERS;
71
- constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService, _projectUtils: ProjectUtilservice);
71
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService, _authUtils: AuthUtilService);
72
72
  /**
73
73
  * Lifecycle hook do Angular chamado quando o serviço é destruído.
74
74
  *
@@ -3,7 +3,7 @@ import { CheckUrlAndMethodService, MessageService } from 'ngx-sp-infra';
3
3
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
4
4
  import { AuthStorageService } from '../storage/auth-storage.service';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ProjectUtilservice {
6
+ export declare class AuthUtilService {
7
7
  private router;
8
8
  private authStorageService;
9
9
  private checkUrlAndMethodService;
@@ -14,6 +14,6 @@ export declare class ProjectUtilservice {
14
14
  showHTTPErrorOS(error: any): void;
15
15
  private showExpiredAccess;
16
16
  getHostName(): string;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ProjectUtilservice, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<ProjectUtilservice>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthUtilService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthUtilService>;
19
19
  }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { MenuServicesService } from '../../components/menu-lateral/menu-services.service';
3
- import { ProjectUtilservice } from '../../project/project-utils.service';
3
+ import { AuthUtilService } from '../../utils/auth-utils.service';
4
4
  import { LibCustomEnvironmentService } from './../../custom/lib-custom-environment.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class NavSubMenus {
@@ -19,7 +19,7 @@ export declare class TelaItem {
19
19
  }
20
20
  export declare class SubMenuComponent implements OnInit {
21
21
  private _menuService;
22
- private _projectUtil;
22
+ private _authUtilService;
23
23
  private _customEnv;
24
24
  navSubmenus: NavSubMenus[];
25
25
  isProduction: boolean;
@@ -29,7 +29,7 @@ export declare class SubMenuComponent implements OnInit {
29
29
  onTelaSelecionada: EventEmitter<string | null>;
30
30
  hostNameOutSystems: string;
31
31
  listaSubMenus: SubMenuItem[];
32
- constructor(_menuService: MenuServicesService, _projectUtil: ProjectUtilservice, _customEnv: LibCustomEnvironmentService);
32
+ constructor(_menuService: MenuServicesService, _authUtilService: AuthUtilService, _customEnv: LibCustomEnvironmentService);
33
33
  ngOnInit(): void;
34
34
  private listaFunction;
35
35
  private getHostName;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MenuServicesService } from '../../components/menu-lateral/menu-services.service';
3
3
  import { LibCustomEnvironmentService } from '../../custom/lib-custom-environment.service';
4
- import { ProjectUtilservice } from '../../project/project-utils.service';
4
+ import { AuthUtilService } from '../../utils/auth-utils.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class NavSubmenuCards {
7
7
  titulo: string;
@@ -12,12 +12,12 @@ export declare class NavSubmenuCards {
12
12
  }
13
13
  export declare class SubMenuCardComponent implements OnInit {
14
14
  private _menuService;
15
- private _projectUtil;
15
+ private _authUtilService;
16
16
  private _customEnv;
17
17
  subMenuCards: NavSubmenuCards[];
18
18
  hostName: string;
19
19
  getExternalUrl: (url: string) => string;
20
- constructor(_menuService: MenuServicesService, _projectUtil: ProjectUtilservice, _customEnv: LibCustomEnvironmentService);
20
+ constructor(_menuService: MenuServicesService, _authUtilService: AuthUtilService, _customEnv: LibCustomEnvironmentService);
21
21
  ngOnInit(): void;
22
22
  GetHostName(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<SubMenuCardComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "description": "Biblioteca de utilitários de autenticação.",
5
5
  "author": "P&D",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -8,10 +8,10 @@ export * from './lib/custom/lib-custom-login.service';
8
8
  export * from './lib/custom/lib-custom-menu.service';
9
9
  export * from './lib/custom/lib-custom-storage.service';
10
10
  export * from './lib/custom/lib-menu-config.service';
11
- export * from './lib/project/project-utils.service';
12
11
  export * from './lib/services/indexed-db.service';
13
12
  export * from './lib/services/pesquisa-telas-global.service';
14
13
  export * from './lib/storage/auth-storage.service';
14
+ export * from './lib/utils/auth-utils.service';
15
15
  /** Components */
16
16
  export * from './lib/components/error-menu-not-allowed/error-menu-not-allowed.component';
17
17
  export * from './lib/components/login-os/login-os.component';