ngx-sp-auth 3.3.5 → 4.0.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.
@@ -34,10 +34,11 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
34
34
  sidebar: ElementRef<HTMLDivElement>;
35
35
  handleKeyboardShortcut: (event: KeyboardEvent) => void;
36
36
  private _hostServeUrlOutSystems;
37
+ private readonly MODAL_ESTABELECIMENTO;
38
+ private readonly MODAL_VERSION;
37
39
  private notif_template?;
38
40
  menuLink: HTMLAnchorElement;
39
41
  desiredContent?: TemplateRef<any>;
40
- readonly MODAL_ESTABELECIMENTO: number;
41
42
  nomeEstabelecimento: string;
42
43
  titleSubmenu: string;
43
44
  submenuList: (ISubmenuItemStructure | undefined)[];
@@ -77,13 +78,18 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
77
78
  private initMsal;
78
79
  /** Função simples com o objetivo de abrir os modais no centro da tela.
79
80
  * @param template Template HTML do modal que será aberto.
80
- * @param modalID ID do modal que será aberto, para que possa ser referenciado depois.
81
81
  */
82
- openModal(template: TemplateRef<any>, modalID: number): void;
82
+ openModalEstabelecimento(template: TemplateRef<any>): void;
83
83
  /** Função simples com o objetivo de fechar os modais que estiverem abertos (baseados pelo ID).
84
- * @param modalID ID do modal que será fechado.
85
84
  */
86
- closeModal(modalID: number): void;
85
+ closeModalEstabelecimento(): void;
86
+ /** Função simples com o objetivo de abrir os modais no centro da tela.
87
+ * @param template Template HTML do modal que será aberto.
88
+ */
89
+ openModalVersion(template: TemplateRef<any>): void;
90
+ /** Função simples com o objetivo de fechar os modais que estiverem abertos (baseados pelo ID).
91
+ */
92
+ closeModalVersion(): void;
87
93
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuLateralComponent, never>;
88
94
  static ɵcmp: i0.ɵɵComponentDeclaration<MenuLateralComponent, "app-menu-lateral", never, {}, {}, ["desiredContent"], ["*"], true, never>;
89
95
  }
@@ -1,5 +1,4 @@
1
- import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
- import { BsModalService } from 'ngx-bootstrap/modal';
1
+ import { EventEmitter, OnInit } from '@angular/core';
3
2
  import { InfraEstabelecimentoFavoritoDefault, MessageService } from 'ngx-sp-infra';
4
3
  import { AuthStorageService } from '../../../../storage/auth-storage.service';
5
4
  import { ProjectUtilservice } from '../../../../project/project-utils.service';
@@ -8,12 +7,11 @@ import { MenuServicesService } from '../../menu-services.service';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class SelecaoEstabelecimentosModalComponent implements OnInit {
10
9
  private _authStorageService;
11
- private _bsModalService;
12
10
  private _customMenuService;
13
11
  private _menuServicesService;
14
12
  private _messageService;
15
13
  private _projectUtilService;
16
- constructor(_authStorageService: AuthStorageService, _bsModalService: BsModalService, _customMenuService: LibCustomMenuService, _menuServicesService: MenuServicesService, _messageService: MessageService, _projectUtilService: ProjectUtilservice);
14
+ constructor(_authStorageService: AuthStorageService, _customMenuService: LibCustomMenuService, _menuServicesService: MenuServicesService, _messageService: MessageService, _projectUtilService: ProjectUtilservice);
17
15
  ngOnInit(): void;
18
16
  onClose: EventEmitter<any>;
19
17
  onSelected: EventEmitter<any>;
@@ -56,17 +54,6 @@ export declare class SelecaoEstabelecimentosModalComponent implements OnInit {
56
54
  /** Reseta a paginação da listagem.
57
55
  */
58
56
  resetPagination(list: any[]): void;
59
- /**
60
- * Função simples com o objetivo de abrir os modais no centro da tela.
61
- * @param template Template HTML do modal que será aberto.
62
- * @param modalID ID do modal que será aberto, para que possa ser referenciado depois.
63
- */
64
- openModal(template: TemplateRef<any>, modalID: number): void;
65
- /**
66
- * Função simples com o objetivo de fechar os modais que estiverem abertos (baseados pelo ID).
67
- * @param modalID ID do modal que será fechado.
68
- */
69
- closeModal(modalID: number): void;
70
57
  closeSelf(): void;
71
58
  static ɵfac: i0.ɵɵFactoryDeclaration<SelecaoEstabelecimentosModalComponent, never>;
72
59
  static ɵcmp: i0.ɵɵComponentDeclaration<SelecaoEstabelecimentosModalComponent, "selecao-estabelecimentos-modal", never, {}, { "onClose": "onClose"; "onSelected": "onSelected"; }, never, never, true, never>;
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ProjectUtilservice } from '../../../../project/project-utils.service';
3
+ import { MenuServicesService } from '../../menu-services.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VersoesModalComponent implements OnInit {
6
+ private _menuServicesService;
7
+ private _projectUtilService;
8
+ constructor(_menuServicesService: MenuServicesService, _projectUtilService: ProjectUtilservice);
9
+ ngOnInit(): void;
10
+ onClose: EventEmitter<any>;
11
+ versionInfra: string;
12
+ versionCorporativo: string;
13
+ private getVersions;
14
+ closeSelf(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<VersoesModalComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<VersoesModalComponent, "versoes-modal", never, {}, { "onClose": "onClose"; }, never, never, true, never>;
17
+ }
@@ -11,18 +11,23 @@ import { RetNavSubMenu, RetSubmenuWithCards } from './model/ret-navsubmenu';
11
11
  import { NavSubmenuSearchItem } from './model/navsubmenu-searchitem';
12
12
  import { RetDynamicMenu } from './model/dynamic-menu';
13
13
  import { RetDropDown } from './model/ret-dropdown';
14
+ import { RetVersion } from './model/ret-version';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class MenuServicesService {
16
17
  private _authStorageService;
17
18
  private _httpClient;
18
19
  private _customEnvironmentService;
19
20
  private readonly _BASE_URL;
21
+ private readonly _BASE_URL_VERSION_INFRA;
22
+ private readonly _BASE_URL_VERSION_CORPORATIVO;
20
23
  private readonly _HTTP_HEADERS;
21
24
  constructor(_authStorageService: AuthStorageService, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService);
22
25
  getEstabelecimentosModalList(usuarioID: string, pesquisa: string): Observable<RetEstabelecimentosModal>;
23
26
  getImagemMenu(): Observable<RetInfraUsuarioImg>;
24
27
  getEstabelecimentoSession(estabID: string): Observable<RetEstabelecimentoSession>;
25
28
  getUsuarioEmail(): Observable<RetInfraUsuarioEmail>;
29
+ getVersionInfra(): Observable<RetVersion>;
30
+ getVersionCorporativo(): Observable<RetVersion>;
26
31
  updateLastLogEstabID(estabID: string): Observable<RetError>;
27
32
  defineDefaultEstabelecimento(estabID: string, usuarioID: string, isDefault: boolean): Observable<RetError>;
28
33
  /** Método executado para pegar o Menu lateral levando em conta as permissões do usuário, grupo e o tenant ativo
@@ -0,0 +1,6 @@
1
+ import { IError } from 'ngx-sp-infra';
2
+ export declare class RetVersion implements IError {
3
+ Error: boolean;
4
+ ErrorMessage: string;
5
+ Version: string;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "3.3.5",
3
+ "version": "4.0.2",
4
4
  "description": "Biblioteca de utilitários da Infra.",
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": "^5.19.2",
25
+ "ngx-sp-infra": "^6.0.0",
26
26
  "ngx-toastr": "^19.0.0"
27
27
  },
28
28
  "sideEffects": false,