@propmix/profet-common-header 3.2.0-beta → 3.2.0-beta.1
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.
- package/esm2020/lib/header/header.component.mjs +42 -11
- package/fesm2015/propmix-profet-common-header.mjs +41 -11
- package/fesm2015/propmix-profet-common-header.mjs.map +1 -1
- package/fesm2020/propmix-profet-common-header.mjs +41 -11
- package/fesm2020/propmix-profet-common-header.mjs.map +1 -1
- package/lib/header/header.component.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
4
|
import { MatSidenav } from '@angular/material/sidenav';
|
|
4
5
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
6
|
import { Router } from '@angular/router';
|
|
@@ -40,6 +41,7 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
|
40
41
|
appConfig: any;
|
|
41
42
|
companyList: Company[];
|
|
42
43
|
sidenav: MatSidenav;
|
|
44
|
+
menuTrigger: MatMenuTrigger;
|
|
43
45
|
menuList: {
|
|
44
46
|
key: string;
|
|
45
47
|
value: AppMenu[];
|
|
@@ -52,6 +54,12 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
|
52
54
|
* If on localhost or an IP, it falls back to the hostname.
|
|
53
55
|
*/
|
|
54
56
|
private getRootDomain;
|
|
57
|
+
/**
|
|
58
|
+
* Generates a unique cookie name based on the environment root domain.
|
|
59
|
+
* e.g. 'lastActive' on .qa.profet.ai -> 'lastActive_qa_profet_ai'
|
|
60
|
+
* @param name Base cookie name
|
|
61
|
+
*/
|
|
62
|
+
private getSuffixedCookieName;
|
|
55
63
|
private setCookie;
|
|
56
64
|
private getCookie;
|
|
57
65
|
resetTimer(isUserActivity?: boolean): void;
|