vc-layout 0.0.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.
Files changed (116) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/components/global-alert/global-alert/global-alert.component.mjs +13 -0
  3. package/esm2022/lib/components/global-alert/global-alert.module.mjs +18 -0
  4. package/esm2022/lib/components/header/business-cycle/business-cycle.component.mjs +279 -0
  5. package/esm2022/lib/components/header/create-workflow/create-workflow.component.mjs +18 -0
  6. package/esm2022/lib/components/header/header-container/header-container.component.mjs +36 -0
  7. package/esm2022/lib/components/header/header.module.mjs +64 -0
  8. package/esm2022/lib/components/header/queue/queue.component.mjs +59 -0
  9. package/esm2022/lib/components/header/search/search.component.mjs +14 -0
  10. package/esm2022/lib/components/header/support/support.component.mjs +31 -0
  11. package/esm2022/lib/components/header/user-details/user-details.component.mjs +34 -0
  12. package/esm2022/lib/components/product-list/module-list/module-list.component.mjs +130 -0
  13. package/esm2022/lib/components/product-list/preference-list/preference-list.component.mjs +83 -0
  14. package/esm2022/lib/components/product-list/product-list-container/product-list-container.component.mjs +33 -0
  15. package/esm2022/lib/components/product-list/product-list.module.mjs +27 -0
  16. package/esm2022/lib/components/sub-menu/sub-menu-container/sub-menu-container.component.mjs +117 -0
  17. package/esm2022/lib/components/sub-menu/sub-menu.module.mjs +19 -0
  18. package/esm2022/lib/configurations.mjs +6 -0
  19. package/esm2022/lib/constants/api.constant.mjs +7 -0
  20. package/esm2022/lib/constants/app-url.constant.mjs +18 -0
  21. package/esm2022/lib/constants/assets.constants.mjs +32 -0
  22. package/esm2022/lib/constants/product-list.constant.mjs +92 -0
  23. package/esm2022/lib/shared/pipe/check-create-permission.pipe.mjs +17 -0
  24. package/esm2022/lib/shared/pipe/date-format.pipe.mjs +35 -0
  25. package/esm2022/lib/shared/pipe/get-file-url.pipe.mjs +22 -0
  26. package/esm2022/lib/shared/pipe/pipes.module.mjs +20 -0
  27. package/esm2022/lib/shared/services/api.service.mjs +96 -0
  28. package/esm2022/lib/shared/services/business-cycle.service.mjs +125 -0
  29. package/esm2022/lib/shared/services/layout.service.mjs +40 -0
  30. package/esm2022/lib/shared/services/product-list.service.mjs +82 -0
  31. package/esm2022/lib/shared/services/rbac.service.mjs +58 -0
  32. package/esm2022/lib/shared/ui-kit/avatar/avatar/avatar.component.mjs +43 -0
  33. package/esm2022/lib/shared/ui-kit/avatar/avatar.module.mjs +19 -0
  34. package/esm2022/lib/shared/ui-kit/formgroup/checkbox/checkbox.component.mjs +39 -0
  35. package/esm2022/lib/shared/ui-kit/formgroup/click-outside.directive.mjs +29 -0
  36. package/esm2022/lib/shared/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.mjs +28 -0
  37. package/esm2022/lib/shared/ui-kit/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.mjs +32 -0
  38. package/esm2022/lib/shared/ui-kit/formgroup/cs-radio/cs-radio.component.mjs +30 -0
  39. package/esm2022/lib/shared/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.mjs +14 -0
  40. package/esm2022/lib/shared/ui-kit/formgroup/cs-select/cs-select.component.mjs +102 -0
  41. package/esm2022/lib/shared/ui-kit/formgroup/cs-switch/cs-switch.component.mjs +35 -0
  42. package/esm2022/lib/shared/ui-kit/formgroup/formgroup.module.mjs +65 -0
  43. package/esm2022/lib/shared/ui-kit/formgroup/pipes/pascal.pipe.mjs +19 -0
  44. package/esm2022/lib/shared/ui-kit/formgroup/pipes/searchMultiSelect.pipe.mjs +24 -0
  45. package/esm2022/lib/shared/ui-kit/popover/popover-event.directive.mjs +28 -0
  46. package/esm2022/lib/shared/ui-kit/popover/popover-longpress.directive.mjs +48 -0
  47. package/esm2022/lib/shared/ui-kit/popover/popover.component.mjs +141 -0
  48. package/esm2022/lib/shared/ui-kit/popover/popover.directive.mjs +82 -0
  49. package/esm2022/lib/shared/ui-kit/popover/popover.module.mjs +23 -0
  50. package/esm2022/lib/shared/ui-kit/popover/popover.service.mjs +15 -0
  51. package/esm2022/lib/shared/ui-kit/tooltip/tooltip.directive.mjs +156 -0
  52. package/esm2022/lib/shared/ui-kit/tooltip/tooltip.module.mjs +18 -0
  53. package/esm2022/lib/vc-layout.component.mjs +19 -0
  54. package/esm2022/lib/vc-layout.module.mjs +24 -0
  55. package/esm2022/lib/vc-layout.service.mjs +14 -0
  56. package/esm2022/public-api.mjs +14 -0
  57. package/esm2022/vc-layout.mjs +5 -0
  58. package/fesm2022/vc-layout.mjs +2457 -0
  59. package/fesm2022/vc-layout.mjs.map +1 -0
  60. package/index.d.ts +5 -0
  61. package/lib/components/global-alert/global-alert/global-alert.component.d.ts +8 -0
  62. package/lib/components/global-alert/global-alert.module.d.ts +8 -0
  63. package/lib/components/header/business-cycle/business-cycle.component.d.ts +87 -0
  64. package/lib/components/header/create-workflow/create-workflow.component.d.ts +9 -0
  65. package/lib/components/header/header-container/header-container.component.d.ts +15 -0
  66. package/lib/components/header/header.module.d.ts +20 -0
  67. package/lib/components/header/queue/queue.component.d.ts +12 -0
  68. package/lib/components/header/search/search.component.d.ts +8 -0
  69. package/lib/components/header/support/support.component.d.ts +10 -0
  70. package/lib/components/header/user-details/user-details.component.d.ts +14 -0
  71. package/lib/components/product-list/module-list/module-list.component.d.ts +42 -0
  72. package/lib/components/product-list/preference-list/preference-list.component.d.ts +9 -0
  73. package/lib/components/product-list/product-list-container/product-list-container.component.d.ts +10 -0
  74. package/lib/components/product-list/product-list.module.d.ts +11 -0
  75. package/lib/components/sub-menu/sub-menu-container/sub-menu-container.component.d.ts +11 -0
  76. package/lib/components/sub-menu/sub-menu.module.d.ts +9 -0
  77. package/lib/configurations.d.ts +4 -0
  78. package/lib/constants/api.constant.d.ts +6 -0
  79. package/lib/constants/app-url.constant.d.ts +1 -0
  80. package/lib/constants/assets.constants.d.ts +30 -0
  81. package/lib/constants/product-list.constant.d.ts +1 -0
  82. package/lib/shared/pipe/check-create-permission.pipe.d.ts +7 -0
  83. package/lib/shared/pipe/date-format.pipe.d.ts +7 -0
  84. package/lib/shared/pipe/get-file-url.pipe.d.ts +10 -0
  85. package/lib/shared/pipe/pipes.module.d.ts +10 -0
  86. package/lib/shared/services/api.service.d.ts +37 -0
  87. package/lib/shared/services/business-cycle.service.d.ts +51 -0
  88. package/lib/shared/services/layout.service.d.ts +9 -0
  89. package/lib/shared/services/product-list.service.d.ts +31 -0
  90. package/lib/shared/services/rbac.service.d.ts +25 -0
  91. package/lib/shared/ui-kit/avatar/avatar/avatar.component.d.ts +12 -0
  92. package/lib/shared/ui-kit/avatar/avatar.module.d.ts +9 -0
  93. package/lib/shared/ui-kit/formgroup/checkbox/checkbox.component.d.ts +16 -0
  94. package/lib/shared/ui-kit/formgroup/click-outside.directive.d.ts +10 -0
  95. package/lib/shared/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.d.ts +13 -0
  96. package/lib/shared/ui-kit/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.d.ts +13 -0
  97. package/lib/shared/ui-kit/formgroup/cs-radio/cs-radio.component.d.ts +15 -0
  98. package/lib/shared/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.d.ts +8 -0
  99. package/lib/shared/ui-kit/formgroup/cs-select/cs-select.component.d.ts +36 -0
  100. package/lib/shared/ui-kit/formgroup/cs-switch/cs-switch.component.d.ts +15 -0
  101. package/lib/shared/ui-kit/formgroup/formgroup.module.d.ts +19 -0
  102. package/lib/shared/ui-kit/formgroup/pipes/pascal.pipe.d.ts +7 -0
  103. package/lib/shared/ui-kit/formgroup/pipes/searchMultiSelect.pipe.d.ts +7 -0
  104. package/lib/shared/ui-kit/popover/popover-event.directive.d.ts +10 -0
  105. package/lib/shared/ui-kit/popover/popover-longpress.directive.d.ts +16 -0
  106. package/lib/shared/ui-kit/popover/popover.component.d.ts +28 -0
  107. package/lib/shared/ui-kit/popover/popover.directive.d.ts +17 -0
  108. package/lib/shared/ui-kit/popover/popover.module.d.ts +11 -0
  109. package/lib/shared/ui-kit/popover/popover.service.d.ts +12 -0
  110. package/lib/shared/ui-kit/tooltip/tooltip.directive.d.ts +27 -0
  111. package/lib/shared/ui-kit/tooltip/tooltip.module.d.ts +8 -0
  112. package/lib/vc-layout.component.d.ts +10 -0
  113. package/lib/vc-layout.module.d.ts +10 -0
  114. package/lib/vc-layout.service.d.ts +6 -0
  115. package/package.json +25 -0
  116. package/public-api.d.ts +10 -0
@@ -0,0 +1,15 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ApiService } from '../../../shared/services/api.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HeaderContainerComponent implements OnInit {
5
+ apiService: ApiService;
6
+ ASSETS: any;
7
+ showBusinessCycle: string[];
8
+ currentUrl: string;
9
+ businessCycleChange: EventEmitter<any>;
10
+ openDialog: EventEmitter<any>;
11
+ constructor(apiService: ApiService);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderContainerComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderContainerComponent, "vc-header-container", never, {}, { "openDialog": "openDialog"; }, never, never, false, never>;
15
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./header-container/header-container.component";
3
+ import * as i2 from "./business-cycle/business-cycle.component";
4
+ import * as i3 from "./search/search.component";
5
+ import * as i4 from "./create-workflow/create-workflow.component";
6
+ import * as i5 from "./queue/queue.component";
7
+ import * as i6 from "./user-details/user-details.component";
8
+ import * as i7 from "./support/support.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "../../shared/ui-kit/tooltip/tooltip.module";
11
+ import * as i10 from "../../shared/ui-kit/avatar/avatar.module";
12
+ import * as i11 from "../../shared/ui-kit/popover/popover.module";
13
+ import * as i12 from "../../shared/ui-kit/formgroup/formgroup.module";
14
+ import * as i13 from "../global-alert/global-alert.module";
15
+ import * as i14 from "../../shared/pipe/pipes.module";
16
+ export declare class HeaderModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderModule, [typeof i1.HeaderContainerComponent, typeof i2.BusinessCycleComponent, typeof i3.SearchComponent, typeof i4.CreateWorkflowComponent, typeof i5.QueueComponent, typeof i6.UserDetailsComponent, typeof i7.SupportComponent], [typeof i8.CommonModule, typeof i9.TooltipModule, typeof i10.AvatarModule, typeof i11.PopoverModule, typeof i12.FormgroupModule, typeof i13.GlobalAlertModule, typeof i14.PipesModule], [typeof i1.HeaderContainerComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
20
+ }
@@ -0,0 +1,12 @@
1
+ import { ApiService } from '../../../shared/services/api.service';
2
+ import { LayoutService } from '../../../shared/services/layout.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class QueueComponent {
5
+ apiService: ApiService;
6
+ private layoutService;
7
+ queueURL: string;
8
+ constructor(apiService: ApiService, layoutService: LayoutService);
9
+ private setQueueURl;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueueComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueueComponent, "vc-queue", never, {}, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SearchComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "vc-search", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SupportComponent implements OnInit {
4
+ ASSETS: any;
5
+ openSupport: EventEmitter<any>;
6
+ constructor();
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SupportComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SupportComponent, "vc-support", never, {}, { "openSupport": "openSupport"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { LayoutService } from '../../../shared/services/layout.service';
2
+ import { AuthorizerService } from '@vcomply/authorizer';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UserDetailsComponent {
5
+ private layoutService;
6
+ private authService;
7
+ userDetails: any;
8
+ subscriptionDetails: any;
9
+ constructor(layoutService: LayoutService, authService: AuthorizerService);
10
+ editProfile(): void;
11
+ logout(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserDetailsComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserDetailsComponent, "vc-user-details", never, { "userDetails": { "alias": "userDetails"; "required": false; }; "subscriptionDetails": { "alias": "subscriptionDetails"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { LayoutService } from '../../../shared/services/layout.service';
3
+ import { ProductListService } from '../../../shared/services/product-list.service';
4
+ import { ApiService } from '../../../shared/services/api.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ModuleListComponent implements OnInit {
7
+ private layoutService;
8
+ private productListService;
9
+ private apiService;
10
+ featureFlag: any;
11
+ onToggleSubmenu: EventEmitter<any>;
12
+ ASSETS: any;
13
+ PRODUCT_LIST: any;
14
+ constructor(layoutService: LayoutService, productListService: ProductListService, apiService: ApiService);
15
+ ngOnInit(): void;
16
+ /**
17
+ * Handles the toggle event of the submenu for each product.
18
+ *
19
+ * @param eachProduct - The product object for which the submenu is being toggled.
20
+ * @returns Returns false to prevent the default behavior.
21
+ */
22
+ onSubMenuToggle(eachProduct: any): boolean;
23
+ /**
24
+ * Checks the module subscription and updates the product list accordingly.
25
+ * Subscribes to the `subscriptionDetail$` observable from the `apiService` and updates the `PRODUCT_LIST` property of the component based on the received data.
26
+ *
27
+ * @remarks
28
+ * This method is typically called when the component is initialized or when the subscription details change.
29
+ */
30
+ private checkModuleSubscription;
31
+ /**
32
+ * Sets the product list by mapping each product in the PRODUCT_LIST array.
33
+ * Each product's callback is set to the onSubMenuToggle method bound to the current instance.
34
+ * The product's URL is set using the setProductClickCallback method of the productListService,
35
+ * passing the product and the featureFlag as arguments. If the returned URL is null or undefined,
36
+ * an empty string is assigned to the product's URL property.
37
+ */
38
+ private setProductList;
39
+ private getUserDetails;
40
+ 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>;
42
+ }
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PreferenceListComponent implements OnInit {
4
+ ASSETS: any;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreferenceListComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreferenceListComponent, "vc-preference-list", never, {}, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProductListContainerComponent implements OnInit {
4
+ featureFlag: any;
5
+ onToggleSubmenu: EventEmitter<any>;
6
+ constructor();
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductListContainerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductListContainerComponent, "vc-product-list-container", never, { "featureFlag": { "alias": "featureFlag"; "required": false; }; }, { "onToggleSubmenu": "onToggleSubmenu"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./product-list-container/product-list-container.component";
3
+ import * as i2 from "./module-list/module-list.component";
4
+ import * as i3 from "./preference-list/preference-list.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "../../shared/ui-kit/tooltip/tooltip.module";
7
+ export declare class ProductListModule {
8
+ 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 ɵinj: i0.ɵɵInjectorDeclaration<ProductListModule>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SubMenuContainerComponent implements OnInit {
4
+ subMenuData: any[];
5
+ onCloseSubMenu: EventEmitter<any>;
6
+ constructor();
7
+ ngOnInit(): void;
8
+ onSubMenuClose(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubMenuContainerComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubMenuContainerComponent, "vc-sub-menu-container", never, { "subMenuData": { "alias": "subMenuData"; "required": false; }; }, { "onCloseSubMenu": "onCloseSubMenu"; }, never, ["*"], false, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./sub-menu-container/sub-menu-container.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../shared/ui-kit/tooltip/tooltip.module";
5
+ export declare class SubMenuModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubMenuModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SubMenuModule, [typeof i1.SubMenuContainerComponent], [typeof i2.CommonModule, typeof i3.TooltipModule], [typeof i1.SubMenuContainerComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SubMenuModule>;
9
+ }
@@ -0,0 +1,4 @@
1
+ export declare class Configurations {
2
+ envConfig: any;
3
+ constructor();
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare const API: {
2
+ subscriptionList: string;
3
+ organizationDetails: string;
4
+ userDetails: string;
5
+ queueCount: string;
6
+ };
@@ -0,0 +1 @@
1
+ export declare const IN_APP_URL: any;
@@ -0,0 +1,30 @@
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
+ };
@@ -0,0 +1 @@
1
+ export declare const PRODUCT_LIST: any;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CreatePermissionPipe implements PipeTransform {
4
+ transform(value: any, args?: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreatePermissionPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<CreatePermissionPipe, "checkPermission", false>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DateFormatPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "dateFormat", false>;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Configurations } from '../../configurations';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GetFileUrlPipe implements PipeTransform {
5
+ environmentValue: any;
6
+ constructor(config?: Configurations);
7
+ transform(value: any, ...args: any[]): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetFileUrlPipe, [{ optional: true; }]>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetFileUrlPipe, "getFileUrl", false>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./get-file-url.pipe";
3
+ import * as i2 from "./check-create-permission.pipe";
4
+ import * as i3 from "./date-format.pipe";
5
+ import * as i4 from "@angular/common";
6
+ export declare class PipesModule {
7
+ 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 ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
10
+ }
@@ -0,0 +1,37 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { Configurations } from '../../configurations';
4
+ import { AuthorizerService } from '@vcomply/authorizer';
5
+ import { LayoutService } from './layout.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiService {
8
+ private http;
9
+ private authService;
10
+ private layoutService;
11
+ env: any;
12
+ userDetails: any;
13
+ userId: string;
14
+ subscriptionDetail$: BehaviorSubject<any | null>;
15
+ organizationDetail$: BehaviorSubject<any | null>;
16
+ loggedUserDetail$: BehaviorSubject<any | null>;
17
+ queueCount$: BehaviorSubject<any | null>;
18
+ constructor(http: HttpClient, authService: AuthorizerService, layoutService: LayoutService, config?: Configurations);
19
+ /**
20
+ *
21
+ * API definitions
22
+ */
23
+ private subscriptionList;
24
+ private organizationDetails;
25
+ private loggedInUserDetails;
26
+ private queueCount;
27
+ /**
28
+ * ALL API CALLS
29
+ *
30
+ */
31
+ getSubscriptionList(): void;
32
+ getOrgDetails(id: number): void;
33
+ getUserDetails(_id: string): void;
34
+ getQueueCount(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, [null, null, null, { optional: true; }]>;
36
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
37
+ }
@@ -0,0 +1,51 @@
1
+ import { AuthorizerService } from '@vcomply/authorizer';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BusinessCycleService {
5
+ private authorizer;
6
+ businessCycleList$: BehaviorSubject<any>;
7
+ orgDetails$: BehaviorSubject<any>;
8
+ selectedBusinessCycle$: BehaviorSubject<any>;
9
+ changeBusinessCycle$: BehaviorSubject<boolean>;
10
+ constructor(authorizer: AuthorizerService);
11
+ /**
12
+ * #### Description
13
+ * it will check the business cycle stored in local is same business cycle as the user login
14
+ * Determines whether correct business cycle is
15
+ * @returns true if correct business cycle
16
+ */
17
+ isCorrectBusinessCycle(cycle: any): boolean;
18
+ /**
19
+ * #### Description
20
+ * set business cycle in local storage if local storage don't have business cycle.
21
+ * Sets business cycle
22
+ * @param businessCycleList list of all the cycle of the organization
23
+ */
24
+ setBusinessCycle(businessCycleList: any): void;
25
+ setSelectedCycleArray(cycle: any): string[];
26
+ /**
27
+ * #### Description
28
+ * if business cycle is found in local the it will set in this selectedBusinessCycle$ variable.
29
+ * it is subject variable so we can use it in different component
30
+ */
31
+ isBusinessCycleAvailable(): void;
32
+ /**
33
+ * #### Description
34
+ *
35
+ * it will convert date from dd-mm-yyyy to dd mmm yyyy formate
36
+ * Converts date
37
+ * @param date
38
+ * @returns date in this formate DD MMM YYYY
39
+ */
40
+ convertDate(date: string): string;
41
+ /**
42
+ * #### Description
43
+ *
44
+ * Converts numeric alpha
45
+ * @param str = "01-05-2021-30-04-2022"
46
+ * @returns = "01 May 2021 - 30 Apr 2022"
47
+ */
48
+ convertNumericAlpha(str: any): string;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<BusinessCycleService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<BusinessCycleService>;
51
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LayoutService {
3
+ baseUrl: string;
4
+ constructor();
5
+ private setBaseUrl;
6
+ ConvertUtcToLocalDateTime(timestamp: number, TimeZone: string): string | 0;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
9
+ }
@@ -0,0 +1,31 @@
1
+ import { RbacService } from './rbac.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProductListService {
4
+ private rbacService;
5
+ constructor(rbacService: RbacService);
6
+ /**
7
+ * Filters the subscribed products based on the subscription flags.
8
+ *
9
+ * @param productList - The list of products.
10
+ * @param subscriptionList - The subscription flags.
11
+ * @returns The filtered list of subscribed products.
12
+ */
13
+ subscribedProduct(productList?: any, subscriptionList?: any): any;
14
+ /**
15
+ * Sets the product click callback based on the product details and feature flag.
16
+ *
17
+ * @param productDetails - The details of the product.
18
+ * @param featureFlag - The feature flag.
19
+ * @returns The URL for the product click callback.
20
+ */
21
+ setProductClickCallback(productDetails: any, featureFlag: any): any;
22
+ /**
23
+ * Sets the compliance URL based on the feature flag and RBAC permissions.
24
+ *
25
+ * @param featureFlag - The feature flag.
26
+ * @returns The URL for the compliance page.
27
+ */
28
+ private setComplianceURL;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductListService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProductListService>;
31
+ }
@@ -0,0 +1,25 @@
1
+ import { ApiService } from './api.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RbacService {
4
+ private apiService;
5
+ permissions: any;
6
+ constructor(apiService: ApiService);
7
+ /**
8
+ * Retrieves the RBAC (Role-Based Access Control) permissions for a given module.
9
+ *
10
+ * @param MODULE - The module for which to retrieve the permissions. Must be one of the following values:
11
+ * - 'assessment'
12
+ * - 'audit'
13
+ * - 'issue'
14
+ * - 'policy'
15
+ * - 'risk'
16
+ * - 'assurance'
17
+ * - 'compliance'
18
+ * - 'organization'
19
+ *
20
+ * @returns An array of strings representing the permissions for the specified module.
21
+ */
22
+ getRBACPermissions(MODULE: 'assessment' | 'audit' | 'issue' | 'policy' | 'risk' | 'assurance' | 'compliance' | 'organization'): any;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<RbacService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<RbacService>;
25
+ }
@@ -0,0 +1,12 @@
1
+ import { AuthorizerService } from '@vcomply/authorizer';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AvatarComponent {
4
+ private authService;
5
+ baseUrl: string;
6
+ shortName: string;
7
+ userInfo: any;
8
+ type: 'md' | 'sm' | 'xs' | 'x-lg';
9
+ constructor(authService: AuthorizerService);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "vc-avatar", never, { "userInfo": { "alias": "userInfo"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./avatar/avatar.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../pipe/pipes.module";
5
+ export declare class AvatarModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, [typeof i1.AvatarComponent], [typeof i2.CommonModule, typeof i3.PipesModule], [typeof i1.AvatarComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AvatarModule>;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckboxComponent implements ControlValueAccessor {
4
+ disabled: boolean | any;
5
+ checked: boolean | any;
6
+ indeterminateEnabled: boolean | any;
7
+ onChanged: (value: any) => void;
8
+ onTouched: () => void;
9
+ writeValue(value: boolean): void;
10
+ registerOnChange(fn: any): void;
11
+ registerOnTouched(fn: any): void;
12
+ setDisabledState(isDisabled: boolean): void;
13
+ valueChanged(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "vui-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminateEnabled": { "alias": "indeterminateEnabled"; "required": false; }; }, {}, never, ["*"], false, never>;
16
+ }
@@ -0,0 +1,10 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ClickOutsideDirective {
4
+ private elementRef;
5
+ constructor(elementRef: ElementRef);
6
+ clickOutside: EventEmitter<any>;
7
+ onMouseEnter(targetElement: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, {}, { "clickOutside": "clickOutside"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsCheckboxComponent implements OnInit {
4
+ disabled: boolean;
5
+ ngValue: any;
6
+ value: any;
7
+ ngValueChange: EventEmitter<any>;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ valueChanged(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsCheckboxComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsCheckboxComponent, "app-cs-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "ngValueChange": "ngValueChange"; }, never, ["*"], false, never>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsCheckboxIndeterminateComponent implements OnInit {
4
+ disabled: boolean;
5
+ ngValue: any;
6
+ value: any;
7
+ ngValueChange: EventEmitter<any>;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ valueChanged(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsCheckboxIndeterminateComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsCheckboxIndeterminateComponent, "app-cs-checkbox-indeterminate", never, { "disabled": { "alias": "disabled"; "required": false; }; "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "ngValueChange": "ngValueChange"; }, never, ["*"], false, never>;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsRadioComponent implements OnInit {
4
+ disabled: boolean;
5
+ readonly: boolean;
6
+ name: string;
7
+ checked: boolean;
8
+ value: any;
9
+ checkedEvent: EventEmitter<any>;
10
+ constructor();
11
+ ngOnInit(): void;
12
+ changeState(evt: any): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsRadioComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsRadioComponent, "app-cs-radio", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "checkedEvent": "checkedEvent"; }, never, ["*"], false, never>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsRadioGroupComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsRadioGroupComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsRadioGroupComponent, "app-cs-radio-group", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,36 @@
1
+ import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsSelectComponent implements OnChanges {
4
+ dataList: any[];
5
+ dropdownLabel: string;
6
+ displayProperty: string;
7
+ selectedValue: string;
8
+ isRequired: boolean;
9
+ dropdownSubLabel: string;
10
+ disabled: boolean;
11
+ option: ElementRef;
12
+ selectedData: EventEmitter<any>;
13
+ selectedValueChange: EventEmitter<any>;
14
+ placeholder: any;
15
+ stylex: any;
16
+ valueKey: any;
17
+ multipleSelect: any;
18
+ colorProperty: string;
19
+ colorSelected: string;
20
+ colorCode: string;
21
+ dropdownOption: boolean;
22
+ positionReset: boolean;
23
+ getLeft: number;
24
+ getTop: number;
25
+ getWidth: number;
26
+ maxWidth: number;
27
+ activeDoropdown: boolean;
28
+ private optionList;
29
+ set content(content: ElementRef);
30
+ ngOnChanges(changes: SimpleChanges): void;
31
+ openDropdown(event: any): void;
32
+ selectOption(selectedData: any): void;
33
+ closeDropdown(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsSelectComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsSelectComponent, "app-cs-select", never, { "dataList": { "alias": "dataList"; "required": false; }; "dropdownLabel": { "alias": "dropdownLabel"; "required": false; }; "displayProperty": { "alias": "displayProperty"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "dropdownSubLabel": { "alias": "dropdownSubLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "stylex": { "alias": "stylex"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "multipleSelect": { "alias": "multipleSelect"; "required": false; }; "colorProperty": { "alias": "colorProperty"; "required": false; }; "colorSelected": { "alias": "colorSelected"; "required": false; }; }, { "selectedData": "selectedData"; "selectedValueChange": "selectedValueChange"; }, never, never, false, never>;
36
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CsSwitchComponent implements OnInit {
4
+ disabled: boolean;
5
+ ngValue: any;
6
+ value: any;
7
+ ngValueChange: EventEmitter<any>;
8
+ tooltipMessage: any;
9
+ position: any;
10
+ constructor();
11
+ ngOnInit(): void;
12
+ valueChanged(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CsSwitchComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CsSwitchComponent, "app-cs-switch", never, { "disabled": { "alias": "disabled"; "required": false; }; "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltipMessage": { "alias": "tooltipMessage"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "ngValueChange": "ngValueChange"; }, never, never, false, never>;
15
+ }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./cs-checkbox/cs-checkbox.component";
3
+ import * as i2 from "./cs-radio/cs-radio.component";
4
+ import * as i3 from "./cs-switch/cs-switch.component";
5
+ import * as i4 from "./cs-radio-group/cs-radio-group.component";
6
+ import * as i5 from "./cs-select/cs-select.component";
7
+ import * as i6 from "./pipes/pascal.pipe";
8
+ import * as i7 from "./pipes/searchMultiSelect.pipe";
9
+ import * as i8 from "./click-outside.directive";
10
+ import * as i9 from "./cs-checkbox-indeterminate/cs-checkbox-indeterminate.component";
11
+ import * as i10 from "./checkbox/checkbox.component";
12
+ import * as i11 from "@angular/common";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "../tooltip/tooltip.module";
15
+ export declare class FormgroupModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormgroupModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormgroupModule, [typeof i1.CsCheckboxComponent, typeof i2.CsRadioComponent, typeof i3.CsSwitchComponent, typeof i4.CsRadioGroupComponent, typeof i5.CsSelectComponent, typeof i6.PascalPipe, typeof i7.SearchMultiSelectPipe, typeof i8.ClickOutsideDirective, typeof i9.CsCheckboxIndeterminateComponent, typeof i10.CheckboxComponent], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i13.TooltipModule], [typeof i1.CsCheckboxComponent, typeof i2.CsRadioComponent, typeof i3.CsSwitchComponent, typeof i4.CsRadioGroupComponent, typeof i5.CsSelectComponent, typeof i7.SearchMultiSelectPipe, typeof i9.CsCheckboxIndeterminateComponent, typeof i10.CheckboxComponent]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormgroupModule>;
19
+ }