ngx-vector-components 6.30.0 → 6.32.0

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,14 +1,20 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { AppName, MenuItem } from '../../models';
4
4
  import { VectorApp } from '../../models/vector-app.model';
5
5
  import { MenuService, ProfileService, StorageService } from '../../services';
6
6
  import * as i0 from "@angular/core";
7
+ export interface MenuSearchResult {
8
+ item: MenuItem;
9
+ path: string;
10
+ topLevelId: string | undefined;
11
+ }
7
12
  export declare class MenuComponent implements OnInit, OnDestroy {
8
13
  private menuService;
9
14
  private router;
10
15
  private profileService;
11
16
  private storageService;
17
+ private hostElement;
12
18
  private environment;
13
19
  private currentApp;
14
20
  options: MenuItem[];
@@ -34,12 +40,39 @@ export declare class MenuComponent implements OnInit, OnDestroy {
34
40
  private _opened;
35
41
  private subscription;
36
42
  private currentWindowWidth;
37
- constructor(menuService: MenuService, router: Router, profileService: ProfileService, storageService: StorageService, environment: any, currentApp: string);
43
+ constructor(menuService: MenuService, router: Router, profileService: ProfileService, storageService: StorageService, hostElement: ElementRef<HTMLElement>, environment: any, currentApp: string);
38
44
  ngOnInit(): void;
39
- onResize(): void;
40
- handleKeyboardEvent(): void;
41
45
  ngOnDestroy(): void;
42
46
  toggleMenu(): void;
47
+ private readonly expandedKeys;
48
+ visibleChildren(item: MenuItem | undefined): MenuItem[];
49
+ hasChildren(item: MenuItem): boolean;
50
+ hasCaret(item: MenuItem): boolean;
51
+ isExpanded(item: MenuItem): boolean;
52
+ private activeFrameUrl;
53
+ isCurrentDestination(item: MenuItem): boolean;
54
+ private selectedTopLevelId;
55
+ onTopLevelClick(item: MenuItem): void;
56
+ isHighlighted(item: MenuItem): boolean;
57
+ private containsCurrentDestination;
58
+ private static readonly SEARCH_MIN_LENGTH;
59
+ private searchInput?;
60
+ searchResults: MenuSearchResult[];
61
+ highlightedIndex: number;
62
+ onSearchInput(term: string): void;
63
+ onSearchKeydown(event: KeyboardEvent): void;
64
+ selectResult(result: MenuSearchResult): void;
65
+ private scrollHighlightedIntoView;
66
+ clearSearch(): void;
67
+ onDocumentKeydown(event: KeyboardEvent): void;
68
+ focusSearch(): void;
69
+ onDocumentMousedown(event: MouseEvent): void;
70
+ private normalize;
71
+ private flattenDestinations;
72
+ private navigateTo;
73
+ onItemClick(item: MenuItem): void;
74
+ toggleSubmenu(key: string): void;
75
+ isSubmenuExpanded(key: string): boolean;
43
76
  onMenuClick(option: MenuItem): void;
44
77
  onSubmenuClick(submenuItem: MenuItem): void;
45
78
  private isDescendantOf;
@@ -3,8 +3,9 @@ import * as i1 from "./menu.component";
3
3
  import * as i2 from "./sub-menus-list/sub-menus-list.component";
4
4
  import * as i3 from "../../shared/shared.module";
5
5
  import * as i4 from "primeng/overlaypanel";
6
+ import * as i5 from "primeng/drawer";
6
7
  export declare class MenuModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<MenuModule, [typeof i1.MenuComponent, typeof i2.SubMenusListComponent], [typeof i3.SharedModule, typeof i4.OverlayPanelModule], [typeof i1.MenuComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MenuModule, [typeof i1.MenuComponent, typeof i2.SubMenusListComponent], [typeof i3.SharedModule, typeof i4.OverlayPanelModule, typeof i5.DrawerModule], [typeof i1.MenuComponent]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<MenuModule>;
10
11
  }
@@ -14,13 +14,14 @@ export declare class TopBarComponent implements OnInit, OnDestroy {
14
14
  private storageService;
15
15
  private notificationsService;
16
16
  private errorMessageService;
17
+ private currentApp;
17
18
  hideElements: boolean;
18
19
  openedMenu: boolean;
19
20
  openedChangeAccountMenu: boolean;
20
21
  showNotifications: boolean;
21
22
  doingOnboarding: boolean;
22
- vectorFirstName: any;
23
- currentAccount: any;
23
+ readonly vectorFirstName: import("@angular/core").WritableSignal<string | undefined>;
24
+ readonly currentAccount: import("@angular/core").WritableSignal<any>;
24
25
  isAdmin: boolean;
25
26
  otherAccounts: any[];
26
27
  maskUtil: typeof MaskUtil;
@@ -32,14 +33,17 @@ export declare class TopBarComponent implements OnInit, OnDestroy {
32
33
  onClick: EventEmitter<string>;
33
34
  notificationsList: VectorNotification[];
34
35
  private subscription;
35
- constructor(menuService: MenuService, authService: AuthService, router: Router, profileService: ProfileService, storageService: StorageService, notificationsService: NotificationsService, errorMessageService: ErrorMessageService);
36
+ constructor(menuService: MenuService, authService: AuthService, router: Router, profileService: ProfileService, storageService: StorageService, notificationsService: NotificationsService, errorMessageService: ErrorMessageService, currentApp: string);
36
37
  ngOnInit(): void;
37
38
  ngOnDestroy(): void;
38
39
  toggleMenu(): void;
39
40
  logout(): void;
40
41
  isDesktop(): boolean;
42
+ get showsAccountData(): boolean;
43
+ get isLogtech(): boolean;
41
44
  changeAccount(newAccount: any): void;
42
45
  goToTermsOfUse(): void;
46
+ termsOfUse(): void;
43
47
  goToPasswordChange(): void;
44
48
  goToProfile(): void;
45
49
  goToTariff(): void;
@@ -787,5 +787,6 @@ export declare enum ProfileModuleActionType {
787
787
  CAN_EDIT_CTE_COMPLEMENT_SUBSIDIARIES = "Pode Editar Filiais Cte Complementar",
788
788
  CAN_ADD_CTE_COMPLEMENT_EXCEL_INFOS = "Pode Adicionar Excel Infos Cte Complementar",
789
789
  PAYMENT_SCHEDULE_MONITOR = "Monitor Agenda",
790
- FINANCIAL_EVENTS = "Eventos Financeiro"
790
+ FINANCIAL_EVENTS = "Eventos Financeiro",
791
+ CAN_ACTIVATE_INACTIVATE_TYPES = "Pode Ativar Inativar Tipos"
791
792
  }
@@ -8,6 +8,7 @@ export declare class ProfileService {
8
8
  private storageService;
9
9
  readonly moduleProfile$: BehaviorSubject<ProfileModule[] | undefined>;
10
10
  readonly profileFirstName$: BehaviorSubject<string | undefined>;
11
+ readonly profileFirstName: import("@angular/core").WritableSignal<string | undefined>;
11
12
  readonly profileTypeItens$: BehaviorSubject<{
12
13
  shipper: number;
13
14
  carrierId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "6.30.0",
3
+ "version": "6.32.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.2.0",
6
6
  "@angular/cdk": "^19.2.0",