vc-layout 0.0.3 → 0.0.4
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/header/header-container/header-container.component.mjs +10 -24
- package/esm2022/lib/components/sub-menu/sub-menu-container/sub-menu-container.component.mjs +2 -24
- package/esm2022/lib/constants/business-cycle.constant.mjs +21 -0
- package/fesm2022/vc-layout.mjs +30 -46
- package/fesm2022/vc-layout.mjs.map +1 -1
- package/lib/components/header/header-container/header-container.component.d.ts +4 -4
- package/lib/constants/business-cycle.constant.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
2
|
import { ASSETS } from '../../../constants/assets.constants';
|
|
3
|
+
import { BUSINESS_CYCLE_URL } from '../../../constants/business-cycle.constant';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "../../../shared/services/api.service";
|
|
5
6
|
import * as i2 from "@angular/common";
|
|
@@ -16,42 +17,27 @@ export class HeaderContainerComponent {
|
|
|
16
17
|
constructor(apiService) {
|
|
17
18
|
this.apiService = apiService;
|
|
18
19
|
this.ASSETS = ASSETS;
|
|
19
|
-
this.showBusinessCycle =
|
|
20
|
-
'/',
|
|
21
|
-
'/global-dashboard/compliance_dashboard',
|
|
22
|
-
'/global-dashboard/audit_dashboard',
|
|
23
|
-
'/global-dashboard/issue_dashboard',
|
|
24
|
-
'/global-dashboard/risk_dashboard',
|
|
25
|
-
'/global-dashboard/dashboard',
|
|
26
|
-
'/program/manage-program-categories/programs-overview',
|
|
27
|
-
'/program/program-workroom',
|
|
28
|
-
'/compliance/manage-responsibility',
|
|
29
|
-
'/compliance/reports/not-completed-report',
|
|
30
|
-
'/assessment/assessment-workroom/response-dashboard',
|
|
31
|
-
'/risk/reported-risk',
|
|
32
|
-
'/risk/manage-risk-category',
|
|
33
|
-
'/risk/risk-status',
|
|
34
|
-
'/risk/risk-register',
|
|
35
|
-
'/risk/risk-workroom/',
|
|
36
|
-
'/risk/my-assessment',
|
|
37
|
-
'/risk/risk-workshop',
|
|
38
|
-
];
|
|
20
|
+
this.showBusinessCycle = BUSINESS_CYCLE_URL;
|
|
39
21
|
this.currentUrl = '';
|
|
40
22
|
this.businessCycleChange = new EventEmitter();
|
|
41
23
|
this.openDialog = new EventEmitter();
|
|
42
24
|
this.currentUrl = window.location.pathname;
|
|
43
25
|
console.log('currentUrl', this.currentUrl);
|
|
44
26
|
}
|
|
45
|
-
|
|
27
|
+
businessCycleChangeHandler(event) {
|
|
28
|
+
this.businessCycleChange.emit(event);
|
|
29
|
+
}
|
|
46
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderContainerComponent, deps: [{ token: i1.ApiService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderContainerComponent, selector: "vc-header-container", inputs: { featureFlag: "featureFlag" }, outputs: { openDialog: "openDialog" }, ngImport: i0, template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderContainerComponent, selector: "vc-header-container", inputs: { featureFlag: "featureFlag" }, outputs: { businessCycleChange: "businessCycleChange", openDialog: "openDialog" }, ngImport: i0, template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"businessCycleChangeHandler($event)\"\r\n ></vc-business-cycle>\r\n </div>\r\n <div class=\"search-area\">\r\n <vc-search *ngIf=\"false\"></vc-search>\r\n </div>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <vc-support (openSupport)=\"openDialog.emit('SUPPORT')\"></vc-support>\r\n <vc-create-workflow\r\n *ngIf=\"apiService.loggedUserDetail$ | async | checkPermission\"\r\n (openWorkflow)=\"openDialog.emit('WORKFLOW')\"\r\n ></vc-create-workflow>\r\n <vc-queue></vc-queue>\r\n <vc-user-details\r\n [userDetails]=\"apiService.loggedUserDetail$ | async\"\r\n [subscriptionDetails]=\"apiService.subscriptionDetail$ | async\"\r\n ></vc-user-details>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";.header-container{height:3rem}.header-container .product-logo{width:3rem;height:3rem}.header-container .product-logo img{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ToolTipDirective, selector: "[arTooltip]", inputs: ["arTooltip", "placement", "type", "tooltipMandatory", "showTooltip", "animate"] }, { kind: "component", type: i4.GlobalAlertComponent, selector: "vc-global-alert", inputs: ["feature"], outputs: ["subscriptionStatus"] }, { kind: "component", type: i5.BusinessCycleComponent, selector: "vc-business-cycle", inputs: ["orgDetails"], outputs: ["businessCycleChange"] }, { kind: "component", type: i6.SearchComponent, selector: "vc-search" }, { kind: "component", type: i7.CreateWorkflowComponent, selector: "vc-create-workflow", outputs: ["openWorkflow"] }, { kind: "component", type: i8.QueueComponent, selector: "vc-queue" }, { kind: "component", type: i9.UserDetailsComponent, selector: "vc-user-details", inputs: ["userDetails", "subscriptionDetails"] }, { kind: "component", type: i10.SupportComponent, selector: "vc-support", outputs: ["openSupport"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i11.CreatePermissionPipe, name: "checkPermission" }] }); }
|
|
48
32
|
}
|
|
49
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderContainerComponent, decorators: [{
|
|
50
34
|
type: Component,
|
|
51
|
-
args: [{ selector: 'vc-header-container', template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"
|
|
35
|
+
args: [{ selector: 'vc-header-container', template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"businessCycleChangeHandler($event)\"\r\n ></vc-business-cycle>\r\n </div>\r\n <div class=\"search-area\">\r\n <vc-search *ngIf=\"false\"></vc-search>\r\n </div>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <vc-support (openSupport)=\"openDialog.emit('SUPPORT')\"></vc-support>\r\n <vc-create-workflow\r\n *ngIf=\"apiService.loggedUserDetail$ | async | checkPermission\"\r\n (openWorkflow)=\"openDialog.emit('WORKFLOW')\"\r\n ></vc-create-workflow>\r\n <vc-queue></vc-queue>\r\n <vc-user-details\r\n [userDetails]=\"apiService.loggedUserDetail$ | async\"\r\n [subscriptionDetails]=\"apiService.subscriptionDetail$ | async\"\r\n ></vc-user-details>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";.header-container{height:3rem}.header-container .product-logo{width:3rem;height:3rem}.header-container .product-logo img{pointer-events:none}\n"] }]
|
|
52
36
|
}], ctorParameters: function () { return [{ type: i1.ApiService }]; }, propDecorators: { featureFlag: [{
|
|
53
37
|
type: Input
|
|
38
|
+
}], businessCycleChange: [{
|
|
39
|
+
type: Output
|
|
54
40
|
}], openDialog: [{
|
|
55
41
|
type: Output
|
|
56
42
|
}] } });
|
|
57
|
-
//# sourceMappingURL=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9ydD5cclxuICAgIDx2Yy1jcmVhdGUtd29ya2Zsb3dcclxuICAgICAgKm5nSWY9XCJhcGlTZXJ2aWNlLmxvZ2dlZFVzZXJEZXRhaWwkIHwgYXN5bmMgfCBjaGVja1Blcm1pc3Npb25cIlxyXG4gICAgICAob3BlbldvcmtmbG93KT1cIm9wZW5EaWFsb2cuZW1pdCgnV09SS0ZMT1cnKVwiXHJcbiAgICA+PC92Yy1jcmVhdGUtd29ya2Zsb3c+XHJcbiAgICA8dmMtcXVldWU+PC92Yy1xdWV1ZT5cclxuICAgIDx2Yy11c2VyLWRldGFpbHNcclxuICAgICAgW3VzZXJEZXRhaWxzXT1cImFwaVNlcnZpY2UubG9nZ2VkVXNlckRldGFpbCQgfCBhc3luY1wiXHJcbiAgICAgIFtzdWJzY3JpcHRpb25EZXRhaWxzXT1cImFwaVNlcnZpY2Uuc3Vic2NyaXB0aW9uRGV0YWlsJCB8IGFzeW5jXCJcclxuICAgID48L3ZjLXVzZXItZGV0YWlscz5cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -4,29 +4,7 @@ import * as i1 from "@angular/common";
|
|
|
4
4
|
import * as i2 from "../../../shared/ui-kit/tooltip/tooltip.directive";
|
|
5
5
|
export class SubMenuContainerComponent {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.subMenuData = [
|
|
8
|
-
{
|
|
9
|
-
name: 'Policy',
|
|
10
|
-
code: 'POLICY',
|
|
11
|
-
callback: () => { },
|
|
12
|
-
href: '#',
|
|
13
|
-
class: 'active',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'Issue',
|
|
17
|
-
code: 'ISSUE',
|
|
18
|
-
callback: () => { },
|
|
19
|
-
href: '#',
|
|
20
|
-
class: '',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Risk',
|
|
24
|
-
code: 'RISK',
|
|
25
|
-
callback: () => { },
|
|
26
|
-
href: '#',
|
|
27
|
-
class: '',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
7
|
+
this.subMenuData = [];
|
|
30
8
|
this.onCloseSubMenu = new EventEmitter();
|
|
31
9
|
}
|
|
32
10
|
ngOnInit() { }
|
|
@@ -114,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
114
92
|
}], onCloseSubMenu: [{
|
|
115
93
|
type: Output
|
|
116
94
|
}] } });
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
95
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViLW1lbnUtY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZjLWxheW91dC9zcmMvbGliL2NvbXBvbmVudHMvc3ViLW1lbnUvc3ViLW1lbnUtY29udGFpbmVyL3N1Yi1tZW51LWNvbnRhaW5lci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQTBDL0UsTUFBTSxPQUFPLHlCQUF5QjtJQUdwQztRQUZTLGdCQUFXLEdBQVUsRUFBRSxDQUFDO1FBQ3ZCLG1CQUFjLEdBQXNCLElBQUksWUFBWSxFQUFPLENBQUM7SUFDdkQsQ0FBQztJQUVoQixRQUFRLEtBQVUsQ0FBQztJQUVaLGNBQWM7UUFDbkIsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUM3QixDQUFDOytHQVRVLHlCQUF5QjttR0FBekIseUJBQXlCLG9KQXRDMUI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O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50RW1pdHRlcjxhbnk+ID0gbmV3IEV2ZW50RW1pdHRlcjxhbnk+KCk7XHJcbiAgY29uc3RydWN0b3IoKSB7fVxyXG5cclxuICBuZ09uSW5pdCgpOiB2b2lkIHt9XHJcblxyXG4gIHB1YmxpYyBvblN1Yk1lbnVDbG9zZSgpIHtcclxuICAgIHRoaXMub25DbG9zZVN1Yk1lbnUuZW1pdCgpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const BUSINESS_CYCLE_URL = [
|
|
2
|
+
'/',
|
|
3
|
+
'/global-dashboard/compliance_dashboard',
|
|
4
|
+
'/global-dashboard/audit_dashboard',
|
|
5
|
+
'/global-dashboard/issue_dashboard',
|
|
6
|
+
'/global-dashboard/risk_dashboard',
|
|
7
|
+
'/global-dashboard/dashboard',
|
|
8
|
+
'/program/manage-program-categories/programs-overview',
|
|
9
|
+
'/program/program-workroom',
|
|
10
|
+
'/compliance/manage-responsibility',
|
|
11
|
+
'/compliance/reports/not-completed-report',
|
|
12
|
+
'/assessment/assessment-workroom/response-dashboard',
|
|
13
|
+
'/risk/reported-risk',
|
|
14
|
+
'/risk/manage-risk-category',
|
|
15
|
+
'/risk/risk-status',
|
|
16
|
+
'/risk/risk-register',
|
|
17
|
+
'/risk/risk-workroom/',
|
|
18
|
+
'/risk/my-assessment',
|
|
19
|
+
'/risk/risk-workshop',
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVzaW5lc3MtY3ljbGUuY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92Yy1sYXlvdXQvc3JjL2xpYi9jb25zdGFudHMvYnVzaW5lc3MtY3ljbGUuY29uc3RhbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0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ICAnL3Jpc2svcmVwb3J0ZWQtcmlzaycsXHJcbiAgJy9yaXNrL21hbmFnZS1yaXNrLWNhdGVnb3J5JyxcclxuICAnL3Jpc2svcmlzay1zdGF0dXMnLFxyXG4gICcvcmlzay9yaXNrLXJlZ2lzdGVyJyxcclxuICAnL3Jpc2svcmlzay13b3Jrcm9vbS8nLFxyXG4gICcvcmlzay9teS1hc3Nlc3NtZW50JyxcclxuICAnL3Jpc2svcmlzay13b3Jrc2hvcCcsXHJcbl07XHJcbiJdfQ==
|
package/fesm2022/vc-layout.mjs
CHANGED
|
@@ -899,6 +899,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
899
899
|
type: Output
|
|
900
900
|
}] } });
|
|
901
901
|
|
|
902
|
+
const BUSINESS_CYCLE_URL = [
|
|
903
|
+
'/',
|
|
904
|
+
'/global-dashboard/compliance_dashboard',
|
|
905
|
+
'/global-dashboard/audit_dashboard',
|
|
906
|
+
'/global-dashboard/issue_dashboard',
|
|
907
|
+
'/global-dashboard/risk_dashboard',
|
|
908
|
+
'/global-dashboard/dashboard',
|
|
909
|
+
'/program/manage-program-categories/programs-overview',
|
|
910
|
+
'/program/program-workroom',
|
|
911
|
+
'/compliance/manage-responsibility',
|
|
912
|
+
'/compliance/reports/not-completed-report',
|
|
913
|
+
'/assessment/assessment-workroom/response-dashboard',
|
|
914
|
+
'/risk/reported-risk',
|
|
915
|
+
'/risk/manage-risk-category',
|
|
916
|
+
'/risk/risk-status',
|
|
917
|
+
'/risk/risk-register',
|
|
918
|
+
'/risk/risk-workroom/',
|
|
919
|
+
'/risk/my-assessment',
|
|
920
|
+
'/risk/risk-workshop',
|
|
921
|
+
];
|
|
922
|
+
|
|
902
923
|
const GLOBAL_ALERTS = {
|
|
903
924
|
contactUs: `<a href=https://www.v-comply.com/contact-us" target="_blank">CONTACT US</a>`,
|
|
904
925
|
trialUserExpired: `SUBSCRIPTION EXPIRED: Contact Sales to extend your trial.`,
|
|
@@ -1964,70 +1985,33 @@ class HeaderContainerComponent {
|
|
|
1964
1985
|
constructor(apiService) {
|
|
1965
1986
|
this.apiService = apiService;
|
|
1966
1987
|
this.ASSETS = ASSETS;
|
|
1967
|
-
this.showBusinessCycle =
|
|
1968
|
-
'/',
|
|
1969
|
-
'/global-dashboard/compliance_dashboard',
|
|
1970
|
-
'/global-dashboard/audit_dashboard',
|
|
1971
|
-
'/global-dashboard/issue_dashboard',
|
|
1972
|
-
'/global-dashboard/risk_dashboard',
|
|
1973
|
-
'/global-dashboard/dashboard',
|
|
1974
|
-
'/program/manage-program-categories/programs-overview',
|
|
1975
|
-
'/program/program-workroom',
|
|
1976
|
-
'/compliance/manage-responsibility',
|
|
1977
|
-
'/compliance/reports/not-completed-report',
|
|
1978
|
-
'/assessment/assessment-workroom/response-dashboard',
|
|
1979
|
-
'/risk/reported-risk',
|
|
1980
|
-
'/risk/manage-risk-category',
|
|
1981
|
-
'/risk/risk-status',
|
|
1982
|
-
'/risk/risk-register',
|
|
1983
|
-
'/risk/risk-workroom/',
|
|
1984
|
-
'/risk/my-assessment',
|
|
1985
|
-
'/risk/risk-workshop',
|
|
1986
|
-
];
|
|
1988
|
+
this.showBusinessCycle = BUSINESS_CYCLE_URL;
|
|
1987
1989
|
this.currentUrl = '';
|
|
1988
1990
|
this.businessCycleChange = new EventEmitter();
|
|
1989
1991
|
this.openDialog = new EventEmitter();
|
|
1990
1992
|
this.currentUrl = window.location.pathname;
|
|
1991
1993
|
console.log('currentUrl', this.currentUrl);
|
|
1992
1994
|
}
|
|
1993
|
-
|
|
1995
|
+
businessCycleChangeHandler(event) {
|
|
1996
|
+
this.businessCycleChange.emit(event);
|
|
1997
|
+
}
|
|
1994
1998
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderContainerComponent, deps: [{ token: ApiService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1995
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderContainerComponent, selector: "vc-header-container", inputs: { featureFlag: "featureFlag" }, outputs: { openDialog: "openDialog" }, ngImport: i0, template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"
|
|
1999
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderContainerComponent, selector: "vc-header-container", inputs: { featureFlag: "featureFlag" }, outputs: { businessCycleChange: "businessCycleChange", openDialog: "openDialog" }, ngImport: i0, template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"businessCycleChangeHandler($event)\"\r\n ></vc-business-cycle>\r\n </div>\r\n <div class=\"search-area\">\r\n <vc-search *ngIf=\"false\"></vc-search>\r\n </div>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <vc-support (openSupport)=\"openDialog.emit('SUPPORT')\"></vc-support>\r\n <vc-create-workflow\r\n *ngIf=\"apiService.loggedUserDetail$ | async | checkPermission\"\r\n (openWorkflow)=\"openDialog.emit('WORKFLOW')\"\r\n ></vc-create-workflow>\r\n <vc-queue></vc-queue>\r\n <vc-user-details\r\n [userDetails]=\"apiService.loggedUserDetail$ | async\"\r\n [subscriptionDetails]=\"apiService.subscriptionDetail$ | async\"\r\n ></vc-user-details>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";.header-container{height:3rem}.header-container .product-logo{width:3rem;height:3rem}.header-container .product-logo img{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ToolTipDirective, selector: "[arTooltip]", inputs: ["arTooltip", "placement", "type", "tooltipMandatory", "showTooltip", "animate"] }, { kind: "component", type: GlobalAlertComponent, selector: "vc-global-alert", inputs: ["feature"], outputs: ["subscriptionStatus"] }, { kind: "component", type: BusinessCycleComponent, selector: "vc-business-cycle", inputs: ["orgDetails"], outputs: ["businessCycleChange"] }, { kind: "component", type: SearchComponent, selector: "vc-search" }, { kind: "component", type: CreateWorkflowComponent, selector: "vc-create-workflow", outputs: ["openWorkflow"] }, { kind: "component", type: QueueComponent, selector: "vc-queue" }, { kind: "component", type: UserDetailsComponent, selector: "vc-user-details", inputs: ["userDetails", "subscriptionDetails"] }, { kind: "component", type: SupportComponent, selector: "vc-support", outputs: ["openSupport"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: CreatePermissionPipe, name: "checkPermission" }] }); }
|
|
1996
2000
|
}
|
|
1997
2001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderContainerComponent, decorators: [{
|
|
1998
2002
|
type: Component,
|
|
1999
|
-
args: [{ selector: 'vc-header-container', template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"
|
|
2003
|
+
args: [{ selector: 'vc-header-container', template: "<vc-global-alert [feature]=\"featureFlag\"></vc-global-alert>\r\n<div\r\n class=\"header-container vx-d-flex vx-align-center vx-justify-between vx-pr-3\"\r\n>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <a\r\n class=\"product-logo vx-d-flex vx-align-center vx-justify-center vx-mr-3\"\r\n [arTooltip]=\"'Go to Dashboard'\"\r\n placement=\"right\"\r\n type=\"white\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n [animate]=\"true\"\r\n ><img [src]=\"ASSETS.v_icon\" alt=\"VComply\" width=\"24\" height=\"24\"\r\n /></a>\r\n <vc-business-cycle\r\n *ngIf=\"showBusinessCycle.includes(currentUrl)\"\r\n (businessCycleChange)=\"businessCycleChangeHandler($event)\"\r\n ></vc-business-cycle>\r\n </div>\r\n <div class=\"search-area\">\r\n <vc-search *ngIf=\"false\"></vc-search>\r\n </div>\r\n <div class=\"vx-d-flex vx-align-center\">\r\n <vc-support (openSupport)=\"openDialog.emit('SUPPORT')\"></vc-support>\r\n <vc-create-workflow\r\n *ngIf=\"apiService.loggedUserDetail$ | async | checkPermission\"\r\n (openWorkflow)=\"openDialog.emit('WORKFLOW')\"\r\n ></vc-create-workflow>\r\n <vc-queue></vc-queue>\r\n <vc-user-details\r\n [userDetails]=\"apiService.loggedUserDetail$ | async\"\r\n [subscriptionDetails]=\"apiService.subscriptionDetail$ | async\"\r\n ></vc-user-details>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";.header-container{height:3rem}.header-container .product-logo{width:3rem;height:3rem}.header-container .product-logo img{pointer-events:none}\n"] }]
|
|
2000
2004
|
}], ctorParameters: function () { return [{ type: ApiService }]; }, propDecorators: { featureFlag: [{
|
|
2001
2005
|
type: Input
|
|
2006
|
+
}], businessCycleChange: [{
|
|
2007
|
+
type: Output
|
|
2002
2008
|
}], openDialog: [{
|
|
2003
2009
|
type: Output
|
|
2004
2010
|
}] } });
|
|
2005
2011
|
|
|
2006
2012
|
class SubMenuContainerComponent {
|
|
2007
2013
|
constructor() {
|
|
2008
|
-
this.subMenuData = [
|
|
2009
|
-
{
|
|
2010
|
-
name: 'Policy',
|
|
2011
|
-
code: 'POLICY',
|
|
2012
|
-
callback: () => { },
|
|
2013
|
-
href: '#',
|
|
2014
|
-
class: 'active',
|
|
2015
|
-
},
|
|
2016
|
-
{
|
|
2017
|
-
name: 'Issue',
|
|
2018
|
-
code: 'ISSUE',
|
|
2019
|
-
callback: () => { },
|
|
2020
|
-
href: '#',
|
|
2021
|
-
class: '',
|
|
2022
|
-
},
|
|
2023
|
-
{
|
|
2024
|
-
name: 'Risk',
|
|
2025
|
-
code: 'RISK',
|
|
2026
|
-
callback: () => { },
|
|
2027
|
-
href: '#',
|
|
2028
|
-
class: '',
|
|
2029
|
-
},
|
|
2030
|
-
];
|
|
2014
|
+
this.subMenuData = [];
|
|
2031
2015
|
this.onCloseSubMenu = new EventEmitter();
|
|
2032
2016
|
}
|
|
2033
2017
|
ngOnInit() { }
|