vc-layout 0.0.1 → 0.0.3

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.
Files changed (31) hide show
  1. package/esm2022/lib/components/global-alert/global-alert/global-alert.component.mjs +180 -8
  2. package/esm2022/lib/components/header/business-cycle/business-cycle.component.mjs +4 -4
  3. package/esm2022/lib/components/header/header-container/header-container.component.mjs +27 -6
  4. package/esm2022/lib/components/header/search/search.component.mjs +2 -2
  5. package/esm2022/lib/components/product-list/module-list/module-list.component.mjs +33 -7
  6. package/esm2022/lib/components/product-list/preference-list/preference-list.component.mjs +26 -46
  7. package/esm2022/lib/components/product-list/product-list-container/product-list-container.component.mjs +2 -2
  8. package/esm2022/lib/components/product-list/product-list.module.mjs +5 -4
  9. package/esm2022/lib/constants/alerts.constant.mjs +7 -0
  10. package/esm2022/lib/constants/app-url.constant.mjs +9 -7
  11. package/esm2022/lib/constants/assets.constants.mjs +17 -17
  12. package/esm2022/lib/constants/product-list.constant.mjs +29 -8
  13. package/esm2022/lib/shared/pipe/get-module-icon.pipe.mjs +22 -0
  14. package/esm2022/lib/shared/pipe/pipes.module.mjs +21 -4
  15. package/esm2022/lib/shared/services/business-cycle.service.mjs +3 -5
  16. package/esm2022/lib/shared/services/layout.service.mjs +2 -1
  17. package/esm2022/lib/shared/services/product-list.service.mjs +7 -7
  18. package/fesm2022/vc-layout.mjs +390 -135
  19. package/fesm2022/vc-layout.mjs.map +1 -1
  20. package/lib/components/global-alert/global-alert/global-alert.component.d.ts +24 -5
  21. package/lib/components/header/header-container/header-container.component.d.ts +2 -1
  22. package/lib/components/product-list/module-list/module-list.component.d.ts +3 -1
  23. package/lib/components/product-list/preference-list/preference-list.component.d.ts +5 -2
  24. package/lib/components/product-list/product-list.module.d.ts +2 -1
  25. package/lib/constants/alerts.constant.d.ts +1 -0
  26. package/lib/constants/assets.constants.d.ts +1 -30
  27. package/lib/constants/product-list.constant.d.ts +1 -0
  28. package/lib/shared/pipe/get-module-icon.pipe.d.ts +7 -0
  29. package/lib/shared/pipe/pipes.module.d.ts +3 -2
  30. package/lib/shared/services/layout.service.d.ts +1 -0
  31. package/package.json +1 -1
@@ -1,8 +1,27 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ApiService } from '../../../shared/services/api.service';
2
3
  import * as i0 from "@angular/core";
3
- export declare class GlobalAlertComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
4
+ export declare class GlobalAlertComponent {
5
+ private apiService;
6
+ activeIndex: number;
7
+ messages: Array<any>;
8
+ mailAlert: any;
9
+ isNotificationVisible: boolean;
10
+ subscriptionData: any;
11
+ feature: any;
12
+ subscriptionStatus: EventEmitter<any>;
13
+ constructor(apiService: ApiService);
14
+ setSubscriptionInfo(): void;
15
+ getOrgDetails(): void;
16
+ setMessages(subscriptionData: any): void;
17
+ /**
18
+ * If the response is true, then push the message to the array. If the response is false, then remove
19
+ * the message from the array.
20
+ * </code>
21
+ * @param {any} res - any = {
22
+ */
23
+ setMailAlert(res: any): void;
24
+ getPasswordResetUrl(): string;
6
25
  static ɵfac: i0.ɵɵFactoryDeclaration<GlobalAlertComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<GlobalAlertComponent, "vc-global-alert", never, {}, {}, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<GlobalAlertComponent, "vc-global-alert", never, { "feature": { "alias": "feature"; "required": false; }; }, { "subscriptionStatus": "subscriptionStatus"; }, never, never, false, never>;
8
27
  }
@@ -6,10 +6,11 @@ export declare class HeaderContainerComponent implements OnInit {
6
6
  ASSETS: any;
7
7
  showBusinessCycle: string[];
8
8
  currentUrl: string;
9
+ featureFlag: any;
9
10
  businessCycleChange: EventEmitter<any>;
10
11
  openDialog: EventEmitter<any>;
11
12
  constructor(apiService: ApiService);
12
13
  ngOnInit(): void;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderContainerComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderContainerComponent, "vc-header-container", never, {}, { "openDialog": "openDialog"; }, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderContainerComponent, "vc-header-container", never, { "featureFlag": { "alias": "featureFlag"; "required": false; }; }, { "openDialog": "openDialog"; }, never, never, false, never>;
15
16
  }
@@ -8,6 +8,7 @@ export declare class ModuleListComponent implements OnInit {
8
8
  private productListService;
9
9
  private apiService;
10
10
  featureFlag: any;
11
+ activeModule: string;
11
12
  onToggleSubmenu: EventEmitter<any>;
12
13
  ASSETS: any;
13
14
  PRODUCT_LIST: any;
@@ -20,6 +21,7 @@ export declare class ModuleListComponent implements OnInit {
20
21
  * @returns Returns false to prevent the default behavior.
21
22
  */
22
23
  onSubMenuToggle(eachProduct: any): boolean;
24
+ get getActiveModule(): void;
23
25
  /**
24
26
  * Checks the module subscription and updates the product list accordingly.
25
27
  * Subscribes to the `subscriptionDetail$` observable from the `apiService` and updates the `PRODUCT_LIST` property of the component based on the received data.
@@ -38,5 +40,5 @@ export declare class ModuleListComponent implements OnInit {
38
40
  private setProductList;
39
41
  private getUserDetails;
40
42
  static ɵfac: i0.ɵɵFactoryDeclaration<ModuleListComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ModuleListComponent, "vc-module-list", never, { "featureFlag": { "alias": "featureFlag"; "required": false; }; }, { "onToggleSubmenu": "onToggleSubmenu"; }, never, never, false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModuleListComponent, "vc-module-list", never, { "featureFlag": { "alias": "featureFlag"; "required": false; }; "activeModule": { "alias": "activeModule"; "required": false; }; }, { "onToggleSubmenu": "onToggleSubmenu"; }, never, never, false, never>;
42
44
  }
@@ -1,9 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { LayoutService } from '../../../shared/services/layout.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class PreferenceListComponent implements OnInit {
4
- ASSETS: any;
5
- constructor();
5
+ private layoutService;
6
+ PREFERENCE_LIST: any;
7
+ constructor(layoutService: LayoutService);
6
8
  ngOnInit(): void;
9
+ setUrl(): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<PreferenceListComponent, never>;
8
11
  static ɵcmp: i0.ɵɵComponentDeclaration<PreferenceListComponent, "vc-preference-list", never, {}, {}, never, never, false, never>;
9
12
  }
@@ -4,8 +4,9 @@ import * as i2 from "./module-list/module-list.component";
4
4
  import * as i3 from "./preference-list/preference-list.component";
5
5
  import * as i4 from "@angular/common";
6
6
  import * as i5 from "../../shared/ui-kit/tooltip/tooltip.module";
7
+ import * as i6 from "../../shared/pipe/pipes.module";
7
8
  export declare class ProductListModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductListModule, [typeof i1.ProductListContainerComponent, typeof i2.ModuleListComponent, typeof i3.PreferenceListComponent], [typeof i4.CommonModule, typeof i5.TooltipModule], [typeof i1.ProductListContainerComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductListModule, [typeof i1.ProductListContainerComponent, typeof i2.ModuleListComponent, typeof i3.PreferenceListComponent], [typeof i4.CommonModule, typeof i5.TooltipModule, typeof i6.PipesModule], [typeof i1.ProductListContainerComponent]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductListModule>;
11
12
  }
@@ -0,0 +1 @@
1
+ export declare const GLOBAL_ALERTS: any;
@@ -1,30 +1 @@
1
- export declare const ASSETS: {
2
- unauthorized: string;
3
- v_icon: string;
4
- hamburger_icon: string;
5
- dashboard_icon: string;
6
- toDoResponsibility_icon: string;
7
- organization_icon: string;
8
- compliance_icon: string;
9
- assessment_icon: string;
10
- risk_icon: string;
11
- assurance_icon: string;
12
- audit_icon: string;
13
- issue_icon: string;
14
- policy_icon: string;
15
- downloadCenter_icon: string;
16
- settings_icon: string;
17
- selected_dashboard_icon: string;
18
- selected_to_do_responsibility_icon: string;
19
- selected_organization_icon: string;
20
- selected_compliance_icon: string;
21
- selected_assessment_icon: string;
22
- selected_risk_icon: string;
23
- selected_assurance_icon: string;
24
- selected_audit_icon: string;
25
- selected_issue_icon: string;
26
- selected_policy_icon: string;
27
- selected_download_center_icon: string;
28
- selected_settings_icon: string;
29
- support_icon: string;
30
- };
1
+ export declare const ASSETS: any;
@@ -1 +1,2 @@
1
1
  export declare const PRODUCT_LIST: any;
2
+ export declare const PREFERENCE_LIST: any;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GetModuleIconPipe implements PipeTransform {
4
+ transform(module: string, activeModule: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetModuleIconPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetModuleIconPipe, "getModuleIcon", false>;
7
+ }
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./get-file-url.pipe";
3
3
  import * as i2 from "./check-create-permission.pipe";
4
4
  import * as i3 from "./date-format.pipe";
5
- import * as i4 from "@angular/common";
5
+ import * as i4 from "./get-module-icon.pipe";
6
+ import * as i5 from "@angular/common";
6
7
  export declare class PipesModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.GetFileUrlPipe, typeof i2.CreatePermissionPipe, typeof i3.DateFormatPipe], [typeof i4.CommonModule], [typeof i1.GetFileUrlPipe, typeof i2.CreatePermissionPipe, typeof i3.DateFormatPipe]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.GetFileUrlPipe, typeof i2.CreatePermissionPipe, typeof i3.DateFormatPipe, typeof i4.GetModuleIconPipe], [typeof i5.CommonModule], [typeof i1.GetFileUrlPipe, typeof i2.CreatePermissionPipe, typeof i3.DateFormatPipe, typeof i4.GetModuleIconPipe]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
10
11
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class LayoutService {
3
3
  baseUrl: string;
4
+ pathName: string;
4
5
  constructor();
5
6
  private setBaseUrl;
6
7
  ConvertUtcToLocalDateTime(timestamp: number, TimeZone: string): string | 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vc-layout",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "