vcomply-workflow-engine 6.0.79 → 6.0.81
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/add-multiple-responsibility/add-multiple-responsibility.component.mjs +10 -1
- package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +10 -1
- package/esm2022/lib/add-multiple-risk/add-multiple-risk.component.mjs +10 -1
- package/esm2022/lib/constants/api.constants.mjs +4 -1
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +3 -6
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +6 -1
- package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +48 -14
- package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +8 -4
- package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -11
- package/esm2022/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.mjs +10 -1
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +4 -3
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +7 -10
- package/esm2022/lib/workflow-services/responsibility.service.mjs +7 -18
- package/fesm2022/vcomply-workflow-engine.mjs +120 -64
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +2 -0
- package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +2 -0
- package/lib/add-multiple-risk/add-multiple-risk.component.d.ts +2 -0
- package/lib/constants/api.constants.d.ts +3 -0
- package/lib/interfaces/responsibilty.interface.d.ts +1 -1
- package/lib/sharedComponents/frequency/frequency.service.d.ts +1 -0
- package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +2 -1
- package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +2 -1
- package/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.d.ts +2 -0
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/lib/workflow-services/responsibility.service.d.ts +2 -4
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ import { retry, map as map$1, catchError as catchError$1, takeUntil as takeUntil
|
|
|
8
8
|
import * as i2 from '@vcomply/authorizer';
|
|
9
9
|
import * as i1$1 from '@angular/common';
|
|
10
10
|
import { CommonModule, DatePipe, NgOptimizedImage } from '@angular/common';
|
|
11
|
-
import dayjs from 'dayjs';
|
|
12
11
|
import * as i1$3 from '@angular/forms';
|
|
13
12
|
import { FormsModule, NG_VALUE_ACCESSOR, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
14
13
|
import { cloneDeep, shuffle, some, uniqBy, isEqual } from 'lodash';
|
|
@@ -20,6 +19,7 @@ import { DpDatePickerModule } from 'ng2-date-picker';
|
|
|
20
19
|
import { nanoid } from 'nanoid';
|
|
21
20
|
import moment from 'moment/moment';
|
|
22
21
|
import { cloneDeep as cloneDeep$1 } from 'lodash-es';
|
|
22
|
+
import dayjs from 'dayjs';
|
|
23
23
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
24
24
|
import * as i3 from '@angular/router';
|
|
25
25
|
import { NavigationStart, NavigationEnd, NavigationError } from '@angular/router';
|
|
@@ -1338,15 +1338,7 @@ class GrcService {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
getAllResponsibilities(pageNo) {
|
|
1341
|
-
const
|
|
1342
|
-
const formattedCycle = businessCycle.selected_cycle
|
|
1343
|
-
? dayjs(businessCycle.selected_cycle.split('-')[0]).format('YYYY-MM-DD') +
|
|
1344
|
-
':' +
|
|
1345
|
-
dayjs(businessCycle.selected_cycle.split('-')[1]).format('YYYY-MM-DD')
|
|
1346
|
-
: '';
|
|
1347
|
-
const headers = new HttpHeaders()
|
|
1348
|
-
.set('token', this.authService.getAuthorizationToken())
|
|
1349
|
-
.set('biz_cycle', formattedCycle);
|
|
1341
|
+
const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
1350
1342
|
return this.http.get(this.env.complianceGet + `sailsResponsibilitiesList&page=${pageNo}&limit=30`, { headers });
|
|
1351
1343
|
}
|
|
1352
1344
|
getGRCList(event) {
|
|
@@ -1688,10 +1680,9 @@ const SUCCESS_MESSAGE = {
|
|
|
1688
1680
|
};
|
|
1689
1681
|
|
|
1690
1682
|
class ResponsibilityService {
|
|
1691
|
-
constructor(http, authService,
|
|
1683
|
+
constructor(http, authService, config) {
|
|
1692
1684
|
this.http = http;
|
|
1693
1685
|
this.authService = authService;
|
|
1694
|
-
this.grcService = grcService;
|
|
1695
1686
|
this.dataPerPage = 30;
|
|
1696
1687
|
this.responsibilityPageNumber = 1;
|
|
1697
1688
|
this.grcOwners$ = new BehaviorSubject([]);
|
|
@@ -2028,7 +2019,7 @@ class ResponsibilityService {
|
|
|
2028
2019
|
id: event.responsibilityCenterArr
|
|
2029
2020
|
} : undefined,
|
|
2030
2021
|
reviewer: event.reviewer_arr?.level1?.reviewers?.length ? {
|
|
2031
|
-
type: event.reviewer_arr?.level1?.type?.toLowerCase(),
|
|
2022
|
+
type: event.reviewer_arr?.level1?.type?.toLowerCase() === 'anyone' ? 'any' : 'sequential',
|
|
2032
2023
|
userId: event.reviewer_arr?.level1?.reviewers?.map((reviewer) => reviewer?.member_id),
|
|
2033
2024
|
frequency: {
|
|
2034
2025
|
completeBy: event?.review_after_days,
|
|
@@ -2073,18 +2064,10 @@ class ResponsibilityService {
|
|
|
2073
2064
|
return result;
|
|
2074
2065
|
}
|
|
2075
2066
|
getAllResponsibilities() {
|
|
2076
|
-
const
|
|
2077
|
-
const formattedCycle = businessCycle.selected_cycle
|
|
2078
|
-
? dayjs(businessCycle.selected_cycle.split('-')[0]).format('YYYY-MM-DD') +
|
|
2079
|
-
':' +
|
|
2080
|
-
dayjs(businessCycle.selected_cycle.split('-')[1]).format('YYYY-MM-DD')
|
|
2081
|
-
: '';
|
|
2082
|
-
const headers = new HttpHeaders()
|
|
2083
|
-
.set('token', this.authService.getAuthorizationToken())
|
|
2084
|
-
.set('biz_cycle', formattedCycle);
|
|
2067
|
+
const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
2085
2068
|
return this.http.get(this.env.complianceGet + `sailsResponsibilitiesList&page=${this.responsibilityPageNumber}&limit=-1`, { headers });
|
|
2086
2069
|
}
|
|
2087
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsibilityService, deps: [{ token: i1.HttpClient }, { token: AuthService$1 }, { token:
|
|
2070
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsibilityService, deps: [{ token: i1.HttpClient }, { token: AuthService$1 }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2088
2071
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsibilityService, providedIn: 'root' }); }
|
|
2089
2072
|
}
|
|
2090
2073
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsibilityService, decorators: [{
|
|
@@ -2092,7 +2075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2092
2075
|
args: [{
|
|
2093
2076
|
providedIn: 'root',
|
|
2094
2077
|
}]
|
|
2095
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: AuthService$1 }, { type:
|
|
2078
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: AuthService$1 }, { type: Configurations, decorators: [{
|
|
2096
2079
|
type: Optional
|
|
2097
2080
|
}] }]; } });
|
|
2098
2081
|
|
|
@@ -11789,6 +11772,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11789
11772
|
const DEFAULT_TIME = '11:30 PM';
|
|
11790
11773
|
const DEFAULT_24HR = '23:30:00';
|
|
11791
11774
|
|
|
11775
|
+
const API = {
|
|
11776
|
+
subscriptionList: `subscriptionList`,
|
|
11777
|
+
goToPolicyWorkroom: `/all/policy/workroom?id=`,
|
|
11778
|
+
editPolicy: `/all/policy/edit-policy?id=`,
|
|
11779
|
+
responsibilityList: `sailsResponsibilitiesList`,
|
|
11780
|
+
};
|
|
11781
|
+
const PROGRAM_LIST_API = {
|
|
11782
|
+
programList: 'sailsProgramList',
|
|
11783
|
+
categoryList: 'sailsProgramCategories',
|
|
11784
|
+
};
|
|
11785
|
+
|
|
11792
11786
|
class FrequencyService {
|
|
11793
11787
|
constructor(http, authService, config) {
|
|
11794
11788
|
this.http = http;
|
|
@@ -12336,6 +12330,10 @@ class FrequencyService {
|
|
|
12336
12330
|
.post(this.env.responsibilityPost + 'manage_responsibilities_reports_count', payload, { headers })
|
|
12337
12331
|
.pipe(retry(1));
|
|
12338
12332
|
}
|
|
12333
|
+
getAllResponsibilities(pageNo) {
|
|
12334
|
+
const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
12335
|
+
return this.http.get(this.env.complianceGet + API.responsibilityList + `&page=${pageNo}&limit=10`, { headers });
|
|
12336
|
+
}
|
|
12339
12337
|
formatDate() {
|
|
12340
12338
|
const currentDate = new Date();
|
|
12341
12339
|
const day = String(currentDate?.getDate()).padStart(2, '0');
|
|
@@ -13856,7 +13854,6 @@ class LinkResponsibilityListComponent {
|
|
|
13856
13854
|
ngOnInit() {
|
|
13857
13855
|
this.getResponsibilityValues();
|
|
13858
13856
|
this.getResponsibilityList();
|
|
13859
|
-
this.setResponsibilitiesCount();
|
|
13860
13857
|
}
|
|
13861
13858
|
back() {
|
|
13862
13859
|
this.closeButton.emit();
|
|
@@ -13880,20 +13877,55 @@ class LinkResponsibilityListComponent {
|
|
|
13880
13877
|
this.animation = false;
|
|
13881
13878
|
}, 300);
|
|
13882
13879
|
}
|
|
13883
|
-
getResponsibilityList() {
|
|
13880
|
+
getResponsibilityList(pageNo = 1) {
|
|
13884
13881
|
this.responsibilityLoader = true;
|
|
13885
13882
|
this.frequencyService
|
|
13886
|
-
?.
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13883
|
+
?.getAllResponsibilities(pageNo).subscribe({
|
|
13884
|
+
next: (res) => {
|
|
13885
|
+
if (res?.data) {
|
|
13886
|
+
this.responsibilitiesData = this.mapResponsibilitiesData(res.data);
|
|
13887
|
+
}
|
|
13888
|
+
this.responsibilityLoader = false;
|
|
13889
|
+
},
|
|
13890
|
+
error: () => {
|
|
13891
|
+
this.responsibilityLoader = false;
|
|
13892
|
+
}
|
|
13890
13893
|
});
|
|
13891
13894
|
}
|
|
13895
|
+
mapResponsibilitiesData(res) {
|
|
13896
|
+
const pageSize = 10;
|
|
13897
|
+
const currentPage = res?.page || 1;
|
|
13898
|
+
const totalItems = res?.total || 0;
|
|
13899
|
+
const startIndex = (currentPage - 1) * pageSize + 1;
|
|
13900
|
+
const endIndex = Math.min(startIndex + pageSize - 1, totalItems);
|
|
13901
|
+
return {
|
|
13902
|
+
data: res.responsibilities.map((item) => ({
|
|
13903
|
+
ReportId: item?.rid,
|
|
13904
|
+
ReportName: item?.title,
|
|
13905
|
+
ControlId: item?.id ? `[CID-${item.id}]` : '',
|
|
13906
|
+
status: item?.status,
|
|
13907
|
+
frequency: item?.frequency,
|
|
13908
|
+
assignor: item?.assignor,
|
|
13909
|
+
assignees: item?.assignees,
|
|
13910
|
+
responsibilityCenters: item?.responsibility_centers,
|
|
13911
|
+
reviewers: item?.reviewers,
|
|
13912
|
+
type: item?.type,
|
|
13913
|
+
complianceType: item?.compliance_type,
|
|
13914
|
+
category_details_array: item?.category_details_array || [],
|
|
13915
|
+
})),
|
|
13916
|
+
total_responsibilities: totalItems,
|
|
13917
|
+
total_pages: Math.ceil(totalItems / pageSize),
|
|
13918
|
+
responsibilityCurrentPage: currentPage,
|
|
13919
|
+
responsibilities_from: startIndex,
|
|
13920
|
+
responsibilities_to: endIndex
|
|
13921
|
+
};
|
|
13922
|
+
}
|
|
13892
13923
|
responsibilityPageChange(pageNumber) {
|
|
13893
|
-
this.responsibilityCurrentPage
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13924
|
+
if (pageNumber !== this.responsibilitiesData.responsibilityCurrentPage) {
|
|
13925
|
+
this.responsibilityCurrentPage = pageNumber;
|
|
13926
|
+
this.responsibilityPayload.pageNo = pageNumber;
|
|
13927
|
+
this.getResponsibilityList(pageNumber);
|
|
13928
|
+
}
|
|
13897
13929
|
}
|
|
13898
13930
|
deleteItem(item) {
|
|
13899
13931
|
const index = this.selectedResponsibilityId.findIndex((element) => element == item[this.respIdKey]);
|
|
@@ -13920,7 +13952,6 @@ class LinkResponsibilityListComponent {
|
|
|
13920
13952
|
this.responsibilityCurrentPage = 1;
|
|
13921
13953
|
this.responsibilityPayload.pageNo = this.responsibilityCurrentPage;
|
|
13922
13954
|
this.getResponsibilityList();
|
|
13923
|
-
this.setResponsibilitiesCount();
|
|
13924
13955
|
}
|
|
13925
13956
|
setResponsibilitiesCount() {
|
|
13926
13957
|
const payload = JSON.parse(JSON.stringify(this.responsibilityPayload));
|
|
@@ -13974,11 +14005,11 @@ class LinkResponsibilityListComponent {
|
|
|
13974
14005
|
: false;
|
|
13975
14006
|
}
|
|
13976
14007
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkResponsibilityListComponent, deps: [{ token: FrequencyService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13977
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LinkResponsibilityListComponent, selector: "app-link-responsibility-list", inputs: { onCompletionOfResponsibility: "onCompletionOfResponsibility", feature: "feature", respIdKey: "respIdKey", selectedResponsibilityValues: "selectedResponsibilityValues", radioSelection: "radioSelection" }, outputs: { closeButton: "closeButton", selectedResponsibility: "selectedResponsibility" }, ngImport: i0, template: "<div class=\"frequency-responsibility-list\" [class.animate]=\"animation\">\n <div\n class=\"frequency-responsibility-list-head vx-p-3 vx-d-flex vx-align-center vx-justify-between\"\n >\n <div class=\"vx-d-flex vx-align-center\">\n <div class=\"vx-fs-14 vx-fw-500 vx-label-txt\">Select a Responsibility</div>\n </div>\n </div>\n <div class=\"frequency-responsibility-list-body\">\n <div\n *ngIf=\"responsibilitiesData?.allResponsibilityCount > 0\"\n class=\"vx-d-flex vx-align-center vx-justify-between vx-mb-2\"\n >\n <ng-container *ngFor=\"let tab of responsibilityTabs; let i = index\">\n <div\n class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-mr-1 vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-w-100\"\n [class.active]=\"currentTab === i + 1 || (currentTab === 0 && i === 3)\"\n (click)=\"onClickTabChange(tab)\"\n [class.pointer-none]=\"responsibilityLoader\"\n >\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <label\n class=\"vx-paragraph-txt vx-fw-500 vx-tt-uppercase vx-d-flex vx-justify-between vx-align-center\"\n >{{ tab.name }}</label\n >\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span\n class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center\"\n >{{\n responsibilityTabCount[typeToCountProperty[tab.type]] || 0\n }}</span\n >\n </div>\n </div>\n </ng-container>\n </div>\n\n <div class=\"frequency-responsibility-list-search vx-mb-2\">\n <i class=\"icons vx-fs-12\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"responsibilitySearchText\"\n (keyup.enter)=\"search()\"\n placeholder=\"Search Responsibilities\"\n />\n </div>\n <app-pagination\n *ngIf=\"!responsibilityLoader && responsibilitiesData?.total_pages > 1\"\n [start]=\"responsibilitiesData?.responsibilities_from\"\n [end]=\"responsibilitiesData?.responsibilities_to\"\n [total]=\"responsibilitiesData?.total_responsibilities\"\n [pageCount]=\"responsibilitiesData?.total_pages\"\n [currentPage]=\"responsibilityCurrentPage\"\n (selectedPage)=\"responsibilityPageChange($event)\"\n >\n </app-pagination>\n <app-loader-inline *ngIf=\"responsibilityLoader\"></app-loader-inline>\n <div\n class=\"frequency-responsibility-list-mid vx-mb-4\"\n [class.with-pagination]=\"\n !responsibilityLoader && responsibilitiesData?.total_pages > 1\n \"\n >\n <app-no-data\n *ngIf=\"\n responsibilitiesData?.data?.length === 0 && !responsibilityLoader\n \"\n [noDataImage]=\"noDataImagePath\"\n [noDataText]=\"noDataMessage\"\n ></app-no-data>\n <ng-container\n *ngIf=\"responsibilitiesData?.data?.length > 0 && !responsibilityLoader\"\n >\n <div class=\"table-header\">\n <div class=\"table-row\">\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n #\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n RESPONSIBILITIES\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility-center\"\n *ngIf=\"isOnCompletionRc\"\n >\n RESPONSIBILITY CENTER\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n PROGRAMS\n </div>\n </div>\n </div>\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n [class.active]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n *ngFor=\"\n let responsibility of responsibilitiesData?.data;\n let i = index\n \"\n >\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n <div\n class=\"sr-no\"\n [appTooltip]=\"responsibilitiesData?.responsibilities_from + i\"\n placement=\"bottom\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibilitiesData?.responsibilities_from + i }}\n </div>\n <app-cs-checkbox\n [ngValue]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n (ngValueChange)=\"selectResp(responsibility?.ReportId, $event)\"\n >\n </app-cs-checkbox>\n </div>\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n <div\n class=\"value vx-fs-12 vx-label-txt vx-pr-5\"\n [appTooltip]=\"responsibility?.ReportName\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibility?.ControlId }} {{ responsibility?.ReportName }}\n </div>\n </div>\n\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.category_name as categoryName\n \"\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n <div class=\"program-inner vx-d-block\">\n <div\n class=\"program-value vx-fs-11 vx-label-txt vx-pr-5\"\n [appTooltip]=\"\n responsibility?.category_details_array[0]?.category_name ??\n '--'\n \"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ categoryName ?? \"--\" }}\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n <button\n *ngIf=\"responsibility?.category_details_array?.length >= 2\"\n appPopover\n (click)=\"programPopup.popover()\"\n placement=\"right\"\n class=\"program-count vx-fs-11 vx-fw-500 vx-txt-white vx-p-0 vx-pl-1 vx-pr-1 vx-m-0 vx-d-flex vx-align-center vx-justify-center\"\n >\n +{{ responsibility?.category_details_array?.length - 1 }}\n </button>\n <app-popover #programPopup>\n <div class=\"wf-action-list\">\n <ul class=\"action-item\">\n <li\n *ngFor=\"\n let subCategory of responsibility?.category_details_array\n | slice : 1\n \"\n >\n <div class=\"avatar-card\">\n <div class=\"vx-d-block vx-w-100\">\n <span\n class=\"value\"\n [appTooltip]=\"subCategory?.category_name\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >{{ subCategory?.category_name }}</span\n >\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </app-popover>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <app-floating-bar\n *ngIf=\"!responsibilityLoader\"\n [selectedData]=\"isValidObj ? selectedResponsibilityValues : []\"\n [displayElementKey]=\"'ReportName'\"\n (closeList)=\"back()\"\n (closeEvent)=\"save($event)\"\n (deleteEvent)=\"deleteItem($event)\"\n [isDisabled]=\"!isValidObj\"\n ></app-floating-bar>\n </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/header/header.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.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-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.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/button/button.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/popover/popover.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.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-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .frequency-responsibility-list{border-top:3px solid #1e5dd3;position:fixed;top:0;right:31.25rem;bottom:0;left:0}::ng-deep .frequency-responsibility-list.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .frequency-responsibility-list-head{background:#fbfbfb;border-bottom:1px solid #f1f1f1;height:2.75rem}::ng-deep .frequency-responsibility-list-head .arrow{cursor:pointer}::ng-deep .frequency-responsibility-list-body{background:#fff;height:calc(100vh - 2.75rem);padding:1.5rem .75rem 1.5rem 2rem}::ng-deep .frequency-responsibility-list-body app-pagination .wk-pagination-sec-ds{border-radius:0;padding:0 0 .5rem}::ng-deep .frequency-responsibility-list-body app-floating-bar .floating-bar{padding:0;position:relative;left:-1rem;width:calc(100% + 2rem)}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar{padding-left:0!important;padding-right:0!important}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar .userGroup-floating-bar-container .left .chip span{max-width:240px}::ng-deep .frequency-responsibility-list-search{position:relative}::ng-deep .frequency-responsibility-list-search input{height:2.75rem;line-height:1.5rem;padding:.75rem .75rem .75rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .frequency-responsibility-list-search input::placeholder{color:#747576;opacity:1}::ng-deep .frequency-responsibility-list-search i{position:absolute;left:1rem;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .frequency-responsibility-list-mid{height:calc(100vh - 17.5rem);overflow:auto}::ng-deep .frequency-responsibility-list-mid::-webkit-scrollbar-track{background-color:#fff}::ng-deep .frequency-responsibility-list-mid.with-pagination{height:calc(100vh - 19.5rem)}::ng-deep .frequency-responsibility-list-mid .table-header{background:#fff;position:sticky;top:0;z-index:1}::ng-deep .frequency-responsibility-list-mid .table-header .table-column{color:#161b2f!important;line-height:.75rem!important;min-height:1.875rem!important}::ng-deep .frequency-responsibility-list-mid .table-body{position:relative}::ng-deep .frequency-responsibility-list-mid .table-body .table-row{background:#fff;border-radius:.25rem;border:1px solid #f1f1f1;margin-bottom:.25rem}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial .sr-no,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial .sr-no{opacity:0}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial app-cs-checkbox,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial app-cs-checkbox{opacity:1}::ng-deep .frequency-responsibility-list-mid .table-row{display:flex;justify-content:space-between;position:relative}::ng-deep .frequency-responsibility-list-mid .table-row .table-column{color:#747576;min-height:2.5rem;position:relative;width:100%}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial{width:2rem;max-width:2rem;justify-content:center}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial .sr-no{width:1rem;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;font-weight:500;display:flex;height:2.5rem;align-items:center;justify-content:center;position:relative;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{position:absolute;top:.75rem;left:.5rem;width:1rem;height:1rem;opacity:0;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox .radio-item{position:absolute}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{display:flex}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility{width:calc(100% - 15.5rem);min-width:calc(100% - 15.5rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility.with-rc{width:calc(100% - 31rem);min-width:calc(100% - 31rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility .value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center{width:15.5rem;min-width:15.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program{width:13.5rem;min-width:13.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}@keyframes animate-right{0%{transform:translate(5px);opacity:0}to{transform:translate(0);opacity:1}}.wf-action-list{width:220px}.wf-action-list ul{padding:0;margin:0;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) both;background:#fff;box-shadow:0 3px 6px #1c5bd140;border-radius:4px;max-height:220px;overflow:auto}.wf-action-list ul.action-item{display:block}.wf-action-list ul.action-item li{list-style:none;border:none;border-bottom:1px solid #f1f1f1;display:block;width:100%;padding:0;background:transparent;border-radius:0;margin:0;height:auto;justify-content:flex-start;box-shadow:none}.wf-action-list ul.action-item li .avatar-card{display:flex;align-items:center;width:100%;padding:7.5px}.wf-action-list ul.action-item li .avatar-card.within-con{display:block}.wf-action-list ul.action-item li .avatar-card .avatar{height:24px;width:24px!important;overflow:hidden;background:#1e5dd3;color:#fff;font-size:10px;display:inline-flex;margin-right:5px;border-radius:50%;align-items:center;justify-content:center;text-transform:uppercase}.wf-action-list ul.action-item li .avatar-card .avatar img{width:100%}.wf-action-list ul.action-item li .avatar-card .avatar+span.value{width:calc(100% - 29px)}.wf-action-list ul.action-item li .avatar-card span.value{width:100%;color:#6e717e;text-decoration:none;background:transparent;font-size:12px;text-transform:capitalize;display:block;font-weight:400;text-align-last:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}.wf-action-list ul.action-item li .avatar-card span.value i{font-size:8px;color:#747576;cursor:pointer;margin-right:5px}.wf-action-list ul.action-item li .avatar-card.no-image{display:block}.wf-action-list ul.action-item li .avatar-card.no-image span.value{width:100%;display:block}.wf-action-list ul.action-item li:first-child{animation:action-list-open .25s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(2){animation:action-list-open .35s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(3){animation:action-list-open .45s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(4){animation:action-list-open .55s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(5){animation:action-list-open .65s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(6){animation:action-list-open .75s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(7){animation:action-list-open .85s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(8){animation:action-list-open .95s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(9){animation:action-list-open 1.05s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(10){animation:action-list-open 1.15s cubic-bezier(.25,.46,.45,.94) both}@keyframes action-list-open{0%{transform:translateY(50px)}to{transform:translateY(0)}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: FloatingBarComponent, selector: "app-floating-bar", inputs: ["selectedData", "selectedGroups", "displayElementKey", "elementId", "singularText", "pluralText", "showNextButton", "showFrequencyText", "showWorkflow", "workflowText", "currentFrequency", "isDisabled", "workflowList", "selectedWorkflow", "workflowPlaceHolder", "mode", "defaultSelected", "groupsEnabled", "nonRemovableUsersList", "removePosition"], outputs: ["closeEvent", "deleteEvent", "closeList", "deleteGroupEvent", "workflowTypeChanged"] }, { kind: "component", type: CsCheckboxComponent, selector: "app-cs-checkbox", inputs: ["disabled", "ngValue", "value", "readonly", "oneLine"], outputs: ["ngValueChange"] }, { kind: "component", type: NoDataComponent, selector: "app-no-data", inputs: ["action", "noDataImage", "noDataText", "noDataButton", "noDataSecButton", "altText", "smallButton", "button"], outputs: ["buttonAction"] }, { kind: "component", type: LoaderInlineComponent, selector: "app-loader-inline" }, { kind: "component", type: PopoverComponent, selector: "app-popover", inputs: ["dontCloseonClick"] }, { kind: "directive", type: PopoverDirective, selector: "[appPopover]", inputs: ["refrence", "placement"] }, { kind: "pipe", type: i1$1.SlicePipe, name: "slice" }] }); }
|
|
14008
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LinkResponsibilityListComponent, selector: "app-link-responsibility-list", inputs: { onCompletionOfResponsibility: "onCompletionOfResponsibility", feature: "feature", respIdKey: "respIdKey", selectedResponsibilityValues: "selectedResponsibilityValues", radioSelection: "radioSelection" }, outputs: { closeButton: "closeButton", selectedResponsibility: "selectedResponsibility" }, ngImport: i0, template: "<div class=\"frequency-responsibility-list\" [class.animate]=\"animation\">\n <div\n class=\"frequency-responsibility-list-head vx-p-3 vx-d-flex vx-align-center vx-justify-between\"\n >\n <div class=\"vx-d-flex vx-align-center\">\n <div class=\"vx-fs-14 vx-fw-500 vx-label-txt\">Select a Responsibility</div>\n </div>\n </div>\n <div class=\"frequency-responsibility-list-body\">\n <div\n *ngIf=\"responsibilitiesData?.allResponsibilityCount > 0\"\n class=\"vx-d-flex vx-align-center vx-justify-between vx-mb-2\"\n >\n <ng-container *ngFor=\"let tab of responsibilityTabs; let i = index\">\n <div\n class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-mr-1 vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-w-100\"\n [class.active]=\"currentTab === i + 1 || (currentTab === 0 && i === 3)\"\n (click)=\"onClickTabChange(tab)\"\n [class.pointer-none]=\"responsibilityLoader\"\n >\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <label\n class=\"vx-paragraph-txt vx-fw-500 vx-tt-uppercase vx-d-flex vx-justify-between vx-align-center\"\n >{{ tab.name }}</label\n >\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span\n class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center\"\n >{{\n responsibilityTabCount[typeToCountProperty[tab.type]] || 0\n }}</span\n >\n </div>\n </div>\n </ng-container>\n </div>\n\n <div class=\"frequency-responsibility-list-search vx-mb-2\">\n <i class=\"icons vx-fs-12\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"responsibilitySearchText\"\n (keyup.enter)=\"search()\"\n placeholder=\"Search Responsibilities\"\n />\n </div>\n <app-pagination\n *ngIf=\"!responsibilityLoader && responsibilitiesData?.total_pages > 1\"\n [start]=\"responsibilitiesData?.responsibilities_from\"\n [end]=\"responsibilitiesData?.responsibilities_to\"\n [total]=\"responsibilitiesData?.total_responsibilities\"\n [pageCount]=\"responsibilitiesData?.total_pages\"\n [currentPage]=\"responsibilitiesData?.responsibilityCurrentPage\"\n (selectedPage)=\"responsibilityPageChange($event)\"\n >\n </app-pagination>\n <app-loader-inline *ngIf=\"responsibilityLoader\"></app-loader-inline>\n <div\n class=\"frequency-responsibility-list-mid vx-mb-4\"\n [class.with-pagination]=\"\n !responsibilityLoader && responsibilitiesData?.total_pages > 1\n \"\n >\n <app-no-data\n *ngIf=\"\n responsibilitiesData?.data?.length === 0 && !responsibilityLoader\n \"\n [noDataImage]=\"noDataImagePath\"\n [noDataText]=\"noDataMessage\"\n ></app-no-data>\n <ng-container\n *ngIf=\"responsibilitiesData?.data?.length > 0 && !responsibilityLoader\"\n >\n <div class=\"table-header\">\n <div class=\"table-row\">\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n #\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n RESPONSIBILITIES\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility-center\"\n *ngIf=\"isOnCompletionRc\"\n >\n RESPONSIBILITY CENTER\n </div>\n </div>\n </div>\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n [class.active]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n *ngFor=\"\n let responsibility of responsibilitiesData?.data;\n let i = index\n \"\n >\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n <div\n class=\"sr-no\"\n [appTooltip]=\"responsibilitiesData?.responsibilities_from + i\"\n placement=\"bottom\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibilitiesData?.responsibilities_from + i }}\n </div>\n <app-cs-checkbox\n [ngValue]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n (ngValueChange)=\"selectResp(responsibility?.ReportId, $event)\"\n >\n </app-cs-checkbox>\n </div>\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n <div\n class=\"value vx-fs-12 vx-label-txt vx-pr-5\"\n [appTooltip]=\"responsibility?.ReportName\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibility?.ControlId }} {{ responsibility?.ReportName }}\n </div>\n </div>\n\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.category_name as categoryName\n \"\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n <div class=\"program-inner vx-d-block\">\n <div\n class=\"program-value vx-fs-11 vx-label-txt vx-pr-5\"\n [appTooltip]=\"\n responsibility?.category_details_array[0]?.category_name ??\n '--'\n \"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ categoryName ?? \"--\" }}\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n <button\n *ngIf=\"responsibility?.category_details_array?.length >= 2\"\n appPopover\n (click)=\"programPopup.popover()\"\n placement=\"right\"\n class=\"program-count vx-fs-11 vx-fw-500 vx-txt-white vx-p-0 vx-pl-1 vx-pr-1 vx-m-0 vx-d-flex vx-align-center vx-justify-center\"\n >\n +{{ responsibility?.category_details_array?.length - 1 }}\n </button>\n <app-popover #programPopup>\n <div class=\"wf-action-list\">\n <ul class=\"action-item\">\n <li\n *ngFor=\"\n let subCategory of responsibility?.category_details_array\n | slice : 1\n \"\n >\n <div class=\"avatar-card\">\n <div class=\"vx-d-block vx-w-100\">\n <span\n class=\"value\"\n [appTooltip]=\"subCategory?.category_name\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >{{ subCategory?.category_name }}</span\n >\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </app-popover>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <app-floating-bar\n *ngIf=\"!responsibilityLoader\"\n [selectedData]=\"isValidObj ? selectedResponsibilityValues : []\"\n [displayElementKey]=\"'ReportName'\"\n (closeList)=\"back()\"\n (closeEvent)=\"save($event)\"\n (deleteEvent)=\"deleteItem($event)\"\n [isDisabled]=\"!isValidObj\"\n ></app-floating-bar>\n </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/header/header.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.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-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.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/button/button.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/popover/popover.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.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-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .frequency-responsibility-list{border-top:3px solid #1e5dd3;position:fixed;top:0;right:31.25rem;bottom:0;left:0}::ng-deep .frequency-responsibility-list.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .frequency-responsibility-list-head{background:#fbfbfb;border-bottom:1px solid #f1f1f1;height:2.75rem}::ng-deep .frequency-responsibility-list-head .arrow{cursor:pointer}::ng-deep .frequency-responsibility-list-body{background:#fff;height:calc(100vh - 2.75rem);padding:1.5rem .75rem 1.5rem 2rem}::ng-deep .frequency-responsibility-list-body app-pagination .wk-pagination-sec-ds{border-radius:0;padding:0 0 .5rem}::ng-deep .frequency-responsibility-list-body app-floating-bar .floating-bar{padding:0;position:relative;left:-1rem;width:calc(100% + 2rem)}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar{padding-left:0!important;padding-right:0!important}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar .userGroup-floating-bar-container .left .chip span{max-width:240px}::ng-deep .frequency-responsibility-list-search{position:relative}::ng-deep .frequency-responsibility-list-search input{height:2.75rem;line-height:1.5rem;padding:.75rem .75rem .75rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .frequency-responsibility-list-search input::placeholder{color:#747576;opacity:1}::ng-deep .frequency-responsibility-list-search i{position:absolute;left:1rem;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .frequency-responsibility-list-mid{height:calc(100vh - 17.5rem);overflow:auto}::ng-deep .frequency-responsibility-list-mid::-webkit-scrollbar-track{background-color:#fff}::ng-deep .frequency-responsibility-list-mid.with-pagination{height:calc(100vh - 19.5rem)}::ng-deep .frequency-responsibility-list-mid .table-header{background:#fff;position:sticky;top:0;z-index:1}::ng-deep .frequency-responsibility-list-mid .table-header .table-column{color:#161b2f!important;line-height:.75rem!important;min-height:1.875rem!important}::ng-deep .frequency-responsibility-list-mid .table-body{position:relative}::ng-deep .frequency-responsibility-list-mid .table-body .table-row{background:#fff;border-radius:.25rem;border:1px solid #f1f1f1;margin-bottom:.25rem}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial .sr-no,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial .sr-no{opacity:0}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial app-cs-checkbox,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial app-cs-checkbox{opacity:1}::ng-deep .frequency-responsibility-list-mid .table-row{display:flex;justify-content:left;position:relative}::ng-deep .frequency-responsibility-list-mid .table-row .table-column{color:#747576;min-height:2.5rem;position:relative;width:100%}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial{width:2rem;max-width:2rem;justify-content:center}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial .sr-no{width:1rem;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;font-weight:500;display:flex;height:2.5rem;align-items:center;justify-content:center;position:relative;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{position:absolute;top:.75rem;left:.5rem;width:1rem;height:1rem;opacity:0;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox .radio-item{position:absolute}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{display:flex}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility{width:calc(100% - 15.5rem);min-width:calc(100% - 15.5rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility.with-rc{width:calc(100% - 31rem);min-width:calc(100% - 31rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility .value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center{width:15.5rem;min-width:15.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program{width:13.5rem;min-width:13.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}@keyframes animate-right{0%{transform:translate(5px);opacity:0}to{transform:translate(0);opacity:1}}.wf-action-list{width:220px}.wf-action-list ul{padding:0;margin:0;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) both;background:#fff;box-shadow:0 3px 6px #1c5bd140;border-radius:4px;max-height:220px;overflow:auto}.wf-action-list ul.action-item{display:block}.wf-action-list ul.action-item li{list-style:none;border:none;border-bottom:1px solid #f1f1f1;display:block;width:100%;padding:0;background:transparent;border-radius:0;margin:0;height:auto;justify-content:flex-start;box-shadow:none}.wf-action-list ul.action-item li .avatar-card{display:flex;align-items:center;width:100%;padding:7.5px}.wf-action-list ul.action-item li .avatar-card.within-con{display:block}.wf-action-list ul.action-item li .avatar-card .avatar{height:24px;width:24px!important;overflow:hidden;background:#1e5dd3;color:#fff;font-size:10px;display:inline-flex;margin-right:5px;border-radius:50%;align-items:center;justify-content:center;text-transform:uppercase}.wf-action-list ul.action-item li .avatar-card .avatar img{width:100%}.wf-action-list ul.action-item li .avatar-card .avatar+span.value{width:calc(100% - 29px)}.wf-action-list ul.action-item li .avatar-card span.value{width:100%;color:#6e717e;text-decoration:none;background:transparent;font-size:12px;text-transform:capitalize;display:block;font-weight:400;text-align-last:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}.wf-action-list ul.action-item li .avatar-card span.value i{font-size:8px;color:#747576;cursor:pointer;margin-right:5px}.wf-action-list ul.action-item li .avatar-card.no-image{display:block}.wf-action-list ul.action-item li .avatar-card.no-image span.value{width:100%;display:block}.wf-action-list ul.action-item li:first-child{animation:action-list-open .25s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(2){animation:action-list-open .35s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(3){animation:action-list-open .45s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(4){animation:action-list-open .55s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(5){animation:action-list-open .65s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(6){animation:action-list-open .75s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(7){animation:action-list-open .85s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(8){animation:action-list-open .95s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(9){animation:action-list-open 1.05s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(10){animation:action-list-open 1.15s cubic-bezier(.25,.46,.45,.94) both}@keyframes action-list-open{0%{transform:translateY(50px)}to{transform:translateY(0)}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: FloatingBarComponent, selector: "app-floating-bar", inputs: ["selectedData", "selectedGroups", "displayElementKey", "elementId", "singularText", "pluralText", "showNextButton", "showFrequencyText", "showWorkflow", "workflowText", "currentFrequency", "isDisabled", "workflowList", "selectedWorkflow", "workflowPlaceHolder", "mode", "defaultSelected", "groupsEnabled", "nonRemovableUsersList", "removePosition"], outputs: ["closeEvent", "deleteEvent", "closeList", "deleteGroupEvent", "workflowTypeChanged"] }, { kind: "component", type: CsCheckboxComponent, selector: "app-cs-checkbox", inputs: ["disabled", "ngValue", "value", "readonly", "oneLine"], outputs: ["ngValueChange"] }, { kind: "component", type: NoDataComponent, selector: "app-no-data", inputs: ["action", "noDataImage", "noDataText", "noDataButton", "noDataSecButton", "altText", "smallButton", "button"], outputs: ["buttonAction"] }, { kind: "component", type: LoaderInlineComponent, selector: "app-loader-inline" }, { kind: "component", type: PopoverComponent, selector: "app-popover", inputs: ["dontCloseonClick"] }, { kind: "directive", type: PopoverDirective, selector: "[appPopover]", inputs: ["refrence", "placement"] }, { kind: "component", type: PaginationComponentUI, selector: "app-pagination", inputs: ["activeAlphabet", "pageCount", "start", "end", "total", "currentPage"], outputs: ["selectedPage", "selectedAlphabet"] }, { kind: "pipe", type: i1$1.SlicePipe, name: "slice" }] }); }
|
|
13978
14009
|
}
|
|
13979
14010
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkResponsibilityListComponent, decorators: [{
|
|
13980
14011
|
type: Component,
|
|
13981
|
-
args: [{ selector: 'app-link-responsibility-list', template: "<div class=\"frequency-responsibility-list\" [class.animate]=\"animation\">\n <div\n class=\"frequency-responsibility-list-head vx-p-3 vx-d-flex vx-align-center vx-justify-between\"\n >\n <div class=\"vx-d-flex vx-align-center\">\n <div class=\"vx-fs-14 vx-fw-500 vx-label-txt\">Select a Responsibility</div>\n </div>\n </div>\n <div class=\"frequency-responsibility-list-body\">\n <div\n *ngIf=\"responsibilitiesData?.allResponsibilityCount > 0\"\n class=\"vx-d-flex vx-align-center vx-justify-between vx-mb-2\"\n >\n <ng-container *ngFor=\"let tab of responsibilityTabs; let i = index\">\n <div\n class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-mr-1 vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-w-100\"\n [class.active]=\"currentTab === i + 1 || (currentTab === 0 && i === 3)\"\n (click)=\"onClickTabChange(tab)\"\n [class.pointer-none]=\"responsibilityLoader\"\n >\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <label\n class=\"vx-paragraph-txt vx-fw-500 vx-tt-uppercase vx-d-flex vx-justify-between vx-align-center\"\n >{{ tab.name }}</label\n >\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span\n class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center\"\n >{{\n responsibilityTabCount[typeToCountProperty[tab.type]] || 0\n }}</span\n >\n </div>\n </div>\n </ng-container>\n </div>\n\n <div class=\"frequency-responsibility-list-search vx-mb-2\">\n <i class=\"icons vx-fs-12\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"responsibilitySearchText\"\n (keyup.enter)=\"search()\"\n placeholder=\"Search Responsibilities\"\n />\n </div>\n <app-pagination\n *ngIf=\"!responsibilityLoader && responsibilitiesData?.total_pages > 1\"\n [start]=\"responsibilitiesData?.responsibilities_from\"\n [end]=\"responsibilitiesData?.responsibilities_to\"\n [total]=\"responsibilitiesData?.total_responsibilities\"\n [pageCount]=\"responsibilitiesData?.total_pages\"\n [currentPage]=\"responsibilityCurrentPage\"\n (selectedPage)=\"responsibilityPageChange($event)\"\n >\n </app-pagination>\n <app-loader-inline *ngIf=\"responsibilityLoader\"></app-loader-inline>\n <div\n class=\"frequency-responsibility-list-mid vx-mb-4\"\n [class.with-pagination]=\"\n !responsibilityLoader && responsibilitiesData?.total_pages > 1\n \"\n >\n <app-no-data\n *ngIf=\"\n responsibilitiesData?.data?.length === 0 && !responsibilityLoader\n \"\n [noDataImage]=\"noDataImagePath\"\n [noDataText]=\"noDataMessage\"\n ></app-no-data>\n <ng-container\n *ngIf=\"responsibilitiesData?.data?.length > 0 && !responsibilityLoader\"\n >\n <div class=\"table-header\">\n <div class=\"table-row\">\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n #\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n RESPONSIBILITIES\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility-center\"\n *ngIf=\"isOnCompletionRc\"\n >\n RESPONSIBILITY CENTER\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n PROGRAMS\n </div>\n </div>\n </div>\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n [class.active]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n *ngFor=\"\n let responsibility of responsibilitiesData?.data;\n let i = index\n \"\n >\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n <div\n class=\"sr-no\"\n [appTooltip]=\"responsibilitiesData?.responsibilities_from + i\"\n placement=\"bottom\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibilitiesData?.responsibilities_from + i }}\n </div>\n <app-cs-checkbox\n [ngValue]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n (ngValueChange)=\"selectResp(responsibility?.ReportId, $event)\"\n >\n </app-cs-checkbox>\n </div>\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n <div\n class=\"value vx-fs-12 vx-label-txt vx-pr-5\"\n [appTooltip]=\"responsibility?.ReportName\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibility?.ControlId }} {{ responsibility?.ReportName }}\n </div>\n </div>\n\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.category_name as categoryName\n \"\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n <div class=\"program-inner vx-d-block\">\n <div\n class=\"program-value vx-fs-11 vx-label-txt vx-pr-5\"\n [appTooltip]=\"\n responsibility?.category_details_array[0]?.category_name ??\n '--'\n \"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ categoryName ?? \"--\" }}\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n <button\n *ngIf=\"responsibility?.category_details_array?.length >= 2\"\n appPopover\n (click)=\"programPopup.popover()\"\n placement=\"right\"\n class=\"program-count vx-fs-11 vx-fw-500 vx-txt-white vx-p-0 vx-pl-1 vx-pr-1 vx-m-0 vx-d-flex vx-align-center vx-justify-center\"\n >\n +{{ responsibility?.category_details_array?.length - 1 }}\n </button>\n <app-popover #programPopup>\n <div class=\"wf-action-list\">\n <ul class=\"action-item\">\n <li\n *ngFor=\"\n let subCategory of responsibility?.category_details_array\n | slice : 1\n \"\n >\n <div class=\"avatar-card\">\n <div class=\"vx-d-block vx-w-100\">\n <span\n class=\"value\"\n [appTooltip]=\"subCategory?.category_name\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >{{ subCategory?.category_name }}</span\n >\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </app-popover>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <app-floating-bar\n *ngIf=\"!responsibilityLoader\"\n [selectedData]=\"isValidObj ? selectedResponsibilityValues : []\"\n [displayElementKey]=\"'ReportName'\"\n (closeList)=\"back()\"\n (closeEvent)=\"save($event)\"\n (deleteEvent)=\"deleteItem($event)\"\n [isDisabled]=\"!isValidObj\"\n ></app-floating-bar>\n </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/header/header.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.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-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.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/button/button.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/popover/popover.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.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-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .frequency-responsibility-list{border-top:3px solid #1e5dd3;position:fixed;top:0;right:31.25rem;bottom:0;left:0}::ng-deep .frequency-responsibility-list.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .frequency-responsibility-list-head{background:#fbfbfb;border-bottom:1px solid #f1f1f1;height:2.75rem}::ng-deep .frequency-responsibility-list-head .arrow{cursor:pointer}::ng-deep .frequency-responsibility-list-body{background:#fff;height:calc(100vh - 2.75rem);padding:1.5rem .75rem 1.5rem 2rem}::ng-deep .frequency-responsibility-list-body app-pagination .wk-pagination-sec-ds{border-radius:0;padding:0 0 .5rem}::ng-deep .frequency-responsibility-list-body app-floating-bar .floating-bar{padding:0;position:relative;left:-1rem;width:calc(100% + 2rem)}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar{padding-left:0!important;padding-right:0!important}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar .userGroup-floating-bar-container .left .chip span{max-width:240px}::ng-deep .frequency-responsibility-list-search{position:relative}::ng-deep .frequency-responsibility-list-search input{height:2.75rem;line-height:1.5rem;padding:.75rem .75rem .75rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .frequency-responsibility-list-search input::placeholder{color:#747576;opacity:1}::ng-deep .frequency-responsibility-list-search i{position:absolute;left:1rem;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .frequency-responsibility-list-mid{height:calc(100vh - 17.5rem);overflow:auto}::ng-deep .frequency-responsibility-list-mid::-webkit-scrollbar-track{background-color:#fff}::ng-deep .frequency-responsibility-list-mid.with-pagination{height:calc(100vh - 19.5rem)}::ng-deep .frequency-responsibility-list-mid .table-header{background:#fff;position:sticky;top:0;z-index:1}::ng-deep .frequency-responsibility-list-mid .table-header .table-column{color:#161b2f!important;line-height:.75rem!important;min-height:1.875rem!important}::ng-deep .frequency-responsibility-list-mid .table-body{position:relative}::ng-deep .frequency-responsibility-list-mid .table-body .table-row{background:#fff;border-radius:.25rem;border:1px solid #f1f1f1;margin-bottom:.25rem}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial .sr-no,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial .sr-no{opacity:0}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial app-cs-checkbox,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial app-cs-checkbox{opacity:1}::ng-deep .frequency-responsibility-list-mid .table-row{display:flex;justify-content:space-between;position:relative}::ng-deep .frequency-responsibility-list-mid .table-row .table-column{color:#747576;min-height:2.5rem;position:relative;width:100%}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial{width:2rem;max-width:2rem;justify-content:center}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial .sr-no{width:1rem;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;font-weight:500;display:flex;height:2.5rem;align-items:center;justify-content:center;position:relative;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{position:absolute;top:.75rem;left:.5rem;width:1rem;height:1rem;opacity:0;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox .radio-item{position:absolute}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{display:flex}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility{width:calc(100% - 15.5rem);min-width:calc(100% - 15.5rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility.with-rc{width:calc(100% - 31rem);min-width:calc(100% - 31rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility .value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center{width:15.5rem;min-width:15.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program{width:13.5rem;min-width:13.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}@keyframes animate-right{0%{transform:translate(5px);opacity:0}to{transform:translate(0);opacity:1}}.wf-action-list{width:220px}.wf-action-list ul{padding:0;margin:0;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) both;background:#fff;box-shadow:0 3px 6px #1c5bd140;border-radius:4px;max-height:220px;overflow:auto}.wf-action-list ul.action-item{display:block}.wf-action-list ul.action-item li{list-style:none;border:none;border-bottom:1px solid #f1f1f1;display:block;width:100%;padding:0;background:transparent;border-radius:0;margin:0;height:auto;justify-content:flex-start;box-shadow:none}.wf-action-list ul.action-item li .avatar-card{display:flex;align-items:center;width:100%;padding:7.5px}.wf-action-list ul.action-item li .avatar-card.within-con{display:block}.wf-action-list ul.action-item li .avatar-card .avatar{height:24px;width:24px!important;overflow:hidden;background:#1e5dd3;color:#fff;font-size:10px;display:inline-flex;margin-right:5px;border-radius:50%;align-items:center;justify-content:center;text-transform:uppercase}.wf-action-list ul.action-item li .avatar-card .avatar img{width:100%}.wf-action-list ul.action-item li .avatar-card .avatar+span.value{width:calc(100% - 29px)}.wf-action-list ul.action-item li .avatar-card span.value{width:100%;color:#6e717e;text-decoration:none;background:transparent;font-size:12px;text-transform:capitalize;display:block;font-weight:400;text-align-last:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}.wf-action-list ul.action-item li .avatar-card span.value i{font-size:8px;color:#747576;cursor:pointer;margin-right:5px}.wf-action-list ul.action-item li .avatar-card.no-image{display:block}.wf-action-list ul.action-item li .avatar-card.no-image span.value{width:100%;display:block}.wf-action-list ul.action-item li:first-child{animation:action-list-open .25s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(2){animation:action-list-open .35s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(3){animation:action-list-open .45s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(4){animation:action-list-open .55s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(5){animation:action-list-open .65s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(6){animation:action-list-open .75s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(7){animation:action-list-open .85s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(8){animation:action-list-open .95s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(9){animation:action-list-open 1.05s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(10){animation:action-list-open 1.15s cubic-bezier(.25,.46,.45,.94) both}@keyframes action-list-open{0%{transform:translateY(50px)}to{transform:translateY(0)}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"] }]
|
|
14012
|
+
args: [{ selector: 'app-link-responsibility-list', template: "<div class=\"frequency-responsibility-list\" [class.animate]=\"animation\">\n <div\n class=\"frequency-responsibility-list-head vx-p-3 vx-d-flex vx-align-center vx-justify-between\"\n >\n <div class=\"vx-d-flex vx-align-center\">\n <div class=\"vx-fs-14 vx-fw-500 vx-label-txt\">Select a Responsibility</div>\n </div>\n </div>\n <div class=\"frequency-responsibility-list-body\">\n <div\n *ngIf=\"responsibilitiesData?.allResponsibilityCount > 0\"\n class=\"vx-d-flex vx-align-center vx-justify-between vx-mb-2\"\n >\n <ng-container *ngFor=\"let tab of responsibilityTabs; let i = index\">\n <div\n class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-mr-1 vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-w-100\"\n [class.active]=\"currentTab === i + 1 || (currentTab === 0 && i === 3)\"\n (click)=\"onClickTabChange(tab)\"\n [class.pointer-none]=\"responsibilityLoader\"\n >\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <label\n class=\"vx-paragraph-txt vx-fw-500 vx-tt-uppercase vx-d-flex vx-justify-between vx-align-center\"\n >{{ tab.name }}</label\n >\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span\n class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center\"\n >{{\n responsibilityTabCount[typeToCountProperty[tab.type]] || 0\n }}</span\n >\n </div>\n </div>\n </ng-container>\n </div>\n\n <div class=\"frequency-responsibility-list-search vx-mb-2\">\n <i class=\"icons vx-fs-12\"></i>\n <input\n type=\"text\"\n [(ngModel)]=\"responsibilitySearchText\"\n (keyup.enter)=\"search()\"\n placeholder=\"Search Responsibilities\"\n />\n </div>\n <app-pagination\n *ngIf=\"!responsibilityLoader && responsibilitiesData?.total_pages > 1\"\n [start]=\"responsibilitiesData?.responsibilities_from\"\n [end]=\"responsibilitiesData?.responsibilities_to\"\n [total]=\"responsibilitiesData?.total_responsibilities\"\n [pageCount]=\"responsibilitiesData?.total_pages\"\n [currentPage]=\"responsibilitiesData?.responsibilityCurrentPage\"\n (selectedPage)=\"responsibilityPageChange($event)\"\n >\n </app-pagination>\n <app-loader-inline *ngIf=\"responsibilityLoader\"></app-loader-inline>\n <div\n class=\"frequency-responsibility-list-mid vx-mb-4\"\n [class.with-pagination]=\"\n !responsibilityLoader && responsibilitiesData?.total_pages > 1\n \"\n >\n <app-no-data\n *ngIf=\"\n responsibilitiesData?.data?.length === 0 && !responsibilityLoader\n \"\n [noDataImage]=\"noDataImagePath\"\n [noDataText]=\"noDataMessage\"\n ></app-no-data>\n <ng-container\n *ngIf=\"responsibilitiesData?.data?.length > 0 && !responsibilityLoader\"\n >\n <div class=\"table-header\">\n <div class=\"table-row\">\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n #\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n RESPONSIBILITIES\n </div>\n <div\n class=\"table-column vx-fs-11 vx-fw-500 vx-lh-5 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility-center\"\n *ngIf=\"isOnCompletionRc\"\n >\n RESPONSIBILITY CENTER\n </div>\n </div>\n </div>\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n [class.active]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n *ngFor=\"\n let responsibility of responsibilitiesData?.data;\n let i = index\n \"\n >\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center serial\"\n >\n <div\n class=\"sr-no\"\n [appTooltip]=\"responsibilitiesData?.responsibilities_from + i\"\n placement=\"bottom\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibilitiesData?.responsibilities_from + i }}\n </div>\n <app-cs-checkbox\n [ngValue]=\"\n selectedResponsibilityId?.includes(responsibility?.ReportId)\n \"\n (ngValueChange)=\"selectResp(responsibility?.ReportId, $event)\"\n >\n </app-cs-checkbox>\n </div>\n <div\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center responsibility\"\n [class.with-rc]=\"isOnCompletionRc\"\n >\n <div\n class=\"value vx-fs-12 vx-label-txt vx-pr-5\"\n [appTooltip]=\"responsibility?.ReportName\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ responsibility?.ControlId }} {{ responsibility?.ReportName }}\n </div>\n </div>\n\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.category_name as categoryName\n \"\n class=\"table-column vx-pl-1 vx-pr-1 vx-d-flex vx-align-center program\"\n >\n <div class=\"program-inner vx-d-block\">\n <div\n class=\"program-value vx-fs-11 vx-label-txt vx-pr-5\"\n [appTooltip]=\"\n responsibility?.category_details_array[0]?.category_name ??\n '--'\n \"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ categoryName ?? \"--\" }}\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n <button\n *ngIf=\"responsibility?.category_details_array?.length >= 2\"\n appPopover\n (click)=\"programPopup.popover()\"\n placement=\"right\"\n class=\"program-count vx-fs-11 vx-fw-500 vx-txt-white vx-p-0 vx-pl-1 vx-pr-1 vx-m-0 vx-d-flex vx-align-center vx-justify-center\"\n >\n +{{ responsibility?.category_details_array?.length - 1 }}\n </button>\n <app-popover #programPopup>\n <div class=\"wf-action-list\">\n <ul class=\"action-item\">\n <li\n *ngFor=\"\n let subCategory of responsibility?.category_details_array\n | slice : 1\n \"\n >\n <div class=\"avatar-card\">\n <div class=\"vx-d-block vx-w-100\">\n <span\n class=\"value\"\n [appTooltip]=\"subCategory?.category_name\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >{{ subCategory?.category_name }}</span\n >\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]\n ?.parent_category_name?.length\n \"\n class=\"within-part vx-d-flex vx-align-center vx-pr-3\"\n >\n <div\n class=\"within-box vx-fs-9 vx-fw-600 vx-tt-uppercase vx-pl-1 vx-pr-1 vx-mr-2 vx-lh-3 vx-txt-blue\"\n >\n Within\n </div>\n <div\n *ngIf=\"\n responsibility?.category_details_array[0]?.parent_category_name\n ?.slice()\n ?.reverse()\n ?.join(' < ') as parent_category\n \"\n class=\"within-value vx-fs-11 vx-paragraph-txt\"\n [appTooltip]=\"parent_category\"\n placement=\"bottom-left\"\n delay=\"0\"\n type=\"black\"\n [tooltipMandatory]=\"true\"\n >\n {{ parent_category }}\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </app-popover>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <app-floating-bar\n *ngIf=\"!responsibilityLoader\"\n [selectedData]=\"isValidObj ? selectedResponsibilityValues : []\"\n [displayElementKey]=\"'ReportName'\"\n (closeList)=\"back()\"\n (closeEvent)=\"save($event)\"\n (deleteEvent)=\"deleteItem($event)\"\n [isDisabled]=\"!isValidObj\"\n ></app-floating-bar>\n </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/header/header.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.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-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.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/button/button.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/popover/popover.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.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-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .frequency-responsibility-list{border-top:3px solid #1e5dd3;position:fixed;top:0;right:31.25rem;bottom:0;left:0}::ng-deep .frequency-responsibility-list.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .frequency-responsibility-list-head{background:#fbfbfb;border-bottom:1px solid #f1f1f1;height:2.75rem}::ng-deep .frequency-responsibility-list-head .arrow{cursor:pointer}::ng-deep .frequency-responsibility-list-body{background:#fff;height:calc(100vh - 2.75rem);padding:1.5rem .75rem 1.5rem 2rem}::ng-deep .frequency-responsibility-list-body app-pagination .wk-pagination-sec-ds{border-radius:0;padding:0 0 .5rem}::ng-deep .frequency-responsibility-list-body app-floating-bar .floating-bar{padding:0;position:relative;left:-1rem;width:calc(100% + 2rem)}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar{padding-left:0!important;padding-right:0!important}::ng-deep .frequency-responsibility-list-body app-floating-bar .userGroup-floating-bar .userGroup-floating-bar-container .left .chip span{max-width:240px}::ng-deep .frequency-responsibility-list-search{position:relative}::ng-deep .frequency-responsibility-list-search input{height:2.75rem;line-height:1.5rem;padding:.75rem .75rem .75rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .frequency-responsibility-list-search input::placeholder{color:#747576;opacity:1}::ng-deep .frequency-responsibility-list-search i{position:absolute;left:1rem;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .frequency-responsibility-list-mid{height:calc(100vh - 17.5rem);overflow:auto}::ng-deep .frequency-responsibility-list-mid::-webkit-scrollbar-track{background-color:#fff}::ng-deep .frequency-responsibility-list-mid.with-pagination{height:calc(100vh - 19.5rem)}::ng-deep .frequency-responsibility-list-mid .table-header{background:#fff;position:sticky;top:0;z-index:1}::ng-deep .frequency-responsibility-list-mid .table-header .table-column{color:#161b2f!important;line-height:.75rem!important;min-height:1.875rem!important}::ng-deep .frequency-responsibility-list-mid .table-body{position:relative}::ng-deep .frequency-responsibility-list-mid .table-body .table-row{background:#fff;border-radius:.25rem;border:1px solid #f1f1f1;margin-bottom:.25rem}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial .sr-no,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial .sr-no{opacity:0}::ng-deep .frequency-responsibility-list-mid .table-body .table-row:hover .table-column.serial app-cs-checkbox,::ng-deep .frequency-responsibility-list-mid .table-body .table-row.active .table-column.serial app-cs-checkbox{opacity:1}::ng-deep .frequency-responsibility-list-mid .table-row{display:flex;justify-content:left;position:relative}::ng-deep .frequency-responsibility-list-mid .table-row .table-column{color:#747576;min-height:2.5rem;position:relative;width:100%}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial{width:2rem;max-width:2rem;justify-content:center}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial .sr-no{width:1rem;background:#f8f8f8;writing-mode:vertical-lr;color:#747576;font-size:.625rem;font-weight:500;display:flex;height:2.5rem;align-items:center;justify-content:center;position:relative;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{position:absolute;top:.75rem;left:.5rem;width:1rem;height:1rem;opacity:0;transition:all .2s ease-in-out}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox .radio-item{position:absolute}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.serial app-cs-checkbox{display:flex}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility{width:calc(100% - 15.5rem);min-width:calc(100% - 15.5rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility.with-rc{width:calc(100% - 31rem);min-width:calc(100% - 31rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility .value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center{width:15.5rem;min-width:15.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.responsibility-center button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program{width:13.5rem;min-width:13.5rem}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-inner{max-width:calc(100% - 2rem)}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program .program-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .frequency-responsibility-list-mid .table-row .table-column.program button.program-count{background:#1e5dd3;border-radius:.125rem;border:none;min-width:1.5rem;height:1.25rem}@keyframes animate-right{0%{transform:translate(5px);opacity:0}to{transform:translate(0);opacity:1}}.wf-action-list{width:220px}.wf-action-list ul{padding:0;margin:0;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) both;background:#fff;box-shadow:0 3px 6px #1c5bd140;border-radius:4px;max-height:220px;overflow:auto}.wf-action-list ul.action-item{display:block}.wf-action-list ul.action-item li{list-style:none;border:none;border-bottom:1px solid #f1f1f1;display:block;width:100%;padding:0;background:transparent;border-radius:0;margin:0;height:auto;justify-content:flex-start;box-shadow:none}.wf-action-list ul.action-item li .avatar-card{display:flex;align-items:center;width:100%;padding:7.5px}.wf-action-list ul.action-item li .avatar-card.within-con{display:block}.wf-action-list ul.action-item li .avatar-card .avatar{height:24px;width:24px!important;overflow:hidden;background:#1e5dd3;color:#fff;font-size:10px;display:inline-flex;margin-right:5px;border-radius:50%;align-items:center;justify-content:center;text-transform:uppercase}.wf-action-list ul.action-item li .avatar-card .avatar img{width:100%}.wf-action-list ul.action-item li .avatar-card .avatar+span.value{width:calc(100% - 29px)}.wf-action-list ul.action-item li .avatar-card span.value{width:100%;color:#6e717e;text-decoration:none;background:transparent;font-size:12px;text-transform:capitalize;display:block;font-weight:400;text-align-last:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}.wf-action-list ul.action-item li .avatar-card span.value i{font-size:8px;color:#747576;cursor:pointer;margin-right:5px}.wf-action-list ul.action-item li .avatar-card.no-image{display:block}.wf-action-list ul.action-item li .avatar-card.no-image span.value{width:100%;display:block}.wf-action-list ul.action-item li:first-child{animation:action-list-open .25s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(2){animation:action-list-open .35s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(3){animation:action-list-open .45s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(4){animation:action-list-open .55s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(5){animation:action-list-open .65s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(6){animation:action-list-open .75s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(7){animation:action-list-open .85s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(8){animation:action-list-open .95s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(9){animation:action-list-open 1.05s cubic-bezier(.25,.46,.45,.94) both}.wf-action-list ul.action-item li:nth-child(10){animation:action-list-open 1.15s cubic-bezier(.25,.46,.45,.94) both}@keyframes action-list-open{0%{transform:translateY(50px)}to{transform:translateY(0)}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"] }]
|
|
13982
14013
|
}], ctorParameters: function () { return [{ type: FrequencyService }]; }, propDecorators: { onCompletionOfResponsibility: [{
|
|
13983
14014
|
type: Input
|
|
13984
14015
|
}], feature: [{
|
|
@@ -14756,7 +14787,7 @@ class WorkflowCaseComponent {
|
|
|
14756
14787
|
// field selector and de-selector
|
|
14757
14788
|
onFieldClicked(event) {
|
|
14758
14789
|
this.fieldClicked = event;
|
|
14759
|
-
this.pickerToggle(true);
|
|
14790
|
+
this.pickerToggle(event ? true : false);
|
|
14760
14791
|
}
|
|
14761
14792
|
addMoreInfo(event) {
|
|
14762
14793
|
this.additionalOptionStatus[event.code] = event.checked;
|
|
@@ -14862,7 +14893,7 @@ class WorkflowCaseComponent {
|
|
|
14862
14893
|
if (this.openedFrom === 'COMPLIANCE_WORKROOM') {
|
|
14863
14894
|
this.payload.source = this.source;
|
|
14864
14895
|
payload.responsibilities_Linked = payload?.responsibilities_Linked?.map((item) => {
|
|
14865
|
-
return item?.
|
|
14896
|
+
return item?.ReportId;
|
|
14866
14897
|
});
|
|
14867
14898
|
payload.responsibilities_Linked.push(this.responsibilityData?.rid);
|
|
14868
14899
|
}
|
|
@@ -14882,9 +14913,6 @@ class WorkflowCaseComponent {
|
|
|
14882
14913
|
this.assessmentQuestion?.questionId;
|
|
14883
14914
|
payload.linked_assessment_issues.auditee_id =
|
|
14884
14915
|
this.assessmentQuestion?.auditeeId;
|
|
14885
|
-
payload.responsibilities_Linked = [
|
|
14886
|
-
this.responsibilityData?.rid,
|
|
14887
|
-
];
|
|
14888
14916
|
payload.source = this.source;
|
|
14889
14917
|
}
|
|
14890
14918
|
}
|
|
@@ -20202,14 +20230,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
20202
20230
|
type: Input
|
|
20203
20231
|
}] } });
|
|
20204
20232
|
|
|
20205
|
-
const API = {
|
|
20206
|
-
subscriptionList: `subscriptionList`,
|
|
20207
|
-
};
|
|
20208
|
-
const PROGRAM_LIST_API = {
|
|
20209
|
-
programList: 'sailsProgramList',
|
|
20210
|
-
categoryList: 'sailsProgramCategories',
|
|
20211
|
-
};
|
|
20212
|
-
|
|
20213
20233
|
class ProgramsService {
|
|
20214
20234
|
constructor(http, authService, config) {
|
|
20215
20235
|
this.http = http;
|
|
@@ -32790,7 +32810,7 @@ class WorkflowComplianceComponent {
|
|
|
32790
32810
|
...this.responsibilityForm?.category,
|
|
32791
32811
|
...linkedCategoryIds,
|
|
32792
32812
|
...[entrustForm?.program[0]?.category_id],
|
|
32793
|
-
])?.toString()
|
|
32813
|
+
])?.reverse().toString()
|
|
32794
32814
|
: '',
|
|
32795
32815
|
cc_member_email: moreOptions?.OVERSEER
|
|
32796
32816
|
? this.returnIds(this.overseerUserList, 'uid').toString()
|
|
@@ -32948,7 +32968,7 @@ class WorkflowComplianceComponent {
|
|
|
32948
32968
|
? entrustForm?.assessment?.category_id
|
|
32949
32969
|
: '',
|
|
32950
32970
|
assessment_id: moreOptions?.ASSESSMENT
|
|
32951
|
-
? entrustForm?.assessment?.aid
|
|
32971
|
+
? entrustForm?.assessment?.assessmentDetails?.aid
|
|
32952
32972
|
: '',
|
|
32953
32973
|
},
|
|
32954
32974
|
assessment_checkpoint: moreOptions?.CHECKPOINTS_NEW
|
|
@@ -33021,6 +33041,7 @@ class WorkflowComplianceComponent {
|
|
|
33021
33041
|
.subscribe((res) => {
|
|
33022
33042
|
this.responsibilityData = res;
|
|
33023
33043
|
this.loader = false;
|
|
33044
|
+
this.entrustLoader = false;
|
|
33024
33045
|
this.uiKitService.isLoader = false;
|
|
33025
33046
|
this.showSmiley = true;
|
|
33026
33047
|
this.uiKitService.isSmileyOn = true;
|
|
@@ -38298,6 +38319,7 @@ class WorkflowPolicyComponent {
|
|
|
38298
38319
|
}
|
|
38299
38320
|
}
|
|
38300
38321
|
linkDocumentWithPolicy(document) {
|
|
38322
|
+
let url = '';
|
|
38301
38323
|
if (document.fileName &&
|
|
38302
38324
|
(document.fileExtension === 'pdf' ||
|
|
38303
38325
|
document.fileExtension === 'PDF' ||
|
|
@@ -38306,23 +38328,18 @@ class WorkflowPolicyComponent {
|
|
|
38306
38328
|
this.policyService
|
|
38307
38329
|
.extractFile(document.fileExtension, document.filePath, this.policyId)
|
|
38308
38330
|
.subscribe((res) => {
|
|
38309
|
-
if (res) {
|
|
38331
|
+
if (res && this.policyId) {
|
|
38310
38332
|
if (res.message === 'done' || res.content) {
|
|
38311
38333
|
this.loader = false;
|
|
38312
38334
|
if (document.fileExtension === 'docx' ||
|
|
38313
38335
|
document.fileExtension === 'DOCX') {
|
|
38314
|
-
this.
|
|
38315
|
-
queryParams: { id: this.policyId },
|
|
38316
|
-
relativeTo: this.route,
|
|
38317
|
-
});
|
|
38336
|
+
url = this.baseURL + API.editPolicy + this.policyId;
|
|
38318
38337
|
}
|
|
38319
38338
|
else if (document.fileExtension === 'pdf' ||
|
|
38320
38339
|
document.fileExtension === 'PDF') {
|
|
38321
|
-
this.
|
|
38322
|
-
queryParams: { id: this.policyId },
|
|
38323
|
-
relativeTo: this.route,
|
|
38324
|
-
});
|
|
38340
|
+
url = this.baseURL + API.goToPolicyWorkroom + this.policyId;
|
|
38325
38341
|
}
|
|
38342
|
+
this.iframeService.redirectIfInIframe(url, true);
|
|
38326
38343
|
}
|
|
38327
38344
|
}
|
|
38328
38345
|
}, (err) => {
|
|
@@ -40489,6 +40506,7 @@ class AddMultipleRiskComponent {
|
|
|
40489
40506
|
this.loader = false;
|
|
40490
40507
|
this.showExcel = false;
|
|
40491
40508
|
this.showSmiley = true;
|
|
40509
|
+
this.submitWorkflow();
|
|
40492
40510
|
this.riskData = res;
|
|
40493
40511
|
}, (err) => {
|
|
40494
40512
|
console.error(err);
|
|
@@ -40497,6 +40515,14 @@ class AddMultipleRiskComponent {
|
|
|
40497
40515
|
this.snackBar.show('OOPS! Something went wrong and the page could not be loaded. Could you please try one more time?', 'alert');
|
|
40498
40516
|
});
|
|
40499
40517
|
}
|
|
40518
|
+
submitWorkflow() {
|
|
40519
|
+
const message = { type: 'submit' };
|
|
40520
|
+
const targetOrigin = this.getOrigin();
|
|
40521
|
+
window.parent.postMessage(message, targetOrigin);
|
|
40522
|
+
}
|
|
40523
|
+
getOrigin() {
|
|
40524
|
+
return window.location.origin;
|
|
40525
|
+
}
|
|
40500
40526
|
returnIds(item, key) {
|
|
40501
40527
|
switch (key) {
|
|
40502
40528
|
case 'rc_id':
|
|
@@ -43680,12 +43706,21 @@ class ImportAnAssessmentComponent {
|
|
|
43680
43706
|
this.assessmentData = {};
|
|
43681
43707
|
this.isShowLoader = false;
|
|
43682
43708
|
this.showSmiley = true;
|
|
43709
|
+
this.submitWorkflow();
|
|
43683
43710
|
},
|
|
43684
43711
|
error: (err) => {
|
|
43685
43712
|
this.isShowLoader = false;
|
|
43686
43713
|
},
|
|
43687
43714
|
});
|
|
43688
43715
|
}
|
|
43716
|
+
submitWorkflow() {
|
|
43717
|
+
const message = { type: 'submit' };
|
|
43718
|
+
const targetOrigin = this.getOrigin();
|
|
43719
|
+
window.parent.postMessage(message, targetOrigin);
|
|
43720
|
+
}
|
|
43721
|
+
getOrigin() {
|
|
43722
|
+
return window.location.origin;
|
|
43723
|
+
}
|
|
43689
43724
|
smileyAction(id) {
|
|
43690
43725
|
if (id === smileyActions.VIEW_ASSESSMENTS) {
|
|
43691
43726
|
this.disconnectRefresh.emit(false);
|
|
@@ -46025,6 +46060,7 @@ class AddMultipleResponsibilityComponent {
|
|
|
46025
46060
|
this.loader = false;
|
|
46026
46061
|
this.showExcel = false;
|
|
46027
46062
|
this.showSmiley = true;
|
|
46063
|
+
this.submitWorkflow();
|
|
46028
46064
|
this.responsibilityData = res;
|
|
46029
46065
|
}, (err) => {
|
|
46030
46066
|
console.error(err);
|
|
@@ -46033,6 +46069,14 @@ class AddMultipleResponsibilityComponent {
|
|
|
46033
46069
|
this.snackBar.show('OOPS! Something went wrong and the page could not be loaded. Could you please try one more time?', 'alert');
|
|
46034
46070
|
});
|
|
46035
46071
|
}
|
|
46072
|
+
submitWorkflow() {
|
|
46073
|
+
const message = { type: 'submit' };
|
|
46074
|
+
const targetOrigin = this.getOrigin();
|
|
46075
|
+
window.parent.postMessage(message, targetOrigin);
|
|
46076
|
+
}
|
|
46077
|
+
getOrigin() {
|
|
46078
|
+
return window.location.origin;
|
|
46079
|
+
}
|
|
46036
46080
|
returnIds(item, key) {
|
|
46037
46081
|
switch (key) {
|
|
46038
46082
|
case 'rc_id':
|
|
@@ -46925,6 +46969,7 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
46925
46969
|
this.loader = false;
|
|
46926
46970
|
this.showExcel = false;
|
|
46927
46971
|
this.showSmiley = true;
|
|
46972
|
+
this.submitWorkflow();
|
|
46928
46973
|
this.responsibilityData = res;
|
|
46929
46974
|
}, (err) => {
|
|
46930
46975
|
console.log(err);
|
|
@@ -46933,6 +46978,14 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
46933
46978
|
this.snackBar.show('OOPS! Something went wrong and the page could not be loaded. Could you please try one more time?', 'alert');
|
|
46934
46979
|
});
|
|
46935
46980
|
}
|
|
46981
|
+
submitWorkflow() {
|
|
46982
|
+
const message = { type: 'submit' };
|
|
46983
|
+
const targetOrigin = this.getOrigin();
|
|
46984
|
+
window.parent.postMessage(message, targetOrigin);
|
|
46985
|
+
}
|
|
46986
|
+
getOrigin() {
|
|
46987
|
+
return window.location.origin;
|
|
46988
|
+
}
|
|
46936
46989
|
returnIds(item, key) {
|
|
46937
46990
|
switch (key) {
|
|
46938
46991
|
case 'rc_id':
|
|
@@ -52020,7 +52073,8 @@ class LinkResponsibilityModule {
|
|
|
52020
52073
|
FormgroupModule$1,
|
|
52021
52074
|
NoDataModule$1,
|
|
52022
52075
|
VLoaderModule,
|
|
52023
|
-
PopoverModule
|
|
52076
|
+
PopoverModule,
|
|
52077
|
+
PaginationModule$1], exports: [LinkResponsibilityListComponent] }); }
|
|
52024
52078
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkResponsibilityModule, imports: [CommonModule,
|
|
52025
52079
|
FormsModule,
|
|
52026
52080
|
PipesModule,
|
|
@@ -52028,7 +52082,8 @@ class LinkResponsibilityModule {
|
|
|
52028
52082
|
FormgroupModule$1,
|
|
52029
52083
|
NoDataModule$1,
|
|
52030
52084
|
VLoaderModule,
|
|
52031
|
-
PopoverModule
|
|
52085
|
+
PopoverModule,
|
|
52086
|
+
PaginationModule$1] }); }
|
|
52032
52087
|
}
|
|
52033
52088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkResponsibilityModule, decorators: [{
|
|
52034
52089
|
type: NgModule,
|
|
@@ -52042,7 +52097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
52042
52097
|
FormgroupModule$1,
|
|
52043
52098
|
NoDataModule$1,
|
|
52044
52099
|
VLoaderModule,
|
|
52045
|
-
PopoverModule
|
|
52100
|
+
PopoverModule,
|
|
52101
|
+
PaginationModule$1
|
|
52046
52102
|
],
|
|
52047
52103
|
exports: [LinkResponsibilityListComponent],
|
|
52048
52104
|
}]
|