vcomply-workflow-engine 6.1.0 → 6.1.2

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.
@@ -2308,6 +2308,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2308
2308
  }]
2309
2309
  }] });
2310
2310
 
2311
+ const CONSTANTS$1 = {
2312
+ categoryType: [
2313
+ { label: 'REGULATIONS', value: 1 },
2314
+ { label: 'STANDARDS', value: 2 },
2315
+ { label: 'INTERNAL CONTROLS', value: 3 },
2316
+ { label: 'OTHERS', value: 0 },
2317
+ ],
2318
+ performanceCalculation: [
2319
+ { label: 'PAST EVENTS ONLY', value: 'PAST_EVENT' },
2320
+ { label: 'PAST & UPCOMING EVENTS', value: 'UPCOMING_EVENT' },
2321
+ ],
2322
+ dateConfig: {
2323
+ disableKeypress: true,
2324
+ format: 'DD MMM YYYY',
2325
+ unSelectOnClick: true,
2326
+ openOnClick: false,
2327
+ openOnFocus: false,
2328
+ min: new Date().getDate().toString(),
2329
+ },
2330
+ description: {
2331
+ mode: 'prime',
2332
+ colorPalette: true,
2333
+ link: true,
2334
+ file: true,
2335
+ id: 'description',
2336
+ placeholder: 'Add a description for this Program',
2337
+ },
2338
+ objective: {
2339
+ mode: 'prime',
2340
+ colorPalette: true,
2341
+ link: true,
2342
+ file: false,
2343
+ id: 'objective',
2344
+ placeholder: 'What is the objective of this program?',
2345
+ },
2346
+ additionalOption: {
2347
+ REVIEWER: false,
2348
+ OVERSEER: false,
2349
+ ASSESSMENT: false,
2350
+ FORMATE_EVIDENCE: false,
2351
+ CUSTOM_FIELDS: false,
2352
+ PROGRAM_FREQUENCY: false,
2353
+ SCOPE_CHANGES: false,
2354
+ RC: false,
2355
+ ROLES: false,
2356
+ OWNERS: false,
2357
+ APPROVER: false,
2358
+ ASSIGNEES: false,
2359
+ },
2360
+ };
2361
+ const COLLABORATOR_TOOLTIP = `<strong>Collaborators</strong> can only access responsibilities in this program where they are directly involved, such as creator, reviewer, assignor, oversight user, or collaborator.<br>
2362
+ <br>
2363
+ This role is ideal for users who need to work on specific tasks but shouldn't see the entire program’s contents.
2364
+ <br>
2365
+ <br>
2366
+ <em>Example:</em> In an AML (Anti-Money Laundering) program, the Finance lead added as a collaborator will only see responsibilities related to financial reporting or audits they are linked to, not those owned by Legal or Compliance.`;
2367
+ const COLLABORATOR_PLACEHODLER = `Select users that can collaborate in this Program`;
2368
+ const COLLABORATOR_TOOLTIP_TEXT = `This user has already been selected as a Program Owner.`;
2369
+
2311
2370
  class TooltipMessagePipe {
2312
2371
  transform(value, ...args) {
2313
2372
  let responsibilityType = args[0];
@@ -2361,7 +2420,7 @@ class TooltipMessagePipe {
2361
2420
  return currentUser?.member_email ?? currentUser?.employee_email;
2362
2421
  case "collaborator":
2363
2422
  if (isDisabled) {
2364
- return "This user has already been selected as a Program Owner.";
2423
+ return COLLABORATOR_TOOLTIP_TEXT;
2365
2424
  }
2366
2425
  return currentUser?.member_email ?? currentUser?.employee_email;
2367
2426
  default:
@@ -34554,7 +34613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
34554
34613
  args: ['what']
34555
34614
  }] } });
34556
34615
 
34557
- const CONSTANTS$1 = {
34616
+ const CONSTANTS = {
34558
34617
  DEFAULT_PAGE_NUMBER: 1,
34559
34618
  PAGE_IN_SINGLE_VIEW: 5,
34560
34619
  NO_DATA_IMAGE_TEXT: 'No data to display.',
@@ -36911,7 +36970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
36911
36970
  class LinkRelatedPoliciesComponent {
36912
36971
  constructor(policyService) {
36913
36972
  this.policyService = policyService;
36914
- this.CONSTANTS = CONSTANTS$1;
36973
+ this.CONSTANTS = CONSTANTS;
36915
36974
  this.LINKS = LINKS;
36916
36975
  this.animation = false;
36917
36976
  this.unsubscribe = new Subject();
@@ -36923,7 +36982,7 @@ class LinkRelatedPoliciesComponent {
36923
36982
  policy: '',
36924
36983
  };
36925
36984
  this.loader = false;
36926
- this.recentPage = CONSTANTS$1.DEFAULT_PAGE_NUMBER;
36985
+ this.recentPage = CONSTANTS.DEFAULT_PAGE_NUMBER;
36927
36986
  this.policiesList = {
36928
36987
  from: 1,
36929
36988
  to: 0,
@@ -36937,7 +36996,7 @@ class LinkRelatedPoliciesComponent {
36937
36996
  this.policyId = '';
36938
36997
  this.closeLinkPolicyList = new EventEmitter();
36939
36998
  this.selectedList = new EventEmitter();
36940
- this.recentPage = CONSTANTS$1.DEFAULT_PAGE_NUMBER;
36999
+ this.recentPage = CONSTANTS.DEFAULT_PAGE_NUMBER;
36941
37000
  }
36942
37001
  ngOnInit() {
36943
37002
  this.selectedPolicyList = [...new Set(this.selectedPolicies)];
@@ -36962,7 +37021,7 @@ class LinkRelatedPoliciesComponent {
36962
37021
  this.getPolicies({ search: true });
36963
37022
  }
36964
37023
  if (!event) {
36965
- this.recentPage = CONSTANTS$1.DEFAULT_PAGE_NUMBER;
37024
+ this.recentPage = CONSTANTS.DEFAULT_PAGE_NUMBER;
36966
37025
  this.getPolicies({ search: false });
36967
37026
  }
36968
37027
  }
@@ -36986,7 +37045,7 @@ class LinkRelatedPoliciesComponent {
36986
37045
  params = params.append('sortBy', this.policySortBy);
36987
37046
  }
36988
37047
  if (this.mode === 'EDIT') {
36989
- params = params.append(CONSTANTS$1.POLICY_ID, this.policyId);
37048
+ params = params.append(CONSTANTS.POLICY_ID, this.policyId);
36990
37049
  }
36991
37050
  return params;
36992
37051
  }
@@ -37089,7 +37148,7 @@ class WorkflowPolicyComponent {
37089
37148
  this.complianceCommonService = complianceCommonService;
37090
37149
  this.iframeService = iframeService;
37091
37150
  this.ASSETS = ASSETS;
37092
- this.CONSTANTS = CONSTANTS$1;
37151
+ this.CONSTANTS = CONSTANTS;
37093
37152
  this.LINKS = LINKS;
37094
37153
  this.pickerChanged = new EventEmitter();
37095
37154
  this.mode = 'CREATE';
@@ -39032,64 +39091,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
39032
39091
  args: ['document:click', ['$event']]
39033
39092
  }] } });
39034
39093
 
39035
- const CONSTANTS = {
39036
- categoryType: [
39037
- { label: 'REGULATIONS', value: 1 },
39038
- { label: 'STANDARDS', value: 2 },
39039
- { label: 'INTERNAL CONTROLS', value: 3 },
39040
- { label: 'OTHERS', value: 0 },
39041
- ],
39042
- performanceCalculation: [
39043
- { label: 'PAST EVENTS ONLY', value: 'PAST_EVENT' },
39044
- { label: 'PAST & UPCOMING EVENTS', value: 'UPCOMING_EVENT' },
39045
- ],
39046
- dateConfig: {
39047
- disableKeypress: true,
39048
- format: 'DD MMM YYYY',
39049
- unSelectOnClick: true,
39050
- openOnClick: false,
39051
- openOnFocus: false,
39052
- min: new Date().getDate().toString(),
39053
- },
39054
- description: {
39055
- mode: 'prime',
39056
- colorPalette: true,
39057
- link: true,
39058
- file: true,
39059
- id: 'description',
39060
- placeholder: 'Add a description for this Program',
39061
- },
39062
- objective: {
39063
- mode: 'prime',
39064
- colorPalette: true,
39065
- link: true,
39066
- file: false,
39067
- id: 'objective',
39068
- placeholder: 'What is the objective of this program?',
39069
- },
39070
- additionalOption: {
39071
- REVIEWER: false,
39072
- OVERSEER: false,
39073
- ASSESSMENT: false,
39074
- FORMATE_EVIDENCE: false,
39075
- CUSTOM_FIELDS: false,
39076
- PROGRAM_FREQUENCY: false,
39077
- SCOPE_CHANGES: false,
39078
- RC: false,
39079
- ROLES: false,
39080
- OWNERS: false,
39081
- APPROVER: false,
39082
- ASSIGNEES: false,
39083
- },
39084
- };
39085
- const COLLABORATOR_TOOLTIP = `<strong>Collaborators</strong> can only access responsibilities in this program where they are directly involved, such as creator, reviewer, assignor, oversight user, or collaborator.<br>
39086
- <br>
39087
- This role is ideal for users who need to work on specific tasks but shouldn't see the entire program’s contents.
39088
- <br>
39089
- <br>
39090
- <em>Example:</em> In an AML (Anti-Money Laundering) program, the Finance lead added as a collaborator will only see responsibilities related to financial reporting or audits they are linked to, not those owned by Legal or Compliance.`;
39091
- const COLLABORATOR_PLACEHODLER = `Select users that can collaborate in this Program`;
39092
-
39093
39094
  class PopoverHoverService {
39094
39095
  constructor() { }
39095
39096
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopoverHoverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -45128,7 +45129,7 @@ class WorkflowProgramComponent {
45128
45129
  this.iframeService = iframeService;
45129
45130
  this.changeRef = changeRef;
45130
45131
  this.ASSETS = ASSETS;
45131
- this.constants = CONSTANTS;
45132
+ this.constants = CONSTANTS$1;
45132
45133
  this.isAscentAllowed = false;
45133
45134
  this.ff_rc_listing = false;
45134
45135
  this.datePickerOverlay = false;
@@ -45321,7 +45322,7 @@ class WorkflowProgramComponent {
45321
45322
  'DEFAULT_OVERSEER',
45322
45323
  'OVERSEER',
45323
45324
  ];
45324
- this.additionalOption = { ...CONSTANTS.additionalOption };
45325
+ this.additionalOption = { ...CONSTANTS$1.additionalOption };
45325
45326
  this.activeList = '';
45326
45327
  this.fileUploadTracker = {
45327
45328
  description: [],
@@ -46008,6 +46009,7 @@ class WorkflowProgramComponent {
46008
46009
  this.scrollToBottom = false;
46009
46010
  this.showSmiley = false;
46010
46011
  this.loader = true;
46012
+ this.disableCollaboratorIds = [];
46011
46013
  const DEFAULT_VALUES = {
46012
46014
  program_type: 1,
46013
46015
  program_name: '',
@@ -47792,6 +47794,10 @@ class AddMultipleResponsibilityWithTabComponent {
47792
47794
  this.isDateFormatInvalid = true;
47793
47795
  return false;
47794
47796
  }
47797
+ if (!(day > 0 && day < 32)) {
47798
+ this.isDayInvalid = true;
47799
+ return false;
47800
+ }
47795
47801
  const monthAndYear = month.split("'");
47796
47802
  const startDate = moment(day + '-' + monthAndYear[0] + '-' + 20 + monthAndYear[1] + ' 00:00:00', 'DD-MMMM-YYYY HH:mm:ss').format('YYYY-MM-DD HH:mm:ss');
47797
47803
  if (startDate == 'Invalid date') {