@propmix/profet-common-header 3.0.15-utility-unstable → 3.0.15-utility-unstable.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.
@@ -1,3 +1,4 @@
1
+ import { EventEmitter, Type } from "@angular/core";
1
2
  import { PROFET_APPS } from "./utils/apps.enum";
2
3
  export interface AppMenu {
3
4
  appType: PROFET_APPS;
@@ -35,3 +36,13 @@ export interface Company {
35
36
  export interface SessionOutInfo {
36
37
  sessionOutTimeInMins?: number;
37
38
  }
39
+ export interface UtilityConfig {
40
+ id: string;
41
+ label: string;
42
+ component: Type<any>;
43
+ layout: 'push' | 'side' | 'over';
44
+ icon: string;
45
+ }
46
+ export interface UtilityComp {
47
+ outEvent: EventEmitter<boolean>;
48
+ }
@@ -12,6 +12,9 @@ export declare class CommonHeaderService {
12
12
  activeMenuList$: import("rxjs").Observable<AppMenu[] | null>;
13
13
  private companyListSubject;
14
14
  companyList$: import("rxjs").Observable<Company[] | null>;
15
+ private utilityContentDrawerSub;
16
+ utilityContentToggle$: import("rxjs").Observable<void>;
17
+ toggleUtilityContentDrawer(): void;
15
18
  constructor(config: HeaderConfig);
16
19
  setMenuState(data: AppMenu[]): void;
17
20
  setCompanyList(data: Company[]): void;
@@ -1,9 +1,9 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
- import { MatSidenav } from '@angular/material/sidenav';
3
+ import { MatDrawer, MatSidenav } from '@angular/material/sidenav';
4
4
  import { DomSanitizer } from '@angular/platform-browser';
5
5
  import { Router } from '@angular/router';
6
- import { AppMenu, Company } from '../common-header.interface';
6
+ import { AppMenu, Company, UtilityConfig } from '../common-header.interface';
7
7
  import { CommonHeaderService } from '../common-header.service';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class HeaderComponent implements OnInit, OnDestroy {
@@ -43,12 +43,17 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
43
43
  value: AppMenu[];
44
44
  }[];
45
45
  activeCompany: Company | undefined;
46
+ utilitySpace: MatDrawer;
47
+ config: UtilityConfig[];
48
+ selected?: UtilityConfig;
49
+ openItem(item: UtilityConfig): void;
46
50
  constructor();
47
51
  ngOnInit(): Promise<void>;
48
52
  resetTimer(): void;
49
53
  selectCurrentCompany(): void;
50
54
  patchCurrentCompanyInfo(): void;
51
55
  sideMenuToggle(): void;
56
+ closeUtilitySpace(): void;
52
57
  private groupByAppType;
53
58
  menuSelection(menu: AppMenu): void;
54
59
  getCompanyList(): void;
@@ -59,5 +64,5 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
59
64
  switchCompany(info: any): void;
60
65
  ngOnDestroy(): void;
61
66
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "lib-header", never, { "INACTIVITY_LIMIT": "INACTIVITY_LIMIT"; }, {}, never, ["[headerInfo]", "[utilityApps]", "[bodyContentInfo]"], false, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "lib-header", never, { "INACTIVITY_LIMIT": "INACTIVITY_LIMIT"; "config": "config"; }, {}, never, ["[headerInfo]", "[bodyContentInfo]"], false, never>;
63
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propmix/profet-common-header",
3
- "version": "3.0.15-utility-unstable",
3
+ "version": "3.0.15-utility-unstable.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=15.2.0",
6
6
  "@angular/core": ">=15.2.0",