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.
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ export interface BaseNavigationLink {
2
+ title: string;
3
+ pageEnum: string;
4
+ linkTo: string;
5
+ hasDivider?: boolean;
6
+ }
7
+ export interface NavigationLinks extends BaseNavigationLink {
8
+ image: string;
9
+ subPages?: Array<NavigationLinks>;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface TimezoneInterface {
2
+ name: string;
3
+ standardTimeOffset: number;
4
+ dayLightTimeOffset: number;
5
+ zoneId: string;
6
+ enumType: 'PT' | 'MT' | 'CT' | 'ET' | 'ARZ' | 'UTC';
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i-tech-shared-components",
3
- "version": "1.1.52",
3
+ "version": "1.1.522",
4
4
  "peerDependencies": {
5
5
  "@angular/material": "~18.2.14",
6
6
  "@angular/animations": "~18.0.0",
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';