i-tech-shared-components 1.1.52 → 1.1.522
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/esm2022/lib/components/new-sidebar/company-image/company-image.component.mjs +22 -0
- package/esm2022/lib/components/new-sidebar/new-sidebar.component.mjs +195 -0
- package/esm2022/lib/interfaces/auth.interface.mjs +13 -0
- package/esm2022/lib/interfaces/navigation-link.interface.mjs +2 -0
- package/esm2022/lib/interfaces/timezone.interface.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/i-tech-shared-components.mjs +219 -3
- package/fesm2022/i-tech-shared-components.mjs.map +1 -1
- package/lib/components/new-sidebar/company-image/company-image.component.d.ts +10 -0
- package/lib/components/new-sidebar/new-sidebar.component.d.ts +49 -0
- package/lib/interfaces/auth.interface.d.ts +44 -0
- package/lib/interfaces/navigation-link.interface.d.ts +10 -0
- package/lib/interfaces/timezone.interface.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthInterface, CompaniesEnum, OrganizationInterface } from "../../../interfaces/auth.interface";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CompanyImageComponent {
|
|
4
|
+
userData: AuthInterface;
|
|
5
|
+
currentCompany: OrganizationInterface;
|
|
6
|
+
platform: CompaniesEnum;
|
|
7
|
+
CompaniesEnum: typeof CompaniesEnum;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompanyImageComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompanyImageComponent, "i-tech-company-image", never, { "userData": { "alias": "userData"; "required": false; }; "currentCompany": { "alias": "currentCompany"; "required": false; }; "platform": { "alias": "platform"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { AuthInterface, CompaniesEnum, OrganizationInterface } from "../../interfaces/auth.interface";
|
|
4
|
+
import { NavigationLinks } from "../../interfaces/navigation-link.interface";
|
|
5
|
+
import { HttpClient } from "@angular/common/http";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NewSidebarComponent implements OnInit, AfterViewInit {
|
|
8
|
+
private router;
|
|
9
|
+
private http;
|
|
10
|
+
canDeactivate(): void;
|
|
11
|
+
collapseEvent: EventEmitter<boolean>;
|
|
12
|
+
signOutEvent: EventEmitter<void>;
|
|
13
|
+
newAuthenticatedResponseEvent: EventEmitter<AuthInterface>;
|
|
14
|
+
platform: CompaniesEnum;
|
|
15
|
+
navigationLinks: Array<NavigationLinks>;
|
|
16
|
+
env: any;
|
|
17
|
+
userData: AuthInterface;
|
|
18
|
+
assetsPath: string;
|
|
19
|
+
isCollapsed: boolean;
|
|
20
|
+
activePage: string;
|
|
21
|
+
secondLayerActivePage: string;
|
|
22
|
+
secondLayerOpened: boolean;
|
|
23
|
+
secondLayerLinks: Array<NavigationLinks>;
|
|
24
|
+
currentCompany: OrganizationInterface;
|
|
25
|
+
allOrganizations: Array<OrganizationInterface>;
|
|
26
|
+
activeAndInactivePlatforms: Record<string, Array<{
|
|
27
|
+
id: CompaniesEnum;
|
|
28
|
+
name: string;
|
|
29
|
+
checked?: boolean;
|
|
30
|
+
}>>;
|
|
31
|
+
constructor(router: Router, http: HttpClient);
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
openPlatform(system: CompaniesEnum): void;
|
|
35
|
+
detectActiveAndInactiveApps(): void;
|
|
36
|
+
switchOrganization(company: OrganizationInterface): void;
|
|
37
|
+
getAllCompanies(): void;
|
|
38
|
+
openLanding(): void;
|
|
39
|
+
navigateBack(): void;
|
|
40
|
+
detectActivePage(): void;
|
|
41
|
+
navigate(link: NavigationLinks): void;
|
|
42
|
+
changeCollapse(value: boolean): void;
|
|
43
|
+
privacyPolicyOrTermsCondition(privacy?: boolean): void;
|
|
44
|
+
signOut(): void;
|
|
45
|
+
openZendeskPage(support?: boolean): void;
|
|
46
|
+
manageAccount(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NewSidebarComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NewSidebarComponent, "i-tech-sidebar", never, { "platform": { "alias": "platform"; "required": false; }; "navigationLinks": { "alias": "navigationLinks"; "required": false; }; "env": { "alias": "env"; "required": false; }; "userData": { "alias": "userData"; "required": false; }; "assetsPath": { "alias": "assetsPath"; "required": false; }; }, { "collapseEvent": "collapseEvent"; "signOutEvent": "signOutEvent"; "newAuthenticatedResponseEvent": "newAuthenticatedResponseEvent"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TimezoneInterface } from "./timezone.interface";
|
|
2
|
+
export interface AuthInterface {
|
|
3
|
+
id: number;
|
|
4
|
+
uniqueId: string;
|
|
5
|
+
email: string;
|
|
6
|
+
countryCode: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
userName: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
middleName: string;
|
|
12
|
+
image: string;
|
|
13
|
+
accessToken: string;
|
|
14
|
+
refreshToken: string;
|
|
15
|
+
expiresIn: number;
|
|
16
|
+
companyId?: number;
|
|
17
|
+
timeZone?: TimezoneInterface;
|
|
18
|
+
systemRoles?: Array<SystemRoleInterface>;
|
|
19
|
+
}
|
|
20
|
+
export interface OrganizationInterface {
|
|
21
|
+
id: number;
|
|
22
|
+
uniqueId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
image: string;
|
|
25
|
+
isMyCompany: boolean;
|
|
26
|
+
systems: Array<CompaniesEnum>;
|
|
27
|
+
ownerEmail: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SystemRoleInterface {
|
|
30
|
+
roles: Array<{
|
|
31
|
+
key: RoleEnum;
|
|
32
|
+
}>;
|
|
33
|
+
system: CompaniesEnum;
|
|
34
|
+
}
|
|
35
|
+
export declare enum RoleEnum {
|
|
36
|
+
T3_ROLE_DISPATCHER = "T3_ROLE_DISPATCHER",
|
|
37
|
+
T3_ROLE_ADMIN = "T3_ROLE_ADMIN",
|
|
38
|
+
ROLE_OWNER = "ROLE_OWNER"
|
|
39
|
+
}
|
|
40
|
+
export declare enum CompaniesEnum {
|
|
41
|
+
T3 = "T3",
|
|
42
|
+
TMT = "TMT",
|
|
43
|
+
BROKERAGE = "BROKERAGE"
|
|
44
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export * from './lib/components/date-range-datepicker/date-range-datepicker.comp
|
|
|
18
18
|
export * from './lib/components/menu/menu.component';
|
|
19
19
|
export * from './lib/components/label/label.component';
|
|
20
20
|
export * from './lib/components/date-time-picker/date-time-picker.component';
|
|
21
|
+
export * from './lib/components/new-sidebar/new-sidebar.component';
|